HEX
Server: LiteSpeed
System: Linux d8 4.18.0-553.121.1.lve.el8.x86_64 #1 SMP Thu Apr 30 16:40:41 UTC 2026 x86_64
User: wbwebdes (3015)
PHP: 8.1.31
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: /home/wbwebdes/domains/files.wb-cloud.nl/private_html/apps/logreader/js/NcSelect-D1yoojTo.chunk.mjs
/*! third party licenses: js/vendor.LICENSE.txt */
import{n as $,V as Ot,x as $t,y as rt,z as Lt,A as Ue,B as et,C as $e,D as G,E as ue,F as pt,H as Fe,I as It,J as Nt,t as I,K as Pt,L as de,M as K,r as ft,O as Ve,P as qe,Q as Ft,R as ze,T as Re,U as je,W as He,X as We,Y as he,g as Xe,_ as pe,Z as At,$ as fe,b as ge,d as Ke,a0 as Ge,a1 as Ze,a2 as yt,a3 as bt,a4 as Ye,a5 as Je,a6 as Qe,a7 as tn,G as Vt,u as en,a8 as nn,a9 as on,aa as sn}from"./logreader-main.mjs";import{G as rn}from"./GenColors-BrpkL3hT-B2T_OG9X.chunk.mjs";function an(t,e,n){const s=document.querySelector(`#initial-state-${t}-${e}`);if(s===null)throw new Error(`Could not find initial state ${e} of ${t}`);try{return JSON.parse(atob(s.value))}catch{throw new Error(`Could not parse initial state ${e} of ${t}`)}}function me(){try{return an("core","capabilities")}catch{return console.debug("Could not find capabilities initial state fall back to _oc_capabilities"),"_oc_capabilities"in window?window._oc_capabilities:{}}}var Tt={exports:{}},ln=Tt.exports,qt;function cn(){return qt||(qt=1,function(t,e){(function(n,s){t.exports=s()})(typeof self<"u"?self:ln,function(){return(()=>{var n={646:h=>{h.exports=function(i){if(Array.isArray(i)){for(var f=0,a=new Array(i.length);f<i.length;f++)a[f]=i[f];return a}}},713:h=>{h.exports=function(i,f,a){return f in i?Object.defineProperty(i,f,{value:a,enumerable:!0,configurable:!0,writable:!0}):i[f]=a,i}},860:h=>{h.exports=function(i){if(Symbol.iterator in Object(i)||Object.prototype.toString.call(i)==="[object Arguments]")return Array.from(i)}},206:h=>{h.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}},319:(h,i,f)=>{var a=f(646),c=f(860),l=f(206);h.exports=function(u){return a(u)||c(u)||l()}},8:h=>{function i(f){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?h.exports=i=function(a){return typeof a}:h.exports=i=function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},i(f)}h.exports=i}},s={};function r(h){var i=s[h];if(i!==void 0)return i.exports;var f=s[h]={exports:{}};return n[h](f,f.exports,r),f.exports}r.n=h=>{var i=h&&h.__esModule?()=>h.default:()=>h;return r.d(i,{a:i}),i},r.d=(h,i)=>{for(var f in i)r.o(i,f)&&!r.o(h,f)&&Object.defineProperty(h,f,{enumerable:!0,get:i[f]})},r.o=(h,i)=>Object.prototype.hasOwnProperty.call(h,i),r.r=h=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(h,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(h,"__esModule",{value:!0})};var d={};return(()=>{r.r(d),r.d(d,{VueSelect:()=>B,default:()=>D,mixins:()=>M});var h=r(319),i=r.n(h),f=r(8),a=r.n(f),c=r(713),l=r.n(c);const u={props:{autoscroll:{type:Boolean,default:!0}},watch:{typeAheadPointer:function(){this.autoscroll&&this.maybeAdjustScroll()},open:function(o){var g=this;this.autoscroll&&o&&this.$nextTick(function(){return g.maybeAdjustScroll()})}},methods:{maybeAdjustScroll:function(){var o,g=((o=this.$refs.dropdownMenu)===null||o===void 0?void 0:o.children[this.typeAheadPointer])||!1;if(g){var v=this.getDropdownViewport(),w=g.getBoundingClientRect(),C=w.top,_=w.bottom,k=w.height;if(C<v.top)return this.$refs.dropdownMenu.scrollTop=g.offsetTop;if(_>v.bottom)return this.$refs.dropdownMenu.scrollTop=g.offsetTop-(v.height-k)}},getDropdownViewport:function(){return this.$refs.dropdownMenu?this.$refs.dropdownMenu.getBoundingClientRect():{height:0,top:0,bottom:0}}}},p={data:function(){return{typeAheadPointer:-1}},watch:{filteredOptions:function(){if(this.resetFocusOnOptionsChange){for(var o=0;o<this.filteredOptions.length;o++)if(this.selectable(this.filteredOptions[o])){this.typeAheadPointer=o;break}}},open:function(o){o&&this.typeAheadToLastSelected()},selectedValue:function(){this.open&&this.typeAheadToLastSelected()}},methods:{typeAheadUp:function(){for(var o=this.typeAheadPointer-1;o>=0;o--)if(this.selectable(this.filteredOptions[o])){this.typeAheadPointer=o;break}},typeAheadDown:function(){for(var o=this.typeAheadPointer+1;o<this.filteredOptions.length;o++)if(this.selectable(this.filteredOptions[o])){this.typeAheadPointer=o;break}},typeAheadSelect:function(){var o=this.filteredOptions[this.typeAheadPointer];o&&this.selectable(o)&&this.select(o)},typeAheadToLastSelected:function(){var o=this.selectedValue.length!==0?this.filteredOptions.indexOf(this.selectedValue[this.selectedValue.length-1]):-1;o!==-1&&(this.typeAheadPointer=o)}}},m={props:{loading:{type:Boolean,default:!1}},data:function(){return{mutableLoading:!1}},watch:{search:function(){this.$emit("search",this.search,this.toggleLoading)},loading:function(o){this.mutableLoading=o}},methods:{toggleLoading:function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return this.mutableLoading=o??!this.mutableLoading}}};function y(o,g,v,w,C,_,k,P){var X,q=typeof o=="function"?o.options:o;return g&&(q.render=g,q.staticRenderFns=v,q._compiled=!0),{exports:o,options:q}}const b={Deselect:y({},function(){var o=this.$createElement,g=this._self._c||o;return g("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10"}},[g("path",{attrs:{d:"M6.895455 5l2.842897-2.842898c.348864-.348863.348864-.914488 0-1.263636L9.106534.261648c-.348864-.348864-.914489-.348864-1.263636 0L5 3.104545 2.157102.261648c-.348863-.348864-.914488-.348864-1.263636 0L.261648.893466c-.348864.348864-.348864.914489 0 1.263636L3.104545 5 .261648 7.842898c-.348864.348863-.348864.914488 0 1.263636l.631818.631818c.348864.348864.914773.348864 1.263636 0L5 6.895455l2.842898 2.842897c.348863.348864.914772.348864 1.263636 0l.631818-.631818c.348864-.348864.348864-.914489 0-1.263636L6.895455 5z"}})])},[]).exports,OpenIndicator:y({},function(){var o=this.$createElement,g=this._self._c||o;return g("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"10"}},[g("path",{attrs:{d:"M9.211364 7.59931l4.48338-4.867229c.407008-.441854.407008-1.158247 0-1.60046l-.73712-.80023c-.407008-.441854-1.066904-.441854-1.474243 0L7 5.198617 2.51662.33139c-.407008-.441853-1.066904-.441853-1.474243 0l-.737121.80023c-.407008.441854-.407008 1.158248 0 1.600461l4.48338 4.867228L7 10l2.211364-2.40069z"}})])},[]).exports},x={inserted:function(o,g,v){var w=v.context;if(w.appendToBody){document.body.appendChild(o);var C=w.$refs.toggle.getBoundingClientRect(),_=C.height,k=C.top,P=C.left,X=C.width,q=window.scrollX||window.pageXOffset,st=window.scrollY||window.pageYOffset;o.unbindPosition=w.calculatePosition(o,w,{width:X+"px",left:q+P+"px",top:st+k+_+"px"})}},unbind:function(o,g,v){v.context.appendToBody&&(o.unbindPosition&&typeof o.unbindPosition=="function"&&o.unbindPosition(),o.parentNode&&o.parentNode.removeChild(o))}},O=function(o){var g={};return Object.keys(o).sort().forEach(function(v){g[v]=o[v]}),JSON.stringify(g)};var S=0;const A=function(){return++S};function L(o,g){var v=Object.keys(o);if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(o);g&&(w=w.filter(function(C){return Object.getOwnPropertyDescriptor(o,C).enumerable})),v.push.apply(v,w)}return v}function T(o){for(var g=1;g<arguments.length;g++){var v=arguments[g]!=null?arguments[g]:{};g%2?L(Object(v),!0).forEach(function(w){l()(o,w,v[w])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(v)):L(Object(v)).forEach(function(w){Object.defineProperty(o,w,Object.getOwnPropertyDescriptor(v,w))})}return o}const B=y({components:T({},b),directives:{appendToBody:x},mixins:[u,p,m],props:{value:{},components:{type:Object,default:function(){return{}}},options:{type:Array,default:function(){return[]}},limit:{type:Number,default:null},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},deselectFromDropdown:{type:Boolean,default:!1},searchable:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},placeholder:{type:String,default:""},transition:{type:String,default:"vs__fade"},clearSearchOnSelect:{type:Boolean,default:!0},closeOnSelect:{type:Boolean,default:!0},label:{type:String,default:"label"},ariaLabelCombobox:{type:String,default:"Search for options"},ariaLabelListbox:{type:String,default:"Options"},ariaLabelClearSelected:{type:String,default:"Clear selected"},ariaLabelDeselectOption:{type:Function,default:function(o){return"Deselect ".concat(o)}},autocomplete:{type:String,default:"off"},reduce:{type:Function,default:function(o){return o}},selectable:{type:Function,default:function(o){return!0}},getOptionLabel:{type:Function,default:function(o){return a()(o)==="object"?o.hasOwnProperty(this.label)?o[this.label]:console.warn('[vue-select warn]: Label key "option.'.concat(this.label,'" does not')+" exist in options object ".concat(JSON.stringify(o),`.
`)+"https://vue-select.org/api/props.html#getoptionlabel"):o}},getOptionKey:{type:Function,default:function(o){if(a()(o)!=="object")return o;try{return o.hasOwnProperty("id")?o.id:O(o)}catch(g){return console.warn(`[vue-select warn]: Could not stringify this option to generate unique key. Please provide'getOptionKey' prop to return a unique key for each option.
https://vue-select.org/api/props.html#getoptionkey`,o,g)}}},onTab:{type:Function,default:function(){this.selectOnTab&&!this.isComposing&&this.typeAheadSelect()}},taggable:{type:Boolean,default:!1},tabindex:{type:Number,default:null},pushTags:{type:Boolean,default:!1},filterable:{type:Boolean,default:!0},filterBy:{type:Function,default:function(o,g,v){return(g||"").toLocaleLowerCase().indexOf(v.toLocaleLowerCase())>-1}},filter:{type:Function,default:function(o,g){var v=this;return o.filter(function(w){var C=v.getOptionLabel(w);return typeof C=="number"&&(C=C.toString()),v.filterBy(w,C,g)})}},createOption:{type:Function,default:function(o){return a()(this.optionList[0])==="object"?l()({},this.label,o):o}},resetFocusOnOptionsChange:{type:Boolean,default:!0},resetOnOptionsChange:{default:!1,validator:function(o){return["function","boolean"].includes(a()(o))}},clearSearchOnBlur:{type:Function,default:function(o){var g=o.clearSearchOnSelect,v=o.multiple;return g&&!v}},noDrop:{type:Boolean,default:!1},inputId:{type:String},dir:{type:String,default:"auto"},selectOnTab:{type:Boolean,default:!1},selectOnKeyCodes:{type:Array,default:function(){return[13]}},searchInputQuerySelector:{type:String,default:"[type=search]"},mapKeydown:{type:Function,default:function(o,g){return o}},appendToBody:{type:Boolean,default:!1},calculatePosition:{type:Function,default:function(o,g,v){var w=v.width,C=v.top,_=v.left;o.style.top=C,o.style.left=_,o.style.width=w}},dropdownShouldOpen:{type:Function,default:function(o){var g=o.noDrop,v=o.open,w=o.mutableLoading;return!g&&v&&!w}},keyboardFocusBorder:{type:Boolean,default:!1},uid:{type:[String,Number],default:function(){return A()}}},data:function(){return{search:"",open:!1,isComposing:!1,isKeyboardNavigation:!1,pushedTags:[],_value:[]}},computed:{isTrackingValues:function(){return this.value===void 0||this.$options.propsData.hasOwnProperty("reduce")},selectedValue:function(){var o=this.value;return this.isTrackingValues&&(o=this.$data._value),o!=null&&o!==""?[].concat(o):[]},optionList:function(){return this.options.concat(this.pushTags?this.pushedTags:[])},searchEl:function(){return this.$scopedSlots.search?this.$refs.selectedOptions.querySelector(this.searchInputQuerySelector):this.$refs.search},scope:function(){var o=this,g={search:this.search,loading:this.loading,searching:this.searching,filteredOptions:this.filteredOptions};return{search:{attributes:T({id:this.inputId,disabled:this.disabled,placeholder:this.searchPlaceholder,tabindex:this.tabindex,readonly:!this.searchable,role:"combobox","aria-autocomplete":"list","aria-label":this.ariaLabelCombobox,"aria-controls":"vs-".concat(this.uid,"__listbox"),"aria-owns":"vs-".concat(this.uid,"__listbox"),"aria-expanded":this.dropdownOpen.toString(),ref:"search",type:"search",autocomplete:this.autocomplete,value:this.search},this.dropdownOpen&&this.filteredOptions[this.typeAheadPointer]?{"aria-activedescendant":"vs-".concat(this.uid,"__option-").concat(this.typeAheadPointer)}:{}),events:{compositionstart:function(){return o.isComposing=!0},compositionend:function(){return o.isComposing=!1},keydown:this.onSearchKeyDown,keypress:this.onSearchKeyPress,blur:this.onSearchBlur,focus:this.onSearchFocus,input:function(v){return o.search=v.target.value}}},spinner:{loading:this.mutableLoading},noOptions:{search:this.search,loading:this.mutableLoading,searching:this.searching},openIndicator:{attributes:{ref:"openIndicator",role:"presentation",class:"vs__open-indicator"}},listHeader:g,listFooter:g,header:T({},g,{deselect:this.deselect}),footer:T({},g,{deselect:this.deselect})}},childComponents:function(){return T({},b,{},this.components)},stateClasses:function(){return{"vs--open":this.dropdownOpen,"vs--single":!this.multiple,"vs--multiple":this.multiple,"vs--searching":this.searching&&!this.noDrop,"vs--searchable":this.searchable&&!this.noDrop,"vs--unsearchable":!this.searchable,"vs--loading":this.mutableLoading,"vs--disabled":this.disabled}},searching:function(){return!!this.search},dropdownOpen:function(){return this.dropdownShouldOpen(this)},searchPlaceholder:function(){return this.isValueEmpty&&this.placeholder?this.placeholder:void 0},filteredOptions:function(){var o=this,g=function(_){return o.limit!==null?_.slice(0,o.limit):_},v=[].concat(this.optionList);if(!this.filterable&&!this.taggable)return g(v);var w=this.search.length?this.filter(v,this.search,this):v;if(this.taggable&&this.search.length){var C=this.createOption(this.search);this.optionExists(C)||w.unshift(C)}return g(w)},isValueEmpty:function(){return this.selectedValue.length===0},showClearButton:function(){return!this.multiple&&this.clearable&&!this.open&&!this.isValueEmpty}},watch:{options:function(o,g){var v=this;!this.taggable&&(typeof v.resetOnOptionsChange=="function"?v.resetOnOptionsChange(o,g,v.selectedValue):v.resetOnOptionsChange)&&this.clearSelection(),this.value&&this.isTrackingValues&&this.setInternalValueFromOptions(this.value)},value:{immediate:!0,handler:function(o){this.isTrackingValues&&this.setInternalValueFromOptions(o)}},multiple:function(){this.clearSelection()},open:function(o){this.$emit(o?"open":"close")},search:function(o){o.length&&(this.open=!0)}},created:function(){this.mutableLoading=this.loading,this.$on("option:created",this.pushTag)},methods:{setInternalValueFromOptions:function(o){var g=this;Array.isArray(o)?this.$data._value=o.map(function(v){return g.findOptionFromReducedValue(v)}):this.$data._value=this.findOptionFromReducedValue(o)},select:function(o){this.$emit("option:selecting",o),this.isOptionSelected(o)?this.deselectFromDropdown&&(this.clearable||this.multiple&&this.selectedValue.length>1)&&this.deselect(o):(this.taggable&&!this.optionExists(o)&&this.$emit("option:created",o),this.multiple&&(o=this.selectedValue.concat(o)),this.updateValue(o),this.$emit("option:selected",o)),this.onAfterSelect(o)},deselect:function(o){var g=this;this.$emit("option:deselecting",o),this.updateValue(this.selectedValue.filter(function(v){return!g.optionComparator(v,o)})),this.$emit("option:deselected",o)},keyboardDeselect:function(o,g){var v,w;this.deselect(o);var C=(v=this.$refs.deselectButtons)===null||v===void 0?void 0:v[g+1],_=(w=this.$refs.deselectButtons)===null||w===void 0?void 0:w[g-1],k=C??_;k?k.focus():this.searchEl.focus()},clearSelection:function(){this.updateValue(this.multiple?[]:null),this.searchEl.focus()},onAfterSelect:function(o){var g=this;this.closeOnSelect&&(this.open=!this.open),this.clearSearchOnSelect&&(this.search=""),this.noDrop&&this.multiple&&this.$nextTick(function(){return g.$refs.search.focus()})},updateValue:function(o){var g=this;this.value===void 0&&(this.$data._value=o),o!==null&&(o=Array.isArray(o)?o.map(function(v){return g.reduce(v)}):this.reduce(o)),this.$emit("input",o)},toggleDropdown:function(o){var g=o.target!==this.searchEl;g&&o.preventDefault();var v=[].concat(i()(this.$refs.deselectButtons||[]),i()([this.$refs.clearButton]));this.searchEl===void 0||v.filter(Boolean).some(function(w){return w.contains(o.target)||w===o.target})?o.preventDefault():this.open&&g?this.searchEl.blur():this.disabled||(this.open=!0,this.searchEl.focus())},isOptionSelected:function(o){var g=this;return this.selectedValue.some(function(v){return g.optionComparator(v,o)})},isOptionDeselectable:function(o){return this.isOptionSelected(o)&&this.deselectFromDropdown},hasKeyboardFocusBorder:function(o){return!(!this.keyboardFocusBorder||!this.isKeyboardNavigation)&&o===this.typeAheadPointer},optionComparator:function(o,g){return this.getOptionKey(o)===this.getOptionKey(g)},findOptionFromReducedValue:function(o){var g=this,v=[].concat(i()(this.options),i()(this.pushedTags)).filter(function(w){return JSON.stringify(g.reduce(w))===JSON.stringify(o)});return v.length===1?v[0]:v.find(function(w){return g.optionComparator(w,g.$data._value)})||o},closeSearchOptions:function(){this.open=!1,this.$emit("search:blur")},maybeDeleteValue:function(){if(!this.searchEl.value.length&&this.selectedValue&&this.selectedValue.length&&this.clearable){var o=null;this.multiple&&(o=i()(this.selectedValue.slice(0,this.selectedValue.length-1))),this.updateValue(o)}},optionExists:function(o){var g=this;return this.optionList.some(function(v){return g.optionComparator(v,o)})},optionAriaSelected:function(o){return this.selectable(o)?String(this.isOptionSelected(o)):null},normalizeOptionForSlot:function(o){return a()(o)==="object"?o:l()({},this.label,o)},pushTag:function(o){this.pushedTags.push(o)},onEscape:function(){this.search.length?this.search="":this.open=!1},onSearchBlur:function(){if(!this.mousedown||this.searching){var o=this.clearSearchOnSelect,g=this.multiple;return this.clearSearchOnBlur({clearSearchOnSelect:o,multiple:g})&&(this.search=""),void this.closeSearchOptions()}this.mousedown=!1,this.search.length!==0||this.options.length!==0||this.closeSearchOptions()},onSearchFocus:function(){this.open=!0,this.$emit("search:focus")},onMousedown:function(){this.mousedown=!0},onMouseUp:function(){this.mousedown=!1},onMouseMove:function(o,g){this.isKeyboardNavigation=!1,this.selectable(o)&&(this.typeAheadPointer=g)},onSearchKeyDown:function(o){var g=this,v=function(_){if(_.preventDefault(),g.open)return!g.isComposing&&g.typeAheadSelect();g.open=!0},w={8:function(_){return g.maybeDeleteValue()},9:function(_){return g.onTab()},27:function(_){return g.onEscape()},38:function(_){if(_.preventDefault(),g.isKeyboardNavigation=!0,g.open)return g.typeAheadUp();g.open=!0},40:function(_){if(_.preventDefault(),g.isKeyboardNavigation=!0,g.open)return g.typeAheadDown();g.open=!0}};this.selectOnKeyCodes.forEach(function(_){return w[_]=v});var C=this.mapKeydown(w,this);if(typeof C[o.keyCode]=="function")return C[o.keyCode](o)},onSearchKeyPress:function(o){this.open||o.keyCode!==32||(o.preventDefault(),this.open=!0)}}},function(){var o=this,g=o.$createElement,v=o._self._c||g;return v("div",{staticClass:"v-select",class:o.stateClasses,attrs:{id:"v-select-"+o.uid,dir:o.dir}},[o._t("header",null,null,o.scope.header),o._v(" "),v("div",{ref:"toggle",staticClass:"vs__dropdown-toggle"},[v("div",{ref:"selectedOptions",staticClass:"vs__selected-options",on:{mousedown:o.toggleDropdown}},[o._l(o.selectedValue,function(w,C){return o._t("selected-option-container",[v("span",{key:o.getOptionKey(w),staticClass:"vs__selected"},[o._t("selected-option",[o._v(`
            `+o._s(o.getOptionLabel(w))+`
          `)],null,o.normalizeOptionForSlot(w)),o._v(" "),o.multiple?v("button",{ref:"deselectButtons",refInFor:!0,staticClass:"vs__deselect",attrs:{disabled:o.disabled,type:"button",title:o.ariaLabelDeselectOption(o.getOptionLabel(w)),"aria-label":o.ariaLabelDeselectOption(o.getOptionLabel(w))},on:{mousedown:function(_){return _.stopPropagation(),o.deselect(w)},keydown:function(_){return!_.type.indexOf("key")&&o._k(_.keyCode,"enter",13,_.key,"Enter")?null:o.keyboardDeselect(w,C)}}},[v(o.childComponents.Deselect,{tag:"component"})],1):o._e()],2)],{option:o.normalizeOptionForSlot(w),deselect:o.deselect,multiple:o.multiple,disabled:o.disabled})}),o._v(" "),o._t("search",[v("input",o._g(o._b({staticClass:"vs__search"},"input",o.scope.search.attributes,!1),o.scope.search.events))],null,o.scope.search)],2),o._v(" "),v("div",{ref:"actions",staticClass:"vs__actions"},[v("button",{directives:[{name:"show",rawName:"v-show",value:o.showClearButton,expression:"showClearButton"}],ref:"clearButton",staticClass:"vs__clear",attrs:{disabled:o.disabled,type:"button",title:o.ariaLabelClearSelected,"aria-label":o.ariaLabelClearSelected},on:{click:o.clearSelection}},[v(o.childComponents.Deselect,{tag:"component"})],1),o._v(" "),o.noDrop?o._e():v("button",{ref:"openIndicatorButton",staticClass:"vs__open-indicator-button",attrs:{type:"button",tabindex:"-1","aria-labelledby":"vs-"+o.uid+"__listbox","aria-controls":"vs-"+o.uid+"__listbox","aria-expanded":o.dropdownOpen.toString()},on:{mousedown:o.toggleDropdown}},[o._t("open-indicator",[v(o.childComponents.OpenIndicator,o._b({tag:"component"},"component",o.scope.openIndicator.attributes,!1))],null,o.scope.openIndicator)],2),o._v(" "),o._t("spinner",[v("div",{directives:[{name:"show",rawName:"v-show",value:o.mutableLoading,expression:"mutableLoading"}],staticClass:"vs__spinner"},[o._v("Loading...")])],null,o.scope.spinner)],2)]),o._v(" "),v("transition",{attrs:{name:o.transition}},[o.dropdownOpen?v("ul",{directives:[{name:"append-to-body",rawName:"v-append-to-body"}],key:"vs-"+o.uid+"__listbox",ref:"dropdownMenu",staticClass:"vs__dropdown-menu",attrs:{id:"vs-"+o.uid+"__listbox",role:"listbox","aria-label":o.ariaLabelListbox,"aria-multiselectable":o.multiple,tabindex:"-1"},on:{mousedown:function(w){return w.preventDefault(),o.onMousedown(w)},mouseup:o.onMouseUp}},[o._t("list-header",null,null,o.scope.listHeader),o._v(" "),o._l(o.filteredOptions,function(w,C){return v("li",{key:o.getOptionKey(w),staticClass:"vs__dropdown-option",class:{"vs__dropdown-option--deselect":o.isOptionDeselectable(w)&&C===o.typeAheadPointer,"vs__dropdown-option--selected":o.isOptionSelected(w),"vs__dropdown-option--highlight":C===o.typeAheadPointer,"vs__dropdown-option--kb-focus":o.hasKeyboardFocusBorder(C),"vs__dropdown-option--disabled":!o.selectable(w)},attrs:{id:"vs-"+o.uid+"__option-"+C,role:"option","aria-selected":o.optionAriaSelected(w)},on:{mousemove:function(_){return o.onMouseMove(w,C)},click:function(_){_.preventDefault(),_.stopPropagation(),o.selectable(w)&&o.select(w)}}},[o._t("option",[o._v(`
          `+o._s(o.getOptionLabel(w))+`
        `)],null,o.normalizeOptionForSlot(w))],2)}),o._v(" "),o.filteredOptions.length===0?v("li",{staticClass:"vs__no-options"},[o._t("no-options",[o._v(`
          Sorry, no matching options.
        `)],null,o.scope.noOptions)],2):o._e(),o._v(" "),o._t("list-footer",null,null,o.scope.listFooter)],2):v("ul",{staticStyle:{display:"none",visibility:"hidden"},attrs:{id:"vs-"+o.uid+"__listbox",role:"listbox","aria-label":o.ariaLabelListbox}})]),o._v(" "),o._t("footer",null,null,o.scope.footer)],2)},[]).exports,M={ajax:m,pointer:p,pointerScroll:u},D=B})(),d})()})}(Tt)),Tt.exports}var H=cn();function gt(t){return t.split("-")[1]}function ve(t){return t==="y"?"height":"width"}function z(t){return t.split("-")[0]}function ot(t){return["top","bottom"].includes(z(t))?"x":"y"}function zt(t,e,n){let{reference:s,floating:r}=t;const d=s.x+s.width/2-r.width/2,h=s.y+s.height/2-r.height/2,i=ot(e),f=ve(i),a=s[f]/2-r[f]/2,c=i==="x";let l;switch(z(e)){case"top":l={x:d,y:s.y-r.height};break;case"bottom":l={x:d,y:s.y+s.height};break;case"right":l={x:s.x+s.width,y:h};break;case"left":l={x:s.x-r.width,y:h};break;default:l={x:s.x,y:s.y}}switch(gt(e)){case"start":l[i]-=a*(n&&c?-1:1);break;case"end":l[i]+=a*(n&&c?-1:1)}return l}const un=async(t,e,n)=>{const{placement:s="bottom",strategy:r="absolute",middleware:d=[],platform:h}=n,i=d.filter(Boolean),f=await(h.isRTL==null?void 0:h.isRTL(e));let a=await h.getElementRects({reference:t,floating:e,strategy:r}),{x:c,y:l}=zt(a,s,f),u=s,p={},m=0;for(let y=0;y<i.length;y++){const{name:b,fn:x}=i[y],{x:O,y:S,data:A,reset:L}=await x({x:c,y:l,initialPlacement:s,placement:u,strategy:r,middlewareData:p,rects:a,platform:h,elements:{reference:t,floating:e}});c=O??c,l=S??l,p={...p,[b]:{...p[b],...A}},L&&m<=50&&(m++,typeof L=="object"&&(L.placement&&(u=L.placement),L.rects&&(a=L.rects===!0?await h.getElementRects({reference:t,floating:e,strategy:r}):L.rects),{x:c,y:l}=zt(a,u,f)),y=-1)}return{x:c,y:l,placement:u,strategy:r,middlewareData:p}};function J(t,e){return typeof t=="function"?t(e):t}function dn(t){return typeof t!="number"?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(t):{top:t,right:t,bottom:t,left:t}}function lt(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}async function ye(t,e){var n;e===void 0&&(e={});const{x:s,y:r,platform:d,rects:h,elements:i,strategy:f}=t,{boundary:a="clippingAncestors",rootBoundary:c="viewport",elementContext:l="floating",altBoundary:u=!1,padding:p=0}=J(e,t),m=dn(p),y=i[u?l==="floating"?"reference":"floating":l],b=lt(await d.getClippingRect({element:(n=await(d.isElement==null?void 0:d.isElement(y)))==null||n?y:y.contextElement||await(d.getDocumentElement==null?void 0:d.getDocumentElement(i.floating)),boundary:a,rootBoundary:c,strategy:f})),x=l==="floating"?{...h.floating,x:s,y:r}:h.reference,O=await(d.getOffsetParent==null?void 0:d.getOffsetParent(i.floating)),S=await(d.isElement==null?void 0:d.isElement(O))&&await(d.getScale==null?void 0:d.getScale(O))||{x:1,y:1},A=lt(d.convertOffsetParentRelativeRectToViewportRelativeRect?await d.convertOffsetParentRelativeRectToViewportRelativeRect({rect:x,offsetParent:O,strategy:f}):x);return{top:(b.top-A.top+m.top)/S.y,bottom:(A.bottom-b.bottom+m.bottom)/S.y,left:(b.left-A.left+m.left)/S.x,right:(A.right-b.right+m.right)/S.x}}const hn=Math.min,pn=Math.max;function Rt(t,e,n){return pn(t,hn(e,n))}const fn=["top","right","bottom","left"];fn.reduce((t,e)=>t.concat(e,e+"-start",e+"-end"),[]);const gn={left:"right",right:"left",bottom:"top",top:"bottom"};function ct(t){return t.replace(/left|right|bottom|top/g,e=>gn[e])}function mn(t,e,n){n===void 0&&(n=!1);const s=gt(t),r=ot(t),d=ve(r);let h=r==="x"?s===(n?"end":"start")?"right":"left":s==="start"?"bottom":"top";return e.reference[d]>e.floating[d]&&(h=ct(h)),{main:h,cross:ct(h)}}const vn={start:"end",end:"start"};function wt(t){return t.replace(/start|end/g,e=>vn[e])}const yn=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n;const{placement:s,middlewareData:r,rects:d,initialPlacement:h,platform:i,elements:f}=e,{mainAxis:a=!0,crossAxis:c=!0,fallbackPlacements:l,fallbackStrategy:u="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:m=!0,...y}=J(t,e),b=z(s),x=z(h)===h,O=await(i.isRTL==null?void 0:i.isRTL(f.floating)),S=l||(x||!m?[ct(h)]:function(g){const v=ct(g);return[wt(g),v,wt(v)]}(h));l||p==="none"||S.push(...function(g,v,w,C){const _=gt(g);let k=function(P,X,q){const st=["left","right"],Ut=["right","left"],Me=["top","bottom"],Ee=["bottom","top"];switch(P){case"top":case"bottom":return q?X?Ut:st:X?st:Ut;case"left":case"right":return X?Me:Ee;default:return[]}}(z(g),w==="start",C);return _&&(k=k.map(P=>P+"-"+_),v&&(k=k.concat(k.map(wt)))),k}(h,m,p,O));const A=[h,...S],L=await ye(e,y),T=[];let B=((n=r.flip)==null?void 0:n.overflows)||[];if(a&&T.push(L[b]),c){const{main:g,cross:v}=mn(s,d,O);T.push(L[g],L[v])}if(B=[...B,{placement:s,overflows:T}],!T.every(g=>g<=0)){var M,D;const g=(((M=r.flip)==null?void 0:M.index)||0)+1,v=A[g];if(v)return{data:{index:g,overflows:B},reset:{placement:v}};let w=(D=B.filter(C=>C.overflows[0]<=0).sort((C,_)=>C.overflows[1]-_.overflows[1])[0])==null?void 0:D.placement;if(!w)switch(u){case"bestFit":{var o;const C=(o=B.map(_=>[_.placement,_.overflows.filter(k=>k>0).reduce((k,P)=>k+P,0)]).sort((_,k)=>_[1]-k[1])[0])==null?void 0:o[0];C&&(w=C);break}case"initialPlacement":w=h}if(s!==w)return{reset:{placement:w}}}return{}}}},bn=function(t){return{name:"offset",options:t,async fn(e){const{x:n,y:s}=e,r=await async function(d,h){const{placement:i,platform:f,elements:a}=d,c=await(f.isRTL==null?void 0:f.isRTL(a.floating)),l=z(i),u=gt(i),p=ot(i)==="x",m=["left","top"].includes(l)?-1:1,y=c&&p?-1:1,b=J(h,d);let{mainAxis:x,crossAxis:O,alignmentAxis:S}=typeof b=="number"?{mainAxis:b,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...b};return u&&typeof S=="number"&&(O=u==="end"?-1*S:S),p?{x:O*y,y:x*m}:{x:x*m,y:O*y}}(e,t);return{x:n+r.x,y:s+r.y,data:r}}}};function be(t){return t==="x"?"y":"x"}const wn=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:s,placement:r}=e,{mainAxis:d=!0,crossAxis:h=!1,limiter:i={fn:b=>{let{x,y:O}=b;return{x,y:O}}},...f}=J(t,e),a={x:n,y:s},c=await ye(e,f),l=ot(z(r)),u=be(l);let p=a[l],m=a[u];if(d){const b=l==="y"?"bottom":"right";p=Rt(p+c[l==="y"?"top":"left"],p,p-c[b])}if(h){const b=u==="y"?"bottom":"right";m=Rt(m+c[u==="y"?"top":"left"],m,m-c[b])}const y=i.fn({...e,[l]:p,[u]:m});return{...y,data:{x:y.x-n,y:y.y-s}}}}},xn=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:n,y:s,placement:r,rects:d,middlewareData:h}=e,{offset:i=0,mainAxis:f=!0,crossAxis:a=!0}=J(t,e),c={x:n,y:s},l=ot(r),u=be(l);let p=c[l],m=c[u];const y=J(i,e),b=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(f){const S=l==="y"?"height":"width",A=d.reference[l]-d.floating[S]+b.mainAxis,L=d.reference[l]+d.reference[S]-b.mainAxis;p<A?p=A:p>L&&(p=L)}if(a){var x,O;const S=l==="y"?"width":"height",A=["top","left"].includes(z(r)),L=d.reference[u]-d.floating[S]+(A&&((x=h.offset)==null?void 0:x[u])||0)+(A?0:b.crossAxis),T=d.reference[u]+d.reference[S]+(A?0:((O=h.offset)==null?void 0:O[u])||0)-(A?b.crossAxis:0);m<L?m=L:m>T&&(m=T)}return{[l]:p,[u]:m}}}};function N(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function U(t){return N(t).getComputedStyle(t)}function we(t){return t instanceof N(t).Node}function R(t){return we(t)?(t.nodeName||"").toLowerCase():"#document"}function E(t){return t instanceof HTMLElement||t instanceof N(t).HTMLElement}function jt(t){return typeof ShadowRoot<"u"&&(t instanceof N(t).ShadowRoot||t instanceof ShadowRoot)}function nt(t){const{overflow:e,overflowX:n,overflowY:s,display:r}=U(t);return/auto|scroll|overlay|hidden|clip/.test(e+s+n)&&!["inline","contents"].includes(r)}function Sn(t){return["table","td","th"].includes(R(t))}function kt(t){const e=Mt(),n=U(t);return n.transform!=="none"||n.perspective!=="none"||!!n.containerType&&n.containerType!=="normal"||!e&&!!n.backdropFilter&&n.backdropFilter!=="none"||!e&&!!n.filter&&n.filter!=="none"||["transform","perspective","filter"].some(s=>(n.willChange||"").includes(s))||["paint","layout","strict","content"].some(s=>(n.contain||"").includes(s))}function Mt(){return!(typeof CSS>"u"||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function mt(t){return["html","body","#document"].includes(R(t))}const Dt=Math.min,Z=Math.max,ut=Math.round,it=Math.floor,j=t=>({x:t,y:t});function xe(t){const e=U(t);let n=parseFloat(e.width)||0,s=parseFloat(e.height)||0;const r=E(t),d=r?t.offsetWidth:n,h=r?t.offsetHeight:s,i=ut(n)!==d||ut(s)!==h;return i&&(n=d,s=h),{width:n,height:s,$:i}}function F(t){return t instanceof Element||t instanceof N(t).Element}function Et(t){return F(t)?t:t.contextElement}function Y(t){const e=Et(t);if(!E(e))return j(1);const n=e.getBoundingClientRect(),{width:s,height:r,$:d}=xe(e);let h=(d?ut(n.width):n.width)/s,i=(d?ut(n.height):n.height)/r;return h&&Number.isFinite(h)||(h=1),i&&Number.isFinite(i)||(i=1),{x:h,y:i}}const _n=j(0);function Se(t){const e=N(t);return Mt()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:_n}function W(t,e,n,s){e===void 0&&(e=!1),n===void 0&&(n=!1);const r=t.getBoundingClientRect(),d=Et(t);let h=j(1);e&&(s?F(s)&&(h=Y(s)):h=Y(t));const i=function(u,p,m){return p===void 0&&(p=!1),!(!m||p&&m!==N(u))&&p}(d,n,s)?Se(d):j(0);let f=(r.left+i.x)/h.x,a=(r.top+i.y)/h.y,c=r.width/h.x,l=r.height/h.y;if(d){const u=N(d),p=s&&F(s)?N(s):s;let m=u.frameElement;for(;m&&s&&p!==u;){const y=Y(m),b=m.getBoundingClientRect(),x=getComputedStyle(m),O=b.left+(m.clientLeft+parseFloat(x.paddingLeft))*y.x,S=b.top+(m.clientTop+parseFloat(x.paddingTop))*y.y;f*=y.x,a*=y.y,c*=y.x,l*=y.y,f+=O,a+=S,m=N(m).frameElement}}return lt({width:c,height:l,x:f,y:a})}function vt(t){return F(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function V(t){var e;return(e=(we(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function _e(t){return W(V(t)).left+vt(t).scrollLeft}function Q(t){if(R(t)==="html")return t;const e=t.assignedSlot||t.parentNode||jt(t)&&t.host||V(t);return jt(e)?e.host:e}function Ce(t){const e=Q(t);return mt(e)?t.ownerDocument?t.ownerDocument.body:t.body:E(e)&&nt(e)?e:Ce(e)}function dt(t,e){var n;e===void 0&&(e=[]);const s=Ce(t),r=s===((n=t.ownerDocument)==null?void 0:n.body),d=N(s);return r?e.concat(d,d.visualViewport||[],nt(s)?s:[]):e.concat(s,dt(s))}function Ht(t,e,n){let s;if(e==="viewport")s=function(r,d){const h=N(r),i=V(r),f=h.visualViewport;let a=i.clientWidth,c=i.clientHeight,l=0,u=0;if(f){a=f.width,c=f.height;const p=Mt();(!p||p&&d==="fixed")&&(l=f.offsetLeft,u=f.offsetTop)}return{width:a,height:c,x:l,y:u}}(t,n);else if(e==="document")s=function(r){const d=V(r),h=vt(r),i=r.ownerDocument.body,f=Z(d.scrollWidth,d.clientWidth,i.scrollWidth,i.clientWidth),a=Z(d.scrollHeight,d.clientHeight,i.scrollHeight,i.clientHeight);let c=-h.scrollLeft+_e(r);const l=-h.scrollTop;return U(i).direction==="rtl"&&(c+=Z(d.clientWidth,i.clientWidth)-f),{width:f,height:a,x:c,y:l}}(V(t));else if(F(e))s=function(r,d){const h=W(r,!0,d==="fixed"),i=h.top+r.clientTop,f=h.left+r.clientLeft,a=E(r)?Y(r):j(1);return{width:r.clientWidth*a.x,height:r.clientHeight*a.y,x:f*a.x,y:i*a.y}}(e,n);else{const r=Se(t);s={...e,x:e.x-r.x,y:e.y-r.y}}return lt(s)}function Oe(t,e){const n=Q(t);return!(n===e||!F(n)||mt(n))&&(U(n).position==="fixed"||Oe(n,e))}function Cn(t,e,n){const s=E(e),r=V(e),d=n==="fixed",h=W(t,!0,d,e);let i={scrollLeft:0,scrollTop:0};const f=j(0);if(s||!s&&!d)if((R(e)!=="body"||nt(r))&&(i=vt(e)),E(e)){const a=W(e,!0,d,e);f.x=a.x+e.clientLeft,f.y=a.y+e.clientTop}else r&&(f.x=_e(r));return{x:h.left+i.scrollLeft-f.x,y:h.top+i.scrollTop-f.y,width:h.width,height:h.height}}function Wt(t,e){return E(t)&&U(t).position!=="fixed"?e?e(t):t.offsetParent:null}function Xt(t,e){const n=N(t);if(!E(t))return n;let s=Wt(t,e);for(;s&&Sn(s)&&U(s).position==="static";)s=Wt(s,e);return s&&(R(s)==="html"||R(s)==="body"&&U(s).position==="static"&&!kt(s))?n:s||function(r){let d=Q(r);for(;E(d)&&!mt(d);){if(kt(d))return d;d=Q(d)}return null}(t)||n}const On={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:n,strategy:s}=t;const r=E(n),d=V(n);if(n===d)return e;let h={scrollLeft:0,scrollTop:0},i=j(1);const f=j(0);if((r||!r&&s!=="fixed")&&((R(n)!=="body"||nt(d))&&(h=vt(n)),E(n))){const a=W(n);i=Y(n),f.x=a.x+n.clientLeft,f.y=a.y+n.clientTop}return{width:e.width*i.x,height:e.height*i.y,x:e.x*i.x-h.scrollLeft*i.x+f.x,y:e.y*i.y-h.scrollTop*i.y+f.y}},getDocumentElement:V,getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:s,strategy:r}=t;const d=[...n==="clippingAncestors"?function(f,a){const c=a.get(f);if(c)return c;let l=dt(f).filter(y=>F(y)&&R(y)!=="body"),u=null;const p=U(f).position==="fixed";let m=p?Q(f):f;for(;F(m)&&!mt(m);){const y=U(m),b=kt(m);b||y.position!=="fixed"||(u=null),(p?!b&&!u:!b&&y.position==="static"&&u&&["absolute","fixed"].includes(u.position)||nt(m)&&!b&&Oe(f,m))?l=l.filter(x=>x!==m):u=y,m=Q(m)}return a.set(f,l),l}(e,this._c):[].concat(n),s],h=d[0],i=d.reduce((f,a)=>{const c=Ht(e,a,r);return f.top=Z(c.top,f.top),f.right=Dt(c.right,f.right),f.bottom=Dt(c.bottom,f.bottom),f.left=Z(c.left,f.left),f},Ht(e,h,r));return{width:i.right-i.left,height:i.bottom-i.top,x:i.left,y:i.top}},getOffsetParent:Xt,getElementRects:async function(t){let{reference:e,floating:n,strategy:s}=t;const r=this.getOffsetParent||Xt,d=this.getDimensions;return{reference:Cn(e,await r(n),s),floating:{x:0,y:0,...await d(n)}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){return xe(t)},getScale:Y,isElement:F,isRTL:function(t){return getComputedStyle(t).direction==="rtl"}};function Ln(t,e,n,s){s===void 0&&(s={});const{ancestorScroll:r=!0,ancestorResize:d=!0,elementResize:h=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:f=!1}=s,a=Et(t),c=r||d?[...a?dt(a):[],...dt(e)]:[];c.forEach(b=>{r&&b.addEventListener("scroll",n,{passive:!0}),d&&b.addEventListener("resize",n)});const l=a&&i?function(b,x){let O,S=null;const A=V(b);function L(){clearTimeout(O),S&&S.disconnect(),S=null}return function T(B,M){B===void 0&&(B=!1),M===void 0&&(M=1),L();const{left:D,top:o,width:g,height:v}=b.getBoundingClientRect();if(B||x(),!g||!v)return;const w={rootMargin:-it(o)+"px "+-it(A.clientWidth-(D+g))+"px "+-it(A.clientHeight-(o+v))+"px "+-it(D)+"px",threshold:Z(0,Dt(1,M))||1};let C=!0;function _(k){const P=k[0].intersectionRatio;if(P!==M){if(!C)return T();P?T(!1,P):O=setTimeout(()=>{T(!1,1e-7)},100)}C=!1}try{S=new IntersectionObserver(_,{...w,root:A.ownerDocument})}catch{S=new IntersectionObserver(_,w)}S.observe(b)}(!0),L}(a,n):null;let u,p=-1,m=null;h&&(m=new ResizeObserver(b=>{let[x]=b;x&&x.target===a&&m&&(m.unobserve(e),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{m&&m.observe(e)})),n()}),a&&!f&&m.observe(a),m.observe(e));let y=f?W(t):null;return f&&function b(){const x=W(t);!y||x.x===y.x&&x.y===y.y&&x.width===y.width&&x.height===y.height||n(),y=x,u=requestAnimationFrame(b)}(),n(),()=>{c.forEach(b=>{r&&b.removeEventListener("scroll",n),d&&b.removeEventListener("resize",n)}),l&&l(),m&&m.disconnect(),m=null,f&&cancelAnimationFrame(u)}}const An=(t,e,n)=>{const s=new Map,r={platform:On,...n},d={...r.platform,_c:s};return un(t,e,{...r,platform:d})},Tn={name:"ChevronDownIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var kn=function(){var t=this,e=t._self._c;return e("span",t._b({staticClass:"material-design-icon chevron-down-icon",attrs:{"aria-hidden":t.title?null:"true","aria-label":t.title,role:"img"},on:{click:function(n){return t.$emit("click",n)}}},"span",t.$attrs,!1),[e("svg",{staticClass:"material-design-icon__svg",attrs:{fill:t.fillColor,width:t.size,height:t.size,viewBox:"0 0 24 24"}},[e("path",{attrs:{d:"M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z"}},[t.title?e("title",[t._v(t._s(t.title))]):t._e()])])])},Dn=[],Bn=$(Tn,kn,Dn,!1,null,null);const In=Bn.exports,Le=(t,e)=>{const n=[];let s=0,r=t.toLowerCase().indexOf(e.toLowerCase(),s),d=0;for(;r>-1&&d<t.length;)s=r+e.length,n.push({start:r,end:s}),r=t.toLowerCase().indexOf(e.toLowerCase(),s),d++;return n},Nn={name:"NcHighlight",props:{text:{type:String,default:""},search:{type:String,default:""},highlight:{type:Array,default:()=>[]}},computed:{ranges(){let t=[];return!this.search&&this.highlight.length===0||(this.highlight.length>0?t=this.highlight:t=Le(this.text,this.search),t.forEach((e,n)=>{e.end<e.start&&(t[n]={start:e.end,end:e.start})}),t=t.reduce((e,n)=>(n.start<this.text.length&&n.end>0&&e.push({start:n.start<0?0:n.start,end:n.end>this.text.length?this.text.length:n.end}),e),[]),t.sort((e,n)=>e.start-n.start),t=t.reduce((e,n)=>{if(!e.length)e.push(n);else{const s=e.length-1;e[s].end>=n.start?e[s]={start:e[s].start,end:Math.max(e[s].end,n.end)}:e.push(n)}return e},[])),t},chunks(){if(this.ranges.length===0)return[{start:0,end:this.text.length,highlight:!1,text:this.text}];const t=[];let e=0,n=0;for(;e<this.text.length;){const s=this.ranges[n];if(s.start===e){t.push({...s,highlight:!0,text:this.text.slice(s.start,s.end)}),n++,e=s.end,n>=this.ranges.length&&e<this.text.length&&(t.push({start:e,end:this.text.length,highlight:!1,text:this.text.slice(e)}),e=this.text.length);continue}t.push({start:e,end:s.start,highlight:!1,text:this.text.slice(e,s.start)}),e=s.start}return t}},render(t){return this.ranges.length?t("span",{},this.chunks.map(e=>e.highlight?t("strong",{},e.text):e.text)):t("span",{},this.text)}},Pn=null,Mn=null;var En=$(Nn,Pn,Mn,!1,null,null);const Ae=En.exports,Un={name:"NcEllipsisedOption",components:{NcHighlight:Ae},props:{name:{type:String,default:""},search:{type:String,default:""}},computed:{needsTruncate(){return this.name&&this.name.length>=10},split(){return this.name.length-Math.min(Math.floor(this.name.length/2),10)},part1(){return this.needsTruncate?this.name.slice(0,this.split):this.name},part2(){return this.needsTruncate?this.name.slice(this.split):""},highlight1(){return this.search?Le(this.name,this.search):[]},highlight2(){return this.highlight1.map(t=>({start:t.start-this.split,end:t.end-this.split}))}}};var $n=function(){var t=this,e=t._self._c;return e("span",{staticClass:"name-parts",attrs:{dir:"auto",title:t.name}},[e("NcHighlight",{staticClass:"name-parts__first",attrs:{text:t.part1,search:t.search,highlight:t.highlight1}}),t.part2?e("NcHighlight",{staticClass:"name-parts__last",attrs:{text:t.part2,search:t.search,highlight:t.highlight2}}):t._e()],1)},Fn=[],Vn=$(Un,$n,Fn,!1,null,"f6384352");const qn=Vn.exports;Ot.util.warn;function tt(t){var e;const n=G(t);return(e=n?.$el)!=null?e:n}const Te=Ue?window:void 0;function at(...t){let e,n,s,r;if(typeof t[0]=="string"||Array.isArray(t[0])?([n,s,r]=t,e=Te):[e,n,s,r]=t,!e)return rt;Array.isArray(n)||(n=[n]),Array.isArray(s)||(s=[s]);const d=[],h=()=>{d.forEach(c=>c()),d.length=0},i=(c,l,u,p)=>(c.addEventListener(l,u,p),()=>c.removeEventListener(l,u,p)),f=et(()=>[tt(e),G(r)],([c,l])=>{if(h(),!c)return;const u=$e(l)?{...l}:l;d.push(...n.flatMap(p=>s.map(m=>i(c,p,m,u))))},{immediate:!0,flush:"post"}),a=()=>{f(),h()};return ue(a),a}let Kt=!1;function Gt(t,e,n={}){const{window:s=Te,ignore:r=[],capture:d=!0,detectIframe:h=!1}=n;if(!s)return rt;Lt&&!Kt&&(Kt=!0,Array.from(s.document.body.children).forEach(c=>c.addEventListener("click",rt)),s.document.documentElement.addEventListener("click",rt));let i=!0;const f=c=>r.some(l=>{if(typeof l=="string")return Array.from(s.document.querySelectorAll(l)).some(u=>u===c.target||c.composedPath().includes(u));{const u=tt(l);return u&&(c.target===u||c.composedPath().includes(u))}}),a=[at(s,"click",c=>{const l=tt(t);if(!(!l||l===c.target||c.composedPath().includes(l))){if(c.detail===0&&(i=!f(c)),!i){i=!0;return}e(c)}},{passive:!0,capture:d}),at(s,"pointerdown",c=>{const l=tt(t);i=!f(c)&&!!(l&&!c.composedPath().includes(l))},{passive:!0}),h&&at(s,"blur",c=>{setTimeout(()=>{var l;const u=tt(t);((l=s.document.activeElement)==null?void 0:l.tagName)==="IFRAME"&&!u?.contains(s.document.activeElement)&&e(c)},0)})].filter(Boolean);return()=>a.forEach(c=>c())}const zn={[$t.mounted](t,e){const n=!e.modifiers.bubble;if(typeof e.value=="function")t.__onClickOutside_stop=Gt(t,e.value,{capture:n});else{const[s,r]=e.value;t.__onClickOutside_stop=Gt(t,s,Object.assign({capture:n},r))}},[$t.unmounted](t){t.__onClickOutside_stop()}};function xt(t){return typeof Window<"u"&&t instanceof Window?t.document.documentElement:typeof Document<"u"&&t instanceof Document?t.documentElement:t}function ke(t){const e=window.getComputedStyle(t);if(e.overflowX==="scroll"||e.overflowY==="scroll"||e.overflowX==="auto"&&t.clientWidth<t.scrollWidth||e.overflowY==="auto"&&t.clientHeight<t.scrollHeight)return!0;{const n=t.parentNode;return!n||n.tagName==="BODY"?!1:ke(n)}}function Rn(t){const e=t||window.event,n=e.target;return ke(n)?!1:e.touches.length>1?!0:(e.preventDefault&&e.preventDefault(),!1)}const St=new WeakMap;function jn(t,e=!1){const n=pt(e);let s=null,r="";et(Fe(t),i=>{const f=xt(G(i));if(f){const a=f;if(St.get(a)||St.set(a,a.style.overflow),a.style.overflow!=="hidden"&&(r=a.style.overflow),a.style.overflow==="hidden")return n.value=!0;if(n.value)return a.style.overflow="hidden"}},{immediate:!0});const d=()=>{const i=xt(G(t));!i||n.value||(Lt&&(s=at(i,"touchmove",f=>{Rn(f)},{passive:!1})),i.style.overflow="hidden",n.value=!0)},h=()=>{const i=xt(G(t));!i||!n.value||(Lt&&s?.(),i.style.overflow=r,St.delete(i),n.value=!1)};return ue(h),It({get(){return n.value},set(i){i?d():h()}})}function Hn(){let t=!1;const e=pt(!1);return(n,s)=>{if(e.value=s.value,t)return;t=!0;const r=jn(n,s.value);et(e,d=>r.value=d)}}Hn();const Wn={name:"NcActionLink",mixins:[Nt],inject:{isInSemanticMenu:{from:"NcActions:isSemanticMenu",default:!1}},props:{href:{type:String,default:"#",required:!0,validator:t=>{try{return new URL(t)}catch{return t.startsWith("#")||t.startsWith("/")}}},download:{type:String,default:null},target:{type:String,default:"_self",validator:t=>t&&(!t.startsWith("_")||["_blank","_self","_parent","_top"].indexOf(t)>-1)},title:{type:String,default:null},ariaHidden:{type:Boolean,default:null}}};var Xn=function(){var t=this,e=t._self._c;return e("li",{staticClass:"action",attrs:{role:t.isInSemanticMenu&&"presentation"}},[e("a",{staticClass:"action-link focusable",attrs:{download:t.download,href:t.href,"aria-label":t.ariaLabel,target:t.target,title:t.title,rel:"nofollow noreferrer noopener",role:t.isInSemanticMenu&&"menuitem"},on:{click:t.onClick}},[t._t("icon",function(){return[e("span",{staticClass:"action-link__icon",class:[t.isIconUrl?"action-link__icon--url":t.icon],style:{backgroundImage:t.isIconUrl?`url(${t.icon})`:null},attrs:{"aria-hidden":"true"}})]}),t.name?e("span",{staticClass:"action-link__longtext-wrapper"},[e("strong",{staticClass:"action-link__name"},[t._v(" "+t._s(t.name)+" ")]),e("br"),e("span",{staticClass:"action-link__longtext",domProps:{textContent:t._s(t.text)}})]):t.isLongText?e("span",{staticClass:"action-link__longtext",domProps:{textContent:t._s(t.text)}}):e("span",{staticClass:"action-link__text"},[t._v(t._s(t.text))]),t._e()],2)])},Kn=[],Gn=$(Wn,Xn,Kn,!1,null,"30c015f0");const Zn=Gn.exports,Yn={name:"NcActionRouter",mixins:[Nt],inject:{isInSemanticMenu:{from:"NcActions:isSemanticMenu",default:!1}},props:{to:{type:[String,Object],default:"",required:!0},exact:{type:Boolean,default:!1}}};var Jn=function(){var t=this,e=t._self._c;return e("li",{staticClass:"action",attrs:{role:t.isInSemanticMenu&&"presentation"}},[e("RouterLink",{staticClass:"action-router focusable",attrs:{to:t.to,"aria-label":t.ariaLabel,exact:t.exact,title:t.title,rel:"nofollow noreferrer noopener",role:t.isInSemanticMenu&&"menuitem"},nativeOn:{click:function(n){return t.onClick.apply(null,arguments)}}},[t._t("icon",function(){return[e("span",{staticClass:"action-router__icon",class:[t.isIconUrl?"action-router__icon--url":t.icon],style:{backgroundImage:t.isIconUrl?`url(${t.icon})`:null},attrs:{"aria-hidden":"true"}})]}),t.name?e("span",{staticClass:"action-router__longtext-wrapper"},[e("strong",{staticClass:"action-router__name"},[t._v(" "+t._s(t.name)+" ")]),e("br"),e("span",{staticClass:"action-router__longtext",domProps:{textContent:t._s(t.text)}})]):t.isLongText?e("span",{staticClass:"action-router__longtext",domProps:{textContent:t._s(t.text)}}):e("span",{staticClass:"action-router__text"},[t._v(t._s(t.text))]),t._e()],2)],1)},Qn=[],to=$(Yn,Jn,Qn,!1,null,"579c6b4d");const eo=to.exports,no={name:"NcActionText",mixins:[Nt],inject:{isInSemanticMenu:{from:"NcActions:isSemanticMenu",default:!1}}};var oo=function(){var t=this,e=t._self._c;return e("li",{staticClass:"action",attrs:{role:t.isInSemanticMenu&&"presentation"}},[e("span",{staticClass:"action-text",on:{click:t.onClick}},[t._t("icon",function(){return[t.icon!==""?e("span",{staticClass:"action-text__icon",class:[t.isIconUrl?"action-text__icon--url":t.icon],style:{backgroundImage:t.isIconUrl?`url(${t.icon})`:null},attrs:{"aria-hidden":"true"}}):t._e()]}),t.name?e("span",{staticClass:"action-text__longtext-wrapper"},[e("strong",{staticClass:"action-text__name"},[t._v(" "+t._s(t.name)+" ")]),e("span",{staticClass:"action-text__longtext",domProps:{textContent:t._s(t.text)}})]):t.isLongText?e("span",{staticClass:"action-text__longtext",domProps:{textContent:t._s(t.text)}}):e("span",{staticClass:"action-text__text"},[t._v(t._s(t.text))]),t._e()],2)])},so=[],io=$(no,oo,so,!1,null,"6a01d6d2");const ro=io.exports,ao=`<!--
  - SPDX-FileCopyrightText: 2020 Google Inc.
  - SPDX-License-Identifier: Apache-2.0
-->
<svg viewBox="0 -960 960 960" width="24px" height="24px" xmlns="http://www.w3.org/2000/svg">
	<path
		fill="var(--user-status-color-online, var(--color-success, #2D7B41))"
		d="m424-296 282-282-56-56-226 226-114-114-56 56 170 170Zm56 216q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Z"/>
</svg>
`,lo=`<!--
  - SPDX-FileCopyrightText: 2020 Google Inc.
  - SPDX-License-Identifier: Apache-2.0
-->
<svg viewBox="-1 -1 18 18" width="16" height="16" xmlns="http://www.w3.org/2000/svg">
	<path fill="var(--color-success)" d="M4.8 11.2h6.4V4.8H4.8v6.4zM8 0C3.6 0 0 3.6 0 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8z" />
</svg>
`,co=`<!--
  - SPDX-FileCopyrightText: 2020 Google Inc.
  - SPDX-License-Identifier: Apache-2.0
-->
<svg viewBox="0 -960 960 960" width="24px" height="24px" xmlns="http://www.w3.org/2000/svg">
	<path
		fill="var(--user-status-color-away, var(--color-warning, #C88800))"
		d="m612-292 56-56-148-148v-184h-80v216l172 172ZM480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Z"/>
</svg>
`,Zt=`<!--
  - SPDX-FileCopyrightText: 2020 Google Inc.
  - SPDX-License-Identifier: Apache-2.0
-->
<svg viewBox="-1 -1 18 18" width="16" height="16" xmlns="http://www.w3.org/2000/svg">
	<path fill="none" d="M-4-4h24v24H-4z" />
	<path fill="var(--color-warning)" d="M6.9.1C3 .6-.1 4-.1 8c0 4.4 3.6 8 8 8 4 0 7.4-3 8-6.9-1.2 1.3-2.9 2.1-4.7 2.1-3.5 0-6.4-2.9-6.4-6.4 0-1.9.8-3.6 2.1-4.7z" />
</svg>
`,uo=`<!--
  - SPDX-FileCopyrightText: 2020 Google Inc.
  - SPDX-License-Identifier: Apache-2.0
-->
<svg viewBox="0 -960 960 960" width="24px" height="24px" xmlns="http://www.w3.org/2000/svg">
	<path
		fill="var(--user-status-color-busy, var(--color-error, #DB0606))"
		d="M480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Z"/>
</svg>
`,ho=`<!--
  - SPDX-FileCopyrightText: 2020 Google Inc.
  - SPDX-License-Identifier: Apache-2.0
-->
<svg viewBox="0 -960 960 960" width="24px" height="24px" xmlns="http://www.w3.org/2000/svg">
	<path
		fill="var(--user-status-color-busy, var(--color-error, #DB0606))"
		d="M280-440h400v-80H280v80ZM480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Z"/>
</svg>
`,po=`<!--
  - SPDX-FileCopyrightText: 2020 Google Inc.
  - SPDX-License-Identifier: Apache-2.0
-->
<svg viewBox="-1 -1 18 18" width="16" height="16" xmlns="http://www.w3.org/2000/svg">
	<path fill="none" d="M-4-4h24v24H-4V-4z" />
	<path fill="var(--color-border-error, var(--color-error))" d="M8 0C3.6 0 0 3.6 0 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8z" />
	<path fill="#fdffff" d="M5 6.5h6c.8 0 1.5.7 1.5 1.5s-.7 1.5-1.5 1.5H5c-.8 0-1.5-.7-1.5-1.5S4.2 6.5 5 6.5z" />
</svg>
`,Yt=`<!--
  - SPDX-FileCopyrightText: 2020 Google Inc.
  - SPDX-License-Identifier: Apache-2.0
-->
<svg viewBox="0 -960 960 960" width="24px" height="24px" xmlns="http://www.w3.org/2000/svg">
	<path
		fill="var(--user-status-color-offline, var(--color-text-maxcontrast, #6B6B6B))"
		d="M480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z"/>
</svg>
`,Jt=`<!--
  - SPDX-FileCopyrightText: 2020 Google Inc.
  - SPDX-License-Identifier: Apache-2.0
-->
<svg viewBox="-1 -1 18 18" width="16" height="16" xmlns="http://www.w3.org/2000/svg">
	<path fill="none" d="M-4-4h24v24H-4V-4z" />
	<path d="M8 0C3.6 0 0 3.6 0 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8zm0 3.2c2.7 0 4.8 2.1 4.8 4.8s-2.1 4.8-4.8 4.8S3.2 10.7 3.2 8 5.3 3.2 8 3.2z" />
</svg>
`;ft(Ve);const De=t=>{switch(t){case"away":return I("away");case"busy":return I("busy");case"dnd":return I("do not disturb");case"online":return I("online");case"invisible":return I("invisible");case"offline":return I("offline");default:return t}};ft(qe);const fo={online:K?lo:ao,away:K?Zt:co,busy:K?Zt:uo,dnd:K?po:ho,invisible:K?Jt:Yt,offline:K?Jt:Yt},go={name:"NcUserStatusIcon",props:{user:{type:String,default:null},status:{type:String,default:null,validator:t=>["online","away","busy","dnd","invisible","offline"].includes(t)},ariaHidden:{type:String,default:null,validator:t=>["true","false"].includes(t)}},data(){return{fetchedUserStatus:null}},computed:{activeStatus(){return this.status??this.fetchedUserStatus},activeSvg(){return fo[this.activeStatus]??null},ariaLabel(){return this.ariaHidden==="true"?null:I("User status: {status}",{status:De(this.activeStatus)})}},watch:{user:{immediate:!0,async handler(t,e){if(!t||!me()?.user_status?.enabled){this.fetchedUserStatus=null;return}try{const{data:n}=await Pt.get(de("/apps/user_status/api/v1/statuses/{user}",{user:t}));this.fetchedUserStatus=n.ocs?.data?.status}catch{this.fetchedUserStatus=null}}}}};var mo=function(){var t=this,e=t._self._c;return t.activeStatus?e("span",{staticClass:"user-status-icon",class:{"user-status-icon--invisible":["invisible","offline"].includes(t.status)},attrs:{role:"img","aria-hidden":t.ariaHidden,"aria-label":t.ariaLabel},domProps:{innerHTML:t._s(t.activeSvg)}}):t._e()},vo=[],yo=$(go,mo,vo,!1,null,"02786ab5");const bo=yo.exports,wo=(t,e)=>{const n=(c,l)=>c.startsWith(l)?c.slice(l.length):c,s=(c,...l)=>l.reduce((u,p)=>n(u,p),c);if(!t)return null;const r=/^https?:\/\//.test(e),d=/^[a-z][a-z0-9+.-]*:.+/.test(e);if(!r&&d||r&&!e.startsWith(Ft())||!r&&!e.startsWith("/"))return null;const h=r?s(e,Ft(),"/index.php"):e,i=s(t.history.base,ze(),"/index.php"),f=s(h,i)||"/",a=t.resolve(f).route;return a.matched.length?a.fullPath:null};function ht(t=document.body){const e=window.getComputedStyle(t).getPropertyValue("--background-invert-if-dark");return e!==void 0?e==="invert(100%)":!1}ht();const xo=Symbol.for("nc:theme:enforced");function So(t){const e=It(()=>G(t)??document.body),n=pt(ht(e.value)),s=He();function r(){n.value=ht(e.value)}return We(e,r,{attributes:!0}),et(e,r),et(s,r,{immediate:!0}),he(n)}const _o=Re(()=>So());function Co(){const t=_o(),e=je(xo,void 0);return It(()=>e?.value?e.value==="dark":t.value)}var Qt={exports:{}},te={exports:{}},ee;function Oo(){return ee||(ee=1,function(){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e={rotl:function(n,s){return n<<s|n>>>32-s},rotr:function(n,s){return n<<32-s|n>>>s},endian:function(n){if(n.constructor==Number)return e.rotl(n,8)&16711935|e.rotl(n,24)&4278255360;for(var s=0;s<n.length;s++)n[s]=e.endian(n[s]);return n},randomBytes:function(n){for(var s=[];n>0;n--)s.push(Math.floor(Math.random()*256));return s},bytesToWords:function(n){for(var s=[],r=0,d=0;r<n.length;r++,d+=8)s[d>>>5]|=n[r]<<24-d%32;return s},wordsToBytes:function(n){for(var s=[],r=0;r<n.length*32;r+=8)s.push(n[r>>>5]>>>24-r%32&255);return s},bytesToHex:function(n){for(var s=[],r=0;r<n.length;r++)s.push((n[r]>>>4).toString(16)),s.push((n[r]&15).toString(16));return s.join("")},hexToBytes:function(n){for(var s=[],r=0;r<n.length;r+=2)s.push(parseInt(n.substr(r,2),16));return s},bytesToBase64:function(n){for(var s=[],r=0;r<n.length;r+=3)for(var d=n[r]<<16|n[r+1]<<8|n[r+2],h=0;h<4;h++)r*8+h*6<=n.length*8?s.push(t.charAt(d>>>6*(3-h)&63)):s.push("=");return s.join("")},base64ToBytes:function(n){n=n.replace(/[^A-Z0-9+\/]/ig,"");for(var s=[],r=0,d=0;r<n.length;d=++r%4)d!=0&&s.push((t.indexOf(n.charAt(r-1))&Math.pow(2,-2*d+8)-1)<<d*2|t.indexOf(n.charAt(r))>>>6-d*2);return s}};te.exports=e}()),te.exports}var _t,ne;function oe(){if(ne)return _t;ne=1;var t={utf8:{stringToBytes:function(e){return t.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(t.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var n=[],s=0;s<e.length;s++)n.push(e.charCodeAt(s)&255);return n},bytesToString:function(e){for(var n=[],s=0;s<e.length;s++)n.push(String.fromCharCode(e[s]));return n.join("")}}};return _t=t,_t}var Ct,se;function Lo(){if(se)return Ct;se=1,Ct=function(n){return n!=null&&(t(n)||e(n)||!!n._isBuffer)};function t(n){return!!n.constructor&&typeof n.constructor.isBuffer=="function"&&n.constructor.isBuffer(n)}function e(n){return typeof n.readFloatLE=="function"&&typeof n.slice=="function"&&t(n.slice(0,0))}return Ct}var ie;function Ao(){return ie||(ie=1,function(){var t=Oo(),e=oe().utf8,n=Lo(),s=oe().bin,r=function(d,h){d.constructor==String?h&&h.encoding==="binary"?d=s.stringToBytes(d):d=e.stringToBytes(d):n(d)?d=Array.prototype.slice.call(d,0):!Array.isArray(d)&&d.constructor!==Uint8Array&&(d=d.toString());for(var i=t.bytesToWords(d),f=d.length*8,a=1732584193,c=-271733879,l=-1732584194,u=271733878,p=0;p<i.length;p++)i[p]=(i[p]<<8|i[p]>>>24)&16711935|(i[p]<<24|i[p]>>>8)&4278255360;i[f>>>5]|=128<<f%32,i[(f+64>>>9<<4)+14]=f;for(var m=r._ff,y=r._gg,b=r._hh,x=r._ii,p=0;p<i.length;p+=16){var O=a,S=c,A=l,L=u;a=m(a,c,l,u,i[p+0],7,-680876936),u=m(u,a,c,l,i[p+1],12,-389564586),l=m(l,u,a,c,i[p+2],17,606105819),c=m(c,l,u,a,i[p+3],22,-1044525330),a=m(a,c,l,u,i[p+4],7,-176418897),u=m(u,a,c,l,i[p+5],12,1200080426),l=m(l,u,a,c,i[p+6],17,-1473231341),c=m(c,l,u,a,i[p+7],22,-45705983),a=m(a,c,l,u,i[p+8],7,1770035416),u=m(u,a,c,l,i[p+9],12,-1958414417),l=m(l,u,a,c,i[p+10],17,-42063),c=m(c,l,u,a,i[p+11],22,-1990404162),a=m(a,c,l,u,i[p+12],7,1804603682),u=m(u,a,c,l,i[p+13],12,-40341101),l=m(l,u,a,c,i[p+14],17,-1502002290),c=m(c,l,u,a,i[p+15],22,1236535329),a=y(a,c,l,u,i[p+1],5,-165796510),u=y(u,a,c,l,i[p+6],9,-1069501632),l=y(l,u,a,c,i[p+11],14,643717713),c=y(c,l,u,a,i[p+0],20,-373897302),a=y(a,c,l,u,i[p+5],5,-701558691),u=y(u,a,c,l,i[p+10],9,38016083),l=y(l,u,a,c,i[p+15],14,-660478335),c=y(c,l,u,a,i[p+4],20,-405537848),a=y(a,c,l,u,i[p+9],5,568446438),u=y(u,a,c,l,i[p+14],9,-1019803690),l=y(l,u,a,c,i[p+3],14,-187363961),c=y(c,l,u,a,i[p+8],20,1163531501),a=y(a,c,l,u,i[p+13],5,-1444681467),u=y(u,a,c,l,i[p+2],9,-51403784),l=y(l,u,a,c,i[p+7],14,1735328473),c=y(c,l,u,a,i[p+12],20,-1926607734),a=b(a,c,l,u,i[p+5],4,-378558),u=b(u,a,c,l,i[p+8],11,-2022574463),l=b(l,u,a,c,i[p+11],16,1839030562),c=b(c,l,u,a,i[p+14],23,-35309556),a=b(a,c,l,u,i[p+1],4,-1530992060),u=b(u,a,c,l,i[p+4],11,1272893353),l=b(l,u,a,c,i[p+7],16,-155497632),c=b(c,l,u,a,i[p+10],23,-1094730640),a=b(a,c,l,u,i[p+13],4,681279174),u=b(u,a,c,l,i[p+0],11,-358537222),l=b(l,u,a,c,i[p+3],16,-722521979),c=b(c,l,u,a,i[p+6],23,76029189),a=b(a,c,l,u,i[p+9],4,-640364487),u=b(u,a,c,l,i[p+12],11,-421815835),l=b(l,u,a,c,i[p+15],16,530742520),c=b(c,l,u,a,i[p+2],23,-995338651),a=x(a,c,l,u,i[p+0],6,-198630844),u=x(u,a,c,l,i[p+7],10,1126891415),l=x(l,u,a,c,i[p+14],15,-1416354905),c=x(c,l,u,a,i[p+5],21,-57434055),a=x(a,c,l,u,i[p+12],6,1700485571),u=x(u,a,c,l,i[p+3],10,-1894986606),l=x(l,u,a,c,i[p+10],15,-1051523),c=x(c,l,u,a,i[p+1],21,-2054922799),a=x(a,c,l,u,i[p+8],6,1873313359),u=x(u,a,c,l,i[p+15],10,-30611744),l=x(l,u,a,c,i[p+6],15,-1560198380),c=x(c,l,u,a,i[p+13],21,1309151649),a=x(a,c,l,u,i[p+4],6,-145523070),u=x(u,a,c,l,i[p+11],10,-1120210379),l=x(l,u,a,c,i[p+2],15,718787259),c=x(c,l,u,a,i[p+9],21,-343485551),a=a+O>>>0,c=c+S>>>0,l=l+A>>>0,u=u+L>>>0}return t.endian([a,c,l,u])};r._ff=function(d,h,i,f,a,c,l){var u=d+(h&i|~h&f)+(a>>>0)+l;return(u<<c|u>>>32-c)+h},r._gg=function(d,h,i,f,a,c,l){var u=d+(h&f|i&~f)+(a>>>0)+l;return(u<<c|u>>>32-c)+h},r._hh=function(d,h,i,f,a,c,l){var u=d+(h^i^f)+(a>>>0)+l;return(u<<c|u>>>32-c)+h},r._ii=function(d,h,i,f,a,c,l){var u=d+(i^(h|~f))+(a>>>0)+l;return(u<<c|u>>>32-c)+h},r._blocksize=16,r._digestsize=16,Qt.exports=function(d,h){if(d==null)throw new Error("Illegal argument "+d);var i=t.wordsToBytes(r(d,h));return h&&h.asBytes?i:h&&h.asString?s.bytesToString(i):t.bytesToHex(i)}}()),Qt.exports}var To=Ao();const ko=Xe(To);function re(t){let e=t.toLowerCase();e.match(/^([0-9a-f]{4}-?){8}$/)===null&&(e=ko(e)),e=e.replace(/[^0-9a-f]/g,"");const n=6,s=rn(n);function r(d,h){let i=0;const f=[];for(let a=0;a<d.length;a++)f.push(parseInt(d.charAt(a),16)%16);for(const a in f)i+=f[a];return parseInt(parseInt(i,10)%h,10)}return s[r(e,n*3)]}function Do(t){return window._nc_contacts_menu_hooks?Object.values(window._nc_contacts_menu_hooks).filter(e=>e.enabled(t)):[]}const Be=pt(Ie());window.addEventListener("resize",()=>{Be.value=Ie()});function Ie(){return window.outerHeight===window.screen.height}he(Be);function Bo(t,e){const n=(e?.size||64)<=64?64:512,s=e?.isGuest?"/guest":"",r=e?.isDarkTheme??ht(document.body)?"/dark":"";return pe(`/avatar${s}/{user}/{size}${r}`,{user:t,size:n})}var Bt={exports:{}},Io=Bt.exports,ae;function No(){return ae||(ae=1,function(t){(function(e){if(typeof n!="function"){var n=function(m){return m};n.nonNative=!0}const s=n("plaintext"),r=n("html"),d=n("comment"),h=/<(\w*)>/g,i=/<\/?([^\s\/>]+)/;function f(m,y,b){m=m||"",y=y||[],b=b||"";let x=c(y,b);return l(m,x)}function a(m,y){m=m||[],y=y||"";let b=c(m,y);return function(x){return l(x||"",b)}}f.init_streaming_mode=a;function c(m,y){return m=u(m),{allowable_tags:m,tag_replacement:y,state:s,tag_buffer:"",depth:0,in_quote_char:""}}function l(m,y){if(typeof m!="string")throw new TypeError("'html' parameter must be a string");let b=y.allowable_tags,x=y.tag_replacement,O=y.state,S=y.tag_buffer,A=y.depth,L=y.in_quote_char,T="";for(let B=0,M=m.length;B<M;B++){let D=m[B];if(O===s)switch(D){case"<":O=r,S+=D;break;default:T+=D;break}else if(O===r)switch(D){case"<":if(L)break;A++;break;case">":if(L)break;if(A){A--;break}L="",O=s,S+=">",b.has(p(S))?T+=S:T+=x,S="";break;case'"':case"'":D===L?L="":L=L||D,S+=D;break;case"-":S==="<!-"&&(O=d),S+=D;break;case" ":case`
`:if(S==="<"){O=s,T+="< ",S="";break}S+=D;break;default:S+=D;break}else if(O===d)switch(D){case">":S.slice(-2)=="--"&&(O=s),S="";break;default:S+=D;break}}return y.state=O,y.tag_buffer=S,y.depth=A,y.in_quote_char=L,T}function u(m){let y=new Set;if(typeof m=="string"){let b;for(;b=h.exec(m);)y.add(b[1])}else!n.nonNative&&typeof m[n.iterator]=="function"?y=new Set(m):typeof m.forEach=="function"&&m.forEach(y.add,y);return y}function p(m){let y=i.exec(m);return y?y[1].toLowerCase():null}t.exports?t.exports=f:e.striptags=f})(Io)}(Bt)),Bt.exports}No();const Ne={data(){return{hasStatus:!1,userStatus:{status:null,message:null,icon:null}}},methods:{async fetchUserStatus(t){if(!t)return;const e=me();if(!(!Object.prototype.hasOwnProperty.call(e,"user_status")||!e.user_status.enabled)&&At())try{const{data:n}=await Pt.get(de("apps/user_status/api/v1/statuses/{userId}",{userId:t})),{status:s,message:r,icon:d}=n.ocs.data;this.userStatus.status=s,this.userStatus.message=r||"",this.userStatus.icon=d||"",this.hasStatus=!0}catch(n){if(n.response.status===404&&n.response.data.ocs?.data?.length===0)return;console.error(n)}}}};ft(tn);const Pe=Qe.getBuilder("nextcloud").persist().build();function Po(t){const e=Pe.getItem("user-has-avatar."+t);return typeof e=="string"?!!e:null}function le(t,e){t&&Pe.setItem("user-has-avatar."+t,e)}const Mo={name:"NcAvatar",directives:{ClickOutside:zn},components:{IconDotsHorizontal:Ze,NcActions:Ge,NcButton:Ke,NcIconSvgWrapper:ge,NcLoadingIcon:fe,NcUserStatusIcon:bo},mixins:[Ne],props:{url:{type:String,default:void 0},iconClass:{type:String,default:void 0},user:{type:String,default:void 0},hideStatus:{type:Boolean,default:!1},showUserStatus:{type:Boolean,default:!0},verboseStatus:{type:Boolean,default:!1},showUserStatusCompact:{type:Boolean,default:!0},preloadedUserStatus:{type:Object,default:void 0},isGuest:{type:Boolean,default:!1},displayName:{type:String,default:void 0},size:{type:Number,default:32},noPlaceholder:{type:Boolean,default:!1},allowPlaceholder:{type:Boolean,default:!0},disableTooltip:{type:Boolean,default:!1},disableMenu:{type:Boolean,default:!1},tooltipMessage:{type:String,default:null},isNoUser:{type:Boolean,default:!1},menuContainer:{type:[String,Object,Element,Boolean],default:"body"}},setup(){return{isDarkTheme:Co()}},data(){return{avatarUrlLoaded:null,avatarSrcSetLoaded:null,userDoesNotExist:!1,isAvatarLoaded:!1,isMenuLoaded:!1,contactsMenuLoading:!1,contactsMenuData:{},contactsMenuActions:[],contactsMenuOpenState:!1}},computed:{avatarAriaLabel(){if(this.hasMenu)return this.canDisplayUserStatus||this.showUserStatusIconOnAvatar?I("Avatar of {displayName}, {status}",{displayName:this.displayName??this.user,status:De(this.userStatus.status)}):I("Avatar of {displayName}",{displayName:this.displayName??this.user})},canDisplayUserStatus(){return!this.hideStatus&&this.showUserStatus&&this.hasStatus&&["online","away","busy","dnd"].includes(this.userStatus.status)},showUserStatusIconOnAvatar(){return!this.hideStatus&&this.showUserStatus&&!this.verboseStatus&&this.showUserStatusCompact&&this.hasStatus&&this.userStatus.status!=="dnd"&&this.userStatus.icon},userIdentifier(){return this.isDisplayNameDefined?this.displayName:this.isUserDefined?this.user:""},isUserDefined(){return typeof this.user<"u"},isDisplayNameDefined(){return typeof this.displayName<"u"},isUrlDefined(){return typeof this.url<"u"},hasMenu(){return this.disableMenu?!1:this.isMenuLoaded?this.menu.length>0:!(this.user===At()?.uid||this.userDoesNotExist||this.url)},showInitials(){return!this.noPlaceholder&&this.allowPlaceholder&&this.userDoesNotExist&&!(this.iconClass||this.$slots.icon)},avatarStyle(){return{"--avatar-size":this.size+"px",lineHeight:this.showInitials?this.size+"px":0,fontSize:Math.round(this.size*.45)+"px"}},initialsWrapperStyle(){const{r:t,g:e,b:n}=re(this.userIdentifier);return{backgroundColor:`rgba(${t}, ${e}, ${n}, 0.1)`}},initialsStyle(){const{r:t,g:e,b:n}=re(this.userIdentifier);return{color:`rgb(${t}, ${e}, ${n})`}},tooltip(){return this.disableTooltip?!1:this.tooltipMessage?this.tooltipMessage:this.displayName},initials(){let t="?";if(this.showInitials){const e=this.userIdentifier.trim();if(e==="")return t;const n=e.match(/[\p{L}\p{N}\s]/gu);if(n==null)return t;const s=n.join(""),r=s.lastIndexOf(" ");t=String.fromCodePoint(s.codePointAt(0)),r!==-1&&(t=t.concat(String.fromCodePoint(s.codePointAt(r+1))))}return t.toLocaleUpperCase()},menu(){const t=this.contactsMenuActions.map(n=>{const s=wo(this.$router,n.hyperlink);return{ncActionComponent:s?eo:Zn,ncActionComponentProps:s?{to:s,icon:n.icon}:{href:n.hyperlink,icon:n.icon},text:n.title}});for(const n of Do(this.contactsMenuData))try{t.push({ncActionComponent:Ye,ncActionComponentProps:{},ncActionComponentHandlers:{click:()=>n.callback(this.contactsMenuData)},text:n.displayName(this.contactsMenuData),iconSvg:n.iconSvg(this.contactsMenuData)})}catch(s){Je.error(`Failed to render ContactsMenu action ${n.id}`,{error:s,action:n})}function e(n){const s=document.createTextNode(n),r=document.createElement("p");return r.appendChild(s),r.innerHTML}if(!this.hideStatus&&this.showUserStatus&&(this.userStatus.icon||this.userStatus.message)){const n=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
					<text x="50%" y="50%" text-anchor="middle" style="dominant-baseline: central; font-size: 85%">${e(this.userStatus.icon)}</text>
				</svg>`;return[{ncActionComponent:ro,ncActionComponentProps:{},iconSvg:this.userStatus.icon?n:void 0,text:`${this.userStatus.message}`}].concat(t)}return t}},watch:{url(){this.userDoesNotExist=!1,this.loadAvatarUrl()},user(){this.userDoesNotExist=!1,this.isMenuLoaded=!1,this.loadAvatarUrl()}},mounted(){this.loadAvatarUrl(),bt("settings:avatar:updated",this.loadAvatarUrl),bt("settings:display-name:updated",this.loadAvatarUrl),!this.hideStatus&&this.showUserStatus&&this.user&&!this.isNoUser&&(this.preloadedUserStatus?(this.userStatus.status=this.preloadedUserStatus.status||"",this.userStatus.message=this.preloadedUserStatus.message||"",this.userStatus.icon=this.preloadedUserStatus.icon||"",this.hasStatus=this.preloadedUserStatus.status!==null):this.fetchUserStatus(this.user),bt("user_status:status.updated",this.handleUserStatusUpdated))},beforeDestroy(){yt("settings:avatar:updated",this.loadAvatarUrl),yt("settings:display-name:updated",this.loadAvatarUrl),yt("user_status:status.updated",this.handleUserStatusUpdated)},methods:{t:I,handleUserStatusUpdated(t){this.user===t.userId&&(this.userStatus={status:t.status,icon:t.icon,message:t.message},this.hasStatus=t.status!==null)},async toggleMenu(t){t.type==="keydown"&&t.key!=="Enter"||(this.contactsMenuOpenState||await this.fetchContactsMenu(),this.contactsMenuOpenState=!this.contactsMenuOpenState)},closeMenu(){this.contactsMenuOpenState=!1},async fetchContactsMenu(){this.contactsMenuLoading=!0;try{const t=encodeURIComponent(this.user),{data:e}=await Pt.post(pe("contactsmenu/findOne"),`shareType=0&shareWith=${t}`);this.contactsMenuData=e,this.contactsMenuActions=e.topAction?[e.topAction].concat(e.actions):e.actions}catch{this.contactsMenuOpenState=!1}this.contactsMenuLoading=!1,this.isMenuLoaded=!0},loadAvatarUrl(){if(this.isAvatarLoaded=!1,!this.isUrlDefined&&(!this.isUserDefined||this.isNoUser||this.iconClass)){this.isAvatarLoaded=!0,this.userDoesNotExist=!0;return}if(this.isUrlDefined){this.updateImageIfValid(this.url);return}if(this.size<=64){const t=this.avatarUrlGenerator(this.user,64),e=[t+" 1x",this.avatarUrlGenerator(this.user,512)+" 8x"].join(", ");this.updateImageIfValid(t,e)}else{const t=this.avatarUrlGenerator(this.user,512);this.updateImageIfValid(t)}},avatarUrlGenerator(t,e){let n=Bo(t,{size:e,isDarkTheme:this.isDarkTheme,isGuest:this.isGuest});return t===At()?.uid&&typeof oc_userconfig<"u"&&(n+="?v="+oc_userconfig.avatar.version),n},updateImageIfValid(t,e=null){const n=Po(this.user);if(this.isUserDefined&&typeof n=="boolean"){this.isAvatarLoaded=!0,this.avatarUrlLoaded=t,e&&(this.avatarSrcSetLoaded=e),n===!1&&(this.userDoesNotExist=!0);return}const s=new Image;s.onload=()=>{this.avatarUrlLoaded=t,e&&(this.avatarSrcSetLoaded=e),this.isAvatarLoaded=!0,le(this.user,!0)},s.onerror=()=>{console.debug("Invalid avatar url",t),this.avatarUrlLoaded=null,this.avatarSrcSetLoaded=null,this.userDoesNotExist=!0,this.isAvatarLoaded=!1,le(this.user,!1)},e&&(s.srcset=e),s.src=t}}};var Eo=function(){var t=this,e=t._self._c;return e("span",{directives:[{name:"click-outside",rawName:"v-click-outside",value:t.closeMenu,expression:"closeMenu"}],staticClass:"avatardiv popovermenu-wrapper",class:{"avatardiv--unknown":t.userDoesNotExist,"avatardiv--with-menu":t.hasMenu,"avatardiv--with-menu-loading":t.contactsMenuLoading},style:t.avatarStyle,attrs:{title:t.tooltip}},[t._t("icon",function(){return[t.iconClass?e("span",{staticClass:"avatar-class-icon",class:t.iconClass}):t.isAvatarLoaded&&!t.userDoesNotExist?e("img",{attrs:{src:t.avatarUrlLoaded,srcset:t.avatarSrcSetLoaded,alt:""}}):t._e()]}),t.hasMenu&&t.menu.length===0?e("NcButton",{staticClass:"action-item action-item__menutoggle",attrs:{"aria-label":t.avatarAriaLabel,variant:"tertiary-no-background"},on:{click:t.toggleMenu},scopedSlots:t._u([{key:"icon",fn:function(){return[t.contactsMenuLoading?e("NcLoadingIcon"):e("IconDotsHorizontal",{attrs:{size:20}})]},proxy:!0}],null,!1,1269954734)}):t.hasMenu?e("NcActions",{attrs:{"aria-label":t.avatarAriaLabel,container:t.menuContainer,"force-menu":"","manual-open":"",open:t.contactsMenuOpenState,variant:"tertiary-no-background"},on:{"update:open":function(n){t.contactsMenuOpenState=n},click:t.toggleMenu},scopedSlots:t._u([t.contactsMenuLoading?{key:"icon",fn:function(){return[e("NcLoadingIcon")]},proxy:!0}:null],null,!0)},t._l(t.menu,function(n,s){return e(n.ncActionComponent,t._g(t._b({key:s,tag:"component",scopedSlots:t._u([n.iconSvg?{key:"icon",fn:function(){return[e("NcIconSvgWrapper",{attrs:{svg:n.iconSvg}})]},proxy:!0}:null],null,!0)},"component",n.ncActionComponentProps,!1),n.ncActionComponentHandlers),[t._v(" "+t._s(n.text)+" ")])}),1):t._e(),t.showUserStatusIconOnAvatar?e("span",{staticClass:"avatardiv__user-status avatardiv__user-status--icon"},[t._v(" "+t._s(t.userStatus.icon)+" ")]):t.canDisplayUserStatus?e("NcUserStatusIcon",{staticClass:"avatardiv__user-status",attrs:{status:t.userStatus.status,"aria-hidden":String(t.hasMenu)}}):t._e(),t.showInitials?e("span",{staticClass:"avatardiv__initials-wrapper",style:t.initialsWrapperStyle},[e("span",{staticClass:"avatardiv__initials",style:t.initialsStyle},[t._v(" "+t._s(t.initials)+" ")])]):t._e()],2)},Uo=[],$o=$(Mo,Eo,Uo,!1,null,"4c42c96e");const Fo=$o.exports,Vo=8,ce=32,qo={name:"NcListItemIcon",components:{NcAvatar:Fo,NcHighlight:Ae,NcIconSvgWrapper:ge},mixins:[Ne],props:{name:{type:String,required:!0},subname:{type:String,default:""},icon:{type:String,default:""},iconSvg:{type:String,default:""},iconName:{type:String,default:""},search:{type:String,default:""},avatarSize:{type:Number,default:ce},noMargin:{type:Boolean,default:!1},displayName:{type:String,default:null},isNoUser:{type:Boolean,default:!1},id:{type:String,default:null}},setup(){return{margin:Vo,defaultSize:ce}},computed:{hasIcon(){return this.icon!==""},hasIconSvg(){return this.iconSvg!==""},isValidSubname(){return this.subname?.trim?.()!==""},isSizeBigEnough(){return this.avatarSize>=26},cssVars(){const t=this.noMargin?0:this.margin;return{"--height":this.avatarSize+2*t+"px","--margin":this.margin+"px"}},searchParts(){const t=/^([^<]*)<([^>]+)>?$/,e=this.search.match(t);return this.isNoUser||!e?[this.search,this.search]:[e[1].trim(),e[2]]}},beforeMount(){!this.isNoUser&&!this.subname&&this.fetchUserStatus(this.user)}};var zo=function(){var t=this,e=t._self._c;return e("span",t._g({staticClass:"option",class:{"option--compact":t.avatarSize<t.defaultSize},style:t.cssVars,attrs:{id:t.id}},t.$listeners),[e("NcAvatar",t._b({staticClass:"option__avatar",attrs:{"disable-menu":!0,"disable-tooltip":!0,"display-name":t.displayName||t.name,"is-no-user":t.isNoUser,size:t.avatarSize}},"NcAvatar",t.$attrs,!1)),e("div",{staticClass:"option__details"},[e("NcHighlight",{staticClass:"option__lineone",attrs:{text:t.name,search:t.searchParts[0]}}),t.isValidSubname&&t.isSizeBigEnough?e("NcHighlight",{staticClass:"option__linetwo",attrs:{text:t.subname,search:t.searchParts[1]}}):t.hasStatus?e("span",[e("span",[t._v(t._s(t.userStatus.icon))]),e("span",[t._v(t._s(t.userStatus.message))])]):t._e()],1),t._t("default",function(){return[t.hasIconSvg?e("NcIconSvgWrapper",{staticClass:"option__icon",attrs:{svg:t.iconSvg,name:t.iconName}}):t.hasIcon?e("span",{staticClass:"icon option__icon",class:t.icon,attrs:{"aria-label":t.iconName}}):t._e()]})],2)},Ro=[],jo=$(qo,zo,Ro,!1,null,"a0f4d73a");const Ho=jo.exports;ft(sn,on);const Wo={name:"NcSelect",components:{ChevronDown:In,NcEllipsisedOption:qn,NcListItemIcon:Ho,NcLoadingIcon:fe,VueSelect:H.VueSelect},model:{prop:"modelValue",event:"update:modelValue"},props:{...H.VueSelect.props,...H.VueSelect.mixins.reduce((t,e)=>({...t,...e.props}),{}),ariaLabelClearSelected:{type:String,default:I("Clear selected")},ariaLabelCombobox:{type:String,default:null},ariaLabelListbox:{type:String,default:I("Options")},ariaLabelDeselectOption:{type:Function,default:t=>I("Deselect {option}",{option:t})},appendToBody:{type:Boolean,default:!0},calculatePosition:{type:Function,default:null},closeOnSelect:{type:Boolean,default:!0},keepOpen:{type:Boolean,default:!1},components:{type:Object,default:()=>({Deselect:{render:t=>t(nn,{props:{size:20,fillColor:"var(--vs-controls-color)"},style:{cursor:"pointer"}})}})},limit:{type:Number,default:null},disabled:{type:Boolean,default:!1},dropdownShouldOpen:{type:Function,default:({noDrop:t,open:e})=>t?!1:e},filterBy:{type:Function,default:null},inputClass:{type:[String,Object],default:null},inputId:{type:String,default:()=>`select-input-${Vt()}`},inputLabel:{type:String,default:null},labelOutside:{type:Boolean,default:!1},keyboardFocusBorder:{type:Boolean,default:!0},label:{type:String,default:null},loading:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},noWrap:{type:Boolean,default:!1},options:{type:Array,default:()=>[]},placeholder:{type:String,default:""},mapKeydown:{type:Function,default(t,e){return{...t,27:n=>{e.open&&n.stopPropagation(),t[27](n)}}}},uid:{type:String,default:()=>Vt()},placement:{type:String,default:"bottom"},resetFocusOnOptionsChange:{type:Boolean,default:!0},userSelect:{type:Boolean,default:!1},value:{type:[String,Number,Object,Array],default:void 0},modelValue:{type:[String,Number,Object,Array],default:null},required:{type:Boolean,default:!1}," ":{}},emits:[" ","input","update:modelValue","update:model-value"],setup(){const t=Number.parseInt(window.getComputedStyle(document.body).getPropertyValue("--default-clickable-area")),e=Number.parseInt(window.getComputedStyle(document.body).getPropertyValue("--default-grid-baseline")),n=t-2*e,s=en("value","input");return{avatarSize:n,model:s}},data(){return{search:""}},computed:{inputRequired(){return this.required?this.model===null||Array.isArray(this.model)&&this.model.length===0:null},localCalculatePosition(){return this.calculatePosition!==null?this.calculatePosition:(t,e,{width:n})=>{t.style.width=n;const s={name:"addClass",fn(h){return t.classList.add("vs__dropdown-menu--floating"),{}}},r={name:"togglePlacementClass",fn({placement:h}){return e.$el.classList.toggle("select--drop-up",h==="top"),t.classList.toggle("vs__dropdown-menu--floating-placement-top",h==="top"),{}}},d=()=>{An(e.$refs.toggle,t,{placement:this.placement,middleware:[bn(-1),s,r,yn(),wn({limiter:xn()})]}).then(({x:h,y:i})=>{Object.assign(t.style,{left:`${h}px`,top:`${i}px`,width:`${e.$refs.toggle.getBoundingClientRect().width}px`})})};return Ln(e.$refs.toggle,t,d)}},localFilterBy(){const t=/[^<]*<([^>]+)/;return this.filterBy!==null?this.filterBy:this.userSelect?(e,n,s)=>{const r=s.match(t);return r&&e.subname?.toLocaleLowerCase?.()?.indexOf(r[1].toLocaleLowerCase())>-1||`${n} ${e.subname}`.toLocaleLowerCase().indexOf(s.toLocaleLowerCase())>-1}:H.VueSelect.props.filterBy.default},localLabel(){return this.label!==null?this.label:this.userSelect?"displayName":H.VueSelect.props.label.default},propsToForward(){const t=[...Object.keys(H.VueSelect.props),...H.VueSelect.mixins.flatMap(e=>Object.keys(e.props??{}))];return{...Object.fromEntries(Object.entries(this.$props).filter(([e,n])=>t.includes(e))),value:this.model,calculatePosition:this.localCalculatePosition,closeOnSelect:this.closeOnSelect&&!this.keepOpen,filterBy:this.localFilterBy,label:this.localLabel}},listenersToForward(){return{...this.$listeners,input:t=>{this.model=t}}}},mounted(){!this.labelOutside&&!this.inputLabel&&!this.ariaLabelCombobox&&Ot.util.warn("[NcSelect] An `inputLabel` or `ariaLabelCombobox` should be set. If an external label is used, `labelOutside` should be set to `true`."),this.inputLabel&&this.ariaLabelCombobox&&Ot.util.warn("[NcSelect] Only one of `inputLabel` or `ariaLabelCombobox` should to be set.")},methods:{t:I}};var Xo=function(){var t=this,e=t._self._c;return e("VueSelect",t._g(t._b({staticClass:"select",class:{"select--no-wrap":t.noWrap,"user-select":t.userSelect},on:{search:n=>t.search=n},scopedSlots:t._u([!t.labelOutside&&t.inputLabel?{key:"header",fn:function(){return[e("label",{staticClass:"select__label",attrs:{for:t.inputId}},[t._v(" "+t._s(t.inputLabel)+" ")])]},proxy:!0}:null,{key:"search",fn:function({attributes:n,events:s}){return[e("input",t._g(t._b({class:["vs__search",t.inputClass],attrs:{required:t.inputRequired,dir:"auto"}},"input",n,!1),s))]}},{key:"open-indicator",fn:function({attributes:n}){return[e("ChevronDown",t._b({style:{cursor:t.disabled?null:"pointer"},attrs:{"fill-color":"var(--vs-controls-color)",size:26}},"ChevronDown",n,!1))]}},{key:"option",fn:function(n){return[t._t("option",function(){return[t.userSelect?e("NcListItemIcon",t._b({attrs:{"avatar-size":32,name:n[t.localLabel],search:t.search}},"NcListItemIcon",n,!1)):e("NcEllipsisedOption",{attrs:{name:String(n[t.localLabel]),search:t.search}})]},null,n)]}},{key:"selected-option",fn:function(n){return[t._t("selected-option",function(){return[t.userSelect?e("NcListItemIcon",t._b({attrs:{"avatar-size":t.avatarSize,name:n[t.localLabel],"no-margin":"",search:t.search}},"NcListItemIcon",n,!1)):e("NcEllipsisedOption",{attrs:{name:String(n[t.localLabel]),search:t.search}})]},{vBind:n})]}},{key:"spinner",fn:function(n){return[n.loading?e("NcLoadingIcon"):t._e()]}},{key:"no-options",fn:function(){return[t._v(" "+t._s(t.t("No results"))+" ")]},proxy:!0},t._l(t.$scopedSlots,function(n,s){return{key:s,fn:function(r){return[t._t(s,null,null,r)]}}})],null,!0)},"VueSelect",t.propsToForward,!1),t.listenersToForward))},Ko=[],Go=$(Wo,Xo,Ko,!1,null,null);const Jo=Go.exports;export{Jo as default};
//# sourceMappingURL=NcSelect-D1yoojTo.chunk.mjs.map