(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9799],{12429:()=>{},29589:(e,a,t)=>{"use strict";t.d(a,{C:()=>d});var c=t(37876),n=t(14232),s=t(69241),l=t(68086),r=t(9789);t(12429);let i=(0,r.g)("chips"),o=Object.freeze({chips:i,chip:"".concat(i,"__item"),icon:"".concat(i,"__icon"),iconLeft:"".concat(i,"__icon-left"),iconRight:"".concat(i,"__icon-right"),label:"".concat(i,"__label"),variants:{primary:"".concat(i,"--primary"),secondary:"".concat(i,"--secondary"),tertiary:"".concat(i,"--tertiary")},activeVariants:{primary:"".concat(i,"--active-primary"),secondary:"".concat(i,"--active-secondary")},sizes:{s:"".concat(i,"--s"),m:"".concat(i,"--m"),l:"".concat(i,"--l")},selected:"".concat(i,"--selected"),indicator:"".concat(i,"__indicator"),indicatorVariant:{red:"".concat(i,"__indicator--red"),orange:"".concat(i,"__indicator--orange"),green:"".concat(i,"__indicator--green"),purple:"".concat(i,"__indicator--purple"),purpleSecondary:"".concat(i,"__indicator--purple-secondary"),blue:"".concat(i,"__indicator--blue"),pink:"".concat(i,"__indicator--pink")}}),d=(0,n.forwardRef)((e,a)=>{let{chips:t,value:r,variant:i="primary",activeVariant:d="primary",multiple:u,clearable:h,size:p="m",className:m,style:f,dataQa:v,dataId:_,onChipClick:g,...b}=e,[y,x]=(0,n.useState)(u?[]:void 0),w=(0,n.useRef)(null);(0,n.useImperativeHandle)(a,()=>({getRoot:()=>w.current,getSelectedChips:()=>y})),(0,n.useEffect)(()=>{u?x(Array.isArray(r)?r:[]):x(r)},[r,u]);let N=u||h,j=e=>u&&Array.isArray(y)?y.includes(e):y===e,A=(e,a,t)=>{x(t),null==g||g(e,a,t)},C=(e,a)=>{if(u&&Array.isArray(y))if(j(e)){let t=y.filter(a=>a!==e);A(e,a,t)}else A(e,a,[...y,e]);else{let t=h&&j(e)?void 0:e;A(e,a,t)}};return(0,c.jsx)("div",{ref:w,className:(0,s.A)(m,o.chips),style:f,...b,"data-id":_,"data-qa":v,children:t.map((e,a)=>((e,a)=>{let{id:t,label:n,iconLeft:r,iconRight:u,indicator:h}=e,m=j(t);return(0,c.jsxs)("div",{className:(0,s.A)(o.chip,o.sizes[p],o.activeVariants[d],o.variants[i],[{[o.selected]:m}]),role:N?"checkbox":"radio","aria-checked":m,"aria-label":n,tabIndex:0,"data-qa":(0,l.g)("".concat(v,"-item-").concat(++a),!!v),onClick:e=>{C(t,e)},onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),C(t,e))},children:[r&&(0,c.jsx)("span",{className:(0,s.A)(o.icon,o.iconLeft),"aria-hidden":"true",children:r}),(0,c.jsx)("span",{className:(0,s.A)(o.label),children:n}),h&&(0,c.jsx)("div",{className:(0,s.A)(o.indicator,o.indicatorVariant[h])}),u&&(0,c.jsx)("span",{className:(0,s.A)(o.icon,o.iconRight),"aria-hidden":"true",children:u})]},t)})(e,a))})});d.displayName="Chips"},38530:()=>{},63423:(e,a,t)=>{"use strict";t.d(a,{I:()=>m});var c=t(37876),n=t(14232),s=t(42036),l=t(69241),r=t(86346);t(73044);var i=t(68086);let o=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],[a,t]=(0,n.useState)(e),c=(0,n.useCallback)(()=>t(!0),[]);return{value:a,show:c,hide:(0,n.useCallback)(()=>t(!1),[]),toggle:(0,n.useCallback)(()=>t(e=>!e),[])}};var d=t(9789);t(80703);let u=function(){for(var e=arguments.length,a=Array(e),t=0;t<e;t++)a[t]=arguments[t];return function(){for(var e=arguments.length,t=Array(e),c=0;c<e;c++)t[c]=arguments[c];a.forEach(e=>{null==e||e(...t)})}},h=(0,d.g)("input-base"),p={wrapper:h,input:"".concat(h,"__input"),container:"".concat(h,"__container"),label:"".concat(h,"__label"),field:"".concat(h,"__field"),slotLeft:"".concat(h,"__slot-left"),rightLabel:"".concat(h,"__right-label"),caption:"".concat(h,"__caption"),placeholder:{visible:"".concat(h,"__placeholder"),hidden:"".concat(h,"__hidden")},states:{primary:"".concat(h,"--primary"),secondary:"".concat(h,"--secondary"),error:"".concat(h,"--error"),success:"".concat(h,"--success"),s:"".concat(h,"--s"),m:"".concat(h,"--m"),l:"".concat(h,"--l"),focused:"".concat(h,"--focused"),disabled:"".concat(h,"--disabled"),active:"".concat(h,"--active"),hasLabel:"".concat(h,"--has-label"),accent:"".concat(h,"--accent")}},m=(0,n.forwardRef)((e,a)=>{let{icon:t,rightLabel:d,slotLeft:h,disabled:m,state:f,size:v="m",variant:_="primary",label:g,value:b,placeholder:y,maskPlaceholder:x,autoFocus:w=!1,maskPlaceholderVariant:N="default",caption:j,type:A="text",inputMode:C="text",hasCaption:k,className:E,style:R,dataQa:L,dataId:I,inputRef:z,onChange:S,onFocus:Z,onBlur:M,onKeyDown:V,...q}=e,B=(0,n.useId)(),{value:D,show:O,hide:P}=o(),W=(0,n.useRef)(null),F=(0,s.SV)([z,W]),H=(0,n.useMemo)(()=>D||!!b||!!y,[b,D,y]),K=(0,n.useCallback)(()=>{var e;null==(e=W.current)||e.focus()},[]),Q=(0,n.useMemo)(()=>{var e;if(!x)return null;let a={hidden:null!=b?b:"",visible:x.substring(null!=(e=null==b?void 0:b.length)?e:0)};return x.length===(null==b?void 0:b.length)?null:a},[x,b]);return(0,n.useEffect)(()=>{var e,a,t,c;if(!w)return;let n=null!=(c=null==(e=W.current)?void 0:e.value.length)?c:0;null==(a=W.current)||a.focus(),null==(t=W.current)||t.setSelectionRange(n,n)},[w]),(0,c.jsxs)("div",{className:(0,l.A)(E,p.wrapper),style:R,"data-qa":L,"data-id":I,children:[(0,c.jsxs)("div",{className:(0,l.A)(p.input,p.states[_],p.states[v],{[p.states.focused]:D,[p.states.error]:"error"===f,[p.states.success]:"success"===f,[p.states.disabled]:!!m,[p.states.hasLabel]:g}),onClick:K,ref:a,children:[h&&(0,c.jsx)("div",{className:p.slotLeft,children:h}),(0,c.jsxs)("label",{htmlFor:B,className:p.container,children:[g&&(0,c.jsx)("span",{className:(0,l.A)(p.label,{[p.states.active]:H,[p.states.s]:"s"===v,[p.states.disabled]:m,[p.states.error]:"error"===f,[p.states.success]:"success"===f}),children:g}),Q&&!!b&&(0,c.jsxs)("div",{className:(0,l.A)(p.placeholder.visible,{[p.states.accent]:"accent"===N}),children:[Q.hidden&&(0,c.jsx)("span",{className:p.placeholder.hidden,children:Q.hidden}),Q.visible]}),(0,c.jsx)("input",{...q,id:B,ref:F,className:(0,l.A)(p.field,{[p.states.s]:"s"===v,[p.states.hasLabel]:g,[p.states.disabled]:m}),type:A,inputMode:C,autoComplete:"off",placeholder:y,value:b,disabled:m,onChange:e=>{null==S||S(e.target.value,e)},onFocus:u(O,Z),onBlur:u(P,M),onKeyDown:e=>{("Escape"===e.key||"Esc"===e.key)&&(e.preventDefault(),null==S||S("",{target:{value:""}})),null==V||V(e)}})]}),d&&(0,c.jsx)("div",{className:(0,l.A)(p.rightLabel,{[p.states.disabled]:m}),children:d}),t]}),(k||j)&&(0,c.jsx)(r.C,{dataQa:(0,i.g)("".concat(L,"-caption"),!!L),className:(0,l.A)(p.caption,{[p.states.disabled]:m}),state:f,withoutIcon:!0,children:j})]})});m.displayName="InputBase"},80703:()=>{},86346:(e,a,t)=>{"use strict";t.d(a,{C:()=>p});var c=t(37876),n=t(69241),s=t(14232),l=t(14595),r=t(34350),i=t(9789);function o(e){return s.createElement("svg",{viewBox:"0 0 24 24",width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},s.createElement("defs",null,s.createElement("clipPath",{id:"a"},s.createElement("path",{fill:"#fff",fillOpacity:0,d:"M0 0h24v24H0z"}))),s.createElement("g",{clipPath:"url(#a)"},s.createElement("path",{d:"M2 12C2 6.477 6.477 2 12 2s10 4.477 10 10-4.477 10-10 10S2 17.523 2 12Zm1.5 0a8.5 8.5 0 1 1 17 0 8.5 8.5 0 0 1-17 0Zm12.28-1.72-4.25 4.25a.722.722 0 0 1-.53.22.722.722 0 0 1-.53-.22l-2.25-2.25a.743.743 0 0 1 0-1.06.743.743 0 0 1 1.06 0L11 12.94l3.72-3.72a.743.743 0 0 1 1.06 0 .743.743 0 0 1 0 1.06Z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"})))}function d(e){return s.createElement("svg",{viewBox:"0 0 24 24",width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},s.createElement("path",{d:"M12.617 2.035a4.736 4.736 0 0 0-1.232 0c-1.28.167-2.263 1.01-3.216 2.25-.944 1.231-1.97 3.005-3.284 5.28l-.06.105c-1.316 2.277-2.342 4.053-2.937 5.487-.6 1.447-.838 2.72-.344 3.912.159.382.366.74.617 1.069.785 1.024 2.007 1.454 3.56 1.659 1.539.202 3.59.202 6.22.202h.12c2.63 0 4.681 0 6.22-.202 1.553-.204 2.775-.635 3.56-1.66a4.75 4.75 0 0 0 .617-1.068c.494-1.192.256-2.465-.344-3.912-.595-1.434-1.621-3.21-2.937-5.487l-.06-.105c-1.315-2.275-2.34-4.049-3.285-5.28-.952-1.24-1.935-2.083-3.215-2.25ZM11.58 3.522a3.23 3.23 0 0 1 .844 0c.678.089 1.343.535 2.22 1.677.877 1.143 1.854 2.83 3.205 5.169 1.352 2.34 2.328 4.031 2.88 5.364.552 1.331.606 2.13.344 2.762-.108.261-.25.507-.422.731-.415.543-1.135.897-2.564 1.085-1.43.188-3.382.189-6.085.189s-4.655-.001-6.085-.19c-1.43-.187-2.149-.54-2.564-1.084a3.249 3.249 0 0 1-.422-.73c-.262-.632-.208-1.432.344-2.763.552-1.333 1.528-3.023 2.88-5.364 1.351-2.338 2.328-4.026 3.205-5.17.877-1.141 1.543-1.587 2.22-1.676Zm1.173 5.227a.75.75 0 0 0-1.5 0v5.5a.75.75 0 1 0 1.5 0v-5.5Zm-1.75 8.253a1 1 0 1 1 2-.005 1 1 0 0 1-2 .005Z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}))}t(38530);let u=(0,i.g)("caption"),h=Object.freeze({caption:u,captionWithIcon:"".concat(u,"--with-icon"),content:"".concat(u,"__content"),icon:"".concat(u,"__icon"),text:"".concat(u,"__text"),size:{s:"".concat(u,"--s"),m:"".concat(u,"--m")},states:{success:"".concat(u,"--success"),error:"".concat(u,"--error"),warning:"".concat(u,"--warning")}});function p(e){let{as:a,children:t,state:s="default",size:i="m",text:u,withoutIcon:p=!1,lineClamp:m,role:f,dataQa:v,dataId:_,className:g,style:b,...y}=e,x=u||t,w=!p&&["success","error","warning"].includes(s),N="success"===s?o:d,j=(0,n.A)(g,h.caption,h.size[i],{[h.captionWithIcon]:w,[h.states.success]:"success"===s,[h.states.error]:"error"===s,[h.states.warning]:"warning"===s});return(0,c.jsx)(a||"div",{className:j,style:b,role:f,...y,"data-id":_,"data-qa":v,children:(0,c.jsxs)("div",{className:h.content,children:[w&&x&&(0,c.jsx)(l.P,{className:h.icon,children:(0,c.jsx)(N,{})}),(0,c.jsx)("span",{className:(0,n.A)(h.text),style:{...m?{WebkitLineClamp:m,lineClamp:m,...r.l}:void 0},children:x})]})})}p.displayName="Caption"}}]);