PageSourceSearch

https://www.lossburg.de/_nuxt/BVR94UID.js

js lossburg.de collected 2026-09-25 04:06:06 UTC 23,593 bytes, 2 lines download raw bytes

vendor: 12,753 bytes, line 1
1import{r as B,S as Z,ay as F,I as U,aI as Oe,a6 as $e,aJ as Be,al as Re,a0 as Ce,o as M,a as k,k as E,z as j,j as z,h as $,b as K,i as le,D as ue,m as Q,Z as Y,F as he,l as de,y as fe,T as Te,n as ge,v as Fe,K as je,aG as Pe,aM as De,a4 as pe,aO as Ve,B as me}from"./BIKxOawu.js";import{u as Ke}from"./CEvSsju1.js";import{o as We}from"./CbbvwExJ.js";function C(t){return Array.isArray?Array.isArray(t):Se(t)==="[object Array]"}const ze=1/0;function He(t){if(typeof t=="string")return t;let e=t+"";return e=="0"&&1/t==-ze?"-0":e}function Ge(t){return t==null?"":He(t)}function R(t){return typeof t=="string"}function ke(t){return typeof t=="number"}function Ye(t){return t===!0||t===!1||qe(t)&&Se(t)=="[object Boolean]"}function Ee(t){return typeof t=="object"}function qe(t){return Ee(t)&&t!==null}function S(t){return t!=null}function X(t){return!t.trim().length}function Se(t){return t==null?t===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}const Ue="Incorrect 'index' type",Je=t=>`Invalid value for key ${t}`,Qe=t=>`Pattern length exceeds max of ${t}.`,Xe=t=>`Missing ${t} property in key`,Ze=t=>`Property 'weight' in key '${t}' must be a positive integer`,ye=Object.prototype.hasOwnProperty;class et{constructor(e){this._keys=[],this._keyMap={};let s=0;e.forEach(n=>{let r=Ie(n);this._keys.push(r),this._keyMap[r.id]=r,s+=r.weight}),this._keys.forEach(n=>{n.weight/=s})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function Ie(t){let e=null,s=null,n=null,r=1,i=null;if(R(t)||C(t))n=t,e=ve(t),s=ee(t);else{if(!ye.call(t,"name"))throw new Error(Xe("name"));const a=t.name;if(n=a,ye.call(t,"weight")&&(r=t.weight,r<=0))throw new Error(Ze(a));e=ve(a),s=ee(a),i=t.getFn}return{path:e,id:s,weight:r,src:n,getFn:i}}function ve(t){return C(t)?t:t.split(".")}function ee(t){return C(t)?t.join("."):t}function tt(t,e){let s=[],n=!1;const r=(i,a,o)=>{if(S(i))if(!a[o])s.push(i);else{let l=a[o];const u=i[l];if(!S(u))return;if(o===a.length-1&&(R(u)||ke(u)||Ye(u)))s.push(Ge(u));else if(C(u)){n=!0;for(let h=0,f=u.length;h<f;h+=1)r(u[h],a,o+1)}else a.length&&r(u,a,o+1)}};return r(t,R(e)?e.split("."):e,0),n?s:s[0]}const st={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},nt={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(t,e)=>t.score===e.score?t.idx<e.idx?-1:1:t.score<e.score?-1:1},rt={location:0,threshold:.6,distance:100},it={useExtendedSearch:!1,getFn:tt,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var d={...nt,...st,...rt,...it};const at=/[^ ]+/g;function ot(t=1,e=3){const s=new Map,n=Math.pow(10,e);return{get(r){const i=r.match(at).length;if(s.has(i))return s.get(i);const a=1/Math.pow(i,.5*t),o=parseFloat(Math.round(a*n)/n);return s.set(i,o),o},clear(){s.clear()}}}class ae{constructor({getFn:e=d.getFn,fieldNormWeight:s=d.fieldNormWeight}={}){this.norm=ot(s,3),this.getFn=e,this.isCreated=!1,this.setIndexRecords()}setSources(e=[]){this.docs=e}setIndexRecords(e=[]){this.records=e}setKeys(e=[]){this.keys=e,this._keysMap={},e.forEach((s,n)=>{this._keysMap[s.id]=n})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,R(this.docs[0])?this.docs.forEach((e,s)=>{this._addString(e,s)}):this.docs.forEach((e,s)=>{this._addObject(e,s)}),this.norm.clear())}add(e){const s=this.size();R(e)?this._addString(e,s):this._addObject(e,s)}removeAt(e){this.records.splice(e,1);for(let s=e,n=this.size();s<n;s+=1)this.records[s].i-=1}getValueForItemAtKeyId(e,s){return e[this._keysMap[s]]}size(){return this.records.length}_addString(e,s){if(!S(e)||X(e))return;let n={v:e,i:s,n:this.norm.get(e)};this.records.push(n)}_addObject(e,s){let n={i:s,$:{}};this.keys.forEach((r,i)=>{let a=r.getFn?r.getFn(e):this.getFn(e,r.path);if(S(a)){if(C(a)){let o=[];const l=[{nestedArrIndex:-1,value:a}];for(;l.length;){const{nestedArrIndex:u,value:h}=l.pop();if(S(h))if(R(h)&&!X(h)){let f={v:h,i:u,n:this.norm.get(h)};o.push(f)}else C(h)&&h.forEach((f,c)=>{l.push({nestedArrIndex:c,value:f})})}n.$[i]=o}else if(R(a)&&!X(a)){let o={v:a,n:this.norm.get(a)};n.$[i]=o}}}),this.records.push(n)}toJSON(){return{keys:this.keys,records:this.records}}}function we(t,e,{getFn:s=d.getFn,fieldNormWeight:n=d.fieldNormWeight}={}){const r=new ae({getFn:s,fieldNormWeight:n});return r.setKeys(t.map(Ie)),r.setSources(e),r.create(),r}function ct(t,{getFn:e=d.getFn,fieldNormWeight:s=d.fieldNormWeight}={}){const{keys:n,records:r}=t,i=new ae({getFn:e,fieldNormWeight:s});return i.setKeys(n),i.setIndexRecords(r),i}function q(t,{errors:e=0,currentLocation:s=0,expectedLocation:n=0,distance:r=d.distance,ignoreLocation:i=d.ignoreLocation}={}){const a=e/t.length;if(i)return a;const o=Math.abs(n-s);return r?a+o/r:o?1:a}function lt(t=[],e=d.minMatchCharLength){let s=[],n=-1,r=-1,i=0;for(let a=t.length;i<a;i+=1){let o=t[i];o&&n===-1?n=i:!o&&n!==-1&&(r=i-1,r-n+1>=e&&s.push([n,r]),n=-1)}return t[i-1]&&i-n>=e&&s.push([n,i-1]),s}const V=32;function ut(t,e,s,{location:n=d.location,distance:r=d.distance,threshold:i=d.threshold,findAllMatches:a=d.findAllMatches,minMatchCharLength:o=d.minMatchCharLength,includeMatches:l=d.includeMatches,ignoreLocation:u=d.ignoreLocation}={}){if(e.length>V)throw new Error(Qe(V));const h=e.length,f=t.length,c=Math.max(0,Math.min(n,f));let m=i,p=c;const x=o>1||l,L=x?Array(f):[];let I;for(;(I=t.indexOf(e,p))>-1;){let g=q(e,{currentLocation:I,expectedLocation:c,distance:r,ignoreLocation:u});if(m=Math.min(g,m),p=I+h,x){let w=0;for(;w<h;)L[I+w]=1,w+=1}}p=-1;let T=[],N=1,b=h+f;const _=1<<h-1;for(let g=0;g<h;g+=1){let w=0,O=b;for(;w<O;)q(e,{errors:g,currentLocation:c+O,expectedLocation:c,distance:r,ignoreLocation:u})<=m?w=O:b=O,O=Math.floor((b-w)/2+w);b=O;let H=Math.max(1,c-O+1),D=a?f:Math.min(c+O,f)+h,v=Array(D+2);v[D+1]=(1<<g)-1;for(let A=D;A>=H;A-=1){let G=A-1,ce=s[t.charAt(G)];if(x&&(L[G]=+!!ce),v[A]=(v[A+1]<<1|1)&ce,g&&(v[A]|=(T[A+1]|T[A])<<1|1|T[A+1]),v[A]&_&&(N=q(e,{errors:g,currentLocation:G,expectedLocation:c,distance:r,ignoreLocation:u}),N<=m)){if(m=N,p=G,p<=c)break;H=Math.max(1,2*c-p)}}if(q(e,{errors:g+1,currentLocation:c,expectedLocation:c,distance:r,ignoreLocation:u})>m)break;T=v}const y={isMatch:p>=0,score:Math.max(.001,N)};if(x){const g=lt(L,o);g.length?l&&(y.indices=g):y.isMatch=!1}return y}function ht(t){let e={};for(let s=0,n=t.length;s<n;s+=1){const r=t.charAt(s);e[r]=(e[r]||0)|1<<n-s-1}return e}class _e{constructor(e,{location:s=d.location,threshold:n=d.threshold,distance:r=d.distance,includeMatches:i=d.includeMatches,findAllMatches:a=d.findAllMatches,minMatchCharLength:o=d.minMatchCharLength,isCaseSensitive:l=d.isCaseSensitive,ignoreLocation:u=d.ignoreLocation}={}){if(this.options={location:s,threshold:n,distance:r,includeMatches:i,findAllMatches:a,minMatchCharLength:o,isCaseSensitive:l,ignoreLocation:u},this.pattern=l?e:e.toLowerCase(),this.chunks=[],!this.pattern.length)return;const h=(c,m)=>{this.chunks.push({pattern:c,alphabet:ht(c),startIndex:m})},f=this.pattern.length;if(f>V){let c=0;const m=f%V,p=f-m;for(;c<p;)h(this.pattern.substr(c,V),c),c+=V;if(m){const x=f-V;h(this.pattern.substr(x),x)}}else h(this.pattern,0)}searchIn(e){const{isCaseSensitive:s,includeMatches:n}=this.options;if(s||(e=e.toLowerCase()),this.pattern===e){let p={isMatch:!0,score:0};return n&&(p.indices=[[0,e.length-1]]),p}const{location:r,distance:i,threshold:a,findAllMatches:o,minMatchCharLength:l,ignoreLocation:u}=this.options;let h=[],f=0,c=!1;this.chunks.forEach(({pattern:p,alphabet:x,startIndex:L})=>{const{isMatch:I,score:T,indices:N}=ut(e,p,x,{location:r+L,distance:i,threshold:a,findAllMatches:o,minMatchCharLength:l,includeMatches:n,ignoreLocation:u});I&&(c=!0),f+=T,I&&N&&(h=[...h,...N])});let m={isMatch:c,score:c?f/this.chunks.length:1};return c&&n&&(m.indices=h),m}}class P{constructor(e){this.pattern=e}static isMultiMatch(e){return xe(e,this.multiRegex)}static isSingleMatch(e){return xe(e,this.singleRegex)}search(){}}function xe(t,e){const s=t.match(e);return s?s[1]:null}class dt extends P{constructor(e){super(e)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(e){const s=e===this.pattern;return{isMatch:s,score:s?0:1,indices:[0,this.pattern.length-1]}}}class ft extends P{constructor(e){super(e)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(e){const n=e.indexOf(this.pattern)===-1;return{isMatch:n,score:n?0:1,indices:[0,e.length-1]}}}class gt extends P{constructor(e){super(e)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(e){const s=e.startsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[0,this.pattern.length-1]}}}class pt extends P{constructor(e){super(e)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(e){const s=!e.startsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[0,e.length-1]}}}class mt extends P{constructor(e){super(e)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(e){const s=e.endsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[e.length-this.pattern.length,e.length-1]}}}class yt extends P{constructor(e){super(e)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(e){const s=!e.endsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[0,e.length-1]}}}class Ae extends P{constructor(e,{location:s=d.location,threshold:n=d.threshold,distance:r=d.distance,includeMatches:i=d.includeMatches,findAllMatches:a=d.findAllMatches,minMatchCharLength:o=d.minMatchCharLength,isCaseSensitive:l=d.isCaseSensitive,ignoreLocation:u=d.ignoreLocation}={}){super(e),this._bitapSearch=new _e(e,{location:s,threshold:n,distance:r,includeMatches:i,findAllMatches:a,minMatchCharLength:o,isCaseSensitive:l,ignoreLocation:u})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}}class Le extends P{constructor(e){super(e)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let s=0,n;const r=[],i=this.pattern.length;for(;(n=e.indexOf(this.pattern,s))>-1;)s=n+i,r.push([n,s-1]);const a=!!r.length;return{isMatch:a,score:a?0:1,indices:r}}}const te=[dt,Le,gt,pt,yt,mt,ft,Ae],be=te.length,vt=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,xt="|";function bt(t,e={}){return t.split(xt).map(s=>{let n=s.trim().split(vt).filter(i=>i&&!!i.trim()),r=[];for(let i=0,a=n.length;i<a;i+=1){const o=n[i];let l=!1,u=-1;for(;!l&&++u<be;){const h=te[u];let f=h.isMultiMatch(o);f&&(r.push(new h(f,e)),l=!0)}if(!l)for(u=-1;++u<be;){const h=te[u];let f=h.isSingleMatch(o);if(f){r.push(new h(f,e));break}}}return r})}const Mt=new Set([Ae.type,Le.type]);class kt{constructor(e,{isCaseSensitive:s=d.isCaseSensitive,includeMatches:n=d.includeMatches,minMatchCharLength:r=d.minMatchCharLength,ignoreLocation:i=d.ignoreLocation,findAllMatches:a=d.findAllMatches,location:o=d.location,threshold:l=d.threshold,distance:u=d.distance}={}){this.query=null,this.options={isCaseSensitive:s,includeMatches:n,minMatchCharLength:r,findAllMatches:a,ignoreLocation:i,location:o,threshold:l,distance:u},this.pattern=s?e:e.toLowerCase(),this.query=bt(this.pattern,this.options)}static condition(e,s){return s.useExtendedSearch}searchIn(e){const s=this.query;if(!s)return{isMatch:!1,score:1};const{includeMatches:n,isCaseSensitive:r}=this.options;e=r?e:e.toLowerCase();let i=0,a=[],o=0;for(let l=0,u=s.length;l<u;l+=1){const h=s[l];a.length=0,i=0;for(let f=0,c=h.length;f<c;f+=1){const m=h[f],{isMatch:p,indices:x,score:L}=m.search(e);if(p){if(i+=1,o+=L,n){const I=m.constructor.type;Mt.has(I)?a=[...a,...x]:a.push(x)}}else{o=0,i=0,a.length=0;break}}if(i){let f={isMatch:!0,score:o/i};return n&&(f.indices=a),f}}return{isMatch:!1,score:1}}}const se=[];function Et(...t){se.push(...t)}function ne(t,e){for(let s=0,n=se.length;s<n;s+=1){let r=se[s];if(r.condition(t,e))return new r(t,e)}return new _e(t,e)}const J={AND:"$and",OR:"$or"},re={PATH:"$path",PATTERN:"$val"},ie=t=>!!(t[J.AND]||t[J.OR]),St=t=>!!t[re.PATH],It=t=>!C(t)&&Ee(t)&&!ie(t),Me=t=>({[J.AND]:Object.keys(t).map(e=>({[e]:t[e]}))});function Ne(t,e,{auto:s=!0}={}){const n=r=>{let i=Object.keys(r);const a=St(r);if(!a&&i.length>1&&!ie(r))return n(Me(r));if(It(r)){const l=a?r[re.PATH]:i[0],u=a?r[re.PATTERN]:r[l];if(!R(u))throw new Error(Je(l));const h={keyId:ee(l),pattern:u};return s&&(h.searcher=ne(u,e)),h}let o={children:[],operator:i[0]};
1return i.forEach(l=>{const u=r[l];C(u)&&u.forEach(h=>{o.children.push(n(h))})}),o};return ie(t)||(t=Me(t)),n(t)}function wt(t,{ignoreFieldNorm:e=d.ignoreFieldNorm}){t.forEach(s=>{let n=1;s.matches.forEach(({key:r,norm:i,score:a})=>{const o=r?r.weight:null;n*=Math.pow(a===0&&o?Number.EPSILON:a,(o||1)*(e?1:i))}),s.score=n})}function _t(t,e){const s=t.matches;e.matches=[],S(s)&&s.forEach(n=>{if(!S(n.indices)||!n.indices.length)return;const{indices:r,value:i}=n;let a={indices:r,value:i};n.key&&(a.key=n.key.src),n.idx>-1&&(a.refIndex=n.idx),e.matches.push(a)})}function At(t,e){e.score=t.score}function Lt(t,e,{includeMatches:s=d.includeMatches,includeScore:n=d.includeScore}={}){const r=[];return s&&r.push(_t),n&&r.push(At),t.map(i=>{const{idx:a}=i,o={item:e[a],refIndex:a};return r.length&&r.forEach(l=>{l(i,o)}),o})}class W{constructor(e,s={},n){this.options={...d,...s},this.options.useExtendedSearch,this._keyStore=new et(this.options.keys),this.setCollection(e,n)}setCollection(e,s){if(this._docs=e,s&&!(s instanceof ae))throw new Error(Ue);this._myIndex=s||we(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){S(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(e=()=>!1){const s=[];for(let n=0,r=this._docs.length;n<r;n+=1){const i=this._docs[n];e(i,n)&&(this.removeAt(n),n-=1,r-=1,s.push(i))}return s}removeAt(e){this._docs.splice(e,1),this._myIndex.removeAt(e)}getIndex(){return this._myIndex}search(e,{limit:s=-1}={}){const{includeMatches:n,includeScore:r,shouldSort:i,sortFn:a,ignoreFieldNorm:o}=this.options;let l=R(e)?R(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return wt(l,{ignoreFieldNorm:o}),i&&l.sort(a),ke(s)&&s>-1&&(l=l.slice(0,s)),Lt(l,this._docs,{includeMatches:n,includeScore:r})}_searchStringList(e){const s=ne(e,this.options),{records:n}=this._myIndex,r=[];return n.forEach(({v:i,i:a,n:o})=>{if(!S(i))return;const{isMatch:l,score:u,indices:h}=s.searchIn(i);l&&r.push({item:i,idx:a,matches:[{score:u,value:i,norm:o,indices:h}]})}),r}_searchLogical(e){const s=Ne(e,this.options),n=(o,l,u)=>{if(!o.children){const{keyId:f,searcher:c}=o,m=this._findMatches({key:this._keyStore.get(f),value:this._myIndex.getValueForItemAtKeyId(l,f),searcher:c});return m&&m.length?[{idx:u,item:l,matches:m}]:[]}const h=[];for(let f=0,c=o.children.length;f<c;f+=1){const m=o.children[f],p=n(m,l,u);if(p.length)h.push(...p);else if(o.operator===J.AND)return[]}return h},r=this._myIndex.records,i={},a=[];return r.forEach(({$:o,i:l})=>{if(S(o)){let u=n(s,o,l);u.length&&(i[l]||(i[l]={idx:l,item:o,matches:[]},a.push(i[l])),u.forEach(({matches:h})=>{i[l].matches.push(...h)}))}}),a}_searchObjectList(e){const s=ne(e,this.options),{keys:n,records:r}=this._myIndex,i=[];return r.forEach(({$:a,i:o})=>{if(!S(a))return;let l=[];n.forEach((u,h)=>{l.push(...this._findMatches({key:u,value:a[h],searcher:s}))}),l.length&&i.push({idx:o,item:a,matches:l})}),i}_findMatches({key:e,value:s,searcher:n}){if(!S(s))return[];let r=[];if(C(s))s.forEach(({v:i,i:a,n:o})=>{if(!S(i))return;const{isMatch:l,score:u,indices:h}=n.searchIn(i);l&&r.push({score:u,key:e,value:i,idx:a,norm:o,indices:h})});else{const{v:i,n:a}=s,{isMatch:o,score:l,indices:u}=n.searchIn(i);o&&r.push({score:l,key:e,value:i,norm:a,indices:u})}return r}}W.version="7.0.0";W.createIndex=we;W.parseIndex=ct;W.config=d;W.parseQuery=Ne;Et(kt);function Nt(t,e,s){const n=()=>{var a,o;return new W((a=F(e))!=null?a:[],(o=F(s))==null?void 0:o.fuseOptions)},r=B(n());Z(()=>{var a;return(a=F(s))==null?void 0:a.fuseOptions},()=>{r.value=n()},{deep:!0}),Z(()=>F(e),a=>{r.value.setCollection(a)},{deep:!0});const i=U(()=>{const a=F(s);if(a!=null&&a.matchAllWhenSearchEmpty&&!F(t))return F(e).map((l,u)=>({item:l,refIndex:u}));const o=a==null?void 0:a.resultLimit;return r.value.search(F(t),o?{limit:o}:void 0)});return{fuse:r,results:i}}const Ot={class:"nk-input__multi-select text-neutral-text-high-contrast space-y-2"},$t=["for"],Bt={key:0,class:"block text-base font-semibold"},Rt={class:"relative"},Ct=["aria-label","aria-invalid"],Tt={key:0,class:"inline-flex flex-wrap gap-2 my-auto max-w-full"},Ft={key:0,class:"text-neutral-text leading-none"}
1,jt=["aria-label","onClick"],Pt={class:"text-sm text-primary-on opacity-50 group-hover/tag:opacity-100 transition"},Dt={key:1,class:"text-neutral-text leading-none pointer-events-none"},Vt={class:"divide-y divide-neutral-border"},Kt={key:0,class:"shadow"},Wt=["placeholder"],zt=["disabled","onClick"],Ht={class:"truncate"},Gt={key:0,class:"flex items-center gap-1 text-neutral-text p-3"},Yt=["id"],qt=["id"],Xt={__name:"NkInputMultiSelect",props:Oe({label:{type:String,default:null,required:!1},name:{type:String,required:!0},errorDisplayName:{type:String,default:null,required:!1},hasLabel:{type:Boolean,default:!0,required:!1},single:{type:Boolean,default:!1,required:!1},options:{type:Array,default:()=>[],required:!1},disabled:{type:Boolean,default:!1,required:!1},rules:{type:[String,Function,Object],default:null,required:!1},value:{type:[String,Object],default:"",required:!1},titleBy:{type:String,default:"",required:!1},trackBy:{type:String,default:"",required:!1},hasSearch:{type:Boolean,default:!0,required:!1},variant:{type:String,default:"default",required:!1},description:{type:String,default:null,required:!1},placeholder:{type:String,default:null,required:!1}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const e=$e("NkInputMultiSelect"),s=Be(t,"modelValue"),n=B(null),r=B(null),i=B(null),a=B(null),o=B(null),l=B(null),{activate:u,deactivate:h}=Ke(n),f=Re(),c=t,m=B(""),p=B(!1),x=U(()=>c.single?c.options.find(y=>c.trackBy?y[c.trackBy]===_.value:y===_.value):c.trackBy?c.options.filter(y=>Array.isArray(_.value)?_.value.includes(y[c.trackBy]):_.value===y[c.trackBy]):_.value);We(n,y=>{y.target!==n.value&&(p.value=!1)}),Z(()=>p.value,async y=>{m.value="",await pe(),y?(u(),o.value&&o.value.focus()):h()});const{results:L}=Nt(m,c.options,{fuseOptions:{keys:c.titleBy?[c.titleBy]:null}}),I=U(()=>L.value.length>0?L.value.map(y=>y.item?y.item:y):m.value.length>0?[]:c.options);function T(y){return x.value?Ve(x.value)?x.value.some(g=>g[c.trackBy]===y[c.trackBy]):x.value[c.trackBy||"id"]===y[c.trackBy||"id"]:!1}async function N(y){if(_.value=y,await pe(),_.value.length===0)a.value.focus();else if(p.value){const g=l.value.querySelector("button");
1g&&g.focus()}else{const g=a.value.querySelector("button");g&&g.focus()}c.single&&(p.value=!1),i.value.handleChange(_.value)}const b=Ce("form",B({})),_=s.value!==void 0?s:U({get(){return b[c.name]},set(y){if(c.single){b[c.name]=y;return}typeof y!="boolean"&&(b[c.name].find(g=>g===y)?b[c.name]=b[c.name].filter(g=>g!==y):y&&b[c.name].push(y))}});return Array.isArray(c.value)?b[c.name]=c.value||[]:c.single?b[c.name]=c.trackBy?c.value[c.trackBy]:c.value:(b[c.name]=[],c.value&&b[c.name].push(c.trackBy?c.value[c.trackBy]:c.value)),(y,g)=>{const w=me,O=me;return M(),k("div",Ot,[E("label",{for:$(f),class:"group text-neutral-text-high-contrast flex flex-col gap-2"},[t.hasLabel?(M(),k("span",Bt,j(t.label||t.name),1)):z("",!0)],8,$t),E("div",{ref_key:"selectInputWrapperEl",ref:n,class:"relative block text-sm"},[K($(De),{ref_key:"field",ref:i,name:t.name,rules:t.rules},{default:le(({errors:H,errorMessage:D})=>[E("div",Rt,[E("div",{ref_key:"inputEl",ref:a,class:ue(["w-full rounded p-3 ring-0 border border-neutral-border hover:border-neutral-border--hover focus:border-primary-border--active focus:outline outline-1 focus:ring-0 focus:outline-offset-0 focus:outline-primary-border--active min-h-[3em] transition pr-[2.5em]",[{"!border-primary-border--active !outline-primary-border--active outline-1 outline":p.value},{"pointer-events-none opacity-75":t.disabled},{"!border-danger-border--active !outline-danger-border--active":H.length>0}]]),role:"button",tabindex:"0","aria-label":p.value?$(e).text.dropdownSchliessen:$(e).text.dropdownOeffnen,"aria-haspopup":"true","aria-invalid":!!D,onClick:g[0]||(g[0]=Q(v=>p.value=!p.value,["self"])),onKeydown:[g[1]||(g[1]=Y(v=>p.value=!p.value,["space"])),g[2]||(g[2]=Y(v=>p.value=!1,["esc"])),g[3]||(g[3]=Y(Q(v=>p.value=!p.value,["self"]),["enter"]))]},[t.single&&x.value||Array.isArray(x.value)&&x.value.length>0?(M(),k("div",Tt,[t.single?(M(),k("span",Ft,j(t.titleBy?x.value[t.titleBy]:x.value),1)):(M(!0),k(he,{key:1},de(x.value,v=>(M(),k("button",{key:"tag"+v,role:"button",tabindex:"0",class:"inline-flex align-middle leading-none items-center rounded px-1 bg-primary-surface text-primary-on-surface group/tag focus:outline-1 focus:outline focus:outline-primary-border--active","aria-label":`Tag ${v} entfernen`,onClick:Q(oe=>N(t.trackBy?v[t.trackBy]:v),["prevent"])},[fe(j(typeof v=="object"?v[t.titleBy]:v)+" ",1),E("span",Pt,[K(w,{icon:"x",class:"inline-block"})])],8,jt))),128))])):(M(),k("span",Dt,j(t.placeholder??$(e).text.placeholder),1))],42,Ct),K(Te,{name:"fade"},{default:le(()=>[ge(E("div",{ref_key:"dropdownEl",ref:r,class:"bg-white absolute top-full mt-1 rounded left-0 w-full shadow-xl z-40",onKeydown:g[5]||(g[5]=Y(v=>p.value=!1,["esc"]))},[E("div",Vt,[t.hasSearch?(M(),k("div",Kt,[ge(E("input",{ref_key:"searchInputEl",ref:o,"onUpdate:modelValue":g[4]||(g[4]=v=>m.value=v),class:"block w-full p-3",type:"text",placeholder:$(e).text.suchbegriffEingeben},null,8,Wt),[[Fe,m.value]])])):z("",!0),E("div",{ref_key:"resultListEl",ref:l,class:"max-h-[15rem] overflow-auto"},[(M(!0),k(he,null,de(I.value,v=>(M(),k("div",{key:"result-"+v},[E("button",{class:"p-3 w-full text-left group/button flex gap-2 justify-between truncate hover:bg-primary-element--hover focus-visible:bg-primary-element--hover bg-transparent hover:text-primary-on-element--high-contrast focus-visible:text-primary-on-element--high-contrast transition disabled:opacity-50 disabled:pointer-events-none",disabled:T(v),onClick:oe=>N(t.trackBy?v[t.trackBy]:v)},[E("span",Ht,j(t.titleBy?v[t.titleBy]:v),1),g[6]||(g[6]=E("span",{class:"group-hover/button:block group-focus/button:block hidden text-sm uppercase"}," Hinzufügen ",-1))],8,zt)]))),128)),m.value.length&&I.value.length===0?(M(),k("div",Gt,[K(O,{icon:"info"}),fe(" "+j($(e).text.keineSuchergebnisse),1)])):z("",!0)],512)])],544),[[je,p.value]])]),_:1}),K(w,{class:ue(["absolute top-1/2 -translate-y-1/2 px-2 right-0 transition pointer-events-none",{"rotate-180":p.value}]),icon:"chevron-down"},null,8,["class"])]),t.description?(M(),k("span",{key:0,id:"description-"+$(f),class:"block text-sm text-neutral-text py-1"},j(t.description),9,Yt)):z("",!0),D?(M(),k("div",{key:1,id:"error-"+$(f),class:"text-danger-text rounded text-sm flex gap-1 py-2"},[K(w,{icon:"info",class:"inline-block"}),E("span",null,j($(Pe)(D,t.name,t.errorDisplayName)),1)],8,qt)):z("",!0)]),_:1},8,["name","rules"])],512)])}}};export{Xt as default};
2//# sourceMappingURL=BVR94UID.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.