UNPKG

@ownclouders/design-system

Version:

ownCloud Design System is based on VueDesign Systems and is used to design ownCloud UI components

5 lines 112 kB
"use strict";var St=Object.create;var Be=Object.defineProperty;var Vt=Object.getOwnPropertyDescriptor;var Et=Object.getOwnPropertyNames;var Dt=Object.getPrototypeOf,Nt=Object.prototype.hasOwnProperty;var Tt=(t,n,a,s)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of Et(n))!Nt.call(t,o)&&o!==a&&Be(t,o,{get:()=>n[o],enumerable:!(s=Vt(n,o))||s.enumerable});return t};var xe=(t,n,a)=>(a=t!=null?St(Dt(t)):{},Tt(n||!t||!t.__esModule?Be(a,"default",{value:t,enumerable:!0}):a,t));const e=require("vue"),v=require("./uniqueId-GHSwq4U3.cjs"),Lt=require("vue-inline-svg"),I=require("vue3-gettext"),ae=require("tippy.js"),zt=require("@popperjs/core"),Mt=require("deepmerge"),Pt=require("lodash-es"),at=require("focus-trap-vue"),$e=require("luxon"),It=require("fuse.js"),At=require("./index-DgRHrSdS.cjs"),E=e.defineComponent({name:"OcIcon",status:"ready",release:"1.0.0",__name:"OcIcon",props:{name:{default:"info"},fillType:{default:"fill"},accessibleLabel:{default:""},type:{default:"span"},size:{default:"medium"},variation:{default:"passive"},color:{default:""}},emits:["loaded"],setup(t){function n(l){return s(v.getSizeClass(l))}function a(l){return s(l)}function s(l){if(l!==null)return`oc-icon-${l}`}function o(l){if(t.accessibleLabel!==""){const u=document.createElement("title");u.setAttribute("id",e.unref(i)),u.appendChild(document.createTextNode(t.accessibleLabel)),l.insertBefore(u,l.firstChild)}return l}const i=e.computed(()=>v.uniqueId("oc-icon-title-")),r=e.computed(()=>{const l="icons/";return t.fillType.toLowerCase()==="none"?`${l}${t.name}.svg`:`${l}${t.name}-${t.fillType.toLowerCase()}.svg`});return(l,u)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.type),{class:e.normalizeClass([{"oc-button-reset":t.type==="button"},"oc-icon",n(t.size),a(t.variation)])},{default:e.withCtx(()=>[e.createVNode(e.unref(Lt),{src:r.value,"transform-source":o,"aria-hidden":t.accessibleLabel===""?"true":null,"aria-labelledby":t.accessibleLabel===""?null:i.value,focusable:t.accessibleLabel===""?"false":null,style:e.normalizeStyle(t.color!==""?{fill:t.color}:{}),onLoaded:u[0]||(u[0]=c=>l.$emit("loaded"))},null,8,["src","aria-hidden","aria-labelledby","focusable","style"])]),_:1},8,["class"]))}}),oe=e.defineComponent({name:"OcApplicationIcon",components:{OcIcon:E},status:"ready",release:"15.0.0",__name:"OcApplicationIcon",props:{icon:{},colorPrimary:{default:""},colorSecondary:{default:""}},setup(t){const n=e.computed(()=>"rgba(255,255,255,0.7)"),a=(c,b)=>`linear-gradient(90deg, ${c} 0%, ${b} 100%)`,s=e.computed(()=>v.getHexFromCssVar(t.colorPrimary)),o=e.computed(()=>v.getHexFromCssVar(t.colorSecondary)),i=e.computed(()=>!!t.colorPrimary),r=e.computed(()=>!!t.colorSecondary),l=e.computed(()=>{const c=v.generateHashedColorForString(t.icon);return v.rgbToHex(v.setDesiredContrastRatio(v.hexToRgb(c),v.hexToRgb("#ffffff"),4))}),u=e.computed(()=>{const c=e.unref(i)?e.unref(s):e.unref(l),b=e.unref(r)?e.unref(o):v.calculateShadeColor(v.hexToRgb(c),40),S=v.calculateShadeColor(v.hexToRgb(c),-25),V=v.calculateShadeColor(v.hexToRgb(c),45);return{background:a(c,b),boxShadow:`inset ${V} 0px 0px 1px 0px,${S} 0px 0px 1px 0px`}});return(c,b)=>(e.openBlock(),e.createElementBlock("div",{class:"oc-application-icon oc-flex-inline oc-flex-middle oc-flex-center",style:e.normalizeStyle(u.value)},[e.createVNode(E,{name:t.icon,color:n.value,size:"medium"},null,8,["name","color"])],4))}}),Oe={};typeof Oe=="function"&&Oe(oe);const Ft=["src","alt","aria-hidden","title","loading"],W=e.defineComponent({name:"OcImg",status:"ready",release:"1.0.0",__name:"OcImage",props:{src:{default:null},alt:{default:""},title:{default:null},loadingType:{default:"eager"}},setup(t){const n=e.computed(()=>t.alt.length===0);return(a,s)=>(e.openBlock(),e.createElementBlock("img",{src:t.src,alt:t.alt,"aria-hidden":`${n.value}`,title:t.title,loading:t.loadingType},null,8,Ft))}}),Rt=t=>t.split(/[ -]/).map(n=>n.replace(/[^\p{L}\p{Nd}]/giu,"")).filter(Boolean).map(n=>n.charAt(0)).slice(0,3).join("").toUpperCase(),Ht=["width","aria-label","aria-hidden","focusable","role","data-test-user-name"],jt={key:1,class:"avatarInitials"},j=e.defineComponent({name:"OcAvatar",status:"ready",release:"1.0.0",__name:"OcAvatar",props:{src:{default:""},userName:{default:""},accessibleLabel:{default:""},width:{default:50}},setup(t){const n=["#b82015","#c21c53","#9C27B0","#673AB7","#3F51B5","#106892","#055c68","#208377","#1a761d","#476e1a","#636d0b","#8e5c11","#795548","#465a64"],a=e.ref(!1);function s(){a.value=!0}function o(c,b){return b[c%b.length]}const i=e.computed(()=>e.unref(r)?"":e.unref(o(e.unref(t.userName).length,e.unref(n)))),r=e.computed(()=>!e.unref(a)&&!!e.unref(t.src)),l=e.computed(()=>{const c={width:`${e.unref(t.width)}px`,height:`${e.unref(t.width)}px`,lineHeight:`${e.unref(t.width)}px`},b={backgroundColor:e.unref(i),fontSize:`${Math.floor(e.unref(t.width)/2.5)}px`,fontFamily:"Helvetica, Arial, sans-serif",color:"white"};return Object.assign(c,b),c}),u=e.computed(()=>e.unref(r)?"":Rt(e.unref(t.userName)));return(c,b)=>(e.openBlock(),e.createElementBlock("span",{class:"vue-avatar--wrapper oc-avatar",style:e.normalizeStyle(l.value),width:t.width,"aria-label":t.accessibleLabel===""?null:t.accessibleLabel,"aria-hidden":t.accessibleLabel===""?"true":null,focusable:t.accessibleLabel===""?"false":null,role:t.accessibleLabel===""?null:"img","data-test-user-name":t.userName},[r.value?(e.openBlock(),e.createBlock(W,{key:0,"loading-type":"lazy",class:"avatarImg",src:t.src,onError:s},null,8,["src"])):(e.openBlock(),e.createElementBlock("span",jt,e.toDisplayString(u.value),1))],12,Ht))}}),Se={};typeof Se=="function"&&Se(j);const qt=["textContent"],U=e.defineComponent({name:"OcAvatarCount",status:"ready",release:"2.1.0",__name:"OcAvatarCount",props:{count:{},size:{default:30}},setup(t){const n=e.computed(()=>Math.floor(e.unref(t.size)/2.5)+"px");return(a,s)=>(e.openBlock(),e.createElementBlock("span",{class:"oc-avatar-count",style:e.normalizeStyle({width:t.size+"px",height:t.size+"px",fontSize:n.value}),textContent:e.toDisplayString(`+${t.count}`)},null,12,qt))}}),Ve={};typeof Ve=="function"&&Ve(U);const Kt=["data-test-item-name","aria-label","aria-hidden","focusable","role"],A=e.defineComponent({name:"OcAvatarItem",status:"ready",release:"10.0.0",__name:"OcAvatarItem",props:{name:{},icon:{default:null},iconColor:{default:"var(--oc-color-text-inverse)"},iconFillType:{default:"fill"},iconSize:{default:"small"},background:{default:"var(--oc-color-swatch-passive-default)"},accessibleLabel:{default:""},width:{default:30}},setup(t){const n=e.computed(()=>`${e.unref(t.width)}px`),a=e.computed(()=>e.unref(t.icon)!==null),s=e.computed(()=>e.unref(t.background)||e.unref(o)),o=e.computed(()=>{const i=["#b82015","#c21c53","#9C27B0","#673AB7","#3F51B5","#106892","#055c68","#208377","#1a761d","#476e1a","#636d0b","#8e5c11","#795548","#465a64"];return i[Math.floor(Math.random()*i.length)]});return(i,r)=>(e.openBlock(),e.createElementBlock("div",{"data-test-item-name":t.name,"aria-label":t.accessibleLabel===""?null:t.accessibleLabel,"aria-hidden":t.accessibleLabel===""?"true":null,focusable:t.accessibleLabel===""?"false":null,role:t.accessibleLabel===""?null:"img"},[e.createElementVNode("span",{class:"oc-avatar-item",style:e.normalizeStyle({backgroundColor:s.value,"--icon-color":t.iconColor,"--width":n.value})},[a.value?(e.openBlock(),e.createBlock(E,{key:0,name:t.icon,size:t.iconSize,"fill-type":t.iconFillType},null,8,["name","size","fill-type"])):e.createCommentVNode("",!0)],4)],8,Kt))}}),Ee={};typeof Ee=="function"&&Ee(A);const X=e.defineComponent({name:"OcAvatarFederated",status:"ready",release:"10.0.0",__name:"OcAvatarFederated",props:{name:{},accessibleLabel:{default:""},width:{default:30},iconSize:{default:"small"}},setup(t){return(n,a)=>(e.openBlock(),e.createBlock(A,{width:t.width,"icon-size":t.iconSize,icon:"earth","icon-fill-type":"line","icon-color":"#85C1BA",name:t.name,"accessible-label":t.accessibleLabel},null,8,["width","icon-size","name","accessible-label"]))}}),De={};typeof De=="function"&&De(X);const J=e.defineComponent({name:"OcAvatarGroup",status:"ready",release:"10.0.0",__name:"OcAvatarGroup",props:{name:{},accessibleLabel:{default:""},width:{default:30},iconSize:{default:"small"}},setup(t){return(n,a)=>(e.openBlock(),e.createBlock(A,{width:t.width,"icon-size":t.iconSize,icon:"group",name:t.name,"accessible-label":t.accessibleLabel},null,8,["width","icon-size","name","accessible-label"]))}}),Ne={};typeof Ne=="function"&&Ne(J);const Q=e.defineComponent({name:"OcAvatarGuest",status:"ready",release:"10.0.0",__name:"OcAvatarGuest",props:{name:{},accessibleLabel:{default:""},width:{default:30},iconSize:{default:"small"}},setup(t){return(n,a)=>(e.openBlock(),e.createBlock(A,{width:t.width,"icon-size":t.iconSize,icon:"global","icon-fill-type":"line","icon-color":"#D78841",name:t.name,"accessible-label":t.accessibleLabel},null,8,["width","icon-size","name","accessible-label"]))}}),Te={};typeof Te=="function"&&Te(Q);const Y=e.defineComponent({name:"OcAvatarLink",status:"ready",release:"2.1.0",__name:"OcAvatarLink",props:{name:{},accessibleLabel:{default:""},width:{default:30},iconSize:{default:"small"}},setup(t){return(n,a)=>(e.openBlock(),e.createBlock(A,{width:t.width,"icon-size":t.iconSize,icon:"link",name:t.name,"accessible-label":t.accessibleLabel},null,8,["width","icon-size","name","accessible-label"]))}}),Le={};typeof Le=="function"&&Le(Y);const F={user:0,group:1,link:3,guest:4,remote:6},Gt=["textContent"],le=e.defineComponent({name:"OcAvatars",status:"ready",release:"2.1.0",__name:"OcAvatars",props:{items:{},stacked:{type:Boolean,default:!1},isTooltipDisplayed:{type:Boolean,default:!1},maxDisplayed:{default:null},accessibleDescription:{default:null}},setup(t){function n(r){switch(r.shareType){case F.link:return Y;case F.remote:return X;case F.group:return J;case F.guest:return Q}}const a=e.computed(()=>t.maxDisplayed&&t.maxDisplayed<t.items.length),s=e.computed(()=>{if(t.isTooltipDisplayed){const r=e.unref(o).map(u=>u.displayName);e.unref(i).length>0&&r.push(...e.unref(i).map(u=>u.name));let l=r.join(", ");return e.unref(a)&&(l+=` +${t.items.length-t.maxDisplayed}`),l}return null}),o=e.computed(()=>{const r=t.items.filter(l=>l.shareType===F.user);return e.unref(a)?r.slice(0,t.maxDisplayed):r}),i=e.computed(()=>{const r=t.items.filter(l=>l.shareType!==F.user);return e.unref(a)?t.maxDisplayed<=e.unref(o).length?[]:r.slice(0,t.maxDisplayed-e.unref(o).length):r});return(r,l)=>{const u=e.resolveDirective("oc-tooltip");return e.openBlock(),e.createElementBlock("span",null,[e.withDirectives((e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(["oc-avatars",{"oc-avatars-stacked":t.stacked}]),"aria-hidden":"true"},[o.value.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(o.value,c=>(e.openBlock(),e.createBlock(j,{key:c.username,src:c.avatar,"user-name":c.displayName,width:30},null,8,["src","user-name"]))),128)):e.createCommentVNode("",!0),i.value.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(i.value,(c,b)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n(c)),{key:c.name+b,name:c.name},null,8,["name"]))),128)):e.createCommentVNode("",!0),a.value?(e.openBlock(),e.createBlock(U,{key:2,count:t.items.length-t.maxDisplayed},null,8,["count"])):e.createCommentVNode("",!0)],2)),[[u,s.value]]),t.accessibleDescription?(e.openBlock(),e.createElementBlock("span",{key:0,class:"oc-invisible-sr",textContent:e.toDisplayString(t.accessibleDescription)},null,8,Gt)):e.createCommentVNode("",!0)])}}}),ze={};typeof ze=="function"&&ze(le);const L=e.defineComponent({name:"OcButton",status:"ready",release:"1.0.0",__name:"OcButton",props:{type:{default:"button"},disabled:{type:Boolean,default:!1},size:{default:"medium"},href:{default:null},target:{default:null},to:{default:null},ariaLabel:{default:null},submit:{default:"button"},variation:{default:"passive"},appearance:{default:"outline"},justifyContent:{default:"center"},gapSize:{default:"medium"},showSpinner:{type:Boolean,default:!1}},emits:["click"],setup(t,{emit:n}){const a=n;function s(l){a("click",l)}const o=e.computed(()=>["oc-button","oc-rounded",`oc-button-${v.getSizeClass(t.size)}`,`oc-button-justify-content-${t.justifyContent}`,`oc-button-gap-${v.getSizeClass(t.gapSize)}`,`oc-button-${t.variation}`,`oc-button-${t.variation}-${t.appearance}`]),i=e.computed(()=>({...t.href&&{href:t.href},...t.target&&{target:t.target},...t.to&&{to:t.to},...t.type==="button"&&{type:t.submit},...t.type==="button"&&{disabled:t.disabled}})),r=e.computed(()=>({...t.type==="button"&&{click:s}}));return(l,u)=>{const c=e.resolveComponent("oc-spinner");return e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.type),e.mergeProps(i.value,{"aria-label":t.ariaLabel,class:o.value},e.toHandlers(r.value)),{default:e.withCtx(()=>[t.showSpinner?(e.openBlock(),e.createBlock(c,{key:0,size:"small",class:"spinner"})):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"default")]),_:3},16,["aria-label","class"])}}}),Me={};typeof Me=="function"&&Me(L);const ot={name:"hideOnEsc",defaultValue:!0,fn({hide:t}){const n=a=>{a.code==="Escape"&&t()};return{onShow:()=>{document.addEventListener("keydown",n)},onHide:()=>{document.removeEventListener("keydown",n)}}}},Wt={name:"ariaHidden",defaultValue:!0,fn(t){return{onCreate(){t.popper.setAttribute("aria-hidden","true")}}}},K=t=>{if(t)try{t.destroy()}catch{}},Pe=(t,{value:n={}})=>{if(Object.prototype.toString.call(n)!=="[object Object]"&&(n={content:n}),n.content!==0&&!n.content||n.content===""){K(t.tooltip),t.tooltip=null;return}const a=Mt.all([{ignoreAttributes:!0,interactive:!0,aria:{content:null,expanded:!1}},n]);if(!t.tooltip){t.tooltip=ae(t,{...a,plugins:[ot,Wt]});return}t.tooltip.setProps(a)},Ut={name:"OcTooltip",beforeMount:Pe,updated:Pe,unmounted:t=>K(t.tooltip)},Xt=["id"],H=e.defineComponent({name:"OcDrop",status:"ready",release:"1.0.0",__name:"OcDrop",props:{dropId:{default:()=>v.uniqueId("oc-drop-")},popperOptions:{default:()=>({})},toggle:{default:""},position:{default:"bottom-start"},mode:{default:"click"},closeOnClick:{type:Boolean,default:!1},isNested:{type:Boolean,default:!1},target:{default:null},paddingSize:{default:"medium"},offset:{},sameWidthAsTarget:{type:Boolean,default:!1}},emits:["hideDrop","showDrop"],setup(t,{expose:n,emit:a}){const s=a,o=e.useTemplateRef("drop"),i=e.ref(null),r=y=>{e.unref(i)?.show(y)},l=y=>{e.unref(i)?.hide(y)},u=()=>{t.closeOnClick&&l()},c=y=>{const m=e.unref(o).closest(".tippy-box");y.relatedTarget&&!m.contains(y.relatedTarget)&&l()},b=e.computed(()=>({hover:"mouseenter focus"})[t.mode]||t.mode),S=e.computed(()=>`oc-p-${v.getSizeClass(t.paddingSize)}`);e.watch(()=>[t.position,t.mode],()=>{i.value&&i.value.setProps({placement:t.position,trigger:b.value})},{immediate:!0});function V(){K(e.unref(i));const y=e.unref(t.target)?document.querySelector(e.unref(t.target)):e.unref(t.toggle)?document.querySelector(e.unref(t.toggle)):o.value.previousElementSibling,m=o.value;if(!y||!m)return;const g={name:"sameWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:p})=>{p.styles.popper.width=`${p.rects.reference.width}px`},effect:({state:p})=>{p.elements.popper.style.width=`${p.elements.reference.offsetWidth}px`}},x={trigger:e.unref(b),placement:e.unref(t.position),arrow:!1,hideOnClick:!0,interactive:!0,plugins:[ot],theme:"none",maxWidth:416,offset:e.unref(t.offset)??0,...!e.unref(t.isNested)&&{onShow:p=>{s("showDrop"),ae.hideAll({exclude:p})},onHide:()=>{s("hideDrop")}},popperOptions:{...e.unref(t.popperOptions),modifiers:[...e.unref(t.popperOptions)?.modifiers?e.unref(t.popperOptions).modifiers:[],...e.unref(t.sameWidthAsTarget)?[g]:[],{name:"fixVerticalPosition",enabled:!0,phase:"beforeWrite",requiresIfExists:["offset","preventOverflow","flip"],fn({state:p}){const $=zt.detectOverflow(p),z=p.modifiersData.fullHeight||p.elements.popper.offsetHeight,w=$.top*-1-10,T=w+z+$.bottom*-1,B=T-w,f=T-B;z>B&&z>f&&(w<=f&&["right-start","left-start"].includes(p.placement)?(p.styles.popper.top=`${f-w}px`,p.modifiersData.fullHeight=z):(p.styles.popper.top=`-${w}px`,p.modifiersData.fullHeight=z)),z>T&&(p.styles.popper.maxHeight=`${T-10}px`,p.styles.popper.overflowY="auto",p.styles.popper.overflowX="hidden")}}]},content:m};e.unref(t.target)&&(x.triggerTarget=e.unref(t.toggle)?document.querySelector(e.unref(t.toggle)):o.value.previousElementSibling),i.value=ae(y,x)}return e.onMounted(()=>{e.unref(o).addEventListener("focusout",c),V()}),e.onBeforeUnmount(()=>{e.unref(o).removeEventListener("focusout",c),K(e.unref(i))}),n({show:r,hide:l,tippy:i}),(y,m)=>(e.openBlock(),e.createElementBlock("div",{id:t.dropId,ref_key:"drop",ref:o,class:"oc-drop oc-box-shadow-medium oc-rounded",onClick:u},[y.$slots.default?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["oc-card oc-card-body oc-background-secondary",S.value])},[e.renderSlot(y.$slots,"default")],2)):e.renderSlot(y.$slots,"special",{key:1})],8,Xt))}}),Ie={};typeof Ie=="function"&&Ie(H);const Jt=["id","aria-label"],Qt={class:"oc-breadcrumb-list oc-flex oc-m-rm oc-p-rm"},Yt=["data-key","data-item-id","aria-hidden","onDragenter","onDragleave","onMouseleave","onDrop"],Zt={class:"oc-breadcrumb-item-text oc-breadcrumb-item-navigable"},_t=["textContent"],en=["aria-current","textContent"],tn=["textContent"],se=e.defineComponent({name:"OcBreadcrumb",status:"ready",release:"1.0.0",__name:"OcBreadcrumb",props:{id:{default:()=>v.uniqueId("oc-breadcrumbs-")},items:{},variation:{default:"default"},contextMenuPadding:{default:"medium"},maxWidth:{default:()=>-1},truncationOffset:{default:2},showContextActions:{type:Boolean,default:!1}},setup(t,{emit:n}){const a=e.useAttrs(),s=n,{$gettext:o}=I.useGettext(),i=e.ref([]),r=e.ref([]),l=e.ref(t.items.slice()),u=w=>document.querySelector(`.oc-breadcrumb-list [data-item-id="${w}"]`),c=(w,T)=>!(!w.id||T===e.unref(l).length-1||w.isTruncationPlaceholder||w.isStaticNav),b=(w,T)=>{if(c(w,T)&&typeof w.to=="object"){const B=w.to;B.path=B.path||"/",s(v.EVENT_ITEM_DROPPED_BREADCRUMB,B)}},S=()=>{let w=100;return i.value.forEach(T=>{const f=u(T.id)?.getBoundingClientRect()?.width||0;w+=f}),w},V=w=>{const T=t.maxWidth;if(!T)return;const B=S();if(!(T<B)||i.value.length<=t.truncationOffset+1)return;const h=i.value.splice(w,1);r.value.push(h[0]),V(w)},y=e.computed(()=>r.value.length>=1?e.unref(r)[e.unref(r).length-1]:{to:{}}),m=()=>{l.value=[...t.items],l.value.length>t.truncationOffset-1&&l.value.splice(t.truncationOffset-1,0,{text:"...",allowContextActions:!1,to:{},isTruncationPlaceholder:!0}),i.value=[...l.value],r.value=[],e.nextTick(()=>{V(t.truncationOffset)})};e.watch([()=>t.maxWidth,()=>t.items],m,{immediate:!0});const g=e.computed(()=>{if(!(t.items.length===0||!t.items))return[...t.items].reverse()[0]}),x=e.computed(()=>[...t.items].reverse()[1]?.to),p=e.computed(()=>o("Show actions for current folder")),$=w=>t.items.length-1===w?"page":null,z=(w,T,B,f)=>{if(!c(w,T)||(f.dataTransfer?.types||[]).some(d=>d==="Files")||f.currentTarget?.contains(f.relatedTarget))return;const O=u(w.id).children[0].classList,M="oc-breadcrumb-item-dragover";B?O.remove(M):O.add(M)};return(w,T)=>{const B=e.resolveComponent("router-link"),f=e.resolveDirective("oc-tooltip");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("nav",e.mergeProps({id:t.id,class:`oc-breadcrumb oc-breadcrumb-${t.variation}`,"aria-label":e.unref(o)("Breadcrumbs")},e.unref(a)),[e.createElementVNode("ol",Qt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,(h,O)=>(e.openBlock(),e.createElementBlock("li",{key:O,"data-key":O,"data-item-id":h.id,"aria-hidden":h.isTruncationPlaceholder,class:e.normalizeClass(["oc-breadcrumb-list-item","oc-flex","oc-flex-middle",{"oc-invisible-sr":r.value.indexOf(h)!==-1||h.isTruncationPlaceholder&&r.value.length===0}]),onDragover:T[0]||(T[0]=e.withModifiers(()=>{},["prevent"])),onDragenter:e.withModifiers(M=>z(h,O,!1,M),["prevent"]),onDragleave:e.withModifiers(M=>z(h,O,!0,M),["prevent"]),onMouseleave:M=>z(h,O,!0,M),onDrop:M=>b(h,O)},[h.to?(e.openBlock(),e.createBlock(B,{key:0,"aria-current":$(O),to:h.isTruncationPlaceholder?y.value.to:h.to},{default:e.withCtx(()=>[e.createElementVNode("span",Zt,e.toDisplayString(h.text),1)]),_:2},1032,["aria-current","to"])):h.onClick?(e.openBlock(),e.createBlock(L,{key:1,"aria-current":$(O),appearance:"raw",class:"oc-flex",onClick:h.onClick},{default:e.withCtx(()=>[e.createElementVNode("span",{class:e.normalizeClass(["oc-breadcrumb-item-text","oc-breadcrumb-item-navigable",{"oc-breadcrumb-item-text-last":O===l.value.length-1}]),textContent:e.toDisplayString(h.text)},null,10,_t)]),_:2},1032,["aria-current","onClick"])):(e.openBlock(),e.createElementBlock("span",{key:2,class:"oc-breadcrumb-item-text","aria-current":$(O),tabindex:"-1",textContent:e.toDisplayString(h.text)},null,8,en)),O!==l.value.length-1?(e.openBlock(),e.createBlock(E,{key:3,color:"var(--oc-color-text-default)",name:"arrow-right-s",class:"oc-mx-xs","fill-type":"line"})):e.createCommentVNode("",!0),t.showContextActions&&O===l.value.length-1?(e.openBlock(),e.createElementBlock(e.Fragment,{key:4},[e.withDirectives((e.openBlock(),e.createBlock(L,{id:"oc-breadcrumb-contextmenu-trigger","aria-label":p.value,appearance:"raw"},{default:e.withCtx(()=>[e.createVNode(E,{name:"more-2",color:"var(--oc-color-text-default)"})]),_:1},8,["aria-label"])),[[f,p.value]]),e.createVNode(H,{"drop-id":"oc-breadcrumb-contextmenu",toggle:"#oc-breadcrumb-contextmenu-trigger",mode:"click","close-on-click":"","padding-size":t.contextMenuPadding},{default:e.withCtx(()=>[e.renderSlot(w.$slots,"contextMenu")]),_:3},8,["padding-size"])],64)):e.createCommentVNode("",!0)],42,Yt))),128))]),x.value&&l.value.length>1?(e.openBlock(),e.createBlock(L,{key:0,appearance:"raw",type:"router-link","aria-label":e.unref(o)("Navigate one level up"),to:x.value,class:"oc-breadcrumb-mobile-navigation"},{default:e.withCtx(()=>[e.createVNode(E,{name:"arrow-left-s","fill-type":"line",size:"large",class:"oc-mr-m"})]),_:1},8,["aria-label","to"])):e.createCommentVNode("",!0)],16,Jt),l.value.length>1?(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:0,class:"oc-breadcrumb-mobile-current"},e.unref(a)),[e.createElementVNode("span",{class:"oc-text-truncate","aria-current":"page",textContent:e.toDisplayString(g.value.text)},null,8,tn)],16)):e.createCommentVNode("",!0)],64)}}}),Ae={};typeof Ae=="function"&&Ae(se);const nn=["id","value","disabled","aria-label"],an=["for","textContent"],ie=e.defineComponent({name:"OcCheckbox",status:"ready",release:"1.0.0",__name:"OcCheckbox",props:{id:{default:()=>v.uniqueId("oc-checkbox-")},modelValue:{type:[Boolean,Array],default:!1},disabled:{type:Boolean,default:!1},option:{default:null},label:{default:null},labelHidden:{type:Boolean,default:!1},size:{default:"medium"}},emits:["click","update:modelValue"],setup(t,{emit:n}){const a=n,s=e.computed({get(){return t.modelValue},set(u){a("update:modelValue",u)}});function o(u){s.value=!s.value,a("click",u)}const i=e.computed(()=>["oc-checkbox","oc-rounded",`oc-checkbox-${v.getSizeClass(t.size)}`,{"oc-checkbox-checked":l.value}]),r=e.computed(()=>({"oc-cursor-pointer":!t.disabled})),l=e.computed(()=>Array.isArray(s.value)?e.unref(s.value).some(u=>Pt.isEqual(u,t.option)):e.unref(s));return(u,c)=>(e.openBlock(),e.createElementBlock("span",{onClick:c[1]||(c[1]=b=>u.$emit("click",b))},[e.withDirectives(e.createElementVNode("input",{id:t.id,"onUpdate:modelValue":c[0]||(c[0]=b=>s.value=b),type:"checkbox",name:"checkbox",class:e.normalizeClass(i.value),value:t.option,disabled:t.disabled,"aria-label":t.labelHidden?t.label:null,onKeydown:e.withKeys(o,["enter"])},null,42,nn),[[e.vModelCheckbox,s.value]]),t.labelHidden?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("label",{key:0,for:t.id,class:e.normalizeClass(r.value),textContent:e.toDisplayString(t.label)},null,10,an))]))}}),Fe={};typeof Fe=="function"&&Fe(ie);const on={class:"info-drop-content"},ln={class:"oc-flex oc-flex-between info-header oc-border-b oc-pb-s"},sn=["textContent"],rn=["textContent"],cn={key:1,class:"info-list"},un=["textContent"],Z=e.defineComponent({name:"OcInfoDrop",status:"unreleased",__name:"OcInfoDrop",props:{dropId:{default:()=>v.uniqueId("oc-info-drop-")},toggle:{default:""},mode:{default:"click"},title:{},text:{default:""},list:{default:()=>[]},endText:{default:""},readMoreLink:{default:""}},setup(t){const n=e.ref(!1),a=e.computed(()=>(t.list||[]).filter(s=>!!s.text));return(s,o)=>{const i=e.resolveDirective("oc-tooltip");return e.openBlock(),e.createBlock(H,{ref:"drop",class:"oc-width-1-1 oc-info-drop","drop-id":t.dropId,toggle:t.toggle,mode:t.mode,"close-on-click":"",onHideDrop:o[0]||(o[0]=()=>n.value=!1),onShowDrop:o[1]||(o[1]=()=>n.value=!0)},{default:e.withCtx(()=>[e.createVNode(e.unref(at.FocusTrap),{active:n.value},{default:e.withCtx(()=>[e.createElementVNode("div",on,[e.createElementVNode("div",ln,[e.createElementVNode("h4",{class:"oc-m-rm info-title",textContent:e.toDisplayString(s.$gettext(t.title))},null,8,sn),e.withDirectives((e.openBlock(),e.createBlock(L,{appearance:"raw","aria-label":s.$gettext("Close")},{default:e.withCtx(()=>[e.createVNode(E,{name:"close","fill-type":"line",size:"medium",variation:"inherit","accessible-label":s.$gettext("Close")},null,8,["accessible-label"])]),_:1},8,["aria-label"])),[[i,s.$gettext("Close")]])]),t.text?(e.openBlock(),e.createElementBlock("p",{key:0,class:"info-text",textContent:e.toDisplayString(s.$gettext(t.text))},null,8,rn)):e.createCommentVNode("",!0),a.value.length?(e.openBlock(),e.createElementBlock("dl",cn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,(r,l)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r.headline?"dt":"dd"),{key:l},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s.$gettext(r.text)),1)]),_:2},1024))),128))])):e.createCommentVNode("",!0),t.endText?(e.openBlock(),e.createElementBlock("p",{key:2,class:"info-text-end",textContent:e.toDisplayString(s.$gettext(t.endText))},null,8,un)):e.createCommentVNode("",!0),t.readMoreLink?(e.openBlock(),e.createBlock(L,{key:3,type:"a",appearance:"raw",size:"small",class:"info-more-link",href:t.readMoreLink,target:"_blank"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s.$gettext("Read more")),1)]),_:1},8,["href"])):e.createCommentVNode("",!0)])]),_:1},8,["active"])]),_:1},8,["drop-id","toggle","mode"])}}}),Re={};typeof Re=="function"&&Re(Z);const dn={class:"oc-contextual-helper"},lt=e.defineComponent({name:"OcContextualHelper",status:"unreleased",__name:"OcContextualHelper",props:{title:{},text:{default:""},list:{default:()=>[]},endText:{default:""},readMoreLink:{default:""}},setup(t){const n=e.computed(()=>({title:t.title,text:t.text,list:t.list,endText:t.endText,readMoreLink:t.readMoreLink})),a=e.computed(()=>v.uniqueId("oc-contextual-helper-")),s=e.computed(()=>`${e.unref(a)}-button`),o=e.computed(()=>`#${e.unref(s)}`);return(i,r)=>(e.openBlock(),e.createElementBlock("div",dn,[e.createVNode(L,{id:s.value,"aria-label":i.$gettext("Show more information"),appearance:"raw"},{default:e.withCtx(()=>[e.createVNode(E,{name:"question","fill-type":"line",size:"small","accessible-label":t.title},null,8,["accessible-label"])]),_:1},8,["id","aria-label"]),e.createVNode(Z,e.mergeProps({"drop-id":a.value,toggle:o.value},n.value),null,16,["drop-id","toggle"])]))}}),re=e.defineComponent({name:"OcDatepicker",status:"ready",release:"1.0.0",__name:"OcDatepicker",props:{label:{},isClearable:{type:Boolean,default:!0},currentDate:{default:null},minDate:{default:null}},emits:["dateChanged"],setup(t,{emit:n}){const a=n,{$gettext:s,current:o}=I.useGettext(),i=e.ref(""),r=e.computed(()=>{const c=$e.DateTime.fromISO(e.unref(i)).endOf("day");return c.isValid?c:null}),l=e.computed(()=>!t.minDate||!e.unref(r)?!1:e.unref(r)<t.minDate),u=e.computed(()=>e.unref(l)?s("The date must be after %{date}",{date:t.minDate.minus({day:1}).setLocale(o).toLocaleString($e.DateTime.DATE_SHORT)}):"");return e.watch(()=>t.currentDate,()=>{if(t.currentDate){i.value=t.currentDate.toISODate();return}i.value=void 0},{immediate:!0}),e.watch(r,()=>{a("dateChanged",{date:e.unref(r),error:e.unref(l)})},{deep:!0}),(c,b)=>{const S=e.resolveComponent("oc-text-input");return e.openBlock(),e.createBlock(S,e.mergeProps({modelValue:i.value,"onUpdate:modelValue":b[0]||(b[0]=V=>i.value=V)},c.$attrs,{label:t.label,type:"date",min:t.minDate?.toISODate(),"fix-message-line":!0,"error-message":u.value,"clear-button-enabled":t.isClearable,"clear-button-accessible-label":e.unref(s)("Clear date"),class:"oc-date-picker"}),null,16,["modelValue","label","min","error-message","clear-button-enabled","clear-button-accessible-label"])}}}),He={};typeof He=="function"&&He(re);const mn={class:"details-list"},st=e.defineComponent({name:"OcDefinitionList",status:"ready",release:"16.0.0",__name:"OcDefinitionList",props:{items:{}},setup(t){return(n,a)=>(e.openBlock(),e.createElementBlock("dl",mn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,s=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:s.term},[e.createElementVNode("dt",null,e.toDisplayString(s.term),1),e.createElementVNode("dd",null,e.toDisplayString(s.definition),1)],64))),128))]))}}),fn={class:"oc-dropzone"},ce=e.defineComponent({name:"OcDropzone",status:"ready",release:"0.0.1",__name:"OcDropzone",setup(t){return(n,a)=>(e.openBlock(),e.createElementBlock("div",fn,[e.renderSlot(n.$slots,"default")]))}}),je={};typeof je=="function"&&je(ce);const pn=["textContent"],hn=["textContent"],it=e.defineComponent({name:"OcFilterChip",status:"ready",release:"15.0.0",__name:"OcFilterChip",props:{id:{default:()=>v.uniqueId("oc-filter-chip-")},filterLabel:{},selectedItemNames:{default:()=>[]},isToggle:{type:Boolean,default:!1},isToggleActive:{type:Boolean,default:!1},closeOnClick:{type:Boolean,default:!1},raw:{type:Boolean,default:!1}},emits:["clearFilter","hideDrop","showDrop","toggleFilter"],setup(t,{expose:n}){const a=e.ref(),s=e.computed(()=>t.isToggle?t.isToggleActive:!!t.selectedItemNames.length);return n({hideDrop:()=>{e.unref(a)?.hide()}}),(i,r)=>{const l=e.resolveComponent("oc-icon"),u=e.resolveComponent("oc-button"),c=e.resolveDirective("oc-tooltip");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["oc-filter-chip oc-flex",{"oc-filter-chip-toggle":t.isToggle,"oc-filter-chip-raw":t.raw}])},[e.createVNode(u,{id:t.id,class:e.normalizeClass(["oc-filter-chip-button oc-pill",{"oc-filter-chip-button-selected":s.value}]),appearance:"raw",onClick:r[0]||(r[0]=b=>t.isToggle?i.$emit("toggleFilter"):!1)},{default:e.withCtx(()=>[e.createVNode(l,{class:e.normalizeClass(s.value?"oc-filter-check-icon-active":"oc-filter-check-icon-inactive"),name:"check",size:"small",color:"var(--oc-color-text-inverse)"},null,8,["class"]),e.createElementVNode("span",{class:"oc-text-truncate oc-filter-chip-label",textContent:e.toDisplayString(t.selectedItemNames.length?t.selectedItemNames[0]:t.filterLabel)},null,8,pn),t.selectedItemNames.length>1?(e.openBlock(),e.createElementBlock("span",{key:0,textContent:e.toDisplayString(` +${t.selectedItemNames.length-1}`)},null,8,hn)):e.createCommentVNode("",!0),!s.value&&!t.isToggle?(e.openBlock(),e.createBlock(l,{key:1,name:"arrow-down-s",size:"small"})):e.createCommentVNode("",!0)]),_:1},8,["id","class"]),t.isToggle?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(H,{key:0,ref_key:"dropRef",ref:a,toggle:"#"+t.id,class:"oc-filter-chip-drop",mode:"click","padding-size":"small","close-on-click":t.closeOnClick,onHideDrop:r[1]||(r[1]=b=>i.$emit("hideDrop")),onShowDrop:r[2]||(r[2]=b=>i.$emit("showDrop"))},{default:e.withCtx(()=>[e.renderSlot(i.$slots,"default")]),_:3},8,["toggle","close-on-click"])),s.value?e.withDirectives((e.openBlock(),e.createBlock(u,{key:1,class:"oc-filter-chip-clear oc-px-xs",appearance:"raw","aria-label":i.$gettext("Clear filter"),onClick:r[3]||(r[3]=b=>i.$emit("clearFilter"))},{default:e.withCtx(()=>[e.createVNode(l,{name:"close",size:"small",color:"var(--oc-color-text-inverse)"})]),_:1},8,["aria-label"])),[[c,i.$gettext("Clear filter")]]):e.createCommentVNode("",!0)],2)}}}),ue=e.defineComponent({name:"OcGrid",status:"ready",release:"1.0.0",__name:"OcGrid",props:{gutter:{default:"collapse"},flex:{type:Boolean,default:!1}},setup(t){const n=e.computed(()=>{const a=[];return a.push("oc-grid-"+t.gutter),t.flex&&(a.push("oc-flex"),a.push("oc-flex-middle")),a});return(a,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(n.value)},[e.renderSlot(a.$slots,"default")],2))}}),gn=["id","aria-live","textContent"],rt=e.defineComponent({name:"OcHiddenAnnouncer",status:"ready",release:"1.0.0",__name:"OcHiddenAnnouncer",props:{level:{default:"polite"},announcement:{}},setup(t){const n=e.computed(()=>Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15));return(a,s)=>(e.openBlock(),e.createElementBlock("span",{id:n.value,class:"oc-invisible-sr oc-hidden-announcer","aria-live":t.level,"aria-atomic":"true",textContent:e.toDisplayString(t.announcement)},null,8,gn))}}),ct=e.defineComponent({name:"OcList",status:"ready",release:"12.0.0",__name:"OcList",props:{raw:{type:Boolean,default:!1}},setup(t){return(n,a)=>(e.openBlock(),e.createElementBlock("ul",{class:e.normalizeClass(["oc-list oc-my-rm oc-mx-rm",{"oc-list-raw":t.raw}])},[e.renderSlot(n.$slots,"default")],2))}}),bn=["aria-label"],de=e.defineComponent({name:"OcLoader",status:"ready",release:"1.0.0",__name:"OcLoader",props:{ariaLabel:{default:"Loading"},flat:{type:Boolean,default:!1}},setup(t){return(n,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["oc-loader",{"oc-loader-flat":t.flat}]),"aria-label":t.ariaLabel},null,10,bn))}}),qe={};typeof qe=="function"&&qe(de);const me=e.defineComponent({name:"OcLogo",status:"ready",release:"7.3.0",__name:"OcLogo",props:{src:{},alt:{}},setup(t){return(n,a)=>(e.openBlock(),e.createBlock(W,{class:"oc-logo",src:t.src,alt:t.alt},null,8,["src","alt"]))}}),Ke={};typeof Ke=="function"&&Ke(me);const yn=["value","type","disabled"],kn={class:"oc-flex oc-text-small oc-text-input-password-policy-rule-wrapper oc-pt-s"},vn=["textContent"],Ge="file-copy",Cn=e.defineComponent({name:"OCTextInputPassword",components:{OcButton:L,OcIcon:E},status:"ready",release:"1.0.0",__name:"OcTextInputPassword",props:{value:{},passwordPolicy:{default:()=>({rules:[],check:()=>!1,missing:()=>({rules:[]})})},generatePasswordMethod:{type:Function,default:null},hasWarning:{type:Boolean,default:!1},hasError:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},emits:["passwordChallengeCompleted","passwordChallengeFailed","passwordGenerated","input","change"],setup(t,{emit:n}){const a=n,s=e.useAttrs(),o=e.ref(null),{$gettext:i}=I.useGettext(),r=e.ref(!1),l=e.ref(Ge),u=e.computed(()=>!!Object.keys(t.passwordPolicy.rules||{}).length),c=e.computed(()=>t.passwordPolicy.missing(e.unref(t.value))),b=y=>{const m={};for(let g=0;g<y.format.length;g++)m[`param${g+1}`]=y.format[g]?.toString();return i(y.message,m,!0)},S=()=>{navigator.clipboard.writeText(e.unref(t.value)),l.value="check",setTimeout(()=>l.value=Ge,500)},V=()=>{const y=t.generatePasswordMethod(),m=new Event("input",{bubbles:!0});Object.defineProperty(m,"target",{value:o.value}),a("input",m),a("passwordGenerated",y)};return e.watch(()=>t.value,y=>{if(Object.keys(t.passwordPolicy).length){if(!t.passwordPolicy.check(y))return a("passwordChallengeFailed");a("passwordChallengeCompleted")}}),(y,m)=>{const g=e.resolveComponent("oc-contextual-helper"),x=e.resolveComponent("portal"),p=e.resolveDirective("oc-tooltip");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:e.normalizeClass(["oc-text-input-password-wrapper",{"oc-text-input-password-wrapper-warning":t.hasWarning,"oc-text-input-password-wrapper-danger":t.hasError}])},[e.createElementVNode("input",e.mergeProps(e.unref(s),{ref_key:"passwordInput",ref:o,value:t.value,type:r.value?"text":"password",disabled:t.disabled,onInput:m[0]||(m[0]=$=>y.$emit("input",$)),onChange:m[1]||(m[1]=$=>y.$emit("change",$))}),null,16,yn),t.value&&!t.disabled?e.withDirectives((e.openBlock(),e.createBlock(L,{key:0,"aria-label":r.value?e.unref(i)("Hide password"):e.unref(i)("Show password"),class:"oc-text-input-show-password-toggle oc-px-s oc-background-default",appearance:"raw",size:"small",onClick:m[2]||(m[2]=$=>r.value=!r.value)},{default:e.withCtx(()=>[e.createVNode(E,{size:"small",name:r.value?"eye-off":"eye"},null,8,["name"])]),_:1},8,["aria-label"])),[[p,r.value?e.unref(i)("Hide password"):e.unref(i)("Show password")]]):e.createCommentVNode("",!0),t.value&&!t.disabled?e.withDirectives((e.openBlock(),e.createBlock(L,{key:1,"aria-label":e.unref(i)("Copy password"),class:"oc-text-input-copy-password-button oc-px-s oc-background-default",appearance:"raw",size:"small",onClick:S},{default:e.withCtx(()=>[e.createVNode(E,{size:"small",name:l.value},null,8,["name"])]),_:1},8,["aria-label"])),[[p,e.unref(i)("Copy password")]]):e.createCommentVNode("",!0),t.generatePasswordMethod&&!t.disabled?e.withDirectives((e.openBlock(),e.createBlock(L,{key:2,"aria-label":e.unref(i)("Generate password"),class:"oc-text-input-generate-password-button oc-px-s oc-background-default",appearance:"raw",size:"small",onClick:V},{default:e.withCtx(()=>[e.createVNode(E,{size:"small",name:"refresh","fill-type":"line"})]),_:1},8,["aria-label"])),[[p,e.unref(i)("Generate password")]]):e.createCommentVNode("",!0)],2),u.value?(e.openBlock(),e.createBlock(x,{key:0,to:"app.design-system.password-policy"},{default:e.withCtx(()=>[e.createElementVNode("div",kn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value.rules,($,z)=>(e.openBlock(),e.createElementBlock("div",{key:z,class:"oc-flex oc-flex-middle oc-text-input-password-policy-rule"},[e.createVNode(E,{size:"small",class:"oc-mr-xs",name:$.verified?"checkbox-circle":"close-circle",variation:$.verified?"success":"danger"},null,8,["name","variation"]),e.createElementVNode("span",{class:e.normalizeClass([{"oc-text-input-success":$.verified},{"oc-text-input-danger":!$.verified}]),textContent:e.toDisplayString(b($))},null,10,vn),$.helperMessage?(e.openBlock(),e.createBlock(g,{key:0,text:$.helperMessage,title:e.unref(i)("Password policy")},null,8,["text","title"])):e.createCommentVNode("",!0)]))),128))])]),_:1})):e.createCommentVNode("",!0)],64)}}}),wn=["for","textContent"],Bn={class:"oc-position-relative"},xn=["id","textContent"],_=e.defineComponent({name:"OcTextInput",status:"ready",release:"1.0.0",__name:"OcTextInput",props:{id:{default:()=>v.uniqueId("oc-textinput-")},type:{default:"text"},modelValue:{default:null},selectionRange:{default:null},clearButtonEnabled:{type:Boolean,default:!1},clearButtonAccessibleLabel:{default:""},defaultValue:{default:null},disabled:{type:Boolean,default:!1},label:{},warningMessage:{default:null},errorMessage:{default:null},fixMessageLine:{type:Boolean,default:!1},descriptionMessage:{default:null},readOnly:{type:Boolean,default:!1},passwordPolicy:{default:()=>({})},generatePasswordMethod:{type:Function,default:null}},emits:["change","update:modelValue","focus","passwordChallengeCompleted","passwordChallengeFailed","enterKeyDown"],setup(t,{expose:n,emit:a}){n({focus:p});const s=a,o=e.useAttrs(),{$gettext:i}=I.useGettext(),r=e.useTemplateRef("input"),l=e.computed(()=>t.fixMessageLine||!!t.warningMessage||!!t.errorMessage||!!t.descriptionMessage),u=e.computed(()=>`${t.id}-message`),c=e.computed(()=>t.type==="password"?{passwordGenerated:w}:{}),b=e.computed(()=>{const B={};(t.warningMessage||t.errorMessage||t.descriptionMessage)&&(B["aria-describedby"]=u),t.defaultValue&&(B.placeholder=t.defaultValue),t.type==="password"&&(B["password-policy"]=t.passwordPolicy,B["generate-password-method"]=t.generatePasswordMethod,B["has-warning"]=!!t.warningMessage,B["has-error"]=!!t.errorMessage);const{change:f,input:h,focus:O,class:M,...d}=e.useAttrs();return{...d,...B}}),S=e.computed(()=>(!!t.errorMessage).toString()),V=e.computed(()=>t.errorMessage?t.errorMessage:t.warningMessage?t.warningMessage:t.descriptionMessage),y=e.computed(()=>!t.disabled&&t.clearButtonEnabled&&!!t.modelValue),m=e.computed(()=>t.clearButtonAccessibleLabel||i("Clear input")),g=e.computed(()=>t.modelValue||""),x=e.computed(()=>t.type==="password"?Cn:"input");function p(){r.value.focus()}function $(){p(),w(null),z(null)}function z(B){s("change",B)}function w(B){s("update:modelValue",B)}async function T(B){await e.nextTick(),B.select(),t.selectionRange&&t.selectionRange.length>1&&B.setSelectionRange(t.selectionRange[0],t.selectionRange[1]),s("focus",B.value)}return(B,f)=>{const h=e.resolveComponent("portal-target");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(o).class)},[e.renderSlot(B.$slots,"label",{},()=>[e.createElementVNode("label",{class:"oc-label",for:t.id,textContent:e.toDisplayString(t.label)},null,8,wn)]),e.createElementVNode("div",Bn,[t.readOnly?(e.openBlock(),e.createBlock(E,{key:0,name:"lock",size:"small",class:"oc-mt-s oc-ml-s oc-position-absolute"})):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(x.value),e.mergeProps({id:t.id},b.value,{ref_key:"input",ref:r,"aria-invalid":S.value,class:["oc-text-input oc-input oc-rounded",{"oc-text-input-warning":!!t.warningMessage,"oc-text-input-danger":!!t.errorMessage,"oc-pl-l":!!t.readOnly,"clear-action-visible":y.value}],type:t.type,value:g.value,disabled:t.disabled||t.readOnly},e.toHandlers(c.value),{onChange:f[0]||(f[0]=O=>z(O.target.value)),onInput:f[1]||(f[1]=O=>w(O.target.value)),onPasswordChallengeCompleted:f[2]||(f[2]=O=>B.$emit("passwordChallengeCompleted")),onPasswordChallengeFailed:f[3]||(f[3]=O=>B.$emit("passwordChallengeFailed")),onFocus:f[4]||(f[4]=O=>T(O.target)),onKeydown:f[5]||(f[5]=e.withKeys(O=>B.$emit("enterKeyDown"),["enter"]))}),null,16,["id","aria-invalid","class","type","value","disabled"])),y.value?(e.openBlock(),e.createBlock(L,{key:1,"aria-label":m.value,class:e.normalizeClass(["oc-pr-s oc-position-center-right oc-text-input-btn-clear",{"oc-mr-rm":t.type==="date"}]),appearance:"raw",onClick:$},{default:e.withCtx(()=>[e.createVNode(E,{name:"close",size:"small",variation:"passive"})]),_:1},8,["aria-label","class"])):e.createCommentVNode("",!0)]),l.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["oc-text-input-message",{"oc-text-input-description":!!t.descriptionMessage,"oc-text-input-warning":!!t.warningMessage,"oc-text-input-danger":!!t.errorMessage}])},[V.value!==null&&t.descriptionMessage?(e.openBlock(),e.createBlock(E,{key:0,name:"information",size:"small","fill-type":"line","accessible-label":"info","aria-hidden":"true"})):e.createCommentVNode("",!0),e.createElementVNode("span",{id:u.value,class:e.normalizeClass({"oc-text-input-description":!!t.descriptionMessage,"oc-text-input-warning":!!t.warningMessage,"oc-text-input-danger":!!t.errorMessage}),textContent:e.toDisplayString(V.value)},null,10,xn)],2)):e.createCommentVNode("",!0),t.type==="password"?(e.openBlock(),e.createBlock(h,{key:1,name:"app.design-system.password-policy"})):e.createCommentVNode("",!0)],2)}}}),We={};typeof We=="function"&&We(_);const $n={class:"oc-modal-background"},On=["id"],Sn={class:"oc-modal-title"},Vn=["textContent"],En={class:"oc-modal-body"},Dn={key:"modal-slot-content",class:"oc-modal-body-message"},Nn=["textContent"],Tn=["textContent"],Ln={key:0,class:"oc-modal-body-actions oc-flex oc-flex-right"},zn={class:"oc-modal-body-actions-grid"},ut=e.defineComponent({name:"OcModal",status:"ready",release:"1.3.0",__name:"OcModal",props:{elementId:{default:null},elementClass:{default:null},variation:{default:"passive"},icon:{default:null},title:{},message:{default:null},contextualHelperLabel:{default:""},contextualHelperData:{default:null},buttonCancelText:{default:"Cancel"},buttonConfirmText:{default:"Confirm"},buttonConfirmDisabled:{type:Boolean,default:!1},hideConfirmButton:{type:Boolean,default:!1},hasInput:{type:Boolean,default:!1},inputType:{default:"text"},inputValue:{default:null},inputSelectionRange:{default:null},inputLabel:{default:null},inputDescription:{default:null},inputError:{default:null},focusTrapInitial:{type:[String,Boolean],default:null},hideActions:{type:Boolean,default:!1},isLoading:{type:Boolean,default:!1}},emits:["cancel","confirm","input"],setup(t,{emit:n}){const a=n,s=e.ref(),o=e.ref(!1),i=e.ref("filled"),r=e.ref(),l=e.ref(),u=e.computed(()=>({getShadowRoot:!0})),c=()=>{o.value=!1,i.value="filled"},b=()=>{o.value=!0,i.value="outline"};function S(){a("cancel")}function V(){t.buttonConfirmDisabled||t.inputError||a("confirm",e.unref(s))}function y(p){a("input",p)}e.watch(()=>t.isLoading,()=>{if(!t.isLoading)return c();setTimeout(()=>{if(!t.isLoading)return c();b()},700)},{immediate:!0}),e.watch(()=>t.inputValue,p=>{s.value=p},{immediate:!0});const m=e.computed(()=>t.focusTrapInitial||t.focusTrapInitial===!1?t.focusTrapInitial:()=>e.unref(l)?.$el||e.unref(r)),g=e.computed(()=>["oc-modal",`oc-modal-${t.variation}`,t.elementClass]),x=e.computed(()=>{if(t.icon)return t.icon;switch(t.variation){case"danger":return"alert";case"warning":return"error-warning";case"success":return"checkbox-circle";case"info":return"information";default:return""}});return(p,$)=>{const z=e.resolveComponent("oc-contextual-helper");return e.openBlock(),e.createElementBlock("div",$n,[e.createVNode(e.unref(at.FocusTrap),{active:!0,"initial-focus":m.value,"tabbable-options":u.value},{default:e.withCtx(()=>[e.createElementVNode("div",{id:t.elementId,ref_key:"ocModal",ref:r,class:e.normalizeClass(g.value),tabindex:"0",role:"dialog","aria-modal":"true","aria-labelledby":"oc-modal-title",onKeydown:e.withKeys(S,["esc"])},[e.createElementVNode("div",Sn,[x.value!==""?(e.openBlock(),e.createBlock(E,{key:0,name:x.value,variation:t.variation},null,8,["name","variation"])):e.createCommentVNode("",!0),e.createElementVNode("h2",{id:"oc-modal-title",class:"oc-text-truncate",textContent:e.toDisplayString(t.title)},null,8,Vn)]),e.createElementVNode("div",En,[p.$slots.content?(e.openBlock(),e.createElementBlock("div",Dn,[e.renderSlot(p.$slots,"content")])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t.message?(e.openBlock(),e.createElementBlock("p",{key:"modal-message",class:e.normalizeClass(["oc-modal-body-message oc-mt-rm",{"oc-mb-rm":!t.hasInput||t.contextualHelperData}]),textContent:e.toDisplayString(t.message)},null,10,Nn)):e.createCommentVNode("",!0),t.contextualHelperData?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["oc-modal-body-contextual-helper",{"oc-mb-rm":!t.hasInput}])},[e.createElementVNode("span",{class:"text",textContent:e.toDisplayString(t.contextualHelperLabel)},null,8,Tn),e.createVNode(z,e.mergeProps({class:"oc-pl-xs"},t.contextualHelperData),null,16)],2)):e.createCommentVNode("",!0),t.hasInput?(e.openBlock(),e.createBlock(_,{key:"modal-input",ref_key:"ocModalInput",ref:l,modelValue:s.value,"onUpdate:modelValue":[$[0]||($[0]=w=>s.value=w),y],class:"oc-modal-body-input","error-message":t.inputError,label:t.inputLabel,type:t.inputType,"description-message":t.inputDescription,"fix-message-line":!0,"selection-range":t.inputSelectionRange,onEnterKeyDown:V},null,8,["modelValue","error-message","label","type","description-message","selection-range"])):e.createCommentVNode("",!0)],64))]),t.hideActions?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Ln,[e.createElementVNode("div",zn,[e.createVNode(L,{class:"oc-modal-body-actions-cancel",variation:"passive",appearance:"outline",disabled:t.isLoading,onClick:S},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(p.$gettext(t.buttonCancelText)),1)]),_:1},8,["disabled"]),t.hideConfirmButton?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(L,{key:0,class:"oc-modal-body-actions-confirm oc-ml-s",variation:"primary",appearance:i.value,disabled:t.isLoading||t.buttonConfirmDisabled||!!t.inputError,"show-spinner":o.value,onClick:V},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(p.$gettext(t.buttonConfirmText)),1)]),_:1},8,["appearance","disabled","show-spinner"]))])]))],42,On)]),_:3},8,["initial-focus","tabbable-options"])])}}}),Mn={class:"oc-error-log"},Pn={class:"oc-flex oc-flex-between oc-mt-s"},In={class:"oc-flex"},An={key:0,class:"oc-flex oc-flex-middle"},Fn=["textContent"],fe=e.defineComponent({name:"OcErrorLog",status:"ready",release:"2.0.0",__name:"OcErrorLog",props:{content:{}},setup(t){const{$gettext:n}=I.useGettext(),a=e.ref(!1),s=e.computed(()=>n("Copy the following information and pass them to technical support to troubleshoot the problem:")),o=()=>{navigator.clipboard.writeText(t.content),a.value=!0,setTimeout(()=>a.value=!1,500)};return(i,r)=>{const l=e.resolveComponent("oc-textarea"),u=e.resolveComponent("oc-icon"),c=e.resolveComponent("oc-button");return e.openBlock(),e.createElementBlock("div",Mn,[e.createVNode(l,{class:"oc-error-log-textarea oc-mt-s oc-text-small",label:s.value,"model-value":t.content,rows:"4",readonly:""},null,8,["label","model-value"]),e.createElementVNode("div",Pn,[e.createElementVNode("div",In,[a.value?(e.openBlock(),e.createElementBlock("div",An,[e.createVNode(u,{variation:"success",name:"checkbox-circle"}),e.createElementVNode("p",{class:"oc-error-log-content-copied oc-ml-s oc-my-rm",textContent:e.toDisplayString(e.unref(n)("Copied"))},null,8,Fn)])):e.createCommentVNode("",!0)]),e.createVNode(c,{size:"small",variation:"primary",appearance:"filled",onClick:o},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)("Copy")),1)]),_:1})])])}}}),Rn=["role","aria-live"],Hn={class:"oc-flex oc-flex-middle oc-flex-between oc-width-1-1"},jn={class:"oc-flex oc-flex-middle"},qn={class:"oc-notification-message-title"},Kn={key:0,class:"oc-flex oc-flex-between oc-width-1-1 oc-mt-s"},Gn=["textContent"],Wn=["textContent"],dt=e.defineComponent({name:"OcNotificationMessage",status:"ready",release:"1.0.0",__name:"OcNotificationMessage",props:{status:{default:"passive"},title:{},message:{default:null},errorLogContent:{default:null},timeout:{default:5}},emits:["close"],setup(t,{emit:n}){const a=n,s=e.ref(!1);function o(){a("close")}const i=e.computed(()=>`oc-notification-message-${t.status}`),r=e.computed(()=>t.status),l=e.computed(()=>t.status==="danger"),u=e.computed(()=>l.value?"alert":"status"),c=e.computed(()=>l.value?"assertive":"polite");return e.onMounted(()=>{t.timeout!==0&&setTimeout(()=>{o()},t.timeout*1e3)}),(b,S)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["oc-fade-in oc-flex oc-flex-wrap oc-notification-message oc-box-shadow-medium oc-rounded oc-p-m",i.value])},[e.createElementVNode("div",{class:"oc-flex oc-flex-wrap oc-flex-middle oc-flex-1",role:u.value,"aria-live":c.value},[e.createElementVNode("div",Hn,[e.createElementVNode("div",jn,[e.createVNode(E,{variation:r.value,name:"information","fill-type":"line",class:"oc-mr-s"},null,8,["variation"]),e.createElementVNode("div",qn,e.toDisplayString(t.title),1)]),e.createVNode(L,{appearance:"raw","aria-label":b.$gettext("Close"),onClick:o},{default:e.withCtx(()=>[e.createVNode(E,{name:"close"})]),_:1},8,["aria-label"])]),t.message||t.errorLogContent?(e.openBlock(),e.createElementBlock("div",Kn,[t.message?(e.openBlock(),e.createElementBlock("span",{key:0,class:"oc-notification-message-content oc-text-muted oc-mr-s",textContent:e.toDisplayString(t.message)},null,8,Gn)):e.createCommentVNode("",!0),t.errorLogContent?(e.openBlock(),e.createBlock(L,{key:1,class:"oc-notification-message-error-log-toggle-button","gap-size":"none",appearance:"raw",onClick:S[0]||(S[0]=V=>s.value=!s.value)},{default:e.withCtx(()=>[e.createElementVNode("span",{textContent:e.toDisplayString(b.$gettext("Details"))},null,8,Wn),e.createVNode(E,{name:s.value?"arrow-up-s":"arrow-down-s"},null,8,["name"])]),_:1})):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),s.value?(e.openBlock(),e.createBlock(fe,{key:1,class:"oc-mt-m",content:t.errorLogContent},null,8,["content"])):e.createCommentVNode("",!0)],8,Rn)],2))}}),mt=e.defineComponent({name:"OcNotifications",status:"ready",release:"1.0.0",__name:"OcNotifications",props:{position:{default:"default"}},setup(t){const n=e.computed(()=>`oc-notification-${t.position}`);return(a,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["oc-notification oc-mb-s",n.value])},[e.renderSlot(a.$slots,"default")],2))}});var Un=Object.defineProperty,Xn=Object.defineProperties,Jn=Object.getOwnPropertyDescriptors,Ue=Object.getOwnPropertySymbols,Qn=Object.prototype.hasOwnProperty,Yn=Object.prototype.propertyIsEnumerable,Xe=(t,n,a)=>n in t?Un(t,n,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[n]=a,R=(t,n)=>{for(var a in n||(n={}))Qn.call(n,a)&&Xe(t,a,n[a]);if(Ue)for(var a of Ue(n))Yn.call(n,a)&&Xe(t,a,n[a]);return t},Je=(t,n)=>Xn(t,Jn(n));const Zn={props:{autoscroll:{type:Boolean,default:!0}},watch:{typeAheadPointer(){this.autoscroll&&this.maybeAdjustScroll()},open(t){this.autoscroll&&t&&this.$nextTick(()=>this.maybeAdjustScroll())}},methods:{maybeAdjustScroll(){var t;const n=((t=this.$refs.dropdownMenu)==null?void 0:t.children[this.typeAheadPointer])||!1;if(n){const a=this.getDropdownViewport(),{top:s,bottom:o,height:i}=n.getBoundingClientRect();if(s<a.top)return this.$refs.dropdownMenu.scrollTop=n.offsetTop;if(o>a.bottom)return this.$refs.dropdownMenu.scrollTop=n.offsetTop-(a.height-i)}},getDropdownViewport(){return this.$refs.dropdownMenu?this.$refs.dropdownMenu.getBoundingClientRect():{height:0,top:0,bottom:0}}}},_n={data(){return{typeAheadPointer:-1}},watch:{filteredOptions(){for(let t=0;t<this.filteredOptions.length;t++)if(this.selectable(this.filteredOptions[t])){this.typeAheadPointer=t;break}},open(t){t&&this.typeAheadToLastSelected()},selectedValue(){this.open&&this.typeAheadToLastSelected()}},methods:{typeAheadUp(){for(let t=this.typeAheadPointer-1;t>=0;t--)if(this.selectable(this.filteredOptions[t])){this.typeAheadPointer=t;break}},typeAheadDown(){for(let t=this.typeAheadPointer+1;t<this.filteredOptions.length;t++)if(this.selectable(this.filteredOptions[t])){this.typeAheadPointer=t;break}},typeAheadSelect(){const t=this.filteredOptions[this.typeAheadPointer];t&&this.selectable(t)&&this.select(t)},typeAheadToLastSelected(){this.typeAheadPointer=this.selectedValue.length!==0?this.filteredOptions.indexOf(this.selectedValue[this.selectedValue.length-1]):-1}}},ea={props:{loading:{type:Boolean,default:!1}},data(){return{mutableLoading:!1}},watch:{search(){this.$emit("search",this.search,this.toggleLoading)},loading(t){this.mutableLoading=t}},methods:{toggleLoading(t=null){return t==null?this.mutableLoading=!this.mutableLoading:this.mutableLoading=t}}},pe=(t,n)=>{const a=t.__vccOpts||t;for(const[s,o]of n)a[s]=o;return a},ta={},na={xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10"},aa=e.createElementVNode("path",{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"},null,-1),oa=[aa];function la(t,n){return e.openBlock(),e.createElementBlock("svg",na,oa)}const sa=pe(ta,[["render",la]]),ia={},ra={xmlns:"http://www.w3.org/2000/svg",width:"14",height:"10"},ca=e.createElementVNode("path",{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"},null,-1),ua=[ca];function da(t,n){return e.openBlock(),e.createElementBlock("svg",ra,ua)}const ma=pe(ia,[["render",da]]),Qe={Deselect:sa,OpenIndicator:ma},fa={mounted(t,{instance:n}){if(n.appendToBody){const{height:a,top:s,left:o,width:i}=n.$refs.toggle.getBoundingClientRect();let r=window.scrollX||window.pageXOffset,l=window.scrollY||window.pageYOffset;t.unbindPosition=n.calculatePosition(t,n,{width:i+"px",left:r+o+"px",top:l+s+a+"px"}),document.body.appendChild(t)}},unmounted(t,{instance:n}){n.appendToBody&&(t.unbindPosition&&typeof t.unbindPosition=="function"&&t.unbindPosition(),t.parentNode&&t.parentNode.removeChild(t))}};function pa(t){const n={};return Object.keys(t).sort().forEach(a=>{n[a]=t[a]}),JSON.stringify(n)}let ha=0;function ga(){return++ha}const ba={components:R({},Qe),directives:{appendToBody:fa},mixins:[Zn,_n,ea],compatConfig:{MODE:3},emits:["open","close","update:modelValue","search","search:compositionstart","search:compositionend","search:keydown","search:blur","search:focus","search:input","option:created","option:selecting","option:selected","option:deselecting","option:deselected"],props:{modelValue:{},components:{type:Object,default:()=>({})},options:{type:Array,default(){return[]}},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},deselectFromDropdown:{type:Boolean,default:!1},searchable:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},placeholder:{type:String,default:""},transition:{type:String,default:"vs__fade"},clearSearchOnSelect:{type:Boolean,default:!0},closeOnSelect:{type:Boolean,default:!0},label:{type:String,default:"label"},autocomplete:{type:String,default:"off"},reduce:{type:Function,default:t=>t},selectable:{type:Function,default:t=>!0},getOptionLabel:{type:Function,default(t){return typeof t=="object"?t.hasOwnProperty(this.label)?t[this.label]:console.warn(`[vue-select warn]: Label key "option.${this.label}" does not exist in options object ${JSON.stringify(t)}.
https://vue-select.org/api/props.html#getoptionlabel`):t}},getOptionKey:{type:Function,default(t){if(typeof t!="object")return t;try{return t.hasOwnProperty("id")?t.id:pa(t)}catch(n){return console.warn(`[vue-select warn]: Could not stringify this option to generate unique key. Please provide'getOptionKey' prop to return a unique key for each option.
https://vue-select.org/api/props.html#getoptionkey`,t,n)}}},onTab:{type:Function,default:function(){this.selectOnTab&&!this.isComposing&&this.typeAheadSelect()}},taggable:{type:Boolean,default:!1},tabindex:{type:Number,default:null},pushTags:{type:Boolean,default:!1},filterable:{type:Boolean,default:!0},filterBy:{type:Function,default(t,n,a){return(n||"").toLocaleLowerCase().indexOf(a.toLocaleLowerCase())>-1}},filter:{type:Function,default(t,n){return t.filter(a=>{let s=this.getOptionLabel(a);return typeof s=="number"&&(s=s.toString()),this.filterBy(a,s,n)})}},createOption:{type:Function,default(t){return typeof this.optionList[0]=="object"?{[this.label]:t}:t}},resetOnOptionsChange:{default:!1,validator:t=>["function","boolean"].includes(typeof t)},clearSearchOnBlur:{type:Function,default:function({clearSearchOnSelect:t,multiple:n}){return t&&!n}},noDrop:{type:Boolean,default:!1},inputId:{type:String},dir:{type:String,default:"auto"},selectOnTab:{type:Boolean,default:!1},selectOnKeyCodes:{type:Array,default:()=>[13]},searchInputQuerySelector:{type:String,default:"[type=search]"},mapKeydown:{type:Function,default:(t,n)=>t},appendToBody:{type:Boolean,default:!1},calculatePosition:{type:Function,default(t,n,{width:a,top:s,left:o}){t.style.top=s,t.style.left=o,t.style.width=a}},dropdownShouldOpen:{type:Function,default({noDrop:t,open:n,mutableLoading:a}){return t?!1:n&&!a}},uid:{type:[String,Number],default:()=>ga()}},data(){return{search:"",open:!1,isComposing:!1,pushedTags:[],_value:[],deselectButtons:[]}},computed:{isReducingValues(){return this.$props.reduce!==this.$options.props.reduce.default},isTrackingValues(){return typeof this.modelValue>"u"||this.isReducingValues},selectedValue(){let t=this.modelValue;return this.isTrackingValues&&(t=this.$data._value),t!=null&&t!==""?[].concat(t):[]},optionList(){return this.options.concat(this.pushTags?this.pushedTags:[])},searchEl(){return this.$slots.search?this.$refs.selectedOptions.querySelector(this.searchInputQuerySelector):this.$refs.search},scope(){const t={search:this.search,loading:this.loading,searching:this.searching,filteredOptions:this.filteredOptions};return{search:{attributes:R({disabled:this.disabled,placeholder:this.searchPlaceholder,tabindex:this.tabindex,readonly:!this.searchable,id:this.inputId,"aria-autocomplete":"list","aria-labelledby":`vs${this.uid}__combobox`,"aria-controls":`vs${this.uid}__listbox`,ref:"search",type:"search",autocomplete:this.autocomplete,value:this.search},this.dropdownOpen&&this.filteredOptions[this.typeAheadPointer]?{"aria-activedescendant":`vs${this.uid}__option-${this.typeAheadPointer}`}:{}),events:{compositionstart:()=>this.isComposing=!0,compositionend:()=>this.isComposing=!1,keydown:this.onSearchKeyDown,blur:this.onSearchBlur,focus:this.onSearchFocus,input:n=>this.search=n.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:t,listFooter:t,header:Je(R({},t),{deselect:this.deselect}),footer:Je(R({},t),{deselect:this.deselect})}},childComponents(){return R(R({},Qe),this.components)},stateClasses(){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(){return!!this.search},dropdownOpen(){return this.dropdownShouldOpen(this)},searchPlaceholder(){return this.isValueEmpty&&this.placeholder?this.placeholder:void 0},filteredOptions(){const t=[].concat(this.optionList);if(!this.filterable&&!this.taggable)return t;const n=this.search.length?this.filter(t,this.search,this):t;if(this.taggable&&this.search.length){const a=this.createOption(this.search);this.optionExists(a)||n.unshift(a)}return n},isValueEmpty(){return this.selectedValue.length===0},showClearButton(){return!this.multiple&&this.clearable&&!this.open&&!this.isValueEmpty}},watch:{options(t,n){const a=()=>typeof this.resetOnOptionsChange=="function"?this.resetOnOptionsChange(t,n,this.selectedValue):this.resetOnOptionsChange;!this.taggable&&a()&&this.clearSelection(),this.modelValue&&this.isTrackingValues&&this.setInternalValueFromOptions(this.modelValue)},modelValue:{immediate:!0,handler(t){this.isTrackingValues&&this.setInternalValueFromOptions(t)}},multiple(){this.clearSelection()},open(t){this.$emit(t?"open":"close")}},created(){this.mutableLoading=this.loading},methods:{setInternalValueFromOptions(t){Array.isArray(t)?this.$data._value=t.map(n=>this.findOptionFromReducedValue(n)):this.$data._value=this.findOptionFromReducedValue(t)},select(t){this.$emit("option:selecting",t),this.isOptionSelected(t)?this.deselectFromDropdown&&(this.clearable||this.multiple&&this.selectedValue.length>1)&&this.deselect(t):(this.taggable&&!this.optionExists(t)&&(this.$emit("option:created",t),this.pushTag(t)),this.multiple&&(t=this.selectedValue.concat(t)),this.updateValue(t),this.$emit("option:selected",t)),this.onAfterSelect(t)},deselect(t){this.$emit("option:deselecting",t),this.updateValue(this.selectedValue.filter(n=>!this.optionComparator(n,t))),this.$emit("option:deselected",t)},clearSelection(){this.updateValue(this.multiple?[]:null)},onAfterSelect(t){this.closeOnSelect&&(this.open=!this.open,this.searchEl.blur()),this.clearSearchOnSelect&&(this.search="")},updateValue(t){typeof this.modelValue>"u"&&(this.$data._value=t),t!==null&&(Array.isArray(t)?t=t.map(n=>this.reduce(n)):t=this.reduce(t)),this.$emit("update:modelValue",t)},toggleDropdown(t){const n=t.target!==this.searchEl;n&&t.preventDefault();const a=[...this.deselectButtons||[],this.$refs.clearButton];if(this.searchEl===void 0||a.filter(Boolean).some(s=>s.contains(t.target)||s===t.target)){t.preventDefault();return}this.open&&n?this.searchEl.blur():this.disabled||(this.open=!0,this.searchEl.focus())},isOptionSelected(t){return this.selectedValue.some(n=>this.optionComparator(n,t))},isOptionDeselectable(t){return this.isOptionSelected(t)&&this.deselectFromDropdown},optionComparator(t,n){return this.getOptionKey(t)===this.getOptionKey(n)},findOptionFromReducedValue(t){const n=s=>JSON.stringify(this.reduce(s))===JSON.stringify(t),a=[...this.options,...this.pushedTags].filter(n);return a.length===1?a[0]:a.find(s=>this.optionComparator(s,this.$data._value))||t},closeSearchOptions(){this.open=!1,this.$emit("search:blur")},maybeDeleteValue(){if(!this.searchEl.value.length&&this.selectedValue&&this.selectedValue.length&&this.clearable){let t=null;this.multiple&&(t=[...this.selectedValue.slice(0,this.selectedValue.length-1)]),this.updateValue(t)}},optionExists(t){return this.optionList.some(n=>this.optionComparator(n,t))},normalizeOptionForSlot(t){return typeof t=="object"?t:{[this.label]:t}},pushTag(t){this.pushedTags.push(t)},onEscape(){this.search.length?this.search="":this.searchEl.blur()},onSearchBlur(){if(this.mousedown&&!this.searching)this.mousedown=!1;else{const{clearSearchOnSelect:t,multiple:n}=this;this.clearSearchOnBlur({clearSearchOnSelect:t,multiple:n})&&(this.search=""),this.closeSearchOptions();return}if(this.search.length===0&&this.options.length===0){this.closeSearchOptions();return}},onSearchFocus(){this.open=!0,this.$emit("search:focus")},onMousedown(){this.mousedown=!0},onMouseUp(){this.mousedown=!1},onSearchKeyDown(t){const n=o=>(o.preventDefault(),!this.isComposing&&this.typeAheadSelect()),a={8:o=>this.maybeDeleteValue(),9:o=>this.onTab(),27:o=>this.onEscape(),38:o=>(o.preventDefault(),this.typeAheadUp()),40:o=>(o.preventDefault(),this.typeAheadDown())};this.selectOnKeyCodes.forEach(o=>a[o]=n);const s=this.mapKeydown(a,this);if(typeof s[t.keyCode]=="function")return s[t.keyCode](t)}}},ya=["dir"],ka=["id","aria-expanded","aria-owns"],va={ref:"selectedOptions",class:"vs__selected-options"},Ca=["disabled","title","aria-label","onClick"],wa={ref:"actions",class:"vs__actions"},Ba=["disabled"],xa={class:"vs__spinner"},$a=["id"],Oa=["id","aria-selected","onMouseover","onClick"],Sa={key:0,class:"vs__no-options"},Va=e.createTextVNode(" Sorry, no matching options. "),Ea=["id"];function Da(t,n,a,s,o,i){const r=e.resolveDirective("append-to-body");return e.openBlock(),e.createElementBlock("div",{dir:a.dir,class:e.normalizeClass(["v-select",i.stateClasses])},[e.renderSlot(t.$slots,"header",e.normalizeProps(e.guardReactiveProps(i.scope.header))),e.createElementVNode("div",{id:`vs${a.uid}__combobox`,ref:"toggle",class:"vs__dropdown-toggle",role:"combobox","aria-expanded":i.dropdownOpen.toString(),"aria-owns":`vs${a.uid}__listbox`,"aria-label":"Search for option",onMousedown:n[1]||(n[1]=l=>i.toggleDropdown(l))},[e.createElementVNode("div",va,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.selectedValue,(l,u)=>e.renderSlot(t.$slots,"selected-option-container",{option:i.normalizeOptionForSlot(l),deselect:i.deselect,multiple:a.multiple,disabled:a.disabled},()=>[(e.openBlock(),e.createElementBlock("span",{key:a.getOptionKey(l),class:"vs__selected"},[e.renderSlot(t.$slots,"selected-option",e.normalizeProps(e.guardReactiveProps(i.normalizeOptionForSlot(l))),()=>[e.createTextVNode(e.toDisplayString(a.getOptionLabel(l)),1)]),a.multiple?(e.openBlock(),e.createElementBlock("button",{key:0,ref_for:!0,ref:c=>o.deselectButtons[u]=c,disabled:a.disabled,type:"button",class:"vs__deselect",title:`Deselect ${a.getOptionLabel(l)}`,"aria-label":`Deselect ${a.getOptionLabel(l)}`,onClick:c=>i.deselect(l)},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(i.childComponents.Deselect)))],8,Ca)):e.createCommentVNode("",!0)]))])),256)),e.renderSlot(t.$slots,"search",e.normalizeProps(e.guardReactiveProps(i.scope.search)),()=>[e.createElementVNode("input",e.mergeProps({class:"vs__search"},i.scope.search.attributes,e.toHandlers(i.scope.search.events)),null,16)])],512),e.createElementVNode("div",wa,[e.withDirectives(e.createElementVNode("button",{ref:"clearButton",disabled:a.disabled,type:"button",class:"vs__clear",title:"Clear Selected","aria-label":"Clear Selected",onClick:n[0]||(n[0]=(...l)=>i.clearSelection&&i.clearSelection(...l))},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(i.childComponents.Deselect)))],8,Ba),[[e.vShow,i.showClearButton]]),e.renderSlot(t.$slots,"open-indicator",e.normalizeProps(e.guardReactiveProps(i.scope.openIndicator)),()=>[a.noDrop?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(i.childComponents.OpenIndicator),e.normalizeProps(e.mergeProps({key:0},i.scope.openIndicator.attributes)),null,16))]),e.renderSlot(t.$slots,"spinner",e.normalizeProps(e.guardReactiveProps(i.scope.spinner)),()=>[e.withDirectives(e.createElementVNode("div",xa,"Loading...",512),[[e.vShow,t.mutableLoading]])])],512)],40,ka),e.createVNode(e.Transition,{name:a.transition},{default:e.withCtx(()=>[i.dropdownOpen?e.withDirectives((e.openBlock(),e.createElementBlock("ul",{id:`vs${a.uid}__listbox`,ref:"dropdownMenu",key:`vs${a.uid}__listbox`,class:"vs__dropdown-menu",role:"listbox",tabindex:"-1",onMousedown:n[2]||(n[2]=e.withModifiers((...l)=>i.onMousedown&&i.onMousedown(...l),["prevent"])),onMouseup:n[3]||(n[3]=(...l)=>i.onMouseUp&&i.onMouseUp(...l))},[e.renderSlot(t.$slots,"list-header",e.normalizeProps(e.guardReactiveProps(i.scope.listHeader))),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.filteredOptions,(l,u)=>(e.openBlock(),e.createElementBlock("li",{id:`vs${a.uid}__option-${u}`,key:a.getOptionKey(l),role:"option",class:e.normalizeClass(["vs__dropdown-option",{"vs__dropdown-option--deselect":i.isOptionDeselectable(l)&&u===t.typeAheadPointer,"vs__dropdown-option--selected":i.isOptionSelected(l),"vs__dropdown-option--highlight":u===t.typeAheadPointer,"vs__dropdown-option--disabled":!a.selectable(l)}]),"aria-selected":u===t.typeAheadPointer?!0:null,onMouseover:c=>a.selectable(l)?t.typeAheadPointer=u:null,onClick:e.withModifiers(c=>a.selectable(l)?i.select(l):null,["prevent","stop"])},[e.renderSlot(t.$slots,"option",e.normalizeProps(e.guardReactiveProps(i.normalizeOptionForSlot(l))),()=>[e.createTextVNode(e.toDisplayString(a.getOptionLabel(l)),1)])],42,Oa))),128)),i.filteredOptions.length===0?(e.openBlock(),e.createElementBlock("li",Sa,[e.renderSlot(t.$slots,"no-options",e.normalizeProps(e.guardReactiveProps(i.scope.noOptions)),()=>[Va])])):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"list-footer",e.normalizeProps(e.guardReactiveProps(i.scope.listFooter)))],40,$a)),[[r]]):(e.openBlock(),e.createElementBlock("ul",{key:1,id:`vs${a.uid}__listbox`,role:"listbox",style:{display:"none",visibility:"hidden"}},null,8,Ea))]),_:3},8,["name"]),e.renderSlot(t.$slots,"footer",e.normalizeProps(e.guardReactiveProps(i.scope.footer)))],10,ya)}const Ye=pe(ba,[["render",Da]]),Na=["for","textContent"],Ta=["textContent"],La={key:0,class:"oc-flex oc-flex-middle oc-ml-s oc-mr-xs"},za=["id","textContent"],he=e.defineComponent({name:"OcSelect",status:"ready",release:"4.3.0",components:{VueSelect:Ye},__name:"OcSelect",props:{id:{default:()=>v.uniqueId("oc-select-")},filter:{type:Function,default:(t,n,{label:a})=>{if(t.length<1)return[];const s=new It(t,{...a&&{keys:[a]},shouldSort:!0,threshold:0,ignoreLocation:!0,distance:100,minMatchCharLength:1});return n.length?s.search(n).map(({item:o})=>o):t}},disabled:{type:Boolean,default:!1},label:{},labelHidden:{type:Boolean,default:!1},contextualHelper:{default:null},optionLabel:{default:"label"},getOptionLabel:{type:Function,default:null},searchable:{type:Boolean,default:!0},clearable:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},warningMessage:{default:null},errorMessage:{default:null},fixMessageLine:{type:Boolean,default:!1},descriptionMessage:{default:null},multiple:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},positionFixed:{type:Boolean,default:!1}},emits:["search:input","update:modelValue"],setup(t,{emit:n}){const a=n,{$gettext:s}=I.useGettext(),o=e.ref(),i=e.useAttrs(),r=()=>{e.unref(o).$el.querySelector("div:first-child")?.setAttribute("aria-label",`${t.label} - ${s("Search for option")}`)},l=f=>{a("search:input",f.target.value)},u=e.ref(!1),c=f=>{u.value=f},b=({noDrop:f,open:h,mutableLoading:O})=>!f&&h&&!O&&e.unref(u),S=()=>{c(!0)},V=()=>{c(!1)},y=async()=>{const h=e.unref(o).$refs.dropdownMenu.querySelectorAll("li")[e.unref(o).typeAheadPointer];h&&(await e.nextTick(),h.classList.add("keyboard-outline"))},m=f=>({...f,13:h=>{if(!e.unref(u)){c(!0);return}f[13](h),e.unref(o).searchEl.focus()},40:async h=>{h.preventDefault(),e.unref(o).typeAheadDown(),e.unref(p)&&await y()},38:async h=>{h.preventDefault(),e.unref(o).typeAheadUp(),e.unref(p)&&await y()}}),g=async f=>{if(f.key==="Enter"||f.key==="Tab"){e.unref(p)&&await y();return}c(!0)},x=()=>{const f=e.unref(o).$refs.dropdownMenu;if(!f)return;const h=e.unref(o).$refs.toggle.getBoundingClientRect(),M=Math.min(window.innerHeight-h.bottom-25,window.innerHeight);f.style.maxHeight=`${M}px`,f.style.width=`${h.width}px`,f.style.top=`${h.top+h.height+1}px`,f.style.left=`${h.left}px`},p=e.computed(()=>e.unref(o)?.dropdownOpen),$=e.computed(()=>t.getOptionLabel||(f=>{if(typeof f=="object"){const h=t.optionLabel||t.label;return Object.hasOwn(f,h)?f[h]:(console.warn(`[vue-select warn]: Label key "option.${h}" does not exist in options object ${JSON.stringify(f)}.
https://vue-select.org/api/html#getoptionlabel`),"")}return f})),z=e.computed(()=>{const f={};return f["input-id"]=t.id,f.getOptionLabel=e.unref($),f.label=t.optionLabel,{...i,...f}}),w=e.computed(()=>t.fixMessageLine||!!t.warningMessage||!!t.errorMessage||!!t.descriptionMessage),T=e.computed(()=>t.errorMessage?t.errorMessage:t.warningMessage?t.warningMessage:t.descriptionMessage),B=e.computed(()=>`${t.id}-message`);return e.watch(p,async()=>{t.positionFixed&&e.unref(p)&&(await e.nextTick(),x())}),e.onMounted(()=>{r(),t.positionFixed&&window.addEventListener("resize",x)}),e.onBeforeUnmount(()=>{t.positionFixed&&window.removeEventListener("resize",x)}),(f,h)=>{const O=e.resolveComponent("oc-contextual-helper"),M=e.resolveComponent("oc-spinner"),d=e.resolveComponent("oc-icon"),D=e.resolveComponent("oc-button");return e.openBlock(),e.createElementBlock("div",null,[t.labelHidden?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("label",{key:0,"aria-hidden":!0,for:t.id,class:"oc-label",textContent:e.toDisplayString(t.label)},null,8,Na)),t.contextualHelper?.isEnabled?(e.openBlock(),e.createBlock(O,e.mergeProps({key:1},t.contextualHelper?.data,{class:"oc-pl-xs"}),null,16)):e.createCommentVNode("",!0),e.createVNode(e.unref(Ye),e.mergeProps({ref_key:"select",ref:o,disabled:t.disabled||t.readOnly,filter:t.filter,loading:t.loading,searchable:t.searchable,clearable:t.clearable,multiple:t.multiple,class:["oc-select",{"oc-select-position-fixed":t.positionFixed}],style:{background:"transparent"},"dropdown-should-open":b,"map-keydown":m},z.value,{"onUpdate:modelValue":h[1]||(h[1]=C=>f.$emit("update:modelValue",C)),onClick:h[2]||(h[2]=C=>S()),"onSearch:blur":h[3]||(h[3]=C=>V()),onKeydown:h[4]||(h[4]=C=>g(C))}),e.createSlots({search:e.withCtx(({attributes:C,events:k})=>[e.createElementVNode("input",e.mergeProps({class:"vs__search"},C,{onInput:l},e.toHandlers(k,!0)),null,16)]),"no-options":e.withCtx(()=>[e.createElementVNode("div",{textContent:e.toDisplayString(e.unref(s)("No options available."))},null,8,Ta)]),spinner:e.withCtx(({loading:C})=>[C?(e.openBlock(),e.createBlock(M,{key:0})):e.createCommentVNode("",!0)]),"selected-option-container":e.withCtx(({option:C,deselect:k})=>[e.createElementVNode("span",{class:e.normalizeClass(["vs__selected",{"vs__selected-readonly":C.readonly}])},[e.renderSlot(f.$slots,"selected-option",e.normalizeProps(e.guardReactiveProps(C)),()=>[t.readOnly?(e.openBlock(),e.createBlock(d,{key:0,name:"lock",class:"oc-mr-xs",size:"small"})):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString($.value(C)),1)]),t.multiple?(e.openBlock(),e.createElementBlock("span",La,[C.readonly?(e.openBlock(),e.createBlock(d,{key:0,class:"vs__deselect-lock",name:"lock",size:"small"})):(e.openBlock(),e.createBlock(D,{key:1,appearance:"raw",title:e.unref(s)("Deselect %{label}",{label:$.value(C)}),"aria-label":e.unref(s)("Deselect %{label}",{label:$.value(C)}),class:"vs__deselect oc-mx-rm",onMousedown:h[0]||(h[0]=e.withModifiers(()=>{},["stop","prevent"])),onClick:P=>k(C)},{default:e.withCtx(()=>[e.createVNode(d,{name:"close",size:"small"})]),_:1},8,["title","aria-label","onClick"]))])):e.createCommentVNode("",!0)],2)]),_:2},[e.renderList(f.$slots,(C,k)=>({name:k,fn:e.withCtx(P=>[k!=="search"?e.renderSlot(f.$slots,k,e.normalizeProps(e.mergeProps({key:0},P))):e.createCommentVNode("",!0)])}))]),1040,["disabled","filter","loading","searchable","clearable","multiple","class"]),w.value?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(["oc-text-input-message",{"oc-text-input-description":!!t.descriptionMessage,"oc-text-input-warning":!!t.warningMessage,"oc-text-input-danger":!!t.errorMessage}])},[T.value!==null&&t.descriptionMessage?(e.openBlock(),e.createBlock(d,{key:0,name:"information",size:"small","fill-type":"line"})):e.createCommentVNode("",!0),e.createElementVNode("span",{id:B.value,class:e.normalizeClass({"oc-text-input-description":!!t.descriptionMessage,"oc-text-input-warning":!!t.warningMessage,"oc-text-input-danger":!!t.errorMessage}),textContent:e.toDisplayString(T.value)},null,10,za)],2)):e.createCommentVNode("",!0)])}}}),Ma={class:"oc-page-size"},Pa=["for","textContent"],ft=e.defineComponent({name:"OcPageSize",status:"ready",release:"8.0.0",__name:"OcPageSize",props:{options:{},label:{},selected:{},selectId:{default:()=>v.uniqueId("oc-page-size-")}},emits:["change"],setup(t,{emit:n}){const a=n;function s(o){a("change",o)}return(o,i)=>(e.openBlock(),e.createElementBlock("div",Ma,[e.createElementVNode("label",{class:"oc-page-size-label",for:t.selectId,"data-testid":"oc-page-size-label","aria-hidden":!0,textContent:e.toDisplayString(t.label)},null,8,Pa),e.createVNode(he,{"input-id":t.selectId,class:"oc-page-size-select","data-testid":"oc-page-size-select","model-value":t.selected,label:t.label,"label-hidden":!0,options:t.options,clearable:!1,searchable:!1,"onUpdate:modelValue":s},null,8,["input-id","model-value","label","options"])]))}}),Ia=["aria-label"],Aa={class:"oc-pagination-list"},Fa={key:0,class:"oc-pagination-list-item"},Ra={key:1,class:"oc-pagination-list-item"},pt=e.defineComponent({name:"OcPagination",status:"ready",release:"7.2.0",__name:"OcPagination",props:{pages:{},currentPage:{},maxDisplayed:{default:null},currentRoute:{}},setup(t){const{$gettext:n}=I.useGettext();function a(m){return n("Go to page %{ page }",{page:m.toString()})}function s(m){return e.unref(y)===m}function o(m){return m==="..."||s(m)?"span":"router-link"}function i(m){if(m==="...")return;if(s(m))return{"aria-current":"page"};const g=l(m);return{"aria-label":a(m),to:g}}function r(m){const g=["oc-pagination-list-item-page"];return s(m)?g.push("oc-pagination-list-item-current"):m==="..."?g.push("oc-pagination-list-item-ellipsis"):g.push("oc-pagination-list-item-link"),g}function l(m){return{name:t.currentRoute.name,query:{...t.currentRoute.query,page:m},params:t.currentRoute.params}}const u=e.computed(()=>{let m=[];for(let g=0;g<t.pages;g++)m.push(g+1);if(t.maxDisplayed&&t.maxDisplayed+1<t.pages){const g=e.unref(y)-1,x=Math.floor(t.maxDisplayed/2);return m=m.slice(Math.max(0,g-x),g+x+1),e.unref(y)>2&&(Number(m[0])>2?m.unshift(1,"..."):m.unshift(1)),e.unref(y)<t.pages-1&&(Number(m[m.length-1])<t.pages-1?m.push("...",t.pages):m.push(t.pages)),m}return m}),c=e.computed(()=>e.unref(y)>1),b=e.computed(()=>e.unref(y)<t.pages),S=e.computed(()=>l(e.unref(y)-1)),V=e.computed(()=>l(e.unref(y)+1)),y=e.computed(()=>Math.max(1,Math.min(t.currentPage,t.pages)));return(m,g)=>{const x=e.resolveComponent("router-link");return e.openBlock(),e.createElementBlock("nav",{class:"oc-pagination","aria-label":e.unref(n)("Pagination")},[e.createElementVNode("ol",Aa,[c.value?(e.openBlock(),e.createElementBlock("li",Fa,[e.createVNode(x,{class:"oc-pagination-list-item-prev","aria-label":e.unref(n)("Go to the previous page"),to:S.value},{default:e.withCtx(()=>[e.createVNode(E,{name:"arrow-drop-left","fill-type":"line"})]),_:1},8,["aria-label","to"])])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value,(p,$)=>(e.openBlock(),e.createElementBlock("li",{key:$,class:"oc-pagination-list-item"},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o(p)),e.mergeProps({class:r(p)},{ref_for:!0},i(p)),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(p),1)]),_:2},1040,["class"]))]))),128)),b.value?(e.openBlock(),e.createElementBlock("li",Ra,[e.createVNode(x,{class:"oc-pagination-list-item-next","aria-label":e.unref(n)("Go to the next page"),to:V.value},{default:e.withCtx(()=>[e.createVNode(E,{name:"arrow-drop-right","fill-type":"line"})]),_:1},8,["aria-label","to"])])):e.createCommentVNode("",!0)])],8,Ia)}}}),Ha=["aria-valuemax","aria-valuenow"],ja={key:1,class:"oc-progress-indeterminate"},ht=e.defineComponent({name:"OcProgress",status:"ready",release:"1.0.0",__name:"OcProgress",props:{value:{default:0},max:{default:()=>{}},size:{default:"default"},variation:{default:"primary"},indeterminate:{type:Boolean,default:!1}},setup(t){const n=e.computed(()=>`oc-progress oc-progress-${t.size} oc-progress-${t.variation}`),a=e.computed(()=>t.max?`${t.value/t.max*100}%`:"-");return(s,o)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(n.value),"aria-valuemax":t.max,"aria-valuenow":t.value,"aria-busy":"true","aria-valuemin":"0",role:"progressbar"},[t.indeterminate?(e.openBlock(),e.createElementBlock("div",ja,[...o[0]||(o[0]=[e.createElementVNode("div",{class:"oc-progress-indeterminate-first"},null,-1),e.createElementVNode("div",{class:"oc-progress-indeterminate-second"},null,-1)])])):(e.openBlock(),e.createElementBlock("div",{key:0,class:"oc-progress-current",style:e.normalizeStyle({width:a.value})},null,4))],10,Ha))}}),qa=["data-fill"],Ka=["textContent"],ge=e.defineComponent({name:"OcProgressPie",status:"ready",release:"1.0.0",__name:"OcProgressPie",props:{progress:{default:0},max:{default:100},showLabel:{type:Boolean,default:!1}},setup(t){const n=e.computed(()=>Math.round(100/t.max*t.progress)),a=e.computed(()=>t.max===100?t.progress+"%":`${t.progress}/${t.max}`);return(s,o)=>(e.openBlock(),e.createElementBlock("div",{class:"oc-progress-pie","data-fill":n.value},[o[0]||(o[0]=e.createElementVNode("div",{class:"oc-progress-pie-container"},null,-1)),t.showLabel?(e.openBlock(),e.createElementBlock("label",{key:0,class:"oc-progress-pie-label oc-text-muted",textContent:e.toDisplayString(a.value)},null,8,Ka)):e.createCommentVNode("",!0)],8,qa))}}),Ze={};typeof Ze=="function"&&Ze(ge);const Ga=["id","aria-checked","value","disabled"],Wa=["for","textContent"],gt=e.defineComponent({name:"OcRadio",status:"ready",release:"1.0.0",__name:"OcRadio",props:{id:{default:()=>v.uniqueId("oc-radio-")},disabled:{type:Boolean,default:!1},modelValue:{default:!1},option:{default:null},label:{default:null},hideLabel:{type:Boolean,default:!1},size:{default:"medium"}},emits:["update:modelValue"],setup(t,{emit:n}){const a=n,s=e.computed({get(){return t.modelValue},set(r){a("update:modelValue",r)}}),o=e.computed(()=>["oc-radio","oc-radio-"+v.getSizeClass(t.size)]),i=e.computed(()=>({"oc-invisible-sr":t.hideLabel,"oc-cursor-pointer":!t.disabled}));return(r,l)=>(e.openBlock(),e.createElementBlock("span",null,[e.withDirectives(e.createElementVNode("input",{id:t.id,"onUpdate:modelValue":l[0]||(l[0]=u=>s.value=u),type:"radio",name:"radio",class:e.normalizeClass(o.value),"aria-checked":t.option===t.modelValue,value:t.option,disabled:t.disabled},null,10,Ga),[[e.vModelRadio,s.value]]),e.createElementVNode("label",{for:t.id,class:e.normalizeClass(i.value),textContent:e.toDisplayString(t.label)},null,10,Wa)]))}}),Ua=["aria-label"],q=e.defineComponent({name:"OcSpinner",status:"ready",release:"1.0.0",__name:"OcSpinner",props:{ariaLabel:{default:""},size:{default:"medium"}},setup(t){const n=e.computed(()=>["oc-spinner",`oc-spinner-${v.getSizeClass(t.size)}`]);return(a,s)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(n.value),"aria-label":t.ariaLabel,tabindex:"-1",role:"img"},null,10,Ua))}}),_e={};typeof _e=="function"&&_e(q);const Xa={class:"oc-recipient"},Ja=["textContent"],bt=e.defineComponent({name:"OcRecipient",status:"ready",release:"8.2.0",__name:"OcRecipient",props:{recipient:{}},setup(t){return(n,a)=>(e.openBlock(),e.createElementBlock("span",Xa,[t.recipient.hasAvatar?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[t.recipient.isLoadingAvatar?(e.openBlock(),e.createBlock(q,{key:"recipient-avatar-spinner",size:"small","aria-label":n.$gettext("Loading avatar"),"data-testid":"recipient-avatar-spinner"},null,8,["aria-label"])):(e.openBlock(),e.createBlock(j,{key:t.recipient.avatar||t.recipient.name,"data-testid":"recipient-avatar",class:"oc-recipient-avatar",src:t.recipient.avatar,"user-name":t.recipient.name,width:16.8},null,8,["src","user-name"]))],64)):t.recipient.icon&&t.recipient.icon.name?(e.openBlock(),e.createBlock(E,{key:1,class:"oc-recipient-icon",size:"small",name:t.recipient.icon.name,"accessible-label":t.recipient.icon.label,"data-testid":"recipient-icon"},null,8,["name","accessible-label"])):e.createCommentVNode("",!0),e.createElementVNode("p",{class:"oc-recipient-name","data-testid":"recipient-name",textContent:e.toDisplayString(t.recipient.name)},null,8,Ja),e.renderSlot(n.$slots,"append")]))}}),Qa={class:"oc-width-expand oc-position-relative"},Ya=["aria-label","value","disabled","placeholder"],Za=["textContent"],yt=e.defineComponent({name:"OcSearchBar",status:"ready",release:"1.0.0",__name:"OcSearchBar",props:{value:{default:null},icon:{default:"search"},placeholder:{default:""},label:{default:""},small:{type:Boolean,default:!1},buttonLabel:{default:"Search"},buttonHidden:{type:Boolean,default:!1},typeAhead:{type:Boolean,default:!1},trimQuery:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},isFilter:{type:Boolean,default:!1},loadingAccessibleLabel:{default:""},showCancelButton:{type:Boolean,default:!1},cancelButtonVariation:{default:"primary"},cancelButtonAppearance:{default:"raw"},cancelHandler:{type:Function,default:()=>{}}},emits:["advancedSearch","clear","input","keyup","search"],setup(t,{emit:n}){e.useCssVars(m=>({v4af58a24:c.value}));const a=n,s=e.useSlots(),o=e.ref(""),{$gettext:i}=I.useGettext();function r(){a("search",e.unref(o))}function l(m){o.value=t.trimQuery?m.trim():m,a("input",e.unref(o)),t.typeAhead&&r()}function u(){o.value="",l(""),r(),t.cancelHandler()}e.watch(()=>t.value,()=>{t.value||(o.value="")});const c=e.computed(()=>s.locationFilter?.().length>0?"125px":"48px"),b=e.computed(()=>t.value===null?e.unref(o):t.value),S=e.computed(()=>t.small?"xsmall":"medium"),V=e.computed(()=>{const m=["oc-search-input","oc-input"];return!t.buttonHidden&&m.push("oc-search-input-button"),m}),y=e.computed(()=>t.loadingAccessibleLabel||i("Loading results"));return(m,g)=>{const x=e.resolveDirective("oc-tooltip");return e.openBlock(),e.createBlock(ue,{flex:"",role:t.isFilter?void 0:"search",class:e.normalizeClass(["oc-search oc-flex-middle",{"oc-search-small":t.small}])},{default:e.withCtx(()=>[e.createElementVNode("div",Qa,[e.createElementVNode("input",{ref:"searchInput",class:e.normalizeClass(V.value),"aria-label":t.label,value:b.value,disabled:t.loading,placeholder:t.placeholder,onInput:g[0]||(g[0]=p=>l(p.target.value)),onKeydown:e.withKeys(r,["enter"]),onKeyup:g[1]||(g[1]=p=>m.$emit("keyup",p))},null,42,Ya),e.renderSlot(m.$slots,"locationFilter"),t.icon?e.withDirectives((e.openBlock(),e.createBlock(L,{key:0,"aria-label":e.unref(i)("Search"),class:"oc-position-small oc-position-center-right oc-mt-rm",appearance:"raw",onClick:g[2]||(g[2]=e.withModifiers(p=>m.$emit("advancedSearch",p),["prevent","stop"]))},{default:e.withCtx(()=>[e.withDirectives(e.createVNode(E,{name:t.icon,size:"small","fill-type":"line",variation:"passive"},null,8,["name"]),[[e.vShow,!t.loading]]),e.withDirectives(e.createVNode(q,{size:S.value,"aria-label":y.value},null,8,["size","aria-label"]),[[e.vShow,t.loading]])]),_:1},8,["aria-label"])),[[x,e.unref(i)("Search")]]):e.createCommentVNode("",!0)]),e.createElementVNode("div",{class:e.normalizeClass(["oc-search-button-wrapper",{"oc-invisible-sr":t.buttonHidden}])},[e.createVNode(L,{class:"oc-search-button",variation:"primary",appearance:"filled",size:t.small?"small":"medium",disabled:t.loading||b.value.length<1,onClick:r},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.buttonLabel),1)]),_:1},8,["size","disabled"])],2),t.showCancelButton?(e.openBlock(),e.createBlock(L,{key:0,variation:t.cancelButtonVariation,appearance:t.cancelButtonAppearance,class:"oc-ml-m",onClick:u},{default:e.withCtx(()=>[e.createElementVNode("span",{textContent:e.toDisplayString(e.unref(i)("Cancel"))},null,8,Za)]),_:1},8,["variation","appearance"])):e.createCommentVNode("",!0)]),_:3},8,["role","class"])}}}),_a={class:"oc-status-indicators"},eo=["id","textContent"],be=e.defineComponent({name:"OcStatusIndicators",status:"ready",release:"2.0.1",__name:"OcStatusIndicators",props:{resource:{},indicators:{},disableHandler:{type:Boolean,default:!1}},setup(t){const n=e.ref({}),a=o=>Object.prototype.hasOwnProperty.call(o,"handler"),s=o=>o.accessibleDescription?(e.unref(n)[o.id]||(e.unref(n)[o.id]=v.uniqueId("oc-indicator-description-")),e.unref(n)[o.id]):null;return(o,i)=>{const r=e.resolveDirective("oc-tooltip");return e.openBlock(),e.createElementBlock("div",_a,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.indicators,l=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[a(l)&&!t.disableHandler?e.withDirectives((e.openBlock(),e.createBlock(L,{id:l.id,key:`${l.id}-handler`,class:"oc-status-indicators-indicator oc-ml-xs","aria-label":o.$gettext(l.label),"aria-describedby":s(l),appearance:"raw","data-testid":l.id,"data-test-indicator-type":l.type,onClick:u=>l.handler(t.resource)},{default:e.withCtx(()=>[e.createVNode(E,{name:l.icon,size:"small","fill-type":l.fillType,variation:"inherit"},null,8,["name","fill-type"])]),_:2},1032,["id","aria-label","aria-describedby","data-testid","data-test-indicator-type","onClick"])),[[r,o.$gettext(l.label)]]):e.withDirectives((e.openBlock(),e.createBlock(E,{id:l.id,key:l.id,tabindex:"-1",size:"small",class:"oc-status-indicators-indicator oc-ml-xs",name:l.icon,"fill-type":l.fillType,"accessible-label":o.$gettext(l.label),"aria-describedby":s(l),"data-testid":l.id,"data-test-indicator-type":l.type},null,8,["id","name","fill-type","accessible-label","aria-describedby","data-testid","data-test-indicator-type"])),[[r,o.$gettext(l.label)]]),s(l)?(e.openBlock(),e.createElementBlock("p",{id:s(l),key:s(l),class:"oc-invisible-sr",textContent:e.toDisplayString(o.$gettext(l.accessibleDescription))},null,8,eo)):e.createCommentVNode("",!0)],64))),256))])}}}),et={};typeof et=="function"&&et(be);const to=["id","textContent"],no=["aria-checked","aria-labelledby"],kt=e.defineComponent({name:"OcSwitch",status:"ready",release:"1.0.0",__name:"OcSwitch",props:{checked:{type:Boolean,default:!1},label:{default:null},labelId:{default:()=>v.uniqueId("oc-switch-label-")}},emits:["update:checked"],setup(t,{emit:n}){const a=n;function s(){a("update:checked",!t.checked)}return(o,i)=>(e.openBlock(),e.createElementBlock("span",{key:`oc-switch-${t.checked.toString()}`,class:"oc-switch"},[e.createElementVNode("span",{id:t.labelId,textContent:e.toDisplayString(t.label)},null,8,to),e.createElementVNode("button",{"data-testid":"oc-switch-btn",class:"oc-switch-btn",role:"switch","aria-checked":t.checked,"aria-labelledby":t.labelId,onClick:s},null,8,no)]))}}),ao={class:"oc-thead"},ye=e.defineComponent({name:"OcThead",status:"ready",release:"2.1.0",__name:"OcTableHeader",setup(t){return(n,a)=>(e.openBlock(),e.createElementBlock("thead",ao,[e.renderSlot(n.$slots,"default")]))}}),ke=e.defineComponent({name:"OcTbody",status:"ready",release:"2.1.0",__name:"OcTableBody",setup(t){return(n,a)=>(e.openBlock(),e.createElementBlock("tbody",null,[e.renderSlot(n.$slots,"default")]))}}),ee=e.defineComponent({name:"OcTableCell",status:"ready",release:"2.1.0",__name:"OcTableCell",props:{type:{default:"td"},alignH:{default:"left"},alignV:{default:"middle"},width:{default:"auto"},wrap:{default:null}},emits:["click"],setup(t,{emit:n}){const a=n,s=e.computed(()=>{const o=["oc-table-cell",`oc-table-cell-align-${t.alignH}`,`oc-table-cell-align-${t.alignV}`,`oc-table-cell-width-${t.width}`];return t.wrap&&o.push(`oc-text-${t.wrap}`),o});return(o,i)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.type),{class:e.normalizeClass(s.value),onClick:i[0]||(i[0]=r=>a("click",r))},{default:e.withCtx(()=>[e.renderSlot(o.$slots,"default")]),_:3},8,["class"]))}}),te=e.defineComponent({name:"OcTd",status:"ready",release:"2.1.0",__name:"OcTableCellData",props:{alignH:{default:"left"},alignV:{default:"middle"},width:{default:"auto"},wrap:{default:null}},setup(t){return(n,a)=>(e.openBlock(),e.createBlock(ee,{type:"td","align-h":t.alignH,"align-v":t.alignV,width:t.width,wrap:t.wrap,class:"oc-td"},{default:e.withCtx(()=>[e.renderSlot(n.$slots,"default")]),_:3},8,["align-h","align-v","width","wrap"]))}}),G=e.defineComponent({name:"OcTr",status:"ready",release:"1.0.0",__name:"OcTableRow",props:{lazy:{default:null}},emits:["contextmenu","click","dragstart","drop","dragenter","dragleave","dragover","mouseleave","itemVisible"],setup(t,{emit:n}){const a=n,s=e.customRef((l,u)=>{let c;return{get(){return l(),c},set(b){c=b,u()}}}),o=e.computed(()=>t.lazy?t.lazy.colspan:1),{isVisible:i}=t.lazy?At.useIsVisible({...t.lazy,target:s,onVisibleCallback:()=>a("itemVisible")}):{isVisible:e.ref(!0)},r=e.computed(()=>!e.unref(i));return t.lazy||a("itemVisible"),(l,u)=>(e.openBlock(),e.createElementBlock("tr",{ref_key:"observerTarget",ref:s,onClick:u[0]||(u[0]=c=>l.$emit("click",c)),onContextmenu:u[1]||(u[1]=c=>l.$emit("contextmenu",c)),onDragstart:u[2]||(u[2]=c=>l.$emit("dragstart",c)),onDrop:u[3]||(u[3]=c=>l.$emit("drop",c)),onDragenter:u[4]||(u[4]=c=>l.$emit("dragenter",c)),onDragleave:u[5]||(u[5]=c=>l.$emit("dragleave",c)),onDragover:u[6]||(u[6]=c=>l.$emit("dragover",c)),onMouseleave:u[7]||(u[7]=c=>l.$emit("mouseleave",c))},[r.value?(e.openBlock(),e.createBlock(te,{key:0,colspan:o.value},{default:e.withCtx(()=>[...u[8]||(u[8]=[e.createElementVNode("span",{class:"shimmer"},null,-1)])]),_:1},8,["colspan"])):e.renderSlot(l.$slots,"default",{key:1})],544))}}),ve=e.defineComponent({name:"OcTh",status:"ready",release:"2.1.0",__name:"OcTableCellHead",props:{alignH:{default:"left"},alignV:{default:"middle"},width:{default:"auto"},wrap:{default:"nowrap"}},emits:["click"],setup(t,{emit:n}){const a=n;return(s,o)=>(e.openBlock(),e.createBlock(ee,{type:"th","align-h":t.alignH,"align-v":t.alignV,width:t.width,wrap:t.wrap,class:"oc-th",onClick:o[0]||(o[0]=i=>a("click",i))},{default:e.withCtx(()=>[e.renderSlot(s.$slots,"default")]),_:3},8,["align-h","align-v","width","wrap"]))}}),oo={key:0,class:"oc-table-thead-content"},lo=["textContent"],so={key:1},io={key:0,class:"oc-table-thead-content"},ro=["textContent"],co={key:1,class:"oc-table-footer"},uo={class:"oc-table-footer-row"},mo=["colspan"],tt="asc",ne="desc",vt=e.defineComponent({name:"OcTable",status:"ready",release:"2.1.0",__name:"OcTable",props:{data:{},idKey:{default:"id"},itemDomSelector:{type:Function},fields:{},hasHeader:{type:Boolean,default:!0},sticky:{type:Boolean,default:!1},hover:{type:Boolean,default:!1},highlighted:{default:null},disabled:{default:()=>[]},headerPosition:{default:0},paddingX:{default:"small"},dragDrop:{type:Boolean,default:!1},selection:{},lazy:{type:Boolean,default:!1},sortDir:{default:()=>{}},sortBy:{default:()=>{}}},emits:["itemDropped","itemDragged","rowMounted","theadClicked","highlight","contextmenuClicked","itemVisible","sort","dropRowStyling"],setup(t,{emit:n}){const a=n,{$gettext:s}=I.useGettext(),o=d=>t.itemDomSelector?t.itemDomSelector(d):d[t.idKey],i={EVENT_TROW_CLICKED:v.EVENT_TROW_CLICKED,EVENT_TROW_MOUNTED:v.EVENT_TROW_MOUNTED,EVENT_TROW_CONTEXTMENU:v.EVENT_TROW_CONTEXTMENU};function r(d){d.preventDefault()}function l(d,D){a(v.EVENT_ITEM_DRAGGED,d,D)}function u(d,D){a(v.EVENT_ITEM_DROPPED,d,D)}function c(d,D,C){a("dropRowStyling",d,D,C)}function b(d){return d.type==="slot"}function S(d){return["callback","function"].indexOf(d.type)>=0}function V(d){return Object.prototype.hasOwnProperty.call(d,"title")?d.title:d.name}function y(){return{class:O.value}}function m(d,D){const C=p(d);return C.class=`oc-table-header-cell oc-table-header-cell-${d.name}`,Object.prototype.hasOwnProperty.call(d,"thClass")&&(C.class+=` ${d.thClass}`),t.sticky&&(C.style=`top: ${t.headerPosition}px;`),D===0&&(C.class+=` oc-pl-${v.getSizeClass(t.paddingX)} `),D===t.fields.length-1&&(C.class+=` oc-pr-${v.getSizeClass(t.paddingX)}`),B(C,d),C}function g(d,D){return{...t.lazy&&{lazy:{colspan:M.value}},class:["oc-tbody-tr",`oc-tbody-tr-${o(d)||D}`,$(d)?"oc-table-highlighted":void 0,z(d)?"oc-table-disabled":void 0].filter(Boolean)}}function x(d,D,C){const k=p(d);return k.class=`oc-table-data-cell oc-table-data-cell-${d.name}`,Object.prototype.hasOwnProperty.call(d,"tdClass")&&(k.class+=` ${d.tdClass}`),Object.prototype.hasOwnProperty.call(d,"wrap")&&(k.wrap=d.wrap),D===0&&(k.class+=` oc-pl-${v.getSizeClass(t.paddingX)} `),D===t.fields.length-1&&(k.class+=` oc-pr-${v.getSizeClass(t.paddingX)}`),Object.prototype.hasOwnProperty.call(d,"accessibleLabelCallback")&&(k["aria-label"]=d.accessibleLabelCallback(C)),k}function p(d){return{...d?.alignH&&{alignH:d.alignH},...d?.alignV&&{alignV:d.alignV},...d?.width&&{width:d.width},class:void 0,wrap:void 0,style:void 0}}function $(d){return t.highlighted?Array.isArray(t.highlighted)?t.highlighted.indexOf(d[t.idKey])>-1:t.highlighted===d[t.idKey]:!1}function z(d){return t.disabled.length?t.disabled.indexOf(d[t.idKey])>-1:!1}function w(d,D,C){const k=[C[t.idKey],D+1].filter(Boolean);return b(d)?[...k,d.name].join("-"):S(d)?[...k,d.callback(C[d.name])].join("-"):[...k,C[d.name]].join("-")}function T(d){return s("Sort by %{ name }",{name:d})}function B(d,D){if(!f(D))return;let C="none";t.sortBy===D.name&&(C=t.sortDir===tt?"ascending":"descending"),d["aria-sort"]=C}function f({sortable:d}){return!!d}function h(d){if(!f(d))return;let D=t.sortDir;t.sortBy===d.name&&t.sortDir!==void 0&&(D=t.sortDir===ne?tt:ne),(t.sortBy!==d.name||t.sortDir===void 0)&&(D=d.sortDir||ne),a("sort",{sortBy:d.name,sortDir:D})}const O=e.computed(()=>{const d=["oc-table"];return t.hover&&d.push("oc-table-hover"),t.sticky&&d.push("oc-table-sticky"),d}),M=e.computed(()=>t.fields.length);return(d,D)=>{const C=e.resolveComponent("oc-icon");return e.openBlock(),e.createElementBlock("table",e.mergeProps(y(),{class:"has-item-context-menu"}),[t.hasHeader?(e.openBlock(),e.createBlock(ye,{key:0},{default:e.withCtx(()=>[e.createVNode(G,{class:"oc-table-header-row"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.fields,(k,P)=>(e.openBlock(),e.createBlock(ve,e.mergeProps({key:`oc-thead-${k.name}`},{ref_for:!0},m(k,P)),{default:e.withCtx(()=>[k.sortable?(e.openBlock(),e.createBlock(L,{key:0,"aria-label":T(k.name),appearance:"raw",class:"oc-button-sort oc-width-1-1",onClick:N=>h(k)},{default:e.withCtx(()=>[k.headerType==="slot"?(e.openBlock(),e.createElementBlock("span",oo,[e.renderSlot(d.$slots,k.name+"Header")])):(e.openBlock(),e.createElementBlock("span",{key:1,class:"oc-table-thead-content header-text",textContent:e.toDisplayString(V(k))},null,8,lo)),e.createVNode(C,{name:t.sortDir==="asc"?"arrow-down":"arrow-up","fill-type":"line",class:e.normalizeClass({"oc-invisible-sr":t.sortBy!==k.name}),size:"small",variation:"passive"},null,8,["name","class"])]),_:2},1032,["aria-label","onClick"])):(e.openBlock(),e.createElementBlock("div",so,[k.headerType==="slot"?(e.openBlock(),e.createElementBlock("span",io,[e.renderSlot(d.$slots,k.name+"Header")])):(e.openBlock(),e.createElementBlock("span",{key:1,class:"oc-table-thead-content header-text",textContent:e.toDisplayString(V(k))},null,8,ro))]))]),_:2},1040))),128))]),_:3})]),_:3})):e.createCommentVNode("",!0),e.createVNode(ke,{class:"has-item-context-menu"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.data,(k,P)=>(e.openBlock(),e.createBlock(G,e.mergeProps({key:`oc-tbody-tr-${o(k)||P}`,ref_for:!0,ref:`row-${P}`},{ref_for:!0},g(k,P),{"data-item-id":k[t.idKey],draggable:t.dragDrop,onClick:N=>d.$emit(i.EVENT_TROW_CLICKED,[k,N]),onContextmenu:N=>d.$emit(i.EVENT_TROW_CONTEXTMENU,d.$refs[`row-${P}`][0],N,k),onVnodeMounted:N=>d.$emit(i.EVENT_TROW_MOUNTED,k,d.$refs[`row-${P}`][0]),onDragstart:N=>l(k,N),onDrop:N=>u(o(k),N),onDragenter:e.withModifiers(N=>c(o(k),!1,N),["prevent"]),onDragleave:e.withModifiers(N=>c(o(k),!0,N),["prevent"]),onMouseleave:N=>c(o(k),!0,N),onDragover:D[0]||(D[0]=N=>r(N)),onItemVisible:N=>d.$emit("itemVisible",k)}),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.fields,(N,we)=>(e.openBlock(),e.createBlock(te,e.mergeProps({key:"oc-tbody-td-"+w(N,we,k)},{ref_for:!0},x(N,we,k)),{default:e.withCtx(()=>[b(N)?e.renderSlot(d.$slots,N.name,{key:0,item:k}):S(N)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(N.callback(k[N.name])),1)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode(e.toDisplayString(k[N.name]),1)],64))]),_:2},1040))),128))]),_:2},1040,["data-item-id","draggable","onClick","onContextmenu","onVnodeMounted","onDragstart","onDrop","onDragenter","onDragleave","onMouseleave","onItemVisible"]))),128))]),_:3}),d.$slots.footer?(e.openBlock(),e.createElementBlock("tfoot",co,[e.createElementVNode("tr",uo,[e.createElementVNode("td",{colspan:M.value,class:"oc-table-footer-cell"},[e.renderSlot(d.$slots,"footer")],8,mo)])])):e.createCommentVNode("",!0)],16)}}}),Ct=e.defineComponent({name:"OcTfoot",status:"ready",release:"2.1.0",__name:"OcTableFooter",setup(t){return(n,a)=>(e.openBlock(),e.createElementBlock("tfoot",null,[e.renderSlot(n.$slots,"default")]))}}),wt=e.defineComponent({name:"OcTableSimple",status:"ready",release:"2.1.0",__name:"OcTableSimple",props:{hover:{type:Boolean,default:!1}},setup(t){const n=e.computed(()=>{const a=["oc-table-simple"];return t.hover&&a.push("oc-table-simple-hover"),a});return(a,s)=>(e.openBlock(),e.createElementBlock("table",{class:e.normalizeClass(n.value)},[e.renderSlot(a.$slots,"default")],2))}}),Ce=e.defineComponent({name:"OcTag",status:"ready",release:"2.0.0",__name:"OcTag",props:{type:{default:"span"},to:{default:null},size:{default:"medium"},rounded:{type:Boolean,default:!1}},emits:["click"],setup(t,{emit:n}){const a=n;function s(i){a("click",i)}const o=e.computed(()=>{const i=["oc-tag",`oc-tag-${v.getSizeClass(t.size)}`];return t.type==="router-link"||t.type==="a"?i.push("oc-tag-link"):i.push(`oc-tag-${t.type}`),t.rounded&&i.push("oc-tag-rounded"),i});return(i,r)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.type),{class:e.normalizeClass(o.value),to:t.to,onClick:s},{default:e.withCtx(()=>[e.renderSlot(i.$slots,"default")]),_:3},8,["class","to"]))}}),nt={};typeof nt=="function"&&nt(Ce);const fo=["for","textContent"],po=["id","value","aria-invalid"],ho={key:0,class:"oc-textarea-message"},go=["id","textContent"],Bt=e.defineComponent({name:"OcTextarea",status:"ready",release:"1.0.0",__name:"OcTextarea",props:{id:{default:()=>v.uniqueId("oc-textarea-")},modelValue:{default:null},label:{default:null},warningMessage:{default:null},errorMessage:{default:null},descriptionMessage:{default:null},fixMessageLine:{type:Boolean,default:!1},submitOnEnter:{type:Boolean,default:!0}},emits:["update:modelValue","focus","change","keydown"],setup(t,{expose:n,emit:a}){const s=a,o=e.useAttrs(),i=e.useTemplateRef("textAreaRef");function r(){i.value.focus()}function l(g){s("update:modelValue",g)}function u(g){s("focus",g)}function c(g){const x=g.key?.toLowerCase()==="enter";t.submitOnEnter&&x&&!g.ctrlKey&&!g.shiftKey&&s("change",g.target.value),s("keydown",g)}const b=e.computed(()=>t.fixMessageLine||!!t.warningMessage||!!t.errorMessage||!!t.descriptionMessage),S=e.computed(()=>`${t.id}-message`),V=e.computed(()=>{const g={};return(t.warningMessage||t.errorMessage||t.descriptionMessage)&&(g["aria-describedby"]=S),{...o,...g}}),y=e.computed(()=>(!!t.errorMessage).toString()),m=e.computed(()=>t.errorMessage?t.errorMessage:t.warningMessage?t.warningMessage:t.descriptionMessage);return n({focus:r}),(g,x)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("label",{class:"oc-label",for:t.id,textContent:e.toDisplayString(t.label)},null,8,fo),e.createElementVNode("textarea",e.mergeProps({id:t.id},V.value,{ref_key:"textAreaRef",ref:i,class:["oc-textarea oc-rounded",{"oc-textarea-warning":!!t.warningMessage,"oc-textarea-danger":!!t.errorMessage}],value:t.modelValue,"aria-invalid":y.value,onInput:x[0]||(x[0]=p=>l(p.target.value)),onFocus:x[1]||(x[1]=p=>u(!0)),onKeydown:x[2]||(x[2]=p=>c(p))}),null,16,po),b.value?(e.openBlock(),e.createElementBlock("div",ho,[e.createElementVNode("span",{id:S.value,class:e.normalizeClass({"oc-textarea-description":!!t.descriptionMessage,"oc-textarea-warning":!!t.warningMessage,"oc-textarea-danger":!!t.errorMessage}),textContent:e.toDisplayString(m.value)},null,10,go)])):e.createCommentVNode("",!0)]))}}),bo={key:0,class:"oc-flex oc-flex-center"},xt=e.defineComponent({name:"OcEmojiPicker",status:"ready",release:"1.0.0",__name:"OcEmojiPicker",props:{theme:{default:"light"}},emits:["emojiSelect","clickOutside"],setup(t,{emit:n}){const a=n,s=I.useGettext(),{$gettext:o}=s,i=e.ref(),r=e.ref(!0);return e.watch([()=>t.theme,()=>s.current],async()=>{r.value=!0,await e.nextTick();const l={search:o("Search"),search_no_results_1:o("Oh no!"),search_no_results_2:o("That emoji couldn’t be found"),pick:o("Pick an emoji…"),add_custom:o("Add custom emoji"),categories:{activity:o("Activity"),custom:o("Custom"),flags:o("Flags"),foods:o("Food & Drink"),frequent:o("Frequently used"),nature:o("Animals & Nature"),objects:o("Objects"),people:o("Smileys & People"),places:o("Travel & Places"),search:o("Search Results"),symbols:o("Symbols")},skins:{choose:o("Choose default skin tone"),1:o("Default"),2:o("Light"),3:o("Medium-Light"),4:o("Medium"),5:o("Medium-Dark"),6:o("Dark")}},u=(await import("@emoji-mart/data")).default,c={onEmojiSelect:V=>a("emojiSelect",V.native),onClickOutside:()=>a("clickOutside"),i18n:l,data:u,autoFocus:!0,theme:t.theme},{Picker:b}=await import("emoji-mart"),S=new b(c);r.value=!1,await e.nextTick(),e.unref(i).innerHTML="",e.unref(i).appendChild(S)},{immediate:!0}),(l,u)=>{const c=e.resolveComponent("oc-spinner");return r.value?(e.openBlock(),e.createElementBlock("div",bo,[e.createVNode(c,{size:"large"})])):(e.openBlock(),e.createElementBlock("div",{key:1,ref_key:"emojiPickerRef",ref:i},null,512))}}}),yo=e.defineComponent({name:"OcRemoteIcon",__name:"OcRemoteIcon",props:{src:{},size:{default:"medium"},variation:{default:"passive"}},setup(t){const n=e.computed(()=>({"--oc-remote-icon-src":`url(${t.src})`}));return(a,s)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(["oc-remote-icon",e.unref(v.getSizeClass)(t.size),t.variation]),style:e.normalizeStyle(n.value)},null,6))}}),ko=(t,n)=>{const a=t.__vccOpts||t;for(const[s,o]of n)a[s]=o;return a},$t=ko(yo,[["__scopeId","data-v-b746eda3"]]),vo=["srcset"],Co=["srcset"],wo=["srcset"],Bo=["srcset"],xo=["srcset"],$o=["src","alt","loading"],Ot=e.defineComponent({name:"OcResponsiveImage",__name:"OcResponsiveImage",props:{src:{},alt:{},loading:{default:"lazy"}},setup(t){const n=e.computed(()=>t.src.xl||t.src.lg||t.src.md||t.src.sm||t.src.xs||"");return(a,s)=>(e.openBlock(),e.createElementBlock("picture",null,[t.src.xl?(e.openBlock(),e.createElementBlock("source",{key:"responsive-image-xl",media:"(min-width: 1600px)",srcset:t.src.xl},null,8,vo)):e.createCommentVNode("",!0),t.src.lg?(e.openBlock(),e.createElementBlock("source",{key:"responsive-image-lg",media:"(min-width: 1200px)",srcset:t.src.lg},null,8,Co)):e.createCommentVNode("",!0),t.src.md?(e.openBlock(),e.createElementBlock("source",{key:"responsive-image-md",media:"(min-width: 960px)",srcset:t.src.md},null,8,wo)):e.createCommentVNode("",!0),t.src.sm?(e.openBlock(),e.createElementBlock("source",{key:"responsive-image-sm",media:"(min-width: 640px)",srcset:t.src.sm},null,8,Bo)):e.createCommentVNode("",!0),t.src.xs?(e.openBlock(),e.createElementBlock("source",{key:"responsive-image-xs",srcset:t.src.xs},null,8,xo)):e.createCommentVNode("",!0),e.createElementVNode("img",{src:n.value,alt:t.alt,loading:t.loading},null,8,$o)]))}}),Oo=Object.freeze(Object.defineProperty({__proto__:null,OcApplicationIcon:oe,OcAvatar:j,OcAvatarCount:U,OcAvatarFederated:X,OcAvatarGroup:J,OcAvatarGuest:Q,OcAvatarItem:A,OcAvatarLink:Y,OcAvatars:le,OcBreadcrumb:se,OcButton:L,OcCheckbox:ie,OcContextualHelper:lt,OcDatepicker:re,OcDefinitionList:st,OcDrop:H,OcDropzone:ce,OcEmojiPicker:xt,OcErrorLog:fe,OcFilterChip:it,OcGrid:ue,OcHiddenAnnouncer:rt,OcIcon:E,OcImage:W,OcInfoDrop:Z,OcList:ct,OcLoader:de,OcLogo:me,OcModal:ut,OcNotificationMessage:dt,OcNotifications:mt,OcPageSize:ft,OcPagination:pt,OcProgress:ht,OcProgressPie:ge,OcRadio:gt,OcRecipient:bt,OcRemoteIcon:$t,OcResponsiveImage:Ot,OcSearchBar:yt,OcSelect:he,OcSpinner:q,OcStatusIndicators:be,OcSwitch:kt,OcTable:vt,OcTableBody:ke,OcTableCell:ee,OcTableCellData:te,OcTableCellHead:ve,OcTableFooter:Ct,OcTableHeader:ye,OcTableRow:G,OcTableSimple:wt,OcTag:Ce,OcTextInput:_,OcTextarea:Bt},Symbol.toStringTag,{value:"Module"}));exports.OcRemoteIcon=$t;exports.OcTooltip=Ut;exports._sfc_main=oe;exports._sfc_main$1=j;exports._sfc_main$10=L;exports._sfc_main$11=ie;exports._sfc_main$12=lt;exports._sfc_main$13=re;exports._sfc_main$14=st;exports._sfc_main$15=H;exports._sfc_main$16=ce;exports._sfc_main$17=it;exports._sfc_main$18=ue;exports._sfc_main$19=rt;exports._sfc_main$2=U;exports._sfc_main$20=E;exports._sfc_main$21=W;exports._sfc_main$22=Z;exports._sfc_main$23=ct;exports._sfc_main$24=de;exports._sfc_main$25=me;exports._sfc_main$26=ut;exports._sfc_main$27=dt;exports._sfc_main$28=mt;exports._sfc_main$29=ft;exports._sfc_main$3=X;exports._sfc_main$30=pt;exports._sfc_main$31=ht;exports._sfc_main$32=ge;exports._sfc_main$33=gt;exports._sfc_main$34=bt;exports._sfc_main$35=yt;exports._sfc_main$36=he;exports._sfc_main$37=q;exports._sfc_main$38=be;exports._sfc_main$39=kt;exports._sfc_main$4=J;exports._sfc_main$40=vt;exports._sfc_main$41=ee;exports._sfc_main$42=ke;exports._sfc_main$43=te;exports._sfc_main$44=Ct;exports._sfc_main$45=ve;exports._sfc_main$46=ye;exports._sfc_main$47=G;exports._sfc_main$48=wt;exports._sfc_main$49=Ce;exports._sfc_main$5=Q;exports._sfc_main$50=Bt;exports._sfc_main$51=_;exports._sfc_main$52=fe;exports._sfc_main$53=xt;exports._sfc_main$54=Ot;exports._sfc_main$6=A;exports._sfc_main$7=Y;exports._sfc_main$8=le;exports._sfc_main$9=se;exports.components=Oo;