Uname: Linux webm012.cluster130.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64
Software: Apache
PHP version: 8.0.30 [ PHP INFO ] PHP os: Linux
Server Ip: 145.239.37.162
Your Ip: 216.73.216.190
User: dreampi (1009562) | Group: users (100)
Safe Mode: OFF
Disable Function:
_dyuweyrj4,_dyuweyrj4r,dl

name : Select.YpzMstjH.js
import{a0 as bt,a1 as Ue,I as Je,a2 as q,a3 as Se,a4 as mt,H as yt,a5 as vt,a6 as St,a7 as Ot,a8 as wt,R as Lt,a9 as Vt,aa as $t,ab as _t,i as b,d as m,q as p,e as f,f as te,w as P,E as Q,P as ee,Z as $e,$ as le,x as d,v as L,g as V,B as qe,s as K,j as C,t as $,F as _e,y as Te,ac as Tt,_ as We,A as jt,S as At,p as oe}from"./_plugin-vue_export-helper.C2ZCDIpF.js";import{S as Pt}from"./Close.DAMIqd1a.js";const zr=(e,t)=>{const s=document.createElement("style");s.innerHTML=`@keyframes ${t} {
			from { opacity: 0.99; }
			to { opacity: 1; }
		}
		${e} {
			animation-duration: 0.001s;
			animation-name: ${t};
		}`,document.head.appendChild(s)};/*!
 * pinia v3.0.4
 * (c) 2025 Eduardo San Martin Morote
 * @license MIT
 */let Xe;const Oe=e=>Xe=e,Ct=Symbol();function fe(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var U;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(U||(U={}));const Ze=()=>{};function je(e,t,s,i=Ze){e.add(t);const n=()=>{e.delete(t)&&i()};return!s&&Ot()&&wt(n),n}function H(e,...t){e.forEach(s=>{s(...t)})}const Bt=e=>e(),Ae=Symbol(),ue=Symbol();function ge(e,t){e instanceof Map&&t instanceof Map?t.forEach((s,i)=>e.set(i,s)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const s in t){if(!t.hasOwnProperty(s))continue;const i=t[s],n=e[s];fe(n)&&fe(i)&&e.hasOwnProperty(s)&&!q(i)&&!Se(i)?e[s]=ge(n,i):e[s]=i}return e}const Et=Symbol();function kt(e){return!fe(e)||!Object.prototype.hasOwnProperty.call(e,Et)}const{assign:A}=Object;function Dt(e){return!!(q(e)&&e.effect)}function Mt(e,t,s,i){const{state:n,actions:a,getters:r}=t,o=s.state.value[e];let g;function l(){o||(s.state.value[e]=n?n():{});const S=$t(s.state.value[e]);return A(S,a,Object.keys(r||{}).reduce((O,j)=>(O[j]=_t(Je(()=>{Oe(s);const D=s._s.get(e);return r[j].call(D,D)})),O),{}))}return g=Ye(e,l,t,s,i,!0),g}function Ye(e,t,s={},i,n,a){let r;const o=A({actions:{}},s),g={deep:!0};let l,S,O=new Set,j=new Set,D;const M=i.state.value[e];!a&&!M&&(i.state.value[e]={});let we;function Le(c){let u;l=S=!1,typeof c=="function"?(c(i.state.value[e]),u={type:U.patchFunction,storeId:e,events:D}):(ge(i.state.value[e],c),u={type:U.patchObject,payload:c,storeId:e,events:D});const y=we=Symbol();Lt().then(()=>{we===y&&(l=!0)}),S=!0,H(O,u,i.state.value[e])}const ht=a?function(){const{state:u}=s,y=u?u():{};this.$patch(F=>{A(F,y)})}:Ze;function dt(){r.stop(),O.clear(),j.clear(),i._s.delete(e)}const Ve=(c,u="")=>{if(Ae in c)return c[ue]=u,c;const y=function(){Oe(i);const F=Array.from(arguments),z=new Set,ae=new Set;function ft(v){z.add(v)}function gt(v){ae.add(v)}H(j,{args:F,name:y[ue],store:w,after:ft,onError:gt});let G;try{G=c.apply(this&&this.$id===e?this:w,F)}catch(v){throw H(ae,v),v}return G instanceof Promise?G.then(v=>(H(z,v),v)).catch(v=>(H(ae,v),Promise.reject(v))):(H(z,G),G)};return y[Ae]=!0,y[ue]=u,y},pt={_p:i,$id:e,$onAction:je.bind(null,j),$patch:Le,$reset:ht,$subscribe(c,u={}){const y=je(O,c,u.detached,()=>F()),F=r.run(()=>yt(()=>i.state.value[e],z=>{(u.flush==="sync"?S:l)&&c({storeId:e,type:U.direct,events:D},z)},A({},g,u)));return y},$dispose:dt},w=Vt(pt);i._s.set(e,w);const I=(i._a&&i._a.runWithContext||Bt)(()=>i._e.run(()=>(r=vt()).run(()=>t({action:Ve}))));for(const c in I){const u=I[c];if(q(u)&&!Dt(u)||Se(u))a||(M&&kt(u)&&(q(u)?u.value=M[c]:ge(u,M[c])),i.state.value[e][c]=u);else if(typeof u=="function"){const y=Ve(u,c);I[c]=y,o.actions[c]=u}}return A(w,I),A(Ue(w),I),Object.defineProperty(w,"$state",{get:()=>i.state.value[e],set:c=>{Le(u=>{A(u,c)})}}),i._p.forEach(c=>{A(w,r.run(()=>c({store:w,app:i._a,pinia:i,options:o})))}),M&&a&&s.hydrate&&s.hydrate(w.$state,M),l=!0,S=!0,w}/*! #__NO_SIDE_EFFECTS__ */function Gr(e,t,s){let i;const n=typeof t=="function";i=n?s:t;function a(r,o){const g=St();return r=r||(g?bt(Ct,null):null),r&&Oe(r),r=Xe,r._s.has(e)||(n?Ye(e,t,i,r):Mt(e,i,r)),r._s.get(e)}return a.$id=e,a}function xr(e){const t=Ue(e),s={};for(const i in t){const n=t[i];n.effect?s[i]=Je({get:()=>e[i],set(a){e[i]=a}}):(q(n)||Se(n))&&(s[i]=mt(e,i))}return s}const Kr=()=>({getJsonValue:(n,a=null)=>{if(!n)return a;if(typeof n=="object")return n;try{n=JSON.parse(n)}catch{n=a}return n},getJsonValues:n=>n.map(a=>JSON.parse(a)),setJsonValue:n=>JSON.stringify(n),setJsonValues:n=>n.map(a=>JSON.stringify(a))});var Qe=typeof global=="object"&&global&&global.Object===Object&&global,Ft=typeof self=="object"&&self&&self.Object===Object&&self,_=Qe||Ft||Function("return this")(),se=_.Symbol,et=Object.prototype,Ht=et.hasOwnProperty,Nt=et.toString,x=se?se.toStringTag:void 0;function Rt(e){var t=Ht.call(e,x),s=e[x];try{e[x]=void 0;var i=!0}catch{}var n=Nt.call(e);return i&&(t?e[x]=s:delete e[x]),n}var It=Object.prototype,zt=It.toString;function Gt(e){return zt.call(e)}var xt="[object Null]",Kt="[object Undefined]",Pe=se?se.toStringTag:void 0;function Z(e){return e==null?e===void 0?Kt:xt:Pe&&Pe in Object(e)?Rt(e):Gt(e)}function ie(e){return e!=null&&typeof e=="object"}var tt=Array.isArray;function st(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function it(e){return e}var Ut="[object AsyncFunction]",Jt="[object Function]",qt="[object GeneratorFunction]",Wt="[object Proxy]";function rt(e){if(!st(e))return!1;var t=Z(e);return t==Jt||t==qt||t==Ut||t==Wt}var ce=_["__core-js_shared__"],Ce=function(){var e=/[^.]+$/.exec(ce&&ce.keys&&ce.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Xt(e){return!!Ce&&Ce in e}var Zt=Function.prototype,Yt=Zt.toString;function E(e){if(e!=null){try{return Yt.call(e)}catch{}try{return e+""}catch{}}return""}var Qt=/[\\^$.*+?()[\]{}|]/g,es=/^\[object .+?Constructor\]$/,ts=Function.prototype,ss=Object.prototype,is=ts.toString,rs=ss.hasOwnProperty,ns=RegExp("^"+is.call(rs).replace(Qt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function as(e){if(!st(e)||Xt(e))return!1;var t=rt(e)?ns:es;return t.test(E(e))}function ls(e,t){return e==null?void 0:e[t]}function k(e,t){var s=ls(e,t);return as(s)?s:void 0}var be=k(_,"WeakMap");function os(e,t,s){switch(s.length){case 0:return e.call(t);case 1:return e.call(t,s[0]);case 2:return e.call(t,s[0],s[1]);case 3:return e.call(t,s[0],s[1],s[2])}return e.apply(t,s)}var us=800,cs=16,hs=Date.now;function ds(e){var t=0,s=0;return function(){var i=hs(),n=cs-(i-s);if(s=i,n>0){if(++t>=us)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function ps(e){return function(){return e}}var Be=function(){try{var e=k(Object,"defineProperty");return e({},"",{}),e}catch{}}(),fs=Be?function(e,t){return Be(e,"toString",{configurable:!0,enumerable:!1,value:ps(t),writable:!0})}:it,gs=ds(fs),bs=9007199254740991,ms=/^(?:0|[1-9]\d*)$/;function ys(e,t){var s=typeof e;return t=t??bs,!!t&&(s=="number"||s!="symbol"&&ms.test(e))&&e>-1&&e%1==0&&e<t}function vs(e,t){return e===t||e!==e&&t!==t}var Ee=Math.max;function Ss(e,t,s){return t=Ee(t===void 0?e.length-1:t,0),function(){for(var i=arguments,n=-1,a=Ee(i.length-t,0),r=Array(a);++n<a;)r[n]=i[t+n];n=-1;for(var o=Array(t+1);++n<t;)o[n]=i[n];return o[t]=s(r),os(e,this,o)}}function Ur(e,t){return gs(Ss(e,t,it),e+"")}var Os=9007199254740991;function nt(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Os}function at(e){return e!=null&&nt(e.length)&&!rt(e)}var ws=Object.prototype;function Ls(e){var t=e&&e.constructor,s=typeof t=="function"&&t.prototype||ws;return e===s}function Vs(e,t){for(var s=-1,i=Array(e);++s<e;)i[s]=t(s);return i}var $s="[object Arguments]";function ke(e){return ie(e)&&Z(e)==$s}var lt=Object.prototype,_s=lt.hasOwnProperty,Ts=lt.propertyIsEnumerable,js=ke(function(){return arguments}())?ke:function(e){return ie(e)&&_s.call(e,"callee")&&!Ts.call(e,"callee")};function As(){return!1}var ot=typeof exports=="object"&&exports&&!exports.nodeType&&exports,De=ot&&typeof module=="object"&&module&&!module.nodeType&&module,Ps=De&&De.exports===ot,Me=Ps?_.Buffer:void 0,Cs=Me?Me.isBuffer:void 0,Bs=Cs||As,Es="[object Arguments]",ks="[object Array]",Ds="[object Boolean]",Ms="[object Date]",Fs="[object Error]",Hs="[object Function]",Ns="[object Map]",Rs="[object Number]",Is="[object Object]",zs="[object RegExp]",Gs="[object Set]",xs="[object String]",Ks="[object WeakMap]",Us="[object ArrayBuffer]",Js="[object DataView]",qs="[object Float32Array]",Ws="[object Float64Array]",Xs="[object Int8Array]",Zs="[object Int16Array]",Ys="[object Int32Array]",Qs="[object Uint8Array]",ei="[object Uint8ClampedArray]",ti="[object Uint16Array]",si="[object Uint32Array]",h={};h[qs]=h[Ws]=h[Xs]=h[Zs]=h[Ys]=h[Qs]=h[ei]=h[ti]=h[si]=!0;h[Es]=h[ks]=h[Us]=h[Ds]=h[Js]=h[Ms]=h[Fs]=h[Hs]=h[Ns]=h[Rs]=h[Is]=h[zs]=h[Gs]=h[xs]=h[Ks]=!1;function ii(e){return ie(e)&&nt(e.length)&&!!h[Z(e)]}function ri(e){return function(t){return e(t)}}var ut=typeof exports=="object"&&exports&&!exports.nodeType&&exports,J=ut&&typeof module=="object"&&module&&!module.nodeType&&module,ni=J&&J.exports===ut,he=ni&&Qe.process,Fe=function(){try{var e=J&&J.require&&J.require("util").types;return e||he&&he.binding&&he.binding("util")}catch{}}(),He=Fe&&Fe.isTypedArray,ai=He?ri(He):ii,li=Object.prototype,oi=li.hasOwnProperty;function ui(e,t){var s=tt(e),i=!s&&js(e),n=!s&&!i&&Bs(e),a=!s&&!i&&!n&&ai(e),r=s||i||n||a,o=r?Vs(e.length,String):[],g=o.length;for(var l in e)(t||oi.call(e,l))&&!(r&&(l=="length"||n&&(l=="offset"||l=="parent")||a&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||ys(l,g)))&&o.push(l);return o}function ci(e,t){return function(s){return e(t(s))}}var hi=ci(Object.keys,Object),di=Object.prototype,pi=di.hasOwnProperty;function fi(e){if(!Ls(e))return hi(e);var t=[];for(var s in Object(e))pi.call(e,s)&&s!="constructor"&&t.push(s);return t}function gi(e){return at(e)?ui(e):fi(e)}var W=k(Object,"create");function bi(){this.__data__=W?W(null):{},this.size=0}function mi(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var yi="__lodash_hash_undefined__",vi=Object.prototype,Si=vi.hasOwnProperty;function Oi(e){var t=this.__data__;if(W){var s=t[e];return s===yi?void 0:s}return Si.call(t,e)?t[e]:void 0}var wi=Object.prototype,Li=wi.hasOwnProperty;function Vi(e){var t=this.__data__;return W?t[e]!==void 0:Li.call(t,e)}var $i="__lodash_hash_undefined__";function _i(e,t){var s=this.__data__;return this.size+=this.has(e)?0:1,s[e]=W&&t===void 0?$i:t,this}function B(e){var t=-1,s=e==null?0:e.length;for(this.clear();++t<s;){var i=e[t];this.set(i[0],i[1])}}B.prototype.clear=bi;B.prototype.delete=mi;B.prototype.get=Oi;B.prototype.has=Vi;B.prototype.set=_i;function Ti(){this.__data__=[],this.size=0}function re(e,t){for(var s=e.length;s--;)if(vs(e[s][0],t))return s;return-1}var ji=Array.prototype,Ai=ji.splice;function Pi(e){var t=this.__data__,s=re(t,e);if(s<0)return!1;var i=t.length-1;return s==i?t.pop():Ai.call(t,s,1),--this.size,!0}function Ci(e){var t=this.__data__,s=re(t,e);return s<0?void 0:t[s][1]}function Bi(e){return re(this.__data__,e)>-1}function Ei(e,t){var s=this.__data__,i=re(s,e);return i<0?(++this.size,s.push([e,t])):s[i][1]=t,this}function T(e){var t=-1,s=e==null?0:e.length;for(this.clear();++t<s;){var i=e[t];this.set(i[0],i[1])}}T.prototype.clear=Ti;T.prototype.delete=Pi;T.prototype.get=Ci;T.prototype.has=Bi;T.prototype.set=Ei;var X=k(_,"Map");function ki(){this.size=0,this.__data__={hash:new B,map:new(X||T),string:new B}}function Di(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function ne(e,t){var s=e.__data__;return Di(t)?s[typeof t=="string"?"string":"hash"]:s.map}function Mi(e){var t=ne(this,e).delete(e);return this.size-=t?1:0,t}function Fi(e){return ne(this,e).get(e)}function Hi(e){return ne(this,e).has(e)}function Ni(e,t){var s=ne(this,e),i=s.size;return s.set(e,t),this.size+=s.size==i?0:1,this}function R(e){var t=-1,s=e==null?0:e.length;for(this.clear();++t<s;){var i=e[t];this.set(i[0],i[1])}}R.prototype.clear=ki;R.prototype.delete=Mi;R.prototype.get=Fi;R.prototype.has=Hi;R.prototype.set=Ni;function Ri(e,t){for(var s=-1,i=t.length,n=e.length;++s<i;)e[n+s]=t[s];return e}function Ii(){this.__data__=new T,this.size=0}function zi(e){var t=this.__data__,s=t.delete(e);return this.size=t.size,s}function Gi(e){return this.__data__.get(e)}function xi(e){return this.__data__.has(e)}var Ki=200;function Ui(e,t){var s=this.__data__;if(s instanceof T){var i=s.__data__;if(!X||i.length<Ki-1)return i.push([e,t]),this.size=++s.size,this;s=this.__data__=new R(i)}return s.set(e,t),this.size=s.size,this}function Y(e){var t=this.__data__=new T(e);this.size=t.size}Y.prototype.clear=Ii;Y.prototype.delete=zi;Y.prototype.get=Gi;Y.prototype.has=xi;Y.prototype.set=Ui;function Ji(e,t){for(var s=-1,i=e==null?0:e.length,n=0,a=[];++s<i;){var r=e[s];t(r,s,e)&&(a[n++]=r)}return a}function qi(){return[]}var Wi=Object.prototype,Xi=Wi.propertyIsEnumerable,Ne=Object.getOwnPropertySymbols,Zi=Ne?function(e){return e==null?[]:(e=Object(e),Ji(Ne(e),function(t){return Xi.call(e,t)}))}:qi;function Yi(e,t,s){var i=t(e);return tt(e)?i:Ri(i,s(e))}function Jr(e){return Yi(e,gi,Zi)}var me=k(_,"DataView"),ye=k(_,"Promise"),ve=k(_,"Set"),Re="[object Map]",Qi="[object Object]",Ie="[object Promise]",ze="[object Set]",Ge="[object WeakMap]",xe="[object DataView]",er=E(me),tr=E(X),sr=E(ye),ir=E(ve),rr=E(be),N=Z;(me&&N(new me(new ArrayBuffer(1)))!=xe||X&&N(new X)!=Re||ye&&N(ye.resolve())!=Ie||ve&&N(new ve)!=ze||be&&N(new be)!=Ge)&&(N=function(e){var t=Z(e),s=t==Qi?e.constructor:void 0,i=s?E(s):"";if(i)switch(i){case er:return xe;case tr:return Re;case sr:return Ie;case ir:return ze;case rr:return Ge}return t});var qr=_.Uint8Array;function Wr(e){return ie(e)&&at(e)}function de(e){return e===0?!1:Array.isArray(e)&&e.length===0?!0:!e}function nr(e){return(...t)=>!e(...t)}function ar(e,t){return e===void 0&&(e="undefined"),e===null&&(e="null"),e===!1&&(e="false"),e.toString().toLowerCase().indexOf(t.trim())!==-1}function lr(e){return e.filter(t=>!t.$isLabel)}function pe(e,t){return s=>s.reduce((i,n)=>n[e]&&n[e].length?(i.push({$groupLabel:n[t],$isLabel:!0}),i.concat(n[e])):i,[])}const Ke=(...e)=>t=>e.reduce((s,i)=>i(s),t);var or={data(){return{search:"",isOpen:!1,preferredOpenDirection:"below",optimizedHeight:this.maxHeight}},props:{internalSearch:{type:Boolean,default:!0},options:{type:Array,required:!0},multiple:{type:Boolean,default:!1},trackBy:{type:String},label:{type:String},searchable:{type:Boolean,default:!0},clearOnSelect:{type:Boolean,default:!0},hideSelected:{type:Boolean,default:!1},placeholder:{type:String,default:"Select option"},allowEmpty:{type:Boolean,default:!0},resetAfter:{type:Boolean,default:!1},closeOnSelect:{type:Boolean,default:!0},customLabel:{type:Function,default(e,t){return de(e)?"":t?e[t]:e}},taggable:{type:Boolean,default:!1},tagPlaceholder:{type:String,default:"Press enter to create a tag"},tagPosition:{type:String,default:"top"},max:{type:[Number,Boolean],default:!1},id:{default:null},optionsLimit:{type:Number,default:1e3},groupValues:{type:String},groupLabel:{type:String},groupSelect:{type:Boolean,default:!1},blockKeys:{type:Array,default(){return[]}},preserveSearch:{type:Boolean,default:!1},preselectFirst:{type:Boolean,default:!1},preventAutofocus:{type:Boolean,default:!1},filteringSortFunc:{type:Function,default:null}},mounted(){!this.multiple&&this.max&&console.warn("[Vue-Multiselect warn]: Max prop should not be used when prop Multiple equals false."),this.preselectFirst&&!this.internalValue.length&&this.options.length&&this.select(this.filteredOptions[0])},computed:{internalValue(){return this.modelValue||this.modelValue===0?Array.isArray(this.modelValue)?this.modelValue:[this.modelValue]:[]},filteredOptions(){const e=this.search||"",t=e.toLowerCase().trim();let s=this.options.concat();return this.internalSearch?s=this.groupValues?this.filterAndFlat(s,t,this.label):this.filterOptions(s,t,this.label,this.customLabel):s=this.groupValues?pe(this.groupValues,this.groupLabel)(s):s,s=this.hideSelected?s.filter(nr(this.isSelected)):s,this.taggable&&t.length&&!this.isExistingOption(t)&&(this.tagPosition==="bottom"?s.push({isTag:!0,label:e}):s.unshift({isTag:!0,label:e})),s.slice(0,this.optionsLimit)},valueKeys(){return this.trackBy?this.internalValue.map(e=>e[this.trackBy]):this.internalValue},optionKeys(){return(this.groupValues?this.flatAndStrip(this.options):this.options).map(t=>this.customLabel(t,this.label).toString().toLowerCase())},currentOptionLabel(){return this.multiple?this.searchable?"":this.placeholder:this.internalValue.length?this.getOptionLabel(this.internalValue[0]):this.searchable?"":this.placeholder}},watch:{internalValue:{handler(){this.resetAfter&&this.internalValue.length&&(this.search="",this.$emit("update:modelValue",this.multiple?[]:null))},deep:!0},search(){this.$emit("search-change",this.search)}},emits:["open","search-change","close","select","update:modelValue","remove","tag"],methods:{getValue(){return this.multiple?this.internalValue:this.internalValue.length===0?null:this.internalValue[0]},filterAndFlat(e,t,s){return Ke(this.filterGroups(t,s,this.groupValues,this.groupLabel,this.customLabel),pe(this.groupValues,this.groupLabel))(e)},flatAndStrip(e){return Ke(pe(this.groupValues,this.groupLabel),lr)(e)},updateSearch(e){this.search=e},isExistingOption(e){return this.options?this.optionKeys.indexOf(e)>-1:!1},isSelected(e){const t=this.trackBy?e[this.trackBy]:e;return this.valueKeys.indexOf(t)>-1},isOptionDisabled(e){return!!e.$isDisabled},getOptionLabel(e){if(de(e))return"";if(e.isTag)return e.label;if(e.$isLabel)return e.$groupLabel;const t=this.customLabel(e,this.label);return de(t)?"":t},select(e,t){if(e.$isLabel&&this.groupSelect){this.selectGroup(e);return}if(!(this.blockKeys.indexOf(t)!==-1||this.disabled||e.$isDisabled||e.$isLabel)&&!(this.max&&this.multiple&&this.internalValue.length===this.max)&&!(t==="Tab"&&!this.pointerDirty)){if(e.isTag)this.$emit("tag",e.label,this.id),this.search="",this.closeOnSelect&&!this.multiple&&this.deactivate();else{if(this.isSelected(e)){t!=="Tab"&&this.removeElement(e);return}this.multiple?this.$emit("update:modelValue",this.internalValue.concat([e])):this.$emit("update:modelValue",e),this.$emit("select",e,this.id),this.clearOnSelect&&(this.search="")}this.closeOnSelect&&this.deactivate()}},selectGroup(e){const t=this.options.find(s=>s[this.groupLabel]===e.$groupLabel);if(t){if(this.wholeGroupSelected(t)){this.$emit("remove",t[this.groupValues],this.id);const s=this.trackBy?t[this.groupValues].map(n=>n[this.trackBy]):t[this.groupValues],i=this.internalValue.filter(n=>s.indexOf(this.trackBy?n[this.trackBy]:n)===-1);this.$emit("update:modelValue",i)}else{const s=t[this.groupValues].filter(i=>!(this.isOptionDisabled(i)||this.isSelected(i)));this.max&&s.splice(this.max-this.internalValue.length),this.$emit("select",s,this.id),this.$emit("update:modelValue",this.internalValue.concat(s))}this.closeOnSelect&&this.deactivate()}},wholeGroupSelected(e){return e[this.groupValues].every(t=>this.isSelected(t)||this.isOptionDisabled(t))},wholeGroupDisabled(e){return e[this.groupValues].every(this.isOptionDisabled)},removeElement(e,t=!0){if(this.disabled||e.$isDisabled)return;if(!this.allowEmpty&&this.internalValue.length<=1){this.deactivate();return}const s=typeof e=="object"?this.valueKeys.indexOf(e[this.trackBy]):this.valueKeys.indexOf(e);if(this.multiple){const i=this.internalValue.slice(0,s).concat(this.internalValue.slice(s+1));this.$emit("update:modelValue",i)}else this.$emit("update:modelValue",null);this.$emit("remove",e,this.id),this.closeOnSelect&&t&&this.deactivate()},removeLastElement(){this.blockKeys.indexOf("Delete")===-1&&this.search.length===0&&Array.isArray(this.internalValue)&&this.internalValue.length&&this.removeElement(this.internalValue[this.internalValue.length-1],!1)},activate(){this.isOpen||this.disabled||(this.adjustPosition(),this.groupValues&&this.pointer===0&&this.filteredOptions.length&&(this.pointer=1),this.isOpen=!0,this.searchable?(this.preserveSearch||(this.search=""),this.preventAutofocus||this.$nextTick(()=>this.$refs.search&&this.$refs.search.focus())):this.preventAutofocus||typeof this.$el<"u"&&this.$el.focus(),this.$emit("open",this.id))},deactivate(){this.isOpen&&(this.isOpen=!1,this.searchable?this.$refs.search!==null&&typeof this.$refs.search<"u"&&this.$refs.search.blur():typeof this.$el<"u"&&this.$el.blur(),this.preserveSearch||(this.search=""),this.$emit("close",this.getValue(),this.id))},toggle(){this.isOpen?this.deactivate():this.activate()},adjustPosition(){if(typeof window>"u")return;const e=this.$el.getBoundingClientRect().top,t=window.innerHeight-this.$el.getBoundingClientRect().bottom;t>this.maxHeight||t>e||this.openDirection==="below"||this.openDirection==="bottom"?(this.preferredOpenDirection="below",this.optimizedHeight=Math.min(t-40,this.maxHeight)):(this.preferredOpenDirection="above",this.optimizedHeight=Math.min(e-40,this.maxHeight))},filterOptions(e,t,s,i){return t?e.filter(n=>ar(i(n,s),t)).sort((n,a)=>typeof this.filteringSortFunc=="function"?this.filteringSortFunc(n,a):i(n,s).length-i(a,s).length):e},filterGroups(e,t,s,i,n){return a=>a.map(r=>{if(!r[s])return console.warn("Options passed to vue-multiselect do not contain groups, despite the config."),[];const o=this.filterOptions(r[s],e,t,n);return o.length?{[i]:r[i],[s]:o}:[]})}}},ur={data(){return{pointer:0,pointerDirty:!1}},props:{showPointer:{type:Boolean,default:!0},optionHeight:{type:Number,default:40}},computed:{pointerPosition(){return this.pointer*this.optionHeight},visibleElements(){return this.optimizedHeight/this.optionHeight}},watch:{filteredOptions(){this.pointerAdjust()},isOpen(){this.pointerDirty=!1},pointer(){this.$refs.search&&this.$refs.search.setAttribute("aria-activedescendant",this.id+"-"+this.pointer.toString())}},methods:{optionHighlight(e,t){return{"multiselect__option--highlight":e===this.pointer&&this.showPointer,"multiselect__option--selected":this.isSelected(t)}},groupHighlight(e,t){if(!this.groupSelect)return["multiselect__option--disabled",{"multiselect__option--group":t.$isLabel}];const s=this.options.find(i=>i[this.groupLabel]===t.$groupLabel);return s&&!this.wholeGroupDisabled(s)?["multiselect__option--group",{"multiselect__option--highlight":e===this.pointer&&this.showPointer},{"multiselect__option--group-selected":this.wholeGroupSelected(s)}]:"multiselect__option--disabled"},addPointerElement({key:e}="Enter"){this.filteredOptions.length>0&&this.select(this.filteredOptions[this.pointer],e),this.pointerReset()},pointerForward(){var e;this.pointer<this.filteredOptions.length-1&&(this.pointer++,((e=this.$refs.list)==null?void 0:e.scrollTop)<=this.pointerPosition-(this.visibleElements-1)*this.optionHeight&&(this.$refs.list.scrollTop=this.pointerPosition-(this.visibleElements-1)*this.optionHeight),this.filteredOptions[this.pointer]&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerForward()),this.pointerDirty=!0},pointerBackward(){var e;this.pointer>0?(this.pointer--,((e=this.$refs.list)==null?void 0:e.scrollTop)>=this.pointerPosition&&(this.$refs.list.scrollTop=this.pointerPosition),this.filteredOptions[this.pointer]&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerBackward()):this.filteredOptions[this.pointer]&&this.filteredOptions[0].$isLabel&&!this.groupSelect&&this.pointerForward(),this.pointerDirty=!0},pointerReset(){this.closeOnSelect&&(this.pointer=0,this.$refs.list&&(this.$refs.list.scrollTop=0))},pointerAdjust(){this.pointer>=this.filteredOptions.length-1&&(this.pointer=this.filteredOptions.length?this.filteredOptions.length-1:0),this.filteredOptions.length>0&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerForward()},pointerSet(e){this.pointer=e,this.pointerDirty=!0}}},ct={name:"vue-multiselect",mixins:[or,ur],compatConfig:{MODE:3,ATTR_ENUMERATED_COERCION:!1},props:{name:{type:String,default:""},modelValue:{type:null,default(){return[]}},selectLabel:{type:String,default:"Press enter to select"},selectGroupLabel:{type:String,default:"Press enter to select group"},selectedLabel:{type:String,default:"Selected"},deselectLabel:{type:String,default:"Press enter to remove"},deselectGroupLabel:{type:String,default:"Press enter to deselect group"},showLabels:{type:Boolean,default:!0},limit:{type:Number,default:99999},maxHeight:{type:Number,default:300},limitText:{type:Function,default:e=>`and ${e} more`},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},spellcheck:{type:Boolean,default:!1},openDirection:{type:String,default:""},showNoOptions:{type:Boolean,default:!0},showNoResults:{type:Boolean,default:!0},tabindex:{type:Number,default:0},required:{type:Boolean,default:!1},useTeleport:{type:Boolean,default:!1},contentWrapperClass:{type:[String,Array,Object],default:""}},data(){return{dropdownStyles:{},ready:!1}},computed:{hasOptionGroup(){return this.groupValues&&this.groupLabel&&this.groupSelect},isSingleLabelVisible(){return(this.singleValue||this.singleValue===0)&&(!this.isOpen||!this.searchable)&&!this.visibleValues.length},isPlaceholderVisible(){return!this.internalValue.length&&(!this.searchable||!this.isOpen)},visibleValues(){return this.multiple?this.internalValue.slice(0,this.limit):[]},singleValue(){return this.internalValue[0]},deselectLabelText(){return this.showLabels?this.deselectLabel:""},deselectGroupLabelText(){return this.showLabels?this.deselectGroupLabel:""},selectLabelText(){return this.showLabels?this.selectLabel:""},selectGroupLabelText(){return this.showLabels?this.selectGroupLabel:""},selectedLabelText(){return this.showLabels?this.selectedLabel:""},inputStyle(){return this.searchable||this.multiple&&this.modelValue&&this.modelValue.length?this.isOpen?{width:"100%"}:{width:"0",position:"absolute",padding:"0"}:""},contentStyle(){return this.options.length?{display:"inline-block"}:{display:"block"}},isAbove(){return this.openDirection==="above"||this.openDirection==="top"?!0:this.openDirection==="below"||this.openDirection==="bottom"?!1:this.preferredOpenDirection==="above"},showSearchInput(){return this.searchable&&(this.hasSingleSelectedSlot&&(this.visibleSingleValue||this.visibleSingleValue===0)?this.isOpen:!0)},isRequired(){return this.required===!1?!1:this.internalValue.length<=0}},watch:{isOpen(e){e&&(this.useTeleport?(this.ready=!1,this.$nextTick(()=>{const t=this.$el.getBoundingClientRect();this.dropdownStyles={position:"absolute",top:`${t.bottom+window.scrollY}px`,left:`${t.left+window.scrollX}px`,width:`${t.width}px`,zIndex:9999},this.ready=!0})):this.ready=!0)}}};const cr=["tabindex","aria-expanded","aria-owns","aria-activedescendant"],hr={ref:"tags",class:"multiselect__tags"},dr={class:"multiselect__tags-wrap"},pr=["textContent"],fr=["onKeydown","onMousedown"],gr=["textContent"],br={class:"multiselect__spinner"},mr=["name","id","spellcheck","placeholder","required","value","disabled","tabindex","aria-label","aria-controls"],yr=["id","aria-multiselectable"],vr={key:0},Sr={class:"multiselect__option"},Or=["aria-selected","id","role"],wr=["onClick","onMouseenter","data-select","data-selected","data-deselect"],Lr=["data-select","data-deselect","onMouseenter","onMousedown"],Vr={class:"multiselect__option"},$r={class:"multiselect__option"};function _r(e,t,s,i,n,a){return b(),m("div",{tabindex:e.searchable?-1:s.tabindex,class:K([{"multiselect--active":e.isOpen,"multiselect--disabled":s.disabled,"multiselect--above":a.isAbove,"multiselect--has-options-group":a.hasOptionGroup},"multiselect"]),onFocus:t[14]||(t[14]=r=>e.activate()),onBlur:t[15]||(t[15]=r=>e.searchable?!1:e.deactivate()),onKeydown:[t[16]||(t[16]=L(d(r=>e.pointerForward(),["self","prevent"]),["down"])),t[17]||(t[17]=L(d(r=>e.pointerBackward(),["self","prevent"]),["up"])),t[18]||(t[18]=L(d(r=>e.addPointerElement(r),["stop","self"]),["enter","tab"]))],onKeyup:t[19]||(t[19]=L(r=>e.deactivate(),["esc"])),role:"combobox","aria-expanded":e.isOpen,"aria-owns":"listbox-"+e.id,"aria-activedescendant":e.isOpen&&e.pointer!==null?e.id+"-"+e.pointer:null},[p(e.$slots,"caret",{toggle:e.toggle},()=>[f("div",{onMousedown:t[0]||(t[0]=d(r=>e.toggle(),["prevent","stop"])),class:"multiselect__select"},null,32)]),p(e.$slots,"clear",{search:e.search}),f("div",hr,[p(e.$slots,"selection",{search:e.search,remove:e.removeElement,values:a.visibleValues,isOpen:e.isOpen},()=>[Q(f("div",dr,[(b(!0),m(_e,null,Te(a.visibleValues,(r,o)=>p(e.$slots,"tag",{option:r,search:e.search,remove:e.removeElement},()=>[(b(),m("span",{class:"multiselect__tag",key:o,onMousedown:t[1]||(t[1]=d(()=>{},["prevent"]))},[f("span",{textContent:$(e.getOptionLabel(r))},null,8,pr),f("i",{tabindex:"1",onKeydown:L(d(g=>e.removeElement(r),["prevent"]),["enter"]),onMousedown:d(g=>e.removeElement(r),["prevent"]),class:"multiselect__tag-icon"},null,40,fr)],32))])),256))],512),[[ee,a.visibleValues.length>0]]),e.internalValue&&e.internalValue.length>s.limit?p(e.$slots,"limit",{key:0},()=>[f("strong",{class:"multiselect__strong",textContent:$(s.limitText(e.internalValue.length-s.limit))},null,8,gr)]):V("v-if",!0)]),te($e,{name:"multiselect__loading"},{default:P(()=>[p(e.$slots,"loading",{},()=>[Q(f("div",br,null,512),[[ee,s.loading]])])]),_:3}),e.searchable?(b(),m("input",{key:0,ref:"search",name:s.name,id:e.id,type:"text",autocomplete:"off",spellcheck:s.spellcheck,placeholder:e.placeholder,required:a.isRequired,style:le(a.inputStyle),value:e.search,disabled:s.disabled,tabindex:s.tabindex,"aria-label":s.name+"-searchbox",onInput:t[2]||(t[2]=r=>e.updateSearch(r.target.value)),onFocus:t[3]||(t[3]=d(r=>e.activate(),["prevent"])),onBlur:t[4]||(t[4]=d(r=>e.deactivate(),["prevent"])),onKeyup:t[5]||(t[5]=L(r=>e.deactivate(),["esc"])),onKeydown:[t[6]||(t[6]=L(d(r=>e.pointerForward(),["prevent"]),["down"])),t[7]||(t[7]=L(d(r=>e.pointerBackward(),["prevent"]),["up"])),t[8]||(t[8]=L(d(r=>e.addPointerElement(r),["prevent","stop","self"]),["enter"])),t[9]||(t[9]=L(d(r=>e.removeLastElement(),["stop"]),["delete"]))],class:"multiselect__input","aria-controls":"listbox-"+e.id},null,44,mr)):V("v-if",!0),a.isSingleLabelVisible?(b(),m("span",{key:1,class:"multiselect__single",onMousedown:t[10]||(t[10]=d((...r)=>e.toggle&&e.toggle(...r),["prevent"]))},[p(e.$slots,"singleLabel",{option:a.singleValue},()=>[C($(e.currentOptionLabel),1)])],32)):V("v-if",!0),a.isPlaceholderVisible?(b(),m("span",{key:2,class:"multiselect__placeholder",onMousedown:t[11]||(t[11]=d((...r)=>e.toggle&&e.toggle(...r),["prevent"]))},[p(e.$slots,"placeholder",{},()=>[C($(e.placeholder),1)])],32)):V("v-if",!0)],512),(b(),qe(Tt,{to:"body",disabled:!s.useTeleport},[te($e,{name:"multiselect"},{default:P(()=>[e.isOpen&&n.ready?(b(),m("div",{key:0,class:K(["multiselect__content-wrapper",s.contentWrapperClass]),onFocus:t[12]||(t[12]=(...r)=>e.activate&&e.activate(...r)),tabindex:"-1",onMousedown:t[13]||(t[13]=d(()=>{},["prevent"])),style:le([n.dropdownStyles,{maxHeight:e.optimizedHeight+"px"}]),ref:"list"},[f("ul",{class:"multiselect__content",style:le(a.contentStyle),role:"listbox",id:"listbox-"+e.id,"aria-multiselectable":e.multiple},[p(e.$slots,"beforeList"),e.multiple&&e.max===e.internalValue.length?(b(),m("li",vr,[f("span",Sr,[p(e.$slots,"maxElements",{},()=>[C("Maximum of "+$(e.max)+" options selected. First remove a selected option to select another.",1)])])])):V("v-if",!0),!e.max||e.internalValue.length<e.max?(b(!0),m(_e,{key:1},Te(e.filteredOptions,(r,o)=>(b(),m("li",{class:"multiselect__element",key:o,"aria-selected":e.isSelected(r),id:e.id+"-"+o,role:r&&(r.$isLabel||r.$isDisabled)?null:"option"},[r&&(r.$isLabel||r.$isDisabled)?V("v-if",!0):(b(),m("span",{key:0,class:K([e.optionHighlight(o,r),"multiselect__option"]),onClick:d(g=>e.select(r),["stop"]),onMouseenter:d(g=>e.pointerSet(o),["self"]),"data-select":r&&r.isTag?e.tagPlaceholder:a.selectLabelText,"data-selected":a.selectedLabelText,"data-deselect":a.deselectLabelText},[p(e.$slots,"option",{option:r,search:e.search,index:o},()=>[f("span",null,$(e.getOptionLabel(r)),1)])],42,wr)),r&&(r.$isLabel||r.$isDisabled)?(b(),m("span",{key:1,"data-select":e.groupSelect&&a.selectGroupLabelText,"data-deselect":e.groupSelect&&a.deselectGroupLabelText,class:K([e.groupHighlight(o,r),"multiselect__option"]),onMouseenter:d(g=>e.groupSelect&&e.pointerSet(o),["self"]),onMousedown:d(g=>e.selectGroup(r),["prevent"])},[p(e.$slots,"option",{option:r,search:e.search,index:o},()=>[f("span",null,$(e.getOptionLabel(r)),1)])],42,Lr)):V("v-if",!0)],8,Or))),128)):V("v-if",!0),Q(f("li",null,[f("span",Vr,[p(e.$slots,"noResult",{search:e.search},()=>[t[20]||(t[20]=C("No elements found. Consider changing the search query."))])])],512),[[ee,s.showNoResults&&e.filteredOptions.length===0&&e.search&&!s.loading]]),Q(f("li",null,[f("span",$r,[p(e.$slots,"noOptions",{},()=>[t[21]||(t[21]=C("List is empty."))])])],512),[[ee,s.showNoOptions&&(e.options.length===0||a.hasOptionGroup===!0&&e.filteredOptions.length===0)&&!e.search&&!s.loading]]),p(e.$slots,"afterList")],12,yr)],38)):V("v-if",!0)]),_:3})],8,["disabled"]))],42,cr)}ct.render=_r;const Tr={},jr={viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"aioseo-caret"};function Ar(e,t){return b(),m("svg",jr,[...t[0]||(t[0]=[f("path",{d:"M16.59 8.29492L12 12.8749L7.41 8.29492L6 9.70492L12 15.7049L18 9.70492L16.59 8.29492Z",fill:"currentColor"},null,-1)])])}const Pr=We(Tr,[["render",Ar]]),Cr="aioseo-eeat",Br={emits:["open","close","update:modelValue"],components:{Multiselect:ct,SvgCaret:Pr,SvgClose:Pt},props:{options:{type:Array,required:!0},trackBy:{type:String,default(){return"value"}},multiple:Boolean,taggable:Boolean,filterable:Boolean,searchable:{type:Boolean,default(){return!0}},placeholder:{type:String,default(){return""}},customLabel:{type:Function,default:({label:e})=>e},name:String,modelValue:[String,Array,Number,Object],ajaxSearch:Function,noDataText:String,popperClass:String,loading:Boolean,disabled:Boolean,size:String,openDirection:{type:String,default(){return null}},groupValues:String,groupLabel:String,closeOnSelect:{type:Boolean,default(){return!0}},tagPlaceholder:String,allowEmpty:{type:Boolean,default(){return!1}},preserveOptions:{type:Boolean,default(){return!0}}},data(){return{isLoading:!1,internalOptions:[],strings:{searchPlaceholder:jt("Type to search...",Cr)}}},watch:{options(){this.resetFirstLastOption()}},computed:{effectiveOptions(){if(this.preserveOptions){const e=[...this.internalOptions];return this.options.forEach(t=>{e.some(s=>s.value===t.value)||e.push(t)}),e}return this.options}},methods:{addTag(e){e.split(",").forEach(t=>{const s={label:t,value:t};this.preserveOptions?this.internalOptions.some(i=>i.value===s.value)||this.internalOptions.push(s):this.options.some(i=>i.value===s.value)||this.options.push(s),this.modelValue.some(i=>i.value===s.value)||this.modelValue.push(s)}),this.$emit("update:modelValue",this.modelValue),this.$refs["aioseo-select"].$el.focus()},searchChange(e){e&&this.ajaxSearch&&(this.isLoading=!0,At(()=>{this.ajaxSearch(e).then(()=>this.isLoading=!1)},500))},resetFirstLastOption(){this.$nextTick(()=>{var t,s;if(!this.$refs["aioseo-select"])return;const e=((s=(t=this.$refs["aioseo-select"])==null?void 0:t.$el)==null?void 0:s.querySelectorAll("li.multiselect__element"))||[];e.forEach((i,n)=>{i.classList.remove("last"),i.classList.remove("first"),n===0&&i.classList.add("first"),n===e.length-1&&i.classList.add("last")})})}},mounted(){this.resetFirstLastOption(),this.preserveOptions&&0<this.options.length&&(this.internalOptions=[...this.options])}},Er={class:"multiselect__tag"},kr={class:"multiselect__tag-value"},Dr=["onClick"],Mr=["innerHTML"],Fr={class:"multiselect__select"};function Hr(e,t,s,i,n,a){const r=oe("svg-close"),o=oe("svg-caret"),g=oe("multiselect");return b(),qe(g,{class:K(["aioseo-select",[{[s.size]:s.size},{multiple:s.multiple}]]),modelValue:s.modelValue,"onUpdate:modelValue":t[0]||(t[0]=l=>e.$emit("update:modelValue",l)),options:a.effectiveOptions,multiple:s.multiple,taggable:s.taggable,placeholder:s.placeholder||n.strings.searchPlaceholder,"tag-placeholder":s.tagPlaceholder,"show-labels":!1,"track-by":s.trackBy,"custom-label":s.customLabel,"allow-empty":s.allowEmpty||!!s.multiple,filterable:s.filterable,"internal-search":!0,loading:n.isLoading,searchable:s.searchable,"open-direction":s.openDirection,"group-values":s.groupValues,"group-label":s.groupLabel,disabled:s.disabled,"close-on-select":s.closeOnSelect,onSearchChange:a.searchChange,onTag:a.addTag,onOpen:t[1]||(t[1]=l=>e.$emit("open")),onClose:t[2]||(t[2]=l=>e.$emit("close")),ref:"aioseo-select"},{singleLabel:P(({option:l})=>[p(e.$slots,"singleLabel",{option:l},()=>[C($(l.label),1)])]),tag:P(({option:l,search:S,remove:O})=>[p(e.$slots,"tag",{option:l,search:S,remove:O},()=>[f("div",Er,[f("div",kr,$(l.label),1),f("div",{class:"multiselect__tag-remove",onClick:d(j=>O(l),["stop"])},[te(r,{onClick:d(j=>O(l),["stop"])},null,8,["onClick"])],8,Dr)])])]),option:P(({option:l,search:S})=>[p(e.$slots,"option",{option:l,search:S},()=>[C($(l.$isLabel?l.$groupLabel:l.label)+" ",1),l.docLink?(b(),m("span",{key:0,class:"docLink",innerHTML:l.docLink},null,8,Mr)):V("",!0)])]),caret:P(({toggle:l})=>[p(e.$slots,"caret",{toggle:l},()=>[f("div",Fr,[te(o)])])]),noOptions:P(()=>[p(e.$slots,"noOptions")]),noResult:P(()=>[p(e.$slots,"noResult")]),_:3},8,["class","modelValue","options","multiple","taggable","placeholder","tag-placeholder","track-by","custom-label","allow-empty","filterable","loading","searchable","open-direction","group-values","group-label","disabled","close-on-select","onSearchChange","onTag"])}const Xr=We(Br,[["render",Hr]]);export{ui as A,Xr as B,ci as C,_ as D,Zi as E,qi as F,Yi as G,Fe as H,ri as I,rt as J,Gr as K,Oe as L,R as M,se as S,qr as U,tt as a,Z as b,js as c,Ri as d,vs as e,N as f,Jr as g,Bs as h,ie as i,Y as j,ai as k,st as l,gi as m,nt as n,ys as o,it as p,ve as q,Ur as r,Wr as s,xr as t,Kr as u,zr as v,Pr as w,Be as x,at as y,Ls as z};
© 2026 GrazzMean-Shell