import{r as l}from"./app-DTeOhhdM.js";import{P as Ie,C as pt,u as dt,h as ft,O as s,f as mt,e as Ce,j as vt,d as p,m as y,c as D,T as yt,S as gt,g as Se,l as ke,B as bt,p as ht,k as Ct,o as q,n as St,V as wt,R as we,U as Ot,Z as re,i as Et}from"./AuthenticatedLayout-DNj-hWy1.js";import{T as It}from"./index.esm-xhUioO7y.js";import{I as kt}from"./inputtext.esm-DvYkLvTo.js";function z(t){"@babel/helpers - typeof";return z=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},z(t)}function xt(t,a){if(z(t)!=="object"||t===null)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var e=o.call(t,a);if(z(e)!=="object")return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return(a==="string"?String:Number)(t)}function Pt(t){var a=xt(t,"string");return z(a)==="symbol"?a:String(a)}function xe(t,a,o){return a=Pt(a),a in t?Object.defineProperty(t,a,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[a]=o,t}function x(){return x=Object.assign?Object.assign.bind():function(t){for(var a=1;a<arguments.length;a++){var o=arguments[a];for(var e in o)Object.prototype.hasOwnProperty.call(o,e)&&(t[e]=o[e])}return t},x.apply(this,arguments)}function ae(t,a){(a==null||a>t.length)&&(a=t.length);for(var o=0,e=new Array(a);o<a;o++)e[o]=t[o];return e}function Tt(t){if(Array.isArray(t))return ae(t)}function At(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Pe(t,a){if(t){if(typeof t=="string")return ae(t,a);var o=Object.prototype.toString.call(t).slice(8,-1);if(o==="Object"&&t.constructor&&(o=t.constructor.name),o==="Map"||o==="Set")return Array.from(t);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return ae(t,a)}}function Dt(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Mt(t){return Tt(t)||At(t)||Pe(t)||Dt()}function Nt(t){if(Array.isArray(t))return t}function Rt(t,a){var o=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(o!=null){var e,T,C,O,R=[],_=!0,L=!1;try{if(C=(o=o.call(t)).next,a!==0)for(;!(_=(e=C.call(o)).done)&&(R.push(e.value),R.length!==a);_=!0);}catch(M){L=!0,T=M}finally{try{if(!_&&o.return!=null&&(O=o.return(),Object(O)!==O))return}finally{if(L)throw T}}return R}}function _t(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $(t,a){return Nt(t)||Rt(t,a)||Pe(t,a)||_t()}var Lt={root:function(a){var o=a.props,e=a.focusedState;return D("p-autocomplete p-component p-inputwrapper",{"p-autocomplete-dd":o.dropdown,"p-autocomplete-multiple":o.multiple,"p-inputwrapper-filled":o.value,"p-inputwrapper-focus":e})},container:function(a){var o=a.props;return D("p-autocomplete-multiple-container p-component p-inputtext",{"p-disabled":o.disabled})},loadingIcon:"p-autocomplete-loader",dropdownButton:"p-autocomplete-dropdown",removeTokenIcon:"p-autocomplete-token-icon",token:"p-autocomplete-token p-highlight",tokenLabel:"p-autocomplete-token-label",inputToken:"p-autocomplete-input-token",input:function(a){var o=a.props;return D("p-autocomplete-input",{"p-autocomplete-dd-input":o.dropdown})},panel:function(a){var o=a.context;return D("p-autocomplete-panel p-component",{"p-input-filled":o&&o.inputStyle==="filled"||q.inputStyle==="filled","p-ripple-disabled":o&&o.ripple===!1||q.ripple===!1})},listWrapper:"p-autocomplete-items-wrapper",list:function(a){var o=a.virtualScrollerOptions,e=a.options;return o?D("p-autocomplete-items",e.className):"p-autocomplete-items"},emptyMessage:"p-autocomplete-item",item:function(a){var o=a.suggestion,e=a.optionGroupLabel;return e?D("p-autocomplete-item",{"p-disabled":o.disabled}):D("p-autocomplete-item",{"p-disabled":o.disabled})},itemGroup:"p-autocomplete-item-group",footer:"p-autocomplete-footer",transition:"p-connected-overlay"},jt=`
@layer primereact {
    .p-autocomplete {
        display: inline-flex;
        position: relative;
    }
    
    .p-autocomplete-loader {
        position: absolute;
        top: 50%;
        margin-top: -.5rem;
    }
    
    .p-autocomplete-dd .p-autocomplete-input {
        flex: 1 1 auto;
        width: 1%;
    }
    
    .p-autocomplete-dd .p-autocomplete-input,
    .p-autocomplete-dd .p-autocomplete-multiple-container {
         border-top-right-radius: 0;
         border-bottom-right-radius: 0;
     }
    
    .p-autocomplete-dd .p-autocomplete-dropdown {
         border-top-left-radius: 0;
         border-bottom-left-radius: 0px;
    }
    
    .p-autocomplete .p-autocomplete-panel {
        min-width: 100%;
    }
    
    .p-autocomplete-panel {
        position: absolute;
        top: 0;
        left: 0;
    }
    
    .p-autocomplete-items {
        margin: 0;
        padding: 0;
        list-style-type: none;
    }
    
    .p-autocomplete-item {
        cursor: pointer;
        white-space: nowrap;
        position: relative;
        overflow: hidden;
    }
    
    .p-autocomplete-multiple-container {
        margin: 0;
        padding: 0;
        list-style-type: none;
        cursor: text;
        overflow: hidden;
        display: flex;
        align-items: center;
        flex-wrap: wrap;
    }
    
    .p-autocomplete-token {
        cursor: default;
        display: inline-flex;
        align-items: center;
        flex: 0 0 auto;
    }
    
    .p-autocomplete-token-icon {
        cursor: pointer;
    }
    
    .p-autocomplete-input-token {
        flex: 1 1 auto;
        display: inline-flex;
    }
    
    .p-autocomplete-input-token input {
        border: 0 none;
        outline: 0 none;
        background-color: transparent;
        margin: 0;
        padding: 0;
        box-shadow: none;
        border-radius: 0;
        width: 100%;
    }
    
    .p-fluid .p-autocomplete {
        display: flex;
    }
    
    .p-fluid .p-autocomplete-dd .p-autocomplete-input {
        width: 1%;
    }
    
    .p-autocomplete-items-wrapper {
        overflow: auto;
    } 
}
`,Y=pt.extend({defaultProps:{__TYPE:"AutoComplete",id:null,appendTo:null,autoFocus:!1,autoHighlight:!1,className:null,completeMethod:null,delay:300,disabled:!1,dropdown:!1,dropdownAriaLabel:null,dropdownAutoFocus:!0,dropdownIcon:null,dropdownMode:"blank",emptyMessage:null,field:null,forceSelection:!1,inputClassName:null,inputId:null,inputRef:null,inputStyle:null,itemTemplate:null,loadingIcon:null,maxLength:null,minLength:1,multiple:!1,name:null,onBlur:null,onChange:null,onClear:null,onClick:null,onContextMenu:null,onDblClick:null,onDropdownClick:null,onFocus:null,onHide:null,onKeyPress:null,onKeyUp:null,onMouseDown:null,onSelect:null,onShow:null,onUnselect:null,optionGroupChildren:null,optionGroupLabel:null,optionGroupTemplate:null,panelClassName:null,panelFooterTemplate:null,panelStyle:null,placeholder:null,readOnly:!1,removeTokenIcon:null,scrollHeight:"200px",selectedItemTemplate:null,selectionLimit:null,showEmptyMessage:!1,size:null,style:null,suggestions:null,tabIndex:null,tooltip:null,tooltipOptions:null,transitionOptions:null,type:"text",value:null,virtualScrollerOptions:null,children:void 0},css:{classes:Lt,styles:jt}});function Oe(t,a){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(t);a&&(e=e.filter(function(T){return Object.getOwnPropertyDescriptor(t,T).enumerable})),o.push.apply(o,e)}return o}function K(t){for(var a=1;a<arguments.length;a++){var o=arguments[a]!=null?arguments[a]:{};a%2?Oe(Object(o),!0).forEach(function(e){xe(t,e,o[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Oe(Object(o)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))})}return t}var Te=l.memo(l.forwardRef(function(t,a){var o=t.ptm,e=t.cx,T=l.useContext(Ie),C=function(c,d){return o(c,K({hostName:t.hostName},d))},O=function(c,d){return C(d,{context:{selected:t.selectedItem.current===c}})},R=function(c){return s.resolveFieldData(c,t.optionGroupLabel)},_=function(){if(t.panelFooterTemplate){var c=s.getJSXElement(t.panelFooterTemplate,t,t.onOverlayHide),d=y({className:e("footer")},C("footer"));return l.createElement("div",d,c)}return null},L=function(c,d,g){var E=t.getOptionGroupChildren(c);return E.map(function(b,I){var f=d+"_"+I,S=t.selectedItem===b,k=t.itemTemplate?s.getJSXElement(t.itemTemplate,b,I):t.field?s.resolveFieldData(b,t.field):b,h=y({role:"option",className:e("item",{optionGroupLabel:t.optionGroupLabel,suggestion:b}),style:g,onClick:function(w){return t.onItemClick(w,b)},"aria-selected":S,"data-group":d,"data-index":I,"data-p-disabled":b.disabled},O(b,"item"));return l.createElement("li",x({key:f},h),k,l.createElement(we,null))})},M=function(c,d){var g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},E={height:g.props?g.props.itemSize:void 0};if(t.optionGroupLabel){var b=t.optionGroupTemplate?s.getJSXElement(t.optionGroupTemplate,c,d):t.getOptionGroupLabel(c),I=L(c,d,E),f=d+"_"+R(c),S=y({className:e("itemGroup"),style:E,"data-p-highlight":!1},C("itemGroup"));return l.createElement(l.Fragment,{key:f},l.createElement("li",S,b),I)}else{var k=t.itemTemplate?s.getJSXElement(t.itemTemplate,c,d):t.field?s.resolveFieldData(c,t.field):c,h=y({index:d,role:"option",className:e("item",{suggestion:c}),style:E,onClick:function(w){return t.onItemClick(w,c)},"aria-selected":t.selectedItem===c,"data-p-disabled":c.disabled},O(c,"item"));return l.createElement("li",x({key:d},h),k,l.createElement(we,null))}},U=function(){return t.suggestions?t.suggestions.map(M):null},Q=function(){if(t.showEmptyMessage&&s.isEmpty(t.suggestions)){var c=t.emptyMessage||ke("emptyMessage"),d=y({className:e("emptyMessage")},C("emptyMesage")),g=y({className:e("list")},C("list"));return l.createElement("ul",g,l.createElement("li",d,c))}if(t.virtualScrollerOptions){var E=K(K({},t.virtualScrollerOptions),{style:K(K({},t.virtualScrollerOptions.style),{height:t.scrollHeight}),autoSize:!0,items:t.suggestions,itemTemplate:function(k,h){return k&&M(k,h.index,h)},contentTemplate:function(k){var h=y({id:t.listId,ref:k.contentRef,style:k.style,className:e("list",{virtualScrollerProps:E,options:k}),role:"listbox"},C("list"));return l.createElement("ul",h,k.children)}});return l.createElement(wt,x({ref:t.virtualScrollerRef},E,{pt:C("virtualScroller"),__parentMetadata:{parent:t.metaData}}))}else{var b=U(),I=y({id:t.listId,className:e("list"),role:"listbox"},C("list")),f=y({className:e("listWrapper"),style:{maxHeight:t.scrollHeight||"auto"}},C("listWrapper"));return l.createElement("div",f,l.createElement("ul",I,b))}},J=function(){var c=K({},t.panelStyle||{}),d=Q(),g=_(),E=y({className:D(t.panelClassName,e("panel",{context:T})),style:c,onClick:function(f){return t.onClick(f)}},C("panel")),b=y({classNames:e("transition"),in:t.in,timeout:{enter:120,exit:100},options:t.transitionOptions,unmountOnExit:!0,onEnter:t.onEnter,onEntering:t.onEntering,onEntered:t.onEntered,onExit:t.onExit,onExited:t.onExited},C("transition"));return l.createElement(St,x({nodeRef:a},b),l.createElement("div",x({ref:a},E),d,g))},B=J();return l.createElement(Ct,{element:B,appendTo:t.appendTo})}));Te.displayName="AutoCompletePanel";function Ee(t,a){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(t);a&&(e=e.filter(function(T){return Object.getOwnPropertyDescriptor(t,T).enumerable})),o.push.apply(o,e)}return o}function oe(t){for(var a=1;a<arguments.length;a++){var o=arguments[a]!=null?arguments[a]:{};a%2?Ee(Object(o),!0).forEach(function(e){xe(t,e,o[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Ee(Object(o)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))})}return t}var Ft=l.memo(l.forwardRef(function(t,a){var o=l.useContext(Ie),e=Y.getProps(t,o),T=l.useState(e.id),C=$(T,2),O=C[0],R=C[1],_=l.useState(!1),L=$(_,2),M=L[0],U=L[1],Q=l.useState(!1),J=$(Q,2),B=J[0],P=J[1],c=l.useState(!1),d=$(c,2),g=d[0],E=d[1],b={props:e,state:{id:O,searching:M,focused:B,overlayVisible:g}},I=Y.setMetaData(b),f=I.ptm,S=I.cx,k=I.sx,h=I.isUnstyled;dt(Y.css.styles,h,{name:"autocomplete"});var j=l.useRef(null),w=l.useRef(null),m=l.useRef(e.inputRef),N=l.useRef(null),le=l.useRef(null),H=l.useRef(null),X=l.useRef(null),Ae=ft({target:j,overlay:w,listener:function(n,r){var u=r.type,v=r.valid;v&&(u==="outside"?!Ne(n)&&A():A())},when:g}),ie=$(Ae,2),De=ie[0],Me=ie[1],Ne=function(n){return e.multiple?n.target===N.current||N.current.contains(n.target):n.target===m.current},ue=function(n){H.current&&clearTimeout(H.current);var r=n.target.value;e.multiple||G(n,r),s.isEmpty(r)?(A(),e.onClear&&e.onClear(n)):r.length>=e.minLength?H.current=setTimeout(function(){W(n,r,"input")},e.delay):A()},W=function(n,r,u){r!=null&&(u==="input"&&r.trim().length===0||e.completeMethod&&(U(!0),e.completeMethod({originalEvent:n,query:r})))},Z=function(n,r,u){if(e.multiple){if(m.current.value="",!ze(r)&&ge()){var v=e.value?[].concat(Mt(e.value),[r]):[r];G(n,v)}}else ce(r),G(n,r);e.onSelect&&e.onSelect({originalEvent:n,value:r}),u||(p.focus(m.current),A())},G=function(n,r){X&&s.deepEquals(X.current,r)||(e.onChange&&e.onChange({originalEvent:n,value:r,stopPropagation:function(){n.stopPropagation()},preventDefault:function(){n.preventDefault()},target:{name:e.name,id:O,value:r}}),X.current=s.isNotEmpty(r)?r:null)},ee=function(n){if(s.isNotEmpty(n)){if(typeof n=="string")return n;if(e.selectedItemTemplate){var r=s.getJSXElement(e.selectedItemTemplate,n);return r||n}else if(e.field){var u=s.resolveFieldData(n,e.field);return u??n}else return n}return""},ce=function(n){m.current.value=ee(n)},se=function(){E(!0)},A=function(){E(!1),U(!1)},Re=function(){re.set("overlay",w.current,o&&o.autoZIndex||q.autoZIndex,o&&o.zIndex.overlay||q.zIndex.overlay),p.addStyles(w.current,{position:"absolute",top:"0",left:"0"}),te()},_e=function(){if(e.autoHighlight&&e.suggestions&&e.suggestions.length){var n=ne().firstChild.firstChild;n&&(!h()&&p.addClass(n,"p-highlight"),n.setAttribute("data-p-highlight",!0))}},Le=function(){De(),e.onShow&&e.onShow()},je=function(){Me()},Fe=function(){re.clear(w.current),e.onHide&&e.onHide()},te=function(){var n=e.multiple?N.current:m.current;p.alignOverlay(w.current,n,e.appendTo||o&&o.appendTo||q.appendTo)},Ge=function(n){Et.emit("overlay-click",{originalEvent:n,target:j.current})},Ke=function(n){e.dropdownAutoFocus&&p.focus(m.current,e.dropdownAutoFocus),e.dropdownMode==="blank"?W(n,"","dropdown"):e.dropdownMode==="current"&&W(n,m.current.value,"dropdown"),e.onDropdownClick&&e.onDropdownClick({originalEvent:n,query:m.current.value})},Ue=function(n,r){var u=e.value[r],v=e.value.filter(function(F,V){return r!==V});G(n,v),e.onUnselect&&e.onUnselect({originalEvent:n,value:u})},pe=function(n){if(g){var r=p.findSingle(w.current,'li[data-p-highlight="true"]');switch(n.which){case 40:if(r){var u=fe(r);u&&(!h()&&p.addClass(u,"p-highlight"),u.setAttribute("data-p-highlight",!0),!h()&&p.removeClass(r,"p-highlight"),r.setAttribute("data-p-highlight",!1),p.scrollInView(ne(),u))}else r=p.findSingle(w.current,"li"),p.getAttribute(r,"data-pc-section")==="itemgroup"&&(r=fe(r)),r&&(!h()&&p.addClass(r,"p-highlight"),r.setAttribute("data-p-highlight",!0));n.preventDefault();break;case 38:if(r){var v=Be(r);v&&(!h()&&p.addClass(v,"p-highlight"),v.setAttribute("data-p-highlight",!0),!h()&&p.removeClass(r,"p-highlight"),r.setAttribute("data-p-highlight",!1),p.scrollInView(ne(),v))}n.preventDefault();break;case 13:r&&(de(n,r),A(),n.preventDefault());break;case 27:A(),n.preventDefault();break;case 9:r&&de(n,r),A();break}}if(e.multiple)switch(n.which){case 8:if(e.value&&e.value.length&&!m.current.value){var F=e.value[e.value.length-1],V=e.value.slice(0,-1);G(n,V),e.onUnselect&&e.onUnselect({originalEvent:n,value:F})}break}},de=function(n,r){if(e.optionGroupLabel){var u=e.suggestions[r.dataset.group];Z(n,ye(u)[r.dataset.index])}else Z(n,e.suggestions[r.getAttribute("index")])},fe=function i(n){var r=n.nextElementSibling;return r?p.getAttribute(r,"data-pc-section")==="itemgroup"?i(r):r:null},Be=function i(n){var r=n.previousElementSibling;return r?p.getAttribute(r,"data-pc-section")==="itemgroup"?i(r):r:null},me=function(n){P(!0),e.onFocus&&e.onFocus(n)},He=function(n){if(e.multiple){m.current.value="";return}var r=s.trim(n.target.value),u=(e.suggestions||[]).find(function(v){var F=e.field?s.resolveFieldData(v,e.field):v;return F&&r===s.trim(F)});u?Z(n,u,!0):(m.current.value="",G(n,null),e.onClear&&e.onClear(n))},ve=function(n){P(!1),e.forceSelection&&He(n),e.onBlur&&e.onBlur(n)},Ve=function(n){p.focus(m.current),e.onClick&&e.onClick(n)},$e=function(n){me(n),!h()&&p.addClass(N.current,"p-focus"),N.current.setAttribute("data-p-focus",!0)},qe=function(n){ve(n),!h()&&p.removeClass(N.current,"p-focus"),N.current.setAttribute("data-p-focus",!1)},ze=function(n){return e.value?e.value.some(function(r){return s.equals(r,n)}):!1},ne=function(){return w.current.firstChild},Je=function(n){return e.optionGroupLabel?s.resolveFieldData(n,e.optionGroupLabel):n},ye=function(n){return s.resolveFieldData(n,e.optionGroupChildren)},ge=function(){return!e.value||!e.selectionLimit||e.value.length<e.selectionLimit};l.useEffect(function(){s.combinedRefs(m,e.inputRef)},[m,e.inputRef]),mt(function(){O||R(Ot()),e.autoFocus&&p.focus(m.current,e.autoFocus),te()}),Ce(function(){M&&(s.isNotEmpty(e.suggestions)||e.showEmptyMessage?se():A(),U(!1))},[e.suggestions]),Ce(function(){m.current&&!e.multiple&&ce(e.value),g&&te()}),vt(function(){H.current&&clearTimeout(H.current),re.clear(w.current)}),l.useImperativeHandle(a,function(){return{props:e,search:W,show:se,hide:A,focus:function(){return p.focus(m.current)},getElement:function(){return j.current},getOverlay:function(){return w.current},getInput:function(){return m.current},getVirtualScroller:function(){return le.current}}});var Xe=function(){var n=ee(e.value),r=g?O+"_list":null;return l.createElement(kt,x({ref:m,id:e.inputId,type:e.type,name:e.name,defaultValue:n,role:"combobox","aria-autocomplete":"list","aria-controls":r,"aria-haspopup":"listbox","aria-expanded":g,className:D(e.inputClassName,S("input")),style:e.inputStyle,autoComplete:"off",readOnly:e.readOnly,required:e.required,disabled:e.disabled,placeholder:e.placeholder,size:e.size,maxLength:e.maxLength,tabIndex:e.tabIndex,onBlur:ve,onFocus:me,onChange:ue,onMouseDown:e.onMouseDown,onKeyUp:e.onKeyUp,onKeyDown:pe,onKeyPress:e.onKeyPress,onContextMenu:e.onContextMenu,onClick:e.onClick,onDoubleClick:e.onDblClick,pt:f("input")},he,{__parentMetadata:{parent:b}}))},We=function(){return s.isNotEmpty(e.value)?e.value.map(function(n,r){var u=r+"multi-item",v=y({className:S("removeTokenIcon"),onClick:function(st){return Ue(st,r)}},f("removeTokenIcon")),F=e.removeTokenIcon||l.createElement(It,v),V=!e.disabled&&Se.getJSXIcon(F,oe({},v),{props:e}),ut=y({className:S("token")},f("token")),ct=y({className:S("tokenLabel")},f("tokenLabel"));return l.createElement("li",x({key:u},ut),l.createElement("span",ct,ee(n)),V)}):null},Ze=function(n){var r=g?O+"_list":null,u=y({className:S("inputToken")},f("inputToken")),v=y(oe({id:e.inputId,ref:m,"aria-autocomplete":"list","aria-controls":r,"aria-expanded":g,"aria-haspopup":"listbox",autoComplete:"off",className:e.inputClassName,disabled:e.disabled,maxLength:e.maxLength,name:e.name,onBlur:qe,onChange:n?ue:void 0,onFocus:$e,onKeyDown:n?pe:void 0,onKeyPress:e.onKeyPress,onKeyUp:e.onKeyUp,placeholder:n?e.placeholder:void 0,readOnly:e.readOnly||!n,required:e.required,role:"combobox",style:e.inputStyle,tabIndex:e.tabIndex,type:e.type},he),f("input"));return l.createElement("li",u,l.createElement("input",v))},Ye=function(){var n=ge(),r=We(),u=Ze(n),v=y({ref:N,className:S("container"),onClick:n?Ve:void 0,onContextMenu:e.onContextMenu,onMouseDown:e.onMouseDown,onDoubleClick:e.onDblClick,"data-p-focus":B,"data-p-disabled":e.disabled},f("container"));return l.createElement("ul",v,r,u)},Qe=function(){if(e.dropdown){var n=e.dropdownAriaLabel||e.placeholder||ke("choose");return l.createElement(bt,{type:"button",icon:e.dropdownIcon||l.createElement(ht,null),className:S("dropdownButton"),disabled:e.disabled,onClick:Ke,"aria-label":n,pt:f("dropdownButton"),__parentMetadata:{parent:b}})}return null},et=function(){if(M){var n=y({className:S("loadingIcon")},f("loadingIcon")),r=e.loadingIcon||l.createElement(gt,x({},n,{spin:!0})),u=Se.getJSXIcon(r,oe({},n),{props:e});return u}return null},tt=function(){return e.multiple?Ye():Xe()},nt=O+"_list",rt=s.isNotEmpty(e.tooltip),be=Y.getOtherProps(e),he=s.reduceKeys(be,p.ARIA_PROPS),ot=et(),at=tt(),lt=Qe(),it=y({id:O,ref:j,style:e.style,className:D(e.className,S("root",{focusedState:B}))},be,f("root"));return l.createElement(l.Fragment,null,l.createElement("span",it,at,ot,lt,l.createElement(Te,x({hostName:"AutoComplete",ref:w,virtualScrollerRef:le},e,{listId:nt,onItemClick:Z,selectedItem:X,onClick:Ge,getOptionGroupLabel:Je,getOptionGroupChildren:ye,in:g,onEnter:Re,onEntering:_e,onEntered:Le,onExit:je,onExited:Fe,ptm:f,cx:S,sx:k}))),rt&&l.createElement(yt,x({target:j,content:e.tooltip},e.tooltipOptions,{pt:f("tooltip")})))}));Ft.displayName="AutoComplete";export{Ft as A};
