@dialpad/dialtone-vue 2.98.3 → 2.99.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.json +1 -1
- package/CHANGELOG.md +7 -0
- package/dist/dialtone-vue.cjs +1 -1
- package/dist/dialtone-vue.js +9 -2
- package/dist/style.css +1 -1
- package/dist/types/recipes/leftbar/callbox/callbox.vue.d.ts +15 -0
- package/dist/types/recipes/leftbar/callbox/callbox.vue.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/dialtone-vue.cjs
CHANGED
|
@@ -27,4 +27,4 @@
|
|
|
27
27
|
|
|
28
28
|
`,`1) content: element.innerHTML
|
|
29
29
|
`,"2) content: () => element.cloneNode(true)"].join(" "))}var l=r.reduce(function(d,p){var c=p&&dc(p,a);return c&&d.push(c),d},[]);return yt(t)?l[0]:l}Lt.defaultProps=J;Lt.setDefaultProps=ic;Lt.currentInput=he;Object.assign({},zr,{effect:function(e){var n=e.state,a={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(n.elements.popper.style,a.popper),n.styles=a,n.elements.arrow&&Object.assign(n.elements.arrow.style,a.arrow)}});var cc={name:"sticky",defaultValue:!1,fn:function(e){var n=e.reference,a=e.popper;function r(){return e.popperInstance?e.popperInstance.state.elements.reference:n}function i(p){return e.props.sticky===!0||e.props.sticky===p}var s=null,l=null;function d(){var p=i("reference")?r().getBoundingClientRect():null,c=i("popper")?a.getBoundingClientRect():null;(p&&Ja(s,p)||c&&Ja(l,c))&&e.popperInstance&&e.popperInstance.update(),s=p,l=c,e.state.isMounted&&requestAnimationFrame(d)}return{onMount:function(){e.props.sticky&&d()}}}};function Ja(t,e){return t&&e?t.top!==e.top||t.right!==e.right||t.bottom!==e.bottom||t.left!==e.left:!0}Lt.setDefaultProps({render:li});const uc=t=>({name:"arrowDetected",enabled:!0,phase:"main",fn:t,requiresIfExists:["offset"]}),pc=["bottom","bottom-start","bottom-end","right","right-start","right-end","left","left-start","left-end","top","top-start","top-end"],di=[!0,!1,"reference","popper"],ci=(t,e)=>{const{contentElement:n}={...e};return delete e.contentElement,Lt(t,{...e,plugins:[cc],render:()=>hc(n)})},ui=({boundary:t="clippingParents",fallbackPlacements:e=[],onChangePlacement:n=()=>{},hasHideModifierEnabled:a=!1,tether:r=!0}={})=>({modifiers:[{name:"flip",options:{fallbackPlacements:e,boundary:t}},{name:"hide",enabled:a},{name:"preventOverflow",options:{altAxis:!r,tether:r}},uc(({state:i})=>{n(i.placement)})]}),fc=t=>{const e=document.createElement("span");return e.innerText=t.innerText||"",t.innerText="",t.appendChild(e),e},er=t=>{const e=t==null?void 0:t.children[0];return e||fc(t)},hc=t=>{const e=document.createElement("div");return e.className="tippy-box d-ps-absolute",e.appendChild(t),{popper:e}},Un={none:void 0,small:"d-p4",medium:"d-p8",large:"d-p16"},pi={none:void 0,small:"d-pl4",medium:"d-pl8",large:"d-pl16"},fi=["dialog","menu","listbox","tree","grid"],ga=["","anchor"],hi=["none","dialog","first"],un=["parent","body"],mc=[...di];let gc="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",_c=(t=21)=>{let e="",n=t;for(;n--;)e+=gc[Math.random()*64|0];return e};function Xt(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Xt=function(e){return typeof e}:Xt=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xt(t)}var mi={selector:"vue-portal-target-".concat(_c())},vc=function(e){return mi.selector=e},Ln=typeof window<"u"&&(typeof document>"u"?"undefined":Xt(document))!==void 0,bc=re.extend({abstract:!0,name:"PortalOutlet",props:["nodes","tag"],data:function(e){return{updatedNodes:e.nodes}},render:function(e){var n=this.updatedNodes&&this.updatedNodes();return n?n.length===1&&!n[0].text?n:e(this.tag||"DIV",n):e()},destroyed:function(){var e=this.$el;e&&e.parentNode.removeChild(e)}}),_a=re.extend({name:"VueSimplePortal",props:{disabled:{type:Boolean},prepend:{type:Boolean},selector:{type:String,default:function(){return"#".concat(mi.selector)}},tag:{type:String,default:"DIV"}},render:function(e){if(this.disabled){var n=this.$scopedSlots&&this.$scopedSlots.default();return n?n.length<2&&!n[0].text?n:e(this.tag,n):e()}return e()},created:function(){this.getTargetEl()||this.insertTargetEl()},updated:function(){var e=this;this.$nextTick(function(){!e.disabled&&e.slotFn!==e.$scopedSlots.default&&(e.container.updatedNodes=e.$scopedSlots.default),e.slotFn=e.$scopedSlots.default})},beforeDestroy:function(){this.unmount()},watch:{disabled:{immediate:!0,handler:function(e){e?this.unmount():this.$nextTick(this.mount)}}},methods:{getTargetEl:function(){if(Ln)return document.querySelector(this.selector)},insertTargetEl:function(){if(Ln){var e=document.querySelector("body"),n=document.createElement(this.tag);n.id=this.selector.substring(1),e.appendChild(n)}},mount:function(){if(Ln){var e=this.getTargetEl(),n=document.createElement("DIV");this.prepend&&e.firstChild?e.insertBefore(n,e.firstChild):e.appendChild(n),this.container=new bc({el:n,parent:this,propsData:{tag:this.tag,nodes:this.$scopedSlots.default}})}},unmount:function(){this.container&&(this.container.$destroy(),delete this.container)}}});function yc(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};t.component(e.name||"portal",_a),e.defaultSelector&&vc(e.defaultSelector)}typeof window<"u"&&window.Vue&&window.Vue===re&&re.use(yc);const Sc={name:"PopoverHeaderFooter",components:{DtButton:G,DtIcon:V},props:{type:{type:String,validator:function(t){return["header","footer"].includes(t)}},contentClass:{type:[String,Array,Object],default:""},showCloseButton:{type:Boolean,default:!1},closeButtonProps:{type:Object,default:()=>{}}},emits:["close"],methods:{focusCloseButton(){var e;const t=(e=this.$refs["popover__close-button"])==null?void 0:e.$el;t==null||t.focus()}}};var Cc=function(){var e=this,n=e._self._c;return n("div",{class:{"d-popover__header":e.type==="header","d-popover__footer":e.type==="footer"},attrs:{"data-qa":"dt-popover-header-footer"}},[e.$slots.content?n("div",{class:["d-to-ellipsis","d-w100p",e.contentClass],attrs:{"data-qa":"dt-popover-header-footer-content"}},[e._t("content")],2):e._e(),e.showCloseButton?n("dt-button",e._b({ref:"popover__close-button",staticClass:"d-p6 d-mr6 d-bc-transparent",attrs:{"data-qa":"dt-popover-close",importance:"outlined",kind:"muted",circle:""},on:{click:function(a){return e.$emit("close")}},scopedSlots:e._u([{key:"icon",fn:function(){return[n("dt-icon",{attrs:{name:"close",size:"300"}})]},proxy:!0}],null,!1,2538694920)},"dt-button",e.closeButtonProps,!1)):e._e()],1)},wc=[],Oc=h.normalizeComponent(Sc,Cc,wc,!1,null,null,null,null);const Ec=Oc.exports;const xc={name:"DtPopover",components:{SrOnlyCloseButton:ln,DtLazyShow:rt,PopoverHeaderFooter:Ec,Portal:_a},mixins:[xt,Se],props:{open:{type:Boolean,default:null},openOnContext:{type:Boolean,default:!1},elementType:{type:String,default:"div"},transition:{type:String,default:"fade"},role:{type:String,default:"dialog",validator:t=>fi.includes(t)},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null},closeButtonProps:{type:Object,default:()=>({})},padding:{type:String,default:"large",validator:t=>Object.keys(Un).some(e=>e===t)},contentClass:{type:[String,Array,Object],default:""},contentWidth:{type:String,default:"",validator:t=>ga.includes(t)},contentTabindex:{type:Number||null,default:-1},externalAnchor:{type:String,default:""},id:{type:String,default(){return z()}},offset:{type:Array,default:()=>[0,4]},hideOnClick:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},fallbackPlacements:{type:Array,default:()=>["auto"]},placement:{type:String,default:"bottom-end"},tether:{type:Boolean,default:!0},sticky:{type:[Boolean,String],default:!1,validator:t=>mc.includes(t)},maxHeight:{type:String,default:""},maxWidth:{type:String,default:""},showCloseButton:{type:Boolean,default:!1},headerClass:{type:[String,Array,Object],default:""},footerClass:{type:[String,Array,Object],default:""},dialogClass:{type:[String,Array,Object],default:""},initialFocusElement:{type:[String,HTMLElement],default:"first",validator:t=>hi.includes(t)||t instanceof HTMLElement||t.startsWith("#")},openWithArrowKeys:{type:Boolean,default:!1},appendTo:{type:[HTMLElement,String],default:"body",validator:t=>un.includes(t)||t instanceof HTMLElement}},emits:["opened","update:open"],data(){return{POPOVER_PADDING_CLASSES:Un,POPOVER_HEADER_FOOTER_PADDING_CLASSES:pi,intersectionObserver:null,isOutsideViewport:!1,isOpen:!1,anchorEl:null,popoverContentEl:null}},computed:{popoverListeners(){return{...this.$listeners,keydown:t=>{this.onKeydown(t),this.$emit("keydown",t)},"after-leave":t=>{this.onLeaveTransitionComplete()},"after-enter":t=>{this.onEnterTransitionComplete()}}},calculatedMaxHeight(){return this.isOutsideViewport&&this.modal?"calc(100vh - var(--dt-space-300))":this.maxHeight},labelledBy(){return this.ariaLabelledby||!this.ariaLabel&&z("DtPopover__anchor")}},watch:{$props:{immediate:!0,deep:!0,handler(){this.validateProps()}},modal(t){var e;(e=this.tip)==null||e.setProps({zIndex:t?650:this.calculateAnchorZindex()})},offset(t){var e;(e=this.tip)==null||e.setProps({offset:t})},sticky(t){var e;(e=this.tip)==null||e.setProps({sticky:t})},fallbackPlacements(){var t;(t=this.tip)==null||t.setProps({popperOptions:this.popperOptions()})},tether(){var t;(t=this.tip)==null||t.setProps({popperOptions:this.popperOptions()})},placement(t){var e;(e=this.tip)==null||e.setProps({placement:t})},open:{handler:function(t){t!==null&&(this.isOpen=t)},immediate:!0},isOpen(t,e){t?(this.initTippyInstance(),this.tip.show()):!t&&e!==t&&(this.removeEventListeners(),this.tip.hide())}},mounted(){const t=this.externalAnchor?this.$refs.anchor.getRootNode().querySelector(`#${this.externalAnchor}`):null;this.anchorEl=t??this.$refs.anchor.children[0],this.popoverContentEl=this.$refs.content.$el,this.isOpen&&(this.initTippyInstance(),this.tip.show()),this.intersectionObserver=new IntersectionObserver(this.hasIntersectedViewport),this.intersectionObserver.observe(this.popoverContentEl)},beforeDestroy(){var t;(t=this.tip)==null||t.destroy(),this.intersectionObserver.disconnect(),this.removeReferences(),this.removeEventListeners()},methods:{hasIntersectedViewport(t){var a;const e=(a=t==null?void 0:t[0])==null?void 0:a.target;if(!e)return;const n=hr(e);this.isOutsideViewport=n.bottom||n.top},popperOptions(){return ui({fallbackPlacements:this.fallbackPlacements,tether:this.tether,hasHideModifierEnabled:!0})},validateProps(){this.modal&&this.initialFocusElement==="none"&&console.error('If the popover is modal you must set the initialFocusElement prop. Possible values: "dialog", "first", HTMLElement')},calculateAnchorZindex(){var t;return this.$el.getRootNode().querySelector('.d-modal[aria-hidden="false"], .d-modal--transparent[aria-hidden="false"]')||(t=this.anchorEl)!=null&&t.closest(".d-zi-drawer")?650:300},defaultToggleOpen(t){var e,n;this.openOnContext||(this.open??((e=this.anchorEl)!=null&&e.contains(t.target)&&!((n=this.anchorEl)!=null&&n.disabled)&&this.toggleOpen()))},async onContext(t){this.openOnContext&&(t.preventDefault(),this.isOpen=!0,await this.$nextTick(),this.tip.setProps({placement:"right-start",getReferenceClientRect:()=>({width:0,height:0,top:t.clientY,bottom:t.clientY,left:t.clientX,right:t.clientX})}))},toggleOpen(){this.isOpen=!this.isOpen},onArrowKeyPress(t){var e;this.open===null&&this.openWithArrowKeys&&(e=this.anchorEl)!=null&&e.contains(t.target)&&(this.isOpen||(this.isOpen=!0))},addEventListeners(){window.addEventListener("dt-popover-close",this.closePopover),this.contentWidth==="anchor"&&window.addEventListener("resize",this.onResize)},removeEventListeners(){window.removeEventListener("dt-popover-close",this.closePopover),this.contentWidth==="anchor"&&window.removeEventListener("resize",this.onResize)},closePopover(){this.isOpen=!1},preventScrolling(){var t;if(this.modal){const e=(t=this.anchorEl)==null?void 0:t.closest("body, .tippy-box");e.tagName.toLowerCase()==="body"?(e.classList.add("d-of-hidden"),this.tip.setProps({offset:this.offset})):e.classList.add("d-zi-popover")}},enableScrolling(){var e,n;const t=(e=this.anchorEl)==null?void 0:e.closest("body, .tippy-box");t&&(((n=t.tagName)==null?void 0:n.toLowerCase())==="body"?(t.classList.remove("d-of-hidden"),this.tip.setProps({offset:this.offset})):t.classList.remove("d-zi-popover"))},removeReferences(){this.anchorEl=null,this.popoverContentEl=null,this.tip=null},async onShow(){this.contentWidth==="anchor"&&await this.setPopoverContentAnchorWidth(),this.contentWidth===null&&(this.popoverContentEl.style.width="auto"),this.addEventListeners()},async onLeaveTransitionComplete(){var t;this.modal&&(await this.focusFirstElement(this.$refs.anchor),await this.$nextTick(),this.enableScrolling()),(t=this.tip)==null||t.unmount(),this.$emit("opened",!1),this.open!==null&&this.$emit("update:open",!1)},async onEnterTransitionComplete(){this.focusInitialElement(),await this.$nextTick(),this.preventScrolling(),this.$emit("opened",!0,this.$refs.popover__content),this.open!==null&&this.$emit("update:open",!0)},focusInitialElement(){this.initialFocusElement==="dialog"&&this.$refs.content.$el.focus(),this.initialFocusElement.startsWith("#")&&this.focusInitialElementById(),this.initialFocusElement==="first"&&this.focusFirstElementIfNeeded(this.$refs.popover__content),this.initialFocusElement instanceof HTMLElement&&this.initialFocusElement.focus()},focusInitialElementById(){var e,n,a;const t=(n=(e=this.$refs.content)==null?void 0:e.$el)==null?void 0:n.querySelector(this.initialFocusElement);t?t.focus():console.warn('Could not find the element specified in dt-popover prop "initialFocusElement". Defaulting to focusing the dialog.'),t?t.focus():(a=this.$refs.content)==null||a.$el.focus()},onResize(){this.closePopover()},onClickOutside(){if(!this.hideOnClick)return;this.popoverContentEl.querySelector(".d-popover__anchor--opened")||this.closePopover()},onKeydown(t){t.key==="Tab"&&this.modal&&this.focusTrappedTabPress(t,this.popoverContentEl),t.key==="Escape"&&this.closePopover()},async setPopoverContentAnchorWidth(){var t;await this.$nextTick(),this.popoverContentEl.style.width=`${(t=this.anchorEl)==null?void 0:t.clientWidth}px`},focusFirstElementIfNeeded(t){var n,a;this._getFocusableElements(t,!0).length!==0?this.focusFirstElement(t):this.showCloseButton?(n=this.$refs.popover__header)==null||n.focusCloseButton():(a=this.$refs.content)==null||a.$el.focus()},initTippyInstance(){var t,e;this.tip=ci(this.anchorEl,{popperOptions:this.popperOptions(),contentElement:this.popoverContentEl,placement:this.placement,offset:this.offset,sticky:this.sticky,appendTo:this.appendTo==="body"?(e=(t=this.anchorEl)==null?void 0:t.getRootNode())==null?void 0:e.querySelector("body"):this.appendTo,interactive:!0,trigger:"manual",hideOnClick:!1,zIndex:this.modal?650:this.calculateAnchorZindex(),onClickOutside:this.onClickOutside,onShow:this.onShow})}}};var Ic=function(){var e=this,n=e._self._c;return n("div",[e.modal&&e.isOpen?n("portal",[n("div",{staticClass:"d-modal--transparent",attrs:{"aria-hidden":e.modal&&e.isOpen?"false":"true"},on:{click:function(a){a.preventDefault(),a.stopPropagation()}}})]):e._e(),n(e.elementType,e._g({ref:"popover",tag:"component",class:["d-popover",{"d-popover__anchor--opened":e.isOpen}],attrs:{"data-qa":"dt-popover-container"}},e.$listeners),[n("div",{ref:"anchor",attrs:{id:!e.ariaLabelledby&&e.labelledBy,"data-qa":"dt-popover-anchor",tabindex:e.openOnContext?0:void 0},on:{"!click":function(a){return e.defaultToggleOpen.apply(null,arguments)},contextmenu:e.onContext,keydown:[function(a){return!a.type.indexOf("key")&&e._k(a.keyCode,"up",38,a.key,["Up","ArrowUp"])?null:(a.preventDefault(),e.onArrowKeyPress.apply(null,arguments))},function(a){return!a.type.indexOf("key")&&e._k(a.keyCode,"down",40,a.key,["Down","ArrowDown"])?null:(a.preventDefault(),e.onArrowKeyPress.apply(null,arguments))}],"!keydown":function(a){return!a.type.indexOf("key")&&e._k(a.keyCode,"escape",void 0,a.key,void 0)?null:e.closePopover.apply(null,arguments)}}},[e._t("anchor",null,{attrs:{"aria-expanded":e.isOpen.toString(),"aria-controls":e.id,"aria-haspopup":e.role}})],2),n("dt-lazy-show",e._g({ref:"content",class:["d-popover__dialog",{"d-popover__dialog--modal":e.modal},e.dialogClass],style:{"max-height":e.calculatedMaxHeight,"max-width":e.maxWidth},attrs:{id:e.id,role:e.role,"data-qa":"dt-popover","aria-hidden":`${!e.isOpen}`,"aria-labelledby":e.labelledBy,"aria-label":e.ariaLabel,"aria-modal":`${!e.modal}`,transition:e.transition,show:e.isOpen,tabindex:e.contentTabindex,appear:""}},e.popoverListeners),[e.$slots.headerContent||e.showCloseButton?n("popover-header-footer",{ref:"popover__header",class:e.POPOVER_HEADER_FOOTER_PADDING_CLASSES[e.padding],attrs:{"content-class":e.headerClass,type:"header","show-close-button":e.showCloseButton,"close-button-props":e.closeButtonProps},on:{close:e.closePopover},scopedSlots:e._u([{key:"content",fn:function(){return[e._t("headerContent",null,{close:e.closePopover})]},proxy:!0}],null,!0)}):e._e(),n("div",{ref:"popover__content",class:["d-popover__content",e.POPOVER_PADDING_CLASSES[e.padding],e.contentClass],attrs:{"data-qa":"dt-popover-content"}},[e._t("content",null,{close:e.closePopover})],2),e.$slots.footerContent?n("popover-header-footer",{ref:"popover__footer",class:e.POPOVER_HEADER_FOOTER_PADDING_CLASSES[e.padding],attrs:{type:"footer","content-class":e.footerClass},scopedSlots:e._u([{key:"content",fn:function(){return[e._t("footerContent",null,{close:e.closePopover})]},proxy:!0}],null,!0)}):e._e(),e.showVisuallyHiddenClose?n("sr-only-close-button",{attrs:{"visually-hidden-close-label":e.visuallyHiddenCloseLabel},on:{close:e.closePopover}}):e._e()],1)],1)],1)},Tc=[],Dc=h.normalizeComponent(xc,Ic,Tc,!1,null,null,null,null);const pn=Dc.exports,gt={none:void 0,small:"d-py0",large:"d-py4"};const Lc={name:"DtDropdown",components:{DtPopover:pn,SrOnlyCloseButton:ln},mixins:[la({indexKey:"highlightIndex",idKey:"highlightId",listElementKey:"getListElement",listItemRole:"menuitem",afterHighlightMethod:"afterHighlight",beginningOfListMethod:"beginningOfListMethod",endOfListMethod:"endOfListMethod",activeItemKey:"activeItemEl",focusOnKeyboardNavigation:!0}),Se],props:{open:{type:Boolean,default:null},openOnContext:{type:Boolean,default:!1},padding:{type:String,default:"small",validator:t=>Object.keys(gt).some(e=>e===t)},modal:{type:Boolean,default:!0},contentWidth:{type:String,default:null},maxHeight:{type:String,default:""},maxWidth:{type:String,default:""},listId:{type:String,default(){return z()}},navigationType:{type:String,default:Me.ARROW_KEYS,validator:t=>Object.values(Me).includes(t)},fallbackPlacements:{type:Array,default:()=>["auto"]},placement:{type:String,default:"bottom"},onBeginningOfList:{type:Function,default:null},onEndOfList:{type:Function,default:null},listClass:{type:[String,Array,Object],default:""},appendTo:{type:[HTMLElement,String],default:"body",validator:t=>un.includes(t)||t instanceof HTMLElement},tether:{type:Boolean,default:!0},transition:{type:String,default:"fade"}},emits:["highlight","opened","update:open"],data(){return{LIST_ITEM_NAVIGATION_TYPES:Me,DROPDOWN_PADDING_CLASSES:gt,EVENT_KEYNAMES:U,openedWithKeyboard:!1,isOpen:null}},computed:{dropdownListeners(){return{...this.$listeners,opened:t=>{this.updateInitialHighlightIndex(t)},keydown:t=>{switch(t.code){case U.up:case U.arrowup:this.onUpKeyPress(t),t.stopPropagation(),t.preventDefault();break;case U.down:case U.arrowdown:this.onDownKeyPress(t),t.stopPropagation(),t.preventDefault();break;case U.space:case U.spacebar:this.onSpaceKey();break;case U.enter:this.onEnterKey();break;case U.home:this.onHomeKeyPress(t),t.stopPropagation(),t.preventDefault();break;case U.end:this.onEndKeyPress(t),t.stopPropagation(),t.preventDefault();break;default:this.onKeyPress(t);break}this.$emit("keydown",t)}}},beginningOfListMethod(){return this.onBeginningOfList||this.jumpToEnd},endOfListMethod(){return this.onEndOfList||this.jumpToBeginning},activeItemEl(){return this.getListElement().querySelector("#"+this.highlightId)},isArrowKeyNav(){return this.navigationType===this.LIST_ITEM_NAVIGATION_TYPES.ARROW_KEYS},listClasses(){return["d-ps-relative","d-stack2","d-m4","d-px0",gt[this.padding],this.listClass,{"d-context-menu-list":this.openOnContext}]},shouldOpenWithArrowKeys(){return!this.openOnContext}},methods:{onMouseHighlight(t){const e=t.target.closest("li");e&&e.role&&this.highlightId!==e.id&&(this.setHighlightId(e.id),e.focus())},getListElement(){return this.$refs.listWrapper},clearHighlightIndex(){this.setHighlightIndex(-1)},afterHighlight(){this.visuallyHiddenClose&&this.highlightIndex===this._itemsLength()-1||this.$emit("highlight",this.highlightIndex)},updateInitialHighlightIndex(t){this.isOpen=t,t?(this.openedWithKeyboard&&this.isArrowKeyNav&&this.setHighlightIndex(0),this.$emit("opened",!0)):(this.clearHighlightIndex(),this.openedWithKeyboard=!1,this.$emit("opened",!1))},onSpaceKey(){this.open||(this.openedWithKeyboard=!0)},onEnterKey(){this.open||(this.openedWithKeyboard=!0)},onUpKeyPress(){if(!this.isOpen){this.openedWithKeyboard=!0;return}if(this.isArrowKeyNav)return this.onUpKey()},onDownKeyPress(){if(!this.isOpen){this.openedWithKeyboard=!0;return}if(this.isArrowKeyNav)return this.onDownKey()},onHomeKeyPress(){if(!(!this.isOpen||!this.isArrowKeyNav))return this.onHomeKey()},onEndKeyPress(){if(!(!this.isOpen||!this.isArrowKeyNav))return this.onEndKey()},onKeyPress(t){if(!(!this.isOpen||!this.isArrowKeyNav||!this.isValidCharacter(t.key)))return t.stopPropagation(),t.preventDefault(),this.onNavigationKey(t.key)}}};var kc=function(){var e=this,n=e._self._c;return n("dt-popover",e._g({ref:"popover",attrs:{"content-width":e.contentWidth,open:e.open,placement:e.placement,"initial-focus-element":e.openedWithKeyboard?"first":"dialog","fallback-placements":e.fallbackPlacements,padding:"none",role:"menu","append-to":e.appendTo,modal:e.modal,"max-height":e.maxHeight,"max-width":e.maxWidth,"open-with-arrow-keys":e.shouldOpenWithArrowKeys,"open-on-context":e.openOnContext,tether:e.tether,transition:e.transition},scopedSlots:e._u([{key:"anchor",fn:function({attrs:a}){return[e._t("anchor",null,null,a)]}},{key:"content",fn:function({close:a}){return[n("ul",{ref:"listWrapper",class:e.listClasses,attrs:{id:e.listId,"data-qa":"dt-dropdown-list-wrapper"},on:{mouseleave:e.clearHighlightIndex,"!mousemove":function(r){return e.onMouseHighlight.apply(null,arguments)}}},[e._t("list",null,{close:a}),e.showVisuallyHiddenClose?n("sr-only-close-button",{attrs:{"visually-hidden-close-label":e.visuallyHiddenCloseLabel,tabindex:e.isArrowKeyNav?-1:0},on:{close:a}}):e._e()],2)]}}],null,!0)},e.dropdownListeners))},Ac=[],$c=h.normalizeComponent(Lc,kc,Ac,!1,null,null,null,null);const gi=$c.exports;const Rc={name:"DtDropdownSeparator"};var Pc=function(){var e=this,n=e._self._c;return n("li",{staticClass:"dt-list-separator d-my4 d-mxn4",attrs:{"aria-hidden":"true"}})},Nc=[],Mc=h.normalizeComponent(Rc,Pc,Nc,!1,null,null,null,null);const Bc=Mc.exports,Fc={name:"DtImageViewer",components:{Portal:_a,DtButton:G,DtIcon:V},mixins:[xt],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:t=>{t.target===t.currentTarget&&this.close()},keydown:t=>{switch(t.code){case U.esc:case U.escape:this.close();break;case U.tab:this.trapFocus(t);break}}}}},watch:{isOpen:{immediate:!0,handler(t){var e;t?this.previousActiveElement=document.activeElement:((e=this.previousActiveElement)==null||e.focus(),this.previousActiveElement=null)}},open:{handler:function(t){t!==null&&(this.isOpen=t)},immediate:!0}},methods:{openModal(){this.open===null&&(this.isOpen=!0,this.showCloseButton=!0,this.$emit("opened",!0),setTimeout(()=>{this.focusAfterOpen()}))},close(){this.isOpen=!1,this.$emit("opened",!1),this.open!==null&&this.$emit("update:open",!1)},focusAfterOpen(){var t;(t=this.$refs.closeImage)==null||t.$el.focus()},trapFocus(t){this.isOpen&&this.focusTrappedTabPress(t)}}};var Vc=function(){var e=this,n=e._self._c;return n("div",[n("dt-button",{staticClass:"d-p0 d-c-zoom-in",attrs:{"data-qa":"dt-image-viewer-preview","aria-label":e.ariaLabel,importance:"clear"},on:{click:e.openModal}},[n("img",{class:e.imageButtonClass,attrs:{src:e.imageSrc,alt:e.imageAlt}})]),e.isOpen?n("portal",[n("div",e._g({staticClass:"d-modal",attrs:{"aria-hidden":e.isOpen?"false":"true","data-qa":"dt-modal"},on:{mouseover:function(a){e.showCloseButton=!0},mouseleave:function(a){e.showCloseButton=!1},focusin:function(a){e.showCloseButton=!0},focusout:function(a){e.showCloseButton=!1}}},e.modalListeners),[n("div",{staticClass:"d-p0 d-bar0 d-wmx80p d-hmx80p",attrs:{"data-qa":"dt-image-viewer-full",role:"dialog","aria-modal":"true"}},[n("img",{staticClass:"d-wmx100p d-hmx100p",attrs:{src:e.imageSrc,alt:e.imageAlt}})]),n("transition",{attrs:{name:"fade"}},[e.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":e.closeAriaLabel},on:{click:e.close},scopedSlots:e._u([{key:"icon",fn:function(){return[n("dt-icon",{staticClass:"d-fc-neutral-white",attrs:{name:"close",size:"400"}})]},proxy:!0}],null,!1,2813460049)}):e._e()],1)],1)]):e._e()],1)},jc=[],qc=h.normalizeComponent(Fc,Vc,jc,!1,null,null,null,null);const Hc=qc.exports,Qt={TEXT:"text",TEXTAREA:"textarea",PASSWORD:"password",EMAIL:"email",NUMBER:"number",DATE:"date",TIME:"time"},Ze={EXTRA_SMALL:"xs",SMALL:"sm",DEFAULT:"md",LARGE:"lg",EXTRA_LARGE:"xl"};function kt(t){return t?t.every(e=>typeof e=="string"?!0:typeof e=="object"?Object.values(ae).includes(e==null?void 0:e.type):!1):!0}const zc={name:"DtValidationMessages",props:{id:{type:String,default(){return z()}},validationMessages:{type:Array,default:()=>[],validator:t=>kt(t)},showMessages:{type:Boolean,default:!0}},computed:{isFilteredValidationMessagesEmpty(){return this.filteredValidationMessages.length===0},filteredValidationMessages(){return aa(this.validationMessages)},validationState(){return Ie(this.validationMessages)}},methods:{getMessageKey(t,e){return`validation-message-${t}-${e}-${this.id}`},messageTypeClass(t){return{error:"base-input__message--error d-validation-message--error",warning:"base-input__message--warning d-validation-message--warning",success:"base-input__message--success d-validation-message--success"}[t]}}};var Wc=function(){var e=this,n=e._self._c;return e.showMessages&&!e.isFilteredValidationMessagesEmpty?n("div",{staticClass:"base-input__messages d-d-flex d-fd-column",attrs:{"data-qa":"validation-messages-container"}},e._l(e.filteredValidationMessages,function({message:a,type:r},i){return n("div",{key:e.getMessageKey(r,i),class:["base-input__message","d-validation-message",e.messageTypeClass(r)],attrs:{role:"status","aria-live":"polite","data-qa":"validation-message"}},[n("p",{domProps:{innerHTML:e._s(a)}})])}),0):e._e()},Uc=[],Kc=h.normalizeComponent(zc,Wc,Uc,!1,null,null,null,null);const De=Kc.exports,va={inheritAttrs:!1,props:{label:{type:String,default:""},name:{type:String,default:""},value:{type:[String,Number,Boolean,Object],default:null},description:{type:String,default:""},disabled:{type:Boolean,default:!1},validationState:{type:String,default:"",validator:t=>t?Object.values(ae).includes(t):!0},inputClass:{type:[String,Array,Object],default:""},labelClass:{type:[String,Array,Object],default:""},descriptionClass:{type:[String,Array,Object],default:""},labelChildProps:{type:Object,default:()=>({})},descriptionChildProps:{type:Object,default:()=>({})}},data(){return{internalDisabled:this.disabled,internalValidationState:this.validationState}},watch:{disabled(t){this.internalDisabled=t},validationState(t){this.internalValidationState=t}},methods:{validateInputLabels(t,e){!t&&!e&&re.util.warn("You must provide an aria-label when there is no label passed",this)}}},ba={model:{prop:"checked"},props:{checked:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1},value:{type:[String,Number,Boolean],default:null}},data(){return{internalChecked:this.checked,internalIndeterminate:this.indeterminate}},watch:{checked(t){this.internalChecked=t},indeterminate(t){this.internalIndeterminate=t}}},ya={inject:{groupContext:{default:{}},setGroupValue:{default:()=>()=>{}}},data(){return{internalValue:this.value}},computed:{hasGroup(){return Object.prototype.hasOwnProperty.call(this.groupContext,"name")},groupName(){var t;return((t=this.groupContext)==null?void 0:t.name)??""},groupValue(){var t;return(t=this.groupContext)==null?void 0:t.value},groupDisabled(){var t;return((t=this.groupContext)==null?void 0:t.disabled)??!1},groupValidationState(){var t;return((t=this.groupContext)==null?void 0:t.validationState)??null},internalName(){return this.name||this.groupName}},watch:{value(t){this.internalValue=t},groupValue:{immediate:!0,handler(t){this.hasGroup&&(this.internalValue=t)}},groupDisabled:{immediate:!0,handler(t){this.hasGroup&&(this.internalDisabled=this.disabled||t)}},groupValidationState:{immediate:!0,handler(t){this.hasGroup&&(this.internalValidationState=t||this.validationState)}}},created(){var n;const t=Object.prototype.hasOwnProperty.call(this.groupContext,"name"),e=(n=this.groupContext)==null?void 0:n.name;this.name&&t&&e!==this.name&&re.util.warn(`Component is being used inside a Group. Did you mean to override the name prop value (${e}) with (${this.name})? It is recommended to only set name at the Group level.`,this)}},fn={props:{messagesClass:{type:[String,Array,Object],default:""},messagesChildProps:{type:Object,default:()=>({})},showMessages:{type:Boolean,default:!0},messages:{type:Array,default:()=>[],validator:t=>kt(t)}},computed:{formattedMessages(){return _t(this.messages)}}},Gc={name:"DtInput",components:{DtValidationMessages:De},mixins:[fn],inheritAttrs:!1,props:{name:{type:String,default:""},type:{type:String,default:Qt.TEXT,validator:t=>Object.values(Qt).includes(t)},value:{type:[String,Number],default:""},disabled:{type:Boolean,default:!1},label:{type:String,default:""},labelVisible:{type:Boolean,default:!0},description:{type:String,default:""},size:{type:String,default:null,validator:t=>Object.values(Ze).includes(t)},iconSize:{type:String,default:null,validator:t=>Object.values(Ze).includes(t)},inputClass:{type:[String,Object,Array],default:""},inputWrapperClass:{type:[String,Object,Array],default:""},currentLength:{type:Number,default:null},retainWarning:{type:Boolean,default:!1},validate:{type:Object,default:null}},emits:["input","blur","clear","focus","focusin","focusout","update:length","update:invalid"],data(){return{descriptionSizeClasses:{lg:"d-description--lg",xl:"d-description--xl"},labelSizeClasses:{xs:"d-label--xs",sm:"d-label--sm",md:"d-label--md",lg:"d-label--lg",xl:"d-label--xl"},isInputFocused:!1,isInvalid:!1,defaultLength:0}},computed:{isTextarea(){return this.type===Qt.TEXTAREA},isDefaultSize(){return this.size===Ze.DEFAULT},isDefaultIconSize(){return this.iconSizeComputed===Ze.DEFAULT},iconSizeComputed(){return this.iconSize?this.iconSize:this.size},isValidSize(){return Object.values(Ze).includes(this.size)},isValidDescriptionSize(){return Object.values(dr).includes(this.size)},inputComponent(){return this.isTextarea?"textarea":"input"},inputListeners(){return{...this.$listeners,input:t=>this.$emit("input",t.target.value),focus:t=>{this.isInputFocused=!0,this.$emit("focus",t)},blur:t=>{this.isInputFocused=!1,this.onBlur(t)}}},descriptionKey(){return`input-description-${z()}`},inputState(){return Ie(this.validationMessages)},defaultLengthCalculation(){return this.calculateLength(this.value)},validationProps(){var t,e,n,a,r,i,s,l,d,p;return{length:{description:(e=(t=this==null?void 0:this.validate)==null?void 0:t.length)==null?void 0:e.description,max:(a=(n=this==null?void 0:this.validate)==null?void 0:n.length)==null?void 0:a.max,warn:(i=(r=this==null?void 0:this.validate)==null?void 0:r.length)==null?void 0:i.warn,message:(l=(s=this==null?void 0:this.validate)==null?void 0:s.length)==null?void 0:l.message,limitMaxLength:(p=(d=this==null?void 0:this.validate)==null?void 0:d.length)!=null&&p.limitMaxLength?this.validate.length.limitMaxLength:!1}}},validationMessages(){return this.showLengthLimitValidation?this.formattedMessages.concat([this.inputLengthErrorMessage()]):this.formattedMessages},showInputState(){return this.showMessages&&this.inputState},inputLength(){return this.currentLength?this.currentLength:this.defaultLengthCalculation},inputLengthState(){return this.inputLength<this.validationProps.length.warn?null:this.inputLength<=this.validationProps.length.max?this.validationProps.length.warn?ae.WARNING:null:ae.ERROR},shouldValidateLength(){return!!(this.validationProps.length.description&&this.validationProps.length.max)},shouldLimitMaxLength(){return this.shouldValidateLength&&this.validationProps.length.limitMaxLength},showLengthLimitValidation(){return this.shouldValidateLength&&this.inputLengthState!==null&&this.validationProps.length.message&&(this.retainWarning||this.isInputFocused||this.isInvalid)},sizeModifierClass(){return this.isDefaultSize||!this.isValidSize?"":{input:{xs:"d-input--xs",sm:"d-input--sm",lg:"d-input--lg",xl:"d-input--xl"},textarea:{xs:"d-textarea--xs",sm:"d-textarea--sm",lg:"d-textarea--lg",xl:"d-textarea--xl"}}[this.inputComponent][this.size]},stateClass(){return[{input:{error:"d-input--error base-input__input--error",warning:"d-input--warning base-input__input--warning",success:"d-input--success base-input__input--success"},textarea:{error:"d-textarea--error base-input__input--error",warning:"d-textarea--warning base-input__input--warning",success:"d-textarea--success base-input__input--success"}}[this.inputComponent][this.inputState]]}},watch:{isInvalid(t){this.$emit("update:invalid",t)},value:{immediate:!0,handler(t){this.shouldValidateLength&&this.validateLength(this.inputLength),this.currentLength==null&&this.$emit("update:length",this.calculateLength(t))}}},methods:{inputClasses(){return["base-input__input",this.inputComponent==="input"?"d-input":"d-textarea",{[this.stateClass]:this.showInputState,"d-input-icon--left":this.$slots.leftIcon,"d-input-icon--right":this.$slots.rightIcon},this.sizeModifierClass,this.inputClass]},inputWrapperClasses(){return["d-input__wrapper",{[this.stateClass]:this.showInputState},this.inputWrapperClass]},calculateLength(t){return typeof t!="string"?0:[...t].length},inputLengthErrorMessage(){return{message:this.validationProps.length.message,type:this.inputLengthState}},inputIconClasses(t){const e={xs:"d-input-icon--xs",sm:"d-input-icon--sm",lg:"d-input-icon--lg",xl:"d-input-icon--xl"};return[{left:"base-input__icon--left d-input-icon--left",right:"base-input__icon--right d-input-icon--right"}[t],"d-input-icon",{[e[this.iconSizeComputed]]:!this.isDefaultIconSize},this.sizeModifierClass]},onBlur(t){var e;(e=this.$refs.container)!=null&&e.contains(t.relatedTarget)||this.$emit("blur",t)},clear(){this.$emit("input",""),this.$emit("clear")},blur(){this.$refs.input.blur()},focus(){this.$refs.input.focus()},select(){this.$refs.input.select()},getMessageKey(t,e){return`message-${t}-${e}`},validateLength(t){this.isInvalid=t>this.validationProps.length.max}}};var Yc=function(){var e=this,n=e._self._c;return n("div",{ref:"container",staticClass:"base-input",attrs:{"data-qa":"dt-input"}},[n("label",{staticClass:"base-input__label",attrs:{"aria-details":e.$slots.description||e.description?e.descriptionKey:void 0,"data-qa":"dt-input-label-wrapper"}},[e._t("labelSlot",function(){return[e.labelVisible&&e.label?n("div",{ref:"label",class:["base-input__label-text","d-label",e.labelSizeClasses[e.size]],attrs:{"data-qa":"dt-input-label"}},[e._v(" "+e._s(e.label)+" ")]):e._e()]}),e.$slots.description||e.description||e.shouldValidateLength?n("div",{ref:"description",class:["base-input__description","d-description","d-fd-column",e.descriptionSizeClasses[e.size]],attrs:{id:e.descriptionKey,"data-qa":"dt-input-description"}},[e.$slots.description||e.description?n("div",[e._t("description",function(){return[e._v(e._s(e.description))]})],2):e._e(),e.shouldValidateLength?n("div",{class:["d-mb2"],attrs:{"data-qa":"dt-input-length-description"}},[e._v(" "+e._s(e.validationProps.length.description)+" ")]):e._e()]):e._e(),n("div",{class:e.inputWrapperClasses(),attrs:{"read-only":e.disabled}},[e.$slots.leftIcon?n("span",{class:e.inputIconClasses("left"),attrs:{"data-qa":"dt-input-left-icon-wrapper"},on:{focusout:e.onBlur}},[e._t("leftIcon")],2):e._e(),e.isTextarea?n("textarea",e._g(e._b({ref:"input",class:e.inputClasses(),attrs:{name:e.name,disabled:e.disabled,maxlength:e.shouldLimitMaxLength?e.validationProps.length.max:null,"data-qa":"dt-input-input"},domProps:{value:e.value}},"textarea",e.$attrs,!1),e.inputListeners)):n("input",e._g(e._b({ref:"input",class:e.inputClasses(),attrs:{name:e.name,type:e.type,disabled:e.disabled,maxlength:e.shouldLimitMaxLength?e.validationProps.length.max:null,"data-qa":"dt-input-input"},domProps:{value:e.value}},"input",e.$attrs,!1),e.inputListeners)),e.$slots.rightIcon?n("span",{class:e.inputIconClasses("right"),attrs:{"data-qa":"dt-input-right-icon-wrapper"},on:{focusout:e.onBlur}},[e._t("rightIcon")],2):e._e()])],2),n("dt-validation-messages",e._b({class:e.messagesClass,attrs:{"validation-messages":e.validationMessages,"show-messages":e.showMessages,"data-qa":"dt-input-messages"}},"dt-validation-messages",e.messagesChildProps,!1))],1)},Zc=[],Xc=h.normalizeComponent(Gc,Yc,Zc,!1,null,null,null,null);const _i=Xc.exports,vi={components:{DtValidationMessages:De},provide(){return{groupContext:this.provideObj,setGroupValue:this.setGroupValue}},props:{id:{type:String,default(){return z()}},value:{type:[String,Number,Boolean,Object],default:null},name:{type:String,required:!0},legend:{type:String,default:""},disabled:{type:Boolean,default:!1},messages:{type:Array,default:()=>[],validator:t=>kt(t)},showMessages:{type:Boolean,default:!0},legendClass:{type:[String,Array,Object],default:""},messagesClass:{type:[String,Array,Object],default:""},legendChildProps:{type:Object,default:()=>({})},messagesChildProps:{type:Object,default:()=>({})}},data(){const t=_t(this.messages);return{provideObj:{name:this.name,disabled:this.disabled,validationState:Ie(t)}}},computed:{formattedMessages(){return _t(this.messages)},validationState(){return Ie(this.formattedMessages)}},watch:{disabled(t){this.provideObj.disabled=t},validationState(t){this.provideObj.validationState=t}},methods:{setGroupValue(t){this.internalValue=t,this.$emit("input",t)}},mounted(){!this.legend&&!this.$slots.legend&&!this.$attrs["aria-label"]&&re.util.warn("It is expected that an aria-label is provided when there is no legend.",this)}},Qc={name:"DtInputGroup",components:{DtValidationMessages:De},mixins:[vi],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(t){this.internalValue=t},internalValue(t){this.provideObj.value=t}},methods:{getMessageKey(t,e){return`input-group-message-${t}-${e}-${this.id}`}}};var Jc=function(){var e=this,n=e._self._c;return n("fieldset",{attrs:{"data-qa":e.dataQaGroup}},[e.$slots.legend||e.legend?n("legend",e._b({class:["d-label",e.legendClass],attrs:{"data-qa":e.dataQaGroupLegend}},"legend",e.legendChildProps,!1),[e._t("legend",function(){return[e._v(" "+e._s(e.legend)+" ")]})],2):e._e(),e._t("default"),n("dt-validation-messages",e._b({class:e.messagesClass,attrs:{"validation-messages":e.formattedMessages,"show-messages":e.showMessages,"data-qa":e.dataQaGroupMessages}},"dt-validation-messages",e.messagesChildProps,!1))],2)},eu=[],tu=h.normalizeComponent(Qc,Jc,eu,!1,null,null,null,null);const Sa=tu.exports,Kn={default:"",danger:"d-modal--danger"},Gn={default:"",full:"d-modal--full"},Yn={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"},nu={name:"DtNotice",components:{DtNoticeIcon:ia,DtNoticeContent:sa,DtNoticeAction:oa},mixins:[Se],props:{titleId:{type:String,default:void 0},contentId:{type:String,default:void 0},title:{type:String,default:""},role:{type:String,default:"status",validate(t){return Fs.includes(t)}},important:{type:Boolean,default:!1},kind:{type:String,default:"base",validate(t){return at.includes(t)}},closeButtonProps:{type:Object,default:()=>({})},hideClose:{type:Boolean,default:!1}},emits:["close"],computed:{noticeClass(){return["d-notice",{error:"d-notice--error",info:"d-notice--info",success:"d-notice--success",warning:"d-notice--warning",base:"d-notice--base"}[this.kind],{"d-notice--important":this.important}]}}};var au=function(){var e=this,n=e._self._c;return n("aside",{class:e.noticeClass,attrs:{"data-qa":"notice"}},[n("dt-notice-icon",{attrs:{kind:e.kind}},[e._t("icon")],2),n("dt-notice-content",e._g({attrs:{"title-id":e.titleId,"content-id":e.contentId,title:e.title,role:e.role},scopedSlots:e._u([{key:"titleOverride",fn:function(){return[e._t("titleOverride")]},proxy:!0}],null,!0)},e.$listeners),[e._t("default")],2),n("dt-notice-action",e._g({attrs:{"hide-close":e.hideClose,"close-button-props":e.closeButtonProps,"visually-hidden-close":e.visuallyHiddenClose,"visually-hidden-close-label":e.visuallyHiddenCloseLabel}},e.$listeners),[e._t("action")],2)],1)},ru=[],iu=h.normalizeComponent(nu,au,ru,!1,null,null,null,null);const su=iu.exports,ou={name:"DtModal",components:{DtLazyShow:rt,DtButton:G,DtIcon:V,SrOnlyCloseButton:ln},mixins:[xt,Se],props:{closeButtonProps:{type:Object,required:!0,validator:t=>!!t.ariaLabel},copy:{type:String,default:""},describedById:{type:String,default:""},labelledById:{type:String,default:function(){return z()}},show:{type:Boolean,default:!1},title:{type:String,default:""},bannerTitle:{type:String,default:""},kind:{type:String,default:"default",validator:t=>Object.keys(Kn).includes(t)},size:{type:String,default:"default",validator:t=>Object.keys(Gn).includes(t)},modalClass:{type:[String,Object,Array],default:""},dialogClass:{type:[String,Object,Array],default:""},contentClass:{type:[String,Object,Array],default:""},bannerKind:{type:String,default:"warning",validate(t){return at.includes(t)}},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:t=>t==="first"||t instanceof HTMLElement||t.startsWith("#")}},emits:["update:show"],data(){return{MODAL_KIND_MODIFIERS:Kn,MODAL_SIZE_MODIFIERS:Gn,MODAL_BANNER_KINDS:Yn,EVENT_KEYNAMES:U}},computed:{modalListeners(){return{...this.$listeners,click:t=>{this.closeOnClick&&(t.target===t.currentTarget&&this.close(),this.$emit("click",t))},keydown:t=>{switch(t.code){case U.esc:case U.escape:this.close();break;case U.tab:this.trapFocus(t);break}this.$emit("keydown",t)},"after-enter":t=>{this.$emit("update:show",!0),t.target===t.currentTarget&&this.setFocusAfterTransition()}}},open(){return`${!this.show}`},hasFooterSlot(){return!!this.$slots.footer},bannerKindClass(){return Yn[this.bannerKind]}},watch:{show:{immediate:!0,handler(t){var e;t?this.previousActiveElement=document.activeElement:((e=this.previousActiveElement)==null||e.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(t){this.show&&this.focusTrappedTabPress(t)},validateProps(){this.hideClose&&!this.visuallyHiddenClose&&console.error(`If hideClose prop is true, visuallyHiddenClose and visuallyHiddenCloseLabel props
|
|
30
|
-
need to be set so the component always includes a close button`)}}};var lu=function(){var e=this,n=e._self._c;return n("dt-lazy-show",e._g({class:["d-modal",e.MODAL_KIND_MODIFIERS[e.kind],e.MODAL_SIZE_MODIFIERS[e.size],e.modalClass],attrs:{transition:"d-zoom",show:e.show,"data-qa":"dt-modal","aria-hidden":e.open}},e.modalListeners),[e.show&&(e.$slots.banner||e.bannerTitle)?n("div",{class:["d-modal__banner",e.bannerClass,e.bannerKindClass],attrs:{"data-qa":"dt-modal-banner"}},[e._t("banner",function(){return[e._v(" "+e._s(e.bannerTitle)+" ")]})],2):e._e(),n("transition",{attrs:{appear:"",name:"d-modal__dialog"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.show,expression:"show"}],class:["d-modal__dialog",{"d-modal__dialog--scrollable":e.fixedHeaderFooter},e.dialogClass],attrs:{role:"dialog","aria-modal":"true","aria-describedby":e.describedById,"aria-labelledby":e.labelledById}},[e.$slots.header?n("div",{staticClass:"d-modal__header",attrs:{id:e.labelledById,"data-qa":"dt-modal-title"}},[e._t("header")],2):n("h2",{staticClass:"d-modal__header",attrs:{id:e.labelledById,"data-qa":"dt-modal-title"}},[e._v(" "+e._s(e.title)+" ")]),e.$slots.default?n("div",{class:["d-modal__content",e.contentClass],attrs:{"data-qa":"dt-modal-copy"}},[e._t("default")],2):n("p",{class:["d-modal__content",e.contentClass],attrs:{"data-qa":"dt-modal-copy"}},[e._v(" "+e._s(e.copy)+" ")]),e.hasFooterSlot?n("footer",{staticClass:"d-modal__footer"},[e._t("footer")],2):e._e(),e.hideClose?e._e():n("dt-button",e._b({staticClass:"d-modal__close",attrs:{circle:"",size:"lg",importance:"clear","aria-label":e.closeButtonProps.ariaLabel},on:{click:e.close},scopedSlots:e._u([{key:"icon",fn:function(){return[n("dt-icon",{attrs:{name:"close",size:"400"}})]},proxy:!0}],null,!1,1709155279)},"dt-button",e.closeButtonProps,!1)),e.showVisuallyHiddenClose?n("sr-only-close-button",{attrs:{"visually-hidden-close-label":e.visuallyHiddenCloseLabel},on:{close:e.close}}):e._e()],1)])],1)},du=[],cu=h.normalizeComponent(ou,lu,du,!1,null,null,null,null);const uu=cu.exports;const pu={name:"ListSection",components:{Vnodes:{name:"vnodes",functional:!0,render:(t,e)=>e.props.vnodes},DtButton:G},props:{id:{type:String,default(){return de.getUniqueString()}},header:{type:String,default:null},separator:{type:Boolean,default:!1},maxDisplayed:{type:Number,default:0},textMore:{type:String,default:"Show more"},textLess:{type:String,default:"Show less"}},data(){return{showAll:!1}},computed:{isCollapsible(){return!(this.maxDisplayed===0||this.itemCount<=this.maxDisplayed)},showMoreLessText(){return this.showAll?this.textLess:this.textMore},hiddenCount(){return this.itemCount-this.displayedItems.length},itemCount(){return this.$slots.default.length},displayedItems(){return this.$slots.default.filter((t,e)=>e<=this.maxDisplayed-1)}},methods:{showMoreLessClicked(){this.showAll=!this.showAll}}};var fu=function(){var e=this,n=e._self._c;return n("div",{class:["dt-list-section","d-fs-200","d-lh6","d-py6","d-bc-black-400",{"d-bb":e.separator}],attrs:{id:e.id,role:"group","aria-labelledby":`${e.id}-list-section-header`,tabindex:"-1"}},[e.header?n("h3",{staticClass:"d-pl12 d-mt6",attrs:{id:`${e.id}-list-section-header`}},[e._v(" "+e._s(e.header)+" ")]):e._e(),!e.isCollapsible||e.showAll?n("ol",{attrs:{id:`${e.id}-list-section-content`}},[e._t("default")],2):n("ol",{attrs:{id:`${e.id}-list-section-content`}},[n("vnodes",{attrs:{vnodes:e.displayedItems}})],1),n("div",{staticClass:"d-d-flex"},[e.isCollapsible?n("dt-button",{staticClass:"d-ml12 d-py6",attrs:{id:`${e.id}-list-section-show-more-less`,link:""},on:{click:e.showMoreLessClicked}},[e._v(" "+e._s(e.showMoreLessText)+" ")]):e._e(),e._t("footer")],2)])},hu=[],mu=h.normalizeComponent(pu,fu,hu,!1,null,null,null,null);const gu=mu.exports,_u={name:"DtListItemGroup",props:{id:{type:String,default(){return z()}},heading:{type:String,default:""},headingClass:{type:[String,Array,Object],default:""},listClass:{type:[String,Array,Object],default:""}}};var vu=function(){var e=this,n=e._self._c;return n("ul",{class:["d-ps-relative","d-px0",e.listClass],attrs:{id:e.id,role:"group","data-qa":"dt-dropdown-list-wrapper","aria-labelledby":`${e.id}-heading`}},[e.heading?n("li",{class:["dt-dropdown-list--header",e.headingClass],attrs:{id:`${e.id}-heading`,role:"presentation","data-qa":"dt-dropdown-list-heading"}},[e._t("headingSlot",function(){return[e._v(" "+e._s(e.heading)+" ")]})],2):e._e(),e._t("default")],2)},bu=[],yu=h.normalizeComponent(_u,vu,bu,!1,null,null,null,null);const Su=yu.exports,Cu={name:"DtPagination",components:{DtButton:G,DtIcon:V},props:{ariaLabel:{type:String,required:!0},totalPages:{type:Number,required:!0},prevAriaLabel:{type:String,required:!0},nextAriaLabel:{type:String,required:!0},pageNumberAriaLabel:{type:Function,required:!0},activePage:{type:Number,default:1},maxVisible:{type:Number,default:5}},emits:["change"],data(){return{currentPage:this.activePage}},computed:{isFirstPage(){return this.currentPage===1},isLastPage(){return this.currentPage===this.totalPages},pages(){if(this.maxVisible===0)return[];if(this.totalPages<=this.maxVisible)return this.range(1,this.totalPages);const t=this.maxVisible-1,e=this.totalPages-t+1;if(this.currentPage<t)return[...this.range(1,t),"...",this.totalPages];if(this.currentPage>e)return[1,"...",...this.range(e,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(t,e){const n=[];t=t>0?t:1;for(let a=t;a<=e;a++)n.push(a);return n},changePage(t){this.currentPage=t,this.$emit("change",this.currentPage)}}};var wu=function(){var e=this,n=e._self._c;return n("nav",{staticClass:"d-d-flex d-fd-row d-gg4 d-ai-center",attrs:{"aria-label":e.ariaLabel}},[n("dt-button",{staticClass:"d-px8",class:e.isFirstPage?"d-fc-black-300 d-bgc-transparent":"d-fc-tertiary",attrs:{"data-qa":"dt-pagination-prev","aria-label":e.prevAriaLabel,kind:e.isFirstPage?"default":"muted",importance:e.isFirstPage?"primary":"clear",disabled:e.isFirstPage},on:{click:function(a){return e.changePage(e.currentPage-1)}}},[n("template",{slot:"icon"},[n("dt-icon",{attrs:{name:"chevron-left",size:"300"}})],1)],2),e._l(e.pages,function(a,r){return n("div",{key:`page-${a}-${r}`,class:{"d-as-flex-end":isNaN(Number(a))}},[isNaN(Number(a))?n("div",{staticClass:"d-fc-tertiary d-w24 d-ta-center",attrs:{"data-qa":"dt-pagination-separator"}},[n("dt-icon",{attrs:{name:"more-horizontal",size:"300"}})],1):n("dt-button",{attrs:{"aria-label":e.pageNumberAriaLabel(a),kind:e.currentPage===a?"default":"muted",importance:e.currentPage===a?"primary":"clear","label-class":""},on:{click:function(i){return e.changePage(a)}}},[e._v(" "+e._s(a)+" ")])],1)}),n("dt-button",{staticClass:"d-px8",class:e.isLastPage?"d-fc-black-300 d-bgc-transparent":"d-fc-tertiary",attrs:{"data-qa":"dt-pagination-next","aria-label":e.nextAriaLabel,disabled:e.isLastPage,kind:"muted",importance:e.isLastPage?"primary":"clear"},on:{click:function(a){return e.changePage(e.currentPage+1)}}},[n("template",{slot:"icon"},[n("dt-icon",{attrs:{name:"chevron-right",size:"300"}})],1)],2)],2)},Ou=[],Eu=h.normalizeComponent(Cu,wu,Ou,!1,null,null,null,null);const xu=Eu.exports,Iu={warning:"d-radio--warning",error:"d-radio--error",success:"d-radio--success"},Tu={name:"DtRadio",components:{DtValidationMessages:De},mixins:[va,ba,ya,fn],inheritAttrs:!1,props:{value:{type:[String,Number],default:""}},emits:["input","focusin","focusout"],computed:{inputValidationClass(){return Iu[this.internalValidationState]},radioGroupValue(){var t;return(t=this.groupContext)==null?void 0:t.selectedValue},inputListeners(){return{...this.$listeners,input:()=>{},change:t=>this.emitValue(t.target.value)}}},watch:{radioGroupValue:{immediate:!0,handler(t){this.hasGroup&&(this.internalChecked=t===this.value)}}},methods:{emitValue(t){t!==this.radioGroupValue&&(this.setGroupValue(t),this.$emit("input",t))}}};var Du=function(){var e=this,n=e._self._c;return n("label",[n("div",{class:["d-radio-group",{"d-radio-group--disabled":e.internalDisabled}]},[n("div",{staticClass:"d-radio__input"},[n("input",e._g(e._b({class:["d-radio",e.inputValidationClass,e.inputClass],attrs:{name:e.internalName,disabled:e.internalDisabled,type:"radio"},domProps:{checked:e.internalChecked,value:e.value}},"input",e.$attrs,!1),e.inputListeners))]),n("div",{staticClass:"d-radio__copy d-radio__label",attrs:{"data-qa":"radio-label-description-container"}},[n("div",e._b({class:e.labelClass,attrs:{"data-qa":"radio-label"}},"div",e.labelChildProps,!1),[e._t("default",function(){return[e._v(e._s(e.label))]})],2),e.$slots.description||e.description?n("div",e._b({class:["d-description",e.descriptionClass],attrs:{"data-qa":"radio-description"}},"div",e.descriptionChildProps,!1),[e._t("description",function(){return[e._v(e._s(e.description))]})],2):e._e(),n("dt-validation-messages",e._b({class:e.messagesClass,attrs:{"validation-messages":e.formattedMessages,"show-messages":e.showMessages,"data-qa":"dt-radio-validation-messages"}},"dt-validation-messages",e.messagesChildProps,!1))],1)])])},Lu=[],ku=h.normalizeComponent(Tu,Du,Lu,!1,null,null,null,null);const Au=ku.exports,$u={name:"DtRadioGroup",extends:Sa,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(t){this.provideObj.selectedValue=t}},methods:{setGroupValue(t){this.$emit("input",t)},getMessageKey(t,e){return`radio-group-message-${t}-${e}-${this.id}`}}},Ru=null,Pu=null;var Nu=h.normalizeComponent($u,Ru,Pu,!1,null,null,null,null);const Mu=Nu.exports,bi=["default","sm"],Bu={sm:"d-tablist--sm"},yi={inverted:"d-tablist--inverted"},Si={borderless:"d-tablist--no-border"},Ci={selected:"d-tab--selected"},Fu={name:"DtTabGroup",provide(){return{groupContext:this.provideObj,changeContentPanel:this.changeContentPanel,setFocus:this.setFocus}},props:{label:{type:String,default:""},selected:{type:String,default:""},disabled:{type:Boolean,default:!1},inverted:{type:Boolean,default:!1},borderless:{type:Boolean,default:!1},size:{type:String,default:"default",validate(t){return bi.includes(t)}},tabListClass:{type:[String,Array,Object],default:""},tabListChildProps:{type:Object,default:()=>({})}},emits:["change"],data(){return{provideObj:{selected:"",disabled:!1},focusId:null,tabs:[],TAB_LIST_SIZE_MODIFIERS:Bu,TAB_LIST_KIND_MODIFIERS:yi,TAB_LIST_IMPORTANCE_MODIFIERS:Si}},watch:{disabled:{immediate:!0,handler(){this.provideObj.disabled=this.disabled}},selected:{immediate:!0,handler(){this.provideObj.selected=this.selected}}},mounted(){this.updateSelected()},beforeUpdate(){this.updateSelected()},methods:{updateSelected(){this.provideObj.selected||(this.provideObj.selected=this.selected),this.tabs=this.getTabChildren()},setFocus(t){this.focusId=t},getTabChildren(){return this.$children.map(({$el:t})=>t).filter(({className:t})=>t.includes("d-tab")).map(t=>{var e,n;return{context:t,panelId:(e=t.getAttribute("aria-controls"))==null?void 0:e.replace("dt-panel-",""),id:(n=t.getAttribute("id"))==null?void 0:n.replace("dt-tab-",""),isSelected:t.getAttribute("aria-selected")==="true"}})},onChange(){this.$emit("change",{...this.provideObj})},changeContentPanel({selected:t,selectOverride:e}){this.provideObj.selected=t,e||this.onChange()},tabLeft(){const{index:t,tabs:e}=this.getIndexAndTabs();if(t===-1)return;const n=t-1<0?e.length-1:t-1;this.selectFocusOnTab(n,e)},tabRight(){const{index:t,tabs:e}=this.getIndexAndTabs();if(t===-1)return;const n=t+1>e.length-1?0:t+1;this.selectFocusOnTab(n,e)},selectFocusOnTab(t,e){const{context:n}=e[t];n.focus()},selectTab(){const{tabs:t,index:e}=this.getIndexAndTabs();this.selectTabByIndex(e,t)},selectTabByIndex(t,e){const{context:n,panelId:a}=e[t];this.provideObj.selected=a,n.focus()},getIndexAndTabs(){const t=this.tabs.findIndex(e=>this.focusId?e.id===`${this.focusId}`:e.isSelected);return{tabs:this.tabs,index:t}},onHomeButton(){var t,e;this.tabs.length!==0&&((e=(t=this.tabs[0])==null?void 0:t.context)==null||e.focus())},onEndButton(){var t,e;this.tabs.length!==0&&((e=(t=this.tabs[this.tabs.length-1])==null?void 0:t.context)==null||e.focus())}}};var Vu=function(){var e=this,n=e._self._c;return n("div",{attrs:{"data-qa":"dt-tab-group"}},[n("div",e._b({class:["d-tablist",e.TAB_LIST_SIZE_MODIFIERS[e.size],{[e.TAB_LIST_KIND_MODIFIERS.inverted]:e.inverted,[e.TAB_LIST_IMPORTANCE_MODIFIERS.borderless]:e.borderless},e.tabListClass],attrs:{role:"tablist","aria-label":e.label},on:{keyup:[function(a){return!a.type.indexOf("key")&&e._k(a.keyCode,"left",37,a.key,["Left","ArrowLeft"])||"button"in a&&a.button!==0?null:e.tabLeft.apply(null,arguments)},function(a){return!a.type.indexOf("key")&&e._k(a.keyCode,"right",39,a.key,["Right","ArrowRight"])||"button"in a&&a.button!==2?null:e.tabRight.apply(null,arguments)},function(a){return!a.type.indexOf("key")&&e._k(a.keyCode,"enter",13,a.key,"Enter")?null:e.selectTab.apply(null,arguments)},function(a){return!a.type.indexOf("key")&&e._k(a.keyCode,"space",32,a.key,[" ","Spacebar"])?null:e.selectTab.apply(null,arguments)}],keydown:[function(a){return!a.type.indexOf("key")&&e._k(a.keyCode,"home",void 0,a.key,void 0)?null:e.onHomeButton.apply(null,arguments)},function(a){return!a.type.indexOf("key")&&e._k(a.keyCode,"end",void 0,a.key,void 0)?null:e.onEndButton.apply(null,arguments)}]}},"div",e.tabListChildProps,!1),[e._t("tabs")],2),e._t("default")],2)},ju=[],qu=h.normalizeComponent(Fu,Vu,ju,!1,null,null,null,null);const Hu=qu.exports,zu={name:"DtTab",components:{DtButton:G},inject:["changeContentPanel","groupContext","setFocus"],inheritAttrs:!1,props:{id:{type:String,required:!0},panelId:{type:String,required:!0},label:{type:String,default:""},selected:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},tabClass:{type:[String,Array,Object],default:""}},data(){return{TAB_IMPORTANCE_MODIFIERS:Ci}},computed:{isSelected(){return this.groupContext.selected===this.panelId},tabListeners(){return{...this.$listeners,click:t=>{this.selectPanel(),this.$emit("click",t)},focus:t=>{this.setFocus(this.id),this.$emit("focus",t)}}}},mounted(){this.setSelectedPanelByDefault()},methods:{setSelectedPanelByDefault(){this.selected&&this.selectPanel(!0)},selectPanel(t=!1){this.changeContentPanel({selected:this.panelId,selectOverride:t})}}};var Wu=function(){var e=this,n=e._self._c;return n("dt-button",e._g(e._b({class:["d-tab",{[e.TAB_IMPORTANCE_MODIFIERS.selected]:e.isSelected},e.tabClass],attrs:{id:`dt-tab-${e.id}`,role:"tab","aria-selected":`${e.isSelected}`,"aria-controls":`dt-panel-${e.panelId}`,"aria-label":e.label,"data-qa":"dt-tab",tabindex:e.isSelected?"0":"-1",disabled:e.groupContext.disabled||e.disabled}},"dt-button",e.$attrs,!1),e.tabListeners),[e._t("default")],2)},Uu=[],Ku=h.normalizeComponent(zu,Wu,Uu,!1,null,null,null,null);const Gu=Ku.exports,Yu={name:"DtTabPanel",mixins:[xt],inject:["groupContext"],props:{id:{type:String,required:!0},tabId:{type:String,required:!0},hidden:{type:Boolean,default:!1},tabPanelClass:{type:[String,Array,Object],default:""}},data(){return{isFirstElementFocusable:!1}},computed:{hidePanel(){return this.groupContext.selected!==this.id||this.hidden}},async mounted(){const t=await this.getFirstFocusableElement(this.$el);t?this.isFirstElementFocusable=this.isFirstElementOfPanel(t):this.isFirstElementFocusable=!1},methods:{isFirstElementOfPanel(t){let e=t,n=!0;for(;e;){if(e.previousElementSibling!==null){n=!1;break}e=e.parentNode!==this.$el?e.parentNode:null}return n}}};var Zu=function(){var e=this,n=e._self._c;return n("div",{class:[{"d-d-none":e.hidePanel},e.tabPanelClass],attrs:{id:`dt-panel-${e.id}`,role:"tabpanel",tabindex:e.isFirstElementFocusable?-1:0,"aria-labelledby":`dt-tab-${e.tabId}`,"aria-hidden":`${e.hidePanel}`,"data-qa":"dt-tab-panel"}},[e._t("default")],2)},Xu=[],Qu=h.normalizeComponent(Yu,Zu,Xu,!1,null,null,null,null);const Ju=Qu.exports,ep={error:"d-checkbox--error",warning:"d-checkbox--warning",success:"d-checkbox--success"},tp={name:"DtCheckbox",components:{DtValidationMessages:De},mixins:[va,ba,ya,fn],inheritAttrs:!1,emits:["input","focusin","focusout"],computed:{inputValidationClass(){return ep[this.internalValidationState]},checkboxGroupValueChecked(){var t,e;return((e=(t=this.groupContext)==null?void 0:t.selectedValues)==null?void 0:e.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:t=>this.emitValue(t.target)}}},watch:{checkboxGroupValueChecked:{immediate:!0,handler(t){this.hasGroup&&(this.internalChecked=t)}}},mounted(){this.runValidations()},methods:{emitValue(t){let{value:e,checked:n}=t;this.internalIndeterminate&&(n=!1,this.internalIndeterminate=!1,t.checked=!1),this.setGroupValue(e,n),this.$emit("input",n)},runValidations(){this.validateInputLabels(this.hasLabel,this.$attrs["aria-label"])}}};var np=function(){var e=this,n=e._self._c;return n("label",[n("div",{class:["d-checkbox-group",{"d-checkbox-group--disabled":e.internalDisabled}]},[n("div",{staticClass:"d-checkbox__input"},[n("input",e._g(e._b({class:["d-checkbox",e.inputValidationClass,e.inputClass],attrs:{type:"checkbox",name:e.internalName,disabled:e.internalDisabled},domProps:{checked:e.internalChecked,value:e.value,indeterminate:e.internalIndeterminate}},"input",e.$attrs,!1),e.inputListeners))]),e.hasLabelOrDescription?n("div",{staticClass:"d-checkbox__copy d-checkbox__label",attrs:{"data-qa":"checkbox-label-description-container"}},[e.hasLabel?n("div",e._b({class:e.labelClass,attrs:{"data-qa":"checkbox-label"}},"div",e.labelChildProps,!1),[e._t("default",function(){return[e._v(e._s(e.label))]})],2):e._e(),e.hasDescription?n("div",e._b({class:["d-description",e.descriptionClass],attrs:{"data-qa":"checkbox-description"}},"div",e.descriptionChildProps,!1),[e._t("description",function(){return[e._v(e._s(e.description))]})],2):e._e(),n("dt-validation-messages",e._b({class:e.messagesClass,attrs:{"validation-messages":e.formattedMessages,"show-messages":e.showMessages,"data-qa":"dt-checkbox-validation-messages"}},"dt-validation-messages",e.messagesChildProps,!1))],1):e._e()])])},ap=[],rp=h.normalizeComponent(tp,np,ap,!1,null,null,null,null);const ip=rp.exports,sp={name:"DtCheckboxGroup",extends:Sa,model:{prop:"selectedValues"},props:{value:{type:[],default:null,validator:t=>t?(re.util.warn("Component uses selectedValues to initialize the model, value is not supported by this component",globalThis),!1):!0},selectedValues:{type:Array,default(){return[]}},dataQaGroup:{type:String,default:"checkbox-group"},dataQaGroupLegend:{type:String,default:"checkbox-group-legend"},dataQaGroupMessages:{type:String,default:"checkbox-group-messages"}},emits:["input"],data(){return{internalValue:this.selectedValues,provideObj:{selectedValues:this.selectedValues}}},watch:{selectedValues(t){this.internalValue=t},internalValue(t){this.provideObj.selectedValues=t}},methods:{setGroupValue(t,e){e?this.internalValue.includes(t)||this.internalValue.push(t):this.internalValue=this.internalValue.filter(n=>n!==t),this.$emit("input",this.internalValue)},getMessageKey(t,e){return`checkbox-group-message-${t}-${e}-${this.id}`}}},op=null,lp=null;var dp=h.normalizeComponent(sp,op,lp,!1,null,null,null,null);const cp=dp.exports,Zn={xs:"d-chip__label--xs",sm:"d-chip__label--sm",md:""},up={xs:"d-chip__close--xs",sm:"d-chip__close--sm",md:""},pp={xs:"200",sm:"200",md:"200"},fp={name:"DtChip",components:{DtButton:G,DtIcon:V},props:{closeButtonProps:{type:Object,default:function(){return{ariaLabel:"close"}},validator:t=>!!t.ariaLabel},hideClose:{type:Boolean,default:!1},size:{type:String,default:"md",validator:t=>Object.keys(Zn).includes(t)},interactive:{type:Boolean,default:!0},id:{type:String,default:function(){return z()}},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:t=>{this.interactive&&this.$emit("click",t)},keyup:t=>{var e;((e=t.code)==null?void 0:e.toLowerCase())==="delete"?this.onClose():this.$emit("keyup",t)}}},closeButtonIconSize(){return pp[this.size]}},methods:{chipClasses(){return[this.$attrs["grouped-chip"]?"d-chip":"d-chip__label",Zn[this.size],this.labelClass]},chipCloseButtonClasses(){return["d-chip__close",up[this.size]]},onClose(){this.hideClose||this.$emit("close")}}};var hp=function(){var e=this,n=e._self._c;return n("span",{staticClass:"d-chip"},[n(e.interactive?"button":"span",e._g({tag:"component",class:e.chipClasses(),attrs:{id:e.id,type:e.interactive&&"button","data-qa":"dt-chip","aria-labelledby":e.ariaLabel?void 0:`${e.id}-content`,"aria-label":e.ariaLabel}},e.chipListeners),[e.$slots.icon?n("span",{staticClass:"d-chip__icon",attrs:{"data-qa":"dt-chip-icon"}},[e._t("icon")],2):e.$slots.avatar?n("span",{attrs:{"data-qa":"dt-chip-avatar"}},[e._t("avatar")],2):e._e(),e.$slots.default?n("span",{class:["d-truncate","d-chip__text",e.contentClass],attrs:{id:`${e.id}-content`,"data-qa":"dt-chip-label"}},[e._t("default")],2):e._e()]),e.hideClose?e._e():n("dt-button",e._b({class:e.chipCloseButtonClasses(),attrs:{"data-qa":"dt-chip-close","aria-label":e.closeButtonProps.ariaLabel},on:{click:function(a){return e.$emit("close")}},scopedSlots:e._u([{key:"icon",fn:function(){return[n("dt-icon",{attrs:{name:"close",size:e.closeButtonIconSize}})]},proxy:!0}],null,!1,1192647893)},"dt-button",e.closeButtonProps,!1))],1)},mp=[],gp=h.normalizeComponent(fp,hp,mp,!1,null,null,null,null);const Ca=gp.exports,Xn={xs:"d-select--xs",sm:"d-select--sm",md:"",lg:"d-select--lg",xl:"d-select--xl"},wi={error:"d-select__input--error",warning:"d-select__input--warning",success:"d-select__input--success"},_p=t=>!t.index||typeof t.index=="number",vp=t=>t.value?typeof t.value=="string"||typeof t.value=="number":!1,bp=t=>t.label?typeof t.label=="string":!1,yp=t=>t?t.every(e=>!(!_p(e)||!vp(e)||!bp(e))):!0,Sp={name:"DtSelectMenu",components:{DtValidationMessages:De},mixins:[fn],inheritAttrs:!1,props:{label:{type:String,default:""},description:{type:String,default:""},options:{type:Array,default:()=>[],validator:t=>yp(t)},size:{type:String,default:"md",validator:t=>Object.keys(Xn).includes(t)},labelClass:{type:[String,Array,Object],default:""},descriptionClass:{type:[String,Array,Object],default:""},selectClass:{type:[String,Array,Object],default:""},optionClass:{type:[String,Array,Object],default:""},labelChildProps:{type:Object,default:()=>({})},descriptionChildProps:{type:Object,default:()=>({})},optionChildProps:{type:Object,default:()=>({})},disabled:{type:Boolean,default:!1}},emits:["input","change"],data(){return{LABEL_SIZE_MODIFIERS:as,DESCRIPTION_SIZE_MODIFIERS:ns,SELECT_SIZE_MODIFIERS:Xn,SELECT_STATE_MODIFIERS:wi}},computed:{selectListeners(){return{...this.$listeners,input:()=>{},change:t=>this.emitValue(t.target.value,t)}},state(){return Ie(this.formattedMessages)},selectKey(){return z()},descriptionKey(){return`select-${this.selectKey}-description`},labelAriaDetails(){return this.$slots.description||this.description?this.descriptionKey:this.$attrs["aria-details"]}},mounted(){this.validateOptionsPresence()},beforeUpdate(){this.validateOptionsPresence()},methods:{emitValue(t,e){this.$emit("input",t,e),this.$emit("change",t,e)},getOptionKey(t){return`select-${this.selectKey}-option-${t}`},validateOptionsPresence(){var t;((t=this.options)==null?void 0:t.length)<1&&!this.$slots.default&&re.util.warn("Options are expected to be provided via prop or slot",this)}}};var Cp=function(){var e=this,n=e._self._c;return n("div",[n("label",[e.$slots.label||e.label?n("div",e._b({class:["d-label",e.LABEL_SIZE_MODIFIERS[e.size],e.labelClass],attrs:{"aria-details":e.labelAriaDetails,"data-qa":"dt-select-label"}},"div",e.labelChildProps,!1),[e._t("label",function(){return[e._v(e._s(e.label))]})],2):e._e(),e.$slots.description||e.description?n("div",e._b({class:["d-description",e.DESCRIPTION_SIZE_MODIFIERS[e.size],e.descriptionClass],attrs:{id:e.descriptionKey,"data-qa":"dt-select-description"}},"div",e.descriptionChildProps,!1),[e._t("description",function(){return[e._v(e._s(e.description))]})],2):e._e(),n("div",{class:["d-select",e.SELECT_SIZE_MODIFIERS[e.size],e.selectClass,{"d-select--disabled":e.disabled}],attrs:{"data-qa":"dt-select-wrapper"}},[n("select",e._g(e._b({class:["d-select__input",e.SELECT_STATE_MODIFIERS[e.state]],attrs:{"data-qa":"dt-select",disabled:e.disabled}},"select",e.$attrs,!1),e.selectListeners),[e._t("default",function(){return e._l(e.options,function(a){return n("option",e._b({key:e.getOptionKey(a.value),class:e.optionClass,domProps:{value:a.value}},"option",e.optionChildProps,!1),[e._v(" "+e._s(a.label)+" ")])})})],2)])]),n("dt-validation-messages",e._b({class:e.messagesClass,attrs:{"validation-messages":e.formattedMessages,"show-messages":e.showMessages,"data-qa":"dt-select-messages"}},"dt-validation-messages",e.messagesChildProps,!1))],1)},wp=[],Op=h.normalizeComponent(Sp,Cp,wp,!1,null,null,null,null);const Ep=Op.exports,Oi=["status","alert"],tr=6e3,xp={name:"DtToast",components:{DtNoticeIcon:ia,DtNoticeContent:sa,DtNoticeAction:oa},mixins:[Se],props:{titleId:{type:String,default(){return de.getUniqueString()}},contentId:{type:String,default(){return de.getUniqueString()}},title:{type:String,default:""},message:{type:String,default:""},role:{type:String,default:"status",validator:t=>Oi.includes(t)},kind:{type:String,default:"base",validator:t=>at.includes(t)},important:{type:Boolean,default:!1},show:{type:Boolean,default:!1},closeButtonProps:{type:Object,default:()=>({})},hideClose:{type:Boolean,default:!1},duration:{type:Number,default:null,validator:t=>t>=tr}},emits:["close","update:show"],data(){return{isShown:!1,minDuration:tr}},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:t=>{this.isShown=!1,this.$emit("update:show",!1),this.$emit("close",t)}}},shouldSetTimeout(){return!!this.duration&&this.duration>=this.minDuration}},watch:{show:{handler:function(t){this.isShown=t,t?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 Ip=function(){var e=this,n=e._self._c;return e.isShown?n("div",{class:["d-toast",e.kindClass,{"d-toast--important":e.important}],attrs:{"data-qa":"dt-toast","aria-hidden":(!e.isShown).toString()}},[n("div",{staticClass:"d-toast__dialog"},[n("dt-notice-icon",e._g({attrs:{kind:e.kind}},e.$listeners),[e._t("icon")],2),n("dt-notice-content",e._g({attrs:{"title-id":e.titleId,"content-id":e.contentId,title:e.title,role:e.role},scopedSlots:e._u([{key:"titleOverride",fn:function(){return[e._t("titleOverride")]},proxy:!0}],null,!0)},e.$listeners),[e._t("default",function(){return[e._v(" "+e._s(e.message)+" ")]})],2),n("dt-notice-action",e._g({attrs:{"hide-close":e.hideClose,"close-button-props":e.closeButtonProps,"visually-hidden-close":e.visuallyHiddenClose,"visually-hidden-close-label":e.visuallyHiddenCloseLabel}},e.noticeActionListeners),[e._t("action")],2)],1)]):e._e()},Tp=[],Dp=h.normalizeComponent(xp,Ip,Tp,!1,null,null,null,null);const Lp=Dp.exports,nr={sm:"d-toggle--small",md:""},kp=[!1,!0,"mixed"],Ap={name:"DtToggle",inheritAttrs:!1,model:{prop:"checked",event:"change"},props:{id:{type:String,default(){return de.getUniqueString()}},disabled:{type:Boolean,default:!1},checked:{type:[Boolean,String],default:!1,validator:t=>kp.includes(t)},toggleOnClick:{type:Boolean,default:!0},size:{type:String,default:"md",validator:t=>Object.keys(nr).includes(t)},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:t=>this.toggleCheckedValue()}},isIndeterminate(){return this.internalChecked==="mixed"},toggleRole(){return this.isIndeterminate?"checkbox":"switch"},toggleClasses(){return["d-toggle",nr[this.size],{"d-toggle--checked":this.internalChecked===!0,"d-toggle--disabled":this.disabled,"d-toggle--indeterminate":this.isIndeterminate}]}},watch:{checked(t){this.internalChecked=t}},mounted(){this.runValidations()},methods:{toggleCheckedValue(){this.$emit("change",!this.internalChecked),this.toggleOnClick&&(this.internalChecked=!this.internalChecked)},hasSlotLabel(){return!!this.$slots.default},runValidations(){this.validateInputLabels(this.hasSlotLabel(),this.$attrs["aria-label"])},validateInputLabels(t,e){!t&&!e&&re.util.warn("You must provide an aria-label when there is no label passed",this)}}};var $p=function(){var e=this,n=e._self._c;return n("div",{staticClass:"d-d-flex d-ai-center"},[e.$slots.default?n("label",e._b({class:e.labelClass,attrs:{for:e.id,"data-qa":"toggle-label"}},"label",e.labelChildProps,!1),[e._t("default")],2):e._e(),n("button",e._g(e._b({class:e.toggleClasses,attrs:{id:e.id,role:e.toggleRole,type:"button","aria-checked":e.internalChecked.toString(),disabled:e.disabled,"aria-disabled":e.disabled.toString()}},"button",e.$attrs,!1),e.inputListeners),[e.showIcon?n("span",{staticClass:"d-toggle__inner"}):e._e()])])},Rp=[],Pp=h.normalizeComponent(Ap,$p,Rp,!1,null,null,null,null);const Np=Pp.exports,Ei=[...pc],xi=300,Ii={hover:"d-tooltip--hover",show:"d-tooltip--show",inverted:"d-tooltip--inverted",hide:"d-tooltip--hide"},Ti=[...di],Mp=[!0,!1,"toggle"];const Bp={name:"DtTooltip",components:{DtLazyShow:rt},props:{id:{type:String,default(){return z()}},fallbackPlacements:{type:Array,default:()=>["auto"]},inverted:{type:Boolean,default:!1},offset:{type:Array,default:()=>[0,-4]},placement:{type:String,default:"top",validator(t){return Ei.includes(t)}},sticky:{type:[Boolean,String],default:!1,validator:t=>Ti.includes(t)},contentClass:{type:[String,Object,Array],default:""},message:{type:String,default:""},show:{type:Boolean,default:null},transition:{type:String,default:"fade"},delay:{type:Boolean,default:!0}},emits:["shown","update:show"],data(){return{TOOLTIP_KIND_MODIFIERS:Ii,tip:null,inTimer:null,isShown:!1,currentPlacement:this.placement}},computed:{tooltipListeners(){return{...this.$listeners,"after-leave":()=>{this.onLeaveTransitionComplete()},"after-enter":()=>{this.onEnterTransitionComplete()}}},tippyProps(){var t,e;return{offset:this.offset,appendTo:(e=(t=this.anchorEl)==null?void 0:t.getRootNode())==null?void 0:e.querySelector("body"),interactive:!1,trigger:"manual",placement:this.placement,sticky:this.sticky,popperOptions:ui({fallbackPlacements:this.fallbackPlacements,hasHideModifierEnabled:!0,onChangePlacement:this.onChangePlacement})}}},watch:{tippyProps:{handler:"setProps",deep:!0},show:{handler:function(t){t!==null&&(this.isShown=t)},immediate:!0},isShown(t){t?(this.setProps(),this.tip.show()):this.tip.hide()},sticky(t){this.tip.setProps({sticky:t})}},mounted(){this.tip=ci(er(this.$refs.anchor),this.initOptions()),this.isShown&&this.tip.show()},beforeDestroy(){var t;this.tip&&((t=this.tip)==null||t.destroy())},methods:{calculateAnchorZindex(){return this.$el.getRootNode().querySelector('.d-modal[aria-hidden="false"], .d-modal--transparent[aria-hidden="false"]')||this.$el.closest(".d-zi-drawer")?651:400},hasVisibleFocus(){return er(this.$refs.anchor).matches(":focus-visible")},onEnterAnchor(t){if(this.delay)this.inTimer=setTimeout((function(e){return this.triggerShow(e)}).bind(this,t),xi);else return this.triggerShow(t)},triggerShow(t){t.type==="focusin"?this.show===null&&this.hasVisibleFocus()&&(this.isShown=!0):this.show===null&&(this.isShown=!0)},onLeaveAnchor(){return clearTimeout(this.inTimer),this.triggerHide()},triggerHide(){this.show===null&&(this.isShown=!1)},onChangePlacement(t){this.currentPlacement=t},onLeaveTransitionComplete(){var t;(t=this.tip)==null||t.unmount(),this.$emit("shown",!1),this.show!==null&&this.$emit("update:show",!1)},onEnterTransitionComplete(){this.$emit("shown",!0),this.show!==null&&this.$emit("update:show",!0)},setProps(){this.tip&&this.tip.setProps&&this.tip.setProps({...this.tippyProps,zIndex:this.calculateAnchorZindex()})},onMount(){this.setProps()},initOptions(){return{contentElement:this.$refs.content.$el,allowHTML:!0,zIndex:this.calculateAnchorZindex(),onMount:this.onMount,...this.tippyProps}}}};var Fp=function(){var e=this,n=e._self._c;return n("div",{attrs:{"data-qa":"dt-tooltip-container"}},[n("span",{ref:"anchor",attrs:{"data-qa":"dt-tooltip-anchor"},on:{focusin:e.onEnterAnchor,focusout:e.onLeaveAnchor,mouseenter:e.onEnterAnchor,mouseleave:e.onLeaveAnchor,keydown:function(a){return!a.type.indexOf("key")&&e._k(a.keyCode,"esc",27,a.key,["Esc","Escape"])?null:e.onLeaveAnchor.apply(null,arguments)}}},[e._t("anchor")],2),n("dt-lazy-show",e._g({ref:"content",class:["d-tooltip",`d-tooltip__arrow-tippy--${e.currentPlacement}`,{[e.TOOLTIP_KIND_MODIFIERS.inverted]:e.inverted},e.contentClass],attrs:{id:e.id,show:e.isShown&&(!!e.message.trim()||!!e.$slots.default),role:"tooltip","aria-hidden":"false","data-qa":"dt-tooltip",appear:"",transition:e.transition}},e.tooltipListeners),[e._t("default",function(){return[e._v(" "+e._s(e.message)+" ")]})],2)],1)},Vp=[],jp=h.normalizeComponent(Bp,Fp,Vp,!1,null,null,null,null);const hn=jp.exports,Qe={"{win}":"layout-grid","{arrow-right}":"arrow-right","{arrow-left}":"arrow-left","{arrow-up}":"arrow-up","{arrow-down}":"arrow-down","{cmd}":"command"},Di={"{plus}":"plus"},qp=Object.keys(Qe),Hp={name:"DtKeyboardShortcut",components:{DtIcon:V},props:{inverted:{type:Boolean,default:!1},shortcut:{type:String,required:!0},screenReaderText:{type:String,default:null}},data(){return{SHORTCUTS_ICON_ALIASES:Qe,separator:/\+/gi}},computed:{icons(){return{...Qe,...Di}},shortcutWithSeparator(){return this.shortcut.replace(this.separator,"{plus}")},formattedShortcut(){return Object.keys(Qe).reduce((t,e)=>t.replace(new RegExp("{"+e+"}","gi"),Qe[e]),this.shortcutWithSeparator)},formattedShortcutSplit(){const t=Object.keys(this.icons).join("|"),e=new RegExp(`(${t})`,"gi");return this.formattedShortcut.split(e).filter(Boolean)}}};var zp=function(){var e=this,n=e._self._c;return n("kbd",{class:["d-d-inline-flex","d-ff-custom","d-ai-center","d-jc-center","d-box-border","d-px4","d-ba","d-bar4","d-fs-100",e.inverted?"d-bc-moderate-inverted":"d-bc-default"]},[e.screenReaderText?n("span",{staticClass:"sr-only"},[e._v(" "+e._s(e.screenReaderText)+" ")]):e._e(),e._l(e.formattedShortcutSplit,function(a,r){return[e.icons[a]?n("dt-icon",{key:`${r}-${a}`,class:[e.inverted?"d-fc-secondary-inverted":"d-fc-tertiary","d-mr2"],attrs:{name:e.icons[a],size:"100","aria-hidden":"true"}}):n("span",{key:`${r}-${a}`,class:[e.inverted?"d-fc-secondary-inverted":"d-fc-tertiary","d-mr2"],attrs:{"aria-hidden":"true"},domProps:{innerHTML:e._s(a)}})]})],2)},Wp=[],Up=h.normalizeComponent(Hp,zp,Wp,!1,null,null,null,null);const Kp=Up.exports,wa={LEFT:"left",RIGHT:"right"},Li=["sm","md","lg",null],Gp={name:"DtRootLayoutBody",props:{bodyClass:{type:[String,Array,Object],default:void 0},contentClass:{type:[String,Array,Object],default:void 0},sidebarClass:{type:[String,Array,Object],default:void 0},sidebarWidth:{type:String,default:void 0},fixed:{type:Boolean,default:void 0},sidebarPosition:{type:String,default:void 0}},computed:{bodyClasses(){return[this.bodyClass,{"d-root-layout__body--invert":this.sidebarPosition===wa.RIGHT}]}}};var Yp=function(){var e=this,n=e._self._c;return n("div",{ref:"root-layout-body",class:["d-root-layout__body",e.bodyClasses],attrs:{"data-qa":"dt-root-layout-body"}},[e.$slots.sidebar?n("aside",{ref:"root-layout-sidebar",class:["d-root-layout__sidebar",{"d-root-layout__sidebar--sticky":e.fixed},e.sidebarClass],style:{"flex-basis":e.sidebarWidth},attrs:{"data-qa":"dt-root-layout-sidebar"}},[e._t("sidebar")],2):e._e(),e.$slots.content?n("main",{ref:"root-layout-content",class:["d-root-layout__content",e.contentClass],attrs:{"data-qa":"dt-root-layout-content",tabindex:"0"}},[e._t("content")],2):e._e()])},Zp=[],Xp=h.normalizeComponent(Gp,Yp,Zp,!1,null,null,null,null);const Qp=Xp.exports,Jp={name:"DtRootLayout",components:{DtRootLayoutBody:Qp},props:{fixed:{type:Boolean,default:!0},headerClass:{type:[String,Array,Object],default:""},headerHeight:{type:String,default:"64px"},bodyClass:{type:[String,Array,Object],default:""},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:t=>Object.values(wa).includes(t)},footerClass:{type:[String,Array,Object],default:""},footerHeight:{type:String,default:"64px"},responsiveBreakpoint:{type:String,default:null,validator:t=>Li.includes(t)}},computed:{responsiveClass(){if(this.responsiveBreakpoint)return`d-root-layout__responsive--${this.responsiveBreakpoint}`}}};var ef=function(){var e=this,n=e._self._c;return n("div",{class:["root-layout d-root-layout",{"d-root-layout--fixed":e.fixed},e.responsiveClass],attrs:{"data-qa":"dt-root-layout"}},[e.$slots.header?n("header",{class:["d-root-layout__header",{"d-root-layout__header--sticky":e.headerSticky},e.headerClass],style:{height:e.headerHeight,"min-height":e.headerHeight},attrs:{"data-qa":"dt-root-layout-header"}},[e._t("header")],2):e._e(),n("dt-root-layout-body",{attrs:{"body-class":e.bodyClass,"content-class":e.contentClass,"sidebar-class":e.sidebarClass,"sidebar-width":e.sidebarWidth,"sidebar-position":e.sidebarPosition,"header-height":e.$slots.header?e.headerHeight:"0px","footer-height":e.$slots.footer?e.footerHeight:"0px",fixed:e.fixed},scopedSlots:e._u([e.$slots.sidebar?{key:"sidebar",fn:function(){return[e._t("sidebar")]},proxy:!0}:null,e.$slots.default?{key:"content",fn:function(){return[e._t("default")]},proxy:!0}:null],null,!0)}),e.$slots.footer?n("footer",{class:["d-root-layout__footer",e.footerClass],style:{height:e.footerHeight,"min-height":e.footerHeight},attrs:{"data-qa":"dt-root-layout-footer"}},[e._t("footer")],2):e._e()],1)},tf=[],nf=h.normalizeComponent(Jp,ef,tf,!1,null,null,null,null);const af=nf.exports,Ve={default:"column",column:"column",row:"row","row-reverse":"row-reverse","column-reverse":"column-reverse"},ki=["sm","md","lg","xl"],Oa=["0","100","200","300","400","500","600"];function ar(t){return t===Ve.default}function rr(t){if(Ct(t)==="string")return ar(t)?null:Ve[t];if(Ct(t)==="object"){const{default:e}=t;return ar(e)?null:Ve[e]}else return null}function Ct(t){return typeof t}function rf(t){return rr(t)?`d-stack--${Ve[rr(t)]}`:null}function sf(t){return Ct(t)==="object"?[...ki.map(e=>t[e]?`d-stack--${e}--${t[e]}`:null)]:null}function of(t){return Oa.includes(t)?`d-stack--gap-${t}`:null}function lf(t){if(Ct(t)==="string")return Object.keys(Ve).includes(t);if(Ct(t)==="object"){const{default:e}=t;return Object.keys(Ve).includes(e)}else return null}function df(t){return Oa.includes(t)}const cf={name:"DtStack",props:{direction:{type:[String,Object],default:"column",validator:t=>lf(t)},as:{type:String,default:"div"},gap:{type:String,default:"0",validator:t=>df(t)}},data(){return{DT_STACK_DIRECTION:Ve,DT_STACK_GAP:Oa,DT_STACK_RESPONSIVE_BREAKPOINTS:ki}},computed:{stackGap(){return of(this.gap)},defaultDirection(){return rf(this.direction)},stackResponsive(){return sf(this.direction)}}};var uf=function(){var e=this,n=e._self._c;return n(e.as,{tag:"component",class:["d-stack",e.defaultDirection,e.stackResponsive,e.stackGap]},[e._t("default")],2)},pf=[],ff=h.normalizeComponent(cf,uf,pf,!1,null,null,null,null);const hf=ff.exports;function wt(t){"@babel/helpers - typeof";return wt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},wt(t)}function K(t){if(t===null||t===!0||t===!1)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function M(t,e){if(e.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+e.length+" present")}function q(t){M(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||wt(t)==="object"&&e==="[object Date]"?new Date(t.getTime()):typeof t=="number"||e==="[object Number]"?new Date(t):((typeof t=="string"||e==="[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 Ai(t,e){M(2,arguments);var n=q(t),a=K(e);return isNaN(a)?new Date(NaN):(a&&n.setDate(n.getDate()+a),n)}function $i(t,e){M(2,arguments);var n=q(t),a=K(e);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 mf(t,e){M(2,arguments);var n=q(t).getTime(),a=K(e);return new Date(n+a)}var gf={};function At(){return gf}function _f(t,e){var n,a,r,i,s,l,d,p;M(1,arguments);var c=At(),f=K((n=(a=(r=(i=e==null?void 0:e.weekStartsOn)!==null&&i!==void 0?i:e==null||(s=e.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&r!==void 0?r:c.weekStartsOn)!==null&&a!==void 0?a:(d=c.locale)===null||d===void 0||(p=d.options)===null||p===void 0?void 0:p.weekStartsOn)!==null&&n!==void 0?n:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var _=q(t),m=_.getDay(),b=(m<f?7:0)+m-f;return _.setDate(_.getDate()-b),_.setHours(0,0,0,0),_}function vf(t){var e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),t.getTime()-e.getTime()}function bf(t){return M(1,arguments),t instanceof Date||wt(t)==="object"&&Object.prototype.toString.call(t)==="[object Date]"}function yf(t){if(M(1,arguments),!bf(t)&&typeof t!="number")return!1;var e=q(t);return!isNaN(Number(e))}function Sf(t,e){M(2,arguments);var n=K(e);return mf(t,-n)}var Cf=864e5;function wf(t){M(1,arguments);var e=q(t),n=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var a=e.getTime(),r=n-a;return Math.floor(r/Cf)+1}function rn(t){M(1,arguments);var e=1,n=q(t),a=n.getUTCDay(),r=(a<e?7:0)+a-e;return n.setUTCDate(n.getUTCDate()-r),n.setUTCHours(0,0,0,0),n}function Ri(t){M(1,arguments);var e=q(t),n=e.getUTCFullYear(),a=new Date(0);a.setUTCFullYear(n+1,0,4),a.setUTCHours(0,0,0,0);var r=rn(a),i=new Date(0);i.setUTCFullYear(n,0,4),i.setUTCHours(0,0,0,0);var s=rn(i);return e.getTime()>=r.getTime()?n+1:e.getTime()>=s.getTime()?n:n-1}function Of(t){M(1,arguments);var e=Ri(t),n=new Date(0);n.setUTCFullYear(e,0,4),n.setUTCHours(0,0,0,0);var a=rn(n);return a}var Ef=6048e5;function xf(t){M(1,arguments);var e=q(t),n=rn(e).getTime()-Of(e).getTime();return Math.round(n/Ef)+1}function sn(t,e){var n,a,r,i,s,l,d,p;M(1,arguments);var c=At(),f=K((n=(a=(r=(i=e==null?void 0:e.weekStartsOn)!==null&&i!==void 0?i:e==null||(s=e.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&r!==void 0?r:c.weekStartsOn)!==null&&a!==void 0?a:(d=c.locale)===null||d===void 0||(p=d.options)===null||p===void 0?void 0:p.weekStartsOn)!==null&&n!==void 0?n:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var _=q(t),m=_.getUTCDay(),b=(m<f?7:0)+m-f;return _.setUTCDate(_.getUTCDate()-b),_.setUTCHours(0,0,0,0),_}function Pi(t,e){var n,a,r,i,s,l,d,p;M(1,arguments);var c=q(t),f=c.getUTCFullYear(),_=At(),m=K((n=(a=(r=(i=e==null?void 0:e.firstWeekContainsDate)!==null&&i!==void 0?i:e==null||(s=e.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&r!==void 0?r:_.firstWeekContainsDate)!==null&&a!==void 0?a:(d=_.locale)===null||d===void 0||(p=d.options)===null||p===void 0?void 0:p.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(m>=1&&m<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var b=new Date(0);b.setUTCFullYear(f+1,0,m),b.setUTCHours(0,0,0,0);var C=sn(b,e),y=new Date(0);y.setUTCFullYear(f,0,m),y.setUTCHours(0,0,0,0);var w=sn(y,e);return c.getTime()>=C.getTime()?f+1:c.getTime()>=w.getTime()?f:f-1}function If(t,e){var n,a,r,i,s,l,d,p;M(1,arguments);var c=At(),f=K((n=(a=(r=(i=e==null?void 0:e.firstWeekContainsDate)!==null&&i!==void 0?i:e==null||(s=e.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&r!==void 0?r:c.firstWeekContainsDate)!==null&&a!==void 0?a:(d=c.locale)===null||d===void 0||(p=d.options)===null||p===void 0?void 0:p.firstWeekContainsDate)!==null&&n!==void 0?n:1),_=Pi(t,e),m=new Date(0);m.setUTCFullYear(_,0,f),m.setUTCHours(0,0,0,0);var b=sn(m,e);return b}var Tf=6048e5;function Df(t,e){M(1,arguments);var n=q(t),a=sn(n,e).getTime()-If(n,e).getTime();return Math.round(a/Tf)+1}function L(t,e){for(var n=t<0?"-":"",a=Math.abs(t).toString();a.length<e;)a="0"+a;return n+a}var Lf={y:function(e,n){var a=e.getUTCFullYear(),r=a>0?a:1-a;return L(n==="yy"?r%100:r,n.length)},M:function(e,n){var a=e.getUTCMonth();return n==="M"?String(a+1):L(a+1,2)},d:function(e,n){return L(e.getUTCDate(),n.length)},a:function(e,n){var a=e.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(e,n){return L(e.getUTCHours()%12||12,n.length)},H:function(e,n){return L(e.getUTCHours(),n.length)},m:function(e,n){return L(e.getUTCMinutes(),n.length)},s:function(e,n){return L(e.getUTCSeconds(),n.length)},S:function(e,n){var a=n.length,r=e.getUTCMilliseconds(),i=Math.floor(r*Math.pow(10,a-3));return L(i,n.length)}};const Ee=Lf;var Ge={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},kf={G:function(e,n,a){var r=e.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(e,n,a){if(n==="yo"){var r=e.getUTCFullYear(),i=r>0?r:1-r;return a.ordinalNumber(i,{unit:"year"})}return Ee.y(e,n)},Y:function(e,n,a,r){var i=Pi(e,r),s=i>0?i:1-i;if(n==="YY"){var l=s%100;return L(l,2)}return n==="Yo"?a.ordinalNumber(s,{unit:"year"}):L(s,n.length)},R:function(e,n){var a=Ri(e);return L(a,n.length)},u:function(e,n){var a=e.getUTCFullYear();return L(a,n.length)},Q:function(e,n,a){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(n){case"Q":return String(r);case"QQ":return L(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(e,n,a){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(n){case"q":return String(r);case"qq":return L(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(e,n,a){var r=e.getUTCMonth();switch(n){case"M":case"MM":return Ee.M(e,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(e,n,a){var r=e.getUTCMonth();switch(n){case"L":return String(r+1);case"LL":return L(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(e,n,a,r){var i=Df(e,r);return n==="wo"?a.ordinalNumber(i,{unit:"week"}):L(i,n.length)},I:function(e,n,a){var r=xf(e);return n==="Io"?a.ordinalNumber(r,{unit:"week"}):L(r,n.length)},d:function(e,n,a){return n==="do"?a.ordinalNumber(e.getUTCDate(),{unit:"date"}):Ee.d(e,n)},D:function(e,n,a){var r=wf(e);return n==="Do"?a.ordinalNumber(r,{unit:"dayOfYear"}):L(r,n.length)},E:function(e,n,a){var r=e.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(e,n,a,r){var i=e.getUTCDay(),s=(i-r.weekStartsOn+8)%7||7;switch(n){case"e":return String(s);case"ee":return L(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(e,n,a,r){var i=e.getUTCDay(),s=(i-r.weekStartsOn+8)%7||7;switch(n){case"c":return String(s);case"cc":return L(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(e,n,a){var r=e.getUTCDay(),i=r===0?7:r;switch(n){case"i":return String(i);case"ii":return L(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(e,n,a){var r=e.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(e,n,a){var r=e.getUTCHours(),i;switch(r===12?i=Ge.noon:r===0?i=Ge.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(e,n,a){var r=e.getUTCHours(),i;switch(r>=17?i=Ge.evening:r>=12?i=Ge.afternoon:r>=4?i=Ge.morning:i=Ge.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(e,n,a){if(n==="ho"){var r=e.getUTCHours()%12;return r===0&&(r=12),a.ordinalNumber(r,{unit:"hour"})}return Ee.h(e,n)},H:function(e,n,a){return n==="Ho"?a.ordinalNumber(e.getUTCHours(),{unit:"hour"}):Ee.H(e,n)},K:function(e,n,a){var r=e.getUTCHours()%12;return n==="Ko"?a.ordinalNumber(r,{unit:"hour"}):L(r,n.length)},k:function(e,n,a){var r=e.getUTCHours();return r===0&&(r=24),n==="ko"?a.ordinalNumber(r,{unit:"hour"}):L(r,n.length)},m:function(e,n,a){return n==="mo"?a.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):Ee.m(e,n)},s:function(e,n,a){return n==="so"?a.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):Ee.s(e,n)},S:function(e,n){return Ee.S(e,n)},X:function(e,n,a,r){var i=r._originalDate||e,s=i.getTimezoneOffset();if(s===0)return"Z";switch(n){case"X":return sr(s);case"XXXX":case"XX":return Ne(s);case"XXXXX":case"XXX":default:return Ne(s,":")}},x:function(e,n,a,r){var i=r._originalDate||e,s=i.getTimezoneOffset();switch(n){case"x":return sr(s);case"xxxx":case"xx":return Ne(s);case"xxxxx":case"xxx":default:return Ne(s,":")}},O:function(e,n,a,r){var i=r._originalDate||e,s=i.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+ir(s,":");case"OOOO":default:return"GMT"+Ne(s,":")}},z:function(e,n,a,r){var i=r._originalDate||e,s=i.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+ir(s,":");case"zzzz":default:return"GMT"+Ne(s,":")}},t:function(e,n,a,r){var i=r._originalDate||e,s=Math.floor(i.getTime()/1e3);return L(s,n.length)},T:function(e,n,a,r){var i=r._originalDate||e,s=i.getTime();return L(s,n.length)}};function ir(t,e){var n=t>0?"-":"+",a=Math.abs(t),r=Math.floor(a/60),i=a%60;if(i===0)return n+String(r);var s=e||"";return n+String(r)+s+L(i,2)}function sr(t,e){if(t%60===0){var n=t>0?"-":"+";return n+L(Math.abs(t)/60,2)}return Ne(t,e)}function Ne(t,e){var n=e||"",a=t>0?"-":"+",r=Math.abs(t),i=L(Math.floor(r/60),2),s=L(r%60,2);return a+i+n+s}const Af=kf;var or=function(e,n){switch(e){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"})}},Ni=function(e,n){switch(e){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"})}},$f=function(e,n){var a=e.match(/(P+)(p+)?/)||[],r=a[1],i=a[2];if(!i)return or(e,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}}",or(r,n)).replace("{{time}}",Ni(i,n))},Rf={p:Ni,P:$f};const Pf=Rf;var Nf=["D","DD"],Mf=["YY","YYYY"];function Bf(t){return Nf.indexOf(t)!==-1}function Ff(t){return Mf.indexOf(t)!==-1}function lr(t,e,n){if(t==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) 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 Vf={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"}},jf=function(e,n,a){var r,i=Vf[e];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 qf=jf;function kn(t){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=e.width?String(e.width):t.defaultWidth,a=t.formats[n]||t.formats[t.defaultWidth];return a}}var Hf={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},zf={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Wf={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Uf={date:kn({formats:Hf,defaultWidth:"full"}),time:kn({formats:zf,defaultWidth:"full"}),dateTime:kn({formats:Wf,defaultWidth:"full"})};const Kf=Uf;var Gf={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Yf=function(e,n,a,r){return Gf[e]};const Zf=Yf;function ut(t){return function(e,n){var a=n!=null&&n.context?String(n.context):"standalone",r;if(a==="formatting"&&t.formattingValues){var i=t.defaultFormattingWidth||t.defaultWidth,s=n!=null&&n.width?String(n.width):i;r=t.formattingValues[s]||t.formattingValues[i]}else{var l=t.defaultWidth,d=n!=null&&n.width?String(n.width):t.defaultWidth;r=t.values[d]||t.values[l]}var p=t.argumentCallback?t.argumentCallback(e):e;return r[p]}}var Xf={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Qf={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Jf={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"]},eh={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"]},th={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"}},nh={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"}},ah=function(e,n){var a=Number(e),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"},rh={ordinalNumber:ah,era:ut({values:Xf,defaultWidth:"wide"}),quarter:ut({values:Qf,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:ut({values:Jf,defaultWidth:"wide"}),day:ut({values:eh,defaultWidth:"wide"}),dayPeriod:ut({values:th,defaultWidth:"wide",formattingValues:nh,defaultFormattingWidth:"wide"})};const ih=rh;function pt(t){return function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=n.width,r=a&&t.matchPatterns[a]||t.matchPatterns[t.defaultMatchWidth],i=e.match(r);if(!i)return null;var s=i[0],l=a&&t.parsePatterns[a]||t.parsePatterns[t.defaultParseWidth],d=Array.isArray(l)?oh(l,function(f){return f.test(s)}):sh(l,function(f){return f.test(s)}),p;p=t.valueCallback?t.valueCallback(d):d,p=n.valueCallback?n.valueCallback(p):p;var c=e.slice(s.length);return{value:p,rest:c}}}function sh(t,e){for(var n in t)if(t.hasOwnProperty(n)&&e(t[n]))return n}function oh(t,e){for(var n=0;n<t.length;n++)if(e(t[n]))return n}function lh(t){return function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=e.match(t.matchPattern);if(!a)return null;var r=a[0],i=e.match(t.parsePattern);if(!i)return null;var s=t.valueCallback?t.valueCallback(i[0]):i[0];s=n.valueCallback?n.valueCallback(s):s;var l=e.slice(r.length);return{value:s,rest:l}}}var dh=/^(\d+)(th|st|nd|rd)?/i,ch=/\d+/i,uh={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},ph={any:[/^b/i,/^(a|c)/i]},fh={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},hh={any:[/1/i,/2/i,/3/i,/4/i]},mh={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},gh={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]},_h={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},vh={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]},bh={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},yh={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}},Sh={ordinalNumber:lh({matchPattern:dh,parsePattern:ch,valueCallback:function(e){return parseInt(e,10)}}),era:pt({matchPatterns:uh,defaultMatchWidth:"wide",parsePatterns:ph,defaultParseWidth:"any"}),quarter:pt({matchPatterns:fh,defaultMatchWidth:"wide",parsePatterns:hh,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:pt({matchPatterns:mh,defaultMatchWidth:"wide",parsePatterns:gh,defaultParseWidth:"any"}),day:pt({matchPatterns:_h,defaultMatchWidth:"wide",parsePatterns:vh,defaultParseWidth:"any"}),dayPeriod:pt({matchPatterns:bh,defaultMatchWidth:"any",parsePatterns:yh,defaultParseWidth:"any"})};const Ch=Sh;var wh={code:"en-US",formatDistance:qf,formatLong:Kf,formatRelative:Zf,localize:ih,match:Ch,options:{weekStartsOn:0,firstWeekContainsDate:1}};const Oh=wh;var Eh=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,xh=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Ih=/^'([^]*?)'?$/,Th=/''/g,Dh=/[a-zA-Z]/;function je(t,e,n){var a,r,i,s,l,d,p,c,f,_,m,b,C,y,w,T,k,o;M(2,arguments);var O=String(e),g=At(),E=(a=(r=n==null?void 0:n.locale)!==null&&r!==void 0?r:g.locale)!==null&&a!==void 0?a:Oh,P=K((i=(s=(l=(d=n==null?void 0:n.firstWeekContainsDate)!==null&&d!==void 0?d:n==null||(p=n.locale)===null||p===void 0||(c=p.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&l!==void 0?l:g.firstWeekContainsDate)!==null&&s!==void 0?s:(f=g.locale)===null||f===void 0||(_=f.options)===null||_===void 0?void 0:_.firstWeekContainsDate)!==null&&i!==void 0?i:1);if(!(P>=1&&P<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var N=K((m=(b=(C=(y=n==null?void 0:n.weekStartsOn)!==null&&y!==void 0?y:n==null||(w=n.locale)===null||w===void 0||(T=w.options)===null||T===void 0?void 0:T.weekStartsOn)!==null&&C!==void 0?C:g.weekStartsOn)!==null&&b!==void 0?b:(k=g.locale)===null||k===void 0||(o=k.options)===null||o===void 0?void 0:o.weekStartsOn)!==null&&m!==void 0?m:0);if(!(N>=0&&N<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!E.localize)throw new RangeError("locale must contain localize property");if(!E.formatLong)throw new RangeError("locale must contain formatLong property");var A=q(t);if(!yf(A))throw new RangeError("Invalid time value");var I=vf(A),$=Sf(A,I),B={firstWeekContainsDate:P,weekStartsOn:N,locale:E,_originalDate:A},Y=O.match(xh).map(function(R){var F=R[0];if(F==="p"||F==="P"){var j=Pf[F];return j(R,E.formatLong)}return R}).join("").match(Eh).map(function(R){if(R==="''")return"'";var F=R[0];if(F==="'")return Lh(R);var j=Af[F];if(j)return!(n!=null&&n.useAdditionalWeekYearTokens)&&Ff(R)&&lr(R,e,String(t)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&Bf(R)&&lr(R,e,String(t)),j($,R,E.localize,B);if(F.match(Dh))throw new RangeError("Format string contains an unescaped latin alphabet character `"+F+"`");return R}).join("");return Y}function Lh(t){var e=t.match(Ih);return e?e[1].replace(Th,"'"):t}function kh(t){M(1,arguments);var e=q(t),n=e.getDate();return n}function Ah(t){M(1,arguments);var e=q(t),n=e.getFullYear(),a=e.getMonth(),r=new Date(0);return r.setFullYear(n,a+1,0),r.setHours(0,0,0,0),r.getDate()}function Jt(t){M(1,arguments);var e=q(t),n=e.getMonth();return n}function Qn(t){return M(1,arguments),q(t).getFullYear()}function $h(t,e){M(2,arguments);var n=q(t),a=q(e);return n.getTime()===a.getTime()}function Rh(t,e){M(2,arguments);var n=q(t),a=K(e),r=n.getFullYear(),i=n.getDate(),s=new Date(0);s.setFullYear(r,a,15),s.setHours(0,0,0,0);var l=Ah(s);return n.setMonth(a,Math.min(i,l)),n}function Ph(t,e){if(M(2,arguments),wt(e)!=="object"||e===null)throw new RangeError("values parameter must be an object");var n=q(t);return isNaN(n.getTime())?new Date(NaN):(e.year!=null&&n.setFullYear(e.year),e.month!=null&&(n=Rh(n,e.month)),e.date!=null&&n.setDate(K(e.date)),e.hours!=null&&n.setHours(K(e.hours)),e.minutes!=null&&n.setMinutes(K(e.minutes)),e.seconds!=null&&n.setSeconds(K(e.seconds)),e.milliseconds!=null&&n.setMilliseconds(K(e.milliseconds)),n)}function Nh(t,e){M(2,arguments);var n=K(e);return $i(t,-n)}const Mi=0,Bi="MMMM",Jn=t=>t?new Date(t):new Date,Mh=(t,e,n)=>{const a=Jn(JSON.parse(JSON.stringify(t))),r=[];for(let i=0;i<7;i++){const s=Ai(a,i),l=Jt(s)!==e;r.push({text:s.getDate(),value:s,currentMonth:!l,isFirstDayOfMonth:s.getDate()===1&&!l,selected:n?s.getDate()===n&&!l:!1})}return r},Bh=(t,e)=>!t||!e?!1:$h(t,e),Fh=(t,e,n)=>{const a=[],r=Jn(new Date(e,t)),i=Jn(new Date(e,t+1,0)),l=_f(r,{weekStartsOn:Mi}),d=p=>{const c=Mh(p,t,n);if(a.push({days:c}),!a[a.length-1].days.some(f=>Bh(f.value,i))){const f=Ai(p,7);d(f)}};return d(l),a},Vh=(t,e)=>{const n=[1,2,3,4,5,6,7].map(i=>new Intl.DateTimeFormat(t,{weekday:"short",timeZone:"UTC"}).format(new Date(`2017-01-0${i}T00:00:00+00:00`)).slice(0,2)),a=n.slice(0,e),r=n.slice(e+1,n.length);return[n[e]].concat(...r).concat(...a)},jh=(t,e)=>je(new Date(2e3,t,1),e),qh={name:"DtDatepickerMonthYearPicker",components:{DtIcon:V},props:{prevMonthLabel:{type:String,required:!0},nextMonthLabel:{type:String,required:!0},prevYearLabel:{type:String,required:!0},nextYearLabel:{type:String,required:!0},changeToLabel:{type:String,required:!0},selectedDate:{type:Date,required:!0}},emits:["calendar-days","focus-day","close-datepicker"],data(){return{selectMonth:Jt(this.selectedDate),selectYear:Qn(this.selectedDate),highlightedDay:null,focusPicker:0,focusRefs:[]}},computed:{calendarDays(){return Fh(this.selectMonth,this.selectYear,this.highlightedDay)},formattedMonth(){return(t,e)=>jh(t,e)},MONTH_FORMAT(){return Bi}},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.focusMonthYearPicker()},methods:{setDayRef(t){this.focusRefs.includes(t)||this.focusRefs.push(t)},focusMonthYearPicker(){this.focusRefs[0].focus()},handleKeyDown(t){switch(t.key){case"ArrowLeft":t.preventDefault(),this.focusPicker===0?(this.focusPicker=3,this.focusRefs[this.focusPicker].focus()):(this.focusPicker--,this.focusRefs[this.focusPicker].focus());break;case"ArrowRight":t.preventDefault(),this.focusPicker===3?(this.focusPicker=0,this.focusRefs[this.focusPicker].focus()):(this.focusPicker++,this.focusRefs[this.focusPicker].focus());break;case"ArrowDown":t.preventDefault(),this.$emit("focus-day");break;case"Tab":this.$emit("focus-day");break;case"Escape":this.$emit("close-datepicker");break}},highlightDay(){const t=Qn(this.selectedDate),e=Jt(this.selectedDate);t!==this.selectYear||e!==this.selectMonth?this.highlightedDay=null:this.highlightedDay=kh(this.selectedDate)},changeMonth(t){const e=Ph(this.selectedDate,{month:this.selectMonth,year:this.selectYear}),n=++t?$i(e,1):Nh(e,1);this.selectMonth=Jt(n)},changeYear(t){this.selectYear=this.selectYear+t}}};var Hh=function(){var e=this,n=e._self._c;return n("div",{staticClass:"d-datepicker__month-year-picker"},[n("div",[n("button",{ref:a=>{a&&e.setDayRef(a)},attrs:{id:"prevYearButton",type:"button","aria-label":`${e.changeToLabel} ${e.prevYearLabel} ${e.selectYear-1}`},on:{click:function(a){return e.changeYear(-1)},keydown:function(a){return e.handleKeyDown(a)}}},[n("dt-icon",{attrs:{name:"chevrons-left",size:"400"}})],1),n("button",{ref:a=>{a&&e.setDayRef(a)},attrs:{id:"prevMonthButton",type:"button","aria-label":`${e.changeToLabel} ${e.prevMonthLabel} ${e.formattedMonth(e.selectMonth-1,e.MONTH_FORMAT)}`},on:{click:function(a){return e.changeMonth(-1)},keydown:function(a){return e.handleKeyDown(a)}}},[n("dt-icon",{attrs:{name:"chevron-left",size:"300"}})],1)]),n("div",[n("p",[e._v(" "+e._s(e.formattedMonth(e.selectMonth,e.MONTH_FORMAT))+" "+e._s(e.selectYear)+" ")])]),n("div",[n("button",{ref:a=>{a&&e.setDayRef(a)},attrs:{id:"nextMonthButton",type:"button","aria-label":`${e.changeToLabel} ${e.nextMonthLabel} ${e.formattedMonth(e.selectMonth+1,e.MONTH_FORMAT)}`},on:{click:function(a){return e.changeMonth(1)},keydown:function(a){return e.handleKeyDown(a)}}},[n("dt-icon",{attrs:{name:"chevron-right",size:"300"}})],1),n("button",{ref:a=>{a&&e.setDayRef(a)},attrs:{id:"nextYearButton",type:"button","aria-label":`${e.changeToLabel} ${e.nextYearLabel} ${e.selectYear+1}`},on:{click:function(a){return e.changeYear(1)},keydown:function(a){return e.handleKeyDown(a)}}},[n("dt-icon",{attrs:{name:"chevrons-right",size:"300"}})],1)])])},zh=[],Wh=h.normalizeComponent(qh,Hh,zh,!1,null,null,null,null);const Uh=Wh.exports,Kh={name:"DtDatepickerCalendar",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 Vh(this.locale,Mi)}},watch:{calendarDays(){this.focusDay=0,this.daysRef=[],this.selectedDay=null}},methods:{dayAriaLabel(t){return`${this.selectDayLabel} ${t.text} ${je(t.value,Bi)} ${Qn(t.value)}`},setDayRef(t,e){!this.daysRef.includes(t)&&e&&this.daysRef.push(t)},handleKeyDown(t){switch(t.key){case"ArrowUp":t.preventDefault(),this.focusDay-=7;try{this.daysRef[this.focusDay].focus()}catch{this.$emit("focus-month-year-picker")}break;case"ArrowDown":t.preventDefault(),this.focusDay+=7;try{this.daysRef[this.focusDay].focus()}catch{this.$emit("focus-month-year-picker")}break;case"ArrowLeft":t.preventDefault(),this.focusDay>0&&(this.focusDay-=1,this.daysRef[this.focusDay].focus());break;case"ArrowRight":t.preventDefault(),this.focusDay<this.daysRef.length-1&&(this.focusDay+=1,this.daysRef[this.focusDay].focus());break;case"Tab":t.preventDefault(),this.$emit("focus-month-year-picker");break;case"Escape":this.$emit("close-datepicker");break}},focusFirstDay(){this.focusDay=0,this.daysRef[this.focusDay].focus()},selectDay(t){t.currentMonth&&(this.selectedDay=t.text,this.$emit("select-date",t.value))}}};var Gh=function(){var e=this,n=e._self._c;return n("div",{staticClass:"d-datepicker__calendar"},[n("div",{staticClass:"d-datepicker__week-day"},e._l(e.weekDays,function(a){return n("div",{key:a},[n("p",[e._v(" "+e._s(a)+" ")])])}),0),e._l(e.calendarDays,function(a,r){return n("div",{key:r,staticClass:"d-datepicker__week"},e._l(a.days,function(i,s){return n("button",{key:r+s,ref:l=>{l&&e.setDayRef(l,i.currentMonth)},refInFor:!0,staticClass:"d-datepicker__day",class:{"d-datepicker__day--disabled":!i.currentMonth,"d-datepicker__day--selected":e.selectedDay?i.text===e.selectedDay&&i.currentMonth:i.selected},attrs:{type:"button","aria-label":e.dayAriaLabel(i)},on:{click:function(l){return e.selectDay(i)},keydown:function(l){return e.handleKeyDown(l)}}},[e._v(" "+e._s(i.text)+" ")])}),0)})],2)},Yh=[],Zh=h.normalizeComponent(Kh,Gh,Yh,!1,null,null,null,null);const Xh=Zh.exports,Qh={name:"DtDatepicker",components:{MonthYearPicker:Uh,Calendar:Xh},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(t){this.calendarDays=t}}};var Jh=function(){var e=this,n=e._self._c;return n("div",{staticClass:"d-datepicker"},[n("div",{staticClass:"d-datepicker--header"},[n("month-year-picker",{ref:"monthYearPicker",attrs:{"prev-month-label":e.prevMonthLabel,"next-month-label":e.nextMonthLabel,"prev-year-label":e.prevYearLabel,"next-year-label":e.nextYearLabel,"change-to-label":e.changeToLabel,"selected-date":e.selectedDate},on:{"calendar-days":e.updateCalendarDays,"focus-day":function(a){return e.$refs.calendar.focusFirstDay()},"close-datepicker":function(a){return e.$emit("close-datepicker")}}})],1),n("div",{staticClass:"d-datepicker--body"},[n("calendar",{ref:"calendar",attrs:{locale:e.locale,"calendar-days":e.calendarDays,"select-day-label":e.selectDayLabel},on:{"select-date":function(a){return e.$emit("selected-date",a)},"focus-month-year-picker":function(a){return e.$refs.monthYearPicker.focusMonthYearPicker()},"close-datepicker":function(a){return e.$emit("close-datepicker")}}})],1)])},em=[],tm=h.normalizeComponent(Qh,Jh,em,!1,null,null,null,null);const nm=tm.exports;function am(t){return je(t,"EEEE, MMMM d, yyyy")}function rm(t){return je(t,"MMMM d, yyyy")}function im(t,e=!0){return je(t,e?"EEE, MMM d, yyyy":"MMM d, yyyy")}function sm(t,e=!1){return je(t,e?"MMM d":"MMMM d")}function om(t){return je(t,"MM/dd/yy")}const lm={name:"DtRecipeComboboxWithPopover",components:{DtCombobox:Vr,DtPopover:pn,ComboboxLoadingList:Mr,ComboboxEmptyList:Br},mixins:[Se],props:{label:{type:String,required:!0},labelVisible:{type:Boolean,default:!0},size:{type:String,default:null,validator:t=>Object.values(Fr).includes(t)},description:{type:String,default:""},showList:{type:Boolean,default:null},listId:{type:String,default(){return z()}},listClass:{type:[String,Array,Object],default:""},onBeginningOfList:{type:Function,default:null},onEndOfList:{type:Function,default:null},maxHeight:{type:String,default:""},maxWidth:{type:String,default:""},padding:{type:String,default:"small",validator:t=>Object.keys(gt).some(e=>e===t)},contentWidth:{type:String,default:null,validator:t=>ga.includes(t)},openWithArrowKeys:{type:Boolean,default:!1},popoverOffset:{type:Array,default:()=>[0,4]},popoverSticky:{type:[Boolean,String],default:!1},hasSuggestionList:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},emptyList:{type:Boolean,default:!1},emptyStateMessage:{type:String,default:""},appendTo:{type:[HTMLElement,String],default:"body",validator:t=>un.includes(t)||t instanceof HTMLElement},transition:{type:String,default:"fade"}},emits:["select","escape","highlight","opened"],data(){return{DROPDOWN_PADDING_CLASSES:gt,isListShown:!1,isInputFocused:!1,isListFocused:!1,externalAnchor:z()}},computed:{comboboxListeners(){return{...this.$listeners,select:this.onSelect,escape:this.onEscape,highlight:this.onHighlight}}},watch:{showList:{handler:function(t){t!==null&&(this.isListShown=t)},immediate:!0},isListShown(t){t?window.addEventListener("mousedown",this.onFocusOut):window.removeEventListener("mousedown",this.onFocusOut),this.onOpened(t)}},methods:{handleDisplayList(t){!this.hasSuggestionList&&t&&this.showComboboxList(),!this.hasSuggestionList&&!t&&this.closeComboboxList()},showComboboxList(){this.showList==null&&(this.isListShown=!0)},closeComboboxList(){this.showList==null&&(this.isListShown=!1)},onSelect(t){this.loading||(this.$emit("select",t),this.hasSuggestionList||this.closeComboboxList())},onEscape(){this.$emit("escape"),this.closeComboboxList()},onHighlight(t){this.loading||this.$emit("highlight",t)},onOpened(t){this.$emit("opened",t)},onFocusIn(t){var e;this.hasSuggestionList&&t&&((e=this.$refs.input)==null?void 0:e.querySelector("input"))===t.target&&this.showComboboxList()},onFocusOut(t){var a,r,i;const e=(r=(a=this.$refs.popover)==null?void 0:a.tip)==null?void 0:r.popper,n=this.$refs.input;(i=t.composedPath())!=null&&i.some(s=>[e,n].includes(s))||this.closeComboboxList()},openOnArrowKeyPress(){this.showList!==null||this.isListShown||!this.openWithArrowKeys||this.showComboboxList()}}};var dm=function(){var e=this,n=e._self._c;return n("dt-combobox",e._g({ref:"combobox",attrs:{loading:e.loading,label:e.label,"label-visible":e.labelVisible,size:e.size,description:e.description,"empty-list":e.emptyList,"empty-state-message":e.emptyStateMessage,"show-list":e.isListShown,"on-beginning-of-list":e.onBeginningOfList,"on-end-of-list":e.onEndOfList,"list-rendered-outside":!0,"list-id":e.listId,"data-qa":"dt-combobox"},scopedSlots:e._u([{key:"input",fn:function({inputProps:a}){return[n("div",{ref:"input",attrs:{id:e.externalAnchor},on:{focusin:e.onFocusIn,keydown:[function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"up",38,r.key,["Up","ArrowUp"])?null:e.openOnArrowKeyPress(r)},function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"down",40,r.key,["Down","ArrowDown"])?null:e.openOnArrowKeyPress(r)}]}},[e._t("input",null,{inputProps:a,onInput:e.handleDisplayList})],2)]}},{key:"list",fn:function({opened:a,listProps:r,clearHighlightIndex:i}){return[n("dt-popover",{ref:"popover",attrs:{open:e.isListShown,"hide-on-click":!1,"max-height":e.maxHeight,"max-width":e.maxWidth,offset:e.popoverOffset,sticky:e.popoverSticky,placement:"bottom-start","initial-focus-element":"none",padding:"none",role:"listbox","external-anchor":e.externalAnchor,"content-width":e.contentWidth,"content-tabindex":null,modal:!1,"auto-focus":!1,"append-to":e.appendTo,transition:e.transition,"visually-hidden-close-label":e.visuallyHiddenCloseLabel,"visually-hidden-close":e.visuallyHiddenClose},on:{"update:open":function(s){e.isListShown=s},opened:function(s){return a(s,arguments[1])}},scopedSlots:e._u([{key:"headerContent",fn:function(){return[e.$slots.header?n("div",{ref:"header"},[e._t("header")],2):e._e()]},proxy:!0},{key:"content",fn:function(){return[n("div",{ref:"listWrapper",class:[e.DROPDOWN_PADDING_CLASSES[e.padding],e.listClass],on:{mouseleave:i,focusout:i}},[e.loading?n("combobox-loading-list",e._b({},"combobox-loading-list",r,!1)):e.emptyList&&e.emptyStateMessage?n("combobox-empty-list",e._b({attrs:{message:e.emptyStateMessage}},"combobox-empty-list",r,!1)):e._t("list",null,{listProps:r})],2)]},proxy:!0},{key:"footerContent",fn:function(){return[e.$slots.footer?n("div",{ref:"footer"},[e._t("footer")],2):e._e()]},proxy:!0}],null,!0)})]}}],null,!0)},e.comboboxListeners))},cm=[],um=h.normalizeComponent(lm,dm,cm,!1,null,null,null,null);const Fi=um.exports,Vi={EXTRA_SMALL:"xs",SMALL:"sm",DEFAULT:"md"},pm={xs:"xs",sm:"xs",md:"sm"},fm={xs:1.4,sm:.4,md:.2},hm={name:"DtRecipeComboboxMultiSelect",components:{DtRecipeComboboxWithPopover:Fi,DtInput:_i,DtChip:Ca,DtValidationMessages:De},mixins:[Se],props:{label:{type:String,required:!0},labelVisible:{type:Boolean,default:!0},description:{type:String,default:""},placeholder:{type:String,default:"Select one or start typing"},inputMessages:{type:Array,default:()=>[],validator:t=>kt(t)},showInputMessages:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},loadingMessage:{type:String,default:"loading..."},showList:{type:Boolean,default:null},listMaxHeight:{type:String,default:"300px"},selectedItems:{type:Array,default:function(){return[]}},maxSelected:{type:Number,default:0},maxSelectedMessage:{type:Array,default:function(){return[]}},hasSuggestionList:{type:Boolean,default:!0},size:{type:String,default:"md",validator:t=>Object.values(Vi).includes(t)},appendTo:{type:[HTMLElement,String],default:"body",validator:t=>un.includes(t)||t instanceof HTMLElement},transition:{type:String,default:"fade"}},emits:["input","select","remove","max-selected"],data(){return{value:"",popoverOffset:[0,4],showValidationMessages:!1,initialInputPadding:{},resizeWindowObserver:null,originalInputSize:null,CHIP_SIZES:pm}},computed:{inputPlaceHolder(){var t;return((t=this.selectedItems)==null?void 0:t.length)>0?"":this.placeholder},chipListeners(){return{...this.$listeners,keyup:t=>{this.onChipKeyup(t),this.$emit("keyup",t)}}},inputListeners(){return{...this.$listeners,input:t=>{this.$emit("input",t),this.hasSuggestionList&&this.showComboboxList()},keyup:t=>{this.onInputKeyup(t),this.$emit("keyup",t)},click:t=>{this.hasSuggestionList&&this.showComboboxList()}}}},watch:{selectedItems:{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 t=this.getInput();this.revertInputPadding(t),this.originalInputSize=t.getBoundingClientRect().height,this.setInputPadding(),this.setChipsTopPosition()}}},mounted(){this.resizeWindowObserver=new ResizeObserver(async()=>{this.setChipsTopPosition(),this.setInputPadding()}),this.resizeWindowObserver.observe(document.body),this.initSelectedItems()},beforeDestroy(){var t;(t=this.resizeWindowObserver)==null||t.unobserve(document.body)},methods:{async initSelectedItems(){await this.$nextTick(),this.setInputPadding(),this.setChipsTopPosition(),this.setInputMinWidth(),this.checkMaxSelected()},onChipRemove(t){var e;this.$emit("remove",t),(e=this.$refs.input)==null||e.focus()},onComboboxSelect(t){this.value="",this.$emit("select",t)},showComboboxList(){var t;this.showList==null&&((t=this.$refs.comboboxWithPopover)==null||t.showComboboxList())},closeComboboxList(){var t;this.showList==null&&((t=this.$refs.comboboxWithPopover)==null||t.closeComboboxList())},getChipButtons(){return this.$refs.chips&&this.$refs.chips.map(t=>t.$el.querySelector("button"))},getChips(){return this.$refs.chips&&this.$refs.chips.map(t=>t.$el)},getLastChipButton(){return this.$refs.chips&&this.getChipButtons()[this.getChipButtons().length-1]},getLastChip(){return this.$refs.chips&&this.getChips()[this.getChips().length-1]},getFirstChip(){return this.$refs.chips&&this.getChips()[0]},getInput(){var t;return(t=this.$refs.input)==null?void 0:t.$refs.input},onChipKeyup(t){var n;const e=(n=t.code)==null?void 0:n.toLowerCase();e==="arrowleft"?this.navigateBetweenChips(t.target,!0):e==="arrowright"&&(t.target.id===this.getLastChipButton().id?this.moveFromChipToInput():this.navigateBetweenChips(t.target,!1))},onInputKeyup(t){var n;const e=(n=t.code)==null?void 0:n.toLowerCase();this.selectedItems.length>0&&t.target.selectionStart===0&&(e==="backspace"||e==="arrowleft")&&this.moveFromInputToChip()},moveFromInputToChip(){var t;this.getLastChipButton().focus(),(t=this.$refs.input)==null||t.blur(),this.closeComboboxList()},moveFromChipToInput(){var t;this.getLastChipButton().blur(),(t=this.$refs.input)==null||t.focus(),this.showComboboxList()},navigateBetweenChips(t,e){var r;const n=this.getChipButtons().indexOf(t),a=e?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 t=this.getInput();if(!t)return;const e=this.$refs.inputSlotWrapper,n=t.getBoundingClientRect().top-e.getBoundingClientRect().top,a=this.$refs.chipsWrapper;a.style.top=n-fm[this.size]+"px"},setInputPadding(){const t=this.getLastChip(),e=this.getInput(),n=this.$refs.chipsWrapper;if(!e||(this.revertInputPadding(e),this.popoverOffset=[0,4],!t))return;const a=t.offsetLeft+this.getFullWidth(t);e.style.paddingLeft=a+"px";const r=n.getBoundingClientRect().height-4,i=t.offsetTop+2;r>this.originalInputSize&&(e.style.paddingTop=`${i}px`)},revertInputPadding(t){t.style.paddingLeft="",t.style.paddingTop="",t.style.paddingBottom=""},getFullWidth(t){const e=window.getComputedStyle(t);return t.offsetWidth+parseInt(e.marginLeft)+parseInt(e.marginRight)},setInputMinWidth(){const t=this.getFirstChip(),e=this.getInput();e&&(t?e.style.minWidth=this.getFullWidth(t)+4+"px":e.style.minWidth="")},checkMaxSelected(){this.maxSelected!==0&&(this.selectedItems.length>this.maxSelected?(this.showValidationMessages=!0,this.$emit("max-selected")):this.showValidationMessages=!1)}}};var mm=function(){var e=this,n=e._self._c;return n("dt-recipe-combobox-with-popover",{ref:"comboboxWithPopover",attrs:{label:e.label,"show-list":e.showList,"max-height":e.listMaxHeight,"popover-offset":e.popoverOffset,"has-suggestion-list":e.hasSuggestionList,"visually-hidden-close-label":e.visuallyHiddenCloseLabel,"visually-hidden-close":e.visuallyHiddenClose,"content-width":"anchor","append-to":e.appendTo,transition:e.transition},on:{select:e.onComboboxSelect},scopedSlots:e._u([{key:"input",fn:function({onInput:a}){return[n("span",{ref:"inputSlotWrapper",staticClass:"d-ps-relative d-d-block"},[n("span",{ref:"chipsWrapper",staticClass:"d-ps-absolute d-mx2 d-pl1"},e._l(e.selectedItems,function(r){return n("dt-chip",e._g({key:r.id,ref:"chips",refInFor:!0,class:["d-mt4","d-mx2","d-zi-base1"],attrs:{"label-class":["d-chip__label"],"close-button-props":{ariaLabel:"close"},size:e.CHIP_SIZES[e.size]},on:{keyup:function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"backspace",void 0,i.key,void 0)?null:e.onChipRemove(r)},close:function(i){return e.onChipRemove(r)}}},e.chipListeners),[e._v(" "+e._s(r)+" ")])}),1),n("dt-input",e._g({ref:"input",staticClass:"d-fl-grow1",attrs:{"aria-label":e.label,label:e.labelVisible?e.label:"",description:e.description,placeholder:e.inputPlaceHolder,"show-messages":e.showInputMessages,messages:e.inputMessages,size:e.size},on:{input:a},model:{value:e.value,callback:function(r){e.value=r},expression:"value"}},e.inputListeners)),n("dt-validation-messages",{attrs:{"validation-messages":e.maxSelectedMessage,"show-messages":e.showValidationMessages}})],1)]}},{key:"header",fn:function(){return[e.$slots.header?n("div",{ref:"header"},[e._t("header")],2):e._e()]},proxy:!0},{key:"list",fn:function(){return[n("div",{ref:"list",on:{mousedown:function(a){a.preventDefault()}}},[e.loading?n("div",{staticClass:"d-ta-center d-py16"},[e._v(" "+e._s(e.loadingMessage)+" ")]):e._t("list")],2)]},proxy:!0},{key:"footer",fn:function(){return[e.$slots.footer?n("div",{ref:"footer"},[e._t("footer")],2):e._e()]},proxy:!0}],null,!0)})},gm=[],_m=h.normalizeComponent(hm,mm,gm,!1,null,null,null,null);const vm=_m.exports,Ea=["sm","md","lg","xl"];const bm={name:"DtRecipeCallbarButton",components:{DtButton:G,DtTooltip:hn},inheritAttrs:!0,props:{id:{type:String,default(){return de.getUniqueString()}},active:{type:Boolean,default:!1},danger:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},circle:{type:Boolean,default:!1},ariaLabel:{type:String,default:null,validator:t=>t||globalThis.$slots.default},buttonClass:{type:[String,Array,Object],default:""},textClass:{type:[String,Array,Object],default:""},buttonWidthSize:{type:String,default:"xl",validator:t=>Ea.includes(t)},importance:{type:String,default:""}},emits:["click"],computed:{callbarButtonClass(){return[this.buttonClass,"dt-recipe-callbar-button","d-px0",{"dt-recipe-callbar-button--circle":this.circle,"dt-recipe-callbar-button--active":this.active,"dt-recipe-callbar-button--danger":this.danger,"d-btn--disabled d-bgc-transparent":this.disabled,"d-fc-primary":!this.disabled}]},callbarButtonTextClass(){return["d-fs-100 lg:d-d-none md:d-d-none sm:d-d-none",this.textClass]},buttonWidth(){switch(this.buttonWidthSize){case"sm":return"4.5rem";case"md":return"6rem";default:return"8.4rem"}},buttonImportance(){return this.importance?this.importance:this.circle?"outlined":"clear"}}};var ym=function(){var e=this,n=e._self._c;return n("dt-tooltip",{attrs:{id:e.id,offset:[0,8]},scopedSlots:e._u([{key:"anchor",fn:function(){return[n("span",{class:{"d-c-not-allowed":e.disabled}},[n("dt-button",e._g({class:e.callbarButtonClass,attrs:{importance:e.buttonImportance,kind:"muted","icon-position":"top","aria-disabled":e.disabled,"aria-label":e.ariaLabel,"label-class":e.callbarButtonTextClass,width:e.buttonWidth}},e.$listeners),[e._t("default"),e._t("icon",null,{slot:"icon"})],2)],1)]},proxy:!0}],null,!0)},[e._t("tooltip")],2)},Sm=[],Cm=h.normalizeComponent(bm,ym,Sm,!1,null,null,null,null);const ji=Cm.exports;const wm={name:"DtRecipeCallbarButtonWithPopover",components:{DtRecipeCallbarButton:ji,DtPopover:pn,DtButton:G,DtIcon:V},inheritAttrs:!1,props:{id:{type:String,default(){return de.getUniqueString()}},ariaLabel:{type:String,default:null,validator:t=>t||globalThis.$slots.default},arrowButtonLabel:{type:String,required:!0,validator:t=>!!t},placement:{type:String,default:"top"},initialFocusElement:{type:String,default:"first"},showCloseButton:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},forceShowArrow:{type:Boolean,default:!1},active:{type:Boolean,default:!1},danger:{type:Boolean,default:!1},buttonClass:{type:[String,Array,Object],default:""},textClass:{type:[String,Array,Object],default:""},buttonWidthSize:{type:String,default:"xl",validator:t=>Ea.includes(t)},contentClass:{type:[String,Array,Object],default:""},openPopover:{type:Boolean,default:!1}},emits:["arrow-click","click","opened"],data(){return{open:!1}},computed:{showArrowButton(){return this.forceShowArrow||!this.disabled},isCompactMode(){return this.buttonWidthSize==="sm"||this.buttonWidthSize==="md"},showPopover(){return!this.openPopover||this.open?(this.syncOpenState(),!1):this.toggleOpen()}},methods:{arrowClick(t){return this.$emit("arrow-click",t),this.toggleOpen()},toggleOpen(){return this.open=!this.open},syncOpenState(){this.open=this.openPopover},buttonClick(t){this.$listeners.click?this.$emit("click",t):this.arrowClick(t)},onModalIsOpened(t){this.open=t,this.$emit("opened",t)}}};var Om=function(){var e=this,n=e._self._c;return n("div",{staticClass:"d-d-flex d-ai-center"},[n("dt-recipe-callbar-button",{staticClass:"dt-recipe--callbar-button-with-popover--main-button",attrs:{"aria-label":e.ariaLabel,disabled:e.disabled,active:e.active,danger:e.danger,"button-class":e.buttonClass,"button-width-size":e.buttonWidthSize,"text-class":e.textClass},on:{click:e.buttonClick}},[e._t("icon",null,{slot:"icon"}),e._t("tooltip",null,{slot:"tooltip"}),e._t("default")],2),e.showArrowButton?n("dt-popover",e._b({staticClass:"dt-recipe--callbar-button-with-popover--popover-wrapper",attrs:{id:e.id,modal:!1,open:e.open,placement:e.placement,"initial-focus-element":e.initialFocusElement,"show-close-button":e.showCloseButton,offset:[0,16],padding:"none","dialog-class":["dt-recipe--callbar-button-with-popover--popover",e.contentClass],"header-class":"d-d-flex d-ai-center d-fw-normal d-px12","open-popover":e.showPopover},on:{opened:e.onModalIsOpened},scopedSlots:e._u([{key:"anchor",fn:function(){return[n("dt-button",{class:["dt-recipe--callbar-button-with-popover--arrow",{"d-mln24":!e.isCompactMode}],attrs:{circle:"",importance:"clear",size:"lg",width:"2rem","aria-label":e.arrowButtonLabel,active:e.open},on:{click:e.arrowClick},scopedSlots:e._u([{key:"icon",fn:function(){return[n("dt-icon",{staticClass:"d-fc-black-800",attrs:{name:"chevron-up",size:"200"}})]},proxy:!0}],null,!1,1368564783)})]},proxy:!0}],null,!1,1466460799)},"dt-popover",e.$attrs,!1),[e._t("content",null,{slot:"content"}),e._t("headerContent",null,{slot:"headerContent"}),e._t("footerContent",null,{slot:"footerContent"})],2):e._e()],1)},Em=[],xm=h.normalizeComponent(wm,Om,Em,!1,null,null,null,null);const Im=xm.exports;const Tm={name:"DtRecipeContactInfo",components:{DtAvatar:Et,DtListItem:It},props:{id:{type:String,default(){return de.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 Dm=function(){var e=this,n=e._self._c;return n("dt-list-item",{staticClass:"dt-contact-info",attrs:{id:e.id,role:e.role,"element-type":"div","data-qa":"contact-info"},scopedSlots:e._u([{key:"left",fn:function(){return[e.showAvatar?n("button",{staticClass:"d-ps-relative d-bgc-transparent d-baw0 d-c-pointer",attrs:{"data-qa":"contact-info-left","aria-labelledby":e.avatarAriaLabel},on:{click:e.avatarClick}},[e.avatarList?n("span",{staticClass:"dt-contact-info--avatars d-mrn4 d-d-flex d-fd-row"},e._l(e.avatarList,function(a,r){return n("dt-avatar",{key:r,attrs:{size:e.avatarSize,seed:a.seed,"full-name":a.fullName,"image-src":a.src,"icon-name":e.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:e.avatarSize,"full-name":e.avatarFullName,"image-src":e.avatarSrc,"icon-name":e.avatarIcon,seed:e.avatarSeed,presence:e.presence}})],1):e._e()]},proxy:!0},{key:"default",fn:function(){return[n("div",{attrs:{"data-qa":"contact-info-header"}},[e._t("header")],2)]},proxy:!0},{key:"subtitle",fn:function(){return[n("div",{attrs:{"data-qa":"contact-info-subtitle"}},[e._t("subtitle")],2)]},proxy:!0},{key:"bottom",fn:function(){return[n("div",{attrs:{"data-qa":"contact-info-bottom"}},[e._t("bottom")],2)]},proxy:!0},{key:"right",fn:function(){return[n("div",{attrs:{"data-qa":"contact-info-right"}},[e._t("right")],2)]},proxy:!0}],null,!0)})},Lm=[],km=h.normalizeComponent(Tm,Dm,Lm,!1,null,"3d0f9d2e",null,null);const Am=km.exports,qi=["green300","green100","red200","red100","gold100","gold200","black100","white"];const $m={name:"DtRecipeTopBannerInfo",props:{colorCode:{type:String,default:"green300",validator:function(t){return qi.includes(t)}}},computed:{bannerInfoClass(){return[{green300:"d-bgc-success",green100:"d-bgc-success",red200:"d-bgc-critical",red100:"d-bgc-critical",gold200:"d-bgc-warning",gold100:"d-bgc-warning",black100:"d-bgc-info",white:"d-bgc-primary"}[this.colorCode]]}}};var Rm=function(){var e=this,n=e._self._c;return n("div",{staticClass:"d-fs-100 d-d-flex d-top-banner-info d-jc-space-between d-ai-center d-fc-primary",class:e.bannerInfoClass,attrs:{"data-qa":"banner-info"}},[n("div",{staticClass:"d-top-banner-info__left"},[e._t("left")],2),n("div",{staticClass:"d-top-banner-info__middle d-my4"},[e._t("default")],2),n("div",{staticClass:"d-top-banner-info__right d-ta-right"},[e._t("right")],2)])},Pm=[],Nm=h.normalizeComponent($m,Rm,Pm,!1,null,null,null,null);const Mm=Nm.exports,mn="promptmenu",gn="promptcollect",_n="promptplay",vn="gotoexpert",$t="goto",bn="branch",yn="transfer",Sn="hangup",Hi={[mn]:"keypad",[gn]:"dialer",[_n]:"volume-2",[vn]:"expert-node",[bn]:"branch",[$t]:"call-merge",[yn]:"transfer",[Sn]:"phone-hang-up"},Bm={[mn]:"Menu",[gn]:"Collect",[_n]:"Play",[vn]:"Expert",[bn]:"Branch",[$t]:"Go-to",[yn]:"Transfer",[Sn]:"Hangup"},xe={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"}},Fm={[mn]:xe.PROMPT,[gn]:xe.PROMPT,[_n]:xe.PROMPT,[vn]:xe.LOGIC,[bn]:xe.LOGIC,[$t]:xe.LOGIC,[yn]:xe.TERMINAL,[Sn]:xe.TERMINAL};const Vm={name:"DtRecipeIvrNode",components:{DtCard:Nr,DtButton:G,DtDropdown:gi,DtIcon:V},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 Hi[this.nodeType]},headerColor(){const{normal:t,selected:e}=Fm[this.nodeType];return this.isSelected?e:t},isGotoNode(){return this.nodeType===$t}},methods:{openMenu(){this.isOpen=!0}}};var jm=function(){var e=this,n=e._self._c;return n("div",e._g({staticClass:"d-d-flex d-fd-column d-ai-center d-c-pointer ivr_node__width"},e.$listeners),[e.dtmfKey?n("div",{staticClass:"ivr-connector d-w24 d-h24 d-bar-circle d-mbn12 d-fc-neutral-white d-fs-200",class:{"d-mbn16":e.isSelected},attrs:{"data-qa":"dt-top-connector-dtmf"}},[e._v(" "+e._s(e.dtmfKey)+" ")]):e._e(),e.$slots.connector?e._t("connector"):e._e(),!e.dtmfKey&&!e.$slots.connector?n("div",{staticClass:"ivr-connector d-w8 d-h8 d-bar-circle d-mbn4",class:{"d-mbn8":e.isSelected},attrs:{"data-qa":"dt-top-connector"}}):e._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":e.isSelected},e.headerColor],"header-class":["d-mtn1","d-bt","d-btw4","d-p0",e.headerColor,{"d-btr4":!e.isSelected}]},scopedSlots:e._u([{key:"header",fn:function(){return[n("div",{staticClass:"d-d-flex d-ai-center"},[n("dt-button",{attrs:{"aria-label":e.nodeType,importance:"clear",kind:"muted","data-qa":"dt-ivr-node-icon"},scopedSlots:e._u([{key:"icon",fn:function(){return[n("dt-icon",{class:["",{ivr_node__goto_icon:e.isGotoNode}],attrs:{name:e.nodeIcon,size:"200"}})]},proxy:!0}])}),n("p",{staticClass:"d-fs-200 d-fw-bold",attrs:{"data-qa":"ivr-node-label"}},[e._v(" "+e._s(e.nodeLabel)+" ")])],1),n("dt-dropdown",{attrs:{placement:"bottom",open:e.isOpen},on:{"update:open":function(a){e.isOpen=a}},scopedSlots:e._u([{key:"anchor",fn:function(){return[n("dt-button",{attrs:{importance:"clear",kind:"muted","aria-label":e.menuButtonAriaLabel},on:{click:function(a){return a.stopPropagation(),a.preventDefault(),e.openMenu.apply(null,arguments)}},scopedSlots:e._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:"d-w164"},[e._t("menuItems",null,{close:a})],2)]}}],null,!0)})]},proxy:!0},{key:"content",fn:function(){return[e._t("content")]},proxy:!0}],null,!0)})],2)},qm=[],Hm=h.normalizeComponent(Vm,jm,qm,!1,null,null,null,null);const zm=Hm.exports;const Wm={name:"DtRecipeGroupedChip",components:{DtChip:Ca},computed:{}};var Um=function(){var e=this,n=e._self._c;return n("div",{staticClass:"d-d-inline-flex d-ws-nowrap d-bgc-unset",attrs:{"data-qa":"grouped-chip"}},[n("dt-chip",{staticClass:"d-blr-pill d-bgc-moderate-opaque d-wmx84 dt-chip-content",attrs:{"hide-close":!0,interactive:!1,"content-class":"d-fs100",size:"xs","grouped-chip":!0},scopedSlots:e._u([e.$slots.leftIcon?{key:"icon",fn:function(){return[e.$slots.leftIcon?n("div",{attrs:{"data-qa":"left-grouped-chip-icon"}},[e._t("leftIcon")],2):e._e()]},proxy:!0}:null,{key:"default",fn:function(){return[e.$slots.leftContent?n("div",{attrs:{"data-qa":"left-grouped-chip-content"}},[e._t("leftContent")],2):e._e()]},proxy:!0}],null,!0)}),n("dt-chip",{staticClass:"d-brr-pill d-bgc-purple-200 d-wmx84 dt-chip-content",attrs:{"hide-close":!0,interactive:!1,"content-class":"d-fs100",size:"xs","grouped-chip":!0},scopedSlots:e._u([{key:"icon",fn:function(){return[e.$slots.rightIcon?n("div",{attrs:{"data-qa":"right-grouped-chip-icon"}},[e._t("rightIcon")],2):e._e()]},proxy:!0},{key:"default",fn:function(){return[e.$slots.rightContent?n("div",{attrs:{"data-qa":"right-grouped-chip-content"}},[e._t("rightContent")],2):e._e()]},proxy:!0}],null,!0)})],1)},Km=[],Gm=h.normalizeComponent(Wm,Um,Km,!1,null,null,null,null);const Ym=Gm.exports;const Zm={name:"DtRecipeSettingsMenuButton",components:{DtButton:G,DtIcon:V},props:{updateAvailable:{type:Boolean,default:!1},ariaLabel:{type:String,required:!0}},emits:["click"]};var Xm=function(){var e=this,n=e._self._c;return e.updateAvailable?n("dt-button",e._g({staticClass:"settings-menu-button-update",attrs:{importance:"outlined",size:"xs","icon-position":"right","aria-label":e.ariaLabel},scopedSlots:e._u([{key:"icon",fn:function(){return[n("dt-icon",{attrs:{name:"more-vertical",size:"300"}})]},proxy:!0}],null,!1,3418040308)},e.$listeners),[e._t("default")],2):n("dt-button",e._g({staticClass:"settings-menu-button",attrs:{importance:"clear",kind:"inverted","aria-label":e.ariaLabel},scopedSlots:e._u([{key:"icon",fn:function(){return[n("dt-icon",{attrs:{name:"more-vertical",size:"300"}})]},proxy:!0}])},e.$listeners))},Qm=[],Jm=h.normalizeComponent(Zm,Xm,Qm,!1,null,"4ee1371d",null,null);const eg=Jm.exports,H={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"},zi={[H.INBOX]:"inbox",[H.CONTACTS]:"contacts",[H.CHANNELS]:"hash",[H.THREADS]:"thread",[H.LOCKED_CHANNEL]:"lock",[H.QUICK_START]:"sparkle",[H.COACHING_GROUP]:"users",[H.COACHING_CENTER]:"external-link","locked channel unread":"lock-filled","channel unread":"hash-bold",[H.ASSIGNED]:"at-sign",[H.DIGITAL]:"message"},Ot={"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"},Wi="If type is contact center, color must be oneof the following:"+Object.keys(Ot).join(", "),Ui=["300","200"],tg={};var ng=function(){var e=this,n=e._self._c;return n("svg",{staticClass:"d-svg d-svg--native d-svg__dialbot",attrs:{"aria-hidden":"true",focusable:"false","aria-label":"Dialbot",width:"358",height:"358",viewBox:"0 0 358 358",fill:"none"}},[n("circle",{attrs:{cx:"179",cy:"179",r:"179",fill:"url(#paint0_linear_4_44)"}}),n("path",{attrs:{d:"M179 268.5v-11.933V268.5Zm86.517 0v11.933h19.308l-8.635-17.27-10.673 5.337Zm-16.73-33.459-9.3-7.478-4.797 5.967 3.424 6.848 10.673-5.337ZM179 101.433c42.839 0 77.567 34.728 77.567 77.567h23.866c0-56.02-45.413-101.433-101.433-101.433v23.866ZM101.433 179c0-42.839 34.728-77.567 77.567-77.567V77.567C122.98 77.567 77.567 122.98 77.567 179h23.866ZM179 256.567c-42.839 0-77.567-34.728-77.567-77.567H77.567c0 56.02 45.413 101.433 101.433 101.433v-23.866Zm86.517 0H179v23.866h86.517v-23.866Zm-27.403-16.189 16.729 33.459 21.347-10.674-16.729-33.459-21.347 10.674ZM256.567 179c0 18.396-6.39 35.268-17.08 48.563l18.6 14.955c13.975-17.38 22.346-39.488 22.346-63.518h-23.866Z",fill:"white"}}),n("path",{attrs:{d:"M226.733 202.867c-6.527 5.701-13.942 10.11-22.243 13.226-8.302 3.116-16.781 4.674-25.437 4.674-8.727 0-17.241-1.558-25.543-4.674-8.301-3.116-15.716-7.525-22.243-13.226v-11.934c4.399 2.652 9.365 4.939 14.9 6.862a112.163 112.163 0 0 0 16.815 4.674c5.748 1.127 11.105 1.69 16.071 1.69 5.038 0 10.395-.563 16.071-1.69a112.209 112.209 0 0 0 16.816-4.674c5.534-1.923 10.465-4.21 14.793-6.862v11.934Z",fill:"white"}}),n("defs",[n("linearGradient",{attrs:{id:"paint0_linear_4_44",x1:"0",y1:"0",x2:"358",y2:"358",gradientUnits:"userSpaceOnUse"}},[n("stop",{attrs:{"stop-color":"#7C52FF"}}),n("stop",{attrs:{offset:"1","stop-color":"#F9008E"}})],1)],1)])},ag=[],rg=h.normalizeComponent(tg,ng,ag,!1,null,null,null,null);const ig=rg.exports,sg={name:"DtRecipeLeftbarGeneralRowIcon",components:{DtIcon:V,IconDialbot:ig},props:{type:{type:String,default:null},color:{type:String,default:null},iconSize:{type:String,default:"300"}},computed:{isIconType(){return![H.DIALBOT,H.CONTACT_CENTER].includes(this.type)},isContactCenterType(){return this.type===H.CONTACT_CENTER},isDialbotType(){return this.type===H.DIALBOT},getIconName(){return zi[this.type]},contactCenterIconClasses(){return["dt-leftbar-row__icon-cc",Ot[this.color]]},dialbotClasses(){return["d-w24","d-h24","d-d-flex","d-ai-center","d-jc-center"]}}};var og=function(){var e=this,n=e._self._c;return e.isIconType?n("dt-icon",{attrs:{name:e.getIconName,size:e.iconSize}}):e.isContactCenterType?n("div",{class:e.contactCenterIconClasses}):e.isDialbotType?n("div",{class:e.dialbotClasses,attrs:{"data-qa":"general-row-dialbot"}},[n("icon-dialbot",{staticClass:"d-svg--size24"})],1):e._e()},lg=[],dg=h.normalizeComponent(sg,og,lg,!1,null,null,null,null);const cg=dg.exports;const ug={name:"DtRecipeGeneralRow",components:{DtEmojiTextWrapper:h.DtEmojiTextWrapper,DtBadge:ra,DtIcon:V,DtButton:G,DtTooltip:hn,DtRecipeLeftbarGeneralRowIcon:cg},inheritAttrs:!1,props:{type:{type:String,default:"inbox",validator:t=>Object.values(H).includes(t)},ariaLabel:{type:String,default:""},description:{type:String,required:!0},color:{type:String,default:null,validator:t=>Object.keys(Ot).includes(t)},hasUnreads:{type:Boolean,default:!1},unreadCount:{type:String,default:null},unreadCountTooltip:{type:String,default:""},selected:{type:Boolean,default:!1},muted:{type:Boolean,default:!1},activeVoiceChat:{type:Boolean,default:!1},dndText:{type:String,default:""},dndTextTooltip:{type:String,default:""},hasCallButton:{type:Boolean,default:!1},callButtonTooltip:{type:String,default:""},isTyping:{type:Boolean,default:!1},iconSize:{type:String,default:"300",validator:t=>Ui.includes(t)}},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 H.CHANNELS:if(this.hasUnreads)return"channel unread";break;case H.LOCKED_CHANNEL:if(this.hasUnreads)return"locked channel unread";break}return this.type},getAriaLabel(){return this.ariaLabel?this.ariaLabel:on([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===H.CONTACT_CENTER&&!Object.keys(Ot).includes(this.color)&&console.error(Wi)},adjustLabelWidth(){var r,i,s,l,d,p;const t=((i=(r=this.$el)==null?void 0:r.querySelector(".dt-leftbar-row__primary"))==null?void 0:i.clientWidth)||0,e=((l=(s=this.$el)==null?void 0:s.querySelector(".dt-leftbar-row__omega"))==null?void 0:l.clientWidth)||0,n=((p=(d=this.$el)==null?void 0:d.querySelector(".dt-leftbar-row__alpha"))==null?void 0:p.clientWidth)||0,a=16;this.labelWidth=t-(e+n+a)+"px"}}};var pg=function(){var e=this,n=e._self._c;return n("div",{class:e.leftbarGeneralRowClasses,attrs:{"data-qa":"dt-leftbar-row"}},[n("a",e._g(e._b({staticClass:"dt-leftbar-row__primary",attrs:{"data-qa":"data-qa"in e.$attrs?e.$attrs["data-qa"]:"dt-leftbar-row-link","aria-label":e.getAriaLabel,title:e.description,href:"href"in e.$attrs?e.$attrs.href:"javascript:void(0)"}},"a",e.$attrs,!1),e.$listeners),[n("div",{staticClass:"dt-leftbar-row__alpha"},[e.isTyping?n("div",{staticClass:"dt-leftbar-row__is-typing"},[n("span"),n("span"),n("span")]):e._t("left",function(){return[n("dt-recipe-leftbar-general-row-icon",{attrs:{type:e.getIcon,color:e.color,"icon-size":e.iconSize,"data-qa":"dt-leftbar-row-icon"}})]})],2),n("div",{staticClass:"dt-leftbar-row__label",style:`flex-basis: ${e.labelWidth}`},[e._t("label",function(){return[n("dt-emoji-text-wrapper",{staticClass:"dt-leftbar-row__description",attrs:{"data-qa":"dt-leftbar-row-description",size:"200"}},[e._v(" "+e._s(e.description)+" ")])]})],2)]),e.hasActions?n("div",{staticClass:"dt-leftbar-row__omega"},[e.dndText?n("dt-tooltip",{attrs:{placement:"top",message:e.dndTextTooltip},scopedSlots:e._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"}},[e._v(" "+e._s(e.dndText)+" ")])]},proxy:!0}],null,!1,490758222)}):e._e(),e.activeVoiceChat?n("div",{staticClass:"dt-leftbar-row__active-voice"},[n("dt-icon",{attrs:{size:"300",name:"activity"}})],1):e.showUnreadCount?n("dt-tooltip",{attrs:{message:e.unreadCountTooltip,placement:"top"},scopedSlots:e._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"}},[e._v(" "+e._s(e.unreadCount)+" ")])]},proxy:!0}],null,!1,462525554)}):e._e(),e.hasCallButton?n("div",{staticClass:"dt-leftbar-row__action",attrs:{"data-qa":"dt-leftbar-row-action"}},[n("dt-tooltip",{attrs:{message:e.callButtonTooltip,placement:"top"},scopedSlots:e._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":e.callButtonTooltip},on:{focus:function(a){e.actionFocused=!0},blur:function(a){e.actionFocused=!1},click:function(a){return a.stopPropagation(),e.$emit("call",a)}},scopedSlots:e._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):e._e()],1):e._e()])},fg=[],hg=h.normalizeComponent(ug,pg,fg,!1,null,"be4d0e3f",null,null);const xa=hg.exports,mg={name:"DtRecipeGroupRow",components:{DtIcon:V,DtRecipeGeneralRow:xa},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 on([this.groupCountText,this.names])}}};var gg=function(){var e=this,n=e._self._c;return n("dt-recipe-general-row",e._g(e._b({attrs:{description:e.names,"aria-label":e.ariaLabel,"unread-count":e.unreadCount,"has-unreads":e.hasUnreads,"unread-count-tooltip":e.unreadCountTooltip,selected:e.selected,"is-typing":e.isTyping},scopedSlots:e._u([{key:"left",fn:function(){return[n("dt-icon",{attrs:{name:"users",size:"300"}})]},proxy:!0}])},"dt-recipe-general-row",e.$attrs,!1),e.$listeners))},_g=[],vg=h.normalizeComponent(mg,gg,_g,!1,null,null,null,null);const bg=vg.exports,yg={name:"DtRecipeContactRow",components:{DtAvatar:Et,DtRecipeGeneralRow:xa,DtEmojiTextWrapper:h.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 on([this.name,this.presenceText,this.userStatus])},iconName(){return this.noInitials?"user":null}}};var Sg=function(){var e=this,n=e._self._c;return n("dt-recipe-general-row",e._g(e._b({attrs:{"unread-count":e.unreadCount,description:e.contactDescription,"has-unreads":e.hasUnreads,selected:e.selected,"has-call-button":e.hasCallButton,muted:e.muted,"is-typing":e.isTyping,"call-button-tooltip":e.callButtonTooltip,"unread-count-tooltip":e.unreadCountTooltip},scopedSlots:e._u([{key:"left",fn:function(){return[n("dt-avatar",{attrs:{"full-name":e.name,"image-src":e.avatarSrc,"image-alt":e.avatarAlt,"icon-name":e.iconName,"icon-size":"200",size:"sm",seed:e.avatarSeed,presence:e.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"}},[e._v(" "+e._s(e.name)+" ")]),n("div",{staticClass:"dt-leftbar-row__status"},[e.presenceText?n("span",{class:["dt-leftbar-row__meta-context",e.presenceColorClass],attrs:{"data-qa":"dt-leftbar-row-presence-text"}},[e._v(" "+e._s(e.presenceText)+" ")]):e._e(),e.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"}},[e._v(" "+e._s(e.userStatus)+" ")]):e._e()],1)]},proxy:!0}])},"dt-recipe-general-row",e.$attrs,!1),e.$listeners))},Cg=[],wg=h.normalizeComponent(yg,Sg,Cg,!1,null,null,null,null);const Og=wg.exports,Ki=["up","down"],Gi=["mentions","messages"];const Eg={name:"DtRecipeUnreadPill",components:{DtIcon:V},props:{kind:{type:String,required:!0,validator:t=>Gi.includes(t)},direction:{type:String,required:!0,validator:t=>Ki.includes(t)}},emits:["click"]};var xg=function(){var e=this,n=e._self._c;return n("button",e._g({class:["dt-leftbar-unread-pill",`dt-leftbar-unread-pill--${e.kind}`],attrs:{type:"button","data-qa":"dt-leftbar-unread-pill"}},e.$listeners),[n("dt-icon",{attrs:{name:`arrow-${e.direction}`,size:"300"}}),n("span",{attrs:{"data-qa":"dt-leftbar-unread-pill__label"}},[e._t("default")],2)],1)},Ig=[],Tg=h.normalizeComponent(Eg,xg,Ig,!1,null,null,null,null);const Dg=Tg.exports,An={NORMAL:"",SEARCHED:"d-bgc-warning-subtle",ERROR:"d-bgc-critical-subtle"},$n="NORMAL";const Lg={name:"DtRecipeFeedItemRow",components:{DtAvatar:Et,DtLazyShow:rt,DtListItem:It},inheritAttrs:!1,props:{showHeader:{type:Boolean,default:!1},avatarImageUrl:{type:String,default:""},displayName:{type:String,default:""},time:{type:String,default:""},shortTime:{type:String,default:""},isActive:{type:Boolean,default:!1},state:{type:String,default:$n,validator:t=>Object.keys(An).includes(t)}},emits:["hover","focus"],data(){return{faded:!1}},computed:{avatarSeed(){return(this.displayName||"").split(" ").map(n=>n.charAt(0)).join("").slice(0,2).toUpperCase()},feedListeners(){return{...this.$listeners,mouseenter:()=>this.setHover(!0),mouseleave:()=>this.setHover(!1),focusin:()=>this.setFocus(!0),focusout:()=>this.setFocus(!1)}},listItemClasses(){return["d-w100p","d-box-border","d-ps-relative","d-px8",{"d-bgc-secondary-opaque":this.isActive&&this.state===$n},An[this.state],"dt-feed-item-row","d-t","d-tp-bgc"]}},methods:{setFocus(t){this.$emit("focus",t)},setHover(t){this.$emit("hover",t)},fade(){this.state===$n||this.faded===!0||(this.$refs.FeedItemRef.$el.classList.remove(An[this.state]),this.faded=!0)}}};var kg=function(){var e=this,n=e._self._c;return n("dt-list-item",e._g(e._b({ref:"FeedItemRef",class:e.listItemClasses,attrs:{"navigation-type":"none","data-qa":"dt-feed-item-row"},scopedSlots:e._u([{key:"left",fn:function(){return[e.showHeader?n("dt-avatar",{attrs:{"full-name":e.displayName,"image-src":e.avatarImageUrl,seed:e.avatarSeed}}):e._e(),e.showHeader?e._e():n("div",{directives:[{name:"show",rawName:"v-show",value:e.isActive,expression:"isActive"}],staticClass:"d-fs-100 d-fw-normal d-ws-nowrap d-lh-100 d-fc-tertiary d-mb6",attrs:{"data-qa":"dt-feed-item-row--left-time"}},[e._v(" "+e._s(e.shortTime)+" ")])]},proxy:!0},{key:"bottom",fn:function(){return[n("div",{staticClass:"d-d-flex d-fw-wrap",attrs:{"data-qa":"dt-feed-item-row--reactions"}},[e._t("reactions")],2),e._t("threading")]},proxy:!0},{key:"right",fn:function(){return[n("div",{directives:[{name:"show",rawName:"v-show",value:e.isActive,expression:"isActive"}],staticClass:"d-ps-absolute d-tn16 d-r12",attrs:{"data-qa":"dt-feed-item-row--menu"}},[n("dt-lazy-show",{attrs:{appear:!0,transition:"fade",show:e.isActive}},[e._t("menu")],2)],1)]},proxy:!0}],null,!0)},"dt-list-item",e.$attrs,!1),e.feedListeners),[n("article",[e.showHeader?n("div",{staticClass:"d-d-flex d-ai-center",attrs:{"data-qa":"dt-feed-item-row--header"}},[n("p",{staticClass:"d-fs-200 d-lh-300 d-fw-bold d-to-ellipsis d-of-hidden d-ws-nowrap"},[e._v(" "+e._s(e.displayName)+" ")]),n("time",{staticClass:"d-fs-100 d-mt2 d-lh-300 d-fc-tertiary d-fw-normal d-ml4 d-fl-shrink0"},[e._v(" "+e._s(e.time)+" ")])]):e._e(),n("span",{staticClass:"content-text-wrapper-class",attrs:{"data-qa":"dt-feed-item-row--content"}},[e._t("default")],2)])])},Ag=[],$g=h.normalizeComponent(Lg,kg,Ag,!1,null,"5f107637",null,null);const Rg=$g.exports,ea={default:"dt-feed-item-pill--border-default",ai:"dt-feed-item-pill--border-ai",critical:"dt-feed-item-pill--border-critical"};const Pg={name:"DtRecipeFeedItemPill",components:{DtItemLayout:tn,DtIcon:V,DtCollapsible:jr},props:{iconName:{type:String,default:()=>""},title:{type:String,default:()=>""},wrapperClass:{type:[String,Array,Object],default:""},buttonClass:{type:[String,Array,Object],default:""},ariaLabel:{type:String,required:!0},toggleable:{type:Boolean,default:()=>!0},borderColor:{type:String,default:"default",validator:t=>Object.keys(ea).includes(t)}},data(){return{hover:!1,expanded:!1}},computed:{computedIcon(){return this.toggleable&&this.hover?this.expanded?"chevron-down":"chevron-right":this.iconName},toggleableClass(){return this.toggleable?"d-c-pointer":""},borderClass(){return ea[this.borderColor]}},methods:{onClick(){this.toggleable&&(this.expanded=!this.expanded)}}};var Ng=function(){var e=this,n=e._self._c;return n("div",{class:["dt-feed-item-pill--border",e.borderClass,e.wrapperClass]},[n("div",{staticClass:"d-p8 d-bgc-secondary"},[n("dt-collapsible",{attrs:{open:e.expanded},scopedSlots:e._u([{key:"anchor",fn:function(){return[n("button",{class:["d-baw0 d-bgc-moderate d-bar-pill d-w100p d-ta-left d-btn--circle",e.toggleableClass,e.buttonClass],attrs:{"aria-label":e.ariaLabel,"data-qa":"dt-feed-item-pill"},on:{focusin:function(a){e.hover=!0},focusout:function(a){e.hover=!1},mouseenter:function(a){e.hover=!0},mouseleave:function(a){e.hover=!1},click:e.onClick}},[n("dt-item-layout",{staticClass:"d-w100p d-p8",scopedSlots:e._u([{key:"left",fn:function(){return[n("dt-icon",{staticClass:"dt-feed-item-pill--icon d-pr8",attrs:{size:"300","data-qa":"dt-feed-item-pill-icon",name:e.computedIcon}})]},proxy:!0},{key:"subtitle",fn:function(){return[e._t("subtitle")]},proxy:!0},{key:"bottom",fn:function(){return[e._t("bottom")]},proxy:!0},{key:"right",fn:function(){return[e._t("right")]},proxy:!0}],null,!0)},[e._v(" "+e._s(e.title)+" ")])],1)]},proxy:!0},{key:"content",fn:function(){return[n("div",{staticClass:"d-jc-center d-d-flex"},[e._t("content")],2)]},proxy:!0}],null,!0)})],1)])},Mg=[],Bg=h.normalizeComponent(Pg,Ng,Mg,!1,null,"4bd1c0c2",null,null);const Fg=Bg.exports;const Vg={name:"DtRecipeTimePill",props:{dateTimeDisplay:{type:String,required:!0},dateTime:{type:String,required:!0,validator:t=>{const e=new Date(t);return e instanceof Date&&!isNaN(e)}}}};var jg=function(){var e=this,n=e._self._c;return n("time",{staticClass:"d-ba d-bar-pill d-baw1 d-bc-black-300 d-px16 d-py4 d-fs-100",attrs:{"data-qa":"dt-time-pill",dateTime:e.dateTime}},[e._v(" "+e._s(e.dateTimeDisplay)+" ")])},qg=[],Hg=h.normalizeComponent(Vg,jg,qg,!1,null,null,null,null);const zg=Hg.exports,Yi=["emojiUnicodeOrShortname","isSelected","ariaLabel","tooltip","num"];const Wg={name:"DtRecipeEmojiRow",components:{DtTooltip:hn,DtButton:G,DtEmoji:h.DtEmoji,DtEmojiTextWrapper:h.DtEmojiTextWrapper},mixins:[],props:{reactions:{type:Array,default:()=>[],validator:t=>{for(const e of t)if(!Yi.every(a=>e[a]!==void 0))return!1;return!0}}},emits:["emoji-clicked","emoji-hovered"],methods:{emojiClicked(t){this.$emit("emoji-clicked",t.emojiUnicodeOrShortname)},emojiHovered(t,e){this.$emit("emoji-hovered",{reaction:t.emojiUnicodeOrShortname,state:e})}}};var Ug=function(){var e=this,n=e._self._c;return n("span",{staticClass:"dt-emoji-row"},e._l(e.reactions,function(a){return n("span",{key:a.unicodeOutput,staticClass:"d-mr4 d-mb4",attrs:{reaction:a}},[n("dt-tooltip",{staticClass:"d-d-inline-block",attrs:{"content-class":"d-wmx464"},on:{shown:r=>e.emojiHovered(a,r)},scopedSlots:e._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 e.emojiClicked(a)}}},[n("span",{staticClass:"d-mr4"},[n("dt-emoji",{attrs:{size:"200",code:a.emojiUnicodeOrShortname}})],1),n("span",{staticClass:"d-fw-bold d-fs-100"},[e._v(" "+e._s(a.num)+" ")])])]}}],null,!0)},[n("span",{attrs:{"aria-hidden":"true"}},[n("dt-emoji-text-wrapper",{attrs:{size:"200"}},[e._v(" "+e._s(a.tooltip)+" ")])],1)])],1)}),0)},Kg=[],Gg=h.normalizeComponent(Wg,Ug,Kg,!1,null,null,null,null);const Yg=Gg.exports,ta={warning:"dt-recipe-callbox-badge--warning"},na={default:"dt-recipe-callbox--border-default",ai:"dt-recipe-callbox--border-ai",critical:"dt-recipe-callbox--border-critical"};const Zg={name:"DtRecipeCallbox",components:{DtBadge:ra,DtAvatar:Et},inheritAttrs:!1,props:{badgeText:{type:String,default:""},badgeColor:{type:String,default:null,validator:t=>t===null||Object.keys(ta).includes(t)},avatarSrc:{type:String,default:""},avatarFullName:{type:String,default:""},avatarSeed:{type:String,default:""},title:{type:String,default:""},borderColor:{type:String,default:"default",validator:t=>Object.keys(na).includes(t)},clickable:{type:Boolean,default:!1}},emits:["click"],computed:{shouldShowAvatar(){return this.avatarFullName||this.avatarSrc},badgeClass(){return ta[this.badgeColor]},borderClass(){return na[this.borderColor]}},methods:{handleClick(t){this.clickable&&this.$emit("click",t)}}};var Xg=function(){var e=this,n=e._self._c;return n("div",{staticClass:"dt-recipe-callbox",attrs:{"data-qa":"dt-recipe-callbox"}},[e.$slots.video?n("div",{staticClass:"dt-recipe-callbox--video",attrs:{"data-qa":"dt-recipe-callbox--video-wrapper"}},[e._t("video")],2):e._e(),n("div",{class:["dt-recipe-callbox--main-content",e.borderClass,{"dt-recipe-callbox--clickable":e.clickable}],attrs:{"data-qa":"dt-recipe-callbox--main-content"}},[n("div",{staticClass:"dt-recipe-callbox--main-content-top"},[e.shouldShowAvatar?n("dt-avatar",{attrs:{"avatar-class":"dt-recipe-callbox--avatar","image-src":e.avatarSrc,"full-name":e.avatarFullName,seed:e.avatarSeed,clickable:e.clickable,size:"sm"},on:{click:e.handleClick}}):e._e(),n("div",{staticClass:"dt-recipe-callbox--content"},[n(e.clickable?"button":"span",{tag:"component",staticClass:"dt-recipe-callbox--content-title",attrs:{"data-qa":"dt-recipe-callbox--title"},on:{click:e.handleClick}},[e._v(" "+e._s(e.title)+" ")]),e.$slots.badge||e.badgeText?n("div",{staticClass:"dt-recipe-callbox--content-badge",attrs:{"data-qa":"dt-recipe-callbox--badge-wrapper"}},[e._t("badge",function(){return[n("dt-badge",{class:e.badgeClass,attrs:{text:e.badgeText}})]})],2):e._e(),e.$slots.subtitle?n("div",{staticClass:"dt-recipe-callbox--content-subtitle",attrs:{"data-qa":"dt-recipe-callbox--subtitle-wrapper"}},[e._t("subtitle")],2):e._e()],1),e.$slots.right?n("div",{staticClass:"dt-recipe-callbox--right",attrs:{"data-qa":"dt-recipe-callbox--right-wrapper"}},[e._t("right")],2):e._e()],1),e.$slots.bottom?n("div",{staticClass:"dt-recipe-callbox--main-content-bottom",attrs:{"data-qa":"dt-recipe-callbox--bottom-wrapper"}},[e._t("bottom")],2):e._e()])])},Qg=[],Jg=h.normalizeComponent(Zg,Xg,Qg,!1,null,"2a35953d",null,null);const e_=Jg.exports;exports.DtSkeleton=h.DtSkeleton;exports.DtSkeletonListItem=h.DtSkeletonListItem;exports.DtSkeletonParagraph=h.DtSkeletonParagraph;exports.DtSkeletonShape=h.DtSkeletonShape;exports.DtSkeletonText=h.DtSkeletonText;exports.SKELETON_HEADING_HEIGHTS=h.SKELETON_HEADING_HEIGHTS;exports.SKELETON_RIPPLE_DURATION=h.SKELETON_RIPPLE_DURATION;exports.SKELETON_SHAPES=h.SKELETON_SHAPES;exports.SKELETON_SHAPE_SIZES=h.SKELETON_SHAPE_SIZES;exports.SKELETON_TEXT_TYPES=h.SKELETON_TEXT_TYPES;exports.AVATAR_COLORS=Ir;exports.AVATAR_GROUP_VALIDATOR=Pn;exports.AVATAR_ICON_SIZES=xr;exports.AVATAR_KIND_MODIFIERS=Or;exports.AVATAR_PRESENCE_SIZE_MODIFIERS=Er;exports.AVATAR_PRESENCE_STATES=Rn;exports.AVATAR_SIZE_MODIFIERS=Yt;exports.BADGE_DECORATION_MODIFIERS=Bn;exports.BADGE_KIND_MODIFIERS=Mn;exports.BADGE_TYPE_MODIFIERS=Nn;exports.BREADCRUMBS_INVERTED_MODIFIER=$r;exports.BREADCRUMB_ITEM_SELECTED_MODIFIER=Ar;exports.BUTTON_GROUP_ALIGNMENT=Fn;exports.CALLBAR_BUTTON_VALID_WIDTH_SIZE=Ea;exports.CALLBOX_BADGE_COLORS=ta;exports.CALLBOX_BORDER_COLORS=na;exports.CHIP_SIZE_MODIFIERS=Zn;exports.COLOR_CODES=qi;exports.DEFAULT_VALIDATION_MESSAGE_TYPE=cr;exports.DESCRIPTION_SIZE_TYPES=dr;exports.DtAvatar=Et;exports.DtBadge=ra;exports.DtBanner=bo;exports.DtBreadcrumbItem=Pr;exports.DtBreadcrumbs=Ao;exports.DtButton=G;exports.DtButtonGroup=Mo;exports.DtCard=Nr;exports.DtCheckableInputMixin=ba;exports.DtCheckbox=ip;exports.DtCheckboxGroup=cp;exports.DtChip=Ca;exports.DtCodeblock=Uo;exports.DtCollapsible=jr;exports.DtCombobox=Vr;exports.DtDatepicker=nm;exports.DtDropdown=gi;exports.DtDropdownSeparator=Bc;exports.DtGroupableInputMixin=ya;exports.DtIcon=V;exports.DtImageViewer=Hc;exports.DtInput=_i;exports.DtInputGroup=Sa;exports.DtInputGroupMixin=vi;exports.DtInputMixin=va;exports.DtItemLayout=tn;exports.DtKeyboardListNavigationMixin=la;exports.DtKeyboardShortcut=Kp;exports.DtLazyShow=rt;exports.DtLink=Rr;exports.DtListItem=It;exports.DtListItemGroup=Su;exports.DtListSection=gu;exports.DtModal=uu;exports.DtNotice=su;exports.DtPagination=xu;exports.DtPopover=pn;exports.DtPresence=wr;exports.DtRadio=Au;exports.DtRadioGroup=Mu;exports.DtRecipeCallbarButton=ji;exports.DtRecipeCallbarButtonWithPopover=Im;exports.DtRecipeCallbox=e_;exports.DtRecipeComboboxMultiSelect=vm;exports.DtRecipeComboboxWithPopover=Fi;exports.DtRecipeContactInfo=Am;exports.DtRecipeContactRow=Og;exports.DtRecipeEmojiRow=Yg;exports.DtRecipeFeedItemPill=Fg;exports.DtRecipeFeedItemRow=Rg;exports.DtRecipeGeneralRow=xa;exports.DtRecipeGroupRow=bg;exports.DtRecipeGroupedChip=Ym;exports.DtRecipeIvrNode=zm;exports.DtRecipeSettingsMenuButton=eg;exports.DtRecipeTimePill=zg;exports.DtRecipeTopBannerInfo=Mm;exports.DtRecipeUnreadPill=Dg;exports.DtRootLayout=af;exports.DtSelectMenu=Ep;exports.DtStack=hf;exports.DtTab=Gu;exports.DtTabGroup=Hu;exports.DtTabPanel=Ju;exports.DtToast=Lp;exports.DtToggle=Np;exports.DtTooltip=hn;exports.DtValidationMessages=De;exports.FEED_ITEM_PILL_BORDER_COLORS=ea;exports.INPUT_SIZES=Ze;exports.INPUT_TYPES=Qt;exports.IVR_NODE_BRANCH=bn;exports.IVR_NODE_EXPERT=vn;exports.IVR_NODE_GO_TO=$t;exports.IVR_NODE_HANGUP=Sn;exports.IVR_NODE_ICON_TYPES=Hi;exports.IVR_NODE_LABELS=Bm;exports.IVR_NODE_PROMPT_COLLECT=gn;exports.IVR_NODE_PROMPT_MENU=mn;exports.IVR_NODE_PROMPT_PLAY=_n;exports.IVR_NODE_TRANSFER=yn;exports.LEFTBAR_GENERAL_ROW_CONTACT_CENTER_COLORS=Ot;exports.LEFTBAR_GENERAL_ROW_CONTACT_CENTER_VALIDATION_ERROR=Wi;exports.LEFTBAR_GENERAL_ROW_ICON_MAPPING=zi;exports.LEFTBAR_GENERAL_ROW_ICON_SIZES=Ui;exports.LEFTBAR_GENERAL_ROW_TYPES=H;exports.LINK_KIND_MODIFIERS=en;exports.LINK_VARIANTS=Lr;exports.MODAL_BANNER_KINDS=Yn;exports.MODAL_KIND_MODIFIERS=Kn;exports.MODAL_SIZE_MODIFIERS=Gn;exports.MULTI_SELECT_SIZES=Vi;exports.NOTICE_KINDS=at;exports.POPOVER_CONTENT_WIDTHS=ga;exports.POPOVER_HEADER_FOOTER_PADDING_CLASSES=pi;exports.POPOVER_INITIAL_FOCUS_STRINGS=hi;exports.POPOVER_PADDING_CLASSES=Un;exports.POPOVER_ROLES=fi;exports.PRESENCE_STATES=Xe;exports.PRESENCE_STATES_LIST=Cr;exports.REACTIONS_ATTRIBUTES=Yi;exports.ROOT_LAYOUT_RESPONSIVE_BREAKPOINTS=Li;exports.ROOT_LAYOUT_SIDEBAR_POSITIONS=wa;exports.SELECT_SIZE_MODIFIERS=Xn;exports.SELECT_STATE_MODIFIERS=wi;exports.SHORTCUTS_ALIASES_LIST=qp;exports.SHORTCUTS_ICON_ALIASES=Qe;exports.SHORTCUTS_ICON_SEPARATOR=Di;exports.TAB_IMPORTANCE_MODIFIERS=Ci;exports.TAB_LIST_IMPORTANCE_MODIFIERS=Si;exports.TAB_LIST_KIND_MODIFIERS=yi;exports.TAB_LIST_SIZES=bi;exports.TOAST_ROLES=Oi;exports.TOOLTIP_DELAY_MS=xi;exports.TOOLTIP_DIRECTIONS=Ei;exports.TOOLTIP_HIDE_ON_CLICK_VARIANTS=Mp;exports.TOOLTIP_KIND_MODIFIERS=Ii;exports.TOOLTIP_STICKY_VALUES=Ti;exports.UNREAD_PILL_DIRECTIONS=Ki;exports.UNREAD_PILL_KINDS=Gi;exports.VALIDATION_MESSAGE_TYPES=ae;exports.filterFormattedMessages=aa;exports.formatLong=am;exports.formatMedium=rm;exports.formatMessages=_t;exports.formatNoYear=sm;exports.formatNumerical=om;exports.formatShort=im;exports.getUniqueString=z;exports.getValidationState=Ie;exports.validationMessageValidator=kt;
|
|
30
|
+
need to be set so the component always includes a close button`)}}};var lu=function(){var e=this,n=e._self._c;return n("dt-lazy-show",e._g({class:["d-modal",e.MODAL_KIND_MODIFIERS[e.kind],e.MODAL_SIZE_MODIFIERS[e.size],e.modalClass],attrs:{transition:"d-zoom",show:e.show,"data-qa":"dt-modal","aria-hidden":e.open}},e.modalListeners),[e.show&&(e.$slots.banner||e.bannerTitle)?n("div",{class:["d-modal__banner",e.bannerClass,e.bannerKindClass],attrs:{"data-qa":"dt-modal-banner"}},[e._t("banner",function(){return[e._v(" "+e._s(e.bannerTitle)+" ")]})],2):e._e(),n("transition",{attrs:{appear:"",name:"d-modal__dialog"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.show,expression:"show"}],class:["d-modal__dialog",{"d-modal__dialog--scrollable":e.fixedHeaderFooter},e.dialogClass],attrs:{role:"dialog","aria-modal":"true","aria-describedby":e.describedById,"aria-labelledby":e.labelledById}},[e.$slots.header?n("div",{staticClass:"d-modal__header",attrs:{id:e.labelledById,"data-qa":"dt-modal-title"}},[e._t("header")],2):n("h2",{staticClass:"d-modal__header",attrs:{id:e.labelledById,"data-qa":"dt-modal-title"}},[e._v(" "+e._s(e.title)+" ")]),e.$slots.default?n("div",{class:["d-modal__content",e.contentClass],attrs:{"data-qa":"dt-modal-copy"}},[e._t("default")],2):n("p",{class:["d-modal__content",e.contentClass],attrs:{"data-qa":"dt-modal-copy"}},[e._v(" "+e._s(e.copy)+" ")]),e.hasFooterSlot?n("footer",{staticClass:"d-modal__footer"},[e._t("footer")],2):e._e(),e.hideClose?e._e():n("dt-button",e._b({staticClass:"d-modal__close",attrs:{circle:"",size:"lg",importance:"clear","aria-label":e.closeButtonProps.ariaLabel},on:{click:e.close},scopedSlots:e._u([{key:"icon",fn:function(){return[n("dt-icon",{attrs:{name:"close",size:"400"}})]},proxy:!0}],null,!1,1709155279)},"dt-button",e.closeButtonProps,!1)),e.showVisuallyHiddenClose?n("sr-only-close-button",{attrs:{"visually-hidden-close-label":e.visuallyHiddenCloseLabel},on:{close:e.close}}):e._e()],1)])],1)},du=[],cu=h.normalizeComponent(ou,lu,du,!1,null,null,null,null);const uu=cu.exports;const pu={name:"ListSection",components:{Vnodes:{name:"vnodes",functional:!0,render:(t,e)=>e.props.vnodes},DtButton:G},props:{id:{type:String,default(){return de.getUniqueString()}},header:{type:String,default:null},separator:{type:Boolean,default:!1},maxDisplayed:{type:Number,default:0},textMore:{type:String,default:"Show more"},textLess:{type:String,default:"Show less"}},data(){return{showAll:!1}},computed:{isCollapsible(){return!(this.maxDisplayed===0||this.itemCount<=this.maxDisplayed)},showMoreLessText(){return this.showAll?this.textLess:this.textMore},hiddenCount(){return this.itemCount-this.displayedItems.length},itemCount(){return this.$slots.default.length},displayedItems(){return this.$slots.default.filter((t,e)=>e<=this.maxDisplayed-1)}},methods:{showMoreLessClicked(){this.showAll=!this.showAll}}};var fu=function(){var e=this,n=e._self._c;return n("div",{class:["dt-list-section","d-fs-200","d-lh6","d-py6","d-bc-black-400",{"d-bb":e.separator}],attrs:{id:e.id,role:"group","aria-labelledby":`${e.id}-list-section-header`,tabindex:"-1"}},[e.header?n("h3",{staticClass:"d-pl12 d-mt6",attrs:{id:`${e.id}-list-section-header`}},[e._v(" "+e._s(e.header)+" ")]):e._e(),!e.isCollapsible||e.showAll?n("ol",{attrs:{id:`${e.id}-list-section-content`}},[e._t("default")],2):n("ol",{attrs:{id:`${e.id}-list-section-content`}},[n("vnodes",{attrs:{vnodes:e.displayedItems}})],1),n("div",{staticClass:"d-d-flex"},[e.isCollapsible?n("dt-button",{staticClass:"d-ml12 d-py6",attrs:{id:`${e.id}-list-section-show-more-less`,link:""},on:{click:e.showMoreLessClicked}},[e._v(" "+e._s(e.showMoreLessText)+" ")]):e._e(),e._t("footer")],2)])},hu=[],mu=h.normalizeComponent(pu,fu,hu,!1,null,null,null,null);const gu=mu.exports,_u={name:"DtListItemGroup",props:{id:{type:String,default(){return z()}},heading:{type:String,default:""},headingClass:{type:[String,Array,Object],default:""},listClass:{type:[String,Array,Object],default:""}}};var vu=function(){var e=this,n=e._self._c;return n("ul",{class:["d-ps-relative","d-px0",e.listClass],attrs:{id:e.id,role:"group","data-qa":"dt-dropdown-list-wrapper","aria-labelledby":`${e.id}-heading`}},[e.heading?n("li",{class:["dt-dropdown-list--header",e.headingClass],attrs:{id:`${e.id}-heading`,role:"presentation","data-qa":"dt-dropdown-list-heading"}},[e._t("headingSlot",function(){return[e._v(" "+e._s(e.heading)+" ")]})],2):e._e(),e._t("default")],2)},bu=[],yu=h.normalizeComponent(_u,vu,bu,!1,null,null,null,null);const Su=yu.exports,Cu={name:"DtPagination",components:{DtButton:G,DtIcon:V},props:{ariaLabel:{type:String,required:!0},totalPages:{type:Number,required:!0},prevAriaLabel:{type:String,required:!0},nextAriaLabel:{type:String,required:!0},pageNumberAriaLabel:{type:Function,required:!0},activePage:{type:Number,default:1},maxVisible:{type:Number,default:5}},emits:["change"],data(){return{currentPage:this.activePage}},computed:{isFirstPage(){return this.currentPage===1},isLastPage(){return this.currentPage===this.totalPages},pages(){if(this.maxVisible===0)return[];if(this.totalPages<=this.maxVisible)return this.range(1,this.totalPages);const t=this.maxVisible-1,e=this.totalPages-t+1;if(this.currentPage<t)return[...this.range(1,t),"...",this.totalPages];if(this.currentPage>e)return[1,"...",...this.range(e,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(t,e){const n=[];t=t>0?t:1;for(let a=t;a<=e;a++)n.push(a);return n},changePage(t){this.currentPage=t,this.$emit("change",this.currentPage)}}};var wu=function(){var e=this,n=e._self._c;return n("nav",{staticClass:"d-d-flex d-fd-row d-gg4 d-ai-center",attrs:{"aria-label":e.ariaLabel}},[n("dt-button",{staticClass:"d-px8",class:e.isFirstPage?"d-fc-black-300 d-bgc-transparent":"d-fc-tertiary",attrs:{"data-qa":"dt-pagination-prev","aria-label":e.prevAriaLabel,kind:e.isFirstPage?"default":"muted",importance:e.isFirstPage?"primary":"clear",disabled:e.isFirstPage},on:{click:function(a){return e.changePage(e.currentPage-1)}}},[n("template",{slot:"icon"},[n("dt-icon",{attrs:{name:"chevron-left",size:"300"}})],1)],2),e._l(e.pages,function(a,r){return n("div",{key:`page-${a}-${r}`,class:{"d-as-flex-end":isNaN(Number(a))}},[isNaN(Number(a))?n("div",{staticClass:"d-fc-tertiary d-w24 d-ta-center",attrs:{"data-qa":"dt-pagination-separator"}},[n("dt-icon",{attrs:{name:"more-horizontal",size:"300"}})],1):n("dt-button",{attrs:{"aria-label":e.pageNumberAriaLabel(a),kind:e.currentPage===a?"default":"muted",importance:e.currentPage===a?"primary":"clear","label-class":""},on:{click:function(i){return e.changePage(a)}}},[e._v(" "+e._s(a)+" ")])],1)}),n("dt-button",{staticClass:"d-px8",class:e.isLastPage?"d-fc-black-300 d-bgc-transparent":"d-fc-tertiary",attrs:{"data-qa":"dt-pagination-next","aria-label":e.nextAriaLabel,disabled:e.isLastPage,kind:"muted",importance:e.isLastPage?"primary":"clear"},on:{click:function(a){return e.changePage(e.currentPage+1)}}},[n("template",{slot:"icon"},[n("dt-icon",{attrs:{name:"chevron-right",size:"300"}})],1)],2)],2)},Ou=[],Eu=h.normalizeComponent(Cu,wu,Ou,!1,null,null,null,null);const xu=Eu.exports,Iu={warning:"d-radio--warning",error:"d-radio--error",success:"d-radio--success"},Tu={name:"DtRadio",components:{DtValidationMessages:De},mixins:[va,ba,ya,fn],inheritAttrs:!1,props:{value:{type:[String,Number],default:""}},emits:["input","focusin","focusout"],computed:{inputValidationClass(){return Iu[this.internalValidationState]},radioGroupValue(){var t;return(t=this.groupContext)==null?void 0:t.selectedValue},inputListeners(){return{...this.$listeners,input:()=>{},change:t=>this.emitValue(t.target.value)}}},watch:{radioGroupValue:{immediate:!0,handler(t){this.hasGroup&&(this.internalChecked=t===this.value)}}},methods:{emitValue(t){t!==this.radioGroupValue&&(this.setGroupValue(t),this.$emit("input",t))}}};var Du=function(){var e=this,n=e._self._c;return n("label",[n("div",{class:["d-radio-group",{"d-radio-group--disabled":e.internalDisabled}]},[n("div",{staticClass:"d-radio__input"},[n("input",e._g(e._b({class:["d-radio",e.inputValidationClass,e.inputClass],attrs:{name:e.internalName,disabled:e.internalDisabled,type:"radio"},domProps:{checked:e.internalChecked,value:e.value}},"input",e.$attrs,!1),e.inputListeners))]),n("div",{staticClass:"d-radio__copy d-radio__label",attrs:{"data-qa":"radio-label-description-container"}},[n("div",e._b({class:e.labelClass,attrs:{"data-qa":"radio-label"}},"div",e.labelChildProps,!1),[e._t("default",function(){return[e._v(e._s(e.label))]})],2),e.$slots.description||e.description?n("div",e._b({class:["d-description",e.descriptionClass],attrs:{"data-qa":"radio-description"}},"div",e.descriptionChildProps,!1),[e._t("description",function(){return[e._v(e._s(e.description))]})],2):e._e(),n("dt-validation-messages",e._b({class:e.messagesClass,attrs:{"validation-messages":e.formattedMessages,"show-messages":e.showMessages,"data-qa":"dt-radio-validation-messages"}},"dt-validation-messages",e.messagesChildProps,!1))],1)])])},Lu=[],ku=h.normalizeComponent(Tu,Du,Lu,!1,null,null,null,null);const Au=ku.exports,$u={name:"DtRadioGroup",extends:Sa,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(t){this.provideObj.selectedValue=t}},methods:{setGroupValue(t){this.$emit("input",t)},getMessageKey(t,e){return`radio-group-message-${t}-${e}-${this.id}`}}},Ru=null,Pu=null;var Nu=h.normalizeComponent($u,Ru,Pu,!1,null,null,null,null);const Mu=Nu.exports,bi=["default","sm"],Bu={sm:"d-tablist--sm"},yi={inverted:"d-tablist--inverted"},Si={borderless:"d-tablist--no-border"},Ci={selected:"d-tab--selected"},Fu={name:"DtTabGroup",provide(){return{groupContext:this.provideObj,changeContentPanel:this.changeContentPanel,setFocus:this.setFocus}},props:{label:{type:String,default:""},selected:{type:String,default:""},disabled:{type:Boolean,default:!1},inverted:{type:Boolean,default:!1},borderless:{type:Boolean,default:!1},size:{type:String,default:"default",validate(t){return bi.includes(t)}},tabListClass:{type:[String,Array,Object],default:""},tabListChildProps:{type:Object,default:()=>({})}},emits:["change"],data(){return{provideObj:{selected:"",disabled:!1},focusId:null,tabs:[],TAB_LIST_SIZE_MODIFIERS:Bu,TAB_LIST_KIND_MODIFIERS:yi,TAB_LIST_IMPORTANCE_MODIFIERS:Si}},watch:{disabled:{immediate:!0,handler(){this.provideObj.disabled=this.disabled}},selected:{immediate:!0,handler(){this.provideObj.selected=this.selected}}},mounted(){this.updateSelected()},beforeUpdate(){this.updateSelected()},methods:{updateSelected(){this.provideObj.selected||(this.provideObj.selected=this.selected),this.tabs=this.getTabChildren()},setFocus(t){this.focusId=t},getTabChildren(){return this.$children.map(({$el:t})=>t).filter(({className:t})=>t.includes("d-tab")).map(t=>{var e,n;return{context:t,panelId:(e=t.getAttribute("aria-controls"))==null?void 0:e.replace("dt-panel-",""),id:(n=t.getAttribute("id"))==null?void 0:n.replace("dt-tab-",""),isSelected:t.getAttribute("aria-selected")==="true"}})},onChange(){this.$emit("change",{...this.provideObj})},changeContentPanel({selected:t,selectOverride:e}){this.provideObj.selected=t,e||this.onChange()},tabLeft(){const{index:t,tabs:e}=this.getIndexAndTabs();if(t===-1)return;const n=t-1<0?e.length-1:t-1;this.selectFocusOnTab(n,e)},tabRight(){const{index:t,tabs:e}=this.getIndexAndTabs();if(t===-1)return;const n=t+1>e.length-1?0:t+1;this.selectFocusOnTab(n,e)},selectFocusOnTab(t,e){const{context:n}=e[t];n.focus()},selectTab(){const{tabs:t,index:e}=this.getIndexAndTabs();this.selectTabByIndex(e,t)},selectTabByIndex(t,e){const{context:n,panelId:a}=e[t];this.provideObj.selected=a,n.focus()},getIndexAndTabs(){const t=this.tabs.findIndex(e=>this.focusId?e.id===`${this.focusId}`:e.isSelected);return{tabs:this.tabs,index:t}},onHomeButton(){var t,e;this.tabs.length!==0&&((e=(t=this.tabs[0])==null?void 0:t.context)==null||e.focus())},onEndButton(){var t,e;this.tabs.length!==0&&((e=(t=this.tabs[this.tabs.length-1])==null?void 0:t.context)==null||e.focus())}}};var Vu=function(){var e=this,n=e._self._c;return n("div",{attrs:{"data-qa":"dt-tab-group"}},[n("div",e._b({class:["d-tablist",e.TAB_LIST_SIZE_MODIFIERS[e.size],{[e.TAB_LIST_KIND_MODIFIERS.inverted]:e.inverted,[e.TAB_LIST_IMPORTANCE_MODIFIERS.borderless]:e.borderless},e.tabListClass],attrs:{role:"tablist","aria-label":e.label},on:{keyup:[function(a){return!a.type.indexOf("key")&&e._k(a.keyCode,"left",37,a.key,["Left","ArrowLeft"])||"button"in a&&a.button!==0?null:e.tabLeft.apply(null,arguments)},function(a){return!a.type.indexOf("key")&&e._k(a.keyCode,"right",39,a.key,["Right","ArrowRight"])||"button"in a&&a.button!==2?null:e.tabRight.apply(null,arguments)},function(a){return!a.type.indexOf("key")&&e._k(a.keyCode,"enter",13,a.key,"Enter")?null:e.selectTab.apply(null,arguments)},function(a){return!a.type.indexOf("key")&&e._k(a.keyCode,"space",32,a.key,[" ","Spacebar"])?null:e.selectTab.apply(null,arguments)}],keydown:[function(a){return!a.type.indexOf("key")&&e._k(a.keyCode,"home",void 0,a.key,void 0)?null:e.onHomeButton.apply(null,arguments)},function(a){return!a.type.indexOf("key")&&e._k(a.keyCode,"end",void 0,a.key,void 0)?null:e.onEndButton.apply(null,arguments)}]}},"div",e.tabListChildProps,!1),[e._t("tabs")],2),e._t("default")],2)},ju=[],qu=h.normalizeComponent(Fu,Vu,ju,!1,null,null,null,null);const Hu=qu.exports,zu={name:"DtTab",components:{DtButton:G},inject:["changeContentPanel","groupContext","setFocus"],inheritAttrs:!1,props:{id:{type:String,required:!0},panelId:{type:String,required:!0},label:{type:String,default:""},selected:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},tabClass:{type:[String,Array,Object],default:""}},data(){return{TAB_IMPORTANCE_MODIFIERS:Ci}},computed:{isSelected(){return this.groupContext.selected===this.panelId},tabListeners(){return{...this.$listeners,click:t=>{this.selectPanel(),this.$emit("click",t)},focus:t=>{this.setFocus(this.id),this.$emit("focus",t)}}}},mounted(){this.setSelectedPanelByDefault()},methods:{setSelectedPanelByDefault(){this.selected&&this.selectPanel(!0)},selectPanel(t=!1){this.changeContentPanel({selected:this.panelId,selectOverride:t})}}};var Wu=function(){var e=this,n=e._self._c;return n("dt-button",e._g(e._b({class:["d-tab",{[e.TAB_IMPORTANCE_MODIFIERS.selected]:e.isSelected},e.tabClass],attrs:{id:`dt-tab-${e.id}`,role:"tab","aria-selected":`${e.isSelected}`,"aria-controls":`dt-panel-${e.panelId}`,"aria-label":e.label,"data-qa":"dt-tab",tabindex:e.isSelected?"0":"-1",disabled:e.groupContext.disabled||e.disabled}},"dt-button",e.$attrs,!1),e.tabListeners),[e._t("default")],2)},Uu=[],Ku=h.normalizeComponent(zu,Wu,Uu,!1,null,null,null,null);const Gu=Ku.exports,Yu={name:"DtTabPanel",mixins:[xt],inject:["groupContext"],props:{id:{type:String,required:!0},tabId:{type:String,required:!0},hidden:{type:Boolean,default:!1},tabPanelClass:{type:[String,Array,Object],default:""}},data(){return{isFirstElementFocusable:!1}},computed:{hidePanel(){return this.groupContext.selected!==this.id||this.hidden}},async mounted(){const t=await this.getFirstFocusableElement(this.$el);t?this.isFirstElementFocusable=this.isFirstElementOfPanel(t):this.isFirstElementFocusable=!1},methods:{isFirstElementOfPanel(t){let e=t,n=!0;for(;e;){if(e.previousElementSibling!==null){n=!1;break}e=e.parentNode!==this.$el?e.parentNode:null}return n}}};var Zu=function(){var e=this,n=e._self._c;return n("div",{class:[{"d-d-none":e.hidePanel},e.tabPanelClass],attrs:{id:`dt-panel-${e.id}`,role:"tabpanel",tabindex:e.isFirstElementFocusable?-1:0,"aria-labelledby":`dt-tab-${e.tabId}`,"aria-hidden":`${e.hidePanel}`,"data-qa":"dt-tab-panel"}},[e._t("default")],2)},Xu=[],Qu=h.normalizeComponent(Yu,Zu,Xu,!1,null,null,null,null);const Ju=Qu.exports,ep={error:"d-checkbox--error",warning:"d-checkbox--warning",success:"d-checkbox--success"},tp={name:"DtCheckbox",components:{DtValidationMessages:De},mixins:[va,ba,ya,fn],inheritAttrs:!1,emits:["input","focusin","focusout"],computed:{inputValidationClass(){return ep[this.internalValidationState]},checkboxGroupValueChecked(){var t,e;return((e=(t=this.groupContext)==null?void 0:t.selectedValues)==null?void 0:e.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:t=>this.emitValue(t.target)}}},watch:{checkboxGroupValueChecked:{immediate:!0,handler(t){this.hasGroup&&(this.internalChecked=t)}}},mounted(){this.runValidations()},methods:{emitValue(t){let{value:e,checked:n}=t;this.internalIndeterminate&&(n=!1,this.internalIndeterminate=!1,t.checked=!1),this.setGroupValue(e,n),this.$emit("input",n)},runValidations(){this.validateInputLabels(this.hasLabel,this.$attrs["aria-label"])}}};var np=function(){var e=this,n=e._self._c;return n("label",[n("div",{class:["d-checkbox-group",{"d-checkbox-group--disabled":e.internalDisabled}]},[n("div",{staticClass:"d-checkbox__input"},[n("input",e._g(e._b({class:["d-checkbox",e.inputValidationClass,e.inputClass],attrs:{type:"checkbox",name:e.internalName,disabled:e.internalDisabled},domProps:{checked:e.internalChecked,value:e.value,indeterminate:e.internalIndeterminate}},"input",e.$attrs,!1),e.inputListeners))]),e.hasLabelOrDescription?n("div",{staticClass:"d-checkbox__copy d-checkbox__label",attrs:{"data-qa":"checkbox-label-description-container"}},[e.hasLabel?n("div",e._b({class:e.labelClass,attrs:{"data-qa":"checkbox-label"}},"div",e.labelChildProps,!1),[e._t("default",function(){return[e._v(e._s(e.label))]})],2):e._e(),e.hasDescription?n("div",e._b({class:["d-description",e.descriptionClass],attrs:{"data-qa":"checkbox-description"}},"div",e.descriptionChildProps,!1),[e._t("description",function(){return[e._v(e._s(e.description))]})],2):e._e(),n("dt-validation-messages",e._b({class:e.messagesClass,attrs:{"validation-messages":e.formattedMessages,"show-messages":e.showMessages,"data-qa":"dt-checkbox-validation-messages"}},"dt-validation-messages",e.messagesChildProps,!1))],1):e._e()])])},ap=[],rp=h.normalizeComponent(tp,np,ap,!1,null,null,null,null);const ip=rp.exports,sp={name:"DtCheckboxGroup",extends:Sa,model:{prop:"selectedValues"},props:{value:{type:[],default:null,validator:t=>t?(re.util.warn("Component uses selectedValues to initialize the model, value is not supported by this component",globalThis),!1):!0},selectedValues:{type:Array,default(){return[]}},dataQaGroup:{type:String,default:"checkbox-group"},dataQaGroupLegend:{type:String,default:"checkbox-group-legend"},dataQaGroupMessages:{type:String,default:"checkbox-group-messages"}},emits:["input"],data(){return{internalValue:this.selectedValues,provideObj:{selectedValues:this.selectedValues}}},watch:{selectedValues(t){this.internalValue=t},internalValue(t){this.provideObj.selectedValues=t}},methods:{setGroupValue(t,e){e?this.internalValue.includes(t)||this.internalValue.push(t):this.internalValue=this.internalValue.filter(n=>n!==t),this.$emit("input",this.internalValue)},getMessageKey(t,e){return`checkbox-group-message-${t}-${e}-${this.id}`}}},op=null,lp=null;var dp=h.normalizeComponent(sp,op,lp,!1,null,null,null,null);const cp=dp.exports,Zn={xs:"d-chip__label--xs",sm:"d-chip__label--sm",md:""},up={xs:"d-chip__close--xs",sm:"d-chip__close--sm",md:""},pp={xs:"200",sm:"200",md:"200"},fp={name:"DtChip",components:{DtButton:G,DtIcon:V},props:{closeButtonProps:{type:Object,default:function(){return{ariaLabel:"close"}},validator:t=>!!t.ariaLabel},hideClose:{type:Boolean,default:!1},size:{type:String,default:"md",validator:t=>Object.keys(Zn).includes(t)},interactive:{type:Boolean,default:!0},id:{type:String,default:function(){return z()}},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:t=>{this.interactive&&this.$emit("click",t)},keyup:t=>{var e;((e=t.code)==null?void 0:e.toLowerCase())==="delete"?this.onClose():this.$emit("keyup",t)}}},closeButtonIconSize(){return pp[this.size]}},methods:{chipClasses(){return[this.$attrs["grouped-chip"]?"d-chip":"d-chip__label",Zn[this.size],this.labelClass]},chipCloseButtonClasses(){return["d-chip__close",up[this.size]]},onClose(){this.hideClose||this.$emit("close")}}};var hp=function(){var e=this,n=e._self._c;return n("span",{staticClass:"d-chip"},[n(e.interactive?"button":"span",e._g({tag:"component",class:e.chipClasses(),attrs:{id:e.id,type:e.interactive&&"button","data-qa":"dt-chip","aria-labelledby":e.ariaLabel?void 0:`${e.id}-content`,"aria-label":e.ariaLabel}},e.chipListeners),[e.$slots.icon?n("span",{staticClass:"d-chip__icon",attrs:{"data-qa":"dt-chip-icon"}},[e._t("icon")],2):e.$slots.avatar?n("span",{attrs:{"data-qa":"dt-chip-avatar"}},[e._t("avatar")],2):e._e(),e.$slots.default?n("span",{class:["d-truncate","d-chip__text",e.contentClass],attrs:{id:`${e.id}-content`,"data-qa":"dt-chip-label"}},[e._t("default")],2):e._e()]),e.hideClose?e._e():n("dt-button",e._b({class:e.chipCloseButtonClasses(),attrs:{"data-qa":"dt-chip-close","aria-label":e.closeButtonProps.ariaLabel},on:{click:function(a){return e.$emit("close")}},scopedSlots:e._u([{key:"icon",fn:function(){return[n("dt-icon",{attrs:{name:"close",size:e.closeButtonIconSize}})]},proxy:!0}],null,!1,1192647893)},"dt-button",e.closeButtonProps,!1))],1)},mp=[],gp=h.normalizeComponent(fp,hp,mp,!1,null,null,null,null);const Ca=gp.exports,Xn={xs:"d-select--xs",sm:"d-select--sm",md:"",lg:"d-select--lg",xl:"d-select--xl"},wi={error:"d-select__input--error",warning:"d-select__input--warning",success:"d-select__input--success"},_p=t=>!t.index||typeof t.index=="number",vp=t=>t.value?typeof t.value=="string"||typeof t.value=="number":!1,bp=t=>t.label?typeof t.label=="string":!1,yp=t=>t?t.every(e=>!(!_p(e)||!vp(e)||!bp(e))):!0,Sp={name:"DtSelectMenu",components:{DtValidationMessages:De},mixins:[fn],inheritAttrs:!1,props:{label:{type:String,default:""},description:{type:String,default:""},options:{type:Array,default:()=>[],validator:t=>yp(t)},size:{type:String,default:"md",validator:t=>Object.keys(Xn).includes(t)},labelClass:{type:[String,Array,Object],default:""},descriptionClass:{type:[String,Array,Object],default:""},selectClass:{type:[String,Array,Object],default:""},optionClass:{type:[String,Array,Object],default:""},labelChildProps:{type:Object,default:()=>({})},descriptionChildProps:{type:Object,default:()=>({})},optionChildProps:{type:Object,default:()=>({})},disabled:{type:Boolean,default:!1}},emits:["input","change"],data(){return{LABEL_SIZE_MODIFIERS:as,DESCRIPTION_SIZE_MODIFIERS:ns,SELECT_SIZE_MODIFIERS:Xn,SELECT_STATE_MODIFIERS:wi}},computed:{selectListeners(){return{...this.$listeners,input:()=>{},change:t=>this.emitValue(t.target.value,t)}},state(){return Ie(this.formattedMessages)},selectKey(){return z()},descriptionKey(){return`select-${this.selectKey}-description`},labelAriaDetails(){return this.$slots.description||this.description?this.descriptionKey:this.$attrs["aria-details"]}},mounted(){this.validateOptionsPresence()},beforeUpdate(){this.validateOptionsPresence()},methods:{emitValue(t,e){this.$emit("input",t,e),this.$emit("change",t,e)},getOptionKey(t){return`select-${this.selectKey}-option-${t}`},validateOptionsPresence(){var t;((t=this.options)==null?void 0:t.length)<1&&!this.$slots.default&&re.util.warn("Options are expected to be provided via prop or slot",this)}}};var Cp=function(){var e=this,n=e._self._c;return n("div",[n("label",[e.$slots.label||e.label?n("div",e._b({class:["d-label",e.LABEL_SIZE_MODIFIERS[e.size],e.labelClass],attrs:{"aria-details":e.labelAriaDetails,"data-qa":"dt-select-label"}},"div",e.labelChildProps,!1),[e._t("label",function(){return[e._v(e._s(e.label))]})],2):e._e(),e.$slots.description||e.description?n("div",e._b({class:["d-description",e.DESCRIPTION_SIZE_MODIFIERS[e.size],e.descriptionClass],attrs:{id:e.descriptionKey,"data-qa":"dt-select-description"}},"div",e.descriptionChildProps,!1),[e._t("description",function(){return[e._v(e._s(e.description))]})],2):e._e(),n("div",{class:["d-select",e.SELECT_SIZE_MODIFIERS[e.size],e.selectClass,{"d-select--disabled":e.disabled}],attrs:{"data-qa":"dt-select-wrapper"}},[n("select",e._g(e._b({class:["d-select__input",e.SELECT_STATE_MODIFIERS[e.state]],attrs:{"data-qa":"dt-select",disabled:e.disabled}},"select",e.$attrs,!1),e.selectListeners),[e._t("default",function(){return e._l(e.options,function(a){return n("option",e._b({key:e.getOptionKey(a.value),class:e.optionClass,domProps:{value:a.value}},"option",e.optionChildProps,!1),[e._v(" "+e._s(a.label)+" ")])})})],2)])]),n("dt-validation-messages",e._b({class:e.messagesClass,attrs:{"validation-messages":e.formattedMessages,"show-messages":e.showMessages,"data-qa":"dt-select-messages"}},"dt-validation-messages",e.messagesChildProps,!1))],1)},wp=[],Op=h.normalizeComponent(Sp,Cp,wp,!1,null,null,null,null);const Ep=Op.exports,Oi=["status","alert"],tr=6e3,xp={name:"DtToast",components:{DtNoticeIcon:ia,DtNoticeContent:sa,DtNoticeAction:oa},mixins:[Se],props:{titleId:{type:String,default(){return de.getUniqueString()}},contentId:{type:String,default(){return de.getUniqueString()}},title:{type:String,default:""},message:{type:String,default:""},role:{type:String,default:"status",validator:t=>Oi.includes(t)},kind:{type:String,default:"base",validator:t=>at.includes(t)},important:{type:Boolean,default:!1},show:{type:Boolean,default:!1},closeButtonProps:{type:Object,default:()=>({})},hideClose:{type:Boolean,default:!1},duration:{type:Number,default:null,validator:t=>t>=tr}},emits:["close","update:show"],data(){return{isShown:!1,minDuration:tr}},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:t=>{this.isShown=!1,this.$emit("update:show",!1),this.$emit("close",t)}}},shouldSetTimeout(){return!!this.duration&&this.duration>=this.minDuration}},watch:{show:{handler:function(t){this.isShown=t,t?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 Ip=function(){var e=this,n=e._self._c;return e.isShown?n("div",{class:["d-toast",e.kindClass,{"d-toast--important":e.important}],attrs:{"data-qa":"dt-toast","aria-hidden":(!e.isShown).toString()}},[n("div",{staticClass:"d-toast__dialog"},[n("dt-notice-icon",e._g({attrs:{kind:e.kind}},e.$listeners),[e._t("icon")],2),n("dt-notice-content",e._g({attrs:{"title-id":e.titleId,"content-id":e.contentId,title:e.title,role:e.role},scopedSlots:e._u([{key:"titleOverride",fn:function(){return[e._t("titleOverride")]},proxy:!0}],null,!0)},e.$listeners),[e._t("default",function(){return[e._v(" "+e._s(e.message)+" ")]})],2),n("dt-notice-action",e._g({attrs:{"hide-close":e.hideClose,"close-button-props":e.closeButtonProps,"visually-hidden-close":e.visuallyHiddenClose,"visually-hidden-close-label":e.visuallyHiddenCloseLabel}},e.noticeActionListeners),[e._t("action")],2)],1)]):e._e()},Tp=[],Dp=h.normalizeComponent(xp,Ip,Tp,!1,null,null,null,null);const Lp=Dp.exports,nr={sm:"d-toggle--small",md:""},kp=[!1,!0,"mixed"],Ap={name:"DtToggle",inheritAttrs:!1,model:{prop:"checked",event:"change"},props:{id:{type:String,default(){return de.getUniqueString()}},disabled:{type:Boolean,default:!1},checked:{type:[Boolean,String],default:!1,validator:t=>kp.includes(t)},toggleOnClick:{type:Boolean,default:!0},size:{type:String,default:"md",validator:t=>Object.keys(nr).includes(t)},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:t=>this.toggleCheckedValue()}},isIndeterminate(){return this.internalChecked==="mixed"},toggleRole(){return this.isIndeterminate?"checkbox":"switch"},toggleClasses(){return["d-toggle",nr[this.size],{"d-toggle--checked":this.internalChecked===!0,"d-toggle--disabled":this.disabled,"d-toggle--indeterminate":this.isIndeterminate}]}},watch:{checked(t){this.internalChecked=t}},mounted(){this.runValidations()},methods:{toggleCheckedValue(){this.$emit("change",!this.internalChecked),this.toggleOnClick&&(this.internalChecked=!this.internalChecked)},hasSlotLabel(){return!!this.$slots.default},runValidations(){this.validateInputLabels(this.hasSlotLabel(),this.$attrs["aria-label"])},validateInputLabels(t,e){!t&&!e&&re.util.warn("You must provide an aria-label when there is no label passed",this)}}};var $p=function(){var e=this,n=e._self._c;return n("div",{staticClass:"d-d-flex d-ai-center"},[e.$slots.default?n("label",e._b({class:e.labelClass,attrs:{for:e.id,"data-qa":"toggle-label"}},"label",e.labelChildProps,!1),[e._t("default")],2):e._e(),n("button",e._g(e._b({class:e.toggleClasses,attrs:{id:e.id,role:e.toggleRole,type:"button","aria-checked":e.internalChecked.toString(),disabled:e.disabled,"aria-disabled":e.disabled.toString()}},"button",e.$attrs,!1),e.inputListeners),[e.showIcon?n("span",{staticClass:"d-toggle__inner"}):e._e()])])},Rp=[],Pp=h.normalizeComponent(Ap,$p,Rp,!1,null,null,null,null);const Np=Pp.exports,Ei=[...pc],xi=300,Ii={hover:"d-tooltip--hover",show:"d-tooltip--show",inverted:"d-tooltip--inverted",hide:"d-tooltip--hide"},Ti=[...di],Mp=[!0,!1,"toggle"];const Bp={name:"DtTooltip",components:{DtLazyShow:rt},props:{id:{type:String,default(){return z()}},fallbackPlacements:{type:Array,default:()=>["auto"]},inverted:{type:Boolean,default:!1},offset:{type:Array,default:()=>[0,-4]},placement:{type:String,default:"top",validator(t){return Ei.includes(t)}},sticky:{type:[Boolean,String],default:!1,validator:t=>Ti.includes(t)},contentClass:{type:[String,Object,Array],default:""},message:{type:String,default:""},show:{type:Boolean,default:null},transition:{type:String,default:"fade"},delay:{type:Boolean,default:!0}},emits:["shown","update:show"],data(){return{TOOLTIP_KIND_MODIFIERS:Ii,tip:null,inTimer:null,isShown:!1,currentPlacement:this.placement}},computed:{tooltipListeners(){return{...this.$listeners,"after-leave":()=>{this.onLeaveTransitionComplete()},"after-enter":()=>{this.onEnterTransitionComplete()}}},tippyProps(){var t,e;return{offset:this.offset,appendTo:(e=(t=this.anchorEl)==null?void 0:t.getRootNode())==null?void 0:e.querySelector("body"),interactive:!1,trigger:"manual",placement:this.placement,sticky:this.sticky,popperOptions:ui({fallbackPlacements:this.fallbackPlacements,hasHideModifierEnabled:!0,onChangePlacement:this.onChangePlacement})}}},watch:{tippyProps:{handler:"setProps",deep:!0},show:{handler:function(t){t!==null&&(this.isShown=t)},immediate:!0},isShown(t){t?(this.setProps(),this.tip.show()):this.tip.hide()},sticky(t){this.tip.setProps({sticky:t})}},mounted(){this.tip=ci(er(this.$refs.anchor),this.initOptions()),this.isShown&&this.tip.show()},beforeDestroy(){var t;this.tip&&((t=this.tip)==null||t.destroy())},methods:{calculateAnchorZindex(){return this.$el.getRootNode().querySelector('.d-modal[aria-hidden="false"], .d-modal--transparent[aria-hidden="false"]')||this.$el.closest(".d-zi-drawer")?651:400},hasVisibleFocus(){return er(this.$refs.anchor).matches(":focus-visible")},onEnterAnchor(t){if(this.delay)this.inTimer=setTimeout((function(e){return this.triggerShow(e)}).bind(this,t),xi);else return this.triggerShow(t)},triggerShow(t){t.type==="focusin"?this.show===null&&this.hasVisibleFocus()&&(this.isShown=!0):this.show===null&&(this.isShown=!0)},onLeaveAnchor(){return clearTimeout(this.inTimer),this.triggerHide()},triggerHide(){this.show===null&&(this.isShown=!1)},onChangePlacement(t){this.currentPlacement=t},onLeaveTransitionComplete(){var t;(t=this.tip)==null||t.unmount(),this.$emit("shown",!1),this.show!==null&&this.$emit("update:show",!1)},onEnterTransitionComplete(){this.$emit("shown",!0),this.show!==null&&this.$emit("update:show",!0)},setProps(){this.tip&&this.tip.setProps&&this.tip.setProps({...this.tippyProps,zIndex:this.calculateAnchorZindex()})},onMount(){this.setProps()},initOptions(){return{contentElement:this.$refs.content.$el,allowHTML:!0,zIndex:this.calculateAnchorZindex(),onMount:this.onMount,...this.tippyProps}}}};var Fp=function(){var e=this,n=e._self._c;return n("div",{attrs:{"data-qa":"dt-tooltip-container"}},[n("span",{ref:"anchor",attrs:{"data-qa":"dt-tooltip-anchor"},on:{focusin:e.onEnterAnchor,focusout:e.onLeaveAnchor,mouseenter:e.onEnterAnchor,mouseleave:e.onLeaveAnchor,keydown:function(a){return!a.type.indexOf("key")&&e._k(a.keyCode,"esc",27,a.key,["Esc","Escape"])?null:e.onLeaveAnchor.apply(null,arguments)}}},[e._t("anchor")],2),n("dt-lazy-show",e._g({ref:"content",class:["d-tooltip",`d-tooltip__arrow-tippy--${e.currentPlacement}`,{[e.TOOLTIP_KIND_MODIFIERS.inverted]:e.inverted},e.contentClass],attrs:{id:e.id,show:e.isShown&&(!!e.message.trim()||!!e.$slots.default),role:"tooltip","aria-hidden":"false","data-qa":"dt-tooltip",appear:"",transition:e.transition}},e.tooltipListeners),[e._t("default",function(){return[e._v(" "+e._s(e.message)+" ")]})],2)],1)},Vp=[],jp=h.normalizeComponent(Bp,Fp,Vp,!1,null,null,null,null);const hn=jp.exports,Qe={"{win}":"layout-grid","{arrow-right}":"arrow-right","{arrow-left}":"arrow-left","{arrow-up}":"arrow-up","{arrow-down}":"arrow-down","{cmd}":"command"},Di={"{plus}":"plus"},qp=Object.keys(Qe),Hp={name:"DtKeyboardShortcut",components:{DtIcon:V},props:{inverted:{type:Boolean,default:!1},shortcut:{type:String,required:!0},screenReaderText:{type:String,default:null}},data(){return{SHORTCUTS_ICON_ALIASES:Qe,separator:/\+/gi}},computed:{icons(){return{...Qe,...Di}},shortcutWithSeparator(){return this.shortcut.replace(this.separator,"{plus}")},formattedShortcut(){return Object.keys(Qe).reduce((t,e)=>t.replace(new RegExp("{"+e+"}","gi"),Qe[e]),this.shortcutWithSeparator)},formattedShortcutSplit(){const t=Object.keys(this.icons).join("|"),e=new RegExp(`(${t})`,"gi");return this.formattedShortcut.split(e).filter(Boolean)}}};var zp=function(){var e=this,n=e._self._c;return n("kbd",{class:["d-d-inline-flex","d-ff-custom","d-ai-center","d-jc-center","d-box-border","d-px4","d-ba","d-bar4","d-fs-100",e.inverted?"d-bc-moderate-inverted":"d-bc-default"]},[e.screenReaderText?n("span",{staticClass:"sr-only"},[e._v(" "+e._s(e.screenReaderText)+" ")]):e._e(),e._l(e.formattedShortcutSplit,function(a,r){return[e.icons[a]?n("dt-icon",{key:`${r}-${a}`,class:[e.inverted?"d-fc-secondary-inverted":"d-fc-tertiary","d-mr2"],attrs:{name:e.icons[a],size:"100","aria-hidden":"true"}}):n("span",{key:`${r}-${a}`,class:[e.inverted?"d-fc-secondary-inverted":"d-fc-tertiary","d-mr2"],attrs:{"aria-hidden":"true"},domProps:{innerHTML:e._s(a)}})]})],2)},Wp=[],Up=h.normalizeComponent(Hp,zp,Wp,!1,null,null,null,null);const Kp=Up.exports,wa={LEFT:"left",RIGHT:"right"},Li=["sm","md","lg",null],Gp={name:"DtRootLayoutBody",props:{bodyClass:{type:[String,Array,Object],default:void 0},contentClass:{type:[String,Array,Object],default:void 0},sidebarClass:{type:[String,Array,Object],default:void 0},sidebarWidth:{type:String,default:void 0},fixed:{type:Boolean,default:void 0},sidebarPosition:{type:String,default:void 0}},computed:{bodyClasses(){return[this.bodyClass,{"d-root-layout__body--invert":this.sidebarPosition===wa.RIGHT}]}}};var Yp=function(){var e=this,n=e._self._c;return n("div",{ref:"root-layout-body",class:["d-root-layout__body",e.bodyClasses],attrs:{"data-qa":"dt-root-layout-body"}},[e.$slots.sidebar?n("aside",{ref:"root-layout-sidebar",class:["d-root-layout__sidebar",{"d-root-layout__sidebar--sticky":e.fixed},e.sidebarClass],style:{"flex-basis":e.sidebarWidth},attrs:{"data-qa":"dt-root-layout-sidebar"}},[e._t("sidebar")],2):e._e(),e.$slots.content?n("main",{ref:"root-layout-content",class:["d-root-layout__content",e.contentClass],attrs:{"data-qa":"dt-root-layout-content",tabindex:"0"}},[e._t("content")],2):e._e()])},Zp=[],Xp=h.normalizeComponent(Gp,Yp,Zp,!1,null,null,null,null);const Qp=Xp.exports,Jp={name:"DtRootLayout",components:{DtRootLayoutBody:Qp},props:{fixed:{type:Boolean,default:!0},headerClass:{type:[String,Array,Object],default:""},headerHeight:{type:String,default:"64px"},bodyClass:{type:[String,Array,Object],default:""},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:t=>Object.values(wa).includes(t)},footerClass:{type:[String,Array,Object],default:""},footerHeight:{type:String,default:"64px"},responsiveBreakpoint:{type:String,default:null,validator:t=>Li.includes(t)}},computed:{responsiveClass(){if(this.responsiveBreakpoint)return`d-root-layout__responsive--${this.responsiveBreakpoint}`}}};var ef=function(){var e=this,n=e._self._c;return n("div",{class:["root-layout d-root-layout",{"d-root-layout--fixed":e.fixed},e.responsiveClass],attrs:{"data-qa":"dt-root-layout"}},[e.$slots.header?n("header",{class:["d-root-layout__header",{"d-root-layout__header--sticky":e.headerSticky},e.headerClass],style:{height:e.headerHeight,"min-height":e.headerHeight},attrs:{"data-qa":"dt-root-layout-header"}},[e._t("header")],2):e._e(),n("dt-root-layout-body",{attrs:{"body-class":e.bodyClass,"content-class":e.contentClass,"sidebar-class":e.sidebarClass,"sidebar-width":e.sidebarWidth,"sidebar-position":e.sidebarPosition,"header-height":e.$slots.header?e.headerHeight:"0px","footer-height":e.$slots.footer?e.footerHeight:"0px",fixed:e.fixed},scopedSlots:e._u([e.$slots.sidebar?{key:"sidebar",fn:function(){return[e._t("sidebar")]},proxy:!0}:null,e.$slots.default?{key:"content",fn:function(){return[e._t("default")]},proxy:!0}:null],null,!0)}),e.$slots.footer?n("footer",{class:["d-root-layout__footer",e.footerClass],style:{height:e.footerHeight,"min-height":e.footerHeight},attrs:{"data-qa":"dt-root-layout-footer"}},[e._t("footer")],2):e._e()],1)},tf=[],nf=h.normalizeComponent(Jp,ef,tf,!1,null,null,null,null);const af=nf.exports,Ve={default:"column",column:"column",row:"row","row-reverse":"row-reverse","column-reverse":"column-reverse"},ki=["sm","md","lg","xl"],Oa=["0","100","200","300","400","500","600"];function ar(t){return t===Ve.default}function rr(t){if(Ct(t)==="string")return ar(t)?null:Ve[t];if(Ct(t)==="object"){const{default:e}=t;return ar(e)?null:Ve[e]}else return null}function Ct(t){return typeof t}function rf(t){return rr(t)?`d-stack--${Ve[rr(t)]}`:null}function sf(t){return Ct(t)==="object"?[...ki.map(e=>t[e]?`d-stack--${e}--${t[e]}`:null)]:null}function of(t){return Oa.includes(t)?`d-stack--gap-${t}`:null}function lf(t){if(Ct(t)==="string")return Object.keys(Ve).includes(t);if(Ct(t)==="object"){const{default:e}=t;return Object.keys(Ve).includes(e)}else return null}function df(t){return Oa.includes(t)}const cf={name:"DtStack",props:{direction:{type:[String,Object],default:"column",validator:t=>lf(t)},as:{type:String,default:"div"},gap:{type:String,default:"0",validator:t=>df(t)}},data(){return{DT_STACK_DIRECTION:Ve,DT_STACK_GAP:Oa,DT_STACK_RESPONSIVE_BREAKPOINTS:ki}},computed:{stackGap(){return of(this.gap)},defaultDirection(){return rf(this.direction)},stackResponsive(){return sf(this.direction)}}};var uf=function(){var e=this,n=e._self._c;return n(e.as,{tag:"component",class:["d-stack",e.defaultDirection,e.stackResponsive,e.stackGap]},[e._t("default")],2)},pf=[],ff=h.normalizeComponent(cf,uf,pf,!1,null,null,null,null);const hf=ff.exports;function wt(t){"@babel/helpers - typeof";return wt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},wt(t)}function K(t){if(t===null||t===!0||t===!1)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function M(t,e){if(e.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+e.length+" present")}function q(t){M(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||wt(t)==="object"&&e==="[object Date]"?new Date(t.getTime()):typeof t=="number"||e==="[object Number]"?new Date(t):((typeof t=="string"||e==="[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 Ai(t,e){M(2,arguments);var n=q(t),a=K(e);return isNaN(a)?new Date(NaN):(a&&n.setDate(n.getDate()+a),n)}function $i(t,e){M(2,arguments);var n=q(t),a=K(e);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 mf(t,e){M(2,arguments);var n=q(t).getTime(),a=K(e);return new Date(n+a)}var gf={};function At(){return gf}function _f(t,e){var n,a,r,i,s,l,d,p;M(1,arguments);var c=At(),f=K((n=(a=(r=(i=e==null?void 0:e.weekStartsOn)!==null&&i!==void 0?i:e==null||(s=e.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&r!==void 0?r:c.weekStartsOn)!==null&&a!==void 0?a:(d=c.locale)===null||d===void 0||(p=d.options)===null||p===void 0?void 0:p.weekStartsOn)!==null&&n!==void 0?n:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var _=q(t),m=_.getDay(),b=(m<f?7:0)+m-f;return _.setDate(_.getDate()-b),_.setHours(0,0,0,0),_}function vf(t){var e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),t.getTime()-e.getTime()}function bf(t){return M(1,arguments),t instanceof Date||wt(t)==="object"&&Object.prototype.toString.call(t)==="[object Date]"}function yf(t){if(M(1,arguments),!bf(t)&&typeof t!="number")return!1;var e=q(t);return!isNaN(Number(e))}function Sf(t,e){M(2,arguments);var n=K(e);return mf(t,-n)}var Cf=864e5;function wf(t){M(1,arguments);var e=q(t),n=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var a=e.getTime(),r=n-a;return Math.floor(r/Cf)+1}function rn(t){M(1,arguments);var e=1,n=q(t),a=n.getUTCDay(),r=(a<e?7:0)+a-e;return n.setUTCDate(n.getUTCDate()-r),n.setUTCHours(0,0,0,0),n}function Ri(t){M(1,arguments);var e=q(t),n=e.getUTCFullYear(),a=new Date(0);a.setUTCFullYear(n+1,0,4),a.setUTCHours(0,0,0,0);var r=rn(a),i=new Date(0);i.setUTCFullYear(n,0,4),i.setUTCHours(0,0,0,0);var s=rn(i);return e.getTime()>=r.getTime()?n+1:e.getTime()>=s.getTime()?n:n-1}function Of(t){M(1,arguments);var e=Ri(t),n=new Date(0);n.setUTCFullYear(e,0,4),n.setUTCHours(0,0,0,0);var a=rn(n);return a}var Ef=6048e5;function xf(t){M(1,arguments);var e=q(t),n=rn(e).getTime()-Of(e).getTime();return Math.round(n/Ef)+1}function sn(t,e){var n,a,r,i,s,l,d,p;M(1,arguments);var c=At(),f=K((n=(a=(r=(i=e==null?void 0:e.weekStartsOn)!==null&&i!==void 0?i:e==null||(s=e.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&r!==void 0?r:c.weekStartsOn)!==null&&a!==void 0?a:(d=c.locale)===null||d===void 0||(p=d.options)===null||p===void 0?void 0:p.weekStartsOn)!==null&&n!==void 0?n:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var _=q(t),m=_.getUTCDay(),b=(m<f?7:0)+m-f;return _.setUTCDate(_.getUTCDate()-b),_.setUTCHours(0,0,0,0),_}function Pi(t,e){var n,a,r,i,s,l,d,p;M(1,arguments);var c=q(t),f=c.getUTCFullYear(),_=At(),m=K((n=(a=(r=(i=e==null?void 0:e.firstWeekContainsDate)!==null&&i!==void 0?i:e==null||(s=e.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&r!==void 0?r:_.firstWeekContainsDate)!==null&&a!==void 0?a:(d=_.locale)===null||d===void 0||(p=d.options)===null||p===void 0?void 0:p.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(m>=1&&m<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var b=new Date(0);b.setUTCFullYear(f+1,0,m),b.setUTCHours(0,0,0,0);var C=sn(b,e),y=new Date(0);y.setUTCFullYear(f,0,m),y.setUTCHours(0,0,0,0);var w=sn(y,e);return c.getTime()>=C.getTime()?f+1:c.getTime()>=w.getTime()?f:f-1}function If(t,e){var n,a,r,i,s,l,d,p;M(1,arguments);var c=At(),f=K((n=(a=(r=(i=e==null?void 0:e.firstWeekContainsDate)!==null&&i!==void 0?i:e==null||(s=e.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&r!==void 0?r:c.firstWeekContainsDate)!==null&&a!==void 0?a:(d=c.locale)===null||d===void 0||(p=d.options)===null||p===void 0?void 0:p.firstWeekContainsDate)!==null&&n!==void 0?n:1),_=Pi(t,e),m=new Date(0);m.setUTCFullYear(_,0,f),m.setUTCHours(0,0,0,0);var b=sn(m,e);return b}var Tf=6048e5;function Df(t,e){M(1,arguments);var n=q(t),a=sn(n,e).getTime()-If(n,e).getTime();return Math.round(a/Tf)+1}function L(t,e){for(var n=t<0?"-":"",a=Math.abs(t).toString();a.length<e;)a="0"+a;return n+a}var Lf={y:function(e,n){var a=e.getUTCFullYear(),r=a>0?a:1-a;return L(n==="yy"?r%100:r,n.length)},M:function(e,n){var a=e.getUTCMonth();return n==="M"?String(a+1):L(a+1,2)},d:function(e,n){return L(e.getUTCDate(),n.length)},a:function(e,n){var a=e.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(e,n){return L(e.getUTCHours()%12||12,n.length)},H:function(e,n){return L(e.getUTCHours(),n.length)},m:function(e,n){return L(e.getUTCMinutes(),n.length)},s:function(e,n){return L(e.getUTCSeconds(),n.length)},S:function(e,n){var a=n.length,r=e.getUTCMilliseconds(),i=Math.floor(r*Math.pow(10,a-3));return L(i,n.length)}};const Ee=Lf;var Ge={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},kf={G:function(e,n,a){var r=e.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(e,n,a){if(n==="yo"){var r=e.getUTCFullYear(),i=r>0?r:1-r;return a.ordinalNumber(i,{unit:"year"})}return Ee.y(e,n)},Y:function(e,n,a,r){var i=Pi(e,r),s=i>0?i:1-i;if(n==="YY"){var l=s%100;return L(l,2)}return n==="Yo"?a.ordinalNumber(s,{unit:"year"}):L(s,n.length)},R:function(e,n){var a=Ri(e);return L(a,n.length)},u:function(e,n){var a=e.getUTCFullYear();return L(a,n.length)},Q:function(e,n,a){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(n){case"Q":return String(r);case"QQ":return L(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(e,n,a){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(n){case"q":return String(r);case"qq":return L(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(e,n,a){var r=e.getUTCMonth();switch(n){case"M":case"MM":return Ee.M(e,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(e,n,a){var r=e.getUTCMonth();switch(n){case"L":return String(r+1);case"LL":return L(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(e,n,a,r){var i=Df(e,r);return n==="wo"?a.ordinalNumber(i,{unit:"week"}):L(i,n.length)},I:function(e,n,a){var r=xf(e);return n==="Io"?a.ordinalNumber(r,{unit:"week"}):L(r,n.length)},d:function(e,n,a){return n==="do"?a.ordinalNumber(e.getUTCDate(),{unit:"date"}):Ee.d(e,n)},D:function(e,n,a){var r=wf(e);return n==="Do"?a.ordinalNumber(r,{unit:"dayOfYear"}):L(r,n.length)},E:function(e,n,a){var r=e.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(e,n,a,r){var i=e.getUTCDay(),s=(i-r.weekStartsOn+8)%7||7;switch(n){case"e":return String(s);case"ee":return L(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(e,n,a,r){var i=e.getUTCDay(),s=(i-r.weekStartsOn+8)%7||7;switch(n){case"c":return String(s);case"cc":return L(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(e,n,a){var r=e.getUTCDay(),i=r===0?7:r;switch(n){case"i":return String(i);case"ii":return L(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(e,n,a){var r=e.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(e,n,a){var r=e.getUTCHours(),i;switch(r===12?i=Ge.noon:r===0?i=Ge.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(e,n,a){var r=e.getUTCHours(),i;switch(r>=17?i=Ge.evening:r>=12?i=Ge.afternoon:r>=4?i=Ge.morning:i=Ge.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(e,n,a){if(n==="ho"){var r=e.getUTCHours()%12;return r===0&&(r=12),a.ordinalNumber(r,{unit:"hour"})}return Ee.h(e,n)},H:function(e,n,a){return n==="Ho"?a.ordinalNumber(e.getUTCHours(),{unit:"hour"}):Ee.H(e,n)},K:function(e,n,a){var r=e.getUTCHours()%12;return n==="Ko"?a.ordinalNumber(r,{unit:"hour"}):L(r,n.length)},k:function(e,n,a){var r=e.getUTCHours();return r===0&&(r=24),n==="ko"?a.ordinalNumber(r,{unit:"hour"}):L(r,n.length)},m:function(e,n,a){return n==="mo"?a.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):Ee.m(e,n)},s:function(e,n,a){return n==="so"?a.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):Ee.s(e,n)},S:function(e,n){return Ee.S(e,n)},X:function(e,n,a,r){var i=r._originalDate||e,s=i.getTimezoneOffset();if(s===0)return"Z";switch(n){case"X":return sr(s);case"XXXX":case"XX":return Ne(s);case"XXXXX":case"XXX":default:return Ne(s,":")}},x:function(e,n,a,r){var i=r._originalDate||e,s=i.getTimezoneOffset();switch(n){case"x":return sr(s);case"xxxx":case"xx":return Ne(s);case"xxxxx":case"xxx":default:return Ne(s,":")}},O:function(e,n,a,r){var i=r._originalDate||e,s=i.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+ir(s,":");case"OOOO":default:return"GMT"+Ne(s,":")}},z:function(e,n,a,r){var i=r._originalDate||e,s=i.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+ir(s,":");case"zzzz":default:return"GMT"+Ne(s,":")}},t:function(e,n,a,r){var i=r._originalDate||e,s=Math.floor(i.getTime()/1e3);return L(s,n.length)},T:function(e,n,a,r){var i=r._originalDate||e,s=i.getTime();return L(s,n.length)}};function ir(t,e){var n=t>0?"-":"+",a=Math.abs(t),r=Math.floor(a/60),i=a%60;if(i===0)return n+String(r);var s=e||"";return n+String(r)+s+L(i,2)}function sr(t,e){if(t%60===0){var n=t>0?"-":"+";return n+L(Math.abs(t)/60,2)}return Ne(t,e)}function Ne(t,e){var n=e||"",a=t>0?"-":"+",r=Math.abs(t),i=L(Math.floor(r/60),2),s=L(r%60,2);return a+i+n+s}const Af=kf;var or=function(e,n){switch(e){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"})}},Ni=function(e,n){switch(e){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"})}},$f=function(e,n){var a=e.match(/(P+)(p+)?/)||[],r=a[1],i=a[2];if(!i)return or(e,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}}",or(r,n)).replace("{{time}}",Ni(i,n))},Rf={p:Ni,P:$f};const Pf=Rf;var Nf=["D","DD"],Mf=["YY","YYYY"];function Bf(t){return Nf.indexOf(t)!==-1}function Ff(t){return Mf.indexOf(t)!==-1}function lr(t,e,n){if(t==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) 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 Vf={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"}},jf=function(e,n,a){var r,i=Vf[e];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 qf=jf;function kn(t){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=e.width?String(e.width):t.defaultWidth,a=t.formats[n]||t.formats[t.defaultWidth];return a}}var Hf={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},zf={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Wf={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Uf={date:kn({formats:Hf,defaultWidth:"full"}),time:kn({formats:zf,defaultWidth:"full"}),dateTime:kn({formats:Wf,defaultWidth:"full"})};const Kf=Uf;var Gf={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Yf=function(e,n,a,r){return Gf[e]};const Zf=Yf;function ut(t){return function(e,n){var a=n!=null&&n.context?String(n.context):"standalone",r;if(a==="formatting"&&t.formattingValues){var i=t.defaultFormattingWidth||t.defaultWidth,s=n!=null&&n.width?String(n.width):i;r=t.formattingValues[s]||t.formattingValues[i]}else{var l=t.defaultWidth,d=n!=null&&n.width?String(n.width):t.defaultWidth;r=t.values[d]||t.values[l]}var p=t.argumentCallback?t.argumentCallback(e):e;return r[p]}}var Xf={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Qf={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Jf={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"]},eh={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"]},th={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"}},nh={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"}},ah=function(e,n){var a=Number(e),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"},rh={ordinalNumber:ah,era:ut({values:Xf,defaultWidth:"wide"}),quarter:ut({values:Qf,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:ut({values:Jf,defaultWidth:"wide"}),day:ut({values:eh,defaultWidth:"wide"}),dayPeriod:ut({values:th,defaultWidth:"wide",formattingValues:nh,defaultFormattingWidth:"wide"})};const ih=rh;function pt(t){return function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=n.width,r=a&&t.matchPatterns[a]||t.matchPatterns[t.defaultMatchWidth],i=e.match(r);if(!i)return null;var s=i[0],l=a&&t.parsePatterns[a]||t.parsePatterns[t.defaultParseWidth],d=Array.isArray(l)?oh(l,function(f){return f.test(s)}):sh(l,function(f){return f.test(s)}),p;p=t.valueCallback?t.valueCallback(d):d,p=n.valueCallback?n.valueCallback(p):p;var c=e.slice(s.length);return{value:p,rest:c}}}function sh(t,e){for(var n in t)if(t.hasOwnProperty(n)&&e(t[n]))return n}function oh(t,e){for(var n=0;n<t.length;n++)if(e(t[n]))return n}function lh(t){return function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=e.match(t.matchPattern);if(!a)return null;var r=a[0],i=e.match(t.parsePattern);if(!i)return null;var s=t.valueCallback?t.valueCallback(i[0]):i[0];s=n.valueCallback?n.valueCallback(s):s;var l=e.slice(r.length);return{value:s,rest:l}}}var dh=/^(\d+)(th|st|nd|rd)?/i,ch=/\d+/i,uh={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},ph={any:[/^b/i,/^(a|c)/i]},fh={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},hh={any:[/1/i,/2/i,/3/i,/4/i]},mh={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},gh={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]},_h={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},vh={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]},bh={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},yh={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}},Sh={ordinalNumber:lh({matchPattern:dh,parsePattern:ch,valueCallback:function(e){return parseInt(e,10)}}),era:pt({matchPatterns:uh,defaultMatchWidth:"wide",parsePatterns:ph,defaultParseWidth:"any"}),quarter:pt({matchPatterns:fh,defaultMatchWidth:"wide",parsePatterns:hh,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:pt({matchPatterns:mh,defaultMatchWidth:"wide",parsePatterns:gh,defaultParseWidth:"any"}),day:pt({matchPatterns:_h,defaultMatchWidth:"wide",parsePatterns:vh,defaultParseWidth:"any"}),dayPeriod:pt({matchPatterns:bh,defaultMatchWidth:"any",parsePatterns:yh,defaultParseWidth:"any"})};const Ch=Sh;var wh={code:"en-US",formatDistance:qf,formatLong:Kf,formatRelative:Zf,localize:ih,match:Ch,options:{weekStartsOn:0,firstWeekContainsDate:1}};const Oh=wh;var Eh=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,xh=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Ih=/^'([^]*?)'?$/,Th=/''/g,Dh=/[a-zA-Z]/;function je(t,e,n){var a,r,i,s,l,d,p,c,f,_,m,b,C,y,w,T,k,o;M(2,arguments);var O=String(e),g=At(),E=(a=(r=n==null?void 0:n.locale)!==null&&r!==void 0?r:g.locale)!==null&&a!==void 0?a:Oh,P=K((i=(s=(l=(d=n==null?void 0:n.firstWeekContainsDate)!==null&&d!==void 0?d:n==null||(p=n.locale)===null||p===void 0||(c=p.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&l!==void 0?l:g.firstWeekContainsDate)!==null&&s!==void 0?s:(f=g.locale)===null||f===void 0||(_=f.options)===null||_===void 0?void 0:_.firstWeekContainsDate)!==null&&i!==void 0?i:1);if(!(P>=1&&P<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var N=K((m=(b=(C=(y=n==null?void 0:n.weekStartsOn)!==null&&y!==void 0?y:n==null||(w=n.locale)===null||w===void 0||(T=w.options)===null||T===void 0?void 0:T.weekStartsOn)!==null&&C!==void 0?C:g.weekStartsOn)!==null&&b!==void 0?b:(k=g.locale)===null||k===void 0||(o=k.options)===null||o===void 0?void 0:o.weekStartsOn)!==null&&m!==void 0?m:0);if(!(N>=0&&N<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!E.localize)throw new RangeError("locale must contain localize property");if(!E.formatLong)throw new RangeError("locale must contain formatLong property");var A=q(t);if(!yf(A))throw new RangeError("Invalid time value");var I=vf(A),$=Sf(A,I),B={firstWeekContainsDate:P,weekStartsOn:N,locale:E,_originalDate:A},Y=O.match(xh).map(function(R){var F=R[0];if(F==="p"||F==="P"){var j=Pf[F];return j(R,E.formatLong)}return R}).join("").match(Eh).map(function(R){if(R==="''")return"'";var F=R[0];if(F==="'")return Lh(R);var j=Af[F];if(j)return!(n!=null&&n.useAdditionalWeekYearTokens)&&Ff(R)&&lr(R,e,String(t)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&Bf(R)&&lr(R,e,String(t)),j($,R,E.localize,B);if(F.match(Dh))throw new RangeError("Format string contains an unescaped latin alphabet character `"+F+"`");return R}).join("");return Y}function Lh(t){var e=t.match(Ih);return e?e[1].replace(Th,"'"):t}function kh(t){M(1,arguments);var e=q(t),n=e.getDate();return n}function Ah(t){M(1,arguments);var e=q(t),n=e.getFullYear(),a=e.getMonth(),r=new Date(0);return r.setFullYear(n,a+1,0),r.setHours(0,0,0,0),r.getDate()}function Jt(t){M(1,arguments);var e=q(t),n=e.getMonth();return n}function Qn(t){return M(1,arguments),q(t).getFullYear()}function $h(t,e){M(2,arguments);var n=q(t),a=q(e);return n.getTime()===a.getTime()}function Rh(t,e){M(2,arguments);var n=q(t),a=K(e),r=n.getFullYear(),i=n.getDate(),s=new Date(0);s.setFullYear(r,a,15),s.setHours(0,0,0,0);var l=Ah(s);return n.setMonth(a,Math.min(i,l)),n}function Ph(t,e){if(M(2,arguments),wt(e)!=="object"||e===null)throw new RangeError("values parameter must be an object");var n=q(t);return isNaN(n.getTime())?new Date(NaN):(e.year!=null&&n.setFullYear(e.year),e.month!=null&&(n=Rh(n,e.month)),e.date!=null&&n.setDate(K(e.date)),e.hours!=null&&n.setHours(K(e.hours)),e.minutes!=null&&n.setMinutes(K(e.minutes)),e.seconds!=null&&n.setSeconds(K(e.seconds)),e.milliseconds!=null&&n.setMilliseconds(K(e.milliseconds)),n)}function Nh(t,e){M(2,arguments);var n=K(e);return $i(t,-n)}const Mi=0,Bi="MMMM",Jn=t=>t?new Date(t):new Date,Mh=(t,e,n)=>{const a=Jn(JSON.parse(JSON.stringify(t))),r=[];for(let i=0;i<7;i++){const s=Ai(a,i),l=Jt(s)!==e;r.push({text:s.getDate(),value:s,currentMonth:!l,isFirstDayOfMonth:s.getDate()===1&&!l,selected:n?s.getDate()===n&&!l:!1})}return r},Bh=(t,e)=>!t||!e?!1:$h(t,e),Fh=(t,e,n)=>{const a=[],r=Jn(new Date(e,t)),i=Jn(new Date(e,t+1,0)),l=_f(r,{weekStartsOn:Mi}),d=p=>{const c=Mh(p,t,n);if(a.push({days:c}),!a[a.length-1].days.some(f=>Bh(f.value,i))){const f=Ai(p,7);d(f)}};return d(l),a},Vh=(t,e)=>{const n=[1,2,3,4,5,6,7].map(i=>new Intl.DateTimeFormat(t,{weekday:"short",timeZone:"UTC"}).format(new Date(`2017-01-0${i}T00:00:00+00:00`)).slice(0,2)),a=n.slice(0,e),r=n.slice(e+1,n.length);return[n[e]].concat(...r).concat(...a)},jh=(t,e)=>je(new Date(2e3,t,1),e),qh={name:"DtDatepickerMonthYearPicker",components:{DtIcon:V},props:{prevMonthLabel:{type:String,required:!0},nextMonthLabel:{type:String,required:!0},prevYearLabel:{type:String,required:!0},nextYearLabel:{type:String,required:!0},changeToLabel:{type:String,required:!0},selectedDate:{type:Date,required:!0}},emits:["calendar-days","focus-day","close-datepicker"],data(){return{selectMonth:Jt(this.selectedDate),selectYear:Qn(this.selectedDate),highlightedDay:null,focusPicker:0,focusRefs:[]}},computed:{calendarDays(){return Fh(this.selectMonth,this.selectYear,this.highlightedDay)},formattedMonth(){return(t,e)=>jh(t,e)},MONTH_FORMAT(){return Bi}},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.focusMonthYearPicker()},methods:{setDayRef(t){this.focusRefs.includes(t)||this.focusRefs.push(t)},focusMonthYearPicker(){this.focusRefs[0].focus()},handleKeyDown(t){switch(t.key){case"ArrowLeft":t.preventDefault(),this.focusPicker===0?(this.focusPicker=3,this.focusRefs[this.focusPicker].focus()):(this.focusPicker--,this.focusRefs[this.focusPicker].focus());break;case"ArrowRight":t.preventDefault(),this.focusPicker===3?(this.focusPicker=0,this.focusRefs[this.focusPicker].focus()):(this.focusPicker++,this.focusRefs[this.focusPicker].focus());break;case"ArrowDown":t.preventDefault(),this.$emit("focus-day");break;case"Tab":this.$emit("focus-day");break;case"Escape":this.$emit("close-datepicker");break}},highlightDay(){const t=Qn(this.selectedDate),e=Jt(this.selectedDate);t!==this.selectYear||e!==this.selectMonth?this.highlightedDay=null:this.highlightedDay=kh(this.selectedDate)},changeMonth(t){const e=Ph(this.selectedDate,{month:this.selectMonth,year:this.selectYear}),n=++t?$i(e,1):Nh(e,1);this.selectMonth=Jt(n)},changeYear(t){this.selectYear=this.selectYear+t}}};var Hh=function(){var e=this,n=e._self._c;return n("div",{staticClass:"d-datepicker__month-year-picker"},[n("div",[n("button",{ref:a=>{a&&e.setDayRef(a)},attrs:{id:"prevYearButton",type:"button","aria-label":`${e.changeToLabel} ${e.prevYearLabel} ${e.selectYear-1}`},on:{click:function(a){return e.changeYear(-1)},keydown:function(a){return e.handleKeyDown(a)}}},[n("dt-icon",{attrs:{name:"chevrons-left",size:"400"}})],1),n("button",{ref:a=>{a&&e.setDayRef(a)},attrs:{id:"prevMonthButton",type:"button","aria-label":`${e.changeToLabel} ${e.prevMonthLabel} ${e.formattedMonth(e.selectMonth-1,e.MONTH_FORMAT)}`},on:{click:function(a){return e.changeMonth(-1)},keydown:function(a){return e.handleKeyDown(a)}}},[n("dt-icon",{attrs:{name:"chevron-left",size:"300"}})],1)]),n("div",[n("p",[e._v(" "+e._s(e.formattedMonth(e.selectMonth,e.MONTH_FORMAT))+" "+e._s(e.selectYear)+" ")])]),n("div",[n("button",{ref:a=>{a&&e.setDayRef(a)},attrs:{id:"nextMonthButton",type:"button","aria-label":`${e.changeToLabel} ${e.nextMonthLabel} ${e.formattedMonth(e.selectMonth+1,e.MONTH_FORMAT)}`},on:{click:function(a){return e.changeMonth(1)},keydown:function(a){return e.handleKeyDown(a)}}},[n("dt-icon",{attrs:{name:"chevron-right",size:"300"}})],1),n("button",{ref:a=>{a&&e.setDayRef(a)},attrs:{id:"nextYearButton",type:"button","aria-label":`${e.changeToLabel} ${e.nextYearLabel} ${e.selectYear+1}`},on:{click:function(a){return e.changeYear(1)},keydown:function(a){return e.handleKeyDown(a)}}},[n("dt-icon",{attrs:{name:"chevrons-right",size:"300"}})],1)])])},zh=[],Wh=h.normalizeComponent(qh,Hh,zh,!1,null,null,null,null);const Uh=Wh.exports,Kh={name:"DtDatepickerCalendar",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 Vh(this.locale,Mi)}},watch:{calendarDays(){this.focusDay=0,this.daysRef=[],this.selectedDay=null}},methods:{dayAriaLabel(t){return`${this.selectDayLabel} ${t.text} ${je(t.value,Bi)} ${Qn(t.value)}`},setDayRef(t,e){!this.daysRef.includes(t)&&e&&this.daysRef.push(t)},handleKeyDown(t){switch(t.key){case"ArrowUp":t.preventDefault(),this.focusDay-=7;try{this.daysRef[this.focusDay].focus()}catch{this.$emit("focus-month-year-picker")}break;case"ArrowDown":t.preventDefault(),this.focusDay+=7;try{this.daysRef[this.focusDay].focus()}catch{this.$emit("focus-month-year-picker")}break;case"ArrowLeft":t.preventDefault(),this.focusDay>0&&(this.focusDay-=1,this.daysRef[this.focusDay].focus());break;case"ArrowRight":t.preventDefault(),this.focusDay<this.daysRef.length-1&&(this.focusDay+=1,this.daysRef[this.focusDay].focus());break;case"Tab":t.preventDefault(),this.$emit("focus-month-year-picker");break;case"Escape":this.$emit("close-datepicker");break}},focusFirstDay(){this.focusDay=0,this.daysRef[this.focusDay].focus()},selectDay(t){t.currentMonth&&(this.selectedDay=t.text,this.$emit("select-date",t.value))}}};var Gh=function(){var e=this,n=e._self._c;return n("div",{staticClass:"d-datepicker__calendar"},[n("div",{staticClass:"d-datepicker__week-day"},e._l(e.weekDays,function(a){return n("div",{key:a},[n("p",[e._v(" "+e._s(a)+" ")])])}),0),e._l(e.calendarDays,function(a,r){return n("div",{key:r,staticClass:"d-datepicker__week"},e._l(a.days,function(i,s){return n("button",{key:r+s,ref:l=>{l&&e.setDayRef(l,i.currentMonth)},refInFor:!0,staticClass:"d-datepicker__day",class:{"d-datepicker__day--disabled":!i.currentMonth,"d-datepicker__day--selected":e.selectedDay?i.text===e.selectedDay&&i.currentMonth:i.selected},attrs:{type:"button","aria-label":e.dayAriaLabel(i)},on:{click:function(l){return e.selectDay(i)},keydown:function(l){return e.handleKeyDown(l)}}},[e._v(" "+e._s(i.text)+" ")])}),0)})],2)},Yh=[],Zh=h.normalizeComponent(Kh,Gh,Yh,!1,null,null,null,null);const Xh=Zh.exports,Qh={name:"DtDatepicker",components:{MonthYearPicker:Uh,Calendar:Xh},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(t){this.calendarDays=t}}};var Jh=function(){var e=this,n=e._self._c;return n("div",{staticClass:"d-datepicker"},[n("div",{staticClass:"d-datepicker--header"},[n("month-year-picker",{ref:"monthYearPicker",attrs:{"prev-month-label":e.prevMonthLabel,"next-month-label":e.nextMonthLabel,"prev-year-label":e.prevYearLabel,"next-year-label":e.nextYearLabel,"change-to-label":e.changeToLabel,"selected-date":e.selectedDate},on:{"calendar-days":e.updateCalendarDays,"focus-day":function(a){return e.$refs.calendar.focusFirstDay()},"close-datepicker":function(a){return e.$emit("close-datepicker")}}})],1),n("div",{staticClass:"d-datepicker--body"},[n("calendar",{ref:"calendar",attrs:{locale:e.locale,"calendar-days":e.calendarDays,"select-day-label":e.selectDayLabel},on:{"select-date":function(a){return e.$emit("selected-date",a)},"focus-month-year-picker":function(a){return e.$refs.monthYearPicker.focusMonthYearPicker()},"close-datepicker":function(a){return e.$emit("close-datepicker")}}})],1)])},em=[],tm=h.normalizeComponent(Qh,Jh,em,!1,null,null,null,null);const nm=tm.exports;function am(t){return je(t,"EEEE, MMMM d, yyyy")}function rm(t){return je(t,"MMMM d, yyyy")}function im(t,e=!0){return je(t,e?"EEE, MMM d, yyyy":"MMM d, yyyy")}function sm(t,e=!1){return je(t,e?"MMM d":"MMMM d")}function om(t){return je(t,"MM/dd/yy")}const lm={name:"DtRecipeComboboxWithPopover",components:{DtCombobox:Vr,DtPopover:pn,ComboboxLoadingList:Mr,ComboboxEmptyList:Br},mixins:[Se],props:{label:{type:String,required:!0},labelVisible:{type:Boolean,default:!0},size:{type:String,default:null,validator:t=>Object.values(Fr).includes(t)},description:{type:String,default:""},showList:{type:Boolean,default:null},listId:{type:String,default(){return z()}},listClass:{type:[String,Array,Object],default:""},onBeginningOfList:{type:Function,default:null},onEndOfList:{type:Function,default:null},maxHeight:{type:String,default:""},maxWidth:{type:String,default:""},padding:{type:String,default:"small",validator:t=>Object.keys(gt).some(e=>e===t)},contentWidth:{type:String,default:null,validator:t=>ga.includes(t)},openWithArrowKeys:{type:Boolean,default:!1},popoverOffset:{type:Array,default:()=>[0,4]},popoverSticky:{type:[Boolean,String],default:!1},hasSuggestionList:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},emptyList:{type:Boolean,default:!1},emptyStateMessage:{type:String,default:""},appendTo:{type:[HTMLElement,String],default:"body",validator:t=>un.includes(t)||t instanceof HTMLElement},transition:{type:String,default:"fade"}},emits:["select","escape","highlight","opened"],data(){return{DROPDOWN_PADDING_CLASSES:gt,isListShown:!1,isInputFocused:!1,isListFocused:!1,externalAnchor:z()}},computed:{comboboxListeners(){return{...this.$listeners,select:this.onSelect,escape:this.onEscape,highlight:this.onHighlight}}},watch:{showList:{handler:function(t){t!==null&&(this.isListShown=t)},immediate:!0},isListShown(t){t?window.addEventListener("mousedown",this.onFocusOut):window.removeEventListener("mousedown",this.onFocusOut),this.onOpened(t)}},methods:{handleDisplayList(t){!this.hasSuggestionList&&t&&this.showComboboxList(),!this.hasSuggestionList&&!t&&this.closeComboboxList()},showComboboxList(){this.showList==null&&(this.isListShown=!0)},closeComboboxList(){this.showList==null&&(this.isListShown=!1)},onSelect(t){this.loading||(this.$emit("select",t),this.hasSuggestionList||this.closeComboboxList())},onEscape(){this.$emit("escape"),this.closeComboboxList()},onHighlight(t){this.loading||this.$emit("highlight",t)},onOpened(t){this.$emit("opened",t)},onFocusIn(t){var e;this.hasSuggestionList&&t&&((e=this.$refs.input)==null?void 0:e.querySelector("input"))===t.target&&this.showComboboxList()},onFocusOut(t){var a,r,i;const e=(r=(a=this.$refs.popover)==null?void 0:a.tip)==null?void 0:r.popper,n=this.$refs.input;(i=t.composedPath())!=null&&i.some(s=>[e,n].includes(s))||this.closeComboboxList()},openOnArrowKeyPress(){this.showList!==null||this.isListShown||!this.openWithArrowKeys||this.showComboboxList()}}};var dm=function(){var e=this,n=e._self._c;return n("dt-combobox",e._g({ref:"combobox",attrs:{loading:e.loading,label:e.label,"label-visible":e.labelVisible,size:e.size,description:e.description,"empty-list":e.emptyList,"empty-state-message":e.emptyStateMessage,"show-list":e.isListShown,"on-beginning-of-list":e.onBeginningOfList,"on-end-of-list":e.onEndOfList,"list-rendered-outside":!0,"list-id":e.listId,"data-qa":"dt-combobox"},scopedSlots:e._u([{key:"input",fn:function({inputProps:a}){return[n("div",{ref:"input",attrs:{id:e.externalAnchor},on:{focusin:e.onFocusIn,keydown:[function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"up",38,r.key,["Up","ArrowUp"])?null:e.openOnArrowKeyPress(r)},function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"down",40,r.key,["Down","ArrowDown"])?null:e.openOnArrowKeyPress(r)}]}},[e._t("input",null,{inputProps:a,onInput:e.handleDisplayList})],2)]}},{key:"list",fn:function({opened:a,listProps:r,clearHighlightIndex:i}){return[n("dt-popover",{ref:"popover",attrs:{open:e.isListShown,"hide-on-click":!1,"max-height":e.maxHeight,"max-width":e.maxWidth,offset:e.popoverOffset,sticky:e.popoverSticky,placement:"bottom-start","initial-focus-element":"none",padding:"none",role:"listbox","external-anchor":e.externalAnchor,"content-width":e.contentWidth,"content-tabindex":null,modal:!1,"auto-focus":!1,"append-to":e.appendTo,transition:e.transition,"visually-hidden-close-label":e.visuallyHiddenCloseLabel,"visually-hidden-close":e.visuallyHiddenClose},on:{"update:open":function(s){e.isListShown=s},opened:function(s){return a(s,arguments[1])}},scopedSlots:e._u([{key:"headerContent",fn:function(){return[e.$slots.header?n("div",{ref:"header"},[e._t("header")],2):e._e()]},proxy:!0},{key:"content",fn:function(){return[n("div",{ref:"listWrapper",class:[e.DROPDOWN_PADDING_CLASSES[e.padding],e.listClass],on:{mouseleave:i,focusout:i}},[e.loading?n("combobox-loading-list",e._b({},"combobox-loading-list",r,!1)):e.emptyList&&e.emptyStateMessage?n("combobox-empty-list",e._b({attrs:{message:e.emptyStateMessage}},"combobox-empty-list",r,!1)):e._t("list",null,{listProps:r})],2)]},proxy:!0},{key:"footerContent",fn:function(){return[e.$slots.footer?n("div",{ref:"footer"},[e._t("footer")],2):e._e()]},proxy:!0}],null,!0)})]}}],null,!0)},e.comboboxListeners))},cm=[],um=h.normalizeComponent(lm,dm,cm,!1,null,null,null,null);const Fi=um.exports,Vi={EXTRA_SMALL:"xs",SMALL:"sm",DEFAULT:"md"},pm={xs:"xs",sm:"xs",md:"sm"},fm={xs:1.4,sm:.4,md:.2},hm={name:"DtRecipeComboboxMultiSelect",components:{DtRecipeComboboxWithPopover:Fi,DtInput:_i,DtChip:Ca,DtValidationMessages:De},mixins:[Se],props:{label:{type:String,required:!0},labelVisible:{type:Boolean,default:!0},description:{type:String,default:""},placeholder:{type:String,default:"Select one or start typing"},inputMessages:{type:Array,default:()=>[],validator:t=>kt(t)},showInputMessages:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},loadingMessage:{type:String,default:"loading..."},showList:{type:Boolean,default:null},listMaxHeight:{type:String,default:"300px"},selectedItems:{type:Array,default:function(){return[]}},maxSelected:{type:Number,default:0},maxSelectedMessage:{type:Array,default:function(){return[]}},hasSuggestionList:{type:Boolean,default:!0},size:{type:String,default:"md",validator:t=>Object.values(Vi).includes(t)},appendTo:{type:[HTMLElement,String],default:"body",validator:t=>un.includes(t)||t instanceof HTMLElement},transition:{type:String,default:"fade"}},emits:["input","select","remove","max-selected"],data(){return{value:"",popoverOffset:[0,4],showValidationMessages:!1,initialInputPadding:{},resizeWindowObserver:null,originalInputSize:null,CHIP_SIZES:pm}},computed:{inputPlaceHolder(){var t;return((t=this.selectedItems)==null?void 0:t.length)>0?"":this.placeholder},chipListeners(){return{...this.$listeners,keyup:t=>{this.onChipKeyup(t),this.$emit("keyup",t)}}},inputListeners(){return{...this.$listeners,input:t=>{this.$emit("input",t),this.hasSuggestionList&&this.showComboboxList()},keyup:t=>{this.onInputKeyup(t),this.$emit("keyup",t)},click:t=>{this.hasSuggestionList&&this.showComboboxList()}}}},watch:{selectedItems:{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 t=this.getInput();this.revertInputPadding(t),this.originalInputSize=t.getBoundingClientRect().height,this.setInputPadding(),this.setChipsTopPosition()}}},mounted(){this.resizeWindowObserver=new ResizeObserver(async()=>{this.setChipsTopPosition(),this.setInputPadding()}),this.resizeWindowObserver.observe(document.body),this.initSelectedItems()},beforeDestroy(){var t;(t=this.resizeWindowObserver)==null||t.unobserve(document.body)},methods:{async initSelectedItems(){await this.$nextTick(),this.setInputPadding(),this.setChipsTopPosition(),this.setInputMinWidth(),this.checkMaxSelected()},onChipRemove(t){var e;this.$emit("remove",t),(e=this.$refs.input)==null||e.focus()},onComboboxSelect(t){this.value="",this.$emit("select",t)},showComboboxList(){var t;this.showList==null&&((t=this.$refs.comboboxWithPopover)==null||t.showComboboxList())},closeComboboxList(){var t;this.showList==null&&((t=this.$refs.comboboxWithPopover)==null||t.closeComboboxList())},getChipButtons(){return this.$refs.chips&&this.$refs.chips.map(t=>t.$el.querySelector("button"))},getChips(){return this.$refs.chips&&this.$refs.chips.map(t=>t.$el)},getLastChipButton(){return this.$refs.chips&&this.getChipButtons()[this.getChipButtons().length-1]},getLastChip(){return this.$refs.chips&&this.getChips()[this.getChips().length-1]},getFirstChip(){return this.$refs.chips&&this.getChips()[0]},getInput(){var t;return(t=this.$refs.input)==null?void 0:t.$refs.input},onChipKeyup(t){var n;const e=(n=t.code)==null?void 0:n.toLowerCase();e==="arrowleft"?this.navigateBetweenChips(t.target,!0):e==="arrowright"&&(t.target.id===this.getLastChipButton().id?this.moveFromChipToInput():this.navigateBetweenChips(t.target,!1))},onInputKeyup(t){var n;const e=(n=t.code)==null?void 0:n.toLowerCase();this.selectedItems.length>0&&t.target.selectionStart===0&&(e==="backspace"||e==="arrowleft")&&this.moveFromInputToChip()},moveFromInputToChip(){var t;this.getLastChipButton().focus(),(t=this.$refs.input)==null||t.blur(),this.closeComboboxList()},moveFromChipToInput(){var t;this.getLastChipButton().blur(),(t=this.$refs.input)==null||t.focus(),this.showComboboxList()},navigateBetweenChips(t,e){var r;const n=this.getChipButtons().indexOf(t),a=e?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 t=this.getInput();if(!t)return;const e=this.$refs.inputSlotWrapper,n=t.getBoundingClientRect().top-e.getBoundingClientRect().top,a=this.$refs.chipsWrapper;a.style.top=n-fm[this.size]+"px"},setInputPadding(){const t=this.getLastChip(),e=this.getInput(),n=this.$refs.chipsWrapper;if(!e||(this.revertInputPadding(e),this.popoverOffset=[0,4],!t))return;const a=t.offsetLeft+this.getFullWidth(t);e.style.paddingLeft=a+"px";const r=n.getBoundingClientRect().height-4,i=t.offsetTop+2;r>this.originalInputSize&&(e.style.paddingTop=`${i}px`)},revertInputPadding(t){t.style.paddingLeft="",t.style.paddingTop="",t.style.paddingBottom=""},getFullWidth(t){const e=window.getComputedStyle(t);return t.offsetWidth+parseInt(e.marginLeft)+parseInt(e.marginRight)},setInputMinWidth(){const t=this.getFirstChip(),e=this.getInput();e&&(t?e.style.minWidth=this.getFullWidth(t)+4+"px":e.style.minWidth="")},checkMaxSelected(){this.maxSelected!==0&&(this.selectedItems.length>this.maxSelected?(this.showValidationMessages=!0,this.$emit("max-selected")):this.showValidationMessages=!1)}}};var mm=function(){var e=this,n=e._self._c;return n("dt-recipe-combobox-with-popover",{ref:"comboboxWithPopover",attrs:{label:e.label,"show-list":e.showList,"max-height":e.listMaxHeight,"popover-offset":e.popoverOffset,"has-suggestion-list":e.hasSuggestionList,"visually-hidden-close-label":e.visuallyHiddenCloseLabel,"visually-hidden-close":e.visuallyHiddenClose,"content-width":"anchor","append-to":e.appendTo,transition:e.transition},on:{select:e.onComboboxSelect},scopedSlots:e._u([{key:"input",fn:function({onInput:a}){return[n("span",{ref:"inputSlotWrapper",staticClass:"d-ps-relative d-d-block"},[n("span",{ref:"chipsWrapper",staticClass:"d-ps-absolute d-mx2 d-pl1"},e._l(e.selectedItems,function(r){return n("dt-chip",e._g({key:r.id,ref:"chips",refInFor:!0,class:["d-mt4","d-mx2","d-zi-base1"],attrs:{"label-class":["d-chip__label"],"close-button-props":{ariaLabel:"close"},size:e.CHIP_SIZES[e.size]},on:{keyup:function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"backspace",void 0,i.key,void 0)?null:e.onChipRemove(r)},close:function(i){return e.onChipRemove(r)}}},e.chipListeners),[e._v(" "+e._s(r)+" ")])}),1),n("dt-input",e._g({ref:"input",staticClass:"d-fl-grow1",attrs:{"aria-label":e.label,label:e.labelVisible?e.label:"",description:e.description,placeholder:e.inputPlaceHolder,"show-messages":e.showInputMessages,messages:e.inputMessages,size:e.size},on:{input:a},model:{value:e.value,callback:function(r){e.value=r},expression:"value"}},e.inputListeners)),n("dt-validation-messages",{attrs:{"validation-messages":e.maxSelectedMessage,"show-messages":e.showValidationMessages}})],1)]}},{key:"header",fn:function(){return[e.$slots.header?n("div",{ref:"header"},[e._t("header")],2):e._e()]},proxy:!0},{key:"list",fn:function(){return[n("div",{ref:"list",on:{mousedown:function(a){a.preventDefault()}}},[e.loading?n("div",{staticClass:"d-ta-center d-py16"},[e._v(" "+e._s(e.loadingMessage)+" ")]):e._t("list")],2)]},proxy:!0},{key:"footer",fn:function(){return[e.$slots.footer?n("div",{ref:"footer"},[e._t("footer")],2):e._e()]},proxy:!0}],null,!0)})},gm=[],_m=h.normalizeComponent(hm,mm,gm,!1,null,null,null,null);const vm=_m.exports,Ea=["sm","md","lg","xl"];const bm={name:"DtRecipeCallbarButton",components:{DtButton:G,DtTooltip:hn},inheritAttrs:!0,props:{id:{type:String,default(){return de.getUniqueString()}},active:{type:Boolean,default:!1},danger:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},circle:{type:Boolean,default:!1},ariaLabel:{type:String,default:null,validator:t=>t||globalThis.$slots.default},buttonClass:{type:[String,Array,Object],default:""},textClass:{type:[String,Array,Object],default:""},buttonWidthSize:{type:String,default:"xl",validator:t=>Ea.includes(t)},importance:{type:String,default:""}},emits:["click"],computed:{callbarButtonClass(){return[this.buttonClass,"dt-recipe-callbar-button","d-px0",{"dt-recipe-callbar-button--circle":this.circle,"dt-recipe-callbar-button--active":this.active,"dt-recipe-callbar-button--danger":this.danger,"d-btn--disabled d-bgc-transparent":this.disabled,"d-fc-primary":!this.disabled}]},callbarButtonTextClass(){return["d-fs-100 lg:d-d-none md:d-d-none sm:d-d-none",this.textClass]},buttonWidth(){switch(this.buttonWidthSize){case"sm":return"4.5rem";case"md":return"6rem";default:return"8.4rem"}},buttonImportance(){return this.importance?this.importance:this.circle?"outlined":"clear"}}};var ym=function(){var e=this,n=e._self._c;return n("dt-tooltip",{attrs:{id:e.id,offset:[0,8]},scopedSlots:e._u([{key:"anchor",fn:function(){return[n("span",{class:{"d-c-not-allowed":e.disabled}},[n("dt-button",e._g({class:e.callbarButtonClass,attrs:{importance:e.buttonImportance,kind:"muted","icon-position":"top","aria-disabled":e.disabled,"aria-label":e.ariaLabel,"label-class":e.callbarButtonTextClass,width:e.buttonWidth}},e.$listeners),[e._t("default"),e._t("icon",null,{slot:"icon"})],2)],1)]},proxy:!0}],null,!0)},[e._t("tooltip")],2)},Sm=[],Cm=h.normalizeComponent(bm,ym,Sm,!1,null,null,null,null);const ji=Cm.exports;const wm={name:"DtRecipeCallbarButtonWithPopover",components:{DtRecipeCallbarButton:ji,DtPopover:pn,DtButton:G,DtIcon:V},inheritAttrs:!1,props:{id:{type:String,default(){return de.getUniqueString()}},ariaLabel:{type:String,default:null,validator:t=>t||globalThis.$slots.default},arrowButtonLabel:{type:String,required:!0,validator:t=>!!t},placement:{type:String,default:"top"},initialFocusElement:{type:String,default:"first"},showCloseButton:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},forceShowArrow:{type:Boolean,default:!1},active:{type:Boolean,default:!1},danger:{type:Boolean,default:!1},buttonClass:{type:[String,Array,Object],default:""},textClass:{type:[String,Array,Object],default:""},buttonWidthSize:{type:String,default:"xl",validator:t=>Ea.includes(t)},contentClass:{type:[String,Array,Object],default:""},openPopover:{type:Boolean,default:!1}},emits:["arrow-click","click","opened"],data(){return{open:!1}},computed:{showArrowButton(){return this.forceShowArrow||!this.disabled},isCompactMode(){return this.buttonWidthSize==="sm"||this.buttonWidthSize==="md"},showPopover(){return!this.openPopover||this.open?(this.syncOpenState(),!1):this.toggleOpen()}},methods:{arrowClick(t){return this.$emit("arrow-click",t),this.toggleOpen()},toggleOpen(){return this.open=!this.open},syncOpenState(){this.open=this.openPopover},buttonClick(t){this.$listeners.click?this.$emit("click",t):this.arrowClick(t)},onModalIsOpened(t){this.open=t,this.$emit("opened",t)}}};var Om=function(){var e=this,n=e._self._c;return n("div",{staticClass:"d-d-flex d-ai-center"},[n("dt-recipe-callbar-button",{staticClass:"dt-recipe--callbar-button-with-popover--main-button",attrs:{"aria-label":e.ariaLabel,disabled:e.disabled,active:e.active,danger:e.danger,"button-class":e.buttonClass,"button-width-size":e.buttonWidthSize,"text-class":e.textClass},on:{click:e.buttonClick}},[e._t("icon",null,{slot:"icon"}),e._t("tooltip",null,{slot:"tooltip"}),e._t("default")],2),e.showArrowButton?n("dt-popover",e._b({staticClass:"dt-recipe--callbar-button-with-popover--popover-wrapper",attrs:{id:e.id,modal:!1,open:e.open,placement:e.placement,"initial-focus-element":e.initialFocusElement,"show-close-button":e.showCloseButton,offset:[0,16],padding:"none","dialog-class":["dt-recipe--callbar-button-with-popover--popover",e.contentClass],"header-class":"d-d-flex d-ai-center d-fw-normal d-px12","open-popover":e.showPopover},on:{opened:e.onModalIsOpened},scopedSlots:e._u([{key:"anchor",fn:function(){return[n("dt-button",{class:["dt-recipe--callbar-button-with-popover--arrow",{"d-mln24":!e.isCompactMode}],attrs:{circle:"",importance:"clear",size:"lg",width:"2rem","aria-label":e.arrowButtonLabel,active:e.open},on:{click:e.arrowClick},scopedSlots:e._u([{key:"icon",fn:function(){return[n("dt-icon",{staticClass:"d-fc-black-800",attrs:{name:"chevron-up",size:"200"}})]},proxy:!0}],null,!1,1368564783)})]},proxy:!0}],null,!1,1466460799)},"dt-popover",e.$attrs,!1),[e._t("content",null,{slot:"content"}),e._t("headerContent",null,{slot:"headerContent"}),e._t("footerContent",null,{slot:"footerContent"})],2):e._e()],1)},Em=[],xm=h.normalizeComponent(wm,Om,Em,!1,null,null,null,null);const Im=xm.exports;const Tm={name:"DtRecipeContactInfo",components:{DtAvatar:Et,DtListItem:It},props:{id:{type:String,default(){return de.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 Dm=function(){var e=this,n=e._self._c;return n("dt-list-item",{staticClass:"dt-contact-info",attrs:{id:e.id,role:e.role,"element-type":"div","data-qa":"contact-info"},scopedSlots:e._u([{key:"left",fn:function(){return[e.showAvatar?n("button",{staticClass:"d-ps-relative d-bgc-transparent d-baw0 d-c-pointer",attrs:{"data-qa":"contact-info-left","aria-labelledby":e.avatarAriaLabel},on:{click:e.avatarClick}},[e.avatarList?n("span",{staticClass:"dt-contact-info--avatars d-mrn4 d-d-flex d-fd-row"},e._l(e.avatarList,function(a,r){return n("dt-avatar",{key:r,attrs:{size:e.avatarSize,seed:a.seed,"full-name":a.fullName,"image-src":a.src,"icon-name":e.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:e.avatarSize,"full-name":e.avatarFullName,"image-src":e.avatarSrc,"icon-name":e.avatarIcon,seed:e.avatarSeed,presence:e.presence}})],1):e._e()]},proxy:!0},{key:"default",fn:function(){return[n("div",{attrs:{"data-qa":"contact-info-header"}},[e._t("header")],2)]},proxy:!0},{key:"subtitle",fn:function(){return[n("div",{attrs:{"data-qa":"contact-info-subtitle"}},[e._t("subtitle")],2)]},proxy:!0},{key:"bottom",fn:function(){return[n("div",{attrs:{"data-qa":"contact-info-bottom"}},[e._t("bottom")],2)]},proxy:!0},{key:"right",fn:function(){return[n("div",{attrs:{"data-qa":"contact-info-right"}},[e._t("right")],2)]},proxy:!0}],null,!0)})},Lm=[],km=h.normalizeComponent(Tm,Dm,Lm,!1,null,"3d0f9d2e",null,null);const Am=km.exports,qi=["green300","green100","red200","red100","gold100","gold200","black100","white"];const $m={name:"DtRecipeTopBannerInfo",props:{colorCode:{type:String,default:"green300",validator:function(t){return qi.includes(t)}}},computed:{bannerInfoClass(){return[{green300:"d-bgc-success",green100:"d-bgc-success",red200:"d-bgc-critical",red100:"d-bgc-critical",gold200:"d-bgc-warning",gold100:"d-bgc-warning",black100:"d-bgc-info",white:"d-bgc-primary"}[this.colorCode]]}}};var Rm=function(){var e=this,n=e._self._c;return n("div",{staticClass:"d-fs-100 d-d-flex d-top-banner-info d-jc-space-between d-ai-center d-fc-primary",class:e.bannerInfoClass,attrs:{"data-qa":"banner-info"}},[n("div",{staticClass:"d-top-banner-info__left"},[e._t("left")],2),n("div",{staticClass:"d-top-banner-info__middle d-my4"},[e._t("default")],2),n("div",{staticClass:"d-top-banner-info__right d-ta-right"},[e._t("right")],2)])},Pm=[],Nm=h.normalizeComponent($m,Rm,Pm,!1,null,null,null,null);const Mm=Nm.exports,mn="promptmenu",gn="promptcollect",_n="promptplay",vn="gotoexpert",$t="goto",bn="branch",yn="transfer",Sn="hangup",Hi={[mn]:"keypad",[gn]:"dialer",[_n]:"volume-2",[vn]:"expert-node",[bn]:"branch",[$t]:"call-merge",[yn]:"transfer",[Sn]:"phone-hang-up"},Bm={[mn]:"Menu",[gn]:"Collect",[_n]:"Play",[vn]:"Expert",[bn]:"Branch",[$t]:"Go-to",[yn]:"Transfer",[Sn]:"Hangup"},xe={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"}},Fm={[mn]:xe.PROMPT,[gn]:xe.PROMPT,[_n]:xe.PROMPT,[vn]:xe.LOGIC,[bn]:xe.LOGIC,[$t]:xe.LOGIC,[yn]:xe.TERMINAL,[Sn]:xe.TERMINAL};const Vm={name:"DtRecipeIvrNode",components:{DtCard:Nr,DtButton:G,DtDropdown:gi,DtIcon:V},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 Hi[this.nodeType]},headerColor(){const{normal:t,selected:e}=Fm[this.nodeType];return this.isSelected?e:t},isGotoNode(){return this.nodeType===$t}},methods:{openMenu(){this.isOpen=!0}}};var jm=function(){var e=this,n=e._self._c;return n("div",e._g({staticClass:"d-d-flex d-fd-column d-ai-center d-c-pointer ivr_node__width"},e.$listeners),[e.dtmfKey?n("div",{staticClass:"ivr-connector d-w24 d-h24 d-bar-circle d-mbn12 d-fc-neutral-white d-fs-200",class:{"d-mbn16":e.isSelected},attrs:{"data-qa":"dt-top-connector-dtmf"}},[e._v(" "+e._s(e.dtmfKey)+" ")]):e._e(),e.$slots.connector?e._t("connector"):e._e(),!e.dtmfKey&&!e.$slots.connector?n("div",{staticClass:"ivr-connector d-w8 d-h8 d-bar-circle d-mbn4",class:{"d-mbn8":e.isSelected},attrs:{"data-qa":"dt-top-connector"}}):e._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":e.isSelected},e.headerColor],"header-class":["d-mtn1","d-bt","d-btw4","d-p0",e.headerColor,{"d-btr4":!e.isSelected}]},scopedSlots:e._u([{key:"header",fn:function(){return[n("div",{staticClass:"d-d-flex d-ai-center"},[n("dt-button",{attrs:{"aria-label":e.nodeType,importance:"clear",kind:"muted","data-qa":"dt-ivr-node-icon"},scopedSlots:e._u([{key:"icon",fn:function(){return[n("dt-icon",{class:["",{ivr_node__goto_icon:e.isGotoNode}],attrs:{name:e.nodeIcon,size:"200"}})]},proxy:!0}])}),n("p",{staticClass:"d-fs-200 d-fw-bold",attrs:{"data-qa":"ivr-node-label"}},[e._v(" "+e._s(e.nodeLabel)+" ")])],1),n("dt-dropdown",{attrs:{placement:"bottom",open:e.isOpen},on:{"update:open":function(a){e.isOpen=a}},scopedSlots:e._u([{key:"anchor",fn:function(){return[n("dt-button",{attrs:{importance:"clear",kind:"muted","aria-label":e.menuButtonAriaLabel},on:{click:function(a){return a.stopPropagation(),a.preventDefault(),e.openMenu.apply(null,arguments)}},scopedSlots:e._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:"d-w164"},[e._t("menuItems",null,{close:a})],2)]}}],null,!0)})]},proxy:!0},{key:"content",fn:function(){return[e._t("content")]},proxy:!0}],null,!0)})],2)},qm=[],Hm=h.normalizeComponent(Vm,jm,qm,!1,null,null,null,null);const zm=Hm.exports;const Wm={name:"DtRecipeGroupedChip",components:{DtChip:Ca},computed:{}};var Um=function(){var e=this,n=e._self._c;return n("div",{staticClass:"d-d-inline-flex d-ws-nowrap d-bgc-unset",attrs:{"data-qa":"grouped-chip"}},[n("dt-chip",{staticClass:"d-blr-pill d-bgc-moderate-opaque d-wmx84 dt-chip-content",attrs:{"hide-close":!0,interactive:!1,"content-class":"d-fs100",size:"xs","grouped-chip":!0},scopedSlots:e._u([e.$slots.leftIcon?{key:"icon",fn:function(){return[e.$slots.leftIcon?n("div",{attrs:{"data-qa":"left-grouped-chip-icon"}},[e._t("leftIcon")],2):e._e()]},proxy:!0}:null,{key:"default",fn:function(){return[e.$slots.leftContent?n("div",{attrs:{"data-qa":"left-grouped-chip-content"}},[e._t("leftContent")],2):e._e()]},proxy:!0}],null,!0)}),n("dt-chip",{staticClass:"d-brr-pill d-bgc-purple-200 d-wmx84 dt-chip-content",attrs:{"hide-close":!0,interactive:!1,"content-class":"d-fs100",size:"xs","grouped-chip":!0},scopedSlots:e._u([{key:"icon",fn:function(){return[e.$slots.rightIcon?n("div",{attrs:{"data-qa":"right-grouped-chip-icon"}},[e._t("rightIcon")],2):e._e()]},proxy:!0},{key:"default",fn:function(){return[e.$slots.rightContent?n("div",{attrs:{"data-qa":"right-grouped-chip-content"}},[e._t("rightContent")],2):e._e()]},proxy:!0}],null,!0)})],1)},Km=[],Gm=h.normalizeComponent(Wm,Um,Km,!1,null,null,null,null);const Ym=Gm.exports;const Zm={name:"DtRecipeSettingsMenuButton",components:{DtButton:G,DtIcon:V},props:{updateAvailable:{type:Boolean,default:!1},ariaLabel:{type:String,required:!0}},emits:["click"]};var Xm=function(){var e=this,n=e._self._c;return e.updateAvailable?n("dt-button",e._g({staticClass:"settings-menu-button-update",attrs:{importance:"outlined",size:"xs","icon-position":"right","aria-label":e.ariaLabel},scopedSlots:e._u([{key:"icon",fn:function(){return[n("dt-icon",{attrs:{name:"more-vertical",size:"300"}})]},proxy:!0}],null,!1,3418040308)},e.$listeners),[e._t("default")],2):n("dt-button",e._g({staticClass:"settings-menu-button",attrs:{importance:"clear",kind:"inverted","aria-label":e.ariaLabel},scopedSlots:e._u([{key:"icon",fn:function(){return[n("dt-icon",{attrs:{name:"more-vertical",size:"300"}})]},proxy:!0}])},e.$listeners))},Qm=[],Jm=h.normalizeComponent(Zm,Xm,Qm,!1,null,"4ee1371d",null,null);const eg=Jm.exports,H={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"},zi={[H.INBOX]:"inbox",[H.CONTACTS]:"contacts",[H.CHANNELS]:"hash",[H.THREADS]:"thread",[H.LOCKED_CHANNEL]:"lock",[H.QUICK_START]:"sparkle",[H.COACHING_GROUP]:"users",[H.COACHING_CENTER]:"external-link","locked channel unread":"lock-filled","channel unread":"hash-bold",[H.ASSIGNED]:"at-sign",[H.DIGITAL]:"message"},Ot={"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"},Wi="If type is contact center, color must be oneof the following:"+Object.keys(Ot).join(", "),Ui=["300","200"],tg={};var ng=function(){var e=this,n=e._self._c;return n("svg",{staticClass:"d-svg d-svg--native d-svg__dialbot",attrs:{"aria-hidden":"true",focusable:"false","aria-label":"Dialbot",width:"358",height:"358",viewBox:"0 0 358 358",fill:"none"}},[n("circle",{attrs:{cx:"179",cy:"179",r:"179",fill:"url(#paint0_linear_4_44)"}}),n("path",{attrs:{d:"M179 268.5v-11.933V268.5Zm86.517 0v11.933h19.308l-8.635-17.27-10.673 5.337Zm-16.73-33.459-9.3-7.478-4.797 5.967 3.424 6.848 10.673-5.337ZM179 101.433c42.839 0 77.567 34.728 77.567 77.567h23.866c0-56.02-45.413-101.433-101.433-101.433v23.866ZM101.433 179c0-42.839 34.728-77.567 77.567-77.567V77.567C122.98 77.567 77.567 122.98 77.567 179h23.866ZM179 256.567c-42.839 0-77.567-34.728-77.567-77.567H77.567c0 56.02 45.413 101.433 101.433 101.433v-23.866Zm86.517 0H179v23.866h86.517v-23.866Zm-27.403-16.189 16.729 33.459 21.347-10.674-16.729-33.459-21.347 10.674ZM256.567 179c0 18.396-6.39 35.268-17.08 48.563l18.6 14.955c13.975-17.38 22.346-39.488 22.346-63.518h-23.866Z",fill:"white"}}),n("path",{attrs:{d:"M226.733 202.867c-6.527 5.701-13.942 10.11-22.243 13.226-8.302 3.116-16.781 4.674-25.437 4.674-8.727 0-17.241-1.558-25.543-4.674-8.301-3.116-15.716-7.525-22.243-13.226v-11.934c4.399 2.652 9.365 4.939 14.9 6.862a112.163 112.163 0 0 0 16.815 4.674c5.748 1.127 11.105 1.69 16.071 1.69 5.038 0 10.395-.563 16.071-1.69a112.209 112.209 0 0 0 16.816-4.674c5.534-1.923 10.465-4.21 14.793-6.862v11.934Z",fill:"white"}}),n("defs",[n("linearGradient",{attrs:{id:"paint0_linear_4_44",x1:"0",y1:"0",x2:"358",y2:"358",gradientUnits:"userSpaceOnUse"}},[n("stop",{attrs:{"stop-color":"#7C52FF"}}),n("stop",{attrs:{offset:"1","stop-color":"#F9008E"}})],1)],1)])},ag=[],rg=h.normalizeComponent(tg,ng,ag,!1,null,null,null,null);const ig=rg.exports,sg={name:"DtRecipeLeftbarGeneralRowIcon",components:{DtIcon:V,IconDialbot:ig},props:{type:{type:String,default:null},color:{type:String,default:null},iconSize:{type:String,default:"300"}},computed:{isIconType(){return![H.DIALBOT,H.CONTACT_CENTER].includes(this.type)},isContactCenterType(){return this.type===H.CONTACT_CENTER},isDialbotType(){return this.type===H.DIALBOT},getIconName(){return zi[this.type]},contactCenterIconClasses(){return["dt-leftbar-row__icon-cc",Ot[this.color]]},dialbotClasses(){return["d-w24","d-h24","d-d-flex","d-ai-center","d-jc-center"]}}};var og=function(){var e=this,n=e._self._c;return e.isIconType?n("dt-icon",{attrs:{name:e.getIconName,size:e.iconSize}}):e.isContactCenterType?n("div",{class:e.contactCenterIconClasses}):e.isDialbotType?n("div",{class:e.dialbotClasses,attrs:{"data-qa":"general-row-dialbot"}},[n("icon-dialbot",{staticClass:"d-svg--size24"})],1):e._e()},lg=[],dg=h.normalizeComponent(sg,og,lg,!1,null,null,null,null);const cg=dg.exports;const ug={name:"DtRecipeGeneralRow",components:{DtEmojiTextWrapper:h.DtEmojiTextWrapper,DtBadge:ra,DtIcon:V,DtButton:G,DtTooltip:hn,DtRecipeLeftbarGeneralRowIcon:cg},inheritAttrs:!1,props:{type:{type:String,default:"inbox",validator:t=>Object.values(H).includes(t)},ariaLabel:{type:String,default:""},description:{type:String,required:!0},color:{type:String,default:null,validator:t=>Object.keys(Ot).includes(t)},hasUnreads:{type:Boolean,default:!1},unreadCount:{type:String,default:null},unreadCountTooltip:{type:String,default:""},selected:{type:Boolean,default:!1},muted:{type:Boolean,default:!1},activeVoiceChat:{type:Boolean,default:!1},dndText:{type:String,default:""},dndTextTooltip:{type:String,default:""},hasCallButton:{type:Boolean,default:!1},callButtonTooltip:{type:String,default:""},isTyping:{type:Boolean,default:!1},iconSize:{type:String,default:"300",validator:t=>Ui.includes(t)}},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 H.CHANNELS:if(this.hasUnreads)return"channel unread";break;case H.LOCKED_CHANNEL:if(this.hasUnreads)return"locked channel unread";break}return this.type},getAriaLabel(){return this.ariaLabel?this.ariaLabel:on([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===H.CONTACT_CENTER&&!Object.keys(Ot).includes(this.color)&&console.error(Wi)},adjustLabelWidth(){var r,i,s,l,d,p;const t=((i=(r=this.$el)==null?void 0:r.querySelector(".dt-leftbar-row__primary"))==null?void 0:i.clientWidth)||0,e=((l=(s=this.$el)==null?void 0:s.querySelector(".dt-leftbar-row__omega"))==null?void 0:l.clientWidth)||0,n=((p=(d=this.$el)==null?void 0:d.querySelector(".dt-leftbar-row__alpha"))==null?void 0:p.clientWidth)||0,a=16;this.labelWidth=t-(e+n+a)+"px"}}};var pg=function(){var e=this,n=e._self._c;return n("div",{class:e.leftbarGeneralRowClasses,attrs:{"data-qa":"dt-leftbar-row"}},[n("a",e._g(e._b({staticClass:"dt-leftbar-row__primary",attrs:{"data-qa":"data-qa"in e.$attrs?e.$attrs["data-qa"]:"dt-leftbar-row-link","aria-label":e.getAriaLabel,title:e.description,href:"href"in e.$attrs?e.$attrs.href:"javascript:void(0)"}},"a",e.$attrs,!1),e.$listeners),[n("div",{staticClass:"dt-leftbar-row__alpha"},[e.isTyping?n("div",{staticClass:"dt-leftbar-row__is-typing"},[n("span"),n("span"),n("span")]):e._t("left",function(){return[n("dt-recipe-leftbar-general-row-icon",{attrs:{type:e.getIcon,color:e.color,"icon-size":e.iconSize,"data-qa":"dt-leftbar-row-icon"}})]})],2),n("div",{staticClass:"dt-leftbar-row__label",style:`flex-basis: ${e.labelWidth}`},[e._t("label",function(){return[n("dt-emoji-text-wrapper",{staticClass:"dt-leftbar-row__description",attrs:{"data-qa":"dt-leftbar-row-description",size:"200"}},[e._v(" "+e._s(e.description)+" ")])]})],2)]),e.hasActions?n("div",{staticClass:"dt-leftbar-row__omega"},[e.dndText?n("dt-tooltip",{attrs:{placement:"top",message:e.dndTextTooltip},scopedSlots:e._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"}},[e._v(" "+e._s(e.dndText)+" ")])]},proxy:!0}],null,!1,490758222)}):e._e(),e.activeVoiceChat?n("div",{staticClass:"dt-leftbar-row__active-voice"},[n("dt-icon",{attrs:{size:"300",name:"activity"}})],1):e.showUnreadCount?n("dt-tooltip",{attrs:{message:e.unreadCountTooltip,placement:"top"},scopedSlots:e._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"}},[e._v(" "+e._s(e.unreadCount)+" ")])]},proxy:!0}],null,!1,462525554)}):e._e(),e.hasCallButton?n("div",{staticClass:"dt-leftbar-row__action",attrs:{"data-qa":"dt-leftbar-row-action"}},[n("dt-tooltip",{attrs:{message:e.callButtonTooltip,placement:"top"},scopedSlots:e._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":e.callButtonTooltip},on:{focus:function(a){e.actionFocused=!0},blur:function(a){e.actionFocused=!1},click:function(a){return a.stopPropagation(),e.$emit("call",a)}},scopedSlots:e._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):e._e()],1):e._e()])},fg=[],hg=h.normalizeComponent(ug,pg,fg,!1,null,"be4d0e3f",null,null);const xa=hg.exports,mg={name:"DtRecipeGroupRow",components:{DtIcon:V,DtRecipeGeneralRow:xa},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 on([this.groupCountText,this.names])}}};var gg=function(){var e=this,n=e._self._c;return n("dt-recipe-general-row",e._g(e._b({attrs:{description:e.names,"aria-label":e.ariaLabel,"unread-count":e.unreadCount,"has-unreads":e.hasUnreads,"unread-count-tooltip":e.unreadCountTooltip,selected:e.selected,"is-typing":e.isTyping},scopedSlots:e._u([{key:"left",fn:function(){return[n("dt-icon",{attrs:{name:"users",size:"300"}})]},proxy:!0}])},"dt-recipe-general-row",e.$attrs,!1),e.$listeners))},_g=[],vg=h.normalizeComponent(mg,gg,_g,!1,null,null,null,null);const bg=vg.exports,yg={name:"DtRecipeContactRow",components:{DtAvatar:Et,DtRecipeGeneralRow:xa,DtEmojiTextWrapper:h.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 on([this.name,this.presenceText,this.userStatus])},iconName(){return this.noInitials?"user":null}}};var Sg=function(){var e=this,n=e._self._c;return n("dt-recipe-general-row",e._g(e._b({attrs:{"unread-count":e.unreadCount,description:e.contactDescription,"has-unreads":e.hasUnreads,selected:e.selected,"has-call-button":e.hasCallButton,muted:e.muted,"is-typing":e.isTyping,"call-button-tooltip":e.callButtonTooltip,"unread-count-tooltip":e.unreadCountTooltip},scopedSlots:e._u([{key:"left",fn:function(){return[n("dt-avatar",{attrs:{"full-name":e.name,"image-src":e.avatarSrc,"image-alt":e.avatarAlt,"icon-name":e.iconName,"icon-size":"200",size:"sm",seed:e.avatarSeed,presence:e.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"}},[e._v(" "+e._s(e.name)+" ")]),n("div",{staticClass:"dt-leftbar-row__status"},[e.presenceText?n("span",{class:["dt-leftbar-row__meta-context",e.presenceColorClass],attrs:{"data-qa":"dt-leftbar-row-presence-text"}},[e._v(" "+e._s(e.presenceText)+" ")]):e._e(),e.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"}},[e._v(" "+e._s(e.userStatus)+" ")]):e._e()],1)]},proxy:!0}])},"dt-recipe-general-row",e.$attrs,!1),e.$listeners))},Cg=[],wg=h.normalizeComponent(yg,Sg,Cg,!1,null,null,null,null);const Og=wg.exports,Ki=["up","down"],Gi=["mentions","messages"];const Eg={name:"DtRecipeUnreadPill",components:{DtIcon:V},props:{kind:{type:String,required:!0,validator:t=>Gi.includes(t)},direction:{type:String,required:!0,validator:t=>Ki.includes(t)}},emits:["click"]};var xg=function(){var e=this,n=e._self._c;return n("button",e._g({class:["dt-leftbar-unread-pill",`dt-leftbar-unread-pill--${e.kind}`],attrs:{type:"button","data-qa":"dt-leftbar-unread-pill"}},e.$listeners),[n("dt-icon",{attrs:{name:`arrow-${e.direction}`,size:"300"}}),n("span",{attrs:{"data-qa":"dt-leftbar-unread-pill__label"}},[e._t("default")],2)],1)},Ig=[],Tg=h.normalizeComponent(Eg,xg,Ig,!1,null,null,null,null);const Dg=Tg.exports,An={NORMAL:"",SEARCHED:"d-bgc-warning-subtle",ERROR:"d-bgc-critical-subtle"},$n="NORMAL";const Lg={name:"DtRecipeFeedItemRow",components:{DtAvatar:Et,DtLazyShow:rt,DtListItem:It},inheritAttrs:!1,props:{showHeader:{type:Boolean,default:!1},avatarImageUrl:{type:String,default:""},displayName:{type:String,default:""},time:{type:String,default:""},shortTime:{type:String,default:""},isActive:{type:Boolean,default:!1},state:{type:String,default:$n,validator:t=>Object.keys(An).includes(t)}},emits:["hover","focus"],data(){return{faded:!1}},computed:{avatarSeed(){return(this.displayName||"").split(" ").map(n=>n.charAt(0)).join("").slice(0,2).toUpperCase()},feedListeners(){return{...this.$listeners,mouseenter:()=>this.setHover(!0),mouseleave:()=>this.setHover(!1),focusin:()=>this.setFocus(!0),focusout:()=>this.setFocus(!1)}},listItemClasses(){return["d-w100p","d-box-border","d-ps-relative","d-px8",{"d-bgc-secondary-opaque":this.isActive&&this.state===$n},An[this.state],"dt-feed-item-row","d-t","d-tp-bgc"]}},methods:{setFocus(t){this.$emit("focus",t)},setHover(t){this.$emit("hover",t)},fade(){this.state===$n||this.faded===!0||(this.$refs.FeedItemRef.$el.classList.remove(An[this.state]),this.faded=!0)}}};var kg=function(){var e=this,n=e._self._c;return n("dt-list-item",e._g(e._b({ref:"FeedItemRef",class:e.listItemClasses,attrs:{"navigation-type":"none","data-qa":"dt-feed-item-row"},scopedSlots:e._u([{key:"left",fn:function(){return[e.showHeader?n("dt-avatar",{attrs:{"full-name":e.displayName,"image-src":e.avatarImageUrl,seed:e.avatarSeed}}):e._e(),e.showHeader?e._e():n("div",{directives:[{name:"show",rawName:"v-show",value:e.isActive,expression:"isActive"}],staticClass:"d-fs-100 d-fw-normal d-ws-nowrap d-lh-100 d-fc-tertiary d-mb6",attrs:{"data-qa":"dt-feed-item-row--left-time"}},[e._v(" "+e._s(e.shortTime)+" ")])]},proxy:!0},{key:"bottom",fn:function(){return[n("div",{staticClass:"d-d-flex d-fw-wrap",attrs:{"data-qa":"dt-feed-item-row--reactions"}},[e._t("reactions")],2),e._t("threading")]},proxy:!0},{key:"right",fn:function(){return[n("div",{directives:[{name:"show",rawName:"v-show",value:e.isActive,expression:"isActive"}],staticClass:"d-ps-absolute d-tn16 d-r12",attrs:{"data-qa":"dt-feed-item-row--menu"}},[n("dt-lazy-show",{attrs:{appear:!0,transition:"fade",show:e.isActive}},[e._t("menu")],2)],1)]},proxy:!0}],null,!0)},"dt-list-item",e.$attrs,!1),e.feedListeners),[n("article",[e.showHeader?n("div",{staticClass:"d-d-flex d-ai-center",attrs:{"data-qa":"dt-feed-item-row--header"}},[n("p",{staticClass:"d-fs-200 d-lh-300 d-fw-bold d-to-ellipsis d-of-hidden d-ws-nowrap"},[e._v(" "+e._s(e.displayName)+" ")]),n("time",{staticClass:"d-fs-100 d-mt2 d-lh-300 d-fc-tertiary d-fw-normal d-ml4 d-fl-shrink0"},[e._v(" "+e._s(e.time)+" ")])]):e._e(),n("span",{staticClass:"content-text-wrapper-class",attrs:{"data-qa":"dt-feed-item-row--content"}},[e._t("default")],2)])])},Ag=[],$g=h.normalizeComponent(Lg,kg,Ag,!1,null,"5f107637",null,null);const Rg=$g.exports,ea={default:"dt-feed-item-pill--border-default",ai:"dt-feed-item-pill--border-ai",critical:"dt-feed-item-pill--border-critical"};const Pg={name:"DtRecipeFeedItemPill",components:{DtItemLayout:tn,DtIcon:V,DtCollapsible:jr},props:{iconName:{type:String,default:()=>""},title:{type:String,default:()=>""},wrapperClass:{type:[String,Array,Object],default:""},buttonClass:{type:[String,Array,Object],default:""},ariaLabel:{type:String,required:!0},toggleable:{type:Boolean,default:()=>!0},borderColor:{type:String,default:"default",validator:t=>Object.keys(ea).includes(t)}},data(){return{hover:!1,expanded:!1}},computed:{computedIcon(){return this.toggleable&&this.hover?this.expanded?"chevron-down":"chevron-right":this.iconName},toggleableClass(){return this.toggleable?"d-c-pointer":""},borderClass(){return ea[this.borderColor]}},methods:{onClick(){this.toggleable&&(this.expanded=!this.expanded)}}};var Ng=function(){var e=this,n=e._self._c;return n("div",{class:["dt-feed-item-pill--border",e.borderClass,e.wrapperClass]},[n("div",{staticClass:"d-p8 d-bgc-secondary"},[n("dt-collapsible",{attrs:{open:e.expanded},scopedSlots:e._u([{key:"anchor",fn:function(){return[n("button",{class:["d-baw0 d-bgc-moderate d-bar-pill d-w100p d-ta-left d-btn--circle",e.toggleableClass,e.buttonClass],attrs:{"aria-label":e.ariaLabel,"data-qa":"dt-feed-item-pill"},on:{focusin:function(a){e.hover=!0},focusout:function(a){e.hover=!1},mouseenter:function(a){e.hover=!0},mouseleave:function(a){e.hover=!1},click:e.onClick}},[n("dt-item-layout",{staticClass:"d-w100p d-p8",scopedSlots:e._u([{key:"left",fn:function(){return[n("dt-icon",{staticClass:"dt-feed-item-pill--icon d-pr8",attrs:{size:"300","data-qa":"dt-feed-item-pill-icon",name:e.computedIcon}})]},proxy:!0},{key:"subtitle",fn:function(){return[e._t("subtitle")]},proxy:!0},{key:"bottom",fn:function(){return[e._t("bottom")]},proxy:!0},{key:"right",fn:function(){return[e._t("right")]},proxy:!0}],null,!0)},[e._v(" "+e._s(e.title)+" ")])],1)]},proxy:!0},{key:"content",fn:function(){return[n("div",{staticClass:"d-jc-center d-d-flex"},[e._t("content")],2)]},proxy:!0}],null,!0)})],1)])},Mg=[],Bg=h.normalizeComponent(Pg,Ng,Mg,!1,null,"4bd1c0c2",null,null);const Fg=Bg.exports;const Vg={name:"DtRecipeTimePill",props:{dateTimeDisplay:{type:String,required:!0},dateTime:{type:String,required:!0,validator:t=>{const e=new Date(t);return e instanceof Date&&!isNaN(e)}}}};var jg=function(){var e=this,n=e._self._c;return n("time",{staticClass:"d-ba d-bar-pill d-baw1 d-bc-black-300 d-px16 d-py4 d-fs-100",attrs:{"data-qa":"dt-time-pill",dateTime:e.dateTime}},[e._v(" "+e._s(e.dateTimeDisplay)+" ")])},qg=[],Hg=h.normalizeComponent(Vg,jg,qg,!1,null,null,null,null);const zg=Hg.exports,Yi=["emojiUnicodeOrShortname","isSelected","ariaLabel","tooltip","num"];const Wg={name:"DtRecipeEmojiRow",components:{DtTooltip:hn,DtButton:G,DtEmoji:h.DtEmoji,DtEmojiTextWrapper:h.DtEmojiTextWrapper},mixins:[],props:{reactions:{type:Array,default:()=>[],validator:t=>{for(const e of t)if(!Yi.every(a=>e[a]!==void 0))return!1;return!0}}},emits:["emoji-clicked","emoji-hovered"],methods:{emojiClicked(t){this.$emit("emoji-clicked",t.emojiUnicodeOrShortname)},emojiHovered(t,e){this.$emit("emoji-hovered",{reaction:t.emojiUnicodeOrShortname,state:e})}}};var Ug=function(){var e=this,n=e._self._c;return n("span",{staticClass:"dt-emoji-row"},e._l(e.reactions,function(a){return n("span",{key:a.unicodeOutput,staticClass:"d-mr4 d-mb4",attrs:{reaction:a}},[n("dt-tooltip",{staticClass:"d-d-inline-block",attrs:{"content-class":"d-wmx464"},on:{shown:r=>e.emojiHovered(a,r)},scopedSlots:e._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 e.emojiClicked(a)}}},[n("span",{staticClass:"d-mr4"},[n("dt-emoji",{attrs:{size:"200",code:a.emojiUnicodeOrShortname}})],1),n("span",{staticClass:"d-fw-bold d-fs-100"},[e._v(" "+e._s(a.num)+" ")])])]}}],null,!0)},[n("span",{attrs:{"aria-hidden":"true"}},[n("dt-emoji-text-wrapper",{attrs:{size:"200"}},[e._v(" "+e._s(a.tooltip)+" ")])],1)])],1)}),0)},Kg=[],Gg=h.normalizeComponent(Wg,Ug,Kg,!1,null,null,null,null);const Yg=Gg.exports,ta={warning:"dt-recipe-callbox-badge--warning"},na={default:"dt-recipe-callbox--border-default",ai:"dt-recipe-callbox--border-ai",critical:"dt-recipe-callbox--border-critical"};const Zg={name:"DtRecipeCallbox",components:{DtBadge:ra,DtAvatar:Et},inheritAttrs:!1,props:{badgeText:{type:String,default:""},badgeColor:{type:String,default:null,validator:t=>t===null||Object.keys(ta).includes(t)},avatarSrc:{type:String,default:""},avatarFullName:{type:String,default:""},avatarSeed:{type:String,default:""},title:{type:String,default:""},borderColor:{type:String,default:"default",validator:t=>Object.keys(na).includes(t)},clickable:{type:Boolean,default:!1},isOnHold:{type:Boolean,default:!1}},emits:["click"],computed:{shouldShowAvatar(){return this.avatarFullName||this.avatarSrc},badgeClass(){return ta[this.badgeColor]},borderClass(){return na[this.borderColor]}},methods:{handleClick(t){this.clickable&&this.$emit("click",t)}}};var Xg=function(){var e=this,n=e._self._c;return n("div",{staticClass:"dt-recipe-callbox",attrs:{"data-qa":"dt-recipe-callbox"}},[e.$slots.video?n("div",{staticClass:"dt-recipe-callbox--video",attrs:{"data-qa":"dt-recipe-callbox--video-wrapper"}},[e._t("video")],2):e._e(),n("div",{class:["dt-recipe-callbox--main-content",e.borderClass,{"dt-recipe-callbox--clickable":e.clickable}],attrs:{"data-qa":"dt-recipe-callbox--main-content"}},[n("div",{staticClass:"dt-recipe-callbox--main-content-top"},[e.shouldShowAvatar?n("dt-avatar",{attrs:{"avatar-class":"dt-recipe-callbox--avatar","image-src":e.avatarSrc,"full-name":e.avatarFullName,seed:e.avatarSeed,clickable:e.clickable,"overlay-icon":e.isOnHold?"pause":null,size:"sm"},on:{click:e.handleClick}}):e._e(),n("div",{staticClass:"dt-recipe-callbox--content"},[n(e.clickable?"button":"span",{tag:"component",staticClass:"dt-recipe-callbox--content-title",attrs:{"data-qa":"dt-recipe-callbox--title"},on:{click:e.handleClick}},[e._v(" "+e._s(e.title)+" ")]),e.$slots.badge||e.badgeText?n("div",{staticClass:"dt-recipe-callbox--content-badge",attrs:{"data-qa":"dt-recipe-callbox--badge-wrapper"}},[e._t("badge",function(){return[n("dt-badge",{class:e.badgeClass,attrs:{text:e.badgeText}})]})],2):e._e(),e.$slots.subtitle?n("div",{staticClass:"dt-recipe-callbox--content-subtitle",attrs:{"data-qa":"dt-recipe-callbox--subtitle-wrapper"}},[e._t("subtitle")],2):e._e()],1),e.$slots.right?n("div",{staticClass:"dt-recipe-callbox--right",attrs:{"data-qa":"dt-recipe-callbox--right-wrapper"}},[e._t("right")],2):e._e()],1),e.$slots.bottom?n("div",{staticClass:"dt-recipe-callbox--main-content-bottom",attrs:{"data-qa":"dt-recipe-callbox--bottom-wrapper"}},[e._t("bottom")],2):e._e()])])},Qg=[],Jg=h.normalizeComponent(Zg,Xg,Qg,!1,null,"66800ae7",null,null);const e_=Jg.exports;exports.DtSkeleton=h.DtSkeleton;exports.DtSkeletonListItem=h.DtSkeletonListItem;exports.DtSkeletonParagraph=h.DtSkeletonParagraph;exports.DtSkeletonShape=h.DtSkeletonShape;exports.DtSkeletonText=h.DtSkeletonText;exports.SKELETON_HEADING_HEIGHTS=h.SKELETON_HEADING_HEIGHTS;exports.SKELETON_RIPPLE_DURATION=h.SKELETON_RIPPLE_DURATION;exports.SKELETON_SHAPES=h.SKELETON_SHAPES;exports.SKELETON_SHAPE_SIZES=h.SKELETON_SHAPE_SIZES;exports.SKELETON_TEXT_TYPES=h.SKELETON_TEXT_TYPES;exports.AVATAR_COLORS=Ir;exports.AVATAR_GROUP_VALIDATOR=Pn;exports.AVATAR_ICON_SIZES=xr;exports.AVATAR_KIND_MODIFIERS=Or;exports.AVATAR_PRESENCE_SIZE_MODIFIERS=Er;exports.AVATAR_PRESENCE_STATES=Rn;exports.AVATAR_SIZE_MODIFIERS=Yt;exports.BADGE_DECORATION_MODIFIERS=Bn;exports.BADGE_KIND_MODIFIERS=Mn;exports.BADGE_TYPE_MODIFIERS=Nn;exports.BREADCRUMBS_INVERTED_MODIFIER=$r;exports.BREADCRUMB_ITEM_SELECTED_MODIFIER=Ar;exports.BUTTON_GROUP_ALIGNMENT=Fn;exports.CALLBAR_BUTTON_VALID_WIDTH_SIZE=Ea;exports.CALLBOX_BADGE_COLORS=ta;exports.CALLBOX_BORDER_COLORS=na;exports.CHIP_SIZE_MODIFIERS=Zn;exports.COLOR_CODES=qi;exports.DEFAULT_VALIDATION_MESSAGE_TYPE=cr;exports.DESCRIPTION_SIZE_TYPES=dr;exports.DtAvatar=Et;exports.DtBadge=ra;exports.DtBanner=bo;exports.DtBreadcrumbItem=Pr;exports.DtBreadcrumbs=Ao;exports.DtButton=G;exports.DtButtonGroup=Mo;exports.DtCard=Nr;exports.DtCheckableInputMixin=ba;exports.DtCheckbox=ip;exports.DtCheckboxGroup=cp;exports.DtChip=Ca;exports.DtCodeblock=Uo;exports.DtCollapsible=jr;exports.DtCombobox=Vr;exports.DtDatepicker=nm;exports.DtDropdown=gi;exports.DtDropdownSeparator=Bc;exports.DtGroupableInputMixin=ya;exports.DtIcon=V;exports.DtImageViewer=Hc;exports.DtInput=_i;exports.DtInputGroup=Sa;exports.DtInputGroupMixin=vi;exports.DtInputMixin=va;exports.DtItemLayout=tn;exports.DtKeyboardListNavigationMixin=la;exports.DtKeyboardShortcut=Kp;exports.DtLazyShow=rt;exports.DtLink=Rr;exports.DtListItem=It;exports.DtListItemGroup=Su;exports.DtListSection=gu;exports.DtModal=uu;exports.DtNotice=su;exports.DtPagination=xu;exports.DtPopover=pn;exports.DtPresence=wr;exports.DtRadio=Au;exports.DtRadioGroup=Mu;exports.DtRecipeCallbarButton=ji;exports.DtRecipeCallbarButtonWithPopover=Im;exports.DtRecipeCallbox=e_;exports.DtRecipeComboboxMultiSelect=vm;exports.DtRecipeComboboxWithPopover=Fi;exports.DtRecipeContactInfo=Am;exports.DtRecipeContactRow=Og;exports.DtRecipeEmojiRow=Yg;exports.DtRecipeFeedItemPill=Fg;exports.DtRecipeFeedItemRow=Rg;exports.DtRecipeGeneralRow=xa;exports.DtRecipeGroupRow=bg;exports.DtRecipeGroupedChip=Ym;exports.DtRecipeIvrNode=zm;exports.DtRecipeSettingsMenuButton=eg;exports.DtRecipeTimePill=zg;exports.DtRecipeTopBannerInfo=Mm;exports.DtRecipeUnreadPill=Dg;exports.DtRootLayout=af;exports.DtSelectMenu=Ep;exports.DtStack=hf;exports.DtTab=Gu;exports.DtTabGroup=Hu;exports.DtTabPanel=Ju;exports.DtToast=Lp;exports.DtToggle=Np;exports.DtTooltip=hn;exports.DtValidationMessages=De;exports.FEED_ITEM_PILL_BORDER_COLORS=ea;exports.INPUT_SIZES=Ze;exports.INPUT_TYPES=Qt;exports.IVR_NODE_BRANCH=bn;exports.IVR_NODE_EXPERT=vn;exports.IVR_NODE_GO_TO=$t;exports.IVR_NODE_HANGUP=Sn;exports.IVR_NODE_ICON_TYPES=Hi;exports.IVR_NODE_LABELS=Bm;exports.IVR_NODE_PROMPT_COLLECT=gn;exports.IVR_NODE_PROMPT_MENU=mn;exports.IVR_NODE_PROMPT_PLAY=_n;exports.IVR_NODE_TRANSFER=yn;exports.LEFTBAR_GENERAL_ROW_CONTACT_CENTER_COLORS=Ot;exports.LEFTBAR_GENERAL_ROW_CONTACT_CENTER_VALIDATION_ERROR=Wi;exports.LEFTBAR_GENERAL_ROW_ICON_MAPPING=zi;exports.LEFTBAR_GENERAL_ROW_ICON_SIZES=Ui;exports.LEFTBAR_GENERAL_ROW_TYPES=H;exports.LINK_KIND_MODIFIERS=en;exports.LINK_VARIANTS=Lr;exports.MODAL_BANNER_KINDS=Yn;exports.MODAL_KIND_MODIFIERS=Kn;exports.MODAL_SIZE_MODIFIERS=Gn;exports.MULTI_SELECT_SIZES=Vi;exports.NOTICE_KINDS=at;exports.POPOVER_CONTENT_WIDTHS=ga;exports.POPOVER_HEADER_FOOTER_PADDING_CLASSES=pi;exports.POPOVER_INITIAL_FOCUS_STRINGS=hi;exports.POPOVER_PADDING_CLASSES=Un;exports.POPOVER_ROLES=fi;exports.PRESENCE_STATES=Xe;exports.PRESENCE_STATES_LIST=Cr;exports.REACTIONS_ATTRIBUTES=Yi;exports.ROOT_LAYOUT_RESPONSIVE_BREAKPOINTS=Li;exports.ROOT_LAYOUT_SIDEBAR_POSITIONS=wa;exports.SELECT_SIZE_MODIFIERS=Xn;exports.SELECT_STATE_MODIFIERS=wi;exports.SHORTCUTS_ALIASES_LIST=qp;exports.SHORTCUTS_ICON_ALIASES=Qe;exports.SHORTCUTS_ICON_SEPARATOR=Di;exports.TAB_IMPORTANCE_MODIFIERS=Ci;exports.TAB_LIST_IMPORTANCE_MODIFIERS=Si;exports.TAB_LIST_KIND_MODIFIERS=yi;exports.TAB_LIST_SIZES=bi;exports.TOAST_ROLES=Oi;exports.TOOLTIP_DELAY_MS=xi;exports.TOOLTIP_DIRECTIONS=Ei;exports.TOOLTIP_HIDE_ON_CLICK_VARIANTS=Mp;exports.TOOLTIP_KIND_MODIFIERS=Ii;exports.TOOLTIP_STICKY_VALUES=Ti;exports.UNREAD_PILL_DIRECTIONS=Ki;exports.UNREAD_PILL_KINDS=Gi;exports.VALIDATION_MESSAGE_TYPES=ae;exports.filterFormattedMessages=aa;exports.formatLong=am;exports.formatMedium=rm;exports.formatMessages=_t;exports.formatNoYear=sm;exports.formatNumerical=om;exports.formatShort=im;exports.getUniqueString=z;exports.getValidationState=Ie;exports.validationMessageValidator=kt;
|