1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,2839,e=>{"use strict";var t=e.i(98134),r=e.i(7284);e.s(["default",0,({className:e})=>(0,t.jsxs)("svg",{className:(0,r.default)("animate-spin h-4 w-4 mr-2 inline ml-2",e),viewBox:"0 0 24 24",fill:"none",children:[(0,t.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,t.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})]})])},7284,e=>{"use strict";e.s(["default",0,function(){for(var e,t,r=0,s="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=function e(t){var r,s,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t)if(Array.isArray(t)){var a=t.length;for(r=0;r<a;r++)t[r]&&(s=e(t[r]))&&(i&&(i+=" "),i+=s)}else for(s in t)t[s]&&(i&&(i+=" "),i+=s);return i}(e))&&(s&&(s+=" "),s+=t);return s}])},11872,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var s={default:function(){return d},getImageProps:function(){return c}};for(var i in s)Object.defineProperty(r,i,{enumerable:!0,get:s[i]});let a=e.r(81258),l=e.r(84330),o=e.r(1793),n=a._(e.r(21223));function c(e){let{props:t}=(0,l.getImgProps)(e,{defaultLoader:n.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[75],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,r]of Object.entries(t))void 0===r&&delete t[e];return{props:t}}let d=o.Image},87106,(e,t,r)=>{t.exports=e.r(11872)},93012,e=>{"use strict";var t=e.i(98134),r=e.i(7284),s=e.i(2839),i=e.i(99352);e.s(["default",0,({as:e="button",onClick:a,href:l,target:o,disabled:n,children:c,className:d,type:u,loading:p,ref:f,variant:m="primary"})=>{let h="rounded-lg font-semibold p-3 text-center transition-opacity hover:opacity-80",x={primary:"bg-black text-white",secondary:"border"};return"a"===e&&l?(0,t.jsx)(i.default,{href:l,target:o,className:(0,r.default)(h,x[m],p?"opacity-70 pointer-events-none":"cursor-pointer",n&&"opacity-50 pointer-events-none",d),children:c}):(0,t.jsxs)(e,{ref:f,onClick:a,disabled:n||p,className:(0,r.default)(h,x[m],p?"opacity-70 pointer-events-none":"cursor-pointer",n&&"opacity-50 pointer-events-none",d),type:u,children:[c,p&&(0,t.jsx)(s.default,{})]})}])},47184,e=>{"use strict";var t=e.i(98134),r=e.i(7284);e.s(["default",0,({className:e,placeholder:s,type:i,error:a,errorText:l,prependElement:o,infoText:n,disabled:c,required:d,defaultValue:u,...p})=>(0,t.jsxs)("div",{className:e,children:[(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("input",{type:i,className:(0,r.default)("border rounded-lg w-full border-grey-2 px-3.5 py-2.5 focus:outline-none",c&&"opacity-70 pointer-events-none",a&&"border-b-red border-b-2"),defaultValue:u,required:d,placeholder:s,...p}),o]}),n&&(0,t.jsx)("span",{className:"text-[10px] text-grey",children:n}),a&&l&&(0,t.jsx)("span",{className:"text-red text-[10px] block",children:l})]})])},66965,e=>{"use strict";var t=e.i(98134),r=e.i(93012),s=e.i(47184),i=e.i(47979),a=e.i(77438),l=e.i(87106),o=e.i(99352),n=e.i(24601),c=e.i(75201),d=e.i(68345),u=e.i(13596);let p=(0,u.object)({email:(0,u.string)().required("Email is required").email("Invalid email"),password:(0,u.string)().required("Password is required").min(6,"Password must be at least 6 characters")});e.s(["default",0,({redirectTo:e="/profile",email:u})=>{let{register:f,handleSubmit:m,formState:{errors:h}}=(0,d.useForm)({resolver:(0,a.yupResolver)(p),defaultValues:{email:u}}),[x,g]=(0,c.useState)(!1),[C,b]=(0,c.useState)(),[v,j]=(0,c.useState)(!1),w=(0,n.useRouter)();async function y({email:t,password:r}){j(!0);let s=await fetch("/api/auth/login",{method:"POST",body:JSON.stringify({email:t,password:r,redirectTo:e})}),i=await s.json();if(i.error&&b(i.error),i.redirect){w.replace(i.redirect),w.refresh();return}j(!1)}return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.default,{redirectTo:e}),(0,t.jsxs)("div",{className:"flex items-center mt-6 mb-5",children:[(0,t.jsx)("span",{className:"grow h-[1px] bg-lightgrey"}),(0,t.jsx)("span",{className:"mx-3 shrink-0 text-sm text-grey",children:"or"}),(0,t.jsx)("span",{className:"grow h-[1px] bg-lightgrey"})]}
1),(0,t.jsxs)("form",{onSubmit:m(y),noValidate:!0,children:[C&&(0,t.jsxs)("p",{className:"text-red text-[10px] flex mb-1.5",children:[(0,t.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"mr-1",children:(0,t.jsx)("path",{d:"M6.41699 9.91602H7.58366V6.41602H6.41699V9.91602ZM7.00033 5.24935C7.1656 5.24935 7.30414 5.19345 7.41595 5.08164C7.52776 4.96984 7.58366 4.83129 7.58366 4.66602C7.58366 4.50074 7.52776 4.3622 7.41595 4.25039C7.30414 4.13859 7.1656 4.08268 7.00033 4.08268C6.83505 4.08268 6.69651 4.13859 6.5847 4.25039C6.4729 4.3622 6.41699 4.50074 6.41699 4.66602C6.41699 4.83129 6.4729 4.96984 6.5847 5.08164C6.69651 5.19345 6.83505 5.24935 7.00033 5.24935ZM7.00033 12.8327C6.19338 12.8327 5.43505 12.6796 4.72533 12.3733C4.0156 12.0671 3.39824 11.6514 2.87324 11.1264C2.34824 10.6014 1.93262 9.98407 1.62637 9.27435C1.32012 8.56463 1.16699 7.80629 1.16699 6.99935C1.16699 6.1924 1.32012 5.43407 1.62637 4.72435C1.93262 4.01463 2.34824 3.39727 2.87324 2.87227C3.39824 2.34727 4.0156 1.93164 4.72533 1.62539C5.43505 1.31914 6.19338 1.16602 7.00033 1.16602C7.80727 1.16602 8.5656 1.31914 9.27533 1.62539C9.98505 1.93164 10.6024 2.34727 11.1274 2.87227C11.6524 3.39727 12.068 4.01463 12.3743 4.72435C12.6805 5.43407 12.8337 6.1924 12.8337 6.99935C12.8337 7.80629 12.6805 8.56463 12.3743 9.27435C12.068 9.98407 11.6524 10.6014 11.1274 11.1264C10.6024 11.6514 9.98505 12.0671 9.27533 12.3733C8.5656 12.6796 7.80727 12.8327 7.00033 12.8327ZM7.00033 11.666C8.3031 11.666 9.40658 11.2139 10.3107 10.3098C11.2149 9.4056 11.667 8.30213 11.667 6.99935C11.667 5.69657 11.2149 4.5931 10.3107 3.68893C9.40658 2.78477 8.3031 2.33268 7.00033 2.33268C5.69755 2.33268 4.59408 2.78477 3.68991 3.68893C2.78574 4.5931 2.33366 5.69657 2.33366 6.99935C2.33366 8.30213 2.78574 9.4056 3.68991 10.3098C4.59408 11.2139 5.69755 11.666 7.00033 11.666Z",fill:"#FF3B30"})}),C]}),(0,t.jsx)(s.default,{className:"mt-3.5",placeholder:"Email",...f("email"),error:!!h.email,errorText:h.email?.message}),(0,t.jsx)(s.default,{className:"mt-3.5",placeholder:"Password",...f("password"),error:!!h.password,errorText:h.password?.message,type:x?"text":"password",prependElement:(0,t.jsx)("button",{type:"button",className:"absolute right-3.5 top-3 cursor-pointer",onClick:()=>g(!x),children:(0,t.jsx)(l.default,{src:`/icons/auth/visibility_${x?"on":"off"}.svg`,width:20,height:20,alt:"toggle password visibility"})})}),(0,t.jsx)(o.default,{href:"/auth/forgot-password",className:"mt-2.5 text-blue text-[10px] underline",children:"Recover password"}),(0,t.jsx)(r.default,{type:"submit",className:"mt-6 w-full",loading:v,children:"Sign In"})]})]})}])},47979,e=>{"use strict";var t=e.i(98134),r=e.i(59141),s=e.i(7284);e.i(18925);var i=e.i(51606),a=e.i(87106),l=e.i(24601);let o={google:r.googleProvider,facebook:r.facebookProvider};e.s(["default",0,({disabled:e,onDisabledClick:n,redirectTo:c="/profile"})=>{let d=(0,l.useRouter)();async function u(e){let t=await (0,i.signInWithPopup)(r.default,o[e]);if("facebook"===e&&!t.user.email)return alert("Can't get your Facebook email");let s=await t.user.getIdToken(),a=t.user.uid,l=await fetch("/api/auth/login/social",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({idToken:s,uid:a,redirectTo:c})}),n=await l.json();if(n.redirect){d.replace(n.redirect),d.refresh();return}}return(0,t.jsxs)("div",{className:(0,s.default)(e&&"opacity-50"),onClick:()=>n&&e&&n(),children:[(0,t.jsxs)("button",{onClick:()=>!e&&u("google"),disabled:e,className:(0,s.default)("border border-grey font-medium py-2.5 rounded-lg w-full cursor-pointer flex items-center transition-[background-color] hover:bg-[#F2F2F7]",e&&"pointer-events-none"),children:[(0,t.jsx)(a.default,{className:"ml-3.5",src:"/icons/auth/google.svg",width:16,height:16,alt:"google"}),(0,t.jsx)("span",{className:"mx-auto -translate-x-1",children:"Continue with Google"})]}),(0,t.jsxs)("button",{onClick:()=>!e&&u("facebook"),disabled:e,className:(0,s.default)("relative mt-3.5 border border-grey font-medium py-2.5 rounded-lg w-full cursor-pointer flex items-center transition-[background-color] hover:bg-[#F2F2F7]",e&&"pointer-events-none"),children:[(0,t.jsx)(a.default,{className:"ml-3.5",src:"/icons/auth/facebook.svg",width:16,height:16,alt:"facebook"}),(0,t.jsx)("span",{className:"mx-auto -translate-x-1",children:"Continue with Facebook"})]})]})}])},23477,e=>{"use strict";var t=e.i(98134),r=e.i(75201),s=e.i(90072);e.i(47378);var i=e.i(8692),a=e.i(87106);e.s(["default",0,()=>{let e=(0,r.useRef)(null);return(0,t.jsxs)(s.Swiper,{modules:[i.Autoplay],onSwiper:t=>{e.current=t},autoplay:{delay:4e3},speed:400,loop:!0,className:"size-full rounded-2xl",children:[(0,t.jsx)(s.SwiperSlide,{children:(0,t.jsx)("div",{className:"relative size-full",children:(0,t.jsx)(a.default,{src:"/images/auth/1.jpg",fill:!0,alt:"login",className:"object-cover"})})}),(0,t.jsx)(s.SwiperSlide,{children:(0,t.jsxs)("div",{className:"@container relative size-full bg-linear-to-b from-[#101221] to-[#2b3281] select-none",children:[(0,t.jsxs)("h2",{className:"absolute top-[36.84%] left-1/2 -translate-x-1/2 w-[83%] text-center text-white font-semibold leading-[1.13] tracking-[-0.02em] text-[clamp(20px,6.8cqw,37px)]",children:["Buy without spending.",(0,t.jsx)("br",{}),"Shop with your earnings."]}),(0,t.jsx)("svg",{className:"absolute top-[61.76%] left-1/2 -translate-x-1/2 w-[14.8%] h-auto",viewBox:"0 0 82.1739 46.6216",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M65.8248 1.06002C63.7367 0.397508 61.516 0.0331257 59.1959
10.0331257C47.2306 0.0331257 38.8118 7.58578 36.0277 20.7035C34.271 28.8524 29.929 32.9932 23.1675 32.9932C20.6817 32.9932 18.3947 32.165 16.5386 30.7737C13.7875 28.7199 11.9646 25.4736 11.9646 21.7967C11.9646 15.6353 17.0026 10.6002 23.1675 10.6002C26.1505 10.6002 28.9347 11.7596 31.056 13.8465C32.3486 10.2358 34.0721 7.12202 36.1603 4.40571C32.4149 1.62316 27.9072 0 23.1675 0C11.136 0.0331257 1.35826 9.80519 1.35826 21.8298C1.35826 31.5356 7.7552 39.7839 16.5386 42.5665C18.6267 43.229 20.8474 43.5934 23.1675 43.5934C35.0996 43.5934 43.5184 36.0407 46.3026 22.923C48.0592 14.6415 52.3018 10.6333 59.1959 10.6333C61.6817 10.6333 63.9687 11.4615 65.8248 12.8528C68.5758 14.9065 70.3988 18.1529 70.3988 21.8298C70.3988 27.9912 65.3608 33.0263 59.1959 33.0263C56.2128 33.0263 53.3955 31.8669 51.3074 29.7468C50.0148 33.3575 48.2912 36.4713 46.2031 39.1877C49.9485 42.0033 54.4562 43.5934 59.229 43.5934C71.2606 43.5934 81.0383 33.8213 81.0383 21.7967C81.0383 12.0909 74.6413 3.84258 65.858 1.06002H65.8248Z",fill:"white"})})]})}),(0,t.jsxs)("div",{className:"absolute right-8.5 bottom-6.5 z-10",children:[(0,t.jsx)("button",{className:"cursor-pointer",onClick:()=>e.current?.slidePrev(),children:(0,t.jsx)(a.default,{src:"/icons/auth/arrow_circle_left.svg",width:32,height:32,alt:"arrow"})}),(0,t.jsx)("button",{className:"cursor-pointer ml-1",onClick:()=>e.current?.slideNext(),children:(0,t.jsx)(a.default,{src:"/icons/auth/arrow_circle_left.svg",width:32,height:32,alt:"arrow",className:"rotate-180"})})]})]})}])}]);
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.