(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1942],{33538:function(e,t,r){var s={"./public/ssr-static/favicons/kz/manifest.json":[46914,6914],"./public/ssr-static/favicons/tr/manifest.json":[92977,2977],"./public/ssr-static/favicons/ua/manifest.json":[37722,7722],"./public/ssr-static/locales/ru/common.json":[27860,7860],"./public/ssr-static/locales/ru/components.json":[80400,400],"./public/ssr-static/locales/ru/date.json":[2325,2325],"./public/ssr-static/locales/ru/footer.json":[70793,793],"./public/ssr-static/locales/ru/header.json":[86514,6514],"./public/ssr-static/locales/ru/pages/_error.json":[16496,6496],"./public/ssr-static/locales/ru/pages/about-user.json":[18448,8448],"./public/ssr-static/locales/ru/pages/about.json":[63597,3597],"./public/ssr-static/locales/ru/pages/auth/login.json":[63491,3491],"./public/ssr-static/locales/ru/pages/auth/restore_password.json":[16443,6443],"./public/ssr-static/locales/ru/pages/cabinet/messages.json":[18074,8074],"./public/ssr-static/locales/ru/pages/cabinet/payments.json":[75212,5212],"./public/ssr-static/locales/ru/pages/cabinet/profile/verification_form.json":[66516,6516],"./public/ssr-static/locales/ru/pages/cabinet/sidebar.json":[25814,5814],"./public/ssr-static/locales/ru/pages/choice-categories.json":[58667,5964],"./public/ssr-static/locales/ru/pages/contacts.json":[52887,2887],"./public/ssr-static/locales/ru/pages/for-entrepreneurs.json":[9665,9665],"./public/ssr-static/locales/ru/pages/help.json":[87380,7380],"./public/ssr-static/locales/ru/pages/how-it-works.json":[30625,625],"./public/ssr-static/locales/ru/pages/listing.json":[89458,9458],"./public/ssr-static/locales/ru/pages/rabota.json":[49413,9413],"./public/ssr-static/locales/ru/pages/registration/performer.json":[53925,3925],"./public/ssr-static/locales/ru/pages/safety.json":[16491,6491],"./public/ssr-static/locales/ru/pages/simple-task-create.json":[96264,6264],"./public/ssr-static/locales/ru/pages/static-pages.json":[67094,7094],"./public/ssr-static/locales/ru/pages/user.json":[59916,9916],"./public/ssr-static/locales/ru/validation.json":[17076,7076],"./public/ssr-static/locales/tr/common.json":[45559,5559],"./public/ssr-static/locales/tr/components.json":[69769,9769],"./public/ssr-static/locales/tr/date.json":[20537,537],"./public/ssr-static/locales/tr/footer.json":[76083,6083],"./public/ssr-static/locales/tr/header.json":[22468,2468],"./public/ssr-static/locales/tr/pages/_error.json":[21301,1301],"./public/ssr-static/locales/tr/pages/about-user.json":[17498,7498],"./public/ssr-static/locales/tr/pages/about.json":[31822,1822],"./public/ssr-static/locales/tr/pages/auth/login.json":[90696,696],"./public/ssr-static/locales/tr/pages/auth/restore_password.json":[99407,9407],"./public/ssr-static/locales/tr/pages/cabinet/messages.json":[34136,4136],"./public/ssr-static/locales/tr/pages/cabinet/payments.json":[79,79],"./public/ssr-static/locales/tr/pages/cabinet/profile/verification_form.json":[94879,4879],"./public/ssr-static/locales/tr/pages/cabinet/sidebar.json":[58516,8516],"./public/ssr-static/locales/tr/pages/choice-categories.json":[37464,7464],"./public/ssr-static/locales/tr/pages/contacts.json":[36658,6658],"./public/ssr-static/locales/tr/pages/for-entrepreneurs.json":[6703,6703],"./public/ssr-static/locales/tr/pages/help.json":[97114,7114],"./public/ssr-static/locales/tr/pages/how-it-works.json":[21500,1500],"./public/ssr-static/locales/tr/pages/listing.json":[68736,8736],"./public/ssr-static/locales/tr/pages/rabota.json":[98387,8387],"./public/ssr-static/locales/tr/pages/registration/performer.json":[93218,3218],"./public/ssr-static/locales/tr/pages/safety.json":[71986,1986],"./public/ssr-static/locales/tr/pages/simple-task-create.json":[90083,83],"./public/ssr-static/locales/tr/pages/static-pages.json":[65775,5775],"./public/ssr-static/locales/tr/pages/user.json":[86553,6553],"./public/ssr-static/locales/tr/validation.json":[94620,4620],"./public/ssr-static/locales/uk/common.json":[4962,4962],"./public/ssr-static/locales/uk/components.json":[87812,7812],"./public/ssr-static/locales/uk/date.json":[43782,3782],"./public/ssr-static/locales/uk/footer.json":[82222,2222],"./public/ssr-static/locales/uk/header.json":[86693,6693],"./public/ssr-static/locales/uk/pages/_error.json":[36411,6411],"./public/ssr-static/locales/uk/pages/about-user.json":[2697,2697],"./public/ssr-static/locales/uk/pages/about.json":[43189,3189],"./public/ssr-static/locales/uk/pages/auth/login.json":[3314,3314],"./public/ssr-static/locales/uk/pages/auth/restore_password.json":[11434,1434],"./public/ssr-static/locales/uk/pages/cabinet/messages.json":[79147,9147],"./public/ssr-static/locales/uk/pages/cabinet/payments.json":[894,894],"./public/ssr-static/locales/uk/pages/cabinet/profile/verification_form.json":[80984,984],"./public/ssr-static/locales/uk/pages/cabinet/sidebar.json":[48075,8075],"./public/ssr-static/locales/uk/pages/choice-categories.json":[757,757],"./public/ssr-static/locales/uk/pages/contacts.json":[71746,1746],"./public/ssr-static/locales/uk/pages/for-entrepreneurs.json":[35766,5766],"./public/ssr-static/locales/uk/pages/help.json":[99930,9930],"./public/ssr-static/locales/uk/pages/how-it-works.json":[58773,8773],"./public/ssr-static/locales/uk/pages/listing.json":[85515,5515],"./public/ssr-static/locales/uk/pages/rabota.json":[70055,55],"./public/ssr-static/locales/uk/pages/registration/performer.json":[21196,1196],"./public/ssr-static/locales/uk/pages/safety.json":[11851,1851],"./public/ssr-static/locales/uk/pages/simple-task-create.json":[83711,717],"./public/ssr-static/locales/uk/pages/static-pages.json":[83897,3897],"./public/ssr-static/locales/uk/pages/user.json":[92726,2726],"./public/ssr-static/locales/uk/validation.json":[26801,6801],"./public/ssr-static/lottie/success.json":[20290,290]};function a(e){if(!r.o(s,e))return Promise.resolve().then(function(){var t=Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t});var t=s[e],a=t[0];return r.e(t[1]).then(function(){return r.t(a,19)})}a.keys=function(){return Object.keys(s)},a.id=33538,e.exports=a},78349:function(e,t,r){"use strict";var s,a=r(94746);function n(){return(n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var s in r)({}).hasOwnProperty.call(r,s)&&(e[s]=r[s])}return e}).apply(null,arguments)}t.Z=function(e){return a.createElement("svg",n({viewBox:"0 0 10 9",xmlns:"http://www.w3.org/2000/svg"},e),s||(s=a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.351.645 3.992 5.943 1.549 3.098.124 4.456l3.874 4.511 5.784-7.03L8.352.646Z"})))}},286:function(e,t,r){"use strict";var s,a=r(94746);function n(){return(n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var s in r)({}).hasOwnProperty.call(r,s)&&(e[s]=r[s])}return e}).apply(null,arguments)}t.Z=function(e){return a.createElement("svg",n({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},e),s||(s=a.createElement("path",{d:"m2.438-.375 29.938 29.938-2.813 2.813L-.375 2.438zm27.125 0 2.813 2.813L2.438 32.376l-2.813-2.813z"})))}},31195:function(e,t,r){"use strict";var s,a=r(94746);function n(){return(n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var s in r)({}).hasOwnProperty.call(r,s)&&(e[s]=r[s])}return e}).apply(null,arguments)}t.Z=function(e){return a.createElement("svg",n({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},e),s||(s=a.createElement("path",{d:"M4 15V6.943l4.256 3.04a2.995 2.995 0 0 0 3.487 0L16 6.943V15H4zm9.879-9L10.58 8.356a.997.997 0 0 1-1.161-.001L6.121 6h7.758zM16 4H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2z"})))}},95680:function(e,t,r){"use strict";var s,a=r(94746);function n(){return(n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var s in r)({}).hasOwnProperty.call(r,s)&&(e[s]=r[s])}return e}).apply(null,arguments)}t.Z=function(e){return a.createElement("svg",n({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},e),s||(s=a.createElement("path",{d:"M9.98 6a2 2 0 1 0 0 4 2 2 0 0 0 0-4zm.01-2.911c-2.705 0-4.907 2.207-4.907 4.919 0 3.721 3.456 7.092 4.902 8.339 1.447-1.26 4.91-4.661 4.91-8.339 0-2.712-2.2-4.919-4.906-4.919zM9.992 19l-.623-.462C9.11 18.344 3 13.748 3 8.008 3 4.144 6.134 1 9.99 1c3.853 0 6.99 3.144 6.99 7.008 0 5.674-6.105 10.329-6.366 10.525l-.62.467z",fill:"currentColor"})))}},66845:function(e,t,r){"use strict";var s,a=r(94746);function n(){return(n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var s in r)({}).hasOwnProperty.call(r,s)&&(e[s]=r[s])}return e}).apply(null,arguments)}t.Z=function(e){return a.createElement("svg",n({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},e),s||(s=a.createElement("path",{d:"m682.016 196 144 144-444 444-144-144zm212 78.016-144-144L860.032 20c28-26.016 68-26.016 96 0l48 48c26.016 28 26.016 68 0 96zM20 1004l158.016-300 142.016 142.016z"})))}},38058:function(e,t,r){"use strict";var s,a=r(94746);function n(){return(n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var s in r)({}).hasOwnProperty.call(r,s)&&(e[s]=r[s])}return e}).apply(null,arguments)}t.Z=function(e){return a.createElement("svg",n({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},e),s||(s=a.createElement("path",{d:"M16.25 17.313C20.563 17.313 24 12 24 7.75A7.709 7.709 0 0 0 16.25 0C12 0 8.562 3.438 8.562 7.75c0 4.25 3.438 9.563 7.688 9.563zm0-14.625a5.042 5.042 0 0 1 5.063 5.063c0 2.938-2.5 6.938-5.063 6.938-2.5 0-5.063-4-5.063-6.938a5.042 5.042 0 0 1 5.063-5.063zm7.625 17.187-2.688-1.313-4.938 3.688-5.438-3.563L8.123 20C3.998 21.875 1.31 26.125 1.31 30.688v1.313h29.375v-1.313c0-4.563-2.688-8.813-6.813-10.813zm-19.75 9.438c.438-3.063 2.438-5.688 5.188-7.063l1.375-.625 5.688 4 5.25-3.875 1.188.625c2.813 1.375 4.625 4 5.188 7.063H4.127z",fill:"currentColor"})))}},61942:function(e,t,r){Promise.resolve().then(r.bind(r,41994)),Promise.resolve().then(r.bind(r,72797))},25934:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var s=r(57437);r(2265);var a=r(51051),n=r(89731),i=r.n(n);let o=e=>{let{children:t}=e;return(0,s.jsx)("div",{className:i().separator,children:(0,s.jsx)(a.x,{"box-padding-left":"m","box-padding-right":"m",children:t})})}},67724:function(e,t,r){"use strict";r.d(t,{Snackbars:function(){return m},t:function(){return g},z:function(){return f}});var s=r(57437),a=r(2265);class n{}n.snackbars=[],n.checkAndCallListener=()=>{n.snackbarsListener&&n.snackbarsListener(n.snackbars)},n.popSnackbar=()=>{n.snackbars.pop(),n.checkAndCallListener()},n.removeSnackbar=e=>{n.snackbars.splice(e,1),n.checkAndCallListener()},n.addSnackbar=e=>{n.snackbars.push(e),setTimeout(n.popSnackbar,e.duration||5e3),n.checkAndCallListener()};let i=()=>{let[e,t]=(0,a.useState)(n.snackbars);return(0,a.useEffect)(()=>{n.snackbarsListener=e=>{t([...e])}},[]),{snackbars:e,removeSnackbar:n.removeSnackbar}};var o=r(9720),l=r(72953),c=r(47194),u=r(286),p=r(13325),d=r.n(p);let m=()=>{let{snackbars:e,removeSnackbar:t}=i();return(0,s.jsx)(l.Z,{className:d().list,component:"ul",children:e.map((e,r)=>{let{message:a,type:n}=e;return(0,s.jsx)(c.Z,{timeout:500,classNames:d(),exit:!0,enter:!0,children:(0,s.jsx)("li",{className:d().item,children:(0,s.jsxs)("div",{className:(0,o.N)({[d().root]:!0,[d().stateError]:"error"===n}),children:[(0,s.jsx)("span",{children:a}),(0,s.jsx)("button",{className:d().closeIcon,onClick:()=>t(r),children:(0,s.jsx)(u.Z,{})})]})})},r)})})},g=e=>{n.addSnackbar({message:e,type:"error"})},f=e=>{n.addSnackbar({message:e,type:"info"})}},9871:function(e,t,r){"use strict";r.d(t,{C:function(){return u}});var s=r(57437),a=r(2265),n=r(9720),i=r(32727),o=r.n(i),l=r(58449),c=r.n(l);let u=(0,a.forwardRef)((e,t)=>{let{isActive:r,children:a,onChange:i,size:l="medium",...u}=e;return(0,s.jsxs)("label",{className:(0,n.N)(o().tabItem,{[o().tabItemSmall]:"small"===l,[o().tabItemMedium]:"medium"===l,[o().tabItemActive]:r}),onChange:i,children:[(0,s.jsx)("input",{...u,className:c().hiddenInput,type:"radio",ref:t}),(0,s.jsx)("span",{className:o().text,children:a})]})});u.displayName="ToggleButton"},72968:function(e,t,r){"use strict";r.d(t,{t:function(){return l}});var s=r(57437),a=r(2265),n=r(9720),i=r(99498),o=r.n(i);let l=e=>{let{children:t,value:r,disabled:i=!1,size:l="medium",...c}=e;return(0,s.jsx)("div",{className:(0,n.N)(o().tab,{[o().disabled]:i}),role:"radiogroup",tabIndex:-1,...c,children:a.Children.map(t,e=>a.isValidElement(e)?a.cloneElement(e,{...e.props,isActive:e.props.value===r,size:l}):null)})}},94621:function(e,t,r){"use strict";r.d(t,{v:function(){return u}});var s=r(57437);r(51815),r(31482),r(2265);var a=r(9720),n=r(1014),i=r(78349),o=r(76440),l=r.n(o);let c=e=>{let{completed:t,inverse:r,customIcon:n,step:o}=e;return t?(0,s.jsx)(i.Z,{className:(0,a.N)(l().completedIcon,{[l().completedIconFilled]:r}),"aria-hidden":!0,focusable:!1}):!t&&n?(0,s.jsx)(s.Fragment,{children:n}):(0,s.jsx)(s.Fragment,{children:o})},u=e=>{let{step:t,title:r,children:i,isActive:o,completed:u,hasMore:p,customIcon:d,titleBold:m=!1,inverse:g=!1}=e;return(0,s.jsxs)("li",{className:(0,a.N)(l().container,{[l().containerWithDash]:p}),"aria-current":o||"false",children:[(0,s.jsxs)("div",{className:l().firstRow,children:[(0,s.jsx)("div",{className:(0,a.N)(l().number,{[l().activeNumber]:o,[l().completedNumber]:u,[l().numberInverted]:g}),children:(0,s.jsx)(c,{completed:u,customIcon:d,inverse:g,step:t})}),(0,s.jsx)(n.x,{themes:["neutral-dark","primary"],"text-as":"p","text-color":o?"primary":"neutral-dark","text-weight":m?"bold":"default","text-size":"h5",className:l().title,children:r})]}),(0,s.jsx)("p",{className:l().content,children:i})]})}},40914:function(e,t,r){"use strict";r.d(t,{u:function(){return n}});var s=r(57437),a=r(2265);let n=e=>{let{activeStep:t,children:r}=e,n=(0,a.useMemo)(()=>a.Children.count(r),[r]);return(0,s.jsx)("ol",{"aria-label":"progress",children:a.Children.map(r,(e,r)=>{if(!a.isValidElement(e))return null;let s=t===e.props.step,i=t>e.props.step;return a.cloneElement(e,{isActive:s,completed:i,hasMore:n>r+1})})})}},41994:function(e,t,r){"use strict";r.d(t,{GoogleAuthScript:function(){return o}});var s=r(57437),a=r(48667),n=r(32073);let i=()=>{var e;window.gapi||console.error("Google auth script not initialized"),null===(e=window.gapi)||void 0===e||e.load("auth2",()=>{var e;null===(e=window.gapi)||void 0===e||e.auth2.init({client_id:n.publicConfig.google.clientId})})},o=()=>(0,s.jsx)(a.default,{src:"https://apis.google.com/js/platform.js?onload=init",onLoad:i,async:!0})},1734:function(e,t,r){"use strict";r.d(t,{n:function(){return l}});var s=r(57437);r(2265);var a=r(9720),n="/_next/static/media/bg-pattern.dfeb4092.png",i=r(68945),o=r.n(i);let l=e=>{let{centered:t=!1,children:r}=e;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("link",{rel:"preload",href:n,as:"image"}),(0,s.jsx)("div",{className:o().root,style:{backgroundImage:"url(".concat(n,")")},children:(0,s.jsx)("div",{className:(0,a.N)(o().container,{[o().containerCentered]:t}),children:r})})]})}},93176:function(e,t,r){"use strict";r.d(t,{$:function(){return h}});var s,a=r(57437),n=r(2265),i=r(55788),o=r(51834),l=r(9720),c=r(94746);function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var s in r)({}).hasOwnProperty.call(r,s)&&(e[s]=r[s])}return e}).apply(null,arguments)}var p=function(e){return c.createElement("svg",u({xmlns:"http://www.w3.org/2000/svg",width:18,height:18},e),s||(s=c.createElement("g",{fill:"none",fillRule:"evenodd"},c.createElement("path",{fill:"#EA4335",d:"M9 3.48c1.69 0 2.83.73 3.48 1.34l2.54-2.48C13.46.89 11.43 0 9 0 5.48 0 2.44 2.02.96 4.96l2.91 2.26C4.6 5.05 6.62 3.48 9 3.48z"}),c.createElement("path",{fill:"#4285F4",d:"M17.64 9.2c0-.74-.06-1.28-.19-1.84H9v3.34h4.96c-.1.83-.64 2.08-1.84 2.92l2.84 2.2c1.7-1.57 2.68-3.88 2.68-6.62z"}),c.createElement("path",{fill:"#FBBC05",d:"M3.88 10.78A5.54 5.54 0 0 1 3.58 9c0-.62.11-1.22.29-1.78L.96 4.96A9.008 9.008 0 0 0 0 9c0 1.45.35 2.82.96 4.04l2.92-2.26z"}),c.createElement("path",{fill:"#34A853",d:"M9 18c2.43 0 4.47-.8 5.96-2.18l-2.84-2.2c-.76.53-1.78.9-3.12.9-2.38 0-4.4-1.57-5.12-3.74L.97 13.04C2.45 15.98 5.48 18 9 18z"}),c.createElement("path",{d:"M0 0h18v18H0z"}))))},d=r(62007),m=r.n(d);let g={GOOGLE:"google"},f=e=>{let{type:t,onClick:r,href:s,centered:n=!1}=e,{t:c}=(0,i.$G)("components"),u=t===g.GOOGLE;return(0,a.jsx)("a",{className:(0,l.N)(m().root,{[m().centered]:n}),href:s||(0,o.Bu)(t),onClick:r,children:u&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(p,{className:m().icon}),(0,a.jsx)("span",{className:m().name,children:c("loginWithGoogle")})]})})},h=e=>{let{onClick:t,links:r}=e,s=(0,n.useCallback)(e=>{t&&t(g.GOOGLE,e)},[t]);return(0,a.jsx)(f,{type:g.GOOGLE,onClick:s,href:r&&r[g.GOOGLE],centered:!0})}},72797:function(e,t,r){"use strict";r.d(t,{PerformerRegistration:function(){return eT}});var s,a=r(57437),n=r(2265),i=r(89939),o=r(1455),l=r(71402),c=r(14532),u=r(51834);let p=(0,l.Jh)()("verify/phone",async(e,t)=>{let{firstName:r,email:s,region:a,phone:n,agreement:i,isCompany:o}=e,{getState:l,rejectWithValue:p}=t,{performerRegistration:d,meta:m}=l(),{socialProvider:g,isCustomer:f}=d,h=await (0,c.a4)(f?u.Yy:u.NK,{first_name:r.trim(),is_company:"true"===o,email:s.trim(),region_id:a,phone:n,agreement:i,social:g},{locale:m.locale}),b=await h.json();return"error"===b.status?p({errors:b.errors||{},phoneOccupied:b.phone_occupied,emailOccupied:b.email_occupied}):"session_blocked"===b.status?p({sessionBlocked:!0}):{isCompany:o,email:s,phone:n,token:b.data.token}},{condition(e,t){let{getState:r}=t;return!r().performerRegistration.registrationFormLoading}}),d=(0,l.Jh)()("save/performer",async(e,t)=>{let{params:r,code:s}=e,{getState:a,rejectWithValue:n}=t;console.log("params");let{performerRegistration:i,meta:o}=a(),l=await (0,c.a4)(i.isCustomer?u.JO:u.DZ,{code:s},{authToken:i.token,locale:o.locale,params:r}),p=await l.json();return"error"===p.status?n({errors:p.errors}):"session_blocked"===p.status?n({sessionBlocked:!0}):"timeout"===p.status&&"reg_data_timeout"===p.reason?n({timeout:!0}):{userId:p.user_id,errors:null}},{condition(e,t){let{getState:r}=t;return!r().performerRegistration.registrationFormLoading}}),m=(0,l.Jh)()("resend/code",async(e,t)=>{let{getState:r,rejectWithValue:s}=t,{performerRegistration:a,meta:n}=r(),i=await (0,c.a4)(u.vx,null,{authToken:a.token,locale:n.locale}),o=await i.json();return"session_blocked"===o.status?s({sessionBlocked:!0}):"timeout"===o.status&&"reg_data_timeout"===o.reason?s({timeout:!0}):void 0}),g=(0,l.Jh)()("resend/email",async(e,t)=>{let{getState:r,rejectWithValue:s}=t,{performerRegistration:a,meta:n}=r(),i=await (0,c.a4)(u.$H,{email:e},{authToken:a.token,locale:n.locale}),o=await i.json();return"session_blocked"===o.status?s({sessionBlocked:!0}):"timeout"===o.status&&"reg_data_timeout"===o.reason?s({timeout:!0}):void 0});var f=r(68773),h=r(12736),b=r(32073);let x={TYPE_SELECT:"TYPE_SELECT",DATA_FORM:"DATA_FORM",PHONE_VERIFICATION:"PHONE_VERIFICATION",EMAIL_VERIFICATION:"EMAIL_VERIFICATION"},j={isCompany:!1,firstName:"",email:"",phone:"",errors:{},phoneOccupied:!1,emailOccupied:!1,sessionBlocked:!1,registrationFormLoading:!1,token:"",step:x.TYPE_SELECT,isCustomer:!0,socialProvider:null,editingData:!1},v=(0,o.zR)(p,d,g),_=(0,o.Iv)(p,d,g),k=(0,o.oM)({name:"performerRegistration",initialState:j,reducers:{setEmail:(0,l.VC)("email"),setPhone:(0,l.VC)("phone"),setEditingData:(0,l.VC)("editingData"),setTypeSelected:(e,t)=>{e.isCustomer=t.payload,e.step=x.DATA_FORM}},extraReducers(e){e.addCase(h.x,(e,t)=>{if(t.payload.performerRegistration)return t.payload.performerRegistration}),e.addCase(p.fulfilled,(e,t)=>{e.registrationFormLoading=!1,e.sessionBlocked=!1,e.phoneOccupied=!1,e.errors={},e.token=t.payload.token,e.isCompany="true"===t.payload.isCompany,e.email=t.payload.email,e.phone=t.payload.phone,b.publicConfig.features.validateSmsOnRegistration&&(e.step=x.PHONE_VERIFICATION)}),e.addCase(d.fulfilled,e=>{e.registrationFormLoading=!1}),e.addCase(m.rejected,(e,t)=>{var r,s;e.sessionBlocked=null!==(s=null===(r=t.payload)||void 0===r?void 0:r.sessionBlocked)&&void 0!==s&&s}),e.addMatcher(v,e=>{e.registrationFormLoading=!0}),e.addMatcher(_,(e,t)=>{var r,s,a,n,i,o,l,c;(null===(r=t.payload)||void 0===r?void 0:r.errors)&&(e.errors=t.payload.errors),e.phoneOccupied=null!==(o=null===(s=t.payload)||void 0===s?void 0:s.phoneOccupied)&&void 0!==o&&o,e.emailOccupied=null!==(l=null===(a=t.payload)||void 0===a?void 0:a.emailOccupied)&&void 0!==l&&l,(null===(n=t.payload)||void 0===n?void 0:n.sessionBlocked)&&(e.sessionBlocked=null===(c=t.payload)||void 0===c?void 0:c.sessionBlocked),(null===(i=t.payload)||void 0===i?void 0:i.timeout)&&(e.step=x.DATA_FORM),e.registrationFormLoading=!1})}}),{setEmail:A,setPhone:y,setEditingData:C,setTypeSelected:w}=k.actions,E=f.f.inject(k);var I=r(97261),S=r(55788),O=r(51051),R=r(1014),L=r(25987),N={src:"/_next/static/media/performer.6f4198e5.png",height:144,width:144,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAYFBMVEX///++VTqzWiXd2uzYnyXu0bTDaB303bj+++ntrj5ZM3diSXroqTLAp39qKWh5MHXmtyXlaYH9+vn53Z/1ymDGhwvwuDDLdh7njTPYfSnv0LepTinDucmvo7biPF3ALUSzi6WCAAAACXBIWXMAABYlAAAWJQFJUiTwAAAARElEQVR4nBXJVw6AIBAFwEcRWDoK9nL/W5r9m2SAeek0AYBd9dCOsR27sQDOSwjJ5yhG4lKp1qSAx2dpir8R8tfaW8IPU9ACom2jnfwAAAAASUVORK5CYII=",blurWidth:8,blurHeight:8},F={src:"/_next/static/media/customer.3cd86a53.png",height:144,width:144,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAYFBMVEX////LkA33uxv5zkXe3t7svlL43I///fj+8dGanKKysrTKoz/XrFDBnk6ppqKCg4Xz8/PryXzDxMXo0KK8ky3dw4TwyW7jrCDVnBTYqz7ntCz62oC4omj29vbQz86dm5iXIKBAAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAQklEQVR4nBXLtRHAMAAAsTfEDGGG/bfMuVMjrHFYAKsu55yF5z7S2hnQPu+b6BpiVPMAr8/ylBPo+iWxtBdqKWHsf1ZQApudFm6yAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:8},z=r(13307),B=r.n(z);let M=e=>{let{image:t,alt:r,description:s,onClick:n,testId:i}=e;return(0,a.jsxs)("button",{onClick:n,className:B().card,"data-testid":i,children:[(0,a.jsx)(O.x,{"box-margin-bottom":"l",children:(0,a.jsx)(L.E,{className:B().image,src:t,alt:r,height:72,width:72,priority:!0})}),(0,a.jsx)(R.x,{className:B().description,"text-size":"h1","text-align":"center",children:s})]})},T=()=>{let{t:e}=(0,S.$G)(["common","pages/registration/performer"]),t=(0,i.I0)();return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(O.x,{"box-margin-bottom":"m",children:(0,a.jsx)(R.x,{"text-size":"h1","text-as":"h1","text-align":"center","text-weight":"bold",children:e("typeSelect.chooseAction",{ns:"pages/registration/performer"})})}),(0,a.jsx)(O.x,{"box-margin-bottom":"s",children:(0,a.jsx)(M,{onClick:()=>{t(w(!1))},image:N,alt:e("performer"),description:e("typeSelect.beginToEarn",{ns:"pages/registration/performer"}),testId:"performer"})}),(0,a.jsx)(O.x,{children:(0,a.jsx)(M,{onClick:()=>{t(w(!0))},image:F,alt:e("customer"),description:e("typeSelect.orderAService",{ns:"pages/registration/performer"}),testId:"customer"})})]})};r(42395);var D=r(33593),V=r(38713),P=r(29501),G=r(99376),Z=r(43386),W=r(35302);let q=function(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],t=(0,n.useCallback)(e=>{e.preventDefault(),e.returnValue=""},[]);return(0,n.useEffect)(()=>{if(e)return window.addEventListener("beforeunload",t),()=>window.removeEventListener("beforeunload",t)},[t,e]),()=>window.removeEventListener("beforeunload",t)};var H=r(14927),K=r(34243),X=r(88695),U=r(72968),Y=r(9871),J=r(8383),Q=r(48177),$=r(56923),ee=r(48043),et=r(30628),er=r(84708),es=r(25934),ea=r(93176),en=r(38058),ei=r(31195),eo=r(94746);function el(){return(el=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var s in r)({}).hasOwnProperty.call(r,s)&&(e[s]=r[s])}return e}).apply(null,arguments)}var ec=function(e){return eo.createElement("svg",el({xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none"},e),s||(s=eo.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.037 2a2.46 2.46 0 0 0-.593.074c-.36.09-.702.25-.986.464-.717.54-1.272 1.048-1.743 1.595a2.89 2.89 0 0 0-.682 2.361c.127.876.43 1.726.952 2.677.57 1.035 1.297 2.036 2.293 3.149 1.121 1.255 2.23 2.314 3.39 3.236 1.124.896 2.124 1.51 3.147 1.936.72.3 1.389.464 2.042.503.093.004.137.005.18.005.834 0 1.371-.351 1.745-.658.462-.377.899-.828 1.374-1.418a5.71 5.71 0 0 0 .475-.66c.698-1.16.382-2.55-.751-3.301l-.672-.445c-.561-.371-1.123-.742-1.68-1.118a2.535 2.535 0 0 0-2.38-.257c-.16.062-.324.14-.484.23-.055.03-.11.06-.165.092a18.949 18.949 0 0 1-1.968-1.98c.08-.147.157-.294.232-.441.423-.835.358-1.801-.172-2.587a178.659 178.659 0 0 1-1.565-2.363C7.572 2.4 6.847 2 6.036 2Zm0 2.078c.1 0 .182.048.25.153.523.8 1.047 1.598 1.582 2.39.112.164.124.32.042.481-.15.295-.31.585-.47.875-.109.199-.219.396-.337.588-.047.077-.043.132.01.2.339.426.657.872 1.017 1.278.746.842 1.548 1.63 2.423 2.34.22.18.459.337.686.507a.152.152 0 0 0 .09.036c.028 0 .057-.01.09-.03.418-.24.837-.474 1.258-.71.073-.04.149-.077.226-.108a.462.462 0 0 1 .461.045c.786.528 1.578 1.048 2.367 1.572.2.133.244.29.119.5-.09.15-.203.287-.313.425a7.426 7.426 0 0 1-1.07 1.113c-.183.15-.262.189-.43.189l-.057-.001c-.478-.03-.93-.166-1.368-.348-.973-.405-1.834-.992-2.653-1.643a25.633 25.633 0 0 1-3.134-2.995c-.764-.856-1.466-1.756-2.02-2.765-.34-.62-.614-1.265-.716-1.974a.822.822 0 0 1 .199-.705c.42-.49.906-.907 1.419-1.293a.684.684 0 0 1 .237-.107.364.364 0 0 1 .092-.013Z",fill:"currentColor"})))},eu=r(95680);let ep=e=>{let{children:t}=e;return(0,a.jsx)(K.Link,{locale:null,href:(0,W.tC)({path:Z.hO}),lineHeight:"small",underline:"hover",highlighted:!0,children:t},1)},ed=(0,u.Bu)("google"),em=(0,W.Sr)(ed,{user_type:"customer"}),eg=(0,W.Sr)(ed,{user_type:"performer"}),ef=()=>{var e,t,r,s,l;let{t:c}=(0,S.$G)(["common","pages/registration/performer","validation"]),u=(0,G.useRouter)(),m=(0,i.v9)(e=>e.regions.regionsFetching),g=(0,i.v9)(e=>e.regions.regions),f=(0,i.v9)(e=>e.performerRegistration.socialProvider),h=(0,i.v9)(e=>e.performerRegistration.firstName),x=(0,i.v9)(e=>e.performerRegistration.email),j=(0,i.v9)(e=>e.performerRegistration.phone),v=(0,i.v9)(e=>e.performerRegistration.isCompany),_=(0,i.v9)(e=>e.performerRegistration.errors),k=(0,i.v9)(e=>e.performerRegistration.phoneOccupied),A=(0,i.v9)(e=>e.performerRegistration.emailOccupied),y=(0,i.v9)(e=>e.performerRegistration.sessionBlocked),C=(0,i.v9)(e=>e.performerRegistration.registrationFormLoading),w=(0,i.v9)(e=>e.performerRegistration.isCustomer),{watch:E,register:I,control:L,handleSubmit:N,formState:{errors:F,isDirty:z}}=(0,P.cI)({defaultValues:{isCompany:v?"true":"false",firstName:h,email:x,phone:j,region:null,agreement:!1}}),B=E("isCompany"),M="true"===B,T=q(z),W=(0,i.I0)(),eo=(0,n.useMemo)(()=>w?c("customerRegistration",{ns:"pages/registration/performer"}):c(M?"companyRegistration":"performerRegistration",{ns:"pages/registration/performer"}),[c,M,w]),el=(0,n.useCallback)(async()=>{g.length||await W((0,D.nx)())},[W,g]),ed=(0,n.useCallback)(()=>{T()},[T]),ef=async e=>{let t=await W(p(e));if((0,o.KD)(t)&&(W((0,V.ZB)(t.payload.token)),!b.publicConfig.features.validateSmsOnRegistration)){var r;let e=await W(d({params:(0,H.K)()}));(null===(r=e.payload)||void 0===r?void 0:r.errors)||(e.payload&&"userId"in e.payload&&window.dataLayer.push({event:"performer_registration",type:f||"manual",user_id:e.payload.userId,user_type:w?"customer":"performer"}),await W((0,V.is)()),T(),u.push(Z.ME))}};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(O.x,{"box-margin-bottom":"m",children:(0,a.jsx)(R.x,{"text-size":"h1","text-as":"h1","text-align":"center","text-weight":"bold",children:eo})}),b.publicConfig.socialAuthEnabled&&(0,a.jsxs)(O.x,{"box-margin-bottom":"s",children:[(0,a.jsx)(O.x,{"box-margin-bottom":"s",children:(0,a.jsx)(ea.$,{onClick:ed,links:{google:w?em:eg}})}),(0,a.jsx)(es.Z,{children:c("orFillForm",{ns:"pages/registration/performer"})})]}),(0,a.jsxs)("form",{onSubmit:N(ef),children:[!w&&(0,a.jsx)(O.x,{"box-margin-bottom":"xs",children:(0,a.jsxs)(U.t,{value:B,"aria-label":c("dataForm.companyOrPerformer",{ns:"pages/registration/performer"}),children:[(0,a.jsx)(Y.C,{...I("isCompany"),value:"false","data-testid":"performer_mode",children:c("dataForm.performer",{ns:"pages/registration/performer"})}),(0,a.jsx)(Y.C,{...I("isCompany"),value:"true","data-testid":"company_mode",children:c("dataForm.company",{ns:"pages/registration/performer"})})]})}),(0,a.jsxs)(O.x,{"box-margin-bottom":"xs",children:[(0,a.jsx)(Q.I,{...I("firstName",{required:c("required",{ns:"validation"})}),placeholder:c(M?"dataForm.companyName":"dataForm.name",{ns:"pages/registration/performer"}),stateError:!!(F.firstName||_.first_name),autoComplete:"given-name",icon:(0,a.jsx)(en.Z,{focusable:!1,"aria-hidden":!0}),"data-testid":"first_name"}),(0,a.jsx)(ee.D,{errors:(null===(e=F.firstName)||void 0===e?void 0:e.message)||_.first_name})]}),(0,a.jsxs)(O.x,{"box-margin-bottom":"xs",children:[(0,a.jsx)(P.Qr,{control:L,name:"phone",rules:{required:c("required",{ns:"validation"})},render:e=>{let{field:t}=e;return(0,a.jsx)($.C,{...t,format:b.publicConfig.phoneFormat||"",type:"tel",placeholder:c("dataForm.phone",{ns:"pages/registration/performer"}),stateError:!k&&!!(F.phone||_.phone),icon:(0,a.jsx)(ec,{focusable:!1,"aria-hidden":!0}),autoComplete:"tel-national","data-testid":"phone"})}}),k&&(0,a.jsxs)(R.x,{themes:["danger"],"text-size":"default","text-color":"danger",children:[c("dataForm.phoneRegistered",{ns:"pages/registration/performer"}),"\xa0",(0,a.jsx)(K.Link,{href:(0,Z.Mq)(j),underline:"all",children:c("dataForm.login",{ns:"pages/registration/performer"})})]}),(0,a.jsx)(ee.D,{errors:k?null:(null===(t=F.phone)||void 0===t?void 0:t.message)||_.phone})]}),(0,a.jsxs)(O.x,{"box-margin-bottom":"xs",children:[(0,a.jsx)(Q.I,{...I("email",{required:c("required",{ns:"validation"}),pattern:{value:/\S+@\S+\.\S+/,message:c("emailFormat",{ns:"validation"})}}),placeholder:c("dataForm.email",{ns:"pages/registration/performer"}),stateError:!A&&!!(F.email||_.email),autoComplete:"email",icon:(0,a.jsx)(ei.Z,{focusable:!1,"aria-hidden":!0}),"data-testid":"email",type:"email"}),A&&(0,a.jsxs)(R.x,{themes:["danger"],"text-size":"default","text-color":"danger",children:[c("dataForm.emailRegistered",{ns:"pages/registration/performer"}),"\xa0",(0,a.jsx)(K.Link,{href:(0,Z.Mq)(j),underline:"all",children:c("dataForm.login",{ns:"pages/registration/performer"})})]}),(0,a.jsx)(ee.D,{errors:A?null:(null===(r=F.email)||void 0===r?void 0:r.message)||_.email})]}),(0,a.jsxs)(O.x,{"box-margin-bottom":"xs",children:[(0,a.jsx)(P.Qr,{control:L,name:"region",rules:{required:c("required",{ns:"validation"})},render:e=>{let{field:t}=e;return(0,a.jsx)(et.P,{...t,onOpen:el,placeholder:c("dataForm.city",{ns:"pages/registration/performer"}),isLoading:m,stateError:!!(F.region||_.region),"aria-label":c("dataForm.city",{ns:"pages/registration/performer"}),icon:(0,a.jsx)(eu.Z,{focusable:!1,"aria-hidden":!0}),"data-testid":"region",children:g.map(e=>(0,a.jsx)(er.s,{value:e.id,label:e.name,children:e.name},e.id))})}}),(0,a.jsx)(ee.D,{errors:(null===(s=F.region)||void 0===s?void 0:s.message)||_.region})]}),(0,a.jsxs)(O.x,{"box-margin-bottom":"m",children:[(0,a.jsx)(J.X,{...I("agreement",{validate:e=>!!e||c("required",{ns:"validation"})}),children:(0,a.jsx)(S.cC,{i18nKey:"dataForm.terms",ns:"pages/registration/performer",components:{termsLink:(0,a.jsx)(ep,{})}})}),(0,a.jsx)(O.x,{"box-margin-top":"xxs",children:(0,a.jsx)(ee.D,{errors:(null===(l=F.agreement)||void 0===l?void 0:l.message)||_.agreement})})]}),(0,a.jsx)(O.x,{"box-margin-bottom":"xs",children:(0,a.jsxs)(X.z,{loading:C,fullWidth:!0,type:"submit",children:[M&&c("dataForm.registerCompany",{ns:"pages/registration/performer"}),!M&&c("registerInfinitive")]})}),(0,a.jsx)(R.x,{"text-align":"center",children:(0,a.jsx)(S.cC,{i18nKey:"loginForRegistered",ns:"pages/registration/performer",components:{loginLink:(0,a.jsx)(K.Link,{linkColor:"primary-pale",underline:"hover",href:(0,Z.Mq)()})}})})]}),y&&(0,a.jsx)(O.x,{"box-margin-top":"xs",children:c("errors.sessionBlocked")})]})};r(77622);var eh=r(48690),eb=r(67724);let ex=e=>{var t;let{onSubmit:r,initialNumber:s}=e,{t:n}=(0,S.$G)(["common","pages/registration/performer"]),{control:i,handleSubmit:o,formState:{errors:l}}=(0,P.cI)({defaultValues:{phone:s}}),c=o(async e=>{r(e.phone)});return(0,a.jsxs)("form",{onSubmit:c,children:[(0,a.jsxs)(O.x,{"box-margin-bottom":"m",children:[(0,a.jsx)(P.Qr,{control:i,name:"phone",rules:{required:n("required",{ns:"validation"})},render:e=>{let{field:t}=e;return(0,a.jsx)($.C,{...t,placeholder:n("dataForm.phone",{ns:"pages/registration/performer"}),autoComplete:"tel-national",format:b.publicConfig.phoneFormat||"",stateError:!!l.phone,type:"tel","data-testid":"phoneInput"})}}),(0,a.jsx)(ee.D,{errors:null===(t=l.phone)||void 0===t?void 0:t.message})]}),(0,a.jsx)(X.z,{type:"submit",fullWidth:!0,children:n("confirm")})]})};var ej=r(66845),ev=r(45952),e_=r.n(ev);let ek=e=>{let{onClick:t,context:r}=e,{t:s}=(0,S.$G)("pages/registration/performer");return(0,a.jsx)("button",{onClick:t,className:e_().button,"aria-label":s("verification.edit",{context:r}),"data-testid":"editButton",children:(0,a.jsx)(ej.Z,{className:e_().editIcon,focusable:!1,role:"presentation","aria-hidden":!0})})};var eA=r(51418),ey=r.n(eA);let eC=()=>{var e;let{t}=(0,S.$G)(["common","pages/registration/performer"]),[r,s]=(0,n.useState)(0),l=q(),c=(0,G.useRouter)(),u=(0,i.I0)(),p=(0,i.v9)(e=>e.performerRegistration.isCustomer),g=(0,i.v9)(e=>e.performerRegistration.socialProvider),{register:f,handleSubmit:h,formState:{errors:b}}=(0,P.cI)({defaultValues:{code:""}}),x=(0,i.v9)(e=>e.performerRegistration.phone),j=(0,i.v9)(e=>e.performerRegistration.errors),v=(0,i.v9)(e=>e.performerRegistration.sessionBlocked),_=(0,i.v9)(e=>e.performerRegistration.registrationFormLoading),k=(0,i.v9)(e=>e.performerRegistration.editingData);(0,n.useEffect)(()=>{if(r>0){let e=setTimeout(()=>{s(e=>e-1)},1e3);return()=>clearTimeout(e)}},[r]);let A=h(async e=>{var t;let r=(0,H.K)(),s=await u(d({code:e.code,params:r}));(null===(t=s.payload)||void 0===t?void 0:t.errors)||(s.payload&&"userId"in s.payload&&window.dataLayer.push({event:"performer_registration",type:g||"manual",user_id:s.payload.userId,user_type:p?"customer":"performer"}),await u((0,V.is)()),l(),c.push(Z.ME))}),w=async()=>{if(0===r){s(40);let e=await u(m());(0,o.Iv)(e)&&(0,eb.t)(t("errors.generic"))}};return k?(0,a.jsx)(ex,{initialNumber:x,onSubmit:e=>{u(y(e)),u(C(!1)),s(0)}}):(0,a.jsxs)("div",{children:[(0,a.jsx)(O.x,{"box-margin-bottom":"l",children:(0,a.jsx)(R.x,{"text-size":"h1","text-as":"h1","text-align":"center","text-weight":"bold",children:t("contactsVerification",{ns:"pages/registration/performer"})})}),(0,a.jsxs)(O.x,{className:ey().phoneContainer,"box-margin-bottom":"m",children:[(0,a.jsx)(ec,{className:ey().phoneIcon}),(0,a.jsx)(O.x,{"box-margin-left":"s",children:(0,a.jsx)(R.x,{"text-size":"h4","text-as":"h2",themes:["action"],"text-color":"action",children:t("dataForm.phone",{ns:"pages/registration/performer"})})})]}),(0,a.jsx)(O.x,{"box-margin-bottom":"xs",children:(0,a.jsx)(R.x,{children:t("verification.codeSentForNumber",{ns:"pages/registration/performer"})})}),(0,a.jsxs)(O.x,{"box-margin-bottom":"s",children:[(0,a.jsx)(R.x,{"text-size":"h1",children:x}),(0,a.jsx)(O.x,{"box-margin-left":"xs","box-display":"inline-block",children:(0,a.jsx)(ek,{onClick:()=>{u(C(!0))},context:"email"})})]}),(0,a.jsxs)("form",{onSubmit:A,children:[(0,a.jsx)(O.x,{"box-margin-bottom":"xs",children:(0,a.jsx)("label",{htmlFor:"code",children:t(eh.u1?"enterCodeSms":"enterCodeSmsViber",{ns:"common"})})}),(0,a.jsxs)(O.x,{"box-margin-bottom":"m",children:[(0,a.jsx)(Q.I,{...f("code"),id:"code",stateError:!!(b.code||j.code),"data-testid":"codeInput"}),(0,a.jsx)(ee.D,{errors:(null===(e=b.code)||void 0===e?void 0:e.message)||j.code})]}),(0,a.jsx)(X.z,{loading:_,type:"submit","data-testid":"submit",fullWidth:!0,children:t("confirm")})]}),(0,a.jsx)(O.x,{"box-margin-top":"xs",children:(0,a.jsx)(X.z,{linkType:!0,onClick:w,type:"button","data-testid":"sendAgain",children:t(0===r?"sendCodeAgain":"sendCodeAfter",{count:r})})}),v&&(0,a.jsx)(O.x,{"box-margin-top":"xs",children:t("errors.sessionBlocked")})]})};var ew=r(40914),eE=r(94621),eI=r(66337),eS=r(4060);let eO=(0,eI.Ry)({email:(0,eI.Z_)().required()}).required(),eR=e=>{let{onSubmit:t,initialEmail:r}=e,s=(0,i.v9)(e=>e.performerRegistration.registrationFormLoading),[o,l]=(0,n.useState)(r),{t:c}=(0,S.$G)(["common","pages/registration/performer"]),[u,p]=(0,eS.b)({inputSchema:eO,value:{email:o}}),d=p(async(e,r)=>{e.preventDefault(),r||t(o)});return(0,a.jsxs)("form",{onSubmit:d,children:[(0,a.jsx)(O.x,{"box-margin-bottom":"xs",children:(0,a.jsx)(R.x,{id:"email-label",children:c("verification.editEmail",{ns:"pages/registration/performer"})})}),(0,a.jsxs)(O.x,{"box-margin-bottom":"m",children:[(0,a.jsx)(Q.I,{value:o,onChange:e=>l(e.target.value),autoComplete:"email",stateError:u.email.length>0,name:"phone","aria-labelledby":"email-label","data-testid":"emailInput"}),(0,a.jsx)(ee.D,{errors:u.email})]}),(0,a.jsx)(X.z,{type:"submit",loading:s,fullWidth:!0,children:c("confirm")})]})};var eL=r(78349),eN=r(2439),eF=r.n(eN);let ez=["gmail.com"],eB=()=>{let{t:e}=(0,S.$G)(["common","pages/registration/performer"]);q();let t=(0,i.I0)(),r=(0,i.v9)(e=>e.performerRegistration.phone),s=(0,i.v9)(e=>e.performerRegistration.email),l=(0,i.v9)(e=>e.performerRegistration.editingData),c=(0,n.useMemo)(()=>{let e=s.split("@"),t=e[e.length-1];return ez.includes(t)?"https://".concat(t):null},[s]),u=async r=>{let s=await t(g(r)),a=(0,o.Iv)(s);a&&(0,eb.t)(e("errors.generic")),a||(t(A(r)),t(C(!1)))};return l?(0,a.jsx)(eR,{onSubmit:u,initialEmail:s}):(0,a.jsxs)("div",{children:[(0,a.jsx)(O.x,{"box-margin-bottom":"l",children:(0,a.jsx)(R.x,{"text-size":"h1","text-as":"h1","text-align":"center","text-weight":"bold",children:e("contactsVerification",{ns:"pages/registration/performer"})})}),(0,a.jsx)(O.x,{"box-margin-bottom":"s",children:(0,a.jsxs)(ew.u,{activeStep:2,children:[(0,a.jsxs)(eE.v,{step:1,title:e("dataForm.phone",{ns:"pages/registration/performer"}),titleBold:!1,inverse:!0,children:[(0,a.jsx)(R.x,{children:r}),(0,a.jsx)(eL.Z,{className:eF().checkIcon})]}),(0,a.jsx)(eE.v,{step:2,title:e("verification.mail",{ns:"pages/registration/performer"}),titleBold:!1,inverse:!0,customIcon:(0,a.jsx)(ei.Z,{className:eF().emailIcon,"aria-hidden":!0,focusable:!1})})]})}),(0,a.jsx)(O.x,{"box-margin-bottom":"xs",children:(0,a.jsx)(R.x,{children:e("verification.emailSent",{ns:"pages/registration/performer"})})}),(0,a.jsxs)(O.x,{"box-margin-bottom":"m",children:[(0,a.jsx)(R.x,{"text-size":"h1","text-wrap":"break",children:s}),(0,a.jsx)(O.x,{"box-margin-left":"xs","box-display":"inline-block",children:(0,a.jsx)(ek,{onClick:()=>{t(C(!0))},context:"email"})})]}),c&&(0,a.jsx)(O.x,{"box-margin-bottom":"xs",children:(0,a.jsx)(K.Link,{className:eF().checkMailLink,href:c,rel:"noopener",target:"_blank",theme:"button-secondary",children:e("verification.checkEmail",{ns:"pages/registration/performer"})})}),(0,a.jsx)(X.z,{onClick:()=>{t(g(s))},linkType:!0,fullWidth:!0,children:e("verification.sendAgain",{ns:"pages/registration/performer"})})]})};var eM=r(1734);let eT=(0,I.W)(E,()=>{let e=(0,i.v9)(e=>e.performerRegistration.step),t=(0,i.v9)(e=>e.performerRegistration.editingData);return(0,n.useEffect)(()=>{window.scrollTo(0,0)},[]),(0,a.jsxs)(eM.n,{centered:t,children:[e===x.TYPE_SELECT&&(0,a.jsx)(T,{}),e===x.DATA_FORM&&(0,a.jsx)(ef,{}),e===x.PHONE_VERIFICATION&&(0,a.jsx)(eC,{}),e===x.EMAIL_VERIFICATION&&(0,a.jsx)(eB,{})]})})},814:function(e,t,r){"use strict";r.d(t,{CB:function(){return n},Mz:function(){return c},Yq:function(){return i},dD:function(){return o},lx:function(){return l}});var s=r(35302),a=r(32073);let n=864e3,i="/ssr-static",o=(0,s.tC)({path:"".concat(i,"/logo/").concat(a.publicConfig.country.toLowerCase(),".png")}),l=200,c=60},48690:function(e,t,r){"use strict";r.d(t,{Nj:function(){return a},c$:function(){return n},u1:function(){return i}});var s=r(32073);let a="UA"===s.publicConfig.country,n="KZ"===s.publicConfig.country,i="TR"===s.publicConfig.country},66337:function(e,t,r){"use strict";r.d(t,{IX:function(){return s.IX},O7:function(){return s.O7},Rx:function(){return s.Rx},Ry:function(){return s.Ry},Z_:function(){return s.Z_},iH:function(){return s.iH}});var s=r(34422),a=r(16551);(0,s.i_)({mixed:{required:()=>a.a.t("required",{ns:"validation"})}})},94087:function(e,t,r){"use strict";r.d(t,{Ep:function(){return s},j$:function(){return n},xb:function(){return a}});let s="cookie_lang_code",a="NOVICE_ADVICE_SHOWN",n={SMALL:480,MEDIUM:640,LARGE:768,WIDE:1e3,HUGE:1200}},4060:function(e,t,r){"use strict";r.d(t,{b:function(){return i}});var s=r(2265),a=r(34422);let n=e=>{for(let t of Object.values(e))if(t.length)return!0;return!1},i=e=>{let{inputSchema:t,value:r,immediate:i=!1,externalErrors:o}=e,[l,c]=(0,s.useState)(i),u=(0,s.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],s=!(arguments.length>1)||void 0===arguments[1]||arguments[1],n=Object.keys(r).reduce((e,t)=>(e[t]=[],e),{});if(e)try{t.validateSync(r,{abortEarly:!1})}catch(e){e instanceof a.p8&&(n=e.inner.reduce((e,t)=>(t.path&&(e[t.path]||(e[t.path]=[]),e[t.path].push(t.message)),e),n))}return s&&o&&(n=Object.entries(o).reduce((e,t)=>{let[r,s]=t;return Array.isArray(s)&&r in e&&(e[r]=[...e[r],...s]),e},n)),n},[o,t,r]);return[(0,s.useMemo)(()=>u(l),[u,l]),e=>t=>{let r=u(!0,!1);c(!0),e(t,n(r))}]}},16551:function(e,t,r){"use strict";r.d(t,{a:function(){return _}});var s,a=r(46550),n=r(28230),i=r(740),o=r(18249);let l=["a","o","u","ı"],c=["e","i","\xf6","\xfc"],u=["\xe7","f","h","k","p","s","ş","t"],p={adapazarı:"nda"},d=e=>{let t=p[e.toLowerCase()];if(t)return"".concat(e,"'").concat(t);let r=e.charAt(e.length-1),s=u.includes(r);for(let t=s?e.length-2:e.length-1;t>=0;t-=1){let r=e.charAt(t);if(l.includes(r))return"".concat(e,"'").concat(s?"t":"d","a");if(c.includes(r))return"".concat(e,"'").concat(s?"t":"d","e")}return e};var m=r(32073),g=r(55920),f=r(58720),h=r(94087),b=r(814);let x=m.publicConfig.defaultLocale,j=m.publicConfig.supportedLocales,v="common",_=(0,a.Fs)();_.use(n.D).use(o.Z).use((0,i.Z)((e,t)=>r(33538)("./public".concat(b.Yq,"/locales/").concat(e,"/").concat(t,".json")))).init({supportedLngs:[...j,"tr"],fallbackLng:x,fallbackNS:v,defaultNS:v,detection:{lookupCookie:h.Ep,convertDetectedLanguage:e=>(0,g.Vw)(e),order:["cookie","path"]},preload:f.sk?j:[],load:"currentOnly"}),null===(s=_.services.formatter)||void 0===s||s.add("inLocation",(e,t)=>"tr"===t?d(e):e)},77622:function(){},51815:function(){},31482:function(){},89731:function(e){e.exports={separator:"Separator_separator__GHOOE"}},13325:function(e){e.exports={list:"Snackbar_list__3e71A",item:"Snackbar_item__2DNNP",enter:"Snackbar_enter__cTR_5",enterActive:"Snackbar_enterActive__aivDu",exitActive:"Snackbar_exitActive__5fOUU",root:"Snackbar_root__Vbtxj",stateError:"Snackbar_stateError__mwfgr",closeIcon:"Snackbar_closeIcon__93As6"}},32727:function(e){e.exports={tabItem:"ToggleButton_tabItem__jjdZL",text:"ToggleButton_text__z3xEq",tabItemSmall:"ToggleButton_tabItemSmall__733CS",tabItemMedium:"ToggleButton_tabItemMedium__GC_Bz",tabItemActive:"ToggleButton_tabItemActive__JJc4S"}},99498:function(e){e.exports={tab:"InputButtonGroup_tab__Wqjh4"}},76440:function(e){e.exports={container:"VerticalStep_container__dIblJ",containerWithDash:"VerticalStep_containerWithDash__rcpjf",firstRow:"VerticalStep_firstRow__P_9kY",number:"VerticalStep_number__PPHpR",title:"VerticalStep_title__SGwrS",content:"VerticalStep_content__58goq",activeNumber:"VerticalStep_activeNumber__GjJXl",numberInverted:"VerticalStep_numberInverted__Y7a65",completedNumber:"VerticalStep_completedNumber__xxd2j",completedIcon:"VerticalStep_completedIcon__YoIMn",completedIconFilled:"VerticalStep_completedIconFilled__XHIr_",activeTitle:"VerticalStep_activeTitle__2fcfr"}},68945:function(e){e.exports={root:"Wrapper_root__LZ0Zs",container:"Wrapper_container__HKSYO",containerCentered:"Wrapper_containerCentered__WNvUw"}},62007:function(e){e.exports={root:"SocialAuth_root__kva1y",centered:"SocialAuth_centered__gNg4Z",name:"SocialAuth_name__d_syh"}},45952:function(e){e.exports={button:"EditButton_button__EJdWh",editIcon:"EditButton_editIcon__xt_O5"}},2439:function(e){e.exports={phoneContainer:"EmailForm_phoneContainer__zLrdF",checkIcon:"EmailForm_checkIcon__ymRo6",emailIcon:"EmailForm_emailIcon__dKDaw",checkMailLink:"EmailForm_checkMailLink__PKjK_"}},51418:function(e){e.exports={phoneContainer:"SmsForm_phoneContainer__HW9U4",phoneIcon:"SmsForm_phoneIcon__v9juo"}},13307:function(e){e.exports={card:"TypeSelect_card__67LT4",description:"TypeSelect_description__t_wq7",image:"TypeSelect_image__LfWoE"}}}]);