import{V as xt}from"./preload-helper-DadE4qT2.chunk.mjs";import{n as Q,E as Ut,r as Jt,a6 as Xt,f as Yt,t as et,G as St,x as Gt,a7 as Qt}from"./index-Dgdobvu3.chunk.mjs";import{u as Zt}from"./useModelMigration-EhAWvqDD-Zhby4giX.chunk.mjs";import{u as te,N as ee}from"./NcAvatar-D5nljVEA-Mn39wJHK.chunk.mjs";const ne={name:"ChevronDownIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var oe=function(){var t=this,n=t._self._c;return n("span",t._b({staticClass:"material-design-icon chevron-down-icon",attrs:{"aria-hidden":t.title?null:"true","aria-label":t.title,role:"img"},on:{click:function(o){return t.$emit("click",o)}}},"span",t.$attrs,!1),[n("svg",{staticClass:"material-design-icon__svg",attrs:{fill:t.fillColor,width:t.size,height:t.size,viewBox:"0 0 24 24"}},[n("path",{attrs:{d:"M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z"}},[t.title?n("title",[t._v(t._s(t.title))]):t._e()])])])},ie=[],re=Q(ne,oe,ie,!1,null,null);const se=re.exports,ot=Math.min,K=Math.max,it=Math.round,nt=Math.floor,E=t=>({x:t,y:t}),ae={left:"right",right:"left",bottom:"top",top:"bottom"},le={start:"end",end:"start"};function _t(t,n,o){return K(t,ot(n,o))}function U(t,n){return typeof t=="function"?t(n):t}function j(t){return t.split("-")[0]}function at(t){return t.split("-")[1]}function yt(t){return t==="x"?"y":"x"}function Ft(t){return t==="y"?"height":"width"}const ce=new Set(["top","bottom"]);function I(t){return ce.has(j(t))?"y":"x"}function Nt(t){return yt(I(t))}function ue(t,n,o){o===void 0&&(o=!1);const i=at(t),r=Nt(t),l=Ft(r);let s=r==="x"?i===(o?"end":"start")?"right":"left":i==="start"?"bottom":"top";return n.reference[l]>n.floating[l]&&(s=rt(s)),[s,rt(s)]}function pe(t){const n=rt(t);return[ft(t),n,ft(n)]}function ft(t){return t.replace(/start|end/g,n=>le[n])}const Ot=["left","right"],Lt=["right","left"],he=["top","bottom"],de=["bottom","top"];function fe(t,n,o){switch(t){case"top":case"bottom":return o?n?Lt:Ot:n?Ot:Lt;case"left":case"right":return n?he:de;default:return[]}}function ge(t,n,o,i){const r=at(t);let l=fe(j(t),o==="start",i);return r&&(l=l.map(s=>s+"-"+r),n&&(l=l.concat(l.map(ft)))),l}function rt(t){return t.replace(/left|right|bottom|top/g,n=>ae[n])}function me(t){return{top:0,right:0,bottom:0,left:0,...t}}function ye(t){return typeof t!="number"?me(t):{top:t,right:t,bottom:t,left:t}}function st(t){const{x:n,y:o,width:i,height:r}=t;return{width:i,height:r,top:o,left:n,right:n+i,bottom:o+r,x:n,y:o}}function Ct(t,n,o){let{reference:i,floating:r}=t;const l=I(n),s=Nt(n),a=Ft(s),u=j(n),h=l==="y",m=i.x+i.width/2-r.width/2,f=i.y+i.height/2-r.height/2,y=i[a]/2-r[a]/2;let g;switch(u){case"top":g={x:m,y:i.y-r.height};break;case"bottom":g={x:m,y:i.y+i.height};break;case"right":g={x:i.x+i.width,y:f};break;case"left":g={x:i.x-r.width,y:f};break;default:g={x:i.x,y:i.y}}switch(at(n)){case"start":g[s]-=y*(o&&h?-1:1);break;case"end":g[s]+=y*(o&&h?-1:1);break}return g}const be=async(t,n,o)=>{const{placement:i="bottom",strategy:r="absolute",middleware:l=[],platform:s}=o,a=l.filter(Boolean),u=await(s.isRTL==null?void 0:s.isRTL(n));let h=await s.getElementRects({reference:t,floating:n,strategy:r}),{x:m,y:f}=Ct(h,i,u),y=i,g={},b=0;for(let w=0;wv<=0)){var c,p;const v=(((c=l.flip)==null?void 0:c.index)||0)+1,x=tt[v];if(x&&(!(f==="alignment"&&O!==I(x))||e.every(k=>I(k.placement)===O?k.overflows[0]>0:!0)))return{data:{index:v,overflows:e},reset:{placement:x}};let T=(p=e.filter(k=>k.overflows[0]<=0).sort((k,F)=>k.overflows[1]-F.overflows[1])[0])==null?void 0:p.placement;if(!T)switch(g){case"bestFit":{var d;const k=(d=e.filter(F=>{if(B){const P=I(F.placement);return P===O||P==="y"}return!0}).map(F=>[F.placement,F.overflows.filter(P=>P>0).reduce((P,ht)=>P+ht,0)]).sort((F,P)=>F[1]-P[1])[0])==null?void 0:d[0];k&&(T=k);break}case"initialPlacement":T=a;break}if(r!==T)return{reset:{placement:T}}}return{}}}},Et=new Set(["left","top"]);async function we(t,n){const{placement:o,platform:i,elements:r}=t,l=await(i.isRTL==null?void 0:i.isRTL(r.floating)),s=j(o),a=at(o),u=I(o)==="y",h=Et.has(s)?-1:1,m=l&&u?-1:1,f=U(n,t);let{mainAxis:y,crossAxis:g,alignmentAxis:b}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&typeof b=="number"&&(g=a==="end"?b*-1:b),u?{x:g*m,y:y*h}:{x:y*h,y:g*m}}const xe=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(n){var o,i;const{x:r,y:l,placement:s,middlewareData:a}=n,u=await we(n,t);return s===((o=a.offset)==null?void 0:o.placement)&&(i=a.arrow)!=null&&i.alignmentOffset?{}:{x:r+u.x,y:l+u.y,data:{...u,placement:s}}}}},Se=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(n){const{x:o,y:i,placement:r}=n,{mainAxis:l=!0,crossAxis:s=!1,limiter:a={fn:S=>{let{x:_,y:O}=S;return{x:_,y:O}}},...u}=U(t,n),h={x:o,y:i},m=await Vt(n,u),f=I(j(r)),y=yt(f);let g=h[y],b=h[f];if(l){const S=y==="y"?"top":"left",_=y==="y"?"bottom":"right",O=g+m[S],L=g-m[_];g=_t(O,g,L)}if(s){const S=f==="y"?"top":"left",_=f==="y"?"bottom":"right",O=b+m[S],L=b-m[_];b=_t(O,b,L)}const w=a.fn({...n,[y]:g,[f]:b});return{...w,data:{x:w.x-o,y:w.y-i,enabled:{[y]:l,[f]:s}}}}}},_e=function(t){return t===void 0&&(t={}),{options:t,fn(n){const{x:o,y:i,placement:r,rects:l,middlewareData:s}=n,{offset:a=0,mainAxis:u=!0,crossAxis:h=!0}=U(t,n),m={x:o,y:i},f=I(r),y=yt(f);let g=m[y],b=m[f];const w=U(a,n),S=typeof w=="number"?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(u){const L=y==="y"?"height":"width",C=l.reference[y]-l.floating[L]+S.mainAxis,A=l.reference[y]+l.reference[L]-S.mainAxis;gA&&(g=A)}if(h){var _,O;const L=y==="y"?"width":"height",C=Et.has(j(r)),A=l.reference[f]-l.floating[L]+(C&&((_=s.offset)==null?void 0:_[f])||0)+(C?0:S.crossAxis),B=l.reference[f]+l.reference[L]+(C?0:((O=s.offset)==null?void 0:O[f])||0)-(C?S.crossAxis:0);bB&&(b=B)}return{[y]:g,[f]:b}}}};function lt(){return typeof window<"u"}function X(t){return $t(t)?(t.nodeName||"").toLowerCase():"#document"}function D(t){var n;return(t==null||(n=t.ownerDocument)==null?void 0:n.defaultView)||window}function R(t){var n;return(n=($t(t)?t.ownerDocument:t.document)||window.document)==null?void 0:n.documentElement}function $t(t){return lt()?t instanceof Node||t instanceof D(t).Node:!1}function N(t){return lt()?t instanceof Element||t instanceof D(t).Element:!1}function $(t){return lt()?t instanceof HTMLElement||t instanceof D(t).HTMLElement:!1}function At(t){return!lt()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof D(t).ShadowRoot}const Oe=new Set(["inline","contents"]);function Z(t){const{overflow:n,overflowX:o,overflowY:i,display:r}=V(t);return/auto|scroll|overlay|hidden|clip/.test(n+i+o)&&!Oe.has(r)}const Le=new Set(["table","td","th"]);function Ce(t){return Le.has(X(t))}const Ae=[":popover-open",":modal"];function ct(t){return Ae.some(n=>{try{return t.matches(n)}catch{return!1}})}const Be=["transform","translate","scale","rotate","perspective"],Pe=["transform","translate","scale","rotate","perspective","filter"],Te=["paint","layout","strict","content"];function bt(t){const n=vt(),o=N(t)?V(t):t;return Be.some(i=>o[i]?o[i]!=="none":!1)||(o.containerType?o.containerType!=="normal":!1)||!n&&(o.backdropFilter?o.backdropFilter!=="none":!1)||!n&&(o.filter?o.filter!=="none":!1)||Pe.some(i=>(o.willChange||"").includes(i))||Te.some(i=>(o.contain||"").includes(i))}function De(t){let n=M(t);for(;$(n)&&!J(n);){if(bt(n))return n;if(ct(n))return null;n=M(n)}return null}function vt(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const ke=new Set(["html","body","#document"]);function J(t){return ke.has(X(t))}function V(t){return D(t).getComputedStyle(t)}function ut(t){return N(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function M(t){if(X(t)==="html")return t;const n=t.assignedSlot||t.parentNode||At(t)&&t.host||R(t);return At(n)?n.host:n}function Rt(t){const n=M(t);return J(n)?t.ownerDocument?t.ownerDocument.body:t.body:$(n)&&Z(n)?n:Rt(n)}function G(t,n,o){var i;n===void 0&&(n=[]),o===void 0&&(o=!0);const r=Rt(t),l=r===((i=t.ownerDocument)==null?void 0:i.body),s=D(r);if(l){const a=gt(s);return n.concat(s,s.visualViewport||[],Z(r)?r:[],a&&o?G(a):[])}return n.concat(r,G(r,[],o))}function gt(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function It(t){const n=V(t);let o=parseFloat(n.width)||0,i=parseFloat(n.height)||0;const r=$(t),l=r?t.offsetWidth:o,s=r?t.offsetHeight:i,a=it(o)!==l||it(i)!==s;return a&&(o=l,i=s),{width:o,height:i,$:a}}function wt(t){return N(t)?t:t.contextElement}function q(t){const n=wt(t);if(!$(n))return E(1);const o=n.getBoundingClientRect(),{width:i,height:r,$:l}=It(n);let s=(l?it(o.width):o.width)/i,a=(l?it(o.height):o.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const Fe=E(0);function jt(t){const n=D(t);return!vt()||!n.visualViewport?Fe:{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}}function Ne(t,n,o){return n===void 0&&(n=!1),!o||n&&o!==D(t)?!1:n}function H(t,n,o,i){n===void 0&&(n=!1),o===void 0&&(o=!1);const r=t.getBoundingClientRect(),l=wt(t);let s=E(1);n&&(i?N(i)&&(s=q(i)):s=q(t));const a=Ne(l,o,i)?jt(l):E(0);let u=(r.left+a.x)/s.x,h=(r.top+a.y)/s.y,m=r.width/s.x,f=r.height/s.y;if(l){const y=D(l),g=i&&N(i)?D(i):i;let b=y,w=gt(b);for(;w&&i&&g!==b;){const S=q(w),_=w.getBoundingClientRect(),O=V(w),L=_.left+(w.clientLeft+parseFloat(O.paddingLeft))*S.x,C=_.top+(w.clientTop+parseFloat(O.paddingTop))*S.y;u*=S.x,h*=S.y,m*=S.x,f*=S.y,u+=L,h+=C,b=D(w),w=gt(b)}}return st({width:m,height:f,x:u,y:h})}function pt(t,n){const o=ut(t).scrollLeft;return n?n.left+o:H(R(t)).left+o}function Mt(t,n){const o=t.getBoundingClientRect(),i=o.left+n.scrollLeft-pt(t,o),r=o.top+n.scrollTop;return{x:i,y:r}}function Ve(t){let{elements:n,rect:o,offsetParent:i,strategy:r}=t;const l=r==="fixed",s=R(i),a=n?ct(n.floating):!1;if(i===s||a&&l)return o;let u={scrollLeft:0,scrollTop:0},h=E(1);const m=E(0),f=$(i);if((f||!f&&!l)&&((X(i)!=="body"||Z(s))&&(u=ut(i)),$(i))){const g=H(i);h=q(i),m.x=g.x+i.clientLeft,m.y=g.y+i.clientTop}const y=s&&!f&&!l?Mt(s,u):E(0);return{width:o.width*h.x,height:o.height*h.y,x:o.x*h.x-u.scrollLeft*h.x+m.x+y.x,y:o.y*h.y-u.scrollTop*h.y+m.y+y.y}}function Ee(t){return Array.from(t.getClientRects())}function $e(t){const n=R(t),o=ut(t),i=t.ownerDocument.body,r=K(n.scrollWidth,n.clientWidth,i.scrollWidth,i.clientWidth),l=K(n.scrollHeight,n.clientHeight,i.scrollHeight,i.clientHeight);let s=-o.scrollLeft+pt(t);const a=-o.scrollTop;return V(i).direction==="rtl"&&(s+=K(n.clientWidth,i.clientWidth)-r),{width:r,height:l,x:s,y:a}}const Bt=25;function Re(t,n){const o=D(t),i=R(t),r=o.visualViewport;let l=i.clientWidth,s=i.clientHeight,a=0,u=0;if(r){l=r.width,s=r.height;const m=vt();(!m||m&&n==="fixed")&&(a=r.offsetLeft,u=r.offsetTop)}const h=pt(i);if(h<=0){const m=i.ownerDocument,f=m.body,y=getComputedStyle(f),g=m.compatMode==="CSS1Compat"&&parseFloat(y.marginLeft)+parseFloat(y.marginRight)||0,b=Math.abs(i.clientWidth-f.clientWidth-g);b<=Bt&&(l-=b)}else h<=Bt&&(l+=h);return{width:l,height:s,x:a,y:u}}const Ie=new Set(["absolute","fixed"]);function je(t,n){const o=H(t,!0,n==="fixed"),i=o.top+t.clientTop,r=o.left+t.clientLeft,l=$(t)?q(t):E(1),s=t.clientWidth*l.x,a=t.clientHeight*l.y,u=r*l.x,h=i*l.y;return{width:s,height:a,x:u,y:h}}function Pt(t,n,o){let i;if(n==="viewport")i=Re(t,o);else if(n==="document")i=$e(R(t));else if(N(n))i=je(n,o);else{const r=jt(t);i={x:n.x-r.x,y:n.y-r.y,width:n.width,height:n.height}}return st(i)}function zt(t,n){const o=M(t);return o===n||!N(o)||J(o)?!1:V(o).position==="fixed"||zt(o,n)}function Me(t,n){const o=n.get(t);if(o)return o;let i=G(t,[],!1).filter(a=>N(a)&&X(a)!=="body"),r=null;const l=V(t).position==="fixed";let s=l?M(t):t;for(;N(s)&&!J(s);){const a=V(s),u=bt(s);!u&&a.position==="fixed"&&(r=null),(l?!u&&!r:!u&&a.position==="static"&&r&&Ie.has(r.position)||Z(s)&&!u&&zt(t,s))?i=i.filter(h=>h!==s):r=a,s=M(s)}return n.set(t,i),i}function ze(t){let{element:n,boundary:o,rootBoundary:i,strategy:r}=t;const l=[...o==="clippingAncestors"?ct(n)?[]:Me(n,this._c):[].concat(o),i],s=l[0],a=l.reduce((u,h)=>{const m=Pt(n,h,r);return u.top=K(m.top,u.top),u.right=ot(m.right,u.right),u.bottom=ot(m.bottom,u.bottom),u.left=K(m.left,u.left),u},Pt(n,s,r));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function Ke(t){const{width:n,height:o}=It(t);return{width:n,height:o}}function He(t,n,o){const i=$(n),r=R(n),l=o==="fixed",s=H(t,!0,l,n);let a={scrollLeft:0,scrollTop:0};const u=E(0);function h(){u.x=pt(r)}if(i||!i&&!l)if((X(n)!=="body"||Z(r))&&(a=ut(n)),i){const g=H(n,!0,l,n);u.x=g.x+n.clientLeft,u.y=g.y+n.clientTop}else r&&h();l&&!i&&r&&h();const m=r&&!i&&!l?Mt(r,a):E(0),f=s.left+a.scrollLeft-u.x-m.x,y=s.top+a.scrollTop-u.y-m.y;return{x:f,y,width:s.width,height:s.height}}function dt(t){return V(t).position==="static"}function Tt(t,n){if(!$(t)||V(t).position==="fixed")return null;if(n)return n(t);let o=t.offsetParent;return R(t)===o&&(o=o.ownerDocument.body),o}function Kt(t,n){const o=D(t);if(ct(t))return o;if(!$(t)){let r=M(t);for(;r&&!J(r);){if(N(r)&&!dt(r))return r;r=M(r)}return o}let i=Tt(t,n);for(;i&&Ce(i)&&dt(i);)i=Tt(i,n);return i&&J(i)&&dt(i)&&!bt(i)?o:i||De(t)||o}const We=async function(t){const n=this.getOffsetParent||Kt,o=this.getDimensions,i=await o(t.floating);return{reference:He(t.reference,await n(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function qe(t){return V(t).direction==="rtl"}const Ue={convertOffsetParentRelativeRectToViewportRelativeRect:Ve,getDocumentElement:R,getClippingRect:ze,getOffsetParent:Kt,getElementRects:We,getClientRects:Ee,getDimensions:Ke,getScale:q,isElement:N,isRTL:qe};function Ht(t,n){return t.x===n.x&&t.y===n.y&&t.width===n.width&&t.height===n.height}function Je(t,n){let o=null,i;const r=R(t);function l(){var a;clearTimeout(i),(a=o)==null||a.disconnect(),o=null}function s(a,u){a===void 0&&(a=!1),u===void 0&&(u=1),l();const h=t.getBoundingClientRect(),{left:m,top:f,width:y,height:g}=h;if(a||n(),!y||!g)return;const b=nt(f),w=nt(r.clientWidth-(m+y)),S=nt(r.clientHeight-(f+g)),_=nt(m),O={rootMargin:-b+"px "+-w+"px "+-S+"px "+-_+"px",threshold:K(0,ot(1,u))||1};let L=!0;function C(A){const B=A[0].intersectionRatio;if(B!==u){if(!L)return s();B?s(!1,B):i=setTimeout(()=>{s(!1,1e-7)},1e3)}B===1&&!Ht(h,t.getBoundingClientRect())&&s(),L=!1}try{o=new IntersectionObserver(C,{...O,root:r.ownerDocument})}catch{o=new IntersectionObserver(C,O)}o.observe(t)}return s(!0),l}function Xe(t,n,o,i){i===void 0&&(i={});const{ancestorScroll:r=!0,ancestorResize:l=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:u=!1}=i,h=wt(t),m=r||l?[...h?G(h):[],...G(n)]:[];m.forEach(_=>{r&&_.addEventListener("scroll",o,{passive:!0}),l&&_.addEventListener("resize",o)});const f=h&&a?Je(h,o):null;let y=-1,g=null;s&&(g=new ResizeObserver(_=>{let[O]=_;O&&O.target===h&&g&&(g.unobserve(n),cancelAnimationFrame(y),y=requestAnimationFrame(()=>{var L;(L=g)==null||L.observe(n)})),o()}),h&&!u&&g.observe(h),g.observe(n));let b,w=u?H(t):null;u&&S();function S(){const _=H(t);w&&!Ht(w,_)&&o(),w=_,b=requestAnimationFrame(S)}return o(),()=>{var _;m.forEach(O=>{r&&O.removeEventListener("scroll",o),l&&O.removeEventListener("resize",o)}),f?.(),(_=g)==null||_.disconnect(),g=null,u&&cancelAnimationFrame(b)}}const Ye=xe,Ge=Se,Qe=ve,Ze=_e,tn=(t,n,o)=>{const i=new Map,r={platform:Ue,...o},l={...r.platform,_c:i};return be(t,n,{...r,platform:l})};var mt={exports:{}},en=mt.exports,Dt;function nn(){return Dt||(Dt=1,function(t,n){(function(o,i){t.exports=i()})(typeof self<"u"?self:en,function(){return(()=>{var o={646:s=>{s.exports=function(a){if(Array.isArray(a)){for(var u=0,h=new Array(a.length);u{s.exports=function(a,u,h){return u in a?Object.defineProperty(a,u,{value:h,enumerable:!0,configurable:!0,writable:!0}):a[u]=h,a}},860:s=>{s.exports=function(a){if(Symbol.iterator in Object(a)||Object.prototype.toString.call(a)==="[object Arguments]")return Array.from(a)}},206:s=>{s.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}},319:(s,a,u)=>{var h=u(646),m=u(860),f=u(206);s.exports=function(y){return h(y)||m(y)||f()}},8:s=>{function a(u){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?s.exports=a=function(h){return typeof h}:s.exports=a=function(h){return h&&typeof Symbol=="function"&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h},a(u)}s.exports=a}},i={};function r(s){var a=i[s];if(a!==void 0)return a.exports;var u=i[s]={exports:{}};return o[s](u,u.exports,r),u.exports}r.n=s=>{var a=s&&s.__esModule?()=>s.default:()=>s;return r.d(a,{a}),a},r.d=(s,a)=>{for(var u in a)r.o(a,u)&&!r.o(s,u)&&Object.defineProperty(s,u,{enumerable:!0,get:a[u]})},r.o=(s,a)=>Object.prototype.hasOwnProperty.call(s,a),r.r=s=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})};var l={};return(()=>{r.r(l),r.d(l,{VueSelect:()=>tt,default:()=>W,mixins:()=>Y});var s=r(319),a=r.n(s),u=r(8),h=r.n(u),m=r(713),f=r.n(m);const y={props:{autoscroll:{type:Boolean,default:!0}},watch:{typeAheadPointer:function(){this.autoscroll&&this.maybeAdjustScroll()},open:function(e){var c=this;this.autoscroll&&e&&this.$nextTick(function(){return c.maybeAdjustScroll()})}},methods:{maybeAdjustScroll:function(){var e,c=((e=this.$refs.dropdownMenu)===null||e===void 0?void 0:e.children[this.typeAheadPointer])||!1;if(c){var p=this.getDropdownViewport(),d=c.getBoundingClientRect(),v=d.top,x=d.bottom,T=d.height;if(vp.bottom)return this.$refs.dropdownMenu.scrollTop=c.offsetTop-(p.height-T)}},getDropdownViewport:function(){return this.$refs.dropdownMenu?this.$refs.dropdownMenu.getBoundingClientRect():{height:0,top:0,bottom:0}}}},g={data:function(){return{typeAheadPointer:-1}},watch:{filteredOptions:function(){if(this.resetFocusOnOptionsChange){for(var e=0;e=0;e--)if(this.selectable(this.filteredOptions[e])){this.typeAheadPointer=e;break}},typeAheadDown:function(){for(var e=this.typeAheadPointer+1;e0&&arguments[0]!==void 0?arguments[0]:null;return this.mutableLoading=e??!this.mutableLoading}}};function w(e,c,p,d,v,x,T,k){var F,P=typeof e=="function"?e.options:e;return c&&(P.render=c,P.staticRenderFns=p,P._compiled=!0),{exports:e,options:P}}const S={Deselect:w({},function(){var e=this.$createElement,c=this._self._c||e;return c("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10"}},[c("path",{attrs:{d:"M6.895455 5l2.842897-2.842898c.348864-.348863.348864-.914488 0-1.263636L9.106534.261648c-.348864-.348864-.914489-.348864-1.263636 0L5 3.104545 2.157102.261648c-.348863-.348864-.914488-.348864-1.263636 0L.261648.893466c-.348864.348864-.348864.914489 0 1.263636L3.104545 5 .261648 7.842898c-.348864.348863-.348864.914488 0 1.263636l.631818.631818c.348864.348864.914773.348864 1.263636 0L5 6.895455l2.842898 2.842897c.348863.348864.914772.348864 1.263636 0l.631818-.631818c.348864-.348864.348864-.914489 0-1.263636L6.895455 5z"}})])},[]).exports,OpenIndicator:w({},function(){var e=this.$createElement,c=this._self._c||e;return c("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"10"}},[c("path",{attrs:{d:"M9.211364 7.59931l4.48338-4.867229c.407008-.441854.407008-1.158247 0-1.60046l-.73712-.80023c-.407008-.441854-1.066904-.441854-1.474243 0L7 5.198617 2.51662.33139c-.407008-.441853-1.066904-.441853-1.474243 0l-.737121.80023c-.407008.441854-.407008 1.158248 0 1.600461l4.48338 4.867228L7 10l2.211364-2.40069z"}})])},[]).exports},_={inserted:function(e,c,p){var d=p.context;if(d.appendToBody){document.body.appendChild(e);var v=d.$refs.toggle.getBoundingClientRect(),x=v.height,T=v.top,k=v.left,F=v.width,P=window.scrollX||window.pageXOffset,ht=window.scrollY||window.pageYOffset;e.unbindPosition=d.calculatePosition(e,d,{width:F+"px",left:P+k+"px",top:ht+T+x+"px"})}},unbind:function(e,c,p){p.context.appendToBody&&(e.unbindPosition&&typeof e.unbindPosition=="function"&&e.unbindPosition(),e.parentNode&&e.parentNode.removeChild(e))}},O=function(e){var c={};return Object.keys(e).sort().forEach(function(p){c[p]=e[p]}),JSON.stringify(c)};var L=0;const C=function(){return++L};function A(e,c){var p=Object.keys(e);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(e);c&&(d=d.filter(function(v){return Object.getOwnPropertyDescriptor(e,v).enumerable})),p.push.apply(p,d)}return p}function B(e){for(var c=1;c-1}},filter:{type:Function,default:function(e,c){var p=this;return e.filter(function(d){var v=p.getOptionLabel(d);return typeof v=="number"&&(v=v.toString()),p.filterBy(d,v,c)})}},createOption:{type:Function,default:function(e){return h()(this.optionList[0])==="object"?f()({},this.label,e):e}},resetFocusOnOptionsChange:{type:Boolean,default:!0},resetOnOptionsChange:{default:!1,validator:function(e){return["function","boolean"].includes(h()(e))}},clearSearchOnBlur:{type:Function,default:function(e){var c=e.clearSearchOnSelect,p=e.multiple;return c&&!p}},noDrop:{type:Boolean,default:!1},inputId:{type:String},dir:{type:String,default:"auto"},selectOnTab:{type:Boolean,default:!1},selectOnKeyCodes:{type:Array,default:function(){return[13]}},searchInputQuerySelector:{type:String,default:"[type=search]"},mapKeydown:{type:Function,default:function(e,c){return e}},appendToBody:{type:Boolean,default:!1},calculatePosition:{type:Function,default:function(e,c,p){var d=p.width,v=p.top,x=p.left;e.style.top=v,e.style.left=x,e.style.width=d}},dropdownShouldOpen:{type:Function,default:function(e){var c=e.noDrop,p=e.open,d=e.mutableLoading;return!c&&p&&!d}},keyboardFocusBorder:{type:Boolean,default:!1},uid:{type:[String,Number],default:function(){return C()}}},data:function(){return{search:"",open:!1,isComposing:!1,isKeyboardNavigation:!1,pushedTags:[],_value:[]}},computed:{isTrackingValues:function(){return this.value===void 0||this.$options.propsData.hasOwnProperty("reduce")},selectedValue:function(){var e=this.value;return this.isTrackingValues&&(e=this.$data._value),e!=null&&e!==""?[].concat(e):[]},optionList:function(){return this.options.concat(this.pushTags?this.pushedTags:[])},searchEl:function(){return this.$scopedSlots.search?this.$refs.selectedOptions.querySelector(this.searchInputQuerySelector):this.$refs.search},scope:function(){var e=this,c={search:this.search,loading:this.loading,searching:this.searching,filteredOptions:this.filteredOptions};return{search:{attributes:B({id:this.inputId,disabled:this.disabled,placeholder:this.searchPlaceholder,tabindex:this.tabindex,readonly:!this.searchable,role:"combobox","aria-autocomplete":"list","aria-label":this.ariaLabelCombobox,"aria-controls":"vs-".concat(this.uid,"__listbox"),"aria-owns":"vs-".concat(this.uid,"__listbox"),"aria-expanded":this.dropdownOpen.toString(),ref:"search",type:"search",autocomplete:this.autocomplete,value:this.search},this.dropdownOpen&&this.filteredOptions[this.typeAheadPointer]?{"aria-activedescendant":"vs-".concat(this.uid,"__option-").concat(this.typeAheadPointer)}:{}),events:{compositionstart:function(){return e.isComposing=!0},compositionend:function(){return e.isComposing=!1},keydown:this.onSearchKeyDown,keypress:this.onSearchKeyPress,blur:this.onSearchBlur,focus:this.onSearchFocus,input:function(p){return e.search=p.target.value}}},spinner:{loading:this.mutableLoading},noOptions:{search:this.search,loading:this.mutableLoading,searching:this.searching},openIndicator:{attributes:{ref:"openIndicator",role:"presentation",class:"vs__open-indicator"}},listHeader:c,listFooter:c,header:B({},c,{deselect:this.deselect}),footer:B({},c,{deselect:this.deselect})}},childComponents:function(){return B({},S,{},this.components)},stateClasses:function(){return{"vs--open":this.dropdownOpen,"vs--single":!this.multiple,"vs--multiple":this.multiple,"vs--searching":this.searching&&!this.noDrop,"vs--searchable":this.searchable&&!this.noDrop,"vs--unsearchable":!this.searchable,"vs--loading":this.mutableLoading,"vs--disabled":this.disabled}},searching:function(){return!!this.search},dropdownOpen:function(){return this.dropdownShouldOpen(this)},searchPlaceholder:function(){return this.isValueEmpty&&this.placeholder?this.placeholder:void 0},filteredOptions:function(){var e=this,c=function(x){return e.limit!==null?x.slice(0,e.limit):x},p=[].concat(this.optionList);if(!this.filterable&&!this.taggable)return c(p);var d=this.search.length?this.filter(p,this.search,this):p;if(this.taggable&&this.search.length)try{var v=this.createOption(this.search);this.optionExists(v)||d.unshift(v)}catch{}return c(d)},isValueEmpty:function(){return this.selectedValue.length===0},showClearButton:function(){return!this.multiple&&this.clearable&&!this.open&&!this.isValueEmpty}},watch:{options:function(e,c){var p=this;!this.taggable&&(typeof p.resetOnOptionsChange=="function"?p.resetOnOptionsChange(e,c,p.selectedValue):p.resetOnOptionsChange)&&this.clearSelection(),this.value&&this.isTrackingValues&&this.setInternalValueFromOptions(this.value)},value:{immediate:!0,handler:function(e){this.isTrackingValues&&this.setInternalValueFromOptions(e)}},multiple:function(){this.clearSelection()},open:function(e){this.$emit(e?"open":"close")},search:function(e){e.length&&(this.open=!0)}},created:function(){this.mutableLoading=this.loading,this.$on("option:created",this.pushTag)},methods:{setInternalValueFromOptions:function(e){var c=this;Array.isArray(e)?this.$data._value=e.map(function(p){return c.findOptionFromReducedValue(p)}):this.$data._value=this.findOptionFromReducedValue(e)},select:function(e){this.$emit("option:selecting",e),this.isOptionSelected(e)?this.deselectFromDropdown&&(this.clearable||this.multiple&&this.selectedValue.length>1)&&this.deselect(e):(this.taggable&&!this.optionExists(e)&&this.$emit("option:created",e),this.multiple&&(e=this.selectedValue.concat(e)),this.updateValue(e),this.$emit("option:selected",e)),this.onAfterSelect(e)},deselect:function(e){var c=this;this.$emit("option:deselecting",e),this.updateValue(this.selectedValue.filter(function(p){return!c.optionComparator(p,e)})),this.$emit("option:deselected",e)},keyboardDeselect:function(e,c){var p,d;this.deselect(e);var v=(p=this.$refs.deselectButtons)===null||p===void 0?void 0:p[c+1],x=(d=this.$refs.deselectButtons)===null||d===void 0?void 0:d[c-1],T=v??x;T?T.focus():this.searchEl.focus()},clearSelection:function(){this.updateValue(this.multiple?[]:null),this.searchEl.focus()},onAfterSelect:function(e){var c=this;this.closeOnSelect&&(this.open=!this.open),this.clearSearchOnSelect&&(this.search=""),this.noDrop&&this.multiple&&this.$nextTick(function(){return c.$refs.search.focus()})},updateValue:function(e){var c=this;this.value===void 0&&(this.$data._value=e),e!==null&&(e=Array.isArray(e)?e.map(function(p){return c.reduce(p)}):this.reduce(e)),this.$emit("input",e)},toggleDropdown:function(e){var c=e.target!==this.searchEl;c&&e.preventDefault();var p=[].concat(a()(this.$refs.deselectButtons||[]),a()([this.$refs.clearButton]));this.searchEl===void 0||p.filter(Boolean).some(function(d){return d.contains(e.target)||d===e.target})?e.preventDefault():this.open&&c?this.searchEl.blur():this.disabled||(this.open=!0,this.searchEl.focus())},isOptionSelected:function(e){var c=this;return this.selectedValue.some(function(p){return c.optionComparator(p,e)})},isOptionDeselectable:function(e){return this.isOptionSelected(e)&&this.deselectFromDropdown},hasKeyboardFocusBorder:function(e){return!(!this.keyboardFocusBorder||!this.isKeyboardNavigation)&&e===this.typeAheadPointer},optionComparator:function(e,c){return this.getOptionKey(e)===this.getOptionKey(c)},findOptionFromReducedValue:function(e){var c=this,p=[].concat(a()(this.options),a()(this.pushedTags)).filter(function(d){return JSON.stringify(c.reduce(d))===JSON.stringify(e)});return p.length===1?p[0]:p.find(function(d){return c.optionComparator(d,c.$data._value)})||e},closeSearchOptions:function(){this.open=!1,this.$emit("search:blur")},maybeDeleteValue:function(){if(!this.searchEl.value.length&&this.selectedValue&&this.selectedValue.length&&this.clearable){var e=null;this.multiple&&(e=a()(this.selectedValue.slice(0,this.selectedValue.length-1))),this.updateValue(e)}},optionExists:function(e){var c=this;return this.optionList.some(function(p){return c.optionComparator(p,e)})},optionAriaSelected:function(e){return this.selectable(e)?String(this.isOptionSelected(e)):null},normalizeOptionForSlot:function(e){return h()(e)==="object"?e:f()({},this.label,e)},pushTag:function(e){this.pushedTags.push(e)},onEscape:function(){this.search.length?this.search="":this.open=!1},onSearchBlur:function(){if(!this.mousedown||this.searching){var e=this.clearSearchOnSelect,c=this.multiple;return this.clearSearchOnBlur({clearSearchOnSelect:e,multiple:c})&&(this.search=""),void this.closeSearchOptions()}this.mousedown=!1,this.search.length!==0||this.options.length!==0||this.closeSearchOptions()},onSearchFocus:function(){this.open=!0,this.$emit("search:focus")},onMousedown:function(){this.mousedown=!0},onMouseUp:function(){this.mousedown=!1},onMouseMove:function(e,c){this.isKeyboardNavigation=!1,this.selectable(e)&&(this.typeAheadPointer=c)},onSearchKeyDown:function(e){var c=this,p=function(x){if(x.preventDefault(),c.open)return!c.isComposing&&c.typeAheadSelect();c.open=!0},d={8:function(x){return c.maybeDeleteValue()},9:function(x){return c.onTab()},27:function(x){return c.onEscape()},38:function(x){if(x.preventDefault(),c.isKeyboardNavigation=!0,c.open)return c.typeAheadUp();c.open=!0},40:function(x){if(x.preventDefault(),c.isKeyboardNavigation=!0,c.open)return c.typeAheadDown();c.open=!0}};this.selectOnKeyCodes.forEach(function(x){return d[x]=p});var v=this.mapKeydown(d,this);if(typeof v[e.keyCode]=="function")return v[e.keyCode](e)},onSearchKeyPress:function(e){this.open||e.keyCode!==32||(e.preventDefault(),this.open=!0)}}},function(){var e=this,c=e.$createElement,p=e._self._c||c;return p("div",{staticClass:"v-select",class:e.stateClasses,attrs:{id:"v-select-"+e.uid,dir:e.dir}},[e._t("header",null,null,e.scope.header),e._v(" "),p("div",{ref:"toggle",staticClass:"vs__dropdown-toggle"},[p("div",{ref:"selectedOptions",staticClass:"vs__selected-options",on:{mousedown:e.toggleDropdown}},[e._l(e.selectedValue,function(d,v){return e._t("selected-option-container",[p("span",{key:e.getOptionKey(d),staticClass:"vs__selected"},[e._t("selected-option",[e._v(` `+e._s(e.getOptionLabel(d))+` `)],null,e.normalizeOptionForSlot(d)),e._v(" "),e.multiple?p("button",{ref:"deselectButtons",refInFor:!0,staticClass:"vs__deselect",attrs:{disabled:e.disabled,type:"button",title:e.ariaLabelDeselectOption(e.getOptionLabel(d)),"aria-label":e.ariaLabelDeselectOption(e.getOptionLabel(d))},on:{mousedown:function(x){return x.stopPropagation(),e.deselect(d)},keydown:function(x){return!x.type.indexOf("key")&&e._k(x.keyCode,"enter",13,x.key,"Enter")?null:e.keyboardDeselect(d,v)}}},[p(e.childComponents.Deselect,{tag:"component"})],1):e._e()],2)],{option:e.normalizeOptionForSlot(d),deselect:e.deselect,multiple:e.multiple,disabled:e.disabled})}),e._v(" "),e._t("search",[p("input",e._g(e._b({staticClass:"vs__search"},"input",e.scope.search.attributes,!1),e.scope.search.events))],null,e.scope.search)],2),e._v(" "),p("div",{ref:"actions",staticClass:"vs__actions"},[p("button",{directives:[{name:"show",rawName:"v-show",value:e.showClearButton,expression:"showClearButton"}],ref:"clearButton",staticClass:"vs__clear",attrs:{disabled:e.disabled,type:"button",title:e.ariaLabelClearSelected,"aria-label":e.ariaLabelClearSelected},on:{click:e.clearSelection}},[p(e.childComponents.Deselect,{tag:"component"})],1),e._v(" "),e.noDrop?e._e():p("button",{ref:"openIndicatorButton",staticClass:"vs__open-indicator-button",attrs:{type:"button",tabindex:"-1","aria-labelledby":"vs-"+e.uid+"__listbox","aria-controls":"vs-"+e.uid+"__listbox","aria-expanded":e.dropdownOpen.toString()},on:{mousedown:e.toggleDropdown}},[e._t("open-indicator",[p(e.childComponents.OpenIndicator,e._b({tag:"component"},"component",e.scope.openIndicator.attributes,!1))],null,e.scope.openIndicator)],2),e._v(" "),e._t("spinner",[p("div",{directives:[{name:"show",rawName:"v-show",value:e.mutableLoading,expression:"mutableLoading"}],staticClass:"vs__spinner"},[e._v("Loading...")])],null,e.scope.spinner)],2)]),e._v(" "),p("transition",{attrs:{name:e.transition}},[e.dropdownOpen?p("ul",{directives:[{name:"append-to-body",rawName:"v-append-to-body"}],key:"vs-"+e.uid+"__listbox",ref:"dropdownMenu",staticClass:"vs__dropdown-menu",attrs:{id:"vs-"+e.uid+"__listbox",role:"listbox","aria-label":e.ariaLabelListbox,"aria-multiselectable":e.multiple,tabindex:"-1"},on:{mousedown:function(d){return d.preventDefault(),e.onMousedown(d)},mouseup:e.onMouseUp}},[e._t("list-header",null,null,e.scope.listHeader),e._v(" "),e._l(e.filteredOptions,function(d,v){return p("li",{key:e.getOptionKey(d),staticClass:"vs__dropdown-option",class:{"vs__dropdown-option--deselect":e.isOptionDeselectable(d)&&v===e.typeAheadPointer,"vs__dropdown-option--selected":e.isOptionSelected(d),"vs__dropdown-option--highlight":v===e.typeAheadPointer,"vs__dropdown-option--kb-focus":e.hasKeyboardFocusBorder(v),"vs__dropdown-option--disabled":!e.selectable(d)},attrs:{id:"vs-"+e.uid+"__option-"+v,role:"option","aria-selected":e.optionAriaSelected(d)},on:{mousemove:function(x){return e.onMouseMove(d,v)},click:function(x){x.preventDefault(),x.stopPropagation(),e.selectable(d)&&e.select(d)}}},[e._t("option",[e._v(` `+e._s(e.getOptionLabel(d))+` `)],null,e.normalizeOptionForSlot(d))],2)}),e._v(" "),e.filteredOptions.length===0?p("li",{staticClass:"vs__no-options"},[e._t("no-options",[e._v(` Sorry, no matching options. `)],null,e.scope.noOptions)],2):e._e(),e._v(" "),e._t("list-footer",null,null,e.scope.listFooter)],2):p("ul",{staticStyle:{display:"none",visibility:"hidden"},attrs:{id:"vs-"+e.uid+"__listbox",role:"listbox","aria-label":e.ariaLabelListbox}})]),e._v(" "),e._t("footer",null,null,e.scope.footer)],2)},[]).exports,Y={ajax:b,pointer:g,pointerScroll:y},W=tt})(),l})()})}(mt)),mt.exports}var z=nn();function Wt(t,n){const o=[];let i=0,r=t.toLowerCase().indexOf(n.toLowerCase(),i),l=0;for(;r>-1&&l[]}},computed:{ranges(){let t=[];return!this.search&&this.highlight.length===0||(this.highlight.length>0?t=this.highlight:t=Wt(this.text,this.search),t.forEach((n,o)=>{n.end(o.start0&&n.push({start:o.start<0?0:o.start,end:o.end>this.text.length?this.text.length:o.end}),n),[]),t.sort((n,o)=>n.start-o.start),t=t.reduce((n,o)=>{if(!n.length)n.push(o);else{const i=n.length-1;n[i].end>=o.start?n[i]={start:n[i].start,end:Math.max(n[i].end,o.end)}:n.push(o)}return n},[])),t},chunks(){if(this.ranges.length===0)return[{start:0,end:this.text.length,highlight:!1,text:this.text}];const t=[];let n=0,o=0;for(;n=this.ranges.length&&nn.highlight?t("strong",{},n.text):n.text)):t("span",{},this.text)}},rn=null,sn=null;var an=Q(on,rn,sn,!1,null,null);const qt=an.exports,ln={name:"NcEllipsisedOption",components:{NcHighlight:qt},props:{name:{type:String,default:""},search:{type:String,default:""}},computed:{needsTruncate(){return this.name&&this.name.length>=10},split(){return this.name.length-Math.min(Math.floor(this.name.length/2),10)},part1(){return this.needsTruncate?this.name.slice(0,this.split):this.name},part2(){return this.needsTruncate?this.name.slice(this.split):""},highlight1(){return this.search?Wt(this.name,this.search):[]},highlight2(){return this.highlight1.map(t=>({start:t.start-this.split,end:t.end-this.split}))}}};var cn=function(){var t=this,n=t._self._c;return n("span",{staticClass:"name-parts",attrs:{dir:"auto",title:t.name}},[n("NcHighlight",{staticClass:"name-parts__first",attrs:{text:t.part1,search:t.search,highlight:t.highlight1}}),t.part2?n("NcHighlight",{staticClass:"name-parts__last",attrs:{text:t.part2,search:t.search,highlight:t.highlight2}}):t._e()],1)},un=[],pn=Q(ln,cn,un,!1,null,"592b8444");const hn=pn.exports,dn=8,kt=32,fn={name:"NcListItemIcon",components:{NcAvatar:ee,NcHighlight:qt,NcIconSvgWrapper:Ut},mixins:[te],props:{name:{type:String,required:!0},subname:{type:String,default:""},icon:{type:String,default:""},iconSvg:{type:String,default:""},iconName:{type:String,default:""},search:{type:String,default:""},avatarSize:{type:Number,default:kt},noMargin:{type:Boolean,default:!1},displayName:{type:String,default:null},isNoUser:{type:Boolean,default:!1},id:{type:String,default:null}},setup(){return{margin:dn,defaultSize:kt}},computed:{hasIcon(){return this.icon!==""},hasIconSvg(){return this.iconSvg!==""},isValidSubname(){return this.subname?.trim?.()!==""},isSizeBigEnough(){return this.avatarSize>=26},cssVars(){const t=this.noMargin?0:this.margin;return{"--height":this.avatarSize+2*t+"px","--margin":this.margin+"px"}},searchParts(){const t=/^([^<]*)<([^>]+)>?$/,n=this.search.match(t);return this.isNoUser||!n?[this.search,this.search]:[n[1].trim(),n[2]]}},beforeMount(){!this.isNoUser&&!this.subname&&this.fetchUserStatus(this.user)}};var gn=function(){var t=this,n=t._self._c;return n("span",t._g({staticClass:"option",class:{"option--compact":t.avatarSize({...t,...n.props}),{}),ariaLabelClearSelected:{type:String,default:et("Clear selected")},ariaLabelCombobox:{type:String,default:null},ariaLabelListbox:{type:String,default:et("Options")},ariaLabelDeselectOption:{type:Function,default:t=>et("Deselect {option}",{option:t})},appendToBody:{type:Boolean,default:!0},calculatePosition:{type:Function,default:null},closeOnSelect:{type:Boolean,default:!0},keepOpen:{type:Boolean,default:!1},components:{type:Object,default:()=>({Deselect:{render:t=>t(Qt,{props:{size:20,fillColor:"var(--vs-controls-color)"},style:{cursor:"pointer"}})}})},limit:{type:Number,default:null},disabled:{type:Boolean,default:!1},dropdownShouldOpen:{type:Function,default:({noDrop:t,open:n})=>t?!1:n},filterBy:{type:Function,default:null},inputClass:{type:[String,Object],default:null},inputId:{type:String,default:()=>`select-input-${St()}`},inputLabel:{type:String,default:null},labelOutside:{type:Boolean,default:!1},keyboardFocusBorder:{type:Boolean,default:!0},label:{type:String,default:null},loading:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},noWrap:{type:Boolean,default:!1},options:{type:Array,default:()=>[]},placeholder:{type:String,default:""},mapKeydown:{type:Function,default(t,n){return{...t,27:o=>{n.open&&o.stopPropagation(),t[27](o)}}}},uid:{type:String,default:()=>St()},placement:{type:String,default:"bottom"},resetFocusOnOptionsChange:{type:Boolean,default:!0},userSelect:{type:Boolean,default:!1},value:{type:[String,Number,Object,Array],default:void 0},modelValue:{type:[String,Number,Object,Array],default:null},required:{type:Boolean,default:!1}," ":{}},emits:[" ","input","update:modelValue","update:model-value"],setup(){const t=Number.parseInt(window.getComputedStyle(document.body).getPropertyValue("--default-clickable-area")),n=Number.parseInt(window.getComputedStyle(document.body).getPropertyValue("--default-grid-baseline")),o=t-2*n,i=Zt("value","input");return{avatarSize:o,model:i}},data(){return{search:""}},computed:{inputRequired(){return this.required?this.model===null||Array.isArray(this.model)&&this.model.length===0:null},localCalculatePosition(){return this.calculatePosition!==null?this.calculatePosition:(t,n,{width:o})=>{t.style.width=o;const i={name:"addClass",fn(){return t.classList.add("vs__dropdown-menu--floating"),{}}},r={name:"togglePlacementClass",fn({placement:s}){return n.$el.classList.toggle("select--drop-up",s==="top"),t.classList.toggle("vs__dropdown-menu--floating-placement-top",s==="top"),{}}},l=()=>{tn(n.$refs.toggle,t,{placement:this.placement,middleware:[Ye(-1),i,r,Qe(),Ge({limiter:Ze()})]}).then(({x:s,y:a})=>{Object.assign(t.style,{left:`${s}px`,top:`${a}px`,width:`${n.$refs.toggle.getBoundingClientRect().width}px`})})};return Xe(n.$refs.toggle,t,l)}},localFilterBy(){const t=/[^<]*<([^>]+)/;return this.filterBy!==null?this.filterBy:this.userSelect?(n,o,i)=>{const r=i.match(t);return r&&n.subname?.toLocaleLowerCase?.()?.indexOf(r[1].toLocaleLowerCase())>-1||`${o} ${n.subname}`.toLocaleLowerCase().indexOf(i.toLocaleLowerCase())>-1}:z.VueSelect.props.filterBy.default},localLabel(){return this.label!==null?this.label:this.userSelect?"displayName":z.VueSelect.props.label.default},propsToForward(){const t=[...Object.keys(z.VueSelect.props),...z.VueSelect.mixins.flatMap(n=>Object.keys(n.props??{}))];return{...Object.fromEntries(Object.entries(this.$props).filter(([n])=>t.includes(n))),value:this.model,calculatePosition:this.localCalculatePosition,closeOnSelect:this.closeOnSelect&&!this.keepOpen,filterBy:this.localFilterBy,label:this.localLabel}},listenersToForward(){return{...this.$listeners,input:t=>{this.model=t}}}},mounted(){!this.labelOutside&&!this.inputLabel&&!this.ariaLabelCombobox&&xt.util.warn("[NcSelect] An `inputLabel` or `ariaLabelCombobox` should be set. If an external label is used, `labelOutside` should be set to `true`."),this.inputLabel&&this.ariaLabelCombobox&&xt.util.warn("[NcSelect] Only one of `inputLabel` or `ariaLabelCombobox` should to be set.")},methods:{t:et}};var wn=function(){var t=this,n=t._self._c;return n("VueSelect",t._g(t._b({staticClass:"select",class:{"select--no-wrap":t.noWrap,"user-select":t.userSelect},on:{search:o=>t.search=o},scopedSlots:t._u([!t.labelOutside&&t.inputLabel?{key:"header",fn:function(){return[n("label",{staticClass:"select__label",attrs:{for:t.inputId}},[t._v(" "+t._s(t.inputLabel)+" ")])]},proxy:!0}:null,{key:"search",fn:function({attributes:o,events:i}){return[n("input",t._g(t._b({staticClass:"vs__search",class:t.inputClass,attrs:{required:t.inputRequired,dir:"auto"}},"input",o,!1),i))]}},{key:"open-indicator",fn:function({attributes:o}){return[n("ChevronDown",t._b({style:{cursor:t.disabled?null:"pointer"},attrs:{"fill-color":"var(--vs-controls-color)",size:26}},"ChevronDown",o,!1))]}},{key:"option",fn:function(o){return[t._t("option",function(){return[t.userSelect?n("NcListItemIcon",t._b({attrs:{"avatar-size":32,name:o[t.localLabel],search:t.search}},"NcListItemIcon",o,!1)):n("NcEllipsisedOption",{attrs:{name:String(o[t.localLabel]),search:t.search}})]},null,o)]}},{key:"selected-option",fn:function(o){return[t._t("selected-option",function(){return[t.userSelect?n("NcListItemIcon",t._b({attrs:{"avatar-size":t.avatarSize,name:o[t.localLabel],"no-margin":"",search:t.search}},"NcListItemIcon",o,!1)):n("NcEllipsisedOption",{attrs:{name:String(o[t.localLabel]),search:t.search}})]},{vBind:o})]}},{key:"spinner",fn:function(o){return[o.loading?n("NcLoadingIcon"):t._e()]}},{key:"no-options",fn:function(){return[t._v(" "+t._s(t.t("No results"))+" ")]},proxy:!0},t._l(t.$scopedSlots,function(o,i){return{key:i,fn:function(r){return[t._t(i,null,null,r)]}}})],null,!0)},"VueSelect",t.propsToForward,!1),t.listenersToForward))},xn=[],Sn=Q(vn,wn,xn,!1,null,null);const An=Sn.exports;export{se as C,An as N,bn as a}; //# sourceMappingURL=NcSelect-DTniMiUS-DT0HbKa6.chunk.mjs.map