(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[205],{8593:(e,t,r)=>{"use strict";r.d(t,{TextInput:()=>i});var s=r(95155);r(12115);var a=r(43664),l=r(36960),n=r(24225);let o={},i=(0,l.factory)((e,t)=>{let r=(0,a.useProps)("TextInput",o,e);return(0,s.jsx)(n.InputBase,{component:"input",ref:t,...r,__staticSelector:"TextInput"})});i.classes=n.InputBase.classes,i.displayName="@mantine/core/TextInput"},21220:(e,t,r)=>{"use strict";r.d(t,{Stack:()=>x});var s=r(95155);r(12115);var a=r(56204),l=r(68918),n=r(43664),o=r(53791),i=r(69604),c=r(36960),u={root:"m_6d731127"};let d={gap:"md",align:"stretch",justify:"flex-start"},p=(0,l.createVarsResolver)((e,t)=>{let{gap:r,align:s,justify:l}=t;return{root:{"--stack-gap":(0,a.getSpacing)(r),"--stack-align":s,"--stack-justify":l}}}),x=(0,c.factory)((e,t)=>{let r=(0,n.useProps)("Stack",d,e),{classNames:a,className:l,style:c,styles:x,unstyled:g,vars:h,align:f,justify:m,gap:y,variant:j,...v}=r,C=(0,o.useStyles)({name:"Stack",props:r,classes:u,className:l,style:c,classNames:a,styles:x,unstyled:g,vars:h,varsResolver:p});return(0,s.jsx)(i.Box,{ref:t,...C("root"),variant:j,...v})});x.classes=u,x.displayName="@mantine/core/Stack"},26200:(e,t,r)=>{Promise.resolve().then(r.bind(r,36284))},36284:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>x});var s=r(95155),a=r(91590),l=r(21220),n=r(69604),o=r(58887),i=r(8593),c=r(26903),u=r(66518),d=r(66766),p=r(12115);function x(){let[e,t]=(0,p.useState)([,,,,,].fill("")),r=(0,p.useRef)([]),[x,g]=(0,p.useState)(!1),h=(s,a)=>{if(!/^\d?$/.test(s))return;let l=[...e];if(l[a]=s,t(l),s&&a<4){var n;null==(n=r.current[a+1])||n.focus()}},f=s=>{let a=s.clipboardData.getData("text").replace(/\D/g,"").slice(0,5).split("");for(let t=0;t<5;t++)e[t]=a[t]||"";t([...e]),setTimeout(()=>{let t=e.findIndex(e=>!e);if(-1!==t){var s;null==(s=r.current[t])||s.focus()}},0)};return(0,p.useEffect)(()=>{g(e.every(e=>""!==e))},[e]),(0,s.jsx)(a.Container,{size:420,bg:u.A.colors.white,px:"md",py:"xl",display:"flex",mih:"100vh",style:{alignItems:"center",justifyContent:"center"},children:(0,s.jsxs)(l.Stack,{gap:"lg",w:"100%",children:[(0,s.jsx)(n.Box,{ta:"center",children:(0,s.jsx)(d.default,{src:"/images/logo.png",alt:"Logo",width:150,height:100,style:{margin:"0 auto"}})}),(0,s.jsx)(n.Box,{ta:"center",children:(0,s.jsxs)(o.Text,{fw:700,size:"xl",children:["تأكيد",(0,s.jsxs)("span",{style:{color:u.A.colors.gold,marginRight:5},children:["رقم الهاتف!"," "]})]})}),(0,s.jsxs)(n.Box,{children:[(0,s.jsx)(o.Text,{size:"md",children:"التحقق من رقم الهاتف"}),(0,s.jsxs)(o.Text,{size:"md",c:u.A.colors.gray,children:["قم بكتابة رمز التاكيد الذي تم ارساله إلى +96654545484"," ",(0,s.jsx)("span",{style:{color:u.A.colors.purple,cursor:"pointer"},children:"تعديل"})]})]}),(0,s.jsx)(n.Box,{display:"flex",style:{gap:12,justifyContent:"center"},dir:"ltr",children:e.map((e,t)=>(0,s.jsx)(i.TextInput,{ref:e=>r.current[t]=e,value:e,onChange:e=>h(e.target.value,t),onPaste:f,maxLength:1,styles:{input:{width:60,height:60,textAlign:"center",fontSize:"1.5rem",borderRadius:8,background:"transparent",color:u.A.colors.purple}}},t))}),(0,s.jsx)(c.Button,{fullWidth:!0,radius:"md",mt:"md",bg:u.A.colors.darkGray,disabled:!x,children:"الدخول"})]})})}},66518:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});let s={colors:{gray:"#8B8D97",black:"#000000",white:"#FFFFFF",darkGray:"#8C8082",gold:"#CFC07B",navy:"#254570",purple:"#754CC3",input:"#F4F6F9",labelChart:"#8E8E93",labelChart2:"#1C1C1E"}}},91590:(e,t,r)=>{"use strict";r.d(t,{Container:()=>x});var s=r(95155);r(12115);var a=r(56204),l=r(68918),n=r(43664),o=r(53791),i=r(69604),c=r(36960),u={root:"m_7485cace"};let d={},p=(0,l.createVarsResolver)((e,t)=>{let{size:r,fluid:s}=t;return{root:{"--container-size":s?void 0:(0,a.getSize)(r,"container-size")}}}),x=(0,c.factory)((e,t)=>{let r=(0,n.useProps)("Container",d,e),{classNames:a,className:l,style:c,styles:x,unstyled:g,vars:h,fluid:f,mod:m,...y}=r,j=(0,o.useStyles)({name:"Container",classes:u,props:r,className:l,style:c,classNames:a,styles:x,unstyled:g,vars:h,varsResolver:p});return(0,s.jsx)(i.Box,{ref:t,mod:[{fluid:f},m],...j("root"),...y})});x.classes=u,x.displayName="@mantine/core/Container"}},e=>{var t=t=>e(e.s=t);e.O(0,[203,855,766,441,684,358],()=>t(26200)),_N_E=e.O()}]);