1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4520],{42180:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});let s=(0,i(17954).A)("mail",[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]])},43952:(e,t,i)=>{"use strict";i.d(t,{LoginForm:()=>u});var s=i(57346),n=i(19530),r=i(60715),a=i(44059),l=i(42180),o=i(47410);async function c(e,t){let i,s=(0,o.U)(),{error:n}=await s.auth.signInWithOAuth({provider:e,options:{scopes:"email profile",redirectTo:(i=new URL("/auth/callback",window.location.origin),t&&i.searchParams.set("next",t),i.toString())}});if(n)throw n}function d(){return(0,s.jsxs)("svg",{width:"15",height:"15",viewBox:"0 0 24 24","aria-hidden":"true",children:[(0,s.jsx)("path",{d:"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z",fill:"#4285F4"}),(0,s.jsx)("path",{d:"M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z",fill:"#34A853"}),(0,s.jsx)("path",{d:"M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l3.66-2.84z",fill:"#FBBC05"}),(0,s.jsx)("path",{d:"M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z",fill:"#EA4335"})]})}function h(){return(0,s.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 21 21","aria-hidden":"true",children:[(0,s.jsx)("rect",{x:"1",y:"1",width:"9",height:"9",fill:"#f25022"}),(0,s.jsx)("rect",{x:"11",y:"1",width:"9",height:"9",fill:"#7fba00"}),(0,s.jsx)("rect",{x:"1",y:"11",width:"9",height:"9",fill:"#00a4ef"}),(0,s.jsx)("rect",{x:"11",y:"11",width:"9",height:"9",fill:"#ffb900"})]})}function u({next:e}){(0,n.useEffect)(()=>{let e,t="https://www.usecluttr.com";if(!t)return;try{e=new URL(t)}catch{return}let i=window.location;i.host!==e.host&&i.host.replace(/^www\./,"")===e.host.replace(/^www\./,"")&&window.location.replace(new URL(i.pathname+i.search,e.origin).toString())},[]);let[t,i]=(0,n.useState)(null),[o,g]=(0,n.useState)(null),[x,m]=(0,n.use
1State)(!1);async function w(t){g(null),i(t);try{await c(t,e)}catch(e){g(e instanceof Error?e.message:"Could not start sign in."),i(null)}}let f=null!==t;return(0,s.jsxs)("div",{className:"grid gap-3",children:[(0,s.jsxs)("button",{type:"button",onClick:()=>w("google"),disabled:f,className:"inline-flex h-11 w-full items-center justify-center gap-2.5 rounded-lg bg-[#0032DB] text-sm font-medium text-white transition-opacity hover:opacity-90 disabled:cursor-not-allowed disabled:opacity-70","aria-label":"Sign in with Google","aria-busy":"google"===t,children:["google"===t?(0,s.jsx)(r.A,{className:"size-4 animate-spin"}):(0,s.jsx)(d,{}),"Sign in with Google"]}),(0,s.jsxs)("div",{children:[(0,s.jsxs)("button",{type:"button",onClick:()=>m(e=>!e),className:"flex items-center gap-1 text-xs text-gray-400 transition-colors hover:text-gray-600",children:[(0,s.jsx)(a.A,{className:`size-3.5 transition-transform duration-200 ${x?"rotate-180":""}`}),"Other options"]}),x?(0,s.jsxs)("div",{className:"mt-2 grid gap-2",children:[(0,s.jsxs)("button",{type:"button",onClick:()=>w("azure"),disabled:f,className:"inline-flex h-10 w-full items-center justify-center gap-2.5 rounded-lg border border-gray-200 bg-white text-sm font-medium text-gray-700 transition-colors hover:bg-gray-50 disabled:cursor-not-allowed disabled:opacity-70","aria-label":"Sign in with Microsoft","aria-busy":"azure"===t,children:["azure"===t?(0,s.jsx)(r.A,{className:"size-4 animate-spin"}):(0,s.jsx)(h,{}),"Sign in with Microsoft"]}),(0,s.jsxs)("button",{type:"button",disabled:!0,className:"inline-flex h-10 w-full cursor-not-allowed items-center justify-center gap-2.5 rounded-lg border border-gray-200 bg-gray-50 text-sm font-medium text-gray-400","aria-label":"Sign in with email coming soon",children:[(0,s.jsx)(l.A,{className:"size-4"}),"Sign in with email",(0,s.jsx)("span",{className:"text-[10px] font-bold uppercase tracking-wide",children:"Coming soon"})]})]}):null]}),(0,s.jsxs)("p",{className:"text-center text-xs leading-5 text-gray-500",children:["By continuing you agree to our"," ",(0,s.jsx)("a",{className:"font-medium underline",href:"https://cluttr.co.nz/terms",children:"Terms"})," ","and"," ",(0,s.jsx)("a",{className:"font-medium underline",href:"/privacy",children:"Privacy Policy"}),"."]}),o?(0,s.jsx)("p",{role:"alert",className:"rounded-lg border border-destructive/25 bg-destructive/10 px-3 py-2 text-sm text-destructive",children:o}):null]})}},47410:(e,t,i)=>{"use strict";i.d(t,{U:()=>n});var s=i(79145);function n(){return(0,s.k)("https://auth.usecluttr.com","eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Imx3c29hZnZsZm15YnFhZ2treGp3Iiwicm9sZSI6ImFub24iLCJpYXQiOjE3NzkwMDA5NjEsImV4cCI6MjA5NDU3Njk2MX0.Ik5v8W6iL_Ahg-GmWisRVZEgL272CUBOoGN84clO9rU")}},81010:(e,t,i)=>{Promise.resolve().then(i.bind(i,43952)),Promise.resolve().then(i.t.bind(i,82209,23))}},e=>{e.O(0,[4475,2209,4230,8693,849,3280,7358],()=>e(e.s=81010)),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.