1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1080],{51080:(e,t,r)=>{r.r(t),r.d(t,{default:()=>k});var o=r(34206),n=r(802),l=r(11148),a=r(79290),s=r(21851),i=r(69197),d=r(91172),c=r(127),x=r(36425);async function m(e){return{token:"".concat(e.email,".").concat(e.remember_me).split("").reverse().join("")}}let u=()=>{let{authorize:e,closeModal:t}=(0,d.l8)();return(0,x.D)({mutationFn:e=>m(e),onSuccess:r=>{c.Z.set("auth_token",r.token),e(),t()},onError:e=>{console.log(e,"login error response")}})};var p=r(21442),b=r(64319),h=r(95508),f=r(26749),g=r(95433),j=r(98115),v=r(29977),w=r(63184),y=r.n(w);let k=e=>{var t,r;let{lang:d,isPopup:c=!0,className:x}=e,{t:m}=(0,b.$)(d),{closeModal:w,openModal:k}=(0,f.SO)(),{mutate:N,isPending:C}=u(),[Z,B]=(0,n.useState)(!1),{register:S,handleSubmit:_,formState:{errors:L}}=(0,i.cI)();function A(){N({email:"[email protected]",password:"demo",remember_me:!0}),w()}return(0,o.jsxs)("div",{className:y()("w-full md:w-[720px] lg:w-[920px] xl:w-[1000px] 2xl:w-[1200px] relative",x),children:[!0===c&&(0,o.jsx)(j.Z,{onClick:w}),(0,o.jsxs)("div",{className:"flex mx-auto overflow-hidden rounded-lg bg-brand-light",children:[(0,o.jsx)("div",{className:"md:w-1/2 lg:w-[55%] xl:w-[60%] registration hidden md:block relative",children:(0,o.jsx)(h.Z,{src:"/assets/images/login.png",alt:"signin",fill:!0})}),(0,o.jsxs)("div",{className:"w-full md:w-1/2 lg:w-[45%] xl:w-[40%] py-6 sm:py-10 px-4 sm:px-8 md:px-6 lg:px-8 xl:px-12 rounded-md flex flex-col justify-center",children:[(0,o.jsxs)("div",{className:"mb-6 text-center",children:[(0,o.jsx)("div",{onClick:w,children:(0,o.jsx)(p.Z,{})}),(0,o.jsx)("h4",{className:"text-xl font-semibold text-brand-dark sm:text-2xl sm:pt-3 ",children:m("common:text-welcome-back")}),(0,o.jsxs)("div",{className:"mt-3 mb-1 text-sm text-center sm:text-15px text-body",children:[m("common:text-donât-have-account"),(0,o.jsx)("button",{type:"button",className:"text-sm font-semibold text-brand sm:text-15px ltr:ml-1 rtl:mr-1 hover:no-underline focus:outline-none",onClick:function(){return k("SIGN_UP_VIEW")},children:m("common:text-create-account")})]})]}),(0,o.jsx)("form",{onSubmit:_(function(e){let{email:t,password:r,remember_me:o}=e;N({email:t,password:r,remember_me:o}),w(),console.log(t,r,o,"data")}),className:"flex flex-col justify-center",noValidate:!0,children:(0,o.jsxs)("div",{className:"flex flex-col space-y-3.5",children:[(0,o.jsx)(l.Z,{label:m("forms:label-email"),type:"email",variant:"solid",...S("email",{required:"".concat(m("forms:email-required")),pattern:{value:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,message:m("forms:email-error")}}),error:null===(t=L.email)||void 0===t?void 0:t.message,lang:d}),(0,o.jsx)(a.Z,{label:m("forms:label-password"),error:null===(r=L.password)||void 0===r?void 0:r.message,...S("password",{required:"".concat(m("forms:password-required"))}),lang:d}),(0,o.jsxs)("div",{className:"flex items-center justify-center",children:[(0,o.jsxs)("div",{className:"flex items-center shrink-0",children:[(0,o.jsx)("label",{className:"relative inline-block cursor-pointer switch",children:(0,o.jsx)(g.Z,{checked:Z,onChange:B})}),(0,o.jsx)("label",{onClick:()=>B(!Z),className:"mt-1 text-sm cursor-pointer shrink-0 text-heading ltr:pl-2.5 rtl:pr-2.5",children:m("forms:label-remember-me")})]}),(0,o.jsx)("div",{className:"flex ltr:ml-auto rtl:mr-auto mt-[3px]",children:(0,o.jsx)("button",{type:"button",onClick:function(){return k("FORGET_PASSWORD")},className:"text-sm ltr:text-right rtl:text-left text-heading ltr:pl-3 lg:rtl:pr-3 hover:no-underline hover:text-brand-dark focus:outline-none focus:text-brand-dark",children:m("common:text-forgot-password")})})]}),(0,o.jsx)("div",{className:"relative",children:(0,o.jsx)(s.Z,{type:"submit",loading:C,disabled:C,className:"w-full mt-2 tracking-normal h-11 md:h-12 font-15px md:font-15px",variant:"formButton",children:m("common:text-sign-in")})})]})}),(0,o.jsx)("div",{className:"relative flex flex-col items-center justify-center text-sm",children:(0,o.jsx)("span",{className:"mt-6 text-sm text-brand-dark opacity-70",children:m("common:text-or")})}),(0,o.jsxs)("div",{className:"flex justify-center mt-5 space-x-2.5",children:[(0,o.jsx)("button",{className:"flex items-center justify-center w-10 h-10 transition-all border rounded-full cursor-pointer group border-border-one hover:border-brand focus:border-brand focus:outline-none",onClick:A,children:(0,o.jsx)(v.Am9,{className:"w-4 h-4 text-opacity-50 transition-all text-brand-dark group-hover:text-brand "})}),(0,o.jsx)("button",{className:"flex items-center justify-center w-10 h-10 transition-all border rounded-full cursor-pointer group border-border-one hover:border-brand focus:border-brand focus:outline-none",onClick:A,children:(0,o.jsx)(v.fWC,{className:"w-4 h-4 text-opacity-50 transition-all text-brand-dark group-hover:text-brand"})}),(0,o.jsx)("button",{className:"flex items-center justify-center w-10 h-10 transition-all border rounded-full cursor-pointer group border-border-one hover:border-brand focus:border-brand focus:outline-none",onClick:A,children:(0,o.jsx)(v.BUd,{className:"w-4 h-4 text-opacity-50 transition-all text-brand-dark group-hover:text-brand"})})]})]})]})]})}},206:(e,t,r)=>{r.d(t,{b:()=>n});var o=r(34206);let n=e=>(0,o.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",...e,children:[(0,o.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"}),(0,o.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z"})]})},21851:(e,t,r)=>{r.d(t,{Z:()=>d});var o=r(34206),n=r(63184),l=r.n(n),a=r(802),s=r(38094);let i=(0,a.forwardRef)((e,t)=>{let{className:r,variant:n="primary",children:a,active:i,loading:d=!1,disabled:c=!1,...x}=e,m=l()("group text-[13px] md:text-sm lg:text-15px leading-4 inline-flex items-center cursor-pointer transition ease-in-out duration-300 font-body font-semibold text-center justify-center tracking-[0.2px] rounded placeholder-white focus-visible:outline-none focus:outline-none",{"h-12 md:h-14 bg-brand text-brand-light tracking-widest px-5 md:px-6 lg:px-8 py-4 md:py-3.5 lg:py-4 hover:text-white hover:bg-opacity-90":"primary"===n,"h-12 md:h-14 bg-brand-light text-brand-dark border border-border-four tracking-widest px-5 md:px-6 lg:px-8 py-4 md:py-3.5 lg:py-4":"border"===n,"h-11 md:h-[50px] bg-brand text-brand-light font-manrope px-5 lg:px-6 py-4 md:py-3.5 lg:py-4 hover:text-white hover:bg-opacity-90 focus:bg-opacity-70":"formButton"===n,"cursor-not-allowed hover:cursor-not-allowed bg-opacity-50 hover:bg-opacity-50":c},r);return(0,o.jsx)("button",{"aria-pressed":i,"data-variant":n,ref:t,className:m,disabled:c,...x,children:(0,o.jsxs)(o.Fragment,{children:[a,d&&(0,o.jsx)(s.Cd,{className:"w-5 h-5 animate-spin ltr:-mr
1-1 rtl:-ml-1 ltr:ml-3 rtl:mr-3 "})]})})});i.displayName="Button";let d=i},98115:(e,t,r)=>{r.d(t,{Z:()=>s});var o=r(34206),n=r(40217),l=r(63184),a=r.n(l);let s=e=>{let{className:t,onClick:r}=e;return(0,o.jsx)("button",{onClick:r,"aria-label":"Close Button",className:a()("fixed z-10 inline-flex items-center justify-center w-8 h-8 lg:w-9 lg:h-9 transition duration-200 text-brand-dark text-opacity-50 focus:outline-none hover:text-opacity-100 top-0.5 md:top-2 lg:top-7 xl:top-10 ltr:right-0.5 rtl:left-0.5 md:ltr:right-2 md:rtl:left-0 lg:ltr:right-7 lg:rtl:left-7 xl:ltr:right-10 xl:rtl:left-10 bg-brand-light lg:bg-transparent rounded-full",t),children:(0,o.jsx)(n.bjh,{className:"text-xl lg:text-2xl"})})}},11148:(e,t,r)=>{r.d(t,{Z:()=>c});var o=r(34206),n=r(63184),l=r.n(n),a=r(802),s=r(64319);let i={root:"py-2 px-4 w-full appearance-none transition duration-150 ease-in-out border text-input text-13px lg:text-sm font-body rounded placeholder-[#B3B3B3] min-h-12 transition duration-200 ease-in-out text-brand-dark focus:ring-0",normal:"bg-gray-100 border-gray-300 focus:shadow focus:text-brand-light focus:border-brand",solid:"text-brand-dark border-border-two focus:border-2 focus:outline-none focus:border-brand h-11 md:h-12",outline:"border-gray-300 focus:border-brand",shadow:"focus:shadow"},d=a.forwardRef((e,t)=>{let{lang:r,className:n="block",label:a,name:d,error:c,placeholder:x,variant:m="normal",shadow:u=!1,type:p="text",inputClassName:b,labelClassName:h,...f}=e,g=l()(i.root,{[i.normal]:"normal"===m,[i.solid]:"solid"===m,[i.outline]:"outline"===m},{[i.shadow]:u},b),{t:j}=(0,s.$)(r);return(0,o.jsxs)("div",{className:n,children:[a&&(0,o.jsx)("label",{htmlFor:d,className:"block font-normal text-sm leading-none mb-3 cursor-pointer ".concat(h||"text-brand-dark text-opacity-70"),children:j(a)}),(0,o.jsx)("input",{id:d,name:d,type:p,ref:t,placeholder:j(x),className:g,autoComplete:"off",spellCheck:"false","aria-invalid":c?"true":"false",...f}),c&&(0,o.jsx)("p",{className:"my-2 text-13px text-brand-danger text-opacity-70",children:j(c)})]})});d.displayName="Input";let c=d},79290:(e,t,r)=>{r.d(t,{Z:()=>m});var o=r(34206),n=r(63184),l=r.n(n),a=r(802),s=r(206);let i=e=>(0,o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",...e,children:(0,o.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13.875 18.825A10.05 10.05 0 0112 19c-4.478 0-8.268-2.943-9.543-7a9.97 9.97 0 011.563-3.029m5.858.908a3 3 0 114.243 4.243M9.878 9.878l4.242 4.242M9.88 9.88l-3.29-3.29m7.532 7.532l3.29 3.29M3 3l3.59 3.59m0 0A9.953 9.953 0 0112 5c4.478 0 8.268 2.943 9.543 7a10.025 10.025 0 01-4.132 5.411m0 0L21 21"})});var d=r(64319);let c={root:"py-2 px-4 md:px-5 w-full appearance-none transition duration-150 ease-in-out border text-input text-13px lg:text-sm font-body rounded-md placeholder-[#B3B3B3] transition duration-200 ease-in-out text-brand-dark border-border-two focus:border-2 focus:outline-none focus:ring-0 focus:border-brand h-11 md:h-12"},x=a.forwardRef((e,t)=>
1{let{className:r="block",inputClassName:n,label:x,name:m,error:u,shadow:p=!1,lang:b,...h}=e,[f,g]=(0,a.useState)(!1),{t:j}=(0,d.$)(b),v=l()(c.root,n);return(0,o.jsxs)("div",{className:r,children:[x&&(0,o.jsx)("label",{htmlFor:m,className:"block mb-3 text-sm font-normal leading-none cursor-pointer text-brand-dark opacity-70",children:j(x)}),(0,o.jsxs)("div",{className:"relative",children:[(0,o.jsx)("input",{id:m,name:m,type:f?"text":"password",ref:t,className:v,autoComplete:"off",spellCheck:"false",...h}),(0,o.jsx)("label",{htmlFor:m,className:"absolute -mt-2 cursor-pointer ltr:right-4 rtl:left-4 top-5 text-brand-dark text-opacity-30",onClick:()=>g(e=>!e),children:f?(0,o.jsx)(i,{className:"w-6 h-6"}):(0,o.jsx)(s.b,{className:"w-6 h-6"})})]}),u&&(0,o.jsx)("p",{className:"my-2 text-13px text-brand-danger text-opacity-70",children:j(u)})]})}),m=x;x.displayName="PasswordInput"},95508:(e,t,r)=>{r.d(t,{Z:()=>o.default});var o=r(87462)},95433:(e,t,r)=>{r.d(t,{Z:()=>s});var o=r(34206),n=r(802),l=r(64421);let a=n.forwardRef((e,t)=>{let{srText:r="toggle",checked:n,onChange:a}=e;return(0,o.jsxs)(l.rs,{checked:n,onChange:a,type:"button",ref:t,className:"".concat(n?"bg-brand":"bg-fill-four","\n relative inline-flex shrink-0 h-6 lg:h-7 w-10 lg:w-12 border-2 border-transparent rounded-full cursor-pointer transition-colors ease-in-out duration-200 focus:outline-none focus-visible:ring-2 focus-visible:ring-brand-light focus-visible:ring-opacity-75 focus:border-brand"),children:[(0,o.jsx)("span",{className:"sr-only",children:r}),(0,o.jsx)("span",{"aria-hidden":"true",className:"".concat(n?"rtl:-translate-x-4 rtl:lg:-translate-x-5 ltr:translate-x-4 ltr:lg:translate-x-5":"translate-x-0","\n pointer-events-none inline-block h-5 lg:h-6 w-5 lg:w-6 rounded-full bg-brand-light shadow-switch transform ring-0 transition ease-in-out duration-200")})]})});a.displayName="SwitchComponent";let s=a}}]);
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.