L?F-L:0}function N(b){if(!i.value||!d.value||!s.value)return;const g=b==="next"&&r.value==="ltr"||b==="prev"&&r.value==="rtl"?1:-1;let x=0,V=b==="next"?i.value.firstElementChild:i.value.lastElementChild;for(;V;){const F=b==="next"?V.nextElementSibling:V.previousElementSibling;if(x=M(V),Math.sign(x)===g){F&&Math.abs(x)<.25*i.value.clientWidth&&(x=M(F));break}V=F}i.value.scrollBy({left:x,behavior:"smooth"}),A()}return t.watch(p,()=>{if(h.value===void 0||!i.value||!d.value||!s.value)return;const b=document.getElementById("".concat(h.value,"-label"));b&&i.value.scrollBy({left:M(b),behavior:"smooth"})}),{activeTab:p,activeTabIndex:m,activeTabId:h,currentDirection:r,rootElement:l,tabListElement:i,prevScroller:d,nextScroller:s,rootClasses:I,tabNames:f,tabsData:u,firstLabelVisible:w,lastLabelVisible:k,assignTemplateRefForTabButton:E,scrollTabs:N,focusActiveTab:A,cdxIconPrevious:Vt,cdxIconNext:xt}},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())}}}),xi={class:"cdx-tabs__header"},Vi={ref:"prevScroller",class:"cdx-tabs__prev-scroller"},Ei={ref:"tabListElement",class:"cdx-tabs__list",role:"tablist"},Ni=["id","disabled","aria-controls","aria-selected","tabindex","onClick","onKeyup"],Ai={ref:"nextScroller",class:"cdx-tabs__next-scroller"},Mi={class:"cdx-tabs__content"};function Di(e,n,o,l,i,d){const s=t.resolveComponent("cdx-icon"),r=t.resolveComponent("cdx-button");return t.openBlock(),t.createElementBlock("div",{ref:"rootElement",class:t.normalizeClass(["cdx-tabs",e.rootClasses])},[t.createElementVNode("div",xi,[t.withDirectives(t.createElementVNode("div",Vi,[t.createVNode(r,{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]=a=>e.scrollTabs("prev"))},{default:t.withCtx(()=>[t.createVNode(s,{icon:e.cdxIconPrevious},null,8,["icon"])]),_:1})],512),[[t.vShow,!e.firstLabelVisible]]),t.createElementVNode("div",Ei,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.tabsData.values(),(a,u)=>(t.openBlock(),t.createElementBlock("button",{id:"".concat(a.id,"-label"),key:u,ref_for:!0,ref:c=>e.assignTemplateRefForTabButton(c,u),disabled:a.disabled?!0:void 0,"aria-controls":a.id,"aria-selected":a.name===e.activeTab,tabindex:a.name===e.activeTab?void 0:-1,class:"cdx-tabs__list__item",role:"tab",onClick:t.withModifiers(c=>e.select(a.name),["prevent"]),onKeyup:t.withKeys(c=>e.select(a.name),["enter"]),onKeydown:[n[2]||(n[2]=t.withKeys(t.withModifiers((...c)=>e.onRightArrowKeypress&&e.onRightArrowKeypress(...c),["prevent"]),["right"])),n[3]||(n[3]=t.withKeys(t.withModifiers((...c)=>e.onDownArrowKeypress&&e.onDownArrowKeypress(...c),["prevent"]),["down"])),n[4]||(n[4]=t.withKeys(t.withModifiers((...c)=>e.onLeftArrowKeypress&&e.onLeftArrowKeypress(...c),["prevent"]),["left"]))]},[t.createElementVNode("span",null,t.toDisplayString(a.label),1)],40,Ni))),128))],512),t.withDirectives(t.createElementVNode("div",Ai,[t.createVNode(r,{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]=a=>e.scrollTabs("next"))},{default:t.withCtx(()=>[t.createVNode(s,{icon:e.cdxIconNext},null,8,["icon"])]),_:1})],512),[[t.vShow,!e.lastLabelVisible]])]),t.createElementVNode("div",Mi,[t.renderSlot(e.$slots,"default")])],2)}const Li=z(Ii,[["render",Di]]),Ti=Y(de),Ri=t.defineComponent({name:"CdxTextArea",components:{CdxIcon:Q},inheritAttrs:!1,props:{modelValue:{type:String,default:""},status:{type:String,default:"default",validator:Ti},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=ee(t.toRef(e,"modelValue"),o),i=n.id,{computedDisabled:d,computedStatus:s,computedInputId:r}=te(t.toRef(e,"disabled"),t.toRef(e,"status"),i),a=t.inject(He,void 0),u=t.computed(()=>({"cdx-text-area__textarea--has-value":!!l.value,"cdx-text-area__textarea--is-autosize":e.autosize})),c=t.computed(()=>({"cdx-text-area--status-default":s.value==="default","cdx-text-area--status-error":s.value==="error","cdx-text-area--has-start-icon":!!e.startIcon,"cdx-text-area--has-end-icon":!!e.endIcon})),{rootClasses:p,rootStyle:f,otherAttrs:m}=ne(n,c),h=t.computed(()=>{const k=m.value,{id:y}=k;return re(k,["id"])}),v=t.ref();function C(){v.value&&e.autosize&&(v.value.style.height="auto",v.value.style.height="".concat(v.value.scrollHeight,"px"))}return{rootClasses:p,rootStyle:f,wrappedModel:l,computedDisabled:d,computedInputId:r,descriptionId:a,textareaClasses:u,otherAttrsMinusId:h,textarea:v,onInput:C}}}),Fi=["id","aria-describedby","disabled"];function Oi(e,n,o,l,i,d){const s=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]=r=>e.wrappedModel=r),class:[e.textareaClasses,"cdx-text-area__textarea"],"aria-describedby":e.descriptionId,disabled:e.computedDisabled,onInput:n[1]||(n[1]=(...r)=>e.onInput&&e.onInput(...r))}),null,16,Fi),[[t.vModelText,e.wrappedModel]]),e.startIcon?(t.openBlock(),t.createBlock(s,{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(s,{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 zi=z(Ri,[["render",Oi]]),Ki=t.defineComponent({name:"CdxToggleButtonGroup",components:{CdxIcon:Q,CdxToggleButton:ct},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}){const{rootElement:o,assignTemplateRef:l,onFocus:i,onBlur:d,onKeydown:s}=_t(t.toRef(e,"buttons"));function r(u){return Array.isArray(e.modelValue)?e.modelValue.indexOf(u.value)!==-1:e.modelValue!==null?e.modelValue===u.value:!1}function a(u,c){if(Array.isArray(e.modelValue)){const p=e.modelValue.indexOf(u.value)!==-1;c&&!p?n("update:modelValue",e.modelValue.concat(u.value)):!c&&p&&n("update:modelValue",e.modelValue.filter(f=>f!==u.value))}else c&&e.modelValue!==u.value&&n("update:modelValue",u.value)}return{rootElement:o,assignTemplateRef:l,onFocus:i,onBlur:d,onKeydown:s,getButtonLabel:Pt,isSelected:r,onUpdate:a}}}),Pi={ref:"rootElement",class:"cdx-toggle-button-group"};function _i(e,n,o,l,i,d){const s=t.resolveComponent("cdx-icon"),r=t.resolveComponent("cdx-toggle-button");return t.openBlock(),t.createElementBlock("div",Pi,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.buttons,(a,u)=>(t.openBlock(),t.createBlock(r,{key:a.value,ref_for:!0,ref:c=>e.assignTemplateRef(c,u),"model-value":e.isSelected(a),disabled:a.disabled||e.disabled,"aria-label":a.ariaLabel,"onUpdate:modelValue":c=>e.onUpdate(a,c),onFocus:c=>e.onFocus(u),onBlur:e.onBlur,onKeydown:e.onKeydown},{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default",{button:a,selected:e.isSelected(a)},()=>[a.icon?(t.openBlock(),t.createBlock(s,{key:0,icon:a.icon},null,8,["icon"])):t.createCommentVNode("v-if",!0),t.createTextVNode(" "+t.toDisplayString(e.getButtonLabel(a)),1)])]),_:2},1032,["model-value","disabled","aria-label","onUpdate:modelValue","onFocus","onBlur","onKeydown"]))),128))],512)}const Hi=z(Ki,[["render",_i]]),Ui=t.defineComponent({name:"CdxToggleSwitch",components:{CdxLabel:Ne},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 h;at((h=o.default)==null?void 0:h.call(o),l,"CdxToggleSwitch");const i=t.ref(),d=U("toggle-switch"),s=U("description"),r=t.computed(()=>({"cdx-toggle-switch--align-switch":e.alignSwitch})),{rootClasses:a,rootStyle:u,otherAttrs:c}=ne(l,r),{computedDisabled:p}=te(t.toRef(e,"disabled")),f=ee(t.toRef(e,"modelValue"),n);return{input:i,inputId:d,descriptionId:s,rootClasses:a,rootStyle:u,otherAttrs:c,computedDisabled:p,wrappedModel:f,clickInput:()=>{i.value.click()}}}}),qi=["id","aria-describedby","value","disabled"],Wi=t.createElementVNode("span",{class:"cdx-toggle-switch__switch"},[t.createElementVNode("span",{class:"cdx-toggle-switch__switch__grip"})],-1);function ji(e,n,o,l,i,d){const s=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]=r=>e.wrappedModel=r),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((...r)=>e.clickInput&&e.clickInput(...r),["prevent"]),["enter"]))}),null,16,qi),[[t.vModelCheckbox,e.wrappedModel]]),Wi,e.$slots.default&&e.$slots.default().length?(t.openBlock(),t.createBlock(s,{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 Qi=z(Ui,[["render",ji]]);class Gi{constructor(n,o){ue(this,"referenceElement");ue(this,"tooltipElement");ue(this,"textContent");ue(this,"placement");ue(this,"autoUpdateCleanup");ue(this,"referenceElementHandlers");ue(this,"tooltipElementHandlers");ue(this,"escapeHandler");ue(this,"timeoutId");var d,s;const l=n.ownerDocument,i=U("tooltip");this.referenceElement=n,this.textContent=o.textContent,this.placement=(d=o.placement)!=null?d:"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,(s=this.referenceElement.parentElement)==null||s.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=sn(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(){dn(this.referenceElement,this.tooltipElement,{placement:this.placement,middleware:[Jt(4),rn(),Sa(),tt()]}).then(({x:n,y:o,middlewareData:l})=>{var s,r,a;const i=(r=(s=l.offset)==null?void 0:s.placement)!=null?r:this.placement,d={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:(a=l.hide)!=null&&a.referenceHidden?"hidden":"visible",transformOrigin:d[i]})})}remove(){this.tooltipElement.remove(),this.autoUpdateCleanup(),this.removeEventListeners()}}const Yi={mounted(e,{value:n,arg:o}){e.tooltip=new Gi(e,{textContent:String(n),placement:o})},beforeUnmount(e){e.tooltip&&e.tooltip.remove()}},Xi=t.defineComponent({name:"CdxTypeaheadSearch",components:{CdxIcon:Q,CdxMenu:Ce,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:lo},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(),d=t.ref(),s=U("typeahead-search-menu"),r=W("cdx-typeahead-search-search-results-label","Search results"),a=t.ref(!1),u=t.ref(!1),c=t.ref(!1),p=t.ref(!1),f=t.ref(e.initialInputValue),m=t.ref(""),h=t.computed(()=>{var $,D;return(D=($=d.value)==null?void 0:$.getHighlightedMenuItem())==null?void 0:D.id}),v=t.ref(null),C=t.computed(()=>({"cdx-typeahead-search__menu-message--has-thumbnail":e.showThumbnail})),y=t.computed(()=>e.searchResults.find($=>$.value===v.value)),w=t.computed(()=>e.searchFooterUrl?{value:we,url:e.searchFooterUrl}:void 0),k=t.computed(()=>({"cdx-typeahead-search--show-thumbnail":e.showThumbnail,"cdx-typeahead-search--expanded":a.value,"cdx-typeahead-search--auto-expand-width":e.showThumbnail&&e.autoExpandWidth})),{rootClasses:E,rootStyle:I,otherAttrs:A}=ne(n,k);function M($){return $}const N=t.computed(()=>({visibleItemLimit:e.visibleItemLimit,showThumbnail:e.showThumbnail,boldLabel:!0,hideDescriptionOverflow:!0}));let b,g;function x($,D=!1){y.value&&y.value.label!==$&&y.value.value!==$&&(v.value=null),g!==void 0&&(clearTimeout(g),g=void 0),$===""?a.value=!1:(u.value=!0,l["search-results-pending"]&&(g=setTimeout(()=>{p.value&&(a.value=!0),c.value=!0},ao))),b!==void 0&&(clearTimeout(b),b=void 0);const _=()=>{o("input",$)};D?_():b=setTimeout(()=>{_()},e.debounceInterval)}function V($){var D;if($===we){v.value=null,f.value=m.value;return}v.value=$,$!==null&&(f.value=y.value?(D=y.value.label)!=null?D:String(y.value.value):"")}function F(){p.value=!0,(m.value||c.value)&&(a.value=!0)}function P(){p.value=!1,a.value=!1}function L($){const G=$,{id:D}=G,_=re(G,["id"]);if(_.value===we){o("search-result-click",{searchResult:null,index:e.searchResults.length,numberOfResults:e.searchResults.length});return}K(_)}function K($){const D={searchResult:$,index:e.searchResults.findIndex(_=>_.value===$.value),numberOfResults:e.searchResults.length};o("search-result-click",D)}function q($){var D;if($.value===we){f.value=m.value;return}f.value=$.value?(D=$.label)!=null?D:String($.value):""}function j($){var D;a.value=!1,(D=d.value)==null||D.clearActive(),L($)}function oe($){if(y.value)K(y.value),$.stopPropagation(),window.location.assign(y.value.url),$.preventDefault();else{const D={searchResult:null,index:-1,numberOfResults:e.searchResults.length};o("submit",D)}}function fe($){if(!d.value||!m.value||$.key===" ")return;const D=d.value.getHighlightedMenuItem(),_=d.value.getHighlightedViaKeyboard();switch($.key){case"Enter":D&&(D.value===we&&_?window.location.assign(e.searchFooterUrl):d.value.delegateKeyNavigation($,{prevent:!1})),a.value=!1;break;case"Tab":a.value=!1;break;default:d.value.delegateKeyNavigation($);break}}return t.onMounted(()=>{e.initialInputValue&&x(e.initialInputValue,!0)}),t.watch(t.toRef(e,"searchResults"),()=>{m.value=f.value.trim(),p.value&&u.value&&m.value.length>0&&(a.value=!0),g!==void 0&&(clearTimeout(g),g=void 0),u.value=!1,c.value=!1}),{form:i,menu:d,menuId:s,highlightedId:h,selection:v,menuMessageClass:C,footer:w,asSearchResult:M,inputValue:f,searchQuery:m,expanded:a,showPending:c,rootClasses:E,rootStyle:I,otherAttrs:A,menuConfig:N,onUpdateInputValue:x,onUpdateMenuSelection:V,onFocus:F,onBlur:P,onSearchResultClick:L,onSearchResultKeyboardNavigation:q,onSearchFooterClick:j,onSubmit:oe,onKeydown:fe,MenuFooterValue:we,articleIcon:On,translatedSearchResultsLabel:r}},methods:{focus(){this.$refs.searchInput.focus()}}}),Ji=["id","action"],Zi={class:"cdx-typeahead-search__menu-message__text"},er={class:"cdx-typeahead-search__menu-message__text"},tr=["href","onClickCapture"],nr={class:"cdx-menu-item__text cdx-typeahead-search__search-footer__text"},or={class:"cdx-typeahead-search__search-footer__query"};function lr(e,n,o,l,i,d){const s=t.resolveComponent("cdx-icon"),r=t.resolveComponent("cdx-menu"),a=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]=(...u)=>e.onSubmit&&e.onSubmit(...u))},[t.createVNode(a,t.mergeProps({ref:"searchInput",modelValue:e.inputValue,"onUpdate:modelValue":n[3]||(n[3]=u=>e.inputValue=u),"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(r,t.mergeProps({id:e.menuId,ref:"menu",expanded:e.expanded,"onUpdate:expanded":n[0]||(n[0]=u=>e.expanded=u),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]=u=>e.onSearchResultClick(e.asSearchResult(u))),onMenuItemKeyboardNavigation:e.onSearchResultKeyboardNavigation,onLoadMore:n[2]||(n[2]=u=>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",Zi,[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",er,[t.renderSlot(e.$slots,"search-no-results-text")])],2)]),default:t.withCtx(({menuItem:u,active:c})=>[u.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":c}]),href:e.asSearchResult(u).url,onClickCapture:t.withModifiers(p=>e.onSearchFooterClick(e.asSearchResult(u)),["stop"])},[t.createVNode(s,{class:"cdx-menu-item__thumbnail cdx-typeahead-search__search-footer__icon",icon:e.articleIcon},null,8,["icon"]),t.createElementVNode("span",nr,[t.renderSlot(e.$slots,"search-footer-text",{searchQuery:e.searchQuery},()=>[t.createElementVNode("strong",or,t.toDisplayString(e.searchQuery),1)])])],42,tr)):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,Ji)],6)}const ar=z(Xi,[["render",lr]]);exports.CdxAccordion=Io;exports.CdxButton=pe;exports.CdxButtonGroup=No;exports.CdxCard=Po;exports.CdxCheckbox=Ht;exports.CdxChipInput=Ut;exports.CdxCombobox=Ta;exports.CdxDialog=qa;exports.CdxField=os;exports.CdxIcon=Q;exports.CdxInfoChip=ds;exports.CdxLabel=Ne;exports.CdxLookup=fs;exports.CdxMenu=Ce;exports.CdxMenuButton=Cs;exports.CdxMenuItem=Qt;exports.CdxMessage=pn;exports.CdxMultiselectLookup=Bs;exports.CdxProgressBar=st;exports.CdxRadio=As;exports.CdxSearchInput=fn;exports.CdxSearchResultTitle=jt;exports.CdxSelect=mn;exports.CdxTab=hn;exports.CdxTable=ki;exports.CdxTabs=Li;exports.CdxTextArea=zi;exports.CdxTextInput=Qe;exports.CdxThumbnail=ot;exports.CdxToggleButton=ct;exports.CdxToggleButtonGroup=Hi;exports.CdxToggleSwitch=Qi;exports.CdxTooltip=Yi;exports.CdxTypeaheadSearch=ar;exports.TableRowIdentifier=Oe;exports.stringHelpers=bl;exports.useComputedDirection=Ee;exports.useComputedDisabled=lt;exports.useComputedLanguage=Nt;exports.useFieldData=te;exports.useFloatingMenu=Ie;exports.useGeneratedId=U;exports.useI18n=W;exports.useIntersectionObserver=ze;exports.useModelWrapper=ee;exports.useResizeObserver=cn;exports.useSlotContents=Ue;exports.useSplitAttributes=ne;exports.useWarnOnce=qe;