1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,95187,(e,r,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o={callServer:function(){return a.callServer},createServerReference:function(){return n.createServerReference},findSourceMapURL:function(){return i.findSourceMapURL}};for(var s in o)Object.defineProperty(t,s,{enumerable:!0,get:o[s]});let a=e.r(32120),i=e.r(92245),n=e.r(35326)},95468,e=>{"use strict";let r=(0,e.i(75254).default)("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);e.s(["CheckCircle2",0,r],95468)},78894,e=>{"use strict";let r=(0,e.i(75254).default)("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);e.s(["AlertTriangle",0,r],78894)},83086,e=>{"use strict";let r=(0,e.i(75254).default)("sparkles",[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}
1],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]]);e.s(["Sparkles",0,r],83086)},63209,e=>{"use strict";let r=(0,e.i(75254).default)("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);e.s(["AlertCircle",0,r],63209)},30648,e=>{"use strict";var r=e.i(43476),t=e.i(71645),o=e.i(47163),s=e.i(25913),a=e.i(63209),i=e.i(78894),n=e.i(95468);let l=(0,e.i(75254).default)("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);var c=e.i(83086),d=e.i(37727);let u=(0,s.cva)("relative flex w-full gap-4 overflow-hidden rounded-xl border p-4 text-sm transition-all duration-200",{variants:{variant:{info:"border-info/30 bg-info/10 text-foreground dark:text-info",success:"border-success/30 bg-success/10 text-foreground dark:text-emerald-200",warning:"border-warning/30 bg-warning/10 text-foreground dark:text-amber-200",error:"border-error/30 bg-error/10 text-foreground dark:text-rose-200",welcome:"border border-primary/30 bg-gradient-to-br from-primary/15 via-primary/5 to-indigo-500/10 text-foreground"}},defaultVariants:{variant:"info"}}),m={info:(0,r.jsx)(l,{className:"h-5 w-5 text-info shrink-0"}),success:(0,r.jsx)(n.CheckCircle2,{className:"h-5 w-5 text-success shrink-0"}),warning:(0,r.jsx)(i.AlertTriangle,{className:"h-5 w-5 text-warning shrink-0"}),error:(0,r.jsx)(a.AlertCircle,{className:"h-5 w-5 text-error shrink-0"}),welcome:(0,r.jsx)(c.Sparkles,{className:"h-5 w-5 text-primary shrink-0"})},f=t.forwardRef(({className:e,variant:t="info",title:s,icon:a,onDismiss:i,action:n,children:l,...c},f)=>{let p=t||"info",h=void 0!==a?a:m[p];return(0,r.jsxs)("div",{ref:f,className:(0,o.cn)(u({variant:p}),e),...c,children:[h&&(0,r.jsx)("div",{className:"mt-0.5",children:h}),(0,r.jsxs)("div",{className:"flex-1 min-w-0",children:[s&&(0,r.jsx)("h5",{className:"font-semibold leading-none tracking-tight mb-1",children:s}),(0,r.jsx)("div",{className:"leading-relaxed opacity-90",children:l}),n&&(0,r.jsx)("div",{className:"mt-3",children:n})]}),i&&(0,r.jsx)("button",{type:"button",onClick:i,className:"cursor-pointer -mr-1 -mt-1 p-1 text-muted-foreground hover:text-foreground transition-colors rounded-lg","aria-label":"Dismiss",children:(0,r.jsx)(d.X,{className:"h-4 w-4"})})]})});f.displayName="Callout",e.s(["Callout",0,f],30648)},43531,e=>{"use strict";let r=(0,e.i(75254).default)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);e.s(["Check",0,r],43531)},41592,e=>{"use strict";var r=e.i(43476),t=e.i(95187);let o=(0,t.createServerReference)("6058025ff1d65ee6e7d865d816074640ee2fcca791",t.callServer,void 0,t.findSourceMapURL,"login"),s=(0,t.createServerReference)("60febd77eba411e262b18186397247e2c5360476ff",t.callServer,void 0,t.findSourceMapURL,"signup");var a=e.i(22016),i=e.i(18566),n=e.i(71645),l=e.i(43531);let c={error:"",success:"",shop:""};e.s(["LoginForm",0,function({shop:e}={}){let[t,s,i]=(0,n.useActionState)(o,c),[l,d]=(0,n.useState)(!1);return((0,n.useEffect)(()=>{d(!0)},[]),l)?(0,r.jsxs)("form",{className:"flex flex-col gap-5",action:s,children:[e&&(0,r.jsx)("input",{type:"hidden",name:"shop",value:e}),(0,r.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,r.jsx)("label",{className:"text-foreground text-sm font-medium",htmlFor:"email",children:"Email Address"}),(0,r.jsx)("input",{id:"email",name:"email",className:"focus:border-primary focus:ring-primary border-input-border bg-input text-foreground placeholder-muted-foreground h-11 w-full rounded-lg border px-4 transition-colors focus:ring-1 focus:outline-none",placeholder:"[email protected]",type:"email",required:!0})]}),(0,r.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,r.jsx)("label",{className:"text-foreground text-sm font-medium",htmlFor:"password",children:"Password"}),(0,r.jsx)("input",{id:"password",name:"password",className:"focus:border-primary focus:ring-primary border-input-border bg-input text-foreground placeholder-muted-foreground h-11 w-full rounded-lg border px-4 transition-colors focus:ring-1 focus:outline-none",placeholder:"Enter your password",type:"password",required:!0})]}),t?.error&&(0,r.jsxs)("div",{className:"bg-error/10 border-error/20 text-error animate-in fade-in slide-in-from-top-1 flex items-center gap-2 rounded-lg border px-4 py-2.5 text-sm font-medium transition-all",children:[(0,r.jsx)("svg",{className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})}),t.error]}),(0,r.jsx)("div",{className:"flex justify-end",children:(0,r.jsx)(a.default,{className:"text-muted-foreground hover:text-primary text-sm font-medium transition-colors",href:"/forgot-password",children:"Forgot Password?"})}),(0,r.jsx)("button",{className:"cursor-pointer bg-primary mt-2 flex h-12 w-full items-center justify-center rounded-lg font-bold text-white transition-all duration-150 hover:scale-[1.01] hover:bg-primary-dark active:scale-[0.98] disabled:cursor-not-allowed disabled:opacity-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",type:"submit",disabled:i,children:i?(0,r.jsx)("span",{className:"h-5 w-5 animate-spin rounded-full border-2 border-white/30 border-t-white"}):"Sign In"})]}):(0,r.jsxs)("div",{className:"flex flex-col gap-5 opacity-0",children:[(0,r.jsx)("div",{className:"h-11 w-full animate-pulse rounded-lg bg-secondary"}),(0,r.jsx)("div",{className:"h-11 w-full animate-pulse rounded-lg bg-secondary"}),(0,r.jsx)("div",{className:"h-12 w-full animate-pulse rounded-lg bg-secondary"})]})},"RegisterForm",0,function({shop:e,from:t}={}
1){let[o,a,d]=(0,n.useActionState)(s,c),[u,m]=(0,n.useState)(!1),f=(0,i.useRouter)();return((0,n.useEffect)(()=>{m(!0)},[]),u)?o?.success?(0,r.jsxs)("div",{className:"animate-in fade-in slide-in-from-bottom-2 flex flex-col items-center gap-5 py-4 text-center",children:[(0,r.jsx)("div",{className:"flex h-16 w-16 items-center justify-center rounded-full bg-green-500/10",children:(0,r.jsx)("svg",{className:"text-success h-8 w-8",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 8l7.89 5.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"})})}),(0,r.jsx)("h2",{className:"text-xl font-bold text-foreground",children:"Check your email"}),(0,r.jsx)("p",{className:"text-muted-foreground text-sm leading-relaxed max-w-sm",children:o.success}),(0,r.jsx)("button",{type:"button",onClick:()=>f.push("/login"),className:"cursor-pointer bg-primary mt-2 flex h-12 w-full items-center justify-center rounded-lg font-bold text-white transition-all duration-150 hover:scale-[1.01] hover:bg-primary-dark active:scale-[0.98]",children:"Go to Sign In"})]}):(0,r.jsxs)("form",{className:"flex flex-col gap-5",action:a,children:[e&&(0,r.jsx)("input",{type:"hidden",name:"shop",value:e}),t&&(0,r.jsx)("input",{type:"hidden",name:"from",value:t}),(0,r.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,r.jsx)("label",{className:"text-foreground text-sm font-medium",htmlFor:"register-email",children:"Email Address"}),(0,r.jsx)("input",{id:"register-email",name:"email",className:"focus:border-primary focus:ring-primary border-input-border bg-input text-foreground placeholder-muted-foreground h-11 w-full rounded-lg border px-4 transition-colors focus:ring-1 focus:outline-none",placeholder:"[email protected]",type:"email",required:!0})]}),(0,r.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,r.jsx)("label",{className:"text-foreground text-sm font-medium",htmlFor:"register-password",children:"Password"}),(0,r.jsx)("input",{id:"register-password",name:"password",className:"focus:border-primary focus:ring-primary border-input-border bg-input text-foreground placeholder-muted-foreground h-11 w-full rounded-lg border px-4 transition-colors focus:ring-1 focus:outline-none",placeholder:"Create a password",type:"password",required:!0})]}),(0,r.jsxs)("label",{className:"mt-1 flex cursor-pointer items-start gap-2",children:[(0,r.jsxs)("div",{className:"relative mt-0.5 flex items-center justify-center",children:[(0,r.jsx)("input",{type:"checkbox",name:"agreement",required:!0,className:"peer checked:bg-primary checked:border-primary focus:ring-primary focus:border-primary border-input-border bg-input h-4 w-4 shrink-0 cursor-pointer appearance-none rounded border transition-all focus:ring-1 focus:outline-none"}),(0,r.jsx)(l.Check,{className:"pointer-events-none absolute h-3 w-3 text-white opacity-0 peer-checked:opacity-100"})]}),(0,r.jsxs)("span",{className:"text-muted-foreground text-xs leading-tight select-none",children:["I agree to the"," ",(0,r.jsx)("a",{href:"/terms",target:"_blank",className:"hover:text-primary hover:decoration-primary text-foreground decoration-foreground/30 underline underline-offset-2 transition-colors",children:"Terms of Service"})," ","and"," ",(0,r.jsx)("a",{href:"/privacy",target:"_blank",className:"hover:text-primary hover:decoration-primary text-foreground decoration-foreground/30 underline underline-offset-2 transition-colors",children:"Privacy Policy"}),", and I confirm I am at least 13 years old."]})]}),o?.error&&(0,r.jsxs)("div",{className:"bg-error/10 border-error/20 text-error animate-in fade-in slide-in-from-top-1 flex items-center gap-2 rounded-lg border px-4 py-2.5 text-sm font-medium transition-all",children:[(0,r.jsx)("svg",{className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})}),o.error]}),(0,r.jsx)("button",{className:"cursor-pointer bg-primary mt-2 flex h-12 w-full items-center justify-center rounded-lg font-bold text-white transition-all duration-150 hover:scale-[1.01] hover:bg-primary-dark active:scale-[0.98] disabled:cursor-not-allowed disabled:opacity-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",type:"submit",disabled:d,children:d?(0,r.jsx)("span",{className:"h-5 w-5 animate-spin rounded-full border-2 border-white/30 border-t-white"}):"Create Account"})]}):(0,r.jsxs)("div",{className:"flex flex-col gap-5 opacity-0",children:[(0,r.jsx)("div",{className:"h-11 w-full animate-pulse rounded-lg bg-secondary"}),(0,r.jsx)("div",{className:"h-11 w-full animate-pulse rounded-lg bg-secondary"}),(0,r.jsx)("div",{className:"h-12 w-full animate-pulse rounded-lg bg-secondary"})]})}],41592)},29872,e=>{"use strict";var r=e.i(43476),t=e.i(12313),o=e.i(71645),s=e.i(43531);e.s(["GoogleAuthButton",0,function({mode:e="login",shop:a}){let[i,n]=(0,o.useState)(!1),[l,c]=(0,o.useState)(!1),d="login"===e||l,u=async()=>{n(!0);let e=(0,t.createClient)(),r=a?`/app/integrations?shop=${encodeURIComponent(a)}
1&platform=shopify&from=shopify`:"/app/dashboard",o=`${window.location.origin}/auth/callback?next=${encodeURIComponent(r)}`,{error:s}=await e.auth.signInWithOAuth({provider:"google",options:{redirectTo:o,queryParams:{access_type:"offline",prompt:"consent"}}});s&&(console.error("Error logging in with Google:",s),n(!1))};return(0,r.jsxs)("div",{className:"mb-6 flex flex-col gap-3",children:[(0,r.jsxs)("button",{onClick:u,disabled:i||!d,className:"flex h-12 w-full cursor-pointer items-center justify-center gap-3 rounded-lg border border-border bg-white px-5 text-base leading-normal font-bold text-[#0F172A] transition-all duration-150 hover:-translate-y-0.5 hover:scale-[1.01] hover:bg-gray-50 active:scale-[0.97] disabled:cursor-not-allowed disabled:opacity-70",children:[i?(0,r.jsx)("span",{className:"h-5 w-5 animate-spin rounded-full border-2 border-[#0F172A]/30 border-t-[#0F172A]"}):(0,r.jsx)("img",{alt:"Google Logo",className:"h-5 w-5",src:"/images/google.svg"}),(0,r.jsx)("span",{children:i?"Connecting...":"Continue with Google"})]}),"signup"===e?(0,r.jsxs)("label",{className:"mt-1 flex cursor-pointer items-start gap-2",children:[(0,r.jsxs)("div",{className:"relative mt-0.5 flex items-center justify-center",children:[(0,r.jsx)("input",{type:"checkbox",checked:l,onChange:e=>c(e.target.checked),className:"peer checked:bg-primary checked:border-primary focus:ring-primary focus:border-primary border-input-border bg-input h-4 w-4 shrink-0 cursor-pointer appearance-none rounded border transition-all focus:ring-1 focus:outline-none"}),(0,r.jsx)(s.Check,{className:"pointer-events-none absolute h-3 w-3 text-white opacity-0 peer-checked:opacity-100"})]}),(0,r.jsxs)("span",{className:"text-muted-foreground text-xs leading-tight select-none",children:["I agree to the"," ",(0,r.jsx)("a",{href:"/terms",target:"_blank",className:"hover:text-primary hover:decoration-primary text-foreground underline decoration-foreground/30 underline-offset-2 transition-colors",children:"Terms of Service"})," ","and"," ",(0,r.jsx)("a",{href:"/privacy",target:"_blank",className:"hover:text-primary hover:decoration-primary text-foreground underline decoration-foreground/30 underline-offset-2 transition-colors",children:"Privacy Policy"}),", and I confirm I am at least 13 years old."]})]}):(0,r.jsxs)("p",{className:"text-muted-foreground mt-1 text-center text-xs leading-tight select-none",children:["By continuing, you agree to our"," ",(0,r.jsx)("a",{href:"/terms",target:"_blank",className:"hover:text-primary text-muted-foreground underline underline-offset-2 transition-colors",children:"Terms"})," ","&"," ",(0,r.jsx)("a",{href:"/privacy",target:"_blank",className:"hover:text-primary text-muted-foreground underline underline-offset-2 transition-colors",children:"Privacy Policy"}),"."]})]})}])},39686,e=>{"use strict";var r=e.i(43476),t=e.i(30648),o=e.i(71645);e.s(["BlockedBanner",0,function({serverBlocked:e}){let[s,a]=(0,o.useState)(e);return((0,o.useEffect)(()=>{let e=window.location.hash;(e.includes("user_banned")||e.includes("User+is+banned"))&&(a(!0),window.history.replaceState(null,"",window.location.pathname))},[]),s)?(0,r.jsx)(t.Callout,{variant:"warning",title:"Account Notice",className:"mb-6",children:"Your account is currently unavailable and you've been signed out. If you need help, please reach out to our support team."}):null}])}]);
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.