1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[107,5787,6873],{91:(e,r,t)=>{"use strict";t.d(r,{A:()=>l});var n=t(23798);t(90424);var a=t(7802),s=t(71915);let l=e=>{let{control:r,getFieldState:t,optional:l=!1,noMargin:o=!1,value:i,name:u="mobileNumber",onChange:c=()=>!1}=e;return(0,n.jsxs)("div",{className:"flex flex-col gap-3 ".concat(!o&&"mb-6"),children:[(0,n.jsxs)("div",{className:"flex justify-between",children:[(0,n.jsxs)("label",{htmlFor:"mobno",className:"text-sm text-true-gray-800",children:["Mobile Number",l&&(0,n.jsx)("span",{className:"text-xs text-true-gray-400",children:" (optional)"})]}),(0,n.jsx)("p",{className:"text-sm text-red-600",children:(()=>{let{invalid:e,error:r}=t("mobileNumber");if(e)return r.message})()})]}),(0,n.jsx)(a.A,{id:"mobno",name:u,control:r,autoComplete:"tel",defaultCountry:"US",defaultValue:i,limitMaxLength:!0,addInternationalOption:!1,countryOptionsOrder:["US","CA","|","..."].filter(e=>"string"==typeof e&&""!==e.trim()&&"|"!==e&&"..."!==e),rules:{required:!l&&"required",onChange:c,validate:e=>!e||!!(0,s.h1)(e)||"invalid number"},placeholder:"Enter your mobile number",numberInputProps:{className:"rounded-lg py-[10px] placeholder:text-true-gray-400\n focus:ring-0 border-0"},className:"rounded-lg border pl-[10px] focus-within:border-primary\n ".concat((()=>{let{isTouched:e,isDirty:r,invalid:n}=t("mobileNumber");return(e||r)&&n?"border-red-600":"border-true-gray-200"})())})]})}},865:(e,r,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/register",function(){return t(6201)}])},6201:(e,r,t)=>{"use strict";t.r(r),t.d(r,{RegisterPage:()=>x,default:()=>b});var n=t(23798),a=t(21462),s=t(70643),l=t(48759),o=t(68584),i=t(97742),u=t.n(i),c=t(84676),d=t(9069),m=t(3919),f=t(27754),p=t(69440),g=t(36873),h=t(91);let x=()=>{let e=(0,o.useRouter)(),r=(0,a.useRef)(null),[t,i]=(0,a.useState)(null),[x,b]=(0,a.useState)(""),{control:y,setError:v,register:j,getValues:w,handleSubmit:N,getFieldState:A,formState:{isDirty:O,isValid:S,errors:C}}=(0,s.mN)({mode:"onTouched"}),{mutate:E,isLoading:P}=(0,l.n)({mutationFn:e=>(0,d.DY)(e),onSuccess:(r,t)=>{sessionStorage.setItem("verificationData",JSON.stringify(r)),e.push("/verification?email=".concat(encodeURIComponent(t.email)))},onError:e=>{var t;null==(t=r.current)||t.reset(),i(null);let{status:n,data:a}=e.response;v(409===n?"This number is already registered"===a.error?"mobileNumber":"email":"password",{type:n,message:a.error})}}),q=async e=>{if(!t)return void b("Please complete the CAPTCHA");b(""),delete e["conf-password"],E({...e,captchaToken:t})};return(0,n.jsx)(g.default,{img:"register.svg",title:"Sign Up",message:"Create your account in just a few simple steps! Share your name, mobile number, email address, and set a strong password to begin your journey with us. Rest assured, your details are protected and will enhance your personalized experience. We're thrilled to welcome you aboard!",imgText:"Discover the future at your fingertips! Browse our wide range of cutting-edge electronic items, add your desired products to the cart, and proceed to seamless checkout. Elevate your tech game with just a few clicks.",children:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("form",{onSubmit:N(q),className:"relative",children:[P&&(0,n.jsx)("div",{className:"absolute left-1/2 top-1/4 -translate-x-1/2",children:(0,n.jsx)(p.default,{})}),(0,n.jsxs)("div",{className:"flex flex-col",children:[(0,n.jsx)(f.A,{id:"name",name:"name",label:"Name",register:j,placeholder:"Enter your name",getFieldState:A,registerOptions:{required:"required",minLength:{value:2,message:"must be at least 2 characters long"},maxLength:{value:25,message:"Name must be less than 25 characters"}}}),(0,n.jsx)(f.A,{id:"email",name:"email",type:"email",label:"Email",register:j,getFieldState:A,registerOptions:{required:"required",pattern:{value:/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,message:"invalid email address"}},placeholder:"Enter your email address"}),(0,n.jsx)(h.A,{optional:!0,control:y,getFieldState:A}),(0,n.jsx)(f.A,{id:"pswd",name:"password",type:"password",label:"Password",register:j,getFieldState:A,placeholder:"Enter a password",registerOptions:{required:"required",minLength:{value:5,message:"Password must be at least 8 characters"},pattern:{value:/^(?=.*[a-z])(?=.*[A-Z])(?=.*[\d!@#$%^&*])/,message:"At least one uppercase, lowercase & number/symbol"}}}),(0,n.jsx)(f.A,{id:"pswd2",name:"conf-password",type:"password",label:"Confirm Password",register:j,getFieldState:A,placeholder:"Re-enter password",registerOptions:{required:"required",validate:e=>e===w("password")||"passwords do not match"}})]}),(0,n.jsxs)("div",{className:"mt-4",children:[(0,n.jsx)(c.A,{ref:r,
1sitekey:"6Lev1nAsAAAAAPzEx4nsMROXt5GEyiOb8urpVJrQ",onChange:e=>{i(e),b("")},onExpired:()=>i(null)}),x&&(0,n.jsx)("p",{className:"mt-1 text-sm text-red-600",children:x})]}),(0,n.jsx)("div",{className:"mt-4",children:(0,n.jsx)(m.default,{type:"submit",bold:!0,text:"Sign Up"})})]}),(0,n.jsxs)("div",{className:"mt-12 self-center",children:["Already have an account?"," ",(0,n.jsx)(u(),{className:"text-blue-500",href:"/login",children:"Sign In"})]})]})})},b=x},7802:(e,r,t)=>{"use strict";t.d(r,{A:()=>v});var n=t(27623),a=t(21462),s=t(70643),l=t(50084),o=t(86345),i=["Component","name","defaultValue","shouldUnregister","control","rules","onChange","onBlur"],u=["ref","onChange","onBlur"];function c(){return(c=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e}).apply(this,arguments)}function d(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}function m(e,r){if(null==e)return{};var t,n,a=function(e,r){if(null==e)return{};var t,n,a={},s=Object.keys(e);for(n=0;n<s.length;n++)t=s[n],r.indexOf(t)>=0||(a[t]=e[t]);return a}(e,r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(n=0;n<s.length;n++)t=s[n],!(r.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var f=function(e,r){var t,n=e.Component,l=e.name,f=e.defaultValue,p=e.shouldUnregister,g=e.control,h=e.rules,x=e.onChange,b=e.onBlur,y=m(e,i),v=function(e){if(Array.isArray(e))return e}(t=(0,o.A)(r))||function(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,a,s,l,o=[],i=!0,u=!1;try{s=(t=t.call(e)).next,!1;for(;!(i=(n=s.call(t)).done)&&(o.push(n.value),o.length!==r);i=!0);}catch(e){u=!0,a=e}finally{try{if(!i&&null!=t.return&&(l=t.return(),Object(l)!==l))return}finally{if(u)throw a}}return o}}(t,2)||function(e,r){if(e){if("string"==typeof e)return d(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return d(e,r)}}(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),j=v[0],w=v[1];f=void 0===f?null:f;var N=function(e){var r=e.ref,t=e.onChange,s=e.onBlur,l=m(e,u);(0,a.useImperativeHandle)(r,function(){return{focus:function(){j.current.focus()}}});var o=(0,a.useCallback)(function(e){void 0===e&&(e=null),t(e),x&&x(e)},[t,x]),i=(0,a.useCallback)(function(e){s(e),b&&b(e)},[s,b]);return a.createElement(n,c({},y,l,{ref:w,onChange:o,onBlur:i}))},A=(0,a.useCallback)(function(){j.current.focus()},[]);return a.createElement(s.xI,{control:g,name:l,defaultValue:f,shouldUnregister:p,rules:h,onFocus:A,render:function(e){return N(e.field||e)}})};(f=a.forwardRef(f)).propTypes={Component:l.elementType.isRequired,name:l.string.isRequired,defaultValue:l.string,shouldUnregister:l.bool,control:l.object,rules:l.object,onChange:l.func,onBlur:l.func};let p=f;var g=t(33094),h=t(1198),x=["metadata"];function b(){return(b=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e}).apply(this,arguments)}function y(e){var r=function(r,t){var n=r.metadata,s=function(e,r){if(null==e)return{};var t,n,a=function(e,r){if(null==e)return{};var t,n,a={},s=Object.keys(e);for(n=0;n<s.length;n++)t=s[n],r.indexOf(t)>=0||(a[t]=e[t]);return a}(e,r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(n=0;n<s.length;n++)t=s[n],!(r.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}(r,x);return a.createElement(p,b({},s,{ref:t,metadata:void 0===n?e:n,Component:g.A}))};return(r=a.forwardRef(r)).propTypes={metadata:h.y},r}y();let v=y(n.A)},36873:(e,r,t)=>{"use strict";t.r(r),t.d(r,{default:()=>l});var n=t(23798),a=t(97742),s=t.n(a);let l=e=>{let{img:r,imgText:t,title:a,message:l=null,children:o}=e,i=(0,n.jsx)("div",{className:"my-14 flex flex-col items-center justify-center gap-5",children:(0,n.jsxs)("div",{className:"flex flex-col sm:w-[350px] md:w-[280px] lg:w-[400px]",children:[(0,n.jsxs)("div",{className:"flex flex-col pb-11",children:[(0,n.jsx)("div",{className:"mb-2 text-[32px] font-semibold leading-[3rem] text-true-gray-800",children:a}),(0,n.jsx)("div",{className:"text-true-gray-400",children:l||"Lorem ipsum dolor sit amet consectetur. Cras quisque mi volutpat vitae ut vestibulum."})]}),o]})});return(0,n.jsxs)("div",{className:"flex min-h-screen",children:[(0,n.jsx)("div",{className:"hidden w-1/2 md:block",children:(0,n.jsxs)("div",{className:"h-full bg-[#fffbeb] p-14",children:[(0,n.jsx)(s(),{href:"/",className:"w-fit",children:(0,n.jsx)("img",{src:"/assets/logos/fazter.svg",alt:"Unique Electronic Gadgets Store USA",className:"h-[45px]"})}),(0,n.jsxs)("div",{className:"mx-auto flex h-full w-4/5 flex-col justify-center gap-14 text-center",children:[(0,n.jsx)("img",{src:"/assets/".concat(r),className:"mx-auto w-4/5"}),(0,n.jsx)("div",{className:"text-true-gray-500",children:t})]})]})}),(0,n.jsxs)("div",{className:"w-full overflow-y-scroll px-5 pt-10 sm:p-10 md:w-1/2 md:p-0",children:[(0,n.jsx)("div",{className:"w-[100px] md:hidden",children:(0,n.jsx)(s(),{href:"/",children:(0,n.jsx)("img",{src:"/assets/logos/fazter.svg",alt:"Unique Electronic Gadgets Store USA"})})}),(0,n.jsx)("div",{className:"flex justify-center md:h-full",children:i})]})]})}},46001:(e,r)=>{var t;!function(){"use strict";var n={}.hasOwnProperty;function a(){for(var e="",r=0;r<arguments.length;r++){var t=arguments[r];t&&(e=s(e,function(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return a.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var r="";for(var t in e)n.call(e,t)&&e[t]&&(r=s(r,t));return r}(t)))}return e}function s(e,r){return r?e?e+" "+r:e+r:e}e.exports?(a.default=a,e.exports=a):void 0===(t=(function(){return a}
1).apply(r,[]))||(e.exports=t)}()},90424:()=>{}},e=>{e.O(0,[7742,643,4921,1915,8584,2562,636,6593,8792],()=>e(e.s=865)),_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.