diff --git a/dist/ContentCopy-BEfKgtZW.chunk.mjs b/dist/ContentCopy-DUGe9ppe.chunk.mjs similarity index 99% rename from dist/ContentCopy-BEfKgtZW.chunk.mjs rename to dist/ContentCopy-DUGe9ppe.chunk.mjs index d4e98e6d353fd..28c8e250098bf 100644 --- a/dist/ContentCopy-BEfKgtZW.chunk.mjs +++ b/dist/ContentCopy-DUGe9ppe.chunk.mjs @@ -1,2 +1,2 @@ -import{a1 as h,h as I,j as w,v as n,o as l,k as d,m as s,t as p,L as T,ao as M,ar as $,ap as H,c as x,w as k,B as u,as as S,a5 as z,$ as N,an as v,a4 as m,n as C,r as B,a as L,aq as E,b as Z,ai as q,_ as O}from"./TrayArrowDown-sRwZP_WA.chunk.mjs";const R=["aria-label"],j=["width","height"],G=["fill"],W=["fill"],P={key:0},U=I({__name:"NcLoadingIcon",props:{appearance:{default:"auto"},name:{default:""},size:{default:20}},setup(t){const a=t,e=w(()=>{const o=["#777","#CCC"];return a.appearance==="light"?o:a.appearance==="dark"?o.reverse():["var(--color-loading-light)","var(--color-loading-dark)"]});return(o,c)=>(l(),n("span",{"aria-label":o.name,role:"img",class:"material-design-icon loading-icon"},[(l(),n("svg",{width:o.size,height:o.size,viewBox:"0 0 24 24"},[d("path",{fill:e.value[0],d:"M12,4V2A10,10 0 1,0 22,12H20A8,8 0 1,1 12,4Z"},null,8,G),d("path",{fill:e.value[1],d:"M12,4V2A10,10 0 0,1 22,12H20A8,8 0 0,0 12,4Z"},[o.name?(l(),n("title",P,p(o.name),1)):s("",!0)],8,W)],8,j))],8,R))}}),D=h(U,[["__scopeId","data-v-cf399190"]]),F=Symbol.for("insideRadioGroup");function J(){return T(F,void 0)}const K={name:"CheckboxBlankOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Q=["aria-hidden","aria-label"],X=["fill","width","height"],Y={d:"M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3M19,5V19H5V5H19Z"},ee={key:0};function te(t,a,e,o,c,i){return l(),n("span",u(t.$attrs,{"aria-hidden":e.title?null:"true","aria-label":e.title,class:"material-design-icon checkbox-blank-outline-icon",role:"img",onClick:a[0]||(a[0]=r=>t.$emit("click",r))}),[(l(),n("svg",{fill:e.fillColor,class:"material-design-icon__svg",width:e.size,height:e.size,viewBox:"0 0 24 24"},[d("path",Y,[e.title?(l(),n("title",ee,p(e.title),1)):s("",!0)])],8,X))],16,Q)}const ie=h(K,[["render",te]]),ae={name:"CheckboxMarkedIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},le=["aria-hidden","aria-label"],ne=["fill","width","height"],oe={d:"M10,17L5,12L6.41,10.58L10,14.17L17.59,6.58L19,8M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3Z"},re={key:0};function se(t,a,e,o,c,i){return l(),n("span",u(t.$attrs,{"aria-hidden":e.title?null:"true","aria-label":e.title,class:"material-design-icon checkbox-marked-icon",role:"img",onClick:a[0]||(a[0]=r=>t.$emit("click",r))}),[(l(),n("svg",{fill:e.fillColor,class:"material-design-icon__svg",width:e.size,height:e.size,viewBox:"0 0 24 24"},[d("path",oe,[e.title?(l(),n("title",re,p(e.title),1)):s("",!0)])],8,ne))],16,le)}const ce=h(ae,[["render",se]]),de={name:"MinusBoxIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},ue=["aria-hidden","aria-label"],he=["fill","width","height"],pe={d:"M17,13H7V11H17M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3Z"},ge={key:0};function be(t,a,e,o,c,i){return l(),n("span",u(t.$attrs,{"aria-hidden":e.title?null:"true","aria-label":e.title,class:"material-design-icon minus-box-icon",role:"img",onClick:a[0]||(a[0]=r=>t.$emit("click",r))}),[(l(),n("svg",{fill:e.fillColor,class:"material-design-icon__svg",width:e.size,height:e.size,viewBox:"0 0 24 24"},[d("path",pe,[e.title?(l(),n("title",ge,p(e.title),1)):s("",!0)])],8,he))],16,ue)}const ye=h(de,[["render",be]]),me={name:"RadioboxBlankIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},fe=["aria-hidden","aria-label"],ke=["fill","width","height"],ve={d:"M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z"},Ce={key:0};function we(t,a,e,o,c,i){return l(),n("span",u(t.$attrs,{"aria-hidden":e.title?null:"true","aria-label":e.title,class:"material-design-icon radiobox-blank-icon",role:"img",onClick:a[0]||(a[0]=r=>t.$emit("click",r))}),[(l(),n("svg",{fill:e.fillColor,class:"material-design-icon__svg",width:e.size,height:e.size,viewBox:"0 0 24 24"},[d("path",ve,[e.title?(l(),n("title",Ce,p(e.title),1)):s("",!0)])],8,ke))],16,fe)}const xe=h(me,[["render",we]]),Ae={name:"RadioboxMarkedIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Se=["aria-hidden","aria-label"],Ve=["fill","width","height"],_e={d:"M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,7A5,5 0 0,0 7,12A5,5 0 0,0 12,17A5,5 0 0,0 17,12A5,5 0 0,0 12,7Z"},ze={key:0};function Be(t,a,e,o,c,i){return l(),n("span",u(t.$attrs,{"aria-hidden":e.title?null:"true","aria-label":e.title,class:"material-design-icon radiobox-marked-icon",role:"img",onClick:a[0]||(a[0]=r=>t.$emit("click",r))}),[(l(),n("svg",{fill:e.fillColor,class:"material-design-icon__svg",width:e.size,height:e.size,viewBox:"0 0 24 24"},[d("path",_e,[e.title?(l(),n("title",ze,p(e.title),1)):s("",!0)])],8,Ve))],16,Se)}const Ie=h(Ae,[["render",Be]]),Te={name:"ToggleSwitchIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Me=["aria-hidden","aria-label"],$e=["fill","width","height"],He={d:"M17,7H7A5,5 0 0,0 2,12A5,5 0 0,0 7,17H17A5,5 0 0,0 22,12A5,5 0 0,0 17,7M17,15A3,3 0 0,1 14,12A3,3 0 0,1 17,9A3,3 0 0,1 20,12A3,3 0 0,1 17,15Z"},Ne={key:0};function Le(t,a,e,o,c,i){return l(),n("span",u(t.$attrs,{"aria-hidden":e.title?null:"true","aria-label":e.title,class:"material-design-icon toggle-switch-icon",role:"img",onClick:a[0]||(a[0]=r=>t.$emit("click",r))}),[(l(),n("svg",{fill:e.fillColor,class:"material-design-icon__svg",width:e.size,height:e.size,viewBox:"0 0 24 24"},[d("path",He,[e.title?(l(),n("title",Ne,p(e.title),1)):s("",!0)])],8,$e))],16,Me)}const Ee=h(Te,[["render",Le]]),Ze={name:"ToggleSwitchOffIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},qe=["aria-hidden","aria-label"],Oe=["fill","width","height"],Re={d:"M17,7H7A5,5 0 0,0 2,12A5,5 0 0,0 7,17H17A5,5 0 0,0 22,12A5,5 0 0,0 17,7M7,15A3,3 0 0,1 4,12A3,3 0 0,1 7,9A3,3 0 0,1 10,12A3,3 0 0,1 7,15Z"},je={key:0};function Ge(t,a,e,o,c,i){return l(),n("span",u(t.$attrs,{"aria-hidden":e.title?null:"true","aria-label":e.title,class:"material-design-icon toggle-switch-off-icon",role:"img",onClick:a[0]||(a[0]=r=>t.$emit("click",r))}),[(l(),n("svg",{fill:e.fillColor,class:"material-design-icon__svg",width:e.size,height:e.size,viewBox:"0 0 24 24"},[d("path",Re,[e.title?(l(),n("title",je,p(e.title),1)):s("",!0)])],8,Oe))],16,qe)}const We=h(Ze,[["render",Ge]]),y="checkbox",b="radio",g="switch",f="button",Pe={name:"NcCheckboxContent",components:{NcLoadingIcon:D},props:{iconClass:{type:[String,Object],default:null},textClass:{type:[String,Object],default:null},type:{type:String,default:"checkbox",validator:t=>[y,b,g,f].includes(t)},buttonVariant:{type:Boolean,default:!1},isChecked:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},iconSize:{type:Number,default:24},labelId:{type:String,required:!0},descriptionId:{type:String,required:!0}},computed:{isButtonType(){return this.type===f},checkboxRadioIconElement(){return this.type===b?this.isChecked?Ie:xe:this.type===g?this.isChecked?Ee:We:this.indeterminate?ye:this.isChecked?ce:ie}}},Ue={key:0,class:"checkbox-content__wrapper"},De=["id"],Fe=["id"];function Je(t,a,e,o,c,i){const r=B("NcLoadingIcon");return l(),n("span",{class:C(["checkbox-content",{["checkbox-content-"+e.type]:!0,"checkbox-content--button-variant":e.buttonVariant,"checkbox-content--has-text":!!t.$slots.default}])},[d("span",{class:C(["checkbox-content__icon",{"checkbox-content__icon--checked":e.isChecked,"checkbox-content__icon--has-description":!i.isButtonType&&t.$slots.description,[e.iconClass]:!0}]),"aria-hidden":!0,inert:""},[m(t.$slots,"icon",{checked:e.isChecked,loading:e.loading},()=>[e.loading?(l(),x(r,{key:0})):e.buttonVariant?s("",!0):(l(),x(z(i.checkboxRadioIconElement),{key:1,size:e.iconSize},null,8,["size"]))],!0)],2),t.$slots.default||t.$slots.description?(l(),n("span",Ue,[t.$slots.default?(l(),n("span",{key:0,id:e.labelId,class:C(["checkbox-content__text",e.textClass])},[m(t.$slots,"default",{},void 0,!0)],10,De)):s("",!0),!i.isButtonType&&t.$slots.description?(l(),n("span",{key:1,id:e.descriptionId,class:"checkbox-content__description"},[m(t.$slots,"description",{},void 0,!0)],8,Fe)):s("",!0)])):s("",!0)],2)}const Ke=h(Pe,[["render",Je],["__scopeId","data-v-a1ac280f"]]);M();const A={name:"NcCheckboxRadioSwitch",components:{NcCheckboxContent:Ke},inheritAttrs:!1,props:{id:{type:String,default:()=>"checkbox-radio-switch-"+v(),validator:t=>t.trim()!==""},wrapperId:{type:String,default:null},name:{type:String,default:null},ariaLabel:{type:String,default:""},type:{type:String,default:"checkbox",validator:t=>[y,b,g,f].includes(t)},buttonVariant:{type:Boolean,default:!1},buttonVariantGrouped:{type:String,default:"no",validator:t=>["no","vertical","horizontal"].includes(t)},modelValue:{type:[Boolean,Array,String],default:!1},value:{type:String,default:null},disabled:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1},required:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},wrapperElement:{type:String,default:null},class:{type:[String,Array,Object],default:""},style:{type:[String,Array,Object],default:""},description:{type:String,default:null}},emits:["update:modelValue"],setup(t,{emit:a}){const e=J();N(()=>e?.value.register(!1));const o=w(()=>e?.value?b:t.type),c=w({get(){return e?.value?e.value.modelValue:t.modelValue},set(i){e?.value?e.value.onUpdate(i):a("update:modelValue",i)}});return{internalType:o,internalModelValue:c,labelId:v(),descriptionId:v()}},computed:{isButtonType(){return this.internalType===f},computedWrapperElement(){return this.isButtonType?"button":this.wrapperElement!==null?this.wrapperElement:"span"},listeners(){return this.isButtonType?{click:this.onToggle}:{change:this.onToggle}},iconSize(){return this.internalType===g?36:20},cssIconSize(){return this.iconSize+"px"},cssIconHeight(){return this.internalType===g?"16px":this.cssIconSize},inputType(){return[y,b,f].includes(this.internalType)?this.internalType:y},isChecked(){return this.value!==null?Array.isArray(this.internalModelValue)?[...this.internalModelValue].indexOf(this.value)>-1:this.internalModelValue===this.value:this.internalModelValue===!0},hasIndeterminate(){return[y,b].includes(this.inputType)}},mounted(){if(this.name&&this.internalType===y&&!Array.isArray(this.internalModelValue))throw new Error("When using groups of checkboxes, the updated value will be an array.");if(this.name&&this.internalType===g)throw new Error("Switches are not made to be used for data sets. Please use checkboxes instead.");if(typeof this.internalModelValue!="boolean"&&this.internalType===g)throw new Error("Switches can only be used with boolean as modelValue prop.")},methods:{t:H,n:$,onToggle(t){if(this.disabled||t.target.tagName.toLowerCase()==="a")return;if(this.internalType===b){this.internalModelValue=this.value;return}if(this.internalType===g){this.internalModelValue=!this.isChecked;return}if(typeof this.internalModelValue=="boolean"){this.internalModelValue=!this.internalModelValue;return}const a=this.getInputsSet().filter(e=>e.checked).map(e=>e.value);a.includes(this.value)?this.internalModelValue=a.filter(e=>e!==this.value):this.internalModelValue=[...a,this.value]},getInputsSet(){return[...document.getElementsByName(this.name)]}}},V=()=>{q(t=>({"65a7082e":t.cssIconSize,"20f7d30f":t.cssIconHeight}))},_=A.setup;A.setup=_?(t,a)=>(V(),_(t,a)):V;const Qe=["id","aria-labelledby","aria-describedby","aria-label","disabled","type","value","checked",".indeterminate","required","name"];function Xe(t,a,e,o,c,i){const r=B("NcCheckboxContent");return l(),x(z(i.computedWrapperElement),u({id:e.wrapperId??(i.isButtonType?e.id:null),"aria-label":i.isButtonType&&e.ariaLabel?e.ariaLabel:void 0,class:["checkbox-radio-switch",[t.$props.class,{["checkbox-radio-switch-"+o.internalType]:o.internalType,"checkbox-radio-switch--checked":i.isChecked,"checkbox-radio-switch--disabled":e.disabled,"checkbox-radio-switch--indeterminate":i.hasIndeterminate?e.indeterminate:!1,"checkbox-radio-switch--button-variant":e.buttonVariant,"checkbox-radio-switch--button-variant-v-grouped":e.buttonVariant&&e.buttonVariantGrouped==="vertical","checkbox-radio-switch--button-variant-h-grouped":e.buttonVariant&&e.buttonVariantGrouped==="horizontal","button-vue":i.isButtonType}]],style:e.style,type:i.isButtonType?"button":null},i.isButtonType?t.$attrs:{},S(i.isButtonType?i.listeners:{})),{default:k(()=>[i.isButtonType?s("",!0):(l(),n("input",u({key:0,id:e.id,"aria-labelledby":!i.isButtonType&&!e.ariaLabel?o.labelId:null,"aria-describedby":!i.isButtonType&&(e.description||t.$slots.description)?o.descriptionId:null,"aria-label":e.ariaLabel||void 0,class:"checkbox-radio-switch__input",disabled:e.disabled,type:i.inputType,value:e.value,checked:i.isChecked,".indeterminate":i.hasIndeterminate?e.indeterminate:null,required:e.required,name:e.name},t.$attrs,S(i.listeners,!0)),null,48,Qe)),L(r,{id:i.isButtonType?void 0:`${e.id}-label`,class:"checkbox-radio-switch__content","icon-class":"checkbox-radio-switch__icon","text-class":"checkbox-radio-switch__text",type:o.internalType,indeterminate:i.hasIndeterminate?e.indeterminate:!1,"button-variant":e.buttonVariant,"is-checked":i.isChecked,loading:e.loading,"label-id":o.labelId,"description-id":o.descriptionId,"icon-size":i.iconSize,onClick:i.onToggle},E({icon:k(()=>[m(t.$slots,"icon",{},void 0,!0)]),_:2},[t.$slots.description||e.description?{name:"description",fn:k(()=>[m(t.$slots,"description",{},()=>[Z(p(e.description),1)],!0)]),key:"0"}:void 0,t.$slots.default?{name:"default",fn:k(()=>[m(t.$slots,"default",{},void 0,!0)]),key:"1"}:void 0]),1032,["id","type","indeterminate","button-variant","is-checked","loading","label-id","description-id","icon-size","onClick"])]),_:3},16,["id","aria-label","class","style","type"])}const ot=h(A,[["render",Xe],["__scopeId","data-v-0dcb138a"]]),Ye={name:"ContentCopyIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},et=["aria-hidden","aria-label"],tt=["fill","width","height"],it={d:"M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"},at={key:0};function lt(t,a,e,o,c,i){return l(),n("span",u(t.$attrs,{"aria-hidden":e.title?null:"true","aria-label":e.title,class:"material-design-icon content-copy-icon",role:"img",onClick:a[0]||(a[0]=r=>t.$emit("click",r))}),[(l(),n("svg",{fill:e.fillColor,class:"material-design-icon__svg",width:e.size,height:e.size,viewBox:"0 0 24 24"},[d("path",it,[e.title?(l(),n("title",at,p(e.title),1)):s("",!0)])],8,tt))],16,et)}const rt=O(Ye,[["render",lt]]);export{rt as I,ot as N,D as a}; -//# sourceMappingURL=ContentCopy-BEfKgtZW.chunk.mjs.map +import{a1 as h,h as I,j as w,v as n,o as l,k as d,m as s,t as p,L as T,ao as M,ar as $,ap as H,c as x,w as k,B as u,as as S,a5 as z,$ as N,an as v,a4 as m,n as C,r as B,a as L,aq as E,b as Z,ai as q,_ as O}from"./TrayArrowDown-DRD7jyjz.chunk.mjs";const R=["aria-label"],j=["width","height"],G=["fill"],W=["fill"],P={key:0},U=I({__name:"NcLoadingIcon",props:{appearance:{default:"auto"},name:{default:""},size:{default:20}},setup(t){const a=t,e=w(()=>{const o=["#777","#CCC"];return a.appearance==="light"?o:a.appearance==="dark"?o.reverse():["var(--color-loading-light)","var(--color-loading-dark)"]});return(o,c)=>(l(),n("span",{"aria-label":o.name,role:"img",class:"material-design-icon loading-icon"},[(l(),n("svg",{width:o.size,height:o.size,viewBox:"0 0 24 24"},[d("path",{fill:e.value[0],d:"M12,4V2A10,10 0 1,0 22,12H20A8,8 0 1,1 12,4Z"},null,8,G),d("path",{fill:e.value[1],d:"M12,4V2A10,10 0 0,1 22,12H20A8,8 0 0,0 12,4Z"},[o.name?(l(),n("title",P,p(o.name),1)):s("",!0)],8,W)],8,j))],8,R))}}),D=h(U,[["__scopeId","data-v-cf399190"]]),F=Symbol.for("insideRadioGroup");function J(){return T(F,void 0)}const K={name:"CheckboxBlankOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Q=["aria-hidden","aria-label"],X=["fill","width","height"],Y={d:"M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3M19,5V19H5V5H19Z"},ee={key:0};function te(t,a,e,o,c,i){return l(),n("span",u(t.$attrs,{"aria-hidden":e.title?null:"true","aria-label":e.title,class:"material-design-icon checkbox-blank-outline-icon",role:"img",onClick:a[0]||(a[0]=r=>t.$emit("click",r))}),[(l(),n("svg",{fill:e.fillColor,class:"material-design-icon__svg",width:e.size,height:e.size,viewBox:"0 0 24 24"},[d("path",Y,[e.title?(l(),n("title",ee,p(e.title),1)):s("",!0)])],8,X))],16,Q)}const ie=h(K,[["render",te]]),ae={name:"CheckboxMarkedIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},le=["aria-hidden","aria-label"],ne=["fill","width","height"],oe={d:"M10,17L5,12L6.41,10.58L10,14.17L17.59,6.58L19,8M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3Z"},re={key:0};function se(t,a,e,o,c,i){return l(),n("span",u(t.$attrs,{"aria-hidden":e.title?null:"true","aria-label":e.title,class:"material-design-icon checkbox-marked-icon",role:"img",onClick:a[0]||(a[0]=r=>t.$emit("click",r))}),[(l(),n("svg",{fill:e.fillColor,class:"material-design-icon__svg",width:e.size,height:e.size,viewBox:"0 0 24 24"},[d("path",oe,[e.title?(l(),n("title",re,p(e.title),1)):s("",!0)])],8,ne))],16,le)}const ce=h(ae,[["render",se]]),de={name:"MinusBoxIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},ue=["aria-hidden","aria-label"],he=["fill","width","height"],pe={d:"M17,13H7V11H17M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3Z"},ge={key:0};function be(t,a,e,o,c,i){return l(),n("span",u(t.$attrs,{"aria-hidden":e.title?null:"true","aria-label":e.title,class:"material-design-icon minus-box-icon",role:"img",onClick:a[0]||(a[0]=r=>t.$emit("click",r))}),[(l(),n("svg",{fill:e.fillColor,class:"material-design-icon__svg",width:e.size,height:e.size,viewBox:"0 0 24 24"},[d("path",pe,[e.title?(l(),n("title",ge,p(e.title),1)):s("",!0)])],8,he))],16,ue)}const ye=h(de,[["render",be]]),me={name:"RadioboxBlankIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},fe=["aria-hidden","aria-label"],ke=["fill","width","height"],ve={d:"M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z"},Ce={key:0};function we(t,a,e,o,c,i){return l(),n("span",u(t.$attrs,{"aria-hidden":e.title?null:"true","aria-label":e.title,class:"material-design-icon radiobox-blank-icon",role:"img",onClick:a[0]||(a[0]=r=>t.$emit("click",r))}),[(l(),n("svg",{fill:e.fillColor,class:"material-design-icon__svg",width:e.size,height:e.size,viewBox:"0 0 24 24"},[d("path",ve,[e.title?(l(),n("title",Ce,p(e.title),1)):s("",!0)])],8,ke))],16,fe)}const xe=h(me,[["render",we]]),Ae={name:"RadioboxMarkedIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Se=["aria-hidden","aria-label"],Ve=["fill","width","height"],_e={d:"M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,7A5,5 0 0,0 7,12A5,5 0 0,0 12,17A5,5 0 0,0 17,12A5,5 0 0,0 12,7Z"},ze={key:0};function Be(t,a,e,o,c,i){return l(),n("span",u(t.$attrs,{"aria-hidden":e.title?null:"true","aria-label":e.title,class:"material-design-icon radiobox-marked-icon",role:"img",onClick:a[0]||(a[0]=r=>t.$emit("click",r))}),[(l(),n("svg",{fill:e.fillColor,class:"material-design-icon__svg",width:e.size,height:e.size,viewBox:"0 0 24 24"},[d("path",_e,[e.title?(l(),n("title",ze,p(e.title),1)):s("",!0)])],8,Ve))],16,Se)}const Ie=h(Ae,[["render",Be]]),Te={name:"ToggleSwitchIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Me=["aria-hidden","aria-label"],$e=["fill","width","height"],He={d:"M17,7H7A5,5 0 0,0 2,12A5,5 0 0,0 7,17H17A5,5 0 0,0 22,12A5,5 0 0,0 17,7M17,15A3,3 0 0,1 14,12A3,3 0 0,1 17,9A3,3 0 0,1 20,12A3,3 0 0,1 17,15Z"},Ne={key:0};function Le(t,a,e,o,c,i){return l(),n("span",u(t.$attrs,{"aria-hidden":e.title?null:"true","aria-label":e.title,class:"material-design-icon toggle-switch-icon",role:"img",onClick:a[0]||(a[0]=r=>t.$emit("click",r))}),[(l(),n("svg",{fill:e.fillColor,class:"material-design-icon__svg",width:e.size,height:e.size,viewBox:"0 0 24 24"},[d("path",He,[e.title?(l(),n("title",Ne,p(e.title),1)):s("",!0)])],8,$e))],16,Me)}const Ee=h(Te,[["render",Le]]),Ze={name:"ToggleSwitchOffIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},qe=["aria-hidden","aria-label"],Oe=["fill","width","height"],Re={d:"M17,7H7A5,5 0 0,0 2,12A5,5 0 0,0 7,17H17A5,5 0 0,0 22,12A5,5 0 0,0 17,7M7,15A3,3 0 0,1 4,12A3,3 0 0,1 7,9A3,3 0 0,1 10,12A3,3 0 0,1 7,15Z"},je={key:0};function Ge(t,a,e,o,c,i){return l(),n("span",u(t.$attrs,{"aria-hidden":e.title?null:"true","aria-label":e.title,class:"material-design-icon toggle-switch-off-icon",role:"img",onClick:a[0]||(a[0]=r=>t.$emit("click",r))}),[(l(),n("svg",{fill:e.fillColor,class:"material-design-icon__svg",width:e.size,height:e.size,viewBox:"0 0 24 24"},[d("path",Re,[e.title?(l(),n("title",je,p(e.title),1)):s("",!0)])],8,Oe))],16,qe)}const We=h(Ze,[["render",Ge]]),y="checkbox",b="radio",g="switch",f="button",Pe={name:"NcCheckboxContent",components:{NcLoadingIcon:D},props:{iconClass:{type:[String,Object],default:null},textClass:{type:[String,Object],default:null},type:{type:String,default:"checkbox",validator:t=>[y,b,g,f].includes(t)},buttonVariant:{type:Boolean,default:!1},isChecked:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},iconSize:{type:Number,default:24},labelId:{type:String,required:!0},descriptionId:{type:String,required:!0}},computed:{isButtonType(){return this.type===f},checkboxRadioIconElement(){return this.type===b?this.isChecked?Ie:xe:this.type===g?this.isChecked?Ee:We:this.indeterminate?ye:this.isChecked?ce:ie}}},Ue={key:0,class:"checkbox-content__wrapper"},De=["id"],Fe=["id"];function Je(t,a,e,o,c,i){const r=B("NcLoadingIcon");return l(),n("span",{class:C(["checkbox-content",{["checkbox-content-"+e.type]:!0,"checkbox-content--button-variant":e.buttonVariant,"checkbox-content--has-text":!!t.$slots.default}])},[d("span",{class:C(["checkbox-content__icon",{"checkbox-content__icon--checked":e.isChecked,"checkbox-content__icon--has-description":!i.isButtonType&&t.$slots.description,[e.iconClass]:!0}]),"aria-hidden":!0,inert:""},[m(t.$slots,"icon",{checked:e.isChecked,loading:e.loading},()=>[e.loading?(l(),x(r,{key:0})):e.buttonVariant?s("",!0):(l(),x(z(i.checkboxRadioIconElement),{key:1,size:e.iconSize},null,8,["size"]))],!0)],2),t.$slots.default||t.$slots.description?(l(),n("span",Ue,[t.$slots.default?(l(),n("span",{key:0,id:e.labelId,class:C(["checkbox-content__text",e.textClass])},[m(t.$slots,"default",{},void 0,!0)],10,De)):s("",!0),!i.isButtonType&&t.$slots.description?(l(),n("span",{key:1,id:e.descriptionId,class:"checkbox-content__description"},[m(t.$slots,"description",{},void 0,!0)],8,Fe)):s("",!0)])):s("",!0)],2)}const Ke=h(Pe,[["render",Je],["__scopeId","data-v-a1ac280f"]]);M();const A={name:"NcCheckboxRadioSwitch",components:{NcCheckboxContent:Ke},inheritAttrs:!1,props:{id:{type:String,default:()=>"checkbox-radio-switch-"+v(),validator:t=>t.trim()!==""},wrapperId:{type:String,default:null},name:{type:String,default:null},ariaLabel:{type:String,default:""},type:{type:String,default:"checkbox",validator:t=>[y,b,g,f].includes(t)},buttonVariant:{type:Boolean,default:!1},buttonVariantGrouped:{type:String,default:"no",validator:t=>["no","vertical","horizontal"].includes(t)},modelValue:{type:[Boolean,Array,String],default:!1},value:{type:String,default:null},disabled:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1},required:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},wrapperElement:{type:String,default:null},class:{type:[String,Array,Object],default:""},style:{type:[String,Array,Object],default:""},description:{type:String,default:null}},emits:["update:modelValue"],setup(t,{emit:a}){const e=J();N(()=>e?.value.register(!1));const o=w(()=>e?.value?b:t.type),c=w({get(){return e?.value?e.value.modelValue:t.modelValue},set(i){e?.value?e.value.onUpdate(i):a("update:modelValue",i)}});return{internalType:o,internalModelValue:c,labelId:v(),descriptionId:v()}},computed:{isButtonType(){return this.internalType===f},computedWrapperElement(){return this.isButtonType?"button":this.wrapperElement!==null?this.wrapperElement:"span"},listeners(){return this.isButtonType?{click:this.onToggle}:{change:this.onToggle}},iconSize(){return this.internalType===g?36:20},cssIconSize(){return this.iconSize+"px"},cssIconHeight(){return this.internalType===g?"16px":this.cssIconSize},inputType(){return[y,b,f].includes(this.internalType)?this.internalType:y},isChecked(){return this.value!==null?Array.isArray(this.internalModelValue)?[...this.internalModelValue].indexOf(this.value)>-1:this.internalModelValue===this.value:this.internalModelValue===!0},hasIndeterminate(){return[y,b].includes(this.inputType)}},mounted(){if(this.name&&this.internalType===y&&!Array.isArray(this.internalModelValue))throw new Error("When using groups of checkboxes, the updated value will be an array.");if(this.name&&this.internalType===g)throw new Error("Switches are not made to be used for data sets. Please use checkboxes instead.");if(typeof this.internalModelValue!="boolean"&&this.internalType===g)throw new Error("Switches can only be used with boolean as modelValue prop.")},methods:{t:H,n:$,onToggle(t){if(this.disabled||t.target.tagName.toLowerCase()==="a")return;if(this.internalType===b){this.internalModelValue=this.value;return}if(this.internalType===g){this.internalModelValue=!this.isChecked;return}if(typeof this.internalModelValue=="boolean"){this.internalModelValue=!this.internalModelValue;return}const a=this.getInputsSet().filter(e=>e.checked).map(e=>e.value);a.includes(this.value)?this.internalModelValue=a.filter(e=>e!==this.value):this.internalModelValue=[...a,this.value]},getInputsSet(){return[...document.getElementsByName(this.name)]}}},V=()=>{q(t=>({"65a7082e":t.cssIconSize,"20f7d30f":t.cssIconHeight}))},_=A.setup;A.setup=_?(t,a)=>(V(),_(t,a)):V;const Qe=["id","aria-labelledby","aria-describedby","aria-label","disabled","type","value","checked",".indeterminate","required","name"];function Xe(t,a,e,o,c,i){const r=B("NcCheckboxContent");return l(),x(z(i.computedWrapperElement),u({id:e.wrapperId??(i.isButtonType?e.id:null),"aria-label":i.isButtonType&&e.ariaLabel?e.ariaLabel:void 0,class:["checkbox-radio-switch",[t.$props.class,{["checkbox-radio-switch-"+o.internalType]:o.internalType,"checkbox-radio-switch--checked":i.isChecked,"checkbox-radio-switch--disabled":e.disabled,"checkbox-radio-switch--indeterminate":i.hasIndeterminate?e.indeterminate:!1,"checkbox-radio-switch--button-variant":e.buttonVariant,"checkbox-radio-switch--button-variant-v-grouped":e.buttonVariant&&e.buttonVariantGrouped==="vertical","checkbox-radio-switch--button-variant-h-grouped":e.buttonVariant&&e.buttonVariantGrouped==="horizontal","button-vue":i.isButtonType}]],style:e.style,type:i.isButtonType?"button":null},i.isButtonType?t.$attrs:{},S(i.isButtonType?i.listeners:{})),{default:k(()=>[i.isButtonType?s("",!0):(l(),n("input",u({key:0,id:e.id,"aria-labelledby":!i.isButtonType&&!e.ariaLabel?o.labelId:null,"aria-describedby":!i.isButtonType&&(e.description||t.$slots.description)?o.descriptionId:null,"aria-label":e.ariaLabel||void 0,class:"checkbox-radio-switch__input",disabled:e.disabled,type:i.inputType,value:e.value,checked:i.isChecked,".indeterminate":i.hasIndeterminate?e.indeterminate:null,required:e.required,name:e.name},t.$attrs,S(i.listeners,!0)),null,48,Qe)),L(r,{id:i.isButtonType?void 0:`${e.id}-label`,class:"checkbox-radio-switch__content","icon-class":"checkbox-radio-switch__icon","text-class":"checkbox-radio-switch__text",type:o.internalType,indeterminate:i.hasIndeterminate?e.indeterminate:!1,"button-variant":e.buttonVariant,"is-checked":i.isChecked,loading:e.loading,"label-id":o.labelId,"description-id":o.descriptionId,"icon-size":i.iconSize,onClick:i.onToggle},E({icon:k(()=>[m(t.$slots,"icon",{},void 0,!0)]),_:2},[t.$slots.description||e.description?{name:"description",fn:k(()=>[m(t.$slots,"description",{},()=>[Z(p(e.description),1)],!0)]),key:"0"}:void 0,t.$slots.default?{name:"default",fn:k(()=>[m(t.$slots,"default",{},void 0,!0)]),key:"1"}:void 0]),1032,["id","type","indeterminate","button-variant","is-checked","loading","label-id","description-id","icon-size","onClick"])]),_:3},16,["id","aria-label","class","style","type"])}const ot=h(A,[["render",Xe],["__scopeId","data-v-0dcb138a"]]),Ye={name:"ContentCopyIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},et=["aria-hidden","aria-label"],tt=["fill","width","height"],it={d:"M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"},at={key:0};function lt(t,a,e,o,c,i){return l(),n("span",u(t.$attrs,{"aria-hidden":e.title?null:"true","aria-label":e.title,class:"material-design-icon content-copy-icon",role:"img",onClick:a[0]||(a[0]=r=>t.$emit("click",r))}),[(l(),n("svg",{fill:e.fillColor,class:"material-design-icon__svg",width:e.size,height:e.size,viewBox:"0 0 24 24"},[d("path",it,[e.title?(l(),n("title",at,p(e.title),1)):s("",!0)])],8,tt))],16,et)}const rt=O(Ye,[["render",lt]]);export{rt as I,ot as N,D as a}; +//# sourceMappingURL=ContentCopy-DUGe9ppe.chunk.mjs.map diff --git a/dist/ContentCopy-BEfKgtZW.chunk.mjs.license b/dist/ContentCopy-DUGe9ppe.chunk.mjs.license similarity index 100% rename from dist/ContentCopy-BEfKgtZW.chunk.mjs.license rename to dist/ContentCopy-DUGe9ppe.chunk.mjs.license diff --git a/dist/ContentCopy-BEfKgtZW.chunk.mjs.map b/dist/ContentCopy-DUGe9ppe.chunk.mjs.map similarity index 99% rename from dist/ContentCopy-BEfKgtZW.chunk.mjs.map rename to dist/ContentCopy-DUGe9ppe.chunk.mjs.map index 49ef2cd8259a8..6c7ad7fbd3a05 100644 --- a/dist/ContentCopy-BEfKgtZW.chunk.mjs.map +++ b/dist/ContentCopy-DUGe9ppe.chunk.mjs.map @@ -1 +1 @@ -{"version":3,"file":"ContentCopy-BEfKgtZW.chunk.mjs","sources":["../node_modules/@nextcloud/vue/dist/chunks/NcLoadingIcon-b_ajZ_nQ.mjs","../node_modules/@nextcloud/vue/dist/chunks/useNcRadioGroup-DaZbEKbf.mjs","../node_modules/@nextcloud/vue/dist/chunks/NcCheckboxRadioSwitch-BCSKF7Tk.mjs","../node_modules/vue-material-design-icons/ContentCopy.vue"],"sourcesContent":["import '../assets/NcLoadingIcon-CWUlo4XY.css';\nimport { defineComponent, computed, createElementBlock, openBlock, createElementVNode, createCommentVNode, toDisplayString } from \"vue\";\nimport { _ as _export_sfc } from \"./_plugin-vue_export-helper-1tPrXgE0.mjs\";\nconst _hoisted_1 = [\"aria-label\"];\nconst _hoisted_2 = [\"width\", \"height\"];\nconst _hoisted_3 = [\"fill\"];\nconst _hoisted_4 = [\"fill\"];\nconst _hoisted_5 = { key: 0 };\nconst _sfc_main = /* @__PURE__ */ defineComponent({\n __name: \"NcLoadingIcon\",\n props: {\n appearance: { default: \"auto\" },\n name: { default: \"\" },\n size: { default: 20 }\n },\n setup(__props) {\n const props = __props;\n const colors = computed(() => {\n const colors2 = [\"#777\", \"#CCC\"];\n if (props.appearance === \"light\") {\n return colors2;\n } else if (props.appearance === \"dark\") {\n return colors2.reverse();\n }\n return [\"var(--color-loading-light)\", \"var(--color-loading-dark)\"];\n });\n return (_ctx, _cache) => {\n return openBlock(), createElementBlock(\"span\", {\n \"aria-label\": _ctx.name,\n role: \"img\",\n class: \"material-design-icon loading-icon\"\n }, [\n (openBlock(), createElementBlock(\"svg\", {\n width: _ctx.size,\n height: _ctx.size,\n viewBox: \"0 0 24 24\"\n }, [\n createElementVNode(\"path\", {\n fill: colors.value[0],\n d: \"M12,4V2A10,10 0 1,0 22,12H20A8,8 0 1,1 12,4Z\"\n }, null, 8, _hoisted_3),\n createElementVNode(\"path\", {\n fill: colors.value[1],\n d: \"M12,4V2A10,10 0 0,1 22,12H20A8,8 0 0,0 12,4Z\"\n }, [\n _ctx.name ? (openBlock(), createElementBlock(\"title\", _hoisted_5, toDisplayString(_ctx.name), 1)) : createCommentVNode(\"\", true)\n ], 8, _hoisted_4)\n ], 8, _hoisted_2))\n ], 8, _hoisted_1);\n };\n }\n});\nconst NcLoadingIcon = /* @__PURE__ */ _export_sfc(_sfc_main, [[\"__scopeId\", \"data-v-cf399190\"]]);\nexport {\n NcLoadingIcon as N\n};\n//# sourceMappingURL=NcLoadingIcon-b_ajZ_nQ.mjs.map\n","import { inject } from \"vue\";\n/*!\n * SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\nconst INSIDE_RADIO_GROUP_KEY = Symbol.for(\"insideRadioGroup\");\nfunction useInsideRadioGroup() {\n return inject(INSIDE_RADIO_GROUP_KEY, void 0);\n}\nexport {\n INSIDE_RADIO_GROUP_KEY as I,\n useInsideRadioGroup as u\n};\n//# sourceMappingURL=useNcRadioGroup-DaZbEKbf.mjs.map\n","import '../assets/NcCheckboxRadioSwitch-C_70VMQr.css';\nimport { createElementBlock, openBlock, mergeProps, createElementVNode, createCommentVNode, toDisplayString, resolveComponent, normalizeClass, renderSlot, createBlock, resolveDynamicComponent, toHandlers, withCtx, createVNode, createSlots, createTextVNode, onMounted, computed, useCssVars } from \"vue\";\nimport { _ as _export_sfc } from \"./_plugin-vue_export-helper-1tPrXgE0.mjs\";\nimport { N as NcLoadingIcon } from \"./NcLoadingIcon-b_ajZ_nQ.mjs\";\nimport { r as register, q as n, a as t } from \"./_l10n-DrTiip5c.mjs\";\nimport { c as createElementId } from \"./createElementId-DhjFt1I9.mjs\";\nimport { u as useInsideRadioGroup } from \"./useNcRadioGroup-DaZbEKbf.mjs\";\nconst _sfc_main$8 = {\n name: \"CheckboxBlankOutlineIcon\",\n emits: [\"click\"],\n props: {\n title: {\n type: String\n },\n fillColor: {\n type: String,\n default: \"currentColor\"\n },\n size: {\n type: Number,\n default: 24\n }\n }\n};\nconst _hoisted_1$8 = [\"aria-hidden\", \"aria-label\"];\nconst _hoisted_2$7 = [\"fill\", \"width\", \"height\"];\nconst _hoisted_3$7 = { d: \"M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3M19,5V19H5V5H19Z\" };\nconst _hoisted_4$6 = { key: 0 };\nfunction _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {\n return openBlock(), createElementBlock(\"span\", mergeProps(_ctx.$attrs, {\n \"aria-hidden\": $props.title ? null : \"true\",\n \"aria-label\": $props.title,\n class: \"material-design-icon checkbox-blank-outline-icon\",\n role: \"img\",\n onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit(\"click\", $event))\n }), [\n (openBlock(), createElementBlock(\"svg\", {\n fill: $props.fillColor,\n class: \"material-design-icon__svg\",\n width: $props.size,\n height: $props.size,\n viewBox: \"0 0 24 24\"\n }, [\n createElementVNode(\"path\", _hoisted_3$7, [\n $props.title ? (openBlock(), createElementBlock(\"title\", _hoisted_4$6, toDisplayString($props.title), 1)) : createCommentVNode(\"\", true)\n ])\n ], 8, _hoisted_2$7))\n ], 16, _hoisted_1$8);\n}\nconst CheckboxBlankOutline = /* @__PURE__ */ _export_sfc(_sfc_main$8, [[\"render\", _sfc_render$8]]);\nconst _sfc_main$7 = {\n name: \"CheckboxMarkedIcon\",\n emits: [\"click\"],\n props: {\n title: {\n type: String\n },\n fillColor: {\n type: String,\n default: \"currentColor\"\n },\n size: {\n type: Number,\n default: 24\n }\n }\n};\nconst _hoisted_1$7 = [\"aria-hidden\", \"aria-label\"];\nconst _hoisted_2$6 = [\"fill\", \"width\", \"height\"];\nconst _hoisted_3$6 = { d: \"M10,17L5,12L6.41,10.58L10,14.17L17.59,6.58L19,8M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3Z\" };\nconst _hoisted_4$5 = { key: 0 };\nfunction _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {\n return openBlock(), createElementBlock(\"span\", mergeProps(_ctx.$attrs, {\n \"aria-hidden\": $props.title ? null : \"true\",\n \"aria-label\": $props.title,\n class: \"material-design-icon checkbox-marked-icon\",\n role: \"img\",\n onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit(\"click\", $event))\n }), [\n (openBlock(), createElementBlock(\"svg\", {\n fill: $props.fillColor,\n class: \"material-design-icon__svg\",\n width: $props.size,\n height: $props.size,\n viewBox: \"0 0 24 24\"\n }, [\n createElementVNode(\"path\", _hoisted_3$6, [\n $props.title ? (openBlock(), createElementBlock(\"title\", _hoisted_4$5, toDisplayString($props.title), 1)) : createCommentVNode(\"\", true)\n ])\n ], 8, _hoisted_2$6))\n ], 16, _hoisted_1$7);\n}\nconst CheckboxMarked = /* @__PURE__ */ _export_sfc(_sfc_main$7, [[\"render\", _sfc_render$7]]);\nconst _sfc_main$6 = {\n name: \"MinusBoxIcon\",\n emits: [\"click\"],\n props: {\n title: {\n type: String\n },\n fillColor: {\n type: String,\n default: \"currentColor\"\n },\n size: {\n type: Number,\n default: 24\n }\n }\n};\nconst _hoisted_1$6 = [\"aria-hidden\", \"aria-label\"];\nconst _hoisted_2$5 = [\"fill\", \"width\", \"height\"];\nconst _hoisted_3$5 = { d: \"M17,13H7V11H17M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3Z\" };\nconst _hoisted_4$4 = { key: 0 };\nfunction _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {\n return openBlock(), createElementBlock(\"span\", mergeProps(_ctx.$attrs, {\n \"aria-hidden\": $props.title ? null : \"true\",\n \"aria-label\": $props.title,\n class: \"material-design-icon minus-box-icon\",\n role: \"img\",\n onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit(\"click\", $event))\n }), [\n (openBlock(), createElementBlock(\"svg\", {\n fill: $props.fillColor,\n class: \"material-design-icon__svg\",\n width: $props.size,\n height: $props.size,\n viewBox: \"0 0 24 24\"\n }, [\n createElementVNode(\"path\", _hoisted_3$5, [\n $props.title ? (openBlock(), createElementBlock(\"title\", _hoisted_4$4, toDisplayString($props.title), 1)) : createCommentVNode(\"\", true)\n ])\n ], 8, _hoisted_2$5))\n ], 16, _hoisted_1$6);\n}\nconst MinusBox = /* @__PURE__ */ _export_sfc(_sfc_main$6, [[\"render\", _sfc_render$6]]);\nconst _sfc_main$5 = {\n name: \"RadioboxBlankIcon\",\n emits: [\"click\"],\n props: {\n title: {\n type: String\n },\n fillColor: {\n type: String,\n default: \"currentColor\"\n },\n size: {\n type: Number,\n default: 24\n }\n }\n};\nconst _hoisted_1$5 = [\"aria-hidden\", \"aria-label\"];\nconst _hoisted_2$4 = [\"fill\", \"width\", \"height\"];\nconst _hoisted_3$4 = { d: \"M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z\" };\nconst _hoisted_4$3 = { key: 0 };\nfunction _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {\n return openBlock(), createElementBlock(\"span\", mergeProps(_ctx.$attrs, {\n \"aria-hidden\": $props.title ? null : \"true\",\n \"aria-label\": $props.title,\n class: \"material-design-icon radiobox-blank-icon\",\n role: \"img\",\n onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit(\"click\", $event))\n }), [\n (openBlock(), createElementBlock(\"svg\", {\n fill: $props.fillColor,\n class: \"material-design-icon__svg\",\n width: $props.size,\n height: $props.size,\n viewBox: \"0 0 24 24\"\n }, [\n createElementVNode(\"path\", _hoisted_3$4, [\n $props.title ? (openBlock(), createElementBlock(\"title\", _hoisted_4$3, toDisplayString($props.title), 1)) : createCommentVNode(\"\", true)\n ])\n ], 8, _hoisted_2$4))\n ], 16, _hoisted_1$5);\n}\nconst RadioboxBlank = /* @__PURE__ */ _export_sfc(_sfc_main$5, [[\"render\", _sfc_render$5]]);\nconst _sfc_main$4 = {\n name: \"RadioboxMarkedIcon\",\n emits: [\"click\"],\n props: {\n title: {\n type: String\n },\n fillColor: {\n type: String,\n default: \"currentColor\"\n },\n size: {\n type: Number,\n default: 24\n }\n }\n};\nconst _hoisted_1$4 = [\"aria-hidden\", \"aria-label\"];\nconst _hoisted_2$3 = [\"fill\", \"width\", \"height\"];\nconst _hoisted_3$3 = { d: \"M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,7A5,5 0 0,0 7,12A5,5 0 0,0 12,17A5,5 0 0,0 17,12A5,5 0 0,0 12,7Z\" };\nconst _hoisted_4$2 = { key: 0 };\nfunction _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {\n return openBlock(), createElementBlock(\"span\", mergeProps(_ctx.$attrs, {\n \"aria-hidden\": $props.title ? null : \"true\",\n \"aria-label\": $props.title,\n class: \"material-design-icon radiobox-marked-icon\",\n role: \"img\",\n onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit(\"click\", $event))\n }), [\n (openBlock(), createElementBlock(\"svg\", {\n fill: $props.fillColor,\n class: \"material-design-icon__svg\",\n width: $props.size,\n height: $props.size,\n viewBox: \"0 0 24 24\"\n }, [\n createElementVNode(\"path\", _hoisted_3$3, [\n $props.title ? (openBlock(), createElementBlock(\"title\", _hoisted_4$2, toDisplayString($props.title), 1)) : createCommentVNode(\"\", true)\n ])\n ], 8, _hoisted_2$3))\n ], 16, _hoisted_1$4);\n}\nconst RadioboxMarked = /* @__PURE__ */ _export_sfc(_sfc_main$4, [[\"render\", _sfc_render$4]]);\nconst _sfc_main$3 = {\n name: \"ToggleSwitchIcon\",\n emits: [\"click\"],\n props: {\n title: {\n type: String\n },\n fillColor: {\n type: String,\n default: \"currentColor\"\n },\n size: {\n type: Number,\n default: 24\n }\n }\n};\nconst _hoisted_1$3 = [\"aria-hidden\", \"aria-label\"];\nconst _hoisted_2$2 = [\"fill\", \"width\", \"height\"];\nconst _hoisted_3$2 = { d: \"M17,7H7A5,5 0 0,0 2,12A5,5 0 0,0 7,17H17A5,5 0 0,0 22,12A5,5 0 0,0 17,7M17,15A3,3 0 0,1 14,12A3,3 0 0,1 17,9A3,3 0 0,1 20,12A3,3 0 0,1 17,15Z\" };\nconst _hoisted_4$1 = { key: 0 };\nfunction _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {\n return openBlock(), createElementBlock(\"span\", mergeProps(_ctx.$attrs, {\n \"aria-hidden\": $props.title ? null : \"true\",\n \"aria-label\": $props.title,\n class: \"material-design-icon toggle-switch-icon\",\n role: \"img\",\n onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit(\"click\", $event))\n }), [\n (openBlock(), createElementBlock(\"svg\", {\n fill: $props.fillColor,\n class: \"material-design-icon__svg\",\n width: $props.size,\n height: $props.size,\n viewBox: \"0 0 24 24\"\n }, [\n createElementVNode(\"path\", _hoisted_3$2, [\n $props.title ? (openBlock(), createElementBlock(\"title\", _hoisted_4$1, toDisplayString($props.title), 1)) : createCommentVNode(\"\", true)\n ])\n ], 8, _hoisted_2$2))\n ], 16, _hoisted_1$3);\n}\nconst ToggleSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$3, [[\"render\", _sfc_render$3]]);\nconst _sfc_main$2 = {\n name: \"ToggleSwitchOffIcon\",\n emits: [\"click\"],\n props: {\n title: {\n type: String\n },\n fillColor: {\n type: String,\n default: \"currentColor\"\n },\n size: {\n type: Number,\n default: 24\n }\n }\n};\nconst _hoisted_1$2 = [\"aria-hidden\", \"aria-label\"];\nconst _hoisted_2$1 = [\"fill\", \"width\", \"height\"];\nconst _hoisted_3$1 = { d: \"M17,7H7A5,5 0 0,0 2,12A5,5 0 0,0 7,17H17A5,5 0 0,0 22,12A5,5 0 0,0 17,7M7,15A3,3 0 0,1 4,12A3,3 0 0,1 7,9A3,3 0 0,1 10,12A3,3 0 0,1 7,15Z\" };\nconst _hoisted_4 = { key: 0 };\nfunction _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {\n return openBlock(), createElementBlock(\"span\", mergeProps(_ctx.$attrs, {\n \"aria-hidden\": $props.title ? null : \"true\",\n \"aria-label\": $props.title,\n class: \"material-design-icon toggle-switch-off-icon\",\n role: \"img\",\n onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit(\"click\", $event))\n }), [\n (openBlock(), createElementBlock(\"svg\", {\n fill: $props.fillColor,\n class: \"material-design-icon__svg\",\n width: $props.size,\n height: $props.size,\n viewBox: \"0 0 24 24\"\n }, [\n createElementVNode(\"path\", _hoisted_3$1, [\n $props.title ? (openBlock(), createElementBlock(\"title\", _hoisted_4, toDisplayString($props.title), 1)) : createCommentVNode(\"\", true)\n ])\n ], 8, _hoisted_2$1))\n ], 16, _hoisted_1$2);\n}\nconst ToggleSwitchOff = /* @__PURE__ */ _export_sfc(_sfc_main$2, [[\"render\", _sfc_render$2]]);\nconst TYPE_CHECKBOX = \"checkbox\";\nconst TYPE_RADIO = \"radio\";\nconst TYPE_SWITCH = \"switch\";\nconst TYPE_BUTTON = \"button\";\nconst _sfc_main$1 = {\n name: \"NcCheckboxContent\",\n components: {\n NcLoadingIcon\n },\n props: {\n /**\n * Class for the icon element\n */\n iconClass: {\n type: [String, Object],\n default: null\n },\n /**\n * Class for the text element\n */\n textClass: {\n type: [String, Object],\n default: null\n },\n /**\n * Type of the input. checkbox, radio, switch, or button.\n *\n * Only use button when used in a `tablist` container and the\n * `tab` role is set.\n *\n * @type {'checkbox'|'radio'|'switch'|'button'}\n */\n type: {\n type: String,\n default: \"checkbox\",\n validator: (type) => [\n TYPE_CHECKBOX,\n TYPE_RADIO,\n TYPE_SWITCH,\n TYPE_BUTTON\n ].includes(type)\n },\n /**\n * Toggle the alternative button style\n */\n buttonVariant: {\n type: Boolean,\n default: false\n },\n /**\n * True if the entry is checked\n */\n isChecked: {\n type: Boolean,\n default: false\n },\n /**\n * Indeterminate state\n */\n indeterminate: {\n type: Boolean,\n default: false\n },\n /**\n * Loading state\n */\n loading: {\n type: Boolean,\n default: false\n },\n /**\n * Icon size\n */\n iconSize: {\n type: Number,\n default: 24\n },\n /**\n * Label id attribute\n */\n labelId: {\n type: String,\n required: true\n },\n /**\n * Description id attribute\n */\n descriptionId: {\n type: String,\n required: true\n }\n },\n computed: {\n isButtonType() {\n return this.type === TYPE_BUTTON;\n },\n /**\n * Returns the proper Material icon depending on the select case\n *\n * @return {object}\n */\n checkboxRadioIconElement() {\n if (this.type === TYPE_RADIO) {\n if (this.isChecked) {\n return RadioboxMarked;\n }\n return RadioboxBlank;\n }\n if (this.type === TYPE_SWITCH) {\n if (this.isChecked) {\n return ToggleSwitch;\n }\n return ToggleSwitchOff;\n }\n if (this.indeterminate) {\n return MinusBox;\n }\n if (this.isChecked) {\n return CheckboxMarked;\n }\n return CheckboxBlankOutline;\n }\n }\n};\nconst _hoisted_1$1 = {\n key: 0,\n class: \"checkbox-content__wrapper\"\n};\nconst _hoisted_2 = [\"id\"];\nconst _hoisted_3 = [\"id\"];\nfunction _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {\n const _component_NcLoadingIcon = resolveComponent(\"NcLoadingIcon\");\n return openBlock(), createElementBlock(\"span\", {\n class: normalizeClass([\"checkbox-content\", {\n [\"checkbox-content-\" + $props.type]: true,\n \"checkbox-content--button-variant\": $props.buttonVariant,\n \"checkbox-content--has-text\": !!_ctx.$slots.default\n }])\n }, [\n createElementVNode(\"span\", {\n class: normalizeClass([\"checkbox-content__icon\", {\n \"checkbox-content__icon--checked\": $props.isChecked,\n \"checkbox-content__icon--has-description\": !$options.isButtonType && _ctx.$slots.description,\n [$props.iconClass]: true\n }]),\n \"aria-hidden\": true,\n inert: \"\"\n }, [\n renderSlot(_ctx.$slots, \"icon\", {\n checked: $props.isChecked,\n loading: $props.loading\n }, () => [\n $props.loading ? (openBlock(), createBlock(_component_NcLoadingIcon, { key: 0 })) : !$props.buttonVariant ? (openBlock(), createBlock(resolveDynamicComponent($options.checkboxRadioIconElement), {\n key: 1,\n size: $props.iconSize\n }, null, 8, [\"size\"])) : createCommentVNode(\"\", true)\n ], true)\n ], 2),\n _ctx.$slots.default || _ctx.$slots.description ? (openBlock(), createElementBlock(\"span\", _hoisted_1$1, [\n _ctx.$slots.default ? (openBlock(), createElementBlock(\"span\", {\n key: 0,\n id: $props.labelId,\n class: normalizeClass([\"checkbox-content__text\", $props.textClass])\n }, [\n renderSlot(_ctx.$slots, \"default\", {}, void 0, true)\n ], 10, _hoisted_2)) : createCommentVNode(\"\", true),\n !$options.isButtonType && _ctx.$slots.description ? (openBlock(), createElementBlock(\"span\", {\n key: 1,\n id: $props.descriptionId,\n class: \"checkbox-content__description\"\n }, [\n renderSlot(_ctx.$slots, \"description\", {}, void 0, true)\n ], 8, _hoisted_3)) : createCommentVNode(\"\", true)\n ])) : createCommentVNode(\"\", true)\n ], 2);\n}\nconst NcCheckboxContent = /* @__PURE__ */ _export_sfc(_sfc_main$1, [[\"render\", _sfc_render$1], [\"__scopeId\", \"data-v-a1ac280f\"]]);\nregister();\nconst _sfc_main = {\n name: \"NcCheckboxRadioSwitch\",\n components: {\n NcCheckboxContent\n },\n // We need to pass attributes to the input element\n inheritAttrs: false,\n props: {\n /**\n * Unique id attribute of the input\n */\n id: {\n type: String,\n default: () => \"checkbox-radio-switch-\" + createElementId(),\n validator: (id) => id.trim() !== \"\"\n },\n /**\n * Unique id attribute of the wrapper element\n */\n wrapperId: {\n type: String,\n default: null\n },\n /**\n * Input name. Required for radio, optional for checkbox, and ignored\n * for button.\n */\n name: {\n type: String,\n default: null\n },\n /**\n * Required if no text is set.\n * The aria-label is forwarded to the input or button.\n */\n ariaLabel: {\n type: String,\n default: \"\"\n },\n /**\n * Type of the input. checkbox, radio, switch, or button.\n *\n * Only use button when used in a `tablist` container and the\n * `tab` role is set.\n *\n * @type {'checkbox'|'radio'|'switch'|'button'}\n */\n type: {\n type: String,\n default: \"checkbox\",\n validator: (type) => [\n TYPE_CHECKBOX,\n TYPE_RADIO,\n TYPE_SWITCH,\n TYPE_BUTTON\n ].includes(type)\n },\n /**\n * Toggle the alternative button style\n *\n * @deprecated - Use `NcRadioGroup` instead\n */\n buttonVariant: {\n type: Boolean,\n default: false\n },\n /**\n * Are the elements are all direct siblings?\n * If so they will be grouped horizontally or vertically\n *\n * @type {'no'|'horizontal'|'vertical'}\n * @deprecated - Use `NcRadioGroup` instead\n */\n buttonVariantGrouped: {\n type: String,\n default: \"no\",\n validator: (v) => [\"no\", \"vertical\", \"horizontal\"].includes(v)\n },\n /**\n * Checked state. To be used with `v-model:value`\n */\n modelValue: {\n type: [Boolean, Array, String],\n default: false\n },\n /**\n * Value to be synced on check\n */\n value: {\n type: String,\n default: null\n },\n /**\n * Disabled state\n */\n disabled: {\n type: Boolean,\n default: false\n },\n /**\n * Indeterminate state\n */\n indeterminate: {\n type: Boolean,\n default: false\n },\n /**\n * Required state\n */\n required: {\n type: Boolean,\n default: false\n },\n /**\n * Loading state\n */\n loading: {\n type: Boolean,\n default: false\n },\n /**\n * Wrapping element tag\n *\n * When `type` is set to `button` this will be ignored\n *\n * Defaults to `span`\n */\n wrapperElement: {\n type: String,\n default: null\n },\n /**\n * The class(es) to pass to the wrapper / root element of the component\n */\n class: {\n type: [String, Array, Object],\n default: \"\"\n },\n /**\n * The style to pass to the wrapper / root element of the component\n */\n style: {\n type: [String, Array, Object],\n default: \"\"\n },\n /**\n * Description\n *\n * This is unsupported when using button has type.\n */\n description: {\n type: String,\n default: null\n }\n },\n emits: [\"update:modelValue\"],\n setup(props, { emit }) {\n const radioGroup = useInsideRadioGroup();\n onMounted(() => radioGroup?.value.register(false));\n const internalType = computed(() => radioGroup?.value ? TYPE_RADIO : props.type);\n const internalModelValue = computed({\n get() {\n if (radioGroup?.value) {\n return radioGroup.value.modelValue;\n }\n return props.modelValue;\n },\n set(value) {\n if (radioGroup?.value) {\n radioGroup.value.onUpdate(value);\n } else {\n emit(\"update:modelValue\", value);\n }\n }\n });\n return {\n internalType,\n internalModelValue,\n labelId: createElementId(),\n descriptionId: createElementId()\n };\n },\n computed: {\n isButtonType() {\n return this.internalType === TYPE_BUTTON;\n },\n computedWrapperElement() {\n if (this.isButtonType) {\n return \"button\";\n }\n if (this.wrapperElement !== null) {\n return this.wrapperElement;\n }\n return \"span\";\n },\n listeners() {\n if (this.isButtonType) {\n return {\n click: this.onToggle\n };\n }\n return {\n change: this.onToggle\n };\n },\n iconSize() {\n return this.internalType === TYPE_SWITCH ? 36 : 20;\n },\n cssIconSize() {\n return this.iconSize + \"px\";\n },\n cssIconHeight() {\n return this.internalType === TYPE_SWITCH ? \"16px\" : this.cssIconSize;\n },\n /**\n * Return the input type.\n * Switch is not an official type\n *\n * @return {string}\n */\n inputType() {\n const nativeTypes = [\n TYPE_CHECKBOX,\n TYPE_RADIO,\n TYPE_BUTTON\n ];\n if (nativeTypes.includes(this.internalType)) {\n return this.internalType;\n }\n return TYPE_CHECKBOX;\n },\n /**\n * Check if that entry is checked\n * If value is defined, we use that as the checked value\n * If not, we expect true/false in this.checked\n *\n * @return {boolean}\n */\n isChecked() {\n if (this.value !== null) {\n if (Array.isArray(this.internalModelValue)) {\n return [...this.internalModelValue].indexOf(this.value) > -1;\n }\n return this.internalModelValue === this.value;\n }\n return this.internalModelValue === true;\n },\n hasIndeterminate() {\n return [\n TYPE_CHECKBOX,\n TYPE_RADIO\n ].includes(this.inputType);\n }\n },\n mounted() {\n if (this.name && this.internalType === TYPE_CHECKBOX) {\n if (!Array.isArray(this.internalModelValue)) {\n throw new Error(\"When using groups of checkboxes, the updated value will be an array.\");\n }\n }\n if (this.name && this.internalType === TYPE_SWITCH) {\n throw new Error(\"Switches are not made to be used for data sets. Please use checkboxes instead.\");\n }\n if (typeof this.internalModelValue !== \"boolean\" && this.internalType === TYPE_SWITCH) {\n throw new Error(\"Switches can only be used with boolean as modelValue prop.\");\n }\n },\n methods: {\n t,\n n,\n onToggle(event) {\n if (this.disabled || event.target.tagName.toLowerCase() === \"a\") {\n return;\n }\n if (this.internalType === TYPE_RADIO) {\n this.internalModelValue = this.value;\n return;\n }\n if (this.internalType === TYPE_SWITCH) {\n this.internalModelValue = !this.isChecked;\n return;\n }\n if (typeof this.internalModelValue === \"boolean\") {\n this.internalModelValue = !this.internalModelValue;\n return;\n }\n const values = this.getInputsSet().filter((input) => input.checked).map((input) => input.value);\n if (values.includes(this.value)) {\n this.internalModelValue = values.filter((v) => v !== this.value);\n } else {\n this.internalModelValue = [...values, this.value];\n }\n },\n /**\n * Get the input set based on this name\n *\n * @return {Node[]}\n */\n getInputsSet() {\n return [...document.getElementsByName(this.name)];\n }\n }\n};\nconst __injectCSSVars__ = () => {\n useCssVars((_ctx) => ({\n \"65a7082e\": _ctx.cssIconSize,\n \"20f7d30f\": _ctx.cssIconHeight\n }));\n};\nconst __setup__ = _sfc_main.setup;\n_sfc_main.setup = __setup__ ? (props, ctx) => {\n __injectCSSVars__();\n return __setup__(props, ctx);\n} : __injectCSSVars__;\nconst _hoisted_1 = [\"id\", \"aria-labelledby\", \"aria-describedby\", \"aria-label\", \"disabled\", \"type\", \"value\", \"checked\", \".indeterminate\", \"required\", \"name\"];\nfunction _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {\n const _component_NcCheckboxContent = resolveComponent(\"NcCheckboxContent\");\n return openBlock(), createBlock(resolveDynamicComponent($options.computedWrapperElement), mergeProps({\n id: $props.wrapperId ?? ($options.isButtonType ? $props.id : null),\n \"aria-label\": $options.isButtonType && $props.ariaLabel ? $props.ariaLabel : void 0,\n class: [\"checkbox-radio-switch\", [\n _ctx.$props.class,\n {\n [\"checkbox-radio-switch-\" + $setup.internalType]: $setup.internalType,\n \"checkbox-radio-switch--checked\": $options.isChecked,\n \"checkbox-radio-switch--disabled\": $props.disabled,\n \"checkbox-radio-switch--indeterminate\": $options.hasIndeterminate ? $props.indeterminate : false,\n \"checkbox-radio-switch--button-variant\": $props.buttonVariant,\n \"checkbox-radio-switch--button-variant-v-grouped\": $props.buttonVariant && $props.buttonVariantGrouped === \"vertical\",\n \"checkbox-radio-switch--button-variant-h-grouped\": $props.buttonVariant && $props.buttonVariantGrouped === \"horizontal\",\n \"button-vue\": $options.isButtonType\n }\n ]],\n style: $props.style,\n type: $options.isButtonType ? \"button\" : null\n }, $options.isButtonType ? _ctx.$attrs : {}, toHandlers($options.isButtonType ? $options.listeners : {})), {\n default: withCtx(() => [\n !$options.isButtonType ? (openBlock(), createElementBlock(\"input\", mergeProps({\n key: 0,\n id: $props.id,\n \"aria-labelledby\": !$options.isButtonType && !$props.ariaLabel ? $setup.labelId : null,\n \"aria-describedby\": !$options.isButtonType && ($props.description || _ctx.$slots.description) ? $setup.descriptionId : null,\n \"aria-label\": $props.ariaLabel || void 0,\n class: \"checkbox-radio-switch__input\",\n disabled: $props.disabled,\n type: $options.inputType,\n value: $props.value,\n checked: $options.isChecked,\n \".indeterminate\": $options.hasIndeterminate ? $props.indeterminate : null,\n required: $props.required,\n name: $props.name\n }, _ctx.$attrs, toHandlers($options.listeners, true)), null, 48, _hoisted_1)) : createCommentVNode(\"\", true),\n createVNode(_component_NcCheckboxContent, {\n id: !$options.isButtonType ? `${$props.id}-label` : void 0,\n class: \"checkbox-radio-switch__content\",\n \"icon-class\": \"checkbox-radio-switch__icon\",\n \"text-class\": \"checkbox-radio-switch__text\",\n type: $setup.internalType,\n indeterminate: $options.hasIndeterminate ? $props.indeterminate : false,\n \"button-variant\": $props.buttonVariant,\n \"is-checked\": $options.isChecked,\n loading: $props.loading,\n \"label-id\": $setup.labelId,\n \"description-id\": $setup.descriptionId,\n \"icon-size\": $options.iconSize,\n onClick: $options.onToggle\n }, createSlots({\n icon: withCtx(() => [\n renderSlot(_ctx.$slots, \"icon\", {}, void 0, true)\n ]),\n _: 2\n }, [\n _ctx.$slots.description || $props.description ? {\n name: \"description\",\n fn: withCtx(() => [\n renderSlot(_ctx.$slots, \"description\", {}, () => [\n createTextVNode(toDisplayString($props.description), 1)\n ], true)\n ]),\n key: \"0\"\n } : void 0,\n !!_ctx.$slots.default ? {\n name: \"default\",\n fn: withCtx(() => [\n renderSlot(_ctx.$slots, \"default\", {}, void 0, true)\n ]),\n key: \"1\"\n } : void 0\n ]), 1032, [\"id\", \"type\", \"indeterminate\", \"button-variant\", \"is-checked\", \"loading\", \"label-id\", \"description-id\", \"icon-size\", \"onClick\"])\n ]),\n _: 3\n }, 16, [\"id\", \"aria-label\", \"class\", \"style\", \"type\"]);\n}\nconst NcCheckboxRadioSwitch = /* @__PURE__ */ _export_sfc(_sfc_main, [[\"render\", _sfc_render], [\"__scopeId\", \"data-v-0dcb138a\"]]);\nexport {\n NcCheckboxRadioSwitch as N\n};\n//# sourceMappingURL=NcCheckboxRadioSwitch-BCSKF7Tk.mjs.map\n","\n\n"],"names":["_hoisted_1","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","_sfc_main","defineComponent","__props","props","colors","computed","colors2","_ctx","_cache","openBlock","createElementBlock","createElementVNode","toDisplayString","createCommentVNode","NcLoadingIcon","_export_sfc","INSIDE_RADIO_GROUP_KEY","useInsideRadioGroup","inject","_sfc_main$8","_hoisted_1$8","_hoisted_2$7","_hoisted_3$7","_hoisted_4$6","_sfc_render$8","$props","$setup","$data","$options","mergeProps","$event","CheckboxBlankOutline","_sfc_main$7","_hoisted_1$7","_hoisted_2$6","_hoisted_3$6","_hoisted_4$5","_sfc_render$7","CheckboxMarked","_sfc_main$6","_hoisted_1$6","_hoisted_2$5","_hoisted_3$5","_hoisted_4$4","_sfc_render$6","MinusBox","_sfc_main$5","_hoisted_1$5","_hoisted_2$4","_hoisted_3$4","_hoisted_4$3","_sfc_render$5","RadioboxBlank","_sfc_main$4","_hoisted_1$4","_hoisted_2$3","_hoisted_3$3","_hoisted_4$2","_sfc_render$4","RadioboxMarked","_sfc_main$3","_hoisted_1$3","_hoisted_2$2","_hoisted_3$2","_hoisted_4$1","_sfc_render$3","ToggleSwitch","_sfc_main$2","_hoisted_1$2","_hoisted_2$1","_hoisted_3$1","_sfc_render$2","ToggleSwitchOff","TYPE_CHECKBOX","TYPE_RADIO","TYPE_SWITCH","TYPE_BUTTON","_sfc_main$1","type","_hoisted_1$1","_sfc_render$1","_component_NcLoadingIcon","resolveComponent","normalizeClass","renderSlot","createBlock","resolveDynamicComponent","NcCheckboxContent","register","createElementId","id","v","emit","radioGroup","onMounted","internalType","internalModelValue","value","t","n","event","values","input","__injectCSSVars__","useCssVars","__setup__","ctx","_sfc_render","_component_NcCheckboxContent","toHandlers","withCtx","createVNode","createSlots","createTextVNode","NcCheckboxRadioSwitch","_createElementBlock","_mergeProps","_createElementVNode","_openBlock"],"mappings":"uPAGA,MAAMA,EAAa,CAAC,YAAY,EAC1BC,EAAa,CAAC,QAAS,QAAQ,EAC/BC,EAAa,CAAC,MAAM,EACpBC,EAAa,CAAC,MAAM,EACpBC,EAAa,CAAE,IAAK,CAAC,EACrBC,EAA4BC,EAAgB,CAChD,OAAQ,gBACR,MAAO,CACL,WAAY,CAAE,QAAS,MAAM,EAC7B,KAAM,CAAE,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sB,GAAEvB,EAAA,MAAK,QAAUuB,CAAM,WACjCqF,EAQM,MAAA,CARA,KAAM1F,EAAA,UACP,MAAM,4BACL,MAAOA,EAAA,KACP,OAAQA,EAAA,KACT,QAAQ,cACX4F,EAEO,OAFPxH,GAEO,CADQ4B,EAAA,OAAb6F,EAAA,EAAAH,EAAuC,aAAhB1F,EAAA,KAAK,EAAA,CAAA","x_google_ignoreList":[0,1,2,3]} \ No newline at end of file +{"version":3,"file":"ContentCopy-DUGe9ppe.chunk.mjs","sources":["../node_modules/@nextcloud/vue/dist/chunks/NcLoadingIcon-b_ajZ_nQ.mjs","../node_modules/@nextcloud/vue/dist/chunks/useNcRadioGroup-DaZbEKbf.mjs","../node_modules/@nextcloud/vue/dist/chunks/NcCheckboxRadioSwitch-BCSKF7Tk.mjs","../node_modules/vue-material-design-icons/ContentCopy.vue"],"sourcesContent":["import '../assets/NcLoadingIcon-CWUlo4XY.css';\nimport { defineComponent, computed, createElementBlock, openBlock, createElementVNode, createCommentVNode, toDisplayString } from \"vue\";\nimport { _ as _export_sfc } from \"./_plugin-vue_export-helper-1tPrXgE0.mjs\";\nconst _hoisted_1 = [\"aria-label\"];\nconst _hoisted_2 = [\"width\", \"height\"];\nconst _hoisted_3 = [\"fill\"];\nconst _hoisted_4 = [\"fill\"];\nconst _hoisted_5 = { key: 0 };\nconst _sfc_main = /* @__PURE__ */ defineComponent({\n __name: \"NcLoadingIcon\",\n props: {\n appearance: { default: \"auto\" },\n name: { default: \"\" },\n size: { default: 20 }\n },\n setup(__props) {\n const props = __props;\n const colors = computed(() => {\n const colors2 = [\"#777\", \"#CCC\"];\n if (props.appearance === \"light\") {\n return colors2;\n } else if (props.appearance === \"dark\") {\n return colors2.reverse();\n }\n return [\"var(--color-loading-light)\", \"var(--color-loading-dark)\"];\n });\n return (_ctx, _cache) => {\n return openBlock(), createElementBlock(\"span\", {\n \"aria-label\": _ctx.name,\n role: \"img\",\n class: \"material-design-icon loading-icon\"\n }, [\n (openBlock(), createElementBlock(\"svg\", {\n width: _ctx.size,\n height: _ctx.size,\n viewBox: \"0 0 24 24\"\n }, [\n createElementVNode(\"path\", {\n fill: colors.value[0],\n d: \"M12,4V2A10,10 0 1,0 22,12H20A8,8 0 1,1 12,4Z\"\n }, null, 8, _hoisted_3),\n createElementVNode(\"path\", {\n fill: colors.value[1],\n d: \"M12,4V2A10,10 0 0,1 22,12H20A8,8 0 0,0 12,4Z\"\n }, [\n _ctx.name ? (openBlock(), createElementBlock(\"title\", _hoisted_5, toDisplayString(_ctx.name), 1)) : createCommentVNode(\"\", true)\n ], 8, _hoisted_4)\n ], 8, _hoisted_2))\n ], 8, _hoisted_1);\n };\n }\n});\nconst NcLoadingIcon = /* @__PURE__ */ _export_sfc(_sfc_main, [[\"__scopeId\", \"data-v-cf399190\"]]);\nexport {\n NcLoadingIcon as N\n};\n//# sourceMappingURL=NcLoadingIcon-b_ajZ_nQ.mjs.map\n","import { inject } from \"vue\";\n/*!\n * SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\nconst INSIDE_RADIO_GROUP_KEY = Symbol.for(\"insideRadioGroup\");\nfunction useInsideRadioGroup() {\n return inject(INSIDE_RADIO_GROUP_KEY, void 0);\n}\nexport {\n INSIDE_RADIO_GROUP_KEY as I,\n useInsideRadioGroup as u\n};\n//# sourceMappingURL=useNcRadioGroup-DaZbEKbf.mjs.map\n","import '../assets/NcCheckboxRadioSwitch-C_70VMQr.css';\nimport { createElementBlock, openBlock, mergeProps, createElementVNode, createCommentVNode, toDisplayString, resolveComponent, normalizeClass, renderSlot, createBlock, resolveDynamicComponent, toHandlers, withCtx, createVNode, createSlots, createTextVNode, onMounted, computed, useCssVars } from \"vue\";\nimport { _ as _export_sfc } from \"./_plugin-vue_export-helper-1tPrXgE0.mjs\";\nimport { N as NcLoadingIcon } from \"./NcLoadingIcon-b_ajZ_nQ.mjs\";\nimport { r as register, q as n, a as t } from \"./_l10n-DrTiip5c.mjs\";\nimport { c as createElementId } from \"./createElementId-DhjFt1I9.mjs\";\nimport { u as useInsideRadioGroup } from \"./useNcRadioGroup-DaZbEKbf.mjs\";\nconst _sfc_main$8 = {\n name: \"CheckboxBlankOutlineIcon\",\n emits: [\"click\"],\n props: {\n title: {\n type: String\n },\n fillColor: {\n type: String,\n default: \"currentColor\"\n },\n size: {\n type: Number,\n default: 24\n }\n }\n};\nconst _hoisted_1$8 = [\"aria-hidden\", \"aria-label\"];\nconst _hoisted_2$7 = [\"fill\", \"width\", \"height\"];\nconst _hoisted_3$7 = { d: \"M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3M19,5V19H5V5H19Z\" };\nconst _hoisted_4$6 = { key: 0 };\nfunction _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {\n return openBlock(), createElementBlock(\"span\", mergeProps(_ctx.$attrs, {\n \"aria-hidden\": $props.title ? null : \"true\",\n \"aria-label\": $props.title,\n class: \"material-design-icon checkbox-blank-outline-icon\",\n role: \"img\",\n onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit(\"click\", $event))\n }), [\n (openBlock(), createElementBlock(\"svg\", {\n fill: $props.fillColor,\n class: \"material-design-icon__svg\",\n width: $props.size,\n height: $props.size,\n viewBox: \"0 0 24 24\"\n }, [\n createElementVNode(\"path\", _hoisted_3$7, [\n $props.title ? (openBlock(), createElementBlock(\"title\", _hoisted_4$6, toDisplayString($props.title), 1)) : createCommentVNode(\"\", true)\n ])\n ], 8, _hoisted_2$7))\n ], 16, _hoisted_1$8);\n}\nconst CheckboxBlankOutline = /* @__PURE__ */ _export_sfc(_sfc_main$8, [[\"render\", _sfc_render$8]]);\nconst _sfc_main$7 = {\n name: \"CheckboxMarkedIcon\",\n emits: [\"click\"],\n props: {\n title: {\n type: String\n },\n fillColor: {\n type: String,\n default: \"currentColor\"\n },\n size: {\n type: Number,\n default: 24\n }\n }\n};\nconst _hoisted_1$7 = [\"aria-hidden\", \"aria-label\"];\nconst _hoisted_2$6 = [\"fill\", \"width\", \"height\"];\nconst _hoisted_3$6 = { d: \"M10,17L5,12L6.41,10.58L10,14.17L17.59,6.58L19,8M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3Z\" };\nconst _hoisted_4$5 = { key: 0 };\nfunction _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {\n return openBlock(), createElementBlock(\"span\", mergeProps(_ctx.$attrs, {\n \"aria-hidden\": $props.title ? null : \"true\",\n \"aria-label\": $props.title,\n class: \"material-design-icon checkbox-marked-icon\",\n role: \"img\",\n onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit(\"click\", $event))\n }), [\n (openBlock(), createElementBlock(\"svg\", {\n fill: $props.fillColor,\n class: \"material-design-icon__svg\",\n width: $props.size,\n height: $props.size,\n viewBox: \"0 0 24 24\"\n }, [\n createElementVNode(\"path\", _hoisted_3$6, [\n $props.title ? (openBlock(), createElementBlock(\"title\", _hoisted_4$5, toDisplayString($props.title), 1)) : createCommentVNode(\"\", true)\n ])\n ], 8, _hoisted_2$6))\n ], 16, _hoisted_1$7);\n}\nconst CheckboxMarked = /* @__PURE__ */ _export_sfc(_sfc_main$7, [[\"render\", _sfc_render$7]]);\nconst _sfc_main$6 = {\n name: \"MinusBoxIcon\",\n emits: [\"click\"],\n props: {\n title: {\n type: String\n },\n fillColor: {\n type: String,\n default: \"currentColor\"\n },\n size: {\n type: Number,\n default: 24\n }\n }\n};\nconst _hoisted_1$6 = [\"aria-hidden\", \"aria-label\"];\nconst _hoisted_2$5 = [\"fill\", \"width\", \"height\"];\nconst _hoisted_3$5 = { d: \"M17,13H7V11H17M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3Z\" };\nconst _hoisted_4$4 = { key: 0 };\nfunction _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {\n return openBlock(), createElementBlock(\"span\", mergeProps(_ctx.$attrs, {\n \"aria-hidden\": $props.title ? null : \"true\",\n \"aria-label\": $props.title,\n class: \"material-design-icon minus-box-icon\",\n role: \"img\",\n onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit(\"click\", $event))\n }), [\n (openBlock(), createElementBlock(\"svg\", {\n fill: $props.fillColor,\n class: \"material-design-icon__svg\",\n width: $props.size,\n height: $props.size,\n viewBox: \"0 0 24 24\"\n }, [\n createElementVNode(\"path\", _hoisted_3$5, [\n $props.title ? (openBlock(), createElementBlock(\"title\", _hoisted_4$4, toDisplayString($props.title), 1)) : createCommentVNode(\"\", true)\n ])\n ], 8, _hoisted_2$5))\n ], 16, _hoisted_1$6);\n}\nconst MinusBox = /* @__PURE__ */ _export_sfc(_sfc_main$6, [[\"render\", _sfc_render$6]]);\nconst _sfc_main$5 = {\n name: \"RadioboxBlankIcon\",\n emits: [\"click\"],\n props: {\n title: {\n type: String\n },\n fillColor: {\n type: String,\n default: \"currentColor\"\n },\n size: {\n type: Number,\n default: 24\n }\n }\n};\nconst _hoisted_1$5 = [\"aria-hidden\", \"aria-label\"];\nconst _hoisted_2$4 = [\"fill\", \"width\", \"height\"];\nconst _hoisted_3$4 = { d: \"M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z\" };\nconst _hoisted_4$3 = { key: 0 };\nfunction _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {\n return openBlock(), createElementBlock(\"span\", mergeProps(_ctx.$attrs, {\n \"aria-hidden\": $props.title ? null : \"true\",\n \"aria-label\": $props.title,\n class: \"material-design-icon radiobox-blank-icon\",\n role: \"img\",\n onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit(\"click\", $event))\n }), [\n (openBlock(), createElementBlock(\"svg\", {\n fill: $props.fillColor,\n class: \"material-design-icon__svg\",\n width: $props.size,\n height: $props.size,\n viewBox: \"0 0 24 24\"\n }, [\n createElementVNode(\"path\", _hoisted_3$4, [\n $props.title ? (openBlock(), createElementBlock(\"title\", _hoisted_4$3, toDisplayString($props.title), 1)) : createCommentVNode(\"\", true)\n ])\n ], 8, _hoisted_2$4))\n ], 16, _hoisted_1$5);\n}\nconst RadioboxBlank = /* @__PURE__ */ _export_sfc(_sfc_main$5, [[\"render\", _sfc_render$5]]);\nconst _sfc_main$4 = {\n name: \"RadioboxMarkedIcon\",\n emits: [\"click\"],\n props: {\n title: {\n type: String\n },\n fillColor: {\n type: String,\n default: \"currentColor\"\n },\n size: {\n type: Number,\n default: 24\n }\n }\n};\nconst _hoisted_1$4 = [\"aria-hidden\", \"aria-label\"];\nconst _hoisted_2$3 = [\"fill\", \"width\", \"height\"];\nconst _hoisted_3$3 = { d: \"M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,7A5,5 0 0,0 7,12A5,5 0 0,0 12,17A5,5 0 0,0 17,12A5,5 0 0,0 12,7Z\" };\nconst _hoisted_4$2 = { key: 0 };\nfunction _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {\n return openBlock(), createElementBlock(\"span\", mergeProps(_ctx.$attrs, {\n \"aria-hidden\": $props.title ? null : \"true\",\n \"aria-label\": $props.title,\n class: \"material-design-icon radiobox-marked-icon\",\n role: \"img\",\n onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit(\"click\", $event))\n }), [\n (openBlock(), createElementBlock(\"svg\", {\n fill: $props.fillColor,\n class: \"material-design-icon__svg\",\n width: $props.size,\n height: $props.size,\n viewBox: \"0 0 24 24\"\n }, [\n createElementVNode(\"path\", _hoisted_3$3, [\n $props.title ? (openBlock(), createElementBlock(\"title\", _hoisted_4$2, toDisplayString($props.title), 1)) : createCommentVNode(\"\", true)\n ])\n ], 8, _hoisted_2$3))\n ], 16, _hoisted_1$4);\n}\nconst RadioboxMarked = /* @__PURE__ */ _export_sfc(_sfc_main$4, [[\"render\", _sfc_render$4]]);\nconst _sfc_main$3 = {\n name: \"ToggleSwitchIcon\",\n emits: [\"click\"],\n props: {\n title: {\n type: String\n },\n fillColor: {\n type: String,\n default: \"currentColor\"\n },\n size: {\n type: Number,\n default: 24\n }\n }\n};\nconst _hoisted_1$3 = [\"aria-hidden\", \"aria-label\"];\nconst _hoisted_2$2 = [\"fill\", \"width\", \"height\"];\nconst _hoisted_3$2 = { d: \"M17,7H7A5,5 0 0,0 2,12A5,5 0 0,0 7,17H17A5,5 0 0,0 22,12A5,5 0 0,0 17,7M17,15A3,3 0 0,1 14,12A3,3 0 0,1 17,9A3,3 0 0,1 20,12A3,3 0 0,1 17,15Z\" };\nconst _hoisted_4$1 = { key: 0 };\nfunction _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {\n return openBlock(), createElementBlock(\"span\", mergeProps(_ctx.$attrs, {\n \"aria-hidden\": $props.title ? null : \"true\",\n \"aria-label\": $props.title,\n class: \"material-design-icon toggle-switch-icon\",\n role: \"img\",\n onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit(\"click\", $event))\n }), [\n (openBlock(), createElementBlock(\"svg\", {\n fill: $props.fillColor,\n class: \"material-design-icon__svg\",\n width: $props.size,\n height: $props.size,\n viewBox: \"0 0 24 24\"\n }, [\n createElementVNode(\"path\", _hoisted_3$2, [\n $props.title ? (openBlock(), createElementBlock(\"title\", _hoisted_4$1, toDisplayString($props.title), 1)) : createCommentVNode(\"\", true)\n ])\n ], 8, _hoisted_2$2))\n ], 16, _hoisted_1$3);\n}\nconst ToggleSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$3, [[\"render\", _sfc_render$3]]);\nconst _sfc_main$2 = {\n name: \"ToggleSwitchOffIcon\",\n emits: [\"click\"],\n props: {\n title: {\n type: String\n },\n fillColor: {\n type: String,\n default: \"currentColor\"\n },\n size: {\n type: Number,\n default: 24\n }\n }\n};\nconst _hoisted_1$2 = [\"aria-hidden\", \"aria-label\"];\nconst _hoisted_2$1 = [\"fill\", \"width\", \"height\"];\nconst _hoisted_3$1 = { d: \"M17,7H7A5,5 0 0,0 2,12A5,5 0 0,0 7,17H17A5,5 0 0,0 22,12A5,5 0 0,0 17,7M7,15A3,3 0 0,1 4,12A3,3 0 0,1 7,9A3,3 0 0,1 10,12A3,3 0 0,1 7,15Z\" };\nconst _hoisted_4 = { key: 0 };\nfunction _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {\n return openBlock(), createElementBlock(\"span\", mergeProps(_ctx.$attrs, {\n \"aria-hidden\": $props.title ? null : \"true\",\n \"aria-label\": $props.title,\n class: \"material-design-icon toggle-switch-off-icon\",\n role: \"img\",\n onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit(\"click\", $event))\n }), [\n (openBlock(), createElementBlock(\"svg\", {\n fill: $props.fillColor,\n class: \"material-design-icon__svg\",\n width: $props.size,\n height: $props.size,\n viewBox: \"0 0 24 24\"\n }, [\n createElementVNode(\"path\", _hoisted_3$1, [\n $props.title ? (openBlock(), createElementBlock(\"title\", _hoisted_4, toDisplayString($props.title), 1)) : createCommentVNode(\"\", true)\n ])\n ], 8, _hoisted_2$1))\n ], 16, _hoisted_1$2);\n}\nconst ToggleSwitchOff = /* @__PURE__ */ _export_sfc(_sfc_main$2, [[\"render\", _sfc_render$2]]);\nconst TYPE_CHECKBOX = \"checkbox\";\nconst TYPE_RADIO = \"radio\";\nconst TYPE_SWITCH = \"switch\";\nconst TYPE_BUTTON = \"button\";\nconst _sfc_main$1 = {\n name: \"NcCheckboxContent\",\n components: {\n NcLoadingIcon\n },\n props: {\n /**\n * Class for the icon element\n */\n iconClass: {\n type: [String, Object],\n default: null\n },\n /**\n * Class for the text element\n */\n textClass: {\n type: [String, Object],\n default: null\n },\n /**\n * Type of the input. checkbox, radio, switch, or button.\n *\n * Only use button when used in a `tablist` container and the\n * `tab` role is set.\n *\n * @type {'checkbox'|'radio'|'switch'|'button'}\n */\n type: {\n type: String,\n default: \"checkbox\",\n validator: (type) => [\n TYPE_CHECKBOX,\n TYPE_RADIO,\n TYPE_SWITCH,\n TYPE_BUTTON\n ].includes(type)\n },\n /**\n * Toggle the alternative button style\n */\n buttonVariant: {\n type: Boolean,\n default: false\n },\n /**\n * True if the entry is checked\n */\n isChecked: {\n type: Boolean,\n default: false\n },\n /**\n * Indeterminate state\n */\n indeterminate: {\n type: Boolean,\n default: false\n },\n /**\n * Loading state\n */\n loading: {\n type: Boolean,\n default: false\n },\n /**\n * Icon size\n */\n iconSize: {\n type: Number,\n default: 24\n },\n /**\n * Label id attribute\n */\n labelId: {\n type: String,\n required: true\n },\n /**\n * Description id attribute\n */\n descriptionId: {\n type: String,\n required: true\n }\n },\n computed: {\n isButtonType() {\n return this.type === TYPE_BUTTON;\n },\n /**\n * Returns the proper Material icon depending on the select case\n *\n * @return {object}\n */\n checkboxRadioIconElement() {\n if (this.type === TYPE_RADIO) {\n if (this.isChecked) {\n return RadioboxMarked;\n }\n return RadioboxBlank;\n }\n if (this.type === TYPE_SWITCH) {\n if (this.isChecked) {\n return ToggleSwitch;\n }\n return ToggleSwitchOff;\n }\n if (this.indeterminate) {\n return MinusBox;\n }\n if (this.isChecked) {\n return CheckboxMarked;\n }\n return CheckboxBlankOutline;\n }\n }\n};\nconst _hoisted_1$1 = {\n key: 0,\n class: \"checkbox-content__wrapper\"\n};\nconst _hoisted_2 = [\"id\"];\nconst _hoisted_3 = [\"id\"];\nfunction _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {\n const _component_NcLoadingIcon = resolveComponent(\"NcLoadingIcon\");\n return openBlock(), createElementBlock(\"span\", {\n class: normalizeClass([\"checkbox-content\", {\n [\"checkbox-content-\" + $props.type]: true,\n \"checkbox-content--button-variant\": $props.buttonVariant,\n \"checkbox-content--has-text\": !!_ctx.$slots.default\n }])\n }, [\n createElementVNode(\"span\", {\n class: normalizeClass([\"checkbox-content__icon\", {\n \"checkbox-content__icon--checked\": $props.isChecked,\n \"checkbox-content__icon--has-description\": !$options.isButtonType && _ctx.$slots.description,\n [$props.iconClass]: true\n }]),\n \"aria-hidden\": true,\n inert: \"\"\n }, [\n renderSlot(_ctx.$slots, \"icon\", {\n checked: $props.isChecked,\n loading: $props.loading\n }, () => [\n $props.loading ? (openBlock(), createBlock(_component_NcLoadingIcon, { key: 0 })) : !$props.buttonVariant ? (openBlock(), createBlock(resolveDynamicComponent($options.checkboxRadioIconElement), {\n key: 1,\n size: $props.iconSize\n }, null, 8, [\"size\"])) : createCommentVNode(\"\", true)\n ], true)\n ], 2),\n _ctx.$slots.default || _ctx.$slots.description ? (openBlock(), createElementBlock(\"span\", _hoisted_1$1, [\n _ctx.$slots.default ? (openBlock(), createElementBlock(\"span\", {\n key: 0,\n id: $props.labelId,\n class: normalizeClass([\"checkbox-content__text\", $props.textClass])\n }, [\n renderSlot(_ctx.$slots, \"default\", {}, void 0, true)\n ], 10, _hoisted_2)) : createCommentVNode(\"\", true),\n !$options.isButtonType && _ctx.$slots.description ? (openBlock(), createElementBlock(\"span\", {\n key: 1,\n id: $props.descriptionId,\n class: \"checkbox-content__description\"\n }, [\n renderSlot(_ctx.$slots, \"description\", {}, void 0, true)\n ], 8, _hoisted_3)) : createCommentVNode(\"\", true)\n ])) : createCommentVNode(\"\", true)\n ], 2);\n}\nconst NcCheckboxContent = /* @__PURE__ */ _export_sfc(_sfc_main$1, [[\"render\", _sfc_render$1], [\"__scopeId\", \"data-v-a1ac280f\"]]);\nregister();\nconst _sfc_main = {\n name: \"NcCheckboxRadioSwitch\",\n components: {\n NcCheckboxContent\n },\n // We need to pass attributes to the input element\n inheritAttrs: false,\n props: {\n /**\n * Unique id attribute of the input\n */\n id: {\n type: String,\n default: () => \"checkbox-radio-switch-\" + createElementId(),\n validator: (id) => id.trim() !== \"\"\n },\n /**\n * Unique id attribute of the wrapper element\n */\n wrapperId: {\n type: String,\n default: null\n },\n /**\n * Input name. Required for radio, optional for checkbox, and ignored\n * for button.\n */\n name: {\n type: String,\n default: null\n },\n /**\n * Required if no text is set.\n * The aria-label is forwarded to the input or button.\n */\n ariaLabel: {\n type: String,\n default: \"\"\n },\n /**\n * Type of the input. checkbox, radio, switch, or button.\n *\n * Only use button when used in a `tablist` container and the\n * `tab` role is set.\n *\n * @type {'checkbox'|'radio'|'switch'|'button'}\n */\n type: {\n type: String,\n default: \"checkbox\",\n validator: (type) => [\n TYPE_CHECKBOX,\n TYPE_RADIO,\n TYPE_SWITCH,\n TYPE_BUTTON\n ].includes(type)\n },\n /**\n * Toggle the alternative button style\n *\n * @deprecated - Use `NcRadioGroup` instead\n */\n buttonVariant: {\n type: Boolean,\n default: false\n },\n /**\n * Are the elements are all direct siblings?\n * If so they will be grouped horizontally or vertically\n *\n * @type {'no'|'horizontal'|'vertical'}\n * @deprecated - Use `NcRadioGroup` instead\n */\n buttonVariantGrouped: {\n type: String,\n default: \"no\",\n validator: (v) => [\"no\", \"vertical\", \"horizontal\"].includes(v)\n },\n /**\n * Checked state. To be used with `v-model:value`\n */\n modelValue: {\n type: [Boolean, Array, String],\n default: false\n },\n /**\n * Value to be synced on check\n */\n value: {\n type: String,\n default: null\n },\n /**\n * Disabled state\n */\n disabled: {\n type: Boolean,\n default: false\n },\n /**\n * Indeterminate state\n */\n indeterminate: {\n type: Boolean,\n default: false\n },\n /**\n * Required state\n */\n required: {\n type: Boolean,\n default: false\n },\n /**\n * Loading state\n */\n loading: {\n type: Boolean,\n default: false\n },\n /**\n * Wrapping element tag\n *\n * When `type` is set to `button` this will be ignored\n *\n * Defaults to `span`\n */\n wrapperElement: {\n type: String,\n default: null\n },\n /**\n * The class(es) to pass to the wrapper / root element of the component\n */\n class: {\n type: [String, Array, Object],\n default: \"\"\n },\n /**\n * The style to pass to the wrapper / root element of the component\n */\n style: {\n type: [String, Array, Object],\n default: \"\"\n },\n /**\n * Description\n *\n * This is unsupported when using button has type.\n */\n description: {\n type: String,\n default: null\n }\n },\n emits: [\"update:modelValue\"],\n setup(props, { emit }) {\n const radioGroup = useInsideRadioGroup();\n onMounted(() => radioGroup?.value.register(false));\n const internalType = computed(() => radioGroup?.value ? TYPE_RADIO : props.type);\n const internalModelValue = computed({\n get() {\n if (radioGroup?.value) {\n return radioGroup.value.modelValue;\n }\n return props.modelValue;\n },\n set(value) {\n if (radioGroup?.value) {\n radioGroup.value.onUpdate(value);\n } else {\n emit(\"update:modelValue\", value);\n }\n }\n });\n return {\n internalType,\n internalModelValue,\n labelId: createElementId(),\n descriptionId: createElementId()\n };\n },\n computed: {\n isButtonType() {\n return this.internalType === TYPE_BUTTON;\n },\n computedWrapperElement() {\n if (this.isButtonType) {\n return \"button\";\n }\n if (this.wrapperElement !== null) {\n return this.wrapperElement;\n }\n return \"span\";\n },\n listeners() {\n if (this.isButtonType) {\n return {\n click: this.onToggle\n };\n }\n return {\n change: this.onToggle\n };\n },\n iconSize() {\n return this.internalType === TYPE_SWITCH ? 36 : 20;\n },\n cssIconSize() {\n return this.iconSize + \"px\";\n },\n cssIconHeight() {\n return this.internalType === TYPE_SWITCH ? \"16px\" : this.cssIconSize;\n },\n /**\n * Return the input type.\n * Switch is not an official type\n *\n * @return {string}\n */\n inputType() {\n const nativeTypes = [\n TYPE_CHECKBOX,\n TYPE_RADIO,\n TYPE_BUTTON\n ];\n if (nativeTypes.includes(this.internalType)) {\n return this.internalType;\n }\n return TYPE_CHECKBOX;\n },\n /**\n * Check if that entry is checked\n * If value is defined, we use that as the checked value\n * If not, we expect true/false in this.checked\n *\n * @return {boolean}\n */\n isChecked() {\n if (this.value !== null) {\n if (Array.isArray(this.internalModelValue)) {\n return [...this.internalModelValue].indexOf(this.value) > -1;\n }\n return this.internalModelValue === this.value;\n }\n return this.internalModelValue === true;\n },\n hasIndeterminate() {\n return [\n TYPE_CHECKBOX,\n TYPE_RADIO\n ].includes(this.inputType);\n }\n },\n mounted() {\n if (this.name && this.internalType === TYPE_CHECKBOX) {\n if (!Array.isArray(this.internalModelValue)) {\n throw new Error(\"When using groups of checkboxes, the updated value will be an array.\");\n }\n }\n if (this.name && this.internalType === TYPE_SWITCH) {\n throw new Error(\"Switches are not made to be used for data sets. Please use checkboxes instead.\");\n }\n if (typeof this.internalModelValue !== \"boolean\" && this.internalType === TYPE_SWITCH) {\n throw new Error(\"Switches can only be used with boolean as modelValue prop.\");\n }\n },\n methods: {\n t,\n n,\n onToggle(event) {\n if (this.disabled || event.target.tagName.toLowerCase() === \"a\") {\n return;\n }\n if (this.internalType === TYPE_RADIO) {\n this.internalModelValue = this.value;\n return;\n }\n if (this.internalType === TYPE_SWITCH) {\n this.internalModelValue = !this.isChecked;\n return;\n }\n if (typeof this.internalModelValue === \"boolean\") {\n this.internalModelValue = !this.internalModelValue;\n return;\n }\n const values = this.getInputsSet().filter((input) => input.checked).map((input) => input.value);\n if (values.includes(this.value)) {\n this.internalModelValue = values.filter((v) => v !== this.value);\n } else {\n this.internalModelValue = [...values, this.value];\n }\n },\n /**\n * Get the input set based on this name\n *\n * @return {Node[]}\n */\n getInputsSet() {\n return [...document.getElementsByName(this.name)];\n }\n }\n};\nconst __injectCSSVars__ = () => {\n useCssVars((_ctx) => ({\n \"65a7082e\": _ctx.cssIconSize,\n \"20f7d30f\": _ctx.cssIconHeight\n }));\n};\nconst __setup__ = _sfc_main.setup;\n_sfc_main.setup = __setup__ ? (props, ctx) => {\n __injectCSSVars__();\n return __setup__(props, ctx);\n} : __injectCSSVars__;\nconst _hoisted_1 = [\"id\", \"aria-labelledby\", \"aria-describedby\", \"aria-label\", \"disabled\", \"type\", \"value\", \"checked\", \".indeterminate\", \"required\", \"name\"];\nfunction _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {\n const _component_NcCheckboxContent = resolveComponent(\"NcCheckboxContent\");\n return openBlock(), createBlock(resolveDynamicComponent($options.computedWrapperElement), mergeProps({\n id: $props.wrapperId ?? ($options.isButtonType ? $props.id : null),\n \"aria-label\": $options.isButtonType && $props.ariaLabel ? $props.ariaLabel : void 0,\n class: [\"checkbox-radio-switch\", [\n _ctx.$props.class,\n {\n [\"checkbox-radio-switch-\" + $setup.internalType]: $setup.internalType,\n \"checkbox-radio-switch--checked\": $options.isChecked,\n \"checkbox-radio-switch--disabled\": $props.disabled,\n \"checkbox-radio-switch--indeterminate\": $options.hasIndeterminate ? $props.indeterminate : false,\n \"checkbox-radio-switch--button-variant\": $props.buttonVariant,\n \"checkbox-radio-switch--button-variant-v-grouped\": $props.buttonVariant && $props.buttonVariantGrouped === \"vertical\",\n \"checkbox-radio-switch--button-variant-h-grouped\": $props.buttonVariant && $props.buttonVariantGrouped === \"horizontal\",\n \"button-vue\": $options.isButtonType\n }\n ]],\n style: $props.style,\n type: $options.isButtonType ? \"button\" : null\n }, $options.isButtonType ? _ctx.$attrs : {}, toHandlers($options.isButtonType ? $options.listeners : {})), {\n default: withCtx(() => [\n !$options.isButtonType ? (openBlock(), createElementBlock(\"input\", mergeProps({\n key: 0,\n id: $props.id,\n \"aria-labelledby\": !$options.isButtonType && !$props.ariaLabel ? $setup.labelId : null,\n \"aria-describedby\": !$options.isButtonType && ($props.description || _ctx.$slots.description) ? $setup.descriptionId : null,\n \"aria-label\": $props.ariaLabel || void 0,\n class: \"checkbox-radio-switch__input\",\n disabled: $props.disabled,\n type: $options.inputType,\n value: $props.value,\n checked: $options.isChecked,\n \".indeterminate\": $options.hasIndeterminate ? $props.indeterminate : null,\n required: $props.required,\n name: $props.name\n }, _ctx.$attrs, toHandlers($options.listeners, true)), null, 48, _hoisted_1)) : createCommentVNode(\"\", true),\n createVNode(_component_NcCheckboxContent, {\n id: !$options.isButtonType ? `${$props.id}-label` : void 0,\n class: \"checkbox-radio-switch__content\",\n \"icon-class\": \"checkbox-radio-switch__icon\",\n \"text-class\": \"checkbox-radio-switch__text\",\n type: $setup.internalType,\n indeterminate: $options.hasIndeterminate ? $props.indeterminate : false,\n \"button-variant\": $props.buttonVariant,\n \"is-checked\": $options.isChecked,\n loading: $props.loading,\n \"label-id\": $setup.labelId,\n \"description-id\": $setup.descriptionId,\n \"icon-size\": $options.iconSize,\n onClick: $options.onToggle\n }, createSlots({\n icon: withCtx(() => [\n renderSlot(_ctx.$slots, \"icon\", {}, void 0, true)\n ]),\n _: 2\n }, [\n _ctx.$slots.description || $props.description ? {\n name: \"description\",\n fn: withCtx(() => [\n renderSlot(_ctx.$slots, \"description\", {}, () => [\n createTextVNode(toDisplayString($props.description), 1)\n ], true)\n ]),\n key: \"0\"\n } : void 0,\n !!_ctx.$slots.default ? {\n name: \"default\",\n fn: withCtx(() => [\n renderSlot(_ctx.$slots, \"default\", {}, void 0, true)\n ]),\n key: \"1\"\n } : void 0\n ]), 1032, [\"id\", \"type\", \"indeterminate\", \"button-variant\", \"is-checked\", \"loading\", \"label-id\", \"description-id\", \"icon-size\", \"onClick\"])\n ]),\n _: 3\n }, 16, [\"id\", \"aria-label\", \"class\", \"style\", \"type\"]);\n}\nconst NcCheckboxRadioSwitch = /* @__PURE__ */ _export_sfc(_sfc_main, [[\"render\", _sfc_render], [\"__scopeId\", \"data-v-0dcb138a\"]]);\nexport {\n NcCheckboxRadioSwitch as N\n};\n//# sourceMappingURL=NcCheckboxRadioSwitch-BCSKF7Tk.mjs.map\n","\n\n"],"names":["_hoisted_1","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","_sfc_main","defineComponent","__props","props","colors","computed","colors2","_ctx","_cache","openBlock","createElementBlock","createElementVNode","toDisplayString","createCommentVNode","NcLoadingIcon","_export_sfc","INSIDE_RADIO_GROUP_KEY","useInsideRadioGroup","inject","_sfc_main$8","_hoisted_1$8","_hoisted_2$7","_hoisted_3$7","_hoisted_4$6","_sfc_render$8","$props","$setup","$data","$options","mergeProps","$event","CheckboxBlankOutline","_sfc_main$7","_hoisted_1$7","_hoisted_2$6","_hoisted_3$6","_hoisted_4$5","_sfc_render$7","CheckboxMarked","_sfc_main$6","_hoisted_1$6","_hoisted_2$5","_hoisted_3$5","_hoisted_4$4","_sfc_render$6","MinusBox","_sfc_main$5","_hoisted_1$5","_hoisted_2$4","_hoisted_3$4","_hoisted_4$3","_sfc_render$5","RadioboxBlank","_sfc_main$4","_hoisted_1$4","_hoisted_2$3","_hoisted_3$3","_hoisted_4$2","_sfc_render$4","RadioboxMarked","_sfc_main$3","_hoisted_1$3","_hoisted_2$2","_hoisted_3$2","_hoisted_4$1","_sfc_render$3","ToggleSwitch","_sfc_main$2","_hoisted_1$2","_hoisted_2$1","_hoisted_3$1","_sfc_render$2","ToggleSwitchOff","TYPE_CHECKBOX","TYPE_RADIO","TYPE_SWITCH","TYPE_BUTTON","_sfc_main$1","type","_hoisted_1$1","_sfc_render$1","_component_NcLoadingIcon","resolveComponent","normalizeClass","renderSlot","createBlock","resolveDynamicComponent","NcCheckboxContent","register","createElementId","id","v","emit","radioGroup","onMounted","internalType","internalModelValue","value","t","n","event","values","input","__injectCSSVars__","useCssVars","__setup__","ctx","_sfc_render","_component_NcCheckboxContent","toHandlers","withCtx","createVNode","createSlots","createTextVNode","NcCheckboxRadioSwitch","_createElementBlock","_mergeProps","_createElementVNode","_openBlock"],"mappings":"uPAGA,MAAMA,EAAa,CAAC,YAAY,EAC1BC,EAAa,CAAC,QAAS,QAAQ,EAC/BC,EAAa,CAAC,MAAM,EACpBC,EAAa,CAAC,MAAM,EACpBC,EAAa,CAAE,IAAK,CAAC,EACrBC,EAA4BC,EAAgB,CAChD,OAAQ,gBACR,MAAO,CACL,WAAY,CAAE,QAAS,MAAM,EAC7B,KAAM,CAAE,QAAS,EAAE,EACnB,KAAM,CAAE,QAAS,EAAE,CACvB,EACE,MAAMC,EAAS,CACb,MAAMC,EAAQD,EACRE,EAASC,EAAS,IAAM,CAC5B,MAAMC,EAAU,CAAC,OAAQ,MAAM,EAC/B,OAAIH,EAAM,aAAe,QAChBG,EACEH,EAAM,aAAe,OACvBG,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,aAAhB1F,EAAA,KAAK,EAAA,CAAA","x_google_ignoreList":[0,1,2,3]} \ No newline at end of file diff --git a/dist/ContentCopy-BEfKgtZW.chunk.mjs.map.license b/dist/ContentCopy-DUGe9ppe.chunk.mjs.map.license similarity index 100% rename from dist/ContentCopy-BEfKgtZW.chunk.mjs.map.license rename to dist/ContentCopy-DUGe9ppe.chunk.mjs.map.license diff --git a/dist/Plus-DDsJI2iW.chunk.mjs b/dist/Plus-ComWjyCg.chunk.mjs similarity index 99% rename from dist/Plus-DDsJI2iW.chunk.mjs rename to dist/Plus-ComWjyCg.chunk.mjs index ff7a39b13cc69..76e7f7c44503f 100644 --- a/dist/Plus-DDsJI2iW.chunk.mjs +++ b/dist/Plus-ComWjyCg.chunk.mjs @@ -1,4 +1,4 @@ -import{k as St,m as rl,l as Mn,o as ra,b as It,a as uu,p as C0,q as x0,s as Es,t as B0,u as qr,v as j0,w as A0,x as q0,_ as S0,j as N0,C as M0,g as T0,c as P0}from"./TrashCanOutline-avc1vI9P.chunk.mjs";import{X as Tn,a6 as vu,a1 as Ft,r as $e,v as j,o as p,k as z,a4 as ae,c as pe,m as $,D as Ve,n as we,t as De,B as Le,ao as Te,h as Ge,a2 as ka,y as Ga,j as K,ap as _e,an as Aa,aA as z0,a as ve,w as ge,T as rt,aB as et,aC as ua,aD as O0,aE as L0,F as je,a9 as Ot,U as xt,aF as $0,aw as We,ax as Ke,aG as I0,aH as R0,a0 as kt,aI as H0,aJ as W0,R as Pn,S as ul,$ as ot,aK as hr,aL as ca,O as tn,aM as V0,J as Y0,M as nl,L as sl,W as _i,aN as nu,i as ie,aO as U0,ad as zn,A as fi,u as b,aP as On,aQ as G0,aR as K0,aS as Z0,aT as J0,aU as Xa,ab as $r,b as Dt,aV as Q0,ai as X0,al as bt,aW as $t,z as qa,am as At,aX as ol,a5 as Fa,as as Ln,x as Ye,aY as eg,aZ as Cs,ac as tg,a_ as ag,p as ll,a$ as ig,d as $n,g as dl,b0 as rg,E as an,b1 as gl,aq as ct,af as Du,s as Eu,au as _l,b2 as ug,b3 as ng,b4 as sg,b5 as fl,b6 as og,b7 as xs,ak as ml,b8 as lg,_ as ei,b9 as hl,ba as cl,bb as dg,bc as gg,bd as _g,be as fg,bf as mg,bg as hg,bh as cg,C as Fg,l as Bs,bi as pg,bj as js,bk as bg,bl as yg,bm as wg,bn as kg,bo as vg,bp as Dg,bq as Eg,f as Cg,aa as xg}from"./TrayArrowDown-sRwZP_WA.chunk.mjs";import{a as In}from"./ContentCopy-BEfKgtZW.chunk.mjs";const D0="nextcloud-ui",E0="1.0.0";function S6(){if(typeof globalThis.firstDay<"u")return globalThis.firstDay;const e=new Intl.Locale(Tn()),t=e.getWeekInfo?.()??e.weekInfo;return t?t.firstDay%7:1}function Bg(e=Date.now(),t={}){const a={ignoreSeconds:!1,language:vu(),relativeTime:"long",...t},i=new Date(e),r=new Intl.RelativeTimeFormat([a.language,vu()],{numeric:"auto",style:a.relativeTime}),u=(i.getTime()-Date.now())/1e3;if(Math.abs(u)<59.5)return a.ignoreSeconds||r.format(Math.round(u),"second");const n=u/60;if(Math.abs(n)<=59)return r.format(Math.round(n),"minute");const s=n/60;if(Math.abs(s)<23.5)return r.format(Math.round(s),"hour");const o=s/24;if(Math.abs(o)<6.5)return r.format(Math.round(o),"day");if(Math.abs(o)<27.5){const l=o/7;return r.format(Math.round(l),"week")}const _=o/30,d=Math.abs(_)<11?{month:a.relativeTime,day:"numeric"}:{year:a.relativeTime==="narrow"?"2-digit":"numeric",month:a.relativeTime};return new Intl.DateTimeFormat([a.language,vu()],d).format(i)}const cr=Symbol.for("NcActions:isSemanticMenu"),Fl=Symbol.for("NcActions:closeMenu"),jg={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?.()[0].children?.trim?.()||""}}},su={mixins:[jg],props:{icon:{type:String,default:""},name:{type:String,default:""},title:{type:String,default:""},closeAfterClick:{type:Boolean,default:!1},ariaLabel:{type:String,default:null}},inject:{closeMenu:{from:Fl}},emits:["click"],created(){"ariaHidden"in this.$attrs},computed:{isIconUrl(){try{return!!new URL(this.icon,this.icon.startsWith("/")?window.location.origin:void 0)}catch{return!1}}},methods:{onClick(e){this.$emit("click",e),this.closeAfterClick&&this.closeMenu(!1)}}},Ag={name:"NcActionButton",components:{NcIconSvgWrapper:St},mixins:[su],inject:{isInSemanticMenu:{from:cr,default:!1}},props:{disabled:{type:Boolean,default:!1},isMenu:{type:Boolean,default:!1},type:{type:String,default:"button",validator:e=>["button","checkbox","radio","reset","submit"].includes(e)},modelValue:{type:[Boolean,String],default:null},value:{type:String,default:null},description:{type:String,default:""}},emits:["update:modelValue"],setup(){return{mdiCheck:Mn,mdiChevronRight:rl}},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 e={};return this.isInSemanticMenu?(e.role="menuitem",this.type==="radio"?(e.role="menuitemradio",e["aria-checked"]=this.isChecked?"true":"false"):(this.type==="checkbox"||this.nativeType==="button"&&this.modelValue!==null)&&(e.role="menuitemcheckbox",e["aria-checked"]=this.modelValue===null?"mixed":this.modelValue?"true":"false")):this.modelValue!==null&&this.nativeType==="button"&&(e["aria-pressed"]=this.modelValue?"true":"false"),e}},methods:{handleClick(e){this.onClick(e),(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))}}},qg=["role"],Sg=["aria-label","disabled","title","type"],Ng={class:"action-button__longtext-wrapper"},Mg={key:0,class:"action-button__name"},Tg=["textContent"],Pg={key:2,class:"action-button__text"},zg=["textContent"],Og={key:2,class:"action-button__pressed-icon material-design-icon"};function Lg(e,t,a,i,r,u){const n=$e("NcIconSvgWrapper");return p(),j("li",{class:we(["action",{"action--disabled":a.disabled}]),role:u.isInSemanticMenu&&"presentation"},[z("button",Le({"aria-label":e.ariaLabel,class:["action-button button-vue",{"action-button--active":u.isChecked,focusable:u.isFocusable}],disabled:a.disabled,title:e.title,type:u.nativeType},u.buttonAttributes,{onClick:t[0]||(t[0]=(...s)=>u.handleClick&&u.handleClick(...s))}),[ae(e.$slots,"icon",{},()=>[z("span",{class:we([[e.isIconUrl?"action-button__icon--url":e.icon],"action-button__icon"]),style:Ve({backgroundImage:e.isIconUrl?`url(${e.icon})`:null}),"aria-hidden":"true"},null,6)],!0),z("span",Ng,[e.name?(p(),j("strong",Mg,De(e.name),1)):$("",!0),e.isLongText?(p(),j("span",{key:1,class:"action-button__longtext",textContent:De(e.text)},null,8,Tg)):(p(),j("span",Pg,De(e.text),1)),a.description?(p(),j("span",{key:3,class:"action-button__description",textContent:De(a.description)},null,8,zg)):$("",!0)]),a.isMenu?(p(),pe(n,{key:0,class:"action-button__menu-icon",directional:"",path:i.mdiChevronRight},null,8,["path"])):u.isChecked?(p(),pe(n,{key:1,path:i.mdiCheck,class:"action-button__pressed-icon"},null,8,["path"])):u.isChecked===!1?(p(),j("span",Og)):$("",!0),$("",!0)],16,Sg)],10,qg)}const $g=Ft(Ag,[["render",Lg],["__scopeId","data-v-6c2daf4e"]]);Te(),Te();const Ig=["for"],Rg=["id","type","value","min","max"],Hg=Ge({inheritAttrs:!1,__name:"NcDateTimePickerNative",props:ka({class:{default:void 0},id:{default:()=>Aa()},inputClass:{default:""},type:{default:"date"},label:{default:()=>_e("Please choose a date")},min:{default:null},max:{default:null},hideLabel:{type:Boolean}},{modelValue:{default:null},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=Ga(e,"modelValue"),a=e,i=K(()=>t.value?s(t.value):""),r=K(()=>a.max?s(a.max):void 0),u=K(()=>a.min?s(a.min):void 0);function n(_){const d=_.getFullYear().toString().padStart(4,"0"),l=(_.getMonth()+1).toString().padStart(2,"0"),m=_.getDate().toString().padStart(2,"0"),f=_.getHours().toString().padStart(2,"0"),h=_.getMinutes().toString().padStart(2,"0");return{yyyy:d,MM:l,dd:m,hh:f,mm:h}}function s(_){const{yyyy:d,MM:l,dd:m,hh:f,mm:h}=n(_);if(a.type==="datetime-local")return`${d}-${l}-${m}T${f}:${h}`;if(a.type==="date")return`${d}-${l}-${m}`;if(a.type==="month")return`${d}-${l}`;if(a.type==="time")return`${f}:${h}`;if(a.type==="week"){const F=new Date(Number.parseInt(d),0,1),c=Math.floor((_.getTime()-F.getTime())/(1440*60*1e3)),y=Math.ceil(c/7);return`${d}-W${y}`}return""}function o(_){const d=_.target;if(!d||isNaN(d.valueAsNumber))t.value=null;else if(a.type==="time"){const l=d.value,{yyyy:m,MM:f,dd:h}=n(t.value||new Date);t.value=new Date(`${m}-${f}-${h}T${l}`)}else if(a.type==="month"){const l=(new Date(d.value).getMonth()+1).toString().padStart(2,"0"),{yyyy:m,dd:f,hh:h,mm:F}=n(t.value||new Date);t.value=new Date(`${m}-${l}-${f}T${h}:${F}`)}else{const l=new Date(d.valueAsNumber).getTimezoneOffset()*1e3*60,m=d.valueAsNumber+l;t.value=new Date(m)}}return(_,d)=>(p(),j("div",{class:we(["native-datetime-picker",_.$props.class])},[z("label",{class:we(["native-datetime-picker__label",{"hidden-visually":_.hideLabel}]),for:_.id},De(_.label),11,Ig),z("input",Le({id:_.id,class:["native-datetime-picker__input",_.inputClass],type:_.type,value:i.value,min:u.value,max:r.value},_.$attrs,{onInput:o}),null,16,Rg)],2))}}),N6=Ft(Hg,[["__scopeId","data-v-b97e1f7a"]]);Te(z0),_e("Submit");const Wg={name:"NcActionLink",mixins:[su],inject:{isInSemanticMenu:{from:cr,default:!1}},props:{href:{type:String,required:!0,validator:e=>{try{return new URL(e)}catch{return e.startsWith("#")||e.startsWith("/")}}},download:{type:String,default:null},target:{type:String,default:"_self",validator:e=>e&&(!e.startsWith("_")||["_blank","_self","_parent","_top"].indexOf(e)>-1)},title:{type:String,default:null}}},Vg=["role"],Yg=["download","href","aria-label","target","title","role"],Ug={key:0,class:"action-link__longtext-wrapper"},Gg={class:"action-link__name"},Kg=["textContent"],Zg=["textContent"],Jg={key:2,class:"action-link__text"};function Qg(e,t,a,i,r,u){return p(),j("li",{class:"action",role:u.isInSemanticMenu&&"presentation"},[z("a",{download:a.download,href:a.href,"aria-label":e.ariaLabel,target:a.target,title:a.title,class:"action-link focusable",rel:"nofollow noreferrer noopener",role:u.isInSemanticMenu&&"menuitem",onClick:t[0]||(t[0]=(...n)=>e.onClick&&e.onClick(...n))},[ae(e.$slots,"icon",{},()=>[z("span",{"aria-hidden":"true",class:we(["action-link__icon",[e.isIconUrl?"action-link__icon--url":e.icon]]),style:Ve({backgroundImage:e.isIconUrl?`url(${e.icon})`:null})},null,6)],!0),e.name?(p(),j("span",Ug,[z("strong",Gg,De(e.name),1),t[1]||(t[1]=z("br",null,null,-1)),z("span",{class:"action-link__longtext",textContent:De(e.text)},null,8,Kg)])):e.isLongText?(p(),j("span",{key:1,class:"action-link__longtext",textContent:De(e.text)},null,8,Zg)):(p(),j("span",Jg,De(e.text),1)),$("",!0)],8,Yg)],8,Vg)}const Xg=Ft(Wg,[["render",Qg],["__scopeId","data-v-32f01b7a"]]),e1={name:"NcActionRouter",mixins:[su],inject:{isInSemanticMenu:{from:cr,default:!1}},props:{to:{type:[String,Object],required:!0}}},t1=["role"],a1={key:0,class:"action-router__longtext-wrapper"},i1={class:"action-router__name"},r1=["textContent"],u1=["textContent"],n1={key:2,class:"action-router__text"};function s1(e,t,a,i,r,u){const n=$e("RouterLink");return p(),j("li",{class:"action",role:u.isInSemanticMenu&&"presentation"},[ve(n,{"aria-label":e.ariaLabel,class:"action-router focusable",rel:"nofollow noreferrer noopener",role:u.isInSemanticMenu&&"menuitem",title:e.title,to:a.to,onClick:e.onClick},{default:ge(()=>[ae(e.$slots,"icon",{},()=>[z("span",{"aria-hidden":"true",class:we(["action-router__icon",[e.isIconUrl?"action-router__icon--url":e.icon]]),style:Ve({backgroundImage:e.isIconUrl?`url(${e.icon})`:null})},null,6)],!0),e.name?(p(),j("span",a1,[z("strong",i1,De(e.name),1),t[0]||(t[0]=z("br",null,null,-1)),z("span",{class:"action-router__longtext",textContent:De(e.text)},null,8,r1)])):e.isLongText?(p(),j("span",{key:1,class:"action-router__longtext",textContent:De(e.text)},null,8,u1)):(p(),j("span",n1,De(e.text),1)),$("",!0)]),_:3},8,["aria-label","role","title","to","onClick"])],8,t1)}const o1=Ft(e1,[["render",s1],["__scopeId","data-v-87267750"]]);function rr(){return window._nc_focus_trap??=[],window._nc_focus_trap}function l1(){let e=[];return{pause(){e=[...rr()];for(const t of e)t.pause()},unpause(){if(e.length===rr().length)for(const t of e)t.unpause();e=[]}}}function pl(e,t={}){const a=l1();rt(e,()=>{et(t.disabled)||(et(e)?a.pause():a.unpause())}),ua(()=>{a.unpause()})}const d1=["top","right","bottom","left"],As=["start","end"],qs=d1.reduce((e,t)=>e.concat(t,t+"-"+As[0],t+"-"+As[1]),[]),Ka=Math.min,Lt=Math.max,Ir=Math.round,kr=Math.floor,pa=e=>({x:e,y:e}),g1={left:"right",right:"left",bottom:"top",top:"bottom"},_1={start:"end",end:"start"};function rn(e,t,a){return Lt(e,Ka(t,a))}function Sa(e,t){return typeof e=="function"?e(t):e}function na(e){return e.split("-")[0]}function aa(e){return e.split("-")[1]}function Rn(e){return e==="x"?"y":"x"}function Hn(e){return e==="y"?"height":"width"}const f1=new Set(["top","bottom"]);function ha(e){return f1.has(na(e))?"y":"x"}function Wn(e){return Rn(ha(e))}function bl(e,t,a){a===void 0&&(a=!1);const i=aa(e),r=Wn(e),u=Hn(r);let n=r==="x"?i===(a?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[u]>t.floating[u]&&(n=Hr(n)),[n,Hr(n)]}function m1(e){const t=Hr(e);return[Rr(e),t,Rr(t)]}function Rr(e){return e.replace(/start|end/g,t=>_1[t])}const Ss=["left","right"],Ns=["right","left"],h1=["top","bottom"],c1=["bottom","top"];function F1(e,t,a){switch(e){case"top":case"bottom":return a?t?Ns:Ss:t?Ss:Ns;case"left":case"right":return t?h1:c1;default:return[]}}function p1(e,t,a,i){const r=aa(e);let u=F1(na(e),a==="start",i);return r&&(u=u.map(n=>n+"-"+r),t&&(u=u.concat(u.map(Rr)))),u}function Hr(e){return e.replace(/left|right|bottom|top/g,t=>g1[t])}function b1(e){return{top:0,right:0,bottom:0,left:0,...e}}function yl(e){return typeof e!="number"?b1(e):{top:e,right:e,bottom:e,left:e}}function li(e){const{x:t,y:a,width:i,height:r}=e;return{width:i,height:r,top:a,left:t,right:t+i,bottom:a+r,x:t,y:a}}function Ms(e,t,a){let{reference:i,floating:r}=e;const u=ha(t),n=Wn(t),s=Hn(n),o=na(t),_=u==="y",d=i.x+i.width/2-r.width/2,l=i.y+i.height/2-r.height/2,m=i[s]/2-r[s]/2;let f;switch(o){case"top":f={x:d,y:i.y-r.height};break;case"bottom":f={x:d,y:i.y+i.height};break;case"right":f={x:i.x+i.width,y:l};break;case"left":f={x:i.x-r.width,y:l};break;default:f={x:i.x,y:i.y}}switch(aa(t)){case"start":f[n]-=m*(a&&_?-1:1);break;case"end":f[n]+=m*(a&&_?-1:1);break}return f}const wl=async(e,t,a)=>{const{placement:i="bottom",strategy:r="absolute",middleware:u=[],platform:n}=a,s=u.filter(Boolean),o=await(n.isRTL==null?void 0:n.isRTL(t));let _=await n.getElementRects({reference:e,floating:t,strategy:r}),{x:d,y:l}=Ms(_,i,o),m=i,f={},h=0;for(let F=0;F({name:"arrow",options:e,async fn(t){const{x:a,y:i,placement:r,rects:u,platform:n,elements:s,middlewareData:o}=t,{element:_,padding:d=0}=Sa(e,t)||{};if(_==null)return{};const l=yl(d),m={x:a,y:i},f=Wn(r),h=Hn(f),F=await n.getDimensions(_),c=f==="y",y=c?"top":"left",w=c?"bottom":"right",D=c?"clientHeight":"clientWidth",T=u.reference[h]+u.reference[f]-m[f]-u.floating[h],O=m[f]-u.reference[f],N=await(n.getOffsetParent==null?void 0:n.getOffsetParent(_));let L=N?N[D]:0;(!L||!await(n.isElement==null?void 0:n.isElement(N)))&&(L=s.floating[D]||u.floating[h]);const R=T/2-O/2,Y=L/2-F[h]/2-1,W=Ka(l[y],Y),S=Ka(l[w],Y),H=W,re=L-F[h]-S,B=L/2-F[h]/2+R,M=rn(H,B,re),q=!o.arrow&&aa(r)!=null&&B!==M&&u.reference[h]/2-(Baa(i)===e),...a.filter(i=>aa(i)!==e)]:a.filter(i=>na(i)===i)).filter(i=>e?aa(i)===e||(t?Rr(i)!==i:!1):!0)}const k1=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var a,i,r;const{rects:u,middlewareData:n,placement:s,platform:o,elements:_}=t,{crossAxis:d=!1,alignment:l,allowedPlacements:m=qs,autoAlignment:f=!0,...h}=Sa(e,t),F=l!==void 0||m===qs?w1(l||null,f,m):m,c=await ou(t,h),y=((a=n.autoPlacement)==null?void 0:a.index)||0,w=F[y];if(w==null)return{};const D=bl(w,u,await(o.isRTL==null?void 0:o.isRTL(_.floating)));if(s!==w)return{reset:{placement:F[0]}};const T=[c[na(w)],c[D[0]],c[D[1]]],O=[...((i=n.autoPlacement)==null?void 0:i.overflows)||[],{placement:w,overflows:T}],N=F[y+1];if(N)return{data:{index:y+1,overflows:O},reset:{placement:N}};const L=O.map(Y=>{const W=aa(Y.placement);return[Y.placement,W&&d?Y.overflows.slice(0,2).reduce((S,H)=>S+H,0):Y.overflows[0],Y.overflows]}).sort((Y,W)=>Y[1]-W[1]),R=((r=L.filter(Y=>Y[2].slice(0,aa(Y[0])?2:3).every(W=>W<=0))[0])==null?void 0:r[0])||L[0][0];return R!==s?{data:{index:y+1,overflows:O},reset:{placement:R}}:{}}}},kl=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var a,i;const{placement:r,middlewareData:u,rects:n,initialPlacement:s,platform:o,elements:_}=t,{mainAxis:d=!0,crossAxis:l=!0,fallbackPlacements:m,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:F=!0,...c}=Sa(e,t);if((a=u.arrow)!=null&&a.alignmentOffset)return{};const y=na(r),w=ha(s),D=na(s)===s,T=await(o.isRTL==null?void 0:o.isRTL(_.floating)),O=m||(D||!F?[Hr(s)]:m1(s)),N=h!=="none";!m&&N&&O.push(...p1(s,F,h,T));const L=[s,...O],R=await ou(t,c),Y=[];let W=((i=u.flip)==null?void 0:i.overflows)||[];if(d&&Y.push(R[y]),l){const B=bl(r,n,T);Y.push(R[B[0]],R[B[1]])}if(W=[...W,{placement:r,overflows:Y}],!Y.every(B=>B<=0)){var S,H;const B=(((S=u.flip)==null?void 0:S.index)||0)+1,M=L[B];if(M&&(!(l==="alignment"&&w!==ha(M))||W.every(I=>ha(I.placement)===w?I.overflows[0]>0:!0)))return{data:{index:B,overflows:W},reset:{placement:M}};let q=(H=W.filter(I=>I.overflows[0]<=0).sort((I,te)=>I.overflows[1]-te.overflows[1])[0])==null?void 0:H.placement;if(!q)switch(f){case"bestFit":{var re;const I=(re=W.filter(te=>{if(N){const V=ha(te.placement);return V===w||V==="y"}return!0}).map(te=>[te.placement,te.overflows.filter(V=>V>0).reduce((V,oe)=>V+oe,0)]).sort((te,V)=>te[1]-V[1])[0])==null?void 0:re[0];I&&(q=I);break}case"initialPlacement":q=s;break}if(r!==q)return{reset:{placement:q}}}return{}}}},vl=new Set(["left","top"]);async function v1(e,t){const{placement:a,platform:i,elements:r}=e,u=await(i.isRTL==null?void 0:i.isRTL(r.floating)),n=na(a),s=aa(a),o=ha(a)==="y",_=vl.has(n)?-1:1,d=u&&o?-1:1,l=Sa(t,e);let{mainAxis:m,crossAxis:f,alignmentAxis:h}=typeof l=="number"?{mainAxis:l,crossAxis:0,alignmentAxis:null}:{mainAxis:l.mainAxis||0,crossAxis:l.crossAxis||0,alignmentAxis:l.alignmentAxis};return s&&typeof h=="number"&&(f=s==="end"?h*-1:h),o?{x:f*d,y:m*_}:{x:m*_,y:f*d}}const Dl=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var a,i;const{x:r,y:u,placement:n,middlewareData:s}=t,o=await v1(t,e);return n===((a=s.offset)==null?void 0:a.placement)&&(i=s.arrow)!=null&&i.alignmentOffset?{}:{x:r+o.x,y:u+o.y,data:{...o,placement:n}}}}},El=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:a,y:i,placement:r}=t,{mainAxis:u=!0,crossAxis:n=!1,limiter:s={fn:c=>{let{x:y,y:w}=c;return{x:y,y:w}}},...o}=Sa(e,t),_={x:a,y:i},d=await ou(t,o),l=ha(na(r)),m=Rn(l);let f=_[m],h=_[l];if(u){const c=m==="y"?"top":"left",y=m==="y"?"bottom":"right",w=f+d[c],D=f-d[y];f=rn(w,f,D)}if(n){const c=l==="y"?"top":"left",y=l==="y"?"bottom":"right",w=h+d[c],D=h-d[y];h=rn(w,h,D)}const F=s.fn({...t,[m]:f,[l]:h});return{...F,data:{x:F.x-a,y:F.y-i,enabled:{[m]:u,[l]:n}}}}}},D1=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:a,y:i,placement:r,rects:u,middlewareData:n}=t,{offset:s=0,mainAxis:o=!0,crossAxis:_=!0}=Sa(e,t),d={x:a,y:i},l=ha(r),m=Rn(l);let f=d[m],h=d[l];const F=Sa(s,t),c=typeof F=="number"?{mainAxis:F,crossAxis:0}:{mainAxis:0,crossAxis:0,...F};if(o){const D=m==="y"?"height":"width",T=u.reference[m]-u.floating[D]+c.mainAxis,O=u.reference[m]+u.reference[D]-c.mainAxis;fO&&(f=O)}if(_){var y,w;const D=m==="y"?"width":"height",T=vl.has(na(r)),O=u.reference[l]-u.floating[D]+(T&&((y=n.offset)==null?void 0:y[l])||0)+(T?0:c.crossAxis),N=u.reference[l]+u.reference[D]+(T?0:((w=n.offset)==null?void 0:w[l])||0)-(T?c.crossAxis:0);hN&&(h=N)}return{[m]:f,[l]:h}}}},E1=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var a,i;const{placement:r,rects:u,platform:n,elements:s}=t,{apply:o=()=>{},..._}=Sa(e,t),d=await ou(t,_),l=na(r),m=aa(r),f=ha(r)==="y",{width:h,height:F}=u.floating;let c,y;l==="top"||l==="bottom"?(c=l,y=m===(await(n.isRTL==null?void 0:n.isRTL(s.floating))?"start":"end")?"left":"right"):(y=l,c=m==="end"?"top":"bottom");const w=F-d.top-d.bottom,D=h-d.left-d.right,T=Ka(F-d[c],w),O=Ka(h-d[y],D),N=!t.middlewareData.shift;let L=T,R=O;if((a=t.middlewareData.shift)!=null&&a.enabled.x&&(R=D),(i=t.middlewareData.shift)!=null&&i.enabled.y&&(L=w),N&&!m){const W=Lt(d.left,0),S=Lt(d.right,0),H=Lt(d.top,0),re=Lt(d.bottom,0);f?R=h-2*(W!==0||S!==0?W+S:Lt(d.left,d.right)):L=F-2*(H!==0||re!==0?H+re:Lt(d.top,d.bottom))}await o({...t,availableWidth:R,availableHeight:L});const Y=await n.getDimensions(s.floating);return h!==Y.width||F!==Y.height?{reset:{rects:!0}}:{}}}};function Yt(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ba(e){return Yt(e).getComputedStyle(e)}const Ts=Math.min,Zi=Math.max,Wr=Math.round;function Cl(e){const t=ba(e);let a=parseFloat(t.width),i=parseFloat(t.height);const r=e.offsetWidth,u=e.offsetHeight,n=Wr(a)!==r||Wr(i)!==u;return n&&(a=r,i=u),{width:a,height:i,fallback:n}}function Za(e){return Bl(e)?(e.nodeName||"").toLowerCase():""}let vr;function xl(){if(vr)return vr;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(vr=e.brands.map((t=>t.brand+"/"+t.version)).join(" "),vr):navigator.userAgent}function ya(e){return e instanceof Yt(e).HTMLElement}function Ra(e){return e instanceof Yt(e).Element}function Bl(e){return e instanceof Yt(e).Node}function Ps(e){return typeof ShadowRoot>"u"?!1:e instanceof Yt(e).ShadowRoot||e instanceof ShadowRoot}function lu(e){const{overflow:t,overflowX:a,overflowY:i,display:r}=ba(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+a)&&!["inline","contents"].includes(r)}function C1(e){return["table","td","th"].includes(Za(e))}function un(e){const t=/firefox/i.test(xl()),a=ba(e),i=a.backdropFilter||a.WebkitBackdropFilter;return a.transform!=="none"||a.perspective!=="none"||!!i&&i!=="none"||t&&a.willChange==="filter"||t&&!!a.filter&&a.filter!=="none"||["transform","perspective"].some((r=>a.willChange.includes(r)))||["paint","layout","strict","content"].some((r=>{const u=a.contain;return u!=null&&u.includes(r)}))}function jl(){return!/^((?!chrome|android).)*safari/i.test(xl())}function Vn(e){return["html","body","#document"].includes(Za(e))}function Al(e){return Ra(e)?e:e.contextElement}const ql={x:1,y:1};function Ei(e){const t=Al(e);if(!ya(t))return ql;const a=t.getBoundingClientRect(),{width:i,height:r,fallback:u}=Cl(t);let n=(u?Wr(a.width):a.width)/i,s=(u?Wr(a.height):a.height)/r;return n&&Number.isFinite(n)||(n=1),s&&Number.isFinite(s)||(s=1),{x:n,y:s}}function ur(e,t,a,i){var r,u;t===void 0&&(t=!1),a===void 0&&(a=!1);const n=e.getBoundingClientRect(),s=Al(e);let o=ql;t&&(i?Ra(i)&&(o=Ei(i)):o=Ei(e));const _=s?Yt(s):window,d=!jl()&&a;let l=(n.left+(d&&((r=_.visualViewport)==null?void 0:r.offsetLeft)||0))/o.x,m=(n.top+(d&&((u=_.visualViewport)==null?void 0:u.offsetTop)||0))/o.y,f=n.width/o.x,h=n.height/o.y;if(s){const F=Yt(s),c=i&&Ra(i)?Yt(i):i;let y=F.frameElement;for(;y&&i&&c!==F;){const w=Ei(y),D=y.getBoundingClientRect(),T=getComputedStyle(y);D.x+=(y.clientLeft+parseFloat(T.paddingLeft))*w.x,D.y+=(y.clientTop+parseFloat(T.paddingTop))*w.y,l*=w.x,m*=w.y,f*=w.x,h*=w.y,l+=D.x,m+=D.y,y=Yt(y).frameElement}}return{width:f,height:h,top:m,right:l+f,bottom:m+h,left:l,x:l,y:m}}function Ha(e){return((Bl(e)?e.ownerDocument:e.document)||window.document).documentElement}function du(e){return Ra(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Sl(e){return ur(Ha(e)).left+du(e).scrollLeft}function nr(e){if(Za(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ps(e)&&e.host||Ha(e);return Ps(t)?t.host:t}function Nl(e){const t=nr(e);return Vn(t)?t.ownerDocument.body:ya(t)&&lu(t)?t:Nl(t)}function Vr(e,t){var a;t===void 0&&(t=[]);const i=Nl(e),r=i===((a=e.ownerDocument)==null?void 0:a.body),u=Yt(i);return r?t.concat(u,u.visualViewport||[],lu(i)?i:[]):t.concat(i,Vr(i))}function zs(e,t,a){return t==="viewport"?li((function(i,r){const u=Yt(i),n=Ha(i),s=u.visualViewport;let o=n.clientWidth,_=n.clientHeight,d=0,l=0;if(s){o=s.width,_=s.height;const m=jl();(m||!m&&r==="fixed")&&(d=s.offsetLeft,l=s.offsetTop)}return{width:o,height:_,x:d,y:l}})(e,a)):Ra(t)?li((function(i,r){const u=ur(i,!0,r==="fixed"),n=u.top+i.clientTop,s=u.left+i.clientLeft,o=ya(i)?Ei(i):{x:1,y:1};return{width:i.clientWidth*o.x,height:i.clientHeight*o.y,x:s*o.x,y:n*o.y}})(t,a)):li((function(i){const r=Ha(i),u=du(i),n=i.ownerDocument.body,s=Zi(r.scrollWidth,r.clientWidth,n.scrollWidth,n.clientWidth),o=Zi(r.scrollHeight,r.clientHeight,n.scrollHeight,n.clientHeight);let _=-u.scrollLeft+Sl(i);const d=-u.scrollTop;return ba(n).direction==="rtl"&&(_+=Zi(r.clientWidth,n.clientWidth)-s),{width:s,height:o,x:_,y:d}})(Ha(e)))}function Os(e){return ya(e)&&ba(e).position!=="fixed"?e.offsetParent:null}function Ls(e){const t=Yt(e);let a=Os(e);for(;a&&C1(a)&&ba(a).position==="static";)a=Os(a);return a&&(Za(a)==="html"||Za(a)==="body"&&ba(a).position==="static"&&!un(a))?t:a||(function(i){let r=nr(i);for(;ya(r)&&!Vn(r);){if(un(r))return r;r=nr(r)}return null})(e)||t}function x1(e,t,a){const i=ya(t),r=Ha(t),u=ur(e,!0,a==="fixed",t);let n={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if(i||!i&&a!=="fixed")if((Za(t)!=="body"||lu(r))&&(n=du(t)),ya(t)){const o=ur(t,!0);s.x=o.x+t.clientLeft,s.y=o.y+t.clientTop}else r&&(s.x=Sl(r));return{x:u.left+n.scrollLeft-s.x,y:u.top+n.scrollTop-s.y,width:u.width,height:u.height}}const B1={getClippingRect:function(e){let{element:t,boundary:a,rootBoundary:i,strategy:r}=e;const u=a==="clippingAncestors"?(function(_,d){const l=d.get(_);if(l)return l;let m=Vr(_).filter((c=>Ra(c)&&Za(c)!=="body")),f=null;const h=ba(_).position==="fixed";let F=h?nr(_):_;for(;Ra(F)&&!Vn(F);){const c=ba(F),y=un(F);(h?y||f:y||c.position!=="static"||!f||!["absolute","fixed"].includes(f.position))?f=c:m=m.filter((w=>w!==F)),F=nr(F)}return d.set(_,m),m})(t,this._c):[].concat(a),n=[...u,i],s=n[0],o=n.reduce(((_,d)=>{const l=zs(t,d,r);return _.top=Zi(l.top,_.top),_.right=Ts(l.right,_.right),_.bottom=Ts(l.bottom,_.bottom),_.left=Zi(l.left,_.left),_}),zs(t,s,r));return{width:o.right-o.left,height:o.bottom-o.top,x:o.left,y:o.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:a,strategy:i}=e;const r=ya(a),u=Ha(a);if(a===u)return t;let n={scrollLeft:0,scrollTop:0},s={x:1,y:1};const o={x:0,y:0};if((r||!r&&i!=="fixed")&&((Za(a)!=="body"||lu(u))&&(n=du(a)),ya(a))){const _=ur(a);s=Ei(a),o.x=_.x+a.clientLeft,o.y=_.y+a.clientTop}return{width:t.width*s.x,height:t.height*s.y,x:t.x*s.x-n.scrollLeft*s.x+o.x,y:t.y*s.y-n.scrollTop*s.y+o.y}},isElement:Ra,getDimensions:function(e){return ya(e)?Cl(e):e.getBoundingClientRect()},getOffsetParent:Ls,getDocumentElement:Ha,getScale:Ei,async getElementRects(e){let{reference:t,floating:a,strategy:i}=e;const r=this.getOffsetParent||Ls,u=this.getDimensions;return{reference:x1(t,await r(a),i),floating:{x:0,y:0,...await u(a)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>ba(e).direction==="rtl"},j1=(e,t,a)=>{const i=new Map,r={platform:B1,...a},u={...r.platform,_c:i};return wl(e,t,{...r,platform:u})},Wa={disabled:!1,distance:5,skidding:0,container:"body",boundary:void 0,instantMove:!1,disposeTimeout:150,popperTriggers:[],strategy:"absolute",preventOverflow:!0,flip:!0,shift:!0,overflowPadding:0,arrowPadding:0,arrowOverflow:!0,autoHideOnMousedown:!1,themes:{tooltip:{placement:"top",triggers:["hover","focus","touch"],hideTriggers:e=>[...e,"click"],delay:{show:200,hide:0},handleResize:!1,html:!1,loadingContent:"..."},dropdown:{placement:"bottom",triggers:["click"],delay:0,handleResize:!0,autoHide:!0},menu:{$extend:"dropdown",triggers:["hover","focus"],popperTriggers:["hover"],delay:{show:0,hide:400}}}};function nn(e,t){let a=Wa.themes[e]||{},i;do i=a[t],typeof i>"u"?a.$extend?a=Wa.themes[a.$extend]||{}:(a=null,i=Wa[t]):a=null;while(a);return i}function A1(e){const t=[e];let a=Wa.themes[e]||{};do a.$extend&&!a.$resetCss?(t.push(a.$extend),a=Wa.themes[a.$extend]||{}):a=null;while(a);return t.map(i=>`v-popper--theme-${i}`)}function $s(e){const t=[e];let a=Wa.themes[e]||{};do a.$extend?(t.push(a.$extend),a=Wa.themes[a.$extend]||{}):a=null;while(a);return t}let sr=!1;if(typeof window<"u"){sr=!1;try{const e=Object.defineProperty({},"passive",{get(){sr=!0}});window.addEventListener("test",null,e)}catch{}}let Ml=!1;typeof window<"u"&&typeof navigator<"u"&&(Ml=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const q1=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),Is={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},Rs={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function Hs(e,t){const a=e.indexOf(t);a!==-1&&e.splice(a,1)}function Cu(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const Xt=[];let ii=null;const Ws={};function Vs(e){let t=Ws[e];return t||(t=Ws[e]=[]),t}let sn=function(){};typeof window<"u"&&(sn=window.Element);function Ue(e){return function(t){return nn(t.theme,e)}}const xu="__floating-vue__popper",Tl=()=>Ge({name:"VPopper",provide(){return{[xu]:{parentPopper:this}}},inject:{[xu]:{default:null}},props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,default:null},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:Ue("disabled")},positioningDisabled:{type:Boolean,default:Ue("positioningDisabled")},placement:{type:String,default:Ue("placement"),validator:e=>q1.includes(e)},delay:{type:[String,Number,Object],default:Ue("delay")},distance:{type:[Number,String],default:Ue("distance")},skidding:{type:[Number,String],default:Ue("skidding")},triggers:{type:Array,default:Ue("triggers")},showTriggers:{type:[Array,Function],default:Ue("showTriggers")},hideTriggers:{type:[Array,Function],default:Ue("hideTriggers")},popperTriggers:{type:Array,default:Ue("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:Ue("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:Ue("popperHideTriggers")},container:{type:[String,Object,sn,Boolean],default:Ue("container")},boundary:{type:[String,sn],default:Ue("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),default:Ue("strategy")},autoHide:{type:[Boolean,Function],default:Ue("autoHide")},handleResize:{type:Boolean,default:Ue("handleResize")},instantMove:{type:Boolean,default:Ue("instantMove")},eagerMount:{type:Boolean,default:Ue("eagerMount")},popperClass:{type:[String,Array,Object],default:Ue("popperClass")},computeTransformOrigin:{type:Boolean,default:Ue("computeTransformOrigin")},autoMinSize:{type:Boolean,default:Ue("autoMinSize")},autoSize:{type:[Boolean,String],default:Ue("autoSize")},autoMaxSize:{type:Boolean,default:Ue("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:Ue("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:Ue("preventOverflow")},overflowPadding:{type:[Number,String],default:Ue("overflowPadding")},arrowPadding:{type:[Number,String],default:Ue("arrowPadding")},arrowOverflow:{type:Boolean,default:Ue("arrowOverflow")},flip:{type:Boolean,default:Ue("flip")},shift:{type:Boolean,default:Ue("shift")},shiftCrossAxis:{type:Boolean,default:Ue("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:Ue("noAutoFocus")},disposeTimeout:{type:Number,default:Ue("disposeTimeout")}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},data(){return{isShown:!1,isMounted:!1,skipTransition:!1,classes:{showFrom:!1,showTo:!1,hideFrom:!1,hideTo:!0},result:{x:0,y:0,placement:"",strategy:this.strategy,arrow:{x:0,y:0,centerOffset:0},transformOrigin:null},randomId:`popper_${[Math.random(),Date.now()].map(e=>e.toString(36).substring(2,10)).join("_")}`,shownChildren:new Set,lastAutoHide:!0,pendingHide:!1,containsGlobalTarget:!1,isDisposed:!0,mouseDownContains:!1}},computed:{popperId(){return this.ariaId!=null?this.ariaId:this.randomId},shouldMountContent(){return this.eagerMount||this.isMounted},slotData(){return{popperId:this.popperId,isShown:this.isShown,shouldMountContent:this.shouldMountContent,skipTransition:this.skipTransition,autoHide:typeof this.autoHide=="function"?this.lastAutoHide:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:{...this.classes,popperClass:this.popperClass},result:this.positioningDisabled?null:this.result,attrs:this.$attrs}},parentPopper(){var e;return(e=this[xu])==null?void 0:e.parentPopper},hasPopperShowTriggerHover(){var e,t;return((e=this.popperTriggers)==null?void 0:e.includes("hover"))||((t=this.popperShowTriggers)==null?void 0:t.includes("hover"))}},watch:{shown:"$_autoShowHide",disabled(e){e?this.dispose():this.init()},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition())},triggers:{handler:"$_refreshListeners",deep:!0},positioningDisabled:"$_refreshListeners",...["placement","distance","skidding","boundary","strategy","overflowPadding","arrowPadding","preventOverflow","shift","shiftCrossAxis","flip"].reduce((e,t)=>(e[t]="$_computePosition",e),{})},created(){this.autoMinSize&&console.warn('[floating-vue] `autoMinSize` option is deprecated. Use `autoSize="min"` instead.'),this.autoMaxSize&&console.warn("[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.")},mounted(){this.init(),this.$_detachPopperNode()},activated(){this.$_autoShowHide()},deactivated(){this.hide()},beforeUnmount(){this.dispose()},methods:{show({event:e=null,skipDelay:t=!1,force:a=!1}={}){var i,r;(i=this.parentPopper)!=null&&i.lockedChild&&this.parentPopper.lockedChild!==this||(this.pendingHide=!1,(a||!this.disabled)&&(((r=this.parentPopper)==null?void 0:r.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_scheduleShow(e,t),this.$emit("show"),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit("update:shown",!0))},hide({event:e=null,skipDelay:t=!1}={}){var a;if(!this.$_hideInProgress){if(this.shownChildren.size>0){this.pendingHide=!0;return}if(this.hasPopperShowTriggerHover&&this.$_isAimingPopper()){this.parentPopper&&(this.parentPopper.lockedChild=this,clearTimeout(this.parentPopper.lockedChildTimer),this.parentPopper.lockedChildTimer=setTimeout(()=>{this.parentPopper.lockedChild===this&&(this.parentPopper.lockedChild.hide({skipDelay:t}),this.parentPopper.lockedChild=null)},1e3));return}((a=this.parentPopper)==null?void 0:a.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.pendingHide=!1,this.$_scheduleHide(e,t),this.$emit("hide"),this.$emit("update:shown",!1)}},init(){var e;this.isDisposed&&(this.isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=((e=this.referenceNode)==null?void 0:e.call(this))??this.$el,this.$_targetNodes=this.targetNodes().filter(t=>t.nodeType===t.ELEMENT_NODE),this.$_popperNode=this.popperNode(),this.$_innerNode=this.$_popperNode.querySelector(".v-popper__inner"),this.$_arrowNode=this.$_popperNode.querySelector(".v-popper__arrow-container"),this.$_swapTargetAttrs("title","data-original-title"),this.$_detachPopperNode(),this.triggers.length&&this.$_addEventListeners(),this.shown&&this.show())},dispose(){this.isDisposed||(this.isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.$_detachPopperNode(),this.isMounted=!1,this.isShown=!1,this.$_updateParentShownChildren(!1),this.$_swapTargetAttrs("data-original-title","title"))},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit("resize"))},async $_computePosition(){if(this.isDisposed||this.positioningDisabled)return;const e={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&e.middleware.push(Dl({mainAxis:this.distance,crossAxis:this.skidding}));const t=this.placement.startsWith("auto");if(t?e.middleware.push(k1({alignment:this.placement.split("-")[1]??""})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(El({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e.middleware.push(kl({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(y1({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&e.middleware.push({name:"arrowOverflow",fn:({placement:i,rects:r,middlewareData:u})=>{let n;const{centerOffset:s}=u.arrow;return i.startsWith("top")||i.startsWith("bottom")?n=Math.abs(s)>r.reference.width/2:n=Math.abs(s)>r.reference.height/2,{data:{overflow:n}}}}),this.autoMinSize||this.autoSize){const i=this.autoSize?this.autoSize:this.autoMinSize?"min":null;e.middleware.push({name:"autoSize",fn:({rects:r,placement:u,middlewareData:n})=>{var s;if((s=n.autoSize)!=null&&s.skip)return{};let o,_;return u.startsWith("top")||u.startsWith("bottom")?o=r.reference.width:_=r.reference.height,this.$_innerNode.style[i==="min"?"minWidth":i==="max"?"maxWidth":"width"]=o!=null?`${o}px`:null,this.$_innerNode.style[i==="min"?"minHeight":i==="max"?"maxHeight":"height"]=_!=null?`${_}px`:null,{data:{skip:!0},reset:{rects:!0}}}})}(this.autoMaxSize||this.autoBoundaryMaxSize)&&(this.$_innerNode.style.maxWidth=null,this.$_innerNode.style.maxHeight=null,e.middleware.push(E1({boundary:this.boundary,padding:this.overflowPadding,apply:({availableWidth:i,availableHeight:r})=>{this.$_innerNode.style.maxWidth=i!=null?`${i}px`:null,this.$_innerNode.style.maxHeight=r!=null?`${r}px`:null}})));const a=await j1(this.$_referenceNode,this.$_popperNode,e);Object.assign(this.result,{x:a.x,y:a.y,placement:a.placement,strategy:a.strategy,arrow:{...a.middlewareData.arrow,...a.middlewareData.arrowOverflow}})},$_scheduleShow(e,t=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),ii&&this.instantMove&&ii.instantMove&&ii!==this.parentPopper){ii.$_applyHide(!0),this.$_applyShow(!0);return}t?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay("show"))},$_scheduleHide(e,t=!1){if(this.shownChildren.size>0){this.pendingHide=!0;return}this.$_updateParentShownChildren(!1),this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(ii=this),t?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay("hide"))},$_computeDelay(e){const t=this.delay;return parseInt(t&&t[e]||t||0)},async $_applyShow(e=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=e,!this.isShown&&(this.$_ensureTeleport(),await Cu(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...Vr(this.$_referenceNode),...Vr(this.$_popperNode)],"scroll",()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const t=this.$_referenceNode.getBoundingClientRect(),a=this.$_popperNode.querySelector(".v-popper__wrapper"),i=a.parentNode.getBoundingClientRect(),r=t.x+t.width/2-(i.left+a.offsetLeft),u=t.y+t.height/2-(i.top+a.offsetTop);this.result.transformOrigin=`${r}px ${u}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const e=this.showGroup;if(e){let t;for(let a=0;a0){this.pendingHide=!0,this.$_hideInProgress=!1;return}if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=e,Hs(Xt,this),Xt.length===0&&document.body.classList.remove("v-popper--some-open");for(const a of $s(this.theme)){const i=Vs(a);Hs(i,this),i.length===0&&document.body.classList.remove(`v-popper--some-open--${a}`)}ii===this&&(ii=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const t=this.disposeTimeout;t!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},t)),this.$_removeEventListeners("scroll"),this.$emit("apply-hide"),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await Cu(),this.classes.hideFrom=!1,this.classes.hideTo=!0},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.isDisposed)return;let e=this.container;if(typeof e=="string"?e=window.document.querySelector(e):e===!1&&(e=this.$_targetNodes[0].parentNode),!e)throw new Error("No container for popover: "+this.container);e.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){const e=a=>{this.isShown&&!this.$_hideInProgress||(a.usedByTooltip=!0,!this.$_preventShow&&this.show({event:a}))};this.$_registerTriggerListeners(this.$_targetNodes,Is,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],Is,this.popperTriggers,this.popperShowTriggers,e);const t=a=>{a.usedByTooltip||this.hide({event:a})};this.$_registerTriggerListeners(this.$_targetNodes,Rs,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],Rs,this.popperTriggers,this.popperHideTriggers,t)},$_registerEventListeners(e,t,a){this.$_events.push({targetNodes:e,eventType:t,handler:a}),e.forEach(i=>i.addEventListener(t,a,sr?{passive:!0}:void 0))},$_registerTriggerListeners(e,t,a,i,r){let u=a;i!=null&&(u=typeof i=="function"?i(u):i),u.forEach(n=>{const s=t[n];s&&this.$_registerEventListeners(e,s,r)})},$_removeEventListeners(e){const t=[];this.$_events.forEach(a=>{const{targetNodes:i,eventType:r,handler:u}=a;!e||e===r?i.forEach(n=>n.removeEventListener(r,u)):t.push(a)}),this.$_events=t},$_refreshListeners(){this.isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())},$_handleGlobalClose(e,t=!1){this.$_showFrameLocked||(this.hide({event:e}),e.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),t&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(e,t){for(const a of this.$_targetNodes){const i=a.getAttribute(e);i&&(a.removeAttribute(e),a.setAttribute(t,i))}},$_applyAttrsToTarget(e){for(const t of this.$_targetNodes)for(const a in e){const i=e[a];i==null?t.removeAttribute(a):t.setAttribute(a,i)}},$_updateParentShownChildren(e){let t=this.parentPopper;for(;t;)e?t.shownChildren.add(this.randomId):(t.shownChildren.delete(this.randomId),t.pendingHide&&t.hide()),t=t.parentPopper},$_isAimingPopper(){const e=this.$_referenceNode.getBoundingClientRect();if(Ji>=e.left&&Ji<=e.right&&Qi>=e.top&&Qi<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),a=Ji-za,i=Qi-Oa,r=t.left+t.width/2-za+(t.top+t.height/2)-Oa+t.width+t.height,u=za+a*r,n=Oa+i*r;return Dr(za,Oa,u,n,t.left,t.top,t.left,t.bottom)||Dr(za,Oa,u,n,t.left,t.top,t.right,t.top)||Dr(za,Oa,u,n,t.right,t.top,t.right,t.bottom)||Dr(za,Oa,u,n,t.left,t.bottom,t.right,t.bottom)}return!1}},render(){return this.$slots.default(this.slotData)}});if(typeof document<"u"&&typeof window<"u"){if(Ml){const e=sr?{passive:!0,capture:!0}:!0;document.addEventListener("touchstart",t=>Ys(t),e),document.addEventListener("touchend",t=>Us(t,!0),e)}else window.addEventListener("mousedown",e=>Ys(e),!0),window.addEventListener("click",e=>Us(e,!1),!0);window.addEventListener("resize",M1)}function Ys(e,t){for(let a=0;a=0;i--){const r=Xt[i];try{const u=r.containsGlobalTarget=r.mouseDownContains||r.popperNode().contains(e.target);r.pendingHide=!1,requestAnimationFrame(()=>{if(r.pendingHide=!1,!a[r.randomId]&&Gs(r,u,e)){if(r.$_handleGlobalClose(e,t),!e.closeAllPopover&&e.closePopover&&u){let s=r.parentPopper;for(;s;)a[s.randomId]=!0,s=s.parentPopper;return}let n=r.parentPopper;for(;n&&Gs(n,n.containsGlobalTarget,e);)n.$_handleGlobalClose(e,t),n=n.parentPopper}})}catch{}}}function Gs(e,t,a){return a.closeAllPopover||a.closePopover&&t||N1(e,a)&&!t}function N1(e,t){if(typeof e.autoHide=="function"){const a=e.autoHide(t);return e.lastAutoHide=a,a}return e.autoHide}function M1(){for(let e=0;e{za=Ji,Oa=Qi,Ji=e.clientX,Qi=e.clientY},sr?{passive:!0}:void 0);function Dr(e,t,a,i,r,u,n,s){const o=((n-r)*(t-u)-(s-u)*(e-r))/((s-u)*(a-e)-(n-r)*(i-t)),_=((a-e)*(t-u)-(i-t)*(e-r))/((s-u)*(a-e)-(n-r)*(i-t));return o>=0&&o<=1&&_>=0&&_<=1}const T1={extends:Tl()},Yn=(e,t)=>{const a=e.__vccOpts||e;for(const[i,r]of t)a[i]=r;return a};function P1(e,t,a,i,r,u){return p(),j("div",{ref:"reference",class:we(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[ae(e.$slots,"default",We(Ke(e.slotData)))],2)}const z1=Yn(T1,[["render",P1]]);function O1(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var a=e.indexOf("Trident/");if(a>0){var i=e.indexOf("rv:");return parseInt(e.substring(i+3,e.indexOf(".",i)),10)}var r=e.indexOf("Edge/");return r>0?parseInt(e.substring(r+5,e.indexOf(".",r)),10):-1}let Sr;function on(){on.init||(on.init=!0,Sr=O1()!==-1)}var Nr={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){on(),xt(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",Sr&&this.$el.appendChild(e),e.data="about:blank",Sr||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!Sr&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const L1=$0();O0("data-v-b329ee4c");const $1={class:"resize-observer",tabindex:"-1"};L0();const I1=L1((e,t,a,i,r,u)=>(p(),pe("div",$1)));Nr.render=I1,Nr.__scopeId="data-v-b329ee4c",Nr.__file="src/components/ResizeObserver.vue";const Pl=(e="theme")=>({computed:{themeClass(){return A1(this[e])}}}),R1=Ge({name:"VPopperContent",components:{ResizeObserver:Nr},mixins:[Pl()],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object,result:Object},emits:["hide","resize"],methods:{toPx(e){return e!=null&&!isNaN(e)?`${e}px`:null}}}),H1=["id","aria-hidden","tabindex","data-popper-placement"],W1={ref:"inner",class:"v-popper__inner"},V1=z("div",{class:"v-popper__arrow-outer"},null,-1),Y1=z("div",{class:"v-popper__arrow-inner"},null,-1),U1=[V1,Y1];function G1(e,t,a,i,r,u){const n=$e("ResizeObserver");return p(),j("div",{id:e.popperId,ref:"popover",class:we(["v-popper__popper",[e.themeClass,e.classes.popperClass,{"v-popper__popper--shown":e.shown,"v-popper__popper--hidden":!e.shown,"v-popper__popper--show-from":e.classes.showFrom,"v-popper__popper--show-to":e.classes.showTo,"v-popper__popper--hide-from":e.classes.hideFrom,"v-popper__popper--hide-to":e.classes.hideTo,"v-popper__popper--skip-transition":e.skipTransition,"v-popper__popper--arrow-overflow":e.result&&e.result.arrow.overflow,"v-popper__popper--no-positioning":!e.result}]]),style:Ve(e.result?{position:e.result.strategy,transform:`translate3d(${Math.round(e.result.x)}px,${Math.round(e.result.y)}px,0)`}:void 0),"aria-hidden":e.shown?"false":"true",tabindex:e.autoHide?0:void 0,"data-popper-placement":e.result?e.result.placement:void 0,onKeyup:t[2]||(t[2]=Ot(s=>e.autoHide&&e.$emit("hide"),["esc"]))},[z("div",{class:"v-popper__backdrop",onClick:t[0]||(t[0]=s=>e.autoHide&&e.$emit("hide"))}),z("div",{class:"v-popper__wrapper",style:Ve(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[z("div",W1,[e.mounted?(p(),j(je,{key:0},[z("div",null,[ae(e.$slots,"default")]),e.handleResize?(p(),pe(n,{key:0,onNotify:t[1]||(t[1]=s=>e.$emit("resize",s))})):$("",!0)],64)):$("",!0)],512),z("div",{ref:"arrow",class:"v-popper__arrow-container",style:Ve(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},U1,4)],4)],46,H1)}const zl=Yn(R1,[["render",G1]]),Ol={methods:{show(...e){return this.$refs.popper.show(...e)},hide(...e){return this.$refs.popper.hide(...e)},dispose(...e){return this.$refs.popper.dispose(...e)},onResize(...e){return this.$refs.popper.onResize(...e)}}};let ln=function(){};typeof window<"u"&&(ln=window.Element);const K1=Ge({name:"VPopperWrapper",components:{Popper:z1,PopperContent:zl},mixins:[Ol,Pl("finalTheme")],props:{theme:{type:String,default:null},referenceNode:{type:Function,default:null},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:void 0},positioningDisabled:{type:Boolean,default:void 0},placement:{type:String,default:void 0},delay:{type:[String,Number,Object],default:void 0},distance:{type:[Number,String],default:void 0},skidding:{type:[Number,String],default:void 0},triggers:{type:Array,default:void 0},showTriggers:{type:[Array,Function],default:void 0},hideTriggers:{type:[Array,Function],default:void 0},popperTriggers:{type:Array,default:void 0},popperShowTriggers:{type:[Array,Function],default:void 0},popperHideTriggers:{type:[Array,Function],default:void 0},container:{type:[String,Object,ln,Boolean],default:void 0},boundary:{type:[String,ln],default:void 0},strategy:{type:String,default:void 0},autoHide:{type:[Boolean,Function],default:void 0},handleResize:{type:Boolean,default:void 0},instantMove:{type:Boolean,default:void 0},eagerMount:{type:Boolean,default:void 0},popperClass:{type:[String,Array,Object],default:void 0},computeTransformOrigin:{type:Boolean,default:void 0},autoMinSize:{type:Boolean,default:void 0},autoSize:{type:[Boolean,String],default:void 0},autoMaxSize:{type:Boolean,default:void 0},autoBoundaryMaxSize:{type:Boolean,default:void 0},preventOverflow:{type:Boolean,default:void 0},overflowPadding:{type:[Number,String],default:void 0},arrowPadding:{type:[Number,String],default:void 0},arrowOverflow:{type:Boolean,default:void 0},flip:{type:Boolean,default:void 0},shift:{type:Boolean,default:void 0},shiftCrossAxis:{type:Boolean,default:void 0},noAutoFocus:{type:Boolean,default:void 0},disposeTimeout:{type:Number,default:void 0}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},computed:{finalTheme(){return this.theme??this.$options.vPopperTheme}},methods:{getTargetNodes(){return Array.from(this.$el.children).filter(e=>e!==this.$refs.popperContent.$el)}}});function Z1(e,t,a,i,r,u){const n=$e("PopperContent"),s=$e("Popper");return p(),pe(s,Le({ref:"popper"},e.$props,{theme:e.finalTheme,"target-nodes":e.getTargetNodes,"popper-node":()=>e.$refs.popperContent.$el,class:[e.themeClass],onShow:t[0]||(t[0]=()=>e.$emit("show")),onHide:t[1]||(t[1]=()=>e.$emit("hide")),"onUpdate:shown":t[2]||(t[2]=o=>e.$emit("update:shown",o)),onApplyShow:t[3]||(t[3]=()=>e.$emit("apply-show")),onApplyHide:t[4]||(t[4]=()=>e.$emit("apply-hide")),onCloseGroup:t[5]||(t[5]=()=>e.$emit("close-group")),onCloseDirective:t[6]||(t[6]=()=>e.$emit("close-directive")),onAutoHide:t[7]||(t[7]=()=>e.$emit("auto-hide")),onResize:t[8]||(t[8]=()=>e.$emit("resize"))}),{default:ge(({popperId:o,isShown:_,shouldMountContent:d,skipTransition:l,autoHide:m,show:f,hide:h,handleResize:F,onResize:c,classes:y,result:w})=>[ae(e.$slots,"default",{shown:_,show:f,hide:h}),ve(n,{ref:"popperContent","popper-id":o,theme:e.finalTheme,shown:_,mounted:d,"skip-transition":l,"auto-hide":m,"handle-resize":F,classes:y,result:w,onHide:h,onResize:c},{default:ge(()=>[ae(e.$slots,"popper",{shown:_,hide:h})]),_:2},1032,["popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:3},16,["theme","target-nodes","popper-node","class"])}const dn=Yn(K1,[["render",Z1]]),J1={...dn,name:"VDropdown",vPopperTheme:"dropdown"};({...dn},{...dn}),Ge({name:"VTooltipDirective",components:{Popper:Tl(),PopperContent:zl},mixins:[Ol],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>nn(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>nn(e.theme,"loadingContent")},targetNodes:{type:Function,required:!0}},data(){return{asyncContent:null}},computed:{isContentAsync(){return typeof this.content=="function"},loading(){return this.isContentAsync&&this.asyncContent==null},finalContent(){return this.isContentAsync?this.loading?this.loadingContent:this.asyncContent:this.content}},watch:{content:{handler(){this.fetchContent(!0)},immediate:!0},async finalContent(){await this.$nextTick(),this.$refs.popper.onResize()}},created(){this.$_fetchId=0},methods:{fetchContent(e){if(typeof this.content=="function"&&this.$_isShown&&(e||!this.$_loading&&this.asyncContent==null)){this.asyncContent=null,this.$_loading=!0;const t=++this.$_fetchId,a=this.content(this);a.then?a.then(i=>this.onResult(t,i)):this.onResult(t,a)}},onResult(e,t){e===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=t)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}});const Ks=Wa,Q1=J1;var Ll=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],Yr=Ll.join(","),$l=typeof Element>"u",mi=$l?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Ur=!$l&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e?.ownerDocument},or=function(e,t){var a;t===void 0&&(t=!0);var i=e==null||(a=e.getAttribute)===null||a===void 0?void 0:a.call(e,"inert"),r=i===""||i==="true",u=r||t&&e&&or(e.parentNode);return u},X1=function(e){var t,a=e==null||(t=e.getAttribute)===null||t===void 0?void 0:t.call(e,"contenteditable");return a===""||a==="true"},Il=function(e,t,a){if(or(e))return[];var i=Array.prototype.slice.apply(e.querySelectorAll(Yr));return t&&mi.call(e,Yr)&&i.unshift(e),i=i.filter(a),i},Gr=function(e,t,a){for(var i=[],r=Array.from(e);r.length;){var u=r.shift();if(!or(u,!1))if(u.tagName==="SLOT"){var n=u.assignedElements(),s=n.length?n:u.children,o=Gr(s,!0,a);a.flatten?i.push.apply(i,o):i.push({scopeParent:u,candidates:o})}else{var _=mi.call(u,Yr);_&&a.filter(u)&&(t||!e.includes(u))&&i.push(u);var d=u.shadowRoot||typeof a.getShadowRoot=="function"&&a.getShadowRoot(u),l=!or(d,!1)&&(!a.shadowRootFilter||a.shadowRootFilter(u));if(d&&l){var m=Gr(d===!0?u.children:d.children,!0,a);a.flatten?i.push.apply(i,m):i.push({scopeParent:u,candidates:m})}else r.unshift.apply(r,u.children)}}return i},Rl=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},si=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||X1(e))&&!Rl(e)?0:e.tabIndex},e_=function(e,t){var a=si(e);return a<0&&t&&!Rl(e)?0:a},t_=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},Hl=function(e){return e.tagName==="INPUT"},a_=function(e){return Hl(e)&&e.type==="hidden"},i_=function(e){var t=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(a){return a.tagName==="SUMMARY"});return t},r_=function(e,t){for(var a=0;asummary:first-of-type"),n=u?e.parentElement:e;if(mi.call(n,"details:not([open]) *"))return!0;if(!a||a==="full"||a==="full-native"||a==="legacy-full"){if(typeof i=="function"){for(var s=e;e;){var o=e.parentElement,_=Ur(e);if(o&&!o.shadowRoot&&i(o)===!0)return Zs(e);e.assignedSlot?e=e.assignedSlot:!o&&_!==e.ownerDocument?e=_.host:e=o}e=s}if(o_(e))return!e.getClientRects().length;if(a!=="legacy-full")return!0}else if(a==="non-zero-area")return Zs(e);return!1},d_=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName==="FIELDSET"&&t.disabled){for(var a=0;a=0)},Wl=function(e){var t=[],a=[];return e.forEach(function(i,r){var u=!!i.scopeParent,n=u?i.scopeParent:i,s=e_(n,u),o=u?Wl(i.candidates):n;s===0?u?t.push.apply(t,o):t.push(n):a.push({documentOrder:r,tabIndex:s,item:i,isScope:u,content:o})}),a.sort(t_).reduce(function(i,r){return r.isScope?i.push.apply(i,r.content):i.push(r.content),i},[]).concat(t)},__=function(e,t){t=t||{};var a;return t.getShadowRoot?a=Gr([e],t.includeContainer,{filter:gn.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:g_}):a=Il(e,t.includeContainer,gn.bind(null,t)),Wl(a)},f_=function(e,t){t=t||{};var a;return t.getShadowRoot?a=Gr([e],t.includeContainer,{filter:Kr.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):a=Il(e,t.includeContainer,Kr.bind(null,t)),a},bi=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return mi.call(e,Yr)===!1?!1:gn(t,e)},m_=Ll.concat("iframe").join(","),Mr=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return mi.call(e,m_)===!1?!1:Kr(t,e)};function _n(e,t){(t==null||t>e.length)&&(t=e.length);for(var a=0,i=Array(t);a20}},methods:{getText(){return this.$slots.default?.()[0].children?.trim?.()||""}}},su={mixins:[jg],props:{icon:{type:String,default:""},name:{type:String,default:""},title:{type:String,default:""},closeAfterClick:{type:Boolean,default:!1},ariaLabel:{type:String,default:null}},inject:{closeMenu:{from:Fl}},emits:["click"],created(){"ariaHidden"in this.$attrs},computed:{isIconUrl(){try{return!!new URL(this.icon,this.icon.startsWith("/")?window.location.origin:void 0)}catch{return!1}}},methods:{onClick(e){this.$emit("click",e),this.closeAfterClick&&this.closeMenu(!1)}}},Ag={name:"NcActionButton",components:{NcIconSvgWrapper:St},mixins:[su],inject:{isInSemanticMenu:{from:cr,default:!1}},props:{disabled:{type:Boolean,default:!1},isMenu:{type:Boolean,default:!1},type:{type:String,default:"button",validator:e=>["button","checkbox","radio","reset","submit"].includes(e)},modelValue:{type:[Boolean,String],default:null},value:{type:String,default:null},description:{type:String,default:""}},emits:["update:modelValue"],setup(){return{mdiCheck:Mn,mdiChevronRight:rl}},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 e={};return this.isInSemanticMenu?(e.role="menuitem",this.type==="radio"?(e.role="menuitemradio",e["aria-checked"]=this.isChecked?"true":"false"):(this.type==="checkbox"||this.nativeType==="button"&&this.modelValue!==null)&&(e.role="menuitemcheckbox",e["aria-checked"]=this.modelValue===null?"mixed":this.modelValue?"true":"false")):this.modelValue!==null&&this.nativeType==="button"&&(e["aria-pressed"]=this.modelValue?"true":"false"),e}},methods:{handleClick(e){this.onClick(e),(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))}}},qg=["role"],Sg=["aria-label","disabled","title","type"],Ng={class:"action-button__longtext-wrapper"},Mg={key:0,class:"action-button__name"},Tg=["textContent"],Pg={key:2,class:"action-button__text"},zg=["textContent"],Og={key:2,class:"action-button__pressed-icon material-design-icon"};function Lg(e,t,a,i,r,u){const n=$e("NcIconSvgWrapper");return p(),j("li",{class:we(["action",{"action--disabled":a.disabled}]),role:u.isInSemanticMenu&&"presentation"},[z("button",Le({"aria-label":e.ariaLabel,class:["action-button button-vue",{"action-button--active":u.isChecked,focusable:u.isFocusable}],disabled:a.disabled,title:e.title,type:u.nativeType},u.buttonAttributes,{onClick:t[0]||(t[0]=(...s)=>u.handleClick&&u.handleClick(...s))}),[ae(e.$slots,"icon",{},()=>[z("span",{class:we([[e.isIconUrl?"action-button__icon--url":e.icon],"action-button__icon"]),style:Ve({backgroundImage:e.isIconUrl?`url(${e.icon})`:null}),"aria-hidden":"true"},null,6)],!0),z("span",Ng,[e.name?(p(),j("strong",Mg,De(e.name),1)):$("",!0),e.isLongText?(p(),j("span",{key:1,class:"action-button__longtext",textContent:De(e.text)},null,8,Tg)):(p(),j("span",Pg,De(e.text),1)),a.description?(p(),j("span",{key:3,class:"action-button__description",textContent:De(a.description)},null,8,zg)):$("",!0)]),a.isMenu?(p(),pe(n,{key:0,class:"action-button__menu-icon",directional:"",path:i.mdiChevronRight},null,8,["path"])):u.isChecked?(p(),pe(n,{key:1,path:i.mdiCheck,class:"action-button__pressed-icon"},null,8,["path"])):u.isChecked===!1?(p(),j("span",Og)):$("",!0),$("",!0)],16,Sg)],10,qg)}const $g=Ft(Ag,[["render",Lg],["__scopeId","data-v-6c2daf4e"]]);Te(),Te();const Ig=["for"],Rg=["id","type","value","min","max"],Hg=Ge({inheritAttrs:!1,__name:"NcDateTimePickerNative",props:ka({class:{default:void 0},id:{default:()=>Aa()},inputClass:{default:""},type:{default:"date"},label:{default:()=>_e("Please choose a date")},min:{default:null},max:{default:null},hideLabel:{type:Boolean}},{modelValue:{default:null},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=Ga(e,"modelValue"),a=e,i=K(()=>t.value?s(t.value):""),r=K(()=>a.max?s(a.max):void 0),u=K(()=>a.min?s(a.min):void 0);function n(_){const d=_.getFullYear().toString().padStart(4,"0"),l=(_.getMonth()+1).toString().padStart(2,"0"),m=_.getDate().toString().padStart(2,"0"),f=_.getHours().toString().padStart(2,"0"),h=_.getMinutes().toString().padStart(2,"0");return{yyyy:d,MM:l,dd:m,hh:f,mm:h}}function s(_){const{yyyy:d,MM:l,dd:m,hh:f,mm:h}=n(_);if(a.type==="datetime-local")return`${d}-${l}-${m}T${f}:${h}`;if(a.type==="date")return`${d}-${l}-${m}`;if(a.type==="month")return`${d}-${l}`;if(a.type==="time")return`${f}:${h}`;if(a.type==="week"){const F=new Date(Number.parseInt(d),0,1),c=Math.floor((_.getTime()-F.getTime())/(1440*60*1e3)),y=Math.ceil(c/7);return`${d}-W${y}`}return""}function o(_){const d=_.target;if(!d||isNaN(d.valueAsNumber))t.value=null;else if(a.type==="time"){const l=d.value,{yyyy:m,MM:f,dd:h}=n(t.value||new Date);t.value=new Date(`${m}-${f}-${h}T${l}`)}else if(a.type==="month"){const l=(new Date(d.value).getMonth()+1).toString().padStart(2,"0"),{yyyy:m,dd:f,hh:h,mm:F}=n(t.value||new Date);t.value=new Date(`${m}-${l}-${f}T${h}:${F}`)}else{const l=new Date(d.valueAsNumber).getTimezoneOffset()*1e3*60,m=d.valueAsNumber+l;t.value=new Date(m)}}return(_,d)=>(p(),j("div",{class:we(["native-datetime-picker",_.$props.class])},[z("label",{class:we(["native-datetime-picker__label",{"hidden-visually":_.hideLabel}]),for:_.id},De(_.label),11,Ig),z("input",Le({id:_.id,class:["native-datetime-picker__input",_.inputClass],type:_.type,value:i.value,min:u.value,max:r.value},_.$attrs,{onInput:o}),null,16,Rg)],2))}}),N6=Ft(Hg,[["__scopeId","data-v-b97e1f7a"]]);Te(z0),_e("Submit");const Wg={name:"NcActionLink",mixins:[su],inject:{isInSemanticMenu:{from:cr,default:!1}},props:{href:{type:String,required:!0,validator:e=>{try{return new URL(e)}catch{return e.startsWith("#")||e.startsWith("/")}}},download:{type:String,default:null},target:{type:String,default:"_self",validator:e=>e&&(!e.startsWith("_")||["_blank","_self","_parent","_top"].indexOf(e)>-1)},title:{type:String,default:null}}},Vg=["role"],Yg=["download","href","aria-label","target","title","role"],Ug={key:0,class:"action-link__longtext-wrapper"},Gg={class:"action-link__name"},Kg=["textContent"],Zg=["textContent"],Jg={key:2,class:"action-link__text"};function Qg(e,t,a,i,r,u){return p(),j("li",{class:"action",role:u.isInSemanticMenu&&"presentation"},[z("a",{download:a.download,href:a.href,"aria-label":e.ariaLabel,target:a.target,title:a.title,class:"action-link focusable",rel:"nofollow noreferrer noopener",role:u.isInSemanticMenu&&"menuitem",onClick:t[0]||(t[0]=(...n)=>e.onClick&&e.onClick(...n))},[ae(e.$slots,"icon",{},()=>[z("span",{"aria-hidden":"true",class:we(["action-link__icon",[e.isIconUrl?"action-link__icon--url":e.icon]]),style:Ve({backgroundImage:e.isIconUrl?`url(${e.icon})`:null})},null,6)],!0),e.name?(p(),j("span",Ug,[z("strong",Gg,De(e.name),1),t[1]||(t[1]=z("br",null,null,-1)),z("span",{class:"action-link__longtext",textContent:De(e.text)},null,8,Kg)])):e.isLongText?(p(),j("span",{key:1,class:"action-link__longtext",textContent:De(e.text)},null,8,Zg)):(p(),j("span",Jg,De(e.text),1)),$("",!0)],8,Yg)],8,Vg)}const Xg=Ft(Wg,[["render",Qg],["__scopeId","data-v-32f01b7a"]]),e1={name:"NcActionRouter",mixins:[su],inject:{isInSemanticMenu:{from:cr,default:!1}},props:{to:{type:[String,Object],required:!0}}},t1=["role"],a1={key:0,class:"action-router__longtext-wrapper"},i1={class:"action-router__name"},r1=["textContent"],u1=["textContent"],n1={key:2,class:"action-router__text"};function s1(e,t,a,i,r,u){const n=$e("RouterLink");return p(),j("li",{class:"action",role:u.isInSemanticMenu&&"presentation"},[ve(n,{"aria-label":e.ariaLabel,class:"action-router focusable",rel:"nofollow noreferrer noopener",role:u.isInSemanticMenu&&"menuitem",title:e.title,to:a.to,onClick:e.onClick},{default:ge(()=>[ae(e.$slots,"icon",{},()=>[z("span",{"aria-hidden":"true",class:we(["action-router__icon",[e.isIconUrl?"action-router__icon--url":e.icon]]),style:Ve({backgroundImage:e.isIconUrl?`url(${e.icon})`:null})},null,6)],!0),e.name?(p(),j("span",a1,[z("strong",i1,De(e.name),1),t[0]||(t[0]=z("br",null,null,-1)),z("span",{class:"action-router__longtext",textContent:De(e.text)},null,8,r1)])):e.isLongText?(p(),j("span",{key:1,class:"action-router__longtext",textContent:De(e.text)},null,8,u1)):(p(),j("span",n1,De(e.text),1)),$("",!0)]),_:3},8,["aria-label","role","title","to","onClick"])],8,t1)}const o1=Ft(e1,[["render",s1],["__scopeId","data-v-87267750"]]);function rr(){return window._nc_focus_trap??=[],window._nc_focus_trap}function l1(){let e=[];return{pause(){e=[...rr()];for(const t of e)t.pause()},unpause(){if(e.length===rr().length)for(const t of e)t.unpause();e=[]}}}function pl(e,t={}){const a=l1();rt(e,()=>{et(t.disabled)||(et(e)?a.pause():a.unpause())}),ua(()=>{a.unpause()})}const d1=["top","right","bottom","left"],As=["start","end"],qs=d1.reduce((e,t)=>e.concat(t,t+"-"+As[0],t+"-"+As[1]),[]),Ka=Math.min,Lt=Math.max,Ir=Math.round,kr=Math.floor,pa=e=>({x:e,y:e}),g1={left:"right",right:"left",bottom:"top",top:"bottom"},_1={start:"end",end:"start"};function rn(e,t,a){return Lt(e,Ka(t,a))}function Sa(e,t){return typeof e=="function"?e(t):e}function na(e){return e.split("-")[0]}function aa(e){return e.split("-")[1]}function Rn(e){return e==="x"?"y":"x"}function Hn(e){return e==="y"?"height":"width"}const f1=new Set(["top","bottom"]);function ha(e){return f1.has(na(e))?"y":"x"}function Wn(e){return Rn(ha(e))}function bl(e,t,a){a===void 0&&(a=!1);const i=aa(e),r=Wn(e),u=Hn(r);let n=r==="x"?i===(a?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[u]>t.floating[u]&&(n=Hr(n)),[n,Hr(n)]}function m1(e){const t=Hr(e);return[Rr(e),t,Rr(t)]}function Rr(e){return e.replace(/start|end/g,t=>_1[t])}const Ss=["left","right"],Ns=["right","left"],h1=["top","bottom"],c1=["bottom","top"];function F1(e,t,a){switch(e){case"top":case"bottom":return a?t?Ns:Ss:t?Ss:Ns;case"left":case"right":return t?h1:c1;default:return[]}}function p1(e,t,a,i){const r=aa(e);let u=F1(na(e),a==="start",i);return r&&(u=u.map(n=>n+"-"+r),t&&(u=u.concat(u.map(Rr)))),u}function Hr(e){return e.replace(/left|right|bottom|top/g,t=>g1[t])}function b1(e){return{top:0,right:0,bottom:0,left:0,...e}}function yl(e){return typeof e!="number"?b1(e):{top:e,right:e,bottom:e,left:e}}function li(e){const{x:t,y:a,width:i,height:r}=e;return{width:i,height:r,top:a,left:t,right:t+i,bottom:a+r,x:t,y:a}}function Ms(e,t,a){let{reference:i,floating:r}=e;const u=ha(t),n=Wn(t),s=Hn(n),o=na(t),_=u==="y",d=i.x+i.width/2-r.width/2,l=i.y+i.height/2-r.height/2,m=i[s]/2-r[s]/2;let f;switch(o){case"top":f={x:d,y:i.y-r.height};break;case"bottom":f={x:d,y:i.y+i.height};break;case"right":f={x:i.x+i.width,y:l};break;case"left":f={x:i.x-r.width,y:l};break;default:f={x:i.x,y:i.y}}switch(aa(t)){case"start":f[n]-=m*(a&&_?-1:1);break;case"end":f[n]+=m*(a&&_?-1:1);break}return f}const wl=async(e,t,a)=>{const{placement:i="bottom",strategy:r="absolute",middleware:u=[],platform:n}=a,s=u.filter(Boolean),o=await(n.isRTL==null?void 0:n.isRTL(t));let _=await n.getElementRects({reference:e,floating:t,strategy:r}),{x:d,y:l}=Ms(_,i,o),m=i,f={},h=0;for(let F=0;F({name:"arrow",options:e,async fn(t){const{x:a,y:i,placement:r,rects:u,platform:n,elements:s,middlewareData:o}=t,{element:_,padding:d=0}=Sa(e,t)||{};if(_==null)return{};const l=yl(d),m={x:a,y:i},f=Wn(r),h=Hn(f),F=await n.getDimensions(_),c=f==="y",y=c?"top":"left",w=c?"bottom":"right",D=c?"clientHeight":"clientWidth",T=u.reference[h]+u.reference[f]-m[f]-u.floating[h],O=m[f]-u.reference[f],N=await(n.getOffsetParent==null?void 0:n.getOffsetParent(_));let L=N?N[D]:0;(!L||!await(n.isElement==null?void 0:n.isElement(N)))&&(L=s.floating[D]||u.floating[h]);const R=T/2-O/2,Y=L/2-F[h]/2-1,W=Ka(l[y],Y),S=Ka(l[w],Y),H=W,re=L-F[h]-S,B=L/2-F[h]/2+R,M=rn(H,B,re),q=!o.arrow&&aa(r)!=null&&B!==M&&u.reference[h]/2-(Baa(i)===e),...a.filter(i=>aa(i)!==e)]:a.filter(i=>na(i)===i)).filter(i=>e?aa(i)===e||(t?Rr(i)!==i:!1):!0)}const k1=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var a,i,r;const{rects:u,middlewareData:n,placement:s,platform:o,elements:_}=t,{crossAxis:d=!1,alignment:l,allowedPlacements:m=qs,autoAlignment:f=!0,...h}=Sa(e,t),F=l!==void 0||m===qs?w1(l||null,f,m):m,c=await ou(t,h),y=((a=n.autoPlacement)==null?void 0:a.index)||0,w=F[y];if(w==null)return{};const D=bl(w,u,await(o.isRTL==null?void 0:o.isRTL(_.floating)));if(s!==w)return{reset:{placement:F[0]}};const T=[c[na(w)],c[D[0]],c[D[1]]],O=[...((i=n.autoPlacement)==null?void 0:i.overflows)||[],{placement:w,overflows:T}],N=F[y+1];if(N)return{data:{index:y+1,overflows:O},reset:{placement:N}};const L=O.map(Y=>{const W=aa(Y.placement);return[Y.placement,W&&d?Y.overflows.slice(0,2).reduce((S,H)=>S+H,0):Y.overflows[0],Y.overflows]}).sort((Y,W)=>Y[1]-W[1]),R=((r=L.filter(Y=>Y[2].slice(0,aa(Y[0])?2:3).every(W=>W<=0))[0])==null?void 0:r[0])||L[0][0];return R!==s?{data:{index:y+1,overflows:O},reset:{placement:R}}:{}}}},kl=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var a,i;const{placement:r,middlewareData:u,rects:n,initialPlacement:s,platform:o,elements:_}=t,{mainAxis:d=!0,crossAxis:l=!0,fallbackPlacements:m,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:F=!0,...c}=Sa(e,t);if((a=u.arrow)!=null&&a.alignmentOffset)return{};const y=na(r),w=ha(s),D=na(s)===s,T=await(o.isRTL==null?void 0:o.isRTL(_.floating)),O=m||(D||!F?[Hr(s)]:m1(s)),N=h!=="none";!m&&N&&O.push(...p1(s,F,h,T));const L=[s,...O],R=await ou(t,c),Y=[];let W=((i=u.flip)==null?void 0:i.overflows)||[];if(d&&Y.push(R[y]),l){const B=bl(r,n,T);Y.push(R[B[0]],R[B[1]])}if(W=[...W,{placement:r,overflows:Y}],!Y.every(B=>B<=0)){var S,H;const B=(((S=u.flip)==null?void 0:S.index)||0)+1,M=L[B];if(M&&(!(l==="alignment"&&w!==ha(M))||W.every(I=>ha(I.placement)===w?I.overflows[0]>0:!0)))return{data:{index:B,overflows:W},reset:{placement:M}};let q=(H=W.filter(I=>I.overflows[0]<=0).sort((I,te)=>I.overflows[1]-te.overflows[1])[0])==null?void 0:H.placement;if(!q)switch(f){case"bestFit":{var re;const I=(re=W.filter(te=>{if(N){const V=ha(te.placement);return V===w||V==="y"}return!0}).map(te=>[te.placement,te.overflows.filter(V=>V>0).reduce((V,oe)=>V+oe,0)]).sort((te,V)=>te[1]-V[1])[0])==null?void 0:re[0];I&&(q=I);break}case"initialPlacement":q=s;break}if(r!==q)return{reset:{placement:q}}}return{}}}},vl=new Set(["left","top"]);async function v1(e,t){const{placement:a,platform:i,elements:r}=e,u=await(i.isRTL==null?void 0:i.isRTL(r.floating)),n=na(a),s=aa(a),o=ha(a)==="y",_=vl.has(n)?-1:1,d=u&&o?-1:1,l=Sa(t,e);let{mainAxis:m,crossAxis:f,alignmentAxis:h}=typeof l=="number"?{mainAxis:l,crossAxis:0,alignmentAxis:null}:{mainAxis:l.mainAxis||0,crossAxis:l.crossAxis||0,alignmentAxis:l.alignmentAxis};return s&&typeof h=="number"&&(f=s==="end"?h*-1:h),o?{x:f*d,y:m*_}:{x:m*_,y:f*d}}const Dl=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var a,i;const{x:r,y:u,placement:n,middlewareData:s}=t,o=await v1(t,e);return n===((a=s.offset)==null?void 0:a.placement)&&(i=s.arrow)!=null&&i.alignmentOffset?{}:{x:r+o.x,y:u+o.y,data:{...o,placement:n}}}}},El=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:a,y:i,placement:r}=t,{mainAxis:u=!0,crossAxis:n=!1,limiter:s={fn:c=>{let{x:y,y:w}=c;return{x:y,y:w}}},...o}=Sa(e,t),_={x:a,y:i},d=await ou(t,o),l=ha(na(r)),m=Rn(l);let f=_[m],h=_[l];if(u){const c=m==="y"?"top":"left",y=m==="y"?"bottom":"right",w=f+d[c],D=f-d[y];f=rn(w,f,D)}if(n){const c=l==="y"?"top":"left",y=l==="y"?"bottom":"right",w=h+d[c],D=h-d[y];h=rn(w,h,D)}const F=s.fn({...t,[m]:f,[l]:h});return{...F,data:{x:F.x-a,y:F.y-i,enabled:{[m]:u,[l]:n}}}}}},D1=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:a,y:i,placement:r,rects:u,middlewareData:n}=t,{offset:s=0,mainAxis:o=!0,crossAxis:_=!0}=Sa(e,t),d={x:a,y:i},l=ha(r),m=Rn(l);let f=d[m],h=d[l];const F=Sa(s,t),c=typeof F=="number"?{mainAxis:F,crossAxis:0}:{mainAxis:0,crossAxis:0,...F};if(o){const D=m==="y"?"height":"width",T=u.reference[m]-u.floating[D]+c.mainAxis,O=u.reference[m]+u.reference[D]-c.mainAxis;fO&&(f=O)}if(_){var y,w;const D=m==="y"?"width":"height",T=vl.has(na(r)),O=u.reference[l]-u.floating[D]+(T&&((y=n.offset)==null?void 0:y[l])||0)+(T?0:c.crossAxis),N=u.reference[l]+u.reference[D]+(T?0:((w=n.offset)==null?void 0:w[l])||0)-(T?c.crossAxis:0);hN&&(h=N)}return{[m]:f,[l]:h}}}},E1=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var a,i;const{placement:r,rects:u,platform:n,elements:s}=t,{apply:o=()=>{},..._}=Sa(e,t),d=await ou(t,_),l=na(r),m=aa(r),f=ha(r)==="y",{width:h,height:F}=u.floating;let c,y;l==="top"||l==="bottom"?(c=l,y=m===(await(n.isRTL==null?void 0:n.isRTL(s.floating))?"start":"end")?"left":"right"):(y=l,c=m==="end"?"top":"bottom");const w=F-d.top-d.bottom,D=h-d.left-d.right,T=Ka(F-d[c],w),O=Ka(h-d[y],D),N=!t.middlewareData.shift;let L=T,R=O;if((a=t.middlewareData.shift)!=null&&a.enabled.x&&(R=D),(i=t.middlewareData.shift)!=null&&i.enabled.y&&(L=w),N&&!m){const W=Lt(d.left,0),S=Lt(d.right,0),H=Lt(d.top,0),re=Lt(d.bottom,0);f?R=h-2*(W!==0||S!==0?W+S:Lt(d.left,d.right)):L=F-2*(H!==0||re!==0?H+re:Lt(d.top,d.bottom))}await o({...t,availableWidth:R,availableHeight:L});const Y=await n.getDimensions(s.floating);return h!==Y.width||F!==Y.height?{reset:{rects:!0}}:{}}}};function Yt(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ba(e){return Yt(e).getComputedStyle(e)}const Ts=Math.min,Zi=Math.max,Wr=Math.round;function Cl(e){const t=ba(e);let a=parseFloat(t.width),i=parseFloat(t.height);const r=e.offsetWidth,u=e.offsetHeight,n=Wr(a)!==r||Wr(i)!==u;return n&&(a=r,i=u),{width:a,height:i,fallback:n}}function Za(e){return Bl(e)?(e.nodeName||"").toLowerCase():""}let vr;function xl(){if(vr)return vr;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(vr=e.brands.map((t=>t.brand+"/"+t.version)).join(" "),vr):navigator.userAgent}function ya(e){return e instanceof Yt(e).HTMLElement}function Ra(e){return e instanceof Yt(e).Element}function Bl(e){return e instanceof Yt(e).Node}function Ps(e){return typeof ShadowRoot>"u"?!1:e instanceof Yt(e).ShadowRoot||e instanceof ShadowRoot}function lu(e){const{overflow:t,overflowX:a,overflowY:i,display:r}=ba(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+a)&&!["inline","contents"].includes(r)}function C1(e){return["table","td","th"].includes(Za(e))}function un(e){const t=/firefox/i.test(xl()),a=ba(e),i=a.backdropFilter||a.WebkitBackdropFilter;return a.transform!=="none"||a.perspective!=="none"||!!i&&i!=="none"||t&&a.willChange==="filter"||t&&!!a.filter&&a.filter!=="none"||["transform","perspective"].some((r=>a.willChange.includes(r)))||["paint","layout","strict","content"].some((r=>{const u=a.contain;return u!=null&&u.includes(r)}))}function jl(){return!/^((?!chrome|android).)*safari/i.test(xl())}function Vn(e){return["html","body","#document"].includes(Za(e))}function Al(e){return Ra(e)?e:e.contextElement}const ql={x:1,y:1};function Ei(e){const t=Al(e);if(!ya(t))return ql;const a=t.getBoundingClientRect(),{width:i,height:r,fallback:u}=Cl(t);let n=(u?Wr(a.width):a.width)/i,s=(u?Wr(a.height):a.height)/r;return n&&Number.isFinite(n)||(n=1),s&&Number.isFinite(s)||(s=1),{x:n,y:s}}function ur(e,t,a,i){var r,u;t===void 0&&(t=!1),a===void 0&&(a=!1);const n=e.getBoundingClientRect(),s=Al(e);let o=ql;t&&(i?Ra(i)&&(o=Ei(i)):o=Ei(e));const _=s?Yt(s):window,d=!jl()&&a;let l=(n.left+(d&&((r=_.visualViewport)==null?void 0:r.offsetLeft)||0))/o.x,m=(n.top+(d&&((u=_.visualViewport)==null?void 0:u.offsetTop)||0))/o.y,f=n.width/o.x,h=n.height/o.y;if(s){const F=Yt(s),c=i&&Ra(i)?Yt(i):i;let y=F.frameElement;for(;y&&i&&c!==F;){const w=Ei(y),D=y.getBoundingClientRect(),T=getComputedStyle(y);D.x+=(y.clientLeft+parseFloat(T.paddingLeft))*w.x,D.y+=(y.clientTop+parseFloat(T.paddingTop))*w.y,l*=w.x,m*=w.y,f*=w.x,h*=w.y,l+=D.x,m+=D.y,y=Yt(y).frameElement}}return{width:f,height:h,top:m,right:l+f,bottom:m+h,left:l,x:l,y:m}}function Ha(e){return((Bl(e)?e.ownerDocument:e.document)||window.document).documentElement}function du(e){return Ra(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Sl(e){return ur(Ha(e)).left+du(e).scrollLeft}function nr(e){if(Za(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ps(e)&&e.host||Ha(e);return Ps(t)?t.host:t}function Nl(e){const t=nr(e);return Vn(t)?t.ownerDocument.body:ya(t)&&lu(t)?t:Nl(t)}function Vr(e,t){var a;t===void 0&&(t=[]);const i=Nl(e),r=i===((a=e.ownerDocument)==null?void 0:a.body),u=Yt(i);return r?t.concat(u,u.visualViewport||[],lu(i)?i:[]):t.concat(i,Vr(i))}function zs(e,t,a){return t==="viewport"?li((function(i,r){const u=Yt(i),n=Ha(i),s=u.visualViewport;let o=n.clientWidth,_=n.clientHeight,d=0,l=0;if(s){o=s.width,_=s.height;const m=jl();(m||!m&&r==="fixed")&&(d=s.offsetLeft,l=s.offsetTop)}return{width:o,height:_,x:d,y:l}})(e,a)):Ra(t)?li((function(i,r){const u=ur(i,!0,r==="fixed"),n=u.top+i.clientTop,s=u.left+i.clientLeft,o=ya(i)?Ei(i):{x:1,y:1};return{width:i.clientWidth*o.x,height:i.clientHeight*o.y,x:s*o.x,y:n*o.y}})(t,a)):li((function(i){const r=Ha(i),u=du(i),n=i.ownerDocument.body,s=Zi(r.scrollWidth,r.clientWidth,n.scrollWidth,n.clientWidth),o=Zi(r.scrollHeight,r.clientHeight,n.scrollHeight,n.clientHeight);let _=-u.scrollLeft+Sl(i);const d=-u.scrollTop;return ba(n).direction==="rtl"&&(_+=Zi(r.clientWidth,n.clientWidth)-s),{width:s,height:o,x:_,y:d}})(Ha(e)))}function Os(e){return ya(e)&&ba(e).position!=="fixed"?e.offsetParent:null}function Ls(e){const t=Yt(e);let a=Os(e);for(;a&&C1(a)&&ba(a).position==="static";)a=Os(a);return a&&(Za(a)==="html"||Za(a)==="body"&&ba(a).position==="static"&&!un(a))?t:a||(function(i){let r=nr(i);for(;ya(r)&&!Vn(r);){if(un(r))return r;r=nr(r)}return null})(e)||t}function x1(e,t,a){const i=ya(t),r=Ha(t),u=ur(e,!0,a==="fixed",t);let n={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if(i||!i&&a!=="fixed")if((Za(t)!=="body"||lu(r))&&(n=du(t)),ya(t)){const o=ur(t,!0);s.x=o.x+t.clientLeft,s.y=o.y+t.clientTop}else r&&(s.x=Sl(r));return{x:u.left+n.scrollLeft-s.x,y:u.top+n.scrollTop-s.y,width:u.width,height:u.height}}const B1={getClippingRect:function(e){let{element:t,boundary:a,rootBoundary:i,strategy:r}=e;const u=a==="clippingAncestors"?(function(_,d){const l=d.get(_);if(l)return l;let m=Vr(_).filter((c=>Ra(c)&&Za(c)!=="body")),f=null;const h=ba(_).position==="fixed";let F=h?nr(_):_;for(;Ra(F)&&!Vn(F);){const c=ba(F),y=un(F);(h?y||f:y||c.position!=="static"||!f||!["absolute","fixed"].includes(f.position))?f=c:m=m.filter((w=>w!==F)),F=nr(F)}return d.set(_,m),m})(t,this._c):[].concat(a),n=[...u,i],s=n[0],o=n.reduce(((_,d)=>{const l=zs(t,d,r);return _.top=Zi(l.top,_.top),_.right=Ts(l.right,_.right),_.bottom=Ts(l.bottom,_.bottom),_.left=Zi(l.left,_.left),_}),zs(t,s,r));return{width:o.right-o.left,height:o.bottom-o.top,x:o.left,y:o.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:a,strategy:i}=e;const r=ya(a),u=Ha(a);if(a===u)return t;let n={scrollLeft:0,scrollTop:0},s={x:1,y:1};const o={x:0,y:0};if((r||!r&&i!=="fixed")&&((Za(a)!=="body"||lu(u))&&(n=du(a)),ya(a))){const _=ur(a);s=Ei(a),o.x=_.x+a.clientLeft,o.y=_.y+a.clientTop}return{width:t.width*s.x,height:t.height*s.y,x:t.x*s.x-n.scrollLeft*s.x+o.x,y:t.y*s.y-n.scrollTop*s.y+o.y}},isElement:Ra,getDimensions:function(e){return ya(e)?Cl(e):e.getBoundingClientRect()},getOffsetParent:Ls,getDocumentElement:Ha,getScale:Ei,async getElementRects(e){let{reference:t,floating:a,strategy:i}=e;const r=this.getOffsetParent||Ls,u=this.getDimensions;return{reference:x1(t,await r(a),i),floating:{x:0,y:0,...await u(a)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>ba(e).direction==="rtl"},j1=(e,t,a)=>{const i=new Map,r={platform:B1,...a},u={...r.platform,_c:i};return wl(e,t,{...r,platform:u})},Wa={disabled:!1,distance:5,skidding:0,container:"body",boundary:void 0,instantMove:!1,disposeTimeout:150,popperTriggers:[],strategy:"absolute",preventOverflow:!0,flip:!0,shift:!0,overflowPadding:0,arrowPadding:0,arrowOverflow:!0,autoHideOnMousedown:!1,themes:{tooltip:{placement:"top",triggers:["hover","focus","touch"],hideTriggers:e=>[...e,"click"],delay:{show:200,hide:0},handleResize:!1,html:!1,loadingContent:"..."},dropdown:{placement:"bottom",triggers:["click"],delay:0,handleResize:!0,autoHide:!0},menu:{$extend:"dropdown",triggers:["hover","focus"],popperTriggers:["hover"],delay:{show:0,hide:400}}}};function nn(e,t){let a=Wa.themes[e]||{},i;do i=a[t],typeof i>"u"?a.$extend?a=Wa.themes[a.$extend]||{}:(a=null,i=Wa[t]):a=null;while(a);return i}function A1(e){const t=[e];let a=Wa.themes[e]||{};do a.$extend&&!a.$resetCss?(t.push(a.$extend),a=Wa.themes[a.$extend]||{}):a=null;while(a);return t.map(i=>`v-popper--theme-${i}`)}function $s(e){const t=[e];let a=Wa.themes[e]||{};do a.$extend?(t.push(a.$extend),a=Wa.themes[a.$extend]||{}):a=null;while(a);return t}let sr=!1;if(typeof window<"u"){sr=!1;try{const e=Object.defineProperty({},"passive",{get(){sr=!0}});window.addEventListener("test",null,e)}catch{}}let Ml=!1;typeof window<"u"&&typeof navigator<"u"&&(Ml=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const q1=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),Is={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},Rs={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function Hs(e,t){const a=e.indexOf(t);a!==-1&&e.splice(a,1)}function Cu(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const Xt=[];let ii=null;const Ws={};function Vs(e){let t=Ws[e];return t||(t=Ws[e]=[]),t}let sn=function(){};typeof window<"u"&&(sn=window.Element);function Ue(e){return function(t){return nn(t.theme,e)}}const xu="__floating-vue__popper",Tl=()=>Ge({name:"VPopper",provide(){return{[xu]:{parentPopper:this}}},inject:{[xu]:{default:null}},props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,default:null},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:Ue("disabled")},positioningDisabled:{type:Boolean,default:Ue("positioningDisabled")},placement:{type:String,default:Ue("placement"),validator:e=>q1.includes(e)},delay:{type:[String,Number,Object],default:Ue("delay")},distance:{type:[Number,String],default:Ue("distance")},skidding:{type:[Number,String],default:Ue("skidding")},triggers:{type:Array,default:Ue("triggers")},showTriggers:{type:[Array,Function],default:Ue("showTriggers")},hideTriggers:{type:[Array,Function],default:Ue("hideTriggers")},popperTriggers:{type:Array,default:Ue("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:Ue("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:Ue("popperHideTriggers")},container:{type:[String,Object,sn,Boolean],default:Ue("container")},boundary:{type:[String,sn],default:Ue("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),default:Ue("strategy")},autoHide:{type:[Boolean,Function],default:Ue("autoHide")},handleResize:{type:Boolean,default:Ue("handleResize")},instantMove:{type:Boolean,default:Ue("instantMove")},eagerMount:{type:Boolean,default:Ue("eagerMount")},popperClass:{type:[String,Array,Object],default:Ue("popperClass")},computeTransformOrigin:{type:Boolean,default:Ue("computeTransformOrigin")},autoMinSize:{type:Boolean,default:Ue("autoMinSize")},autoSize:{type:[Boolean,String],default:Ue("autoSize")},autoMaxSize:{type:Boolean,default:Ue("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:Ue("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:Ue("preventOverflow")},overflowPadding:{type:[Number,String],default:Ue("overflowPadding")},arrowPadding:{type:[Number,String],default:Ue("arrowPadding")},arrowOverflow:{type:Boolean,default:Ue("arrowOverflow")},flip:{type:Boolean,default:Ue("flip")},shift:{type:Boolean,default:Ue("shift")},shiftCrossAxis:{type:Boolean,default:Ue("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:Ue("noAutoFocus")},disposeTimeout:{type:Number,default:Ue("disposeTimeout")}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},data(){return{isShown:!1,isMounted:!1,skipTransition:!1,classes:{showFrom:!1,showTo:!1,hideFrom:!1,hideTo:!0},result:{x:0,y:0,placement:"",strategy:this.strategy,arrow:{x:0,y:0,centerOffset:0},transformOrigin:null},randomId:`popper_${[Math.random(),Date.now()].map(e=>e.toString(36).substring(2,10)).join("_")}`,shownChildren:new Set,lastAutoHide:!0,pendingHide:!1,containsGlobalTarget:!1,isDisposed:!0,mouseDownContains:!1}},computed:{popperId(){return this.ariaId!=null?this.ariaId:this.randomId},shouldMountContent(){return this.eagerMount||this.isMounted},slotData(){return{popperId:this.popperId,isShown:this.isShown,shouldMountContent:this.shouldMountContent,skipTransition:this.skipTransition,autoHide:typeof this.autoHide=="function"?this.lastAutoHide:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:{...this.classes,popperClass:this.popperClass},result:this.positioningDisabled?null:this.result,attrs:this.$attrs}},parentPopper(){var e;return(e=this[xu])==null?void 0:e.parentPopper},hasPopperShowTriggerHover(){var e,t;return((e=this.popperTriggers)==null?void 0:e.includes("hover"))||((t=this.popperShowTriggers)==null?void 0:t.includes("hover"))}},watch:{shown:"$_autoShowHide",disabled(e){e?this.dispose():this.init()},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition())},triggers:{handler:"$_refreshListeners",deep:!0},positioningDisabled:"$_refreshListeners",...["placement","distance","skidding","boundary","strategy","overflowPadding","arrowPadding","preventOverflow","shift","shiftCrossAxis","flip"].reduce((e,t)=>(e[t]="$_computePosition",e),{})},created(){this.autoMinSize&&console.warn('[floating-vue] `autoMinSize` option is deprecated. Use `autoSize="min"` instead.'),this.autoMaxSize&&console.warn("[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.")},mounted(){this.init(),this.$_detachPopperNode()},activated(){this.$_autoShowHide()},deactivated(){this.hide()},beforeUnmount(){this.dispose()},methods:{show({event:e=null,skipDelay:t=!1,force:a=!1}={}){var i,r;(i=this.parentPopper)!=null&&i.lockedChild&&this.parentPopper.lockedChild!==this||(this.pendingHide=!1,(a||!this.disabled)&&(((r=this.parentPopper)==null?void 0:r.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_scheduleShow(e,t),this.$emit("show"),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit("update:shown",!0))},hide({event:e=null,skipDelay:t=!1}={}){var a;if(!this.$_hideInProgress){if(this.shownChildren.size>0){this.pendingHide=!0;return}if(this.hasPopperShowTriggerHover&&this.$_isAimingPopper()){this.parentPopper&&(this.parentPopper.lockedChild=this,clearTimeout(this.parentPopper.lockedChildTimer),this.parentPopper.lockedChildTimer=setTimeout(()=>{this.parentPopper.lockedChild===this&&(this.parentPopper.lockedChild.hide({skipDelay:t}),this.parentPopper.lockedChild=null)},1e3));return}((a=this.parentPopper)==null?void 0:a.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.pendingHide=!1,this.$_scheduleHide(e,t),this.$emit("hide"),this.$emit("update:shown",!1)}},init(){var e;this.isDisposed&&(this.isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=((e=this.referenceNode)==null?void 0:e.call(this))??this.$el,this.$_targetNodes=this.targetNodes().filter(t=>t.nodeType===t.ELEMENT_NODE),this.$_popperNode=this.popperNode(),this.$_innerNode=this.$_popperNode.querySelector(".v-popper__inner"),this.$_arrowNode=this.$_popperNode.querySelector(".v-popper__arrow-container"),this.$_swapTargetAttrs("title","data-original-title"),this.$_detachPopperNode(),this.triggers.length&&this.$_addEventListeners(),this.shown&&this.show())},dispose(){this.isDisposed||(this.isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.$_detachPopperNode(),this.isMounted=!1,this.isShown=!1,this.$_updateParentShownChildren(!1),this.$_swapTargetAttrs("data-original-title","title"))},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit("resize"))},async $_computePosition(){if(this.isDisposed||this.positioningDisabled)return;const e={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&e.middleware.push(Dl({mainAxis:this.distance,crossAxis:this.skidding}));const t=this.placement.startsWith("auto");if(t?e.middleware.push(k1({alignment:this.placement.split("-")[1]??""})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(El({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e.middleware.push(kl({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(y1({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&e.middleware.push({name:"arrowOverflow",fn:({placement:i,rects:r,middlewareData:u})=>{let n;const{centerOffset:s}=u.arrow;return i.startsWith("top")||i.startsWith("bottom")?n=Math.abs(s)>r.reference.width/2:n=Math.abs(s)>r.reference.height/2,{data:{overflow:n}}}}),this.autoMinSize||this.autoSize){const i=this.autoSize?this.autoSize:this.autoMinSize?"min":null;e.middleware.push({name:"autoSize",fn:({rects:r,placement:u,middlewareData:n})=>{var s;if((s=n.autoSize)!=null&&s.skip)return{};let o,_;return u.startsWith("top")||u.startsWith("bottom")?o=r.reference.width:_=r.reference.height,this.$_innerNode.style[i==="min"?"minWidth":i==="max"?"maxWidth":"width"]=o!=null?`${o}px`:null,this.$_innerNode.style[i==="min"?"minHeight":i==="max"?"maxHeight":"height"]=_!=null?`${_}px`:null,{data:{skip:!0},reset:{rects:!0}}}})}(this.autoMaxSize||this.autoBoundaryMaxSize)&&(this.$_innerNode.style.maxWidth=null,this.$_innerNode.style.maxHeight=null,e.middleware.push(E1({boundary:this.boundary,padding:this.overflowPadding,apply:({availableWidth:i,availableHeight:r})=>{this.$_innerNode.style.maxWidth=i!=null?`${i}px`:null,this.$_innerNode.style.maxHeight=r!=null?`${r}px`:null}})));const a=await j1(this.$_referenceNode,this.$_popperNode,e);Object.assign(this.result,{x:a.x,y:a.y,placement:a.placement,strategy:a.strategy,arrow:{...a.middlewareData.arrow,...a.middlewareData.arrowOverflow}})},$_scheduleShow(e,t=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),ii&&this.instantMove&&ii.instantMove&&ii!==this.parentPopper){ii.$_applyHide(!0),this.$_applyShow(!0);return}t?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay("show"))},$_scheduleHide(e,t=!1){if(this.shownChildren.size>0){this.pendingHide=!0;return}this.$_updateParentShownChildren(!1),this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(ii=this),t?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay("hide"))},$_computeDelay(e){const t=this.delay;return parseInt(t&&t[e]||t||0)},async $_applyShow(e=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=e,!this.isShown&&(this.$_ensureTeleport(),await Cu(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...Vr(this.$_referenceNode),...Vr(this.$_popperNode)],"scroll",()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const t=this.$_referenceNode.getBoundingClientRect(),a=this.$_popperNode.querySelector(".v-popper__wrapper"),i=a.parentNode.getBoundingClientRect(),r=t.x+t.width/2-(i.left+a.offsetLeft),u=t.y+t.height/2-(i.top+a.offsetTop);this.result.transformOrigin=`${r}px ${u}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const e=this.showGroup;if(e){let t;for(let a=0;a0){this.pendingHide=!0,this.$_hideInProgress=!1;return}if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=e,Hs(Xt,this),Xt.length===0&&document.body.classList.remove("v-popper--some-open");for(const a of $s(this.theme)){const i=Vs(a);Hs(i,this),i.length===0&&document.body.classList.remove(`v-popper--some-open--${a}`)}ii===this&&(ii=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const t=this.disposeTimeout;t!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},t)),this.$_removeEventListeners("scroll"),this.$emit("apply-hide"),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await Cu(),this.classes.hideFrom=!1,this.classes.hideTo=!0},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.isDisposed)return;let e=this.container;if(typeof e=="string"?e=window.document.querySelector(e):e===!1&&(e=this.$_targetNodes[0].parentNode),!e)throw new Error("No container for popover: "+this.container);e.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){const e=a=>{this.isShown&&!this.$_hideInProgress||(a.usedByTooltip=!0,!this.$_preventShow&&this.show({event:a}))};this.$_registerTriggerListeners(this.$_targetNodes,Is,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],Is,this.popperTriggers,this.popperShowTriggers,e);const t=a=>{a.usedByTooltip||this.hide({event:a})};this.$_registerTriggerListeners(this.$_targetNodes,Rs,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],Rs,this.popperTriggers,this.popperHideTriggers,t)},$_registerEventListeners(e,t,a){this.$_events.push({targetNodes:e,eventType:t,handler:a}),e.forEach(i=>i.addEventListener(t,a,sr?{passive:!0}:void 0))},$_registerTriggerListeners(e,t,a,i,r){let u=a;i!=null&&(u=typeof i=="function"?i(u):i),u.forEach(n=>{const s=t[n];s&&this.$_registerEventListeners(e,s,r)})},$_removeEventListeners(e){const t=[];this.$_events.forEach(a=>{const{targetNodes:i,eventType:r,handler:u}=a;!e||e===r?i.forEach(n=>n.removeEventListener(r,u)):t.push(a)}),this.$_events=t},$_refreshListeners(){this.isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())},$_handleGlobalClose(e,t=!1){this.$_showFrameLocked||(this.hide({event:e}),e.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),t&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(e,t){for(const a of this.$_targetNodes){const i=a.getAttribute(e);i&&(a.removeAttribute(e),a.setAttribute(t,i))}},$_applyAttrsToTarget(e){for(const t of this.$_targetNodes)for(const a in e){const i=e[a];i==null?t.removeAttribute(a):t.setAttribute(a,i)}},$_updateParentShownChildren(e){let t=this.parentPopper;for(;t;)e?t.shownChildren.add(this.randomId):(t.shownChildren.delete(this.randomId),t.pendingHide&&t.hide()),t=t.parentPopper},$_isAimingPopper(){const e=this.$_referenceNode.getBoundingClientRect();if(Ji>=e.left&&Ji<=e.right&&Qi>=e.top&&Qi<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),a=Ji-za,i=Qi-Oa,r=t.left+t.width/2-za+(t.top+t.height/2)-Oa+t.width+t.height,u=za+a*r,n=Oa+i*r;return Dr(za,Oa,u,n,t.left,t.top,t.left,t.bottom)||Dr(za,Oa,u,n,t.left,t.top,t.right,t.top)||Dr(za,Oa,u,n,t.right,t.top,t.right,t.bottom)||Dr(za,Oa,u,n,t.left,t.bottom,t.right,t.bottom)}return!1}},render(){return this.$slots.default(this.slotData)}});if(typeof document<"u"&&typeof window<"u"){if(Ml){const e=sr?{passive:!0,capture:!0}:!0;document.addEventListener("touchstart",t=>Ys(t),e),document.addEventListener("touchend",t=>Us(t,!0),e)}else window.addEventListener("mousedown",e=>Ys(e),!0),window.addEventListener("click",e=>Us(e,!1),!0);window.addEventListener("resize",M1)}function Ys(e,t){for(let a=0;a=0;i--){const r=Xt[i];try{const u=r.containsGlobalTarget=r.mouseDownContains||r.popperNode().contains(e.target);r.pendingHide=!1,requestAnimationFrame(()=>{if(r.pendingHide=!1,!a[r.randomId]&&Gs(r,u,e)){if(r.$_handleGlobalClose(e,t),!e.closeAllPopover&&e.closePopover&&u){let s=r.parentPopper;for(;s;)a[s.randomId]=!0,s=s.parentPopper;return}let n=r.parentPopper;for(;n&&Gs(n,n.containsGlobalTarget,e);)n.$_handleGlobalClose(e,t),n=n.parentPopper}})}catch{}}}function Gs(e,t,a){return a.closeAllPopover||a.closePopover&&t||N1(e,a)&&!t}function N1(e,t){if(typeof e.autoHide=="function"){const a=e.autoHide(t);return e.lastAutoHide=a,a}return e.autoHide}function M1(){for(let e=0;e{za=Ji,Oa=Qi,Ji=e.clientX,Qi=e.clientY},sr?{passive:!0}:void 0);function Dr(e,t,a,i,r,u,n,s){const o=((n-r)*(t-u)-(s-u)*(e-r))/((s-u)*(a-e)-(n-r)*(i-t)),_=((a-e)*(t-u)-(i-t)*(e-r))/((s-u)*(a-e)-(n-r)*(i-t));return o>=0&&o<=1&&_>=0&&_<=1}const T1={extends:Tl()},Yn=(e,t)=>{const a=e.__vccOpts||e;for(const[i,r]of t)a[i]=r;return a};function P1(e,t,a,i,r,u){return p(),j("div",{ref:"reference",class:we(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[ae(e.$slots,"default",We(Ke(e.slotData)))],2)}const z1=Yn(T1,[["render",P1]]);function O1(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var a=e.indexOf("Trident/");if(a>0){var i=e.indexOf("rv:");return parseInt(e.substring(i+3,e.indexOf(".",i)),10)}var r=e.indexOf("Edge/");return r>0?parseInt(e.substring(r+5,e.indexOf(".",r)),10):-1}let Sr;function on(){on.init||(on.init=!0,Sr=O1()!==-1)}var Nr={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){on(),xt(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",Sr&&this.$el.appendChild(e),e.data="about:blank",Sr||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!Sr&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const L1=$0();O0("data-v-b329ee4c");const $1={class:"resize-observer",tabindex:"-1"};L0();const I1=L1((e,t,a,i,r,u)=>(p(),pe("div",$1)));Nr.render=I1,Nr.__scopeId="data-v-b329ee4c",Nr.__file="src/components/ResizeObserver.vue";const Pl=(e="theme")=>({computed:{themeClass(){return A1(this[e])}}}),R1=Ge({name:"VPopperContent",components:{ResizeObserver:Nr},mixins:[Pl()],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object,result:Object},emits:["hide","resize"],methods:{toPx(e){return e!=null&&!isNaN(e)?`${e}px`:null}}}),H1=["id","aria-hidden","tabindex","data-popper-placement"],W1={ref:"inner",class:"v-popper__inner"},V1=z("div",{class:"v-popper__arrow-outer"},null,-1),Y1=z("div",{class:"v-popper__arrow-inner"},null,-1),U1=[V1,Y1];function G1(e,t,a,i,r,u){const n=$e("ResizeObserver");return p(),j("div",{id:e.popperId,ref:"popover",class:we(["v-popper__popper",[e.themeClass,e.classes.popperClass,{"v-popper__popper--shown":e.shown,"v-popper__popper--hidden":!e.shown,"v-popper__popper--show-from":e.classes.showFrom,"v-popper__popper--show-to":e.classes.showTo,"v-popper__popper--hide-from":e.classes.hideFrom,"v-popper__popper--hide-to":e.classes.hideTo,"v-popper__popper--skip-transition":e.skipTransition,"v-popper__popper--arrow-overflow":e.result&&e.result.arrow.overflow,"v-popper__popper--no-positioning":!e.result}]]),style:Ve(e.result?{position:e.result.strategy,transform:`translate3d(${Math.round(e.result.x)}px,${Math.round(e.result.y)}px,0)`}:void 0),"aria-hidden":e.shown?"false":"true",tabindex:e.autoHide?0:void 0,"data-popper-placement":e.result?e.result.placement:void 0,onKeyup:t[2]||(t[2]=Ot(s=>e.autoHide&&e.$emit("hide"),["esc"]))},[z("div",{class:"v-popper__backdrop",onClick:t[0]||(t[0]=s=>e.autoHide&&e.$emit("hide"))}),z("div",{class:"v-popper__wrapper",style:Ve(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[z("div",W1,[e.mounted?(p(),j(je,{key:0},[z("div",null,[ae(e.$slots,"default")]),e.handleResize?(p(),pe(n,{key:0,onNotify:t[1]||(t[1]=s=>e.$emit("resize",s))})):$("",!0)],64)):$("",!0)],512),z("div",{ref:"arrow",class:"v-popper__arrow-container",style:Ve(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},U1,4)],4)],46,H1)}const zl=Yn(R1,[["render",G1]]),Ol={methods:{show(...e){return this.$refs.popper.show(...e)},hide(...e){return this.$refs.popper.hide(...e)},dispose(...e){return this.$refs.popper.dispose(...e)},onResize(...e){return this.$refs.popper.onResize(...e)}}};let ln=function(){};typeof window<"u"&&(ln=window.Element);const K1=Ge({name:"VPopperWrapper",components:{Popper:z1,PopperContent:zl},mixins:[Ol,Pl("finalTheme")],props:{theme:{type:String,default:null},referenceNode:{type:Function,default:null},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:void 0},positioningDisabled:{type:Boolean,default:void 0},placement:{type:String,default:void 0},delay:{type:[String,Number,Object],default:void 0},distance:{type:[Number,String],default:void 0},skidding:{type:[Number,String],default:void 0},triggers:{type:Array,default:void 0},showTriggers:{type:[Array,Function],default:void 0},hideTriggers:{type:[Array,Function],default:void 0},popperTriggers:{type:Array,default:void 0},popperShowTriggers:{type:[Array,Function],default:void 0},popperHideTriggers:{type:[Array,Function],default:void 0},container:{type:[String,Object,ln,Boolean],default:void 0},boundary:{type:[String,ln],default:void 0},strategy:{type:String,default:void 0},autoHide:{type:[Boolean,Function],default:void 0},handleResize:{type:Boolean,default:void 0},instantMove:{type:Boolean,default:void 0},eagerMount:{type:Boolean,default:void 0},popperClass:{type:[String,Array,Object],default:void 0},computeTransformOrigin:{type:Boolean,default:void 0},autoMinSize:{type:Boolean,default:void 0},autoSize:{type:[Boolean,String],default:void 0},autoMaxSize:{type:Boolean,default:void 0},autoBoundaryMaxSize:{type:Boolean,default:void 0},preventOverflow:{type:Boolean,default:void 0},overflowPadding:{type:[Number,String],default:void 0},arrowPadding:{type:[Number,String],default:void 0},arrowOverflow:{type:Boolean,default:void 0},flip:{type:Boolean,default:void 0},shift:{type:Boolean,default:void 0},shiftCrossAxis:{type:Boolean,default:void 0},noAutoFocus:{type:Boolean,default:void 0},disposeTimeout:{type:Number,default:void 0}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},computed:{finalTheme(){return this.theme??this.$options.vPopperTheme}},methods:{getTargetNodes(){return Array.from(this.$el.children).filter(e=>e!==this.$refs.popperContent.$el)}}});function Z1(e,t,a,i,r,u){const n=$e("PopperContent"),s=$e("Popper");return p(),pe(s,Le({ref:"popper"},e.$props,{theme:e.finalTheme,"target-nodes":e.getTargetNodes,"popper-node":()=>e.$refs.popperContent.$el,class:[e.themeClass],onShow:t[0]||(t[0]=()=>e.$emit("show")),onHide:t[1]||(t[1]=()=>e.$emit("hide")),"onUpdate:shown":t[2]||(t[2]=o=>e.$emit("update:shown",o)),onApplyShow:t[3]||(t[3]=()=>e.$emit("apply-show")),onApplyHide:t[4]||(t[4]=()=>e.$emit("apply-hide")),onCloseGroup:t[5]||(t[5]=()=>e.$emit("close-group")),onCloseDirective:t[6]||(t[6]=()=>e.$emit("close-directive")),onAutoHide:t[7]||(t[7]=()=>e.$emit("auto-hide")),onResize:t[8]||(t[8]=()=>e.$emit("resize"))}),{default:ge(({popperId:o,isShown:_,shouldMountContent:d,skipTransition:l,autoHide:m,show:f,hide:h,handleResize:F,onResize:c,classes:y,result:w})=>[ae(e.$slots,"default",{shown:_,show:f,hide:h}),ve(n,{ref:"popperContent","popper-id":o,theme:e.finalTheme,shown:_,mounted:d,"skip-transition":l,"auto-hide":m,"handle-resize":F,classes:y,result:w,onHide:h,onResize:c},{default:ge(()=>[ae(e.$slots,"popper",{shown:_,hide:h})]),_:2},1032,["popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:3},16,["theme","target-nodes","popper-node","class"])}const dn=Yn(K1,[["render",Z1]]),J1={...dn,name:"VDropdown",vPopperTheme:"dropdown"};({...dn},{...dn}),Ge({name:"VTooltipDirective",components:{Popper:Tl(),PopperContent:zl},mixins:[Ol],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>nn(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>nn(e.theme,"loadingContent")},targetNodes:{type:Function,required:!0}},data(){return{asyncContent:null}},computed:{isContentAsync(){return typeof this.content=="function"},loading(){return this.isContentAsync&&this.asyncContent==null},finalContent(){return this.isContentAsync?this.loading?this.loadingContent:this.asyncContent:this.content}},watch:{content:{handler(){this.fetchContent(!0)},immediate:!0},async finalContent(){await this.$nextTick(),this.$refs.popper.onResize()}},created(){this.$_fetchId=0},methods:{fetchContent(e){if(typeof this.content=="function"&&this.$_isShown&&(e||!this.$_loading&&this.asyncContent==null)){this.asyncContent=null,this.$_loading=!0;const t=++this.$_fetchId,a=this.content(this);a.then?a.then(i=>this.onResult(t,i)):this.onResult(t,a)}},onResult(e,t){e===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=t)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}});const Ks=Wa,Q1=J1;var Ll=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],Yr=Ll.join(","),$l=typeof Element>"u",mi=$l?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Ur=!$l&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e?.ownerDocument},or=function(e,t){var a;t===void 0&&(t=!0);var i=e==null||(a=e.getAttribute)===null||a===void 0?void 0:a.call(e,"inert"),r=i===""||i==="true",u=r||t&&e&&or(e.parentNode);return u},X1=function(e){var t,a=e==null||(t=e.getAttribute)===null||t===void 0?void 0:t.call(e,"contenteditable");return a===""||a==="true"},Il=function(e,t,a){if(or(e))return[];var i=Array.prototype.slice.apply(e.querySelectorAll(Yr));return t&&mi.call(e,Yr)&&i.unshift(e),i=i.filter(a),i},Gr=function(e,t,a){for(var i=[],r=Array.from(e);r.length;){var u=r.shift();if(!or(u,!1))if(u.tagName==="SLOT"){var n=u.assignedElements(),s=n.length?n:u.children,o=Gr(s,!0,a);a.flatten?i.push.apply(i,o):i.push({scopeParent:u,candidates:o})}else{var _=mi.call(u,Yr);_&&a.filter(u)&&(t||!e.includes(u))&&i.push(u);var d=u.shadowRoot||typeof a.getShadowRoot=="function"&&a.getShadowRoot(u),l=!or(d,!1)&&(!a.shadowRootFilter||a.shadowRootFilter(u));if(d&&l){var m=Gr(d===!0?u.children:d.children,!0,a);a.flatten?i.push.apply(i,m):i.push({scopeParent:u,candidates:m})}else r.unshift.apply(r,u.children)}}return i},Rl=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},si=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||X1(e))&&!Rl(e)?0:e.tabIndex},e_=function(e,t){var a=si(e);return a<0&&t&&!Rl(e)?0:a},t_=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},Hl=function(e){return e.tagName==="INPUT"},a_=function(e){return Hl(e)&&e.type==="hidden"},i_=function(e){var t=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(a){return a.tagName==="SUMMARY"});return t},r_=function(e,t){for(var a=0;asummary:first-of-type"),n=u?e.parentElement:e;if(mi.call(n,"details:not([open]) *"))return!0;if(!a||a==="full"||a==="full-native"||a==="legacy-full"){if(typeof i=="function"){for(var s=e;e;){var o=e.parentElement,_=Ur(e);if(o&&!o.shadowRoot&&i(o)===!0)return Zs(e);e.assignedSlot?e=e.assignedSlot:!o&&_!==e.ownerDocument?e=_.host:e=o}e=s}if(o_(e))return!e.getClientRects().length;if(a!=="legacy-full")return!0}else if(a==="non-zero-area")return Zs(e);return!1},d_=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName==="FIELDSET"&&t.disabled){for(var a=0;a=0)},Wl=function(e){var t=[],a=[];return e.forEach(function(i,r){var u=!!i.scopeParent,n=u?i.scopeParent:i,s=e_(n,u),o=u?Wl(i.candidates):n;s===0?u?t.push.apply(t,o):t.push(n):a.push({documentOrder:r,tabIndex:s,item:i,isScope:u,content:o})}),a.sort(t_).reduce(function(i,r){return r.isScope?i.push.apply(i,r.content):i.push(r.content),i},[]).concat(t)},__=function(e,t){t=t||{};var a;return t.getShadowRoot?a=Gr([e],t.includeContainer,{filter:gn.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:g_}):a=Il(e,t.includeContainer,gn.bind(null,t)),Wl(a)},f_=function(e,t){t=t||{};var a;return t.getShadowRoot?a=Gr([e],t.includeContainer,{filter:Kr.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):a=Il(e,t.includeContainer,Kr.bind(null,t)),a},bi=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return mi.call(e,Yr)===!1?!1:gn(t,e)},m_=Ll.concat("iframe").join(","),Mr=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return mi.call(e,m_)===!1?!1:Kr(t,e)};function _n(e,t){(t==null||t>e.length)&&(t=e.length);for(var a=0,i=Array(t);a0){var a=e[e.length-1];a!==t&&a._setPausedState(!0)}var i=e.indexOf(t);i===-1||e.splice(i,1),e.push(t)},deactivateTrap:function(e,t){var a=e.indexOf(t);a!==-1&&e.splice(a,1),e.length>0&&!e[e.length-1]._isManuallyPaused()&&e[e.length-1]._setPausedState(!1)}},v_=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},D_=function(e){return e?.key==="Escape"||e?.key==="Esc"||e?.keyCode===27},Xi=function(e){return e?.key==="Tab"||e?.keyCode===9},E_=function(e){return Xi(e)&&!e.shiftKey},C_=function(e){return Xi(e)&&e.shiftKey},eo=function(e){return setTimeout(e,0)},Vi=function(e){for(var t=arguments.length,a=new Array(t>1?t-1:0),i=1;i1&&arguments[1]!==void 0?arguments[1]:{},re=H.hasFallback,B=re===void 0?!1:re,M=H.params,q=M===void 0?[]:M,I=r[S];if(typeof I=="function"&&(I=I.apply(void 0,b_(q))),I===!0&&(I=void 0),!I){if(I===void 0||I===!1)return I;throw new Error("`".concat(S,"` was specified but was not a node, or did not return a node"))}var te=I;if(typeof I=="string"){try{te=a.querySelector(I)}catch(V){throw new Error("`".concat(S,'` appears to be an invalid selector; error="').concat(V.message,'"'))}if(!te&&!B)throw new Error("`".concat(S,"` as selector refers to no known node"))}return te},d=function(){var S=_("initialFocus",{hasFallback:!0});if(S===!1)return!1;if(S===void 0||S&&!Mr(S,r.tabbableOptions))if(o(a.activeElement)>=0)S=a.activeElement;else{var H=u.tabbableGroups[0],re=H&&H.firstTabbableNode;S=re||_("fallbackFocus")}else S===null&&(S=_("fallbackFocus"));if(!S)throw new Error("Your focus-trap needs to have at least one focusable element");return S},l=function(){if(u.containerGroups=u.containers.map(function(S){var H=__(S,r.tabbableOptions),re=f_(S,r.tabbableOptions),B=H.length>0?H[0]:void 0,M=H.length>0?H[H.length-1]:void 0,q=re.find(function(V){return bi(V)}),I=re.slice().reverse().find(function(V){return bi(V)}),te=!!H.find(function(V){return si(V)>0});return{container:S,tabbableNodes:H,focusableNodes:re,posTabIndexesFound:te,firstTabbableNode:B,lastTabbableNode:M,firstDomTabbableNode:q,lastDomTabbableNode:I,nextTabbableNode:function(V){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,G=H.indexOf(V);return G<0?oe?re.slice(re.indexOf(V)+1).find(function(he){return bi(he)}):re.slice(0,re.indexOf(V)).reverse().find(function(he){return bi(he)}):H[G+(oe?1:-1)]}}}),u.tabbableGroups=u.containerGroups.filter(function(S){return S.tabbableNodes.length>0}),u.tabbableGroups.length<=0&&!_("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(u.containerGroups.find(function(S){return S.posTabIndexesFound})&&u.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},m=function(S){var H=S.activeElement;if(H)return H.shadowRoot&&H.shadowRoot.activeElement!==null?m(H.shadowRoot):H},f=function(S){if(S!==!1&&S!==m(document)){if(!S||!S.focus){f(d());return}S.focus({preventScroll:!!r.preventScroll}),u.mostRecentlyFocusedNode=S,v_(S)&&S.select()}},h=function(S){var H=_("setReturnFocus",{params:[S]});return H||(H===!1?!1:S)},F=function(S){var H=S.target,re=S.event,B=S.isBackward,M=B===void 0?!1:B;H=H||Er(re),l();var q=null;if(u.tabbableGroups.length>0){var I=o(H,re),te=I>=0?u.containerGroups[I]:void 0;if(I<0)M?q=u.tabbableGroups[u.tabbableGroups.length-1].lastTabbableNode:q=u.tabbableGroups[0].firstTabbableNode;else if(M){var V=u.tabbableGroups.findIndex(function(U){var Fe=U.firstTabbableNode;return H===Fe});if(V<0&&(te.container===H||Mr(H,r.tabbableOptions)&&!bi(H,r.tabbableOptions)&&!te.nextTabbableNode(H,!1))&&(V=I),V>=0){var oe=V===0?u.tabbableGroups.length-1:V-1,G=u.tabbableGroups[oe];q=si(H)>=0?G.lastTabbableNode:G.lastDomTabbableNode}else Xi(re)||(q=te.nextTabbableNode(H,!1))}else{var he=u.tabbableGroups.findIndex(function(U){var Fe=U.lastTabbableNode;return H===Fe});if(he<0&&(te.container===H||Mr(H,r.tabbableOptions)&&!bi(H,r.tabbableOptions)&&!te.nextTabbableNode(H))&&(he=I),he>=0){var A=he===u.tabbableGroups.length-1?0:he+1,X=u.tabbableGroups[A];q=si(H)>=0?X.firstTabbableNode:X.firstDomTabbableNode}else Xi(re)||(q=te.nextTabbableNode(H))}}else q=_("fallbackFocus");return q},c=function(S){var H=Er(S);if(!(o(H,S)>=0)){if(Vi(r.clickOutsideDeactivates,S)){n.deactivate({returnFocus:r.returnFocusOnDeactivate});return}Vi(r.allowOutsideClick,S)||S.preventDefault()}},y=function(S){var H=Er(S),re=o(H,S)>=0;if(re||H instanceof Document)re&&(u.mostRecentlyFocusedNode=H);else{S.stopImmediatePropagation();var B,M=!0;if(u.mostRecentlyFocusedNode)if(si(u.mostRecentlyFocusedNode)>0){var q=o(u.mostRecentlyFocusedNode),I=u.containerGroups[q].tabbableNodes;if(I.length>0){var te=I.findIndex(function(V){return V===u.mostRecentlyFocusedNode});te>=0&&(r.isKeyForward(u.recentNavEvent)?te+1=0&&(B=I[te-1],M=!1))}}else u.containerGroups.some(function(V){return V.tabbableNodes.some(function(oe){return si(oe)>0})})||(M=!1);else M=!1;M&&(B=F({target:u.mostRecentlyFocusedNode,isBackward:r.isKeyBackward(u.recentNavEvent)})),f(B||u.mostRecentlyFocusedNode||d())}u.recentNavEvent=void 0},w=function(S){var H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;u.recentNavEvent=S;var re=F({event:S,isBackward:H});re&&(Xi(S)&&S.preventDefault(),f(re))},D=function(S){(r.isKeyForward(S)||r.isKeyBackward(S))&&w(S,r.isKeyBackward(S))},T=function(S){D_(S)&&Vi(r.escapeDeactivates,S)!==!1&&(S.preventDefault(),n.deactivate())},O=function(S){var H=Er(S);o(H,S)>=0||Vi(r.clickOutsideDeactivates,S)||Vi(r.allowOutsideClick,S)||(S.preventDefault(),S.stopImmediatePropagation())},N=function(){if(u.active)return Xs.activateTrap(i,n),u.delayInitialFocusTimer=r.delayInitialFocus?eo(function(){f(d())}):f(d()),a.addEventListener("focusin",y,!0),a.addEventListener("mousedown",c,{capture:!0,passive:!1}),a.addEventListener("touchstart",c,{capture:!0,passive:!1}),a.addEventListener("click",O,{capture:!0,passive:!1}),a.addEventListener("keydown",D,{capture:!0,passive:!1}),a.addEventListener("keydown",T),n},L=function(){if(u.active)return a.removeEventListener("focusin",y,!0),a.removeEventListener("mousedown",c,!0),a.removeEventListener("touchstart",c,!0),a.removeEventListener("click",O,!0),a.removeEventListener("keydown",D,!0),a.removeEventListener("keydown",T),n},R=function(S){var H=S.some(function(re){var B=Array.from(re.removedNodes);return B.some(function(M){return M===u.mostRecentlyFocusedNode})});H&&f(d())},Y=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(R):void 0,W=function(){Y&&(Y.disconnect(),u.active&&!u.paused&&u.containers.map(function(S){Y.observe(S,{subtree:!0,childList:!0})}))};return n={get active(){return u.active},get paused(){return u.paused},activate:function(S){if(u.active)return this;var H=s(S,"onActivate"),re=s(S,"onPostActivate"),B=s(S,"checkCanFocusTrap");B||l(),u.active=!0,u.paused=!1,u.nodeFocusedBeforeActivation=m(a),H?.();var M=function(){B&&l(),N(),W(),re?.()};return B?(B(u.containers.concat()).then(M,M),this):(M(),this)},deactivate:function(S){if(!u.active)return this;var H=Qs({onDeactivate:r.onDeactivate,onPostDeactivate:r.onPostDeactivate,checkCanReturnFocus:r.checkCanReturnFocus},S);clearTimeout(u.delayInitialFocusTimer),u.delayInitialFocusTimer=void 0,L(),u.active=!1,u.paused=!1,W(),Xs.deactivateTrap(i,n);var re=s(H,"onDeactivate"),B=s(H,"onPostDeactivate"),M=s(H,"checkCanReturnFocus"),q=s(H,"returnFocus","returnFocusOnDeactivate");re?.();var I=function(){eo(function(){q&&f(h(u.nodeFocusedBeforeActivation)),B?.()})};return q&&M?(M(h(u.nodeFocusedBeforeActivation)).then(I,I),this):(I(),this)},pause:function(S){return u.active?(u.manuallyPaused=!0,this._setPausedState(!0,S)):this},unpause:function(S){return u.active?(u.manuallyPaused=!1,i[i.length-1]!==this?this:this._setPausedState(!1,S)):this},updateContainerElements:function(S){var H=[].concat(S).filter(Boolean);return u.containers=H.map(function(re){return typeof re=="string"?a.querySelector(re):re}),u.active&&l(),W(),this}},Object.defineProperties(n,{_isManuallyPaused:{value:function(){return u.manuallyPaused}},_setPausedState:{value:function(S,H){if(u.paused===S)return this;if(u.paused=S,S){var re=s(H,"onPause"),B=s(H,"onPostPause");re?.(),L(),W(),B?.()}else{var M=s(H,"onUnpause"),q=s(H,"onPostUnpause");M?.(),l(),N(),W(),q?.()}return this}}}),n.updateContainerElements(e),n};const Zr=I0(),B_=Ge({name:"NcPopoverTriggerProvider",provide(){return{"NcPopover:trigger:shown":()=>this.shown,"NcPopover:trigger:attrs":()=>this.triggerAttrs}},props:{shown:{type:Boolean,required:!0},popupRole:{type:String,default:void 0}},computed:{triggerAttrs(){return{"aria-haspopup":this.popupRole,"aria-expanded":this.shown.toString()}}},render(){return this.$slots.default?.({attrs:this.triggerAttrs})}}),j_="_ncPopover_wpltc_20",A_={"material-design-icon":"_material-design-icon_wpltc_12",ncPopover:j_},Yl="nc-popover-9";Ks.themes[Yl]=structuredClone(Ks.themes.dropdown);const q_={name:"NcPopover",components:{Dropdown:Q1,NcPopoverTriggerProvider:B_},props:{boundary:{type:[String,Object],default:""},closeOnClickOutside:{type:Boolean,default:!0},noCloseOnClickOutside:{type:Boolean,default:!1},container:{type:[Boolean,String],default:"body"},delay:{type:[Number,Object],default:0},noFocusTrap:{type:Boolean,default:!1},placement:{type:String,default:"bottom"},popoverBaseClass:{type:String,default:""},popoverTriggers:{type:[Array,Object],default:null},popupRole:{type:String,default:void 0,validator:e=>["menu","listbox","tree","grid","dialog","true"].includes(e)},setReturnFocus:{default:void 0,type:[Boolean,HTMLElement,SVGElement,String,Function]},shown:{type:Boolean,default:!1},triggers:{type:[Array,Object],default:()=>["click"]}},emits:["afterShow","afterHide","update:shown"],setup(){return{theme:Yl}},data(){return{internalShown:this.shown}},computed:{popperTriggers(){if(this.popoverTriggers&&Array.isArray(this.popoverTriggers))return this.popoverTriggers},popperHideTriggers(){if(this.popoverTriggers&&typeof this.popoverTriggers=="object")return this.popoverTriggers.hide},popperShowTriggers(){if(this.popoverTriggers&&typeof this.popoverTriggers=="object")return this.popoverTriggers.show},internalTriggers(){if(this.triggers&&Array.isArray(this.triggers))return this.triggers},hideTriggers(){if(this.triggers&&typeof this.triggers=="object")return this.triggers.hide},showTriggers(){if(this.triggers&&typeof this.triggers=="object")return this.triggers.show},internalPlacement(){return this.placement==="start"?Zr?"right":"left":this.placement==="end"?Zr?"left":"right":this.placement}},watch:{shown(e){this.internalShown=e},internalShown(e){this.$emit("update:shown",e)}},mounted(){this.checkTriggerA11y()},beforeUnmount(){this.clearFocusTrap(),this.clearEscapeStopPropagation()},methods:{checkTriggerA11y(){window.OC?.debug&&this.getPopoverTriggerContainerElement().querySelector("[aria-expanded]")},removeFloatingVueAriaDescribedBy(){const e=this.getPopoverTriggerContainerElement().querySelectorAll("[data-popper-shown]");for(const t of e)t.removeAttribute("aria-describedby")},getPopoverContentElement(){return this.$refs.popover?.$refs.popperContent?.$el},getPopoverTriggerContainerElement(){return this.$refs.popover?.$refs.popper?.$refs.reference},async useFocusTrap(){if(await this.$nextTick(),this.noFocusTrap)return;const e=this.getPopoverContentElement();e.tabIndex=-1,e&&(this.$focusTrap=Vl(e,{escapeDeactivates:!1,allowOutsideClick:!0,setReturnFocus:this.setReturnFocus,trapStack:rr(),fallBackFocus:e}),this.$focusTrap.activate())},clearFocusTrap(e={}){try{this.$focusTrap?.deactivate(e),this.$focusTrap=null}catch(t){ra.warn("[NcPopover] Failed to clear focus trap",{error:t})}},addEscapeStopPropagation(){this.getPopoverContentElement()?.addEventListener("keydown",this.stopKeydownEscapeHandler)},clearEscapeStopPropagation(){this.getPopoverContentElement()?.removeEventListener("keydown",this.stopKeydownEscapeHandler)},stopKeydownEscapeHandler(e){e.type==="keydown"&&e.key==="Escape"&&e.stopPropagation()},async afterShow(){this.getPopoverContentElement().addEventListener("transitionend",()=>{this.$emit("afterShow")},{once:!0,passive:!0}),this.removeFloatingVueAriaDescribedBy(),await this.$nextTick(),await this.useFocusTrap(),this.addEscapeStopPropagation()},afterHide(){this.getPopoverContentElement()?.addEventListener("transitionend",()=>{this.$emit("afterHide")},{once:!0,passive:!0}),this.clearFocusTrap(),this.clearEscapeStopPropagation()}}};function S_(e,t,a,i,r,u){const n=$e("NcPopoverTriggerProvider"),s=$e("Dropdown");return p(),pe(s,{ref:"popover",shown:r.internalShown,"onUpdate:shown":[t[0]||(t[0]=o=>r.internalShown=o),t[1]||(t[1]=o=>r.internalShown=o)],"arrow-padding":10,"auto-hide":!a.noCloseOnClickOutside&&a.closeOnClickOutside,boundary:a.boundary||void 0,container:a.container,delay:a.delay,distance:10,"handle-resize":"","no-auto-focus":!0,placement:u.internalPlacement,"popper-class":[e.$style.ncPopover,a.popoverBaseClass],"popper-triggers":u.popperTriggers,"popper-hide-triggers":u.popperHideTriggers,"popper-show-triggers":u.popperShowTriggers,theme:i.theme,triggers:u.internalTriggers,"hide-triggers":u.hideTriggers,"show-triggers":u.showTriggers,onApplyShow:u.afterShow,onApplyHide:u.afterHide},{popper:ge(o=>[ae(e.$slots,"default",We(Ke(o)))]),default:ge(()=>[ve(n,{shown:r.internalShown,"popup-role":a.popupRole},{default:ge(o=>[ae(e.$slots,"trigger",We(Ke(o)))]),_:3},8,["shown","popup-role"])]),_:3},8,["shown","auto-hide","boundary","container","delay","placement","popper-class","popper-triggers","popper-hide-triggers","popper-show-triggers","theme","triggers","hide-triggers","show-triggers","onApplyShow","onApplyHide"])}const N_={$style:A_},Jr=Ft(q_,[["render",S_],["__cssModules",N_]]),M_={name:"DotsHorizontalIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},T_=["aria-hidden","aria-label"],P_=["fill","width","height"],z_={d:"M16,12A2,2 0 0,1 18,10A2,2 0 0,1 20,12A2,2 0 0,1 18,14A2,2 0 0,1 16,12M10,12A2,2 0 0,1 12,10A2,2 0 0,1 14,12A2,2 0 0,1 12,14A2,2 0 0,1 10,12M4,12A2,2 0 0,1 6,10A2,2 0 0,1 8,12A2,2 0 0,1 6,14A2,2 0 0,1 4,12Z"},O_={key:0};function L_(e,t,a,i,r,u){return p(),j("span",Le(e.$attrs,{"aria-hidden":a.title?null:"true","aria-label":a.title,class:"material-design-icon dots-horizontal-icon",role:"img",onClick:t[0]||(t[0]=n=>e.$emit("click",n))}),[(p(),j("svg",{fill:a.fillColor,class:"material-design-icon__svg",width:a.size,height:a.size,viewBox:"0 0 24 24"},[z("path",z_,[a.title?(p(),j("title",O_,De(a.title),1)):$("",!0)])],8,P_))],16,T_)}const Ul=Ft(M_,[["render",L_]]);Te(R0);function Gl(e){return Array.isArray(e)&&e.some(t=>{if(t===null)return!1;if(typeof t=="object"){const a=t;if(a.type===H0||a.type===je&&!Gl(a.children)||a.type===W0&&!a.children.trim())return!1}return!0})}const $_=".focusable",I_={name:"NcActions",components:{NcButton:It,NcPopover:Jr},provide(){return{[cr]:K(()=>this.actionsMenuSemanticType==="menu"),[Fl]:this.closeMenu}},props:{open:{type:Boolean,default:!1},manualOpen:{type:Boolean,default:!1},forceMenu:{type:Boolean,default:!1},forceName:{type:Boolean,default:!1},menuName:{type:String,default:null},primary:{type:Boolean,default:!1},defaultIcon:{type:String,default:""},ariaLabel:{type:String,default:_e("Actions")},placement:{type:String,default:"bottom"},boundariesElement:{type:Element,default:()=>document.getElementById("content-vue")??document.querySelector("body")},container:{type:[Boolean,String,Object,Element],default:"body"},disabled:{type:Boolean,default:!1},inline:{type:Number,default:0},variant:{type:String,validator(e){return["primary","secondary","tertiary","tertiary-no-background","tertiary-on-primary","error","warning","success"].includes(e)},default:null},size:{type:String,default:"normal",validator(e){return["small","normal","large"].includes(e)}}},emits:["click","blur","focus","close","closed","open","opened","update:open"],setup(){return{randomId:Aa()}},data(){return{opened:this.open,focusIndex:0,actionsMenuSemanticType:"unknown"}},computed:{triggerButtonVariant(){return this.variant||(this.primary?"primary":this.menuName?"secondary":"tertiary")},config(){return{menu:{popupRole:"menu",withArrowNavigation:!0,withTabNavigation:!1,withFocusTrap:!1},navigation:{popupRole:void 0,withArrowNavigation:!1,withTabNavigation:!0,withFocusTrap:!1},dialog:{popupRole:"dialog",withArrowNavigation:!1,withTabNavigation:!0,withFocusTrap:!0},tooltip:{popupRole:void 0,withArrowNavigation:!1,withTabNavigation:!1,withFocusTrap:!1},unknown:{popupRole:void 0,role:void 0,withArrowNavigation:!0,withTabNavigation:!1,withFocusTrap:!0}}[this.actionsMenuSemanticType]},withFocusTrap(){return this.config.withFocusTrap}},watch:{open(e){e!==this.opened&&(this.opened=e)},opened(){this.opened?document.body.addEventListener("keydown",this.handleEscapePressed):document.body.removeEventListener("keydown",this.handleEscapePressed)}},created(){pl(()=>this.opened,{disabled:()=>this.config.withFocusTrap}),"ariaHidden"in this.$attrs},methods:{getActionName(e){return e?.type?.name},isValidSingleAction(e){return["NcActionButton","NcActionLink","NcActionRouter"].includes(this.getActionName(e))},isAction(e){return this.getActionName(e)?.startsWith?.("NcAction")},isIconUrl(e){try{return!!new URL(e,e.startsWith("/")?window.location.origin:void 0)}catch{return!1}},toggleMenu(e){e?this.openMenu():this.closeMenu()},openMenu(){this.opened||(this.opened=!0,this.$emit("update:open",!0),this.$emit("open"))},async closeMenu(e=!0){this.opened&&(await this.$nextTick(),this.opened=!1,this.$refs.popover?.clearFocusTrap({returnFocus:e}),this.$emit("update:open",!1),this.$emit("close"),this.focusIndex=0,e&&this.$refs.triggerButton?.$el.focus())},onOpened(){this.$nextTick(()=>{this.focusFirstAction(null),this.$emit("opened")})},onClosed(){this.$emit("closed")},getCurrentActiveMenuItemElement(){return this.$refs.menu.querySelector("li.active")},getFocusableMenuItemElements(){return this.$refs.menu.querySelectorAll($_)},onKeydown(e){if(e.key==="Tab"){if(this.config.withFocusTrap)return;if(!this.config.withTabNavigation){this.closeMenu(!0);return}e.preventDefault();const t=this.getFocusableMenuItemElements(),a=[...t].indexOf(document.activeElement);if(a===-1)return;const i=e.shiftKey?a-1:a+1;(i<0||i===t.length)&&this.closeMenu(!0),this.focusIndex=i,this.focusAction();return}this.config.withArrowNavigation&&(e.key==="ArrowUp"&&this.focusPreviousAction(e),e.key==="ArrowDown"&&this.focusNextAction(e),e.key==="PageUp"&&this.focusFirstAction(e),e.key==="PageDown"&&this.focusLastAction(e)),this.handleEscapePressed(e)},onTriggerKeydown(e){e.key==="Escape"&&this.actionsMenuSemanticType==="tooltip"&&this.closeMenu()},handleEscapePressed(e){e.key==="Escape"&&(this.closeMenu(),e.preventDefault())},removeCurrentActive(){const e=this.$refs.menu.querySelector("li.active");e&&e.classList.remove("active")},focusAction(){const e=this.getFocusableMenuItemElements()[this.focusIndex];if(e){this.removeCurrentActive();const t=e.closest("li.action");e.focus(),t&&t.classList.add("active")}},focusPreviousAction(e){this.opened&&(this.focusIndex===0?this.focusLastAction(e):(this.preventIfEvent(e),this.focusIndex=this.focusIndex-1),this.focusAction())},focusNextAction(e){if(this.opened){const t=this.getFocusableMenuItemElements().length-1;this.focusIndex===t?this.focusFirstAction(e):(this.preventIfEvent(e),this.focusIndex=this.focusIndex+1),this.focusAction()}},focusFirstAction(e){if(this.opened){this.preventIfEvent(e);const t=[...this.getFocusableMenuItemElements()].findIndex(a=>a.getAttribute("aria-checked")==="true"&&a.getAttribute("role")==="menuitemradio");this.focusIndex=t>-1?t:0,this.focusAction()}},focusLastAction(e){this.opened&&(this.preventIfEvent(e),this.focusIndex=this.getFocusableMenuItemElements().length-1,this.focusAction())},preventIfEvent(e){e&&(e.preventDefault(),e.stopPropagation())},onFocus(e){this.$emit("focus",e)},onBlur(e){this.$emit("blur",e),this.actionsMenuSemanticType==="tooltip"&&this.$refs.menu&&this.getFocusableMenuItemElements().length===0&&this.closeMenu(!1)},onClick(e){this.$emit("click",e)}},render(){const e=[],t=(f,h)=>{f.forEach(F=>{if(this.isAction(F)){h.push(F);return}F.type===je&&t(F.children,h)})};if(t(this.$slots.default?.(),e),e.length===0)return;let a=e.filter(this.isValidSingleAction);this.forceMenu&&a.length>0&&this.inline>0&&(a=[]);const i=a.slice(0,this.inline),r=e.filter(f=>!i.includes(f)),u=["NcActionButton","NcActionButtonGroup","NcActionCheckbox","NcActionRadio"],n=["NcActionInput","NcActionTextEditable"],s=["NcActionLink","NcActionRouter"],o=r.some(f=>n.includes(this.getActionName(f))),_=r.some(f=>u.includes(this.getActionName(f))),d=r.some(f=>s.includes(this.getActionName(f)));o?this.actionsMenuSemanticType="dialog":_?this.actionsMenuSemanticType="menu":d?this.actionsMenuSemanticType="navigation":e.filter(f=>this.getActionName(f).startsWith("NcAction")).length===e.length?this.actionsMenuSemanticType="tooltip":this.actionsMenuSemanticType="unknown";const l=f=>{const h=f?.props?.icon,F=f?.children?.icon?.()?.[0]??(this.isIconUrl(h)?kt("img",{class:"action-item__menutoggle__icon",src:h,alt:""}):kt("span",{class:["icon",h]})),c=f?.children?.default?.()?.[0]?.children?.trim(),y=this.forceName?c:"";let w=f?.props?.title;this.forceName||w||(w=c);const D={...f?.props??{}},T=["submit","reset"].includes(D.type)?D.modelValue:"button";return delete D.modelValue,delete D.type,kt(It,Le(D,{class:"action-item action-item--single","aria-label":f?.props?.["aria-label"]||c,title:w,disabled:this.disabled||f?.props?.disabled,pressed:f?.props?.modelValue,size:this.size,type:T,variant:this.variant||(y?"secondary":"tertiary"),onFocus:this.onFocus,onBlur:this.onBlur,"onUpdate:pressed":f?.props?.["onUpdate:modelValue"]??(()=>{})}),{default:()=>y,icon:()=>F})},m=f=>{const h=Gl(this.$slots.icon?.())?this.$slots.icon?.():this.defaultIcon?kt("span",{class:["icon",this.defaultIcon]}):kt(Ul,{size:20}),F=`${this.randomId}-trigger`;return kt(Jr,{ref:"popover",delay:0,shown:this.opened,placement:this.placement,boundary:this.boundariesElement,autoBoundaryMaxSize:!0,container:this.container,...this.manualOpen&&{triggers:[]},noCloseOnClickOutside:this.manualOpen,popoverBaseClass:"action-item__popper",popupRole:this.config.popupRole,setReturnFocus:this.config.withFocusTrap?this.$refs.triggerButton?.$el:void 0,noFocusTrap:!this.config.withFocusTrap,"onUpdate:shown":this.toggleMenu,onAfterShow:this.onOpened,onAfterClose:this.onClosed},{trigger:()=>kt(It,{id:F,class:"action-item__menutoggle",disabled:this.disabled,size:this.size,variant:this.triggerButtonVariant,ref:"triggerButton","aria-label":this.menuName?null:this.ariaLabel,"aria-controls":this.opened&&this.config.popupRole?this.randomId:null,onFocus:this.onFocus,onBlur:this.onBlur,onClick:this.onClick,onKeydown:this.onTriggerKeydown},{icon:()=>h,default:()=>this.menuName}),default:()=>kt("div",{class:{open:this.opened},tabindex:"-1",onKeydown:this.onKeydown,ref:"menu"},[kt("ul",{id:this.randomId,tabindex:"-1",ref:"menuList",role:this.config.popupRole,"aria-labelledby":F,"aria-modal":this.actionsMenuSemanticType==="dialog"?"true":void 0},[f])])})};return e.length===1&&a.length===1&&!this.forceMenu?l(e[0]):(this.$nextTick(()=>{this.opened&&this.$refs.menu&&(this.$refs.menu.querySelector("li.active")||[]).length===0&&this.focusFirstAction()}),i.length>0&&this.inline>0?kt("div",{class:["action-items",`action-item--${this.triggerButtonVariant}`]},[...i.map(l),r.length>0?kt("div",{class:["action-item",{"action-item--open":this.opened}]},[m(r)]):null]):kt("div",{class:["action-item action-item--default-popover",`action-item--${this.triggerButtonVariant}`,{"action-item--open":this.opened}]},[m(e)]))}},Un=Ft(I_,[["__scopeId","data-v-5f7eed6b"]]),R_={name:"NcActionText",mixins:[su],inject:{isInSemanticMenu:{from:cr,default:!1}}},H_=["role"],W_={key:0,class:"action-text__longtext-wrapper"},V_={class:"action-text__name"},Y_=["textContent"],U_=["textContent"],G_={key:2,class:"action-text__text"};function K_(e,t,a,i,r,u){return p(),j("li",{class:"action",role:u.isInSemanticMenu&&"presentation"},[z("span",{class:"action-text",onClick:t[0]||(t[0]=(...n)=>e.onClick&&e.onClick(...n))},[ae(e.$slots,"icon",{},()=>[e.icon!==""?(p(),j("span",{key:0,"aria-hidden":"true",class:we(["action-text__icon",[e.isIconUrl?"action-text__icon--url":e.icon]]),style:Ve({backgroundImage:e.isIconUrl?`url(${e.icon})`:null})},null,6)):$("",!0)],!0),e.name?(p(),j("span",W_,[z("strong",V_,De(e.name),1),z("span",{class:"action-text__longtext",textContent:De(e.text)},null,8,Y_)])):e.isLongText?(p(),j("span",{key:1,class:"action-text__longtext",textContent:De(e.text)},null,8,U_)):(p(),j("span",G_,De(e.text),1)),$("",!0)])],8,H_)}const Z_=Ft(R_,[["render",K_],["__scopeId","data-v-fa684b48"]]);function Ai(e,t){return Pn()?(ul(e,t),!0):!1}const Bu=new WeakMap,J_=(...e)=>{var t;const a=e[0],i=(t=hr())===null||t===void 0?void 0:t.proxy,r=i??Pn();if(r==null&&!nl())throw new Error("injectLocal must be called in setup");return r&&Bu.has(r)&&a in Bu.get(r)?Bu.get(r)[a]:sl(...e)},Qr=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Q_=e=>e!=null,X_=Object.prototype.toString,ef=e=>X_.call(e)==="[object Object]",Ki=()=>{};function tf(...e){if(e.length!==1)return _i(...e);const t=e[0];return typeof t=="function"?nu(U0(()=>({get:t,set:Ki}))):ie(t)}function to(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function er(e){return Array.isArray(e)?e:[e]}function af(e){return hr()}function rf(e){if(!Qr)return e;let t=0,a,i;const r=()=>{t-=1,i&&t<=0&&(i.stop(),a=void 0,i=void 0)};return((...u)=>(t+=1,i||(i=Y0(!0),a=i.run(()=>e(...u))),Ai(r),a))}function uf(e,t=!0,a){af()?ot(e,a):t?e():xt(e)}function nf(e,t=1e3,a={}){const{immediate:i=!0,immediateCallback:r=!1}=a;let u=null;const n=ca(!1);function s(){u&&(clearInterval(u),u=null)}function o(){n.value=!1,s()}function _(){const d=et(t);d<=0||(n.value=!0,r&&e(),s(),n.value&&(u=setInterval(e,d)))}return i&&Qr&&_(),(tn(t)||typeof t=="function")&&Ai(rt(t,()=>{n.value&&Qr&&_()})),Ai(o),{isActive:V0(n),pause:o,resume:_}}function sf(e,t,a){return rt(e,t,{...a,immediate:!0})}const Fi=Qr?window:void 0;function Ut(e){var t;const a=et(e);return(t=a?.$el)!==null&&t!==void 0?t:a}function Va(...e){const t=(i,r,u,n)=>(i.addEventListener(r,u,n),()=>i.removeEventListener(r,u,n)),a=K(()=>{const i=er(et(e[0])).filter(r=>r!=null);return i.every(r=>typeof r!="string")?i:void 0});return sf(()=>{var i,r;return[(i=(r=a.value)===null||r===void 0?void 0:r.map(u=>Ut(u)))!==null&&i!==void 0?i:[Fi].filter(u=>u!=null),er(et(a.value?e[1]:e[0])),er(b(a.value?e[2]:e[1])),et(a.value?e[3]:e[2])]},([i,r,u,n],s,o)=>{if(!i?.length||!r?.length||!u?.length)return;const _=ef(n)?{...n}:n,d=i.flatMap(l=>r.flatMap(m=>u.map(f=>t(l,m,f,_))));o(()=>{d.forEach(l=>l())})},{flush:"post"})}function ao(e,t,a={}){const{window:i=Fi,ignore:r=[],capture:u=!0,detectIframe:n=!1,controls:s=!1}=a;if(!i)return s?{stop:Ki,cancel:Ki,trigger:Ki}:Ki;let o=!0;const _=c=>et(r).some(y=>{if(typeof y=="string")return Array.from(i.document.querySelectorAll(y)).some(w=>w===c.target||c.composedPath().includes(w));{const w=Ut(y);return w&&(c.target===w||c.composedPath().includes(w))}});function d(c){const y=et(c);return y&&y.$.subTree.shapeFlag===16}function l(c,y){const w=et(c),D=w.$.subTree&&w.$.subTree.children;return D==null||!Array.isArray(D)?!1:D.some(T=>T.el===y.target||y.composedPath().includes(T.el))}const m=c=>{const y=Ut(e);if(c.target!=null&&!(!(y instanceof Element)&&d(e)&&l(e,c))&&!(!y||y===c.target||c.composedPath().includes(y))){if("detail"in c&&c.detail===0&&(o=!_(c)),!o){o=!0;return}t(c)}};let f=!1;const h=[Va(i,"click",c=>{f||(f=!0,setTimeout(()=>{f=!1},0),m(c))},{passive:!0,capture:u}),Va(i,"pointerdown",c=>{const y=Ut(e);o=!_(c)&&!!(y&&!c.composedPath().includes(y))},{passive:!0}),n&&Va(i,"blur",c=>{setTimeout(()=>{var y;const w=Ut(e);((y=i.document.activeElement)===null||y===void 0?void 0:y.tagName)==="IFRAME"&&!w?.contains(i.document.activeElement)&&t(c)},0)},{passive:!0})].filter(Boolean),F=()=>h.forEach(c=>c());return s?{stop:F,cancel:()=>{o=!1},trigger:c=>{o=!0,m(c),o=!1}}:F}function of(){const e=ca(!1),t=hr();return t&&ot(()=>{e.value=!0},t),e}function Gn(e){const t=of();return K(()=>(t.value,!!e()))}function lf(e,t,a={}){const{window:i=Fi,...r}=a;let u;const n=Gn(()=>i&&"MutationObserver"in i),s=()=>{u&&(u.disconnect(),u=void 0)},o=rt(K(()=>{const l=er(et(e)).map(Ut).filter(Q_);return new Set(l)}),l=>{s(),n.value&&l.size&&(u=new MutationObserver(t),l.forEach(m=>u.observe(m,r)))},{immediate:!0,flush:"post"}),_=()=>u?.takeRecords(),d=()=>{o(),s()};return Ai(d),{isSupported:n,stop:d,takeRecords:_}}function df(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function io(...e){let t,a,i={};e.length===3?(t=e[0],a=e[1],i=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,a=e[0],i=e[1]):(t=e[0],a=e[1]):(t=!0,a=e[0]);const{target:r=Fi,eventName:u="keydown",passive:n=!1,dedupe:s=!1}=i,o=df(t);return Va(r,u,_=>{_.repeat&&et(s)||o(_)&&a(_)},n)}const gf=Symbol("vueuse-ssr-width");function _f(){const e=nl()?J_(gf,null):null;return typeof e=="number"?e:void 0}function ff(e,t={}){const{window:a=Fi,ssrWidth:i=_f()}=t,r=Gn(()=>a&&"matchMedia"in a&&typeof a.matchMedia=="function"),u=ca(typeof i=="number"),n=ca(),s=ca(!1),o=_=>{s.value=_.matches};return zn(()=>{if(u.value){u.value=!r.value,s.value=et(e).split(",").some(_=>{const d=_.includes("not all"),l=_.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),m=_.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let f=!!(l||m);return l&&f&&(f=i>=to(l[1])),m&&f&&(f=i<=to(m[1])),d?!f:f});return}r.value&&(n.value=a.matchMedia(et(e)),s.value=n.value.matches)}),Va(n,"change",o,{passive:!0}),K(()=>s.value)}function mf(e){return ff("(prefers-color-scheme: dark)",e)}function hf(e,t,a={}){const{window:i=Fi,...r}=a;let u;const n=Gn(()=>i&&"ResizeObserver"in i),s=()=>{u&&(u.disconnect(),u=void 0)},o=rt(K(()=>{const d=et(e);return Array.isArray(d)?d.map(l=>Ut(l)):[Ut(d)]}),d=>{if(s(),n.value&&i){u=new ResizeObserver(t);for(const l of d)l&&u.observe(l,r)}},{immediate:!0,flush:"post"}),_=()=>{s(),o()};return Ai(_),{isSupported:n,stop:_}}function cf(e,t={width:0,height:0},a={}){const{window:i=Fi,box:r="content-box"}=a,u=K(()=>{var l;return(l=Ut(e))===null||l===void 0||(l=l.namespaceURI)===null||l===void 0?void 0:l.includes("svg")}),n=ca(t.width),s=ca(t.height),{stop:o}=hf(e,([l])=>{const m=r==="border-box"?l.borderBoxSize:r==="content-box"?l.contentBoxSize:l.devicePixelContentBoxSize;if(i&&u.value){const f=Ut(e);if(f){const h=f.getBoundingClientRect();n.value=h.width,s.value=h.height}}else if(m){const f=er(m);n.value=f.reduce((h,{inlineSize:F})=>h+F,0),s.value=f.reduce((h,{blockSize:F})=>h+F,0)}else n.value=l.contentRect.width,s.value=l.contentRect.height},a);uf(()=>{const l=Ut(e);l&&(n.value="offsetWidth"in l?l.offsetWidth:t.width,s.value="offsetHeight"in l?l.offsetHeight:t.height)});const _=rt(()=>Ut(e),l=>{n.value=l?t.width:0,s.value=l?t.height:0});function d(){o(),_()}return{width:n,height:s,stop:d}}function ju(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}const Au=new WeakMap;function Ff(e,t=!1){const a=ca(t);let i="";rt(tf(e),n=>{const s=ju(et(n));if(s){const o=s;if(Au.get(o)||Au.set(o,o.style.overflow),o.style.overflow!=="hidden"&&(i=o.style.overflow),o.style.overflow==="hidden")return a.value=!0;if(a.value)return o.style.overflow="hidden"}},{immediate:!0});const r=()=>{const n=ju(et(e));!n||a.value||(n.style.overflow="hidden",a.value=!0)},u=()=>{const n=ju(et(e));!n||!a.value||(n.style.overflow=i,Au.delete(n),a.value=!1)};return Ai(u),K({get(){return a.value},set(n){n?r():u()}})}function pf(e,t={}){const{threshold:a=50,onSwipe:i,onSwipeEnd:r,onSwipeStart:u,passive:n=!0}=t,s=fi({x:0,y:0}),o=fi({x:0,y:0}),_=K(()=>s.x-o.x),d=K(()=>s.y-o.y),{max:l,abs:m}=Math,f=K(()=>l(m(_.value),m(d.value))>=a),h=ca(!1),F=K(()=>f.value?m(_.value)>m(d.value)?_.value>0?"left":"right":d.value>0?"up":"down":"none"),c=N=>[N.touches[0].clientX,N.touches[0].clientY],y=(N,L)=>{s.x=N,s.y=L},w=(N,L)=>{o.x=N,o.y=L},D={passive:n,capture:!n},T=N=>{h.value&&r?.(N,F.value),h.value=!1},O=[Va(e,"touchstart",N=>{if(N.touches.length!==1)return;const[L,R]=c(N);y(L,R),w(L,R),u?.(N)},D),Va(e,"touchmove",N=>{if(N.touches.length!==1)return;const[L,R]=c(N);w(L,R),D.capture&&!D.passive&&Math.abs(_.value)>Math.abs(d.value)&&N.preventDefault(),!h.value&&f.value&&(h.value=!0),h.value&&i?.(N)},D),Va(e,["touchend","touchcancel"],T,D)];return{isSwiping:h,direction:F,coordsStart:s,coordsEnd:o,lengthX:_,lengthY:d,stop:()=>O.forEach(N=>N())}}const Kn=1024,Kl=Kn/2,Xr=e=>document.documentElement.clientWidth{Zl.value=Xr(Kn),bf.value=Xr(Kl)},{passive:!0});function M6(){return nu(Zl)}let yf="missing-app-name";try{yf=D0}catch{ra.error("The `@nextcloud/vue` library was used without setting / replacing the `appName`.")}let wf="";try{wf=E0}catch{ra.error("The `@nextcloud/vue` library was used without setting / replacing the `appVersion`.")}Te(),On("nextcloud").persist().build(),uu().theming?.name,Te(),{...Un.props};const kf={name:"ChevronDownIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},vf=["aria-hidden","aria-label"],Df=["fill","width","height"],Ef={d:"M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z"},Cf={key:0};function xf(e,t,a,i,r,u){return p(),j("span",Le(e.$attrs,{"aria-hidden":a.title?null:"true","aria-label":a.title,class:"material-design-icon chevron-down-icon",role:"img",onClick:t[0]||(t[0]=n=>e.$emit("click",n))}),[(p(),j("svg",{fill:a.fillColor,class:"material-design-icon__svg",width:a.size,height:a.size,viewBox:"0 0 24 24"},[z("path",Ef,[a.title?(p(),j("title",Cf,De(a.title),1)):$("",!0)])],8,Df))],16,vf)}const Bf=Ft(kf,[["render",xf]]),jf={name:"CloseIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Af=["aria-hidden","aria-label"],qf=["fill","width","height"],Sf={d:"M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z"},Nf={key:0};function Mf(e,t,a,i,r,u){return p(),j("span",Le(e.$attrs,{"aria-hidden":a.title?null:"true","aria-label":a.title,class:"material-design-icon close-icon",role:"img",onClick:t[0]||(t[0]=n=>e.$emit("click",n))}),[(p(),j("svg",{fill:a.fillColor,class:"material-design-icon__svg",width:a.size,height:a.size,viewBox:"0 0 24 24"},[z("path",Sf,[a.title?(p(),j("title",Nf,De(a.title),1)):$("",!0)])],8,qf))],16,Af)}const Tf=Ft(jf,[["render",Mf]]);Te(G0),Te(K0),Te(J0,Z0),Te(),_e("Search …"),Te(),Te();const Pf=Ge({__name:"NcDialogButton",props:{callback:{type:Function,default:()=>{}},disabled:{type:Boolean,default:!1},icon:{default:void 0},label:{},type:{default:"button"},variant:{default:"tertiary"}},emits:["click"],setup(e,{emit:t}){const a=e,i=t,r=ie(!1);async function u(n){if(!r.value){r.value=!0;try{const s=a.type==="reset"?!1:void 0,o=await a.callback?.()??s;o!==!1&&i("click",n,o)}finally{r.value=!1}}}return(n,s)=>(p(),pe(b(It),{"aria-label":n.label,disabled:n.disabled,type:n.type,variant:n.variant,onClick:u},{icon:ge(()=>[ae(n.$slots,"icon",{},()=>[r.value?(p(),pe(b(In),{key:0,name:b(_e)("Loading …")},null,8,["name"])):n.icon!==void 0?(p(),pe(b(St),{key:1,svg:n.icon},null,8,["svg"])):$("",!0)])]),default:ge(()=>[Dt(De(n.label)+" ",1)]),_:3},8,["aria-label","disabled","type","variant"]))}});Te(Q0);const zf={long:_e("a few seconds ago"),short:_e("seconds ago"),narrow:_e("sec. ago")};function T6(e=Date.now(),t={}){let a;const i=K(()=>new Date(et(e))),r=K(()=>{const{language:s,relativeTime:o,ignoreSeconds:_}=et(t);return{...s&&{language:s},...o&&{relativeTime:o},ignoreSeconds:_?zf[o||"long"]:!1}}),u=ie("");zn(()=>n());function n(){if(u.value=Bg(i.value,r.value),et(t).update!==!1){const s=Math.abs(Date.now()-new Date(et(e)).getTime()),o=s>12e4||r.value.ignoreSeconds?Math.min(s/60,18e5):1e3;a=window.setTimeout(n,o)}}return ua(()=>a&&window.clearTimeout(a)),nu(u)}function P6(e,t){const a=K(()=>({locale:Tn(),format:{dateStyle:"short",timeStyle:"medium"},...et(t)})),i=K(()=>new Intl.DateTimeFormat(a.value.locale,a.value.format));return K(()=>i.value.format(et(e)))}const Of=/mac|ipad|iphone|darwin/i.test(navigator.userAgent),Lf=window.OCP?.Accessibility?.disableKeyboardShortcuts?.(),$f=/^[a-zA-Z0-9]$/,If=/^[^\x20-\x7F]$/;function Rf(e,t){return!(e.target instanceof HTMLElement)||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement||e.target.isContentEditable?!0:t.allowInModal?!1:Array.from(document.getElementsByClassName("modal-mask")).filter(a=>a.checkVisibility()).length>0}function ro(e,t){return a=>{if((Of?a.metaKey:a.ctrlKey)===!!t.ctrl){if(a.altKey!==!!t.alt||t.shift!==void 0&&a.shiftKey!==!!t.shift||Rf(a,t))return;t.prevent&&a.preventDefault(),t.stop&&a.stopPropagation(),e(a)}}}function uo(e,t=()=>{},a={}){if(Lf)return()=>{};const i=(s,o)=>{if(s.key===o)return!0;if(a.caseSensitive){const _=o===o.toLowerCase(),d=s.key===s.key.toLowerCase();if(_!==d)return!1}return $f.test(o)&&If.test(s.key)?s.code.replace(/^(?:Key|Digit|Numpad)/,"")===o.toUpperCase():s.key.toLowerCase()===o.toLowerCase()},r=s=>typeof e=="function"?e(s):typeof e=="string"?i(s,e):Array.isArray(e)?e.some(o=>i(s,o)):!0,u=io(r,ro(t,a),{eventName:"keydown",dedupe:!0,passive:!a.prevent}),n=a.push?io(r,ro(t,a),{eventName:"keyup",passive:!a.prevent}):()=>{};return()=>{u(),n()}}function eu(e=document.body){const t=window.getComputedStyle(e).getPropertyValue("--background-invert-if-dark");return t!==void 0?t==="invert(100%)":!1}eu();const Hf=Symbol.for("nc:theme:enforced");function Wf(e){const t=K(()=>et(e)??document.body),a=ie(eu(t.value)),i=mf();function r(){a.value=eu(t.value)}return lf(t,r,{attributes:!0}),rt(t,r),rt(i,r,{immediate:!0}),nu(a)}const Vf=rf(()=>Wf());function Yf(){const e=Vf(),t=sl(Hf,void 0);return K(()=>t?.value?t.value==="dark":e.value)}const Uf=ie(Jl());window.addEventListener("resize",()=>{Uf.value=Jl()});function Jl(){return window.outerHeight===window.screen.height}function no(e){return!e.parent||"vapor"in e||"vapor"in e.parent||e.parent.subTree!==e.vnode?null:e.parent}function Gf(e){const t=[e];let a=no(e);for(;a;)t.push(a),a=no(a);return t}function Kf(){const e=hr();if(!e)throw new Error("useScopeId must be called within a setup context");const t=Gf(e).map(a=>a.vnode.scopeId).filter(Boolean);return Object.fromEntries(t.map(a=>[a,""]))}Te();const Zf=["aria-labelledby","aria-describedby"],Jf=["data-theme-light","data-theme-dark"],Qf=["id"],Xf={class:"icons-menu"},em=["title"],tm=["id"],am={class:"modal-container__content"},im=Ge({inheritAttrs:!1,__name:"NcModal",props:ka({name:{default:""},hasPrevious:{type:Boolean},hasNext:{type:Boolean},outTransition:{type:Boolean},enableSlideshow:{type:Boolean},slideshowDelay:{default:5e3},slideshowPaused:{type:Boolean},disableSwipe:{type:Boolean},spreadNavigation:{type:Boolean},size:{default:"normal"},noClose:{type:Boolean},closeOnClickOutside:{type:Boolean},dark:{type:Boolean},lightBackdrop:{type:Boolean},container:{default:"body"},closeButtonOutside:{type:Boolean},additionalTrapElements:{default:()=>[]},inlineActions:{default:0},labelId:{default:""},setReturnFocus:{default:void 0}},{show:{type:Boolean,default:!0},showModifiers:{}}),emits:ka(["next","previous","close","update:show"],["update:show"]),setup(e,{emit:t}){X0(R=>({"3caa6a4b":h.value}));const a=Ga(e,"show"),i=e,r=t,u=Kf(),n=Aa(),s=$r("mask");let o;ot(()=>N()),ua(()=>L()),rt(()=>i.additionalTrapElements,R=>{o&&o.updateContainerElements([s.value,...R])});const{isActive:_,pause:d,resume:l}=nf(c,_i(()=>i.slideshowDelay),{immediate:!1}),m=ie(0),f=ie(!1);zn(()=>{f.value&&!i.slideshowPaused?l():_.value&&d()});const h=K(()=>`${i.slideshowDelay}ms`),{stop:F}=pf(s,{onSwipeEnd:w});ua(F),uo("Escape",()=>{rr().at(-1)===o&&T()},{allowInModal:!0}),uo(["ArrowLeft","ArrowRight"],R=>{document.activeElement&&!s.value.contains(document.activeElement)||(R.key==="ArrowLeft"!==Zr?y():c())},{allowInModal:!0}),ot(()=>{!i.name&&i.labelId});function c(R){if(!i.hasNext){f.value=!1;return}R&&_.value&&D(),r("next",R)}function y(R){i.hasPrevious&&(R&&_.value&&D(),r("previous",R))}function w(R,Y){if(!i.disableSwipe){if(Y!=="left"&&Y!=="right")return;Y==="left"!==Zr?c(R):y(R)}}function D(){d(),l(),m.value++}function T(R){i.noClose||(a.value=!1,setTimeout(()=>{r("close",R)},300))}function O(R){i.closeOnClickOutside&&T(R)}async function N(){if(!a.value||o)return;await xt();const R={allowOutsideClick:!0,fallbackFocus:s.value,trapStack:rr(),escapeDeactivates:!1,setReturnFocus:i.setReturnFocus};o=Vl([s.value,...i.additionalTrapElements],R),o.activate()}function L(){o&&(o?.deactivate(),o=void 0)}return(R,Y)=>(p(),pe(ol,{disabled:R.container===null,to:R.container},[ve($t,{name:"fade",appear:"",onAfterEnter:N,onBeforeLeave:L},{default:ge(()=>[bt(z("div",Le({...R.$attrs,...b(u)},{ref:"mask",class:["modal-mask",{"modal-mask--opaque":R.dark||R.closeButtonOutside||R.hasPrevious||R.hasNext,"modal-mask--light":R.lightBackdrop}],role:"dialog","aria-modal":"true","aria-labelledby":R.labelId||`modal-name-${b(n)}`,"aria-describedby":"modal-description-"+b(n),tabindex:"-1"}),[ve($t,{name:"fade-visibility",appear:""},{default:ge(()=>[z("div",{class:"modal-header","data-theme-light":R.lightBackdrop,"data-theme-dark":!R.lightBackdrop},[R.name.trim()!==""?(p(),j("h2",{key:0,id:"modal-name-"+b(n),class:"modal-header__name"},De(R.name),9,Qf)):$("",!0),z("div",Xf,[R.hasNext&&R.enableSlideshow?(p(),j("button",{key:0,class:we(["play-pause-icons",{"play-pause-icons--paused":R.slideshowPaused}]),title:b(_)?b(_e)("Pause slideshow"):b(_e)("Start slideshow"),type:"button",onClick:Y[0]||(Y[0]=W=>f.value=!f.value)},[ve(St,{class:"play-pause-icons__icon",inline:"",name:b(_)?b(_e)("Pause slideshow"):b(_e)("Start slideshow"),path:b(_)?b(C0):b(x0)},null,8,["name","path"]),b(_)?(p(),j("svg",{key:`${b(n)}-animation-${m.value}`,class:"progress-ring",height:"50",width:"50"},[...Y[1]||(Y[1]=[z("circle",{class:"progress-ring__circle",stroke:"white","stroke-width":"2",fill:"transparent",r:"15",cx:"25",cy:"25"},null,-1)])])):$("",!0)],10,em)):$("",!0),ve(Un,{class:"header-actions",inline:R.inlineActions},{default:ge(()=>[ae(R.$slots,"actions",{},void 0,!0)]),_:3},8,["inline"]),!R.noClose&&R.closeButtonOutside?(p(),pe(It,{key:1,"aria-label":b(_e)("Close"),class:"header-close",variant:"tertiary",onClick:T},{icon:ge(()=>[ve(St,{path:b(Es)},null,8,["path"])]),_:1},8,["aria-label"])):$("",!0)])],8,Jf)]),_:3}),ve($t,{name:`modal-${R.outTransition?"out":"in"}`,appear:""},{default:ge(()=>[bt(z("div",{class:we(["modal-wrapper",[`modal-wrapper--${R.size}`,{"modal-wrapper--spread-navigation":R.spreadNavigation}]]),onMousedown:qa(O,["self"])},[ve($t,{name:"fade-visibility",appear:""},{default:ge(()=>[bt(ve(It,{"aria-label":b(_e)("Previous"),class:"prev",variant:"tertiary-no-background",onClick:y},{icon:ge(()=>[ve(St,{directional:"",path:b(B0),size:40},null,8,["path"])]),_:1},8,["aria-label"]),[[At,R.hasPrevious]])]),_:1}),z("div",{id:"modal-description-"+b(n),class:"modal-container"},[z("div",am,[ae(R.$slots,"default",{},void 0,!0)]),!R.noClose&&!R.closeButtonOutside?(p(),pe(It,{key:0,"aria-label":b(_e)("Close"),class:"modal-container__close",variant:"tertiary",onClick:T},{icon:ge(()=>[ve(St,{path:b(Es)},null,8,["path"])]),_:1},8,["aria-label"])):$("",!0)],8,tm),ve($t,{name:"fade-visibility",appear:""},{default:ge(()=>[bt(ve(It,{"aria-label":b(_e)("Next"),class:"next",variant:"tertiary-no-background",onClick:c},{icon:ge(()=>[ve(St,{directional:"",path:b(rl),size:40},null,8,["path"])]),_:1},8,["aria-label"]),[[At,R.hasNext]])]),_:1})],34),[[At,a.value]])]),_:3},8,["name"])],16,Zf),[[At,a.value]])]),_:3})],8,["disabled","to"]))}}),rm=Ft(im,[["__scopeId","data-v-1639aad0"]]),um=["id","textContent"],nm=["aria-label","aria-labelledby"],sm={class:"dialog__text"},om={class:"dialog__actions"},lm=Ge({__name:"NcDialog",props:ka({name:{},message:{default:""},additionalTrapElements:{default:()=>[]},container:{default:"body"},size:{default:"small"},buttons:{default:()=>[]},isForm:{type:Boolean},noClose:{type:Boolean},closeOnClickOutside:{type:Boolean},outTransition:{type:Boolean},navigationAriaLabel:{default:""},navigationAriaLabelledby:{default:""},contentClasses:{default:""},dialogClasses:{default:""},navigationClasses:{default:""}},{open:{type:Boolean,default:!0},openModifiers:{}}),emits:ka(["closing","reset","submit"],["update:open"]),setup(e,{emit:t}){const a=Ga(e,"open"),i=e,r=t,u=Xa(),n=$r("wrapper"),{width:s}=cf(n,{width:900,height:0}),o=K(()=>s.value<876),_=K(()=>u?.navigation!==void 0),d=Aa(),l=K(()=>i.navigationAriaLabel||void 0),m=K(()=>{if(!i.navigationAriaLabel)return i.navigationAriaLabelledby||d}),f=$r("dialogElement"),h=K(()=>i.isForm&&!_.value?"form":"div"),F=K(()=>h.value!=="form"?{}:{submit(O){O.preventDefault(),r("submit",O)},reset(O){O.preventDefault(),r("reset",O)}}),c=ie(!0);function y(O,N){O.type==="submit"&&h.value==="form"&&"reportValidity"in f.value&&!f.value.reportValidity()||(w(N),window.setTimeout(()=>D(),300))}function w(O){c.value=!1,r("closing",O)}function D(){c.value=!0,a.value=!1}const T=K(()=>({noClose:i.noClose,container:i.container===void 0?"body":i.container,labelId:d,size:i.size,show:a.value&&c.value,outTransition:i.outTransition,closeOnClickOutside:i.closeOnClickOutside,additionalTrapElements:i.additionalTrapElements}));return(O,N)=>a.value?(p(),pe(b(rm),Le({key:0,class:"dialog__modal","enable-slideshow":!1,"disable-swipe":""},T.value,{onClose:D,"onUpdate:show":N[0]||(N[0]=L=>w())}),{default:ge(()=>[z("h2",{id:b(d),class:"dialog__name",textContent:De(O.name)},null,8,um),(p(),pe(Fa(h.value),Le({ref:"dialogElement",class:["dialog",O.dialogClasses]},Ln(F.value)),{default:ge(()=>[z("div",{ref:"wrapper",class:we(["dialog__wrapper",[{"dialog__wrapper--collapsed":o.value}]])},[_.value?(p(),j("nav",{key:0,class:we(["dialog__navigation",O.navigationClasses]),"aria-label":l.value,"aria-labelledby":m.value},[ae(O.$slots,"navigation",{isCollapsed:o.value},void 0,!0)],10,nm)):$("",!0),z("div",{class:we(["dialog__content",O.contentClasses])},[ae(O.$slots,"default",{},()=>[z("p",sm,De(O.message),1)],!0)],2)],2),z("div",om,[ae(O.$slots,"actions",{},()=>[(p(!0),j(je,null,Ye(O.buttons,(L,R)=>(p(),pe(b(Pf),Le({key:R},{ref_for:!0},L,{onClick:(Y,W)=>y(L,W)}),null,16,["onClick"]))),128))],!0)])]),_:3},16,["class"]))]),_:3},16)):$("",!0)}}),dm=Ft(lm,[["__scopeId","data-v-ca0b8eba"]]);Te(),Te();const qu=new WeakMap,gm={mounted(e,t){const a=!t.modifiers.bubble;let i;if(typeof t.value=="function")i=ao(e,t.value,{capture:a});else{const[r,u]=t.value;i=ao(e,r,Object.assign({capture:a},u))}qu.set(e,i)},unmounted(e){const t=qu.get(e);t&&typeof t=="function"?t():t?.stop(),qu.delete(e)}};function _m(){let e=!1;const t=ca(!1);return(a,i)=>{if(t.value=i.value,e)return;e=!0;const r=Ff(a,i.value);rt(t,u=>r.value=u)}}_m();const fm="LOCALHOST",mm="COLON",lr={defaultProtocol:"http",events:null,format:so,formatHref:so,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function Ql(e,t=null){let a=Object.assign({},lr);e&&(a=Object.assign(a,e instanceof Ql?e.o:e));const i=a.ignoreTags,r=[];for(let u=0;ua?i.substring(0,a)+"…":i},toFormattedHref(e){return e.get("formatHref",this.toHref(e.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(e=lr.defaultProtocol){return{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(e),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(e){return{type:this.t,value:this.toFormattedString(e),isLink:this.isLink,href:this.toFormattedHref(e),start:this.startIndex(),end:this.endIndex()}},validate(e){return e.get("validate",this.toString(),this)},render(e){const t=this,a=this.toHref(e.get("defaultProtocol")),i=e.get("formatHref",a,this),r=e.get("tagName",a,t),u=this.toFormattedString(e),n={},s=e.get("className",a,t),o=e.get("target",a,t),_=e.get("rel",a,t),d=e.getObj("attributes",a,t),l=e.getObj("events",a,t);return n.href=i,s&&(n.class=s),o&&(n.target=o),_&&(n.rel=_),d&&Object.assign(n,d),{tagName:r,attributes:n,content:u,eventListeners:l}}};function Cr(e,t){class a extends Xl{constructor(r,u){super(r,u),this.t=e}}for(const i in t)a.prototype[i]=t[i];return a.t=e,a}Cr("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),Cr("text"),Cr("nl"),Cr("url",{isLink:!0,toHref(e=lr.defaultProtocol){return this.hasProtocol()?this.v:`${e}://${this.v}`},hasProtocol(){const e=this.tk;return e.length>=2&&e[0].t!==fm&&e[1].t===mm}}),Te(eg);function hm(e,t){const a=(d,l)=>d.startsWith(l)?d.slice(l.length):d,i=(d,...l)=>l.reduce((m,f)=>a(m,f),d);if(!e)return null;const r=/^https?:\/\//.test(t),u=/^[a-z][a-z0-9+.-]*:.+/.test(t);if(!r&&u||r&&!t.startsWith(Cs())||!r&&!t.startsWith("/"))return null;const n=r?i(t,Cs(),"/index.php"):t,s=i(e.options.history.base,tg(),"/index.php"),o=i(n,s)||"/",_=e.resolve(o);return _.matched.length?_.fullPath:null}function cm(e){return window._nc_contacts_menu_hooks?Object.values(window._nc_contacts_menu_hooks).filter(t=>t.enabled(e)):[]}const Fm=new Int32Array(4);class jt{static hashStr(t,a=!1){return this.onePassHasher.start().appendStr(t).end(a)}static hashAsciiStr(t,a=!1){return this.onePassHasher.start().appendAsciiStr(t).end(a)}static stateIdentity=new Int32Array([1732584193,-271733879,-1732584194,271733878]);static buffer32Identity=new Int32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);static hexChars="0123456789abcdef";static hexOut=[];static onePassHasher=new jt;static _hex(t){const a=jt.hexChars,i=jt.hexOut;let r,u,n,s;for(s=0;s<4;s+=1)for(u=s*8,r=t[s],n=0;n<8;n+=2)i[u+1+n]=a.charAt(r&15),r>>>=4,i[u+0+n]=a.charAt(r&15),r>>>=4;return i.join("")}static _md5cycle(t,a){let i=t[0],r=t[1],u=t[2],n=t[3];i+=(r&u|~r&n)+a[0]-680876936|0,i=(i<<7|i>>>25)+r|0,n+=(i&r|~i&u)+a[1]-389564586|0,n=(n<<12|n>>>20)+i|0,u+=(n&i|~n&r)+a[2]+606105819|0,u=(u<<17|u>>>15)+n|0,r+=(u&n|~u&i)+a[3]-1044525330|0,r=(r<<22|r>>>10)+u|0,i+=(r&u|~r&n)+a[4]-176418897|0,i=(i<<7|i>>>25)+r|0,n+=(i&r|~i&u)+a[5]+1200080426|0,n=(n<<12|n>>>20)+i|0,u+=(n&i|~n&r)+a[6]-1473231341|0,u=(u<<17|u>>>15)+n|0,r+=(u&n|~u&i)+a[7]-45705983|0,r=(r<<22|r>>>10)+u|0,i+=(r&u|~r&n)+a[8]+1770035416|0,i=(i<<7|i>>>25)+r|0,n+=(i&r|~i&u)+a[9]-1958414417|0,n=(n<<12|n>>>20)+i|0,u+=(n&i|~n&r)+a[10]-42063|0,u=(u<<17|u>>>15)+n|0,r+=(u&n|~u&i)+a[11]-1990404162|0,r=(r<<22|r>>>10)+u|0,i+=(r&u|~r&n)+a[12]+1804603682|0,i=(i<<7|i>>>25)+r|0,n+=(i&r|~i&u)+a[13]-40341101|0,n=(n<<12|n>>>20)+i|0,u+=(n&i|~n&r)+a[14]-1502002290|0,u=(u<<17|u>>>15)+n|0,r+=(u&n|~u&i)+a[15]+1236535329|0,r=(r<<22|r>>>10)+u|0,i+=(r&n|u&~n)+a[1]-165796510|0,i=(i<<5|i>>>27)+r|0,n+=(i&u|r&~u)+a[6]-1069501632|0,n=(n<<9|n>>>23)+i|0,u+=(n&r|i&~r)+a[11]+643717713|0,u=(u<<14|u>>>18)+n|0,r+=(u&i|n&~i)+a[0]-373897302|0,r=(r<<20|r>>>12)+u|0,i+=(r&n|u&~n)+a[5]-701558691|0,i=(i<<5|i>>>27)+r|0,n+=(i&u|r&~u)+a[10]+38016083|0,n=(n<<9|n>>>23)+i|0,u+=(n&r|i&~r)+a[15]-660478335|0,u=(u<<14|u>>>18)+n|0,r+=(u&i|n&~i)+a[4]-405537848|0,r=(r<<20|r>>>12)+u|0,i+=(r&n|u&~n)+a[9]+568446438|0,i=(i<<5|i>>>27)+r|0,n+=(i&u|r&~u)+a[14]-1019803690|0,n=(n<<9|n>>>23)+i|0,u+=(n&r|i&~r)+a[3]-187363961|0,u=(u<<14|u>>>18)+n|0,r+=(u&i|n&~i)+a[8]+1163531501|0,r=(r<<20|r>>>12)+u|0,i+=(r&n|u&~n)+a[13]-1444681467|0,i=(i<<5|i>>>27)+r|0,n+=(i&u|r&~u)+a[2]-51403784|0,n=(n<<9|n>>>23)+i|0,u+=(n&r|i&~r)+a[7]+1735328473|0,u=(u<<14|u>>>18)+n|0,r+=(u&i|n&~i)+a[12]-1926607734|0,r=(r<<20|r>>>12)+u|0,i+=(r^u^n)+a[5]-378558|0,i=(i<<4|i>>>28)+r|0,n+=(i^r^u)+a[8]-2022574463|0,n=(n<<11|n>>>21)+i|0,u+=(n^i^r)+a[11]+1839030562|0,u=(u<<16|u>>>16)+n|0,r+=(u^n^i)+a[14]-35309556|0,r=(r<<23|r>>>9)+u|0,i+=(r^u^n)+a[1]-1530992060|0,i=(i<<4|i>>>28)+r|0,n+=(i^r^u)+a[4]+1272893353|0,n=(n<<11|n>>>21)+i|0,u+=(n^i^r)+a[7]-155497632|0,u=(u<<16|u>>>16)+n|0,r+=(u^n^i)+a[10]-1094730640|0,r=(r<<23|r>>>9)+u|0,i+=(r^u^n)+a[13]+681279174|0,i=(i<<4|i>>>28)+r|0,n+=(i^r^u)+a[0]-358537222|0,n=(n<<11|n>>>21)+i|0,u+=(n^i^r)+a[3]-722521979|0,u=(u<<16|u>>>16)+n|0,r+=(u^n^i)+a[6]+76029189|0,r=(r<<23|r>>>9)+u|0,i+=(r^u^n)+a[9]-640364487|0,i=(i<<4|i>>>28)+r|0,n+=(i^r^u)+a[12]-421815835|0,n=(n<<11|n>>>21)+i|0,u+=(n^i^r)+a[15]+530742520|0,u=(u<<16|u>>>16)+n|0,r+=(u^n^i)+a[2]-995338651|0,r=(r<<23|r>>>9)+u|0,i+=(u^(r|~n))+a[0]-198630844|0,i=(i<<6|i>>>26)+r|0,n+=(r^(i|~u))+a[7]+1126891415|0,n=(n<<10|n>>>22)+i|0,u+=(i^(n|~r))+a[14]-1416354905|0,u=(u<<15|u>>>17)+n|0,r+=(n^(u|~i))+a[5]-57434055|0,r=(r<<21|r>>>11)+u|0,i+=(u^(r|~n))+a[12]+1700485571|0,i=(i<<6|i>>>26)+r|0,n+=(r^(i|~u))+a[3]-1894986606|0,n=(n<<10|n>>>22)+i|0,u+=(i^(n|~r))+a[10]-1051523|0,u=(u<<15|u>>>17)+n|0,r+=(n^(u|~i))+a[1]-2054922799|0,r=(r<<21|r>>>11)+u|0,i+=(u^(r|~n))+a[8]+1873313359|0,i=(i<<6|i>>>26)+r|0,n+=(r^(i|~u))+a[15]-30611744|0,n=(n<<10|n>>>22)+i|0,u+=(i^(n|~r))+a[6]-1560198380|0,u=(u<<15|u>>>17)+n|0,r+=(n^(u|~i))+a[13]+1309151649|0,r=(r<<21|r>>>11)+u|0,i+=(u^(r|~n))+a[4]-145523070|0,i=(i<<6|i>>>26)+r|0,n+=(r^(i|~u))+a[11]-1120210379|0,n=(n<<10|n>>>22)+i|0,u+=(i^(n|~r))+a[2]+718787259|0,u=(u<<15|u>>>17)+n|0,r+=(n^(u|~i))+a[9]-343485551|0,r=(r<<21|r>>>11)+u|0,t[0]=i+t[0]|0,t[1]=r+t[1]|0,t[2]=u+t[2]|0,t[3]=n+t[3]|0}_dataLength=0;_bufferLength=0;_state=new Int32Array(4);_buffer=new ArrayBuffer(68);_buffer8;_buffer32;constructor(){this._buffer8=new Uint8Array(this._buffer,0,68),this._buffer32=new Uint32Array(this._buffer,0,17),this.start()}start(){return this._dataLength=0,this._bufferLength=0,this._state.set(jt.stateIdentity),this}appendStr(t){const a=this._buffer8,i=this._buffer32;let r=this._bufferLength,u,n;for(n=0;n>>6)+192,a[r++]=u&63|128;else if(u<55296||u>56319)a[r++]=(u>>>12)+224,a[r++]=u>>>6&63|128,a[r++]=u&63|128;else{if(u=(u-55296)*1024+(t.charCodeAt(++n)-56320)+65536,u>1114111)throw new Error("Unicode standard supports code points up to U+10FFFF");a[r++]=(u>>>18)+240,a[r++]=u>>>12&63|128,a[r++]=u>>>6&63|128,a[r++]=u&63|128}r>=64&&(this._dataLength+=64,jt._md5cycle(this._state,i),r-=64,i[0]=i[16])}return this._bufferLength=r,this}appendAsciiStr(t){const a=this._buffer8,i=this._buffer32;let r=this._bufferLength,u,n=0;for(;;){for(u=Math.min(t.length-n,64-r);u--;)a[r++]=t.charCodeAt(n++);if(r<64)break;this._dataLength+=64,jt._md5cycle(this._state,i),r=0}return this._bufferLength=r,this}appendByteArray(t){const a=this._buffer8,i=this._buffer32;let r=this._bufferLength,u,n=0;for(;;){for(u=Math.min(t.length-n,64-r);u--;)a[r++]=t[n++];if(r<64)break;this._dataLength+=64,jt._md5cycle(this._state,i),r=0}return this._bufferLength=r,this}getState(){const t=this._state;return{buffer:String.fromCharCode.apply(null,Array.from(this._buffer8)),buflen:this._bufferLength,length:this._dataLength,state:[t[0],t[1],t[2],t[3]]}}setState(t){const a=t.buffer,i=t.state,r=this._state;let u;for(this._dataLength=t.length,this._bufferLength=t.buflen,r[0]=i[0],r[1]=i[1],r[2]=i[2],r[3]=i[3],u=0;u>2)+1;this._dataLength+=a;const n=this._dataLength*8;if(i[a]=128,i[a+1]=i[a+2]=i[a+3]=0,r.set(jt.buffer32Identity.subarray(u),u),a>55&&(jt._md5cycle(this._state,r),r.set(jt.buffer32Identity)),n<=4294967295)r[14]=n;else{const s=n.toString(16).match(/(.*?)(.{0,8})$/);if(s===null)return t?Fm:"";const o=parseInt(s[2],16),_=parseInt(s[1],16)||0;r[14]=o,r[15]=_}return jt._md5cycle(this._state,r),t?this._state:jt._hex(this._state)}}if(jt.hashStr("hello")!=="5d41402abc4b2a76b9719d911017c592")throw new Error("Md5 self test failed.");Te(ag);class gt{constructor(t,a,i,r){this.r=t,this.g=a,this.b=i,this.name=r,this.r=Math.min(t,255),this.g=Math.min(a,255),this.b=Math.min(i,255),this.name=r}get color(){const t=a=>`00${a.toString(16)}`.slice(-2);return`#${t(this.r)}${t(this.g)}${t(this.b)}`}}function pm(e,t,a){return{r:(a.r-t.r)/e,g:(a.g-t.g)/e,b:(a.b-t.b)/e}}function Su(e,t,a){const i=[];i.push(t);const r=pm(e,t,a);for(let u=1;u/g,s=/<\/?([^\s\/>]+)/;function o(h,F,c){h=h||"",F=F||[],c=c||"";let y=d(F,c);return l(h,y)}function _(h,F){h=h||[],F=F||"";let c=d(h,F);return function(y){return l(y||"",c)}}o.init_streaming_mode=_;function d(h,F){return h=m(h),{allowable_tags:h,tag_replacement:F,state:i,tag_buffer:"",depth:0,in_quote_char:""}}function l(h,F){if(typeof h!="string")throw new TypeError("'html' parameter must be a string");let c=F.allowable_tags,y=F.tag_replacement,w=F.state,D=F.tag_buffer,T=F.depth,O=F.in_quote_char,N="";for(let L=0,R=h.length;L":if(O)break;if(T){T--;break}O="",w=i,D+=">",c.has(f(D))?N+=D:N+=y,D="";break;case'"':case"'":Y===O?O="":O=O||Y,D+=Y;break;case"-":D==="":D.slice(-2)=="--"&&(w=i),D="";break;default:D+=Y;break}}return F.state=w,F.tag_buffer=D,F.depth=T,F.in_quote_char=O,N}function m(h){let F=new Set;if(typeof h=="string"){let c;for(;c=n.exec(h);)F.add(c[1])}else!a.nonNative&&typeof h[a.iterator]=="function"?F=new Set(h):typeof h.forEach=="function"&&h.forEach(F.add,F);return F}function f(h){let F=s.exec(h);return F?F[1].toLowerCase():null}e.exports?e.exports=o:t.striptags=o})(wm)})(cn)),cn.exports}km();function vm(e,t){const a=(t?.size||64)<=64?64:512,i=t?.isGuest?"/guest":"",r=t?.isDarkTheme??eu(document.body)?"/dark":"";return ll(`/avatar${i}/{user}/{size}${r}`,{user:e,size:a})}const Dm=`\\n\\n\t\\n\\n';\nconst busySvg = '\\n\\n\t\\n\\n';\nconst dndSvg = '\\n\\n\t\\n\\n';\nconst invisibleSvg = '\\n\\n\t\\n\\n';\nconst onlineSvg = '\\n\\n\t\\n\\n';\nregister();\nregister(t11);\nfunction getUserStatusText(status) {\n switch (status) {\n case \"away\":\n return t(\"away\");\n // TRANSLATORS: User status if the user is currently away from keyboard\n case \"busy\":\n return t(\"busy\");\n case \"dnd\":\n return t(\"do not disturb\");\n case \"online\":\n return t(\"online\");\n case \"invisible\":\n return t(\"invisible\");\n case \"offline\":\n return t(\"offline\");\n default:\n return status;\n }\n}\nconst _hoisted_1 = [\"aria-hidden\", \"aria-label\", \"innerHTML\"];\nconst _sfc_main = /* @__PURE__ */ defineComponent({\n __name: \"NcUserStatusIcon\",\n props: /* @__PURE__ */ mergeModels({\n user: { default: void 0 },\n ariaHidden: { type: [Boolean, String], default: false }\n }, {\n \"status\": {},\n \"statusModifiers\": {}\n }),\n emits: [\"update:status\"],\n setup(__props) {\n const status = useModel(__props, \"status\");\n const props = __props;\n const isInvisible = computed(() => status.value && [\"invisible\", \"offline\"].includes(status.value));\n const ariaLabel = computed(() => status.value && (!props.ariaHidden || props.ariaHidden === \"false\") ? t(\"User status: {status}\", { status: getUserStatusText(status.value) }) : void 0);\n watch(() => props.user, async (user) => {\n if (!status.value && user && getCapabilities()?.user_status?.enabled) {\n try {\n const { data } = await axios.get(generateOcsUrl(\"/apps/user_status/api/v1/statuses/{user}\", { user }));\n status.value = data.ocs?.data?.status;\n } catch (error) {\n logger.debug(\"Error while fetching user status\", { error });\n }\n }\n }, { immediate: true });\n const matchSvg = {\n online: onlineSvg,\n away: awaySvg,\n busy: busySvg,\n dnd: dndSvg,\n invisible: invisibleSvg,\n offline: invisibleSvg\n };\n const activeSvg = computed(() => status.value && matchSvg[status.value]);\n return (_ctx, _cache) => {\n return status.value ? (openBlock(), createElementBlock(\"span\", {\n key: 0,\n class: normalizeClass([\"user-status-icon\", {\n \"user-status-icon--invisible\": isInvisible.value\n }]),\n \"aria-hidden\": !ariaLabel.value || void 0,\n \"aria-label\": ariaLabel.value,\n role: \"img\",\n innerHTML: activeSvg.value\n }, null, 10, _hoisted_1)) : createCommentVNode(\"\", true);\n };\n }\n});\nconst NcUserStatusIcon = /* @__PURE__ */ _export_sfc(_sfc_main, [[\"__scopeId\", \"data-v-881a79fb\"]]);\nexport {\n NcUserStatusIcon as N,\n getUserStatusText as g\n};\n//# sourceMappingURL=NcUserStatusIcon-CGEf7fej.mjs.map\n","import '../assets/NcAvatar-f8SJKMDw.css';\nimport { getCurrentUser } from \"@nextcloud/auth\";\nimport axios from \"@nextcloud/axios\";\nimport { getBuilder } from \"@nextcloud/browser-storage\";\nimport { unsubscribe, subscribe } from \"@nextcloud/event-bus\";\nimport { generateOcsUrl, generateUrl } from \"@nextcloud/router\";\nimport { vOnClickOutside } from \"@vueuse/components\";\nimport { N as NcActions, I as IconDotsHorizontal } from \"./NcActions-DWmvh7-Y.mjs\";\nimport { g as getRoute } from \"./autolink-U5pBzLgI.mjs\";\nimport \"../composables/useFormatDateTime/index.mjs\";\nimport \"../composables/useHotKey/index.mjs\";\nimport { useIsDarkTheme } from \"../composables/useIsDarkTheme/index.mjs\";\nimport \"../composables/useIsFullscreen/index.mjs\";\nimport \"../composables/useIsMobile/index.mjs\";\nimport { getEnabledContactsMenuActions } from \"../functions/contactsMenu/index.mjs\";\nimport { usernameToColor } from \"../functions/usernameToColor/index.mjs\";\nimport { r as register, i as t10, a as t } from \"./_l10n-DrTiip5c.mjs\";\nimport \"escape-html\";\nimport \"striptags\";\nimport { resolveComponent, resolveDirective, withDirectives, createElementBlock, openBlock, normalizeStyle, normalizeClass, renderSlot, createBlock, createCommentVNode, withCtx, createSlots, Fragment, renderList, resolveDynamicComponent, mergeProps, createTextVNode, toDisplayString, createVNode, createElementVNode } from \"vue\";\nimport { g as getAvatarUrl } from \"./NcMentionBubble.vue_vue_type_style_index_0_scoped_45238efd_lang-D6LzDiYf.mjs\";\nimport { _ as _export_sfc } from \"./_plugin-vue_export-helper-1tPrXgE0.mjs\";\nimport { getCapabilities } from \"@nextcloud/capabilities\";\nimport { l as logger } from \"./logger-D3RVzcfQ.mjs\";\nimport { N as NcUserStatusIcon, g as getUserStatusText } from \"./NcUserStatusIcon-CGEf7fej.mjs\";\nimport { N as NcActionButton } from \"./NcActionButton-pKOSrlGE.mjs\";\nimport { N as NcActionLink } from \"./NcActionLink-vEvKSV4N.mjs\";\nimport { N as NcActionRouter } from \"./NcActionRouter-oT-YU_jf.mjs\";\nimport { N as NcActionText } from \"./NcActionText-uKvLcEY6.mjs\";\nimport { N as NcButton } from \"./NcButton-Dc8V4Urj.mjs\";\nimport { N as NcIconSvgWrapper } from \"./NcIconSvgWrapper-BvLanNaW.mjs\";\nimport { N as NcLoadingIcon } from \"./NcLoadingIcon-b_ajZ_nQ.mjs\";\nregister(t10);\nconst userStatus = {\n data() {\n return {\n hasStatus: false,\n userStatus: {\n status: null,\n message: null,\n icon: null\n }\n };\n },\n methods: {\n /**\n * Fetches the user-status from the server\n *\n * @param {string} userId UserId of the user to fetch the status for\n *\n * @return {Promise}\n */\n async fetchUserStatus(userId) {\n if (!userId) {\n return;\n }\n const capabilities = getCapabilities();\n if (!Object.hasOwn(capabilities, \"user_status\") || !capabilities.user_status.enabled) {\n return;\n }\n if (!getCurrentUser()) {\n return;\n }\n try {\n const { data } = await axios.get(generateOcsUrl(\"apps/user_status/api/v1/statuses/{userId}\", { userId }));\n this.setUserStatus(data.ocs.data);\n } catch (e) {\n if (e.response.status === 404 && e.response.data.ocs?.data?.length === 0) {\n return;\n }\n logger.error(\"Failed to fetch user status\", { error: e });\n }\n },\n /**\n * Sets the user status\n *\n * @param {string} status user's status\n * @param {string} message user's message\n * @param {string} icon user's icon\n */\n setUserStatus({ status, message, icon }) {\n this.userStatus.status = status || \"\";\n this.userStatus.message = message || \"\";\n this.userStatus.icon = icon || \"\";\n this.hasStatus = !!status;\n }\n }\n};\nconst browserStorage = getBuilder(\"nextcloud\").persist().build();\nfunction getUserHasAvatar(userId) {\n const flag = browserStorage.getItem(\"user-has-avatar.\" + userId);\n if (typeof flag === \"string\") {\n return Boolean(flag);\n }\n return null;\n}\nfunction setUserHasAvatar(userId, flag) {\n if (userId) {\n browserStorage.setItem(\"user-has-avatar.\" + userId, flag);\n }\n}\nconst _sfc_main = {\n name: \"NcAvatar\",\n directives: {\n /** @type {import('vue').ObjectDirective} */\n ClickOutside: vOnClickOutside\n },\n components: {\n IconDotsHorizontal,\n NcActions,\n NcButton,\n NcIconSvgWrapper,\n NcLoadingIcon,\n NcUserStatusIcon\n },\n mixins: [userStatus],\n props: {\n /**\n * Set a custom url to the avatar image\n * either the url, user or displayName property must be defined\n */\n url: {\n type: String,\n default: void 0\n },\n /**\n * Set a css icon-class for an icon to be used instead of the avatar.\n */\n iconClass: {\n type: String,\n default: void 0\n },\n /**\n * Set the user id to fetch the avatar\n * either the url, user or displayName property must be defined\n */\n user: {\n type: String,\n default: void 0\n },\n /**\n * Do not show the user status on the avatar.\n */\n hideStatus: {\n type: Boolean,\n default: false\n },\n /**\n * Show the verbose user status (e.g. \"online\" / \"away\") instead of just the status icon.\n */\n verboseStatus: {\n type: Boolean,\n default: false\n },\n /**\n * When the user status was preloaded via another source it can be handed in with this property to save the request.\n * If this property is not set the status will be fetched automatically.\n * If a preloaded no-status is available provide this object with properties \"status\", \"icon\" and \"message\" set to null.\n */\n preloadedUserStatus: {\n type: Object,\n default: void 0\n },\n /**\n * Is the user a guest user (then we have to user a different endpoint)\n */\n isGuest: {\n type: Boolean,\n default: false\n },\n /**\n * Set a display name that will be rendered as a tooltip\n * either the url, user or displayName property must be defined\n * specify just the displayname to generate a placeholder avatar without\n * trying to fetch the avatar based on the user id\n */\n displayName: {\n type: String,\n default: void 0\n },\n /**\n * Set a size in px for the rendered avatar\n */\n size: {\n type: Number,\n default: 32\n },\n /**\n * Do not automatically generate a placeholder avatars if there is no real avatar is available.\n */\n noPlaceholder: {\n type: Boolean,\n default: false\n },\n /**\n * Disable the tooltip\n */\n disableTooltip: {\n type: Boolean,\n default: false\n },\n /**\n * Disable the menu\n */\n disableMenu: {\n type: Boolean,\n default: false\n },\n /**\n * Declares a custom tooltip when not null\n * Fallback will be the displayName\n *\n * requires disableTooltip not to be set to true\n */\n tooltipMessage: {\n type: String,\n default: null\n },\n /**\n * Declares username is not a user's name, when true.\n * Prevents loading user's avatar from server and forces generating colored initials,\n * i.e. if the user is a group\n */\n isNoUser: {\n type: Boolean,\n default: false\n },\n /**\n * Selector for the popover menu container\n */\n menuContainer: {\n type: [Boolean, String, Object, Element],\n default: \"body\"\n }\n },\n setup() {\n const isDarkTheme = useIsDarkTheme();\n return {\n isDarkTheme\n };\n },\n data() {\n return {\n avatarUrlLoaded: null,\n avatarSrcSetLoaded: null,\n userDoesNotExist: false,\n isAvatarLoaded: false,\n isMenuLoaded: false,\n contactsMenuLoading: false,\n contactsMenuData: {},\n contactsMenuActions: [],\n contactsMenuOpenState: false\n };\n },\n computed: {\n avatarAriaLabel() {\n if (!this.hasMenu) {\n return;\n }\n if (this.canDisplayUserStatus || this.showUserStatusIconOnAvatar) {\n return t(\"Avatar of {displayName}, {status}\", { displayName: this.displayName ?? this.user, status: getUserStatusText(this.userStatus.status) });\n }\n return t(\"Avatar of {displayName}\", { displayName: this.displayName ?? this.user });\n },\n canDisplayUserStatus() {\n return !this.hideStatus && this.hasStatus && [\"online\", \"away\", \"busy\", \"dnd\"].includes(this.userStatus.status);\n },\n showUserStatusIconOnAvatar() {\n return !this.hideStatus && !this.verboseStatus && this.hasStatus && this.userStatus.status !== \"dnd\" && this.userStatus.icon;\n },\n /**\n * The user identifier, either the display name if set or the user property\n * If both properties are not set an empty string is returned\n */\n userIdentifier() {\n if (this.isDisplayNameDefined) {\n return this.displayName;\n }\n if (this.isUserDefined) {\n return this.user;\n }\n return \"\";\n },\n isUserDefined() {\n return typeof this.user !== \"undefined\";\n },\n isDisplayNameDefined() {\n return typeof this.displayName !== \"undefined\";\n },\n isUrlDefined() {\n return typeof this.url !== \"undefined\";\n },\n hasMenu() {\n if (this.disableMenu) {\n return false;\n }\n if (this.isMenuLoaded) {\n return this.menu.length > 0;\n }\n return !(this.user === getCurrentUser()?.uid || this.userDoesNotExist || this.url);\n },\n /**\n * True if initials should be shown as the user icon fallback\n */\n showInitials() {\n return !this.noPlaceholder && this.userDoesNotExist && !(this.iconClass || this.$slots.icon);\n },\n avatarStyle() {\n return {\n \"--avatar-size\": this.size + \"px\",\n lineHeight: this.showInitials ? this.size + \"px\" : 0,\n fontSize: Math.round(this.size * 0.45) + \"px\"\n };\n },\n initialsWrapperStyle() {\n const { r, g, b } = usernameToColor(this.userIdentifier);\n return {\n backgroundColor: `rgba(${r}, ${g}, ${b}, 0.1)`\n };\n },\n initialsStyle() {\n const { r, g, b } = usernameToColor(this.userIdentifier);\n return {\n color: `rgb(${r}, ${g}, ${b})`\n };\n },\n tooltip() {\n if (this.disableTooltip) {\n return null;\n }\n if (this.tooltipMessage) {\n return this.tooltipMessage;\n }\n return this.displayName;\n },\n /**\n * Get the (max. two) initials of the user as uppcase string\n */\n initials() {\n let initials = \"?\";\n if (this.showInitials) {\n const user = this.userIdentifier.trim();\n if (user === \"\") {\n return initials;\n }\n const filteredChars = user.match(/[\\p{L}\\p{N}\\s]/gu);\n if (!filteredChars) {\n return initials;\n }\n const filtered = filteredChars.join(\"\");\n const idx = filtered.lastIndexOf(\" \");\n initials = String.fromCodePoint(filtered.codePointAt(0));\n if (idx !== -1) {\n initials = initials.concat(String.fromCodePoint(filtered.codePointAt(idx + 1)));\n }\n }\n return initials.toLocaleUpperCase();\n },\n menu() {\n const actions = this.contactsMenuActions.map((item) => {\n const route = getRoute(this.$router, item.hyperlink);\n return {\n ncActionComponent: route ? NcActionRouter : NcActionLink,\n ncActionComponentProps: route ? {\n to: route,\n icon: item.icon\n } : {\n href: item.hyperlink,\n icon: item.icon\n },\n text: item.title\n };\n });\n for (const action of getEnabledContactsMenuActions(this.contactsMenuData)) {\n try {\n actions.push({\n ncActionComponent: NcActionButton,\n ncActionComponentProps: {\n onClick: () => action.callback(this.contactsMenuData)\n },\n text: action.displayName(this.contactsMenuData),\n iconSvg: action.iconSvg(this.contactsMenuData)\n });\n } catch (error) {\n logger.error(`Failed to render ContactsMenu action ${action.id}`, {\n error,\n action\n });\n }\n }\n function escape(html) {\n const text = document.createTextNode(html);\n const p = document.createElement(\"p\");\n p.appendChild(text);\n return p.innerHTML;\n }\n if (!this.hideStatus && (this.userStatus.icon || this.userStatus.message)) {\n const emojiIcon = `\n\t\t\t\t\t${escape(this.userStatus.icon)}\n\t\t\t\t`;\n return [{\n ncActionComponent: NcActionText,\n ncActionComponentProps: {},\n iconSvg: this.userStatus.icon ? emojiIcon : void 0,\n text: `${this.userStatus.message}`\n }].concat(actions);\n }\n return actions;\n }\n },\n watch: {\n url() {\n this.userDoesNotExist = false;\n this.loadAvatarUrl();\n },\n user() {\n this.userDoesNotExist = false;\n this.isMenuLoaded = false;\n this.loadAvatarUrl();\n }\n },\n mounted() {\n this.loadAvatarUrl();\n subscribe(\"settings:avatar:updated\", this.loadAvatarUrl);\n subscribe(\"settings:display-name:updated\", this.loadAvatarUrl);\n if (!this.hideStatus && this.user && !this.isNoUser) {\n if (!this.preloadedUserStatus) {\n this.fetchUserStatus(this.user);\n } else {\n this.setUserStatus(this.preloadedUserStatus);\n }\n subscribe(\"user_status:status.updated\", this.handleUserStatusUpdated);\n } else if (!this.hideStatus && this.preloadedUserStatus) {\n this.setUserStatus(this.preloadedUserStatus);\n }\n },\n beforeUnmount() {\n unsubscribe(\"settings:avatar:updated\", this.loadAvatarUrl);\n unsubscribe(\"settings:display-name:updated\", this.loadAvatarUrl);\n unsubscribe(\"user_status:status.updated\", this.handleUserStatusUpdated);\n },\n methods: {\n t,\n handleUserStatusUpdated(state) {\n if (this.user === state.userId) {\n this.userStatus = {\n status: state.status,\n icon: state.icon,\n message: state.message\n };\n this.hasStatus = state.status !== null;\n }\n },\n /**\n * Toggle the popover menu on click or enter\n *\n * @param {KeyboardEvent|MouseEvent} event the UI event\n */\n async toggleMenu(event) {\n if (event.type === \"keydown\" && event.key !== \"Enter\") {\n return;\n }\n if (!this.contactsMenuOpenState) {\n await this.fetchContactsMenu();\n }\n this.contactsMenuOpenState = !this.contactsMenuOpenState;\n },\n closeMenu() {\n this.contactsMenuOpenState = false;\n },\n async fetchContactsMenu() {\n this.contactsMenuLoading = true;\n try {\n const user = encodeURIComponent(this.user);\n const { data } = await axios.post(generateUrl(\"contactsmenu/findOne\"), `shareType=0&shareWith=${user}`);\n this.contactsMenuData = data;\n this.contactsMenuActions = data.topAction ? [data.topAction].concat(data.actions) : data.actions;\n } catch {\n this.contactsMenuOpenState = false;\n }\n this.contactsMenuLoading = false;\n this.isMenuLoaded = true;\n },\n /**\n * Handle avatar loading if user or url defined\n */\n loadAvatarUrl() {\n this.isAvatarLoaded = false;\n if (!this.isUrlDefined && (!this.isUserDefined || this.isNoUser || this.iconClass || this.$slots.icon)) {\n this.isAvatarLoaded = true;\n this.userDoesNotExist = true;\n return;\n }\n if (this.isUrlDefined) {\n this.updateImageIfValid(this.url);\n return;\n }\n if (this.size <= 64) {\n const avatarUrl = this.avatarUrlGenerator(this.user, 64);\n const srcset = [\n avatarUrl + \" 1x\",\n this.avatarUrlGenerator(this.user, 512) + \" 8x\"\n ].join(\", \");\n this.updateImageIfValid(avatarUrl, srcset);\n } else {\n const avatarUrl = this.avatarUrlGenerator(this.user, 512);\n this.updateImageIfValid(avatarUrl);\n }\n },\n /**\n * Generate an avatar url from the server's avatar endpoint\n *\n * @param {string} user the user id\n * @param {number} size the desired size\n * @return {string}\n */\n avatarUrlGenerator(user, size) {\n let avatarUrl = getAvatarUrl(user, {\n size,\n isDarkTheme: this.isDarkTheme,\n isGuest: this.isGuest\n });\n if (user === getCurrentUser()?.uid && typeof oc_userconfig !== \"undefined\") {\n avatarUrl += \"?v=\" + window.oc_userconfig.avatar.version;\n }\n return avatarUrl;\n },\n /**\n * Check if the provided url is valid and update Avatar if so\n *\n * @param {string} url the avatar url\n * @param {Array} srcset the avatar srcset\n */\n updateImageIfValid(url, srcset = null) {\n const userHasAvatar = getUserHasAvatar(this.user);\n if (this.isUserDefined && typeof userHasAvatar === \"boolean\") {\n this.isAvatarLoaded = true;\n this.avatarUrlLoaded = url;\n if (srcset) {\n this.avatarSrcSetLoaded = srcset;\n }\n if (userHasAvatar === false) {\n this.userDoesNotExist = true;\n }\n return;\n }\n const img = new Image();\n img.onload = () => {\n this.avatarUrlLoaded = url;\n if (srcset) {\n this.avatarSrcSetLoaded = srcset;\n }\n this.isAvatarLoaded = true;\n setUserHasAvatar(this.user, true);\n };\n img.onerror = (error) => {\n logger.debug(\"[NcAvatar] Invalid avatar url\", { error, url });\n this.avatarUrlLoaded = null;\n this.avatarSrcSetLoaded = null;\n this.userDoesNotExist = true;\n this.isAvatarLoaded = false;\n setUserHasAvatar(this.user, false);\n };\n if (srcset) {\n img.srcset = srcset;\n }\n img.src = url;\n }\n }\n};\nconst _hoisted_1 = [\"title\"];\nconst _hoisted_2 = [\"src\", \"srcset\"];\nconst _hoisted_3 = {\n key: 2,\n class: \"avatardiv__user-status avatardiv__user-status--icon\"\n};\nfunction _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {\n const _component_NcLoadingIcon = resolveComponent(\"NcLoadingIcon\");\n const _component_IconDotsHorizontal = resolveComponent(\"IconDotsHorizontal\");\n const _component_NcButton = resolveComponent(\"NcButton\");\n const _component_NcIconSvgWrapper = resolveComponent(\"NcIconSvgWrapper\");\n const _component_NcActions = resolveComponent(\"NcActions\");\n const _component_NcUserStatusIcon = resolveComponent(\"NcUserStatusIcon\");\n const _directive_click_outside = resolveDirective(\"click-outside\");\n return withDirectives((openBlock(), createElementBlock(\"span\", {\n class: normalizeClass([\"avatardiv popovermenu-wrapper\", {\n \"avatardiv--unknown\": $data.userDoesNotExist,\n \"avatardiv--with-menu\": $options.hasMenu,\n \"avatardiv--with-menu-loading\": $data.contactsMenuLoading\n }]),\n style: normalizeStyle($options.avatarStyle),\n title: $options.tooltip\n }, [\n renderSlot(_ctx.$slots, \"icon\", {}, () => [\n $props.iconClass ? (openBlock(), createElementBlock(\"span\", {\n key: 0,\n class: normalizeClass([$props.iconClass, \"avatar-class-icon\"])\n }, null, 2)) : $data.isAvatarLoaded && !$data.userDoesNotExist ? (openBlock(), createElementBlock(\"img\", {\n key: 1,\n src: $data.avatarUrlLoaded,\n srcset: $data.avatarSrcSetLoaded,\n alt: \"\"\n }, null, 8, _hoisted_2)) : createCommentVNode(\"\", true)\n ], true),\n $options.hasMenu && $options.menu.length === 0 ? (openBlock(), createBlock(_component_NcButton, {\n key: 0,\n \"aria-label\": $options.avatarAriaLabel,\n class: \"action-item action-item__menutoggle\",\n variant: \"tertiary-no-background\",\n onClick: $options.toggleMenu\n }, {\n icon: withCtx(() => [\n $data.contactsMenuLoading ? (openBlock(), createBlock(_component_NcLoadingIcon, { key: 0 })) : (openBlock(), createBlock(_component_IconDotsHorizontal, {\n key: 1,\n size: 20\n }))\n ]),\n _: 1\n }, 8, [\"aria-label\", \"onClick\"])) : $options.hasMenu ? (openBlock(), createBlock(_component_NcActions, {\n key: 1,\n open: $data.contactsMenuOpenState,\n \"onUpdate:open\": _cache[0] || (_cache[0] = ($event) => $data.contactsMenuOpenState = $event),\n \"aria-label\": $options.avatarAriaLabel,\n container: $props.menuContainer,\n \"force-menu\": \"\",\n \"manual-open\": \"\",\n variant: \"tertiary-no-background\",\n onClick: $options.toggleMenu\n }, createSlots({\n default: withCtx(() => [\n (openBlock(true), createElementBlock(Fragment, null, renderList($options.menu, (item, key) => {\n return openBlock(), createBlock(resolveDynamicComponent(item.ncActionComponent), mergeProps({ key }, { ref_for: true }, item.ncActionComponentProps), createSlots({\n default: withCtx(() => [\n createTextVNode(\" \" + toDisplayString(item.text), 1)\n ]),\n _: 2\n }, [\n item.iconSvg ? {\n name: \"icon\",\n fn: withCtx(() => [\n createVNode(_component_NcIconSvgWrapper, {\n svg: item.iconSvg\n }, null, 8, [\"svg\"])\n ]),\n key: \"0\"\n } : void 0\n ]), 1040);\n }), 128))\n ]),\n _: 2\n }, [\n $data.contactsMenuLoading ? {\n name: \"icon\",\n fn: withCtx(() => [\n createVNode(_component_NcLoadingIcon)\n ]),\n key: \"0\"\n } : void 0\n ]), 1032, [\"open\", \"aria-label\", \"container\", \"onClick\"])) : createCommentVNode(\"\", true),\n $options.showUserStatusIconOnAvatar ? (openBlock(), createElementBlock(\"span\", _hoisted_3, toDisplayString(_ctx.userStatus.icon), 1)) : $options.canDisplayUserStatus ? (openBlock(), createBlock(_component_NcUserStatusIcon, {\n key: 3,\n class: \"avatardiv__user-status\",\n status: _ctx.userStatus.status,\n \"aria-hidden\": String($options.hasMenu)\n }, null, 8, [\"status\", \"aria-hidden\"])) : createCommentVNode(\"\", true),\n $options.showInitials ? (openBlock(), createElementBlock(\"span\", {\n key: 4,\n style: normalizeStyle($options.initialsWrapperStyle),\n class: \"avatardiv__initials-wrapper\"\n }, [\n createElementVNode(\"span\", {\n style: normalizeStyle($options.initialsStyle),\n class: \"avatardiv__initials\"\n }, toDisplayString($options.initials), 5)\n ], 4)) : createCommentVNode(\"\", true)\n ], 14, _hoisted_1)), [\n [_directive_click_outside, $options.closeMenu]\n ]);\n}\nconst NcAvatar = /* @__PURE__ */ _export_sfc(_sfc_main, [[\"render\", _sfc_render], [\"__scopeId\", \"data-v-d7dc2a1f\"]]);\nexport {\n NcAvatar as N,\n userStatus as u\n};\n//# sourceMappingURL=NcAvatar-DmUGApWA.mjs.map\n","'use strict';\n\nvar has = Object.prototype.hasOwnProperty\n , prefix = '~';\n\n/**\n * Constructor to create a storage for our `EE` objects.\n * An `Events` instance is a plain object whose properties are event names.\n *\n * @constructor\n * @private\n */\nfunction Events() {}\n\n//\n// We try to not inherit from `Object.prototype`. In some engines creating an\n// instance in this way is faster than calling `Object.create(null)` directly.\n// If `Object.create(null)` is not supported we prefix the event names with a\n// character to make sure that the built-in object properties are not\n// overridden or used as an attack vector.\n//\nif (Object.create) {\n Events.prototype = Object.create(null);\n\n //\n // This hack is needed because the `__proto__` property is still inherited in\n // some old browsers like Android 4, iPhone 5.1, Opera 11 and Safari 5.\n //\n if (!new Events().__proto__) prefix = false;\n}\n\n/**\n * Representation of a single event listener.\n *\n * @param {Function} fn The listener function.\n * @param {*} context The context to invoke the listener with.\n * @param {Boolean} [once=false] Specify if the listener is a one-time listener.\n * @constructor\n * @private\n */\nfunction EE(fn, context, once) {\n this.fn = fn;\n this.context = context;\n this.once = once || false;\n}\n\n/**\n * Add a listener for a given event.\n *\n * @param {EventEmitter} emitter Reference to the `EventEmitter` instance.\n * @param {(String|Symbol)} event The event name.\n * @param {Function} fn The listener function.\n * @param {*} context The context to invoke the listener with.\n * @param {Boolean} once Specify if the listener is a one-time listener.\n * @returns {EventEmitter}\n * @private\n */\nfunction addListener(emitter, event, fn, context, once) {\n if (typeof fn !== 'function') {\n throw new TypeError('The listener must be a function');\n }\n\n var listener = new EE(fn, context || emitter, once)\n , evt = prefix ? prefix + event : event;\n\n if (!emitter._events[evt]) emitter._events[evt] = listener, emitter._eventsCount++;\n else if (!emitter._events[evt].fn) emitter._events[evt].push(listener);\n else emitter._events[evt] = [emitter._events[evt], listener];\n\n return emitter;\n}\n\n/**\n * Clear event by name.\n *\n * @param {EventEmitter} emitter Reference to the `EventEmitter` instance.\n * @param {(String|Symbol)} evt The Event name.\n * @private\n */\nfunction clearEvent(emitter, evt) {\n if (--emitter._eventsCount === 0) emitter._events = new Events();\n else delete emitter._events[evt];\n}\n\n/**\n * Minimal `EventEmitter` interface that is molded against the Node.js\n * `EventEmitter` interface.\n *\n * @constructor\n * @public\n */\nfunction EventEmitter() {\n this._events = new Events();\n this._eventsCount = 0;\n}\n\n/**\n * Return an array listing the events for which the emitter has registered\n * listeners.\n *\n * @returns {Array}\n * @public\n */\nEventEmitter.prototype.eventNames = function eventNames() {\n var names = []\n , events\n , name;\n\n if (this._eventsCount === 0) return names;\n\n for (name in (events = this._events)) {\n if (has.call(events, name)) names.push(prefix ? name.slice(1) : name);\n }\n\n if (Object.getOwnPropertySymbols) {\n return names.concat(Object.getOwnPropertySymbols(events));\n }\n\n return names;\n};\n\n/**\n * Return the listeners registered for a given event.\n *\n * @param {(String|Symbol)} event The event name.\n * @returns {Array} The registered listeners.\n * @public\n */\nEventEmitter.prototype.listeners = function listeners(event) {\n var evt = prefix ? prefix + event : event\n , handlers = this._events[evt];\n\n if (!handlers) return [];\n if (handlers.fn) return [handlers.fn];\n\n for (var i = 0, l = handlers.length, ee = new Array(l); i < l; i++) {\n ee[i] = handlers[i].fn;\n }\n\n return ee;\n};\n\n/**\n * Return the number of listeners listening to a given event.\n *\n * @param {(String|Symbol)} event The event name.\n * @returns {Number} The number of listeners.\n * @public\n */\nEventEmitter.prototype.listenerCount = function listenerCount(event) {\n var evt = prefix ? prefix + event : event\n , listeners = this._events[evt];\n\n if (!listeners) return 0;\n if (listeners.fn) return 1;\n return listeners.length;\n};\n\n/**\n * Calls each of the listeners registered for a given event.\n *\n * @param {(String|Symbol)} event The event name.\n * @returns {Boolean} `true` if the event had listeners, else `false`.\n * @public\n */\nEventEmitter.prototype.emit = function emit(event, a1, a2, a3, a4, a5) {\n var evt = prefix ? prefix + event : event;\n\n if (!this._events[evt]) return false;\n\n var listeners = this._events[evt]\n , len = arguments.length\n , args\n , i;\n\n if (listeners.fn) {\n if (listeners.once) this.removeListener(event, listeners.fn, undefined, true);\n\n switch (len) {\n case 1: return listeners.fn.call(listeners.context), true;\n case 2: return listeners.fn.call(listeners.context, a1), true;\n case 3: return listeners.fn.call(listeners.context, a1, a2), true;\n case 4: return listeners.fn.call(listeners.context, a1, a2, a3), true;\n case 5: return listeners.fn.call(listeners.context, a1, a2, a3, a4), true;\n case 6: return listeners.fn.call(listeners.context, a1, a2, a3, a4, a5), true;\n }\n\n for (i = 1, args = new Array(len -1); i < len; i++) {\n args[i - 1] = arguments[i];\n }\n\n listeners.fn.apply(listeners.context, args);\n } else {\n var length = listeners.length\n , j;\n\n for (i = 0; i < length; i++) {\n if (listeners[i].once) this.removeListener(event, listeners[i].fn, undefined, true);\n\n switch (len) {\n case 1: listeners[i].fn.call(listeners[i].context); break;\n case 2: listeners[i].fn.call(listeners[i].context, a1); break;\n case 3: listeners[i].fn.call(listeners[i].context, a1, a2); break;\n case 4: listeners[i].fn.call(listeners[i].context, a1, a2, a3); break;\n default:\n if (!args) for (j = 1, args = new Array(len -1); j < len; j++) {\n args[j - 1] = arguments[j];\n }\n\n listeners[i].fn.apply(listeners[i].context, args);\n }\n }\n }\n\n return true;\n};\n\n/**\n * Add a listener for a given event.\n *\n * @param {(String|Symbol)} event The event name.\n * @param {Function} fn The listener function.\n * @param {*} [context=this] The context to invoke the listener with.\n * @returns {EventEmitter} `this`.\n * @public\n */\nEventEmitter.prototype.on = function on(event, fn, context) {\n return addListener(this, event, fn, context, false);\n};\n\n/**\n * Add a one-time listener for a given event.\n *\n * @param {(String|Symbol)} event The event name.\n * @param {Function} fn The listener function.\n * @param {*} [context=this] The context to invoke the listener with.\n * @returns {EventEmitter} `this`.\n * @public\n */\nEventEmitter.prototype.once = function once(event, fn, context) {\n return addListener(this, event, fn, context, true);\n};\n\n/**\n * Remove the listeners of a given event.\n *\n * @param {(String|Symbol)} event The event name.\n * @param {Function} fn Only remove the listeners that match this function.\n * @param {*} context Only remove the listeners that have this context.\n * @param {Boolean} once Only remove one-time listeners.\n * @returns {EventEmitter} `this`.\n * @public\n */\nEventEmitter.prototype.removeListener = function removeListener(event, fn, context, once) {\n var evt = prefix ? prefix + event : event;\n\n if (!this._events[evt]) return this;\n if (!fn) {\n clearEvent(this, evt);\n return this;\n }\n\n var listeners = this._events[evt];\n\n if (listeners.fn) {\n if (\n listeners.fn === fn &&\n (!once || listeners.once) &&\n (!context || listeners.context === context)\n ) {\n clearEvent(this, evt);\n }\n } else {\n for (var i = 0, events = [], length = listeners.length; i < length; i++) {\n if (\n listeners[i].fn !== fn ||\n (once && !listeners[i].once) ||\n (context && listeners[i].context !== context)\n ) {\n events.push(listeners[i]);\n }\n }\n\n //\n // Reset the array, or remove it completely if we have no more listeners.\n //\n if (events.length) this._events[evt] = events.length === 1 ? events[0] : events;\n else clearEvent(this, evt);\n }\n\n return this;\n};\n\n/**\n * Remove all listeners, or those of the specified event.\n *\n * @param {(String|Symbol)} [event] The event name.\n * @returns {EventEmitter} `this`.\n * @public\n */\nEventEmitter.prototype.removeAllListeners = function removeAllListeners(event) {\n var evt;\n\n if (event) {\n evt = prefix ? prefix + event : event;\n if (this._events[evt]) clearEvent(this, evt);\n } else {\n this._events = new Events();\n this._eventsCount = 0;\n }\n\n return this;\n};\n\n//\n// Alias methods names because people roll like that.\n//\nEventEmitter.prototype.off = EventEmitter.prototype.removeListener;\nEventEmitter.prototype.addListener = EventEmitter.prototype.on;\n\n//\n// Expose the prefix.\n//\nEventEmitter.prefixed = prefix;\n\n//\n// Allow `EventEmitter` to be imported as module namespace.\n//\nEventEmitter.EventEmitter = EventEmitter;\n\n//\n// Expose the module.\n//\nif ('undefined' !== typeof module) {\n module.exports = EventEmitter;\n}\n","export class TimeoutError extends Error {\n\tname = 'TimeoutError';\n\n\tconstructor(message, options) {\n\t\tsuper(message, options);\n\t\tError.captureStackTrace?.(this, TimeoutError);\n\t}\n}\n\nconst getAbortedReason = signal => signal.reason ?? new DOMException('This operation was aborted.', 'AbortError');\n\nexport default function pTimeout(promise, options) {\n\tconst {\n\t\tmilliseconds,\n\t\tfallback,\n\t\tmessage,\n\t\tcustomTimers = {setTimeout, clearTimeout},\n\t\tsignal,\n\t} = options;\n\n\tlet timer;\n\tlet abortHandler;\n\n\tconst wrappedPromise = new Promise((resolve, reject) => {\n\t\tif (typeof milliseconds !== 'number' || Math.sign(milliseconds) !== 1) {\n\t\t\tthrow new TypeError(`Expected \\`milliseconds\\` to be a positive number, got \\`${milliseconds}\\``);\n\t\t}\n\n\t\tif (signal?.aborted) {\n\t\t\treject(getAbortedReason(signal));\n\t\t\treturn;\n\t\t}\n\n\t\tif (signal) {\n\t\t\tabortHandler = () => {\n\t\t\t\treject(getAbortedReason(signal));\n\t\t\t};\n\n\t\t\tsignal.addEventListener('abort', abortHandler, {once: true});\n\t\t}\n\n\t\t// Use .then() instead of async IIFE to preserve stack traces\n\t\t// eslint-disable-next-line promise/prefer-await-to-then, promise/prefer-catch\n\t\tpromise.then(resolve, reject);\n\n\t\tif (milliseconds === Number.POSITIVE_INFINITY) {\n\t\t\treturn;\n\t\t}\n\n\t\t// We create the error outside of `setTimeout` to preserve the stack trace.\n\t\tconst timeoutError = new TimeoutError();\n\n\t\t// `.call(undefined, ...)` is needed for custom timers to avoid context issues\n\t\ttimer = customTimers.setTimeout.call(undefined, () => {\n\t\t\tif (fallback) {\n\t\t\t\ttry {\n\t\t\t\t\tresolve(fallback());\n\t\t\t\t} catch (error) {\n\t\t\t\t\treject(error);\n\t\t\t\t}\n\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif (typeof promise.cancel === 'function') {\n\t\t\t\tpromise.cancel();\n\t\t\t}\n\n\t\t\tif (message === false) {\n\t\t\t\tresolve();\n\t\t\t} else if (message instanceof Error) {\n\t\t\t\treject(message);\n\t\t\t} else {\n\t\t\t\ttimeoutError.message = message ?? `Promise timed out after ${milliseconds} milliseconds`;\n\t\t\t\treject(timeoutError);\n\t\t\t}\n\t\t}, milliseconds);\n\t});\n\n\t// eslint-disable-next-line promise/prefer-await-to-then\n\tconst cancelablePromise = wrappedPromise.finally(() => {\n\t\tcancelablePromise.clear();\n\t\tif (abortHandler && signal) {\n\t\t\tsignal.removeEventListener('abort', abortHandler);\n\t\t}\n\t});\n\n\tcancelablePromise.clear = () => {\n\t\t// `.call(undefined, ...)` is needed for custom timers to avoid context issues\n\t\tcustomTimers.clearTimeout.call(undefined, timer);\n\t\ttimer = undefined;\n\t};\n\n\treturn cancelablePromise;\n}\n","// Port of lower_bound from https://en.cppreference.com/w/cpp/algorithm/lower_bound\n// Used to compute insertion index to keep queue sorted after insertion\nexport default function lowerBound(array, value, comparator) {\n let first = 0;\n let count = array.length;\n while (count > 0) {\n const step = Math.trunc(count / 2);\n let it = first + step;\n if (comparator(array[it], value) <= 0) {\n first = ++it;\n count -= step + 1;\n }\n else {\n count = step;\n }\n }\n return first;\n}\n","import lowerBound from './lower-bound.js';\nexport default class PriorityQueue {\n #queue = [];\n enqueue(run, options) {\n const { priority = 0, id, } = options ?? {};\n const element = {\n priority,\n id,\n run,\n };\n if (this.size === 0 || this.#queue[this.size - 1].priority >= priority) {\n this.#queue.push(element);\n return;\n }\n const index = lowerBound(this.#queue, element, (a, b) => b.priority - a.priority);\n this.#queue.splice(index, 0, element);\n }\n setPriority(id, priority) {\n const index = this.#queue.findIndex((element) => element.id === id);\n if (index === -1) {\n throw new ReferenceError(`No promise function with the id \"${id}\" exists in the queue.`);\n }\n const [item] = this.#queue.splice(index, 1);\n this.enqueue(item.run, { priority, id });\n }\n dequeue() {\n const item = this.#queue.shift();\n return item?.run;\n }\n filter(options) {\n return this.#queue.filter((element) => element.priority === options.priority).map((element) => element.run);\n }\n get size() {\n return this.#queue.length;\n }\n}\n","import { EventEmitter } from 'eventemitter3';\nimport pTimeout from 'p-timeout';\nimport PriorityQueue from './priority-queue.js';\n/**\nPromise queue with concurrency control.\n*/\nexport default class PQueue extends EventEmitter {\n #carryoverIntervalCount;\n #isIntervalIgnored;\n #intervalCount = 0;\n #intervalCap;\n #rateLimitedInInterval = false;\n #rateLimitFlushScheduled = false;\n #interval;\n #intervalEnd = 0;\n #lastExecutionTime = 0;\n #intervalId;\n #timeoutId;\n #queue;\n #queueClass;\n #pending = 0;\n // The `!` is needed because of https://github.com/microsoft/TypeScript/issues/32194\n #concurrency;\n #isPaused;\n // Use to assign a unique identifier to a promise function, if not explicitly specified\n #idAssigner = 1n;\n // Track currently running tasks for debugging\n #runningTasks = new Map();\n /**\n Get or set the default timeout for all tasks. Can be changed at runtime.\n\n Operations will throw a `TimeoutError` if they don't complete within the specified time.\n\n The timeout begins when the operation is dequeued and starts execution, not while it's waiting in the queue.\n\n @example\n ```\n const queue = new PQueue({timeout: 5000});\n\n // Change timeout for all future tasks\n queue.timeout = 10000;\n ```\n */\n timeout;\n constructor(options) {\n super();\n // eslint-disable-next-line @typescript-eslint/consistent-type-assertions\n options = {\n carryoverIntervalCount: false,\n intervalCap: Number.POSITIVE_INFINITY,\n interval: 0,\n concurrency: Number.POSITIVE_INFINITY,\n autoStart: true,\n queueClass: PriorityQueue,\n ...options,\n };\n if (!(typeof options.intervalCap === 'number' && options.intervalCap >= 1)) {\n throw new TypeError(`Expected \\`intervalCap\\` to be a number from 1 and up, got \\`${options.intervalCap?.toString() ?? ''}\\` (${typeof options.intervalCap})`);\n }\n if (options.interval === undefined || !(Number.isFinite(options.interval) && options.interval >= 0)) {\n throw new TypeError(`Expected \\`interval\\` to be a finite number >= 0, got \\`${options.interval?.toString() ?? ''}\\` (${typeof options.interval})`);\n }\n // TODO: Remove this fallback in the next major version\n // eslint-disable-next-line @typescript-eslint/no-deprecated\n this.#carryoverIntervalCount = options.carryoverIntervalCount ?? options.carryoverConcurrencyCount ?? false;\n this.#isIntervalIgnored = options.intervalCap === Number.POSITIVE_INFINITY || options.interval === 0;\n this.#intervalCap = options.intervalCap;\n this.#interval = options.interval;\n this.#queue = new options.queueClass();\n this.#queueClass = options.queueClass;\n this.concurrency = options.concurrency;\n if (options.timeout !== undefined && !(Number.isFinite(options.timeout) && options.timeout > 0)) {\n throw new TypeError(`Expected \\`timeout\\` to be a positive finite number, got \\`${options.timeout}\\` (${typeof options.timeout})`);\n }\n this.timeout = options.timeout;\n this.#isPaused = options.autoStart === false;\n this.#setupRateLimitTracking();\n }\n get #doesIntervalAllowAnother() {\n return this.#isIntervalIgnored || this.#intervalCount < this.#intervalCap;\n }\n get #doesConcurrentAllowAnother() {\n return this.#pending < this.#concurrency;\n }\n #next() {\n this.#pending--;\n if (this.#pending === 0) {\n this.emit('pendingZero');\n }\n this.#tryToStartAnother();\n this.emit('next');\n }\n #onResumeInterval() {\n this.#onInterval(); // Already schedules update\n this.#initializeIntervalIfNeeded();\n this.#timeoutId = undefined;\n }\n get #isIntervalPaused() {\n const now = Date.now();\n if (this.#intervalId === undefined) {\n const delay = this.#intervalEnd - now;\n if (delay < 0) {\n // If the interval has expired while idle, check if we should enforce the interval\n // from the last task execution. This ensures proper spacing between tasks even\n // when the queue becomes empty and then new tasks are added.\n if (this.#lastExecutionTime > 0) {\n const timeSinceLastExecution = now - this.#lastExecutionTime;\n if (timeSinceLastExecution < this.#interval) {\n // Not enough time has passed since the last task execution\n this.#createIntervalTimeout(this.#interval - timeSinceLastExecution);\n return true;\n }\n }\n // Enough time has passed or no previous execution, allow execution\n this.#intervalCount = (this.#carryoverIntervalCount) ? this.#pending : 0;\n }\n else {\n // Act as the interval is pending\n this.#createIntervalTimeout(delay);\n return true;\n }\n }\n return false;\n }\n #createIntervalTimeout(delay) {\n if (this.#timeoutId !== undefined) {\n return;\n }\n this.#timeoutId = setTimeout(() => {\n this.#onResumeInterval();\n }, delay);\n }\n #clearIntervalTimer() {\n if (this.#intervalId) {\n clearInterval(this.#intervalId);\n this.#intervalId = undefined;\n }\n }\n #clearTimeoutTimer() {\n if (this.#timeoutId) {\n clearTimeout(this.#timeoutId);\n this.#timeoutId = undefined;\n }\n }\n #tryToStartAnother() {\n if (this.#queue.size === 0) {\n // We can clear the interval (\"pause\")\n // Because we can redo it later (\"resume\")\n this.#clearIntervalTimer();\n this.emit('empty');\n if (this.#pending === 0) {\n // Clear timeout as well when completely idle\n this.#clearTimeoutTimer();\n this.emit('idle');\n }\n return false;\n }\n let taskStarted = false;\n if (!this.#isPaused) {\n const canInitializeInterval = !this.#isIntervalPaused;\n if (this.#doesIntervalAllowAnother && this.#doesConcurrentAllowAnother) {\n const job = this.#queue.dequeue();\n // Increment interval count immediately to prevent race conditions\n if (!this.#isIntervalIgnored) {\n this.#intervalCount++;\n this.#scheduleRateLimitUpdate();\n }\n this.emit('active');\n this.#lastExecutionTime = Date.now();\n job();\n if (canInitializeInterval) {\n this.#initializeIntervalIfNeeded();\n }\n taskStarted = true;\n }\n }\n return taskStarted;\n }\n #initializeIntervalIfNeeded() {\n if (this.#isIntervalIgnored || this.#intervalId !== undefined) {\n return;\n }\n this.#intervalId = setInterval(() => {\n this.#onInterval();\n }, this.#interval);\n this.#intervalEnd = Date.now() + this.#interval;\n }\n #onInterval() {\n if (this.#intervalCount === 0 && this.#pending === 0 && this.#intervalId) {\n this.#clearIntervalTimer();\n }\n this.#intervalCount = this.#carryoverIntervalCount ? this.#pending : 0;\n this.#processQueue();\n this.#scheduleRateLimitUpdate();\n }\n /**\n Executes all queued functions until it reaches the limit.\n */\n #processQueue() {\n // eslint-disable-next-line no-empty\n while (this.#tryToStartAnother()) { }\n }\n get concurrency() {\n return this.#concurrency;\n }\n set concurrency(newConcurrency) {\n if (!(typeof newConcurrency === 'number' && newConcurrency >= 1)) {\n throw new TypeError(`Expected \\`concurrency\\` to be a number from 1 and up, got \\`${newConcurrency}\\` (${typeof newConcurrency})`);\n }\n this.#concurrency = newConcurrency;\n this.#processQueue();\n }\n /**\n Updates the priority of a promise function by its id, affecting its execution order. Requires a defined concurrency limit to take effect.\n\n For example, this can be used to prioritize a promise function to run earlier.\n\n ```js\n import PQueue from 'p-queue';\n\n const queue = new PQueue({concurrency: 1});\n\n queue.add(async () => '🦄', {priority: 1});\n queue.add(async () => '🦀', {priority: 0, id: '🦀'});\n queue.add(async () => '🦄', {priority: 1});\n queue.add(async () => '🦄', {priority: 1});\n\n queue.setPriority('🦀', 2);\n ```\n\n In this case, the promise function with `id: '🦀'` runs second.\n\n You can also deprioritize a promise function to delay its execution:\n\n ```js\n import PQueue from 'p-queue';\n\n const queue = new PQueue({concurrency: 1});\n\n queue.add(async () => '🦄', {priority: 1});\n queue.add(async () => '🦀', {priority: 1, id: '🦀'});\n queue.add(async () => '🦄');\n queue.add(async () => '🦄', {priority: 0});\n\n queue.setPriority('🦀', -1);\n ```\n Here, the promise function with `id: '🦀'` executes last.\n */\n setPriority(id, priority) {\n if (typeof priority !== 'number' || !Number.isFinite(priority)) {\n throw new TypeError(`Expected \\`priority\\` to be a finite number, got \\`${priority}\\` (${typeof priority})`);\n }\n this.#queue.setPriority(id, priority);\n }\n async add(function_, options = {}) {\n // In case `id` is not defined.\n options.id ??= (this.#idAssigner++).toString();\n options = {\n timeout: this.timeout,\n ...options,\n };\n return new Promise((resolve, reject) => {\n // Create a unique symbol for tracking this task\n const taskSymbol = Symbol(`task-${options.id}`);\n this.#queue.enqueue(async () => {\n this.#pending++;\n // Track this running task\n this.#runningTasks.set(taskSymbol, {\n id: options.id,\n priority: options.priority ?? 0, // Match priority-queue default\n startTime: Date.now(),\n timeout: options.timeout,\n });\n let eventListener;\n try {\n // Check abort signal - if aborted, need to decrement the counter\n // that was incremented in tryToStartAnother\n try {\n options.signal?.throwIfAborted();\n }\n catch (error) {\n // Decrement the counter that was already incremented\n if (!this.#isIntervalIgnored) {\n this.#intervalCount--;\n }\n // Clean up tracking before throwing\n this.#runningTasks.delete(taskSymbol);\n throw error;\n }\n let operation = function_({ signal: options.signal });\n if (options.timeout) {\n operation = pTimeout(Promise.resolve(operation), {\n milliseconds: options.timeout,\n message: `Task timed out after ${options.timeout}ms (queue has ${this.#pending} running, ${this.#queue.size} waiting)`,\n });\n }\n if (options.signal) {\n const { signal } = options;\n operation = Promise.race([operation, new Promise((_resolve, reject) => {\n eventListener = () => {\n reject(signal.reason);\n };\n signal.addEventListener('abort', eventListener, { once: true });\n })]);\n }\n const result = await operation;\n resolve(result);\n this.emit('completed', result);\n }\n catch (error) {\n reject(error);\n this.emit('error', error);\n }\n finally {\n // Clean up abort event listener\n if (eventListener) {\n options.signal?.removeEventListener('abort', eventListener);\n }\n // Remove from running tasks\n this.#runningTasks.delete(taskSymbol);\n // Use queueMicrotask to prevent deep recursion while maintaining timing\n queueMicrotask(() => {\n this.#next();\n });\n }\n }, options);\n this.emit('add');\n this.#tryToStartAnother();\n });\n }\n async addAll(functions, options) {\n return Promise.all(functions.map(async (function_) => this.add(function_, options)));\n }\n /**\n Start (or resume) executing enqueued tasks within concurrency limit. No need to call this if queue is not paused (via `options.autoStart = false` or by `.pause()` method.)\n */\n start() {\n if (!this.#isPaused) {\n return this;\n }\n this.#isPaused = false;\n this.#processQueue();\n return this;\n }\n /**\n Put queue execution on hold.\n */\n pause() {\n this.#isPaused = true;\n }\n /**\n Clear the queue.\n */\n clear() {\n this.#queue = new this.#queueClass();\n // Note: We don't clear #runningTasks as those tasks are still running\n // They will be removed when they complete in the finally block\n // Force synchronous update since clear() should have immediate effect\n this.#updateRateLimitState();\n }\n /**\n Can be called multiple times. Useful if you for example add additional items at a later time.\n\n @returns A promise that settles when the queue becomes empty.\n */\n async onEmpty() {\n // Instantly resolve if the queue is empty\n if (this.#queue.size === 0) {\n return;\n }\n await this.#onEvent('empty');\n }\n /**\n @returns A promise that settles when the queue size is less than the given limit: `queue.size < limit`.\n\n If you want to avoid having the queue grow beyond a certain size you can `await queue.onSizeLessThan()` before adding a new item.\n\n Note that this only limits the number of items waiting to start. There could still be up to `concurrency` jobs already running that this call does not include in its calculation.\n */\n async onSizeLessThan(limit) {\n // Instantly resolve if the queue is empty.\n if (this.#queue.size < limit) {\n return;\n }\n await this.#onEvent('next', () => this.#queue.size < limit);\n }\n /**\n The difference with `.onEmpty` is that `.onIdle` guarantees that all work from the queue has finished. `.onEmpty` merely signals that the queue is empty, but it could mean that some promises haven't completed yet.\n\n @returns A promise that settles when the queue becomes empty, and all promises have completed; `queue.size === 0 && queue.pending === 0`.\n */\n async onIdle() {\n // Instantly resolve if none pending and if nothing else is queued\n if (this.#pending === 0 && this.#queue.size === 0) {\n return;\n }\n await this.#onEvent('idle');\n }\n /**\n The difference with `.onIdle` is that `.onPendingZero` only waits for currently running tasks to finish, ignoring queued tasks.\n\n @returns A promise that settles when all currently running tasks have completed; `queue.pending === 0`.\n */\n async onPendingZero() {\n if (this.#pending === 0) {\n return;\n }\n await this.#onEvent('pendingZero');\n }\n /**\n @returns A promise that settles when the queue becomes rate-limited due to intervalCap.\n */\n async onRateLimit() {\n if (this.isRateLimited) {\n return;\n }\n await this.#onEvent('rateLimit');\n }\n /**\n @returns A promise that settles when the queue is no longer rate-limited.\n */\n async onRateLimitCleared() {\n if (!this.isRateLimited) {\n return;\n }\n await this.#onEvent('rateLimitCleared');\n }\n /**\n @returns A promise that rejects when any task in the queue errors.\n\n Use with `Promise.race([queue.onError(), queue.onIdle()])` to fail fast on the first error while still resolving normally when the queue goes idle.\n\n Important: The promise returned by `add()` still rejects. You must handle each `add()` promise (for example, `.catch(() => {})`) to avoid unhandled rejections.\n\n @example\n ```\n import PQueue from 'p-queue';\n\n const queue = new PQueue({concurrency: 2});\n\n queue.add(() => fetchData(1)).catch(() => {});\n queue.add(() => fetchData(2)).catch(() => {});\n queue.add(() => fetchData(3)).catch(() => {});\n\n // Stop processing on first error\n try {\n await Promise.race([\n queue.onError(),\n queue.onIdle()\n ]);\n } catch (error) {\n queue.pause(); // Stop processing remaining tasks\n console.error('Queue failed:', error);\n }\n ```\n */\n // eslint-disable-next-line @typescript-eslint/promise-function-async\n async onError() {\n return new Promise((_resolve, reject) => {\n const handleError = (error) => {\n this.off('error', handleError);\n reject(error);\n };\n this.on('error', handleError);\n });\n }\n async #onEvent(event, filter) {\n return new Promise(resolve => {\n const listener = () => {\n if (filter && !filter()) {\n return;\n }\n this.off(event, listener);\n resolve();\n };\n this.on(event, listener);\n });\n }\n /**\n Size of the queue, the number of queued items waiting to run.\n */\n get size() {\n return this.#queue.size;\n }\n /**\n Size of the queue, filtered by the given options.\n\n For example, this can be used to find the number of items remaining in the queue with a specific priority level.\n */\n sizeBy(options) {\n // eslint-disable-next-line unicorn/no-array-callback-reference\n return this.#queue.filter(options).length;\n }\n /**\n Number of running items (no longer in the queue).\n */\n get pending() {\n return this.#pending;\n }\n /**\n Whether the queue is currently paused.\n */\n get isPaused() {\n return this.#isPaused;\n }\n #setupRateLimitTracking() {\n // Only schedule updates when rate limiting is enabled\n if (this.#isIntervalIgnored) {\n return;\n }\n // Wire up to lifecycle events that affect rate limit state\n // Only 'add' and 'next' can actually change rate limit state\n this.on('add', () => {\n if (this.#queue.size > 0) {\n this.#scheduleRateLimitUpdate();\n }\n });\n this.on('next', () => {\n this.#scheduleRateLimitUpdate();\n });\n }\n #scheduleRateLimitUpdate() {\n // Skip if rate limiting is not enabled or already scheduled\n if (this.#isIntervalIgnored || this.#rateLimitFlushScheduled) {\n return;\n }\n this.#rateLimitFlushScheduled = true;\n queueMicrotask(() => {\n this.#rateLimitFlushScheduled = false;\n this.#updateRateLimitState();\n });\n }\n #updateRateLimitState() {\n const previous = this.#rateLimitedInInterval;\n const shouldBeRateLimited = !this.#isIntervalIgnored\n && this.#intervalCount >= this.#intervalCap\n && this.#queue.size > 0;\n if (shouldBeRateLimited !== previous) {\n this.#rateLimitedInInterval = shouldBeRateLimited;\n this.emit(shouldBeRateLimited ? 'rateLimit' : 'rateLimitCleared');\n }\n }\n /**\n Whether the queue is currently rate-limited due to intervalCap.\n */\n get isRateLimited() {\n return this.#rateLimitedInInterval;\n }\n /**\n Whether the queue is saturated. Returns `true` when:\n - All concurrency slots are occupied and tasks are waiting, OR\n - The queue is rate-limited and tasks are waiting\n\n Useful for detecting backpressure and potential hanging tasks.\n\n ```js\n import PQueue from 'p-queue';\n\n const queue = new PQueue({concurrency: 2});\n\n // Backpressure handling\n if (queue.isSaturated) {\n console.log('Queue is saturated, waiting for capacity...');\n await queue.onSizeLessThan(queue.concurrency);\n }\n\n // Monitoring for stuck tasks\n setInterval(() => {\n if (queue.isSaturated) {\n console.warn(`Queue saturated: ${queue.pending} running, ${queue.size} waiting`);\n }\n }, 60000);\n ```\n */\n get isSaturated() {\n return (this.#pending === this.#concurrency && this.#queue.size > 0)\n || (this.isRateLimited && this.#queue.size > 0);\n }\n /**\n The tasks currently being executed. Each task includes its `id`, `priority`, `startTime`, and `timeout` (if set).\n\n Returns an array of task info objects.\n\n ```js\n import PQueue from 'p-queue';\n\n const queue = new PQueue({concurrency: 2});\n\n // Add tasks with IDs for better debugging\n queue.add(() => fetchUser(123), {id: 'user-123'});\n queue.add(() => fetchPosts(456), {id: 'posts-456', priority: 1});\n\n // Check what's running\n console.log(queue.runningTasks);\n // => [{\n // id: 'user-123',\n // priority: 0,\n // startTime: 1759253001716,\n // timeout: undefined\n // }, {\n // id: 'posts-456',\n // priority: 1,\n // startTime: 1759253001916,\n // timeout: undefined\n // }]\n ```\n */\n get runningTasks() {\n // Return fresh array with fresh objects to prevent mutations\n return [...this.#runningTasks.values()].map(task => ({ ...task }));\n }\n}\n/**\nError thrown when a task times out.\n\n@example\n```\nimport PQueue, {TimeoutError} from 'p-queue';\n\nconst queue = new PQueue({timeout: 1000});\n\ntry {\n await queue.add(() => someTask());\n} catch (error) {\n if (error instanceof TimeoutError) {\n console.log('Task timed out');\n }\n}\n```\n*/\nexport { TimeoutError } from 'p-timeout';\n","import PQueue from \"p-queue\";\nconst queue = new PQueue({ concurrency: 5 });\nfunction preloadImage(url) {\n const { resolve, promise } = Promise.withResolvers();\n queue.add(() => {\n const image = new Image();\n image.onerror = () => resolve(false);\n image.onload = () => resolve(true);\n image.src = url;\n return promise;\n });\n return promise;\n}\nexport {\n preloadImage\n};\n//# sourceMappingURL=index.mjs.map\n","import '../assets/NcChip-DZ8dUSFy.css';\nimport { defineComponent, useSlots, computed, createElementBlock, openBlock, normalizeClass, createCommentVNode, createElementVNode, createBlock, renderSlot, createTextVNode, toDisplayString, withCtx, createVNode, unref } from \"vue\";\nimport { b as mdiClose } from \"./mdi-XFJRiRqJ.mjs\";\nimport { N as NcActionButton } from \"./NcActionButton-pKOSrlGE.mjs\";\nimport { N as NcActions } from \"./NcActions-DWmvh7-Y.mjs\";\nimport { N as NcIconSvgWrapper } from \"./NcIconSvgWrapper-BvLanNaW.mjs\";\nimport { r as register, a as t } from \"./_l10n-DrTiip5c.mjs\";\nimport { _ as _export_sfc } from \"./_plugin-vue_export-helper-1tPrXgE0.mjs\";\nregister();\nconst _hoisted_1 = {\n key: 0,\n class: \"nc-chip__icon\"\n};\nconst _hoisted_2 = { class: \"nc-chip__text\" };\nconst _sfc_main = /* @__PURE__ */ defineComponent({\n __name: \"NcChip\",\n props: {\n ariaLabelClose: { default: t(\"Close\") },\n actionsContainer: { default: \"body\" },\n text: { default: \"\" },\n iconPath: { default: void 0 },\n iconSvg: { default: void 0 },\n noClose: { type: Boolean },\n variant: { default: \"secondary\" }\n },\n emits: [\"close\"],\n setup(__props, { emit: __emit }) {\n const props = __props;\n const emit = __emit;\n const slots = useSlots();\n const canClose = computed(() => !props.noClose);\n const hasActions = () => !!slots.actions;\n const hasIcon = () => Boolean(props.iconPath || props.iconSvg || !!slots.icon);\n return (_ctx, _cache) => {\n return openBlock(), createElementBlock(\"div\", {\n class: normalizeClass([\"nc-chip\", {\n [`nc-chip--${_ctx.variant}`]: true,\n \"nc-chip--no-actions\": _ctx.noClose && !hasActions(),\n \"nc-chip--no-icon\": !hasIcon()\n }])\n }, [\n hasIcon() ? (openBlock(), createElementBlock(\"span\", _hoisted_1, [\n renderSlot(_ctx.$slots, \"icon\", {}, () => [\n _ctx.iconPath || _ctx.iconSvg ? (openBlock(), createBlock(NcIconSvgWrapper, {\n key: 0,\n inline: \"\",\n path: _ctx.iconPath,\n svg: _ctx.iconPath ? void 0 : _ctx.iconSvg,\n size: 18\n }, null, 8, [\"path\", \"svg\"])) : createCommentVNode(\"\", true)\n ], true)\n ])) : createCommentVNode(\"\", true),\n createElementVNode(\"span\", _hoisted_2, [\n renderSlot(_ctx.$slots, \"default\", {}, () => [\n createTextVNode(toDisplayString(_ctx.text), 1)\n ], true)\n ]),\n canClose.value || hasActions() ? (openBlock(), createBlock(NcActions, {\n key: 1,\n class: \"nc-chip__actions\",\n container: _ctx.actionsContainer,\n \"force-menu\": !canClose.value,\n variant: \"tertiary-no-background\"\n }, {\n default: withCtx(() => [\n canClose.value ? (openBlock(), createBlock(NcActionButton, {\n key: 0,\n \"close-after-click\": \"\",\n onClick: _cache[0] || (_cache[0] = ($event) => emit(\"close\"))\n }, {\n icon: withCtx(() => [\n createVNode(NcIconSvgWrapper, {\n path: unref(mdiClose),\n size: 20\n }, null, 8, [\"path\"])\n ]),\n default: withCtx(() => [\n createTextVNode(\" \" + toDisplayString(_ctx.ariaLabelClose), 1)\n ]),\n _: 1\n })) : createCommentVNode(\"\", true),\n renderSlot(_ctx.$slots, \"actions\", {}, void 0, true)\n ]),\n _: 3\n }, 8, [\"container\", \"force-menu\"])) : createCommentVNode(\"\", true)\n ], 2);\n };\n }\n});\nconst NcChip = /* @__PURE__ */ _export_sfc(_sfc_main, [[\"__scopeId\", \"data-v-2aa1d7ea\"]]);\nexport {\n NcChip as N\n};\n//# sourceMappingURL=NcChip-D8tGFzRl.mjs.map\n","function hasWindow() {\n return typeof window !== 'undefined';\n}\nfunction getNodeName(node) {\n if (isNode(node)) {\n return (node.nodeName || '').toLowerCase();\n }\n // Mocked nodes in testing environments may not be instances of Node. By\n // returning `#document` an infinite loop won't occur.\n // https://github.com/floating-ui/floating-ui/issues/2317\n return '#document';\n}\nfunction getWindow(node) {\n var _node$ownerDocument;\n return (node == null || (_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;\n}\nfunction getDocumentElement(node) {\n var _ref;\n return (_ref = (isNode(node) ? node.ownerDocument : node.document) || window.document) == null ? void 0 : _ref.documentElement;\n}\nfunction isNode(value) {\n if (!hasWindow()) {\n return false;\n }\n return value instanceof Node || value instanceof getWindow(value).Node;\n}\nfunction isElement(value) {\n if (!hasWindow()) {\n return false;\n }\n return value instanceof Element || value instanceof getWindow(value).Element;\n}\nfunction isHTMLElement(value) {\n if (!hasWindow()) {\n return false;\n }\n return value instanceof HTMLElement || value instanceof getWindow(value).HTMLElement;\n}\nfunction isShadowRoot(value) {\n if (!hasWindow() || typeof ShadowRoot === 'undefined') {\n return false;\n }\n return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;\n}\nconst invalidOverflowDisplayValues = /*#__PURE__*/new Set(['inline', 'contents']);\nfunction isOverflowElement(element) {\n const {\n overflow,\n overflowX,\n overflowY,\n display\n } = getComputedStyle(element);\n return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !invalidOverflowDisplayValues.has(display);\n}\nconst tableElements = /*#__PURE__*/new Set(['table', 'td', 'th']);\nfunction isTableElement(element) {\n return tableElements.has(getNodeName(element));\n}\nconst topLayerSelectors = [':popover-open', ':modal'];\nfunction isTopLayer(element) {\n return topLayerSelectors.some(selector => {\n try {\n return element.matches(selector);\n } catch (_e) {\n return false;\n }\n });\n}\nconst transformProperties = ['transform', 'translate', 'scale', 'rotate', 'perspective'];\nconst willChangeValues = ['transform', 'translate', 'scale', 'rotate', 'perspective', 'filter'];\nconst containValues = ['paint', 'layout', 'strict', 'content'];\nfunction isContainingBlock(elementOrCss) {\n const webkit = isWebKit();\n const css = isElement(elementOrCss) ? getComputedStyle(elementOrCss) : elementOrCss;\n\n // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block\n // https://drafts.csswg.org/css-transforms-2/#individual-transforms\n return transformProperties.some(value => css[value] ? css[value] !== 'none' : false) || (css.containerType ? css.containerType !== 'normal' : false) || !webkit && (css.backdropFilter ? css.backdropFilter !== 'none' : false) || !webkit && (css.filter ? css.filter !== 'none' : false) || willChangeValues.some(value => (css.willChange || '').includes(value)) || containValues.some(value => (css.contain || '').includes(value));\n}\nfunction getContainingBlock(element) {\n let currentNode = getParentNode(element);\n while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {\n if (isContainingBlock(currentNode)) {\n return currentNode;\n } else if (isTopLayer(currentNode)) {\n return null;\n }\n currentNode = getParentNode(currentNode);\n }\n return null;\n}\nfunction isWebKit() {\n if (typeof CSS === 'undefined' || !CSS.supports) return false;\n return CSS.supports('-webkit-backdrop-filter', 'none');\n}\nconst lastTraversableNodeNames = /*#__PURE__*/new Set(['html', 'body', '#document']);\nfunction isLastTraversableNode(node) {\n return lastTraversableNodeNames.has(getNodeName(node));\n}\nfunction getComputedStyle(element) {\n return getWindow(element).getComputedStyle(element);\n}\nfunction getNodeScroll(element) {\n if (isElement(element)) {\n return {\n scrollLeft: element.scrollLeft,\n scrollTop: element.scrollTop\n };\n }\n return {\n scrollLeft: element.scrollX,\n scrollTop: element.scrollY\n };\n}\nfunction getParentNode(node) {\n if (getNodeName(node) === 'html') {\n return node;\n }\n const result =\n // Step into the shadow DOM of the parent of a slotted node.\n node.assignedSlot ||\n // DOM Element detected.\n node.parentNode ||\n // ShadowRoot detected.\n isShadowRoot(node) && node.host ||\n // Fallback.\n getDocumentElement(node);\n return isShadowRoot(result) ? result.host : result;\n}\nfunction getNearestOverflowAncestor(node) {\n const parentNode = getParentNode(node);\n if (isLastTraversableNode(parentNode)) {\n return node.ownerDocument ? node.ownerDocument.body : node.body;\n }\n if (isHTMLElement(parentNode) && isOverflowElement(parentNode)) {\n return parentNode;\n }\n return getNearestOverflowAncestor(parentNode);\n}\nfunction getOverflowAncestors(node, list, traverseIframes) {\n var _node$ownerDocument2;\n if (list === void 0) {\n list = [];\n }\n if (traverseIframes === void 0) {\n traverseIframes = true;\n }\n const scrollableAncestor = getNearestOverflowAncestor(node);\n const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);\n const win = getWindow(scrollableAncestor);\n if (isBody) {\n const frameElement = getFrameElement(win);\n return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], frameElement && traverseIframes ? getOverflowAncestors(frameElement) : []);\n }\n return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));\n}\nfunction getFrameElement(win) {\n return win.parent && Object.getPrototypeOf(win.parent) ? win.frameElement : null;\n}\n\nexport { getComputedStyle, getContainingBlock, getDocumentElement, getFrameElement, getNearestOverflowAncestor, getNodeName, getNodeScroll, getOverflowAncestors, getParentNode, getWindow, isContainingBlock, isElement, isHTMLElement, isLastTraversableNode, isNode, isOverflowElement, isShadowRoot, isTableElement, isTopLayer, isWebKit };\n","import { rectToClientRect, arrow as arrow$1, autoPlacement as autoPlacement$1, detectOverflow as detectOverflow$1, flip as flip$1, hide as hide$1, inline as inline$1, limitShift as limitShift$1, offset as offset$1, shift as shift$1, size as size$1, computePosition as computePosition$1 } from '@floating-ui/core';\nimport { round, createCoords, max, min, floor } from '@floating-ui/utils';\nimport { getComputedStyle as getComputedStyle$1, isHTMLElement, isElement, getWindow, isWebKit, getFrameElement, getNodeScroll, getDocumentElement, isTopLayer, getNodeName, isOverflowElement, getOverflowAncestors, getParentNode, isLastTraversableNode, isContainingBlock, isTableElement, getContainingBlock } from '@floating-ui/utils/dom';\nexport { getOverflowAncestors } from '@floating-ui/utils/dom';\n\nfunction getCssDimensions(element) {\n const css = getComputedStyle$1(element);\n // In testing environments, the `width` and `height` properties are empty\n // strings for SVG elements, returning NaN. Fallback to `0` in this case.\n let width = parseFloat(css.width) || 0;\n let height = parseFloat(css.height) || 0;\n const hasOffset = isHTMLElement(element);\n const offsetWidth = hasOffset ? element.offsetWidth : width;\n const offsetHeight = hasOffset ? element.offsetHeight : height;\n const shouldFallback = round(width) !== offsetWidth || round(height) !== offsetHeight;\n if (shouldFallback) {\n width = offsetWidth;\n height = offsetHeight;\n }\n return {\n width,\n height,\n $: shouldFallback\n };\n}\n\nfunction unwrapElement(element) {\n return !isElement(element) ? element.contextElement : element;\n}\n\nfunction getScale(element) {\n const domElement = unwrapElement(element);\n if (!isHTMLElement(domElement)) {\n return createCoords(1);\n }\n const rect = domElement.getBoundingClientRect();\n const {\n width,\n height,\n $\n } = getCssDimensions(domElement);\n let x = ($ ? round(rect.width) : rect.width) / width;\n let y = ($ ? round(rect.height) : rect.height) / height;\n\n // 0, NaN, or Infinity should always fallback to 1.\n\n if (!x || !Number.isFinite(x)) {\n x = 1;\n }\n if (!y || !Number.isFinite(y)) {\n y = 1;\n }\n return {\n x,\n y\n };\n}\n\nconst noOffsets = /*#__PURE__*/createCoords(0);\nfunction getVisualOffsets(element) {\n const win = getWindow(element);\n if (!isWebKit() || !win.visualViewport) {\n return noOffsets;\n }\n return {\n x: win.visualViewport.offsetLeft,\n y: win.visualViewport.offsetTop\n };\n}\nfunction shouldAddVisualOffsets(element, isFixed, floatingOffsetParent) {\n if (isFixed === void 0) {\n isFixed = false;\n }\n if (!floatingOffsetParent || isFixed && floatingOffsetParent !== getWindow(element)) {\n return false;\n }\n return isFixed;\n}\n\nfunction getBoundingClientRect(element, includeScale, isFixedStrategy, offsetParent) {\n if (includeScale === void 0) {\n includeScale = false;\n }\n if (isFixedStrategy === void 0) {\n isFixedStrategy = false;\n }\n const clientRect = element.getBoundingClientRect();\n const domElement = unwrapElement(element);\n let scale = createCoords(1);\n if (includeScale) {\n if (offsetParent) {\n if (isElement(offsetParent)) {\n scale = getScale(offsetParent);\n }\n } else {\n scale = getScale(element);\n }\n }\n const visualOffsets = shouldAddVisualOffsets(domElement, isFixedStrategy, offsetParent) ? getVisualOffsets(domElement) : createCoords(0);\n let x = (clientRect.left + visualOffsets.x) / scale.x;\n let y = (clientRect.top + visualOffsets.y) / scale.y;\n let width = clientRect.width / scale.x;\n let height = clientRect.height / scale.y;\n if (domElement) {\n const win = getWindow(domElement);\n const offsetWin = offsetParent && isElement(offsetParent) ? getWindow(offsetParent) : offsetParent;\n let currentWin = win;\n let currentIFrame = getFrameElement(currentWin);\n while (currentIFrame && offsetParent && offsetWin !== currentWin) {\n const iframeScale = getScale(currentIFrame);\n const iframeRect = currentIFrame.getBoundingClientRect();\n const css = getComputedStyle$1(currentIFrame);\n const left = iframeRect.left + (currentIFrame.clientLeft + parseFloat(css.paddingLeft)) * iframeScale.x;\n const top = iframeRect.top + (currentIFrame.clientTop + parseFloat(css.paddingTop)) * iframeScale.y;\n x *= iframeScale.x;\n y *= iframeScale.y;\n width *= iframeScale.x;\n height *= iframeScale.y;\n x += left;\n y += top;\n currentWin = getWindow(currentIFrame);\n currentIFrame = getFrameElement(currentWin);\n }\n }\n return rectToClientRect({\n width,\n height,\n x,\n y\n });\n}\n\n// If has a CSS width greater than the viewport, then this will be\n// incorrect for RTL.\nfunction getWindowScrollBarX(element, rect) {\n const leftScroll = getNodeScroll(element).scrollLeft;\n if (!rect) {\n return getBoundingClientRect(getDocumentElement(element)).left + leftScroll;\n }\n return rect.left + leftScroll;\n}\n\nfunction getHTMLOffset(documentElement, scroll) {\n const htmlRect = documentElement.getBoundingClientRect();\n const x = htmlRect.left + scroll.scrollLeft - getWindowScrollBarX(documentElement, htmlRect);\n const y = htmlRect.top + scroll.scrollTop;\n return {\n x,\n y\n };\n}\n\nfunction convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {\n let {\n elements,\n rect,\n offsetParent,\n strategy\n } = _ref;\n const isFixed = strategy === 'fixed';\n const documentElement = getDocumentElement(offsetParent);\n const topLayer = elements ? isTopLayer(elements.floating) : false;\n if (offsetParent === documentElement || topLayer && isFixed) {\n return rect;\n }\n let scroll = {\n scrollLeft: 0,\n scrollTop: 0\n };\n let scale = createCoords(1);\n const offsets = createCoords(0);\n const isOffsetParentAnElement = isHTMLElement(offsetParent);\n if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {\n if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {\n scroll = getNodeScroll(offsetParent);\n }\n if (isHTMLElement(offsetParent)) {\n const offsetRect = getBoundingClientRect(offsetParent);\n scale = getScale(offsetParent);\n offsets.x = offsetRect.x + offsetParent.clientLeft;\n offsets.y = offsetRect.y + offsetParent.clientTop;\n }\n }\n const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);\n return {\n width: rect.width * scale.x,\n height: rect.height * scale.y,\n x: rect.x * scale.x - scroll.scrollLeft * scale.x + offsets.x + htmlOffset.x,\n y: rect.y * scale.y - scroll.scrollTop * scale.y + offsets.y + htmlOffset.y\n };\n}\n\nfunction getClientRects(element) {\n return Array.from(element.getClientRects());\n}\n\n// Gets the entire size of the scrollable document area, even extending outside\n// of the `` and `` rect bounds if horizontally scrollable.\nfunction getDocumentRect(element) {\n const html = getDocumentElement(element);\n const scroll = getNodeScroll(element);\n const body = element.ownerDocument.body;\n const width = max(html.scrollWidth, html.clientWidth, body.scrollWidth, body.clientWidth);\n const height = max(html.scrollHeight, html.clientHeight, body.scrollHeight, body.clientHeight);\n let x = -scroll.scrollLeft + getWindowScrollBarX(element);\n const y = -scroll.scrollTop;\n if (getComputedStyle$1(body).direction === 'rtl') {\n x += max(html.clientWidth, body.clientWidth) - width;\n }\n return {\n width,\n height,\n x,\n y\n };\n}\n\n// Safety check: ensure the scrollbar space is reasonable in case this\n// calculation is affected by unusual styles.\n// Most scrollbars leave 15-18px of space.\nconst SCROLLBAR_MAX = 25;\nfunction getViewportRect(element, strategy) {\n const win = getWindow(element);\n const html = getDocumentElement(element);\n const visualViewport = win.visualViewport;\n let width = html.clientWidth;\n let height = html.clientHeight;\n let x = 0;\n let y = 0;\n if (visualViewport) {\n width = visualViewport.width;\n height = visualViewport.height;\n const visualViewportBased = isWebKit();\n if (!visualViewportBased || visualViewportBased && strategy === 'fixed') {\n x = visualViewport.offsetLeft;\n y = visualViewport.offsetTop;\n }\n }\n const windowScrollbarX = getWindowScrollBarX(html);\n // `overflow: hidden` + `scrollbar-gutter: stable` reduces the\n // visual width of the but this is not considered in the size\n // of `html.clientWidth`.\n if (windowScrollbarX <= 0) {\n const doc = html.ownerDocument;\n const body = doc.body;\n const bodyStyles = getComputedStyle(body);\n const bodyMarginInline = doc.compatMode === 'CSS1Compat' ? parseFloat(bodyStyles.marginLeft) + parseFloat(bodyStyles.marginRight) || 0 : 0;\n const clippingStableScrollbarWidth = Math.abs(html.clientWidth - body.clientWidth - bodyMarginInline);\n if (clippingStableScrollbarWidth <= SCROLLBAR_MAX) {\n width -= clippingStableScrollbarWidth;\n }\n } else if (windowScrollbarX <= SCROLLBAR_MAX) {\n // If the scrollbar is on the left, the width needs to be extended\n // by the scrollbar amount so there isn't extra space on the right.\n width += windowScrollbarX;\n }\n return {\n width,\n height,\n x,\n y\n };\n}\n\nconst absoluteOrFixed = /*#__PURE__*/new Set(['absolute', 'fixed']);\n// Returns the inner client rect, subtracting scrollbars if present.\nfunction getInnerBoundingClientRect(element, strategy) {\n const clientRect = getBoundingClientRect(element, true, strategy === 'fixed');\n const top = clientRect.top + element.clientTop;\n const left = clientRect.left + element.clientLeft;\n const scale = isHTMLElement(element) ? getScale(element) : createCoords(1);\n const width = element.clientWidth * scale.x;\n const height = element.clientHeight * scale.y;\n const x = left * scale.x;\n const y = top * scale.y;\n return {\n width,\n height,\n x,\n y\n };\n}\nfunction getClientRectFromClippingAncestor(element, clippingAncestor, strategy) {\n let rect;\n if (clippingAncestor === 'viewport') {\n rect = getViewportRect(element, strategy);\n } else if (clippingAncestor === 'document') {\n rect = getDocumentRect(getDocumentElement(element));\n } else if (isElement(clippingAncestor)) {\n rect = getInnerBoundingClientRect(clippingAncestor, strategy);\n } else {\n const visualOffsets = getVisualOffsets(element);\n rect = {\n x: clippingAncestor.x - visualOffsets.x,\n y: clippingAncestor.y - visualOffsets.y,\n width: clippingAncestor.width,\n height: clippingAncestor.height\n };\n }\n return rectToClientRect(rect);\n}\nfunction hasFixedPositionAncestor(element, stopNode) {\n const parentNode = getParentNode(element);\n if (parentNode === stopNode || !isElement(parentNode) || isLastTraversableNode(parentNode)) {\n return false;\n }\n return getComputedStyle$1(parentNode).position === 'fixed' || hasFixedPositionAncestor(parentNode, stopNode);\n}\n\n// A \"clipping ancestor\" is an `overflow` element with the characteristic of\n// clipping (or hiding) child elements. This returns all clipping ancestors\n// of the given element up the tree.\nfunction getClippingElementAncestors(element, cache) {\n const cachedResult = cache.get(element);\n if (cachedResult) {\n return cachedResult;\n }\n let result = getOverflowAncestors(element, [], false).filter(el => isElement(el) && getNodeName(el) !== 'body');\n let currentContainingBlockComputedStyle = null;\n const elementIsFixed = getComputedStyle$1(element).position === 'fixed';\n let currentNode = elementIsFixed ? getParentNode(element) : element;\n\n // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block\n while (isElement(currentNode) && !isLastTraversableNode(currentNode)) {\n const computedStyle = getComputedStyle$1(currentNode);\n const currentNodeIsContaining = isContainingBlock(currentNode);\n if (!currentNodeIsContaining && computedStyle.position === 'fixed') {\n currentContainingBlockComputedStyle = null;\n }\n const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === 'static' && !!currentContainingBlockComputedStyle && absoluteOrFixed.has(currentContainingBlockComputedStyle.position) || isOverflowElement(currentNode) && !currentNodeIsContaining && hasFixedPositionAncestor(element, currentNode);\n if (shouldDropCurrentNode) {\n // Drop non-containing blocks.\n result = result.filter(ancestor => ancestor !== currentNode);\n } else {\n // Record last containing block for next iteration.\n currentContainingBlockComputedStyle = computedStyle;\n }\n currentNode = getParentNode(currentNode);\n }\n cache.set(element, result);\n return result;\n}\n\n// Gets the maximum area that the element is visible in due to any number of\n// clipping ancestors.\nfunction getClippingRect(_ref) {\n let {\n element,\n boundary,\n rootBoundary,\n strategy\n } = _ref;\n const elementClippingAncestors = boundary === 'clippingAncestors' ? isTopLayer(element) ? [] : getClippingElementAncestors(element, this._c) : [].concat(boundary);\n const clippingAncestors = [...elementClippingAncestors, rootBoundary];\n const firstClippingAncestor = clippingAncestors[0];\n const clippingRect = clippingAncestors.reduce((accRect, clippingAncestor) => {\n const rect = getClientRectFromClippingAncestor(element, clippingAncestor, strategy);\n accRect.top = max(rect.top, accRect.top);\n accRect.right = min(rect.right, accRect.right);\n accRect.bottom = min(rect.bottom, accRect.bottom);\n accRect.left = max(rect.left, accRect.left);\n return accRect;\n }, getClientRectFromClippingAncestor(element, firstClippingAncestor, strategy));\n return {\n width: clippingRect.right - clippingRect.left,\n height: clippingRect.bottom - clippingRect.top,\n x: clippingRect.left,\n y: clippingRect.top\n };\n}\n\nfunction getDimensions(element) {\n const {\n width,\n height\n } = getCssDimensions(element);\n return {\n width,\n height\n };\n}\n\nfunction getRectRelativeToOffsetParent(element, offsetParent, strategy) {\n const isOffsetParentAnElement = isHTMLElement(offsetParent);\n const documentElement = getDocumentElement(offsetParent);\n const isFixed = strategy === 'fixed';\n const rect = getBoundingClientRect(element, true, isFixed, offsetParent);\n let scroll = {\n scrollLeft: 0,\n scrollTop: 0\n };\n const offsets = createCoords(0);\n\n // If the scrollbar appears on the left (e.g. RTL systems). Use\n // Firefox with layout.scrollbar.side = 3 in about:config to test this.\n function setLeftRTLScrollbarOffset() {\n offsets.x = getWindowScrollBarX(documentElement);\n }\n if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {\n if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {\n scroll = getNodeScroll(offsetParent);\n }\n if (isOffsetParentAnElement) {\n const offsetRect = getBoundingClientRect(offsetParent, true, isFixed, offsetParent);\n offsets.x = offsetRect.x + offsetParent.clientLeft;\n offsets.y = offsetRect.y + offsetParent.clientTop;\n } else if (documentElement) {\n setLeftRTLScrollbarOffset();\n }\n }\n if (isFixed && !isOffsetParentAnElement && documentElement) {\n setLeftRTLScrollbarOffset();\n }\n const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);\n const x = rect.left + scroll.scrollLeft - offsets.x - htmlOffset.x;\n const y = rect.top + scroll.scrollTop - offsets.y - htmlOffset.y;\n return {\n x,\n y,\n width: rect.width,\n height: rect.height\n };\n}\n\nfunction isStaticPositioned(element) {\n return getComputedStyle$1(element).position === 'static';\n}\n\nfunction getTrueOffsetParent(element, polyfill) {\n if (!isHTMLElement(element) || getComputedStyle$1(element).position === 'fixed') {\n return null;\n }\n if (polyfill) {\n return polyfill(element);\n }\n let rawOffsetParent = element.offsetParent;\n\n // Firefox returns the element as the offsetParent if it's non-static,\n // while Chrome and Safari return the element. The element must\n // be used to perform the correct calculations even if the element is\n // non-static.\n if (getDocumentElement(element) === rawOffsetParent) {\n rawOffsetParent = rawOffsetParent.ownerDocument.body;\n }\n return rawOffsetParent;\n}\n\n// Gets the closest ancestor positioned element. Handles some edge cases,\n// such as table ancestors and cross browser bugs.\nfunction getOffsetParent(element, polyfill) {\n const win = getWindow(element);\n if (isTopLayer(element)) {\n return win;\n }\n if (!isHTMLElement(element)) {\n let svgOffsetParent = getParentNode(element);\n while (svgOffsetParent && !isLastTraversableNode(svgOffsetParent)) {\n if (isElement(svgOffsetParent) && !isStaticPositioned(svgOffsetParent)) {\n return svgOffsetParent;\n }\n svgOffsetParent = getParentNode(svgOffsetParent);\n }\n return win;\n }\n let offsetParent = getTrueOffsetParent(element, polyfill);\n while (offsetParent && isTableElement(offsetParent) && isStaticPositioned(offsetParent)) {\n offsetParent = getTrueOffsetParent(offsetParent, polyfill);\n }\n if (offsetParent && isLastTraversableNode(offsetParent) && isStaticPositioned(offsetParent) && !isContainingBlock(offsetParent)) {\n return win;\n }\n return offsetParent || getContainingBlock(element) || win;\n}\n\nconst getElementRects = async function (data) {\n const getOffsetParentFn = this.getOffsetParent || getOffsetParent;\n const getDimensionsFn = this.getDimensions;\n const floatingDimensions = await getDimensionsFn(data.floating);\n return {\n reference: getRectRelativeToOffsetParent(data.reference, await getOffsetParentFn(data.floating), data.strategy),\n floating: {\n x: 0,\n y: 0,\n width: floatingDimensions.width,\n height: floatingDimensions.height\n }\n };\n};\n\nfunction isRTL(element) {\n return getComputedStyle$1(element).direction === 'rtl';\n}\n\nconst platform = {\n convertOffsetParentRelativeRectToViewportRelativeRect,\n getDocumentElement,\n getClippingRect,\n getOffsetParent,\n getElementRects,\n getClientRects,\n getDimensions,\n getScale,\n isElement,\n isRTL\n};\n\nfunction rectsAreEqual(a, b) {\n return a.x === b.x && a.y === b.y && a.width === b.width && a.height === b.height;\n}\n\n// https://samthor.au/2021/observing-dom/\nfunction observeMove(element, onMove) {\n let io = null;\n let timeoutId;\n const root = getDocumentElement(element);\n function cleanup() {\n var _io;\n clearTimeout(timeoutId);\n (_io = io) == null || _io.disconnect();\n io = null;\n }\n function refresh(skip, threshold) {\n if (skip === void 0) {\n skip = false;\n }\n if (threshold === void 0) {\n threshold = 1;\n }\n cleanup();\n const elementRectForRootMargin = element.getBoundingClientRect();\n const {\n left,\n top,\n width,\n height\n } = elementRectForRootMargin;\n if (!skip) {\n onMove();\n }\n if (!width || !height) {\n return;\n }\n const insetTop = floor(top);\n const insetRight = floor(root.clientWidth - (left + width));\n const insetBottom = floor(root.clientHeight - (top + height));\n const insetLeft = floor(left);\n const rootMargin = -insetTop + \"px \" + -insetRight + \"px \" + -insetBottom + \"px \" + -insetLeft + \"px\";\n const options = {\n rootMargin,\n threshold: max(0, min(1, threshold)) || 1\n };\n let isFirstUpdate = true;\n function handleObserve(entries) {\n const ratio = entries[0].intersectionRatio;\n if (ratio !== threshold) {\n if (!isFirstUpdate) {\n return refresh();\n }\n if (!ratio) {\n // If the reference is clipped, the ratio is 0. Throttle the refresh\n // to prevent an infinite loop of updates.\n timeoutId = setTimeout(() => {\n refresh(false, 1e-7);\n }, 1000);\n } else {\n refresh(false, ratio);\n }\n }\n if (ratio === 1 && !rectsAreEqual(elementRectForRootMargin, element.getBoundingClientRect())) {\n // It's possible that even though the ratio is reported as 1, the\n // element is not actually fully within the IntersectionObserver's root\n // area anymore. This can happen under performance constraints. This may\n // be a bug in the browser's IntersectionObserver implementation. To\n // work around this, we compare the element's bounding rect now with\n // what it was at the time we created the IntersectionObserver. If they\n // are not equal then the element moved, so we refresh.\n refresh();\n }\n isFirstUpdate = false;\n }\n\n // Older browsers don't support a `document` as the root and will throw an\n // error.\n try {\n io = new IntersectionObserver(handleObserve, {\n ...options,\n // Handle