1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2679],{357:function(e,s,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/contract/information/prepaidkids",function(){return t(1588)}])},1588:function(e,s,t){"use strict";t.r(s),t.d(s,{default:function(){return _}});var n=t(7568),a=t(828),l=t(414),r=t(5893),i=t(7294),c=t(8502),o=t(1163),d=t(8739),u=(t(3292),t(3892),t(8401),t(4547)),x=t(7935),p=(t(1069),t(4924)),m=t(6042),h=t(9396),f=t(6569),b=t(8878),v=t(4613),j=(t(3886),t(668)),g=t(2091),N=t(2290);function w(e){var s=e.alertMsg,t=e.isLoading,n=e.info,l=(0,i.useRef)(null),w=(0,i.useRef)(null),_=(0,i.useRef)(null),k=(0,i.useRef)(null),y=(0,a.Z)(i.useState([{pathName:[],routeTo:[]}]),2),Z=y[0],C=y[1],S=(0,a.Z)(i.useState({channel:"Website",email:"",signature:"",emergency_name:"",emergency_who:"",emergency_number:"",relation:"",kids_cert:n.kidsRegister,kids_firstname:"",kids_lastname:"",kids_card_image:"",parent_cert:"",parent_firstname:"",parent_lastname:"",phone_number:"",card_front:"",card_back:"",card_image:""}),2),F=S[0],A=S[1],R=(0,a.Z)(i.useState(!1),2),E=R[0],I=R[1],M=(0,a.Z)(i.useState(!1),2),T=M[0],L=M[1],P=(0,a.Z)(i.useState(!1),2),z=P[0],D=P[1],H=(0,a.Z)(i.useState(null),2),O=H[0],U=H[1],$=(0,a.Z)(i.useState(null),2),G=$[0],J=$[1],W=(0,a.Z)(i.useState(null),2),X=W[0],B=W[1],K=(0,a.Z)(i.useState(null),2),V=K[0],Y=K[1],q=(0,a.Z)(i.useState(null),2),Q=q[0],ee=q[1],se=i.useContext(u.Z).notificationHandler,te=(0,a.Z)(i.useState(!1),2),ne=te[0],ae=te[1],le=(0,a.Z)(i.useState(""),2),re=(le[0],le[1],(0,a.Z)(i.useState(""),2)),ie=(re[0],re[1]),ce=(0,d.Z)("sessionId"),oe=((0,d.Z)("session_data"),(0,o.useRouter)());i.useEffect((function(){!function(){var e={websessionId:ce};c.Z.post("websession/get",e).then((function(e){"successful"===e.data.status?(ie(e.data.info.slug),function(e){C("pretopost"===e?[{pathName:["\u0414\u0430\u0440\u0430\u0430 \u0442\u04e9\u043b\u0431\u04e9\u0440\u0442 \u04af\u0439\u043b\u0447\u0438\u043b\u0433\u044d\u044d \u0440\u04af\u04af \u0448\u0438\u043b\u0436\u0438\u0445","\u0414\u0443\u0433\u0430\u0430\u0440 \u043e\u0440\u0443\u0443\u043b\u0430\u0445","\u0425\u044d\u0440\u044d\u0433\u043b\u044d\u0433\u0447\u0438\u0439\u0433 \u0442\u0430\u043d\u0438\u043d \u0431\u0430\u0442\u0430\u043b\u0433\u0430\u0430\u0436\u0443\u0443\u043b\u0430\u0445","\u0411\u0430\u0442\u0430\u043b\u0433\u0430\u0430\u0436\u0443\u0443\u043b\u0430\u0445"],routeTo:["/","/prepaid","/contract"]}]:"restoresim"===e?[{pathName:["\u0421\u0438\u043c \u0441\u044d\u0440\u0433\u044d\u044d\u0445","\u0414\u0443\u0433\u0430\u0430\u0440 \u043e\u0440\u0443\u0443\u043b\u0430\u0445","\u0425\u044d\u0440\u044d\u0433\u043b\u044d\u0433\u0447\u0438\u0439\u0433 \u0442\u0430\u043d\u0438\u043d \u0431\u0430\u0442\u0430\u043b\u0433\u0430\u0430\u0436\u0443\u0443\u043b\u0430\u0445","\u041c\u044d\u0434\u044d\u044d\u043b\u044d\u043b \u0448\u0438\u043d\u044d\u0447\u043b\u044d\u0445"],routeTo:["/","/checkout/restoresim","/contract"]}]:[{pathName:["\u0428\u0438\u043d\u044d \u0434\u0443\u0433\u0430\u0430\u0440 \u0430\u0432\u0430\u0445","\u04ae\u0439\u043b\u0447\u0438\u043b\u0433\u044d\u044d \u0441\u043e\u043d\u0433\u043e\u0445","\u0411\u0430\u0433\u0446 \u0441\u043e\u043d\u0433\u043e\u0445","\u0414\u0443\u0433\u0430\u0430\u0440 \u0441\u043e\u043d\u0433\u043e\u0445","SIM \u0441\u043e\u043d\u0433\u043e\u0445","\u0413\u044d\u0440\u044d\u044d"],routeTo:["/","/checkout/newnumber","/checkout/newnumber/package","/checkout/newnumber/search","/checkout/option"]}])}(e.data.info.slug)):0===e.data.message.show?se({type:"errors",message:"\u0410\u043c\u0436\u0438\u043b\u0442\u0433\u04af\u0439"}):se({type:"errors",message:e.data.message.text})})).catch((function(e){se({type:"errors",message:"\u0410\u043c\u0436\u0438\u043b\u0442\u0433\u04af\u0439"})}))}()}),[]);var de=function(){var e=(0,h.Z)((0,m.Z)({},F),{websession_id:ce,signature:O,kids_card_image:G,card_front:X,card_back:V,card_image:Q});ae(!0),c.Z.post("contract/createkids",e).then((function(e){"successful"===e.data.status?oe.push("/checkout/service/check"):0===e.data.message.show?se({type:"errors",message:"\u0410\u043c\u0436\u0438\u043b\u0442\u0433\u04af\u0439"}):se({type:"errors",message:e.data.message.text}),ae(!1)})).catch((function(e){ae(!1),se({type:"errors",message:"\u0410\u043c\u0436\u0438\u043b\u0442\u0433\u04af\u0439!"})}))},ue=function(e){"emergencyNumber"===e.target.name||"emergencyNumberSec"===e.target.name?A((0,h.Z)((0,m.Z)({},F),(0,p.Z)({},e.target.name,e.target.value.replace(/[^0-9]/g,"")))):A((0,h.Z)((0,m.Z)({},F),(0,p.Z)({},e.target.name,e.target.value)))},xe=i.useRef(),pe=function(){var e=xe.current.getTrimmedCanvas().toDataURL("image/png");U(e),I(!1)},me=function(e){try{var s=e.target.id,t=e.target.files[0];if(!t)return void se({type:"errors",message:"File \u0441\u043e\u043d\u0433\u043e\u043e\u0433\u04af\u0439 \u0431\u0430\u0439\u043d\u0430 !!"});if(!["image/png","image/jpeg"].includes(t.type))return void se({type:"errors",message:"\u0417\u04e9\u0432\u0445\u04e9\u043d JPG, PNG \u0441\u043e\u043d\u0433\u043e\u0445 \u0431\u043e\u043b\u043e\u043c\u0436\u0442\u043e\u0439 !!"});var n=new FileReader;n.onloadend=function(){"id_card_front"==s&&B(n.result),"id_card_back"==s&&Y(n.result),"id_card_with_face"==s&&ee(n.result),"kid_cer_image"==s&&J(n.result)},n.readAsDataURL(t)}catch(a){console.log(a)}};return(0,r.jsxs)(r.Fragment,{children:[z&&(0,r.jsx)(j.Z,{show:z,onClose:function(){return D(!1)}}),!0===t&&(0,r.jsx)("div",{className:"w-full h-full fixed block top-0 left-0 opacity-100 z-50 backdrop-blur",children:(0,r.jsx)(x.$,{})}),(0,r.jsx)(b.Z,{patharray:Z[0]}),(0,r.jsx)("div",{className:"bg-gray-100 h-full w-full font-rubik",children:(0,r.jsxs)("div",{className:"container mx-auto mt-10 mb-10 max-w-screen-lg px-3 md:px-3 xl:px-0",children:[(0,r.jsx)("div",{className:"text-2xl font-medium text-gray-900 md:text-3xl lg:text-4xl",children:"\u0413\u044d\u0440\u044d\u044d \u0431\u0430\u0439\u0433\u0443\u0443\u043b\u0430\u0445 (ENJOY KIDS)"}),s?(0,r.jsx)("div",{className:"py-3 text-center mt-6 text-green-700 bg-green-200 border rounded-xl text-xl ",children:s}):null,(0,r.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2",children:(0,r.jsxs)("div",{className:"max-w-sm",children:[(0,r.jsx)("div",{className:"text-[14px] ml-2 mt-3",children:"\u0410\u0441\u0440\u0430\u043d \u0445\u0430\u043c\u0433\u0430\u0430\u043b\u0430\u0433\u0447\u0438\u0439\u043d \u043c\u044d\u0434\u044d\u044d\u043b\u044d\u043b:"}),(0,r.jsx)("div",{className:"flex justify-between pt-3",children:(0,r.jsxs)("div",{className:"relative w-full",children:[(0,r.jsx)("div",{className:"pointer-events-none absolute top-1.5 left-0 flex items-center pl-3",children:(0,r.jsx)("h1",{className:" text-[14px] text-black",children:"\u0420\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0439\u043d \u0434\u0443\u0433\u0430\u0430\u0440:"})}),(0,r.jsx)("input",{className:"rounded-xl bg-white w-full h-14 px-2.5 py-3 pt-5 pb-2 border text-[14px] focus:outline-none focus:border-[#F9A825] appearance-none",name:"parent_cert",value:F.parent_cert,onChange:function(e){return ue(e)}})]})}),(0,r.jsxs)("div",{className:"flex justify-between mt-3",children:[(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)("div",{className:"pointer-events-none absolute top-1.5 left-0 flex items-center pl-3",children:(0,r.jsx)("h1",{className:" text-[14px] text-black",children:"\u041e\u0432\u043e\u0433:"})}),(0,r.jsx)("input",{className:"rounded-xl bg-white w-full h-14 px-2.5 py-3 pt-5 pb-2 border text-[14px] focus:outline-none focus:border-[#F9A825] appearance-none",name:"parent_lastname",value:F.parent_lastname,onChange:function(e){return ue(e)}})]}),(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)("div",{className:"pointer-events-none absolute top-1.5 left-0 flex items-center pl-3",children:(0,r.jsx)("h1",{className:" text-[14px] text-black",children:"\u041d\u044d\u0440:"})}),(0,r.jsx)("input",{className:"rounded-xl bg-white w-full h-14 px-2.5 py-3 pt-5 pb-2 border text-[14px] focus:outline-none focus:border-[#F9A825] appearance-none",name:"parent_firstname",value:F.parent_firstname,onChange:function(e){return ue(e)}})]})]}),(0,r.jsxs)("div",{className:"flex justify-between mt-3",children:[(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)("div",{className:"pointer-events-none absolute top-1.5 left-0 flex items-center pl-3",children:(0,r.jsx)("h1",{className:" text-[14px] text-black",children:"\u0418\u043c\u044d\u0439\u043b \u0445\u0430\u044f\u0433:"})}),(0,r.jsx)("input",{className:"rounded-xl bg-white w-full h-14 px-2.5 py-3 pt-5 pb-2 border text-[14px] focus:outline-none focus:border-[#F9A825] appearance-none",value:F.email,name:"email",onChange:function(e){return ue(e)}})]}),(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)("div",{className:"pointer-events-none absolute top-1.5 left-0 flex items-center pl-3",children:(0,r.jsx)("h1",{className:" text-[14px] text-black",children:"\u0414\u0443\u0433\u0430\u0430\u0440:"})}),(0,r.jsx)("input",{className:"rounded-xl bg-white w-full h-14 px-2.5 py-3 pt-5 pb-2 border text-[14px] focus:outline-none focus:border-[#F9A825] appearance-none",name:"phone_number",type:"number",maxLength:8,value:F.phone_number,onChange:function(e){return ue(e)}})]})]}),(0,r.jsx)("div",{className:"flex justify-between mt-3",children:(0,r.jsxs)("div",{className:"relative w-full",children:[(0,r.jsx)("div",{className:"pointer-events-none absolute top-1.5 left-0 flex items-center pl-3",children:(0,r.jsx)("h1",{className:" text-[14px] text-black",children:"\u0425\u044d\u043d \u0431\u043e\u043b\u043e\u0445:"})}),(0,r.jsx)("input",{className:"rounded-xl bg-white w-full h-14 px-2.5 py-3 pt-5 pb-2 border text-[14px] focus:outline-none focus:border-[#F9A825] appearance-none",value:F.relation,name:"relation",onChange:function(e){return ue(e)}})]})}),(0,r.jsx)("div",{className:"text-[14px] pt-5",children:"\u0422\u0430 \u04e9\u04e9\u0440\u0438\u0439\u043d \u0438\u0440\u0433\u044d\u043d\u0438\u0439 \u04af\u043d\u044d\u043c\u043b\u044d\u0445\u043d\u0438\u0439 \u0437\u0443\u0440\u0433\u0438\u0439\u0433 \u043e\u0440\u0443\u0443\u043b\u043d\u0430 \u0443\u0443."}),(0,r.jsxs)("div",{className:"flex space-x-4 items-center",children:[(0,r.jsxs)("div",{className:"relative mt-3 w-full",children:[(0,r.jsx)("div",{className:"pointer-events-none absolute top-1.5 left-0 flex items-center pl-3",children:(0,r.jsx)("h1",{className:" text-[14px] text-black",children:"\u0423\u0440\u0434 \u0445\u044d\u0441\u044d\u0433:"})}
1),(0,r.jsx)("div",{className:"min-h-[60px] rounded-xl bg-white w-full px-5 py-5 border focus:outline-none focus:border-[#F9A825] appearance-none ",children:(0,r.jsx)("div",{className:"pt-5",children:X&&(0,r.jsx)("img",{src:X,width:"100%",height:"100%",className:"mt-3 px-3"})})})]}),(0,r.jsx)("input",{ref:w,className:"hidden",type:"file",id:"id_card_front",onChange:me}),(0,r.jsx)("button",{className:"bg-white px-4 shadow-xl rounded-xl mt-5 h-[56px] hover:shadow-none",onClick:function(){return w.current.click()},children:(0,r.jsx)(g.Ms2,{className:"fill-[#f7b500] h-[20px] w-[20px]"})})]}),(0,r.jsxs)("div",{className:"flex space-x-4 items-center",children:[(0,r.jsxs)("div",{className:"relative mt-3 w-full",children:[(0,r.jsx)("div",{className:"pointer-events-none absolute top-1.5 left-0 flex items-center pl-3",children:(0,r.jsx)("h1",{className:" text-[14px] text-black",children:"\u0410\u0440\u0434 \u0445\u044d\u0441\u044d\u0433:"})}),(0,r.jsx)("div",{className:"min-h-[60px] rounded-xl bg-white w-full px-5 py-5 border focus:outline-none focus:border-[#F9A825] appearance-none ",children:(0,r.jsx)("div",{className:"pt-5",children:V&&(0,r.jsx)("img",{src:V,width:"100%",height:"100%",className:"mt-3 px-3"})})})]}),(0,r.jsx)("input",{ref:_,className:"hidden",type:"file",id:"id_card_back",onChange:me}),(0,r.jsx)("button",{className:"bg-white px-4 shadow-xl rounded-xl mt-5 h-[56px] hover:shadow-none",onClick:function(){return _.current.click()},children:(0,r.jsx)(g.Ms2,{className:"fill-[#f7b500] h-[20px] w-[20px]"})})]}),(0,r.jsxs)("div",{className:"flex space-x-4 items-center",children:[(0,r.jsxs)("div",{className:"relative mt-3 w-full",children:[(0,r.jsx)("div",{className:"pointer-events-none absolute top-1.5 left-0 flex items-center pl-3",children:(0,r.jsx)("h1",{className:" text-[14px] text-black",children:"\u0418\u0440\u0433\u044d\u043d\u0438\u0439 \u04af\u043d\u044d\u043c\u043b\u044d\u0445\u044d\u044d \u0431\u0430\u0440\u044c\u0441\u0430\u043d \u0437\u0443\u0440\u0430\u0433"})}
1),(0,r.jsx)("div",{className:"min-h-[60px] rounded-xl bg-white w-full px-5 py-5 border focus:outline-none focus:border-[#F9A825] appearance-none ",children:(0,r.jsx)("div",{className:"pt-5",children:Q&&(0,r.jsx)("img",{src:Q,width:"100%",height:"100%",className:"mt-3 px-3"})})})]}),(0,r.jsx)("input",{ref:k,className:"hidden",type:"file",id:"id_card_with_face",onChange:me}),(0,r.jsx)("button",{className:"bg-white px-4 shadow-xl rounded-xl mt-5 h-[56px] hover:shadow-none",onClick:function(){return k.current.click()},children:(0,r.jsx)(g.Ms2,{className:"fill-[#f7b500] h-[20px] w-[20px]"})})]}),(0,r.jsx)("div",{className:"text-[14px] ml-2 mt-3",children:"\u0411\u0443\u0441\u0430\u0434 \u0430\u0441\u0440\u0430\u043d \u0445\u0430\u043c\u0433\u0430\u0430\u043b\u0430\u0433\u0447\u0438\u0439\u043d \u043c\u044d\u0434\u044d\u044d\u043b\u044d\u043b:"}),(0,r.jsxs)("div",{className:"flex justify-between mt-3",children:[(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)("div",{className:"pointer-events-none absolute top-1.5 left-0 flex items-center pl-3",children:(0,r.jsx)("h1",{className:" text-[14px] text-black",children:"\u041d\u044d\u0440:"})}),(0,r.jsx)("input",{className:"rounded-xl bg-white w-full h-14 px-2.5 py-3 pt-5 pb-2 border text-[14px] focus:outline-none focus:border-[#F9A825] appearance-none",value:F.emergency_name,name:"emergency_name",onChange:function(e){return ue(e)}})]}),(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)("div",{className:"pointer-events-none absolute top-1.5 left-0 flex items-center pl-3",children:(0,r.jsx)("h1",{className:" text-[14px] text-black",children:"\u0414\u0443\u0433\u0430\u0430\u0440:"})}),(0,r.jsx)("input",{className:"rounded-xl bg-white w-full h-14 px-2.5 py-3 pt-5 pb-2 border text-[14px] focus:outline-none focus:border-[#F9A825] appearance-none",value:F.emergency_number,name:"emergency_number",type:"number",maxLength:8,onChange:function(e){return ue(e)}})]})]}),(0,r.jsx)("div",{className:"flex justify-between mt-3",children:(0,r.jsxs)("div",{className:"relative w-full",children:[(0,r.jsx)("div",{className:"pointer-events-none absolute top-1.5 left-0 flex items-center pl-3",children:(0,r.jsx)("h1",{className:" text-[14px] text-black",children:"\u0425\u044d\u043d \u0431\u043e\u043b\u043e\u0445:"})}),(0,r.jsx)("input",{className:"rounded-xl bg-white w-full h-14 px-2.5 py-3 pt-5 pb-2 border text-[14px] focus:outline-none focus:border-[#F9A825] appearance-none",value:F.emergency_who,name:"emergency_who",onChange:function(e){return ue(e)}})]})}),(0,r.jsx)("div",{className:"text-[14px] ml-2 mt-3",children:"\u0425\u04af\u04af\u0445\u0434\u0438\u0439\u043d \u043c\u044d\u0434\u044d\u044d\u043b\u044d\u043b:"}),(0,r.jsx)("div",{className:"flex justify-between mt-3",children:(0,r.jsxs)("div",{className:"relative w-full",children:[(0,r.jsx)("div",{className:"pointer-events-none absolute top-1.5 left-0 flex items-center pl-3",children:(0,r.jsx)("h1",{className:" text-[14px] text-black",children:"\u0420\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0439\u043d \u0434\u0443\u0433\u0430\u0430\u0440:"})}),(0,r.jsx)("input",{className:"rounded-xl bg-white w-full h-14 px-2.5 py-3 pt-5 pb-2 border text-[14px] focus:outline-none focus:border-[#F9A825] appearance-none",value:F.kids_cert,disabled:!0})]})}),(0,r.jsxs)("div",{className:"flex justify-between mt-3",children:[(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)("div",{className:"pointer-events-none absolute top-1.5 left-0 flex items-center pl-3",children:(0,r.jsx)("h1",{className:" text-[14px] text-black",children:"\u041e\u0432\u043e\u0433:"})}),(0,r.jsx)("input",{className:"rounded-xl bg-white w-full h-14 px-2.5 py-3 pt-5 pb-2 border text-[14px] focus:outline-none focus:border-[#F9A825] appearance-none",value:F.kids_lastname,name:"kids_lastname",onChange:function(e){return ue(e)}})]}),(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)("div",{className:"pointer-events-none absolute top-1.5 left-0 flex items-center pl-3",children:(0,r.jsx)("h1",{className:" text-[14px] text-black",children:"\u041d\u044d\u0440:"})}),(0,r.jsx)("input",{className:"rounded-xl bg-white w-full h-14 px-2.5 py-3 pt-5 pb-2 border text-[14px] focus:outline-none focus:border-[#F9A825] appearance-none",value:F.kids_firstname,name:"kids_firstname",onChange:function(e){return ue(e)}})]})]}),(0,r.jsxs)("div",{className:"flex space-x-4 items-center",children:[(0,r.jsxs)("div",{className:"relative mt-3 w-full",children:[(0,r.jsx)("div",{className:"pointer-events-none absolute top-1.5 left-0 flex items-center pl-3",children:(0,r.jsx)("h1",{className:" text-[14px] text-black",children:"\u0422\u0430 \u0445\u04af\u04af\u0445\u0434\u0438\u0439\u043d\u0445\u044d\u044d \u0442\u04e9\u0440\u0441\u043d\u0438\u0439 \u0433\u044d\u0440\u0447\u0438\u043b\u0433\u044d\u044d\u043d\u0438\u0439 \u0437\u0443\u0440\u0433\u0438\u0439\u0433 \u043e\u0440\u0443\u0443\u043b\u043d\u0430 \u0443\u0443:"})}
1),(0,r.jsx)("div",{className:"min-h-[60px] rounded-xl bg-white w-full px-5 py-5 border focus:outline-none focus:border-[#F9A825] appearance-none ",children:(0,r.jsx)("div",{className:"pt-5",children:G&&(0,r.jsx)("img",{src:G,width:"100%",height:"100%",className:"mt-3 px-3"})})})]}),(0,r.jsx)("input",{ref:l,className:"hidden",type:"file",id:"kid_cer_image",onChange:me}),(0,r.jsx)("button",{className:"bg-white px-4 shadow-xl rounded-xl mt-5 h-[56px] hover:shadow-none",onClick:function(){return l.current.click()},children:(0,r.jsx)(g.Ms2,{className:"fill-[#f7b500] h-[20px] w-[20px]"})})]}),(0,r.jsx)(N.Z,{show:T,onClose:function(){return L(!1)},sigCanvas:xe,saveSignature:pe}),(0,r.jsxs)("div",{className:"flex space-x-4 items-center",children:[(0,r.jsxs)("div",{className:"relative mt-3 w-full",children:[(0,r.jsx)("div",{className:"pointer-events-none absolute top-1.5 left-0 flex items-center pl-3",children:(0,r.jsx)("h1",{className:" text-[14px] text-black",children:"\u0413\u0430\u0440\u044b\u043d \u04af\u0441\u044d\u0433:"})}),(0,r.jsx)("div",{className:"rounded-xl bg-white w-full px-5 py-5 border focus:outline-none focus:border-[#F9A825] appearance-none",children:O?(0,r.jsx)("img",{src:O,width:"100%",height:"100%",className:"mt-3 px-3"}):null})]}),(0,r.jsx)("button",{className:"bg-white px-4 shadow-xl rounded-xl mt-5 h-[56px] hover:shadow-none",onClick:function(){return I(!0)},children:(0,r.jsx)("img",{src:v.Z.src,width:"24px",height:"24px"})})]}),(0,r.jsx)(f.Z,{show:E,onClose:function(){return I(!1)},sigCanvas:xe,saveSignature:pe})]})}),(0,r.jsxs)("button",{className:"mt-4 block h-14 w-full md:w-[380px] rounded-xl bg-[#F9A825] py-2 text-lg font-normal text-white hover:bg-yellow-400",onClick:function(){F.email.match(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/)?de():(se({type:"errors",message:"\u0418-\u043c\u044d\u0439\u043b \u0445\u0430\u044f\u0433 \u043e\u0440\u0443\u0443\u043b\u043d\u0430 \u0443\u0443!"}),ae(!1))},disabled:ne,children:[ne&&(0,r.jsxs)("svg",{className:"inline mr-3 h-5 w-5 animate-spin text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[(0,r.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,r.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),ne&&(0,r.jsx)("span",{children:"\u0423\u043d\u0448\u0438\u0436 \u0431\u0430\u0439\u043d\u0430..."}),!ne&&(0,r.jsx)("span",{children:"\u0417\u04e9\u0432\u0448\u04e9\u04e9\u0440\u0447 \u0431\u0430\u0439\u043d\u0430"})]})]})})]})}var _=function(){var e=i.useContext(u.Z).notificationHandler,s=(0,a.Z)(i.useState(!1),2),t=(s[0],s[1],(0,a.Z)(i.useState(!1),2)),p=t[0],m=t[1],h=(0,a.Z)(i.useState(!0),2),f=h[0],b=h[1],v=(0,a.Z)(i.useState(""),2),j=v[0],g=(v[1],(0,a.Z)(i.useState(""),2)),N=g[0],_=(g[1],(0,a.Z)(i.useState(""),2)),k=_[0],y=(_[1],(0,a.Z)(i.useState(""),2)),Z=y[0],C=(y[1],(0,a.Z)(i.useState([]),2)),S=(C[0],C[1],(0,a.Z)(i.useState(null),2)),F=(S[0],S[1]),A=(0,a.Z)(i.useState(null),2),R=A[0],E=(A[1],(0,a.Z)(i.useState({}),2)),I=E[0],M=E[1],T=(0,d.Z)("sessionId"),L=(0,d.Z)("session_data"),P=(0,o.useRouter)(),z="successful",D=function(){var s=(0,n.Z)((function(){var s,t,n,a;return(0,l.__generator)(this,(function(l){switch(l.label){case 0:return l.trys.push([0,2,,3]),s={websessionId:T},[4,c.Z.post("websession/get",s)];case 1:return t=l.sent(),(n=t.data).status==z&&"pre_kids"==L.slug?(F(t.data.info.serviceId),m(!0),M(n.info)):P.push("/"),[3,3];case 2:return a=l.sent(),console.log(a),e({type:"errors",message:"\u0410\u043c\u0436\u0438\u043b\u0442\u0433\u04af\u0439!"}),[3,3];case 3:return b(!1),[2]}}))}));return function(){return s.apply(this,arguments)}}();return i.useEffect((function(){T?D():P.push("/")}),[T]),(0,r.jsxs)(r.Fragment,{children:[!0===f&&(0,r.jsx)("div",{className:"w-full h-full fixed block top-0 left-0 opacity-100 z-50 backdrop-blur",children:(0,r.jsx)(x.$,{})}),p&&(0,r.jsx)(w,{fullName:N,registerId:j,alertMsg:Z,isLoading:f,parentPhonenUmber:k,contractStatus:R,info:I})]})}}},function(e){e.O(0,[3365,463,8401,6695,9774,2888,179],(function(){return s=357,e(e.s=s);var s}));var s=e.O();_N_E=s}]);
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.