@dialpad/dialtone-vue 2.97.0 → 2.98.1
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 +14 -0
- package/dist/dialtone-vue.cjs +13 -13
- package/dist/dialtone-vue.js +6 -5
- package/dist/emoji-34a4417c.cjs +1 -0
- package/dist/{emoji_text_wrapper-fb5b8fa3.js → emoji-75ad085c.js} +966 -909
- package/dist/emoji.cjs +1 -1
- package/dist/emoji.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types/components/modal/index.d.ts +1 -1
- package/package.json +23 -18
- package/dist/emoji_text_wrapper-15660494.cjs +0 -1
package/dist/dialtone-vue.cjs
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const re=require("vue"),h=require("./emoji_text_wrapper-15660494.cjs"),ae={ERROR:"error",WARNING:"warning",SUCCESS:"success"},dr={LARGE:"lg",EXTRA_LARGE:"xl"},ns={xs:"",sm:"",md:"",lg:"d-description--lg",xl:"d-description--xl"},as={xs:"d-label--xs",sm:"d-label--sm",md:"",lg:"d-label--lg",xl:"d-label--xl"},U={esc:"Esc",escape:"Escape",tab:"Tab",enter:"Enter",space:"Space",spacebar:"Spacebar",up:"Up",arrowup:"ArrowUp",left:"Left",arrowleft:"ArrowLeft",right:"Right",arrowright:"ArrowRight",down:"Down",arrowdown:"ArrowDown",home:"Home",end:"End"},cr=ae.ERROR,rs="dt";let is=0,Ia;const ss=typeof setImmediate=="function"?setImmediate:setTimeout;function z(t=rs){return`${t}${is++}`}function ur(t,e){if(e){const n=os(e);return t[Math.abs(n)%t.length]}else return t[pr(t.length)]}function os(t){let e;for(let n=0;n<t.length;n++)e=Math.imul(31,e)+t.charCodeAt(n)|0;return e}function pr(t){return Math.floor(Math.random()*t)}function _t(t){return t?t.map(e=>typeof e=="string"?{message:e,type:cr}:e):[]}function na(t){const e=Ie(t);return!t||!e?[]:t.filter(n=>!!n.message&&n.type===e)}function Ie(t){return t?Gt(t,ae.ERROR)?ae.ERROR:Gt(t,ae.WARNING)?ae.WARNING:Gt(t,ae.SUCCESS)?ae.SUCCESS:null:null}function Gt(t,e){return!t||!e?!1:t.some(n=>(n==null?void 0:n.type)===e)}const ls={name:"html-fragment",functional:!0,props:["html"],render(t,e){return new re({name:"Inner",beforeCreate(){this.$createElement=t},template:`<div>${e.props.html}</div>`}).$mount()._vnode.children}},ds=()=>new Promise(t=>{ss(t)}),fr=t=>t==null?void 0:t.toLowerCase().split("-").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(""),cs=t=>t.replace(/\.?([A-Z0-9]+)/g,(e,n)=>"-"+n.toLowerCase()).replace(/^-/,"");function us(t,e=300){clearTimeout(Ia),Ia=setTimeout(t,e)}function hr(t){const e=t.getBoundingClientRect(),n={top:e.top<0,left:e.left<0,bottom:e.bottom>(window.innerHeight||document.documentElement.clientHeight),right:e.right>(window.innerWidth||document.documentElement.clientWidth)};return n.any=Object.values(n).some(a=>a),n.all=Object.values(n).every(a=>a),n}const ps=/(?:(?:[^\s!@#$%^&*()_=+[\]{}\\|;:'",.<>/?]+)\.)/,fs=new RegExp("(?:com|ru|org|net|de|jp|uk|br|it|pl|fr|in|au|ir|info|nl|cn|es|cz|kr|ca|eu|ua|co|gr|za|ro|biz|ch|se|tw|mx|vn|hu|be|tr|at|dk|tv|me|ar|sk|no|us|fi|id|cl|xyz|io|pt|by|il|ie|nz|kz|hk|lt|cc|my|sg|club|bg|edu|рф|pk|su|top|th|hr|rs|pe|pro|si|az|lv|pw|ae|ph|online|ng|ee|ws|ve|cat)"),hs=new RegExp("(?:(?:[0-9]|[1-9]\\d|1\\d{2}|2[0-4]\\d|25[0-5])\\.){3}(?:[0-9]|[1-9]\\d|1\\d{2}|2[0-4]\\d|25[0-5])"),mr=new RegExp("(?:"+[[ps.source,fs.source].join("+"),hs.source].join("|")+")"),ms=/(?:(?:[;/][^#?<>\s]*)?)/,gr=/(?:(?:\?[^#<>\s]+)?(?:#[^<>\s]+)?)/,_r=new RegExp("\\b"+[mr.source,ms.source,gr.source,"(?!\\w)"].join("+")),vr=/\b[a-z\d.-]+:\/\/[^<>\s]+/,br=new RegExp("(?:mailto:)?[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@"+[mr.source,gr.source].join("+")+"(?!\\w)");function yr(t=7,e=15){let n=!0;try{RegExp("(?<=\\W)")}catch{n=!1}return new RegExp(`${n?"(?:^|(?<=\\W))":""}(?![\\s\\-])\\+?(?:[0-9()\\- \\t]{${t},${e}})(?=\\b)(?=\\W(?=\\W|$)|\\s|$)`)}const Sr=yr(),gs=new RegExp([_r.source,vr.source,br.source,Sr.source].join("|"),"gi");function _s(t){var e;return!t||!["string","number"].includes(typeof t)?!1:(t=t.toString(),((e=Sr.exec(t))==null?void 0:e[0])===t)}function vs(t){var e,n;return!t||typeof t!="string"?!1:((e=_r.exec(t))==null?void 0:e[0])===t||((n=vr.exec(t))==null?void 0:n[0])===t}function bs(t){var e;return!t||typeof t!="string"?!1:((e=br.exec(t))==null?void 0:e[0])===t}function on(t){return t.filter(e=>!!e).join(" ")}const de={getUniqueString:z,getRandomElement:ur,getRandomInt:pr,formatMessages:_t,filterFormattedMessages:na,hasFormattedMessageOfType:Gt,getValidationState:Ie,htmlFragment:ls,flushPromises:ds,kebabCaseToPascalCase:fr,debounce:us,isOutOfViewPort:hr,getPhoneNumberRegex:yr,linkRegex:gs,isEmailAddress:bs,isPhoneNumber:_s,isURL:vs,safeConcatStrings:on},Xe={BUSY:"busy",AWAY:"away",OFFLINE:"offline",ACTIVE:"active"},Cr=[Xe.BUSY,Xe.AWAY,Xe.OFFLINE,Xe.ACTIVE],ys={name:"DtPresence",props:{presence:{type:String,default:Xe.ACTIVE,validator:t=>Cr.includes(t)},srText:{type:String,default:null}}};var Ss=function(){var e=this,n=e._self._c;return n("div",{staticClass:"d-presence",attrs:{"data-qa":"dt-presence",role:"status","aria-live":e.$attrs.ariaLive||"off"}},[e.srText?n("span",{staticClass:"sr-only",attrs:{"data-qa":"dt-presence-sr-text"}},[e._v(e._s(e.srText)+" ")]):e._e(),n("div",{staticClass:"d-presence__inner",class:{"d-presence__inner--active":e.presence==="active","d-presence__inner--away":e.presence==="away","d-presence__inner--busy":e.presence==="busy","d-presence__inner--offline":e.presence==="offline"}})])},Cs=[],ws=h.normalizeComponent(ys,Ss,Cs,!1,null,null,null,null);const wr=ws.exports,Os={name:"DtIcon",props:{size:{type:String,default:"500",validator:t=>Object.keys(h.ICON_SIZE_MODIFIERS).includes(t)},name:{type:String,required:!0},ariaLabel:{type:String,default:void 0}},computed:{iconSize(){return h.ICON_SIZE_MODIFIERS[this.size]},iconName(){return fr(this.name)},currentIcon(){return h.DIALTONE_ICONS[this.iconName]}}};var Es=function(){var e=this,n=e._self._c;return e.currentIcon?n(e.currentIcon,{tag:"component",class:e.iconSize,attrs:{"data-qa":"dt-icon","aria-hidden":e.ariaLabel?"false":"true","aria-label":e.ariaLabel}}):e._e()},xs=[],Is=h.normalizeComponent(Os,Es,xs,!1,null,null,null,null);const V=Is.exports,Yt={xs:"d-avatar--xs",sm:"d-avatar--sm",md:"d-avatar--md",lg:"d-avatar--lg",xl:"d-avatar--xl"},Or={default:"",icon:"d-avatar__icon",initials:"d-avatar__initials"},Er={md:"d-avatar__presence--md",lg:"d-avatar__presence--lg"},Rn={NONE:"",BUSY:"busy",AWAY:"away",OFFLINE:"offline",ACTIVE:"active"},xr={xs:"100",sm:"200",md:"300",lg:"500",xl:"600"},Ir=["100","200","300","400","500","600","700","800","900","1000","1100","1200","1300","1400","1500","1600","1700","1800"],Pn=t=>t>1;function Ts(){return[void 0,...Object.keys(h.dialtoneIcons).map(t=>cs(t))]}const Ds=t=>{if(typeof t!="string"||!t.trim())return"";const e=t.trim().split(/\s+/g);return e.length===1?e.join("").substring(0,2):e.filter((n,a)=>a===0||a===e.length-1).map(n=>n.slice(0,1).toUpperCase()).join("")};const Ls=Ts(),ks={name:"DtAvatar",components:{DtPresence:wr,DtIcon:V},inheritAttrs:!1,props:{id:{type:String,default(){return z()}},seed:{type:String,default:void 0},color:{type:String,default:void 0},size:{type:String,default:"md",validator:t=>Object.keys(Yt).includes(t)},avatarClass:{type:[String,Array,Object],default:""},canvasClass:{type:[String,Array,Object],default:""},iconClass:{type:[String,Array,Object],default:""},presence:{type:String,default:Rn.NONE,validator:t=>Object.values(Rn).includes(t)},presenceProps:{type:Object,default:()=>({})},group:{type:Number,default:void 0,validator:t=>Pn(t)},overlayIcon:{type:String,default:""},overlayText:{type:String,default:""},overlayClass:{type:[String,Array,Object],default:""},imageSrc:{type:String,default:""},imageAlt:{type:String,default:""},iconName:{type:String,default:void 0,validator:t=>Ls.includes(t)},iconSize:{type:String,default:"",validator:t=>!t||Object.keys(h.ICON_SIZE_MODIFIERS).includes(t)},fullName:{type:String,default:""},clickable:{type:Boolean,default:!1}},emits:["click"],data(){return{AVATAR_SIZE_MODIFIERS:Yt,AVATAR_KIND_MODIFIERS:Or,AVATAR_PRESENCE_SIZE_MODIFIERS:Er,AVATAR_ICON_SIZES:xr,imageLoadedSuccessfully:null,formattedInitials:"",initializing:!1}},computed:{isNotIconType(){return!this.iconName},avatarClasses(){return["d-avatar",Yt[this.validatedSize],this.avatarClass,{"d-avatar--group":this.showGroup,[`d-avatar--color-${this.getColor()}`]:this.isNotIconType,"d-avatar--clickable":this.clickable}]},overlayClasses(){return["d-avatar__overlay",this.overlayClass]},showGroup(){return Pn(this.group)},formattedGroup(){return this.group>99?"99+":this.group},validatedSize(){return this.group?"xs":this.size},showImage(){return this.imageLoadedSuccessfully!==!1&&this.imageSrc},buttonAriaLabel(){if(this.clickable)return this.fullName||this.imageAlt||this.$attrs["aria-label"]}},watch:{fullName:{immediate:!0,handler(t){this.formatInitials(t)}},imageSrc(t){this.imageLoadedSuccessfully=null,t&&(this.validateProps(),this.setImageListeners())}},mounted(){this.validateProps(),this.setImageListeners()},methods:{async setImageListeners(){await this.$nextTick();const t=this.$refs.avatarImage;t&&(t.addEventListener("load",()=>this._loadedImageEventHandler(t),{once:!0}),t.addEventListener("error",()=>this._erroredImageEventHandler(t),{once:!0}))},formatInitials(t){const e=Ds(t);this.validatedSize==="xs"?this.formattedInitials="":this.validatedSize==="sm"?this.formattedInitials=e[0]:this.formattedInitials=e},getColor(){return this.color??ur(Ir,this.seed)},_loadedImageEventHandler(t){this.imageLoadedSuccessfully=!0,t.classList.remove("d-d-none")},_erroredImageEventHandler(t){this.imageLoadedSuccessfully=!1,t.classList.add("d-d-none")},validateProps(){if(this.imageSrc&&!(this.fullName||this.imageAlt))throw new Error("full-name or image-alt must be set if image-src is provided")},handleClick(t){this.clickable&&this.$emit("click",t)}}};var As=function(){var e=this,n=e._self._c;return n(e.clickable?"button":"div",{tag:"component",class:e.avatarClasses,attrs:{id:e.id,"data-qa":"dt-avatar","aria-label":e.buttonAriaLabel},on:{click:function(a){return a.stopPropagation(),e.handleClick.apply(null,arguments)}}},[n("div",{ref:"canvas",class:[e.canvasClass,"d-avatar__canvas",{"d-avatar--image-loaded":e.imageLoadedSuccessfully}]},[e.showImage?n("img",{ref:"avatarImage",staticClass:"d-avatar__image",attrs:{"data-qa":"dt-avatar-image",src:e.imageSrc,alt:e.imageAlt||e.fullName}}):e.iconName?n("dt-icon",{class:[e.iconClass,e.AVATAR_KIND_MODIFIERS.icon],attrs:{name:e.iconName,size:e.iconSize||e.AVATAR_ICON_SIZES[e.size],"data-qa":"dt-avatar-icon"}}):n("span",{class:[e.AVATAR_KIND_MODIFIERS.initials,"d-ps-absolute d-zi-base d-us-none"]},[e._v(" "+e._s(e.formattedInitials)+" ")])],1),e.overlayIcon||e.overlayText?n("div",{class:e.overlayClasses},[e.overlayIcon?n("dt-icon",{staticClass:"d-avatar__overlay-icon",attrs:{name:e.overlayIcon}}):e.overlayText?n("p",{staticClass:"d-avatar__overlay-text"},[e._v(" "+e._s(e.overlayText)+" ")]):e._e()],1):e._e(),e.showGroup?n("span",{staticClass:"d-avatar__count",attrs:{"data-qa":"dt-avatar-count"}},[e._v(e._s(e.formattedGroup))]):e._e(),e.presence&&!e.showGroup?n("dt-presence",e._b({class:["d-avatar__presence",e.AVATAR_PRESENCE_SIZE_MODIFIERS[e.size]],attrs:{presence:e.presence,"data-qa":"dt-presence"}},"dt-presence",e.presenceProps,!1)):e._e()],1)},$s=[],Rs=h.normalizeComponent(ks,As,$s,!1,null,null,null,null);const Et=Rs.exports,Mn={default:"",info:"d-badge--info",success:"d-badge--success",warning:"d-badge--warning",critical:"d-badge--critical",bulletin:"d-badge--bulletin",ai:"d-badge--ai"},Nn={label:"",count:"d-badge--count"},Bn={"black-400":"d-badge--decorate-black-400","black-500":"d-badge--decorate-black-500","black-900":"d-badge--decorate-black-900","red-200":"d-badge--decorate-red-200","red-300":"d-badge--decorate-red-300","red-400":"d-badge--decorate-red-400","purple-200":"d-badge--decorate-purple-200","purple-300":"d-badge--decorate-purple-300","purple-400":"d-badge--decorate-purple-400","purple-500":"d-badge--decorate-purple-500","blue-200":"d-badge--decorate-blue-200","blue-300":"d-badge--decorate-blue-300","blue-400":"d-badge--decorate-blue-400","green-300":"d-badge--decorate-green-300","green-400":"d-badge--decorate-green-400","green-500":"d-badge--decorate-green-500","gold-300":"d-badge--decorate-gold-300","gold-400":"d-badge--decorate-gold-400","gold-500":"d-badge--decorate-gold-500","magenta-200":"d-badge--decorate-magenta-200","magenta-300":"d-badge--decorate-magenta-300","magenta-400":"d-badge--decorate-magenta-400"},Ps={name:"DtBadge",components:{DtIcon:V},props:{iconLeft:{type:String,default:""},iconRight:{type:String,default:""},text:{type:String,default:""},kind:{type:String,default:"label",validator:t=>Object.keys(Nn).includes(t)},type:{type:String,default:"default",validator:t=>Object.keys(Mn).includes(t)},decoration:{type:String,default:void 0,validator:t=>Object.keys(Bn).includes(t)},labelClass:{type:[String,Array,Object],default:""}},data(){return{BADGE_TYPE_MODIFIERS:Mn,BADGE_KIND_MODIFIERS:Nn,BADGE_DECORATION_MODIFIERS:Bn}},computed:{hasIcons(){return this.iconLeft!==""||this.iconRight!==""}},watch:{$props:{immediate:!0,deep:!0,handler(){this.validateProps()}}},methods:{validateProps(){this.validateTypePropCombination(),this.validateDecorationPropCombination()},validateTypePropCombination(){this.type==="ai"&&this.kind==="count"&&console.error("DtBadge error: type: 'ai' with kind: 'count' is an invalid combination.")},validateDecorationPropCombination(){this.decoration&&((this.kind!=="label"||this.type!=="default")&&console.error("DtBadge error: decoration prop can only be used with kind: 'label' and type: 'default'."),this.hasIcons&&console.error("DtBadge error: decoration prop cannot be used with iconLeft or iconRight."))}}};var Ms=function(){var e=this,n=e._self._c;return n("span",{class:["d-badge",e.BADGE_TYPE_MODIFIERS[e.type],e.BADGE_KIND_MODIFIERS[e.kind],e.BADGE_DECORATION_MODIFIERS[e.decoration]],attrs:{"data-qa":"dt-badge"}},[e.decoration?n("span",{staticClass:"d-badge__decorative"}):e._e(),e.iconLeft||e.type==="ai"?n("span",{staticClass:"d-badge__icon-left"},[n("dt-icon",{attrs:{name:e.iconLeft||"dialpad-ai",size:"200"}})],1):e._e(),n("span",{class:["d-badge__label",e.labelClass]},[e._t("default",function(){return[e._v(" "+e._s(e.text)+" ")]})],2),e.iconRight?n("span",{staticClass:"d-badge__icon-right"},[n("dt-icon",{attrs:{name:e.iconRight,size:"200"}})],1):e._e()])},Ns=[],Bs=h.normalizeComponent(Ps,Ms,Ns,!1,null,null,null,null);const aa=Bs.exports,at=["base","error","info","success","warning"],Fs=["alert","alertdialog","status"],Vs=new Map([["info","info"],["success","check-circle"],["warning","alert-triangle"],["error","alert-circle"],["base","bell"]]),qs={name:"DtNoticeIcon",components:{DtIcon:V},props:{kind:{type:String,default:"base",validate(t){return at.includes(t)}}},computed:{defaultIcon(){return Vs.get(this.kind)}}};var js=function(){var e=this,n=e._self._c;return e.defaultIcon||e.$slots.default?n("div",{staticClass:"d-notice__icon",attrs:{"aria-hidden":"true"}},[e._t("default",function(){return[n("dt-icon",{attrs:{name:e.defaultIcon,size:"400"}})]})],2):e._e()},Hs=[],zs=h.normalizeComponent(qs,js,Hs,!1,null,null,null,null);const ra=zs.exports,Ws={name:"DtNoticeContent",props:{title:{type:String,default:""},titleId:{type:String,default:void 0},contentId:{type:String,default:void 0}}};var Us=function(){var e=this,n=e._self._c;return n("div",{staticClass:"d-notice__content",attrs:{"data-qa":"notice-content"}},[e.title||e.$slots.titleOverride?n("p",{staticClass:"d-notice__title",attrs:{id:e.titleId,"data-qa":"notice-content-title"}},[e._t("titleOverride",function(){return[e._v(" "+e._s(e.title)+" ")]})],2):e._e(),n("p",{staticClass:"d-notice__message",attrs:{id:e.contentId,"data-qa":"notice-content-message"}},[e._t("default")],2)])},Ks=[],Gs=h.normalizeComponent(Ws,Us,Ks,!1,null,null,null,null);const ia=Gs.exports,On={xs:"d-btn--xs",sm:"d-btn--sm",md:"",lg:"d-btn--lg",xl:"d-btn--xl"},Ta={default:"",muted:"d-btn--muted",danger:"d-btn--danger",inverted:"d-btn--inverted"},Da={clear:"",primary:"d-btn--primary",outlined:"d-btn--outlined"},Ys=["submit","reset","button"],La={left:"d-btn__icon--left",right:"d-btn__icon--right",top:"d-btn__icon--top",bottom:"d-btn__icon--bottom"},Zs=[{circle:!0,kind:"default",importance:"primary",message:Wt(!0,"default","primary")},{circle:!0,kind:"danger",importance:"outlined",message:Wt(!0,"danger","outlined")},{circle:!0,kind:"muted",importance:"primary",message:Wt(!0,"muted","primary")},{circle:!1,kind:"muted",importance:"primary",message:Wt(!1,"muted","primary")}];function Wt(t,e,n){return`You cannot have a ${t?"circle ":""}button with kind: ${e} and importance: ${n} as it does not exist in our design system. See https://dialpad.design/components/button.html for a list of available button styles`}const Xs="danger",Qs="warning",Js="success",Tr="muted",Dr="inverted",Lr=["",Xs,Qs,Js,Tr,Dr],en={default:"",warning:"d-link--warning",danger:"d-link--danger",success:"d-link--success",muted:"d-link--muted",inverted:"d-link--inverted"},eo={name:"DtButton",props:{circle:{type:Boolean,default:!1},iconPosition:{type:String,default:"left",validator:t=>Object.keys(La).includes(t)},importance:{type:String,default:"primary",validator:t=>Object.keys(Da).includes(t)},link:{type:Boolean,default:!1},linkKind:{type:String,default:"default",validator:t=>Object.keys(en).includes(t)},disabled:{type:Boolean,default:!1},type:{type:String,default:"button",validator:t=>Ys.includes(t)},width:{type:String,default:null},size:{type:String,default:"md",validator:t=>Object.keys(On).includes(t)},labelClass:{type:[String,Array,Object],default:""},loading:{type:Boolean,default:!1},kind:{type:String,default:"default",validator:t=>Object.keys(Ta).includes(t)},assertiveOnFocus:{type:Boolean,default:!1},active:{type:Boolean,default:!1}},emits:["click","focusin","focusout"],data(){return{ICON_POSITION_MODIFIERS:La,isInFocus:!1}},computed:{buttonListeners(){return this.assertiveOnFocus?{...this.$listeners,focusin:t=>{this.isInFocus=!0},focusout:t=>{this.isInFocus=!1}}:this.$listeners},computedAriaLive(){return this.assertiveOnFocus&&this.isInFocus?"assertive":this.$attrs.ariaLive}},watch:{$props:{deep:!0,immediate:!0,handler(){process.env.NODE_ENV!=="production"&&(this.circle&&this.link&&re.util.warn("You cannot enable circle and link at the same time",this),this.isInvalidPropCombination(this.circle,this.kind,this.importance))}}},methods:{buttonClasses(){return this.link?["d-link",en[this.linkKind],On[this.size]]:["d-btn",Da[this.importance],Ta[this.kind],On[this.size],{"d-btn--circle":this.circle,"d-btn--loading":this.loading,"d-btn--icon-only":this.isIconOnly(),"d-btn--vertical":this.isVerticalIconLayout(),"d-btn--active":this.active}]},isInvalidPropCombination(t,e,n){for(const a of Zs)if(t===a.circle&&e===a.kind&&n===a.importance)return console.error(a.message),!1;return!0},shouldRenderIcon(){return this.$slots.icon&&!this.link},isIconOnly(){return this.shouldRenderIcon()&&!this.$slots.default},isVerticalIconLayout(){return this.shouldRenderIcon()&&!this.isIconOnly()&&["top","bottom"].includes(this.iconPosition)}}};var to=function(){var e=this,n=e._self._c;return n("button",e._g({class:["base-button__button",e.buttonClasses()],style:{width:e.width},attrs:{"data-qa":"dt-button",type:e.type,disabled:e.disabled,"aria-live":e.computedAriaLive,"aria-label":e.loading?"loading":e.$attrs["aria-label"]}},e.buttonListeners),[e.shouldRenderIcon()?n("span",{class:["base-button__icon","d-btn__icon",e.ICON_POSITION_MODIFIERS[e.iconPosition]],attrs:{"data-qa":"dt-button-icon"}},[e._t("icon")],2):e._e(),e.$slots.default?n("span",{class:["d-btn__label","base-button__label",e.labelClass],attrs:{"data-qa":"dt-button-label"}},[e._t("default")],2):e._e()])},no=[],ao=h.normalizeComponent(eo,to,no,!1,null,null,null,null);const G=ao.exports,Se={props:{visuallyHiddenClose:{type:Boolean,default:!1},visuallyHiddenCloseLabel:{type:String,default:null}},watch:{$props:{immediate:!0,deep:!0,handler(){this.validateVisuallyHiddenCloseProps()}}},computed:{showVisuallyHiddenClose(){return this.visuallyHiddenClose&&this.visuallyHiddenCloseLabel!=null}},methods:{validateVisuallyHiddenCloseProps(){this.visuallyHiddenClose&&!this.visuallyHiddenCloseLabel&&console.error(`If visuallyHiddenClose prop is true, the component includes
|
|
2
|
-
a visually hidden close button and you must set the visuallyHiddenCloseLabel prop.`)}}},ro={name:"SrOnlyCloseButton",components:{DtIcon:V,DtButton:G},props:{visuallyHiddenCloseLabel:{type:String,default:null}},methods:{close(){this.$emit("close")}}};var io=function(){var e=this,n=e._self._c;return n("dt-button",{staticClass:"d-vi-visible-sr",attrs:{id:"sr-only-close-button","data-qa":"dt-sr-only-close-button","aria-label":e.visuallyHiddenCloseLabel},on:{click:e.close,keydown:function(a){return!a.type.indexOf("key")&&e._k(a.keyCode,"space",32,a.key,[" ","Spacebar"])?null:(a.preventDefault(),a.stopPropagation(),e.close.apply(null,arguments))}}},[n("dt-icon",{attrs:{name:"close"}})],1)},so=[],oo=h.normalizeComponent(ro,io,so,!1,null,null,null,null);const ln=oo.exports,lo={name:"DtNoticeAction",components:{DtIcon:V,DtButton:G,SrOnlyCloseButton:ln},mixins:[Se],props:{closeButtonProps:{type:Object,default:()=>({})},hideClose:{type:Boolean,default:!1}},emits:["close"],computed:{noticeActionListeners(){return{...this.$listeners,click:t=>{this.close(),this.$emit("click",t)}}}},created(){!this.hideClose&&!this.closeButtonProps.ariaLabel&&console.error("Invalid props: you must pass in closeButtonProps.ariaLabel if the close button is displayed.")},mounted(){this.hideClose||(this.lastFocusedElement=document.activeElement)},beforeDestroy(){var t;(t=this.lastFocusedElement)==null||t.focus()},methods:{close(){this.$emit("close")}}};var co=function(){var e=this,n=e._self._c;return n("div",{staticClass:"d-notice__actions",attrs:{"data-qa":"notice-content-actions"}},[e._t("default"),e.hideClose?e._e():n("dt-button",e._g(e._b({ref:"closeButton",attrs:{"data-qa":"dt-notice-action-close-button",size:"sm",importance:"clear",circle:"","aria-label":e.closeButtonProps.ariaLabel?e.closeButtonProps.ariaLabel:"Close"},scopedSlots:e._u([{key:"icon",fn:function(){return[n("dt-icon",{attrs:{name:"close",size:"200"}})]},proxy:!0}],null,!1,1154370889)},"dt-button",e.closeButtonProps,!1),e.noticeActionListeners)),e.showVisuallyHiddenClose?n("sr-only-close-button",{attrs:{"visually-hidden-close-label":e.visuallyHiddenCloseLabel},on:{close:e.close}}):e._e()],2)},uo=[],po=h.normalizeComponent(lo,co,uo,!1,null,null,null,null);const
|
|
3
|
-
background-size: ${this.backgroundSize};`}},mounted(){this.important&&this.focusFirstElement()},methods:{trapFocus(t){this.important&&this.focusTrappedTabPress(t)}}};var go=function(){var e=this,n=e._self._c;return n("aside",{class:e.bannerClass,style:e.bannerBackgroundImage,on:{keydown:function(a){return!a.type.indexOf("key")&&e._k(a.keyCode,"tab",9,a.key,"Tab")?null:e.trapFocus.apply(null,arguments)}}},[n("div",{staticClass:"d-banner__dialog",class:e.dialogClass,attrs:{role:e.role,"aria-labelledby":e.titleId,"aria-describedby":e.contentId}},[e.hideIcon?e._e():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},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)])},_o=[],vo=h.normalizeComponent(mo,go,_o,!1,null,null,null,null);const bo=vo.exports,Ar="d-breadcrumbs__item--selected",$r="d-breadcrumbs--inverted",yo={name:"DtLink",props:{kind:{type:String,default:"",validator(t){return Lr.includes(t)}}},emits:["click","focusin","focusout"],data(){return{LINK_KIND_MODIFIERS:en}}};var So=function(){var e=this,n=e._self._c;return n("a",e._g({class:["d-link",e.LINK_KIND_MODIFIERS[e.kind]],attrs:{"data-qa":"dt-link"}},e.$listeners),[e._t("default")],2)},Co=[],wo=h.normalizeComponent(yo,So,Co,!1,null,null,null,null);const Rr=wo.exports,Oo={name:"DtBreadcrumbItem",components:{DtLink:Rr},inheritAttrs:!1,props:{inverted:{type:Boolean,default:!1},selected:{type:Boolean,default:!1},label:{type:String,default:""}},data(){return{BREADCRUMB_ITEM_SELECTED_MODIFIER:Ar}},computed:{linkKind(){return this.inverted?Dr:Tr},ariaCurrent(){return this.selected?"location":void 0}}};var Eo=function(){var e=this,n=e._self._c;return n("li",{class:["d-breadcrumbs__item",{[e.BREADCRUMB_ITEM_SELECTED_MODIFIER]:e.selected}],attrs:{"data-qa":"dt-breadcrumb-item"}},[n("dt-link",e._b({attrs:{kind:e.linkKind,"aria-current":e.ariaCurrent,"data-qa":"breadcrumb-item"}},"dt-link",e.$attrs,!1),[e._t("default",function(){return[e._v(" "+e._s(e.label)+" ")]})],2)],1)},xo=[],Io=h.normalizeComponent(Oo,Eo,xo,!1,null,null,null,null);const Pr=Io.exports,To={name:"DtBreadcrumbs",components:{DtBreadcrumbItem:Pr},props:{breadcrumbs:{type:Array,default:()=>[],validate(t){return t.every(({href:e,label:n})=>e!==void 0&&n!==void 0)}},inverted:{type:Boolean,default:!1},ariaLabel:{type:String,default:"breadcrumb"}},data(){return{BREADCRUMBS_INVERTED_MODIFIER:$r}},methods:{getBreadcrumbItemKey(t){return`breadcrumbs-item-${t}-${de.getUniqueString()}`}}};var Do=function(){var e=this,n=e._self._c;return n("nav",{class:["d-breadcrumbs",{[e.BREADCRUMBS_INVERTED_MODIFIER]:e.inverted}],attrs:{"aria-label":e.ariaLabel,"data-qa":"dt-breadcrumbs"}},[n("ol",[e._t("default",function(){return e._l(e.breadcrumbs,function(a,r){return n("dt-breadcrumb-item",e._g(e._b({key:e.getBreadcrumbItemKey(r),attrs:{inverted:e.inverted}},"dt-breadcrumb-item",a,!1),e.$listeners))})})],2)])},Lo=[],ko=h.normalizeComponent(To,Do,Lo,!1,null,null,null,null);const Ao=ko.exports,Fn={start:"d-btn-group--start",end:"d-btn-group--end","space-between":"d-btn-group--space-between"},$o={name:"DtButtonGroup",props:{alignment:{type:String,default:"start",validator:t=>Object.keys(Fn).includes(t)}},data(){return{BUTTON_GROUP_ALIGNMENT:Fn}}};var Ro=function(){var e=this,n=e._self._c;return n("div",{class:["d-btn-group",e.BUTTON_GROUP_ALIGNMENT[e.alignment]],attrs:{role:"group"}},[e._t("default")],2)},Po=[],
|
|
4
|
-
`)])},zo=[],Wo=h.normalizeComponent(jo,Ho,zo,!1,null,null,null,null);const Uo=Wo.exports,Ko={methods:{scrollElementIntoViewIfNeeded(t,e,n,a){t.scrollIntoViewIfNeeded?this.scrollIntoViewIfNeeded(t,e,n,a):this.scrollIntoView(t,"bottom",!1,n,a)},scrollElementIntoView(t,e,n,a){if(e==="center"){this.scrollIntoView(t,"center",!1,n,a);return}e===!1?this.scrollIntoView(t,"bottom",!1,n,a):this.scrollIntoView(t,"top",!1,n,a)},scrollIntoViewIfNeeded(t,e,n,a){const r=e?"center":void 0;this.scrollIntoView(t,r,!0,n,a)},scrollIntoView(t,e,n,a,r){if(!t||!t.parentElement)return;const i=t.offsetTop,s=r||t.parentElement,l=this._getScrollBounds(s),d=l.bottom-l.top,p=this._getElementHeight(t),c=i+p;let f=-1;switch(e){case"top":f=i;break;case"center":f=i+(p-d)/2;break;case"bottom":f=f=c-d;break;default:i-l.top<=d/2?f=i:f=c-d;break}this._setScrollTop(s,f,l,i,c,n,a)},_setScrollTop(t,e,n,a,r,i,s){n=n||this._getScrollBounds(t);const l=n.bottom-n.top;if(i&&this._inScrollBounds(a,r,n))if(a<n.top)e=a;else if(r>n.bottom)e=r-l;else return;s?t.scrollTo({top:e,behavior:s}):t.scrollTop=e},_getElementHeight(t){return t.getBoundingClientRect().height},_getScrollBounds(t){const e=this._getElementHeight(t),n=t.scrollTop;return{top:n,bottom:n+e}},_inScrollBounds(t,e,n){const a=e-t;return e<=n.bottom+3*a/4&&t>=n.top-a/4}}},Go="listElementKey is required or the referenced element doesn't exist. Received listElement: ",oa=({listItemRole:t="option",indexKey:e="highlightIndex",idKey:n="highlightId",listElementKey:a="listRef",activeItemKey:r="",openMethod:i=null,afterHighlightMethod:s=null,beginningOfListMethod:l=null,endOfListMethod:d=null,scrollToOnHighlight:p=!0,focusOnKeyboardNavigation:c=!1}={})=>({mixins:[Ko],data(){return{[e]:-1,[n]:"",scrollToOnHighlight:p,focusOnKeyboardNavigation:c}},provide(){return{highlightId:()=>this[n]}},methods:{_getListElement(){var f;return((f=this[a]())==null?void 0:f.$el)||this[a]()},_itemsLength(){const f=this._getListItemNodes();return f===null?0:f.length},_getListItemNodes(){const f=this._getListElement();return f?Array.from(f.querySelectorAll(`[role="${t}"], #sr-only-close-button`)):(console.error(Go,f),null)},onUpKey(){i&&this[i](!0),this[e]>0?this.setHighlightIndex(this[e]-1):l&&this[l](),this.scrollActiveItemIntoViewIfNeeded(),this.focusActiveItemIfNeeded()},onDownKey(){i&&this[i](!0),this[e]<this._itemsLength()-1?this.setHighlightIndex(this[e]+1):d&&this[d](),this.scrollActiveItemIntoViewIfNeeded(),this.focusActiveItemIfNeeded()},onHomeKey(){this.jumpToBeginning(),this.scrollActiveItemIntoViewIfNeeded(),this.focusActiveItemIfNeeded()},onEndKey(){this.jumpToEnd(),this.scrollActiveItemIntoViewIfNeeded(),this.focusActiveItemIfNeeded()},onNavigationKey(f){const _=this._getListItemNodes(),m=_.filter(y=>y.textContent.trim().toLowerCase().startsWith(f.toLowerCase()));if(m.length<=0)return;const b=m.findIndex(y=>this[e]===_.indexOf(y)),C=_.indexOf(b<m.length-1?m[b+1]:m[0]);this.setHighlightIndex(C),this.scrollActiveItemIntoViewIfNeeded(),this.focusActiveItemIfNeeded()},isValidCharacter(f){return f.length===1},jumpToBeginning(){this.setHighlightIndex(0)},jumpToEnd(){this.setHighlightIndex(this._itemsLength()-1)},setHighlightIndex(f){this[e]=f,this[n]=this._getItemId(f),this._itemsLength()&&s&&this[s](f)},setHighlightId(f){this[n]=f,this[e]=this._getItemIndex(f),this._itemsLength()&&s&&this[s](this._getItemIndex(f))},_getItemIndex(f){const _=this._getListElement();return _?Array.from(_.querySelectorAll(`[role="${t}"], #sr-only-close-button`)).indexOf(_.querySelector(`#${f}`)):void 0},_getItemId(f){var m;const _=this._getListElement();if(_)return(m=_.querySelectorAll(`[role="${t}"], #sr-only-close-button`)[f])==null?void 0:m.id},scrollActiveItemIntoViewIfNeeded(){if(!this.scrollToOnHighlight)return;const f=this[r];if(f){const _=this._getListElement();this.scrollElementIntoViewIfNeeded(f,null,null,_)}},focusActiveItemIfNeeded(){if(!this.focusOnKeyboardNavigation)return;const f=this[r];f&&f.focus()}}}),En={DEFAULT:"default",CUSTOM:"custom"},Ne={ARROW_KEYS:"arrow-keys",TAB:"tab",NONE:"none"};const Yo={name:"DtItemLayout",props:{as:{type:String,default:"div"}}};var Zo=function(){var e=this,n=e._self._c;return n(e.as,{tag:"component",staticClass:"dt-item-layout"},[e.$slots.left?n("section",{staticClass:"dt-item-layout--left",attrs:{"data-qa":"dt-item-layout-left-wrapper"}},[e._t("left")],2):e._e(),n("section",{staticClass:"dt-item-layout--content",attrs:{"data-qa":"dt-item-layout-content-wrapper"}},[e.$slots.default?n("div",{staticClass:"dt-item-layout--title",attrs:{"data-qa":"dt-item-layout-title-wrapper"}},[e._t("default")],2):e._e(),e.$slots.subtitle?n("div",{class:["dt-item-layout--subtitle",{"d-mtn2":e.$slots.default}],attrs:{"data-qa":"dt-item-layout-subtitle-wrapper"}},[e._t("subtitle")],2):e._e(),e.$slots.bottom?n("div",{staticClass:"dt-item-layout--bottom",attrs:{"data-qa":"dt-item-layout-bottom-wrapper"}},[e._t("bottom")],2):e._e()]),e.$slots.right?n("section",{staticClass:"dt-item-layout--right",attrs:{"data-qa":"dt-item-layout-right-wrapper"}},[e._t("right")],2):e._e(),e.$slots.selected?n("section",{staticClass:"dt-item-layout--selected",attrs:{"data-qa":"dt-item-layout-selected-wrapper"}},[e._t("selected")],2):e._e()])},Xo=[],Qo=h.normalizeComponent(Yo,Zo,Xo,!1,null,"9afad3c4",null,null);const tn=Qo.exports;const Jo={name:"DtListItem",components:{DtItemLayout:tn,DtIcon:V},inject:{highlightId:{default:null}},props:{id:{type:String,default(){return de.getUniqueString()}},role:{type:String,default:"listitem"},elementType:{type:String,default:"li"},type:{type:String,default:En.DEFAULT,validator:t=>Object.values(En).includes(t)},navigationType:{type:String,default:Ne.NONE,validator:t=>Object.values(Ne).includes(t)},selected:{type:Boolean,default:!1}},emits:["click","keydown","mousemove","mouseleave"],data(){return{injected:!1,mouseHighlighted:!1}},computed:{listItemType(){switch(this.type){case En.DEFAULT:return tn;default:return null}},listItemListeners(){return{...this.$listeners,keydown:t=>{["enter","space"].includes(t.code.toLowerCase())&&this.onClick(t),this.$emit("keydown",t)},mousemove:t=>{this.onMouseHover(t),this.$emit("mousemove",t)},mouseleave:t=>{this.onMouseLeave(t),this.$emit("mouseleave",t)}}},isHighlighted(){return this.isHoverable?this.highlightId&&this.highlightId()?this.id===this.highlightId():this.mouseHighlighted:!1},isFocusable(){return this.navigationType===Ne.TAB},isHoverable(){return this.navigationType!==Ne.NONE}},methods:{onClick(t){this.$emit("click",t)},onMouseHover(){this.mouseHighlighted=!0},onMouseLeave(){this.mouseHighlighted=!1}}};var el=function(){var e=this,n=e._self._c;return n(e.elementType,e._g({tag:"component",class:["dt-list-item",{"dt-list-item--focusable":e.isFocusable,"dt-list-item--highlighted":e.isHighlighted,"dt-list-item--static":!e.isHoverable}],attrs:{id:e.id,tabindex:e.isFocusable?0:-1,role:e.role,"aria-selected":e.isHighlighted}},e.listItemListeners),[e.listItemType?n(e.listItemType,{tag:"component",scopedSlots:e._u([e._l(e.$slots,function(a,r){return{key:r,fn:function(){return[e._t(r)]},proxy:!0}}),e.selected?{key:"selected",fn:function(){return[n("dt-icon",{staticClass:"dt-list-item--selected-icon",attrs:{name:"check",size:"400"}})]},proxy:!0}:null],null,!0)}):e._t("default")],2)},tl=[],nl=h.normalizeComponent(Jo,el,tl,!1,null,null,null,null);const It=nl.exports,al={name:"ComboboxLoadingList",components:{DtListItem:It,DtSkeleton:h.DtSkeleton}};var rl=function(){var e=this,n=e._self._c;return n("ol",{staticClass:"d-p0 d-mt8 d-hmx332 d-of-y-auto",attrs:{"aria-busy":"true"}},e._l(7,function(a){return n("dt-list-item",{key:a,attrs:{role:"option","navigation-type":"none"}},[n("dt-skeleton",{attrs:{"text-option":{type:"body"},offset:0}})],1)}),1)},il=[],sl=h.normalizeComponent(al,rl,il,!1,null,null,null,null);const Nr=sl.exports;const ol={name:"ComboboxEmptyList",components:{DtListItem:It},props:{message:{type:String,required:!0},itemClass:{type:[String,Object,Array],default:""}}};var ll=function(){var e=this,n=e._self._c;return n("ol",{staticClass:"d-p0",attrs:{"data-qa":"dt-combobox-empty-list"}},[e._t("default",function(){return[n("dt-list-item",{class:["dt-empty-list-item",e.itemClass],attrs:{role:"option","navigation-type":"none",type:"custom"}},[n("span",[e._v(e._s(e.message))])])]})],2)},dl=[],cl=h.normalizeComponent(ol,ll,dl,!1,null,null,null,null);const Br=cl.exports,Fr={EXTRA_SMALL:"xs",SMALL:"sm",DEFAULT:"md",LARGE:"lg",EXTRA_LARGE:"xl"},ul={name:"DtCombobox",components:{ComboboxLoadingList:Nr,ComboboxEmptyList:Br},mixins:[oa({indexKey:"highlightIndex",idKey:"highlightId",listElementKey:"getListElement",afterHighlightMethod:"afterHighlight",beginningOfListMethod:"beginningOfListMethod",endOfListMethod:"endOfListMethod",activeItemKey:"activeItemEl"})],props:{label:{type:String,required:!0},labelVisible:{type:Boolean,default:!0},size:{type:String,default:null,validator:t=>Object.values(Fr).includes(t)},description:{type:String,default:""},listId:{type:String,default(){return z()}},onBeginningOfList:{type:Function,default:null},onEndOfList:{type:Function,default:null},showList:{type:Boolean,default:!1},listRenderedOutside:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},emptyList:{type:Boolean,default:!1},emptyStateMessage:{type:String,default:""},emptyStateClass:{type:[String,Object,Array],default:""},clickOnSelect:{type:Boolean,default:!1}},emits:["select","escape","highlight","opened"],data(){return{outsideRenderedListRef:null}},computed:{inputProps(){return{label:this.label,labelVisible:this.labelVisible,size:this.size,description:this.description,role:"combobox","aria-label":this.label,"aria-expanded":this.showList.toString(),"aria-owns":this.listId,"aria-haspopup":"listbox","aria-activedescendant":this.activeItemId,"aria-controls":this.listId}},listProps(){return{role:"listbox",id:this.listId,class:"d-ps-relative","aria-label":this.label}},beginningOfListMethod(){return this.onBeginningOfList||this.jumpToEnd},endOfListMethod(){return this.onEndOfList||this.jumpToBeginning},activeItemId(){if(!(!this.showList||this.highlightIndex<0||this.loading))return this.highlightId},activeItemEl(){return this.highlightId?this.getListElement().querySelector("#"+this.highlightId):""}},watch:{showList(t){this.listRenderedOutside||(this.setInitialHighlightIndex(),this.$emit("opened",t)),!t&&this.outsideRenderedListRef&&(this.outsideRenderedListRef.removeEventListener("mousemove",this.onMouseHighlight),this.outsideRenderedListRef=null)},loading(t){this.$nextTick(()=>{this.setInitialHighlightIndex()})},$props:{deep:!0,immediate:!0,handler(){this.validateEmptyListProps()}}},created(){this.validateEmptyListProps()},methods:{onMouseHighlight(t){if(this.loading)return;const e=t.target.closest("li");e&&this.highlightId!==e.id&&this.setHighlightId(e.id)},getListElement(){var t;return this.outsideRenderedListRef??((t=this.$refs.listWrapper)==null?void 0:t.querySelector(`#${this.listId}`))},clearHighlightIndex(){this.showList&&this.setHighlightIndex(-1)},afterHighlight(){this.loading||this.$emit("highlight",this.highlightIndex)},onEnterKey(){var t;this.loading||this.emptyList||this.highlightIndex>=0&&(this.$emit("select",this.highlightIndex),this.clickOnSelect&&((t=this.activeItemEl)==null||t.click()))},onEscapeKey(){this.$emit("escape")},onOpen(t,e){var n;this.outsideRenderedListRef=e,(n=this.outsideRenderedListRef)==null||n.addEventListener("mousemove",this.onMouseHighlight),this.$emit("opened",t),t&&this.setInitialHighlightIndex()},onKeyValidation(t,e){!this.showList||!this.getListElement()||this[e](t)},setInitialHighlightIndex(){this.showList&&this.$nextTick(()=>{this.setHighlightIndex(this.loading?-1:0)})},validateEmptyListProps(){this.$slots.emptyListItem||(this.emptyList&&!this.emptyStateMessage||!this.emptyList&&this.emptyStateMessage)&&console.error(`Invalid props: you must pass both props emptyList and emptyStateMessage to show the
|
|
5
|
-
empty message.`)}}};var pl=function(){var e=this,n=e._self._c;return n("div",{on:{keydown:[function(a){return!a.type.indexOf("key")&&e._k(a.keyCode,"esc",27,a.key,["Esc","Escape"])?null:(a.stopPropagation(),e.onKeyValidation(a,"onEscapeKey"))},function(a){return!a.type.indexOf("key")&&e._k(a.keyCode,"enter",13,a.key,"Enter")||a.ctrlKey||a.shiftKey||a.altKey||a.metaKey?null:e.onKeyValidation(a,"onEnterKey")},function(a){return!a.type.indexOf("key")&&e._k(a.keyCode,"up",38,a.key,["Up","ArrowUp"])?null:(a.stopPropagation(),a.preventDefault(),e.onKeyValidation(a,"onUpKey"))},function(a){return!a.type.indexOf("key")&&e._k(a.keyCode,"down",40,a.key,["Down","ArrowDown"])?null:(a.stopPropagation(),a.preventDefault(),e.onKeyValidation(a,"onDownKey"))},function(a){return!a.type.indexOf("key")&&e._k(a.keyCode,"home",void 0,a.key,void 0)?null:(a.stopPropagation(),a.preventDefault(),e.onKeyValidation(a,"onHomeKey"))},function(a){return!a.type.indexOf("key")&&e._k(a.keyCode,"end",void 0,a.key,void 0)?null:(a.stopPropagation(),a.preventDefault(),e.onKeyValidation(a,"onEndKey"))}]}},[n("div",{attrs:{"data-qa":"dt-combobox-input-wrapper"}},[e._t("input",null,{inputProps:e.inputProps})],2),e.showList?n("div",{ref:"listWrapper",attrs:{"data-qa":"dt-combobox-list-wrapper"},on:{mouseleave:e.clearHighlightIndex,focusout:e.clearHighlightIndex,"!mousemove":function(a){return e.onMouseHighlight.apply(null,arguments)}}},[e.loading&&!e.listRenderedOutside?n("combobox-loading-list",e._b({},"combobox-loading-list",e.listProps,!1)):e.emptyList&&(e.emptyStateMessage||e.$slots.emptyListItem)&&!e.listRenderedOutside?n("combobox-empty-list",e._b({attrs:{message:e.emptyStateMessage,"item-class":e.emptyStateClass}},"combobox-empty-list",e.listProps,!1),[e._t("emptyListItem")],2):e._t("list",null,{listProps:e.listProps,opened:e.onOpen,clearHighlightIndex:e.clearHighlightIndex})],2):e._e()])},fl=[],hl=h.normalizeComponent(ul,pl,fl,!1,null,null,null,null);const Vr=hl.exports;const ml={name:"DtCollapsibleLazyShow",props:{show:{type:Boolean,default:null},appear:{type:Boolean,default:!1},elementType:{type:String,default:"div"}},data(){return{initialized:!!this.show}},computed:{isCSSEnabled(){return process.env.NODE_ENV!=="test"}},watch:{show:function(t){!t||this.initialized||(this.initialized=!0)}},methods:{beforeEnter(t){requestAnimationFrame(()=>{t.style.height||(t.style.height="0px"),t.style.display=null})},enter(t){requestAnimationFrame(()=>{requestAnimationFrame(()=>{t.style.height=`${t.scrollHeight}px`})})},afterEnter(t){t.style.height=null},beforeLeave(t){requestAnimationFrame(()=>{t.style.height||(t.style.height=`${t.offsetHeight}px`)})},leave(t){requestAnimationFrame(()=>{requestAnimationFrame(()=>{t.style.height="0px"})})},afterLeave(t){t.style.height=null}}};var gl=function(){var e=this,n=e._self._c;return n("transition",e._g({attrs:{appear:e.appear,"enter-active-class":"enter-active","leave-active-class":"leave-active",css:e.isCSSEnabled},on:{"before-enter":e.beforeEnter,enter:e.enter,"after-enter":e.afterEnter,"before-leave":e.beforeLeave,leave:e.leave,"after-leave":e.afterLeave}},e.$listeners),[n(e.elementType,e._g({directives:[{name:"show",rawName:"v-show",value:e.show,expression:"show"}],tag:"component"},e.$listeners),[e.initialized?e._t("default"):e._e()],2)],1)},_l=[],vl=h.normalizeComponent(ml,gl,_l,!1,null,null,null,null);const bl=vl.exports,yl={name:"DtLazyShow",props:{show:{type:Boolean,default:!1},transition:{type:String,default:null},appear:{type:Boolean,default:!1}},data(){return{initialized:!!this.show}},computed:{isCSSEnabled(){return process.env.NODE_ENV!=="test"}},watch:{show:function(t){!t||this.initialized||(this.initialized=!0)}}};var Sl=function(){var e=this,n=e._self._c;return n("transition",e._g({attrs:{name:e.transition,appear:e.appear,css:e.isCSSEnabled}},e.$listeners),[n("div",e._g({directives:[{name:"show",rawName:"v-show",value:e.show,expression:"show"}]},e.$listeners),[e.initialized?e._t("default"):e._e()],2)])},Cl=[],wl=h.normalizeComponent(yl,Sl,Cl,!1,null,null,null,null);const rt=wl.exports,Ol={name:"DtCollapsible",components:{DtButton:G,DtCollapsibleLazyShow:bl,DtLazyShow:rt,DtIcon:V},props:{anchorText:{type:String,default:null},open:{type:Boolean,default:null},id:{type:String,default(){return z()}},elementType:{type:String,default:"div"},contentElementType:{type:String,default:"div"},anchorClass:{type:[String,Array,Object],default:null},contentClass:{type:[String,Array,Object],default:null},maxWidth:{type:String,default:null},maxHeight:{type:String,default:null},ariaLabel:{type:String,default:null},ariaLabelledBy:{type:String,default:null}},emits:["update:open","opened"],data(){return{isOpen:!0}},computed:{labelledBy(){return this.ariaLabelledBy||!this.ariaLabel&&z("DtCollapsible__anchor")}},watch:{open:{handler:function(t){t!==null&&(this.isOpen=t)},immediate:!0}},mounted(){this.validateProperAnchor()},methods:{onLeaveTransitionComplete(){this.$emit("opened",!1),this.open!==null&&this.$emit("update:open",!1)},onEnterTransitionComplete(){this.$emit("opened",!0,this.$refs.content),this.open!==null&&this.$emit("update:open",!0)},defaultToggleOpen(){this.open===null&&this.toggleOpen()},toggleOpen(){this.isOpen=!this.isOpen},validateProperAnchor(){!this.anchorText&&!this.$scopedSlots.anchor&&console.error("anchor text and anchor slot content cannot both be falsy")}}};var El=function(){var e=this,n=e._self._c;return n(e.elementType,e._g({ref:"collapsible",tag:"component"},e.$listeners),[n("div",{ref:"anchor",class:["d-dt-collapsibe__anchor",e.anchorClass],attrs:{id:!e.ariaLabelledBy&&e.labelledBy}},[e._t("anchor",function(){return[n("dt-button",{style:{width:e.maxWidth},attrs:{importance:"clear",kind:"muted","aria-controls":e.id,"aria-expanded":`${e.isOpen}`},on:{click:e.defaultToggleOpen}},[n("dt-icon",{staticClass:"d-icon d-icon--size-300 d-mr8 d-fl-shrink0",attrs:{name:e.isOpen?"chevron-down":"chevron-right"}}),n("span",{staticClass:"d-mr-auto d-truncate",attrs:{title:e.anchorText}},[e._v(" "+e._s(e.anchorText)+" ")])],1)]},{attrs:{"aria-controls":e.id,"aria-expanded":e.isOpen.toString(),role:"button"}})],2),n("dt-collapsible-lazy-show",e._g({ref:"contentWrapper",class:["d-dt-collapsible__content",e.contentClass],style:{"max-height":e.maxHeight,"max-width":e.maxWidth},attrs:{id:e.id,"aria-hidden":`${!e.isOpen}`,"aria-labelledby":e.labelledBy,"aria-label":e.ariaLabel,show:e.isOpen,"element-type":e.contentElementType,tabindex:"-1",appear:""},on:{"after-leave":e.onLeaveTransitionComplete,"after-enter":e.onEnterTransitionComplete}},e.$listeners),[e._t("content")],2)],1)},xl=[],Il=h.normalizeComponent(Ol,El,xl,!1,null,null,null,null);const qr=Il.exports;var X="top",ie="bottom",se="right",Q="left",dn="auto",Tt=[X,ie,se,Q],Je="start",vt="end",Tl="clippingParents",jr="viewport",ct="popper",Dl="reference",ka=Tt.reduce(function(t,e){return t.concat([e+"-"+Je,e+"-"+vt])},[]),Hr=[].concat(Tt,[dn]).reduce(function(t,e){return t.concat([e,e+"-"+Je,e+"-"+vt])},[]),Ll="beforeRead",kl="read",Al="afterRead",$l="beforeMain",Rl="main",Pl="afterMain",Ml="beforeWrite",Nl="write",Bl="afterWrite",Vn=[Ll,kl,Al,$l,Rl,Pl,Ml,Nl,Bl];function me(t){return t?(t.nodeName||"").toLowerCase():null}function te(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Fe(t){var e=te(t).Element;return t instanceof e||t instanceof Element}function ee(t){var e=te(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function la(t){if(typeof ShadowRoot>"u")return!1;var e=te(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function Fl(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var a=e.styles[n]||{},r=e.attributes[n]||{},i=e.elements[n];!ee(i)||!me(i)||(Object.assign(i.style,a),Object.keys(r).forEach(function(s){var l=r[s];l===!1?i.removeAttribute(s):i.setAttribute(s,l===!0?"":l)}))})}function Vl(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(a){var r=e.elements[a],i=e.attributes[a]||{},s=Object.keys(e.styles.hasOwnProperty(a)?e.styles[a]:n[a]),l=s.reduce(function(d,p){return d[p]="",d},{});!ee(r)||!me(r)||(Object.assign(r.style,l),Object.keys(i).forEach(function(d){r.removeAttribute(d)}))})}}const zr={name:"applyStyles",enabled:!0,phase:"write",fn:Fl,effect:Vl,requires:["computeStyles"]};function le(t){return t.split("-")[0]}var Be=Math.max,nn=Math.min,et=Math.round;function qn(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function Wr(){return!/^((?!chrome|android).)*safari/i.test(qn())}function tt(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var a=t.getBoundingClientRect(),r=1,i=1;e&&ee(t)&&(r=t.offsetWidth>0&&et(a.width)/t.offsetWidth||1,i=t.offsetHeight>0&&et(a.height)/t.offsetHeight||1);var s=Fe(t)?te(t):window,l=s.visualViewport,d=!Wr()&&n,p=(a.left+(d&&l?l.offsetLeft:0))/r,c=(a.top+(d&&l?l.offsetTop:0))/i,f=a.width/r,_=a.height/i;return{width:f,height:_,top:c,right:p+f,bottom:c+_,left:p,x:p,y:c}}function da(t){var e=tt(t),n=t.offsetWidth,a=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-a)<=1&&(a=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:a}}function Ur(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&la(n)){var a=e;do{if(a&&t.isSameNode(a))return!0;a=a.parentNode||a.host}while(a)}return!1}function ce(t){return te(t).getComputedStyle(t)}function ql(t){return["table","td","th"].indexOf(me(t))>=0}function Te(t){return((Fe(t)?t.ownerDocument:t.document)||window.document).documentElement}function cn(t){return me(t)==="html"?t:t.assignedSlot||t.parentNode||(la(t)?t.host:null)||Te(t)}function Aa(t){return!ee(t)||ce(t).position==="fixed"?null:t.offsetParent}function jl(t){var e=/firefox/i.test(qn()),n=/Trident/i.test(qn());if(n&&ee(t)){var a=ce(t);if(a.position==="fixed")return null}var r=cn(t);for(la(r)&&(r=r.host);ee(r)&&["html","body"].indexOf(me(r))<0;){var i=ce(r);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||e&&i.willChange==="filter"||e&&i.filter&&i.filter!=="none")return r;r=r.parentNode}return null}function Dt(t){for(var e=te(t),n=Aa(t);n&&ql(n)&&ce(n).position==="static";)n=Aa(n);return n&&(me(n)==="html"||me(n)==="body"&&ce(n).position==="static")?e:n||jl(t)||e}function ca(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function ft(t,e,n){return Be(t,nn(e,n))}function Hl(t,e,n){var a=ft(t,e,n);return a>n?n:a}function Kr(){return{top:0,right:0,bottom:0,left:0}}function Gr(t){return Object.assign({},Kr(),t)}function Yr(t,e){return e.reduce(function(n,a){return n[a]=t,n},{})}var zl=function(e,n){return e=typeof e=="function"?e(Object.assign({},n.rects,{placement:n.placement})):e,Gr(typeof e!="number"?e:Yr(e,Tt))};function Wl(t){var e,n=t.state,a=t.name,r=t.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,l=le(n.placement),d=ca(l),p=[Q,se].indexOf(l)>=0,c=p?"height":"width";if(!(!i||!s)){var f=zl(r.padding,n),_=da(i),m=d==="y"?X:Q,b=d==="y"?ie:se,C=n.rects.reference[c]+n.rects.reference[d]-s[d]-n.rects.popper[c],y=s[d]-n.rects.reference[d],w=Dt(i),T=w?d==="y"?w.clientHeight||0:w.clientWidth||0:0,k=C/2-y/2,o=f[m],O=T-_[c]-f[b],g=T/2-_[c]/2+k,E=ft(o,g,O),P=d;n.modifiersData[a]=(e={},e[P]=E,e.centerOffset=E-g,e)}}function Ul(t){var e=t.state,n=t.options,a=n.element,r=a===void 0?"[data-popper-arrow]":a;if(r!=null&&!(typeof r=="string"&&(r=e.elements.popper.querySelector(r),!r))){if(process.env.NODE_ENV!=="production"&&(ee(r)||console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).',"To use an SVG arrow, wrap it in an HTMLElement that will be used as","the arrow."].join(" "))),!Ur(e.elements.popper,r)){process.env.NODE_ENV!=="production"&&console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper',"element."].join(" "));return}e.elements.arrow=r}}const Kl={name:"arrow",enabled:!0,phase:"main",fn:Wl,effect:Ul,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function nt(t){return t.split("-")[1]}var Gl={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Yl(t,e){var n=t.x,a=t.y,r=e.devicePixelRatio||1;return{x:et(n*r)/r||0,y:et(a*r)/r||0}}function $a(t){var e,n=t.popper,a=t.popperRect,r=t.placement,i=t.variation,s=t.offsets,l=t.position,d=t.gpuAcceleration,p=t.adaptive,c=t.roundOffsets,f=t.isFixed,_=s.x,m=_===void 0?0:_,b=s.y,C=b===void 0?0:b,y=typeof c=="function"?c({x:m,y:C}):{x:m,y:C};m=y.x,C=y.y;var w=s.hasOwnProperty("x"),T=s.hasOwnProperty("y"),k=Q,o=X,O=window;if(p){var g=Dt(n),E="clientHeight",P="clientWidth";if(g===te(n)&&(g=Te(n),ce(g).position!=="static"&&l==="absolute"&&(E="scrollHeight",P="scrollWidth")),g=g,r===X||(r===Q||r===se)&&i===vt){o=ie;var M=f&&g===O&&O.visualViewport?O.visualViewport.height:g[E];C-=M-a.height,C*=d?1:-1}if(r===Q||(r===X||r===ie)&&i===vt){k=se;var A=f&&g===O&&O.visualViewport?O.visualViewport.width:g[P];m-=A-a.width,m*=d?1:-1}}var I=Object.assign({position:l},p&&Gl),$=c===!0?Yl({x:m,y:C},te(n)):{x:m,y:C};if(m=$.x,C=$.y,d){var B;return Object.assign({},I,(B={},B[o]=T?"0":"",B[k]=w?"0":"",B.transform=(O.devicePixelRatio||1)<=1?"translate("+m+"px, "+C+"px)":"translate3d("+m+"px, "+C+"px, 0)",B))}return Object.assign({},I,(e={},e[o]=T?C+"px":"",e[k]=w?m+"px":"",e.transform="",e))}function Zl(t){var e=t.state,n=t.options,a=n.gpuAcceleration,r=a===void 0?!0:a,i=n.adaptive,s=i===void 0?!0:i,l=n.roundOffsets,d=l===void 0?!0:l;if(process.env.NODE_ENV!=="production"){var p=ce(e.elements.popper).transitionProperty||"";s&&["transform","top","right","bottom","left"].some(function(f){return p.indexOf(f)>=0})&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',`
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const re=require("vue"),h=require("./emoji-34a4417c.cjs"),ae={ERROR:"error",WARNING:"warning",SUCCESS:"success"},dr={LARGE:"lg",EXTRA_LARGE:"xl"},ns={xs:"",sm:"",md:"",lg:"d-description--lg",xl:"d-description--xl"},as={xs:"d-label--xs",sm:"d-label--sm",md:"",lg:"d-label--lg",xl:"d-label--xl"},U={esc:"Esc",escape:"Escape",tab:"Tab",enter:"Enter",space:"Space",spacebar:"Spacebar",up:"Up",arrowup:"ArrowUp",left:"Left",arrowleft:"ArrowLeft",right:"Right",arrowright:"ArrowRight",down:"Down",arrowdown:"ArrowDown",home:"Home",end:"End"},cr=ae.ERROR,rs="dt";let is=0,Ta;const ss=typeof setImmediate=="function"?setImmediate:setTimeout;function z(t=rs){return`${t}${is++}`}function ur(t,e){if(e){const n=os(e);return t[Math.abs(n)%t.length]}else return t[pr(t.length)]}function os(t){let e;for(let n=0;n<t.length;n++)e=Math.imul(31,e)+t.charCodeAt(n)|0;return e}function pr(t){return Math.floor(Math.random()*t)}function _t(t){return t?t.map(e=>typeof e=="string"?{message:e,type:cr}:e):[]}function aa(t){const e=Ie(t);return!t||!e?[]:t.filter(n=>!!n.message&&n.type===e)}function Ie(t){return t?Gt(t,ae.ERROR)?ae.ERROR:Gt(t,ae.WARNING)?ae.WARNING:Gt(t,ae.SUCCESS)?ae.SUCCESS:null:null}function Gt(t,e){return!t||!e?!1:t.some(n=>(n==null?void 0:n.type)===e)}const ls={name:"html-fragment",functional:!0,props:["html"],render(t,e){return new re({name:"Inner",beforeCreate(){this.$createElement=t},template:`<div>${e.props.html}</div>`}).$mount()._vnode.children}},ds=()=>new Promise(t=>{ss(t)}),fr=t=>t==null?void 0:t.toLowerCase().split("-").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(""),cs=t=>t.replace(/\.?([A-Z0-9]+)/g,(e,n)=>"-"+n.toLowerCase()).replace(/^-/,"");function us(t,e=300){clearTimeout(Ta),Ta=setTimeout(t,e)}function hr(t){const e=t.getBoundingClientRect(),n={top:e.top<0,left:e.left<0,bottom:e.bottom>(window.innerHeight||document.documentElement.clientHeight),right:e.right>(window.innerWidth||document.documentElement.clientWidth)};return n.any=Object.values(n).some(a=>a),n.all=Object.values(n).every(a=>a),n}const ps=/(?:(?:[^\s!@#$%^&*()_=+[\]{}\\|;:'",.<>/?]+)\.)/,fs=new RegExp("(?:com|ru|org|net|de|jp|uk|br|it|pl|fr|in|au|ir|info|nl|cn|es|cz|kr|ca|eu|ua|co|gr|za|ro|biz|ch|se|tw|mx|vn|hu|be|tr|at|dk|tv|me|ar|sk|no|us|fi|id|cl|xyz|io|pt|by|il|ie|nz|kz|hk|lt|cc|my|sg|club|bg|edu|рф|pk|su|top|th|hr|rs|pe|pro|si|az|lv|pw|ae|ph|online|ng|ee|ws|ve|cat)"),hs=new RegExp("(?:(?:[0-9]|[1-9]\\d|1\\d{2}|2[0-4]\\d|25[0-5])\\.){3}(?:[0-9]|[1-9]\\d|1\\d{2}|2[0-4]\\d|25[0-5])"),mr=new RegExp("(?:"+[[ps.source,fs.source].join("+"),hs.source].join("|")+")"),ms=/(?:(?:[;/][^#?<>\s]*)?)/,gr=/(?:(?:\?[^#<>\s]+)?(?:#[^<>\s]+)?)/,_r=new RegExp("\\b"+[mr.source,ms.source,gr.source,"(?!\\w)"].join("+")),vr=/\b[a-z\d.-]+:\/\/[^<>\s]+/,br=new RegExp("(?:mailto:)?[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@"+[mr.source,gr.source].join("+")+"(?!\\w)");function yr(t=7,e=15){let n=!0;try{RegExp("(?<=\\W)")}catch{n=!1}return new RegExp(`${n?"(?:^|(?<=\\W))":""}(?![\\s\\-])\\+?(?:[0-9()\\- \\t]{${t},${e}})(?=\\b)(?=\\W(?=\\W|$)|\\s|$)`)}const Sr=yr(),gs=new RegExp([_r.source,vr.source,br.source,Sr.source].join("|"),"gi");function _s(t){var e;return!t||!["string","number"].includes(typeof t)?!1:(t=t.toString(),((e=Sr.exec(t))==null?void 0:e[0])===t)}function vs(t){var e,n;return!t||typeof t!="string"?!1:((e=_r.exec(t))==null?void 0:e[0])===t||((n=vr.exec(t))==null?void 0:n[0])===t}function bs(t){var e;return!t||typeof t!="string"?!1:((e=br.exec(t))==null?void 0:e[0])===t}function on(t){return t.filter(e=>!!e).join(" ")}const de={getUniqueString:z,getRandomElement:ur,getRandomInt:pr,formatMessages:_t,filterFormattedMessages:aa,hasFormattedMessageOfType:Gt,getValidationState:Ie,htmlFragment:ls,flushPromises:ds,kebabCaseToPascalCase:fr,debounce:us,isOutOfViewPort:hr,getPhoneNumberRegex:yr,linkRegex:gs,isEmailAddress:bs,isPhoneNumber:_s,isURL:vs,safeConcatStrings:on},Xe={BUSY:"busy",AWAY:"away",OFFLINE:"offline",ACTIVE:"active"},Cr=[Xe.BUSY,Xe.AWAY,Xe.OFFLINE,Xe.ACTIVE],ys={name:"DtPresence",props:{presence:{type:String,default:Xe.ACTIVE,validator:t=>Cr.includes(t)},srText:{type:String,default:null}}};var Ss=function(){var e=this,n=e._self._c;return n("div",{staticClass:"d-presence",attrs:{"data-qa":"dt-presence",role:"status","aria-live":e.$attrs.ariaLive||"off"}},[e.srText?n("span",{staticClass:"sr-only",attrs:{"data-qa":"dt-presence-sr-text"}},[e._v(e._s(e.srText)+" ")]):e._e(),n("div",{staticClass:"d-presence__inner",class:{"d-presence__inner--active":e.presence==="active","d-presence__inner--away":e.presence==="away","d-presence__inner--busy":e.presence==="busy","d-presence__inner--offline":e.presence==="offline"}})])},Cs=[],ws=h.normalizeComponent(ys,Ss,Cs,!1,null,null,null,null);const wr=ws.exports,Os={name:"DtIcon",props:{size:{type:String,default:"500",validator:t=>Object.keys(h.ICON_SIZE_MODIFIERS).includes(t)},name:{type:String,required:!0},ariaLabel:{type:String,default:void 0}},computed:{iconSize(){return h.ICON_SIZE_MODIFIERS[this.size]},iconName(){return fr(this.name)},currentIcon(){return h.DIALTONE_ICONS[this.iconName]}}};var Es=function(){var e=this,n=e._self._c;return e.currentIcon?n(e.currentIcon,{tag:"component",class:e.iconSize,attrs:{"data-qa":"dt-icon","aria-hidden":e.ariaLabel?"false":"true","aria-label":e.ariaLabel}}):e._e()},xs=[],Is=h.normalizeComponent(Os,Es,xs,!1,null,null,null,null);const V=Is.exports,Yt={xs:"d-avatar--xs",sm:"d-avatar--sm",md:"d-avatar--md",lg:"d-avatar--lg",xl:"d-avatar--xl"},Or={default:"",icon:"d-avatar__icon",initials:"d-avatar__initials"},Er={md:"d-avatar__presence--md",lg:"d-avatar__presence--lg"},Rn={NONE:"",BUSY:"busy",AWAY:"away",OFFLINE:"offline",ACTIVE:"active"},xr={xs:"100",sm:"200",md:"300",lg:"500",xl:"600"},Ir=["100","200","300","400","500","600","700","800","900","1000","1100","1200","1300","1400","1500","1600","1700","1800"],Pn=t=>t>1;function Ts(){return[void 0,...Object.keys(h.dialtoneIcons).map(t=>cs(t))]}const Ds=t=>{if(typeof t!="string"||!t.trim())return"";const e=t.trim().split(/\s+/g);return e.length===1?e.join("").substring(0,2):e.filter((n,a)=>a===0||a===e.length-1).map(n=>n.slice(0,1).toUpperCase()).join("")};const Ls=Ts(),ks={name:"DtAvatar",components:{DtPresence:wr,DtIcon:V},inheritAttrs:!1,props:{id:{type:String,default(){return z()}},seed:{type:String,default:void 0},color:{type:String,default:void 0},size:{type:String,default:"md",validator:t=>Object.keys(Yt).includes(t)},avatarClass:{type:[String,Array,Object],default:""},canvasClass:{type:[String,Array,Object],default:""},iconClass:{type:[String,Array,Object],default:""},presence:{type:String,default:Rn.NONE,validator:t=>Object.values(Rn).includes(t)},presenceProps:{type:Object,default:()=>({})},group:{type:Number,default:void 0,validator:t=>Pn(t)},overlayIcon:{type:String,default:""},overlayText:{type:String,default:""},overlayClass:{type:[String,Array,Object],default:""},imageSrc:{type:String,default:""},imageAlt:{type:String,default:""},iconName:{type:String,default:void 0,validator:t=>Ls.includes(t)},iconSize:{type:String,default:"",validator:t=>!t||Object.keys(h.ICON_SIZE_MODIFIERS).includes(t)},fullName:{type:String,default:""},clickable:{type:Boolean,default:!1}},emits:["click"],data(){return{AVATAR_SIZE_MODIFIERS:Yt,AVATAR_KIND_MODIFIERS:Or,AVATAR_PRESENCE_SIZE_MODIFIERS:Er,AVATAR_ICON_SIZES:xr,imageLoadedSuccessfully:null,formattedInitials:"",initializing:!1}},computed:{isNotIconType(){return!this.iconName},avatarClasses(){return["d-avatar",Yt[this.validatedSize],this.avatarClass,{"d-avatar--group":this.showGroup,[`d-avatar--color-${this.getColor()}`]:this.isNotIconType,"d-avatar--clickable":this.clickable}]},overlayClasses(){return["d-avatar__overlay",this.overlayClass]},showGroup(){return Pn(this.group)},formattedGroup(){return this.group>99?"99+":this.group},validatedSize(){return this.group?"xs":this.size},showImage(){return this.imageLoadedSuccessfully!==!1&&this.imageSrc},buttonAriaLabel(){if(this.clickable)return this.fullName||this.imageAlt||this.$attrs["aria-label"]}},watch:{fullName:{immediate:!0,handler(t){this.formatInitials(t)}},imageSrc(t){this.imageLoadedSuccessfully=null,t&&(this.validateProps(),this.setImageListeners())}},mounted(){this.validateProps(),this.setImageListeners()},methods:{async setImageListeners(){await this.$nextTick();const t=this.$refs.avatarImage;t&&(t.addEventListener("load",()=>this._loadedImageEventHandler(t),{once:!0}),t.addEventListener("error",()=>this._erroredImageEventHandler(t),{once:!0}))},formatInitials(t){const e=Ds(t);this.validatedSize==="xs"?this.formattedInitials="":this.validatedSize==="sm"?this.formattedInitials=e[0]:this.formattedInitials=e},getColor(){return this.color??ur(Ir,this.seed)},_loadedImageEventHandler(t){this.imageLoadedSuccessfully=!0,t.classList.remove("d-d-none")},_erroredImageEventHandler(t){this.imageLoadedSuccessfully=!1,t.classList.add("d-d-none")},validateProps(){if(this.imageSrc&&!(this.fullName||this.imageAlt))throw new Error("full-name or image-alt must be set if image-src is provided")},handleClick(t){this.clickable&&this.$emit("click",t)}}};var As=function(){var e=this,n=e._self._c;return n(e.clickable?"button":"div",{tag:"component",class:e.avatarClasses,attrs:{id:e.id,"data-qa":"dt-avatar","aria-label":e.buttonAriaLabel},on:{click:function(a){return a.stopPropagation(),e.handleClick.apply(null,arguments)}}},[n("div",{ref:"canvas",class:[e.canvasClass,"d-avatar__canvas",{"d-avatar--image-loaded":e.imageLoadedSuccessfully}]},[e.showImage?n("img",{ref:"avatarImage",staticClass:"d-avatar__image",attrs:{"data-qa":"dt-avatar-image",src:e.imageSrc,alt:e.imageAlt||e.fullName}}):e.iconName?n("dt-icon",{class:[e.iconClass,e.AVATAR_KIND_MODIFIERS.icon],attrs:{name:e.iconName,size:e.iconSize||e.AVATAR_ICON_SIZES[e.size],"data-qa":"dt-avatar-icon"}}):n("span",{class:[e.AVATAR_KIND_MODIFIERS.initials,"d-ps-absolute d-zi-base d-us-none"]},[e._v(" "+e._s(e.formattedInitials)+" ")])],1),e.overlayIcon||e.overlayText?n("div",{class:e.overlayClasses},[e.overlayIcon?n("dt-icon",{staticClass:"d-avatar__overlay-icon",attrs:{name:e.overlayIcon}}):e.overlayText?n("p",{staticClass:"d-avatar__overlay-text"},[e._v(" "+e._s(e.overlayText)+" ")]):e._e()],1):e._e(),e.showGroup?n("span",{staticClass:"d-avatar__count",attrs:{"data-qa":"dt-avatar-count"}},[e._v(e._s(e.formattedGroup))]):e._e(),e.presence&&!e.showGroup?n("dt-presence",e._b({class:["d-avatar__presence",e.AVATAR_PRESENCE_SIZE_MODIFIERS[e.size]],attrs:{presence:e.presence,"data-qa":"dt-presence"}},"dt-presence",e.presenceProps,!1)):e._e()],1)},$s=[],Rs=h.normalizeComponent(ks,As,$s,!1,null,null,null,null);const Et=Rs.exports,Nn={default:"",info:"d-badge--info",success:"d-badge--success",warning:"d-badge--warning",critical:"d-badge--critical",bulletin:"d-badge--bulletin",ai:"d-badge--ai"},Mn={label:"",count:"d-badge--count"},Bn={"black-400":"d-badge--decorate-black-400","black-500":"d-badge--decorate-black-500","black-900":"d-badge--decorate-black-900","red-200":"d-badge--decorate-red-200","red-300":"d-badge--decorate-red-300","red-400":"d-badge--decorate-red-400","purple-200":"d-badge--decorate-purple-200","purple-300":"d-badge--decorate-purple-300","purple-400":"d-badge--decorate-purple-400","purple-500":"d-badge--decorate-purple-500","blue-200":"d-badge--decorate-blue-200","blue-300":"d-badge--decorate-blue-300","blue-400":"d-badge--decorate-blue-400","green-300":"d-badge--decorate-green-300","green-400":"d-badge--decorate-green-400","green-500":"d-badge--decorate-green-500","gold-300":"d-badge--decorate-gold-300","gold-400":"d-badge--decorate-gold-400","gold-500":"d-badge--decorate-gold-500","magenta-200":"d-badge--decorate-magenta-200","magenta-300":"d-badge--decorate-magenta-300","magenta-400":"d-badge--decorate-magenta-400"},Ps={name:"DtBadge",components:{DtIcon:V},props:{iconLeft:{type:String,default:""},iconRight:{type:String,default:""},text:{type:String,default:""},kind:{type:String,default:"label",validator:t=>Object.keys(Mn).includes(t)},type:{type:String,default:"default",validator:t=>Object.keys(Nn).includes(t)},decoration:{type:String,default:void 0,validator:t=>Object.keys(Bn).includes(t)},labelClass:{type:[String,Array,Object],default:""}},data(){return{BADGE_TYPE_MODIFIERS:Nn,BADGE_KIND_MODIFIERS:Mn,BADGE_DECORATION_MODIFIERS:Bn}},computed:{hasIcons(){return this.iconLeft!==""||this.iconRight!==""}},watch:{$props:{immediate:!0,deep:!0,handler(){this.validateProps()}}},methods:{validateProps(){this.validateTypePropCombination(),this.validateDecorationPropCombination()},validateTypePropCombination(){this.type==="ai"&&this.kind==="count"&&console.error("DtBadge error: type: 'ai' with kind: 'count' is an invalid combination.")},validateDecorationPropCombination(){this.decoration&&((this.kind!=="label"||this.type!=="default")&&console.error("DtBadge error: decoration prop can only be used with kind: 'label' and type: 'default'."),this.hasIcons&&console.error("DtBadge error: decoration prop cannot be used with iconLeft or iconRight."))}}};var Ns=function(){var e=this,n=e._self._c;return n("span",{class:["d-badge",e.BADGE_TYPE_MODIFIERS[e.type],e.BADGE_KIND_MODIFIERS[e.kind],e.BADGE_DECORATION_MODIFIERS[e.decoration]],attrs:{"data-qa":"dt-badge"}},[e.decoration?n("span",{staticClass:"d-badge__decorative"}):e._e(),e.iconLeft||e.type==="ai"?n("span",{staticClass:"d-badge__icon-left"},[n("dt-icon",{attrs:{name:e.iconLeft||"dialpad-ai",size:"200"}})],1):e._e(),n("span",{class:["d-badge__label",e.labelClass]},[e._t("default",function(){return[e._v(" "+e._s(e.text)+" ")]})],2),e.iconRight?n("span",{staticClass:"d-badge__icon-right"},[n("dt-icon",{attrs:{name:e.iconRight,size:"200"}})],1):e._e()])},Ms=[],Bs=h.normalizeComponent(Ps,Ns,Ms,!1,null,null,null,null);const ra=Bs.exports,at=["base","error","info","success","warning"],Fs=["alert","alertdialog","status"],Vs=new Map([["info","info"],["success","check-circle"],["warning","alert-triangle"],["error","alert-circle"],["base","bell"]]),qs={name:"DtNoticeIcon",components:{DtIcon:V},props:{kind:{type:String,default:"base",validate(t){return at.includes(t)}}},computed:{defaultIcon(){return Vs.get(this.kind)}}};var js=function(){var e=this,n=e._self._c;return e.defaultIcon||e.$slots.default?n("div",{staticClass:"d-notice__icon",attrs:{"aria-hidden":"true"}},[e._t("default",function(){return[n("dt-icon",{attrs:{name:e.defaultIcon,size:"400"}})]})],2):e._e()},Hs=[],zs=h.normalizeComponent(qs,js,Hs,!1,null,null,null,null);const ia=zs.exports,Ws={name:"DtNoticeContent",props:{title:{type:String,default:""},titleId:{type:String,default:void 0},contentId:{type:String,default:void 0}}};var Us=function(){var e=this,n=e._self._c;return n("div",{staticClass:"d-notice__content",attrs:{"data-qa":"notice-content"}},[e.title||e.$slots.titleOverride?n("p",{staticClass:"d-notice__title",attrs:{id:e.titleId,"data-qa":"notice-content-title"}},[e._t("titleOverride",function(){return[e._v(" "+e._s(e.title)+" ")]})],2):e._e(),n("p",{staticClass:"d-notice__message",attrs:{id:e.contentId,"data-qa":"notice-content-message"}},[e._t("default")],2)])},Ks=[],Gs=h.normalizeComponent(Ws,Us,Ks,!1,null,null,null,null);const sa=Gs.exports,On={xs:"d-btn--xs",sm:"d-btn--sm",md:"",lg:"d-btn--lg",xl:"d-btn--xl"},Da={default:"",muted:"d-btn--muted",danger:"d-btn--danger",inverted:"d-btn--inverted"},La={clear:"",primary:"d-btn--primary",outlined:"d-btn--outlined"},Ys=["submit","reset","button"],ka={left:"d-btn__icon--left",right:"d-btn__icon--right",top:"d-btn__icon--top",bottom:"d-btn__icon--bottom"},Zs=[{circle:!0,kind:"default",importance:"primary",message:Wt(!0,"default","primary")},{circle:!0,kind:"danger",importance:"outlined",message:Wt(!0,"danger","outlined")},{circle:!0,kind:"muted",importance:"primary",message:Wt(!0,"muted","primary")},{circle:!1,kind:"muted",importance:"primary",message:Wt(!1,"muted","primary")}];function Wt(t,e,n){return`You cannot have a ${t?"circle ":""}button with kind: ${e} and importance: ${n} as it does not exist in our design system. See https://dialpad.design/components/button.html for a list of available button styles`}const Xs="danger",Qs="warning",Js="success",Tr="muted",Dr="inverted",Lr=["",Xs,Qs,Js,Tr,Dr],en={default:"",warning:"d-link--warning",danger:"d-link--danger",success:"d-link--success",muted:"d-link--muted",inverted:"d-link--inverted"},eo={name:"DtButton",props:{circle:{type:Boolean,default:!1},iconPosition:{type:String,default:"left",validator:t=>Object.keys(ka).includes(t)},importance:{type:String,default:"primary",validator:t=>Object.keys(La).includes(t)},link:{type:Boolean,default:!1},linkKind:{type:String,default:"default",validator:t=>Object.keys(en).includes(t)},disabled:{type:Boolean,default:!1},type:{type:String,default:"button",validator:t=>Ys.includes(t)},width:{type:String,default:null},size:{type:String,default:"md",validator:t=>Object.keys(On).includes(t)},labelClass:{type:[String,Array,Object],default:""},loading:{type:Boolean,default:!1},kind:{type:String,default:"default",validator:t=>Object.keys(Da).includes(t)},assertiveOnFocus:{type:Boolean,default:!1},active:{type:Boolean,default:!1}},emits:["click","focusin","focusout"],data(){return{ICON_POSITION_MODIFIERS:ka,isInFocus:!1}},computed:{buttonListeners(){return this.assertiveOnFocus?{...this.$listeners,focusin:t=>{this.isInFocus=!0},focusout:t=>{this.isInFocus=!1}}:this.$listeners},computedAriaLive(){return this.assertiveOnFocus&&this.isInFocus?"assertive":this.$attrs.ariaLive}},watch:{$props:{deep:!0,immediate:!0,handler(){process.env.NODE_ENV!=="production"&&(this.circle&&this.link&&re.util.warn("You cannot enable circle and link at the same time",this),this.isInvalidPropCombination(this.circle,this.kind,this.importance))}}},methods:{buttonClasses(){return this.link?["d-link",en[this.linkKind],On[this.size]]:["d-btn",La[this.importance],Da[this.kind],On[this.size],{"d-btn--circle":this.circle,"d-btn--loading":this.loading,"d-btn--icon-only":this.isIconOnly(),"d-btn--vertical":this.isVerticalIconLayout(),"d-btn--active":this.active}]},isInvalidPropCombination(t,e,n){for(const a of Zs)if(t===a.circle&&e===a.kind&&n===a.importance)return console.error(a.message),!1;return!0},shouldRenderIcon(){return this.$slots.icon&&!this.link},isIconOnly(){return this.shouldRenderIcon()&&!this.$slots.default},isVerticalIconLayout(){return this.shouldRenderIcon()&&!this.isIconOnly()&&["top","bottom"].includes(this.iconPosition)}}};var to=function(){var e=this,n=e._self._c;return n("button",e._g({class:["base-button__button",e.buttonClasses()],style:{width:e.width},attrs:{"data-qa":"dt-button",type:e.type,disabled:e.disabled,"aria-live":e.computedAriaLive,"aria-label":e.loading?"loading":e.$attrs["aria-label"]}},e.buttonListeners),[e.shouldRenderIcon()?n("span",{class:["base-button__icon","d-btn__icon",e.ICON_POSITION_MODIFIERS[e.iconPosition]],attrs:{"data-qa":"dt-button-icon"}},[e._t("icon")],2):e._e(),e.$slots.default?n("span",{class:["d-btn__label","base-button__label",e.labelClass],attrs:{"data-qa":"dt-button-label"}},[e._t("default")],2):e._e()])},no=[],ao=h.normalizeComponent(eo,to,no,!1,null,null,null,null);const G=ao.exports,Se={props:{visuallyHiddenClose:{type:Boolean,default:!1},visuallyHiddenCloseLabel:{type:String,default:null}},watch:{$props:{immediate:!0,deep:!0,handler(){this.validateVisuallyHiddenCloseProps()}}},computed:{showVisuallyHiddenClose(){return this.visuallyHiddenClose&&this.visuallyHiddenCloseLabel!=null}},methods:{validateVisuallyHiddenCloseProps(){this.visuallyHiddenClose&&!this.visuallyHiddenCloseLabel&&console.error(`If visuallyHiddenClose prop is true, the component includes
|
|
2
|
+
a visually hidden close button and you must set the visuallyHiddenCloseLabel prop.`)}}},ro={name:"SrOnlyCloseButton",components:{DtIcon:V,DtButton:G},props:{visuallyHiddenCloseLabel:{type:String,default:null}},methods:{close(){this.$emit("close")}}};var io=function(){var e=this,n=e._self._c;return n("dt-button",{staticClass:"d-vi-visible-sr",attrs:{id:"sr-only-close-button","data-qa":"dt-sr-only-close-button","aria-label":e.visuallyHiddenCloseLabel},on:{click:e.close,keydown:function(a){return!a.type.indexOf("key")&&e._k(a.keyCode,"space",32,a.key,[" ","Spacebar"])?null:(a.preventDefault(),a.stopPropagation(),e.close.apply(null,arguments))}}},[n("dt-icon",{attrs:{name:"close"}})],1)},so=[],oo=h.normalizeComponent(ro,io,so,!1,null,null,null,null);const ln=oo.exports,lo={name:"DtNoticeAction",components:{DtIcon:V,DtButton:G,SrOnlyCloseButton:ln},mixins:[Se],props:{closeButtonProps:{type:Object,default:()=>({})},hideClose:{type:Boolean,default:!1}},emits:["close"],computed:{noticeActionListeners(){return{...this.$listeners,click:t=>{this.close(),this.$emit("click",t)}}}},created(){!this.hideClose&&!this.closeButtonProps.ariaLabel&&console.error("Invalid props: you must pass in closeButtonProps.ariaLabel if the close button is displayed.")},mounted(){this.hideClose||(this.lastFocusedElement=document.activeElement)},beforeDestroy(){var t;(t=this.lastFocusedElement)==null||t.focus()},methods:{close(){this.$emit("close")}}};var co=function(){var e=this,n=e._self._c;return n("div",{staticClass:"d-notice__actions",attrs:{"data-qa":"notice-content-actions"}},[e._t("default"),e.hideClose?e._e():n("dt-button",e._g(e._b({ref:"closeButton",attrs:{"data-qa":"dt-notice-action-close-button",size:"sm",importance:"clear",circle:"","aria-label":e.closeButtonProps.ariaLabel?e.closeButtonProps.ariaLabel:"Close"},scopedSlots:e._u([{key:"icon",fn:function(){return[n("dt-icon",{attrs:{name:"close",size:"200"}})]},proxy:!0}],null,!1,1154370889)},"dt-button",e.closeButtonProps,!1),e.noticeActionListeners)),e.showVisuallyHiddenClose?n("sr-only-close-button",{attrs:{"visually-hidden-close-label":e.visuallyHiddenCloseLabel},on:{close:e.close}}):e._e()],2)},uo=[],po=h.normalizeComponent(lo,co,uo,!1,null,null,null,null);const oa=po.exports,kr=':not(:disabled):not([aria-disabled="true"]):not([role="presentation"])',fo=`${kr}:not([tabindex="-1"])`,ho="button,[href],input,select,textarea,details,[tabindex]",xt={methods:{async getFirstFocusableElement(t){await this.$nextTick();const e=this._getFocusableElements(t,!0);return this._getFirstFocusElement(e)},async focusFirstElement(t=this.$el){const e=await this.getFirstFocusableElement(t);e==null||e.focus({preventScroll:!0})},async focusElementById(t){var n;await this.$nextTick();const e=(n=this.$el)==null?void 0:n.querySelector(t);if(e){e.focus();return}console.warn('Could not find the element specified in dt-modal prop "initialFocusElement". Defaulting to focusing the first element.'),await this.focusFirstElement()},_getFirstFocusElement(t){if(!t.length)return;let e=t[0];return e.matches('[type="radio"]:not(:checked)')&&(e=t.find(n=>n.checked&&n.name===e.name)||e),e},_getFocusableElements(t=this.$el,e=!1){return t?[...t.querySelectorAll(ho)].filter(a=>{const r=window.getComputedStyle(a);return r.getPropertyValue("display")!=="none"&&r.getPropertyValue("visibility")!=="hidden"&&a.matches(e?kr:fo)}):[]},focusTrappedTabPress(t,e){if(!(t.key==="Tab"))return;const a=this._getFocusableElements(e);if(!a.length){t.preventDefault();return}const r=this._getFirstFocusElement(a),i=a[a.length-1];t.shiftKey?document.activeElement===r&&(i.focus(),t.preventDefault()):document.activeElement===i&&(r.focus(),t.preventDefault())}}},mo={name:"DtBanner",components:{DtNoticeIcon:ia,DtNoticeContent:sa,DtNoticeAction:oa},mixins:[xt,Se],props:{titleId:{type:String,default(){return de.getUniqueString()}},contentId:{type:String,default(){return de.getUniqueString()}},title:{type:String,default:""},important:{type:Boolean,default:!1},pinned:{type:Boolean,default:!1},kind:{type:String,default:"base",validate(t){return at.includes(t)}},closeButtonProps:{type:Object,default:()=>({})},hideClose:{type:Boolean,default:!1},hideIcon:{type:Boolean,default:!1},dialogClass:{type:String,default:""},backgroundImage:{type:String,default:""},backgroundSize:{type:String,default:"cover"}},emits:["close"],computed:{role(){return this.important?"alertdialog":"status"},bannerClass(){return["d-banner",{error:"d-banner--error",info:"d-banner--info",success:"d-banner--success",warning:"d-banner--warning",base:"d-banner--base"}[this.kind],{"d-banner--important":this.important,"d-banner--pinned":this.pinned}]},bannerBackgroundImage(){return this.backgroundImage===""?null:`background-image: url(${this.backgroundImage});
|
|
3
|
+
background-size: ${this.backgroundSize};`}},mounted(){this.important&&this.focusFirstElement()},methods:{trapFocus(t){this.important&&this.focusTrappedTabPress(t)}}};var go=function(){var e=this,n=e._self._c;return n("aside",{class:e.bannerClass,style:e.bannerBackgroundImage,on:{keydown:function(a){return!a.type.indexOf("key")&&e._k(a.keyCode,"tab",9,a.key,"Tab")?null:e.trapFocus.apply(null,arguments)}}},[n("div",{staticClass:"d-banner__dialog",class:e.dialogClass,attrs:{role:e.role,"aria-labelledby":e.titleId,"aria-describedby":e.contentId}},[e.hideIcon?e._e():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},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)])},_o=[],vo=h.normalizeComponent(mo,go,_o,!1,null,null,null,null);const bo=vo.exports,Ar="d-breadcrumbs__item--selected",$r="d-breadcrumbs--inverted",yo={name:"DtLink",props:{kind:{type:String,default:"",validator(t){return Lr.includes(t)}}},emits:["click","focusin","focusout"],data(){return{LINK_KIND_MODIFIERS:en}}};var So=function(){var e=this,n=e._self._c;return n("a",e._g({class:["d-link",e.LINK_KIND_MODIFIERS[e.kind]],attrs:{"data-qa":"dt-link"}},e.$listeners),[e._t("default")],2)},Co=[],wo=h.normalizeComponent(yo,So,Co,!1,null,null,null,null);const Rr=wo.exports,Oo={name:"DtBreadcrumbItem",components:{DtLink:Rr},inheritAttrs:!1,props:{inverted:{type:Boolean,default:!1},selected:{type:Boolean,default:!1},label:{type:String,default:""}},data(){return{BREADCRUMB_ITEM_SELECTED_MODIFIER:Ar}},computed:{linkKind(){return this.inverted?Dr:Tr},ariaCurrent(){return this.selected?"location":void 0}}};var Eo=function(){var e=this,n=e._self._c;return n("li",{class:["d-breadcrumbs__item",{[e.BREADCRUMB_ITEM_SELECTED_MODIFIER]:e.selected}],attrs:{"data-qa":"dt-breadcrumb-item"}},[n("dt-link",e._b({attrs:{kind:e.linkKind,"aria-current":e.ariaCurrent,"data-qa":"breadcrumb-item"}},"dt-link",e.$attrs,!1),[e._t("default",function(){return[e._v(" "+e._s(e.label)+" ")]})],2)],1)},xo=[],Io=h.normalizeComponent(Oo,Eo,xo,!1,null,null,null,null);const Pr=Io.exports,To={name:"DtBreadcrumbs",components:{DtBreadcrumbItem:Pr},props:{breadcrumbs:{type:Array,default:()=>[],validate(t){return t.every(({href:e,label:n})=>e!==void 0&&n!==void 0)}},inverted:{type:Boolean,default:!1},ariaLabel:{type:String,default:"breadcrumb"}},data(){return{BREADCRUMBS_INVERTED_MODIFIER:$r}},methods:{getBreadcrumbItemKey(t){return`breadcrumbs-item-${t}-${de.getUniqueString()}`}}};var Do=function(){var e=this,n=e._self._c;return n("nav",{class:["d-breadcrumbs",{[e.BREADCRUMBS_INVERTED_MODIFIER]:e.inverted}],attrs:{"aria-label":e.ariaLabel,"data-qa":"dt-breadcrumbs"}},[n("ol",[e._t("default",function(){return e._l(e.breadcrumbs,function(a,r){return n("dt-breadcrumb-item",e._g(e._b({key:e.getBreadcrumbItemKey(r),attrs:{inverted:e.inverted}},"dt-breadcrumb-item",a,!1),e.$listeners))})})],2)])},Lo=[],ko=h.normalizeComponent(To,Do,Lo,!1,null,null,null,null);const Ao=ko.exports,Fn={start:"d-btn-group--start",end:"d-btn-group--end","space-between":"d-btn-group--space-between"},$o={name:"DtButtonGroup",props:{alignment:{type:String,default:"start",validator:t=>Object.keys(Fn).includes(t)}},data(){return{BUTTON_GROUP_ALIGNMENT:Fn}}};var Ro=function(){var e=this,n=e._self._c;return n("div",{class:["d-btn-group",e.BUTTON_GROUP_ALIGNMENT[e.alignment]],attrs:{role:"group"}},[e._t("default")],2)},Po=[],No=h.normalizeComponent($o,Ro,Po,!1,null,null,null,null);const Mo=No.exports,Bo={name:"DtCard",props:{maxHeight:{type:String,default:null},containerClass:{type:[String,Array,Object],default:""},contentClass:{type:[String,Array,Object],default:""},headerClass:{type:[String,Array,Object],default:""},footerClass:{type:[String,Array,Object],default:""}}};var Fo=function(){var e=this,n=e._self._c;return n("div",{class:["d-card",e.containerClass],attrs:{"data-qa":"dt-card"}},[e.$slots.header?n("div",{class:["d-card__header",e.headerClass]},[e._t("header")],2):e._e(),n("div",{class:["d-card__content",e.contentClass],style:{"max-height":e.maxHeight}},[e._t("content")],2),e.$slots.footer?n("div",{class:["d-card__footer",e.footerClass]},[e._t("footer")],2):e._e()])},Vo=[],qo=h.normalizeComponent(Bo,Fo,Vo,!1,null,null,null,null);const Nr=qo.exports,jo={name:"DtCodeblock",props:{text:{type:String,required:!0}}};var Ho=function(){var e=this,n=e._self._c;return n("pre",[e._v(" "),n("code",{staticClass:"d-d-block d-bgc-secondary d-ws-pre-wrap d-p8 d-ba d-bc-subtle d-bar8 d-fs-200 d-ff-mono d-lh-400 d-fc-secondary"},[e._v(e._s(e.text))]),e._v(`
|
|
4
|
+
`)])},zo=[],Wo=h.normalizeComponent(jo,Ho,zo,!1,null,null,null,null);const Uo=Wo.exports,Ko={methods:{scrollElementIntoViewIfNeeded(t,e,n,a){t.scrollIntoViewIfNeeded?this.scrollIntoViewIfNeeded(t,e,n,a):this.scrollIntoView(t,"bottom",!1,n,a)},scrollElementIntoView(t,e,n,a){if(e==="center"){this.scrollIntoView(t,"center",!1,n,a);return}e===!1?this.scrollIntoView(t,"bottom",!1,n,a):this.scrollIntoView(t,"top",!1,n,a)},scrollIntoViewIfNeeded(t,e,n,a){const r=e?"center":void 0;this.scrollIntoView(t,r,!0,n,a)},scrollIntoView(t,e,n,a,r){if(!t||!t.parentElement)return;const i=t.offsetTop,s=r||t.parentElement,l=this._getScrollBounds(s),d=l.bottom-l.top,p=this._getElementHeight(t),c=i+p;let f=-1;switch(e){case"top":f=i;break;case"center":f=i+(p-d)/2;break;case"bottom":f=f=c-d;break;default:i-l.top<=d/2?f=i:f=c-d;break}this._setScrollTop(s,f,l,i,c,n,a)},_setScrollTop(t,e,n,a,r,i,s){n=n||this._getScrollBounds(t);const l=n.bottom-n.top;if(i&&this._inScrollBounds(a,r,n))if(a<n.top)e=a;else if(r>n.bottom)e=r-l;else return;s?t.scrollTo({top:e,behavior:s}):t.scrollTop=e},_getElementHeight(t){return t.getBoundingClientRect().height},_getScrollBounds(t){const e=this._getElementHeight(t),n=t.scrollTop;return{top:n,bottom:n+e}},_inScrollBounds(t,e,n){const a=e-t;return e<=n.bottom+3*a/4&&t>=n.top-a/4}}},Go="listElementKey is required or the referenced element doesn't exist. Received listElement: ",la=({listItemRole:t="option",indexKey:e="highlightIndex",idKey:n="highlightId",listElementKey:a="listRef",activeItemKey:r="",openMethod:i=null,afterHighlightMethod:s=null,beginningOfListMethod:l=null,endOfListMethod:d=null,scrollToOnHighlight:p=!0,focusOnKeyboardNavigation:c=!1}={})=>({mixins:[Ko],data(){return{[e]:-1,[n]:"",scrollToOnHighlight:p,focusOnKeyboardNavigation:c}},provide(){return{highlightId:()=>this[n]}},methods:{_getListElement(){var f;return((f=this[a]())==null?void 0:f.$el)||this[a]()},_itemsLength(){const f=this._getListItemNodes();return f===null?0:f.length},_getListItemNodes(){const f=this._getListElement();return f?Array.from(f.querySelectorAll(`[role="${t}"], #sr-only-close-button`)):(console.error(Go,f),null)},onUpKey(){i&&this[i](!0),this[e]>0?this.setHighlightIndex(this[e]-1):l&&this[l](),this.scrollActiveItemIntoViewIfNeeded(),this.focusActiveItemIfNeeded()},onDownKey(){i&&this[i](!0),this[e]<this._itemsLength()-1?this.setHighlightIndex(this[e]+1):d&&this[d](),this.scrollActiveItemIntoViewIfNeeded(),this.focusActiveItemIfNeeded()},onHomeKey(){this.jumpToBeginning(),this.scrollActiveItemIntoViewIfNeeded(),this.focusActiveItemIfNeeded()},onEndKey(){this.jumpToEnd(),this.scrollActiveItemIntoViewIfNeeded(),this.focusActiveItemIfNeeded()},onNavigationKey(f){const _=this._getListItemNodes(),m=_.filter(y=>y.textContent.trim().toLowerCase().startsWith(f.toLowerCase()));if(m.length<=0)return;const b=m.findIndex(y=>this[e]===_.indexOf(y)),C=_.indexOf(b<m.length-1?m[b+1]:m[0]);this.setHighlightIndex(C),this.scrollActiveItemIntoViewIfNeeded(),this.focusActiveItemIfNeeded()},isValidCharacter(f){return f.length===1},jumpToBeginning(){this.setHighlightIndex(0)},jumpToEnd(){this.setHighlightIndex(this._itemsLength()-1)},setHighlightIndex(f){this[e]=f,this[n]=this._getItemId(f),this._itemsLength()&&s&&this[s](f)},setHighlightId(f){this[n]=f,this[e]=this._getItemIndex(f),this._itemsLength()&&s&&this[s](this._getItemIndex(f))},_getItemIndex(f){const _=this._getListElement();return _?Array.from(_.querySelectorAll(`[role="${t}"], #sr-only-close-button`)).indexOf(_.querySelector(`#${f}`)):void 0},_getItemId(f){var m;const _=this._getListElement();if(_)return(m=_.querySelectorAll(`[role="${t}"], #sr-only-close-button`)[f])==null?void 0:m.id},scrollActiveItemIntoViewIfNeeded(){if(!this.scrollToOnHighlight)return;const f=this[r];if(f){const _=this._getListElement();this.scrollElementIntoViewIfNeeded(f,null,null,_)}},focusActiveItemIfNeeded(){if(!this.focusOnKeyboardNavigation)return;const f=this[r];f&&f.focus()}}}),En={DEFAULT:"default",CUSTOM:"custom"},Me={ARROW_KEYS:"arrow-keys",TAB:"tab",NONE:"none"};const Yo={name:"DtItemLayout",props:{as:{type:String,default:"div"}}};var Zo=function(){var e=this,n=e._self._c;return n(e.as,{tag:"component",staticClass:"dt-item-layout"},[e.$slots.left?n("section",{staticClass:"dt-item-layout--left",attrs:{"data-qa":"dt-item-layout-left-wrapper"}},[e._t("left")],2):e._e(),n("section",{staticClass:"dt-item-layout--content",attrs:{"data-qa":"dt-item-layout-content-wrapper"}},[e.$slots.default?n("div",{staticClass:"dt-item-layout--title",attrs:{"data-qa":"dt-item-layout-title-wrapper"}},[e._t("default")],2):e._e(),e.$slots.subtitle?n("div",{class:["dt-item-layout--subtitle",{"d-mtn2":e.$slots.default}],attrs:{"data-qa":"dt-item-layout-subtitle-wrapper"}},[e._t("subtitle")],2):e._e(),e.$slots.bottom?n("div",{staticClass:"dt-item-layout--bottom",attrs:{"data-qa":"dt-item-layout-bottom-wrapper"}},[e._t("bottom")],2):e._e()]),e.$slots.right?n("section",{staticClass:"dt-item-layout--right",attrs:{"data-qa":"dt-item-layout-right-wrapper"}},[e._t("right")],2):e._e(),e.$slots.selected?n("section",{staticClass:"dt-item-layout--selected",attrs:{"data-qa":"dt-item-layout-selected-wrapper"}},[e._t("selected")],2):e._e()])},Xo=[],Qo=h.normalizeComponent(Yo,Zo,Xo,!1,null,"9afad3c4",null,null);const tn=Qo.exports;const Jo={name:"DtListItem",components:{DtItemLayout:tn,DtIcon:V},inject:{highlightId:{default:null}},props:{id:{type:String,default(){return de.getUniqueString()}},role:{type:String,default:"listitem"},elementType:{type:String,default:"li"},type:{type:String,default:En.DEFAULT,validator:t=>Object.values(En).includes(t)},navigationType:{type:String,default:Me.NONE,validator:t=>Object.values(Me).includes(t)},selected:{type:Boolean,default:!1}},emits:["click","keydown","mousemove","mouseleave"],data(){return{injected:!1,mouseHighlighted:!1}},computed:{listItemType(){switch(this.type){case En.DEFAULT:return tn;default:return null}},listItemListeners(){return{...this.$listeners,keydown:t=>{["enter","space"].includes(t.code.toLowerCase())&&this.onClick(t),this.$emit("keydown",t)},mousemove:t=>{this.onMouseHover(t),this.$emit("mousemove",t)},mouseleave:t=>{this.onMouseLeave(t),this.$emit("mouseleave",t)}}},isHighlighted(){return this.isHoverable?this.highlightId&&this.highlightId()?this.id===this.highlightId():this.mouseHighlighted:!1},isFocusable(){return this.navigationType===Me.TAB},isHoverable(){return this.navigationType!==Me.NONE}},methods:{onClick(t){this.$emit("click",t)},onMouseHover(){this.mouseHighlighted=!0},onMouseLeave(){this.mouseHighlighted=!1}}};var el=function(){var e=this,n=e._self._c;return n(e.elementType,e._g({tag:"component",class:["dt-list-item",{"dt-list-item--focusable":e.isFocusable,"dt-list-item--highlighted":e.isHighlighted,"dt-list-item--static":!e.isHoverable}],attrs:{id:e.id,tabindex:e.isFocusable?0:-1,role:e.role,"aria-selected":e.isHighlighted}},e.listItemListeners),[e.listItemType?n(e.listItemType,{tag:"component",scopedSlots:e._u([e._l(e.$slots,function(a,r){return{key:r,fn:function(){return[e._t(r)]},proxy:!0}}),e.selected?{key:"selected",fn:function(){return[n("dt-icon",{staticClass:"dt-list-item--selected-icon",attrs:{name:"check",size:"400"}})]},proxy:!0}:null],null,!0)}):e._t("default")],2)},tl=[],nl=h.normalizeComponent(Jo,el,tl,!1,null,null,null,null);const It=nl.exports,al={name:"ComboboxLoadingList",components:{DtListItem:It,DtSkeleton:h.DtSkeleton}};var rl=function(){var e=this,n=e._self._c;return n("ol",{staticClass:"d-p0 d-mt8 d-hmx332 d-of-y-auto",attrs:{"aria-busy":"true"}},e._l(7,function(a){return n("dt-list-item",{key:a,attrs:{role:"option","navigation-type":"none"}},[n("dt-skeleton",{attrs:{"text-option":{type:"body"},offset:0}})],1)}),1)},il=[],sl=h.normalizeComponent(al,rl,il,!1,null,null,null,null);const Mr=sl.exports;const ol={name:"ComboboxEmptyList",components:{DtListItem:It},props:{message:{type:String,required:!0},itemClass:{type:[String,Object,Array],default:""}}};var ll=function(){var e=this,n=e._self._c;return n("ol",{staticClass:"d-p0",attrs:{"data-qa":"dt-combobox-empty-list"}},[e._t("default",function(){return[n("dt-list-item",{class:["dt-empty-list-item",e.itemClass],attrs:{role:"option","navigation-type":"none",type:"custom"}},[n("span",[e._v(e._s(e.message))])])]})],2)},dl=[],cl=h.normalizeComponent(ol,ll,dl,!1,null,null,null,null);const Br=cl.exports,Fr={EXTRA_SMALL:"xs",SMALL:"sm",DEFAULT:"md",LARGE:"lg",EXTRA_LARGE:"xl"},ul={name:"DtCombobox",components:{ComboboxLoadingList:Mr,ComboboxEmptyList:Br},mixins:[la({indexKey:"highlightIndex",idKey:"highlightId",listElementKey:"getListElement",afterHighlightMethod:"afterHighlight",beginningOfListMethod:"beginningOfListMethod",endOfListMethod:"endOfListMethod",activeItemKey:"activeItemEl"})],props:{label:{type:String,required:!0},labelVisible:{type:Boolean,default:!0},size:{type:String,default:null,validator:t=>Object.values(Fr).includes(t)},description:{type:String,default:""},listId:{type:String,default(){return z()}},onBeginningOfList:{type:Function,default:null},onEndOfList:{type:Function,default:null},showList:{type:Boolean,default:!1},listRenderedOutside:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},emptyList:{type:Boolean,default:!1},emptyStateMessage:{type:String,default:""},emptyStateClass:{type:[String,Object,Array],default:""},clickOnSelect:{type:Boolean,default:!1}},emits:["select","escape","highlight","opened"],data(){return{outsideRenderedListRef:null}},computed:{inputProps(){return{label:this.label,labelVisible:this.labelVisible,size:this.size,description:this.description,role:"combobox","aria-label":this.label,"aria-expanded":this.showList.toString(),"aria-owns":this.listId,"aria-haspopup":"listbox","aria-activedescendant":this.activeItemId,"aria-controls":this.listId}},listProps(){return{role:"listbox",id:this.listId,class:"d-ps-relative","aria-label":this.label}},beginningOfListMethod(){return this.onBeginningOfList||this.jumpToEnd},endOfListMethod(){return this.onEndOfList||this.jumpToBeginning},activeItemId(){if(!(!this.showList||this.highlightIndex<0||this.loading))return this.highlightId},activeItemEl(){return this.highlightId?this.getListElement().querySelector("#"+this.highlightId):""}},watch:{showList(t){this.listRenderedOutside||(this.setInitialHighlightIndex(),this.$emit("opened",t)),!t&&this.outsideRenderedListRef&&(this.outsideRenderedListRef.removeEventListener("mousemove",this.onMouseHighlight),this.outsideRenderedListRef=null)},loading(t){this.$nextTick(()=>{this.setInitialHighlightIndex()})},$props:{deep:!0,immediate:!0,handler(){this.validateEmptyListProps()}}},created(){this.validateEmptyListProps()},methods:{onMouseHighlight(t){if(this.loading)return;const e=t.target.closest("li");e&&this.highlightId!==e.id&&this.setHighlightId(e.id)},getListElement(){var t;return this.outsideRenderedListRef??((t=this.$refs.listWrapper)==null?void 0:t.querySelector(`#${this.listId}`))},clearHighlightIndex(){this.showList&&this.setHighlightIndex(-1)},afterHighlight(){this.loading||this.$emit("highlight",this.highlightIndex)},onEnterKey(){var t;this.loading||this.emptyList||this.highlightIndex>=0&&(this.$emit("select",this.highlightIndex),this.clickOnSelect&&((t=this.activeItemEl)==null||t.click()))},onEscapeKey(){this.$emit("escape")},onOpen(t,e){var n;this.outsideRenderedListRef=e,(n=this.outsideRenderedListRef)==null||n.addEventListener("mousemove",this.onMouseHighlight),this.$emit("opened",t),t&&this.setInitialHighlightIndex()},onKeyValidation(t,e){!this.showList||!this.getListElement()||this[e](t)},setInitialHighlightIndex(){this.showList&&this.$nextTick(()=>{this.setHighlightIndex(this.loading?-1:0)})},validateEmptyListProps(){this.$slots.emptyListItem||(this.emptyList&&!this.emptyStateMessage||!this.emptyList&&this.emptyStateMessage)&&console.error(`Invalid props: you must pass both props emptyList and emptyStateMessage to show the
|
|
5
|
+
empty message.`)}}};var pl=function(){var e=this,n=e._self._c;return n("div",{on:{keydown:[function(a){return!a.type.indexOf("key")&&e._k(a.keyCode,"esc",27,a.key,["Esc","Escape"])?null:(a.stopPropagation(),e.onKeyValidation(a,"onEscapeKey"))},function(a){return!a.type.indexOf("key")&&e._k(a.keyCode,"enter",13,a.key,"Enter")||a.ctrlKey||a.shiftKey||a.altKey||a.metaKey?null:e.onKeyValidation(a,"onEnterKey")},function(a){return!a.type.indexOf("key")&&e._k(a.keyCode,"up",38,a.key,["Up","ArrowUp"])?null:(a.stopPropagation(),a.preventDefault(),e.onKeyValidation(a,"onUpKey"))},function(a){return!a.type.indexOf("key")&&e._k(a.keyCode,"down",40,a.key,["Down","ArrowDown"])?null:(a.stopPropagation(),a.preventDefault(),e.onKeyValidation(a,"onDownKey"))},function(a){return!a.type.indexOf("key")&&e._k(a.keyCode,"home",void 0,a.key,void 0)?null:(a.stopPropagation(),a.preventDefault(),e.onKeyValidation(a,"onHomeKey"))},function(a){return!a.type.indexOf("key")&&e._k(a.keyCode,"end",void 0,a.key,void 0)?null:(a.stopPropagation(),a.preventDefault(),e.onKeyValidation(a,"onEndKey"))}]}},[n("div",{attrs:{"data-qa":"dt-combobox-input-wrapper"}},[e._t("input",null,{inputProps:e.inputProps})],2),e.showList?n("div",{ref:"listWrapper",attrs:{"data-qa":"dt-combobox-list-wrapper"},on:{mouseleave:e.clearHighlightIndex,focusout:e.clearHighlightIndex,"!mousemove":function(a){return e.onMouseHighlight.apply(null,arguments)}}},[e.loading&&!e.listRenderedOutside?n("combobox-loading-list",e._b({},"combobox-loading-list",e.listProps,!1)):e.emptyList&&(e.emptyStateMessage||e.$slots.emptyListItem)&&!e.listRenderedOutside?n("combobox-empty-list",e._b({attrs:{message:e.emptyStateMessage,"item-class":e.emptyStateClass}},"combobox-empty-list",e.listProps,!1),[e._t("emptyListItem")],2):e._t("list",null,{listProps:e.listProps,opened:e.onOpen,clearHighlightIndex:e.clearHighlightIndex})],2):e._e()])},fl=[],hl=h.normalizeComponent(ul,pl,fl,!1,null,null,null,null);const Vr=hl.exports;const ml={name:"DtCollapsibleLazyShow",props:{show:{type:Boolean,default:null},appear:{type:Boolean,default:!1},elementType:{type:String,default:"div"}},data(){return{initialized:!!this.show}},computed:{isCSSEnabled(){return process.env.NODE_ENV!=="test"}},watch:{show:function(t){!t||this.initialized||(this.initialized=!0)}},methods:{beforeEnter(t){requestAnimationFrame(()=>{t.style.height||(t.style.height="0px"),t.style.display=null})},enter(t){requestAnimationFrame(()=>{requestAnimationFrame(()=>{t.style.height=`${t.scrollHeight}px`})})},afterEnter(t){t.style.height=null},beforeLeave(t){requestAnimationFrame(()=>{t.style.height||(t.style.height=`${t.offsetHeight}px`)})},leave(t){requestAnimationFrame(()=>{requestAnimationFrame(()=>{t.style.height="0px"})})},afterLeave(t){t.style.height=null}}};var gl=function(){var e=this,n=e._self._c;return n("transition",e._g({attrs:{appear:e.appear,"enter-active-class":"enter-active","leave-active-class":"leave-active",css:e.isCSSEnabled},on:{"before-enter":e.beforeEnter,enter:e.enter,"after-enter":e.afterEnter,"before-leave":e.beforeLeave,leave:e.leave,"after-leave":e.afterLeave}},e.$listeners),[n(e.elementType,e._g({directives:[{name:"show",rawName:"v-show",value:e.show,expression:"show"}],tag:"component"},e.$listeners),[e.initialized?e._t("default"):e._e()],2)],1)},_l=[],vl=h.normalizeComponent(ml,gl,_l,!1,null,null,null,null);const bl=vl.exports,yl={name:"DtLazyShow",props:{show:{type:Boolean,default:!1},transition:{type:String,default:null},appear:{type:Boolean,default:!1}},data(){return{initialized:!!this.show}},computed:{isCSSEnabled(){return process.env.NODE_ENV!=="test"}},watch:{show:function(t){!t||this.initialized||(this.initialized=!0)}}};var Sl=function(){var e=this,n=e._self._c;return n("transition",e._g({attrs:{name:e.transition,appear:e.appear,css:e.isCSSEnabled}},e.$listeners),[n("div",e._g({directives:[{name:"show",rawName:"v-show",value:e.show,expression:"show"}]},e.$listeners),[e.initialized?e._t("default"):e._e()],2)])},Cl=[],wl=h.normalizeComponent(yl,Sl,Cl,!1,null,null,null,null);const rt=wl.exports,Ol={name:"DtCollapsible",components:{DtButton:G,DtCollapsibleLazyShow:bl,DtLazyShow:rt,DtIcon:V},props:{anchorText:{type:String,default:null},open:{type:Boolean,default:null},id:{type:String,default(){return z()}},elementType:{type:String,default:"div"},contentElementType:{type:String,default:"div"},anchorClass:{type:[String,Array,Object],default:null},contentClass:{type:[String,Array,Object],default:null},maxWidth:{type:String,default:null},maxHeight:{type:String,default:null},ariaLabel:{type:String,default:null},ariaLabelledBy:{type:String,default:null}},emits:["update:open","opened"],data(){return{isOpen:!0}},computed:{labelledBy(){return this.ariaLabelledBy||!this.ariaLabel&&z("DtCollapsible__anchor")}},watch:{open:{handler:function(t){t!==null&&(this.isOpen=t)},immediate:!0}},mounted(){this.validateProperAnchor()},methods:{onLeaveTransitionComplete(){this.$emit("opened",!1),this.open!==null&&this.$emit("update:open",!1)},onEnterTransitionComplete(){this.$emit("opened",!0,this.$refs.content),this.open!==null&&this.$emit("update:open",!0)},defaultToggleOpen(){this.open===null&&this.toggleOpen()},toggleOpen(){this.isOpen=!this.isOpen},validateProperAnchor(){!this.anchorText&&!this.$scopedSlots.anchor&&console.error("anchor text and anchor slot content cannot both be falsy")}}};var El=function(){var e=this,n=e._self._c;return n(e.elementType,e._g({ref:"collapsible",tag:"component"},e.$listeners),[n("div",{ref:"anchor",class:["d-dt-collapsibe__anchor",e.anchorClass],attrs:{id:!e.ariaLabelledBy&&e.labelledBy}},[e._t("anchor",function(){return[n("dt-button",{style:{width:e.maxWidth},attrs:{importance:"clear",kind:"muted","aria-controls":e.id,"aria-expanded":`${e.isOpen}`},on:{click:e.defaultToggleOpen}},[n("dt-icon",{staticClass:"d-icon d-icon--size-300 d-mr8 d-fl-shrink0",attrs:{name:e.isOpen?"chevron-down":"chevron-right"}}),n("span",{staticClass:"d-mr-auto d-truncate",attrs:{title:e.anchorText}},[e._v(" "+e._s(e.anchorText)+" ")])],1)]},{attrs:{"aria-controls":e.id,"aria-expanded":e.isOpen.toString(),role:"button"}})],2),n("dt-collapsible-lazy-show",e._g({ref:"contentWrapper",class:["d-dt-collapsible__content",e.contentClass],style:{"max-height":e.maxHeight,"max-width":e.maxWidth},attrs:{id:e.id,"aria-hidden":`${!e.isOpen}`,"aria-labelledby":e.labelledBy,"aria-label":e.ariaLabel,show:e.isOpen,"element-type":e.contentElementType,tabindex:"-1",appear:""},on:{"after-leave":e.onLeaveTransitionComplete,"after-enter":e.onEnterTransitionComplete}},e.$listeners),[e._t("content")],2)],1)},xl=[],Il=h.normalizeComponent(Ol,El,xl,!1,null,null,null,null);const qr=Il.exports;var X="top",ie="bottom",se="right",Q="left",dn="auto",Tt=[X,ie,se,Q],Je="start",vt="end",Tl="clippingParents",jr="viewport",ct="popper",Dl="reference",Aa=Tt.reduce(function(t,e){return t.concat([e+"-"+Je,e+"-"+vt])},[]),Hr=[].concat(Tt,[dn]).reduce(function(t,e){return t.concat([e,e+"-"+Je,e+"-"+vt])},[]),Ll="beforeRead",kl="read",Al="afterRead",$l="beforeMain",Rl="main",Pl="afterMain",Nl="beforeWrite",Ml="write",Bl="afterWrite",Vn=[Ll,kl,Al,$l,Rl,Pl,Nl,Ml,Bl];function me(t){return t?(t.nodeName||"").toLowerCase():null}function te(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Fe(t){var e=te(t).Element;return t instanceof e||t instanceof Element}function ee(t){var e=te(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function da(t){if(typeof ShadowRoot>"u")return!1;var e=te(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function Fl(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var a=e.styles[n]||{},r=e.attributes[n]||{},i=e.elements[n];!ee(i)||!me(i)||(Object.assign(i.style,a),Object.keys(r).forEach(function(s){var l=r[s];l===!1?i.removeAttribute(s):i.setAttribute(s,l===!0?"":l)}))})}function Vl(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(a){var r=e.elements[a],i=e.attributes[a]||{},s=Object.keys(e.styles.hasOwnProperty(a)?e.styles[a]:n[a]),l=s.reduce(function(d,p){return d[p]="",d},{});!ee(r)||!me(r)||(Object.assign(r.style,l),Object.keys(i).forEach(function(d){r.removeAttribute(d)}))})}}const zr={name:"applyStyles",enabled:!0,phase:"write",fn:Fl,effect:Vl,requires:["computeStyles"]};function le(t){return t.split("-")[0]}var Be=Math.max,nn=Math.min,et=Math.round;function qn(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function Wr(){return!/^((?!chrome|android).)*safari/i.test(qn())}function tt(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var a=t.getBoundingClientRect(),r=1,i=1;e&&ee(t)&&(r=t.offsetWidth>0&&et(a.width)/t.offsetWidth||1,i=t.offsetHeight>0&&et(a.height)/t.offsetHeight||1);var s=Fe(t)?te(t):window,l=s.visualViewport,d=!Wr()&&n,p=(a.left+(d&&l?l.offsetLeft:0))/r,c=(a.top+(d&&l?l.offsetTop:0))/i,f=a.width/r,_=a.height/i;return{width:f,height:_,top:c,right:p+f,bottom:c+_,left:p,x:p,y:c}}function ca(t){var e=tt(t),n=t.offsetWidth,a=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-a)<=1&&(a=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:a}}function Ur(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&da(n)){var a=e;do{if(a&&t.isSameNode(a))return!0;a=a.parentNode||a.host}while(a)}return!1}function ce(t){return te(t).getComputedStyle(t)}function ql(t){return["table","td","th"].indexOf(me(t))>=0}function Te(t){return((Fe(t)?t.ownerDocument:t.document)||window.document).documentElement}function cn(t){return me(t)==="html"?t:t.assignedSlot||t.parentNode||(da(t)?t.host:null)||Te(t)}function $a(t){return!ee(t)||ce(t).position==="fixed"?null:t.offsetParent}function jl(t){var e=/firefox/i.test(qn()),n=/Trident/i.test(qn());if(n&&ee(t)){var a=ce(t);if(a.position==="fixed")return null}var r=cn(t);for(da(r)&&(r=r.host);ee(r)&&["html","body"].indexOf(me(r))<0;){var i=ce(r);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||e&&i.willChange==="filter"||e&&i.filter&&i.filter!=="none")return r;r=r.parentNode}return null}function Dt(t){for(var e=te(t),n=$a(t);n&&ql(n)&&ce(n).position==="static";)n=$a(n);return n&&(me(n)==="html"||me(n)==="body"&&ce(n).position==="static")?e:n||jl(t)||e}function ua(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function ft(t,e,n){return Be(t,nn(e,n))}function Hl(t,e,n){var a=ft(t,e,n);return a>n?n:a}function Kr(){return{top:0,right:0,bottom:0,left:0}}function Gr(t){return Object.assign({},Kr(),t)}function Yr(t,e){return e.reduce(function(n,a){return n[a]=t,n},{})}var zl=function(e,n){return e=typeof e=="function"?e(Object.assign({},n.rects,{placement:n.placement})):e,Gr(typeof e!="number"?e:Yr(e,Tt))};function Wl(t){var e,n=t.state,a=t.name,r=t.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,l=le(n.placement),d=ua(l),p=[Q,se].indexOf(l)>=0,c=p?"height":"width";if(!(!i||!s)){var f=zl(r.padding,n),_=ca(i),m=d==="y"?X:Q,b=d==="y"?ie:se,C=n.rects.reference[c]+n.rects.reference[d]-s[d]-n.rects.popper[c],y=s[d]-n.rects.reference[d],w=Dt(i),T=w?d==="y"?w.clientHeight||0:w.clientWidth||0:0,k=C/2-y/2,o=f[m],O=T-_[c]-f[b],g=T/2-_[c]/2+k,E=ft(o,g,O),P=d;n.modifiersData[a]=(e={},e[P]=E,e.centerOffset=E-g,e)}}function Ul(t){var e=t.state,n=t.options,a=n.element,r=a===void 0?"[data-popper-arrow]":a;if(r!=null&&!(typeof r=="string"&&(r=e.elements.popper.querySelector(r),!r))){if(process.env.NODE_ENV!=="production"&&(ee(r)||console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).',"To use an SVG arrow, wrap it in an HTMLElement that will be used as","the arrow."].join(" "))),!Ur(e.elements.popper,r)){process.env.NODE_ENV!=="production"&&console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper',"element."].join(" "));return}e.elements.arrow=r}}const Kl={name:"arrow",enabled:!0,phase:"main",fn:Wl,effect:Ul,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function nt(t){return t.split("-")[1]}var Gl={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Yl(t,e){var n=t.x,a=t.y,r=e.devicePixelRatio||1;return{x:et(n*r)/r||0,y:et(a*r)/r||0}}function Ra(t){var e,n=t.popper,a=t.popperRect,r=t.placement,i=t.variation,s=t.offsets,l=t.position,d=t.gpuAcceleration,p=t.adaptive,c=t.roundOffsets,f=t.isFixed,_=s.x,m=_===void 0?0:_,b=s.y,C=b===void 0?0:b,y=typeof c=="function"?c({x:m,y:C}):{x:m,y:C};m=y.x,C=y.y;var w=s.hasOwnProperty("x"),T=s.hasOwnProperty("y"),k=Q,o=X,O=window;if(p){var g=Dt(n),E="clientHeight",P="clientWidth";if(g===te(n)&&(g=Te(n),ce(g).position!=="static"&&l==="absolute"&&(E="scrollHeight",P="scrollWidth")),g=g,r===X||(r===Q||r===se)&&i===vt){o=ie;var N=f&&g===O&&O.visualViewport?O.visualViewport.height:g[E];C-=N-a.height,C*=d?1:-1}if(r===Q||(r===X||r===ie)&&i===vt){k=se;var A=f&&g===O&&O.visualViewport?O.visualViewport.width:g[P];m-=A-a.width,m*=d?1:-1}}var I=Object.assign({position:l},p&&Gl),$=c===!0?Yl({x:m,y:C},te(n)):{x:m,y:C};if(m=$.x,C=$.y,d){var B;return Object.assign({},I,(B={},B[o]=T?"0":"",B[k]=w?"0":"",B.transform=(O.devicePixelRatio||1)<=1?"translate("+m+"px, "+C+"px)":"translate3d("+m+"px, "+C+"px, 0)",B))}return Object.assign({},I,(e={},e[o]=T?C+"px":"",e[k]=w?m+"px":"",e.transform="",e))}function Zl(t){var e=t.state,n=t.options,a=n.gpuAcceleration,r=a===void 0?!0:a,i=n.adaptive,s=i===void 0?!0:i,l=n.roundOffsets,d=l===void 0?!0:l;if(process.env.NODE_ENV!=="production"){var p=ce(e.elements.popper).transitionProperty||"";s&&["transform","top","right","bottom","left"].some(function(f){return p.indexOf(f)>=0})&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',`
|
|
6
6
|
|
|
7
7
|
`,'Disable the "computeStyles" modifier\'s `adaptive` option to allow',"for smooth transitions, or remove these properties from the CSS","transition declaration on the popper element if only transitioning","opacity or background-color for example.",`
|
|
8
8
|
|
|
9
|
-
`,"We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "))}var c={placement:le(e.placement),variation:nt(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:r,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,$a(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:d})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,$a(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:d})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const Xl={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Zl,data:{}};var Ut={passive:!0};function Ql(t){var e=t.state,n=t.instance,a=t.options,r=a.scroll,i=r===void 0?!0:r,s=a.resize,l=s===void 0?!0:s,d=te(e.elements.popper),p=[].concat(e.scrollParents.reference,e.scrollParents.popper);return i&&p.forEach(function(c){c.addEventListener("scroll",n.update,Ut)}),l&&d.addEventListener("resize",n.update,Ut),function(){i&&p.forEach(function(c){c.removeEventListener("scroll",n.update,Ut)}),l&&d.removeEventListener("resize",n.update,Ut)}}const Jl={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Ql,data:{}};var ed={left:"right",right:"left",bottom:"top",top:"bottom"};function Zt(t){return t.replace(/left|right|bottom|top/g,function(e){return ed[e]})}var td={start:"end",end:"start"};function Ra(t){return t.replace(/start|end/g,function(e){return td[e]})}function ua(t){var e=te(t),n=e.pageXOffset,a=e.pageYOffset;return{scrollLeft:n,scrollTop:a}}function pa(t){return tt(Te(t)).left+ua(t).scrollLeft}function nd(t,e){var n=te(t),a=Te(t),r=n.visualViewport,i=a.clientWidth,s=a.clientHeight,l=0,d=0;if(r){i=r.width,s=r.height;var p=Wr();(p||!p&&e==="fixed")&&(l=r.offsetLeft,d=r.offsetTop)}return{width:i,height:s,x:l+pa(t),y:d}}function ad(t){var e,n=Te(t),a=ua(t),r=(e=t.ownerDocument)==null?void 0:e.body,i=Be(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),s=Be(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),l=-a.scrollLeft+pa(t),d=-a.scrollTop;return ce(r||n).direction==="rtl"&&(l+=Be(n.clientWidth,r?r.clientWidth:0)-i),{width:i,height:s,x:l,y:d}}function fa(t){var e=ce(t),n=e.overflow,a=e.overflowX,r=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+a)}function Zr(t){return["html","body","#document"].indexOf(me(t))>=0?t.ownerDocument.body:ee(t)&&fa(t)?t:Zr(cn(t))}function ht(t,e){var n;e===void 0&&(e=[]);var a=Zr(t),r=a===((n=t.ownerDocument)==null?void 0:n.body),i=te(a),s=r?[i].concat(i.visualViewport||[],fa(a)?a:[]):a,l=e.concat(s);return r?l:l.concat(ht(cn(s)))}function jn(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function rd(t,e){var n=tt(t,!1,e==="fixed");return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}function Pa(t,e,n){return e===jr?jn(nd(t,n)):Fe(e)?rd(e,n):jn(ad(Te(t)))}function id(t){var e=ht(cn(t)),n=["absolute","fixed"].indexOf(ce(t).position)>=0,a=n&&ee(t)?Dt(t):t;return Fe(a)?e.filter(function(r){return Fe(r)&&Ur(r,a)&&me(r)!=="body"}):[]}function sd(t,e,n,a){var r=e==="clippingParents"?id(t):[].concat(e),i=[].concat(r,[n]),s=i[0],l=i.reduce(function(d,p){var c=Pa(t,p,a);return d.top=Be(c.top,d.top),d.right=nn(c.right,d.right),d.bottom=nn(c.bottom,d.bottom),d.left=Be(c.left,d.left),d},Pa(t,s,a));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function Xr(t){var e=t.reference,n=t.element,a=t.placement,r=a?le(a):null,i=a?nt(a):null,s=e.x+e.width/2-n.width/2,l=e.y+e.height/2-n.height/2,d;switch(r){case X:d={x:s,y:e.y-n.height};break;case ie:d={x:s,y:e.y+e.height};break;case se:d={x:e.x+e.width,y:l};break;case Q:d={x:e.x-n.width,y:l};break;default:d={x:e.x,y:e.y}}var p=r?ca(r):null;if(p!=null){var c=p==="y"?"height":"width";switch(i){case Je:d[p]=d[p]-(e[c]/2-n[c]/2);break;case vt:d[p]=d[p]+(e[c]/2-n[c]/2);break}}return d}function bt(t,e){e===void 0&&(e={});var n=e,a=n.placement,r=a===void 0?t.placement:a,i=n.strategy,s=i===void 0?t.strategy:i,l=n.boundary,d=l===void 0?Tl:l,p=n.rootBoundary,c=p===void 0?jr:p,f=n.elementContext,_=f===void 0?ct:f,m=n.altBoundary,b=m===void 0?!1:m,C=n.padding,y=C===void 0?0:C,w=Gr(typeof y!="number"?y:Yr(y,Tt)),T=_===ct?Dl:ct,k=t.rects.popper,o=t.elements[b?T:_],O=sd(Fe(o)?o:o.contextElement||Te(t.elements.popper),d,c,s),g=tt(t.elements.reference),E=Xr({reference:g,element:k,strategy:"absolute",placement:r}),P=jn(Object.assign({},k,E)),M=_===ct?P:g,A={top:O.top-M.top+w.top,bottom:M.bottom-O.bottom+w.bottom,left:O.left-M.left+w.left,right:M.right-O.right+w.right},I=t.modifiersData.offset;if(_===ct&&I){var $=I[r];Object.keys(A).forEach(function(B){var Y=[se,ie].indexOf(B)>=0?1:-1,R=[X,ie].indexOf(B)>=0?"y":"x";A[B]+=$[R]*Y})}return A}function od(t,e){e===void 0&&(e={});var n=e,a=n.placement,r=n.boundary,i=n.rootBoundary,s=n.padding,l=n.flipVariations,d=n.allowedAutoPlacements,p=d===void 0?Hr:d,c=nt(a),f=c?l?ka:ka.filter(function(b){return nt(b)===c}):Tt,_=f.filter(function(b){return p.indexOf(b)>=0});_.length===0&&(_=f,process.env.NODE_ENV!=="production"&&console.error(["Popper: The `allowedAutoPlacements` option did not allow any","placements. Ensure the `placement` option matches the variation","of the allowed placements.",'For example, "auto" cannot be used to allow "bottom-start".','Use "auto-start" instead.'].join(" ")));var m=_.reduce(function(b,C){return b[C]=bt(t,{placement:C,boundary:r,rootBoundary:i,padding:s})[le(C)],b},{});return Object.keys(m).sort(function(b,C){return m[b]-m[C]})}function ld(t){if(le(t)===dn)return[];var e=Zt(t);return[Ra(t),e,Ra(e)]}function dd(t){var e=t.state,n=t.options,a=t.name;if(!e.modifiersData[a]._skip){for(var r=n.mainAxis,i=r===void 0?!0:r,s=n.altAxis,l=s===void 0?!0:s,d=n.fallbackPlacements,p=n.padding,c=n.boundary,f=n.rootBoundary,_=n.altBoundary,m=n.flipVariations,b=m===void 0?!0:m,C=n.allowedAutoPlacements,y=e.options.placement,w=le(y),T=w===y,k=d||(T||!b?[Zt(y)]:ld(y)),o=[y].concat(k).reduce(function(ge,oe){return ge.concat(le(oe)===dn?od(e,{placement:oe,boundary:c,rootBoundary:f,padding:p,flipVariations:b,allowedAutoPlacements:C}):oe)},[]),O=e.rects.reference,g=e.rects.popper,E=new Map,P=!0,M=o[0],A=0;A<o.length;A++){var I=o[A],$=le(I),B=nt(I)===Je,Y=[X,ie].indexOf($)>=0,R=Y?"width":"height",F=bt(e,{placement:I,boundary:c,rootBoundary:f,altBoundary:_,padding:p}),q=Y?B?se:Q:B?ie:X;O[R]>g[R]&&(q=Zt(q));var W=Zt(q),ue=[];if(i&&ue.push(F[$]<=0),l&&ue.push(F[q]<=0,F[W]<=0),ue.every(function(ge){return ge})){M=I,P=!1;break}E.set(I,ue)}if(P)for(var pe=b?3:1,Le=function(oe){var _e=o.find(function(je){var ve=E.get(je);if(ve)return ve.slice(0,oe).every(function(He){return He})});if(_e)return M=_e,"break"},fe=pe;fe>0;fe--){var ke=Le(fe);if(ke==="break")break}e.placement!==M&&(e.modifiersData[a]._skip=!0,e.placement=M,e.reset=!0)}}const cd={name:"flip",enabled:!0,phase:"main",fn:dd,requiresIfExists:["offset"],data:{_skip:!1}};function Ma(t,e,n){return n===void 0&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function Na(t){return[X,se,ie,Q].some(function(e){return t[e]>=0})}function ud(t){var e=t.state,n=t.name,a=e.rects.reference,r=e.rects.popper,i=e.modifiersData.preventOverflow,s=bt(e,{elementContext:"reference"}),l=bt(e,{altBoundary:!0}),d=Ma(s,a),p=Ma(l,r,i),c=Na(d),f=Na(p);e.modifiersData[n]={referenceClippingOffsets:d,popperEscapeOffsets:p,isReferenceHidden:c,hasPopperEscaped:f},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}const pd={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:ud};function fd(t,e,n){var a=le(t),r=[Q,X].indexOf(a)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},e,{placement:t})):n,s=i[0],l=i[1];return s=s||0,l=(l||0)*r,[Q,se].indexOf(a)>=0?{x:l,y:s}:{x:s,y:l}}function hd(t){var e=t.state,n=t.options,a=t.name,r=n.offset,i=r===void 0?[0,0]:r,s=Hr.reduce(function(c,f){return c[f]=fd(f,e.rects,i),c},{}),l=s[e.placement],d=l.x,p=l.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=d,e.modifiersData.popperOffsets.y+=p),e.modifiersData[a]=s}const md={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:hd};function gd(t){var e=t.state,n=t.name;e.modifiersData[n]=Xr({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const _d={name:"popperOffsets",enabled:!0,phase:"read",fn:gd,data:{}};function vd(t){return t==="x"?"y":"x"}function bd(t){var e=t.state,n=t.options,a=t.name,r=n.mainAxis,i=r===void 0?!0:r,s=n.altAxis,l=s===void 0?!1:s,d=n.boundary,p=n.rootBoundary,c=n.altBoundary,f=n.padding,_=n.tether,m=_===void 0?!0:_,b=n.tetherOffset,C=b===void 0?0:b,y=bt(e,{boundary:d,rootBoundary:p,padding:f,altBoundary:c}),w=le(e.placement),T=nt(e.placement),k=!T,o=ca(w),O=vd(o),g=e.modifiersData.popperOffsets,E=e.rects.reference,P=e.rects.popper,M=typeof C=="function"?C(Object.assign({},e.rects,{placement:e.placement})):C,A=typeof M=="number"?{mainAxis:M,altAxis:M}:Object.assign({mainAxis:0,altAxis:0},M),I=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,$={x:0,y:0};if(g){if(i){var B,Y=o==="y"?X:Q,R=o==="y"?ie:se,F=o==="y"?"height":"width",q=g[o],W=q+y[Y],ue=q-y[R],pe=m?-P[F]/2:0,Le=T===Je?E[F]:P[F],fe=T===Je?-P[F]:-E[F],ke=e.elements.arrow,ge=m&&ke?da(ke):{width:0,height:0},oe=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:Kr(),_e=oe[Y],je=oe[R],ve=ft(0,E[F],ge[F]),He=k?E[F]/2-pe-ve-_e-A.mainAxis:Le-ve-_e-A.mainAxis,Ce=k?-E[F]/2+pe+ve+je+A.mainAxis:fe+ve+je+A.mainAxis,ze=e.elements.arrow&&Dt(e.elements.arrow),Rt=ze?o==="y"?ze.clientTop||0:ze.clientLeft||0:0,it=(B=I==null?void 0:I[o])!=null?B:0,Pt=q+He-it-Rt,Mt=q+Ce-it,st=ft(m?nn(W,Pt):W,q,m?Be(ue,Mt):ue);g[o]=st,$[o]=st-q}if(l){var ot,Nt=o==="x"?X:Q,Bt=o==="x"?ie:se,be=g[O],we=O==="y"?"height":"width",lt=be+y[Nt],Ae=be-y[Bt],dt=[X,Q].indexOf(w)!==-1,Ft=(ot=I==null?void 0:I[O])!=null?ot:0,Vt=dt?lt:be-E[we]-P[we]-Ft+A.altAxis,qt=dt?be+E[we]+P[we]-Ft-A.altAxis:Ae,jt=m&&dt?Hl(Vt,be,qt):ft(m?Vt:lt,be,m?qt:Ae);g[O]=jt,$[O]=jt-be}e.modifiersData[a]=$}}const yd={name:"preventOverflow",enabled:!0,phase:"main",fn:bd,requiresIfExists:["offset"]};function Sd(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function Cd(t){return t===te(t)||!ee(t)?ua(t):Sd(t)}function wd(t){var e=t.getBoundingClientRect(),n=et(e.width)/t.offsetWidth||1,a=et(e.height)/t.offsetHeight||1;return n!==1||a!==1}function Od(t,e,n){n===void 0&&(n=!1);var a=ee(e),r=ee(e)&&wd(e),i=Te(e),s=tt(t,r,n),l={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(a||!a&&!n)&&((me(e)!=="body"||fa(i))&&(l=Cd(e)),ee(e)?(d=tt(e,!0),d.x+=e.clientLeft,d.y+=e.clientTop):i&&(d.x=pa(i))),{x:s.left+l.scrollLeft-d.x,y:s.top+l.scrollTop-d.y,width:s.width,height:s.height}}function Ed(t){var e=new Map,n=new Set,a=[];t.forEach(function(i){e.set(i.name,i)});function r(i){n.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(l){if(!n.has(l)){var d=e.get(l);d&&r(d)}}),a.push(i)}return t.forEach(function(i){n.has(i.name)||r(i)}),a}function xd(t){var e=Ed(t);return Vn.reduce(function(n,a){return n.concat(e.filter(function(r){return r.phase===a}))},[])}function Id(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function Oe(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),a=1;a<e;a++)n[a-1]=arguments[a];return[].concat(n).reduce(function(r,i){return r.replace(/%s/,i)},t)}var Re='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',Td='Popper: modifier "%s" requires "%s", but "%s" modifier is not available',Ba=["name","enabled","phase","fn","effect","requires","options"];function Dd(t){t.forEach(function(e){[].concat(Object.keys(e),Ba).filter(function(n,a,r){return r.indexOf(n)===a}).forEach(function(n){switch(n){case"name":typeof e.name!="string"&&console.error(Oe(Re,String(e.name),'"name"','"string"','"'+String(e.name)+'"'));break;case"enabled":typeof e.enabled!="boolean"&&console.error(Oe(Re,e.name,'"enabled"','"boolean"','"'+String(e.enabled)+'"'));break;case"phase":Vn.indexOf(e.phase)<0&&console.error(Oe(Re,e.name,'"phase"',"either "+Vn.join(", "),'"'+String(e.phase)+'"'));break;case"fn":typeof e.fn!="function"&&console.error(Oe(Re,e.name,'"fn"','"function"','"'+String(e.fn)+'"'));break;case"effect":e.effect!=null&&typeof e.effect!="function"&&console.error(Oe(Re,e.name,'"effect"','"function"','"'+String(e.fn)+'"'));break;case"requires":e.requires!=null&&!Array.isArray(e.requires)&&console.error(Oe(Re,e.name,'"requires"','"array"','"'+String(e.requires)+'"'));break;case"requiresIfExists":Array.isArray(e.requiresIfExists)||console.error(Oe(Re,e.name,'"requiresIfExists"','"array"','"'+String(e.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+e.name+'" modifier, valid properties are '+Ba.map(function(a){return'"'+a+'"'}).join(", ")+'; but "'+n+'" was provided.')}e.requires&&e.requires.forEach(function(a){t.find(function(r){return r.name===a})==null&&console.error(Oe(Td,String(e.name),a,a))})})})}function Ld(t,e){var n=new Set;return t.filter(function(a){var r=e(a);if(!n.has(r))return n.add(r),!0})}function kd(t){var e=t.reduce(function(n,a){var r=n[a.name];return n[a.name]=r?Object.assign({},r,a,{options:Object.assign({},r.options,a.options),data:Object.assign({},r.data,a.data)}):a,n},{});return Object.keys(e).map(function(n){return e[n]})}var Fa="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",Ad="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.",Va={placement:"bottom",modifiers:[],strategy:"absolute"};function qa(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some(function(a){return!(a&&typeof a.getBoundingClientRect=="function")})}function $d(t){t===void 0&&(t={});var e=t,n=e.defaultModifiers,a=n===void 0?[]:n,r=e.defaultOptions,i=r===void 0?Va:r;return function(l,d,p){p===void 0&&(p=i);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},Va,i),modifiersData:{},elements:{reference:l,popper:d},attributes:{},styles:{}},f=[],_=!1,m={state:c,setOptions:function(w){var T=typeof w=="function"?w(c.options):w;C(),c.options=Object.assign({},i,c.options,T),c.scrollParents={reference:Fe(l)?ht(l):l.contextElement?ht(l.contextElement):[],popper:ht(d)};var k=xd(kd([].concat(a,c.options.modifiers)));if(c.orderedModifiers=k.filter(function(I){return I.enabled}),process.env.NODE_ENV!=="production"){var o=Ld([].concat(k,c.options.modifiers),function(I){var $=I.name;return $});if(Dd(o),le(c.options.placement)===dn){var O=c.orderedModifiers.find(function(I){var $=I.name;return $==="flip"});O||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "))}var g=ce(d),E=g.marginTop,P=g.marginRight,M=g.marginBottom,A=g.marginLeft;[E,P,M,A].some(function(I){return parseFloat(I)})&&console.warn(['Popper: CSS "margin" styles cannot be used to apply padding',"between the popper and its reference element or boundary.","To replicate margin, use the `offset` modifier, as well as","the `padding` option in the `preventOverflow` and `flip`","modifiers."].join(" "))}return b(),m.update()},forceUpdate:function(){if(!_){var w=c.elements,T=w.reference,k=w.popper;if(!qa(T,k)){process.env.NODE_ENV!=="production"&&console.error(Fa);return}c.rects={reference:Od(T,Dt(k),c.options.strategy==="fixed"),popper:da(k)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(I){return c.modifiersData[I.name]=Object.assign({},I.data)});for(var o=0,O=0;O<c.orderedModifiers.length;O++){if(process.env.NODE_ENV!=="production"&&(o+=1,o>100)){console.error(Ad);break}if(c.reset===!0){c.reset=!1,O=-1;continue}var g=c.orderedModifiers[O],E=g.fn,P=g.options,M=P===void 0?{}:P,A=g.name;typeof E=="function"&&(c=E({state:c,options:M,name:A,instance:m})||c)}}},update:Id(function(){return new Promise(function(y){m.forceUpdate(),y(c)})}),destroy:function(){C(),_=!0}};if(!qa(l,d))return process.env.NODE_ENV!=="production"&&console.error(Fa),m;m.setOptions(p).then(function(y){!_&&p.onFirstUpdate&&p.onFirstUpdate(y)});function b(){c.orderedModifiers.forEach(function(y){var w=y.name,T=y.options,k=T===void 0?{}:T,o=y.effect;if(typeof o=="function"){var O=o({state:c,name:w,instance:m,options:k}),g=function(){};f.push(O||g)}})}function C(){f.forEach(function(y){return y()}),f=[]}return m}}var Rd=[Jl,_d,Xl,zr,md,cd,yd,Kl,pd],Pd=$d({defaultModifiers:Rd}),Md="tippy-box",Qr="tippy-content",Nd="tippy-backdrop",Jr="tippy-arrow",ei="tippy-svg-arrow",Pe={passive:!0,capture:!0},ti=function(){return document.body};function Bd(t,e){return{}.hasOwnProperty.call(t,e)}function xn(t,e,n){if(Array.isArray(t)){var a=t[e];return a??(Array.isArray(n)?n[e]:n)}return t}function ha(t,e){var n={}.toString.call(t);return n.indexOf("[object")===0&&n.indexOf(e+"]")>-1}function ni(t,e){return typeof t=="function"?t.apply(void 0,e):t}function ja(t,e){if(e===0)return t;var n;return function(a){clearTimeout(n),n=setTimeout(function(){t(a)},e)}}function Fd(t,e){var n=Object.assign({},t);return e.forEach(function(a){delete n[a]}),n}function Vd(t){return t.split(/\s+/).filter(Boolean)}function Ye(t){return[].concat(t)}function Ha(t,e){t.indexOf(e)===-1&&t.push(e)}function qd(t){return t.filter(function(e,n){return t.indexOf(e)===n})}function jd(t){return t.split("-")[0]}function an(t){return[].slice.call(t)}function za(t){return Object.keys(t).reduce(function(e,n){return t[n]!==void 0&&(e[n]=t[n]),e},{})}function mt(){return document.createElement("div")}function yt(t){return["Element","Fragment"].some(function(e){return ha(t,e)})}function Hd(t){return ha(t,"NodeList")}function zd(t){return ha(t,"MouseEvent")}function Wd(t){return!!(t&&t._tippy&&t._tippy.reference===t)}function Ud(t){return yt(t)?[t]:Hd(t)?an(t):Array.isArray(t)?t:an(document.querySelectorAll(t))}function In(t,e){t.forEach(function(n){n&&(n.style.transitionDuration=e+"ms")})}function Wa(t,e){t.forEach(function(n){n&&n.setAttribute("data-state",e)})}function Kd(t){var e,n=Ye(t),a=n[0];return a!=null&&(e=a.ownerDocument)!=null&&e.body?a.ownerDocument:document}function Gd(t,e){var n=e.clientX,a=e.clientY;return t.every(function(r){var i=r.popperRect,s=r.popperState,l=r.props,d=l.interactiveBorder,p=jd(s.placement),c=s.modifiersData.offset;if(!c)return!0;var f=p==="bottom"?c.top.y:0,_=p==="top"?c.bottom.y:0,m=p==="right"?c.left.x:0,b=p==="left"?c.right.x:0,C=i.top-a+f>d,y=a-i.bottom-_>d,w=i.left-n+m>d,T=n-i.right-b>d;return C||y||w||T})}function Tn(t,e,n){var a=e+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(r){t[a](r,n)})}function Ua(t,e){for(var n=e;n;){var a;if(t.contains(n))return!0;n=n.getRootNode==null||(a=n.getRootNode())==null?void 0:a.host}return!1}var he={isTouch:!1},Ka=0;function Yd(){he.isTouch||(he.isTouch=!0,window.performance&&document.addEventListener("mousemove",ai))}function ai(){var t=performance.now();t-Ka<20&&(he.isTouch=!1,document.removeEventListener("mousemove",ai)),Ka=t}function Zd(){var t=document.activeElement;if(Wd(t)){var e=t._tippy;t.blur&&!e.state.isVisible&&t.blur()}}function Xd(){document.addEventListener("touchstart",Yd,Pe),window.addEventListener("blur",Zd)}var Qd=typeof window<"u"&&typeof document<"u",Jd=Qd?!!window.msCrypto:!1;function Ke(t){var e=t==="destroy"?"n already-":" ";return[t+"() was called on a"+e+"destroyed instance. This is a no-op but","indicates a potential memory leak."].join(" ")}function Ga(t){var e=/[ \t]{2,}/g,n=/^[ \t]*/gm;return t.replace(e," ").replace(n,"").trim()}function ec(t){return Ga(`
|
|
9
|
+
`,"We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "))}var c={placement:le(e.placement),variation:nt(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:r,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,Ra(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:d})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,Ra(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:d})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const Xl={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Zl,data:{}};var Ut={passive:!0};function Ql(t){var e=t.state,n=t.instance,a=t.options,r=a.scroll,i=r===void 0?!0:r,s=a.resize,l=s===void 0?!0:s,d=te(e.elements.popper),p=[].concat(e.scrollParents.reference,e.scrollParents.popper);return i&&p.forEach(function(c){c.addEventListener("scroll",n.update,Ut)}),l&&d.addEventListener("resize",n.update,Ut),function(){i&&p.forEach(function(c){c.removeEventListener("scroll",n.update,Ut)}),l&&d.removeEventListener("resize",n.update,Ut)}}const Jl={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Ql,data:{}};var ed={left:"right",right:"left",bottom:"top",top:"bottom"};function Zt(t){return t.replace(/left|right|bottom|top/g,function(e){return ed[e]})}var td={start:"end",end:"start"};function Pa(t){return t.replace(/start|end/g,function(e){return td[e]})}function pa(t){var e=te(t),n=e.pageXOffset,a=e.pageYOffset;return{scrollLeft:n,scrollTop:a}}function fa(t){return tt(Te(t)).left+pa(t).scrollLeft}function nd(t,e){var n=te(t),a=Te(t),r=n.visualViewport,i=a.clientWidth,s=a.clientHeight,l=0,d=0;if(r){i=r.width,s=r.height;var p=Wr();(p||!p&&e==="fixed")&&(l=r.offsetLeft,d=r.offsetTop)}return{width:i,height:s,x:l+fa(t),y:d}}function ad(t){var e,n=Te(t),a=pa(t),r=(e=t.ownerDocument)==null?void 0:e.body,i=Be(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),s=Be(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),l=-a.scrollLeft+fa(t),d=-a.scrollTop;return ce(r||n).direction==="rtl"&&(l+=Be(n.clientWidth,r?r.clientWidth:0)-i),{width:i,height:s,x:l,y:d}}function ha(t){var e=ce(t),n=e.overflow,a=e.overflowX,r=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+a)}function Zr(t){return["html","body","#document"].indexOf(me(t))>=0?t.ownerDocument.body:ee(t)&&ha(t)?t:Zr(cn(t))}function ht(t,e){var n;e===void 0&&(e=[]);var a=Zr(t),r=a===((n=t.ownerDocument)==null?void 0:n.body),i=te(a),s=r?[i].concat(i.visualViewport||[],ha(a)?a:[]):a,l=e.concat(s);return r?l:l.concat(ht(cn(s)))}function jn(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function rd(t,e){var n=tt(t,!1,e==="fixed");return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}function Na(t,e,n){return e===jr?jn(nd(t,n)):Fe(e)?rd(e,n):jn(ad(Te(t)))}function id(t){var e=ht(cn(t)),n=["absolute","fixed"].indexOf(ce(t).position)>=0,a=n&&ee(t)?Dt(t):t;return Fe(a)?e.filter(function(r){return Fe(r)&&Ur(r,a)&&me(r)!=="body"}):[]}function sd(t,e,n,a){var r=e==="clippingParents"?id(t):[].concat(e),i=[].concat(r,[n]),s=i[0],l=i.reduce(function(d,p){var c=Na(t,p,a);return d.top=Be(c.top,d.top),d.right=nn(c.right,d.right),d.bottom=nn(c.bottom,d.bottom),d.left=Be(c.left,d.left),d},Na(t,s,a));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function Xr(t){var e=t.reference,n=t.element,a=t.placement,r=a?le(a):null,i=a?nt(a):null,s=e.x+e.width/2-n.width/2,l=e.y+e.height/2-n.height/2,d;switch(r){case X:d={x:s,y:e.y-n.height};break;case ie:d={x:s,y:e.y+e.height};break;case se:d={x:e.x+e.width,y:l};break;case Q:d={x:e.x-n.width,y:l};break;default:d={x:e.x,y:e.y}}var p=r?ua(r):null;if(p!=null){var c=p==="y"?"height":"width";switch(i){case Je:d[p]=d[p]-(e[c]/2-n[c]/2);break;case vt:d[p]=d[p]+(e[c]/2-n[c]/2);break}}return d}function bt(t,e){e===void 0&&(e={});var n=e,a=n.placement,r=a===void 0?t.placement:a,i=n.strategy,s=i===void 0?t.strategy:i,l=n.boundary,d=l===void 0?Tl:l,p=n.rootBoundary,c=p===void 0?jr:p,f=n.elementContext,_=f===void 0?ct:f,m=n.altBoundary,b=m===void 0?!1:m,C=n.padding,y=C===void 0?0:C,w=Gr(typeof y!="number"?y:Yr(y,Tt)),T=_===ct?Dl:ct,k=t.rects.popper,o=t.elements[b?T:_],O=sd(Fe(o)?o:o.contextElement||Te(t.elements.popper),d,c,s),g=tt(t.elements.reference),E=Xr({reference:g,element:k,strategy:"absolute",placement:r}),P=jn(Object.assign({},k,E)),N=_===ct?P:g,A={top:O.top-N.top+w.top,bottom:N.bottom-O.bottom+w.bottom,left:O.left-N.left+w.left,right:N.right-O.right+w.right},I=t.modifiersData.offset;if(_===ct&&I){var $=I[r];Object.keys(A).forEach(function(B){var Y=[se,ie].indexOf(B)>=0?1:-1,R=[X,ie].indexOf(B)>=0?"y":"x";A[B]+=$[R]*Y})}return A}function od(t,e){e===void 0&&(e={});var n=e,a=n.placement,r=n.boundary,i=n.rootBoundary,s=n.padding,l=n.flipVariations,d=n.allowedAutoPlacements,p=d===void 0?Hr:d,c=nt(a),f=c?l?Aa:Aa.filter(function(b){return nt(b)===c}):Tt,_=f.filter(function(b){return p.indexOf(b)>=0});_.length===0&&(_=f,process.env.NODE_ENV!=="production"&&console.error(["Popper: The `allowedAutoPlacements` option did not allow any","placements. Ensure the `placement` option matches the variation","of the allowed placements.",'For example, "auto" cannot be used to allow "bottom-start".','Use "auto-start" instead.'].join(" ")));var m=_.reduce(function(b,C){return b[C]=bt(t,{placement:C,boundary:r,rootBoundary:i,padding:s})[le(C)],b},{});return Object.keys(m).sort(function(b,C){return m[b]-m[C]})}function ld(t){if(le(t)===dn)return[];var e=Zt(t);return[Pa(t),e,Pa(e)]}function dd(t){var e=t.state,n=t.options,a=t.name;if(!e.modifiersData[a]._skip){for(var r=n.mainAxis,i=r===void 0?!0:r,s=n.altAxis,l=s===void 0?!0:s,d=n.fallbackPlacements,p=n.padding,c=n.boundary,f=n.rootBoundary,_=n.altBoundary,m=n.flipVariations,b=m===void 0?!0:m,C=n.allowedAutoPlacements,y=e.options.placement,w=le(y),T=w===y,k=d||(T||!b?[Zt(y)]:ld(y)),o=[y].concat(k).reduce(function(ge,oe){return ge.concat(le(oe)===dn?od(e,{placement:oe,boundary:c,rootBoundary:f,padding:p,flipVariations:b,allowedAutoPlacements:C}):oe)},[]),O=e.rects.reference,g=e.rects.popper,E=new Map,P=!0,N=o[0],A=0;A<o.length;A++){var I=o[A],$=le(I),B=nt(I)===Je,Y=[X,ie].indexOf($)>=0,R=Y?"width":"height",F=bt(e,{placement:I,boundary:c,rootBoundary:f,altBoundary:_,padding:p}),q=Y?B?se:Q:B?ie:X;O[R]>g[R]&&(q=Zt(q));var W=Zt(q),ue=[];if(i&&ue.push(F[$]<=0),l&&ue.push(F[q]<=0,F[W]<=0),ue.every(function(ge){return ge})){N=I,P=!1;break}E.set(I,ue)}if(P)for(var pe=b?3:1,Le=function(oe){var _e=o.find(function(je){var ve=E.get(je);if(ve)return ve.slice(0,oe).every(function(He){return He})});if(_e)return N=_e,"break"},fe=pe;fe>0;fe--){var ke=Le(fe);if(ke==="break")break}e.placement!==N&&(e.modifiersData[a]._skip=!0,e.placement=N,e.reset=!0)}}const cd={name:"flip",enabled:!0,phase:"main",fn:dd,requiresIfExists:["offset"],data:{_skip:!1}};function Ma(t,e,n){return n===void 0&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function Ba(t){return[X,se,ie,Q].some(function(e){return t[e]>=0})}function ud(t){var e=t.state,n=t.name,a=e.rects.reference,r=e.rects.popper,i=e.modifiersData.preventOverflow,s=bt(e,{elementContext:"reference"}),l=bt(e,{altBoundary:!0}),d=Ma(s,a),p=Ma(l,r,i),c=Ba(d),f=Ba(p);e.modifiersData[n]={referenceClippingOffsets:d,popperEscapeOffsets:p,isReferenceHidden:c,hasPopperEscaped:f},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}const pd={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:ud};function fd(t,e,n){var a=le(t),r=[Q,X].indexOf(a)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},e,{placement:t})):n,s=i[0],l=i[1];return s=s||0,l=(l||0)*r,[Q,se].indexOf(a)>=0?{x:l,y:s}:{x:s,y:l}}function hd(t){var e=t.state,n=t.options,a=t.name,r=n.offset,i=r===void 0?[0,0]:r,s=Hr.reduce(function(c,f){return c[f]=fd(f,e.rects,i),c},{}),l=s[e.placement],d=l.x,p=l.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=d,e.modifiersData.popperOffsets.y+=p),e.modifiersData[a]=s}const md={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:hd};function gd(t){var e=t.state,n=t.name;e.modifiersData[n]=Xr({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const _d={name:"popperOffsets",enabled:!0,phase:"read",fn:gd,data:{}};function vd(t){return t==="x"?"y":"x"}function bd(t){var e=t.state,n=t.options,a=t.name,r=n.mainAxis,i=r===void 0?!0:r,s=n.altAxis,l=s===void 0?!1:s,d=n.boundary,p=n.rootBoundary,c=n.altBoundary,f=n.padding,_=n.tether,m=_===void 0?!0:_,b=n.tetherOffset,C=b===void 0?0:b,y=bt(e,{boundary:d,rootBoundary:p,padding:f,altBoundary:c}),w=le(e.placement),T=nt(e.placement),k=!T,o=ua(w),O=vd(o),g=e.modifiersData.popperOffsets,E=e.rects.reference,P=e.rects.popper,N=typeof C=="function"?C(Object.assign({},e.rects,{placement:e.placement})):C,A=typeof N=="number"?{mainAxis:N,altAxis:N}:Object.assign({mainAxis:0,altAxis:0},N),I=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,$={x:0,y:0};if(g){if(i){var B,Y=o==="y"?X:Q,R=o==="y"?ie:se,F=o==="y"?"height":"width",q=g[o],W=q+y[Y],ue=q-y[R],pe=m?-P[F]/2:0,Le=T===Je?E[F]:P[F],fe=T===Je?-P[F]:-E[F],ke=e.elements.arrow,ge=m&&ke?ca(ke):{width:0,height:0},oe=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:Kr(),_e=oe[Y],je=oe[R],ve=ft(0,E[F],ge[F]),He=k?E[F]/2-pe-ve-_e-A.mainAxis:Le-ve-_e-A.mainAxis,Ce=k?-E[F]/2+pe+ve+je+A.mainAxis:fe+ve+je+A.mainAxis,ze=e.elements.arrow&&Dt(e.elements.arrow),Rt=ze?o==="y"?ze.clientTop||0:ze.clientLeft||0:0,it=(B=I==null?void 0:I[o])!=null?B:0,Pt=q+He-it-Rt,Nt=q+Ce-it,st=ft(m?nn(W,Pt):W,q,m?Be(ue,Nt):ue);g[o]=st,$[o]=st-q}if(l){var ot,Mt=o==="x"?X:Q,Bt=o==="x"?ie:se,be=g[O],we=O==="y"?"height":"width",lt=be+y[Mt],Ae=be-y[Bt],dt=[X,Q].indexOf(w)!==-1,Ft=(ot=I==null?void 0:I[O])!=null?ot:0,Vt=dt?lt:be-E[we]-P[we]-Ft+A.altAxis,qt=dt?be+E[we]+P[we]-Ft-A.altAxis:Ae,jt=m&&dt?Hl(Vt,be,qt):ft(m?Vt:lt,be,m?qt:Ae);g[O]=jt,$[O]=jt-be}e.modifiersData[a]=$}}const yd={name:"preventOverflow",enabled:!0,phase:"main",fn:bd,requiresIfExists:["offset"]};function Sd(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function Cd(t){return t===te(t)||!ee(t)?pa(t):Sd(t)}function wd(t){var e=t.getBoundingClientRect(),n=et(e.width)/t.offsetWidth||1,a=et(e.height)/t.offsetHeight||1;return n!==1||a!==1}function Od(t,e,n){n===void 0&&(n=!1);var a=ee(e),r=ee(e)&&wd(e),i=Te(e),s=tt(t,r,n),l={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(a||!a&&!n)&&((me(e)!=="body"||ha(i))&&(l=Cd(e)),ee(e)?(d=tt(e,!0),d.x+=e.clientLeft,d.y+=e.clientTop):i&&(d.x=fa(i))),{x:s.left+l.scrollLeft-d.x,y:s.top+l.scrollTop-d.y,width:s.width,height:s.height}}function Ed(t){var e=new Map,n=new Set,a=[];t.forEach(function(i){e.set(i.name,i)});function r(i){n.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(l){if(!n.has(l)){var d=e.get(l);d&&r(d)}}),a.push(i)}return t.forEach(function(i){n.has(i.name)||r(i)}),a}function xd(t){var e=Ed(t);return Vn.reduce(function(n,a){return n.concat(e.filter(function(r){return r.phase===a}))},[])}function Id(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function Oe(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),a=1;a<e;a++)n[a-1]=arguments[a];return[].concat(n).reduce(function(r,i){return r.replace(/%s/,i)},t)}var Re='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',Td='Popper: modifier "%s" requires "%s", but "%s" modifier is not available',Fa=["name","enabled","phase","fn","effect","requires","options"];function Dd(t){t.forEach(function(e){[].concat(Object.keys(e),Fa).filter(function(n,a,r){return r.indexOf(n)===a}).forEach(function(n){switch(n){case"name":typeof e.name!="string"&&console.error(Oe(Re,String(e.name),'"name"','"string"','"'+String(e.name)+'"'));break;case"enabled":typeof e.enabled!="boolean"&&console.error(Oe(Re,e.name,'"enabled"','"boolean"','"'+String(e.enabled)+'"'));break;case"phase":Vn.indexOf(e.phase)<0&&console.error(Oe(Re,e.name,'"phase"',"either "+Vn.join(", "),'"'+String(e.phase)+'"'));break;case"fn":typeof e.fn!="function"&&console.error(Oe(Re,e.name,'"fn"','"function"','"'+String(e.fn)+'"'));break;case"effect":e.effect!=null&&typeof e.effect!="function"&&console.error(Oe(Re,e.name,'"effect"','"function"','"'+String(e.fn)+'"'));break;case"requires":e.requires!=null&&!Array.isArray(e.requires)&&console.error(Oe(Re,e.name,'"requires"','"array"','"'+String(e.requires)+'"'));break;case"requiresIfExists":Array.isArray(e.requiresIfExists)||console.error(Oe(Re,e.name,'"requiresIfExists"','"array"','"'+String(e.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+e.name+'" modifier, valid properties are '+Fa.map(function(a){return'"'+a+'"'}).join(", ")+'; but "'+n+'" was provided.')}e.requires&&e.requires.forEach(function(a){t.find(function(r){return r.name===a})==null&&console.error(Oe(Td,String(e.name),a,a))})})})}function Ld(t,e){var n=new Set;return t.filter(function(a){var r=e(a);if(!n.has(r))return n.add(r),!0})}function kd(t){var e=t.reduce(function(n,a){var r=n[a.name];return n[a.name]=r?Object.assign({},r,a,{options:Object.assign({},r.options,a.options),data:Object.assign({},r.data,a.data)}):a,n},{});return Object.keys(e).map(function(n){return e[n]})}var Va="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",Ad="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.",qa={placement:"bottom",modifiers:[],strategy:"absolute"};function ja(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some(function(a){return!(a&&typeof a.getBoundingClientRect=="function")})}function $d(t){t===void 0&&(t={});var e=t,n=e.defaultModifiers,a=n===void 0?[]:n,r=e.defaultOptions,i=r===void 0?qa:r;return function(l,d,p){p===void 0&&(p=i);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},qa,i),modifiersData:{},elements:{reference:l,popper:d},attributes:{},styles:{}},f=[],_=!1,m={state:c,setOptions:function(w){var T=typeof w=="function"?w(c.options):w;C(),c.options=Object.assign({},i,c.options,T),c.scrollParents={reference:Fe(l)?ht(l):l.contextElement?ht(l.contextElement):[],popper:ht(d)};var k=xd(kd([].concat(a,c.options.modifiers)));if(c.orderedModifiers=k.filter(function(I){return I.enabled}),process.env.NODE_ENV!=="production"){var o=Ld([].concat(k,c.options.modifiers),function(I){var $=I.name;return $});if(Dd(o),le(c.options.placement)===dn){var O=c.orderedModifiers.find(function(I){var $=I.name;return $==="flip"});O||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "))}var g=ce(d),E=g.marginTop,P=g.marginRight,N=g.marginBottom,A=g.marginLeft;[E,P,N,A].some(function(I){return parseFloat(I)})&&console.warn(['Popper: CSS "margin" styles cannot be used to apply padding',"between the popper and its reference element or boundary.","To replicate margin, use the `offset` modifier, as well as","the `padding` option in the `preventOverflow` and `flip`","modifiers."].join(" "))}return b(),m.update()},forceUpdate:function(){if(!_){var w=c.elements,T=w.reference,k=w.popper;if(!ja(T,k)){process.env.NODE_ENV!=="production"&&console.error(Va);return}c.rects={reference:Od(T,Dt(k),c.options.strategy==="fixed"),popper:ca(k)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(I){return c.modifiersData[I.name]=Object.assign({},I.data)});for(var o=0,O=0;O<c.orderedModifiers.length;O++){if(process.env.NODE_ENV!=="production"&&(o+=1,o>100)){console.error(Ad);break}if(c.reset===!0){c.reset=!1,O=-1;continue}var g=c.orderedModifiers[O],E=g.fn,P=g.options,N=P===void 0?{}:P,A=g.name;typeof E=="function"&&(c=E({state:c,options:N,name:A,instance:m})||c)}}},update:Id(function(){return new Promise(function(y){m.forceUpdate(),y(c)})}),destroy:function(){C(),_=!0}};if(!ja(l,d))return process.env.NODE_ENV!=="production"&&console.error(Va),m;m.setOptions(p).then(function(y){!_&&p.onFirstUpdate&&p.onFirstUpdate(y)});function b(){c.orderedModifiers.forEach(function(y){var w=y.name,T=y.options,k=T===void 0?{}:T,o=y.effect;if(typeof o=="function"){var O=o({state:c,name:w,instance:m,options:k}),g=function(){};f.push(O||g)}})}function C(){f.forEach(function(y){return y()}),f=[]}return m}}var Rd=[Jl,_d,Xl,zr,md,cd,yd,Kl,pd],Pd=$d({defaultModifiers:Rd}),Nd="tippy-box",Qr="tippy-content",Md="tippy-backdrop",Jr="tippy-arrow",ei="tippy-svg-arrow",Pe={passive:!0,capture:!0},ti=function(){return document.body};function Bd(t,e){return{}.hasOwnProperty.call(t,e)}function xn(t,e,n){if(Array.isArray(t)){var a=t[e];return a??(Array.isArray(n)?n[e]:n)}return t}function ma(t,e){var n={}.toString.call(t);return n.indexOf("[object")===0&&n.indexOf(e+"]")>-1}function ni(t,e){return typeof t=="function"?t.apply(void 0,e):t}function Ha(t,e){if(e===0)return t;var n;return function(a){clearTimeout(n),n=setTimeout(function(){t(a)},e)}}function Fd(t,e){var n=Object.assign({},t);return e.forEach(function(a){delete n[a]}),n}function Vd(t){return t.split(/\s+/).filter(Boolean)}function Ye(t){return[].concat(t)}function za(t,e){t.indexOf(e)===-1&&t.push(e)}function qd(t){return t.filter(function(e,n){return t.indexOf(e)===n})}function jd(t){return t.split("-")[0]}function an(t){return[].slice.call(t)}function Wa(t){return Object.keys(t).reduce(function(e,n){return t[n]!==void 0&&(e[n]=t[n]),e},{})}function mt(){return document.createElement("div")}function yt(t){return["Element","Fragment"].some(function(e){return ma(t,e)})}function Hd(t){return ma(t,"NodeList")}function zd(t){return ma(t,"MouseEvent")}function Wd(t){return!!(t&&t._tippy&&t._tippy.reference===t)}function Ud(t){return yt(t)?[t]:Hd(t)?an(t):Array.isArray(t)?t:an(document.querySelectorAll(t))}function In(t,e){t.forEach(function(n){n&&(n.style.transitionDuration=e+"ms")})}function Ua(t,e){t.forEach(function(n){n&&n.setAttribute("data-state",e)})}function Kd(t){var e,n=Ye(t),a=n[0];return a!=null&&(e=a.ownerDocument)!=null&&e.body?a.ownerDocument:document}function Gd(t,e){var n=e.clientX,a=e.clientY;return t.every(function(r){var i=r.popperRect,s=r.popperState,l=r.props,d=l.interactiveBorder,p=jd(s.placement),c=s.modifiersData.offset;if(!c)return!0;var f=p==="bottom"?c.top.y:0,_=p==="top"?c.bottom.y:0,m=p==="right"?c.left.x:0,b=p==="left"?c.right.x:0,C=i.top-a+f>d,y=a-i.bottom-_>d,w=i.left-n+m>d,T=n-i.right-b>d;return C||y||w||T})}function Tn(t,e,n){var a=e+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(r){t[a](r,n)})}function Ka(t,e){for(var n=e;n;){var a;if(t.contains(n))return!0;n=n.getRootNode==null||(a=n.getRootNode())==null?void 0:a.host}return!1}var he={isTouch:!1},Ga=0;function Yd(){he.isTouch||(he.isTouch=!0,window.performance&&document.addEventListener("mousemove",ai))}function ai(){var t=performance.now();t-Ga<20&&(he.isTouch=!1,document.removeEventListener("mousemove",ai)),Ga=t}function Zd(){var t=document.activeElement;if(Wd(t)){var e=t._tippy;t.blur&&!e.state.isVisible&&t.blur()}}function Xd(){document.addEventListener("touchstart",Yd,Pe),window.addEventListener("blur",Zd)}var Qd=typeof window<"u"&&typeof document<"u",Jd=Qd?!!window.msCrypto:!1;function Ke(t){var e=t==="destroy"?"n already-":" ";return[t+"() was called on a"+e+"destroyed instance. This is a no-op but","indicates a potential memory leak."].join(" ")}function Ya(t){var e=/[ \t]{2,}/g,n=/^[ \t]*/gm;return t.replace(e," ").replace(n,"").trim()}function ec(t){return Ya(`
|
|
10
10
|
%ctippy.js
|
|
11
11
|
|
|
12
|
-
%c`+
|
|
12
|
+
%c`+Ya(t)+`
|
|
13
13
|
|
|
14
14
|
%c👷 This is a development-only message. It will be removed in production.
|
|
15
|
-
`)}function ri(t){return[ec(t),"color: #00C584; font-size: 1.3em; font-weight: bold;","line-height: 1.5","color: #a6a095;"]}var St;process.env.NODE_ENV!=="production"&&tc();function tc(){St=new Set}function ye(t,e){if(t&&!St.has(e)){var n;St.add(e),(n=console).warn.apply(n,ri(e))}}function Hn(t,e){if(t&&!St.has(e)){var n;St.add(e),(n=console).error.apply(n,ri(e))}}function nc(t){var e=!t,n=Object.prototype.toString.call(t)==="[object Object]"&&!t.addEventListener;Hn(e,["tippy() was passed","`"+String(t)+"`","as its targets (first) argument. Valid types are: String, Element,","Element[], or NodeList."].join(" ")),Hn(n,["tippy() was passed a plain object which is not supported as an argument","for virtual positioning. Use props.getReferenceClientRect instead."].join(" "))}var ii={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},ac={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},J=Object.assign({appendTo:ti,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},ii,ac),rc=Object.keys(J),ic=function(e){process.env.NODE_ENV!=="production"&&oi(e,[]);var n=Object.keys(e);n.forEach(function(a){J[a]=e[a]})};function si(t){var e=t.plugins||[],n=e.reduce(function(a,r){var i=r.name,s=r.defaultValue;if(i){var l;a[i]=t[i]!==void 0?t[i]:(l=J[i])!=null?l:s}return a},{});return Object.assign({},t,n)}function sc(t,e){var n=e?Object.keys(si(Object.assign({},J,{plugins:e}))):rc,a=n.reduce(function(r,i){var s=(t.getAttribute("data-tippy-"+i)||"").trim();if(!s)return r;if(i==="content")r[i]=s;else try{r[i]=JSON.parse(s)}catch{r[i]=s}return r},{});return a}function
|
|
15
|
+
`)}function ri(t){return[ec(t),"color: #00C584; font-size: 1.3em; font-weight: bold;","line-height: 1.5","color: #a6a095;"]}var St;process.env.NODE_ENV!=="production"&&tc();function tc(){St=new Set}function ye(t,e){if(t&&!St.has(e)){var n;St.add(e),(n=console).warn.apply(n,ri(e))}}function Hn(t,e){if(t&&!St.has(e)){var n;St.add(e),(n=console).error.apply(n,ri(e))}}function nc(t){var e=!t,n=Object.prototype.toString.call(t)==="[object Object]"&&!t.addEventListener;Hn(e,["tippy() was passed","`"+String(t)+"`","as its targets (first) argument. Valid types are: String, Element,","Element[], or NodeList."].join(" ")),Hn(n,["tippy() was passed a plain object which is not supported as an argument","for virtual positioning. Use props.getReferenceClientRect instead."].join(" "))}var ii={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},ac={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},J=Object.assign({appendTo:ti,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},ii,ac),rc=Object.keys(J),ic=function(e){process.env.NODE_ENV!=="production"&&oi(e,[]);var n=Object.keys(e);n.forEach(function(a){J[a]=e[a]})};function si(t){var e=t.plugins||[],n=e.reduce(function(a,r){var i=r.name,s=r.defaultValue;if(i){var l;a[i]=t[i]!==void 0?t[i]:(l=J[i])!=null?l:s}return a},{});return Object.assign({},t,n)}function sc(t,e){var n=e?Object.keys(si(Object.assign({},J,{plugins:e}))):rc,a=n.reduce(function(r,i){var s=(t.getAttribute("data-tippy-"+i)||"").trim();if(!s)return r;if(i==="content")r[i]=s;else try{r[i]=JSON.parse(s)}catch{r[i]=s}return r},{});return a}function Za(t,e){var n=Object.assign({},e,{content:ni(e.content,[t])},e.ignoreAttributes?{}:sc(t,e.plugins));return n.aria=Object.assign({},J.aria,n.aria),n.aria={expanded:n.aria.expanded==="auto"?e.interactive:n.aria.expanded,content:n.aria.content==="auto"?e.interactive?null:"describedby":n.aria.content},n}function oi(t,e){t===void 0&&(t={}),e===void 0&&(e=[]);var n=Object.keys(t);n.forEach(function(a){var r=Fd(J,Object.keys(ii)),i=!Bd(r,a);i&&(i=e.filter(function(s){return s.name===a}).length===0),ye(i,["`"+a+"`","is not a valid prop. You may have spelled it incorrectly, or if it's","a plugin, forgot to pass it in an array as props.plugins.",`
|
|
16
16
|
|
|
17
17
|
`,`All props: https://atomiks.github.io/tippyjs/v6/all-props/
|
|
18
|
-
`,"Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "))})}var oc=function(){return"innerHTML"};function zn(t,e){t[oc()]=e}function
|
|
18
|
+
`,"Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "))})}var oc=function(){return"innerHTML"};function zn(t,e){t[oc()]=e}function Xa(t){var e=mt();return t===!0?e.className=Jr:(e.className=ei,yt(t)?e.appendChild(t):zn(e,t)),e}function Qa(t,e){yt(e.content)?(zn(t,""),t.appendChild(e.content)):typeof e.content!="function"&&(e.allowHTML?zn(t,e.content):t.textContent=e.content)}function Wn(t){var e=t.firstElementChild,n=an(e.children);return{box:e,content:n.find(function(a){return a.classList.contains(Qr)}),arrow:n.find(function(a){return a.classList.contains(Jr)||a.classList.contains(ei)}),backdrop:n.find(function(a){return a.classList.contains(Md)})}}function li(t){var e=mt(),n=mt();n.className=Nd,n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var a=mt();a.className=Qr,a.setAttribute("data-state","hidden"),Qa(a,t.props),e.appendChild(n),n.appendChild(a),r(t.props,t.props);function r(i,s){var l=Wn(e),d=l.box,p=l.content,c=l.arrow;s.theme?d.setAttribute("data-theme",s.theme):d.removeAttribute("data-theme"),typeof s.animation=="string"?d.setAttribute("data-animation",s.animation):d.removeAttribute("data-animation"),s.inertia?d.setAttribute("data-inertia",""):d.removeAttribute("data-inertia"),d.style.maxWidth=typeof s.maxWidth=="number"?s.maxWidth+"px":s.maxWidth,s.role?d.setAttribute("role",s.role):d.removeAttribute("role"),(i.content!==s.content||i.allowHTML!==s.allowHTML)&&Qa(p,t.props),s.arrow?c?i.arrow!==s.arrow&&(d.removeChild(c),d.appendChild(Xa(s.arrow))):d.appendChild(Xa(s.arrow)):c&&d.removeChild(c)}return{popper:e,onUpdate:r}}li.$$tippy=!0;var lc=1,Kt=[],Dn=[];function dc(t,e){var n=Za(t,Object.assign({},J,si(Wa(e)))),a,r,i,s=!1,l=!1,d=!1,p=!1,c,f,_,m=[],b=Ha(Pt,n.interactiveDebounce),C,y=lc++,w=null,T=qd(n.plugins),k={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},o={id:y,reference:t,popper:mt(),popperInstance:w,props:n,state:k,plugins:T,clearDelayTimeouts:Vt,setProps:qt,setContent:jt,show:Zi,hide:Xi,hideWithInteractivity:Qi,enable:dt,disable:Ft,unmount:Ji,destroy:es};if(!n.render)return process.env.NODE_ENV!=="production"&&Hn(!0,"render() function has not been supplied."),o;var O=n.render(o),g=O.popper,E=O.onUpdate;g.setAttribute("data-tippy-root",""),g.id="tippy-"+o.id,o.popper=g,t._tippy=o,g._tippy=o;var P=T.map(function(u){return u.fn(o)}),N=t.hasAttribute("aria-expanded");return ze(),pe(),q(),W("onCreate",[o]),n.showOnCreate&<(),g.addEventListener("mouseenter",function(){o.props.interactive&&o.state.isVisible&&o.clearDelayTimeouts()}),g.addEventListener("mouseleave",function(){o.props.interactive&&o.props.trigger.indexOf("mouseenter")>=0&&Y().addEventListener("mousemove",b)}),o;function A(){var u=o.props.touch;return Array.isArray(u)?u:[u,0]}function I(){return A()[0]==="hold"}function $(){var u;return!!((u=o.props.render)!=null&&u.$$tippy)}function B(){return C||t}function Y(){var u=B().parentNode;return u?Kd(u):document}function R(){return Wn(g)}function F(u){return o.state.isMounted&&!o.state.isVisible||he.isTouch||c&&c.type==="focus"?0:xn(o.props.delay,u?0:1,J.delay)}function q(u){u===void 0&&(u=!1),g.style.pointerEvents=o.props.interactive&&!u?"":"none",g.style.zIndex=""+o.props.zIndex}function W(u,v,S){if(S===void 0&&(S=!0),P.forEach(function(x){x[u]&&x[u].apply(x,v)}),S){var D;(D=o.props)[u].apply(D,v)}}function ue(){var u=o.props.aria;if(u.content){var v="aria-"+u.content,S=g.id,D=Ye(o.props.triggerTarget||t);D.forEach(function(x){var Z=x.getAttribute(v);if(o.state.isVisible)x.setAttribute(v,Z?Z+" "+S:S);else{var ne=Z&&Z.replace(S,"").trim();ne?x.setAttribute(v,ne):x.removeAttribute(v)}})}}function pe(){if(!(N||!o.props.aria.expanded)){var u=Ye(o.props.triggerTarget||t);u.forEach(function(v){o.props.interactive?v.setAttribute("aria-expanded",o.state.isVisible&&v===B()?"true":"false"):v.removeAttribute("aria-expanded")})}}function Le(){Y().removeEventListener("mousemove",b),Kt=Kt.filter(function(u){return u!==b})}function fe(u){if(!(he.isTouch&&(d||u.type==="mousedown"))){var v=u.composedPath&&u.composedPath()[0]||u.target;if(!(o.props.interactive&&Ka(g,v))){if(Ye(o.props.triggerTarget||t).some(function(S){return Ka(S,v)})){if(he.isTouch||o.state.isVisible&&o.props.trigger.indexOf("click")>=0)return}else W("onClickOutside",[o,u]);o.props.hideOnClick===!0&&(o.clearDelayTimeouts(),o.hide(),l=!0,setTimeout(function(){l=!1}),o.state.isMounted||_e())}}}function ke(){d=!0}function ge(){d=!1}function oe(){var u=Y();u.addEventListener("mousedown",fe,!0),u.addEventListener("touchend",fe,Pe),u.addEventListener("touchstart",ge,Pe),u.addEventListener("touchmove",ke,Pe)}function _e(){var u=Y();u.removeEventListener("mousedown",fe,!0),u.removeEventListener("touchend",fe,Pe),u.removeEventListener("touchstart",ge,Pe),u.removeEventListener("touchmove",ke,Pe)}function je(u,v){He(u,function(){!o.state.isVisible&&g.parentNode&&g.parentNode.contains(g)&&v()})}function ve(u,v){He(u,v)}function He(u,v){var S=R().box;function D(x){x.target===S&&(Tn(S,"remove",D),v())}if(u===0)return v();Tn(S,"remove",f),Tn(S,"add",D),f=D}function Ce(u,v,S){S===void 0&&(S=!1);var D=Ye(o.props.triggerTarget||t);D.forEach(function(x){x.addEventListener(u,v,S),m.push({node:x,eventType:u,handler:v,options:S})})}function ze(){I()&&(Ce("touchstart",it,{passive:!0}),Ce("touchend",Nt,{passive:!0})),Vd(o.props.trigger).forEach(function(u){if(u!=="manual")switch(Ce(u,it),u){case"mouseenter":Ce("mouseleave",Nt);break;case"focus":Ce(Jd?"focusout":"blur",st);break;case"focusin":Ce("focusout",st);break}})}function Rt(){m.forEach(function(u){var v=u.node,S=u.eventType,D=u.handler,x=u.options;v.removeEventListener(S,D,x)}),m=[]}function it(u){var v,S=!1;if(!(!o.state.isEnabled||ot(u)||l)){var D=((v=c)==null?void 0:v.type)==="focus";c=u,C=u.currentTarget,pe(),!o.state.isVisible&&zd(u)&&Kt.forEach(function(x){return x(u)}),u.type==="click"&&(o.props.trigger.indexOf("mouseenter")<0||s)&&o.props.hideOnClick!==!1&&o.state.isVisible?S=!0:lt(u),u.type==="click"&&(s=!S),S&&!D&&Ae(u)}}function Pt(u){var v=u.target,S=B().contains(v)||g.contains(v);if(!(u.type==="mousemove"&&S)){var D=we().concat(g).map(function(x){var Z,ne=x._tippy,We=(Z=ne.popperInstance)==null?void 0:Z.state;return We?{popperRect:x.getBoundingClientRect(),popperState:We,props:n}:null}).filter(Boolean);Gd(D,u)&&(Le(),Ae(u))}}function Nt(u){var v=ot(u)||o.props.trigger.indexOf("click")>=0&&s;if(!v){if(o.props.interactive){o.hideWithInteractivity(u);return}Ae(u)}}function st(u){o.props.trigger.indexOf("focusin")<0&&u.target!==B()||o.props.interactive&&u.relatedTarget&&g.contains(u.relatedTarget)||Ae(u)}function ot(u){return he.isTouch?I()!==u.type.indexOf("touch")>=0:!1}function Mt(){Bt();var u=o.props,v=u.popperOptions,S=u.placement,D=u.offset,x=u.getReferenceClientRect,Z=u.moveTransition,ne=$()?Wn(g).arrow:null,We=x?{getBoundingClientRect:x,contextElement:x.contextElement||B()}:t,Ia={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(Ht){var Ue=Ht.state;if($()){var ts=R(),wn=ts.box;["placement","reference-hidden","escaped"].forEach(function(zt){zt==="placement"?wn.setAttribute("data-placement",Ue.placement):Ue.attributes.popper["data-popper-"+zt]?wn.setAttribute("data-"+zt,""):wn.removeAttribute("data-"+zt)}),Ue.attributes.popper={}}}},$e=[{name:"offset",options:{offset:D}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!Z}},Ia];$()&&ne&&$e.push({name:"arrow",options:{element:ne,padding:3}}),$e.push.apply($e,(v==null?void 0:v.modifiers)||[]),o.popperInstance=Pd(We,g,Object.assign({},v,{placement:S,onFirstUpdate:_,modifiers:$e}))}function Bt(){o.popperInstance&&(o.popperInstance.destroy(),o.popperInstance=null)}function be(){var u=o.props.appendTo,v,S=B();o.props.interactive&&u===ti||u==="parent"?v=S.parentNode:v=ni(u,[S]),v.contains(g)||v.appendChild(g),o.state.isMounted=!0,Mt(),process.env.NODE_ENV!=="production"&&ye(o.props.interactive&&u===J.appendTo&&S.nextElementSibling!==g,["Interactive tippy element may not be accessible via keyboard","navigation because it is not directly after the reference element","in the DOM source order.",`
|
|
19
19
|
|
|
20
20
|
`,"Using a wrapper <div> or <span> tag around the reference element","solves this by creating a new parentNode context.",`
|
|
21
21
|
|
|
22
22
|
`,"Specifying `appendTo: document.body` silences this warning, but it","assumes you are using a focus management solution to handle","keyboard navigation.",`
|
|
23
23
|
|
|
24
|
-
`,"See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" "))}function we(){return an(g.querySelectorAll("[data-tippy-root]"))}function lt(u){o.clearDelayTimeouts(),u&&W("onTrigger",[o,u]),oe();var v=F(!0),S=A(),D=S[0],x=S[1];he.isTouch&&D==="hold"&&x&&(v=x),v?a=setTimeout(function(){o.show()},v):o.show()}function Ae(u){if(o.clearDelayTimeouts(),W("onUntrigger",[o,u]),!o.state.isVisible){_e();return}if(!(o.props.trigger.indexOf("mouseenter")>=0&&o.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(u.type)>=0&&s)){var v=F(!1);v?r=setTimeout(function(){o.state.isVisible&&o.hide()},v):i=requestAnimationFrame(function(){o.hide()})}}function dt(){o.state.isEnabled=!0}function Ft(){o.hide(),o.state.isEnabled=!1}function Vt(){clearTimeout(a),clearTimeout(r),cancelAnimationFrame(i)}function qt(u){if(process.env.NODE_ENV!=="production"&&ye(o.state.isDestroyed,Ke("setProps")),!o.state.isDestroyed){W("onBeforeUpdate",[o,u]),Rt();var v=o.props,S=
|
|
24
|
+
`,"See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" "))}function we(){return an(g.querySelectorAll("[data-tippy-root]"))}function lt(u){o.clearDelayTimeouts(),u&&W("onTrigger",[o,u]),oe();var v=F(!0),S=A(),D=S[0],x=S[1];he.isTouch&&D==="hold"&&x&&(v=x),v?a=setTimeout(function(){o.show()},v):o.show()}function Ae(u){if(o.clearDelayTimeouts(),W("onUntrigger",[o,u]),!o.state.isVisible){_e();return}if(!(o.props.trigger.indexOf("mouseenter")>=0&&o.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(u.type)>=0&&s)){var v=F(!1);v?r=setTimeout(function(){o.state.isVisible&&o.hide()},v):i=requestAnimationFrame(function(){o.hide()})}}function dt(){o.state.isEnabled=!0}function Ft(){o.hide(),o.state.isEnabled=!1}function Vt(){clearTimeout(a),clearTimeout(r),cancelAnimationFrame(i)}function qt(u){if(process.env.NODE_ENV!=="production"&&ye(o.state.isDestroyed,Ke("setProps")),!o.state.isDestroyed){W("onBeforeUpdate",[o,u]),Rt();var v=o.props,S=Za(t,Object.assign({},v,Wa(u),{ignoreAttributes:!0}));o.props=S,ze(),v.interactiveDebounce!==S.interactiveDebounce&&(Le(),b=Ha(Pt,S.interactiveDebounce)),v.triggerTarget&&!S.triggerTarget?Ye(v.triggerTarget).forEach(function(D){D.removeAttribute("aria-expanded")}):S.triggerTarget&&t.removeAttribute("aria-expanded"),pe(),q(),E&&E(v,S),o.popperInstance&&(Mt(),we().forEach(function(D){requestAnimationFrame(D._tippy.popperInstance.forceUpdate)})),W("onAfterUpdate",[o,u])}}function jt(u){o.setProps({content:u})}function Zi(){process.env.NODE_ENV!=="production"&&ye(o.state.isDestroyed,Ke("show"));var u=o.state.isVisible,v=o.state.isDestroyed,S=!o.state.isEnabled,D=he.isTouch&&!o.props.touch,x=xn(o.props.duration,0,J.duration);if(!(u||v||S||D)&&!B().hasAttribute("disabled")&&(W("onShow",[o],!1),o.props.onShow(o)!==!1)){if(o.state.isVisible=!0,$()&&(g.style.visibility="visible"),q(),oe(),o.state.isMounted||(g.style.transition="none"),$()){var Z=R(),ne=Z.box,We=Z.content;In([ne,We],0)}_=function(){var $e;if(!(!o.state.isVisible||p)){if(p=!0,g.offsetHeight,g.style.transition=o.props.moveTransition,$()&&o.props.animation){var Cn=R(),Ht=Cn.box,Ue=Cn.content;In([Ht,Ue],x),Ua([Ht,Ue],"visible")}ue(),pe(),za(Dn,o),($e=o.popperInstance)==null||$e.forceUpdate(),W("onMount",[o]),o.props.animation&&$()&&ve(x,function(){o.state.isShown=!0,W("onShown",[o])})}},be()}}function Xi(){process.env.NODE_ENV!=="production"&&ye(o.state.isDestroyed,Ke("hide"));var u=!o.state.isVisible,v=o.state.isDestroyed,S=!o.state.isEnabled,D=xn(o.props.duration,1,J.duration);if(!(u||v||S)&&(W("onHide",[o],!1),o.props.onHide(o)!==!1)){if(o.state.isVisible=!1,o.state.isShown=!1,p=!1,s=!1,$()&&(g.style.visibility="hidden"),Le(),_e(),q(!0),$()){var x=R(),Z=x.box,ne=x.content;o.props.animation&&(In([Z,ne],D),Ua([Z,ne],"hidden"))}ue(),pe(),o.props.animation?$()&&je(D,o.unmount):o.unmount()}}function Qi(u){process.env.NODE_ENV!=="production"&&ye(o.state.isDestroyed,Ke("hideWithInteractivity")),Y().addEventListener("mousemove",b),za(Kt,b),b(u)}function Ji(){process.env.NODE_ENV!=="production"&&ye(o.state.isDestroyed,Ke("unmount")),o.state.isVisible&&o.hide(),o.state.isMounted&&(Bt(),we().forEach(function(u){u._tippy.unmount()}),g.parentNode&&g.parentNode.removeChild(g),Dn=Dn.filter(function(u){return u!==o}),o.state.isMounted=!1,W("onHidden",[o]))}function es(){process.env.NODE_ENV!=="production"&&ye(o.state.isDestroyed,Ke("destroy")),!o.state.isDestroyed&&(o.clearDelayTimeouts(),o.unmount(),Rt(),delete t._tippy,o.state.isDestroyed=!0,W("onDestroy",[o]))}}function Lt(t,e){e===void 0&&(e={});var n=J.plugins.concat(e.plugins||[]);process.env.NODE_ENV!=="production"&&(nc(t),oi(e,n)),Xd();var a=Object.assign({},e,{plugins:n}),r=Ud(t);if(process.env.NODE_ENV!=="production"){var i=yt(a.content),s=r.length>1;ye(i&&s,["tippy() was passed an Element as the `content` prop, but more than","one tippy instance was created by this invocation. This means the","content element will only be appended to the last tippy instance.",`
|
|
25
25
|
|
|
26
26
|
`,"Instead, pass the .innerHTML of the element, or use a function that","returns a cloned version of the element instead.",`
|
|
27
27
|
|
|
28
28
|
`,`1) content: element.innerHTML
|
|
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&&Qa(s,p)||c&&Qa(l,c))&&e.popperInstance&&e.popperInstance.update(),s=p,l=c,e.state.isMounted&&requestAnimationFrame(d)}return{onMount:function(){e.props.sticky&&d()}}}};function Qa(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},Ja=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"],ma=["","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)}}),ga=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",ga),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:ga},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=>ma.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:[oa({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:Ne.ARROW_KEYS,validator:t=>Object.values(Ne).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:Ne,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"}})},Mc=[],Nc=h.normalizeComponent(Rc,Pc,Mc,!1,null,null,null,null);const Bc=Nc.exports,Fc={name:"DtImageViewer",components:{Portal:ga,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)},qc=[],jc=h.normalizeComponent(Fc,Vc,qc,!1,null,null,null,null);const Hc=jc.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 na(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,_a={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)}}},va={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}}},ba={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 ya=tu.exports,Kn={default:"",danger:"d-modal--danger"},Gn={default:"",full:"d-modal--full"},er={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:ra,DtNoticeContent:ia,DtNoticeAction:sa},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:er,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 er[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:[_a,va,ba,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:ya,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 Mu=h.normalizeComponent($u,Ru,Pu,!1,null,null,null,null);const Nu=Mu.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)},qu=[],ju=h.normalizeComponent(Fu,Vu,qu,!1,null,null,null,null);const Hu=ju.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:[_a,va,ba,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:ya,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,Yn={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(Yn).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",Yn[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 Sa=gp.exports,Zn={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(Zn).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:Zn,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:ra,DtNoticeContent:ia,DtNoticeAction:sa},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 Mp=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],Np=[!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(Ja(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 Ja(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=[],qp=h.normalizeComponent(Bp,Fp,Vp,!1,null,null,null,null);const hn=qp.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"},jp=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,Ca={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===Ca.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(Ca).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"],wa=["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 wa.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 wa.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:wa,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 N(t,e){if(e.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+e.length+" present")}function j(t){N(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){N(2,arguments);var n=j(t),a=K(e);return isNaN(a)?new Date(NaN):(a&&n.setDate(n.getDate()+a),n)}function $i(t,e){N(2,arguments);var n=j(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){N(2,arguments);var n=j(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;N(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 _=j(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 N(1,arguments),t instanceof Date||wt(t)==="object"&&Object.prototype.toString.call(t)==="[object Date]"}function yf(t){if(N(1,arguments),!bf(t)&&typeof t!="number")return!1;var e=j(t);return!isNaN(Number(e))}function Sf(t,e){N(2,arguments);var n=K(e);return mf(t,-n)}var Cf=864e5;function wf(t){N(1,arguments);var e=j(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){N(1,arguments);var e=1,n=j(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){N(1,arguments);var e=j(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){N(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){N(1,arguments);var e=j(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;N(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 _=j(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;N(1,arguments);var c=j(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;N(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){N(1,arguments);var n=j(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 Me(s);case"XXXXX":case"XXX":default:return Me(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 Me(s);case"xxxxx":case"xxx":default:return Me(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"+Me(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"+Me(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 Me(t,e)}function Me(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"})}},Mi=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}}",Mi(i,n))},Rf={p:Mi,P:$f};const Pf=Rf;var Mf=["D","DD"],Nf=["YY","YYYY"];function Bf(t){return Mf.indexOf(t)!==-1}function Ff(t){return Nf.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"}},qf=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 jf=qf;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:jf,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 qe(t,e,n){var a,r,i,s,l,d,p,c,f,_,m,b,C,y,w,T,k,o;N(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 M=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(!(M>=0&&M<=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=j(t);if(!yf(A))throw new RangeError("Invalid time value");var I=vf(A),$=Sf(A,I),B={firstWeekContainsDate:P,weekStartsOn:M,locale:E,_originalDate:A},Y=O.match(xh).map(function(R){var F=R[0];if(F==="p"||F==="P"){var q=Pf[F];return q(R,E.formatLong)}return R}).join("").match(Eh).map(function(R){if(R==="''")return"'";var F=R[0];if(F==="'")return Lh(R);var q=Af[F];if(q)return!(n!=null&&n.useAdditionalWeekYearTokens)&&Ff(R)&&lr(R,e,String(t)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&Bf(R)&&lr(R,e,String(t)),q($,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){N(1,arguments);var e=j(t),n=e.getDate();return n}function Ah(t){N(1,arguments);var e=j(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){N(1,arguments);var e=j(t),n=e.getMonth();return n}function Xn(t){return N(1,arguments),j(t).getFullYear()}function $h(t,e){N(2,arguments);var n=j(t),a=j(e);return n.getTime()===a.getTime()}function Rh(t,e){N(2,arguments);var n=j(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(N(2,arguments),wt(e)!=="object"||e===null)throw new RangeError("values parameter must be an object");var n=j(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 Mh(t,e){N(2,arguments);var n=K(e);return $i(t,-n)}const Ni=0,Bi="MMMM",Qn=t=>t?new Date(t):new Date,Nh=(t,e,n)=>{const a=Qn(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=Qn(new Date(e,t)),i=Qn(new Date(e,t+1,0)),l=_f(r,{weekStartsOn:Ni}),d=p=>{const c=Nh(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)},qh=(t,e)=>qe(new Date(2e3,t,1),e),jh={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:Xn(this.selectedDate),highlightedDay:null,focusPicker:0,focusRefs:[]}},computed:{calendarDays(){return Fh(this.selectMonth,this.selectYear,this.highlightedDay)},formattedMonth(){return(t,e)=>qh(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=Xn(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):Mh(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(jh,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,Ni)}},watch:{calendarDays(){this.focusDay=0,this.daysRef=[],this.selectedDay=null}},methods:{dayAriaLabel(t){return`${this.selectDayLabel} ${t.text} ${qe(t.value,Bi)} ${Xn(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 qe(t,"EEEE, MMMM d, yyyy")}function rm(t){return qe(t,"MMMM d, yyyy")}function im(t,e=!0){return qe(t,e?"EEE, MMM d, yyyy":"MMM d, yyyy")}function sm(t,e=!1){return qe(t,e?"MMM d":"MMMM d")}function om(t){return qe(t,"MM/dd/yy")}const lm={name:"DtRecipeComboboxWithPopover",components:{DtCombobox:Vr,DtPopover:pn,ComboboxLoadingList:Nr,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=>ma.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:Sa,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,Oa=["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=>Oa.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 qi=Cm.exports;const wm={name:"DtRecipeCallbarButtonWithPopover",components:{DtRecipeCallbarButton:qi,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=>Oa.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,ji=["green300","green100","red200","red100","gold100","gold200","black100","white"];const $m={name:"DtRecipeTopBannerInfo",props:{colorCode:{type:String,default:"green300",validator:function(t){return ji.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=[],Mm=h.normalizeComponent($m,Rm,Pm,!1,null,null,null,null);const Nm=Mm.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:Mr,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 qm=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)},jm=[],Hm=h.normalizeComponent(Vm,qm,jm,!1,null,null,null,null);const zm=Hm.exports;const Wm={name:"DtRecipeGroupedChip",components:{DtChip:Sa},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:aa,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 Ea=hg.exports,mg={name:"DtRecipeGroupRow",components:{DtIcon:V,DtRecipeGeneralRow:Ea},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:"DtRecipeGroupRow",components:{DtAvatar:Et,DtRecipeGeneralRow:Ea,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,Jn={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:qr},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(Jn).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 Jn[this.borderColor]}},methods:{onClick(){this.toggleable&&(this.expanded=!this.expanded)}}};var Mg=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)])},Ng=[],Bg=h.normalizeComponent(Pg,Mg,Ng,!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 qg=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)+" ")])},jg=[],Hg=h.normalizeComponent(Vg,qg,jg,!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:"d-d-flex d-fw-wrap"},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:["d-h24 d-bar16 d-py0 d-fs-200 d-mb0 d-t",a.isSelected?`d-fc-purple-500 d-bgc-purple-400 d-bgo10 d-bc-purple-400 d-bco50 ' +
|
|
31
|
-
'h:d-bgc-purple-400 h:d-bco25 a:d-bgc-purple-400 a:d-bco25`:"d-fc-black-600 d-bgc-black-100 h:d-bgc-white h:d-bc-black-600 a:d-bgc-white a:d-bc-black-600"],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,
|
|
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)},qc=[],jc=h.normalizeComponent(Fc,Vc,qc,!1,null,null,null,null);const Hc=jc.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)},qu=[],ju=h.normalizeComponent(Fu,Vu,qu,!1,null,null,null,null);const Hu=ju.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=[],qp=h.normalizeComponent(Bp,Fp,Vp,!1,null,null,null,null);const hn=qp.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"},jp=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 j(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=j(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=j(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=j(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 _=j(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=j(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=j(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=j(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=j(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=j(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 _=j(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=j(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=j(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"}},qf=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 jf=qf;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:jf,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 qe(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=j(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 q=Pf[F];return q(R,E.formatLong)}return R}).join("").match(Eh).map(function(R){if(R==="''")return"'";var F=R[0];if(F==="'")return Lh(R);var q=Af[F];if(q)return!(n!=null&&n.useAdditionalWeekYearTokens)&&Ff(R)&&lr(R,e,String(t)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&Bf(R)&&lr(R,e,String(t)),q($,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=j(t),n=e.getDate();return n}function Ah(t){M(1,arguments);var e=j(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=j(t),n=e.getMonth();return n}function Qn(t){return M(1,arguments),j(t).getFullYear()}function $h(t,e){M(2,arguments);var n=j(t),a=j(e);return n.getTime()===a.getTime()}function Rh(t,e){M(2,arguments);var n=j(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=j(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)},qh=(t,e)=>qe(new Date(2e3,t,1),e),jh={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)=>qh(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(jh,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} ${qe(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 qe(t,"EEEE, MMMM d, yyyy")}function rm(t){return qe(t,"MMMM d, yyyy")}function im(t,e=!0){return qe(t,e?"EEE, MMM d, yyyy":"MMM d, yyyy")}function sm(t,e=!1){return qe(t,e?"MMM d":"MMMM d")}function om(t){return qe(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 qi=Cm.exports;const wm={name:"DtRecipeCallbarButtonWithPopover",components:{DtRecipeCallbarButton:qi,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,ji=["green300","green100","red200","red100","gold100","gold200","black100","white"];const $m={name:"DtRecipeTopBannerInfo",props:{colorCode:{type:String,default:"green300",validator:function(t){return ji.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 qm=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)},jm=[],Hm=h.normalizeComponent(Vm,qm,jm,!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:qr},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 qg=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)+" ")])},jg=[],Hg=h.normalizeComponent(Vg,qg,jg,!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:"d-d-flex d-fw-wrap"},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:["d-h24 d-bar16 d-py0 d-fs-200 d-mb0 d-t",a.isSelected?`d-fc-purple-500 d-bgc-purple-400 d-bgo10 d-bc-purple-400 d-bco50 ' +
|
|
31
|
+
'h:d-bgc-purple-400 h:d-bco25 a:d-bgc-purple-400 a:d-bco25`:"d-fc-black-600 d-bgc-black-100 h:d-bgc-white h:d-bc-black-600 a:d-bgc-white a:d-bc-black-600"],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}},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:function(a){return a.stopPropagation(),e.handleClick.apply(null,arguments)}}}):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:function(a){return a.stopPropagation(),e.handleClick.apply(null,arguments)}}},[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,"bc0a3507",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=ji;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=qr;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=qi;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=jp;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;
|