(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(".sp-result-message{padding:20px 0;text-align:center;font-weight:700;color:#999}.sp-container{min-width:300px;display:inline-flex;overflow:hidden;flex-direction:column;font-family:Helvetica Neue,Helvetica,Arial,PingFang SC,Hiragino Sans GB,Heiti SC,Microsoft YaHei,WenQuanYi Micro Hei,sans-serif}.sp-message{display:flex;align-items:center;padding:10px 0;background-color:#e4eaee;color:#000;flex-grow:1}.sp-message .bi-chat-left-dots{font-size:1.2rem;margin:0 1rem}.sp-message .sp-message-body{font-size:14px;line-height:1;flex-wrap:wrap;max-width:15rem}.sp-message-slide-enter-active,.sp-message-slide-leave-active{transition:opacity .3s}.sp-message-slide-enter,.sp-message-slide-leave-to{opacity:0}.sp-message-slide-enter-to,.sp-message-slide-leave{opacity:1}.sp-icon{width:1em;height:1em}.sp-icon.sp-icon-small{font-size:1rem}.sp-icon.sp-icon-medium{font-size:1.3rem}.sp-circle-btn{width:20px;height:20px;font-size:14px;line-height:1;display:inline-flex;justify-content:center;align-items:center;cursor:pointer;color:#aaa;transition:all .3s ease;border-radius:50%}.sp-circle-btn:hover{color:#000}.sp-circle-btn.sp-circle-btn--disabled,.sp-circle-btn.sp-circle-btn--disabled:hover{cursor:default;color:#eee}.sp-circle-btn.sp-circle-btn--small{width:16px;height:16px;font-size:12px}.sp-circle-btn.sp-circle-btn--large{width:28px;height:28px;font-size:16px}.sp-search{display:flex;align-items:center;padding:.5rem 0;transition:all .3s ease}.sp-search .sp-search-container{display:flex;align-items:center;flex-grow:1;padding:0;padding-left:.7rem;transition:all .3s ease}.sp-search .sp-search-container .sp-search-input{border:0;border-radius:50rem;background-color:transparent;margin-left:5px;font-size:14px;line-height:1.43;padding:4px 6px;box-sizing:border-box;outline:none!important;color:#333;font-weight:600;flex-grow:1;transition:all .3s ease}.sp-search .sp-search-container .sp-search-input.sp-search-input--rtl{direction:rtl}.sp-search .sp-search-container .sp-search-input::-moz-placeholder{color:#aaa;font-weight:500}.sp-search .sp-search-container .sp-search-input::placeholder{color:#aaa;font-weight:500}.sp-search .sp-search-container .sp-icon-loading{opacity:.5}.sp-search .sp-search-container .bi-search,.sp-search .sp-search-container .bi-x-lg{transition:all .3s ease;color:#aaa}.sp-search .sp-search-container .bi-search.sp-search-in-focus,.sp-search .sp-search-container .bi-x-lg.sp-search-in-focus{color:#000}.sp-search .sp-search-container .bi-x-lg{cursor:pointer}.sp-search .sp-search-container .bi-x-lg:hover{color:#000}.sp-search .sp-search-control{display:inline-flex;transition:all .3s ease;padding:0 .5rem}.sp-list{min-width:300px;max-height:320px;overflow-y:auto;padding:0 .3rem;transition:all .3s ease}.sp-list .sp-list-item{display:flex;align-items:center;justify-content:space-between;line-height:1.43;font-size:14px;text-align:left;overflow:hidden;white-space:nowrap;margin:0;padding:.25rem .5rem;color:#666;cursor:pointer;transition:all .2s ease}.sp-list .sp-list-item.sp-over{background-color:#f6f8fa!important;color:#000!important;border-radius:.4rem}.sp-list .sp-list-item.sp-selected{color:#ccc;cursor:default}.sp-list .sp-list-item.sp-rtl{direction:rtl;text-align:right}.sp-table{padding:0 .3rem;min-width:300px;max-height:320px;overflow-y:auto}.sp-table table{width:100%;border-spacing:0}.sp-table table td,.sp-table table th{font-size:14px;line-height:1.43;border:0!important}.sp-table table th{padding:0 8px 5px;font-weight:600;font-size:15px;color:#333;text-align:left}.sp-table table td{padding:.25rem .5rem;color:#666;cursor:pointer}.sp-table table tbody tr.sp-over td{background-color:#f6f8fa!important;color:#000!important}.sp-table table tbody tr.sp-over td:first-child{border-top-left-radius:.4rem;border-bottom-left-radius:.4rem}.sp-table table tbody tr.sp-over td:last-child{border-top-right-radius:.4rem;border-bottom-right-radius:.4rem}.sp-table table tbody tr.sp-selected td{color:#ccc;cursor:default}.sp-table table thead .sp-rtl th,.sp-table table tbody .sp-rtl td{direction:rtl;text-align:right}.sp-pagination{display:flex;justify-content:space-between;align-items:center;padding:5px 10px}.sp-pagination .sp-page-info{line-height:1;color:#0000004d;font-size:14px;font-weight:600;margin-right:10px}.sp-pagination .sp-page-control{padding:0;margin:0}.sp-pagination .sp-page-control .sp-page-button{display:inline-flex}.sp-pagination .sp-page-control .sp-page-button a{display:inline-flex;padding:7px;font-size:14px;color:#333;text-decoration:none;cursor:pointer;line-height:1;background:transparent;transition:all .3s ease;border-radius:.6rem}.sp-pagination .sp-page-control .sp-page-button a:hover{color:#000;background-color:#f1f1f1}.sp-pagination .sp-page-control .sp-page-button.sp-page-disabled a{color:#ddd;font-weight:400;background-color:transparent;cursor:default}.sp-trigger-container{display:flex;align-items:center;justify-content:space-between;flex-grow:1;padding:6px 12px 6px 6px;background-color:#fff;border:1px solid #ddd;border-radius:.3rem;font-size:14px;line-height:1.42857143;outline:0!important;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;transition:all .2s ease}.sp-trigger-container:hover{border:1px solid #aaa}.sp-trigger-container.sp-disabled,.sp-trigger-container.sp-disabled:hover{border:1px solid #eee;background-color:#eee;cursor:default;color:#aaa}.sp-trigger-container.sp-disabled .sp-select,.sp-trigger-container.sp-disabled .sp-chips,.sp-trigger-container.sp-disabled:hover .sp-select,.sp-trigger-container.sp-disabled:hover .sp-chips{color:#aaa;background-color:#eee}.sp-trigger-container.sp-disabled .sp-chip,.sp-trigger-container.sp-disabled:hover .sp-chip{background-color:#d6d6d6!important;color:#666!important}.sp-trigger-container .bi-chevron-down{transition:transform .2s ease;margin-left:.5rem;font-size:1rem;color:#666}.sp-trigger-container.sp-opened{box-shadow:3px 2px 6px #0000004d;border:1px solid #666;color:#000}.sp-trigger-container.sp-opened .bi-chevron-down{transform:rotate(180deg)}.sp-trigger-container.sp-opened:hover{border:1px solid #666}.sp-trigger-container .sp-placeholder{color:#aaa;padding:5px;line-height:1}.sp-trigger-container .sp-trigger{display:flex;align-items:center;flex-wrap:wrap}.sp-trigger-container .sp-trigger.sp-select{justify-content:space-between;flex-grow:1}.sp-trigger-container .sp-trigger.sp-select .sp-select-content{padding:5px;line-height:1.143;color:#666}.sp-trigger-container .sp-trigger.sp-chips{gap:.5rem}.sp-trigger-container .sp-trigger .sp-chip{border-radius:.3rem;background-color:#eee;color:#666;display:inline-flex;align-items:center;padding:5px 7px;transition:all .2s ease}.sp-trigger-container .sp-trigger .sp-chip--body{display:inline-flex;line-height:1.143;margin-right:5px}.sp-trigger-container .sp-trigger .sp-chip:hover{background-color:#f7f7f7;color:#000}")),document.head.appendChild(e)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}})(); (function(B,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],t):(B=typeof globalThis<"u"?globalThis:B||self,t(B.VSelectpage={},B.Vue))})(this,function(B,t){"use strict";const[U,Z,G,W,ee,te]=[37,38,39,40,13,27],Ce=[U,Z,G,W,ee,te],L=-1,ne=0,$e=0,N=1,xe=10,oe="first",K="previous",X="next",le="last",w="page_num",S="page_count",C="row_count",$="max_select_limit",x="selected_count",[Pe,D,Ie,Ae,Te,ke,Ee,Be,ze,Oe,Le,Ne,Me,Ve]=["zh-chs","en","ja","ar","es","de","ro","ru","fr","pt-br","pl","nl","zh-cht","tr"],F={[Pe]:{next:"下一页",prev:"上一页",first:"首页",last:"尾页",pageInfo:`第 ${w}/${S} 页(共 ${C} 条记录)`,notFound:"无查询结果",clear:"清除内容",clearAll:"清除全部已选择项目",maxSelected:`最多只能选择 ${$} 个项目`,placeholder:"请选择一个项目",selectedCount:`已选择 ${x} 个项目`,search:"搜索"},[D]:{next:"Next page",prev:"Previous page",first:"First page",last:"Last page",pageInfo:`Page ${w} of ${S} (${C} records)`,notFound:"Data not found",clear:"Clear content",clearAll:"Clear all selected",maxSelected:`You can only select up to ${$} items`,placeholder:"Select an option",selectedCount:`${x} items selected`,search:"Search"},[Ie]:{next:"次へ",prev:"前へ",first:"最初のページへ",last:"最後のページへ",pageInfo:`${w}/${S} 件 (全 ${C} つ記録)`,notFound:"(0 件)",clear:"コンテンツをクリアする",clearAll:"選択した項目をクリアする",maxSelected:`最多で ${$} のプロジェクトを選ぶことしかできません`,placeholder:"プロジェクトを選択してください",selectedCount:`${x} アイテムが選択されました`,search:"検索"},[Ae]:{next:"التالي",prev:"السابق",first:"الاول",last:"الأخير",pageInfo:`صفحة ${w}/${S} (${C} سجلات)`,notFound:"لا يوجد نتائج",clear:"محو المحتوى",clearAll:"إلغاء التحديد",maxSelected:`يمكنك فقط تحديد (${$}) عناصر`,placeholder:"رجاء حدد الخيار",selectedCount:`تم تحديد (${x}) عناصر`,search:"يبحث"},[Te]:{next:"Siguiente página",prev:"Pagina anterior",first:"Primera página",last:"última página",pageInfo:`Página ${w}/${S} (${C} registros)`,notFound:"no encontrado",clear:"Borrar contenido",clearAll:"Borrar todo lo seleccionado",maxSelected:`Solo puedes seleccionar hasta ${$} items`,placeholder:"Seleccione una opción",selectedCount:`${x} items Seleccionado`,search:"Buscar"},[ke]:{next:"Nächste Seite",prev:"Vorherige Seite",first:"Erste Seite",last:"Letzte Seite",pageInfo:`Seite ${w}/${S} (${C} Einträge)`,notFound:"Nicht gefunden",clear:"Inhalt löschen",clearAll:"Alle ausgewählten löschen",maxSelected:`Sie können nur bis zu ${$} Elemente auswählen`,placeholder:"Wählen",selectedCount:`${x} Elemente ausgewählt`,search:"Suchen"},[Ee]:{next:"Pagina următoare",prev:"Pagina precedentă",first:"Prima pagină",last:"Ultima pagină",pageInfo:`Pagina ${w}/${S} (${C} înregistrări)`,notFound:"nu a fost găsit",clear:"Șterge conținutul",clearAll:"Șterge înregistrările selectate",maxSelected:`Poți selecta până la ${$} înregistrări`,placeholder:"Selectează o înregistrare",selectedCount:`${x} înregistrări selectate`,search:"Căutare"},[Be]:{next:"Вперед",prev:"Назад",first:"В начало",last:"В конец",pageInfo:`Стр. ${w}/${S} (всего - ${C})`,notFound:"Нет данных",clear:"Очистить",clearAll:"Очистить выбранное",maxSelected:`Нельзя выбрать более ${$} значений`,placeholder:"Выберите значение",selectedCount:`${x} - выбрано`,search:"Поиск"},[ze]:{next:"Page suivante",prev:"Page précédente",first:"Première page",last:"Dernière page",pageInfo:`Page ${w}/${S} (${C} lignes)`,notFound:"Aucun résultat",clear:"Effacer",clearAll:"Tout déselectionner",maxSelected:`Vous ne pouvez pas sélectionner plus de ${$} élements`,placeholder:"Sélectionnez une option",selectedCount:`${x} éléments sélectionnés`,search:"Recherche"},[Oe]:{next:"Página seguinte",prev:"Página anterior",first:"Primera página",last:"Última página",pageInfo:`Página ${w}/${S} (${C} registros)`,notFound:"não encontrado",clear:"Apagar conteúdo",clearAll:"Apagar itens selecionados",maxSelected:`Máximo permitido ${$} itens`,placeholder:"Selecione uma opção",selectedCount:`${x} itens selecionados`,search:"Procurar"},[Le]:{next:"Następna",prev:"Poprzednia",first:"Pierwsza",last:"Ostatnia",pageInfo:`Strona ${w}/${S} (${C} rekordów)`,notFound:"Nic nie znaleziono",clear:"Wyczyść",clearAll:"Usuń wszystkie zaznaczone",maxSelected:`Możesz zaznaczyć maksymalnie ${$}`,placeholder:"Wybierz z listy",selectedCount:`${x} zaznaczonych`,search:"Szukaj"},[Ne]:{next:"Volgende pagina",prev:"Vorige pagina",first:"Eerste pagina",last:"Laatste pagina",pageInfo:`Pagina ${w}/${S} (${C} items)`,notFound:"Niet gevonden",clear:"Wissen",clearAll:"Wis selectie",maxSelected:`Je kunt maar ${$} items selecteren`,placeholder:"Kies een optie",selectedCount:`${x} Items geselecteerd`,search:"Zoekopdracht"},[Me]:{next:"下一頁",prev:"上一頁",first:"首頁",last:"尾頁",pageInfo:`第 ${w}/${S} 頁(共 ${C} 條記錄)`,notFound:"無查詢結果",clear:"清除內容",clearAll:"清除全部已選擇項目",maxSelected:`最多只能選擇 ${$} 個項目`,placeholder:"請選擇一個項目",selectedCount:`已選擇 ${x} 個項目`,search:"搜索"},[Ve]:{next:"Sonraki",prev:"Önceki",first:"İlk",last:"Son",pageInfo:"Sayfa page_num/page_count ( row_count kayıt )",notFound:"Bulunamadı",clear:"İçeriği temizle",clearAll:"Tüm seçilenleri bırak",maxSelected:"Sadece max_selected_limit kadar seçim yapabilirsin.",placeholder:"Seçim yapınız.",selectedCount:"selected_count seçildi.",search:"Aramak"}};function je(e){if(!e)return F[D];const n=String(e).toLowerCase();return Object.hasOwn(F,n)?F[n]:F[D]}function q(e=3e3){let n;return o=>{clearTimeout(n),n=setTimeout(o,e)}}function M(e){return!e||!Object.hasOwn(e,"multiple")?!1:typeof e.multiple=="boolean"?e.multiple:e.multiple===""}function De(e){return[Z,W].includes(e)}function Fe(e){return[U,G].includes(e)}function He(e){return ee===e}function Re(e){return te===e}function Ue(e){e&&e.focus({preventScroll:!0})}function Y(e){return Array.isArray(e)?!e.length:!0}function ae(e){return typeof e=="string"?e:typeof e=="number"?`${e}px`:""}const re=()=>({list:{type:Array,default:void 0},highlightIndex:{type:Number,default:L}}),ie=()=>["select","set-highlight"];function Ze(e,n){const o=t.ref([]),i=t.computed(()=>o.value.length);function a(d){return o.value.length?o.value.some(f=>f[e.keyProp]===d[e.keyProp]):!1}function r(d){return!o.value.length||typeof d>"u"?!1:o.value.some(f=>f[e.keyProp]===d)}function c(d){const f=new Set(d);return f.size!==o.value.length?!1:Array.from(f).every(r)}function u(d){if(!a(d)){if(e.multiple){g([...o.value,d]);return}g([d])}}function s(){n("remove",o.value),g([])}function l(d){n("remove",[d]),g(o.value.filter(f=>f[e.keyProp]!==d[e.keyProp]))}function g(d,f=!0){o.value=d,f&&n("update:modelValue",d.map(y=>y[e.keyProp])),n("selection-change",d)}return{selected:o,selectedCount:i,isItemSelected:a,selectItem:u,removeItem:l,removeAll:s,setSelected:g,isKeysEqualToSelected:c}}function Ge(e,n,o){const i=t.ref(L);function a(l){i.value=l}function r(){i.value!==L&&i.value!==0&&(i.value-=1)}function c(){Y(o.value)||i.value!==o.value.length-1&&(i.value+=1)}function u(l){if(l===Z)return r();if(l===W)return c()}function s(){return i.value!==L}return{highlightIndex:i,setItemHighlight:a,highlightNavigation:u,isSomeRowHighlight:s}}function se(e){return Ce.includes(e)}function ce(){return{modelValue:{type:Array,default:void 0},placeholder:{type:String,default:""},multiple:{type:Boolean,default:!1},language:{type:String,default:D},keyProp:{type:String,default:"id"},labelProp:{type:[String,Function],default:"name"},pageSize:{type:Number,default:xe},max:{type:Number,default:ne,validator:e=>e>=0},pagination:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},width:{type:[String,Number],default:void 0},debounce:{type:Number,default:300}}}function de(){return{disabled:{type:Boolean,default:!1},customTriggerClass:{type:String,default:""},customContainerClass:{type:String,default:""}}}function ue(){return["update:modelValue","fetch-data","fetch-selected-data","selection-change","remove","close-dropdown","adjust-dropdown"]}function We(e,n){const o=je(e.language),{selected:i,selectedCount:a,isItemSelected:r,removeAll:c,removeItem:u,selectItem:s,setSelected:l,isKeysEqualToSelected:g}=Ze(e,n),d=t.ref(""),f=t.ref(""),y=t.ref(N),_=t.ref(0),v=t.ref([]),m=t.ref(!1),I=q(),A=()=>Y(v.value),p=h=>{if(!h||!Object.keys(h).length)return"";switch(typeof e.labelProp){case"string":return h[e.labelProp];case"function":return e.labelProp(h)}},P=h=>{if(e.max===ne)return s(h);if(i.value.length===e.max){f.value=o.maxSelected.replace($,e.max),I(()=>{f.value=""});return}s(h)},T=()=>{m.value=!0;const h={search:d.value,pageNumber:y.value,pageSize:e.pagination?e.pageSize:$e};n("fetch-data",h,(E,V)=>{Array.isArray(E)&&(v.value=E,_.value=typeof V=="number"?V:0,t.nextTick(()=>{m.value=!1}))})},k=()=>{const{modelValue:h}=e;if(Array.isArray(h)){if(!e.multiple&&h.length>1){console.warn('Invalid prop: Only one key can be passed to prop "modelValue/v-model" in single selection mode({ multiple: false }).');return}if(!h.length){l([],!1);return}g(h)||n("fetch-selected-data",h,E=>{Array.isArray(E)&&l(E,h.length!==E.length)})}};return t.watch(d,()=>{y.value=N,T()}),t.watch(()=>e.modelValue,k),t.onMounted(()=>{T(),Y(e.modelValue)||k()}),t.provide("keyProp",e.keyProp),t.provide("rtl",e.rtl),t.provide("pageSize",e.pageSize),t.provide("debounce",e.debounce),t.provide("multiple",e.multiple),t.provide("loading",m),t.provide("language",o),t.provide("renderCell",p),t.provide("isItemSelected",r),t.provide("selectedCount",a),t.provide("removeAll",c),t.provide("removeItem",u),{selected:i,query:d,message:f,currentPage:y,totalRows:_,lang:o,list:v,renderCell:p,isDataEmpty:A,isItemSelected:r,selectedCount:a,selectItem:P,removeAll:c,removeItem:u,fetchData:T}}function O(){return{keyProp:t.inject("keyProp"),renderCell:t.inject("renderCell"),rtl:t.inject("rtl"),isItemSelected:t.inject("isItemSelected"),pageSize:t.inject("pageSize"),language:t.inject("language"),debounce:t.inject("debounce"),multiple:t.inject("multiple"),loading:t.inject("loading"),selectedCount:t.inject("selectedCount"),removeAll:t.inject("removeAll"),removeItem:t.inject("removeItem")}}const mn="";function Ke(e,n,o,i){const a=t.computed(()=>Math.ceil(o.value/e.pageSize)),r=t.computed(()=>n.value===N),c=t.computed(()=>n.value===a.value),u=t.computed(()=>i.pageInfo.replace(w,n.value).replace(S,a.value).replace(C,o.value)),s=function(d){switch(d){case oe:return N;case K:return n.value-1;case X:return n.value+1;case le:return a.value}},l=function(d){let f=s(d);typeof f>"u"||(fa.value&&(f=a.value),f!==n.value&&(n.value=f))};return{paginationInfo:u,isFirstPage:r,isLastPage:c,switchPage:l,pagingNavigation:d=>{if(d===U)return l(K);if(d===G)return l(X)}}}(function(){try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(".animate-down-enter-from,.animate-down-leave-to{transform:scale(.95);opacity:0}.animate-down-enter-active{transform-origin:top left;transition-property:opacity,transform;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.animate-down-leave-active{transform-origin:top left;transition-property:opacity,transform;transition-duration:75ms;transition-timing-function:cubic-bezier(.4,0,.2,1)}.animate-up-enter-from,.animate-up-leave-to{transform:scale(.95);opacity:0}.animate-up-enter-active{transform-origin:bottom left;transition-property:opacity,transform;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.animate-up-leave-active{transform-origin:bottom left;transition-property:opacity,transform;transition-duration:75ms;transition-timing-function:cubic-bezier(.4,0,.2,1)}.v-dropdown-trigger{display:inline-flex}.v-dropdown-trigger.v-dropdown-trigger--full-width{display:flex}.v-dropdown-container{-webkit-font-smoothing:subpixel-antialiased;backface-visibility:hidden;display:inline-flex;margin:0;padding:0;position:absolute;top:0;left:0;border:1px solid #D6D7D7;box-sizing:border-box;background-color:#fff;border-radius:.3rem;overflow:hidden;z-index:3000;will-change:opacity,transform,top,left;box-shadow:0 15px 25px #0003}.v-dropdown-container.v-dropdown-no-border{border:0;border-radius:.5rem;box-shadow:0 10px 30px #0006}")),document.head.appendChild(e)}}catch(n){console.error("vite-plugin-css-injected-by-js",n)}})();function Xe(){const e=window.pageXOffset!==void 0,n=(document.compatMode||"")==="CSS1Compat";return{x:e?window.pageXOffset:n?document.documentElement.scrollLeft:document.body.scrollLeft,y:e?window.pageYOffset:n?document.documentElement.scrollTop:document.body.scrollTop}}function qe(e){return window.getComputedStyle(e).display==="none"}function ge(e){if(qe(e)){e.style.visibility="hidden",e.style.display="inline-block";const n=e.getBoundingClientRect();return e.style.visibility="visible",e.style.display="none",n}return e.getBoundingClientRect()}const fe="click",Ye="hover",Je="contextmenu",pe=150,J=5;function Qe(e,n){return typeof e.animated=="string"?e.animated:e.animated?n.value?"animate-up":"animate-down":""}function Q(e){return{isTriggerByClick:e.trigger===fe,isTriggerByHover:e.trigger===Ye,isTriggerByContextmenu:e.trigger===Je}}function et(e,n,o,i){const{isTriggerByContextmenu:a}=Q(e),r=window.pageYOffset,c=document.documentElement.clientHeight,u=a?n:o.top+r;let s=a?n:o.top+o.height+J+r,l=!1,g=!1,d=!1;return s+i.height>r+c&&(l=!0),u-J-i.heightr+c?g:s;case"center":return l+i.width>r+c?g:go("visible-change",p));function _(){e.disabled||("trigger"in n&&I(),f?(window.clearTimeout(s.value),s.value=window.setTimeout(()=>{a.value=!0},pe)):a.value=!0)}function v(p=!1){e.disabled||!e.toggle&&!p||(f?(window.clearTimeout(s.value),s.value=window.setTimeout(()=>{a.value=!1},pe)):a.value=!1)}function m(){a.value?v():_()}function I(){const p=ge(l.value),P=ge(g.value),T=et(e,c.y,p,P),k=tt(e,c.x,p,P);u.value=T.dropUp,r.top=`${T.top}px`,r.left=`${k}px`}function A(p){if(!a.value)return;const P=p.composedPath().some(T=>T===l.value);P&&!e.toggle&&!y||(!P||P&&y)&&v(!0)}return t.onMounted(()=>{typeof e.width<"u"&&(r.width=e.width+"px"),document.body.addEventListener("mousedown",A)}),t.onBeforeUnmount(()=>{document.body.removeEventListener("mousedown",A),g.value&&g.value.remove()}),t.onUnmounted(()=>{l.value&&l.value.remove()}),i({display:_,close:v,toggleVisible:m,adjust:I,container:g,visible:a}),()=>{const p=[];"trigger"in n&&p.push(n.trigger({visible:a,disabled:e.disabled}));const P={class:ot(e),style:r,ref:g,onMousedown:h=>h.stopPropagation()};f&&(P.onMouseenter=_,P.onMouseleave=v);const T=t.withDirectives(t.h("div",P,n.default&&n.default()),[[t.vShow,a.value]]);p.push(t.h(t.Teleport,{to:"body"},[t.h(t.Transition,{name:Qe(e,u)},()=>[T])]));const k={class:lt(e),ref:l};return f?(k.onMouseenter=_,k.onMouseleave=v):d?k.onClick=h=>{e.manual||(h.stopPropagation(),m())}:y&&(k.onContextmenu=h=>{if(e.manual)return;h.stopPropagation(),h.preventDefault();const E=nt(h);c.x=E.x,c.y=E.y,_()}),t.h("div",k,p)}}}),bn="",j={name:"SelectPageCircleButton",props:{size:{type:String,default:""},disabled:{type:Boolean,default:!1},bgColor:{type:String,default:"transparent"},hoverBgColor:{type:String,default:"#f1f1f1"}},setup(e,{slots:n}){const o=t.ref(""),i=t.computed(()=>({"sp-circle-btn--disabled":e.disabled,"sp-circle-btn--small":e.size==="small","sp-circle-btn--large":e.size==="large"})),a=t.computed(()=>({"font-size":e.fontSize,"background-color":e.disabled?"transparent":o.value}));return()=>{const r={class:["sp-circle-btn",i.value],style:a.value,onMouseenter(){o.value=e.hoverBgColor},onMouseleave(){o.value=e.bgColor}};return t.h("div",r,n.default&&n.default())}}},z=(e,n)=>{const o=e.__vccOpts||e;for(const[i,a]of n)o[i]=a;return o},rt={},it={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",class:"sp-icon bi bi-search",viewBox:"0 0 16 16"},st=[t.createElementVNode("path",{d:"M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z"},null,-1)];function ct(e,n){return t.openBlock(),t.createElementBlock("svg",it,st)}const dt=z(rt,[["render",ct]]),ut={},gt={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",class:"sp-icon bi bi-x-lg",viewBox:"0 0 16 16"},ft=[t.createElementVNode("path",{d:"M2.146 2.854a.5.5 0 1 1 .708-.708L8 7.293l5.146-5.147a.5.5 0 0 1 .708.708L8.707 8l5.147 5.146a.5.5 0 0 1-.708.708L8 8.707l-5.146 5.147a.5.5 0 0 1-.708-.708L7.293 8 2.146 2.854Z"},null,-1)];function pt(e,n){return t.openBlock(),t.createElementBlock("svg",gt,ft)}const H=z(ut,[["render",pt]]),ht={},mt={width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",class:"sp-icon sp-icon-loading"},bt=[t.createElementVNode("path",{d:"M12,1A11,11,0,1,0,23,12,11,11,0,0,0,12,1Zm0,19a8,8,0,1,1,8-8A8,8,0,0,1,12,20Z",opacity:".25"},null,-1),t.createElementVNode("path",{d:"M12,4a8,8,0,0,1,7.89,6.7A1.53,1.53,0,0,0,21.38,12h0a1.5,1.5,0,0,0,1.48-1.75,11,11,0,0,0-21.72,0A1.5,1.5,0,0,0,2.62,12h0a1.53,1.53,0,0,0,1.49-1.3A8,8,0,0,1,12,4Z"},[t.createElementVNode("animateTransform",{attributeName:"transform",type:"rotate",dur:"0.75s",values:"0 12 12;360 12 12",repeatCount:"indefinite"})],-1)];function yt(e,n){return t.openBlock(),t.createElementBlock("svg",mt,bt)}const vt=z(ht,[["render",yt]]),_t={props:{modelValue:{type:String,default:""}},emits:["update:modelValue","keyboard-operation"],setup(e,{emit:n,expose:o}){const{rtl:i,debounce:a,loading:r,language:c,selectedCount:u,multiple:s}=O(),l=t.ref(!1),g=t.ref(),d=q(a),f=t.computed(()=>!s||!u.value?c.search:c.selectedCount.replace(x,u.value)),y=()=>Ue(g.value);return o({focus:y}),()=>{const v=[t.computed(()=>r.value?t.h(vt):t.h(dt,{class:l.value?"sp-search-in-focus":""})).value,t.h("input",{type:"text",autocomplete:"off",value:e.modelValue.trim(),class:{"sp-search-input":!0,"sp-search-input--rtl":i},placeholder:f.value,onKeydown:m=>{m.stopPropagation(),se(m.keyCode)&&n("keyboard-operation",m.keyCode)},onFocus:()=>{l.value=!0},onBlur:()=>{l.value=!1},onInput:m=>{se(m.keyCode)||d(()=>{n("update:modelValue",m.target.value.trim())})},ref:g})];if(e.modelValue.trim()){const m={onClick(){n("update:modelValue",""),y()}};v.push(t.h(j,m,()=>t.h(H)))}return t.h("div",{class:"sp-search-container"},v)}}},wt={},St={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",class:"sp-icon bi bi-trash3",viewBox:"0 0 16 16"},Ct=[t.createElementVNode("path",{d:"M6.5 1h3a.5.5 0 0 1 .5.5v1H6v-1a.5.5 0 0 1 .5-.5ZM11 2.5v-1A1.5 1.5 0 0 0 9.5 0h-3A1.5 1.5 0 0 0 5 1.5v1H2.506a.58.58 0 0 0-.01 0H1.5a.5.5 0 0 0 0 1h.538l.853 10.66A2 2 0 0 0 4.885 16h6.23a2 2 0 0 0 1.994-1.84l.853-10.66h.538a.5.5 0 0 0 0-1h-.995a.59.59 0 0 0-.01 0H11Zm1.958 1-.846 10.58a1 1 0 0 1-.997.92h-6.23a1 1 0 0 1-.997-.92L3.042 3.5h9.916Zm-7.487 1a.5.5 0 0 1 .528.47l.5 8.5a.5.5 0 0 1-.998.06L5 5.03a.5.5 0 0 1 .47-.53Zm5.058 0a.5.5 0 0 1 .47.53l-.5 8.5a.5.5 0 1 1-.998-.06l.5-8.5a.5.5 0 0 1 .528-.47ZM8 4.5a.5.5 0 0 1 .5.5v8.5a.5.5 0 0 1-1 0V5a.5.5 0 0 1 .5-.5Z"},null,-1)];function $t(e,n){return t.openBlock(),t.createElementBlock("svg",St,Ct)}const xt=z(wt,[["render",$t]]),Pt={setup(){const{selectedCount:e,removeAll:n,language:o}=O();return()=>{const i=[],a={title:o.clearAll,size:"large",disabled:!e.value,onClick:n};return i.push(t.h(j,a,()=>t.h(xt))),t.h("div",{class:"sp-search-control"},i)}}},Cn="",It={props:{data:{type:Object,default:void 0},isHover:{type:Boolean,default:!1},isSelected:{type:Boolean,default:!1}},emits:["select","hover"],setup(e,{emit:n}){const{renderCell:o,rtl:i,removeItem:a}=O();return()=>{const r=o(e.data),c={class:{"sp-list-item":!0,"sp-over":!e.isSelected&&e.isHover,"sp-selected":e.isSelected,"sp-rtl":i},onClick:()=>n("select"),onMouseenter:()=>n("hover")},u=[t.h("div",{title:r,innerHTML:r})];if(e.isSelected){const s={onClick:l=>{l.stopPropagation(),a(e.data)}};u.push(t.h(j,s,()=>t.h(H)))}return t.h("div",c,u)}}},At={name:"SelectPageList",props:re(),emits:ie(),setup(e,{emit:n}){const{isItemSelected:o,keyProp:i}=O();return()=>{const a=e.list.map((c,u)=>t.h(It,{key:c[i],data:c,isHover:e.highlightIndex===u,isSelected:o(c),onSelect:()=>n("select",c),onHover:()=>n("set-highlight",u)})),r={class:"sp-list",onMouseleave:()=>n("set-highlight",L)};return t.h("div",r,a)}}},$n="",Tt={props:{columns:{type:Object,default:void 0},row:{type:Object,default:void 0},isHover:{type:Boolean,default:!1},isSelected:{type:Boolean,default:!1}},emits:["select","hover"],setup(e,{emit:n}){const{row:o}=e,{rtl:i}=O(),a=r=>{if(!o||!Object.keys(o).length||!(r!=null&&r.data))return"";switch(typeof r.data){case"string":return o[r.data];case"function":return r.data(o)}};return()=>{const r={class:{"sp-over":!e.isSelected&&e.isHover,"sp-selected":e.isSelected,"sp-rtl":i},onClick:()=>n("select"),onMouseenter:()=>n("hover")},c=e.columns.map((u,s)=>{const l={key:s,innerHTML:a(u)};return Object.hasOwn(u,"width")&&(l.style={width:ae(u.width)}),t.h("td",l)});return t.h("tr",r,c)}}},kt={name:"SelectPageTable",props:{...re(),columns:{type:Array,default:void 0}},emits:ie(),setup(e,{emit:n}){const{isItemSelected:o,rtl:i,keyProp:a}=O();return()=>{const r=e.columns.map(s=>t.h("th",s.title)),c=e.list.map((s,l)=>t.h(Tt,{key:s[a],row:s,columns:e.columns,isHover:e.highlightIndex===l,isSelected:o(s),onSelect:()=>n("select",s),onHover:()=>n("set-highlight",l)})),u=t.h("table",[t.h("thead",t.h("tr",{class:{"sp-rtl":i}},r)),t.h("tbody",{onMouseleave:()=>n("set-highlight",L)},c)]);return t.h("div",{class:"sp-table"},u)}}},xn="",Et={},Bt={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",class:"sp-icon bi bi-chevron-bar-left",viewBox:"0 0 16 16"},zt=[t.createElementVNode("path",{"fill-rule":"evenodd",d:"M11.854 3.646a.5.5 0 0 1 0 .708L8.207 8l3.647 3.646a.5.5 0 0 1-.708.708l-4-4a.5.5 0 0 1 0-.708l4-4a.5.5 0 0 1 .708 0zM4.5 1a.5.5 0 0 0-.5.5v13a.5.5 0 0 0 1 0v-13a.5.5 0 0 0-.5-.5z"},null,-1)];function Ot(e,n){return t.openBlock(),t.createElementBlock("svg",Bt,zt)}const Lt=z(Et,[["render",Ot]]),Nt={},Mt={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",class:"sp-icon bi bi-chevron-left",viewBox:"0 0 16 16"},Vt=[t.createElementVNode("path",{"fill-rule":"evenodd",d:"M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z"},null,-1)];function jt(e,n){return t.openBlock(),t.createElementBlock("svg",Mt,Vt)}const Dt=z(Nt,[["render",jt]]),Ft={},Ht={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",class:"sp-icon bi bi-chevron-right",viewBox:"0 0 16 16"},Rt=[t.createElementVNode("path",{"fill-rule":"evenodd",d:"M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z"},null,-1)];function Ut(e,n){return t.openBlock(),t.createElementBlock("svg",Ht,Rt)}const Zt=z(Ft,[["render",Ut]]),Gt={},Wt={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",class:"sp-icon bi bi-chevron-bar-right",viewBox:"0 0 16 16"},Kt=[t.createElementVNode("path",{"fill-rule":"evenodd",d:"M4.146 3.646a.5.5 0 0 0 0 .708L7.793 8l-3.647 3.646a.5.5 0 0 0 .708.708l4-4a.5.5 0 0 0 0-.708l-4-4a.5.5 0 0 0-.708 0zM11.5 1a.5.5 0 0 1 .5.5v13a.5.5 0 0 1-1 0v-13a.5.5 0 0 1 .5-.5z"},null,-1)];function Xt(e,n){return t.openBlock(),t.createElementBlock("svg",Wt,Kt)}const qt=z(Gt,[["render",Xt]]),Yt={name:"SelectPagePagination",props:{pageInfo:{type:String,default:""},isFirstPage:{type:Boolean,default:!0},isLastPage:{type:Boolean,default:!1}},emits:["page-change"],setup(e,{emit:n}){const{language:o}=O();return()=>{const a=[{action:oe,title:o.first,disabled:e.isFirstPage,icon:Lt},{action:K,title:o.prev,disabled:e.isFirstPage,icon:Dt},{action:X,title:o.next,disabled:e.isLastPage,icon:Zt},{action:le,title:o.last,disabled:e.isLastPage,icon:qt}].map(r=>{const c={href:"javascript:void(0)",onClick:()=>n("page-change",r.action)},u=[{"sp-page-disabled":r.disabled},"sp-page-button"];return t.h("div",{class:u,title:r.title},[t.h("a",c,t.h(r.icon))])});return t.h("div",{class:"sp-pagination"},[t.h("div",{class:"sp-page-info"},e.pageInfo),t.h("div",{class:"sp-page-control"},a)])}}},Jt={},Qt={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",class:"sp-icon bi bi-chat-left-dots",viewBox:"0 0 16 16"},en=[t.createElementVNode("path",{d:"M14 1a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4.414A2 2 0 0 0 3 11.586l-2 2V2a1 1 0 0 1 1-1h12zM2 0a2 2 0 0 0-2 2v12.793a.5.5 0 0 0 .854.353l2.853-2.853A1 1 0 0 1 4.414 12H14a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2z"},null,-1),t.createElementVNode("path",{d:"M5 6a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm4 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm4 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0z"},null,-1)];function tn(e,n){return t.openBlock(),t.createElementBlock("svg",Qt,en)}const nn=z(Jt,[["render",tn]]);function he(e,n){const{lang:o,selected:i,query:a,message:r,currentPage:c,totalRows:u,list:s,isDataEmpty:l,selectItem:g,fetchData:d,renderCell:f,removeAll:y,removeItem:_}=We(e,n),{highlightIndex:v,setItemHighlight:m,highlightNavigation:I,isSomeRowHighlight:A}=Ge(e,n,s),{paginationInfo:p,isFirstPage:P,isLastPage:T,switchPage:k,pagingNavigation:h}=Ke(e,c,u,o),E=q(e.debounce),V=t.ref(),un=()=>{V.value&&V.value.focus()},gn=()=>t.h("div",{class:"sp-search"},[t.h(_t,{ref:V,modelValue:a.value,"onUpdate:modelValue"(b){a.value=b},onKeyboardOperation:b=>{if(De(b))return I(b);if(Fe(b)){h(b),E(d);return}if(He(b))return A()?g(s.value[v.value]):void 0;Re(b)&&n("close-dropdown")}}),t.h(Pt)]),fn=()=>{const b=[];r.value&&b.push(t.h("div",{class:"sp-message"},[t.h(nn),t.h("div",{class:"sp-message-body",innerHTML:r.value})]));const R={name:"sp-message-slide",appear:!0,onEnter:()=>n("adjust-dropdown"),onAfterLeave:()=>n("adjust-dropdown")};return t.h(t.Transition,R,()=>b)},pn=()=>l()?Se():t.h(At,{list:s.value,highlightIndex:v.value,onSelect:b=>g(b),onSetHighlight:b=>m(b)}),hn=()=>l()?Se():t.h(kt,{list:s.value,columns:e.columns,highlightIndex:v.value,onSelect:b=>g(b),onSetHighlight:b=>m(b)}),Se=()=>t.h("div",{class:"sp-result-message"},o.notFound);return{selected:i,query:a,message:r,currentPage:c,lang:o,renderCell:f,removeAll:y,removeItem:_,setSearchFocus:un,renderSearch:gn,renderMessage:fn,renderList:pn,renderTable:hn,renderPagination:()=>{if(e.pagination)return t.h(Yt,{pageInfo:p.value,isFirstPage:P.value,isLastPage:T.value,onPageChange(b){k(b),d()}})},renderContainer:b=>{const R={class:"sp-container"};return e.width&&(R.style={width:ae(e.width)}),t.h("div",R,b)}}}function me(e){const n=t.ref(!1),o=t.ref();function i(){o.value&&o.value.close()}function a(){o.value&&o.value.adjust()}function r(c,u,s){const l={ref:o,border:!1,fullWidth:!0,disabled:e.disabled,customTriggerClass:e==null?void 0:e.customTriggerClass,customContainerClass:e==null?void 0:e.customContainerClass,onVisibleChange(g){n.value=g}};return t.h(at,t.mergeProps(l,c),{trigger:()=>u,default:()=>s})}return{visible:n,dropdownRef:o,renderDropdown:r,closeDropdown:i,adjustDropdown:a}}const be=t.defineComponent({name:"SelectPageListCore",props:{...ce()},emits:ue(),setup(e,{emit:n,expose:o}){const{selected:i,lang:a,renderCell:r,removeAll:c,removeItem:u,setSearchFocus:s,renderSearch:l,renderMessage:g,renderList:d,renderPagination:f,renderContainer:y}=he(e,n);return o({selected:i,lang:a,renderCell:r,removeAll:c,removeItem:u,setSearchFocus:s}),()=>y([l(),g(),d(),f()])}}),Bn="",on={},ln={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",class:"sp-icon bi bi-chevron-down",viewBox:"0 0 16 16"},an=[t.createElementVNode("path",{"fill-rule":"evenodd",d:"M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z"},null,-1)];function rn(e,n){return t.openBlock(),t.createElementBlock("svg",ln,an)}const sn=z(on,[["render",rn]]),ye={props:{dropdownVisible:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},placeholder:{type:String,default:""},lang:{type:Object,default:void 0}},setup(e,{slots:n}){return()=>{var a;const o=[];Object.hasOwn(n,"default")?o.push(n.default()):o.push(t.h("div",{class:"sp-placeholder"},e.placeholder||((a=e.lang)==null?void 0:a.placeholder))),o.push(t.h(sn));const i={class:{"sp-trigger-container":!0,"sp-opened":e.dropdownVisible,"sp-disabled":e.disabled}};return t.h("div",i,o)}}},ve={name:"SelectPageSelect",props:{selected:{type:Object,default:void 0},disabled:{type:Boolean,default:!1},lang:{type:Object,default:void 0},renderCell:{type:Function,default:void 0}},emits:["remove"],setup(e,{emit:n}){const o=t.toRef(e,"selected");return()=>{var a,r;if(!((a=o.value)!=null&&a.length))return;const i=[t.h("div",{class:"sp-select-content",innerHTML:e.renderCell(o.value[0])})];if((r=o.value)!=null&&r.length&&!e.disabled){const c={title:e.lang.clear,onClick:u=>{u.stopPropagation(),n("remove")}};i.push(t.h(j,c,()=>t.h(H)))}return t.h("div",{class:"sp-trigger sp-select"},i)}}},_e={name:"SelectPageChips",props:{selected:{type:Object,default:void 0},disabled:{type:Boolean,default:!1},renderCell:{type:Function,default:void 0}},emits:["remove"],setup(e,{emit:n}){const o=t.toRef(e,"selected");return()=>{const i=o.value.map((a,r)=>{const c=[t.h("div",{class:"sp-chip--body",innerHTML:e.renderCell(a)})];if(!e.disabled){const u={size:"small",hoverBgColor:"#ccc",onClick:s=>{s.stopPropagation(),n("remove",a)}};c.push(t.h(j,u,()=>t.h(H)))}return t.h("div",{class:"sp-chip",key:r},c)});return t.h("div",{class:"sp-trigger sp-chips"},i)}}},cn=t.defineComponent({name:"SelectPageList",inheritAttrs:!1,props:{...de()},emits:["visible-change"],setup(e,{emit:n,attrs:o,expose:i}){const{visible:a,adjustDropdown:r,closeDropdown:c,renderDropdown:u}=me(e),s=t.ref([]),l=t.ref();return i({removeItem:g=>{var d;return(d=l.value)==null?void 0:d.removeItem(g)},removeAll:()=>{var g;return(g=l.value)==null?void 0:g.removeAll()}}),()=>{var m,I,A;const g={selected:s,disabled:e.disabled,lang:(m=l==null?void 0:l.value)==null?void 0:m.lang,renderCell:(I=l==null?void 0:l.value)==null?void 0:I.renderCell,onRemove(p){M(o)?l.value.removeItem(p):l.value.removeAll()}},d=s.value.length?()=>t.h(M(o)?_e:ve,g):void 0,f={dropdownVisible:a.value,disabled:e.disabled,placeholder:o.placeholder,lang:(A=l==null?void 0:l.value)==null?void 0:A.lang},y=t.h(ye,f,d),_={ref:l,onAdjustDropdown:r,onCloseDropdown:c,onSelectionChange(p){s.value=p,!M(o)&&p.length&&c()}};return u({onVisibleChange:p=>{n("visible-change",p),p&&t.nextTick(()=>{l.value.setSearchFocus()})}},y,t.h(be,t.mergeProps(_,o)))}}}),we=t.defineComponent({name:"SelectPageTableCore",props:{...ce(),columns:{type:Array,default:void 0}},emits:ue(),setup(e,{emit:n,expose:o}){const{selected:i,lang:a,removeAll:r,removeItem:c,setSearchFocus:u,renderCell:s,renderSearch:l,renderMessage:g,renderTable:d,renderPagination:f,renderContainer:y}=he(e,n);return o({selected:i,lang:a,renderCell:s,removeAll:r,removeItem:c,setSearchFocus:u}),()=>y([l(),g(),d(),f()])}}),dn=t.defineComponent({name:"SelectPageTable",inheritAttrs:!1,props:{...de()},emits:["visible-change"],setup(e,{emit:n,attrs:o,expose:i}){const{visible:a,adjustDropdown:r,closeDropdown:c,renderDropdown:u}=me(e),s=t.ref([]),l=t.ref();return i({removeItem:g=>{var d;return(d=l.value)==null?void 0:d.removeItem(g)},removeAll:()=>{var g;return(g=l.value)==null?void 0:g.removeAll()}}),()=>{var m,I,A;const g={selected:s,disabled:e.disabled,lang:(m=l==null?void 0:l.value)==null?void 0:m.lang,renderCell:(I=l==null?void 0:l.value)==null?void 0:I.renderCell,onRemove(p){M(o)?l.value.removeItem(p):l.value.removeAll()}},d=s.value.length?()=>t.h(M(o)?_e:ve,g):void 0,f={dropdownVisible:a.value,disabled:e.disabled,placeholder:o.placeholder,lang:(A=l==null?void 0:l.value)==null?void 0:A.lang},y=t.h(ye,f,d),_={ref:l,onAdjustDropdown:r,onCloseDropdown:c,onSelectionChange(p){s.value=p,!M(o)&&p.length&&c()}};return u({onVisibleChange:p=>{n("visible-change",p),p&&t.nextTick(()=>{l.value.setSearchFocus()})}},y,t.h(we,t.mergeProps(_,o)))}}});B.SelectPageList=cn,B.SelectPageListCore=be,B.SelectPageTable=dn,B.SelectPageTableCore=we,Object.defineProperty(B,Symbol.toStringTag,{value:"Module"})});