/*! third party licenses: js/vendor.LICENSE.txt */ import{V as ut,a as nt,b as me,w as Tt,c as qe}from"./style-D0wtco2u.chunk.mjs";import{b as P,R as Xe,S as Ge,T as Ze,U as Ye,l as Je,r as st,V as Qe,W as tn,d as A,c as Pt,v as ye,X as en,g as nn,_ as ve,B as ht,Y as zt,Z as sn,$ as jt,a0 as lt,a1 as Mt,a2 as on,a3 as tt,a4 as rn,a5 as an,a6 as be,a7 as ln,a8 as we,a9 as xe,e as cn,aa as un,ab as hn,P as _t,Q as St,ac as dn,G as Rt,u as pn,ad as fn}from"./_plugin-vue2_normalizer-YsIULHZS.chunk.mjs";const gn={name:"NcIconSvgWrapper",props:{inline:{type:Boolean,default:!1},svg:{type:String,default:""},name:{type:String,default:""},path:{type:String,default:""},size:{type:[Number,String],default:20,validator:t=>typeof t=="number"||t==="auto"}},computed:{iconSize(){return typeof this.size=="number"?`${this.size}px`:this.size},cleanSvg(){if(!this.svg||this.path)return;const t=Xe.sanitize(this.svg),e=new DOMParser().parseFromString(t,"image/svg+xml");return e.querySelector("parsererror")?(ut.util.warn("SVG is not valid"),""):(e.documentElement.id&&e.documentElement.removeAttribute("id"),e.documentElement.outerHTML)},attributes(){return{class:["icon-vue",{"icon-vue--inline":this.inline}],style:{"--icon-size":this.iconSize},role:"img","aria-hidden":this.name?void 0:!0,"aria-label":this.name||void 0}}}};var mn=function(){var t=this,e=t._self._c;return t.cleanSvg?e("span",t._b({domProps:{innerHTML:t._s(t.cleanSvg)}},"span",t.attributes,!1)):e("span",t._b({},"span",t.attributes,!1),[e("svg",{attrs:{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:t.path}})])])},yn=[],vn=P(gn,mn,yn,!1,null,"2d0a4d76");const _e=vn.exports;var It={exports:{}},bn=It.exports,Ht;function wn(){return Ht||(Ht=1,function(t,e){(function(n,s){t.exports=s()})(typeof self<"u"?self:bn,function(){return(()=>{var n={646:u=>{u.exports=function(r){if(Array.isArray(r)){for(var p=0,l=new Array(r.length);p{u.exports=function(r,p,l){return p in r?Object.defineProperty(r,p,{value:l,enumerable:!0,configurable:!0,writable:!0}):r[p]=l,r}},860:u=>{u.exports=function(r){if(Symbol.iterator in Object(r)||Object.prototype.toString.call(r)==="[object Arguments]")return Array.from(r)}},206:u=>{u.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}},319:(u,r,p)=>{var l=p(646),c=p(860),h=p(206);u.exports=function(d){return l(d)||c(d)||h()}},8:u=>{function r(p){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?u.exports=r=function(l){return typeof l}:u.exports=r=function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},r(p)}u.exports=r}},s={};function o(u){var r=s[u];if(r!==void 0)return r.exports;var p=s[u]={exports:{}};return n[u](p,p.exports,o),p.exports}o.n=u=>{var r=u&&u.__esModule?()=>u.default:()=>u;return o.d(r,{a:r}),r},o.d=(u,r)=>{for(var p in r)o.o(r,p)&&!o.o(u,p)&&Object.defineProperty(u,p,{enumerable:!0,get:r[p]})},o.o=(u,r)=>Object.prototype.hasOwnProperty.call(u,r),o.r=u=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(u,"__esModule",{value:!0})};var a={};return(()=>{o.r(a),o.d(a,{VueSelect:()=>U,default:()=>I,mixins:()=>$});var u=o(319),r=o.n(u),p=o(8),l=o.n(p),c=o(713),h=o.n(c);const d={props:{autoscroll:{type:Boolean,default:!0}},watch:{typeAheadPointer:function(){this.autoscroll&&this.maybeAdjustScroll()},open:function(i){var g=this;this.autoscroll&&i&&this.$nextTick(function(){return g.maybeAdjustScroll()})}},methods:{maybeAdjustScroll:function(){var i,g=((i=this.$refs.dropdownMenu)===null||i===void 0?void 0:i.children[this.typeAheadPointer])||!1;if(g){var y=this.getDropdownViewport(),b=g.getBoundingClientRect(),L=b.top,C=b.bottom,D=b.height;if(Ly.bottom)return this.$refs.dropdownMenu.scrollTop=g.offsetTop-(y.height-D)}},getDropdownViewport:function(){return this.$refs.dropdownMenu?this.$refs.dropdownMenu.getBoundingClientRect():{height:0,top:0,bottom:0}}}},f={data:function(){return{typeAheadPointer:-1}},watch:{filteredOptions:function(){if(this.resetFocusOnOptionsChange){for(var i=0;i=0;i--)if(this.selectable(this.filteredOptions[i])){this.typeAheadPointer=i;break}},typeAheadDown:function(){for(var i=this.typeAheadPointer+1;i0&&arguments[0]!==void 0?arguments[0]:null;return this.mutableLoading=i??!this.mutableLoading}}};function v(i,g,y,b,L,C,D,j){var rt,G=typeof i=="function"?i.options:i;return g&&(G.render=g,G.staticRenderFns=y,G._compiled=!0),{exports:i,options:G}}const x={Deselect:v({},function(){var i=this.$createElement,g=this._self._c||i;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:v({},function(){var i=this.$createElement,g=this._self._c||i;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},w={inserted:function(i,g,y){var b=y.context;if(b.appendToBody){document.body.appendChild(i);var L=b.$refs.toggle.getBoundingClientRect(),C=L.height,D=L.top,j=L.left,rt=L.width,G=window.scrollX||window.pageXOffset,Ke=window.scrollY||window.pageYOffset;i.unbindPosition=b.calculatePosition(i,b,{width:rt+"px",left:G+j+"px",top:Ke+D+C+"px"})}},unbind:function(i,g,y){y.context.appendToBody&&(i.unbindPosition&&typeof i.unbindPosition=="function"&&i.unbindPosition(),i.parentNode&&i.parentNode.removeChild(i))}},S=function(i){var g={};return Object.keys(i).sort().forEach(function(y){g[y]=i[y]}),JSON.stringify(g)};var _=0;const k=function(){return++_};function O(i,g){var y=Object.keys(i);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(i);g&&(b=b.filter(function(L){return Object.getOwnPropertyDescriptor(i,L).enumerable})),y.push.apply(y,b)}return y}function M(i){for(var g=1;g-1}},filter:{type:Function,default:function(i,g){var y=this;return i.filter(function(b){var L=y.getOptionLabel(b);return typeof L=="number"&&(L=L.toString()),y.filterBy(b,L,g)})}},createOption:{type:Function,default:function(i){return l()(this.optionList[0])==="object"?h()({},this.label,i):i}},resetFocusOnOptionsChange:{type:Boolean,default:!0},resetOnOptionsChange:{default:!1,validator:function(i){return["function","boolean"].includes(l()(i))}},clearSearchOnBlur:{type:Function,default:function(i){var g=i.clearSearchOnSelect,y=i.multiple;return g&&!y}},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(i,g){return i}},appendToBody:{type:Boolean,default:!1},calculatePosition:{type:Function,default:function(i,g,y){var b=y.width,L=y.top,C=y.left;i.style.top=L,i.style.left=C,i.style.width=b}},dropdownShouldOpen:{type:Function,default:function(i){var g=i.noDrop,y=i.open,b=i.mutableLoading;return!g&&y&&!b}},keyboardFocusBorder:{type:Boolean,default:!1},uid:{type:[String,Number],default:function(){return k()}}},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 i=this.value;return this.isTrackingValues&&(i=this.$data._value),i!=null&&i!==""?[].concat(i):[]},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 i=this,g={search:this.search,loading:this.loading,searching:this.searching,filteredOptions:this.filteredOptions};return{search:{attributes:M({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 i.isComposing=!0},compositionend:function(){return i.isComposing=!1},keydown:this.onSearchKeyDown,keypress:this.onSearchKeyPress,blur:this.onSearchBlur,focus:this.onSearchFocus,input:function(y){return i.search=y.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:M({},g,{deselect:this.deselect}),footer:M({},g,{deselect:this.deselect})}},childComponents:function(){return M({},x,{},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 i=this,g=function(C){return i.limit!==null?C.slice(0,i.limit):C},y=[].concat(this.optionList);if(!this.filterable&&!this.taggable)return g(y);var b=this.search.length?this.filter(y,this.search,this):y;if(this.taggable&&this.search.length){var L=this.createOption(this.search);this.optionExists(L)||b.unshift(L)}return g(b)},isValueEmpty:function(){return this.selectedValue.length===0},showClearButton:function(){return!this.multiple&&this.clearable&&!this.open&&!this.isValueEmpty}},watch:{options:function(i,g){var y=this;!this.taggable&&(typeof y.resetOnOptionsChange=="function"?y.resetOnOptionsChange(i,g,y.selectedValue):y.resetOnOptionsChange)&&this.clearSelection(),this.value&&this.isTrackingValues&&this.setInternalValueFromOptions(this.value)},value:{immediate:!0,handler:function(i){this.isTrackingValues&&this.setInternalValueFromOptions(i)}},multiple:function(){this.clearSelection()},open:function(i){this.$emit(i?"open":"close")},search:function(i){i.length&&(this.open=!0)}},created:function(){this.mutableLoading=this.loading,this.$on("option:created",this.pushTag)},methods:{setInternalValueFromOptions:function(i){var g=this;Array.isArray(i)?this.$data._value=i.map(function(y){return g.findOptionFromReducedValue(y)}):this.$data._value=this.findOptionFromReducedValue(i)},select:function(i){this.$emit("option:selecting",i),this.isOptionSelected(i)?this.deselectFromDropdown&&(this.clearable||this.multiple&&this.selectedValue.length>1)&&this.deselect(i):(this.taggable&&!this.optionExists(i)&&this.$emit("option:created",i),this.multiple&&(i=this.selectedValue.concat(i)),this.updateValue(i),this.$emit("option:selected",i)),this.onAfterSelect(i)},deselect:function(i){var g=this;this.$emit("option:deselecting",i),this.updateValue(this.selectedValue.filter(function(y){return!g.optionComparator(y,i)})),this.$emit("option:deselected",i)},keyboardDeselect:function(i,g){var y,b;this.deselect(i);var L=(y=this.$refs.deselectButtons)===null||y===void 0?void 0:y[g+1],C=(b=this.$refs.deselectButtons)===null||b===void 0?void 0:b[g-1],D=L??C;D?D.focus():this.searchEl.focus()},clearSelection:function(){this.updateValue(this.multiple?[]:null),this.searchEl.focus()},onAfterSelect:function(i){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(i){var g=this;this.value===void 0&&(this.$data._value=i),i!==null&&(i=Array.isArray(i)?i.map(function(y){return g.reduce(y)}):this.reduce(i)),this.$emit("input",i)},toggleDropdown:function(i){var g=i.target!==this.searchEl;g&&i.preventDefault();var y=[].concat(r()(this.$refs.deselectButtons||[]),r()([this.$refs.clearButton]));this.searchEl===void 0||y.filter(Boolean).some(function(b){return b.contains(i.target)||b===i.target})?i.preventDefault():this.open&&g?this.searchEl.blur():this.disabled||(this.open=!0,this.searchEl.focus())},isOptionSelected:function(i){var g=this;return this.selectedValue.some(function(y){return g.optionComparator(y,i)})},isOptionDeselectable:function(i){return this.isOptionSelected(i)&&this.deselectFromDropdown},hasKeyboardFocusBorder:function(i){return!(!this.keyboardFocusBorder||!this.isKeyboardNavigation)&&i===this.typeAheadPointer},optionComparator:function(i,g){return this.getOptionKey(i)===this.getOptionKey(g)},findOptionFromReducedValue:function(i){var g=this,y=[].concat(r()(this.options),r()(this.pushedTags)).filter(function(b){return JSON.stringify(g.reduce(b))===JSON.stringify(i)});return y.length===1?y[0]:y.find(function(b){return g.optionComparator(b,g.$data._value)})||i},closeSearchOptions:function(){this.open=!1,this.$emit("search:blur")},maybeDeleteValue:function(){if(!this.searchEl.value.length&&this.selectedValue&&this.selectedValue.length&&this.clearable){var i=null;this.multiple&&(i=r()(this.selectedValue.slice(0,this.selectedValue.length-1))),this.updateValue(i)}},optionExists:function(i){var g=this;return this.optionList.some(function(y){return g.optionComparator(y,i)})},optionAriaSelected:function(i){return this.selectable(i)?String(this.isOptionSelected(i)):null},normalizeOptionForSlot:function(i){return l()(i)==="object"?i:h()({},this.label,i)},pushTag:function(i){this.pushedTags.push(i)},onEscape:function(){this.search.length?this.search="":this.open=!1},onSearchBlur:function(){if(!this.mousedown||this.searching){var i=this.clearSearchOnSelect,g=this.multiple;return this.clearSearchOnBlur({clearSearchOnSelect:i,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(i,g){this.isKeyboardNavigation=!1,this.selectable(i)&&(this.typeAheadPointer=g)},onSearchKeyDown:function(i){var g=this,y=function(C){if(C.preventDefault(),g.open)return!g.isComposing&&g.typeAheadSelect();g.open=!0},b={8:function(C){return g.maybeDeleteValue()},9:function(C){return g.onTab()},27:function(C){return g.onEscape()},38:function(C){if(C.preventDefault(),g.isKeyboardNavigation=!0,g.open)return g.typeAheadUp();g.open=!0},40:function(C){if(C.preventDefault(),g.isKeyboardNavigation=!0,g.open)return g.typeAheadDown();g.open=!0}};this.selectOnKeyCodes.forEach(function(C){return b[C]=y});var L=this.mapKeydown(b,this);if(typeof L[i.keyCode]=="function")return L[i.keyCode](i)},onSearchKeyPress:function(i){this.open||i.keyCode!==32||(i.preventDefault(),this.open=!0)}}},function(){var i=this,g=i.$createElement,y=i._self._c||g;return y("div",{staticClass:"v-select",class:i.stateClasses,attrs:{id:"v-select-"+i.uid,dir:i.dir}},[i._t("header",null,null,i.scope.header),i._v(" "),y("div",{ref:"toggle",staticClass:"vs__dropdown-toggle"},[y("div",{ref:"selectedOptions",staticClass:"vs__selected-options",on:{mousedown:i.toggleDropdown}},[i._l(i.selectedValue,function(b,L){return i._t("selected-option-container",[y("span",{key:i.getOptionKey(b),staticClass:"vs__selected"},[i._t("selected-option",[i._v(` `+i._s(i.getOptionLabel(b))+` `)],null,i.normalizeOptionForSlot(b)),i._v(" "),i.multiple?y("button",{ref:"deselectButtons",refInFor:!0,staticClass:"vs__deselect",attrs:{disabled:i.disabled,type:"button",title:i.ariaLabelDeselectOption(i.getOptionLabel(b)),"aria-label":i.ariaLabelDeselectOption(i.getOptionLabel(b))},on:{mousedown:function(C){return C.stopPropagation(),i.deselect(b)},keydown:function(C){return!C.type.indexOf("key")&&i._k(C.keyCode,"enter",13,C.key,"Enter")?null:i.keyboardDeselect(b,L)}}},[y(i.childComponents.Deselect,{tag:"component"})],1):i._e()],2)],{option:i.normalizeOptionForSlot(b),deselect:i.deselect,multiple:i.multiple,disabled:i.disabled})}),i._v(" "),i._t("search",[y("input",i._g(i._b({staticClass:"vs__search"},"input",i.scope.search.attributes,!1),i.scope.search.events))],null,i.scope.search)],2),i._v(" "),y("div",{ref:"actions",staticClass:"vs__actions"},[y("button",{directives:[{name:"show",rawName:"v-show",value:i.showClearButton,expression:"showClearButton"}],ref:"clearButton",staticClass:"vs__clear",attrs:{disabled:i.disabled,type:"button",title:i.ariaLabelClearSelected,"aria-label":i.ariaLabelClearSelected},on:{click:i.clearSelection}},[y(i.childComponents.Deselect,{tag:"component"})],1),i._v(" "),i.noDrop?i._e():y("button",{ref:"openIndicatorButton",staticClass:"vs__open-indicator-button",attrs:{type:"button",tabindex:"-1","aria-labelledby":"vs-"+i.uid+"__listbox","aria-controls":"vs-"+i.uid+"__listbox","aria-expanded":i.dropdownOpen.toString()},on:{mousedown:i.toggleDropdown}},[i._t("open-indicator",[y(i.childComponents.OpenIndicator,i._b({tag:"component"},"component",i.scope.openIndicator.attributes,!1))],null,i.scope.openIndicator)],2),i._v(" "),i._t("spinner",[y("div",{directives:[{name:"show",rawName:"v-show",value:i.mutableLoading,expression:"mutableLoading"}],staticClass:"vs__spinner"},[i._v("Loading...")])],null,i.scope.spinner)],2)]),i._v(" "),y("transition",{attrs:{name:i.transition}},[i.dropdownOpen?y("ul",{directives:[{name:"append-to-body",rawName:"v-append-to-body"}],key:"vs-"+i.uid+"__listbox",ref:"dropdownMenu",staticClass:"vs__dropdown-menu",attrs:{id:"vs-"+i.uid+"__listbox",role:"listbox","aria-label":i.ariaLabelListbox,"aria-multiselectable":i.multiple,tabindex:"-1"},on:{mousedown:function(b){return b.preventDefault(),i.onMousedown(b)},mouseup:i.onMouseUp}},[i._t("list-header",null,null,i.scope.listHeader),i._v(" "),i._l(i.filteredOptions,function(b,L){return y("li",{key:i.getOptionKey(b),staticClass:"vs__dropdown-option",class:{"vs__dropdown-option--deselect":i.isOptionDeselectable(b)&&L===i.typeAheadPointer,"vs__dropdown-option--selected":i.isOptionSelected(b),"vs__dropdown-option--highlight":L===i.typeAheadPointer,"vs__dropdown-option--kb-focus":i.hasKeyboardFocusBorder(L),"vs__dropdown-option--disabled":!i.selectable(b)},attrs:{id:"vs-"+i.uid+"__option-"+L,role:"option","aria-selected":i.optionAriaSelected(b)},on:{mousemove:function(C){return i.onMouseMove(b,L)},click:function(C){C.preventDefault(),C.stopPropagation(),i.selectable(b)&&i.select(b)}}},[i._t("option",[i._v(` `+i._s(i.getOptionLabel(b))+` `)],null,i.normalizeOptionForSlot(b))],2)}),i._v(" "),i.filteredOptions.length===0?y("li",{staticClass:"vs__no-options"},[i._t("no-options",[i._v(` Sorry, no matching options. `)],null,i.scope.noOptions)],2):i._e(),i._v(" "),i._t("list-footer",null,null,i.scope.listFooter)],2):y("ul",{staticStyle:{display:"none",visibility:"hidden"},attrs:{id:"vs-"+i.uid+"__listbox",role:"listbox","aria-label":i.ariaLabelListbox}})]),i._v(" "),i._t("footer",null,null,i.scope.footer)],2)},[]).exports,$={ajax:m,pointer:f,pointerScroll:d},I=U})(),a})()})}(It)),It.exports}var K=wn();const dt=Math.min,q=Math.max,pt=Math.round,at=Math.floor,R=t=>({x:t,y:t}),xn={left:"right",right:"left",bottom:"top",top:"bottom"},_n={start:"end",end:"start"};function Wt(t,e,n){return q(t,dt(e,n))}function Y(t,e){return typeof t=="function"?t(e):t}function H(t){return t.split("-")[0]}function yt(t){return t.split("-")[1]}function Et(t){return t==="x"?"y":"x"}function Se(t){return t==="y"?"height":"width"}function it(t){return["top","bottom"].includes(H(t))?"y":"x"}function Ce(t){return Et(it(t))}function Sn(t,e,n){n===void 0&&(n=!1);const s=yt(t),o=Ce(t),a=Se(o);let u=o==="x"?s===(n?"end":"start")?"right":"left":s==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(u=ft(u)),[u,ft(u)]}function Cn(t){const e=ft(t);return[Bt(t),e,Bt(e)]}function Bt(t){return t.replace(/start|end/g,e=>_n[e])}function Ln(t,e,n){const s=["left","right"],o=["right","left"],a=["top","bottom"],u=["bottom","top"];switch(t){case"top":case"bottom":return n?e?o:s:e?s:o;case"left":case"right":return e?a:u;default:return[]}}function On(t,e,n,s){const o=yt(t);let a=Ln(H(t),n==="start",s);return o&&(a=a.map(u=>u+"-"+o),e&&(a=a.concat(a.map(Bt)))),a}function ft(t){return t.replace(/left|right|bottom|top/g,e=>xn[e])}function An(t){return{top:0,right:0,bottom:0,left:0,...t}}function kn(t){return typeof t!="number"?An(t):{top:t,right:t,bottom:t,left:t}}function gt(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function Kt(t,e,n){let{reference:s,floating:o}=t;const a=it(e),u=Ce(e),r=Se(u),p=H(e),l=a==="y",c=s.x+s.width/2-o.width/2,h=s.y+s.height/2-o.height/2,d=s[r]/2-o[r]/2;let f;switch(p){case"top":f={x:c,y:s.y-o.height};break;case"bottom":f={x:c,y:s.y+s.height};break;case"right":f={x:s.x+s.width,y:h};break;case"left":f={x:s.x-o.width,y:h};break;default:f={x:s.x,y:s.y}}switch(yt(e)){case"start":f[u]-=d*(n&&l?-1:1);break;case"end":f[u]+=d*(n&&l?-1:1);break}return f}const Nn=async(t,e,n)=>{const{placement:s="bottom",strategy:o="absolute",middleware:a=[],platform:u}=n,r=a.filter(Boolean),p=await(u.isRTL==null?void 0:u.isRTL(e));let l=await u.getElementRects({reference:t,floating:e,strategy:o}),{x:c,y:h}=Kt(l,s,p),d=s,f={},m=0;for(let v=0;vy<=0)){var I,i;const y=(((I=a.flip)==null?void 0:I.index)||0)+1,b=O[y];if(b)return{data:{index:y,overflows:$},reset:{placement:b}};let L=(i=$.filter(C=>C.overflows[0]<=0).sort((C,D)=>C.overflows[1]-D.overflows[1])[0])==null?void 0:i.placement;if(!L)switch(f){case"bestFit":{var g;const C=(g=$.map(D=>[D.placement,D.overflows.filter(j=>j>0).reduce((j,rt)=>j+rt,0)]).sort((D,j)=>D[1]-j[1])[0])==null?void 0:g[0];C&&(L=C);break}case"initialPlacement":L=r;break}if(o!==L)return{reset:{placement:L}}}return{}}}};async function In(t,e){const{placement:n,platform:s,elements:o}=t,a=await(s.isRTL==null?void 0:s.isRTL(o.floating)),u=H(n),r=yt(n),p=it(n)==="y",l=["left","top"].includes(u)?-1:1,c=a&&p?-1:1,h=Y(e,t);let{mainAxis:d,crossAxis:f,alignmentAxis:m}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...h};return r&&typeof m=="number"&&(f=r==="end"?m*-1:m),p?{x:f*c,y:d*l}:{x:d*l,y:f*c}}const Bn=function(t){return{name:"offset",options:t,async fn(e){const{x:n,y:s}=e,o=await In(e,t);return{x:n+o.x,y:s+o.y,data:o}}}},Dn=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:s,placement:o}=e,{mainAxis:a=!0,crossAxis:u=!1,limiter:r={fn:x=>{let{x:w,y:S}=x;return{x:w,y:S}}},...p}=Y(t,e),l={x:n,y:s},c=await Le(e,p),h=it(H(o)),d=Et(h);let f=l[d],m=l[h];if(a){const x=d==="y"?"top":"left",w=d==="y"?"bottom":"right",S=f+c[x],_=f-c[w];f=Wt(S,f,_)}if(u){const x=h==="y"?"top":"left",w=h==="y"?"bottom":"right",S=m+c[x],_=m-c[w];m=Wt(S,m,_)}const v=r.fn({...e,[d]:f,[h]:m});return{...v,data:{x:v.x-n,y:v.y-s}}}}},Tn=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:n,y:s,placement:o,rects:a,middlewareData:u}=e,{offset:r=0,mainAxis:p=!0,crossAxis:l=!0}=Y(t,e),c={x:n,y:s},h=it(o),d=Et(h);let f=c[d],m=c[h];const v=Y(r,e),x=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(p){const _=d==="y"?"height":"width",k=a.reference[d]-a.floating[_]+x.mainAxis,O=a.reference[d]+a.reference[_]-x.mainAxis;fO&&(f=O)}if(l){var w,S;const _=d==="y"?"width":"height",k=["top","left"].includes(H(o)),O=a.reference[h]-a.floating[_]+(k&&((w=u.offset)==null?void 0:w[h])||0)+(k?0:x.crossAxis),M=a.reference[h]+a.reference[_]+(k?0:((S=u.offset)==null?void 0:S[h])||0)-(k?x.crossAxis:0);mM&&(m=M)}return{[d]:f,[h]:m}}}};function W(t){return Oe(t)?(t.nodeName||"").toLowerCase():"#document"}function T(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function z(t){var e;return(e=(Oe(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Oe(t){return t instanceof Node||t instanceof T(t).Node}function F(t){return t instanceof Element||t instanceof T(t).Element}function V(t){return t instanceof HTMLElement||t instanceof T(t).HTMLElement}function qt(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof T(t).ShadowRoot}function ot(t){const{overflow:e,overflowX:n,overflowY:s,display:o}=E(t);return/auto|scroll|overlay|hidden|clip/.test(e+s+n)&&!["inline","contents"].includes(o)}function Pn(t){return["table","td","th"].includes(W(t))}function Ut(t){const e=Vt(),n=E(t);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(s=>(n.willChange||"").includes(s))||["paint","layout","strict","content"].some(s=>(n.contain||"").includes(s))}function En(t){let e=J(t);for(;V(e)&&!vt(e);){if(Ut(e))return e;e=J(e)}return null}function Vt(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function vt(t){return["html","body","#document"].includes(W(t))}function E(t){return T(t).getComputedStyle(t)}function bt(t){return F(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function J(t){if(W(t)==="html")return t;const e=t.assignedSlot||t.parentNode||qt(t)&&t.host||z(t);return qt(e)?e.host:e}function Ae(t){const e=J(t);return vt(e)?t.ownerDocument?t.ownerDocument.body:t.body:V(e)&&ot(e)?e:Ae(e)}function et(t,e,n){var s;e===void 0&&(e=[]),n===void 0&&(n=!0);const o=Ae(t),a=o===((s=t.ownerDocument)==null?void 0:s.body),u=T(o);return a?e.concat(u,u.visualViewport||[],ot(o)?o:[],u.frameElement&&n?et(u.frameElement):[]):e.concat(o,et(o,[],n))}function ke(t){const e=E(t);let n=parseFloat(e.width)||0,s=parseFloat(e.height)||0;const o=V(t),a=o?t.offsetWidth:n,u=o?t.offsetHeight:s,r=pt(n)!==a||pt(s)!==u;return r&&(n=a,s=u),{width:n,height:s,$:r}}function $t(t){return F(t)?t:t.contextElement}function Z(t){const e=$t(t);if(!V(e))return R(1);const n=e.getBoundingClientRect(),{width:s,height:o,$:a}=ke(e);let u=(a?pt(n.width):n.width)/s,r=(a?pt(n.height):n.height)/o;return(!u||!Number.isFinite(u))&&(u=1),(!r||!Number.isFinite(r))&&(r=1),{x:u,y:r}}const Un=R(0);function Ne(t){const e=T(t);return!Vt()||!e.visualViewport?Un:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Vn(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==T(t)?!1:e}function X(t,e,n,s){e===void 0&&(e=!1),n===void 0&&(n=!1);const o=t.getBoundingClientRect(),a=$t(t);let u=R(1);e&&(s?F(s)&&(u=Z(s)):u=Z(t));const r=Vn(a,n,s)?Ne(a):R(0);let p=(o.left+r.x)/u.x,l=(o.top+r.y)/u.y,c=o.width/u.x,h=o.height/u.y;if(a){const d=T(a),f=s&&F(s)?T(s):s;let m=d.frameElement;for(;m&&s&&f!==d;){const v=Z(m),x=m.getBoundingClientRect(),w=E(m),S=x.left+(m.clientLeft+parseFloat(w.paddingLeft))*v.x,_=x.top+(m.clientTop+parseFloat(w.paddingTop))*v.y;p*=v.x,l*=v.y,c*=v.x,h*=v.y,p+=S,l+=_,m=T(m).frameElement}}return gt({width:c,height:h,x:p,y:l})}function $n(t){let{rect:e,offsetParent:n,strategy:s}=t;const o=V(n),a=z(n);if(n===a)return e;let u={scrollLeft:0,scrollTop:0},r=R(1);const p=R(0);if((o||!o&&s!=="fixed")&&((W(n)!=="body"||ot(a))&&(u=bt(n)),V(n))){const l=X(n);r=Z(n),p.x=l.x+n.clientLeft,p.y=l.y+n.clientTop}return{width:e.width*r.x,height:e.height*r.y,x:e.x*r.x-u.scrollLeft*r.x+p.x,y:e.y*r.y-u.scrollTop*r.y+p.y}}function Fn(t){return Array.from(t.getClientRects())}function Me(t){return X(z(t)).left+bt(t).scrollLeft}function zn(t){const e=z(t),n=bt(t),s=t.ownerDocument.body,o=q(e.scrollWidth,e.clientWidth,s.scrollWidth,s.clientWidth),a=q(e.scrollHeight,e.clientHeight,s.scrollHeight,s.clientHeight);let u=-n.scrollLeft+Me(t);const r=-n.scrollTop;return E(s).direction==="rtl"&&(u+=q(e.clientWidth,s.clientWidth)-o),{width:o,height:a,x:u,y:r}}function jn(t,e){const n=T(t),s=z(t),o=n.visualViewport;let a=s.clientWidth,u=s.clientHeight,r=0,p=0;if(o){a=o.width,u=o.height;const l=Vt();(!l||l&&e==="fixed")&&(r=o.offsetLeft,p=o.offsetTop)}return{width:a,height:u,x:r,y:p}}function Rn(t,e){const n=X(t,!0,e==="fixed"),s=n.top+t.clientTop,o=n.left+t.clientLeft,a=V(t)?Z(t):R(1),u=t.clientWidth*a.x,r=t.clientHeight*a.y,p=o*a.x,l=s*a.y;return{width:u,height:r,x:p,y:l}}function Xt(t,e,n){let s;if(e==="viewport")s=jn(t,n);else if(e==="document")s=zn(z(t));else if(F(e))s=Rn(e,n);else{const o=Ne(t);s={...e,x:e.x-o.x,y:e.y-o.y}}return gt(s)}function Ie(t,e){const n=J(t);return n===e||!F(n)||vt(n)?!1:E(n).position==="fixed"||Ie(n,e)}function Hn(t,e){const n=e.get(t);if(n)return n;let s=et(t,[],!1).filter(r=>F(r)&&W(r)!=="body"),o=null;const a=E(t).position==="fixed";let u=a?J(t):t;for(;F(u)&&!vt(u);){const r=E(u),p=Ut(u);!p&&r.position==="fixed"&&(o=null),(a?!p&&!o:!p&&r.position==="static"&&o&&["absolute","fixed"].includes(o.position)||ot(u)&&!p&&Ie(t,u))?s=s.filter(l=>l!==u):o=r,u=J(u)}return e.set(t,s),s}function Wn(t){let{element:e,boundary:n,rootBoundary:s,strategy:o}=t;const a=[...n==="clippingAncestors"?Hn(e,this._c):[].concat(n),s],u=a[0],r=a.reduce((p,l)=>{const c=Xt(e,l,o);return p.top=q(c.top,p.top),p.right=dt(c.right,p.right),p.bottom=dt(c.bottom,p.bottom),p.left=q(c.left,p.left),p},Xt(e,u,o));return{width:r.right-r.left,height:r.bottom-r.top,x:r.left,y:r.top}}function Kn(t){return ke(t)}function qn(t,e,n){const s=V(e),o=z(e),a=n==="fixed",u=X(t,!0,a,e);let r={scrollLeft:0,scrollTop:0};const p=R(0);if(s||!s&&!a)if((W(e)!=="body"||ot(o))&&(r=bt(e)),s){const l=X(e,!0,a,e);p.x=l.x+e.clientLeft,p.y=l.y+e.clientTop}else o&&(p.x=Me(o));return{x:u.left+r.scrollLeft-p.x,y:u.top+r.scrollTop-p.y,width:u.width,height:u.height}}function Gt(t,e){return!V(t)||E(t).position==="fixed"?null:e?e(t):t.offsetParent}function Be(t,e){const n=T(t);if(!V(t))return n;let s=Gt(t,e);for(;s&&Pn(s)&&E(s).position==="static";)s=Gt(s,e);return s&&(W(s)==="html"||W(s)==="body"&&E(s).position==="static"&&!Ut(s))?n:s||En(t)||n}const Xn=async function(t){let{reference:e,floating:n,strategy:s}=t;const o=this.getOffsetParent||Be,a=this.getDimensions;return{reference:qn(e,await o(n),s),floating:{x:0,y:0,...await a(n)}}};function Gn(t){return E(t).direction==="rtl"}const Zn={convertOffsetParentRelativeRectToViewportRelativeRect:$n,getDocumentElement:z,getClippingRect:Wn,getOffsetParent:Be,getElementRects:Xn,getClientRects:Fn,getDimensions:Kn,getScale:Z,isElement:F,isRTL:Gn};function Yn(t,e){let n=null,s;const o=z(t);function a(){clearTimeout(s),n&&n.disconnect(),n=null}function u(r,p){r===void 0&&(r=!1),p===void 0&&(p=1),a();const{left:l,top:c,width:h,height:d}=t.getBoundingClientRect();if(r||e(),!h||!d)return;const f=at(c),m=at(o.clientWidth-(l+h)),v=at(o.clientHeight-(c+d)),x=at(l),w={rootMargin:-f+"px "+-m+"px "+-v+"px "+-x+"px",threshold:q(0,dt(1,p))||1};let S=!0;function _(k){const O=k[0].intersectionRatio;if(O!==p){if(!S)return u();O?u(!1,O):s=setTimeout(()=>{u(!1,1e-7)},100)}S=!1}try{n=new IntersectionObserver(_,{...w,root:o.ownerDocument})}catch{n=new IntersectionObserver(_,w)}n.observe(t)}return u(!0),a}function Jn(t,e,n,s){s===void 0&&(s={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:u=typeof ResizeObserver=="function",layoutShift:r=typeof IntersectionObserver=="function",animationFrame:p=!1}=s,l=$t(t),c=o||a?[...l?et(l):[],...et(e)]:[];c.forEach(w=>{o&&w.addEventListener("scroll",n,{passive:!0}),a&&w.addEventListener("resize",n)});const h=l&&r?Yn(l,n):null;let d=-1,f=null;u&&(f=new ResizeObserver(w=>{let[S]=w;S&&S.target===l&&f&&(f.unobserve(e),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{f&&f.observe(e)})),n()}),l&&!p&&f.observe(l),f.observe(e));let m,v=p?X(t):null;p&&x();function x(){const w=X(t);v&&(w.x!==v.x||w.y!==v.y||w.width!==v.width||w.height!==v.height)&&n(),v=w,m=requestAnimationFrame(x)}return n(),()=>{c.forEach(w=>{o&&w.removeEventListener("scroll",n),a&&w.removeEventListener("resize",n)}),h&&h(),f&&f.disconnect(),f=null,p&&cancelAnimationFrame(m)}}const Qn=(t,e,n)=>{const s=new Map,o={platform:Zn,...n},a={...o.platform,_c:s};return Nn(t,e,{...o,platform:a})},ts={name:"ChevronDownIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var es=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()])])])},ns=[],ss=P(ts,es,ns,!1,null,null);const is=ss.exports,De=(t,e)=>{const n=[];let s=0,o=t.toLowerCase().indexOf(e.toLowerCase(),s),a=0;for(;o>-1&&a[]}},computed:{ranges(){let t=[];return!this.search&&this.highlight.length===0||(this.highlight.length>0?t=this.highlight:t=De(this.text,this.search),t.forEach((e,n)=>{e.end(n.start0&&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.ranges.length&&ee.highlight?t("strong",{},e.text):e.text)):t("span",{},this.text)}},rs=null,as=null;var ls=P(os,rs,as,!1,null,null);const Te=ls.exports,cs={name:"NcEllipsisedOption",components:{NcHighlight:Te},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?De(this.name,this.search):[]},highlight2(){return this.highlight1.map(t=>({start:t.start-this.split,end:t.end-this.split}))}}};var us=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)},hs=[],ds=P(cs,us,hs,!1,null,"f6384352");const ps=ds.exports,fs={beforeUpdate(){this.text=this.getText()},data(){return{text:this.getText()}},computed:{isLongText(){return this.text&&this.text.trim().length>20}},methods:{getText(){return this.$slots.default?this.$slots.default[0].text.trim():""}}},gs=function(t,e){let n=t.$parent;for(;n;){if(n.$options.name===e)return n;n=n.$parent}},wt={mixins:[fs],props:{icon:{type:String,default:""},name:{type:String,default:""},title:{type:String,default:""},closeAfterClick:{type:Boolean,default:!1},ariaLabel:{type:String,default:null},ariaHidden:{type:Boolean,default:null}},emits:["click"],computed:{isIconUrl(){try{return!!new URL(this.icon,this.icon.startsWith("/")?window.location.origin:void 0)}catch{return!1}}},methods:{onClick(t){if(this.$emit("click",t),this.closeAfterClick){const e=gs(this,"NcActions");e&&e.closeMenu&&e.closeMenu(!1)}}}},ms={name:"NcActionLink",mixins:[wt],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 ys=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)])},vs=[],bs=P(ms,ys,vs,!1,null,"30c015f0");const ws=bs.exports,xs={name:"NcActionRouter",mixins:[wt],inject:{isInSemanticMenu:{from:"NcActions:isSemanticMenu",default:!1}},props:{to:{type:[String,Object],default:"",required:!0},exact:{type:Boolean,default:!1}}};var _s=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)},Ss=[],Cs=P(xs,_s,Ss,!1,null,"579c6b4d");const Ls=Cs.exports,Os={name:"NcActionText",mixins:[wt],inject:{isInSemanticMenu:{from:"NcActions:isSemanticMenu",default:!1}}};var As=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("br"),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)])},ks=[],Ns=P(Os,As,ks,!1,null,"824615f4");const Ms=Ns.exports,Is={name:"CheckIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var Bs=function(){var t=this,e=t._self._c;return e("span",t._b({staticClass:"material-design-icon check-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:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}},[t.title?e("title",[t._v(t._s(t.title))]):t._e()])])])},Ds=[],Ts=P(Is,Bs,Ds,!1,null,null);const Ps=Ts.exports,Es=Ge(),Us={name:"NcActionButton",components:{CheckIcon:Ps,ChevronRightIcon:Ye,ChevronLeftIcon:Ze},mixins:[wt],inject:{isInSemanticMenu:{from:"NcActions:isSemanticMenu",default:!1}},props:{ariaHidden:{type:Boolean,default:null},disabled:{type:Boolean,default:!1},isMenu:{type:Boolean,default:!1},type:{type:String,default:"button",validator:t=>["button","checkbox","radio","reset","submit"].includes(t)},modelValue:{type:[Boolean,String],default:null},value:{type:String,default:null}},setup(){return{isRtl:Es}},computed:{isFocusable(){return!this.disabled},isChecked(){return this.type==="radio"&&typeof this.modelValue!="boolean"?this.modelValue===this.value:this.modelValue},nativeType(){return this.type==="submit"||this.type==="reset"?this.type:"button"},buttonAttributes(){const t={};return this.isInSemanticMenu?(t.role="menuitem",this.type==="radio"?(t.role="menuitemradio",t["aria-checked"]=this.isChecked?"true":"false"):(this.type==="checkbox"||this.nativeType==="button"&&this.modelValue!==null)&&(t.role="menuitemcheckbox",t["aria-checked"]=this.modelValue===null?"mixed":this.modelValue?"true":"false")):this.modelValue!==null&&this.nativeType==="button"&&(t["aria-pressed"]=this.modelValue?"true":"false"),t}},methods:{handleClick(t){this.onClick(t),(this.modelValue!==null||this.type!=="button")&&(this.type==="radio"?typeof this.modelValue!="boolean"?this.isChecked||this.$emit("update:modelValue",this.value):this.$emit("update:modelValue",!this.isChecked):this.$emit("update:modelValue",!this.isChecked))}}};var Vs=function(){var t=this,e=t._self._c;return e("li",{staticClass:"action",class:{"action--disabled":t.disabled},attrs:{role:t.isInSemanticMenu&&"presentation"}},[e("button",t._b({class:["action-button button-vue",{"action-button--active":t.isChecked,focusable:t.isFocusable}],attrs:{"aria-label":t.ariaLabel,disabled:t.disabled,title:t.title,type:t.nativeType},on:{click:t.handleClick}},"button",t.buttonAttributes,!1),[t._t("icon",function(){return[e("span",{staticClass:"action-button__icon",class:[t.isIconUrl?"action-button__icon--url":t.icon],style:{backgroundImage:t.isIconUrl?`url(${t.icon})`:null},attrs:{"aria-hidden":"true"}})]}),t.name?e("span",{staticClass:"action-button__longtext-wrapper"},[e("strong",{staticClass:"action-button__name"},[t._v(" "+t._s(t.name)+" ")]),e("br"),e("span",{staticClass:"action-button__longtext",domProps:{textContent:t._s(t.text)}})]):t.isLongText?e("span",{staticClass:"action-button__longtext",domProps:{textContent:t._s(t.text)}}):e("span",{staticClass:"action-button__text"},[t._v(t._s(t.text))]),t.isMenu&&!t.isRtl?e("ChevronRightIcon",{staticClass:"action-button__menu-icon",attrs:{size:20}}):t.isMenu&&t.isRtl?e("ChevronLeftIcon",{staticClass:"action-button__menu-icon",attrs:{size:20}}):t.isChecked===!0?e("CheckIcon",{staticClass:"action-button__pressed-icon",attrs:{size:20}}):t.isChecked===!1?e("span",{staticClass:"action-button__pressed-icon material-design-icon"}):t._e(),t._e()],2)])},$s=[],Fs=P(Us,Vs,$s,!1,null,"92dc5a52");const zs=Fs.exports;function Pe(){try{return Je("core","capabilities")}catch{return console.debug("Could not find capabilities initial state fall back to _oc_capabilities"),"_oc_capabilities"in window?window._oc_capabilities:{}}}const js=` `,Zt=` `,Rs=` `,Yt=` `;st(Qe);const Ee=t=>{switch(t){case"away":return A("away");case"busy":return A("busy");case"dnd":return A("do not disturb");case"online":return A("online");case"invisible":return A("invisible");case"offline":return A("offline");default:return t}};st(tn);const Hs={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{online:js,away:Zt,busy:Zt,dnd:Rs,invisible:Yt,offline:Yt}[this.activeStatus]??null},ariaLabel(){return this.ariaHidden==="true"?null:A("User status: {status}",{status:Ee(this.activeStatus)})}},watch:{user:{immediate:!0,async handler(t,e){if(!t||!Pe()?.user_status?.enabled){this.fetchedUserStatus=null;return}try{const{data:n}=await Pt.get(ye("/apps/user_status/api/v1/statuses/{user}",{user:t}));this.fetchedUserStatus=n.ocs?.data?.status}catch{this.fetchedUserStatus=null}}}}};var Ws=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()},Ks=[],qs=P(Hs,Ws,Ks,!1,null,"0555d8d0");const Xs=qs.exports;st(en);class B{constructor(e,n,s,o){this.r=e,this.g=n,this.b=s,o&&(this.name=o)}get color(){const e=n=>`00${n.toString(16)}`.slice(-2);return`#${e(this.r)}${e(this.g)}${e(this.b)}`}}function Gs(t,e){const n=new Array(3);return n[0]=(e[1].r-e[0].r)/t,n[1]=(e[1].g-e[0].g)/t,n[2]=(e[1].b-e[0].b)/t,n}function Ct(t,e,n){const s=[];s.push(e);const o=Gs(t,[e,n]);for(let a=1;a>>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;s0;n--)s.push(Math.floor(Math.random()*256));return s},bytesToWords:function(n){for(var s=[],o=0,a=0;o>>5]|=n[o]<<24-a%32;return s},wordsToBytes:function(n){for(var s=[],o=0;o>>5]>>>24-o%32&255);return s},bytesToHex:function(n){for(var s=[],o=0;o>>4).toString(16)),s.push((n[o]&15).toString(16));return s.join("")},hexToBytes:function(n){for(var s=[],o=0;o>>6*(3-u)&63)):s.push("=");return s.join("")},base64ToBytes:function(n){n=n.replace(/[^A-Z0-9+\/]/ig,"");for(var s=[],o=0,a=0;o>>6-a*2);return s}};Qt.exports=e}()),Qt.exports}var Lt,ee;function ne(){if(ee)return Lt;ee=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>>24)&16711935|(r[f]<<24|r[f]>>>8)&4278255360;r[p>>>5]|=128<>>9<<4)+14]=p;for(var m=o._ff,v=o._gg,x=o._hh,w=o._ii,f=0;f>>0,c=c+_>>>0,h=h+k>>>0,d=d+O>>>0}return t.endian([l,c,h,d])};o._ff=function(a,u,r,p,l,c,h){var d=a+(u&r|~u&p)+(l>>>0)+h;return(d<>>32-c)+u},o._gg=function(a,u,r,p,l,c,h){var d=a+(u&p|r&~p)+(l>>>0)+h;return(d<>>32-c)+u},o._hh=function(a,u,r,p,l,c,h){var d=a+(u^r^p)+(l>>>0)+h;return(d<>>32-c)+u},o._ii=function(a,u,r,p,l,c,h){var d=a+(r^(u|~p))+(l>>>0)+h;return(d<>>32-c)+u},o._blocksize=16,o._digestsize=16,Jt.exports=function(a,u){if(a==null)throw new Error("Illegal argument "+a);var r=t.wordsToBytes(o(a,u));return u&&u.asBytes?r:u&&u.asString?s.bytesToString(r):t.bytesToHex(r)}}()),Jt.exports}var ti=Qs();const ei=nn(ti),oe=function(t){let e=t.toLowerCase();e.match(/^([0-9a-f]{4}-?){8}$/)===null&&(e=ei(e)),e=e.replace(/[^0-9a-f]/g,"");const n=6,s=Zs(n);function o(a,u){let r=0;const p=[];for(let l=0;l{const s=window.getComputedStyle(document.body).getPropertyValue("--background-invert-if-dark")==="invert(100%)";return ve("/avatar"+(n?"/guest":"")+"/{user}/{size}"+(s?"/dark":""),{user:t,size:e})};var N=(t=>(t[t.Debug=0]="Debug",t[t.Info=1]="Info",t[t.Warn=2]="Warn",t[t.Error=3]="Error",t[t.Fatal=4]="Fatal",t))(N||{}),si=Object.defineProperty,ii=(t,e,n)=>e in t?si(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,oi=(t,e,n)=>(ii(t,e+"",n),n);class ri{constructor(e){oi(this,"context"),this.context=e||{}}formatMessage(e,n,s){let o="["+N[n].toUpperCase()+"] ";return s&&s.app&&(o+=s.app+": "),typeof e=="string"?o+e:(o+="Unexpected ".concat(e.name),e.message&&(o+=' "'.concat(e.message,'"')),n===N.Debug&&e.stack&&(o+=` Stack trace: `.concat(e.stack)),o)}log(e,n,s){var o,a;if(!(typeof((o=this.context)==null?void 0:o.level)=="number"&&e<((a=this.context)==null?void 0:a.level)))switch(typeof n=="object"&&s?.error===void 0&&(s.error=n),e){case N.Debug:console.debug(this.formatMessage(n,N.Debug,s),s);break;case N.Info:console.info(this.formatMessage(n,N.Info,s),s);break;case N.Warn:console.warn(this.formatMessage(n,N.Warn,s),s);break;case N.Error:console.error(this.formatMessage(n,N.Error,s),s);break;case N.Fatal:default:console.error(this.formatMessage(n,N.Fatal,s),s);break}}debug(e,n){this.log(N.Debug,e,Object.assign({},this.context,n))}info(e,n){this.log(N.Info,e,Object.assign({},this.context,n))}warn(e,n){this.log(N.Warn,e,Object.assign({},this.context,n))}error(e,n){this.log(N.Error,e,Object.assign({},this.context,n))}fatal(e,n){this.log(N.Fatal,e,Object.assign({},this.context,n))}}function ai(t){return new ri(t)}var li=Object.defineProperty,ci=(t,e,n)=>e in t?li(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,re=(t,e,n)=>(ci(t,typeof e!="symbol"?e+"":e,n),n);class ui{constructor(e){re(this,"context"),re(this,"factory"),this.context={},this.factory=e}setApp(e){return this.context.app=e,this}setLogLevel(e){return this.context.level=e,this}setUid(e){return this.context.uid=e,this}detectUser(){const e=ht();return e!==null&&(this.context.uid=e.uid),this}detectLogLevel(){const e=this,n=()=>{var s,o;document.readyState==="complete"||document.readyState==="interactive"?(e.context.level=(o=(s=window._oc_config)==null?void 0:s.loglevel)!=null?o:N.Warn,window._oc_debug&&(e.context.level=N.Debug),document.removeEventListener("readystatechange",n)):document.addEventListener("readystatechange",n)};return n(),this}build(){return this.context.level===void 0&&this.detectLogLevel(),this.factory(this.context)}}function hi(){return new ui(ai)}const di=hi().detectUser().setApp("@nextcloud/vue").build();function pi(t){return window._nc_contacts_menu_hooks?Object.values(window._nc_contacts_menu_hooks).filter(e=>e.enabled(t)):[]}const Ue=function(t){if(t==null)return yi;if(typeof t=="function")return xt(t);if(typeof t=="object")return Array.isArray(t)?fi(t):gi(t);if(typeof t=="string")return mi(t);throw new Error("Expected function, string, or object as test")};function fi(t){const e=[];let n=-1;for(;++n":""))+")"})}return d;function d(){let f=Ve,m,v,x;if((!e||a(p,l,c[c.length-1]||void 0))&&(f=xi(n(p,c)),f[0]===ae))return f;if("children"in p&&p.children){const w=p;if(w.children&&f[0]!==$e)for(v=(s?w.children.length:-1)+u,x=c.concat(w);v>-1&&vo.type==="text",(o,a,u)=>{let r=Ci(o.value);return r=r.map(p=>typeof p=="string"?At("text",p):At("link",{url:p.props.href},[At("text",p.props.href)])).filter(p=>p),u.children.splice(a,1,...r.flat()),[$e,a+r.flat().length]})}},Ci=t=>{let e=le.exec(t);const n=[];let s=0;for(;e!==null;){let a=e[2],u,r=t.substring(s,e.index+e[1].length);a[0]===" "&&(r+=a[0],a=a.substring(1).trim());const p=a[a.length-1];(p==="."||p===","||p===";"||e[0][0]==="("&&p===")")&&(a=a.substring(0,a.length-1),u=p),n.push(r),n.push({component:Si,props:{href:a}}),u&&n.push(u),s=e.index+e[0].length,e=le.exec(t)}n.push(t.substring(s));const o=n.map(a=>typeof a=="string"?a:a.props.href).join("");return t===o?n:(console.error("Failed to reassemble the chunked text: "+t),t)},Li=(t,e)=>{const n=(c,h)=>c.startsWith(h)?c.slice(h.length):c,s=(c,...h)=>h.reduce((d,f)=>n(d,f),c);if(!t)return null;const o=/^https?:\/\//.test(e),a=/^[a-z][a-z0-9+.-]*:.+/.test(e);if(!o&&a||o&&!e.startsWith(zt())||!o&&!e.startsWith("/"))return null;const u=o?s(e,zt(),"/index.php"):e,r=s(t.history.base,sn(),"/index.php"),p=s(u,r)||"/",l=t.resolve(p).route;return l.matched.length?l.fullPath:null},Fe=()=>window.outerHeight===screen.height,ce=nt(Fe());window.addEventListener("resize",()=>{ce.value=Fe()}),me(ce);const Ft=1024,ze=Ft/2,mt=t=>document.documentElement.clientWidth{ue.value=mt(Ft),Oi.value=mt(ze)},{passive:!0}),me(ue);var Dt={exports:{}},Ai=Dt.exports,he;function ki(){return he||(he=1,function(t){(function(e){if(typeof n!="function"){var n=function(m){return m};n.nonNative=!0}const s=n("plaintext"),o=n("html"),a=n("comment"),u=/<(\w*)>/g,r=/<\/?([^\s\/>]+)/;function p(m,v,x){m=m||"",v=v||[],x=x||"";let w=c(v,x);return h(m,w)}function l(m,v){m=m||[],v=v||"";let x=c(m,v);return function(w){return h(w||"",x)}}p.init_streaming_mode=l;function c(m,v){return m=d(m),{allowable_tags:m,tag_replacement:v,state:s,tag_buffer:"",depth:0,in_quote_char:""}}function h(m,v){if(typeof m!="string")throw new TypeError("'html' parameter must be a string");let x=v.allowable_tags,w=v.tag_replacement,S=v.state,_=v.tag_buffer,k=v.depth,O=v.in_quote_char,M="";for(let U=0,$=m.length;U<$;U++){let I=m[U];if(S===s)switch(I){case"<":S=o,_+=I;break;default:M+=I;break}else if(S===o)switch(I){case"<":if(O)break;k++;break;case">":if(O)break;if(k){k--;break}O="",S=s,_+=">",x.has(f(_))?M+=_:M+=w,_="";break;case'"':case"'":I===O?O="":O=O||I,_+=I;break;case"-":_==="":_.slice(-2)=="--"&&(S=s),_="";break;default:_+=I;break}}return v.state=S,v.tag_buffer=_,v.depth=k,v.in_quote_char=O,M}function d(m){let v=new Set;if(typeof m=="string"){let x;for(;x=u.exec(m);)v.add(x[1])}else!n.nonNative&&typeof m[n.iterator]=="function"?v=new Set(m):typeof m.forEach=="function"&&m.forEach(v.add,v);return v}function f(m){let v=r.exec(m);return v?v[1].toLowerCase():null}t.exports?t.exports=p:e.striptags=p})(Ai)}(Dt)),Dt.exports}ki(),ut.util.warn;function Q(t){var e;const n=tt(t);return(e=n?.$el)!=null?e:n}const je=on?window:void 0;function ct(...t){let e,n,s,o;if(typeof t[0]=="string"||Array.isArray(t[0])?([n,s,o]=t,e=je):[e,n,s,o]=t,!e)return lt;Array.isArray(n)||(n=[n]),Array.isArray(s)||(s=[s]);const a=[],u=()=>{a.forEach(c=>c()),a.length=0},r=(c,h,d,f)=>(c.addEventListener(h,d,f),()=>c.removeEventListener(h,d,f)),p=Tt(()=>[Q(e),tt(o)],([c,h])=>{if(u(),!c)return;const d=rn(h)?{...h}:h;a.push(...n.flatMap(f=>s.map(m=>r(c,f,m,d))))},{immediate:!0,flush:"post"}),l=()=>{p(),u()};return be(l),l}let de=!1;function pe(t,e,n={}){const{window:s=je,ignore:o=[],capture:a=!0,detectIframe:u=!1}=n;if(!s)return lt;Mt&&!de&&(de=!0,Array.from(s.document.body.children).forEach(c=>c.addEventListener("click",lt)),s.document.documentElement.addEventListener("click",lt));let r=!0;const p=c=>o.some(h=>{if(typeof h=="string")return Array.from(s.document.querySelectorAll(h)).some(d=>d===c.target||c.composedPath().includes(d));{const d=Q(h);return d&&(c.target===d||c.composedPath().includes(d))}}),l=[ct(s,"click",c=>{const h=Q(t);if(!(!h||h===c.target||c.composedPath().includes(h))){if(c.detail===0&&(r=!p(c)),!r){r=!0;return}e(c)}},{passive:!0,capture:a}),ct(s,"pointerdown",c=>{const h=Q(t);r=!p(c)&&!!(h&&!c.composedPath().includes(h))},{passive:!0}),u&&ct(s,"blur",c=>{setTimeout(()=>{var h;const d=Q(t);((h=s.document.activeElement)==null?void 0:h.tagName)==="IFRAME"&&!d?.contains(s.document.activeElement)&&e(c)},0)})].filter(Boolean);return()=>l.forEach(c=>c())}const Ni={[jt.mounted](t,e){const n=!e.modifiers.bubble;if(typeof e.value=="function")t.__onClickOutside_stop=pe(t,e.value,{capture:n});else{const[s,o]=e.value;t.__onClickOutside_stop=pe(t,s,Object.assign({capture:n},o))}},[jt.unmounted](t){t.__onClickOutside_stop()}};function kt(t){return typeof Window<"u"&&t instanceof Window?t.document.documentElement:typeof Document<"u"&&t instanceof Document?t.documentElement:t}function Re(t){const e=window.getComputedStyle(t);if(e.overflowX==="scroll"||e.overflowY==="scroll"||e.overflowX==="auto"&&t.clientWidth1?!0:(e.preventDefault&&e.preventDefault(),!1)}const Nt=new WeakMap;function Ii(t,e=!1){const n=nt(e);let s=null,o="";Tt(an(t),r=>{const p=kt(tt(r));if(p){const l=p;if(Nt.get(l)||Nt.set(l,l.style.overflow),l.style.overflow!=="hidden"&&(o=l.style.overflow),l.style.overflow==="hidden")return n.value=!0;if(n.value)return l.style.overflow="hidden"}},{immediate:!0});const a=()=>{const r=kt(tt(t));!r||n.value||(Mt&&(s=ct(r,"touchmove",p=>{Mi(p)},{passive:!1})),r.style.overflow="hidden",n.value=!0)},u=()=>{const r=kt(tt(t));!r||!n.value||(Mt&&s?.(),r.style.overflow=o,Nt.delete(r),n.value=!1)};return be(u),qe({get(){return n.value},set(r){r?a():u()}})}function Bi(){let t=!1;const e=nt(!1);return(n,s)=>{if(e.value=s.value,t)return;t=!0;const o=Ii(n,s.value);Tt(e,a=>o.value=a)}}Bi(),st(ln);const He={data(){return{hasStatus:!1,userStatus:{status:null,message:null,icon:null}}},methods:{async fetchUserStatus(t){if(!t)return;const e=Pe();if(!(!Object.prototype.hasOwnProperty.call(e,"user_status")||!e.user_status.enabled)&&ht())try{const{data:n}=await Pt.get(ye("apps/user_status/api/v1/statuses/{userId}",{userId:t})),{status:s,message:o,icon:a}=n.ocs.data;this.userStatus.status=s,this.userStatus.message=o||"",this.userStatus.icon=a||"",this.hasStatus=!0}catch(n){if(n.response.status===404&&n.response.data.ocs?.data?.length===0)return;console.error(n)}}}},We=we.getBuilder("nextcloud").persist().build();function Di(t){const e=We.getItem("user-has-avatar."+t);return typeof e=="string"?!!e:null}function fe(t,e){t&&We.setItem("user-has-avatar."+t,e)}const Ti={name:"NcAvatar",directives:{ClickOutside:Ni},components:{DotsHorizontal:hn,NcActions:un,NcButton:cn,NcIconSvgWrapper:_e,NcLoadingIcon:xe,NcUserStatusIcon:Xs},mixins:[He],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"}},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?A("Avatar of {displayName}, {status}",{displayName:this.displayName??this.user,status:Ee(this.userStatus.status)}):A("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===ht()?.uid||this.userDoesNotExist||this.url)},showInitials(){return!this.noPlaceholder&&this.allowPlaceholder&&this.userDoesNotExist&&!(this.iconClass||this.$slots.icon)},avatarStyle(){return{"--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}=oe(this.userIdentifier);return{backgroundColor:`rgba(${t}, ${e}, ${n}, 0.1)`}},initialsStyle(){const{r:t,g:e,b:n}=oe(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(""),o=s.lastIndexOf(" ");t=String.fromCodePoint(s.codePointAt(0)),o!==-1&&(t=t.concat(String.fromCodePoint(s.codePointAt(o+1))))}return t.toLocaleUpperCase()},menu(){const t=this.contactsMenuActions.map(n=>{const s=Li(this.$router,n.hyperlink);return{ncActionComponent:s?Ls:ws,ncActionComponentProps:s?{to:s,icon:n.icon}:{href:n.hyperlink,icon:n.icon},text:n.title}});for(const n of pi(this.contactsMenuData))try{t.push({ncActionComponent:zs,ncActionComponentProps:{},ncActionComponentHandlers:{click:()=>n.callback(this.contactsMenuData)},text:n.displayName(this.contactsMenuData),iconSvg:n.iconSvg(this.contactsMenuData)})}catch(s){di.error(`Failed to render ContactsMenu action ${n.id}`,{error:s,action:n})}function e(n){const s=document.createTextNode(n),o=document.createElement("p");return o.appendChild(s),o.innerHTML}if(this.showUserStatus&&(this.userStatus.icon||this.userStatus.message)){const n=` ${e(this.userStatus.icon)} `;return[{ncActionComponent:Ms,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(),St("settings:avatar:updated",this.loadAvatarUrl),St("settings:display-name:updated",this.loadAvatarUrl),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),St("user_status:status.updated",this.handleUserStatusUpdated))},beforeDestroy(){_t("settings:avatar:updated",this.loadAvatarUrl),_t("settings:display-name:updated",this.loadAvatarUrl),this.showUserStatus&&this.user&&!this.isNoUser&&_t("user_status:status.updated",this.handleUserStatusUpdated)},methods:{t:A,handleUserStatusUpdated(t){this.user===t.userId&&(this.userStatus={status:t.status,icon:t.icon,message:t.message})},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(ve("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.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=ni(t,e,this.isGuest);return t===ht()?.uid&&typeof oc_userconfig<"u"&&(n+="?v="+oc_userconfig.avatar.version),n},updateImageIfValid(t,e=null){const n=Di(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,fe(this.user,!0)},s.onerror=()=>{console.debug("Invalid avatar url",t),this.avatarUrlLoaded=null,this.avatarSrcSetLoaded=null,this.userDoesNotExist=!0,this.isAvatarLoaded=!1,fe(this.user,!1)},e&&(s.srcset=e),s.src=t}}};var Pi=function(){var t=this,e=t._self._c;return e("span",{directives:[{name:"click-outside",rawName:"v-click-outside",value:t.closeMenu,expression:"closeMenu"}],ref:"main",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("DotsHorizontal",{attrs:{size:20}})]},proxy:!0}],null,!1,2617833509)}):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)},Ei=[],Ui=P(Ti,Pi,Ei,!1,null,"998087bd");const Vi=Ui.exports,$i=8,ge=32,Fi={name:"NcListItemIcon",components:{NcAvatar:Vi,NcHighlight:Te,NcIconSvgWrapper:_e},mixins:[He],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:ge},noMargin:{type:Boolean,default:!1},displayName:{type:String,default:null},isNoUser:{type:Boolean,default:!1},id:{type:String,default:null}},setup(){return{margin:$i,defaultSize:ge}},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 zi=function(){var t=this,e=t._self._c;return e("span",t._g({staticClass:"option",class:{"option--compact":t.avatarSize({...t,...e.props}),{}),ariaLabelClearSelected:{type:String,default:A("Clear selected")},ariaLabelCombobox:{type:String,default:null},ariaLabelListbox:{type:String,default:A("Options")},ariaLabelDeselectOption:{type:Function,default:t=>A("Deselect {option}",{option:t})},appendToBody:{type:Boolean,default:!0},calculatePosition:{type:Function,default:null},closeOnSelect:{type:Boolean,default:!0},components:{type:Object,default:()=>({Deselect:{render:t=>t(fn,{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-${Rt()}`},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:()=>Rt()},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=pn("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(u){return t.classList.add("vs__dropdown-menu--floating"),{}}},o={name:"togglePlacementClass",fn({placement:u}){return e.$el.classList.toggle("select--drop-up",u==="top"),t.classList.toggle("vs__dropdown-menu--floating-placement-top",u==="top"),{}}},a=()=>{Qn(e.$refs.toggle,t,{placement:this.placement,middleware:[Bn(-1),s,o,Mn(),Dn({limiter:Tn()})]}).then(({x:u,y:r})=>{Object.assign(t.style,{left:`${u}px`,top:`${r}px`,width:`${e.$refs.toggle.getBoundingClientRect().width}px`})})};return Jn(e.$refs.toggle,t,a)}},localFilterBy(){const t=/[^<]*<([^>]+)/;return this.filterBy!==null?this.filterBy:this.userSelect?(e,n,s)=>{const o=s.match(t);return o&&e.subname?.toLocaleLowerCase?.()?.indexOf(o[1].toLocaleLowerCase())>-1||`${n} ${e.subname}`.toLocaleLowerCase().indexOf(s.toLocaleLowerCase())>-1}:K.VueSelect.props.filterBy.default},localLabel(){return this.label!==null?this.label:this.userSelect?"displayName":K.VueSelect.props.label.default},propsToForward(){const t=[...Object.keys(K.VueSelect.props),...K.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,filterBy:this.localFilterBy,label:this.localLabel}},listenersToForward(){return{...this.$listeners,input:t=>{this.model=t}}}},mounted(){!this.labelOutside&&!this.inputLabel&&!this.ariaLabelCombobox&&ut.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&&ut.util.warn("[NcSelect] Only one of `inputLabel` or `ariaLabelCombobox` should to be set.")},methods:{t:A}};var Ki=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.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}})]}},{key:"selected-option",fn:function(n){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}})]}},{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(o){return[t._t(s,null,null,o)]}}})],null,!0)},"VueSelect",t.propsToForward,!1),t.listenersToForward))},qi=[],Xi=P(Wi,Ki,qi,!1,null,null);const Qi=Xi.exports,to=we.getBuilder("notifications").clearOnLogout().persist().build();export{to as B,Ps as C,ae as E,Qi as N,$e as S,Yi as U,_i as a,Vi as b,Ue as c,Ni as d,Pe as e,Li as g,Ci as p,Ji as r,At as u,wi as v}; //# sourceMappingURL=BrowserStorage-DTUWn1PX.chunk.mjs.map