1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2983,2012],{21542:function(e,n,r){r.d(n,{P:function(){return v}});var t=r(47568),l=r(14924),o=r(10253),a=r(70655),i=r(85893),c=r(5152),s=r.n(c),u=r(67294),d=r(72012),f=s()(function(){return r.e(9905).then(r.bind(r,99905))},{loadableGenerated:{webpack:function(){return[99905]}},ssr:!0}),h=[{id:1,name:""}],v=function(e){var n,r,c=e.formik,s=e.value,v=e.placeholder,b=e.data,x=void 0===b?h:b,m=e.keyValue,g=e.keyLabel,p=void 0===g?"":g,j=e.onClick,y=e.name,k=e.labelText,w=e.disabled,C=e.readOnly,N=void 0!==C&&C,E=e.onChange,F=e.customError,S=e.filterBySearch,_=void 0===S||S,B=(0,o.Z)((0,u.useState)(!1),2),R=B[0],Z=B[1],O=(0,o.Z)((0,u.useState)(1),2),D=O[0];O[1];var L=(0,o.Z)((0,u.useState)(),2),M=L[0],V=L[1],z=(0,o.Z)((0,u.useState)(),2),G=z[0],H=z[1],P=(0,u.useMemo)(function(){return c&&c.touched[y]&&c.errors[y]?"object"!=typeof c.errors[y]?c.errors[y]:c.errors[y][Object.keys(c.errors[y])[0]]:F||null},[JSON.stringify(null==c?void 0:c.errors),F]);return(0,u.useEffect)(function(){V(s||void 0)},[s]),(0,u.useEffect)(function(){1!==D&&(Z(!1),j&&j())},[D]),(0,i.jsx)(d.Z,{handleClick:function(){return Z(!1)},children:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{id:y,children:[k&&(0,i.jsx)("label",{htmlFor:y,className:"mb-8 flex w-full text-12 leading-21 font-r text-black",children:k}),(0,i.jsxs)("div",{className:"relative",children:[(0,i.jsxs)("div",{className:"".concat(c&&c.touched[y]&&c.errors[y]?"border-error-light":"border-[rgba(28,52,84,0.26)]"," flex items-center justify-between rounded-6 border-1 border-solid bg-white px-12 py-8"),style:R?{borderBottomLeftRadius:0,borderBottomRightRadius:0}:{},onClick:function(){!x||w||N||Z(!0)},children:[(0,i.jsx)("input",{autoComplete:"off",disabled:w,name:y,value:m?c?null===(n=null==c?void 0:c.values[y])||void 0===n?void 0:n[m]:null==s?void 0:s[m]:c?null==c?void 0:c.values[y]:s,onChange:function(e){_&&(null==c||c.handleChange(e),H(e.target.value),E&&E(m?(0,l.Z)({},m,e.target.value):e.target.value))},onBlur:function(e){c&&!N&&(null==c||c.handleBlur(e))},className:"w-full flex-1 border-none bg-transparent text-14 text-black font-r placeholder:text-14 placeholder:leading-24 placeholder:text-black placeholder:font-r focus:border-none focus:outline-none ".concat(w?"opacity-30":""),placeholder:v,readOnly:N}),(0,i.jsx)("i",{className:"".concat(R?"rotate-180":""," ").concat(w?"opacity-30":""," icon-FlashDown cursor-pointer text-24 text-gray-292D32")})]}),R&&(0,i.jsx)("div",{className:"relative mx-auto w-[96%]",children:(0,i.jsx)("hr",{className:"absolute"})}),R&&x&&(0,i.jsx)("div",{className:"border-top-none border-bottom-none absolute top-[39px] z-[101] flex h-[152px] w-full flex-row flex-wrap overflow-y-auto rounded-b-5 border border-gray-E8E8E8 bg-white px-[18px] pt-8",children:(0,i.jsx)("div",{className:"basis-full border-l-gray-E8E8E8",children:null===(r=_&&G?x.filter(function(e){return m?e[m].toString().includes(G.toString()):e.toString().includes(G.toString())}):x)||void 0===r?void 0:r.map(function(e,n){return(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("div",{className:" cursor-pointer py-6",onClick:(0,t.Z)(function(){return(0,a.__generator)(this,function(n){return Z(!1),null==c||c.setFieldValue(y,(null==e?void 0:e[y])?null==e?void 0:e[y]:e),E&&E((null==e?void 0:e[y])?null==e?void 0:e[y]:e),[2]})}),children:(0,i.jsxs)("p",{className:"text-right text-14 ".concat((m&&s?s[m]===e[m]:s===e)?"text-primary-main":"text-gray-888888"," "),children:[m?e[m]:e," ",p]})},n)})})})})]})]},M&&(m?M[m]:M)),!!P&&(0,i.jsx)(f,{errorMessage:P})]})})}},44824:function(e,n,r){r.d(n,{r:function(){return o}});var t=r(85893),l=r(67294),o=function(e){var n,r,o,a=e.checked,i=e.onChange,c=e.disabled,s=e.label,u=e.labelClassnames,d=e.inputClassnames,f=e.name,h=e.wrapperClassnames,v=e.formik,b=(0,l.useRef)(null);return(0,t.jsxs)("div",{className:"\n flex items-center gap-x-8\n ".concat(c?"cursor-not-allowed":"cursor-pointer","\n ").concat(h||"","\n "),children:[s&&(0,t.jsx)("div",{className:"text-14 leading-24 text-black font-r ".concat(u||""),children:s}),(0,t.jsxs)("div",{className:"relative w-40 h-24 rounded-50 transition-all ".concat(v&&(null===(n=v.values)||void 0===n?void 0:n[f])||a?d||"bg-primary-main":"bg-gradient-to-b from-[rgba(25,59,103,0.05)] to-[rgba(25,59,103,0.05)] bg-white"),onClick:function(e){if(!c){var n,r;null===(n=null==b?void 0:b.current)||void 0===n||null===(r=n.click)||void 0===r||r.call(n)}},children:[(0,t.jsx)("input",{name:f,type:"checkbox",id:"toggleB",checked:v?!!(null==v?void 0:null===(r=v.values)||void 0===r?void 0:r[f]):a,onChange:function(e){v?v.setFieldValue(f,e.target.checked):i&&i(e)},hidden:!0,ref:b}),(0,t.jsx)("div",{className:"\n absolute w-20 h-20 bg-white shadow-[0px_0px_4px_rgba(0,0,0,0.16)] rounded-full top-2\n ".concat(v&&(null===(o=v.values)||void 0===o?void 0:o[f])||a?"right-2":"left-2","\n ")})]})]})}},2534:function(e,n,r){r.d(n,{g:function(){return c}});var t=r(85893),l=r(5152),o=r.n(l),a=r(67294),i=o()(function(){return r.e(9905).then(r.bind(r,99905))},{loadableGenerated:{webpack:function(){return[99905]}},ssr:!0});function c(e){var n=e.label,r=e.placeholder,l=e.customError,o=e.customValue,c=e.customOnChange,s=e.disabled,u=e.formik,d=e.name,f=e.fillFrom,h=void 0===f?"rtl":f,v=e.readonly,b=e.maxCharsN,x=e.autoComplete,m=e.rows,g=e.cols,p=e.autoFocus,j=e.labelClassname,y=e.styles,k=e.textareaClassnames,w=e.subLable,C=e.autoResize,N=(0,a.useRef)(null),E=(0,a.useMemo)(function(){return u&&u.touched[d]&&u.errors[d]?"object"!=typeof u.errors[d]?u.errors[d]:u.errors[d][Object.keys(u.errors[d])[0]]:l||null},[u,l]);return(0,a.useEffect)(function(){C&&N.current&&(N.current.style.height=N.current.scrollHeight+"px")},[C]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("label",{className:"w-full",children:[!!n&&(0,t.jsx)("span",{className:"text-12 leading-21 text-black font-r mb-8 block ".concat(j||""),children:n}),!!w&&(0,t.jsx)("p",{className:"text-10 leading-17 text-black font-l mb-4",children:w}),(0,t.jsx)("div",{children:(0,t.jsx)("textarea",{ref:N,className:"\n w-full bg-white focus-visible:outline-none\n placeholder:text-12 placeholder:leading-21 placeholder:font-l placeholder:text-[rgba(28,46,69,0.6
1)]\n text-14 leading-24 font-m text-black\n py-10 pr-12 pl-16\n border-1 border-solid border-gray-C4CAD3 rounded-8\n focus-within:!border-black\n ".concat(s?"cursor-not-allowed":"","\n ").concat("ltr"===h?"text-left":"rtl"===h?"text-right":"","\n ").concat(E?"!text-error-light":"","\n ").concat(s?"opacity-60 cursor-not-allowed":"","\n ").concat(E?"!border-error-light":"","\n ").concat(k||"","\n "),rows:void 0===m?3:m,cols:g,autoComplete:x,autoFocus:p,readOnly:v,placeholder:r||"",disabled:s,name:d,value:(null==u?void 0:u.values[d])||o||"",onChange:function(e){u&&(null==u||u.handleChange(e)),c&&c(e.target.value),C&&N.current&&(N.current.style.height=e.target.scrollHeight+"px")},onBlur:function(e){u&&!v&&(null==u||u.handleBlur(e))},onKeyPress:function(e){if(b){if(u){var n;(null===(n=null==u?void 0:u.values[d])||void 0===n?void 0:n.length)===b&&e.preventDefault()}else c&&(null==o?void 0:o.length)===b&&e.preventDefault()}},style:y})})]}),!!E&&(0,t.jsx)(i,{errorMessage:E})]})}},72012:function(e,n,r){var t=r(85893),l=r(67294);n.Z=function(e){var n,r=e.children,o=e.handleClick,a=e.exceptionElementsRef,i=(0,l.useRef)(null);return n=void 0===a?[]:a,(0,l.useEffect)(function(){var e=function(e){var r=e.target;(!r||document.contains(r))&&(n.some(function(e){var n;return null==e?void 0:null===(n=e.current)||void 0===n?void 0:n.contains(r)})||!i.current||i.current.contains(r)||o())};return document.addEventListener("mousedown",e),function(){document.removeEventListener("mousedown",e)}},[i]),(0,t.jsx)("div",{ref:i,children:r})}}}]);
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.