1/*! For license information please see 392.0cc2e585.chunk.js.LICENSE.txt */ 2"use strict";(self.webpackChunkcustqrd=self.webpackChunkcustqrd||[]).push([[392],{1432:(e,o,t)=>{function n(e){return"string"===typeof e?{value:e,label:e}:"value"in e&&!("label"in e)?{value:e.value,label:e.value,disabled:e.disabled}:"number"===typeof e?{value:e.toString(),label:e.toString()}:"group"in e?{group:e.group,items:e.items.map(e=>n(e))}:e}function r(e){return e?e.map(e=>n(e)):[]}t.d(o,{d:()=>r})},3609:(e,o,t)=>{t.d(o,{B:()=>s});var n=t(5043),r=t(4474);function s(){let{defaultOpened:e,opened:o,onOpenedChange:t,onDropdownClose:s,onDropdownOpen:a,loop:l=!0,scrollBehavior:i="instant"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const[c,d]=(0,r.Z)({value:o,defaultValue:e,finalValue:!1,onChange:t}),u=(0,n.useRef)(null),p=(0,n.useRef)(-1),m=(0,n.useRef)(null),b=(0,n.useRef)(null),v=(0,n.useRef)(-1),h=(0,n.useRef)(-1),y=(0,n.useRef)(-1),f=(0,n.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"unknown";c||(d(!0),null===a||void 0===a||a(e))},[d,a,c]),w=(0,n.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"unknown";c&&(d(!1),null===s||void 0===s||s(e))},[d,s,c]),A=(0,n.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"unknown";c?w(e):f(e)},[w,f,c]),g=(0,n.useCallback)(()=>{const e=document.querySelector("#".concat(u.current," [data-combobox-selected]"));null===e||void 0===e||e.removeAttribute("data-combobox-selected"),null===e||void 0===e||e.removeAttribute("aria-selected")},[]),x=(0,n.useCallback)(e=>{const o=document.getElementById(u.current),t=null===o||void 0===o?void 0:o.querySelectorAll("[data-combobox-option]");if(!t)return null;const n=e>=t.length?0:e<0?t.length-1:e;return p.current=n,null!==t&&void 0!==t&&t[n]&&!t[n].hasAttribute("data-combobox-disabled")?(g(),t[n].setAttribute("data-combobox-selected","true"),t[n].setAttribute("aria-selected","true"),t[n].scrollIntoView({block:"nearest",behavior:i}),t[n].id):null},[i,g]),C=(0,n.useCallback)(()=>{const e=document.querySelector("#".concat(u.current," [data-combobox-active]"));if(e){const o=document.querySelectorAll("#".concat(u.current," [data-combobox-option]")),t=Array.from(o).findIndex(o=>o===e);return x(t)}return x(0)},[x]),O=(0,n.useCallback)(()=>x(function(e,o,t){for(let n=e+1;n<o.length;n+=1)if(!o[n].hasAttribute("data-combobox-disabled"))return n;if(t)for(let n=0;n<o.length;n+=1)if(!o[n].hasAttribute("data-combobox-disabled"))return n;return e}(p.current,document.querySelectorAll("#".concat(u.current," [data-combobox-option]")),l)),[x,l]),N=(0,n.useCallback)(()=>x(function(e,o,t){for(let n=e-1;n>=0;n-=1)if(!o[n].hasAttribute("data-combobox-disabled"))return n;if(t)for(let n=o.length-1;n>-1;n-=1)if(!o[n].hasAttribute("data-combobox-disabled"))return n;return e}(p.current,document.querySelectorAll("#".concat(u.current," [data-combobox-option]")),l)),[x,l]),S=(0,n.useCallback)(()=>x(function(e){for(let o=0;o<e.length;o+=1)if(!e[o].hasAttribute("data-combobox-disabled"))return o;return-1}(document.querySelectorAll("#".concat(u.current," [data-combobox-option]")))),[x]),D=(0,n.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"selected",o=arguments.length>1?arguments[1]:void 0;y.current=window.setTimeout(()=>{const t=document.querySelectorAll("#".concat(u.current," [data-combobox-option]")),n=Array.from(t).findIndex(o=>o.hasAttribute("data-combobox-".concat(e)));var r;(p.current=n,null!==o&&void 0!==o&&o.scrollIntoView)&&(null===(r=t[n])||void 0===r||r.scrollIntoView({block:"nearest",behavior:i}))},0)},[]),k=(0,n.useCallback)(()=>{p.current=-1,g()},[g]),I=(0,n.useCallback)(()=>{const e=document.querySelectorAll("#".concat(u.current," [data-combobox-option]")),o=null===e||void 0===e?void 0:e[p.current];null===o||void 0===o||o.click()},[]),P=(0,n.useCallback)(e=>{u.current=e},[]),E=(0,n.useCallback)(()=>{v.current=window.setTimeout(()=>m.current.focus(),0)},[]),_=(0,n.useCallback)(()=>{h.current=window.setTimeout(()=>
2b.current.focus(),0)},[]),j=(0,n.useCallback)(()=>p.current,[]);return(0,n.useEffect)(()=>()=>{window.clearTimeout(v.current),window.clearTimeout(h.current),window.clearTimeout(y.current)},[]),{dropdownOpened:c,openDropdown:f,closeDropdown:w,toggleDropdown:A,selectedOptionIndex:p.current,getSelectedOptionIndex:j,selectOption:x,selectFirstOption:S,selectActiveOption:C,selectNextOption:O,selectPreviousOption:N,resetSelectedOption:k,updateSelectedOptionIndex:D,listId:u.current,setListId:P,clickSelectedOption:I,searchRef:m,focusSearchInput:E,targetRef:b,focusTarget:_}}},4181:(e,o,t)=>{t.d(o,{G:()=>he});var n=t(9379),r=t(45),s=t(579),a=t(2932),l=t(5043),i=t(5783),c=t(1721),d=t(9863),u=t(8038),p=t(2435),m=t(605);const[b,v]=(0,m.F)("Combobox component was not found in tree");var h=t(6711),y=t(4886),f=t(6331),w=t(7715);const A=["size","error","style","className","classNames","styles","unstyled","vars","mod"],g={error:null},x=(0,c.V)((e,o)=>{let{size:t,color:n}=o;return{chevron:{"--combobox-chevron-size":(0,i.YC)(t,"combobox-chevron-size"),"--combobox-chevron-color":n?(0,h.r)(n,e):void 0}}}),C=(0,f.P9)((e,o)=>{const t=(0,d.Y)("ComboboxChevron",g,e),{size:a,error:l,style:i,className:c,classNames:p,styles:m,unstyled:b,vars:v,mod:h}=t,f=(0,r.A)(t,A),C=(0,u.I)({name:"ComboboxChevron",classes:w.A,props:t,style:i,className:c,classNames:p,styles:m,unstyled:b,vars:v,varsResolver:x,rootSelector:"chevron"});return(0,s.jsx)(y.a,(0,n.A)((0,n.A)((0,n.A)({component:"svg"},f),C("chevron")),{},{size:a,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",mod:["combobox-chevron",{error:l},h],ref:o,children:(0,s.jsx)("path",{d:"M4.93179 5.43179C4.75605 5.60753 4.75605 5.89245 4.93179 6.06819C5.10753 6.24392 5.39245 6.24392 5.56819 6.06819L7.49999 4.13638L9.43179 6.06819C9.60753 6.24392 9.89245 6.24392 10.0682 6.06819C10.2439 5.89245 10.2439 5.60753 10.0682 5.43179L7.81819 3.18179C7.73379 3.0974 7.61933 3.04999 7.49999 3.04999C7.38064 3.04999 7.26618 3.0974 7.18179 3.18179L4.93179 5.43179ZM10.0682 9.56819C10.2439 9.39245 10.2439 9.10753 10.0682 8.93179C9.89245 8.75606 9.60753 8.75606 9.43179 8.93179L7.49999 10.8636L5.56819 8.93179C5.39245 8.75606 5.10753 8.75606 4.93179 8.93179C4.75605 9.10753 4.75605 9.39245 4.93179 9.56819L7.18179 11.8182C7.35753 11.9939 7.64245 11.9939 7.81819 11.8182L10.0682 9.56819Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})}))});C.classes=w.A,C.displayName="@mantine/core/ComboboxChevron";var O=t(1820);const N=["size","onMouseDown","onClick","onClear"],S=(0,l.forwardRef)((e,o)=>{let{size:t,onMouseDown:a,onClick:l,onClear:i}=e,c=(0,r.A)(e,N);return(0,s.jsx)(O.p.ClearButton,(0,n.A)((0,n.A)({ref:o,tabIndex:-1,"aria-hidden":!0},c),{},{onMouseDown:e=>{e.preventDefault(),null===a||void 0===a||a(e)},onClick:e=>{i(),null===l||void 0===l||l(e)}}))});S.displayName="@mantine/core/ComboboxClearButton";const D=["classNames","styles","className","style","hidden"],k={},I=(0,f.P9)((e,o)=>{const t=(0,d.Y)("ComboboxDropdown",k,e),{classNames:a,styles:l,className:i,style:c,hidden:u}=t,m=(0,r.A)(t,D),b=v();return(0,s.jsx)(p.A.Dropdown,(0,n.A)((0,n.A)({},m),{},{ref:o,role:"presentation","data-hidden":u||void 0},b.getStyles("dropdown",{className:i,style:c,classNames:a,styles:l})))});I.classes=w.A,I.displayName="@mantine/core/ComboboxDropdown";var P=t(8429);const E={refProp:"ref"},_=(0,f.P9)((e,o)=>{const{children:t,refProp:n}=(0,d.Y)("ComboboxDropdownTarget",E,e);if(v(),!(0,P.v)(t))throw new Error("Combobox.DropdownTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");return(0,s.jsx)(p.A.Target,{ref:o,refProp:n,children:t})});_.displayName="@mantine/core/ComboboxDropdownTarget";const j=["classNames","className","style","styles","vars"],T={},z=(0,f.P9)((e,o)=>{const t=(0,d.Y)("ComboboxEmpty",T,e),{classNames:a,className:l,style:i,styles:c,vars:u}=t,p=(0,r.A)(t,j),m=v();return(0,s.jsx)(y.a,(0,n.A)((0,n.A)({ref:o},m.getStyles("empty",{className:l,classNames:a,styles:c,style:i})),p))});z.classes=w.A,z.displayName="@mantine/core/ComboboxEmpty";var M=t(9252),R=t(9667);function F(e){let{onKeyDown:o,withKeyboardNavigation:t,withAriaAttributes:r,withExpandedAttribute:s,targetType:a,autoComplete:i}=e;const c=v(),[d,u]=(0,l.useState)(null),p=r?{"aria-haspopup":"listbox","aria-expanded":s&&!(!c.store.listId||!c.store.dropdownOpened)||void 0,"aria-controls":c.store.dropdownOpened?c.store.listId:void 0,"aria-activedescendant":c.store.dropdownOpened&&d||void 0,autoComplete:i,"data-expanded":c.store.dropdownOpened||void 0,"data-mantine-stop-propagation":c.store.dropdownOpened||void 0}:{};return(0,n.A)((0,n.A)({},p),{},{onKeyDown:e=>{if(null===o||void 0===o||o(e),!c.readOnly&&t){if(e.nativeEvent.isComposing)return;if("ArrowDown"===e.nativeEvent.code&&(e.preventDefault(),c.store.dropdownOpened?u(c.store.selectNextOption()):(c.store.openDropdown("keyboard"),u(c.store.selectActiveOption()),c.store.updateSelectedOptionIndex("selected",{scrollIntoView:!0}))),"ArrowUp"===e.nativeEvent.code&&(e.preventDefault(),c.store.dropdownOpened?u(c.store.selectPreviousOption()):(c.store.openDropdown("keyboard"),u(c.store.selectActiveOption()),c.store.updateSelectedOptionIndex("selected",{scrollIntoView:!0}))),"Enter"===e.nativeEvent.code||"NumpadEnter"===e.nativeEvent.code){if(229===e.nativeEvent.keyCode)return;const o=c.store.getSelectedOptionIndex();c.store.dropdownOpened&&-1!==o?(e.preventDefault(),c.store.clickSelectedOption()):"button"===a&&(e.preventDefault(),c.store.openDropdown("keyboard"))}"Escape"===e.key&&c.store.closeDropdown("keyboard"),"Space"===e.nativeEvent.code&&"button"===a&&(e.preventDefault(),c.store.toggleDropdown("keyboard"))}}})}const K=["children","refProp","withKeyboardNavigation","withAriaAttributes","withExpandedAttribute","targetType","autoComplete"],B={refProp:"ref",targetType:"input",withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:"off"},V=(0,f.P9)((e,o)=>{const t=(0,d.Y)("ComboboxEventsTarget",B,e),{children:s,refProp:a,withKeyboardNavigation:i,withAriaAttributes:c,withExpandedAttribute:u,targetType:p,autoComplete:m}=t,b=(0,r.A)(t,K);if(!(0,P.v)(s))throw new Error("Combobox.EventsTarget component children should be an element or a component that accepts ref. Fragments, str
2ings, numbers and other primitive values are not supported");const h=v(),y=F({targetType:p,withAriaAttributes:c,withKeyboardNavigation:i,withExpandedAttribute:u,onKeyDown:s.props.onKeyDown,autoComplete:m});return(0,l.cloneElement)(s,(0,n.A)((0,n.A)((0,n.A)({},y),b),{},{[a]:(0,M.pc)(o,h.store.targetRef,(0,R.x)(s))}))});V.displayName="@mantine/core/ComboboxEventsTarget";const Y=["classNames","className","style","styles","vars"],G={},L=(0,f.P9)((e,o)=>{const t=(0,d.Y)("ComboboxFooter",G,e),{classNames:a,className:l,style:i,styles:c,vars:u}=t,p=(0,r.A)(t,Y),m=v();return(0,s.jsx)(y.a,(0,n.A)((0,n.A)((0,n.A)({ref:o},m.getStyles("footer",{className:l,classNames:a,style:i,styles:c})),p),{},{onMouseDown:e=>{e.preventDefault()}}))});L.classes=w.A,L.displayName="@mantine/core/ComboboxFooter";const H=["classNames","className","style","styles","vars","children","label"],q={},Z=(0,f.P9)((e,o)=>{const t=(0,d.Y)("ComboboxGroup",q,e),{classNames:a,className:l,style:i,styles:c,vars:u,children:p,label:m}=t,b=(0,r.A)(t,H),h=v();return(0,s.jsxs)(y.a,(0,n.A)((0,n.A)((0,n.A)({ref:o},h.getStyles("group",{className:l,classNames:a,style:i,styles:c})),b),{},{children:[m&&(0,s.jsx)("div",(0,n.A)((0,n.A)({},h.getStyles("groupLabel",{classNames:a,styles:c})),{},{children:m})),p]}))});Z.classes=w.A,Z.displayName="@mantine/core/ComboboxGroup";const W=["classNames","className","style","styles","vars"],U={},J=(0,f.P9)((e,o)=>{const t=(0,d.Y)("ComboboxHeader",U,e),{classNames:a,className:l,style:i,styles:c,vars:u}=t,p=(0,r.A)(t,W),m=v();return(0,s.jsx)(y.a,(0,n.A)((0,n.A)((0,n.A)({ref:o},m.getStyles("header",{className:l,classNames:a,style:i,styles:c})),p),{},{onMouseDown:e=>{e.preventDefault()}}))});J.classes=w.A,J.displayName="@mantine/core/ComboboxHeader";const Q=["value","valuesDivider"];function X(e){let{value:o,valuesDivider:t=","}=e,a=(0,r.A)(e,Q);return(0,s.jsx)("input",(0,n.A)({type:"hidden",value:Array.isArray(o)?o.join(t):o||""},a))}X.displayName="@mantine/core/ComboboxHiddenInput";const $=["classNames","className","style","styles","vars","onClick","id","active","onMouseDown","onMouseOver","disabled","selected","mod"],ee={},oe=(0,f.P9)((e,o)=>{const t=(0,d.Y)("ComboboxOption",ee,e),{classNames:a,className:i,style:c,styles:u,vars:p,onClick:m,id:b,active:h,onMouseDown:f,onMouseOver:w,disabled:A,selected:g,mod:x}=t,C=(0,r.A)(t,$),O=v(),N=(0,l.useId)(),S=b||N;return(0,s.jsx)(y.a,(0,n.A)((0,n.A)((0,n.A)({},O.getStyles("option",{className:i,classNames:a,styles:u,style:c})),C),{},{ref:o,id:S,mod:["combobox-option",{"combobox-active":h,"combobox-disabled":A,"combobox-selected":g},x],role:"option",onClick:e=>{var o;A?e.preventDefault():(null===(o=O.onOptionSubmit)||void 0===o||o.call(O,t.value,t),null===m||void 0===m||m(e))},onMouseDown:e=>{e.preventDefault(),null===f||void 0===f||f(e)},onMouseOver:e=>{O.resetSelectionOnOptionHover&&O.store.resetSelectedOption(),null===w||void 0===w||w(e)}}))});oe.classes=w.A,oe.displayName="@mantine/core/ComboboxOption";var te=t(4632);const ne=["classNames","className","style","styles","id","onMouseDown","labelledBy"],re={},se=(0,f.P9)((e,o)=>{const t=(0,d.Y)("ComboboxOptions",re,e),{classNames:a,className:i,style:c,styles:u,id:p,onMouseDown:m,labelledBy:b}=t,h=(0,r.A)(t,ne),f=v(),w=(0,te.B)(p);return(0,l.useEffect)(()=>{f.store.setListId(w)},[w]),(0,s.jsx)(y.a,(0,n.A)((0,n.A)((0,n.A)({ref:o},f.getStyles("options",{className:i,style:c,classNames:a,styles:u})),h),{},{id:w,role:"listbox","aria-labelledby":b,onMouseDown:e=>{e.preventDefault(),null===m||void 0===m||m(e)}}))});se.classes=w.A,se.displayName="@mantine/core/ComboboxOptions";const ae=["classNames","styles","unstyled","vars","withAriaAttributes","onKeyDown","withKeyboardNavigation","size"],le={withAriaAttributes:!0,withKeyboardNavigation:!0},ie=(0,f.P9)((e,o)=>{const t=(0,d.Y)("ComboboxSearch",le,e),{classNames:a,styles:l,unstyled:i,vars:c,withAriaAttributes:u,onKeyDown:p,withKeyboardNavigation:m,size:b}=t,h=(0,r.A)(t,ae),y=v(),f=y.getStyles("search"),w=F({targetType:"input",withAriaAttributes:u,withKeyboardNavigation:m,withExpandedAttribute:!1,onKeyDown:p,autoComplete:"off"});return(0,s.jsx)(O.p,(0,n.A)((0,n.A)((0,n.A)({ref:(0,M.pc)(o,y.store.searchRef),classNames:[{input:f.className},a],styles:[{input:f.style},l],size:b||y.size},w),h),{},{__staticSelector:"Combobox"}))});ie.classes=w.A,ie.displayName="@mantine/core/ComboboxSearch";const ce=["children","refProp","withKeyboardNavigation","withAriaAttributes","withExpandedAttribute","targetType","autoComplete"],de={refProp:"ref",targetType:"input",withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:"off"},ue=(0,f.P9)((e,o)=>{const t=(0,d.Y)("ComboboxTarget",de,e),{children:a,refProp:i,withKeyboardNavigation:c,withAriaAttributes:u,withExpandedAttribute:m,targetType:b,autoComplete:h}=t,y=(0,r.A)(t,ce);if(!(0,P.v)(a))throw new Error("Combobox.Target component children should be an element or a component that accepts ref. Fragments, str
2ings, numbers and other primitive values are not supported");const f=v(),w=F({targetType:b,withAriaAttributes:u,withKeyboardNavigation:c,withExpandedAttribute:m,onKeyDown:a.props.onKeyDown,autoComplete:h}),A=(0,l.cloneElement)(a,(0,n.A)((0,n.A)({},w),y));return(0,s.jsx)(p.A.Target,{ref:(0,M.pc)(o,f.store.targetRef),children:A})});ue.displayName="@mantine/core/ComboboxTarget";var pe=t(3609);const me=["classNames","styles","unstyled","children","store","vars","onOptionSubmit","onClose","size","dropdownPadding","resetSelectionOnOptionHover","__staticSelector","readOnly"],be={keepMounted:!0,withinPortal:!0,resetSelectionOnOptionHover:!1,width:"target",transitionProps:{transition:"fade",duration:0}},ve=(0,c.V)((e,o)=>{let{size:t,dropdownPadding:n}=o;return{options:{"--combobox-option-fz":(0,i.ny)(t),"--combobox-option-padding":(0,i.YC)(t,"combobox-option-padding")},dropdown:{"--combobox-padding":void 0===n?void 0:(0,a.D)(n),"--combobox-option-fz":(0,i.ny)(t),"--combobox-option-padding":(0,i.YC)(t,"combobox-option-padding")}}});function he(e){const o=(0,d.Y)("Combobox",be,e),{classNames:t,styles:a,unstyled:l,children:i,store:c,vars:m,onOptionSubmit:v,onClose:h,size:y,dropdownPadding:f,resetSelectionOnOptionHover:A,__staticSelector:g,readOnly:x}=o,C=(0,r.A)(o,me),O=(0,pe.B)(),N=c||O,S=(0,u.I)({name:g||"Combobox",classes:w.A,props:o,classNames:t,styles:a,unstyled:l,vars:m,varsResolver:ve});return(0,s.jsx)(b,{value:{getStyles:S,store:N,onOptionSubmit:v,size:y,resetSelectionOnOptionHover:A,readOnly:x},children:(0,s.jsx)(p.A,(0,n.A)((0,n.A)({opened:N.dropdownOpened},C),{},{onChange:e=>!e&&(null===h||void 0===h||h(),void N.closeDropdown()),withRoles:!1,unstyled:l,children:i}))})}he.extend=e=>e,he.classes=w.A,he.displayName="@mantine/core/Combobox",he.Target=ue,he.Dropdown=I,he.Options=se,he.Option=oe,he.Search=ie,he.Empty=z,he.Chevron=C,he.Footer=L,he.Header=J,he.EventsTarget=V,he.DropdownTarget=_,he.Group=Z,he.ClearButton=S,he.HiddenInput=X},7016:(e,o,t)=>{t.d(o,{A:()=>n});var n=(0,t(4648).A)("outline","folder","IconFolder",[["path",{d:"M5 4h4l3 3h7a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-11a2 2 0 0 1 2 -2",key:"svg-0"}]])},7034:(e,o,t)=>{t.d(o,{D:()=>r});var n=t(9379);function r(e){return e.reduce((e,o)=>"group"in o?(0,n.A)((0,n.A)({},e),r(o.items)):(e[o.value]=o,e),{})}},7241:(e,o,t)=>{t.d(o,{l:()=>A});var n=t(9379),r=t(45),s=t(579),a=t(5043),l=t(4632),i=t(4474);var c=t(5903),d=t(9863),u=t(6331),p=t(1432),m=t(7034),b=t(4181),v=t(9418),h=t(3609),y=t(5134);const f=["classNames","styles","unstyled","vars","dropdownOpened","defaultDropdownOpened","onDropdownClose","onDropdownOpen","onFocus","onBlur","onClick","onChange","data","value","defaultValue","selectFirstOptionOnChange","onOptionSubmit","comboboxProps","readOnly","disabled","filter","limit","withScrollArea","maxDropdownHeight","size","searchable","rightSection","checkIconPosition","withCheckIcon","nothingFoundMessage","name","form","searchValue","defaultSearchValue","onSearchChange","allowDeselect","error","rightSectionPointerEvents","id","clearable","clearButtonProps","hiddenInputProps","renderOption","onClear","autoComplete","scrollAreaProps","__defaultRightSection","__clearSection","__clearable","chevronColor"],w={searchable:!1,withCheckIcon:!0,allowDeselect:!0,checkIconPosition:"left"},A=(0,u.P9)((e,o)=>{const t=(0,d.Y)("Select",w,e),{classNames:u,styles:A,unstyled:g,vars:x,dropdownOpened:C,defaultDropdownOpened:O,onDropdownClose:N,onDropdownOpen:S,onFocus:D,onBlur:k,onClick:I,onChange:P,data:E,value:_,defaultValue:j,selectFirstOptionOnChange:T,onOptionSubmit:z,comboboxProps:M,readOnly:R,disabled:F,filter:K,limit:B,withScrollArea:V,maxDropdownHeight:Y,size:G,searchable:L,rightSection:H,checkIconPosition:q,withCheckIcon:Z,nothingFoundMessage:W,name:U,form:J,searchValue:Q,defaultSearchValue:X,onSearchChange:$,allowDeselect:ee,error:oe,rightSectionPointerEvents:te,id:ne,clearable:re,clearButtonProps:se,hiddenInputProps:ae,renderOption:le,onClear:ie,autoComplete:ce,scrollAreaProps:de,__defaultRightSection:ue,__clearSection:pe,__clearable:me,chevronColor:be}=t,ve=(0,r.A)(t,f),he=(0,a.useMemo)(()=>(0,p.d)(E),[E]),ye=(0,a.useMemo)(()=>(0,m.D)(he),[he]),fe=(0,l.B)(ne),[we,Ae,ge]=(0,i.Z)({value:_,defaultValue:j,finalValue:null,onChange:P}),xe="string"===typeof we?ye[we]:void 0,Ce=function(e){const o=(0,a.useRef)(void 0);return(0,a.useEffect)(()=>{o.current=e},[e]),o.current}(xe),[Oe,Ne,Se]=(0,i.Z)({value:Q,defaultValue:X,finalValue:xe?xe.label:"",onChange:$}),De=(0,h.B)({opened:C,defaultOpened:O,onDropdownOpen:()=>{null===S||void 0===S||S(),De.updateSelectedOptionIndex("active",{scrollIntoView:!0})},onDropdownClose:()=>{null===N||void 0===N||N(),De.resetSelectedOption()}}),ke=e=>{Ne(e),De.resetSelectedOption()},{resolvedClassNames:Ie,resolvedStyles:Pe}=(0,c.Y)({props:t,styles:A,classNames:u});(0,a.useEffect)(()=>{T&&De.selectFirstOption()},[T,Oe]),(0,a.useEffect)(()=>{null===_&&ke(""),"string"!==typeof _||!xe||(null===Ce||void 0===Ce?void 0:Ce.value)===xe.value&&(null===Ce||void 0===Ce?void 0:Ce.label)===xe.label||ke(xe.label)},[_,xe]),(0,a.useEffect)(()=>{var e;ge||Se||ke("string"===typeof we&&(null===(e=ye[we])||void 0===e?void 0:e.label)||"")},[E,we]);const Ee=(0,s.jsx)(b.G.ClearButton,(0,n.A)((0,n.A)({},se),{},{onClear:()=>{Ae(null,null),ke(""),null===ie||void 0===ie||ie()}})),_e=re&&!!we&&!F&&!R;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(b.G,(0,n.A)((0,n.A)({store:De,__staticSelector:"Select",classNames:Ie,styles:Pe,unstyled:g,readOnly:R,onOptionSubmit:e=>{null===z||void 0===z||z(e);const o=ee&&ye[e].value===we?null:ye[e],t=o?o.value:null;t!==we&&Ae(t,o),!ge&&ke("string"===typeof t&&(null===o||void 0===o?void 0:o.label)||""),De.closeDropdown()},size:G},M),{},{children:[(0,s.jsx)(b.G.Target,{targetType:L?"input":"button",autoComplete:ce,children:(0,s.jsx)(y.O,(0,n.A)((0,n.A)({id:fe,ref:o,__defaultRightSection:(0,s.jsx)(b.G.Chevron,{size:G,error:oe,unstyled:g,color:be}),__clearSection:Ee,__clearable:_e,rightSection:H,rightSectionPointerEvents:te||(_e?"all":"none")},ve),{},{size:G,__staticSelector:"Select",disabled:F,readOnly:R||!L,value:Oe,onChange:e=>{ke(e.currentTarget.value),De.openDropdown(),T&&De.selectFirstOption()},onFocus:e=>{L&&De.openDropdown(),null===D||void 0===D||D(e)},onBlur:e=>{var o;L&&De.closeDropdown(),ke(null!=we&&(null===(o=ye[we])||void 0===o?void 0:o.label)||""),null===k||void 0===k||k(e)},onClick:e=>{L?De.openDropdown():De.toggleDropdown(),null===I||void 0===I||I(e)},classNames:Ie,styles:Pe,unstyled:g,pointer:!L,error:oe}))}),(0,s.jsx)(v.i,{data:he,hidden:R||F,filter:K,search:Oe,limit:B,hiddenWhenEmpty:!W,withScrollArea:V,maxDropdownHeight:Y,filterOptions:L&&(null===xe||void 0===xe?void 0:xe.label)!==Oe,value:we,checkIconPosition:q,withCheckIcon:Z,nothingFoundMessage:W,unstyled:g,labelId:ve.label?"".concat(fe,"-label"):void 0,"aria-label":ve.label?void 0:ve["aria-label"],renderOption:le,scrollAreaProps:de})]})),(0,s.jsx)(b.G.HiddenInput,(0,n.A)({value:we,name:U,form:J,disabled:F},ae))]})});A.classes=(0,n.A)((0,n.A)({},y.O.classes),b.G.classes),A.displayName="@mantine/core/Select"},7715:(e,o,t)=>{t.d(o,{A:()=>n});var n={dropdown:"m_88b62a41",search:"m_985517d8",options:"m_b2821a6e",option:"m_92253aa5",empty:"m_2530cd1d",header:"m_858f94bd",footer
2:"m_82b967cb",group:"m_254f3e4f",groupLabel:"m_2bb2e9e5",chevron:"m_2943220b",optionsDropdownOption:"m_390b5f4",optionsDropdownCheckIcon:"m_8ee53fc2"}},8432:(e,o,t)=>{t.d(o,{S:()=>i});var n=t(9379),r=t(45),s=t(579),a=t(2932);t(5043);const l=["size","style"];function i(e){let{size:o,style:t}=e,i=(0,r.A)(e,l);const c=void 0!==o?(0,n.A)({width:(0,a.D)(o),height:(0,a.D)(o)},t):t;return(0,s.jsx)("svg",(0,n.A)((0,n.A)({viewBox:"0 0 10 7",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:c,"aria-hidden":!0},i),{},{children:(0,s.jsx)("path",{d:"M4 4.586L1.707 2.293A1 1 0 1 0 .293 3.707l3 3a.997.997 0 0 0 1.414 0l5-5A1 1 0 1 0 8.293.293L4 4.586z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})}))}},9418:(e,o,t)=>{t.d(o,{i:()=>b});var n=t(9379),r=t(579),s=t(8387),a=t(8432),l=t(2267),i=t(4181);function c(e){return"group"in e}function d(e){let{options:o,search:t,limit:n}=e;const r=t.trim().toLowerCase(),s=[];for(let a=0;a<o.length;a+=1){const e=o[a];if(s.length===n)return s;c(e)&&s.push({group:e.group,items:d({options:e.items,search:t,limit:n-s.length})}),c(e)||e.label.toLowerCase().includes(r)&&s.push(e)}return s}function u(e){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Set;if(Array.isArray(e))for(const t of e)if(c(t))u(t.items,o);else{if("undefined"===typeof t.value)throw new Error("[@mantine/core] Each option must have value property");if("string"!==typeof t.value)throw new Error("[@mantine/core] Option value must be a string, other data formats are not supported, got ".concat(typeof t.value));if(o.has(t.value))throw new Error('[@mantine/core] Duplicate options are not supported. Option with value "'.concat(t.value,'" was provided more than once'));o.add(t.value)}}var p=t(7715);function m(e){let{data:o,withCheckIcon:t,value:n,checkIconPosition:l,unstyled:d,renderOption:u}=e;if(!c(o)){const e=function(e,o){return Array.isArray(e)?e.includes(o):e===o}(n,o.value),c=t&&e&&(0,r.jsx)(a.S,{className:p.A.optionsDropdownCheckIcon}),m=(0,r.jsxs)(r.Fragment,{children:["left"===l&&c,(0,r.jsx)("span",{children:o.label}),"right"===l&&c]});return(0,r.jsx)(i.G.Option,{value:o.value,disabled:o.disabled,className:(0,s.A)({[p.A.optionsDropdownOption]:!d}),"data-reverse":"right"===l||void 0,"data-checked":e||void 0,"aria-selected":e,active:e,children:"function"===typeof u?u({option:o,checked:e}):m})}const b=o.items.map(e=>(0,r.jsx)(m,{data:e,value:n,unstyled:d,withCheckIcon:t,checkIconPosition:l,renderOption:u},e.value));return(0,r.jsx)(i.G.Group,{label:o.group,children:b})}function b(e){let{data:o,hidden:t,hiddenWhenEmpty:s,filter:a,search:p,limit:b,maxDropdownHeight:v,withScrollArea:h=!0,filterOptions:y=!0,withCheckIcon:f=!1,value:w,checkIconPosition:A,nothingFoundMessage:g,unstyled:x,labelId:C,renderOption:O,scrollAreaProps:N,"aria-label":S}=e;u(o);const D="string"===typeof p?(a||d)({options:o,search:y?p:"",limit:null!==b&&void 0!==b?b:1/0}):o,k=function(e){if(0===e.length)return!0;for(const o of e){if(!("group"in o))return!1;if(o.items.length>0)return!1}return!0}(D),I=D.map(e=>(0,r.jsx)(m,{data:e,withCheckIcon:f,value:w,checkIconPosition:A,unstyled:x,renderOption:O},c(e)?e.group:e.value));return(0,r.jsx)(i.G.Dropdown,{hidden:t||s&&k,"data-composed":!0,children:(0,r.jsxs)(i.G.Options,{labelledBy:C,"aria-label":S,children:[h?(0,r.jsx)(l.F.Autosize,(0,n.A)((0,n.A)({mah:null!==v&&void 0!==v?v:220,type:"scroll",scrollbarSize:"var(--combobox-padding)",offsetScrollbars:"y"},N),{},{children:I})):I,k&&g&&(0,r.jsx)(i.G.Empty,{children:g})]})})}}}]); 3//# sourceMappingURL=392.0cc2e585.chunk.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.