1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3666],{14658:(e,t,r)=>{r.d(t,{A:()=>S});var o=r(40170),a=r(17194),i=r(61880),n=r(54568),l=r(63922),s=r(88363),c=r(39764),d=r(80455);let p=l.Ay.div.withConfig({componentId:"sc-42d69e2d-0"})(["position:relative;background-color:",";"," ",""],e=>e.$isTransparent?"transparent":e.theme.color.background_level_1,e=>e.$isDisabled&&(0,l.AH)(["opacity:0.5;pointer-events:none;"]),e=>e.$isReadOnly&&(0,l.AH)(["pointer-events:none;"])),h=l.Ay.div.withConfig({componentId:"sc-42d69e2d-1"})(["display:flex;position:relative;align-items:center;transition:",";border-bottom:1px solid ",";@media ","{&:hover{border-color:",";}}&:has(input:focus),&:has(textarea:focus){border-color:",";}"," &:before{content:'';position:absolute;top:0;left:0;width:100%;height:10px;background-color:",";}"],e=>e.theme.variables.transition,e=>e.$isErrorStateActive?e.theme.color.alert_error:e.theme.color.gray_palette_level_3,e=>e.theme.device.laptop,e=>e.$isErrorStateActive?e.theme.color.alert_error:e.theme.color.gray_palette_level_2,e=>e.$isErrorStateActive?e.theme.color.alert_error:e.theme.color.typography_level_1,e=>e.$isUppercase&&(0,l.AH)(["input,textarea{text-transform:uppercase;}"]),e=>e.$isTransparent?"transparent":e.theme.color.background_level_1),u=l.Ay.div.withConfig({componentId:"sc-42d69e2d-2"})(["margin-right:6px;"]),m=(0,l.Ay)(c.A).withConfig({componentId:"sc-42d69e2d-3"})(["margin-right:6px;"]),g=(0,l.Ay)(m).withConfig({componentId:"sc-42d69e2d-4"})(["cursor:pointer;"]),f=(0,l.Ay)(m).withConfig({componentId:"sc-42d69e2d-5"})(["cursor:pointer;"]),_=l.Ay.div.withConfig({componentId:"sc-42d69e2d-6"})(["position:relative;width:24px;height:24px;margin-right:6px;"]),v=(0,l.Ay)(f).withConfig({componentId:"sc-42d69e2d-7"})(["position:absolute;top:0;left:0;margin-right:0;opacity:",";pointer-events:",";"],e=>+!!e.$isVisible,e=>e.$isVisible?"auto":"none"),b=(0,l.Ay)(d.A).withConfig({componentId:"sc-42d69e2d-8"})(["position:absolute;top:0;left:0;z-index:1;transition:",";transform-origin:top left;color:",";transform:translate(0,13px);",""],e=>e.theme.variables.transition,e=>e.theme.color.typography_level_3,e=>e.$isActive&&(0,l.AH)(["transform:translate(0,0);&,","{font-size:8px;line-height:10px;font-weight:400;letter-spacing:0.5px;}"],w)),w=l.Ay.span.withConfig({componentId:"sc-42d69e2d-9"})(["color:",";transition:",";"],e=>e.$isError?e.theme.color.alert_error:"inherit",e=>e.theme.variables.transition),A=(0,l.AH)(["width:100%;cursor:text;padding:13px 0 10px 0;&,&::placeholder{font-size:11px;font-weight:400;line-height:13px;letter-spacing:0px;}&::placeholder{color:",";text-transform:uppercase;}&:-webkit-autofill,&:-webkit-autofill:hover,&:-webkit-autofill:focus,&:-webkit-autofill:active,&:-webkit-autofill::first-line{font-size:11px;}"],e=>e.theme.color.typography_level_3),x=(0,l.AH)(["&:-webkit-autofill,&:-webkit-autofill:hover,&:-webkit-autofill:focus,&:-webkit-autofill:active,&:-webkit-autofill::first-line{-webkit-box-shadow:0 0 0 3
10px transparent inset !important;background-color:transparent;background:transparent;color:",";-webkit-text-fill-color:",";font-size:11px;font-weight:400;line-height:13px;letter-spacing:0px;}"],e=>e.theme.color.typography_level_1,e=>e.theme.color.typography_level_1),y=l.Ay.input.withConfig({componentId:"sc-42d69e2d-10"})(["color:",";background-color:",";overflow:hidden;white-space:nowrap;text-overflow:ellipsis;",";",";"],e=>e.theme.color.typography_level_1,e=>e.$isTransparent?"transparent":e.theme.color.background_level_1,A,e=>e.$isTransparent&&x),k=l.Ay.textarea.withConfig({componentId:"sc-42d69e2d-11"})(["color:",";background-color:",";resize:none;",";",";",""],e=>e.theme.color.typography_level_1,e=>e.$isTransparent?"transparent":e.theme.color.background_level_1,A,e=>e.$isTransparent&&x,(0,s.A)({thumbColor:"gray_palette_level_4",bgColor:"background_level_1"})),$=(0,l.Ay)(d.A).withConfig({componentId:"sc-42d69e2d-12"})(["position:absolute;top:calc(100% + 2px);left:0;margin-top:0;"]),C=l.Ay.label.withConfig({componentId:"sc-42d69e2d-13"})(["display:flex;position:absolute;left:3px;bottom:10px;width:100%;z-index:1;font-size:11px;font-weight:400;line-height:13px;letter-spacing:0px;span[data-placeholder='true']{color:",";}span[data-placeholder='false']{color:transparent;}"],e=>e.theme.color.gray_palette_level_3);var z=r(12757),j=r(7620),I=r(76031);let E={tel:"tel",code:"one-time-code",password:"off"},S=e=>{let{hint:t,name:r,rows:l=1,label:s,error:c,value:d,onReset:f,className:A,isReadOnly:x,isRequired:S,isDisabled:T,isMultiLine:q,endComponent:Z,showCheckIcon:D,startComponent:H,isTransparent:O,testId:F,type:R}=e,V=(0,i._)(e,["hint","name","rows","label","error","value","onReset","className","isReadOnly","isRequired","isDisabled","isMultiLine","endComponent","showCheckIcon","startComponent","isTransparent","testId","type"]),{handlePasswordVisibility:N,codeMaskPlaceholder:P,isPasswordVisible:M,inputBaseProps:W,showPassword:B,isFocused:L,showReset:U,isSearch:Y,inputRef:G,type:J}=(e=>{let{onChange:t,onFocus:r,onBlur:a,autoComplete:i,codeNumCount:l=4,placeholder:s,isDisabled:c,isReadOnly:d,withReset:p,testId:h,value:u,mask:m,type:g,name:f}=e,[_,v]=(0,j.useState)(!1),[b,w]=(0,j.useState)(!1),A=(0,j.useRef)(""),x=("search"===g||p)&&(!!u||!!u&&_),y=(()=>{switch(g){case"password":return b?"text":"password";case"code":case"search":return"text";default:return g}})(),k=(0,j.useMemo)(()=>{let e,r=!0,a="",i={};switch(g){case"tel":a="+7 (___) ___-__-__",i={_:/\d/},r=_||!!u&&u!==a,e=e=>{let{inputType:r,value:o,data:a,selectionStart:i}=e,n=["7","8","+7"],l=[0,4],s=o.replace(/\D/g,"");if((e=>{let t=A.current,r=e.length-t.length>2;return A.current=e,r})(o.replace(/\D/g,""))&&11===s.length){let e=(0,I.n4)(s);return null==t||t(e,{target:{value:e}}),!1}if("insert"===r){if(l.includes(i)&&n.includes(a))return null;if(l.includes(i)&&n.some(e=>a.startsWith(e)))return a.replace(/\D/g,"").slice(1)}return a};break;case"code":r=!1,a=Array.from({length:l}).fill("â¢").join(""),i={"â¢":/\d/};break;default:a=null==m?void 0:m.mask}return(0,o._)({mask:a,showMask:r,replacement:i,track:e},"object"==typeof m?m:{})},[g,m,u,_,t,l]),$=(0,z.A)(k),C=k.mask?$:void 0,S=k.mask&&(_||u)&&"code"===g?Array.from({length:l}).fill("â¢").map((e,t)=>(0,n.jsx)(j.Fragment,{children:(0,n.jsx)("span",{"data-placeholder":!(null==u?void 0:u.charAt(t)),children:(null==u?void 0:u.charAt(t))||"â¢"})},t)):"",T=e=>{null==t||t(e.target.value,e)},q=e=>{k.mask&&!u&&"code"!==g&&(null==t||t(k.mask,e),setTimeout(()=>{var e;let t=4*("tel"===g);null==(e=$.current)||e.setSelectionRange(t,t)},0)),v(!0),null==r||r(e)},Z=e=>{k.mask&&u===k.mask&&(null==t||t("",e)),v(!1),null==a||a(e)},D={name:f,value:"tel"===g&&k.mask&&u===k.mask&&!_?"":u,onBlur:Z,onFocus:q,onChange:T,disabled:c,readOnly:d,placeholder:s,"data-testid":h,autoComplete:(g?E[g]:"")||i};return{type:y,inputRef:C,isSearch:"search"===g,showReset:x,isFocused:_,showPassword:"password"===g,inputBaseProps:D,isPasswordVisible:b,codeMaskPlaceholder:S,handleBlur:Z,handleFocus:q,handleChange:T,handlePasswordVisibility:()=>{w(!b)}}})(e);return(0,n.jsxs)(p,{className:A,$isDisabled:T,$isReadOnly:x,$isErrorStateActive:!!c,$isTransparent:O,children:[s&&(0,n.jsxs)(b,{asTag:"label",htmlFor:r,variant:"basic_text",$isActive:L||!!d,children:[s,S&&(0,n.jsx)(w,{$isError:!!c,children:"*"})]}),(0,n.jsxs)(h,{$isUppercase:"password"!==R,$isErrorStateActive:!!c,$isTransparent:O,children:[H&&(0,n.jsx)(u,{children:H}),q?(0,n.jsx)(k,(0,o._)((0,a._)((0,o._)({},V),{rows:l}),W)):(0,n.jsx)(y,(0,o._)((0,a._)((0,o._)({},V),{id:r,ref:G,type:J,$isTransparent:O,inputMode:"code"===R?"numeric":V.inputMode}),W)),U?(0,n.jsx)(g,{name:"Clean",size:18,color:"typography_level_4",onClick:f}):(0,n.jsxs)(n.Fragment,{children:[Z&&(0,n.jsx)(u,{children:Z}),Y&&(0,n.jsx)(m,{name:"Search",size:18,color:"typography_level_4"}),D&&(0,n.jsx)(m,{name:"Check",size:14}),B&&(0,n.jsxs)(_,{children:[(0,n.jsx)(v,{name:"EyeVisible",size:24,onClick:N,"data-testid":"".concat(r,"-password-icon-visible"),$isVisible:M}),(0,n.jsx)(v,{name:"EyeHidden",size:24,onClick:N,"data-testid":"".concat(r,"-password-icon-hidden"),$isVisible:!M})]})]}),P&&(0,n.jsx)(C,{htmlFor:r,children:P})]}),c?(0,n.jsx)($,{variant:"caption_regular",color:"alert_error","data-testid":"".concat(F||r,"-error"),children:c}):t?(0,n.jsx)($,{variant:"caption_regular",color:"typography_level_4","data-testid":"".concat(F||r,"-hint"),children:t}):null]})}},55118:(e,t,r)=>{r.d(t,{A:()=>l});var o=r(40170),a=r(17194),i=r(61880),n=r(53809);let l=e=>{var{isLoading:t,showSuccess:r,validationSchema:l,readOnlyWhenLoading:s}=e,c=(0,i._)(e,["isLoading","showSuccess","validationSchema","readOnlyWhenLoading"]);let d=(0,n.Wx)((0,a._)((0,o._)({},c),{validationSchema:l})),{dirty:p,values:h,errors:u,touched:m,setErrors:g,setTouched:f,handleSubmit:_,setFieldValue:v,handleBlur:b}=d,w=e=>m[e]&&u[e],A=e=>t=>{v(e,t)};return(0,a._)((0,o._)({},d),{values:h,isDirty:p,handleSubmit:_,onFieldChange:A,getFieldError:w,getFieldProps:e=>{let o=r?!!(null==l?void 0:l.fields[e])&&!u[e]&&!!h[e]&&"password"!==e:void 0;return{name:e,value:h[e],error:w(e),onChange:A(e),onBlur:c.validateOnBlur?b:void 0,isReadOnly:t&&s,isCompleted:o,showCheckIcon:o}},setErrorsAndTouched:e=>{g(e),f(e)},getCheckboxFieldProps:e=>{let t=h[e];return{id:e,error:w(e),onChange:()=>A(e)(!t),isChecked:t}},getDropdownFieldProps:(e,t)=>{let r=h[e],o=Array.isArray(r);return{name:e,value:t.filter(e=>o?r.includes(e.value):e.value===r),error:w(e),options:t||[],onChange:t=>{let a=o?[...r]:[r];t?a.includes(t)?a=a.filter(e=>e!==t):o?a.push(t):a=[t]:a=[],A(e)(o?a:a[0])}}}})}},82228:(e,t,r)=>{r.d(t,{z:()=>s});var o=r(52211),a=r(76031),i=r(92277),n=r(34226);let l=/^(?=.*[A-Z])(?=.*[a-z])(?=.*\d)(?=.*[!@#$%^&*()_+\-=\[\]{}|;:,.<>?\/\\])[A-Za-z\d!@#$%^&*()_+\-=\[\]{}|;:,.<>?\/\\]{8,}$/,s={firstName:i.A.string().min(2,"введиÑе имÑ").max(n.AE,"Ðе болÑÑе ".concat(n.AE," Ñимволов")).matches(/^(?![-\s])(?!.*[-\s]{2}).+$/,"введиÑе коÑÑекÑное имÑ").matches(/^[а-ÑÐ-ЯÐÑa-zA-Z\-\s]+$/,"Ð¸Ð¼Ñ Ð¼Ð¾Ð¶ÐµÑ ÑодеÑжаÑÑ Ð±ÑквÑ, деÑиÑÑ Ð¸ пÑобелÑ").required("введиÑе имÑ"),lastName:i.A.string().min(2,"введиÑе ÑамилиÑ").max(n.an,"Ðе болÑÑе ".concat(n.an," Ñимволов")).matches(/^(?![-\s])(?!.*[-\s]{2}).+$/,"введиÑе коÑÑекÑнÑÑ ÑамилиÑ").matches(/^[а-ÑÐ-ЯÐÑa-zA-Z\-\s]+$/,"ÑÐ°Ð¼Ð¸Ð»Ð¸Ñ Ð¼Ð¾Ð¶ÐµÑ ÑодеÑжаÑÑ Ð±ÑквÑ, деÑиÑÑ Ð¸ пÑобелÑ").required("введиÑе ÑамилиÑ"),phone:i.A.string().matches(/^\+7\s\(\d{3}\)\s\d{3}-\d{2}-\d{2}$/,"некоÑÑекÑнÑй ÑелеÑон").test("is-not-placeholder","некоÑÑекÑнÑй ÑелеÑон",e=>{if(!e)return!1;let t=(0,a.h2)(e);return(null==t||!t.startsWith("78"))&&"70000000000"!==t}).required("введиÑе ÑелеÑон"),email:i.A.string().matches(/^[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)*@([a-zA-Z0-9][-a-zA-Z0-9]+\.)+[a-zA-Z]{2,4}$/,"введиÑе коÑÑекÑнÑÑ Ð¿Ð¾ÑÑÑ").email("введиÑе коÑÑекÑнÑÑ Ð¿Ð¾ÑÑÑ").required("введиÑе поÑÑÑ"),password:i.A.string().matches(l,"введиÑе коÑÑекÑнÑй паÑолÑ").required("введиÑе паÑолÑ"),passwordSignIn:i.A.string().min(6,"минимÑм 6 Ñимволов").required("введиÑе паÑолÑ"),passwordSignUp:i.A.string().matches(l,"Ð¾Ñ 8 Ñимволов, A-Z, a-z, ÑиÑÑÑ 0-9, ÑпеÑÑимволÑ").required("введиÑе паÑолÑ"),repeatPassword:i.A.string().min(8,"минимÑм 8 Ñимволов").matches(l,"Ð¾Ñ 8 Ñимволов, A-Z, a-z, ÑиÑÑÑ 0-9, ÑпеÑÑимволÑ").required("подÑвеÑдиÑе паÑолÑ").oneOf([i.A.ref("password"),""],"ÐаÑоли не ÑовпадаÑÑ"),birthDate:i.A.string().required("введиÑе даÑÑ ÑождениÑ").test("test max date","некоÑÑекÑÐ½Ð°Ñ Ð´Ð°Ñа ÑождениÑ",e=>(0,o.Y)(new Date(e),new Date)),gender:i.A.string().required("вÑбеÑиÑе пол"),stringValue:i.A.string().required("пÑÑÑое знаÑение"),userAgreement:i.A.bool().oneOf([!0],"необÑ
одимо подÑвеÑдиÑÑ ÑоглаÑие")}},88363:(e,t,r)=>{r.d(t,{A:()=>a});var o=r(63922);let a=e=>{let{isHidden:t,bgColor:r,thumbColor:a}=e;return(0,o.AH)(["scrollbar-width:thin;scrollbar-color:",";&::-webkit-scrollbar{width:4px;height:4px;background-color:",";}&::-webkit-scrollbar-thumb{border-radius:10px;background-color:",";}",""],e=>"".concat(a?e.theme.color[a]:"transparent"," ").concat(r?e.theme.color[r]:"transparent"),e=>r?e.theme.color[r]:"transparent",e=>a?e.theme.color[a]:"transparent",t&&(0,o.AH)(["scrollbar-width:none;-ms-overflow-style:none;&::-webkit-scrollbar{width:0;height:0;display:none;}"]))}},92277:(e,t,r)=>{r.d(t,{A:()=>
1o});let o=r(84643)}}]); 2//# sourceMappingURL=3666-854e5eba7cb83e9d.js.map
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.