PageSourceSearch

https://sugary.me/_next/static/chunks/9534.c47adc50b03367ae.js

js sugary.me collected 2026-09-24 11:00:26 UTC 26,943 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9534],{4474:(e,t,r)=>{r.d(t,{$:()=>l,r:()=>i});var a=r(95155);r(12115);var s=r(42442),o=r(18460),n=r(91337);let i=(0,o.F)("cursor-pointer inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg_secondary text-secondary-foreground hover:bg_secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function l({className:e,variant:t,size:r,asChild:o=!1,...c}){let d=o?s.DX:"button";return(0,a.jsx)(d,{"data-slot":"button",className:(0,n.cn)(i({variant:t,size:r,className:e})),...c})}},7915:(e,t,r)=>{r.d(t,{A:()=>a});let a=(0,r(78340).A)("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]])},9534:(e,t,r)=>{r.r(t),r.d(t,{default:()=>Y});var a=r(95155),s=r(12115),o=r(99003),n=r(27240),i=r(33546),l=r(41455),c=r(4474),d=r(42442),u=r(91337);let h=o.Op,p=s.createContext({}),x=({...e})=>(0,a.jsx)(p.Provider,{value:{name:e.name},children:(0,a.jsx)(o.xI,{...e})}),m=()=>{let e=s.useContext(p),t=s.useContext(g),{getFieldState:r}=(0,o.xW)(),a=(0,o.lN)({name:e.name}),n=r(e.name,a);if(!e)throw Error("useFormField should be used within <FormField>");let{id:i}=t;return{id:i,name:e.name,formItemId:`${i}-form-item`,formDescriptionId:`${i}-form-item-description`,formMessageId:`${i}-form-item-message`,...n}},g=s.createContext({});function f({className:e,...t}){let r=s.useId();return(0,a.jsx)(g.Provider,{value:{id:r},children:(0,a.jsx)("div",{"data-slot":"form-item",className:(0,u.cn)("grid gap-2",e),...t})})}function b({...e}){let{error:t,formItemId:r,formDescriptionId:s,formMessageId:o}=m();return(0,a.jsx)(d.DX,{"data-slot":"form-control",id:r,"aria-describedby":t?`${s} ${o}`:`${s}`,"aria-invalid":!!t,...e})}function w({className:e,...t}){let{error:r,formMessageId:s}=m(),o=r?String(r?.message??""):t.children;return o?(0,a.jsx)("p",{"data-slot":"form-message",id:s,className:(0,u.cn)("text-destructive text-sm",e),...t,children:o}):null}var v=r(39658);r(47650);var y=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let r=(0,d.TL)(`Primitive.${t}`),o=s.forwardRef((e,s)=>{let{asChild:o,...n}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,a.jsx)(o?r:t,{...n,ref:s})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{}),j="horizontal",_=["horizontal","vertical"],N=s.forwardRef((e,t)=>{var r;let{decorative:s,orientation:o=j,...n}=e,i=(r=o,_.includes(r))?o:j;return(0,a.jsx)(y.div,{"data-orientation":i,...s?{role:"none"}:{"aria-orientation":"vertical"===i?i:void 0,role:"separator"},...n,ref:t})});function k({className:e,orientation:t="horizontal",decorative:r=!0,...s}){return(0,a.jsx)(N,{"data-slot":"separator",decorative:r,orientation:t,className:(0,u.cn)("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",e),...s})}N.displayName="Separator";var S=r(13545),E=r(92289),F=r(25777),A=r(15411),R=r(7915),C=r(41159),I=r(66609),P=r(2125),$=r(35844),z=r(35927),D=r(37002),L=r(2693),M=r(82464),U=r(8946),G=r(62756),T=r(2123);function O({onSuccess:e,redirection:t}){let{language:r}=(0,L.n)(),d=M.P[r],u=n.Ik({FirstName:n.Yj().min(2,d.auth.first_name_required),LastName:n.Yj().min(2,d.auth.last_name_required),Email:n.Yj().email(d.auth.invalid_email_address),Password:n.Yj().min(6,d.auth.password_min_length),Avatar:n.Yj().optional()}
1),[p,m]=(0,s.useState)(!1),[g,y]=(0,s.useState)(!1),[j,_]=(0,s.useState)(null),[N]=(0,s.useState)(!1),[k,C]=(0,s.useState)(!1),V=(0,D.useGlobalStore)(e=>e.current_user),q=(0,l.rd)(),B=(0,o.mN)({resolver:(0,i.u)(u),defaultValues:{FirstName:"",LastName:"",Email:"",Password:"",Avatar:void 0}}),W=async()=>{let e=B.getValues("Email");if(!e)return void I.oR.error(d.auth.invalid_email||"Please enter your email first.");try{let t=`${P.u4.PASSWORD_RESET_LINK}?email=${encodeURIComponent(e)}&userType=customer`,r=await $.u.get(t),a=await r.json();a?.Success?I.oR.success(d.auth.reset_link_sent):I.oR.error(a?.Message||d.auth.reset_link_failed)}catch(e){console.error(e),I.oR.error(d.auth.network_error)}};async function Y(r){m(!0),_(null);try{let a=await (0,z.z2)({...r,GuestUserId:V?.Id??""});a.Success?(U.pl.signUp("email"),G.UJ.completeRegistration("email"),T.Tq.registrationCompleted(),y(!0),e&&e(),!0===t&&q.push("/")):_(a.Message||d.auth.signup_failed)}catch(e){_(e.message||d.auth.unexpected_error)}finally{m(!1)}}return g?(0,a.jsx)("div",{className:"p-4 bg-green-50 text-green-800 rounded-lg text-center",children:d.auth.signup_success}):(0,a.jsxs)("div",{className:"",children:[j&&(0,a.jsxs)("div",{className:"flex items-center gap-2 p-1 px-2 mb-4 text-xs text-red-700 bg-red-50 border border-red-200 rounded-full",children:[(0,a.jsx)(S.A,{className:"h-4 w-4 shrink-0"}),(0,a.jsx)("span",{children:j})]}),!N&&(0,a.jsx)(h,{...B,children:(0,a.jsxs)("form",{onSubmit:B.handleSubmit(Y),className:"space-y-4",children:[(0,a.jsxs)("div",{className:"flex items-center justify-center gap-x-2 w-full",children:[(0,a.jsx)(x,{control:B.control,name:"FirstName",render:({field:e})=>(0,a.jsxs)(f,{className:"w-1/2",children:[(0,a.jsx)(b,{children:(0,a.jsx)(v.p,{type:"text",placeholder:d.auth.first_name,...e,className:"bg-white/5 hover:bg-white/10 focus:bg-white/10 border border-white/10 focus:border-white/20 text-white placeholder:text-white/40 rounded-full h-[50px] px-6 transition-all duration-200 shadow-none font-bricolage text-[14px] w-full"})}),(0,a.jsx)(w,{className:"text-red-400 text-xs px-4"})]})}),(0,a.jsx)(x,{control:B.control,name:"LastName",render:({field:e})=>(0,a.jsxs)(f,{className:"w-1/2",children:[(0,a.jsx)(b,{children:(0,a.jsx)(v.p,{type:"text",placeholder:d.auth.last_name,...e,className:"bg-white/5 hover:bg-white/10 focus:bg-white/10 border border-white/10 focus:border-white/20 text-white placeholder:text-white/40 rounded-full h-[50px] px-6 transition-all duration-200 shadow-none font-bricolage text-[14px] w-full"})}),(0,a.jsx)(w,{className:"text-red-400 text-xs px-4"})]})})]}),(0,a.jsx)(x,{control:B.control,name:"Email",render:({field:e})=>(0,a.jsxs)(f,{children:[(0,a.jsx)(b,{children:(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)(E.A,{className:"absolute left-5 top-1/2 -translate-y-1/2 text-white/45 h-4 w-4 pointer-events-none"}),(0,a.jsx)(v.p,{type:"email",placeholder:d.auth.your_email,...e,className:"bg-white/5 hover:bg-white/10 focus:bg-white/10 border border-white/10 focus:border-white/20 text-white placeholder:text-white/40 rounded-full h-[50px] pl-12 pr-6 transition-all duration-200 shadow-none font-bricolage text-[14px] w-full"})]})}),(0,a.jsx)(w,{className:"text-red-400 text-xs px-4"})]})}),(0,a.jsx)(x,{control:B.control,name:"Password",render:({field:e})=>(0,a.jsxs)(f,{children:[(0,a.jsx)(b,{children:(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)(F.A,{className:"absolute left-5 top-1/2 -translate-y-1/2 text-white/45 h-4 w-4 pointer-events-none"}),(0,a.jsx)(v.p,{type:k?"text":"password",placeholder:d.auth.new_password,...e,className:"bg-white/5 hover:bg-white/10 focus:bg-white/10 border border-white/10 focus:border-white/20 text-white placeholder:text-white/40 rounded-full h-[50px] pl-12 pr-12 transition-all duration-200 shadow-none font-bricolage text-[14px] w-full"}),(0,a.jsx)("button",{type:"button",onClick:()=>C(!k),className:"absolute right-5 top-1/2 -translate-y-1/2 text-white/45 hover:text-white transition-colors cursor-pointer",children:k?(0,a.jsx)(A.A,{className:"h-4 w-4"}):(0,a.jsx)(R.A,{className:"h-4 w-4"})})]})}),(0,a.jsx)(w,{className:"text-red-400 text-xs px-4"})]})}),(0,a.jsxs)("div",{className:"flex items-center justify-between px-2",children:[(0,a.jsx)("a",{onClick:W,className:"text-white/45 hover:text-white/80 transition-colors cursor-pointer text-[14px] font-bricolage",children:d.auth.forgot_password||"Forgot Password?"}),(0,a.jsx)(c.$,{type:"submit",className:"h-[50px] px-6 rounded-full bg-[#8E8EFF]/10 hover:bg-[#8E8EFF]/20 text-[#8E8EFF] border border-[#8E8EFF]/15 font-bricolage text-[15px] font-bold uppercase transition-all duration-300 shadow-lg flex items-center justify-center",disabled:p,children:p?d.auth.signing_up:d.auth.sign_up})]})]})})]})}var V=r(5772);function q({redirection:e,onSuccess:t}){let{language:r}
1=(0,L.n)(),o=M.P[r],[n,i]=(0,s.useState)(!1),d=(0,D.useGlobalStore)(e=>e.current_user),[u,h]=(0,s.useState)(!1),p=(0,l.rd)();async function x(){if(!n)return void I.oR.error(o.auth.apple_not_ready);if(!u){h(!0);try{let r=await window.AppleID.auth.signIn(),a=r.authorization.id_token,s=r.user,n=await (0,z.l3)({Provider:"apple",Token:a,FirstName:s?.name?.firstName||d?.FirstName,LastName:s?.name?.lastName||d?.LastName,GuestUserId:d?.Id,IsWeb:!0});n.Success?(U.pl.login("apple"),I.oR.success(o.auth.apple_login_success),sessionStorage.setItem("just_logged_in","true"),t&&t(),!0===e&&p.push("/")):I.oR.error(n.Message||o.auth.google_sign_in_failed)}catch(e){console.error("❌ Apple Sign-In error:",e),e?.error==="popup_closed_by_user"?I.oR.info(o.auth.sign_in_cancelled):e?.error==="invalid_request"?I.oR.error(o.auth.apple_config_error):I.oR.error(e.message||o.auth.google_sign_in_failed)}finally{h(!1)}}}return(0,s.useEffect)(()=>{let e=document.createElement("script");return e.src="https://appleid.cdn-apple.com/appleauth/static/jsapi/appleid/1/en_US/appleid.auth.js",e.async=!0,e.onload=()=>{let e="app.sugary.service";if(!e){console.error("❌ NEXT_PUBLIC_APPLE_CLIENT_ID is not configured!"),I.oR.error(o.auth.apple_config_error);return}try{window.AppleID?.auth.init({clientId:e,scope:"email name",redirectURI:"https://sugary.me/callbacks/authentication/apple",usePopup:!0}),i(!0)}catch(e){console.error("❌ Apple Sign-In initialization failed:",e),I.oR.error(o.auth.apple_init_failed)}},e.onerror=()=>{console.error("❌ Failed to load Apple Sign-In script"),I.oR.error(o.auth.apple_load_failed)},document.head.appendChild(e),()=>{e.parentNode&&e.parentNode.removeChild(e)}},[]),(0,a.jsxs)(c.$,{type:"button",onClick:x,disabled:!n||u,className:"shadow-lg bg-white/10 hover:bg-white/20 text-white font-bricolage text-[15px] font-medium h-[50px] py-6 px-6 rounded-full flex items-center justify-center gap-3 transition-all duration-200 w-full disabled:opacity-50 disabled:cursor-not-allowed",children:[(0,a.jsx)(V.default,{src:"/sugary-web-assets/icons/apple.svg",alt:"Apple",width:18,height:18,className:"object-contain flex-shrink-0"}),u?o.auth.signing_in_apple:o.auth.sign_in_apple]})}function B({onSuccess:e,redirection:t}){let{language:r}=(0,L.n)(),o=M.P[r],[n,i]=(0,s.useState)(!1),[d,u]=(0,s.useState)(!1),h=(0,D.useGlobalStore)(e=>e.current_user),p=(0,l.rd)();async function x(){if(n&&!d){u(!0);try{window.google.accounts.oauth2.initTokenClient({client_id:"656004583891-d4or3qq4eqfimten3l1lm1e51cnnqut8.apps.googleusercontent.com",scope:"email profile https://www.googleapis.com/auth/user.gender.read https://www.googleapis.com/auth/user.birthday.read",callback:async r=>{try{if(r.error){console.log("Google OAuth cancelled or denied:",r.error),"popup_closed"!==r.error&&"access_denied"!==r.error&&I.oR.error(o.auth.google_sign_in_failed);return}if(!r||!r.access_token){console.error("No access token received",r),I.oR.error(o.auth.google_access_token_failed);return}let a=r.access_token,s={Provider:"google",Token:a,GuestUserId:h?.Id,IsWeb:!0},n=await (0,z.l3)(s);n?.Success?(U.pl.login("google"),e?.(),!0===t&&p.push("/"),sessionStorage.setItem("just_logged_in","true")):(console.error("socialLoginGoogle failed:",n),I.oR.error(n?.Message||o.auth.google_sign_in_failed))}catch(e){console.error("People API / social login error:",e),I.oR.error(e?.message||o.auth.google_sign_in_failed)}finally{u(!1)}},error_callback:e=>{e?.type!=="popup_closed"&&console.error("Google OAuth error callback:",e),u(!1)}}).requestAccessToken({prompt:"consent"})}catch(e){console.error("Google OAuth flow error:",e),I.oR.error(e?.message||o.auth.google_sign_in_failed),u(!1)}}}return(0,s.useEffect)(()=>{if(window.google?.accounts?.oauth2)return void i(!0);let e=document.createElement("script");e.src="https://accounts.google.com/gsi/client",e.async=!0,e.defer=!0,e.onload=()=>i(!0),e.onerror=()=>{console.error("Failed to load Google SDK"),I.oR.error(o.auth.google_sdk_load_failed)},document.head.appendChild(e)},[]),(0,a.jsx)("div",{className:"",children:(0,a.jsxs)(c.$,{type:"button",onClick:x,disabled:!n||d,className:"w-full cursor-pointer flex gap-3 items-center justify-center bg-white/10 px-4 h-[50px] py-6 rounded-full font-bricolage text-[15px] font-medium hover:bg-white/20 transition-all ease-in duration-200 shadow-xl text-white",children:[!d&&(0,a.jsx)(V.default,{src:"/sugary-web-assets/icons/google.svg",alt:"Google",width:22,height:22,className:"object-contain flex-shrink-0"}),d?(0,a.jsxs)("div",{className:"wrapper py-1",children:[(0,a.jsx)("div",{className:"wrapperblue ball"}),(0,a.jsx)("div",{className:"wrapperred ball"}),(0,a.jsx)("div",{className:"wrapperyellow ball"}),(0,a.jsx)("div",{className:"wrappergreen ball"})]}):(0,a.jsx)("p",{className:"text_white",children:o.auth.continue_google})]})})}var W=r(22043);function Y({onSuccess:e,redirection:t,showMerchantButton:r}){let{language:d}=(0,L.n)(),u=M.P[d],p=n.Ik({UserName:n.Yj().email(u.auth.invalid_email),Password:n.Yj().min(6,u.auth.password_min_length)}),m=(0,D.useGlobalStore)(e=>
1e.current_user),g=(0,l.rd)(),[y,j]=(0,s.useState)(!1),[_,N]=(0,s.useState)(null),[G,T]=(0,s.useState)(!1),[X,K]=(0,s.useState)(!1),[J,Z]=(0,s.useState)(!1),H=(0,o.mN)({resolver:(0,i.u)(p),defaultValues:{UserName:"",Password:""},mode:"onChange"});async function Q(r){j(!0),N(null);try{let a=await (0,z.g1)({...r,GuestUserId:m?.Id});a.Success?(U.pl.login("email"),e&&e(),(0,I.oR)(u.auth.logged_in_success),!0===t&&g.push("/"),sessionStorage.setItem("just_logged_in","true")):N(a.Message||u.auth.login_failed)}catch(e){N(e.message||u.auth.network_error)}j(!1)}let ee=async()=>{let e=H.getValues("UserName");if(!e)return void I.oR.error(u.auth.invalid_email||"Please enter your email first.");try{let t=`${P.u4.PASSWORD_RESET_LINK}?email=${encodeURIComponent(e)}&userType=customer`,r=await $.u.get(t),a=await r.json();a?.Success?I.oR.success(u.auth.reset_link_sent):I.oR.error(a?.Message||u.auth.reset_link_failed)}catch(e){console.error(e),I.oR.error(u.auth.network_error)}};return(0,a.jsxs)("div",{className:"w-full flex flex-col gap-4",children:[(0,a.jsxs)("div",{className:"space-y-3 w-full",children:[(0,a.jsx)(B,{onSuccess:e,redirection:t}),(0,a.jsx)(q,{onSuccess:e,redirection:t})]}),(0,a.jsxs)("div",{className:"relative flex items-center justify-center w-full",children:[(0,a.jsx)(k,{className:"flex-1 bg-white/10"}),(0,a.jsx)("span",{className:"px-4 text-center text-sm font-normal uppercase text-white/40",children:u.auth.or_using_email}),(0,a.jsx)(k,{className:"flex-1 bg-white/10"})]}),X?(0,a.jsxs)("div",{className:"space-y-4 w-full",children:[(0,a.jsx)(O,{onSuccess:e,redirection:t}),(0,a.jsxs)("p",{className:"text-center text-[14px] font-bricolage text-white/50",children:[u.auth.already_have_account||"Already have an account?"," ",(0,a.jsx)("span",{className:"cursor-pointer underline text-[#8E8EFF] font-bold hover:text-[#8E8EFF]/80 transition-colors",onClick:()=>{K(!1),T(!0)},children:u.auth.sign_in||"Login"})]})]}):G?(0,a.jsx)(h,{...H,children:(0,a.jsxs)("form",{onSubmit:H.handleSubmit(Q),className:"space-y-4 w-full",noValidate:!0,children:[_&&(0,a.jsxs)("div",{className:"flex items-center gap-2 text-sm text-red-700",children:[(0,a.jsx)(S.A,{className:"h-4 w-4 shrink-0"}),(0,a.jsx)("span",{children:_})]}),(0,a.jsx)(x,{control:H.control,name:"UserName",render:({field:e,fieldState:t})=>(0,a.jsxs)(f,{children:[(0,a.jsx)(b,{children:(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)(E.A,{className:"absolute left-5 top-1/2 -translate-y-1/2 text-white/45 h-4 w-4 pointer-events-none"}),(0,a.jsx)(v.p,{type:"text",inputMode:"email",placeholder:u.auth.email_address||"Email Address",...e,className:"bg-white/5 hover:bg-white/10 focus:bg-white/10 border border-white/10 focus:border-white/20 text-white placeholder:text-white/40 rounded-full h-[50px] pl-12 pr-6 transition-all duration-200 shadow-none font-bricolage text-[14px]",autoComplete:"email","aria-invalid":!!t.error})]})}),(0,a.jsx)(w,{className:"text-red-400 text-xs px-4"})]})}),(0,a.jsx)(x,{control:H.control,name:"Password",render:({field:e,fieldState:t})=>(0,a.jsxs)(f,{children:[(0,a.jsx)(b,{children:(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)(F.A,{className:"absolute left-5 top-1/2 -translate-y-1/2 text-white/45 h-4 w-4 pointer-events-none"}),(0,a.jsx)(v.p,{type:J?"text":"password",placeholder:u.auth.password,...e,className:"bg-white/5 hover:bg-white/10 focus:bg-white/10 border border-white/10 focus:border-white/20 text-white placeholder:text-white/40 rounded-full h-[50px] pl-12 pr-12 transition-all duration-200 shadow-none font-bricolage text-[14px]",autoComplete:"current-password","aria-invalid":!!t.error}),(0,a.jsx)("button",{type:"button",onClick:()=>Z(!J),className:"absolute right-5 top-1/2 -translate-y-1/2 text-white/45 hover:text-white transition-colors cursor-pointer",children:J?(0,a.jsx)(A.A,{className:"h-4 w-4"}):(0,a.jsx)(R.A,{className:"h-4 w-4"})})]})}),(0,a.jsx)(w,{className:"text-red-400 text-xs px-4"})]})}),(0,a.jsxs)("div",{className:"flex items-center justify-between px-2",children:[(0,a.jsx)("a",{onClick:ee,className:"text-white/45 hover:text-white/80 transition-colors cursor-pointer text-[14px] font-bricolage",children:u.auth.forgot_password}),(0,a.jsx)(c.$,{type:"submit",className:"h-[50px] px-6 rounded-full bg-[#8EDBFF]/10 hover:bg-[#8EDBFF]/20 text-[#8EDBFF] border border-[#8EDBFF]/15 font-bricolage text-[15px] font-bold uppercase transition-all duration-300 shadow-lg flex items-center justify-center",disabled:y,children:y?u.auth.signing_in:u.auth.sign_in})]}),(0,a.jsxs)("p",{className:"text-center text-[14px] font-bricolage text-white/50 mt-6",children:[u.auth.dont_have_account||"Don't have an account?"," ",(0,a.jsx)("span",{className:"cursor-pointer underline text-[#8E8EFF] font-bold hover:text-[#8E8EFF]/80 transition-colors",onClick:()=>{T(!1),K(!0)},children:u.auth.sign_up||"Signup"})]})]})}):(0,a.jsxs)("div",{className:"space-y-3 w-full",children:[(0,a.jsxs)("div",{className:"grid grid-cols-2 gap-4 w-full",children:[(0,a.jsxs)(c.$,{type:"button",onClick:()=>T(!0),className:"flex items-center justify-center gap-2 h-[50px] rounded-full bg-[#8EDBFF]/10 hover:bg-[#8EDBFF]/20 text-white font-bricolage text-[15px] font-bold uppercase transition-all duration-300 shadow-md border border-[#8EDBFF]/15 cursor-pointer",children:[(0,a.jsx)(V.default,{src:"/sugary-web-assets/images/message.svg",alt:"Login",width:20,height:20,className:"object-contain"}),(0,a.jsx)("span",{children:u.auth.sign_in||"Login"})]}),(0,a.jsxs)(c.$,{type:"button",onClick:()=>K(!0),className:"flex items-center justify-center gap-2 h-[50px] rounded-full bg-[#8E8EFF]/10 hover:bg-[#8E8EFF]/20 text-white font-bricolage text-[15px] font-bold uppercase transition-all duration-300 shadow-md border border-[#8E8EFF]/15 cursor-pointer",children:[(0,a.jsx)(V.default,{src:"/sugary-web-assets/images/open-message.svg",alt:"Signup",width:20,height:20,className:"object-contain"}),(0,a.jsx)("span",{children:u.auth.sign_up||"Signup"})]})]}),r&&(0,a.jsx)(c.$,{type:"button",asChild:!0,className:"w-full flex items-center justify-center gap-2 h-[50px] rounded-full bg-white/10 hover:bg-white/20 text-white font-bricolage text-[15px] font-bold uppercase transition-all duration-300 shadow-md border border-white/15 cursor-pointer",children:(0,a.jsxs)(l.N_,{href:W.m6,target:"_blank",rel:"noopener noreferrer",onClick:()=>{e&&e()},children:[(0,a.jsx)(C.A,{size:18}),(0,a.jsx)("span",{children:u.auth.login_as_merchant||"Login as Merchant"})]})})]}),(0,a.jsxs)("p",{className:"text-sm text-white/30 font-normal text-center px-4 font-bricolage",children:[u.auth.terms_agreement||"By continuing, you acknowledge that you have read & agree to Sugary's"," ",(0,a.jsx)(l.N_,{href:"/terms",onClick:()=>{e&&e()},className:"underline hover:text-white/60 transition-colors font-medium",children:u.auth.terms_of_service||"Terms of Service"})," ",u.auth.and||"&"," ",(0,a.jsx)(l.N_,{href:"/privacy",onClick:()=>{e&&e()},className:"underline hover:text-white/60 transition-colors font-medium",children:u.auth.privacy_policy||"Privacy Policy"}),"."]})]})}},13545:(e,t,r)=>{r.d(t,{A:()=>a});let a=(0,r(78340).A)("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"}]])},15411:(e,t,r)=>{r.d(t,{A:()=>a});let a=(0,r(78340).A)("eye-off",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]])},18460:(e,t,r)=>{r.d(t,{F:()=>n});var a=r(29722);let s=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,o=a.$,n=(e,t)=>r=>{var a;if((null==t?void 0:t.variants)==null)return o(e,null==r?void 0:r.class,null==r?void 0:r.className);let{variants:n,defaultVariants:i}=t,l=Object.keys(n).map(e=>{let t=null==r?void 0:r[e],a=null==i?void 0:i[e];if(null===t)return null;let o=s(t)||s(a);return n[e][o]}),c=r&&Object.entries(r).reduce((e,t)=>
1{let[r,a]=t;return void 0===a||(e[r]=a),e},{});return o(e,l,null==t||null==(a=t.compoundVariants)?void 0:a.reduce((e,t)=>{let{class:r,className:a,...s}=t;return Object.entries(s).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...i,...c}[t]):({...i,...c})[t]===r})?[...e,r,a]:e},[]),null==r?void 0:r.class,null==r?void 0:r.className)}},22043:(e,t,r)=>{r.d(t,{m6:()=>a});let a="https://store.sugary.me/signup"},25777:(e,t,r)=>{r.d(t,{A:()=>a});let a=(0,r(78340).A)("lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]])},39658:(e,t,r)=>{r.d(t,{p:()=>o});var a=r(95155);r(12115);var s=r(91337);function o({className:e,type:t,...r}){return(0,a.jsx)("input",{type:t,"data-slot":"input",className:(0,s.cn)("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground border-input h-9 w-full min-w-0 rounded-md border bg-background px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",e),...r})}},41159:(e,t,r)=>{r.d(t,{A:()=>a});let a=(0,r(78340).A)("store",[["path",{d:"M15 21v-5a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v5",key:"slp6dd"}],["path",{d:"M17.774 10.31a1.12 1.12 0 0 0-1.549 0 2.5 2.5 0 0 1-3.451 0 1.12 1.12 0 0 0-1.548 0 2.5 2.5 0 0 1-3.452 0 1.12 1.12 0 0 0-1.549 0 2.5 2.5 0 0 1-3.77-3.248l2.889-4.184A2 2 0 0 1 7 2h10a2 2 0 0 1 1.653.873l2.895 4.192a2.5 2.5 0 0 1-3.774 3.244",key:"o0xfot"}],["path",{d:"M4 10.95V19a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8.05",key:"wn3emo"}]])},42442:(e,t,r)=>{r.d(t,{DX:()=>u,TL:()=>d});var a,s=r(12115),o=r(47527),n=r(95155),i=Symbol.for("react.lazy"),l=(a||(a=r.t(s,2)))[" use ".trim().toString()];function c(e){var t;return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===i&&"_payload"in e&&"object"==typeof(t=e._payload)&&null!==t&&"then"in t}function d(e){var t;let r,a=(t=e,(r=s.forwardRef((e,t)=>{let{children:r,...a}=e;if(c(r)&&"function"==typeof l&&(r=l(r._payload)),s.isValidElement(r)){var n;let e,i,l=(n=r,(i=(e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?n.ref:(i=(e=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?n.props.ref:n.props.ref||n.ref),c=function(e,t){let r={...t};for(let a in t){let s=e[a],o=t[a];/^on[A-Z]/.test(a)?s&&o?r[a]=(...e)=>{let t=o(...e);return s(...e),t}:s&&(r[a]=s):"style"===a?r[a]={...s,...o}:"className"===a&&(r[a]=[s,o].filter(Boolean).join(" "))}return{...e,...r}}(a,r.props);return r.type!==s.Fragment&&(c.ref=t?(0,o.t)(t,l):l),s.cloneElement(r,c)}return s.Children.count(r)>1?s.Children.only(null):null})).displayName=`${t}.SlotClone`,r),i=s.forwardRef((e,t)=>{let{children:r,...o}=e;c(r)&&"function"==typeof l&&(r=l(r._payload));let i=s.Children.toArray(r),d=i.find(p);if(d){let e=d.props.children,r=i.map(t=>
1t!==d?t:s.Children.count(e)>1?s.Children.only(null):s.isValidElement(e)?e.props.children:null);return(0,n.jsx)(a,{...o,ref:t,children:s.isValidElement(e)?s.cloneElement(e,void 0,r):null})}return(0,n.jsx)(a,{...o,ref:t,children:r})});return i.displayName=`${e}.Slot`,i}var u=d("Slot"),h=Symbol("radix.slottable");function p(e){return s.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===h}},47527:(e,t,r)=>{r.d(t,{s:()=>n,t:()=>o});var a=r(12115);function s(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function o(...e){return t=>{let r=!1,a=e.map(e=>{let a=s(e,t);return r||"function"!=typeof a||(r=!0),a});if(r)return()=>{for(let t=0;t<a.length;t++){let r=a[t];"function"==typeof r?r():s(e[t],null)}}}}function n(...e){return a.useCallback(o(...e),e)}},92289:(e,t,r)=>{r.d(t,{A:()=>a});let a=(0,r(78340).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"}]])}}]);

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.