@dialpad/dialtone-vue 3.88.0 → 3.89.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 (39) hide show
  1. package/CHANGELOG.json +1 -1
  2. package/CHANGELOG.md +29 -0
  3. package/dist/component-documentation.json +1 -1
  4. package/dist/dialtone-vue.cjs +5 -5
  5. package/dist/dialtone-vue.js +1623 -2191
  6. package/dist/{emoji-3ea15d88.js → emoji-e5c98301.js} +16 -16
  7. package/dist/emoji.js +4 -4
  8. package/dist/message_input.cjs +17 -17
  9. package/dist/message_input.js +4053 -3748
  10. package/dist/{notice-1ead279e.js → stack-5e05e7f3.js} +926 -334
  11. package/dist/stack-96a00d5c.cjs +2 -0
  12. package/dist/style.css +1 -1
  13. package/dist/types/components/rich_text_editor/extensions/emoji/EmojiSuggestion.vue.d.ts +13 -0
  14. package/dist/types/components/rich_text_editor/extensions/emoji/EmojiSuggestion.vue.d.ts.map +1 -0
  15. package/dist/types/components/rich_text_editor/extensions/emoji/suggestion.d.ts.map +1 -1
  16. package/dist/types/components/rich_text_editor/extensions/mentions/MentionComponent.vue.d.ts +71 -0
  17. package/dist/types/components/rich_text_editor/extensions/mentions/MentionComponent.vue.d.ts.map +1 -0
  18. package/dist/types/components/rich_text_editor/extensions/mentions/MentionSuggestion.vue.d.ts +16 -0
  19. package/dist/types/components/rich_text_editor/extensions/mentions/MentionSuggestion.vue.d.ts.map +1 -0
  20. package/dist/types/components/rich_text_editor/extensions/mentions/mention.d.ts +2 -0
  21. package/dist/types/components/rich_text_editor/extensions/mentions/mention.d.ts.map +1 -0
  22. package/dist/types/components/rich_text_editor/extensions/mentions/suggestion.d.ts +10 -0
  23. package/dist/types/components/rich_text_editor/extensions/mentions/suggestion.d.ts.map +1 -0
  24. package/dist/types/components/rich_text_editor/extensions/{emoji/EmojiList.vue.d.ts → suggestion/SuggestionList.vue.d.ts} +17 -1
  25. package/dist/types/components/rich_text_editor/extensions/suggestion/SuggestionList.vue.d.ts.map +1 -0
  26. package/dist/types/components/rich_text_editor/mention_suggestion.d.ts +11 -0
  27. package/dist/types/components/rich_text_editor/mention_suggestion.d.ts.map +1 -0
  28. package/dist/types/components/rich_text_editor/rich_text_editor.vue.d.ts +31 -0
  29. package/dist/types/components/rich_text_editor/rich_text_editor.vue.d.ts.map +1 -1
  30. package/dist/types/components/root_layout/root_layout.vue.d.ts +3 -6
  31. package/dist/types/components/root_layout/root_layout.vue.d.ts.map +1 -1
  32. package/dist/types/recipes/buttons/callbar_button/callbar_button.vue.d.ts +7 -2
  33. package/dist/types/recipes/buttons/callbar_button/callbar_button.vue.d.ts.map +1 -1
  34. package/dist/types/recipes/leftbar/callbox/callbox.vue.d.ts +1 -1
  35. package/dist/types/recipes/leftbar/contact_row/contact_row.vue.d.ts +1 -1
  36. package/dist/types/recipes/list_items/contact_info/contact_info.vue.d.ts +1 -1
  37. package/package.json +13 -12
  38. package/dist/notice-876cf6fe.cjs +0 -2
  39. package/dist/types/components/rich_text_editor/extensions/emoji/EmojiList.vue.d.ts.map +0 -1
