PageSourceSearch

https://eventbotler.com/_nuxt/Cze_bkEk.js

js eventbotler.com collected 2026-10-03 18:25:50 UTC 33,263 bytes, 31 lines download raw bytes

1import{a as N,P as D,c as ae,u as ue,i as be,h as We,e as Be,d as me,r as Ze}from"./DvzaZcYS.js";import{b as Xe,_ as Je,u as Qe,c as Ye,a as et}from"./MEWOwwq2.js";import{u as fe}from"./C9S3ViPW.js";import{u as Te}from"./C36CoLz1.js";import{d as w,a as C,o as b,w as c,h as $,u as e,m as I,r as B,c as E,i as _e,t as ke,e as K,f as ce,j as q,n as H,a2 as tt,g as U,a8 as ot,M as Ie,b as te,N as oe,af as ye,ab as at,x as pe,k as De,al as lt,am as st,y as ge,l as nt,ag as we,s as re,B as Re,T as Oe,U as it,V as rt,q as Fe,p as Pe,_ as dt,F as Ke,v as ut}from"./BvEF26Sq.js";import{u as $e,_ as ct,h as pt}from"./D-D1iJ82.js";import{g as mt}from"./C5xxGGrB.js";import{u as ft}from"./DU0gOKK3.js";import{u as ht,_ as vt}from"./D4TaDxt9.js";import{u as bt}from"./kRIii9yh.js";import{c as j}from"./D-KgF5mV.js";import{u as le}from"./Cz0p8JUx.js";import{P as gt}from"./d7qFxAKc.js";import{_ as ze}from"./DMrABiiv.js";import{a as yt}from"./CwKx8yQG.js";const Ct=w({__name:"ComboboxAnchor",props:{reference:{},asChild:{type:Boolean},as:{}},setup(o){const{forwardRef:n}=N();return(t,s)=>(b(),C(e(Xe),{"as-child":"",reference:t.reference},{default:c(()=>[$(e(D),I({ref:e(n),"as-child":t.asChild,as:t.as},t.$attrs),{default:c(()=>[B(t.$slots,"default")]),_:3},16,["as-child","as"])]),_:3},8,["reference"]))}});function xt(o){const n=E(()=>e(o)),t=E(()=>new Intl.Collator("en",{usage:"search",...n.value}));return{startsWith:(r,i)=>i.length===0?!0:(r=r.normalize("NFC"),i=i.normalize("NFC"),t.value.compare(r.slice(0,i.length),i)===0),endsWith:(r,i)=>i.length===0?!0:(r=r.normalize("NFC"),i=i.normalize("NFC"),t.value.compare(r.slice(-i.length),i)===0),contains:(r,i)=>{if(i.length===0)return!0;r=r.normalize("NFC"),i=i.normalize("NFC");let u=0;const k=i.length;for(;u+k<=r.length;u++){const p=r.slice(u,u+k);if(t.value.compare(i,p)===0)return!0}return!1}}}function _t(o,n,t){return o===void 0?!1:Array.isArray(o)?o.some(s=>de(s,n,t)):de(o,n,t)}function de(o,n,t){return o===void 0||n===void 0?!1:typeof o=="string"?o===n:typeof t=="function"?t(o,n):typeof t=="string"?(o==null?void 0:o[t])===(n==null?void 0:n[t]):_e(o,n)}function wt(o,n,t){const s=o.findIndex(i=>_e(i,n)),a=o.findIndex(i=>_e(i,t));if(s===-1||a===-1)return[];const[l,r]=[s,a].sort((i,u)=>i-u);return o.slice(l,r+1)}const[Ce,Bt]=ae("ListboxRoot"),kt=w({__name:"ListboxRoot",props:{modelValue:{},defaultValue:{},multiple:{type:Boolean},orientation:{default:"vertical"},dir:{},disabled:{type:Boolean},selectionBehavior:{default:"toggle"},highlightOnHover:{type:Boolean},by:{},asChild:{type:Boolean},as:{},name:{},required:{type:Boolean}},emits:["update:modelValue","highlight","entryFocus","leave"],setup(o,{expose:n,emit:t}){const s=o,a=t,{multiple:l,highlightOnHover:r,orientation:i,disabled:u,selectionBehavior:k,dir:p}=ke(s),{getItems:m}=$e({isProvider:!0}),{handleTypeaheadSearch:h}=ft(),{primitiveElement:x,currentElement:f}=fe(),_=bt(),T=Te(p),R=ht(f),G=K(),z=K(!1),Z=K(!0),O=ue(s,"modelValue",a,{defaultValue:s.defaultValue??(l.value?[]:void 0),passive:s.modelValue===void 0,deep:!0});function X(d){if(z.value=!0,s.multiple){const v=Array.isArray(O.value)?[...O.value]:[],g=v.findIndex(V=>de(V,d,s.by));s.selectionBehavior==="toggle"?(g===-1?v.push(d):v.splice(g,1),O.value=v):(O.value=[d],G.value=d)}else s.selectionBehavior==="toggle"&&de(O.value,d,s.by)?O.value=void 0:O.value=d;setTimeout(()=>{z.value=!1},1)}const F=K(null),se=K(null),S=K(!1),J=K(!1),A=be(),Q=be(),ne=be();function Y(){return m().map(d=>d.ref).filter(d=>d.dataset.disabled!=="")}function y(d,v=!0){if(!d)return;F.value=d,Z.value&&F.value.focus(),v&&F.value.scrollIntoView({block:"nearest"});const g=m().find(V=>V.ref===d);a("highlight",g)}function P(d){if(S.value)ne.trigger(d);else{const v=m().find(g=>de(g.value,d,s.by));v&&(F.value=v.ref,y(v.ref))}}function L(d){F.value&&F.value.isConnected&&(d.preventDefault(),d.stopPropagation(),J.value||F.value.click())}function ee(d){if(Z.value){if(z.value=!0,S.value)Q.trigger(d);else{const v=d.altKey||d.ctrlKey||d.metaKey;if(v&&d.key==="a"&&l.value){const g=m(),V=g.map(M=>M.value);O.value=[...V],d.preventDefault(),y(g[g.length-1].ref)}else if(!v){const g=h(d.key,m());g&&y(g)}}setTimeout(()=>{z.value=!1},1)}}function qe(){J.value=!0}function je(){requestAnimationFrame(()=>{J.value=!1})}function Ee(){H(()=>{const d=new KeyboardEvent("keydown",{key:"PageUp"});Se(d)})}function xe(d){const v=F.value;v!=null&&v.isConnected&&(se.value=v),F.value=null,a("leave",d)}function Ge(d){var g,V;const v=new CustomEvent("listbox.entryFocus",{bubbles:!1,cancelable:!0});if((g=d.currentTarget)==null||g.dispatchEvent(v),a("entryFocus",v),!v.defaultPrevented)if(se.value)y(se.value);else{const M=(V=Y())==null?void 0:V[0];y(M)}}function Se(d){const v=mt(d,i.value,T.value);if(!v)return;let g=Y();if(F.value){if(v==="last")g.reverse();else if(v==="prev"||v==="next"){v==="prev"&&g.reverse();const V=g.indexOf(F.value);g=g.slice(V+1)}Ne(d,g[0])}if(g.length){const V=!F.value&&v==="prev"?g.length-1:0;y(g[V])}if(S.value)return Q.trigger(d)}function Ne(d,v){var V;if(!(S.value||s.selectionBehavior!=="replace"||!l.value||!Array.isArray(O.value)||(d.altKey||d.ctrlKey||d.metaKey)&&!d.shift
1Key)&&d.shiftKey){const M=m().filter(ie=>ie.ref.dataset.disabled!=="");let he=(V=M.find(ie=>ie.ref===v))==null?void 0:V.value;if(d.key===_.END?he=M[M.length-1].value:d.key===_.HOME&&(he=M[0].value),!he||!G.value)return;const Ue=wt(M.map(ie=>ie.value),G.value,he);O.value=Ue}}async function Ve(d){if(await H(),S.value)A.trigger(d);else{const v=Y(),g=v.find(V=>V.dataset.state==="checked");g?y(g):v.length&&y(v[0])}}return ce(O,()=>{z.value||H(()=>{Ve()})},{immediate:!0,deep:!0}),n({highlightedElement:F,highlightItem:P,highlightFirstItem:Ee,highlightSelected:Ve,getItems:m}),Bt({modelValue:O,onValueChange:X,multiple:l,orientation:i,dir:T,disabled:u,highlightOnHover:r,highlightedElement:F,isVirtual:S,virtualFocusHook:A,virtualKeydownHook:Q,virtualHighlightHook:ne,by:s.by,firstValue:G,selectionBehavior:k,focusable:Z,onLeave:xe,onEnter:Ge,changeHighlight:y,onKeydownEnter:L,onKeydownNavigation:Se,onKeydownTypeAhead:ee,onCompositionStart:qe,onCompositionEnd:je,highlightFirstItem:Ee}),(d,v)=>(b(),C(e(D),{ref_key:"primitiveElement",ref:x,as:d.as,"as-child":d.asChild,dir:e(T),"data-disabled":e(u)?"":void 0,onPointerleave:xe,onFocusout:v[0]||(v[0]=async g=>{const V=g.relatedTarget||g.target;await H(),F.value&&e(f)&&!e(f).contains(V)&&xe(g)})},{default:c(()=>[B(d.$slots,"default",{modelValue:e(O)}),e(R)&&d.name?(b(),C(e(vt),{key:0,name:d.name,value:e(O),disabled:e(u),required:d.required},null,8,["name","value","disabled","required"])):q("",!0)]),_:3},8,["as","as-child","dir","data-disabled"]))}}),[W,It]=ae("ComboboxRoot"),$t=w({__name:"ComboboxRoot",props:{open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean},resetSearchTermOnBlur:{type:Boolean,default:!0},resetSearchTermOnSelect:{type:Boolean,default:!0},ignoreFilter:{type:Boolean},modelValue:{},defaultValue:{},multiple:{type:Boolean},dir:{},disabled:{type:Boolean},highlightOnHover:{type:Boolean},by:{},asChild:{type:Boolean},as:{},name:{},required:{type:Boolean}},emits:["update:modelValue","highlight","update:open"],setup(o,{expose:n,emit:t}){var Q,ne,Y;const s=o,a=t,{primitiveElement:l,currentElement:r}=fe(),{multiple:i,disabled:u,ignoreFilter:k,resetSearchTermOnSelect:p,dir:m}=ke(s),h=Te(m),x=ue(s,"modelValue",a,{defaultValue:s.defaultValue??(i.value?[]:void 0),passive:s.modelValue===void 0,deep:!0}),f=ue(s,"open",a,{defaultValue:s.defaultOpen,passive:s.open===void 0});async function _(y){var P,L;f.value=y,S.search="",y?(await H(),(P=l.value)==null||P.highlightSelected(),R.value=!0):R.value=!1,(L=z.value)==null||L.focus(),setTimeout(()=>{!y&&s.resetSearchTermOnBlur&&T.trigger()},1)}const T=be(),R=K(!1),G=K(!1),z=K(),Z=K(),O=E(()=>{var y;return((y=l.value)==null?void 0:y.highlightedElement)??void 0}),X=K(new Map),F=K(new Map),{contains:se}=xt({sensitivity:"base"}),S=tt({search:"",filtered:{count:0,items:new Map,groups:new Set}});function J(){if(!S.search||s.ignoreFilter||G.value){S.filtered.count=X.value.size;return}S.filtered.groups=new Set;let y=0;for(const[P,L]of X.value){const ee=se(L,S.search);S.filtered.items.set(P,ee?1:0),ee&&y++}for(const[P,L]of F.value)for(const ee of L)if(S.filtered.items.get(ee)>0){S.filtered.groups.add(P);break}S.filtered.count=y}ce([()=>S.search,()=>X.value.size],()=>{J()},{immediate:!0}),ce(()=>f.value,()=>{H(()=>{f.value&&J()})},{flush:"post"});const A=ot();return U(()=>{var y,P,L;A!=null&&A.exposed&&(A.exposed.highlightItem=(y=l.value)==null?void 0:y.highlightItem,A.exposed.highlightFirstItem=(P=l.value)==null?void 0:P.highlightFirstItem,A.exposed.highlightSelected=(L=l.value)==null?void 0:L.highlightSelected)}),n({filtered:E(()=>S.filtered),highlightedElement:O,highlightItem:(Q=l.value)==null?void 0:Q.highlightItem,highlightFirstItem:(ne=l.value)==null?void 0:ne.highlightFirstItem,highlightSelected:(Y=l.value)==null?void 0:Y.highlightSelected}),It({modelValue:x,multiple:i,disabled:u,open:f,onOpenChange:_,contentId:"",isUserInputted:R,isVirtual:G,inputElement:z,highlightedElement:O,onInputElementChange:y=>z.value=y,triggerElement:Z,onTriggerElementChange:y=>Z.value=y,parentElement:r,resetSearchTermOnSelect:p,onResetSearchTerm:T.on,allItems:X,allGroups:F,filterState:S,ignoreFilter:k}),(y,P)=>(b(),C(e(Je),null,{default:c(()=>[$(e(kt),I({ref_key:"primitiveElement",ref:l},y.$attrs,{modelValue:e(x),"onUpdate:modelValue":P[0]||(P[0]=L=>Ie(x)?x.value=L:null),style:{pointerEvents:e(f)?"auto":void 0},as:y.as,"as-child":y.asChild,dir:e(h),multiple:e(i),name:y.name,required:y.required,disabled:e(u),"highlight-on-hover":!0,by:s.by,onHighlight:P[1]||(P[1]=L=>a("highlight",L))}),{default:c(()=>[B(y.$slots,"default",{open:e(f),modelValue:e(x)})]),_:3},16,["modelValue","style","as","as-child","dir","multiple","name","required","disabled","by"])]),_:3}))}}),Et=w({__name:"ListboxContent",props:{asChild:{type:Boolean},as:{}},setup(o){const{CollectionSlot:n}
1=$e(),t=Ce(),s=We(!1,10);return(a,l)=>(b(),C(e(n),null,{default:c(()=>[$(e(D),{role:"listbox",as:a.as,"as-child":a.asChild,tabindex:e(t).focusable.value?e(t).highlightedElement.value?"-1":"0":void 0,"aria-orientation":e(t).orientation.value,"aria-multiselectable":!!e(t).multiple.value,"data-orientation":e(t).orientation.value,onMousedown:l[0]||(l[0]=oe(r=>s.value=!0,["left"])),onFocus:l[1]||(l[1]=r=>{e(s)||e(t).onEnter(r)}),onKeydown:[l[2]||(l[2]=te(oe(r=>{e(t).focusable.value&&e(t).onKeydownNavigation(r)},["prevent"]),["down","up","left","right","home","end"])),te(e(t).onKeydownEnter,["enter"]),e(t).onKeydownTypeAhead]},{default:c(()=>[B(a.$slots,"default")]),_:3},8,["as","as-child","tabindex","aria-orientation","aria-multiselectable","data-orientation","onKeydown"])]),_:3}))}}),[So,St]=ae("ComboboxContent"),Vt=w({__name:"ComboboxContentImpl",props:{position:{default:"inline"},bodyLock:{type:Boolean},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},positionStrategy:{},updatePositionStrategy:{},disableUpdateOnLayoutShift:{type:Boolean},prioritizePosition:{type:Boolean},reference:{},asChild:{type:Boolean},as:{},disableOutsidePointerEvents:{type:Boolean}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside"],setup(o,{emit:n}){const t=o,s=n,{position:a}=ke(t),l=W(),{forwardRef:r,currentElement:i}=N();Qe(t.bodyLock),Ye(l.parentElement);const u=E(()=>t.position==="popper"?t:{}),k=Be(u.value),p={boxSizing:"border-box","--reka-combobox-content-transform-origin":"var(--reka-popper-transform-origin)","--reka-combobox-content-available-width":"var(--reka-popper-available-width)","--reka-combobox-content-available-height":"var(--reka-popper-available-height)","--reka-combobox-trigger-width":"var(--reka-popper-anchor-width)","--reka-combobox-trigger-height":"var(--reka-popper-anchor-height)"};St({position:a});const m=K(!1);return U(()=>{l.inputElement.value&&(m.value=i.value.contains(l.inputElement.value),m.value&&l.inputElement.value.focus())}),ye(()=>{var h;m.value&&((h=l.triggerElement.value)==null||h.focus())}),(h,x)=>(b(),C(e(Et),{"as-child":""},{default:c(()=>[$(e(ct),{"as-child":"","disable-outside-pointer-events":h.disableOutsidePointerEvents,onDismiss:x[0]||(x[0]=f=>e(l).onOpenChange(!1)),onFocusOutside:x[1]||(x[1]=f=>{var _;(_=e(l).parentElement.value)!=null&&_.contains(f.target)&&f.preventDefault(),s("focusOutside",f)}),onInteractOutside:x[2]||(x[2]=f=>s("interactOutside",f)),onEscapeKeyDown:x[3]||(x[3]=f=>s("escapeKeyDown",f)),onPointerDownOutside:x[4]||(x[4]=f=>{var _;(_=e(l).parentElement.value)!=null&&_.contains(f.target)&&f.preventDefault(),s("pointerDownOutside",f)})},{default:c(()=>[(b(),C(at(e(a)==="popper"?e(et):e(D)),I({...h.$attrs,...e(k)},{id:e(l).contentId,ref:e(r),"data-state":e(l).open.value?"open":"closed",style:{display:"flex",flexDirection:"column",outline:"none",...e(a)==="popper"?p:{}}}),{default:c(()=>[B(h.$slots,"default")]),_:3},16,["id","data-state","style"]))]),_:3},8,["disable-outside-pointer-events"])]),_:3}))}}),Ot=w({__name:"ComboboxContent",props:{forceMount:{type:Boolean},position:{},bodyLock:{type:Boolean},side:{},sideOffset:{},align:{},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},positionStrategy:{},updatePositionStrategy:{},disableUpdateOnLayoutShift:{type:Boolean},prioritizePosition:{type:Boolean},reference:{},asChild:{type:Boolean},as:{},disableOutsidePointerEvents:{type:Boolean}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside"],setup(o,{emit:n}){const a=me(o,n),{forwardRef:l}=N(),r=W();return r.contentId||(r.contentId=le(void 0,"reka-combobox-content")),(i,u)=>(b(),C(e(gt),{present:i.forceMount||e(r).open.value},{default:c(()=>[$(Vt,I({...e(a),...i.$attrs},{ref:e(l)}),{default:c(()=>[B(i.$slots,"default")]),_:3},16)]),_:3},8,["present"]))}}),Ft=w({__name:"ComboboxEmpty",props:{asChild:{type:Boolean},as:{}},setup(o){const n=o,t=W(),s=E(()=>t.ignoreFilter.value?t.allItems.value.size===0:!!t.filterState.search&&t.filterState.filtered.count===0);return(a,l)=>s.value?(b(),C(e(D),De(I({key:0},n)),{default:c(()=>[B(a.$slots,"default",{},()=>[l[0]||(l[0]=pe("No options"))])]),_:3},16)):q("",!0)}}),[Vo,Pt]=ae("ListboxGroup"),Kt=w({__name:"ListboxGroup",props:{asChild:{type:Boolean},as:{}},setup(o){const n=o,t=le(void 0,"reka-listbox-group");return Pt({id:t}),(s,a)=>(b(),C(e(D),I({role:"group"},n,{"aria-labelledby":e(t)}),{default:c(()=>[B(s.$slots,"default")]),_:3},16,["aria-labelledby"]))}}),[Ae,Lt]=ae("ComboboxGroup"),Tt=w({__name:"ComboboxGroup",props:{asChild:{type:Boolean},as:{}},setup(o){const n=o,t=le(void 0,"reka-combobox-group"),s=W(),a=E(()=>s.ignoreFilter.value?!0:s.filterState.search?s.filterState.filtered.groups.has(t):!0),l=Lt({id:t,labelId:""});return U(()=>{s.allGroups.value.has(t)||s.allGroups.value.set(t,new Set)}),ye(()=>{s.allGroups.value.delete(t)}),(r,i)=>(b(),C(e(Kt),I({id:e(t),"aria-labelledby":e(l).labelId},n,{hidden:a.value?void 0:!0}),{default:c(()=>[B(r.$slots,"default")]),_:3},16,["id","aria-labelledby","hidden"]))}}),Dt=w({__name:"ListboxFilter",props:{modelValue:{},autoFocus:{type:Boolean},disabled:{type:Boolean},asChild:{type:Boolean},as:{default:"input"}},emits:["update:modelValue"],setup(o,{emit:n}){const t=o,a=ue(t,"modelValue",n,{defaultValue:"",passive:t.modelValue===void 0}),l=Ce(),{primitiveElement:r,currentElement:i}=fe(),u=E(()=>t.disabled||l.disabled.value||!1),k=K();return lt(()=>{var p;return k.value=(p=l.highlightedElement.value)==null?void 0:p.id}),U(()=>{l.focusable.value=!1,setTimeout(()=>{var p;t.autoFocus&&((p=i.value)==null||p.focus())},1)}),ye(()=>{l.focusable.value=!0}),(p,m)=>(b(),C(e(D),{ref_key:"primitiveElement",ref:r,as:p.as,"as-child":p.asChild,value:e(a),disabled:u.value?"":void 0,"data-disabled":u.value?"":void 0,"aria-disabled":u.value??void 0,"aria-activedescendant":k.value,type:"text",onKeydown:[te(oe(e(l).onKeydownNavigation,["prevent"]),["down","up","home","end"]),te(e(l).onKeydownEnter,["enter"])],onInput:m[0]||(m[0]=h=>{a.value=h.target.value,e(l).highlightFirstItem(h)}),onCompositionstart:e(l).onCompositionStart,onCompositionend:e(l).onCompositionEnd},{default:c(()=>[B(p.$slots,"default",{modelValue:e(a)})]),_:3},8,["as","as-child","value","disabled","data-disabled","aria-disabled","aria-activedescendant","onKeydown","onCompositionstart","onCompositionend"]))}}),Rt=w({__name:"ComboboxInput",props:{displayValue:{},modelValue:{},autoFocus:{type:Boolean},disabled:{type:Boolean},asChild:{type:Boolean},as:{default:"input"}},emits:["update:modelValue"],setup(o,{emit:n}){const t=o,s=n,a=W(),l=Ce(),{primitiveElement:r,currentElement:i}=fe(),u=ue(t,"modelValue",s,{passive:t.modelValue===void 0});U(()=>{i.value&&a.onInputElementChange(i.value)});function k(h){a.open.value||a.onOpenChange(!0)}function p(h){const x=h.target;a.open.value?a.filterState.search=x.value:(a.onOpenChange(!0),H(()=>
1{x.value&&(a.filterState.search=x.value,l.highlightFirstItem(h))}))}function m(){const h=a.modelValue.value;t.displayValue?u.value=t.displayValue(h):!a.multiple.value&&h&&!Array.isArray(h)&&typeof h!="object"?u.value=h.toString():u.value="",H(()=>{u.value=u.value})}return a.onResetSearchTerm(()=>{m()}),ce(a.modelValue,async()=>{!a.isUserInputted.value&&a.resetSearchTermOnSelect.value&&m()},{immediate:!0,deep:!0}),ce(()=>t.modelValue,()=>{t.modelValue!==void 0&&(a.filterState.search=t.modelValue)}),(h,x)=>(b(),C(e(Dt),{ref_key:"primitiveElement",ref:r,modelValue:e(u),"onUpdate:modelValue":x[0]||(x[0]=f=>Ie(u)?u.value=f:null),as:h.as,"as-child":h.asChild,"auto-focus":h.autoFocus,"aria-expanded":e(a).open.value,"aria-controls":e(a).contentId,"aria-autocomplete":"list",role:"combobox",autocomplete:"false",onInput:p,onKeydown:te(oe(k,["prevent"]),["down","up"])},{default:c(()=>[B(h.$slots,"default")]),_:3},8,["modelValue","as","as-child","auto-focus","aria-expanded","aria-controls","onKeydown"]))}}),zt="listbox.select",[At,Mt]=ae("ListboxItem"),Ht=w({__name:"ListboxItem",props:{value:{},disabled:{type:Boolean},asChild:{type:Boolean},as:{default:"div"}},emits:["select"],setup(o,{emit:n}){const t=o,s=n,a=le(void 0,"reka-listbox-item"),{CollectionItem:l}=$e(),{forwardRef:r,currentElement:i}=N(),u=Ce(),k=E(()=>i.value===u.highlightedElement.value),p=E(()=>_t(u.modelValue.value,t.value,u.by)),m=E(()=>u.disabled.value||t.disabled);async function h(f){s("select",f),!(f!=null&&f.defaultPrevented)&&!m.value&&f&&(u.onValueChange(t.value),u.changeHighlight(i.value))}function x(f){const _={originalEvent:f,value:t.value};pt(zt,h,_)}return Mt({isSelected:p}),(f,_)=>(b(),C(e(l),{value:f.value},{default:c(()=>[st([k.value,p.value],()=>$(e(D),I({id:e(a)},f.$attrs,{ref:e(r),role:"option",tabindex:e(u).focusable.value?k.value?"0":"-1":-1,"aria-selected":p.value,as:f.as,"as-child":f.asChild,disabled:m.value?"":void 0,"data-disabled":m.value?"":void 0,"data-highlighted":k.value?"":void 0,"data-state":p.value?"checked":"unchecked",onClick:x,onKeydown:te(oe(x,["prevent"]),["space"]),onPointermove:_[0]||(_[0]=T=>{e(u).highlightedElement.value!==e(i)&&(e(u).highlightOnHover.value?e(u).changeHighlight(e(i),!1):e(u).focusable.value||e(u).changeHighlight(e(i),!1))})}),{default:c(()=>[B(f.$slots,"default")]),_:3},16,["id","tabindex","aria-selected","as","as-child","disabled","data-disabled","data-highlighted","data-state","onKeydown"]),_,1)]),_:3},8,["value"]))}}),qt=w({__name:"ComboboxItem",props:{textValue:{},value:{},disabled:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["select"],setup(o,{emit:n}){const t=o,s=n,a=le(void 0,"reka-combobox-item"),l=W(),r=Ae(null),{primitiveElement:i,currentElement:u}=fe();if(t.value==="")throw new Error("A <ComboboxItem /> must have a value prop that is not an empty string. This is because the Combobox value can be set to an empty string to clear the selection and show the placeholder.");const k=E(()=>
1{if(l.isVirtual.value||l.ignoreFilter.value||!l.filterState.search)return!0;{const p=l.filterState.filtered.items.get(a);return p===void 0?!0:p>0}});return U(()=>{var m;l.allItems.value.set(a,t.textValue||u.value.textContent||u.value.innerText);const p=r==null?void 0:r.id;p&&(l.allGroups.value.has(p)?(m=l.allGroups.value.get(p))==null||m.add(a):l.allGroups.value.set(p,new Set([a])))}),ye(()=>{l.allItems.value.delete(a)}),(p,m)=>k.value?(b(),C(e(Ht),I({key:0},t,{id:e(a),ref_key:"primitiveElement",ref:i,disabled:e(l).disabled.value||p.disabled,onSelect:m[0]||(m[0]=h=>{s("select",h),!h.defaultPrevented&&!e(l).multiple.value&&!p.disabled&&!e(l).disabled.value&&(h.preventDefault(),e(l).onOpenChange(!1),e(l).modelValue.value=t.value)})}),{default:c(()=>[B(p.$slots,"default",{},()=>[pe(ge(p.value),1)])]),_:3},16,["id","disabled"])):q("",!0)}}),jt=w({__name:"ListboxItemIndicator",props:{asChild:{type:Boolean},as:{default:"span"}},setup(o){const n=o;N();const t=At();return(s,a)=>e(t).isSelected.value?(b(),C(e(D),I({key:0,"aria-hidden":"true"},n),{default:c(()=>[B(s.$slots,"default")]),_:3},16)):q("",!0)}}),Gt=w({__name:"ComboboxItemIndicator",props:{asChild:{type:Boolean},as:{default:"span"}},setup(o){const n=o;return(t,s)=>(b(),C(e(jt),De(nt(n)),{default:c(()=>[B(t.$slots,"default")]),_:3},16))}}),Nt=w({__name:"ComboboxLabel",props:{for:{},asChild:{type:Boolean},as:{default:"div"}},setup(o){const n=o;N();const t=Ae({id:"",labelId:""});return t.labelId||(t.labelId=le(void 0,"reka-combobox-group-label")),(s,a)=>(b(),C(e(D),I(n,{id:e(t).labelId}),{default:c(()=>[B(s.$slots,"default")]),_:3},16,["id"]))}}),Ut=w({__name:"ComboboxTrigger",props:{disabled:{type:Boolean},asChild:{type:Boolean},as:{default:"button"}},setup(o){const n=o,{forwardRef:t,currentElement:s}=N(),a=W(),l=E(()=>n.disabled||a.disabled.value||!1);return U(()=>{s.value&&a.onTriggerElementChange(s.value)}),(r,i)=>(b(),C(e(D),I(n,{ref:e(t),type:r.as==="button"?"button":void 0,tabindex:"-1","aria-label":"Show popup","aria-haspopup":"listbox","aria-expanded":e(a).open.value,"aria-controls":e(a).contentId,"data-state":e(a).open.value?"open":"closed",disabled:l.value,"data-disabled":l.value?"":void 0,"aria-disabled":l.value??void 0,onClick:i[0]||(i[0]=u=>e(a).onOpenChange(!e(a).open.value))}),{default:c(()=>[B(r.$slots,"default")]),_:3},16,["type","aria-expanded","aria-controls","data-state","disabled","data-disabled","aria-disabled"]))}});/**
2 * @license lucide-vue-next v0.511.0 - ISC
3 *
4 * This source code is licensed under the ISC license.
5 * See the LICENSE file in the root directory of this source tree.
6 */const Le=o=>o.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Wt=o=>o.replace(/^([A-Z])|[\s-_]+(\w)/g,(n,t,s)=>s?s.toUpperCase():t.toLowerCase()),Zt=o=>{const n=Wt(o);return n.charAt(0).toUpperCase()+n.slice(1)},Xt=(...o)=>o.filter((n,t,s)=>!!n&&n.trim()!==""&&s.indexOf(n)===t).join(" ").trim();/**
7 * @license lucide-vue-next v0.511.0 - ISC
8 *
9 * This source code is licensed under the ISC license.
10 * See the LICENSE file in the root directory of this source tree.
11 */var ve={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};/**
12 * @license lucide-vue-next v0.511.0 - ISC
13 *
14 * This source code is licensed under the ISC license.
15 * See the LICENSE file in the root directory of this source tree.
16 */const Jt=({size:o,strokeWidth:n=2,absoluteStrokeWidth:t,color:s,iconNode:a,name:l,class:r,...i},{slots:u})=>we("svg",{...ve,width:o||ve.width,height:o||ve.height,stroke:s||ve.stroke,"stroke-width":t?Number(n)*24/Number(o):n,class:Xt("lucide",...l?[`lucide-${Le(Zt(l))}-icon`,`lucide-${Le(l)}`]:["lucide-icon"]),...i},[...a.map(k=>we(...k)),...u.default?[u.default()]:[]]);/**
17 * @license lucide-vue-next v0.511.0 - ISC
18 *
19 * This source code is licensed under the ISC license.
20 * See the LICENSE file in the root directory of this source tree.
21 */const Me=(o,n)=>(t,{slots:s})=>we(Jt,{...t,iconNode:n,name:o},s);/**
22 * @license lucide-vue-next v0.511.0 - ISC
23 *
24 * This source code is licensed under the ISC license.
25 * See the LICENSE file in the root directory of this source tree.
26 */const Qt=Me("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
27 * @license lucide-vue-next v0.511.0 - ISC
28 *
29 * This source code is licensed under the ISC license.
30 * See the LICENSE file in the root directory of this source tree.
31 */const He=Me("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]),Yt=w({__name:"Combobox",props:{open:{type:Boolean},defaultOpen:{type:Boolean},resetSearchTermOnBlur:{type:Boolean},resetSearchTermOnSelect:{type:Boolean},ignoreFilter:{type:Boolean},modelValue:{},defaultValue:{},multiple:{type:Boolean},dir:{},disabled:{type:Boolean},highlightOnHover:{type:Boolean},by:{type:[String,Function]},asChild:{type:Boolean},as:{},name:{},required:{type:Boolean},class:{}},emits:["update:modelValue","highlight","update:open"],setup(o,{emit:n}){const t=o,a=me(t,n);return(l,r)=>(b(),C(e($t),I(e(a),{"data-slot":"combobox","ignore-filter":!0,class:["combobox",t.class]}),{default:c(()=>[B(l.$slots,"default")]),_:3},16,["class"]))}}),eo=w({__name:"ComboboxAnchor",props:{reference:{},asChild:{type:Boolean},as:{},class:{}},setup(o){const n=o,t=E(()=>{const{class:a,...l}=n;return l}),s=Be(t);return(a,l)=>(b(),C(e(Ct),I({"data-slot":"combobox-anchor"},e(s),{tabindex:"0",class:e(j)("w-full",n.class)}),{default:c(()=>[B(a.$slots,"default")]),_:3},16,["class"]))}}),to=w({__name:"ComboboxLoading",props:{class:{}},setup(o){const n=o,t=E(()=>{const{class:s,...a}=n;return a});return(s,a)=>(b(),re("div",I({"data-slot":"combobox-loading"},t.value,{class:e(j)("py-6 text-center mx-auto text-sm",n.class)}),[B(s.$slots,"default")],16))}}),oo=w({__name:"ComboboxEmpty",props:{asChild:{type:Boolean},as:{},class:{}},setup(o){const n=o,t=E(()=>{const{class:s,...a}=n;return a});return(s,a)=>(b(),C(e(Ft),I({"data-slot":"combobox-empty"},t.value,{class:e(j)("py-6 text-center text-sm",n.class)}),{default:c(()=>[B(s.$slots,"default")]),_:3},16,["class"]))}}),ao=w({__name:"ComboboxGroup",props:{asChild:{type:Boolean},as:{},class:{},heading:{}},setup(o){const n=o,t=E(()=>{const{class:s,...a}=n;return a});return(s,a)=>(b(),C(e(Tt),I({"data-slot":"combobox-group"},t.value,{class:e(j)("overflow-hidden p-1 text-foreground",n.class)}),{default:c(()=>[o.heading?(b(),C(e(Nt),{key:0,class:"px-2 py-1.5 text-xs font-medium text-muted-foreground"},{default:c(()=>
31[pe(ge(o.heading),1)]),_:1})):q("",!0),B(s.$slots,"default")]),_:3},16,["class"]))}}),lo={"data-slot":"command-input-wrapper",class:"flex h-10 items-center gap-2 px-3 focus-within:ring-gradient-primary-inset rounded-md"},so=w({inheritAttrs:!1,__name:"ComboboxInput",props:{displayValue:{type:Function},modelValue:{},autoFocus:{type:Boolean},disabled:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},emits:["update:modelValue"],setup(o,{emit:n}){const t=o,s=n,a=E(()=>{const{class:r,...i}=t;return i}),l=me(a,s);return(r,i)=>(b(),re("div",lo,[$(e(He),{class:"size-4 shrink-0 opacity-50"}),$(e(Rt),I({"data-slot":"command-input",class:e(j)("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50 focus-ring-hidden",t.class)},{...e(l),...r.$attrs}),{default:c(()=>[B(r.$slots,"default")]),_:3},16,["class"])]))}}),no=w({__name:"ComboboxItem",props:{textValue:{},value:{},disabled:{type:Boolean},asChild:{type:Boolean},as:{},class:{}},emits:["select"],setup(o,{emit:n}){const t=o,s=n,a=E(()=>{const{class:r,...i}=t;return i}),l=me(a,s);return(r,i)=>(b(),C(e(qt),I({"data-slot":"combobox-item"},e(l),{class:e(j)("data-[highlighted]:bg-gray-200/50 dark:data-[highlighted]:bg-gray-500/50 text-gray-500 dark:text-gray-100 [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-pointer items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 data-[state=checked]:bg-gray-200/75 dark:data-[state=checked]:bg-gray-500/75",t.class)}),{default:c(()=>[B(r.$slots,"default")]),_:3},16,["class"]))}}),io=w({__name:"ComboboxItemIndicator",props:{asChild:{type:Boolean},as:{},class:{}},setup(o){const n=o,t=E(()=>{const{class:a,...l}=n;return l}),s=Be(t);return(a,l)=>(b(),C(e(Gt),I({"data-slot":"combobox-item-indicator"},e(s),{class:e(j)("ml-auto",n.class)}),{default:c(()=>[B(a.$slots,"default")]),_:3},16,["class"]))}}),ro=w({__name:"ComboboxList",props:{forceMount:{type:Boolean},position:{default:"popper"},bodyLock:{type:Boolean},side:{},sideOffset:{default:4},align:{default:"center"},alignOffset:{},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},sticky:{},hideWhenDetached:{type:Boolean},positionStrategy:{},updatePositionStrategy:{},disableUpdateOnLayoutShift:{type:Boolean},prioritizePosition:{type:Boolean},reference:{},asChild:{type:Boolean},as:{},disableOutsidePointerEvents:{type:Boolean},class:{default:void 0},viewportClass:{default:void 0}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside"],setup(o,{emit:n}){const t=o,s=n,a=Ze(t,"class","viewportClass"),l=me(a,s);return(r,i)=>(b(),C(e(Ot),I({"data-slot":"combobox-list"},e(l),{class:e(j)("z-50 w-72 rounded-md border backdrop-blur-sm bg-white/5 dark:bg-gray-700/50 text-gray-600 shadow-md outline-hidden  border-gray-200 dark:border-gray-600 dark:text-gray-200",t.class)}),{default:c(()=>[B(r.$slots,"default")]),_:3},16,["class"]))}}),uo=w({__name:"ComboboxClear",props:{class:{}},emits:["onClick"],setup(o,{emit:n}){const t=n;return(s,a)=>{const l=ze;return b(),C(l,{variant:"ghost",class:"absolute top-0 end-10",label:Re(s.$t("generic.clear")),icon:"tabler:x","is-icon-only":"",onOnClick:a[0]||(a[0]=r=>t("onClick"))},null,8,["label"])}}}),co={class:"w-full"},po={key:0,class:"relative w-full max-w-sm items-center"},mo={class:"absolute start-0 inset-y-0 flex items-center justify-center px-3"},Oo=w({__name:"ComboboxField",props:Oe({placeholder:{},options:{},class:{default:void 0},isLoading:{type:Boolean},isDisabled:{type:Boolean},isSearchable:{type:Boolean},isClearable:{type:Boolean,default:!0},emptyText:{default:void 0},label:{},isStandalone:{type:Boolean},isRequired:{type:Boolean},supportingText:{default:void 0},error:{default:void 0},fieldClass:{}},{modelValue:{},modelModifiers:{}}),emits:Oe(["onSearch","onOpen","onClose"],["update:modelValue"]),setup(o,{emit:n}){const t=o,s=n,a=it(o,"modelValue"),l=K(!1),r=rt(),i=()=>{a.value=void 0},u=p=>{var m,h;a.value===((m=p.detail.value)==null?void 0:m.value)&&t.isClearable?a.value=void 0:a.value=(h=p.detail.value)==null?void 0:h.value,l.value=!1},k=()=>{l.value?s("onOpen"):s("onClose")};return(p,m)=>{const h=uo,x=dt,f=yt;return b(),C(e(Yt),{"model-value":a.value,"onUpdate:modelValue":m[2]||(m[2]=_=>a.value=_),open:e(l),"onUpdate:open":[m[3]||(m[3]=_=>Ie(l)?l.value=_:null),k],by:"label",class:Fe(t.class),placeholder:o.placeholder},{default:c(()=>[$(f,{"field-id":e(r),label:o.label,"supporting-text":o.supportingText,"is-standalone":o.isStandalone,"is-required":o.isRequired,error:o.error,"field-class":o.fieldClass},{default:c(()=>[$(e(eo),{class:"relative","as-child":""},{default:c(()=>[$(e(Ut),{"as-child":""},{default:c(()=>{var _,T;return[Pe("div",co,[$(e(ze),{label:((_=o.options.find(R=>R.value===a.value))==null?void 0:_.label)??o.placeholder,variant:"outline",class:Fe(["text-base font-normal flex h-10 px-4 sm:px-6 w-full shadow-md border rounded-lg backdrop-blur-md border-gray-200 dark:border-gray-600 bg-white/5 leading-normal justify-between",{"text-gray-400 dark:text-gray-300":!((T=o.options.find(R=>R.value===a.value))!=null&&T.label)},{"bg-white/15":o.isDisabled}]),icon:"tabler:selector","icon-position":"end","icon-class":"text-gray-600 dark:text-gray-100"},null,8,["label","class"]),a.value&&o.isClearable?(b(),C(h,{key:0,class:"z-10",onOnClick:i})):q("",!0)])]}),_:1})]),_:1}),$(e(ro),null,{default:c(()=>[o.isSearchable?(b(),re("div",po,[$(e(so),{placeholder:o.placeholder,"onUpdate:modelValue":m[0]||(m[0]=_=>s("onSearch",_))},null,8,["placeholder"]),Pe("span",mo,[$(e(He),{class:"size-4 text-muted-foreground"})])])):q("",!0),o.isLoading?(b(),C(e(to),{key:1},{default:c(()=>[$(x,{name:"svg-spinners:90-ring-with-bg","aria-hidden":"true",size:"2em"})]),_:1}
31)):(b(),re(Ke,{key:2},[$(e(oo),null,{default:c(()=>[pe(ge(Re(o.emptyText||p.$t("search.no_results"))),1)]),_:1}),$(e(ao),null,{default:c(()=>[(b(!0),re(Ke,null,ut(o.options,_=>(b(),C(e(no),{key:_.value,value:_,onSelect:m[1]||(m[1]=oe(T=>u(T),["prevent"]))},{default:c(()=>[_.icon?(b(),C(x,{key:0,class:"mr-1 me-2 text-gray-200",name:_.icon,size:"1rem"},null,8,["name"])):q("",!0),pe(" "+ge(_.label)+" ",1),$(e(io),null,{default:c(()=>[$(e(Qt),{class:"ml-auto me-2 size-5 text-gray-200"})]),_:1})]),_:2},1032,["value"]))),128))]),_:1})],64))]),_:1})]),_:1},8,["field-id","label","supporting-text","is-standalone","is-required","error","field-class"])]),_:1},8,["model-value","open","class","placeholder"])}}});export{Qt as C,Oo as _};

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.