1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4143],{8456:function(e,t,r){"use strict";r.d(t,{Z:function(){return H}});var n=r(3366),i=r(7462),o=r(7294),s=r(6010),a=r(4780),l=r(917),c=r(8216),d=r(1657),p=r(948),u=r(1588),x=r(4867);function h(e){return(0,x.Z)("MuiCircularProgress",e)}(0,u.Z)("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);var m=r(5893);let g=["className","color","disableShrink","size","style","thickness","value","variant"],f=e=>e,v,b,k,w,Z=(0,l.F4)(v||(v=f` 2 0% { 3 transform: rotate(0deg); 4 } 5 6 100% { 7 transform: rotate(360deg); 8 } 9`)),y=(0,l.F4)(b||(b=f` 10 0% { 11 stroke-dasharray: 1px, 200px; 12 stroke-dashoffset: 0; 13 } 14 15 50% { 16 stroke-dasharray: 100px, 200px; 17 stroke-dashoffset: -15px; 18 } 19 20 100% { 21 stroke-dasharray: 100px, 200px; 22 stroke-dashoffset: -125px; 23 } 24`)),j=e=>{let{classes:t,variant:r,color:n,disableShrink:i}=e,o={root:["root",r,`color${(0,c.Z)(n)}`],svg:["svg"],circle:["circle",`circle${(0,c.Z)(r)}`,i&&"circleDisableShrink"]};return(0,a.Z)(o,h,t)},C=(0,p.ZP)("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t[r.variant],t[`color${(0,c.Z)(r.color)}`]]}})(({ownerState:e,theme:t})=>(0,i.Z)({display:"inline-block"},"determinate"===e.variant&&{transition:t.transitions.create("transform")},"inherit"!==e.color&&{color:(t.vars||t).palette[e.color].main}),({ownerState:e})=>"indeterminate"===e.variant&&(0,l.iv)(k||(k=f` 25 animation: ${0} 1.4s linear infinite; 26 `),Z)),S=(0,p.ZP)("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),R=(0,p.ZP)("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.circle,t[`circle${(0,c.Z)(r.variant)}`],r.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>(0,i.Z)({stroke:"currentColor"},"determinate"===e.variant&&{transition:t.transitions.create("stroke-dashoffset")},"indeterminate"===e.variant&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>"indeterminate"===e.variant&&!e.disableShrink&&(0,l.iv)(w||(w=f` 27 animation: ${0} 1.4s ease-in-out infinite; 28 `),y)),P=o.forwardRef(function(e,t){let r=(0,d.Z)({props:e,name:"MuiCircularProgress"}),{className:o,color:a="primary",disableShrink:l=!1,size:c=40,style:p,thickness:u=3.6,value:x=0,variant:h="indeterminate"}=r,f=(0,n.Z)(r,g),v=(0,i.Z)({},r,{color:a,disableShrink:l,size:c,thickness:u,value:x,variant:h}),b=j(v),k={},w={},Z={};if("determinate"===h){let e=2*Math.PI*((44-u)/2);k.strokeDasharray=e.toFixed(3),Z["aria-valuenow"]=Math.round(x),k.strokeDashoffset=`${((100-x)/100*e).toFixed(3)}px`,w.transform="rotate(-90deg)"}return(0,m.jsx)(C,(0,i.Z)({className:(0,s.Z)(b.root,o),style:(0,i.Z)({width:c,height:c},w,p),ownerState:v,ref:t,role:"progressbar"},Z,f,{children:(0,m.jsx)(S,{className:b.svg,ownerState:v,viewBox:"22 22 44 44",children:(0,m.jsx)(R,{className:b.circle,style:k,ownerState:v,cx:44,cy:44,r:(44-u)/2,fill:"none",strokeWidth:u})})}))});var H=P},8078:function(e,t,r){"use strict";r.d(t,{Z:function(){return R}});var n=r(3366),i=r(7462),o=r(7294),s=r(6010),a=r(917),l=r(4780),c=r(1796),d=r(948),p=r(1657),u=r(1588),x=r(4867);function h(e){return(0,x.Z)("MuiSkeleton",e)}(0,u.Z)("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);var m=r(5893);let g=["animation","className","component","height","style","variant","width"],f=e=>e,v,b,k,w,Z=e=>{let{classes:t,variant:r,animation:n,hasChildren:i,width:o,height:s}=e;return(0,l.Z)({root:["root",r,n,i&&"withChildren",i&&!o&&"fitContent",i&&!s&&"heightAuto"]},h,t)},y=(0,a.F4)(v||(v=f` 29 0% { 30 opacity: 1; 31 } 32 33 50% { 34 opacity: 0.4; 35 } 36 37 100% { 38 opacity: 1; 39 } 40`)),j=(0,a.F4)(b||(b=f` 41 0% { 42 transform: translateX(-100%); 43 } 44 45 50% { 46 /* +0.5s of delay between each loop */ 47 transform: translateX(100%); 48 } 49 50 100% { 51 transform: translateX(100%); 52 } 53`)),C=(0,d.ZP)("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;
53return[t.root,t[r.variant],!1!==r.animation&&t[r.animation],r.hasChildren&&t.withChildren,r.hasChildren&&!r.width&&t.fitContent,r.hasChildren&&!r.height&&t.heightAuto]}})(({theme:e,ownerState:t})=>{let r=String(e.shape.borderRadius).match(/[\d.\-+]*\s*(.*)/)[1]||"px",n=parseFloat(e.shape.borderRadius);return(0,i.Z)({display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:(0,c.Fq)(e.palette.text.primary,"light"===e.palette.mode?.11:.13),height:"1.2em"},"text"===t.variant&&{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${n}${r}/${Math.round(n/.6*10)/10}${r}`,"&:empty:before":{content:'"\\00a0"'}},"circular"===t.variant&&{borderRadius:"50%"},"rounded"===t.variant&&{borderRadius:(e.vars||e).shape.borderRadius},t.hasChildren&&{"& > *":{visibility:"hidden"}},t.hasChildren&&!t.width&&{maxWidth:"fit-content"},t.hasChildren&&!t.height&&{height:"auto"})},({ownerState:e})=>"pulse"===e.animation&&(0,a.iv)(k||(k=f` 54 animation: ${0} 1.5s ease-in-out 0.5s infinite; 55 `),y),({ownerState:e,theme:t})=>"wave"===e.animation&&(0,a.iv)(w||(w=f` 56 position: relative; 57 overflow: hidden; 58 59 /* Fix bug in Safari https://bugs.webkit.org/show_bug.cgi?id=68196 */ 60 -webkit-mask-image: -webkit-radial-gradient(white, black); 61 62 &::after { 63 animation: ${0} 1.6s linear 0.5s infinite; 64 background: linear-gradient( 65 90deg, 66 transparent, 67 ${0}, 68 transparent 69 ); 70 content: ''; 71 position: absolute; 72 transform: translateX(-100%); /* Avoid flash during server-side hydration */ 73 bottom: 0; 74 left: 0; 75 right: 0; 76 top: 0; 77 } 78 `),j,(t.vars||t).palette.action.hover)),S=o.forwardRef(function(e,t){let r=(0,p.Z)({props:e,name:"MuiSkeleton"}),{animation:o="pulse",className:a,component:l="span",height:c,style:d,variant:u="text",width:x}=r,h=(0,n.Z)(r,g),f=(0,i.Z)({},r,{animation:o,component:l,variant:u,hasChildren:!!h.children}),v=Z(f);return(0,m.jsx)(C,(0,i.Z)({as:l,ref:t,className:(0,s.Z)(v.root,a),ownerState:f},h,{style:(0,i.Z)({width:x,height:c},d)}))});var R=S},2841:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/verify",function(){return r(6220)}])},6094:function(e,t,r){"use strict";r.d(t,{Z:function(){return b}});var n=r(5893),i=r(5675),o=r.n(i),s=r(1163),a=r(1649),l=r(6886),c=r(5861),d=r(8078),p=r(5156),u=r.n(p),x=r(6789),h=r(1774),m=r(1212),g=r(4696),f=r(3227),v=r(8772);function b(e){let{imageUrl:t,text:r,addButton:i=!1,maxWidth:p=null,isLocal:b=!1,name:k}=e,{ref:w,loaded:Z,onLoad:y}=(0,x.Z)(),j=(0,s.useRouter)(),C=(0,a.v9)(f.Q7),{t:S}=(0,v.$G)("common");return(0,n.jsxs)(l.ZP,{container:!0,alignItems:"center",sx:e=>({width:"100%",position:"relative",height:{xs:"156px",sm:"200px",md:"300px"},[e.breakpoints.between(376,680)]:{minHeight:"auto",width:"auto",height:"156px"},[e.breakpoints.between(769,1e3)]:{minHeight:"auto",width:"auto"}}),"data-test-id":"headerBlock",children:[(0,n.jsx)(l.ZP,{sx:{zIndex:1,position:"absolute",height:"100%",width:"100%",background:"linear-gradient(90deg, rgba(255, 255, 255, 0.50) 39.82%, rgba(255, 255, 255, 0.00) 100%)"}}),(0,n.jsx)(o(),{fill:!0,style:{objectFit:"cover"},src:b?t:(0,g.t)(t),alt:k,loading:"lazy",ref:w,onLoadingComplete:y,sizes:"100vw",priority:!1}),(0,n.jsxs)(l.ZP,{container:!0,direction:"column",sx:e=>({position:"relative",zIndex:1,alignItems:{xs:i?"center":"start",sm:"start"},[e.breakpoints.between(376,630)]:{alignItems:i?"center":"start"}}),children:[(0,n.jsx)(l.ZP,{item:!0,children:(0,n.jsx)(c.Z,{variant:"h2",sx:e=>({color:u()["colors-secondary"],fontWeight:700,fontSize:{xs:"24px",sm:"48px",md:"64px"},lineHeight:{xs:"36px",sm:"64px",md:"86px"},marginLeft:{xs:"16px",md:"42px",lg:"72px"},textAlign:"start",maxWidth:{xs:"300px",sm:"unset",md:p||"unset"},[e.breakpoints.between(376,695)]:{fontSize:"24px",lineHeight:"36px",marginLeft:"16px"},[e.breakpoints.between(769,980)]:{fontSize:"48px",lineHeight:"64px"}}),dangerouslySetInnerHTML:{__html:r},"data-test-id":"headerBlockTitleTxt"})}),i&&!C.token&&(0,n.jsx)(l.ZP,{item:!0,sx:e=>({marginLeft:{xs:"unset",md:"42px",lg:"72px"},marginTop:{xs:"16px",sm:"24px",md:"48px"},padding:{xs:"0 16px",sm:"unset"},width:{xs:"100%",sm:"unset"},[e.breakpoints.between(376,630)]:{marginLeft:"unset",marginTop:"16px",padding:"0 16px",
78width:"100%"}}),children:(0,n.jsx)(h.Z,{title:S("buttons.register"),iconName:"basket",buttonType:"button",onClick:()=>j.push(m.Z.BeneficiariesRegistration.path)})})]}),!Z&&(0,n.jsx)(d.Z,{variant:"rectangular",width:"100%",height:"100%",sx:{bgcolor:u()["colors-secondary"],opacity:"0.2",position:"absolute",left:"0",top:"0",zIndex:"1"}})]})}},6789:function(e,t,r){"use strict";r.d(t,{Z:function(){return i}});var n=r(7294);function i(){let[e,t]=(0,n.useState)(!1),r=(0,n.useRef)(null),i=()=>{t(!0)};return(0,n.useEffect)(()=>{r.current&&r.current.complete&&i()},[]),{ref:r,loaded:e,onLoad:i}}},6220:function(e,t,r){"use strict";r.r(t),r.d(t,{__N_SSG:function(){return R},default:function(){return P}});var n=r(5893),i=r(8772),o=r(9008),s=r.n(o),a=r(3e3),l=r(6094),c=r(1163),d=r(6886),p=r(5861),u=r(7294),x=r(3981),h=r(3362),m=r(8456),g=r(5156),f=r.n(g),v=r(3572),b=r(4416),k=r(1212),w=r(1649),Z=r(349),y=r(3227);function j(){let e;let[t,r]=(0,u.useState)({first:"",second:"",third:"",fourth:""}),[o,s]=(0,u.useState)(29),a=[(0,u.useRef)(null),(0,u.useRef)(null),(0,u.useRef)(null),(0,u.useRef)(null)],l=(0,c.useRouter)(),g=(0,w.I0)(),j=(0,w.v9)(y.Q7),C=l.query.id,{t:S}=(0,i.$G)("common"),{trigger:R}=(0,x.Z)({key:"sendCode"},v.TG,{onSuccess:e=>{let{data:t}=e;s(29),M(29),(0,b.H)({msg:S("messages.verificationCode"),status:"success"})},onError:e=>{var t,r,n,i,o,s;if(console.log(e),null==e?void 0:null===(n=e.response)||void 0===n?void 0:null===(r=n.data)||void 0===r?void 0:null===(t=r.error)||void 0===t?void 0:t.message){let t=null==e?void 0:null===(s=e.response)||void 0===s?void 0:null===(o=s.data)||void 0===o?void 0:null===(i=o.error)||void 0===i?void 0:i.message;(0,b.H)({msg:S("errorMessages.".concat(t)).startsWith("errorMessages")?t:S("errorMessages.".concat(t)),status:"error"})}else(0,b.H)({msg:S("errorMessages.WENT_WRONG"),status:"error"})},throwOnError:!1}),{trigger:P,isMutating:H}=(0,x.Z)({key:"verification"},v.VP,{onSuccess:e=>{let{data:t}=e;(0,b.H)({msg:S("messages.verified"),status:"success"}),j.token?(g((0,Z.b)(j.userId)),l.push(k.Z.Profile.path)):l.push(k.Z.Login.path)},onError:e=>{var t,r,n,i,o,s;if(console.log(e),null==e?void 0:null===(n=e.response)||void 0===n?void 0:null===(r=n.data)||void 0===r?void 0:null===(t=r.error)||void 0===t?void 0:t.message){let t=null==e?void 0:null===(s=e.response)||void 0===s?void 0:null===(o=s.data)||void 0===o?void 0:null===(i=o.error)||void 0===i?void 0:i.message;(0,b.H)({msg:S("errorMessages.".concat(t)).startsWith("errorMessages")?t:S("errorMessages.".concat(t)),status:"error"})}else(0,b.H)({msg:S("errorMessages.WENT_WRONG"),status:"error"})},throwOnError:!1});(0,u.useEffect)(()=>{let e=setTimeout(()=>{M(o)},1e3);return()=>clearTimeout(e)},[]);let M=t=>(e&&clearTimeout(e),0===t||(s(e=>e-1),e=setTimeout(()=>{M(t-1)},1e3)),null),z=(e,n,i,o)=>{var s,l;let c=e.target,d=a[o-1],p=a[o+1],u={...t};u[n]=i,u[n].length<=1&&r(u),t.first&&t.second&&t.third&&"fourth"===n&&i&&P({id:C,code:t.first+t.second+t.third+i}),""===c.value?d&&(null===(s=d.current)||void 0===s||s.focus()):p&&(null===(l=p.current)||void 0===l||l.focus())};function _(e,n,i){let o=e.target,s=a[n-1];if((8===e.keyCode||46===e.keyCode)&&""===o.value&&0!==n){e.preventDefault();let n={...t},o=Object.keys(n),a=o.indexOf(i)-1,c=o[a];if(n[c]="",r(n),s){var l;null===(l=s.current)||void 0===l||l.focus()}}}let T={width:"64px",height:"56px","& input:valid+fieldset":{border:"none !important"}},$={fontSize:"20px !important",lineHeight:"32px !important",fontWeight:"700 !important",color:"#879196 !important"},N=e=>({"& input":{backgroundColor:e?"".concat(f()["colors-primary"]," !important"):"".concat(f()["colors-grey-light"]," !important"),color:e?"".concat(f()["colors-light"]," !important"):"".concat(f()["colors-secondary"]," !important"),height:"30px !important",padding:"17px 24px 12px 24px !important",fontSize:"20px !important",lineHeight:"32px !important","::placeholder":$}});return(0,n.jsxs)(d.ZP,{container:!0,direction:"column",justifyContent:"center",alignItems:"center",rowGap:"32px",children:[(0,n.jsx)(p.Z,{variant:"subtitle1",sx:e=>({color:f()["colors-secondary"],fontSize:{xs:"18px",sm:"20px"},lineHeight:{xs:"30px",sm:"32px"},[e.breakpoints.between(376,630)]:{fontSize:"18px",lineHeight:"30px"}}),children:S("login.phone")}),(0,n.jsx)(p.Z,{variant:"body1",sx:e=>({fontSize:{xs:"14px",sm:"16px"},lineHeight:{xs:"24px",sm:"30px"},maxWidth:"600px",textAlign:"center",[e.breakpoints.between(376,630)]:{fontSize:"14px",lineHeight:"24px"}}),children:S("login.enterCode")}),(0,n.jsx)(d.ZP,{container:!0,justifyContent:"center",alignItems:"center",direction:"column",sx:e=>({maxWidth:"543px",padding:{xs:"24px",sm:"48px"},borderRadius:"10px",boxShadow:"0px 4px 25px 0px ".concat(f()["colors-shadow_1"]),[e.breakpoints.between(376,630)]:{padding:"24px"}}),children:(0,n.jsx)(d.ZP,{item:!0,children:(0,n.jsxs)(d.ZP,{container:!0,rowGap:"16px",justifyContent:"center",children:[(0,n.jsxs)(d.ZP,{container:!0,sx:e=>({columnGap:{xs:"13px",sm:"29px"},justifyContent:{xs:"space-between",sm:"center"},[e.breakpoints.between(376,630)]:{columnGap:"13px",justifyContent:"space-between"}}),children:[(0,n.jsx)(h.Z,{placeholder:"0",sx:{...T,...N(t.first)},value:t.first,onChange:e=>z(e,"first",e.target.value,0),inputRef:a[0],onKeyDown:e=>_(e,0,"first")}),(0,n.jsx)(h.Z,{placeholder:"0",sx:{...T,...N(t.second)},value:t.second,onChange:e=>z(e,"second",e.target.value,1),inputRef:a[1],onKeyDown:e=>_(e,1,"second")}),(0,n.jsx)(h.Z,{placeholder:"0",sx:{...T,...N(t.third)},value:t.third,onChange:e=>z(e,"third",e.target.value,2),inputRef:a[2],onKeyDown:e=>_(e,2,"third")}),(0,n.jsx)(h.Z,{placeholder:"0",sx:{...T,...N(t.fourth)},value:t.fourth,onChange:e=>z(e,"fourth",e.target.value,3),inputRef:a[3],onKeyDown:e=>_(e,3,"fourth")})]}),H?(0,n.jsx)(m.Z,{size:"24px",sx:{marginTop:"24px"}}):(0,n.jsxs)(p.Z,{variant:"body3",sx:e=>({color:f()["colors-primary"],cursor:"pointer",pointerEvents:o?"none":"auto",[e.breakpoints.between(376,630)]:{marginLeft:"50px"}}),onClick:()=>{R({id:"+"+C})},children:[S("login.getCode")," ",o||""]})]})})})]})}function C(){let{t:e}=(0,i.$G)("common");return(0,n.jsxs)(d.ZP,{container:!0,direction:"column",justifyContent:"center",alignItems:"center",rowGap:"32px",children:[(0,n.jsx)(p.Z,{variant:"subtitle1",sx:e=>({color:f()["colors-secondary"],fontSize:{xs:"18px",sm:"20px"},lineHeight:{xs:"30px",sm:"32px"},[e.breakpoints.between(376,630)]:{fontSize:"18px",lineHeight:"30px"}}),children:e("login.email")}),(0,n.jsx)(p.Z,{variant:"body1",sx:e=>({fontSize:{xs:"14px",sm:"16px"},lineHeight:{xs:"24px",sm:"30px"},maxWidth:"922px",textAlign:"center",[e.breakpoints.between(376,630)]:{fontSize:"14px",lineHeight:"24px"},padding:"0 16px"}),children:e("login.checkEmail")})]})}function S(){let e=(0,c.useRouter)(),t="email"===e.query.from,r="phone"===e.query.from,o=e.query.id,{t:s}=(0,i.$G)("common");return(0,n.jsxs)(d.ZP,{container:!0,alignItems:"center",justifyContent:"center",direction:"column",sx:e=>({marginTop:{xs:"64px",sm:"96px",md:"156px"},marginBottom:{xs:"32px",sm:"48px",md:"78px"},padding:{xs:"0 16px",sm:"unset"},rowGap:{xs:"48px",md:"96px"},[e.breakpoints.between(376,630)]:{marginTop:"64px",rowGap:"48px",marginBottom:"40px",padding:"0 16px"},[e.breakpoints.between(769,1100)]:{marginTop:"96px"}}),children:[!t&&!r&&(0,n.jsx)(p.Z,{variant:"h4",sx:e=>({fontWeight:"700",maxWidth:"1000px",fontSize:{xs:"18px",sm:"24px"},lineHeight:{xs:"30px",sm:"36px"},[e.breakpoints.between(376,630)]:{fontSize:"18px",lineHeight:"30px"},textAlign:"center"}),children:s("login.needVerification")}),(t||!!o&&!r)&&(0,n.jsx)(C,{}),(r||!!o)&&(0,n.jsx)(j,{})]})}var R=!0;function P(){let{t:e}=(0,i.$G)("profile");return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s(),{children:(0,n.jsx)("title",{children:"HyeManuk"})}),(0,n.jsx)(l.Z,{imageUrl:"/log-in-hands-feet.png",text:e("profile.confirmation"),isLocal:!0,name:"log-in-hands-feet"}),(0,n.jsx)(S,{})]})}P.getLayout=function(e){return(0,n.jsx)(a.Z,{children:e})}},4696:function(e,t,r){"use strict";r.d(t,{t:function(){return n}});let n=e=>"https://api.hyemanuk.org"+e}},function(e){e.O(0,[898,3818,7102,6022,7115,8639,638,9774,2888,179],function(){return e(e.s=2841)}),_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.