@@ -1,5 +1,5 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./emoji-b45991f0.cjs"),e=require("vue"),_=require("./notice-876cf6fe.cjs"),rt=require("./emoji.cjs"),ne={BUSY:"busy",AWAY:"away",OFFLINE:"offline",ACTIVE:"active"},At=[ne.BUSY,ne.AWAY,ne.OFFLINE,ne.ACTIVE],En={name:"DtPresence",props:{presence:{type:String,default:ne.ACTIVE,validator:t=>At.includes(t)},srText:{type:String,default:null}}},kn=["aria-live"],wn={key:0,"data-qa":"dt-presence-sr-text",class:"sr-only"};function In(t,a,n,i,r,o){return e.openBlock(),e.createElementBlock("div",{class:"d-presence","data-qa":"dt-presence",role:"status","aria-live":t.$attrs.ariaLive||"off"},[n.srText?(e.openBlock(),e.createElementBlock("span",wn,e.toDisplayString(n.srText),1)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["d-presence__inner",{"d-presence__inner--active":n.presence==="active","d-presence__inner--away":n.presence==="away","d-presence__inner--busy":n.presence==="busy","d-presence__inner--offline":n.presence==="offline"}])},null,2)],8,kn)}const Vt=s._export_sfc(En,[["render",In]]),Ee={xs:"d-avatar--xs",sm:"d-avatar--sm",md:"d-avatar--md",lg:"d-avatar--lg",xl:"d-avatar--xl"},Pt={default:"",icon:"d-avatar__icon",initials:"d-avatar__initials"},Mt={md:"d-avatar__presence--md",lg:"d-avatar__presence--lg"},qe={NONE:"",BUSY:"busy",AWAY:"away",OFFLINE:"offline",ACTIVE:"active"},Rt={xs:"100",sm:"200",md:"300",lg:"500",xl:"600"},zt=["100","200","300","400","500","600","700","800","900","1000","1100","1200","1300","1400","1500","1600","1700","1800"],He=t=>t>1;function Dn(){return[void 0,...Object.keys(s.dialtoneIcons).map(t=>s.pascalCaseToKebabCase(t))]}const Tn=t=>{if(typeof t!="string"||!t.trim())return"";const a=t.trim().split(/\s+/g);return a.length===1?a.join("").substring(0,2):a.filter((n,i)=>i===0||i===a.length-1).map(n=>n.slice(0,1).toUpperCase()).join("")};const On=Dn(),Nn={name:"DtAvatar",components:{DtPresence:Vt,DtIcon:s.DtIcon},inheritAttrs:!1,props:{id:{type:String,default(){return s.getUniqueString()}},seed:{type:String,default:void 0},color:{type:String,default:void 0},size:{type:String,default:"md",validator:t=>Object.keys(Ee).includes(t)},avatarClass:{type:[String,Array,Object],default:""},canvasClass:{type:[String,Array,Object],default:""},iconClass:{type:[String,Array,Object],default:""},presence:{type:String,default:qe.NONE,validator:t=>Object.values(qe).includes(t)},presenceProps:{type:Object,default:()=>({})},group:{type:Number,default:void 0,validator:t=>He(t)},overlayIcon:{type:String,default:""},overlayText:{type:String,default:""},overlayClass:{type:[String,Array,Object],default:""},imageSrc:{type:String,default:""},imageAlt:{type:String,default:""},iconName:{type:String,default:void 0,validator:t=>On.includes(t)},iconSize:{type:String,default:"",validator:t=>!t||Object.keys(s.ICON_SIZE_MODIFIERS).includes(t)},fullName:{type:String,default:""},clickable:{type:Boolean,default:!1}},emits:["click"],data(){return{AVATAR_SIZE_MODIFIERS:Ee,AVATAR_KIND_MODIFIERS:Pt,AVATAR_PRESENCE_SIZE_MODIFIERS:Mt,AVATAR_ICON_SIZES:Rt,imageLoadedSuccessfully:null,formattedInitials:"",initializing:!1}},computed:{isNotIconType(){return!this.iconName},avatarClasses(){return["d-avatar",Ee[this.validatedSize],this.avatarClass,{"d-avatar--group":this.showGroup,[`d-avatar--color-${this.getColor()}`]:this.isNotIconType,"d-avatar--clickable":this.clickable}]},overlayClasses(){return["d-avatar__overlay",this.overlayClass]},showGroup(){return He(this.group)},formattedGroup(){return this.group>99?"99+":this.group},validatedSize(){return this.group?"xs":this.size},showImage(){return this.imageLoadedSuccessfully!==!1&&this.imageSrc},buttonAriaLabel(){if(this.clickable)return this.fullName||this.imageAlt||this.$attrs["aria-label"]}},watch:{fullName:{immediate:!0,handler(t){this.formatInitials(t)}},imageSrc(t){this.imageLoadedSuccessfully=null,t&&(this.validateProps(),this.setImageListeners())}},mounted(){this.validateProps(),this.setImageListeners()},methods:{async setImageListeners(){await this.$nextTick();const t=this.$refs.avatarImage;t&&(t.addEventListener("load",()=>this._loadedImageEventHandler(t),{once:!0}),t.addEventListener("error",()=>this._erroredImageEventHandler(t),{once:!0}))},formatInitials(t){const a=Tn(t);this.validatedSize==="xs"?this.formattedInitials="":this.validatedSize==="sm"?this.formattedInitials=a[0]:this.formattedInitials=a},getColor(){return this.color??s.getRandomElement(zt,this.seed)},_loadedImageEventHandler(t){this.imageLoadedSuccessfully=!0,t.classList.remove("d-d-none")},_erroredImageEventHandler(t){this.imageLoadedSuccessfully=!1,t.classList.add("d-d-none")},validateProps(){if(this.imageSrc&&!(this.fullName||this.imageAlt))throw new Error("full-name or image-alt must be set if image-src is provided")},handleClick(t){this.clickable&&this.$emit("click",t)}}},Bn=["src","alt"],Ln={key:1,class:"d-avatar__overlay-text"},xn={key:1,class:"d-avatar__count","data-qa":"dt-avatar-count"};function An(t,a,n,i,r,o){const l=e.resolveComponent("dt-icon"),d=e.resolveComponent("dt-presence");return e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.clickable?"button":"div"),{id:n.id,class:e.normalizeClass(o.avatarClasses),"data-qa":"dt-avatar","aria-label":o.buttonAriaLabel,onClick:o.handleClick},{default:e.withCtx(()=>[e.createElementVNode("div",{ref:"canvas",class:e.normalizeClass([n.canvasClass,"d-avatar__canvas",{"d-avatar--image-loaded":r.imageLoadedSuccessfully}])},[o.showImage?(e.openBlock(),e.createElementBlock("img",{key:0,ref:"avatarImage",class:"d-avatar__image","data-qa":"dt-avatar-image",src:n.imageSrc,alt:n.imageAlt||n.fullName},null,8,Bn)):n.iconName?(e.openBlock(),e.createBlock(l,{key:1,name:n.iconName,size:n.iconSize||r.AVATAR_ICON_SIZES[n.size],class:e.normalizeClass([n.iconClass,r.AVATAR_KIND_MODIFIERS.icon]),"data-qa":"dt-avatar-icon"},null,8,["name","size","class"])):(e.openBlock(),e.createElementBlock("span",{key:2,class:e.normalizeClass([r.AVATAR_KIND_MODIFIERS.initials,"d-ps-absolute d-zi-base d-us-none"])},e.toDisplayString(r.formattedInitials),3))],2),n.overlayIcon||n.overlayText?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(o.overlayClasses)},[n.overlayIcon?(e.openBlock(),e.createBlock(l,{key:0,class:"d-avatar__overlay-icon",name:n.overlayIcon},null,8,["name"])):n.overlayText?(e.openBlock(),e.createElementBlock("p",Ln,e.toDisplayString(n.overlayText),1)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),o.showGroup?(e.openBlock(),e.createElementBlock("span",xn,e.toDisplayString(o.formattedGroup),1)):e.createCommentVNode("",!0),n.presence&&!o.showGroup?(e.openBlock(),e.createBlock(d,e.mergeProps({key:2,presence:n.presence,class:["d-avatar__presence",r.AVATAR_PRESENCE_SIZE_MODIFIERS[n.size]]},n.presenceProps,{"data-qa":"dt-presence"}),null,16,["presence","class"])):e.createCommentVNode("",!0)]),_:1},8,["id","class","aria-label","onClick"])}const ge=s._export_sfc(Nn,[["render",An]]),Ue={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"},We={label:"",count:"d-badge--count"},Ke={"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"},Vn={name:"DtBadge",components:{DtIcon:s.DtIcon},props:{iconLeft:{type:String,default:""},iconRight:{type:String,default:""},text:{type:String,default:""},kind:{type:String,default:"label",validator:t=>Object.keys(We).includes(t)},type:{type:String,default:"default",validator:t=>Object.keys(Ue).includes(t)},decoration:{type:String,default:void 0,validator:t=>Object.keys(Ke).includes(t)},labelClass:{type:[String,Array,Object],default:""}},data(){return{BADGE_TYPE_MODIFIERS:Ue,BADGE_KIND_MODIFIERS:We,BADGE_DECORATION_MODIFIERS:Ke}},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."))}}},Pn={key:0,class:"d-badge__decorative"},Mn={key:1,class:"d-badge__icon-left"},Rn={key:2,class:"d-badge__icon-right"};function zn(t,a,n,i,r,o){const l=e.resolveComponent("dt-icon");return e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(["d-badge",r.BADGE_TYPE_MODIFIERS[n.type],r.BADGE_KIND_MODIFIERS[n.kind],r.BADGE_DECORATION_MODIFIERS[n.decoration]]),"data-qa":"dt-badge"},[n.decoration?(e.openBlock(),e.createElementBlock("span",Pn)):e.createCommentVNode("",!0),n.iconLeft||n.type==="ai"?(e.openBlock(),e.createElementBlock("span",Mn,[e.createVNode(l,{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",Rn,[e.createVNode(l,{name:n.iconRight,size:"200"},null,8,["name"])])):e.createCommentVNode("",!0)],2)}const it=s._export_sfc(Vn,[["render",zn]]),$n={name:"DtBanner",components:{DtNoticeIcon:_.DtNoticeIcon,DtNoticeContent:_.DtNoticeContent,DtNoticeAction:_.DtNoticeAction},mixins:[_.Modal,_.SrOnlyCloseButtonMixin],props:{titleId:{type:String,default(){return s.utils.getUniqueString()}},contentId:{type:String,default(){return s.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)}}},Fn=["role","aria-labelledby","aria-describedby"];function qn(t,a,n,i,r,o){const l=e.resolveComponent("dt-notice-icon"),d=e.resolveComponent("dt-notice-content"),c=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((...h)=>o.trapFocus&&o.trapFocus(...h),["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(l,{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(c,{"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]=h=>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,Fn)],38)}const Hn=s._export_sfc($n,[["render",qn]]),$t="d-breadcrumbs__item--selected",Ft="d-breadcrumbs--inverted",Un={name:"DtLink",props:{kind:{type:String,default:"",validator(t){return s.LINK_VARIANTS.includes(t)}}},data(){return{LINK_KIND_MODIFIERS:s.LINK_KIND_MODIFIERS}}};function Wn(t,a,n,i,r,o){return e.openBlock(),e.createElementBlock("a",{class:e.normalizeClass(["d-link",r.LINK_KIND_MODIFIERS[n.kind]]),"data-qa":"dt-link"},[e.renderSlot(t.$slots,"default")],2)}const qt=s._export_sfc(Un,[["render",Wn]]),Kn={name:"DtBreadcrumbItem",components:{DtLink:qt},inheritAttrs:!1,props:{inverted:{type:Boolean,default:!1},selected:{type:Boolean,default:!1},label:{type:String,default:""}},data(){return{BREADCRUMB_ITEM_SELECTED_MODIFIER:$t}},computed:{linkKind(){return this.inverted?s.INVERTED:s.MUTED},ariaCurrent(){return this.selected?"location":void 0}}};function jn(t,a,n,i,r,o){const l=e.resolveComponent("dt-link");return e.openBlock(),e.createElementBlock("li",{"data-qa":"dt-breadcrumb-item",class:e.normalizeClass(["d-breadcrumbs__item",{[r.BREADCRUMB_ITEM_SELECTED_MODIFIER]:n.selected}])},[e.createVNode(l,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 Ht=s._export_sfc(Kn,[["render",jn]]),Gn={name:"DtBreadcrumbs",components:{DtBreadcrumbItem:Ht},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:Ft}},methods:{getBreadcrumbItemKey(t){return`breadcrumbs-item-${t}-${s.utils.getUniqueString()}`}}},Yn=["aria-label"];function Zn(t,a,n,i,r,o){const l=e.resolveComponent("dt-breadcrumb-item");return e.openBlock(),e.createElementBlock("nav",{"aria-label":n.ariaLabel,"data-qa":"dt-breadcrumbs",class:e.normalizeClass(["d-breadcrumbs",{[r.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,c)=>(e.openBlock(),e.createBlock(l,e.mergeProps({key:o.getBreadcrumbItemKey(c),inverted:n.inverted},d),null,16,["inverted"]))),128))])])],10,Yn)}const Qn=s._export_sfc(Gn,[["render",Zn]]),je={start:"d-btn-group--start",end:"d-btn-group--end","space-between":"d-btn-group--space-between"},Xn={name:"DtButtonGroup",props:{alignment:{type:String,default:"start",validator:t=>Object.keys(je).includes(t)}},data(){return{BUTTON_GROUP_ALIGNMENT:je}}};function Jn(t,a,n,i,r,o){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["d-btn-group",r.BUTTON_GROUP_ALIGNMENT[n.alignment]]),role:"group"},[e.renderSlot(t.$slots,"default")],2)}const ea=s._export_sfc(Xn,[["render",Jn]]),ta={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:s.hasSlotContent}}};function na(t,a,n,i,r,o){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["d-card",n.containerClass]),"data-qa":"dt-card"},[r.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),r.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 Ut=s._export_sfc(ta,[["render",na]]),aa={name:"DtCodeblock",props:{text:{type:String,required:!0}}},oa={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 ra(t,a,n,i,r,o){return e.openBlock(),e.createElementBlock("pre",null,[e.createTextVNode(" "),e.createElementVNode("code",oa,e.toDisplayString(n.text),1),e.createTextVNode(`
3
- `)])}const ia=s._export_sfc(aa,[["render",ra]]),sa={methods:{scrollElementIntoViewIfNeeded(t,a,n,i){t.scrollIntoViewIfNeeded?this.scrollIntoViewIfNeeded(t,a,n,i):this.scrollIntoView(t,"bottom",!1,n,i)},scrollElementIntoView(t,a,n,i){if(a==="center"){this.scrollIntoView(t,"center",!1,n,i);return}a===!1?this.scrollIntoView(t,"bottom",!1,n,i):this.scrollIntoView(t,"top",!1,n,i)},scrollIntoViewIfNeeded(t,a,n,i){const r=a?"center":void 0;this.scrollIntoView(t,r,!0,n,i)},scrollIntoView(t,a,n,i,r){if(!t||!t.parentElement)return;const o=t.offsetTop,l=r||t.parentElement,d=this._getScrollBounds(l),c=d.bottom-d.top,h=this._getElementHeight(t),m=o+h;let u=-1;switch(a){case"top":u=o;break;case"center":u=o+(h-c)/2;break;case"bottom":u=u=m-c;break;default:o-d.top<=c/2?u=o:u=m-c;break}this._setScrollTop(l,u,d,o,m,n,i)},_setScrollTop(t,a,n,i,r,o,l){n=n||this._getScrollBounds(t);const d=n.bottom-n.top;if(o&&this._inScrollBounds(i,r,n))if(i<n.top)a=i;else if(r>n.bottom)a=r-d;else return;l?t.scrollTo({top:a,behavior:l}):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 i=a-t;return a<=n.bottom+3*i/4&&t>=n.top-i/4}}},la="listElementKey is required or the referenced element doesn't exist. Received listElement: ",st=({listItemRole:t="option",indexKey:a="highlightIndex",idKey:n="highlightId",listElementKey:i="listRef",activeItemKey:r="",openMethod:o=null,afterHighlightMethod:l=null,beginningOfListMethod:d=null,endOfListMethod:c=null,scrollToOnHighlight:h=!0,focusOnKeyboardNavigation:m=!1}={})=>({mixins:[sa],data(){return{[a]:-1,[n]:"",scrollToOnHighlight:h,focusOnKeyboardNavigation:m}},provide(){return{highlightId:()=>this[n]}},methods:{_getListElement(){var u;return((u=this[i]())==null?void 0:u.$el)||this[i]()},_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(la,u),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):c&&this[c](),this.scrollActiveItemIntoViewIfNeeded(),this.focusActiveItemIfNeeded()},onHomeKey(){this.jumpToBeginning(),this.scrollActiveItemIntoViewIfNeeded(),this.focusActiveItemIfNeeded()},onEndKey(){this.jumpToEnd(),this.scrollActiveItemIntoViewIfNeeded(),this.focusActiveItemIfNeeded()},onNavigationKey(u){const p=this._getListItemNodes(),f=p.filter(D=>D.textContent.trim().toLowerCase().startsWith(u.toLowerCase()));if(f.length<=0)return;const g=f.findIndex(D=>this[a]===p.indexOf(D)),v=p.indexOf(g<f.length-1?f[g+1]:f[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[a]=u,this[n]=this._getItemId(u),this._itemsLength()&&l&&this[l](u)},setHighlightId(u){this[n]=u,this[a]=this._getItemIndex(u),this._itemsLength()&&l&&this[l](this._getItemIndex(u))},_getItemIndex(u){const p=this._getListElement();return p?Array.from(p.querySelectorAll(`[role="${t}"], #sr-only-close-button`)).indexOf(p.querySelector(`#${u}`)):void 0},_getItemId(u){var f;const p=this._getListElement();if(p)return(f=p.querySelectorAll(`[role="${t}"], #sr-only-close-button`)[u])==null?void 0:f.id},scrollActiveItemIntoViewIfNeeded(){if(!this.scrollToOnHighlight)return;const u=this[r];if(u){const p=this._getListElement();this.scrollElementIntoViewIfNeeded(u,null,null,p)}},focusActiveItemIfNeeded(){if(!this.focusOnKeyboardNavigation)return;const u=this[r];u&&u.focus()}}}),da={name:"ComboboxLoadingList",components:{DtListItem:_.DtListItem,DtSkeleton:s.DtSkeleton}},ca={class:"d-p0 d-mt8 d-hmx332 d-of-y-auto","aria-busy":"true"};function ua(t,a,n,i,r,o){const l=e.resolveComponent("dt-skeleton"),d=e.resolveComponent("dt-list-item");return e.openBlock(),e.createElementBlock("ol",ca,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(7,c=>e.createVNode(d,{key:c,role:"option","navigation-type":"none"},{default:e.withCtx(()=>[e.createVNode(l,{"text-option":{type:"body"},offset:0})]),_:2},1024)),64))])}const Wt=s._export_sfc(da,[["render",ua]]);const ha={name:"ComboboxEmptyList",components:{DtListItem:_.DtListItem},props:{message:{type:String,required:!0},itemClass:{type:[String,Object,Array],default:""}}},ma={class:"d-p0","data-qa":"dt-combobox-empty-list"};function fa(t,a,n,i,r,o){const l=e.resolveComponent("dt-list-item");return e.openBlock(),e.createElementBlock("ol",ma,[e.renderSlot(t.$slots,"default",{},()=>[e.createVNode(l,{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 Kt=s._export_sfc(ha,[["render",fa]]),jt={EXTRA_SMALL:"xs",SMALL:"sm",DEFAULT:"md",LARGE:"lg",EXTRA_LARGE:"xl"},pa={name:"DtCombobox",components:{ComboboxLoadingList:Wt,ComboboxEmptyList:Kt},mixins:[st({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 s.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:s.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.`)}}},ga={"data-qa":"dt-combobox-input-wrapper"};function _a(t,a,n,i,r,o){const l=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(c=>o.onKeyValidation(c,"onEscapeKey"),["stop"]),["esc"])),a[4]||(a[4]=e.withKeys(e.withModifiers(c=>o.onKeyValidation(c,"onEnterKey"),["exact"]),["enter"])),a[5]||(a[5]=e.withKeys(e.withModifiers(c=>o.onKeyValidation(c,"onUpKey"),["stop","prevent"]),["up"])),a[6]||(a[6]=e.withKeys(e.withModifiers(c=>o.onKeyValidation(c,"onDownKey"),["stop","prevent"]),["down"])),a[7]||(a[7]=e.withKeys(e.withModifiers(c=>o.onKeyValidation(c,"onHomeKey"),["stop","prevent"]),["home"])),a[8]||(a[8]=e.withKeys(e.withModifiers(c=>o.onKeyValidation(c,"onEndKey"),["stop","prevent"]),["end"]))]},[e.createElementVNode("div",ga,[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]=(...c)=>o.clearHighlightIndex&&o.clearHighlightIndex(...c)),onFocusout:a[1]||(a[1]=(...c)=>o.clearHighlightIndex&&o.clearHighlightIndex(...c)),onMousemoveCapture:a[2]||(a[2]=(...c)=>o.onMouseHighlight&&o.onMouseHighlight(...c))},[n.loading&&!n.listRenderedOutside?(e.openBlock(),e.createBlock(l,e.normalizeProps(e.mergeProps({key:0},o.listProps)),null,16)):n.emptyList&&(n.emptyStateMessage||r.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=s._export_sfc(pa,[["render",_a]]);const ba={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 ya(t,a,n,i,r,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(()=>[r.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 va=s._export_sfc(ba,[["render",ya]]),Sa={name:"DtCollapsible",components:{DtButton:s.DtButton,DtCollapsibleLazyShow:va,DtLazyShow:s.DtLazyShow,DtIcon:s.DtIcon},props:{anchorText:{type:String,default:null},open:{type:Boolean,default:null},id:{type:String,default(){return s.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&&s.getUniqueString("DtCollapsible__anchor")},collapsibleListeners(){return s.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&&!s.hasSlotContent(this.$slots.anchor)&&console.error("anchor text and anchor slot content cannot both be falsy")}}},Ca=["id"],Ea=["title"];function ka(t,a,n,i,r,o){const l=e.resolveComponent("dt-icon"),d=e.resolveComponent("dt-button"),c=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":r.isOpen.toString(),role:"button"}},()=>[e.createVNode(d,{importance:"clear",kind:"muted","aria-controls":n.id,"aria-expanded":`${r.isOpen}`,style:e.normalizeStyle({width:n.maxWidth}),onClick:o.defaultToggleOpen},{default:e.withCtx(()=>[e.createVNode(l,{name:r.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,Ea)]),_:1},8,["aria-controls","aria-expanded","style","onClick"])])],10,Ca),e.createVNode(c,e.mergeProps({id:n.id,ref:"contentWrapper","aria-hidden":`${!r.isOpen}`,"aria-labelledby":o.labelledBy,"aria-label":n.ariaLabel,show:r.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 Yt=s._export_sfc(Sa,[["render",ka]]),he={none:void 0,small:"d-py0",large:"d-py4"};const wa={name:"DtDropdown",components:{DtPopover:_.DtPopover,SrOnlyCloseButton:_.SrOnlyCloseButton},mixins:[st({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(he).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 s.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:he,openedWithKeyboard:!1,isOpen:null}},computed:{dropdownListeners(){return{opened:t=>{this.updateInitialHighlightIndex(t)},keydown:t=>{switch(t.code){case s.EVENT_KEYNAMES.up:case s.EVENT_KEYNAMES.arrowup:this.onUpKeyPress(t),t.stopPropagation(),t.preventDefault();break;case s.EVENT_KEYNAMES.down:case s.EVENT_KEYNAMES.arrowdown:this.onDownKeyPress(t),t.stopPropagation(),t.preventDefault();break;case s.EVENT_KEYNAMES.space:case s.EVENT_KEYNAMES.spacebar:this.onSpaceKey();break;case s.EVENT_KEYNAMES.enter:this.onEnterKey();break;case s.EVENT_KEYNAMES.home:this.onHomeKeyPress(t),t.stopPropagation(),t.preventDefault();break;case s.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",he[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)}}},Ia=["id"];function Da(t,a,n,i,r,o){const l=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":r.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:c})=>[e.renderSlot(t.$slots,"anchor",e.mergeProps({ref:"anchor"},c))]),content:e.withCtx(({close:c})=>[e.createElementVNode("ul",{id:n.listId,ref:"listWrapper",class:e.normalizeClass(o.listClasses),"data-qa":"dt-dropdown-list-wrapper",onMouseleave:a[0]||(a[0]=(...h)=>o.clearHighlightIndex&&o.clearHighlightIndex(...h)),onMousemoveCapture:a[1]||(a[1]=(...h)=>o.onMouseHighlight&&o.onMouseHighlight(...h))},[e.renderSlot(t.$slots,"list",{close:c}),t.showVisuallyHiddenClose?(e.openBlock(),e.createBlock(l,{key:0,"visually-hidden-close-label":t.visuallyHiddenCloseLabel,tabindex:o.isArrowKeyNav?-1:0,onClose:c},null,8,["visually-hidden-close-label","tabindex","onClose"])):e.createCommentVNode("",!0)],42,Ia)]),_: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 Zt=s._export_sfc(wa,[["render",Da]]);const Ta={name:"DtDropdownSeparator"},Oa={"aria-hidden":"true",class:"dt-list-separator d-my4 d-mxn4"};function Na(t,a,n,i,r,o){return e.openBlock(),e.createElementBlock("li",Oa)}const Ba=s._export_sfc(Ta,[["render",Na]]),La={name:"DtImageViewer",components:{DtButton:s.DtButton,DtIcon:s.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 s.EVENT_KEYNAMES.esc:case s.EVENT_KEYNAMES.escape:this.close();break;case s.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)}}},xa=["src","alt"],Aa=["aria-hidden"],Va={"data-qa":"dt-image-viewer-full",class:"d-p0 d-bar0 d-wmx80p d-hmx80p",role:"dialog","aria-modal":"true"},Pa=["src","alt"];function Ma(t,a,n,i,r,o){const l=e.resolveComponent("dt-button"),d=e.resolveComponent("dt-icon");return e.openBlock(),e.createElementBlock("div",null,[e.createVNode(l,{"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,xa)]),_:1},8,["aria-label","onClick"]),r.isOpen?(e.openBlock(),e.createBlock(e.Teleport,{key:0,to:"body"},[e.createElementVNode("div",e.mergeProps({"aria-hidden":r.isOpen?"false":"true",class:"d-modal","data-qa":"dt-modal"},e.toHandlers(o.modalListeners,!0),{onMouseover:a[0]||(a[0]=c=>r.showCloseButton=!0),onMouseleave:a[1]||(a[1]=c=>r.showCloseButton=!1),onFocusin:a[2]||(a[2]=c=>r.showCloseButton=!0),onFocusout:a[3]||(a[3]=c=>r.showCloseButton=!1)}),[e.createElementVNode("div",Va,[e.createElementVNode("img",{class:"d-wmx100p d-hmx100p",src:n.imageSrc,alt:n.imageAlt},null,8,Pa)]),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[r.showCloseButton?(e.openBlock(),e.createBlock(l,{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,Aa)])):e.createCommentVNode("",!0)])}const Ra=s._export_sfc(La,[["render",Ma]]),Qt={components:{DtValidationMessages:s.DtValidationMessages},provide(){return{groupContext:this.provideObj,setGroupValue:this.setGroupValue}},props:{id:{type:String,default(){return s.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=>s.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=s.formatMessages(this.messages);return{provideObj:{name:this.name,disabled:this.disabled,validationState:s.getValidationState(t)}}},computed:{formattedMessages(){return s.formatMessages(this.messages)},validationState(){return s.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)}},za={name:"DtInputGroup",components:{DtValidationMessages:s.DtValidationMessages},mixins:[Qt],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:s.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}`}}},$a=["data-qa"],Fa=["data-qa"];function qa(t,a,n,i,r,o){const l=e.resolveComponent("dt-validation-messages");return e.openBlock(),e.createElementBlock("fieldset",{"data-qa":n.dataQaGroup},[r.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,Fa)):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"default"),e.createVNode(l,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,$a)}const lt=s._export_sfc(za,[["render",qa]]),Ge={default:"",danger:"d-modal--danger"},Ye={default:"",full:"d-modal--full"},Ze={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"},Ha={name:"DtModal",components:{DtLazyShow:s.DtLazyShow,DtButton:s.DtButton,DtIcon:s.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 s.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(Ye).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:Ye,MODAL_BANNER_KINDS:Ze,EVENT_KEYNAMES:s.EVENT_KEYNAMES,hasSlotContent:s.hasSlotContent}},computed:{modalListeners(){return{click:t=>{this.closeOnClick&&(t.target===t.currentTarget&&this.close(),this.$emit("click",t))},keydown:t=>{switch(t.code){case s.EVENT_KEYNAMES.esc:case s.EVENT_KEYNAMES.escape:this.close();break;case s.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 Ze[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`)}}},Ua=["aria-describedby","aria-labelledby"],Wa=["id"],Ka=["id"],ja={key:4,class:"d-modal__footer"};function Ga(t,a,n,i,r,o){const l=e.resolveComponent("dt-icon"),d=e.resolveComponent("dt-button"),c=e.resolveComponent("sr-only-close-button"),h=e.resolveComponent("dt-lazy-show");return e.openBlock(),e.createBlock(h,e.mergeProps({transition:"d-zoom",show:n.show,class:["d-modal",r.MODAL_KIND_MODIFIERS[n.kind],r.MODAL_SIZE_MODIFIERS[n.size],n.modalClass],"data-qa":"dt-modal","aria-hidden":o.open},e.toHandlers(o.modalListeners)),{default:e.withCtx(()=>[n.show&&(r.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},[r.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,Wa)):(e.openBlock(),e.createElementBlock("h2",{key:1,id:n.labelledById,class:"d-modal__header","data-qa":"dt-modal-title"},e.toDisplayString(n.title),9,Ka)),r.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",ja,[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(l,{name:"close",size:"400"})]),_:1},16,["aria-label","onClick"])),t.showVisuallyHiddenClose?(e.openBlock(),e.createBlock(c,{key:6,"visually-hidden-close-label":t.visuallyHiddenCloseLabel,onClose:o.close},null,8,["visually-hidden-close-label","onClose"])):e.createCommentVNode("",!0)],10,Ua),[[e.vShow,n.show]])]),_:3})]),_:3},16,["show","class","aria-hidden"])}const Ya=s._export_sfc(Ha,[["render",Ga]]);const Za={name:"ListSection",components:{vnodes:{name:"vnodes",render:t=>t.$attrs.vnodes},DtButton:s.DtButton},props:{id:{type:String,default(){return s.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}}},Qa=["id","aria-labelledby"],Xa=["id"],Ja=["id"],eo=["id"],to={class:"d-d-flex"};function no(t,a,n,i,r,o){const l=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,Xa)):e.createCommentVNode("",!0),!o.isCollapsible||r.showAll?(e.openBlock(),e.createElementBlock("ol",{key:1,id:`${n.id}-list-section-content`},[e.renderSlot(t.$slots,"default")],8,Ja)):(e.openBlock(),e.createElementBlock("ol",{key:2,id:`${n.id}-list-section-content`},[e.createVNode(l,{vnodes:o.displayedItems},null,8,["vnodes"])],8,eo)),e.createElementVNode("div",to,[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,Qa)}const ao=s._export_sfc(Za,[["render",no]]),oo={name:"DtListItemGroup",props:{id:{type:String,default(){return s.getUniqueString()}},heading:{type:String,default:""},headingClass:{type:[String,Array,Object],default:""},listClass:{type:[String,Array,Object],default:""}}},ro=["id","aria-labelledby"],io=["id"];function so(t,a,n,i,r,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,io)):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"default")],10,ro)}const lo=s._export_sfc(oo,[["render",so]]),co={name:"DtPagination",components:{DtButton:s.DtButton,DtIcon:s.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),i=Math.floor(n/2),r=this.currentPage-i,o=this.currentPage+i;return[1,"...",...this.range(r,o),"...",this.totalPages]}},methods:{range(t,a){const n=[];t=t>0?t:1;for(let i=t;i<=a;i++)n.push(i);return n},changePage(t){this.currentPage=t,this.$emit("change",this.currentPage)}}},uo=["aria-label"],ho={key:0,class:"d-fc-tertiary d-w24 d-ta-center","data-qa":"dt-pagination-separator"};function mo(t,a,n,i,r,o){const l=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]=c=>o.changePage(r.currentPage-1))},{icon:e.withCtx(()=>[e.createVNode(l,{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,(c,h)=>(e.openBlock(),e.createElementBlock("div",{key:`page-${c}-${h}`,class:e.normalizeClass({"d-as-flex-end":isNaN(Number(c))})},[isNaN(Number(c))?(e.openBlock(),e.createElementBlock("div",ho,[e.createVNode(l,{name:"more-horizontal",size:"300"})])):(e.openBlock(),e.createBlock(d,{key:1,"aria-label":n.pageNumberAriaLabel(c),kind:r.currentPage===c?"default":"muted",importance:r.currentPage===c?"primary":"clear","label-class":"",onClick:m=>o.changePage(c)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c),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]=c=>o.changePage(r.currentPage+1))},{icon:e.withCtx(()=>[e.createVNode(l,{name:"chevron-right",size:"300"})]),_:1},8,["aria-label","disabled","importance","class"])],8,uo)}const fo=s._export_sfc(co,[["render",mo]]),po={warning:"d-radio--warning",error:"d-radio--error",success:"d-radio--success"},go={name:"DtRadio",components:{DtValidationMessages:s.DtValidationMessages},mixins:[s.InputMixin,s.CheckableMixin,s.GroupableMixin,s.MessagesMixin],inheritAttrs:!1,props:{value:{type:[String,Number],default:""}},emits:["input","focus","focusin","focusout","click"],data(){return{hasSlotContent:s.hasSlotContent}},computed:{inputValidationClass(){return po[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))}}},_o={class:"d-radio__input"},bo=["checked","name","value","disabled"],yo={class:"d-radio__copy d-radio__label","data-qa":"radio-label-description-container"};function vo(t,a,n,i,r,o){const l=e.resolveComponent("dt-validation-messages");return e.openBlock(),e.createElementBlock("label",null,[e.createElementVNode("div",{class:e.normalizeClass(["d-radio-group",{"d-radio-group--disabled":t.internalDisabled}])},[e.createElementVNode("div",_o,[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,bo)]),e.createElementVNode("div",yo,[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),r.hasSlotContent(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(l,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 So=s._export_sfc(go,[["render",vo]]),Co={name:"DtRadioGroup",extends:lt,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}`}}},Eo={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}}},ko=["id","tabindex","aria-labelledby","aria-hidden"];function wo(t,a,n,i,r,o){return e.withDirectives((e.openBlock(),e.createElementBlock("div",{id:`dt-panel-${n.id}`,role:"tabpanel",tabindex:r.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,ko)),[[e.vShow,!n.hidden]])}const Io=s._export_sfc(Eo,[["render",wo]]),Do={error:"d-checkbox--error",warning:"d-checkbox--warning",success:"d-checkbox--success"},To={name:"DtCheckbox",components:{DtValidationMessages:s.DtValidationMessages},mixins:[s.InputMixin,s.CheckableMixin,s.GroupableMixin,s.MessagesMixin],inheritAttrs:!1,emits:["input","focusin","focusout"],computed:{inputValidationClass(){return Do[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"])}}},Oo={class:"d-checkbox__input"},No=["checked","name","value","disabled",".indeterminate"],Bo={key:0,class:"d-checkbox__copy d-checkbox__label","data-qa":"checkbox-label-description-container"};function Lo(t,a,n,i,r,o){const l=e.resolveComponent("dt-validation-messages");return e.openBlock(),e.createElementBlock("label",null,[e.createElementVNode("div",{class:e.normalizeClass(["d-checkbox-group",{"d-checkbox-group--disabled":t.internalDisabled}])},[e.createElementVNode("div",Oo,[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,No)]),o.hasLabelOrDescription?(e.openBlock(),e.createElementBlock("div",Bo,[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(l,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 xo=s._export_sfc(To,[["render",Lo]]),Ao={name:"DtCheckboxGroup",extends:lt,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:""},Vo={xs:"d-chip__close--xs",sm:"d-chip__close--sm",md:""},Po={xs:"200",sm:"200",md:"200"},Mo={name:"DtChip",components:{DtButton:s.DtButton,DtIcon:s.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 s.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:s.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 Po[this.size]}},methods:{chipClasses(){return[this.$attrs["grouped-chip"]?"d-chip":"d-chip__label",Qe[this.size],this.labelClass]},chipCloseButtonClasses(){return["d-chip__close",Vo[this.size]]},onClose(){this.hideClose||this.$emit("close")}}},Ro={class:"d-chip"},zo={key:0,"data-qa":"dt-chip-icon",class:"d-chip__icon"},$o={key:1,"data-qa":"dt-chip-avatar"},Fo=["id"];function qo(t,a,n,i,r,o){const l=e.resolveComponent("dt-icon"),d=e.resolveComponent("dt-button");return e.openBlock(),e.createElementBlock("span",Ro,[(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(()=>[r.hasSlotContent(t.$slots.icon)?(e.openBlock(),e.createElementBlock("span",zo,[e.renderSlot(t.$slots,"icon")])):r.hasSlotContent(t.$slots.avatar)?(e.openBlock(),e.createElementBlock("span",$o,[e.renderSlot(t.$slots,"avatar")])):e.createCommentVNode("",!0),r.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,Fo)):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]=c=>t.$emit("close"))}),{icon:e.withCtx(()=>[e.createVNode(l,{name:"close",size:o.closeButtonIconSize},null,8,["size"])]),_:1},16,["class","aria-label"]))])}const dt=s._export_sfc(Mo,[["render",qo]]),Xe={xs:"d-select--xs",sm:"d-select--sm",md:"",lg:"d-select--lg",xl:"d-select--xl"},Xt={error:"d-select__input--error",warning:"d-select__input--warning",success:"d-select__input--success"},Ho=t=>!t.index||typeof t.index=="number",Uo=t=>t.value?typeof t.value=="string"||typeof t.value=="number":!1,Wo=t=>t.label?typeof t.label=="string":!1,Ko=t=>t?t.every(a=>!(!Ho(a)||!Uo(a)||!Wo(a))):!0,jo={name:"DtSelectMenu",components:{DtValidationMessages:s.DtValidationMessages},mixins:[s.MessagesMixin],inheritAttrs:!1,props:{label:{type:String,default:""},description:{type:String,default:""},options:{type:Array,default:()=>[],validator:t=>Ko(t)},size:{type:String,default:"md",validator:t=>Object.keys(Xe).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:s.LABEL_SIZE_MODIFIERS,DESCRIPTION_SIZE_MODIFIERS:s.DESCRIPTION_SIZE_MODIFIERS,SELECT_SIZE_MODIFIERS:Xe,SELECT_STATE_MODIFIERS:Xt,hasSlotContent:s.hasSlotContent}},computed:{selectListeners(){return{input:()=>{},change:t=>this.emitValue(t.target.value,t)}},state(){return s.getValidationState(this.formattedMessages)},selectKey(){return s.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)}}},Go=["aria-details"],Yo=["id"],Zo=["disabled"],Qo=["value"];function Xo(t,a,n,i,r,o){const l=e.resolveComponent("dt-validation-messages");return e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("label",null,[r.hasSlotContent(t.$slots.label)||n.label?(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:0,"aria-details":o.labelAriaDetails,class:["d-label",r.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,Go)):e.createCommentVNode("",!0),r.hasSlotContent(t.$slots.description)||n.description?(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:1,id:o.descriptionKey,class:["d-description",r.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,Yo)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["d-select",r.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",r.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,Qo))),128))])],16,Zo)],2)]),e.createVNode(l,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 Jo=s._export_sfc(jo,[["render",Xo]]),Jt=["status","alert"],It=6e3,er={name:"DtToast",components:{DtNoticeIcon:_.DtNoticeIcon,DtNoticeContent:_.DtNoticeContent,DtNoticeAction:_.DtNoticeAction},mixins:[_.SrOnlyCloseButtonMixin],props:{titleId:{type:String,default(){return s.utils.getUniqueString()}},contentId:{type:String,default(){return s.utils.getUniqueString()}},title:{type:String,default:""},message:{type:String,default:""},role:{type:String,default:"status",validator:t=>Jt.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>=It}},emits:["close","click","update:show"],data(){return{isShown:!1,minDuration:It}},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))}}},tr=["aria-hidden"],nr={class:"d-toast__dialog"};function ar(t,a,n,i,r,o){const l=e.resolveComponent("dt-notice-icon"),d=e.resolveComponent("dt-notice-content"),c=e.resolveComponent("dt-notice-action");return r.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":(!r.isShown).toString()},[e.createElementVNode("div",nr,[e.createVNode(l,{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(c,{"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,tr)):e.createCommentVNode("",!0)}const or=s._export_sfc(er,[["render",ar]]),Dt={sm:"d-toggle--small",md:""},rr=[!1,!0,"mixed"],ir={name:"DtToggle",inheritAttrs:!1,model:{prop:"checked",event:"change"},props:{id:{type:String,default(){return s.getUniqueString()}},disabled:{type:Boolean,default:!1},checked:{type:[Boolean,String],default:!1,validator:t=>rr.includes(t)},toggleOnClick:{type:Boolean,default:!0},size:{type:String,default:"md",validator:t=>Object.keys(Dt).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:s.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",Dt[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)}}},sr={class:"d-d-flex d-ai-center"},lr=["for"],dr=["id","role","aria-checked","disabled","aria-disabled"],cr={key:0,class:"d-toggle__inner"};function ur(t,a,n,i,r,o){return e.openBlock(),e.createElementBlock("div",sr,[r.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,lr)):e.createCommentVNode("",!0),e.createElementVNode("button",e.mergeProps({id:n.id,role:o.toggleRole,type:"button","aria-checked":r.internalChecked.toString(),disabled:n.disabled,"aria-disabled":n.disabled.toString(),class:o.toggleClasses},o.inputListeners),[n.showIcon?(e.openBlock(),e.createElementBlock("span",cr)):e.createCommentVNode("",!0)],16,dr)])}const hr=s._export_sfc(ir,[["render",ur]]),ae={"{win}":"layout-grid","{arrow-right}":"arrow-right","{arrow-left}":"arrow-left","{arrow-up}":"arrow-up","{arrow-down}":"arrow-down","{cmd}":"command"},en={"{plus}":"plus"},mr=Object.keys(ae),fr={name:"DtKeyboardShortcut",components:{DtIcon:s.DtIcon},props:{inverted:{type:Boolean,default:!1},shortcut:{type:String,required:!0},screenReaderText:{type:String,default:null}},data(){return{SHORTCUTS_ICON_ALIASES:ae,separator:/\+/gi}},computed:{icons(){return{...ae,...en}},shortcutWithSeparator(){return this.shortcut.replace(this.separator,"{plus}")},formattedShortcut(){return Object.keys(ae).reduce((t,a)=>t.replace(new RegExp("{"+a+"}","gi"),ae[a]),this.shortcutWithSeparator)},formattedShortcutSplit(){const t=Object.keys(this.icons).join("|"),a=new RegExp(`(${t})`,"gi");return this.formattedShortcut.split(a).filter(Boolean)}}},pr={key:0,class:"sr-only"},gr=["innerHTML"];function _r(t,a,n,i,r,o){const l=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",pr,e.toDisplayString(n.screenReaderText),1)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.formattedShortcutSplit,(d,c)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[o.icons[d]?(e.openBlock(),e.createBlock(l,{key:`${c}-${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:`${c}-${d}`,"aria-hidden":"true",class:e.normalizeClass([n.inverted?"d-fc-secondary-inverted":"d-fc-tertiary","d-mr2"]),innerHTML:d},null,10,gr))],64))),256))],2)}const br=s._export_sfc(fr,[["render",_r]]),Je={LEFT:"left",RIGHT:"right"},tn=["sm","md","lg",null],yr={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(Je).includes(t)},footerClass:{type:[String,Array,Object],default:""},footerHeight:{type:String,default:"64px"},responsiveBreakpoint:{type:String,default:null,validator:t=>tn.includes(t)}},computed:{responsiveClass(){if(this.responsiveBreakpoint)return`d-root-layout__responsive--${this.responsiveBreakpoint}`},bodyClasses(){return[this.bodyClass,{"d-root-layout__body--invert":this.sidebarPosition===Je.RIGHT}]}}};function vr(t,a,n,i,r,o){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["root-layout d-root-layout",{"d-root-layout--fixed":n.fixed},o.responsiveClass]),"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("div",{ref:"root-layout-body",class:e.normalizeClass(["d-root-layout__body",o.bodyClasses]),"data-qa":"dt-root-layout-body"},[e.createElementVNode("aside",{ref:"root-layout-sidebar",class:e.normalizeClass(["d-root-layout__sidebar",{"d-root-layout__sidebar--sticky":n.fixed},n.sidebarClass]),style:e.normalizeStyle({"flex-basis":n.sidebarWidth}),"data-qa":"dt-root-layout-sidebar"},[e.renderSlot(t.$slots,"sidebar")],6),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)],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 Sr=s._export_sfc(yr,[["render",vr]]),Q={default:"column",column:"column",row:"row","row-reverse":"row-reverse","column-reverse":"column-reverse"},nn=["sm","md","lg","xl"],ct=["0","100","200","300","400","500","600"];function Tt(t){return t===Q.default}function Ot(t){if(me(t)==="string")return Tt(t)?null:Q[t];if(me(t)==="object"){const{default:a}=t;return Tt(a)?null:Q[a]}else return null}function me(t){return typeof t}function Cr(t){return Ot(t)?`d-stack--${Q[Ot(t)]}`:null}function Er(t){return me(t)==="object"?[...nn.map(a=>t[a]?`d-stack--${a}--${t[a]}`:null)]:null}function kr(t){return ct.includes(t)?`d-stack--gap-${t}`:null}function wr(t){if(me(t)==="string")return Object.keys(Q).includes(t);if(me(t)==="object"){const{default:a}=t;return Object.keys(Q).includes(a)}else return null}function Ir(t){return ct.includes(t)}const Dr={name:"DtStack",props:{direction:{type:[String,Object],default:"column",validator:t=>wr(t)},as:{type:String,default:"div"},gap:{type:String,default:"0",validator:t=>Ir(t)}},data(){return{DT_STACK_DIRECTION:Q,DT_STACK_GAP:ct,DT_STACK_RESPONSIVE_BREAKPOINTS:nn}},computed:{stackGap(){return kr(this.gap)},defaultDirection(){return Cr(this.direction)},stackResponsive(){return Er(this.direction)}}};function Tr(t,a,n,i,r,o){return e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.as),{class:e.normalizeClass(["d-stack",o.defaultDirection,o.stackResponsive,o.stackGap])},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},8,["class"])}const Or=s._export_sfc(Dr,[["render",Tr]]);const an={__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 i=t,r=e.reactive(new Map),o=e.reactive(new Map),l=e.ref([]),d=e.ref(null),c=e.ref(!1),h=e.ref(null),m=e.ref("top");let u=0,p=0,f=!1,g=0,v=null,D=null,L=0,oe=0;const Y=e.computed(()=>{if(i.itemSize===null){const b={"-1":{accumulator:0}},S=i.items,y=i.sizeField,z=i.minItemSize;let A=1e4,U=0,I;for(let V=0,le=S.length;V<le;V++)I=S[V][y]||z,I<A&&(A=I),U+=I,b[V]={accumulator:U,size:I};return D=A,b}return[]}),re=e.computed(()=>i.items.length&&typeof i.items[0]!="object"),Ve=e.computed(()=>{const b={};for(let S=0,y=i.items.length;S<y;S++)b[i.items[S][i.keyField]]=S;return b});e.watch(Y,()=>{ee(!1)},{deep:!0}),e.onMounted(()=>{e.nextTick(()=>{ee(!0),c.value=!0})});const H=(b,S,y,z,A)=>{const U=e.markRaw({id:oe++,index:S,used:!0,key:z,type:A}),I=e.shallowReactive({item:y,position:0,nr:U});return b.value.push(I),I},$=(b,S=!1)=>{const y=o,z=b.nr.type;let A=y.get(z);A||(A=[],y.set(z,A)),A.push(b),S||(b.nr.used=!1,b.position=-9999)},ie=()=>{const b=i.direction==="vertical";let S;return b?S={start:h.value.scrollTop,end:h.value.scrollTop+h.value.clientHeight}:S={start:h.value.scrollLeft,end:h.value.scrollLeft+h.value.clientWidth},S},se=()=>{throw setTimeout(()=>{console.error("It seems the scroller element isn't scrolling, so it tries to render all the items at once.","Scroller:",h),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")},J=()=>{l.value.sort((b,S)=>b.nr.index-S.nr.index)},ee=(b,S=!1)=>{var gt,_t,bt,yt,vt,St,Ct,Et;const y=i.itemSize,z=D,A=re.value?null:i.keyField,U=i.items,I=U.length,V=Y.value,le=r,ft=o,ye=l,Cn=Ve;let P,B,ve,F,W;if(!I)P=B=F=W=ve=0;else{const k=ie();if(S){let T=k.start-g.value;if(T<0&&(T=-T),y===null&&T<z.value||T<y)return{continuous:!0}}g=k.start;const M=i.buffer;if(k.start-=M,k.end+=M,y===null){let T,de=0,kt=I-1,R=~~(I/2),wt;do wt=R,T=(gt=V[R])==null?void 0:gt.accumulator,T<k.start?de=R:R<I-1&&((_t=V[R+1])==null?void 0:_t.accumulator)>k.start&&(kt=R),R=~~((de+kt)/2);while(R!==wt);for(R<0&&(R=0),P=R,ve=(bt=V[I-1])==null?void 0:bt.accumulator,B=R;B<I&&((yt=V[B])==null?void 0:yt.accumulator)<k.end;B++);for(B===-1?B=U.length-1:(B++,B>I&&(B=I)),F=u;F<I&&((vt=V[F])==null?void 0:vt.accumulator)<k.start;F++);for(W=F;W<I&&((St=V[W])==null?void 0:St.accumulator)<k.end;W++);}else{P=~~(k.start/y);const T=P%1;P-=T,B=Math.ceil(k.end/y),F=Math.max(0,Math.floor(k.start/y)),W=Math.floor(k.end/y),P<0&&(P=0),B>I&&(B=I),F<0&&(F=0),W>I&&(W=I),ve=Math.ceil(I/1)*y}}B-P>1e3&&se(),L=ve;let C;const Se=P<=p&&B>=P;if(Se)for(let k=0,M=ye.value.length;k<M;k++)C=ye.value[k],C!=null&&C.nr.used&&(b&&(C.nr.index=Cn[C.item[A]]),(C.nr.index==null||C.nr.index<P||C.nr.index>=B)&&$(C));const pt=Se?null:new Map;let q,K,Ce;for(let k=P;k<B;k++){q=U[k];const M=A?q==null?void 0:q[A]:q;if(M==null)throw new Error(`Key is ${M} on item (keyField is '${A}')`);if(C=le.get(M),!y&&!((Ct=V[k])!=null&&Ct.size)){C&&$(C);continue}K=q.type;let T=ft.get(K);if(!C)Se?T&&T.length?C=T.pop():C=H(ye,k,q,M,K):(Ce=pt.get(K)||0,(!T||Ce>=T.length)&&(C=H(ye,k,q,M,K),$(C,!0),T=ft.get(K)),C=T[Ce],pt.set(K,Ce+1)),le.delete(C.nr.key),C.nr.used=!0,C.nr.index=k,C.nr.key=M,C.nr.type=K,le.set(M,C);else if(!C.nr.used&&(C.nr.used=!0,T)){const de=T.indexOf(C);de!==-1&&T.splice(de,1)}C.item=q,y===null?(C.position=(Et=V[k-1])==null?void 0:Et.accumulator,C.offset=0):(C.position=Math.floor(k)*y,C.offset=k%1*y)}return u=P,p=B,clearTimeout(v),v=setTimeout(J,300),{continuous:Se}},Pe=b=>{const S=i.direction==="vertical"?{scroll:"scrollTop",start:"top"}:{scroll:"scrollLeft",start:"left"},y=h.value,z=S.scroll;y[z]=b},Me=b=>{var y;let S;i.itemSize===null?S=b>0?(y=Y.value[b-1])==null?void 0:y.accumulator:0:S=Math.floor(b)*i.itemSize,Pe(S)},Re=()=>{const b=h.value;m.value!=="middle"&&(m.value="middle",n("user-position","middle")),b.scrollTop===0&&(m.value="top",n("user-position","top")),b.scrollTop+b.clientHeight===b.scrollHeight&&(m.value="bottom",n("user-position","bottom")),f||(f=!0,requestAnimationFrame(()=>{f=!1,ee(!1,!0)}))};return a({scrollToItem:Me,_updateVisibleItems:ee}),(b,S)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"scroller",ref:h,class:e.normalizeClass(["vue-recycle-scroller",{ready:c.value,[`direction-${t.direction}`]:!0}]),onScrollPassive:Re},[(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(l.value,y=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.itemTag),e.mergeProps({key:y.nr.id,style:c.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&&d.value===y.nr.key}]]},e.toHandlers(t.skipHover?{}:{mouseenter:()=>{d.value=y.nr.key},mouseleave:()=>{d.value=null}})),{default:e.withCtx(()=>[e.renderSlot(b.$slots,"default",{item:y.item,index:y.nr.index,active:y.nr.used})]),_:2},1040,["style","class"]))),128))]),_:3},8,["style","class"]))],34))}},Nr={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],i=this.vscrollData.sizes[t];n!=null&&n!==i&&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())}},Br={name:"DynamicScroller",components:{CoreScroller:an,DtScrollerItem:Nr},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,i;if(a.borderBoxSize){const r=a.borderBoxSize[0];n=r.inlineSize,i=r.blockSize}else n=a.contentRect.width,i=a.contentRect.height;a.target.$_vs_onResize(a.target.$_vs_id,n,i)}}})})),{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:i}=this,r=this.vscrollData.sizes,o=a.length;for(let l=0;l<o;l++){const d=a[l],c=i?l:d[n];let h=r[c];typeof h>"u"&&!this.$_undefinedMap[c]&&(h=0),t.push({item:d,[n]:c,size:h})}return t}},watch:{simpleArray:{handler(t){this.vscrollData.simpleArray=t},immediate:!0},itemsWithSize(t,a){const n=this.$el.scrollTop;let i=0,r=0;const o=Math.min(t.length,a.length);for(let d=0;d<o&&!(i>=n);d++)i+=a[d].size||this.minItemSize,r+=t[d].size||this.minItemSize;const l=r-i;l!==0&&(this.$el.scrollTop+=l)}},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 Lr(t,a,n,i,r,o){const l=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:c,index:h,active:m})=>[e.createVNode(l,{item:c,active:m,"size-dependencies":[c.message],"data-index":h},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default",e.normalizeProps(e.guardReactiveProps({item:c.item,index:h,active:m,itemWithSize:c})))]),_:2},1032,["item","active","size-dependencies","data-index"])]),_:3},16,["items","min-item-size","direction","key-field","list-tag","item-tag"])}const xr=s._export_sfc(Br,[["render",Lr]]),Ar={__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 i=t;e.provide("emit",n);const r=e.ref(null),o=e.computed(()=>({width:typeof i.scrollerWidth=="number"?`${i.scrollerWidth}px`:i.scrollerWidth,height:typeof i.scrollerHeight=="number"?`${i.scrollerHeight}px`:i.scrollerHeight}));e.watch(i,()=>{m()},{deep:!0,immediate:!0});function l(){r.value&&r.value.scrollToBottom()}function d(u){r.value&&r.value.scrollToItem(u)}function c(){r.value&&(i.dynamic?r.value.dynamicScrollerUpdateItems():r.value._updateVisibleItems(!0))}function h(){r.value&&(i.dynamic?r.value.dynamicScrollerUpdateItemsFromBottom():r.value._updateVisibleItems(!1,!0))}function m(){i.dynamic&&!i.minItemSize&&console.error("scroller error: 'minItemSize' is required on 'dynamic' mode."),!i.dynamic&&!i.itemSize&&console.error("scroller error: 'itemSize' is required.")}return a({scrollToBottom:l,scrollToItem:d,updateItems:c,updateItemsFromBottom:h}),(u,p)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.dynamic?xr:an),{ref_key:"scroller",ref:r,"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:p[0]||(p[0]=f=>u.$emit("user-position",f))},{default:e.withCtx(({item:f,index:g,active:v})=>[e.renderSlot(u.$slots,"default",e.normalizeProps(e.guardReactiveProps({item:f,index:g,active:v})))]),_:3},40,["items","item-size","min-item-size","direction","key-field","list-tag","item-tag","style"]))}},on=0,ke="MMMM";function fe(t){"@babel/helpers - typeof";return fe=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},fe(t)}function x(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 w(t,a){if(a.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+a.length+" present")}function O(t){w(1,arguments);var a=Object.prototype.toString.call(t);return t instanceof Date||fe(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 rn(t,a){w(2,arguments);var n=O(t),i=x(a);return isNaN(i)?new Date(NaN):(i&&n.setDate(n.getDate()+i),n)}function sn(t,a){w(2,arguments);var n=O(t),i=x(a);if(isNaN(i))return new Date(NaN);if(!i)return n;var r=n.getDate(),o=new Date(n.getTime());o.setMonth(n.getMonth()+i+1,0);var l=o.getDate();return r>=l?o:(n.setFullYear(o.getFullYear(),o.getMonth(),r),n)}function Vr(t,a){w(2,arguments);var n=O(t).getTime(),i=x(a);return new Date(n+i)}var Pr={};function _e(){return Pr}function Mr(t,a){var n,i,r,o,l,d,c,h;w(1,arguments);var m=_e(),u=x((n=(i=(r=(o=a==null?void 0:a.weekStartsOn)!==null&&o!==void 0?o:a==null||(l=a.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&r!==void 0?r:m.weekStartsOn)!==null&&i!==void 0?i:(c=m.locale)===null||c===void 0||(h=c.options)===null||h===void 0?void 0:h.weekStartsOn)!==null&&n!==void 0?n:0);if(!(u>=0&&u<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=O(t),f=p.getDay(),g=(f<u?7:0)+f-u;return p.setDate(p.getDate()-g),p.setHours(0,0,0,0),p}function Rr(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 zr(t){return w(1,arguments),t instanceof Date||fe(t)==="object"&&Object.prototype.toString.call(t)==="[object Date]"}function $r(t){if(w(1,arguments),!zr(t)&&typeof t!="number")return!1;var a=O(t);return!isNaN(Number(a))}function Fr(t,a){w(2,arguments);var n=x(a);return Vr(t,-n)}var qr=864e5;function Hr(t){w(1,arguments);var a=O(t),n=a.getTime();a.setUTCMonth(0,1),a.setUTCHours(0,0,0,0);var i=a.getTime(),r=n-i;return Math.floor(r/qr)+1}function Ie(t){w(1,arguments);var a=1,n=O(t),i=n.getUTCDay(),r=(i<a?7:0)+i-a;return n.setUTCDate(n.getUTCDate()-r),n.setUTCHours(0,0,0,0),n}function ln(t){w(1,arguments);var a=O(t),n=a.getUTCFullYear(),i=new Date(0);i.setUTCFullYear(n+1,0,4),i.setUTCHours(0,0,0,0);var r=Ie(i),o=new Date(0);o.setUTCFullYear(n,0,4),o.setUTCHours(0,0,0,0);var l=Ie(o);return a.getTime()>=r.getTime()?n+1:a.getTime()>=l.getTime()?n:n-1}function Ur(t){w(1,arguments);var a=ln(t),n=new Date(0);n.setUTCFullYear(a,0,4),n.setUTCHours(0,0,0,0);var i=Ie(n);return i}var Wr=6048e5;function Kr(t){w(1,arguments);var a=O(t),n=Ie(a).getTime()-Ur(a).getTime();return Math.round(n/Wr)+1}function De(t,a){var n,i,r,o,l,d,c,h;w(1,arguments);var m=_e(),u=x((n=(i=(r=(o=a==null?void 0:a.weekStartsOn)!==null&&o!==void 0?o:a==null||(l=a.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&r!==void 0?r:m.weekStartsOn)!==null&&i!==void 0?i:(c=m.locale)===null||c===void 0||(h=c.options)===null||h===void 0?void 0:h.weekStartsOn)!==null&&n!==void 0?n:0);if(!(u>=0&&u<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=O(t),f=p.getUTCDay(),g=(f<u?7:0)+f-u;return p.setUTCDate(p.getUTCDate()-g),p.setUTCHours(0,0,0,0),p}function dn(t,a){var n,i,r,o,l,d,c,h;w(1,arguments);var m=O(t),u=m.getUTCFullYear(),p=_e(),f=x((n=(i=(r=(o=a==null?void 0:a.firstWeekContainsDate)!==null&&o!==void 0?o:a==null||(l=a.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&r!==void 0?r:p.firstWeekContainsDate)!==null&&i!==void 0?i:(c=p.locale)===null||c===void 0||(h=c.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(f>=1&&f<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var g=new Date(0);g.setUTCFullYear(u+1,0,f),g.setUTCHours(0,0,0,0);var v=De(g,a),D=new Date(0);D.setUTCFullYear(u,0,f),D.setUTCHours(0,0,0,0);var L=De(D,a);return m.getTime()>=v.getTime()?u+1:m.getTime()>=L.getTime()?u:u-1}function jr(t,a){var n,i,r,o,l,d,c,h;w(1,arguments);var m=_e(),u=x((n=(i=(r=(o=a==null?void 0:a.firstWeekContainsDate)!==null&&o!==void 0?o:a==null||(l=a.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&r!==void 0?r:m.firstWeekContainsDate)!==null&&i!==void 0?i:(c=m.locale)===null||c===void 0||(h=c.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&n!==void 0?n:1),p=dn(t,a),f=new Date(0);f.setUTCFullYear(p,0,u),f.setUTCHours(0,0,0,0);var g=De(f,a);return g}var Gr=6048e5;function Yr(t,a){w(1,arguments);var n=O(t),i=De(n,a).getTime()-jr(n,a).getTime();return Math.round(i/Gr)+1}function E(t,a){for(var n=t<0?"-":"",i=Math.abs(t).toString();i.length<a;)i="0"+i;return n+i}var Zr={y:function(a,n){var i=a.getUTCFullYear(),r=i>0?i:1-i;return E(n==="yy"?r%100:r,n.length)},M:function(a,n){var i=a.getUTCMonth();return n==="M"?String(i+1):E(i+1,2)},d:function(a,n){return E(a.getUTCDate(),n.length)},a:function(a,n){var i=a.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return i.toUpperCase();case"aaa":return i;case"aaaaa":return i[0];case"aaaa":default:return i==="am"?"a.m.":"p.m."}},h:function(a,n){return E(a.getUTCHours()%12||12,n.length)},H:function(a,n){return E(a.getUTCHours(),n.length)},m:function(a,n){return E(a.getUTCMinutes(),n.length)},s:function(a,n){return E(a.getUTCSeconds(),n.length)},S:function(a,n){var i=n.length,r=a.getUTCMilliseconds(),o=Math.floor(r*Math.pow(10,i-3));return E(o,n.length)}};const j=Zr;var te={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Qr={G:function(a,n,i){var r=a.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return i.era(r,{width:"abbreviated"});case"GGGGG":return i.era(r,{width:"narrow"});case"GGGG":default:return i.era(r,{width:"wide"})}},y:function(a,n,i){if(n==="yo"){var r=a.getUTCFullYear(),o=r>0?r:1-r;return i.ordinalNumber(o,{unit:"year"})}return j.y(a,n)},Y:function(a,n,i,r){var o=dn(a,r),l=o>0?o:1-o;if(n==="YY"){var d=l%100;return E(d,2)}return n==="Yo"?i.ordinalNumber(l,{unit:"year"}):E(l,n.length)},R:function(a,n){var i=ln(a);return E(i,n.length)},u:function(a,n){var i=a.getUTCFullYear();return E(i,n.length)},Q:function(a,n,i){var r=Math.ceil((a.getUTCMonth()+1)/3);switch(n){case"Q":return String(r);case"QQ":return E(r,2);case"Qo":return i.ordinalNumber(r,{unit:"quarter"});case"QQQ":return i.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return i.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return i.quarter(r,{width:"wide",context:"formatting"})}},q:function(a,n,i){var r=Math.ceil((a.getUTCMonth()+1)/3);switch(n){case"q":return String(r);case"qq":return E(r,2);case"qo":return i.ordinalNumber(r,{unit:"quarter"});case"qqq":return i.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return i.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return i.quarter(r,{width:"wide",context:"standalone"})}},M:function(a,n,i){var r=a.getUTCMonth();switch(n){case"M":case"MM":return j.M(a,n);case"Mo":return i.ordinalNumber(r+1,{unit:"month"});case"MMM":return i.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return i.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return i.month(r,{width:"wide",context:"formatting"})}},L:function(a,n,i){var r=a.getUTCMonth();switch(n){case"L":return String(r+1);case"LL":return E(r+1,2);case"Lo":return i.ordinalNumber(r+1,{unit:"month"});case"LLL":return i.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return i.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return i.month(r,{width:"wide",context:"standalone"})}},w:function(a,n,i,r){var o=Yr(a,r);return n==="wo"?i.ordinalNumber(o,{unit:"week"}):E(o,n.length)},I:function(a,n,i){var r=Kr(a);return n==="Io"?i.ordinalNumber(r,{unit:"week"}):E(r,n.length)},d:function(a,n,i){return n==="do"?i.ordinalNumber(a.getUTCDate(),{unit:"date"}):j.d(a,n)},D:function(a,n,i){var r=Hr(a);return n==="Do"?i.ordinalNumber(r,{unit:"dayOfYear"}):E(r,n.length)},E:function(a,n,i){var r=a.getUTCDay();switch(n){case"E":case"EE":case"EEE":return i.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return i.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(r,{width:"short",context:"formatting"});case"EEEE":default:return i.day(r,{width:"wide",context:"formatting"})}},e:function(a,n,i,r){var o=a.getUTCDay(),l=(o-r.weekStartsOn+8)%7||7;switch(n){case"e":return String(l);case"ee":return E(l,2);case"eo":return i.ordinalNumber(l,{unit:"day"});case"eee":return i.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return i.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(o,{width:"short",context:"formatting"});case"eeee":default:return i.day(o,{width:"wide",context:"formatting"})}},c:function(a,n,i,r){var o=a.getUTCDay(),l=(o-r.weekStartsOn+8)%7||7;switch(n){case"c":return String(l);case"cc":return E(l,n.length);case"co":return i.ordinalNumber(l,{unit:"day"});case"ccc":return i.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return i.day(o,{width:"narrow",context:"standalone"});case"cccccc":return i.day(o,{width:"short",context:"standalone"});case"cccc":default:return i.day(o,{width:"wide",context:"standalone"})}},i:function(a,n,i){var r=a.getUTCDay(),o=r===0?7:r;switch(n){case"i":return String(o);case"ii":return E(o,n.length);case"io":return i.ordinalNumber(o,{unit:"day"});case"iii":return i.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return i.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return i.day(r,{width:"short",context:"formatting"});case"iiii":default:return i.day(r,{width:"wide",context:"formatting"})}},a:function(a,n,i){var r=a.getUTCHours(),o=r/12>=1?"pm":"am";switch(n){case"a":case"aa":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return i.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return i.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(a,n,i){var r=a.getUTCHours(),o;switch(r===12?o=te.noon:r===0?o=te.midnight:o=r/12>=1?"pm":"am",n){case"b":case"bb":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return i.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return i.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(a,n,i){var r=a.getUTCHours(),o;switch(r>=17?o=te.evening:r>=12?o=te.afternoon:r>=4?o=te.morning:o=te.night,n){case"B":case"BB":case"BBB":return i.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return i.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return i.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(a,n,i){if(n==="ho"){var r=a.getUTCHours()%12;return r===0&&(r=12),i.ordinalNumber(r,{unit:"hour"})}return j.h(a,n)},H:function(a,n,i){return n==="Ho"?i.ordinalNumber(a.getUTCHours(),{unit:"hour"}):j.H(a,n)},K:function(a,n,i){var r=a.getUTCHours()%12;return n==="Ko"?i.ordinalNumber(r,{unit:"hour"}):E(r,n.length)},k:function(a,n,i){var r=a.getUTCHours();return r===0&&(r=24),n==="ko"?i.ordinalNumber(r,{unit:"hour"}):E(r,n.length)},m:function(a,n,i){return n==="mo"?i.ordinalNumber(a.getUTCMinutes(),{unit:"minute"}):j.m(a,n)},s:function(a,n,i){return n==="so"?i.ordinalNumber(a.getUTCSeconds(),{unit:"second"}):j.s(a,n)},S:function(a,n){return j.S(a,n)},X:function(a,n,i,r){var o=r._originalDate||a,l=o.getTimezoneOffset();if(l===0)return"Z";switch(n){case"X":return Bt(l);case"XXXX":case"XX":return Z(l);case"XXXXX":case"XXX":default:return Z(l,":")}},x:function(a,n,i,r){var o=r._originalDate||a,l=o.getTimezoneOffset();switch(n){case"x":return Bt(l);case"xxxx":case"xx":return Z(l);case"xxxxx":case"xxx":default:return Z(l,":")}},O:function(a,n,i,r){var o=r._originalDate||a,l=o.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+Nt(l,":");case"OOOO":default:return"GMT"+Z(l,":")}},z:function(a,n,i,r){var o=r._originalDate||a,l=o.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+Nt(l,":");case"zzzz":default:return"GMT"+Z(l,":")}},t:function(a,n,i,r){var o=r._originalDate||a,l=Math.floor(o.getTime()/1e3);return E(l,n.length)},T:function(a,n,i,r){var o=r._originalDate||a,l=o.getTime();return E(l,n.length)}};function Nt(t,a){var n=t>0?"-":"+",i=Math.abs(t),r=Math.floor(i/60),o=i%60;if(o===0)return n+String(r);var l=a||"";return n+String(r)+l+E(o,2)}function Bt(t,a){if(t%60===0){var n=t>0?"-":"+";return n+E(Math.abs(t)/60,2)}return Z(t,a)}function Z(t,a){var n=a||"",i=t>0?"-":"+",r=Math.abs(t),o=E(Math.floor(r/60),2),l=E(r%60,2);return i+o+n+l}const Xr=Qr;var Lt=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"})}},cn=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"})}},Jr=function(a,n){var i=a.match(/(P+)(p+)?/)||[],r=i[1],o=i[2];if(!o)return Lt(a,n);var l;switch(r){case"P":l=n.dateTime({width:"short"});break;case"PP":l=n.dateTime({width:"medium"});break;case"PPP":l=n.dateTime({width:"long"});break;case"PPPP":default:l=n.dateTime({width:"full"});break}return l.replace("{{date}}",Lt(r,n)).replace("{{time}}",cn(o,n))},ei={p:cn,P:Jr};const ti=ei;var ni=["D","DD"],ai=["YY","YYYY"];function oi(t){return ni.indexOf(t)!==-1}function ri(t){return ai.indexOf(t)!==-1}function xt(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 ii={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"}},si=function(a,n,i){var r,o=ii[a];return typeof o=="string"?r=o:n===1?r=o.one:r=o.other.replace("{{count}}",n.toString()),i!=null&&i.addSuffix?i.comparison&&i.comparison>0?"in "+r:r+" ago":r};const li=si;function ze(t){return function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=a.width?String(a.width):t.defaultWidth,i=t.formats[n]||t.formats[t.defaultWidth];return i}}var di={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},ci={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},ui={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},hi={date:ze({formats:di,defaultWidth:"full"}),time:ze({formats:ci,defaultWidth:"full"}),dateTime:ze({formats:ui,defaultWidth:"full"})};const mi=hi;var fi={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},pi=function(a,n,i,r){return fi[a]};const gi=pi;function ce(t){return function(a,n){var i=n!=null&&n.context?String(n.context):"standalone",r;if(i==="formatting"&&t.formattingValues){var o=t.defaultFormattingWidth||t.defaultWidth,l=n!=null&&n.width?String(n.width):o;r=t.formattingValues[l]||t.formattingValues[o]}else{var d=t.defaultWidth,c=n!=null&&n.width?String(n.width):t.defaultWidth;r=t.values[c]||t.values[d]}var h=t.argumentCallback?t.argumentCallback(a):a;return r[h]}}var _i={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},bi={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},yi={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"]},vi={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"]},Si={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"}},Ci={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"}},Ei=function(a,n){var i=Number(a),r=i%100;if(r>20||r<10)switch(r%10){case 1:return i+"st";case 2:return i+"nd";case 3:return i+"rd"}return i+"th"},ki={ordinalNumber:Ei,era:ce({values:_i,defaultWidth:"wide"}),quarter:ce({values:bi,defaultWidth:"wide",argumentCallback:function(a){return a-1}}),month:ce({values:yi,defaultWidth:"wide"}),day:ce({values:vi,defaultWidth:"wide"}),dayPeriod:ce({values:Si,defaultWidth:"wide",formattingValues:Ci,defaultFormattingWidth:"wide"})};const wi=ki;function ue(t){return function(a){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.width,r=i&&t.matchPatterns[i]||t.matchPatterns[t.defaultMatchWidth],o=a.match(r);if(!o)return null;var l=o[0],d=i&&t.parsePatterns[i]||t.parsePatterns[t.defaultParseWidth],c=Array.isArray(d)?Di(d,function(u){return u.test(l)}):Ii(d,function(u){return u.test(l)}),h;h=t.valueCallback?t.valueCallback(c):c,h=n.valueCallback?n.valueCallback(h):h;var m=a.slice(l.length);return{value:h,rest:m}}}function Ii(t,a){for(var n in t)if(t.hasOwnProperty(n)&&a(t[n]))return n}function Di(t,a){for(var n=0;n<t.length;n++)if(a(t[n]))return n}function Ti(t){return function(a){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=a.match(t.matchPattern);if(!i)return null;var r=i[0],o=a.match(t.parsePattern);if(!o)return null;var l=t.valueCallback?t.valueCallback(o[0]):o[0];l=n.valueCallback?n.valueCallback(l):l;var d=a.slice(r.length);return{value:l,rest:d}}}var Oi=/^(\d+)(th|st|nd|rd)?/i,Ni=/\d+/i,Bi={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},Li={any:[/^b/i,/^(a|c)/i]},xi={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Ai={any:[/1/i,/2/i,/3/i,/4/i]},Vi={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},Pi={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]},Mi={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},Ri={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]},zi={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},$i={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}},Fi={ordinalNumber:Ti({matchPattern:Oi,parsePattern:Ni,valueCallback:function(a){return parseInt(a,10)}}),era:ue({matchPatterns:Bi,defaultMatchWidth:"wide",parsePatterns:Li,defaultParseWidth:"any"}),quarter:ue({matchPatterns:xi,defaultMatchWidth:"wide",parsePatterns:Ai,defaultParseWidth:"any",valueCallback:function(a){return a+1}}),month:ue({matchPatterns:Vi,defaultMatchWidth:"wide",parsePatterns:Pi,defaultParseWidth:"any"}),day:ue({matchPatterns:Mi,defaultMatchWidth:"wide",parsePatterns:Ri,defaultParseWidth:"any"}),dayPeriod:ue({matchPatterns:zi,defaultMatchWidth:"any",parsePatterns:$i,defaultParseWidth:"any"})};const qi=Fi;var Hi={code:"en-US",formatDistance:li,formatLong:mi,formatRelative:gi,localize:wi,match:qi,options:{weekStartsOn:0,firstWeekContainsDate:1}};const Ui=Hi;var Wi=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Ki=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ji=/^'([^]*?)'?$/,Gi=/''/g,Yi=/[a-zA-Z]/;function X(t,a,n){var i,r,o,l,d,c,h,m,u,p,f,g,v,D,L,oe,Y,re;w(2,arguments);var Ve=String(a),H=_e(),$=(i=(r=n==null?void 0:n.locale)!==null&&r!==void 0?r:H.locale)!==null&&i!==void 0?i:Ui,ie=x((o=(l=(d=(c=n==null?void 0:n.firstWeekContainsDate)!==null&&c!==void 0?c:n==null||(h=n.locale)===null||h===void 0||(m=h.options)===null||m===void 0?void 0:m.firstWeekContainsDate)!==null&&d!==void 0?d:H.firstWeekContainsDate)!==null&&l!==void 0?l:(u=H.locale)===null||u===void 0||(p=u.options)===null||p===void 0?void 0:p.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!(ie>=1&&ie<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var se=x((f=(g=(v=(D=n==null?void 0:n.weekStartsOn)!==null&&D!==void 0?D:n==null||(L=n.locale)===null||L===void 0||(oe=L.options)===null||oe===void 0?void 0:oe.weekStartsOn)!==null&&v!==void 0?v:H.weekStartsOn)!==null&&g!==void 0?g:(Y=H.locale)===null||Y===void 0||(re=Y.options)===null||re===void 0?void 0:re.weekStartsOn)!==null&&f!==void 0?f:0);if(!(se>=0&&se<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!$.localize)throw new RangeError("locale must contain localize property");if(!$.formatLong)throw new RangeError("locale must contain formatLong property");var J=O(t);if(!$r(J))throw new RangeError("Invalid time value");var ee=Rr(J),Pe=Fr(J,ee),Me={firstWeekContainsDate:ie,weekStartsOn:se,locale:$,_originalDate:J},Re=Ve.match(Ki).map(function(b){var S=b[0];if(S==="p"||S==="P"){var y=ti[S];return y(b,$.formatLong)}return b}).join("").match(Wi).map(function(b){if(b==="''")return"'";var S=b[0];if(S==="'")return Zi(b);var y=Xr[S];if(y)return!(n!=null&&n.useAdditionalWeekYearTokens)&&ri(b)&&xt(b,a,String(t)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&oi(b)&&xt(b,a,String(t)),y(Pe,b,$.localize,Me);if(S.match(Yi))throw new RangeError("Format string contains an unescaped latin alphabet character `"+S+"`");return b}).join("");return Re}function Zi(t){var a=t.match(ji);return a?a[1].replace(Gi,"'"):t}function Qi(t){w(1,arguments);var a=O(t),n=a.getDate();return n}function Xi(t){w(1,arguments);var a=O(t),n=a.getFullYear(),i=a.getMonth(),r=new Date(0);return r.setFullYear(n,i+1,0),r.setHours(0,0,0,0),r.getDate()}function we(t){w(1,arguments);var a=O(t),n=a.getMonth();return n}function et(t){return w(1,arguments),O(t).getFullYear()}function Ji(t,a){w(2,arguments);var n=O(t),i=O(a);return n.getTime()===i.getTime()}function es(t,a){w(2,arguments);var n=O(t),i=x(a),r=n.getFullYear(),o=n.getDate(),l=new Date(0);l.setFullYear(r,i,15),l.setHours(0,0,0,0);var d=Xi(l);return n.setMonth(i,Math.min(o,d)),n}function ts(t,a){if(w(2,arguments),fe(a)!=="object"||a===null)throw new RangeError("values parameter must be an object");var n=O(t);return isNaN(n.getTime())?new Date(NaN):(a.year!=null&&n.setFullYear(a.year),a.month!=null&&(n=es(n,a.month)),a.date!=null&&n.setDate(x(a.date)),a.hours!=null&&n.setHours(x(a.hours)),a.minutes!=null&&n.setMinutes(x(a.minutes)),a.seconds!=null&&n.setSeconds(x(a.seconds)),a.milliseconds!=null&&n.setMilliseconds(x(a.milliseconds)),n)}function ns(t,a){w(2,arguments);var n=x(a);return sn(t,-n)}const tt=t=>t?new Date(t):new Date,as=(t,a,n)=>{const i=tt(JSON.parse(JSON.stringify(t))),r=[];for(let o=0;o<7;o++){const l=rn(i,o),d=we(l)!==a;r.push({text:l.getDate(),value:l,currentMonth:!d,isFirstDayOfMonth:l.getDate()===1&&!d,selected:n?l.getDate()===n&&!d:!1})}return r},os=(t,a)=>!t||!a?!1:Ji(t,a),rs=(t,a,n)=>{const i=[],r=tt(new Date(a,t)),o=tt(new Date(a,t+1,0)),d=Mr(r,{weekStartsOn:on}),c=h=>{const m=as(h,t,n);if(i.push({days:m}),!i[i.length-1].days.some(u=>os(u.value,o))){const u=rn(h,7);c(u)}};return c(d),i},is=(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)),i=n.slice(0,a),r=n.slice(a+1,n.length);return[n[a]].concat(...r).concat(...i)},ss=(t,a)=>X(new Date(2e3,t,1),a);function ls(t,a){const n=e.ref(we(t.selectedDate)),i=e.ref(et(t.selectedDate)),r=e.ref(null),o=e.ref(0),l=e.ref([]),d=e.computed(()=>rs(n.value,i.value,r.value)),c=e.computed(()=>(v,D)=>ss(v,D));e.watch(n,()=>{p(),a("calendar-days",d.value)},{immediate:!0}),e.watch(i,()=>{p(),a("calendar-days",d.value)},{immediate:!0});function h(v){l.value.includes(v)||l.value.push(v)}function m(){l.value[0].focus()}function u(v){switch(v.key){case"ArrowLeft":v.preventDefault(),o.value===0?(o.value=3,l.value[o.value].focus()):(o.value--,l.value[o.value].focus());break;case"ArrowRight":v.preventDefault(),o.value===3?(o.value=0,l.value[o.value].focus()):(o.value++,l.value[o.value].focus());break;case"ArrowDown":v.preventDefault(),a("focus-day");break;case"Tab":a("focus-day");break;case"Escape":a("close-datepicker");break}}function p(){const v=et(t.selectedDate),D=we(t.selectedDate);v!==i.value||D!==n.value?r.value=null:r.value=Qi(t.selectedDate)}function f(v){const D=ts(t.selectedDate,{month:n.value,year:i.value}),L=++v?sn(D,1):ns(D,1);n.value=we(L)}function g(v){i.value=i.value+v}return{selectMonth:n,selectYear:i,formattedMonth:c,setDayRef:h,focusMonthYearPicker:m,handleKeyDown:u,changeMonth:f,changeYear:g}}const ds={class:"d-datepicker__month-year-picker"},cs=["aria-label"],us=["aria-label"],hs=["aria-label"],ms=["aria-label"],fs={__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 i=t,{selectMonth:r,selectYear:o,formattedMonth:l,setDayRef:d,focusMonthYearPicker:c,handleKeyDown:h,changeMonth:m,changeYear:u}=ls(i,n);return e.onMounted(()=>{c()}),a({focusMonthYearPicker:c}),(p,f)=>(e.openBlock(),e.createElementBlock("div",ds,[e.createElementVNode("div",null,[e.createElementVNode("button",{id:"prevYearButton",ref:g=>{g&&e.unref(d)(g)},type:"button","aria-label":`${t.changeToLabel} ${t.prevYearLabel} ${e.unref(o)-1}`,onClick:f[0]||(f[0]=g=>e.unref(u)(-1)),onKeydown:f[1]||(f[1]=g=>e.unref(h)(g))},[e.createVNode(e.unref(s.DtIcon),{name:"chevrons-left",size:"400"})],40,cs),e.createElementVNode("button",{id:"prevMonthButton",ref:g=>{g&&e.unref(d)(g)},type:"button","aria-label":`${t.changeToLabel} ${t.prevMonthLabel} ${e.unref(l)(e.unref(r)-1,e.unref(ke))}`,onClick:f[2]||(f[2]=g=>e.unref(m)(-1)),onKeydown:f[3]||(f[3]=g=>e.unref(h)(g))},[e.createVNode(e.unref(s.DtIcon),{name:"chevron-left",size:"300"})],40,us)]),e.createElementVNode("div",null,[e.createElementVNode("p",null,e.toDisplayString(e.unref(l)(e.unref(r),e.unref(ke)))+" "+e.toDisplayString(e.unref(o)),1)]),e.createElementVNode("div",null,[e.createElementVNode("button",{id:"nextMonthButton",ref:g=>{g&&e.unref(d)(g)},type:"button","aria-label":`${t.changeToLabel} ${t.nextMonthLabel} ${e.unref(l)(e.unref(r)+1,e.unref(ke))}`,onClick:f[4]||(f[4]=g=>e.unref(m)(1)),onKeydown:f[5]||(f[5]=g=>e.unref(h)(g))},[e.createVNode(e.unref(s.DtIcon),{name:"chevron-right",size:"300"})],40,hs),e.createElementVNode("button",{id:"nextYearButton",ref:g=>{g&&e.unref(d)(g)},type:"button","aria-label":`${t.changeToLabel} ${t.nextYearLabel} ${e.unref(o)+1}`,onClick:f[6]||(f[6]=g=>e.unref(u)(1)),onKeydown:f[7]||(f[7]=g=>e.unref(h)(g))},[e.createVNode(e.unref(s.DtIcon),{name:"chevrons-right",size:"300"})],40,ms)])]))}};function ps(t,a){const n=e.ref(null),i=e.ref(0),r=e.ref([]),o=e.computed(()=>is(t.locale,on));e.watch(()=>t.calendarDays,()=>{i.value=0,r.value=[],n.value=null});function l(u){return`${t.selectDayLabel} ${u.text} ${X(u.value,ke)} ${et(u.value)}`}function d(u,p){!r.value.includes(u)&&p&&r.value.push(u)}function c(u){switch(u.key){case"ArrowUp":u.preventDefault(),i.value-=7;try{r.value[i.value].focus()}catch{a("focus-month-year-picker")}break;case"ArrowDown":u.preventDefault(),i.value+=7;try{r.value[i.value].focus()}catch{a("focus-month-year-picker")}break;case"ArrowLeft":u.preventDefault(),i.value>0&&(i.value-=1,r.value[i.value].focus());break;case"ArrowRight":u.preventDefault(),i.value<r.value.length-1&&(i.value+=1,r.value[i.value].focus());break;case"Tab":u.preventDefault(),a("focus-month-year-picker");break;case"Escape":a("close-datepicker");break}}function h(){i.value=0,r.value[i.value].focus()}function m(u){u.currentMonth&&(n.value=u.text,a("select-date",u.value))}return{selectedDay:n,weekDays:o,dayAriaLabel:l,setDayRef:d,handleKeyDown:c,focusFirstDay:h,selectDay:m}}const gs={class:"d-datepicker__calendar"},_s={class:"d-datepicker__week-day"},bs=["aria-label","onClick"],ys={__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 i=t,{selectedDay:r,weekDays:o,dayAriaLabel:l,setDayRef:d,handleKeyDown:c,focusFirstDay:h,selectDay:m}=ps(i,n);return a({focusFirstDay:h}),(u,p)=>(e.openBlock(),e.createElementBlock("div",gs,[e.createElementVNode("div",_s,[(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,g)=>(e.openBlock(),e.createElementBlock("div",{key:g,class:"d-datepicker__week"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.days,(v,D)=>(e.openBlock(),e.createElementBlock("button",{key:g+D,ref_for:!0,ref:L=>{L&&e.unref(d)(L,v.currentMonth)},class:e.normalizeClass(["d-datepicker__day",{"d-datepicker__day--disabled":!v.currentMonth,"d-datepicker__day--selected":e.unref(r)?v.text===e.unref(r)&&v.currentMonth:v.selected}]),type:"button","aria-label":e.unref(l)(v),onClick:L=>e.unref(m)(v),onKeydown:p[0]||(p[0]=L=>e.unref(c)(L))},e.toDisplayString(v.text),43,bs))),128))]))),128))]))}},vs={class:"d-datepicker"},Ss={class:"d-datepicker--header"},Cs={class:"d-datepicker--body"},Es={__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(i){a.value=i}return(i,r)=>(e.openBlock(),e.createElementBlock("div",vs,[e.createElementVNode("div",Ss,[e.createVNode(fs,{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:r[0]||(r[0]=o=>i.$refs.calendar.focusFirstDay()),onCloseDatepicker:r[1]||(r[1]=o=>i.$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",Cs,[e.createVNode(ys,{ref:"calendar",locale:t.locale,"calendar-days":a.value,"select-day-label":t.selectDayLabel,onSelectDate:r[2]||(r[2]=o=>i.$emit("selected-date",o)),onFocusMonthYearPicker:r[3]||(r[3]=o=>i.$refs.monthYearPicker.focusMonthYearPicker()),onCloseDatepicker:r[4]||(r[4]=o=>i.$emit("close-datepicker"))},null,8,["locale","calendar-days","select-day-label"])])]))}};function ks(t){return X(t,"EEEE, MMMM d, yyyy")}function ws(t){return X(t,"MMMM d, yyyy")}function Is(t,a=!0){return X(t,a?"EEE, MMM d, yyyy":"MMM d, yyyy")}function Ds(t,a=!1){return X(t,a?"MMM d":"MMMM d")}function Ts(t){return X(t,"MM/dd/yy")}const Os={name:"DtRecipeComboboxWithPopover",components:{DtCombobox:Gt,DtPopover:_.DtPopover,ComboboxLoadingList:Wt,ComboboxEmptyList:Kt},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 s.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(he).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:he,isListShown:!1,isInputFocused:!1,isListFocused:!1,externalAnchor:s.getUniqueString(),hasSlotContent:s.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 i,r,o;const a=(r=(i=this.$refs.popover)==null?void 0:i.tip)==null?void 0:r.popper,n=this.$refs.input;(o=t.composedPath())!=null&&o.some(l=>[a,n].includes(l))||this.closeComboboxList()},openOnArrowKeyPress(){this.showList!==null||this.isListShown||!this.openWithArrowKeys||this.showComboboxList()}}},Ns=["id"],Bs={ref:"header"},Ls=["onMouseleave","onFocusout"],xs={ref:"footer"};function As(t,a,n,i,r,o){const l=e.resolveComponent("combobox-loading-list"),d=e.resolveComponent("combobox-empty-list"),c=e.resolveComponent("dt-popover"),h=e.resolveComponent("dt-combobox");return e.openBlock(),e.createBlock(h,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":r.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:m})=>[e.createElementVNode("div",{id:r.externalAnchor,ref:"input",onFocusin:a[0]||(a[0]=(...u)=>o.onFocusIn&&o.onFocusIn(...u)),onKeydown:[a[1]||(a[1]=e.withKeys(u=>o.openOnArrowKeyPress(u),["up"])),a[2]||(a[2]=e.withKeys(u=>o.openOnArrowKeyPress(u),["down"]))]},[e.renderSlot(t.$slots,"input",{inputProps:m,onInput:o.handleDisplayList})],40,Ns)]),list:e.withCtx(({opened:m,listProps:u,clearHighlightIndex:p})=>[e.createVNode(c,{ref:"popover",open:r.isListShown,"onUpdate:open":a[3]||(a[3]=f=>r.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":r.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:m},e.createSlots({content:e.withCtx(()=>[e.createElementVNode("div",{ref:"listWrapper",class:e.normalizeClass([r.DROPDOWN_PADDING_CLASSES[n.padding],n.listClass]),onMouseleave:p,onFocusout:p},[n.loading?(e.openBlock(),e.createBlock(l,e.normalizeProps(e.mergeProps({key:0},u)),null,16)):n.emptyList&&n.emptyStateMessage?(e.openBlock(),e.createBlock(d,e.mergeProps({key:1},u,{message:n.emptyStateMessage}),null,16,["message"])):e.renderSlot(t.$slots,"list",{key:2,listProps:u})],42,Ls)]),_:2},[r.hasSlotContent(t.$slots.header)?{name:"headerContent",fn:e.withCtx(()=>[e.createElementVNode("div",Bs,[e.renderSlot(t.$slots,"header")],512)]),key:"0"}:void 0,r.hasSlotContent(t.$slots.footer)?{name:"footerContent",fn:e.withCtx(()=>[e.createElementVNode("div",xs,[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 un=s._export_sfc(Os,[["render",As]]),hn={EXTRA_SMALL:"xs",SMALL:"sm",DEFAULT:"md"},Vs={xs:"xs",sm:"xs",md:"sm"},Ps={xs:1.4,sm:.4,md:.2},Ms={name:"DtRecipeComboboxMultiSelect",components:{DtRecipeComboboxWithPopover:un,DtInput:s.DtInput,DtChip:dt,DtValidationMessages:s.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=>s.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(hn).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:Vs,hasSlotContent:s.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 r;const n=this.getChipButtons().indexOf(t),i=a?n-1:n+1;i<0||i>=((r=this.$refs.chips)==null?void 0:r.length)||(this.getChipButtons()[n].blur(),this.getChipButtons()[i].focus(),this.closeComboboxList())},setChipsTopPosition(){const t=this.getInput();if(!t)return;const a=this.$refs.inputSlotWrapper,n=t.getBoundingClientRect().top-a.getBoundingClientRect().top,i=this.$refs.chipsWrapper;i.style.top=n-Ps[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 i=t.offsetLeft+this.getFullWidth(t);a.style.paddingLeft=i+"px";const r=n.getBoundingClientRect().height-4,o=t.offsetTop+2;r>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)}}},Rs={ref:"inputSlotWrapper",class:"d-ps-relative d-d-block"},zs={ref:"chipsWrapper",class:"d-ps-absolute d-mx2 d-pl1"},$s={ref:"header"},Fs={key:1,class:"d-ta-center d-py16"},qs={ref:"footer"};function Hs(t,a,n,i,r,o){const l=e.resolveComponent("dt-chip"),d=e.resolveComponent("dt-input"),c=e.resolveComponent("dt-validation-messages"),h=e.resolveComponent("dt-recipe-combobox-with-popover");return e.openBlock(),e.createBlock(h,{ref:"comboboxWithPopover",label:n.label,"show-list":n.showList,"max-height":n.listMaxHeight,"popover-offset":r.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:m})=>[e.createElementVNode("span",Rs,[e.createElementVNode("span",zs,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.selectedItems,u=>(e.openBlock(),e.createBlock(l,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:r.CHIP_SIZES[n.size]},e.toHandlers(o.chipListeners),{onKeyup:e.withKeys(p=>o.onChipRemove(u),["backspace"]),onClose:p=>o.onChipRemove(u)}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(u),1)]),_:2},1040,["size","onKeyup","onClose"]))),128))],512),e.createVNode(d,e.mergeProps({ref:"input",modelValue:r.value,"onUpdate:modelValue":a[0]||(a[0]=u=>r.value=u),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:m}),null,16,["modelValue","aria-label","label","description","placeholder","show-messages","messages","size","onInput"]),e.createVNode(c,{"validation-messages":n.maxSelectedMessage,"show-messages":r.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",Fs,e.toDisplayString(n.loadingMessage),1)):e.renderSlot(t.$slots,"list",{key:0})],544)]),_:2},[r.hasSlotContent(t.$slots.header)?{name:"header",fn:e.withCtx(()=>[e.createElementVNode("div",$s,[e.renderSlot(t.$slots,"header")],512)]),key:"0"}:void 0,r.hasSlotContent(t.$slots.footer)?{name:"footer",fn:e.withCtx(()=>[e.createElementVNode("div",qs,[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 Us=s._export_sfc(Ms,[["render",Hs]]),ut=["sm","md","lg","xl"];const Ws={name:"DtRecipeCallbarButton",components:{DtButton:s.DtButton,DtTooltip:s.DtTooltip},inheritAttrs:!0,props:{id:{type:String,default(){return s.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=>ut.includes(t)},importance:{type:String,default:""}},computed:{callbarButtonClass(){return[this.buttonClass,"dt-recipe-callbar-button","d-px0",{"dt-recipe-callbar-button--circle":this.circle,"d-btn--icon-only":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"}}};function Ks(t,a,n,i,r,o){const l=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(l,{importance:o.buttonImportance,kind:"muted","icon-position":"top","aria-disabled":n.disabled,"aria-label":n.ariaLabel,"label-class":o.callbarButtonTextClass,width:o.buttonWidth,class:e.normalizeClass(o.callbarButtonClass)},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default"),e.renderSlot(t.$slots,"icon")]),_:3},8,["importance","aria-disabled","aria-label","label-class","width","class"])],2)]),default:e.withCtx(()=>[e.renderSlot(t.$slots,"tooltip")]),_:3},8,["id"])}const mn=s._export_sfc(Ws,[["render",Ks]]);const js={name:"DtRecipeCallbarButtonWithPopover",components:{DtRecipeCallbarButton:mn,DtPopover:_.DtPopover,DtButton:s.DtButton,DtIcon:s.DtIcon},inheritAttrs:!1,props:{id:{type:String,default(){return s.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=>ut.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)}}},Gs={class:"d-d-flex d-ai-center"};function Ys(t,a,n,i,r,o){const l=e.resolveComponent("dt-recipe-callbar-button"),d=e.resolveComponent("dt-icon"),c=e.resolveComponent("dt-button"),h=e.resolveComponent("dt-popover");return e.openBlock(),e.createElementBlock("div",Gs,[e.createVNode(l,{"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(h,e.mergeProps({key:0,id:n.id,modal:!1,open:r.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(c,{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:r.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 Zs=s._export_sfc(js,[["render",Ys]]);const Qs={name:"DtRecipeContactInfo",components:{DtAvatar:ge,DtListItem:_.DtListItem},props:{id:{type:String,default(){return s.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")}}},Xs=["aria-labelledby"],Js={key:0,class:"dt-contact-info--avatars d-mrn4 d-d-flex d-fd-row"},el={"data-qa":"contact-info-header"},tl={"data-qa":"contact-info-subtitle"},nl={"data-qa":"contact-info-bottom"},al={"data-qa":"contact-info-right"};function ol(t,a,n,i,r,o){const l=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]=(...c)=>o.avatarClick&&o.avatarClick(...c))},[n.avatarList?(e.openBlock(),e.createElementBlock("span",Js,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.avatarList,(c,h)=>(e.openBlock(),e.createBlock(l,{key:h,size:n.avatarSize,seed:c.seed,"full-name":c.fullName,"image-src":c.src,"icon-name":n.avatarIcon,"overlay-icon":c.icon,"overlay-text":c.text,"avatar-class":[{"d-mln24":h>0,"d-bc-brand":!!c.halo}]},null,8,["size","seed","full-name","image-src","icon-name","overlay-icon","overlay-text","avatar-class"]))),128))])):(e.openBlock(),e.createBlock(l,{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,Xs)):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.createElementVNode("div",el,[e.renderSlot(t.$slots,"header",{},void 0,!0)])]),subtitle:e.withCtx(()=>[e.createElementVNode("div",tl,[e.renderSlot(t.$slots,"subtitle",{},void 0,!0)])]),bottom:e.withCtx(()=>[e.createElementVNode("div",nl,[e.renderSlot(t.$slots,"bottom",{},void 0,!0)])]),right:e.withCtx(()=>[e.createElementVNode("div",al,[e.renderSlot(t.$slots,"right",{},void 0,!0)])]),_:3},8,["id","role"])}const rl=s._export_sfc(Qs,[["render",ol],["__scopeId","data-v-3d0f9d2e"]]),fn=["green300","green100","red200","red100","gold100","gold200","black100","white"];const il={name:"DtRecipeTopBannerInfo",props:{colorCode:{type:String,default:"green300",validator:function(t){return fn.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]]}}},sl={class:"d-top-banner-info__left"},ll={class:"d-top-banner-info__middle d-my4"},dl={class:"d-top-banner-info__right d-ta-right"};function cl(t,a,n,i,r,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",sl,[e.renderSlot(t.$slots,"left")]),e.createElementVNode("div",ll,[e.renderSlot(t.$slots,"default")]),e.createElementVNode("div",dl,[e.renderSlot(t.$slots,"right")])],2)}const ul=s._export_sfc(il,[["render",cl]]),Te="promptmenu",Oe="promptcollect",Ne="promptplay",Be="gotoexpert",be="goto",Le="branch",xe="transfer",Ae="hangup",pn={[Te]:"keypad",[Oe]:"dialer",[Ne]:"volume-2",[Be]:"expert-node",[Le]:"branch",[be]:"call-merge",[xe]:"transfer",[Ae]:"phone-hang-up"},hl={[Te]:"Menu",[Oe]:"Collect",[Ne]:"Play",[Be]:"Expert",[Le]:"Branch",[be]:"Go-to",[xe]:"Transfer",[Ae]:"Hangup"},G={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"}},ml={[Te]:G.PROMPT,[Oe]:G.PROMPT,[Ne]:G.PROMPT,[Be]:G.LOGIC,[Le]:G.LOGIC,[be]:G.LOGIC,[xe]:G.TERMINAL,[Ae]:G.TERMINAL};const fl={name:"DtRecipeIvrNode",components:{DtCard:Ut,DtButton:s.DtButton,DtDropdown:Zt,DtIcon:s.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 pn[this.nodeType]},headerColor(){const{normal:t,selected:a}=ml[this.nodeType];return this.isSelected?a:t},isGotoNode(){return this.nodeType===be}},methods:{openMenu(){this.isOpen=!0}}},pl={class:"d-d-flex d-ai-center"},gl={class:"d-fs-200 d-fw-bold","data-qa":"ivr-node-label"},_l={class:"d-w164"};function bl(t,a,n,i,r,o){const l=e.resolveComponent("dt-icon"),d=e.resolveComponent("dt-button"),c=e.resolveComponent("dt-dropdown"),h=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(h,{"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",pl,[e.createVNode(d,{"aria-label":n.nodeType,importance:"clear",kind:"muted","data-qa":"dt-ivr-node-icon"},{icon:e.withCtx(()=>[e.createVNode(l,{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",gl,e.toDisplayString(n.nodeLabel),1)]),e.createVNode(c,{open:r.isOpen,"onUpdate:open":a[0]||(a[0]=m=>r.isOpen=m),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(l,{name:"more-vertical",size:"200"})]),_:1},8,["aria-label","onClick"])]),list:e.withCtx(({close:m})=>[e.createElementVNode("div",_l,[e.renderSlot(t.$slots,"menuItems",{close:m})])]),_:3},8,["open"])]),content:e.withCtx(()=>[e.renderSlot(t.$slots,"content")]),_:3},8,["container-class","header-class"])],16)}const yl=s._export_sfc(fl,[["render",bl]]);const vl={name:"DtRecipeGroupedChip",components:{DtChip:dt},data(){return{hasSlotContent:s.hasSlotContent}}},Sl={"data-qa":"grouped-chip",class:"d-d-inline-flex d-ws-nowrap d-bgc-unset"},Cl={key:0,"data-qa":"left-grouped-chip-icon"},El={key:0,"data-qa":"left-grouped-chip-content"},kl={key:0,"data-qa":"right-grouped-chip-icon"},wl={key:0,"data-qa":"right-grouped-chip-content"};function Il(t,a,n,i,r,o){const l=e.resolveComponent("dt-chip");return e.openBlock(),e.createElementBlock("div",Sl,[e.createVNode(l,{"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(()=>[r.hasSlotContent(t.$slots.leftContent)?(e.openBlock(),e.createElementBlock("div",El,[e.renderSlot(t.$slots,"leftContent")])):e.createCommentVNode("",!0)]),_:2},[r.hasSlotContent(t.$slots.leftIcon)?{name:"icon",fn:e.withCtx(()=>[r.hasSlotContent(t.$slots.leftIcon)?(e.openBlock(),e.createElementBlock("div",Cl,[e.renderSlot(t.$slots,"leftIcon")])):e.createCommentVNode("",!0)]),key:"0"}:void 0]),1024),e.createVNode(l,{"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(()=>[r.hasSlotContent(t.$slots.rightIcon)?(e.openBlock(),e.createElementBlock("div",kl,[e.renderSlot(t.$slots,"rightIcon")])):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[r.hasSlotContent(t.$slots.rightContent)?(e.openBlock(),e.createElementBlock("div",wl,[e.renderSlot(t.$slots,"rightContent")])):e.createCommentVNode("",!0)]),_:3})])}const Dl=s._export_sfc(vl,[["render",Il]]);const Tl={name:"DtRecipeSettingsMenuButton",components:{DtButton:s.DtButton,DtIcon:s.DtIcon},inheritAttrs:!1,props:{updateAvailable:{type:Boolean,default:!1},ariaLabel:{type:String,required:!0}}};function Ol(t,a,n,i,r,o){const l=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(l,{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(l,{name:"more-vertical",size:"300"})]),_:1},16,["aria-label"]))}const Nl=s._export_sfc(Tl,[["render",Ol],["__scopeId","data-v-b0dfa8b3"]]),N={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"},gn={[N.INBOX]:"inbox",[N.CONTACTS]:"contacts",[N.CHANNELS]:"hash",[N.THREADS]:"thread",[N.LOCKED_CHANNEL]:"lock",[N.QUICK_START]:"sparkle",[N.COACHING_GROUP]:"users",[N.COACHING_CENTER]:"external-link","locked channel unread":"lock-filled","channel unread":"hash-bold",[N.ASSIGNED]:"at-sign",[N.DIGITAL]:"message"},pe={"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"},_n="If type is contact center, color must be oneof the following:"+Object.keys(pe).join(", "),bn=["300","200"],Bl={},Ll={"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"},xl=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),Al=[xl];function Vl(t,a){return e.openBlock(),e.createElementBlock("svg",Ll,Al)}const Pl=s._export_sfc(Bl,[["render",Vl]]),Ml={name:"DtRecipeLeftbarGeneralRowIcon",components:{DtIcon:s.DtIcon,IconDialbot:Pl},props:{type:{type:String,default:null},color:{type:String,default:null},iconSize:{type:String,default:"300"}},computed:{isIconType(){return![N.DIALBOT,N.CONTACT_CENTER].includes(this.type)},isContactCenterType(){return this.type===N.CONTACT_CENTER},isDialbotType(){return this.type===N.DIALBOT},getIconName(){return gn[this.type]},contactCenterIconClasses(){return["dt-leftbar-row__icon-cc",pe[this.color]]},dialbotClasses(){return["d-w24","d-h24","d-d-flex","d-ai-center","d-jc-center"]}}};function Rl(t,a,n,i,r,o){const l=e.resolveComponent("dt-icon"),d=e.resolveComponent("icon-dialbot");return o.isIconType?(e.openBlock(),e.createBlock(l,{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 zl=s._export_sfc(Ml,[["render",Rl]]);const $l={name:"DtRecipeGeneralRow",components:{DtEmojiTextWrapper:rt.DtEmojiTextWrapper,DtBadge:it,DtIcon:s.DtIcon,DtButton:s.DtButton,DtTooltip:s.DtTooltip,DtRecipeLeftbarGeneralRowIcon:zl},inheritAttrs:!1,props:{type:{type:String,default:"inbox",validator:t=>Object.values(N).includes(t)},ariaLabel:{type:String,default:""},description:{type:String,required:!0},color:{type:String,default:null,validator:t=>Object.keys(pe).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=>bn.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 N.CHANNELS:if(this.hasUnreads)return"channel unread";break;case N.LOCKED_CHANNEL:if(this.hasUnreads)return"locked channel unread";break}return this.type},generalRowListeners(){return s.extractVueListeners(this.$attrs)},getAriaLabel(){return this.ariaLabel?this.ariaLabel:s.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===N.CONTACT_CENTER&&!Object.keys(pe).includes(this.color)&&console.error(_n)},adjustLabelWidth(){var r,o,l,d,c,h;const t=((o=(r=this.$el)==null?void 0:r.querySelector(".dt-leftbar-row__primary"))==null?void 0:o.clientWidth)||0,a=((d=(l=this.$el)==null?void 0:l.querySelector(".dt-leftbar-row__omega"))==null?void 0:d.clientWidth)||0,n=((h=(c=this.$el)==null?void 0:c.querySelector(".dt-leftbar-row__alpha"))==null?void 0:h.clientWidth)||0,i=16;this.labelWidth=t-(a+n+i)+"px"}}},ht=t=>(e.pushScopeId("data-v-7580a758"),t=t(),e.popScopeId(),t),Fl=["data-qa","aria-label","title","href"],ql={class:"dt-leftbar-row__alpha"},Hl={key:0,class:"dt-leftbar-row__is-typing"},Ul=ht(()=>e.createElementVNode("span",null,null,-1)),Wl=ht(()=>e.createElementVNode("span",null,null,-1)),Kl=ht(()=>e.createElementVNode("span",null,null,-1)),jl=[Ul,Wl,Kl],Gl={key:0,class:"dt-leftbar-row__omega"},Yl={key:1,class:"dt-leftbar-row__active-voice"},Zl={key:3,class:"dt-leftbar-row__action","data-qa":"dt-leftbar-row-action"};function Ql(t,a,n,i,r,o){const l=e.resolveComponent("dt-recipe-leftbar-general-row-icon"),d=e.resolveComponent("dt-emoji-text-wrapper"),c=e.resolveComponent("dt-tooltip"),h=e.resolveComponent("dt-icon"),m=e.resolveComponent("dt-badge"),u=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",ql,[n.isTyping?(e.openBlock(),e.createElementBlock("div",Hl,jl)):e.renderSlot(t.$slots,"left",{key:1},()=>[e.createVNode(l,{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: ${r.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,Fl),o.hasActions?(e.openBlock(),e.createElementBlock("div",Gl,[n.dndText?(e.openBlock(),e.createBlock(c,{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",Yl,[e.createVNode(h,{size:"300",name:"activity"})])):o.showUnreadCount?(e.openBlock(),e.createBlock(c,{key:2,message:n.unreadCountTooltip,placement:"top"},{anchor:e.withCtx(()=>[e.createVNode(m,{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",Zl,[e.createVNode(c,{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:a[0]||(a[0]=p=>r.actionFocused=!0),onBlur:a[1]||(a[1]=p=>r.actionFocused=!1),onClick:a[2]||(a[2]=e.withModifiers(p=>t.$emit("call",p),["stop"]))},{icon:e.withCtx(()=>[e.createVNode(h,{name:"phone",size:"200"})]),_:1},8,["aria-label"])]),_:1},8,["message"])])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],2)}const mt=s._export_sfc($l,[["render",Ql],["__scopeId","data-v-7580a758"]]),Xl={name:"DtRecipeGroupRow",components:{DtIcon:s.DtIcon,DtRecipeGeneralRow:mt},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:["click"],computed:{ariaLabel(){return s.safeConcatStrings([this.groupCountText,this.names])}}};function Jl(t,a,n,i,r,o){const l=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),{left:e.withCtx(()=>[e.createVNode(l,{name:"users",size:"300"})]),_:1},16,["description","aria-label","unread-count","has-unreads","unread-count-tooltip","selected","is-typing"])}const ed=s._export_sfc(Xl,[["render",Jl]]),td={name:"DtRecipeContactRow",components:{DtAvatar:ge,DtRecipeGeneralRow:mt,DtEmojiTextWrapper:rt.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 s.extractVueListeners(this.$attrs)},contactDescription(){return s.safeConcatStrings([this.name,this.presenceText,this.userStatus])},iconName(){return this.noInitials?"user":null}}},nd={class:"dt-leftbar-row__status"};function ad(t,a,n,i,r,o){const l=e.resolveComponent("dt-avatar"),d=e.resolveComponent("dt-emoji-text-wrapper"),c=e.resolveComponent("dt-recipe-general-row");return e.openBlock(),e.createBlock(c,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]=h=>t.$emit("call",h))}),{left:e.withCtx(()=>[e.createVNode(l,{"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",nd,[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 od=s._export_sfc(td,[["render",ad]]),yn=["up","down"],vn=["mentions","messages"];const rd={name:"DtRecipeUnreadPill",components:{DtIcon:s.DtIcon},props:{kind:{type:String,required:!0,validator:t=>vn.includes(t)},direction:{type:String,required:!0,validator:t=>yn.includes(t)}},emits:["click"],computed:{unreadChipListeners(){return{click:t=>this.$emit("click",t)}}}},id={"data-qa":"dt-leftbar-unread-pill__label"};function sd(t,a,n,i,r,o){const l=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(l,{name:`arrow-${n.direction}`,size:"300"},null,8,["name"]),e.createElementVNode("span",id,[e.renderSlot(t.$slots,"default")])],16)}const ld=s._export_sfc(rd,[["render",sd]]),$e={NORMAL:"",SEARCHED:"d-bgc-warning-subtle",ERROR:"d-bgc-critical-subtle"},Fe="NORMAL";const dd={name:"DtRecipeFeedItemRow",components:{DtAvatar:ge,DtLazyShow:s.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:Fe,validator:t=>Object.keys($e).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===Fe},$e[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===Fe||this.faded===!0||(this.$refs.FeedItemRef.$el.classList.remove($e[this.state]),this.faded=!0)}}},cd={key:0,"data-qa":"dt-feed-item-row--header",class:"d-d-flex d-ai-center"},ud={class:"d-fs-200 d-lh-300 d-fw-bold d-to-ellipsis d-of-hidden d-ws-nowrap"},hd={class:"d-fs-100 d-mt2 d-lh-300 d-fc-tertiary d-fw-normal d-ml4 d-fl-shrink0"},md={class:"content-text-wrapper-class","data-qa":"dt-feed-item-row--content"},fd={class:"d-d-flex d-fw-wrap","data-qa":"dt-feed-item-row--reactions"},pd={"data-qa":"dt-feed-item-row--menu",class:"d-ps-absolute d-tn24 d-r12"};function gd(t,a,n,i,r,o){const l=e.resolveComponent("dt-avatar"),d=e.resolveComponent("dt-lazy-show"),c=e.resolveComponent("dt-list-item");return e.openBlock(),e.createBlock(c,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.openBlock(),e.createBlock(l,{key:0,"full-name":n.displayName,"image-src":n.avatarImageUrl,seed:n.avatarSeed},null,8,["full-name","image-src","seed"])):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",fd,[e.renderSlot(t.$slots,"reactions",{},void 0,!0)]),e.renderSlot(t.$slots,"threading",{},void 0,!0)]),right:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",pd,[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",cd,[e.createElementVNode("p",ud,e.toDisplayString(n.displayName),1),e.createElementVNode("time",hd,e.toDisplayString(n.time),1)])):e.createCommentVNode("",!0),e.createElementVNode("span",md,[e.renderSlot(t.$slots,"default",{},void 0,!0)])])]),_:3},16,["class"])}const _d=s._export_sfc(dd,[["render",gd],["__scopeId","data-v-de44d2c0"]]),nt={default:"dt-feed-item-pill--border-default",ai:"dt-feed-item-pill--border-ai",critical:"dt-feed-item-pill--border-critical"};const bd={name:"DtRecipeFeedItemPill",components:{DtItemLayout:_.DtItemLayout,DtIcon:s.DtIcon,DtCollapsible:Yt},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},borderColor:{type:String,default:"default",validator:t=>Object.keys(nt).includes(t)}},data(){return{hover:!1,expanded:!1}},computed:{computedIcon(){return this.toggleable&&this.hover?this.expanded?"chevron-down":"chevron-right":this.iconName},toggleableClass(){return this.toggleable?"d-c-pointer":""},borderClass(){return nt[this.borderColor]}},methods:{onClick(){this.toggleable&&(this.expanded=!this.expanded)}}},yd={class:"d-p8 d-bgc-secondary"},vd=["aria-label"],Sd={class:"d-fw-bold"},Cd={class:"d-jc-center d-d-flex"};function Ed(t,a,n,i,r,o){const l=e.resolveComponent("dt-icon"),d=e.resolveComponent("dt-item-layout"),c=e.resolveComponent("dt-collapsible");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["dt-feed-item-pill--border",o.borderClass,n.wrapperClass])},[e.createElementVNode("div",yd,[e.createVNode(c,{open:r.expanded},{anchor:e.withCtx(()=>[e.createElementVNode("button",{"aria-label":n.ariaLabel,"data-qa":"dt-feed-item-pill",class:e.normalizeClass(["d-baw0 d-bgc-moderate d-bar-pill d-w100p d-ta-left d-btn--circle",o.toggleableClass,n.buttonClass]),onFocusin:a[0]||(a[0]=h=>r.hover=!0),onFocusout:a[1]||(a[1]=h=>r.hover=!1),onMouseenter:a[2]||(a[2]=h=>r.hover=!0),onMouseleave:a[3]||(a[3]=h=>r.hover=!1),onClick:a[4]||(a[4]=(...h)=>o.onClick&&o.onClick(...h))},[e.createVNode(d,{class:"d-w100p d-p8"},{left:e.withCtx(()=>[e.createVNode(l,{size:"300",class:"dt-feed-item-pill--icon d-pr8","data-qa":"dt-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.createElementVNode("span",Sd,e.toDisplayString(n.title),1)]),_:3})],42,vd)]),content:e.withCtx(()=>[e.createElementVNode("div",Cd,[e.renderSlot(t.$slots,"content",{},void 0,!0)])]),_:3},8,["open"])])],2)}const kd=s._export_sfc(bd,[["render",Ed],["__scopeId","data-v-59051987"]]),wd={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)}}}},Id=["dateTime"];function Dd(t,a,n,i,r,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,Id)}const Td=s._export_sfc(wd,[["render",Dd]]),Sn=["emojiUnicodeOrShortname","isSelected","ariaLabel","tooltip","num"];const Od={name:"DtRecipeEmojiRow",components:{DtTooltip:s.DtTooltip,DtButton:s.DtButton,DtEmoji:s.DtEmoji,DtEmojiTextWrapper:rt.DtEmojiTextWrapper},mixins:[],props:{reactions:{type:Array,default:()=>[],validator:t=>{for(const a of t)if(!Sn.every(i=>a[i]!==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})}}},Nd={class:"dt-emoji-row"},Bd=["reaction"],Ld={"aria-hidden":"true"},xd={class:"d-mr4 d-d-inline-flex"},Ad={class:"d-fw-bold d-fs-100"};function Vd(t,a,n,i,r,o){const l=e.resolveComponent("dt-emoji-text-wrapper"),d=e.resolveComponent("dt-emoji"),c=e.resolveComponent("dt-button"),h=e.resolveComponent("dt-tooltip");return e.openBlock(),e.createElementBlock("span",Nd,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.reactions,m=>(e.openBlock(),e.createElementBlock("span",{key:m.unicodeOutput,reaction:m,class:"d-mr4 d-mb4"},[e.createVNode(h,{class:"d-d-inline-block","content-class":"d-wmx464",onShown:u=>o.emojiHovered(m,u)},{anchor:e.withCtx(({attrs:u})=>[e.createVNode(c,{importance:"clear",size:"sm","data-qa":"feed-item-reaction-button",class:e.normalizeClass(["dt-emoji-row__reaction",m.isSelected?"dt-emoji-row__reaction--selected":""]),"aria-label":m.ariaLabel,attrs:u,onClick:p=>o.emojiClicked(m)},{default:e.withCtx(()=>[e.createElementVNode("span",xd,[e.createVNode(d,{size:"200",code:m.emojiUnicodeOrShortname},null,8,["code"])]),e.createElementVNode("span",Ad,e.toDisplayString(m.num),1)]),_:2},1032,["class","aria-label","attrs","onClick"])]),default:e.withCtx(()=>[e.createElementVNode("span",Ld,[e.createVNode(l,{size:"200"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(m.tooltip),1)]),_:2},1024)])]),_:2},1032,["onShown"])],8,Bd))),128))])}const Pd=s._export_sfc(Od,[["render",Vd]]),at={warning:"dt-recipe-callbox-badge--warning"},ot={default:"dt-recipe-callbox--border-default",ai:"dt-recipe-callbox--border-ai",critical:"dt-recipe-callbox--border-critical"};const Md={name:"DtRecipeCallbox",components:{DtBadge:it,DtAvatar:ge},inheritAttrs:!1,props:{badgeText:{type:String,default:""},badgeColor:{type:String,default:null,validator:t=>t===null||Object.keys(at).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(ot).includes(t)},clickable:{type:Boolean,default:!1},isOnHold:{type:Boolean,default:!1}},emits:["click"],computed:{shouldShowAvatar(){return this.avatarFullName||this.avatarSrc},badgeClass(){return at[this.badgeColor]},borderClass(){return ot[this.borderColor]}},methods:{handleClick(t){this.clickable&&this.$emit("click",t)}}},Rd={"data-qa":"dt-recipe-callbox",class:"dt-recipe-callbox"},zd={key:0,"data-qa":"dt-recipe-callbox--video-wrapper",class:"dt-recipe-callbox--video"},$d={class:"dt-recipe-callbox--main-content-top"},Fd={class:"dt-recipe-callbox--content"},qd={key:0,"data-qa":"dt-recipe-callbox--badge-wrapper",class:"dt-recipe-callbox--content-badge"},Hd={key:1,"data-qa":"dt-recipe-callbox--subtitle-wrapper",class:"dt-recipe-callbox--content-subtitle"},Ud={key:1,"data-qa":"dt-recipe-callbox--right-wrapper",class:"dt-recipe-callbox--right"},Wd={key:0,"data-qa":"dt-recipe-callbox--bottom-wrapper",class:"dt-recipe-callbox--main-content-bottom"};function Kd(t,a,n,i,r,o){const l=e.resolveComponent("dt-avatar"),d=e.resolveComponent("dt-badge");return e.openBlock(),e.createElementBlock("div",Rd,[t.$slots.video?(e.openBlock(),e.createElementBlock("div",zd,[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",$d,[o.shouldShowAvatar?(e.openBlock(),e.createBlock(l,{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",Fd,[(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",qd,[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",Hd,[e.renderSlot(t.$slots,"subtitle",{},void 0,!0)])):e.createCommentVNode("",!0)]),t.$slots.right?(e.openBlock(),e.createElementBlock("div",Ud,[e.renderSlot(t.$slots,"right",{},void 0,!0)])):e.createCommentVNode("",!0)]),t.$slots.bottom?(e.openBlock(),e.createElementBlock("div",Wd,[e.renderSlot(t.$slots,"bottom",{},void 0,!0)])):e.createCommentVNode("",!0)],2)])}const jd=s._export_sfc(Md,[["render",Kd],["__scopeId","data-v-66800ae7"]]);exports.CDN_URL=s.CDN_URL;exports.DEFAULT_VALIDATION_MESSAGE_TYPE=s.DEFAULT_VALIDATION_MESSAGE_TYPE;exports.DESCRIPTION_SIZE_TYPES=s.DESCRIPTION_SIZE_TYPES;exports.DtButton=s.DtButton;exports.DtCheckableInputMixin=s.CheckableMixin;exports.DtEmojiPicker=s._sfc_main;exports.DtGroupableInputMixin=s.GroupableMixin;exports.DtIcon=s.DtIcon;exports.DtInput=s.DtInput;exports.DtInputMixin=s.InputMixin;exports.DtLazyShow=s.DtLazyShow;exports.DtSkeleton=s.DtSkeleton;exports.DtSkeletonListItem=s.DtSkeletonListItem;exports.DtSkeletonParagraph=s.DtSkeletonParagraph;exports.DtSkeletonShape=s.DtSkeletonShape;exports.DtSkeletonText=s.DtSkeletonText;exports.DtTab=s.DtTab;exports.DtTabGroup=s.DtTabGroup;exports.DtTooltip=s.DtTooltip;exports.DtValidationMessages=s.DtValidationMessages;exports.EMOJIS_PER_ROW=s.EMOJIS_PER_ROW;exports.EMOJI_CATEGORIES=s.EMOJI_CATEGORIES;exports.EMOJI_SKIN_TONE_MODIFIERS=s.EMOJI_SKIN_TONE_MODIFIERS;exports.ICON_SIZE_MODIFIERS=s.ICON_SIZE_MODIFIERS;exports.INPUT_SIZES=s.INPUT_SIZES;exports.INPUT_TYPES=s.INPUT_TYPES;exports.LINK_KIND_MODIFIERS=s.LINK_KIND_MODIFIERS;exports.LINK_VARIANTS=s.LINK_VARIANTS;exports.SKELETON_HEADING_HEIGHTS=s.SKELETON_HEADING_HEIGHTS;exports.SKELETON_RIPPLE_DURATION=s.SKELETON_RIPPLE_DURATION;exports.SKELETON_SHAPES=s.SKELETON_SHAPES;exports.SKELETON_SHAPE_SIZES=s.SKELETON_SHAPE_SIZES;exports.SKELETON_TEXT_TYPES=s.SKELETON_TEXT_TYPES;exports.TAB_IMPORTANCE_MODIFIERS=s.TAB_IMPORTANCE_MODIFIERS;exports.TAB_LIST_IMPORTANCE_MODIFIERS=s.TAB_LIST_IMPORTANCE_MODIFIERS;exports.TAB_LIST_KIND_MODIFIERS=s.TAB_LIST_KIND_MODIFIERS;exports.TAB_LIST_SIZES=s.TAB_LIST_SIZES;exports.TOOLTIP_DELAY_MS=s.TOOLTIP_DELAY_MS;exports.TOOLTIP_DIRECTIONS=s.TOOLTIP_DIRECTIONS;exports.TOOLTIP_HIDE_ON_CLICK_VARIANTS=s.TOOLTIP_HIDE_ON_CLICK_VARIANTS;exports.TOOLTIP_KIND_MODIFIERS=s.TOOLTIP_KIND_MODIFIERS;exports.TOOLTIP_STICKY_VALUES=s.TOOLTIP_STICKY_VALUES;exports.VALIDATION_MESSAGE_TYPES=s.VALIDATION_MESSAGE_TYPES;exports.filterFormattedMessages=s.filterFormattedMessages;exports.formatMessages=s.formatMessages;exports.getUniqueString=s.getUniqueString;exports.getValidationState=s.getValidationState;exports.validationMessageValidator=s.validationMessageValidator;exports.DtItemLayout=_.DtItemLayout;exports.DtListItem=_.DtListItem;exports.DtNotice=_.DtNotice;exports.DtPopover=_.DtPopover;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.AVATAR_COLORS=zt;exports.AVATAR_GROUP_VALIDATOR=He;exports.AVATAR_ICON_SIZES=Rt;exports.AVATAR_KIND_MODIFIERS=Pt;exports.AVATAR_PRESENCE_SIZE_MODIFIERS=Mt;exports.AVATAR_PRESENCE_STATES=qe;exports.AVATAR_SIZE_MODIFIERS=Ee;exports.BADGE_DECORATION_MODIFIERS=Ke;exports.BADGE_KIND_MODIFIERS=We;exports.BADGE_TYPE_MODIFIERS=Ue;exports.BREADCRUMBS_INVERTED_MODIFIER=Ft;exports.BREADCRUMB_ITEM_SELECTED_MODIFIER=$t;exports.BUTTON_GROUP_ALIGNMENT=je;exports.CALLBAR_BUTTON_VALID_WIDTH_SIZE=ut;exports.CALLBOX_BADGE_COLORS=at;exports.CALLBOX_BORDER_COLORS=ot;exports.CHIP_SIZE_MODIFIERS=Qe;exports.COLOR_CODES=fn;exports.DtAvatar=ge;exports.DtBadge=it;exports.DtBanner=Hn;exports.DtBreadcrumbItem=Ht;exports.DtBreadcrumbs=Qn;exports.DtButtonGroup=ea;exports.DtCard=Ut;exports.DtCheckbox=xo;exports.DtCheckboxGroup=Ao;exports.DtChip=dt;exports.DtCodeblock=ia;exports.DtCollapsible=Yt;exports.DtCombobox=Gt;exports.DtDatepicker=Es;exports.DtDropdown=Zt;exports.DtDropdownSeparator=Ba;exports.DtImageViewer=Ra;exports.DtInputGroup=lt;exports.DtInputGroupMixin=Qt;exports.DtKeyboardListNavigationMixin=st;exports.DtKeyboardShortcut=br;exports.DtLink=qt;exports.DtListItemGroup=lo;exports.DtListSection=ao;exports.DtModal=Ya;exports.DtPagination=fo;exports.DtPresence=Vt;exports.DtRadio=So;exports.DtRadioGroup=Co;exports.DtRecipeCallbarButton=mn;exports.DtRecipeCallbarButtonWithPopover=Zs;exports.DtRecipeCallbox=jd;exports.DtRecipeComboboxMultiSelect=Us;exports.DtRecipeComboboxWithPopover=un;exports.DtRecipeContactInfo=rl;exports.DtRecipeContactRow=od;exports.DtRecipeEmojiRow=Pd;exports.DtRecipeFeedItemPill=kd;exports.DtRecipeFeedItemRow=_d;exports.DtRecipeGeneralRow=mt;exports.DtRecipeGroupRow=ed;exports.DtRecipeGroupedChip=Dl;exports.DtRecipeIvrNode=yl;exports.DtRecipeSettingsMenuButton=Nl;exports.DtRecipeTimePill=Td;exports.DtRecipeTopBannerInfo=ul;exports.DtRecipeUnreadPill=ld;exports.DtRootLayout=Sr;exports.DtScroller=Ar;exports.DtSelectMenu=Jo;exports.DtStack=Or;exports.DtTabPanel=Io;exports.DtToast=or;exports.DtToggle=hr;exports.FEED_ITEM_PILL_BORDER_COLORS=nt;exports.IVR_NODE_BRANCH=Le;exports.IVR_NODE_EXPERT=Be;exports.IVR_NODE_GO_TO=be;exports.IVR_NODE_HANGUP=Ae;exports.IVR_NODE_ICON_TYPES=pn;exports.IVR_NODE_LABELS=hl;exports.IVR_NODE_PROMPT_COLLECT=Oe;exports.IVR_NODE_PROMPT_MENU=Te;exports.IVR_NODE_PROMPT_PLAY=Ne;exports.IVR_NODE_TRANSFER=xe;exports.LEFTBAR_GENERAL_ROW_CONTACT_CENTER_COLORS=pe;exports.LEFTBAR_GENERAL_ROW_CONTACT_CENTER_VALIDATION_ERROR=_n;exports.LEFTBAR_GENERAL_ROW_ICON_MAPPING=gn;exports.LEFTBAR_GENERAL_ROW_ICON_SIZES=bn;exports.LEFTBAR_GENERAL_ROW_TYPES=N;exports.MODAL_BANNER_KINDS=Ze;exports.MODAL_KIND_MODIFIERS=Ge;exports.MODAL_SIZE_MODIFIERS=Ye;exports.MULTI_SELECT_SIZES=hn;exports.PRESENCE_STATES=ne;exports.PRESENCE_STATES_LIST=At;exports.REACTIONS_ATTRIBUTES=Sn;exports.ROOT_LAYOUT_RESPONSIVE_BREAKPOINTS=tn;exports.ROOT_LAYOUT_SIDEBAR_POSITIONS=Je;exports.SELECT_SIZE_MODIFIERS=Xe;exports.SELECT_STATE_MODIFIERS=Xt;exports.SHORTCUTS_ALIASES_LIST=mr;exports.SHORTCUTS_ICON_ALIASES=ae;exports.SHORTCUTS_ICON_SEPARATOR=en;exports.TOAST_ROLES=Jt;exports.UNREAD_PILL_DIRECTIONS=yn;exports.UNREAD_PILL_KINDS=vn;exports.formatLong=ks;exports.formatMedium=ws;exports.formatNoYear=Ds;exports.formatNumerical=Ts;exports.formatShort=Is;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("./stack-96a00d5c.cjs"),s=require("./emoji-b45991f0.cjs"),e=require("vue"),Xe=require("./emoji.cjs"),Ve={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"},Re={label:"",count:"d-badge--count"},$e={"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"},on={name:"DtBadge",components:{DtIcon:s.DtIcon},props:{iconLeft:{type:String,default:""},iconRight:{type:String,default:""},text:{type:String,default:""},kind:{type:String,default:"label",validator:t=>Object.keys(Re).includes(t)},type:{type:String,default:"default",validator:t=>Object.keys(Ve).includes(t)},decoration:{type:String,default:void 0,validator:t=>Object.keys($e).includes(t)},labelClass:{type:[String,Array,Object],default:""}},data(){return{BADGE_TYPE_MODIFIERS:Ve,BADGE_KIND_MODIFIERS:Re,BADGE_DECORATION_MODIFIERS:$e}},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."))}}},rn={key:0,class:"d-badge__decorative"},sn={key:1,class:"d-badge__icon-left"},ln={key:2,class:"d-badge__icon-right"};function dn(t,a,n,r,i,o){const l=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",rn)):e.createCommentVNode("",!0),n.iconLeft||n.type==="ai"?(e.openBlock(),e.createElementBlock("span",sn,[e.createVNode(l,{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",ln,[e.createVNode(l,{name:n.iconRight,size:"200"},null,8,["name"])])):e.createCommentVNode("",!0)],2)}const Je=s._export_sfc(on,[["render",dn]]),cn={name:"DtBanner",components:{DtNoticeIcon:f.DtNoticeIcon,DtNoticeContent:f.DtNoticeContent,DtNoticeAction:f.DtNoticeAction},mixins:[f.Modal,f.SrOnlyCloseButtonMixin],props:{titleId:{type:String,default(){return s.utils.getUniqueString()}},contentId:{type:String,default(){return s.utils.getUniqueString()}},title:{type:String,default:""},important:{type:Boolean,default:!1},pinned:{type:Boolean,default:!1},kind:{type:String,default:"base",validate(t){return f.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)}}},un=["role","aria-labelledby","aria-describedby"];function hn(t,a,n,r,i,o){const l=e.resolveComponent("dt-notice-icon"),d=e.resolveComponent("dt-notice-content"),c=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((...h)=>o.trapFocus&&o.trapFocus(...h),["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(l,{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(c,{"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]=h=>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,un)],38)}const mn=s._export_sfc(cn,[["render",hn]]),wt="d-breadcrumbs__item--selected",kt="d-breadcrumbs--inverted",fn={name:"DtBreadcrumbItem",components:{DtLink:f.DtLink},inheritAttrs:!1,props:{inverted:{type:Boolean,default:!1},selected:{type:Boolean,default:!1},label:{type:String,default:""}},data(){return{BREADCRUMB_ITEM_SELECTED_MODIFIER:wt}},computed:{linkKind(){return this.inverted?s.INVERTED:s.MUTED},ariaCurrent(){return this.selected?"location":void 0}}};function pn(t,a,n,r,i,o){const l=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(l,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 It=s._export_sfc(fn,[["render",pn]]),gn={name:"DtBreadcrumbs",components:{DtBreadcrumbItem:It},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:kt}},methods:{getBreadcrumbItemKey(t){return`breadcrumbs-item-${t}-${s.utils.getUniqueString()}`}}},_n=["aria-label"];function bn(t,a,n,r,i,o){const l=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,c)=>(e.openBlock(),e.createBlock(l,e.mergeProps({key:o.getBreadcrumbItemKey(c),inverted:n.inverted},d),null,16,["inverted"]))),128))])])],10,_n)}const yn=s._export_sfc(gn,[["render",bn]]),ze={start:"d-btn-group--start",end:"d-btn-group--end","space-between":"d-btn-group--space-between"},vn={name:"DtButtonGroup",props:{alignment:{type:String,default:"start",validator:t=>Object.keys(ze).includes(t)}},data(){return{BUTTON_GROUP_ALIGNMENT:ze}}};function Sn(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 Cn=s._export_sfc(vn,[["render",Sn]]),En={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:s.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 Dt=s._export_sfc(En,[["render",wn]]),kn={name:"DtCodeblock",props:{text:{type:String,required:!0}}},In={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 Dn(t,a,n,r,i,o){return e.openBlock(),e.createElementBlock("pre",null,[e.createTextVNode(" "),e.createElementVNode("code",In,e.toDisplayString(n.text),1),e.createTextVNode(`
3
+ `)])}const Tn=s._export_sfc(kn,[["render",Dn]]),On={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,l=i||t.parentElement,d=this._getScrollBounds(l),c=d.bottom-d.top,h=this._getElementHeight(t),m=o+h;let u=-1;switch(a){case"top":u=o;break;case"center":u=o+(h-c)/2;break;case"bottom":u=u=m-c;break;default:o-d.top<=c/2?u=o:u=m-c;break}this._setScrollTop(l,u,d,o,m,n,r)},_setScrollTop(t,a,n,r,i,o,l){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;l?t.scrollTo({top:a,behavior:l}):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}}},Nn="listElementKey is required or the referenced element doesn't exist. Received listElement: ",et=({listItemRole:t="option",indexKey:a="highlightIndex",idKey:n="highlightId",listElementKey:r="listRef",activeItemKey:i="",openMethod:o=null,afterHighlightMethod:l=null,beginningOfListMethod:d=null,endOfListMethod:c=null,scrollToOnHighlight:h=!0,focusOnKeyboardNavigation:m=!1}={})=>({mixins:[On],data(){return{[a]:-1,[n]:"",scrollToOnHighlight:h,focusOnKeyboardNavigation:m}},provide(){return{highlightId:()=>this[n]}},methods:{_getListElement(){var u;return((u=this[r]())==null?void 0:u.$el)||this[r]()},_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(Nn,u),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):c&&this[c](),this.scrollActiveItemIntoViewIfNeeded(),this.focusActiveItemIfNeeded()},onHomeKey(){this.jumpToBeginning(),this.scrollActiveItemIntoViewIfNeeded(),this.focusActiveItemIfNeeded()},onEndKey(){this.jumpToEnd(),this.scrollActiveItemIntoViewIfNeeded(),this.focusActiveItemIfNeeded()},onNavigationKey(u){const g=this._getListItemNodes(),p=g.filter(D=>D.textContent.trim().toLowerCase().startsWith(u.toLowerCase()));if(p.length<=0)return;const _=p.findIndex(D=>this[a]===g.indexOf(D)),v=g.indexOf(_<p.length-1?p[_+1]:p[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[a]=u,this[n]=this._getItemId(u),this._itemsLength()&&l&&this[l](u)},setHighlightId(u){this[n]=u,this[a]=this._getItemIndex(u),this._itemsLength()&&l&&this[l](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 p;const g=this._getListElement();if(g)return(p=g.querySelectorAll(`[role="${t}"], #sr-only-close-button`)[u])==null?void 0:p.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()}}}),Bn={name:"ComboboxLoadingList",components:{DtListItem:f.DtListItem,DtSkeleton:s.DtSkeleton}},Ln={class:"d-p0 d-mt8 d-hmx332 d-of-y-auto","aria-busy":"true"};function xn(t,a,n,r,i,o){const l=e.resolveComponent("dt-skeleton"),d=e.resolveComponent("dt-list-item");return e.openBlock(),e.createElementBlock("ol",Ln,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(7,c=>e.createVNode(d,{key:c,role:"option","navigation-type":"none"},{default:e.withCtx(()=>[e.createVNode(l,{"text-option":{type:"body"},offset:0})]),_:2},1024)),64))])}const Tt=s._export_sfc(Bn,[["render",xn]]);const An={name:"ComboboxEmptyList",components:{DtListItem:f.DtListItem},props:{message:{type:String,required:!0},itemClass:{type:[String,Object,Array],default:""}}},Mn={class:"d-p0","data-qa":"dt-combobox-empty-list"};function Pn(t,a,n,r,i,o){const l=e.resolveComponent("dt-list-item");return e.openBlock(),e.createElementBlock("ol",Mn,[e.renderSlot(t.$slots,"default",{},()=>[e.createVNode(l,{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 Ot=s._export_sfc(An,[["render",Pn]]),Nt={EXTRA_SMALL:"xs",SMALL:"sm",DEFAULT:"md",LARGE:"lg",EXTRA_LARGE:"xl"},Vn={name:"DtCombobox",components:{ComboboxLoadingList:Tt,ComboboxEmptyList:Ot},mixins:[et({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(Nt).includes(t)},description:{type:String,default:""},listId:{type:String,default(){return s.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:s.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.`)}}},Rn={"data-qa":"dt-combobox-input-wrapper"};function $n(t,a,n,r,i,o){const l=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(c=>o.onKeyValidation(c,"onEscapeKey"),["stop"]),["esc"])),a[4]||(a[4]=e.withKeys(e.withModifiers(c=>o.onKeyValidation(c,"onEnterKey"),["exact"]),["enter"])),a[5]||(a[5]=e.withKeys(e.withModifiers(c=>o.onKeyValidation(c,"onUpKey"),["stop","prevent"]),["up"])),a[6]||(a[6]=e.withKeys(e.withModifiers(c=>o.onKeyValidation(c,"onDownKey"),["stop","prevent"]),["down"])),a[7]||(a[7]=e.withKeys(e.withModifiers(c=>o.onKeyValidation(c,"onHomeKey"),["stop","prevent"]),["home"])),a[8]||(a[8]=e.withKeys(e.withModifiers(c=>o.onKeyValidation(c,"onEndKey"),["stop","prevent"]),["end"]))]},[e.createElementVNode("div",Rn,[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]=(...c)=>o.clearHighlightIndex&&o.clearHighlightIndex(...c)),onFocusout:a[1]||(a[1]=(...c)=>o.clearHighlightIndex&&o.clearHighlightIndex(...c)),onMousemoveCapture:a[2]||(a[2]=(...c)=>o.onMouseHighlight&&o.onMouseHighlight(...c))},[n.loading&&!n.listRenderedOutside?(e.openBlock(),e.createBlock(l,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 Bt=s._export_sfc(Vn,[["render",$n]]);const zn={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 Fn(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 qn=s._export_sfc(zn,[["render",Fn]]),Hn={name:"DtCollapsible",components:{DtButton:s.DtButton,DtCollapsibleLazyShow:qn,DtLazyShow:s.DtLazyShow,DtIcon:s.DtIcon},props:{anchorText:{type:String,default:null},open:{type:Boolean,default:null},id:{type:String,default(){return s.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&&s.getUniqueString("DtCollapsible__anchor")},collapsibleListeners(){return s.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&&!s.hasSlotContent(this.$slots.anchor)&&console.error("anchor text and anchor slot content cannot both be falsy")}}},Un=["id"],Wn=["title"];function Kn(t,a,n,r,i,o){const l=e.resolveComponent("dt-icon"),d=e.resolveComponent("dt-button"),c=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(l,{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,Wn)]),_:1},8,["aria-controls","aria-expanded","style","onClick"])])],10,Un),e.createVNode(c,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 Lt=s._export_sfc(Hn,[["render",Kn]]),ce={none:void 0,small:"d-py0",large:"d-py4"};const jn={name:"DtDropdown",components:{DtPopover:f.DtPopover,SrOnlyCloseButton:f.SrOnlyCloseButton},mixins:[et({indexKey:"highlightIndex",idKey:"highlightId",listElementKey:"getListElement",listItemRole:"menuitem",afterHighlightMethod:"afterHighlight",beginningOfListMethod:"beginningOfListMethod",endOfListMethod:"endOfListMethod",activeItemKey:"activeItemEl",focusOnKeyboardNavigation:!0}),f.SrOnlyCloseButtonMixin],inheritAttrs:!1,props:{open:{type:Boolean,default:null},openOnContext:{type:Boolean,default:!1},padding:{type:String,default:"small",validator:t=>Object.keys(ce).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 s.getUniqueString()}},navigationType:{type:String,default:f.LIST_ITEM_NAVIGATION_TYPES.ARROW_KEYS,validator:t=>Object.values(f.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=>f.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:f.LIST_ITEM_NAVIGATION_TYPES,DROPDOWN_PADDING_CLASSES:ce,openedWithKeyboard:!1,isOpen:null}},computed:{dropdownListeners(){return{opened:t=>{this.updateInitialHighlightIndex(t)},keydown:t=>{switch(t.code){case s.EVENT_KEYNAMES.up:case s.EVENT_KEYNAMES.arrowup:this.onUpKeyPress(t),t.stopPropagation(),t.preventDefault();break;case s.EVENT_KEYNAMES.down:case s.EVENT_KEYNAMES.arrowdown:this.onDownKeyPress(t),t.stopPropagation(),t.preventDefault();break;case s.EVENT_KEYNAMES.space:case s.EVENT_KEYNAMES.spacebar:this.onSpaceKey();break;case s.EVENT_KEYNAMES.enter:this.onEnterKey();break;case s.EVENT_KEYNAMES.home:this.onHomeKeyPress(t),t.stopPropagation(),t.preventDefault();break;case s.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",ce[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)}}},Gn=["id"];function Yn(t,a,n,r,i,o){const l=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:c})=>[e.renderSlot(t.$slots,"anchor",e.mergeProps({ref:"anchor"},c))]),content:e.withCtx(({close:c})=>[e.createElementVNode("ul",{id:n.listId,ref:"listWrapper",class:e.normalizeClass(o.listClasses),"data-qa":"dt-dropdown-list-wrapper",onMouseleave:a[0]||(a[0]=(...h)=>o.clearHighlightIndex&&o.clearHighlightIndex(...h)),onMousemoveCapture:a[1]||(a[1]=(...h)=>o.onMouseHighlight&&o.onMouseHighlight(...h))},[e.renderSlot(t.$slots,"list",{close:c}),t.showVisuallyHiddenClose?(e.openBlock(),e.createBlock(l,{key:0,"visually-hidden-close-label":t.visuallyHiddenCloseLabel,tabindex:o.isArrowKeyNav?-1:0,onClose:c},null,8,["visually-hidden-close-label","tabindex","onClose"])):e.createCommentVNode("",!0)],42,Gn)]),_: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=s._export_sfc(jn,[["render",Yn]]);const Zn={name:"DtDropdownSeparator"},Qn={"aria-hidden":"true",class:"dt-list-separator d-my4 d-mxn4"};function Xn(t,a,n,r,i,o){return e.openBlock(),e.createElementBlock("li",Qn)}const Jn=s._export_sfc(Zn,[["render",Xn]]),ea={name:"DtImageViewer",components:{DtButton:s.DtButton,DtIcon:s.DtIcon},mixins:[f.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 s.EVENT_KEYNAMES.esc:case s.EVENT_KEYNAMES.escape:this.close();break;case s.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)}}},ta=["src","alt"],na=["aria-hidden"],aa={"data-qa":"dt-image-viewer-full",class:"d-p0 d-bar0 d-wmx80p d-hmx80p",role:"dialog","aria-modal":"true"},oa=["src","alt"];function ia(t,a,n,r,i,o){const l=e.resolveComponent("dt-button"),d=e.resolveComponent("dt-icon");return e.openBlock(),e.createElementBlock("div",null,[e.createVNode(l,{"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,ta)]),_: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]=c=>i.showCloseButton=!0),onMouseleave:a[1]||(a[1]=c=>i.showCloseButton=!1),onFocusin:a[2]||(a[2]=c=>i.showCloseButton=!0),onFocusout:a[3]||(a[3]=c=>i.showCloseButton=!1)}),[e.createElementVNode("div",aa,[e.createElementVNode("img",{class:"d-wmx100p d-hmx100p",src:n.imageSrc,alt:n.imageAlt},null,8,oa)]),e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[i.showCloseButton?(e.openBlock(),e.createBlock(l,{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,na)])):e.createCommentVNode("",!0)])}const ra=s._export_sfc(ea,[["render",ia]]),At={components:{DtValidationMessages:s.DtValidationMessages},provide(){return{groupContext:this.provideObj,setGroupValue:this.setGroupValue}},props:{id:{type:String,default(){return s.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=>s.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=s.formatMessages(this.messages);return{provideObj:{name:this.name,disabled:this.disabled,validationState:s.getValidationState(t)}}},computed:{formattedMessages(){return s.formatMessages(this.messages)},validationState(){return s.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)}},sa={name:"DtInputGroup",components:{DtValidationMessages:s.DtValidationMessages},mixins:[At],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:s.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}`}}},la=["data-qa"],da=["data-qa"];function ca(t,a,n,r,i,o){const l=e.resolveComponent("dt-validation-messages");return e.openBlock(),e.createElementBlock("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,da)):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"default"),e.createVNode(l,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,la)}const tt=s._export_sfc(sa,[["render",ca]]),Fe={default:"",danger:"d-modal--danger"},qe={default:"",full:"d-modal--full"},He={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"},ua={name:"DtModal",components:{DtLazyShow:s.DtLazyShow,DtButton:s.DtButton,DtIcon:s.DtIcon,SrOnlyCloseButton:f.SrOnlyCloseButton},mixins:[f.Modal,f.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 s.getUniqueString()}},show:{type:Boolean,default:!1},title:{type:String,default:""},bannerTitle:{type:String,default:""},kind:{type:String,default:"default",validator:t=>Object.keys(Fe).includes(t)},size:{type:String,default:"default",validator:t=>Object.keys(qe).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 f.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:Fe,MODAL_SIZE_MODIFIERS:qe,MODAL_BANNER_KINDS:He,EVENT_KEYNAMES:s.EVENT_KEYNAMES,hasSlotContent:s.hasSlotContent}},computed:{modalListeners(){return{click:t=>{this.closeOnClick&&(t.target===t.currentTarget&&this.close(),this.$emit("click",t))},keydown:t=>{switch(t.code){case s.EVENT_KEYNAMES.esc:case s.EVENT_KEYNAMES.escape:this.close();break;case s.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 He[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`)}}},ha=["aria-describedby","aria-labelledby"],ma=["id"],fa=["id"],pa={key:4,class:"d-modal__footer"};function ga(t,a,n,r,i,o){const l=e.resolveComponent("dt-icon"),d=e.resolveComponent("dt-button"),c=e.resolveComponent("sr-only-close-button"),h=e.resolveComponent("dt-lazy-show");return e.openBlock(),e.createBlock(h,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,ma)):(e.openBlock(),e.createElementBlock("h2",{key:1,id:n.labelledById,class:"d-modal__header","data-qa":"dt-modal-title"},e.toDisplayString(n.title),9,fa)),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",pa,[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(l,{name:"close",size:"400"})]),_:1},16,["aria-label","onClick"])),t.showVisuallyHiddenClose?(e.openBlock(),e.createBlock(c,{key:6,"visually-hidden-close-label":t.visuallyHiddenCloseLabel,onClose:o.close},null,8,["visually-hidden-close-label","onClose"])):e.createCommentVNode("",!0)],10,ha),[[e.vShow,n.show]])]),_:3})]),_:3},16,["show","class","aria-hidden"])}const _a=s._export_sfc(ua,[["render",ga]]);const ba={name:"ListSection",components:{vnodes:{name:"vnodes",render:t=>t.$attrs.vnodes},DtButton:s.DtButton},props:{id:{type:String,default(){return s.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}}},ya=["id","aria-labelledby"],va=["id"],Sa=["id"],Ca=["id"],Ea={class:"d-d-flex"};function wa(t,a,n,r,i,o){const l=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,va)):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,Sa)):(e.openBlock(),e.createElementBlock("ol",{key:2,id:`${n.id}-list-section-content`},[e.createVNode(l,{vnodes:o.displayedItems},null,8,["vnodes"])],8,Ca)),e.createElementVNode("div",Ea,[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,ya)}const ka=s._export_sfc(ba,[["render",wa]]),Ia={name:"DtListItemGroup",props:{id:{type:String,default(){return s.getUniqueString()}},heading:{type:String,default:""},headingClass:{type:[String,Array,Object],default:""},listClass:{type:[String,Array,Object],default:""}}},Da=["id","aria-labelledby"],Ta=["id"];function Oa(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,Ta)):e.createCommentVNode("",!0),e.renderSlot(t.$slots,"default")],10,Da)}const Na=s._export_sfc(Ia,[["render",Oa]]),Ba={name:"DtPagination",components:{DtButton:s.DtButton,DtIcon:s.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)}}},La=["aria-label"],xa={key:0,class:"d-fc-tertiary d-w24 d-ta-center","data-qa":"dt-pagination-separator"};function Aa(t,a,n,r,i,o){const l=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]=c=>o.changePage(i.currentPage-1))},{icon:e.withCtx(()=>[e.createVNode(l,{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,(c,h)=>(e.openBlock(),e.createElementBlock("div",{key:`page-${c}-${h}`,class:e.normalizeClass({"d-as-flex-end":isNaN(Number(c))})},[isNaN(Number(c))?(e.openBlock(),e.createElementBlock("div",xa,[e.createVNode(l,{name:"more-horizontal",size:"300"})])):(e.openBlock(),e.createBlock(d,{key:1,"aria-label":n.pageNumberAriaLabel(c),kind:i.currentPage===c?"default":"muted",importance:i.currentPage===c?"primary":"clear","label-class":"",onClick:m=>o.changePage(c)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c),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]=c=>o.changePage(i.currentPage+1))},{icon:e.withCtx(()=>[e.createVNode(l,{name:"chevron-right",size:"300"})]),_:1},8,["aria-label","disabled","importance","class"])],8,La)}const Ma=s._export_sfc(Ba,[["render",Aa]]),Pa={warning:"d-radio--warning",error:"d-radio--error",success:"d-radio--success"},Va={name:"DtRadio",components:{DtValidationMessages:s.DtValidationMessages},mixins:[s.InputMixin,s.CheckableMixin,s.GroupableMixin,s.MessagesMixin],inheritAttrs:!1,props:{value:{type:[String,Number],default:""}},emits:["input","focus","focusin","focusout","click"],data(){return{hasSlotContent:s.hasSlotContent}},computed:{inputValidationClass(){return Pa[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))}}},Ra={class:"d-radio__input"},$a=["checked","name","value","disabled"],za={class:"d-radio__copy d-radio__label","data-qa":"radio-label-description-container"};function Fa(t,a,n,r,i,o){const l=e.resolveComponent("dt-validation-messages");return e.openBlock(),e.createElementBlock("label",null,[e.createElementVNode("div",{class:e.normalizeClass(["d-radio-group",{"d-radio-group--disabled":t.internalDisabled}])},[e.createElementVNode("div",Ra,[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,$a)]),e.createElementVNode("div",za,[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),i.hasSlotContent(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(l,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 qa=s._export_sfc(Va,[["render",Fa]]),Ha={name:"DtRadioGroup",extends:tt,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}`}}},Ua={name:"DtTabPanel",mixins:[f.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}}},Wa=["id","tabindex","aria-labelledby","aria-hidden"];function Ka(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,Wa)),[[e.vShow,!n.hidden]])}const ja=s._export_sfc(Ua,[["render",Ka]]),Ga={error:"d-checkbox--error",warning:"d-checkbox--warning",success:"d-checkbox--success"},Ya={name:"DtCheckbox",components:{DtValidationMessages:s.DtValidationMessages},mixins:[s.InputMixin,s.CheckableMixin,s.GroupableMixin,s.MessagesMixin],inheritAttrs:!1,emits:["input","focusin","focusout"],computed:{inputValidationClass(){return Ga[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"])}}},Za={class:"d-checkbox__input"},Qa=["checked","name","value","disabled",".indeterminate"],Xa={key:0,class:"d-checkbox__copy d-checkbox__label","data-qa":"checkbox-label-description-container"};function Ja(t,a,n,r,i,o){const l=e.resolveComponent("dt-validation-messages");return e.openBlock(),e.createElementBlock("label",null,[e.createElementVNode("div",{class:e.normalizeClass(["d-checkbox-group",{"d-checkbox-group--disabled":t.internalDisabled}])},[e.createElementVNode("div",Za,[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,Qa)]),o.hasLabelOrDescription?(e.openBlock(),e.createElementBlock("div",Xa,[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(l,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 eo=s._export_sfc(Ya,[["render",Ja]]),to={name:"DtCheckboxGroup",extends:tt,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}`}}},Ue={xs:"d-chip__label--xs",sm:"d-chip__label--sm",md:""},no={xs:"d-chip__close--xs",sm:"d-chip__close--sm",md:""},ao={xs:"200",sm:"200",md:"200"},oo={name:"DtChip",components:{DtButton:s.DtButton,DtIcon:s.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(Ue).includes(t)},interactive:{type:Boolean,default:!0},id:{type:String,default:function(){return s.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:s.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 ao[this.size]}},methods:{chipClasses(){return[this.$attrs["grouped-chip"]?"d-chip":"d-chip__label",Ue[this.size],this.labelClass]},chipCloseButtonClasses(){return["d-chip__close",no[this.size]]},onClose(){this.hideClose||this.$emit("close")}}},io={class:"d-chip"},ro={key:0,"data-qa":"dt-chip-icon",class:"d-chip__icon"},so={key:1,"data-qa":"dt-chip-avatar"},lo=["id"];function co(t,a,n,r,i,o){const l=e.resolveComponent("dt-icon"),d=e.resolveComponent("dt-button");return e.openBlock(),e.createElementBlock("span",io,[(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",ro,[e.renderSlot(t.$slots,"icon")])):i.hasSlotContent(t.$slots.avatar)?(e.openBlock(),e.createElementBlock("span",so,[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,lo)):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]=c=>t.$emit("close"))}),{icon:e.withCtx(()=>[e.createVNode(l,{name:"close",size:o.closeButtonIconSize},null,8,["size"])]),_:1},16,["class","aria-label"]))])}const nt=s._export_sfc(oo,[["render",co]]),We={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"},uo=t=>!t.index||typeof t.index=="number",ho=t=>t.value?typeof t.value=="string"||typeof t.value=="number":!1,mo=t=>t.label?typeof t.label=="string":!1,fo=t=>t?t.every(a=>!(!uo(a)||!ho(a)||!mo(a))):!0,po={name:"DtSelectMenu",components:{DtValidationMessages:s.DtValidationMessages},mixins:[s.MessagesMixin],inheritAttrs:!1,props:{label:{type:String,default:""},description:{type:String,default:""},options:{type:Array,default:()=>[],validator:t=>fo(t)},size:{type:String,default:"md",validator:t=>Object.keys(We).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:s.LABEL_SIZE_MODIFIERS,DESCRIPTION_SIZE_MODIFIERS:s.DESCRIPTION_SIZE_MODIFIERS,SELECT_SIZE_MODIFIERS:We,SELECT_STATE_MODIFIERS:Mt,hasSlotContent:s.hasSlotContent}},computed:{selectListeners(){return{input:()=>{},change:t=>this.emitValue(t.target.value,t)}},state(){return s.getValidationState(this.formattedMessages)},selectKey(){return s.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)}}},go=["aria-details"],_o=["id"],bo=["disabled"],yo=["value"];function vo(t,a,n,r,i,o){const l=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,go)):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,_o)):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,yo))),128))])],16,bo)],2)]),e.createVNode(l,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 So=s._export_sfc(po,[["render",vo]]),Pt=["status","alert"],bt=6e3,Co={name:"DtToast",components:{DtNoticeIcon:f.DtNoticeIcon,DtNoticeContent:f.DtNoticeContent,DtNoticeAction:f.DtNoticeAction},mixins:[f.SrOnlyCloseButtonMixin],props:{titleId:{type:String,default(){return s.utils.getUniqueString()}},contentId:{type:String,default(){return s.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=>f.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))}}},Eo=["aria-hidden"],wo={class:"d-toast__dialog"};function ko(t,a,n,r,i,o){const l=e.resolveComponent("dt-notice-icon"),d=e.resolveComponent("dt-notice-content"),c=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",wo,[e.createVNode(l,{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(c,{"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,Eo)):e.createCommentVNode("",!0)}const Io=s._export_sfc(Co,[["render",ko]]),yt={sm:"d-toggle--small",md:""},Do=[!1,!0,"mixed"],To={name:"DtToggle",inheritAttrs:!1,model:{prop:"checked",event:"change"},props:{id:{type:String,default(){return s.getUniqueString()}},disabled:{type:Boolean,default:!1},checked:{type:[Boolean,String],default:!1,validator:t=>Do.includes(t)},toggleOnClick:{type:Boolean,default:!0},size:{type:String,default:"md",validator:t=>Object.keys(yt).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:s.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",yt[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)}}},Oo={class:"d-d-flex d-ai-center"},No=["for"],Bo=["id","role","aria-checked","disabled","aria-disabled"],Lo={key:0,class:"d-toggle__inner"};function xo(t,a,n,r,i,o){return e.openBlock(),e.createElementBlock("div",Oo,[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,No)):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",Lo)):e.createCommentVNode("",!0)],16,Bo)])}const Ao=s._export_sfc(To,[["render",xo]]),te={"{win}":"layout-grid","{arrow-right}":"arrow-right","{arrow-left}":"arrow-left","{arrow-up}":"arrow-up","{arrow-down}":"arrow-down","{cmd}":"command"},Vt={"{plus}":"plus"},Mo=Object.keys(te),Po={name:"DtKeyboardShortcut",components:{DtIcon:s.DtIcon},props:{inverted:{type:Boolean,default:!1},shortcut:{type:String,required:!0},screenReaderText:{type:String,default:null}},data(){return{SHORTCUTS_ICON_ALIASES:te,separator:/\+/gi}},computed:{icons(){return{...te,...Vt}},shortcutWithSeparator(){return this.shortcut.replace(this.separator,"{plus}")},formattedShortcut(){return Object.keys(te).reduce((t,a)=>t.replace(new RegExp("{"+a+"}","gi"),te[a]),this.shortcutWithSeparator)},formattedShortcutSplit(){const t=Object.keys(this.icons).join("|"),a=new RegExp(`(${t})`,"gi");return this.formattedShortcut.split(a).filter(Boolean)}}},Vo={key:0,class:"sr-only"},Ro=["innerHTML"];function $o(t,a,n,r,i,o){const l=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",Vo,e.toDisplayString(n.screenReaderText),1)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.formattedShortcutSplit,(d,c)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[o.icons[d]?(e.openBlock(),e.createBlock(l,{key:`${c}-${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:`${c}-${d}`,"aria-hidden":"true",class:e.normalizeClass([n.inverted?"d-fc-secondary-inverted":"d-fc-tertiary","d-mr2"]),innerHTML:d},null,10,Ro))],64))),256))],2)}const zo=s._export_sfc(Po,[["render",$o]]),Ke={LEFT:"left",RIGHT:"right"},Rt=["sm","md","lg",null];const Fo={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(Ke).includes(t)},footerClass:{type:[String,Array,Object],default:""},footerHeight:{type:String,default:"64px"},responsiveBreakpoint:{type:String,default:null,validator:t=>Rt.includes(t)}},computed:{isInverted(){return this.sidebarPosition===Ke.RIGHT}}};function qo(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 Ho=s._export_sfc(Fo,[["render",qo]]);const $t={__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),l=e.ref([]),d=e.ref(null),c=e.ref(!1),h=e.ref(null),m=e.ref("top");let u=0,g=0,p=!1,_=0,v=null,D=null,L=0,ne=0;const Y=e.computed(()=>{if(r.itemSize===null){const b={"-1":{accumulator:0}},S=r.items,y=r.sizeField,$=r.minItemSize;let A=1e4,U=0,I;for(let M=0,re=S.length;M<re;M++)I=S[M][y]||$,I<A&&(A=I),U+=I,b[M]={accumulator:U,size:I};return D=A,b}return[]}),ae=e.computed(()=>r.items.length&&typeof r.items[0]!="object"),Ne=e.computed(()=>{const b={};for(let S=0,y=r.items.length;S<y;S++)b[r.items[S][r.keyField]]=S;return b});e.watch(Y,()=>{J(!1)},{deep:!0}),e.onMounted(()=>{e.nextTick(()=>{J(!0),c.value=!0})});const H=(b,S,y,$,A)=>{const U=e.markRaw({id:ne++,index:S,used:!0,key:$,type:A}),I=e.shallowReactive({item:y,position:0,nr:U});return b.value.push(I),I},z=(b,S=!1)=>{const y=o,$=b.nr.type;let A=y.get($);A||(A=[],y.set($,A)),A.push(b),S||(b.nr.used=!1,b.position=-9999)},oe=()=>{const b=r.direction==="vertical";let S;return b?S={start:h.value.scrollTop,end:h.value.scrollTop+h.value.clientHeight}:S={start:h.value.scrollLeft,end:h.value.scrollLeft+h.value.clientWidth},S},ie=()=>{throw setTimeout(()=>{console.error("It seems the scroller element isn't scrolling, so it tries to render all the items at once.","Scroller:",h),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")},X=()=>{l.value.sort((b,S)=>b.nr.index-S.nr.index)},J=(b,S=!1)=>{var lt,dt,ct,ut,ht,mt,ft,pt;const y=r.itemSize,$=D,A=ae.value?null:r.keyField,U=r.items,I=U.length,M=Y.value,re=i,rt=o,pe=l,an=Ne;let P,B,ge,F,W;if(!I)P=B=F=W=ge=0;else{const w=oe();if(S){let T=w.start-_.value;if(T<0&&(T=-T),y===null&&T<$.value||T<y)return{continuous:!0}}_=w.start;const V=r.buffer;if(w.start-=V,w.end+=V,y===null){let T,se=0,gt=I-1,R=~~(I/2),_t;do _t=R,T=(lt=M[R])==null?void 0:lt.accumulator,T<w.start?se=R:R<I-1&&((dt=M[R+1])==null?void 0:dt.accumulator)>w.start&&(gt=R),R=~~((se+gt)/2);while(R!==_t);for(R<0&&(R=0),P=R,ge=(ct=M[I-1])==null?void 0:ct.accumulator,B=R;B<I&&((ut=M[B])==null?void 0:ut.accumulator)<w.end;B++);for(B===-1?B=U.length-1:(B++,B>I&&(B=I)),F=u;F<I&&((ht=M[F])==null?void 0:ht.accumulator)<w.start;F++);for(W=F;W<I&&((mt=M[W])==null?void 0:mt.accumulator)<w.end;W++);}else{P=~~(w.start/y);const T=P%1;P-=T,B=Math.ceil(w.end/y),F=Math.max(0,Math.floor(w.start/y)),W=Math.floor(w.end/y),P<0&&(P=0),B>I&&(B=I),F<0&&(F=0),W>I&&(W=I),ge=Math.ceil(I/1)*y}}B-P>1e3&&ie(),L=ge;let C;const _e=P<=g&&B>=P;if(_e)for(let w=0,V=pe.value.length;w<V;w++)C=pe.value[w],C!=null&&C.nr.used&&(b&&(C.nr.index=an[C.item[A]]),(C.nr.index==null||C.nr.index<P||C.nr.index>=B)&&z(C));const st=_e?null:new Map;let q,K,be;for(let w=P;w<B;w++){q=U[w];const V=A?q==null?void 0:q[A]:q;if(V==null)throw new Error(`Key is ${V} on item (keyField is '${A}')`);if(C=re.get(V),!y&&!((ft=M[w])!=null&&ft.size)){C&&z(C);continue}K=q.type;let T=rt.get(K);if(!C)_e?T&&T.length?C=T.pop():C=H(pe,w,q,V,K):(be=st.get(K)||0,(!T||be>=T.length)&&(C=H(pe,w,q,V,K),z(C,!0),T=rt.get(K)),C=T[be],st.set(K,be+1)),re.delete(C.nr.key),C.nr.used=!0,C.nr.index=w,C.nr.key=V,C.nr.type=K,re.set(V,C);else if(!C.nr.used&&(C.nr.used=!0,T)){const se=T.indexOf(C);se!==-1&&T.splice(se,1)}C.item=q,y===null?(C.position=(pt=M[w-1])==null?void 0:pt.accumulator,C.offset=0):(C.position=Math.floor(w)*y,C.offset=w%1*y)}return u=P,g=B,clearTimeout(v),v=setTimeout(X,300),{continuous:_e}},Be=b=>{const S=r.direction==="vertical"?{scroll:"scrollTop",start:"top"}:{scroll:"scrollLeft",start:"left"},y=h.value,$=S.scroll;y[$]=b},Le=b=>{var y;let S;r.itemSize===null?S=b>0?(y=Y.value[b-1])==null?void 0:y.accumulator:0:S=Math.floor(b)*r.itemSize,Be(S)},xe=()=>{const b=h.value;m.value!=="middle"&&(m.value="middle",n("user-position","middle")),b.scrollTop===0&&(m.value="top",n("user-position","top")),b.scrollTop+b.clientHeight===b.scrollHeight&&(m.value="bottom",n("user-position","bottom")),p||(p=!0,requestAnimationFrame(()=>{p=!1,J(!1,!0)}))};return a({scrollToItem:Le,_updateVisibleItems:J}),(b,S)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"scroller",ref:h,class:e.normalizeClass(["vue-recycle-scroller",{ready:c.value,[`direction-${t.direction}`]:!0}]),onScrollPassive:xe},[(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(l.value,y=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.itemTag),e.mergeProps({key:y.nr.id,style:c.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&&d.value===y.nr.key}]]},e.toHandlers(t.skipHover?{}:{mouseenter:()=>{d.value=y.nr.key},mouseleave:()=>{d.value=null}})),{default:e.withCtx(()=>[e.renderSlot(b.$slots,"default",{item:y.item,index:y.nr.index,active:y.nr.used})]),_:2},1040,["style","class"]))),128))]),_:3},8,["style","class"]))],34))}},Uo={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())}},Wo={name:"DynamicScroller",components:{CoreScroller:$t,DtScrollerItem:Uo},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 l=0;l<o;l++){const d=a[l],c=r?l:d[n];let h=i[c];typeof h>"u"&&!this.$_undefinedMap[c]&&(h=0),t.push({item:d,[n]:c,size:h})}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 l=i-r;l!==0&&(this.$el.scrollTop+=l)}},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 Ko(t,a,n,r,i,o){const l=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:c,index:h,active:m})=>[e.createVNode(l,{item:c,active:m,"size-dependencies":[c.message],"data-index":h},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default",e.normalizeProps(e.guardReactiveProps({item:c.item,index:h,active:m,itemWithSize:c})))]),_:2},1032,["item","active","size-dependencies","data-index"])]),_:3},16,["items","min-item-size","direction","key-field","list-tag","item-tag"])}const jo=s._export_sfc(Wo,[["render",Ko]]),Go={__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,()=>{m()},{deep:!0,immediate:!0});function l(){i.value&&i.value.scrollToBottom()}function d(u){i.value&&i.value.scrollToItem(u)}function c(){i.value&&(r.dynamic?i.value.dynamicScrollerUpdateItems():i.value._updateVisibleItems(!0))}function h(){i.value&&(r.dynamic?i.value.dynamicScrollerUpdateItemsFromBottom():i.value._updateVisibleItems(!1,!0))}function m(){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:l,scrollToItem:d,updateItems:c,updateItemsFromBottom:h}),(u,g)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.dynamic?jo:$t),{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]=p=>u.$emit("user-position",p))},{default:e.withCtx(({item:p,index:_,active:v})=>[e.renderSlot(u.$slots,"default",e.normalizeProps(e.guardReactiveProps({item:p,index:_,active:v})))]),_:3},40,["items","item-size","min-item-size","direction","key-field","list-tag","item-tag","style"]))}},zt=0,ye="MMMM";function ue(t){"@babel/helpers - typeof";return ue=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},ue(t)}function x(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 k(t,a){if(a.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+a.length+" present")}function O(t){k(1,arguments);var a=Object.prototype.toString.call(t);return t instanceof Date||ue(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 Ft(t,a){k(2,arguments);var n=O(t),r=x(a);return isNaN(r)?new Date(NaN):(r&&n.setDate(n.getDate()+r),n)}function qt(t,a){k(2,arguments);var n=O(t),r=x(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 l=o.getDate();return i>=l?o:(n.setFullYear(o.getFullYear(),o.getMonth(),i),n)}function Yo(t,a){k(2,arguments);var n=O(t).getTime(),r=x(a);return new Date(n+r)}var Zo={};function me(){return Zo}function Qo(t,a){var n,r,i,o,l,d,c,h;k(1,arguments);var m=me(),u=x((n=(r=(i=(o=a==null?void 0:a.weekStartsOn)!==null&&o!==void 0?o:a==null||(l=a.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&i!==void 0?i:m.weekStartsOn)!==null&&r!==void 0?r:(c=m.locale)===null||c===void 0||(h=c.options)===null||h===void 0?void 0:h.weekStartsOn)!==null&&n!==void 0?n:0);if(!(u>=0&&u<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var g=O(t),p=g.getDay(),_=(p<u?7:0)+p-u;return g.setDate(g.getDate()-_),g.setHours(0,0,0,0),g}function Xo(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 Jo(t){return k(1,arguments),t instanceof Date||ue(t)==="object"&&Object.prototype.toString.call(t)==="[object Date]"}function ei(t){if(k(1,arguments),!Jo(t)&&typeof t!="number")return!1;var a=O(t);return!isNaN(Number(a))}function ti(t,a){k(2,arguments);var n=x(a);return Yo(t,-n)}var ni=864e5;function ai(t){k(1,arguments);var a=O(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/ni)+1}function Se(t){k(1,arguments);var a=1,n=O(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 Ht(t){k(1,arguments);var a=O(t),n=a.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var i=Se(r),o=new Date(0);o.setUTCFullYear(n,0,4),o.setUTCHours(0,0,0,0);var l=Se(o);return a.getTime()>=i.getTime()?n+1:a.getTime()>=l.getTime()?n:n-1}function oi(t){k(1,arguments);var a=Ht(t),n=new Date(0);n.setUTCFullYear(a,0,4),n.setUTCHours(0,0,0,0);var r=Se(n);return r}var ii=6048e5;function ri(t){k(1,arguments);var a=O(t),n=Se(a).getTime()-oi(a).getTime();return Math.round(n/ii)+1}function Ce(t,a){var n,r,i,o,l,d,c,h;k(1,arguments);var m=me(),u=x((n=(r=(i=(o=a==null?void 0:a.weekStartsOn)!==null&&o!==void 0?o:a==null||(l=a.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&i!==void 0?i:m.weekStartsOn)!==null&&r!==void 0?r:(c=m.locale)===null||c===void 0||(h=c.options)===null||h===void 0?void 0:h.weekStartsOn)!==null&&n!==void 0?n:0);if(!(u>=0&&u<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var g=O(t),p=g.getUTCDay(),_=(p<u?7:0)+p-u;return g.setUTCDate(g.getUTCDate()-_),g.setUTCHours(0,0,0,0),g}function Ut(t,a){var n,r,i,o,l,d,c,h;k(1,arguments);var m=O(t),u=m.getUTCFullYear(),g=me(),p=x((n=(r=(i=(o=a==null?void 0:a.firstWeekContainsDate)!==null&&o!==void 0?o:a==null||(l=a.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&i!==void 0?i:g.firstWeekContainsDate)!==null&&r!==void 0?r:(c=g.locale)===null||c===void 0||(h=c.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(p>=1&&p<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var _=new Date(0);_.setUTCFullYear(u+1,0,p),_.setUTCHours(0,0,0,0);var v=Ce(_,a),D=new Date(0);D.setUTCFullYear(u,0,p),D.setUTCHours(0,0,0,0);var L=Ce(D,a);return m.getTime()>=v.getTime()?u+1:m.getTime()>=L.getTime()?u:u-1}function si(t,a){var n,r,i,o,l,d,c,h;k(1,arguments);var m=me(),u=x((n=(r=(i=(o=a==null?void 0:a.firstWeekContainsDate)!==null&&o!==void 0?o:a==null||(l=a.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&i!==void 0?i:m.firstWeekContainsDate)!==null&&r!==void 0?r:(c=m.locale)===null||c===void 0||(h=c.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&n!==void 0?n:1),g=Ut(t,a),p=new Date(0);p.setUTCFullYear(g,0,u),p.setUTCHours(0,0,0,0);var _=Ce(p,a);return _}var li=6048e5;function di(t,a){k(1,arguments);var n=O(t),r=Ce(n,a).getTime()-si(n,a).getTime();return Math.round(r/li)+1}function E(t,a){for(var n=t<0?"-":"",r=Math.abs(t).toString();r.length<a;)r="0"+r;return n+r}var ci={y:function(a,n){var r=a.getUTCFullYear(),i=r>0?r:1-r;return E(n==="yy"?i%100:i,n.length)},M:function(a,n){var r=a.getUTCMonth();return n==="M"?String(r+1):E(r+1,2)},d:function(a,n){return E(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 E(a.getUTCHours()%12||12,n.length)},H:function(a,n){return E(a.getUTCHours(),n.length)},m:function(a,n){return E(a.getUTCMinutes(),n.length)},s:function(a,n){return E(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 E(o,n.length)}};const j=ci;var ee={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},ui={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 j.y(a,n)},Y:function(a,n,r,i){var o=Ut(a,i),l=o>0?o:1-o;if(n==="YY"){var d=l%100;return E(d,2)}return n==="Yo"?r.ordinalNumber(l,{unit:"year"}):E(l,n.length)},R:function(a,n){var r=Ht(a);return E(r,n.length)},u:function(a,n){var r=a.getUTCFullYear();return E(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 E(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 E(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 j.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 E(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=di(a,i);return n==="wo"?r.ordinalNumber(o,{unit:"week"}):E(o,n.length)},I:function(a,n,r){var i=ri(a);return n==="Io"?r.ordinalNumber(i,{unit:"week"}):E(i,n.length)},d:function(a,n,r){return n==="do"?r.ordinalNumber(a.getUTCDate(),{unit:"date"}):j.d(a,n)},D:function(a,n,r){var i=ai(a);return n==="Do"?r.ordinalNumber(i,{unit:"dayOfYear"}):E(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(),l=(o-i.weekStartsOn+8)%7||7;switch(n){case"e":return String(l);case"ee":return E(l,2);case"eo":return r.ordinalNumber(l,{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(),l=(o-i.weekStartsOn+8)%7||7;switch(n){case"c":return String(l);case"cc":return E(l,n.length);case"co":return r.ordinalNumber(l,{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 E(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=ee.noon:i===0?o=ee.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=ee.evening:i>=12?o=ee.afternoon:i>=4?o=ee.morning:o=ee.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 j.h(a,n)},H:function(a,n,r){return n==="Ho"?r.ordinalNumber(a.getUTCHours(),{unit:"hour"}):j.H(a,n)},K:function(a,n,r){var i=a.getUTCHours()%12;return n==="Ko"?r.ordinalNumber(i,{unit:"hour"}):E(i,n.length)},k:function(a,n,r){var i=a.getUTCHours();return i===0&&(i=24),n==="ko"?r.ordinalNumber(i,{unit:"hour"}):E(i,n.length)},m:function(a,n,r){return n==="mo"?r.ordinalNumber(a.getUTCMinutes(),{unit:"minute"}):j.m(a,n)},s:function(a,n,r){return n==="so"?r.ordinalNumber(a.getUTCSeconds(),{unit:"second"}):j.s(a,n)},S:function(a,n){return j.S(a,n)},X:function(a,n,r,i){var o=i._originalDate||a,l=o.getTimezoneOffset();if(l===0)return"Z";switch(n){case"X":return St(l);case"XXXX":case"XX":return Z(l);case"XXXXX":case"XXX":default:return Z(l,":")}},x:function(a,n,r,i){var o=i._originalDate||a,l=o.getTimezoneOffset();switch(n){case"x":return St(l);case"xxxx":case"xx":return Z(l);case"xxxxx":case"xxx":default:return Z(l,":")}},O:function(a,n,r,i){var o=i._originalDate||a,l=o.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+vt(l,":");case"OOOO":default:return"GMT"+Z(l,":")}},z:function(a,n,r,i){var o=i._originalDate||a,l=o.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+vt(l,":");case"zzzz":default:return"GMT"+Z(l,":")}},t:function(a,n,r,i){var o=i._originalDate||a,l=Math.floor(o.getTime()/1e3);return E(l,n.length)},T:function(a,n,r,i){var o=i._originalDate||a,l=o.getTime();return E(l,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 l=a||"";return n+String(i)+l+E(o,2)}function St(t,a){if(t%60===0){var n=t>0?"-":"+";return n+E(Math.abs(t)/60,2)}return Z(t,a)}function Z(t,a){var n=a||"",r=t>0?"-":"+",i=Math.abs(t),o=E(Math.floor(i/60),2),l=E(i%60,2);return r+o+n+l}const hi=ui;var Ct=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"})}},Wt=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"})}},mi=function(a,n){var r=a.match(/(P+)(p+)?/)||[],i=r[1],o=r[2];if(!o)return Ct(a,n);var l;switch(i){case"P":l=n.dateTime({width:"short"});break;case"PP":l=n.dateTime({width:"medium"});break;case"PPP":l=n.dateTime({width:"long"});break;case"PPPP":default:l=n.dateTime({width:"full"});break}return l.replace("{{date}}",Ct(i,n)).replace("{{time}}",Wt(o,n))},fi={p:Wt,P:mi};const pi=fi;var gi=["D","DD"],_i=["YY","YYYY"];function bi(t){return gi.indexOf(t)!==-1}function yi(t){return _i.indexOf(t)!==-1}function Et(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 vi={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"}},Si=function(a,n,r){var i,o=vi[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 Ci=Si;function Ae(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 Ei={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},wi={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},ki={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Ii={date:Ae({formats:Ei,defaultWidth:"full"}),time:Ae({formats:wi,defaultWidth:"full"}),dateTime:Ae({formats:ki,defaultWidth:"full"})};const Di=Ii;var Ti={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Oi=function(a,n,r,i){return Ti[a]};const Ni=Oi;function le(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,l=n!=null&&n.width?String(n.width):o;i=t.formattingValues[l]||t.formattingValues[o]}else{var d=t.defaultWidth,c=n!=null&&n.width?String(n.width):t.defaultWidth;i=t.values[c]||t.values[d]}var h=t.argumentCallback?t.argumentCallback(a):a;return i[h]}}var Bi={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Li={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},xi={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"]},Ai={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"]},Mi={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"}},Pi={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"}},Vi=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"},Ri={ordinalNumber:Vi,era:le({values:Bi,defaultWidth:"wide"}),quarter:le({values:Li,defaultWidth:"wide",argumentCallback:function(a){return a-1}}),month:le({values:xi,defaultWidth:"wide"}),day:le({values:Ai,defaultWidth:"wide"}),dayPeriod:le({values:Mi,defaultWidth:"wide",formattingValues:Pi,defaultFormattingWidth:"wide"})};const $i=Ri;function de(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 l=o[0],d=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],c=Array.isArray(d)?Fi(d,function(u){return u.test(l)}):zi(d,function(u){return u.test(l)}),h;h=t.valueCallback?t.valueCallback(c):c,h=n.valueCallback?n.valueCallback(h):h;var m=a.slice(l.length);return{value:h,rest:m}}}function zi(t,a){for(var n in t)if(t.hasOwnProperty(n)&&a(t[n]))return n}function Fi(t,a){for(var n=0;n<t.length;n++)if(a(t[n]))return n}function qi(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 l=t.valueCallback?t.valueCallback(o[0]):o[0];l=n.valueCallback?n.valueCallback(l):l;var d=a.slice(i.length);return{value:l,rest:d}}}var Hi=/^(\d+)(th|st|nd|rd)?/i,Ui=/\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},Ki={any:[/^b/i,/^(a|c)/i]},ji={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Gi={any:[/1/i,/2/i,/3/i,/4/i]},Yi={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},Zi={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]},Qi={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},Xi={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]},Ji={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},er={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}},tr={ordinalNumber:qi({matchPattern:Hi,parsePattern:Ui,valueCallback:function(a){return parseInt(a,10)}}),era:de({matchPatterns:Wi,defaultMatchWidth:"wide",parsePatterns:Ki,defaultParseWidth:"any"}),quarter:de({matchPatterns:ji,defaultMatchWidth:"wide",parsePatterns:Gi,defaultParseWidth:"any",valueCallback:function(a){return a+1}}),month:de({matchPatterns:Yi,defaultMatchWidth:"wide",parsePatterns:Zi,defaultParseWidth:"any"}),day:de({matchPatterns:Qi,defaultMatchWidth:"wide",parsePatterns:Xi,defaultParseWidth:"any"}),dayPeriod:de({matchPatterns:Ji,defaultMatchWidth:"any",parsePatterns:er,defaultParseWidth:"any"})};const nr=tr;var ar={code:"en-US",formatDistance:Ci,formatLong:Di,formatRelative:Ni,localize:$i,match:nr,options:{weekStartsOn:0,firstWeekContainsDate:1}};const or=ar;var ir=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,rr=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,sr=/^'([^]*?)'?$/,lr=/''/g,dr=/[a-zA-Z]/;function Q(t,a,n){var r,i,o,l,d,c,h,m,u,g,p,_,v,D,L,ne,Y,ae;k(2,arguments);var Ne=String(a),H=me(),z=(r=(i=n==null?void 0:n.locale)!==null&&i!==void 0?i:H.locale)!==null&&r!==void 0?r:or,oe=x((o=(l=(d=(c=n==null?void 0:n.firstWeekContainsDate)!==null&&c!==void 0?c:n==null||(h=n.locale)===null||h===void 0||(m=h.options)===null||m===void 0?void 0:m.firstWeekContainsDate)!==null&&d!==void 0?d:H.firstWeekContainsDate)!==null&&l!==void 0?l:(u=H.locale)===null||u===void 0||(g=u.options)===null||g===void 0?void 0:g.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!(oe>=1&&oe<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var ie=x((p=(_=(v=(D=n==null?void 0:n.weekStartsOn)!==null&&D!==void 0?D:n==null||(L=n.locale)===null||L===void 0||(ne=L.options)===null||ne===void 0?void 0:ne.weekStartsOn)!==null&&v!==void 0?v:H.weekStartsOn)!==null&&_!==void 0?_:(Y=H.locale)===null||Y===void 0||(ae=Y.options)===null||ae===void 0?void 0:ae.weekStartsOn)!==null&&p!==void 0?p:0);if(!(ie>=0&&ie<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!z.localize)throw new RangeError("locale must contain localize property");if(!z.formatLong)throw new RangeError("locale must contain formatLong property");var X=O(t);if(!ei(X))throw new RangeError("Invalid time value");var J=Xo(X),Be=ti(X,J),Le={firstWeekContainsDate:oe,weekStartsOn:ie,locale:z,_originalDate:X},xe=Ne.match(rr).map(function(b){var S=b[0];if(S==="p"||S==="P"){var y=pi[S];return y(b,z.formatLong)}return b}).join("").match(ir).map(function(b){if(b==="''")return"'";var S=b[0];if(S==="'")return cr(b);var y=hi[S];if(y)return!(n!=null&&n.useAdditionalWeekYearTokens)&&yi(b)&&Et(b,a,String(t)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&bi(b)&&Et(b,a,String(t)),y(Be,b,z.localize,Le);if(S.match(dr))throw new RangeError("Format string contains an unescaped latin alphabet character `"+S+"`");return b}).join("");return xe}function cr(t){var a=t.match(sr);return a?a[1].replace(lr,"'"):t}function ur(t){k(1,arguments);var a=O(t),n=a.getDate();return n}function hr(t){k(1,arguments);var a=O(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 ve(t){k(1,arguments);var a=O(t),n=a.getMonth();return n}function je(t){return k(1,arguments),O(t).getFullYear()}function mr(t,a){k(2,arguments);var n=O(t),r=O(a);return n.getTime()===r.getTime()}function fr(t,a){k(2,arguments);var n=O(t),r=x(a),i=n.getFullYear(),o=n.getDate(),l=new Date(0);l.setFullYear(i,r,15),l.setHours(0,0,0,0);var d=hr(l);return n.setMonth(r,Math.min(o,d)),n}function pr(t,a){if(k(2,arguments),ue(a)!=="object"||a===null)throw new RangeError("values parameter must be an object");var n=O(t);return isNaN(n.getTime())?new Date(NaN):(a.year!=null&&n.setFullYear(a.year),a.month!=null&&(n=fr(n,a.month)),a.date!=null&&n.setDate(x(a.date)),a.hours!=null&&n.setHours(x(a.hours)),a.minutes!=null&&n.setMinutes(x(a.minutes)),a.seconds!=null&&n.setSeconds(x(a.seconds)),a.milliseconds!=null&&n.setMilliseconds(x(a.milliseconds)),n)}function gr(t,a){k(2,arguments);var n=x(a);return qt(t,-n)}const Ge=t=>t?new Date(t):new Date,_r=(t,a,n)=>{const r=Ge(JSON.parse(JSON.stringify(t))),i=[];for(let o=0;o<7;o++){const l=Ft(r,o),d=ve(l)!==a;i.push({text:l.getDate(),value:l,currentMonth:!d,isFirstDayOfMonth:l.getDate()===1&&!d,selected:n?l.getDate()===n&&!d:!1})}return i},br=(t,a)=>!t||!a?!1:mr(t,a),yr=(t,a,n)=>{const r=[],i=Ge(new Date(a,t)),o=Ge(new Date(a,t+1,0)),d=Qo(i,{weekStartsOn:zt}),c=h=>{const m=_r(h,t,n);if(r.push({days:m}),!r[r.length-1].days.some(u=>br(u.value,o))){const u=Ft(h,7);c(u)}};return c(d),r},vr=(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)},Sr=(t,a)=>Q(new Date(2e3,t,1),a);function Cr(t,a){const n=e.ref(ve(t.selectedDate)),r=e.ref(je(t.selectedDate)),i=e.ref(null),o=e.ref(0),l=e.ref([]),d=e.computed(()=>yr(n.value,r.value,i.value)),c=e.computed(()=>(v,D)=>Sr(v,D));e.watch(n,()=>{g(),a("calendar-days",d.value)},{immediate:!0}),e.watch(r,()=>{g(),a("calendar-days",d.value)},{immediate:!0});function h(v){l.value.includes(v)||l.value.push(v)}function m(){l.value[0].focus()}function u(v){switch(v.key){case"ArrowLeft":v.preventDefault(),o.value===0?(o.value=3,l.value[o.value].focus()):(o.value--,l.value[o.value].focus());break;case"ArrowRight":v.preventDefault(),o.value===3?(o.value=0,l.value[o.value].focus()):(o.value++,l.value[o.value].focus());break;case"ArrowDown":v.preventDefault(),a("focus-day");break;case"Tab":a("focus-day");break;case"Escape":a("close-datepicker");break}}function g(){const v=je(t.selectedDate),D=ve(t.selectedDate);v!==r.value||D!==n.value?i.value=null:i.value=ur(t.selectedDate)}function p(v){const D=pr(t.selectedDate,{month:n.value,year:r.value}),L=++v?qt(D,1):gr(D,1);n.value=ve(L)}function _(v){r.value=r.value+v}return{selectMonth:n,selectYear:r,formattedMonth:c,setDayRef:h,focusMonthYearPicker:m,handleKeyDown:u,changeMonth:p,changeYear:_}}const Er={class:"d-datepicker__month-year-picker"},wr=["aria-label"],kr=["aria-label"],Ir=["aria-label"],Dr=["aria-label"],Tr={__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:l,setDayRef:d,focusMonthYearPicker:c,handleKeyDown:h,changeMonth:m,changeYear:u}=Cr(r,n);return e.onMounted(()=>{c()}),a({focusMonthYearPicker:c}),(g,p)=>(e.openBlock(),e.createElementBlock("div",Er,[e.createElementVNode("div",null,[e.createElementVNode("button",{id:"prevYearButton",ref:_=>{_&&e.unref(d)(_)},type:"button","aria-label":`${t.changeToLabel} ${t.prevYearLabel} ${e.unref(o)-1}`,onClick:p[0]||(p[0]=_=>e.unref(u)(-1)),onKeydown:p[1]||(p[1]=_=>e.unref(h)(_))},[e.createVNode(e.unref(s.DtIcon),{name:"chevrons-left",size:"400"})],40,wr),e.createElementVNode("button",{id:"prevMonthButton",ref:_=>{_&&e.unref(d)(_)},type:"button","aria-label":`${t.changeToLabel} ${t.prevMonthLabel} ${e.unref(l)(e.unref(i)-1,e.unref(ye))}`,onClick:p[2]||(p[2]=_=>e.unref(m)(-1)),onKeydown:p[3]||(p[3]=_=>e.unref(h)(_))},[e.createVNode(e.unref(s.DtIcon),{name:"chevron-left",size:"300"})],40,kr)]),e.createElementVNode("div",null,[e.createElementVNode("p",null,e.toDisplayString(e.unref(l)(e.unref(i),e.unref(ye)))+" "+e.toDisplayString(e.unref(o)),1)]),e.createElementVNode("div",null,[e.createElementVNode("button",{id:"nextMonthButton",ref:_=>{_&&e.unref(d)(_)},type:"button","aria-label":`${t.changeToLabel} ${t.nextMonthLabel} ${e.unref(l)(e.unref(i)+1,e.unref(ye))}`,onClick:p[4]||(p[4]=_=>e.unref(m)(1)),onKeydown:p[5]||(p[5]=_=>e.unref(h)(_))},[e.createVNode(e.unref(s.DtIcon),{name:"chevron-right",size:"300"})],40,Ir),e.createElementVNode("button",{id:"nextYearButton",ref:_=>{_&&e.unref(d)(_)},type:"button","aria-label":`${t.changeToLabel} ${t.nextYearLabel} ${e.unref(o)+1}`,onClick:p[6]||(p[6]=_=>e.unref(u)(1)),onKeydown:p[7]||(p[7]=_=>e.unref(h)(_))},[e.createVNode(e.unref(s.DtIcon),{name:"chevrons-right",size:"300"})],40,Dr)])]))}};function Or(t,a){const n=e.ref(null),r=e.ref(0),i=e.ref([]),o=e.computed(()=>vr(t.locale,zt));e.watch(()=>t.calendarDays,()=>{r.value=0,i.value=[],n.value=null});function l(u){return`${t.selectDayLabel} ${u.text} ${Q(u.value,ye)} ${je(u.value)}`}function d(u,g){!i.value.includes(u)&&g&&i.value.push(u)}function c(u){switch(u.key){case"ArrowUp":u.preventDefault(),r.value-=7;try{i.value[r.value].focus()}catch{a("focus-month-year-picker")}break;case"ArrowDown":u.preventDefault(),r.value+=7;try{i.value[r.value].focus()}catch{a("focus-month-year-picker")}break;case"ArrowLeft":u.preventDefault(),r.value>0&&(r.value-=1,i.value[r.value].focus());break;case"ArrowRight":u.preventDefault(),r.value<i.value.length-1&&(r.value+=1,i.value[r.value].focus());break;case"Tab":u.preventDefault(),a("focus-month-year-picker");break;case"Escape":a("close-datepicker");break}}function h(){r.value=0,i.value[r.value].focus()}function m(u){u.currentMonth&&(n.value=u.text,a("select-date",u.value))}return{selectedDay:n,weekDays:o,dayAriaLabel:l,setDayRef:d,handleKeyDown:c,focusFirstDay:h,selectDay:m}}const Nr={class:"d-datepicker__calendar"},Br={class:"d-datepicker__week-day"},Lr=["aria-label","onClick"],xr={__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:l,setDayRef:d,handleKeyDown:c,focusFirstDay:h,selectDay:m}=Or(r,n);return a({focusFirstDay:h}),(u,g)=>(e.openBlock(),e.createElementBlock("div",Nr,[e.createElementVNode("div",Br,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(o),p=>(e.openBlock(),e.createElementBlock("div",{key:p},[e.createElementVNode("p",null,e.toDisplayString(p),1)]))),128))]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.calendarDays,(p,_)=>(e.openBlock(),e.createElementBlock("div",{key:_,class:"d-datepicker__week"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.days,(v,D)=>(e.openBlock(),e.createElementBlock("button",{key:_+D,ref_for:!0,ref:L=>{L&&e.unref(d)(L,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(l)(v),onClick:L=>e.unref(m)(v),onKeydown:g[0]||(g[0]=L=>e.unref(c)(L))},e.toDisplayString(v.text),43,Lr))),128))]))),128))]))}},Ar={class:"d-datepicker"},Mr={class:"d-datepicker--header"},Pr={class:"d-datepicker--body"},Vr={__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",Ar,[e.createElementVNode("div",Mr,[e.createVNode(Tr,{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",Pr,[e.createVNode(xr,{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 Rr(t){return Q(t,"EEEE, MMMM d, yyyy")}function $r(t){return Q(t,"MMMM d, yyyy")}function zr(t,a=!0){return Q(t,a?"EEE, MMM d, yyyy":"MMM d, yyyy")}function Fr(t,a=!1){return Q(t,a?"MMM d":"MMMM d")}function qr(t){return Q(t,"MM/dd/yy")}const Hr={name:"DtRecipeComboboxWithPopover",components:{DtCombobox:Bt,DtPopover:f.DtPopover,ComboboxLoadingList:Tt,ComboboxEmptyList:Ot},mixins:[f.SrOnlyCloseButtonMixin],props:{label:{type:String,required:!0},labelVisible:{type:Boolean,default:!0},size:{type:String,default:null,validator:t=>Object.values(Nt).includes(t)},description:{type:String,default:""},showList:{type:Boolean,default:null},listId:{type:String,default(){return s.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(ce).some(a=>a===t)},contentWidth:{type:String,default:null,validator:t=>f.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=>f.POPOVER_APPEND_TO_VALUES.includes(t)||t instanceof HTMLElement},transition:{type:String,default:"fade"}},emits:["select","escape","highlight","opened"],data(){return{DROPDOWN_PADDING_CLASSES:ce,isListShown:!1,isInputFocused:!1,isListFocused:!1,externalAnchor:s.getUniqueString(),hasSlotContent:s.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(l=>[a,n].includes(l))||this.closeComboboxList()},openOnArrowKeyPress(){this.showList!==null||this.isListShown||!this.openWithArrowKeys||this.showComboboxList()}}},Ur=["id"],Wr={ref:"header"},Kr=["onMouseleave","onFocusout"],jr={ref:"footer"};function Gr(t,a,n,r,i,o){const l=e.resolveComponent("combobox-loading-list"),d=e.resolveComponent("combobox-empty-list"),c=e.resolveComponent("dt-popover"),h=e.resolveComponent("dt-combobox");return e.openBlock(),e.createBlock(h,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:m})=>[e.createElementVNode("div",{id:i.externalAnchor,ref:"input",onFocusin:a[0]||(a[0]=(...u)=>o.onFocusIn&&o.onFocusIn(...u)),onKeydown:[a[1]||(a[1]=e.withKeys(u=>o.openOnArrowKeyPress(u),["up"])),a[2]||(a[2]=e.withKeys(u=>o.openOnArrowKeyPress(u),["down"]))]},[e.renderSlot(t.$slots,"input",{inputProps:m,onInput:o.handleDisplayList})],40,Ur)]),list:e.withCtx(({opened:m,listProps:u,clearHighlightIndex:g})=>[e.createVNode(c,{ref:"popover",open:i.isListShown,"onUpdate:open":a[3]||(a[3]=p=>i.isListShown=p),"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:m},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(l,e.normalizeProps(e.mergeProps({key:0},u)),null,16)):n.emptyList&&n.emptyStateMessage?(e.openBlock(),e.createBlock(d,e.mergeProps({key:1},u,{message:n.emptyStateMessage}),null,16,["message"])):e.renderSlot(t.$slots,"list",{key:2,listProps:u})],42,Kr)]),_:2},[i.hasSlotContent(t.$slots.header)?{name:"headerContent",fn:e.withCtx(()=>[e.createElementVNode("div",Wr,[e.renderSlot(t.$slots,"header")],512)]),key:"0"}:void 0,i.hasSlotContent(t.$slots.footer)?{name:"footerContent",fn:e.withCtx(()=>[e.createElementVNode("div",jr,[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 Kt=s._export_sfc(Hr,[["render",Gr]]),jt={EXTRA_SMALL:"xs",SMALL:"sm",DEFAULT:"md"},Yr={xs:"xs",sm:"xs",md:"sm"},Zr={xs:1.4,sm:.4,md:.2},Qr={name:"DtRecipeComboboxMultiSelect",components:{DtRecipeComboboxWithPopover:Kt,DtInput:s.DtInput,DtChip:nt,DtValidationMessages:s.DtValidationMessages},mixins:[f.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=>s.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(jt).includes(t)},appendTo:{type:[HTMLElement,String],default:"body",validator:t=>f.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:Yr,hasSlotContent:s.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-Zr[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)}}},Xr={ref:"inputSlotWrapper",class:"d-ps-relative d-d-block"},Jr={ref:"chipsWrapper",class:"d-ps-absolute d-mx2 d-pl1"},es={ref:"header"},ts={key:1,class:"d-ta-center d-py16"},ns={ref:"footer"};function as(t,a,n,r,i,o){const l=e.resolveComponent("dt-chip"),d=e.resolveComponent("dt-input"),c=e.resolveComponent("dt-validation-messages"),h=e.resolveComponent("dt-recipe-combobox-with-popover");return e.openBlock(),e.createBlock(h,{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:m})=>[e.createElementVNode("span",Xr,[e.createElementVNode("span",Jr,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.selectedItems,u=>(e.openBlock(),e.createBlock(l,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(o.chipListeners),{onKeyup:e.withKeys(g=>o.onChipRemove(u),["backspace"]),onClose:g=>o.onChipRemove(u)}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(u),1)]),_:2},1040,["size","onKeyup","onClose"]))),128))],512),e.createVNode(d,e.mergeProps({ref:"input",modelValue:i.value,"onUpdate:modelValue":a[0]||(a[0]=u=>i.value=u),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:m}),null,16,["modelValue","aria-label","label","description","placeholder","show-messages","messages","size","onInput"]),e.createVNode(c,{"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",ts,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",es,[e.renderSlot(t.$slots,"header")],512)]),key:"0"}:void 0,i.hasSlotContent(t.$slots.footer)?{name:"footer",fn:e.withCtx(()=>[e.createElementVNode("div",ns,[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 os=s._export_sfc(Qr,[["render",as]]),at=["sm","md","lg","xl"];const is={name:"DtRecipeCallbarButton",components:{DtButton:s.DtButton,DtTooltip:s.DtTooltip},inheritAttrs:!1,props:{id:{type:String,default(){return s.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=>at.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{...s.extractVueListeners(this.$attrs),click:t=>this.$emit("click",t)}}}};function rs(t,a,n,r,i,o){const l=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(l,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 Gt=s._export_sfc(is,[["render",rs]]);const ss={name:"DtRecipeCallbarButtonWithPopover",components:{DtRecipeCallbarButton:Gt,DtPopover:f.DtPopover,DtButton:s.DtButton,DtIcon:s.DtIcon},inheritAttrs:!1,props:{id:{type:String,default(){return s.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=>at.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)}}},ls={class:"d-d-flex d-ai-center"};function ds(t,a,n,r,i,o){const l=e.resolveComponent("dt-recipe-callbar-button"),d=e.resolveComponent("dt-icon"),c=e.resolveComponent("dt-button"),h=e.resolveComponent("dt-popover");return e.openBlock(),e.createElementBlock("div",ls,[e.createVNode(l,{"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(h,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(c,{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 cs=s._export_sfc(ss,[["render",ds]]);const us={name:"DtRecipeContactInfo",components:{DtAvatar:f.DtAvatar,DtListItem:f.DtListItem},props:{id:{type:String,default(){return s.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")}}},hs=["aria-labelledby"],ms={key:0,class:"dt-contact-info--avatars d-mrn4 d-d-flex d-fd-row"},fs={"data-qa":"contact-info-header"},ps={"data-qa":"contact-info-subtitle"},gs={"data-qa":"contact-info-bottom"},_s={"data-qa":"contact-info-right"};function bs(t,a,n,r,i,o){const l=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]=(...c)=>o.avatarClick&&o.avatarClick(...c))},[n.avatarList?(e.openBlock(),e.createElementBlock("span",ms,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.avatarList,(c,h)=>(e.openBlock(),e.createBlock(l,{key:h,size:n.avatarSize,seed:c.seed,"full-name":c.fullName,"image-src":c.src,"icon-name":n.avatarIcon,"overlay-icon":c.icon,"overlay-text":c.text,"avatar-class":[{"d-mln24":h>0,"d-bc-brand":!!c.halo}]},null,8,["size","seed","full-name","image-src","icon-name","overlay-icon","overlay-text","avatar-class"]))),128))])):(e.openBlock(),e.createBlock(l,{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,hs)):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.createElementVNode("div",fs,[e.renderSlot(t.$slots,"header",{},void 0,!0)])]),subtitle:e.withCtx(()=>[e.createElementVNode("div",ps,[e.renderSlot(t.$slots,"subtitle",{},void 0,!0)])]),bottom:e.withCtx(()=>[e.createElementVNode("div",gs,[e.renderSlot(t.$slots,"bottom",{},void 0,!0)])]),right:e.withCtx(()=>[e.createElementVNode("div",_s,[e.renderSlot(t.$slots,"right",{},void 0,!0)])]),_:3},8,["id","role"])}const ys=s._export_sfc(us,[["render",bs],["__scopeId","data-v-3d0f9d2e"]]),Yt=["green300","green100","red200","red100","gold100","gold200","black100","white"];const vs={name:"DtRecipeTopBannerInfo",props:{colorCode:{type:String,default:"green300",validator:function(t){return Yt.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]]}}},Ss={class:"d-top-banner-info__left"},Cs={class:"d-top-banner-info__middle d-my4"},Es={class:"d-top-banner-info__right d-ta-right"};function ws(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",Ss,[e.renderSlot(t.$slots,"left")]),e.createElementVNode("div",Cs,[e.renderSlot(t.$slots,"default")]),e.createElementVNode("div",Es,[e.renderSlot(t.$slots,"right")])],2)}const ks=s._export_sfc(vs,[["render",ws]]),Ee="promptmenu",we="promptcollect",ke="promptplay",Ie="gotoexpert",fe="goto",De="branch",Te="transfer",Oe="hangup",Zt={[Ee]:"keypad",[we]:"dialer",[ke]:"volume-2",[Ie]:"expert-node",[De]:"branch",[fe]:"call-merge",[Te]:"transfer",[Oe]:"phone-hang-up"},Is={[Ee]:"Menu",[we]:"Collect",[ke]:"Play",[Ie]:"Expert",[De]:"Branch",[fe]:"Go-to",[Te]:"Transfer",[Oe]:"Hangup"},G={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"}},Ds={[Ee]:G.PROMPT,[we]:G.PROMPT,[ke]:G.PROMPT,[Ie]:G.LOGIC,[De]:G.LOGIC,[fe]:G.LOGIC,[Te]:G.TERMINAL,[Oe]:G.TERMINAL};const Ts={name:"DtRecipeIvrNode",components:{DtCard:Dt,DtButton:s.DtButton,DtDropdown:xt,DtIcon:s.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 Zt[this.nodeType]},headerColor(){const{normal:t,selected:a}=Ds[this.nodeType];return this.isSelected?a:t},isGotoNode(){return this.nodeType===fe}},methods:{openMenu(){this.isOpen=!0}}},Os={class:"d-d-flex d-ai-center"},Ns={class:"d-fs-200 d-fw-bold","data-qa":"ivr-node-label"},Bs={class:"d-w164"};function Ls(t,a,n,r,i,o){const l=e.resolveComponent("dt-icon"),d=e.resolveComponent("dt-button"),c=e.resolveComponent("dt-dropdown"),h=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(h,{"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",Os,[e.createVNode(d,{"aria-label":n.nodeType,importance:"clear",kind:"muted","data-qa":"dt-ivr-node-icon"},{icon:e.withCtx(()=>[e.createVNode(l,{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",Ns,e.toDisplayString(n.nodeLabel),1)]),e.createVNode(c,{open:i.isOpen,"onUpdate:open":a[0]||(a[0]=m=>i.isOpen=m),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(l,{name:"more-vertical",size:"200"})]),_:1},8,["aria-label","onClick"])]),list:e.withCtx(({close:m})=>[e.createElementVNode("div",Bs,[e.renderSlot(t.$slots,"menuItems",{close:m})])]),_:3},8,["open"])]),content:e.withCtx(()=>[e.renderSlot(t.$slots,"content")]),_:3},8,["container-class","header-class"])],16)}const xs=s._export_sfc(Ts,[["render",Ls]]);const As={name:"DtRecipeGroupedChip",components:{DtChip:nt},data(){return{hasSlotContent:s.hasSlotContent}}},Ms={"data-qa":"grouped-chip",class:"d-d-inline-flex d-ws-nowrap d-bgc-unset"},Ps={key:0,"data-qa":"left-grouped-chip-icon"},Vs={key:0,"data-qa":"left-grouped-chip-content"},Rs={key:0,"data-qa":"right-grouped-chip-icon"},$s={key:0,"data-qa":"right-grouped-chip-content"};function zs(t,a,n,r,i,o){const l=e.resolveComponent("dt-chip");return e.openBlock(),e.createElementBlock("div",Ms,[e.createVNode(l,{"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",Vs,[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",Ps,[e.renderSlot(t.$slots,"leftIcon")])):e.createCommentVNode("",!0)]),key:"0"}:void 0]),1024),e.createVNode(l,{"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",Rs,[e.renderSlot(t.$slots,"rightIcon")])):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[i.hasSlotContent(t.$slots.rightContent)?(e.openBlock(),e.createElementBlock("div",$s,[e.renderSlot(t.$slots,"rightContent")])):e.createCommentVNode("",!0)]),_:3})])}const Fs=s._export_sfc(As,[["render",zs]]);const qs={name:"DtRecipeSettingsMenuButton",components:{DtButton:s.DtButton,DtIcon:s.DtIcon},inheritAttrs:!1,props:{updateAvailable:{type:Boolean,default:!1},ariaLabel:{type:String,required:!0}}};function Hs(t,a,n,r,i,o){const l=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(l,{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(l,{name:"more-vertical",size:"300"})]),_:1},16,["aria-label"]))}const Us=s._export_sfc(qs,[["render",Hs],["__scopeId","data-v-b0dfa8b3"]]),N={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"},Qt={[N.INBOX]:"inbox",[N.CONTACTS]:"contacts",[N.CHANNELS]:"hash",[N.THREADS]:"thread",[N.LOCKED_CHANNEL]:"lock",[N.QUICK_START]:"sparkle",[N.COACHING_GROUP]:"users",[N.COACHING_CENTER]:"external-link","locked channel unread":"lock-filled","channel unread":"hash-bold",[N.ASSIGNED]:"at-sign",[N.DIGITAL]:"message"},he={"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"},Xt="If type is contact center, color must be oneof the following:"+Object.keys(he).join(", "),Jt=["300","200"],Ws={},Ks={"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"},js=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),Gs=[js];function Ys(t,a){return e.openBlock(),e.createElementBlock("svg",Ks,Gs)}const Zs=s._export_sfc(Ws,[["render",Ys]]),Qs={name:"DtRecipeLeftbarGeneralRowIcon",components:{DtIcon:s.DtIcon,IconDialbot:Zs},props:{type:{type:String,default:null},color:{type:String,default:null},iconSize:{type:String,default:"300"}},computed:{isIconType(){return![N.DIALBOT,N.CONTACT_CENTER].includes(this.type)},isContactCenterType(){return this.type===N.CONTACT_CENTER},isDialbotType(){return this.type===N.DIALBOT},getIconName(){return Qt[this.type]},contactCenterIconClasses(){return["dt-leftbar-row__icon-cc",he[this.color]]},dialbotClasses(){return["d-w24","d-h24","d-d-flex","d-ai-center","d-jc-center"]}}};function Xs(t,a,n,r,i,o){const l=e.resolveComponent("dt-icon"),d=e.resolveComponent("icon-dialbot");return o.isIconType?(e.openBlock(),e.createBlock(l,{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 Js=s._export_sfc(Qs,[["render",Xs]]);const el={name:"DtRecipeGeneralRow",components:{DtEmojiTextWrapper:Xe.DtEmojiTextWrapper,DtBadge:Je,DtIcon:s.DtIcon,DtButton:s.DtButton,DtTooltip:s.DtTooltip,DtRecipeLeftbarGeneralRowIcon:Js},inheritAttrs:!1,props:{type:{type:String,default:"inbox",validator:t=>Object.values(N).includes(t)},ariaLabel:{type:String,default:""},description:{type:String,required:!0},color:{type:String,default:null,validator:t=>Object.keys(he).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=>Jt.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 N.CHANNELS:if(this.hasUnreads)return"channel unread";break;case N.LOCKED_CHANNEL:if(this.hasUnreads)return"locked channel unread";break}return this.type},generalRowListeners(){return s.extractVueListeners(this.$attrs)},getAriaLabel(){return this.ariaLabel?this.ariaLabel:s.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===N.CONTACT_CENTER&&!Object.keys(he).includes(this.color)&&console.error(Xt)},adjustLabelWidth(){var i,o,l,d,c,h;const t=((o=(i=this.$el)==null?void 0:i.querySelector(".dt-leftbar-row__primary"))==null?void 0:o.clientWidth)||0,a=((d=(l=this.$el)==null?void 0:l.querySelector(".dt-leftbar-row__omega"))==null?void 0:d.clientWidth)||0,n=((h=(c=this.$el)==null?void 0:c.querySelector(".dt-leftbar-row__alpha"))==null?void 0:h.clientWidth)||0,r=16;this.labelWidth=t-(a+n+r)+"px"}}},ot=t=>(e.pushScopeId("data-v-49d75ce6"),t=t(),e.popScopeId(),t),tl=["data-qa","aria-label","title","href"],nl={class:"dt-leftbar-row__alpha"},al={key:0,class:"dt-leftbar-row__is-typing"},ol=ot(()=>e.createElementVNode("span",null,null,-1)),il=ot(()=>e.createElementVNode("span",null,null,-1)),rl=ot(()=>e.createElementVNode("span",null,null,-1)),sl=[ol,il,rl],ll={key:0,class:"dt-leftbar-row__omega"},dl={key:1,class:"dt-leftbar-row__active-voice"},cl={key:3,class:"dt-leftbar-row__action","data-qa":"dt-leftbar-row-action"};function ul(t,a,n,r,i,o){const l=e.resolveComponent("dt-recipe-leftbar-general-row-icon"),d=e.resolveComponent("dt-emoji-text-wrapper"),c=e.resolveComponent("dt-tooltip"),h=e.resolveComponent("dt-icon"),m=e.resolveComponent("dt-badge"),u=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",nl,[n.isTyping?(e.openBlock(),e.createElementBlock("div",al,sl)):e.renderSlot(t.$slots,"left",{key:1},()=>[e.createVNode(l,{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,tl),o.hasActions?(e.openBlock(),e.createElementBlock("div",ll,[n.dndText?(e.openBlock(),e.createBlock(c,{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",dl,[e.createVNode(h,{size:"300",name:"waveform"})])):o.showUnreadCount?(e.openBlock(),e.createBlock(c,{key:2,message:n.unreadCountTooltip,placement:"top"},{anchor:e.withCtx(()=>[e.createVNode(m,{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",cl,[e.createVNode(c,{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: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(h,{name:"phone",size:"200"})]),_:1},8,["aria-label"])]),_:1},8,["message"])])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],2)}const it=s._export_sfc(el,[["render",ul],["__scopeId","data-v-49d75ce6"]]),hl={name:"DtRecipeGroupRow",components:{DtIcon:s.DtIcon,DtRecipeGeneralRow:it},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:["click"],computed:{ariaLabel(){return s.safeConcatStrings([this.groupCountText,this.names])}}};function ml(t,a,n,r,i,o){const l=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),{left:e.withCtx(()=>[e.createVNode(l,{name:"users",size:"300"})]),_:1},16,["description","aria-label","unread-count","has-unreads","unread-count-tooltip","selected","is-typing"])}const fl=s._export_sfc(hl,[["render",ml]]),pl={name:"DtRecipeContactRow",components:{DtAvatar:f.DtAvatar,DtRecipeGeneralRow:it,DtEmojiTextWrapper:Xe.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 s.extractVueListeners(this.$attrs)},contactDescription(){return s.safeConcatStrings([this.name,this.presenceText,this.userStatus])},iconName(){return this.noInitials?"user":null}}},gl={class:"dt-leftbar-row__status"};function _l(t,a,n,r,i,o){const l=e.resolveComponent("dt-avatar"),d=e.resolveComponent("dt-emoji-text-wrapper"),c=e.resolveComponent("dt-recipe-general-row");return e.openBlock(),e.createBlock(c,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]=h=>t.$emit("call",h))}),{left:e.withCtx(()=>[e.createVNode(l,{"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",gl,[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 bl=s._export_sfc(pl,[["render",_l]]),en=["up","down"],tn=["mentions","messages"];const yl={name:"DtRecipeUnreadPill",components:{DtIcon:s.DtIcon},props:{kind:{type:String,required:!0,validator:t=>tn.includes(t)},direction:{type:String,required:!0,validator:t=>en.includes(t)}},emits:["click"],computed:{unreadChipListeners(){return{click:t=>this.$emit("click",t)}}}},vl={"data-qa":"dt-leftbar-unread-pill__label"};function Sl(t,a,n,r,i,o){const l=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(l,{name:`arrow-${n.direction}`,size:"300"},null,8,["name"]),e.createElementVNode("span",vl,[e.renderSlot(t.$slots,"default")])],16)}const Cl=s._export_sfc(yl,[["render",Sl]]),Me={NORMAL:"",SEARCHED:"d-bgc-warning-subtle",ERROR:"d-bgc-critical-subtle"},Pe="NORMAL";const El={name:"DtRecipeFeedItemRow",components:{DtAvatar:f.DtAvatar,DtLazyShow:s.DtLazyShow,DtListItem:f.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)}}},wl={key:0,"data-qa":"dt-feed-item-row--header",class:"d-d-flex d-ai-center"},kl={class:"d-fs-200 d-lh-300 d-fw-bold d-to-ellipsis d-of-hidden d-ws-nowrap"},Il={class:"d-fs-100 d-mt2 d-lh-300 d-fc-tertiary d-fw-normal d-ml4 d-fl-shrink0"},Dl={class:"content-text-wrapper-class","data-qa":"dt-feed-item-row--content"},Tl={class:"d-d-flex d-fw-wrap","data-qa":"dt-feed-item-row--reactions"},Ol={"data-qa":"dt-feed-item-row--menu",class:"d-ps-absolute d-tn24 d-r12"};function Nl(t,a,n,r,i,o){const l=e.resolveComponent("dt-avatar"),d=e.resolveComponent("dt-lazy-show"),c=e.resolveComponent("dt-list-item");return e.openBlock(),e.createBlock(c,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.openBlock(),e.createBlock(l,{key:0,"full-name":n.displayName,"image-src":n.avatarImageUrl,seed:n.avatarSeed},null,8,["full-name","image-src","seed"])):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",Tl,[e.renderSlot(t.$slots,"reactions",{},void 0,!0)]),e.renderSlot(t.$slots,"threading",{},void 0,!0)]),right:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",Ol,[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",wl,[e.createElementVNode("p",kl,e.toDisplayString(n.displayName),1),e.createElementVNode("time",Il,e.toDisplayString(n.time),1)])):e.createCommentVNode("",!0),e.createElementVNode("span",Dl,[e.renderSlot(t.$slots,"default",{},void 0,!0)])])]),_:3},16,["class"])}const Bl=s._export_sfc(El,[["render",Nl],["__scopeId","data-v-de44d2c0"]]),Ye={default:"dt-feed-item-pill--border-default",ai:"dt-feed-item-pill--border-ai",critical:"dt-feed-item-pill--border-critical"};const Ll={name:"DtRecipeFeedItemPill",components:{DtItemLayout:f.DtItemLayout,DtIcon:s.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},borderColor:{type:String,default:"default",validator:t=>Object.keys(Ye).includes(t)}},data(){return{hover:!1,expanded:!1}},computed:{computedIcon(){return this.toggleable&&this.hover?this.expanded?"chevron-down":"chevron-right":this.iconName},toggleableClass(){return this.toggleable?"d-c-pointer":""},borderClass(){return Ye[this.borderColor]}},methods:{onClick(){this.toggleable&&(this.expanded=!this.expanded)}}},xl={class:"d-p8 d-bgc-secondary"},Al=["aria-label"],Ml={class:"d-fw-bold"},Pl={class:"d-jc-center d-d-flex"};function Vl(t,a,n,r,i,o){const l=e.resolveComponent("dt-icon"),d=e.resolveComponent("dt-item-layout"),c=e.resolveComponent("dt-collapsible");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["dt-feed-item-pill--border",o.borderClass,n.wrapperClass])},[e.createElementVNode("div",xl,[e.createVNode(c,{open:i.expanded},{anchor:e.withCtx(()=>[e.createElementVNode("button",{"aria-label":n.ariaLabel,"data-qa":"dt-feed-item-pill",class:e.normalizeClass(["d-baw0 d-bgc-moderate d-bar-pill d-w100p d-ta-left d-btn--circle",o.toggleableClass,n.buttonClass]),onFocusin:a[0]||(a[0]=h=>i.hover=!0),onFocusout:a[1]||(a[1]=h=>i.hover=!1),onMouseenter:a[2]||(a[2]=h=>i.hover=!0),onMouseleave:a[3]||(a[3]=h=>i.hover=!1),onClick:a[4]||(a[4]=(...h)=>o.onClick&&o.onClick(...h))},[e.createVNode(d,{class:"d-w100p d-p8"},{left:e.withCtx(()=>[e.createVNode(l,{size:"300",class:"dt-feed-item-pill--icon d-pr8","data-qa":"dt-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.createElementVNode("span",Ml,e.toDisplayString(n.title),1)]),_:3})],42,Al)]),content:e.withCtx(()=>[e.createElementVNode("div",Pl,[e.renderSlot(t.$slots,"content",{},void 0,!0)])]),_:3},8,["open"])])],2)}const Rl=s._export_sfc(Ll,[["render",Vl],["__scopeId","data-v-59051987"]]),$l={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)}}}},zl=["dateTime"];function Fl(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,zl)}const ql=s._export_sfc($l,[["render",Fl]]),nn=["emojiUnicodeOrShortname","isSelected","ariaLabel","tooltip","num"];const Hl={name:"DtRecipeEmojiRow",components:{DtTooltip:s.DtTooltip,DtButton:s.DtButton,DtEmoji:s.DtEmoji,DtEmojiTextWrapper:Xe.DtEmojiTextWrapper},mixins:[],props:{reactions:{type:Array,default:()=>[],validator:t=>{for(const a of t)if(!nn.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})}}},Ul={class:"dt-emoji-row"},Wl=["reaction"],Kl={"aria-hidden":"true"},jl={class:"d-mr4 d-d-inline-flex"},Gl={class:"d-fw-bold d-fs-100"};function Yl(t,a,n,r,i,o){const l=e.resolveComponent("dt-emoji-text-wrapper"),d=e.resolveComponent("dt-emoji"),c=e.resolveComponent("dt-button"),h=e.resolveComponent("dt-tooltip");return e.openBlock(),e.createElementBlock("span",Ul,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.reactions,m=>(e.openBlock(),e.createElementBlock("span",{key:m.unicodeOutput,reaction:m,class:"d-mr4 d-mb4"},[e.createVNode(h,{class:"d-d-inline-block","content-class":"d-wmx464",onShown:u=>o.emojiHovered(m,u)},{anchor:e.withCtx(({attrs:u})=>[e.createVNode(c,{importance:"clear",size:"sm","data-qa":"feed-item-reaction-button",class:e.normalizeClass(["dt-emoji-row__reaction",m.isSelected?"dt-emoji-row__reaction--selected":""]),"aria-label":m.ariaLabel,attrs:u,onClick:g=>o.emojiClicked(m)},{default:e.withCtx(()=>[e.createElementVNode("span",jl,[e.createVNode(d,{size:"200",code:m.emojiUnicodeOrShortname},null,8,["code"])]),e.createElementVNode("span",Gl,e.toDisplayString(m.num),1)]),_:2},1032,["class","aria-label","attrs","onClick"])]),default:e.withCtx(()=>[e.createElementVNode("span",Kl,[e.createVNode(l,{size:"200"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(m.tooltip),1)]),_:2},1024)])]),_:2},1032,["onShown"])],8,Wl))),128))])}const Zl=s._export_sfc(Hl,[["render",Yl]]),Ze={warning:"dt-recipe-callbox-badge--warning"},Qe={default:"dt-recipe-callbox--border-default",ai:"dt-recipe-callbox--border-ai",critical:"dt-recipe-callbox--border-critical"};const Ql={name:"DtRecipeCallbox",components:{DtBadge:Je,DtAvatar:f.DtAvatar},inheritAttrs:!1,props:{badgeText:{type:String,default:""},badgeColor:{type:String,default:null,validator:t=>t===null||Object.keys(Ze).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(Qe).includes(t)},clickable:{type:Boolean,default:!1},isOnHold:{type:Boolean,default:!1}},emits:["click"],computed:{shouldShowAvatar(){return this.avatarFullName||this.avatarSrc},badgeClass(){return Ze[this.badgeColor]},borderClass(){return Qe[this.borderColor]}},methods:{handleClick(t){this.clickable&&this.$emit("click",t)}}},Xl={"data-qa":"dt-recipe-callbox",class:"dt-recipe-callbox"},Jl={key:0,"data-qa":"dt-recipe-callbox--video-wrapper",class:"dt-recipe-callbox--video"},ed={class:"dt-recipe-callbox--main-content-top"},td={class:"dt-recipe-callbox--content"},nd={key:0,"data-qa":"dt-recipe-callbox--badge-wrapper",class:"dt-recipe-callbox--content-badge"},ad={key:1,"data-qa":"dt-recipe-callbox--subtitle-wrapper",class:"dt-recipe-callbox--content-subtitle"},od={key:1,"data-qa":"dt-recipe-callbox--right-wrapper",class:"dt-recipe-callbox--right"},id={key:0,"data-qa":"dt-recipe-callbox--bottom-wrapper",class:"dt-recipe-callbox--main-content-bottom"};function rd(t,a,n,r,i,o){const l=e.resolveComponent("dt-avatar"),d=e.resolveComponent("dt-badge");return e.openBlock(),e.createElementBlock("div",Xl,[t.$slots.video?(e.openBlock(),e.createElementBlock("div",Jl,[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",ed,[o.shouldShowAvatar?(e.openBlock(),e.createBlock(l,{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",td,[(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",nd,[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",ad,[e.renderSlot(t.$slots,"subtitle",{},void 0,!0)])):e.createCommentVNode("",!0)]),t.$slots.right?(e.openBlock(),e.createElementBlock("div",od,[e.renderSlot(t.$slots,"right",{},void 0,!0)])):e.createCommentVNode("",!0)]),t.$slots.bottom?(e.openBlock(),e.createElementBlock("div",id,[e.renderSlot(t.$slots,"bottom",{},void 0,!0)])):e.createCommentVNode("",!0)],2)])}const sd=s._export_sfc(Ql,[["render",rd],["__scopeId","data-v-66800ae7"]]);exports.AVATAR_COLORS=f.AVATAR_COLORS;exports.AVATAR_GROUP_VALIDATOR=f.AVATAR_GROUP_VALIDATOR;exports.AVATAR_ICON_SIZES=f.AVATAR_ICON_SIZES;exports.AVATAR_KIND_MODIFIERS=f.AVATAR_KIND_MODIFIERS;exports.AVATAR_PRESENCE_SIZE_MODIFIERS=f.AVATAR_PRESENCE_SIZE_MODIFIERS;exports.AVATAR_PRESENCE_STATES=f.AVATAR_PRESENCE_STATES;exports.AVATAR_SIZE_MODIFIERS=f.AVATAR_SIZE_MODIFIERS;exports.DtAvatar=f.DtAvatar;exports.DtItemLayout=f.DtItemLayout;exports.DtLink=f.DtLink;exports.DtListItem=f.DtListItem;exports.DtNotice=f.DtNotice;exports.DtPopover=f.DtPopover;exports.DtPresence=f.DtPresence;exports.DtStack=f.DtStack;exports.NOTICE_KINDS=f.NOTICE_KINDS;exports.POPOVER_CONTENT_WIDTHS=f.POPOVER_CONTENT_WIDTHS;exports.POPOVER_HEADER_FOOTER_PADDING_CLASSES=f.POPOVER_HEADER_FOOTER_PADDING_CLASSES;exports.POPOVER_INITIAL_FOCUS_STRINGS=f.POPOVER_INITIAL_FOCUS_STRINGS;exports.POPOVER_PADDING_CLASSES=f.POPOVER_PADDING_CLASSES;exports.POPOVER_ROLES=f.POPOVER_ROLES;exports.PRESENCE_STATES=f.PRESENCE_STATES;exports.PRESENCE_STATES_LIST=f.PRESENCE_STATES_LIST;exports.CDN_URL=s.CDN_URL;exports.DEFAULT_VALIDATION_MESSAGE_TYPE=s.DEFAULT_VALIDATION_MESSAGE_TYPE;exports.DESCRIPTION_SIZE_TYPES=s.DESCRIPTION_SIZE_TYPES;exports.DtButton=s.DtButton;exports.DtCheckableInputMixin=s.CheckableMixin;exports.DtEmojiPicker=s._sfc_main;exports.DtGroupableInputMixin=s.GroupableMixin;exports.DtIcon=s.DtIcon;exports.DtInput=s.DtInput;exports.DtInputMixin=s.InputMixin;exports.DtLazyShow=s.DtLazyShow;exports.DtSkeleton=s.DtSkeleton;exports.DtSkeletonListItem=s.DtSkeletonListItem;exports.DtSkeletonParagraph=s.DtSkeletonParagraph;exports.DtSkeletonShape=s.DtSkeletonShape;exports.DtSkeletonText=s.DtSkeletonText;exports.DtTab=s.DtTab;exports.DtTabGroup=s.DtTabGroup;exports.DtTooltip=s.DtTooltip;exports.DtValidationMessages=s.DtValidationMessages;exports.EMOJIS_PER_ROW=s.EMOJIS_PER_ROW;exports.EMOJI_CATEGORIES=s.EMOJI_CATEGORIES;exports.EMOJI_SKIN_TONE_MODIFIERS=s.EMOJI_SKIN_TONE_MODIFIERS;exports.ICON_SIZE_MODIFIERS=s.ICON_SIZE_MODIFIERS;exports.INPUT_SIZES=s.INPUT_SIZES;exports.INPUT_TYPES=s.INPUT_TYPES;exports.LINK_KIND_MODIFIERS=s.LINK_KIND_MODIFIERS;exports.LINK_VARIANTS=s.LINK_VARIANTS;exports.SKELETON_HEADING_HEIGHTS=s.SKELETON_HEADING_HEIGHTS;exports.SKELETON_RIPPLE_DURATION=s.SKELETON_RIPPLE_DURATION;exports.SKELETON_SHAPES=s.SKELETON_SHAPES;exports.SKELETON_SHAPE_SIZES=s.SKELETON_SHAPE_SIZES;exports.SKELETON_TEXT_TYPES=s.SKELETON_TEXT_TYPES;exports.TAB_IMPORTANCE_MODIFIERS=s.TAB_IMPORTANCE_MODIFIERS;exports.TAB_LIST_IMPORTANCE_MODIFIERS=s.TAB_LIST_IMPORTANCE_MODIFIERS;exports.TAB_LIST_KIND_MODIFIERS=s.TAB_LIST_KIND_MODIFIERS;exports.TAB_LIST_SIZES=s.TAB_LIST_SIZES;exports.TOOLTIP_DELAY_MS=s.TOOLTIP_DELAY_MS;exports.TOOLTIP_DIRECTIONS=s.TOOLTIP_DIRECTIONS;exports.TOOLTIP_HIDE_ON_CLICK_VARIANTS=s.TOOLTIP_HIDE_ON_CLICK_VARIANTS;exports.TOOLTIP_KIND_MODIFIERS=s.TOOLTIP_KIND_MODIFIERS;exports.TOOLTIP_STICKY_VALUES=s.TOOLTIP_STICKY_VALUES;exports.VALIDATION_MESSAGE_TYPES=s.VALIDATION_MESSAGE_TYPES;exports.filterFormattedMessages=s.filterFormattedMessages;exports.formatMessages=s.formatMessages;exports.getUniqueString=s.getUniqueString;exports.getValidationState=s.getValidationState;exports.validationMessageValidator=s.validationMessageValidator;exports.BADGE_DECORATION_MODIFIERS=$e;exports.BADGE_KIND_MODIFIERS=Re;exports.BADGE_TYPE_MODIFIERS=Ve;exports.BREADCRUMBS_INVERTED_MODIFIER=kt;exports.BREADCRUMB_ITEM_SELECTED_MODIFIER=wt;exports.BUTTON_GROUP_ALIGNMENT=ze;exports.CALLBAR_BUTTON_VALID_WIDTH_SIZE=at;exports.CALLBOX_BADGE_COLORS=Ze;exports.CALLBOX_BORDER_COLORS=Qe;exports.CHIP_SIZE_MODIFIERS=Ue;exports.COLOR_CODES=Yt;exports.DtBadge=Je;exports.DtBanner=mn;exports.DtBreadcrumbItem=It;exports.DtBreadcrumbs=yn;exports.DtButtonGroup=Cn;exports.DtCard=Dt;exports.DtCheckbox=eo;exports.DtCheckboxGroup=to;exports.DtChip=nt;exports.DtCodeblock=Tn;exports.DtCollapsible=Lt;exports.DtCombobox=Bt;exports.DtDatepicker=Vr;exports.DtDropdown=xt;exports.DtDropdownSeparator=Jn;exports.DtImageViewer=ra;exports.DtInputGroup=tt;exports.DtInputGroupMixin=At;exports.DtKeyboardListNavigationMixin=et;exports.DtKeyboardShortcut=zo;exports.DtListItemGroup=Na;exports.DtListSection=ka;exports.DtModal=_a;exports.DtPagination=Ma;exports.DtRadio=qa;exports.DtRadioGroup=Ha;exports.DtRecipeCallbarButton=Gt;exports.DtRecipeCallbarButtonWithPopover=cs;exports.DtRecipeCallbox=sd;exports.DtRecipeComboboxMultiSelect=os;exports.DtRecipeComboboxWithPopover=Kt;exports.DtRecipeContactInfo=ys;exports.DtRecipeContactRow=bl;exports.DtRecipeEmojiRow=Zl;exports.DtRecipeFeedItemPill=Rl;exports.DtRecipeFeedItemRow=Bl;exports.DtRecipeGeneralRow=it;exports.DtRecipeGroupRow=fl;exports.DtRecipeGroupedChip=Fs;exports.DtRecipeIvrNode=xs;exports.DtRecipeSettingsMenuButton=Us;exports.DtRecipeTimePill=ql;exports.DtRecipeTopBannerInfo=ks;exports.DtRecipeUnreadPill=Cl;exports.DtRootLayout=Ho;exports.DtScroller=Go;exports.DtSelectMenu=So;exports.DtTabPanel=ja;exports.DtToast=Io;exports.DtToggle=Ao;exports.FEED_ITEM_PILL_BORDER_COLORS=Ye;exports.IVR_NODE_BRANCH=De;exports.IVR_NODE_EXPERT=Ie;exports.IVR_NODE_GO_TO=fe;exports.IVR_NODE_HANGUP=Oe;exports.IVR_NODE_ICON_TYPES=Zt;exports.IVR_NODE_LABELS=Is;exports.IVR_NODE_PROMPT_COLLECT=we;exports.IVR_NODE_PROMPT_MENU=Ee;exports.IVR_NODE_PROMPT_PLAY=ke;exports.IVR_NODE_TRANSFER=Te;exports.LEFTBAR_GENERAL_ROW_CONTACT_CENTER_COLORS=he;exports.LEFTBAR_GENERAL_ROW_CONTACT_CENTER_VALIDATION_ERROR=Xt;exports.LEFTBAR_GENERAL_ROW_ICON_MAPPING=Qt;exports.LEFTBAR_GENERAL_ROW_ICON_SIZES=Jt;exports.LEFTBAR_GENERAL_ROW_TYPES=N;exports.MODAL_BANNER_KINDS=He;exports.MODAL_KIND_MODIFIERS=Fe;exports.MODAL_SIZE_MODIFIERS=qe;exports.MULTI_SELECT_SIZES=jt;exports.REACTIONS_ATTRIBUTES=nn;exports.ROOT_LAYOUT_RESPONSIVE_BREAKPOINTS=Rt;exports.ROOT_LAYOUT_SIDEBAR_POSITIONS=Ke;exports.SELECT_SIZE_MODIFIERS=We;exports.SELECT_STATE_MODIFIERS=Mt;exports.SHORTCUTS_ALIASES_LIST=Mo;exports.SHORTCUTS_ICON_ALIASES=te;exports.SHORTCUTS_ICON_SEPARATOR=Vt;exports.TOAST_ROLES=Pt;exports.UNREAD_PILL_DIRECTIONS=en;exports.UNREAD_PILL_KINDS=tn;exports.formatLong=Rr;exports.formatMedium=$r;exports.formatNoYear=Fr;exports.formatNumerical=qr;exports.formatShort=zr;