@dialpad/dialtone 9.13.2 → 9.13.4
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.
- package/dist/css/CHANGELOG.json +1 -1
- package/dist/css/dialtone.css +5 -5
- package/dist/css/dialtone.min.css +1 -1
- package/dist/tokens/android/java/tokens-dark.kt +1 -1
- package/dist/tokens/android/java/tokens-light.kt +1 -1
- package/dist/tokens/android/res/values/colors-dark.xml +1 -1
- package/dist/tokens/android/res/values/colors-light.xml +1 -1
- package/dist/tokens/android/res/values/dimens.xml +1 -1
- package/dist/tokens/css/variables-dark.css +1 -1
- package/dist/tokens/css/variables-light.css +1 -1
- package/dist/tokens/ios/tokens-dark.swift +1 -1
- package/dist/tokens/ios/tokens-light.swift +1 -1
- package/dist/tokens/less/variables-dark.less +1 -1
- package/dist/tokens/less/variables-light.less +1 -1
- package/dist/vue2/dialtone-vue.cjs +1 -1
- package/dist/vue2/dialtone-vue.js +1 -1
- package/dist/vue3/dialtone-vue.cjs +1 -1
- package/dist/vue3/dialtone-vue.js +1 -0
- package/package.json +1 -1
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
background-size: ${this.backgroundSize};`}},mounted(){this.important&&this.focusFirstElement()},methods:{trapFocus(e){this.important&&this.focusTrappedTabPress(e)}}};var On=function(){var t=this,n=t._self._c;return n("aside",{class:t.bannerClass,style:t.bannerBackgroundImage,on:{keydown:function(a){return!a.type.indexOf("key")&&t._k(a.keyCode,"tab",9,a.key,"Tab")?null:t.trapFocus.apply(null,arguments)}}},[n("div",{staticClass:"d-banner__dialog",class:t.dialogClass,attrs:{role:t.role,"aria-labelledby":t.titleId,"aria-describedby":t.contentId}},[t.hideIcon?t._e():n("dt-notice-icon",t._g({attrs:{kind:t.kind}},t.$listeners),[t._t("icon")],2),n("dt-notice-content",t._g({attrs:{"title-id":t.titleId,"content-id":t.contentId,title:t.title},scopedSlots:t._u([{key:"titleOverride",fn:function(){return[t._t("titleOverride")]},proxy:!0}],null,!0)},t.$listeners),[t._t("default")],2),n("dt-notice-action",t._g({attrs:{"hide-close":t.hideClose,"close-button-props":t.closeButtonProps,"visually-hidden-close":t.visuallyHiddenClose,"visually-hidden-close-label":t.visuallyHiddenCloseLabel}},t.$listeners),[t._t("action")],2)],1)])},kn=[],Ln=o.normalizeComponent(En,On,kn,!1,null,null,null,null);const xn=Ln.exports,de="d-breadcrumbs__item--selected",ce="d-breadcrumbs--inverted",An={name:"DtBreadcrumbItem",components:{DtLink:u.DtLink},inheritAttrs:!1,props:{inverted:{type:Boolean,default:!1},selected:{type:Boolean,default:!1},label:{type:String,default:""}},data(){return{BREADCRUMB_ITEM_SELECTED_MODIFIER:de}},computed:{linkKind(){return this.inverted?l.INVERTED:l.MUTED},ariaCurrent(){return this.selected?"location":void 0}}};var $n=function(){var t=this,n=t._self._c;return n("li",{class:["d-breadcrumbs__item",{[t.BREADCRUMB_ITEM_SELECTED_MODIFIER]:t.selected}],attrs:{"data-qa":"dt-breadcrumb-item"}},[n("dt-link",t._b({attrs:{kind:t.linkKind,"aria-current":t.ariaCurrent,"data-qa":"breadcrumb-item"}},"dt-link",t.$attrs,!1),[t._t("default",function(){return[t._v(" "+t._s(t.label)+" ")]})],2)],1)},Rn=[],Mn=o.normalizeComponent(An,$n,Rn,!1,null,null,null,null);const ue=Mn.exports,Nn={name:"DtBreadcrumbs",components:{DtBreadcrumbItem:ue},props:{breadcrumbs:{type:Array,default:()=>[],validate(e){return e.every(({href:t,label:n})=>t!==void 0&&n!==void 0)}},inverted:{type:Boolean,default:!1},ariaLabel:{type:String,default:"breadcrumb"}},data(){return{BREADCRUMBS_INVERTED_MODIFIER:ce}},methods:{getBreadcrumbItemKey(e){return`breadcrumbs-item-${e}-${o.utils.getUniqueString()}`}}};var Pn=function(){var t=this,n=t._self._c;return n("nav",{class:["d-breadcrumbs",{[t.BREADCRUMBS_INVERTED_MODIFIER]:t.inverted}],attrs:{"aria-label":t.ariaLabel,"data-qa":"dt-breadcrumbs"}},[n("ol",[t._t("default",function(){return t._l(t.breadcrumbs,function(a,r){return n("dt-breadcrumb-item",t._g(t._b({key:t.getBreadcrumbItemKey(r),attrs:{inverted:t.inverted}},"dt-breadcrumb-item",a,!1),t.$listeners))})})],2)])},Bn=[],Fn=o.normalizeComponent(Nn,Pn,Bn,!1,null,null,null,null);const Vn=Fn.exports,wt={start:"d-btn-group--start",end:"d-btn-group--end","space-between":"d-btn-group--space-between"},qn={name:"DtButtonGroup",props:{alignment:{type:String,default:"start",validator:e=>Object.keys(wt).includes(e)}},data(){return{BUTTON_GROUP_ALIGNMENT:wt}}};var Un=function(){var t=this,n=t._self._c;return n("div",{class:["d-btn-group",t.BUTTON_GROUP_ALIGNMENT[t.alignment]],attrs:{role:"group"}},[t._t("default")],2)},Hn=[],Wn=o.normalizeComponent(qn,Un,Hn,!1,null,null,null,null);const zn=Wn.exports,Yn={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:""}}};var Kn=function(){var t=this,n=t._self._c;return n("div",{class:["d-card",t.containerClass],attrs:{"data-qa":"dt-card"}},[t.$slots.header?n("div",{class:["d-card__header",t.headerClass]},[t._t("header")],2):t._e(),n("div",{class:["d-card__content",t.contentClass],style:{"max-height":t.maxHeight}},[t._t("content")],2),t.$slots.footer?n("div",{class:["d-card__footer",t.footerClass]},[t._t("footer")],2):t._e()])},jn=[],Gn=o.normalizeComponent(Yn,Kn,jn,!1,null,null,null,null);const fe=Gn.exports,Qn={name:"DtCodeblock",props:{text:{type:String,required:!0}}};var Zn=function(){var t=this,n=t._self._c;return n("pre",[t._v(" "),n("code",{staticClass:"d-codeblock"},[t._v(t._s(t.text))]),t._v(`
|
|
3
3
|
`)])},Xn=[],Jn=o.normalizeComponent(Qn,Zn,Xn,!1,null,null,null,null);const ta=Jn.exports,ea={methods:{scrollElementIntoViewIfNeeded(e,t,n,a){e.scrollIntoViewIfNeeded?this.scrollIntoViewIfNeeded(e,t,n,a):this.scrollIntoView(e,"bottom",!1,n,a)},scrollElementIntoView(e,t,n,a){if(t==="center"){this.scrollIntoView(e,"center",!1,n,a);return}t===!1?this.scrollIntoView(e,"bottom",!1,n,a):this.scrollIntoView(e,"top",!1,n,a)},scrollIntoViewIfNeeded(e,t,n,a){const r=t?"center":void 0;this.scrollIntoView(e,r,!0,n,a)},scrollIntoView(e,t,n,a,r){if(!e||!e.parentElement)return;const i=e.offsetTop,s=r||e.parentElement,d=this._getScrollBounds(s),f=d.bottom-d.top,p=this._getElementHeight(e),b=i+p;let c=-1;switch(t){case"top":c=i;break;case"center":c=i+(p-f)/2;break;case"bottom":c=c=b-f;break;default:i-d.top<=f/2?c=i:c=b-f;break}this._setScrollTop(s,c,d,i,b,n,a)},_setScrollTop(e,t,n,a,r,i,s){n=n||this._getScrollBounds(e);const d=n.bottom-n.top;if(i&&this._inScrollBounds(a,r,n))if(a<n.top)t=a;else if(r>n.bottom)t=r-d;else return;s?e.scrollTo({top:t,behavior:s}):e.scrollTop=t},_getElementHeight(e){return e.getBoundingClientRect().height},_getScrollBounds(e){const t=this._getElementHeight(e),n=e.scrollTop;return{top:n,bottom:n+t}},_inScrollBounds(e,t,n){const a=t-e;return t<=n.bottom+3*a/4&&e>=n.top-a/4}}},na="listElementKey is required or the referenced element doesn't exist. Received listElement: ",Ht=({listItemRole:e="option",indexKey:t="highlightIndex",idKey:n="highlightId",listElementKey:a="listRef",activeItemKey:r="",openMethod:i=null,afterHighlightMethod:s=null,beginningOfListMethod:d=null,endOfListMethod:f=null,scrollToOnHighlight:p=!0,focusOnKeyboardNavigation:b=!1}={})=>({mixins:[ea],data(){return{[t]:-1,[n]:"",scrollToOnHighlight:p,focusOnKeyboardNavigation:b}},provide(){return{highlightId:()=>this[n]}},methods:{_getListElement(){var c;return((c=this[a]())==null?void 0:c.$el)||this[a]()},_itemsLength(){const c=this._getListItemNodes();return c===null?0:c.length},_getListItemNodes(){const c=this._getListElement();return c?Array.from(c.querySelectorAll(`[role="${e}"], #sr-only-close-button`)):(console.error(na,c),null)},onUpKey(){i&&this[i](!0),this[t]>0?this.setHighlightIndex(this[t]-1):d&&this[d](),this.scrollActiveItemIntoViewIfNeeded(),this.focusActiveItemIfNeeded()},onDownKey(){i&&this[i](!0),this[t]<this._itemsLength()-1?this.setHighlightIndex(this[t]+1):f&&this[f](),this.scrollActiveItemIntoViewIfNeeded(),this.focusActiveItemIfNeeded()},onHomeKey(){this.jumpToBeginning(),this.scrollActiveItemIntoViewIfNeeded(),this.focusActiveItemIfNeeded()},onEndKey(){this.jumpToEnd(),this.scrollActiveItemIntoViewIfNeeded(),this.focusActiveItemIfNeeded()},onNavigationKey(c){const g=this._getListItemNodes(),_=g.filter(I=>I.textContent.trim().toLowerCase().startsWith(c.toLowerCase()));if(_.length<=0)return;const v=_.findIndex(I=>this[t]===g.indexOf(I)),D=g.indexOf(v<_.length-1?_[v+1]:_[0]);this.setHighlightIndex(D),this.scrollActiveItemIntoViewIfNeeded(),this.focusActiveItemIfNeeded()},isValidLetter(c){return c.length>1?!1:c>="a"&&c<="z"||c>="A"&&c<="Z"},jumpToBeginning(){this.setHighlightIndex(0)},jumpToEnd(){this.setHighlightIndex(this._itemsLength()-1)},setHighlightIndex(c){this[t]=c,this[n]=this._getItemId(c),this._itemsLength()&&s&&this[s](c)},setHighlightId(c){this[n]=c,this[t]=this._getItemIndex(c),this._itemsLength()&&s&&this[s](this._getItemIndex(c))},_getItemIndex(c){const g=this._getListElement();return g?Array.from(g.querySelectorAll(`[role="${e}"], #sr-only-close-button`)).indexOf(g.querySelector(`#${c}`)):void 0},_getItemId(c){var _;const g=this._getListElement();if(g)return(_=g.querySelectorAll(`[role="${e}"], #sr-only-close-button`)[c])==null?void 0:_.id},scrollActiveItemIntoViewIfNeeded(){if(!this.scrollToOnHighlight)return;const c=this[r];if(c){const g=this._getListElement();this.scrollElementIntoViewIfNeeded(c,null,null,g)}},focusActiveItemIfNeeded(){if(!this.focusOnKeyboardNavigation)return;const c=this[r];c&&c.focus()}}}),aa={name:"ComboboxLoadingList",components:{DtListItem:u.DtListItem,DtSkeleton:l.DtSkeleton}};var ra=function(){var t=this,n=t._self._c;return n("ol",{staticClass:"d-combobox__loading-list",attrs:{"aria-busy":"true"}},t._l(7,function(a){return n("dt-list-item",{key:a,attrs:{role:"option","navigation-type":"none"}},[n("dt-skeleton",{attrs:{"text-option":{type:"body"},offset:0}})],1)}),1)},ia=[],sa=o.normalizeComponent(aa,ra,ia,!1,null,null,null,null);const pe=sa.exports,oa={name:"ComboboxEmptyList",components:{DtListItem:u.DtListItem},props:{message:{type:String,required:!0},itemClass:{type:[String,Object,Array],default:""}}};var la=function(){var t=this,n=t._self._c;return n("ol",{staticClass:"d-combobox__empty-list",attrs:{"data-qa":"dt-combobox-empty-list"}},[t._t("default",function(){return[n("dt-list-item",{class:["dt-empty-list-item",t.itemClass],attrs:{role:"option","navigation-type":"none",type:"custom"}},[n("span",[t._v(t._s(t.message))])])]})],2)},da=[],ca=o.normalizeComponent(oa,la,da,!1,null,null,null,null);const he=ca.exports,Wt={EXTRA_SMALL:"xs",SMALL:"sm",DEFAULT:"md",LARGE:"lg",EXTRA_LARGE:"xl"},ua={name:"DtCombobox",components:{ComboboxLoadingList:pe,ComboboxEmptyList:he},mixins:[Ht({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:e=>Object.values(Wt).includes(e)},description:{type:String,default:""},listId:{type:String,default(){return o.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}},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(e){this.listRenderedOutside||(this.setInitialHighlightIndex(),this.$emit("opened",e)),!e&&this.outsideRenderedListRef&&(this.outsideRenderedListRef.removeEventListener("mousemove",this.onMouseHighlight),this.outsideRenderedListRef=null)},loading(e){this.$nextTick(()=>{this.setInitialHighlightIndex()})},$props:{deep:!0,immediate:!0,handler(){this.validateEmptyListProps()}}},created(){this.validateEmptyListProps()},methods:{onMouseHighlight(e){if(this.loading)return;const t=e.target.closest("li");t&&this.highlightId!==t.id&&this.setHighlightId(t.id)},getListElement(){var e;return this.outsideRenderedListRef??((e=this.$refs.listWrapper)==null?void 0:e.querySelector(`#${this.listId}`))},clearHighlightIndex(){this.showList&&this.setHighlightIndex(-1)},afterHighlight(){this.loading||this.$emit("highlight",this.highlightIndex)},onEnterKey(){var e;this.loading||this.emptyList||this.highlightIndex>=0&&(this.$emit("select",this.highlightIndex),this.clickOnSelect&&((e=this.activeItemEl)==null||e.click()))},onEscapeKey(){this.$emit("escape")},onOpen(e,t){var n;this.outsideRenderedListRef=t,(n=this.outsideRenderedListRef)==null||n.addEventListener("mousemove",this.onMouseHighlight),this.$emit("opened",e),e&&this.setInitialHighlightIndex()},onKeyValidation(e,t){!this.showList||!this.getListElement()||this[t](e)},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
4
|
empty message.`)}}};var fa=function(){var t=this,n=t._self._c;return n("div",{on:{keydown:[function(a){return!a.type.indexOf("key")&&t._k(a.keyCode,"esc",27,a.key,["Esc","Escape"])?null:(a.stopPropagation(),t.onKeyValidation(a,"onEscapeKey"))},function(a){return!a.type.indexOf("key")&&t._k(a.keyCode,"enter",13,a.key,"Enter")||a.ctrlKey||a.shiftKey||a.altKey||a.metaKey?null:t.onKeyValidation(a,"onEnterKey")},function(a){return!a.type.indexOf("key")&&t._k(a.keyCode,"up",38,a.key,["Up","ArrowUp"])?null:(a.stopPropagation(),a.preventDefault(),t.onKeyValidation(a,"onUpKey"))},function(a){return!a.type.indexOf("key")&&t._k(a.keyCode,"down",40,a.key,["Down","ArrowDown"])?null:(a.stopPropagation(),a.preventDefault(),t.onKeyValidation(a,"onDownKey"))},function(a){return!a.type.indexOf("key")&&t._k(a.keyCode,"home",void 0,a.key,void 0)?null:(a.stopPropagation(),a.preventDefault(),t.onKeyValidation(a,"onHomeKey"))},function(a){return!a.type.indexOf("key")&&t._k(a.keyCode,"end",void 0,a.key,void 0)?null:(a.stopPropagation(),a.preventDefault(),t.onKeyValidation(a,"onEndKey"))}]}},[n("div",{attrs:{"data-qa":"dt-combobox-input-wrapper"}},[t._t("input",null,{inputProps:t.inputProps})],2),t.showList?n("div",{ref:"listWrapper",attrs:{"data-qa":"dt-combobox-list-wrapper"},on:{mouseleave:t.clearHighlightIndex,focusout:t.clearHighlightIndex,"!mousemove":function(a){return t.onMouseHighlight.apply(null,arguments)}}},[t.loading&&!t.listRenderedOutside?n("combobox-loading-list",t._b({},"combobox-loading-list",t.listProps,!1)):t.emptyList&&(t.emptyStateMessage||t.$slots.emptyListItem)&&!t.listRenderedOutside?n("combobox-empty-list",t._b({attrs:{message:t.emptyStateMessage,"item-class":t.emptyStateClass}},"combobox-empty-list",t.listProps,!1),[t._t("emptyListItem")],2):t._t("list",null,{listProps:t.listProps,opened:t.onOpen,clearHighlightIndex:t.clearHighlightIndex})],2):t._e()])},pa=[],ha=o.normalizeComponent(ua,fa,pa,!1,null,null,null,null);const me=ha.exports,ma={name:"DtCollapsibleLazyShow",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(e){!e||this.initialized||(this.initialized=!0)}},methods:{beforeEnter(e){requestAnimationFrame(()=>{e.style.height||(e.style.height="0px")})},enter(e){requestAnimationFrame(()=>{requestAnimationFrame(()=>{e.style.height=`${e.scrollHeight}px`})})},afterEnter(e){e.style.height=null},beforeLeave(e){requestAnimationFrame(()=>{e.style.height||(e.style.height=`${e.offsetHeight}px`)})},leave(e){requestAnimationFrame(()=>{requestAnimationFrame(()=>{e.style.height="0px"})})},afterLeave(e){e.style.height=null}}};var _a=function(){var t=this,n=t._self._c;return n("transition",t._g({attrs:{appear:t.appear,"enter-active-class":"enter-active","leave-active-class":"leave-active",css:t.isCSSEnabled},on:{"before-enter":t.beforeEnter,enter:t.enter,"after-enter":t.afterEnter,"before-leave":t.beforeLeave,leave:t.leave,"after-leave":t.afterLeave}},t.$listeners),[n(t.elementType,t._g({directives:[{name:"show",rawName:"v-show",value:t.show,expression:"show"}],tag:"component"},t.$listeners),[t.initialized?t._t("default"):t._e()],2)],1)},ga=[],ba=o.normalizeComponent(ma,_a,ga,!1,null,null,null,null);const va=ba.exports,ya={name:"DtCollapsible",components:{DtButton:l.DtButton,DtCollapsibleLazyShow:va,DtLazyShow:o.DtLazyShow,DtIcon:l.DtIcon},props:{anchorText:{type:String,default:null},open:{type:Boolean,default:null},id:{type:String,default(){return o.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&&o.getUniqueString("DtCollapsible__anchor")}},watch:{open:{handler:function(e){e!==null&&(this.isOpen=e)},immediate:!0}},mounted(){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&&!this.$scopedSlots.anchor&&console.error("anchor text and anchor slot content cannot both be falsy")}}};var Sa=function(){var t=this,n=t._self._c;return n(t.elementType,t._g({ref:"collapsible",tag:"component"},t.$listeners),[n("div",{ref:"anchor",class:t.anchorClass,attrs:{id:!t.ariaLabelledBy&&t.labelledBy}},[t._t("anchor",function(){return[n("dt-button",{style:{width:t.maxWidth},attrs:{importance:"clear",kind:"muted","aria-controls":t.id,"aria-expanded":`${t.isOpen}`},on:{click:t.defaultToggleOpen}},[n("dt-icon",{staticClass:"d-collapsible__icon",attrs:{name:t.isOpen?"chevron-down":"chevron-right",size:"300"}}),n("span",{staticClass:"d-collapsible__anchor-text",attrs:{title:t.anchorText}},[t._v(" "+t._s(t.anchorText)+" ")])],1)]},{attrs:{"aria-controls":t.id,"aria-expanded":t.isOpen.toString(),role:"button"}})],2),n("dt-collapsible-lazy-show",t._g({ref:"contentWrapper",class:t.contentClass,style:{"max-height":t.maxHeight,"max-width":t.maxWidth},attrs:{id:t.id,"aria-hidden":`${!t.isOpen}`,"aria-labelledby":t.labelledBy,"aria-label":t.ariaLabel,show:t.isOpen,"element-type":t.contentElementType,"data-qa":"dt-collapsible--content",tabindex:"-1",appear:""},on:{"after-leave":t.onLeaveTransitionComplete,"after-enter":t.onEnterTransitionComplete}},t.$listeners),[t._t("content")],2)],1)},Ca=[],Ia=o.normalizeComponent(ya,Sa,Ca,!1,null,null,null,null);const _e=Ia.exports,ge=["row","column"],Da=e=>e.term?typeof e.term=="string":!1,Ta=e=>e.description?typeof e.description=="string":!1,wa=e=>Array.isArray(e)?e.every(t=>!(typeof t!="object"||!Da(t)||!Ta(t))):!1,Ea={name:"DtDescriptionList",props:{direction:{type:String,default:"row",validator:e=>ge.includes(e)},items:{type:Array,default:()=>[],validator:e=>wa(e),required:!0},gap:{type:String,default:"400",validator:e=>u.DT_STACK_GAP.includes(e)},termClass:{type:[String,Array,Object],default:""},descriptionClass:{type:[String,Array,Object],default:""}},computed:{dtClass(){return["dt-description-list__term",this.termClass]},ddClass(){return["dt-description-list__description",this.descriptionClass]},getDirectionClass(){return`dt-description-list--${this.direction}`},getGapClass(){return`dt-description-list--gap-${this.gap}`}}};var Oa=function(){var t=this,n=t._self._c;return n("dl",{class:["dt-description-list",t.getDirectionClass,t.getGapClass]},[t._l(t.items,function(a){return[n("dt",{key:`dt-${a.term}`,class:t.dtClass},[t._v(" "+t._s(a.term)+" ")]),n("dd",{key:`dd-${a.term}`,class:t.ddClass},[t._v(" "+t._s(a.description)+" ")])]})],2)},ka=[],La=o.normalizeComponent(Ea,Oa,ka,!1,null,null,null,null);const xa=La.exports,B={none:void 0,small:"d-py0",large:"d-py4"},Aa={name:"DtDropdown",components:{DtPopover:u.DtPopover,SrOnlyCloseButton:u.SrOnlyCloseButton},mixins:[Ht({indexKey:"highlightIndex",idKey:"highlightId",listElementKey:"getListElement",listItemRole:"menuitem",afterHighlightMethod:"afterHighlight",beginningOfListMethod:"beginningOfListMethod",endOfListMethod:"endOfListMethod",activeItemKey:"activeItemEl",focusOnKeyboardNavigation:!0}),u.SrOnlyCloseButtonMixin],props:{open:{type:Boolean,default:null},openOnContext:{type:Boolean,default:!1},padding:{type:String,default:"small",validator:e=>Object.keys(B).some(t=>t===e)},modal:{type:Boolean,default:!0},contentWidth:{type:String,default:null},maxHeight:{type:String,default:""},maxWidth:{type:String,default:""},listId:{type:String,default(){return o.getUniqueString()}},navigationType:{type:String,default:u.LIST_ITEM_NAVIGATION_TYPES.ARROW_KEYS,validator:e=>Object.values(u.LIST_ITEM_NAVIGATION_TYPES).includes(e)},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:e=>u.POPOVER_APPEND_TO_VALUES.includes(e)||e instanceof HTMLElement},tether:{type:Boolean,default:!0},transition:{type:String,default:"fade"}},emits:["highlight","opened","update:open"],data(){return{LIST_ITEM_NAVIGATION_TYPES:u.LIST_ITEM_NAVIGATION_TYPES,DROPDOWN_PADDING_CLASSES:B,EVENT_KEYNAMES:o.EVENT_KEYNAMES,openedWithKeyboard:!1,isOpen:null}},computed:{dropdownListeners(){return{...this.$listeners,opened:e=>{this.updateInitialHighlightIndex(e)},keydown:e=>{switch(e.code){case o.EVENT_KEYNAMES.up:case o.EVENT_KEYNAMES.arrowup:this.onUpKeyPress(e),e.stopPropagation(),e.preventDefault();break;case o.EVENT_KEYNAMES.down:case o.EVENT_KEYNAMES.arrowdown:this.onDownKeyPress(e),e.stopPropagation(),e.preventDefault();break;case o.EVENT_KEYNAMES.space:case o.EVENT_KEYNAMES.spacebar:this.onSpaceKey();break;case o.EVENT_KEYNAMES.enter:this.onEnterKey();break;case o.EVENT_KEYNAMES.home:this.onHomeKeyPress(e),e.stopPropagation(),e.preventDefault();break;case o.EVENT_KEYNAMES.end:this.onEndKeyPress(e),e.stopPropagation(),e.preventDefault();break;default:this.onKeyPress(e);break}this.$emit("keydown",e)}}},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-dropdown-list",B[this.padding],this.listClass,{"d-context-menu-list":this.openOnContext}]},shouldOpenWithArrowKeys(){return!this.openOnContext}},methods:{onMouseHighlight(e){const t=e.target.closest("li");t&&t.role&&this.highlightId!==t.id&&(this.setHighlightId(t.id),t.focus())},getListElement(){return this.$refs.listWrapper},clearHighlightIndex(){this.setHighlightIndex(-1)},afterHighlight(){this.visuallyHiddenClose&&this.highlightIndex===this._itemsLength()-1||this.$emit("highlight",this.highlightIndex)},updateInitialHighlightIndex(e){this.isOpen=e,e?(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(e){if(!(!this.isOpen||!this.isArrowKeyNav||!this.isValidLetter(e.key)))return e.stopPropagation(),e.preventDefault(),this.onNavigationKey(e.key)}}};var $a=function(){var t=this,n=t._self._c;return n("dt-popover",t._g({ref:"popover",attrs:{"content-width":t.contentWidth,open:t.open,placement:t.placement,"initial-focus-element":t.openedWithKeyboard?"first":"dialog","fallback-placements":t.fallbackPlacements,padding:"none",role:"menu","append-to":t.appendTo,modal:t.modal,"max-height":t.maxHeight,"max-width":t.maxWidth,"open-with-arrow-keys":t.shouldOpenWithArrowKeys,"open-on-context":t.openOnContext,tether:t.tether,transition:t.transition},scopedSlots:t._u([{key:"anchor",fn:function({attrs:a}){return[t._t("anchor",null,null,a)]}},{key:"content",fn:function({close:a}){return[n("ul",{ref:"listWrapper",class:t.listClasses,attrs:{id:t.listId,"data-qa":"dt-dropdown-list-wrapper"},on:{mouseleave:t.clearHighlightIndex,"!mousemove":function(r){return t.onMouseHighlight.apply(null,arguments)}}},[t._t("list",null,{close:a}),t.showVisuallyHiddenClose?n("sr-only-close-button",{attrs:{"visually-hidden-close-label":t.visuallyHiddenCloseLabel,tabindex:t.isArrowKeyNav?-1:0},on:{close:a}}):t._e()],2)]}}],null,!0)},t.dropdownListeners))},Ra=[],Ma=o.normalizeComponent(Aa,$a,Ra,!1,null,null,null,null);const be=Ma.exports,Na={name:"DtDropdownSeparator"};var Pa=function(){var t=this,n=t._self._c;return n("li",{staticClass:"dt-list-separator",attrs:{"aria-hidden":"true"}})},Ba=[],Fa=o.normalizeComponent(Na,Pa,Ba,!1,null,null,null,null);const Va=Fa.exports,qa=function(){const e={value:null};let t,n,a=null,r=null;function i(f){if(r){const p=Date.now()-a+100;t&&clearTimeout(t),r!==f&&(t=setTimeout(()=>{e.value!==null&&(a=Date.now()),e.value=null},p),n&&clearTimeout(n),n=setTimeout(()=>{e.value=f,r=f},p))}else n=setTimeout(()=>{e.value=f,r=f},o.TOOLTIP_DELAY_MS)}function s(){n&&(clearTimeout(n),n=null),a=Date.now(),t=setTimeout(()=>{e.value=null,r=null},o.TOOLTIP_DELAY_MS)}let d=null;return()=>(d===null&&(d={current:e,enter:i,leave:s}),d)}(),Ua={name:"DtHovercard",components:{DtPopover:u.DtPopover},props:{transition:{type:Boolean,default:!1},fallbackPlacements:{type:Array,default:()=>["auto"]},placement:{type:String,default:"top-start",validator(e){return o.TOOLTIP_DIRECTIONS.includes(e)}},padding:{type:String,default:"large",validator:e=>Object.keys(u.POPOVER_PADDING_CLASSES).some(t=>t===e)},offset:{type:Array,default:()=>[0,16]},id:{type:String,default(){return o.getUniqueString()}},headerClass:{type:[String,Array,Object],default:""},footerClass:{type:[String,Array,Object],default:""},dialogClass:{type:[String,Array,Object],default:""},contentClass:{type:[String,Array,Object],default:""},appendTo:{type:[HTMLElement,String],default:"body",validator:e=>u.POPOVER_APPEND_TO_VALUES.includes(e)||e instanceof HTMLElement}},emits:["opened"],data(){return{timer:Q.reactive(qa())}}};var Ha=function(){var t=this,n=t._self._c;return n("dt-popover",{attrs:{id:t.id,placement:t.placement,"content-class":t.contentClass,"fallback-placements":t.fallbackPlacements,padding:t.padding,transition:t.transition?"fade":null,offset:t.offset,modal:!1,"initial-focus-element":"none","header-class":t.headerClass,"footer-class":t.footerClass,"append-to":t.appendTo,hovercard:!0,timer:t.timer,"data-qa":"dt-hovercard"},on:{opened:a=>t.$emit("opened",a)},scopedSlots:t._u([{key:"anchor",fn:function({attrs:a}){return[t._t("anchor",null,null,a)]}},{key:"content",fn:function(){return[t._t("content")]},proxy:!0},{key:"headerContent",fn:function(){return[t._t("headerContent")]},proxy:!0},{key:"footerContent",fn:function(){return[t._t("footerContent")]},proxy:!0}],null,!0)})},Wa=[],za=o.normalizeComponent(Ua,Ha,Wa,!1,null,null,null,null);const Ya=za.exports,Ka={name:"DtImageViewer",components:{Portal:u.Portal,DtButton:l.DtButton,DtIcon:l.DtIcon},mixins:[u.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{...this.$listeners,click:e=>{e.target===e.currentTarget&&this.close()},keydown:e=>{switch(e.code){case o.EVENT_KEYNAMES.esc:case o.EVENT_KEYNAMES.escape:this.close();break;case o.EVENT_KEYNAMES.tab:this.trapFocus(e);break}}}}},watch:{isOpen:{immediate:!0,handler(e){var t;e?this.previousActiveElement=document.activeElement:((t=this.previousActiveElement)==null||t.focus(),this.previousActiveElement=null)}},open:{handler:function(e){e!==null&&(this.isOpen=e)},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 e;(e=this.$refs.closeImage)==null||e.$el.focus()},trapFocus(e){this.isOpen&&this.focusTrappedTabPress(e)}}};var ja=function(){var t=this,n=t._self._c;return n("div",[n("dt-button",{staticClass:"d-image-viewer__preview-button",attrs:{"data-qa":"dt-image-viewer-preview","aria-label":t.ariaLabel,importance:"clear"},on:{click:t.openModal}},[n("img",{class:t.imageButtonClass,attrs:{src:t.imageSrc,alt:t.imageAlt}})]),t.isOpen?n("portal",[n("div",t._g({staticClass:"d-modal",attrs:{"aria-hidden":t.isOpen?"false":"true","data-qa":"dt-modal"},on:{mouseover:function(a){t.showCloseButton=!0},mouseleave:function(a){t.showCloseButton=!1},focusin:function(a){t.showCloseButton=!0},focusout:function(a){t.showCloseButton=!1}}},t.modalListeners),[n("div",{staticClass:"d-image-viewer__full",attrs:{"data-qa":"dt-image-viewer-full",role:"dialog","aria-modal":"true"}},[n("img",{staticClass:"d-image-viewer__full__image",attrs:{src:t.imageSrc,alt:t.imageAlt}})]),n("transition",{attrs:{name:"fade"}},[t.showCloseButton?n("dt-button",{ref:"closeImage",staticClass:"d-modal__close",attrs:{"data-qa":"dt-image-viewer-close-btn",circle:"",size:"lg",importance:"clear",kind:"inverted","aria-label":t.closeAriaLabel},on:{click:t.close},scopedSlots:t._u([{key:"icon",fn:function(){return[n("dt-icon",{staticClass:"d-image-viewer__close-button",attrs:{name:"close",size:"400"}})]},proxy:!0}],null,!1,1620344283)}):t._e()],1)],1)]):t._e()],1)},Ga=[],Qa=o.normalizeComponent(Ka,ja,Ga,!1,null,null,null,null);const ve=Qa.exports,ye={components:{DtValidationMessages:l.DtValidationMessages},provide(){return{groupContext:this.provideObj,setGroupValue:this.setGroupValue}},props:{id:{type:String,default(){return o.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:e=>l.validationMessageValidator(e)},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:()=>({})}},data(){const e=o.formatMessages(this.messages);return{provideObj:{name:this.name,disabled:this.disabled,validationState:o.getValidationState(e)}}},computed:{formattedMessages(){return o.formatMessages(this.messages)},validationState(){return o.getValidationState(this.formattedMessages)}},watch:{disabled(e){this.provideObj.disabled=e},validationState(e){this.provideObj.validationState=e}},methods:{setGroupValue(e){this.internalValue=e,this.$emit("input",e)}},mounted(){!this.legend&&!this.$slots.legend&&!this.$attrs["aria-label"]&&Q.util.warn("It is expected that an aria-label is provided when there is no legend.",this)}},Za={name:"DtInputGroup",components:{DtValidationMessages:l.DtValidationMessages},mixins:[ye],props:{dataQaGroup:{type:String,default:"input-group"},dataQaGroupLegend:{type:String,default:"input-group-legend"},dataQaGroupMessages:{type:String,default:"input-group-messages"}},emits:["input"],data(){return{internalValue:this.value,provideObj:{value:this.value}}},watch:{value(e){this.internalValue=e},internalValue(e){this.provideObj.value=e}},methods:{getMessageKey(e,t){return`input-group-message-${e}-${t}-${this.id}`}}};var Xa=function(){var t=this,n=t._self._c;return n("fieldset",{staticClass:"d-input-group__fieldset",attrs:{"data-qa":t.dataQaGroup}},[t.$slots.legend||t.legend?n("legend",t._b({class:["d-label",t.legendClass],attrs:{"data-qa":t.dataQaGroupLegend}},"legend",t.legendChildProps,!1),[t._t("legend",function(){return[t._v(" "+t._s(t.legend)+" ")]})],2):t._e(),t._t("default"),n("dt-validation-messages",t._b({class:t.messagesClass,attrs:{"validation-messages":t.formattedMessages,"show-messages":t.showMessages,"data-qa":t.dataQaGroupMessages}},"dt-validation-messages",t.messagesChildProps,!1))],2)},Ja=[],tr=o.normalizeComponent(Za,Xa,Ja,!1,null,null,null,null);const zt=tr.exports,Et={default:"",danger:"d-modal--danger"},Ot={default:"",full:"d-modal--full"},kt={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"},er={name:"DtModal",components:{DtLazyShow:o.DtLazyShow,DtButton:l.DtButton,DtIcon:l.DtIcon,SrOnlyCloseButton:u.SrOnlyCloseButton},mixins:[u.Modal,u.SrOnlyCloseButtonMixin],props:{closeButtonProps:{type:Object,required:!0,validator:e=>!!e.ariaLabel},copy:{type:String,default:""},describedById:{type:String,default:""},labelledById:{type:String,default:function(){return o.getUniqueString()}},show:{type:Boolean,default:!1},title:{type:String,default:""},bannerTitle:{type:String,default:""},kind:{type:String,default:"default",validator:e=>Object.keys(Et).includes(e)},size:{type:String,default:"default",validator:e=>Object.keys(Ot).includes(e)},modalClass:{type:[String,Object,Array],default:""},dialogClass:{type:[String,Object,Array],default:""},contentClass:{type:[String,Object,Array],default:""},bannerKind:{type:String,default:"warning",validate(e){return V.includes(e)}},bannerClass:{type:[String,Object,Array],default:""},hideClose:{type:Boolean,default:!1},closeOnClick:{type:Boolean,default:!0},fixedHeaderFooter:{type:Boolean,default:!0},initialFocusElement:{type:[String,HTMLElement],default:"first",validator:e=>e==="first"||e instanceof HTMLElement||e.startsWith("#")}},emits:["update:show"],data(){return{MODAL_KIND_MODIFIERS:Et,MODAL_SIZE_MODIFIERS:Ot,MODAL_BANNER_KINDS:kt,EVENT_KEYNAMES:o.EVENT_KEYNAMES}},computed:{modalListeners(){return{...this.$listeners,click:e=>{this.closeOnClick&&(e.target===e.currentTarget&&this.close(),this.$emit("click",e))},keydown:e=>{switch(e.code){case o.EVENT_KEYNAMES.esc:case o.EVENT_KEYNAMES.escape:this.close();break;case o.EVENT_KEYNAMES.tab:this.trapFocus(e);break}this.$emit("keydown",e)},"after-enter":e=>{this.$emit("update:show",!0),e.target===e.currentTarget&&this.setFocusAfterTransition()}}},open(){return`${!this.show}`},hasFooterSlot(){return!!this.$slots.footer},bannerKindClass(){return kt[this.bannerKind]}},watch:{show:{immediate:!0,handler(e){var t;e?this.previousActiveElement=document.activeElement:((t=this.previousActiveElement)==null||t.focus(),this.previousActiveElement=null)}},$props:{immediate:!0,deep:!0,handler(){this.validateProps()}}},methods:{close(){this.$emit("update:show",!1)},setFocusAfterTransition(){this.initialFocusElement==="first"?this.focusFirstElement():this.initialFocusElement.startsWith("#")?this.focusElementById(this.initialFocusElement):this.initialFocusElement instanceof HTMLElement&&this.initialFocusElement.focus()},trapFocus(e){this.show&&this.focusTrappedTabPress(e)},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`)}}};var nr=function(){var t=this,n=t._self._c;return n("dt-lazy-show",t._g({class:["d-modal",t.MODAL_KIND_MODIFIERS[t.kind],t.MODAL_SIZE_MODIFIERS[t.size],t.modalClass],attrs:{transition:"d-zoom",show:t.show,"data-qa":"dt-modal","aria-hidden":t.open}},t.modalListeners),[t.show&&(t.$slots.banner||t.bannerTitle)?n("div",{class:["d-modal__banner",t.bannerClass,t.bannerKindClass],attrs:{"data-qa":"dt-modal-banner"}},[t._t("banner",function(){return[t._v(" "+t._s(t.bannerTitle)+" ")]})],2):t._e(),n("transition",{attrs:{appear:"",name:"d-modal__dialog"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.show,expression:"show"}],class:["d-modal__dialog",{"d-modal__dialog--scrollable":t.fixedHeaderFooter},t.dialogClass],attrs:{role:"dialog","aria-modal":"true","aria-describedby":t.describedById,"aria-labelledby":t.labelledById}},[t.$slots.header?n("div",{staticClass:"d-modal__header",attrs:{id:t.labelledById,"data-qa":"dt-modal-title"}},[t._t("header")],2):n("h2",{staticClass:"d-modal__header",attrs:{id:t.labelledById,"data-qa":"dt-modal-title"}},[t._v(" "+t._s(t.title)+" ")]),t.$slots.default?n("div",{class:["d-modal__content",t.contentClass],attrs:{"data-qa":"dt-modal-copy"}},[t._t("default")],2):n("p",{class:["d-modal__content",t.contentClass],attrs:{"data-qa":"dt-modal-copy"}},[t._v(" "+t._s(t.copy)+" ")]),t.hasFooterSlot?n("footer",{staticClass:"d-modal__footer"},[t._t("footer")],2):t._e(),t.hideClose?t._e():n("dt-button",t._b({staticClass:"d-modal__close",attrs:{circle:"",size:"lg",importance:"clear","aria-label":t.closeButtonProps.ariaLabel},on:{click:t.close},scopedSlots:t._u([{key:"icon",fn:function(){return[n("dt-icon",{attrs:{name:"close",size:"400"}})]},proxy:!0}],null,!1,1709155279)},"dt-button",t.closeButtonProps,!1)),t.showVisuallyHiddenClose?n("sr-only-close-button",{attrs:{"visually-hidden-close-label":t.visuallyHiddenCloseLabel},on:{close:t.close}}):t._e()],1)])],1)},ar=[],rr=o.normalizeComponent(er,nr,ar,!1,null,null,null,null);const ir=rr.exports,sr={name:"DtListItemGroup",props:{id:{type:String,default(){return o.getUniqueString()}},heading:{type:String,default:""},headingClass:{type:[String,Array,Object],default:""},listClass:{type:[String,Array,Object],default:""}}};var or=function(){var t=this,n=t._self._c;return n("ul",{class:["d-list-item-group",t.listClass],attrs:{id:t.id,role:"group","data-qa":"dt-dropdown-list-wrapper","aria-labelledby":`${t.id}-heading`}},[t.heading?n("li",{class:["dt-dropdown-list--header",t.headingClass],attrs:{id:`${t.id}-heading`,role:"presentation","data-qa":"dt-dropdown-list-heading"}},[t._t("headingSlot",function(){return[t._v(" "+t._s(t.heading)+" ")]})],2):t._e(),t._t("default")],2)},lr=[],dr=o.normalizeComponent(sr,or,lr,!1,null,null,null,null);const cr=dr.exports,ur={name:"DtPagination",components:{DtButton:l.DtButton,DtIcon:l.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 e=this.maxVisible-1,t=this.totalPages-e+1;if(this.currentPage<e)return[...this.range(1,e),"...",this.totalPages];if(this.currentPage>t)return[1,"...",...this.range(t,this.totalPages)];const n=this.maxVisible-(3-this.maxVisible%2),a=Math.floor(n/2),r=this.currentPage-a,i=this.currentPage+a;return[1,"...",...this.range(r,i),"...",this.totalPages]}},methods:{range(e,t){const n=[];e=e>0?e:1;for(let a=e;a<=t;a++)n.push(a);return n},changePage(e){this.currentPage=e,this.$emit("change",this.currentPage)}}};var fr=function(){var t=this,n=t._self._c;return n("nav",{staticClass:"d-pagination",attrs:{"aria-label":t.ariaLabel}},[n("dt-button",{staticClass:"d-pagination__button",class:t.isFirstPage?"d-fc-black-300 d-bgc-transparent":"d-fc-tertiary",attrs:{"data-qa":"dt-pagination-prev","aria-label":t.prevAriaLabel,kind:t.isFirstPage?"default":"muted",importance:t.isFirstPage?"primary":"clear",disabled:t.isFirstPage},on:{click:function(a){return t.changePage(t.currentPage-1)}}},[n("template",{slot:"icon"},[n("dt-icon",{attrs:{name:"chevron-left",size:"300"}})],1)],2),t._l(t.pages,function(a,r){return n("div",{key:`page-${a}-${r}`,class:{"d-pagination__separator":isNaN(Number(a))}},[isNaN(Number(a))?n("div",{staticClass:"d-pagination__separator-icon",attrs:{"data-qa":"dt-pagination-separator"}},[n("dt-icon",{attrs:{name:"more-horizontal",size:"300"}})],1):n("dt-button",{attrs:{"aria-label":t.pageNumberAriaLabel(a),kind:t.currentPage===a?"default":"muted",importance:t.currentPage===a?"primary":"clear","label-class":""},on:{click:function(i){return t.changePage(a)}}},[t._v(" "+t._s(a)+" ")])],1)}),n("dt-button",{staticClass:"d-pagination__button",class:t.isLastPage?"d-fc-black-300 d-bgc-transparent":"d-fc-tertiary",attrs:{"data-qa":"dt-pagination-next","aria-label":t.nextAriaLabel,disabled:t.isLastPage,kind:"muted",importance:t.isLastPage?"primary":"clear"},on:{click:function(a){return t.changePage(t.currentPage+1)}}},[n("template",{slot:"icon"},[n("dt-icon",{attrs:{name:"chevron-right",size:"300"}})],1)],2)],2)},pr=[],hr=o.normalizeComponent(ur,fr,pr,!1,null,null,null,null);const mr=hr.exports,Se={warning:"d-radio--warning",error:"d-radio--error",success:"d-radio--success"},_r={name:"DtRadio",components:{DtValidationMessages:l.DtValidationMessages},mixins:[l.InputMixin,l.CheckableMixin,l.GroupableMixin,l.MessagesMixin],inheritAttrs:!1,props:{value:{type:[String,Number],default:""}},emits:["input","focusin","focusout"],computed:{inputValidationClass(){return Se[this.internalValidationState]},radioGroupValue(){var e;return(e=this.groupContext)==null?void 0:e.selectedValue},inputListeners(){return{...this.$listeners,input:()=>{},change:e=>this.emitValue(e.target.value)}}},watch:{radioGroupValue:{immediate:!0,handler(e){this.hasGroup&&(this.internalChecked=e===this.value)}}},methods:{emitValue(e){e!==this.radioGroupValue&&(this.setGroupValue(e),this.$emit("input",e))}}};var gr=function(){var t=this,n=t._self._c;return n("div",[n("label",[n("div",{class:["d-radio-group",{"d-radio-group--disabled":t.internalDisabled}]},[n("div",{staticClass:"d-radio__input"},[n("input",t._g(t._b({class:["d-radio",t.inputValidationClass,t.inputClass],attrs:{name:t.internalName,disabled:t.internalDisabled,type:"radio"},domProps:{checked:t.internalChecked,value:t.value}},"input",t.$attrs,!1),t.inputListeners))]),n("div",{staticClass:"d-radio__copy d-radio__label",attrs:{"data-qa":"radio-label-description-container"}},[n("div",t._b({class:t.labelClass,attrs:{"data-qa":"radio-label"}},"div",t.labelChildProps,!1),[t._t("default",function(){return[t._v(t._s(t.label))]})],2),t.$slots.description||t.description?n("div",t._b({class:["d-description",t.descriptionClass],attrs:{"data-qa":"radio-description"}},"div",t.descriptionChildProps,!1),[t._t("description",function(){return[t._v(t._s(t.description))]})],2):t._e(),n("dt-validation-messages",t._b({class:t.messagesClass,attrs:{"validation-messages":t.formattedMessages,"show-messages":t.showMessages,"data-qa":"dt-radio-validation-messages"}},"dt-validation-messages",t.messagesChildProps,!1))],1)])])])},br=[],vr=o.normalizeComponent(_r,gr,br,!1,null,null,null,null);const yr=vr.exports,Sr={name:"DtRadioGroup",extends:zt,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{provideObj:{selectedValue:this.value}}},watch:{value(e){this.provideObj.selectedValue=e}},methods:{setGroupValue(e){this.$emit("input",e)},getMessageKey(e,t){return`radio-group-message-${e}-${t}-${this.id}`}}},Cr=null,Ir=null;var Dr=o.normalizeComponent(Sr,Cr,Ir,!1,null,null,null,null);const Tr=Dr.exports,wr={name:"DtTabPanel",mixins:[u.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 e=await this.getFirstFocusableElement(this.$el);e?this.isFirstElementFocusable=this.isFirstElementOfPanel(e):this.isFirstElementFocusable=!1},methods:{isFirstElementOfPanel(e){let t=e,n=!0;for(;t;){if(t.previousElementSibling!==null){n=!1;break}t=t.parentNode!==this.$el?t.parentNode:null}return n}}};var Er=function(){var t=this,n=t._self._c;return n("div",{directives:[{name:"show",rawName:"v-show",value:!t.hidePanel,expression:"!hidePanel"}],class:t.tabPanelClass,attrs:{id:`dt-panel-${t.id}`,role:"tabpanel",tabindex:t.isFirstElementFocusable?-1:0,"aria-labelledby":`dt-tab-${t.tabId}`,"aria-hidden":`${t.hidePanel}`,"data-qa":"dt-tab-panel"}},[t._t("default")],2)},Or=[],kr=o.normalizeComponent(wr,Er,Or,!1,null,null,null,null);const Lr=kr.exports,xr={error:"d-checkbox--error",warning:"d-checkbox--warning",success:"d-checkbox--success"},Ar={name:"DtCheckbox",components:{DtValidationMessages:l.DtValidationMessages},mixins:[l.InputMixin,l.CheckableMixin,l.GroupableMixin,l.MessagesMixin],inheritAttrs:!1,emits:["input","focusin","focusout"],computed:{inputValidationClass(){return xr[this.internalValidationState]},checkboxGroupValueChecked(){var e,t;return((t=(e=this.groupContext)==null?void 0:e.selectedValues)==null?void 0:t.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{...this.$listeners,input:()=>{},change:e=>this.emitValue(e.target)}}},watch:{checkboxGroupValueChecked:{immediate:!0,handler(e){this.hasGroup&&(this.internalChecked=e)}}},mounted(){this.runValidations()},methods:{emitValue(e){let{value:t,checked:n}=e;this.internalIndeterminate&&(n=!1,this.internalIndeterminate=!1,e.checked=!1),this.setGroupValue(t,n),this.$emit("input",n)},runValidations(){this.validateInputLabels(this.hasLabel,this.$attrs["aria-label"])}}};var $r=function(){var t=this,n=t._self._c;return n("div",[n("label",[n("div",{class:["d-checkbox-group",{"d-checkbox-group--disabled":t.internalDisabled}]},[n("div",{staticClass:"d-checkbox__input"},[n("input",t._g(t._b({class:["d-checkbox",t.inputValidationClass,t.inputClass],attrs:{type:"checkbox",name:t.internalName,disabled:t.internalDisabled},domProps:{checked:t.internalChecked,value:t.value,indeterminate:t.internalIndeterminate}},"input",t.$attrs,!1),t.inputListeners))]),t.hasLabelOrDescription?n("div",{staticClass:"d-checkbox__copy d-checkbox__label",attrs:{"data-qa":"checkbox-label-description-container"}},[t.hasLabel?n("div",t._b({class:t.labelClass,attrs:{"data-qa":"checkbox-label"}},"div",t.labelChildProps,!1),[t._t("default",function(){return[t._v(t._s(t.label))]})],2):t._e(),t.hasDescription?n("div",t._b({class:["d-description",t.descriptionClass],attrs:{"data-qa":"checkbox-description"}},"div",t.descriptionChildProps,!1),[t._t("description",function(){return[t._v(t._s(t.description))]})],2):t._e(),n("dt-validation-messages",t._b({class:t.messagesClass,attrs:{"validation-messages":t.formattedMessages,"show-messages":t.showMessages,"data-qa":"dt-checkbox-validation-messages"}},"dt-validation-messages",t.messagesChildProps,!1))],1):t._e()])])])},Rr=[],Mr=o.normalizeComponent(Ar,$r,Rr,!1,null,null,null,null);const Nr=Mr.exports,Pr={name:"DtCheckboxGroup",extends:zt,model:{prop:"selectedValues"},props:{value:{type:[],default:null,validator:e=>e?(Q.util.warn("Component uses selectedValues to initialize the model, value is not supported by this component",void 0),!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,provideObj:{selectedValues:this.selectedValues}}},watch:{selectedValues(e){this.internalValue=e},internalValue(e){this.provideObj.selectedValues=e}},methods:{setGroupValue(e,t){t?this.internalValue.includes(e)||this.internalValue.push(e):this.internalValue=this.internalValue.filter(n=>n!==e),this.$emit("input",this.internalValue)},getMessageKey(e,t){return`checkbox-group-message-${e}-${t}-${this.id}`}}},Br=null,Fr=null;var Vr=o.normalizeComponent(Pr,Br,Fr,!1,null,null,null,null);const qr=Vr.exports,Lt={xs:"d-chip__label--xs",sm:"d-chip__label--sm",md:""},Ce={xs:"d-chip__close--xs",sm:"d-chip__close--sm",md:""},Ie={xs:"200",sm:"200",md:"200"},Ur={name:"DtChip",components:{DtButton:l.DtButton,DtIcon:l.DtIcon},props:{closeButtonProps:{type:Object,default:function(){return{ariaLabel:"close"}},validator:e=>!!e.ariaLabel},hideClose:{type:Boolean,default:!1},size:{type:String,default:"md",validator:e=>Object.keys(Lt).includes(e)},interactive:{type:Boolean,default:!0},id:{type:String,default:function(){return o.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}},computed:{chipListeners(){return{...this.$listeners,click:e=>{this.interactive&&this.$emit("click",e)},keyup:e=>{var t;((t=e.code)==null?void 0:t.toLowerCase())==="delete"?this.onClose():this.$emit("keyup",e)}}},closeButtonIconSize(){return Ie[this.size]}},methods:{chipClasses(){return[this.$attrs["grouped-chip"]?"d-chip":"d-chip__label",Lt[this.size],this.labelClass]},chipCloseButtonClasses(){return["d-chip__close",Ce[this.size]]},onClose(){this.hideClose||this.$emit("close")}}};var Hr=function(){var t=this,n=t._self._c;return n("span",{staticClass:"d-chip"},[n(t.interactive?"button":"span",t._g({tag:"component",class:t.chipClasses(),attrs:{id:t.id,type:t.interactive&&"button","data-qa":"dt-chip","aria-labelledby":t.ariaLabel?void 0:`${t.id}-content`,"aria-label":t.ariaLabel}},t.chipListeners),[t.$slots.icon?n("span",{staticClass:"d-chip__icon",attrs:{"data-qa":"dt-chip-icon"}},[t._t("icon")],2):t.$slots.avatar?n("span",{attrs:{"data-qa":"dt-chip-avatar"}},[t._t("avatar")],2):t._e(),t.$slots.default?n("span",{class:["d-chip__text",t.contentClass],attrs:{id:`${t.id}-content`,"data-qa":"dt-chip-label"}},[t._t("default")],2):t._e()]),t.hideClose?t._e():n("dt-button",t._b({class:t.chipCloseButtonClasses(),attrs:{"data-qa":"dt-chip-close","aria-label":t.closeButtonProps.ariaLabel},on:{click:function(a){return t.$emit("close")}},scopedSlots:t._u([{key:"icon",fn:function(){return[n("dt-icon",{attrs:{name:"close",size:t.closeButtonIconSize}})]},proxy:!0}],null,!1,1192647893)},"dt-button",t.closeButtonProps,!1))],1)},Wr=[],zr=o.normalizeComponent(Ur,Hr,Wr,!1,null,null,null,null);const Yt=zr.exports,xt={xs:"d-select--xs",sm:"d-select--sm",md:"",lg:"d-select--lg",xl:"d-select--xl"},De={error:"d-select__input--error",warning:"d-select__input--warning",success:"d-select__input--success"},Yr=e=>!e.index||typeof e.index=="number",Kr=e=>e.value?typeof e.value=="string"||typeof e.value=="number":!1,jr=e=>e.label?typeof e.label=="string":!1,Gr=e=>e?e.every(t=>!(!Yr(t)||!Kr(t)||!jr(t))):!0,Qr={name:"DtSelectMenu",components:{DtValidationMessages:l.DtValidationMessages},mixins:[l.MessagesMixin],inheritAttrs:!1,props:{label:{type:String,default:""},description:{type:String,default:""},options:{type:Array,default:()=>[],validator:e=>Gr(e)},value:{type:String,default:null},size:{type:String,default:"md",validator:e=>Object.keys(xt).includes(e)},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:o.LABEL_SIZE_MODIFIERS,DESCRIPTION_SIZE_MODIFIERS:o.DESCRIPTION_SIZE_MODIFIERS,SELECT_SIZE_MODIFIERS:xt,SELECT_STATE_MODIFIERS:De}},computed:{selectListeners(){return{...this.$listeners,input:()=>{},change:e=>this.emitValue(e.target.value,e)}},state(){return o.getValidationState(this.formattedMessages)},selectKey(){return o.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(e,t){this.$emit("input",e,t),this.$emit("change",e,t)},getOptionKey(e){return`select-${this.selectKey}-option-${e}`},validateOptionsPresence(){var e;((e=this.options)==null?void 0:e.length)<1&&!this.$slots.default&&Q.util.warn("Options are expected to be provided via prop or slot",this)}}};var Zr=function(){var t=this,n=t._self._c;return n("div",[n("label",[t.$slots.label||t.label?n("div",t._b({class:["d-label",t.LABEL_SIZE_MODIFIERS[t.size],t.labelClass],attrs:{"aria-details":t.labelAriaDetails,"data-qa":"dt-select-label"}},"div",t.labelChildProps,!1),[t._t("label",function(){return[t._v(t._s(t.label))]})],2):t._e(),t.$slots.description||t.description?n("div",t._b({class:["d-description",t.DESCRIPTION_SIZE_MODIFIERS[t.size],t.descriptionClass],attrs:{id:t.descriptionKey,"data-qa":"dt-select-description"}},"div",t.descriptionChildProps,!1),[t._t("description",function(){return[t._v(t._s(t.description))]})],2):t._e(),n("div",{class:["d-select",t.SELECT_SIZE_MODIFIERS[t.size],t.selectClass,{"d-select--disabled":t.disabled}],attrs:{"data-qa":"dt-select-wrapper"}},[n("select",t._g(t._b({ref:"selectElement",class:["d-select__input",t.SELECT_STATE_MODIFIERS[t.state]],attrs:{"data-qa":"dt-select",disabled:t.disabled},domProps:{value:t.value}},"select",t.$attrs,!1),t.selectListeners),[t._t("default",function(){return t._l(t.options,function(a){return n("option",t._b({key:t.getOptionKey(a.value),class:t.optionClass,domProps:{value:a.value}},"option",t.optionChildProps,!1),[t._v(" "+t._s(a.label)+" ")])})})],2)])]),n("dt-validation-messages",t._b({class:t.messagesClass,attrs:{"validation-messages":t.formattedMessages,"show-messages":t.showMessages,"data-qa":"dt-select-messages"}},"dt-validation-messages",t.messagesChildProps,!1))],1)},Xr=[],Jr=o.normalizeComponent(Qr,Zr,Xr,!1,null,null,null,null);const ti=Jr.exports,Te=["status","alert"],At=6e3,ei={name:"DtToast",components:{DtNoticeIcon:ot,DtNoticeContent:lt,DtNoticeAction:dt},mixins:[u.SrOnlyCloseButtonMixin],props:{titleId:{type:String,default(){return o.utils.getUniqueString()}},contentId:{type:String,default(){return o.utils.getUniqueString()}},title:{type:String,default:""},message:{type:String,default:""},role:{type:String,default:"status",validator:e=>Te.includes(e)},kind:{type:String,default:"base",validator:e=>V.includes(e)},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:e=>e>=At}},emits:["close","update:show"],data(){return{isShown:!1,minDuration:At}},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]},noticeActionListeners(){return{...this.$listeners,close:e=>{this.isShown=!1,this.$emit("update:show",!1),this.$emit("close",e)}}},shouldSetTimeout(){return!!this.duration&&this.duration>=this.minDuration}},watch:{show:{handler:function(e){this.isShown=e,e?this.setTimeout():clearTimeout(this.displayTimer)},immediate:!0}},destroyed(){this.shouldSetTimeout&&clearTimeout(this.displayTimer)},methods:{setTimeout(){this.shouldSetTimeout&&(this.displayTimer=setTimeout(()=>{this.isShown=!1,this.$emit("update:show",!1)},this.duration))}}};var ni=function(){var t=this,n=t._self._c;return t.isShown?n("div",{class:["d-toast",t.kindClass,{"d-toast--important":t.important}],attrs:{"data-qa":"dt-toast","aria-hidden":(!t.isShown).toString()}},[n("div",{staticClass:"d-toast__dialog"},[n("dt-notice-icon",t._g({attrs:{kind:t.kind}},t.$listeners),[t._t("icon")],2),n("dt-notice-content",t._g({attrs:{"title-id":t.titleId,"content-id":t.contentId,title:t.title,role:t.role},scopedSlots:t._u([{key:"titleOverride",fn:function(){return[t._t("titleOverride")]},proxy:!0}],null,!0)},t.$listeners),[t._t("default",function(){return[t._v(" "+t._s(t.message)+" ")]})],2),n("dt-notice-action",t._g({attrs:{"hide-close":t.hideClose,"close-button-props":t.closeButtonProps,"visually-hidden-close":t.visuallyHiddenClose,"visually-hidden-close-label":t.visuallyHiddenCloseLabel}},t.noticeActionListeners),[t._t("action")],2)],1)]):t._e()},ai=[],ri=o.normalizeComponent(ei,ni,ai,!1,null,null,null,null);const ii=ri.exports,$t={sm:"d-toggle--small",md:""},we=[!1,!0,"mixed"],si={name:"DtToggle",inheritAttrs:!1,model:{prop:"checked",event:"change"},props:{id:{type:String,default(){return o.utils.getUniqueString()}},disabled:{type:Boolean,default:!1},checked:{type:[Boolean,String],default:!1,validator:e=>we.includes(e)},toggleOnClick:{type:Boolean,default:!0},size:{type:String,default:"md",validator:e=>Object.keys($t).includes(e)},showIcon:{type:Boolean,default:!0},labelClass:{type:[String,Array,Object],default:""},labelChildProps:{type:Object,default:()=>({})}},emits:["change"],data(){return{internalChecked:this.checked}},computed:{inputListeners(){return{...this.$listeners,click:e=>this.toggleCheckedValue()}},isIndeterminate(){return this.internalChecked==="mixed"},toggleRole(){return this.isIndeterminate?"checkbox":"switch"},toggleClasses(){return["d-toggle",$t[this.size],{"d-toggle--checked":this.internalChecked===!0,"d-toggle--disabled":this.disabled,"d-toggle--indeterminate":this.isIndeterminate}]}},watch:{checked(e){this.internalChecked=e}},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(e,t){!e&&!t&&Q.util.warn("You must provide an aria-label when there is no label passed",this)}}};var oi=function(){var t=this,n=t._self._c;return n("div",{staticClass:"d-toggle-wrapper"},[t.$slots.default?n("label",t._b({class:t.labelClass,attrs:{for:t.id,"data-qa":"toggle-label"}},"label",t.labelChildProps,!1),[t._t("default")],2):t._e(),n("button",t._g(t._b({class:t.toggleClasses,attrs:{id:t.id,role:t.toggleRole,type:"button","aria-checked":t.internalChecked.toString(),disabled:t.disabled,"aria-disabled":t.disabled.toString()}},"button",t.$attrs,!1),t.inputListeners),[t.showIcon?n("span",{staticClass:"d-toggle__inner"}):t._e()])])},li=[],di=o.normalizeComponent(si,oi,li,!1,null,null,null,null);const ci=di.exports,P={"{win}":"layout-grid","{arrow-right}":"arrow-right","{arrow-left}":"arrow-left","{arrow-up}":"arrow-up","{arrow-down}":"arrow-down","{cmd}":"command"},Ee={"{plus}":"plus"},ui=Object.keys(P),fi={name:"DtKeyboardShortcut",components:{DtIcon:l.DtIcon},props:{inverted:{type:Boolean,default:!1},shortcut:{type:String,required:!0},screenReaderText:{type:String,default:null}},data(){return{SHORTCUTS_ICON_ALIASES:P,separator:/\+/gi}},computed:{icons(){return{...P,...Ee}},shortcutWithSeparator(){return this.shortcut.replace(this.separator,"{plus}")},formattedShortcut(){return Object.keys(P).reduce((e,t)=>e.replace(new RegExp("{"+t+"}","gi"),P[t]),this.shortcutWithSeparator)},formattedShortcutSplit(){const e=Object.keys(this.icons).join("|"),t=new RegExp(`(${e})`,"gi");return this.formattedShortcut.split(t).filter(Boolean)}}};var pi=function(){var t=this,n=t._self._c;return n("kbd",{class:["d-keyboard-shortcut",{"d-keyboard-shortcut--inverted":t.inverted}]},[t.screenReaderText?n("span",{staticClass:"sr-only"},[t._v(" "+t._s(t.screenReaderText)+" ")]):t._e(),t._l(t.formattedShortcutSplit,function(a,r){return[t.icons[a]?n("dt-icon",{key:`${r}-${a}`,class:["d-keyboard-shortcut__icon",{"d-keyboard-shortcut__icon--inverted":t.inverted}],attrs:{name:t.icons[a],size:"100","aria-hidden":"true"}}):n("span",{key:`${r}-${a}`,class:["d-keyboard-shortcut__item",{"d-keyboard-shortcut__item--inverted":t.inverted}],attrs:{"aria-hidden":"true"},domProps:{innerHTML:t._s(a)}})]})],2)},hi=[],mi=o.normalizeComponent(fi,pi,hi,!1,null,null,null,null);const _i=mi.exports,Rt={LEFT:"left",RIGHT:"right"},Oe=["sm","md","lg",null],gi={name:"DtRootLayout",props:{fixed:{type:Boolean,default:!0},headerClass:{type:[String,Array,Object],default:""},headerHeight:{type:String,default:"64px"},headerSticky:{type:Boolean,default:!1},contentClass:{type:[String,Array,Object],default:""},sidebarClass:{type:[String,Array,Object],default:""},sidebarWidth:{type:String,default:"256px"},sidebarPosition:{type:String,default:"left",validator:e=>Object.values(Rt).includes(e)},footerClass:{type:[String,Array,Object],default:""},footerHeight:{type:String,default:"64px"},responsiveBreakpoint:{type:String,default:null,validator:e=>Oe.includes(e)}},computed:{isInverted(){return this.sidebarPosition===Rt.RIGHT}}};var bi=function(){var t=this,n=t._self._c;return n("div",{class:["root-layout","d-root-layout",{"d-root-layout--fixed":t.fixed,"d-root-layout--inverted":t.isInverted,[`d-root-layout__responsive--${t.responsiveBreakpoint}`]:!!t.responsiveBreakpoint}],attrs:{"data-qa":"dt-root-layout"}},[n("header",{class:["d-root-layout__header",{"d-root-layout__header--sticky":t.headerSticky},t.headerClass],attrs:{"data-qa":"dt-root-layout-header"}},[t._t("header")],2),n("aside",{ref:"root-layout-sidebar",class:["d-root-layout__sidebar",t.sidebarClass],attrs:{tabindex:"0","data-qa":"dt-root-layout-sidebar"}},[t._t("sidebar")],2),n("main",{ref:"root-layout-content",class:["d-root-layout__content",t.contentClass],attrs:{"data-qa":"dt-root-layout-content",tabindex:"0"}},[t._t("default")],2),n("footer",{class:["d-root-layout__footer",t.footerClass],attrs:{"data-qa":"dt-root-layout-footer"}},[t._t("footer")],2)])},vi=[],yi=o.normalizeComponent(gi,bi,vi,!1,null,null,null,null);const Si=yi.exports;function F(e){"@babel/helpers - typeof";return F=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},F(e)}function S(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function h(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function m(e){h(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||F(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[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 q(e,t){h(2,arguments);var n=m(e),a=S(t);return isNaN(a)?new Date(NaN):(a&&n.setDate(n.getDate()+a),n)}function ct(e,t){h(2,arguments);var n=m(e),a=S(t);if(isNaN(a))return new Date(NaN);if(!a)return n;var r=n.getDate(),i=new Date(n.getTime());i.setMonth(n.getMonth()+a+1,0);var s=i.getDate();return r>=s?i:(n.setFullYear(i.getFullYear(),i.getMonth(),r),n)}function W(e,t){if(h(2,arguments),!t||F(t)!=="object")return new Date(NaN);var n=t.years?S(t.years):0,a=t.months?S(t.months):0,r=t.weeks?S(t.weeks):0,i=t.days?S(t.days):0,s=t.hours?S(t.hours):0,d=t.minutes?S(t.minutes):0,f=t.seconds?S(t.seconds):0,p=m(e),b=a||n?ct(p,a+n*12):p,c=i||r?q(b,i+r*7):b,g=d+s*60,_=f+g*60,v=_*1e3,D=new Date(c.getTime()+v);return D}function Ci(e,t){h(2,arguments);var n=m(e).getTime(),a=S(t);return new Date(n+a)}var Ii={};function R(){return Ii}function Mt(e,t){var n,a,r,i,s,d,f,p;h(1,arguments);var b=R(),c=S((n=(a=(r=(i=t==null?void 0:t.weekStartsOn)!==null&&i!==void 0?i:t==null||(s=t.locale)===null||s===void 0||(d=s.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&r!==void 0?r:b.weekStartsOn)!==null&&a!==void 0?a:(f=b.locale)===null||f===void 0||(p=f.options)===null||p===void 0?void 0:p.weekStartsOn)!==null&&n!==void 0?n:0);if(!(c>=0&&c<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var g=m(e),_=g.getDay(),v=(_<c?7:0)+_-c;return g.setDate(g.getDate()-v),g.setHours(0,0,0,0),g}function j(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function nt(e){h(1,arguments);var t=m(e);return t.setHours(0,0,0,0),t}var Di=864e5;function Ti(e,t){h(2,arguments);var n=nt(e),a=nt(t),r=n.getTime()-j(n),i=a.getTime()-j(a);return Math.round((r-i)/Di)}function A(e,t){h(2,arguments);var n=m(e),a=m(t),r=n.getTime()-a.getTime();return r<0?-1:r>0?1:r}var wi=6e4,Ei=36e5;function ke(e,t){h(2,arguments);var n=nt(e),a=nt(t);return n.getTime()===a.getTime()}function Oi(e){return h(1,arguments),e instanceof Date||F(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function ki(e){if(h(1,arguments),!Oi(e)&&typeof e!="number")return!1;var t=m(e);return!isNaN(Number(t))}function Li(e,t){h(2,arguments);var n=m(e),a=m(t),r=n.getFullYear()-a.getFullYear(),i=n.getMonth()-a.getMonth();return r*12+i}function xi(e,t){h(2,arguments);var n=m(e),a=m(t);return n.getFullYear()-a.getFullYear()}function te(e,t){var n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}function Ai(e,t){h(2,arguments);var n=m(e),a=m(t),r=te(n,a),i=Math.abs(Ti(n,a));n.setDate(n.getDate()-r*i);var s=+(te(n,a)===-r),d=r*(i-s);return d===0?0:d}function Kt(e,t){return h(2,arguments),m(e).getTime()-m(t).getTime()}var ee={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}},$i="trunc";function jt(e){return e?ee[e]:ee[$i]}function Ri(e,t,n){h(2,arguments);var a=Kt(e,t)/Ei;return jt(n==null?void 0:n.roundingMethod)(a)}function Mi(e,t,n){h(2,arguments);var a=Kt(e,t)/wi;return jt(n==null?void 0:n.roundingMethod)(a)}function Ni(e){h(1,arguments);var t=m(e);return t.setHours(23,59,59,999),t}function Le(e){h(1,arguments);var t=m(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function Pi(e){h(1,arguments);var t=m(e);return Ni(t).getTime()===Le(t).getTime()}function xe(e,t){h(2,arguments);var n=m(e),a=m(t),r=A(n,a),i=Math.abs(Li(n,a)),s;if(i<1)s=0;else{n.getMonth()===1&&n.getDate()>27&&n.setDate(30),n.setMonth(n.getMonth()-r*i);var d=A(n,a)===-r;Pi(m(e))&&i===1&&A(e,a)===1&&(d=!1),s=r*(i-Number(d))}return s===0?0:s}function Ae(e,t,n){h(2,arguments);var a=Kt(e,t)/1e3;return jt(n==null?void 0:n.roundingMethod)(a)}function Bi(e,t){h(2,arguments);var n=m(e),a=m(t),r=A(n,a),i=Math.abs(xi(n,a));n.setFullYear(1584),a.setFullYear(1584);var s=A(n,a)===-r,d=r*(i-Number(s));return d===0?0:d}function Fi(e){h(1,arguments);var t=m(e);return t.setDate(1),t.setHours(0,0,0,0),t}function Vi(e,t){h(2,arguments);var n=S(t);return Ci(e,-n)}var qi=864e5;function Ui(e){h(1,arguments);var t=m(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var a=t.getTime(),r=n-a;return Math.floor(r/qi)+1}function at(e){h(1,arguments);var t=1,n=m(e),a=n.getUTCDay(),r=(a<t?7:0)+a-t;return n.setUTCDate(n.getUTCDate()-r),n.setUTCHours(0,0,0,0),n}function $e(e){h(1,arguments);var t=m(e),n=t.getUTCFullYear(),a=new Date(0);a.setUTCFullYear(n+1,0,4),a.setUTCHours(0,0,0,0);var r=at(a),i=new Date(0);i.setUTCFullYear(n,0,4),i.setUTCHours(0,0,0,0);var s=at(i);return t.getTime()>=r.getTime()?n+1:t.getTime()>=s.getTime()?n:n-1}function Hi(e){h(1,arguments);var t=$e(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var a=at(n);return a}var Wi=6048e5;function zi(e){h(1,arguments);var t=m(e),n=at(t).getTime()-Hi(t).getTime();return Math.round(n/Wi)+1}function rt(e,t){var n,a,r,i,s,d,f,p;h(1,arguments);var b=R(),c=S((n=(a=(r=(i=t==null?void 0:t.weekStartsOn)!==null&&i!==void 0?i:t==null||(s=t.locale)===null||s===void 0||(d=s.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&r!==void 0?r:b.weekStartsOn)!==null&&a!==void 0?a:(f=b.locale)===null||f===void 0||(p=f.options)===null||p===void 0?void 0:p.weekStartsOn)!==null&&n!==void 0?n:0);if(!(c>=0&&c<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var g=m(e),_=g.getUTCDay(),v=(_<c?7:0)+_-c;return g.setUTCDate(g.getUTCDate()-v),g.setUTCHours(0,0,0,0),g}function Re(e,t){var n,a,r,i,s,d,f,p;h(1,arguments);var b=m(e),c=b.getUTCFullYear(),g=R(),_=S((n=(a=(r=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(s=t.locale)===null||s===void 0||(d=s.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&r!==void 0?r:g.firstWeekContainsDate)!==null&&a!==void 0?a:(f=g.locale)===null||f===void 0||(p=f.options)===null||p===void 0?void 0:p.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(_>=1&&_<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var v=new Date(0);v.setUTCFullYear(c+1,0,_),v.setUTCHours(0,0,0,0);var D=rt(v,t),I=new Date(0);I.setUTCFullYear(c,0,_),I.setUTCHours(0,0,0,0);var w=rt(I,t);return b.getTime()>=D.getTime()?c+1:b.getTime()>=w.getTime()?c:c-1}function Yi(e,t){var n,a,r,i,s,d,f,p;h(1,arguments);var b=R(),c=S((n=(a=(r=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(s=t.locale)===null||s===void 0||(d=s.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&r!==void 0?r:b.firstWeekContainsDate)!==null&&a!==void 0?a:(f=b.locale)===null||f===void 0||(p=f.options)===null||p===void 0?void 0:p.firstWeekContainsDate)!==null&&n!==void 0?n:1),g=Re(e,t),_=new Date(0);_.setUTCFullYear(g,0,c),_.setUTCHours(0,0,0,0);var v=rt(_,t);return v}var Ki=6048e5;function ji(e,t){h(1,arguments);var n=m(e),a=rt(n,t).getTime()-Yi(n,t).getTime();return Math.round(a/Ki)+1}function y(e,t){for(var n=e<0?"-":"",a=Math.abs(e).toString();a.length<t;)a="0"+a;return n+a}var Gi={y:function(t,n){var a=t.getUTCFullYear(),r=a>0?a:1-a;return y(n==="yy"?r%100:r,n.length)},M:function(t,n){var a=t.getUTCMonth();return n==="M"?String(a+1):y(a+1,2)},d:function(t,n){return y(t.getUTCDate(),n.length)},a:function(t,n){var a=t.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return a.toUpperCase();case"aaa":return a;case"aaaaa":return a[0];case"aaaa":default:return a==="am"?"a.m.":"p.m."}},h:function(t,n){return y(t.getUTCHours()%12||12,n.length)},H:function(t,n){return y(t.getUTCHours(),n.length)},m:function(t,n){return y(t.getUTCMinutes(),n.length)},s:function(t,n){return y(t.getUTCSeconds(),n.length)},S:function(t,n){var a=n.length,r=t.getUTCMilliseconds(),i=Math.floor(r*Math.pow(10,a-3));return y(i,n.length)}};const O=Gi;var N={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Qi={G:function(t,n,a){var r=t.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return a.era(r,{width:"abbreviated"});case"GGGGG":return a.era(r,{width:"narrow"});case"GGGG":default:return a.era(r,{width:"wide"})}},y:function(t,n,a){if(n==="yo"){var r=t.getUTCFullYear(),i=r>0?r:1-r;return a.ordinalNumber(i,{unit:"year"})}return O.y(t,n)},Y:function(t,n,a,r){var i=Re(t,r),s=i>0?i:1-i;if(n==="YY"){var d=s%100;return y(d,2)}return n==="Yo"?a.ordinalNumber(s,{unit:"year"}):y(s,n.length)},R:function(t,n){var a=$e(t);return y(a,n.length)},u:function(t,n){var a=t.getUTCFullYear();return y(a,n.length)},Q:function(t,n,a){var r=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"Q":return String(r);case"QQ":return y(r,2);case"Qo":return a.ordinalNumber(r,{unit:"quarter"});case"QQQ":return a.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return a.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return a.quarter(r,{width:"wide",context:"formatting"})}},q:function(t,n,a){var r=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"q":return String(r);case"qq":return y(r,2);case"qo":return a.ordinalNumber(r,{unit:"quarter"});case"qqq":return a.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return a.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return a.quarter(r,{width:"wide",context:"standalone"})}},M:function(t,n,a){var r=t.getUTCMonth();switch(n){case"M":case"MM":return O.M(t,n);case"Mo":return a.ordinalNumber(r+1,{unit:"month"});case"MMM":return a.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return a.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return a.month(r,{width:"wide",context:"formatting"})}},L:function(t,n,a){var r=t.getUTCMonth();switch(n){case"L":return String(r+1);case"LL":return y(r+1,2);case"Lo":return a.ordinalNumber(r+1,{unit:"month"});case"LLL":return a.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return a.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return a.month(r,{width:"wide",context:"standalone"})}},w:function(t,n,a,r){var i=ji(t,r);return n==="wo"?a.ordinalNumber(i,{unit:"week"}):y(i,n.length)},I:function(t,n,a){var r=zi(t);return n==="Io"?a.ordinalNumber(r,{unit:"week"}):y(r,n.length)},d:function(t,n,a){return n==="do"?a.ordinalNumber(t.getUTCDate(),{unit:"date"}):O.d(t,n)},D:function(t,n,a){var r=Ui(t);return n==="Do"?a.ordinalNumber(r,{unit:"dayOfYear"}):y(r,n.length)},E:function(t,n,a){var r=t.getUTCDay();switch(n){case"E":case"EE":case"EEE":return a.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return a.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return a.day(r,{width:"short",context:"formatting"});case"EEEE":default:return a.day(r,{width:"wide",context:"formatting"})}},e:function(t,n,a,r){var i=t.getUTCDay(),s=(i-r.weekStartsOn+8)%7||7;switch(n){case"e":return String(s);case"ee":return y(s,2);case"eo":return a.ordinalNumber(s,{unit:"day"});case"eee":return a.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return a.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return a.day(i,{width:"short",context:"formatting"});case"eeee":default:return a.day(i,{width:"wide",context:"formatting"})}},c:function(t,n,a,r){var i=t.getUTCDay(),s=(i-r.weekStartsOn+8)%7||7;switch(n){case"c":return String(s);case"cc":return y(s,n.length);case"co":return a.ordinalNumber(s,{unit:"day"});case"ccc":return a.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return a.day(i,{width:"narrow",context:"standalone"});case"cccccc":return a.day(i,{width:"short",context:"standalone"});case"cccc":default:return a.day(i,{width:"wide",context:"standalone"})}},i:function(t,n,a){var r=t.getUTCDay(),i=r===0?7:r;switch(n){case"i":return String(i);case"ii":return y(i,n.length);case"io":return a.ordinalNumber(i,{unit:"day"});case"iii":return a.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return a.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return a.day(r,{width:"short",context:"formatting"});case"iiii":default:return a.day(r,{width:"wide",context:"formatting"})}},a:function(t,n,a){var r=t.getUTCHours(),i=r/12>=1?"pm":"am";switch(n){case"a":case"aa":return a.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return a.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return a.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return a.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(t,n,a){var r=t.getUTCHours(),i;switch(r===12?i=N.noon:r===0?i=N.midnight:i=r/12>=1?"pm":"am",n){case"b":case"bb":return a.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return a.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return a.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return a.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(t,n,a){var r=t.getUTCHours(),i;switch(r>=17?i=N.evening:r>=12?i=N.afternoon:r>=4?i=N.morning:i=N.night,n){case"B":case"BB":case"BBB":return a.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return a.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return a.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(t,n,a){if(n==="ho"){var r=t.getUTCHours()%12;return r===0&&(r=12),a.ordinalNumber(r,{unit:"hour"})}return O.h(t,n)},H:function(t,n,a){return n==="Ho"?a.ordinalNumber(t.getUTCHours(),{unit:"hour"}):O.H(t,n)},K:function(t,n,a){var r=t.getUTCHours()%12;return n==="Ko"?a.ordinalNumber(r,{unit:"hour"}):y(r,n.length)},k:function(t,n,a){var r=t.getUTCHours();return r===0&&(r=24),n==="ko"?a.ordinalNumber(r,{unit:"hour"}):y(r,n.length)},m:function(t,n,a){return n==="mo"?a.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):O.m(t,n)},s:function(t,n,a){return n==="so"?a.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):O.s(t,n)},S:function(t,n){return O.S(t,n)},X:function(t,n,a,r){var i=r._originalDate||t,s=i.getTimezoneOffset();if(s===0)return"Z";switch(n){case"X":return ae(s);case"XXXX":case"XX":return x(s);case"XXXXX":case"XXX":default:return x(s,":")}},x:function(t,n,a,r){var i=r._originalDate||t,s=i.getTimezoneOffset();switch(n){case"x":return ae(s);case"xxxx":case"xx":return x(s);case"xxxxx":case"xxx":default:return x(s,":")}},O:function(t,n,a,r){var i=r._originalDate||t,s=i.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+ne(s,":");case"OOOO":default:return"GMT"+x(s,":")}},z:function(t,n,a,r){var i=r._originalDate||t,s=i.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+ne(s,":");case"zzzz":default:return"GMT"+x(s,":")}},t:function(t,n,a,r){var i=r._originalDate||t,s=Math.floor(i.getTime()/1e3);return y(s,n.length)},T:function(t,n,a,r){var i=r._originalDate||t,s=i.getTime();return y(s,n.length)}};function ne(e,t){var n=e>0?"-":"+",a=Math.abs(e),r=Math.floor(a/60),i=a%60;if(i===0)return n+String(r);var s=t||"";return n+String(r)+s+y(i,2)}function ae(e,t){if(e%60===0){var n=e>0?"-":"+";return n+y(Math.abs(e)/60,2)}return x(e,t)}function x(e,t){var n=t||"",a=e>0?"-":"+",r=Math.abs(e),i=y(Math.floor(r/60),2),s=y(r%60,2);return a+i+n+s}const Zi=Qi;var re=function(t,n){switch(t){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"})}},Me=function(t,n){switch(t){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"})}},Xi=function(t,n){var a=t.match(/(P+)(p+)?/)||[],r=a[1],i=a[2];if(!i)return re(t,n);var s;switch(r){case"P":s=n.dateTime({width:"short"});break;case"PP":s=n.dateTime({width:"medium"});break;case"PPP":s=n.dateTime({width:"long"});break;case"PPPP":default:s=n.dateTime({width:"full"});break}return s.replace("{{date}}",re(r,n)).replace("{{time}}",Me(i,n))},Ji={p:Me,P:Xi};const ts=Ji;var es=["D","DD"],ns=["YY","YYYY"];function as(e){return es.indexOf(e)!==-1}function rs(e){return ns.indexOf(e)!==-1}function ie(e,t,n){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) 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(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) 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 is={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"}},ss=function(t,n,a){var r,i=is[t];return typeof i=="string"?r=i:n===1?r=i.one:r=i.other.replace("{{count}}",n.toString()),a!=null&&a.addSuffix?a.comparison&&a.comparison>0?"in "+r:r+" ago":r};const os=ss;function St(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,a=e.formats[n]||e.formats[e.defaultWidth];return a}}var ls={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},ds={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},cs={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},us={date:St({formats:ls,defaultWidth:"full"}),time:St({formats:ds,defaultWidth:"full"}),dateTime:St({formats:cs,defaultWidth:"full"})};const fs=us;var ps={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},hs=function(t,n,a,r){return ps[t]};const ms=hs;function z(e){return function(t,n){var a=n!=null&&n.context?String(n.context):"standalone",r;if(a==="formatting"&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,s=n!=null&&n.width?String(n.width):i;r=e.formattingValues[s]||e.formattingValues[i]}else{var d=e.defaultWidth,f=n!=null&&n.width?String(n.width):e.defaultWidth;r=e.values[f]||e.values[d]}var p=e.argumentCallback?e.argumentCallback(t):t;return r[p]}}var _s={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},gs={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},bs={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"]},vs={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"]},ys={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"}},Ss={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"}},Cs=function(t,n){var a=Number(t),r=a%100;if(r>20||r<10)switch(r%10){case 1:return a+"st";case 2:return a+"nd";case 3:return a+"rd"}return a+"th"},Is={ordinalNumber:Cs,era:z({values:_s,defaultWidth:"wide"}),quarter:z({values:gs,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:z({values:bs,defaultWidth:"wide"}),day:z({values:vs,defaultWidth:"wide"}),dayPeriod:z({values:ys,defaultWidth:"wide",formattingValues:Ss,defaultFormattingWidth:"wide"})};const Ds=Is;function Y(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=n.width,r=a&&e.matchPatterns[a]||e.matchPatterns[e.defaultMatchWidth],i=t.match(r);if(!i)return null;var s=i[0],d=a&&e.parsePatterns[a]||e.parsePatterns[e.defaultParseWidth],f=Array.isArray(d)?ws(d,function(c){return c.test(s)}):Ts(d,function(c){return c.test(s)}),p;p=e.valueCallback?e.valueCallback(f):f,p=n.valueCallback?n.valueCallback(p):p;var b=t.slice(s.length);return{value:p,rest:b}}}function Ts(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function ws(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}function Es(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=t.match(e.matchPattern);if(!a)return null;var r=a[0],i=t.match(e.parsePattern);if(!i)return null;var s=e.valueCallback?e.valueCallback(i[0]):i[0];s=n.valueCallback?n.valueCallback(s):s;var d=t.slice(r.length);return{value:s,rest:d}}}var Os=/^(\d+)(th|st|nd|rd)?/i,ks=/\d+/i,Ls={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},xs={any:[/^b/i,/^(a|c)/i]},As={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},$s={any:[/1/i,/2/i,/3/i,/4/i]},Rs={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},Ms={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]},Ns={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},Ps={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]},Bs={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},Fs={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}},Vs={ordinalNumber:Es({matchPattern:Os,parsePattern:ks,valueCallback:function(t){return parseInt(t,10)}}),era:Y({matchPatterns:Ls,defaultMatchWidth:"wide",parsePatterns:xs,defaultParseWidth:"any"}),quarter:Y({matchPatterns:As,defaultMatchWidth:"wide",parsePatterns:$s,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Y({matchPatterns:Rs,defaultMatchWidth:"wide",parsePatterns:Ms,defaultParseWidth:"any"}),day:Y({matchPatterns:Ns,defaultMatchWidth:"wide",parsePatterns:Ps,defaultParseWidth:"any"}),dayPeriod:Y({matchPatterns:Bs,defaultMatchWidth:"any",parsePatterns:Fs,defaultParseWidth:"any"})};const qs=Vs;var Us={code:"en-US",formatDistance:os,formatLong:fs,formatRelative:ms,localize:Ds,match:qs,options:{weekStartsOn:0,firstWeekContainsDate:1}};const Gt=Us;var Hs=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Ws=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,zs=/^'([^]*?)'?$/,Ys=/''/g,Ks=/[a-zA-Z]/;function Ne(e,t,n){var a,r,i,s,d,f,p,b,c,g,_,v,D,I,w,M,L,bt;h(2,arguments);var Je=String(t),U=R(),H=(a=(r=n==null?void 0:n.locale)!==null&&r!==void 0?r:U.locale)!==null&&a!==void 0?a:Gt,vt=S((i=(s=(d=(f=n==null?void 0:n.firstWeekContainsDate)!==null&&f!==void 0?f:n==null||(p=n.locale)===null||p===void 0||(b=p.options)===null||b===void 0?void 0:b.firstWeekContainsDate)!==null&&d!==void 0?d:U.firstWeekContainsDate)!==null&&s!==void 0?s:(c=U.locale)===null||c===void 0||(g=c.options)===null||g===void 0?void 0:g.firstWeekContainsDate)!==null&&i!==void 0?i:1);if(!(vt>=1&&vt<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var yt=S((_=(v=(D=(I=n==null?void 0:n.weekStartsOn)!==null&&I!==void 0?I:n==null||(w=n.locale)===null||w===void 0||(M=w.options)===null||M===void 0?void 0:M.weekStartsOn)!==null&&D!==void 0?D:U.weekStartsOn)!==null&&v!==void 0?v:(L=U.locale)===null||L===void 0||(bt=L.options)===null||bt===void 0?void 0:bt.weekStartsOn)!==null&&_!==void 0?_:0);if(!(yt>=0&&yt<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!H.localize)throw new RangeError("locale must contain localize property");if(!H.formatLong)throw new RangeError("locale must contain formatLong property");var X=m(e);if(!ki(X))throw new RangeError("Invalid time value");var tn=j(X),en=Vi(X,tn),nn={firstWeekContainsDate:vt,weekStartsOn:yt,locale:H,_originalDate:X},an=Je.match(Ws).map(function(T){var E=T[0];if(E==="p"||E==="P"){var J=ts[E];return J(T,H.formatLong)}return T}).join("").match(Hs).map(function(T){if(T==="''")return"'";var E=T[0];if(E==="'")return js(T);var J=Zi[E];if(J)return!(n!=null&&n.useAdditionalWeekYearTokens)&&rs(T)&&ie(T,t,String(e)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&as(T)&&ie(T,t,String(e)),J(en,T,H.localize,nn);if(E.match(Ks))throw new RangeError("Format string contains an unescaped latin alphabet character `"+E+"`");return T}).join("");return an}function js(e){var t=e.match(zs);return t?t[1].replace(Ys,"'"):e}function Pe(e,t){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function Gs(e){return Pe({},e)}var se=1440,Qs=2520,Ct=43200,Zs=86400;function Xs(e,t,n){var a,r;h(2,arguments);var i=R(),s=(a=(r=n==null?void 0:n.locale)!==null&&r!==void 0?r:i.locale)!==null&&a!==void 0?a:Gt;if(!s.formatDistance)throw new RangeError("locale must contain formatDistance property");var d=A(e,t);if(isNaN(d))throw new RangeError("Invalid time value");var f=Pe(Gs(n),{addSuffix:!!(n!=null&&n.addSuffix),comparison:d}),p,b;d>0?(p=m(t),b=m(e)):(p=m(e),b=m(t));var c=Ae(b,p),g=(j(b)-j(p))/1e3,_=Math.round((c-g)/60),v;if(_<2)return n!=null&&n.includeSeconds?c<5?s.formatDistance("lessThanXSeconds",5,f):c<10?s.formatDistance("lessThanXSeconds",10,f):c<20?s.formatDistance("lessThanXSeconds",20,f):c<40?s.formatDistance("halfAMinute",0,f):c<60?s.formatDistance("lessThanXMinutes",1,f):s.formatDistance("xMinutes",1,f):_===0?s.formatDistance("lessThanXMinutes",1,f):s.formatDistance("xMinutes",_,f);if(_<45)return s.formatDistance("xMinutes",_,f);if(_<90)return s.formatDistance("aboutXHours",1,f);if(_<se){var D=Math.round(_/60);return s.formatDistance("aboutXHours",D,f)}else{if(_<Qs)return s.formatDistance("xDays",1,f);if(_<Ct){var I=Math.round(_/se);return s.formatDistance("xDays",I,f)}else if(_<Zs)return v=Math.round(_/Ct),s.formatDistance("aboutXMonths",v,f)}if(v=xe(b,p),v<12){var w=Math.round(_/Ct);return s.formatDistance("xMonths",w,f)}else{var M=v%12,L=Math.floor(v/12);return M<3?s.formatDistance("aboutXYears",L,f):M<9?s.formatDistance("overXYears",L,f):s.formatDistance("almostXYears",L+1,f)}}var Js=["years","months","weeks","days","hours","minutes","seconds"];function to(e,t){var n,a,r,i,s;if(arguments.length<1)throw new TypeError("1 argument required, but only ".concat(arguments.length," present"));var d=R(),f=(n=(a=t==null?void 0:t.locale)!==null&&a!==void 0?a:d.locale)!==null&&n!==void 0?n:Gt,p=(r=t==null?void 0:t.format)!==null&&r!==void 0?r:Js,b=(i=t==null?void 0:t.zero)!==null&&i!==void 0?i:!1,c=(s=t==null?void 0:t.delimiter)!==null&&s!==void 0?s:" ";if(!f.formatDistance)return"";var g=p.reduce(function(_,v){var D="x".concat(v.replace(/(^.)/,function(w){return w.toUpperCase()})),I=e[v];return typeof I=="number"&&(b||e[v])?_.concat(f.formatDistance(D,I)):_},[]).join(c);return g}function Qt(e){h(1,arguments);var t=m(e),n=t.getDate();return n}function it(e){h(1,arguments);var t=m(e),n=t.getDay();return n}function eo(e){h(1,arguments);var t=m(e),n=t.getFullYear(),a=t.getMonth(),r=new Date(0);return r.setFullYear(n,a+1,0),r.setHours(0,0,0,0),r.getDate()}function tt(e){h(1,arguments);var t=m(e),n=t.getMonth();return n}function Nt(e){return h(1,arguments),m(e).getFullYear()}function no(e){h(1,arguments);var t=m(e.start),n=m(e.end);if(isNaN(t.getTime()))throw new RangeError("Start Date is invalid");if(isNaN(n.getTime()))throw new RangeError("End Date is invalid");var a={};a.years=Math.abs(Bi(n,t));var r=A(n,t),i=W(t,{years:r*a.years});a.months=Math.abs(xe(n,i));var s=W(i,{months:r*a.months});a.days=Math.abs(Ai(n,s));var d=W(s,{days:r*a.days});a.hours=Math.abs(Ri(n,d));var f=W(d,{hours:r*a.hours});a.minutes=Math.abs(Mi(n,f));var p=W(f,{minutes:r*a.minutes});return a.seconds=Math.abs(Ae(n,p)),a}function ao(e,t){h(2,arguments);var n=m(e),a=m(t);return n.getTime()===a.getTime()}function ro(e,t,n){h(2,arguments);var a=Mt(e,n),r=Mt(t,n);return a.getTime()===r.getTime()}function io(e,t){h(2,arguments);var n=m(e),a=m(t);return n.getFullYear()===a.getFullYear()}function so(e,t){return h(1,arguments),ro(e,Date.now(),t)}function oo(e){return h(1,arguments),io(e,Date.now())}function lo(e){return h(1,arguments),ke(e,Date.now())}function co(e,t){h(2,arguments);var n=S(t);return q(e,-n)}function uo(e){return h(1,arguments),ke(e,co(Date.now(),1))}function fo(e,t){h(2,arguments);var n=m(e),a=S(t),r=n.getFullYear(),i=n.getDate(),s=new Date(0);s.setFullYear(r,a,15),s.setHours(0,0,0,0);var d=eo(s);return n.setMonth(a,Math.min(i,d)),n}function po(e,t){if(h(2,arguments),F(t)!=="object"||t===null)throw new RangeError("values parameter must be an object");var n=m(e);return isNaN(n.getTime())?new Date(NaN):(t.year!=null&&n.setFullYear(t.year),t.month!=null&&(n=fo(n,t.month)),t.date!=null&&n.setDate(S(t.date)),t.hours!=null&&n.setHours(S(t.hours)),t.minutes!=null&&n.setMinutes(S(t.minutes)),t.seconds!=null&&n.setSeconds(S(t.seconds)),t.milliseconds!=null&&n.setMilliseconds(S(t.milliseconds)),n)}function Be(e,t){h(2,arguments);var n=S(t);return ct(e,-n)}const Fe=0,ho="MMMM",mo="long",Pt=e=>e?new Date(e):new Date,_o=(e,t,n)=>{const a=Pt(JSON.parse(JSON.stringify(e))),r=[];for(let i=0;i<7;i++){const s=q(a,i),d=tt(s)!==t;r.push({text:s.getDate(),value:s,currentMonth:!d,isFirstDayOfMonth:s.getDate()===1&&!d,selected:n?s.getDate()===n&&!d:!1})}return r},go=(e,t)=>!e||!t?!1:ao(e,t),bo=(e,t,n)=>{const a=[],r=Pt(new Date(t,e)),i=Pt(new Date(t,e+1,0)),d=Mt(r,{weekStartsOn:Fe}),f=p=>{const b=_o(p,e,n);if(a.push({days:b}),!a[a.length-1].days.some(c=>go(c.value,i))){const c=q(p,7);f(c)}};return f(d),a},vo=(e,t)=>{const n=[1,2,3,4,5,6,7].map(i=>new Intl.DateTimeFormat(e,{weekday:"short",timeZone:"UTC"}).format(new Date(`2017-01-0${i}T00:00:00+00:00`)).slice(0,2)),a=n.slice(0,t),r=n.slice(t+1,n.length);return[n[t]].concat(...r).concat(...a)},yo=(e,t,n)=>new Intl.DateTimeFormat(n,{month:t}).format(new Date(2e3,e,1)),So=e=>{const t=new Date(e),n=it(t),a=ct(t,1),r=Fi(a),i=it(r),s=(n-i+7)%7,d=q(r,s);return Qt(d)},Co=e=>{const t=new Date(e),n=it(t);let r=Le(Be(t,1));for(;it(r)!==n;)r=q(r,-1);return Qt(r)},Io={name:"DtDatepickerMonthYearPicker",components:{DtButton:l.DtButton,DtTooltip:o.DtTooltip,DtStack:u.DtStack,DtIcon:l.DtIcon},props:{locale:{type:String,required:!0},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-first-day","focus-last-day","close-datepicker"],data(){return{selectMonth:tt(this.selectedDate),selectYear:Nt(this.selectedDate),highlightedDay:null,focusPicker:0,focusRefs:[],refNames:["prevYearButtonRef","prevMonthButtonRef","nextMonthButtonRef","nextYearButtonRef"]}},computed:{calendarDays(){return bo(this.selectMonth,this.selectYear,this.highlightedDay)},formattedMonth(){return e=>yo(e,mo,this.locale)}},watch:{selectMonth:{handler(){this.highlightDay(),this.$emit("calendar-days",this.calendarDays)},immediate:!0},selectYear:{handler(){this.highlightDay(),this.$emit("calendar-days",this.calendarDays)},immediate:!0}},mounted(){this.setButtonsRef(),this.focusMonthYearPicker()},methods:{setButtonsRef(){this.focusRefs=this.refNames.map(e=>this.$refs[e])},focusMonthYearPicker(){this.focusPicker=0,this.focusRefs[0].$el.focus()},handleKeyDown(e){switch(e.key){case"ArrowLeft":e.preventDefault(),this.focusPicker===0?(this.focusPicker=3,this.focusRefs[this.focusPicker].$el.focus()):(this.focusPicker--,this.focusRefs[this.focusPicker].$el.focus());break;case"ArrowRight":e.preventDefault(),this.focusPicker===3?(this.focusPicker=0,this.focusRefs[this.focusPicker].$el.focus()):(this.focusPicker++,this.focusRefs[this.focusPicker].$el.focus());break;case"ArrowDown":e.preventDefault(),this.$emit("focus-first-day");break;case"Tab":e.preventDefault(),this.$emit("focus-first-day");break;case"Escape":this.$emit("close-datepicker");break}},highlightDay(){const e=Nt(this.selectedDate),t=tt(this.selectedDate);e!==this.selectYear||t!==this.selectMonth?this.highlightedDay=null:this.highlightedDay=Qt(this.selectedDate)},changeMonth(e){(this.selectMonth===0&&e===-1||this.selectMonth===11&&e===1)&&(this.selectYear+=e);const t=po(this.selectedDate,{month:this.selectMonth,year:this.selectYear}),n=e===1?ct(t,1):Be(t,1);this.selectMonth=tt(n)},changeYear(e){this.selectYear=this.selectYear+e},goToNextMonth(){this.changeMonth(1)},goToPrevMonth(){this.changeMonth(-1)}}};var Do=function(){var t=this,n=t._self._c;return n("dt-stack",{staticClass:"d-datepicker__month-year",attrs:{direction:"row",gap:"300"}},[n("dt-stack",{staticClass:"d-datepicker__nav",attrs:{as:"nav",direction:"row",gap:"200"}},[n("dt-tooltip",{attrs:{message:t.prevYearLabel,placement:"top"},scopedSlots:t._u([{key:"anchor",fn:function(){return[n("dt-button",{ref:t.refNames[0],staticClass:"d-datepicker__nav-btn",attrs:{id:"prevYearButton",size:"xs",importance:"clear",kind:"muted",circle:!0,type:"button","aria-label":`${t.changeToLabel} ${t.prevYearLabel} ${t.selectYear-1}`},on:{click:function(a){return t.changeYear(-1)},keydown:function(a){return t.handleKeyDown(a)}}},[n("dt-icon",{attrs:{name:"chevrons-left",size:"200"}})],1)]},proxy:!0}])}),n("dt-tooltip",{attrs:{message:t.prevMonthLabel,placement:"top"},scopedSlots:t._u([{key:"anchor",fn:function(){return[n("dt-button",{ref:t.refNames[1],staticClass:"d-datepicker__nav-btn",attrs:{id:"prevMonthButton",size:"xs",importance:"clear",kind:"muted",circle:!0,type:"button","aria-label":`${t.changeToLabel} ${t.prevMonthLabel} ${t.formattedMonth(t.selectMonth-1)}`},on:{click:function(a){return t.changeMonth(-1)},keydown:function(a){return t.handleKeyDown(a)}}},[n("dt-icon",{attrs:{name:"chevron-left",size:"200"}})],1)]},proxy:!0}])})],1),n("div",{staticClass:"d-datepicker__month-year-title",attrs:{id:"calendar-heading"}},[t._v(" "+t._s(t.formattedMonth(t.selectMonth))+" "+t._s(t.selectYear)+" ")]),n("dt-stack",{staticClass:"d-datepicker__nav",attrs:{as:"nav",direction:"row",gap:"200"}},[n("dt-tooltip",{attrs:{message:t.nextMonthLabel,placement:"top"},scopedSlots:t._u([{key:"anchor",fn:function(){return[n("dt-button",{ref:t.refNames[2],staticClass:"d-datepicker__nav-btn",attrs:{id:"nextMonthButton",size:"xs",importance:"clear",circle:!0,kind:"muted",type:"button","aria-label":`${t.changeToLabel} ${t.nextMonthLabel} ${t.formattedMonth(t.selectMonth+1)}`},on:{click:function(a){return t.changeMonth(1)},keydown:function(a){return t.handleKeyDown(a)}}},[n("dt-icon",{attrs:{name:"chevron-right",size:"200"}})],1)]},proxy:!0}])}),n("dt-tooltip",{attrs:{message:t.nextYearLabel,placement:"top"},scopedSlots:t._u([{key:"anchor",fn:function(){return[n("dt-button",{ref:t.refNames[3],staticClass:"d-datepicker__nav-btn",attrs:{id:"nextYearButton",size:"xs",kind:"muted",circle:!0,importance:"clear",type:"button","aria-label":`${t.changeToLabel} ${t.nextYearLabel} ${t.selectYear+1}`},on:{click:function(a){return t.changeYear(1)},keydown:function(a){return t.handleKeyDown(a)}}},[n("dt-icon",{attrs:{name:"chevrons-right",size:"200"}})],1)]},proxy:!0}])})],1)],1)},To=[],wo=o.normalizeComponent(Io,Do,To,!1,null,null,null,null);const Eo=wo.exports,Oo={name:"DtDatepickerCalendar",components:{DtButton:l.DtButton},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"],data(){return{selectedDay:null,focusDay:0,daysRef:[]}},computed:{weekDays(){return vo(this.locale,Fe)}},watch:{calendarDays(){this.focusDay=0,this.selectedDay=null,this.daysRef=[],this.$nextTick(()=>{this.daysRef=[],this.setDayRef()})}},methods:{dayAriaLabel(e){return`${this.selectDayLabel} ${e.text} ${Ne(e.value,ho)} ${Nt(e.value)}`},setDayRef(e,t){this.calendarDays.forEach((n,a)=>{n.days.forEach((r,i)=>{const s=`buttonRef_${a}_${i}`,d=this.$refs[s];d&&r.currentMonth&&this.daysRef.push({el:d[0],day:r})})})},handleKeyDown(e){switch(e.key){case"ArrowUp":e.preventDefault(),this.focusDay-=7;try{this.daysRef[this.focusDay].el.$el.focus()}catch{const n=Co(this.daysRef[this.focusDay+7].day.value);this.$emit("go-to-prev-month"),this.$nextTick(()=>{this.setDayRef(),this.daysRef[n-1].el.$el.focus(),this.focusDay+=n-1})}break;case"ArrowDown":e.preventDefault(),this.focusDay+=7;try{this.daysRef[this.focusDay].el.$el.focus()}catch{const n=So(this.daysRef[this.focusDay-7].day.value);this.$emit("go-to-next-month"),this.$nextTick(()=>{this.setDayRef(),this.daysRef[n-1].el.$el.focus(),this.focusDay+=n-1})}break;case"ArrowLeft":e.preventDefault(),this.focusDay>0?(this.focusDay-=1,this.daysRef[this.focusDay].el.$el.focus()):(this.$emit("go-to-prev-month"),this.$nextTick(()=>{this.focusLastDay()}));break;case"ArrowRight":e.preventDefault(),this.focusDay<this.daysRef.length-1?(this.focusDay+=1,this.daysRef[this.focusDay].el.$el.focus()):(this.$emit("go-to-next-month"),this.$nextTick(()=>{this.focusFirstDay()}));break;case"Tab":e.preventDefault(),this.$emit("focus-month-year-picker");break;case"Escape":this.$emit("close-datepicker");break}},focusFirstDay(){this.focusDay=0,this.$nextTick(()=>{this.daysRef[this.focusDay].el.$el.focus()})},focusLastDay(){this.$nextTick(()=>{this.focusDay=this.daysRef.length-1,this.daysRef[this.focusDay].el.$el.focus()})},selectDay(e){e.currentMonth&&(this.selectedDay=e.text,this.$emit("select-date",e.value))}}};var ko=function(){var t=this,n=t._self._c;return n("table",{staticClass:"d-datepicker__calendar",attrs:{"aria-labelledby":"calendar-heading"}},[n("thead",[n("tr",t._l(t.weekDays,function(a){return n("th",{key:a,staticClass:"d-datepicker__cell d-datepicker__cell--header",attrs:{scope:"col"}},[n("span",{staticClass:"d-datepicker__weekday",attrs:{title:a,"aria-label":a}},[t._v(" "+t._s(a))])])}),0)]),n("tbody",t._l(t.calendarDays,function(a,r){return n("tr",{key:r},t._l(a.days,function(i,s){return n("td",{key:r+s,staticClass:"d-datepicker__cell"},[n("dt-button",{ref:`buttonRef_${r}_${s}`,refInFor:!0,staticClass:"d-datepicker__day",class:{"d-datepicker__day--disabled":!i.currentMonth,"d-datepicker__day--selected":t.selectedDay?i.text===t.selectedDay&&i.currentMonth:i.selected},attrs:{circle:!0,size:"sm",importance:"clear",disabled:!i.currentMonth,type:"button","aria-selected":t.selectedDay?i.text===t.selectedDay&&i.currentMonth:i.selected,"aria-label":t.dayAriaLabel(i)},on:{click:function(d){return t.selectDay(i)},keydown:function(d){return t.handleKeyDown(d)}}},[t._v(" "+t._s(i.text)+" ")])],1)}),0)}),0)])},Lo=[],xo=o.normalizeComponent(Oo,ko,Lo,!1,null,null,null,null);const Ao=xo.exports,$o={name:"DtDatepicker",components:{DtStack:u.DtStack,MonthYearPicker:Eo,Calendar:Ao},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"],data(){return{calendarDays:[]}},methods:{updateCalendarDays(e){this.calendarDays=e}}};var Ro=function(){var t=this,n=t._self._c;return n("dt-stack",{staticClass:"d-datepicker",attrs:{gap:"400"}},[n("div",{staticClass:"d-datepicker__hd"},[n("month-year-picker",{ref:"monthYearPicker",attrs:{locale:t.locale,"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},on:{"calendar-days":t.updateCalendarDays,"focus-first-day":function(a){return t.$refs.calendar.focusFirstDay()},"focus-last-day":function(a){return t.$refs.calendar.focusLastDay()},"close-datepicker":function(a){return t.$emit("close-datepicker")}}})],1),n("div",{staticClass:"d-datepicker__bd"},[n("calendar",{ref:"calendar",attrs:{locale:t.locale,"calendar-days":t.calendarDays,"select-day-label":t.selectDayLabel},on:{"select-date":function(a){return t.$emit("selected-date",a)},"focus-month-year-picker":function(a){return t.$refs.monthYearPicker.focusMonthYearPicker()},"close-datepicker":function(a){return t.$emit("close-datepicker")},"go-to-next-month":function(a){return t.$refs.monthYearPicker.goToNextMonth()},"go-to-prev-month":function(a){return t.$refs.monthYearPicker.goToPrevMonth()}}})],1)])},Mo=[],No=o.normalizeComponent($o,Ro,Mo,!1,null,null,null,null);const Po=No.exports;function Bo(e,t="default"){return new Intl.DateTimeFormat(t,{weekday:"long",year:"numeric",month:"long",day:"numeric"}).format(e)}function Fo(e,t="default"){return new Intl.DateTimeFormat(t,{year:"numeric",month:"long",day:"numeric"}).format(e)}function Vo(e,t="default",n=!0){const a=n?{weekday:"short",year:"numeric",month:"short",day:"numeric"}:{year:"numeric",month:"short",day:"numeric"};return new Intl.DateTimeFormat(t,a).format(e)}function qo(e,t="default",n=!1){const a=n?"short":"long";return new Intl.DateTimeFormat(t,{month:a,day:"numeric"}).format(e)}function Uo(e,t="default"){return new Intl.DateTimeFormat(t,{year:"2-digit",month:"2-digit",day:"2-digit"}).format(e)}const Ho={name:"DtRecipeComboboxWithPopover",components:{DtCombobox:me,DtPopover:u.DtPopover,ComboboxLoadingList:pe,ComboboxEmptyList:he},mixins:[u.SrOnlyCloseButtonMixin],props:{label:{type:String,required:!0},labelVisible:{type:Boolean,default:!0},size:{type:String,default:null,validator:e=>Object.values(Wt).includes(e)},description:{type:String,default:""},showList:{type:Boolean,default:null},listId:{type:String,default(){return o.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:e=>Object.keys(B).some(t=>t===e)},contentWidth:{type:String,default:null,validator:e=>u.POPOVER_CONTENT_WIDTHS.includes(e)},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:e=>u.POPOVER_APPEND_TO_VALUES.includes(e)||e instanceof HTMLElement},transition:{type:String,default:"fade"}},emits:["select","escape","highlight","opened"],data(){return{DROPDOWN_PADDING_CLASSES:B,isListShown:!1,isInputFocused:!1,isListFocused:!1,externalAnchor:o.getUniqueString()}},computed:{comboboxListeners(){return{...this.$listeners,select:this.onSelect,escape:this.onEscape,highlight:this.onHighlight}}},watch:{showList:{handler:function(e){e!==null&&(this.isListShown=e)},immediate:!0},isListShown(e){e?window.addEventListener("mousedown",this.onFocusOut):window.removeEventListener("mousedown",this.onFocusOut),this.onOpened(e)}},methods:{handleDisplayList(e){!this.hasSuggestionList&&e&&this.showComboboxList(),!this.hasSuggestionList&&!e&&this.closeComboboxList()},showComboboxList(){this.showList==null&&(this.isListShown=!0)},closeComboboxList(){this.showList==null&&(this.isListShown=!1)},onSelect(e){this.loading||(this.$emit("select",e),this.hasSuggestionList||this.closeComboboxList())},onEscape(){this.$emit("escape"),this.closeComboboxList()},onHighlight(e){this.loading||this.$emit("highlight",e)},onOpened(e){this.$emit("opened",e)},onFocusIn(e){var t;this.hasSuggestionList&&e&&((t=this.$refs.input)==null?void 0:t.querySelector("input"))===e.target&&this.showComboboxList()},onFocusOut(e){var a,r,i;const t=(r=(a=this.$refs.popover)==null?void 0:a.tip)==null?void 0:r.popper,n=this.$refs.input;(i=e.composedPath())!=null&&i.some(s=>[t,n].includes(s))||this.closeComboboxList()},openOnArrowKeyPress(){this.showList!==null||this.isListShown||!this.openWithArrowKeys||this.showComboboxList()}}};var Wo=function(){var t=this,n=t._self._c;return n("dt-combobox",t._g({ref:"combobox",attrs:{loading:t.loading,label:t.label,"label-visible":t.labelVisible,size:t.size,description:t.description,"empty-list":t.emptyList,"empty-state-message":t.emptyStateMessage,"show-list":t.isListShown,"on-beginning-of-list":t.onBeginningOfList,"on-end-of-list":t.onEndOfList,"list-rendered-outside":!0,"list-id":t.listId,"data-qa":"dt-combobox"},scopedSlots:t._u([{key:"input",fn:function({inputProps:a}){return[n("div",{ref:"input",attrs:{id:t.externalAnchor},on:{focusin:t.onFocusIn,keydown:[function(r){return!r.type.indexOf("key")&&t._k(r.keyCode,"up",38,r.key,["Up","ArrowUp"])?null:t.openOnArrowKeyPress(r)},function(r){return!r.type.indexOf("key")&&t._k(r.keyCode,"down",40,r.key,["Down","ArrowDown"])?null:t.openOnArrowKeyPress(r)}]}},[t._t("input",null,{inputProps:a,onInput:t.handleDisplayList})],2)]}},{key:"list",fn:function({opened:a,listProps:r,clearHighlightIndex:i}){return[n("dt-popover",{ref:"popover",attrs:{open:t.isListShown,"hide-on-click":!1,"max-height":t.maxHeight,"max-width":t.maxWidth,offset:t.popoverOffset,sticky:t.popoverSticky,placement:"bottom-start","initial-focus-element":"none",padding:"none",role:"listbox","external-anchor":t.externalAnchor,"content-width":t.contentWidth,"content-appear":!0,"content-tabindex":null,modal:!1,"auto-focus":!1,"append-to":t.appendTo,transition:t.transition,"visually-hidden-close-label":t.visuallyHiddenCloseLabel,"visually-hidden-close":t.visuallyHiddenClose},on:{"update:open":function(s){t.isListShown=s},opened:function(s){return a(s,arguments[1])}},scopedSlots:t._u([t.$slots.header?{key:"headerContent",fn:function(){return[n("div",{ref:"header"},[t._t("header")],2)]},proxy:!0}:null,{key:"content",fn:function(){return[n("div",{ref:"listWrapper",class:[t.DROPDOWN_PADDING_CLASSES[t.padding],t.listClass],on:{mouseleave:i,focusout:i}},[t.loading?n("combobox-loading-list",t._b({},"combobox-loading-list",r,!1)):t.emptyList&&t.emptyStateMessage?n("combobox-empty-list",t._b({attrs:{message:t.emptyStateMessage}},"combobox-empty-list",r,!1)):t._t("list",null,{listProps:r})],2)]},proxy:!0},t.$slots.footer?{key:"footerContent",fn:function(){return[n("div",{ref:"footer"},[t._t("footer")],2)]},proxy:!0}:null],null,!0)})]}}],null,!0)},t.comboboxListeners))},zo=[],Yo=o.normalizeComponent(Ho,Wo,zo,!1,null,null,null,null);const Ve=Yo.exports,qe={EXTRA_SMALL:"xs",SMALL:"sm",DEFAULT:"md"},Ue={xs:"xs",sm:"xs",md:"sm"},He={xs:1.4,sm:.4,md:.2},Ko={name:"DtRecipeComboboxMultiSelect",components:{DtRecipeComboboxWithPopover:Ve,DtInput:l.DtInput,DtChip:Yt,DtValidationMessages:l.DtValidationMessages},mixins:[u.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:e=>l.validationMessageValidator(e)},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:e=>Object.values(qe).includes(e)},appendTo:{type:[HTMLElement,String],default:"body",validator:e=>u.POPOVER_APPEND_TO_VALUES.includes(e)||e 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:Ue}},computed:{inputPlaceHolder(){var e;return((e=this.selectedItems)==null?void 0:e.length)>0?"":this.placeholder},chipListeners(){return{...this.$listeners,keyup:e=>{this.onChipKeyup(e),this.$emit("keyup",e)}}},inputListeners(){return{...this.$listeners,input:e=>{this.$emit("input",e),this.hasSuggestionList&&this.showComboboxList()},keyup:e=>{this.onInputKeyup(e),this.$emit("keyup",e)},click:e=>{this.hasSuggestionList&&this.showComboboxList()}}}},watch:{selectedItems:{async handler(){this.initSelectedItems()}},async label(){await this.$nextTick(),this.setChipsTopPosition()},async description(){await this.$nextTick(),this.setChipsTopPosition()},size:{async handler(){await this.$nextTick();const e=this.getInput();this.revertInputPadding(e),this.originalInputSize=e.getBoundingClientRect().height,this.setInputPadding(),this.setChipsTopPosition()}}},mounted(){this.resizeWindowObserver=new ResizeObserver(async()=>{this.setChipsTopPosition(),this.setInputPadding()}),this.resizeWindowObserver.observe(document.body),this.initSelectedItems()},beforeDestroy(){var e;(e=this.resizeWindowObserver)==null||e.unobserve(document.body)},methods:{async initSelectedItems(){await this.$nextTick(),this.setInputPadding(),this.setChipsTopPosition(),this.setInputMinWidth(),this.checkMaxSelected()},onChipRemove(e){var t;this.$emit("remove",e),(t=this.$refs.input)==null||t.focus()},onComboboxSelect(e){this.value="",this.$emit("select",e)},showComboboxList(){var e;this.showList==null&&((e=this.$refs.comboboxWithPopover)==null||e.showComboboxList())},closeComboboxList(){var e;this.showList==null&&((e=this.$refs.comboboxWithPopover)==null||e.closeComboboxList())},getChipButtons(){return this.$refs.chips&&this.$refs.chips.map(e=>e.$el.querySelector("button"))},getChips(){return this.$refs.chips&&this.$refs.chips.map(e=>e.$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 e;return(e=this.$refs.input)==null?void 0:e.$refs.input},onChipKeyup(e){var n;const t=(n=e.code)==null?void 0:n.toLowerCase();t==="arrowleft"?this.navigateBetweenChips(e.target,!0):t==="arrowright"&&(e.target.id===this.getLastChipButton().id?this.moveFromChipToInput():this.navigateBetweenChips(e.target,!1))},onInputKeyup(e){var n;const t=(n=e.code)==null?void 0:n.toLowerCase();this.selectedItems.length>0&&e.target.selectionStart===0&&(t==="backspace"||t==="arrowleft")&&this.moveFromInputToChip()},moveFromInputToChip(){var e;this.getLastChipButton().focus(),(e=this.$refs.input)==null||e.blur(),this.closeComboboxList()},moveFromChipToInput(){var e;this.getLastChipButton().blur(),(e=this.$refs.input)==null||e.focus(),this.showComboboxList()},navigateBetweenChips(e,t){var r;const n=this.getChipButtons().indexOf(e),a=t?n-1:n+1;a<0||a>=((r=this.$refs.chips)==null?void 0:r.length)||(this.getChipButtons()[n].blur(),this.getChipButtons()[a].focus(),this.closeComboboxList())},setChipsTopPosition(){const e=this.getInput();if(!e)return;const t=this.$refs.inputSlotWrapper,n=e.getBoundingClientRect().top-t.getBoundingClientRect().top,a=this.$refs.chipsWrapper;a.style.top=n-He[this.size]+"px"},setInputPadding(){const e=this.getLastChip(),t=this.getInput(),n=this.$refs.chipsWrapper;if(!t||(this.revertInputPadding(t),this.popoverOffset=[0,4],!e))return;const a=e.offsetLeft+this.getFullWidth(e);t.style.paddingLeft=a+"px";const r=n.getBoundingClientRect().height-4,i=e.offsetTop+2;r>this.originalInputSize&&(t.style.paddingTop=`${i}px`)},revertInputPadding(e){e.style.paddingLeft="",e.style.paddingTop="",e.style.paddingBottom=""},getFullWidth(e){const t=window.getComputedStyle(e);return e.offsetWidth+parseInt(t.marginLeft)+parseInt(t.marginRight)},setInputMinWidth(){const e=this.getFirstChip(),t=this.getInput();t&&(e?t.style.minWidth=this.getFullWidth(e)+4+"px":t.style.minWidth="")},checkMaxSelected(){this.maxSelected!==0&&(this.selectedItems.length>this.maxSelected?(this.showValidationMessages=!0,this.$emit("max-selected")):this.showValidationMessages=!1)}}};var jo=function(){var t=this,n=t._self._c;return n("dt-recipe-combobox-with-popover",{ref:"comboboxWithPopover",attrs:{label:t.label,"show-list":t.showList,"max-height":t.listMaxHeight,"popover-offset":t.popoverOffset,"has-suggestion-list":t.hasSuggestionList,"visually-hidden-close-label":t.visuallyHiddenCloseLabel,"visually-hidden-close":t.visuallyHiddenClose,"content-width":"anchor","append-to":t.appendTo,transition:t.transition},on:{select:t.onComboboxSelect},scopedSlots:t._u([{key:"input",fn:function({onInput:a}){return[n("span",{ref:"inputSlotWrapper",staticClass:"combobox__input-wrapper"},[n("span",{ref:"chipsWrapper",staticClass:"combobox__chip-wrapper"},t._l(t.selectedItems,function(r){return n("dt-chip",t._g({key:r,ref:"chips",refInFor:!0,staticClass:"combobox__chip",attrs:{"label-class":["d-chip__label"],"close-button-props":{ariaLabel:"close"},size:t.CHIP_SIZES[t.size]},on:{keyup:function(i){return!i.type.indexOf("key")&&t._k(i.keyCode,"backspace",void 0,i.key,void 0)?null:t.onChipRemove(r)},close:function(i){return t.onChipRemove(r)}}},t.chipListeners),[t._v(" "+t._s(r)+" ")])}),1),n("dt-input",t._g({ref:"input",staticClass:"combobox__input",attrs:{"aria-label":t.label,label:t.labelVisible?t.label:"",description:t.description,placeholder:t.inputPlaceHolder,"show-messages":t.showInputMessages,messages:t.inputMessages,size:t.size},on:{input:a},model:{value:t.value,callback:function(r){t.value=r},expression:"value"}},t.inputListeners)),n("dt-validation-messages",{attrs:{"validation-messages":t.maxSelectedMessage,"show-messages":t.showValidationMessages}})],1)]}},t.$slots.header?{key:"header",fn:function(){return[n("div",{ref:"header"},[t._t("header")],2)]},proxy:!0}:null,{key:"list",fn:function(){return[n("div",{ref:"list",on:{mousedown:function(a){a.preventDefault()}}},[t.loading?n("div",{staticClass:"combobox__list--loading"},[t._v(" "+t._s(t.loadingMessage)+" ")]):t._t("list")],2)]},proxy:!0},t.$slots.footer?{key:"footer",fn:function(){return[n("div",{ref:"footer"},[t._t("footer")],2)]},proxy:!0}:null],null,!0)})},Go=[],Qo=o.normalizeComponent(Ko,jo,Go,!1,null,"b2859861",null,null);const Zo=Qo.exports,Zt=["sm","md","lg","xl"],Xo={name:"DtRecipeCallbarButton",components:{DtButton:l.DtButton,DtTooltip:o.DtTooltip},inheritAttrs:!1,props:{id:{type:String,default(){return o.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:e=>e||(void 0).$slots.default},buttonClass:{type:[String,Array,Object],default:""},textClass:{type:[String,Array,Object],default:""},buttonWidthSize:{type:String,default:"xl",validator:e=>Zt.includes(e)},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{...this.$listeners,click:e=>this.$emit("click",e)}}}};var Jo=function(){var t=this,n=t._self._c;return n("dt-tooltip",{attrs:{id:t.id,offset:[0,8]},scopedSlots:t._u([{key:"anchor",fn:function(){return[n("span",{class:{"dt-recipe-callbar-button--disabled":t.disabled}},[n("dt-button",t._g(t._b({class:t.callbarButtonClass,attrs:{importance:t.buttonImportance,kind:"muted","icon-position":"top","aria-disabled":t.disabled,"aria-label":t.ariaLabel,"label-class":t.callbarButtonTextClass,width:t.buttonWidth},scopedSlots:t._u([{key:"icon",fn:function(){return[t._t("icon")]},proxy:!0}],null,!0)},"dt-button",t.$attrs,!1),t.callbarButtonListeners),[t._t("default")],2)],1)]},proxy:!0}],null,!0)},[t._t("tooltip")],2)},tl=[],el=o.normalizeComponent(Xo,Jo,tl,!1,null,null,null,null);const We=el.exports,nl={name:"DtRecipeCallbarButtonWithPopover",components:{DtRecipeCallbarButton:We,DtPopover:u.DtPopover,DtButton:l.DtButton,DtIcon:l.DtIcon},inheritAttrs:!1,props:{id:{type:String,default(){return o.utils.getUniqueString()}},ariaLabel:{type:String,default:null,validator:e=>e||(void 0).$slots.default},arrowButtonLabel:{type:String,required:!0,validator:e=>!!e},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},buttonClass:{type:[String,Array,Object],default:""},textClass:{type:[String,Array,Object],default:""},buttonWidthSize:{type:String,default:"xl",validator:e=>Zt.includes(e)},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(e){return this.$emit("arrow-click",e),this.toggleOpen()},toggleOpen(){return this.open=!this.open},syncOpenState(){this.open=this.openPopover},buttonClick(e){this.$listeners.click?this.$emit("click",e):this.arrowClick(e)},onModalIsOpened(e){this.open=e,this.$emit("opened",e)}}};var al=function(){var t=this,n=t._self._c;return n("div",{staticClass:"dt-recipe--callbar-button-with-popover"},[n("dt-recipe-callbar-button",{staticClass:"dt-recipe--callbar-button-with-popover--main-button",attrs:{"aria-label":t.ariaLabel,disabled:t.disabled,active:t.active,danger:t.danger,"button-class":t.buttonClass,"button-width-size":t.buttonWidthSize,"text-class":t.textClass},on:{click:t.buttonClick}},[t._t("icon",null,{slot:"icon"}),t._t("tooltip",null,{slot:"tooltip"}),t._t("default")],2),t.showArrowButton?n("dt-popover",t._b({staticClass:"dt-recipe--callbar-button-with-popover--popover-wrapper",attrs:{id:t.id,modal:!1,open:t.open,placement:t.placement,"initial-focus-element":t.initialFocusElement,"show-close-button":t.showCloseButton,offset:[0,16],padding:"none","dialog-class":["dt-recipe--callbar-button-with-popover--popover",t.contentClass],"header-class":"d-d-flex d-ai-center d-fw-normal d-px12","open-popover":t.showPopover},on:{opened:t.onModalIsOpened},scopedSlots:t._u([{key:"anchor",fn:function(){return[n("dt-button",{class:["dt-recipe--callbar-button-with-popover--arrow",{"dt-recipe--callbar-button-with-popover--arrow--large":!t.isCompactMode}],attrs:{circle:"",importance:"clear",size:"lg",width:"2rem","aria-label":t.arrowButtonLabel,active:t.open},on:{click:t.arrowClick},scopedSlots:t._u([{key:"icon",fn:function(){return[n("dt-icon",{staticClass:"dt-recipe--callbar-button-with-popover--arrow__icon",attrs:{name:"chevron-up",size:"200"}})]},proxy:!0}],null,!1,982444464)})]},proxy:!0}],null,!1,3818376870)},"dt-popover",t.$attrs,!1),[t._t("content",null,{slot:"content"}),t._t("headerContent",null,{slot:"headerContent"}),t._t("footerContent",null,{slot:"footerContent"})],2):t._e()],1)},rl=[],il=o.normalizeComponent(nl,al,rl,!1,null,null,null,null);const sl=il.exports,ol={name:"DtRecipeContactInfo",components:{DtAvatar:u.DtAvatar,DtListItem:u.DtListItem},props:{id:{type:String,default(){return o.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")}}};var ll=function(){var t=this,n=t._self._c;return n("dt-list-item",{staticClass:"dt-contact-info",attrs:{id:t.id,role:t.role,"element-type":"div","data-qa":"contact-info"},scopedSlots:t._u([{key:"left",fn:function(){return[t.showAvatar?n("button",{staticClass:"dt-contact-info__left",attrs:{"data-qa":"contact-info-left","aria-labelledby":t.avatarAriaLabel},on:{click:t.avatarClick}},[t.avatarList?n("span",{staticClass:"dt-contact-info--avatars"},t._l(t.avatarList,function(a,r){return n("dt-avatar",{key:r,attrs:{size:t.avatarSize,seed:a.seed,"full-name":a.fullName,"image-src":a.src,"icon-name":t.avatarIcon,"overlay-icon":a.icon,"overlay-text":a.text,"avatar-class":[{"d-mln24":r>0,"d-bc-brand":!!a.halo}]}})}),1):n("dt-avatar",{attrs:{size:t.avatarSize,"full-name":t.avatarFullName,"image-src":t.avatarSrc,"icon-name":t.avatarIcon,seed:t.avatarSeed,presence:t.presence}})],1):t._e()]},proxy:!0},{key:"default",fn:function(){return[n("div",{attrs:{"data-qa":"contact-info-header"}},[t._t("header")],2)]},proxy:!0},{key:"subtitle",fn:function(){return[n("div",{attrs:{"data-qa":"contact-info-subtitle"}},[t._t("subtitle")],2)]},proxy:!0},{key:"bottom",fn:function(){return[n("div",{attrs:{"data-qa":"contact-info-bottom"}},[t._t("bottom")],2)]},proxy:!0},{key:"right",fn:function(){return[n("div",{attrs:{"data-qa":"contact-info-right"}},[t._t("right")],2)]},proxy:!0}],null,!0)})},dl=[],cl=o.normalizeComponent(ol,ll,dl,!1,null,"20548ad1",null,null);const ul=cl.exports,ze=["green300","green100","red200","red100","gold100","gold200","black100","white"],fl={name:"DtRecipeTopBannerInfo",props:{colorCode:{type:String,default:"green300",validator:function(e){return ze.includes(e)}}},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]]}}};var pl=function(){var t=this,n=t._self._c;return n("div",{staticClass:"dt-top-banner-info",class:t.bannerInfoClass,attrs:{"data-qa":"banner-info"}},[n("div",{staticClass:"dt-top-banner-info__left"},[t._t("left")],2),n("div",{staticClass:"dt-top-banner-info__middle",attrs:{"data-qa":"banner-info--middle"}},[t._t("default")],2),n("div",{staticClass:"dt-top-banner-info__right"},[t._t("right")],2)])},hl=[],ml=o.normalizeComponent(fl,pl,hl,!1,null,null,null,null);const _l=ml.exports,ut="promptmenu",ft="promptcollect",pt="promptplay",ht="gotoexpert",Z="goto",mt="branch",_t="transfer",gt="hangup",Ye={[ut]:"keypad",[ft]:"dialer",[pt]:"volume-2",[ht]:"expert-node",[mt]:"branch",[Z]:"call-merge",[_t]:"transfer",[gt]:"phone-hang-up"},gl={[ut]:"Menu",[ft]:"Collect",[pt]:"Play",[ht]:"Expert",[mt]:"Branch",[Z]:"Go-to",[_t]:"Transfer",[gt]:"Hangup"},k={PROMPT:{normal:"d-bc-blue-200",selected:"d-bc-blue-300"},LOGIC:{normal:"d-bc-purple-200",selected:"d-bc-purple-400"},TERMINAL:{normal:"d-bc-red-100",selected:"d-bc-red-200"}},bl={[ut]:k.PROMPT,[ft]:k.PROMPT,[pt]:k.PROMPT,[ht]:k.LOGIC,[mt]:k.LOGIC,[Z]:k.LOGIC,[_t]:k.TERMINAL,[gt]:k.TERMINAL},vl={name:"DtRecipeIvrNode",components:{DtCard:fe,DtButton:l.DtButton,DtDropdown:be,DtIcon:l.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:{nodeIcon(){return Ye[this.nodeType]},headerColor(){const{normal:e,selected:t}=bl[this.nodeType];return this.isSelected?t:e},isGotoNode(){return this.nodeType===Z}},methods:{openMenu(){this.isOpen=!0}}};var yl=function(){var t=this,n=t._self._c;return n("div",t._g({staticClass:"ivr_node"},t.$listeners),[t.dtmfKey?n("div",{staticClass:"ivr-connector ivr-connector--dtmf",class:{"ivr-connector--dtmf--selected":t.isSelected},attrs:{"data-qa":"dt-top-connector-dtmf"}},[t._v(" "+t._s(t.dtmfKey)+" ")]):t._e(),t.$slots.connector?t._t("connector"):t._e(),!t.dtmfKey&&!t.$slots.connector?n("div",{staticClass:"ivr-connector",class:{"ivr-connector--selected":t.isSelected},attrs:{"data-qa":"dt-top-connector"}}):t._e(),n("dt-card",{attrs:{"content-class":"d-bt d-bc-black-300 d-px12 d-pt8 d-pb12","container-class":["d-w100p",{"d-ba d-bar8 d-baw4":t.isSelected},t.headerColor],"header-class":["d-mtn1","d-bt","d-btw4","d-p0",t.headerColor,{"d-btr4":!t.isSelected}]},scopedSlots:t._u([{key:"header",fn:function(){return[n("div",{staticClass:"ivr_node__header-left"},[n("dt-button",{attrs:{"aria-label":t.nodeType,importance:"clear",kind:"muted","data-qa":"dt-ivr-node-icon"},scopedSlots:t._u([{key:"icon",fn:function(){return[n("dt-icon",{class:["",{ivr_node__goto_icon:t.isGotoNode}],attrs:{name:t.nodeIcon,size:"200"}})]},proxy:!0}])}),n("p",{staticClass:"ivr_node__label",attrs:{"data-qa":"ivr-node-label"}},[t._v(" "+t._s(t.nodeLabel)+" ")])],1),n("dt-dropdown",{attrs:{placement:"bottom",open:t.isOpen},on:{"update:open":function(a){t.isOpen=a}},scopedSlots:t._u([{key:"anchor",fn:function(){return[n("dt-button",{attrs:{importance:"clear",kind:"muted","aria-label":t.menuButtonAriaLabel},on:{click:function(a){return a.stopPropagation(),a.preventDefault(),t.openMenu.apply(null,arguments)}},scopedSlots:t._u([{key:"icon",fn:function(){return[n("dt-icon",{attrs:{name:"more-vertical",size:"200"}})]},proxy:!0}])})]},proxy:!0},{key:"list",fn:function({close:a}){return[n("div",{staticClass:"ivr_node__dropdown-list"},[t._t("menuItems",null,{close:a})],2)]}}],null,!0)})]},proxy:!0},{key:"content",fn:function(){return[t._t("content")]},proxy:!0}],null,!0)})],2)},Sl=[],Cl=o.normalizeComponent(vl,yl,Sl,!1,null,null,null,null);const Il=Cl.exports,Dl={name:"DtRecipeGroupedChip",components:{DtChip:Yt},computed:{}};var Tl=function(){var t=this,n=t._self._c;return n("div",{staticClass:"dt-grouped-chip",attrs:{"data-qa":"grouped-chip"}},[n("dt-chip",{staticClass:"dt-chip-content dt-chip-content--left",attrs:{"hide-close":!0,interactive:!1,"content-class":"d-fs100",size:"xs","grouped-chip":!0},scopedSlots:t._u([t.$slots.leftIcon?{key:"icon",fn:function(){return[t.$slots.leftIcon?n("div",{attrs:{"data-qa":"left-grouped-chip-icon"}},[t._t("leftIcon")],2):t._e()]},proxy:!0}:null,{key:"default",fn:function(){return[t.$slots.leftContent?n("div",{attrs:{"data-qa":"left-grouped-chip-content"}},[t._t("leftContent")],2):t._e()]},proxy:!0}],null,!0)}),n("dt-chip",{staticClass:"dt-chip-content dt-chip-content--right",attrs:{"hide-close":!0,interactive:!1,"content-class":"d-fs100",size:"xs","grouped-chip":!0},scopedSlots:t._u([{key:"icon",fn:function(){return[t.$slots.rightIcon?n("div",{attrs:{"data-qa":"right-grouped-chip-icon"}},[t._t("rightIcon")],2):t._e()]},proxy:!0},{key:"default",fn:function(){return[t.$slots.rightContent?n("div",{attrs:{"data-qa":"right-grouped-chip-content"}},[t._t("rightContent")],2):t._e()]},proxy:!0}],null,!0)})],1)},wl=[],El=o.normalizeComponent(Dl,Tl,wl,!1,null,null,null,null);const Ol=El.exports,kl={name:"DtRecipeSettingsMenuButton",components:{DtButton:l.DtButton,DtIcon:l.DtIcon},props:{updateAvailable:{type:Boolean,default:!1},ariaLabel:{type:String,required:!0}},emits:["click"]};var Ll=function(){var t=this,n=t._self._c;return t.updateAvailable?n("dt-button",t._g({staticClass:"settings-menu-button-update",attrs:{importance:"outlined",size:"xs","icon-position":"right","aria-label":t.ariaLabel},scopedSlots:t._u([{key:"icon",fn:function(){return[n("dt-icon",{attrs:{name:"more-vertical",size:"300"}})]},proxy:!0}],null,!1,3418040308)},t.$listeners),[t._t("default")],2):n("dt-button",t._g({staticClass:"settings-menu-button",attrs:{importance:"clear",kind:"inverted","aria-label":t.ariaLabel},scopedSlots:t._u([{key:"icon",fn:function(){return[n("dt-icon",{attrs:{name:"more-vertical",size:"300"}})]},proxy:!0}])},t.$listeners))},xl=[],Al=o.normalizeComponent(kl,Ll,xl,!1,null,"4ee1371d",null,null);const $l=Al.exports,C={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"},Ke={[C.INBOX]:"inbox",[C.CONTACTS]:"contacts",[C.CHANNELS]:"hash",[C.THREADS]:"thread",[C.LOCKED_CHANNEL]:"lock",[C.QUICK_START]:"sparkle",[C.COACHING_GROUP]:"users",[C.COACHING_CENTER]:"external-link","locked channel unread":"lock-filled","channel unread":"hash-bold",[C.ASSIGNED]:"at-sign",[C.DIGITAL]:"laptop-2"},G={"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"},je="If type is contact center, color must be oneof the following:"+Object.keys(G).join(", "),Ge=["300","200"],Rl={name:"DtRecipeLeftbarGeneralRowIcon",components:{DtIcon:l.DtIcon},props:{type:{type:String,default:null},color:{type:String,default:null},iconSize:{type:String,default:"300"}},computed:{isIconType(){return![C.DIALBOT,C.CONTACT_CENTER].includes(this.type)},isContactCenterType(){return this.type===C.CONTACT_CENTER},isDialbotType(){return this.type===C.DIALBOT},getIconName(){return Ke[this.type]},contactCenterIconClasses(){return["dt-leftbar-row__icon-cc",G[this.color]]},dialbotClasses(){return["d-d-flex","d-ai-center","d-jc-center"]}}};var Ml=function(){var t=this,n=t._self._c;return t.isIconType?n("dt-icon",{attrs:{name:t.getIconName,size:t.iconSize}}):t.isContactCenterType?n("div",{class:t.contactCenterIconClasses}):t.isDialbotType?n("div",{class:t.dialbotClasses,attrs:{"data-qa":"general-row-dialbot"}},[n("dt-icon",{attrs:{name:"dialbot",size:"500"}})],1):t._e()},Nl=[],Pl=o.normalizeComponent(Rl,Ml,Nl,!1,null,null,null,null);const Bl=Pl.exports,Fl={name:"DtRecipeGeneralRow",components:{DtEmojiTextWrapper:Ut.DtEmojiTextWrapper,DtBadge:st,DtIcon:l.DtIcon,DtButton:l.DtButton,DtTooltip:o.DtTooltip,DtRecipeLeftbarGeneralRowIcon:Bl},inheritAttrs:!1,props:{type:{type:String,default:"inbox",validator:e=>Object.values(C).includes(e)},ariaLabel:{type:String,default:""},description:{type:String,required:!0},color:{type:String,default:null,validator:e=>Object.keys(G).includes(e)},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:e=>Ge.includes(e)}},emits:["click","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 C.CHANNELS:if(this.hasUnreads)return"channel unread";break;case C.LOCKED_CHANNEL:if(this.hasUnreads)return"locked channel unread";break}return this.type},getAriaLabel(){return this.ariaLabel?this.ariaLabel:o.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()},beforeDestroy:function(){this.resizeObserver.disconnect()},methods:{validateProps(){this.type===C.CONTACT_CENTER&&!Object.keys(G).includes(this.color)&&console.error(je)},adjustLabelWidth(){var r,i,s,d,f,p;const e=((i=(r=this.$el)==null?void 0:r.querySelector(".dt-leftbar-row__primary"))==null?void 0:i.clientWidth)||0,t=((d=(s=this.$el)==null?void 0:s.querySelector(".dt-leftbar-row__omega"))==null?void 0:d.clientWidth)||0,n=((p=(f=this.$el)==null?void 0:f.querySelector(".dt-leftbar-row__alpha"))==null?void 0:p.clientWidth)||0,a=16;this.labelWidth=e-(t+n+a)+"px"}}};var Vl=function(){var t=this,n=t._self._c;return n("div",{class:t.leftbarGeneralRowClasses,attrs:{"data-qa":"dt-leftbar-row"}},[n("a",t._g(t._b({staticClass:"dt-leftbar-row__primary",attrs:{"data-qa":"data-qa"in t.$attrs?t.$attrs["data-qa"]:"dt-leftbar-row-link","aria-label":t.getAriaLabel,title:t.description,href:"href"in t.$attrs?t.$attrs.href:"javascript:void(0)"}},"a",t.$attrs,!1),t.$listeners),[n("div",{staticClass:"dt-leftbar-row__alpha"},[t.isTyping?n("div",{staticClass:"dt-leftbar-row__is-typing"},[n("span"),n("span"),n("span")]):t._t("left",function(){return[n("dt-recipe-leftbar-general-row-icon",{attrs:{type:t.getIcon,color:t.color,"icon-size":t.iconSize,"data-qa":"dt-leftbar-row-icon"}})]})],2),n("div",{staticClass:"dt-leftbar-row__label",style:`flex-basis: ${t.labelWidth}`},[t._t("label",function(){return[n("dt-emoji-text-wrapper",{staticClass:"dt-leftbar-row__description",attrs:{"data-qa":"dt-leftbar-row-description",size:"200"}},[t._v(" "+t._s(t.description)+" ")])]})],2)]),t.hasActions?n("div",{staticClass:"dt-leftbar-row__omega"},[t.dndText?n("dt-tooltip",{attrs:{placement:"top",message:t.dndTextTooltip},scopedSlots:t._u([{key:"anchor",fn:function(){return[n("div",{ref:"dt-leftbar-row-dnd",staticClass:"dt-leftbar-row__dnd",attrs:{"data-qa":"dt-leftbar-row-dnd"}},[t._v(" "+t._s(t.dndText)+" ")])]},proxy:!0}],null,!1,490758222)}):t._e(),t.activeVoiceChat?n("div",{staticClass:"dt-leftbar-row__active-voice"},[n("dt-icon",{attrs:{size:"300",name:"waveform"}})],1):t.showUnreadCount?n("dt-tooltip",{attrs:{message:t.unreadCountTooltip,placement:"top"},scopedSlots:t._u([{key:"anchor",fn:function(){return[n("dt-badge",{staticClass:"dt-leftbar-row__unread-badge",attrs:{kind:"count",type:"bulletin","data-qa":"dt-leftbar-row-unread-badge"}},[t._v(" "+t._s(t.unreadCount)+" ")])]},proxy:!0}],null,!1,462525554)}):t._e(),t.hasCallButton?n("div",{staticClass:"dt-leftbar-row__action",attrs:{"data-qa":"dt-leftbar-row-action"}},[n("dt-tooltip",{attrs:{message:t.callButtonTooltip,placement:"top"},scopedSlots:t._u([{key:"anchor",fn:function(){return[n("dt-button",{staticClass:"dt-leftbar-row__action-button",attrs:{"data-qa":"dt-leftbar-row-action-call-button",circle:!0,size:"xs",kind:"inverted","aria-label":t.callButtonTooltip},on:{focus:function(a){t.actionFocused=!0},blur:function(a){t.actionFocused=!1},click:function(a){return a.stopPropagation(),t.$emit("call",a)}},scopedSlots:t._u([{key:"icon",fn:function(){return[n("dt-icon",{attrs:{name:"phone",size:"200"}})]},proxy:!0}],null,!1,990728611)})]},proxy:!0}],null,!1,4239858356)})],1):t._e()],1):t._e()])},ql=[],Ul=o.normalizeComponent(Fl,Vl,ql,!1,null,"8577d0d5",null,null);const Xt=Ul.exports,Hl={name:"DtRecipeGroupRow",components:{DtIcon:l.DtIcon,DtRecipeGeneralRow:Xt},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 o.safeConcatStrings([this.groupCountText,this.names])}}};var Wl=function(){var t=this,n=t._self._c;return n("dt-recipe-general-row",t._g(t._b({attrs:{description:t.names,"aria-label":t.ariaLabel,"unread-count":t.unreadCount,"has-unreads":t.hasUnreads,"unread-count-tooltip":t.unreadCountTooltip,selected:t.selected,"is-typing":t.isTyping},scopedSlots:t._u([{key:"left",fn:function(){return[n("dt-icon",{attrs:{name:"users",size:"300"}})]},proxy:!0}])},"dt-recipe-general-row",t.$attrs,!1),t.$listeners))},zl=[],Yl=o.normalizeComponent(Hl,Wl,zl,!1,null,null,null,null);const Kl=Yl.exports,jl={name:"DtRecipeContactRow",components:{DtAvatar:u.DtAvatar,DtRecipeGeneralRow:Xt,DtEmojiTextWrapper:Ut.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:["click","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}},contactDescription(){return o.safeConcatStrings([this.name,this.presenceText,this.userStatus])},iconName(){return this.noInitials?"user":null}}};var Gl=function(){var t=this,n=t._self._c;return n("dt-recipe-general-row",t._g(t._b({attrs:{"unread-count":t.unreadCount,description:t.contactDescription,"has-unreads":t.hasUnreads,selected:t.selected,"has-call-button":t.hasCallButton,muted:t.muted,"is-typing":t.isTyping,"call-button-tooltip":t.callButtonTooltip,"unread-count-tooltip":t.unreadCountTooltip},scopedSlots:t._u([{key:"left",fn:function(){return[n("dt-avatar",{attrs:{"full-name":t.name,"image-src":t.avatarSrc,"image-alt":t.avatarAlt,"icon-name":t.iconName,"icon-size":"200",size:"sm",seed:t.avatarSeed,presence:t.avatarPresence}})]},proxy:!0},{key:"label",fn:function(){return[n("dt-emoji-text-wrapper",{staticClass:"dt-leftbar-row__description",attrs:{"data-qa":"dt-leftbar-row-description",size:"200"}},[t._v(" "+t._s(t.name)+" ")]),n("div",{staticClass:"dt-leftbar-row__status"},[t.presenceText?n("span",{class:["dt-leftbar-row__meta-context",t.presenceColorClass],attrs:{"data-qa":"dt-leftbar-row-presence-text"}},[t._v(" "+t._s(t.presenceText)+" ")]):t._e(),t.userStatus?n("dt-emoji-text-wrapper",{staticClass:"dt-leftbar-row__meta-custom",attrs:{size:"100","element-type":"span","data-qa":"dt-leftbar-row-user-status"}},[t._v(" "+t._s(t.userStatus)+" ")]):t._e()],1)]},proxy:!0}])},"dt-recipe-general-row",t.$attrs,!1),t.$listeners))},Ql=[],Zl=o.normalizeComponent(jl,Gl,Ql,!1,null,null,null,null);const Xl=Zl.exports,Qe=["up","down"],Ze=["mentions","messages"],Jl={name:"DtRecipeUnreadPill",components:{DtIcon:l.DtIcon},props:{kind:{type:String,required:!0,validator:e=>Ze.includes(e)},direction:{type:String,required:!0,validator:e=>Qe.includes(e)}},emits:["click"]};var td=function(){var t=this,n=t._self._c;return n("button",t._g({class:["dt-leftbar-unread-pill",`dt-leftbar-unread-pill--${t.kind}`],attrs:{type:"button","data-qa":"dt-leftbar-unread-pill"}},t.$listeners),[n("dt-icon",{attrs:{name:`arrow-${t.direction}`,size:"300"}}),n("span",{attrs:{"data-qa":"dt-leftbar-unread-pill__label"}},[t._t("default")],2)],1)},ed=[],nd=o.normalizeComponent(Jl,td,ed,!1,null,null,null,null);const ad=nd.exports,Bt={NORMAL:"",SEARCHED:"dt-feed-item-row--state-searched",ERROR:"dt-feed-item-row--state-error"},K="NORMAL",rd={name:"DtRecipeFeedItemRow",components:{DtAvatar:u.DtAvatar,DtLazyShow:o.DtLazyShow,DtListItem:u.DtListItem,DtBadge:st},mixins:[u.Modal],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:""},labelText:{type:String,default:""},isActive:{type:Boolean,default:!1},state:{type:String,default:K,validator:e=>Object.keys(Bt).includes(e)}},emits:["hover","focus","keydown"],data(){return{transitionActive:!1}},computed:{feedListeners(){return{...this.$listeners,mouseenter:()=>this.setHover(!0),mouseleave:()=>this.setHover(!1),focusin:()=>this.setFocus(!0),focusout:()=>this.setFocus(!1),transitionend:()=>this.transitionComplete(),keydown:e=>{switch(e.code){case"Tab":this.trapFocus(e);break}this.$emit("keydown",e)}}},listItemClasses(){return["dt-feed-item-row",{"dt-feed-item-row--active":this.isActive&&this.state===K},{"dt-feed-item-row--state-transition":this.transitionActive},Bt[this.state]]}},watch:{state:{immediate:!0,handler:function(e,t){e!==K&&(this.transitionActive=!0)}}},methods:{transitionComplete(){this.state===K&&(this.transitionActive=!1)},trapFocus(e){this.focusTrappedTabPress(e)},setFocus(e){this.$emit("focus",e)},setHover(e){this.$emit("hover",e)}}};var id=function(){var t=this,n=t._self._c;return n("dt-list-item",t._g(t._b({ref:"FeedItemRef",class:["dt-feed-item-row",t.listItemClasses],attrs:{"navigation-type":"none","data-qa":"dt-feed-item-row"},scopedSlots:t._u([{key:"left",fn:function(){return[t.showHeader?n("div",{staticClass:"dt-feed-item-row__avatar-container"},[t._t("avatar",function(){return[n("dt-avatar",{attrs:{"full-name":t.displayName,"image-src":t.avatarImageUrl,seed:t.avatarSeed}})]})],2):t._e(),t.showHeader?t._e():n("span",{directives:[{name:"show",rawName:"v-show",value:t.isActive,expression:"isActive"}],staticClass:"dt-feed-item-row__left-time",attrs:{"data-qa":"dt-feed-item-row--left-time"}},[t._v(" "+t._s(t.shortTime)+" ")])]},proxy:!0},{key:"bottom",fn:function(){return[t.$slots.reactions?n("div",{staticClass:"dt-feed-item-row__reactions",attrs:{"data-qa":"dt-feed-item-row--reactions"}},[t._t("reactions")],2):t._e(),t.$slots.threading?n("div",{staticClass:"dt-feed-item-row__threading"},[t._t("threading")],2):t._e()]},proxy:!0},{key:"right",fn:function(){return[n("div",{directives:[{name:"show",rawName:"v-show",value:t.isActive,expression:"isActive"}],staticClass:"dt-feed-item-row__menu",attrs:{"data-qa":"dt-feed-item-row--menu"}},[n("dt-lazy-show",{attrs:{appear:!0,transition:"fade",show:t.isActive}},[t._t("menu")],2)],1)]},proxy:!0}],null,!0)},"dt-list-item",t.$attrs,!1),t.feedListeners),[n("article",{staticClass:"dt-feed-item-row__content"},[t.showHeader?n("div",{staticClass:"dt-feed-item-row__header",attrs:{"data-qa":"dt-feed-item-row--header"}},[n("p",{staticClass:"dt-feed-item-row__header__name"},[t._v(" "+t._s(t.displayName)+" ")]),n("time",{staticClass:"dt-feed-item-row__header__time"},[t._v(" "+t._s(t.time)+" ")]),t.labelText?n("dt-badge",{attrs:{text:t.labelText}}):t._e()],1):t._e(),n("span",{attrs:{"data-qa":"dt-feed-item-row--content"}},[t._t("default")],2)])])},sd=[],od=o.normalizeComponent(rd,id,sd,!1,null,"116b78da",null,null);const ld=od.exports,Ft={default:"dt-recipe-feed-item-pill__border-default",ai:"dt-recipe-feed-item-pill__border-ai",critical:"dt-recipe-feed-item-pill__border-critical"},dd={name:"DtRecipeFeedItemPill",components:{DtItemLayout:u.DtItemLayout,DtIcon:l.DtIcon,DtCollapsible:_e},props:{iconName:{type:String,default:()=>""},title:{type:String,default:()=>""},wrapperClass:{type:[String,Array,Object],default:""},buttonClass:{type:[String,Array,Object],default:""},ariaLabel:{type:String,required:!0},toggleable:{type:Boolean,default:()=>!0},defaultToggled:{type:Boolean,default:()=>!1},borderColor:{type:String,default:"default",validator:e=>Object.keys(Ft).includes(e)}},data(){return{hover:!1,expanded:this.defaultToggled}},computed:{computedIcon(){return this.toggleable&&this.hover?this.expanded?"chevron-down":"chevron-right":this.iconName},toggleableClass(){return this.toggleable?"d-c-pointer":""},borderClass(){return Ft[this.borderColor]}},methods:{onClick(){this.toggleable&&(this.expanded=!this.expanded)}}};var cd=function(){var t=this,n=t._self._c;return n("div",{class:["dt-recipe-feed-item-pill__border",t.borderClass,t.wrapperClass]},[n("div",{staticClass:"dt-recipe-feed-item-pill__wrapper"},[n("dt-collapsible",{attrs:{open:t.expanded},scopedSlots:t._u([{key:"anchor",fn:function(){return[n("button",{class:["dt-recipe-feed-item-pill__button",t.toggleableClass,t.buttonClass],attrs:{"data-qa":"dt-recipe-feed-item-pill","aria-label":t.ariaLabel},on:{focusin:function(a){t.hover=!0},focusout:function(a){t.hover=!1},mouseenter:function(a){t.hover=!0},mouseleave:function(a){t.hover=!1},click:t.onClick}},[n("dt-item-layout",{staticClass:"dt-recipe-feed-item-pill__layout",scopedSlots:t._u([{key:"left",fn:function(){return[n("dt-icon",{staticClass:"dt-recipe-feed-item-pill__icon",attrs:{"data-qa":"dt-recipe-feed-item-pill__icon",size:"300",name:t.computedIcon}})]},proxy:!0},{key:"subtitle",fn:function(){return[t._t("subtitle")]},proxy:!0},{key:"bottom",fn:function(){return[t._t("bottom")]},proxy:!0},{key:"right",fn:function(){return[t._t("right")]},proxy:!0}],null,!0)},[t._t("title",function(){return[n("span",{staticClass:"dt-recipe-feed-item-pill__title"},[t._v(t._s(t.title))])]})],2)],1)]},proxy:!0},{key:"content",fn:function(){return[n("div",{staticClass:"dt-recipe-feed-item-pill__content"},[t._t("content")],2)]},proxy:!0}],null,!0)})],1)])},ud=[],fd=o.normalizeComponent(dd,cd,ud,!1,null,"ebc5dd1f",null,null);const pd=fd.exports,hd={name:"DtRecipeTimePill",props:{dateTimeDisplay:{type:String,required:!0},dateTime:{type:String,required:!0,validator:e=>{const t=new Date(e);return t instanceof Date&&!isNaN(t)}}}};var md=function(){var t=this,n=t._self._c;return n("time",{staticClass:"dt-time-pill",attrs:{"data-qa":"dt-time-pill",dateTime:t.dateTime}},[t._v(" "+t._s(t.dateTimeDisplay)+" ")])},_d=[],gd=o.normalizeComponent(hd,md,_d,!1,null,null,null,null);const bd=gd.exports,Xe=["emojiUnicodeOrShortname","isSelected","ariaLabel","tooltip","num"],vd={name:"DtRecipeEmojiRow",components:{DtTooltip:o.DtTooltip,DtButton:l.DtButton,DtEmoji:l.DtEmoji,DtEmojiTextWrapper:Ut.DtEmojiTextWrapper},mixins:[],props:{reactions:{type:Array,default:()=>[],validator:e=>{for(const t of e)if(!Xe.every(a=>t[a]!==void 0))return!1;return!0}}},emits:["emoji-clicked","emoji-hovered"],methods:{emojiClicked(e){this.$emit("emoji-clicked",e.emojiUnicodeOrShortname)},emojiHovered(e,t){this.$emit("emoji-hovered",{reaction:e.emojiUnicodeOrShortname,state:t})}}};var yd=function(){var t=this,n=t._self._c;return n("span",{staticClass:"dt-emoji-row"},[t._l(t.reactions,function(a){return n("span",{key:a.unicodeOutput,attrs:{reaction:a}},[n("dt-tooltip",{staticClass:"dt-emoji-row__tooltip",attrs:{"content-class":"d-wmx464"},on:{shown:r=>t.emojiHovered(a,r)},scopedSlots:t._u([{key:"anchor",fn:function({attrs:r}){return[n("dt-button",{class:["dt-emoji-row__reaction",a.isSelected?"dt-emoji-row__reaction--selected":""],attrs:{importance:"clear",size:"sm","data-qa":"feed-item-reaction-button","aria-label":a.ariaLabel,attrs:r},on:{click:function(i){return t.emojiClicked(a)}}},[n("span",{staticClass:"dt-emoji-row__emoji"},[n("dt-emoji",{attrs:{size:"200",code:a.emojiUnicodeOrShortname}})],1),n("span",{staticClass:"dt-emoji-row__reaction-number"},[t._v(" "+t._s(a.num)+" ")])])]}}],null,!0)},[n("span",{attrs:{"aria-hidden":"true"}},[n("dt-emoji-text-wrapper",{attrs:{size:"200"}},[t._v(" "+t._s(a.tooltip)+" ")])],1)])],1)}),t._t("picker")],2)},Sd=[],Cd=o.normalizeComponent(vd,yd,Sd,!1,null,null,null,null);const Id=Cd.exports,Dd={name:"DtProgressBar",props:{progressbarAriaLabel:{type:String,required:!0},progress:{type:Number,default:20}},data:()=>({circleCircumference:50}),computed:{cssVars(){return{"--stroke-dashoffset":this.circleCircumference-this.circleCircumference*this.progress/100,"--stroke-dasharray":this.circleCircumference}}},mounted(){this.circleCircumference=this.$refs.progressbarCircle.getTotalLength()}};var Td=function(){var t=this,n=t._self._c;return n("div",{attrs:{role:"progressbar","aria-label":t.progressbarAriaLabel,tabindex:"-1","aria-valuenow":t.progress,"aria-valuemin":"0","aria-valuemax":"100"}},[n("svg",{staticClass:"progress-bar",style:t.cssVars},[n("circle",{ref:"progressbarCircle",staticClass:"progress-bar__circle",attrs:{r:"8",cx:"12",cy:"12"}}),n("circle",{staticClass:"progress-bar__circle",attrs:{r:"8",cx:"12",cy:"12"}})])])},wd=[],Ed=o.normalizeComponent(Dd,Td,wd,!1,null,null,null,null);const Od=Ed.exports,kd={name:"DtImageCarousel",components:{DtImageViewer:ve,DtButton:l.DtButton,DtIcon:l.DtIcon,DtProgressBar:Od},props:{mediaItem:{type:Object,required:!0},index:{type:Number,required:!0},closeAriaLabel:{type:String,required:!0},clickToOpenAriaLabel:{type:String,required:!0},progressbarAriaLabel:{type:String,required:!0}},emits:["remove-media"],methods:{removeMediaItem(e){this.$emit("remove-media",e)}}};var Ld=function(){var t=this,n=t._self._c;return n("li",{staticClass:"dt-attachment-image"},[n("dt-image-viewer",{attrs:{"image-button-class":"dt-attachment-image__image-viewer","image-src":t.mediaItem.path,"image-alt":t.mediaItem.altText,"close-aria-label":t.closeAriaLabel,"aria-label":t.clickToOpenAriaLabel}}),n("div",{staticClass:"dt-attachment-image__top-right"},[t.mediaItem.isUploading?n("dt-progress-bar",{staticClass:"dt-attachment-image__progress-bar",attrs:{progress:t.mediaItem.progress,"progressbar-aria-label":t.progressbarAriaLabel}}):t._e(),n("dt-button",{staticClass:"dt-attachment-image__close-button",attrs:{id:`closeButton-${t.index}`,tabindex:"0",circle:"",size:"xs",importance:"clear","aria-label":t.closeAriaLabel},on:{click:function(a){return t.removeMediaItem(t.index)}},scopedSlots:t._u([{key:"icon",fn:function(){return[n("dt-icon",{attrs:{name:"close",size:"200"}})]},proxy:!0}])})],1)],1)},xd=[],Ad=o.normalizeComponent(kd,Ld,xd,!1,null,null,null,null);const $d=Ad.exports,Rd=64,Md={name:"DtRecipeAttachmentCarousel",components:{DtButton:l.DtButton,DtIcon:l.DtIcon,DtImageCarousel:$d},mixins:[],props:{mediaList:{type:Array,default:()=>[]},closeAriaLabel:{type:String,required:!0},clickToOpenAriaLabel:{type:String,required:!0},progressbarAriaLabel:{type:String,required:!0},leftArrowAriaLabel:{type:String,required:!0},rightArrowAriaLabel:{type:String,required:!0}},emits:["remove-media"],data(){return{showCloseButton:{},showRightArrow:!0,showLeftArrow:!1,isMounted:!1}},computed:{filteredMediaList(){return this.mediaList.filter(e=>e.type==="image"||e.type==="video")}},mounted:function(){this.showLeftArrow=this.$refs.carousel.scrollLeft>0,this.showRightArrow=this.$refs.carousel.scrollWidth>this.$refs.carousel.clientWidth},methods:{onItemFocus(e){e.currentTarget.scrollIntoView({behavior:"smooth"})},mediaComponent(e){switch(e){case"image":return"dt-image-carousel";default:return null}},removeMediaItem(e){this.showRightArrow=this.$refs.carousel.scrollWidth>this.$refs.carousel.clientWidth+Rd,this.$emit("remove-media",e)},closeButton(e,t){this.showCloseButton[t]=e},handleScroll(){const e=this.$refs.carousel;this.showLeftArrow=e.scrollLeft>0,this.showRightArrow=e.scrollLeft+e.clientWidth!==e.scrollWidth},leftScroll(){this.$refs.carousel.scrollTo({left:this.$refs.carousel.scrollLeft-100,behavior:"smooth"})},rightScroll(){this.$refs.carousel.scrollTo({left:this.$refs.carousel.scrollLeft+100,behavior:"smooth"})}}};var Nd=function(){var t=this,n=t._self._c;return n("div",{staticClass:"dt-attachment-carousel",attrs:{role:"presentation"}},[t.mediaList.length>0?n("ul",{ref:"carousel",staticClass:"dt-attachment-carousel__media-list",on:{scroll:t.handleScroll}},t._l(t.filteredMediaList,function(a,r){return n(t.mediaComponent(a.type),{key:`media-${r}`,tag:"component",attrs:{index:r,"media-item":a,"close-aria-label":t.closeAriaLabel,"click-to-open-aria-label":t.clickToOpenAriaLabel,"progressbar-aria-label":t.progressbarAriaLabel},on:{"remove-media":function(i){return t.removeMediaItem(r)},focusin:t.onItemFocus}})}),1):t._e(),n("dt-button",{directives:[{name:"show",rawName:"v-show",value:t.showLeftArrow,expression:"showLeftArrow"}],staticClass:"dt-attachment-carousel__arrow dt-attachment-carousel__arrow--left",attrs:{tabindex:"-1","aria-label":t.leftArrowAriaLabel,circle:"",size:"xs",importance:"clear"},on:{click:t.leftScroll},scopedSlots:t._u([{key:"icon",fn:function(){return[n("dt-icon",{attrs:{name:"arrow-left",size:"100"}})]},proxy:!0}])}),n("dt-button",{directives:[{name:"show",rawName:"v-show",value:t.showRightArrow,expression:"showRightArrow"}],staticClass:"dt-attachment-carousel__arrow dt-attachment-carousel__arrow--right",attrs:{tabindex:"-1","aria-label":t.rightArrowAriaLabel,circle:"",size:"xs",importance:"clear"},on:{click:t.rightScroll},scopedSlots:t._u([{key:"icon",fn:function(){return[n("dt-icon",{attrs:{name:"arrow-right",size:"100"}})]},proxy:!0}])})],1)},Pd=[],Bd=o.normalizeComponent(Md,Nd,Pd,!1,null,null,null,null);const Fd=Bd.exports,Vd=[/^https?:\/\//,/^http?:\/\//,/^ftp?:\/\//,/^ftps?:\/\//,/^ftps?:\/\//,/mailto:([^?]*)/],qd="https://",Ud={name:"DtRecipeEditor",components:{DtRichTextEditor:u.DtRichTextEditor,DtButton:l.DtButton,DtIcon:l.DtIcon,DtPopover:u.DtPopover,DtStack:u.DtStack,DtInput:l.DtInput,DtTooltip:o.DtTooltip},inheritAttrs:!1,props:{value:{type:[Object,String],default:""},editable:{type:Boolean,default:!0},inputAriaLabel:{type:String,required:!0,default:""},inputClass:{type:String,default:""},autoFocus:{type:[Boolean,String,Number],default:!1,validator(e){return typeof e=="string"?u.RICH_TEXT_EDITOR_AUTOFOCUS_TYPES.includes(e):!0}},placeholder:{type:String,default:""},maxHeight:{type:String,default:"unset"},confirmSetLinkButton:{type:Object,default:()=>({label:"Confirm",ariaLabel:"Confirm set link"})},removeLinkButton:{type:Object,default:()=>({label:"Remove",ariaLabel:"Remove link"})},cancelSetLinkButton:{type:Object,default:()=>({label:"Cancel",ariaLabel:"Cancel set link"})},setLinkPlaceholder:{type:String,default:""},showBoldButton:{type:Boolean,default:!0},showItalicsButton:{type:Boolean,default:!0},showUnderlineButton:{type:Boolean,default:!0},showStrikeButton:{type:Boolean,default:!0},showListItemsButton:{type:Boolean,default:!0},showOrderedListButton:{type:Boolean,default:!0},showAlignLeftButton:{type:Boolean,default:!0},showAlignCenterButton:{type:Boolean,default:!0},showAlignRightButton:{type:Boolean,default:!0},showAlignJustifyButton:{type:Boolean,default:!0},showQuoteButton:{type:Boolean,default:!0},showCodeBlockButton:{type:Boolean,default:!0},showAddLink:{type:Object,default:()=>({showAddLinkButton:!0,setLinkTitle:"Add a link",setLinkInputAriaLabel:"Input field to add link"})}},emits:["focus","blur","input"],data(){return{internalInputValue:this.value,hasFocus:!1,linkOptions:{class:"d-link d-c-text d-d-inline-block"},showLinkInput:!1,linkInput:""}},computed:{inputLength(){return this.internalInputValue.length},htmlOutputFormat(){return u.RICH_TEXT_EDITOR_OUTPUT_FORMATS[2]},showingTextFormatButtons(){return this.showBoldButton||this.showItalicsButton||this.showStrikeButton||this.showUnderlineButton},showingAlignmentButtons(){return this.showAlignLeftButton||this.showAlignCenterButton||this.showAlignRightButton||this.showAlignJustifyButton},showingListButtons(){return this.showListItemsButton||this.showOrderedListButton},buttonGroups(){const e=this.individualButtons.map(t=>({key:t.selector,buttonGroup:[t]}));return[{key:"format",buttonGroup:this.textFormatButtons},{key:"alignment",buttonGroup:this.alignmentButtons},{key:"list",buttonGroup:this.listButtons},...e].filter(t=>t.buttonGroup.length>0)},textFormatButtons(){return[{showBtn:this.showBoldButton,selector:"bold",iconName:"bold",dataQA:"dt-editor-bold-btn",tooltipMessage:"Bold",onClick:this.onBoldTextToggle},{showBtn:this.showItalicsButton,selector:"italic",iconName:"italic",dataQA:"dt-editor-italics-btn",tooltipMessage:"Italics",onClick:this.onItalicTextToggle},{showBtn:this.showUnderlineButton,selector:"underline",iconName:"underline",dataQA:"dt-editor-underline-btn",tooltipMessage:"Underline",onClick:this.onUnderlineTextToggle},{showBtn:this.showStrikeButton,selector:"strike",iconName:"strikethrough",dataQA:"dt-editor-strike-btn",tooltipMessage:"Strike",onClick:this.onStrikethroughTextToggle}].filter(e=>e.showBtn)},alignmentButtons(){return[{showBtn:this.showAlignLeftButton,selector:{textAlign:"left"},iconName:"align-left",dataQA:"dt-editor-align-left-btn",tooltipMessage:"Align Left",onClick:()=>this.onTextAlign("left")},{showBtn:this.showAlignCenterButton,selector:{textAlign:"center"},iconName:"align-center",dataQA:"dt-editor-align-center-btn",tooltipMessage:"Align Center",onClick:()=>this.onTextAlign("center")},{showBtn:this.showAlignRightButton,selector:{textAlign:"right"},iconName:"align-right",dataQA:"dt-editor-align-right-btn",tooltipMessage:"Align Right",onClick:()=>this.onTextAlign("right")},{showBtn:this.showAlignJustifyButton,selector:{textAlign:"justify"},iconName:"align-justify",dataQA:"dt-editor-align-justify-btn",tooltipMessage:"Align Justify",onClick:()=>this.onTextAlign("justify")}].filter(e=>e.showBtn)},listButtons(){return[{showBtn:this.showListItemsButton,selector:"bulletList",iconName:"list-bullet",dataQA:"dt-editor-list-items-btn",tooltipMessage:"Bullet List",onClick:this.onBulletListToggle},{showBtn:this.showOrderedListButton,selector:"orderedList",iconName:"list-ordered",dataQA:"dt-editor-ordered-list-items-btn",tooltipMessage:"Ordered List",onClick:this.onOrderedListToggle}].filter(e=>e.showBtn)},individualButtons(){return[{showBtn:this.showQuoteButton,selector:"blockquote",iconName:"quote",dataQA:"dt-editor-blockquote-btn",tooltipMessage:"Quote",onClick:this.onBlockquoteToggle},{showBtn:this.showCodeBlockButton,selector:"codeBlock",iconName:"code-block",dataQA:"dt-editor-code-block-btn",tooltipMessage:"Code",onClick:this.onCodeBlockToggle}].filter(e=>e.showBtn)},linkButton(){return{showBtn:this.showAddLink.showAddLinkButton,selector:"link",iconName:"link-2",dataQA:"dt-editor-add-link-btn",tooltipMessage:"Link",onClick:this.openLinkInput}}},watch:{value(e){this.internalInputValue=e}},methods:{onInputFocus(e){e==null||e.stopPropagation()},removeLink(){var e,t,n,a,r;(r=(a=(n=(t=(e=this.$refs.richTextEditor)==null?void 0:e.editor)==null?void 0:t.chain())==null?void 0:n.focus())==null?void 0:a.unsetLink())==null||r.run(),this.closeLinkInput()},setLink(e){var r,i,s;const t=(r=this.$refs.richTextEditor)==null?void 0:r.editor;if(e==null||e.preventDefault(),e==null||e.stopPropagation(),!this.linkInput){this.removeLink();return}Vd.find(d=>d.test(this.linkInput))||(this.linkInput=`${qd}${this.linkInput}`);const a=(s=(i=t==null?void 0:t.view)==null?void 0:i.state)==null?void 0:s.selection;a.anchor===a.head?t.chain().focus().insertContentAt(a.anchor,`<a class="${this.linkOptions.class}" href=${this.linkInput}>${this.linkInput}</a>`).run():t.chain().focus().extendMarkRange("link").setLink({href:this.linkInput,class:this.linkOptions.class}).run(),this.closeLinkInput()},openLinkInput(){this.showLinkInput=!0},updateInput(e){var t,n,a;if(!e)return this.closeLinkInput();this.linkInput=(a=(n=(t=this.$refs.richTextEditor)==null?void 0:t.editor)==null?void 0:n.getAttributes("link"))==null?void 0:a.href},closeLinkInput(){var e;this.showLinkInput=!1,this.linkInput="",(e=this.$refs.richTextEditor.editor)==null||e.chain().focus()},onBoldTextToggle(){var e,t;(t=(e=this.$refs.richTextEditor)==null?void 0:e.editor)==null||t.chain().focus().toggleBold().run()},onItalicTextToggle(){var e;(e=this.$refs.richTextEditor)==null||e.editor.chain().focus().toggleItalic().run()},onUnderlineTextToggle(){var e;(e=this.$refs.richTextEditor)==null||e.editor.chain().focus().toggleUnderline().run()},onStrikethroughTextToggle(){var e;(e=this.$refs.richTextEditor)==null||e.editor.chain().focus().toggleStrike().run()},onTextAlign(e){var t,n,a,r;if((n=(t=this.$refs.richTextEditor)==null?void 0:t.editor)!=null&&n.isActive({textAlign:e}))return(a=this.$refs.richTextEditor)==null?void 0:a.editor.chain().focus().unsetTextAlign().run();(r=this.$refs.richTextEditor)==null||r.editor.chain().focus().setTextAlign(e).run()},onBulletListToggle(){var e;(e=this.$refs.richTextEditor)==null||e.editor.chain().focus().toggleBulletList().run()},onOrderedListToggle(){var e;(e=this.$refs.richTextEditor)==null||e.editor.chain().focus().toggleOrderedList().run()},onCodeBlockToggle(){var e;(e=this.$refs.richTextEditor)==null||e.editor.chain().focus().toggleCodeBlock().run()},onBlockquoteToggle(){var e;(e=this.$refs.richTextEditor)==null||e.editor.chain().focus().toggleBlockquote().run()},onFocus(e){this.hasFocus=!0,this.$emit("focus",e)},onBlur(e){this.hasFocus=!1,this.$emit("blur",e)},onInput(e){this.$emit("input",e)}}};var Hd=function(){var t=this,n=t._self._c;return n("div",{staticClass:"d-d-flex d-fd-column",attrs:{"data-qa":"dt-editor",role:"presentation"},on:{click:function(a){return t.$refs.richTextEditor.focusEditor()}}},[n("dt-stack",{staticClass:"d-p8 dt-editor--top-bar-background",attrs:{direction:"row",gap:"450"}},[t._l(t.buttonGroups,function(a){return n("dt-stack",{key:a.key,attrs:{direction:"row",gap:"300"}},[t._l(a.buttonGroup,function(r){return n("dt-tooltip",{key:`${a.key}-${JSON.stringify(r.selector)}`,attrs:{message:r.tooltipMessage,placement:"top"},scopedSlots:t._u([{key:"anchor",fn:function(){var i,s;return[n("dt-button",{attrs:{"data-qa":r.dataQA,importance:"clear",kind:"muted",active:(s=(i=t.$refs.richTextEditor)==null?void 0:i.editor)==null?void 0:s.isActive(r.selector),size:"xs"},on:{click:function(d){return r.onClick()}},scopedSlots:t._u([{key:"icon",fn:function(){return[n("dt-icon",{staticClass:"d-fw-bold",attrs:{name:r.iconName,size:"200"}})]},proxy:!0}],null,!0)})]},proxy:!0}],null,!0)})}),n("div",{staticClass:"dt-editor--button-group-divider"})],2)}),t.linkButton.showBtn?n("dt-stack",{attrs:{direction:"row",gap:"300"}},[n("dt-popover",{attrs:{open:t.showLinkInput,placement:"bottom-start","visually-hidden-close":!0,"visually-hidden-close-label":"Close link input popover","data-qa":"dt-editor-link-input-popover","show-close-button":!1},on:{"update:open":function(a){t.showLinkInput=a},click:t.onInputFocus,opened:t.updateInput},nativeOn:{click:function(a){return a.stopPropagation(),t.onInputFocus.apply(null,arguments)}},scopedSlots:t._u([{key:"anchor",fn:function(){return[n("dt-tooltip",{key:t.linkButton.key,attrs:{message:t.linkButton.tooltipMessage,placement:"top"},scopedSlots:t._u([{key:"anchor",fn:function(){var a,r;return[n("dt-button",{staticClass:"d-ol-none",attrs:{"data-qa":t.linkButton.dataQA,importance:"clear",kind:"muted",active:(r=(a=t.$refs.richTextEditor)==null?void 0:a.editor)==null?void 0:r.isActive(t.linkButton.selector),size:"xs"},on:{click:function(i){return t.linkButton.onClick()}},scopedSlots:t._u([{key:"icon",fn:function(){return[n("dt-icon",{staticClass:"d-fw-bold",attrs:{name:t.linkButton.iconName,size:"200"}})]},proxy:!0}],null,!1,540616731)})]},proxy:!0}],null,!1,293212236)})]},proxy:!0},{key:"content",fn:function(){return[t.showAddLink.setLinkTitle.length>0?n("span",[t._v(" "+t._s(t.showAddLink.setLinkTitle)+" ")]):t._e(),n("dt-input",{attrs:{"input-aria-label":t.showAddLink.setLinkInputAriaLabel,"data-qa":"dt-editor-link-input",placeholder:t.setLinkPlaceholder,"input-wrapper-class":"d-bgc-black-100 d-mt6 d-bar5 d-ba d-baw1 d-bc-black-300 d-py2 d-ol-none"},on:{click:t.onInputFocus,focus:t.onInputFocus,keydown:function(a){return!a.type.indexOf("key")&&t._k(a.keyCode,"enter",13,a.key,"Enter")?null:t.setLink.apply(null,arguments)}},nativeOn:{click:function(a){return a.stopPropagation(),t.onInputFocus.apply(null,arguments)}},model:{value:t.linkInput,callback:function(a){t.linkInput=a},expression:"linkInput"}})]},proxy:!0},{key:"footerContent",fn:function(){return[n("div",{staticClass:"d-ml8 d-mr12"},[n("dt-button",{staticClass:"d-mx2",attrs:{"aria-label":t.removeLinkButton.ariaLabel,importance:"clear",kind:"muted",size:"sm","data-qa":"dt-editor-remove-link-btn"},on:{click:t.removeLink}},[t._v(" "+t._s(t.removeLinkButton.label)+" ")]),n("dt-button",{staticClass:"d-mx2",attrs:{"aria-label":t.cancelSetLinkButton.ariaLabel,importance:"clear",kind:"muted",size:"sm","data-qa":"dt-editor-set-link-cancel-btn"},on:{click:t.closeLinkInput}},[t._v(" "+t._s(t.cancelSetLinkButton.label)+" ")]),n("dt-button",{staticClass:"d-mx2",attrs:{size:"sm","aria-label":t.confirmSetLinkButton.ariaLabel,"data-qa":"dt-editor-set-link-confirm-btn"},on:{click:t.setLink}},[t._v(" "+t._s(t.confirmSetLinkButton.label)+" ")])],1)]},proxy:!0}],null,!1,393148891)})],1):t._e()],2),n("div",{staticClass:"d-of-auto d-mx16 d-mt8 d-mb16 d-c-text",style:{"max-height":t.maxHeight}},[n("dt-rich-text-editor",t._b({ref:"richTextEditor",attrs:{"data-qa":"dt-rich-text-editor",editable:t.editable,"input-aria-label":t.inputAriaLabel,"input-class":`${t.inputClass} d-ol-none d-my6`,"output-format":t.htmlOutputFormat,"auto-focus":t.autoFocus,placeholder:t.placeholder,"allow-line-breaks":!0,link:!1},on:{focus:t.onFocus,blur:t.onBlur,input:function(a){return t.onInput(a)}},model:{value:t.internalInputValue,callback:function(a){t.internalInputValue=a},expression:"internalInputValue"}},"dt-rich-text-editor",t.$attrs,!1))],1)],1)},Wd=[],zd=o.normalizeComponent(Ud,Hd,Wd,!1,null,null,null,null);const Yd=zd.exports,Vt={warning:"dt-recipe-callbox-badge--warning"},qt={default:"dt-recipe-callbox--border-default",ai:"dt-recipe-callbox--border-ai",critical:"dt-recipe-callbox--border-critical"},Kd={name:"DtRecipeCallbox",components:{DtBadge:st,DtAvatar:u.DtAvatar},inheritAttrs:!1,props:{badgeText:{type:String,default:""},badgeColor:{type:String,default:null,validator:e=>e===null||Object.keys(Vt).includes(e)},avatarSrc:{type:String,default:""},avatarFullName:{type:String,default:""},avatarSeed:{type:String,default:""},title:{type:String,default:""},borderColor:{type:String,default:"default",validator:e=>Object.keys(qt).includes(e)},clickable:{type:Boolean,default:!1},isOnHold:{type:Boolean,default:!1}},emits:["click"],computed:{shouldShowAvatar(){return this.avatarFullName||this.avatarSrc},badgeClass(){return Vt[this.badgeColor]},borderClass(){return qt[this.borderColor]}},methods:{handleClick(e){this.clickable&&this.$emit("click",e)}}};var jd=function(){var t=this,n=t._self._c;return n("div",{staticClass:"dt-recipe-callbox",attrs:{"data-qa":"dt-recipe-callbox"}},[t.$slots.video?n("div",{staticClass:"dt-recipe-callbox--video",attrs:{"data-qa":"dt-recipe-callbox--video-wrapper"}},[t._t("video")],2):t._e(),n("div",{class:["dt-recipe-callbox--main-content",t.borderClass,{"dt-recipe-callbox--clickable":t.clickable}],attrs:{"data-qa":"dt-recipe-callbox--main-content"}},[n("div",{staticClass:"dt-recipe-callbox--main-content-top"},[t.shouldShowAvatar?n("dt-avatar",{attrs:{"avatar-class":"dt-recipe-callbox--avatar","image-src":t.avatarSrc,"full-name":t.avatarFullName,seed:t.avatarSeed,clickable:t.clickable,"overlay-icon":t.isOnHold?"pause":null,size:"sm"},on:{click:t.handleClick}}):t._e(),n("div",{staticClass:"dt-recipe-callbox--content"},[n(t.clickable?"button":"span",{tag:"component",staticClass:"dt-recipe-callbox--content-title",attrs:{"data-qa":"dt-recipe-callbox--title"},on:{click:t.handleClick}},[t._v(" "+t._s(t.title)+" ")]),t.$slots.badge||t.badgeText?n("div",{staticClass:"dt-recipe-callbox--content-badge",attrs:{"data-qa":"dt-recipe-callbox--badge-wrapper"}},[t._t("badge",function(){return[n("dt-badge",{class:t.badgeClass,attrs:{text:t.badgeText}})]})],2):t._e(),t.$slots.subtitle?n("div",{staticClass:"dt-recipe-callbox--content-subtitle",attrs:{"data-qa":"dt-recipe-callbox--subtitle-wrapper"}},[t._t("subtitle")],2):t._e()],1),t.$slots.right?n("div",{staticClass:"dt-recipe-callbox--right",attrs:{"data-qa":"dt-recipe-callbox--right-wrapper"}},[t._t("right")],2):t._e()],1),t.$slots.bottom?n("div",{staticClass:"dt-recipe-callbox--main-content-bottom",attrs:{"data-qa":"dt-recipe-callbox--bottom-wrapper"}},[t._t("bottom")],2):t._e()])])},Gd=[],Qd=o.normalizeComponent(Kd,jd,Gd,!1,null,"66800ae7",null,null);const Zd=Qd.exports;let $;function et(e,t){return Jt(),Ne(e,t,{locale:$})}function Xd(e,t){return Jt(),to(e,{locale:$,format:t})}function Jd(e,t){return Jt(),Xs(e,t,{locale:$})}function tc(){return $!==void 0}function Jt(){if(!tc())throw new Error("Locale not set, please call setDateLocale(locale) and pass in a datefns locale object as the locale param before calling this function")}function ec(e){$=e}function nc(e){return et(e,"MMMM d, y")}function ac(e){if(e<60)return Jd(0,29*1e3);const t=no({start:0,end:e*1e3});return Xd(t,["hours","minutes"])}function oe(e){const t=new Intl.RelativeTimeFormat($.code,{numeric:"auto"});return o.capitalizeFirstLetter(t.formatToParts(e,"day")[0].value,$.code)}function rc(e){return lo(e)?oe(0):uo(e)?oe(-1):so(e)?et(e,"EEEE"):oo(e)?et(e,"EEEE, MMMM d"):et(e,"MMMM d, y")}exports.AVATAR_COLORS=u.AVATAR_COLORS;exports.AVATAR_GROUP_VALIDATOR=u.AVATAR_GROUP_VALIDATOR;exports.AVATAR_ICON_SIZES=u.AVATAR_ICON_SIZES;exports.AVATAR_KIND_MODIFIERS=u.AVATAR_KIND_MODIFIERS;exports.AVATAR_PRESENCE_SIZE_MODIFIERS=u.AVATAR_PRESENCE_SIZE_MODIFIERS;exports.AVATAR_PRESENCE_STATES=u.AVATAR_PRESENCE_STATES;exports.AVATAR_SIZE_MODIFIERS=u.AVATAR_SIZE_MODIFIERS;exports.DT_STACK_DIRECTION=u.DT_STACK_DIRECTION;exports.DT_STACK_GAP=u.DT_STACK_GAP;exports.DT_STACK_RESPONSIVE_BREAKPOINTS=u.DT_STACK_RESPONSIVE_BREAKPOINTS;exports.DtAvatar=u.DtAvatar;exports.DtItemLayout=u.DtItemLayout;exports.DtLink=u.DtLink;exports.DtListItem=u.DtListItem;exports.DtPopover=u.DtPopover;exports.DtPresence=u.DtPresence;exports.DtStack=u.DtStack;exports.LIST_ITEM_NAVIGATION_TYPES=u.LIST_ITEM_NAVIGATION_TYPES;exports.LIST_ITEM_TYPES=u.LIST_ITEM_TYPES;exports.POPOVER_APPEND_TO_VALUES=u.POPOVER_APPEND_TO_VALUES;exports.POPOVER_CONTENT_WIDTHS=u.POPOVER_CONTENT_WIDTHS;exports.POPOVER_DIRECTIONS=u.POPOVER_DIRECTIONS;exports.POPOVER_HEADER_FOOTER_PADDING_CLASSES=u.POPOVER_HEADER_FOOTER_PADDING_CLASSES;exports.POPOVER_INITIAL_FOCUS_STRINGS=u.POPOVER_INITIAL_FOCUS_STRINGS;exports.POPOVER_PADDING_CLASSES=u.POPOVER_PADDING_CLASSES;exports.POPOVER_ROLES=u.POPOVER_ROLES;exports.POPOVER_STICKY_VALUES=u.POPOVER_STICKY_VALUES;exports.PRESENCE_STATES=u.PRESENCE_STATES;exports.PRESENCE_STATES_LIST=u.PRESENCE_STATES_LIST;exports.BUTTON_ICON_SIZES=l.BUTTON_ICON_SIZES;exports.BUTTON_IMPORTANCE_MODIFIERS=l.BUTTON_IMPORTANCE_MODIFIERS;exports.BUTTON_KIND_MODIFIERS=l.BUTTON_KIND_MODIFIERS;exports.BUTTON_SIZE_MODIFIERS=l.BUTTON_SIZE_MODIFIERS;exports.BUTTON_TYPES=l.BUTTON_TYPES;exports.DtButton=l.DtButton;exports.DtCheckableInputMixin=l.CheckableMixin;exports.DtGroupableInputMixin=l.GroupableMixin;exports.DtIcon=l.DtIcon;exports.DtInput=l.DtInput;exports.DtInputMixin=l.InputMixin;exports.DtSkeleton=l.DtSkeleton;exports.DtSkeletonListItem=l.DtSkeletonListItem;exports.DtSkeletonParagraph=l.DtSkeletonParagraph;exports.DtSkeletonShape=l.DtSkeletonShape;exports.DtSkeletonText=l.DtSkeletonText;exports.DtTab=l.DtTab;exports.DtTabGroup=l.DtTabGroup;exports.DtValidationMessages=l.DtValidationMessages;exports.ICON_POSITION_MODIFIERS=l.ICON_POSITION_MODIFIERS;exports.ICON_SIZE_MODIFIERS=l.ICON_SIZE_MODIFIERS;exports.INPUT_SIZES=l.INPUT_SIZES;exports.INPUT_TYPES=l.INPUT_TYPES;exports.INVALID_COMBINATION=l.INVALID_COMBINATION;exports.LINK_KIND_MODIFIERS=l.LINK_KIND_MODIFIERS;exports.LINK_VARIANTS=l.LINK_VARIANTS;exports.SKELETON_HEADING_HEIGHTS=l.SKELETON_HEADING_HEIGHTS;exports.SKELETON_RIPPLE_DURATION=l.SKELETON_RIPPLE_DURATION;exports.SKELETON_SHAPES=l.SKELETON_SHAPES;exports.SKELETON_SHAPE_SIZES=l.SKELETON_SHAPE_SIZES;exports.SKELETON_TEXT_TYPES=l.SKELETON_TEXT_TYPES;exports.TAB_IMPORTANCE_MODIFIERS=l.TAB_IMPORTANCE_MODIFIERS;exports.TAB_LIST_IMPORTANCE_MODIFIERS=l.TAB_LIST_IMPORTANCE_MODIFIERS;exports.TAB_LIST_KIND_MODIFIERS=l.TAB_LIST_KIND_MODIFIERS;exports.TAB_LIST_SIZES=l.TAB_LIST_SIZES;exports.validationMessageValidator=l.validationMessageValidator;exports.DEFAULT_VALIDATION_MESSAGE_TYPE=o.DEFAULT_VALIDATION_MESSAGE_TYPE;exports.DESCRIPTION_SIZE_TYPES=o.DESCRIPTION_SIZE_TYPES;exports.DtLazyShow=o.DtLazyShow;exports.DtTooltip=o.DtTooltip;exports.TOOLTIP_DELAY_MS=o.TOOLTIP_DELAY_MS;exports.TOOLTIP_DIRECTIONS=o.TOOLTIP_DIRECTIONS;exports.TOOLTIP_HIDE_ON_CLICK_VARIANTS=o.TOOLTIP_HIDE_ON_CLICK_VARIANTS;exports.TOOLTIP_KIND_MODIFIERS=o.TOOLTIP_KIND_MODIFIERS;exports.TOOLTIP_STICKY_VALUES=o.TOOLTIP_STICKY_VALUES;exports.VALIDATION_MESSAGE_TYPES=o.VALIDATION_MESSAGE_TYPES;exports.filterFormattedMessages=o.filterFormattedMessages;exports.formatMessages=o.formatMessages;exports.getUniqueString=o.getUniqueString;exports.getValidationState=o.getValidationState;exports.BADGE_DECORATION_MODIFIERS=Tt;exports.BADGE_KIND_MODIFIERS=Dt;exports.BADGE_TYPE_MODIFIERS=It;exports.BREADCRUMBS_INVERTED_MODIFIER=ce;exports.BREADCRUMB_ITEM_SELECTED_MODIFIER=de;exports.BUTTON_GROUP_ALIGNMENT=wt;exports.CALLBAR_BUTTON_VALID_WIDTH_SIZE=Zt;exports.CALLBOX_BADGE_COLORS=Vt;exports.CALLBOX_BORDER_COLORS=qt;exports.CHIP_CLOSE_BUTTON_SIZE_MODIFIERS=Ce;exports.CHIP_ICON_SIZES=Ie;exports.CHIP_SIZES=Ue;exports.CHIP_SIZE_MODIFIERS=Lt;exports.CHIP_TOP_POSITION=He;exports.COLOR_CODES=ze;exports.DEFAULT_FEED_ROW_STATE=K;exports.DROPDOWN_PADDING_CLASSES=B;exports.DT_DESCRIPTION_LIST_DIRECTION=ge;exports.DtBadge=st;exports.DtBanner=xn;exports.DtBreadcrumbItem=ue;exports.DtBreadcrumbs=Vn;exports.DtButtonGroup=zn;exports.DtCard=fe;exports.DtCheckbox=Nr;exports.DtCheckboxGroup=qr;exports.DtChip=Yt;exports.DtCodeblock=ta;exports.DtCollapsible=_e;exports.DtCombobox=me;exports.DtDatepicker=Po;exports.DtDescriptionList=xa;exports.DtDropdown=be;exports.DtDropdownSeparator=Va;exports.DtHovercard=Ya;exports.DtImageViewer=ve;exports.DtInputGroup=zt;exports.DtInputGroupMixin=ye;exports.DtKeyboardListNavigationMixin=Ht;exports.DtKeyboardShortcut=_i;exports.DtListItemGroup=cr;exports.DtModal=ir;exports.DtNotice=wn;exports.DtNoticeAction=dt;exports.DtNoticeContent=lt;exports.DtNoticeIcon=ot;exports.DtPagination=mr;exports.DtRadio=yr;exports.DtRadioGroup=Tr;exports.DtRecipeAttachmentCarousel=Fd;exports.DtRecipeCallbarButton=We;exports.DtRecipeCallbarButtonWithPopover=sl;exports.DtRecipeCallbox=Zd;exports.DtRecipeComboboxMultiSelect=Zo;exports.DtRecipeComboboxWithPopover=Ve;exports.DtRecipeContactInfo=ul;exports.DtRecipeContactRow=Xl;exports.DtRecipeEditor=Yd;exports.DtRecipeEmojiRow=Id;exports.DtRecipeFeedItemPill=pd;exports.DtRecipeFeedItemRow=ld;exports.DtRecipeGeneralRow=Xt;exports.DtRecipeGroupRow=Kl;exports.DtRecipeGroupedChip=Ol;exports.DtRecipeIvrNode=Il;exports.DtRecipeSettingsMenuButton=$l;exports.DtRecipeTimePill=bd;exports.DtRecipeTopBannerInfo=_l;exports.DtRecipeUnreadPill=ad;exports.DtRootLayout=Si;exports.DtSelectMenu=ti;exports.DtTabPanel=Lr;exports.DtToast=ii;exports.DtToggle=ci;exports.FEED_ITEM_PILL_BORDER_COLORS=Ft;exports.FEED_ROW_STATE_BACKGROUND_COLOR=Bt;exports.IVR_NODE_BRANCH=mt;exports.IVR_NODE_EXPERT=ht;exports.IVR_NODE_GO_TO=Z;exports.IVR_NODE_HANGUP=gt;exports.IVR_NODE_ICON_TYPES=Ye;exports.IVR_NODE_LABELS=gl;exports.IVR_NODE_PROMPT_COLLECT=ft;exports.IVR_NODE_PROMPT_MENU=ut;exports.IVR_NODE_PROMPT_PLAY=pt;exports.IVR_NODE_TRANSFER=_t;exports.LABEL_SIZES=Wt;exports.LEFTBAR_GENERAL_ROW_CONTACT_CENTER_COLORS=G;exports.LEFTBAR_GENERAL_ROW_CONTACT_CENTER_VALIDATION_ERROR=je;exports.LEFTBAR_GENERAL_ROW_ICON_MAPPING=Ke;exports.LEFTBAR_GENERAL_ROW_ICON_SIZES=Ge;exports.LEFTBAR_GENERAL_ROW_TYPES=C;exports.MODAL_BANNER_KINDS=kt;exports.MODAL_KIND_MODIFIERS=Et;exports.MODAL_SIZE_MODIFIERS=Ot;exports.MULTI_SELECT_SIZES=qe;exports.NOTICE_KINDS=V;exports.NOTICE_ROLES=le;exports.RADIO_INPUT_VALIDATION_CLASSES=Se;exports.REACTIONS_ATTRIBUTES=Xe;exports.ROOT_LAYOUT_RESPONSIVE_BREAKPOINTS=Oe;exports.ROOT_LAYOUT_SIDEBAR_POSITIONS=Rt;exports.SELECT_SIZE_MODIFIERS=xt;exports.SELECT_STATE_MODIFIERS=De;exports.SHORTCUTS_ALIASES_LIST=ui;exports.SHORTCUTS_ICON_ALIASES=P;exports.SHORTCUTS_ICON_SEPARATOR=Ee;exports.TOAST_MIN_DURATION=At;exports.TOAST_ROLES=Te;exports.TOGGLE_CHECKED_VALUES=we;exports.TOGGLE_SIZE_MODIFIERS=$t;exports.UNREAD_PILL_DIRECTIONS=Qe;exports.UNREAD_PILL_KINDS=Ze;exports.durationInHHMM=ac;exports.formatLong=Bo;exports.formatMedium=Fo;exports.formatNoYear=qo;exports.formatNumerical=Uo;exports.formatShort=Vo;exports.getDateMedium=nc;exports.relativeDate=rc;exports.setDateLocale=ec;
|
|
5
|
+
need to be set so the component always includes a close button`)}}};var nr=function(){var t=this,n=t._self._c;return n("dt-lazy-show",t._g({class:["d-modal",t.MODAL_KIND_MODIFIERS[t.kind],t.MODAL_SIZE_MODIFIERS[t.size],t.modalClass],attrs:{transition:"d-zoom",show:t.show,"data-qa":"dt-modal","aria-hidden":t.open}},t.modalListeners),[t.show&&(t.$slots.banner||t.bannerTitle)?n("div",{class:["d-modal__banner",t.bannerClass,t.bannerKindClass],attrs:{"data-qa":"dt-modal-banner"}},[t._t("banner",function(){return[t._v(" "+t._s(t.bannerTitle)+" ")]})],2):t._e(),n("transition",{attrs:{appear:"",name:"d-modal__dialog"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.show,expression:"show"}],class:["d-modal__dialog",{"d-modal__dialog--scrollable":t.fixedHeaderFooter},t.dialogClass],attrs:{role:"dialog","aria-modal":"true","aria-describedby":t.describedById,"aria-labelledby":t.labelledById}},[t.$slots.header?n("div",{staticClass:"d-modal__header",attrs:{id:t.labelledById,"data-qa":"dt-modal-title"}},[t._t("header")],2):n("h2",{staticClass:"d-modal__header",attrs:{id:t.labelledById,"data-qa":"dt-modal-title"}},[t._v(" "+t._s(t.title)+" ")]),t.$slots.default?n("div",{class:["d-modal__content",t.contentClass],attrs:{"data-qa":"dt-modal-copy"}},[t._t("default")],2):n("p",{class:["d-modal__content",t.contentClass],attrs:{"data-qa":"dt-modal-copy"}},[t._v(" "+t._s(t.copy)+" ")]),t.hasFooterSlot?n("footer",{staticClass:"d-modal__footer"},[t._t("footer")],2):t._e(),t.hideClose?t._e():n("dt-button",t._b({staticClass:"d-modal__close",attrs:{circle:"",size:"lg",importance:"clear","aria-label":t.closeButtonProps.ariaLabel},on:{click:t.close},scopedSlots:t._u([{key:"icon",fn:function(){return[n("dt-icon",{attrs:{name:"close",size:"400"}})]},proxy:!0}],null,!1,1709155279)},"dt-button",t.closeButtonProps,!1)),t.showVisuallyHiddenClose?n("sr-only-close-button",{attrs:{"visually-hidden-close-label":t.visuallyHiddenCloseLabel},on:{close:t.close}}):t._e()],1)])],1)},ar=[],rr=o.normalizeComponent(er,nr,ar,!1,null,null,null,null);const ir=rr.exports,sr={name:"DtListItemGroup",props:{id:{type:String,default(){return o.getUniqueString()}},heading:{type:String,default:""},headingClass:{type:[String,Array,Object],default:""},listClass:{type:[String,Array,Object],default:""}}};var or=function(){var t=this,n=t._self._c;return n("ul",{class:["d-list-item-group",t.listClass],attrs:{id:t.id,role:"group","data-qa":"dt-dropdown-list-wrapper","aria-labelledby":`${t.id}-heading`}},[t.heading?n("li",{class:["dt-dropdown-list--header",t.headingClass],attrs:{id:`${t.id}-heading`,role:"presentation","data-qa":"dt-dropdown-list-heading"}},[t._t("headingSlot",function(){return[t._v(" "+t._s(t.heading)+" ")]})],2):t._e(),t._t("default")],2)},lr=[],dr=o.normalizeComponent(sr,or,lr,!1,null,null,null,null);const cr=dr.exports,ur={name:"DtPagination",components:{DtButton:l.DtButton,DtIcon:l.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 e=this.maxVisible-1,t=this.totalPages-e+1;if(this.currentPage<e)return[...this.range(1,e),"...",this.totalPages];if(this.currentPage>t)return[1,"...",...this.range(t,this.totalPages)];const n=this.maxVisible-(3-this.maxVisible%2),a=Math.floor(n/2),r=this.currentPage-a,i=this.currentPage+a;return[1,"...",...this.range(r,i),"...",this.totalPages]}},methods:{range(e,t){const n=[];e=e>0?e:1;for(let a=e;a<=t;a++)n.push(a);return n},changePage(e){this.currentPage=e,this.$emit("change",this.currentPage)}}};var fr=function(){var t=this,n=t._self._c;return n("nav",{staticClass:"d-pagination",attrs:{"aria-label":t.ariaLabel}},[n("dt-button",{staticClass:"d-pagination__button",class:t.isFirstPage?"d-fc-black-300 d-bgc-transparent":"d-fc-tertiary",attrs:{"data-qa":"dt-pagination-prev","aria-label":t.prevAriaLabel,kind:t.isFirstPage?"default":"muted",importance:t.isFirstPage?"primary":"clear",disabled:t.isFirstPage},on:{click:function(a){return t.changePage(t.currentPage-1)}}},[n("template",{slot:"icon"},[n("dt-icon",{attrs:{name:"chevron-left",size:"300"}})],1)],2),t._l(t.pages,function(a,r){return n("div",{key:`page-${a}-${r}`,class:{"d-pagination__separator":isNaN(Number(a))}},[isNaN(Number(a))?n("div",{staticClass:"d-pagination__separator-icon",attrs:{"data-qa":"dt-pagination-separator"}},[n("dt-icon",{attrs:{name:"more-horizontal",size:"300"}})],1):n("dt-button",{attrs:{"aria-label":t.pageNumberAriaLabel(a),kind:t.currentPage===a?"default":"muted",importance:t.currentPage===a?"primary":"clear","label-class":""},on:{click:function(i){return t.changePage(a)}}},[t._v(" "+t._s(a)+" ")])],1)}),n("dt-button",{staticClass:"d-pagination__button",class:t.isLastPage?"d-fc-black-300 d-bgc-transparent":"d-fc-tertiary",attrs:{"data-qa":"dt-pagination-next","aria-label":t.nextAriaLabel,disabled:t.isLastPage,kind:"muted",importance:t.isLastPage?"primary":"clear"},on:{click:function(a){return t.changePage(t.currentPage+1)}}},[n("template",{slot:"icon"},[n("dt-icon",{attrs:{name:"chevron-right",size:"300"}})],1)],2)],2)},pr=[],hr=o.normalizeComponent(ur,fr,pr,!1,null,null,null,null);const mr=hr.exports,Se={warning:"d-radio--warning",error:"d-radio--error",success:"d-radio--success"},_r={name:"DtRadio",components:{DtValidationMessages:l.DtValidationMessages},mixins:[l.InputMixin,l.CheckableMixin,l.GroupableMixin,l.MessagesMixin],inheritAttrs:!1,props:{value:{type:[String,Number],default:""}},emits:["input","focusin","focusout"],computed:{inputValidationClass(){return Se[this.internalValidationState]},radioGroupValue(){var e;return(e=this.groupContext)==null?void 0:e.selectedValue},inputListeners(){return{...this.$listeners,input:()=>{},change:e=>this.emitValue(e.target.value)}}},watch:{radioGroupValue:{immediate:!0,handler(e){this.hasGroup&&(this.internalChecked=e===this.value)}}},methods:{emitValue(e){e!==this.radioGroupValue&&(this.setGroupValue(e),this.$emit("input",e))}}};var gr=function(){var t=this,n=t._self._c;return n("div",[n("label",[n("div",{class:["d-radio-group",{"d-radio-group--disabled":t.internalDisabled}]},[n("div",{staticClass:"d-radio__input"},[n("input",t._g(t._b({class:["d-radio",t.inputValidationClass,t.inputClass],attrs:{name:t.internalName,disabled:t.internalDisabled,type:"radio"},domProps:{checked:t.internalChecked,value:t.value}},"input",t.$attrs,!1),t.inputListeners))]),n("div",{staticClass:"d-radio__copy d-radio__label",attrs:{"data-qa":"radio-label-description-container"}},[n("div",t._b({class:t.labelClass,attrs:{"data-qa":"radio-label"}},"div",t.labelChildProps,!1),[t._t("default",function(){return[t._v(t._s(t.label))]})],2),t.$slots.description||t.description?n("div",t._b({class:["d-description",t.descriptionClass],attrs:{"data-qa":"radio-description"}},"div",t.descriptionChildProps,!1),[t._t("description",function(){return[t._v(t._s(t.description))]})],2):t._e(),n("dt-validation-messages",t._b({class:t.messagesClass,attrs:{"validation-messages":t.formattedMessages,"show-messages":t.showMessages,"data-qa":"dt-radio-validation-messages"}},"dt-validation-messages",t.messagesChildProps,!1))],1)])])])},br=[],vr=o.normalizeComponent(_r,gr,br,!1,null,null,null,null);const yr=vr.exports,Sr={name:"DtRadioGroup",extends:zt,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{provideObj:{selectedValue:this.value}}},watch:{value(e){this.provideObj.selectedValue=e}},methods:{setGroupValue(e){this.$emit("input",e)},getMessageKey(e,t){return`radio-group-message-${e}-${t}-${this.id}`}}},Cr=null,Ir=null;var Dr=o.normalizeComponent(Sr,Cr,Ir,!1,null,null,null,null);const Tr=Dr.exports,wr={name:"DtTabPanel",mixins:[u.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 e=await this.getFirstFocusableElement(this.$el);e?this.isFirstElementFocusable=this.isFirstElementOfPanel(e):this.isFirstElementFocusable=!1},methods:{isFirstElementOfPanel(e){let t=e,n=!0;for(;t;){if(t.previousElementSibling!==null){n=!1;break}t=t.parentNode!==this.$el?t.parentNode:null}return n}}};var Er=function(){var t=this,n=t._self._c;return n("div",{directives:[{name:"show",rawName:"v-show",value:!t.hidePanel,expression:"!hidePanel"}],class:t.tabPanelClass,attrs:{id:`dt-panel-${t.id}`,role:"tabpanel",tabindex:t.isFirstElementFocusable?-1:0,"aria-labelledby":`dt-tab-${t.tabId}`,"aria-hidden":`${t.hidePanel}`,"data-qa":"dt-tab-panel"}},[t._t("default")],2)},Or=[],kr=o.normalizeComponent(wr,Er,Or,!1,null,null,null,null);const Lr=kr.exports,xr={error:"d-checkbox--error",warning:"d-checkbox--warning",success:"d-checkbox--success"},Ar={name:"DtCheckbox",components:{DtValidationMessages:l.DtValidationMessages},mixins:[l.InputMixin,l.CheckableMixin,l.GroupableMixin,l.MessagesMixin],inheritAttrs:!1,emits:["input","focusin","focusout"],computed:{inputValidationClass(){return xr[this.internalValidationState]},checkboxGroupValueChecked(){var e,t;return((t=(e=this.groupContext)==null?void 0:e.selectedValues)==null?void 0:t.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{...this.$listeners,input:()=>{},change:e=>this.emitValue(e.target)}}},watch:{checkboxGroupValueChecked:{immediate:!0,handler(e){this.hasGroup&&(this.internalChecked=e)}}},mounted(){this.runValidations()},methods:{emitValue(e){let{value:t,checked:n}=e;this.internalIndeterminate&&(n=!1,this.internalIndeterminate=!1,e.checked=!1),this.setGroupValue(t,n),this.$emit("input",n)},runValidations(){this.validateInputLabels(this.hasLabel,this.$attrs["aria-label"])}}};var $r=function(){var t=this,n=t._self._c;return n("div",[n("label",[n("div",{class:["d-checkbox-group",{"d-checkbox-group--disabled":t.internalDisabled}]},[n("div",{staticClass:"d-checkbox__input"},[n("input",t._g(t._b({class:["d-checkbox",t.inputValidationClass,t.inputClass],attrs:{type:"checkbox",name:t.internalName,disabled:t.internalDisabled},domProps:{checked:t.internalChecked,value:t.value,indeterminate:t.internalIndeterminate}},"input",t.$attrs,!1),t.inputListeners))]),t.hasLabelOrDescription?n("div",{staticClass:"d-checkbox__copy d-checkbox__label",attrs:{"data-qa":"checkbox-label-description-container"}},[t.hasLabel?n("div",t._b({class:t.labelClass,attrs:{"data-qa":"checkbox-label"}},"div",t.labelChildProps,!1),[t._t("default",function(){return[t._v(t._s(t.label))]})],2):t._e(),t.hasDescription?n("div",t._b({class:["d-description",t.descriptionClass],attrs:{"data-qa":"checkbox-description"}},"div",t.descriptionChildProps,!1),[t._t("description",function(){return[t._v(t._s(t.description))]})],2):t._e(),n("dt-validation-messages",t._b({class:t.messagesClass,attrs:{"validation-messages":t.formattedMessages,"show-messages":t.showMessages,"data-qa":"dt-checkbox-validation-messages"}},"dt-validation-messages",t.messagesChildProps,!1))],1):t._e()])])])},Rr=[],Mr=o.normalizeComponent(Ar,$r,Rr,!1,null,null,null,null);const Nr=Mr.exports,Pr={name:"DtCheckboxGroup",extends:zt,model:{prop:"selectedValues"},props:{value:{type:[],default:null,validator:e=>e?(Q.util.warn("Component uses selectedValues to initialize the model, value is not supported by this component",void 0),!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,provideObj:{selectedValues:this.selectedValues}}},watch:{selectedValues(e){this.internalValue=e},internalValue(e){this.provideObj.selectedValues=e}},methods:{setGroupValue(e,t){t?this.internalValue.includes(e)||this.internalValue.push(e):this.internalValue=this.internalValue.filter(n=>n!==e),this.$emit("input",this.internalValue)},getMessageKey(e,t){return`checkbox-group-message-${e}-${t}-${this.id}`}}},Br=null,Fr=null;var Vr=o.normalizeComponent(Pr,Br,Fr,!1,null,null,null,null);const qr=Vr.exports,Lt={xs:"d-chip__label--xs",sm:"d-chip__label--sm",md:""},Ce={xs:"d-chip__close--xs",sm:"d-chip__close--sm",md:""},Ie={xs:"200",sm:"200",md:"200"},Ur={name:"DtChip",components:{DtButton:l.DtButton,DtIcon:l.DtIcon},props:{closeButtonProps:{type:Object,default:function(){return{ariaLabel:"close"}},validator:e=>!!e.ariaLabel},hideClose:{type:Boolean,default:!1},size:{type:String,default:"md",validator:e=>Object.keys(Lt).includes(e)},interactive:{type:Boolean,default:!0},id:{type:String,default:function(){return o.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}},computed:{chipListeners(){return{...this.$listeners,click:e=>{this.interactive&&this.$emit("click",e)},keyup:e=>{var t;((t=e.code)==null?void 0:t.toLowerCase())==="delete"?this.onClose():this.$emit("keyup",e)}}},closeButtonIconSize(){return Ie[this.size]}},methods:{chipClasses(){return[this.$attrs["grouped-chip"]?"d-chip":"d-chip__label",Lt[this.size],this.labelClass]},chipCloseButtonClasses(){return["d-chip__close",Ce[this.size]]},onClose(){this.hideClose||this.$emit("close")}}};var Hr=function(){var t=this,n=t._self._c;return n("span",{staticClass:"d-chip"},[n(t.interactive?"button":"span",t._g({tag:"component",class:t.chipClasses(),attrs:{id:t.id,type:t.interactive&&"button","data-qa":"dt-chip","aria-labelledby":t.ariaLabel?void 0:`${t.id}-content`,"aria-label":t.ariaLabel}},t.chipListeners),[t.$slots.icon?n("span",{staticClass:"d-chip__icon",attrs:{"data-qa":"dt-chip-icon"}},[t._t("icon")],2):t.$slots.avatar?n("span",{attrs:{"data-qa":"dt-chip-avatar"}},[t._t("avatar")],2):t._e(),t.$slots.default?n("span",{class:["d-chip__text",t.contentClass],attrs:{id:`${t.id}-content`,"data-qa":"dt-chip-label"}},[t._t("default")],2):t._e()]),t.hideClose?t._e():n("dt-button",t._b({class:t.chipCloseButtonClasses(),attrs:{"data-qa":"dt-chip-close","aria-label":t.closeButtonProps.ariaLabel},on:{click:function(a){return t.$emit("close")}},scopedSlots:t._u([{key:"icon",fn:function(){return[n("dt-icon",{attrs:{name:"close",size:t.closeButtonIconSize}})]},proxy:!0}],null,!1,1192647893)},"dt-button",t.closeButtonProps,!1))],1)},Wr=[],zr=o.normalizeComponent(Ur,Hr,Wr,!1,null,null,null,null);const Yt=zr.exports,xt={xs:"d-select--xs",sm:"d-select--sm",md:"",lg:"d-select--lg",xl:"d-select--xl"},De={error:"d-select__input--error",warning:"d-select__input--warning",success:"d-select__input--success"},Yr=e=>!e.index||typeof e.index=="number",Kr=e=>e.value?typeof e.value=="string"||typeof e.value=="number":!1,jr=e=>e.label?typeof e.label=="string":!1,Gr=e=>e?e.every(t=>!(!Yr(t)||!Kr(t)||!jr(t))):!0,Qr={name:"DtSelectMenu",components:{DtValidationMessages:l.DtValidationMessages},mixins:[l.MessagesMixin],inheritAttrs:!1,props:{label:{type:String,default:""},description:{type:String,default:""},options:{type:Array,default:()=>[],validator:e=>Gr(e)},value:{type:String,default:null},size:{type:String,default:"md",validator:e=>Object.keys(xt).includes(e)},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:o.LABEL_SIZE_MODIFIERS,DESCRIPTION_SIZE_MODIFIERS:o.DESCRIPTION_SIZE_MODIFIERS,SELECT_SIZE_MODIFIERS:xt,SELECT_STATE_MODIFIERS:De}},computed:{selectListeners(){return{...this.$listeners,input:()=>{},change:e=>this.emitValue(e.target.value,e)}},state(){return o.getValidationState(this.formattedMessages)},selectKey(){return o.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(e,t){this.$emit("input",e,t),this.$emit("change",e,t)},getOptionKey(e){return`select-${this.selectKey}-option-${e}`},validateOptionsPresence(){var e;((e=this.options)==null?void 0:e.length)<1&&!this.$slots.default&&Q.util.warn("Options are expected to be provided via prop or slot",this)}}};var Zr=function(){var t=this,n=t._self._c;return n("div",[n("label",[t.$slots.label||t.label?n("div",t._b({class:["d-label",t.LABEL_SIZE_MODIFIERS[t.size],t.labelClass],attrs:{"aria-details":t.labelAriaDetails,"data-qa":"dt-select-label"}},"div",t.labelChildProps,!1),[t._t("label",function(){return[t._v(t._s(t.label))]})],2):t._e(),t.$slots.description||t.description?n("div",t._b({class:["d-description",t.DESCRIPTION_SIZE_MODIFIERS[t.size],t.descriptionClass],attrs:{id:t.descriptionKey,"data-qa":"dt-select-description"}},"div",t.descriptionChildProps,!1),[t._t("description",function(){return[t._v(t._s(t.description))]})],2):t._e(),n("div",{class:["d-select",t.SELECT_SIZE_MODIFIERS[t.size],t.selectClass,{"d-select--disabled":t.disabled}],attrs:{"data-qa":"dt-select-wrapper"}},[n("select",t._g(t._b({ref:"selectElement",class:["d-select__input",t.SELECT_STATE_MODIFIERS[t.state]],attrs:{"data-qa":"dt-select",disabled:t.disabled},domProps:{value:t.value}},"select",t.$attrs,!1),t.selectListeners),[t._t("default",function(){return t._l(t.options,function(a){return n("option",t._b({key:t.getOptionKey(a.value),class:t.optionClass,domProps:{value:a.value}},"option",t.optionChildProps,!1),[t._v(" "+t._s(a.label)+" ")])})})],2)])]),n("dt-validation-messages",t._b({class:t.messagesClass,attrs:{"validation-messages":t.formattedMessages,"show-messages":t.showMessages,"data-qa":"dt-select-messages"}},"dt-validation-messages",t.messagesChildProps,!1))],1)},Xr=[],Jr=o.normalizeComponent(Qr,Zr,Xr,!1,null,null,null,null);const ti=Jr.exports,Te=["status","alert"],At=6e3,ei={name:"DtToast",components:{DtNoticeIcon:ot,DtNoticeContent:lt,DtNoticeAction:dt},mixins:[u.SrOnlyCloseButtonMixin],props:{titleId:{type:String,default(){return o.utils.getUniqueString()}},contentId:{type:String,default(){return o.utils.getUniqueString()}},title:{type:String,default:""},message:{type:String,default:""},role:{type:String,default:"status",validator:e=>Te.includes(e)},kind:{type:String,default:"base",validator:e=>V.includes(e)},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:e=>e>=At}},emits:["close","update:show"],data(){return{isShown:!1,minDuration:At}},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]},noticeActionListeners(){return{...this.$listeners,close:e=>{this.isShown=!1,this.$emit("update:show",!1),this.$emit("close",e)}}},shouldSetTimeout(){return!!this.duration&&this.duration>=this.minDuration}},watch:{show:{handler:function(e){this.isShown=e,e?this.setTimeout():clearTimeout(this.displayTimer)},immediate:!0}},destroyed(){this.shouldSetTimeout&&clearTimeout(this.displayTimer)},methods:{setTimeout(){this.shouldSetTimeout&&(this.displayTimer=setTimeout(()=>{this.isShown=!1,this.$emit("update:show",!1)},this.duration))}}};var ni=function(){var t=this,n=t._self._c;return t.isShown?n("div",{class:["d-toast",t.kindClass,{"d-toast--important":t.important}],attrs:{"data-qa":"dt-toast","aria-hidden":(!t.isShown).toString()}},[n("div",{staticClass:"d-toast__dialog"},[n("dt-notice-icon",t._g({attrs:{kind:t.kind}},t.$listeners),[t._t("icon")],2),n("dt-notice-content",t._g({attrs:{"title-id":t.titleId,"content-id":t.contentId,title:t.title,role:t.role},scopedSlots:t._u([{key:"titleOverride",fn:function(){return[t._t("titleOverride")]},proxy:!0}],null,!0)},t.$listeners),[t._t("default",function(){return[t._v(" "+t._s(t.message)+" ")]})],2),n("dt-notice-action",t._g({attrs:{"hide-close":t.hideClose,"close-button-props":t.closeButtonProps,"visually-hidden-close":t.visuallyHiddenClose,"visually-hidden-close-label":t.visuallyHiddenCloseLabel}},t.noticeActionListeners),[t._t("action")],2)],1)]):t._e()},ai=[],ri=o.normalizeComponent(ei,ni,ai,!1,null,null,null,null);const ii=ri.exports,$t={sm:"d-toggle--small",md:""},we=[!1,!0,"mixed"],si={name:"DtToggle",inheritAttrs:!1,model:{prop:"checked",event:"change"},props:{id:{type:String,default(){return o.utils.getUniqueString()}},disabled:{type:Boolean,default:!1},checked:{type:[Boolean,String],default:!1,validator:e=>we.includes(e)},toggleOnClick:{type:Boolean,default:!0},size:{type:String,default:"md",validator:e=>Object.keys($t).includes(e)},showIcon:{type:Boolean,default:!0},labelClass:{type:[String,Array,Object],default:""},labelChildProps:{type:Object,default:()=>({})}},emits:["change"],data(){return{internalChecked:this.checked}},computed:{inputListeners(){return{...this.$listeners,click:e=>this.toggleCheckedValue()}},isIndeterminate(){return this.internalChecked==="mixed"},toggleRole(){return this.isIndeterminate?"checkbox":"switch"},toggleClasses(){return["d-toggle",$t[this.size],{"d-toggle--checked":this.internalChecked===!0,"d-toggle--disabled":this.disabled,"d-toggle--indeterminate":this.isIndeterminate}]}},watch:{checked(e){this.internalChecked=e}},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(e,t){!e&&!t&&Q.util.warn("You must provide an aria-label when there is no label passed",this)}}};var oi=function(){var t=this,n=t._self._c;return n("div",{staticClass:"d-toggle-wrapper"},[t.$slots.default?n("label",t._b({class:t.labelClass,attrs:{for:t.id,"data-qa":"toggle-label"}},"label",t.labelChildProps,!1),[t._t("default")],2):t._e(),n("button",t._g(t._b({class:t.toggleClasses,attrs:{id:t.id,role:t.toggleRole,type:"button","aria-checked":t.internalChecked.toString(),disabled:t.disabled,"aria-disabled":t.disabled.toString()}},"button",t.$attrs,!1),t.inputListeners),[t.showIcon?n("span",{staticClass:"d-toggle__inner"}):t._e()])])},li=[],di=o.normalizeComponent(si,oi,li,!1,null,null,null,null);const ci=di.exports,P={"{win}":"layout-grid","{arrow-right}":"arrow-right","{arrow-left}":"arrow-left","{arrow-up}":"arrow-up","{arrow-down}":"arrow-down","{cmd}":"command"},Ee={"{plus}":"plus"},ui=Object.keys(P),fi={name:"DtKeyboardShortcut",components:{DtIcon:l.DtIcon},props:{inverted:{type:Boolean,default:!1},shortcut:{type:String,required:!0},screenReaderText:{type:String,default:null}},data(){return{SHORTCUTS_ICON_ALIASES:P,separator:/\+/gi}},computed:{icons(){return{...P,...Ee}},shortcutWithSeparator(){return this.shortcut.replace(this.separator,"{plus}")},formattedShortcut(){return Object.keys(P).reduce((e,t)=>e.replace(new RegExp("{"+t+"}","gi"),P[t]),this.shortcutWithSeparator)},formattedShortcutSplit(){const e=Object.keys(this.icons).join("|"),t=new RegExp(`(${e})`,"gi");return this.formattedShortcut.split(t).filter(Boolean)}}};var pi=function(){var t=this,n=t._self._c;return n("kbd",{class:["d-keyboard-shortcut",{"d-keyboard-shortcut--inverted":t.inverted}]},[t.screenReaderText?n("span",{staticClass:"sr-only"},[t._v(" "+t._s(t.screenReaderText)+" ")]):t._e(),t._l(t.formattedShortcutSplit,function(a,r){return[t.icons[a]?n("dt-icon",{key:`${r}-${a}`,class:["d-keyboard-shortcut__icon",{"d-keyboard-shortcut__icon--inverted":t.inverted}],attrs:{name:t.icons[a],size:"100","aria-hidden":"true"}}):n("span",{key:`${r}-${a}`,class:["d-keyboard-shortcut__item",{"d-keyboard-shortcut__item--inverted":t.inverted}],attrs:{"aria-hidden":"true"},domProps:{innerHTML:t._s(a)}})]})],2)},hi=[],mi=o.normalizeComponent(fi,pi,hi,!1,null,null,null,null);const _i=mi.exports,Rt={LEFT:"left",RIGHT:"right"},Oe=["sm","md","lg",null],gi={name:"DtRootLayout",props:{fixed:{type:Boolean,default:!0},headerClass:{type:[String,Array,Object],default:""},headerHeight:{type:String,default:"64px"},headerSticky:{type:Boolean,default:!1},contentClass:{type:[String,Array,Object],default:""},sidebarClass:{type:[String,Array,Object],default:""},sidebarWidth:{type:String,default:"256px"},sidebarPosition:{type:String,default:"left",validator:e=>Object.values(Rt).includes(e)},footerClass:{type:[String,Array,Object],default:""},footerHeight:{type:String,default:"64px"},responsiveBreakpoint:{type:String,default:null,validator:e=>Oe.includes(e)}},computed:{isInverted(){return this.sidebarPosition===Rt.RIGHT}}};var bi=function(){var t=this,n=t._self._c;return n("div",{class:["root-layout","d-root-layout",{"d-root-layout--fixed":t.fixed,"d-root-layout--inverted":t.isInverted,[`d-root-layout__responsive--${t.responsiveBreakpoint}`]:!!t.responsiveBreakpoint}],attrs:{"data-qa":"dt-root-layout"}},[n("header",{class:["d-root-layout__header",{"d-root-layout__header--sticky":t.headerSticky},t.headerClass],attrs:{"data-qa":"dt-root-layout-header"}},[t._t("header")],2),n("aside",{ref:"root-layout-sidebar",class:["d-root-layout__sidebar",t.sidebarClass],attrs:{tabindex:"0","data-qa":"dt-root-layout-sidebar"}},[t._t("sidebar")],2),n("main",{ref:"root-layout-content",class:["d-root-layout__content",t.contentClass],attrs:{"data-qa":"dt-root-layout-content",tabindex:"0"}},[t._t("default")],2),n("footer",{class:["d-root-layout__footer",t.footerClass],attrs:{"data-qa":"dt-root-layout-footer"}},[t._t("footer")],2)])},vi=[],yi=o.normalizeComponent(gi,bi,vi,!1,null,null,null,null);const Si=yi.exports;function F(e){"@babel/helpers - typeof";return F=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},F(e)}function S(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function h(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function m(e){h(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||F(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[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 q(e,t){h(2,arguments);var n=m(e),a=S(t);return isNaN(a)?new Date(NaN):(a&&n.setDate(n.getDate()+a),n)}function ct(e,t){h(2,arguments);var n=m(e),a=S(t);if(isNaN(a))return new Date(NaN);if(!a)return n;var r=n.getDate(),i=new Date(n.getTime());i.setMonth(n.getMonth()+a+1,0);var s=i.getDate();return r>=s?i:(n.setFullYear(i.getFullYear(),i.getMonth(),r),n)}function W(e,t){if(h(2,arguments),!t||F(t)!=="object")return new Date(NaN);var n=t.years?S(t.years):0,a=t.months?S(t.months):0,r=t.weeks?S(t.weeks):0,i=t.days?S(t.days):0,s=t.hours?S(t.hours):0,d=t.minutes?S(t.minutes):0,f=t.seconds?S(t.seconds):0,p=m(e),b=a||n?ct(p,a+n*12):p,c=i||r?q(b,i+r*7):b,g=d+s*60,_=f+g*60,v=_*1e3,D=new Date(c.getTime()+v);return D}function Ci(e,t){h(2,arguments);var n=m(e).getTime(),a=S(t);return new Date(n+a)}var Ii={};function R(){return Ii}function Mt(e,t){var n,a,r,i,s,d,f,p;h(1,arguments);var b=R(),c=S((n=(a=(r=(i=t==null?void 0:t.weekStartsOn)!==null&&i!==void 0?i:t==null||(s=t.locale)===null||s===void 0||(d=s.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&r!==void 0?r:b.weekStartsOn)!==null&&a!==void 0?a:(f=b.locale)===null||f===void 0||(p=f.options)===null||p===void 0?void 0:p.weekStartsOn)!==null&&n!==void 0?n:0);if(!(c>=0&&c<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var g=m(e),_=g.getDay(),v=(_<c?7:0)+_-c;return g.setDate(g.getDate()-v),g.setHours(0,0,0,0),g}function j(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function nt(e){h(1,arguments);var t=m(e);return t.setHours(0,0,0,0),t}var Di=864e5;function Ti(e,t){h(2,arguments);var n=nt(e),a=nt(t),r=n.getTime()-j(n),i=a.getTime()-j(a);return Math.round((r-i)/Di)}function A(e,t){h(2,arguments);var n=m(e),a=m(t),r=n.getTime()-a.getTime();return r<0?-1:r>0?1:r}var wi=6e4,Ei=36e5;function ke(e,t){h(2,arguments);var n=nt(e),a=nt(t);return n.getTime()===a.getTime()}function Oi(e){return h(1,arguments),e instanceof Date||F(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function ki(e){if(h(1,arguments),!Oi(e)&&typeof e!="number")return!1;var t=m(e);return!isNaN(Number(t))}function Li(e,t){h(2,arguments);var n=m(e),a=m(t),r=n.getFullYear()-a.getFullYear(),i=n.getMonth()-a.getMonth();return r*12+i}function xi(e,t){h(2,arguments);var n=m(e),a=m(t);return n.getFullYear()-a.getFullYear()}function te(e,t){var n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}function Ai(e,t){h(2,arguments);var n=m(e),a=m(t),r=te(n,a),i=Math.abs(Ti(n,a));n.setDate(n.getDate()-r*i);var s=+(te(n,a)===-r),d=r*(i-s);return d===0?0:d}function Kt(e,t){return h(2,arguments),m(e).getTime()-m(t).getTime()}var ee={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}},$i="trunc";function jt(e){return e?ee[e]:ee[$i]}function Ri(e,t,n){h(2,arguments);var a=Kt(e,t)/Ei;return jt(n==null?void 0:n.roundingMethod)(a)}function Mi(e,t,n){h(2,arguments);var a=Kt(e,t)/wi;return jt(n==null?void 0:n.roundingMethod)(a)}function Ni(e){h(1,arguments);var t=m(e);return t.setHours(23,59,59,999),t}function Le(e){h(1,arguments);var t=m(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function Pi(e){h(1,arguments);var t=m(e);return Ni(t).getTime()===Le(t).getTime()}function xe(e,t){h(2,arguments);var n=m(e),a=m(t),r=A(n,a),i=Math.abs(Li(n,a)),s;if(i<1)s=0;else{n.getMonth()===1&&n.getDate()>27&&n.setDate(30),n.setMonth(n.getMonth()-r*i);var d=A(n,a)===-r;Pi(m(e))&&i===1&&A(e,a)===1&&(d=!1),s=r*(i-Number(d))}return s===0?0:s}function Ae(e,t,n){h(2,arguments);var a=Kt(e,t)/1e3;return jt(n==null?void 0:n.roundingMethod)(a)}function Bi(e,t){h(2,arguments);var n=m(e),a=m(t),r=A(n,a),i=Math.abs(xi(n,a));n.setFullYear(1584),a.setFullYear(1584);var s=A(n,a)===-r,d=r*(i-Number(s));return d===0?0:d}function Fi(e){h(1,arguments);var t=m(e);return t.setDate(1),t.setHours(0,0,0,0),t}function Vi(e,t){h(2,arguments);var n=S(t);return Ci(e,-n)}var qi=864e5;function Ui(e){h(1,arguments);var t=m(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var a=t.getTime(),r=n-a;return Math.floor(r/qi)+1}function at(e){h(1,arguments);var t=1,n=m(e),a=n.getUTCDay(),r=(a<t?7:0)+a-t;return n.setUTCDate(n.getUTCDate()-r),n.setUTCHours(0,0,0,0),n}function $e(e){h(1,arguments);var t=m(e),n=t.getUTCFullYear(),a=new Date(0);a.setUTCFullYear(n+1,0,4),a.setUTCHours(0,0,0,0);var r=at(a),i=new Date(0);i.setUTCFullYear(n,0,4),i.setUTCHours(0,0,0,0);var s=at(i);return t.getTime()>=r.getTime()?n+1:t.getTime()>=s.getTime()?n:n-1}function Hi(e){h(1,arguments);var t=$e(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var a=at(n);return a}var Wi=6048e5;function zi(e){h(1,arguments);var t=m(e),n=at(t).getTime()-Hi(t).getTime();return Math.round(n/Wi)+1}function rt(e,t){var n,a,r,i,s,d,f,p;h(1,arguments);var b=R(),c=S((n=(a=(r=(i=t==null?void 0:t.weekStartsOn)!==null&&i!==void 0?i:t==null||(s=t.locale)===null||s===void 0||(d=s.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&r!==void 0?r:b.weekStartsOn)!==null&&a!==void 0?a:(f=b.locale)===null||f===void 0||(p=f.options)===null||p===void 0?void 0:p.weekStartsOn)!==null&&n!==void 0?n:0);if(!(c>=0&&c<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var g=m(e),_=g.getUTCDay(),v=(_<c?7:0)+_-c;return g.setUTCDate(g.getUTCDate()-v),g.setUTCHours(0,0,0,0),g}function Re(e,t){var n,a,r,i,s,d,f,p;h(1,arguments);var b=m(e),c=b.getUTCFullYear(),g=R(),_=S((n=(a=(r=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(s=t.locale)===null||s===void 0||(d=s.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&r!==void 0?r:g.firstWeekContainsDate)!==null&&a!==void 0?a:(f=g.locale)===null||f===void 0||(p=f.options)===null||p===void 0?void 0:p.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(_>=1&&_<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var v=new Date(0);v.setUTCFullYear(c+1,0,_),v.setUTCHours(0,0,0,0);var D=rt(v,t),I=new Date(0);I.setUTCFullYear(c,0,_),I.setUTCHours(0,0,0,0);var w=rt(I,t);return b.getTime()>=D.getTime()?c+1:b.getTime()>=w.getTime()?c:c-1}function Yi(e,t){var n,a,r,i,s,d,f,p;h(1,arguments);var b=R(),c=S((n=(a=(r=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(s=t.locale)===null||s===void 0||(d=s.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&r!==void 0?r:b.firstWeekContainsDate)!==null&&a!==void 0?a:(f=b.locale)===null||f===void 0||(p=f.options)===null||p===void 0?void 0:p.firstWeekContainsDate)!==null&&n!==void 0?n:1),g=Re(e,t),_=new Date(0);_.setUTCFullYear(g,0,c),_.setUTCHours(0,0,0,0);var v=rt(_,t);return v}var Ki=6048e5;function ji(e,t){h(1,arguments);var n=m(e),a=rt(n,t).getTime()-Yi(n,t).getTime();return Math.round(a/Ki)+1}function y(e,t){for(var n=e<0?"-":"",a=Math.abs(e).toString();a.length<t;)a="0"+a;return n+a}var Gi={y:function(t,n){var a=t.getUTCFullYear(),r=a>0?a:1-a;return y(n==="yy"?r%100:r,n.length)},M:function(t,n){var a=t.getUTCMonth();return n==="M"?String(a+1):y(a+1,2)},d:function(t,n){return y(t.getUTCDate(),n.length)},a:function(t,n){var a=t.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return a.toUpperCase();case"aaa":return a;case"aaaaa":return a[0];case"aaaa":default:return a==="am"?"a.m.":"p.m."}},h:function(t,n){return y(t.getUTCHours()%12||12,n.length)},H:function(t,n){return y(t.getUTCHours(),n.length)},m:function(t,n){return y(t.getUTCMinutes(),n.length)},s:function(t,n){return y(t.getUTCSeconds(),n.length)},S:function(t,n){var a=n.length,r=t.getUTCMilliseconds(),i=Math.floor(r*Math.pow(10,a-3));return y(i,n.length)}};const O=Gi;var N={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Qi={G:function(t,n,a){var r=t.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return a.era(r,{width:"abbreviated"});case"GGGGG":return a.era(r,{width:"narrow"});case"GGGG":default:return a.era(r,{width:"wide"})}},y:function(t,n,a){if(n==="yo"){var r=t.getUTCFullYear(),i=r>0?r:1-r;return a.ordinalNumber(i,{unit:"year"})}return O.y(t,n)},Y:function(t,n,a,r){var i=Re(t,r),s=i>0?i:1-i;if(n==="YY"){var d=s%100;return y(d,2)}return n==="Yo"?a.ordinalNumber(s,{unit:"year"}):y(s,n.length)},R:function(t,n){var a=$e(t);return y(a,n.length)},u:function(t,n){var a=t.getUTCFullYear();return y(a,n.length)},Q:function(t,n,a){var r=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"Q":return String(r);case"QQ":return y(r,2);case"Qo":return a.ordinalNumber(r,{unit:"quarter"});case"QQQ":return a.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return a.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return a.quarter(r,{width:"wide",context:"formatting"})}},q:function(t,n,a){var r=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"q":return String(r);case"qq":return y(r,2);case"qo":return a.ordinalNumber(r,{unit:"quarter"});case"qqq":return a.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return a.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return a.quarter(r,{width:"wide",context:"standalone"})}},M:function(t,n,a){var r=t.getUTCMonth();switch(n){case"M":case"MM":return O.M(t,n);case"Mo":return a.ordinalNumber(r+1,{unit:"month"});case"MMM":return a.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return a.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return a.month(r,{width:"wide",context:"formatting"})}},L:function(t,n,a){var r=t.getUTCMonth();switch(n){case"L":return String(r+1);case"LL":return y(r+1,2);case"Lo":return a.ordinalNumber(r+1,{unit:"month"});case"LLL":return a.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return a.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return a.month(r,{width:"wide",context:"standalone"})}},w:function(t,n,a,r){var i=ji(t,r);return n==="wo"?a.ordinalNumber(i,{unit:"week"}):y(i,n.length)},I:function(t,n,a){var r=zi(t);return n==="Io"?a.ordinalNumber(r,{unit:"week"}):y(r,n.length)},d:function(t,n,a){return n==="do"?a.ordinalNumber(t.getUTCDate(),{unit:"date"}):O.d(t,n)},D:function(t,n,a){var r=Ui(t);return n==="Do"?a.ordinalNumber(r,{unit:"dayOfYear"}):y(r,n.length)},E:function(t,n,a){var r=t.getUTCDay();switch(n){case"E":case"EE":case"EEE":return a.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return a.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return a.day(r,{width:"short",context:"formatting"});case"EEEE":default:return a.day(r,{width:"wide",context:"formatting"})}},e:function(t,n,a,r){var i=t.getUTCDay(),s=(i-r.weekStartsOn+8)%7||7;switch(n){case"e":return String(s);case"ee":return y(s,2);case"eo":return a.ordinalNumber(s,{unit:"day"});case"eee":return a.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return a.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return a.day(i,{width:"short",context:"formatting"});case"eeee":default:return a.day(i,{width:"wide",context:"formatting"})}},c:function(t,n,a,r){var i=t.getUTCDay(),s=(i-r.weekStartsOn+8)%7||7;switch(n){case"c":return String(s);case"cc":return y(s,n.length);case"co":return a.ordinalNumber(s,{unit:"day"});case"ccc":return a.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return a.day(i,{width:"narrow",context:"standalone"});case"cccccc":return a.day(i,{width:"short",context:"standalone"});case"cccc":default:return a.day(i,{width:"wide",context:"standalone"})}},i:function(t,n,a){var r=t.getUTCDay(),i=r===0?7:r;switch(n){case"i":return String(i);case"ii":return y(i,n.length);case"io":return a.ordinalNumber(i,{unit:"day"});case"iii":return a.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return a.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return a.day(r,{width:"short",context:"formatting"});case"iiii":default:return a.day(r,{width:"wide",context:"formatting"})}},a:function(t,n,a){var r=t.getUTCHours(),i=r/12>=1?"pm":"am";switch(n){case"a":case"aa":return a.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return a.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return a.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return a.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(t,n,a){var r=t.getUTCHours(),i;switch(r===12?i=N.noon:r===0?i=N.midnight:i=r/12>=1?"pm":"am",n){case"b":case"bb":return a.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return a.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return a.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return a.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(t,n,a){var r=t.getUTCHours(),i;switch(r>=17?i=N.evening:r>=12?i=N.afternoon:r>=4?i=N.morning:i=N.night,n){case"B":case"BB":case"BBB":return a.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return a.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return a.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(t,n,a){if(n==="ho"){var r=t.getUTCHours()%12;return r===0&&(r=12),a.ordinalNumber(r,{unit:"hour"})}return O.h(t,n)},H:function(t,n,a){return n==="Ho"?a.ordinalNumber(t.getUTCHours(),{unit:"hour"}):O.H(t,n)},K:function(t,n,a){var r=t.getUTCHours()%12;return n==="Ko"?a.ordinalNumber(r,{unit:"hour"}):y(r,n.length)},k:function(t,n,a){var r=t.getUTCHours();return r===0&&(r=24),n==="ko"?a.ordinalNumber(r,{unit:"hour"}):y(r,n.length)},m:function(t,n,a){return n==="mo"?a.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):O.m(t,n)},s:function(t,n,a){return n==="so"?a.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):O.s(t,n)},S:function(t,n){return O.S(t,n)},X:function(t,n,a,r){var i=r._originalDate||t,s=i.getTimezoneOffset();if(s===0)return"Z";switch(n){case"X":return ae(s);case"XXXX":case"XX":return x(s);case"XXXXX":case"XXX":default:return x(s,":")}},x:function(t,n,a,r){var i=r._originalDate||t,s=i.getTimezoneOffset();switch(n){case"x":return ae(s);case"xxxx":case"xx":return x(s);case"xxxxx":case"xxx":default:return x(s,":")}},O:function(t,n,a,r){var i=r._originalDate||t,s=i.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+ne(s,":");case"OOOO":default:return"GMT"+x(s,":")}},z:function(t,n,a,r){var i=r._originalDate||t,s=i.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+ne(s,":");case"zzzz":default:return"GMT"+x(s,":")}},t:function(t,n,a,r){var i=r._originalDate||t,s=Math.floor(i.getTime()/1e3);return y(s,n.length)},T:function(t,n,a,r){var i=r._originalDate||t,s=i.getTime();return y(s,n.length)}};function ne(e,t){var n=e>0?"-":"+",a=Math.abs(e),r=Math.floor(a/60),i=a%60;if(i===0)return n+String(r);var s=t||"";return n+String(r)+s+y(i,2)}function ae(e,t){if(e%60===0){var n=e>0?"-":"+";return n+y(Math.abs(e)/60,2)}return x(e,t)}function x(e,t){var n=t||"",a=e>0?"-":"+",r=Math.abs(e),i=y(Math.floor(r/60),2),s=y(r%60,2);return a+i+n+s}const Zi=Qi;var re=function(t,n){switch(t){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"})}},Me=function(t,n){switch(t){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"})}},Xi=function(t,n){var a=t.match(/(P+)(p+)?/)||[],r=a[1],i=a[2];if(!i)return re(t,n);var s;switch(r){case"P":s=n.dateTime({width:"short"});break;case"PP":s=n.dateTime({width:"medium"});break;case"PPP":s=n.dateTime({width:"long"});break;case"PPPP":default:s=n.dateTime({width:"full"});break}return s.replace("{{date}}",re(r,n)).replace("{{time}}",Me(i,n))},Ji={p:Me,P:Xi};const ts=Ji;var es=["D","DD"],ns=["YY","YYYY"];function as(e){return es.indexOf(e)!==-1}function rs(e){return ns.indexOf(e)!==-1}function ie(e,t,n){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) 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(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) 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 is={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"}},ss=function(t,n,a){var r,i=is[t];return typeof i=="string"?r=i:n===1?r=i.one:r=i.other.replace("{{count}}",n.toString()),a!=null&&a.addSuffix?a.comparison&&a.comparison>0?"in "+r:r+" ago":r};const os=ss;function St(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,a=e.formats[n]||e.formats[e.defaultWidth];return a}}var ls={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},ds={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},cs={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},us={date:St({formats:ls,defaultWidth:"full"}),time:St({formats:ds,defaultWidth:"full"}),dateTime:St({formats:cs,defaultWidth:"full"})};const fs=us;var ps={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},hs=function(t,n,a,r){return ps[t]};const ms=hs;function z(e){return function(t,n){var a=n!=null&&n.context?String(n.context):"standalone",r;if(a==="formatting"&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,s=n!=null&&n.width?String(n.width):i;r=e.formattingValues[s]||e.formattingValues[i]}else{var d=e.defaultWidth,f=n!=null&&n.width?String(n.width):e.defaultWidth;r=e.values[f]||e.values[d]}var p=e.argumentCallback?e.argumentCallback(t):t;return r[p]}}var _s={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},gs={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},bs={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"]},vs={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"]},ys={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"}},Ss={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"}},Cs=function(t,n){var a=Number(t),r=a%100;if(r>20||r<10)switch(r%10){case 1:return a+"st";case 2:return a+"nd";case 3:return a+"rd"}return a+"th"},Is={ordinalNumber:Cs,era:z({values:_s,defaultWidth:"wide"}),quarter:z({values:gs,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:z({values:bs,defaultWidth:"wide"}),day:z({values:vs,defaultWidth:"wide"}),dayPeriod:z({values:ys,defaultWidth:"wide",formattingValues:Ss,defaultFormattingWidth:"wide"})};const Ds=Is;function Y(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=n.width,r=a&&e.matchPatterns[a]||e.matchPatterns[e.defaultMatchWidth],i=t.match(r);if(!i)return null;var s=i[0],d=a&&e.parsePatterns[a]||e.parsePatterns[e.defaultParseWidth],f=Array.isArray(d)?ws(d,function(c){return c.test(s)}):Ts(d,function(c){return c.test(s)}),p;p=e.valueCallback?e.valueCallback(f):f,p=n.valueCallback?n.valueCallback(p):p;var b=t.slice(s.length);return{value:p,rest:b}}}function Ts(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function ws(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}function Es(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=t.match(e.matchPattern);if(!a)return null;var r=a[0],i=t.match(e.parsePattern);if(!i)return null;var s=e.valueCallback?e.valueCallback(i[0]):i[0];s=n.valueCallback?n.valueCallback(s):s;var d=t.slice(r.length);return{value:s,rest:d}}}var Os=/^(\d+)(th|st|nd|rd)?/i,ks=/\d+/i,Ls={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},xs={any:[/^b/i,/^(a|c)/i]},As={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},$s={any:[/1/i,/2/i,/3/i,/4/i]},Rs={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},Ms={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]},Ns={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},Ps={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]},Bs={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},Fs={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}},Vs={ordinalNumber:Es({matchPattern:Os,parsePattern:ks,valueCallback:function(t){return parseInt(t,10)}}),era:Y({matchPatterns:Ls,defaultMatchWidth:"wide",parsePatterns:xs,defaultParseWidth:"any"}),quarter:Y({matchPatterns:As,defaultMatchWidth:"wide",parsePatterns:$s,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Y({matchPatterns:Rs,defaultMatchWidth:"wide",parsePatterns:Ms,defaultParseWidth:"any"}),day:Y({matchPatterns:Ns,defaultMatchWidth:"wide",parsePatterns:Ps,defaultParseWidth:"any"}),dayPeriod:Y({matchPatterns:Bs,defaultMatchWidth:"any",parsePatterns:Fs,defaultParseWidth:"any"})};const qs=Vs;var Us={code:"en-US",formatDistance:os,formatLong:fs,formatRelative:ms,localize:Ds,match:qs,options:{weekStartsOn:0,firstWeekContainsDate:1}};const Gt=Us;var Hs=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Ws=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,zs=/^'([^]*?)'?$/,Ys=/''/g,Ks=/[a-zA-Z]/;function Ne(e,t,n){var a,r,i,s,d,f,p,b,c,g,_,v,D,I,w,M,L,bt;h(2,arguments);var Je=String(t),U=R(),H=(a=(r=n==null?void 0:n.locale)!==null&&r!==void 0?r:U.locale)!==null&&a!==void 0?a:Gt,vt=S((i=(s=(d=(f=n==null?void 0:n.firstWeekContainsDate)!==null&&f!==void 0?f:n==null||(p=n.locale)===null||p===void 0||(b=p.options)===null||b===void 0?void 0:b.firstWeekContainsDate)!==null&&d!==void 0?d:U.firstWeekContainsDate)!==null&&s!==void 0?s:(c=U.locale)===null||c===void 0||(g=c.options)===null||g===void 0?void 0:g.firstWeekContainsDate)!==null&&i!==void 0?i:1);if(!(vt>=1&&vt<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var yt=S((_=(v=(D=(I=n==null?void 0:n.weekStartsOn)!==null&&I!==void 0?I:n==null||(w=n.locale)===null||w===void 0||(M=w.options)===null||M===void 0?void 0:M.weekStartsOn)!==null&&D!==void 0?D:U.weekStartsOn)!==null&&v!==void 0?v:(L=U.locale)===null||L===void 0||(bt=L.options)===null||bt===void 0?void 0:bt.weekStartsOn)!==null&&_!==void 0?_:0);if(!(yt>=0&&yt<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!H.localize)throw new RangeError("locale must contain localize property");if(!H.formatLong)throw new RangeError("locale must contain formatLong property");var X=m(e);if(!ki(X))throw new RangeError("Invalid time value");var tn=j(X),en=Vi(X,tn),nn={firstWeekContainsDate:vt,weekStartsOn:yt,locale:H,_originalDate:X},an=Je.match(Ws).map(function(T){var E=T[0];if(E==="p"||E==="P"){var J=ts[E];return J(T,H.formatLong)}return T}).join("").match(Hs).map(function(T){if(T==="''")return"'";var E=T[0];if(E==="'")return js(T);var J=Zi[E];if(J)return!(n!=null&&n.useAdditionalWeekYearTokens)&&rs(T)&&ie(T,t,String(e)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&as(T)&&ie(T,t,String(e)),J(en,T,H.localize,nn);if(E.match(Ks))throw new RangeError("Format string contains an unescaped latin alphabet character `"+E+"`");return T}).join("");return an}function js(e){var t=e.match(zs);return t?t[1].replace(Ys,"'"):e}function Pe(e,t){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function Gs(e){return Pe({},e)}var se=1440,Qs=2520,Ct=43200,Zs=86400;function Xs(e,t,n){var a,r;h(2,arguments);var i=R(),s=(a=(r=n==null?void 0:n.locale)!==null&&r!==void 0?r:i.locale)!==null&&a!==void 0?a:Gt;if(!s.formatDistance)throw new RangeError("locale must contain formatDistance property");var d=A(e,t);if(isNaN(d))throw new RangeError("Invalid time value");var f=Pe(Gs(n),{addSuffix:!!(n!=null&&n.addSuffix),comparison:d}),p,b;d>0?(p=m(t),b=m(e)):(p=m(e),b=m(t));var c=Ae(b,p),g=(j(b)-j(p))/1e3,_=Math.round((c-g)/60),v;if(_<2)return n!=null&&n.includeSeconds?c<5?s.formatDistance("lessThanXSeconds",5,f):c<10?s.formatDistance("lessThanXSeconds",10,f):c<20?s.formatDistance("lessThanXSeconds",20,f):c<40?s.formatDistance("halfAMinute",0,f):c<60?s.formatDistance("lessThanXMinutes",1,f):s.formatDistance("xMinutes",1,f):_===0?s.formatDistance("lessThanXMinutes",1,f):s.formatDistance("xMinutes",_,f);if(_<45)return s.formatDistance("xMinutes",_,f);if(_<90)return s.formatDistance("aboutXHours",1,f);if(_<se){var D=Math.round(_/60);return s.formatDistance("aboutXHours",D,f)}else{if(_<Qs)return s.formatDistance("xDays",1,f);if(_<Ct){var I=Math.round(_/se);return s.formatDistance("xDays",I,f)}else if(_<Zs)return v=Math.round(_/Ct),s.formatDistance("aboutXMonths",v,f)}if(v=xe(b,p),v<12){var w=Math.round(_/Ct);return s.formatDistance("xMonths",w,f)}else{var M=v%12,L=Math.floor(v/12);return M<3?s.formatDistance("aboutXYears",L,f):M<9?s.formatDistance("overXYears",L,f):s.formatDistance("almostXYears",L+1,f)}}var Js=["years","months","weeks","days","hours","minutes","seconds"];function to(e,t){var n,a,r,i,s;if(arguments.length<1)throw new TypeError("1 argument required, but only ".concat(arguments.length," present"));var d=R(),f=(n=(a=t==null?void 0:t.locale)!==null&&a!==void 0?a:d.locale)!==null&&n!==void 0?n:Gt,p=(r=t==null?void 0:t.format)!==null&&r!==void 0?r:Js,b=(i=t==null?void 0:t.zero)!==null&&i!==void 0?i:!1,c=(s=t==null?void 0:t.delimiter)!==null&&s!==void 0?s:" ";if(!f.formatDistance)return"";var g=p.reduce(function(_,v){var D="x".concat(v.replace(/(^.)/,function(w){return w.toUpperCase()})),I=e[v];return typeof I=="number"&&(b||e[v])?_.concat(f.formatDistance(D,I)):_},[]).join(c);return g}function Qt(e){h(1,arguments);var t=m(e),n=t.getDate();return n}function it(e){h(1,arguments);var t=m(e),n=t.getDay();return n}function eo(e){h(1,arguments);var t=m(e),n=t.getFullYear(),a=t.getMonth(),r=new Date(0);return r.setFullYear(n,a+1,0),r.setHours(0,0,0,0),r.getDate()}function tt(e){h(1,arguments);var t=m(e),n=t.getMonth();return n}function Nt(e){return h(1,arguments),m(e).getFullYear()}function no(e){h(1,arguments);var t=m(e.start),n=m(e.end);if(isNaN(t.getTime()))throw new RangeError("Start Date is invalid");if(isNaN(n.getTime()))throw new RangeError("End Date is invalid");var a={};a.years=Math.abs(Bi(n,t));var r=A(n,t),i=W(t,{years:r*a.years});a.months=Math.abs(xe(n,i));var s=W(i,{months:r*a.months});a.days=Math.abs(Ai(n,s));var d=W(s,{days:r*a.days});a.hours=Math.abs(Ri(n,d));var f=W(d,{hours:r*a.hours});a.minutes=Math.abs(Mi(n,f));var p=W(f,{minutes:r*a.minutes});return a.seconds=Math.abs(Ae(n,p)),a}function ao(e,t){h(2,arguments);var n=m(e),a=m(t);return n.getTime()===a.getTime()}function ro(e,t,n){h(2,arguments);var a=Mt(e,n),r=Mt(t,n);return a.getTime()===r.getTime()}function io(e,t){h(2,arguments);var n=m(e),a=m(t);return n.getFullYear()===a.getFullYear()}function so(e,t){return h(1,arguments),ro(e,Date.now(),t)}function oo(e){return h(1,arguments),io(e,Date.now())}function lo(e){return h(1,arguments),ke(e,Date.now())}function co(e,t){h(2,arguments);var n=S(t);return q(e,-n)}function uo(e){return h(1,arguments),ke(e,co(Date.now(),1))}function fo(e,t){h(2,arguments);var n=m(e),a=S(t),r=n.getFullYear(),i=n.getDate(),s=new Date(0);s.setFullYear(r,a,15),s.setHours(0,0,0,0);var d=eo(s);return n.setMonth(a,Math.min(i,d)),n}function po(e,t){if(h(2,arguments),F(t)!=="object"||t===null)throw new RangeError("values parameter must be an object");var n=m(e);return isNaN(n.getTime())?new Date(NaN):(t.year!=null&&n.setFullYear(t.year),t.month!=null&&(n=fo(n,t.month)),t.date!=null&&n.setDate(S(t.date)),t.hours!=null&&n.setHours(S(t.hours)),t.minutes!=null&&n.setMinutes(S(t.minutes)),t.seconds!=null&&n.setSeconds(S(t.seconds)),t.milliseconds!=null&&n.setMilliseconds(S(t.milliseconds)),n)}function Be(e,t){h(2,arguments);var n=S(t);return ct(e,-n)}const Fe=0,ho="MMMM",mo="long",Pt=e=>e?new Date(e):new Date,_o=(e,t,n)=>{const a=Pt(JSON.parse(JSON.stringify(e))),r=[];for(let i=0;i<7;i++){const s=q(a,i),d=tt(s)!==t;r.push({text:s.getDate(),value:s,currentMonth:!d,isFirstDayOfMonth:s.getDate()===1&&!d,selected:n?s.getDate()===n&&!d:!1})}return r},go=(e,t)=>!e||!t?!1:ao(e,t),bo=(e,t,n)=>{const a=[],r=Pt(new Date(t,e)),i=Pt(new Date(t,e+1,0)),d=Mt(r,{weekStartsOn:Fe}),f=p=>{const b=_o(p,e,n);if(a.push({days:b}),!a[a.length-1].days.some(c=>go(c.value,i))){const c=q(p,7);f(c)}};return f(d),a},vo=(e,t)=>{const n=[1,2,3,4,5,6,7].map(i=>new Intl.DateTimeFormat(e,{weekday:"short",timeZone:"UTC"}).format(new Date(`2017-01-0${i}T00:00:00+00:00`)).slice(0,2)),a=n.slice(0,t),r=n.slice(t+1,n.length);return[n[t]].concat(...r).concat(...a)},yo=(e,t,n)=>new Intl.DateTimeFormat(n,{month:t}).format(new Date(2e3,e,1)),So=e=>{const t=new Date(e),n=it(t),a=ct(t,1),r=Fi(a),i=it(r),s=(n-i+7)%7,d=q(r,s);return Qt(d)},Co=e=>{const t=new Date(e),n=it(t);let r=Le(Be(t,1));for(;it(r)!==n;)r=q(r,-1);return Qt(r)},Io={name:"DtDatepickerMonthYearPicker",components:{DtButton:l.DtButton,DtTooltip:o.DtTooltip,DtStack:u.DtStack,DtIcon:l.DtIcon},props:{locale:{type:String,required:!0},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-first-day","focus-last-day","close-datepicker"],data(){return{selectMonth:tt(this.selectedDate),selectYear:Nt(this.selectedDate),highlightedDay:null,focusPicker:0,focusRefs:[],refNames:["prevYearButtonRef","prevMonthButtonRef","nextMonthButtonRef","nextYearButtonRef"]}},computed:{calendarDays(){return bo(this.selectMonth,this.selectYear,this.highlightedDay)},formattedMonth(){return e=>yo(e,mo,this.locale)}},watch:{selectMonth:{handler(){this.highlightDay(),this.$emit("calendar-days",this.calendarDays)},immediate:!0},selectYear:{handler(){this.highlightDay(),this.$emit("calendar-days",this.calendarDays)},immediate:!0}},mounted(){this.setButtonsRef(),this.focusMonthYearPicker()},methods:{setButtonsRef(){this.focusRefs=this.refNames.map(e=>this.$refs[e])},focusMonthYearPicker(){this.focusPicker=0,this.focusRefs[0].$el.focus()},handleKeyDown(e){switch(e.key){case"ArrowLeft":e.preventDefault(),this.focusPicker===0?(this.focusPicker=3,this.focusRefs[this.focusPicker].$el.focus()):(this.focusPicker--,this.focusRefs[this.focusPicker].$el.focus());break;case"ArrowRight":e.preventDefault(),this.focusPicker===3?(this.focusPicker=0,this.focusRefs[this.focusPicker].$el.focus()):(this.focusPicker++,this.focusRefs[this.focusPicker].$el.focus());break;case"ArrowDown":e.preventDefault(),this.$emit("focus-first-day");break;case"Tab":e.preventDefault(),this.$emit("focus-first-day");break;case"Escape":this.$emit("close-datepicker");break}},highlightDay(){const e=Nt(this.selectedDate),t=tt(this.selectedDate);e!==this.selectYear||t!==this.selectMonth?this.highlightedDay=null:this.highlightedDay=Qt(this.selectedDate)},changeMonth(e){(this.selectMonth===0&&e===-1||this.selectMonth===11&&e===1)&&(this.selectYear+=e);const t=po(this.selectedDate,{month:this.selectMonth,year:this.selectYear}),n=e===1?ct(t,1):Be(t,1);this.selectMonth=tt(n)},changeYear(e){this.selectYear=this.selectYear+e},goToNextMonth(){this.changeMonth(1)},goToPrevMonth(){this.changeMonth(-1)}}};var Do=function(){var t=this,n=t._self._c;return n("dt-stack",{staticClass:"d-datepicker__month-year",attrs:{direction:"row",gap:"300"}},[n("dt-stack",{staticClass:"d-datepicker__nav",attrs:{as:"nav",direction:"row",gap:"200"}},[n("dt-tooltip",{attrs:{message:t.prevYearLabel,placement:"top"},scopedSlots:t._u([{key:"anchor",fn:function(){return[n("dt-button",{ref:t.refNames[0],staticClass:"d-datepicker__nav-btn",attrs:{id:"prevYearButton",size:"xs",importance:"clear",kind:"muted",circle:!0,type:"button","aria-label":`${t.changeToLabel} ${t.prevYearLabel} ${t.selectYear-1}`},on:{click:function(a){return t.changeYear(-1)},keydown:function(a){return t.handleKeyDown(a)}}},[n("dt-icon",{attrs:{name:"chevrons-left",size:"200"}})],1)]},proxy:!0}])}),n("dt-tooltip",{attrs:{message:t.prevMonthLabel,placement:"top"},scopedSlots:t._u([{key:"anchor",fn:function(){return[n("dt-button",{ref:t.refNames[1],staticClass:"d-datepicker__nav-btn",attrs:{id:"prevMonthButton",size:"xs",importance:"clear",kind:"muted",circle:!0,type:"button","aria-label":`${t.changeToLabel} ${t.prevMonthLabel} ${t.formattedMonth(t.selectMonth-1)}`},on:{click:function(a){return t.changeMonth(-1)},keydown:function(a){return t.handleKeyDown(a)}}},[n("dt-icon",{attrs:{name:"chevron-left",size:"200"}})],1)]},proxy:!0}])})],1),n("div",{staticClass:"d-datepicker__month-year-title",attrs:{id:"calendar-heading"}},[t._v(" "+t._s(t.formattedMonth(t.selectMonth))+" "+t._s(t.selectYear)+" ")]),n("dt-stack",{staticClass:"d-datepicker__nav",attrs:{as:"nav",direction:"row",gap:"200"}},[n("dt-tooltip",{attrs:{message:t.nextMonthLabel,placement:"top"},scopedSlots:t._u([{key:"anchor",fn:function(){return[n("dt-button",{ref:t.refNames[2],staticClass:"d-datepicker__nav-btn",attrs:{id:"nextMonthButton",size:"xs",importance:"clear",circle:!0,kind:"muted",type:"button","aria-label":`${t.changeToLabel} ${t.nextMonthLabel} ${t.formattedMonth(t.selectMonth+1)}`},on:{click:function(a){return t.changeMonth(1)},keydown:function(a){return t.handleKeyDown(a)}}},[n("dt-icon",{attrs:{name:"chevron-right",size:"200"}})],1)]},proxy:!0}])}),n("dt-tooltip",{attrs:{message:t.nextYearLabel,placement:"top"},scopedSlots:t._u([{key:"anchor",fn:function(){return[n("dt-button",{ref:t.refNames[3],staticClass:"d-datepicker__nav-btn",attrs:{id:"nextYearButton",size:"xs",kind:"muted",circle:!0,importance:"clear",type:"button","aria-label":`${t.changeToLabel} ${t.nextYearLabel} ${t.selectYear+1}`},on:{click:function(a){return t.changeYear(1)},keydown:function(a){return t.handleKeyDown(a)}}},[n("dt-icon",{attrs:{name:"chevrons-right",size:"200"}})],1)]},proxy:!0}])})],1)],1)},To=[],wo=o.normalizeComponent(Io,Do,To,!1,null,null,null,null);const Eo=wo.exports,Oo={name:"DtDatepickerCalendar",components:{DtButton:l.DtButton},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"],data(){return{selectedDay:null,focusDay:0,daysRef:[]}},computed:{weekDays(){return vo(this.locale,Fe)}},watch:{calendarDays(){this.focusDay=0,this.selectedDay=null,this.daysRef=[],this.$nextTick(()=>{this.daysRef=[],this.setDayRef()})}},methods:{dayAriaLabel(e){return`${this.selectDayLabel} ${e.text} ${Ne(e.value,ho)} ${Nt(e.value)}`},setDayRef(e,t){this.calendarDays.forEach((n,a)=>{n.days.forEach((r,i)=>{const s=`buttonRef_${a}_${i}`,d=this.$refs[s];d&&r.currentMonth&&this.daysRef.push({el:d[0],day:r})})})},handleKeyDown(e){switch(e.key){case"ArrowUp":e.preventDefault(),this.focusDay-=7;try{this.daysRef[this.focusDay].el.$el.focus()}catch{const n=Co(this.daysRef[this.focusDay+7].day.value);this.$emit("go-to-prev-month"),this.$nextTick(()=>{this.setDayRef(),this.daysRef[n-1].el.$el.focus(),this.focusDay+=n-1})}break;case"ArrowDown":e.preventDefault(),this.focusDay+=7;try{this.daysRef[this.focusDay].el.$el.focus()}catch{const n=So(this.daysRef[this.focusDay-7].day.value);this.$emit("go-to-next-month"),this.$nextTick(()=>{this.setDayRef(),this.daysRef[n-1].el.$el.focus(),this.focusDay+=n-1})}break;case"ArrowLeft":e.preventDefault(),this.focusDay>0?(this.focusDay-=1,this.daysRef[this.focusDay].el.$el.focus()):(this.$emit("go-to-prev-month"),this.$nextTick(()=>{this.focusLastDay()}));break;case"ArrowRight":e.preventDefault(),this.focusDay<this.daysRef.length-1?(this.focusDay+=1,this.daysRef[this.focusDay].el.$el.focus()):(this.$emit("go-to-next-month"),this.$nextTick(()=>{this.focusFirstDay()}));break;case"Tab":e.preventDefault(),this.$emit("focus-month-year-picker");break;case"Escape":this.$emit("close-datepicker");break}},focusFirstDay(){this.focusDay=0,this.$nextTick(()=>{this.daysRef[this.focusDay].el.$el.focus()})},focusLastDay(){this.$nextTick(()=>{this.focusDay=this.daysRef.length-1,this.daysRef[this.focusDay].el.$el.focus()})},selectDay(e){e.currentMonth&&(this.selectedDay=e.text,this.$emit("select-date",e.value))}}};var ko=function(){var t=this,n=t._self._c;return n("table",{staticClass:"d-datepicker__calendar",attrs:{"aria-labelledby":"calendar-heading"}},[n("thead",[n("tr",t._l(t.weekDays,function(a){return n("th",{key:a,staticClass:"d-datepicker__cell d-datepicker__cell--header",attrs:{scope:"col"}},[n("span",{staticClass:"d-datepicker__weekday",attrs:{title:a,"aria-label":a}},[t._v(" "+t._s(a))])])}),0)]),n("tbody",t._l(t.calendarDays,function(a,r){return n("tr",{key:r},t._l(a.days,function(i,s){return n("td",{key:r+s,staticClass:"d-datepicker__cell"},[n("dt-button",{ref:`buttonRef_${r}_${s}`,refInFor:!0,staticClass:"d-datepicker__day",class:{"d-datepicker__day--disabled":!i.currentMonth,"d-datepicker__day--selected":t.selectedDay?i.text===t.selectedDay&&i.currentMonth:i.selected},attrs:{circle:!0,size:"sm",importance:"clear",disabled:!i.currentMonth,type:"button","aria-selected":t.selectedDay?i.text===t.selectedDay&&i.currentMonth:i.selected,"aria-label":t.dayAriaLabel(i)},on:{click:function(d){return t.selectDay(i)},keydown:function(d){return t.handleKeyDown(d)}}},[t._v(" "+t._s(i.text)+" ")])],1)}),0)}),0)])},Lo=[],xo=o.normalizeComponent(Oo,ko,Lo,!1,null,null,null,null);const Ao=xo.exports,$o={name:"DtDatepicker",components:{DtStack:u.DtStack,MonthYearPicker:Eo,Calendar:Ao},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"],data(){return{calendarDays:[]}},methods:{updateCalendarDays(e){this.calendarDays=e}}};var Ro=function(){var t=this,n=t._self._c;return n("dt-stack",{staticClass:"d-datepicker",attrs:{gap:"400"}},[n("div",{staticClass:"d-datepicker__hd"},[n("month-year-picker",{ref:"monthYearPicker",attrs:{locale:t.locale,"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},on:{"calendar-days":t.updateCalendarDays,"focus-first-day":function(a){return t.$refs.calendar.focusFirstDay()},"focus-last-day":function(a){return t.$refs.calendar.focusLastDay()},"close-datepicker":function(a){return t.$emit("close-datepicker")}}})],1),n("div",{staticClass:"d-datepicker__bd"},[n("calendar",{ref:"calendar",attrs:{locale:t.locale,"calendar-days":t.calendarDays,"select-day-label":t.selectDayLabel},on:{"select-date":function(a){return t.$emit("selected-date",a)},"focus-month-year-picker":function(a){return t.$refs.monthYearPicker.focusMonthYearPicker()},"close-datepicker":function(a){return t.$emit("close-datepicker")},"go-to-next-month":function(a){return t.$refs.monthYearPicker.goToNextMonth()},"go-to-prev-month":function(a){return t.$refs.monthYearPicker.goToPrevMonth()}}})],1)])},Mo=[],No=o.normalizeComponent($o,Ro,Mo,!1,null,null,null,null);const Po=No.exports;function Bo(e,t="default"){return new Intl.DateTimeFormat(t,{weekday:"long",year:"numeric",month:"long",day:"numeric"}).format(e)}function Fo(e,t="default"){return new Intl.DateTimeFormat(t,{year:"numeric",month:"long",day:"numeric"}).format(e)}function Vo(e,t="default",n=!0){const a=n?{weekday:"short",year:"numeric",month:"short",day:"numeric"}:{year:"numeric",month:"short",day:"numeric"};return new Intl.DateTimeFormat(t,a).format(e)}function qo(e,t="default",n=!1){const a=n?"short":"long";return new Intl.DateTimeFormat(t,{month:a,day:"numeric"}).format(e)}function Uo(e,t="default"){return new Intl.DateTimeFormat(t,{year:"2-digit",month:"2-digit",day:"2-digit"}).format(e)}const Ho={name:"DtRecipeComboboxWithPopover",components:{DtCombobox:me,DtPopover:u.DtPopover,ComboboxLoadingList:pe,ComboboxEmptyList:he},mixins:[u.SrOnlyCloseButtonMixin],props:{label:{type:String,required:!0},labelVisible:{type:Boolean,default:!0},size:{type:String,default:null,validator:e=>Object.values(Wt).includes(e)},description:{type:String,default:""},showList:{type:Boolean,default:null},listId:{type:String,default(){return o.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:e=>Object.keys(B).some(t=>t===e)},contentWidth:{type:String,default:null,validator:e=>u.POPOVER_CONTENT_WIDTHS.includes(e)},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:e=>u.POPOVER_APPEND_TO_VALUES.includes(e)||e instanceof HTMLElement},transition:{type:String,default:"fade"}},emits:["select","escape","highlight","opened"],data(){return{DROPDOWN_PADDING_CLASSES:B,isListShown:!1,isInputFocused:!1,isListFocused:!1,externalAnchor:o.getUniqueString()}},computed:{comboboxListeners(){return{...this.$listeners,select:this.onSelect,escape:this.onEscape,highlight:this.onHighlight}}},watch:{showList:{handler:function(e){e!==null&&(this.isListShown=e)},immediate:!0},isListShown(e){e?window.addEventListener("mousedown",this.onFocusOut):window.removeEventListener("mousedown",this.onFocusOut),this.onOpened(e)}},methods:{handleDisplayList(e){!this.hasSuggestionList&&e&&this.showComboboxList(),!this.hasSuggestionList&&!e&&this.closeComboboxList()},showComboboxList(){this.showList==null&&(this.isListShown=!0)},closeComboboxList(){this.showList==null&&(this.isListShown=!1)},onSelect(e){this.loading||(this.$emit("select",e),this.hasSuggestionList||this.closeComboboxList())},onEscape(){this.$emit("escape"),this.closeComboboxList()},onHighlight(e){this.loading||this.$emit("highlight",e)},onOpened(e){this.$emit("opened",e)},onFocusIn(e){var t;this.hasSuggestionList&&e&&((t=this.$refs.input)==null?void 0:t.querySelector("input"))===e.target&&this.showComboboxList()},onFocusOut(e){var a,r,i;const t=(r=(a=this.$refs.popover)==null?void 0:a.tip)==null?void 0:r.popper,n=this.$refs.input;(i=e.composedPath())!=null&&i.some(s=>[t,n].includes(s))||this.closeComboboxList()},openOnArrowKeyPress(){this.showList!==null||this.isListShown||!this.openWithArrowKeys||this.showComboboxList()}}};var Wo=function(){var t=this,n=t._self._c;return n("dt-combobox",t._g({ref:"combobox",attrs:{loading:t.loading,label:t.label,"label-visible":t.labelVisible,size:t.size,description:t.description,"empty-list":t.emptyList,"empty-state-message":t.emptyStateMessage,"show-list":t.isListShown,"on-beginning-of-list":t.onBeginningOfList,"on-end-of-list":t.onEndOfList,"list-rendered-outside":!0,"list-id":t.listId,"data-qa":"dt-combobox"},scopedSlots:t._u([{key:"input",fn:function({inputProps:a}){return[n("div",{ref:"input",attrs:{id:t.externalAnchor},on:{focusin:t.onFocusIn,keydown:[function(r){return!r.type.indexOf("key")&&t._k(r.keyCode,"up",38,r.key,["Up","ArrowUp"])?null:t.openOnArrowKeyPress(r)},function(r){return!r.type.indexOf("key")&&t._k(r.keyCode,"down",40,r.key,["Down","ArrowDown"])?null:t.openOnArrowKeyPress(r)}]}},[t._t("input",null,{inputProps:a,onInput:t.handleDisplayList})],2)]}},{key:"list",fn:function({opened:a,listProps:r,clearHighlightIndex:i}){return[n("dt-popover",{ref:"popover",attrs:{open:t.isListShown,"hide-on-click":!1,"max-height":t.maxHeight,"max-width":t.maxWidth,offset:t.popoverOffset,sticky:t.popoverSticky,placement:"bottom-start","initial-focus-element":"none",padding:"none",role:"listbox","external-anchor":t.externalAnchor,"content-width":t.contentWidth,"content-appear":!0,"content-tabindex":null,modal:!1,"auto-focus":!1,"append-to":t.appendTo,transition:t.transition,"visually-hidden-close-label":t.visuallyHiddenCloseLabel,"visually-hidden-close":t.visuallyHiddenClose},on:{"update:open":function(s){t.isListShown=s},opened:function(s){return a(s,arguments[1])}},scopedSlots:t._u([t.$slots.header?{key:"headerContent",fn:function(){return[n("div",{ref:"header"},[t._t("header")],2)]},proxy:!0}:null,{key:"content",fn:function(){return[n("div",{ref:"listWrapper",class:[t.DROPDOWN_PADDING_CLASSES[t.padding],t.listClass],on:{mouseleave:i,focusout:i}},[t.loading?n("combobox-loading-list",t._b({},"combobox-loading-list",r,!1)):t.emptyList&&t.emptyStateMessage?n("combobox-empty-list",t._b({attrs:{message:t.emptyStateMessage}},"combobox-empty-list",r,!1)):t._t("list",null,{listProps:r})],2)]},proxy:!0},t.$slots.footer?{key:"footerContent",fn:function(){return[n("div",{ref:"footer"},[t._t("footer")],2)]},proxy:!0}:null],null,!0)})]}}],null,!0)},t.comboboxListeners))},zo=[],Yo=o.normalizeComponent(Ho,Wo,zo,!1,null,null,null,null);const Ve=Yo.exports,qe={EXTRA_SMALL:"xs",SMALL:"sm",DEFAULT:"md"},Ue={xs:"xs",sm:"xs",md:"sm"},He={xs:1.4,sm:.4,md:.2},Ko={name:"DtRecipeComboboxMultiSelect",components:{DtRecipeComboboxWithPopover:Ve,DtInput:l.DtInput,DtChip:Yt,DtValidationMessages:l.DtValidationMessages},mixins:[u.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:e=>l.validationMessageValidator(e)},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:e=>Object.values(qe).includes(e)},appendTo:{type:[HTMLElement,String],default:"body",validator:e=>u.POPOVER_APPEND_TO_VALUES.includes(e)||e 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:Ue}},computed:{inputPlaceHolder(){var e;return((e=this.selectedItems)==null?void 0:e.length)>0?"":this.placeholder},chipListeners(){return{...this.$listeners,keyup:e=>{this.onChipKeyup(e),this.$emit("keyup",e)}}},inputListeners(){return{...this.$listeners,input:e=>{this.$emit("input",e),this.hasSuggestionList&&this.showComboboxList()},keyup:e=>{this.onInputKeyup(e),this.$emit("keyup",e)},click:e=>{this.hasSuggestionList&&this.showComboboxList()}}}},watch:{selectedItems:{async handler(){this.initSelectedItems()}},async label(){await this.$nextTick(),this.setChipsTopPosition()},async description(){await this.$nextTick(),this.setChipsTopPosition()},size:{async handler(){await this.$nextTick();const e=this.getInput();this.revertInputPadding(e),this.originalInputSize=e.getBoundingClientRect().height,this.setInputPadding(),this.setChipsTopPosition()}}},mounted(){this.resizeWindowObserver=new ResizeObserver(async()=>{this.setChipsTopPosition(),this.setInputPadding()}),this.resizeWindowObserver.observe(document.body),this.initSelectedItems()},beforeDestroy(){var e;(e=this.resizeWindowObserver)==null||e.unobserve(document.body)},methods:{async initSelectedItems(){await this.$nextTick(),this.setInputPadding(),this.setChipsTopPosition(),this.setInputMinWidth(),this.checkMaxSelected()},onChipRemove(e){var t;this.$emit("remove",e),(t=this.$refs.input)==null||t.focus()},onComboboxSelect(e){this.value="",this.$emit("select",e)},showComboboxList(){var e;this.showList==null&&((e=this.$refs.comboboxWithPopover)==null||e.showComboboxList())},closeComboboxList(){var e;this.showList==null&&((e=this.$refs.comboboxWithPopover)==null||e.closeComboboxList())},getChipButtons(){return this.$refs.chips&&this.$refs.chips.map(e=>e.$el.querySelector("button"))},getChips(){return this.$refs.chips&&this.$refs.chips.map(e=>e.$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 e;return(e=this.$refs.input)==null?void 0:e.$refs.input},onChipKeyup(e){var n;const t=(n=e.code)==null?void 0:n.toLowerCase();t==="arrowleft"?this.navigateBetweenChips(e.target,!0):t==="arrowright"&&(e.target.id===this.getLastChipButton().id?this.moveFromChipToInput():this.navigateBetweenChips(e.target,!1))},onInputKeyup(e){var n;const t=(n=e.code)==null?void 0:n.toLowerCase();this.selectedItems.length>0&&e.target.selectionStart===0&&(t==="backspace"||t==="arrowleft")&&this.moveFromInputToChip()},moveFromInputToChip(){var e;this.getLastChipButton().focus(),(e=this.$refs.input)==null||e.blur(),this.closeComboboxList()},moveFromChipToInput(){var e;this.getLastChipButton().blur(),(e=this.$refs.input)==null||e.focus(),this.showComboboxList()},navigateBetweenChips(e,t){var r;const n=this.getChipButtons().indexOf(e),a=t?n-1:n+1;a<0||a>=((r=this.$refs.chips)==null?void 0:r.length)||(this.getChipButtons()[n].blur(),this.getChipButtons()[a].focus(),this.closeComboboxList())},setChipsTopPosition(){const e=this.getInput();if(!e)return;const t=this.$refs.inputSlotWrapper,n=e.getBoundingClientRect().top-t.getBoundingClientRect().top,a=this.$refs.chipsWrapper;a.style.top=n-He[this.size]+"px"},setInputPadding(){const e=this.getLastChip(),t=this.getInput(),n=this.$refs.chipsWrapper;if(!t||(this.revertInputPadding(t),this.popoverOffset=[0,4],!e))return;const a=e.offsetLeft+this.getFullWidth(e);t.style.paddingLeft=a+"px";const r=n.getBoundingClientRect().height-4,i=e.offsetTop+2;r>this.originalInputSize&&(t.style.paddingTop=`${i}px`)},revertInputPadding(e){e.style.paddingLeft="",e.style.paddingTop="",e.style.paddingBottom=""},getFullWidth(e){const t=window.getComputedStyle(e);return e.offsetWidth+parseInt(t.marginLeft)+parseInt(t.marginRight)},setInputMinWidth(){const e=this.getFirstChip(),t=this.getInput();t&&(e?t.style.minWidth=this.getFullWidth(e)+4+"px":t.style.minWidth="")},checkMaxSelected(){this.maxSelected!==0&&(this.selectedItems.length>this.maxSelected?(this.showValidationMessages=!0,this.$emit("max-selected")):this.showValidationMessages=!1)}}};var jo=function(){var t=this,n=t._self._c;return n("dt-recipe-combobox-with-popover",{ref:"comboboxWithPopover",attrs:{label:t.label,"show-list":t.showList,"max-height":t.listMaxHeight,"popover-offset":t.popoverOffset,"has-suggestion-list":t.hasSuggestionList,"visually-hidden-close-label":t.visuallyHiddenCloseLabel,"visually-hidden-close":t.visuallyHiddenClose,"content-width":"anchor","append-to":t.appendTo,transition:t.transition},on:{select:t.onComboboxSelect},scopedSlots:t._u([{key:"input",fn:function({onInput:a}){return[n("span",{ref:"inputSlotWrapper",staticClass:"combobox__input-wrapper"},[n("span",{ref:"chipsWrapper",staticClass:"combobox__chip-wrapper"},t._l(t.selectedItems,function(r){return n("dt-chip",t._g({key:r,ref:"chips",refInFor:!0,staticClass:"combobox__chip",attrs:{"label-class":["d-chip__label"],"close-button-props":{ariaLabel:"close"},size:t.CHIP_SIZES[t.size]},on:{keyup:function(i){return!i.type.indexOf("key")&&t._k(i.keyCode,"backspace",void 0,i.key,void 0)?null:t.onChipRemove(r)},close:function(i){return t.onChipRemove(r)}}},t.chipListeners),[t._v(" "+t._s(r)+" ")])}),1),n("dt-input",t._g({ref:"input",staticClass:"combobox__input",attrs:{"aria-label":t.label,label:t.labelVisible?t.label:"",description:t.description,placeholder:t.inputPlaceHolder,"show-messages":t.showInputMessages,messages:t.inputMessages,size:t.size},on:{input:a},model:{value:t.value,callback:function(r){t.value=r},expression:"value"}},t.inputListeners)),n("dt-validation-messages",{attrs:{"validation-messages":t.maxSelectedMessage,"show-messages":t.showValidationMessages}})],1)]}},t.$slots.header?{key:"header",fn:function(){return[n("div",{ref:"header"},[t._t("header")],2)]},proxy:!0}:null,{key:"list",fn:function(){return[n("div",{ref:"list",on:{mousedown:function(a){a.preventDefault()}}},[t.loading?n("div",{staticClass:"combobox__list--loading"},[t._v(" "+t._s(t.loadingMessage)+" ")]):t._t("list")],2)]},proxy:!0},t.$slots.footer?{key:"footer",fn:function(){return[n("div",{ref:"footer"},[t._t("footer")],2)]},proxy:!0}:null],null,!0)})},Go=[],Qo=o.normalizeComponent(Ko,jo,Go,!1,null,"b2859861",null,null);const Zo=Qo.exports,Zt=["sm","md","lg","xl"],Xo={name:"DtRecipeCallbarButton",components:{DtButton:l.DtButton,DtTooltip:o.DtTooltip},inheritAttrs:!1,props:{id:{type:String,default(){return o.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:e=>e||(void 0).$slots.default},buttonClass:{type:[String,Array,Object],default:""},textClass:{type:[String,Array,Object],default:""},buttonWidthSize:{type:String,default:"xl",validator:e=>Zt.includes(e)},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{...this.$listeners,click:e=>this.$emit("click",e)}}}};var Jo=function(){var t=this,n=t._self._c;return n("dt-tooltip",{attrs:{id:t.id,offset:[0,8]},scopedSlots:t._u([{key:"anchor",fn:function(){return[n("span",{class:{"dt-recipe-callbar-button--disabled":t.disabled}},[n("dt-button",t._g(t._b({class:t.callbarButtonClass,attrs:{importance:t.buttonImportance,kind:"muted","icon-position":"top","aria-disabled":t.disabled,"aria-label":t.ariaLabel,"label-class":t.callbarButtonTextClass,width:t.buttonWidth},scopedSlots:t._u([{key:"icon",fn:function(){return[t._t("icon")]},proxy:!0}],null,!0)},"dt-button",t.$attrs,!1),t.callbarButtonListeners),[t._t("default")],2)],1)]},proxy:!0}],null,!0)},[t._t("tooltip")],2)},tl=[],el=o.normalizeComponent(Xo,Jo,tl,!1,null,null,null,null);const We=el.exports,nl={name:"DtRecipeCallbarButtonWithPopover",components:{DtRecipeCallbarButton:We,DtPopover:u.DtPopover,DtButton:l.DtButton,DtIcon:l.DtIcon},inheritAttrs:!1,props:{id:{type:String,default(){return o.utils.getUniqueString()}},ariaLabel:{type:String,default:null,validator:e=>e||(void 0).$slots.default},arrowButtonLabel:{type:String,required:!0,validator:e=>!!e},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},buttonClass:{type:[String,Array,Object],default:""},textClass:{type:[String,Array,Object],default:""},buttonWidthSize:{type:String,default:"xl",validator:e=>Zt.includes(e)},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(e){return this.$emit("arrow-click",e),this.toggleOpen()},toggleOpen(){return this.open=!this.open},syncOpenState(){this.open=this.openPopover},buttonClick(e){this.$listeners.click?this.$emit("click",e):this.arrowClick(e)},onModalIsOpened(e){this.open=e,this.$emit("opened",e)}}};var al=function(){var t=this,n=t._self._c;return n("div",{staticClass:"dt-recipe--callbar-button-with-popover"},[n("dt-recipe-callbar-button",{staticClass:"dt-recipe--callbar-button-with-popover--main-button",attrs:{"aria-label":t.ariaLabel,disabled:t.disabled,active:t.active,danger:t.danger,"button-class":t.buttonClass,"button-width-size":t.buttonWidthSize,"text-class":t.textClass},on:{click:t.buttonClick}},[t._t("icon",null,{slot:"icon"}),t._t("tooltip",null,{slot:"tooltip"}),t._t("default")],2),t.showArrowButton?n("dt-popover",t._b({staticClass:"dt-recipe--callbar-button-with-popover--popover-wrapper",attrs:{id:t.id,modal:!1,open:t.open,placement:t.placement,"initial-focus-element":t.initialFocusElement,"show-close-button":t.showCloseButton,offset:[0,16],padding:"none","dialog-class":["dt-recipe--callbar-button-with-popover--popover",t.contentClass],"header-class":"d-d-flex d-ai-center d-fw-normal d-px12","open-popover":t.showPopover},on:{opened:t.onModalIsOpened},scopedSlots:t._u([{key:"anchor",fn:function(){return[n("dt-button",{class:["dt-recipe--callbar-button-with-popover--arrow",{"dt-recipe--callbar-button-with-popover--arrow--large":!t.isCompactMode}],attrs:{circle:"",importance:"clear",size:"lg",width:"2rem","aria-label":t.arrowButtonLabel,active:t.open},on:{click:t.arrowClick},scopedSlots:t._u([{key:"icon",fn:function(){return[n("dt-icon",{staticClass:"dt-recipe--callbar-button-with-popover--arrow__icon",attrs:{name:"chevron-up",size:"200"}})]},proxy:!0}],null,!1,982444464)})]},proxy:!0}],null,!1,3818376870)},"dt-popover",t.$attrs,!1),[t._t("content",null,{slot:"content"}),t._t("headerContent",null,{slot:"headerContent"}),t._t("footerContent",null,{slot:"footerContent"})],2):t._e()],1)},rl=[],il=o.normalizeComponent(nl,al,rl,!1,null,null,null,null);const sl=il.exports,ol={name:"DtRecipeContactInfo",components:{DtAvatar:u.DtAvatar,DtListItem:u.DtListItem},props:{id:{type:String,default(){return o.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")}}};var ll=function(){var t=this,n=t._self._c;return n("dt-list-item",{staticClass:"dt-contact-info",attrs:{id:t.id,role:t.role,"element-type":"div","data-qa":"contact-info"},scopedSlots:t._u([{key:"left",fn:function(){return[t.showAvatar?n("button",{staticClass:"dt-contact-info__left",attrs:{"data-qa":"contact-info-left","aria-labelledby":t.avatarAriaLabel},on:{click:t.avatarClick}},[t.avatarList?n("span",{staticClass:"dt-contact-info--avatars"},t._l(t.avatarList,function(a,r){return n("dt-avatar",{key:r,attrs:{size:t.avatarSize,seed:a.seed,"full-name":a.fullName,"image-src":a.src,"icon-name":t.avatarIcon,"overlay-icon":a.icon,"overlay-text":a.text,"avatar-class":[{"d-mln24":r>0,"d-bc-brand":!!a.halo}]}})}),1):n("dt-avatar",{attrs:{size:t.avatarSize,"full-name":t.avatarFullName,"image-src":t.avatarSrc,"icon-name":t.avatarIcon,seed:t.avatarSeed,presence:t.presence}})],1):t._e()]},proxy:!0},{key:"default",fn:function(){return[n("div",{attrs:{"data-qa":"contact-info-header"}},[t._t("header")],2)]},proxy:!0},{key:"subtitle",fn:function(){return[n("div",{attrs:{"data-qa":"contact-info-subtitle"}},[t._t("subtitle")],2)]},proxy:!0},{key:"bottom",fn:function(){return[n("div",{attrs:{"data-qa":"contact-info-bottom"}},[t._t("bottom")],2)]},proxy:!0},{key:"right",fn:function(){return[n("div",{attrs:{"data-qa":"contact-info-right"}},[t._t("right")],2)]},proxy:!0}],null,!0)})},dl=[],cl=o.normalizeComponent(ol,ll,dl,!1,null,"20548ad1",null,null);const ul=cl.exports,ze=["green300","green100","red200","red100","gold100","gold200","black100","white"],fl={name:"DtRecipeTopBannerInfo",props:{colorCode:{type:String,default:"green300",validator:function(e){return ze.includes(e)}}},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]]}}};var pl=function(){var t=this,n=t._self._c;return n("div",{staticClass:"dt-top-banner-info",class:t.bannerInfoClass,attrs:{"data-qa":"banner-info"}},[n("div",{staticClass:"dt-top-banner-info__left"},[t._t("left")],2),n("div",{staticClass:"dt-top-banner-info__middle",attrs:{"data-qa":"banner-info--middle"}},[t._t("default")],2),n("div",{staticClass:"dt-top-banner-info__right"},[t._t("right")],2)])},hl=[],ml=o.normalizeComponent(fl,pl,hl,!1,null,null,null,null);const _l=ml.exports,ut="promptmenu",ft="promptcollect",pt="promptplay",ht="gotoexpert",Z="goto",mt="branch",_t="transfer",gt="hangup",Ye={[ut]:"keypad",[ft]:"dialer",[pt]:"volume-2",[ht]:"expert-node",[mt]:"branch",[Z]:"call-merge",[_t]:"transfer",[gt]:"phone-hang-up"},gl={[ut]:"Menu",[ft]:"Collect",[pt]:"Play",[ht]:"Expert",[mt]:"Branch",[Z]:"Go-to",[_t]:"Transfer",[gt]:"Hangup"},k={PROMPT:{normal:"d-bc-blue-200",selected:"d-bc-blue-300"},LOGIC:{normal:"d-bc-purple-200",selected:"d-bc-purple-400"},TERMINAL:{normal:"d-bc-red-100",selected:"d-bc-red-200"}},bl={[ut]:k.PROMPT,[ft]:k.PROMPT,[pt]:k.PROMPT,[ht]:k.LOGIC,[mt]:k.LOGIC,[Z]:k.LOGIC,[_t]:k.TERMINAL,[gt]:k.TERMINAL},vl={name:"DtRecipeIvrNode",components:{DtCard:fe,DtButton:l.DtButton,DtDropdown:be,DtIcon:l.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:{nodeIcon(){return Ye[this.nodeType]},headerColor(){const{normal:e,selected:t}=bl[this.nodeType];return this.isSelected?t:e},isGotoNode(){return this.nodeType===Z}},methods:{openMenu(){this.isOpen=!0}}};var yl=function(){var t=this,n=t._self._c;return n("div",t._g({staticClass:"ivr_node"},t.$listeners),[t.dtmfKey?n("div",{staticClass:"ivr-connector ivr-connector--dtmf",class:{"ivr-connector--dtmf--selected":t.isSelected},attrs:{"data-qa":"dt-top-connector-dtmf"}},[t._v(" "+t._s(t.dtmfKey)+" ")]):t._e(),t.$slots.connector?t._t("connector"):t._e(),!t.dtmfKey&&!t.$slots.connector?n("div",{staticClass:"ivr-connector",class:{"ivr-connector--selected":t.isSelected},attrs:{"data-qa":"dt-top-connector"}}):t._e(),n("dt-card",{attrs:{"content-class":"d-bt d-bc-black-300 d-px12 d-pt8 d-pb12","container-class":["d-w100p",{"d-ba d-bar8 d-baw4":t.isSelected},t.headerColor],"header-class":["d-mtn1","d-bt","d-btw4","d-p0",t.headerColor,{"d-btr4":!t.isSelected}]},scopedSlots:t._u([{key:"header",fn:function(){return[n("div",{staticClass:"ivr_node__header-left"},[n("dt-button",{attrs:{"aria-label":t.nodeType,importance:"clear",kind:"muted","data-qa":"dt-ivr-node-icon"},scopedSlots:t._u([{key:"icon",fn:function(){return[n("dt-icon",{class:["",{ivr_node__goto_icon:t.isGotoNode}],attrs:{name:t.nodeIcon,size:"200"}})]},proxy:!0}])}),n("p",{staticClass:"ivr_node__label",attrs:{"data-qa":"ivr-node-label"}},[t._v(" "+t._s(t.nodeLabel)+" ")])],1),n("dt-dropdown",{attrs:{placement:"bottom",open:t.isOpen},on:{"update:open":function(a){t.isOpen=a}},scopedSlots:t._u([{key:"anchor",fn:function(){return[n("dt-button",{attrs:{importance:"clear",kind:"muted","aria-label":t.menuButtonAriaLabel},on:{click:function(a){return a.stopPropagation(),a.preventDefault(),t.openMenu.apply(null,arguments)}},scopedSlots:t._u([{key:"icon",fn:function(){return[n("dt-icon",{attrs:{name:"more-vertical",size:"200"}})]},proxy:!0}])})]},proxy:!0},{key:"list",fn:function({close:a}){return[n("div",{staticClass:"ivr_node__dropdown-list"},[t._t("menuItems",null,{close:a})],2)]}}],null,!0)})]},proxy:!0},{key:"content",fn:function(){return[t._t("content")]},proxy:!0}],null,!0)})],2)},Sl=[],Cl=o.normalizeComponent(vl,yl,Sl,!1,null,null,null,null);const Il=Cl.exports,Dl={name:"DtRecipeGroupedChip",components:{DtChip:Yt},computed:{}};var Tl=function(){var t=this,n=t._self._c;return n("div",{staticClass:"dt-grouped-chip",attrs:{"data-qa":"grouped-chip"}},[n("dt-chip",{staticClass:"dt-chip-content dt-chip-content--left",attrs:{"hide-close":!0,interactive:!1,"content-class":"d-fs100",size:"xs","grouped-chip":!0},scopedSlots:t._u([t.$slots.leftIcon?{key:"icon",fn:function(){return[t.$slots.leftIcon?n("div",{attrs:{"data-qa":"left-grouped-chip-icon"}},[t._t("leftIcon")],2):t._e()]},proxy:!0}:null,{key:"default",fn:function(){return[t.$slots.leftContent?n("div",{attrs:{"data-qa":"left-grouped-chip-content"}},[t._t("leftContent")],2):t._e()]},proxy:!0}],null,!0)}),n("dt-chip",{staticClass:"dt-chip-content dt-chip-content--right",attrs:{"hide-close":!0,interactive:!1,"content-class":"d-fs100",size:"xs","grouped-chip":!0},scopedSlots:t._u([{key:"icon",fn:function(){return[t.$slots.rightIcon?n("div",{attrs:{"data-qa":"right-grouped-chip-icon"}},[t._t("rightIcon")],2):t._e()]},proxy:!0},{key:"default",fn:function(){return[t.$slots.rightContent?n("div",{attrs:{"data-qa":"right-grouped-chip-content"}},[t._t("rightContent")],2):t._e()]},proxy:!0}],null,!0)})],1)},wl=[],El=o.normalizeComponent(Dl,Tl,wl,!1,null,null,null,null);const Ol=El.exports,kl={name:"DtRecipeSettingsMenuButton",components:{DtButton:l.DtButton,DtIcon:l.DtIcon},props:{updateAvailable:{type:Boolean,default:!1},ariaLabel:{type:String,required:!0}},emits:["click"]};var Ll=function(){var t=this,n=t._self._c;return t.updateAvailable?n("dt-button",t._g({staticClass:"settings-menu-button-update",attrs:{importance:"outlined",size:"xs","icon-position":"right","aria-label":t.ariaLabel},scopedSlots:t._u([{key:"icon",fn:function(){return[n("dt-icon",{attrs:{name:"more-vertical",size:"300"}})]},proxy:!0}],null,!1,3418040308)},t.$listeners),[t._t("default")],2):n("dt-button",t._g({staticClass:"settings-menu-button",attrs:{importance:"clear",kind:"inverted","aria-label":t.ariaLabel},scopedSlots:t._u([{key:"icon",fn:function(){return[n("dt-icon",{attrs:{name:"more-vertical",size:"300"}})]},proxy:!0}])},t.$listeners))},xl=[],Al=o.normalizeComponent(kl,Ll,xl,!1,null,"4ee1371d",null,null);const $l=Al.exports,C={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"},Ke={[C.INBOX]:"inbox",[C.CONTACTS]:"contacts",[C.CHANNELS]:"hash",[C.THREADS]:"thread",[C.LOCKED_CHANNEL]:"lock",[C.QUICK_START]:"sparkle",[C.COACHING_GROUP]:"users",[C.COACHING_CENTER]:"external-link","locked channel unread":"lock-filled","channel unread":"hash-bold",[C.ASSIGNED]:"at-sign",[C.DIGITAL]:"laptop-2"},G={"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"},je="If type is contact center, color must be oneof the following:"+Object.keys(G).join(", "),Ge=["300","200"],Rl={name:"DtRecipeLeftbarGeneralRowIcon",components:{DtIcon:l.DtIcon},props:{type:{type:String,default:null},color:{type:String,default:null},iconSize:{type:String,default:"300"}},computed:{isIconType(){return![C.DIALBOT,C.CONTACT_CENTER].includes(this.type)},isContactCenterType(){return this.type===C.CONTACT_CENTER},isDialbotType(){return this.type===C.DIALBOT},getIconName(){return Ke[this.type]},contactCenterIconClasses(){return["dt-leftbar-row__icon-cc",G[this.color]]},dialbotClasses(){return["d-d-flex","d-ai-center","d-jc-center"]}}};var Ml=function(){var t=this,n=t._self._c;return t.isIconType?n("dt-icon",{attrs:{name:t.getIconName,size:t.iconSize}}):t.isContactCenterType?n("div",{class:t.contactCenterIconClasses}):t.isDialbotType?n("div",{class:t.dialbotClasses,attrs:{"data-qa":"general-row-dialbot"}},[n("dt-icon",{attrs:{name:"dialbot",size:"500"}})],1):t._e()},Nl=[],Pl=o.normalizeComponent(Rl,Ml,Nl,!1,null,null,null,null);const Bl=Pl.exports,Fl={name:"DtRecipeGeneralRow",components:{DtEmojiTextWrapper:Ut.DtEmojiTextWrapper,DtBadge:st,DtIcon:l.DtIcon,DtButton:l.DtButton,DtTooltip:o.DtTooltip,DtRecipeLeftbarGeneralRowIcon:Bl},inheritAttrs:!1,props:{type:{type:String,default:"inbox",validator:e=>Object.values(C).includes(e)},ariaLabel:{type:String,default:""},description:{type:String,required:!0},color:{type:String,default:null,validator:e=>Object.keys(G).includes(e)},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:e=>Ge.includes(e)}},emits:["click","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 C.CHANNELS:if(this.hasUnreads)return"channel unread";break;case C.LOCKED_CHANNEL:if(this.hasUnreads)return"locked channel unread";break}return this.type},getAriaLabel(){return this.ariaLabel?this.ariaLabel:o.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()},beforeDestroy:function(){this.resizeObserver.disconnect()},methods:{validateProps(){this.type===C.CONTACT_CENTER&&!Object.keys(G).includes(this.color)&&console.error(je)},adjustLabelWidth(){var r,i,s,d,f,p;const e=((i=(r=this.$el)==null?void 0:r.querySelector(".dt-leftbar-row__primary"))==null?void 0:i.clientWidth)||0,t=((d=(s=this.$el)==null?void 0:s.querySelector(".dt-leftbar-row__omega"))==null?void 0:d.clientWidth)||0,n=((p=(f=this.$el)==null?void 0:f.querySelector(".dt-leftbar-row__alpha"))==null?void 0:p.clientWidth)||0,a=16;this.labelWidth=e-(t+n+a)+"px"}}};var Vl=function(){var t=this,n=t._self._c;return n("div",{class:t.leftbarGeneralRowClasses,attrs:{"data-qa":"dt-leftbar-row"}},[n("a",t._g(t._b({staticClass:"dt-leftbar-row__primary",attrs:{"data-qa":"data-qa"in t.$attrs?t.$attrs["data-qa"]:"dt-leftbar-row-link","aria-label":t.getAriaLabel,title:t.description,href:"href"in t.$attrs?t.$attrs.href:"javascript:void(0)"}},"a",t.$attrs,!1),t.$listeners),[n("div",{staticClass:"dt-leftbar-row__alpha"},[t.isTyping?n("div",{staticClass:"dt-leftbar-row__is-typing"},[n("span"),n("span"),n("span")]):t._t("left",function(){return[n("dt-recipe-leftbar-general-row-icon",{attrs:{type:t.getIcon,color:t.color,"icon-size":t.iconSize,"data-qa":"dt-leftbar-row-icon"}})]})],2),n("div",{staticClass:"dt-leftbar-row__label",style:`flex-basis: ${t.labelWidth}`},[t._t("label",function(){return[n("dt-emoji-text-wrapper",{staticClass:"dt-leftbar-row__description",attrs:{"data-qa":"dt-leftbar-row-description",size:"200"}},[t._v(" "+t._s(t.description)+" ")])]})],2)]),t.hasActions?n("div",{staticClass:"dt-leftbar-row__omega"},[t.dndText?n("dt-tooltip",{attrs:{placement:"top",message:t.dndTextTooltip},scopedSlots:t._u([{key:"anchor",fn:function(){return[n("div",{ref:"dt-leftbar-row-dnd",staticClass:"dt-leftbar-row__dnd",attrs:{"data-qa":"dt-leftbar-row-dnd"}},[t._v(" "+t._s(t.dndText)+" ")])]},proxy:!0}],null,!1,490758222)}):t._e(),t.activeVoiceChat?n("div",{staticClass:"dt-leftbar-row__active-voice"},[n("dt-icon",{attrs:{size:"300",name:"waveform"}})],1):t.showUnreadCount?n("dt-tooltip",{attrs:{message:t.unreadCountTooltip,placement:"top"},scopedSlots:t._u([{key:"anchor",fn:function(){return[n("dt-badge",{staticClass:"dt-leftbar-row__unread-badge",attrs:{kind:"count",type:"bulletin","data-qa":"dt-leftbar-row-unread-badge"}},[t._v(" "+t._s(t.unreadCount)+" ")])]},proxy:!0}],null,!1,462525554)}):t._e(),t.hasCallButton?n("div",{staticClass:"dt-leftbar-row__action",attrs:{"data-qa":"dt-leftbar-row-action"}},[n("dt-tooltip",{attrs:{message:t.callButtonTooltip,placement:"top"},scopedSlots:t._u([{key:"anchor",fn:function(){return[n("dt-button",{staticClass:"dt-leftbar-row__action-button",attrs:{"data-qa":"dt-leftbar-row-action-call-button",circle:!0,size:"xs",kind:"inverted","aria-label":t.callButtonTooltip},on:{focus:function(a){t.actionFocused=!0},blur:function(a){t.actionFocused=!1},click:function(a){return a.stopPropagation(),t.$emit("call",a)}},scopedSlots:t._u([{key:"icon",fn:function(){return[n("dt-icon",{attrs:{name:"phone",size:"200"}})]},proxy:!0}],null,!1,990728611)})]},proxy:!0}],null,!1,4239858356)})],1):t._e()],1):t._e()])},ql=[],Ul=o.normalizeComponent(Fl,Vl,ql,!1,null,"8577d0d5",null,null);const Xt=Ul.exports,Hl={name:"DtRecipeGroupRow",components:{DtIcon:l.DtIcon,DtRecipeGeneralRow:Xt},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 o.safeConcatStrings([this.groupCountText,this.names])}}};var Wl=function(){var t=this,n=t._self._c;return n("dt-recipe-general-row",t._g(t._b({attrs:{description:t.names,"aria-label":t.ariaLabel,"unread-count":t.unreadCount,"has-unreads":t.hasUnreads,"unread-count-tooltip":t.unreadCountTooltip,selected:t.selected,"is-typing":t.isTyping},scopedSlots:t._u([{key:"left",fn:function(){return[n("dt-icon",{attrs:{name:"users",size:"300"}})]},proxy:!0}])},"dt-recipe-general-row",t.$attrs,!1),t.$listeners))},zl=[],Yl=o.normalizeComponent(Hl,Wl,zl,!1,null,null,null,null);const Kl=Yl.exports,jl={name:"DtRecipeContactRow",components:{DtAvatar:u.DtAvatar,DtRecipeGeneralRow:Xt,DtEmojiTextWrapper:Ut.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:["click","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}},contactDescription(){return o.safeConcatStrings([this.name,this.presenceText,this.userStatus])},iconName(){return this.noInitials?"user":null}}};var Gl=function(){var t=this,n=t._self._c;return n("dt-recipe-general-row",t._g(t._b({attrs:{"unread-count":t.unreadCount,description:t.contactDescription,"has-unreads":t.hasUnreads,selected:t.selected,"has-call-button":t.hasCallButton,muted:t.muted,"is-typing":t.isTyping,"call-button-tooltip":t.callButtonTooltip,"unread-count-tooltip":t.unreadCountTooltip},scopedSlots:t._u([{key:"left",fn:function(){return[n("dt-avatar",{attrs:{"full-name":t.name,"image-src":t.avatarSrc,"image-alt":t.avatarAlt,"icon-name":t.iconName,"icon-size":"200",size:"sm",seed:t.avatarSeed,presence:t.avatarPresence}})]},proxy:!0},{key:"label",fn:function(){return[n("dt-emoji-text-wrapper",{staticClass:"dt-leftbar-row__description",attrs:{"data-qa":"dt-leftbar-row-description",size:"200"}},[t._v(" "+t._s(t.name)+" ")]),n("div",{staticClass:"dt-leftbar-row__status"},[t.presenceText?n("span",{class:["dt-leftbar-row__meta-context",t.presenceColorClass],attrs:{"data-qa":"dt-leftbar-row-presence-text"}},[t._v(" "+t._s(t.presenceText)+" ")]):t._e(),t.userStatus?n("dt-emoji-text-wrapper",{staticClass:"dt-leftbar-row__meta-custom",attrs:{size:"100","element-type":"span","data-qa":"dt-leftbar-row-user-status"}},[t._v(" "+t._s(t.userStatus)+" ")]):t._e()],1)]},proxy:!0}])},"dt-recipe-general-row",t.$attrs,!1),t.$listeners))},Ql=[],Zl=o.normalizeComponent(jl,Gl,Ql,!1,null,null,null,null);const Xl=Zl.exports,Qe=["up","down"],Ze=["mentions","messages"],Jl={name:"DtRecipeUnreadPill",components:{DtIcon:l.DtIcon},props:{kind:{type:String,required:!0,validator:e=>Ze.includes(e)},direction:{type:String,required:!0,validator:e=>Qe.includes(e)}},emits:["click"]};var td=function(){var t=this,n=t._self._c;return n("button",t._g({class:["dt-leftbar-unread-pill",`dt-leftbar-unread-pill--${t.kind}`],attrs:{type:"button","data-qa":"dt-leftbar-unread-pill"}},t.$listeners),[n("dt-icon",{attrs:{name:`arrow-${t.direction}`,size:"300"}}),n("span",{attrs:{"data-qa":"dt-leftbar-unread-pill__label"}},[t._t("default")],2)],1)},ed=[],nd=o.normalizeComponent(Jl,td,ed,!1,null,null,null,null);const ad=nd.exports,Bt={NORMAL:"",SEARCHED:"dt-feed-item-row--state-searched",ERROR:"dt-feed-item-row--state-error"},K="NORMAL",rd={name:"DtRecipeFeedItemRow",components:{DtAvatar:u.DtAvatar,DtLazyShow:o.DtLazyShow,DtListItem:u.DtListItem,DtBadge:st},mixins:[u.Modal],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:""},labelText:{type:String,default:""},isActive:{type:Boolean,default:!1},state:{type:String,default:K,validator:e=>Object.keys(Bt).includes(e)}},emits:["hover","focus","keydown"],data(){return{transitionActive:!1}},computed:{feedListeners(){return{...this.$listeners,mouseenter:()=>this.setHover(!0),mouseleave:()=>this.setHover(!1),focusin:()=>this.setFocus(!0),focusout:()=>this.setFocus(!1),transitionend:()=>this.transitionComplete(),keydown:e=>{switch(e.code){case"Tab":this.trapFocus(e);break}this.$emit("keydown",e)}}},listItemClasses(){return["dt-feed-item-row",{"dt-feed-item-row--active":this.isActive&&this.state===K},{"dt-feed-item-row--state-transition":this.transitionActive},Bt[this.state]]}},watch:{state:{immediate:!0,handler:function(e,t){e!==K&&(this.transitionActive=!0)}}},methods:{transitionComplete(){this.state===K&&(this.transitionActive=!1)},trapFocus(e){this.focusTrappedTabPress(e)},setFocus(e){this.$emit("focus",e)},setHover(e){this.$emit("hover",e)}}};var id=function(){var t=this,n=t._self._c;return n("dt-list-item",t._g(t._b({ref:"FeedItemRef",class:["dt-feed-item-row",t.listItemClasses],attrs:{"navigation-type":"none","data-qa":"dt-feed-item-row"},scopedSlots:t._u([{key:"left",fn:function(){return[t.showHeader?n("div",{staticClass:"dt-feed-item-row__avatar-container"},[t._t("avatar",function(){return[n("dt-avatar",{attrs:{"full-name":t.displayName,"image-src":t.avatarImageUrl,seed:t.avatarSeed}})]})],2):t._e(),t.showHeader?t._e():n("span",{directives:[{name:"show",rawName:"v-show",value:t.isActive,expression:"isActive"}],staticClass:"dt-feed-item-row__left-time",attrs:{"data-qa":"dt-feed-item-row--left-time"}},[t._v(" "+t._s(t.shortTime)+" ")])]},proxy:!0},{key:"bottom",fn:function(){return[t.$slots.reactions?n("div",{staticClass:"dt-feed-item-row__reactions",attrs:{"data-qa":"dt-feed-item-row--reactions"}},[t._t("reactions")],2):t._e(),t.$slots.threading?n("div",{staticClass:"dt-feed-item-row__threading"},[t._t("threading")],2):t._e()]},proxy:!0},{key:"right",fn:function(){return[n("div",{directives:[{name:"show",rawName:"v-show",value:t.isActive,expression:"isActive"}],staticClass:"dt-feed-item-row__menu",attrs:{"data-qa":"dt-feed-item-row--menu"}},[n("dt-lazy-show",{attrs:{appear:!0,transition:"fade",show:t.isActive}},[t._t("menu")],2)],1)]},proxy:!0}],null,!0)},"dt-list-item",t.$attrs,!1),t.feedListeners),[n("article",{staticClass:"dt-feed-item-row__content"},[t.showHeader?n("div",{staticClass:"dt-feed-item-row__header",attrs:{"data-qa":"dt-feed-item-row--header"}},[n("p",{staticClass:"dt-feed-item-row__header__name"},[t._v(" "+t._s(t.displayName)+" ")]),n("time",{staticClass:"dt-feed-item-row__header__time"},[t._v(" "+t._s(t.time)+" ")]),t.labelText?n("dt-badge",{attrs:{text:t.labelText}}):t._e()],1):t._e(),n("span",{attrs:{"data-qa":"dt-feed-item-row--content"}},[t._t("default")],2)])])},sd=[],od=o.normalizeComponent(rd,id,sd,!1,null,"116b78da",null,null);const ld=od.exports,Ft={default:"dt-recipe-feed-item-pill__border-default",ai:"dt-recipe-feed-item-pill__border-ai",critical:"dt-recipe-feed-item-pill__border-critical"},dd={name:"DtRecipeFeedItemPill",components:{DtItemLayout:u.DtItemLayout,DtIcon:l.DtIcon,DtCollapsible:_e},props:{iconName:{type:String,default:()=>""},title:{type:String,default:()=>""},wrapperClass:{type:[String,Array,Object],default:""},buttonClass:{type:[String,Array,Object],default:""},ariaLabel:{type:String,required:!0},toggleable:{type:Boolean,default:()=>!0},defaultToggled:{type:Boolean,default:()=>!1},borderColor:{type:String,default:"default",validator:e=>Object.keys(Ft).includes(e)}},data(){return{hover:!1,expanded:this.defaultToggled}},computed:{computedIcon(){return this.toggleable&&this.hover?this.expanded?"chevron-down":"chevron-right":this.iconName},toggleableClass(){return this.toggleable?"d-c-pointer":""},borderClass(){return Ft[this.borderColor]}},methods:{onClick(){this.toggleable&&(this.expanded=!this.expanded)}}};var cd=function(){var t=this,n=t._self._c;return n("div",{class:["dt-recipe-feed-item-pill__border",t.borderClass,t.wrapperClass]},[n("div",{staticClass:"dt-recipe-feed-item-pill__wrapper"},[n("dt-collapsible",{attrs:{open:t.expanded},scopedSlots:t._u([{key:"anchor",fn:function(){return[n("button",{class:["dt-recipe-feed-item-pill__button",t.toggleableClass,t.buttonClass],attrs:{"data-qa":"dt-recipe-feed-item-pill","aria-label":t.ariaLabel},on:{focusin:function(a){t.hover=!0},focusout:function(a){t.hover=!1},mouseenter:function(a){t.hover=!0},mouseleave:function(a){t.hover=!1},click:t.onClick}},[n("dt-item-layout",{staticClass:"dt-recipe-feed-item-pill__layout",scopedSlots:t._u([{key:"left",fn:function(){return[n("dt-icon",{staticClass:"dt-recipe-feed-item-pill__icon",attrs:{"data-qa":"dt-recipe-feed-item-pill__icon",size:"300",name:t.computedIcon}})]},proxy:!0},{key:"subtitle",fn:function(){return[t._t("subtitle")]},proxy:!0},{key:"bottom",fn:function(){return[t._t("bottom")]},proxy:!0},{key:"right",fn:function(){return[t._t("right")]},proxy:!0}],null,!0)},[t._t("title",function(){return[n("span",{staticClass:"dt-recipe-feed-item-pill__title"},[t._v(t._s(t.title))])]})],2)],1)]},proxy:!0},{key:"content",fn:function(){return[n("div",{staticClass:"dt-recipe-feed-item-pill__content"},[t._t("content")],2)]},proxy:!0}],null,!0)})],1)])},ud=[],fd=o.normalizeComponent(dd,cd,ud,!1,null,"ebc5dd1f",null,null);const pd=fd.exports,hd={name:"DtRecipeTimePill",props:{dateTimeDisplay:{type:String,required:!0},dateTime:{type:String,required:!0,validator:e=>{const t=new Date(e);return t instanceof Date&&!isNaN(t)}}}};var md=function(){var t=this,n=t._self._c;return n("time",{staticClass:"dt-time-pill",attrs:{"data-qa":"dt-time-pill",dateTime:t.dateTime}},[t._v(" "+t._s(t.dateTimeDisplay)+" ")])},_d=[],gd=o.normalizeComponent(hd,md,_d,!1,null,null,null,null);const bd=gd.exports,Xe=["emojiUnicodeOrShortname","isSelected","ariaLabel","tooltip","num"],vd={name:"DtRecipeEmojiRow",components:{DtTooltip:o.DtTooltip,DtButton:l.DtButton,DtEmoji:l.DtEmoji,DtEmojiTextWrapper:Ut.DtEmojiTextWrapper},mixins:[],props:{reactions:{type:Array,default:()=>[],validator:e=>{for(const t of e)if(!Xe.every(a=>t[a]!==void 0))return!1;return!0}}},emits:["emoji-clicked","emoji-hovered"],methods:{emojiClicked(e){this.$emit("emoji-clicked",e.emojiUnicodeOrShortname)},emojiHovered(e,t){this.$emit("emoji-hovered",{reaction:e.emojiUnicodeOrShortname,state:t})}}};var yd=function(){var t=this,n=t._self._c;return n("span",{staticClass:"dt-emoji-row"},[t._l(t.reactions,function(a){return n("span",{key:a.unicodeOutput,attrs:{reaction:a}},[n("dt-tooltip",{staticClass:"dt-emoji-row__tooltip",attrs:{"content-class":"d-wmx464",sticky:"popper"},on:{shown:r=>t.emojiHovered(a,r)},scopedSlots:t._u([{key:"anchor",fn:function({attrs:r}){return[n("dt-button",{class:["dt-emoji-row__reaction",a.isSelected?"dt-emoji-row__reaction--selected":""],attrs:{importance:"clear",size:"sm","data-qa":"feed-item-reaction-button","aria-label":a.ariaLabel,attrs:r},on:{click:function(i){return t.emojiClicked(a)}}},[n("span",{staticClass:"dt-emoji-row__emoji"},[n("dt-emoji",{attrs:{size:"200",code:a.emojiUnicodeOrShortname}})],1),n("span",{staticClass:"dt-emoji-row__reaction-number"},[t._v(" "+t._s(a.num)+" ")])])]}}],null,!0)},[n("span",{attrs:{"aria-hidden":"true"}},[n("dt-emoji-text-wrapper",{attrs:{size:"200"}},[t._v(" "+t._s(a.tooltip)+" ")])],1)])],1)}),t._t("picker")],2)},Sd=[],Cd=o.normalizeComponent(vd,yd,Sd,!1,null,null,null,null);const Id=Cd.exports,Dd={name:"DtProgressBar",props:{progressbarAriaLabel:{type:String,required:!0},progress:{type:Number,default:20}},data:()=>({circleCircumference:50}),computed:{cssVars(){return{"--stroke-dashoffset":this.circleCircumference-this.circleCircumference*this.progress/100,"--stroke-dasharray":this.circleCircumference}}},mounted(){this.circleCircumference=this.$refs.progressbarCircle.getTotalLength()}};var Td=function(){var t=this,n=t._self._c;return n("div",{attrs:{role:"progressbar","aria-label":t.progressbarAriaLabel,tabindex:"-1","aria-valuenow":t.progress,"aria-valuemin":"0","aria-valuemax":"100"}},[n("svg",{staticClass:"progress-bar",style:t.cssVars},[n("circle",{ref:"progressbarCircle",staticClass:"progress-bar__circle",attrs:{r:"8",cx:"12",cy:"12"}}),n("circle",{staticClass:"progress-bar__circle",attrs:{r:"8",cx:"12",cy:"12"}})])])},wd=[],Ed=o.normalizeComponent(Dd,Td,wd,!1,null,null,null,null);const Od=Ed.exports,kd={name:"DtImageCarousel",components:{DtImageViewer:ve,DtButton:l.DtButton,DtIcon:l.DtIcon,DtProgressBar:Od},props:{mediaItem:{type:Object,required:!0},index:{type:Number,required:!0},closeAriaLabel:{type:String,required:!0},clickToOpenAriaLabel:{type:String,required:!0},progressbarAriaLabel:{type:String,required:!0}},emits:["remove-media"],methods:{removeMediaItem(e){this.$emit("remove-media",e)}}};var Ld=function(){var t=this,n=t._self._c;return n("li",{staticClass:"dt-attachment-image"},[n("dt-image-viewer",{attrs:{"image-button-class":"dt-attachment-image__image-viewer","image-src":t.mediaItem.path,"image-alt":t.mediaItem.altText,"close-aria-label":t.closeAriaLabel,"aria-label":t.clickToOpenAriaLabel}}),n("div",{staticClass:"dt-attachment-image__top-right"},[t.mediaItem.isUploading?n("dt-progress-bar",{staticClass:"dt-attachment-image__progress-bar",attrs:{progress:t.mediaItem.progress,"progressbar-aria-label":t.progressbarAriaLabel}}):t._e(),n("dt-button",{staticClass:"dt-attachment-image__close-button",attrs:{id:`closeButton-${t.index}`,tabindex:"0",circle:"",size:"xs",importance:"clear","aria-label":t.closeAriaLabel},on:{click:function(a){return t.removeMediaItem(t.index)}},scopedSlots:t._u([{key:"icon",fn:function(){return[n("dt-icon",{attrs:{name:"close",size:"200"}})]},proxy:!0}])})],1)],1)},xd=[],Ad=o.normalizeComponent(kd,Ld,xd,!1,null,null,null,null);const $d=Ad.exports,Rd=64,Md={name:"DtRecipeAttachmentCarousel",components:{DtButton:l.DtButton,DtIcon:l.DtIcon,DtImageCarousel:$d},mixins:[],props:{mediaList:{type:Array,default:()=>[]},closeAriaLabel:{type:String,required:!0},clickToOpenAriaLabel:{type:String,required:!0},progressbarAriaLabel:{type:String,required:!0},leftArrowAriaLabel:{type:String,required:!0},rightArrowAriaLabel:{type:String,required:!0}},emits:["remove-media"],data(){return{showCloseButton:{},showRightArrow:!0,showLeftArrow:!1,isMounted:!1}},computed:{filteredMediaList(){return this.mediaList.filter(e=>e.type==="image"||e.type==="video")}},mounted:function(){this.showLeftArrow=this.$refs.carousel.scrollLeft>0,this.showRightArrow=this.$refs.carousel.scrollWidth>this.$refs.carousel.clientWidth},methods:{onItemFocus(e){e.currentTarget.scrollIntoView({behavior:"smooth"})},mediaComponent(e){switch(e){case"image":return"dt-image-carousel";default:return null}},removeMediaItem(e){this.showRightArrow=this.$refs.carousel.scrollWidth>this.$refs.carousel.clientWidth+Rd,this.$emit("remove-media",e)},closeButton(e,t){this.showCloseButton[t]=e},handleScroll(){const e=this.$refs.carousel;this.showLeftArrow=e.scrollLeft>0,this.showRightArrow=e.scrollLeft+e.clientWidth!==e.scrollWidth},leftScroll(){this.$refs.carousel.scrollTo({left:this.$refs.carousel.scrollLeft-100,behavior:"smooth"})},rightScroll(){this.$refs.carousel.scrollTo({left:this.$refs.carousel.scrollLeft+100,behavior:"smooth"})}}};var Nd=function(){var t=this,n=t._self._c;return n("div",{staticClass:"dt-attachment-carousel",attrs:{role:"presentation"}},[t.mediaList.length>0?n("ul",{ref:"carousel",staticClass:"dt-attachment-carousel__media-list",on:{scroll:t.handleScroll}},t._l(t.filteredMediaList,function(a,r){return n(t.mediaComponent(a.type),{key:`media-${r}`,tag:"component",attrs:{index:r,"media-item":a,"close-aria-label":t.closeAriaLabel,"click-to-open-aria-label":t.clickToOpenAriaLabel,"progressbar-aria-label":t.progressbarAriaLabel},on:{"remove-media":function(i){return t.removeMediaItem(r)},focusin:t.onItemFocus}})}),1):t._e(),n("dt-button",{directives:[{name:"show",rawName:"v-show",value:t.showLeftArrow,expression:"showLeftArrow"}],staticClass:"dt-attachment-carousel__arrow dt-attachment-carousel__arrow--left",attrs:{tabindex:"-1","aria-label":t.leftArrowAriaLabel,circle:"",size:"xs",importance:"clear"},on:{click:t.leftScroll},scopedSlots:t._u([{key:"icon",fn:function(){return[n("dt-icon",{attrs:{name:"arrow-left",size:"100"}})]},proxy:!0}])}),n("dt-button",{directives:[{name:"show",rawName:"v-show",value:t.showRightArrow,expression:"showRightArrow"}],staticClass:"dt-attachment-carousel__arrow dt-attachment-carousel__arrow--right",attrs:{tabindex:"-1","aria-label":t.rightArrowAriaLabel,circle:"",size:"xs",importance:"clear"},on:{click:t.rightScroll},scopedSlots:t._u([{key:"icon",fn:function(){return[n("dt-icon",{attrs:{name:"arrow-right",size:"100"}})]},proxy:!0}])})],1)},Pd=[],Bd=o.normalizeComponent(Md,Nd,Pd,!1,null,null,null,null);const Fd=Bd.exports,Vd=[/^https?:\/\//,/^http?:\/\//,/^ftp?:\/\//,/^ftps?:\/\//,/^ftps?:\/\//,/mailto:([^?]*)/],qd="https://",Ud={name:"DtRecipeEditor",components:{DtRichTextEditor:u.DtRichTextEditor,DtButton:l.DtButton,DtIcon:l.DtIcon,DtPopover:u.DtPopover,DtStack:u.DtStack,DtInput:l.DtInput,DtTooltip:o.DtTooltip},inheritAttrs:!1,props:{value:{type:[Object,String],default:""},editable:{type:Boolean,default:!0},inputAriaLabel:{type:String,required:!0,default:""},inputClass:{type:String,default:""},autoFocus:{type:[Boolean,String,Number],default:!1,validator(e){return typeof e=="string"?u.RICH_TEXT_EDITOR_AUTOFOCUS_TYPES.includes(e):!0}},placeholder:{type:String,default:""},maxHeight:{type:String,default:"unset"},confirmSetLinkButton:{type:Object,default:()=>({label:"Confirm",ariaLabel:"Confirm set link"})},removeLinkButton:{type:Object,default:()=>({label:"Remove",ariaLabel:"Remove link"})},cancelSetLinkButton:{type:Object,default:()=>({label:"Cancel",ariaLabel:"Cancel set link"})},setLinkPlaceholder:{type:String,default:""},showBoldButton:{type:Boolean,default:!0},showItalicsButton:{type:Boolean,default:!0},showUnderlineButton:{type:Boolean,default:!0},showStrikeButton:{type:Boolean,default:!0},showListItemsButton:{type:Boolean,default:!0},showOrderedListButton:{type:Boolean,default:!0},showAlignLeftButton:{type:Boolean,default:!0},showAlignCenterButton:{type:Boolean,default:!0},showAlignRightButton:{type:Boolean,default:!0},showAlignJustifyButton:{type:Boolean,default:!0},showQuoteButton:{type:Boolean,default:!0},showCodeBlockButton:{type:Boolean,default:!0},showAddLink:{type:Object,default:()=>({showAddLinkButton:!0,setLinkTitle:"Add a link",setLinkInputAriaLabel:"Input field to add link"})}},emits:["focus","blur","input"],data(){return{internalInputValue:this.value,hasFocus:!1,linkOptions:{class:"d-link d-c-text d-d-inline-block"},showLinkInput:!1,linkInput:""}},computed:{inputLength(){return this.internalInputValue.length},htmlOutputFormat(){return u.RICH_TEXT_EDITOR_OUTPUT_FORMATS[2]},showingTextFormatButtons(){return this.showBoldButton||this.showItalicsButton||this.showStrikeButton||this.showUnderlineButton},showingAlignmentButtons(){return this.showAlignLeftButton||this.showAlignCenterButton||this.showAlignRightButton||this.showAlignJustifyButton},showingListButtons(){return this.showListItemsButton||this.showOrderedListButton},buttonGroups(){const e=this.individualButtons.map(t=>({key:t.selector,buttonGroup:[t]}));return[{key:"format",buttonGroup:this.textFormatButtons},{key:"alignment",buttonGroup:this.alignmentButtons},{key:"list",buttonGroup:this.listButtons},...e].filter(t=>t.buttonGroup.length>0)},textFormatButtons(){return[{showBtn:this.showBoldButton,selector:"bold",iconName:"bold",dataQA:"dt-editor-bold-btn",tooltipMessage:"Bold",onClick:this.onBoldTextToggle},{showBtn:this.showItalicsButton,selector:"italic",iconName:"italic",dataQA:"dt-editor-italics-btn",tooltipMessage:"Italics",onClick:this.onItalicTextToggle},{showBtn:this.showUnderlineButton,selector:"underline",iconName:"underline",dataQA:"dt-editor-underline-btn",tooltipMessage:"Underline",onClick:this.onUnderlineTextToggle},{showBtn:this.showStrikeButton,selector:"strike",iconName:"strikethrough",dataQA:"dt-editor-strike-btn",tooltipMessage:"Strike",onClick:this.onStrikethroughTextToggle}].filter(e=>e.showBtn)},alignmentButtons(){return[{showBtn:this.showAlignLeftButton,selector:{textAlign:"left"},iconName:"align-left",dataQA:"dt-editor-align-left-btn",tooltipMessage:"Align Left",onClick:()=>this.onTextAlign("left")},{showBtn:this.showAlignCenterButton,selector:{textAlign:"center"},iconName:"align-center",dataQA:"dt-editor-align-center-btn",tooltipMessage:"Align Center",onClick:()=>this.onTextAlign("center")},{showBtn:this.showAlignRightButton,selector:{textAlign:"right"},iconName:"align-right",dataQA:"dt-editor-align-right-btn",tooltipMessage:"Align Right",onClick:()=>this.onTextAlign("right")},{showBtn:this.showAlignJustifyButton,selector:{textAlign:"justify"},iconName:"align-justify",dataQA:"dt-editor-align-justify-btn",tooltipMessage:"Align Justify",onClick:()=>this.onTextAlign("justify")}].filter(e=>e.showBtn)},listButtons(){return[{showBtn:this.showListItemsButton,selector:"bulletList",iconName:"list-bullet",dataQA:"dt-editor-list-items-btn",tooltipMessage:"Bullet List",onClick:this.onBulletListToggle},{showBtn:this.showOrderedListButton,selector:"orderedList",iconName:"list-ordered",dataQA:"dt-editor-ordered-list-items-btn",tooltipMessage:"Ordered List",onClick:this.onOrderedListToggle}].filter(e=>e.showBtn)},individualButtons(){return[{showBtn:this.showQuoteButton,selector:"blockquote",iconName:"quote",dataQA:"dt-editor-blockquote-btn",tooltipMessage:"Quote",onClick:this.onBlockquoteToggle},{showBtn:this.showCodeBlockButton,selector:"codeBlock",iconName:"code-block",dataQA:"dt-editor-code-block-btn",tooltipMessage:"Code",onClick:this.onCodeBlockToggle}].filter(e=>e.showBtn)},linkButton(){return{showBtn:this.showAddLink.showAddLinkButton,selector:"link",iconName:"link-2",dataQA:"dt-editor-add-link-btn",tooltipMessage:"Link",onClick:this.openLinkInput}}},watch:{value(e){this.internalInputValue=e}},methods:{onInputFocus(e){e==null||e.stopPropagation()},removeLink(){var e,t,n,a,r;(r=(a=(n=(t=(e=this.$refs.richTextEditor)==null?void 0:e.editor)==null?void 0:t.chain())==null?void 0:n.focus())==null?void 0:a.unsetLink())==null||r.run(),this.closeLinkInput()},setLink(e){var r,i,s;const t=(r=this.$refs.richTextEditor)==null?void 0:r.editor;if(e==null||e.preventDefault(),e==null||e.stopPropagation(),!this.linkInput){this.removeLink();return}Vd.find(d=>d.test(this.linkInput))||(this.linkInput=`${qd}${this.linkInput}`);const a=(s=(i=t==null?void 0:t.view)==null?void 0:i.state)==null?void 0:s.selection;a.anchor===a.head?t.chain().focus().insertContentAt(a.anchor,`<a class="${this.linkOptions.class}" href=${this.linkInput}>${this.linkInput}</a>`).run():t.chain().focus().extendMarkRange("link").setLink({href:this.linkInput,class:this.linkOptions.class}).run(),this.closeLinkInput()},openLinkInput(){this.showLinkInput=!0},updateInput(e){var t,n,a;if(!e)return this.closeLinkInput();this.linkInput=(a=(n=(t=this.$refs.richTextEditor)==null?void 0:t.editor)==null?void 0:n.getAttributes("link"))==null?void 0:a.href},closeLinkInput(){var e;this.showLinkInput=!1,this.linkInput="",(e=this.$refs.richTextEditor.editor)==null||e.chain().focus()},onBoldTextToggle(){var e,t;(t=(e=this.$refs.richTextEditor)==null?void 0:e.editor)==null||t.chain().focus().toggleBold().run()},onItalicTextToggle(){var e;(e=this.$refs.richTextEditor)==null||e.editor.chain().focus().toggleItalic().run()},onUnderlineTextToggle(){var e;(e=this.$refs.richTextEditor)==null||e.editor.chain().focus().toggleUnderline().run()},onStrikethroughTextToggle(){var e;(e=this.$refs.richTextEditor)==null||e.editor.chain().focus().toggleStrike().run()},onTextAlign(e){var t,n,a,r;if((n=(t=this.$refs.richTextEditor)==null?void 0:t.editor)!=null&&n.isActive({textAlign:e}))return(a=this.$refs.richTextEditor)==null?void 0:a.editor.chain().focus().unsetTextAlign().run();(r=this.$refs.richTextEditor)==null||r.editor.chain().focus().setTextAlign(e).run()},onBulletListToggle(){var e;(e=this.$refs.richTextEditor)==null||e.editor.chain().focus().toggleBulletList().run()},onOrderedListToggle(){var e;(e=this.$refs.richTextEditor)==null||e.editor.chain().focus().toggleOrderedList().run()},onCodeBlockToggle(){var e;(e=this.$refs.richTextEditor)==null||e.editor.chain().focus().toggleCodeBlock().run()},onBlockquoteToggle(){var e;(e=this.$refs.richTextEditor)==null||e.editor.chain().focus().toggleBlockquote().run()},onFocus(e){this.hasFocus=!0,this.$emit("focus",e)},onBlur(e){this.hasFocus=!1,this.$emit("blur",e)},onInput(e){this.$emit("input",e)}}};var Hd=function(){var t=this,n=t._self._c;return n("div",{staticClass:"d-d-flex d-fd-column",attrs:{"data-qa":"dt-editor",role:"presentation"},on:{click:function(a){return t.$refs.richTextEditor.focusEditor()}}},[n("dt-stack",{staticClass:"d-p8 dt-editor--top-bar-background",attrs:{direction:"row",gap:"450"}},[t._l(t.buttonGroups,function(a){return n("dt-stack",{key:a.key,attrs:{direction:"row",gap:"300"}},[t._l(a.buttonGroup,function(r){return n("dt-tooltip",{key:`${a.key}-${JSON.stringify(r.selector)}`,attrs:{message:r.tooltipMessage,placement:"top"},scopedSlots:t._u([{key:"anchor",fn:function(){var i,s;return[n("dt-button",{attrs:{"data-qa":r.dataQA,importance:"clear",kind:"muted",active:(s=(i=t.$refs.richTextEditor)==null?void 0:i.editor)==null?void 0:s.isActive(r.selector),size:"xs"},on:{click:function(d){return r.onClick()}},scopedSlots:t._u([{key:"icon",fn:function(){return[n("dt-icon",{staticClass:"d-fw-bold",attrs:{name:r.iconName,size:"200"}})]},proxy:!0}],null,!0)})]},proxy:!0}],null,!0)})}),n("div",{staticClass:"dt-editor--button-group-divider"})],2)}),t.linkButton.showBtn?n("dt-stack",{attrs:{direction:"row",gap:"300"}},[n("dt-popover",{attrs:{open:t.showLinkInput,placement:"bottom-start","visually-hidden-close":!0,"visually-hidden-close-label":"Close link input popover","data-qa":"dt-editor-link-input-popover","show-close-button":!1},on:{"update:open":function(a){t.showLinkInput=a},click:t.onInputFocus,opened:t.updateInput},nativeOn:{click:function(a){return a.stopPropagation(),t.onInputFocus.apply(null,arguments)}},scopedSlots:t._u([{key:"anchor",fn:function(){return[n("dt-tooltip",{key:t.linkButton.key,attrs:{message:t.linkButton.tooltipMessage,placement:"top"},scopedSlots:t._u([{key:"anchor",fn:function(){var a,r;return[n("dt-button",{staticClass:"d-ol-none",attrs:{"data-qa":t.linkButton.dataQA,importance:"clear",kind:"muted",active:(r=(a=t.$refs.richTextEditor)==null?void 0:a.editor)==null?void 0:r.isActive(t.linkButton.selector),size:"xs"},on:{click:function(i){return t.linkButton.onClick()}},scopedSlots:t._u([{key:"icon",fn:function(){return[n("dt-icon",{staticClass:"d-fw-bold",attrs:{name:t.linkButton.iconName,size:"200"}})]},proxy:!0}],null,!1,540616731)})]},proxy:!0}],null,!1,293212236)})]},proxy:!0},{key:"content",fn:function(){return[t.showAddLink.setLinkTitle.length>0?n("span",[t._v(" "+t._s(t.showAddLink.setLinkTitle)+" ")]):t._e(),n("dt-input",{attrs:{"input-aria-label":t.showAddLink.setLinkInputAriaLabel,"data-qa":"dt-editor-link-input",placeholder:t.setLinkPlaceholder,"input-wrapper-class":"d-bgc-black-100 d-mt6 d-bar5 d-ba d-baw1 d-bc-black-300 d-py2 d-ol-none"},on:{click:t.onInputFocus,focus:t.onInputFocus,keydown:function(a){return!a.type.indexOf("key")&&t._k(a.keyCode,"enter",13,a.key,"Enter")?null:t.setLink.apply(null,arguments)}},nativeOn:{click:function(a){return a.stopPropagation(),t.onInputFocus.apply(null,arguments)}},model:{value:t.linkInput,callback:function(a){t.linkInput=a},expression:"linkInput"}})]},proxy:!0},{key:"footerContent",fn:function(){return[n("div",{staticClass:"d-ml8 d-mr12"},[n("dt-button",{staticClass:"d-mx2",attrs:{"aria-label":t.removeLinkButton.ariaLabel,importance:"clear",kind:"muted",size:"sm","data-qa":"dt-editor-remove-link-btn"},on:{click:t.removeLink}},[t._v(" "+t._s(t.removeLinkButton.label)+" ")]),n("dt-button",{staticClass:"d-mx2",attrs:{"aria-label":t.cancelSetLinkButton.ariaLabel,importance:"clear",kind:"muted",size:"sm","data-qa":"dt-editor-set-link-cancel-btn"},on:{click:t.closeLinkInput}},[t._v(" "+t._s(t.cancelSetLinkButton.label)+" ")]),n("dt-button",{staticClass:"d-mx2",attrs:{size:"sm","aria-label":t.confirmSetLinkButton.ariaLabel,"data-qa":"dt-editor-set-link-confirm-btn"},on:{click:t.setLink}},[t._v(" "+t._s(t.confirmSetLinkButton.label)+" ")])],1)]},proxy:!0}],null,!1,393148891)})],1):t._e()],2),n("div",{staticClass:"d-of-auto d-mx16 d-mt8 d-mb16 d-c-text",style:{"max-height":t.maxHeight}},[n("dt-rich-text-editor",t._b({ref:"richTextEditor",attrs:{"data-qa":"dt-rich-text-editor",editable:t.editable,"input-aria-label":t.inputAriaLabel,"input-class":`${t.inputClass} d-ol-none d-my6`,"output-format":t.htmlOutputFormat,"auto-focus":t.autoFocus,placeholder:t.placeholder,"allow-line-breaks":!0,link:!1},on:{focus:t.onFocus,blur:t.onBlur,input:function(a){return t.onInput(a)}},model:{value:t.internalInputValue,callback:function(a){t.internalInputValue=a},expression:"internalInputValue"}},"dt-rich-text-editor",t.$attrs,!1))],1)],1)},Wd=[],zd=o.normalizeComponent(Ud,Hd,Wd,!1,null,null,null,null);const Yd=zd.exports,Vt={warning:"dt-recipe-callbox-badge--warning"},qt={default:"dt-recipe-callbox--border-default",ai:"dt-recipe-callbox--border-ai",critical:"dt-recipe-callbox--border-critical"},Kd={name:"DtRecipeCallbox",components:{DtBadge:st,DtAvatar:u.DtAvatar},inheritAttrs:!1,props:{badgeText:{type:String,default:""},badgeColor:{type:String,default:null,validator:e=>e===null||Object.keys(Vt).includes(e)},avatarSrc:{type:String,default:""},avatarFullName:{type:String,default:""},avatarSeed:{type:String,default:""},title:{type:String,default:""},borderColor:{type:String,default:"default",validator:e=>Object.keys(qt).includes(e)},clickable:{type:Boolean,default:!1},isOnHold:{type:Boolean,default:!1}},emits:["click"],computed:{shouldShowAvatar(){return this.avatarFullName||this.avatarSrc},badgeClass(){return Vt[this.badgeColor]},borderClass(){return qt[this.borderColor]}},methods:{handleClick(e){this.clickable&&this.$emit("click",e)}}};var jd=function(){var t=this,n=t._self._c;return n("div",{staticClass:"dt-recipe-callbox",attrs:{"data-qa":"dt-recipe-callbox"}},[t.$slots.video?n("div",{staticClass:"dt-recipe-callbox--video",attrs:{"data-qa":"dt-recipe-callbox--video-wrapper"}},[t._t("video")],2):t._e(),n("div",{class:["dt-recipe-callbox--main-content",t.borderClass,{"dt-recipe-callbox--clickable":t.clickable}],attrs:{"data-qa":"dt-recipe-callbox--main-content"}},[n("div",{staticClass:"dt-recipe-callbox--main-content-top"},[t.shouldShowAvatar?n("dt-avatar",{attrs:{"avatar-class":"dt-recipe-callbox--avatar","image-src":t.avatarSrc,"full-name":t.avatarFullName,seed:t.avatarSeed,clickable:t.clickable,"overlay-icon":t.isOnHold?"pause":null,size:"sm"},on:{click:t.handleClick}}):t._e(),n("div",{staticClass:"dt-recipe-callbox--content"},[n(t.clickable?"button":"span",{tag:"component",staticClass:"dt-recipe-callbox--content-title",attrs:{"data-qa":"dt-recipe-callbox--title"},on:{click:t.handleClick}},[t._v(" "+t._s(t.title)+" ")]),t.$slots.badge||t.badgeText?n("div",{staticClass:"dt-recipe-callbox--content-badge",attrs:{"data-qa":"dt-recipe-callbox--badge-wrapper"}},[t._t("badge",function(){return[n("dt-badge",{class:t.badgeClass,attrs:{text:t.badgeText}})]})],2):t._e(),t.$slots.subtitle?n("div",{staticClass:"dt-recipe-callbox--content-subtitle",attrs:{"data-qa":"dt-recipe-callbox--subtitle-wrapper"}},[t._t("subtitle")],2):t._e()],1),t.$slots.right?n("div",{staticClass:"dt-recipe-callbox--right",attrs:{"data-qa":"dt-recipe-callbox--right-wrapper"}},[t._t("right")],2):t._e()],1),t.$slots.bottom?n("div",{staticClass:"dt-recipe-callbox--main-content-bottom",attrs:{"data-qa":"dt-recipe-callbox--bottom-wrapper"}},[t._t("bottom")],2):t._e()])])},Gd=[],Qd=o.normalizeComponent(Kd,jd,Gd,!1,null,"66800ae7",null,null);const Zd=Qd.exports;let $;function et(e,t){return Jt(),Ne(e,t,{locale:$})}function Xd(e,t){return Jt(),to(e,{locale:$,format:t})}function Jd(e,t){return Jt(),Xs(e,t,{locale:$})}function tc(){return $!==void 0}function Jt(){if(!tc())throw new Error("Locale not set, please call setDateLocale(locale) and pass in a datefns locale object as the locale param before calling this function")}function ec(e){$=e}function nc(e){return et(e,"MMMM d, y")}function ac(e){if(e<60)return Jd(0,29*1e3);const t=no({start:0,end:e*1e3});return Xd(t,["hours","minutes"])}function oe(e){const t=new Intl.RelativeTimeFormat($.code,{numeric:"auto"});return o.capitalizeFirstLetter(t.formatToParts(e,"day")[0].value,$.code)}function rc(e){return lo(e)?oe(0):uo(e)?oe(-1):so(e)?et(e,"EEEE"):oo(e)?et(e,"EEEE, MMMM d"):et(e,"MMMM d, y")}exports.AVATAR_COLORS=u.AVATAR_COLORS;exports.AVATAR_GROUP_VALIDATOR=u.AVATAR_GROUP_VALIDATOR;exports.AVATAR_ICON_SIZES=u.AVATAR_ICON_SIZES;exports.AVATAR_KIND_MODIFIERS=u.AVATAR_KIND_MODIFIERS;exports.AVATAR_PRESENCE_SIZE_MODIFIERS=u.AVATAR_PRESENCE_SIZE_MODIFIERS;exports.AVATAR_PRESENCE_STATES=u.AVATAR_PRESENCE_STATES;exports.AVATAR_SIZE_MODIFIERS=u.AVATAR_SIZE_MODIFIERS;exports.DT_STACK_DIRECTION=u.DT_STACK_DIRECTION;exports.DT_STACK_GAP=u.DT_STACK_GAP;exports.DT_STACK_RESPONSIVE_BREAKPOINTS=u.DT_STACK_RESPONSIVE_BREAKPOINTS;exports.DtAvatar=u.DtAvatar;exports.DtItemLayout=u.DtItemLayout;exports.DtLink=u.DtLink;exports.DtListItem=u.DtListItem;exports.DtPopover=u.DtPopover;exports.DtPresence=u.DtPresence;exports.DtStack=u.DtStack;exports.LIST_ITEM_NAVIGATION_TYPES=u.LIST_ITEM_NAVIGATION_TYPES;exports.LIST_ITEM_TYPES=u.LIST_ITEM_TYPES;exports.POPOVER_APPEND_TO_VALUES=u.POPOVER_APPEND_TO_VALUES;exports.POPOVER_CONTENT_WIDTHS=u.POPOVER_CONTENT_WIDTHS;exports.POPOVER_DIRECTIONS=u.POPOVER_DIRECTIONS;exports.POPOVER_HEADER_FOOTER_PADDING_CLASSES=u.POPOVER_HEADER_FOOTER_PADDING_CLASSES;exports.POPOVER_INITIAL_FOCUS_STRINGS=u.POPOVER_INITIAL_FOCUS_STRINGS;exports.POPOVER_PADDING_CLASSES=u.POPOVER_PADDING_CLASSES;exports.POPOVER_ROLES=u.POPOVER_ROLES;exports.POPOVER_STICKY_VALUES=u.POPOVER_STICKY_VALUES;exports.PRESENCE_STATES=u.PRESENCE_STATES;exports.PRESENCE_STATES_LIST=u.PRESENCE_STATES_LIST;exports.BUTTON_ICON_SIZES=l.BUTTON_ICON_SIZES;exports.BUTTON_IMPORTANCE_MODIFIERS=l.BUTTON_IMPORTANCE_MODIFIERS;exports.BUTTON_KIND_MODIFIERS=l.BUTTON_KIND_MODIFIERS;exports.BUTTON_SIZE_MODIFIERS=l.BUTTON_SIZE_MODIFIERS;exports.BUTTON_TYPES=l.BUTTON_TYPES;exports.DtButton=l.DtButton;exports.DtCheckableInputMixin=l.CheckableMixin;exports.DtGroupableInputMixin=l.GroupableMixin;exports.DtIcon=l.DtIcon;exports.DtInput=l.DtInput;exports.DtInputMixin=l.InputMixin;exports.DtSkeleton=l.DtSkeleton;exports.DtSkeletonListItem=l.DtSkeletonListItem;exports.DtSkeletonParagraph=l.DtSkeletonParagraph;exports.DtSkeletonShape=l.DtSkeletonShape;exports.DtSkeletonText=l.DtSkeletonText;exports.DtTab=l.DtTab;exports.DtTabGroup=l.DtTabGroup;exports.DtValidationMessages=l.DtValidationMessages;exports.ICON_POSITION_MODIFIERS=l.ICON_POSITION_MODIFIERS;exports.ICON_SIZE_MODIFIERS=l.ICON_SIZE_MODIFIERS;exports.INPUT_SIZES=l.INPUT_SIZES;exports.INPUT_TYPES=l.INPUT_TYPES;exports.INVALID_COMBINATION=l.INVALID_COMBINATION;exports.LINK_KIND_MODIFIERS=l.LINK_KIND_MODIFIERS;exports.LINK_VARIANTS=l.LINK_VARIANTS;exports.SKELETON_HEADING_HEIGHTS=l.SKELETON_HEADING_HEIGHTS;exports.SKELETON_RIPPLE_DURATION=l.SKELETON_RIPPLE_DURATION;exports.SKELETON_SHAPES=l.SKELETON_SHAPES;exports.SKELETON_SHAPE_SIZES=l.SKELETON_SHAPE_SIZES;exports.SKELETON_TEXT_TYPES=l.SKELETON_TEXT_TYPES;exports.TAB_IMPORTANCE_MODIFIERS=l.TAB_IMPORTANCE_MODIFIERS;exports.TAB_LIST_IMPORTANCE_MODIFIERS=l.TAB_LIST_IMPORTANCE_MODIFIERS;exports.TAB_LIST_KIND_MODIFIERS=l.TAB_LIST_KIND_MODIFIERS;exports.TAB_LIST_SIZES=l.TAB_LIST_SIZES;exports.validationMessageValidator=l.validationMessageValidator;exports.DEFAULT_VALIDATION_MESSAGE_TYPE=o.DEFAULT_VALIDATION_MESSAGE_TYPE;exports.DESCRIPTION_SIZE_TYPES=o.DESCRIPTION_SIZE_TYPES;exports.DtLazyShow=o.DtLazyShow;exports.DtTooltip=o.DtTooltip;exports.TOOLTIP_DELAY_MS=o.TOOLTIP_DELAY_MS;exports.TOOLTIP_DIRECTIONS=o.TOOLTIP_DIRECTIONS;exports.TOOLTIP_HIDE_ON_CLICK_VARIANTS=o.TOOLTIP_HIDE_ON_CLICK_VARIANTS;exports.TOOLTIP_KIND_MODIFIERS=o.TOOLTIP_KIND_MODIFIERS;exports.TOOLTIP_STICKY_VALUES=o.TOOLTIP_STICKY_VALUES;exports.VALIDATION_MESSAGE_TYPES=o.VALIDATION_MESSAGE_TYPES;exports.filterFormattedMessages=o.filterFormattedMessages;exports.formatMessages=o.formatMessages;exports.getUniqueString=o.getUniqueString;exports.getValidationState=o.getValidationState;exports.BADGE_DECORATION_MODIFIERS=Tt;exports.BADGE_KIND_MODIFIERS=Dt;exports.BADGE_TYPE_MODIFIERS=It;exports.BREADCRUMBS_INVERTED_MODIFIER=ce;exports.BREADCRUMB_ITEM_SELECTED_MODIFIER=de;exports.BUTTON_GROUP_ALIGNMENT=wt;exports.CALLBAR_BUTTON_VALID_WIDTH_SIZE=Zt;exports.CALLBOX_BADGE_COLORS=Vt;exports.CALLBOX_BORDER_COLORS=qt;exports.CHIP_CLOSE_BUTTON_SIZE_MODIFIERS=Ce;exports.CHIP_ICON_SIZES=Ie;exports.CHIP_SIZES=Ue;exports.CHIP_SIZE_MODIFIERS=Lt;exports.CHIP_TOP_POSITION=He;exports.COLOR_CODES=ze;exports.DEFAULT_FEED_ROW_STATE=K;exports.DROPDOWN_PADDING_CLASSES=B;exports.DT_DESCRIPTION_LIST_DIRECTION=ge;exports.DtBadge=st;exports.DtBanner=xn;exports.DtBreadcrumbItem=ue;exports.DtBreadcrumbs=Vn;exports.DtButtonGroup=zn;exports.DtCard=fe;exports.DtCheckbox=Nr;exports.DtCheckboxGroup=qr;exports.DtChip=Yt;exports.DtCodeblock=ta;exports.DtCollapsible=_e;exports.DtCombobox=me;exports.DtDatepicker=Po;exports.DtDescriptionList=xa;exports.DtDropdown=be;exports.DtDropdownSeparator=Va;exports.DtHovercard=Ya;exports.DtImageViewer=ve;exports.DtInputGroup=zt;exports.DtInputGroupMixin=ye;exports.DtKeyboardListNavigationMixin=Ht;exports.DtKeyboardShortcut=_i;exports.DtListItemGroup=cr;exports.DtModal=ir;exports.DtNotice=wn;exports.DtNoticeAction=dt;exports.DtNoticeContent=lt;exports.DtNoticeIcon=ot;exports.DtPagination=mr;exports.DtRadio=yr;exports.DtRadioGroup=Tr;exports.DtRecipeAttachmentCarousel=Fd;exports.DtRecipeCallbarButton=We;exports.DtRecipeCallbarButtonWithPopover=sl;exports.DtRecipeCallbox=Zd;exports.DtRecipeComboboxMultiSelect=Zo;exports.DtRecipeComboboxWithPopover=Ve;exports.DtRecipeContactInfo=ul;exports.DtRecipeContactRow=Xl;exports.DtRecipeEditor=Yd;exports.DtRecipeEmojiRow=Id;exports.DtRecipeFeedItemPill=pd;exports.DtRecipeFeedItemRow=ld;exports.DtRecipeGeneralRow=Xt;exports.DtRecipeGroupRow=Kl;exports.DtRecipeGroupedChip=Ol;exports.DtRecipeIvrNode=Il;exports.DtRecipeSettingsMenuButton=$l;exports.DtRecipeTimePill=bd;exports.DtRecipeTopBannerInfo=_l;exports.DtRecipeUnreadPill=ad;exports.DtRootLayout=Si;exports.DtSelectMenu=ti;exports.DtTabPanel=Lr;exports.DtToast=ii;exports.DtToggle=ci;exports.FEED_ITEM_PILL_BORDER_COLORS=Ft;exports.FEED_ROW_STATE_BACKGROUND_COLOR=Bt;exports.IVR_NODE_BRANCH=mt;exports.IVR_NODE_EXPERT=ht;exports.IVR_NODE_GO_TO=Z;exports.IVR_NODE_HANGUP=gt;exports.IVR_NODE_ICON_TYPES=Ye;exports.IVR_NODE_LABELS=gl;exports.IVR_NODE_PROMPT_COLLECT=ft;exports.IVR_NODE_PROMPT_MENU=ut;exports.IVR_NODE_PROMPT_PLAY=pt;exports.IVR_NODE_TRANSFER=_t;exports.LABEL_SIZES=Wt;exports.LEFTBAR_GENERAL_ROW_CONTACT_CENTER_COLORS=G;exports.LEFTBAR_GENERAL_ROW_CONTACT_CENTER_VALIDATION_ERROR=je;exports.LEFTBAR_GENERAL_ROW_ICON_MAPPING=Ke;exports.LEFTBAR_GENERAL_ROW_ICON_SIZES=Ge;exports.LEFTBAR_GENERAL_ROW_TYPES=C;exports.MODAL_BANNER_KINDS=kt;exports.MODAL_KIND_MODIFIERS=Et;exports.MODAL_SIZE_MODIFIERS=Ot;exports.MULTI_SELECT_SIZES=qe;exports.NOTICE_KINDS=V;exports.NOTICE_ROLES=le;exports.RADIO_INPUT_VALIDATION_CLASSES=Se;exports.REACTIONS_ATTRIBUTES=Xe;exports.ROOT_LAYOUT_RESPONSIVE_BREAKPOINTS=Oe;exports.ROOT_LAYOUT_SIDEBAR_POSITIONS=Rt;exports.SELECT_SIZE_MODIFIERS=xt;exports.SELECT_STATE_MODIFIERS=De;exports.SHORTCUTS_ALIASES_LIST=ui;exports.SHORTCUTS_ICON_ALIASES=P;exports.SHORTCUTS_ICON_SEPARATOR=Ee;exports.TOAST_MIN_DURATION=At;exports.TOAST_ROLES=Te;exports.TOGGLE_CHECKED_VALUES=we;exports.TOGGLE_SIZE_MODIFIERS=$t;exports.UNREAD_PILL_DIRECTIONS=Qe;exports.UNREAD_PILL_KINDS=Ze;exports.durationInHHMM=ac;exports.formatLong=Bo;exports.formatMedium=Fo;exports.formatNoYear=qo;exports.formatNumerical=Uo;exports.formatShort=Vo;exports.getDateMedium=nc;exports.relativeDate=rc;exports.setDateLocale=ec;
|