1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="041c44d8-2f6f-4c45-85b5-fde587988aea",e._sentryDebugIdIdentifier="sentry-dbid-041c44d8-2f6f-4c45-85b5-fde587988aea")}catch(e){}try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="041c44d8-2f6f-4c45-85b5-fde587988aea",e._sentryDebugIdIdentifier="sentry-dbid-041c44d8-2f6f-4c45-85b5-fde587988aea")}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5579],{62754:function(e,t,r){"use strict";r.d(t,{o:function(){return b}});var n=r(59499),a=r(67282),o=r(94184),s=r.n(o),i=r(67294),u=r(8410),l=r.n(u),c=r(52065),p=r(4486),d=r(96254),f=r.n(d),h=r(85893),b=(0,i.forwardRef)(function(e,t){var r,o,u,d,b,x,_,y,m,v,g,w=e.labelText,I=e.value,j=e.onChange,C=e.name,T=e.errorMessage,k=e.helpText,L=e.type,Z=void 0===L?"text":L,E=e.debouncedValidate,B=e.autocomplete,N=e.placeholder,P=e.maxLength,S=e.withLengthCounter,D=e.isDisabled,O=e.className,F=e.resizable,W=e.onBlur,A=e.hasError,z=e.onClick,R=e.dataTestId,V=e.mask,J=e.onKeyDownProp,K=e.isDeleteButton,M=e.searchList,Q=e.onClickSearchList,H=(0,i.useState)(!1),Y=H[0],G=H[1],q=(0,i.useState)(!1),U=q[0],X=q[1],$=!!I&&I.trim().length>0,ee=U||$,et=function(e){var t=e.target;j&&j(t.value),E&&""!==t.value&&E()},er=function(e){null==E||E(),W&&e.target instanceof HTMLInputElement&&W(e.target.value)},en=function(e){J&&J(e)},ea=void 0!==A&&A||void 0!==T&&T.length>0,eo=(0,h.jsx)("div",{}),es=0;I&&(es=I.toString().length);var ei=null!=I?I:"",eu=function(e){t&&("function"==typeof t?t(e):t.current=e)};return V?eo=(0,h.jsx)(l(),{getReference:eu,value:ei,onChange:et,onFocus:function(){return X(!0)},onBlur:function(e){X(!1),er(e)},maskChar:" ",mask:V,className:s()(f().input,(r={},(0,n.Z)(r,f().withErrorBorder,ea),(0,n.Z)(r,f().noLabel,!w),r)),placeholder:N,disabled:D}):"text"===Z||"number"===Z?eo=(0,h.jsx)("input",{onClick:z,id:C,value:ei,disabled:D,onChange:et,onFocus:function(){return X(!0)},onBlur:function(e){X(!1),er(e)},type:Z,autoComplete:B,placeholder:N,className:s()(f().input,(u={},(0,n.Z)(u,f().withErrorBorder,ea),(0,n.Z)(u,f().noLabel,!w),u)),"data-testid":R,onKeyDown:en,ref:t}):"password"===Z?eo=(0,h.jsx)("input",{id:C,value:ei,onFocus:function(){return X(!0)},onBlur:function(e){X(!1),er(e)},disabled:D,onChange:et,type:Y?"text":"password",autoComplete:B,className:s()(f().input,(d={},(0,n.Z)(d,f().withErrorBorder,ea),(0,n.Z)(d,f().noLabel,!w),d)),placeholder:N,"data-testid":R,ref:t}):"textarea"===Z&&(eo=(0,h.jsx)("textarea",{id:C,value:ei,disabled:D,onClick:z,onChange:et,placeholder:N,onFocus:function(){return X(!0)},onBlur:function(e){X(!1),er(e)},autoComplete:B,className:s()(f().input,f().textAriaSize,(b={},(0,n.Z)(b,f().withErrorBorder,ea),(0,n.Z)(b,f().resizable,void 0!==F&&F),(0,n.Z)(b,f().noLabelTextarea,!w),b),O),"data-testid":R})),"card"===Z&&(eo=(0,h.jsx)(l(),{getReference:eu,onChange:et,onFocus:function(){return X(!0)},onBlur:function(e){X(!1),er(e)},maskChar:" ",mask:"0000 0000 0000 0000",className:s()(f().input,(x={},(0,n.Z)(x,f().withErrorBorder,ea),(0,n.Z)(x,f().noLabel,!w),x)),placeholder:"0000 0000 0000 0000",disabled:D,ref:t})),"passport"===Z&&(eo=(0,h.jsx)(l(),{getReference:eu,onChange:et,onFocus:function(){return X(!0)},onBlur:function(e){X(!1),er(e)},maskChar:" ",mask:"0000 000000",className:s()(f().input,(_={},(0,n.Z)(_,f().withErrorBorder,ea),(0,n.Z)(_,f().noLabel,!w),_)),placeholder:"0000 000000"})),"snils"===Z&&(eo=(0,h.jsx)(l(),{getReference:eu,onChange:et,onFocus:function(){return X(!0)},onBlur:function(e){X(!1),er(e)},maskChar:" ",mask:"000-000-000 00",className:s()(f().input,(y={},(0,n.Z)(y,f().withErrorBorder,ea),(0,n.Z)(y,f().noLabel,!w),y)),placeholder:"000-000-000 00"})),"passportCode"===Z&&(eo=(0,h.jsx)(l(),{getReference:eu,onChange:et,onFocus:function(){return X(!0)},onBlur:function(e){X(!1),er(e)},maskChar:" ",mask:"000-000",className:s()(f().input,(m={},(0,n.Z)(m,f().withErrorBorder,ea),(0,n.Z)(m,f().noLabel,!w),m)),placeholder:"000-000"})),"phone"===Z&&(eo=(0,h.jsx)(l(),{getReference:eu,onChange:et,onFocus:function(){return X(!0)},onBlur:function(e){X(!1),er(e)},maskChar:" ",mask:"+7 000 000 00 00",className:s()(f().input,(v={},(0,n.Z)(v,f().withErrorBorder,ea),(0,n.Z)(v,f().noLabel,!w),v)),"data-testid":R}
1)),"search"===Z&&(eo=(0,h.jsxs)("div",{className:f().searchWrapper,children:[(0,h.jsx)("input",{onClick:z,id:C,value:ei,disabled:D,onChange:et,onFocus:function(){return X(!0)},onBlur:function(e){X(!1),er(e)},type:Z,autoComplete:B,className:s()(f().input,f().searchInput,(g={},(0,n.Z)(g,f().withErrorBorder,ea),(0,n.Z)(g,f().noLabel,!w),g)),"data-testid":R,onKeyDown:en,ref:t}),(null==I?void 0:I.length)===0&&(0,h.jsx)(p.J,{icon:"search",size:24,className:f().searchIcon}),N&&(null==I?void 0:I.length)===0&&(0,h.jsx)("label",{className:f().searchPlaceholder,children:N})]})),(0,h.jsxs)("label",{htmlFor:C,className:s()(f().label,O),"data-testid":"label-".concat(R),children:[eo,w&&(0,h.jsx)("div",{className:s()(f().floatLabel,(o={},(0,n.Z)(o,f().backLabelColor,"textarea"===Z),(0,n.Z)(o,f().withError,ea),(0,n.Z)(o,f().activeLabel,ee),(0,n.Z)(o,f().truValue,!!I),o)),children:w}),(0,h.jsxs)("div",{className:f().wrapperInfo,children:[(0,h.jsx)("div",{className:s()(f().helpText,(0,n.Z)({},f().withError,ea)),"data-testid":ea?"input__errorText":"".concat(R,"--helpText"),children:T||k}),S&&(0,h.jsxs)("div",{className:s()(f().lengthCounter,(0,n.Z)({},f().withError,ea)),"data-testid":"input__lengthCounter",children:[es,"/",void 0===P?0:P]})]}),"password"===Z&&(0,h.jsx)("span",{className:f().showPasswordWrapper,onClick:function(){G(!Y)},"aria-roledescription":"button",children:Y?(0,h.jsx)(p.J,{icon:"eyeOpen",size:24}):(0,h.jsx)(p.J,{icon:"eyeClosed",size:24})}),!!K&&!!I&&(0,h.jsx)("span",{className:f().showPasswordWrapper,onClick:function(){j&&j("")},children:(0,h.jsx)(p.J,{icon:"closeOutline24x24",color:"#B1B0B2"})}),M&&M.length>0&&U&&(0,h.jsx)("div",{className:f().searchListWrapper,children:M.map(function(e){return(0,h.jsx)("div",{className:f().searchListItem,onMouseDown:function(t){t.preventDefault(),null==Q||Q(e)},children:(0,c.I)(e)},(0,a.DM)())})})]})});b.displayName="InputText"},42119:function(e,t,r){"use strict";r.d(t,{V:function(){return h}});var n=r(4730),a=r(59499),o=r(50029),s=r(64687),i=r.n(s),u=r(67294),l=r(19302);function c(){return(c=(0,o.Z)(i().mark(function e(t,r){return i().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,r.validate(t,{abortEarly:!1});case 3:e.next=8;break;case 5:return e.prev=5,e.t0=e.catch(0),e.abrupt("return",e.t0);case 8:case"end":return e.stop()}},e,null,[[0,5]])}))).apply(this,arguments)}function p(){return(p=(0,o.Z)(i().mark(function e(t,r,n){return i().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,"string"!=typeof t){e.next=4;break}return e.next=4,n.validateAt(t,r,{abortEarly:!1});case 4:e.next=9;break;case 6:return e.prev=6,e.t0=e.catch(0),e.abrupt("return",e.t0);case 9:case"end":return e.stop()}},e,null,[[0,6]])}))).apply(this,arguments)}function d(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function h(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,s=(0,u.useState)({}),h=s[0],b=s[1];function x(e){return _.apply(this,arguments)}function _(){return(_=(0,o.Z)(i().mark(function r(n){var a;return i().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,function(e,t,r){return p.apply(this,arguments)}(n,e,t);case 2:return a=r.sent,r.abrupt("return",m(a,n));case 4:case"end":return r.stop()}},r)}))).apply(this,arguments)}function y(){return(y=(0,o.Z)(i().mark(function r(){var n;return i().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,function(e,t){return c.apply(this,arguments)}(e,t);case 2:return n=r.sent,r.abrupt("return",m(n));case 4:case"end":return r.stop()}},r)}))).apply(this,arguments)}function m(e,t){var r=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
1t%2?f(Object(r),!0).forEach(function(t){(0,a.Z)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},h),o=!1;if(e)o=!0,e.inner.forEach(function(e){var t=e.path,n=e.message;r[t]=n});else if(t){var s=r;s[t],r=(0,n.Z)(s,[t].map(d))}return 0===Object.keys(r).length&&(o=!1),b(r),o}var v=(0,l.Z)(function(e){return x(e)},r);return{setErrors:b,validationErrors:h,validateSingleFieldAsync:x,validateAllFieldsAsync:function(){return y.apply(this,arguments)},validateSingleFieldSync:function(r){return m(function(e,t,r){try{"string"==typeof e&&r.validateSyncAt(e,t)}catch(e){return e}}(r,e,t),r)},validateAllFieldsSync:function(){return m(function(e,t){try{t.validateSync(e,{abortEarly:!1})}catch(e){return e}}(e,t))},debouncedValidate:v}}},96254:function(e){e.exports={floatLabel:"InputText_floatLabel__e9xp1",backLabelColor:"InputText_backLabelColor__mSFBf",activeLabel:"InputText_activeLabel__P
1N8Yx",input:"InputText_input__ny9_W",noLabel:"InputText_noLabel__GaIWB",noLabelTextarea:"InputText_noLabelTextarea__SFuoL",truValue:"InputText_truValue__bpLLT",label:"InputText_label__ReK1r",wrapperInfo:"InputText_wrapperInfo__4dAVm",helpText:"InputText_helpText__FtjiT",lengthCounter:"InputText_lengthCounter__WIhJ_",withError:"InputText_withError__70Iz2",withErrorBorder:"InputText_withErrorBorder__NuAWR",textAriaSize:"InputText_textAriaSize__b2p98",resizable:"InputText_resizable__tuQi9",showPasswordWrapper:"InputText_showPasswordWrapper___AABY",searchWrapper:"InputText_searchWrapper__lwHCr",searchIcon:"InputText_searchIcon__RcFe_",searchPlaceholder:"InputText_searchPlaceholder__PNhEK",searchListWrapper:"InputText_searchListWrapper__y9sQQ",searchListItem:"InputText_searchListItem__4i0Pl"}}}]); 2//# sourceMappingURL=5579-3fd424e2b58d3952.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.