R?O-R:0}function M(y){if(!i.value||!r.value||!a.value)return;const b=y==="next"&&d.value==="ltr"||y==="prev"&&d.value==="rtl"?1:-1;let E=0,N=y==="next"?i.value.firstElementChild:i.value.lastElementChild;for(;N;){const O=y==="next"?N.nextElementSibling:N.previousElementSibling;if(E=L(N),Math.sign(E)===b){O&&Math.abs(E)<.25*i.value.clientWidth&&(E=L(O));break}N=O}i.value.scrollBy({left:E,behavior:"smooth"}),D()}return t.watch(p,()=>{if(h.value===void 0||!i.value||!r.value||!a.value)return;const y=document.getElementById("".concat(h.value,"-label"));y&&i.value.scrollBy({left:L(y),behavior:"smooth"})}),{activeTab:p,activeTabIndex:m,activeTabId:h,currentDirection:d,rootElement:l,tabListElement:i,prevScroller:r,nextScroller:a,rootClasses:x,tabNames:f,tabsData:c,firstLabelVisible:$,lastLabelVisible:B,assignTemplateRefForTabButton:A,scrollTabs:M,focusActiveTab:D,cdxIconPrevious:It,cdxIconNext:St}},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())}}}),Bi={class:"cdx-tabs__header"},Si={ref:"prevScroller",class:"cdx-tabs__prev-scroller"},Ii={ref:"tabListElement",class:"cdx-tabs__list",role:"tablist"},Vi=["id","disabled","aria-controls","aria-selected","tabindex","onClick","onKeyup"],xi={ref:"nextScroller",class:"cdx-tabs__next-scroller"},Ei={class:"cdx-tabs__content"};function Ni(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",Bi,[t.withDirectives(t.createElementVNode("div",Si,[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",Ii,[(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,Vi))),128))],512),t.withDirectives(t.createElementVNode("div",xi,[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",Ei,[t.renderSlot(e.$slots,"default")])],2)}const Ai=z($i,[["render",Ni]]),Mi=X(ue),Di=t.defineComponent({name:"CdxTextArea",components:{CdxIcon:G},inheritAttrs:!1,props:{modelValue:{type:String,default:""},status:{type:String,default:"default",validator:Mi},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=ne(t.toRef(e,"modelValue"),o),i=n.id,{computedDisabled:r,computedStatus:a,computedInputId:d}=oe(t.toRef(e,"disabled"),t.toRef(e,"status"),i),s=t.inject(Pe,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:f,otherAttrs:m}=le(n,u),h=t.computed(()=>{const B=m.value,{id:w}=B;return pe(B,["id"])}),g=t.ref();function k(){g.value&&e.autosize&&(g.value.style.height="auto",g.value.style.height="".concat(g.value.scrollHeight,"px"))}return{rootClasses:p,rootStyle:f,wrappedModel:l,computedDisabled:r,computedInputId:d,descriptionId:s,textareaClasses:c,otherAttrsMinusId:h,textarea:g,onInput:k}}}),Li=["id","aria-describedby","disabled"];function Ti(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,Li),[[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 Ri=z(Di,[["render",Ti]]),vi=t.defineComponent({name:"CdxToggleButtonGroup",components:{CdxIcon:G,CdxToggleButton:yt},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:r,onKeydown:a}=zt(t.toRef(e,"buttons"));function d(c){return Array.isArray(e.modelValue)?e.modelValue.indexOf(c.value)!==-1:e.modelValue!==null?e.modelValue===c.value:!1}function s(c,u){if(Array.isArray(e.modelValue)){const p=e.modelValue.indexOf(c.value)!==-1;u&&!p?n("update:modelValue",e.modelValue.concat(c.value)):!u&&p&&n("update:modelValue",e.modelValue.filter(f=>f!==c.value))}else u&&e.modelValue!==c.value&&n("update:modelValue",c.value)}return{rootElement:o,assignTemplateRef:l,onFocus:i,onBlur:r,onKeydown:a,getButtonLabel:Ot,isSelected:d,onUpdate:s}}}),Fi={ref:"rootElement",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",Fi,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.buttons,(s,c)=>(t.openBlock(),t.createBlock(d,{key:s.value,ref_for:!0,ref:u=>e.assignTemplateRef(u,c),"model-value":e.isSelected(s),disabled:s.disabled||e.disabled,"aria-label":s.ariaLabel,"onUpdate:modelValue":u=>e.onUpdate(s,u),onFocus:u=>e.onFocus(c),onBlur:e.onBlur,onKeydown:e.onKeydown},{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","onFocus","onBlur","onKeydown"]))),128))],512)}const zi=z(vi,[["render",Oi]]),Ki=t.defineComponent({name:"CdxToggleSwitch",components:{CdxLabel:Te},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;dt((h=o.default)==null?void 0:h.call(o),l,"CdxToggleSwitch");const i=t.ref(),r=j("toggle-switch"),a=j("description"),d=t.computed(()=>({"cdx-toggle-switch--align-switch":e.alignSwitch})),{rootClasses:s,rootStyle:c,otherAttrs:u}=le(l,d),{computedDisabled:p}=oe(t.toRef(e,"disabled")),f=ne(t.toRef(e,"modelValue"),n);return{input:i,inputId:r,descriptionId:a,rootClasses:s,rootStyle:c,otherAttrs:u,computedDisabled:p,wrappedModel:f,clickInput:()=>{i.value.click()}}}}),_i=["id","aria-describedby","value","disabled"],Pi=t.createElementVNode("span",{class:"cdx-toggle-switch__switch"},[t.createElementVNode("span",{class:"cdx-toggle-switch__switch__grip"})],-1);function Hi(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,_i),[[t.vModelCheckbox,e.wrappedModel]]),Pi,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 Ui=z(Ki,[["render",Hi]]);class qi{constructor(n,o){he(this,"referenceElement");he(this,"tooltipElement");he(this,"textContent");he(this,"placement");he(this,"autoUpdateCleanup");he(this,"referenceElementHandlers");he(this,"tooltipElementHandlers");he(this,"escapeHandler");he(this,"timeoutId");var r,a;const l=n.ownerDocument,i=j("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=un(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(){fn(this.referenceElement,this.tooltipElement,{placement:this.placement,middleware:[Zt(4),pn(),ka(),bt()]}).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 ji={mounted(e,{value:n,arg:o}){e.tooltip=new qi(e,{textContent:String(n),placement:o})},beforeUnmount(e){e.tooltip&&e.tooltip.remove()}},Wi=t.defineComponent({name:"CdxTypeaheadSearch",components:{CdxIcon:G,CdxMenu:Be,CdxSearchInput:wn},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:to},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=j("typeahead-search-menu"),d=W("cdx-typeahead-search-search-results-label","Search results"),s=t.ref(!1),c=t.ref(!1),u=t.ref(!1),p=t.ref(!1),f=t.ref(e.initialInputValue),m=t.ref(""),h=t.computed(()=>{var S,T;return(T=(S=r.value)==null?void 0:S.getHighlightedMenuItem())==null?void 0:T.id}),g=t.ref(null),k=t.computed(()=>({"cdx-typeahead-search__menu-message--has-thumbnail":e.showThumbnail})),w=t.computed(()=>e.searchResults.find(S=>S.value===g.value)),$=t.computed(()=>e.searchFooterUrl?{value:Ie,url:e.searchFooterUrl}:void 0),B=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:A,rootStyle:x,otherAttrs:D}=le(n,B);function L(S){return S}const M=t.computed(()=>({visibleItemLimit:e.visibleItemLimit,showThumbnail:e.showThumbnail,boldLabel:!0,hideDescriptionOverflow:!0}));let y,b;function E(S,T=!1){w.value&&w.value.label!==S&&w.value.value!==S&&(g.value=null),b!==void 0&&(clearTimeout(b),b=void 0),S===""?s.value=!1:(c.value=!0,l["search-results-pending"]&&(b=setTimeout(()=>{p.value&&(s.value=!0),u.value=!0},no))),y!==void 0&&(clearTimeout(y),y=void 0);const U=()=>{o("input",S)};T?U():y=setTimeout(()=>{U()},e.debounceInterval)}function N(S){var T;if(S===Ie){g.value=null,f.value=m.value;return}g.value=S,S!==null&&(f.value=w.value?(T=w.value.label)!=null?T:String(w.value.value):"")}function O(){p.value=!0,(m.value||u.value)&&(s.value=!0)}function P(){p.value=!1,s.value=!1}function R(S){const J=S,{id:T}=J,U=pe(J,["id"]);if(U.value===Ie){o("search-result-click",{searchResult:null,index:e.searchResults.length,numberOfResults:e.searchResults.length});return}_(U)}function _(S){const T={searchResult:S,index:e.searchResults.findIndex(U=>U.value===S.value),numberOfResults:e.searchResults.length};o("search-result-click",T)}function Q(S){var T;if(S.value===Ie){f.value=m.value;return}f.value=S.value?(T=S.label)!=null?T:String(S.value):""}function Y(S){var T;s.value=!1,(T=r.value)==null||T.clearActive(),R(S)}function re(S){if(w.value)_(w.value),S.stopPropagation(),window.location.assign(w.value.url),S.preventDefault();else{const T={searchResult:null,index:-1,numberOfResults:e.searchResults.length};o("submit",T)}}function we(S){if(!r.value||!m.value||S.key===" ")return;const T=r.value.getHighlightedMenuItem(),U=r.value.getHighlightedViaKeyboard();switch(S.key){case"Enter":T&&(T.value===Ie&&U?window.location.assign(e.searchFooterUrl):r.value.delegateKeyNavigation(S,{prevent:!1})),s.value=!1;break;case"Tab":s.value=!1;break;default:r.value.delegateKeyNavigation(S);break}}return t.onMounted(()=>{e.initialInputValue&&E(e.initialInputValue,!0)}),t.watch(t.toRef(e,"searchResults"),()=>{m.value=f.value.trim(),p.value&&c.value&&m.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:h,selection:g,menuMessageClass:k,footer:$,asSearchResult:L,inputValue:f,searchQuery:m,expanded:s,showPending:u,rootClasses:A,rootStyle:x,otherAttrs:D,menuConfig:M,onUpdateInputValue:E,onUpdateMenuSelection:N,onFocus:O,onBlur:P,onSearchResultClick:R,onSearchResultKeyboardNavigation:Q,onSearchFooterClick:Y,onSubmit:re,onKeydown:we,MenuFooterValue:Ie,articleIcon:vn,translatedSearchResultsLabel:d}},methods:{focus(){this.$refs.searchInput.focus()}}}),Qi=["id","action"],Gi={class:"cdx-typeahead-search__menu-message__text"},Yi={class:"cdx-typeahead-search__menu-message__text"},Xi=["href","onClickCapture"],Ji={class:"cdx-menu-item__text cdx-typeahead-search__search-footer__text"},Zi={class:"cdx-typeahead-search__search-footer__query"};function er(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",Gi,[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",Yi,[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",Ji,[t.renderSlot(e.$slots,"search-footer-text",{searchQuery:e.searchQuery},()=>[t.createElementVNode("strong",Zi,t.toDisplayString(e.searchQuery),1)])])],42,Xi)):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,Qi)],6)}const tr=z(Wi,[["render",er]]);C.CdxAccordion=Bo,C.CdxButton=fe,C.CdxButtonGroup=xo,C.CdxCard=Oo,C.CdxCheckbox=Kt,C.CdxChipInput=_t,C.CdxCombobox=Ma,C.CdxDialog=_a,C.CdxField=Za,C.CdxIcon=G,C.CdxInfoChip=as,C.CdxLabel=Te,C.CdxLookup=ds,C.CdxMenu=Be,C.CdxMenuButton=gs,C.CdxMenuItem=qt,C.CdxMessage=Cn,C.CdxMultiselectLookup=ws,C.CdxProgressBar=ut,C.CdxRadio=xs,C.CdxSearchInput=wn,C.CdxSearchResultTitle=Ut,C.CdxSelect=kn,C.CdxTab=$n,C.CdxTable=yi,C.CdxTabs=Ai,C.CdxTextArea=Ri,C.CdxTextInput=Ye,C.CdxThumbnail=it,C.CdxToggleButton=yt,C.CdxToggleButtonGroup=zi,C.CdxToggleSwitch=Ui,C.CdxTooltip=ji,C.CdxTypeaheadSearch=tr,C.TableRowIdentifier=He,C.stringHelpers=hl,C.useComputedDirection=Le,C.useComputedDisabled=rt,C.useComputedLanguage=xt,C.useFieldData=oe,C.useFloatingMenu=Ae,C.useGeneratedId=j,C.useI18n=W,C.useIntersectionObserver=Qe,C.useModelWrapper=ne,C.useResizeObserver=yn,C.useSlotContents=Ue,C.useSplitAttributes=le,C.useWarnOnce=qe,Object.defineProperty(C,Symbol.toStringTag,{value:"Module"})});