import{j as e}from"./vendor-query-Brcc40-Y.js";import{e as r}from"./index-tN-ddyeb.js";function a(){return r.apiBaseUrl.replace(/\/api\/v1\/?$/,"")}function c({label:s="Continue with Google"}){function i(){const t=new URLSearchParams(window.location.search).get("redirect");t!=null&&t.startsWith("/")&&!t.startsWith("//")&&sessionStorage.setItem("postAuthRedirect",t),window.location.href=`${a()}/api/v1/auth/google`}return e.jsxs("button",{type:"button",onClick:i,className:`flex w-full items-center justify-center gap-3 rounded-xl border border-bg-overlay bg-bg-surface px-4 py-3
                 text-sm font-medium text-ink hover:bg-bg-elevated hover:border-ink-faint transition-colors`,children:[e.jsxs("svg",{className:"h-5 w-5",viewBox:"0 0 24 24","aria-hidden":"true",children:[e.jsx("path",{fill:"#EA4335",d:"M5.27 9.76A7.0 7.0 0 0 1 12 5c1.7 0 3.24.58 4.45 1.54l3.33-3.33C17.77 1.19 15.05 0 12 0 7.31 0 3.26 2.7 1.34 6.61l3.93 3.15z"}),e.jsx("path",{fill:"#34A853",d:"M16.04 18.01A6.95 6.95 0 0 1 12 19c-2.69 0-4.98-1.52-6.15-3.74l-3.93 3.04A11.96 11.96 0 0 0 12 24c3.14 0 5.78-1.04 7.7-2.82l-3.66-3.17z"}),e.jsx("path",{fill:"#4A90E2",d:"M19.7 21.18C21.63 19.43 22.8 16.82 22.8 13.64c0-.74-.07-1.45-.2-2.14H12v4.05h6.05c-.26 1.4-1.05 2.58-2.24 3.38l3.89 2.25z"}),e.jsx("path",{fill:"#FBBC05",d:"M5.85 15.26A7.04 7.04 0 0 1 5.45 12c0-1.14.27-2.22.75-3.17L2.27 5.68A11.94 11.94 0 0 0 0 12c0 1.93.46 3.75 1.27 5.37l4.58-2.11z"})]}),s]})}function d(){return e.jsxs("div",{className:"relative my-6",children:[e.jsx("div",{className:"absolute inset-0 flex items-center",children:e.jsx("div",{className:"w-full border-t border-bg-overlay"})}),e.jsx("div",{className:"relative flex justify-center text-xs",children:e.jsx("span",{className:"bg-bg-base px-3 text-ink-faint",children:"or continue with email"})})]})}export{d as A,c as G};
