1
0
mirror of https://github.com/ZeroCatDev/Classworks.git synced 2026-03-21 17:33:10 +00:00
Classworks/assets/VSelect-ANRyd3L-.js

2 lines
19 KiB
JavaScript

import{e as Je,h as Ze,d as qe}from"./autofocus-BrMOVHY_.js";import{V as Le,m as et}from"./VTextField-CuXGbmmC.js";import{o as oe,k as S,F as ue,m as N,w as Ce,s as U,q as ze,b as X,e as $,I as He,D as tt,j as T,N as lt,n as me,t as he,l as Pe,u as se,E as nt,a1 as at}from"./vendor-vue-H0jQBZ7T.js";import{f as Fe,y as Ne,u as Re,p as re,k as Ue,a0 as ot,z as ke,aM as rt,ai as je,E as Ge,l as ut,C as st,a3 as it,s as ve,$ as ct,w as xe,an as ft,n as be,o as Ve,aN as dt,aE as vt,aF as Ee,_ as Oe,a5 as mt,I as ht}from"./vendor-vuetify-ChAgIwn2.js";import{b as gt,a as pt,ay as yt,h as Be,j as wt,k as Ke,i as kt,W as bt,L as Vt,a8 as It,C as St,aD as Ct,aF as Pt,aG as xt}from"./index-_6IQhlPZ.js";import{V as Ft,a as Rt}from"./VSheet-U4CNWLuy.js";import{V as Tt}from"./VCheckboxBtn-DCkgbmVP.js";import{V as $e}from"./VChip-Veb3ShEh.js";const At=re({renderless:Boolean,...Ue()},"VVirtualScrollItem"),Mt=Fe()({name:"VVirtualScrollItem",inheritAttrs:!1,props:At(),emits:{"update:height":e=>!0},setup(e,n){let{attrs:t,emit:s,slots:o}=n;const{resizeRef:f,contentRect:v}=Ne(void 0,"border");oe(()=>{var a;return(a=v.value)==null?void 0:a.height},a=>{a!=null&&s("update:height",a)}),Re(()=>{var a,u;return e.renderless?S(ue,null,[(a=o.default)==null?void 0:a.call(o,{itemRef:f})]):S("div",N({ref:f,class:["v-virtual-scroll__item",e.class],style:e.style},t),[(u=o.default)==null?void 0:u.call(o)])})}}),Dt=-1,_t=1,Ie=100,Lt=re({itemHeight:{type:[Number,String],default:null},itemKey:{type:[String,Array,Function],default:null},height:[Number,String]},"virtual");function Et(e,n){const t=ot(),s=U(0);Ce(()=>{s.value=parseFloat(e.itemHeight||0)});const o=U(0),f=U(Math.ceil((parseInt(e.height)||t.height.value)/(s.value||16))||1),v=U(0),a=U(0),u=X(),m=X();let b=0;const{resizeRef:y,contentRect:p}=Ne();Ce(()=>{y.value=u.value});const h=$(()=>{var i;return u.value===document.documentElement?t.height.value:((i=p.value)==null?void 0:i.height)||parseInt(e.height)||0}),c=$(()=>!!(u.value&&m.value&&h.value&&s.value));let r=Array.from({length:n.value.length}),I=Array.from({length:n.value.length});const w=U(0);let A=-1;function z(i){return r[i]||s.value}const x=rt(()=>{const i=performance.now();I[0]=0;const V=n.value.length;for(let R=1;R<=V;R++)I[R]=(I[R-1]||0)+z(R-1);w.value=Math.max(w.value,performance.now()-i)},w),Y=oe(c,i=>{i&&(Y(),b=m.value.offsetTop,x.immediate(),j(),~A&&He(()=>{Ge&&window.requestAnimationFrame(()=>{H(A),A=-1})}))});ze(()=>{x.clear()});function J(i,V){const R=r[i],D=s.value;s.value=D?Math.min(s.value,V):V,(R!==V||D!==s.value)&&(r[i]=V,x())}function F(i){i=ke(i,0,n.value.length);const V=Math.floor(i),R=i%1,D=V+1,W=I[V]||0,E=I[D]||W;return W+(E-W)*R}function G(i){return Ot(I,i)}let Z=0,M=0,q=0;oe(h,(i,V)=>{j(),i<V&&requestAnimationFrame(()=>{M=0,j()})});let ee=-1;function P(){if(!u.value||!m.value)return;const i=u.value.scrollTop,V=performance.now();V-q>500?(M=Math.sign(i-Z),b=m.value.offsetTop):M=i-Z,Z=i,q=V,window.clearTimeout(ee),ee=window.setTimeout(ie,500),j()}function ie(){!u.value||!m.value||(M=0,q=0,window.clearTimeout(ee),j())}let ce=-1;function j(){cancelAnimationFrame(ce),ce=requestAnimationFrame(ge)}function ge(){if(!u.value||!h.value||!s.value)return;const i=Z-b,V=Math.sign(M),R=Math.max(0,i-Ie),D=ke(G(R),0,n.value.length),W=i+h.value+Ie,E=ke(G(W)+1,D+1,n.value.length);if((V!==Dt||D<o.value)&&(V!==_t||E>f.value)){const ye=F(o.value)-F(D),we=F(E)-F(f.value);Math.max(ye,we)>Ie?(o.value=D,f.value=E):(D<=0&&(o.value=D),E>=n.value.length&&(f.value=E))}v.value=F(o.value),a.value=F(n.value.length)-F(f.value)}function H(i){const V=F(i);!u.value||i&&!V?A=i:u.value.scrollTop=V}const pe=$(()=>n.value.slice(o.value,f.value).map((i,V)=>{const R=V+o.value;return{raw:i,index:R,key:je(i,e.itemKey,R)}}));return oe(n,()=>{r=Array.from({length:n.value.length}),I=Array.from({length:n.value.length}),x.immediate(),j()},{deep:1}),{calculateVisibleItems:j,containerRef:u,markerRef:m,computedItems:pe,paddingTop:v,paddingBottom:a,scrollToIndex:H,handleScroll:P,handleScrollend:ie,handleItemResize:J}}function Ot(e,n){let t=e.length-1,s=0,o=0,f=null,v=-1;if(e[t]<n)return t;for(;s<=t;)if(o=s+t>>1,f=e[o],f>n)t=o-1;else if(f<n)v=o,s=o+1;else return f===n?o:s;return v}const Bt=re({items:{type:Array,default:()=>[]},renderless:Boolean,...Lt(),...Ue(),...pt()},"VVirtualScroll"),Kt=Fe()({name:"VVirtualScroll",props:Bt(),setup(e,n){let{slots:t}=n;const s=ut("VVirtualScroll"),{dimensionStyles:o}=gt(e),{calculateVisibleItems:f,containerRef:v,markerRef:a,handleScroll:u,handleScrollend:m,handleItemResize:b,scrollToIndex:y,paddingTop:p,paddingBottom:h,computedItems:c}=Et(e,he(()=>e.items));return st(()=>e.renderless,()=>{function r(){var A,z;const w=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1)?"addEventListener":"removeEventListener";v.value===document.documentElement?(document[w]("scroll",u,{passive:!0}),document[w]("scrollend",m)):((A=v.value)==null||A[w]("scroll",u,{passive:!0}),(z=v.value)==null||z[w]("scrollend",m))}tt(()=>{v.value=it(s.vnode.el,!0),r(!0)}),ze(r)}),Re(()=>{const r=c.value.map(I=>T(Mt,{key:I.key,renderless:e.renderless,"onUpdate:height":w=>b(I.index,w)},{default:w=>{var A;return(A=t.default)==null?void 0:A.call(t,{item:I.raw,index:I.index,...w})}}));return e.renderless?S(ue,null,[S("div",{ref:a,class:"v-virtual-scroll__spacer",style:{paddingTop:ve(p.value)}},null),r,S("div",{class:"v-virtual-scroll__spacer",style:{paddingBottom:ve(h.value)}},null)]):S("div",{ref:v,class:me(["v-virtual-scroll",e.class]),onScrollPassive:u,onScrollend:m,style:lt([o.value,e.style])},[S("div",{ref:a,class:"v-virtual-scroll__container",style:{paddingTop:ve(p.value),paddingBottom:ve(h.value)}},[r])])}),{calculateVisibleItems:f,scrollToIndex:y}}});function $t(e,n){const t=U(!1);let s;function o(a){cancelAnimationFrame(s),t.value=!0,s=requestAnimationFrame(()=>{s=requestAnimationFrame(()=>{t.value=!1})})}async function f(){await new Promise(a=>requestAnimationFrame(a)),await new Promise(a=>requestAnimationFrame(a)),await new Promise(a=>requestAnimationFrame(a)),await new Promise(a=>{if(t.value){const u=oe(t,()=>{u(),a()})}else a()})}async function v(a){var b,y;if(a.key==="Tab"&&((b=n.value)==null||b.focus()),!["PageDown","PageUp","Home","End"].includes(a.key))return;const u=(y=e.value)==null?void 0:y.$el;if(!u)return;(a.key==="Home"||a.key==="End")&&u.scrollTo({top:a.key==="Home"?0:u.scrollHeight,behavior:"smooth"}),await f();const m=u.querySelectorAll(":scope > :not(.v-virtual-scroll__spacer)");if(a.key==="PageDown"||a.key==="Home"){const p=u.getBoundingClientRect().top;for(const h of m)if(h.getBoundingClientRect().top>=p){h.focus();break}}else{const p=u.getBoundingClientRect().bottom;for(const h of[...m].reverse())if(h.getBoundingClientRect().bottom<=p){h.focus();break}}}return{onScrollPassive:o,onKeydown:v}}function zt(e){let{groups:n,onLeave:t}=e;function s(a){var u;return a.type==="list"?(u=a.contentRef.value)==null?void 0:u.$el:a.contentRef.value}function o(a){const u=s(a);return u?ct(u):[]}function f(a){var h;const u=a.target,m=a.shiftKey?"backward":"forward",b=n.map(o),y=n.map(c=>{var r;return c.type==="list"?(r=c.contentRef.value)==null?void 0:r.$el:c.contentRef.value}).findIndex(c=>c==null?void 0:c.contains(u)),p=v(b,y,m,u);if(p===null){const c=n[y],r=b[y];(c.type==="list"||(m==="forward"?r.at(-1)===a.target:r.at(0)===a.target))&&t()}else{a.preventDefault(),a.stopImmediatePropagation();const c=n[p];if(c.type==="list"&&Pe(c.displayItemsCount)>0)(h=c.contentRef.value)==null||h.focus(0);else{const r=m==="forward";b[p].at(r?0:-1).focus()}}}function v(a,u,m,b){const y=n[u],p=a[u];if(y.type!=="list"&&!(m==="forward"?p.at(-1)===b:p.at(0)===b))return null;const h=m==="forward"?1:-1;for(let c=u+h;c>=0&&c<n.length;c+=h){const r=n[c];if(a[c].length>0||r.type==="list"&&Pe(r.displayItemsCount)>0)return c}return null}return{onTabKeydown:f}}const Ht=(e,n,t)=>{if(e==null||n==null)return-1;if(!n.length)return 0;e=e.toString().toLocaleLowerCase(),n=n.toString().toLocaleLowerCase();const s=[];let o=e.indexOf(n);for(;~o;)s.push([o,o+n.length]),o=e.indexOf(n,o+n.length);return s.length?s:-1};function Se(e,n){if(!(e==null||typeof e=="boolean"||e===-1))return typeof e=="number"?[[e,e+n.length]]:Array.isArray(e[0])?e:[e]}const Nt=re({customFilter:Function,customKeyFilter:Object,filterKeys:[Array,String],filterMode:{type:String,default:"intersection"},noFilter:Boolean},"filter");function Ut(e,n,t){var u,m;const s=[],o=(t==null?void 0:t.default)??Ht,f=t!=null&&t.filterKeys?xe(t.filterKeys):!1,v=Object.keys((t==null?void 0:t.customKeyFilter)??{}).length;if(!(e!=null&&e.length))return s;let a=[];e:for(let b=0;b<e.length;b++){const[y,p=y]=xe(e[b]),h={},c={};let r=-1;if((n||v>0)&&!(t!=null&&t.noFilter)){let I=!1;if(typeof y=="object"){if(y.type==="divider"||y.type==="subheader"){(((u=a.at(-1))==null?void 0:u.type)!=="divider"||y.type!=="subheader")&&(a=[]),a.push({index:b,matches:{},type:y.type});continue}const z=f||Object.keys(p);I=z.length===v;for(const x of z){const Y=je(p,x),J=(m=t==null?void 0:t.customKeyFilter)==null?void 0:m[x];if(r=J?J(Y,n,y):o(Y,n,y),r!==-1&&r!==!1)J?h[x]=Se(r,n):c[x]=Se(r,n);else if((t==null?void 0:t.filterMode)==="every")continue e}}else r=o(y,n,y),r!==-1&&r!==!1&&(c.title=Se(r,n));const w=Object.keys(c).length,A=Object.keys(h).length;if(!w&&!A||(t==null?void 0:t.filterMode)==="union"&&A!==v&&!w||(t==null?void 0:t.filterMode)==="intersection"&&(A!==v||!w&&v>0&&!I))continue}a.length&&(s.push(...a),a=[]),s.push({index:b,matches:{...c,...h}})}return s}function jt(e,n,t,s){const o=U([]),f=U(new Map),v=$(()=>s!=null&&s.transform?se(n).map(u=>[u,s.transform(u)]):se(n));Ce(()=>{const u=typeof t=="function"?t():se(t),m=typeof u!="string"&&typeof u!="number"?"":String(u),b=Ut(v.value,m,{customKeyFilter:{...e.customKeyFilter,...se(s==null?void 0:s.customKeyFilter)},default:e.customFilter,filterKeys:e.filterKeys,filterMode:e.filterMode,noFilter:e.noFilter}),y=se(n),p=[],h=new Map;b.forEach(c=>{let{index:r,matches:I}=c;const w=y[r];p.push(w),h.set(w.value,I)}),o.value=p,f.value=h});function a(u){return f.value.get(u.value)}return{filteredItems:o,filteredMatches:f,getMatches:a}}function Gt(e,n,t){return t==null||!t.length?n:t.map((s,o)=>{const f=o===0?0:t[o-1][1],v=[S("span",{class:me(`${e}__unmask`)},[n.slice(f,s[0])]),S("span",{class:me(`${e}__mask`)},[n.slice(s[0],s[1])])];return o===t.length-1&&v.push(S("span",{class:me(`${e}__unmask`)},[n.slice(s[1])])),S(ue,null,[v])})}const Wt=re({closeText:{type:String,default:"$vuetify.close"},openText:{type:String,default:"$vuetify.open"}},"autocomplete");function Qt(e,n){const t=nt(),s=$(()=>`menu-${t}`),o=he(()=>Pe(n)),f=he(()=>s.value);return{menuId:s,ariaExpanded:o,ariaControls:f}}const Xt=re({chips:Boolean,closableChips:Boolean,eager:Boolean,hideNoData:Boolean,hideSelected:Boolean,listProps:{type:Object},menu:Boolean,menuIcon:{type:ht,default:"$dropdown"},menuProps:{type:Object},multiple:Boolean,noDataText:{type:String,default:"$vuetify.noDataText"},openOnClear:Boolean,itemColor:String,noAutoScroll:Boolean,...Wt(),...xt({itemChildren:!1})},"Select"),Yt=re({search:String,...Nt({filterKeys:["title"]}),...Xt(),...mt(et({modelValue:null,role:"combobox"}),["validationValue","dirty"]),...Ct({transition:{component:Pt}})},"VSelect"),ol=Fe()({name:"VSelect",props:Yt(),emits:{"update:focused":e=>!0,"update:modelValue":e=>!0,"update:menu":e=>!0,"update:search":e=>!0},setup(e,n){let{slots:t}=n;const{t:s}=ft(),o=X(),f=X(),v=X(),a=X(),u=X(),{items:m,transformIn:b,transformOut:y}=yt(e),p=be(e,"search",""),{filteredItems:h,getMatches:c}=jt(e,m,()=>p.value),r=be(e,"modelValue",[],l=>b(l===null?[null]:xe(l)),l=>{const g=y(l);return e.multiple?g:g[0]??null}),I=$(()=>typeof e.counterValue=="function"?e.counterValue(r.value):typeof e.counterValue=="number"?e.counterValue:r.value.length),w=Je(e),A=Ze(e),z=$(()=>r.value.map(l=>l.value)),x=U(!1),Y=he(()=>e.closableChips&&!w.isReadonly.value&&!w.isDisabled.value),{InputIcon:J}=qe(e);let F="",G=0,Z;const M=$(()=>{const l=p.value?h.value:m.value;return e.hideSelected?l.filter(g=>!r.value.some(C=>(e.valueComparator||Ve)(C,g))):l}),q=$(()=>e.hideNoData&&!M.value.length||w.isReadonly.value||w.isDisabled.value),ee=be(e,"menu"),P=$({get:()=>ee.value,set:l=>{var g;ee.value&&!l&&((g=f.value)!=null&&g.ΨopenChildren.size)||l&&q.value||(ee.value=l)}}),{menuId:ie,ariaExpanded:ce,ariaControls:j}=Qt(e,P),ge=$(()=>{var l;return{...e.menuProps,activatorProps:{...((l=e.menuProps)==null?void 0:l.activatorProps)||{},"aria-haspopup":"listbox"}}}),H=X(),pe=$t(H,o),{onTabKeydown:i}=zt({groups:[{type:"element",contentRef:v},{type:"list",contentRef:H,displayItemsCount:()=>M.value.length},{type:"element",contentRef:a}],onLeave:()=>{var l;P.value=!1,(l=o.value)==null||l.focus()}});function V(l){e.openOnClear&&(P.value=!0)}function R(){q.value||(P.value=!P.value)}function D(l){var g;l.key==="Tab"&&i(l),(g=H.value)!=null&&g.$el.contains(l.target)&&Ee(l)&&W(l)}function W(l){var O,K,ae;if(!l.key||w.isReadonly.value)return;if(["Enter"," ","ArrowDown","ArrowUp","Home","End"].includes(l.key)&&l.preventDefault(),["Enter","ArrowDown"," "].includes(l.key)&&(P.value=!0),["Escape","Tab"].includes(l.key)&&(P.value=!1),e.clearable&&l.key==="Backspace"){l.preventDefault(),r.value=[],V();return}l.key==="Home"?(O=H.value)==null||O.focus("first"):l.key==="End"&&((K=H.value)==null||K.focus("last"));const g=1e3;if(!Ee(l))return;const C=performance.now();C-Z>g&&(F="",G=0),F+=l.key.toLowerCase(),Z=C;const te=M.value;function Q(){let d=le();return d||F.at(-1)===F.at(-2)&&(F=F.slice(0,-1),G++,d=le(),d)||(G=0,d=le(),d)?d:(F=l.key.toLowerCase(),le())}function le(){for(let d=G;d<te.length;d++){const _=te[d];if(_.title.toLowerCase().startsWith(F))return[_,d]}}const B=Q();if(!B)return;const[ne,k]=B;G=k,(ae=H.value)==null||ae.focus(k),e.multiple||(r.value=[ne])}function E(l){let g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(!l.props.disabled)if(e.multiple){const C=r.value.findIndex(Q=>(e.valueComparator||Ve)(Q.value,l.value)),te=g??!~C;if(~C){const Q=te?[...r.value,l]:[...r.value];Q.splice(C,1),r.value=Q}else te&&(r.value=[...r.value,l])}else{const C=g!==!1;r.value=C?[l]:[],He(()=>{P.value=!1})}}function ye(l){var C;const g=l.target;(C=o.value)!=null&&C.$el.contains(g)||(P.value=!1)}function we(){var l;e.eager&&((l=u.value)==null||l.calculateVisibleItems())}function Te(){var l;p.value="",x.value&&((l=o.value)==null||l.focus())}function We(l){x.value=!0}function Qe(l){if(l==null)r.value=[];else if(Oe(o.value,":autofill")||Oe(o.value,":-webkit-autofill")){const g=m.value.find(C=>C.title===l);g&&E(g)}else o.value&&(o.value.value="")}return oe(P,()=>{if(!e.hideSelected&&P.value&&r.value.length){const l=M.value.findIndex(g=>r.value.some(C=>(e.valueComparator||Ve)(C.value,g.value)));Ge&&!e.noAutoScroll&&window.requestAnimationFrame(()=>{var g;l>=0&&((g=u.value)==null||g.scrollToIndex(l))})}}),oe(m,(l,g)=>{P.value||x.value&&e.hideNoData&&!g.length&&l.length&&(P.value=!0)}),Re(()=>{const l=!!(e.chips||t.chip),g=!!(!e.hideNoData||M.value.length||t["prepend-item"]||t["append-item"]||t["no-data"]),C=r.value.length>0,te=Le.filterProps(e),Q=C||!x.value&&e.label&&!e.persistentPlaceholder?void 0:e.placeholder,le={search:p,filteredItems:h.value};return T(Le,N({ref:o},te,{modelValue:r.value.map(B=>B.props.title).join(", "),name:void 0,"onUpdate:modelValue":Qe,focused:x.value,"onUpdate:focused":B=>x.value=B,validationValue:r.externalValue,counterValue:I.value,dirty:C,class:["v-select",{"v-select--active-menu":P.value,"v-select--chips":!!e.chips,[`v-select--${e.multiple?"multiple":"single"}`]:!0,"v-select--selected":r.value.length,"v-select--selection-slot":!!t.selection},e.class],style:e.style,inputmode:"none",placeholder:Q,"onClick:clear":V,"onMousedown:control":R,onBlur:ye,onKeydown:W,"aria-expanded":ce.value,"aria-controls":j.value}),{...t,default:B=>{let{id:ne}=B;return S(ue,null,[S("select",{hidden:!0,multiple:e.multiple,name:A.fieldName.value},[m.value.map(k=>S("option",{key:k.value,value:k.value,selected:z.value.includes(k.value)},null))]),T(Ft,N({id:ie.value,ref:f,modelValue:P.value,"onUpdate:modelValue":k=>P.value=k,activator:"parent",contentClass:"v-select__content",disabled:q.value,eager:e.eager,maxHeight:310,openOnClick:!1,closeOnContentClick:!1,transition:e.transition,onAfterEnter:we,onAfterLeave:Te},ge.value),{default:()=>[T(Rt,{onFocusin:We,onKeydown:D},{default:()=>[t["menu-header"]&&S("header",{ref:v},[t["menu-header"](le)]),g&&T(wt,N({key:"select-list",ref:H,selected:z.value,selectStrategy:e.multiple?"independent":"single-independent",tabindex:"-1",selectable:!!M.value.length,"aria-live":"polite","aria-labelledby":`${ne.value}-label`,"aria-multiselectable":e.multiple,color:e.itemColor??e.color},pe,e.listProps),{default:()=>{var k,O,K;return[(k=t["prepend-item"])==null?void 0:k.call(t),!M.value.length&&!e.hideNoData&&(((O=t["no-data"])==null?void 0:O.call(t))??T(Ke,{key:"no-data",title:s(e.noDataText)},null)),T(Kt,{ref:u,renderless:!0,items:M.value,itemKey:"value"},{default:ae=>{var Me,De,_e;let{item:d,index:_,itemRef:L}=ae;const fe=dt(d.props),Ae=N(d.props,{ref:L,key:d.value,onClick:()=>E(d,null),"aria-posinset":_+1,"aria-setsize":M.value.length});return d.type==="divider"?((Me=t.divider)==null?void 0:Me.call(t,{props:d.raw,index:_}))??T(kt,N(d.props,{key:`divider-${_}`}),null):d.type==="subheader"?((De=t.subheader)==null?void 0:De.call(t,{props:d.raw,index:_}))??T(bt,N(d.props,{key:`subheader-${_}`}),null):((_e=t.item)==null?void 0:_e.call(t,{item:d,index:_,props:Ae}))??T(Ke,N(Ae,{role:"option"}),{prepend:de=>{let{isSelected:Xe}=de;return S(ue,null,[e.multiple&&!e.hideSelected?T(Tt,{key:d.value,modelValue:Xe,ripple:!1,tabindex:"-1","aria-hidden":!0,onClick:Ye=>Ye.preventDefault()},null):void 0,fe.prependAvatar&&T(Vt,{image:fe.prependAvatar},null),fe.prependIcon&&T(Be,{icon:fe.prependIcon},null)])},title:()=>{var de;return p.value?Gt("v-select",d.title,(de=c(d))==null?void 0:de.title):d.title}})}}),(K=t["append-item"])==null?void 0:K.call(t)]}}),t["menu-footer"]&&S("footer",{ref:a},[t["menu-footer"](le)])]})]}),r.value.map((k,O)=>{function K(L){L.stopPropagation(),L.preventDefault(),E(k,!1)}const ae=N($e.filterProps(k.props),{"onClick:close":K,onKeydown(L){L.key!=="Enter"&&L.key!==" "||(L.preventDefault(),L.stopPropagation(),K(L))},onMousedown(L){L.preventDefault(),L.stopPropagation()},modelValue:!0,"onUpdate:modelValue":void 0}),d=l?!!t.chip:!!t.selection,_=d?vt(l?t.chip({item:k,index:O,props:ae}):t.selection({item:k,index:O})):void 0;if(!(d&&!_))return S("div",{key:k.value,class:"v-select__selection"},[l?t.chip?T(It,{key:"chip-defaults",defaults:{VChip:{closable:Y.value,size:"small",text:k.title}}},{default:()=>[_]}):T($e,N({key:"chip",closable:Y.value,size:"small",text:k.title,disabled:k.props.disabled},ae),null):_??S("span",{class:"v-select__selection-text"},[k.title,e.multiple&&O<r.value.length-1&&S("span",{class:"v-select__selection-comma"},[at(",")])])])})])},"append-inner":function(){var O,K;for(var B=arguments.length,ne=new Array(B),k=0;k<B;k++)ne[k]=arguments[k];return S(ue,null,[(O=t["append-inner"])==null?void 0:O.call(t,...ne),e.menuIcon?T(Be,{class:"v-select__menu-icon",color:(K=o.value)==null?void 0:K.fieldIconColor,icon:e.menuIcon,"aria-hidden":!0},null):void 0,e.appendInnerIcon&&T(J,{key:"append-icon",name:"appendInner",color:ne[0].iconColor.value},null)])}})}),St({isFocused:x,menu:P,search:p,filteredItems:h,select:E},o)}});export{ol as V,Qt as a,zt as b,Kt as c,$t as d,Xt as e,Gt as h,Nt as m,jt as u};