@dialpad/dialtone-vue 3.93.0 → 3.94.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/CHANGELOG.json +1 -1
  2. package/CHANGELOG.md +38 -0
  3. package/dist/component-documentation.json +1 -1
  4. package/dist/dialtone-vue.cjs +5 -5
  5. package/dist/dialtone-vue.js +2228 -3725
  6. package/dist/directives.cjs +1 -1
  7. package/dist/directives.js +4 -3
  8. package/dist/emoji-2ba641cd.cjs +1 -0
  9. package/dist/{emoji-ee056efb.js → emoji-fa0ee549.js} +1073 -17030
  10. package/dist/emoji.cjs +1 -1
  11. package/dist/emoji.js +31 -29
  12. package/dist/message_input-104c4579.js +3619 -0
  13. package/dist/message_input-4d2df135.cjs +2 -0
  14. package/dist/message_input.cjs +1 -1
  15. package/dist/message_input.js +18 -4
  16. package/dist/style.css +1 -1
  17. package/dist/tooltip-0cdd1500.js +738 -0
  18. package/dist/tooltip-e88ebb8c.cjs +1 -0
  19. package/dist/types/common/dates.d.ts.map +1 -1
  20. package/dist/types/common/storybook_utils.d.ts +1 -1
  21. package/dist/types/common/storybook_utils.d.ts.map +1 -1
  22. package/dist/types/components/avatar/avatar.vue.d.ts +1 -1
  23. package/dist/types/components/button/button.vue.d.ts +1 -1
  24. package/dist/types/components/chip/chip.vue.d.ts +1 -1
  25. package/dist/types/components/combobox/combobox.vue.d.ts +1 -1
  26. package/dist/types/components/datepicker/modules/month-year-picker.vue.d.ts +1 -1
  27. package/dist/types/components/description_list/description_list.vue.d.ts +98 -0
  28. package/dist/types/components/description_list/description_list.vue.d.ts.map +1 -0
  29. package/dist/types/components/description_list/description_list_constants.d.ts +2 -0
  30. package/dist/types/components/description_list/description_list_constants.d.ts.map +1 -0
  31. package/dist/types/components/description_list/description_list_validators.d.ts +2 -0
  32. package/dist/types/components/description_list/description_list_validators.d.ts.map +1 -0
  33. package/dist/types/components/description_list/index.d.ts +3 -0
  34. package/dist/types/components/description_list/index.d.ts.map +1 -0
  35. package/dist/types/components/icon/icon.vue.d.ts +16 -2
  36. package/dist/types/components/icon/icon.vue.d.ts.map +1 -1
  37. package/dist/types/components/icon/icon_constants.d.ts +0 -2
  38. package/dist/types/components/icon/icon_constants.d.ts.map +1 -1
  39. package/dist/types/components/input/input.vue.d.ts +1 -1
  40. package/dist/types/components/modal/modal.vue.d.ts +1 -1
  41. package/dist/types/components/notice/notice.vue.d.ts +1 -1
  42. package/dist/types/components/radio/radio.vue.d.ts +1 -1
  43. package/dist/types/components/root_layout/root_layout.vue.d.ts +2 -2
  44. package/dist/types/components/scroller/modules/core_scroller.vue.d.ts +1 -1
  45. package/dist/types/components/scroller/modules/scroller_item.vue.d.ts +1 -1
  46. package/dist/types/components/tabs/tab.vue.d.ts +1 -1
  47. package/dist/types/components/toast/toast.vue.d.ts +2 -2
  48. package/dist/types/components/tooltip/tooltip.vue.d.ts +1 -1
  49. package/dist/types/index.d.ts +1 -0
  50. package/dist/types/recipes/comboboxes/combobox_multi_select/combobox_multi_select.vue.d.ts +1 -1
  51. package/dist/types/recipes/comboboxes/combobox_with_popover/combobox_with_popover.vue.d.ts +1 -1
  52. package/dist/types/recipes/conversation_view/message_input/message_input.vue.d.ts +32 -0
  53. package/dist/types/recipes/conversation_view/message_input/message_input.vue.d.ts.map +1 -1
  54. package/package.json +13 -6
  55. package/dist/emoji-125c2250.cjs +0 -1
  56. package/dist/message_input-08860f81.js +0 -15858
  57. package/dist/message_input-ab3be145.cjs +0 -93
  58. package/dist/tooltip-02b802bc.js +0 -2577
  59. package/dist/tooltip-3390fc3b.cjs +0 -25
@@ -1,5 +1,5 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _=require("./message_input-ab3be145.cjs"),h=require("./emoji-125c2250.cjs"),e=require("vue"),u=require("./tooltip-3390fc3b.cjs"),st=require("./emoji.cjs"),We={default:"",info:"d-badge--info",success:"d-badge--success",warning:"d-badge--warning",critical:"d-badge--critical",bulletin:"d-badge--bulletin",ai:"d-badge--ai"},Ke={label:"",count:"d-badge--count"},Ye={"black-400":"d-badge--decorate-black-400","black-500":"d-badge--decorate-black-500","black-900":"d-badge--decorate-black-900","red-200":"d-badge--decorate-red-200","red-300":"d-badge--decorate-red-300","red-400":"d-badge--decorate-red-400","purple-200":"d-badge--decorate-purple-200","purple-300":"d-badge--decorate-purple-300","purple-400":"d-badge--decorate-purple-400","purple-500":"d-badge--decorate-purple-500","blue-200":"d-badge--decorate-blue-200","blue-300":"d-badge--decorate-blue-300","blue-400":"d-badge--decorate-blue-400","green-300":"d-badge--decorate-green-300","green-400":"d-badge--decorate-green-400","green-500":"d-badge--decorate-green-500","gold-300":"d-badge--decorate-gold-300","gold-400":"d-badge--decorate-gold-400","gold-500":"d-badge--decorate-gold-500","magenta-200":"d-badge--decorate-magenta-200","magenta-300":"d-badge--decorate-magenta-300","magenta-400":"d-badge--decorate-magenta-400"},Dn={name:"DtBadge",components:{DtIcon:h.DtIcon},props:{iconLeft:{type:String,default:""},iconRight:{type:String,default:""},text:{type:String,default:""},kind:{type:String,default:"label",validator:t=>Object.keys(Ke).includes(t)},type:{type:String,default:"default",validator:t=>Object.keys(We).includes(t)},decoration:{type:String,default:void 0,validator:t=>Object.keys(Ye).includes(t)},labelClass:{type:[String,Array,Object],default:""}},data(){return{BADGE_TYPE_MODIFIERS:We,BADGE_KIND_MODIFIERS:Ke,BADGE_DECORATION_MODIFIERS:Ye}},computed:{hasIcons(){return this.iconLeft!==""||this.iconRight!==""}},watch:{$props:{immediate:!0,deep:!0,handler(){this.validateProps()}}},methods:{validateProps(){this.validateTypePropCombination(),this.validateDecorationPropCombination()},validateTypePropCombination(){this.type==="ai"&&this.kind==="count"&&console.error("DtBadge error: type: 'ai' with kind: 'count' is an invalid combination.")},validateDecorationPropCombination(){this.decoration&&((this.kind!=="label"||this.type!=="default")&&console.error("DtBadge error: decoration prop can only be used with kind: 'label' and type: 'default'."),this.hasIcons&&console.error("DtBadge error: decoration prop cannot be used with iconLeft or iconRight."))}}},In={key:0,class:"d-badge__decorative"},Tn={key:1,class:"d-badge__icon-left"},On={key:2,class:"d-badge__icon-right"};function Nn(t,a,n,r,i,o){const s=e.resolveComponent("dt-icon");return e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(["d-badge",i.BADGE_TYPE_MODIFIERS[n.type],i.BADGE_KIND_MODIFIERS[n.kind],i.BADGE_DECORATION_MODIFIERS[n.decoration]]),"data-qa":"dt-badge"},[n.decoration?(e.openBlock(),e.createElementBlock("span",In)):e.createCommentVNode("",!0),n.iconLeft||n.type==="ai"?(e.openBlock(),e.createElementBlock("span",Tn,[e.createVNode(s,{name:n.iconLeft||"dialpad-ai",size:"200"},null,8,["name"])])):e.createCommentVNode("",!0),e.createElementVNode("span",{class:e.normalizeClass(["d-badge__label",n.labelClass])},[e.renderSlot(t.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(n.text),1)])],2),n.iconRight?(e.openBlock(),e.createElementBlock("span",On,[e.createVNode(s,{name:n.iconRight,size:"200"},null,8,["name"])])):e.createCommentVNode("",!0)],2)}const lt=u._export_sfc(Dn,[["render",Nn]]),Ln={name:"DtBanner",components:{DtNoticeIcon:_.DtNoticeIcon,DtNoticeContent:_.DtNoticeContent,DtNoticeAction:_.DtNoticeAction},mixins:[_.Modal,_.SrOnlyCloseButtonMixin],props:{titleId:{type:String,default(){return u.utils.getUniqueString()}},contentId:{type:String,default(){return u.utils.getUniqueString()}},title:{type:String,default:""},important:{type:Boolean,default:!1},pinned:{type:Boolean,default:!1},kind:{type:String,default:"base",validate(t){return _.NOTICE_KINDS.includes(t)}},closeButtonProps:{type:Object,default:()=>({})},hideClose:{type:Boolean,default:!1},hideIcon:{type:Boolean,default:!1},dialogClass:{type:String,default:""},backgroundImage:{type:String,default:""},backgroundSize:{type:String,default:"cover"}},emits:["close"],computed:{role(){return this.important?"alertdialog":"status"},bannerClass(){return["d-banner",{error:"d-banner--error",info:"d-banner--info",success:"d-banner--success",warning:"d-banner--warning",base:"d-banner--base"}[this.kind],{"d-banner--important":this.important,"d-banner--pinned":this.pinned}]},bannerBackgroundImage(){return this.backgroundImage===""?null:`background-image: url(${this.backgroundImage});
2
- background-size: ${this.backgroundSize};`}},mounted(){this.important&&this.focusFirstElement()},methods:{trapFocus(t){this.important&&this.focusTrappedTabPress(t)}}},Bn=["role","aria-labelledby","aria-describedby"];function xn(t,a,n,r,i,o){const s=e.resolveComponent("dt-notice-icon"),d=e.resolveComponent("dt-notice-content"),l=e.resolveComponent("dt-notice-action");return e.openBlock(),e.createElementBlock("aside",{class:e.normalizeClass(o.bannerClass),style:e.normalizeStyle(o.bannerBackgroundImage),onKeydown:a[1]||(a[1]=e.withKeys((...m)=>o.trapFocus&&o.trapFocus(...m),["tab"]))},[e.createElementVNode("div",{class:e.normalizeClass(["d-banner__dialog",n.dialogClass]),role:o.role,"aria-labelledby":n.titleId,"aria-describedby":n.contentId},[n.hideIcon?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(s,{key:0,kind:n.kind},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"icon")]),_:3},8,["kind"])),e.createVNode(d,{"title-id":n.titleId,"content-id":n.contentId,title:n.title},{titleOverride:e.withCtx(()=>[e.renderSlot(t.$slots,"titleOverride")]),default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},8,["title-id","content-id","title"]),e.createVNode(l,{"hide-close":n.hideClose,"close-button-props":n.closeButtonProps,"visually-hidden-close":t.visuallyHiddenClose,"visually-hidden-close-label":t.visuallyHiddenCloseLabel,onClose:a[0]||(a[0]=m=>t.$emit("close"))},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"action")]),_:3},8,["hide-close","close-button-props","visually-hidden-close","visually-hidden-close-label"])],10,Bn)],38)}const An=u._export_sfc(Ln,[["render",xn]]),qt="d-breadcrumbs__item--selected",Ht="d-breadcrumbs--inverted",Mn={name:"DtBreadcrumbItem",components:{DtLink:_.DtLink},inheritAttrs:!1,props:{inverted:{type:Boolean,default:!1},selected:{type:Boolean,default:!1},label:{type:String,default:""}},data(){return{BREADCRUMB_ITEM_SELECTED_MODIFIER:qt}},computed:{linkKind(){return this.inverted?h.INVERTED:h.MUTED},ariaCurrent(){return this.selected?"location":void 0}}};function Vn(t,a,n,r,i,o){const s=e.resolveComponent("dt-link");return e.openBlock(),e.createElementBlock("li",{"data-qa":"dt-breadcrumb-item",class:e.normalizeClass(["d-breadcrumbs__item",{[i.BREADCRUMB_ITEM_SELECTED_MODIFIER]:n.selected}])},[e.createVNode(s,e.mergeProps({kind:o.linkKind,"aria-current":o.ariaCurrent,"data-qa":"breadcrumb-item"},t.$attrs),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(n.label),1)])]),_:3},16,["kind","aria-current"])],2)}const Ut=u._export_sfc(Mn,[["render",Vn]]),Rn={name:"DtBreadcrumbs",components:{DtBreadcrumbItem:Ut},props:{breadcrumbs:{type:Array,default:()=>[],validate(t){return t.every(({href:a,label:n})=>a!==void 0&&n!==void 0)}},inverted:{type:Boolean,default:!1},ariaLabel:{type:String,default:"breadcrumb"}},data(){return{BREADCRUMBS_INVERTED_MODIFIER:Ht}},methods:{getBreadcrumbItemKey(t){return`breadcrumbs-item-${t}-${u.utils.getUniqueString()}`}}},Pn=["aria-label"];function $n(t,a,n,r,i,o){const s=e.resolveComponent("dt-breadcrumb-item");return e.openBlock(),e.createElementBlock("nav",{"aria-label":n.ariaLabel,"data-qa":"dt-breadcrumbs",class:e.normalizeClass(["d-breadcrumbs",{[i.BREADCRUMBS_INVERTED_MODIFIER]:n.inverted}])},[e.createElementVNode("ol",null,[e.renderSlot(t.$slots,"default",{},()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.breadcrumbs,(d,l)=>(e.openBlock(),e.createBlock(s,e.mergeProps({key:o.getBreadcrumbItemKey(l),inverted:n.inverted},d),null,16,["inverted"]))),128))])])],10,Pn)}const zn=u._export_sfc(Rn,[["render",$n]]),je={start:"d-btn-group--start",end:"d-btn-group--end","space-between":"d-btn-group--space-between"},Fn={name:"DtButtonGroup",props:{alignment:{type:String,default:"start",validator:t=>Object.keys(je).includes(t)}},data(){return{BUTTON_GROUP_ALIGNMENT:je}}};function qn(t,a,n,r,i,o){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["d-btn-group",i.BUTTON_GROUP_ALIGNMENT[n.alignment]]),role:"group"},[e.renderSlot(t.$slots,"default")],2)}const Hn=u._export_sfc(Fn,[["render",qn]]),Un={name:"DtCard",props:{maxHeight:{type:String,default:null},containerClass:{type:[String,Array,Object],default:""},contentClass:{type:[String,Array,Object],default:""},headerClass:{type:[String,Array,Object],default:""},footerClass:{type:[String,Array,Object],default:""}},data(){return{hasSlotContent:u.hasSlotContent}}};function Wn(t,a,n,r,i,o){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["d-card",n.containerClass]),"data-qa":"dt-card"},[i.hasSlotContent(t.$slots.header)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["d-card__header",n.headerClass])},[e.renderSlot(t.$slots,"header")],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["d-card__content",n.contentClass]),style:e.normalizeStyle({"max-height":n.maxHeight})},[e.renderSlot(t.$slots,"content")],6),i.hasSlotContent(t.$slots.footer)?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["d-card__footer",n.footerClass])},[e.renderSlot(t.$slots,"footer")],2)):e.createCommentVNode("",!0)],2)}const Wt=u._export_sfc(Un,[["render",Wn]]),Kn={name:"DtCodeblock",props:{text:{type:String,required:!0}}},Yn={class:"d-d-block d-bgc-secondary d-ws-pre-wrap d-p8 d-ba d-bc-subtle d-bar8 d-fs-200 d-ff-mono d-lh-400 d-fc-secondary"};function jn(t,a,n,r,i,o){return e.openBlock(),e.createElementBlock("pre",null,[e.createTextVNode(" "),e.createElementVNode("code",Yn,e.toDisplayString(n.text),1),e.createTextVNode(`
3
- `)])}const Gn=u._export_sfc(Kn,[["render",jn]]),Zn={methods:{scrollElementIntoViewIfNeeded(t,a,n,r){t.scrollIntoViewIfNeeded?this.scrollIntoViewIfNeeded(t,a,n,r):this.scrollIntoView(t,"bottom",!1,n,r)},scrollElementIntoView(t,a,n,r){if(a==="center"){this.scrollIntoView(t,"center",!1,n,r);return}a===!1?this.scrollIntoView(t,"bottom",!1,n,r):this.scrollIntoView(t,"top",!1,n,r)},scrollIntoViewIfNeeded(t,a,n,r){const i=a?"center":void 0;this.scrollIntoView(t,i,!0,n,r)},scrollIntoView(t,a,n,r,i){if(!t||!t.parentElement)return;const o=t.offsetTop,s=i||t.parentElement,d=this._getScrollBounds(s),l=d.bottom-d.top,m=this._getElementHeight(t),p=o+m;let c=-1;switch(a){case"top":c=o;break;case"center":c=o+(m-l)/2;break;case"bottom":c=c=p-l;break;default:o-d.top<=l/2?c=o:c=p-l;break}this._setScrollTop(s,c,d,o,p,n,r)},_setScrollTop(t,a,n,r,i,o,s){n=n||this._getScrollBounds(t);const d=n.bottom-n.top;if(o&&this._inScrollBounds(r,i,n))if(r<n.top)a=r;else if(i>n.bottom)a=i-d;else return;s?t.scrollTo({top:a,behavior:s}):t.scrollTop=a},_getElementHeight(t){return t.getBoundingClientRect().height},_getScrollBounds(t){const a=this._getElementHeight(t),n=t.scrollTop;return{top:n,bottom:n+a}},_inScrollBounds(t,a,n){const r=a-t;return a<=n.bottom+3*r/4&&t>=n.top-r/4}}},Xn="listElementKey is required or the referenced element doesn't exist. Received listElement: ",dt=({listItemRole:t="option",indexKey:a="highlightIndex",idKey:n="highlightId",listElementKey:r="listRef",activeItemKey:i="",openMethod:o=null,afterHighlightMethod:s=null,beginningOfListMethod:d=null,endOfListMethod:l=null,scrollToOnHighlight:m=!0,focusOnKeyboardNavigation:p=!1}={})=>({mixins:[Zn],data(){return{[a]:-1,[n]:"",scrollToOnHighlight:m,focusOnKeyboardNavigation:p}},provide(){return{highlightId:()=>this[n]}},methods:{_getListElement(){var c;return((c=this[r]())==null?void 0:c.$el)||this[r]()},_itemsLength(){const c=this._getListItemNodes();return c===null?0:c.length},_getListItemNodes(){const c=this._getListElement();return c?Array.from(c.querySelectorAll(`[role="${t}"], #sr-only-close-button`)):(console.error(Xn,c),null)},onUpKey(){o&&this[o](!0),this[a]>0?this.setHighlightIndex(this[a]-1):d&&this[d](),this.scrollActiveItemIntoViewIfNeeded(),this.focusActiveItemIfNeeded()},onDownKey(){o&&this[o](!0),this[a]<this._itemsLength()-1?this.setHighlightIndex(this[a]+1):l&&this[l](),this.scrollActiveItemIntoViewIfNeeded(),this.focusActiveItemIfNeeded()},onHomeKey(){this.jumpToBeginning(),this.scrollActiveItemIntoViewIfNeeded(),this.focusActiveItemIfNeeded()},onEndKey(){this.jumpToEnd(),this.scrollActiveItemIntoViewIfNeeded(),this.focusActiveItemIfNeeded()},onNavigationKey(c){const g=this._getListItemNodes(),f=g.filter(I=>I.textContent.trim().toLowerCase().startsWith(c.toLowerCase()));if(f.length<=0)return;const b=f.findIndex(I=>this[a]===g.indexOf(I)),C=g.indexOf(b<f.length-1?f[b+1]:f[0]);this.setHighlightIndex(C),this.scrollActiveItemIntoViewIfNeeded(),this.focusActiveItemIfNeeded()},isValidLetter(c){return c.length>1?!1:c>="a"&&c<="z"||c>="A"&&c<="Z"},jumpToBeginning(){this.setHighlightIndex(0)},jumpToEnd(){this.setHighlightIndex(this._itemsLength()-1)},setHighlightIndex(c){this[a]=c,this[n]=this._getItemId(c),this._itemsLength()&&s&&this[s](c)},setHighlightId(c){this[n]=c,this[a]=this._getItemIndex(c),this._itemsLength()&&s&&this[s](this._getItemIndex(c))},_getItemIndex(c){const g=this._getListElement();return g?Array.from(g.querySelectorAll(`[role="${t}"], #sr-only-close-button`)).indexOf(g.querySelector(`#${c}`)):void 0},_getItemId(c){var f;const g=this._getListElement();if(g)return(f=g.querySelectorAll(`[role="${t}"], #sr-only-close-button`)[c])==null?void 0:f.id},scrollActiveItemIntoViewIfNeeded(){if(!this.scrollToOnHighlight)return;const c=this[i];if(c){const g=this._getListElement();this.scrollElementIntoViewIfNeeded(c,null,null,g)}},focusActiveItemIfNeeded(){if(!this.focusOnKeyboardNavigation)return;const c=this[i];c&&c.focus()}}}),Qn={name:"ComboboxLoadingList",components:{DtListItem:_.DtListItem,DtSkeleton:h.DtSkeleton}},Jn={class:"d-p0 d-mt8 d-hmx332 d-of-y-auto","aria-busy":"true"};function ea(t,a,n,r,i,o){const s=e.resolveComponent("dt-skeleton"),d=e.resolveComponent("dt-list-item");return e.openBlock(),e.createElementBlock("ol",Jn,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(7,l=>e.createVNode(d,{key:l,role:"option","navigation-type":"none"},{default:e.withCtx(()=>[e.createVNode(s,{"text-option":{type:"body"},offset:0})]),_:2},1024)),64))])}const Kt=u._export_sfc(Qn,[["render",ea]]);const ta={name:"ComboboxEmptyList",components:{DtListItem:_.DtListItem},props:{message:{type:String,required:!0},itemClass:{type:[String,Object,Array],default:""}}},na={class:"d-p0","data-qa":"dt-combobox-empty-list"};function aa(t,a,n,r,i,o){const s=e.resolveComponent("dt-list-item");return e.openBlock(),e.createElementBlock("ol",na,[e.renderSlot(t.$slots,"default",{},()=>[e.createVNode(s,{role:"option","navigation-type":"none",type:"custom",class:e.normalizeClass(["dt-empty-list-item",n.itemClass])},{default:e.withCtx(()=>[e.createElementVNode("span",null,e.toDisplayString(n.message),1)]),_:1},8,["class"])])])}const Yt=u._export_sfc(ta,[["render",aa]]),jt={EXTRA_SMALL:"xs",SMALL:"sm",DEFAULT:"md",LARGE:"lg",EXTRA_LARGE:"xl"},ra={name:"DtCombobox",components:{ComboboxLoadingList:Kt,ComboboxEmptyList:Yt},mixins:[dt({indexKey:"highlightIndex",idKey:"highlightId",listElementKey:"getListElement",afterHighlightMethod:"afterHighlight",beginningOfListMethod:"beginningOfListMethod",endOfListMethod:"endOfListMethod",activeItemKey:"activeItemEl"})],props:{label:{type:String,required:!0},labelVisible:{type:Boolean,default:!0},size:{type:String,default:null,validator:t=>Object.values(jt).includes(t)},description:{type:String,default:""},listId:{type:String,default(){return u.getUniqueString()}},onBeginningOfList:{type:Function,default:null},onEndOfList:{type:Function,default:null},showList:{type:Boolean,default:!1},listRenderedOutside:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},emptyList:{type:Boolean,default:!1},emptyStateMessage:{type:String,default:""},emptyStateClass:{type:[String,Object,Array],default:""},clickOnSelect:{type:Boolean,default:!1}},emits:["select","escape","highlight","opened"],data(){return{outsideRenderedListRef:null,hasSlotContent:u.hasSlotContent}},computed:{inputProps(){return{label:this.label,labelVisible:this.labelVisible,size:this.size,description:this.description,role:"combobox","aria-label":this.label,"aria-expanded":this.showList.toString(),"aria-owns":this.listId,"aria-haspopup":"listbox","aria-activedescendant":this.activeItemId,"aria-controls":this.listId}},listProps(){return{role:"listbox",id:this.listId,class:"d-ps-relative","aria-label":this.label}},beginningOfListMethod(){return this.onBeginningOfList||this.jumpToEnd},endOfListMethod(){return this.onEndOfList||this.jumpToBeginning},activeItemId(){if(!(!this.showList||this.highlightIndex<0||this.loading))return this.highlightId},activeItemEl(){return this.highlightId?this.getListElement().querySelector("#"+this.highlightId):""}},watch:{showList(t){this.listRenderedOutside||(this.setInitialHighlightIndex(),this.$emit("opened",t)),!t&&this.outsideRenderedListRef&&(this.outsideRenderedListRef.removeEventListener("mousemove",this.onMouseHighlight),this.outsideRenderedListRef=null)},loading(t){this.$nextTick(()=>{this.setInitialHighlightIndex()})},$props:{deep:!0,immediate:!0,handler(){this.validateEmptyListProps()}}},created(){this.validateEmptyListProps()},methods:{onMouseHighlight(t){if(this.loading)return;const a=t.target.closest("li");a&&this.highlightId!==a.id&&this.setHighlightId(a.id)},getListElement(){var t;return this.outsideRenderedListRef??((t=this.$refs.listWrapper)==null?void 0:t.querySelector(`#${this.listId}`))},clearHighlightIndex(){this.showList&&this.setHighlightIndex(-1)},afterHighlight(){this.loading||this.$emit("highlight",this.highlightIndex)},onEnterKey(){var t;this.loading||this.emptyList||this.highlightIndex>=0&&(this.$emit("select",this.highlightIndex),this.clickOnSelect&&((t=this.activeItemEl)==null||t.click()))},onEscapeKey(){this.$emit("escape")},onOpen(t,a){var n;this.outsideRenderedListRef=a,(n=this.outsideRenderedListRef)==null||n.addEventListener("mousemove",this.onMouseHighlight),this.$emit("opened",t),t&&this.setInitialHighlightIndex()},onKeyValidation(t,a){!this.showList||!this.getListElement()||this[a](t)},setInitialHighlightIndex(){this.showList&&this.$nextTick(()=>{this.setHighlightIndex(this.loading?-1:0)})},validateEmptyListProps(){this.$slots.emptyListItem||(this.emptyList&&!this.emptyStateMessage||!this.emptyList&&this.emptyStateMessage)&&console.error(`Invalid props: you must pass both props emptyList and emptyStateMessage to show the
4
- empty message.`)}}},oa={"data-qa":"dt-combobox-input-wrapper"};function ia(t,a,n,r,i,o){const s=e.resolveComponent("combobox-loading-list"),d=e.resolveComponent("combobox-empty-list");return e.openBlock(),e.createElementBlock("div",{onKeydown:[a[3]||(a[3]=e.withKeys(e.withModifiers(l=>o.onKeyValidation(l,"onEscapeKey"),["stop"]),["esc"])),a[4]||(a[4]=e.withKeys(e.withModifiers(l=>o.onKeyValidation(l,"onEnterKey"),["exact"]),["enter"])),a[5]||(a[5]=e.withKeys(e.withModifiers(l=>o.onKeyValidation(l,"onUpKey"),["stop","prevent"]),["up"])),a[6]||(a[6]=e.withKeys(e.withModifiers(l=>o.onKeyValidation(l,"onDownKey"),["stop","prevent"]),["down"])),a[7]||(a[7]=e.withKeys(e.withModifiers(l=>o.onKeyValidation(l,"onHomeKey"),["stop","prevent"]),["home"])),a[8]||(a[8]=e.withKeys(e.withModifiers(l=>o.onKeyValidation(l,"onEndKey"),["stop","prevent"]),["end"]))]},[e.createElementVNode("div",oa,[e.renderSlot(t.$slots,"input",{inputProps:o.inputProps})]),n.showList?(e.openBlock(),e.createElementBlock("div",{key:0,ref:"listWrapper","data-qa":"dt-combobox-list-wrapper",onMouseleave:a[0]||(a[0]=(...l)=>o.clearHighlightIndex&&o.clearHighlightIndex(...l)),onFocusout:a[1]||(a[1]=(...l)=>o.clearHighlightIndex&&o.clearHighlightIndex(...l)),onMousemoveCapture:a[2]||(a[2]=(...l)=>o.onMouseHighlight&&o.onMouseHighlight(...l))},[n.loading&&!n.listRenderedOutside?(e.openBlock(),e.createBlock(s,e.normalizeProps(e.mergeProps({key:0},o.listProps)),null,16)):n.emptyList&&(n.emptyStateMessage||i.hasSlotContent(t.$slots.emptyListItem))&&!n.listRenderedOutside?(e.openBlock(),e.createBlock(d,e.mergeProps({key:1},o.listProps,{message:n.emptyStateMessage,"item-class":n.emptyStateClass}),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"emptyListItem")]),_:3},16,["message","item-class"])):e.renderSlot(t.$slots,"list",{key:2,listProps:o.listProps,opened:o.onOpen,clearHighlightIndex:o.clearHighlightIndex})],544)):e.createCommentVNode("",!0)],32)}const Gt=u._export_sfc(ra,[["render",ia]]);const sa={name:"DtCollapsibleLazyShow",inheritAttrs:!1,props:{show:{type:Boolean,default:null},appear:{type:Boolean,default:!1},elementType:{type:String,default:"div"}},data(){return{initialized:!!this.show}},computed:{isCSSEnabled(){return process.env.NODE_ENV!=="test"}},watch:{show:function(t){!t||this.initialized||(this.initialized=!0)}},methods:{beforeEnter(t){requestAnimationFrame(()=>{t.style.height||(t.style.height="0px"),t.style.display=null})},enter(t){requestAnimationFrame(()=>{requestAnimationFrame(()=>{t.style.height=`${t.scrollHeight}px`})})},afterEnter(t){t.style.height=null},beforeLeave(t){requestAnimationFrame(()=>{t.style.height||(t.style.height=`${t.offsetHeight}px`)})},leave(t){requestAnimationFrame(()=>{requestAnimationFrame(()=>{t.style.height="0px"})})},afterLeave(t){t.style.height=null}}};function la(t,a,n,r,i,o){return e.openBlock(),e.createBlock(e.Transition,e.mergeProps({appear:n.appear,"enter-active-class":"enter-active","leave-active-class":"leave-active"},t.$attrs,{css:o.isCSSEnabled,onBeforeEnter:o.beforeEnter,onEnter:o.enter,onAfterEnter:o.afterEnter,onBeforeLeave:o.beforeLeave,onLeave:o.leave,onAfterLeave:o.afterLeave}),{default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.elementType),e.normalizeProps(e.guardReactiveProps(t.$attrs)),{default:e.withCtx(()=>[i.initialized?e.renderSlot(t.$slots,"default",{key:0}):e.createCommentVNode("",!0)]),_:3},16)),[[e.vShow,n.show]])]),_:3},16,["appear","css","onBeforeEnter","onEnter","onAfterEnter","onBeforeLeave","onLeave","onAfterLeave"])}const da=u._export_sfc(sa,[["render",la]]),ca={name:"DtCollapsible",components:{DtButton:h.DtButton,DtCollapsibleLazyShow:da,DtLazyShow:u.DtLazyShow,DtIcon:h.DtIcon},props:{anchorText:{type:String,default:null},open:{type:Boolean,default:null},id:{type:String,default(){return u.getUniqueString()}},elementType:{type:String,default:"div"},contentElementType:{type:String,default:"div"},anchorClass:{type:[String,Array,Object],default:null},contentClass:{type:[String,Array,Object],default:null},maxWidth:{type:String,default:null},maxHeight:{type:String,default:null},ariaLabel:{type:String,default:null},ariaLabelledBy:{type:String,default:null}},emits:["update:open","opened"],data(){return{isOpen:!0}},computed:{labelledBy(){return this.ariaLabelledBy||!this.ariaLabel&&u.getUniqueString("DtCollapsible__anchor")},collapsibleListeners(){return u.extractVueListeners(this.$attrs)}},watch:{open:{handler:function(t){t!==null&&(this.isOpen=t)},immediate:!0}},created(){this.validateProperAnchor()},methods:{onLeaveTransitionComplete(){this.$emit("opened",!1),this.open!==null&&this.$emit("update:open",!1)},onEnterTransitionComplete(){this.$emit("opened",!0,this.$refs.content),this.open!==null&&this.$emit("update:open",!0)},defaultToggleOpen(){this.open===null&&this.toggleOpen()},toggleOpen(){this.isOpen=!this.isOpen},validateProperAnchor(){!this.anchorText&&!u.hasSlotContent(this.$slots.anchor)&&console.error("anchor text and anchor slot content cannot both be falsy")}}},ua=["id"],ma=["title"];function ha(t,a,n,r,i,o){const s=e.resolveComponent("dt-icon"),d=e.resolveComponent("dt-button"),l=e.resolveComponent("dt-collapsible-lazy-show");return e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.elementType),e.mergeProps({ref:"collapsible"},e.toHandlers(o.collapsibleListeners)),{default:e.withCtx(()=>[e.createElementVNode("div",{id:!n.ariaLabelledBy&&o.labelledBy,ref:"anchor",class:e.normalizeClass(["d-dt-collapsibe__anchor",n.anchorClass])},[e.renderSlot(t.$slots,"anchor",{attrs:{"aria-controls":n.id,"aria-expanded":i.isOpen.toString(),role:"button"}},()=>[e.createVNode(d,{importance:"clear",kind:"muted","aria-controls":n.id,"aria-expanded":`${i.isOpen}`,style:e.normalizeStyle({width:n.maxWidth}),onClick:o.defaultToggleOpen},{default:e.withCtx(()=>[e.createVNode(s,{name:i.isOpen?"chevron-down":"chevron-right",class:"d-icon d-icon--size-300 d-mr8 d-fl-shrink0"},null,8,["name"]),e.createElementVNode("span",{class:"d-mr-auto d-truncate",title:n.anchorText},e.toDisplayString(n.anchorText),9,ma)]),_:1},8,["aria-controls","aria-expanded","style","onClick"])])],10,ua),e.createVNode(l,e.mergeProps({id:n.id,ref:"contentWrapper","aria-hidden":`${!i.isOpen}`,"aria-labelledby":o.labelledBy,"aria-label":n.ariaLabel,show:i.isOpen,"element-type":n.contentElementType,class:["d-dt-collapsible__content",n.contentClass],style:{"max-height":n.maxHeight,"max-width":n.maxWidth},tabindex:"-1",appear:""},e.toHandlers(o.collapsibleListeners),{onAfterLeave:o.onLeaveTransitionComplete,onAfterEnter:o.onEnterTransitionComplete}),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"content")]),_:3},16,["id","aria-hidden","aria-labelledby","aria-label","show","element-type","class","style","onAfterLeave","onAfterEnter"])]),_:3},16)}const Zt=u._export_sfc(ca,[["render",ha]]),pe={none:void 0,small:"d-py0",large:"d-py4"};const fa={name:"DtDropdown",components:{DtPopover:_.DtPopover,SrOnlyCloseButton:_.SrOnlyCloseButton},mixins:[dt({indexKey:"highlightIndex",idKey:"highlightId",listElementKey:"getListElement",listItemRole:"menuitem",afterHighlightMethod:"afterHighlight",beginningOfListMethod:"beginningOfListMethod",endOfListMethod:"endOfListMethod",activeItemKey:"activeItemEl",focusOnKeyboardNavigation:!0}),_.SrOnlyCloseButtonMixin],inheritAttrs:!1,props:{open:{type:Boolean,default:null},openOnContext:{type:Boolean,default:!1},padding:{type:String,default:"small",validator:t=>Object.keys(pe).some(a=>a===t)},modal:{type:Boolean,default:!0},contentWidth:{type:String,default:null},maxHeight:{type:String,default:""},maxWidth:{type:String,default:""},listId:{type:String,default(){return u.getUniqueString()}},navigationType:{type:String,default:_.LIST_ITEM_NAVIGATION_TYPES.ARROW_KEYS,validator:t=>Object.values(_.LIST_ITEM_NAVIGATION_TYPES).includes(t)},fallbackPlacements:{type:Array,default:()=>["auto"]},placement:{type:String,default:"bottom"},onBeginningOfList:{type:Function,default:null},onEndOfList:{type:Function,default:null},listClass:{type:[String,Array,Object],default:""},appendTo:{type:[HTMLElement,String],default:"body",validator:t=>_.POPOVER_APPEND_TO_VALUES.includes(t)||t instanceof HTMLElement},tether:{type:Boolean,default:!0},transition:{type:String,default:"fade"}},emits:["keydown","highlight","update:open","opened","update:open"],data(){return{LIST_ITEM_NAVIGATION_TYPES:_.LIST_ITEM_NAVIGATION_TYPES,DROPDOWN_PADDING_CLASSES:pe,openedWithKeyboard:!1,isOpen:null}},computed:{dropdownListeners(){return{opened:t=>{this.updateInitialHighlightIndex(t)},keydown:t=>{switch(t.code){case u.EVENT_KEYNAMES.up:case u.EVENT_KEYNAMES.arrowup:this.onUpKeyPress(t),t.stopPropagation(),t.preventDefault();break;case u.EVENT_KEYNAMES.down:case u.EVENT_KEYNAMES.arrowdown:this.onDownKeyPress(t),t.stopPropagation(),t.preventDefault();break;case u.EVENT_KEYNAMES.space:case u.EVENT_KEYNAMES.spacebar:this.onSpaceKey();break;case u.EVENT_KEYNAMES.enter:this.onEnterKey();break;case u.EVENT_KEYNAMES.home:this.onHomeKeyPress(t),t.stopPropagation(),t.preventDefault();break;case u.EVENT_KEYNAMES.end:this.onEndKeyPress(t),t.stopPropagation(),t.preventDefault();break;default:this.onKeyPress(t);break}this.$emit("keydown",t)}}},beginningOfListMethod(){return this.onBeginningOfList||this.jumpToEnd},endOfListMethod(){return this.onEndOfList||this.jumpToBeginning},activeItemEl(){return this.getListElement().querySelector("#"+this.highlightId)},isArrowKeyNav(){return this.navigationType===this.LIST_ITEM_NAVIGATION_TYPES.ARROW_KEYS},listClasses(){return["d-ps-relative","d-stack2","d-m4","d-px0",pe[this.padding],this.listClass,{"d-context-menu-list":this.openOnContext}]},shouldOpenWithArrowKeys(){return!this.openOnContext}},methods:{onMouseHighlight(t){const a=t.target.closest("li");a&&a.role&&this.highlightId!==a.id&&(this.setHighlightId(a.id),a.focus())},getListElement(){return this.$refs.listWrapper},clearHighlightIndex(){this.setHighlightIndex(-1)},afterHighlight(){this.visuallyHiddenClose&&this.highlightIndex===this._itemsLength()-1||this.$emit("highlight",this.highlightIndex)},updateInitialHighlightIndex(t){this.isOpen=t,t?(this.openedWithKeyboard&&this.isArrowKeyNav&&this.setHighlightIndex(0),this.$emit("opened",!0)):(this.clearHighlightIndex(),this.openedWithKeyboard=!1,this.$emit("opened",!1))},onSpaceKey(){this.open||(this.openedWithKeyboard=!0)},onEnterKey(){this.open||(this.openedWithKeyboard=!0)},onUpKeyPress(){if(!this.isOpen){this.openedWithKeyboard=!0;return}if(this.isArrowKeyNav)return this.onUpKey()},onDownKeyPress(){if(!this.isOpen){this.openedWithKeyboard=!0;return}if(this.isArrowKeyNav)return this.onDownKey()},onHomeKeyPress(){if(!(!this.isOpen||!this.isArrowKeyNav))return this.onHomeKey()},onEndKeyPress(){if(!(!this.isOpen||!this.isArrowKeyNav))return this.onEndKey()},onKeyPress(t){if(!(!this.isOpen||!this.isArrowKeyNav||!this.isValidLetter(t.key)))return t.stopPropagation(),t.preventDefault(),this.onNavigationKey(t.key)}}},pa=["id"];function ga(t,a,n,r,i,o){const s=e.resolveComponent("sr-only-close-button"),d=e.resolveComponent("dt-popover");return e.openBlock(),e.createBlock(d,e.mergeProps({ref:"popover","content-width":n.contentWidth,open:n.open,placement:n.placement,"initial-focus-element":i.openedWithKeyboard?"first":"dialog","fallback-placements":n.fallbackPlacements,padding:"none",role:"menu","append-to":n.appendTo,modal:n.modal,"max-height":n.maxHeight,"max-width":n.maxWidth,"open-with-arrow-keys":o.shouldOpenWithArrowKeys,"open-on-context":n.openOnContext},t.$attrs,{tether:n.tether,transition:n.transition},e.toHandlers(o.dropdownListeners)),{anchor:e.withCtx(({attrs:l})=>[e.renderSlot(t.$slots,"anchor",e.mergeProps({ref:"anchor"},l))]),content:e.withCtx(({close:l})=>[e.createElementVNode("ul",{id:n.listId,ref:"listWrapper",class:e.normalizeClass(o.listClasses),"data-qa":"dt-dropdown-list-wrapper",onMouseleave:a[0]||(a[0]=(...m)=>o.clearHighlightIndex&&o.clearHighlightIndex(...m)),onMousemoveCapture:a[1]||(a[1]=(...m)=>o.onMouseHighlight&&o.onMouseHighlight(...m))},[e.renderSlot(t.$slots,"list",{close:l}),t.showVisuallyHiddenClose?(e.openBlock(),e.createBlock(s,{key:0,"visually-hidden-close-label":t.visuallyHiddenCloseLabel,tabindex:o.isArrowKeyNav?-1:0,onClose:l},null,8,["visually-hidden-close-label","tabindex","onClose"])):e.createCommentVNode("",!0)],42,pa)]),_:3},16,["content-width","open","placement","initial-focus-element","fallback-placements","append-to","modal","max-height","max-width","open-with-arrow-keys","open-on-context","tether","transition"])}const Xt=u._export_sfc(fa,[["render",ga]]);const _a={name:"DtDropdownSeparator"},ba={"aria-hidden":"true",class:"dt-list-separator d-my4 d-mxn4"};function va(t,a,n,r,i,o){return e.openBlock(),e.createElementBlock("li",ba)}const ya=u._export_sfc(_a,[["render",va]]),Sa={name:"DtImageViewer",components:{DtButton:h.DtButton,DtIcon:h.DtIcon},mixins:[_.Modal],props:{open:{type:Boolean,default:null},imageSrc:{type:String,required:!0},imageAlt:{type:String,required:!0},imageButtonClass:{type:String,required:!1,default:""},ariaLabel:{type:String,required:!0},closeAriaLabel:{type:String,required:!0}},emits:["opened","update:open"],data(){return{showCloseButton:!0,isOpen:!1}},computed:{modalListeners(){return{click:t=>{t.target===t.currentTarget&&this.close()},keydown:t=>{switch(t.code){case u.EVENT_KEYNAMES.esc:case u.EVENT_KEYNAMES.escape:this.close();break;case u.EVENT_KEYNAMES.tab:this.trapFocus(t);break}}}}},watch:{isOpen:{immediate:!0,handler(t){var a;t?this.previousActiveElement=document.activeElement:((a=this.previousActiveElement)==null||a.focus(),this.previousActiveElement=null)}},open:{handler:function(t){t!==null&&(this.isOpen=t)},immediate:!0}},methods:{openModal(){this.open===null&&(this.isOpen=!0,this.showCloseButton=!0,this.$emit("opened",!0),setTimeout(()=>{this.focusAfterOpen()}))},close(){this.isOpen=!1,this.$emit("opened",!1),this.open!==null&&this.$emit("update:open",!1)},focusAfterOpen(){var t;(t=this.$refs.closeImage)==null||t.$el.focus()},trapFocus(t){this.isOpen&&this.focusTrappedTabPress(t)}}},Ca=["src","alt"],wa=["aria-hidden"],Ea={"data-qa":"dt-image-viewer-full",class:"d-p0 d-bar0 d-wmx80p d-hmx80p",role:"dialog","aria-modal":"true"},ka=["src","alt"];function Da(t,a,n,r,i,o){const s=e.resolveComponent("dt-button"),d=e.resolveComponent("dt-icon");return e.openBlock(),e.createElementBlock("div",null,[e.createVNode(s,{"data-qa":"dt-image-viewer-preview",class:"d-p0 d-c-zoom-in","aria-label":n.ariaLabel,importance:"clear",onClick:o.openModal},{default:e.withCtx(()=>[e.createElementVNode("img",{class:e.normalizeClass(n.imageButtonClass),src:n.imageSrc,alt:n.imageAlt},null,10,Ca)]),_:1},8,["aria-label","onClick"]),i.isOpen?(e.openBlock(),e.createBlock(e.Teleport,{key:0,to:"body"},[e.createElementVNode("div",e.mergeProps({"aria-hidden":i.isOpen?"false":"true",class:"d-modal","data-qa":"dt-modal"},e.toHandlers(o.modalListeners,!0),{onMouseover:a[0]||(a[0]=l=>i.showCloseButton=!0),onMouseleave:a[1]||(a[1]=l=>i.showCloseButton=!1),onFocusin:a[2]||(a[2]=l=>i.showCloseButton=!0),onFocusout:a[3]||(a[3]=l=>i.showCloseButton=!1)}),[e.createElementVNode("div",Ea,[e.createElementVNode("img",{class:"d-wmx100p d-hmx100p",src:n.imageSrc,alt:n.imageAlt},null,8,ka)]),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[i.showCloseButton?(e.openBlock(),e.createBlock(s,{key:0,ref:"closeImage","data-qa":"dt-image-viewer-close-btn",class:"d-modal__close",circle:"",size:"lg",importance:"clear",kind:"inverted","aria-label":n.closeAriaLabel,onClick:o.close},{icon:e.withCtx(()=>[e.createVNode(d,{class:"d-fc-neutral-white",name:"close",size:"400"})]),_:1},8,["aria-label","onClick"])):e.createCommentVNode("",!0)]),_:1})],16,wa)])):e.createCommentVNode("",!0)])}const Qt=u._export_sfc(Sa,[["render",Da]]),Jt={components:{DtValidationMessages:h.DtValidationMessages},provide(){return{groupContext:this.provideObj,setGroupValue:this.setGroupValue}},props:{id:{type:String,default(){return u.getUniqueString()}},value:{type:[String,Number,Boolean,Object],default:null},name:{type:String,required:!0},legend:{type:String,default:""},disabled:{type:Boolean,default:!1},messages:{type:Array,default:()=>[],validator:t=>h.validationMessageValidator(t)},showMessages:{type:Boolean,default:!0},legendClass:{type:[String,Array,Object],default:""},messagesClass:{type:[String,Array,Object],default:""},legendChildProps:{type:Object,default:()=>({})},messagesChildProps:{type:Object,default:()=>({})}},emits:["input"],data(){const t=u.formatMessages(this.messages);return{provideObj:{name:this.name,disabled:this.disabled,validationState:u.getValidationState(t)}}},computed:{formattedMessages(){return u.formatMessages(this.messages)},validationState(){return u.getValidationState(this.formattedMessages)}},watch:{disabled(t){this.provideObj.disabled=t},validationState(t){this.provideObj.validationState=t}},methods:{setGroupValue(t){this.internalValue=t,this.$emit("input",t)}},mounted(){!this.legend&&!this.$slots.legend&&!this.$attrs["aria-label"]&&e.warn("It is expected that an aria-label is provided when there is no legend.",this)}},Ia={name:"DtInputGroup",components:{DtValidationMessages:h.DtValidationMessages},mixins:[Jt],props:{dataQaGroup:{type:String,default:"input-group"},dataQaGroupLegend:{type:String,default:"input-group-legend"},dataQaGroupMessages:{type:String,default:"input-group-messages"}},data(){return{internalValue:this.value,hasSlotContent:u.hasSlotContent}},watch:{value(t){this.internalValue=t},internalValue:{immediate:!0,handler(t){this.provideObj.value=t}}},methods:{getMessageKey(t,a){return`input-group-message-${t}-${a}-${this.id}`}}},Ta=["data-qa"],Oa=["data-qa"];function Na(t,a,n,r,i,o){const s=e.resolveComponent("dt-validation-messages");return e.openBlock(),e.createElementBlock("fieldset",{class:"d-input-group__fieldset","data-qa":n.dataQaGroup},[i.hasSlotContent(t.$slots.legend)||t.legend?(e.openBlock(),e.createElementBlock("legend",e.mergeProps({key:0,class:["d-label",t.legendClass]},t.legendChildProps,{"data-qa":n.dataQaGroupLegend}),[e.renderSlot(t.$slots,"legend",{},()=>[e.createTextVNode(e.toDisplayString(t.legend),1)])],16,Oa)):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"default"),e.createVNode(s,e.mergeProps({"validation-messages":t.formattedMessages,"show-messages":t.showMessages,class:t.messagesClass,"data-qa":n.dataQaGroupMessages},t.messagesChildProps),null,16,["validation-messages","show-messages","class","data-qa"])],8,Ta)}const ct=u._export_sfc(Ia,[["render",Na]]),Ge={default:"",danger:"d-modal--danger"},Ze={default:"",full:"d-modal--full"},Xe={error:"d-modal__banner--critical",info:"d-modal__banner--info",success:"d-modal__banner--success",warning:"d-modal__banner--warning",base:"d-modal__banner--general"},La={name:"DtModal",components:{DtLazyShow:u.DtLazyShow,DtButton:h.DtButton,DtIcon:h.DtIcon,SrOnlyCloseButton:_.SrOnlyCloseButton},mixins:[_.Modal,_.SrOnlyCloseButtonMixin],props:{closeButtonProps:{type:Object,required:!0,validator:t=>!!t.ariaLabel},copy:{type:String,default:""},describedById:{type:String,default:""},labelledById:{type:String,default:function(){return u.getUniqueString()}},show:{type:Boolean,default:!1},title:{type:String,default:""},bannerTitle:{type:String,default:""},kind:{type:String,default:"default",validator:t=>Object.keys(Ge).includes(t)},size:{type:String,default:"default",validator:t=>Object.keys(Ze).includes(t)},modalClass:{type:[String,Object,Array],default:""},dialogClass:{type:[String,Object,Array],default:""},contentClass:{type:[String,Object,Array],default:""},bannerKind:{type:String,default:"warning",validate(t){return _.NOTICE_KINDS.includes(t)}},bannerClass:{type:[String,Object,Array],default:""},hideClose:{type:Boolean,default:!1},closeOnClick:{type:Boolean,default:!0},fixedHeaderFooter:{type:Boolean,default:!0}},emits:["click","keydown","update:show"],data(){return{MODAL_KIND_MODIFIERS:Ge,MODAL_SIZE_MODIFIERS:Ze,MODAL_BANNER_KINDS:Xe,EVENT_KEYNAMES:u.EVENT_KEYNAMES,hasSlotContent:u.hasSlotContent}},computed:{modalListeners(){return{click:t=>{this.closeOnClick&&(t.target===t.currentTarget&&this.close(),this.$emit("click",t))},keydown:t=>{switch(t.code){case u.EVENT_KEYNAMES.esc:case u.EVENT_KEYNAMES.escape:this.close();break;case u.EVENT_KEYNAMES.tab:this.trapFocus(t);break}this.$emit("keydown",t)},"after-enter":t=>{t.target===t.currentTarget&&this.setFocusAfterTransition()}}},open(){return`${!this.show}`},hasFooterSlot(){return!!this.$slots.footer},bannerKindClass(){return Xe[this.bannerKind]}},watch:{show:{immediate:!0,handler(t){var a;t?this.previousActiveElement=document.activeElement:((a=this.previousActiveElement)==null||a.focus(),this.previousActiveElement=null)}},$props:{immediate:!0,deep:!0,handler(){this.validateProps()}}},methods:{close(){this.$emit("update:show",!1)},setFocusAfterTransition(){this.focusFirstElement()},trapFocus(t){this.show&&this.focusTrappedTabPress(t)},validateProps(){this.hideClose&&!this.visuallyHiddenClose&&console.error(`If hideClose prop is true, visuallyHiddenClose and visuallyHiddenCloseLabel props
5
- need to be set so the component always includes a close button`)}}},Ba=["aria-describedby","aria-labelledby"],xa=["id"],Aa=["id"],Ma={key:4,class:"d-modal__footer"};function Va(t,a,n,r,i,o){const s=e.resolveComponent("dt-icon"),d=e.resolveComponent("dt-button"),l=e.resolveComponent("sr-only-close-button"),m=e.resolveComponent("dt-lazy-show");return e.openBlock(),e.createBlock(m,e.mergeProps({transition:"d-zoom",show:n.show,class:["d-modal",i.MODAL_KIND_MODIFIERS[n.kind],i.MODAL_SIZE_MODIFIERS[n.size],n.modalClass],"data-qa":"dt-modal","aria-hidden":o.open},e.toHandlers(o.modalListeners)),{default:e.withCtx(()=>[n.show&&(i.hasSlotContent(t.$slots.banner)||n.bannerTitle)?(e.openBlock(),e.createElementBlock("div",{key:0,"data-qa":"dt-modal-banner",class:e.normalizeClass(["d-modal__banner",n.bannerClass,o.bannerKindClass])},[e.renderSlot(t.$slots,"banner",{},()=>[e.createTextVNode(e.toDisplayString(n.bannerTitle),1)])],2)):e.createCommentVNode("",!0),e.createVNode(e.Transition,{appear:"",name:"d-modal__dialog"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(["d-modal__dialog",{"d-modal__dialog--scrollable":n.fixedHeaderFooter},n.dialogClass]),role:"dialog","aria-modal":"true","aria-describedby":n.describedById,"aria-labelledby":n.labelledById},[i.hasSlotContent(t.$slots.header)?(e.openBlock(),e.createElementBlock("div",{key:0,id:n.labelledById,class:"d-modal__header","data-qa":"dt-modal-title"},[e.renderSlot(t.$slots,"header")],8,xa)):(e.openBlock(),e.createElementBlock("h2",{key:1,id:n.labelledById,class:"d-modal__header","data-qa":"dt-modal-title"},e.toDisplayString(n.title),9,Aa)),i.hasSlotContent(t.$slots.default)?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(["d-modal__content",n.contentClass]),"data-qa":"dt-modal-copy"},[e.renderSlot(t.$slots,"default")],2)):(e.openBlock(),e.createElementBlock("p",{key:3,class:e.normalizeClass(["d-modal__content",n.contentClass]),"data-qa":"dt-modal-copy"},e.toDisplayString(n.copy),3)),o.hasFooterSlot?(e.openBlock(),e.createElementBlock("footer",Ma,[e.renderSlot(t.$slots,"footer")])):e.createCommentVNode("",!0),n.hideClose?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(d,e.mergeProps({key:5,class:"d-modal__close",circle:"",size:"lg",importance:"clear","aria-label":n.closeButtonProps.ariaLabel},n.closeButtonProps,{onClick:o.close}),{icon:e.withCtx(()=>[e.createVNode(s,{name:"close",size:"400"})]),_:1},16,["aria-label","onClick"])),t.showVisuallyHiddenClose?(e.openBlock(),e.createBlock(l,{key:6,"visually-hidden-close-label":t.visuallyHiddenCloseLabel,onClose:o.close},null,8,["visually-hidden-close-label","onClose"])):e.createCommentVNode("",!0)],10,Ba),[[e.vShow,n.show]])]),_:3})]),_:3},16,["show","class","aria-hidden"])}const Ra=u._export_sfc(La,[["render",Va]]);const Pa={name:"ListSection",components:{vnodes:{name:"vnodes",render:t=>t.$attrs.vnodes},DtButton:h.DtButton},props:{id:{type:String,default(){return u.utils.getUniqueString()}},header:{type:String,default:null},separator:{type:Boolean,default:!1},maxDisplayed:{type:Number,default:0},textMore:{type:String,default:"Show more"},textLess:{type:String,default:"Show less"}},data(){return{showAll:!1}},computed:{isCollapsible(){return!(this.maxDisplayed===0||this.itemCount<=this.maxDisplayed)},showMoreLessText(){return this.showAll?this.textLess:this.textMore},hiddenCount(){return this.itemCount-this.displayedItems.length},defaultSlotItems(){return Array.isArray(this.$slots.default()[0].children)?this.$slots.default()[0].children:this.$slots.default()},itemCount(){return this.defaultSlotItems.length},displayedItems(){var t;return(t=this.defaultSlotItems)==null?void 0:t.filter((a,n)=>n<=this.maxDisplayed-1)}},methods:{showMoreLessClicked(){this.showAll=!this.showAll}}},$a=["id","aria-labelledby"],za=["id"],Fa=["id"],qa=["id"],Ha={class:"d-d-flex"};function Ua(t,a,n,r,i,o){const s=e.resolveComponent("vnodes"),d=e.resolveComponent("dt-button");return e.openBlock(),e.createElementBlock("div",{id:n.id,role:"group","aria-labelledby":`${n.id}-list-section-header`,tabindex:"-1",class:e.normalizeClass(["dt-list-section","d-fs-200","d-lh6","d-py6","d-bc-black-400",{"d-bb":n.separator}])},[n.header?(e.openBlock(),e.createElementBlock("h3",{key:0,id:`${n.id}-list-section-header`,class:"d-pl12 d-mt6"},e.toDisplayString(n.header),9,za)):e.createCommentVNode("",!0),!o.isCollapsible||i.showAll?(e.openBlock(),e.createElementBlock("ol",{key:1,id:`${n.id}-list-section-content`},[e.renderSlot(t.$slots,"default")],8,Fa)):(e.openBlock(),e.createElementBlock("ol",{key:2,id:`${n.id}-list-section-content`},[e.createVNode(s,{vnodes:o.displayedItems},null,8,["vnodes"])],8,qa)),e.createElementVNode("div",Ha,[o.isCollapsible?(e.openBlock(),e.createBlock(d,{key:0,id:`${n.id}-list-section-show-more-less`,link:"",class:"d-ml12 d-py6",onClick:o.showMoreLessClicked},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.showMoreLessText),1)]),_:1},8,["id","onClick"])):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"footer")])],10,$a)}const Wa=u._export_sfc(Pa,[["render",Ua]]),Ka={name:"DtListItemGroup",props:{id:{type:String,default(){return u.getUniqueString()}},heading:{type:String,default:""},headingClass:{type:[String,Array,Object],default:""},listClass:{type:[String,Array,Object],default:""}}},Ya=["id","aria-labelledby"],ja=["id"];function Ga(t,a,n,r,i,o){return e.openBlock(),e.createElementBlock("ul",{id:n.id,class:e.normalizeClass(["d-ps-relative","d-px0",n.listClass]),role:"group","data-qa":"dt-dropdown-list-wrapper","aria-labelledby":`${n.id}-heading`},[n.heading?(e.openBlock(),e.createElementBlock("li",{key:0,id:`${n.id}-heading`,role:"presentation","data-qa":"dt-dropdown-list-heading",class:e.normalizeClass(["dt-dropdown-list--header",n.headingClass])},[e.renderSlot(t.$slots,"headingSlot",{},()=>[e.createTextVNode(e.toDisplayString(n.heading),1)])],10,ja)):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"default")],10,Ya)}const Za=u._export_sfc(Ka,[["render",Ga]]),Xa={name:"DtPagination",components:{DtButton:h.DtButton,DtIcon:h.DtIcon},props:{ariaLabel:{type:String,required:!0},totalPages:{type:Number,required:!0},prevAriaLabel:{type:String,required:!0},nextAriaLabel:{type:String,required:!0},pageNumberAriaLabel:{type:Function,required:!0},activePage:{type:Number,default:1},maxVisible:{type:Number,default:5}},emits:["change"],data(){return{currentPage:this.activePage}},computed:{isFirstPage(){return this.currentPage===1},isLastPage(){return this.currentPage===this.totalPages},pages(){if(this.maxVisible===0)return[];if(this.totalPages<=this.maxVisible)return this.range(1,this.totalPages);const t=this.maxVisible-1,a=this.totalPages-t+1;if(this.currentPage<t)return[...this.range(1,t),"...",this.totalPages];if(this.currentPage>a)return[1,"...",...this.range(a,this.totalPages)];const n=this.maxVisible-(3-this.maxVisible%2),r=Math.floor(n/2),i=this.currentPage-r,o=this.currentPage+r;return[1,"...",...this.range(i,o),"...",this.totalPages]}},methods:{range(t,a){const n=[];t=t>0?t:1;for(let r=t;r<=a;r++)n.push(r);return n},changePage(t){this.currentPage=t,this.$emit("change",this.currentPage)}}},Qa=["aria-label"],Ja={key:0,class:"d-fc-tertiary d-w24 d-ta-center","data-qa":"dt-pagination-separator"};function er(t,a,n,r,i,o){const s=e.resolveComponent("dt-icon"),d=e.resolveComponent("dt-button");return e.openBlock(),e.createElementBlock("nav",{"aria-label":n.ariaLabel,class:"d-d-flex d-fd-row d-gg4 d-ai-center"},[e.createVNode(d,{class:e.normalizeClass(["d-px8",o.isFirstPage?"d-fc-black-300 d-bgc-transparent":"d-fc-tertiary"]),"data-qa":"dt-pagination-prev","aria-label":n.prevAriaLabel,kind:o.isFirstPage?"default":"muted",importance:o.isFirstPage?"primary":"clear",disabled:o.isFirstPage,onClick:a[0]||(a[0]=l=>o.changePage(i.currentPage-1))},{icon:e.withCtx(()=>[e.createVNode(s,{name:"chevron-left",size:"300"})]),_:1},8,["aria-label","kind","importance","disabled","class"]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.pages,(l,m)=>(e.openBlock(),e.createElementBlock("div",{key:`page-${l}-${m}`,class:e.normalizeClass({"d-as-flex-end":isNaN(Number(l))})},[isNaN(Number(l))?(e.openBlock(),e.createElementBlock("div",Ja,[e.createVNode(s,{name:"more-horizontal",size:"300"})])):(e.openBlock(),e.createBlock(d,{key:1,"aria-label":n.pageNumberAriaLabel(l),kind:i.currentPage===l?"default":"muted",importance:i.currentPage===l?"primary":"clear","label-class":"",onClick:p=>o.changePage(l)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l),1)]),_:2},1032,["aria-label","kind","importance","onClick"]))],2))),128)),e.createVNode(d,{class:e.normalizeClass(["d-px8",o.isLastPage?"d-fc-black-300 d-bgc-transparent":"d-fc-tertiary"]),"data-qa":"dt-pagination-next","aria-label":n.nextAriaLabel,disabled:o.isLastPage,kind:"muted",importance:o.isLastPage?"primary":"clear",onClick:a[1]||(a[1]=l=>o.changePage(i.currentPage+1))},{icon:e.withCtx(()=>[e.createVNode(s,{name:"chevron-right",size:"300"})]),_:1},8,["aria-label","disabled","importance","class"])],8,Qa)}const tr=u._export_sfc(Xa,[["render",er]]),nr={warning:"d-radio--warning",error:"d-radio--error",success:"d-radio--success"},ar={name:"DtRadio",components:{DtValidationMessages:h.DtValidationMessages},mixins:[h.InputMixin,h.CheckableMixin,h.GroupableMixin,h.MessagesMixin],inheritAttrs:!1,props:{value:{type:[String,Number],default:""}},emits:["input","focus","focusin","focusout","click"],data(){return{hasSlotContent:u.hasSlotContent}},computed:{inputValidationClass(){return nr[this.internalValidationState]},radioGroupValue(){var t;return(t=this.groupContext)==null?void 0:t.selectedValue},inputListeners(){return{input:()=>{},focusin:t=>this.$emit("focusin",t),focusout:t=>this.$emit("focusout",t),change:t=>this.emitValue(t.target.value)}}},watch:{radioGroupValue:{immediate:!0,handler(t){this.hasGroup&&(this.internalChecked=t===this.value)}}},methods:{emitValue(t){t!==this.radioGroupValue&&(this.setGroupValue(t),this.$emit("input",t))}}},rr={class:"d-radio__input"},or=["checked","name","value","disabled"],ir={class:"d-radio__copy d-radio__label","data-qa":"radio-label-description-container"};function sr(t,a,n,r,i,o){const s=e.resolveComponent("dt-validation-messages");return e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("label",null,[e.createElementVNode("div",{class:e.normalizeClass(["d-radio-group",{"d-radio-group--disabled":t.internalDisabled}])},[e.createElementVNode("div",rr,[e.createElementVNode("input",e.mergeProps({checked:t.internalChecked,name:t.internalName,value:n.value,disabled:t.internalDisabled,type:"radio",class:["d-radio",o.inputValidationClass,t.inputClass]},t.$attrs,e.toHandlers(o.inputListeners,!0)),null,16,or)]),e.createElementVNode("div",ir,[e.createElementVNode("div",e.mergeProps({class:t.labelClass},t.labelChildProps,{"data-qa":"radio-label"}),[e.renderSlot(t.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(t.label),1)])],16),t.$slots.description||t.description?(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:0,class:["d-description",t.descriptionClass]},t.descriptionChildProps,{"data-qa":"radio-description"}),[e.renderSlot(t.$slots,"description",{},()=>[e.createTextVNode(e.toDisplayString(t.description),1)])],16)):e.createCommentVNode("",!0),e.createVNode(s,e.mergeProps({"validation-messages":t.formattedMessages,"show-messages":t.showMessages,class:t.messagesClass},t.messagesChildProps,{"data-qa":"dt-radio-validation-messages"}),null,16,["validation-messages","show-messages","class"])])],2)])])}const lr=u._export_sfc(ar,[["render",sr]]),dr={name:"DtRadioGroup",extends:ct,props:{value:{type:[String,Number],default:""},dataQaGroup:{type:String,default:"radio-group"},dataQaGroupLegend:{type:String,default:"radio-group-legend"},dataQaGroupMessages:{type:String,default:"radio-group-messages"}},emits:["input"],data(){return{internalValue:this.value}},watch:{value(t){this.internalValue=t},internalValue:{immediate:!0,handler(t){this.provideObj.selectedValue=t}}},methods:{setGroupValue(t){this.$emit("input",t)},getMessageKey(t,a){return`radio-group-message-${t}-${a}-${this.id}`}}},cr={name:"DtTabPanel",mixins:[_.Modal],inject:["groupContext"],props:{id:{type:String,required:!0},tabId:{type:String,required:!0},hidden:{type:Boolean,default:!1},tabPanelClass:{type:[String,Array,Object],default:""}},data(){return{isFirstElementFocusable:!1}},computed:{hidePanel(){return this.groupContext.selected!==this.id||this.hidden}},async mounted(){const t=await this.getFirstFocusableElement(this.$el);t?this.isFirstElementFocusable=this.isFirstElementOfPanel(t):this.isFirstElementFocusable=!1},methods:{isFirstElementOfPanel(t){let a=t,n=!0;for(;a;){if(a.previousElementSibling!==null){n=!1;break}a=a.parentNode!==this.$el?a.parentNode:null}return n}}},ur=["id","tabindex","aria-labelledby","aria-hidden"];function mr(t,a,n,r,i,o){return e.withDirectives((e.openBlock(),e.createElementBlock("div",{id:`dt-panel-${n.id}`,role:"tabpanel",tabindex:i.isFirstElementFocusable?-1:0,"aria-labelledby":`dt-tab-${n.tabId}`,"aria-hidden":`${o.hidePanel}`,class:e.normalizeClass([{"d-d-none":o.hidePanel},n.tabPanelClass]),"data-qa":"dt-tab-panel"},[e.renderSlot(t.$slots,"default")],10,ur)),[[e.vShow,!n.hidden]])}const hr=u._export_sfc(cr,[["render",mr]]),fr={error:"d-checkbox--error",warning:"d-checkbox--warning",success:"d-checkbox--success"},pr={name:"DtCheckbox",components:{DtValidationMessages:h.DtValidationMessages},mixins:[h.InputMixin,h.CheckableMixin,h.GroupableMixin,h.MessagesMixin],inheritAttrs:!1,emits:["input","focusin","focusout"],computed:{inputValidationClass(){return fr[this.internalValidationState]},checkboxGroupValueChecked(){var t,a;return((a=(t=this.groupContext)==null?void 0:t.selectedValues)==null?void 0:a.includes(this.value))??!1},hasLabel(){return!!(this.$slots.default||this.label)},hasDescription(){return!!(this.$slots.description||this.description)},hasLabelOrDescription(){return this.hasLabel||this.hasDescription},inputListeners(){return{input:()=>{},focusin:t=>this.$emit("focusin",t),focusout:t=>this.$emit("focusout",t),change:t=>this.emitValue(t.target)}}},watch:{checkboxGroupValueChecked:{immediate:!0,handler(t){this.hasGroup&&(this.internalChecked=t)}}},mounted(){this.runValidations()},methods:{emitValue(t){let{value:a,checked:n}=t;this.internalIndeterminate&&(n=!1,this.internalIndeterminate=!1,t.checked=!1),this.setGroupValue(a,n),this.$emit("input",n)},runValidations(){this.validateInputLabels(this.hasLabel,this.$attrs["aria-label"])}}},gr={class:"d-checkbox__input"},_r=["checked","name","value","disabled",".indeterminate"],br={key:0,class:"d-checkbox__copy d-checkbox__label","data-qa":"checkbox-label-description-container"};function vr(t,a,n,r,i,o){const s=e.resolveComponent("dt-validation-messages");return e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("label",null,[e.createElementVNode("div",{class:e.normalizeClass(["d-checkbox-group",{"d-checkbox-group--disabled":t.internalDisabled}])},[e.createElementVNode("div",gr,[e.createElementVNode("input",e.mergeProps({type:"checkbox",checked:t.internalChecked,name:t.internalName,value:t.value,disabled:t.internalDisabled,class:["d-checkbox",o.inputValidationClass,t.inputClass]},t.$attrs,{".indeterminate":t.internalIndeterminate},e.toHandlers(o.inputListeners,!0)),null,16,_r)]),o.hasLabelOrDescription?(e.openBlock(),e.createElementBlock("div",br,[o.hasLabel?(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:0,class:t.labelClass},t.labelChildProps,{"data-qa":"checkbox-label"}),[e.renderSlot(t.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(t.label),1)])],16)):e.createCommentVNode("",!0),o.hasDescription?(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:1,class:["d-description",t.descriptionClass]},t.descriptionChildProps,{"data-qa":"checkbox-description"}),[e.renderSlot(t.$slots,"description",{},()=>[e.createTextVNode(e.toDisplayString(t.description),1)])],16)):e.createCommentVNode("",!0),e.createVNode(s,e.mergeProps({"validation-messages":t.formattedMessages,"show-messages":t.showMessages,class:t.messagesClass},t.messagesChildProps,{"data-qa":"dt-checkbox-validation-messages"}),null,16,["validation-messages","show-messages","class"])])):e.createCommentVNode("",!0)],2)])])}const yr=u._export_sfc(pr,[["render",vr]]),Sr={name:"DtCheckboxGroup",extends:ct,model:{prop:"selectedValues"},props:{value:{type:[],default:null,validator:t=>t?(e.warn("Component uses selectedValues to initialize the model, value is not supported by this component",globalThis),!1):!0},selectedValues:{type:Array,default(){return[]}},dataQaGroup:{type:String,default:"checkbox-group"},dataQaGroupLegend:{type:String,default:"checkbox-group-legend"},dataQaGroupMessages:{type:String,default:"checkbox-group-messages"}},emits:["input"],data(){return{internalValue:this.selectedValues}},watch:{selectedValues(t){this.internalValue=t},internalValue:{immediate:!0,handler(t){this.provideObj.selectedValues=t}}},methods:{setGroupValue(t,a){a?this.internalValue.includes(t)||this.internalValue.push(t):this.internalValue=this.internalValue.filter(n=>n!==t),this.$emit("input",this.internalValue)},getMessageKey(t,a){return`checkbox-group-message-${t}-${a}-${this.id}`}}},Qe={xs:"d-chip__label--xs",sm:"d-chip__label--sm",md:""},Cr={xs:"d-chip__close--xs",sm:"d-chip__close--sm",md:""},wr={xs:"200",sm:"200",md:"200"},Er={name:"DtChip",components:{DtButton:h.DtButton,DtIcon:h.DtIcon},props:{closeButtonProps:{type:Object,default:function(){return{ariaLabel:"close"}},validator:t=>!!t.ariaLabel},hideClose:{type:Boolean,default:!1},size:{type:String,default:"md",validator:t=>Object.keys(Qe).includes(t)},interactive:{type:Boolean,default:!0},id:{type:String,default:function(){return u.getUniqueString()}},ariaLabel:{type:String,default:""},contentClass:{type:[String,Array,Object],default:""},labelClass:{type:[String,Array,Object],default:""}},emits:["click","close","keyup"],data(){return{isActive:!1,hasSlotContent:u.hasSlotContent}},computed:{chipListeners(){return{click:t=>{this.interactive&&this.$emit("click",t)},keyup:t=>{var a;((a=t.code)==null?void 0:a.toLowerCase())==="delete"?this.onClose():this.$emit("keyup",t)}}},closeButtonIconSize(){return wr[this.size]}},methods:{chipClasses(){return[this.$attrs["grouped-chip"]?"d-chip":"d-chip__label",Qe[this.size],this.labelClass]},chipCloseButtonClasses(){return["d-chip__close",Cr[this.size]]},onClose(){this.hideClose||this.$emit("close")}}},kr={class:"d-chip"},Dr={key:0,"data-qa":"dt-chip-icon",class:"d-chip__icon"},Ir={key:1,"data-qa":"dt-chip-avatar"},Tr=["id"];function Or(t,a,n,r,i,o){const s=e.resolveComponent("dt-icon"),d=e.resolveComponent("dt-button");return e.openBlock(),e.createElementBlock("span",kr,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.interactive?"button":"span"),e.mergeProps({id:n.id,type:n.interactive&&"button",class:o.chipClasses(),"data-qa":"dt-chip","aria-labelledby":n.ariaLabel?void 0:`${n.id}-content`,"aria-label":n.ariaLabel},e.toHandlers(o.chipListeners)),{default:e.withCtx(()=>[i.hasSlotContent(t.$slots.icon)?(e.openBlock(),e.createElementBlock("span",Dr,[e.renderSlot(t.$slots,"icon")])):i.hasSlotContent(t.$slots.avatar)?(e.openBlock(),e.createElementBlock("span",Ir,[e.renderSlot(t.$slots,"avatar")])):e.createCommentVNode("",!0),i.hasSlotContent(t.$slots.default)?(e.openBlock(),e.createElementBlock("span",{key:2,id:`${n.id}-content`,"data-qa":"dt-chip-label",class:e.normalizeClass(["d-truncate","d-chip__text",n.contentClass])},[e.renderSlot(t.$slots,"default")],10,Tr)):e.createCommentVNode("",!0)]),_:3},16,["id","type","class","aria-labelledby","aria-label"])),n.hideClose?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(d,e.mergeProps({key:0},n.closeButtonProps,{class:o.chipCloseButtonClasses(),"data-qa":"dt-chip-close","aria-label":n.closeButtonProps.ariaLabel,onClick:a[0]||(a[0]=l=>t.$emit("close"))}),{icon:e.withCtx(()=>[e.createVNode(s,{name:"close",size:o.closeButtonIconSize},null,8,["size"])]),_:1},16,["class","aria-label"]))])}const ut=u._export_sfc(Er,[["render",Or]]),Je={xs:"d-select--xs",sm:"d-select--sm",md:"",lg:"d-select--lg",xl:"d-select--xl"},en={error:"d-select__input--error",warning:"d-select__input--warning",success:"d-select__input--success"},Nr=t=>!t.index||typeof t.index=="number",Lr=t=>t.value?typeof t.value=="string"||typeof t.value=="number":!1,Br=t=>t.label?typeof t.label=="string":!1,xr=t=>t?t.every(a=>!(!Nr(a)||!Lr(a)||!Br(a))):!0,Ar={name:"DtSelectMenu",components:{DtValidationMessages:h.DtValidationMessages},mixins:[h.MessagesMixin],inheritAttrs:!1,props:{label:{type:String,default:""},description:{type:String,default:""},options:{type:Array,default:()=>[],validator:t=>xr(t)},size:{type:String,default:"md",validator:t=>Object.keys(Je).includes(t)},labelClass:{type:[String,Array,Object],default:""},descriptionClass:{type:[String,Array,Object],default:""},selectClass:{type:[String,Array,Object],default:""},optionClass:{type:[String,Array,Object],default:""},labelChildProps:{type:Object,default:()=>({})},descriptionChildProps:{type:Object,default:()=>({})},optionChildProps:{type:Object,default:()=>({})},disabled:{type:Boolean,default:!1}},emits:["input","change"],data(){return{LABEL_SIZE_MODIFIERS:u.LABEL_SIZE_MODIFIERS,DESCRIPTION_SIZE_MODIFIERS:u.DESCRIPTION_SIZE_MODIFIERS,SELECT_SIZE_MODIFIERS:Je,SELECT_STATE_MODIFIERS:en,hasSlotContent:u.hasSlotContent}},computed:{selectListeners(){return{input:()=>{},change:t=>this.emitValue(t.target.value,t)}},state(){return u.getValidationState(this.formattedMessages)},selectKey(){return u.getUniqueString()},descriptionKey(){return`select-${this.selectKey}-description`},labelAriaDetails(){return this.$slots.description||this.description?this.descriptionKey:this.$attrs["aria-details"]}},mounted(){this.validateOptionsPresence()},beforeUpdate(){this.validateOptionsPresence()},methods:{emitValue(t,a){this.$emit("input",t,a),this.$emit("change",t,a)},getOptionKey(t){return`select-${this.selectKey}-option-${t}`},validateOptionsPresence(){var t;((t=this.options)==null?void 0:t.length)<1&&!this.$slots.default&&e.warn("Options are expected to be provided via prop or slot",this)}}},Mr=["aria-details"],Vr=["id"],Rr=["disabled"],Pr=["value"];function $r(t,a,n,r,i,o){const s=e.resolveComponent("dt-validation-messages");return e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("label",null,[i.hasSlotContent(t.$slots.label)||n.label?(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:0,"aria-details":o.labelAriaDetails,class:["d-label",i.LABEL_SIZE_MODIFIERS[n.size],n.labelClass]},n.labelChildProps,{"data-qa":"dt-select-label"}),[e.renderSlot(t.$slots,"label",{},()=>[e.createTextVNode(e.toDisplayString(n.label),1)])],16,Mr)):e.createCommentVNode("",!0),i.hasSlotContent(t.$slots.description)||n.description?(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:1,id:o.descriptionKey,class:["d-description",i.DESCRIPTION_SIZE_MODIFIERS[n.size],n.descriptionClass]},n.descriptionChildProps,{"data-qa":"dt-select-description"}),[e.renderSlot(t.$slots,"description",{},()=>[e.createTextVNode(e.toDisplayString(n.description),1)])],16,Vr)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["d-select",i.SELECT_SIZE_MODIFIERS[n.size],n.selectClass,{"d-select--disabled":n.disabled}]),"data-qa":"dt-select-wrapper"},[e.createElementVNode("select",e.mergeProps({class:["d-select__input",i.SELECT_STATE_MODIFIERS[o.state]]},t.$attrs,{"data-qa":"dt-select",disabled:n.disabled},e.toHandlers(o.selectListeners,!0)),[e.renderSlot(t.$slots,"default",{},()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.options,d=>(e.openBlock(),e.createElementBlock("option",e.mergeProps({key:o.getOptionKey(d.value),value:d.value,class:n.optionClass},n.optionChildProps),e.toDisplayString(d.label),17,Pr))),128))])],16,Rr)],2)]),e.createVNode(s,e.mergeProps({"validation-messages":t.formattedMessages,"show-messages":t.showMessages,class:t.messagesClass},t.messagesChildProps,{"data-qa":"dt-select-messages"}),null,16,["validation-messages","show-messages","class"])])}const zr=u._export_sfc(Ar,[["render",$r]]),tn=["status","alert"],Bt=6e3,Fr={name:"DtToast",components:{DtNoticeIcon:_.DtNoticeIcon,DtNoticeContent:_.DtNoticeContent,DtNoticeAction:_.DtNoticeAction},mixins:[_.SrOnlyCloseButtonMixin],props:{titleId:{type:String,default(){return u.utils.getUniqueString()}},contentId:{type:String,default(){return u.utils.getUniqueString()}},title:{type:String,default:""},message:{type:String,default:""},role:{type:String,default:"status",validator:t=>tn.includes(t)},kind:{type:String,default:"base",validator:t=>_.NOTICE_KINDS.includes(t)},important:{type:Boolean,default:!1},show:{type:Boolean,default:!1},closeButtonProps:{type:Object,default:()=>({})},hideClose:{type:Boolean,default:!1},duration:{type:Number,default:null,validator:t=>t>=Bt}},emits:["close","click","update:show"],data(){return{isShown:!1,minDuration:Bt}},computed:{kindClass(){return{error:"d-toast--error",info:"d-toast--info",success:"d-toast--success",warning:"d-toast--warning",base:"d-toast--base"}[this.kind]},shouldSetTimeout(){return!!this.duration&&this.duration>=this.minDuration}},watch:{show:{handler:function(t){this.isShown=t,t?this.setTimeout():clearTimeout(this.displayTimer)},immediate:!0}},unmounted(){clearTimeout(this.displayTimer)},methods:{closeToast(t){this.$emit("update:show",!1),this.$emit("close",t)},setTimeout(){this.shouldSetTimeout&&(this.displayTimer=setTimeout(()=>{this.isShown=!1,this.$emit("update:show",!1)},this.duration))}}},qr=["aria-hidden"],Hr={class:"d-toast__dialog"};function Ur(t,a,n,r,i,o){const s=e.resolveComponent("dt-notice-icon"),d=e.resolveComponent("dt-notice-content"),l=e.resolveComponent("dt-notice-action");return i.isShown?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["d-toast",o.kindClass,{"d-toast--important":n.important}]),"data-qa":"dt-toast","aria-hidden":(!i.isShown).toString()},[e.createElementVNode("div",Hr,[e.createVNode(s,{kind:n.kind},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"icon")]),_:3},8,["kind"]),e.createVNode(d,{"title-id":n.titleId,"content-id":n.contentId,title:n.title,role:n.role},{titleOverride:e.withCtx(()=>[e.renderSlot(t.$slots,"titleOverride")]),default:e.withCtx(()=>[e.renderSlot(t.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(n.message),1)])]),_:3},8,["title-id","content-id","title","role"]),e.createVNode(l,{"hide-close":n.hideClose,"close-button-props":n.closeButtonProps,"visually-hidden-close":t.visuallyHiddenClose,"visually-hidden-close-label":t.visuallyHiddenCloseLabel,onClose:o.closeToast},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"action")]),_:3},8,["hide-close","close-button-props","visually-hidden-close","visually-hidden-close-label","onClose"])])],10,qr)):e.createCommentVNode("",!0)}const Wr=u._export_sfc(Fr,[["render",Ur]]),xt={sm:"d-toggle--small",md:""},Kr=[!1,!0,"mixed"],Yr={name:"DtToggle",inheritAttrs:!1,model:{prop:"checked",event:"change"},props:{id:{type:String,default(){return u.getUniqueString()}},disabled:{type:Boolean,default:!1},checked:{type:[Boolean,String],default:!1,validator:t=>Kr.includes(t)},toggleOnClick:{type:Boolean,default:!0},size:{type:String,default:"md",validator:t=>Object.keys(xt).includes(t)},showIcon:{type:Boolean,default:!0},labelClass:{type:[String,Array,Object],default:""},labelChildProps:{type:Object,default:()=>({})}},emits:["change"],data(){return{internalChecked:this.checked,hasSlotContent:u.hasSlotContent}},computed:{inputListeners(){return{...this.$attrs,onClick:t=>this.toggleCheckedValue()}},isIndeterminate(){return this.internalChecked==="mixed"},toggleRole(){return this.isIndeterminate?"checkbox":"switch"},toggleClasses(){return["d-toggle",xt[this.size],{"d-toggle--checked":this.internalChecked===!0,"d-toggle--disabled":this.disabled,"d-toggle--indeterminate":this.isIndeterminate}]}},watch:{checked(t){this.internalChecked=t}},mounted(){this.runValidations()},methods:{toggleCheckedValue(){this.$emit("change",!this.internalChecked),this.toggleOnClick&&(this.internalChecked=!this.internalChecked)},hasSlotLabel(){return!!this.$slots.default},runValidations(){this.validateInputLabels(this.hasSlotLabel(),this.$attrs["aria-label"])},validateInputLabels(t,a){!t&&!a&&e.warn("You must provide an aria-label when there is no label passed",this)}}},jr={class:"d-d-flex d-ai-center"},Gr=["for"],Zr=["id","role","aria-checked","disabled","aria-disabled"],Xr={key:0,class:"d-toggle__inner"};function Qr(t,a,n,r,i,o){return e.openBlock(),e.createElementBlock("div",jr,[i.hasSlotContent(t.$slots.default)?(e.openBlock(),e.createElementBlock("label",e.mergeProps({key:0,class:n.labelClass,for:n.id},n.labelChildProps,{"data-qa":"toggle-label"}),[e.renderSlot(t.$slots,"default")],16,Gr)):e.createCommentVNode("",!0),e.createElementVNode("button",e.mergeProps({id:n.id,role:o.toggleRole,type:"button","aria-checked":i.internalChecked.toString(),disabled:n.disabled,"aria-disabled":n.disabled.toString(),class:o.toggleClasses},o.inputListeners),[n.showIcon?(e.openBlock(),e.createElementBlock("span",Xr)):e.createCommentVNode("",!0)],16,Zr)])}const Jr=u._export_sfc(Yr,[["render",Qr]]),oe={"{win}":"layout-grid","{arrow-right}":"arrow-right","{arrow-left}":"arrow-left","{arrow-up}":"arrow-up","{arrow-down}":"arrow-down","{cmd}":"command"},nn={"{plus}":"plus"},eo=Object.keys(oe),to={name:"DtKeyboardShortcut",components:{DtIcon:h.DtIcon},props:{inverted:{type:Boolean,default:!1},shortcut:{type:String,required:!0},screenReaderText:{type:String,default:null}},data(){return{SHORTCUTS_ICON_ALIASES:oe,separator:/\+/gi}},computed:{icons(){return{...oe,...nn}},shortcutWithSeparator(){return this.shortcut.replace(this.separator,"{plus}")},formattedShortcut(){return Object.keys(oe).reduce((t,a)=>t.replace(new RegExp("{"+a+"}","gi"),oe[a]),this.shortcutWithSeparator)},formattedShortcutSplit(){const t=Object.keys(this.icons).join("|"),a=new RegExp(`(${t})`,"gi");return this.formattedShortcut.split(a).filter(Boolean)}}},no={key:0,class:"sr-only"},ao=["innerHTML"];function ro(t,a,n,r,i,o){const s=e.resolveComponent("dt-icon");return e.openBlock(),e.createElementBlock("kbd",{class:e.normalizeClass(["d-d-inline-flex","d-ff-custom","d-ai-center","d-jc-center","d-box-border","d-px4","d-ba","d-bar4","d-fs-100",n.inverted?"d-bc-moderate-inverted":"d-bc-default"])},[n.screenReaderText?(e.openBlock(),e.createElementBlock("span",no,e.toDisplayString(n.screenReaderText),1)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.formattedShortcutSplit,(d,l)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[o.icons[d]?(e.openBlock(),e.createBlock(s,{key:`${l}-${d}`,name:o.icons[d],size:"100","aria-hidden":"true",class:e.normalizeClass([n.inverted?"d-fc-secondary-inverted":"d-fc-tertiary","d-mr2"])},null,8,["name","class"])):(e.openBlock(),e.createElementBlock("span",{key:`${l}-${d}`,"aria-hidden":"true",class:e.normalizeClass([n.inverted?"d-fc-secondary-inverted":"d-fc-tertiary","d-mr2"]),innerHTML:d},null,10,ao))],64))),256))],2)}const oo=u._export_sfc(to,[["render",ro]]),et={LEFT:"left",RIGHT:"right"},an=["sm","md","lg",null],io={name:"DtRootLayout",props:{fixed:{type:Boolean,default:!0},headerClass:{type:[String,Array,Object],default:""},headerHeight:{type:String,default:"64px"},headerSticky:{type:Boolean,default:!1},bodyClass:{type:[String,Array,Object],default:""},contentClass:{type:[String,Array,Object],default:""},sidebarClass:{type:[String,Array,Object],default:""},sidebarWidth:{type:String,default:"256px"},sidebarPosition:{type:String,default:"left",validator:t=>Object.values(et).includes(t)},footerClass:{type:[String,Array,Object],default:""},footerHeight:{type:String,default:"64px"},responsiveBreakpoint:{type:String,default:null,validator:t=>an.includes(t)}},computed:{isInverted(){return this.sidebarPosition===et.RIGHT}}};function so(t,a,n,r,i,o){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["root-layout","d-root-layout",{"d-root-layout--fixed":n.fixed,"d-root-layout--inverted":o.isInverted,[`d-root-layout__responsive--${n.responsiveBreakpoint}`]:!!n.responsiveBreakpoint}]),"data-qa":"dt-root-layout"},[e.createElementVNode("header",{class:e.normalizeClass(["d-root-layout__header",{"d-root-layout__header--sticky":n.headerSticky},n.headerClass]),"data-qa":"dt-root-layout-header"},[e.renderSlot(t.$slots,"header")],2),e.createElementVNode("aside",{ref:"root-layout-sidebar",class:e.normalizeClass(["d-root-layout__sidebar",n.sidebarClass]),"data-qa":"dt-root-layout-sidebar"},[e.renderSlot(t.$slots,"sidebar")],2),e.createElementVNode("main",{ref:"root-layout-content",class:e.normalizeClass(["d-root-layout__content",n.contentClass]),"data-qa":"dt-root-layout-content",tabindex:"0"},[e.renderSlot(t.$slots,"default")],2),e.createElementVNode("footer",{class:e.normalizeClass(["d-root-layout__footer",n.footerClass]),"data-qa":"dt-root-layout-footer"},[e.renderSlot(t.$slots,"footer")],2)],2)}const lo=u._export_sfc(io,[["render",so]]);const rn={__name:"core_scroller",props:{items:{type:Array,required:!0},keyField:{type:String,default:"id"},direction:{type:String,default:"vertical",validator:t=>["vertical","horizontal"].includes(t)},itemSize:{type:Number,default:null},minItemSize:{type:[Number,String],default:null},sizeField:{type:String,default:"size"},buffer:{type:Number,default:200},skipHover:{type:Boolean,default:!1},listTag:{type:String,default:"div"},itemTag:{type:String,default:"div"},listClass:{type:[String,Object,Array],default:""},itemClass:{type:[String,Object,Array],default:""}},emits:["user-position"],setup(t,{expose:a,emit:n}){const r=t,i=e.reactive(new Map),o=e.reactive(new Map),s=e.ref([]),d=e.ref(null),l=e.ref(!1),m=e.ref(null),p=e.ref("top");let c=0,g=0,f=!1,b=0,C=null,I=null,L=0,W=0;const z=e.computed(()=>{if(r.itemSize===null){const S={"-1":{accumulator:0}},E=r.items,w=r.sizeField,F=r.minItemSize;let M=1e4,Y=0,N;for(let V=0,ce=E.length;V<ce;V++)N=E[V][w]||F,N<M&&(M=N),Y+=N,S[V]={accumulator:Y,size:N};return I=M,S}return[]}),se=e.computed(()=>r.items.length&&typeof r.items[0]!="object"),Re=e.computed(()=>{const S={};for(let E=0,w=r.items.length;E<w;E++)S[r.items[E][r.keyField]]=E;return S});e.watch(z,()=>{ae(!1)},{deep:!0}),e.onMounted(()=>{e.nextTick(()=>{ae(!0),l.value=!0})});const K=(S,E,w,F,M)=>{const Y=e.markRaw({id:W++,index:E,used:!0,key:F,type:M}),N=e.shallowReactive({item:w,position:0,nr:Y});return S.value.push(N),N},q=(S,E=!1)=>{const w=o,F=S.nr.type;let M=w.get(F);M||(M=[],w.set(F,M)),M.push(S),E||(S.nr.used=!1,S.position=-9999)},le=()=>{const S=r.direction==="vertical";let E;return S?E={start:m.value.scrollTop,end:m.value.scrollTop+m.value.clientHeight}:E={start:m.value.scrollLeft,end:m.value.scrollLeft+m.value.clientWidth},E},de=()=>{throw setTimeout(()=>{console.error("It seems the scroller element isn't scrolling, so it tries to render all the items at once.","Scroller:",m),console.error("Make sure the scroller has a fixed height (or width) and 'overflow-y' (or 'overflow-x') set to 'auto' so it can scroll correctly and only render the items visible in the scroll viewport.")}),new Error("Rendered items limit reached")},ne=()=>{s.value.sort((S,E)=>S.nr.index-E.nr.index)},ae=(S,E=!1)=>{var Ct,wt,Et,kt,Dt,It,Tt,Ot;const w=r.itemSize,F=I,M=se.value?null:r.keyField,Y=r.items,N=Y.length,V=z.value,ce=i,yt=o,ve=s,kn=Re;let R,A,ye,H,j;if(!N)R=A=H=j=ye=0;else{const T=le();if(E){let B=T.start-b.value;if(B<0&&(B=-B),w===null&&B<F.value||B<w)return{continuous:!0}}b=T.start;const P=r.buffer;if(T.start-=P,T.end+=P,w===null){let B,ue=0,Nt=N-1,$=~~(N/2),Lt;do Lt=$,B=(Ct=V[$])==null?void 0:Ct.accumulator,B<T.start?ue=$:$<N-1&&((wt=V[$+1])==null?void 0:wt.accumulator)>T.start&&(Nt=$),$=~~((ue+Nt)/2);while($!==Lt);for($<0&&($=0),R=$,ye=(Et=V[N-1])==null?void 0:Et.accumulator,A=$;A<N&&((kt=V[A])==null?void 0:kt.accumulator)<T.end;A++);for(A===-1?A=Y.length-1:(A++,A>N&&(A=N)),H=c;H<N&&((Dt=V[H])==null?void 0:Dt.accumulator)<T.start;H++);for(j=H;j<N&&((It=V[j])==null?void 0:It.accumulator)<T.end;j++);}else{R=~~(T.start/w);const B=R%1;R-=B,A=Math.ceil(T.end/w),H=Math.max(0,Math.floor(T.start/w)),j=Math.floor(T.end/w),R<0&&(R=0),A>N&&(A=N),H<0&&(H=0),j>N&&(j=N),ye=Math.ceil(N/1)*w}}A-R>1e3&&de(),L=ye;let k;const Se=R<=g&&A>=R;if(Se)for(let T=0,P=ve.value.length;T<P;T++)k=ve.value[T],k!=null&&k.nr.used&&(S&&(k.nr.index=kn[k.item[M]]),(k.nr.index==null||k.nr.index<R||k.nr.index>=A)&&q(k));const St=Se?null:new Map;let U,G,Ce;for(let T=R;T<A;T++){U=Y[T];const P=M?U==null?void 0:U[M]:U;if(P==null)throw new Error(`Key is ${P} on item (keyField is '${M}')`);if(k=ce.get(P),!w&&!((Tt=V[T])!=null&&Tt.size)){k&&q(k);continue}G=U.type;let B=yt.get(G);if(!k)Se?B&&B.length?k=B.pop():k=K(ve,T,U,P,G):(Ce=St.get(G)||0,(!B||Ce>=B.length)&&(k=K(ve,T,U,P,G),q(k,!0),B=yt.get(G)),k=B[Ce],St.set(G,Ce+1)),ce.delete(k.nr.key),k.nr.used=!0,k.nr.index=T,k.nr.key=P,k.nr.type=G,ce.set(P,k);else if(!k.nr.used&&(k.nr.used=!0,B)){const ue=B.indexOf(k);ue!==-1&&B.splice(ue,1)}k.item=U,w===null?(k.position=(Ot=V[T-1])==null?void 0:Ot.accumulator,k.offset=0):(k.position=Math.floor(T)*w,k.offset=T%1*w)}return c=R,g=A,clearTimeout(C),C=setTimeout(ne,300),{continuous:Se}},Pe=S=>{const E=r.direction==="vertical"?{scroll:"scrollTop",start:"top"}:{scroll:"scrollLeft",start:"left"},w=m.value,F=E.scroll;w[F]=S},$e=S=>{var w;let E;r.itemSize===null?E=S>0?(w=z.value[S-1])==null?void 0:w.accumulator:0:E=Math.floor(S)*r.itemSize,Pe(E)},ze=()=>{const S=m.value;p.value!=="middle"&&(p.value="middle",n("user-position","middle")),S.scrollTop===0&&(p.value="top",n("user-position","top")),S.scrollTop+S.clientHeight===S.scrollHeight&&(p.value="bottom",n("user-position","bottom")),f||(f=!0,requestAnimationFrame(()=>{f=!1,ae(!1,!0)}))};return a({scrollToItem:$e,_updateVisibleItems:ae}),(S,E)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"scroller",ref:m,class:e.normalizeClass(["vue-recycle-scroller",{ready:l.value,[`direction-${t.direction}`]:!0}]),onScrollPassive:ze},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.listTag),{ref:"wrapper",style:e.normalizeStyle({[t.direction==="vertical"?"minHeight":"minWidth"]:`${e.unref(L)}px`}),class:e.normalizeClass(["vue-recycle-scroller__item-wrapper",t.listClass])},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,w=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.itemTag),e.mergeProps({key:w.nr.id,style:l.value?{transform:`translate${t.direction==="vertical"?"Y":"X"}(${w.position}px) translate${t.direction==="vertical"?"X":"Y"}(${w.offset}px)`,width:void 0,height:void 0}:null,class:["vue-recycle-scroller__item-view",[t.itemClass,{hover:!t.skipHover&&d.value===w.nr.key}]]},e.toHandlers(t.skipHover?{}:{mouseenter:()=>{d.value=w.nr.key},mouseleave:()=>{d.value=null}})),{default:e.withCtx(()=>[e.renderSlot(S.$slots,"default",{item:w.item,index:w.nr.index,active:w.nr.used})]),_:2},1040,["style","class"]))),128))]),_:3},8,["style","class"]))],34))}},co={name:"DtScrollerItem",inject:["vscrollData","vscrollParent","vscrollResizeObserver"],props:{item:{required:!0},watchData:{type:Boolean,default:!1},active:{type:Boolean,required:!0},index:{type:Number,default:void 0},sizeDependencies:{type:[Array,Object],default:null},tag:{type:String,default:"div"}},computed:{id(){if(this.vscrollData.simpleArray)return this.index;if(this.vscrollData.keyField in this.item)return this.item[this.vscrollData.keyField];throw new Error(`keyField '${this.vscrollData.keyField}' not found in your item. You should set a valid keyField prop on your Scroller`)},size(){return this.vscrollData.sizes[this.id]||0},finalActive(){return this.active&&this.vscrollData.active}},watch:{watchData:"updateWatchData",id(t,a){if(this.$el.$_vs_id=this.id,this.size||this.onDataUpdate(),this.$_sizeObserved){const n=this.vscrollData.sizes[a],r=this.vscrollData.sizes[t];n!=null&&n!==r&&this.applySize(n)}},finalActive(t){this.size||(t?this.vscrollParent.$_undefinedMap[this.id]||(this.vscrollParent.$_undefinedSizes++,this.vscrollParent.$_undefinedMap[this.id]=!0):this.vscrollParent.$_undefinedMap[this.id]&&(this.vscrollParent.$_undefinedSizes--,this.vscrollParent.$_undefinedMap[this.id]=!1)),this.vscrollResizeObserver?t?this.observeSize():this.unobserveSize():t&&this.$_pendingVScrollUpdate===this.id&&this.updateSize()}},created(){if(!this.$isServer&&(this.$_forceNextVScrollUpdate=null,this.updateWatchData(),!this.vscrollResizeObserver))for(const t in this.sizeDependencies)this.$watch(()=>this.sizeDependencies[t],this.onDataUpdate)},mounted(){this.finalActive&&(this.updateSize(),this.observeSize())},beforeUnmount(){this.unobserveSize()},methods:{updateSize(){this.finalActive?this.$_pendingSizeUpdate!==this.id&&(this.$_pendingSizeUpdate=this.id,this.$_forceNextVScrollUpdate=null,this.$_pendingVScrollUpdate=null,this.computeSize(this.id)):this.$_forceNextVScrollUpdate=this.id},updateWatchData(){this.watchData&&!this.vscrollResizeObserver?this.$_watchData=this.$watch("item",()=>{this.onDataUpdate()},{deep:!0}):this.$_watchData&&(this.$_watchData(),this.$_watchData=null)},onVscrollUpdate({force:t}){!this.finalActive&&t&&(this.$_pendingVScrollUpdate=this.id),(this.$_forceNextVScrollUpdate===this.id||t||!this.size)&&this.updateSize()},onDataUpdate(){this.updateSize()},computeSize(t){this.$nextTick(()=>{if(this.id===t){const a=this.$el.offsetWidth,n=this.$el.offsetHeight;this.applyWidthHeight(a,n)}this.$_pendingSizeUpdate=null})},applyWidthHeight(t,a){const n=~~(this.vscrollParent.direction==="vertical"?a:t);n&&this.size!==n&&this.applySize(n)},applySize(t){this.vscrollParent.$_undefinedMap[this.id]&&(this.vscrollParent.$_undefinedSizes--,this.vscrollParent.$_undefinedMap[this.id]=void 0),this.vscrollData.sizes[this.id]=t},observeSize(){this.vscrollResizeObserver&&(this.$_sizeObserved||(this.vscrollResizeObserver.observe(this.$el),this.$el.$_vs_id=this.id,this.$el.$_vs_onResize=this.onResize,this.$_sizeObserved=!0))},unobserveSize(){this.vscrollResizeObserver&&this.$_sizeObserved&&(this.vscrollResizeObserver.unobserve(this.$el),this.$el.$_vs_onResize=void 0,this.$_sizeObserved=!1)},onResize(t,a,n){this.id===t&&this.applyWidthHeight(a,n)}},render(){return e.h(this.tag,this.$slots.default())}},uo={name:"DynamicScroller",components:{CoreScroller:rn,DtScrollerItem:co},provide(){return typeof ResizeObserver<"u"&&(this.$_resizeObserver=new ResizeObserver(t=>{requestAnimationFrame(()=>{if(Array.isArray(t)){for(const a of t)if(a.target&&a.target.$_vs_onResize){let n,r;if(a.borderBoxSize){const i=a.borderBoxSize[0];n=i.inlineSize,r=i.blockSize}else n=a.contentRect.width,r=a.contentRect.height;a.target.$_vs_onResize(a.target.$_vs_id,n,r)}}})})),{vscrollData:this.vscrollData,vscrollParent:this,vscrollResizeObserver:this.$_resizeObserver}},inheritAttrs:!1,props:{items:{type:Array,required:!0},dynamic:{type:Boolean,default:!1},keyField:{type:String,default:"id"},direction:{type:String,default:"vertical",validator:t=>["vertical","horizontal"].includes(t)},listTag:{type:String,default:"div"},itemTag:{type:String,default:"div"},minItemSize:{type:[Number,String]}},data(){return{vscrollData:{active:!0,sizes:{},keyField:this.keyField,simpleArray:!1}}},computed:{simpleArray(){return this.items.length&&typeof this.items[0]!="object"},itemsWithSize(){const t=[],{items:a,keyField:n,simpleArray:r}=this,i=this.vscrollData.sizes,o=a.length;for(let s=0;s<o;s++){const d=a[s],l=r?s:d[n];let m=i[l];typeof m>"u"&&!this.$_undefinedMap[l]&&(m=0),t.push({item:d,[n]:l,size:m})}return t}},watch:{simpleArray:{handler(t){this.vscrollData.simpleArray=t},immediate:!0},itemsWithSize(t,a){const n=this.$el.scrollTop;let r=0,i=0;const o=Math.min(t.length,a.length);for(let d=0;d<o&&!(r>=n);d++)r+=a[d].size||this.minItemSize,i+=t[d].size||this.minItemSize;const s=i-r;s!==0&&(this.$el.scrollTop+=s)}},beforeCreate(){this.$_updates=[],this.$_undefinedSizes=0,this.$_undefinedMap={}},activated(){this.vscrollData.active=!0},deactivated(){this.vscrollData.active=!1},methods:{dynamicScrollerUpdateItems(){const t=this.$refs.scroller;t&&t._updateVisibleItems(!0)},dynamicScrollerUpdateItemsFromBottom(){const t=this.$refs.scroller;t&&t._updateVisibleItems(!1,!0)},scrollToItem(t){const a=this.$refs.scroller;a&&a.scrollToItem(t)},scrollToBottom(){if(this.$_scrollingToBottom)return;this.$_scrollingToBottom=!0;const t=this.$el;this.$nextTick(()=>{t.scrollTop=t.scrollHeight+5e3;const a=()=>{t.scrollTop=t.scrollHeight+5e3,requestAnimationFrame(()=>{t.scrollTop=t.scrollHeight+5e3,this.$_undefinedSizes===0?this.$_scrollingToBottom=!1:requestAnimationFrame(a)})};requestAnimationFrame(a)})}}};function mo(t,a,n,r,i,o){const s=e.resolveComponent("dt-scroller-item"),d=e.resolveComponent("core-scroller");return e.openBlock(),e.createBlock(d,e.mergeProps({ref:"scroller",items:o.itemsWithSize,"min-item-size":n.minItemSize,direction:n.direction,"key-field":n.keyField,"list-tag":n.listTag,"item-tag":n.itemTag},t.$attrs),{default:e.withCtx(({item:l,index:m,active:p})=>[e.createVNode(s,{item:l,active:p,"size-dependencies":[l.message],"data-index":m},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default",e.normalizeProps(e.guardReactiveProps({item:l.item,index:m,active:p,itemWithSize:l})))]),_:2},1032,["item","active","size-dependencies","data-index"])]),_:3},16,["items","min-item-size","direction","key-field","list-tag","item-tag"])}const ho=u._export_sfc(uo,[["render",mo]]),fo={__name:"DtScroller",props:{direction:{type:String,default:"vertical",validator:t=>["vertical","horizontal"].includes(t)},dynamic:{type:Boolean,default:!1},itemSize:{type:Number,default:null},itemTag:{type:String,default:"div"},items:{type:Array,required:!0},keyField:{type:String,default:"id"},listTag:{type:String,default:"div"},minItemSize:{type:[Number,String],default:null},scrollerHeight:{type:[String,Number],default:"100%"},scrollerWidth:{type:[String,Number],default:"100%"}},emits:["user-position"],setup(t,{expose:a,emit:n}){const r=t;e.provide("emit",n);const i=e.ref(null),o=e.computed(()=>({width:typeof r.scrollerWidth=="number"?`${r.scrollerWidth}px`:r.scrollerWidth,height:typeof r.scrollerHeight=="number"?`${r.scrollerHeight}px`:r.scrollerHeight}));e.watch(r,()=>{p()},{deep:!0,immediate:!0});function s(){i.value&&i.value.scrollToBottom()}function d(c){i.value&&i.value.scrollToItem(c)}function l(){i.value&&(r.dynamic?i.value.dynamicScrollerUpdateItems():i.value._updateVisibleItems(!0))}function m(){i.value&&(r.dynamic?i.value.dynamicScrollerUpdateItemsFromBottom():i.value._updateVisibleItems(!1,!0))}function p(){r.dynamic&&!r.minItemSize&&console.error("scroller error: 'minItemSize' is required on 'dynamic' mode."),!r.dynamic&&!r.itemSize&&console.error("scroller error: 'itemSize' is required.")}return a({scrollToBottom:s,scrollToItem:d,updateItems:l,updateItemsFromBottom:m}),(c,g)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.dynamic?ho:rn),{ref_key:"scroller",ref:i,"data-qa":"dt-scroller",items:t.items,"item-size":t.itemSize,"min-item-size":t.minItemSize,direction:t.direction,"key-field":t.keyField,"list-tag":t.listTag,"item-tag":t.itemTag,style:e.normalizeStyle(o.value),tabindex:"0",onUserPosition:g[0]||(g[0]=f=>c.$emit("user-position",f))},{default:e.withCtx(({item:f,index:b,active:C})=>[e.renderSlot(c.$slots,"default",e.normalizeProps(e.guardReactiveProps({item:f,index:b,active:C})))]),_:3},40,["items","item-size","min-item-size","direction","key-field","list-tag","item-tag","style"]))}},on=0,we="MMMM";function ie(t){"@babel/helpers - typeof";return ie=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},ie(t)}function O(t){if(t===null||t===!0||t===!1)return NaN;var a=Number(t);return isNaN(a)?a:a<0?Math.ceil(a):Math.floor(a)}function v(t,a){if(a.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+a.length+" present")}function y(t){v(1,arguments);var a=Object.prototype.toString.call(t);return t instanceof Date||ie(t)==="object"&&a==="[object Date]"?new Date(t.getTime()):typeof t=="number"||a==="[object Number]"?new Date(t):((typeof t=="string"||a==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function Oe(t,a){v(2,arguments);var n=y(t),r=O(a);return isNaN(r)?new Date(NaN):(r&&n.setDate(n.getDate()+r),n)}function mt(t,a){v(2,arguments);var n=y(t),r=O(a);if(isNaN(r))return new Date(NaN);if(!r)return n;var i=n.getDate(),o=new Date(n.getTime());o.setMonth(n.getMonth()+r+1,0);var s=o.getDate();return i>=s?o:(n.setFullYear(o.getFullYear(),o.getMonth(),i),n)}function me(t,a){if(v(2,arguments),!a||ie(a)!=="object")return new Date(NaN);var n=a.years?O(a.years):0,r=a.months?O(a.months):0,i=a.weeks?O(a.weeks):0,o=a.days?O(a.days):0,s=a.hours?O(a.hours):0,d=a.minutes?O(a.minutes):0,l=a.seconds?O(a.seconds):0,m=y(t),p=r||n?mt(m,r+n*12):m,c=o||i?Oe(p,o+i*7):p,g=d+s*60,f=l+g*60,b=f*1e3,C=new Date(c.getTime()+b);return C}function po(t,a){v(2,arguments);var n=y(t).getTime(),r=O(a);return new Date(n+r)}var go={};function te(){return go}function tt(t,a){var n,r,i,o,s,d,l,m;v(1,arguments);var p=te(),c=O((n=(r=(i=(o=a==null?void 0:a.weekStartsOn)!==null&&o!==void 0?o:a==null||(s=a.locale)===null||s===void 0||(d=s.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&i!==void 0?i:p.weekStartsOn)!==null&&r!==void 0?r:(l=p.locale)===null||l===void 0||(m=l.options)===null||m===void 0?void 0:m.weekStartsOn)!==null&&n!==void 0?n:0);if(!(c>=0&&c<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var g=y(t),f=g.getDay(),b=(f<c?7:0)+f-c;return g.setDate(g.getDate()-b),g.setHours(0,0,0,0),g}function ge(t){var a=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return a.setUTCFullYear(t.getFullYear()),t.getTime()-a.getTime()}function De(t){v(1,arguments);var a=y(t);return a.setHours(0,0,0,0),a}var _o=864e5;function bo(t,a){v(2,arguments);var n=De(t),r=De(a),i=n.getTime()-ge(n),o=r.getTime()-ge(r);return Math.round((i-o)/_o)}function ee(t,a){v(2,arguments);var n=y(t),r=y(a),i=n.getTime()-r.getTime();return i<0?-1:i>0?1:i}var vo=6e4,yo=36e5;function sn(t,a){v(2,arguments);var n=De(t),r=De(a);return n.getTime()===r.getTime()}function So(t){return v(1,arguments),t instanceof Date||ie(t)==="object"&&Object.prototype.toString.call(t)==="[object Date]"}function Co(t){if(v(1,arguments),!So(t)&&typeof t!="number")return!1;var a=y(t);return!isNaN(Number(a))}function wo(t,a){v(2,arguments);var n=y(t),r=y(a),i=n.getFullYear()-r.getFullYear(),o=n.getMonth()-r.getMonth();return i*12+o}function Eo(t,a){v(2,arguments);var n=y(t),r=y(a);return n.getFullYear()-r.getFullYear()}function At(t,a){var n=t.getFullYear()-a.getFullYear()||t.getMonth()-a.getMonth()||t.getDate()-a.getDate()||t.getHours()-a.getHours()||t.getMinutes()-a.getMinutes()||t.getSeconds()-a.getSeconds()||t.getMilliseconds()-a.getMilliseconds();return n<0?-1:n>0?1:n}function ko(t,a){v(2,arguments);var n=y(t),r=y(a),i=At(n,r),o=Math.abs(bo(n,r));n.setDate(n.getDate()-i*o);var s=+(At(n,r)===-i),d=i*(o-s);return d===0?0:d}function ht(t,a){return v(2,arguments),y(t).getTime()-y(a).getTime()}var Mt={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(a){return a<0?Math.ceil(a):Math.floor(a)}},Do="trunc";function ft(t){return t?Mt[t]:Mt[Do]}function Io(t,a,n){v(2,arguments);var r=ht(t,a)/yo;return ft(n==null?void 0:n.roundingMethod)(r)}function To(t,a,n){v(2,arguments);var r=ht(t,a)/vo;return ft(n==null?void 0:n.roundingMethod)(r)}function Oo(t){v(1,arguments);var a=y(t);return a.setHours(23,59,59,999),a}function No(t){v(1,arguments);var a=y(t),n=a.getMonth();return a.setFullYear(a.getFullYear(),n+1,0),a.setHours(23,59,59,999),a}function Lo(t){v(1,arguments);var a=y(t);return Oo(a).getTime()===No(a).getTime()}function ln(t,a){v(2,arguments);var n=y(t),r=y(a),i=ee(n,r),o=Math.abs(wo(n,r)),s;if(o<1)s=0;else{n.getMonth()===1&&n.getDate()>27&&n.setDate(30),n.setMonth(n.getMonth()-i*o);var d=ee(n,r)===-i;Lo(y(t))&&o===1&&ee(t,r)===1&&(d=!1),s=i*(o-Number(d))}return s===0?0:s}function dn(t,a,n){v(2,arguments);var r=ht(t,a)/1e3;return ft(n==null?void 0:n.roundingMethod)(r)}function Bo(t,a){v(2,arguments);var n=y(t),r=y(a),i=ee(n,r),o=Math.abs(Eo(n,r));n.setFullYear(1584),r.setFullYear(1584);var s=ee(n,r)===-i,d=i*(o-Number(s));return d===0?0:d}function xo(t,a){v(2,arguments);var n=O(a);return po(t,-n)}var Ao=864e5;function Mo(t){v(1,arguments);var a=y(t),n=a.getTime();a.setUTCMonth(0,1),a.setUTCHours(0,0,0,0);var r=a.getTime(),i=n-r;return Math.floor(i/Ao)+1}function Ie(t){v(1,arguments);var a=1,n=y(t),r=n.getUTCDay(),i=(r<a?7:0)+r-a;return n.setUTCDate(n.getUTCDate()-i),n.setUTCHours(0,0,0,0),n}function cn(t){v(1,arguments);var a=y(t),n=a.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var i=Ie(r),o=new Date(0);o.setUTCFullYear(n,0,4),o.setUTCHours(0,0,0,0);var s=Ie(o);return a.getTime()>=i.getTime()?n+1:a.getTime()>=s.getTime()?n:n-1}function Vo(t){v(1,arguments);var a=cn(t),n=new Date(0);n.setUTCFullYear(a,0,4),n.setUTCHours(0,0,0,0);var r=Ie(n);return r}var Ro=6048e5;function Po(t){v(1,arguments);var a=y(t),n=Ie(a).getTime()-Vo(a).getTime();return Math.round(n/Ro)+1}function Te(t,a){var n,r,i,o,s,d,l,m;v(1,arguments);var p=te(),c=O((n=(r=(i=(o=a==null?void 0:a.weekStartsOn)!==null&&o!==void 0?o:a==null||(s=a.locale)===null||s===void 0||(d=s.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&i!==void 0?i:p.weekStartsOn)!==null&&r!==void 0?r:(l=p.locale)===null||l===void 0||(m=l.options)===null||m===void 0?void 0:m.weekStartsOn)!==null&&n!==void 0?n:0);if(!(c>=0&&c<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var g=y(t),f=g.getUTCDay(),b=(f<c?7:0)+f-c;return g.setUTCDate(g.getUTCDate()-b),g.setUTCHours(0,0,0,0),g}function un(t,a){var n,r,i,o,s,d,l,m;v(1,arguments);var p=y(t),c=p.getUTCFullYear(),g=te(),f=O((n=(r=(i=(o=a==null?void 0:a.firstWeekContainsDate)!==null&&o!==void 0?o:a==null||(s=a.locale)===null||s===void 0||(d=s.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&i!==void 0?i:g.firstWeekContainsDate)!==null&&r!==void 0?r:(l=g.locale)===null||l===void 0||(m=l.options)===null||m===void 0?void 0:m.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(f>=1&&f<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var b=new Date(0);b.setUTCFullYear(c+1,0,f),b.setUTCHours(0,0,0,0);var C=Te(b,a),I=new Date(0);I.setUTCFullYear(c,0,f),I.setUTCHours(0,0,0,0);var L=Te(I,a);return p.getTime()>=C.getTime()?c+1:p.getTime()>=L.getTime()?c:c-1}function $o(t,a){var n,r,i,o,s,d,l,m;v(1,arguments);var p=te(),c=O((n=(r=(i=(o=a==null?void 0:a.firstWeekContainsDate)!==null&&o!==void 0?o:a==null||(s=a.locale)===null||s===void 0||(d=s.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&i!==void 0?i:p.firstWeekContainsDate)!==null&&r!==void 0?r:(l=p.locale)===null||l===void 0||(m=l.options)===null||m===void 0?void 0:m.firstWeekContainsDate)!==null&&n!==void 0?n:1),g=un(t,a),f=new Date(0);f.setUTCFullYear(g,0,c),f.setUTCHours(0,0,0,0);var b=Te(f,a);return b}var zo=6048e5;function Fo(t,a){v(1,arguments);var n=y(t),r=Te(n,a).getTime()-$o(n,a).getTime();return Math.round(r/zo)+1}function D(t,a){for(var n=t<0?"-":"",r=Math.abs(t).toString();r.length<a;)r="0"+r;return n+r}var qo={y:function(a,n){var r=a.getUTCFullYear(),i=r>0?r:1-r;return D(n==="yy"?i%100:i,n.length)},M:function(a,n){var r=a.getUTCMonth();return n==="M"?String(r+1):D(r+1,2)},d:function(a,n){return D(a.getUTCDate(),n.length)},a:function(a,n){var r=a.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(a,n){return D(a.getUTCHours()%12||12,n.length)},H:function(a,n){return D(a.getUTCHours(),n.length)},m:function(a,n){return D(a.getUTCMinutes(),n.length)},s:function(a,n){return D(a.getUTCSeconds(),n.length)},S:function(a,n){var r=n.length,i=a.getUTCMilliseconds(),o=Math.floor(i*Math.pow(10,r-3));return D(o,n.length)}};const Z=qo;var re={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Ho={G:function(a,n,r){var i=a.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return r.era(i,{width:"abbreviated"});case"GGGGG":return r.era(i,{width:"narrow"});case"GGGG":default:return r.era(i,{width:"wide"})}},y:function(a,n,r){if(n==="yo"){var i=a.getUTCFullYear(),o=i>0?i:1-i;return r.ordinalNumber(o,{unit:"year"})}return Z.y(a,n)},Y:function(a,n,r,i){var o=un(a,i),s=o>0?o:1-o;if(n==="YY"){var d=s%100;return D(d,2)}return n==="Yo"?r.ordinalNumber(s,{unit:"year"}):D(s,n.length)},R:function(a,n){var r=cn(a);return D(r,n.length)},u:function(a,n){var r=a.getUTCFullYear();return D(r,n.length)},Q:function(a,n,r){var i=Math.ceil((a.getUTCMonth()+1)/3);switch(n){case"Q":return String(i);case"QQ":return D(i,2);case"Qo":return r.ordinalNumber(i,{unit:"quarter"});case"QQQ":return r.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(i,{width:"wide",context:"formatting"})}},q:function(a,n,r){var i=Math.ceil((a.getUTCMonth()+1)/3);switch(n){case"q":return String(i);case"qq":return D(i,2);case"qo":return r.ordinalNumber(i,{unit:"quarter"});case"qqq":return r.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(i,{width:"wide",context:"standalone"})}},M:function(a,n,r){var i=a.getUTCMonth();switch(n){case"M":case"MM":return Z.M(a,n);case"Mo":return r.ordinalNumber(i+1,{unit:"month"});case"MMM":return r.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(i,{width:"wide",context:"formatting"})}},L:function(a,n,r){var i=a.getUTCMonth();switch(n){case"L":return String(i+1);case"LL":return D(i+1,2);case"Lo":return r.ordinalNumber(i+1,{unit:"month"});case"LLL":return r.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(i,{width:"wide",context:"standalone"})}},w:function(a,n,r,i){var o=Fo(a,i);return n==="wo"?r.ordinalNumber(o,{unit:"week"}):D(o,n.length)},I:function(a,n,r){var i=Po(a);return n==="Io"?r.ordinalNumber(i,{unit:"week"}):D(i,n.length)},d:function(a,n,r){return n==="do"?r.ordinalNumber(a.getUTCDate(),{unit:"date"}):Z.d(a,n)},D:function(a,n,r){var i=Mo(a);return n==="Do"?r.ordinalNumber(i,{unit:"dayOfYear"}):D(i,n.length)},E:function(a,n,r){var i=a.getUTCDay();switch(n){case"E":case"EE":case"EEE":return r.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(i,{width:"short",context:"formatting"});case"EEEE":default:return r.day(i,{width:"wide",context:"formatting"})}},e:function(a,n,r,i){var o=a.getUTCDay(),s=(o-i.weekStartsOn+8)%7||7;switch(n){case"e":return String(s);case"ee":return D(s,2);case"eo":return r.ordinalNumber(s,{unit:"day"});case"eee":return r.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(o,{width:"short",context:"formatting"});case"eeee":default:return r.day(o,{width:"wide",context:"formatting"})}},c:function(a,n,r,i){var o=a.getUTCDay(),s=(o-i.weekStartsOn+8)%7||7;switch(n){case"c":return String(s);case"cc":return D(s,n.length);case"co":return r.ordinalNumber(s,{unit:"day"});case"ccc":return r.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(o,{width:"narrow",context:"standalone"});case"cccccc":return r.day(o,{width:"short",context:"standalone"});case"cccc":default:return r.day(o,{width:"wide",context:"standalone"})}},i:function(a,n,r){var i=a.getUTCDay(),o=i===0?7:i;switch(n){case"i":return String(o);case"ii":return D(o,n.length);case"io":return r.ordinalNumber(o,{unit:"day"});case"iii":return r.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(i,{width:"short",context:"formatting"});case"iiii":default:return r.day(i,{width:"wide",context:"formatting"})}},a:function(a,n,r){var i=a.getUTCHours(),o=i/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(a,n,r){var i=a.getUTCHours(),o;switch(i===12?o=re.noon:i===0?o=re.midnight:o=i/12>=1?"pm":"am",n){case"b":case"bb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(a,n,r){var i=a.getUTCHours(),o;switch(i>=17?o=re.evening:i>=12?o=re.afternoon:i>=4?o=re.morning:o=re.night,n){case"B":case"BB":case"BBB":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(a,n,r){if(n==="ho"){var i=a.getUTCHours()%12;return i===0&&(i=12),r.ordinalNumber(i,{unit:"hour"})}return Z.h(a,n)},H:function(a,n,r){return n==="Ho"?r.ordinalNumber(a.getUTCHours(),{unit:"hour"}):Z.H(a,n)},K:function(a,n,r){var i=a.getUTCHours()%12;return n==="Ko"?r.ordinalNumber(i,{unit:"hour"}):D(i,n.length)},k:function(a,n,r){var i=a.getUTCHours();return i===0&&(i=24),n==="ko"?r.ordinalNumber(i,{unit:"hour"}):D(i,n.length)},m:function(a,n,r){return n==="mo"?r.ordinalNumber(a.getUTCMinutes(),{unit:"minute"}):Z.m(a,n)},s:function(a,n,r){return n==="so"?r.ordinalNumber(a.getUTCSeconds(),{unit:"second"}):Z.s(a,n)},S:function(a,n){return Z.S(a,n)},X:function(a,n,r,i){var o=i._originalDate||a,s=o.getTimezoneOffset();if(s===0)return"Z";switch(n){case"X":return Rt(s);case"XXXX":case"XX":return J(s);case"XXXXX":case"XXX":default:return J(s,":")}},x:function(a,n,r,i){var o=i._originalDate||a,s=o.getTimezoneOffset();switch(n){case"x":return Rt(s);case"xxxx":case"xx":return J(s);case"xxxxx":case"xxx":default:return J(s,":")}},O:function(a,n,r,i){var o=i._originalDate||a,s=o.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+Vt(s,":");case"OOOO":default:return"GMT"+J(s,":")}},z:function(a,n,r,i){var o=i._originalDate||a,s=o.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+Vt(s,":");case"zzzz":default:return"GMT"+J(s,":")}},t:function(a,n,r,i){var o=i._originalDate||a,s=Math.floor(o.getTime()/1e3);return D(s,n.length)},T:function(a,n,r,i){var o=i._originalDate||a,s=o.getTime();return D(s,n.length)}};function Vt(t,a){var n=t>0?"-":"+",r=Math.abs(t),i=Math.floor(r/60),o=r%60;if(o===0)return n+String(i);var s=a||"";return n+String(i)+s+D(o,2)}function Rt(t,a){if(t%60===0){var n=t>0?"-":"+";return n+D(Math.abs(t)/60,2)}return J(t,a)}function J(t,a){var n=a||"",r=t>0?"-":"+",i=Math.abs(t),o=D(Math.floor(i/60),2),s=D(i%60,2);return r+o+n+s}const Uo=Ho;var Pt=function(a,n){switch(a){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},mn=function(a,n){switch(a){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},Wo=function(a,n){var r=a.match(/(P+)(p+)?/)||[],i=r[1],o=r[2];if(!o)return Pt(a,n);var s;switch(i){case"P":s=n.dateTime({width:"short"});break;case"PP":s=n.dateTime({width:"medium"});break;case"PPP":s=n.dateTime({width:"long"});break;case"PPPP":default:s=n.dateTime({width:"full"});break}return s.replace("{{date}}",Pt(i,n)).replace("{{time}}",mn(o,n))},Ko={p:mn,P:Wo};const Yo=Ko;var jo=["D","DD"],Go=["YY","YYYY"];function Zo(t){return jo.indexOf(t)!==-1}function Xo(t){return Go.indexOf(t)!==-1}function $t(t,a,n){if(t==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(a,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(a,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(a,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(a,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Qo={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Jo=function(a,n,r){var i,o=Qo[a];return typeof o=="string"?i=o:n===1?i=o.one:i=o.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+i:i+" ago":i};const ei=Jo;function Fe(t){return function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=a.width?String(a.width):t.defaultWidth,r=t.formats[n]||t.formats[t.defaultWidth];return r}}var ti={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},ni={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},ai={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},ri={date:Fe({formats:ti,defaultWidth:"full"}),time:Fe({formats:ni,defaultWidth:"full"}),dateTime:Fe({formats:ai,defaultWidth:"full"})};const oi=ri;var ii={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},si=function(a,n,r,i){return ii[a]};const li=si;function he(t){return function(a,n){var r=n!=null&&n.context?String(n.context):"standalone",i;if(r==="formatting"&&t.formattingValues){var o=t.defaultFormattingWidth||t.defaultWidth,s=n!=null&&n.width?String(n.width):o;i=t.formattingValues[s]||t.formattingValues[o]}else{var d=t.defaultWidth,l=n!=null&&n.width?String(n.width):t.defaultWidth;i=t.values[l]||t.values[d]}var m=t.argumentCallback?t.argumentCallback(a):a;return i[m]}}var di={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},ci={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},ui={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},mi={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},hi={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},fi={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},pi=function(a,n){var r=Number(a),i=r%100;if(i>20||i<10)switch(i%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},gi={ordinalNumber:pi,era:he({values:di,defaultWidth:"wide"}),quarter:he({values:ci,defaultWidth:"wide",argumentCallback:function(a){return a-1}}),month:he({values:ui,defaultWidth:"wide"}),day:he({values:mi,defaultWidth:"wide"}),dayPeriod:he({values:hi,defaultWidth:"wide",formattingValues:fi,defaultFormattingWidth:"wide"})};const _i=gi;function fe(t){return function(a){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth],o=a.match(i);if(!o)return null;var s=o[0],d=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(d)?vi(d,function(c){return c.test(s)}):bi(d,function(c){return c.test(s)}),m;m=t.valueCallback?t.valueCallback(l):l,m=n.valueCallback?n.valueCallback(m):m;var p=a.slice(s.length);return{value:m,rest:p}}}function bi(t,a){for(var n in t)if(t.hasOwnProperty(n)&&a(t[n]))return n}function vi(t,a){for(var n=0;n<t.length;n++)if(a(t[n]))return n}function yi(t){return function(a){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=a.match(t.matchPattern);if(!r)return null;var i=r[0],o=a.match(t.parsePattern);if(!o)return null;var s=t.valueCallback?t.valueCallback(o[0]):o[0];s=n.valueCallback?n.valueCallback(s):s;var d=a.slice(i.length);return{value:s,rest:d}}}var Si=/^(\d+)(th|st|nd|rd)?/i,Ci=/\d+/i,wi={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Ei={any:[/^b/i,/^(a|c)/i]},ki={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Di={any:[/1/i,/2/i,/3/i,/4/i]},Ii={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Ti={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Oi={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Ni={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Li={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Bi={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},xi={ordinalNumber:yi({matchPattern:Si,parsePattern:Ci,valueCallback:function(a){return parseInt(a,10)}}),era:fe({matchPatterns:wi,defaultMatchWidth:"wide",parsePatterns:Ei,defaultParseWidth:"any"}),quarter:fe({matchPatterns:ki,defaultMatchWidth:"wide",parsePatterns:Di,defaultParseWidth:"any",valueCallback:function(a){return a+1}}),month:fe({matchPatterns:Ii,defaultMatchWidth:"wide",parsePatterns:Ti,defaultParseWidth:"any"}),day:fe({matchPatterns:Oi,defaultMatchWidth:"wide",parsePatterns:Ni,defaultParseWidth:"any"}),dayPeriod:fe({matchPatterns:Li,defaultMatchWidth:"any",parsePatterns:Bi,defaultParseWidth:"any"})};const Ai=xi;var Mi={code:"en-US",formatDistance:ei,formatLong:oi,formatRelative:li,localize:_i,match:Ai,options:{weekStartsOn:0,firstWeekContainsDate:1}};const pt=Mi;var Vi=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Ri=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Pi=/^'([^]*?)'?$/,$i=/''/g,zi=/[a-zA-Z]/;function Q(t,a,n){var r,i,o,s,d,l,m,p,c,g,f,b,C,I,L,W,z,se;v(2,arguments);var Re=String(a),K=te(),q=(r=(i=n==null?void 0:n.locale)!==null&&i!==void 0?i:K.locale)!==null&&r!==void 0?r:pt,le=O((o=(s=(d=(l=n==null?void 0:n.firstWeekContainsDate)!==null&&l!==void 0?l:n==null||(m=n.locale)===null||m===void 0||(p=m.options)===null||p===void 0?void 0:p.firstWeekContainsDate)!==null&&d!==void 0?d:K.firstWeekContainsDate)!==null&&s!==void 0?s:(c=K.locale)===null||c===void 0||(g=c.options)===null||g===void 0?void 0:g.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!(le>=1&&le<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var de=O((f=(b=(C=(I=n==null?void 0:n.weekStartsOn)!==null&&I!==void 0?I:n==null||(L=n.locale)===null||L===void 0||(W=L.options)===null||W===void 0?void 0:W.weekStartsOn)!==null&&C!==void 0?C:K.weekStartsOn)!==null&&b!==void 0?b:(z=K.locale)===null||z===void 0||(se=z.options)===null||se===void 0?void 0:se.weekStartsOn)!==null&&f!==void 0?f:0);if(!(de>=0&&de<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!q.localize)throw new RangeError("locale must contain localize property");if(!q.formatLong)throw new RangeError("locale must contain formatLong property");var ne=y(t);if(!Co(ne))throw new RangeError("Invalid time value");var ae=ge(ne),Pe=xo(ne,ae),$e={firstWeekContainsDate:le,weekStartsOn:de,locale:q,_originalDate:ne},ze=Re.match(Ri).map(function(S){var E=S[0];if(E==="p"||E==="P"){var w=Yo[E];return w(S,q.formatLong)}return S}).join("").match(Vi).map(function(S){if(S==="''")return"'";var E=S[0];if(E==="'")return Fi(S);var w=Uo[E];if(w)return!(n!=null&&n.useAdditionalWeekYearTokens)&&Xo(S)&&$t(S,a,String(t)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&Zo(S)&&$t(S,a,String(t)),w(Pe,S,q.localize,$e);if(E.match(zi))throw new RangeError("Format string contains an unescaped latin alphabet character `"+E+"`");return S}).join("");return ze}function Fi(t){var a=t.match(Pi);return a?a[1].replace($i,"'"):t}function hn(t,a){if(t==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(t[n]=a[n]);return t}function qi(t){return hn({},t)}var zt=1440,Hi=2520,qe=43200,Ui=86400;function Wi(t,a,n){var r,i;v(2,arguments);var o=te(),s=(r=(i=n==null?void 0:n.locale)!==null&&i!==void 0?i:o.locale)!==null&&r!==void 0?r:pt;if(!s.formatDistance)throw new RangeError("locale must contain formatDistance property");var d=ee(t,a);if(isNaN(d))throw new RangeError("Invalid time value");var l=hn(qi(n),{addSuffix:!!(n!=null&&n.addSuffix),comparison:d}),m,p;d>0?(m=y(a),p=y(t)):(m=y(t),p=y(a));var c=dn(p,m),g=(ge(p)-ge(m))/1e3,f=Math.round((c-g)/60),b;if(f<2)return n!=null&&n.includeSeconds?c<5?s.formatDistance("lessThanXSeconds",5,l):c<10?s.formatDistance("lessThanXSeconds",10,l):c<20?s.formatDistance("lessThanXSeconds",20,l):c<40?s.formatDistance("halfAMinute",0,l):c<60?s.formatDistance("lessThanXMinutes",1,l):s.formatDistance("xMinutes",1,l):f===0?s.formatDistance("lessThanXMinutes",1,l):s.formatDistance("xMinutes",f,l);if(f<45)return s.formatDistance("xMinutes",f,l);if(f<90)return s.formatDistance("aboutXHours",1,l);if(f<zt){var C=Math.round(f/60);return s.formatDistance("aboutXHours",C,l)}else{if(f<Hi)return s.formatDistance("xDays",1,l);if(f<qe){var I=Math.round(f/zt);return s.formatDistance("xDays",I,l)}else if(f<Ui)return b=Math.round(f/qe),s.formatDistance("aboutXMonths",b,l)}if(b=ln(p,m),b<12){var L=Math.round(f/qe);return s.formatDistance("xMonths",L,l)}else{var W=b%12,z=Math.floor(b/12);return W<3?s.formatDistance("aboutXYears",z,l):W<9?s.formatDistance("overXYears",z,l):s.formatDistance("almostXYears",z+1,l)}}var Ki=["years","months","weeks","days","hours","minutes","seconds"];function Yi(t,a){var n,r,i,o,s;if(arguments.length<1)throw new TypeError("1 argument required, but only ".concat(arguments.length," present"));var d=te(),l=(n=(r=a==null?void 0:a.locale)!==null&&r!==void 0?r:d.locale)!==null&&n!==void 0?n:pt,m=(i=a==null?void 0:a.format)!==null&&i!==void 0?i:Ki,p=(o=a==null?void 0:a.zero)!==null&&o!==void 0?o:!1,c=(s=a==null?void 0:a.delimiter)!==null&&s!==void 0?s:" ";if(!l.formatDistance)return"";var g=m.reduce(function(f,b){var C="x".concat(b.replace(/(^.)/,function(L){return L.toUpperCase()})),I=t[b];return typeof I=="number"&&(p||t[b])?f.concat(l.formatDistance(C,I)):f},[]).join(c);return g}function ji(t){v(1,arguments);var a=y(t),n=a.getDate();return n}function Gi(t){v(1,arguments);var a=y(t),n=a.getFullYear(),r=a.getMonth(),i=new Date(0);return i.setFullYear(n,r+1,0),i.setHours(0,0,0,0),i.getDate()}function Ee(t){v(1,arguments);var a=y(t),n=a.getMonth();return n}function nt(t){return v(1,arguments),y(t).getFullYear()}function Zi(t){v(1,arguments);var a=y(t.start),n=y(t.end);if(isNaN(a.getTime()))throw new RangeError("Start Date is invalid");if(isNaN(n.getTime()))throw new RangeError("End Date is invalid");var r={};r.years=Math.abs(Bo(n,a));var i=ee(n,a),o=me(a,{years:i*r.years});r.months=Math.abs(ln(n,o));var s=me(o,{months:i*r.months});r.days=Math.abs(ko(n,s));var d=me(s,{days:i*r.days});r.hours=Math.abs(Io(n,d));var l=me(d,{hours:i*r.hours});r.minutes=Math.abs(To(n,l));var m=me(l,{minutes:i*r.minutes});return r.seconds=Math.abs(dn(n,m)),r}function Xi(t,a){v(2,arguments);var n=y(t),r=y(a);return n.getTime()===r.getTime()}function Qi(t,a,n){v(2,arguments);var r=tt(t,n),i=tt(a,n);return r.getTime()===i.getTime()}function Ji(t,a){v(2,arguments);var n=y(t),r=y(a);return n.getFullYear()===r.getFullYear()}function es(t,a){return v(1,arguments),Qi(t,Date.now(),a)}function ts(t){return v(1,arguments),Ji(t,Date.now())}function ns(t){return v(1,arguments),sn(t,Date.now())}function as(t,a){v(2,arguments);var n=O(a);return Oe(t,-n)}function rs(t){return v(1,arguments),sn(t,as(Date.now(),1))}function os(t,a){v(2,arguments);var n=y(t),r=O(a),i=n.getFullYear(),o=n.getDate(),s=new Date(0);s.setFullYear(i,r,15),s.setHours(0,0,0,0);var d=Gi(s);return n.setMonth(r,Math.min(o,d)),n}function is(t,a){if(v(2,arguments),ie(a)!=="object"||a===null)throw new RangeError("values parameter must be an object");var n=y(t);return isNaN(n.getTime())?new Date(NaN):(a.year!=null&&n.setFullYear(a.year),a.month!=null&&(n=os(n,a.month)),a.date!=null&&n.setDate(O(a.date)),a.hours!=null&&n.setHours(O(a.hours)),a.minutes!=null&&n.setMinutes(O(a.minutes)),a.seconds!=null&&n.setSeconds(O(a.seconds)),a.milliseconds!=null&&n.setMilliseconds(O(a.milliseconds)),n)}function ss(t,a){v(2,arguments);var n=O(a);return mt(t,-n)}const at=t=>t?new Date(t):new Date,ls=(t,a,n)=>{const r=at(JSON.parse(JSON.stringify(t))),i=[];for(let o=0;o<7;o++){const s=Oe(r,o),d=Ee(s)!==a;i.push({text:s.getDate(),value:s,currentMonth:!d,isFirstDayOfMonth:s.getDate()===1&&!d,selected:n?s.getDate()===n&&!d:!1})}return i},ds=(t,a)=>!t||!a?!1:Xi(t,a),cs=(t,a,n)=>{const r=[],i=at(new Date(a,t)),o=at(new Date(a,t+1,0)),d=tt(i,{weekStartsOn:on}),l=m=>{const p=ls(m,t,n);if(r.push({days:p}),!r[r.length-1].days.some(c=>ds(c.value,o))){const c=Oe(m,7);l(c)}};return l(d),r},us=(t,a)=>{const n=[1,2,3,4,5,6,7].map(o=>new Intl.DateTimeFormat(t,{weekday:"short",timeZone:"UTC"}).format(new Date(`2017-01-0${o}T00:00:00+00:00`)).slice(0,2)),r=n.slice(0,a),i=n.slice(a+1,n.length);return[n[a]].concat(...i).concat(...r)},ms=(t,a)=>Q(new Date(2e3,t,1),a);function hs(t,a){const n=e.ref(Ee(t.selectedDate)),r=e.ref(nt(t.selectedDate)),i=e.ref(null),o=e.ref(0),s=e.ref([]),d=e.computed(()=>cs(n.value,r.value,i.value)),l=e.computed(()=>(C,I)=>ms(C,I));e.watch(n,()=>{g(),a("calendar-days",d.value)},{immediate:!0}),e.watch(r,()=>{g(),a("calendar-days",d.value)},{immediate:!0});function m(C){s.value.includes(C)||s.value.push(C)}function p(){s.value[0].focus()}function c(C){switch(C.key){case"ArrowLeft":C.preventDefault(),o.value===0?(o.value=3,s.value[o.value].focus()):(o.value--,s.value[o.value].focus());break;case"ArrowRight":C.preventDefault(),o.value===3?(o.value=0,s.value[o.value].focus()):(o.value++,s.value[o.value].focus());break;case"ArrowDown":C.preventDefault(),a("focus-day");break;case"Tab":a("focus-day");break;case"Escape":a("close-datepicker");break}}function g(){const C=nt(t.selectedDate),I=Ee(t.selectedDate);C!==r.value||I!==n.value?i.value=null:i.value=ji(t.selectedDate)}function f(C){const I=is(t.selectedDate,{month:n.value,year:r.value}),L=++C?mt(I,1):ss(I,1);n.value=Ee(L)}function b(C){r.value=r.value+C}return{selectMonth:n,selectYear:r,formattedMonth:l,setDayRef:m,focusMonthYearPicker:p,handleKeyDown:c,changeMonth:f,changeYear:b}}const fs={class:"d-datepicker__month-year-picker"},ps=["aria-label"],gs=["aria-label"],_s=["aria-label"],bs=["aria-label"],vs={__name:"month-year-picker",props:{prevMonthLabel:{type:String,required:!0},nextMonthLabel:{type:String,required:!0},prevYearLabel:{type:String,required:!0},nextYearLabel:{type:String,required:!0},changeToLabel:{type:String,required:!0},selectedDate:{type:Date,required:!0}},emits:["calendar-days","focus-day","close-datepicker"],setup(t,{expose:a,emit:n}){const r=t,{selectMonth:i,selectYear:o,formattedMonth:s,setDayRef:d,focusMonthYearPicker:l,handleKeyDown:m,changeMonth:p,changeYear:c}=hs(r,n);return e.onMounted(()=>{l()}),a({focusMonthYearPicker:l}),(g,f)=>(e.openBlock(),e.createElementBlock("div",fs,[e.createElementVNode("div",null,[e.createElementVNode("button",{id:"prevYearButton",ref:b=>{b&&e.unref(d)(b)},type:"button","aria-label":`${t.changeToLabel} ${t.prevYearLabel} ${e.unref(o)-1}`,onClick:f[0]||(f[0]=b=>e.unref(c)(-1)),onKeydown:f[1]||(f[1]=b=>e.unref(m)(b))},[e.createVNode(e.unref(h.DtIcon),{name:"chevrons-left",size:"400"})],40,ps),e.createElementVNode("button",{id:"prevMonthButton",ref:b=>{b&&e.unref(d)(b)},type:"button","aria-label":`${t.changeToLabel} ${t.prevMonthLabel} ${e.unref(s)(e.unref(i)-1,e.unref(we))}`,onClick:f[2]||(f[2]=b=>e.unref(p)(-1)),onKeydown:f[3]||(f[3]=b=>e.unref(m)(b))},[e.createVNode(e.unref(h.DtIcon),{name:"chevron-left",size:"300"})],40,gs)]),e.createElementVNode("div",null,[e.createElementVNode("p",null,e.toDisplayString(e.unref(s)(e.unref(i),e.unref(we)))+" "+e.toDisplayString(e.unref(o)),1)]),e.createElementVNode("div",null,[e.createElementVNode("button",{id:"nextMonthButton",ref:b=>{b&&e.unref(d)(b)},type:"button","aria-label":`${t.changeToLabel} ${t.nextMonthLabel} ${e.unref(s)(e.unref(i)+1,e.unref(we))}`,onClick:f[4]||(f[4]=b=>e.unref(p)(1)),onKeydown:f[5]||(f[5]=b=>e.unref(m)(b))},[e.createVNode(e.unref(h.DtIcon),{name:"chevron-right",size:"300"})],40,_s),e.createElementVNode("button",{id:"nextYearButton",ref:b=>{b&&e.unref(d)(b)},type:"button","aria-label":`${t.changeToLabel} ${t.nextYearLabel} ${e.unref(o)+1}`,onClick:f[6]||(f[6]=b=>e.unref(c)(1)),onKeydown:f[7]||(f[7]=b=>e.unref(m)(b))},[e.createVNode(e.unref(h.DtIcon),{name:"chevrons-right",size:"300"})],40,bs)])]))}};function ys(t,a){const n=e.ref(null),r=e.ref(0),i=e.ref([]),o=e.computed(()=>us(t.locale,on));e.watch(()=>t.calendarDays,()=>{r.value=0,i.value=[],n.value=null});function s(c){return`${t.selectDayLabel} ${c.text} ${Q(c.value,we)} ${nt(c.value)}`}function d(c,g){!i.value.includes(c)&&g&&i.value.push(c)}function l(c){switch(c.key){case"ArrowUp":c.preventDefault(),r.value-=7;try{i.value[r.value].focus()}catch{a("focus-month-year-picker")}break;case"ArrowDown":c.preventDefault(),r.value+=7;try{i.value[r.value].focus()}catch{a("focus-month-year-picker")}break;case"ArrowLeft":c.preventDefault(),r.value>0&&(r.value-=1,i.value[r.value].focus());break;case"ArrowRight":c.preventDefault(),r.value<i.value.length-1&&(r.value+=1,i.value[r.value].focus());break;case"Tab":c.preventDefault(),a("focus-month-year-picker");break;case"Escape":a("close-datepicker");break}}function m(){r.value=0,i.value[r.value].focus()}function p(c){c.currentMonth&&(n.value=c.text,a("select-date",c.value))}return{selectedDay:n,weekDays:o,dayAriaLabel:s,setDayRef:d,handleKeyDown:l,focusFirstDay:m,selectDay:p}}const Ss={class:"d-datepicker__calendar"},Cs={class:"d-datepicker__week-day"},ws=["aria-label","onClick"],Es={__name:"calendar",props:{calendarDays:{type:Array,required:!0},locale:{type:String,required:!0},selectDayLabel:{type:String,required:!0}},emits:["select-date","focus-month-year-picker","close-datepicker"],setup(t,{expose:a,emit:n}){const r=t,{selectedDay:i,weekDays:o,dayAriaLabel:s,setDayRef:d,handleKeyDown:l,focusFirstDay:m,selectDay:p}=ys(r,n);return a({focusFirstDay:m}),(c,g)=>(e.openBlock(),e.createElementBlock("div",Ss,[e.createElementVNode("div",Cs,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(o),f=>(e.openBlock(),e.createElementBlock("div",{key:f},[e.createElementVNode("p",null,e.toDisplayString(f),1)]))),128))]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.calendarDays,(f,b)=>(e.openBlock(),e.createElementBlock("div",{key:b,class:"d-datepicker__week"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.days,(C,I)=>(e.openBlock(),e.createElementBlock("button",{key:b+I,ref_for:!0,ref:L=>{L&&e.unref(d)(L,C.currentMonth)},class:e.normalizeClass(["d-datepicker__day",{"d-datepicker__day--disabled":!C.currentMonth,"d-datepicker__day--selected":e.unref(i)?C.text===e.unref(i)&&C.currentMonth:C.selected}]),type:"button","aria-label":e.unref(s)(C),onClick:L=>e.unref(p)(C),onKeydown:g[0]||(g[0]=L=>e.unref(l)(L))},e.toDisplayString(C.text),43,ws))),128))]))),128))]))}},ks={class:"d-datepicker"},Ds={class:"d-datepicker--header"},Is={class:"d-datepicker--body"},Ts={__name:"DtDatepicker",props:{prevMonthLabel:{type:String,required:!0},nextMonthLabel:{type:String,required:!0},prevYearLabel:{type:String,required:!0},nextYearLabel:{type:String,required:!0},selectDayLabel:{type:String,required:!0},changeToLabel:{type:String,required:!0},locale:{type:String,default:"en-US"},selectedDate:{type:Date,default:()=>new Date}},emits:["selected-date","close-datepicker"],setup(t){const a=e.ref([]);function n(r){a.value=r}return(r,i)=>(e.openBlock(),e.createElementBlock("div",ks,[e.createElementVNode("div",Ds,[e.createVNode(vs,{ref:"monthYearPicker","prev-month-label":t.prevMonthLabel,"next-month-label":t.nextMonthLabel,"prev-year-label":t.prevYearLabel,"next-year-label":t.nextYearLabel,"change-to-label":t.changeToLabel,"selected-date":t.selectedDate,onCalendarDays:n,onFocusDay:i[0]||(i[0]=o=>r.$refs.calendar.focusFirstDay()),onCloseDatepicker:i[1]||(i[1]=o=>r.$emit("close-datepicker"))},null,8,["prev-month-label","next-month-label","prev-year-label","next-year-label","change-to-label","selected-date"])]),e.createElementVNode("div",Is,[e.createVNode(Es,{ref:"calendar",locale:t.locale,"calendar-days":a.value,"select-day-label":t.selectDayLabel,onSelectDate:i[2]||(i[2]=o=>r.$emit("selected-date",o)),onFocusMonthYearPicker:i[3]||(i[3]=o=>r.$refs.monthYearPicker.focusMonthYearPicker()),onCloseDatepicker:i[4]||(i[4]=o=>r.$emit("close-datepicker"))},null,8,["locale","calendar-days","select-day-label"])])]))}};function Os(t){return Q(t,"EEEE, MMMM d, yyyy")}function Ns(t){return Q(t,"MMMM d, yyyy")}function Ls(t,a=!0){return Q(t,a?"EEE, MMM d, yyyy":"MMM d, yyyy")}function Bs(t,a=!1){return Q(t,a?"MMM d":"MMMM d")}function xs(t){return Q(t,"MM/dd/yy")}const As={name:"DtRecipeComboboxWithPopover",components:{DtCombobox:Gt,DtPopover:_.DtPopover,ComboboxLoadingList:Kt,ComboboxEmptyList:Yt},mixins:[_.SrOnlyCloseButtonMixin],props:{label:{type:String,required:!0},labelVisible:{type:Boolean,default:!0},size:{type:String,default:null,validator:t=>Object.values(jt).includes(t)},description:{type:String,default:""},showList:{type:Boolean,default:null},listId:{type:String,default(){return u.getUniqueString()}},listClass:{type:[String,Array,Object],default:""},onBeginningOfList:{type:Function,default:null},onEndOfList:{type:Function,default:null},maxHeight:{type:String,default:""},maxWidth:{type:String,default:""},padding:{type:String,default:"small",validator:t=>Object.keys(pe).some(a=>a===t)},contentWidth:{type:String,default:null,validator:t=>_.POPOVER_CONTENT_WIDTHS.includes(t)},openWithArrowKeys:{type:Boolean,default:!1},popoverOffset:{type:Array,default:()=>[0,4]},popoverSticky:{type:[Boolean,String],default:!1},hasSuggestionList:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},emptyList:{type:Boolean,default:!1},emptyStateMessage:{type:String,default:""},appendTo:{type:[HTMLElement,String],default:"body",validator:t=>_.POPOVER_APPEND_TO_VALUES.includes(t)||t instanceof HTMLElement},transition:{type:String,default:"fade"}},emits:["select","escape","highlight","opened"],data(){return{DROPDOWN_PADDING_CLASSES:pe,isListShown:!1,isInputFocused:!1,isListFocused:!1,externalAnchor:u.getUniqueString(),hasSlotContent:u.hasSlotContent}},computed:{comboboxListeners(){return{...this.$attrs,onSelect:this.onSelect,onEscape:this.onEscape,onHighlight:this.onHighlight}}},watch:{showList:{handler:function(t){t!==null&&(this.isListShown=t)},immediate:!0},isListShown(t){t?window.addEventListener("mousedown",this.onFocusOut):window.removeEventListener("mousedown",this.onFocusOut),this.onOpened(t)}},methods:{handleDisplayList(t){!this.hasSuggestionList&&t&&this.showComboboxList(),!this.hasSuggestionList&&!t&&this.closeComboboxList()},showComboboxList(){this.showList==null&&(this.isListShown=!0)},closeComboboxList(){this.showList==null&&(this.isListShown=!1)},onSelect(t){this.loading||(this.$emit("select",t),this.hasSuggestionList||this.closeComboboxList())},onEscape(){this.$emit("escape"),this.closeComboboxList()},onHighlight(t){this.loading||this.$emit("highlight",t)},onOpened(t){this.$emit("opened",t)},onFocusIn(t){var a;this.hasSuggestionList&&t&&((a=this.$refs.input)==null?void 0:a.querySelector("input"))===t.target&&this.showComboboxList()},onFocusOut(t){var r,i,o;const a=(i=(r=this.$refs.popover)==null?void 0:r.tip)==null?void 0:i.popper,n=this.$refs.input;(o=t.composedPath())!=null&&o.some(s=>[a,n].includes(s))||this.closeComboboxList()},openOnArrowKeyPress(){this.showList!==null||this.isListShown||!this.openWithArrowKeys||this.showComboboxList()}}},Ms=["id"],Vs={ref:"header"},Rs=["onMouseleave","onFocusout"],Ps={ref:"footer"};function $s(t,a,n,r,i,o){const s=e.resolveComponent("combobox-loading-list"),d=e.resolveComponent("combobox-empty-list"),l=e.resolveComponent("dt-popover"),m=e.resolveComponent("dt-combobox");return e.openBlock(),e.createBlock(m,e.mergeProps({ref:"combobox",loading:n.loading,label:n.label,"label-visible":n.labelVisible,size:n.size,description:n.description,"empty-list":n.emptyList,"empty-state-message":n.emptyStateMessage,"show-list":i.isListShown,"on-beginning-of-list":n.onBeginningOfList,"on-end-of-list":n.onEndOfList,"list-rendered-outside":!0,"list-id":n.listId,"data-qa":"dt-combobox"},o.comboboxListeners),{input:e.withCtx(({inputProps:p})=>[e.createElementVNode("div",{id:i.externalAnchor,ref:"input",onFocusin:a[0]||(a[0]=(...c)=>o.onFocusIn&&o.onFocusIn(...c)),onKeydown:[a[1]||(a[1]=e.withKeys(c=>o.openOnArrowKeyPress(c),["up"])),a[2]||(a[2]=e.withKeys(c=>o.openOnArrowKeyPress(c),["down"]))]},[e.renderSlot(t.$slots,"input",{inputProps:p,onInput:o.handleDisplayList})],40,Ms)]),list:e.withCtx(({opened:p,listProps:c,clearHighlightIndex:g})=>[e.createVNode(l,{ref:"popover",open:i.isListShown,"onUpdate:open":a[3]||(a[3]=f=>i.isListShown=f),"hide-on-click":!1,"max-height":n.maxHeight,"max-width":n.maxWidth,offset:n.popoverOffset,sticky:n.popoverSticky,placement:"bottom-start","initial-focus-element":"none",padding:"none",role:"listbox","external-anchor":i.externalAnchor,"content-width":n.contentWidth,"content-appear":!0,"content-tabindex":null,modal:!1,"auto-focus":!1,"append-to":n.appendTo,transition:n.transition,"visually-hidden-close-label":t.visuallyHiddenCloseLabel,"visually-hidden-close":t.visuallyHiddenClose,onOpened:p},e.createSlots({content:e.withCtx(()=>[e.createElementVNode("div",{ref:"listWrapper",class:e.normalizeClass([i.DROPDOWN_PADDING_CLASSES[n.padding],n.listClass]),onMouseleave:g,onFocusout:g},[n.loading?(e.openBlock(),e.createBlock(s,e.normalizeProps(e.mergeProps({key:0},c)),null,16)):n.emptyList&&n.emptyStateMessage?(e.openBlock(),e.createBlock(d,e.mergeProps({key:1},c,{message:n.emptyStateMessage}),null,16,["message"])):e.renderSlot(t.$slots,"list",{key:2,listProps:c})],42,Rs)]),_:2},[i.hasSlotContent(t.$slots.header)?{name:"headerContent",fn:e.withCtx(()=>[e.createElementVNode("div",Vs,[e.renderSlot(t.$slots,"header")],512)]),key:"0"}:void 0,i.hasSlotContent(t.$slots.footer)?{name:"footerContent",fn:e.withCtx(()=>[e.createElementVNode("div",Ps,[e.renderSlot(t.$slots,"footer")],512)]),key:"1"}:void 0]),1032,["open","max-height","max-width","offset","sticky","external-anchor","content-width","append-to","transition","visually-hidden-close-label","visually-hidden-close","onOpened"])]),_:3},16,["loading","label","label-visible","size","description","empty-list","empty-state-message","show-list","on-beginning-of-list","on-end-of-list","list-id"])}const fn=u._export_sfc(As,[["render",$s]]),pn={EXTRA_SMALL:"xs",SMALL:"sm",DEFAULT:"md"},zs={xs:"xs",sm:"xs",md:"sm"},Fs={xs:1.4,sm:.4,md:.2},qs={name:"DtRecipeComboboxMultiSelect",components:{DtRecipeComboboxWithPopover:fn,DtInput:h.DtInput,DtChip:ut,DtValidationMessages:h.DtValidationMessages},mixins:[_.SrOnlyCloseButtonMixin],props:{label:{type:String,required:!0},labelVisible:{type:Boolean,default:!0},description:{type:String,default:""},placeholder:{type:String,default:"Select one or start typing"},inputMessages:{type:Array,default:()=>[],validator:t=>h.validationMessageValidator(t)},showInputMessages:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},loadingMessage:{type:String,default:"loading..."},showList:{type:Boolean,default:null},listMaxHeight:{type:String,default:"300px"},selectedItems:{type:Array,default:function(){return[]}},maxSelected:{type:Number,default:0},maxSelectedMessage:{type:Array,default:function(){return[]}},hasSuggestionList:{type:Boolean,default:!0},size:{type:String,default:"md",validator:t=>Object.values(pn).includes(t)},appendTo:{type:[HTMLElement,String],default:"body",validator:t=>_.POPOVER_APPEND_TO_VALUES.includes(t)||t instanceof HTMLElement},transition:{type:String,default:"fade"}},emits:["input","select","remove","max-selected","keyup"],data(){return{value:"",popoverOffset:[0,4],showValidationMessages:!1,initialInputPadding:{},resizeWindowObserver:null,originalInputSize:null,CHIP_SIZES:zs,hasSlotContent:u.hasSlotContent}},computed:{inputPlaceHolder(){var t;return((t=this.selectedItems)==null?void 0:t.length)>0?"":this.placeholder},chipListeners(){return{keyup:t=>{this.onChipKeyup(t),this.$emit("keyup",t)}}},inputListeners(){return{input:t=>{this.$emit("input",t),this.hasSuggestionList&&this.showComboboxList()},keyup:t=>{this.onInputKeyup(t),this.$emit("keyup",t)},click:t=>{this.hasSuggestionList&&this.showComboboxList()}}}},watch:{selectedItems:{deep:!0,handler:async function(){this.initSelectedItems()}},async label(){await this.$nextTick(),this.setChipsTopPosition()},async description(){await this.$nextTick(),this.setChipsTopPosition()},size:{async handler(){await this.$nextTick();const t=this.getInput();this.revertInputPadding(t),this.originalInputSize=t.getBoundingClientRect().height,this.setInputPadding(),this.setChipsTopPosition()}}},mounted(){this.resizeWindowObserver=new ResizeObserver(async()=>{this.setChipsTopPosition(),this.setInputPadding()}),this.resizeWindowObserver.observe(document.body),this.initSelectedItems()},beforeUnmount(){var t;(t=this.resizeWindowObserver)==null||t.unobserve(document.body)},methods:{async initSelectedItems(){await this.$nextTick(),this.setInputPadding(),this.setChipsTopPosition(),this.setInputMinWidth(),this.checkMaxSelected()},onChipRemove(t){var a;this.$emit("remove",t),(a=this.$refs.input)==null||a.focus()},onComboboxSelect(t){this.value="",this.$emit("select",t)},showComboboxList(){var t;this.showList==null&&((t=this.$refs.comboboxWithPopover)==null||t.showComboboxList())},closeComboboxList(){var t;this.showList==null&&((t=this.$refs.comboboxWithPopover)==null||t.closeComboboxList())},getChipButtons(){return this.$refs.chips&&this.$refs.chips.map(t=>t.$el.querySelector("button"))},getChips(){return this.$refs.chips&&this.$refs.chips.map(t=>t.$el)},getLastChipButton(){return this.$refs.chips&&this.getChipButtons()[this.getChipButtons().length-1]},getLastChip(){return this.$refs.chips&&this.getChips()[this.getChips().length-1]},getFirstChip(){return this.$refs.chips&&this.getChips()[0]},getInput(){var t;return(t=this.$refs.input)==null?void 0:t.$refs.input},onChipKeyup(t){var n;const a=(n=t.code)==null?void 0:n.toLowerCase();a==="arrowleft"?this.navigateBetweenChips(t.target,!0):a==="arrowright"&&(t.target.id===this.getLastChipButton().id?this.moveFromChipToInput():this.navigateBetweenChips(t.target,!1))},onInputKeyup(t){var n;const a=(n=t.code)==null?void 0:n.toLowerCase();this.selectedItems.length>0&&t.target.selectionStart===0&&(a==="backspace"||a==="arrowleft")&&this.moveFromInputToChip()},moveFromInputToChip(){var t;this.getLastChipButton().focus(),(t=this.$refs.input)==null||t.blur(),this.closeComboboxList()},moveFromChipToInput(){var t;this.getLastChipButton().blur(),(t=this.$refs.input)==null||t.focus(),this.showComboboxList()},navigateBetweenChips(t,a){var i;const n=this.getChipButtons().indexOf(t),r=a?n-1:n+1;r<0||r>=((i=this.$refs.chips)==null?void 0:i.length)||(this.getChipButtons()[n].blur(),this.getChipButtons()[r].focus(),this.closeComboboxList())},setChipsTopPosition(){const t=this.getInput();if(!t)return;const a=this.$refs.inputSlotWrapper,n=t.getBoundingClientRect().top-a.getBoundingClientRect().top,r=this.$refs.chipsWrapper;r.style.top=n-Fs[this.size]+"px"},setInputPadding(){const t=this.getLastChip(),a=this.getInput(),n=this.$refs.chipsWrapper;if(!a||(this.revertInputPadding(a),this.popoverOffset=[0,4],!t))return;const r=t.offsetLeft+this.getFullWidth(t);a.style.paddingLeft=r+"px";const i=n.getBoundingClientRect().height-4,o=t.offsetTop+2;i>this.originalInputSize&&(a.style.paddingTop=`${o}px`)},revertInputPadding(t){t.style.paddingLeft="",t.style.paddingTop="",t.style.paddingBottom=""},getFullWidth(t){const a=window.getComputedStyle(t);return t.offsetWidth+parseInt(a.marginLeft)+parseInt(a.marginRight)},setInputMinWidth(){const t=this.getFirstChip(),a=this.getInput();a&&(t?a.style.minWidth=this.getFullWidth(t)+4+"px":a.style.minWidth="")},checkMaxSelected(){this.maxSelected!==0&&(this.selectedItems.length>this.maxSelected?(this.showValidationMessages=!0,this.$emit("max-selected")):this.showValidationMessages=!1)}}},Hs={ref:"inputSlotWrapper",class:"d-ps-relative d-d-block"},Us={ref:"chipsWrapper",class:"d-ps-absolute d-mx2 d-pl1"},Ws={ref:"header"},Ks={key:1,class:"d-ta-center d-py16"},Ys={ref:"footer"};function js(t,a,n,r,i,o){const s=e.resolveComponent("dt-chip"),d=e.resolveComponent("dt-input"),l=e.resolveComponent("dt-validation-messages"),m=e.resolveComponent("dt-recipe-combobox-with-popover");return e.openBlock(),e.createBlock(m,{ref:"comboboxWithPopover",label:n.label,"show-list":n.showList,"max-height":n.listMaxHeight,"popover-offset":i.popoverOffset,"has-suggestion-list":n.hasSuggestionList,"visually-hidden-close-label":t.visuallyHiddenCloseLabel,"visually-hidden-close":t.visuallyHiddenClose,"content-width":"anchor","append-to":n.appendTo,transition:n.transition,onSelect:o.onComboboxSelect},e.createSlots({input:e.withCtx(({onInput:p})=>[e.createElementVNode("span",Hs,[e.createElementVNode("span",Us,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.selectedItems,c=>(e.openBlock(),e.createBlock(s,e.mergeProps({ref_for:!0,ref:"chips",key:c,"label-class":["d-chip__label"],class:["d-mt4","d-mx2","d-zi-base1"],"close-button-props":{ariaLabel:"close"},size:i.CHIP_SIZES[n.size]},e.toHandlers(o.chipListeners),{onKeyup:e.withKeys(g=>o.onChipRemove(c),["backspace"]),onClose:g=>o.onChipRemove(c)}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c),1)]),_:2},1040,["size","onKeyup","onClose"]))),128))],512),e.createVNode(d,e.mergeProps({ref:"input",modelValue:i.value,"onUpdate:modelValue":a[0]||(a[0]=c=>i.value=c),class:"d-fl-grow1","aria-label":n.label,label:n.labelVisible?n.label:"",description:n.description,placeholder:o.inputPlaceHolder,"show-messages":n.showInputMessages,messages:n.inputMessages,size:n.size},e.toHandlers(o.inputListeners),{onInput:p}),null,16,["modelValue","aria-label","label","description","placeholder","show-messages","messages","size","onInput"]),e.createVNode(l,{"validation-messages":n.maxSelectedMessage,"show-messages":i.showValidationMessages},null,8,["validation-messages","show-messages"])],512)]),list:e.withCtx(()=>[e.createElementVNode("div",{ref:"list",onMousedown:a[1]||(a[1]=e.withModifiers(()=>{},["prevent"]))},[n.loading?(e.openBlock(),e.createElementBlock("div",Ks,e.toDisplayString(n.loadingMessage),1)):e.renderSlot(t.$slots,"list",{key:0})],544)]),_:2},[i.hasSlotContent(t.$slots.header)?{name:"header",fn:e.withCtx(()=>[e.createElementVNode("div",Ws,[e.renderSlot(t.$slots,"header")],512)]),key:"0"}:void 0,i.hasSlotContent(t.$slots.footer)?{name:"footer",fn:e.withCtx(()=>[e.createElementVNode("div",Ys,[e.renderSlot(t.$slots,"footer")],512)]),key:"1"}:void 0]),1032,["label","show-list","max-height","popover-offset","has-suggestion-list","visually-hidden-close-label","visually-hidden-close","append-to","transition","onSelect"])}const Gs=u._export_sfc(qs,[["render",js]]),gt=["sm","md","lg","xl"];const Zs={name:"DtRecipeCallbarButton",components:{DtButton:h.DtButton,DtTooltip:u.DtTooltip},inheritAttrs:!1,props:{id:{type:String,default(){return u.utils.getUniqueString()}},active:{type:Boolean,default:!1},danger:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},circle:{type:Boolean,default:!1},ariaLabel:{type:String,default:null,validator:t=>t||globalThis.$slots.default},buttonClass:{type:[String,Array,Object],default:""},textClass:{type:[String,Array,Object],default:""},buttonWidthSize:{type:String,default:"xl",validator:t=>gt.includes(t)},importance:{type:String,default:""}},emits:["click"],computed:{callbarButtonClass(){return[this.buttonClass,"dt-recipe-callbar-button","d-px0",{"dt-recipe-callbar-button--circle":this.circle,"dt-recipe-callbar-button--active":this.active,"dt-recipe-callbar-button--danger":this.danger,"d-btn--disabled d-bgc-transparent":this.disabled,"d-fc-primary":!this.disabled}]},callbarButtonTextClass(){return["d-fs-100 lg:d-d-none md:d-d-none sm:d-d-none",this.textClass]},buttonWidth(){switch(this.buttonWidthSize){case"sm":return"4.5rem";case"md":return"6rem";default:return"8.4rem"}},buttonImportance(){return this.importance?this.importance:this.circle?"outlined":"clear"},callbarButtonListeners(){return{...u.extractVueListeners(this.$attrs),click:t=>this.$emit("click",t)}}}};function Xs(t,a,n,r,i,o){const s=e.resolveComponent("dt-button"),d=e.resolveComponent("dt-tooltip");return e.openBlock(),e.createBlock(d,{id:n.id,offset:[0,8]},{anchor:e.withCtx(()=>[e.createElementVNode("span",{class:e.normalizeClass({"d-c-not-allowed":n.disabled})},[e.createVNode(s,e.mergeProps({importance:o.buttonImportance,kind:"muted","icon-position":"top","aria-disabled":n.disabled,"aria-label":n.ariaLabel,"label-class":o.callbarButtonTextClass,width:o.buttonWidth,class:o.callbarButtonClass},t.$attrs,e.toHandlers(o.callbarButtonListeners)),{icon:e.withCtx(()=>[e.renderSlot(t.$slots,"icon")]),default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16,["importance","aria-disabled","aria-label","label-class","width","class"])],2)]),default:e.withCtx(()=>[e.renderSlot(t.$slots,"tooltip")]),_:3},8,["id"])}const gn=u._export_sfc(Zs,[["render",Xs]]);const Qs={name:"DtRecipeCallbarButtonWithPopover",components:{DtRecipeCallbarButton:gn,DtPopover:_.DtPopover,DtButton:h.DtButton,DtIcon:h.DtIcon},inheritAttrs:!1,props:{id:{type:String,default(){return u.utils.getUniqueString()}},ariaLabel:{type:String,default:null,validator:t=>t||globalThis.$slots.default},arrowButtonLabel:{type:String,required:!0,validator:t=>!!t},placement:{type:String,default:"top"},initialFocusElement:{type:String,default:"first"},showCloseButton:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},forceShowArrow:{type:Boolean,default:!1},active:{type:Boolean,default:!1},danger:{type:Boolean,default:!1},onClick:{type:Function,default:null},buttonClass:{type:[String,Array,Object],default:""},textClass:{type:[String,Array,Object],default:""},buttonWidthSize:{type:String,default:"xl",validator:t=>gt.includes(t)},contentClass:{type:[String,Array,Object],default:""},openPopover:{type:Boolean,default:!1}},emits:["arrow-click","click","opened"],data(){return{open:!1}},computed:{showArrowButton(){return this.forceShowArrow||!this.disabled},isCompactMode(){return this.buttonWidthSize==="sm"||this.buttonWidthSize==="md"},showPopover(){return!this.openPopover||this.open?(this.syncOpenState(),!1):this.toggleOpen()}},methods:{arrowClick(t){return this.$emit("arrow-click",t),this.toggleOpen()},toggleOpen(){return this.open=!this.open},syncOpenState(){this.open=this.openPopover},buttonClick(t){this.$props.onClick?this.$emit("click",t):this.arrowClick(t)},onModalIsOpened(t){this.open=t,this.$emit("opened",t)}}},Js={class:"d-d-flex d-ai-center"};function el(t,a,n,r,i,o){const s=e.resolveComponent("dt-recipe-callbar-button"),d=e.resolveComponent("dt-icon"),l=e.resolveComponent("dt-button"),m=e.resolveComponent("dt-popover");return e.openBlock(),e.createElementBlock("div",Js,[e.createVNode(s,{"aria-label":n.ariaLabel,disabled:n.disabled,active:n.active,danger:n.danger,"button-class":n.buttonClass,"button-width-size":n.buttonWidthSize,"text-class":n.textClass,class:"dt-recipe--callbar-button-with-popover--main-button",onClick:o.buttonClick},{icon:e.withCtx(()=>[e.renderSlot(t.$slots,"icon")]),tooltip:e.withCtx(()=>[e.renderSlot(t.$slots,"tooltip")]),default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},8,["aria-label","disabled","active","danger","button-class","button-width-size","text-class","onClick"]),o.showArrowButton?(e.openBlock(),e.createBlock(m,e.mergeProps({key:0,id:n.id,modal:!1,open:i.open,placement:n.placement,"initial-focus-element":n.initialFocusElement,"show-close-button":n.showCloseButton,offset:[0,16],padding:"none",class:"dt-recipe--callbar-button-with-popover--popover-wrapper","dialog-class":["dt-recipe--callbar-button-with-popover--popover",n.contentClass],"header-class":"d-d-flex d-ai-center d-fw-normal d-px12"},t.$attrs,{"open-popover":o.showPopover,onOpened:o.onModalIsOpened}),{anchor:e.withCtx(()=>[e.createVNode(l,{circle:"",importance:"clear",size:"lg",class:e.normalizeClass(["dt-recipe--callbar-button-with-popover--arrow",{"d-mln24":!o.isCompactMode}]),width:"2rem","aria-label":n.arrowButtonLabel,active:i.open,onClick:o.arrowClick},{icon:e.withCtx(()=>[e.createVNode(d,{name:"chevron-up",class:"d-fc-black-800",size:"200"})]),_:1},8,["class","aria-label","active","onClick"])]),content:e.withCtx(()=>[e.renderSlot(t.$slots,"content")]),headerContent:e.withCtx(()=>[e.renderSlot(t.$slots,"headerContent")]),footerContent:e.withCtx(()=>[e.renderSlot(t.$slots,"footerContent")]),_:3},16,["id","open","placement","initial-focus-element","show-close-button","dialog-class","open-popover","onOpened"])):e.createCommentVNode("",!0)])}const tl=u._export_sfc(Qs,[["render",el]]);const nl={name:"DtRecipeContactInfo",components:{DtAvatar:_.DtAvatar,DtListItem:_.DtListItem},props:{id:{type:String,default(){return u.utils.getUniqueString()}},role:{type:String,default:""},showAvatar:{type:Boolean,default:!0},avatarSrc:{type:String,default:""},avatarSeed:{type:String,default:null},avatarFullName:{type:String,default:""},avatarIcon:{type:String,default:null},avatarSize:{type:String,default:"lg"},avatarAriaLabel:{type:String,default:""},presence:{type:String,default:null},avatarList:{type:Array,default:null}},emits:["avatar-click"],methods:{avatarClick(){this.$emit("avatar-click")}}},al=["aria-labelledby"],rl={key:0,class:"dt-contact-info--avatars d-mrn4 d-d-flex d-fd-row"},ol={"data-qa":"contact-info-header"},il={"data-qa":"contact-info-subtitle"},sl={"data-qa":"contact-info-bottom"},ll={"data-qa":"contact-info-right"};function dl(t,a,n,r,i,o){const s=e.resolveComponent("dt-avatar"),d=e.resolveComponent("dt-list-item");return e.openBlock(),e.createBlock(d,{id:n.id,role:n.role,"element-type":"div","data-qa":"contact-info",class:"dt-contact-info"},{left:e.withCtx(()=>[n.showAvatar?(e.openBlock(),e.createElementBlock("button",{key:0,class:"d-ps-relative d-bgc-transparent d-baw0 d-c-pointer","data-qa":"contact-info-left","aria-labelledby":n.avatarAriaLabel,onClick:a[0]||(a[0]=(...l)=>o.avatarClick&&o.avatarClick(...l))},[n.avatarList?(e.openBlock(),e.createElementBlock("span",rl,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.avatarList,(l,m)=>(e.openBlock(),e.createBlock(s,{key:m,size:n.avatarSize,seed:l.seed,"full-name":l.fullName,"image-src":l.src,"icon-name":n.avatarIcon,"overlay-icon":l.icon,"overlay-text":l.text,"avatar-class":[{"d-mln24":m>0,"d-bc-brand":!!l.halo}]},null,8,["size","seed","full-name","image-src","icon-name","overlay-icon","overlay-text","avatar-class"]))),128))])):(e.openBlock(),e.createBlock(s,{key:1,size:n.avatarSize,"full-name":n.avatarFullName,"image-src":n.avatarSrc,"icon-name":n.avatarIcon,seed:n.avatarSeed,presence:n.presence},null,8,["size","full-name","image-src","icon-name","seed","presence"]))],8,al)):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.createElementVNode("div",ol,[e.renderSlot(t.$slots,"header",{},void 0,!0)])]),subtitle:e.withCtx(()=>[e.createElementVNode("div",il,[e.renderSlot(t.$slots,"subtitle",{},void 0,!0)])]),bottom:e.withCtx(()=>[e.createElementVNode("div",sl,[e.renderSlot(t.$slots,"bottom",{},void 0,!0)])]),right:e.withCtx(()=>[e.createElementVNode("div",ll,[e.renderSlot(t.$slots,"right",{},void 0,!0)])]),_:3},8,["id","role"])}const cl=u._export_sfc(nl,[["render",dl],["__scopeId","data-v-3d0f9d2e"]]),_n=["green300","green100","red200","red100","gold100","gold200","black100","white"];const ul={name:"DtRecipeTopBannerInfo",props:{colorCode:{type:String,default:"green300",validator:function(t){return _n.includes(t)}}},computed:{bannerInfoClass(){return[{green300:"d-bgc-success",green100:"d-bgc-success",red200:"d-bgc-critical",red100:"d-bgc-critical",gold200:"d-bgc-warning",gold100:"d-bgc-warning",black100:"d-bgc-info",white:"d-bgc-primary"}[this.colorCode]]}}},ml={class:"d-top-banner-info__left"},hl={class:"d-top-banner-info__middle d-my4"},fl={class:"d-top-banner-info__right d-ta-right"};function pl(t,a,n,r,i,o){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["d-fs-100 d-d-flex d-top-banner-info d-jc-space-between d-ai-center d-fc-primary",o.bannerInfoClass]),"data-qa":"banner-info"},[e.createElementVNode("div",ml,[e.renderSlot(t.$slots,"left")]),e.createElementVNode("div",hl,[e.renderSlot(t.$slots,"default")]),e.createElementVNode("div",fl,[e.renderSlot(t.$slots,"right")])],2)}const gl=u._export_sfc(ul,[["render",pl]]),Ne="promptmenu",Le="promptcollect",Be="promptplay",xe="gotoexpert",be="goto",Ae="branch",Me="transfer",Ve="hangup",bn={[Ne]:"keypad",[Le]:"dialer",[Be]:"volume-2",[xe]:"expert-node",[Ae]:"branch",[be]:"call-merge",[Me]:"transfer",[Ve]:"phone-hang-up"},_l={[Ne]:"Menu",[Le]:"Collect",[Be]:"Play",[xe]:"Expert",[Ae]:"Branch",[be]:"Go-to",[Me]:"Transfer",[Ve]:"Hangup"},X={PROMPT:{normal:"d-bc-blue-200",selected:"d-bc-blue-300"},LOGIC:{normal:"d-bc-purple-200",selected:"d-bc-purple-400"},TERMINAL:{normal:"d-bc-red-100",selected:"d-bc-red-200"}},bl={[Ne]:X.PROMPT,[Le]:X.PROMPT,[Be]:X.PROMPT,[xe]:X.LOGIC,[Ae]:X.LOGIC,[be]:X.LOGIC,[Me]:X.TERMINAL,[Ve]:X.TERMINAL};const vl={name:"DtRecipeIvrNode",components:{DtCard:Wt,DtButton:h.DtButton,DtDropdown:Xt,DtIcon:h.DtIcon},props:{nodeType:{type:String,required:!0},nodeLabel:{type:String,required:!0},isSelected:{type:Boolean,default:!1},menuButtonAriaLabel:{type:String,required:!0},dtmfKey:{type:String,default:null}},emits:["click"],data(){return{isOpen:!1}},computed:{nodeListeners(){return{click:t=>this.$emit("click",t)}},nodeIcon(){return bn[this.nodeType]},headerColor(){const{normal:t,selected:a}=bl[this.nodeType];return this.isSelected?a:t},isGotoNode(){return this.nodeType===be}},methods:{openMenu(){this.isOpen=!0}}},yl={class:"d-d-flex d-ai-center"},Sl={class:"d-fs-200 d-fw-bold","data-qa":"ivr-node-label"},Cl={class:"d-w164"};function wl(t,a,n,r,i,o){const s=e.resolveComponent("dt-icon"),d=e.resolveComponent("dt-button"),l=e.resolveComponent("dt-dropdown"),m=e.resolveComponent("dt-card");return e.openBlock(),e.createElementBlock("div",e.mergeProps({class:"d-d-flex d-fd-column d-ai-center d-c-pointer ivr_node__width"},e.toHandlers(o.nodeListeners,!0)),[n.dtmfKey?(e.openBlock(),e.createElementBlock("div",{key:0,"data-qa":"dt-top-connector-dtmf",class:e.normalizeClass(["ivr-connector d-w24 d-h24 d-bar-circle d-mbn12 d-fc-neutral-white d-fs-200",{"d-mbn16":n.isSelected}])},e.toDisplayString(n.dtmfKey),3)):e.createCommentVNode("",!0),t.$slots.connector?e.renderSlot(t.$slots,"connector",{key:1}):e.createCommentVNode("",!0),!n.dtmfKey&&!t.$slots.connector?(e.openBlock(),e.createElementBlock("div",{key:2,"data-qa":"dt-top-connector",class:e.normalizeClass(["ivr-connector d-w8 d-h8 d-bar-circle d-mbn4",{"d-mbn8":n.isSelected}])},null,2)):e.createCommentVNode("",!0),e.createVNode(m,{"content-class":"d-bt d-bc-black-300 d-px12 d-pt8 d-pb12","container-class":["d-w100p",{"d-ba d-bar8 d-baw4":n.isSelected},o.headerColor],"header-class":["d-mtn1","d-bt","d-btw4","d-p0",o.headerColor,{"d-btr4":!n.isSelected}]},{header:e.withCtx(()=>[e.createElementVNode("div",yl,[e.createVNode(d,{"aria-label":n.nodeType,importance:"clear",kind:"muted","data-qa":"dt-ivr-node-icon"},{icon:e.withCtx(()=>[e.createVNode(s,{name:o.nodeIcon,size:"200",class:e.normalizeClass(["",{ivr_node__goto_icon:o.isGotoNode}])},null,8,["name","class"])]),_:1},8,["aria-label"]),e.createElementVNode("p",Sl,e.toDisplayString(n.nodeLabel),1)]),e.createVNode(l,{open:i.isOpen,"onUpdate:open":a[0]||(a[0]=p=>i.isOpen=p),placement:"bottom"},{anchor:e.withCtx(()=>[e.createVNode(d,{importance:"clear",kind:"muted","aria-label":n.menuButtonAriaLabel,onClick:e.withModifiers(o.openMenu,["stop","prevent"])},{icon:e.withCtx(()=>[e.createVNode(s,{name:"more-vertical",size:"200"})]),_:1},8,["aria-label","onClick"])]),list:e.withCtx(({close:p})=>[e.createElementVNode("div",Cl,[e.renderSlot(t.$slots,"menuItems",{close:p})])]),_:3},8,["open"])]),content:e.withCtx(()=>[e.renderSlot(t.$slots,"content")]),_:3},8,["container-class","header-class"])],16)}const El=u._export_sfc(vl,[["render",wl]]);const kl={name:"DtRecipeGroupedChip",components:{DtChip:ut},data(){return{hasSlotContent:u.hasSlotContent}}},Dl={"data-qa":"grouped-chip",class:"d-d-inline-flex d-ws-nowrap d-bgc-unset"},Il={key:0,"data-qa":"left-grouped-chip-icon"},Tl={key:0,"data-qa":"left-grouped-chip-content"},Ol={key:0,"data-qa":"right-grouped-chip-icon"},Nl={key:0,"data-qa":"right-grouped-chip-content"};function Ll(t,a,n,r,i,o){const s=e.resolveComponent("dt-chip");return e.openBlock(),e.createElementBlock("div",Dl,[e.createVNode(s,{"hide-close":!0,interactive:!1,"content-class":"d-fs100",size:"xs","grouped-chip":!0,class:"d-blr-pill d-bgc-moderate-opaque d-wmx84 dt-chip-content"},e.createSlots({default:e.withCtx(()=>[i.hasSlotContent(t.$slots.leftContent)?(e.openBlock(),e.createElementBlock("div",Tl,[e.renderSlot(t.$slots,"leftContent")])):e.createCommentVNode("",!0)]),_:2},[i.hasSlotContent(t.$slots.leftIcon)?{name:"icon",fn:e.withCtx(()=>[i.hasSlotContent(t.$slots.leftIcon)?(e.openBlock(),e.createElementBlock("div",Il,[e.renderSlot(t.$slots,"leftIcon")])):e.createCommentVNode("",!0)]),key:"0"}:void 0]),1024),e.createVNode(s,{"hide-close":!0,interactive:!1,"content-class":"d-fs100",size:"xs","grouped-chip":!0,class:"d-brr-pill d-bgc-purple-200 d-wmx84 dt-chip-content"},{icon:e.withCtx(()=>[i.hasSlotContent(t.$slots.rightIcon)?(e.openBlock(),e.createElementBlock("div",Ol,[e.renderSlot(t.$slots,"rightIcon")])):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[i.hasSlotContent(t.$slots.rightContent)?(e.openBlock(),e.createElementBlock("div",Nl,[e.renderSlot(t.$slots,"rightContent")])):e.createCommentVNode("",!0)]),_:3})])}const Bl=u._export_sfc(kl,[["render",Ll]]);const xl={name:"DtRecipeSettingsMenuButton",components:{DtButton:h.DtButton,DtIcon:h.DtIcon},inheritAttrs:!1,props:{updateAvailable:{type:Boolean,default:!1},ariaLabel:{type:String,required:!0}}};function Al(t,a,n,r,i,o){const s=e.resolveComponent("dt-icon"),d=e.resolveComponent("dt-button");return n.updateAvailable?(e.openBlock(),e.createBlock(d,e.mergeProps({key:0,importance:"outlined",size:"xs","icon-position":"right",class:"settings-menu-button-update","aria-label":n.ariaLabel},t.$attrs),{icon:e.withCtx(()=>[e.createVNode(s,{name:"more-vertical",size:"300"})]),default:e.withCtx(()=>[e.renderSlot(t.$slots,"default",{},void 0,!0)]),_:3},16,["aria-label"])):(e.openBlock(),e.createBlock(d,e.mergeProps({key:1,importance:"clear",kind:"inverted",class:"settings-menu-button","aria-label":n.ariaLabel},t.$attrs),{icon:e.withCtx(()=>[e.createVNode(s,{name:"more-vertical",size:"300"})]),_:1},16,["aria-label"]))}const Ml=u._export_sfc(xl,[["render",Al],["__scopeId","data-v-b0dfa8b3"]]),x={INBOX:"inbox",CONTACTS:"contacts",CHANNELS:"channels",THREADS:"threads",LOCKED_CHANNEL:"locked channel",CONTACT_CENTER:"contact center",QUICK_START:"quick start",COACHING_GROUP:"coaching group",COACHING_CENTER:"coaching center",DIALBOT:"dialbot",ASSIGNED:"assigned",DIGITAL:"digital"},vn={[x.INBOX]:"inbox",[x.CONTACTS]:"contacts",[x.CHANNELS]:"hash",[x.THREADS]:"thread",[x.LOCKED_CHANNEL]:"lock",[x.QUICK_START]:"sparkle",[x.COACHING_GROUP]:"users",[x.COACHING_CENTER]:"external-link","locked channel unread":"lock-filled","channel unread":"hash-bold",[x.ASSIGNED]:"at-sign",[x.DIGITAL]:"message"},_e={"magenta-200":"d-bgc-magenta-200","green-200":"d-bgc-green-200","gold-300":"d-bgc-gold-300","purple-600":"d-bgc-purple-600","magenta-300":"d-bgc-magenta-300","purple-300":"d-bgc-purple-300","green-500":"d-bgc-green-500","purple-100":"d-bgc-purple-100","magenta-400":"d-bgc-magenta-400","magenta-100":"d-bgc-magenta-100","black-300":"d-bgc-black-300"},yn="If type is contact center, color must be oneof the following:"+Object.keys(_e).join(", "),Sn=["300","200"],Vl={},Rl={"aria-hidden":"true",focusable:"false","aria-label":"Dialbot",class:"d-svg d-svg--native d-svg__dialbot",width:"358",height:"358",viewBox:"0 0 358 358",fill:"none"},Pl=e.createStaticVNode('<circle cx="179" cy="179" r="179" fill="url(#paint0_linear_4_44)"></circle><path d="M179 268.5v-11.933V268.5Zm86.517 0v11.933h19.308l-8.635-17.27-10.673 5.337Zm-16.73-33.459-9.3-7.478-4.797 5.967 3.424 6.848 10.673-5.337ZM179 101.433c42.839 0 77.567 34.728 77.567 77.567h23.866c0-56.02-45.413-101.433-101.433-101.433v23.866ZM101.433 179c0-42.839 34.728-77.567 77.567-77.567V77.567C122.98 77.567 77.567 122.98 77.567 179h23.866ZM179 256.567c-42.839 0-77.567-34.728-77.567-77.567H77.567c0 56.02 45.413 101.433 101.433 101.433v-23.866Zm86.517 0H179v23.866h86.517v-23.866Zm-27.403-16.189 16.729 33.459 21.347-10.674-16.729-33.459-21.347 10.674ZM256.567 179c0 18.396-6.39 35.268-17.08 48.563l18.6 14.955c13.975-17.38 22.346-39.488 22.346-63.518h-23.866Z" fill="white"></path><path d="M226.733 202.867c-6.527 5.701-13.942 10.11-22.243 13.226-8.302 3.116-16.781 4.674-25.437 4.674-8.727 0-17.241-1.558-25.543-4.674-8.301-3.116-15.716-7.525-22.243-13.226v-11.934c4.399 2.652 9.365 4.939 14.9 6.862a112.163 112.163 0 0 0 16.815 4.674c5.748 1.127 11.105 1.69 16.071 1.69 5.038 0 10.395-.563 16.071-1.69a112.209 112.209 0 0 0 16.816-4.674c5.534-1.923 10.465-4.21 14.793-6.862v11.934Z" fill="white"></path><defs><linearGradient id="paint0_linear_4_44" x1="0" y1="0" x2="358" y2="358" gradientUnits="userSpaceOnUse"><stop stop-color="#7C52FF"></stop><stop offset="1" stop-color="#F9008E"></stop></linearGradient></defs>',4),$l=[Pl];function zl(t,a){return e.openBlock(),e.createElementBlock("svg",Rl,$l)}const Fl=u._export_sfc(Vl,[["render",zl]]),ql={name:"DtRecipeLeftbarGeneralRowIcon",components:{DtIcon:h.DtIcon,IconDialbot:Fl},props:{type:{type:String,default:null},color:{type:String,default:null},iconSize:{type:String,default:"300"}},computed:{isIconType(){return![x.DIALBOT,x.CONTACT_CENTER].includes(this.type)},isContactCenterType(){return this.type===x.CONTACT_CENTER},isDialbotType(){return this.type===x.DIALBOT},getIconName(){return vn[this.type]},contactCenterIconClasses(){return["dt-leftbar-row__icon-cc",_e[this.color]]},dialbotClasses(){return["d-w24","d-h24","d-d-flex","d-ai-center","d-jc-center"]}}};function Hl(t,a,n,r,i,o){const s=e.resolveComponent("dt-icon"),d=e.resolveComponent("icon-dialbot");return o.isIconType?(e.openBlock(),e.createBlock(s,{key:0,name:o.getIconName,size:n.iconSize},null,8,["name","size"])):o.isContactCenterType?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(o.contactCenterIconClasses)},null,2)):o.isDialbotType?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(o.dialbotClasses),"data-qa":"general-row-dialbot"},[e.createVNode(d,{class:"d-svg--size24"})],2)):e.createCommentVNode("",!0)}const Ul=u._export_sfc(ql,[["render",Hl]]);const Wl={name:"DtRecipeGeneralRow",components:{DtEmojiTextWrapper:st.DtEmojiTextWrapper,DtBadge:lt,DtIcon:h.DtIcon,DtButton:h.DtButton,DtTooltip:u.DtTooltip,DtRecipeLeftbarGeneralRowIcon:Ul},inheritAttrs:!1,props:{type:{type:String,default:"inbox",validator:t=>Object.values(x).includes(t)},ariaLabel:{type:String,default:""},description:{type:String,required:!0},color:{type:String,default:null,validator:t=>Object.keys(_e).includes(t)},hasUnreads:{type:Boolean,default:!1},unreadCount:{type:String,default:null},unreadCountTooltip:{type:String,default:""},selected:{type:Boolean,default:!1},muted:{type:Boolean,default:!1},activeVoiceChat:{type:Boolean,default:!1},dndText:{type:String,default:""},dndTextTooltip:{type:String,default:""},hasCallButton:{type:Boolean,default:!1},callButtonTooltip:{type:String,default:""},isTyping:{type:Boolean,default:!1},iconSize:{type:String,default:"300",validator:t=>Sn.includes(t)}},emits:["call"],data(){return{actionFocused:!1,labelWidth:"100%"}},computed:{leftbarGeneralRowClasses(){return["dt-leftbar-row",{"dt-leftbar-row--no-action":!this.hasCallButton,"dt-leftbar-row--has-unread":this.hasUnreads,"dt-leftbar-row--unread-count":this.showUnreadCount,"dt-leftbar-row--selected":this.selected,"dt-leftbar-row--muted":this.muted,"dt-leftbar-row--action-focused":this.actionFocused}]},getIcon(){switch(this.type){case x.CHANNELS:if(this.hasUnreads)return"channel unread";break;case x.LOCKED_CHANNEL:if(this.hasUnreads)return"locked channel unread";break}return this.type},generalRowListeners(){return u.extractVueListeners(this.$attrs)},getAriaLabel(){return this.ariaLabel?this.ariaLabel:u.safeConcatStrings([this.description,this.unreadCountTooltip,this.dndTextTooltip])},hasActions(){return this.dndText||this.activeVoiceChat||this.showUnreadCount||this.hasCallButton},showUnreadCount(){return!!this.unreadCount&&this.hasUnreads}},watch:{$props:{immediate:!0,deep:!0,async handler(){this.validateProps(),await this.$nextTick(),this.adjustLabelWidth()}}},mounted(){this.resizeObserver=new ResizeObserver(this.adjustLabelWidth),this.resizeObserver.observe(this.$el),this.adjustLabelWidth()},beforeUnmount:function(){this.resizeObserver.disconnect()},methods:{validateProps(){this.type===x.CONTACT_CENTER&&!Object.keys(_e).includes(this.color)&&console.error(yn)},adjustLabelWidth(){var i,o,s,d,l,m;const t=((o=(i=this.$el)==null?void 0:i.querySelector(".dt-leftbar-row__primary"))==null?void 0:o.clientWidth)||0,a=((d=(s=this.$el)==null?void 0:s.querySelector(".dt-leftbar-row__omega"))==null?void 0:d.clientWidth)||0,n=((m=(l=this.$el)==null?void 0:l.querySelector(".dt-leftbar-row__alpha"))==null?void 0:m.clientWidth)||0,r=16;this.labelWidth=t-(a+n+r)+"px"}}},_t=t=>(e.pushScopeId("data-v-49d75ce6"),t=t(),e.popScopeId(),t),Kl=["data-qa","aria-label","title","href"],Yl={class:"dt-leftbar-row__alpha"},jl={key:0,class:"dt-leftbar-row__is-typing"},Gl=_t(()=>e.createElementVNode("span",null,null,-1)),Zl=_t(()=>e.createElementVNode("span",null,null,-1)),Xl=_t(()=>e.createElementVNode("span",null,null,-1)),Ql=[Gl,Zl,Xl],Jl={key:0,class:"dt-leftbar-row__omega"},ed={key:1,class:"dt-leftbar-row__active-voice"},td={key:3,class:"dt-leftbar-row__action","data-qa":"dt-leftbar-row-action"};function nd(t,a,n,r,i,o){const s=e.resolveComponent("dt-recipe-leftbar-general-row-icon"),d=e.resolveComponent("dt-emoji-text-wrapper"),l=e.resolveComponent("dt-tooltip"),m=e.resolveComponent("dt-icon"),p=e.resolveComponent("dt-badge"),c=e.resolveComponent("dt-button");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(o.leftbarGeneralRowClasses),"data-qa":"dt-leftbar-row"},[e.createElementVNode("a",e.mergeProps({class:"dt-leftbar-row__primary","data-qa":"data-qa"in t.$attrs?t.$attrs["data-qa"]:"dt-leftbar-row-link","aria-label":o.getAriaLabel,title:n.description,href:"href"in t.$attrs?t.$attrs.href:"javascript:void(0)"},t.$attrs,e.toHandlers(o.generalRowListeners,!0)),[e.createElementVNode("div",Yl,[n.isTyping?(e.openBlock(),e.createElementBlock("div",jl,Ql)):e.renderSlot(t.$slots,"left",{key:1},()=>[e.createVNode(s,{type:o.getIcon,color:n.color,"icon-size":n.iconSize,"data-qa":"dt-leftbar-row-icon"},null,8,["type","color","icon-size"])],!0)]),e.createElementVNode("div",{class:"dt-leftbar-row__label",style:e.normalizeStyle(`flex-basis: ${i.labelWidth}`)},[e.renderSlot(t.$slots,"label",{},()=>[e.createVNode(d,{class:"dt-leftbar-row__description","data-qa":"dt-leftbar-row-description",size:"200"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.description),1)]),_:1})],!0)],4)],16,Kl),o.hasActions?(e.openBlock(),e.createElementBlock("div",Jl,[n.dndText?(e.openBlock(),e.createBlock(l,{key:0,placement:"top",message:n.dndTextTooltip},{anchor:e.withCtx(()=>[e.createElementVNode("div",{ref:"dt-leftbar-row-dnd",class:"dt-leftbar-row__dnd","data-qa":"dt-leftbar-row-dnd"},e.toDisplayString(n.dndText),513)]),_:1},8,["message"])):e.createCommentVNode("",!0),n.activeVoiceChat?(e.openBlock(),e.createElementBlock("div",ed,[e.createVNode(m,{size:"300",name:"waveform"})])):o.showUnreadCount?(e.openBlock(),e.createBlock(l,{key:2,message:n.unreadCountTooltip,placement:"top"},{anchor:e.withCtx(()=>[e.createVNode(p,{kind:"count",type:"bulletin","data-qa":"dt-leftbar-row-unread-badge",class:"dt-leftbar-row__unread-badge"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.unreadCount),1)]),_:1})]),_:1},8,["message"])):e.createCommentVNode("",!0),n.hasCallButton?(e.openBlock(),e.createElementBlock("div",td,[e.createVNode(l,{message:n.callButtonTooltip,placement:"top"},{anchor:e.withCtx(()=>[e.createVNode(c,{class:"dt-leftbar-row__action-button","data-qa":"dt-leftbar-row-action-call-button",circle:!0,size:"xs",kind:"inverted","aria-label":n.callButtonTooltip,onFocus:a[0]||(a[0]=g=>i.actionFocused=!0),onBlur:a[1]||(a[1]=g=>i.actionFocused=!1),onClick:a[2]||(a[2]=e.withModifiers(g=>t.$emit("call",g),["stop"]))},{icon:e.withCtx(()=>[e.createVNode(m,{name:"phone",size:"200"})]),_:1},8,["aria-label"])]),_:1},8,["message"])])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],2)}const bt=u._export_sfc(Wl,[["render",nd],["__scopeId","data-v-49d75ce6"]]),ad={name:"DtRecipeGroupRow",components:{DtIcon:h.DtIcon,DtRecipeGeneralRow:bt},inheritAttrs:!1,props:{groupCountText:{type:String,default:""},names:{type:String,required:!0},unreadCount:{type:String,default:null},unreadCountTooltip:{type:String,default:null},hasUnreads:{type:Boolean,default:!1},selected:{type:Boolean,default:!1},isTyping:{type:Boolean,default:!1}},emits:[],computed:{ariaLabel(){return u.safeConcatStrings([this.groupCountText,this.names])},contactRowListeners(){return u.extractVueListeners(this.$attrs)}}};function rd(t,a,n,r,i,o){const s=e.resolveComponent("dt-icon"),d=e.resolveComponent("dt-recipe-general-row");return e.openBlock(),e.createBlock(d,e.mergeProps({description:n.names,"aria-label":o.ariaLabel,"unread-count":n.unreadCount,"has-unreads":n.hasUnreads,"unread-count-tooltip":n.unreadCountTooltip,selected:n.selected,"is-typing":n.isTyping},t.$attrs,e.toHandlers(o.contactRowListeners)),{left:e.withCtx(()=>[e.createVNode(s,{name:"users",size:"300"})]),_:1},16,["description","aria-label","unread-count","has-unreads","unread-count-tooltip","selected","is-typing"])}const od=u._export_sfc(ad,[["render",rd]]),id={name:"DtRecipeContactRow",components:{DtAvatar:_.DtAvatar,DtRecipeGeneralRow:bt,DtEmojiTextWrapper:st.DtEmojiTextWrapper},inheritAttrs:!1,props:{avatarSrc:{type:String,default:""},avatarAlt:{type:String,default:""},avatarPresence:{type:String,default:null},avatarSeed:{type:String,default:null},presenceText:{type:String,default:""},name:{type:String,required:!0},userStatus:{type:String,default:""},muted:{type:Boolean,default:!1},unreadCount:{type:String,default:null},hasUnreads:{type:Boolean,default:!1},selected:{type:Boolean,default:!1},noInitials:{type:Boolean,default:!1},isTyping:{type:Boolean,default:!1},hasCallButton:{type:Boolean,default:!0},callButtonTooltip:{type:String,default:""},unreadCountTooltip:{type:String,default:""}},emits:["call"],computed:{presenceColorClass(){switch(this.avatarPresence){case"active":return"d-fc-success";case"busy":return"d-fc-critical";case"away":return"d-fc-warning";default:return}},contactRowListeners(){return u.extractVueListeners(this.$attrs)},contactDescription(){return u.safeConcatStrings([this.name,this.presenceText,this.userStatus])},iconName(){return this.noInitials?"user":null}}},sd={class:"dt-leftbar-row__status"};function ld(t,a,n,r,i,o){const s=e.resolveComponent("dt-avatar"),d=e.resolveComponent("dt-emoji-text-wrapper"),l=e.resolveComponent("dt-recipe-general-row");return e.openBlock(),e.createBlock(l,e.mergeProps({"unread-count":n.unreadCount,description:o.contactDescription,"has-unreads":n.hasUnreads,selected:n.selected,"has-call-button":n.hasCallButton,muted:n.muted,"is-typing":n.isTyping,"call-button-tooltip":n.callButtonTooltip,"unread-count-tooltip":n.unreadCountTooltip},t.$attrs,e.toHandlers(o.contactRowListeners),{onCall:a[0]||(a[0]=m=>t.$emit("call",m))}),{left:e.withCtx(()=>[e.createVNode(s,{"full-name":n.name,"image-src":n.avatarSrc,"image-alt":n.avatarAlt,"icon-name":o.iconName,"icon-size":"200",size:"sm",seed:n.avatarSeed,presence:n.avatarPresence},null,8,["full-name","image-src","image-alt","icon-name","seed","presence"])]),label:e.withCtx(()=>[e.createVNode(d,{class:"dt-leftbar-row__description","data-qa":"dt-leftbar-row-description",size:"200"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.name),1)]),_:1}),e.createElementVNode("div",sd,[n.presenceText?(e.openBlock(),e.createElementBlock("span",{key:0,"data-qa":"dt-leftbar-row-presence-text",class:e.normalizeClass(["dt-leftbar-row__meta-context",o.presenceColorClass])},e.toDisplayString(n.presenceText),3)):e.createCommentVNode("",!0),n.userStatus?(e.openBlock(),e.createBlock(d,{key:1,size:"100","element-type":"span","data-qa":"dt-leftbar-row-user-status",class:"dt-leftbar-row__meta-custom"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.userStatus),1)]),_:1})):e.createCommentVNode("",!0)])]),_:1},16,["unread-count","description","has-unreads","selected","has-call-button","muted","is-typing","call-button-tooltip","unread-count-tooltip"])}const dd=u._export_sfc(id,[["render",ld]]),Cn=["up","down"],wn=["mentions","messages"];const cd={name:"DtRecipeUnreadPill",components:{DtIcon:h.DtIcon},props:{kind:{type:String,required:!0,validator:t=>wn.includes(t)},direction:{type:String,required:!0,validator:t=>Cn.includes(t)}},emits:["click"],computed:{unreadChipListeners(){return{click:t=>this.$emit("click",t)}}}},ud={"data-qa":"dt-leftbar-unread-pill__label"};function md(t,a,n,r,i,o){const s=e.resolveComponent("dt-icon");return e.openBlock(),e.createElementBlock("button",e.mergeProps({class:["dt-leftbar-unread-pill",`dt-leftbar-unread-pill--${n.kind}`],type:"button","data-qa":"dt-leftbar-unread-pill"},e.toHandlers(o.unreadChipListeners,!0)),[e.createVNode(s,{name:`arrow-${n.direction}`,size:"300"},null,8,["name"]),e.createElementVNode("span",ud,[e.renderSlot(t.$slots,"default")])],16)}const hd=u._export_sfc(cd,[["render",md]]),He={NORMAL:"",SEARCHED:"d-bgc-warning-subtle",ERROR:"d-bgc-critical-subtle"},Ue="NORMAL";const fd={name:"DtRecipeFeedItemRow",components:{DtAvatar:_.DtAvatar,DtLazyShow:u.DtLazyShow,DtListItem:_.DtListItem},inheritAttrs:!1,props:{avatarSeed:{type:String,default:null},showHeader:{type:Boolean,default:!1},avatarImageUrl:{type:String,default:""},displayName:{type:String,default:""},time:{type:String,default:""},shortTime:{type:String,default:""},isActive:{type:Boolean,default:!1},state:{type:String,default:Ue,validator:t=>Object.keys(He).includes(t)}},emits:["hover","focus"],data(){return{faded:!1}},computed:{feedListeners(){return{mouseenter:()=>this.setHover(!0),mouseleave:()=>this.setHover(!1),focusin:()=>this.setFocus(!0),focusout:()=>this.setFocus(!1)}},listItemClasses(){return["d-w100p","d-box-border","d-ps-relative","d-px8",{"d-bgc-secondary-opaque":this.isActive&&this.state===Ue},He[this.state],"dt-feed-item-row","d-t","d-tp-bgc"]}},methods:{setFocus(t){this.$emit("focus",t)},setHover(t){this.$emit("hover",t)},fade(){this.state===Ue||this.faded===!0||(this.$refs.FeedItemRef.$el.classList.remove(He[this.state]),this.faded=!0)}}},pd={key:0,"data-qa":"dt-feed-item-row--header",class:"d-d-flex d-ai-center"},gd={class:"d-fs-200 d-lh-300 d-fw-bold d-to-ellipsis d-of-hidden d-ws-nowrap"},_d={class:"d-fs-100 d-mt2 d-lh-300 d-fc-tertiary d-fw-normal d-ml4 d-fl-shrink0"},bd={class:"content-text-wrapper-class","data-qa":"dt-feed-item-row--content"},vd={class:"d-d-flex d-fw-wrap","data-qa":"dt-feed-item-row--reactions"},yd={"data-qa":"dt-feed-item-row--menu",class:"d-ps-absolute d-tn24 d-r12"};function Sd(t,a,n,r,i,o){const s=e.resolveComponent("dt-avatar"),d=e.resolveComponent("dt-lazy-show"),l=e.resolveComponent("dt-list-item");return e.openBlock(),e.createBlock(l,e.mergeProps({ref:"FeedItemRef","navigation-type":"none"},t.$attrs,{class:o.listItemClasses,"data-qa":"dt-feed-item-row"},e.toHandlers(o.feedListeners)),{left:e.withCtx(()=>[n.showHeader?e.renderSlot(t.$slots,"avatar",{key:0},()=>[e.createVNode(s,{"full-name":n.displayName,"image-src":n.avatarImageUrl,seed:n.avatarSeed},null,8,["full-name","image-src","seed"])],!0):e.createCommentVNode("",!0),n.showHeader?e.createCommentVNode("",!0):e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:1,class:"d-fs-100 d-fw-normal d-ws-nowrap d-lh-100 d-fc-tertiary d-mb6 d-h100p d-mt16","data-qa":"dt-feed-item-row--left-time"},e.toDisplayString(n.shortTime),513)),[[e.vShow,n.isActive]])]),bottom:e.withCtx(()=>[e.createElementVNode("div",vd,[e.renderSlot(t.$slots,"reactions",{},void 0,!0)]),e.renderSlot(t.$slots,"threading",{},void 0,!0)]),right:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",yd,[e.createVNode(d,{appear:!0,transition:"fade",show:n.isActive},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"menu",{},void 0,!0)]),_:3},8,["show"])],512),[[e.vShow,n.isActive]])]),default:e.withCtx(()=>[e.createElementVNode("article",null,[n.showHeader?(e.openBlock(),e.createElementBlock("div",pd,[e.createElementVNode("p",gd,e.toDisplayString(n.displayName),1),e.createElementVNode("time",_d,e.toDisplayString(n.time),1)])):e.createCommentVNode("",!0),e.createElementVNode("span",bd,[e.renderSlot(t.$slots,"default",{},void 0,!0)])])]),_:3},16,["class"])}const Cd=u._export_sfc(fd,[["render",Sd],["__scopeId","data-v-5db9c697"]]),rt={default:"dt-recipe-feed-item-pill__border-default",ai:"dt-recipe-feed-item-pill__border-ai",critical:"dt-recipe-feed-item-pill__border-critical"};const wd={name:"DtRecipeFeedItemPill",components:{DtItemLayout:_.DtItemLayout,DtIcon:h.DtIcon,DtCollapsible:Zt},props:{iconName:{type:String,default:()=>""},title:{type:String,default:()=>""},wrapperClass:{type:[String,Array,Object],default:""},buttonClass:{type:[String,Array,Object],default:""},ariaLabel:{type:String,required:!0},toggleable:{type:Boolean,default:()=>!0},defaultToggled:{type:Boolean,default:()=>!1},borderColor:{type:String,default:"default",validator:t=>Object.keys(rt).includes(t)}},data(){return{hover:!1,expanded:this.defaultToggled}},computed:{computedIcon(){return this.toggleable&&this.hover?this.expanded?"chevron-down":"chevron-right":this.iconName},toggleableClass(){return this.toggleable?"d-c-pointer":""},borderClass(){return rt[this.borderColor]}},methods:{onClick(){this.toggleable&&(this.expanded=!this.expanded)}}},Ed={class:"dt-recipe-feed-item-pill__wrapper"},kd=["aria-label"],Dd={class:"dt-recipe-feed-item-pill__title"},Id={class:"dt-recipe-feed-item-pill__content"};function Td(t,a,n,r,i,o){const s=e.resolveComponent("dt-icon"),d=e.resolveComponent("dt-item-layout"),l=e.resolveComponent("dt-collapsible");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["dt-recipe-feed-item-pill__border",o.borderClass,n.wrapperClass])},[e.createElementVNode("div",Ed,[e.createVNode(l,{open:i.expanded},{anchor:e.withCtx(()=>[e.createElementVNode("button",{"data-qa":"dt-recipe-feed-item-pill","aria-label":n.ariaLabel,class:e.normalizeClass(["dt-recipe-feed-item-pill__button",o.toggleableClass,n.buttonClass]),onFocusin:a[0]||(a[0]=m=>i.hover=!0),onFocusout:a[1]||(a[1]=m=>i.hover=!1),onMouseenter:a[2]||(a[2]=m=>i.hover=!0),onMouseleave:a[3]||(a[3]=m=>i.hover=!1),onClick:a[4]||(a[4]=(...m)=>o.onClick&&o.onClick(...m))},[e.createVNode(d,{class:"dt-recipe-feed-item-pill__layout"},{left:e.withCtx(()=>[e.createVNode(s,{"data-qa":"dt-recipe-feed-item-pill__icon",size:"300",class:"dt-recipe-feed-item-pill__icon",name:o.computedIcon},null,8,["name"])]),subtitle:e.withCtx(()=>[e.renderSlot(t.$slots,"subtitle",{},void 0,!0)]),bottom:e.withCtx(()=>[e.renderSlot(t.$slots,"bottom",{},void 0,!0)]),right:e.withCtx(()=>[e.renderSlot(t.$slots,"right",{},void 0,!0)]),default:e.withCtx(()=>[e.renderSlot(t.$slots,"title",{},()=>[e.createElementVNode("span",Dd,e.toDisplayString(n.title),1)],!0)]),_:3})],42,kd)]),content:e.withCtx(()=>[e.createElementVNode("div",Id,[e.renderSlot(t.$slots,"content",{},void 0,!0)])]),_:3},8,["open"])])],2)}const Od=u._export_sfc(wd,[["render",Td],["__scopeId","data-v-2e98d8f9"]]),Nd={name:"DtRecipeTimePill",props:{dateTimeDisplay:{type:String,required:!0},dateTime:{type:String,required:!0,validator:t=>{const a=new Date(t);return a instanceof Date&&!isNaN(a)}}}},Ld=["dateTime"];function Bd(t,a,n,r,i,o){return e.openBlock(),e.createElementBlock("time",{"data-qa":"dt-time-pill",dateTime:n.dateTime,class:"d-ba d-bar-pill d-baw1 d-bc-black-300 d-px16 d-py4 d-fs-100"},e.toDisplayString(n.dateTimeDisplay),9,Ld)}const xd=u._export_sfc(Nd,[["render",Bd]]),En=["emojiUnicodeOrShortname","isSelected","ariaLabel","tooltip","num"];const Ad={name:"DtRecipeEmojiRow",components:{DtTooltip:u.DtTooltip,DtButton:h.DtButton,DtEmoji:h.DtEmoji,DtEmojiTextWrapper:st.DtEmojiTextWrapper},mixins:[],props:{reactions:{type:Array,default:()=>[],validator:t=>{for(const a of t)if(!En.every(r=>a[r]!==void 0))return!1;return!0}}},emits:["emoji-clicked","emoji-hovered"],methods:{emojiClicked(t){this.$emit("emoji-clicked",t.emojiUnicodeOrShortname)},emojiHovered(t,a){this.$emit("emoji-hovered",{reaction:t.emojiUnicodeOrShortname,state:a})}}},Md={class:"dt-emoji-row"},Vd=["reaction"],Rd={"aria-hidden":"true"},Pd={class:"d-mr4 d-d-inline-flex"},$d={class:"d-fw-bold d-fs-100"};function zd(t,a,n,r,i,o){const s=e.resolveComponent("dt-emoji-text-wrapper"),d=e.resolveComponent("dt-emoji"),l=e.resolveComponent("dt-button"),m=e.resolveComponent("dt-tooltip");return e.openBlock(),e.createElementBlock("span",Md,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.reactions,p=>(e.openBlock(),e.createElementBlock("span",{key:p.unicodeOutput,reaction:p,class:"d-mr4 d-mb4"},[e.createVNode(m,{class:"d-d-inline-block","content-class":"d-wmx464",onShown:c=>o.emojiHovered(p,c)},{anchor:e.withCtx(({attrs:c})=>[e.createVNode(l,{importance:"clear",size:"sm","data-qa":"feed-item-reaction-button",class:e.normalizeClass(["dt-emoji-row__reaction",p.isSelected?"dt-emoji-row__reaction--selected":""]),"aria-label":p.ariaLabel,attrs:c,onClick:g=>o.emojiClicked(p)},{default:e.withCtx(()=>[e.createElementVNode("span",Pd,[e.createVNode(d,{size:"200",code:p.emojiUnicodeOrShortname},null,8,["code"])]),e.createElementVNode("span",$d,e.toDisplayString(p.num),1)]),_:2},1032,["class","aria-label","attrs","onClick"])]),default:e.withCtx(()=>[e.createElementVNode("span",Rd,[e.createVNode(s,{size:"200"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(p.tooltip),1)]),_:2},1024)])]),_:2},1032,["onShown"])],8,Vd))),128))])}const Fd=u._export_sfc(Ad,[["render",zd]]);const qd={name:"DtProgressBar",props:{progressbarAriaLabel:{type:String,required:!0},progress:{type:Number,default:20}},data:()=>({circleCircumference:50}),computed:{cssVars(){return{"--stroke-dashoffset":this.circleCircumference-this.circleCircumference*this.progress/100,"--stroke-dasharray":this.circleCircumference}}},mounted(){this.circleCircumference=this.$refs.progressbarCircle.getTotalLength()}},Hd=["aria-label","aria-valuenow"],Ud={ref:"progressbarCircle",r:"8",cx:"12",cy:"12",class:"progress-bar__circle"},Wd=e.createElementVNode("circle",{r:"8",cx:"12",cy:"12",class:"progress-bar__circle"},null,-1);function Kd(t,a,n,r,i,o){return e.openBlock(),e.createElementBlock("div",{role:"progressbar","aria-label":n.progressbarAriaLabel,tabindex:"-1","aria-valuenow":n.progress,"aria-valuemin":"0","aria-valuemax":"100"},[(e.openBlock(),e.createElementBlock("svg",{class:"progress-bar d-w24 d-h24",style:e.normalizeStyle(o.cssVars)},[e.createElementVNode("circle",Ud,null,512),Wd],4))],8,Hd)}const Yd=u._export_sfc(qd,[["render",Kd]]);const jd={name:"DtImageCarousel",components:{DtImageViewer:Qt,DtButton:h.DtButton,DtIcon:h.DtIcon,DtProgressBar:Yd},props:{mediaItem:{type:Object,required:!0},index:{type:Number,required:!0},closeAriaLabel:{type:String,required:!0},clickToOpenAriaLabel:{type:String,required:!0},progressbarAriaLabel:{type:String,required:!0}},emits:["remove-media"],methods:{removeMediaItem(t){this.$emit("remove-media",t)}}},Gd={class:"dt-attachment-image"},Zd={class:"dt-attachment-image__top-right"};function Xd(t,a,n,r,i,o){const s=e.resolveComponent("dt-image-viewer"),d=e.resolveComponent("dt-progress-bar"),l=e.resolveComponent("dt-icon"),m=e.resolveComponent("dt-button");return e.openBlock(),e.createElementBlock("li",Gd,[e.createVNode(s,{"image-button-class":"dt-attachment-image__image-viewer","image-src":n.mediaItem.path,"image-alt":n.mediaItem.altText,"close-aria-label":n.closeAriaLabel,"aria-label":n.clickToOpenAriaLabel},null,8,["image-src","image-alt","close-aria-label","aria-label"]),e.createElementVNode("div",Zd,[n.mediaItem.isUploading?(e.openBlock(),e.createBlock(d,{key:0,class:"dt-attachment-image__progress-bar",progress:n.mediaItem.progress,"progressbar-aria-label":n.progressbarAriaLabel},null,8,["progress","progressbar-aria-label"])):e.createCommentVNode("",!0),e.createVNode(m,{id:`closeButton-${n.index}`,tabindex:"0",class:"dt-attachment-image__close-button",circle:"",size:"xs",importance:"clear","aria-label":n.closeAriaLabel,onClick:a[0]||(a[0]=p=>o.removeMediaItem(n.index))},{icon:e.withCtx(()=>[e.createVNode(l,{name:"close",size:"200"})]),_:1},8,["id","aria-label"])])])}const Qd=u._export_sfc(jd,[["render",Xd]]);const Jd=64,ec={name:"DtRecipeAttachmentCarousel",components:{DtButton:h.DtButton,DtIcon:h.DtIcon,DtImageCarousel:Qd},mixins:[],props:{mediaList:{type:Array,default:()=>[]},closeAriaLabel:{type:String,required:!0},clickToOpenAriaLabel:{type:String,required:!0},progressbarAriaLabel:{type:String,required:!0},leftArrowAriaLabel:{type:String,required:!0},rightArrowAriaLabel:{type:String,required:!0}},emits:["remove-media"],data(){return{showCloseButton:{},showRightArrow:!0,showLeftArrow:!1,isMounted:!1}},computed:{filteredMediaList(){return this.mediaList.filter(t=>t.type==="image"||t.type==="video")}},mounted:function(){this.showLeftArrow=this.$refs.carousel.scrollLeft>0,this.showRightArrow=this.$refs.carousel.scrollWidth>this.$refs.carousel.clientWidth},methods:{onItemFocus(t){t.currentTarget.scrollIntoView({behavior:"smooth"})},mediaComponent(t){switch(t){case"image":return"dt-image-carousel";default:return null}},removeMediaItem(t){this.showRightArrow=this.$refs.carousel.scrollWidth>this.$refs.carousel.clientWidth+Jd,this.$emit("remove-media",t)},closeButton(t,a){this.showCloseButton[a]=t},handleScroll(){const t=this.$refs.carousel;this.showLeftArrow=t.scrollLeft>0,this.showRightArrow=t.scrollLeft+t.clientWidth!==t.scrollWidth},leftScroll(){this.$refs.carousel.scrollTo({left:this.$refs.carousel.scrollLeft-100,behavior:"smooth"})},rightScroll(){this.$refs.carousel.scrollTo({left:this.$refs.carousel.scrollLeft+100,behavior:"smooth"})}}},tc={class:"dt-attachment-carousel",role:"presentation"};function nc(t,a,n,r,i,o){const s=e.resolveComponent("dt-icon"),d=e.resolveComponent("dt-button");return e.openBlock(),e.createElementBlock("div",tc,[n.mediaList.length>0?(e.openBlock(),e.createElementBlock("ul",{key:0,ref:"carousel",class:"dt-attachment-carousel__media-list",onScroll:a[0]||(a[0]=(...l)=>o.handleScroll&&o.handleScroll(...l))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.filteredMediaList,(l,m)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.mediaComponent(l.type)),{key:`media-${m}`,index:m,"media-item":l,"close-aria-label":n.closeAriaLabel,"click-to-open-aria-label":n.clickToOpenAriaLabel,"progressbar-aria-label":n.progressbarAriaLabel,onRemoveMedia:p=>o.removeMediaItem(m),onFocusin:o.onItemFocus},null,40,["index","media-item","close-aria-label","click-to-open-aria-label","progressbar-aria-label","onRemoveMedia","onFocusin"]))),128))],544)):e.createCommentVNode("",!0),e.withDirectives(e.createVNode(d,{tabindex:"-1","aria-label":n.leftArrowAriaLabel,class:"dt-attachment-carousel__arrow dt-attachment-carousel__arrow--left",circle:"",size:"xs",importance:"clear",onClick:o.leftScroll},{icon:e.withCtx(()=>[e.createVNode(s,{name:"arrow-left",size:"100"})]),_:1},8,["aria-label","onClick"]),[[e.vShow,i.showLeftArrow]]),e.withDirectives(e.createVNode(d,{tabindex:"-1","aria-label":n.rightArrowAriaLabel,class:"dt-attachment-carousel__arrow dt-attachment-carousel__arrow--right",circle:"",size:"xs",importance:"clear",onClick:o.rightScroll},{icon:e.withCtx(()=>[e.createVNode(s,{name:"arrow-right",size:"100"})]),_:1},8,["aria-label","onClick"]),[[e.vShow,i.showRightArrow]])])}const ac=u._export_sfc(ec,[["render",nc]]),ot={warning:"dt-recipe-callbox-badge--warning"},it={default:"dt-recipe-callbox--border-default",ai:"dt-recipe-callbox--border-ai",critical:"dt-recipe-callbox--border-critical"};const rc={name:"DtRecipeCallbox",components:{DtBadge:lt,DtAvatar:_.DtAvatar},inheritAttrs:!1,props:{badgeText:{type:String,default:""},badgeColor:{type:String,default:null,validator:t=>t===null||Object.keys(ot).includes(t)},avatarSrc:{type:String,default:""},avatarFullName:{type:String,default:""},avatarSeed:{type:String,default:""},title:{type:String,default:""},borderColor:{type:String,default:"default",validator:t=>Object.keys(it).includes(t)},clickable:{type:Boolean,default:!1},isOnHold:{type:Boolean,default:!1}},emits:["click"],computed:{shouldShowAvatar(){return this.avatarFullName||this.avatarSrc},badgeClass(){return ot[this.badgeColor]},borderClass(){return it[this.borderColor]}},methods:{handleClick(t){this.clickable&&this.$emit("click",t)}}},oc={"data-qa":"dt-recipe-callbox",class:"dt-recipe-callbox"},ic={key:0,"data-qa":"dt-recipe-callbox--video-wrapper",class:"dt-recipe-callbox--video"},sc={class:"dt-recipe-callbox--main-content-top"},lc={class:"dt-recipe-callbox--content"},dc={key:0,"data-qa":"dt-recipe-callbox--badge-wrapper",class:"dt-recipe-callbox--content-badge"},cc={key:1,"data-qa":"dt-recipe-callbox--subtitle-wrapper",class:"dt-recipe-callbox--content-subtitle"},uc={key:1,"data-qa":"dt-recipe-callbox--right-wrapper",class:"dt-recipe-callbox--right"},mc={key:0,"data-qa":"dt-recipe-callbox--bottom-wrapper",class:"dt-recipe-callbox--main-content-bottom"};function hc(t,a,n,r,i,o){const s=e.resolveComponent("dt-avatar"),d=e.resolveComponent("dt-badge");return e.openBlock(),e.createElementBlock("div",oc,[t.$slots.video?(e.openBlock(),e.createElementBlock("div",ic,[e.renderSlot(t.$slots,"video",{},void 0,!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",{"data-qa":"dt-recipe-callbox--main-content",class:e.normalizeClass(["dt-recipe-callbox--main-content",o.borderClass,{"dt-recipe-callbox--clickable":n.clickable}])},[e.createElementVNode("div",sc,[o.shouldShowAvatar?(e.openBlock(),e.createBlock(s,{key:0,"avatar-class":"dt-recipe-callbox--avatar","image-src":n.avatarSrc,"full-name":n.avatarFullName,seed:n.avatarSeed,clickable:n.clickable,"overlay-icon":n.isOnHold?"pause":null,size:"sm",onClick:o.handleClick},null,8,["image-src","full-name","seed","clickable","overlay-icon","onClick"])):e.createCommentVNode("",!0),e.createElementVNode("div",lc,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.clickable?"button":"span"),{"data-qa":"dt-recipe-callbox--title",class:"dt-recipe-callbox--content-title",onClick:o.handleClick},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.title),1)]),_:1},8,["onClick"])),t.$slots.badge||n.badgeText?(e.openBlock(),e.createElementBlock("div",dc,[e.renderSlot(t.$slots,"badge",{},()=>[e.createVNode(d,{class:e.normalizeClass(o.badgeClass),text:n.badgeText},null,8,["class","text"])],!0)])):e.createCommentVNode("",!0),t.$slots.subtitle?(e.openBlock(),e.createElementBlock("div",cc,[e.renderSlot(t.$slots,"subtitle",{},void 0,!0)])):e.createCommentVNode("",!0)]),t.$slots.right?(e.openBlock(),e.createElementBlock("div",uc,[e.renderSlot(t.$slots,"right",{},void 0,!0)])):e.createCommentVNode("",!0)]),t.$slots.bottom?(e.openBlock(),e.createElementBlock("div",mc,[e.renderSlot(t.$slots,"bottom",{},void 0,!0)])):e.createCommentVNode("",!0)],2)])}const fc=u._export_sfc(rc,[["render",hc],["__scopeId","data-v-66800ae7"]]);function ke(t,a){return vt(),Q(t,a,{locale:global.locale})}function pc(t,a){return vt(),Yi(t,{locale:global.locale,format:a})}function gc(t,a){return vt(),Wi(t,a,{locale:global.locale})}function _c(){return global.locale!==void 0}function vt(){if(!_c())throw new Error("Locale not set, please call setDateLocale(locale) and pass in a datefns locale object as the locale param before calling this function")}function bc(t){global.locale=t}function vc(t){return ke(t,"MMMM d, y")}function yc(t){if(t<60)return gc(0,29*1e3);const a=Zi({start:0,end:t*1e3});return pc(a,["hours","minutes"])}function Ft(t){const a=new Intl.RelativeTimeFormat(global.locale.code,{numeric:"auto"});return u.capitalizeFirstLetter(a.formatToParts(t,"day")[0].value,global.locale.code)}function Sc(t){return ns(t)?Ft(0):rs(t)?Ft(-1):es(t)?ke(t,"EEEE"):ts(t)?ke(t,"EEEE, MMMM d"):ke(t,"MMMM d, y")}exports.AVATAR_COLORS=_.AVATAR_COLORS;exports.AVATAR_GROUP_VALIDATOR=_.AVATAR_GROUP_VALIDATOR;exports.AVATAR_ICON_SIZES=_.AVATAR_ICON_SIZES;exports.AVATAR_KIND_MODIFIERS=_.AVATAR_KIND_MODIFIERS;exports.AVATAR_PRESENCE_SIZE_MODIFIERS=_.AVATAR_PRESENCE_SIZE_MODIFIERS;exports.AVATAR_PRESENCE_STATES=_.AVATAR_PRESENCE_STATES;exports.AVATAR_SIZE_MODIFIERS=_.AVATAR_SIZE_MODIFIERS;exports.DtAvatar=_.DtAvatar;exports.DtItemLayout=_.DtItemLayout;exports.DtLink=_.DtLink;exports.DtListItem=_.DtListItem;exports.DtNotice=_.DtNotice;exports.DtPopover=_.DtPopover;exports.DtPresence=_.DtPresence;exports.DtRecipeMessageInput=_.message_input;exports.DtStack=_.DtStack;exports.NOTICE_KINDS=_.NOTICE_KINDS;exports.POPOVER_CONTENT_WIDTHS=_.POPOVER_CONTENT_WIDTHS;exports.POPOVER_HEADER_FOOTER_PADDING_CLASSES=_.POPOVER_HEADER_FOOTER_PADDING_CLASSES;exports.POPOVER_INITIAL_FOCUS_STRINGS=_.POPOVER_INITIAL_FOCUS_STRINGS;exports.POPOVER_PADDING_CLASSES=_.POPOVER_PADDING_CLASSES;exports.POPOVER_ROLES=_.POPOVER_ROLES;exports.PRESENCE_STATES=_.PRESENCE_STATES;exports.PRESENCE_STATES_LIST=_.PRESENCE_STATES_LIST;exports.CDN_URL=h.CDN_URL;exports.DtButton=h.DtButton;exports.DtCheckableInputMixin=h.CheckableMixin;exports.DtEmojiPicker=h._sfc_main;exports.DtGroupableInputMixin=h.GroupableMixin;exports.DtIcon=h.DtIcon;exports.DtInput=h.DtInput;exports.DtInputMixin=h.InputMixin;exports.DtSkeleton=h.DtSkeleton;exports.DtSkeletonListItem=h.DtSkeletonListItem;exports.DtSkeletonParagraph=h.DtSkeletonParagraph;exports.DtSkeletonShape=h.DtSkeletonShape;exports.DtSkeletonText=h.DtSkeletonText;exports.DtTab=h.DtTab;exports.DtTabGroup=h.DtTabGroup;exports.DtValidationMessages=h.DtValidationMessages;exports.EMOJIS_PER_ROW=h.EMOJIS_PER_ROW;exports.EMOJI_CATEGORIES=h.EMOJI_CATEGORIES;exports.EMOJI_SKIN_TONE_MODIFIERS=h.EMOJI_SKIN_TONE_MODIFIERS;exports.ICON_SIZE_MODIFIERS=h.ICON_SIZE_MODIFIERS;exports.INPUT_SIZES=h.INPUT_SIZES;exports.INPUT_TYPES=h.INPUT_TYPES;exports.LINK_KIND_MODIFIERS=h.LINK_KIND_MODIFIERS;exports.LINK_VARIANTS=h.LINK_VARIANTS;exports.SKELETON_HEADING_HEIGHTS=h.SKELETON_HEADING_HEIGHTS;exports.SKELETON_RIPPLE_DURATION=h.SKELETON_RIPPLE_DURATION;exports.SKELETON_SHAPES=h.SKELETON_SHAPES;exports.SKELETON_SHAPE_SIZES=h.SKELETON_SHAPE_SIZES;exports.SKELETON_TEXT_TYPES=h.SKELETON_TEXT_TYPES;exports.TAB_IMPORTANCE_MODIFIERS=h.TAB_IMPORTANCE_MODIFIERS;exports.TAB_LIST_IMPORTANCE_MODIFIERS=h.TAB_LIST_IMPORTANCE_MODIFIERS;exports.TAB_LIST_KIND_MODIFIERS=h.TAB_LIST_KIND_MODIFIERS;exports.TAB_LIST_SIZES=h.TAB_LIST_SIZES;exports.validationMessageValidator=h.validationMessageValidator;exports.DEFAULT_VALIDATION_MESSAGE_TYPE=u.DEFAULT_VALIDATION_MESSAGE_TYPE;exports.DESCRIPTION_SIZE_TYPES=u.DESCRIPTION_SIZE_TYPES;exports.DtLazyShow=u.DtLazyShow;exports.DtTooltip=u.DtTooltip;exports.TOOLTIP_DELAY_MS=u.TOOLTIP_DELAY_MS;exports.TOOLTIP_DIRECTIONS=u.TOOLTIP_DIRECTIONS;exports.TOOLTIP_HIDE_ON_CLICK_VARIANTS=u.TOOLTIP_HIDE_ON_CLICK_VARIANTS;exports.TOOLTIP_KIND_MODIFIERS=u.TOOLTIP_KIND_MODIFIERS;exports.TOOLTIP_STICKY_VALUES=u.TOOLTIP_STICKY_VALUES;exports.VALIDATION_MESSAGE_TYPES=u.VALIDATION_MESSAGE_TYPES;exports.filterFormattedMessages=u.filterFormattedMessages;exports.formatMessages=u.formatMessages;exports.getUniqueString=u.getUniqueString;exports.getValidationState=u.getValidationState;exports.BADGE_DECORATION_MODIFIERS=Ye;exports.BADGE_KIND_MODIFIERS=Ke;exports.BADGE_TYPE_MODIFIERS=We;exports.BREADCRUMBS_INVERTED_MODIFIER=Ht;exports.BREADCRUMB_ITEM_SELECTED_MODIFIER=qt;exports.BUTTON_GROUP_ALIGNMENT=je;exports.CALLBAR_BUTTON_VALID_WIDTH_SIZE=gt;exports.CALLBOX_BADGE_COLORS=ot;exports.CALLBOX_BORDER_COLORS=it;exports.CHIP_SIZE_MODIFIERS=Qe;exports.COLOR_CODES=_n;exports.DtBadge=lt;exports.DtBanner=An;exports.DtBreadcrumbItem=Ut;exports.DtBreadcrumbs=zn;exports.DtButtonGroup=Hn;exports.DtCard=Wt;exports.DtCheckbox=yr;exports.DtCheckboxGroup=Sr;exports.DtChip=ut;exports.DtCodeblock=Gn;exports.DtCollapsible=Zt;exports.DtCombobox=Gt;exports.DtDatepicker=Ts;exports.DtDropdown=Xt;exports.DtDropdownSeparator=ya;exports.DtImageViewer=Qt;exports.DtInputGroup=ct;exports.DtInputGroupMixin=Jt;exports.DtKeyboardListNavigationMixin=dt;exports.DtKeyboardShortcut=oo;exports.DtListItemGroup=Za;exports.DtListSection=Wa;exports.DtModal=Ra;exports.DtPagination=tr;exports.DtRadio=lr;exports.DtRadioGroup=dr;exports.DtRecipeAttachmentCarousel=ac;exports.DtRecipeCallbarButton=gn;exports.DtRecipeCallbarButtonWithPopover=tl;exports.DtRecipeCallbox=fc;exports.DtRecipeComboboxMultiSelect=Gs;exports.DtRecipeComboboxWithPopover=fn;exports.DtRecipeContactInfo=cl;exports.DtRecipeContactRow=dd;exports.DtRecipeEmojiRow=Fd;exports.DtRecipeFeedItemPill=Od;exports.DtRecipeFeedItemRow=Cd;exports.DtRecipeGeneralRow=bt;exports.DtRecipeGroupRow=od;exports.DtRecipeGroupedChip=Bl;exports.DtRecipeIvrNode=El;exports.DtRecipeSettingsMenuButton=Ml;exports.DtRecipeTimePill=xd;exports.DtRecipeTopBannerInfo=gl;exports.DtRecipeUnreadPill=hd;exports.DtRootLayout=lo;exports.DtScroller=fo;exports.DtSelectMenu=zr;exports.DtTabPanel=hr;exports.DtToast=Wr;exports.DtToggle=Jr;exports.FEED_ITEM_PILL_BORDER_COLORS=rt;exports.IVR_NODE_BRANCH=Ae;exports.IVR_NODE_EXPERT=xe;exports.IVR_NODE_GO_TO=be;exports.IVR_NODE_HANGUP=Ve;exports.IVR_NODE_ICON_TYPES=bn;exports.IVR_NODE_LABELS=_l;exports.IVR_NODE_PROMPT_COLLECT=Le;exports.IVR_NODE_PROMPT_MENU=Ne;exports.IVR_NODE_PROMPT_PLAY=Be;exports.IVR_NODE_TRANSFER=Me;exports.LEFTBAR_GENERAL_ROW_CONTACT_CENTER_COLORS=_e;exports.LEFTBAR_GENERAL_ROW_CONTACT_CENTER_VALIDATION_ERROR=yn;exports.LEFTBAR_GENERAL_ROW_ICON_MAPPING=vn;exports.LEFTBAR_GENERAL_ROW_ICON_SIZES=Sn;exports.LEFTBAR_GENERAL_ROW_TYPES=x;exports.MODAL_BANNER_KINDS=Xe;exports.MODAL_KIND_MODIFIERS=Ge;exports.MODAL_SIZE_MODIFIERS=Ze;exports.MULTI_SELECT_SIZES=pn;exports.REACTIONS_ATTRIBUTES=En;exports.ROOT_LAYOUT_RESPONSIVE_BREAKPOINTS=an;exports.ROOT_LAYOUT_SIDEBAR_POSITIONS=et;exports.SELECT_SIZE_MODIFIERS=Je;exports.SELECT_STATE_MODIFIERS=en;exports.SHORTCUTS_ALIASES_LIST=eo;exports.SHORTCUTS_ICON_ALIASES=oe;exports.SHORTCUTS_ICON_SEPARATOR=nn;exports.TOAST_ROLES=tn;exports.UNREAD_PILL_DIRECTIONS=Cn;exports.UNREAD_PILL_KINDS=wn;exports.durationInHHMM=yc;exports.formatLong=Os;exports.formatMedium=Ns;exports.formatNoYear=Bs;exports.formatNumerical=xs;exports.formatShort=Ls;exports.getDateMedium=vc;exports.relativeDate=Sc;exports.setDateLocale=bc;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("./message_input-4d2df135.cjs"),h=require("./emoji-2ba641cd.cjs"),e=require("vue"),l=require("./tooltip-e88ebb8c.cjs"),E=require("/home/runner/work/dialtone-vue/dialtone-vue/node_modules/date-fns/esm/index.js"),Te=require("./emoji.cjs"),$t=require("/home/runner/work/dialtone-vue/dialtone-vue/node_modules/@dialpad/dialtone/lib/dist/vue/icons/IconDialbot.vue");require("/home/runner/work/dialtone-vue/dialtone-vue/node_modules/emoji-regex/index.mjs");require("/home/runner/work/dialtone-vue/dialtone-vue/node_modules/@tiptap/extension-code-block/dist/index.js");require("/home/runner/work/dialtone-vue/dialtone-vue/node_modules/@tiptap/extension-document/dist/index.js");require("/home/runner/work/dialtone-vue/dialtone-vue/node_modules/@tiptap/extension-hard-break/dist/index.js");require("/home/runner/work/dialtone-vue/dialtone-vue/node_modules/@tiptap/extension-paragraph/dist/index.js");require("/home/runner/work/dialtone-vue/dialtone-vue/node_modules/@tiptap/extension-placeholder/dist/index.js");require("/home/runner/work/dialtone-vue/dialtone-vue/node_modules/@tiptap/extension-text/dist/index.js");require("/home/runner/work/dialtone-vue/dialtone-vue/node_modules/@tiptap/vue-3/dist/index.js");require("/home/runner/work/dialtone-vue/dialtone-vue/node_modules/@tiptap/core/dist/index.js");require("/home/runner/work/dialtone-vue/dialtone-vue/node_modules/@tiptap/pm/state/dist/index.js");require("/home/runner/work/dialtone-vue/dialtone-vue/node_modules/@tiptap/suggestion/dist/index.js");require("/home/runner/work/dialtone-vue/dialtone-vue/node_modules/tippy.js/dist/tippy.esm.js");require("/home/runner/work/dialtone-vue/dialtone-vue/node_modules/@tiptap/extension-mention/dist/index.js");require("/home/runner/work/dialtone-vue/dialtone-vue/node_modules/@dialpad/dialtone-icons/dist/icons.json");const fe={default:"",info:"d-badge--info",success:"d-badge--success",warning:"d-badge--warning",critical:"d-badge--critical",bulletin:"d-badge--bulletin",ai:"d-badge--ai"},_e={label:"",count:"d-badge--count"},ge={"black-400":"d-badge--decorate-black-400","black-500":"d-badge--decorate-black-500","black-900":"d-badge--decorate-black-900","red-200":"d-badge--decorate-red-200","red-300":"d-badge--decorate-red-300","red-400":"d-badge--decorate-red-400","purple-200":"d-badge--decorate-purple-200","purple-300":"d-badge--decorate-purple-300","purple-400":"d-badge--decorate-purple-400","purple-500":"d-badge--decorate-purple-500","blue-200":"d-badge--decorate-blue-200","blue-300":"d-badge--decorate-blue-300","blue-400":"d-badge--decorate-blue-400","green-300":"d-badge--decorate-green-300","green-400":"d-badge--decorate-green-400","green-500":"d-badge--decorate-green-500","gold-300":"d-badge--decorate-gold-300","gold-400":"d-badge--decorate-gold-400","gold-500":"d-badge--decorate-gold-500","magenta-200":"d-badge--decorate-magenta-200","magenta-300":"d-badge--decorate-magenta-300","magenta-400":"d-badge--decorate-magenta-400"},qt={name:"DtBadge",components:{DtIcon:h.DtIcon},props:{iconLeft:{type:String,default:""},iconRight:{type:String,default:""},text:{type:String,default:""},kind:{type:String,default:"label",validator:t=>Object.keys(_e).includes(t)},type:{type:String,default:"default",validator:t=>Object.keys(fe).includes(t)},decoration:{type:String,default:void 0,validator:t=>Object.keys(ge).includes(t)},labelClass:{type:[String,Array,Object],default:""}},data(){return{BADGE_TYPE_MODIFIERS:fe,BADGE_KIND_MODIFIERS:_e,BADGE_DECORATION_MODIFIERS:ge}},computed:{hasIcons(){return this.iconLeft!==""||this.iconRight!==""}},watch:{$props:{immediate:!0,deep:!0,handler(){this.validateProps()}}},methods:{validateProps(){this.validateTypePropCombination(),this.validateDecorationPropCombination()},validateTypePropCombination(){this.type==="ai"&&this.kind==="count"&&console.error("DtBadge error: type: 'ai' with kind: 'count' is an invalid combination.")},validateDecorationPropCombination(){this.decoration&&((this.kind!=="label"||this.type!=="default")&&console.error("DtBadge error: decoration prop can only be used with kind: 'label' and type: 'default'."),this.hasIcons&&console.error("DtBadge error: decoration prop cannot be used with iconLeft or iconRight."))}}},Ft={key:0,class:"d-badge__decorative"},Ht={key:1,class:"d-badge__icon-left"},Kt={key:2,class:"d-badge__icon-right"};function jt(t,o,n,s,i,a){const r=e.resolveComponent("dt-icon");return e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(["d-badge",i.BADGE_TYPE_MODIFIERS[n.type],i.BADGE_KIND_MODIFIERS[n.kind],i.BADGE_DECORATION_MODIFIERS[n.decoration]]),"data-qa":"dt-badge"},[n.decoration?(e.openBlock(),e.createElementBlock("span",Ft)):e.createCommentVNode("",!0),n.iconLeft||n.type==="ai"?(e.openBlock(),e.createElementBlock("span",Ht,[e.createVNode(r,{name:n.iconLeft||"dialpad-ai",size:"200"},null,8,["name"])])):e.createCommentVNode("",!0),e.createElementVNode("span",{class:e.normalizeClass(["d-badge__label",n.labelClass])},[e.renderSlot(t.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(n.text),1)])],2),n.iconRight?(e.openBlock(),e.createElementBlock("span",Kt,[e.createVNode(r,{name:n.iconRight,size:"200"},null,8,["name"])])):e.createCommentVNode("",!0)],2)}const Le=l._export_sfc(qt,[["render",jt]]),Ut={name:"DtBanner",components:{DtNoticeIcon:p.DtNoticeIcon,DtNoticeContent:p.DtNoticeContent,DtNoticeAction:p.DtNoticeAction},mixins:[p.Modal,p.SrOnlyCloseButtonMixin],props:{titleId:{type:String,default(){return l.utils.getUniqueString()}},contentId:{type:String,default(){return l.utils.getUniqueString()}},title:{type:String,default:""},important:{type:Boolean,default:!1},pinned:{type:Boolean,default:!1},kind:{type:String,default:"base",validate(t){return p.NOTICE_KINDS.includes(t)}},closeButtonProps:{type:Object,default:()=>({})},hideClose:{type:Boolean,default:!1},hideIcon:{type:Boolean,default:!1},dialogClass:{type:String,default:""},backgroundImage:{type:String,default:""},backgroundSize:{type:String,default:"cover"}},emits:["close"],computed:{role(){return this.important?"alertdialog":"status"},bannerClass(){return["d-banner",{error:"d-banner--error",info:"d-banner--info",success:"d-banner--success",warning:"d-banner--warning",base:"d-banner--base"}[this.kind],{"d-banner--important":this.important,"d-banner--pinned":this.pinned}]},bannerBackgroundImage(){return this.backgroundImage===""?null:`background-image: url(${this.backgroundImage});
2
+ background-size: ${this.backgroundSize};`}},mounted(){this.important&&this.focusFirstElement()},methods:{trapFocus(t){this.important&&this.focusTrappedTabPress(t)}}},Gt=["role","aria-labelledby","aria-describedby"];function Wt(t,o,n,s,i,a){const r=e.resolveComponent("dt-notice-icon"),c=e.resolveComponent("dt-notice-content"),d=e.resolveComponent("dt-notice-action");return e.openBlock(),e.createElementBlock("aside",{class:e.normalizeClass(a.bannerClass),style:e.normalizeStyle(a.bannerBackgroundImage),onKeydown:o[1]||(o[1]=e.withKeys((...m)=>a.trapFocus&&a.trapFocus(...m),["tab"]))},[e.createElementVNode("div",{class:e.normalizeClass(["d-banner__dialog",n.dialogClass]),role:a.role,"aria-labelledby":n.titleId,"aria-describedby":n.contentId},[n.hideIcon?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(r,{key:0,kind:n.kind},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"icon")]),_:3},8,["kind"])),e.createVNode(c,{"title-id":n.titleId,"content-id":n.contentId,title:n.title},{titleOverride:e.withCtx(()=>[e.renderSlot(t.$slots,"titleOverride")]),default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},8,["title-id","content-id","title"]),e.createVNode(d,{"hide-close":n.hideClose,"close-button-props":n.closeButtonProps,"visually-hidden-close":t.visuallyHiddenClose,"visually-hidden-close-label":t.visuallyHiddenCloseLabel,onClose:o[0]||(o[0]=m=>t.$emit("close"))},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"action")]),_:3},8,["hide-close","close-button-props","visually-hidden-close","visually-hidden-close-label"])],10,Gt)],38)}const Yt=l._export_sfc(Ut,[["render",Wt]]),et="d-breadcrumbs__item--selected",tt="d-breadcrumbs--inverted",Zt={name:"DtBreadcrumbItem",components:{DtLink:p.DtLink},inheritAttrs:!1,props:{inverted:{type:Boolean,default:!1},selected:{type:Boolean,default:!1},label:{type:String,default:""}},data(){return{BREADCRUMB_ITEM_SELECTED_MODIFIER:et}},computed:{linkKind(){return this.inverted?h.INVERTED:h.MUTED},ariaCurrent(){return this.selected?"location":void 0}}};function Xt(t,o,n,s,i,a){const r=e.resolveComponent("dt-link");return e.openBlock(),e.createElementBlock("li",{"data-qa":"dt-breadcrumb-item",class:e.normalizeClass(["d-breadcrumbs__item",{[i.BREADCRUMB_ITEM_SELECTED_MODIFIER]:n.selected}])},[e.createVNode(r,e.mergeProps({kind:a.linkKind,"aria-current":a.ariaCurrent,"data-qa":"breadcrumb-item"},t.$attrs),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(n.label),1)])]),_:3},16,["kind","aria-current"])],2)}const nt=l._export_sfc(Zt,[["render",Xt]]),Qt={name:"DtBreadcrumbs",components:{DtBreadcrumbItem:nt},props:{breadcrumbs:{type:Array,default:()=>[],validate(t){return t.every(({href:o,label:n})=>o!==void 0&&n!==void 0)}},inverted:{type:Boolean,default:!1},ariaLabel:{type:String,default:"breadcrumb"}},data(){return{BREADCRUMBS_INVERTED_MODIFIER:tt}},methods:{getBreadcrumbItemKey(t){return`breadcrumbs-item-${t}-${l.utils.getUniqueString()}`}}},Jt=["aria-label"];function en(t,o,n,s,i,a){const r=e.resolveComponent("dt-breadcrumb-item");return e.openBlock(),e.createElementBlock("nav",{"aria-label":n.ariaLabel,"data-qa":"dt-breadcrumbs",class:e.normalizeClass(["d-breadcrumbs",{[i.BREADCRUMBS_INVERTED_MODIFIER]:n.inverted}])},[e.createElementVNode("ol",null,[e.renderSlot(t.$slots,"default",{},()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.breadcrumbs,(c,d)=>(e.openBlock(),e.createBlock(r,e.mergeProps({key:a.getBreadcrumbItemKey(d),inverted:n.inverted},c),null,16,["inverted"]))),128))])])],10,Jt)}const tn=l._export_sfc(Qt,[["render",en]]),be={start:"d-btn-group--start",end:"d-btn-group--end","space-between":"d-btn-group--space-between"},nn={name:"DtButtonGroup",props:{alignment:{type:String,default:"start",validator:t=>Object.keys(be).includes(t)}},data(){return{BUTTON_GROUP_ALIGNMENT:be}}};function on(t,o,n,s,i,a){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["d-btn-group",i.BUTTON_GROUP_ALIGNMENT[n.alignment]]),role:"group"},[e.renderSlot(t.$slots,"default")],2)}const an=l._export_sfc(nn,[["render",on]]),sn={name:"DtCard",props:{maxHeight:{type:String,default:null},containerClass:{type:[String,Array,Object],default:""},contentClass:{type:[String,Array,Object],default:""},headerClass:{type:[String,Array,Object],default:""},footerClass:{type:[String,Array,Object],default:""}},data(){return{hasSlotContent:l.hasSlotContent}}};function rn(t,o,n,s,i,a){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["d-card",n.containerClass]),"data-qa":"dt-card"},[i.hasSlotContent(t.$slots.header)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["d-card__header",n.headerClass])},[e.renderSlot(t.$slots,"header")],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["d-card__content",n.contentClass]),style:e.normalizeStyle({"max-height":n.maxHeight})},[e.renderSlot(t.$slots,"content")],6),i.hasSlotContent(t.$slots.footer)?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["d-card__footer",n.footerClass])},[e.renderSlot(t.$slots,"footer")],2)):e.createCommentVNode("",!0)],2)}const ot=l._export_sfc(sn,[["render",rn]]),ln={name:"DtCodeblock",props:{text:{type:String,required:!0}}},dn={class:"d-d-block d-bgc-secondary d-ws-pre-wrap d-p8 d-ba d-bc-subtle d-bar8 d-fs-200 d-ff-mono d-lh-400 d-fc-secondary"};function cn(t,o,n,s,i,a){return e.openBlock(),e.createElementBlock("pre",null,[e.createTextVNode(" "),e.createElementVNode("code",dn,e.toDisplayString(n.text),1),e.createTextVNode(`
3
+ `)])}const un=l._export_sfc(ln,[["render",cn]]),hn={methods:{scrollElementIntoViewIfNeeded(t,o,n,s){t.scrollIntoViewIfNeeded?this.scrollIntoViewIfNeeded(t,o,n,s):this.scrollIntoView(t,"bottom",!1,n,s)},scrollElementIntoView(t,o,n,s){if(o==="center"){this.scrollIntoView(t,"center",!1,n,s);return}o===!1?this.scrollIntoView(t,"bottom",!1,n,s):this.scrollIntoView(t,"top",!1,n,s)},scrollIntoViewIfNeeded(t,o,n,s){const i=o?"center":void 0;this.scrollIntoView(t,i,!0,n,s)},scrollIntoView(t,o,n,s,i){if(!t||!t.parentElement)return;const a=t.offsetTop,r=i||t.parentElement,c=this._getScrollBounds(r),d=c.bottom-c.top,m=this._getElementHeight(t),f=a+m;let u=-1;switch(o){case"top":u=a;break;case"center":u=a+(m-d)/2;break;case"bottom":u=u=f-d;break;default:a-c.top<=d/2?u=a:u=f-d;break}this._setScrollTop(r,u,c,a,f,n,s)},_setScrollTop(t,o,n,s,i,a,r){n=n||this._getScrollBounds(t);const c=n.bottom-n.top;if(a&&this._inScrollBounds(s,i,n))if(s<n.top)o=s;else if(i>n.bottom)o=i-c;else return;r?t.scrollTo({top:o,behavior:r}):t.scrollTop=o},_getElementHeight(t){return t.getBoundingClientRect().height},_getScrollBounds(t){const o=this._getElementHeight(t),n=t.scrollTop;return{top:n,bottom:n+o}},_inScrollBounds(t,o,n){const s=o-t;return o<=n.bottom+3*s/4&&t>=n.top-s/4}}},mn="listElementKey is required or the referenced element doesn't exist. Received listElement: ",Ne=({listItemRole:t="option",indexKey:o="highlightIndex",idKey:n="highlightId",listElementKey:s="listRef",activeItemKey:i="",openMethod:a=null,afterHighlightMethod:r=null,beginningOfListMethod:c=null,endOfListMethod:d=null,scrollToOnHighlight:m=!0,focusOnKeyboardNavigation:f=!1}={})=>({mixins:[hn],data(){return{[o]:-1,[n]:"",scrollToOnHighlight:m,focusOnKeyboardNavigation:f}},provide(){return{highlightId:()=>this[n]}},methods:{_getListElement(){var u;return((u=this[s]())==null?void 0:u.$el)||this[s]()},_itemsLength(){const u=this._getListItemNodes();return u===null?0:u.length},_getListItemNodes(){const u=this._getListElement();return u?Array.from(u.querySelectorAll(`[role="${t}"], #sr-only-close-button`)):(console.error(mn,u),null)},onUpKey(){a&&this[a](!0),this[o]>0?this.setHighlightIndex(this[o]-1):c&&this[c](),this.scrollActiveItemIntoViewIfNeeded(),this.focusActiveItemIfNeeded()},onDownKey(){a&&this[a](!0),this[o]<this._itemsLength()-1?this.setHighlightIndex(this[o]+1):d&&this[d](),this.scrollActiveItemIntoViewIfNeeded(),this.focusActiveItemIfNeeded()},onHomeKey(){this.jumpToBeginning(),this.scrollActiveItemIntoViewIfNeeded(),this.focusActiveItemIfNeeded()},onEndKey(){this.jumpToEnd(),this.scrollActiveItemIntoViewIfNeeded(),this.focusActiveItemIfNeeded()},onNavigationKey(u){const g=this._getListItemNodes(),_=g.filter(L=>L.textContent.trim().toLowerCase().startsWith(u.toLowerCase()));if(_.length<=0)return;const b=_.findIndex(L=>this[o]===g.indexOf(L)),v=g.indexOf(b<_.length-1?_[b+1]:_[0]);this.setHighlightIndex(v),this.scrollActiveItemIntoViewIfNeeded(),this.focusActiveItemIfNeeded()},isValidLetter(u){return u.length>1?!1:u>="a"&&u<="z"||u>="A"&&u<="Z"},jumpToBeginning(){this.setHighlightIndex(0)},jumpToEnd(){this.setHighlightIndex(this._itemsLength()-1)},setHighlightIndex(u){this[o]=u,this[n]=this._getItemId(u),this._itemsLength()&&r&&this[r](u)},setHighlightId(u){this[n]=u,this[o]=this._getItemIndex(u),this._itemsLength()&&r&&this[r](this._getItemIndex(u))},_getItemIndex(u){const g=this._getListElement();return g?Array.from(g.querySelectorAll(`[role="${t}"], #sr-only-close-button`)).indexOf(g.querySelector(`#${u}`)):void 0},_getItemId(u){var _;const g=this._getListElement();if(g)return(_=g.querySelectorAll(`[role="${t}"], #sr-only-close-button`)[u])==null?void 0:_.id},scrollActiveItemIntoViewIfNeeded(){if(!this.scrollToOnHighlight)return;const u=this[i];if(u){const g=this._getListElement();this.scrollElementIntoViewIfNeeded(u,null,null,g)}},focusActiveItemIfNeeded(){if(!this.focusOnKeyboardNavigation)return;const u=this[i];u&&u.focus()}}}),pn={name:"ComboboxLoadingList",components:{DtListItem:p.DtListItem,DtSkeleton:h.DtSkeleton}},fn={class:"d-p0 d-mt8 d-hmx332 d-of-y-auto","aria-busy":"true"};function _n(t,o,n,s,i,a){const r=e.resolveComponent("dt-skeleton"),c=e.resolveComponent("dt-list-item");return e.openBlock(),e.createElementBlock("ol",fn,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(7,d=>e.createVNode(c,{key:d,role:"option","navigation-type":"none"},{default:e.withCtx(()=>[e.createVNode(r,{"text-option":{type:"body"},offset:0})]),_:2},1024)),64))])}const at=l._export_sfc(pn,[["render",_n]]);const gn={name:"ComboboxEmptyList",components:{DtListItem:p.DtListItem},props:{message:{type:String,required:!0},itemClass:{type:[String,Object,Array],default:""}}},bn={class:"d-p0","data-qa":"dt-combobox-empty-list"};function yn(t,o,n,s,i,a){const r=e.resolveComponent("dt-list-item");return e.openBlock(),e.createElementBlock("ol",bn,[e.renderSlot(t.$slots,"default",{},()=>[e.createVNode(r,{role:"option","navigation-type":"none",type:"custom",class:e.normalizeClass(["dt-empty-list-item",n.itemClass])},{default:e.withCtx(()=>[e.createElementVNode("span",null,e.toDisplayString(n.message),1)]),_:1},8,["class"])])])}const it=l._export_sfc(gn,[["render",yn]]),st={EXTRA_SMALL:"xs",SMALL:"sm",DEFAULT:"md",LARGE:"lg",EXTRA_LARGE:"xl"},Sn={name:"DtCombobox",components:{ComboboxLoadingList:at,ComboboxEmptyList:it},mixins:[Ne({indexKey:"highlightIndex",idKey:"highlightId",listElementKey:"getListElement",afterHighlightMethod:"afterHighlight",beginningOfListMethod:"beginningOfListMethod",endOfListMethod:"endOfListMethod",activeItemKey:"activeItemEl"})],props:{label:{type:String,required:!0},labelVisible:{type:Boolean,default:!0},size:{type:String,default:null,validator:t=>Object.values(st).includes(t)},description:{type:String,default:""},listId:{type:String,default(){return l.getUniqueString()}},onBeginningOfList:{type:Function,default:null},onEndOfList:{type:Function,default:null},showList:{type:Boolean,default:!1},listRenderedOutside:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},emptyList:{type:Boolean,default:!1},emptyStateMessage:{type:String,default:""},emptyStateClass:{type:[String,Object,Array],default:""},clickOnSelect:{type:Boolean,default:!1}},emits:["select","escape","highlight","opened"],data(){return{outsideRenderedListRef:null,hasSlotContent:l.hasSlotContent}},computed:{inputProps(){return{label:this.label,labelVisible:this.labelVisible,size:this.size,description:this.description,role:"combobox","aria-label":this.label,"aria-expanded":this.showList.toString(),"aria-owns":this.listId,"aria-haspopup":"listbox","aria-activedescendant":this.activeItemId,"aria-controls":this.listId}},listProps(){return{role:"listbox",id:this.listId,class:"d-ps-relative","aria-label":this.label}},beginningOfListMethod(){return this.onBeginningOfList||this.jumpToEnd},endOfListMethod(){return this.onEndOfList||this.jumpToBeginning},activeItemId(){if(!(!this.showList||this.highlightIndex<0||this.loading))return this.highlightId},activeItemEl(){return this.highlightId?this.getListElement().querySelector("#"+this.highlightId):""}},watch:{showList(t){this.listRenderedOutside||(this.setInitialHighlightIndex(),this.$emit("opened",t)),!t&&this.outsideRenderedListRef&&(this.outsideRenderedListRef.removeEventListener("mousemove",this.onMouseHighlight),this.outsideRenderedListRef=null)},loading(t){this.$nextTick(()=>{this.setInitialHighlightIndex()})},$props:{deep:!0,immediate:!0,handler(){this.validateEmptyListProps()}}},created(){this.validateEmptyListProps()},methods:{onMouseHighlight(t){if(this.loading)return;const o=t.target.closest("li");o&&this.highlightId!==o.id&&this.setHighlightId(o.id)},getListElement(){var t;return this.outsideRenderedListRef??((t=this.$refs.listWrapper)==null?void 0:t.querySelector(`#${this.listId}`))},clearHighlightIndex(){this.showList&&this.setHighlightIndex(-1)},afterHighlight(){this.loading||this.$emit("highlight",this.highlightIndex)},onEnterKey(){var t;this.loading||this.emptyList||this.highlightIndex>=0&&(this.$emit("select",this.highlightIndex),this.clickOnSelect&&((t=this.activeItemEl)==null||t.click()))},onEscapeKey(){this.$emit("escape")},onOpen(t,o){var n;this.outsideRenderedListRef=o,(n=this.outsideRenderedListRef)==null||n.addEventListener("mousemove",this.onMouseHighlight),this.$emit("opened",t),t&&this.setInitialHighlightIndex()},onKeyValidation(t,o){!this.showList||!this.getListElement()||this[o](t)},setInitialHighlightIndex(){this.showList&&this.$nextTick(()=>{this.setHighlightIndex(this.loading?-1:0)})},validateEmptyListProps(){this.$slots.emptyListItem||(this.emptyList&&!this.emptyStateMessage||!this.emptyList&&this.emptyStateMessage)&&console.error(`Invalid props: you must pass both props emptyList and emptyStateMessage to show the
4
+ empty message.`)}}},vn={"data-qa":"dt-combobox-input-wrapper"};function Cn(t,o,n,s,i,a){const r=e.resolveComponent("combobox-loading-list"),c=e.resolveComponent("combobox-empty-list");return e.openBlock(),e.createElementBlock("div",{onKeydown:[o[3]||(o[3]=e.withKeys(e.withModifiers(d=>a.onKeyValidation(d,"onEscapeKey"),["stop"]),["esc"])),o[4]||(o[4]=e.withKeys(e.withModifiers(d=>a.onKeyValidation(d,"onEnterKey"),["exact"]),["enter"])),o[5]||(o[5]=e.withKeys(e.withModifiers(d=>a.onKeyValidation(d,"onUpKey"),["stop","prevent"]),["up"])),o[6]||(o[6]=e.withKeys(e.withModifiers(d=>a.onKeyValidation(d,"onDownKey"),["stop","prevent"]),["down"])),o[7]||(o[7]=e.withKeys(e.withModifiers(d=>a.onKeyValidation(d,"onHomeKey"),["stop","prevent"]),["home"])),o[8]||(o[8]=e.withKeys(e.withModifiers(d=>a.onKeyValidation(d,"onEndKey"),["stop","prevent"]),["end"]))]},[e.createElementVNode("div",vn,[e.renderSlot(t.$slots,"input",{inputProps:a.inputProps})]),n.showList?(e.openBlock(),e.createElementBlock("div",{key:0,ref:"listWrapper","data-qa":"dt-combobox-list-wrapper",onMouseleave:o[0]||(o[0]=(...d)=>a.clearHighlightIndex&&a.clearHighlightIndex(...d)),onFocusout:o[1]||(o[1]=(...d)=>a.clearHighlightIndex&&a.clearHighlightIndex(...d)),onMousemoveCapture:o[2]||(o[2]=(...d)=>a.onMouseHighlight&&a.onMouseHighlight(...d))},[n.loading&&!n.listRenderedOutside?(e.openBlock(),e.createBlock(r,e.normalizeProps(e.mergeProps({key:0},a.listProps)),null,16)):n.emptyList&&(n.emptyStateMessage||i.hasSlotContent(t.$slots.emptyListItem))&&!n.listRenderedOutside?(e.openBlock(),e.createBlock(c,e.mergeProps({key:1},a.listProps,{message:n.emptyStateMessage,"item-class":n.emptyStateClass}),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"emptyListItem")]),_:3},16,["message","item-class"])):e.renderSlot(t.$slots,"list",{key:2,listProps:a.listProps,opened:a.onOpen,clearHighlightIndex:a.clearHighlightIndex})],544)):e.createCommentVNode("",!0)],32)}const rt=l._export_sfc(Sn,[["render",Cn]]);const En={name:"DtCollapsibleLazyShow",inheritAttrs:!1,props:{show:{type:Boolean,default:null},appear:{type:Boolean,default:!1},elementType:{type:String,default:"div"}},data(){return{initialized:!!this.show}},computed:{isCSSEnabled(){return process.env.NODE_ENV!=="test"}},watch:{show:function(t){!t||this.initialized||(this.initialized=!0)}},methods:{beforeEnter(t){requestAnimationFrame(()=>{t.style.height||(t.style.height="0px"),t.style.display=null})},enter(t){requestAnimationFrame(()=>{requestAnimationFrame(()=>{t.style.height=`${t.scrollHeight}px`})})},afterEnter(t){t.style.height=null},beforeLeave(t){requestAnimationFrame(()=>{t.style.height||(t.style.height=`${t.offsetHeight}px`)})},leave(t){requestAnimationFrame(()=>{requestAnimationFrame(()=>{t.style.height="0px"})})},afterLeave(t){t.style.height=null}}};function In(t,o,n,s,i,a){return e.openBlock(),e.createBlock(e.Transition,e.mergeProps({appear:n.appear,"enter-active-class":"enter-active","leave-active-class":"leave-active"},t.$attrs,{css:a.isCSSEnabled,onBeforeEnter:a.beforeEnter,onEnter:a.enter,onAfterEnter:a.afterEnter,onBeforeLeave:a.beforeLeave,onLeave:a.leave,onAfterLeave:a.afterLeave}),{default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.elementType),e.normalizeProps(e.guardReactiveProps(t.$attrs)),{default:e.withCtx(()=>[i.initialized?e.renderSlot(t.$slots,"default",{key:0}):e.createCommentVNode("",!0)]),_:3},16)),[[e.vShow,n.show]])]),_:3},16,["appear","css","onBeforeEnter","onEnter","onAfterEnter","onBeforeLeave","onLeave","onAfterLeave"])}const kn=l._export_sfc(En,[["render",In]]),Dn={name:"DtCollapsible",components:{DtButton:h.DtButton,DtCollapsibleLazyShow:kn,DtLazyShow:l.DtLazyShow,DtIcon:h.DtIcon},props:{anchorText:{type:String,default:null},open:{type:Boolean,default:null},id:{type:String,default(){return l.getUniqueString()}},elementType:{type:String,default:"div"},contentElementType:{type:String,default:"div"},anchorClass:{type:[String,Array,Object],default:null},contentClass:{type:[String,Array,Object],default:null},maxWidth:{type:String,default:null},maxHeight:{type:String,default:null},ariaLabel:{type:String,default:null},ariaLabelledBy:{type:String,default:null}},emits:["update:open","opened"],data(){return{isOpen:!0}},computed:{labelledBy(){return this.ariaLabelledBy||!this.ariaLabel&&l.getUniqueString("DtCollapsible__anchor")},collapsibleListeners(){return l.extractVueListeners(this.$attrs)}},watch:{open:{handler:function(t){t!==null&&(this.isOpen=t)},immediate:!0}},created(){this.validateProperAnchor()},methods:{onLeaveTransitionComplete(){this.$emit("opened",!1),this.open!==null&&this.$emit("update:open",!1)},onEnterTransitionComplete(){this.$emit("opened",!0,this.$refs.content),this.open!==null&&this.$emit("update:open",!0)},defaultToggleOpen(){this.open===null&&this.toggleOpen()},toggleOpen(){this.isOpen=!this.isOpen},validateProperAnchor(){!this.anchorText&&!l.hasSlotContent(this.$slots.anchor)&&console.error("anchor text and anchor slot content cannot both be falsy")}}},wn=["id"],Bn=["title"];function Tn(t,o,n,s,i,a){const r=e.resolveComponent("dt-icon"),c=e.resolveComponent("dt-button"),d=e.resolveComponent("dt-collapsible-lazy-show");return e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.elementType),e.mergeProps({ref:"collapsible"},e.toHandlers(a.collapsibleListeners)),{default:e.withCtx(()=>[e.createElementVNode("div",{id:!n.ariaLabelledBy&&a.labelledBy,ref:"anchor",class:e.normalizeClass(["d-dt-collapsibe__anchor",n.anchorClass])},[e.renderSlot(t.$slots,"anchor",{attrs:{"aria-controls":n.id,"aria-expanded":i.isOpen.toString(),role:"button"}},()=>[e.createVNode(c,{importance:"clear",kind:"muted","aria-controls":n.id,"aria-expanded":`${i.isOpen}`,style:e.normalizeStyle({width:n.maxWidth}),onClick:a.defaultToggleOpen},{default:e.withCtx(()=>[e.createVNode(r,{name:i.isOpen?"chevron-down":"chevron-right",class:"d-icon d-icon--size-300 d-mr8 d-fl-shrink0"},null,8,["name"]),e.createElementVNode("span",{class:"d-mr-auto d-truncate",title:n.anchorText},e.toDisplayString(n.anchorText),9,Bn)]),_:1},8,["aria-controls","aria-expanded","style","onClick"])])],10,wn),e.createVNode(d,e.mergeProps({id:n.id,ref:"contentWrapper","aria-hidden":`${!i.isOpen}`,"aria-labelledby":a.labelledBy,"aria-label":n.ariaLabel,show:i.isOpen,"element-type":n.contentElementType,class:["d-dt-collapsible__content",n.contentClass],style:{"max-height":n.maxHeight,"max-width":n.maxWidth},tabindex:"-1",appear:""},e.toHandlers(a.collapsibleListeners),{onAfterLeave:a.onLeaveTransitionComplete,onAfterEnter:a.onEnterTransitionComplete}),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"content")]),_:3},16,["id","aria-hidden","aria-labelledby","aria-label","show","element-type","class","style","onAfterLeave","onAfterEnter"])]),_:3},16)}const lt=l._export_sfc(Dn,[["render",Tn]]),dt=["row","column"],Ln=t=>t.term?typeof t.term=="string":!1,Nn=t=>t.description?typeof t.description=="string":!1,On=t=>Array.isArray(t)?t.every(o=>!(typeof o!="object"||!Ln(o)||!Nn(o))):!1;const An={name:"DtDescriptionList",props:{direction:{type:String,default:"row",validator:t=>dt.includes(t)},items:{type:Array,default:()=>[],validator:t=>On(t),required:!0},gap:{type:String,default:"400",validator:t=>p.DT_STACK_GAP.includes(t)},termClass:{type:[String,Array,Object],default:""},descriptionClass:{type:[String,Array,Object],default:""}},computed:{dtClass(){return["dt-description-list__term",this.termClass]},ddClass(){return["dt-description-list__description",this.descriptionClass]},getDirectionClass(){return`dt-description-list--${this.direction}`},getGapClass(){return`dt-description-list--gap-${this.gap}`}}};function xn(t,o,n,s,i,a){return e.openBlock(),e.createElementBlock("dl",{class:e.normalizeClass(["dt-description-list",a.getDirectionClass,a.getGapClass])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.items,r=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:r.term},[e.createElementVNode("dt",{class:e.normalizeClass(a.dtClass)},e.toDisplayString(r.term),3),e.createElementVNode("dd",{class:e.normalizeClass(a.ddClass)},e.toDisplayString(r.description),3)],64))),128))],2)}const Vn=l._export_sfc(An,[["render",xn]]),W={none:void 0,small:"d-py0",large:"d-py4"};const Rn={name:"DtDropdown",components:{DtPopover:p.DtPopover,SrOnlyCloseButton:p.SrOnlyCloseButton},mixins:[Ne({indexKey:"highlightIndex",idKey:"highlightId",listElementKey:"getListElement",listItemRole:"menuitem",afterHighlightMethod:"afterHighlight",beginningOfListMethod:"beginningOfListMethod",endOfListMethod:"endOfListMethod",activeItemKey:"activeItemEl",focusOnKeyboardNavigation:!0}),p.SrOnlyCloseButtonMixin],inheritAttrs:!1,props:{open:{type:Boolean,default:null},openOnContext:{type:Boolean,default:!1},padding:{type:String,default:"small",validator:t=>Object.keys(W).some(o=>o===t)},modal:{type:Boolean,default:!0},contentWidth:{type:String,default:null},maxHeight:{type:String,default:""},maxWidth:{type:String,default:""},listId:{type:String,default(){return l.getUniqueString()}},navigationType:{type:String,default:p.LIST_ITEM_NAVIGATION_TYPES.ARROW_KEYS,validator:t=>Object.values(p.LIST_ITEM_NAVIGATION_TYPES).includes(t)},fallbackPlacements:{type:Array,default:()=>["auto"]},placement:{type:String,default:"bottom"},onBeginningOfList:{type:Function,default:null},onEndOfList:{type:Function,default:null},listClass:{type:[String,Array,Object],default:""},appendTo:{type:[HTMLElement,String],default:"body",validator:t=>p.POPOVER_APPEND_TO_VALUES.includes(t)||t instanceof HTMLElement},tether:{type:Boolean,default:!0},transition:{type:String,default:"fade"}},emits:["keydown","highlight","update:open","opened","update:open"],data(){return{LIST_ITEM_NAVIGATION_TYPES:p.LIST_ITEM_NAVIGATION_TYPES,DROPDOWN_PADDING_CLASSES:W,openedWithKeyboard:!1,isOpen:null}},computed:{dropdownListeners(){return{opened:t=>{this.updateInitialHighlightIndex(t)},keydown:t=>{switch(t.code){case l.EVENT_KEYNAMES.up:case l.EVENT_KEYNAMES.arrowup:this.onUpKeyPress(t),t.stopPropagation(),t.preventDefault();break;case l.EVENT_KEYNAMES.down:case l.EVENT_KEYNAMES.arrowdown:this.onDownKeyPress(t),t.stopPropagation(),t.preventDefault();break;case l.EVENT_KEYNAMES.space:case l.EVENT_KEYNAMES.spacebar:this.onSpaceKey();break;case l.EVENT_KEYNAMES.enter:this.onEnterKey();break;case l.EVENT_KEYNAMES.home:this.onHomeKeyPress(t),t.stopPropagation(),t.preventDefault();break;case l.EVENT_KEYNAMES.end:this.onEndKeyPress(t),t.stopPropagation(),t.preventDefault();break;default:this.onKeyPress(t);break}this.$emit("keydown",t)}}},beginningOfListMethod(){return this.onBeginningOfList||this.jumpToEnd},endOfListMethod(){return this.onEndOfList||this.jumpToBeginning},activeItemEl(){return this.getListElement().querySelector("#"+this.highlightId)},isArrowKeyNav(){return this.navigationType===this.LIST_ITEM_NAVIGATION_TYPES.ARROW_KEYS},listClasses(){return["d-ps-relative","d-stack2","d-m4","d-px0",W[this.padding],this.listClass,{"d-context-menu-list":this.openOnContext}]},shouldOpenWithArrowKeys(){return!this.openOnContext}},methods:{onMouseHighlight(t){const o=t.target.closest("li");o&&o.role&&this.highlightId!==o.id&&(this.setHighlightId(o.id),o.focus())},getListElement(){return this.$refs.listWrapper},clearHighlightIndex(){this.setHighlightIndex(-1)},afterHighlight(){this.visuallyHiddenClose&&this.highlightIndex===this._itemsLength()-1||this.$emit("highlight",this.highlightIndex)},updateInitialHighlightIndex(t){this.isOpen=t,t?(this.openedWithKeyboard&&this.isArrowKeyNav&&this.setHighlightIndex(0),this.$emit("opened",!0)):(this.clearHighlightIndex(),this.openedWithKeyboard=!1,this.$emit("opened",!1))},onSpaceKey(){this.open||(this.openedWithKeyboard=!0)},onEnterKey(){this.open||(this.openedWithKeyboard=!0)},onUpKeyPress(){if(!this.isOpen){this.openedWithKeyboard=!0;return}if(this.isArrowKeyNav)return this.onUpKey()},onDownKeyPress(){if(!this.isOpen){this.openedWithKeyboard=!0;return}if(this.isArrowKeyNav)return this.onDownKey()},onHomeKeyPress(){if(!(!this.isOpen||!this.isArrowKeyNav))return this.onHomeKey()},onEndKeyPress(){if(!(!this.isOpen||!this.isArrowKeyNav))return this.onEndKey()},onKeyPress(t){if(!(!this.isOpen||!this.isArrowKeyNav||!this.isValidLetter(t.key)))return t.stopPropagation(),t.preventDefault(),this.onNavigationKey(t.key)}}},Pn=["id"];function Mn(t,o,n,s,i,a){const r=e.resolveComponent("sr-only-close-button"),c=e.resolveComponent("dt-popover");return e.openBlock(),e.createBlock(c,e.mergeProps({ref:"popover","content-width":n.contentWidth,open:n.open,placement:n.placement,"initial-focus-element":i.openedWithKeyboard?"first":"dialog","fallback-placements":n.fallbackPlacements,padding:"none",role:"menu","append-to":n.appendTo,modal:n.modal,"max-height":n.maxHeight,"max-width":n.maxWidth,"open-with-arrow-keys":a.shouldOpenWithArrowKeys,"open-on-context":n.openOnContext},t.$attrs,{tether:n.tether,transition:n.transition},e.toHandlers(a.dropdownListeners)),{anchor:e.withCtx(({attrs:d})=>[e.renderSlot(t.$slots,"anchor",e.mergeProps({ref:"anchor"},d))]),content:e.withCtx(({close:d})=>[e.createElementVNode("ul",{id:n.listId,ref:"listWrapper",class:e.normalizeClass(a.listClasses),"data-qa":"dt-dropdown-list-wrapper",onMouseleave:o[0]||(o[0]=(...m)=>a.clearHighlightIndex&&a.clearHighlightIndex(...m)),onMousemoveCapture:o[1]||(o[1]=(...m)=>a.onMouseHighlight&&a.onMouseHighlight(...m))},[e.renderSlot(t.$slots,"list",{close:d}),t.showVisuallyHiddenClose?(e.openBlock(),e.createBlock(r,{key:0,"visually-hidden-close-label":t.visuallyHiddenCloseLabel,tabindex:a.isArrowKeyNav?-1:0,onClose:d},null,8,["visually-hidden-close-label","tabindex","onClose"])):e.createCommentVNode("",!0)],42,Pn)]),_:3},16,["content-width","open","placement","initial-focus-element","fallback-placements","append-to","modal","max-height","max-width","open-with-arrow-keys","open-on-context","tether","transition"])}const ct=l._export_sfc(Rn,[["render",Mn]]);const zn={name:"DtDropdownSeparator"},$n={"aria-hidden":"true",class:"dt-list-separator d-my4 d-mxn4"};function qn(t,o,n,s,i,a){return e.openBlock(),e.createElementBlock("li",$n)}const Fn=l._export_sfc(zn,[["render",qn]]),Hn={name:"DtImageViewer",components:{DtButton:h.DtButton,DtIcon:h.DtIcon},mixins:[p.Modal],props:{open:{type:Boolean,default:null},imageSrc:{type:String,required:!0},imageAlt:{type:String,required:!0},imageButtonClass:{type:String,required:!1,default:""},ariaLabel:{type:String,required:!0},closeAriaLabel:{type:String,required:!0}},emits:["opened","update:open"],data(){return{showCloseButton:!0,isOpen:!1}},computed:{modalListeners(){return{click:t=>{t.target===t.currentTarget&&this.close()},keydown:t=>{switch(t.code){case l.EVENT_KEYNAMES.esc:case l.EVENT_KEYNAMES.escape:this.close();break;case l.EVENT_KEYNAMES.tab:this.trapFocus(t);break}}}}},watch:{isOpen:{immediate:!0,handler(t){var o;t?this.previousActiveElement=document.activeElement:((o=this.previousActiveElement)==null||o.focus(),this.previousActiveElement=null)}},open:{handler:function(t){t!==null&&(this.isOpen=t)},immediate:!0}},methods:{openModal(){this.open===null&&(this.isOpen=!0,this.showCloseButton=!0,this.$emit("opened",!0),setTimeout(()=>{this.focusAfterOpen()}))},close(){this.isOpen=!1,this.$emit("opened",!1),this.open!==null&&this.$emit("update:open",!1)},focusAfterOpen(){var t;(t=this.$refs.closeImage)==null||t.$el.focus()},trapFocus(t){this.isOpen&&this.focusTrappedTabPress(t)}}},Kn=["src","alt"],jn=["aria-hidden"],Un={"data-qa":"dt-image-viewer-full",class:"d-p0 d-bar0 d-wmx80p d-hmx80p",role:"dialog","aria-modal":"true"},Gn=["src","alt"];function Wn(t,o,n,s,i,a){const r=e.resolveComponent("dt-button"),c=e.resolveComponent("dt-icon");return e.openBlock(),e.createElementBlock("div",null,[e.createVNode(r,{"data-qa":"dt-image-viewer-preview",class:"d-p0 d-c-zoom-in","aria-label":n.ariaLabel,importance:"clear",onClick:a.openModal},{default:e.withCtx(()=>[e.createElementVNode("img",{class:e.normalizeClass(n.imageButtonClass),src:n.imageSrc,alt:n.imageAlt},null,10,Kn)]),_:1},8,["aria-label","onClick"]),i.isOpen?(e.openBlock(),e.createBlock(e.Teleport,{key:0,to:"body"},[e.createElementVNode("div",e.mergeProps({"aria-hidden":i.isOpen?"false":"true",class:"d-modal","data-qa":"dt-modal"},e.toHandlers(a.modalListeners,!0),{onMouseover:o[0]||(o[0]=d=>i.showCloseButton=!0),onMouseleave:o[1]||(o[1]=d=>i.showCloseButton=!1),onFocusin:o[2]||(o[2]=d=>i.showCloseButton=!0),onFocusout:o[3]||(o[3]=d=>i.showCloseButton=!1)}),[e.createElementVNode("div",Un,[e.createElementVNode("img",{class:"d-wmx100p d-hmx100p",src:n.imageSrc,alt:n.imageAlt},null,8,Gn)]),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[i.showCloseButton?(e.openBlock(),e.createBlock(r,{key:0,ref:"closeImage","data-qa":"dt-image-viewer-close-btn",class:"d-modal__close",circle:"",size:"lg",importance:"clear",kind:"inverted","aria-label":n.closeAriaLabel,onClick:a.close},{icon:e.withCtx(()=>[e.createVNode(c,{class:"d-fc-neutral-white",name:"close",size:"400"})]),_:1},8,["aria-label","onClick"])):e.createCommentVNode("",!0)]),_:1})],16,jn)])):e.createCommentVNode("",!0)])}const ut=l._export_sfc(Hn,[["render",Wn]]),ht={components:{DtValidationMessages:h.DtValidationMessages},provide(){return{groupContext:this.provideObj,setGroupValue:this.setGroupValue}},props:{id:{type:String,default(){return l.getUniqueString()}},value:{type:[String,Number,Boolean,Object],default:null},name:{type:String,required:!0},legend:{type:String,default:""},disabled:{type:Boolean,default:!1},messages:{type:Array,default:()=>[],validator:t=>h.validationMessageValidator(t)},showMessages:{type:Boolean,default:!0},legendClass:{type:[String,Array,Object],default:""},messagesClass:{type:[String,Array,Object],default:""},legendChildProps:{type:Object,default:()=>({})},messagesChildProps:{type:Object,default:()=>({})}},emits:["input"],data(){const t=l.formatMessages(this.messages);return{provideObj:{name:this.name,disabled:this.disabled,validationState:l.getValidationState(t)}}},computed:{formattedMessages(){return l.formatMessages(this.messages)},validationState(){return l.getValidationState(this.formattedMessages)}},watch:{disabled(t){this.provideObj.disabled=t},validationState(t){this.provideObj.validationState=t}},methods:{setGroupValue(t){this.internalValue=t,this.$emit("input",t)}},mounted(){!this.legend&&!this.$slots.legend&&!this.$attrs["aria-label"]&&e.warn("It is expected that an aria-label is provided when there is no legend.",this)}},Yn={name:"DtInputGroup",components:{DtValidationMessages:h.DtValidationMessages},mixins:[ht],props:{dataQaGroup:{type:String,default:"input-group"},dataQaGroupLegend:{type:String,default:"input-group-legend"},dataQaGroupMessages:{type:String,default:"input-group-messages"}},data(){return{internalValue:this.value,hasSlotContent:l.hasSlotContent}},watch:{value(t){this.internalValue=t},internalValue:{immediate:!0,handler(t){this.provideObj.value=t}}},methods:{getMessageKey(t,o){return`input-group-message-${t}-${o}-${this.id}`}}},Zn=["data-qa"],Xn=["data-qa"];function Qn(t,o,n,s,i,a){const r=e.resolveComponent("dt-validation-messages");return e.openBlock(),e.createElementBlock("fieldset",{class:"d-input-group__fieldset","data-qa":n.dataQaGroup},[i.hasSlotContent(t.$slots.legend)||t.legend?(e.openBlock(),e.createElementBlock("legend",e.mergeProps({key:0,class:["d-label",t.legendClass]},t.legendChildProps,{"data-qa":n.dataQaGroupLegend}),[e.renderSlot(t.$slots,"legend",{},()=>[e.createTextVNode(e.toDisplayString(t.legend),1)])],16,Xn)):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"default"),e.createVNode(r,e.mergeProps({"validation-messages":t.formattedMessages,"show-messages":t.showMessages,class:t.messagesClass,"data-qa":n.dataQaGroupMessages},t.messagesChildProps),null,16,["validation-messages","show-messages","class","data-qa"])],8,Zn)}const Oe=l._export_sfc(Yn,[["render",Qn]]),ye={default:"",danger:"d-modal--danger"},Se={default:"",full:"d-modal--full"},ve={error:"d-modal__banner--critical",info:"d-modal__banner--info",success:"d-modal__banner--success",warning:"d-modal__banner--warning",base:"d-modal__banner--general"},Jn={name:"DtModal",components:{DtLazyShow:l.DtLazyShow,DtButton:h.DtButton,DtIcon:h.DtIcon,SrOnlyCloseButton:p.SrOnlyCloseButton},mixins:[p.Modal,p.SrOnlyCloseButtonMixin],props:{closeButtonProps:{type:Object,required:!0,validator:t=>!!t.ariaLabel},copy:{type:String,default:""},describedById:{type:String,default:""},labelledById:{type:String,default:function(){return l.getUniqueString()}},show:{type:Boolean,default:!1},title:{type:String,default:""},bannerTitle:{type:String,default:""},kind:{type:String,default:"default",validator:t=>Object.keys(ye).includes(t)},size:{type:String,default:"default",validator:t=>Object.keys(Se).includes(t)},modalClass:{type:[String,Object,Array],default:""},dialogClass:{type:[String,Object,Array],default:""},contentClass:{type:[String,Object,Array],default:""},bannerKind:{type:String,default:"warning",validate(t){return p.NOTICE_KINDS.includes(t)}},bannerClass:{type:[String,Object,Array],default:""},hideClose:{type:Boolean,default:!1},closeOnClick:{type:Boolean,default:!0},fixedHeaderFooter:{type:Boolean,default:!0}},emits:["click","keydown","update:show"],data(){return{MODAL_KIND_MODIFIERS:ye,MODAL_SIZE_MODIFIERS:Se,MODAL_BANNER_KINDS:ve,EVENT_KEYNAMES:l.EVENT_KEYNAMES,hasSlotContent:l.hasSlotContent}},computed:{modalListeners(){return{click:t=>{this.closeOnClick&&(t.target===t.currentTarget&&this.close(),this.$emit("click",t))},keydown:t=>{switch(t.code){case l.EVENT_KEYNAMES.esc:case l.EVENT_KEYNAMES.escape:this.close();break;case l.EVENT_KEYNAMES.tab:this.trapFocus(t);break}this.$emit("keydown",t)},"after-enter":t=>{t.target===t.currentTarget&&this.setFocusAfterTransition()}}},open(){return`${!this.show}`},hasFooterSlot(){return!!this.$slots.footer},bannerKindClass(){return ve[this.bannerKind]}},watch:{show:{immediate:!0,handler(t){var o;t?this.previousActiveElement=document.activeElement:((o=this.previousActiveElement)==null||o.focus(),this.previousActiveElement=null)}},$props:{immediate:!0,deep:!0,handler(){this.validateProps()}}},methods:{close(){this.$emit("update:show",!1)},setFocusAfterTransition(){this.focusFirstElement()},trapFocus(t){this.show&&this.focusTrappedTabPress(t)},validateProps(){this.hideClose&&!this.visuallyHiddenClose&&console.error(`If hideClose prop is true, visuallyHiddenClose and visuallyHiddenCloseLabel props
5
+ need to be set so the component always includes a close button`)}}},eo=["aria-describedby","aria-labelledby"],to=["id"],no=["id"],oo={key:4,class:"d-modal__footer"};function ao(t,o,n,s,i,a){const r=e.resolveComponent("dt-icon"),c=e.resolveComponent("dt-button"),d=e.resolveComponent("sr-only-close-button"),m=e.resolveComponent("dt-lazy-show");return e.openBlock(),e.createBlock(m,e.mergeProps({transition:"d-zoom",show:n.show,class:["d-modal",i.MODAL_KIND_MODIFIERS[n.kind],i.MODAL_SIZE_MODIFIERS[n.size],n.modalClass],"data-qa":"dt-modal","aria-hidden":a.open},e.toHandlers(a.modalListeners)),{default:e.withCtx(()=>[n.show&&(i.hasSlotContent(t.$slots.banner)||n.bannerTitle)?(e.openBlock(),e.createElementBlock("div",{key:0,"data-qa":"dt-modal-banner",class:e.normalizeClass(["d-modal__banner",n.bannerClass,a.bannerKindClass])},[e.renderSlot(t.$slots,"banner",{},()=>[e.createTextVNode(e.toDisplayString(n.bannerTitle),1)])],2)):e.createCommentVNode("",!0),e.createVNode(e.Transition,{appear:"",name:"d-modal__dialog"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(["d-modal__dialog",{"d-modal__dialog--scrollable":n.fixedHeaderFooter},n.dialogClass]),role:"dialog","aria-modal":"true","aria-describedby":n.describedById,"aria-labelledby":n.labelledById},[i.hasSlotContent(t.$slots.header)?(e.openBlock(),e.createElementBlock("div",{key:0,id:n.labelledById,class:"d-modal__header","data-qa":"dt-modal-title"},[e.renderSlot(t.$slots,"header")],8,to)):(e.openBlock(),e.createElementBlock("h2",{key:1,id:n.labelledById,class:"d-modal__header","data-qa":"dt-modal-title"},e.toDisplayString(n.title),9,no)),i.hasSlotContent(t.$slots.default)?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(["d-modal__content",n.contentClass]),"data-qa":"dt-modal-copy"},[e.renderSlot(t.$slots,"default")],2)):(e.openBlock(),e.createElementBlock("p",{key:3,class:e.normalizeClass(["d-modal__content",n.contentClass]),"data-qa":"dt-modal-copy"},e.toDisplayString(n.copy),3)),a.hasFooterSlot?(e.openBlock(),e.createElementBlock("footer",oo,[e.renderSlot(t.$slots,"footer")])):e.createCommentVNode("",!0),n.hideClose?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(c,e.mergeProps({key:5,class:"d-modal__close",circle:"",size:"lg",importance:"clear","aria-label":n.closeButtonProps.ariaLabel},n.closeButtonProps,{onClick:a.close}),{icon:e.withCtx(()=>[e.createVNode(r,{name:"close",size:"400"})]),_:1},16,["aria-label","onClick"])),t.showVisuallyHiddenClose?(e.openBlock(),e.createBlock(d,{key:6,"visually-hidden-close-label":t.visuallyHiddenCloseLabel,onClose:a.close},null,8,["visually-hidden-close-label","onClose"])):e.createCommentVNode("",!0)],10,eo),[[e.vShow,n.show]])]),_:3})]),_:3},16,["show","class","aria-hidden"])}const io=l._export_sfc(Jn,[["render",ao]]);const so={name:"ListSection",components:{vnodes:{name:"vnodes",render:t=>t.$attrs.vnodes},DtButton:h.DtButton},props:{id:{type:String,default(){return l.utils.getUniqueString()}},header:{type:String,default:null},separator:{type:Boolean,default:!1},maxDisplayed:{type:Number,default:0},textMore:{type:String,default:"Show more"},textLess:{type:String,default:"Show less"}},data(){return{showAll:!1}},computed:{isCollapsible(){return!(this.maxDisplayed===0||this.itemCount<=this.maxDisplayed)},showMoreLessText(){return this.showAll?this.textLess:this.textMore},hiddenCount(){return this.itemCount-this.displayedItems.length},defaultSlotItems(){return Array.isArray(this.$slots.default()[0].children)?this.$slots.default()[0].children:this.$slots.default()},itemCount(){return this.defaultSlotItems.length},displayedItems(){var t;return(t=this.defaultSlotItems)==null?void 0:t.filter((o,n)=>n<=this.maxDisplayed-1)}},methods:{showMoreLessClicked(){this.showAll=!this.showAll}}},ro=["id","aria-labelledby"],lo=["id"],co=["id"],uo=["id"],ho={class:"d-d-flex"};function mo(t,o,n,s,i,a){const r=e.resolveComponent("vnodes"),c=e.resolveComponent("dt-button");return e.openBlock(),e.createElementBlock("div",{id:n.id,role:"group","aria-labelledby":`${n.id}-list-section-header`,tabindex:"-1",class:e.normalizeClass(["dt-list-section","d-fs-200","d-lh6","d-py6","d-bc-black-400",{"d-bb":n.separator}])},[n.header?(e.openBlock(),e.createElementBlock("h3",{key:0,id:`${n.id}-list-section-header`,class:"d-pl12 d-mt6"},e.toDisplayString(n.header),9,lo)):e.createCommentVNode("",!0),!a.isCollapsible||i.showAll?(e.openBlock(),e.createElementBlock("ol",{key:1,id:`${n.id}-list-section-content`},[e.renderSlot(t.$slots,"default")],8,co)):(e.openBlock(),e.createElementBlock("ol",{key:2,id:`${n.id}-list-section-content`},[e.createVNode(r,{vnodes:a.displayedItems},null,8,["vnodes"])],8,uo)),e.createElementVNode("div",ho,[a.isCollapsible?(e.openBlock(),e.createBlock(c,{key:0,id:`${n.id}-list-section-show-more-less`,link:"",class:"d-ml12 d-py6",onClick:a.showMoreLessClicked},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.showMoreLessText),1)]),_:1},8,["id","onClick"])):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"footer")])],10,ro)}const po=l._export_sfc(so,[["render",mo]]),fo={name:"DtListItemGroup",props:{id:{type:String,default(){return l.getUniqueString()}},heading:{type:String,default:""},headingClass:{type:[String,Array,Object],default:""},listClass:{type:[String,Array,Object],default:""}}},_o=["id","aria-labelledby"],go=["id"];function bo(t,o,n,s,i,a){return e.openBlock(),e.createElementBlock("ul",{id:n.id,class:e.normalizeClass(["d-ps-relative","d-px0",n.listClass]),role:"group","data-qa":"dt-dropdown-list-wrapper","aria-labelledby":`${n.id}-heading`},[n.heading?(e.openBlock(),e.createElementBlock("li",{key:0,id:`${n.id}-heading`,role:"presentation","data-qa":"dt-dropdown-list-heading",class:e.normalizeClass(["dt-dropdown-list--header",n.headingClass])},[e.renderSlot(t.$slots,"headingSlot",{},()=>[e.createTextVNode(e.toDisplayString(n.heading),1)])],10,go)):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"default")],10,_o)}const yo=l._export_sfc(fo,[["render",bo]]),So={name:"DtPagination",components:{DtButton:h.DtButton,DtIcon:h.DtIcon},props:{ariaLabel:{type:String,required:!0},totalPages:{type:Number,required:!0},prevAriaLabel:{type:String,required:!0},nextAriaLabel:{type:String,required:!0},pageNumberAriaLabel:{type:Function,required:!0},activePage:{type:Number,default:1},maxVisible:{type:Number,default:5}},emits:["change"],data(){return{currentPage:this.activePage}},computed:{isFirstPage(){return this.currentPage===1},isLastPage(){return this.currentPage===this.totalPages},pages(){if(this.maxVisible===0)return[];if(this.totalPages<=this.maxVisible)return this.range(1,this.totalPages);const t=this.maxVisible-1,o=this.totalPages-t+1;if(this.currentPage<t)return[...this.range(1,t),"...",this.totalPages];if(this.currentPage>o)return[1,"...",...this.range(o,this.totalPages)];const n=this.maxVisible-(3-this.maxVisible%2),s=Math.floor(n/2),i=this.currentPage-s,a=this.currentPage+s;return[1,"...",...this.range(i,a),"...",this.totalPages]}},methods:{range(t,o){const n=[];t=t>0?t:1;for(let s=t;s<=o;s++)n.push(s);return n},changePage(t){this.currentPage=t,this.$emit("change",this.currentPage)}}},vo=["aria-label"],Co={key:0,class:"d-fc-tertiary d-w24 d-ta-center","data-qa":"dt-pagination-separator"};function Eo(t,o,n,s,i,a){const r=e.resolveComponent("dt-icon"),c=e.resolveComponent("dt-button");return e.openBlock(),e.createElementBlock("nav",{"aria-label":n.ariaLabel,class:"d-d-flex d-fd-row d-gg4 d-ai-center"},[e.createVNode(c,{class:e.normalizeClass(["d-px8",a.isFirstPage?"d-fc-black-300 d-bgc-transparent":"d-fc-tertiary"]),"data-qa":"dt-pagination-prev","aria-label":n.prevAriaLabel,kind:a.isFirstPage?"default":"muted",importance:a.isFirstPage?"primary":"clear",disabled:a.isFirstPage,onClick:o[0]||(o[0]=d=>a.changePage(i.currentPage-1))},{icon:e.withCtx(()=>[e.createVNode(r,{name:"chevron-left",size:"300"})]),_:1},8,["aria-label","kind","importance","disabled","class"]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.pages,(d,m)=>(e.openBlock(),e.createElementBlock("div",{key:`page-${d}-${m}`,class:e.normalizeClass({"d-as-flex-end":isNaN(Number(d))})},[isNaN(Number(d))?(e.openBlock(),e.createElementBlock("div",Co,[e.createVNode(r,{name:"more-horizontal",size:"300"})])):(e.openBlock(),e.createBlock(c,{key:1,"aria-label":n.pageNumberAriaLabel(d),kind:i.currentPage===d?"default":"muted",importance:i.currentPage===d?"primary":"clear","label-class":"",onClick:f=>a.changePage(d)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(d),1)]),_:2},1032,["aria-label","kind","importance","onClick"]))],2))),128)),e.createVNode(c,{class:e.normalizeClass(["d-px8",a.isLastPage?"d-fc-black-300 d-bgc-transparent":"d-fc-tertiary"]),"data-qa":"dt-pagination-next","aria-label":n.nextAriaLabel,disabled:a.isLastPage,kind:"muted",importance:a.isLastPage?"primary":"clear",onClick:o[1]||(o[1]=d=>a.changePage(i.currentPage+1))},{icon:e.withCtx(()=>[e.createVNode(r,{name:"chevron-right",size:"300"})]),_:1},8,["aria-label","disabled","importance","class"])],8,vo)}const Io=l._export_sfc(So,[["render",Eo]]),ko={warning:"d-radio--warning",error:"d-radio--error",success:"d-radio--success"},Do={name:"DtRadio",components:{DtValidationMessages:h.DtValidationMessages},mixins:[h.InputMixin,h.CheckableMixin,h.GroupableMixin,h.MessagesMixin],inheritAttrs:!1,props:{value:{type:[String,Number],default:""}},emits:["input","focus","focusin","focusout","click"],data(){return{hasSlotContent:l.hasSlotContent}},computed:{inputValidationClass(){return ko[this.internalValidationState]},radioGroupValue(){var t;return(t=this.groupContext)==null?void 0:t.selectedValue},inputListeners(){return{input:()=>{},focusin:t=>this.$emit("focusin",t),focusout:t=>this.$emit("focusout",t),change:t=>this.emitValue(t.target.value)}}},watch:{radioGroupValue:{immediate:!0,handler(t){this.hasGroup&&(this.internalChecked=t===this.value)}}},methods:{emitValue(t){t!==this.radioGroupValue&&(this.setGroupValue(t),this.$emit("input",t))}}},wo={class:"d-radio__input"},Bo=["checked","name","value","disabled"],To={class:"d-radio__copy d-radio__label","data-qa":"radio-label-description-container"};function Lo(t,o,n,s,i,a){const r=e.resolveComponent("dt-validation-messages");return e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("label",null,[e.createElementVNode("div",{class:e.normalizeClass(["d-radio-group",{"d-radio-group--disabled":t.internalDisabled}])},[e.createElementVNode("div",wo,[e.createElementVNode("input",e.mergeProps({checked:t.internalChecked,name:t.internalName,value:n.value,disabled:t.internalDisabled,type:"radio",class:["d-radio",a.inputValidationClass,t.inputClass]},t.$attrs,e.toHandlers(a.inputListeners,!0)),null,16,Bo)]),e.createElementVNode("div",To,[e.createElementVNode("div",e.mergeProps({class:t.labelClass},t.labelChildProps,{"data-qa":"radio-label"}),[e.renderSlot(t.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(t.label),1)])],16),t.$slots.description||t.description?(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:0,class:["d-description",t.descriptionClass]},t.descriptionChildProps,{"data-qa":"radio-description"}),[e.renderSlot(t.$slots,"description",{},()=>[e.createTextVNode(e.toDisplayString(t.description),1)])],16)):e.createCommentVNode("",!0),e.createVNode(r,e.mergeProps({"validation-messages":t.formattedMessages,"show-messages":t.showMessages,class:t.messagesClass},t.messagesChildProps,{"data-qa":"dt-radio-validation-messages"}),null,16,["validation-messages","show-messages","class"])])],2)])])}const No=l._export_sfc(Do,[["render",Lo]]),Oo={name:"DtRadioGroup",extends:Oe,props:{value:{type:[String,Number],default:""},dataQaGroup:{type:String,default:"radio-group"},dataQaGroupLegend:{type:String,default:"radio-group-legend"},dataQaGroupMessages:{type:String,default:"radio-group-messages"}},emits:["input"],data(){return{internalValue:this.value}},watch:{value(t){this.internalValue=t},internalValue:{immediate:!0,handler(t){this.provideObj.selectedValue=t}}},methods:{setGroupValue(t){this.$emit("input",t)},getMessageKey(t,o){return`radio-group-message-${t}-${o}-${this.id}`}}},Ao={name:"DtTabPanel",mixins:[p.Modal],inject:["groupContext"],props:{id:{type:String,required:!0},tabId:{type:String,required:!0},hidden:{type:Boolean,default:!1},tabPanelClass:{type:[String,Array,Object],default:""}},data(){return{isFirstElementFocusable:!1}},computed:{hidePanel(){return this.groupContext.selected!==this.id||this.hidden}},async mounted(){const t=await this.getFirstFocusableElement(this.$el);t?this.isFirstElementFocusable=this.isFirstElementOfPanel(t):this.isFirstElementFocusable=!1},methods:{isFirstElementOfPanel(t){let o=t,n=!0;for(;o;){if(o.previousElementSibling!==null){n=!1;break}o=o.parentNode!==this.$el?o.parentNode:null}return n}}},xo=["id","tabindex","aria-labelledby","aria-hidden"];function Vo(t,o,n,s,i,a){return e.withDirectives((e.openBlock(),e.createElementBlock("div",{id:`dt-panel-${n.id}`,role:"tabpanel",tabindex:i.isFirstElementFocusable?-1:0,"aria-labelledby":`dt-tab-${n.tabId}`,"aria-hidden":`${a.hidePanel}`,class:e.normalizeClass([{"d-d-none":a.hidePanel},n.tabPanelClass]),"data-qa":"dt-tab-panel"},[e.renderSlot(t.$slots,"default")],10,xo)),[[e.vShow,!n.hidden]])}const Ro=l._export_sfc(Ao,[["render",Vo]]),Po={error:"d-checkbox--error",warning:"d-checkbox--warning",success:"d-checkbox--success"},Mo={name:"DtCheckbox",components:{DtValidationMessages:h.DtValidationMessages},mixins:[h.InputMixin,h.CheckableMixin,h.GroupableMixin,h.MessagesMixin],inheritAttrs:!1,emits:["input","focusin","focusout"],computed:{inputValidationClass(){return Po[this.internalValidationState]},checkboxGroupValueChecked(){var t,o;return((o=(t=this.groupContext)==null?void 0:t.selectedValues)==null?void 0:o.includes(this.value))??!1},hasLabel(){return!!(this.$slots.default||this.label)},hasDescription(){return!!(this.$slots.description||this.description)},hasLabelOrDescription(){return this.hasLabel||this.hasDescription},inputListeners(){return{input:()=>{},focusin:t=>this.$emit("focusin",t),focusout:t=>this.$emit("focusout",t),change:t=>this.emitValue(t.target)}}},watch:{checkboxGroupValueChecked:{immediate:!0,handler(t){this.hasGroup&&(this.internalChecked=t)}}},mounted(){this.runValidations()},methods:{emitValue(t){let{value:o,checked:n}=t;this.internalIndeterminate&&(n=!1,this.internalIndeterminate=!1,t.checked=!1),this.setGroupValue(o,n),this.$emit("input",n)},runValidations(){this.validateInputLabels(this.hasLabel,this.$attrs["aria-label"])}}},zo={class:"d-checkbox__input"},$o=["checked","name","value","disabled",".indeterminate"],qo={key:0,class:"d-checkbox__copy d-checkbox__label","data-qa":"checkbox-label-description-container"};function Fo(t,o,n,s,i,a){const r=e.resolveComponent("dt-validation-messages");return e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("label",null,[e.createElementVNode("div",{class:e.normalizeClass(["d-checkbox-group",{"d-checkbox-group--disabled":t.internalDisabled}])},[e.createElementVNode("div",zo,[e.createElementVNode("input",e.mergeProps({type:"checkbox",checked:t.internalChecked,name:t.internalName,value:t.value,disabled:t.internalDisabled,class:["d-checkbox",a.inputValidationClass,t.inputClass]},t.$attrs,{".indeterminate":t.internalIndeterminate},e.toHandlers(a.inputListeners,!0)),null,16,$o)]),a.hasLabelOrDescription?(e.openBlock(),e.createElementBlock("div",qo,[a.hasLabel?(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:0,class:t.labelClass},t.labelChildProps,{"data-qa":"checkbox-label"}),[e.renderSlot(t.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(t.label),1)])],16)):e.createCommentVNode("",!0),a.hasDescription?(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:1,class:["d-description",t.descriptionClass]},t.descriptionChildProps,{"data-qa":"checkbox-description"}),[e.renderSlot(t.$slots,"description",{},()=>[e.createTextVNode(e.toDisplayString(t.description),1)])],16)):e.createCommentVNode("",!0),e.createVNode(r,e.mergeProps({"validation-messages":t.formattedMessages,"show-messages":t.showMessages,class:t.messagesClass},t.messagesChildProps,{"data-qa":"dt-checkbox-validation-messages"}),null,16,["validation-messages","show-messages","class"])])):e.createCommentVNode("",!0)],2)])])}const Ho=l._export_sfc(Mo,[["render",Fo]]),Ko={name:"DtCheckboxGroup",extends:Oe,model:{prop:"selectedValues"},props:{value:{type:[],default:null,validator:t=>t?(e.warn("Component uses selectedValues to initialize the model, value is not supported by this component",globalThis),!1):!0},selectedValues:{type:Array,default(){return[]}},dataQaGroup:{type:String,default:"checkbox-group"},dataQaGroupLegend:{type:String,default:"checkbox-group-legend"},dataQaGroupMessages:{type:String,default:"checkbox-group-messages"}},emits:["input"],data(){return{internalValue:this.selectedValues}},watch:{selectedValues(t){this.internalValue=t},internalValue:{immediate:!0,handler(t){this.provideObj.selectedValues=t}}},methods:{setGroupValue(t,o){o?this.internalValue.includes(t)||this.internalValue.push(t):this.internalValue=this.internalValue.filter(n=>n!==t),this.$emit("input",this.internalValue)},getMessageKey(t,o){return`checkbox-group-message-${t}-${o}-${this.id}`}}},Ce={xs:"d-chip__label--xs",sm:"d-chip__label--sm",md:""},jo={xs:"d-chip__close--xs",sm:"d-chip__close--sm",md:""},Uo={xs:"200",sm:"200",md:"200"},Go={name:"DtChip",components:{DtButton:h.DtButton,DtIcon:h.DtIcon},props:{closeButtonProps:{type:Object,default:function(){return{ariaLabel:"close"}},validator:t=>!!t.ariaLabel},hideClose:{type:Boolean,default:!1},size:{type:String,default:"md",validator:t=>Object.keys(Ce).includes(t)},interactive:{type:Boolean,default:!0},id:{type:String,default:function(){return l.getUniqueString()}},ariaLabel:{type:String,default:""},contentClass:{type:[String,Array,Object],default:""},labelClass:{type:[String,Array,Object],default:""}},emits:["click","close","keyup"],data(){return{isActive:!1,hasSlotContent:l.hasSlotContent}},computed:{chipListeners(){return{click:t=>{this.interactive&&this.$emit("click",t)},keyup:t=>{var o;((o=t.code)==null?void 0:o.toLowerCase())==="delete"?this.onClose():this.$emit("keyup",t)}}},closeButtonIconSize(){return Uo[this.size]}},methods:{chipClasses(){return[this.$attrs["grouped-chip"]?"d-chip":"d-chip__label",Ce[this.size],this.labelClass]},chipCloseButtonClasses(){return["d-chip__close",jo[this.size]]},onClose(){this.hideClose||this.$emit("close")}}},Wo={class:"d-chip"},Yo={key:0,"data-qa":"dt-chip-icon",class:"d-chip__icon"},Zo={key:1,"data-qa":"dt-chip-avatar"},Xo=["id"];function Qo(t,o,n,s,i,a){const r=e.resolveComponent("dt-icon"),c=e.resolveComponent("dt-button");return e.openBlock(),e.createElementBlock("span",Wo,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.interactive?"button":"span"),e.mergeProps({id:n.id,type:n.interactive&&"button",class:a.chipClasses(),"data-qa":"dt-chip","aria-labelledby":n.ariaLabel?void 0:`${n.id}-content`,"aria-label":n.ariaLabel},e.toHandlers(a.chipListeners)),{default:e.withCtx(()=>[i.hasSlotContent(t.$slots.icon)?(e.openBlock(),e.createElementBlock("span",Yo,[e.renderSlot(t.$slots,"icon")])):i.hasSlotContent(t.$slots.avatar)?(e.openBlock(),e.createElementBlock("span",Zo,[e.renderSlot(t.$slots,"avatar")])):e.createCommentVNode("",!0),i.hasSlotContent(t.$slots.default)?(e.openBlock(),e.createElementBlock("span",{key:2,id:`${n.id}-content`,"data-qa":"dt-chip-label",class:e.normalizeClass(["d-truncate","d-chip__text",n.contentClass])},[e.renderSlot(t.$slots,"default")],10,Xo)):e.createCommentVNode("",!0)]),_:3},16,["id","type","class","aria-labelledby","aria-label"])),n.hideClose?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(c,e.mergeProps({key:0},n.closeButtonProps,{class:a.chipCloseButtonClasses(),"data-qa":"dt-chip-close","aria-label":n.closeButtonProps.ariaLabel,onClick:o[0]||(o[0]=d=>t.$emit("close"))}),{icon:e.withCtx(()=>[e.createVNode(r,{name:"close",size:a.closeButtonIconSize},null,8,["size"])]),_:1},16,["class","aria-label"]))])}const Ae=l._export_sfc(Go,[["render",Qo]]),Ee={xs:"d-select--xs",sm:"d-select--sm",md:"",lg:"d-select--lg",xl:"d-select--xl"},mt={error:"d-select__input--error",warning:"d-select__input--warning",success:"d-select__input--success"},Jo=t=>!t.index||typeof t.index=="number",ea=t=>t.value?typeof t.value=="string"||typeof t.value=="number":!1,ta=t=>t.label?typeof t.label=="string":!1,na=t=>t?t.every(o=>!(!Jo(o)||!ea(o)||!ta(o))):!0,oa={name:"DtSelectMenu",components:{DtValidationMessages:h.DtValidationMessages},mixins:[h.MessagesMixin],inheritAttrs:!1,props:{label:{type:String,default:""},description:{type:String,default:""},options:{type:Array,default:()=>[],validator:t=>na(t)},size:{type:String,default:"md",validator:t=>Object.keys(Ee).includes(t)},labelClass:{type:[String,Array,Object],default:""},descriptionClass:{type:[String,Array,Object],default:""},selectClass:{type:[String,Array,Object],default:""},optionClass:{type:[String,Array,Object],default:""},labelChildProps:{type:Object,default:()=>({})},descriptionChildProps:{type:Object,default:()=>({})},optionChildProps:{type:Object,default:()=>({})},disabled:{type:Boolean,default:!1}},emits:["input","change"],data(){return{LABEL_SIZE_MODIFIERS:l.LABEL_SIZE_MODIFIERS,DESCRIPTION_SIZE_MODIFIERS:l.DESCRIPTION_SIZE_MODIFIERS,SELECT_SIZE_MODIFIERS:Ee,SELECT_STATE_MODIFIERS:mt,hasSlotContent:l.hasSlotContent}},computed:{selectListeners(){return{input:()=>{},change:t=>this.emitValue(t.target.value,t)}},state(){return l.getValidationState(this.formattedMessages)},selectKey(){return l.getUniqueString()},descriptionKey(){return`select-${this.selectKey}-description`},labelAriaDetails(){return this.$slots.description||this.description?this.descriptionKey:this.$attrs["aria-details"]}},mounted(){this.validateOptionsPresence()},beforeUpdate(){this.validateOptionsPresence()},methods:{emitValue(t,o){this.$emit("input",t,o),this.$emit("change",t,o)},getOptionKey(t){return`select-${this.selectKey}-option-${t}`},validateOptionsPresence(){var t;((t=this.options)==null?void 0:t.length)<1&&!this.$slots.default&&e.warn("Options are expected to be provided via prop or slot",this)}}},aa=["aria-details"],ia=["id"],sa=["disabled"],ra=["value"];function la(t,o,n,s,i,a){const r=e.resolveComponent("dt-validation-messages");return e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("label",null,[i.hasSlotContent(t.$slots.label)||n.label?(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:0,"aria-details":a.labelAriaDetails,class:["d-label",i.LABEL_SIZE_MODIFIERS[n.size],n.labelClass]},n.labelChildProps,{"data-qa":"dt-select-label"}),[e.renderSlot(t.$slots,"label",{},()=>[e.createTextVNode(e.toDisplayString(n.label),1)])],16,aa)):e.createCommentVNode("",!0),i.hasSlotContent(t.$slots.description)||n.description?(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:1,id:a.descriptionKey,class:["d-description",i.DESCRIPTION_SIZE_MODIFIERS[n.size],n.descriptionClass]},n.descriptionChildProps,{"data-qa":"dt-select-description"}),[e.renderSlot(t.$slots,"description",{},()=>[e.createTextVNode(e.toDisplayString(n.description),1)])],16,ia)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["d-select",i.SELECT_SIZE_MODIFIERS[n.size],n.selectClass,{"d-select--disabled":n.disabled}]),"data-qa":"dt-select-wrapper"},[e.createElementVNode("select",e.mergeProps({class:["d-select__input",i.SELECT_STATE_MODIFIERS[a.state]]},t.$attrs,{"data-qa":"dt-select",disabled:n.disabled},e.toHandlers(a.selectListeners,!0)),[e.renderSlot(t.$slots,"default",{},()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.options,c=>(e.openBlock(),e.createElementBlock("option",e.mergeProps({key:a.getOptionKey(c.value),value:c.value,class:n.optionClass},n.optionChildProps),e.toDisplayString(c.label),17,ra))),128))])],16,sa)],2)]),e.createVNode(r,e.mergeProps({"validation-messages":t.formattedMessages,"show-messages":t.showMessages,class:t.messagesClass},t.messagesChildProps,{"data-qa":"dt-select-messages"}),null,16,["validation-messages","show-messages","class"])])}const da=l._export_sfc(oa,[["render",la]]),pt=["status","alert"],Xe=6e3,ca={name:"DtToast",components:{DtNoticeIcon:p.DtNoticeIcon,DtNoticeContent:p.DtNoticeContent,DtNoticeAction:p.DtNoticeAction},mixins:[p.SrOnlyCloseButtonMixin],props:{titleId:{type:String,default(){return l.utils.getUniqueString()}},contentId:{type:String,default(){return l.utils.getUniqueString()}},title:{type:String,default:""},message:{type:String,default:""},role:{type:String,default:"status",validator:t=>pt.includes(t)},kind:{type:String,default:"base",validator:t=>p.NOTICE_KINDS.includes(t)},important:{type:Boolean,default:!1},show:{type:Boolean,default:!1},closeButtonProps:{type:Object,default:()=>({})},hideClose:{type:Boolean,default:!1},duration:{type:Number,default:null,validator:t=>t>=Xe}},emits:["close","click","update:show"],data(){return{isShown:!1,minDuration:Xe}},computed:{kindClass(){return{error:"d-toast--error",info:"d-toast--info",success:"d-toast--success",warning:"d-toast--warning",base:"d-toast--base"}[this.kind]},shouldSetTimeout(){return!!this.duration&&this.duration>=this.minDuration}},watch:{show:{handler:function(t){this.isShown=t,t?this.setTimeout():clearTimeout(this.displayTimer)},immediate:!0}},unmounted(){clearTimeout(this.displayTimer)},methods:{closeToast(t){this.$emit("update:show",!1),this.$emit("close",t)},setTimeout(){this.shouldSetTimeout&&(this.displayTimer=setTimeout(()=>{this.isShown=!1,this.$emit("update:show",!1)},this.duration))}}},ua=["aria-hidden"],ha={class:"d-toast__dialog"};function ma(t,o,n,s,i,a){const r=e.resolveComponent("dt-notice-icon"),c=e.resolveComponent("dt-notice-content"),d=e.resolveComponent("dt-notice-action");return i.isShown?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["d-toast",a.kindClass,{"d-toast--important":n.important}]),"data-qa":"dt-toast","aria-hidden":(!i.isShown).toString()},[e.createElementVNode("div",ha,[e.createVNode(r,{kind:n.kind},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"icon")]),_:3},8,["kind"]),e.createVNode(c,{"title-id":n.titleId,"content-id":n.contentId,title:n.title,role:n.role},{titleOverride:e.withCtx(()=>[e.renderSlot(t.$slots,"titleOverride")]),default:e.withCtx(()=>[e.renderSlot(t.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(n.message),1)])]),_:3},8,["title-id","content-id","title","role"]),e.createVNode(d,{"hide-close":n.hideClose,"close-button-props":n.closeButtonProps,"visually-hidden-close":t.visuallyHiddenClose,"visually-hidden-close-label":t.visuallyHiddenCloseLabel,onClose:a.closeToast},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"action")]),_:3},8,["hide-close","close-button-props","visually-hidden-close","visually-hidden-close-label","onClose"])])],10,ua)):e.createCommentVNode("",!0)}const pa=l._export_sfc(ca,[["render",ma]]),Qe={sm:"d-toggle--small",md:""},fa=[!1,!0,"mixed"],_a={name:"DtToggle",inheritAttrs:!1,model:{prop:"checked",event:"change"},props:{id:{type:String,default(){return l.getUniqueString()}},disabled:{type:Boolean,default:!1},checked:{type:[Boolean,String],default:!1,validator:t=>fa.includes(t)},toggleOnClick:{type:Boolean,default:!0},size:{type:String,default:"md",validator:t=>Object.keys(Qe).includes(t)},showIcon:{type:Boolean,default:!0},labelClass:{type:[String,Array,Object],default:""},labelChildProps:{type:Object,default:()=>({})}},emits:["change"],data(){return{internalChecked:this.checked,hasSlotContent:l.hasSlotContent}},computed:{inputListeners(){return{...this.$attrs,onClick:t=>this.toggleCheckedValue()}},isIndeterminate(){return this.internalChecked==="mixed"},toggleRole(){return this.isIndeterminate?"checkbox":"switch"},toggleClasses(){return["d-toggle",Qe[this.size],{"d-toggle--checked":this.internalChecked===!0,"d-toggle--disabled":this.disabled,"d-toggle--indeterminate":this.isIndeterminate}]}},watch:{checked(t){this.internalChecked=t}},mounted(){this.runValidations()},methods:{toggleCheckedValue(){this.$emit("change",!this.internalChecked),this.toggleOnClick&&(this.internalChecked=!this.internalChecked)},hasSlotLabel(){return!!this.$slots.default},runValidations(){this.validateInputLabels(this.hasSlotLabel(),this.$attrs["aria-label"])},validateInputLabels(t,o){!t&&!o&&e.warn("You must provide an aria-label when there is no label passed",this)}}},ga={class:"d-d-flex d-ai-center"},ba=["for"],ya=["id","role","aria-checked","disabled","aria-disabled"],Sa={key:0,class:"d-toggle__inner"};function va(t,o,n,s,i,a){return e.openBlock(),e.createElementBlock("div",ga,[i.hasSlotContent(t.$slots.default)?(e.openBlock(),e.createElementBlock("label",e.mergeProps({key:0,class:n.labelClass,for:n.id},n.labelChildProps,{"data-qa":"toggle-label"}),[e.renderSlot(t.$slots,"default")],16,ba)):e.createCommentVNode("",!0),e.createElementVNode("button",e.mergeProps({id:n.id,role:a.toggleRole,type:"button","aria-checked":i.internalChecked.toString(),disabled:n.disabled,"aria-disabled":n.disabled.toString(),class:a.toggleClasses},a.inputListeners),[n.showIcon?(e.openBlock(),e.createElementBlock("span",Sa)):e.createCommentVNode("",!0)],16,ya)])}const Ca=l._export_sfc(_a,[["render",va]]),j={"{win}":"layout-grid","{arrow-right}":"arrow-right","{arrow-left}":"arrow-left","{arrow-up}":"arrow-up","{arrow-down}":"arrow-down","{cmd}":"command"},ft={"{plus}":"plus"},Ea=Object.keys(j),Ia={name:"DtKeyboardShortcut",components:{DtIcon:h.DtIcon},props:{inverted:{type:Boolean,default:!1},shortcut:{type:String,required:!0},screenReaderText:{type:String,default:null}},data(){return{SHORTCUTS_ICON_ALIASES:j,separator:/\+/gi}},computed:{icons(){return{...j,...ft}},shortcutWithSeparator(){return this.shortcut.replace(this.separator,"{plus}")},formattedShortcut(){return Object.keys(j).reduce((t,o)=>t.replace(new RegExp("{"+o+"}","gi"),j[o]),this.shortcutWithSeparator)},formattedShortcutSplit(){const t=Object.keys(this.icons).join("|"),o=new RegExp(`(${t})`,"gi");return this.formattedShortcut.split(o).filter(Boolean)}}},ka={key:0,class:"sr-only"},Da=["innerHTML"];function wa(t,o,n,s,i,a){const r=e.resolveComponent("dt-icon");return e.openBlock(),e.createElementBlock("kbd",{class:e.normalizeClass(["d-d-inline-flex","d-ff-custom","d-ai-center","d-jc-center","d-box-border","d-px4","d-ba","d-bar4","d-fs-100",n.inverted?"d-bc-moderate-inverted":"d-bc-default"])},[n.screenReaderText?(e.openBlock(),e.createElementBlock("span",ka,e.toDisplayString(n.screenReaderText),1)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.formattedShortcutSplit,(c,d)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[a.icons[c]?(e.openBlock(),e.createBlock(r,{key:`${d}-${c}`,name:a.icons[c],size:"100","aria-hidden":"true",class:e.normalizeClass([n.inverted?"d-fc-secondary-inverted":"d-fc-tertiary","d-mr2"])},null,8,["name","class"])):(e.openBlock(),e.createElementBlock("span",{key:`${d}-${c}`,"aria-hidden":"true",class:e.normalizeClass([n.inverted?"d-fc-secondary-inverted":"d-fc-tertiary","d-mr2"]),innerHTML:c},null,10,Da))],64))),256))],2)}const Ba=l._export_sfc(Ia,[["render",wa]]),Ie={LEFT:"left",RIGHT:"right"},_t=["sm","md","lg",null],Ta={name:"DtRootLayout",props:{fixed:{type:Boolean,default:!0},headerClass:{type:[String,Array,Object],default:""},headerHeight:{type:String,default:"64px"},headerSticky:{type:Boolean,default:!1},bodyClass:{type:[String,Array,Object],default:""},contentClass:{type:[String,Array,Object],default:""},sidebarClass:{type:[String,Array,Object],default:""},sidebarWidth:{type:String,default:"256px"},sidebarPosition:{type:String,default:"left",validator:t=>Object.values(Ie).includes(t)},footerClass:{type:[String,Array,Object],default:""},footerHeight:{type:String,default:"64px"},responsiveBreakpoint:{type:String,default:null,validator:t=>_t.includes(t)}},computed:{isInverted(){return this.sidebarPosition===Ie.RIGHT}}};function La(t,o,n,s,i,a){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["root-layout","d-root-layout",{"d-root-layout--fixed":n.fixed,"d-root-layout--inverted":a.isInverted,[`d-root-layout__responsive--${n.responsiveBreakpoint}`]:!!n.responsiveBreakpoint}]),"data-qa":"dt-root-layout"},[e.createElementVNode("header",{class:e.normalizeClass(["d-root-layout__header",{"d-root-layout__header--sticky":n.headerSticky},n.headerClass]),"data-qa":"dt-root-layout-header"},[e.renderSlot(t.$slots,"header")],2),e.createElementVNode("aside",{ref:"root-layout-sidebar",tabindex:"0",class:e.normalizeClass(["d-root-layout__sidebar",n.sidebarClass]),"data-qa":"dt-root-layout-sidebar"},[e.renderSlot(t.$slots,"sidebar")],2),e.createElementVNode("main",{ref:"root-layout-content",class:e.normalizeClass(["d-root-layout__content",n.contentClass]),"data-qa":"dt-root-layout-content",tabindex:"0"},[e.renderSlot(t.$slots,"default")],2),e.createElementVNode("footer",{class:e.normalizeClass(["d-root-layout__footer",n.footerClass]),"data-qa":"dt-root-layout-footer"},[e.renderSlot(t.$slots,"footer")],2)],2)}const Na=l._export_sfc(Ta,[["render",La]]);const gt={__name:"core_scroller",props:{items:{type:Array,required:!0},keyField:{type:String,default:"id"},direction:{type:String,default:"vertical",validator:t=>["vertical","horizontal"].includes(t)},itemSize:{type:Number,default:null},minItemSize:{type:[Number,String],default:null},sizeField:{type:String,default:"size"},buffer:{type:Number,default:200},skipHover:{type:Boolean,default:!1},listTag:{type:String,default:"div"},itemTag:{type:String,default:"div"},listClass:{type:[String,Object,Array],default:""},itemClass:{type:[String,Object,Array],default:""}},emits:["user-position"],setup(t,{expose:o,emit:n}){const s=t,i=e.reactive(new Map),a=e.reactive(new Map),r=e.ref([]),c=e.ref(null),d=e.ref(!1),m=e.ref(null),f=e.ref("top");let u=0,g=0,_=!1,b=0,v=null,L=null,R=0,Lt=0;const ue=e.computed(()=>{if(s.itemSize===null){const C={"-1":{accumulator:0}},k=s.items,y=s.sizeField,P=s.minItemSize;let N=1e4,$=0,D;for(let O=0,U=k.length;O<U;O++)D=k[O][y]||P,D<N&&(N=D),$+=D,C[O]={accumulator:$,size:D};return L=N,C}return[]}),Nt=e.computed(()=>s.items.length&&typeof s.items[0]!="object"),Ot=e.computed(()=>{const C={};for(let k=0,y=s.items.length;k<y;k++)C[s.items[k][s.keyField]]=k;return C});e.watch(ue,()=>{X(!1)},{deep:!0}),e.onMounted(()=>{e.nextTick(()=>{X(!0),d.value=!0})});const Me=(C,k,y,P,N)=>{const $=e.markRaw({id:Lt++,index:k,used:!0,key:P,type:N}),D=e.shallowReactive({item:y,position:0,nr:$});return C.value.push(D),D},he=(C,k=!1)=>{const y=a,P=C.nr.type;let N=y.get(P);N||(N=[],y.set(P,N)),N.push(C),k||(C.nr.used=!1,C.position=-9999)},At=()=>{const C=s.direction==="vertical";let k;return C?k={start:m.value.scrollTop,end:m.value.scrollTop+m.value.clientHeight}:k={start:m.value.scrollLeft,end:m.value.scrollLeft+m.value.clientWidth},k},xt=()=>{throw setTimeout(()=>{console.error("It seems the scroller element isn't scrolling, so it tries to render all the items at once.","Scroller:",m),console.error("Make sure the scroller has a fixed height (or width) and 'overflow-y' (or 'overflow-x') set to 'auto' so it can scroll correctly and only render the items visible in the scroll viewport.")}),new Error("Rendered items limit reached")},Vt=()=>{r.value.sort((C,k)=>C.nr.index-k.nr.index)},X=(C,k=!1)=>{var qe,Fe,He,Ke,je,Ue,Ge,We;const y=s.itemSize,P=L,N=Nt.value?null:s.keyField,$=s.items,D=$.length,O=ue.value,U=i,ze=a,Q=r,zt=Ot;let A,T,J,M,q;if(!D)A=T=M=q=J=0;else{const I=At();if(k){let w=I.start-b.value;if(w<0&&(w=-w),y===null&&w<P.value||w<y)return{continuous:!0}}b=I.start;const x=s.buffer;if(I.start-=x,I.end+=x,y===null){let w,G=0,Ye=D-1,V=~~(D/2),Ze;do Ze=V,w=(qe=O[V])==null?void 0:qe.accumulator,w<I.start?G=V:V<D-1&&((Fe=O[V+1])==null?void 0:Fe.accumulator)>I.start&&(Ye=V),V=~~((G+Ye)/2);while(V!==Ze);for(V<0&&(V=0),A=V,J=(He=O[D-1])==null?void 0:He.accumulator,T=V;T<D&&((Ke=O[T])==null?void 0:Ke.accumulator)<I.end;T++);for(T===-1?T=$.length-1:(T++,T>D&&(T=D)),M=u;M<D&&((je=O[M])==null?void 0:je.accumulator)<I.start;M++);for(q=M;q<D&&((Ue=O[q])==null?void 0:Ue.accumulator)<I.end;q++);}else{A=~~(I.start/y);const w=A%1;A-=w,T=Math.ceil(I.end/y),M=Math.max(0,Math.floor(I.start/y)),q=Math.floor(I.end/y),A<0&&(A=0),T>D&&(T=D),M<0&&(M=0),q>D&&(q=D),J=Math.ceil(D/1)*y}}T-A>1e3&&xt(),R=J;let S;const ee=A<=g&&T>=A;if(ee)for(let I=0,x=Q.value.length;I<x;I++)S=Q.value[I],S!=null&&S.nr.used&&(C&&(S.nr.index=zt[S.item[N]]),(S.nr.index==null||S.nr.index<A||S.nr.index>=T)&&he(S));const $e=ee?null:new Map;let z,F,te;for(let I=A;I<T;I++){z=$[I];const x=N?z==null?void 0:z[N]:z;if(x==null)throw new Error(`Key is ${x} on item (keyField is '${N}')`);if(S=U.get(x),!y&&!((Ge=O[I])!=null&&Ge.size)){S&&he(S);continue}F=z.type;let w=ze.get(F);if(!S)ee?w&&w.length?S=w.pop():S=Me(Q,I,z,x,F):(te=$e.get(F)||0,(!w||te>=w.length)&&(S=Me(Q,I,z,x,F),he(S,!0),w=ze.get(F)),S=w[te],$e.set(F,te+1)),U.delete(S.nr.key),S.nr.used=!0,S.nr.index=I,S.nr.key=x,S.nr.type=F,U.set(x,S);else if(!S.nr.used&&(S.nr.used=!0,w)){const G=w.indexOf(S);G!==-1&&w.splice(G,1)}S.item=z,y===null?(S.position=(We=O[I-1])==null?void 0:We.accumulator,S.offset=0):(S.position=Math.floor(I)*y,S.offset=I%1*y)}return u=A,g=T,clearTimeout(v),v=setTimeout(Vt,300),{continuous:ee}},Rt=C=>{const k=s.direction==="vertical"?{scroll:"scrollTop",start:"top"}:{scroll:"scrollLeft",start:"left"},y=m.value,P=k.scroll;y[P]=C},Pt=C=>{var y;let k;s.itemSize===null?k=C>0?(y=ue.value[C-1])==null?void 0:y.accumulator:0:k=Math.floor(C)*s.itemSize,Rt(k)},Mt=()=>{const C=m.value;f.value!=="middle"&&(f.value="middle",n("user-position","middle")),C.scrollTop===0&&(f.value="top",n("user-position","top")),C.scrollTop+C.clientHeight===C.scrollHeight&&(f.value="bottom",n("user-position","bottom")),_||(_=!0,requestAnimationFrame(()=>{_=!1,X(!1,!0)}))};return o({scrollToItem:Pt,_updateVisibleItems:X}),(C,k)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"scroller",ref:m,class:e.normalizeClass(["vue-recycle-scroller",{ready:d.value,[`direction-${t.direction}`]:!0}]),onScrollPassive:Mt},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.listTag),{ref:"wrapper",style:e.normalizeStyle({[t.direction==="vertical"?"minHeight":"minWidth"]:`${e.unref(R)}px`}),class:e.normalizeClass(["vue-recycle-scroller__item-wrapper",t.listClass])},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,y=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.itemTag),e.mergeProps({key:y.nr.id,style:d.value?{transform:`translate${t.direction==="vertical"?"Y":"X"}(${y.position}px) translate${t.direction==="vertical"?"X":"Y"}(${y.offset}px)`,width:void 0,height:void 0}:null,class:["vue-recycle-scroller__item-view",[t.itemClass,{hover:!t.skipHover&&c.value===y.nr.key}]]},e.toHandlers(t.skipHover?{}:{mouseenter:()=>{c.value=y.nr.key},mouseleave:()=>{c.value=null}})),{default:e.withCtx(()=>[e.renderSlot(C.$slots,"default",{item:y.item,index:y.nr.index,active:y.nr.used})]),_:2},1040,["style","class"]))),128))]),_:3},8,["style","class"]))],34))}},Oa={name:"DtScrollerItem",inject:["vscrollData","vscrollParent","vscrollResizeObserver"],props:{item:{required:!0},watchData:{type:Boolean,default:!1},active:{type:Boolean,required:!0},index:{type:Number,default:void 0},sizeDependencies:{type:[Array,Object],default:null},tag:{type:String,default:"div"}},computed:{id(){if(this.vscrollData.simpleArray)return this.index;if(this.vscrollData.keyField in this.item)return this.item[this.vscrollData.keyField];throw new Error(`keyField '${this.vscrollData.keyField}' not found in your item. You should set a valid keyField prop on your Scroller`)},size(){return this.vscrollData.sizes[this.id]||0},finalActive(){return this.active&&this.vscrollData.active}},watch:{watchData:"updateWatchData",id(t,o){if(this.$el.$_vs_id=this.id,this.size||this.onDataUpdate(),this.$_sizeObserved){const n=this.vscrollData.sizes[o],s=this.vscrollData.sizes[t];n!=null&&n!==s&&this.applySize(n)}},finalActive(t){this.size||(t?this.vscrollParent.$_undefinedMap[this.id]||(this.vscrollParent.$_undefinedSizes++,this.vscrollParent.$_undefinedMap[this.id]=!0):this.vscrollParent.$_undefinedMap[this.id]&&(this.vscrollParent.$_undefinedSizes--,this.vscrollParent.$_undefinedMap[this.id]=!1)),this.vscrollResizeObserver?t?this.observeSize():this.unobserveSize():t&&this.$_pendingVScrollUpdate===this.id&&this.updateSize()}},created(){if(!this.$isServer&&(this.$_forceNextVScrollUpdate=null,this.updateWatchData(),!this.vscrollResizeObserver))for(const t in this.sizeDependencies)this.$watch(()=>this.sizeDependencies[t],this.onDataUpdate)},mounted(){this.finalActive&&(this.updateSize(),this.observeSize())},beforeUnmount(){this.unobserveSize()},methods:{updateSize(){this.finalActive?this.$_pendingSizeUpdate!==this.id&&(this.$_pendingSizeUpdate=this.id,this.$_forceNextVScrollUpdate=null,this.$_pendingVScrollUpdate=null,this.computeSize(this.id)):this.$_forceNextVScrollUpdate=this.id},updateWatchData(){this.watchData&&!this.vscrollResizeObserver?this.$_watchData=this.$watch("item",()=>{this.onDataUpdate()},{deep:!0}):this.$_watchData&&(this.$_watchData(),this.$_watchData=null)},onVscrollUpdate({force:t}){!this.finalActive&&t&&(this.$_pendingVScrollUpdate=this.id),(this.$_forceNextVScrollUpdate===this.id||t||!this.size)&&this.updateSize()},onDataUpdate(){this.updateSize()},computeSize(t){this.$nextTick(()=>{if(this.id===t){const o=this.$el.offsetWidth,n=this.$el.offsetHeight;this.applyWidthHeight(o,n)}this.$_pendingSizeUpdate=null})},applyWidthHeight(t,o){const n=~~(this.vscrollParent.direction==="vertical"?o:t);n&&this.size!==n&&this.applySize(n)},applySize(t){this.vscrollParent.$_undefinedMap[this.id]&&(this.vscrollParent.$_undefinedSizes--,this.vscrollParent.$_undefinedMap[this.id]=void 0),this.vscrollData.sizes[this.id]=t},observeSize(){this.vscrollResizeObserver&&(this.$_sizeObserved||(this.vscrollResizeObserver.observe(this.$el),this.$el.$_vs_id=this.id,this.$el.$_vs_onResize=this.onResize,this.$_sizeObserved=!0))},unobserveSize(){this.vscrollResizeObserver&&this.$_sizeObserved&&(this.vscrollResizeObserver.unobserve(this.$el),this.$el.$_vs_onResize=void 0,this.$_sizeObserved=!1)},onResize(t,o,n){this.id===t&&this.applyWidthHeight(o,n)}},render(){return e.h(this.tag,this.$slots.default())}},Aa={name:"DynamicScroller",components:{CoreScroller:gt,DtScrollerItem:Oa},provide(){return typeof ResizeObserver<"u"&&(this.$_resizeObserver=new ResizeObserver(t=>{requestAnimationFrame(()=>{if(Array.isArray(t)){for(const o of t)if(o.target&&o.target.$_vs_onResize){let n,s;if(o.borderBoxSize){const i=o.borderBoxSize[0];n=i.inlineSize,s=i.blockSize}else n=o.contentRect.width,s=o.contentRect.height;o.target.$_vs_onResize(o.target.$_vs_id,n,s)}}})})),{vscrollData:this.vscrollData,vscrollParent:this,vscrollResizeObserver:this.$_resizeObserver}},inheritAttrs:!1,props:{items:{type:Array,required:!0},dynamic:{type:Boolean,default:!1},keyField:{type:String,default:"id"},direction:{type:String,default:"vertical",validator:t=>["vertical","horizontal"].includes(t)},listTag:{type:String,default:"div"},itemTag:{type:String,default:"div"},minItemSize:{type:[Number,String]}},data(){return{vscrollData:{active:!0,sizes:{},keyField:this.keyField,simpleArray:!1}}},computed:{simpleArray(){return this.items.length&&typeof this.items[0]!="object"},itemsWithSize(){const t=[],{items:o,keyField:n,simpleArray:s}=this,i=this.vscrollData.sizes,a=o.length;for(let r=0;r<a;r++){const c=o[r],d=s?r:c[n];let m=i[d];typeof m>"u"&&!this.$_undefinedMap[d]&&(m=0),t.push({item:c,[n]:d,size:m})}return t}},watch:{simpleArray:{handler(t){this.vscrollData.simpleArray=t},immediate:!0},itemsWithSize(t,o){const n=this.$el.scrollTop;let s=0,i=0;const a=Math.min(t.length,o.length);for(let c=0;c<a&&!(s>=n);c++)s+=o[c].size||this.minItemSize,i+=t[c].size||this.minItemSize;const r=i-s;r!==0&&(this.$el.scrollTop+=r)}},beforeCreate(){this.$_updates=[],this.$_undefinedSizes=0,this.$_undefinedMap={}},activated(){this.vscrollData.active=!0},deactivated(){this.vscrollData.active=!1},methods:{dynamicScrollerUpdateItems(){const t=this.$refs.scroller;t&&t._updateVisibleItems(!0)},dynamicScrollerUpdateItemsFromBottom(){const t=this.$refs.scroller;t&&t._updateVisibleItems(!1,!0)},scrollToItem(t){const o=this.$refs.scroller;o&&o.scrollToItem(t)},scrollToBottom(){if(this.$_scrollingToBottom)return;this.$_scrollingToBottom=!0;const t=this.$el;this.$nextTick(()=>{t.scrollTop=t.scrollHeight+5e3;const o=()=>{t.scrollTop=t.scrollHeight+5e3,requestAnimationFrame(()=>{t.scrollTop=t.scrollHeight+5e3,this.$_undefinedSizes===0?this.$_scrollingToBottom=!1:requestAnimationFrame(o)})};requestAnimationFrame(o)})}}};function xa(t,o,n,s,i,a){const r=e.resolveComponent("dt-scroller-item"),c=e.resolveComponent("core-scroller");return e.openBlock(),e.createBlock(c,e.mergeProps({ref:"scroller",items:a.itemsWithSize,"min-item-size":n.minItemSize,direction:n.direction,"key-field":n.keyField,"list-tag":n.listTag,"item-tag":n.itemTag},t.$attrs),{default:e.withCtx(({item:d,index:m,active:f})=>[e.createVNode(r,{item:d,active:f,"size-dependencies":[d.message],"data-index":m},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default",e.normalizeProps(e.guardReactiveProps({item:d.item,index:m,active:f,itemWithSize:d})))]),_:2},1032,["item","active","size-dependencies","data-index"])]),_:3},16,["items","min-item-size","direction","key-field","list-tag","item-tag"])}const Va=l._export_sfc(Aa,[["render",xa]]),Ra={__name:"DtScroller",props:{direction:{type:String,default:"vertical",validator:t=>["vertical","horizontal"].includes(t)},dynamic:{type:Boolean,default:!1},itemSize:{type:Number,default:null},itemTag:{type:String,default:"div"},items:{type:Array,required:!0},keyField:{type:String,default:"id"},listTag:{type:String,default:"div"},minItemSize:{type:[Number,String],default:null},scrollerHeight:{type:[String,Number],default:"100%"},scrollerWidth:{type:[String,Number],default:"100%"}},emits:["user-position"],setup(t,{expose:o,emit:n}){const s=t;e.provide("emit",n);const i=e.ref(null),a=e.computed(()=>({width:typeof s.scrollerWidth=="number"?`${s.scrollerWidth}px`:s.scrollerWidth,height:typeof s.scrollerHeight=="number"?`${s.scrollerHeight}px`:s.scrollerHeight}));e.watch(s,()=>{f()},{deep:!0,immediate:!0});function r(){i.value&&i.value.scrollToBottom()}function c(u){i.value&&i.value.scrollToItem(u)}function d(){i.value&&(s.dynamic?i.value.dynamicScrollerUpdateItems():i.value._updateVisibleItems(!0))}function m(){i.value&&(s.dynamic?i.value.dynamicScrollerUpdateItemsFromBottom():i.value._updateVisibleItems(!1,!0))}function f(){s.dynamic&&!s.minItemSize&&console.error("scroller error: 'minItemSize' is required on 'dynamic' mode."),!s.dynamic&&!s.itemSize&&console.error("scroller error: 'itemSize' is required.")}return o({scrollToBottom:r,scrollToItem:c,updateItems:d,updateItemsFromBottom:m}),(u,g)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.dynamic?Va:gt),{ref_key:"scroller",ref:i,"data-qa":"dt-scroller",items:t.items,"item-size":t.itemSize,"min-item-size":t.minItemSize,direction:t.direction,"key-field":t.keyField,"list-tag":t.listTag,"item-tag":t.itemTag,style:e.normalizeStyle(a.value),tabindex:"0",onUserPosition:g[0]||(g[0]=_=>u.$emit("user-position",_))},{default:e.withCtx(({item:_,index:b,active:v})=>[e.renderSlot(u.$slots,"default",e.normalizeProps(e.guardReactiveProps({item:_,index:b,active:v})))]),_:3},40,["items","item-size","min-item-size","direction","key-field","list-tag","item-tag","style"]))}},bt=0,ne="MMMM",ke=t=>t?new Date(t):new Date,Pa=(t,o,n)=>{const s=ke(JSON.parse(JSON.stringify(t))),i=[];for(let a=0;a<7;a++){const r=E.addDays(s,a),c=E.getMonth(r)!==o;i.push({text:r.getDate(),value:r,currentMonth:!c,isFirstDayOfMonth:r.getDate()===1&&!c,selected:n?r.getDate()===n&&!c:!1})}return i},Ma=(t,o)=>!t||!o?!1:E.isEqual(t,o),za=(t,o,n)=>{const s=[],i=ke(new Date(o,t)),a=ke(new Date(o,t+1,0)),r=bt,c=E.startOfWeek(i,{weekStartsOn:r}),d=m=>{const f=Pa(m,t,n);if(s.push({days:f}),!s[s.length-1].days.some(u=>Ma(u.value,a))){const u=E.addDays(m,7);d(u)}};return d(c),s},$a=(t,o)=>{const n=[1,2,3,4,5,6,7].map(a=>new Intl.DateTimeFormat(t,{weekday:"short",timeZone:"UTC"}).format(new Date(`2017-01-0${a}T00:00:00+00:00`)).slice(0,2)),s=n.slice(0,o),i=n.slice(o+1,n.length);return[n[o]].concat(...i).concat(...s)},qa=(t,o)=>E.format(new Date(2e3,t,1),o);function Fa(t,o){const n=e.ref(E.getMonth(t.selectedDate)),s=e.ref(E.getYear(t.selectedDate)),i=e.ref(null),a=e.ref(0),r=e.ref([]),c=e.computed(()=>za(n.value,s.value,i.value)),d=e.computed(()=>(v,L)=>qa(v,L));e.watch(n,()=>{g(),o("calendar-days",c.value)},{immediate:!0}),e.watch(s,()=>{g(),o("calendar-days",c.value)},{immediate:!0});function m(v){r.value.includes(v)||r.value.push(v)}function f(){r.value[0].focus()}function u(v){switch(v.key){case"ArrowLeft":v.preventDefault(),a.value===0?(a.value=3,r.value[a.value].focus()):(a.value--,r.value[a.value].focus());break;case"ArrowRight":v.preventDefault(),a.value===3?(a.value=0,r.value[a.value].focus()):(a.value++,r.value[a.value].focus());break;case"ArrowDown":v.preventDefault(),o("focus-day");break;case"Tab":o("focus-day");break;case"Escape":o("close-datepicker");break}}function g(){const v=E.getYear(t.selectedDate),L=E.getMonth(t.selectedDate);v!==s.value||L!==n.value?i.value=null:i.value=E.getDate(t.selectedDate)}function _(v){const L=E.set(t.selectedDate,{month:n.value,year:s.value}),R=++v?E.addMonths(L,1):E.subMonths(L,1);n.value=E.getMonth(R)}function b(v){s.value=s.value+v}return{selectMonth:n,selectYear:s,formattedMonth:d,setDayRef:m,focusMonthYearPicker:f,handleKeyDown:u,changeMonth:_,changeYear:b}}const Ha={class:"d-datepicker__month-year-picker"},Ka=["aria-label"],ja=["aria-label"],Ua=["aria-label"],Ga=["aria-label"],Wa={__name:"month-year-picker",props:{prevMonthLabel:{type:String,required:!0},nextMonthLabel:{type:String,required:!0},prevYearLabel:{type:String,required:!0},nextYearLabel:{type:String,required:!0},changeToLabel:{type:String,required:!0},selectedDate:{type:Date,required:!0}},emits:["calendar-days","focus-day","close-datepicker"],setup(t,{expose:o,emit:n}){const s=t,{selectMonth:i,selectYear:a,formattedMonth:r,setDayRef:c,focusMonthYearPicker:d,handleKeyDown:m,changeMonth:f,changeYear:u}=Fa(s,n);return e.onMounted(()=>{d()}),o({focusMonthYearPicker:d}),(g,_)=>(e.openBlock(),e.createElementBlock("div",Ha,[e.createElementVNode("div",null,[e.createElementVNode("button",{id:"prevYearButton",ref:b=>{b&&e.unref(c)(b)},type:"button","aria-label":`${t.changeToLabel} ${t.prevYearLabel} ${e.unref(a)-1}`,onClick:_[0]||(_[0]=b=>e.unref(u)(-1)),onKeydown:_[1]||(_[1]=b=>e.unref(m)(b))},[e.createVNode(e.unref(h.DtIcon),{name:"chevrons-left",size:"400"})],40,Ka),e.createElementVNode("button",{id:"prevMonthButton",ref:b=>{b&&e.unref(c)(b)},type:"button","aria-label":`${t.changeToLabel} ${t.prevMonthLabel} ${e.unref(r)(e.unref(i)-1,e.unref(ne))}`,onClick:_[2]||(_[2]=b=>e.unref(f)(-1)),onKeydown:_[3]||(_[3]=b=>e.unref(m)(b))},[e.createVNode(e.unref(h.DtIcon),{name:"chevron-left",size:"300"})],40,ja)]),e.createElementVNode("div",null,[e.createElementVNode("p",null,e.toDisplayString(e.unref(r)(e.unref(i),e.unref(ne)))+" "+e.toDisplayString(e.unref(a)),1)]),e.createElementVNode("div",null,[e.createElementVNode("button",{id:"nextMonthButton",ref:b=>{b&&e.unref(c)(b)},type:"button","aria-label":`${t.changeToLabel} ${t.nextMonthLabel} ${e.unref(r)(e.unref(i)+1,e.unref(ne))}`,onClick:_[4]||(_[4]=b=>e.unref(f)(1)),onKeydown:_[5]||(_[5]=b=>e.unref(m)(b))},[e.createVNode(e.unref(h.DtIcon),{name:"chevron-right",size:"300"})],40,Ua),e.createElementVNode("button",{id:"nextYearButton",ref:b=>{b&&e.unref(c)(b)},type:"button","aria-label":`${t.changeToLabel} ${t.nextYearLabel} ${e.unref(a)+1}`,onClick:_[6]||(_[6]=b=>e.unref(u)(1)),onKeydown:_[7]||(_[7]=b=>e.unref(m)(b))},[e.createVNode(e.unref(h.DtIcon),{name:"chevrons-right",size:"300"})],40,Ga)])]))}};function Ya(t,o){const n=e.ref(null),s=e.ref(0),i=e.ref([]),a=e.computed(()=>$a(t.locale,bt));e.watch(()=>t.calendarDays,()=>{s.value=0,i.value=[],n.value=null});function r(u){return`${t.selectDayLabel} ${u.text} ${E.format(u.value,ne)} ${E.getYear(u.value)}`}function c(u,g){!i.value.includes(u)&&g&&i.value.push(u)}function d(u){switch(u.key){case"ArrowUp":u.preventDefault(),s.value-=7;try{i.value[s.value].focus()}catch{o("focus-month-year-picker")}break;case"ArrowDown":u.preventDefault(),s.value+=7;try{i.value[s.value].focus()}catch{o("focus-month-year-picker")}break;case"ArrowLeft":u.preventDefault(),s.value>0&&(s.value-=1,i.value[s.value].focus());break;case"ArrowRight":u.preventDefault(),s.value<i.value.length-1&&(s.value+=1,i.value[s.value].focus());break;case"Tab":u.preventDefault(),o("focus-month-year-picker");break;case"Escape":o("close-datepicker");break}}function m(){s.value=0,i.value[s.value].focus()}function f(u){u.currentMonth&&(n.value=u.text,o("select-date",u.value))}return{selectedDay:n,weekDays:a,dayAriaLabel:r,setDayRef:c,handleKeyDown:d,focusFirstDay:m,selectDay:f}}const Za={class:"d-datepicker__calendar"},Xa={class:"d-datepicker__week-day"},Qa=["aria-label","onClick"],Ja={__name:"calendar",props:{calendarDays:{type:Array,required:!0},locale:{type:String,required:!0},selectDayLabel:{type:String,required:!0}},emits:["select-date","focus-month-year-picker","close-datepicker"],setup(t,{expose:o,emit:n}){const s=t,{selectedDay:i,weekDays:a,dayAriaLabel:r,setDayRef:c,handleKeyDown:d,focusFirstDay:m,selectDay:f}=Ya(s,n);return o({focusFirstDay:m}),(u,g)=>(e.openBlock(),e.createElementBlock("div",Za,[e.createElementVNode("div",Xa,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(a),_=>(e.openBlock(),e.createElementBlock("div",{key:_},[e.createElementVNode("p",null,e.toDisplayString(_),1)]))),128))]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.calendarDays,(_,b)=>(e.openBlock(),e.createElementBlock("div",{key:b,class:"d-datepicker__week"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.days,(v,L)=>(e.openBlock(),e.createElementBlock("button",{key:b+L,ref_for:!0,ref:R=>{R&&e.unref(c)(R,v.currentMonth)},class:e.normalizeClass(["d-datepicker__day",{"d-datepicker__day--disabled":!v.currentMonth,"d-datepicker__day--selected":e.unref(i)?v.text===e.unref(i)&&v.currentMonth:v.selected}]),type:"button","aria-label":e.unref(r)(v),onClick:R=>e.unref(f)(v),onKeydown:g[0]||(g[0]=R=>e.unref(d)(R))},e.toDisplayString(v.text),43,Qa))),128))]))),128))]))}},ei={class:"d-datepicker"},ti={class:"d-datepicker--header"},ni={class:"d-datepicker--body"},oi={__name:"DtDatepicker",props:{prevMonthLabel:{type:String,required:!0},nextMonthLabel:{type:String,required:!0},prevYearLabel:{type:String,required:!0},nextYearLabel:{type:String,required:!0},selectDayLabel:{type:String,required:!0},changeToLabel:{type:String,required:!0},locale:{type:String,default:"en-US"},selectedDate:{type:Date,default:()=>new Date}},emits:["selected-date","close-datepicker"],setup(t){const o=e.ref([]);function n(s){o.value=s}return(s,i)=>(e.openBlock(),e.createElementBlock("div",ei,[e.createElementVNode("div",ti,[e.createVNode(Wa,{ref:"monthYearPicker","prev-month-label":t.prevMonthLabel,"next-month-label":t.nextMonthLabel,"prev-year-label":t.prevYearLabel,"next-year-label":t.nextYearLabel,"change-to-label":t.changeToLabel,"selected-date":t.selectedDate,onCalendarDays:n,onFocusDay:i[0]||(i[0]=a=>s.$refs.calendar.focusFirstDay()),onCloseDatepicker:i[1]||(i[1]=a=>s.$emit("close-datepicker"))},null,8,["prev-month-label","next-month-label","prev-year-label","next-year-label","change-to-label","selected-date"])]),e.createElementVNode("div",ni,[e.createVNode(Ja,{ref:"calendar",locale:t.locale,"calendar-days":o.value,"select-day-label":t.selectDayLabel,onSelectDate:i[2]||(i[2]=a=>s.$emit("selected-date",a)),onFocusMonthYearPicker:i[3]||(i[3]=a=>s.$refs.monthYearPicker.focusMonthYearPicker()),onCloseDatepicker:i[4]||(i[4]=a=>s.$emit("close-datepicker"))},null,8,["locale","calendar-days","select-day-label"])])]))}};function ai(t){return E.format(t,"EEEE, MMMM d, yyyy")}function ii(t){return E.format(t,"MMMM d, yyyy")}function si(t,o=!0){const n=o?"EEE, MMM d, yyyy":"MMM d, yyyy";return E.format(t,n)}function ri(t,o=!1){const n=o?"MMM d":"MMMM d";return E.format(t,n)}function li(t){return E.format(t,"MM/dd/yy")}const di={name:"DtRecipeComboboxWithPopover",components:{DtCombobox:rt,DtPopover:p.DtPopover,ComboboxLoadingList:at,ComboboxEmptyList:it},mixins:[p.SrOnlyCloseButtonMixin],props:{label:{type:String,required:!0},labelVisible:{type:Boolean,default:!0},size:{type:String,default:null,validator:t=>Object.values(st).includes(t)},description:{type:String,default:""},showList:{type:Boolean,default:null},listId:{type:String,default(){return l.getUniqueString()}},listClass:{type:[String,Array,Object],default:""},onBeginningOfList:{type:Function,default:null},onEndOfList:{type:Function,default:null},maxHeight:{type:String,default:""},maxWidth:{type:String,default:""},padding:{type:String,default:"small",validator:t=>Object.keys(W).some(o=>o===t)},contentWidth:{type:String,default:null,validator:t=>p.POPOVER_CONTENT_WIDTHS.includes(t)},openWithArrowKeys:{type:Boolean,default:!1},popoverOffset:{type:Array,default:()=>[0,4]},popoverSticky:{type:[Boolean,String],default:!1},hasSuggestionList:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},emptyList:{type:Boolean,default:!1},emptyStateMessage:{type:String,default:""},appendTo:{type:[HTMLElement,String],default:"body",validator:t=>p.POPOVER_APPEND_TO_VALUES.includes(t)||t instanceof HTMLElement},transition:{type:String,default:"fade"}},emits:["select","escape","highlight","opened"],data(){return{DROPDOWN_PADDING_CLASSES:W,isListShown:!1,isInputFocused:!1,isListFocused:!1,externalAnchor:l.getUniqueString(),hasSlotContent:l.hasSlotContent}},computed:{comboboxListeners(){return{...this.$attrs,onSelect:this.onSelect,onEscape:this.onEscape,onHighlight:this.onHighlight}}},watch:{showList:{handler:function(t){t!==null&&(this.isListShown=t)},immediate:!0},isListShown(t){t?window.addEventListener("mousedown",this.onFocusOut):window.removeEventListener("mousedown",this.onFocusOut),this.onOpened(t)}},methods:{handleDisplayList(t){!this.hasSuggestionList&&t&&this.showComboboxList(),!this.hasSuggestionList&&!t&&this.closeComboboxList()},showComboboxList(){this.showList==null&&(this.isListShown=!0)},closeComboboxList(){this.showList==null&&(this.isListShown=!1)},onSelect(t){this.loading||(this.$emit("select",t),this.hasSuggestionList||this.closeComboboxList())},onEscape(){this.$emit("escape"),this.closeComboboxList()},onHighlight(t){this.loading||this.$emit("highlight",t)},onOpened(t){this.$emit("opened",t)},onFocusIn(t){var o;this.hasSuggestionList&&t&&((o=this.$refs.input)==null?void 0:o.querySelector("input"))===t.target&&this.showComboboxList()},onFocusOut(t){var s,i,a;const o=(i=(s=this.$refs.popover)==null?void 0:s.tip)==null?void 0:i.popper,n=this.$refs.input;(a=t.composedPath())!=null&&a.some(r=>[o,n].includes(r))||this.closeComboboxList()},openOnArrowKeyPress(){this.showList!==null||this.isListShown||!this.openWithArrowKeys||this.showComboboxList()}}},ci=["id"],ui={ref:"header"},hi=["onMouseleave","onFocusout"],mi={ref:"footer"};function pi(t,o,n,s,i,a){const r=e.resolveComponent("combobox-loading-list"),c=e.resolveComponent("combobox-empty-list"),d=e.resolveComponent("dt-popover"),m=e.resolveComponent("dt-combobox");return e.openBlock(),e.createBlock(m,e.mergeProps({ref:"combobox",loading:n.loading,label:n.label,"label-visible":n.labelVisible,size:n.size,description:n.description,"empty-list":n.emptyList,"empty-state-message":n.emptyStateMessage,"show-list":i.isListShown,"on-beginning-of-list":n.onBeginningOfList,"on-end-of-list":n.onEndOfList,"list-rendered-outside":!0,"list-id":n.listId,"data-qa":"dt-combobox"},a.comboboxListeners),{input:e.withCtx(({inputProps:f})=>[e.createElementVNode("div",{id:i.externalAnchor,ref:"input",onFocusin:o[0]||(o[0]=(...u)=>a.onFocusIn&&a.onFocusIn(...u)),onKeydown:[o[1]||(o[1]=e.withKeys(u=>a.openOnArrowKeyPress(u),["up"])),o[2]||(o[2]=e.withKeys(u=>a.openOnArrowKeyPress(u),["down"]))]},[e.renderSlot(t.$slots,"input",{inputProps:f,onInput:a.handleDisplayList})],40,ci)]),list:e.withCtx(({opened:f,listProps:u,clearHighlightIndex:g})=>[e.createVNode(d,{ref:"popover",open:i.isListShown,"onUpdate:open":o[3]||(o[3]=_=>i.isListShown=_),"hide-on-click":!1,"max-height":n.maxHeight,"max-width":n.maxWidth,offset:n.popoverOffset,sticky:n.popoverSticky,placement:"bottom-start","initial-focus-element":"none",padding:"none",role:"listbox","external-anchor":i.externalAnchor,"content-width":n.contentWidth,"content-appear":!0,"content-tabindex":null,modal:!1,"auto-focus":!1,"append-to":n.appendTo,transition:n.transition,"visually-hidden-close-label":t.visuallyHiddenCloseLabel,"visually-hidden-close":t.visuallyHiddenClose,onOpened:f},e.createSlots({content:e.withCtx(()=>[e.createElementVNode("div",{ref:"listWrapper",class:e.normalizeClass([i.DROPDOWN_PADDING_CLASSES[n.padding],n.listClass]),onMouseleave:g,onFocusout:g},[n.loading?(e.openBlock(),e.createBlock(r,e.normalizeProps(e.mergeProps({key:0},u)),null,16)):n.emptyList&&n.emptyStateMessage?(e.openBlock(),e.createBlock(c,e.mergeProps({key:1},u,{message:n.emptyStateMessage}),null,16,["message"])):e.renderSlot(t.$slots,"list",{key:2,listProps:u})],42,hi)]),_:2},[i.hasSlotContent(t.$slots.header)?{name:"headerContent",fn:e.withCtx(()=>[e.createElementVNode("div",ui,[e.renderSlot(t.$slots,"header")],512)]),key:"0"}:void 0,i.hasSlotContent(t.$slots.footer)?{name:"footerContent",fn:e.withCtx(()=>[e.createElementVNode("div",mi,[e.renderSlot(t.$slots,"footer")],512)]),key:"1"}:void 0]),1032,["open","max-height","max-width","offset","sticky","external-anchor","content-width","append-to","transition","visually-hidden-close-label","visually-hidden-close","onOpened"])]),_:3},16,["loading","label","label-visible","size","description","empty-list","empty-state-message","show-list","on-beginning-of-list","on-end-of-list","list-id"])}const yt=l._export_sfc(di,[["render",pi]]),St={EXTRA_SMALL:"xs",SMALL:"sm",DEFAULT:"md"},fi={xs:"xs",sm:"xs",md:"sm"},_i={xs:1.4,sm:.4,md:.2},gi={name:"DtRecipeComboboxMultiSelect",components:{DtRecipeComboboxWithPopover:yt,DtInput:h.DtInput,DtChip:Ae,DtValidationMessages:h.DtValidationMessages},mixins:[p.SrOnlyCloseButtonMixin],props:{label:{type:String,required:!0},labelVisible:{type:Boolean,default:!0},description:{type:String,default:""},placeholder:{type:String,default:"Select one or start typing"},inputMessages:{type:Array,default:()=>[],validator:t=>h.validationMessageValidator(t)},showInputMessages:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},loadingMessage:{type:String,default:"loading..."},showList:{type:Boolean,default:null},listMaxHeight:{type:String,default:"300px"},selectedItems:{type:Array,default:function(){return[]}},maxSelected:{type:Number,default:0},maxSelectedMessage:{type:Array,default:function(){return[]}},hasSuggestionList:{type:Boolean,default:!0},size:{type:String,default:"md",validator:t=>Object.values(St).includes(t)},appendTo:{type:[HTMLElement,String],default:"body",validator:t=>p.POPOVER_APPEND_TO_VALUES.includes(t)||t instanceof HTMLElement},transition:{type:String,default:"fade"}},emits:["input","select","remove","max-selected","keyup"],data(){return{value:"",popoverOffset:[0,4],showValidationMessages:!1,initialInputPadding:{},resizeWindowObserver:null,originalInputSize:null,CHIP_SIZES:fi,hasSlotContent:l.hasSlotContent}},computed:{inputPlaceHolder(){var t;return((t=this.selectedItems)==null?void 0:t.length)>0?"":this.placeholder},chipListeners(){return{keyup:t=>{this.onChipKeyup(t),this.$emit("keyup",t)}}},inputListeners(){return{input:t=>{this.$emit("input",t),this.hasSuggestionList&&this.showComboboxList()},keyup:t=>{this.onInputKeyup(t),this.$emit("keyup",t)},click:t=>{this.hasSuggestionList&&this.showComboboxList()}}}},watch:{selectedItems:{deep:!0,handler:async function(){this.initSelectedItems()}},async label(){await this.$nextTick(),this.setChipsTopPosition()},async description(){await this.$nextTick(),this.setChipsTopPosition()},size:{async handler(){await this.$nextTick();const t=this.getInput();this.revertInputPadding(t),this.originalInputSize=t.getBoundingClientRect().height,this.setInputPadding(),this.setChipsTopPosition()}}},mounted(){this.resizeWindowObserver=new ResizeObserver(async()=>{this.setChipsTopPosition(),this.setInputPadding()}),this.resizeWindowObserver.observe(document.body),this.initSelectedItems()},beforeUnmount(){var t;(t=this.resizeWindowObserver)==null||t.unobserve(document.body)},methods:{async initSelectedItems(){await this.$nextTick(),this.setInputPadding(),this.setChipsTopPosition(),this.setInputMinWidth(),this.checkMaxSelected()},onChipRemove(t){var o;this.$emit("remove",t),(o=this.$refs.input)==null||o.focus()},onComboboxSelect(t){this.value="",this.$emit("select",t)},showComboboxList(){var t;this.showList==null&&((t=this.$refs.comboboxWithPopover)==null||t.showComboboxList())},closeComboboxList(){var t;this.showList==null&&((t=this.$refs.comboboxWithPopover)==null||t.closeComboboxList())},getChipButtons(){return this.$refs.chips&&this.$refs.chips.map(t=>t.$el.querySelector("button"))},getChips(){return this.$refs.chips&&this.$refs.chips.map(t=>t.$el)},getLastChipButton(){return this.$refs.chips&&this.getChipButtons()[this.getChipButtons().length-1]},getLastChip(){return this.$refs.chips&&this.getChips()[this.getChips().length-1]},getFirstChip(){return this.$refs.chips&&this.getChips()[0]},getInput(){var t;return(t=this.$refs.input)==null?void 0:t.$refs.input},onChipKeyup(t){var n;const o=(n=t.code)==null?void 0:n.toLowerCase();o==="arrowleft"?this.navigateBetweenChips(t.target,!0):o==="arrowright"&&(t.target.id===this.getLastChipButton().id?this.moveFromChipToInput():this.navigateBetweenChips(t.target,!1))},onInputKeyup(t){var n;const o=(n=t.code)==null?void 0:n.toLowerCase();this.selectedItems.length>0&&t.target.selectionStart===0&&(o==="backspace"||o==="arrowleft")&&this.moveFromInputToChip()},moveFromInputToChip(){var t;this.getLastChipButton().focus(),(t=this.$refs.input)==null||t.blur(),this.closeComboboxList()},moveFromChipToInput(){var t;this.getLastChipButton().blur(),(t=this.$refs.input)==null||t.focus(),this.showComboboxList()},navigateBetweenChips(t,o){var i;const n=this.getChipButtons().indexOf(t),s=o?n-1:n+1;s<0||s>=((i=this.$refs.chips)==null?void 0:i.length)||(this.getChipButtons()[n].blur(),this.getChipButtons()[s].focus(),this.closeComboboxList())},setChipsTopPosition(){const t=this.getInput();if(!t)return;const o=this.$refs.inputSlotWrapper,n=t.getBoundingClientRect().top-o.getBoundingClientRect().top,s=this.$refs.chipsWrapper;s.style.top=n-_i[this.size]+"px"},setInputPadding(){const t=this.getLastChip(),o=this.getInput(),n=this.$refs.chipsWrapper;if(!o||(this.revertInputPadding(o),this.popoverOffset=[0,4],!t))return;const s=t.offsetLeft+this.getFullWidth(t);o.style.paddingLeft=s+"px";const i=n.getBoundingClientRect().height-4,a=t.offsetTop+2;i>this.originalInputSize&&(o.style.paddingTop=`${a}px`)},revertInputPadding(t){t.style.paddingLeft="",t.style.paddingTop="",t.style.paddingBottom=""},getFullWidth(t){const o=window.getComputedStyle(t);return t.offsetWidth+parseInt(o.marginLeft)+parseInt(o.marginRight)},setInputMinWidth(){const t=this.getFirstChip(),o=this.getInput();o&&(t?o.style.minWidth=this.getFullWidth(t)+4+"px":o.style.minWidth="")},checkMaxSelected(){this.maxSelected!==0&&(this.selectedItems.length>this.maxSelected?(this.showValidationMessages=!0,this.$emit("max-selected")):this.showValidationMessages=!1)}}},bi={ref:"inputSlotWrapper",class:"d-ps-relative d-d-block"},yi={ref:"chipsWrapper",class:"d-ps-absolute d-mx2 d-pl1"},Si={ref:"header"},vi={key:1,class:"d-ta-center d-py16"},Ci={ref:"footer"};function Ei(t,o,n,s,i,a){const r=e.resolveComponent("dt-chip"),c=e.resolveComponent("dt-input"),d=e.resolveComponent("dt-validation-messages"),m=e.resolveComponent("dt-recipe-combobox-with-popover");return e.openBlock(),e.createBlock(m,{ref:"comboboxWithPopover",label:n.label,"show-list":n.showList,"max-height":n.listMaxHeight,"popover-offset":i.popoverOffset,"has-suggestion-list":n.hasSuggestionList,"visually-hidden-close-label":t.visuallyHiddenCloseLabel,"visually-hidden-close":t.visuallyHiddenClose,"content-width":"anchor","append-to":n.appendTo,transition:n.transition,onSelect:a.onComboboxSelect},e.createSlots({input:e.withCtx(({onInput:f})=>[e.createElementVNode("span",bi,[e.createElementVNode("span",yi,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.selectedItems,u=>(e.openBlock(),e.createBlock(r,e.mergeProps({ref_for:!0,ref:"chips",key:u,"label-class":["d-chip__label"],class:["d-mt4","d-mx2","d-zi-base1"],"close-button-props":{ariaLabel:"close"},size:i.CHIP_SIZES[n.size]},e.toHandlers(a.chipListeners),{onKeyup:e.withKeys(g=>a.onChipRemove(u),["backspace"]),onClose:g=>a.onChipRemove(u)}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(u),1)]),_:2},1040,["size","onKeyup","onClose"]))),128))],512),e.createVNode(c,e.mergeProps({ref:"input",modelValue:i.value,"onUpdate:modelValue":o[0]||(o[0]=u=>i.value=u),class:"d-fl-grow1","aria-label":n.label,label:n.labelVisible?n.label:"",description:n.description,placeholder:a.inputPlaceHolder,"show-messages":n.showInputMessages,messages:n.inputMessages,size:n.size},e.toHandlers(a.inputListeners),{onInput:f}),null,16,["modelValue","aria-label","label","description","placeholder","show-messages","messages","size","onInput"]),e.createVNode(d,{"validation-messages":n.maxSelectedMessage,"show-messages":i.showValidationMessages},null,8,["validation-messages","show-messages"])],512)]),list:e.withCtx(()=>[e.createElementVNode("div",{ref:"list",onMousedown:o[1]||(o[1]=e.withModifiers(()=>{},["prevent"]))},[n.loading?(e.openBlock(),e.createElementBlock("div",vi,e.toDisplayString(n.loadingMessage),1)):e.renderSlot(t.$slots,"list",{key:0})],544)]),_:2},[i.hasSlotContent(t.$slots.header)?{name:"header",fn:e.withCtx(()=>[e.createElementVNode("div",Si,[e.renderSlot(t.$slots,"header")],512)]),key:"0"}:void 0,i.hasSlotContent(t.$slots.footer)?{name:"footer",fn:e.withCtx(()=>[e.createElementVNode("div",Ci,[e.renderSlot(t.$slots,"footer")],512)]),key:"1"}:void 0]),1032,["label","show-list","max-height","popover-offset","has-suggestion-list","visually-hidden-close-label","visually-hidden-close","append-to","transition","onSelect"])}const Ii=l._export_sfc(gi,[["render",Ei]]),xe=["sm","md","lg","xl"];const ki={name:"DtRecipeCallbarButton",components:{DtButton:h.DtButton,DtTooltip:l.DtTooltip},inheritAttrs:!1,props:{id:{type:String,default(){return l.utils.getUniqueString()}},active:{type:Boolean,default:!1},danger:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},circle:{type:Boolean,default:!1},ariaLabel:{type:String,default:null,validator:t=>t||globalThis.$slots.default},buttonClass:{type:[String,Array,Object],default:""},textClass:{type:[String,Array,Object],default:""},buttonWidthSize:{type:String,default:"xl",validator:t=>xe.includes(t)},importance:{type:String,default:""}},emits:["click"],computed:{callbarButtonClass(){return[this.buttonClass,"dt-recipe-callbar-button","d-px0",{"dt-recipe-callbar-button--circle":this.circle,"dt-recipe-callbar-button--active":this.active,"dt-recipe-callbar-button--danger":this.danger,"d-btn--disabled d-bgc-transparent":this.disabled,"d-fc-primary":!this.disabled}]},callbarButtonTextClass(){return["d-fs-100 lg:d-d-none md:d-d-none sm:d-d-none",this.textClass]},buttonWidth(){switch(this.buttonWidthSize){case"sm":return"4.5rem";case"md":return"6rem";default:return"8.4rem"}},buttonImportance(){return this.importance?this.importance:this.circle?"outlined":"clear"},callbarButtonListeners(){return{...l.extractVueListeners(this.$attrs),click:t=>this.$emit("click",t)}}}};function Di(t,o,n,s,i,a){const r=e.resolveComponent("dt-button"),c=e.resolveComponent("dt-tooltip");return e.openBlock(),e.createBlock(c,{id:n.id,offset:[0,8]},{anchor:e.withCtx(()=>[e.createElementVNode("span",{class:e.normalizeClass({"d-c-not-allowed":n.disabled})},[e.createVNode(r,e.mergeProps({importance:a.buttonImportance,kind:"muted","icon-position":"top","aria-disabled":n.disabled,"aria-label":n.ariaLabel,"label-class":a.callbarButtonTextClass,width:a.buttonWidth,class:a.callbarButtonClass},t.$attrs,e.toHandlers(a.callbarButtonListeners)),{icon:e.withCtx(()=>[e.renderSlot(t.$slots,"icon")]),default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16,["importance","aria-disabled","aria-label","label-class","width","class"])],2)]),default:e.withCtx(()=>[e.renderSlot(t.$slots,"tooltip")]),_:3},8,["id"])}const vt=l._export_sfc(ki,[["render",Di]]);const wi={name:"DtRecipeCallbarButtonWithPopover",components:{DtRecipeCallbarButton:vt,DtPopover:p.DtPopover,DtButton:h.DtButton,DtIcon:h.DtIcon},inheritAttrs:!1,props:{id:{type:String,default(){return l.utils.getUniqueString()}},ariaLabel:{type:String,default:null,validator:t=>t||globalThis.$slots.default},arrowButtonLabel:{type:String,required:!0,validator:t=>!!t},placement:{type:String,default:"top"},initialFocusElement:{type:String,default:"first"},showCloseButton:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},forceShowArrow:{type:Boolean,default:!1},active:{type:Boolean,default:!1},danger:{type:Boolean,default:!1},onClick:{type:Function,default:null},buttonClass:{type:[String,Array,Object],default:""},textClass:{type:[String,Array,Object],default:""},buttonWidthSize:{type:String,default:"xl",validator:t=>xe.includes(t)},contentClass:{type:[String,Array,Object],default:""},openPopover:{type:Boolean,default:!1}},emits:["arrow-click","click","opened"],data(){return{open:!1}},computed:{showArrowButton(){return this.forceShowArrow||!this.disabled},isCompactMode(){return this.buttonWidthSize==="sm"||this.buttonWidthSize==="md"},showPopover(){return!this.openPopover||this.open?(this.syncOpenState(),!1):this.toggleOpen()}},methods:{arrowClick(t){return this.$emit("arrow-click",t),this.toggleOpen()},toggleOpen(){return this.open=!this.open},syncOpenState(){this.open=this.openPopover},buttonClick(t){this.$props.onClick?this.$emit("click",t):this.arrowClick(t)},onModalIsOpened(t){this.open=t,this.$emit("opened",t)}}},Bi={class:"d-d-flex d-ai-center"};function Ti(t,o,n,s,i,a){const r=e.resolveComponent("dt-recipe-callbar-button"),c=e.resolveComponent("dt-icon"),d=e.resolveComponent("dt-button"),m=e.resolveComponent("dt-popover");return e.openBlock(),e.createElementBlock("div",Bi,[e.createVNode(r,{"aria-label":n.ariaLabel,disabled:n.disabled,active:n.active,danger:n.danger,"button-class":n.buttonClass,"button-width-size":n.buttonWidthSize,"text-class":n.textClass,class:"dt-recipe--callbar-button-with-popover--main-button",onClick:a.buttonClick},{icon:e.withCtx(()=>[e.renderSlot(t.$slots,"icon")]),tooltip:e.withCtx(()=>[e.renderSlot(t.$slots,"tooltip")]),default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},8,["aria-label","disabled","active","danger","button-class","button-width-size","text-class","onClick"]),a.showArrowButton?(e.openBlock(),e.createBlock(m,e.mergeProps({key:0,id:n.id,modal:!1,open:i.open,placement:n.placement,"initial-focus-element":n.initialFocusElement,"show-close-button":n.showCloseButton,offset:[0,16],padding:"none",class:"dt-recipe--callbar-button-with-popover--popover-wrapper","dialog-class":["dt-recipe--callbar-button-with-popover--popover",n.contentClass],"header-class":"d-d-flex d-ai-center d-fw-normal d-px12"},t.$attrs,{"open-popover":a.showPopover,onOpened:a.onModalIsOpened}),{anchor:e.withCtx(()=>[e.createVNode(d,{circle:"",importance:"clear",size:"lg",class:e.normalizeClass(["dt-recipe--callbar-button-with-popover--arrow",{"d-mln24":!a.isCompactMode}]),width:"2rem","aria-label":n.arrowButtonLabel,active:i.open,onClick:a.arrowClick},{icon:e.withCtx(()=>[e.createVNode(c,{name:"chevron-up",class:"d-fc-black-800",size:"200"})]),_:1},8,["class","aria-label","active","onClick"])]),content:e.withCtx(()=>[e.renderSlot(t.$slots,"content")]),headerContent:e.withCtx(()=>[e.renderSlot(t.$slots,"headerContent")]),footerContent:e.withCtx(()=>[e.renderSlot(t.$slots,"footerContent")]),_:3},16,["id","open","placement","initial-focus-element","show-close-button","dialog-class","open-popover","onOpened"])):e.createCommentVNode("",!0)])}const Li=l._export_sfc(wi,[["render",Ti]]);const Ni={name:"DtRecipeContactInfo",components:{DtAvatar:p.DtAvatar,DtListItem:p.DtListItem},props:{id:{type:String,default(){return l.utils.getUniqueString()}},role:{type:String,default:""},showAvatar:{type:Boolean,default:!0},avatarSrc:{type:String,default:""},avatarSeed:{type:String,default:null},avatarFullName:{type:String,default:""},avatarIcon:{type:String,default:null},avatarSize:{type:String,default:"lg"},avatarAriaLabel:{type:String,default:""},presence:{type:String,default:null},avatarList:{type:Array,default:null}},emits:["avatar-click"],methods:{avatarClick(){this.$emit("avatar-click")}}},Oi=["aria-labelledby"],Ai={key:0,class:"dt-contact-info--avatars d-mrn4 d-d-flex d-fd-row"},xi={"data-qa":"contact-info-header"},Vi={"data-qa":"contact-info-subtitle"},Ri={"data-qa":"contact-info-bottom"},Pi={"data-qa":"contact-info-right"};function Mi(t,o,n,s,i,a){const r=e.resolveComponent("dt-avatar"),c=e.resolveComponent("dt-list-item");return e.openBlock(),e.createBlock(c,{id:n.id,role:n.role,"element-type":"div","data-qa":"contact-info",class:"dt-contact-info"},{left:e.withCtx(()=>[n.showAvatar?(e.openBlock(),e.createElementBlock("button",{key:0,class:"d-ps-relative d-bgc-transparent d-baw0 d-c-pointer","data-qa":"contact-info-left","aria-labelledby":n.avatarAriaLabel,onClick:o[0]||(o[0]=(...d)=>a.avatarClick&&a.avatarClick(...d))},[n.avatarList?(e.openBlock(),e.createElementBlock("span",Ai,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.avatarList,(d,m)=>(e.openBlock(),e.createBlock(r,{key:m,size:n.avatarSize,seed:d.seed,"full-name":d.fullName,"image-src":d.src,"icon-name":n.avatarIcon,"overlay-icon":d.icon,"overlay-text":d.text,"avatar-class":[{"d-mln24":m>0,"d-bc-brand":!!d.halo}]},null,8,["size","seed","full-name","image-src","icon-name","overlay-icon","overlay-text","avatar-class"]))),128))])):(e.openBlock(),e.createBlock(r,{key:1,size:n.avatarSize,"full-name":n.avatarFullName,"image-src":n.avatarSrc,"icon-name":n.avatarIcon,seed:n.avatarSeed,presence:n.presence},null,8,["size","full-name","image-src","icon-name","seed","presence"]))],8,Oi)):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.createElementVNode("div",xi,[e.renderSlot(t.$slots,"header",{},void 0,!0)])]),subtitle:e.withCtx(()=>[e.createElementVNode("div",Vi,[e.renderSlot(t.$slots,"subtitle",{},void 0,!0)])]),bottom:e.withCtx(()=>[e.createElementVNode("div",Ri,[e.renderSlot(t.$slots,"bottom",{},void 0,!0)])]),right:e.withCtx(()=>[e.createElementVNode("div",Pi,[e.renderSlot(t.$slots,"right",{},void 0,!0)])]),_:3},8,["id","role"])}const zi=l._export_sfc(Ni,[["render",Mi],["__scopeId","data-v-3d0f9d2e"]]),Ct=["green300","green100","red200","red100","gold100","gold200","black100","white"];const $i={name:"DtRecipeTopBannerInfo",props:{colorCode:{type:String,default:"green300",validator:function(t){return Ct.includes(t)}}},computed:{bannerInfoClass(){return[{green300:"d-bgc-success",green100:"d-bgc-success",red200:"d-bgc-critical",red100:"d-bgc-critical",gold200:"d-bgc-warning",gold100:"d-bgc-warning",black100:"d-bgc-info",white:"d-bgc-primary"}[this.colorCode]]}}},qi={class:"d-top-banner-info__left"},Fi={class:"d-top-banner-info__middle d-my4"},Hi={class:"d-top-banner-info__right d-ta-right"};function Ki(t,o,n,s,i,a){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["d-fs-100 d-d-flex d-top-banner-info d-jc-space-between d-ai-center d-fc-primary",a.bannerInfoClass]),"data-qa":"banner-info"},[e.createElementVNode("div",qi,[e.renderSlot(t.$slots,"left")]),e.createElementVNode("div",Fi,[e.renderSlot(t.$slots,"default")]),e.createElementVNode("div",Hi,[e.renderSlot(t.$slots,"right")])],2)}const ji=l._export_sfc($i,[["render",Ki]]),ae="promptmenu",ie="promptcollect",se="promptplay",re="gotoexpert",Z="goto",le="branch",de="transfer",ce="hangup",Et={[ae]:"keypad",[ie]:"dialer",[se]:"volume-2",[re]:"expert-node",[le]:"branch",[Z]:"call-merge",[de]:"transfer",[ce]:"phone-hang-up"},Ui={[ae]:"Menu",[ie]:"Collect",[se]:"Play",[re]:"Expert",[le]:"Branch",[Z]:"Go-to",[de]:"Transfer",[ce]:"Hangup"},H={PROMPT:{normal:"d-bc-blue-200",selected:"d-bc-blue-300"},LOGIC:{normal:"d-bc-purple-200",selected:"d-bc-purple-400"},TERMINAL:{normal:"d-bc-red-100",selected:"d-bc-red-200"}},Gi={[ae]:H.PROMPT,[ie]:H.PROMPT,[se]:H.PROMPT,[re]:H.LOGIC,[le]:H.LOGIC,[Z]:H.LOGIC,[de]:H.TERMINAL,[ce]:H.TERMINAL};const Wi={name:"DtRecipeIvrNode",components:{DtCard:ot,DtButton:h.DtButton,DtDropdown:ct,DtIcon:h.DtIcon},props:{nodeType:{type:String,required:!0},nodeLabel:{type:String,required:!0},isSelected:{type:Boolean,default:!1},menuButtonAriaLabel:{type:String,required:!0},dtmfKey:{type:String,default:null}},emits:["click"],data(){return{isOpen:!1}},computed:{nodeListeners(){return{click:t=>this.$emit("click",t)}},nodeIcon(){return Et[this.nodeType]},headerColor(){const{normal:t,selected:o}=Gi[this.nodeType];return this.isSelected?o:t},isGotoNode(){return this.nodeType===Z}},methods:{openMenu(){this.isOpen=!0}}},Yi={class:"d-d-flex d-ai-center"},Zi={class:"d-fs-200 d-fw-bold","data-qa":"ivr-node-label"},Xi={class:"d-w164"};function Qi(t,o,n,s,i,a){const r=e.resolveComponent("dt-icon"),c=e.resolveComponent("dt-button"),d=e.resolveComponent("dt-dropdown"),m=e.resolveComponent("dt-card");return e.openBlock(),e.createElementBlock("div",e.mergeProps({class:"d-d-flex d-fd-column d-ai-center d-c-pointer ivr_node__width"},e.toHandlers(a.nodeListeners,!0)),[n.dtmfKey?(e.openBlock(),e.createElementBlock("div",{key:0,"data-qa":"dt-top-connector-dtmf",class:e.normalizeClass(["ivr-connector d-w24 d-h24 d-bar-circle d-mbn12 d-fc-neutral-white d-fs-200",{"d-mbn16":n.isSelected}])},e.toDisplayString(n.dtmfKey),3)):e.createCommentVNode("",!0),t.$slots.connector?e.renderSlot(t.$slots,"connector",{key:1}):e.createCommentVNode("",!0),!n.dtmfKey&&!t.$slots.connector?(e.openBlock(),e.createElementBlock("div",{key:2,"data-qa":"dt-top-connector",class:e.normalizeClass(["ivr-connector d-w8 d-h8 d-bar-circle d-mbn4",{"d-mbn8":n.isSelected}])},null,2)):e.createCommentVNode("",!0),e.createVNode(m,{"content-class":"d-bt d-bc-black-300 d-px12 d-pt8 d-pb12","container-class":["d-w100p",{"d-ba d-bar8 d-baw4":n.isSelected},a.headerColor],"header-class":["d-mtn1","d-bt","d-btw4","d-p0",a.headerColor,{"d-btr4":!n.isSelected}]},{header:e.withCtx(()=>[e.createElementVNode("div",Yi,[e.createVNode(c,{"aria-label":n.nodeType,importance:"clear",kind:"muted","data-qa":"dt-ivr-node-icon"},{icon:e.withCtx(()=>[e.createVNode(r,{name:a.nodeIcon,size:"200",class:e.normalizeClass(["",{ivr_node__goto_icon:a.isGotoNode}])},null,8,["name","class"])]),_:1},8,["aria-label"]),e.createElementVNode("p",Zi,e.toDisplayString(n.nodeLabel),1)]),e.createVNode(d,{open:i.isOpen,"onUpdate:open":o[0]||(o[0]=f=>i.isOpen=f),placement:"bottom"},{anchor:e.withCtx(()=>[e.createVNode(c,{importance:"clear",kind:"muted","aria-label":n.menuButtonAriaLabel,onClick:e.withModifiers(a.openMenu,["stop","prevent"])},{icon:e.withCtx(()=>[e.createVNode(r,{name:"more-vertical",size:"200"})]),_:1},8,["aria-label","onClick"])]),list:e.withCtx(({close:f})=>[e.createElementVNode("div",Xi,[e.renderSlot(t.$slots,"menuItems",{close:f})])]),_:3},8,["open"])]),content:e.withCtx(()=>[e.renderSlot(t.$slots,"content")]),_:3},8,["container-class","header-class"])],16)}const Ji=l._export_sfc(Wi,[["render",Qi]]);const es={name:"DtRecipeGroupedChip",components:{DtChip:Ae},data(){return{hasSlotContent:l.hasSlotContent}}},ts={"data-qa":"grouped-chip",class:"d-d-inline-flex d-ws-nowrap d-bgc-unset"},ns={key:0,"data-qa":"left-grouped-chip-icon"},os={key:0,"data-qa":"left-grouped-chip-content"},as={key:0,"data-qa":"right-grouped-chip-icon"},is={key:0,"data-qa":"right-grouped-chip-content"};function ss(t,o,n,s,i,a){const r=e.resolveComponent("dt-chip");return e.openBlock(),e.createElementBlock("div",ts,[e.createVNode(r,{"hide-close":!0,interactive:!1,"content-class":"d-fs100",size:"xs","grouped-chip":!0,class:"d-blr-pill d-bgc-moderate-opaque d-wmx84 dt-chip-content"},e.createSlots({default:e.withCtx(()=>[i.hasSlotContent(t.$slots.leftContent)?(e.openBlock(),e.createElementBlock("div",os,[e.renderSlot(t.$slots,"leftContent")])):e.createCommentVNode("",!0)]),_:2},[i.hasSlotContent(t.$slots.leftIcon)?{name:"icon",fn:e.withCtx(()=>[i.hasSlotContent(t.$slots.leftIcon)?(e.openBlock(),e.createElementBlock("div",ns,[e.renderSlot(t.$slots,"leftIcon")])):e.createCommentVNode("",!0)]),key:"0"}:void 0]),1024),e.createVNode(r,{"hide-close":!0,interactive:!1,"content-class":"d-fs100",size:"xs","grouped-chip":!0,class:"d-brr-pill d-bgc-purple-200 d-wmx84 dt-chip-content"},{icon:e.withCtx(()=>[i.hasSlotContent(t.$slots.rightIcon)?(e.openBlock(),e.createElementBlock("div",as,[e.renderSlot(t.$slots,"rightIcon")])):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[i.hasSlotContent(t.$slots.rightContent)?(e.openBlock(),e.createElementBlock("div",is,[e.renderSlot(t.$slots,"rightContent")])):e.createCommentVNode("",!0)]),_:3})])}const rs=l._export_sfc(es,[["render",ss]]);const ls={name:"DtRecipeSettingsMenuButton",components:{DtButton:h.DtButton,DtIcon:h.DtIcon},inheritAttrs:!1,props:{updateAvailable:{type:Boolean,default:!1},ariaLabel:{type:String,required:!0}}};function ds(t,o,n,s,i,a){const r=e.resolveComponent("dt-icon"),c=e.resolveComponent("dt-button");return n.updateAvailable?(e.openBlock(),e.createBlock(c,e.mergeProps({key:0,importance:"outlined",size:"xs","icon-position":"right",class:"settings-menu-button-update","aria-label":n.ariaLabel},t.$attrs),{icon:e.withCtx(()=>[e.createVNode(r,{name:"more-vertical",size:"300"})]),default:e.withCtx(()=>[e.renderSlot(t.$slots,"default",{},void 0,!0)]),_:3},16,["aria-label"])):(e.openBlock(),e.createBlock(c,e.mergeProps({key:1,importance:"clear",kind:"inverted",class:"settings-menu-button","aria-label":n.ariaLabel},t.$attrs),{icon:e.withCtx(()=>[e.createVNode(r,{name:"more-vertical",size:"300"})]),_:1},16,["aria-label"]))}const cs=l._export_sfc(ls,[["render",ds],["__scopeId","data-v-b0dfa8b3"]]),B={INBOX:"inbox",CONTACTS:"contacts",CHANNELS:"channels",THREADS:"threads",LOCKED_CHANNEL:"locked channel",CONTACT_CENTER:"contact center",QUICK_START:"quick start",COACHING_GROUP:"coaching group",COACHING_CENTER:"coaching center",DIALBOT:"dialbot",ASSIGNED:"assigned",DIGITAL:"digital"},It={[B.INBOX]:"inbox",[B.CONTACTS]:"contacts",[B.CHANNELS]:"hash",[B.THREADS]:"thread",[B.LOCKED_CHANNEL]:"lock",[B.QUICK_START]:"sparkle",[B.COACHING_GROUP]:"users",[B.COACHING_CENTER]:"external-link","locked channel unread":"lock-filled","channel unread":"hash-bold",[B.ASSIGNED]:"at-sign",[B.DIGITAL]:"message"},Y={"magenta-200":"d-bgc-magenta-200","green-200":"d-bgc-green-200","gold-300":"d-bgc-gold-300","purple-600":"d-bgc-purple-600","magenta-300":"d-bgc-magenta-300","purple-300":"d-bgc-purple-300","green-500":"d-bgc-green-500","purple-100":"d-bgc-purple-100","magenta-400":"d-bgc-magenta-400","magenta-100":"d-bgc-magenta-100","black-300":"d-bgc-black-300"},kt="If type is contact center, color must be oneof the following:"+Object.keys(Y).join(", "),Dt=["300","200"],us={name:"DtRecipeLeftbarGeneralRowIcon",components:{DtIcon:h.DtIcon,IconDialbot:$t},props:{type:{type:String,default:null},color:{type:String,default:null},iconSize:{type:String,default:"300"}},computed:{isIconType(){return![B.DIALBOT,B.CONTACT_CENTER].includes(this.type)},isContactCenterType(){return this.type===B.CONTACT_CENTER},isDialbotType(){return this.type===B.DIALBOT},getIconName(){return It[this.type]},contactCenterIconClasses(){return["dt-leftbar-row__icon-cc",Y[this.color]]},dialbotClasses(){return["d-w24","d-h24","d-d-flex","d-ai-center","d-jc-center"]}}};function hs(t,o,n,s,i,a){const r=e.resolveComponent("dt-icon"),c=e.resolveComponent("icon-dialbot");return a.isIconType?(e.openBlock(),e.createBlock(r,{key:0,name:a.getIconName,size:n.iconSize},null,8,["name","size"])):a.isContactCenterType?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(a.contactCenterIconClasses)},null,2)):a.isDialbotType?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(a.dialbotClasses),"data-qa":"general-row-dialbot"},[e.createVNode(c,{class:"d-svg--size24"})],2)):e.createCommentVNode("",!0)}const ms=l._export_sfc(us,[["render",hs]]);const ps={name:"DtRecipeGeneralRow",components:{DtEmojiTextWrapper:Te.DtEmojiTextWrapper,DtBadge:Le,DtIcon:h.DtIcon,DtButton:h.DtButton,DtTooltip:l.DtTooltip,DtRecipeLeftbarGeneralRowIcon:ms},inheritAttrs:!1,props:{type:{type:String,default:"inbox",validator:t=>Object.values(B).includes(t)},ariaLabel:{type:String,default:""},description:{type:String,required:!0},color:{type:String,default:null,validator:t=>Object.keys(Y).includes(t)},hasUnreads:{type:Boolean,default:!1},unreadCount:{type:String,default:null},unreadCountTooltip:{type:String,default:""},selected:{type:Boolean,default:!1},muted:{type:Boolean,default:!1},activeVoiceChat:{type:Boolean,default:!1},dndText:{type:String,default:""},dndTextTooltip:{type:String,default:""},hasCallButton:{type:Boolean,default:!1},callButtonTooltip:{type:String,default:""},isTyping:{type:Boolean,default:!1},iconSize:{type:String,default:"300",validator:t=>Dt.includes(t)}},emits:["call"],data(){return{actionFocused:!1,labelWidth:"100%"}},computed:{leftbarGeneralRowClasses(){return["dt-leftbar-row",{"dt-leftbar-row--no-action":!this.hasCallButton,"dt-leftbar-row--has-unread":this.hasUnreads,"dt-leftbar-row--unread-count":this.showUnreadCount,"dt-leftbar-row--selected":this.selected,"dt-leftbar-row--muted":this.muted,"dt-leftbar-row--action-focused":this.actionFocused}]},getIcon(){switch(this.type){case B.CHANNELS:if(this.hasUnreads)return"channel unread";break;case B.LOCKED_CHANNEL:if(this.hasUnreads)return"locked channel unread";break}return this.type},generalRowListeners(){return l.extractVueListeners(this.$attrs)},getAriaLabel(){return this.ariaLabel?this.ariaLabel:l.safeConcatStrings([this.description,this.unreadCountTooltip,this.dndTextTooltip])},hasActions(){return this.dndText||this.activeVoiceChat||this.showUnreadCount||this.hasCallButton},showUnreadCount(){return!!this.unreadCount&&this.hasUnreads}},watch:{$props:{immediate:!0,deep:!0,async handler(){this.validateProps(),await this.$nextTick(),this.adjustLabelWidth()}}},mounted(){this.resizeObserver=new ResizeObserver(this.adjustLabelWidth),this.resizeObserver.observe(this.$el),this.adjustLabelWidth()},beforeUnmount:function(){this.resizeObserver.disconnect()},methods:{validateProps(){this.type===B.CONTACT_CENTER&&!Object.keys(Y).includes(this.color)&&console.error(kt)},adjustLabelWidth(){var i,a,r,c,d,m;const t=((a=(i=this.$el)==null?void 0:i.querySelector(".dt-leftbar-row__primary"))==null?void 0:a.clientWidth)||0,o=((c=(r=this.$el)==null?void 0:r.querySelector(".dt-leftbar-row__omega"))==null?void 0:c.clientWidth)||0,n=((m=(d=this.$el)==null?void 0:d.querySelector(".dt-leftbar-row__alpha"))==null?void 0:m.clientWidth)||0,s=16;this.labelWidth=t-(o+n+s)+"px"}}},Ve=t=>(e.pushScopeId("data-v-49d75ce6"),t=t(),e.popScopeId(),t),fs=["data-qa","aria-label","title","href"],_s={class:"dt-leftbar-row__alpha"},gs={key:0,class:"dt-leftbar-row__is-typing"},bs=Ve(()=>e.createElementVNode("span",null,null,-1)),ys=Ve(()=>e.createElementVNode("span",null,null,-1)),Ss=Ve(()=>e.createElementVNode("span",null,null,-1)),vs=[bs,ys,Ss],Cs={key:0,class:"dt-leftbar-row__omega"},Es={key:1,class:"dt-leftbar-row__active-voice"},Is={key:3,class:"dt-leftbar-row__action","data-qa":"dt-leftbar-row-action"};function ks(t,o,n,s,i,a){const r=e.resolveComponent("dt-recipe-leftbar-general-row-icon"),c=e.resolveComponent("dt-emoji-text-wrapper"),d=e.resolveComponent("dt-tooltip"),m=e.resolveComponent("dt-icon"),f=e.resolveComponent("dt-badge"),u=e.resolveComponent("dt-button");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(a.leftbarGeneralRowClasses),"data-qa":"dt-leftbar-row"},[e.createElementVNode("a",e.mergeProps({class:"dt-leftbar-row__primary","data-qa":"data-qa"in t.$attrs?t.$attrs["data-qa"]:"dt-leftbar-row-link","aria-label":a.getAriaLabel,title:n.description,href:"href"in t.$attrs?t.$attrs.href:"javascript:void(0)"},t.$attrs,e.toHandlers(a.generalRowListeners,!0)),[e.createElementVNode("div",_s,[n.isTyping?(e.openBlock(),e.createElementBlock("div",gs,vs)):e.renderSlot(t.$slots,"left",{key:1},()=>[e.createVNode(r,{type:a.getIcon,color:n.color,"icon-size":n.iconSize,"data-qa":"dt-leftbar-row-icon"},null,8,["type","color","icon-size"])],!0)]),e.createElementVNode("div",{class:"dt-leftbar-row__label",style:e.normalizeStyle(`flex-basis: ${i.labelWidth}`)},[e.renderSlot(t.$slots,"label",{},()=>[e.createVNode(c,{class:"dt-leftbar-row__description","data-qa":"dt-leftbar-row-description",size:"200"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.description),1)]),_:1})],!0)],4)],16,fs),a.hasActions?(e.openBlock(),e.createElementBlock("div",Cs,[n.dndText?(e.openBlock(),e.createBlock(d,{key:0,placement:"top",message:n.dndTextTooltip},{anchor:e.withCtx(()=>[e.createElementVNode("div",{ref:"dt-leftbar-row-dnd",class:"dt-leftbar-row__dnd","data-qa":"dt-leftbar-row-dnd"},e.toDisplayString(n.dndText),513)]),_:1},8,["message"])):e.createCommentVNode("",!0),n.activeVoiceChat?(e.openBlock(),e.createElementBlock("div",Es,[e.createVNode(m,{size:"300",name:"waveform"})])):a.showUnreadCount?(e.openBlock(),e.createBlock(d,{key:2,message:n.unreadCountTooltip,placement:"top"},{anchor:e.withCtx(()=>[e.createVNode(f,{kind:"count",type:"bulletin","data-qa":"dt-leftbar-row-unread-badge",class:"dt-leftbar-row__unread-badge"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.unreadCount),1)]),_:1})]),_:1},8,["message"])):e.createCommentVNode("",!0),n.hasCallButton?(e.openBlock(),e.createElementBlock("div",Is,[e.createVNode(d,{message:n.callButtonTooltip,placement:"top"},{anchor:e.withCtx(()=>[e.createVNode(u,{class:"dt-leftbar-row__action-button","data-qa":"dt-leftbar-row-action-call-button",circle:!0,size:"xs",kind:"inverted","aria-label":n.callButtonTooltip,onFocus:o[0]||(o[0]=g=>i.actionFocused=!0),onBlur:o[1]||(o[1]=g=>i.actionFocused=!1),onClick:o[2]||(o[2]=e.withModifiers(g=>t.$emit("call",g),["stop"]))},{icon:e.withCtx(()=>[e.createVNode(m,{name:"phone",size:"200"})]),_:1},8,["aria-label"])]),_:1},8,["message"])])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],2)}const Re=l._export_sfc(ps,[["render",ks],["__scopeId","data-v-49d75ce6"]]),Ds={name:"DtRecipeGroupRow",components:{DtIcon:h.DtIcon,DtRecipeGeneralRow:Re},inheritAttrs:!1,props:{groupCountText:{type:String,default:""},names:{type:String,required:!0},unreadCount:{type:String,default:null},unreadCountTooltip:{type:String,default:null},hasUnreads:{type:Boolean,default:!1},selected:{type:Boolean,default:!1},isTyping:{type:Boolean,default:!1}},emits:[],computed:{ariaLabel(){return l.safeConcatStrings([this.groupCountText,this.names])},contactRowListeners(){return l.extractVueListeners(this.$attrs)}}};function ws(t,o,n,s,i,a){const r=e.resolveComponent("dt-icon"),c=e.resolveComponent("dt-recipe-general-row");return e.openBlock(),e.createBlock(c,e.mergeProps({description:n.names,"aria-label":a.ariaLabel,"unread-count":n.unreadCount,"has-unreads":n.hasUnreads,"unread-count-tooltip":n.unreadCountTooltip,selected:n.selected,"is-typing":n.isTyping},t.$attrs,e.toHandlers(a.contactRowListeners)),{left:e.withCtx(()=>[e.createVNode(r,{name:"users",size:"300"})]),_:1},16,["description","aria-label","unread-count","has-unreads","unread-count-tooltip","selected","is-typing"])}const Bs=l._export_sfc(Ds,[["render",ws]]),Ts={name:"DtRecipeContactRow",components:{DtAvatar:p.DtAvatar,DtRecipeGeneralRow:Re,DtEmojiTextWrapper:Te.DtEmojiTextWrapper},inheritAttrs:!1,props:{avatarSrc:{type:String,default:""},avatarAlt:{type:String,default:""},avatarPresence:{type:String,default:null},avatarSeed:{type:String,default:null},presenceText:{type:String,default:""},name:{type:String,required:!0},userStatus:{type:String,default:""},muted:{type:Boolean,default:!1},unreadCount:{type:String,default:null},hasUnreads:{type:Boolean,default:!1},selected:{type:Boolean,default:!1},noInitials:{type:Boolean,default:!1},isTyping:{type:Boolean,default:!1},hasCallButton:{type:Boolean,default:!0},callButtonTooltip:{type:String,default:""},unreadCountTooltip:{type:String,default:""}},emits:["call"],computed:{presenceColorClass(){switch(this.avatarPresence){case"active":return"d-fc-success";case"busy":return"d-fc-critical";case"away":return"d-fc-warning";default:return}},contactRowListeners(){return l.extractVueListeners(this.$attrs)},contactDescription(){return l.safeConcatStrings([this.name,this.presenceText,this.userStatus])},iconName(){return this.noInitials?"user":null}}},Ls={class:"dt-leftbar-row__status"};function Ns(t,o,n,s,i,a){const r=e.resolveComponent("dt-avatar"),c=e.resolveComponent("dt-emoji-text-wrapper"),d=e.resolveComponent("dt-recipe-general-row");return e.openBlock(),e.createBlock(d,e.mergeProps({"unread-count":n.unreadCount,description:a.contactDescription,"has-unreads":n.hasUnreads,selected:n.selected,"has-call-button":n.hasCallButton,muted:n.muted,"is-typing":n.isTyping,"call-button-tooltip":n.callButtonTooltip,"unread-count-tooltip":n.unreadCountTooltip},t.$attrs,e.toHandlers(a.contactRowListeners),{onCall:o[0]||(o[0]=m=>t.$emit("call",m))}),{left:e.withCtx(()=>[e.createVNode(r,{"full-name":n.name,"image-src":n.avatarSrc,"image-alt":n.avatarAlt,"icon-name":a.iconName,"icon-size":"200",size:"sm",seed:n.avatarSeed,presence:n.avatarPresence},null,8,["full-name","image-src","image-alt","icon-name","seed","presence"])]),label:e.withCtx(()=>[e.createVNode(c,{class:"dt-leftbar-row__description","data-qa":"dt-leftbar-row-description",size:"200"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.name),1)]),_:1}),e.createElementVNode("div",Ls,[n.presenceText?(e.openBlock(),e.createElementBlock("span",{key:0,"data-qa":"dt-leftbar-row-presence-text",class:e.normalizeClass(["dt-leftbar-row__meta-context",a.presenceColorClass])},e.toDisplayString(n.presenceText),3)):e.createCommentVNode("",!0),n.userStatus?(e.openBlock(),e.createBlock(c,{key:1,size:"100","element-type":"span","data-qa":"dt-leftbar-row-user-status",class:"dt-leftbar-row__meta-custom"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.userStatus),1)]),_:1})):e.createCommentVNode("",!0)])]),_:1},16,["unread-count","description","has-unreads","selected","has-call-button","muted","is-typing","call-button-tooltip","unread-count-tooltip"])}const Os=l._export_sfc(Ts,[["render",Ns]]),wt=["up","down"],Bt=["mentions","messages"];const As={name:"DtRecipeUnreadPill",components:{DtIcon:h.DtIcon},props:{kind:{type:String,required:!0,validator:t=>Bt.includes(t)},direction:{type:String,required:!0,validator:t=>wt.includes(t)}},emits:["click"],computed:{unreadChipListeners(){return{click:t=>this.$emit("click",t)}}}},xs={"data-qa":"dt-leftbar-unread-pill__label"};function Vs(t,o,n,s,i,a){const r=e.resolveComponent("dt-icon");return e.openBlock(),e.createElementBlock("button",e.mergeProps({class:["dt-leftbar-unread-pill",`dt-leftbar-unread-pill--${n.kind}`],type:"button","data-qa":"dt-leftbar-unread-pill"},e.toHandlers(a.unreadChipListeners,!0)),[e.createVNode(r,{name:`arrow-${n.direction}`,size:"300"},null,8,["name"]),e.createElementVNode("span",xs,[e.renderSlot(t.$slots,"default")])],16)}const Rs=l._export_sfc(As,[["render",Vs]]),me={NORMAL:"",SEARCHED:"d-bgc-warning-subtle",ERROR:"d-bgc-critical-subtle"},pe="NORMAL";const Ps={name:"DtRecipeFeedItemRow",components:{DtAvatar:p.DtAvatar,DtLazyShow:l.DtLazyShow,DtListItem:p.DtListItem},inheritAttrs:!1,props:{avatarSeed:{type:String,default:null},showHeader:{type:Boolean,default:!1},avatarImageUrl:{type:String,default:""},displayName:{type:String,default:""},time:{type:String,default:""},shortTime:{type:String,default:""},isActive:{type:Boolean,default:!1},state:{type:String,default:pe,validator:t=>Object.keys(me).includes(t)}},emits:["hover","focus"],data(){return{faded:!1}},computed:{feedListeners(){return{mouseenter:()=>this.setHover(!0),mouseleave:()=>this.setHover(!1),focusin:()=>this.setFocus(!0),focusout:()=>this.setFocus(!1)}},listItemClasses(){return["d-w100p","d-box-border","d-ps-relative","d-px8",{"d-bgc-secondary-opaque":this.isActive&&this.state===pe},me[this.state],"dt-feed-item-row","d-t","d-tp-bgc"]}},methods:{setFocus(t){this.$emit("focus",t)},setHover(t){this.$emit("hover",t)},fade(){this.state===pe||this.faded===!0||(this.$refs.FeedItemRef.$el.classList.remove(me[this.state]),this.faded=!0)}}},Ms={key:0,"data-qa":"dt-feed-item-row--header",class:"d-d-flex d-ai-center"},zs={class:"d-fs-200 d-lh-300 d-fw-bold d-to-ellipsis d-of-hidden d-ws-nowrap"},$s={class:"d-fs-100 d-mt2 d-lh-300 d-fc-tertiary d-fw-normal d-ml4 d-fl-shrink0"},qs={class:"content-text-wrapper-class","data-qa":"dt-feed-item-row--content"},Fs={class:"d-d-flex d-fw-wrap","data-qa":"dt-feed-item-row--reactions"},Hs={"data-qa":"dt-feed-item-row--menu",class:"d-ps-absolute d-tn24 d-r12"};function Ks(t,o,n,s,i,a){const r=e.resolveComponent("dt-avatar"),c=e.resolveComponent("dt-lazy-show"),d=e.resolveComponent("dt-list-item");return e.openBlock(),e.createBlock(d,e.mergeProps({ref:"FeedItemRef","navigation-type":"none"},t.$attrs,{class:a.listItemClasses,"data-qa":"dt-feed-item-row"},e.toHandlers(a.feedListeners)),{left:e.withCtx(()=>[n.showHeader?e.renderSlot(t.$slots,"avatar",{key:0},()=>[e.createVNode(r,{"full-name":n.displayName,"image-src":n.avatarImageUrl,seed:n.avatarSeed},null,8,["full-name","image-src","seed"])],!0):e.createCommentVNode("",!0),n.showHeader?e.createCommentVNode("",!0):e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:1,class:"dt-feed-item-row__left-time","data-qa":"dt-feed-item-row--left-time"},e.toDisplayString(n.shortTime),513)),[[e.vShow,n.isActive]])]),bottom:e.withCtx(()=>[e.createElementVNode("div",Fs,[e.renderSlot(t.$slots,"reactions",{},void 0,!0)]),e.renderSlot(t.$slots,"threading",{},void 0,!0)]),right:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",Hs,[e.createVNode(c,{appear:!0,transition:"fade",show:n.isActive},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"menu",{},void 0,!0)]),_:3},8,["show"])],512),[[e.vShow,n.isActive]])]),default:e.withCtx(()=>[e.createElementVNode("article",null,[n.showHeader?(e.openBlock(),e.createElementBlock("div",Ms,[e.createElementVNode("p",zs,e.toDisplayString(n.displayName),1),e.createElementVNode("time",$s,e.toDisplayString(n.time),1)])):e.createCommentVNode("",!0),e.createElementVNode("span",qs,[e.renderSlot(t.$slots,"default",{},void 0,!0)])])]),_:3},16,["class"])}const js=l._export_sfc(Ps,[["render",Ks],["__scopeId","data-v-1219f3b4"]]),De={default:"dt-recipe-feed-item-pill__border-default",ai:"dt-recipe-feed-item-pill__border-ai",critical:"dt-recipe-feed-item-pill__border-critical"};const Us={name:"DtRecipeFeedItemPill",components:{DtItemLayout:p.DtItemLayout,DtIcon:h.DtIcon,DtCollapsible:lt},props:{iconName:{type:String,default:()=>""},title:{type:String,default:()=>""},wrapperClass:{type:[String,Array,Object],default:""},buttonClass:{type:[String,Array,Object],default:""},ariaLabel:{type:String,required:!0},toggleable:{type:Boolean,default:()=>!0},defaultToggled:{type:Boolean,default:()=>!1},borderColor:{type:String,default:"default",validator:t=>Object.keys(De).includes(t)}},data(){return{hover:!1,expanded:this.defaultToggled}},computed:{computedIcon(){return this.toggleable&&this.hover?this.expanded?"chevron-down":"chevron-right":this.iconName},toggleableClass(){return this.toggleable?"d-c-pointer":""},borderClass(){return De[this.borderColor]}},methods:{onClick(){this.toggleable&&(this.expanded=!this.expanded)}}},Gs={class:"dt-recipe-feed-item-pill__wrapper"},Ws=["aria-label"],Ys={class:"dt-recipe-feed-item-pill__title"},Zs={class:"dt-recipe-feed-item-pill__content"};function Xs(t,o,n,s,i,a){const r=e.resolveComponent("dt-icon"),c=e.resolveComponent("dt-item-layout"),d=e.resolveComponent("dt-collapsible");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["dt-recipe-feed-item-pill__border",a.borderClass,n.wrapperClass])},[e.createElementVNode("div",Gs,[e.createVNode(d,{open:i.expanded},{anchor:e.withCtx(()=>[e.createElementVNode("button",{"data-qa":"dt-recipe-feed-item-pill","aria-label":n.ariaLabel,class:e.normalizeClass(["dt-recipe-feed-item-pill__button",a.toggleableClass,n.buttonClass]),onFocusin:o[0]||(o[0]=m=>i.hover=!0),onFocusout:o[1]||(o[1]=m=>i.hover=!1),onMouseenter:o[2]||(o[2]=m=>i.hover=!0),onMouseleave:o[3]||(o[3]=m=>i.hover=!1),onClick:o[4]||(o[4]=(...m)=>a.onClick&&a.onClick(...m))},[e.createVNode(c,{class:"dt-recipe-feed-item-pill__layout"},{left:e.withCtx(()=>[e.createVNode(r,{"data-qa":"dt-recipe-feed-item-pill__icon",size:"300",class:"dt-recipe-feed-item-pill__icon",name:a.computedIcon},null,8,["name"])]),subtitle:e.withCtx(()=>[e.renderSlot(t.$slots,"subtitle",{},void 0,!0)]),bottom:e.withCtx(()=>[e.renderSlot(t.$slots,"bottom",{},void 0,!0)]),right:e.withCtx(()=>[e.renderSlot(t.$slots,"right",{},void 0,!0)]),default:e.withCtx(()=>[e.renderSlot(t.$slots,"title",{},()=>[e.createElementVNode("span",Ys,e.toDisplayString(n.title),1)],!0)]),_:3})],42,Ws)]),content:e.withCtx(()=>[e.createElementVNode("div",Zs,[e.renderSlot(t.$slots,"content",{},void 0,!0)])]),_:3},8,["open"])])],2)}const Qs=l._export_sfc(Us,[["render",Xs],["__scopeId","data-v-2e98d8f9"]]),Js={name:"DtRecipeTimePill",props:{dateTimeDisplay:{type:String,required:!0},dateTime:{type:String,required:!0,validator:t=>{const o=new Date(t);return o instanceof Date&&!isNaN(o)}}}},er=["dateTime"];function tr(t,o,n,s,i,a){return e.openBlock(),e.createElementBlock("time",{"data-qa":"dt-time-pill",dateTime:n.dateTime,class:"d-ba d-bar-pill d-baw1 d-bc-black-300 d-px16 d-py4 d-fs-100"},e.toDisplayString(n.dateTimeDisplay),9,er)}const nr=l._export_sfc(Js,[["render",tr]]),Tt=["emojiUnicodeOrShortname","isSelected","ariaLabel","tooltip","num"];const or={name:"DtRecipeEmojiRow",components:{DtTooltip:l.DtTooltip,DtButton:h.DtButton,DtEmoji:h.DtEmoji,DtEmojiTextWrapper:Te.DtEmojiTextWrapper},mixins:[],props:{reactions:{type:Array,default:()=>[],validator:t=>{for(const o of t)if(!Tt.every(s=>o[s]!==void 0))return!1;return!0}}},emits:["emoji-clicked","emoji-hovered"],methods:{emojiClicked(t){this.$emit("emoji-clicked",t.emojiUnicodeOrShortname)},emojiHovered(t,o){this.$emit("emoji-hovered",{reaction:t.emojiUnicodeOrShortname,state:o})}}},ar={class:"dt-emoji-row"},ir=["reaction"],sr={"aria-hidden":"true"},rr={class:"d-mr4 d-d-inline-flex"},lr={class:"d-fw-bold d-fs-100"};function dr(t,o,n,s,i,a){const r=e.resolveComponent("dt-emoji-text-wrapper"),c=e.resolveComponent("dt-emoji"),d=e.resolveComponent("dt-button"),m=e.resolveComponent("dt-tooltip");return e.openBlock(),e.createElementBlock("span",ar,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.reactions,f=>(e.openBlock(),e.createElementBlock("span",{key:f.unicodeOutput,reaction:f,class:"d-mr4 d-mb4"},[e.createVNode(m,{class:"d-d-inline-block","content-class":"d-wmx464",onShown:u=>a.emojiHovered(f,u)},{anchor:e.withCtx(({attrs:u})=>[e.createVNode(d,{importance:"clear",size:"sm","data-qa":"feed-item-reaction-button",class:e.normalizeClass(["dt-emoji-row__reaction",f.isSelected?"dt-emoji-row__reaction--selected":""]),"aria-label":f.ariaLabel,attrs:u,onClick:g=>a.emojiClicked(f)},{default:e.withCtx(()=>[e.createElementVNode("span",rr,[e.createVNode(c,{size:"200",code:f.emojiUnicodeOrShortname},null,8,["code"])]),e.createElementVNode("span",lr,e.toDisplayString(f.num),1)]),_:2},1032,["class","aria-label","attrs","onClick"])]),default:e.withCtx(()=>[e.createElementVNode("span",sr,[e.createVNode(r,{size:"200"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(f.tooltip),1)]),_:2},1024)])]),_:2},1032,["onShown"])],8,ir))),128))])}const cr=l._export_sfc(or,[["render",dr]]);const ur={name:"DtProgressBar",props:{progressbarAriaLabel:{type:String,required:!0},progress:{type:Number,default:20}},data:()=>({circleCircumference:50}),computed:{cssVars(){return{"--stroke-dashoffset":this.circleCircumference-this.circleCircumference*this.progress/100,"--stroke-dasharray":this.circleCircumference}}},mounted(){this.circleCircumference=this.$refs.progressbarCircle.getTotalLength()}},hr=["aria-label","aria-valuenow"],mr={ref:"progressbarCircle",r:"8",cx:"12",cy:"12",class:"progress-bar__circle"},pr=e.createElementVNode("circle",{r:"8",cx:"12",cy:"12",class:"progress-bar__circle"},null,-1);function fr(t,o,n,s,i,a){return e.openBlock(),e.createElementBlock("div",{role:"progressbar","aria-label":n.progressbarAriaLabel,tabindex:"-1","aria-valuenow":n.progress,"aria-valuemin":"0","aria-valuemax":"100"},[(e.openBlock(),e.createElementBlock("svg",{class:"progress-bar d-w24 d-h24",style:e.normalizeStyle(a.cssVars)},[e.createElementVNode("circle",mr,null,512),pr],4))],8,hr)}const _r=l._export_sfc(ur,[["render",fr]]);const gr={name:"DtImageCarousel",components:{DtImageViewer:ut,DtButton:h.DtButton,DtIcon:h.DtIcon,DtProgressBar:_r},props:{mediaItem:{type:Object,required:!0},index:{type:Number,required:!0},closeAriaLabel:{type:String,required:!0},clickToOpenAriaLabel:{type:String,required:!0},progressbarAriaLabel:{type:String,required:!0}},emits:["remove-media"],methods:{removeMediaItem(t){this.$emit("remove-media",t)}}},br={class:"dt-attachment-image"},yr={class:"dt-attachment-image__top-right"};function Sr(t,o,n,s,i,a){const r=e.resolveComponent("dt-image-viewer"),c=e.resolveComponent("dt-progress-bar"),d=e.resolveComponent("dt-icon"),m=e.resolveComponent("dt-button");return e.openBlock(),e.createElementBlock("li",br,[e.createVNode(r,{"image-button-class":"dt-attachment-image__image-viewer","image-src":n.mediaItem.path,"image-alt":n.mediaItem.altText,"close-aria-label":n.closeAriaLabel,"aria-label":n.clickToOpenAriaLabel},null,8,["image-src","image-alt","close-aria-label","aria-label"]),e.createElementVNode("div",yr,[n.mediaItem.isUploading?(e.openBlock(),e.createBlock(c,{key:0,class:"dt-attachment-image__progress-bar",progress:n.mediaItem.progress,"progressbar-aria-label":n.progressbarAriaLabel},null,8,["progress","progressbar-aria-label"])):e.createCommentVNode("",!0),e.createVNode(m,{id:`closeButton-${n.index}`,tabindex:"0",class:"dt-attachment-image__close-button",circle:"",size:"xs",importance:"clear","aria-label":n.closeAriaLabel,onClick:o[0]||(o[0]=f=>a.removeMediaItem(n.index))},{icon:e.withCtx(()=>[e.createVNode(d,{name:"close",size:"200"})]),_:1},8,["id","aria-label"])])])}const vr=l._export_sfc(gr,[["render",Sr]]);const Cr=64,Er={name:"DtRecipeAttachmentCarousel",components:{DtButton:h.DtButton,DtIcon:h.DtIcon,DtImageCarousel:vr},mixins:[],props:{mediaList:{type:Array,default:()=>[]},closeAriaLabel:{type:String,required:!0},clickToOpenAriaLabel:{type:String,required:!0},progressbarAriaLabel:{type:String,required:!0},leftArrowAriaLabel:{type:String,required:!0},rightArrowAriaLabel:{type:String,required:!0}},emits:["remove-media"],data(){return{showCloseButton:{},showRightArrow:!0,showLeftArrow:!1,isMounted:!1}},computed:{filteredMediaList(){return this.mediaList.filter(t=>t.type==="image"||t.type==="video")}},mounted:function(){this.showLeftArrow=this.$refs.carousel.scrollLeft>0,this.showRightArrow=this.$refs.carousel.scrollWidth>this.$refs.carousel.clientWidth},methods:{onItemFocus(t){t.currentTarget.scrollIntoView({behavior:"smooth"})},mediaComponent(t){switch(t){case"image":return"dt-image-carousel";default:return null}},removeMediaItem(t){this.showRightArrow=this.$refs.carousel.scrollWidth>this.$refs.carousel.clientWidth+Cr,this.$emit("remove-media",t)},closeButton(t,o){this.showCloseButton[o]=t},handleScroll(){const t=this.$refs.carousel;this.showLeftArrow=t.scrollLeft>0,this.showRightArrow=t.scrollLeft+t.clientWidth!==t.scrollWidth},leftScroll(){this.$refs.carousel.scrollTo({left:this.$refs.carousel.scrollLeft-100,behavior:"smooth"})},rightScroll(){this.$refs.carousel.scrollTo({left:this.$refs.carousel.scrollLeft+100,behavior:"smooth"})}}},Ir={class:"dt-attachment-carousel",role:"presentation"};function kr(t,o,n,s,i,a){const r=e.resolveComponent("dt-icon"),c=e.resolveComponent("dt-button");return e.openBlock(),e.createElementBlock("div",Ir,[n.mediaList.length>0?(e.openBlock(),e.createElementBlock("ul",{key:0,ref:"carousel",class:"dt-attachment-carousel__media-list",onScroll:o[0]||(o[0]=(...d)=>a.handleScroll&&a.handleScroll(...d))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.filteredMediaList,(d,m)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a.mediaComponent(d.type)),{key:`media-${m}`,index:m,"media-item":d,"close-aria-label":n.closeAriaLabel,"click-to-open-aria-label":n.clickToOpenAriaLabel,"progressbar-aria-label":n.progressbarAriaLabel,onRemoveMedia:f=>a.removeMediaItem(m),onFocusin:a.onItemFocus},null,40,["index","media-item","close-aria-label","click-to-open-aria-label","progressbar-aria-label","onRemoveMedia","onFocusin"]))),128))],544)):e.createCommentVNode("",!0),e.withDirectives(e.createVNode(c,{tabindex:"-1","aria-label":n.leftArrowAriaLabel,class:"dt-attachment-carousel__arrow dt-attachment-carousel__arrow--left",circle:"",size:"xs",importance:"clear",onClick:a.leftScroll},{icon:e.withCtx(()=>[e.createVNode(r,{name:"arrow-left",size:"100"})]),_:1},8,["aria-label","onClick"]),[[e.vShow,i.showLeftArrow]]),e.withDirectives(e.createVNode(c,{tabindex:"-1","aria-label":n.rightArrowAriaLabel,class:"dt-attachment-carousel__arrow dt-attachment-carousel__arrow--right",circle:"",size:"xs",importance:"clear",onClick:a.rightScroll},{icon:e.withCtx(()=>[e.createVNode(r,{name:"arrow-right",size:"100"})]),_:1},8,["aria-label","onClick"]),[[e.vShow,i.showRightArrow]])])}const Dr=l._export_sfc(Er,[["render",kr]]),we={warning:"dt-recipe-callbox-badge--warning"},Be={default:"dt-recipe-callbox--border-default",ai:"dt-recipe-callbox--border-ai",critical:"dt-recipe-callbox--border-critical"};const wr={name:"DtRecipeCallbox",components:{DtBadge:Le,DtAvatar:p.DtAvatar},inheritAttrs:!1,props:{badgeText:{type:String,default:""},badgeColor:{type:String,default:null,validator:t=>t===null||Object.keys(we).includes(t)},avatarSrc:{type:String,default:""},avatarFullName:{type:String,default:""},avatarSeed:{type:String,default:""},title:{type:String,default:""},borderColor:{type:String,default:"default",validator:t=>Object.keys(Be).includes(t)},clickable:{type:Boolean,default:!1},isOnHold:{type:Boolean,default:!1}},emits:["click"],computed:{shouldShowAvatar(){return this.avatarFullName||this.avatarSrc},badgeClass(){return we[this.badgeColor]},borderClass(){return Be[this.borderColor]}},methods:{handleClick(t){this.clickable&&this.$emit("click",t)}}},Br={"data-qa":"dt-recipe-callbox",class:"dt-recipe-callbox"},Tr={key:0,"data-qa":"dt-recipe-callbox--video-wrapper",class:"dt-recipe-callbox--video"},Lr={class:"dt-recipe-callbox--main-content-top"},Nr={class:"dt-recipe-callbox--content"},Or={key:0,"data-qa":"dt-recipe-callbox--badge-wrapper",class:"dt-recipe-callbox--content-badge"},Ar={key:1,"data-qa":"dt-recipe-callbox--subtitle-wrapper",class:"dt-recipe-callbox--content-subtitle"},xr={key:1,"data-qa":"dt-recipe-callbox--right-wrapper",class:"dt-recipe-callbox--right"},Vr={key:0,"data-qa":"dt-recipe-callbox--bottom-wrapper",class:"dt-recipe-callbox--main-content-bottom"};function Rr(t,o,n,s,i,a){const r=e.resolveComponent("dt-avatar"),c=e.resolveComponent("dt-badge");return e.openBlock(),e.createElementBlock("div",Br,[t.$slots.video?(e.openBlock(),e.createElementBlock("div",Tr,[e.renderSlot(t.$slots,"video",{},void 0,!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",{"data-qa":"dt-recipe-callbox--main-content",class:e.normalizeClass(["dt-recipe-callbox--main-content",a.borderClass,{"dt-recipe-callbox--clickable":n.clickable}])},[e.createElementVNode("div",Lr,[a.shouldShowAvatar?(e.openBlock(),e.createBlock(r,{key:0,"avatar-class":"dt-recipe-callbox--avatar","image-src":n.avatarSrc,"full-name":n.avatarFullName,seed:n.avatarSeed,clickable:n.clickable,"overlay-icon":n.isOnHold?"pause":null,size:"sm",onClick:a.handleClick},null,8,["image-src","full-name","seed","clickable","overlay-icon","onClick"])):e.createCommentVNode("",!0),e.createElementVNode("div",Nr,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.clickable?"button":"span"),{"data-qa":"dt-recipe-callbox--title",class:"dt-recipe-callbox--content-title",onClick:a.handleClick},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(n.title),1)]),_:1},8,["onClick"])),t.$slots.badge||n.badgeText?(e.openBlock(),e.createElementBlock("div",Or,[e.renderSlot(t.$slots,"badge",{},()=>[e.createVNode(c,{class:e.normalizeClass(a.badgeClass),text:n.badgeText},null,8,["class","text"])],!0)])):e.createCommentVNode("",!0),t.$slots.subtitle?(e.openBlock(),e.createElementBlock("div",Ar,[e.renderSlot(t.$slots,"subtitle",{},void 0,!0)])):e.createCommentVNode("",!0)]),t.$slots.right?(e.openBlock(),e.createElementBlock("div",xr,[e.renderSlot(t.$slots,"right",{},void 0,!0)])):e.createCommentVNode("",!0)]),t.$slots.bottom?(e.openBlock(),e.createElementBlock("div",Vr,[e.renderSlot(t.$slots,"bottom",{},void 0,!0)])):e.createCommentVNode("",!0)],2)])}const Pr=l._export_sfc(wr,[["render",Rr],["__scopeId","data-v-66800ae7"]]);let K;function oe(t,o){return Pe(),E.format(t,o,{locale:K})}function Mr(t,o){return Pe(),E.formatDuration(t,{locale:K,format:o})}function zr(t,o){return Pe(),E.formatDistance(t,o,{locale:K})}function $r(){return K!==void 0}function Pe(){if(!$r())throw new Error("Locale not set, please call setDateLocale(locale) and pass in a datefns locale object as the locale param before calling this function")}function qr(t){K=t}function Fr(t){return oe(t,"MMMM d, y")}function Hr(t){if(t<60)return zr(0,29*1e3);const o=E.intervalToDuration({start:0,end:t*1e3});return Mr(o,["hours","minutes"])}function Je(t){const o=new Intl.RelativeTimeFormat(K.code,{numeric:"auto"});return l.capitalizeFirstLetter(o.formatToParts(t,"day")[0].value,K.code)}function Kr(t){return E.isToday(t)?Je(0):E.isYesterday(t)?Je(-1):E.isThisWeek(t)?oe(t,"EEEE"):E.isThisYear(t)?oe(t,"EEEE, MMMM d"):oe(t,"MMMM d, y")}exports.AVATAR_COLORS=p.AVATAR_COLORS;exports.AVATAR_GROUP_VALIDATOR=p.AVATAR_GROUP_VALIDATOR;exports.AVATAR_ICON_SIZES=p.AVATAR_ICON_SIZES;exports.AVATAR_KIND_MODIFIERS=p.AVATAR_KIND_MODIFIERS;exports.AVATAR_PRESENCE_SIZE_MODIFIERS=p.AVATAR_PRESENCE_SIZE_MODIFIERS;exports.AVATAR_PRESENCE_STATES=p.AVATAR_PRESENCE_STATES;exports.AVATAR_SIZE_MODIFIERS=p.AVATAR_SIZE_MODIFIERS;exports.DtAvatar=p.DtAvatar;exports.DtItemLayout=p.DtItemLayout;exports.DtLink=p.DtLink;exports.DtListItem=p.DtListItem;exports.DtNotice=p.DtNotice;exports.DtPopover=p.DtPopover;exports.DtPresence=p.DtPresence;exports.DtRecipeMessageInput=p.message_input;exports.DtStack=p.DtStack;exports.NOTICE_KINDS=p.NOTICE_KINDS;exports.POPOVER_CONTENT_WIDTHS=p.POPOVER_CONTENT_WIDTHS;exports.POPOVER_HEADER_FOOTER_PADDING_CLASSES=p.POPOVER_HEADER_FOOTER_PADDING_CLASSES;exports.POPOVER_INITIAL_FOCUS_STRINGS=p.POPOVER_INITIAL_FOCUS_STRINGS;exports.POPOVER_PADDING_CLASSES=p.POPOVER_PADDING_CLASSES;exports.POPOVER_ROLES=p.POPOVER_ROLES;exports.PRESENCE_STATES=p.PRESENCE_STATES;exports.PRESENCE_STATES_LIST=p.PRESENCE_STATES_LIST;exports.CDN_URL=h.CDN_URL;exports.DtButton=h.DtButton;exports.DtCheckableInputMixin=h.CheckableMixin;exports.DtEmojiPicker=h._sfc_main;exports.DtGroupableInputMixin=h.GroupableMixin;exports.DtIcon=h.DtIcon;exports.DtInput=h.DtInput;exports.DtInputMixin=h.InputMixin;exports.DtSkeleton=h.DtSkeleton;exports.DtSkeletonListItem=h.DtSkeletonListItem;exports.DtSkeletonParagraph=h.DtSkeletonParagraph;exports.DtSkeletonShape=h.DtSkeletonShape;exports.DtSkeletonText=h.DtSkeletonText;exports.DtTab=h.DtTab;exports.DtTabGroup=h.DtTabGroup;exports.DtValidationMessages=h.DtValidationMessages;exports.EMOJIS_PER_ROW=h.EMOJIS_PER_ROW;exports.EMOJI_CATEGORIES=h.EMOJI_CATEGORIES;exports.EMOJI_SKIN_TONE_MODIFIERS=h.EMOJI_SKIN_TONE_MODIFIERS;exports.ICON_SIZE_MODIFIERS=h.ICON_SIZE_MODIFIERS;exports.INPUT_SIZES=h.INPUT_SIZES;exports.INPUT_TYPES=h.INPUT_TYPES;exports.LINK_KIND_MODIFIERS=h.LINK_KIND_MODIFIERS;exports.LINK_VARIANTS=h.LINK_VARIANTS;exports.SKELETON_HEADING_HEIGHTS=h.SKELETON_HEADING_HEIGHTS;exports.SKELETON_RIPPLE_DURATION=h.SKELETON_RIPPLE_DURATION;exports.SKELETON_SHAPES=h.SKELETON_SHAPES;exports.SKELETON_SHAPE_SIZES=h.SKELETON_SHAPE_SIZES;exports.SKELETON_TEXT_TYPES=h.SKELETON_TEXT_TYPES;exports.TAB_IMPORTANCE_MODIFIERS=h.TAB_IMPORTANCE_MODIFIERS;exports.TAB_LIST_IMPORTANCE_MODIFIERS=h.TAB_LIST_IMPORTANCE_MODIFIERS;exports.TAB_LIST_KIND_MODIFIERS=h.TAB_LIST_KIND_MODIFIERS;exports.TAB_LIST_SIZES=h.TAB_LIST_SIZES;exports.validationMessageValidator=h.validationMessageValidator;exports.DEFAULT_VALIDATION_MESSAGE_TYPE=l.DEFAULT_VALIDATION_MESSAGE_TYPE;exports.DESCRIPTION_SIZE_TYPES=l.DESCRIPTION_SIZE_TYPES;exports.DtLazyShow=l.DtLazyShow;exports.DtTooltip=l.DtTooltip;exports.TOOLTIP_DELAY_MS=l.TOOLTIP_DELAY_MS;exports.TOOLTIP_DIRECTIONS=l.TOOLTIP_DIRECTIONS;exports.TOOLTIP_HIDE_ON_CLICK_VARIANTS=l.TOOLTIP_HIDE_ON_CLICK_VARIANTS;exports.TOOLTIP_KIND_MODIFIERS=l.TOOLTIP_KIND_MODIFIERS;exports.TOOLTIP_STICKY_VALUES=l.TOOLTIP_STICKY_VALUES;exports.VALIDATION_MESSAGE_TYPES=l.VALIDATION_MESSAGE_TYPES;exports.filterFormattedMessages=l.filterFormattedMessages;exports.formatMessages=l.formatMessages;exports.getUniqueString=l.getUniqueString;exports.getValidationState=l.getValidationState;exports.BADGE_DECORATION_MODIFIERS=ge;exports.BADGE_KIND_MODIFIERS=_e;exports.BADGE_TYPE_MODIFIERS=fe;exports.BREADCRUMBS_INVERTED_MODIFIER=tt;exports.BREADCRUMB_ITEM_SELECTED_MODIFIER=et;exports.BUTTON_GROUP_ALIGNMENT=be;exports.CALLBAR_BUTTON_VALID_WIDTH_SIZE=xe;exports.CALLBOX_BADGE_COLORS=we;exports.CALLBOX_BORDER_COLORS=Be;exports.CHIP_SIZE_MODIFIERS=Ce;exports.COLOR_CODES=Ct;exports.DT_DESCRIPTION_LIST_DIRECTION=dt;exports.DtBadge=Le;exports.DtBanner=Yt;exports.DtBreadcrumbItem=nt;exports.DtBreadcrumbs=tn;exports.DtButtonGroup=an;exports.DtCard=ot;exports.DtCheckbox=Ho;exports.DtCheckboxGroup=Ko;exports.DtChip=Ae;exports.DtCodeblock=un;exports.DtCollapsible=lt;exports.DtCombobox=rt;exports.DtDatepicker=oi;exports.DtDescriptionList=Vn;exports.DtDropdown=ct;exports.DtDropdownSeparator=Fn;exports.DtImageViewer=ut;exports.DtInputGroup=Oe;exports.DtInputGroupMixin=ht;exports.DtKeyboardListNavigationMixin=Ne;exports.DtKeyboardShortcut=Ba;exports.DtListItemGroup=yo;exports.DtListSection=po;exports.DtModal=io;exports.DtPagination=Io;exports.DtRadio=No;exports.DtRadioGroup=Oo;exports.DtRecipeAttachmentCarousel=Dr;exports.DtRecipeCallbarButton=vt;exports.DtRecipeCallbarButtonWithPopover=Li;exports.DtRecipeCallbox=Pr;exports.DtRecipeComboboxMultiSelect=Ii;exports.DtRecipeComboboxWithPopover=yt;exports.DtRecipeContactInfo=zi;exports.DtRecipeContactRow=Os;exports.DtRecipeEmojiRow=cr;exports.DtRecipeFeedItemPill=Qs;exports.DtRecipeFeedItemRow=js;exports.DtRecipeGeneralRow=Re;exports.DtRecipeGroupRow=Bs;exports.DtRecipeGroupedChip=rs;exports.DtRecipeIvrNode=Ji;exports.DtRecipeSettingsMenuButton=cs;exports.DtRecipeTimePill=nr;exports.DtRecipeTopBannerInfo=ji;exports.DtRecipeUnreadPill=Rs;exports.DtRootLayout=Na;exports.DtScroller=Ra;exports.DtSelectMenu=da;exports.DtTabPanel=Ro;exports.DtToast=pa;exports.DtToggle=Ca;exports.FEED_ITEM_PILL_BORDER_COLORS=De;exports.IVR_NODE_BRANCH=le;exports.IVR_NODE_EXPERT=re;exports.IVR_NODE_GO_TO=Z;exports.IVR_NODE_HANGUP=ce;exports.IVR_NODE_ICON_TYPES=Et;exports.IVR_NODE_LABELS=Ui;exports.IVR_NODE_PROMPT_COLLECT=ie;exports.IVR_NODE_PROMPT_MENU=ae;exports.IVR_NODE_PROMPT_PLAY=se;exports.IVR_NODE_TRANSFER=de;exports.LEFTBAR_GENERAL_ROW_CONTACT_CENTER_COLORS=Y;exports.LEFTBAR_GENERAL_ROW_CONTACT_CENTER_VALIDATION_ERROR=kt;exports.LEFTBAR_GENERAL_ROW_ICON_MAPPING=It;exports.LEFTBAR_GENERAL_ROW_ICON_SIZES=Dt;exports.LEFTBAR_GENERAL_ROW_TYPES=B;exports.MODAL_BANNER_KINDS=ve;exports.MODAL_KIND_MODIFIERS=ye;exports.MODAL_SIZE_MODIFIERS=Se;exports.MULTI_SELECT_SIZES=St;exports.REACTIONS_ATTRIBUTES=Tt;exports.ROOT_LAYOUT_RESPONSIVE_BREAKPOINTS=_t;exports.ROOT_LAYOUT_SIDEBAR_POSITIONS=Ie;exports.SELECT_SIZE_MODIFIERS=Ee;exports.SELECT_STATE_MODIFIERS=mt;exports.SHORTCUTS_ALIASES_LIST=Ea;exports.SHORTCUTS_ICON_ALIASES=j;exports.SHORTCUTS_ICON_SEPARATOR=ft;exports.TOAST_ROLES=pt;exports.UNREAD_PILL_DIRECTIONS=wt;exports.UNREAD_PILL_KINDS=Bt;exports.durationInHHMM=Hr;exports.formatLong=ai;exports.formatMedium=ii;exports.formatNoYear=ri;exports.formatNumerical=li;exports.formatShort=si;exports.getDateMedium=Fr;exports.relativeDate=Kr;exports.setDateLocale=qr;