Bug: T358246 Bug: T363940 Bug: T366129 Bug: T367467 Bug: T367762 Bug: T367792 Bug: T368442 Bug: T368443 Bug: T369529 Depends-On: Ie642f038ef4b143166a574248ac936c78adae23e Change-Id: Ib1dc0dabdfbd1b92efdd723c0c2f2d625aeb6e7a
1 line
129 KiB
JavaScript
1 line
129 KiB
JavaScript
(function(w,t){typeof exports=="object"&&typeof module!="undefined"?t(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],t):(w=typeof globalThis!="undefined"?globalThis:w||self,t(w.codex={},w.Vue))})(this,function(w,t){"use strict";var ki=Object.defineProperty,$i=Object.defineProperties;var Bi=Object.getOwnPropertyDescriptors;var tt=Object.getOwnPropertySymbols;var mn=Object.prototype.hasOwnProperty,hn=Object.prototype.propertyIsEnumerable;var bt=(w,t,F)=>t in w?ki(w,t,{enumerable:!0,configurable:!0,writable:!0,value:F}):w[t]=F,z=(w,t)=>{for(var F in t||(t={}))mn.call(t,F)&&bt(w,F,t[F]);if(tt)for(var F of tt(t))hn.call(t,F)&&bt(w,F,t[F]);return w},W=(w,t)=>$i(w,Bi(t));var ae=(w,t)=>{var F={};for(var Y in w)mn.call(w,Y)&&t.indexOf(Y)<0&&(F[Y]=w[Y]);if(w!=null&&tt)for(var Y of tt(w))t.indexOf(Y)<0&&hn.call(w,Y)&&(F[Y]=w[Y]);return F};var de=(w,t,F)=>(bt(w,typeof t!="symbol"?t+"":t,F),F);var Q=(w,t,F)=>new Promise((Y,_e)=>{var nt=ce=>{try{Ee(F.next(ce))}catch(Ve){_e(Ve)}},ot=ce=>{try{Ee(F.throw(ce))}catch(Ve){_e(Ve)}},Ee=ce=>ce.done?Y(ce.value):Promise.resolve(ce.value).then(nt,ot);Ee((F=F.apply(w,t)).next())});const F='<path d="M11.53 2.3A1.85 1.85 0 0010 1.21 1.85 1.85 0 008.48 2.3L.36 16.36C-.48 17.81.21 19 1.88 19h16.24c1.67 0 2.36-1.19 1.52-2.64zM11 16H9v-2h2zm0-4H9V6h2z"/>',Y='<path d="M12.43 14.34A5 5 0 0110 15a5 5 0 113.95-2L17 16.09V3a2 2 0 00-2-2H5a2 2 0 00-2 2v14a2 2 0 002 2h10a2 2 0 001.45-.63z"/><circle cx="10" cy="10" r="3"/>',_e='<path d="M10 0a10 10 0 1010 10A10 10 0 0010 0m5.66 14.24-1.41 1.41L10 11.41l-4.24 4.25-1.42-1.42L8.59 10 4.34 5.76l1.42-1.42L10 8.59l4.24-4.24 1.41 1.41L11.41 10z"/>',nt='<path d="m4.34 2.93 12.73 12.73-1.41 1.41L2.93 4.35z"/><path d="M17.07 4.34 4.34 17.07l-1.41-1.41L15.66 2.93z"/>',ot='<path d="M10 15 2 5h16z"/>',Ee='<path d="M13.728 1H6.272L1 6.272v7.456L6.272 19h7.456L19 13.728V6.272zM11 15H9v-2h2zm0-4H9V5h2z"/>',ce='<path d="m17.5 4.75-7.5 7.5-7.5-7.5L1 6.25l9 9 9-9z"/>',Ve='<path d="M19 3H1v14h18zM3 14l3.5-4.5 2.5 3L12.5 8l4.5 6z"/><path d="M19 5H1V3h18zm0 12H1v-2h18z"/>',bn='<path d="M8 19a1 1 0 001 1h2a1 1 0 001-1v-1H8zm9-12a7 7 0 10-12 4.9S7 14 7 15v1a1 1 0 001 1h4a1 1 0 001-1v-1c0-1 2-3.1 2-3.1A7 7 0 0017 7"/>',gn='<path d="M10 0C4.477 0 0 4.477 0 10s4.477 10 10 10 10-4.477 10-10S15.523 0 10 0M9 5h2v2H9zm0 4h2v6H9z"/>',yn='<path d="M7 1 5.6 2.5 13 10l-7.4 7.5L7 19l9-9z"/>',Cn='<path d="m4 10 9 9 1.4-1.5L7 10l7.4-7.5L13 1z"/>',wn='<path d="M12.2 13.6a7 7 0 111.4-1.4l5.4 5.4-1.4 1.4zM3 8a5 5 0 1010 0A5 5 0 003 8"/>',kn='<path d="M10 0 3 8h14zm0 18-7-8h14z"/>',$n='<path d="M10 20a10 10 0 010-20 10 10 0 110 20m-2-5 9-8.5L15.5 5 8 12 4.5 8.5 3 10z"/>',Bn='<path d="m10 5 8 10H2z"/>',gt=F,Sn=Y,In=_e,lt=nt,xn=ot,yt=Ee,Ct=ce,En=Ve,Vn={langCodeMap:{ar:bn},default:gn},An={ltr:yn,shouldFlip:!0},Nn={ltr:Cn,shouldFlip:!0},Tn=wn,Mn=kn,wt=$n,Ln=Bn;function Dn(e,n,o){if(typeof e=="string"||"path"in e)return e;if("shouldFlip"in e)return e.ltr;if("rtl"in e)return o==="rtl"?e.rtl:e.ltr;const l=n in e.langCodeMap?e.langCodeMap[n]:e.default;return typeof l=="string"||"path"in l?l:l.ltr}function Rn(e,n){if(typeof e=="string")return!1;if("langCodeMap"in e){const o=n in e.langCodeMap?e.langCodeMap[n]:e.default;if(typeof o=="string")return!1;e=o}if("shouldFlipExceptions"in e&&Array.isArray(e.shouldFlipExceptions)){const o=e.shouldFlipExceptions.indexOf(n);return o===void 0||o===-1}return"shouldFlip"in e?e.shouldFlip:!1}function Fe(e){const n=t.ref(null);return t.onMounted(()=>{const o=window.getComputedStyle(e.value).direction;n.value=o==="ltr"||o==="rtl"?o:null}),n}function kt(e){const n=t.ref("");return t.onMounted(()=>{let o=e.value;for(;o&&o.lang==="";)o=o.parentElement;n.value=o?o.lang:null}),n}function q(e){return n=>typeof n=="string"&&e.indexOf(n)!==-1}const ve="cdx",On=["default","progressive","destructive"],_n=["normal","primary","quiet"],Fn=["medium","large"],vn=["x-small","small","medium"],$t=q(["notice","warning","error","success"]),zn=["text","search","number","email","month","password","tel","url","week","date","datetime-local","time"],ue=["default","warning","error","success"],Kn=["start","center","end","number"],Hn=120,Pn=500,we="cdx-menu-footer-item",Bt=Symbol("CdxTabs"),St=Symbol("CdxActiveTab"),It=Symbol("CdxFieldInputId"),ze=Symbol("CdxFieldDescriptionId"),xt=Symbol("CdxFieldStatus"),Et=Symbol("CdxDisabled"),jn="".concat(ve,"-no-invert"),Ke=Symbol("CdxTableRowIdentifier"),qn=q(vn),Un=t.defineComponent({name:"CdxIcon",props:{icon:{type:[String,Object],required:!0},iconLabel:{type:String,default:""},lang:{type:String,default:null},dir:{type:String,default:null},size:{type:String,default:"medium",validator:qn}},setup(e){const n=t.ref(),o=Fe(n),l=kt(n),i=t.computed(()=>{var u;return(u=e.dir)!=null?u:o.value}),r=t.computed(()=>{var u;return(u=e.lang)!=null?u:l.value}),a=t.computed(()=>({"cdx-icon--flipped":i.value==="rtl"&&r.value!==null&&Rn(e.icon,r.value),["cdx-icon--".concat(e.size)]:!0})),d=t.computed(()=>{var u,p;return Dn(e.icon,(u=r.value)!=null?u:"",(p=i.value)!=null?p:"ltr")}),s=t.computed(()=>typeof d.value=="string"?d.value:""),c=t.computed(()=>typeof d.value!="string"?d.value.path:"");return{rootElement:n,rootClasses:a,iconSvg:s,iconPath:c}}}),O=(e,n)=>{const o=e.__vccOpts||e;for(const[l,i]of n)o[l]=i;return o},Wn=["aria-hidden"],Qn={key:0},Gn=["innerHTML"],Yn=["d"];function Xn(e,n,o,l,i,r){return t.openBlock(),t.createElementBlock("span",{ref:"rootElement",class:t.normalizeClass(["cdx-icon",e.rootClasses])},[(t.openBlock(),t.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",width:"20",height:"20",viewBox:"0 0 20 20","aria-hidden":e.iconLabel?void 0:!0},[e.iconLabel?(t.openBlock(),t.createElementBlock("title",Qn,t.toDisplayString(e.iconLabel),1)):t.createCommentVNode("v-if",!0),e.iconSvg?(t.openBlock(),t.createElementBlock("g",{key:1,innerHTML:e.iconSvg},null,8,Gn)):(t.openBlock(),t.createElementBlock("path",{key:2,d:e.iconPath},null,8,Yn))],8,Wn))],2)}const H=O(Un,[["render",Xn]]);function Vt(e){const n=[];for(const o of e)typeof o.type=="string"||typeof o.type=="object"?n.push(o):o.type!==t.Comment&&(typeof o.children=="string"&&o.children.trim()!==""?n.push(o.children):Array.isArray(o.children)&&n.push(...Vt(o.children)));return n}function At(e,n){return typeof e.type=="object"&&"name"in e.type?n!==void 0?e.type.name===n:!0:!1}function Jn(e,n){return typeof e.type=="string"?e.type===n.toLowerCase():!1}function He(e){const n=typeof e=="function"?e():e;return n?Vt(n):[]}function Pe(e,n){if(e()){t.warn(n);return}const o=t.watch(e,l=>{l&&(t.warn(n),o())})}function Nt(e,n,o){const l=t.computed(()=>{const i=He(e);if(i.length!==1)return!1;const r=i[0];return!!(typeof r=="object"&&(At(r,"CdxIcon")||Jn(r,"svg")))});return Pe(()=>l.value&&!n["aria-label"]&&!n["aria-hidden"],"".concat(o,": Icon-only buttons require one of the following attributes: aria-label or aria-hidden. See documentation at https://doc.wikimedia.org/codex/latest/components/demos/button.html#icon-only-button")),l}const Zn=q(On),eo=q(_n),to=q(Fn),no=t.defineComponent({name:"CdxButton",props:{action:{type:String,default:"default",validator:Zn},weight:{type:String,default:"normal",validator:eo},size:{type:String,default:"medium",validator:to}},emits:["click"],setup(e,{emit:n,slots:o,attrs:l}){const i=Nt(o.default,l,"CdxButton"),r=t.ref(!1);return{rootClasses:t.computed(()=>({["cdx-button--action-".concat(e.action)]:!0,["cdx-button--weight-".concat(e.weight)]:!0,["cdx-button--size-".concat(e.size)]:!0,"cdx-button--framed":e.weight!=="quiet","cdx-button--icon-only":i.value,"cdx-button--is-active":r.value})),onClick:c=>{n("click",c)},setActive:c=>{r.value=c}}}});function oo(e,n,o,l,i,r){return t.openBlock(),t.createElementBlock("button",{class:t.normalizeClass(["cdx-button",e.rootClasses]),onClick:n[0]||(n[0]=(...a)=>e.onClick&&e.onClick(...a)),onKeydown:n[1]||(n[1]=t.withKeys(a=>e.setActive(!0),["space","enter"])),onKeyup:n[2]||(n[2]=t.withKeys(a=>e.setActive(!1),["space","enter"]))},[t.renderSlot(e.$slots,"default")],34)}const fe=O(no,[["render",oo]]),lo=t.defineComponent({name:"CdxAccordion",components:{CdxButton:fe,CdxIcon:H},props:{actionAlwaysVisible:{type:Boolean,default:!1},actionIcon:{type:[String,Object],default:null},actionButtonLabel:{type:String,default:""},headingLevel:{type:String,default:"h3"}},emits:["action-button-click"],setup(e,{attrs:n,emit:o}){const l=t.ref("open"in n),i=()=>{o("action-button-click")},r=s=>{l.value=s.newState==="open"},a=t.computed(()=>e.actionIcon&&(l.value||e.actionAlwaysVisible)),d=t.computed(()=>({"cdx-accordion--has-icon":a.value}));return{emitActionButtonClick:i,rootClasses:d,shouldShowActionButton:a,onToggle:r}}}),ao={class:"cdx-accordion__header__title"},so={class:"cdx-accordion__header__description"};function io(e,n,o,l,i,r){const a=t.resolveComponent("cdx-icon"),d=t.resolveComponent("cdx-button");return t.openBlock(),t.createElementBlock("details",{class:t.normalizeClass(["cdx-accordion",e.rootClasses]),onToggle:n[1]||(n[1]=(...s)=>e.onToggle&&e.onToggle(...s))},[t.createElementVNode("summary",null,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.headingLevel),{class:"cdx-accordion__header"},{default:t.withCtx(()=>[t.createElementVNode("span",ao,[t.renderSlot(e.$slots,"title")]),t.createElementVNode("span",so,[t.renderSlot(e.$slots,"description")])]),_:3})),e.shouldShowActionButton?(t.openBlock(),t.createBlock(d,{key:0,class:"cdx-accordion__action","aria-label":e.actionButtonLabel,type:"button",weight:"quiet",onClick:t.withModifiers(e.emitActionButtonClick,["stop"])},{default:t.withCtx(()=>[t.createVNode(a,{icon:e.actionIcon,"icon-label":e.actionButtonLabel,size:"medium"},null,8,["icon","icon-label"])]),_:1},8,["aria-label","onClick"])):t.createCommentVNode("v-if",!0)]),t.createElementVNode("div",{class:"cdx-accordion__content",onClick:n[0]||(n[0]=t.withModifiers(()=>{},["stop"]))},[t.renderSlot(e.$slots,"default")])],34)}const ro=O(lo,[["render",io]]);function Tt(e){return e.label===void 0?e.value:e.label===null?"":e.label}const co=t.defineComponent({name:"CdxButtonGroup",components:{CdxButton:fe,CdxIcon:H},props:{buttons:{type:Array,required:!0,validator:e=>Array.isArray(e)&&e.length>=1},disabled:{type:Boolean,default:!1}},emits:["click"],setup(){return{getButtonLabel:Tt}}}),uo={class:"cdx-button-group"};function fo(e,n,o,l,i,r){const a=t.resolveComponent("cdx-icon"),d=t.resolveComponent("cdx-button");return t.openBlock(),t.createElementBlock("div",uo,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.buttons,s=>(t.openBlock(),t.createBlock(d,{key:s.value,disabled:s.disabled||e.disabled,"aria-label":s.ariaLabel,onClick:c=>e.$emit("click",s.value)},{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default",{button:s},()=>[s.icon?(t.openBlock(),t.createBlock(a,{key:0,icon:s.icon},null,8,["icon"])):t.createCommentVNode("v-if",!0),t.createTextVNode(" "+t.toDisplayString(e.getButtonLabel(s)),1)])]),_:2},1032,["disabled","aria-label","onClick"]))),128))])}const po=O(co,[["render",fo]]),mo=t.defineComponent({name:"CdxThumbnail",components:{CdxIcon:H},props:{thumbnail:{type:[Object,null],default:null},placeholderIcon:{type:[String,Object],default:En}},setup:e=>{const n=t.ref(!1),o=t.ref({}),l=i=>{const r=i.replace(/([\\"\n])/g,"\\$1"),a=new Image;a.onload=()=>{o.value={backgroundImage:'url("'.concat(r,'")')},n.value=!0},a.onerror=()=>{n.value=!1},a.src=r};return t.onMounted(()=>{var i;(i=e.thumbnail)!=null&&i.url&&l(e.thumbnail.url)}),{thumbnailStyle:o,thumbnailLoaded:n,NoInvertClass:jn}}}),ho={class:"cdx-thumbnail"},bo={key:0,class:"cdx-thumbnail__placeholder"};function go(e,n,o,l,i,r){const a=t.resolveComponent("cdx-icon");return t.openBlock(),t.createElementBlock("span",ho,[e.thumbnailLoaded?t.createCommentVNode("v-if",!0):(t.openBlock(),t.createElementBlock("span",bo,[t.createVNode(a,{icon:e.placeholderIcon,class:"cdx-thumbnail__placeholder__icon--vue"},null,8,["icon"])])),t.createVNode(t.Transition,{name:"cdx-thumbnail__image"},{default:t.withCtx(()=>[e.thumbnailLoaded?(t.openBlock(),t.createElementBlock("span",{key:0,style:t.normalizeStyle(e.thumbnailStyle),class:t.normalizeClass([e.NoInvertClass,"cdx-thumbnail__image"])},null,6)):t.createCommentVNode("v-if",!0)]),_:1})])}const at=O(mo,[["render",go]]),yo=t.defineComponent({name:"CdxCard",components:{CdxIcon:H,CdxThumbnail:at},props:{url:{type:String,default:""},icon:{type:[String,Object],default:""},thumbnail:{type:[Object,null],default:null},forceThumbnail:{type:Boolean,default:!1},customPlaceholderIcon:{type:[String,Object],default:void 0}},setup(e){const n=t.computed(()=>!!e.url),o=t.computed(()=>n.value?"a":"span"),l=t.computed(()=>n.value?e.url:void 0);return{isLink:n,contentTag:o,cardLink:l}}}),Co={class:"cdx-card__text"},wo={class:"cdx-card__text__title"},ko={key:0,class:"cdx-card__text__description"},$o={key:1,class:"cdx-card__text__supporting-text"};function Bo(e,n,o,l,i,r){const a=t.resolveComponent("cdx-thumbnail"),d=t.resolveComponent("cdx-icon");return t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.contentTag),{href:e.cardLink,class:t.normalizeClass(["cdx-card",{"cdx-card--is-link":e.isLink,"cdx-card--title-only":!e.$slots.description&&!e.$slots["supporting-text"]}])},{default:t.withCtx(()=>[e.thumbnail||e.forceThumbnail?(t.openBlock(),t.createBlock(a,{key:0,thumbnail:e.thumbnail,"placeholder-icon":e.customPlaceholderIcon,class:"cdx-card__thumbnail"},null,8,["thumbnail","placeholder-icon"])):e.icon?(t.openBlock(),t.createBlock(d,{key:1,icon:e.icon,class:"cdx-card__icon"},null,8,["icon"])):t.createCommentVNode("v-if",!0),t.createElementVNode("span",Co,[t.createElementVNode("span",wo,[t.renderSlot(e.$slots,"title")]),e.$slots.description?(t.openBlock(),t.createElementBlock("span",ko,[t.renderSlot(e.$slots,"description")])):t.createCommentVNode("v-if",!0),e.$slots["supporting-text"]?(t.openBlock(),t.createElementBlock("span",$o,[t.renderSlot(e.$slots,"supporting-text")])):t.createCommentVNode("v-if",!0)])]),_:3},8,["href","class"])}const So=O(yo,[["render",Bo]]);function st(e){const n=t.inject(Et,t.ref(!1));return t.computed(()=>n.value||e.value)}function X(e,n,o){const l=st(e),i=t.inject(xt,t.ref("default")),r=t.computed(()=>n!=null&&n.value&&n.value!=="default"?n.value:i.value),a=t.inject(It,void 0),d=t.computed(()=>{var s;return(s=a==null?void 0:a.value)!=null?s:o});return{computedDisabled:l,computedStatus:r,computedInputId:d}}function J(e,n=t.computed(()=>({}))){const o=t.computed(()=>{const r=ae(n.value,[]);return e.class&&e.class.split(" ").forEach(d=>{r[d]=!0}),r}),l=t.computed(()=>{if("style"in e)return e.style}),i=t.computed(()=>{const s=e,{class:r,style:a}=s;return ae(s,["class","style"])});return{rootClasses:o,rootStyle:l,otherAttrs:i}}function se(e,n,o=[]){const l=t.inject("CdxI18nFunction",void 0);return t.computed(()=>{const i=o.map(t.unref),r=l==null?void 0:l(e,...i);return r!=null?r:typeof n=="function"?n(...i):n})}const Io=t.defineComponent({name:"CdxLabel",components:{CdxIcon:H},inheritAttrs:!1,props:{icon:{type:[String,Object],default:null},optional:{type:Boolean,default:!1},optionalFlag:{type:String,default:""},visuallyHidden:{type:Boolean,default:!1},isLegend:{type:Boolean,default:!1},inputId:{type:String,default:""},descriptionId:{type:String,default:""},disabled:{type:Boolean,default:!1}},setup(e,{attrs:n}){const{computedDisabled:o}=X(t.toRef(e,"disabled")),l=t.computed(()=>({"cdx-label--visually-hidden":e.visuallyHidden,"cdx-label--disabled":o.value})),{rootClasses:i,rootStyle:r,otherAttrs:a}=J(n,l),d=se("cdx-label-optional-flag",()=>e.optionalFlag||"(optional)");return{rootClasses:i,rootStyle:r,otherAttrs:a,translatedOptionalFlag:d}}}),xo=["for"],Eo={class:"cdx-label__label__text"},Vo={key:1,class:"cdx-label__label__optional-flag"},Ao=["id"],No={class:"cdx-label__label"},To={class:"cdx-label__label__text"},Mo={key:1,class:"cdx-label__label__optional-flag"},Lo={key:0,class:"cdx-label__description"};function Do(e,n,o,l,i,r){const a=t.resolveComponent("cdx-icon");return e.isLegend?(t.openBlock(),t.createElementBlock("legend",t.mergeProps({key:1,class:["cdx-label",e.rootClasses],style:e.rootStyle},e.otherAttrs),[t.createElementVNode("span",No,[e.icon?(t.openBlock(),t.createBlock(a,{key:0,icon:e.icon,class:"cdx-label__label__icon"},null,8,["icon"])):t.createCommentVNode("v-if",!0),t.createElementVNode("span",To,[t.renderSlot(e.$slots,"default")]),e.optionalFlag||e.optional?(t.openBlock(),t.createElementBlock("span",Mo,t.toDisplayString(" ")+" "+t.toDisplayString(e.translatedOptionalFlag),1)):t.createCommentVNode("v-if",!0)]),e.$slots.description&&e.$slots.description().length>0?(t.openBlock(),t.createElementBlock("span",Lo,[t.renderSlot(e.$slots,"description")])):t.createCommentVNode("v-if",!0)],16)):(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["cdx-label",e.rootClasses]),style:t.normalizeStyle(e.rootStyle)},[t.createElementVNode("label",t.mergeProps({class:"cdx-label__label",for:e.inputId?e.inputId:void 0},e.otherAttrs),[e.icon?(t.openBlock(),t.createBlock(a,{key:0,icon:e.icon,class:"cdx-label__label__icon"},null,8,["icon"])):t.createCommentVNode("v-if",!0),t.createElementVNode("span",Eo,[t.renderSlot(e.$slots,"default")]),e.optionalFlag||e.optional?(t.openBlock(),t.createElementBlock("span",Vo,t.toDisplayString(" ")+" "+t.toDisplayString(e.translatedOptionalFlag),1)):t.createCommentVNode("v-if",!0)],16,xo),e.$slots.description&&e.$slots.description().length>0?(t.openBlock(),t.createElementBlock("span",{key:0,id:e.descriptionId||void 0,class:"cdx-label__description"},[t.renderSlot(e.$slots,"description")],8,Ao)):t.createCommentVNode("v-if",!0)],6))}const Ae=O(Io,[["render",Do]]);function it(e,n,o){Pe(()=>He(e).length===0&&!(n!=null&&n["aria-label"])&&!(n!=null&&n["aria-labelledby"]),"".concat(o,": Inputs must have an associated label. Provide one of the following:\n - A label via the appropriate slot\n - An `aria-label` attribute set to the label text\n - An `aria-labelledby` attribute set to the ID of the label element"))}function Z(e,n,o){return t.computed({get:()=>e.value,set:l=>n(o||"update:modelValue",l)})}let rt=0;function K(e){var l;const n=t.getCurrentInstance(),o=(l=n==null?void 0:n.props.id)!=null?l:n==null?void 0:n.attrs.id;return e?"".concat(ve,"-").concat(e,"-").concat(rt++):o?"".concat(ve,"-").concat(o,"-").concat(rt++):"".concat(ve,"-").concat(rt++)}const Ro=q(ue),Oo=t.defineComponent({name:"CdxCheckbox",components:{CdxLabel:Ae},props:{modelValue:{type:[Boolean,Array],default:!1},inputValue:{type:[String,Number,Boolean],default:!1},name:{type:String,default:null},disabled:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1},inline:{type:Boolean,default:!1},hideLabel:{type:Boolean,default:!1},status:{type:String,default:"default",validator:Ro}},emits:["update:modelValue"],setup(e,{emit:n,slots:o,attrs:l}){var p;it((p=o.default)==null?void 0:p.call(o),l,"CdxCheckbox");const{computedDisabled:i,computedStatus:r}=X(t.toRef(e,"disabled"),t.toRef(e,"status")),a=t.computed(()=>({"cdx-checkbox--inline":e.inline,["cdx-checkbox--status-".concat(r.value)]:!0})),d=t.ref(),s=K("checkbox"),c=K("description"),u=Z(t.toRef(e,"modelValue"),n);return{rootClasses:a,computedDisabled:i,input:d,checkboxId:s,descriptionId:c,wrappedModel:u}}}),_o=["id","aria-describedby","value","name","disabled",".indeterminate"],Fo=t.createElementVNode("span",{class:"cdx-checkbox__icon"},null,-1);function vo(e,n,o,l,i,r){const a=t.resolveComponent("cdx-label");return t.openBlock(),t.createElementBlock("span",{class:t.normalizeClass(["cdx-checkbox",e.rootClasses])},[t.withDirectives(t.createElementVNode("input",{id:e.checkboxId,ref:"input","onUpdate:modelValue":n[0]||(n[0]=d=>e.wrappedModel=d),class:"cdx-checkbox__input",type:"checkbox","aria-describedby":e.$slots.description&&e.$slots.description().length>0?e.descriptionId:void 0,value:e.inputValue,name:e.name,disabled:e.computedDisabled,".indeterminate":e.indeterminate},null,40,_o),[[t.vModelCheckbox,e.wrappedModel]]),Fo,e.$slots.default&&e.$slots.default().length?(t.openBlock(),t.createBlock(a,{key:0,class:"cdx-checkbox__label","input-id":e.checkboxId,"description-id":e.$slots.description&&e.$slots.description().length>0?e.descriptionId:void 0,disabled:e.computedDisabled,"visually-hidden":e.hideLabel},t.createSlots({default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:2},[e.$slots.description&&e.$slots.description().length>0?{name:"description",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"description")]),key:"0"}:void 0]),1032,["input-id","description-id","disabled","visually-hidden"])):t.createCommentVNode("v-if",!0)],2)}const Mt=O(Oo,[["render",vo]]),zo=t.defineComponent({name:"CdxInputChip",components:{CdxButton:fe,CdxIcon:H},props:{icon:{type:[String,Object],default:null},disabled:{type:Boolean,default:!1}},expose:["focus"],emits:["remove-chip","click-chip","arrow-left","arrow-right"],setup(e,{emit:n}){const o=t.ref(),l=t.computed(()=>({"cdx-input-chip--disabled":e.disabled})),i=se("cdx-input-chip-aria-description","Press Enter to edit or Delete to remove");function r(a){var d;switch(a.key){case"Enter":n("click-chip"),a.preventDefault(),a.stopPropagation();break;case"Escape":(d=o.value)==null||d.blur(),a.preventDefault(),a.stopPropagation();break;case"Backspace":case"Delete":n("remove-chip",a.key),a.preventDefault(),a.stopPropagation();break;case"ArrowLeft":n("arrow-left"),a.preventDefault(),a.stopPropagation();break;case"ArrowRight":n("arrow-right"),a.preventDefault(),a.stopPropagation();break}}return{rootElement:o,rootClasses:l,ariaDescription:i,onKeydown:r,cdxIconClose:lt}},methods:{focus(){this.$refs.rootElement.focus()}}}),Ko=["aria-description"],Ho={class:"cdx-input-chip__text"};function Po(e,n,o,l,i,r){const a=t.resolveComponent("cdx-icon"),d=t.resolveComponent("cdx-button");return t.openBlock(),t.createElementBlock("div",{ref:"rootElement",class:t.normalizeClass(["cdx-input-chip",e.rootClasses]),tabindex:"0",role:"option","aria-description":e.ariaDescription,onKeydown:n[1]||(n[1]=(...s)=>e.onKeydown&&e.onKeydown(...s)),onClick:n[2]||(n[2]=s=>e.$emit("click-chip"))},[e.icon?(t.openBlock(),t.createBlock(a,{key:0,icon:e.icon,size:"small"},null,8,["icon"])):t.createCommentVNode("v-if",!0),t.createElementVNode("span",Ho,[t.renderSlot(e.$slots,"default")]),t.createVNode(d,{class:"cdx-input-chip__button",weight:"quiet",tabindex:"-1","aria-hidden":"true",disabled:e.disabled,onClick:n[0]||(n[0]=t.withModifiers(s=>e.$emit("remove-chip","button"),["stop"]))},{default:t.withCtx(()=>[t.createVNode(a,{icon:e.cdxIconClose,size:"x-small"},null,8,["icon"])]),_:1},8,["disabled"])],42,Ko)}const jo=O(zo,[["render",Po]]),qo=q(ue),Uo=t.defineComponent({name:"CdxChipInput",components:{CdxInputChip:jo},inheritAttrs:!1,props:{inputChips:{type:Array,required:!0},separateInput:{type:Boolean,default:!1},status:{type:String,default:"default",validator:qo},disabled:{type:Boolean,default:!1}},emits:["update:input-chips"],setup(e,{emit:n,attrs:o}){const l=t.ref(),i=Fe(l),r=t.ref(),a=t.ref(""),d=t.ref("default"),s=t.computed(()=>d.value==="error"||e.status==="error"?"error":"default"),{computedDisabled:c,computedStatus:u}=X(t.toRef(e,"disabled"),s),p=t.ref(!1),m=t.computed(()=>({"cdx-chip-input--has-separate-input":e.separateInput,["cdx-chip-input--status-".concat(u.value)]:!0,"cdx-chip-input--focused":p.value,"cdx-chip-input--disabled":c.value})),{rootClasses:f,rootStyle:b,otherAttrs:h}=J(o,m),E=[];function $(T,_){T!==null&&(E[_]=T)}const S=()=>{r.value.focus()};function I(){e.inputChips.find(T=>T.value===a.value)?d.value="error":a.value.length>0&&(n("update:input-chips",e.inputChips.concat({value:a.value})),a.value="")}function N(T){n("update:input-chips",e.inputChips.filter(_=>_.value!==T.value))}function A(T,_){const V=i.value==="ltr"&&T==="left"||i.value==="rtl"&&T==="right"?-1:1,L=_+V;if(!(L<0)){if(L>=e.inputChips.length){S();return}E[L].focus()}}function g(T){return Q(this,null,function*(){I(),yield t.nextTick(),N(T),a.value=T.value,S()})}function y(T,_,V){if(V==="button")S();else if(V==="Backspace"){const L=_===0?1:_-1;L<e.inputChips.length?E[L].focus():S()}else if(V==="Delete"){const L=_+1;L<e.inputChips.length?E[L].focus():S()}N(T)}function C(T){var V,L;const _=i.value==="rtl"?"ArrowRight":"ArrowLeft";switch(T.key){case"Enter":if(a.value.length>0){I(),T.preventDefault(),T.stopPropagation();return}break;case"Escape":(V=r.value)==null||V.blur(),T.preventDefault(),T.stopPropagation();return;case"Backspace":case _:if(((L=r.value)==null?void 0:L.selectionStart)===0&&r.value.selectionEnd===0&&e.inputChips.length>0){E[e.inputChips.length-1].focus(),T.preventDefault(),T.stopPropagation();return}break}}function k(){p.value=!0}function B(){p.value=!1}function R(T){l.value.contains(T.relatedTarget)||I()}return t.watch(t.toRef(e,"inputChips"),T=>{const _=T.find(V=>V.value===a.value);d.value=_?"error":"default"}),t.watch(a,()=>{d.value==="error"&&(d.value="default")}),{rootElement:l,input:r,inputValue:a,rootClasses:f,rootStyle:b,otherAttrs:h,assignChipTemplateRef:$,handleChipClick:g,handleChipRemove:y,moveChipFocus:A,onInputKeydown:C,focusInput:S,onInputFocus:k,onInputBlur:B,onFocusOut:R,computedDisabled:c}}}),Wo={class:"cdx-chip-input__chips",role:"listbox","aria-orientation":"horizontal"},Qo=["disabled"],Go={key:0,class:"cdx-chip-input__separate-input"},Yo=["disabled"];function Xo(e,n,o,l,i,r){const a=t.resolveComponent("cdx-input-chip");return t.openBlock(),t.createElementBlock("div",{ref:"rootElement",class:t.normalizeClass(["cdx-chip-input",e.rootClasses]),style:t.normalizeStyle(e.rootStyle),onClick:n[8]||(n[8]=(...d)=>e.focusInput&&e.focusInput(...d)),onFocusout:n[9]||(n[9]=(...d)=>e.onFocusOut&&e.onFocusOut(...d))},[t.createElementVNode("div",Wo,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.inputChips,(d,s)=>(t.openBlock(),t.createBlock(a,{key:d.value,ref_for:!0,ref:c=>e.assignChipTemplateRef(c,s),class:"cdx-chip-input__item",icon:d.icon,disabled:e.computedDisabled,onClickChip:c=>e.handleChipClick(d),onRemoveChip:c=>e.handleChipRemove(d,s,c),onArrowLeft:c=>e.moveChipFocus("left",s),onArrowRight:c=>e.moveChipFocus("right",s)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(d.value),1)]),_:2},1032,["icon","disabled","onClickChip","onRemoveChip","onArrowLeft","onArrowRight"]))),128)),e.separateInput?t.createCommentVNode("v-if",!0):t.withDirectives((t.openBlock(),t.createElementBlock("input",t.mergeProps({key:0,ref:"input","onUpdate:modelValue":n[0]||(n[0]=d=>e.inputValue=d),class:"cdx-chip-input__input",disabled:e.computedDisabled},e.otherAttrs,{onBlur:n[1]||(n[1]=(...d)=>e.onInputBlur&&e.onInputBlur(...d)),onFocus:n[2]||(n[2]=(...d)=>e.onInputFocus&&e.onInputFocus(...d)),onKeydown:n[3]||(n[3]=(...d)=>e.onInputKeydown&&e.onInputKeydown(...d))}),null,16,Qo)),[[t.vModelDynamic,e.inputValue]])]),e.separateInput?(t.openBlock(),t.createElementBlock("div",Go,[t.withDirectives(t.createElementVNode("input",t.mergeProps({ref:"input","onUpdate:modelValue":n[4]||(n[4]=d=>e.inputValue=d),class:"cdx-chip-input__input",disabled:e.computedDisabled},e.otherAttrs,{onBlur:n[5]||(n[5]=(...d)=>e.onInputBlur&&e.onInputBlur(...d)),onFocus:n[6]||(n[6]=(...d)=>e.onInputFocus&&e.onInputFocus(...d)),onKeydown:n[7]||(n[7]=(...d)=>e.onInputKeydown&&e.onInputKeydown(...d))}),null,16,Yo),[[t.vModelDynamic,e.inputValue]])])):t.createCommentVNode("v-if",!0)],38)}const Jo=O(Uo,[["render",Xo]]);function Lt(e){return e.replace(/([\\{}()|.?*+\-^$[\]])/g,"\\$1")}const Zo="[̀-ͯ҃-҉֑-ׇֽֿׁׂׅׄؐ-ًؚ-ٰٟۖ-ۜ۟-۪ۤۧۨ-ܑۭܰ-݊ަ-ް߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࣓-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣঁ-ঃ়া-ৄেৈো-্ৗৢৣ৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑੰੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୢୣஂா-ூெ-ைொ-்ௗఀ-ఄా-ౄె-ైొ-్ౕౖౢౣಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣංඃ්ා-ුූෘ-ෟෲෳัิ-ฺ็-๎ັິ-ູົຼ່-ໍ༹༘༙༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏႚ-ႝ፝-፟ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝᠋-᠍ᢅᢆᢩᤠ-ᤫᤰ-᤻ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼᪰-᪾ᬀ-ᬄ᬴-᭄᭫-᭳ᮀ-ᮂᮡ-ᮭ᯦-᯳ᰤ-᰷᳐-᳔᳒-᳨᳭ᳲ-᳴᳷-᳹᷀-᷹᷻-᷿⃐-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꙯-꙲ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧꢀꢁꢴ-ꣅ꣠-꣱ꣿꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀ꧥꨩ-ꨶꩃꩌꩍꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭ﬞ︀-️︠-︯]";function Dt(e,n){if(!e)return[n,"",""];const o=Lt(e),l=new RegExp(o+Zo+"*","i").exec(n);if(!l||l.index===void 0)return[n,"",""];const i=l.index,r=i+l[0].length,a=n.slice(i,r),d=n.slice(0,i),s=n.slice(r,n.length);return[d,a,s]}const el=Object.freeze(Object.defineProperty({__proto__:null,regExpEscape:Lt,splitStringAtMatch:Dt},Symbol.toStringTag,{value:"Module"})),tl=t.defineComponent({name:"CdxSearchResultTitle",props:{title:{type:String,required:!0},searchQuery:{type:String,default:""}},setup:e=>({titleChunks:t.computed(()=>Dt(e.searchQuery,String(e.title)))})}),nl={class:"cdx-search-result-title"},ol={class:"cdx-search-result-title__match"};function ll(e,n,o,l,i,r){return t.openBlock(),t.createElementBlock("span",nl,[t.createElementVNode("bdi",null,[t.createTextVNode(t.toDisplayString(e.titleChunks[0]),1),t.createElementVNode("span",ol,t.toDisplayString(e.titleChunks[1]),1),t.createTextVNode(t.toDisplayString(e.titleChunks[2]),1)])])}const Rt=O(tl,[["render",ll]]),al=t.defineComponent({name:"CdxMenuItem",components:{CdxIcon:H,CdxThumbnail:at,CdxSearchResultTitle:Rt},props:{id:{type:String,required:!0},value:{type:[String,Number],required:!0},disabled:{type:Boolean,default:!1},selected:{type:Boolean,default:!1},active:{type:Boolean,default:!1},highlighted:{type:Boolean,default:!1},label:{type:String,default:""},match:{type:String,default:""},supportingText:{type:String,default:""},url:{type:String,default:""},icon:{type:[String,Object],default:""},showThumbnail:{type:Boolean,default:!1},thumbnail:{type:[Object,null],default:null},description:{type:[String,null],default:""},searchQuery:{type:String,default:""},boldLabel:{type:Boolean,default:!1},hideDescriptionOverflow:{type:Boolean,default:!1},language:{type:Object,default:()=>({})},action:{type:String,default:"default"},multiselect:{type:Boolean,default:!1}},emits:["change"],setup:(e,{emit:n})=>{const o=()=>{e.highlighted||n("change","highlighted",!0)},l=()=>{n("change","highlighted",!1)},i=u=>{u.button===0&&n("change","active",!0)},r=()=>{n("change","selected",!0)},a=t.computed(()=>e.searchQuery.length>0),d=t.computed(()=>({"cdx-menu-item--selected":e.selected,"cdx-menu-item--active":e.active&&e.highlighted,"cdx-menu-item--highlighted":e.highlighted,"cdx-menu-item--destructive":e.action&&e.action==="destructive","cdx-menu-item--enabled":!e.disabled,"cdx-menu-item--disabled":e.disabled,"cdx-menu-item--highlight-query":a.value,"cdx-menu-item--bold-label":e.boldLabel,"cdx-menu-item--has-description":!!e.description,"cdx-menu-item--hide-description-overflow":e.hideDescriptionOverflow})),s=t.computed(()=>e.url?"a":"span"),c=t.computed(()=>e.label||String(e.value));return{onMouseMove:o,onMouseLeave:l,onMouseDown:i,onClick:r,highlightQuery:a,rootClasses:d,contentTag:s,title:c}}}),sl=["id","aria-disabled","aria-selected","aria-checked"],il={class:"cdx-menu-item__text"},rl=["lang"],dl=["lang"],cl=["lang"],ul=["lang"];function fl(e,n,o,l,i,r){const a=t.resolveComponent("cdx-thumbnail"),d=t.resolveComponent("cdx-icon"),s=t.resolveComponent("cdx-search-result-title");return t.openBlock(),t.createElementBlock("li",{id:e.id,role:"option",class:t.normalizeClass(["cdx-menu-item",e.rootClasses]),"aria-disabled":e.disabled,"aria-selected":e.selected&&!e.multiselect?!0:void 0,"aria-checked":e.selected&&e.multiselect?!0:void 0,onMousemove:n[0]||(n[0]=(...c)=>e.onMouseMove&&e.onMouseMove(...c)),onMouseleave:n[1]||(n[1]=(...c)=>e.onMouseLeave&&e.onMouseLeave(...c)),onMousedown:n[2]||(n[2]=t.withModifiers((...c)=>e.onMouseDown&&e.onMouseDown(...c),["prevent"])),onClick:n[3]||(n[3]=(...c)=>e.onClick&&e.onClick(...c))},[t.renderSlot(e.$slots,"default",{},()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.contentTag),{href:e.url?e.url:void 0,class:"cdx-menu-item__content"},{default:t.withCtx(()=>{var c,u,p,m,f,b;return[e.showThumbnail?(t.openBlock(),t.createBlock(a,{key:0,thumbnail:e.thumbnail,class:"cdx-menu-item__thumbnail"},null,8,["thumbnail"])):e.icon?(t.openBlock(),t.createBlock(d,{key:1,icon:e.icon,class:"cdx-menu-item__icon"},null,8,["icon"])):t.createCommentVNode("v-if",!0),t.createElementVNode("span",il,[e.highlightQuery?(t.openBlock(),t.createBlock(s,{key:0,title:e.title,"search-query":e.searchQuery,lang:(c=e.language)==null?void 0:c.label},null,8,["title","search-query","lang"])):(t.openBlock(),t.createElementBlock("span",{key:1,class:"cdx-menu-item__text__label",lang:(u=e.language)==null?void 0:u.label},[t.createElementVNode("bdi",null,t.toDisplayString(e.title),1)],8,rl)),e.match?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode(t.toDisplayString(" ")+" "),e.highlightQuery?(t.openBlock(),t.createBlock(s,{key:0,title:e.match,"search-query":e.searchQuery,lang:(p=e.language)==null?void 0:p.match},null,8,["title","search-query","lang"])):(t.openBlock(),t.createElementBlock("span",{key:1,class:"cdx-menu-item__text__match",lang:(m=e.language)==null?void 0:m.match},[t.createElementVNode("bdi",null,t.toDisplayString(e.match),1)],8,dl))],64)):t.createCommentVNode("v-if",!0),e.supportingText?(t.openBlock(),t.createElementBlock(t.Fragment,{key:3},[t.createTextVNode(t.toDisplayString(" ")+" "),t.createElementVNode("span",{class:"cdx-menu-item__text__supporting-text",lang:(f=e.language)==null?void 0:f.supportingText},[t.createElementVNode("bdi",null,t.toDisplayString(e.supportingText),1)],8,cl)],64)):t.createCommentVNode("v-if",!0),e.description?(t.openBlock(),t.createElementBlock("span",{key:4,class:"cdx-menu-item__text__description",lang:(b=e.language)==null?void 0:b.description},[t.createElementVNode("bdi",null,t.toDisplayString(e.description),1)],8,ul)):t.createCommentVNode("v-if",!0)])]}),_:1},8,["href"]))])],42,sl)}const Ot=O(al,[["render",fl]]),pl=t.defineComponent({name:"CdxProgressBar",props:{inline:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},setup(e,{attrs:n}){Pe(()=>!e.inline&&!n["aria-label"]&&!n["aria-hidden"],"CdxProgressBar: Progress bars require one of the following attribute, aria-label or aria-hidden. See documentation on https://doc.wikimedia.org/codex/latest/components/demos/progressbar.html");const o=t.computed(()=>({"cdx-progress-bar--block":!e.inline,"cdx-progress-bar--inline":e.inline,"cdx-progress-bar--enabled":!e.disabled,"cdx-progress-bar--disabled":e.disabled})),l=t.computed(()=>e.inline?"true":void 0);return{rootClasses:o,computedAriaHidden:l}}}),ml=["aria-hidden","aria-disabled"],hl=[t.createElementVNode("div",{class:"cdx-progress-bar__bar"},null,-1)];function bl(e,n,o,l,i,r){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["cdx-progress-bar",e.rootClasses]),role:"progressbar","aria-hidden":e.computedAriaHidden,"aria-disabled":e.disabled},hl,10,ml)}const _t=O(pl,[["render",bl]]);function je(e,n){const o=t.ref(!1);let l=!1;if(typeof window!="object"||!("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype))return o;const i=new window.IntersectionObserver(r=>{const a=r[0];a&&(o.value=a.isIntersecting)},n);return t.onMounted(()=>{l=!0,e.value&&i.observe(e.value)}),t.onUnmounted(()=>{l=!1,i.disconnect()}),t.watch(e,r=>{l&&(i.disconnect(),o.value=!1,r&&i.observe(r))}),o}function qe(e){return e!==null&&Array.isArray(e)}const gl=t.defineComponent({name:"CdxMenu",components:{CdxMenuItem:Ot,CdxProgressBar:_t},inheritAttrs:!1,props:{menuItems:{type:Array,required:!0},footer:{type:Object,default:null},selected:{type:[String,Number,Array,null],required:!0},expanded:{type:Boolean,required:!0},showPending:{type:Boolean,default:!1},visibleItemLimit:{type:Number,default:null},showThumbnail:{type:Boolean,default:!1},boldLabel:{type:Boolean,default:!1},hideDescriptionOverflow:{type:Boolean,default:!1},searchQuery:{type:String,default:""},showNoResultsSlot:{type:Boolean,default:null}},emits:["update:selected","update:expanded","menu-item-click","menu-item-keyboard-navigation","load-more"],expose:["isExpanded","clearActive","getHighlightedMenuItem","getHighlightedViaKeyboard","delegateKeyNavigation"],setup(e,{emit:n,slots:o,attrs:l}){const i=t.computed(()=>(e.footer&&e.menuItems?[...e.menuItems,e.footer]:e.menuItems).map(M=>W(z({},M),{id:K("menu-item")}))),r=t.computed(()=>o["no-results"]?e.showNoResultsSlot!==null?e.showNoResultsSlot:i.value.length===0:!1),a=t.ref(null),d=t.ref(!1),s=t.ref(null),c="additions removals";let u="",p=null;function m(){u="",p!==null&&(clearTimeout(p),p=null)}function f(){p!==null&&clearTimeout(p),p=setTimeout(m,1500)}function b(){var x;return(x=i.value.find(M=>qe(e.selected)?e.selected.indexOf(M.value)!==-1:M.value===e.selected))!=null?x:null}const h=t.computed(()=>qe(e.selected));function E(x){return qe(e.selected)?e.selected.indexOf(x)!==-1:x===e.selected}function $(x){if(qe(e.selected)){const M=e.selected.indexOf(x)===-1?e.selected.concat(x):e.selected.filter(U=>U!==x);n("update:selected",M)}else n("update:selected",x)}function S(x,M){if(!(M&&M.disabled))switch(x){case"selected":M&&$(M.value),h.value||n("update:expanded",!1),s.value=null;break;case"highlighted":a.value=M!=null?M:null,d.value=!1;break;case"highlightedViaKeyboard":a.value=M!=null?M:null,d.value=!0;break;case"active":s.value=M!=null?M:null;break}}const I=t.computed(()=>{if(a.value!==null)return i.value.findIndex(x=>x.value===a.value.value)});function N(x){x&&(S("highlightedViaKeyboard",x),n("menu-item-keyboard-navigation",x))}function A(x){var j;const M=xe=>{for(let oe=xe-1;oe>=0;oe--)if(!i.value[oe].disabled)return i.value[oe]};x=x!=null?x:i.value.length;const U=(j=M(x))!=null?j:M(i.value.length);N(U)}function g(x){var j;const M=xe=>i.value.find((oe,et)=>!oe.disabled&&et>xe);x=x!=null?x:-1;const U=(j=M(x))!=null?j:M(-1);N(U)}function y(x){if(x.key==="Clear")return m(),!0;if(x.key==="Backspace")return u=u.slice(0,-1),f(),!0;if(x.key.length===1&&!x.metaKey&&!x.ctrlKey&&!x.altKey){if(e.expanded||n("update:expanded",!0),x.key===" "&&u.length<1)return!1;u+=x.key.toLowerCase();const M=u.length>1&&u.split("").every(oe=>oe===u[0]);let U=i.value,j=u;M&&I.value!==void 0&&(U=U.slice(I.value+1).concat(U.slice(0,I.value)),j=u[0]);const xe=U.find(oe=>{var et;return!oe.disabled&&String((et=oe.label)!=null?et:oe.value).toLowerCase().startsWith(j)});return xe&&(S("highlightedViaKeyboard",xe),V()),f(),!0}return!1}function C(x,{prevent:M=!0,characterNavigation:U=!1}={}){if(U){if(y(x))return x.preventDefault(),!0;m()}function j(){M&&(x.preventDefault(),x.stopPropagation())}switch(x.key){case"Enter":case" ":return j(),e.expanded?(a.value&&d.value&&$(a.value.value),h.value||n("update:expanded",!1)):n("update:expanded",!0),!0;case"Tab":return e.expanded&&(a.value&&d.value&&$(a.value.value),h.value||n("update:expanded",!1)),!0;case"ArrowUp":return j(),e.expanded?(a.value===null&&S("highlightedViaKeyboard",b()),A(I.value)):n("update:expanded",!0),V(),!0;case"ArrowDown":return j(),e.expanded?(a.value===null&&S("highlightedViaKeyboard",b()),g(I.value)):n("update:expanded",!0),V(),!0;case"Home":return j(),e.expanded?(a.value===null&&S("highlightedViaKeyboard",b()),g()):n("update:expanded",!0),V(),!0;case"End":return j(),e.expanded?(a.value===null&&S("highlightedViaKeyboard",b()),A()):n("update:expanded",!0),V(),!0;case"Escape":return j(),n("update:expanded",!1),!0;default:return!1}}function k(){S("active",null)}const B=[],R=t.ref(void 0),T=je(R,{threshold:.8});t.watch(T,x=>{x&&n("load-more")});function _(x,M){if(x){B[M]=x.$el;const U=e.visibleItemLimit;if(!U||e.menuItems.length<U)return;const j=Math.min(U,Math.max(2,Math.floor(.2*e.menuItems.length)));M===e.menuItems.length-j&&(R.value=x.$el)}}function V(){if(!e.visibleItemLimit||e.visibleItemLimit>e.menuItems.length||I.value===void 0)return;const x=I.value>=0?I.value:0;B[x].scrollIntoView({behavior:"smooth",block:"nearest"})}const L=t.ref(null),P=t.ref(null);function G(){return Q(this,null,function*(){yield t.nextTick(),re(),be(),yield t.nextTick(),V()})}function re(){if(e.footer){const x=B[B.length-1];P.value=x.scrollHeight}else P.value=null}function be(){if(!e.visibleItemLimit||B.length<=e.visibleItemLimit){L.value=null;return}const x=B[0].getBoundingClientRect().top,M=B[e.visibleItemLimit].getBoundingClientRect().top;L.value=M-x+2}t.onMounted(()=>{document.addEventListener("mouseup",k)}),t.onUnmounted(()=>{document.removeEventListener("mouseup",k)}),t.watch(t.toRef(e,"expanded"),x=>Q(this,null,function*(){if(x){const M=b();M&&!a.value&&S("highlighted",M),yield G()}else S("highlighted",null)})),t.watch(t.toRef(e,"menuItems"),x=>Q(this,null,function*(){x.length<B.length&&(B.length=x.length),e.expanded&&(yield G())}),{deep:!0});const Oe=t.computed(()=>({"max-height":L.value?"".concat(L.value,"px"):void 0,"margin-bottom":P.value?"".concat(P.value,"px"):void 0})),D=t.computed(()=>({"cdx-menu--has-footer":!!e.footer})),{rootClasses:v,rootStyle:le,otherAttrs:Ze}=J(l,D);return{listBoxStyle:Oe,rootClasses:v,rootStyle:le,otherAttrs:Ze,assignTemplateRef:_,computedMenuItems:i,computedShowNoResultsSlot:r,highlightedMenuItem:a,highlightedViaKeyboard:d,activeMenuItem:s,handleMenuItemChange:S,handleKeyNavigation:C,ariaRelevant:c,isMultiselect:h,isItemSelected:E}},methods:{isExpanded(){return this.expanded},getHighlightedMenuItem(){return this.expanded?this.highlightedMenuItem:null},getHighlightedViaKeyboard(){return this.highlightedViaKeyboard},clearActive(){this.handleMenuItemChange("active",null)},delegateKeyNavigation(e,{prevent:n=!0,characterNavigation:o=!1}={}){return this.handleKeyNavigation(e,{prevent:n,characterNavigation:o})}}}),yl=["aria-live","aria-relevant","aria-multiselectable"],Cl={key:0,class:"cdx-menu__pending cdx-menu-item"},wl={key:1,class:"cdx-menu__no-results cdx-menu-item"};function kl(e,n,o,l,i,r){const a=t.resolveComponent("cdx-menu-item"),d=t.resolveComponent("cdx-progress-bar");return t.withDirectives((t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["cdx-menu",e.rootClasses]),style:t.normalizeStyle(e.rootStyle)},[t.createElementVNode("ul",t.mergeProps({class:"cdx-menu__listbox",role:"listbox",style:e.listBoxStyle,"aria-live":e.showPending?"polite":void 0,"aria-relevant":e.showPending?e.ariaRelevant:void 0,"aria-multiselectable":e.isMultiselect?!0:void 0},e.otherAttrs),[e.showPending&&e.computedMenuItems.length===0&&e.$slots.pending?(t.openBlock(),t.createElementBlock("li",Cl,[t.renderSlot(e.$slots,"pending")])):t.createCommentVNode("v-if",!0),e.computedShowNoResultsSlot?(t.openBlock(),t.createElementBlock("li",wl,[t.renderSlot(e.$slots,"no-results")])):t.createCommentVNode("v-if",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.computedMenuItems,(s,c)=>{var u,p;return t.openBlock(),t.createBlock(a,t.mergeProps({key:s.value,ref_for:!0,ref:m=>e.assignTemplateRef(m,c)},s,{selected:e.isItemSelected(s.value),active:s.value===((u=e.activeMenuItem)==null?void 0:u.value),highlighted:s.value===((p=e.highlightedMenuItem)==null?void 0:p.value),"show-thumbnail":e.showThumbnail,"bold-label":e.boldLabel,"hide-description-overflow":e.hideDescriptionOverflow,"search-query":e.searchQuery,multiselect:e.isMultiselect,onChange:(m,f)=>e.handleMenuItemChange(m,f?s:null),onClick:m=>e.$emit("menu-item-click",s)}),{default:t.withCtx(()=>{var m,f;return[t.renderSlot(e.$slots,"default",{menuItem:s,active:s.value===((m=e.activeMenuItem)==null?void 0:m.value)&&s.value===((f=e.highlightedMenuItem)==null?void 0:f.value)})]}),_:2},1040,["selected","active","highlighted","show-thumbnail","bold-label","hide-description-overflow","search-query","multiselect","onChange","onClick"])}),128)),e.showPending?(t.openBlock(),t.createBlock(d,{key:2,class:"cdx-menu__progress-bar",inline:!0})):t.createCommentVNode("v-if",!0)],16,yl)],6)),[[t.vShow,e.expanded]])}const ke=O(gl,[["render",kl]]),$l=q(zn),Bl=q(ue),Sl=t.defineComponent({name:"CdxTextInput",components:{CdxIcon:H},inheritAttrs:!1,expose:["focus","blur"],props:{modelValue:{type:[String,Number],default:""},inputType:{type:String,default:"text",validator:$l},status:{type:String,default:"default",validator:Bl},disabled:{type:Boolean,default:!1},startIcon:{type:[String,Object],default:void 0},endIcon:{type:[String,Object],default:void 0},clearable:{type:Boolean,default:!1}},emits:["update:modelValue","keydown","input","change","focus","blur","clear"],setup(e,{emit:n,attrs:o}){const l=o.id,{computedDisabled:i,computedStatus:r,computedInputId:a}=X(t.toRef(e,"disabled"),t.toRef(e,"status"),l),d=t.inject(ze,void 0),s=Z(t.toRef(e,"modelValue"),n),c=t.computed(()=>e.clearable&&!!s.value&&!i.value),u=t.computed(()=>({"cdx-text-input--has-start-icon":!!e.startIcon,"cdx-text-input--has-end-icon":!!e.endIcon,"cdx-text-input--clearable":c.value,["cdx-text-input--status-".concat(r.value)]:!0})),{rootClasses:p,rootStyle:m,otherAttrs:f}=J(o,u),b=t.computed(()=>{const C=f.value,{id:g}=C;return ae(C,["id"])}),h=t.computed(()=>({"cdx-text-input__input--has-value":!!s.value}));return{computedInputId:a,descriptionId:d,wrappedModel:s,isClearable:c,rootClasses:p,rootStyle:m,otherAttrsMinusId:b,inputClasses:h,computedDisabled:i,onClear:g=>{s.value="",n("clear",g)},onInput:g=>{n("input",g)},onChange:g=>{n("change",g)},onKeydown:g=>{(g.key==="Home"||g.key==="End")&&!g.ctrlKey&&!g.metaKey||n("keydown",g)},onFocus:g=>{n("focus",g)},onBlur:g=>{n("blur",g)},cdxIconClear:In}},methods:{focus(){this.$refs.input.focus()},blur(){this.$refs.input.blur()}}}),Il=["id","type","aria-describedby","disabled"];function xl(e,n,o,l,i,r){const a=t.resolveComponent("cdx-icon");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["cdx-text-input",e.rootClasses]),style:t.normalizeStyle(e.rootStyle)},[t.withDirectives(t.createElementVNode("input",t.mergeProps({id:e.computedInputId,ref:"input","onUpdate:modelValue":n[0]||(n[0]=d=>e.wrappedModel=d),class:["cdx-text-input__input",e.inputClasses]},e.otherAttrsMinusId,{type:e.inputType,"aria-describedby":e.descriptionId,disabled:e.computedDisabled,size:"1",onInput:n[1]||(n[1]=(...d)=>e.onInput&&e.onInput(...d)),onChange:n[2]||(n[2]=(...d)=>e.onChange&&e.onChange(...d)),onFocus:n[3]||(n[3]=(...d)=>e.onFocus&&e.onFocus(...d)),onBlur:n[4]||(n[4]=(...d)=>e.onBlur&&e.onBlur(...d)),onKeydown:n[5]||(n[5]=(...d)=>e.onKeydown&&e.onKeydown(...d))}),null,16,Il),[[t.vModelDynamic,e.wrappedModel]]),e.startIcon?(t.openBlock(),t.createBlock(a,{key:0,icon:e.startIcon,class:"cdx-text-input__icon-vue cdx-text-input__start-icon"},null,8,["icon"])):t.createCommentVNode("v-if",!0),e.endIcon?(t.openBlock(),t.createBlock(a,{key:1,icon:e.endIcon,class:"cdx-text-input__icon-vue cdx-text-input__end-icon"},null,8,["icon"])):t.createCommentVNode("v-if",!0),e.isClearable?(t.openBlock(),t.createBlock(a,{key:2,icon:e.cdxIconClear,class:"cdx-text-input__icon-vue cdx-text-input__clear-icon",onMousedown:n[6]||(n[6]=t.withModifiers(()=>{},["prevent"])),onClick:e.onClear},null,8,["icon","onClick"])):t.createCommentVNode("v-if",!0)],6)}const Ue=O(Sl,[["render",xl]]),El=["top","right","bottom","left"],$e=Math.min,ee=Math.max,We=Math.round,Qe=Math.floor,ge=e=>({x:e,y:e}),Vl={left:"right",right:"left",bottom:"top",top:"bottom"},Al={start:"end",end:"start"};function Ft(e,n,o){return ee(e,$e(n,o))}function Be(e,n){return typeof e=="function"?e(n):e}function ye(e){return e.split("-")[0]}function Ne(e){return e.split("-")[1]}function vt(e){return e==="x"?"y":"x"}function zt(e){return e==="y"?"height":"width"}function Te(e){return["top","bottom"].includes(ye(e))?"y":"x"}function Kt(e){return vt(Te(e))}function Nl(e,n,o){o===void 0&&(o=!1);const l=Ne(e),i=Kt(e),r=zt(i);let a=i==="x"?l===(o?"end":"start")?"right":"left":l==="start"?"bottom":"top";return n.reference[r]>n.floating[r]&&(a=Ge(a)),[a,Ge(a)]}function Tl(e){const n=Ge(e);return[dt(e),n,dt(n)]}function dt(e){return e.replace(/start|end/g,n=>Al[n])}function Ml(e,n,o){const l=["left","right"],i=["right","left"],r=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return o?n?i:l:n?l:i;case"left":case"right":return n?r:a;default:return[]}}function Ll(e,n,o,l){const i=Ne(e);let r=Ml(ye(e),o==="start",l);return i&&(r=r.map(a=>a+"-"+i),n&&(r=r.concat(r.map(dt)))),r}function Ge(e){return e.replace(/left|right|bottom|top/g,n=>Vl[n])}function Dl(e){return z({top:0,right:0,bottom:0,left:0},e)}function Rl(e){return typeof e!="number"?Dl(e):{top:e,right:e,bottom:e,left:e}}function Ye(e){return W(z({},e),{top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height})}function Ht(e,n,o){let{reference:l,floating:i}=e;const r=Te(n),a=Kt(n),d=zt(a),s=ye(n),c=r==="y",u=l.x+l.width/2-i.width/2,p=l.y+l.height/2-i.height/2,m=l[d]/2-i[d]/2;let f;switch(s){case"top":f={x:u,y:l.y-i.height};break;case"bottom":f={x:u,y:l.y+l.height};break;case"right":f={x:l.x+l.width,y:p};break;case"left":f={x:l.x-i.width,y:p};break;default:f={x:l.x,y:l.y}}switch(Ne(n)){case"start":f[a]-=m*(o&&c?-1:1);break;case"end":f[a]+=m*(o&&c?-1:1);break}return f}const Ol=(e,n,o)=>Q(this,null,function*(){const{placement:l="bottom",strategy:i="absolute",middleware:r=[],platform:a}=o,d=r.filter(Boolean),s=yield a.isRTL==null?void 0:a.isRTL(n);let c=yield a.getElementRects({reference:e,floating:n,strategy:i}),{x:u,y:p}=Ht(c,l,s),m=l,f={},b=0;for(let h=0;h<d.length;h++){const{name:E,fn:$}=d[h],{x:S,y:I,data:N,reset:A}=yield $({x:u,y:p,initialPlacement:l,placement:m,strategy:i,middlewareData:f,rects:c,platform:a,elements:{reference:e,floating:n}});u=S!=null?S:u,p=I!=null?I:p,f=W(z({},f),{[E]:z(z({},f[E]),N)}),A&&b<=50&&(b++,typeof A=="object"&&(A.placement&&(m=A.placement),A.rects&&(c=A.rects===!0?yield a.getElementRects({reference:e,floating:n,strategy:i}):A.rects),{x:u,y:p}=Ht(c,m,s)),h=-1)}return{x:u,y:p,placement:m,strategy:i,middlewareData:f}});function Me(e,n){return Q(this,null,function*(){var o;n===void 0&&(n={});const{x:l,y:i,platform:r,rects:a,elements:d,strategy:s}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:p="floating",altBoundary:m=!1,padding:f=0}=Be(n,e),b=Rl(f),E=d[m?p==="floating"?"reference":"floating":p],$=Ye(yield r.getClippingRect({element:(o=yield r.isElement==null?void 0:r.isElement(E))==null||o?E:E.contextElement||(yield r.getDocumentElement==null?void 0:r.getDocumentElement(d.floating)),boundary:c,rootBoundary:u,strategy:s})),S=p==="floating"?W(z({},a.floating),{x:l,y:i}):a.reference,I=yield r.getOffsetParent==null?void 0:r.getOffsetParent(d.floating),N=(yield r.isElement==null?void 0:r.isElement(I))?(yield r.getScale==null?void 0:r.getScale(I))||{x:1,y:1}:{x:1,y:1},A=Ye(r.convertOffsetParentRelativeRectToViewportRelativeRect?yield r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:S,offsetParent:I,strategy:s}):S);return{top:($.top-A.top+b.top)/N.y,bottom:(A.bottom-$.bottom+b.bottom)/N.y,left:($.left-A.left+b.left)/N.x,right:(A.right-$.right+b.right)/N.x}})}const _l=function(e){return e===void 0&&(e={}),{name:"flip",options:e,fn(o){return Q(this,null,function*(){var l,i;const{placement:r,middlewareData:a,rects:d,initialPlacement:s,platform:c,elements:u}=o,_=Be(e,o),{mainAxis:p=!0,crossAxis:m=!0,fallbackPlacements:f,fallbackStrategy:b="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:E=!0}=_,$=ae(_,["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"]);if((l=a.arrow)!=null&&l.alignmentOffset)return{};const S=ye(r),I=ye(s)===s,N=yield c.isRTL==null?void 0:c.isRTL(u.floating),A=f||(I||!E?[Ge(s)]:Tl(s));!f&&h!=="none"&&A.push(...Ll(s,E,h,N));const g=[s,...A],y=yield Me(o,$),C=[];let k=((i=a.flip)==null?void 0:i.overflows)||[];if(p&&C.push(y[S]),m){const V=Nl(r,d,N);C.push(y[V[0]],y[V[1]])}if(k=[...k,{placement:r,overflows:C}],!C.every(V=>V<=0)){var B,R;const V=(((B=a.flip)==null?void 0:B.index)||0)+1,L=g[V];if(L)return{data:{index:V,overflows:k},reset:{placement:L}};let P=(R=k.filter(G=>G.overflows[0]<=0).sort((G,re)=>G.overflows[1]-re.overflows[1])[0])==null?void 0:R.placement;if(!P)switch(b){case"bestFit":{var T;const G=(T=k.map(re=>[re.placement,re.overflows.filter(be=>be>0).reduce((be,Oe)=>be+Oe,0)]).sort((re,be)=>re[1]-be[1])[0])==null?void 0:T[0];G&&(P=G);break}case"initialPlacement":P=s;break}if(r!==P)return{reset:{placement:P}}}return{}})}}};function Pt(e,n){return{top:e.top-n.height,right:e.right-n.width,bottom:e.bottom-n.height,left:e.left-n.width}}function jt(e){return El.some(n=>e[n]>=0)}const Fl=function(e){return e===void 0&&(e={}),{name:"hide",options:e,fn(o){return Q(this,null,function*(){const{rects:l}=o,a=Be(e,o),{strategy:i="referenceHidden"}=a,r=ae(a,["strategy"]);switch(i){case"referenceHidden":{const d=yield Me(o,W(z({},r),{elementContext:"reference"})),s=Pt(d,l.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:jt(s)}}}case"escaped":{const d=yield Me(o,W(z({},r),{altBoundary:!0})),s=Pt(d,l.floating);return{data:{escapedOffsets:s,escaped:jt(s)}}}default:return{}}})}}};function vl(e,n){return Q(this,null,function*(){const{placement:o,platform:l,elements:i}=e,r=yield l.isRTL==null?void 0:l.isRTL(i.floating),a=ye(o),d=Ne(o),s=Te(o)==="y",c=["left","top"].includes(a)?-1:1,u=r&&s?-1:1,p=Be(n,e);let{mainAxis:m,crossAxis:f,alignmentAxis:b}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:z({mainAxis:0,crossAxis:0,alignmentAxis:null},p);return d&&typeof b=="number"&&(f=d==="end"?b*-1:b),s?{x:f*u,y:m*c}:{x:m*c,y:f*u}})}const qt=function(e){return e===void 0&&(e=0),{name:"offset",options:e,fn(o){return Q(this,null,function*(){var l,i;const{x:r,y:a,placement:d,middlewareData:s}=o,c=yield vl(o,e);return d===((l=s.offset)==null?void 0:l.placement)&&(i=s.arrow)!=null&&i.alignmentOffset?{}:{x:r+c.x,y:a+c.y,data:W(z({},c),{placement:d})}})}}},zl=function(e){return e===void 0&&(e={}),{name:"shift",options:e,fn(o){return Q(this,null,function*(){const{x:l,y:i,placement:r}=o,$=Be(e,o),{mainAxis:a=!0,crossAxis:d=!1,limiter:s={fn:S=>{let{x:I,y:N}=S;return{x:I,y:N}}}}=$,c=ae($,["mainAxis","crossAxis","limiter"]),u={x:l,y:i},p=yield Me(o,c),m=Te(ye(r)),f=vt(m);let b=u[f],h=u[m];if(a){const S=f==="y"?"top":"left",I=f==="y"?"bottom":"right",N=b+p[S],A=b-p[I];b=Ft(N,b,A)}if(d){const S=m==="y"?"top":"left",I=m==="y"?"bottom":"right",N=h+p[S],A=h-p[I];h=Ft(N,h,A)}const E=s.fn(W(z({},o),{[f]:b,[m]:h}));return W(z({},E),{data:{x:E.x-l,y:E.y-i}})})}}},Kl=function(e){return e===void 0&&(e={}),{name:"size",options:e,fn(o){return Q(this,null,function*(){const{placement:l,rects:i,platform:r,elements:a}=o,y=Be(e,o),{apply:d=()=>{}}=y,s=ae(y,["apply"]),c=yield Me(o,s),u=ye(l),p=Ne(l),m=Te(l)==="y",{width:f,height:b}=i.floating;let h,E;u==="top"||u==="bottom"?(h=u,E=p===((yield r.isRTL==null?void 0:r.isRTL(a.floating))?"start":"end")?"left":"right"):(E=u,h=p==="end"?"top":"bottom");const $=b-c[h],S=f-c[E],I=!o.middlewareData.shift;let N=$,A=S;if(m){const C=f-c.left-c.right;A=p||I?$e(S,C):C}else{const C=b-c.top-c.bottom;N=p||I?$e($,C):C}if(I&&!p){const C=ee(c.left,0),k=ee(c.right,0),B=ee(c.top,0),R=ee(c.bottom,0);m?A=f-2*(C!==0||k!==0?C+k:ee(c.left,c.right)):N=b-2*(B!==0||R!==0?B+R:ee(c.top,c.bottom))}yield d(W(z({},o),{availableWidth:A,availableHeight:N}));const g=yield r.getDimensions(a.floating);return f!==g.width||b!==g.height?{reset:{rects:!0}}:{}})}}};function pe(e){return ct(e)?(e.nodeName||"").toLowerCase():"#document"}function te(e){var n;return(e==null||(n=e.ownerDocument)==null?void 0:n.defaultView)||window}function me(e){var n;return(n=(ct(e)?e.ownerDocument:e.document)||window.document)==null?void 0:n.documentElement}function ct(e){return e instanceof Node||e instanceof te(e).Node}function he(e){return e instanceof Element||e instanceof te(e).Element}function ie(e){return e instanceof HTMLElement||e instanceof te(e).HTMLElement}function Ut(e){return typeof ShadowRoot=="undefined"?!1:e instanceof ShadowRoot||e instanceof te(e).ShadowRoot}function Le(e){const{overflow:n,overflowX:o,overflowY:l,display:i}=ne(e);return/auto|scroll|overlay|hidden|clip/.test(n+l+o)&&!["inline","contents"].includes(i)}function Hl(e){return["table","td","th"].includes(pe(e))}function ut(e){const n=ft(),o=ne(e);return o.transform!=="none"||o.perspective!=="none"||(o.containerType?o.containerType!=="normal":!1)||!n&&(o.backdropFilter?o.backdropFilter!=="none":!1)||!n&&(o.filter?o.filter!=="none":!1)||["transform","perspective","filter"].some(l=>(o.willChange||"").includes(l))||["paint","layout","strict","content"].some(l=>(o.contain||"").includes(l))}function Pl(e){let n=Se(e);for(;ie(n)&&!Xe(n);){if(ut(n))return n;n=Se(n)}return null}function ft(){return typeof CSS=="undefined"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Xe(e){return["html","body","#document"].includes(pe(e))}function ne(e){return te(e).getComputedStyle(e)}function Je(e){return he(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Se(e){if(pe(e)==="html")return e;const n=e.assignedSlot||e.parentNode||Ut(e)&&e.host||me(e);return Ut(n)?n.host:n}function Wt(e){const n=Se(e);return Xe(n)?e.ownerDocument?e.ownerDocument.body:e.body:ie(n)&&Le(n)?n:Wt(n)}function De(e,n,o){var l;n===void 0&&(n=[]),o===void 0&&(o=!0);const i=Wt(e),r=i===((l=e.ownerDocument)==null?void 0:l.body),a=te(i);return r?n.concat(a,a.visualViewport||[],Le(i)?i:[],a.frameElement&&o?De(a.frameElement):[]):n.concat(i,De(i,[],o))}function Qt(e){const n=ne(e);let o=parseFloat(n.width)||0,l=parseFloat(n.height)||0;const i=ie(e),r=i?e.offsetWidth:o,a=i?e.offsetHeight:l,d=We(o)!==r||We(l)!==a;return d&&(o=r,l=a),{width:o,height:l,$:d}}function pt(e){return he(e)?e:e.contextElement}function Ie(e){const n=pt(e);if(!ie(n))return ge(1);const o=n.getBoundingClientRect(),{width:l,height:i,$:r}=Qt(n);let a=(r?We(o.width):o.width)/l,d=(r?We(o.height):o.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!d||!Number.isFinite(d))&&(d=1),{x:a,y:d}}const jl=ge(0);function Gt(e){const n=te(e);return!ft()||!n.visualViewport?jl:{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}}function ql(e,n,o){return n===void 0&&(n=!1),!o||n&&o!==te(e)?!1:n}function Ce(e,n,o,l){n===void 0&&(n=!1),o===void 0&&(o=!1);const i=e.getBoundingClientRect(),r=pt(e);let a=ge(1);n&&(l?he(l)&&(a=Ie(l)):a=Ie(e));const d=ql(r,o,l)?Gt(r):ge(0);let s=(i.left+d.x)/a.x,c=(i.top+d.y)/a.y,u=i.width/a.x,p=i.height/a.y;if(r){const m=te(r),f=l&&he(l)?te(l):l;let b=m,h=b.frameElement;for(;h&&l&&f!==b;){const E=Ie(h),$=h.getBoundingClientRect(),S=ne(h),I=$.left+(h.clientLeft+parseFloat(S.paddingLeft))*E.x,N=$.top+(h.clientTop+parseFloat(S.paddingTop))*E.y;s*=E.x,c*=E.y,u*=E.x,p*=E.y,s+=I,c+=N,b=te(h),h=b.frameElement}}return Ye({width:u,height:p,x:s,y:c})}const Ul=[":popover-open",":modal"];function Yt(e){return Ul.some(n=>{try{return e.matches(n)}catch(o){return!1}})}function Wl(e){let{elements:n,rect:o,offsetParent:l,strategy:i}=e;const r=i==="fixed",a=me(l),d=n?Yt(n.floating):!1;if(l===a||d&&r)return o;let s={scrollLeft:0,scrollTop:0},c=ge(1);const u=ge(0),p=ie(l);if((p||!p&&!r)&&((pe(l)!=="body"||Le(a))&&(s=Je(l)),ie(l))){const m=Ce(l);c=Ie(l),u.x=m.x+l.clientLeft,u.y=m.y+l.clientTop}return{width:o.width*c.x,height:o.height*c.y,x:o.x*c.x-s.scrollLeft*c.x+u.x,y:o.y*c.y-s.scrollTop*c.y+u.y}}function Ql(e){return Array.from(e.getClientRects())}function Xt(e){return Ce(me(e)).left+Je(e).scrollLeft}function Gl(e){const n=me(e),o=Je(e),l=e.ownerDocument.body,i=ee(n.scrollWidth,n.clientWidth,l.scrollWidth,l.clientWidth),r=ee(n.scrollHeight,n.clientHeight,l.scrollHeight,l.clientHeight);let a=-o.scrollLeft+Xt(e);const d=-o.scrollTop;return ne(l).direction==="rtl"&&(a+=ee(n.clientWidth,l.clientWidth)-i),{width:i,height:r,x:a,y:d}}function Yl(e,n){const o=te(e),l=me(e),i=o.visualViewport;let r=l.clientWidth,a=l.clientHeight,d=0,s=0;if(i){r=i.width,a=i.height;const c=ft();(!c||c&&n==="fixed")&&(d=i.offsetLeft,s=i.offsetTop)}return{width:r,height:a,x:d,y:s}}function Xl(e,n){const o=Ce(e,!0,n==="fixed"),l=o.top+e.clientTop,i=o.left+e.clientLeft,r=ie(e)?Ie(e):ge(1),a=e.clientWidth*r.x,d=e.clientHeight*r.y,s=i*r.x,c=l*r.y;return{width:a,height:d,x:s,y:c}}function Jt(e,n,o){let l;if(n==="viewport")l=Yl(e,o);else if(n==="document")l=Gl(me(e));else if(he(n))l=Xl(n,o);else{const i=Gt(e);l=W(z({},n),{x:n.x-i.x,y:n.y-i.y})}return Ye(l)}function Zt(e,n){const o=Se(e);return o===n||!he(o)||Xe(o)?!1:ne(o).position==="fixed"||Zt(o,n)}function Jl(e,n){const o=n.get(e);if(o)return o;let l=De(e,[],!1).filter(d=>he(d)&&pe(d)!=="body"),i=null;const r=ne(e).position==="fixed";let a=r?Se(e):e;for(;he(a)&&!Xe(a);){const d=ne(a),s=ut(a);!s&&d.position==="fixed"&&(i=null),(r?!s&&!i:!s&&d.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||Le(a)&&!s&&Zt(e,a))?l=l.filter(u=>u!==a):i=d,a=Se(a)}return n.set(e,l),l}function Zl(e){let{element:n,boundary:o,rootBoundary:l,strategy:i}=e;const a=[...o==="clippingAncestors"?Jl(n,this._c):[].concat(o),l],d=a[0],s=a.reduce((c,u)=>{const p=Jt(n,u,i);return c.top=ee(p.top,c.top),c.right=$e(p.right,c.right),c.bottom=$e(p.bottom,c.bottom),c.left=ee(p.left,c.left),c},Jt(n,d,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function ea(e){const{width:n,height:o}=Qt(e);return{width:n,height:o}}function ta(e,n,o){const l=ie(n),i=me(n),r=o==="fixed",a=Ce(e,!0,r,n);let d={scrollLeft:0,scrollTop:0};const s=ge(0);if(l||!l&&!r)if((pe(n)!=="body"||Le(i))&&(d=Je(n)),l){const p=Ce(n,!0,r,n);s.x=p.x+n.clientLeft,s.y=p.y+n.clientTop}else i&&(s.x=Xt(i));const c=a.left+d.scrollLeft-s.x,u=a.top+d.scrollTop-s.y;return{x:c,y:u,width:a.width,height:a.height}}function en(e,n){return!ie(e)||ne(e).position==="fixed"?null:n?n(e):e.offsetParent}function tn(e,n){const o=te(e);if(!ie(e)||Yt(e))return o;let l=en(e,n);for(;l&&Hl(l)&&ne(l).position==="static";)l=en(l,n);return l&&(pe(l)==="html"||pe(l)==="body"&&ne(l).position==="static"&&!ut(l))?o:l||Pl(e)||o}const na=function(e){return Q(this,null,function*(){const n=this.getOffsetParent||tn,o=this.getDimensions;return{reference:ta(e.reference,yield n(e.floating),e.strategy),floating:z({x:0,y:0},yield o(e.floating))}})};function oa(e){return ne(e).direction==="rtl"}const la={convertOffsetParentRelativeRectToViewportRelativeRect:Wl,getDocumentElement:me,getClippingRect:Zl,getOffsetParent:tn,getElementRects:na,getClientRects:Ql,getDimensions:ea,getScale:Ie,isElement:he,isRTL:oa};function aa(e,n){let o=null,l;const i=me(e);function r(){var d;clearTimeout(l),(d=o)==null||d.disconnect(),o=null}function a(d,s){d===void 0&&(d=!1),s===void 0&&(s=1),r();const{left:c,top:u,width:p,height:m}=e.getBoundingClientRect();if(d||n(),!p||!m)return;const f=Qe(u),b=Qe(i.clientWidth-(c+p)),h=Qe(i.clientHeight-(u+m)),E=Qe(c),S={rootMargin:-f+"px "+-b+"px "+-h+"px "+-E+"px",threshold:ee(0,$e(1,s))||1};let I=!0;function N(A){const g=A[0].intersectionRatio;if(g!==s){if(!I)return a();g?a(!1,g):l=setTimeout(()=>{a(!1,1e-7)},100)}I=!1}try{o=new IntersectionObserver(N,W(z({},S),{root:i.ownerDocument}))}catch(A){o=new IntersectionObserver(N,S)}o.observe(e)}return a(!0),r}function nn(e,n,o,l){l===void 0&&(l={});const{ancestorScroll:i=!0,ancestorResize:r=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:d=typeof IntersectionObserver=="function",animationFrame:s=!1}=l,c=pt(e),u=i||r?[...c?De(c):[],...De(n)]:[];u.forEach($=>{i&&$.addEventListener("scroll",o,{passive:!0}),r&&$.addEventListener("resize",o)});const p=c&&d?aa(c,o):null;let m=-1,f=null;a&&(f=new ResizeObserver($=>{let[S]=$;S&&S.target===c&&f&&(f.unobserve(n),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var I;(I=f)==null||I.observe(n)})),o()}),c&&!s&&f.observe(c),f.observe(n));let b,h=s?Ce(e):null;s&&E();function E(){const $=Ce(e);h&&($.x!==h.x||$.y!==h.y||$.width!==h.width||$.height!==h.height)&&o(),h=$,b=requestAnimationFrame(E)}return o(),()=>{var $;u.forEach(S=>{i&&S.removeEventListener("scroll",o),r&&S.removeEventListener("resize",o)}),p==null||p(),($=f)==null||$.disconnect(),f=null,s&&cancelAnimationFrame(b)}}const sa=zl,on=_l,ia=Kl,mt=Fl,ln=(e,n,o)=>{const l=new Map,i=z({platform:la},o),r=W(z({},i.platform),{_c:l});return Ol(e,n,W(z({},i),{platform:r}))};function ra(e){return e!=null&&typeof e=="object"&&"$el"in e}function an(e){if(ra(e)){const n=e.$el;return ct(n)&&pe(n)==="#comment"?null:n}return e}function sn(e){return typeof window=="undefined"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function rn(e,n){const o=sn(e);return Math.round(n*o)/o}function da(e,n,o){o===void 0&&(o={});const l=o.whileElementsMounted,i=t.computed(()=>{var y;return(y=t.unref(o.open))!=null?y:!0}),r=t.computed(()=>t.unref(o.middleware)),a=t.computed(()=>{var y;return(y=t.unref(o.placement))!=null?y:"bottom"}),d=t.computed(()=>{var y;return(y=t.unref(o.strategy))!=null?y:"absolute"}),s=t.computed(()=>{var y;return(y=t.unref(o.transform))!=null?y:!0}),c=t.computed(()=>an(e.value)),u=t.computed(()=>an(n.value)),p=t.ref(0),m=t.ref(0),f=t.ref(d.value),b=t.ref(a.value),h=t.shallowRef({}),E=t.ref(!1),$=t.computed(()=>{const y={position:f.value,left:"0",top:"0"};if(!u.value)return y;const C=rn(u.value,p.value),k=rn(u.value,m.value);return s.value?z(W(z({},y),{transform:"translate("+C+"px, "+k+"px)"}),sn(u.value)>=1.5&&{willChange:"transform"}):{position:f.value,left:C+"px",top:k+"px"}});let S;function I(){c.value==null||u.value==null||ln(c.value,u.value,{middleware:r.value,placement:a.value,strategy:d.value}).then(y=>{p.value=y.x,m.value=y.y,f.value=y.strategy,b.value=y.placement,h.value=y.middlewareData,E.value=!0})}function N(){typeof S=="function"&&(S(),S=void 0)}function A(){if(N(),l===void 0){I();return}if(c.value!=null&&u.value!=null){S=l(c.value,u.value,I);return}}function g(){i.value||(E.value=!1)}return t.watch([r,a,d],I,{flush:"sync"}),t.watch([c,u],A,{flush:"sync"}),t.watch(i,g,{flush:"sync"}),t.getCurrentScope()&&t.onScopeDispose(N),{x:t.shallowReadonly(p),y:t.shallowReadonly(m),strategy:t.shallowReadonly(f),placement:t.shallowReadonly(b),middlewareData:t.shallowReadonly(h),isPositioned:t.shallowReadonly(E),floatingStyles:$,update:I}}function ca(e){return e&&"$el"in e?e.$el:e}const dn=16,ua=128;function Re(e,n,o){var p;const l=()=>{var m;return(m=n.value)==null?void 0:m.isExpanded()},i=[qt(o==null?void 0:o.offset),ia({padding:dn,apply({rects:m,elements:f,availableHeight:b,availableWidth:h}){Object.assign(f.floating.style,{width:"".concat(o!=null&&o.useAvailableWidth?h:m.reference.width,"px"),maxHeight:"".concat(Math.max(ua,b),"px")})}}),on({padding:dn,fallbackStrategy:"initialPlacement"}),mt({strategy:"escaped"}),mt()],{floatingStyles:r,placement:a,middlewareData:d,update:s}=da(e,n,{middleware:i,placement:(p=o==null?void 0:o.placement)!=null?p:"bottom"}),c=t.computed(()=>{var f,b;return!l()||!!((f=d.value.hide)!=null&&f.escaped)||((b=d.value.hide)==null?void 0:b.referenceHidden)?"hidden":"visible"});t.watch([r,c,a],([m,f,b])=>{var h,E,$,S,I;Object.assign((E=(h=n.value)==null?void 0:h.$el.style)!=null?E:{},{visibility:f,position:m.position,top:"".concat(m.top,"px"),right:"unset",left:"".concat(m.left,"px"),transform:($=m.transform)!=null?$:"none",borderTopLeftRadius:b==="bottom"&&f==="visible"?"0":"",borderTopRightRadius:b==="bottom"&&f==="visible"?"0":"",borderBottomLeftRadius:b==="top"&&f==="visible"?"0":"",borderBottomRightRadius:b==="top"&&f==="visible"?"0":""}),Object.assign((I=(S=ca(e.value))==null?void 0:S.style)!=null?I:{},{borderTopLeftRadius:b==="top"&&f==="visible"?"0":"",borderTopRightRadius:b==="top"&&f==="visible"?"0":"",borderBottomLeftRadius:b==="bottom"&&f==="visible"?"0":"",borderBottomRightRadius:b==="bottom"&&f==="visible"?"0":""})});let u=null;t.watch(l,m=>{var f;m?u=nn(e.value&&"$el"in e.value?e.value.$el:e,(f=n.value)==null?void 0:f.$el,s):u&&(u(),u=null)})}const fa=q(ue),pa=t.defineComponent({name:"CdxCombobox",components:{CdxButton:fe,CdxIcon:H,CdxMenu:ke,CdxTextInput:Ue},inheritAttrs:!1,props:{menuItems:{type:Array,required:!0},selected:{type:[String,Number],required:!0},disabled:{type:Boolean,default:!1},menuConfig:{type:Object,default:()=>({})},status:{type:String,default:"default",validator:fa}},emits:["update:selected","load-more","input","change","focus","blur"],setup(e,{emit:n,attrs:o,slots:l}){const i=t.ref(),r=t.ref(),a=t.ref(),d=K("combobox"),s=t.toRef(e,"selected"),c=Z(s,n,"update:selected"),u=t.ref(!1),p=t.ref(!1),m=t.computed(()=>{var y,C;return(C=(y=a.value)==null?void 0:y.getHighlightedMenuItem())==null?void 0:C.id}),{computedDisabled:f}=X(t.toRef(e,"disabled")),b=t.computed(()=>({"cdx-combobox--expanded":u.value,"cdx-combobox--disabled":f.value})),{rootClasses:h,rootStyle:E,otherAttrs:$}=J(o,b);function S(y){p.value&&u.value?u.value=!1:(e.menuItems.length>0||l["no-results"])&&(u.value=!0),n("focus",y)}function I(y){u.value=p.value&&u.value,n("blur",y)}function N(){f.value||(p.value=!0)}function A(){var y;f.value||(y=i.value)==null||y.focus()}function g(y){!a.value||f.value||e.menuItems.length===0||y.key===" "||a.value.delegateKeyNavigation(y)}return Re(i,a),t.watch(u,()=>{p.value=!1}),{input:i,inputWrapper:r,menu:a,menuId:d,modelWrapper:c,expanded:u,highlightedId:m,computedDisabled:f,onInputFocus:S,onInputBlur:I,onKeydown:g,onButtonClick:A,onButtonMousedown:N,cdxIconExpand:Ct,rootClasses:h,rootStyle:E,otherAttrs:$}}}),ma={ref:"inputWrapper",class:"cdx-combobox__input-wrapper"};function ha(e,n,o,l,i,r){const a=t.resolveComponent("cdx-text-input"),d=t.resolveComponent("cdx-icon"),s=t.resolveComponent("cdx-button"),c=t.resolveComponent("cdx-menu");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["cdx-combobox",e.rootClasses]),style:t.normalizeStyle(e.rootStyle)},[t.createElementVNode("div",ma,[t.createVNode(a,t.mergeProps({ref:"input",modelValue:e.modelWrapper,"onUpdate:modelValue":n[0]||(n[0]=u=>e.modelWrapper=u)},e.otherAttrs,{class:"cdx-combobox__input","aria-activedescendant":e.highlightedId,"aria-expanded":e.expanded,"aria-controls":e.menuId,disabled:e.computedDisabled,status:e.status,autocomplete:"off",role:"combobox",onKeydown:e.onKeydown,onInput:n[1]||(n[1]=u=>e.$emit("input",u)),onChange:n[2]||(n[2]=u=>e.$emit("change",u)),onFocus:e.onInputFocus,onBlur:e.onInputBlur}),null,16,["modelValue","aria-activedescendant","aria-expanded","aria-controls","disabled","status","onKeydown","onFocus","onBlur"]),t.createVNode(s,{class:"cdx-combobox__expand-button","aria-hidden":"true",disabled:e.computedDisabled,tabindex:"-1",type:"button",onMousedown:e.onButtonMousedown,onClick:e.onButtonClick},{default:t.withCtx(()=>[t.createVNode(d,{class:"cdx-combobox__expand-icon",icon:e.cdxIconExpand},null,8,["icon"])]),_:1},8,["disabled","onMousedown","onClick"])],512),t.createVNode(c,t.mergeProps({id:e.menuId,ref:"menu",selected:e.modelWrapper,"onUpdate:selected":n[3]||(n[3]=u=>e.modelWrapper=u),expanded:e.expanded,"onUpdate:expanded":n[4]||(n[4]=u=>e.expanded=u),"menu-items":e.menuItems},e.menuConfig,{onLoadMore:n[5]||(n[5]=u=>e.$emit("load-more"))}),{default:t.withCtx(({menuItem:u})=>[t.renderSlot(e.$slots,"menu-item",{menuItem:u})]),"no-results":t.withCtx(()=>[t.renderSlot(e.$slots,"no-results")]),_:3},16,["id","selected","expanded","menu-items"])],6)}const ba=O(pa,[["render",ha]]);function cn(e){const n=t.ref({width:void 0,height:void 0});if(typeof window!="object"||!("ResizeObserver"in window)||!("ResizeObserverEntry"in window))return n;const o=new window.ResizeObserver(i=>{const r=i[0];r&&(n.value={width:r.borderBoxSize[0].inlineSize,height:r.borderBoxSize[0].blockSize})});let l=!1;return t.onMounted(()=>{l=!0,e.value&&o.observe(e.value)}),t.onUnmounted(()=>{l=!1,o.disconnect()}),t.watch(e,i=>{l&&(o.disconnect(),n.value={width:void 0,height:void 0},i&&o.observe(i))}),n}const ga=t.defineComponent({name:"CdxDialog",components:{CdxButton:fe,CdxIcon:H},inheritAttrs:!1,props:{open:{type:Boolean,default:!1},title:{type:String,required:!0},subtitle:{type:String,required:!1,default:null},hideTitle:{type:Boolean,default:!1},useCloseButton:{type:Boolean,default:!1},closeButtonLabel:{type:String,default:""},primaryAction:{type:Object,default:null},defaultAction:{type:Object,default:null},stackedActions:{type:Boolean,default:!1},target:{type:String,default:null},renderInPlace:{type:Boolean,default:!1}},emits:["update:open","primary","default"],setup(e,{emit:n}){const o=K("dialog-label"),l=t.ref(),i=t.ref(),r=t.ref(),a=t.ref(),d=t.ref(),s=t.ref(),c=t.computed(()=>e.useCloseButton||e.closeButtonLabel.length>0),u=se("cdx-dialog-close-button-label",()=>e.closeButtonLabel||"Close"),p=t.computed(()=>!e.hideTitle||c.value),m=t.computed(()=>!!e.primaryAction||!!e.defaultAction),f=cn(r),b=t.computed(()=>{var V;return(V=f.value.height)!=null?V:0}),h=t.ref(!1),E=t.computed(()=>({"cdx-dialog--vertical-actions":e.stackedActions,"cdx-dialog--horizontal-actions":!e.stackedActions,"cdx-dialog--dividers":h.value})),$=t.inject("CdxTeleportTarget",void 0),S=t.computed(()=>{var V,L;return(L=(V=e.target)!=null?V:$)!=null?L:"body"}),I=t.ref(0);function N(){n("update:open",!1)}function A(){y(i.value)}function g(){y(i.value,!0)}function y(V,L=!1){let P=Array.from(V.querySelectorAll('\n input, select, textarea, button, object, a, area,\n [contenteditable], [tabindex]:not([tabindex^="-"])\n '));L&&(P=P.reverse());for(const G of P)if(G.focus(),document.activeElement===G)return!0;return!1}let C=[],k=[];function B(){let V=l.value;for(;V.parentElement&&V.nodeName!=="BODY";){for(const L of Array.from(V.parentElement.children))L===V||L.nodeName==="SCRIPT"||(L.hasAttribute("aria-hidden")||(L.setAttribute("aria-hidden","true"),C.push(L)),L.hasAttribute("inert")||(L.setAttribute("inert",""),k.push(L)));V=V.parentElement}}function R(){for(const V of C)V.removeAttribute("aria-hidden");for(const V of k)V.removeAttribute("inert");C=[],k=[]}function T(){return Q(this,null,function*(){var V;yield t.nextTick(),I.value=window.innerWidth-document.documentElement.clientWidth,document.documentElement.style.setProperty("margin-right","".concat(I.value,"px")),document.body.classList.add("cdx-dialog-open"),B(),y(r.value)||(V=a.value)==null||V.focus()})}function _(){document.body.classList.remove("cdx-dialog-open"),document.documentElement.style.removeProperty("margin-right"),R()}return t.onMounted(()=>{e.open&&T()}),t.onUnmounted(()=>{e.open&&_()}),t.watch(t.toRef(e,"open"),V=>{V?T():_()}),t.watch(b,()=>{r.value&&(h.value=r.value.clientHeight<r.value.scrollHeight)}),{close:N,cdxIconClose:lt,labelId:o,rootClasses:E,backdrop:l,dialogElement:i,focusTrapStart:d,focusTrapEnd:s,focusFirst:A,focusLast:g,dialogBody:r,focusHolder:a,showHeader:p,showFooterActions:m,useCloseButtonOrLabel:c,translatedCloseButtonLabel:u,computedTarget:S}}}),ya=["aria-label","aria-labelledby"],Ca={key:0,class:"cdx-dialog__header__title-group"},wa=["id"],ka={key:0,class:"cdx-dialog__header__subtitle"},$a={ref:"focusHolder",class:"cdx-dialog-focus-trap",tabindex:"-1"},Ba={key:0,class:"cdx-dialog__footer__text"},Sa={key:1,class:"cdx-dialog__footer__actions"};function Ia(e,n,o,l,i,r){const a=t.resolveComponent("cdx-icon"),d=t.resolveComponent("cdx-button");return t.openBlock(),t.createBlock(t.Teleport,{to:e.computedTarget,disabled:e.renderInPlace},[t.createVNode(t.Transition,{name:"cdx-dialog-fade",appear:""},{default:t.withCtx(()=>[e.open?(t.openBlock(),t.createElementBlock("div",{key:0,ref:"backdrop",class:"cdx-dialog-backdrop",onClick:n[5]||(n[5]=(...s)=>e.close&&e.close(...s)),onKeyup:n[6]||(n[6]=t.withKeys((...s)=>e.close&&e.close(...s),["escape"]))},[t.createElementVNode("div",{ref:"focusTrapStart",tabindex:"0",onFocus:n[0]||(n[0]=(...s)=>e.focusLast&&e.focusLast(...s))},null,544),t.createElementVNode("div",t.mergeProps({ref:"dialogElement",class:["cdx-dialog",e.rootClasses],role:"dialog"},e.$attrs,{"aria-label":e.$slots.header||e.hideTitle?e.title:void 0,"aria-labelledby":!e.$slots.header&&!e.hideTitle?e.labelId:void 0,"aria-modal":"true",onClick:n[3]||(n[3]=t.withModifiers(()=>{},["stop"]))}),[e.showHeader||e.$slots.header?(t.openBlock(),t.createElementBlock("header",{key:0,class:t.normalizeClass(["cdx-dialog__header",{"cdx-dialog__header--default":!e.$slots.header}])},[t.renderSlot(e.$slots,"header",{},()=>[e.hideTitle?t.createCommentVNode("v-if",!0):(t.openBlock(),t.createElementBlock("div",Ca,[t.createElementVNode("h2",{id:e.labelId,class:"cdx-dialog__header__title"},t.toDisplayString(e.title),9,wa),e.subtitle?(t.openBlock(),t.createElementBlock("p",ka,t.toDisplayString(e.subtitle),1)):t.createCommentVNode("v-if",!0)])),e.useCloseButtonOrLabel?(t.openBlock(),t.createBlock(d,{key:1,class:"cdx-dialog__header__close-button",weight:"quiet",type:"button","aria-label":e.translatedCloseButtonLabel,onClick:e.close},{default:t.withCtx(()=>[t.createVNode(a,{icon:e.cdxIconClose},null,8,["icon"])]),_:1},8,["aria-label","onClick"])):t.createCommentVNode("v-if",!0)])],2)):t.createCommentVNode("v-if",!0),t.createElementVNode("div",$a,null,512),t.createElementVNode("div",{ref:"dialogBody",class:t.normalizeClass(["cdx-dialog__body",{"cdx-dialog__body--no-header":!(e.showHeader||e.$slots.header),"cdx-dialog__body--no-footer":!(e.showFooterActions||e.$slots.footer||e.$slots["footer-text"])}])},[t.renderSlot(e.$slots,"default")],2),e.showFooterActions||e.$slots.footer||e.$slots["footer-text"]?(t.openBlock(),t.createElementBlock("footer",{key:1,class:t.normalizeClass(["cdx-dialog__footer",{"cdx-dialog__footer--default":!e.$slots.footer}])},[t.renderSlot(e.$slots,"footer",{},()=>[e.$slots["footer-text"]?(t.openBlock(),t.createElementBlock("p",Ba,[t.renderSlot(e.$slots,"footer-text")])):t.createCommentVNode("v-if",!0),e.showFooterActions?(t.openBlock(),t.createElementBlock("div",Sa,[e.primaryAction?(t.openBlock(),t.createBlock(d,{key:0,class:"cdx-dialog__footer__primary-action",weight:"primary",action:e.primaryAction.actionType,disabled:e.primaryAction.disabled,onClick:n[1]||(n[1]=s=>e.$emit("primary"))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.primaryAction.label),1)]),_:1},8,["action","disabled"])):t.createCommentVNode("v-if",!0),e.defaultAction?(t.openBlock(),t.createBlock(d,{key:1,class:"cdx-dialog__footer__default-action",disabled:e.defaultAction.disabled,onClick:n[2]||(n[2]=s=>e.$emit("default"))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.defaultAction.label),1)]),_:1},8,["disabled"])):t.createCommentVNode("v-if",!0)])):t.createCommentVNode("v-if",!0)])],2)):t.createCommentVNode("v-if",!0)],16,ya),t.createElementVNode("div",{ref:"focusTrapEnd",tabindex:"0",onFocus:n[4]||(n[4]=(...s)=>e.focusFirst&&e.focusFirst(...s))},null,544)],544)):t.createCommentVNode("v-if",!0)]),_:3})],8,["to","disabled"])}const xa=O(ga,[["render",Ia]]),Ea={notice:Vn,error:yt,warning:gt,success:wt},Va=t.defineComponent({name:"CdxMessage",components:{CdxButton:fe,CdxIcon:H},props:{type:{type:String,default:"notice",validator:$t},inline:{type:Boolean,default:!1},icon:{type:[String,Object],default:null},fadeIn:{type:Boolean,default:!1},allowUserDismiss:{type:Boolean,default:!1},dismissButtonLabel:{type:String,default:""},autoDismiss:{type:[Boolean,Number],default:!1,validator:e=>typeof e=="boolean"||typeof e=="number"&&e>0}},emits:["user-dismissed","auto-dismissed"],setup(e,{emit:n}){const o=t.ref(!1),l=t.computed(()=>e.inline===!1&&(e.dismissButtonLabel.length>0||e.allowUserDismiss)),i=se("cdx-message-dismiss-button-label",()=>e.dismissButtonLabel||"Close"),r=t.computed(()=>e.autoDismiss===!1||e.type==="error"?!1:e.autoDismiss===!0?4e3:e.autoDismiss),a=t.computed(()=>({"cdx-message--inline":e.inline,"cdx-message--block":!e.inline,"cdx-message--user-dismissable":l.value,["cdx-message--".concat(e.type)]:!0})),d=t.computed(()=>e.icon&&e.type==="notice"?e.icon:Ea[e.type]),s=t.ref("");function c(u){o.value||(s.value=u==="user-dismissed"?"cdx-message-leave-active-user":"cdx-message-leave-active-system",o.value=!0,n(u))}return t.onMounted(()=>{e.type==="error"&&e.autoDismiss!==!1?t.warn('CdxMessage: Message with type="error" cannot use auto-dismiss'):r.value&&setTimeout(()=>c("auto-dismissed"),r.value)}),{dismissed:o,userDismissable:l,translatedDismissButtonLabel:i,rootClasses:a,leaveActiveClass:s,computedIcon:d,onDismiss:c,cdxIconClose:lt}}}),Aa=["aria-live","role"],Na={class:"cdx-message__content"};function Ta(e,n,o,l,i,r){const a=t.resolveComponent("cdx-icon"),d=t.resolveComponent("cdx-button");return t.openBlock(),t.createBlock(t.Transition,{name:"cdx-message",appear:e.fadeIn,"leave-active-class":e.leaveActiveClass},{default:t.withCtx(()=>[e.dismissed?t.createCommentVNode("v-if",!0):(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["cdx-message",e.rootClasses]),"aria-live":e.type!=="error"?"polite":void 0,role:e.type==="error"?"alert":void 0},[t.createVNode(a,{class:"cdx-message__icon--vue",icon:e.computedIcon},null,8,["icon"]),t.createElementVNode("div",Na,[t.renderSlot(e.$slots,"default")]),e.userDismissable?(t.openBlock(),t.createBlock(d,{key:0,class:"cdx-message__dismiss-button",weight:"quiet",type:"button","aria-label":e.translatedDismissButtonLabel,onClick:n[0]||(n[0]=s=>e.onDismiss("user-dismissed"))},{default:t.withCtx(()=>[t.createVNode(a,{icon:e.cdxIconClose},null,8,["icon"])]),_:1},8,["aria-label"])):t.createCommentVNode("v-if",!0)],10,Aa))]),_:3},8,["appear","leave-active-class"])}const un=O(Va,[["render",Ta]]),Ma=q(ue),La=t.defineComponent({name:"CdxField",components:{CdxLabel:Ae,CdxMessage:un},props:{labelIcon:{type:[String,Object],default:""},optional:{type:Boolean,default:!1},optionalFlag:{type:String,default:""},hideLabel:{type:Boolean,default:!1},isFieldset:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},status:{type:String,default:"default",validator:Ma},messages:{type:Object,default:()=>({})}},setup(e,{slots:n}){const{disabled:o,status:l,isFieldset:i}=t.toRefs(e),r=st(o),a=t.computed(()=>({"cdx-field--disabled":r.value,"cdx-field--is-fieldset":i.value})),d=K("label"),s=K("description"),c=K("input"),u=t.computed(()=>i.value?void 0:c);t.provide(It,u);const p=t.computed(()=>!i.value&&n.description?s:void 0);t.provide(ze,p),t.provide(Et,r),t.provide(xt,l);const m=t.computed(()=>e.status!=="default"&&e.status in e.messages?e.messages[e.status]:""),f=t.computed(()=>e.status==="default"?"notice":e.status);return{rootClasses:a,computedDisabled:r,labelId:d,descriptionId:s,inputId:c,validationMessage:m,validationMessageType:f}}}),Da={class:"cdx-field__control"},Ra={class:"cdx-field__help-text"},Oa={key:0,class:"cdx-field__validation-message"};function _a(e,n,o,l,i,r){const a=t.resolveComponent("cdx-label"),d=t.resolveComponent("cdx-message");return t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.isFieldset?"fieldset":"div"),{class:t.normalizeClass(["cdx-field",e.rootClasses]),"aria-disabled":!e.isFieldset&&e.computedDisabled?!0:void 0,disabled:e.isFieldset&&e.computedDisabled?!0:void 0},{default:t.withCtx(()=>[t.createVNode(a,{id:e.labelId,icon:e.labelIcon,"visually-hidden":e.hideLabel,optional:e.optional,"optional-flag":e.optionalFlag,"input-id":e.inputId,"description-id":e.descriptionId,disabled:e.computedDisabled,"is-legend":e.isFieldset},t.createSlots({default:t.withCtx(()=>[t.renderSlot(e.$slots,"label")]),_:2},[e.$slots.description&&e.$slots.description().length>0?{name:"description",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"description")]),key:"0"}:void 0]),1032,["id","icon","visually-hidden","optional","optional-flag","input-id","description-id","disabled","is-legend"]),t.createElementVNode("div",Da,[t.renderSlot(e.$slots,"default")]),t.createElementVNode("div",Ra,[t.renderSlot(e.$slots,"help-text")]),!e.computedDisabled&&e.validationMessage?(t.openBlock(),t.createElementBlock("div",Oa,[t.createVNode(d,{type:e.validationMessageType,inline:!0},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.validationMessage),1)]),_:1},8,["type"])])):t.createCommentVNode("v-if",!0)]),_:3},8,["class","aria-disabled","disabled"])}const Fa=O(La,[["render",_a]]),va={error:yt,warning:gt,success:wt},za=t.defineComponent({name:"CdxInfoChip",components:{CdxIcon:H},props:{status:{type:String,default:"notice",validator:$t},icon:{type:[String,Object],default:null}},setup(e){const n=t.computed(()=>({["cdx-info-chip__icon--".concat(e.status)]:!0})),o=t.computed(()=>e.status==="notice"?e.icon:va[e.status]);return{iconClass:n,computedIcon:o}}}),Ka={class:"cdx-info-chip"},Ha={class:"cdx-info-chip--text"};function Pa(e,n,o,l,i,r){const a=t.resolveComponent("cdx-icon");return t.openBlock(),t.createElementBlock("div",Ka,[e.computedIcon?(t.openBlock(),t.createBlock(a,{key:0,class:t.normalizeClass(["cdx-info-chip__icon",e.iconClass]),icon:e.computedIcon},null,8,["class","icon"])):t.createCommentVNode("v-if",!0),t.createElementVNode("span",Ha,[t.renderSlot(e.$slots,"default")])])}const ja=O(za,[["render",Pa]]),qa=q(ue),Ua=t.defineComponent({name:"CdxLookup",components:{CdxMenu:ke,CdxTextInput:Ue},inheritAttrs:!1,props:{selected:{type:[String,Number,null],required:!0},menuItems:{type:Array,required:!0},initialInputValue:{type:[String,Number],default:""},disabled:{type:Boolean,default:!1},menuConfig:{type:Object,default:()=>({})},status:{type:String,default:"default",validator:qa}},emits:["update:selected","load-more","input","change","focus","blur"],setup:(e,{emit:n,attrs:o,slots:l})=>{const i=t.ref(),r=t.ref(),a=t.ref(),d=K("lookup-menu"),s=t.ref(!1),c=t.ref(!1),u=t.ref(!1),p=t.ref(e.menuItems),{computedDisabled:m}=X(t.toRef(e,"disabled")),f=t.toRef(e,"selected"),b=Z(f,n,"update:selected"),h=t.computed(()=>e.menuItems.find(B=>B.value===e.selected)),E=t.computed(()=>{var B,R;return(R=(B=a.value)==null?void 0:B.getHighlightedMenuItem())==null?void 0:R.id}),$=t.ref(e.initialInputValue),S=t.computed(()=>({"cdx-lookup--disabled":m.value,"cdx-lookup--pending":s.value})),{rootClasses:I,rootStyle:N,otherAttrs:A}=J(o,S);function g(B){h.value&&h.value.label!==B&&h.value.value!==B&&(b.value=null),B===""&&p.value.length===0?(c.value=!1,s.value=!1):s.value=!0,n("input",B)}function y(B){u.value=!0;const R=$.value!==null&&$.value!=="";!!(e.menuItems.length>0||l["no-results"])&&(R||p.value.length>0)&&(c.value=!0),n("focus",B)}function C(B){u.value=!1,c.value=!1,n("blur",B)}function k(B){!a.value||m.value||e.menuItems.length===0&&!l["no-results"]||B.key===" "||a.value.delegateKeyNavigation(B)}return Re(r,a),t.watch(f,B=>{var R;if(B!==null){const T=h.value?(R=h.value.label)!=null?R:h.value.value:"";$.value!==T&&($.value=T,n("input",$.value))}}),t.watch(t.toRef(e,"menuItems"),B=>{u.value&&s.value&&(B.length>0||l["no-results"])&&(c.value=!0),B.length===0&&!l["no-results"]&&(c.value=!1),s.value=!1}),{rootElement:i,textInput:r,menu:a,menuId:d,highlightedId:E,inputValue:$,modelWrapper:b,expanded:c,computedDisabled:m,onInputBlur:C,rootClasses:I,rootStyle:N,otherAttrs:A,onUpdateInput:g,onInputFocus:y,onKeydown:k}}});function Wa(e,n,o,l,i,r){const a=t.resolveComponent("cdx-text-input"),d=t.resolveComponent("cdx-menu");return t.openBlock(),t.createElementBlock("div",{ref:"rootElement",class:t.normalizeClass(["cdx-lookup",e.rootClasses]),style:t.normalizeStyle(e.rootStyle)},[t.createVNode(a,t.mergeProps({ref:"textInput",modelValue:e.inputValue,"onUpdate:modelValue":n[0]||(n[0]=s=>e.inputValue=s)},e.otherAttrs,{class:"cdx-lookup__input",role:"combobox",autocomplete:"off","aria-autocomplete":"list","aria-controls":e.menuId,"aria-expanded":e.expanded,"aria-activedescendant":e.highlightedId,disabled:e.computedDisabled,status:e.status,"onUpdate:modelValue":e.onUpdateInput,onChange:n[1]||(n[1]=s=>e.$emit("change",s)),onFocus:e.onInputFocus,onBlur:e.onInputBlur,onKeydown:e.onKeydown}),null,16,["modelValue","aria-controls","aria-expanded","aria-activedescendant","disabled","status","onUpdate:modelValue","onFocus","onBlur","onKeydown"]),t.createVNode(d,t.mergeProps({id:e.menuId,ref:"menu",selected:e.modelWrapper,"onUpdate:selected":n[2]||(n[2]=s=>e.modelWrapper=s),expanded:e.expanded,"onUpdate:expanded":n[3]||(n[3]=s=>e.expanded=s),"menu-items":e.menuItems},e.menuConfig,{onLoadMore:n[4]||(n[4]=s=>e.$emit("load-more"))}),{default:t.withCtx(({menuItem:s})=>[t.renderSlot(e.$slots,"menu-item",{menuItem:s})]),"no-results":t.withCtx(()=>[t.renderSlot(e.$slots,"no-results")]),_:3},16,["id","selected","expanded","menu-items"])],6)}const Qa=O(Ua,[["render",Wa]]),Ga=t.defineComponent({name:"CdxToggleButton",props:{modelValue:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},quiet:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,{emit:n,slots:o,attrs:l}){const i=Nt(o.default,l,"CdxToggleButton"),r=t.ref(!1);return{rootClasses:t.computed(()=>({"cdx-toggle-button--quiet":e.quiet,"cdx-toggle-button--framed":!e.quiet,"cdx-toggle-button--toggled-on":e.modelValue,"cdx-toggle-button--toggled-off":!e.modelValue,"cdx-toggle-button--icon-only":i.value,"cdx-toggle-button--is-active":r.value})),onClick:()=>{n("update:modelValue",!e.modelValue)},setActive:c=>{r.value=c}}}}),Ya=["aria-pressed","disabled"];function Xa(e,n,o,l,i,r){return t.openBlock(),t.createElementBlock("button",{class:t.normalizeClass(["cdx-toggle-button",e.rootClasses]),"aria-pressed":e.modelValue,disabled:e.disabled,onClick:n[0]||(n[0]=(...a)=>e.onClick&&e.onClick(...a)),onKeydown:n[1]||(n[1]=t.withKeys(a=>e.setActive(!0),["space","enter"])),onKeyup:n[2]||(n[2]=t.withKeys(a=>e.setActive(!1),["space","enter"]))},[t.renderSlot(e.$slots,"default")],42,Ya)}const ht=O(Ga,[["render",Xa]]),Ja=t.defineComponent({name:"CdxMenuButton",components:{CdxToggleButton:ht,CdxMenu:ke},inheritAttrs:!1,props:{selected:{type:[String,Number,null],required:!0},menuItems:{type:Array,required:!0},menuConfig:{type:Object,default:()=>({})},disabled:{type:Boolean,default:!1}},emits:["update:selected"],setup(e,{emit:n,attrs:o}){const l=t.ref(),i=t.ref(),r=t.toRef(e,"selected"),a=Z(r,n,"update:selected"),d=t.ref(!1),s=K("menuToggle"),c=K("menu"),{computedDisabled:u}=X(t.toRef(e,"disabled")),{rootClasses:p,rootStyle:m,otherAttrs:f}=J(o);function b(h){!l.value||u.value||e.menuItems.length===0||h.key===" "||l.value.delegateKeyNavigation(h)}return Re(i,l,{useAvailableWidth:!0,placement:"bottom-start",offset:4}),{computedDisabled:u,expanded:d,menu:l,menuId:c,modelWrapper:a,onKeydown:b,toggle:i,toggleId:s,rootClasses:p,rootStyle:m,otherAttrs:f}}}),Za={class:"cdx-menu-button__menu-wrapper"};function es(e,n,o,l,i,r){const a=t.resolveComponent("cdx-toggle-button"),d=t.resolveComponent("cdx-menu");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["cdx-menu-button",e.rootClasses]),style:t.normalizeStyle(e.rootStyle)},[t.createVNode(a,t.mergeProps({id:e.toggleId,ref:"toggle"},e.otherAttrs,{modelValue:e.expanded,"onUpdate:modelValue":n[0]||(n[0]=s=>e.expanded=s),disabled:e.computedDisabled,quiet:"","aria-haspopup":"menu","aria-controls":e.menuId,"aria-expanded":e.expanded,onBlur:n[1]||(n[1]=s=>e.expanded=!1),onKeydown:e.onKeydown}),{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},16,["id","modelValue","disabled","aria-controls","aria-expanded","onKeydown"]),t.createElementVNode("div",Za,[t.createVNode(d,t.mergeProps({id:e.menuId,ref:"menu",selected:e.modelWrapper,"onUpdate:selected":n[2]||(n[2]=s=>e.modelWrapper=s),expanded:e.expanded,"onUpdate:expanded":n[3]||(n[3]=s=>e.expanded=s),"menu-items":e.menuItems},e.menuConfig,{role:"menu","aria-labelledby":e.toggleId}),null,16,["id","selected","expanded","menu-items","aria-labelledby"])])],6)}const ts=O(Ja,[["render",es]]),ns=t.defineComponent({name:"CdxRadio",components:{CdxLabel:Ae},props:{modelValue:{type:[String,Number,Boolean],default:""},inputValue:{type:[String,Number,Boolean],default:!1},name:{type:String,required:!0},disabled:{type:Boolean,default:!1},inline:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,{emit:n,slots:o,attrs:l}){var p;it((p=o.default)==null?void 0:p.call(o),l,"CdxRadio");const i=t.computed(()=>({"cdx-radio--inline":e.inline})),{computedDisabled:r}=X(t.toRef(e,"disabled")),a=t.ref(),d=K("radio"),s=K("description"),c=()=>{a.value.focus()},u=Z(t.toRef(e,"modelValue"),n);return{rootClasses:i,computedDisabled:r,input:a,radioId:d,descriptionId:s,focusInput:c,wrappedModel:u}}}),os=["id","aria-describedby","name","value","disabled"],ls=t.createElementVNode("span",{class:"cdx-radio__icon"},null,-1);function as(e,n,o,l,i,r){const a=t.resolveComponent("cdx-label");return t.openBlock(),t.createElementBlock("span",{class:t.normalizeClass(["cdx-radio",e.rootClasses])},[t.withDirectives(t.createElementVNode("input",{id:e.radioId,ref:"input","onUpdate:modelValue":n[0]||(n[0]=d=>e.wrappedModel=d),class:"cdx-radio__input",type:"radio","aria-describedby":e.$slots.description&&e.$slots.description().length>0?e.descriptionId:void 0,name:e.name,value:e.inputValue,disabled:e.computedDisabled},null,8,os),[[t.vModelRadio,e.wrappedModel]]),ls,e.$slots.default&&e.$slots.default().length?(t.openBlock(),t.createBlock(a,{key:0,class:"cdx-radio__label","input-id":e.radioId,"description-id":e.$slots.description&&e.$slots.description().length>0?e.descriptionId:void 0,disabled:e.computedDisabled,onClick:e.focusInput},t.createSlots({default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:2},[e.$slots.description&&e.$slots.description().length>0?{name:"description",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"description")]),key:"0"}:void 0]),1032,["input-id","description-id","disabled","onClick"])):t.createCommentVNode("v-if",!0)],2)}const ss=O(ns,[["render",as]]),is=q(ue),rs=t.defineComponent({name:"CdxSearchInput",components:{CdxButton:fe,CdxTextInput:Ue},inheritAttrs:!1,props:{modelValue:{type:[String,Number],default:""},useButton:{type:Boolean,default:!1},buttonLabel:{type:String,default:""},disabled:{type:Boolean,default:!1},status:{type:String,default:"default",validator:is}},emits:["update:modelValue","submit-click","input","change","focus","blur"],setup(e,{emit:n,attrs:o}){const l=Z(t.toRef(e,"modelValue"),n),{computedDisabled:i}=X(t.toRef(e,"disabled")),r=t.computed(()=>({"cdx-search-input--has-end-button":!!e.buttonLabel||e.useButton})),{rootClasses:a,rootStyle:d,otherAttrs:s}=J(o,r),c=se("cdx-search-input-search-button-label",()=>e.buttonLabel||"Search"),u=t.computed(()=>e.useButton||e.buttonLabel.length>0);return{wrappedModel:l,computedDisabled:i,rootClasses:a,rootStyle:d,otherAttrs:s,handleSubmit:()=>{n("submit-click",l.value)},searchIcon:Tn,translatedSearchButtonLabel:c,useButtonOrLabel:u}},methods:{focus(){this.$refs.textInput.focus()}}}),ds={class:"cdx-search-input__input-wrapper"};function cs(e,n,o,l,i,r){const a=t.resolveComponent("cdx-text-input"),d=t.resolveComponent("cdx-button");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["cdx-search-input",e.rootClasses]),style:t.normalizeStyle(e.rootStyle)},[t.createElementVNode("div",ds,[t.createVNode(a,t.mergeProps({ref:"textInput",modelValue:e.wrappedModel,"onUpdate:modelValue":n[0]||(n[0]=s=>e.wrappedModel=s),class:"cdx-search-input__text-input","input-type":"search","start-icon":e.searchIcon,disabled:e.computedDisabled,status:e.status},e.otherAttrs,{onKeydown:t.withKeys(e.handleSubmit,["enter"]),onInput:n[1]||(n[1]=s=>e.$emit("input",s)),onChange:n[2]||(n[2]=s=>e.$emit("change",s)),onFocus:n[3]||(n[3]=s=>e.$emit("focus",s)),onBlur:n[4]||(n[4]=s=>e.$emit("blur",s))}),null,16,["modelValue","start-icon","disabled","status","onKeydown"]),t.renderSlot(e.$slots,"default")]),e.useButtonOrLabel?(t.openBlock(),t.createBlock(d,{key:0,class:"cdx-search-input__end-button",disabled:e.computedDisabled,onClick:e.handleSubmit},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.translatedSearchButtonLabel),1)]),_:1},8,["disabled","onClick"])):t.createCommentVNode("v-if",!0)],6)}const fn=O(rs,[["render",cs]]),us=q(ue),fs=t.defineComponent({name:"CdxSelect",components:{CdxIcon:H,CdxMenu:ke},inheritAttrs:!1,props:{menuItems:{type:Array,required:!0},selected:{type:[String,Number,null],required:!0},defaultLabel:{type:String,default:""},disabled:{type:Boolean,default:!1},menuConfig:{type:Object,default:()=>({})},defaultIcon:{type:[String,Object],default:void 0},status:{type:String,default:"default",validator:us}},emits:["update:selected","load-more"],setup(e,{emit:n,attrs:o}){const l=t.ref(),i=t.ref(),r=t.inject(ze,void 0),a=K("select-menu"),d=t.ref(!1),s=o.id||K("select-handle"),{computedDisabled:c,computedStatus:u,computedInputId:p}=X(t.toRef(e,"disabled"),t.toRef(e,"status"),s),m=Z(t.toRef(e,"selected"),n,"update:selected"),f=t.computed(()=>e.menuItems.find(k=>k.value===e.selected)),b=t.computed(()=>{var k;return f.value?(k=f.value.label)!=null?k:f.value.value:e.defaultLabel}),h=t.computed(()=>{var k;if(e.defaultIcon&&!f.value)return e.defaultIcon;if((k=f.value)!=null&&k.icon)return f.value.icon}),E=t.computed(()=>({"cdx-select-vue--enabled":!c.value,"cdx-select-vue--disabled":c.value,"cdx-select-vue--expanded":d.value,"cdx-select-vue--value-selected":!!f.value,"cdx-select-vue--no-selections":!f.value,"cdx-select-vue--has-start-icon":!!h.value,["cdx-select-vue--status-".concat(u.value)]:!0})),{rootClasses:$,rootStyle:S,otherAttrs:I}=J(o,E),N=t.computed(()=>{const R=I.value,{id:k}=R;return ae(R,["id"])}),A=t.computed(()=>{var k,B;return(B=(k=i.value)==null?void 0:k.getHighlightedMenuItem())==null?void 0:B.id});function g(){d.value=!1}function y(){var k;c.value||(d.value=!d.value,(k=l.value)==null||k.focus())}function C(k){var B;c.value||(B=i.value)==null||B.delegateKeyNavigation(k,{characterNavigation:!0})}return Re(l,i),{handle:l,menu:i,computedHandleId:p,descriptionId:r,menuId:a,modelWrapper:m,selectedMenuItem:f,highlightedId:A,expanded:d,computedDisabled:c,onBlur:g,currentLabel:b,rootClasses:$,rootStyle:S,otherAttrsMinusId:N,onClick:y,onKeydown:C,startIcon:h,cdxIconExpand:Ct}}}),ps=["aria-disabled"],ms=["id","aria-controls","aria-activedescendant","aria-expanded","aria-describedby"];function hs(e,n,o,l,i,r){const a=t.resolveComponent("cdx-icon"),d=t.resolveComponent("cdx-menu");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["cdx-select-vue",e.rootClasses]),style:t.normalizeStyle(e.rootStyle),"aria-disabled":e.computedDisabled},[t.createElementVNode("div",t.mergeProps({id:e.computedHandleId,ref:"handle",class:"cdx-select-vue__handle"},e.otherAttrsMinusId,{tabindex:"0",role:"combobox","aria-controls":e.menuId,"aria-activedescendant":e.highlightedId,"aria-expanded":e.expanded,"aria-describedby":e.descriptionId,onClick:n[0]||(n[0]=(...s)=>e.onClick&&e.onClick(...s)),onBlur:n[1]||(n[1]=(...s)=>e.onBlur&&e.onBlur(...s)),onKeydown:n[2]||(n[2]=(...s)=>e.onKeydown&&e.onKeydown(...s))}),[t.renderSlot(e.$slots,"label",{selectedMenuItem:e.selectedMenuItem,defaultLabel:e.defaultLabel},()=>[t.createTextVNode(t.toDisplayString(e.currentLabel),1)]),e.startIcon?(t.openBlock(),t.createBlock(a,{key:0,icon:e.startIcon,class:"cdx-select-vue__start-icon"},null,8,["icon"])):t.createCommentVNode("v-if",!0),t.createVNode(a,{icon:e.cdxIconExpand,class:"cdx-select-vue__indicator"},null,8,["icon"])],16,ms),t.createVNode(d,t.mergeProps({id:e.menuId,ref:"menu",selected:e.modelWrapper,"onUpdate:selected":n[3]||(n[3]=s=>e.modelWrapper=s),expanded:e.expanded,"onUpdate:expanded":n[4]||(n[4]=s=>e.expanded=s),"menu-items":e.menuItems},e.menuConfig,{onLoadMore:n[5]||(n[5]=s=>e.$emit("load-more"))}),{default:t.withCtx(({menuItem:s})=>[t.renderSlot(e.$slots,"menu-item",{menuItem:s})]),_:3},16,["id","selected","expanded","menu-items"])],14,ps)}const bs=O(fs,[["render",hs]]),gs=q(Kn),ys={none:Mn,asc:Ln,desc:xn},Cs={none:"none",asc:"ascending",desc:"descending"},ws=t.defineComponent({name:"CdxTable",components:{CdxCheckbox:Mt,CdxIcon:H},props:{caption:{type:String,required:!0},hideCaption:{type:Boolean,default:!1},columns:{type:Array,default:()=>[],validator:e=>{const n=e.map(l=>l.id);return new Set(n).size===n.length?!0:(console.warn('Each column in the "columns" prop of CdxTable must have a unique "id".'),!1)}},data:{type:Array,default:()=>[],validator:(e,n)=>{if(!Array.isArray(n.columns)||n.columns.length===0||e.length===0)return!0;const o=n.columns.some(i=>"allowSort"in i),l=e.every(i=>Ke in i);return o&&n.useRowSelection&&!l?(console.warn('For CdxTables with sorting and row selection, each row in the "data" prop must have a "TableRowIdentifier".'),!1):!0}},useRowHeaders:{type:Boolean,default:!1},showVerticalBorders:{type:Boolean,default:!1},useRowSelection:{type:Boolean,default:!1},selectedRows:{type:Array,default:()=>[]},sort:{type:Object,default:()=>({})}},emits:["update:selectedRows","update:sort"],setup(e,{emit:n}){const o=Z(t.toRef(e,"selectedRows"),n,"update:selectedRows"),l=t.ref(e.data.length===o.value.length),i=t.ref(!1),r=t.computed(()=>Object.keys(e.sort)[0]),a=t.computed(()=>e.columns.some(g=>g.allowSort)),d=t.computed(()=>{var y;return{"cdx-table__table--layout-fixed":(y=e.columns)==null?void 0:y.some(C=>"width"in C||"minWidth"in C),"cdx-table__table--borders-vertical":e.showVerticalBorders}}),s=se("cdx-table-sort-caption",g=>"".concat(g,", column headers with buttons are sortable."),[t.toRef(e,"caption")]),c=(g,y)=>se("cdx-table-select-row-label",(C,k)=>"Select row ".concat(C," of ").concat(k),[g,y]).value,u=se("cdx-table-select-all-label","Select all rows");function p(g,y){return Ke in g?g[Ke]:y}function m(g,y){const C=p(g,y);return{"cdx-table__row--selected":o.value.indexOf(C)!==-1}}function f(g){const y=e.columns[0].id;if(e.useRowHeaders===!0&&g===y)return"row"}function b(g){const y=e.columns[0].id;return e.useRowHeaders&&g===y?"th":"td"}function h(g,y=!1){if("textAlign"in g&&!gs(g.textAlign)){console.warn("Invalid value for TableColumn textAlign property.");return}return{["cdx-table__table__cell--align-".concat(g.textAlign)]:"textAlign"in g&&g.textAlign!=="start","cdx-table__table__cell--has-sort":y}}function E(g){const y={};return"width"in g&&(y.width=g.width),"minWidth"in g&&(y.minWidth=g.minWidth),y}function $(g){if(e.data.length===g.length){l.value=!0,i.value=!1;return}l.value=!1,e.data.length>g.length&&(i.value=!0),g.length===0&&(i.value=!1)}function S(g){i.value=!1,g?o.value=e.data.map((y,C)=>p(y,C)):o.value=[]}function I(g){var k;const y=(k=e.sort[g])!=null?k:"none";let C="asc";y==="asc"&&(C="desc"),y==="desc"&&(C="none"),n("update:sort",{[g]:C})}function N(g){var C;const y=(C=e.sort[g])!=null?C:"none";return ys[y]}function A(g,y=!1){var C;if(y){const k=(C=e.sort[g])!=null?C:"none";return k==="none"?void 0:Cs[k]}}return{wrappedSelectedRows:o,selectAll:l,selectAllIndeterminate:i,activeSortColumn:r,hasSortableColumns:a,tableClasses:d,getRowKey:p,getRowClass:m,getRowHeaderScope:f,getCellElement:b,getCellClass:h,getCellStyle:E,handleRowSelection:$,handleSelectAll:S,handleSort:I,getSortIcon:N,getSortOrder:A,translatedSortCaption:s,translatedSelectRowLabel:c,translatedSelectAllLabel:u}}}),ks={class:"cdx-table",tabindex:"0"},$s={key:0,class:"cdx-table__header"},Bs=["aria-hidden"],Ss={class:"cdx-table__header__content"},Is={class:"cdx-table__table-wrapper"},xs={key:0},Es={key:0,class:"cdx-table__table__select-rows"},Vs=["aria-sort"],As=["aria-selected","onClick"],Ns={key:0},Ts={key:0},Ms={key:1},Ls={class:"cdx-table__table__empty-state"},Ds={class:"cdx-table__table__empty-state-content"},Rs={key:1,class:"cdx-table__footer"};function Os(e,n,o,l,i,r){const a=t.resolveComponent("cdx-checkbox"),d=t.resolveComponent("cdx-icon");return t.openBlock(),t.createElementBlock("div",ks,[!e.hideCaption||e.$slots.header&&e.$slots.header().length>0?(t.openBlock(),t.createElementBlock("div",$s,[t.createElementVNode("div",{class:"cdx-table__header__caption","aria-hidden":e.$slots.header&&e.$slots.header().length>0?void 0:!0},[e.hideCaption?t.createCommentVNode("v-if",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(e.caption),1)],64))],8,Bs),t.createElementVNode("div",Ss,[t.renderSlot(e.$slots,"header")])])):t.createCommentVNode("v-if",!0),t.createElementVNode("div",Is,[t.createElementVNode("table",{class:t.normalizeClass(["cdx-table__table",e.tableClasses])},[t.createElementVNode("caption",null,[e.hasSortableColumns?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(e.translatedSortCaption),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(e.caption),1)],64))]),t.renderSlot(e.$slots,"thead",{},()=>[e.columns.length>0?(t.openBlock(),t.createElementBlock("thead",xs,[t.createElementVNode("tr",null,[e.useRowSelection?(t.openBlock(),t.createElementBlock("th",Es,[t.createVNode(a,{modelValue:e.selectAll,"onUpdate:modelValue":[n[0]||(n[0]=s=>e.selectAll=s),e.handleSelectAll],"hide-label":!0,indeterminate:e.selectAllIndeterminate},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.translatedSelectAllLabel),1)]),_:1},8,["modelValue","indeterminate","onUpdate:modelValue"])])):t.createCommentVNode("v-if",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.columns,s=>(t.openBlock(),t.createElementBlock("th",{key:s.id,scope:"col",class:t.normalizeClass(e.getCellClass(s,s.allowSort)),"aria-sort":e.getSortOrder(s.id,s.allowSort),style:t.normalizeStyle(e.getCellStyle(s))},[s.allowSort?(t.openBlock(),t.createElementBlock("button",{key:0,"aria-selected":s.id===e.activeSortColumn,class:"cdx-table__table__sort-button",onClick:c=>e.handleSort(s.id)},[t.createTextVNode(t.toDisplayString(s.label)+" ",1),t.createVNode(d,{icon:e.getSortIcon(s.id),size:"small",class:"cdx-table__table__sort-icon","aria-hidden":"true"},null,8,["icon"])],8,As)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(s.label),1)],64))],14,Vs))),128))])])):t.createCommentVNode("v-if",!0)]),t.renderSlot(e.$slots,"tbody",{},()=>[e.data.length>0?(t.openBlock(),t.createElementBlock("tbody",Ns,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.data,(s,c)=>(t.openBlock(),t.createElementBlock("tr",{key:e.getRowKey(s,c),class:t.normalizeClass(e.getRowClass(s,c))},[e.useRowSelection?(t.openBlock(),t.createElementBlock("td",Ts,[t.createVNode(a,{modelValue:e.wrappedSelectedRows,"onUpdate:modelValue":[n[1]||(n[1]=u=>e.wrappedSelectedRows=u),e.handleRowSelection],"input-value":e.getRowKey(s,c),"hide-label":!0},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.translatedSelectRowLabel(c+1,e.data.length)),1)]),_:2},1032,["modelValue","input-value","onUpdate:modelValue"])])):t.createCommentVNode("v-if",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.columns,u=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.getCellElement(u.id)),{key:u.id,scope:e.getRowHeaderScope(u.id),class:t.normalizeClass(e.getCellClass(u))},{default:t.withCtx(()=>[t.renderSlot(e.$slots,"item-"+u.id,{item:s[u.id],row:s},()=>[t.createTextVNode(t.toDisplayString(s[u.id]),1)])]),_:2},1032,["scope","class"]))),128))],2))),128))])):e.$slots["empty-state"]&&e.$slots["empty-state"]().length>0?(t.openBlock(),t.createElementBlock("tbody",Ms,[t.createElementVNode("tr",Ls,[t.createElementVNode("td",Ds,[t.renderSlot(e.$slots,"empty-state")])])])):t.createCommentVNode("v-if",!0)]),t.renderSlot(e.$slots,"tfoot")],2)]),e.$slots.footer&&e.$slots.footer().length>0?(t.openBlock(),t.createElementBlock("div",Rs,[t.renderSlot(e.$slots,"footer")])):t.createCommentVNode("v-if",!0)])}const _s=O(ws,[["render",Os]]),Fs=t.defineComponent({name:"CdxTab",props:{name:{type:String,required:!0},label:{type:String,default:""},disabled:{type:Boolean,default:!1}},setup(e){var r;const n=t.inject(Bt),o=t.inject(St);if(!n||!o)throw new Error("Tab component must be used inside a Tabs component");const l=(r=n.value.get(e.name))!=null?r:{},i=t.computed(()=>e.name===o.value);return{tab:l,isActive:i}}}),vs=["id","aria-hidden","aria-labelledby"];function zs(e,n,o,l,i,r){return t.withDirectives((t.openBlock(),t.createElementBlock("section",{id:e.tab.id,"aria-hidden":e.isActive?void 0:!0,"aria-labelledby":"".concat(e.tab.id,"-label"),class:"cdx-tab",role:"tabpanel",tabindex:"-1"},[t.renderSlot(e.$slots,"default")],8,vs)),[[t.vShow,e.isActive]])}const pn=O(Fs,[["render",zs]]),Ks=t.defineComponent({name:"CdxTabs",components:{CdxButton:fe,CdxIcon:H},props:{active:{type:String,required:!0},framed:{type:Boolean,default:!1}},emits:["update:active"],expose:["select","next","prev"],setup(e,{slots:n,emit:o}){const l=t.ref(),i=t.ref(),r=t.ref(),a=t.ref(),d=Fe(l),s=t.computed(()=>{const C=He(n.default);if(!C.every(k=>typeof k=="object"&&At(k,pn.name)))throw new Error("Slot content may only contain CdxTab components");if(C.length===0)throw new Error("Slot content cannot be empty");return C}),c=t.computed(()=>s.value.reduce((C,k)=>{var B;if((B=k.props)!=null&&B.name&&typeof k.props.name=="string"){if(C.get(k.props.name))throw new Error("Tab names must be unique");C.set(k.props.name,{name:k.props.name,id:K(k.props.name),label:k.props.label||k.props.name,disabled:k.props.disabled})}return C},new Map)),u=Z(t.toRef(e,"active"),o,"update:active"),p=t.computed(()=>Array.from(c.value.keys())),m=t.computed(()=>p.value.indexOf(u.value)),f=t.computed(()=>{var C;return(C=c.value.get(u.value))==null?void 0:C.id});t.provide(St,u),t.provide(Bt,c);const b=t.ref(new Map),h=t.ref(),E=t.ref(),$=je(h,{threshold:.95}),S=je(E,{threshold:.95});function I(C,k){const B=C;B&&(b.value.set(k,B),k===0?h.value=B:k===p.value.length-1&&(E.value=B))}const N=t.computed(()=>({"cdx-tabs--framed":e.framed,"cdx-tabs--quiet":!e.framed}));function A(){var C;(C=b.value.get(m.value))==null||C.focus()}function g(C){if(!i.value||!r.value||!a.value)return 0;const k=d.value==="rtl"?a.value:r.value,B=d.value==="rtl"?r.value:a.value,R=C.offsetLeft,T=R+C.clientWidth,_=i.value.scrollLeft+k.clientWidth,V=i.value.scrollLeft+i.value.clientWidth-B.clientWidth;return R<_?R-_:T>V?T-V:0}function y(C){if(!i.value||!r.value||!a.value)return;const k=C==="next"&&d.value==="ltr"||C==="prev"&&d.value==="rtl"?1:-1;let B=0,R=C==="next"?i.value.firstElementChild:i.value.lastElementChild;for(;R;){const T=C==="next"?R.nextElementSibling:R.previousElementSibling;if(B=g(R),Math.sign(B)===k){T&&Math.abs(B)<.25*i.value.clientWidth&&(B=g(T));break}R=T}i.value.scrollBy({left:B,behavior:"smooth"}),A()}return t.watch(u,()=>{if(f.value===void 0||!i.value||!r.value||!a.value)return;const C=document.getElementById("".concat(f.value,"-label"));C&&i.value.scrollBy({left:g(C),behavior:"smooth"})}),{activeTab:u,activeTabIndex:m,activeTabId:f,currentDirection:d,rootElement:l,tabListElement:i,prevScroller:r,nextScroller:a,rootClasses:N,tabNames:p,tabsData:c,firstLabelVisible:$,lastLabelVisible:S,assignTemplateRefForTabButton:I,scrollTabs:y,focusActiveTab:A,cdxIconPrevious:Nn,cdxIconNext:An}},methods:{select(e,n){const o=this.tabsData.get(e);o&&!(o!=null&&o.disabled)&&(this.activeTab=e,n&&t.nextTick(()=>{this.focusActiveTab()}))},selectNonDisabled(e,n,o){const l=this.tabsData.get(this.tabNames[e+n]);l&&(l.disabled?this.selectNonDisabled(e+n,n,o):this.select(l.name,o))},next(e){this.selectNonDisabled(this.activeTabIndex,1,e)},prev(e){this.selectNonDisabled(this.activeTabIndex,-1,e)},onLeftArrowKeypress(){this.currentDirection==="rtl"?this.next(!0):this.prev(!0)},onRightArrowKeypress(){this.currentDirection==="rtl"?this.prev(!0):this.next(!0)},onDownArrowKeypress(){var e;this.activeTabId&&((e=document.getElementById(this.activeTabId))==null||e.focus())}}}),Hs={class:"cdx-tabs__header"},Ps={ref:"prevScroller",class:"cdx-tabs__prev-scroller"},js={ref:"tabListElement",class:"cdx-tabs__list",role:"tablist"},qs=["id","disabled","aria-controls","aria-selected","tabindex","onClick","onKeyup"],Us={ref:"nextScroller",class:"cdx-tabs__next-scroller"},Ws={class:"cdx-tabs__content"};function Qs(e,n,o,l,i,r){const a=t.resolveComponent("cdx-icon"),d=t.resolveComponent("cdx-button");return t.openBlock(),t.createElementBlock("div",{ref:"rootElement",class:t.normalizeClass(["cdx-tabs",e.rootClasses])},[t.createElementVNode("div",Hs,[t.withDirectives(t.createElementVNode("div",Ps,[t.createVNode(d,{class:"cdx-tabs__scroll-button",weight:"quiet",type:"button",tabindex:"-1","aria-hidden":!0,onMousedown:n[0]||(n[0]=t.withModifiers(()=>{},["prevent"])),onClick:n[1]||(n[1]=s=>e.scrollTabs("prev"))},{default:t.withCtx(()=>[t.createVNode(a,{icon:e.cdxIconPrevious},null,8,["icon"])]),_:1})],512),[[t.vShow,!e.firstLabelVisible]]),t.createElementVNode("div",js,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.tabsData.values(),(s,c)=>(t.openBlock(),t.createElementBlock("button",{id:"".concat(s.id,"-label"),key:c,ref_for:!0,ref:u=>e.assignTemplateRefForTabButton(u,c),disabled:s.disabled?!0:void 0,"aria-controls":s.id,"aria-selected":s.name===e.activeTab,tabindex:s.name===e.activeTab?void 0:-1,class:"cdx-tabs__list__item",role:"tab",onClick:t.withModifiers(u=>e.select(s.name),["prevent"]),onKeyup:t.withKeys(u=>e.select(s.name),["enter"]),onKeydown:[n[2]||(n[2]=t.withKeys(t.withModifiers((...u)=>e.onRightArrowKeypress&&e.onRightArrowKeypress(...u),["prevent"]),["right"])),n[3]||(n[3]=t.withKeys(t.withModifiers((...u)=>e.onDownArrowKeypress&&e.onDownArrowKeypress(...u),["prevent"]),["down"])),n[4]||(n[4]=t.withKeys(t.withModifiers((...u)=>e.onLeftArrowKeypress&&e.onLeftArrowKeypress(...u),["prevent"]),["left"]))]},[t.createElementVNode("span",null,t.toDisplayString(s.label),1)],40,qs))),128))],512),t.withDirectives(t.createElementVNode("div",Us,[t.createVNode(d,{class:"cdx-tabs__scroll-button",weight:"quiet",type:"button",tabindex:"-1","aria-hidden":!0,onMousedown:n[5]||(n[5]=t.withModifiers(()=>{},["prevent"])),onClick:n[6]||(n[6]=s=>e.scrollTabs("next"))},{default:t.withCtx(()=>[t.createVNode(a,{icon:e.cdxIconNext},null,8,["icon"])]),_:1})],512),[[t.vShow,!e.lastLabelVisible]])]),t.createElementVNode("div",Ws,[t.renderSlot(e.$slots,"default")])],2)}const Gs=O(Ks,[["render",Qs]]),Ys=q(ue),Xs=t.defineComponent({name:"CdxTextArea",components:{CdxIcon:H},inheritAttrs:!1,props:{modelValue:{type:String,default:""},status:{type:String,default:"default",validator:Ys},disabled:{type:Boolean,default:!1},autosize:{type:Boolean,default:!1},startIcon:{type:[String,Object],default:void 0},endIcon:{type:[String,Object],default:void 0}},emits:["update:modelValue"],setup(e,{attrs:n,emit:o}){const l=Z(t.toRef(e,"modelValue"),o),i=n.id,{computedDisabled:r,computedStatus:a,computedInputId:d}=X(t.toRef(e,"disabled"),t.toRef(e,"status"),i),s=t.inject(ze,void 0),c=t.computed(()=>({"cdx-text-area__textarea--has-value":!!l.value,"cdx-text-area__textarea--is-autosize":e.autosize})),u=t.computed(()=>({"cdx-text-area--status-default":a.value==="default","cdx-text-area--status-error":a.value==="error","cdx-text-area--has-start-icon":!!e.startIcon,"cdx-text-area--has-end-icon":!!e.endIcon})),{rootClasses:p,rootStyle:m,otherAttrs:f}=J(n,u),b=t.computed(()=>{const I=f.value,{id:$}=I;return ae(I,["id"])}),h=t.ref();function E(){h.value&&e.autosize&&(h.value.style.height="auto",h.value.style.height="".concat(h.value.scrollHeight,"px"))}return{rootClasses:p,rootStyle:m,wrappedModel:l,computedDisabled:r,computedInputId:d,descriptionId:s,textareaClasses:c,otherAttrsMinusId:b,textarea:h,onInput:E}}}),Js=["id","aria-describedby","disabled"];function Zs(e,n,o,l,i,r){const a=t.resolveComponent("cdx-icon");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["cdx-text-area",e.rootClasses]),style:t.normalizeStyle(e.rootStyle)},[t.withDirectives(t.createElementVNode("textarea",t.mergeProps({id:e.computedInputId,ref:"textarea"},e.otherAttrsMinusId,{"onUpdate:modelValue":n[0]||(n[0]=d=>e.wrappedModel=d),class:[e.textareaClasses,"cdx-text-area__textarea"],"aria-describedby":e.descriptionId,disabled:e.computedDisabled,onInput:n[1]||(n[1]=(...d)=>e.onInput&&e.onInput(...d))}),null,16,Js),[[t.vModelText,e.wrappedModel]]),e.startIcon?(t.openBlock(),t.createBlock(a,{key:0,icon:e.startIcon,class:"cdx-text-area__icon-vue cdx-text-area__start-icon"},null,8,["icon"])):t.createCommentVNode("v-if",!0),e.endIcon?(t.openBlock(),t.createBlock(a,{key:1,icon:e.endIcon,class:"cdx-text-area__icon-vue cdx-text-area__end-icon"},null,8,["icon"])):t.createCommentVNode("v-if",!0)],6)}const ei=O(Xs,[["render",Zs]]),ti=t.defineComponent({name:"CdxToggleButtonGroup",components:{CdxIcon:H,CdxToggleButton:ht},props:{buttons:{type:Array,required:!0,validator:e=>Array.isArray(e)&&e.length>=1},modelValue:{type:[String,Number,null,Array],required:!0},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,{emit:n}){function o(i){return Array.isArray(e.modelValue)?e.modelValue.indexOf(i.value)!==-1:e.modelValue!==null?e.modelValue===i.value:!1}function l(i,r){if(Array.isArray(e.modelValue)){const a=e.modelValue.indexOf(i.value)!==-1;r&&!a?n("update:modelValue",e.modelValue.concat(i.value)):!r&&a&&n("update:modelValue",e.modelValue.filter(d=>d!==i.value))}else r&&e.modelValue!==i.value&&n("update:modelValue",i.value)}return{getButtonLabel:Tt,isSelected:o,onUpdate:l}}}),ni={class:"cdx-toggle-button-group"};function oi(e,n,o,l,i,r){const a=t.resolveComponent("cdx-icon"),d=t.resolveComponent("cdx-toggle-button");return t.openBlock(),t.createElementBlock("div",ni,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.buttons,s=>(t.openBlock(),t.createBlock(d,{key:s.value,"model-value":e.isSelected(s),disabled:s.disabled||e.disabled,"aria-label":s.ariaLabel,"onUpdate:modelValue":c=>e.onUpdate(s,c)},{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default",{button:s,selected:e.isSelected(s)},()=>[s.icon?(t.openBlock(),t.createBlock(a,{key:0,icon:s.icon},null,8,["icon"])):t.createCommentVNode("v-if",!0),t.createTextVNode(" "+t.toDisplayString(e.getButtonLabel(s)),1)])]),_:2},1032,["model-value","disabled","aria-label","onUpdate:modelValue"]))),128))])}const li=O(ti,[["render",oi]]),ai=t.defineComponent({name:"CdxToggleSwitch",components:{CdxLabel:Ae},inheritAttrs:!1,props:{modelValue:{type:[Boolean,Array],default:!1},inputValue:{type:[String,Number,Boolean],default:!1},alignSwitch:{type:Boolean,default:!1},hideLabel:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,{emit:n,slots:o,attrs:l}){var b;it((b=o.default)==null?void 0:b.call(o),l,"CdxToggleSwitch");const i=t.ref(),r=K("toggle-switch"),a=K("description"),d=t.computed(()=>({"cdx-toggle-switch--align-switch":e.alignSwitch})),{rootClasses:s,rootStyle:c,otherAttrs:u}=J(l,d),{computedDisabled:p}=X(t.toRef(e,"disabled")),m=Z(t.toRef(e,"modelValue"),n);return{input:i,inputId:r,descriptionId:a,rootClasses:s,rootStyle:c,otherAttrs:u,computedDisabled:p,wrappedModel:m,clickInput:()=>{i.value.click()}}}}),si=["id","aria-describedby","value","disabled"],ii=t.createElementVNode("span",{class:"cdx-toggle-switch__switch"},[t.createElementVNode("span",{class:"cdx-toggle-switch__switch__grip"})],-1);function ri(e,n,o,l,i,r){const a=t.resolveComponent("cdx-label");return t.openBlock(),t.createElementBlock("span",{class:t.normalizeClass(["cdx-toggle-switch",e.rootClasses]),style:t.normalizeStyle(e.rootStyle)},[t.withDirectives(t.createElementVNode("input",t.mergeProps({id:e.inputId,ref:"input","onUpdate:modelValue":n[0]||(n[0]=d=>e.wrappedModel=d),class:"cdx-toggle-switch__input",type:"checkbox",role:"switch","aria-describedby":e.$slots.description&&e.$slots.description().length>0?e.descriptionId:void 0,value:e.inputValue,disabled:e.computedDisabled},e.otherAttrs,{onKeydown:n[1]||(n[1]=t.withKeys(t.withModifiers((...d)=>e.clickInput&&e.clickInput(...d),["prevent"]),["enter"]))}),null,16,si),[[t.vModelCheckbox,e.wrappedModel]]),ii,e.$slots.default&&e.$slots.default().length?(t.openBlock(),t.createBlock(a,{key:0,class:"cdx-toggle-switch__label","input-id":e.inputId,"description-id":e.$slots.description&&e.$slots.description().length>0?e.descriptionId:void 0,"visually-hidden":e.hideLabel,disabled:e.computedDisabled},t.createSlots({default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:2},[e.$slots.description&&e.$slots.description().length>0?{name:"description",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"description")]),key:"0"}:void 0]),1032,["input-id","description-id","visually-hidden","disabled"])):t.createCommentVNode("v-if",!0)],6)}const di=O(ai,[["render",ri]]);class ci{constructor(n,o){de(this,"referenceElement");de(this,"tooltipElement");de(this,"textContent");de(this,"placement");de(this,"autoUpdateCleanup");de(this,"referenceElementHandlers");de(this,"tooltipElementHandlers");de(this,"escapeHandler");de(this,"timeoutId");var r,a;const l=n.ownerDocument,i=K("tooltip");this.referenceElement=n,this.textContent=o.textContent,this.placement=(r=o.placement)!=null?r:"bottom",this.timeoutId=null,this.tooltipElement=l.createElement("div"),this.tooltipElement.classList.add("cdx-tooltip"),this.tooltipElement.role="tooltip",this.tooltipElement.id=i,this.referenceElement.setAttribute("aria-describedby",i),this.tooltipElement.textContent=this.textContent,(a=this.referenceElement.parentElement)==null||a.appendChild(this.tooltipElement),this.referenceElementHandlers={},this.referenceElementHandlers.mouseenter=this.show.bind(this),this.referenceElementHandlers.mouseleave=this.hideAfterDelay.bind(this),this.referenceElementHandlers.focus=this.show.bind(this),this.referenceElementHandlers.blur=this.hide.bind(this),this.tooltipElementHandlers={},this.tooltipElementHandlers.mouseenter=this.show.bind(this),this.tooltipElementHandlers.mouseleave=this.hideAfterDelay.bind(this),this.escapeHandler=this.onKeyup.bind(this),this.addEventListeners(),this.autoUpdateCleanup=nn(this.referenceElement,this.tooltipElement,()=>this.update())}isVisible(){return this.tooltipElement.style.display==="block"}show(){this.timeoutId&&clearTimeout(this.timeoutId),this.tooltipElement.style.display="block",this.tooltipElement.ownerDocument.addEventListener("keyup",this.escapeHandler)}hide(){this.tooltipElement.style.display="none",this.tooltipElement.ownerDocument.removeEventListener("keyup",this.escapeHandler)}hideAfterDelay(){this.timeoutId=setTimeout(this.hide.bind(this),250)}onKeyup(n){n.key==="Escape"&&this.isVisible()&&this.hide()}addEventListeners(){Object.keys(this.referenceElementHandlers).forEach(n=>{this.referenceElement.addEventListener(n,this.referenceElementHandlers[n])}),Object.keys(this.tooltipElementHandlers).forEach(n=>{this.tooltipElement.addEventListener(n,this.tooltipElementHandlers[n])})}removeEventListeners(){Object.keys(this.referenceElementHandlers).forEach(n=>{this.referenceElement.removeEventListener(n,this.referenceElementHandlers[n])}),Object.keys(this.tooltipElementHandlers).forEach(n=>{this.tooltipElement.removeEventListener(n,this.tooltipElementHandlers[n])})}update(){ln(this.referenceElement,this.tooltipElement,{placement:this.placement,middleware:[qt(4),on(),sa(),mt()]}).then(({x:n,y:o,middlewareData:l})=>{var a,d,s;const i=(d=(a=l.offset)==null?void 0:a.placement)!=null?d:this.placement,r={left:"right","left-start":"right","left-end":"right",top:"bottom","top-start":"bottom","top-end":"bottom",bottom:"top","bottom-start":"top","bottom-end":"top",right:"left","right-start":"left","right-end":"left"};Object.assign(this.tooltipElement.style,{left:"".concat(n,"px"),top:"".concat(o,"px"),visibility:(s=l.hide)!=null&&s.referenceHidden?"hidden":"visible",transformOrigin:r[i]})})}remove(){this.tooltipElement.remove(),this.autoUpdateCleanup(),this.removeEventListeners()}}const ui={mounted(e,{value:n,arg:o}){e.tooltip=new ci(e,{textContent:String(n),placement:o})},beforeUnmount(e){e.tooltip&&e.tooltip.remove()}},fi=t.defineComponent({name:"CdxTypeaheadSearch",components:{CdxIcon:H,CdxMenu:ke,CdxSearchInput:fn},inheritAttrs:!1,props:{id:{type:String,required:!0},formAction:{type:String,required:!0},searchResults:{type:Array,required:!0},useButton:{type:Boolean,default:!1},buttonLabel:{type:String,default:""},initialInputValue:{type:String,default:""},searchFooterUrl:{type:String,default:""},debounceInterval:{type:Number,default:Hn},highlightQuery:{type:Boolean,default:!1},showThumbnail:{type:Boolean,default:!1},autoExpandWidth:{type:Boolean,default:!1},visibleItemLimit:{type:Number,default:null}},emits:["input","search-result-click","submit","load-more"],setup(e,{attrs:n,emit:o,slots:l}){const i=t.ref(),r=t.ref(),a=K("typeahead-search-menu"),d=se("cdx-typeahead-search-search-results-label","Search results"),s=t.ref(!1),c=t.ref(!1),u=t.ref(!1),p=t.ref(!1),m=t.ref(e.initialInputValue),f=t.ref(""),b=t.computed(()=>{var D,v;return(v=(D=r.value)==null?void 0:D.getHighlightedMenuItem())==null?void 0:v.id}),h=t.ref(null),E=t.computed(()=>({"cdx-typeahead-search__menu-message--has-thumbnail":e.showThumbnail})),$=t.computed(()=>e.searchResults.find(D=>D.value===h.value)),S=t.computed(()=>e.searchFooterUrl?{value:we,url:e.searchFooterUrl}:void 0),I=t.computed(()=>({"cdx-typeahead-search--show-thumbnail":e.showThumbnail,"cdx-typeahead-search--expanded":s.value,"cdx-typeahead-search--auto-expand-width":e.showThumbnail&&e.autoExpandWidth})),{rootClasses:N,rootStyle:A,otherAttrs:g}=J(n,I);function y(D){return D}const C=t.computed(()=>({visibleItemLimit:e.visibleItemLimit,showThumbnail:e.showThumbnail,boldLabel:!0,hideDescriptionOverflow:!0}));let k,B;function R(D,v=!1){$.value&&$.value.label!==D&&$.value.value!==D&&(h.value=null),B!==void 0&&(clearTimeout(B),B=void 0),D===""?s.value=!1:(c.value=!0,l["search-results-pending"]&&(B=setTimeout(()=>{p.value&&(s.value=!0),u.value=!0},Pn))),k!==void 0&&(clearTimeout(k),k=void 0);const le=()=>{o("input",D)};v?le():k=setTimeout(()=>{le()},e.debounceInterval)}function T(D){var v;if(D===we){h.value=null,m.value=f.value;return}h.value=D,D!==null&&(m.value=$.value?(v=$.value.label)!=null?v:String($.value.value):"")}function _(){p.value=!0,(f.value||u.value)&&(s.value=!0)}function V(){p.value=!1,s.value=!1}function L(D){const Ze=D,{id:v}=Ze,le=ae(Ze,["id"]);if(le.value===we){o("search-result-click",{searchResult:null,index:e.searchResults.length,numberOfResults:e.searchResults.length});return}P(le)}function P(D){const v={searchResult:D,index:e.searchResults.findIndex(le=>le.value===D.value),numberOfResults:e.searchResults.length};o("search-result-click",v)}function G(D){var v;if(D.value===we){m.value=f.value;return}m.value=D.value?(v=D.label)!=null?v:String(D.value):""}function re(D){var v;s.value=!1,(v=r.value)==null||v.clearActive(),L(D)}function be(D){if($.value)P($.value),D.stopPropagation(),window.location.assign($.value.url),D.preventDefault();else{const v={searchResult:null,index:-1,numberOfResults:e.searchResults.length};o("submit",v)}}function Oe(D){if(!r.value||!f.value||D.key===" ")return;const v=r.value.getHighlightedMenuItem(),le=r.value.getHighlightedViaKeyboard();switch(D.key){case"Enter":v&&(v.value===we&&le?window.location.assign(e.searchFooterUrl):r.value.delegateKeyNavigation(D,{prevent:!1})),s.value=!1;break;case"Tab":s.value=!1;break;default:r.value.delegateKeyNavigation(D);break}}return t.onMounted(()=>{e.initialInputValue&&R(e.initialInputValue,!0)}),t.watch(t.toRef(e,"searchResults"),()=>{f.value=m.value.trim(),p.value&&c.value&&f.value.length>0&&(s.value=!0),B!==void 0&&(clearTimeout(B),B=void 0),c.value=!1,u.value=!1}),{form:i,menu:r,menuId:a,highlightedId:b,selection:h,menuMessageClass:E,footer:S,asSearchResult:y,inputValue:m,searchQuery:f,expanded:s,showPending:u,rootClasses:N,rootStyle:A,otherAttrs:g,menuConfig:C,onUpdateInputValue:R,onUpdateMenuSelection:T,onFocus:_,onBlur:V,onSearchResultClick:L,onSearchResultKeyboardNavigation:G,onSearchFooterClick:re,onSubmit:be,onKeydown:Oe,MenuFooterValue:we,articleIcon:Sn,translatedSearchResultsLabel:d}},methods:{focus(){this.$refs.searchInput.focus()}}}),pi=["id","action"],mi={class:"cdx-typeahead-search__menu-message__text"},hi={class:"cdx-typeahead-search__menu-message__text"},bi=["href","onClickCapture"],gi={class:"cdx-menu-item__text cdx-typeahead-search__search-footer__text"},yi={class:"cdx-typeahead-search__search-footer__query"};function Ci(e,n,o,l,i,r){const a=t.resolveComponent("cdx-icon"),d=t.resolveComponent("cdx-menu"),s=t.resolveComponent("cdx-search-input");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["cdx-typeahead-search",e.rootClasses]),style:t.normalizeStyle(e.rootStyle)},[t.createElementVNode("form",{id:e.id,ref:"form",class:"cdx-typeahead-search__form",action:e.formAction,onSubmit:n[4]||(n[4]=(...c)=>e.onSubmit&&e.onSubmit(...c))},[t.createVNode(s,t.mergeProps({ref:"searchInput",modelValue:e.inputValue,"onUpdate:modelValue":n[3]||(n[3]=c=>e.inputValue=c),"button-label":e.buttonLabel,"use-button":e.useButton},e.otherAttrs,{class:"cdx-typeahead-search__input",name:"search",role:"combobox",autocomplete:"off","aria-autocomplete":"list","aria-controls":e.menuId,"aria-expanded":e.expanded,"aria-activedescendant":e.highlightedId,"onUpdate:modelValue":e.onUpdateInputValue,onFocus:e.onFocus,onBlur:e.onBlur,onKeydown:e.onKeydown}),{default:t.withCtx(()=>[t.createVNode(d,t.mergeProps({id:e.menuId,ref:"menu",expanded:e.expanded,"onUpdate:expanded":n[0]||(n[0]=c=>e.expanded=c),class:"cdx-typeahead-search__menu","show-pending":e.showPending,selected:e.selection,"menu-items":e.searchResults,footer:e.footer,"search-query":e.highlightQuery?e.searchQuery:"","show-no-results-slot":e.searchQuery.length>0&&e.searchResults.length===0&&e.$slots["search-no-results-text"]&&e.$slots["search-no-results-text"]().length>0},e.menuConfig,{"aria-label":e.translatedSearchResultsLabel,"onUpdate:selected":e.onUpdateMenuSelection,onMenuItemClick:n[1]||(n[1]=c=>e.onSearchResultClick(e.asSearchResult(c))),onMenuItemKeyboardNavigation:e.onSearchResultKeyboardNavigation,onLoadMore:n[2]||(n[2]=c=>e.$emit("load-more"))}),{pending:t.withCtx(()=>[t.createElementVNode("div",{class:t.normalizeClass(["cdx-menu-item__content cdx-typeahead-search__menu-message",e.menuMessageClass])},[t.createElementVNode("span",mi,[t.renderSlot(e.$slots,"search-results-pending")])],2)]),"no-results":t.withCtx(()=>[t.createElementVNode("div",{class:t.normalizeClass(["cdx-menu-item__content cdx-typeahead-search__menu-message",e.menuMessageClass])},[t.createElementVNode("span",hi,[t.renderSlot(e.$slots,"search-no-results-text")])],2)]),default:t.withCtx(({menuItem:c,active:u})=>[c.value===e.MenuFooterValue?(t.openBlock(),t.createElementBlock("a",{key:0,class:t.normalizeClass(["cdx-menu-item__content cdx-typeahead-search__search-footer",{"cdx-typeahead-search__search-footer__active":u}]),href:e.asSearchResult(c).url,onClickCapture:t.withModifiers(p=>e.onSearchFooterClick(e.asSearchResult(c)),["stop"])},[t.createVNode(a,{class:"cdx-menu-item__thumbnail cdx-typeahead-search__search-footer__icon",icon:e.articleIcon},null,8,["icon"]),t.createElementVNode("span",gi,[t.renderSlot(e.$slots,"search-footer-text",{searchQuery:e.searchQuery},()=>[t.createElementVNode("strong",yi,t.toDisplayString(e.searchQuery),1)])])],42,bi)):t.createCommentVNode("v-if",!0)]),_:3},16,["id","expanded","show-pending","selected","menu-items","footer","search-query","show-no-results-slot","aria-label","onUpdate:selected","onMenuItemKeyboardNavigation"])]),_:3},16,["modelValue","button-label","use-button","aria-controls","aria-expanded","aria-activedescendant","onUpdate:modelValue","onFocus","onBlur","onKeydown"]),t.renderSlot(e.$slots,"default")],40,pi)],6)}const wi=O(fi,[["render",Ci]]);w.CdxAccordion=ro,w.CdxButton=fe,w.CdxButtonGroup=po,w.CdxCard=So,w.CdxCheckbox=Mt,w.CdxChipInput=Jo,w.CdxCombobox=ba,w.CdxDialog=xa,w.CdxField=Fa,w.CdxIcon=H,w.CdxInfoChip=ja,w.CdxLabel=Ae,w.CdxLookup=Qa,w.CdxMenu=ke,w.CdxMenuButton=ts,w.CdxMenuItem=Ot,w.CdxMessage=un,w.CdxProgressBar=_t,w.CdxRadio=ss,w.CdxSearchInput=fn,w.CdxSearchResultTitle=Rt,w.CdxSelect=bs,w.CdxTab=pn,w.CdxTable=_s,w.CdxTabs=Gs,w.CdxTextArea=ei,w.CdxTextInput=Ue,w.CdxThumbnail=at,w.CdxToggleButton=ht,w.CdxToggleButtonGroup=li,w.CdxToggleSwitch=di,w.CdxTooltip=ui,w.CdxTypeaheadSearch=wi,w.TableRowIdentifier=Ke,w.stringHelpers=el,w.useComputedDirection=Fe,w.useComputedDisabled=st,w.useComputedLanguage=kt,w.useFieldData=X,w.useFloatingMenu=Re,w.useGeneratedId=K,w.useI18n=se,w.useIntersectionObserver=je,w.useModelWrapper=Z,w.useResizeObserver=cn,w.useSlotContents=He,w.useSplitAttributes=J,w.useWarnOnce=Pe,Object.defineProperty(w,Symbol.toStringTag,{value:"Module"})});
|