Sid Gifari File Manager
🏠 Root
/
home2
/
meumer25
/
minhafarmacia.app
/
wp-content
/
plugins
/
all-in-one-seo-pack
/
dist
/
Lite
/
assets
/
js
/
Editing: Select.69906a74.js
import{m as F}from"./index.317ad629.js";import{a as r,v as S,w as f,T}from"./runtime-dom.esm-bundler.dc49ee3e.js";import{o as p,a1 as c,a3 as o,l as h,aj as O,F as D,af as E,$ as g,a4 as m,a2 as b,a7 as y,a6 as $,_ as V,c as H,ae as G}from"./runtime-core.esm-bundler.ce5add0b.js";import{S as K}from"./Caret.cd869c5d.js";import{S as N}from"./Close.ccd53ef3.js";import"./translations.e71e2202.js";import{_ as R}from"./_plugin-vue_export-helper.eefbdd86.js";import{_ as j}from"./default-i18n.65d58dd6.js";function B(e){return e===0?!1:Array.isArray(e)&&e.length===0?!0:!e}function z(e){return(...t)=>!e(...t)}function q(e,t){return e===void 0&&(e="undefined"),e===null&&(e="null"),e===!1&&(e="false"),e.toString().toLowerCase().indexOf(t.trim())!==-1}function C(e,t,i,l){return t?e.filter(a=>q(l(a,i),t)).sort((a,n)=>l(a,i).length-l(n,i).length):e}function I(e){return e.filter(t=>!t.$isLabel)}function k(e,t){return i=>i.reduce((l,a)=>a[e]&&a[e].length?(l.push({$groupLabel:a[t],$isLabel:!0}),l.concat(a[e])):l,[])}function U(e,t,i,l,a){return n=>n.map(s=>{if(!s[i])return console.warn("Options passed to vue-multiselect do not contain groups, despite the config."),[];const d=C(s[i],e,t,a);return d.length?{[l]:s[l],[i]:d}:[]})}const A=(...e)=>t=>e.reduce((i,l)=>l(i),t);var J={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 B(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}},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 i=this.options.concat();return this.internalSearch?i=this.groupValues?this.filterAndFlat(i,t,this.label):C(i,t,this.label,this.customLabel):i=this.groupValues?k(this.groupValues,this.groupLabel)(i):i,i=this.hideSelected?i.filter(z(this.isSelected)):i,this.taggable&&t.length&&!this.isExistingOption(t)&&(this.tagPosition==="bottom"?i.push({isTag:!0,label:e}):i.unshift({isTag:!0,label:e})),i.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,i){return A(U(t,i,this.groupValues,this.groupLabel,this.customLabel),k(this.groupValues,this.groupLabel))(e)},flatAndStrip(e){return A(k(this.groupValues,this.groupLabel),I)(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(B(e))return"";if(e.isTag)return e.label;if(e.$isLabel)return e.$groupLabel;const t=this.customLabel(e,this.label);return B(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(i=>i[this.groupLabel]===e.$groupLabel);if(t){if(this.wholeGroupSelected(t)){this.$emit("remove",t[this.groupValues],this.id);const i=this.trackBy?t[this.groupValues].map(a=>a[this.trackBy]):t[this.groupValues],l=this.internalValue.filter(a=>i.indexOf(this.trackBy?a[this.trackBy]:a)===-1);this.$emit("update:modelValue",l)}else{let i=t[this.groupValues].filter(l=>!(this.isOptionDisabled(l)||this.isSelected(l)));this.max&&i.splice(this.max-this.internalValue.length),this.$emit("select",i,this.id),this.$emit("update:modelValue",this.internalValue.concat(i))}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 i=typeof e=="object"?this.valueKeys.indexOf(e[this.trackBy]):this.valueKeys.indexOf(e);if(this.multiple){const l=this.internalValue.slice(0,i).concat(this.internalValue.slice(i+1));this.$emit("update:modelValue",l)}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))}}},Q={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 i=this.options.find(l=>l[this.groupLabel]===t.$groupLabel);return i&&!this.wholeGroupDisabled(i)?["multiselect__option--group",{"multiselect__option--highlight":e===this.pointer&&this.showPointer},{"multiselect__option--group-selected":this.wholeGroupSelected(i)}]:"multiselect__option--disabled"},addPointerElement({key:e}="Enter"){this.filteredOptions.length>0&&this.select(this.filteredOptions[this.pointer],e),this.pointerReset()},pointerForward(){this.pointer<this.filteredOptions.length-1&&(this.pointer++,this.$refs.list.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(){this.pointer>0?(this.pointer--,this.$refs.list.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}}},P={name:"vue-multiselect",mixins:[J,Q],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},openDirection:{type:String,default:""},showNoOptions:{type:Boolean,default:!0},showNoResults:{type:Boolean,default:!0},tabindex:{type:Number,default:0}},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)}}};const W={ref:"tags",class:"multiselect__tags"},X={class:"multiselect__tags-wrap"},Y={class:"multiselect__spinner"},Z={key:0},_={class:"multiselect__option"},x={class:"multiselect__option"},ee=y("No elements found. Consider changing the search query."),te={class:"multiselect__option"},ie=y("List is empty.");function se(e,t,i,l,a,n){return p(),c("div",{tabindex:e.searchable?-1:i.tabindex,class:[{"multiselect--active":e.isOpen,"multiselect--disabled":i.disabled,"multiselect--above":n.isAbove,"multiselect--has-options-group":n.hasOptionGroup},"multiselect"],onFocus:t[14]||(t[14]=s=>e.activate()),onBlur:t[15]||(t[15]=s=>e.searchable?!1:e.deactivate()),onKeydown:[t[16]||(t[16]=f(r(s=>e.pointerForward(),["self","prevent"]),["down"])),t[17]||(t[17]=f(r(s=>e.pointerBackward(),["self","prevent"]),["up"]))],onKeypress:t[18]||(t[18]=f(r(s=>e.addPointerElement(s),["stop","self"]),["enter","tab"])),onKeyup:t[19]||(t[19]=f(s=>e.deactivate(),["esc"])),role:"combobox","aria-owns":"listbox-"+e.id},[o(e.$slots,"caret",{toggle:e.toggle},()=>[h("div",{onMousedown:t[1]||(t[1]=r(s=>e.toggle(),["prevent","stop"])),class:"multiselect__select"},null,32)]),o(e.$slots,"clear",{search:e.search}),h("div",W,[o(e.$slots,"selection",{search:e.search,remove:e.removeElement,values:n.visibleValues,isOpen:e.isOpen},()=>[O(h("div",X,[(p(!0),c(D,null,E(n.visibleValues,(s,d)=>o(e.$slots,"tag",{option:s,search:e.search,remove:e.removeElement},()=>[(p(),c("span",{class:"multiselect__tag",key:d},[h("span",{textContent:g(e.getOptionLabel(s))},null,8,["textContent"]),h("i",{tabindex:"1",onKeypress:f(r(v=>e.removeElement(s),["prevent"]),["enter"]),onMousedown:r(v=>e.removeElement(s),["prevent"]),class:"multiselect__tag-icon"},null,40,["onKeypress","onMousedown"])]))])),256))],512),[[S,n.visibleValues.length>0]]),e.internalValue&&e.internalValue.length>i.limit?o(e.$slots,"limit",{key:0},()=>[h("strong",{class:"multiselect__strong",textContent:g(i.limitText(e.internalValue.length-i.limit))},null,8,["textContent"])]):m("v-if",!0)]),h(T,{name:"multiselect__loading"},{default:b(()=>[o(e.$slots,"loading",{},()=>[O(h("div",Y,null,512),[[S,i.loading]])])]),_:3}),e.searchable?(p(),c("input",{key:0,ref:"search",name:i.name,id:e.id,type:"text",autocomplete:"off",spellcheck:!1,placeholder:e.placeholder,style:n.inputStyle,value:e.search,disabled:i.disabled,tabindex:i.tabindex,onInput:t[2]||(t[2]=s=>e.updateSearch(s.target.value)),onFocus:t[3]||(t[3]=r(s=>e.activate(),["prevent"])),onBlur:t[4]||(t[4]=r(s=>e.deactivate(),["prevent"])),onKeyup:t[5]||(t[5]=f(s=>e.deactivate(),["esc"])),onKeydown:[t[6]||(t[6]=f(r(s=>e.pointerForward(),["prevent"]),["down"])),t[7]||(t[7]=f(r(s=>e.pointerBackward(),["prevent"]),["up"])),t[9]||(t[9]=f(r(s=>e.removeLastElement(),["stop"]),["delete"]))],onKeypress:t[8]||(t[8]=f(r(s=>e.addPointerElement(s),["prevent","stop","self"]),["enter"])),class:"multiselect__input","aria-controls":"listbox-"+e.id},null,44,["name","id","placeholder","value","disabled","tabindex","aria-controls"])):m("v-if",!0),n.isSingleLabelVisible?(p(),c("span",{key:1,class:"multiselect__single",onMousedown:t[10]||(t[10]=r((...s)=>e.toggle&&e.toggle(...s),["prevent"]))},[o(e.$slots,"singleLabel",{option:n.singleValue},()=>[y(g(e.currentOptionLabel),1)])],32)):m("v-if",!0),n.isPlaceholderVisible?(p(),c("span",{key:2,class:"multiselect__placeholder",onMousedown:t[11]||(t[11]=r((...s)=>e.toggle&&e.toggle(...s),["prevent"]))},[o(e.$slots,"placeholder",{},()=>[y(g(e.placeholder),1)])],32)):m("v-if",!0)],512),h(T,{name:"multiselect"},{default:b(()=>[O(h("div",{class:"multiselect__content-wrapper",onFocus:t[12]||(t[12]=(...s)=>e.activate&&e.activate(...s)),tabindex:"-1",onMousedown:t[13]||(t[13]=r(()=>{},["prevent"])),style:{maxHeight:e.optimizedHeight+"px"},ref:"list"},[h("ul",{class:"multiselect__content",style:n.contentStyle,role:"listbox",id:"listbox-"+e.id},[o(e.$slots,"beforeList"),e.multiple&&e.max===e.internalValue.length?(p(),c("li",Z,[h("span",_,[o(e.$slots,"maxElements",{},()=>[y("Maximum of "+g(e.max)+" options selected. First remove a selected option to select another.",1)])])])):m("v-if",!0),!e.max||e.internalValue.length<e.max?(p(!0),c(D,{key:1},E(e.filteredOptions,(s,d)=>(p(),c("li",{class:"multiselect__element",key:d,id:e.id+"-"+d,role:s&&(s.$isLabel||s.$isDisabled)?null:"option"},[s&&(s.$isLabel||s.$isDisabled)?m("v-if",!0):(p(),c("span",{key:0,class:[e.optionHighlight(d,s),"multiselect__option"],onClick:r(v=>e.select(s),["stop"]),onMouseenter:r(v=>e.pointerSet(d),["self"]),"data-select":s&&s.isTag?e.tagPlaceholder:n.selectLabelText,"data-selected":n.selectedLabelText,"data-deselect":n.deselectLabelText},[o(e.$slots,"option",{option:s,search:e.search,index:d},()=>[h("span",null,g(e.getOptionLabel(s)),1)])],42,["onClick","onMouseenter","data-select","data-selected","data-deselect"])),s&&(s.$isLabel||s.$isDisabled)?(p(),c("span",{key:1,"data-select":e.groupSelect&&n.selectGroupLabelText,"data-deselect":e.groupSelect&&n.deselectGroupLabelText,class:[e.groupHighlight(d,s),"multiselect__option"],onMouseenter:r(v=>e.groupSelect&&e.pointerSet(d),["self"]),onMousedown:r(v=>e.selectGroup(s),["prevent"])},[o(e.$slots,"option",{option:s,search:e.search,index:d},()=>[h("span",null,g(e.getOptionLabel(s)),1)])],42,["data-select","data-deselect","onMouseenter","onMousedown"])):m("v-if",!0)],8,["id","role"]))),128)):m("v-if",!0),O(h("li",null,[h("span",x,[o(e.$slots,"noResult",{search:e.search},()=>[ee])])],512),[[S,i.showNoResults&&e.filteredOptions.length===0&&e.search&&!i.loading]]),O(h("li",null,[h("span",te,[o(e.$slots,"noOptions",{},()=>[ie])])],512),[[S,i.showNoOptions&&(e.options.length===0||n.hasOptionGroup===!0&&e.filteredOptions.length===0)&&!e.search&&!i.loading]]),o(e.$slots,"afterList")],12,["id"])],36),[[S,e.isOpen]])]),_:3})],42,["tabindex","aria-owns"])}P.render=se;const le="all-in-one-seo-pack",ne={emits:["open","close","update:modelValue"],components:{Multiselect:P,SvgCaret:K,SvgClose:N},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:j("Type to search...",le)}}},watch:{options(){this.resetFirstLastOption()}},computed:{effectiveOptions(){if(this.preserveOptions){const e=[...this.internalOptions];return this.options.forEach(t=>{e.some(i=>i.value===t.value)||e.push(t)}),e}return this.options}},methods:{addTag(e){e.split(",").forEach(t=>{const i={label:t,value:t};this.preserveOptions?this.internalOptions.some(l=>l.value===i.value)||this.internalOptions.push(i):this.options.some(l=>l.value===i.value)||this.options.push(i),this.modelValue.some(l=>l.value===i.value)||this.modelValue.push(i)}),this.$emit("update:modelValue",this.modelValue),this.$refs["aioseo-select"].$el.focus()},searchChange(e){e&&this.ajaxSearch&&(this.isLoading=!0,F(()=>{this.ajaxSearch(e).then(()=>this.isLoading=!1)},500))},resetFirstLastOption(){this.$nextTick(()=>{var t,i;if(!this.$refs["aioseo-select"])return;const e=((i=(t=this.$refs["aioseo-select"])==null?void 0:t.$el)==null?void 0:i.querySelectorAll("li.multiselect__element"))||[];e.forEach((l,a)=>{l.classList.remove("last"),l.classList.remove("first"),a===0&&l.classList.add("first"),a===e.length-1&&l.classList.add("last")})})}},mounted(){this.resetFirstLastOption(),this.preserveOptions&&0<this.options.length&&(this.internalOptions=[...this.options])}},ae={class:"multiselect__tag"},re={class:"multiselect__tag-value"},oe=["onClick"],ue=["innerHTML"],he={class:"multiselect__select"};function de(e,t,i,l,a,n){const s=$("svg-close"),d=$("svg-caret"),v=$("multiselect");return p(),c(v,{class:G(["aioseo-select",[{[i.size]:i.size},{multiple:i.multiple}]]),modelValue:i.modelValue,"onUpdate:modelValue":t[0]||(t[0]=u=>e.$emit("update:modelValue",u)),options:n.effectiveOptions,multiple:i.multiple,taggable:i.taggable,placeholder:i.placeholder||a.strings.searchPlaceholder,"tag-placeholder":i.tagPlaceholder,"show-labels":!1,"track-by":i.trackBy,"custom-label":i.customLabel,"allow-empty":i.allowEmpty||!!i.multiple,filterable:i.filterable,"internal-search":!0,loading:a.isLoading,searchable:i.searchable,"open-direction":i.openDirection,"group-values":i.groupValues,"group-label":i.groupLabel,disabled:i.disabled,"close-on-select":i.closeOnSelect,onSearchChange:n.searchChange,onTag:n.addTag,onOpen:t[1]||(t[1]=u=>e.$emit("open")),onClose:t[2]||(t[2]=u=>e.$emit("close")),ref:"aioseo-select"},{singleLabel:b(({option:u})=>[o(e.$slots,"singleLabel",{option:u},()=>[y(g(u.label),1)])]),tag:b(({option:u,search:L,remove:w})=>[o(e.$slots,"tag",{option:u,search:L,remove:w},()=>[V("div",ae,[V("div",re,g(u.label),1),V("div",{class:"multiselect__tag-remove",onClick:r(M=>w(u),["stop"])},[h(s,{onClick:r(M=>w(u),["stop"])},null,8,["onClick"])],8,oe)])])]),option:b(({option:u,search:L})=>[o(e.$slots,"option",{option:u,search:L},()=>[y(g(u.$isLabel?u.$groupLabel:u.label)+" ",1),u.docLink?(p(),H("span",{key:0,class:"docLink",innerHTML:u.docLink},null,8,ue)):m("",!0)])]),caret:b(({toggle:u})=>[o(e.$slots,"caret",{toggle:u},()=>[V("div",he,[h(d)])])]),noOptions:b(()=>[o(e.$slots,"noOptions")]),noResult:b(()=>[o(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 Se=R(ne,[["render",de]]);export{Se as B};
Save
Cancel