1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1218],{67631:function(e,t,o){o.d(t,{Z:function(){return J}});var n,r,a,i,l=o(85893),u=o(67294),s=o(14653),c=o(71646),d=o(94192),p=o(73781),b=o(19946),f=o(16723),m=o(3855),x=o(90292),v=o(14157),g=o(23784),R=o(31591),O=o(11497),C=o(9362),h=o(12351),S=o(64103),T=o(32984),y=o(18689),I=o(84575),P=o(46045),E=o(16567),w=o(61363),D=((n=D||{})[n.Open=0]="Open",n[n.Closed=1]="Closed",n),N=((r=N||{})[r.Single=0]="Single",r[r.Multi=1]="Multi",r),M=((a=M||{})[a.Pointer=0]="Pointer",a[a.Other=1]="Other",a),k=((i=k||{})[i.OpenCombobox=0]="OpenCombobox",i[i.CloseCombobox=1]="CloseCombobox",i[i.GoToOption=2]="GoToOption",i[i.RegisterOption=3]="RegisterOption",i[i.UnregisterOption=4]="UnregisterOption",i);function F(e,t=e=>e){let o=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,n=(0,I.z2)(t(e.options.slice()),e=>e.dataRef.current.domRef.current),r=o?n.indexOf(o):null;return -1===r&&(r=null),{options:n,activeOptionIndex:r}}let A={1:e=>e.dataRef.current.disabled||1===e.comboboxState?e:{...e,activeOptionIndex:null,comboboxState:1},0(e){if(e.dataRef.current.disabled||0===e.comboboxState)return e;let t=e.activeOptionIndex,{isSelected:o}=e.dataRef.current,n=e.options.findIndex(e=>o(e.dataRef.current.value));return -1!==n&&(t=n),{...e,comboboxState:0,activeOptionIndex:t}},2(e,t){var o;if(e.dataRef.current.disabled||e.dataRef.current.optionsRef.current&&!e.dataRef.current.optionsPropsRef.current.static&&1===e.comboboxState)return e;let n=F(e);if(null===n.activeOptionIndex){let e=n.options.findIndex(e=>!e.dataRef.current.disabled);-1!==e&&(n.activeOptionIndex=e)}let r=(0,O.d)(t,{resolveItems:()=>n.options,resolveActiveIndex:()=>n.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...e,...n,activeOptionIndex:r,activationTrigger:null!=(o=t.trigger)?o:1}},3:(e,t)=>{let o={id:t.id,dataRef:t.dataRef},n=F(e,e=>[...e,o]);null===e.activeOptionIndex&&e.dataRef.current.isSelected(t.dataRef.current.value)&&(n.activeOptionIndex=n.options.indexOf(o));let r={...e,...n,activationTrigger:1};return e.dataRef.current.__demoMode&&void 0===e.dataRef.current.value&&(r.activeOptionIndex=0),r},4:(e,t)=>{let o=F(e,e=>{let o=e.findIndex(e=>e.id===t.id);return -1!==o&&e.splice(o,1),e});return{...e,...o,activationTrigger:1}}},_=(0,u.createContext)(null);function z(e){let t=(0,u.useContext)(_);if(null===t){let t=Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,z),t}return t}_.displayName="ComboboxActionsContext";let j=(0,u.createContext)(null);function L(e){let t=(0,u.useContext)(j);if(null===t){let t=Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,L),t}return t}function V(e,t){return(0,T.E)(t.type,A,e,t)}j.displayName="ComboboxDataContext";let B=u.Fragment,$=(0,h.yV)(function(e,t){let{name:o,value:n,onChange:r,disabled:a=!1,__demoMode:i=!1,nullable:l=!1,multiple:s=!1,...c}=e,[d,b]=(0,u.useReducer)(V,{dataRef:(0,u.createRef)(),comboboxState:i?0:1,options:[],activeOptionIndex:null,activationTrigger:1}),m=(0,u.useRef)(!1),v=(0,u.useRef)({static:!1,hold:!1}),g=(0,u.useRef)({displayValue:void 0}),R=(0,u.useRef)(null),C=(0,u.useRef)(null),S=(0,u.useRef)(null),I=(0,u.useRef)(null),w=(0,p.z)((e,t)=>e===t),D=(0,u.useCallback)(e=>(0,T.E)(N.mode,{1:()=>n.some(t=>w(t,e)),0:()=>w(n,e)}),[n]),N=(0,u.useMemo)(()=>({...d,optionsPropsRef:v,inputPropsRef:g,labelRef:R,inputRef:C,buttonRef:S,optionsRef:I,value:n,disabled:a,mode:s?1:0,get activeOptionIndex(){if(m.current&&null===d.activeOptionIndex&&d.options.length>0){let e=d.options.findIndex(e=>!e.dataRef.current.disabled);if(-1!==e)return e}return d.activeOptionIndex},compare:w,isSelected:D,nullable:l,__demoMode:i}),[n,a,s,l,i,d]);(0,f.e)(()=>{d.dataRef.current=N},[N]),(0,x.O)([N.buttonRef,N.inputRef,N.optionsRef],()=>b({type:1}),0===N.comboboxState);let M=(0,u.useMemo)(()=>({open:0===N.comboboxState,disabled:a,activeIndex:N.activeOptionIndex,activeOption:null===N.activeOptionIndex?null:N.options[N.activeOptionIndex].dataRef.current.value}),[N,a]),k=(0,u.useCallback)(()=>{var e;if(!N.inputRef.current)return;let t=g.current.displayValue;"function"==typeof t?N.inputRef.current.value=null!=(e=t(n))?e:"":"string"==typeof n?N.inputRef.current.value=n:N.inputRef.current.value=""},[n,N.inputRef,g]),F=(0,p.z)(e=>{let t=N.options.find(t=>
1t.id===e);t&&(Y(t.dataRef.current.value),k())}),A=(0,p.z)(()=>{if(null!==N.activeOptionIndex){let{dataRef:e,id:t}=N.options[N.activeOptionIndex];Y(e.current.value),k(),b({type:2,focus:O.T.Specific,id:t})}}),z=(0,p.z)(()=>{b({type:0}),m.current=!0}),L=(0,p.z)(()=>{b({type:1}),m.current=!1}),$=(0,p.z)((e,t,o)=>(m.current=!1,e===O.T.Specific?b({type:2,focus:O.T.Specific,id:t,trigger:o}):b({type:2,focus:e,trigger:o}))),G=(0,p.z)((e,t)=>(b({type:3,id:e,dataRef:t}),()=>b({type:4,id:e}))),Y=(0,p.z)(e=>(0,T.E)(N.mode,{0:()=>r(e),1(){let t=N.value.slice(),o=t.indexOf(e);return -1===o?t.push(e):t.splice(o,1),r(t)}})),q=(0,u.useMemo)(()=>({onChange:Y,registerOption:G,goToOption:$,closeCombobox:L,openCombobox:z,selectActiveOption:A,selectOption:F}),[]);return(0,f.e)(()=>{1===N.comboboxState&&k()},[k,N.comboboxState]),(0,f.e)(k,[k]),u.createElement(_.Provider,{value:q},u.createElement(j.Provider,{value:N},u.createElement(E.up,{value:(0,T.E)(N.comboboxState,{0:E.ZM.Open,1:E.ZM.Closed})},null!=o&&null!=n&&(0,y.t)({[o]:n}).map(([e,t])=>u.createElement(P._,{features:P.A.Hidden,...(0,h.oA)({key:e,as:"input",type:"hidden",hidden:!0,readOnly:!0,name:e,value:t})})),(0,h.sY)({ourProps:null===t?{}:{ref:t},theirProps:c,slot:M,defaultTag:B,name:"Combobox"}))))}),G=(0,h.yV)(function(e,t){var o,n;let{value:r,onChange:a,displayValue:i,type:l="text",...s}=e,m=L("Combobox.Input"),x=z("Combobox.Input"),v=(0,g.T)(m.inputRef,t),R=m.inputPropsRef,C=`headlessui-combobox-input-${(0,b.M)()}`,S=(0,d.G)();(0,f.e)(()=>{R.current.displayValue=i},[i,R]);let y=(0,p.z)(e=>{switch(e.key){case w.R.Backspace:case w.R.Delete:if(0!==m.mode||!m.nullable)return;let t=e.currentTarget;S.requestAnimationFrame(()=>{""===t.value&&(x.onChange(null),m.optionsRef.current&&(m.optionsRef.current.scrollTop=0),x.goToOption(O.T.Nothing))});break;case w.R.Enter:if(0!==m.comboboxState)return;if(e.preventDefault(),e.stopPropagation(),null===m.activeOptionIndex){x.closeCombobox();return}x.selectActiveOption(),0===m.mode&&x.closeCombobox();break;case w.R.ArrowDown:return e.preventDefault(),e.stopPropagation(),(0,T.E)(m.comboboxState,{0:()=>{x.goToOption(O.T.Next)},1:()=>{x.openCombobox()}});case w.R.ArrowUp:return e.preventDefault(),e.stopPropagation(),(0,T.E)(m.comboboxState,{0:()=>{x.goToOption(O.T.Previous)},1:()=>{x.openCombobox(),S.nextFrame(()=>{m.value||x.goToOption(O.T.Last)})}});case w.R.Home:case w.R.PageUp:return e.preventDefault(),e.stopPropagation(),x.goToOption(O.T.First);case w.R.End:case w.R.PageDown:return e.preventDefault(),e.stopPropagation(),x.goToOption(O.T.Last);case w.R.Escape:return 0!==m.comboboxState?void 0:(e.preventDefault(),m.optionsRef.current&&!m.optionsPropsRef.current.static&&e.stopPropagation(),x.closeCombobox());case w.R.Tab:if(0!==m.comboboxState)return;x.selectActiveOption(),x.closeCombobox()}}),I=(0,p.z)(e=>{x.openCombobox(),null==a||a(e)}),P=(0,c.v)(()=>{if(m.labelRef.current)return[m.labelRef.current.id].join(" ")},[m.labelRef.current]),E=(0,u.useMemo)(()=>({open:0===m.comboboxState,disabled:m.disabled}),[m]),D={ref:v,id:C,role:"combobox",type:l,"aria-controls":null==(o=m.optionsRef.current)?void 0:o.id,"aria-expanded":m.disabled?void 0:0===m.comboboxState,"aria-activedescendant":null===m.activeOptionIndex||null==(n=m.options[m.activeOptionIndex])?void 0:n.id,"aria-multiselectable":1===m.mode||void 0,"aria-labelledby":P,disabled:m.disabled,onKeyDown:y,onChange:I};return(0,h.sY)({ourProps:D,theirProps:s,slot:E,defaultTag:"input",name:"Combobox.Input"})}),Y=(0,h.yV)(function(e,t){var o;let n=L("Combobox.Button"),r=z("Combobox.Button"),a=(0,g.T)(n.buttonRef,t),i=`headlessui-combobox-button-${(0,b.M)()}`,l=(0,d.G)(),s=(0,p.z)(e=>{switch(e.key){case w.R.ArrowDown:return e.preventDefault(),e.stopPropagation(),1===n.comboboxState&&r.openCombobox(),l.nextFrame(()=>{var e;return null==(e=n.inputRef.current)?void 0:e.focus({preventScroll:!0})});case w.R.ArrowUp:return e.preventDefault(),e.stopPropagation(),1===n.comboboxState&&(r.openCombobox(),l.nextFrame(()=>{n.value||r.goToOption(O.T.Last)})),l.nextFrame(()=>{var e;return null==(e=n.inputRef.current)?void 0:e.focus({preventScroll:!0})});case w.R.Escape:return 0!==n.comboboxState?void 0:(e.preventDefault(),n.optionsRef.current&&!n.optionsPropsRef.current.static&&e.stopPropagation(),r.closeCombobox(),l.nextFrame(()=>{var e;return null==(e=n.inputRef.current)?void 0:e.focus({preventScroll:!0})}
1));default:return}}),f=(0,p.z)(e=>{if((0,S.P)(e.currentTarget))return e.preventDefault();0===n.comboboxState?r.closeCombobox():(e.preventDefault(),r.openCombobox()),l.nextFrame(()=>{var e;return null==(e=n.inputRef.current)?void 0:e.focus({preventScroll:!0})})}),m=(0,c.v)(()=>{if(n.labelRef.current)return[n.labelRef.current.id,i].join(" ")},[n.labelRef.current,i]),x=(0,u.useMemo)(()=>({open:0===n.comboboxState,disabled:n.disabled}),[n]),R={ref:a,id:i,type:(0,v.f)(e,n.buttonRef),tabIndex:-1,"aria-haspopup":!0,"aria-controls":null==(o=n.optionsRef.current)?void 0:o.id,"aria-expanded":n.disabled?void 0:0===n.comboboxState,"aria-labelledby":m,disabled:n.disabled,onClick:f,onKeyDown:s};return(0,h.sY)({ourProps:R,theirProps:e,slot:x,defaultTag:"button",name:"Combobox.Button"})}),q=(0,h.yV)(function(e,t){let o=L("Combobox.Label"),n=`headlessui-combobox-label-${(0,b.M)()}`,r=(0,g.T)(o.labelRef,t),a=(0,p.z)(()=>{var e;return null==(e=o.inputRef.current)?void 0:e.focus({preventScroll:!0})}),i=(0,u.useMemo)(()=>({open:0===o.comboboxState,disabled:o.disabled}),[o]);return(0,h.sY)({ourProps:{ref:r,id:n,onClick:a},theirProps:e,slot:i,defaultTag:"label",name:"Combobox.Label"})}),U=h.AN.RenderStrategy|h.AN.Static,Z=Object.assign($,{Input:G,Button:Y,Label:q,Options:(0,h.yV)(function(e,t){var o;let{hold:n=!1,...r}=e,a=L("Combobox.Options"),i=(0,g.T)(a.optionsRef,t),l=`headlessui-combobox-options-${(0,b.M)()}`,s=(0,E.oJ)(),d=null!==s?s===E.ZM.Open:0===a.comboboxState;(0,f.e)(()=>{var t;a.optionsPropsRef.current.static=null!=(t=e.static)&&t},[a.optionsPropsRef,e.static]),(0,f.e)(()=>{a.optionsPropsRef.current.hold=n},[a.optionsPropsRef,n]),(0,R.B)({container:a.optionsRef.current,enabled:0===a.comboboxState,accept:e=>"option"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(e){e.setAttribute("role","none")}});let p=(0,c.v)(()=>{var e,t,o;return null!=(o=null==(e=a.labelRef.current)?void 0:e.id)?o:null==(t=a.buttonRef.current)?void 0:t.id},[a.labelRef.current,a.buttonRef.current]),m=(0,u.useMemo)(()=>({open:0===a.comboboxState}),[a]),x={"aria-activedescendant":null===a.activeOptionIndex||null==(o=a.options[a.activeOptionIndex])?void 0:o.id,"aria-labelledby":p,role:"listbox",id:l,ref:i};return(0,h.sY)({ourProps:x,theirProps:r,slot:m,defaultTag:"ul",features:U,visible:d,name:"Combobox.Options"})}),Option:(0,h.yV)(function(e,t){var o,n;let{disabled:r=!1,value:a,...i}=e,l=L("Combobox.Option"),s=z("Combobox.Option"),c=`headlessui-combobox-option-${(0,b.M)()}`,d=null!==l.activeOptionIndex&&l.options[l.activeOptionIndex].id===c,x=l.isSelected(a),v=(0,u.useRef)(null),R=(0,m.E)({disabled:r,value:a,domRef:v,textValue:null==(n=null==(o=v.current)?void 0:o.textContent)?void 0:n.toLowerCase()}),S=(0,g.T)(t,v),T=(0,p.z)(()=>s.selectOption(c));(0,f.e)(()=>s.registerOption(c,R),[R,c]);let y=(0,u.useRef)(!l.__demoMode);(0,f.e)(()=>{if(!l.__demoMode)return;let e=(0,C.k)();return e.requestAnimationFrame(()=>{y.current=!0}),e.dispose},[]),(0,f.e)(()=>{if(0!==l.comboboxState||!d||!y.current||0===l.activationTrigger)return;let e=(0,C.k)();return e.requestAnimationFrame(()=>{var e,t;null==(t=null==(e=v.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})}),e.dispose},[v,d,l.comboboxState,l.activationTrigger,l.activeOptionIndex]);let I=(0,p.z)(e=>{var t;if(r)return e.preventDefault();T(),0===l.mode&&(s.closeCombobox(),null==(t=l.inputRef.current)||t.focus({preventScroll:!0}))}),P=(0,p.z)(()=>{if(r)return s.goToOption(O.T.Nothing);s.goToOption(O.T.Specific,c)}),E=(0,p.z)(()=>{r||d||s.goToOption(O.T.Specific,c,0)}),w=(0,p.z)(()=>{r||!d||l.optionsPropsRef.current.hold||s.goToOption(O.T.Nothing)}),D=(0,u.useMemo)(()=>({active:d,selected:x,disabled:r}),[d,x,r]);return(0,h.sY)({ourProps:{id:c,ref:S,role:"option",tabIndex:!0===r?void 0:-1,"aria-disabled":!0===r||void 0,"aria-selected":!0===x||void 0,disabled:void 0,onClick:I,onFocus:P,onPointerMove:E,onMouseMove:E,onPointerLeave:w,onMouseLeave:w},theirProps:i,slot:D,defaultTag:"li",name:"Combobox.Option"})})});var H=o(97985);function K(){for(var e=arguments.length,t=Array(e),o=0;o<e;o++)t[o]=arguments[o];return t.filter(Boolean).join(" ")}function J(e){let[t,o]=(0,u.useState)(""),[n,r]=(0,u.useState)(),{t:a}=(0,H.$G)(["common"]),i=""===t?e.options||[]:(e.options||[]).filter(o=>{var n;return e.formatName?e.formatName(o).toLowerCase().includes(t.toLowerCase()):String(null!==(n=o[e.name])&&void 0!==n?n:"").toLowerCase().includes(t.toLowerCase())});(0,u.useEffect)(()=>{let t=(e.options||[]).find(t=>t[e.id]===e.value);t&&r(t)},[e.value]);let c=t=>{r(t),t&&(e.onSelect(t[e.id]),e.onSelectExtra&&e.onSelectExtra(t))};return(0,l.jsx)(Z,{as:"div",value:n,onChange:c,children:(0,l.jsxs)("div",{className:"relative",children:[(0,l.jsxs)(Z.Button,{as:"div",className:"w-full flex flex-row items-center focus:outline-none",children:[(0,l.jsx)(Z.Input,{className:"w-full rounded shadow-2sm bg-white px-5 h-13 font-medium border [border-color:#EDEDED] sm:text-lg focus:border-indigo-500 focus:outline-none focus:ring-1 focus:ring-indigo-500",onChange:e=>o(e.target.value),displayValue:t=>e.formatName?e.formatName(t):null==t?void 0:t.name}),(0,l.jsx)(s.Ta4,{className:"h-5 w-5 text-gray-400 right-4 absolute","aria-hidden":"true"})]}),i.length>0?(0,l.jsx)(Z.Options,{className:"absolute z-10 mt-1 max-h-60 w-full overflow-auto rounded-md bg-white py-1 text-base shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm",children:i.map(t=>(0,l.jsx)(Z.Option,{value:t,className:e=>{let{active:t}=e;return K("relative cursor-default select-none py-2 pl-3 pr-9",t?"bg-indigo-600 text-white":"text-gray-900")},children:o=>{let{active:n,selected:r}=o;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("span",{className:K("block truncate",r&&"font-semibold"),children:e.formatName?e.formatName(t):t[e.name]}),r&&(0,l.jsx)("span",{className:K("absolute inset-y-0 right-0 flex items-center pr-4",n?"text-white":"text-indigo-600"),children:(0,l.jsx)(s.nQG,{className:"h-5 w-5","aria-hidden":"true"})})]})}},t[e.id]))}):void 0!==e.options&&""!==t&&(0,l.jsx)("div",{className:"relative cursor-default select-none py-2 px-4 text-gray-700 bg-white shadow-lg",children:a("common:nothing_found")})]})})}},93028:function(e,t,o){o.d(t,{V:function(){return l}});var n=o(85893),r=o(67294),a=o(67555),i=o.n(a);o(51529);let l=e=>{var t;return(0,n.jsxs)(r.Fragment,{children:[(0,n.jsx)("style",{dangerouslySetInnerHTML:{__html:"\n .react-tel-input .selected-flag {\n width: 3rem;\n padding-left: 0.8125rem;\n }\n "}}),(0,n.jsx)(i(),{country:e.country?String(e.country).toLowerCase():"ee",value:e.value,onChange:t=>e.onChange({target:{name:e.name,value:"+"+t}}),disabled:e.disabled,required:e.required,masks:{ph:"(...) ... ...."},inputClass:null!==(t=e.inputClass)&&void 0!==t?t:"!shadow-2sm focus:!ring-indigo-700 focus:!border-indigo-700 sm:!text-lg
1!font-medium !border ![border-color:#EDEDED] !rounded px-5 !h-13 !w-full !pl-16 text-gray-900",buttonClass:"![background-color:#F0EFEF] !border ![border-color:#EDEDED]"})]})}}}]);
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.