@dialpad/dialtone-vue 2.83.5 → 2.84.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,31 +1,31 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const X=require("vue"),_=require("./emoji_text_wrapper-f588a5a5.cjs"),ee={ERROR:"error",WARNING:"warning",SUCCESS:"success"},Gi={LARGE:"lg",EXTRA_LARGE:"xl"},ya={xs:"",sm:"",md:"",lg:"d-description--lg",xl:"d-description--xl"},Sa={xs:"d-label--xs",sm:"d-label--sm",md:"",lg:"d-label--lg",xl:"d-label--xl"},H={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"},Ki=ee.ERROR,Ca="dt";var Pe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function xa(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function wa(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function i(){if(this instanceof i){var a=[null];a.push.apply(a,arguments);var o=Function.bind.apply(e,a);return new o}return e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(i){var a=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(n,i,a.get?a:{enumerable:!0,get:function(){return t[i]}})}),n}var Rn={exports:{}};Rn.exports;(function(t){(function(e,n,i){function a(s){var u=this,d=c();u.next=function(){var l=2091639*u.s0+u.c*23283064365386963e-26;return u.s0=u.s1,u.s1=u.s2,u.s2=l-(u.c=l|0)},u.c=1,u.s0=d(" "),u.s1=d(" "),u.s2=d(" "),u.s0-=d(s),u.s0<0&&(u.s0+=1),u.s1-=d(s),u.s1<0&&(u.s1+=1),u.s2-=d(s),u.s2<0&&(u.s2+=1),d=null}function o(s,u){return u.c=s.c,u.s0=s.s0,u.s1=s.s1,u.s2=s.s2,u}function p(s,u){var d=new a(s),l=u&&u.state,f=d.next;return f.int32=function(){return d.next()*4294967296|0},f.double=function(){return f()+(f()*2097152|0)*11102230246251565e-32},f.quick=f,l&&(typeof l=="object"&&o(l,d),f.state=function(){return o(d,{})}),f}function c(){var s=4022871197,u=function(d){d=String(d);for(var l=0;l<d.length;l++){s+=d.charCodeAt(l);var f=.02519603282416938*s;s=f>>>0,f-=s,f*=s,s=f>>>0,f-=s,s+=f*4294967296}return(s>>>0)*23283064365386963e-26};return u}n&&n.exports?n.exports=p:i&&i.amd?i(function(){return p}):this.alea=p})(Pe,t,!1)})(Rn);var Ea=Rn.exports,kn={exports:{}};kn.exports;(function(t){(function(e,n,i){function a(c){var s=this,u="";s.x=0,s.y=0,s.z=0,s.w=0,s.next=function(){var l=s.x^s.x<<11;return s.x=s.y,s.y=s.z,s.z=s.w,s.w^=s.w>>>19^l^l>>>8},c===(c|0)?s.x=c:u+=c;for(var d=0;d<u.length+64;d++)s.x^=u.charCodeAt(d)|0,s.next()}function o(c,s){return s.x=c.x,s.y=c.y,s.z=c.z,s.w=c.w,s}function p(c,s){var u=new a(c),d=s&&s.state,l=function(){return(u.next()>>>0)/4294967296};return l.double=function(){do var f=u.next()>>>11,h=(u.next()>>>0)/4294967296,v=(f+h)/(1<<21);while(v===0);return v},l.int32=u.next,l.quick=l,d&&(typeof d=="object"&&o(d,u),l.state=function(){return o(u,{})}),l}n&&n.exports?n.exports=p:i&&i.amd?i(function(){return p}):this.xor128=p})(Pe,t,!1)})(kn);var Ia=kn.exports,Pn={exports:{}};Pn.exports;(function(t){(function(e,n,i){function a(c){var s=this,u="";s.next=function(){var l=s.x^s.x>>>2;return s.x=s.y,s.y=s.z,s.z=s.w,s.w=s.v,(s.d=s.d+362437|0)+(s.v=s.v^s.v<<4^(l^l<<1))|0},s.x=0,s.y=0,s.z=0,s.w=0,s.v=0,c===(c|0)?s.x=c:u+=c;for(var d=0;d<u.length+64;d++)s.x^=u.charCodeAt(d)|0,d==u.length&&(s.d=s.x<<10^s.x>>>4),s.next()}function o(c,s){return s.x=c.x,s.y=c.y,s.z=c.z,s.w=c.w,s.v=c.v,s.d=c.d,s}function p(c,s){var u=new a(c),d=s&&s.state,l=function(){return(u.next()>>>0)/4294967296};return l.double=function(){do var f=u.next()>>>11,h=(u.next()>>>0)/4294967296,v=(f+h)/(1<<21);while(v===0);return v},l.int32=u.next,l.quick=l,d&&(typeof d=="object"&&o(d,u),l.state=function(){return o(u,{})}),l}n&&n.exports?n.exports=p:i&&i.amd?i(function(){return p}):this.xorwow=p})(Pe,t,!1)})(Pn);var Oa=Pn.exports,Nn={exports:{}};Nn.exports;(function(t){(function(e,n,i){function a(c){var s=this;s.next=function(){var d=s.x,l=s.i,f,h;return f=d[l],f^=f>>>7,h=f^f<<24,f=d[l+1&7],h^=f^f>>>10,f=d[l+3&7],h^=f^f>>>3,f=d[l+4&7],h^=f^f<<7,f=d[l+7&7],f=f^f<<13,h^=f^f<<9,d[l]=h,s.i=l+1&7,h};function u(d,l){var f,h=[];if(l===(l|0))h[0]=l;else for(l=""+l,f=0;f<l.length;++f)h[f&7]=h[f&7]<<15^l.charCodeAt(f)+h[f+1&7]<<13;for(;h.length<8;)h.push(0);for(f=0;f<8&&h[f]===0;++f);for(f==8?h[7]=-1:h[f],d.x=h,d.i=0,f=256;f>0;--f)d.next()}u(s,c)}function o(c,s){return s.x=c.x.slice(),s.i=c.i,s}function p(c,s){c==null&&(c=+new Date);var u=new a(c),d=s&&s.state,l=function(){return(u.next()>>>0)/4294967296};return l.double=function(){do var f=u.next()>>>11,h=(u.next()>>>0)/4294967296,v=(f+h)/(1<<21);while(v===0);return v},l.int32=u.next,l.quick=l,d&&(d.x&&o(d,u),l.state=function(){return o(u,{})}),l}n&&n.exports?n.exports=p:i&&i.amd?i(function(){return p}):this.xorshift7=p})(Pe,t,!1)})(Nn);var Ta=Nn.exports,Bn={exports:{}};Bn.exports;(function(t){(function(e,n,i){function a(c){var s=this;s.next=function(){var d=s.w,l=s.X,f=s.i,h,v;return s.w=d=d+1640531527|0,v=l[f+34&127],h=l[f=f+1&127],v^=v<<13,h^=h<<17,v^=v>>>15,h^=h>>>12,v=l[f]=v^h,s.i=f,v+(d^d>>>16)|0};function u(d,l){var f,h,v,S,C,O=[],R=128;for(l===(l|0)?(h=l,l=null):(l=l+"\0",h=0,R=Math.max(R,l.length)),v=0,S=-32;S<R;++S)l&&(h^=l.charCodeAt((S+32)%l.length)),S===0&&(C=h),h^=h<<10,h^=h>>>15,h^=h<<4,h^=h>>>13,S>=0&&(C=C+1640531527|0,f=O[S&127]^=h+C,v=f==0?v+1:0);for(v>=128&&(O[(l&&l.length||0)&127]=-1),v=127,S=4*128;S>0;--S)h=O[v+34&127],f=O[v=v+1&127],h^=h<<13,f^=f<<17,h^=h>>>15,f^=f>>>12,O[v]=h^f;d.w=C,d.X=O,d.i=v}u(s,c)}function o(c,s){return s.i=c.i,s.w=c.w,s.X=c.X.slice(),s}function p(c,s){c==null&&(c=+new Date);var u=new a(c),d=s&&s.state,l=function(){return(u.next()>>>0)/4294967296};return l.double=function(){do var f=u.next()>>>11,h=(u.next()>>>0)/4294967296,v=(f+h)/(1<<21);while(v===0);return v},l.int32=u.next,l.quick=l,d&&(d.X&&o(d,u),l.state=function(){return o(u,{})}),l}n&&n.exports?n.exports=p:i&&i.amd?i(function(){return p}):this.xor4096=p})(Pe,t,!1)})(Bn);var La=Bn.exports,Mn={exports:{}};Mn.exports;(function(t){(function(e,n,i){function a(c){var s=this,u="";s.next=function(){var l=s.b,f=s.c,h=s.d,v=s.a;return l=l<<25^l>>>7^f,f=f-h|0,h=h<<24^h>>>8^v,v=v-l|0,s.b=l=l<<20^l>>>12^f,s.c=f=f-h|0,s.d=h<<16^f>>>16^v,s.a=v-l|0},s.a=0,s.b=0,s.c=-1640531527,s.d=1367130551,c===Math.floor(c)?(s.a=c/4294967296|0,s.b=c|0):u+=c;for(var d=0;d<u.length+20;d++)s.b^=u.charCodeAt(d)|0,s.next()}function o(c,s){return s.a=c.a,s.b=c.b,s.c=c.c,s.d=c.d,s}function p(c,s){var u=new a(c),d=s&&s.state,l=function(){return(u.next()>>>0)/4294967296};return l.double=function(){do var f=u.next()>>>11,h=(u.next()>>>0)/4294967296,v=(f+h)/(1<<21);while(v===0);return v},l.int32=u.next,l.quick=l,d&&(typeof d=="object"&&o(d,u),l.state=function(){return o(u,{})}),l}n&&n.exports?n.exports=p:i&&i.amd?i(function(){return p}):this.tychei=p})(Pe,t,!1)})(Mn);var Aa=Mn.exports,Ui={exports:{}};const $a={},Da=Object.freeze(Object.defineProperty({__proto__:null,default:$a},Symbol.toStringTag,{value:"Module"})),Ra=wa(Da);(function(t){(function(e,n,i){var a=256,o=6,p=52,c="random",s=i.pow(a,o),u=i.pow(2,p),d=u*2,l=a-1,f;function h(r,b,g){var w=[];b=b==!0?{entropy:!0}:b||{};var I=O(C(b.entropy?[r,k(n)]:r??R(),3),w),L=new v(w),A=function(){for(var E=L.g(o),T=s,$=0;E<u;)E=(E+$)*a,T*=a,$=L.g(1);for(;E>=d;)E/=2,T/=2,$>>>=1;return(E+$)/T};return A.int32=function(){return L.g(4)|0},A.quick=function(){return L.g(4)/4294967296},A.double=A,O(k(L.S),n),(b.pass||g||function(E,T,$,N){return N&&(N.S&&S(N,L),E.state=function(){return S(L,{})}),$?(i[c]=E,T):E})(A,I,"global"in b?b.global:this==i,b.state)}function v(r){var b,g=r.length,w=this,I=0,L=w.i=w.j=0,A=w.S=[];for(g||(r=[g++]);I<a;)A[I]=I++;for(I=0;I<a;I++)A[I]=A[L=l&L+r[I%g]+(b=A[I])],A[L]=b;(w.g=function(E){for(var T,$=0,N=w.i,j=w.j,B=w.S;E--;)T=B[N=l&N+1],$=$*a+B[l&(B[N]=B[j=l&j+T])+(B[j]=T)];return w.i=N,w.j=j,$})(a)}function S(r,b){return b.i=r.i,b.j=r.j,b.S=r.S.slice(),b}function C(r,b){var g=[],w=typeof r,I;if(b&&w=="object")for(I in r)try{g.push(C(r[I],b-1))}catch{}return g.length?g:w=="string"?r:r+"\0"}function O(r,b){for(var g=r+"",w,I=0;I<g.length;)b[l&I]=l&(w^=b[l&I]*19)+g.charCodeAt(I++);return k(b)}function R(){try{var r;return f&&(r=f.randomBytes)?r=r(a):(r=new Uint8Array(a),(e.crypto||e.msCrypto).getRandomValues(r)),k(r)}catch{var b=e.navigator,g=b&&b.plugins;return[+new Date,e,g,e.screen,k(n)]}}function k(r){return String.fromCharCode.apply(0,r)}if(O(i.random(),n),t.exports){t.exports=h;try{f=Ra}catch{}}else i["seed"+c]=h})(typeof self<"u"?self:Pe,[],Math)})(Ui);var ka=Ui.exports,Pa=Ea,Na=Ia,Ba=Oa,Ma=Ta,Fa=La,Va=Aa,Ne=ka;Ne.alea=Pa;Ne.xor128=Na;Ne.xorwow=Ba;Ne.xorshift7=Ma;Ne.xor4096=Fa;Ne.tychei=Va;var ja=Ne;const Wi=xa(ja);let za=0,di;const Ha=typeof setImmediate=="function"?setImmediate:setTimeout;function V(t=Ca){return`${t}${za++}`}function Bt(t,e){const n=Wi(e);return t[Math.floor(n()*t.length)]}function dt(t){return t?t.map(e=>typeof e=="string"?{message:e,type:Ki}:e):[]}function Fn(t){const e=Ce(t);return!t||!e?[]:t.filter(n=>!!n.message&&n.type===e)}function Ce(t){return t?Mt(t,ee.ERROR)?ee.ERROR:Mt(t,ee.WARNING)?ee.WARNING:Mt(t,ee.SUCCESS)?ee.SUCCESS:null:null}function Mt(t,e){return!t||!e?!1:t.some(n=>(n==null?void 0:n.type)===e)}const qa={name:"html-fragment",functional:!0,props:["html"],render(t,e){return new X({name:"Inner",beforeCreate(){this.$createElement=t},template:`<div>${e.props.html}</div>`}).$mount()._vnode.children}},Ga=()=>new Promise(t=>{Ha(t)}),Yi=t=>t==null?void 0:t.toLowerCase().split("-").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join("");function Ka(t,e=300){clearTimeout(di),di=setTimeout(t,e)}function Zi(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(i=>i),n.all=Object.values(n).every(i=>i),n}const ae={getUniqueString:V,getRandomElement:Bt,formatMessages:dt,filterFormattedMessages:Fn,hasFormattedMessageOfType:Mt,getValidationState:Ce,htmlFragment:qa,flushPromises:Ga,kebabCaseToPascalCase:Yi,debounce:Ka,isOutOfViewPort:Zi},Ge={BUSY:"busy",AWAY:"away",OFFLINE:"offline",ACTIVE:"active"},Xi=[Ge.BUSY,Ge.AWAY,Ge.OFFLINE,Ge.ACTIVE],Ua={name:"DtPresence",props:{presence:{type:String,default:Ge.ACTIVE,validator:t=>Xi.includes(t)},srText:{type:String,default:null}}};var Wa=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"}})])},Ya=[],Za=_.normalizeComponent(Ua,Wa,Ya,!1,null,null,null,null);const Qi=Za.exports,Xa={name:"DtIcon",props:{size:{type:String,default:"500",validator:t=>Object.keys(_.ICON_SIZE_MODIFIERS).includes(t)},name:{type:String,required:!0},ariaLabel:{type:String,default:void 0}},computed:{iconSize(){return _.ICON_SIZE_MODIFIERS[this.size]},iconName(){return Yi(this.name)},currentIcon(){return _.DIALTONE_ICONS[this.iconName]}}};var Qa=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()},Ja=[],er=_.normalizeComponent(Xa,Qa,Ja,!1,null,null,null,null);const M=er.exports,Ft={xs:"d-avatar--xs",sm:"d-avatar--sm",md:"d-avatar--md",lg:"d-avatar--lg",xl:"d-avatar--xl"},gn={default:"",icon:"d-avatar__icon",initials:"d-avatar__initials"},tr={md:"d-avatar__presence--md",lg:"d-avatar__presence--lg"},ci={NONE:"",BUSY:"busy",AWAY:"away",OFFLINE:"offline",ACTIVE:"active"},nr=[45,-45,90,-90,135,-135,180,-180],ui={with100:["purple-100","magenta-100","gold-100","blue-100"],with200:["purple-200","magenta-200","gold-200","blue-200"]},ir=3,sr=2,pi=t=>t>1;const ar={name:"DtAvatar",components:{DtPresence:Qi,DtIcon:M},inheritAttrs:!1,props:{id:{type:String,default(){return V()}},seed:{type:String,default:void 0},size:{type:String,default:"md",validator:t=>Object.keys(Ft).includes(t)},avatarClass:{type:[String,Array,Object],default:""},canvasClass:{type:[String,Array,Object],default:""},presence:{type:String,default:ci.NONE,validator:t=>Object.values(ci).includes(t)},presenceProps:{type:Object,default:()=>({})},initials:{type:String,default:""},gradient:{type:Boolean,default:!0},group:{type:Number,default:void 0,validator:t=>pi(t)},overlayIcon:{type:String,default:""},overlayText:{type:String,default:""},overlayClass:{type:[String,Array,Object],default:""}},data(){return{kind:null,AVATAR_SIZE_MODIFIERS:Ft,AVATAR_KIND_MODIFIERS:gn,AVATAR_PRESENCE_SIZE_MODIFIERS:tr,imageLoadedSuccessfully:null,slottedInitials:"",formattedInitials:"",initializing:!1}},computed:{avatarClasses(){return["d-avatar",Ft[this.validatedSize],this.avatarClass,{"d-avatar--no-gradient":!this.gradient,"d-avatar--group":this.showGroup}]},overlayClasses(){return["d-bgc-black-900 d-o70 d-ps-absolute d-w100p d-h100p d-d-flex d-ai-center d-bar-circle d-zi-base",this.overlayClass]},showDefaultSlot(){return this.kind!=="initials"||this.kind==="image"&&this.imageLoadedSuccessfully===!0},showInitials(){return this.kind==="initials"||this.kind==="image"&&this.initials&&this.imageLoadedSuccessfully!==!0},showGroup(){return pi(this.group)},initialKindStyle(){const t=this.randomizeGradientColorStops();return{"--avatar-gradient-angle":`${this.randomizeGradientAngle()}deg`,"--avatar-gradient-stop-1":`var(--${t[0]})`,"--avatar-gradient-stop-2":`var(--${t[1]})`,"--avatar-gradient-stop-3":`var(--${t[2]})`}},formattedGroup(){return this.group>99?"99+":this.group},validatedSize(){return this.group?"xs":this.size}},mounted(){this.init()},updated(){this.init()},methods:{async init(){var e;if(this.initializing)return;this.kind=null,await this.$nextTick();const t=((e=this.$refs.canvas)==null?void 0:e.firstElementChild)||this.$refs.canvas;this.formatInitials(this.initials),t&&(this.setKind(t),this.kindHandler(t)),this.initializing=!0,await this.$nextTick(),this.initializing=!1},kindHandler(t){switch(this.kind){case"image":t.classList.add("d-avatar__image"),this.validateImageAttrsPresence(),this.setImageListeners(t);break;case"icon":t.classList.add(gn.icon);break;case"initials":this.slottedInitials=t.text||t.textContent,this.formatInitials(this.slottedInitials.trim()||this.initials);break}},setImageListeners(t){t.addEventListener("load",()=>this._loadedImageEventHandler(t),{once:!0}),t.addEventListener("error",()=>this._erroredImageEventHandler(t),{once:!0})},formatInitials(t){!t||this.validatedSize==="xs"?this.formattedInitials="":this.validatedSize==="sm"?this.formattedInitials=t.trim()[0]:this.formattedInitials=t.trim().slice(0,2)},setKind(t){if(this.isIconType(t)){this.kind="icon";return}if(this.isImageType(t)){this.kind="image";return}this.kind="initials"},isIconType(t){var e;return((e=t==null?void 0:t.tagName)==null?void 0:e.toUpperCase())==="SVG"},isImageType(t){var e;return((e=t==null?void 0:t.tagName)==null?void 0:e.toUpperCase())==="IMG"},randomizeGradientAngle(){return Bt(nr,this.seed)},randomizeGradientColorStops(){const t=new Set;let e=0;for(;t.size<ir;){const i=this.seed===void 0?void 0:this.seed+e.toString();t.size===sr?t.add(Bt(ui.with200,i)):t.add(Bt(ui.with100,i)),e++}const n=Wi(this.seed);return Array.from(t).sort(()=>.5-n())},validateImageAttrsPresence(){const t=!this.$refs.canvas.firstChild.getAttribute("src"),e=this.$refs.canvas.firstChild.getAttribute("alt")===null;(t||e)&&X.util.warn("src and alt attributes are required for image avatars",this)},_loadedImageEventHandler(t){this.imageLoadedSuccessfully=!0,t.classList.remove("d-d-none"),t.classList.add("d-avatar--image-loaded")},_erroredImageEventHandler(t){this.imageLoadedSuccessfully=!1,t.classList.remove("d-avatar--image-loaded"),t.classList.add("d-d-none")}}};var rr=function(){var e=this,n=e._self._c;return n("div",{class:e.avatarClasses,style:e.initialKindStyle,attrs:{id:e.id,"data-qa":"dt-avatar"}},[n("div",{ref:"canvas",class:[e.canvasClass,"d-avatar__canvas"]},[e.showDefaultSlot?e._t("default"):e._e(),e.showInitials?n("span",{staticClass:"d-ps-absolute d-zi-base",class:e.AVATAR_KIND_MODIFIERS.initials},[e._v(" "+e._s(e.formattedInitials)+" ")]):e._e()],2),e.overlayIcon||e.overlayText?n("div",{class:e.overlayClasses},[e.overlayIcon?n("dt-icon",{staticClass:"d-fc-white d-w100p",attrs:{name:e.overlayIcon}}):e.overlayText?n("p",{staticClass:"d-fs-200 d-fw-bold d-fc-white d-w100p d-ta-center"},[e._v(" "+e._s(e.overlayText)+" ")]):e._e()],1):e._e(),e.showGroup?n("span",{staticClass:"d-avatar__count d-zi-base",attrs:{"data-qa":"dt-avatar-count"}},[e._v(e._s(e.formattedGroup))]):e._e(),e.presence&&!e.showGroup?n("dt-presence",e._b({staticClass:"d-zi-base",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)},or=[],lr=_.normalizeComponent(ar,rr,or,!1,null,null,null,null);const Kt=lr.exports,vn={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"},bn={label:"",count:"d-badge--count"},yn={"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"},dr={name:"DtBadge",components:{DtIcon:M},props:{iconLeft:{type:String,default:""},iconRight:{type:String,default:""},text:{type:String,default:""},kind:{type:String,default:"label",validator:t=>Object.keys(bn).includes(t)},type:{type:String,default:"default",validator:t=>Object.keys(vn).includes(t)},decoration:{type:String,default:void 0,validator:t=>Object.keys(yn).includes(t)}},data(){return{BADGE_TYPE_MODIFIERS:vn,BADGE_KIND_MODIFIERS:bn,BADGE_DECORATION_MODIFIERS:yn}},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 cr=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",{staticClass:"d-badge__label"},[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()])},ur=[],pr=_.normalizeComponent(dr,cr,ur,!1,null,null,null,null);const Ji=pr.exports,Xe=["base","error","info","success","warning"],fr=["alert","alertdialog","status"],hr=new Map([["info","info"],["success","check-circle"],["warning","alert-triangle"],["error","alert-circle"],["base","bell"]]),mr={name:"DtNoticeIcon",components:{DtIcon:M},props:{kind:{type:String,default:"base",validate(t){return Xe.includes(t)}}},computed:{defaultIcon(){return hr.get(this.kind)}}};var _r=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()},gr=[],vr=_.normalizeComponent(mr,_r,gr,!1,null,null,null,null);const Vn=vr.exports,br={name:"DtNoticeContent",props:{title:{type:String,default:""},titleId:{type:String,default:void 0},contentId:{type:String,default:void 0}}};var yr=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)])},Sr=[],Cr=_.normalizeComponent(br,yr,Sr,!1,null,null,null,null);const jn=Cr.exports,cn={xs:"d-btn--xs",sm:"d-btn--sm",md:"",lg:"d-btn--lg",xl:"d-btn--xl"},fi={default:"",muted:"d-btn--muted",danger:"d-btn--danger",inverted:"d-btn--inverted"},hi={clear:"",primary:"d-btn--primary",outlined:"d-btn--outlined"},xr=["submit","reset","button"],mi={left:"d-btn__icon--left",right:"d-btn__icon--right",top:"d-btn__icon--top",bottom:"d-btn__icon--bottom"},wr=[{circle:!0,kind:"default",importance:"primary",message:kt(!0,"default","primary")},{circle:!0,kind:"danger",importance:"outlined",message:kt(!0,"danger","outlined")},{circle:!0,kind:"muted",importance:"primary",message:kt(!0,"muted","primary")},{circle:!1,kind:"muted",importance:"primary",message:kt(!1,"muted","primary")}];function kt(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 Er="danger",Ir="warning",Or="success",es="muted",ts="inverted",ns=["",Er,Ir,Or,es,ts],Ht={default:"",warning:"d-link--warning",danger:"d-link--danger",success:"d-link--success",muted:"d-link--muted",inverted:"d-link--inverted"},Tr={name:"DtButton",props:{circle:{type:Boolean,default:!1},iconPosition:{type:String,default:"left",validator:t=>Object.keys(mi).includes(t)},importance:{type:String,default:"primary",validator:t=>Object.keys(hi).includes(t)},link:{type:Boolean,default:!1},linkKind:{type:String,default:"default",validator:t=>Object.keys(Ht).includes(t)},disabled:{type:Boolean,default:!1},type:{type:String,default:"button",validator:t=>xr.includes(t)},width:{type:String,default:null},size:{type:String,default:"md",validator:t=>Object.keys(cn).includes(t)},labelClass:{type:[String,Array,Object],default:""},loading:{type:Boolean,default:!1},kind:{type:String,default:"default",validator:t=>Object.keys(fi).includes(t)},assertiveOnFocus:{type:Boolean,default:!1},active:{type:Boolean,default:!1}},emits:["click","focusin","focusout"],data(){return{ICON_POSITION_MODIFIERS:mi,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&&X.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",Ht[this.linkKind],cn[this.size]]:["d-btn",hi[this.importance],fi[this.kind],cn[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 i of wr)if(t===i.circle&&e===i.kind&&n===i.importance)return console.error(i.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 Lr=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()])},Ar=[],$r=_.normalizeComponent(Tr,Lr,Ar,!1,null,null,null,null);const q=$r.exports,ge={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.`)}}},Dr={name:"SrOnlyCloseButton",components:{DtIcon:M,DtButton:q},props:{visuallyHiddenCloseLabel:{type:String,default:null}},methods:{close(){this.$emit("close")}}};var Rr=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(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"space",32,i.key,[" ","Spacebar"])?null:(i.preventDefault(),i.stopPropagation(),e.close.apply(null,arguments))}}},[n("dt-icon",{attrs:{name:"close"}})],1)},kr=[],Pr=_.normalizeComponent(Dr,Rr,kr,!1,null,null,null,null);const Ut=Pr.exports,Nr={name:"DtNoticeAction",components:{DtIcon:M,DtButton:q,SrOnlyCloseButton:Ut},mixins:[ge],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 Br=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)},Mr=[],Fr=_.normalizeComponent(Nr,Br,Mr,!1,null,null,null,null);const zn=Fr.exports,is=':not(:disabled):not([aria-disabled="true"]):not([role="presentation"])',Vr=`${is}:not([tabindex="-1"])`,jr="button,[href],input,select,textarea,details,[tabindex]",_t={methods:{async getFirstFocusableElement(t){await this.$nextTick();const e=this._getFocusableElements(t,!0);return this._getFirstFocusElement(e)},async focusFirstElement(t){const e=await this.getFirstFocusableElement(t);e==null||e.focus({preventScroll:!0})},_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(jr)].filter(i=>{const a=window.getComputedStyle(i);return a.getPropertyValue("display")!=="none"&&a.getPropertyValue("visibility")!=="hidden"&&i.matches(e?is:Vr)}):[]},focusTrappedTabPress(t,e){if(!(t.key==="Tab"))return;const i=this._getFocusableElements(e);if(!i.length){t.preventDefault();return}const a=this._getFirstFocusElement(i),o=i[i.length-1];t.shiftKey?document.activeElement===a&&(o.focus(),t.preventDefault()):document.activeElement===o&&(a.focus(),t.preventDefault())}}},zr={name:"DtBanner",components:{DtNoticeIcon:Vn,DtNoticeContent:jn,DtNoticeAction:zn},mixins:[_t,ge],props:{titleId:{type:String,default(){return ae.getUniqueString()}},contentId:{type:String,default(){return ae.getUniqueString()}},title:{type:String,default:""},important:{type:Boolean,default:!1},pinned:{type:Boolean,default:!1},kind:{type:String,default:"base",validate(t){return Xe.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 Hr=function(){var e=this,n=e._self._c;return n("aside",{class:e.bannerClass,style:e.bannerBackgroundImage,on:{keydown:function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"tab",9,i.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)])},qr=[],Gr=_.normalizeComponent(zr,Hr,qr,!1,null,null,null,null);const Kr=Gr.exports,ss="d-breadcrumbs__item--selected",as="d-breadcrumbs--inverted",Ur={name:"DtLink",props:{kind:{type:String,default:"",validator(t){return ns.includes(t)}}},emits:["click","focusin","focusout"],data(){return{LINK_KIND_MODIFIERS:Ht}}};var Wr=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)},Yr=[],Zr=_.normalizeComponent(Ur,Wr,Yr,!1,null,null,null,null);const rs=Zr.exports,Xr={name:"DtBreadcrumbItem",components:{DtLink:rs},inheritAttrs:!1,props:{inverted:{type:Boolean,default:!1},selected:{type:Boolean,default:!1},label:{type:String,default:""}},data(){return{BREADCRUMB_ITEM_SELECTED_MODIFIER:ss}},computed:{linkKind(){return this.inverted?ts:es},ariaCurrent(){return this.selected?"location":void 0}}};var Qr=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)},Jr=[],eo=_.normalizeComponent(Xr,Qr,Jr,!1,null,null,null,null);const os=eo.exports,to={name:"DtBreadcrumbs",components:{DtBreadcrumbItem:os},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:as}},methods:{getBreadcrumbItemKey(t){return`breadcrumbs-item-${t}-${ae.getUniqueString()}`}}};var no=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(i,a){return n("dt-breadcrumb-item",e._g(e._b({key:e.getBreadcrumbItemKey(a),attrs:{inverted:e.inverted}},"dt-breadcrumb-item",i,!1),e.$listeners))})})],2)])},io=[],so=_.normalizeComponent(to,no,io,!1,null,null,null,null);const ao=so.exports,Sn={start:"d-btn-group--start",end:"d-btn-group--end","space-between":"d-btn-group--space-between"},ro={name:"DtButtonGroup",props:{alignment:{type:String,default:"start",validator:t=>Object.keys(Sn).includes(t)}},data(){return{BUTTON_GROUP_ALIGNMENT:Sn}}};var oo=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)},lo=[],co=_.normalizeComponent(ro,oo,lo,!1,null,null,null,null);const uo=co.exports,po={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()])},ho=[],mo=_.normalizeComponent(po,fo,ho,!1,null,null,null,null);const ls=mo.exports,_o={name:"DtCodeblock",props:{text:{type:String,required:!0}}};var go=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
- `)])},vo=[],bo=_.normalizeComponent(_o,go,vo,!1,null,null,null,null);const yo=bo.exports,So={methods:{scrollElementIntoViewIfNeeded(t,e,n,i){t.scrollIntoViewIfNeeded?this.scrollIntoViewIfNeeded(t,e,n,i):this.scrollIntoView(t,"bottom",!1,n,i)},scrollElementIntoView(t,e,n,i){if(e==="center"){this.scrollIntoView(t,"center",!1,n,i);return}e===!1?this.scrollIntoView(t,"bottom",!1,n,i):this.scrollIntoView(t,"top",!1,n,i)},scrollIntoViewIfNeeded(t,e,n,i){const a=e?"center":void 0;this.scrollIntoView(t,a,!0,n,i)},scrollIntoView(t,e,n,i,a){if(!t||!t.parentElement)return;const o=t.offsetTop,p=a||t.parentElement,c=this._getScrollBounds(p),s=c.bottom-c.top,u=this._getElementHeight(t),d=o+u;let l=-1;switch(e){case"top":l=o;break;case"center":l=o+(u-s)/2;break;case"bottom":l=l=d-s;break;default:o-c.top<=s/2?l=o:l=d-s;break}this._setScrollTop(p,l,c,o,d,n,i)},_setScrollTop(t,e,n,i,a,o,p){n=n||this._getScrollBounds(t);const c=n.bottom-n.top;if(o&&this._inScrollBounds(i,a,n))if(i<n.top)e=i;else if(a>n.bottom)e=a-c;else return;p?t.scrollTo({top:e,behavior:p}):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 i=e-t;return e<=n.bottom+3*i/4&&t>=n.top-i/4}}},Co="listElementKey is required or the referenced element doesn't exist. Received listElement: ",Hn=({listItemRole:t="option",indexKey:e="highlightIndex",idKey:n="highlightId",listElementKey:i="listRef",activeItemKey:a="",openMethod:o=null,afterHighlightMethod:p=null,beginningOfListMethod:c=null,endOfListMethod:s=null,scrollToOnHighlight:u=!0,focusOnKeyboardNavigation:d=!1}={})=>({mixins:[So],data(){return{[e]:-1,[n]:"",scrollToOnHighlight:u,focusOnKeyboardNavigation:d}},provide(){return{highlightId:()=>this[n]}},methods:{_getListElement(){var l;return((l=this[i]())==null?void 0:l.$el)||this[i]()},_itemsLength(){const l=this._getListItemNodes();return l===null?0:l.length},_getListItemNodes(){const l=this._getListElement();return l?Array.from(l.querySelectorAll(`[role="${t}"], #sr-only-close-button`)):(console.error(Co,l),null)},onUpKey(){o&&this[o](!0),this[e]>0?this.setHighlightIndex(this[e]-1):c&&this[c](),this.scrollActiveItemIntoViewIfNeeded(),this.focusActiveItemIfNeeded()},onDownKey(){o&&this[o](!0),this[e]<this._itemsLength()-1?this.setHighlightIndex(this[e]+1):s&&this[s](),this.scrollActiveItemIntoViewIfNeeded(),this.focusActiveItemIfNeeded()},onHomeKey(){this.jumpToBeginning(),this.scrollActiveItemIntoViewIfNeeded(),this.focusActiveItemIfNeeded()},onEndKey(){this.jumpToEnd(),this.scrollActiveItemIntoViewIfNeeded(),this.focusActiveItemIfNeeded()},onNavigationKey(l){const f=this._getListItemNodes(),h=f.filter(C=>C.textContent.trim().toLowerCase().startsWith(l.toLowerCase()));if(h.length<=0)return;const v=h.findIndex(C=>this[e]===f.indexOf(C)),S=f.indexOf(v<h.length-1?h[v+1]:h[0]);this.setHighlightIndex(S),this.scrollActiveItemIntoViewIfNeeded(),this.focusActiveItemIfNeeded()},isValidCharacter(l){return l.length===1},jumpToBeginning(){this.setHighlightIndex(0)},jumpToEnd(){this.setHighlightIndex(this._itemsLength()-1)},setHighlightIndex(l){this[e]=l,this[n]=this._getItemId(l),this._itemsLength()&&p&&this[p](l)},setHighlightId(l){this[n]=l,this[e]=this._getItemIndex(l),this._itemsLength()&&p&&this[p](this._getItemIndex(l))},_getItemIndex(l){const f=this._getListElement();return f?Array.from(f.querySelectorAll(`[role="${t}"], #sr-only-close-button`)).indexOf(f.querySelector(`#${l}`)):void 0},_getItemId(l){var h;const f=this._getListElement();if(f)return(h=f.querySelectorAll(`[role="${t}"], #sr-only-close-button`)[l])==null?void 0:h.id},scrollActiveItemIntoViewIfNeeded(){if(!this.scrollToOnHighlight)return;const l=this[a];if(l){const f=this._getListElement();this.scrollElementIntoViewIfNeeded(l,null,null,f)}},focusActiveItemIfNeeded(){if(!this.focusOnKeyboardNavigation)return;const l=this[a];l&&l.focus()}}}),un={DEFAULT:"default",CUSTOM:"custom"},$e={ARROW_KEYS:"arrow-keys",TAB:"tab",NONE:"none"};const xo={name:"DtDefaultListItem"};var wo=function(){var e=this,n=e._self._c;return n("div",{staticClass:"dt-default-list-item d-fs-200 d-lh-300 d-py4 d-px8 d-d-flex d-ai-center"},[e.$slots.left?n("section",{staticClass:"dt-default-list-item--left d-d-inline-flex d-as-flex-start d-d-flex d-ai-center d-pr8 d-jc-flex-end",attrs:{"data-qa":"dt-default-list-item-left-wrapper"}},[e._t("left")],2):e._e(),n("section",{staticClass:"d-fl-grow1"},[e.$slots.default?n("div",[e._t("default")],2):e._e(),e.$slots.subtitle?n("div",{class:["d-fs-100 d-fc-tertiary",{"d-mtn2":e.$slots.default}],attrs:{"data-qa":"dt-default-list-item-subtitle-wrapper"}},[e._t("subtitle")],2):e._e(),e.$slots.bottom?n("div",{staticClass:"d-mt2",attrs:{"data-qa":"dt-default-list-item-bottom-wrapper"}},[e._t("bottom")],2):e._e()]),e.$slots.right?n("section",{staticClass:"dt-default-list-item--right d-d-inline-flex d-as-flex-start d-d-flex d-ai-center d-pl8",attrs:{"data-qa":"dt-default-list-item-right-wrapper"}},[e._t("right")],2):e._e(),e._t("selected")],2)},Eo=[],Io=_.normalizeComponent(xo,wo,Eo,!1,null,null,null,null);const _i=Io.exports;const Oo={name:"DtListItem",components:{DtDefaultListItem:_i,DtIcon:M},inject:{highlightId:{default:null}},props:{id:{type:String,default(){return ae.getUniqueString()}},role:{type:String,default:"listitem"},elementType:{type:String,default:"li"},type:{type:String,default:un.DEFAULT,validator:t=>Object.values(un).includes(t)},navigationType:{type:String,default:$e.NONE,validator:t=>Object.values($e).includes(t)},selected:{type:Boolean,default:!1}},emits:["click","keydown","mousemove","mouseleave"],data(){return{injected:!1,mouseHighlighted:!1}},computed:{listItemType(){switch(this.type){case un.DEFAULT:return _i;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===$e.TAB},isHoverable(){return this.navigationType!==$e.NONE}},methods:{onClick(t){this.$emit("click",t)},onMouseHover(){this.mouseHighlighted=!0},onMouseLeave(){this.mouseHighlighted=!1}}};var To=function(){var e=this,n=e._self._c;return n(e.elementType,e._g({tag:"component",class:["dt-list-item d-ls-none",{"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(i,a){return{key:a,fn:function(){return[e._t(a)]},proxy:!0}}),e.selected?{key:"selected",fn:function(){return[n("dt-icon",{staticClass:"d-ml8",attrs:{name:"check",size:"400"}})]},proxy:!0}:null],null,!0)}):e._t("default")],2)},Lo=[],Ao=_.normalizeComponent(Oo,To,Lo,!1,null,null,null,null);const gt=Ao.exports,$o={name:"ComboboxLoadingList",components:{DtListItem:gt,DtSkeleton:_.DtSkeleton}};var Do=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(i){return n("dt-list-item",{key:i,attrs:{role:"option","navigation-type":"none"}},[n("dt-skeleton",{attrs:{"text-option":{type:"body"},offset:0}})],1)}),1)},Ro=[],ko=_.normalizeComponent($o,Do,Ro,!1,null,null,null,null);const ds=ko.exports;const Po={name:"ComboboxEmptyList",components:{DtListItem:gt},props:{message:{type:String,required:!0},itemClass:{type:[String,Object,Array],default:""}}};var No=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)},Bo=[],Mo=_.normalizeComponent(Po,No,Bo,!1,null,null,null,null);const cs=Mo.exports,us={EXTRA_SMALL:"xs",SMALL:"sm",DEFAULT:"md",LARGE:"lg",EXTRA_LARGE:"xl"},Fo={name:"DtCombobox",components:{ComboboxLoadingList:ds,ComboboxEmptyList:cs},mixins:[Hn({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(us).includes(t)},description:{type:String,default:""},listId:{type:String,default(){return V()}},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 Vo=function(){var e=this,n=e._self._c;return n("div",{on:{keydown:[function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"esc",27,i.key,["Esc","Escape"])?null:(i.stopPropagation(),e.onKeyValidation(i,"onEscapeKey"))},function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"enter",13,i.key,"Enter")||i.ctrlKey||i.shiftKey||i.altKey||i.metaKey?null:e.onKeyValidation(i,"onEnterKey")},function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"up",38,i.key,["Up","ArrowUp"])?null:(i.stopPropagation(),i.preventDefault(),e.onKeyValidation(i,"onUpKey"))},function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"down",40,i.key,["Down","ArrowDown"])?null:(i.stopPropagation(),i.preventDefault(),e.onKeyValidation(i,"onDownKey"))},function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"home",void 0,i.key,void 0)?null:(i.stopPropagation(),i.preventDefault(),e.onKeyValidation(i,"onHomeKey"))},function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"end",void 0,i.key,void 0)?null:(i.stopPropagation(),i.preventDefault(),e.onKeyValidation(i,"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(i){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()])},jo=[],zo=_.normalizeComponent(Fo,Vo,jo,!1,null,null,null,null);const ps=zo.exports;const Ho={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 qo=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)},Go=[],Ko=_.normalizeComponent(Ho,qo,Go,!1,null,null,null,null);const Uo=Ko.exports,Wo={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 Yo=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)])},Zo=[],Xo=_.normalizeComponent(Wo,Yo,Zo,!1,null,null,null,null);const Qe=Xo.exports,Qo={name:"DtCollapsible",components:{DtButton:q,DtCollapsibleLazyShow:Uo,DtLazyShow:Qe,DtIcon:M},props:{anchorText:{type:String,default:null},open:{type:Boolean,default:null},id:{type:String,default(){return V()}},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&&V("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 Jo=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)},el=[],tl=_.normalizeComponent(Qo,Jo,el,!1,null,null,null,null);const nl=tl.exports;var U="top",te="bottom",ne="right",W="left",Wt="auto",vt=[U,te,ne,W],Ue="start",ct="end",il="clippingParents",fs="viewport",st="popper",sl="reference",gi=vt.reduce(function(t,e){return t.concat([e+"-"+Ue,e+"-"+ct])},[]),hs=[].concat(vt,[Wt]).reduce(function(t,e){return t.concat([e,e+"-"+Ue,e+"-"+ct])},[]),al="beforeRead",rl="read",ol="afterRead",ll="beforeMain",dl="main",cl="afterMain",ul="beforeWrite",pl="write",fl="afterWrite",Cn=[al,rl,ol,ll,dl,cl,ul,pl,fl];function ue(t){return t?(t.nodeName||"").toLowerCase():null}function Q(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Re(t){var e=Q(t).Element;return t instanceof e||t instanceof Element}function Z(t){var e=Q(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function qn(t){if(typeof ShadowRoot>"u")return!1;var e=Q(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function hl(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var i=e.styles[n]||{},a=e.attributes[n]||{},o=e.elements[n];!Z(o)||!ue(o)||(Object.assign(o.style,i),Object.keys(a).forEach(function(p){var c=a[p];c===!1?o.removeAttribute(p):o.setAttribute(p,c===!0?"":c)}))})}function ml(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(i){var a=e.elements[i],o=e.attributes[i]||{},p=Object.keys(e.styles.hasOwnProperty(i)?e.styles[i]:n[i]),c=p.reduce(function(s,u){return s[u]="",s},{});!Z(a)||!ue(a)||(Object.assign(a.style,c),Object.keys(o).forEach(function(s){a.removeAttribute(s)}))})}}const ms={name:"applyStyles",enabled:!0,phase:"write",fn:hl,effect:ml,requires:["computeStyles"]};function se(t){return t.split("-")[0]}var De=Math.max,qt=Math.min,We=Math.round;function xn(){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 _s(){return!/^((?!chrome|android).)*safari/i.test(xn())}function Ye(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var i=t.getBoundingClientRect(),a=1,o=1;e&&Z(t)&&(a=t.offsetWidth>0&&We(i.width)/t.offsetWidth||1,o=t.offsetHeight>0&&We(i.height)/t.offsetHeight||1);var p=Re(t)?Q(t):window,c=p.visualViewport,s=!_s()&&n,u=(i.left+(s&&c?c.offsetLeft:0))/a,d=(i.top+(s&&c?c.offsetTop:0))/o,l=i.width/a,f=i.height/o;return{width:l,height:f,top:d,right:u+l,bottom:d+f,left:u,x:u,y:d}}function Gn(t){var e=Ye(t),n=t.offsetWidth,i=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-i)<=1&&(i=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:i}}function gs(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&qn(n)){var i=e;do{if(i&&t.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function re(t){return Q(t).getComputedStyle(t)}function _l(t){return["table","td","th"].indexOf(ue(t))>=0}function xe(t){return((Re(t)?t.ownerDocument:t.document)||window.document).documentElement}function Yt(t){return ue(t)==="html"?t:t.assignedSlot||t.parentNode||(qn(t)?t.host:null)||xe(t)}function vi(t){return!Z(t)||re(t).position==="fixed"?null:t.offsetParent}function gl(t){var e=/firefox/i.test(xn()),n=/Trident/i.test(xn());if(n&&Z(t)){var i=re(t);if(i.position==="fixed")return null}var a=Yt(t);for(qn(a)&&(a=a.host);Z(a)&&["html","body"].indexOf(ue(a))<0;){var o=re(a);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||e&&o.willChange==="filter"||e&&o.filter&&o.filter!=="none")return a;a=a.parentNode}return null}function bt(t){for(var e=Q(t),n=vi(t);n&&_l(n)&&re(n).position==="static";)n=vi(n);return n&&(ue(n)==="html"||ue(n)==="body"&&re(n).position==="static")?e:n||gl(t)||e}function Kn(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function at(t,e,n){return De(t,qt(e,n))}function vl(t,e,n){var i=at(t,e,n);return i>n?n:i}function vs(){return{top:0,right:0,bottom:0,left:0}}function bs(t){return Object.assign({},vs(),t)}function ys(t,e){return e.reduce(function(n,i){return n[i]=t,n},{})}var bl=function(e,n){return e=typeof e=="function"?e(Object.assign({},n.rects,{placement:n.placement})):e,bs(typeof e!="number"?e:ys(e,vt))};function yl(t){var e,n=t.state,i=t.name,a=t.options,o=n.elements.arrow,p=n.modifiersData.popperOffsets,c=se(n.placement),s=Kn(c),u=[W,ne].indexOf(c)>=0,d=u?"height":"width";if(!(!o||!p)){var l=bl(a.padding,n),f=Gn(o),h=s==="y"?U:W,v=s==="y"?te:ne,S=n.rects.reference[d]+n.rects.reference[s]-p[s]-n.rects.popper[d],C=p[s]-n.rects.reference[s],O=bt(o),R=O?s==="y"?O.clientHeight||0:O.clientWidth||0:0,k=S/2-C/2,r=l[h],b=R-f[d]-l[v],g=R/2-f[d]/2+k,w=at(r,g,b),I=s;n.modifiersData[i]=(e={},e[I]=w,e.centerOffset=w-g,e)}}function Sl(t){var e=t.state,n=t.options,i=n.element,a=i===void 0?"[data-popper-arrow]":i;if(a!=null&&!(typeof a=="string"&&(a=e.elements.popper.querySelector(a),!a))){if(process.env.NODE_ENV!=="production"&&(Z(a)||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(" "))),!gs(e.elements.popper,a)){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=a}}const Cl={name:"arrow",enabled:!0,phase:"main",fn:yl,effect:Sl,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ze(t){return t.split("-")[1]}var xl={top:"auto",right:"auto",bottom:"auto",left:"auto"};function wl(t,e){var n=t.x,i=t.y,a=e.devicePixelRatio||1;return{x:We(n*a)/a||0,y:We(i*a)/a||0}}function bi(t){var e,n=t.popper,i=t.popperRect,a=t.placement,o=t.variation,p=t.offsets,c=t.position,s=t.gpuAcceleration,u=t.adaptive,d=t.roundOffsets,l=t.isFixed,f=p.x,h=f===void 0?0:f,v=p.y,S=v===void 0?0:v,C=typeof d=="function"?d({x:h,y:S}):{x:h,y:S};h=C.x,S=C.y;var O=p.hasOwnProperty("x"),R=p.hasOwnProperty("y"),k=W,r=U,b=window;if(u){var g=bt(n),w="clientHeight",I="clientWidth";if(g===Q(n)&&(g=xe(n),re(g).position!=="static"&&c==="absolute"&&(w="scrollHeight",I="scrollWidth")),g=g,a===U||(a===W||a===ne)&&o===ct){r=te;var L=l&&g===b&&b.visualViewport?b.visualViewport.height:g[w];S-=L-i.height,S*=s?1:-1}if(a===W||(a===U||a===te)&&o===ct){k=ne;var A=l&&g===b&&b.visualViewport?b.visualViewport.width:g[I];h-=A-i.width,h*=s?1:-1}}var E=Object.assign({position:c},u&&xl),T=d===!0?wl({x:h,y:S},Q(n)):{x:h,y:S};if(h=T.x,S=T.y,s){var $;return Object.assign({},E,($={},$[r]=R?"0":"",$[k]=O?"0":"",$.transform=(b.devicePixelRatio||1)<=1?"translate("+h+"px, "+S+"px)":"translate3d("+h+"px, "+S+"px, 0)",$))}return Object.assign({},E,(e={},e[r]=R?S+"px":"",e[k]=O?h+"px":"",e.transform="",e))}function El(t){var e=t.state,n=t.options,i=n.gpuAcceleration,a=i===void 0?!0:i,o=n.adaptive,p=o===void 0?!0:o,c=n.roundOffsets,s=c===void 0?!0:c;if(process.env.NODE_ENV!=="production"){var u=re(e.elements.popper).transitionProperty||"";p&&["transform","top","right","bottom","left"].some(function(l){return u.indexOf(l)>=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 X=require("vue"),p=require("./emoji_text_wrapper-f588a5a5.cjs"),ee={ERROR:"error",WARNING:"warning",SUCCESS:"success"},Pi={LARGE:"lg",EXTRA_LARGE:"xl"},fa={xs:"",sm:"",md:"",lg:"d-description--lg",xl:"d-description--xl"},ha={xs:"d-label--xs",sm:"d-label--sm",md:"",lg:"d-label--lg",xl:"d-label--xl"},V={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"},Ni=ee.ERROR,ma="dt";let _a=0,ni;const ga=typeof setImmediate=="function"?setImmediate:setTimeout;function M(t=ma){return`${t}${_a++}`}async function Bi(t,e){if(e){const n=await Vi(e);return t[n%t.length]}else return t[Mi(t.length)]}function Mi(t){return Math.floor(Math.random()*t)}function ot(t){return t?t.map(e=>typeof e=="string"?{message:e,type:Ni}:e):[]}function $n(t){const e=Ce(t);return!t||!e?[]:t.filter(n=>!!n.message&&n.type===e)}function Ce(t){return t?Pt(t,ee.ERROR)?ee.ERROR:Pt(t,ee.WARNING)?ee.WARNING:Pt(t,ee.SUCCESS)?ee.SUCCESS:null:null}function Pt(t,e){return!t||!e?!1:t.some(n=>(n==null?void 0:n.type)===e)}const va={name:"html-fragment",functional:!0,props:["html"],render(t,e){return new X({name:"Inner",beforeCreate(){this.$createElement=t},template:`<div>${e.props.html}</div>`}).$mount()._vnode.children}},ba=()=>new Promise(t=>{ga(t)}),Fi=t=>t==null?void 0:t.toLowerCase().split("-").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join("");function Vi(t){const e=new TextEncoder().encode(t);return crypto.subtle.digest("SHA-256",e).then(n=>+("0x"+Array.from(new Uint8Array(n)).map(r=>r.toString(16).padStart(2,"0")).join("")))}function ya(t,e=300){clearTimeout(ni),ni=setTimeout(t,e)}function ji(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(i=>i),n.all=Object.values(n).every(i=>i),n}const ae={getUniqueString:M,getRandomElement:Bi,getRandomInt:Mi,formatMessages:ot,filterFormattedMessages:$n,hasFormattedMessageOfType:Pt,getValidationState:Ce,htmlFragment:va,flushPromises:ba,kebabCaseToPascalCase:Fi,hashSha256:Vi,debounce:ya,isOutOfViewPort:ji},He={BUSY:"busy",AWAY:"away",OFFLINE:"offline",ACTIVE:"active"},zi=[He.BUSY,He.AWAY,He.OFFLINE,He.ACTIVE],Sa={name:"DtPresence",props:{presence:{type:String,default:He.ACTIVE,validator:t=>zi.includes(t)},srText:{type:String,default:null}}};var Ca=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"}})])},Ia=[],Ea=p.normalizeComponent(Sa,Ca,Ia,!1,null,null,null,null);const Hi=Ea.exports,wa={name:"DtIcon",props:{size:{type:String,default:"500",validator:t=>Object.keys(p.ICON_SIZE_MODIFIERS).includes(t)},name:{type:String,required:!0},ariaLabel:{type:String,default:void 0}},computed:{iconSize(){return p.ICON_SIZE_MODIFIERS[this.size]},iconName(){return Fi(this.name)},currentIcon(){return p.DIALTONE_ICONS[this.iconName]}}};var Oa=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()},xa=[],Ta=p.normalizeComponent(wa,Oa,xa,!1,null,null,null,null);const k=Ta.exports,Nt={xs:"d-avatar--xs",sm:"d-avatar--sm",md:"d-avatar--md",lg:"d-avatar--lg",xl:"d-avatar--xl"},hn={default:"",icon:"d-avatar__icon",initials:"d-avatar__initials"},qi={md:"d-avatar__presence--md",lg:"d-avatar__presence--lg"},mn={NONE:"",BUSY:"busy",AWAY:"away",OFFLINE:"offline",ACTIVE:"active"},La={xs:void 0,sm:"200",md:"300",lg:"500",xl:"600"},Ki=[void 0,"100","200","300","400","500","600","700","800","900","1000","1100","1200","1300","1400","1500","1600","1700","1800"],_n=t=>t>1;const Aa={name:"DtAvatar",components:{DtPresence:Hi,DtIcon:k},inheritAttrs:!1,props:{id:{type:String,default(){return M()}},seed:{type:String,default:void 0},color:{type:String,default:void 0},size:{type:String,default:"md",validator:t=>Object.keys(Nt).includes(t)},avatarClass:{type:[String,Array,Object],default:""},canvasClass:{type:[String,Array,Object],default:""},presence:{type:String,default:mn.NONE,validator:t=>Object.values(mn).includes(t)},presenceProps:{type:Object,default:()=>({})},initials:{type:String,default:""},group:{type:Number,default:void 0,validator:t=>_n(t)},overlayIcon:{type:String,default:""},overlayText:{type:String,default:""},overlayClass:{type:[String,Array,Object],default:""}},data(){return{kind:null,AVATAR_SIZE_MODIFIERS:Nt,AVATAR_KIND_MODIFIERS:hn,AVATAR_PRESENCE_SIZE_MODIFIERS:qi,imageLoadedSuccessfully:null,slottedInitials:"",formattedInitials:"",initializing:!1,internalColor:""}},computed:{avatarClasses(){return["d-avatar",Nt[this.validatedSize],this.avatarClass,{"d-avatar--group":this.showGroup,[`d-avatar--color-${this.internalColor}`]:this.kind!=="icon"&&this.internalColor}]},overlayClasses(){return["d-bgc-black-900 d-o70 d-ps-absolute d-w100p d-h100p d-d-flex d-ai-center d-bar-circle d-zi-base",this.overlayClass]},showDefaultSlot(){return this.kind!=="initials"||this.kind==="image"&&this.imageLoadedSuccessfully===!0},showInitials(){return this.kind==="initials"||this.kind==="image"&&this.initials&&this.imageLoadedSuccessfully!==!0},showGroup(){return _n(this.group)},formattedGroup(){return this.group>99?"99+":this.group},validatedSize(){return this.group?"xs":this.size}},watch:{color:{handler:function(){this.getColor()},immediate:!0},seed:{handler:function(){this.getColor()},immediate:!0}},mounted(){this.init()},updated(){this.init()},methods:{async init(){var e;if(this.initializing)return;this.kind=null,await this.$nextTick();const t=((e=this.$refs.canvas)==null?void 0:e.firstElementChild)||this.$refs.canvas;this.formatInitials(this.initials),t&&(this.setKind(t),this.kindHandler(t)),this.initializing=!0,await this.$nextTick(),this.initializing=!1},kindHandler(t){switch(this.kind){case"image":t.classList.add("d-avatar__image"),this.validateImageAttrsPresence(),this.setImageListeners(t);break;case"icon":t.classList.add(hn.icon);break;case"initials":this.slottedInitials=t.text||t.textContent,this.formatInitials(this.slottedInitials.trim()||this.initials);break}},setImageListeners(t){t.addEventListener("load",()=>this._loadedImageEventHandler(t),{once:!0}),t.addEventListener("error",()=>this._erroredImageEventHandler(t),{once:!0})},formatInitials(t){!t||this.validatedSize==="xs"?this.formattedInitials="":this.validatedSize==="sm"?this.formattedInitials=t.trim()[0]:this.formattedInitials=t.trim().slice(0,2)},setKind(t){if(this.isIconType(t)){this.kind="icon";return}if(this.isImageType(t)){this.kind="image";return}this.kind="initials"},isIconType(t){var e;return((e=t==null?void 0:t.tagName)==null?void 0:e.toUpperCase())==="SVG"},isImageType(t){var e;return((e=t==null?void 0:t.tagName)==null?void 0:e.toUpperCase())==="IMG"},async getColor(){const t=this.color??await Bi(Ki,this.seed);this.internalColor=t},validateImageAttrsPresence(){const t=!this.$refs.canvas.firstChild.getAttribute("src"),e=this.$refs.canvas.firstChild.getAttribute("alt")===null;(t||e)&&X.util.warn("src and alt attributes are required for image avatars",this)},_loadedImageEventHandler(t){this.imageLoadedSuccessfully=!0,t.classList.remove("d-d-none"),t.classList.add("d-avatar--image-loaded")},_erroredImageEventHandler(t){this.imageLoadedSuccessfully=!1,t.classList.remove("d-avatar--image-loaded"),t.classList.add("d-d-none")}}};var Da=function(){var e=this,n=e._self._c;return n("div",{class:e.avatarClasses,attrs:{id:e.id,"data-qa":"dt-avatar"}},[n("div",{ref:"canvas",class:[e.canvasClass,"d-avatar__canvas"]},[e.showDefaultSlot?e._t("default"):e._e(),e.showInitials?n("span",{staticClass:"d-ps-absolute d-zi-base",class:e.AVATAR_KIND_MODIFIERS.initials},[e._v(" "+e._s(e.formattedInitials)+" ")]):e._e()],2),e.overlayIcon||e.overlayText?n("div",{class:e.overlayClasses},[e.overlayIcon?n("dt-icon",{staticClass:"d-fc-white d-w100p",attrs:{name:e.overlayIcon}}):e.overlayText?n("p",{staticClass:"d-fs-200 d-fw-bold d-fc-white d-w100p d-ta-center"},[e._v(" "+e._s(e.overlayText)+" ")]):e._e()],1):e._e(),e.showGroup?n("span",{staticClass:"d-avatar__count d-zi-base",attrs:{"data-qa":"dt-avatar-count"}},[e._v(e._s(e.formattedGroup))]):e._e(),e.presence&&!e.showGroup?n("dt-presence",e._b({staticClass:"d-zi-base",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)},$a=[],Ra=p.normalizeComponent(Aa,Da,$a,!1,null,null,null,null);const Ht=Ra.exports,gn={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"},vn={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"},ka={name:"DtBadge",components:{DtIcon:k},props:{iconLeft:{type:String,default:""},iconRight:{type:String,default:""},text:{type:String,default:""},kind:{type:String,default:"label",validator:t=>Object.keys(vn).includes(t)},type:{type:String,default:"default",validator:t=>Object.keys(gn).includes(t)},decoration:{type:String,default:void 0,validator:t=>Object.keys(bn).includes(t)}},data(){return{BADGE_TYPE_MODIFIERS:gn,BADGE_KIND_MODIFIERS:vn,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 Pa=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",{staticClass:"d-badge__label"},[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()])},Na=[],Ba=p.normalizeComponent(ka,Pa,Na,!1,null,null,null,null);const Ui=Ba.exports,Ye=["base","error","info","success","warning"],Ma=["alert","alertdialog","status"],Fa=new Map([["info","info"],["success","check-circle"],["warning","alert-triangle"],["error","alert-circle"],["base","bell"]]),Va={name:"DtNoticeIcon",components:{DtIcon:k},props:{kind:{type:String,default:"base",validate(t){return Ye.includes(t)}}},computed:{defaultIcon(){return Fa.get(this.kind)}}};var ja=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()},za=[],Ha=p.normalizeComponent(Va,ja,za,!1,null,null,null,null);const Rn=Ha.exports,qa={name:"DtNoticeContent",props:{title:{type:String,default:""},titleId:{type:String,default:void 0},contentId:{type:String,default:void 0}}};var Ka=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)])},Ua=[],Ga=p.normalizeComponent(qa,Ka,Ua,!1,null,null,null,null);const kn=Ga.exports,on={xs:"d-btn--xs",sm:"d-btn--sm",md:"",lg:"d-btn--lg",xl:"d-btn--xl"},ii={default:"",muted:"d-btn--muted",danger:"d-btn--danger",inverted:"d-btn--inverted"},si={clear:"",primary:"d-btn--primary",outlined:"d-btn--outlined"},Wa=["submit","reset","button"],ai={left:"d-btn__icon--left",right:"d-btn__icon--right",top:"d-btn__icon--top",bottom:"d-btn__icon--bottom"},Ya=[{circle:!0,kind:"default",importance:"primary",message:$t(!0,"default","primary")},{circle:!0,kind:"danger",importance:"outlined",message:$t(!0,"danger","outlined")},{circle:!0,kind:"muted",importance:"primary",message:$t(!0,"muted","primary")},{circle:!1,kind:"muted",importance:"primary",message:$t(!1,"muted","primary")}];function $t(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 Za="danger",Xa="warning",Qa="success",Gi="muted",Wi="inverted",Yi=["",Za,Xa,Qa,Gi,Wi],Vt={default:"",warning:"d-link--warning",danger:"d-link--danger",success:"d-link--success",muted:"d-link--muted",inverted:"d-link--inverted"},Ja={name:"DtButton",props:{circle:{type:Boolean,default:!1},iconPosition:{type:String,default:"left",validator:t=>Object.keys(ai).includes(t)},importance:{type:String,default:"primary",validator:t=>Object.keys(si).includes(t)},link:{type:Boolean,default:!1},linkKind:{type:String,default:"default",validator:t=>Object.keys(Vt).includes(t)},disabled:{type:Boolean,default:!1},type:{type:String,default:"button",validator:t=>Wa.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(ii).includes(t)},assertiveOnFocus:{type:Boolean,default:!1},active:{type:Boolean,default:!1}},emits:["click","focusin","focusout"],data(){return{ICON_POSITION_MODIFIERS:ai,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&&X.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",Vt[this.linkKind],on[this.size]]:["d-btn",si[this.importance],ii[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 i of Ya)if(t===i.circle&&e===i.kind&&n===i.importance)return console.error(i.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 er=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()])},tr=[],nr=p.normalizeComponent(Ja,er,tr,!1,null,null,null,null);const j=nr.exports,ge={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.`)}}},ir={name:"SrOnlyCloseButton",components:{DtIcon:k,DtButton:j},props:{visuallyHiddenCloseLabel:{type:String,default:null}},methods:{close(){this.$emit("close")}}};var sr=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(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"space",32,i.key,[" ","Spacebar"])?null:(i.preventDefault(),i.stopPropagation(),e.close.apply(null,arguments))}}},[n("dt-icon",{attrs:{name:"close"}})],1)},ar=[],rr=p.normalizeComponent(ir,sr,ar,!1,null,null,null,null);const qt=rr.exports,or={name:"DtNoticeAction",components:{DtIcon:k,DtButton:j,SrOnlyCloseButton:qt},mixins:[ge],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 lr=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)},dr=[],cr=p.normalizeComponent(or,lr,dr,!1,null,null,null,null);const Pn=cr.exports,Zi=':not(:disabled):not([aria-disabled="true"]):not([role="presentation"])',ur=`${Zi}:not([tabindex="-1"])`,pr="button,[href],input,select,textarea,details,[tabindex]",ht={methods:{async getFirstFocusableElement(t){await this.$nextTick();const e=this._getFocusableElements(t,!0);return this._getFirstFocusElement(e)},async focusFirstElement(t){const e=await this.getFirstFocusableElement(t);e==null||e.focus({preventScroll:!0})},_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(pr)].filter(i=>{const s=window.getComputedStyle(i);return s.getPropertyValue("display")!=="none"&&s.getPropertyValue("visibility")!=="hidden"&&i.matches(e?Zi:ur)}):[]},focusTrappedTabPress(t,e){if(!(t.key==="Tab"))return;const i=this._getFocusableElements(e);if(!i.length){t.preventDefault();return}const s=this._getFirstFocusElement(i),r=i[i.length-1];t.shiftKey?document.activeElement===s&&(r.focus(),t.preventDefault()):document.activeElement===r&&(s.focus(),t.preventDefault())}}},fr={name:"DtBanner",components:{DtNoticeIcon:Rn,DtNoticeContent:kn,DtNoticeAction:Pn},mixins:[ht,ge],props:{titleId:{type:String,default(){return ae.getUniqueString()}},contentId:{type:String,default(){return ae.getUniqueString()}},title:{type:String,default:""},important:{type:Boolean,default:!1},pinned:{type:Boolean,default:!1},kind:{type:String,default:"base",validate(t){return Ye.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 hr=function(){var e=this,n=e._self._c;return n("aside",{class:e.bannerClass,style:e.bannerBackgroundImage,on:{keydown:function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"tab",9,i.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)])},mr=[],_r=p.normalizeComponent(fr,hr,mr,!1,null,null,null,null);const gr=_r.exports,Xi="d-breadcrumbs__item--selected",Qi="d-breadcrumbs--inverted",vr={name:"DtLink",props:{kind:{type:String,default:"",validator(t){return Yi.includes(t)}}},emits:["click","focusin","focusout"],data(){return{LINK_KIND_MODIFIERS:Vt}}};var br=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)},yr=[],Sr=p.normalizeComponent(vr,br,yr,!1,null,null,null,null);const Ji=Sr.exports,Cr={name:"DtBreadcrumbItem",components:{DtLink:Ji},inheritAttrs:!1,props:{inverted:{type:Boolean,default:!1},selected:{type:Boolean,default:!1},label:{type:String,default:""}},data(){return{BREADCRUMB_ITEM_SELECTED_MODIFIER:Xi}},computed:{linkKind(){return this.inverted?Wi:Gi},ariaCurrent(){return this.selected?"location":void 0}}};var Ir=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)},Er=[],wr=p.normalizeComponent(Cr,Ir,Er,!1,null,null,null,null);const es=wr.exports,Or={name:"DtBreadcrumbs",components:{DtBreadcrumbItem:es},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:Qi}},methods:{getBreadcrumbItemKey(t){return`breadcrumbs-item-${t}-${ae.getUniqueString()}`}}};var xr=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(i,s){return n("dt-breadcrumb-item",e._g(e._b({key:e.getBreadcrumbItemKey(s),attrs:{inverted:e.inverted}},"dt-breadcrumb-item",i,!1),e.$listeners))})})],2)])},Tr=[],Lr=p.normalizeComponent(Or,xr,Tr,!1,null,null,null,null);const Ar=Lr.exports,yn={start:"d-btn-group--start",end:"d-btn-group--end","space-between":"d-btn-group--space-between"},Dr={name:"DtButtonGroup",props:{alignment:{type:String,default:"start",validator:t=>Object.keys(yn).includes(t)}},data(){return{BUTTON_GROUP_ALIGNMENT:yn}}};var $r=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)},Rr=[],kr=p.normalizeComponent(Dr,$r,Rr,!1,null,null,null,null);const Pr=kr.exports,Nr={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 Br=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()])},Mr=[],Fr=p.normalizeComponent(Nr,Br,Mr,!1,null,null,null,null);const ts=Fr.exports,Vr={name:"DtCodeblock",props:{text:{type:String,required:!0}}};var jr=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
+ `)])},zr=[],Hr=p.normalizeComponent(Vr,jr,zr,!1,null,null,null,null);const qr=Hr.exports,Kr={methods:{scrollElementIntoViewIfNeeded(t,e,n,i){t.scrollIntoViewIfNeeded?this.scrollIntoViewIfNeeded(t,e,n,i):this.scrollIntoView(t,"bottom",!1,n,i)},scrollElementIntoView(t,e,n,i){if(e==="center"){this.scrollIntoView(t,"center",!1,n,i);return}e===!1?this.scrollIntoView(t,"bottom",!1,n,i):this.scrollIntoView(t,"top",!1,n,i)},scrollIntoViewIfNeeded(t,e,n,i){const s=e?"center":void 0;this.scrollIntoView(t,s,!0,n,i)},scrollIntoView(t,e,n,i,s){if(!t||!t.parentElement)return;const r=t.offsetTop,o=s||t.parentElement,c=this._getScrollBounds(o),l=c.bottom-c.top,f=this._getElementHeight(t),u=r+f;let h=-1;switch(e){case"top":h=r;break;case"center":h=r+(f-l)/2;break;case"bottom":h=h=u-l;break;default:r-c.top<=l/2?h=r:h=u-l;break}this._setScrollTop(o,h,c,r,u,n,i)},_setScrollTop(t,e,n,i,s,r,o){n=n||this._getScrollBounds(t);const c=n.bottom-n.top;if(r&&this._inScrollBounds(i,s,n))if(i<n.top)e=i;else if(s>n.bottom)e=s-c;else return;o?t.scrollTo({top:e,behavior:o}):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 i=e-t;return e<=n.bottom+3*i/4&&t>=n.top-i/4}}},Ur="listElementKey is required or the referenced element doesn't exist. Received listElement: ",Nn=({listItemRole:t="option",indexKey:e="highlightIndex",idKey:n="highlightId",listElementKey:i="listRef",activeItemKey:s="",openMethod:r=null,afterHighlightMethod:o=null,beginningOfListMethod:c=null,endOfListMethod:l=null,scrollToOnHighlight:f=!0,focusOnKeyboardNavigation:u=!1}={})=>({mixins:[Kr],data(){return{[e]:-1,[n]:"",scrollToOnHighlight:f,focusOnKeyboardNavigation:u}},provide(){return{highlightId:()=>this[n]}},methods:{_getListElement(){var h;return((h=this[i]())==null?void 0:h.$el)||this[i]()},_itemsLength(){const h=this._getListItemNodes();return h===null?0:h.length},_getListItemNodes(){const h=this._getListElement();return h?Array.from(h.querySelectorAll(`[role="${t}"], #sr-only-close-button`)):(console.error(Ur,h),null)},onUpKey(){r&&this[r](!0),this[e]>0?this.setHighlightIndex(this[e]-1):c&&this[c](),this.scrollActiveItemIntoViewIfNeeded(),this.focusActiveItemIfNeeded()},onDownKey(){r&&this[r](!0),this[e]<this._itemsLength()-1?this.setHighlightIndex(this[e]+1):l&&this[l](),this.scrollActiveItemIntoViewIfNeeded(),this.focusActiveItemIfNeeded()},onHomeKey(){this.jumpToBeginning(),this.scrollActiveItemIntoViewIfNeeded(),this.focusActiveItemIfNeeded()},onEndKey(){this.jumpToEnd(),this.scrollActiveItemIntoViewIfNeeded(),this.focusActiveItemIfNeeded()},onNavigationKey(h){const b=this._getListItemNodes(),g=b.filter(y=>y.textContent.trim().toLowerCase().startsWith(h.toLowerCase()));if(g.length<=0)return;const C=g.findIndex(y=>this[e]===b.indexOf(y)),S=b.indexOf(C<g.length-1?g[C+1]:g[0]);this.setHighlightIndex(S),this.scrollActiveItemIntoViewIfNeeded(),this.focusActiveItemIfNeeded()},isValidCharacter(h){return h.length===1},jumpToBeginning(){this.setHighlightIndex(0)},jumpToEnd(){this.setHighlightIndex(this._itemsLength()-1)},setHighlightIndex(h){this[e]=h,this[n]=this._getItemId(h),this._itemsLength()&&o&&this[o](h)},setHighlightId(h){this[n]=h,this[e]=this._getItemIndex(h),this._itemsLength()&&o&&this[o](this._getItemIndex(h))},_getItemIndex(h){const b=this._getListElement();return b?Array.from(b.querySelectorAll(`[role="${t}"], #sr-only-close-button`)).indexOf(b.querySelector(`#${h}`)):void 0},_getItemId(h){var g;const b=this._getListElement();if(b)return(g=b.querySelectorAll(`[role="${t}"], #sr-only-close-button`)[h])==null?void 0:g.id},scrollActiveItemIntoViewIfNeeded(){if(!this.scrollToOnHighlight)return;const h=this[s];if(h){const b=this._getListElement();this.scrollElementIntoViewIfNeeded(h,null,null,b)}},focusActiveItemIfNeeded(){if(!this.focusOnKeyboardNavigation)return;const h=this[s];h&&h.focus()}}}),ln={DEFAULT:"default",CUSTOM:"custom"},De={ARROW_KEYS:"arrow-keys",TAB:"tab",NONE:"none"};const Gr={name:"DtDefaultListItem"};var Wr=function(){var e=this,n=e._self._c;return n("div",{staticClass:"dt-default-list-item d-fs-200 d-lh-300 d-py4 d-px8 d-d-flex d-ai-center"},[e.$slots.left?n("section",{staticClass:"dt-default-list-item--left d-d-inline-flex d-as-flex-start d-d-flex d-ai-center d-pr8 d-jc-flex-end",attrs:{"data-qa":"dt-default-list-item-left-wrapper"}},[e._t("left")],2):e._e(),n("section",{staticClass:"d-fl-grow1"},[e.$slots.default?n("div",[e._t("default")],2):e._e(),e.$slots.subtitle?n("div",{class:["d-fs-100 d-fc-tertiary",{"d-mtn2":e.$slots.default}],attrs:{"data-qa":"dt-default-list-item-subtitle-wrapper"}},[e._t("subtitle")],2):e._e(),e.$slots.bottom?n("div",{staticClass:"d-mt2",attrs:{"data-qa":"dt-default-list-item-bottom-wrapper"}},[e._t("bottom")],2):e._e()]),e.$slots.right?n("section",{staticClass:"dt-default-list-item--right d-d-inline-flex d-as-flex-start d-d-flex d-ai-center d-pl8",attrs:{"data-qa":"dt-default-list-item-right-wrapper"}},[e._t("right")],2):e._e(),e._t("selected")],2)},Yr=[],Zr=p.normalizeComponent(Gr,Wr,Yr,!1,null,null,null,null);const ri=Zr.exports;const Xr={name:"DtListItem",components:{DtDefaultListItem:ri,DtIcon:k},inject:{highlightId:{default:null}},props:{id:{type:String,default(){return ae.getUniqueString()}},role:{type:String,default:"listitem"},elementType:{type:String,default:"li"},type:{type:String,default:ln.DEFAULT,validator:t=>Object.values(ln).includes(t)},navigationType:{type:String,default:De.NONE,validator:t=>Object.values(De).includes(t)},selected:{type:Boolean,default:!1}},emits:["click","keydown","mousemove","mouseleave"],data(){return{injected:!1,mouseHighlighted:!1}},computed:{listItemType(){switch(this.type){case ln.DEFAULT:return ri;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===De.TAB},isHoverable(){return this.navigationType!==De.NONE}},methods:{onClick(t){this.$emit("click",t)},onMouseHover(){this.mouseHighlighted=!0},onMouseLeave(){this.mouseHighlighted=!1}}};var Qr=function(){var e=this,n=e._self._c;return n(e.elementType,e._g({tag:"component",class:["dt-list-item d-ls-none",{"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(i,s){return{key:s,fn:function(){return[e._t(s)]},proxy:!0}}),e.selected?{key:"selected",fn:function(){return[n("dt-icon",{staticClass:"d-ml8",attrs:{name:"check",size:"400"}})]},proxy:!0}:null],null,!0)}):e._t("default")],2)},Jr=[],eo=p.normalizeComponent(Xr,Qr,Jr,!1,null,null,null,null);const mt=eo.exports,to={name:"ComboboxLoadingList",components:{DtListItem:mt,DtSkeleton:p.DtSkeleton}};var no=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(i){return n("dt-list-item",{key:i,attrs:{role:"option","navigation-type":"none"}},[n("dt-skeleton",{attrs:{"text-option":{type:"body"},offset:0}})],1)}),1)},io=[],so=p.normalizeComponent(to,no,io,!1,null,null,null,null);const ns=so.exports;const ao={name:"ComboboxEmptyList",components:{DtListItem:mt},props:{message:{type:String,required:!0},itemClass:{type:[String,Object,Array],default:""}}};var ro=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)},oo=[],lo=p.normalizeComponent(ao,ro,oo,!1,null,null,null,null);const is=lo.exports,ss={EXTRA_SMALL:"xs",SMALL:"sm",DEFAULT:"md",LARGE:"lg",EXTRA_LARGE:"xl"},co={name:"DtCombobox",components:{ComboboxLoadingList:ns,ComboboxEmptyList:is},mixins:[Nn({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(ss).includes(t)},description:{type:String,default:""},listId:{type:String,default(){return M()}},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 uo=function(){var e=this,n=e._self._c;return n("div",{on:{keydown:[function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"esc",27,i.key,["Esc","Escape"])?null:(i.stopPropagation(),e.onKeyValidation(i,"onEscapeKey"))},function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"enter",13,i.key,"Enter")||i.ctrlKey||i.shiftKey||i.altKey||i.metaKey?null:e.onKeyValidation(i,"onEnterKey")},function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"up",38,i.key,["Up","ArrowUp"])?null:(i.stopPropagation(),i.preventDefault(),e.onKeyValidation(i,"onUpKey"))},function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"down",40,i.key,["Down","ArrowDown"])?null:(i.stopPropagation(),i.preventDefault(),e.onKeyValidation(i,"onDownKey"))},function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"home",void 0,i.key,void 0)?null:(i.stopPropagation(),i.preventDefault(),e.onKeyValidation(i,"onHomeKey"))},function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"end",void 0,i.key,void 0)?null:(i.stopPropagation(),i.preventDefault(),e.onKeyValidation(i,"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(i){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()])},po=[],fo=p.normalizeComponent(co,uo,po,!1,null,null,null,null);const as=fo.exports;const ho={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 mo=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)},_o=[],go=p.normalizeComponent(ho,mo,_o,!1,null,null,null,null);const vo=go.exports,bo={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 yo=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)])},So=[],Co=p.normalizeComponent(bo,yo,So,!1,null,null,null,null);const Ze=Co.exports,Io={name:"DtCollapsible",components:{DtButton:j,DtCollapsibleLazyShow:vo,DtLazyShow:Ze,DtIcon:k},props:{anchorText:{type:String,default:null},open:{type:Boolean,default:null},id:{type:String,default(){return M()}},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&&M("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 Eo=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)},wo=[],Oo=p.normalizeComponent(Io,Eo,wo,!1,null,null,null,null);const xo=Oo.exports;var K="top",te="bottom",ne="right",U="left",Kt="auto",_t=[K,te,ne,U],Ke="start",lt="end",To="clippingParents",rs="viewport",nt="popper",Lo="reference",oi=_t.reduce(function(t,e){return t.concat([e+"-"+Ke,e+"-"+lt])},[]),os=[].concat(_t,[Kt]).reduce(function(t,e){return t.concat([e,e+"-"+Ke,e+"-"+lt])},[]),Ao="beforeRead",Do="read",$o="afterRead",Ro="beforeMain",ko="main",Po="afterMain",No="beforeWrite",Bo="write",Mo="afterWrite",Sn=[Ao,Do,$o,Ro,ko,Po,No,Bo,Mo];function ue(t){return t?(t.nodeName||"").toLowerCase():null}function Q(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Re(t){var e=Q(t).Element;return t instanceof e||t instanceof Element}function Z(t){var e=Q(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function Bn(t){if(typeof ShadowRoot>"u")return!1;var e=Q(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function Fo(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var i=e.styles[n]||{},s=e.attributes[n]||{},r=e.elements[n];!Z(r)||!ue(r)||(Object.assign(r.style,i),Object.keys(s).forEach(function(o){var c=s[o];c===!1?r.removeAttribute(o):r.setAttribute(o,c===!0?"":c)}))})}function Vo(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(i){var s=e.elements[i],r=e.attributes[i]||{},o=Object.keys(e.styles.hasOwnProperty(i)?e.styles[i]:n[i]),c=o.reduce(function(l,f){return l[f]="",l},{});!Z(s)||!ue(s)||(Object.assign(s.style,c),Object.keys(r).forEach(function(l){s.removeAttribute(l)}))})}}const ls={name:"applyStyles",enabled:!0,phase:"write",fn:Fo,effect:Vo,requires:["computeStyles"]};function se(t){return t.split("-")[0]}var $e=Math.max,jt=Math.min,Ue=Math.round;function Cn(){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 ds(){return!/^((?!chrome|android).)*safari/i.test(Cn())}function Ge(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var i=t.getBoundingClientRect(),s=1,r=1;e&&Z(t)&&(s=t.offsetWidth>0&&Ue(i.width)/t.offsetWidth||1,r=t.offsetHeight>0&&Ue(i.height)/t.offsetHeight||1);var o=Re(t)?Q(t):window,c=o.visualViewport,l=!ds()&&n,f=(i.left+(l&&c?c.offsetLeft:0))/s,u=(i.top+(l&&c?c.offsetTop:0))/r,h=i.width/s,b=i.height/r;return{width:h,height:b,top:u,right:f+h,bottom:u+b,left:f,x:f,y:u}}function Mn(t){var e=Ge(t),n=t.offsetWidth,i=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-i)<=1&&(i=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:i}}function cs(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&Bn(n)){var i=e;do{if(i&&t.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function re(t){return Q(t).getComputedStyle(t)}function jo(t){return["table","td","th"].indexOf(ue(t))>=0}function Ie(t){return((Re(t)?t.ownerDocument:t.document)||window.document).documentElement}function Ut(t){return ue(t)==="html"?t:t.assignedSlot||t.parentNode||(Bn(t)?t.host:null)||Ie(t)}function li(t){return!Z(t)||re(t).position==="fixed"?null:t.offsetParent}function zo(t){var e=/firefox/i.test(Cn()),n=/Trident/i.test(Cn());if(n&&Z(t)){var i=re(t);if(i.position==="fixed")return null}var s=Ut(t);for(Bn(s)&&(s=s.host);Z(s)&&["html","body"].indexOf(ue(s))<0;){var r=re(s);if(r.transform!=="none"||r.perspective!=="none"||r.contain==="paint"||["transform","perspective"].indexOf(r.willChange)!==-1||e&&r.willChange==="filter"||e&&r.filter&&r.filter!=="none")return s;s=s.parentNode}return null}function gt(t){for(var e=Q(t),n=li(t);n&&jo(n)&&re(n).position==="static";)n=li(n);return n&&(ue(n)==="html"||ue(n)==="body"&&re(n).position==="static")?e:n||zo(t)||e}function Fn(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function it(t,e,n){return $e(t,jt(e,n))}function Ho(t,e,n){var i=it(t,e,n);return i>n?n:i}function us(){return{top:0,right:0,bottom:0,left:0}}function ps(t){return Object.assign({},us(),t)}function fs(t,e){return e.reduce(function(n,i){return n[i]=t,n},{})}var qo=function(e,n){return e=typeof e=="function"?e(Object.assign({},n.rects,{placement:n.placement})):e,ps(typeof e!="number"?e:fs(e,_t))};function Ko(t){var e,n=t.state,i=t.name,s=t.options,r=n.elements.arrow,o=n.modifiersData.popperOffsets,c=se(n.placement),l=Fn(c),f=[U,ne].indexOf(c)>=0,u=f?"height":"width";if(!(!r||!o)){var h=qo(s.padding,n),b=Mn(r),g=l==="y"?K:U,C=l==="y"?te:ne,S=n.rects.reference[u]+n.rects.reference[l]-o[l]-n.rects.popper[u],y=o[l]-n.rects.reference[l],w=gt(r),L=w?l==="y"?w.clientHeight||0:w.clientWidth||0:0,D=S/2-y/2,a=h[g],I=L-b[u]-h[C],m=L/2-b[u]/2+D,T=it(a,m,I),P=l;n.modifiersData[i]=(e={},e[P]=T,e.centerOffset=T-m,e)}}function Uo(t){var e=t.state,n=t.options,i=n.element,s=i===void 0?"[data-popper-arrow]":i;if(s!=null&&!(typeof s=="string"&&(s=e.elements.popper.querySelector(s),!s))){if(process.env.NODE_ENV!=="production"&&(Z(s)||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(" "))),!cs(e.elements.popper,s)){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=s}}const Go={name:"arrow",enabled:!0,phase:"main",fn:Ko,effect:Uo,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function We(t){return t.split("-")[1]}var Wo={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Yo(t,e){var n=t.x,i=t.y,s=e.devicePixelRatio||1;return{x:Ue(n*s)/s||0,y:Ue(i*s)/s||0}}function di(t){var e,n=t.popper,i=t.popperRect,s=t.placement,r=t.variation,o=t.offsets,c=t.position,l=t.gpuAcceleration,f=t.adaptive,u=t.roundOffsets,h=t.isFixed,b=o.x,g=b===void 0?0:b,C=o.y,S=C===void 0?0:C,y=typeof u=="function"?u({x:g,y:S}):{x:g,y:S};g=y.x,S=y.y;var w=o.hasOwnProperty("x"),L=o.hasOwnProperty("y"),D=U,a=K,I=window;if(f){var m=gt(n),T="clientHeight",P="clientWidth";if(m===Q(n)&&(m=Ie(n),re(m).position!=="static"&&c==="absolute"&&(T="scrollHeight",P="scrollWidth")),m=m,s===K||(s===U||s===ne)&&r===lt){a=te;var N=h&&m===I&&I.visualViewport?I.visualViewport.height:m[T];S-=N-i.height,S*=l?1:-1}if(s===U||(s===K||s===te)&&r===lt){D=ne;var $=h&&m===I&&I.visualViewport?I.visualViewport.width:m[P];g-=$-i.width,g*=l?1:-1}}var O=Object.assign({position:c},f&&Wo),A=u===!0?Yo({x:g,y:S},Q(n)):{x:g,y:S};if(g=A.x,S=A.y,l){var R;return Object.assign({},O,(R={},R[a]=L?"0":"",R[D]=w?"0":"",R.transform=(I.devicePixelRatio||1)<=1?"translate("+g+"px, "+S+"px)":"translate3d("+g+"px, "+S+"px, 0)",R))}return Object.assign({},O,(e={},e[a]=L?S+"px":"",e[D]=w?g+"px":"",e.transform="",e))}function Zo(t){var e=t.state,n=t.options,i=n.gpuAcceleration,s=i===void 0?!0:i,r=n.adaptive,o=r===void 0?!0:r,c=n.roundOffsets,l=c===void 0?!0:c;if(process.env.NODE_ENV!=="production"){var f=re(e.elements.popper).transitionProperty||"";o&&["transform","top","right","bottom","left"].some(function(h){return f.indexOf(h)>=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 d={placement:se(e.placement),variation:Ze(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:a,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,bi(Object.assign({},d,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:p,roundOffsets:s})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,bi(Object.assign({},d,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const Il={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:El,data:{}};var Pt={passive:!0};function Ol(t){var e=t.state,n=t.instance,i=t.options,a=i.scroll,o=a===void 0?!0:a,p=i.resize,c=p===void 0?!0:p,s=Q(e.elements.popper),u=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&u.forEach(function(d){d.addEventListener("scroll",n.update,Pt)}),c&&s.addEventListener("resize",n.update,Pt),function(){o&&u.forEach(function(d){d.removeEventListener("scroll",n.update,Pt)}),c&&s.removeEventListener("resize",n.update,Pt)}}const Tl={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Ol,data:{}};var Ll={left:"right",right:"left",bottom:"top",top:"bottom"};function Vt(t){return t.replace(/left|right|bottom|top/g,function(e){return Ll[e]})}var Al={start:"end",end:"start"};function yi(t){return t.replace(/start|end/g,function(e){return Al[e]})}function Un(t){var e=Q(t),n=e.pageXOffset,i=e.pageYOffset;return{scrollLeft:n,scrollTop:i}}function Wn(t){return Ye(xe(t)).left+Un(t).scrollLeft}function $l(t,e){var n=Q(t),i=xe(t),a=n.visualViewport,o=i.clientWidth,p=i.clientHeight,c=0,s=0;if(a){o=a.width,p=a.height;var u=_s();(u||!u&&e==="fixed")&&(c=a.offsetLeft,s=a.offsetTop)}return{width:o,height:p,x:c+Wn(t),y:s}}function Dl(t){var e,n=xe(t),i=Un(t),a=(e=t.ownerDocument)==null?void 0:e.body,o=De(n.scrollWidth,n.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),p=De(n.scrollHeight,n.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),c=-i.scrollLeft+Wn(t),s=-i.scrollTop;return re(a||n).direction==="rtl"&&(c+=De(n.clientWidth,a?a.clientWidth:0)-o),{width:o,height:p,x:c,y:s}}function Yn(t){var e=re(t),n=e.overflow,i=e.overflowX,a=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+i)}function Ss(t){return["html","body","#document"].indexOf(ue(t))>=0?t.ownerDocument.body:Z(t)&&Yn(t)?t:Ss(Yt(t))}function rt(t,e){var n;e===void 0&&(e=[]);var i=Ss(t),a=i===((n=t.ownerDocument)==null?void 0:n.body),o=Q(i),p=a?[o].concat(o.visualViewport||[],Yn(i)?i:[]):i,c=e.concat(p);return a?c:c.concat(rt(Yt(p)))}function wn(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Rl(t,e){var n=Ye(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 Si(t,e,n){return e===fs?wn($l(t,n)):Re(e)?Rl(e,n):wn(Dl(xe(t)))}function kl(t){var e=rt(Yt(t)),n=["absolute","fixed"].indexOf(re(t).position)>=0,i=n&&Z(t)?bt(t):t;return Re(i)?e.filter(function(a){return Re(a)&&gs(a,i)&&ue(a)!=="body"}):[]}function Pl(t,e,n,i){var a=e==="clippingParents"?kl(t):[].concat(e),o=[].concat(a,[n]),p=o[0],c=o.reduce(function(s,u){var d=Si(t,u,i);return s.top=De(d.top,s.top),s.right=qt(d.right,s.right),s.bottom=qt(d.bottom,s.bottom),s.left=De(d.left,s.left),s},Si(t,p,i));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}function Cs(t){var e=t.reference,n=t.element,i=t.placement,a=i?se(i):null,o=i?Ze(i):null,p=e.x+e.width/2-n.width/2,c=e.y+e.height/2-n.height/2,s;switch(a){case U:s={x:p,y:e.y-n.height};break;case te:s={x:p,y:e.y+e.height};break;case ne:s={x:e.x+e.width,y:c};break;case W:s={x:e.x-n.width,y:c};break;default:s={x:e.x,y:e.y}}var u=a?Kn(a):null;if(u!=null){var d=u==="y"?"height":"width";switch(o){case Ue:s[u]=s[u]-(e[d]/2-n[d]/2);break;case ct:s[u]=s[u]+(e[d]/2-n[d]/2);break}}return s}function ut(t,e){e===void 0&&(e={});var n=e,i=n.placement,a=i===void 0?t.placement:i,o=n.strategy,p=o===void 0?t.strategy:o,c=n.boundary,s=c===void 0?il:c,u=n.rootBoundary,d=u===void 0?fs:u,l=n.elementContext,f=l===void 0?st:l,h=n.altBoundary,v=h===void 0?!1:h,S=n.padding,C=S===void 0?0:S,O=bs(typeof C!="number"?C:ys(C,vt)),R=f===st?sl:st,k=t.rects.popper,r=t.elements[v?R:f],b=Pl(Re(r)?r:r.contextElement||xe(t.elements.popper),s,d,p),g=Ye(t.elements.reference),w=Cs({reference:g,element:k,strategy:"absolute",placement:a}),I=wn(Object.assign({},k,w)),L=f===st?I:g,A={top:b.top-L.top+O.top,bottom:L.bottom-b.bottom+O.bottom,left:b.left-L.left+O.left,right:L.right-b.right+O.right},E=t.modifiersData.offset;if(f===st&&E){var T=E[a];Object.keys(A).forEach(function($){var N=[ne,te].indexOf($)>=0?1:-1,j=[U,te].indexOf($)>=0?"y":"x";A[$]+=T[j]*N})}return A}function Nl(t,e){e===void 0&&(e={});var n=e,i=n.placement,a=n.boundary,o=n.rootBoundary,p=n.padding,c=n.flipVariations,s=n.allowedAutoPlacements,u=s===void 0?hs:s,d=Ze(i),l=d?c?gi:gi.filter(function(v){return Ze(v)===d}):vt,f=l.filter(function(v){return u.indexOf(v)>=0});f.length===0&&(f=l,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 h=f.reduce(function(v,S){return v[S]=ut(t,{placement:S,boundary:a,rootBoundary:o,padding:p})[se(S)],v},{});return Object.keys(h).sort(function(v,S){return h[v]-h[S]})}function Bl(t){if(se(t)===Wt)return[];var e=Vt(t);return[yi(t),e,yi(e)]}function Ml(t){var e=t.state,n=t.options,i=t.name;if(!e.modifiersData[i]._skip){for(var a=n.mainAxis,o=a===void 0?!0:a,p=n.altAxis,c=p===void 0?!0:p,s=n.fallbackPlacements,u=n.padding,d=n.boundary,l=n.rootBoundary,f=n.altBoundary,h=n.flipVariations,v=h===void 0?!0:h,S=n.allowedAutoPlacements,C=e.options.placement,O=se(C),R=O===C,k=s||(R||!v?[Vt(C)]:Bl(C)),r=[C].concat(k).reduce(function(pe,ie){return pe.concat(se(ie)===Wt?Nl(e,{placement:ie,boundary:d,rootBoundary:l,padding:u,flipVariations:v,allowedAutoPlacements:S}):ie)},[]),b=e.rects.reference,g=e.rects.popper,w=new Map,I=!0,L=r[0],A=0;A<r.length;A++){var E=r[A],T=se(E),$=Ze(E)===Ue,N=[U,te].indexOf(T)>=0,j=N?"width":"height",B=ut(e,{placement:E,boundary:d,rootBoundary:l,altBoundary:f,padding:u}),G=N?$?ne:W:$?te:U;b[j]>g[j]&&(G=Vt(G));var z=Vt(G),oe=[];if(o&&oe.push(B[T]<=0),c&&oe.push(B[G]<=0,B[z]<=0),oe.every(function(pe){return pe})){L=E,I=!1;break}w.set(E,oe)}if(I)for(var le=v?3:1,Ee=function(ie){var fe=r.find(function(Be){var he=w.get(Be);if(he)return he.slice(0,ie).every(function(Me){return Me})});if(fe)return L=fe,"break"},de=le;de>0;de--){var Ie=Ee(de);if(Ie==="break")break}e.placement!==L&&(e.modifiersData[i]._skip=!0,e.placement=L,e.reset=!0)}}const Fl={name:"flip",enabled:!0,phase:"main",fn:Ml,requiresIfExists:["offset"],data:{_skip:!1}};function Ci(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 xi(t){return[U,ne,te,W].some(function(e){return t[e]>=0})}function Vl(t){var e=t.state,n=t.name,i=e.rects.reference,a=e.rects.popper,o=e.modifiersData.preventOverflow,p=ut(e,{elementContext:"reference"}),c=ut(e,{altBoundary:!0}),s=Ci(p,i),u=Ci(c,a,o),d=xi(s),l=xi(u);e.modifiersData[n]={referenceClippingOffsets:s,popperEscapeOffsets:u,isReferenceHidden:d,hasPopperEscaped:l},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":l})}const jl={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Vl};function zl(t,e,n){var i=se(t),a=[W,U].indexOf(i)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},e,{placement:t})):n,p=o[0],c=o[1];return p=p||0,c=(c||0)*a,[W,ne].indexOf(i)>=0?{x:c,y:p}:{x:p,y:c}}function Hl(t){var e=t.state,n=t.options,i=t.name,a=n.offset,o=a===void 0?[0,0]:a,p=hs.reduce(function(d,l){return d[l]=zl(l,e.rects,o),d},{}),c=p[e.placement],s=c.x,u=c.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=s,e.modifiersData.popperOffsets.y+=u),e.modifiersData[i]=p}const ql={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Hl};function Gl(t){var e=t.state,n=t.name;e.modifiersData[n]=Cs({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const Kl={name:"popperOffsets",enabled:!0,phase:"read",fn:Gl,data:{}};function Ul(t){return t==="x"?"y":"x"}function Wl(t){var e=t.state,n=t.options,i=t.name,a=n.mainAxis,o=a===void 0?!0:a,p=n.altAxis,c=p===void 0?!1:p,s=n.boundary,u=n.rootBoundary,d=n.altBoundary,l=n.padding,f=n.tether,h=f===void 0?!0:f,v=n.tetherOffset,S=v===void 0?0:v,C=ut(e,{boundary:s,rootBoundary:u,padding:l,altBoundary:d}),O=se(e.placement),R=Ze(e.placement),k=!R,r=Kn(O),b=Ul(r),g=e.modifiersData.popperOffsets,w=e.rects.reference,I=e.rects.popper,L=typeof S=="function"?S(Object.assign({},e.rects,{placement:e.placement})):S,A=typeof L=="number"?{mainAxis:L,altAxis:L}:Object.assign({mainAxis:0,altAxis:0},L),E=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,T={x:0,y:0};if(g){if(o){var $,N=r==="y"?U:W,j=r==="y"?te:ne,B=r==="y"?"height":"width",G=g[r],z=G+C[N],oe=G-C[j],le=h?-I[B]/2:0,Ee=R===Ue?w[B]:I[B],de=R===Ue?-I[B]:-w[B],Ie=e.elements.arrow,pe=h&&Ie?Gn(Ie):{width:0,height:0},ie=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:vs(),fe=ie[N],Be=ie[j],he=at(0,w[B],pe[B]),Me=k?w[B]/2-le-he-fe-A.mainAxis:Ee-he-fe-A.mainAxis,ve=k?-w[B]/2+le+he+Be+A.mainAxis:de+he+Be+A.mainAxis,Fe=e.elements.arrow&&bt(e.elements.arrow),xt=Fe?r==="y"?Fe.clientTop||0:Fe.clientLeft||0:0,Je=($=E==null?void 0:E[r])!=null?$:0,wt=G+Me-Je-xt,Et=G+ve-Je,et=at(h?qt(z,wt):z,G,h?De(oe,Et):oe);g[r]=et,T[r]=et-G}if(c){var tt,It=r==="x"?U:W,Ot=r==="x"?te:ne,me=g[b],be=b==="y"?"height":"width",nt=me+C[It],Oe=me-C[Ot],it=[U,W].indexOf(O)!==-1,Tt=(tt=E==null?void 0:E[b])!=null?tt:0,Lt=it?nt:me-w[be]-I[be]-Tt+A.altAxis,At=it?me+w[be]+I[be]-Tt-A.altAxis:Oe,$t=h&&it?vl(Lt,me,At):at(h?Lt:nt,me,h?At:Oe);g[b]=$t,T[b]=$t-me}e.modifiersData[i]=T}}const Yl={name:"preventOverflow",enabled:!0,phase:"main",fn:Wl,requiresIfExists:["offset"]};function Zl(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function Xl(t){return t===Q(t)||!Z(t)?Un(t):Zl(t)}function Ql(t){var e=t.getBoundingClientRect(),n=We(e.width)/t.offsetWidth||1,i=We(e.height)/t.offsetHeight||1;return n!==1||i!==1}function Jl(t,e,n){n===void 0&&(n=!1);var i=Z(e),a=Z(e)&&Ql(e),o=xe(e),p=Ye(t,a,n),c={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(i||!i&&!n)&&((ue(e)!=="body"||Yn(o))&&(c=Xl(e)),Z(e)?(s=Ye(e,!0),s.x+=e.clientLeft,s.y+=e.clientTop):o&&(s.x=Wn(o))),{x:p.left+c.scrollLeft-s.x,y:p.top+c.scrollTop-s.y,width:p.width,height:p.height}}function ed(t){var e=new Map,n=new Set,i=[];t.forEach(function(o){e.set(o.name,o)});function a(o){n.add(o.name);var p=[].concat(o.requires||[],o.requiresIfExists||[]);p.forEach(function(c){if(!n.has(c)){var s=e.get(c);s&&a(s)}}),i.push(o)}return t.forEach(function(o){n.has(o.name)||a(o)}),i}function td(t){var e=ed(t);return Cn.reduce(function(n,i){return n.concat(e.filter(function(a){return a.phase===i}))},[])}function nd(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function ye(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];return[].concat(n).reduce(function(a,o){return a.replace(/%s/,o)},t)}var Le='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',id='Popper: modifier "%s" requires "%s", but "%s" modifier is not available',wi=["name","enabled","phase","fn","effect","requires","options"];function sd(t){t.forEach(function(e){[].concat(Object.keys(e),wi).filter(function(n,i,a){return a.indexOf(n)===i}).forEach(function(n){switch(n){case"name":typeof e.name!="string"&&console.error(ye(Le,String(e.name),'"name"','"string"','"'+String(e.name)+'"'));break;case"enabled":typeof e.enabled!="boolean"&&console.error(ye(Le,e.name,'"enabled"','"boolean"','"'+String(e.enabled)+'"'));break;case"phase":Cn.indexOf(e.phase)<0&&console.error(ye(Le,e.name,'"phase"',"either "+Cn.join(", "),'"'+String(e.phase)+'"'));break;case"fn":typeof e.fn!="function"&&console.error(ye(Le,e.name,'"fn"','"function"','"'+String(e.fn)+'"'));break;case"effect":e.effect!=null&&typeof e.effect!="function"&&console.error(ye(Le,e.name,'"effect"','"function"','"'+String(e.fn)+'"'));break;case"requires":e.requires!=null&&!Array.isArray(e.requires)&&console.error(ye(Le,e.name,'"requires"','"array"','"'+String(e.requires)+'"'));break;case"requiresIfExists":Array.isArray(e.requiresIfExists)||console.error(ye(Le,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 '+wi.map(function(i){return'"'+i+'"'}).join(", ")+'; but "'+n+'" was provided.')}e.requires&&e.requires.forEach(function(i){t.find(function(a){return a.name===i})==null&&console.error(ye(id,String(e.name),i,i))})})})}function ad(t,e){var n=new Set;return t.filter(function(i){var a=e(i);if(!n.has(a))return n.add(a),!0})}function rd(t){var e=t.reduce(function(n,i){var a=n[i.name];return n[i.name]=a?Object.assign({},a,i,{options:Object.assign({},a.options,i.options),data:Object.assign({},a.data,i.data)}):i,n},{});return Object.keys(e).map(function(n){return e[n]})}var Ei="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",od="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.",Ii={placement:"bottom",modifiers:[],strategy:"absolute"};function Oi(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function ld(t){t===void 0&&(t={});var e=t,n=e.defaultModifiers,i=n===void 0?[]:n,a=e.defaultOptions,o=a===void 0?Ii:a;return function(c,s,u){u===void 0&&(u=o);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},Ii,o),modifiersData:{},elements:{reference:c,popper:s},attributes:{},styles:{}},l=[],f=!1,h={state:d,setOptions:function(O){var R=typeof O=="function"?O(d.options):O;S(),d.options=Object.assign({},o,d.options,R),d.scrollParents={reference:Re(c)?rt(c):c.contextElement?rt(c.contextElement):[],popper:rt(s)};var k=td(rd([].concat(i,d.options.modifiers)));if(d.orderedModifiers=k.filter(function(E){return E.enabled}),process.env.NODE_ENV!=="production"){var r=ad([].concat(k,d.options.modifiers),function(E){var T=E.name;return T});if(sd(r),se(d.options.placement)===Wt){var b=d.orderedModifiers.find(function(E){var T=E.name;return T==="flip"});b||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "))}var g=re(s),w=g.marginTop,I=g.marginRight,L=g.marginBottom,A=g.marginLeft;[w,I,L,A].some(function(E){return parseFloat(E)})&&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 v(),h.update()},forceUpdate:function(){if(!f){var O=d.elements,R=O.reference,k=O.popper;if(!Oi(R,k)){process.env.NODE_ENV!=="production"&&console.error(Ei);return}d.rects={reference:Jl(R,bt(k),d.options.strategy==="fixed"),popper:Gn(k)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(E){return d.modifiersData[E.name]=Object.assign({},E.data)});for(var r=0,b=0;b<d.orderedModifiers.length;b++){if(process.env.NODE_ENV!=="production"&&(r+=1,r>100)){console.error(od);break}if(d.reset===!0){d.reset=!1,b=-1;continue}var g=d.orderedModifiers[b],w=g.fn,I=g.options,L=I===void 0?{}:I,A=g.name;typeof w=="function"&&(d=w({state:d,options:L,name:A,instance:h})||d)}}},update:nd(function(){return new Promise(function(C){h.forceUpdate(),C(d)})}),destroy:function(){S(),f=!0}};if(!Oi(c,s))return process.env.NODE_ENV!=="production"&&console.error(Ei),h;h.setOptions(u).then(function(C){!f&&u.onFirstUpdate&&u.onFirstUpdate(C)});function v(){d.orderedModifiers.forEach(function(C){var O=C.name,R=C.options,k=R===void 0?{}:R,r=C.effect;if(typeof r=="function"){var b=r({state:d,name:O,instance:h,options:k}),g=function(){};l.push(b||g)}})}function S(){l.forEach(function(C){return C()}),l=[]}return h}}var dd=[Tl,Kl,Il,ms,ql,Fl,Yl,Cl,jl],cd=ld({defaultModifiers:dd}),ud="tippy-box",xs="tippy-content",pd="tippy-backdrop",ws="tippy-arrow",Es="tippy-svg-arrow",Ae={passive:!0,capture:!0},Is=function(){return document.body};function fd(t,e){return{}.hasOwnProperty.call(t,e)}function pn(t,e,n){if(Array.isArray(t)){var i=t[e];return i??(Array.isArray(n)?n[e]:n)}return t}function Zn(t,e){var n={}.toString.call(t);return n.indexOf("[object")===0&&n.indexOf(e+"]")>-1}function Os(t,e){return typeof t=="function"?t.apply(void 0,e):t}function Ti(t,e){if(e===0)return t;var n;return function(i){clearTimeout(n),n=setTimeout(function(){t(i)},e)}}function hd(t,e){var n=Object.assign({},t);return e.forEach(function(i){delete n[i]}),n}function md(t){return t.split(/\s+/).filter(Boolean)}function He(t){return[].concat(t)}function Li(t,e){t.indexOf(e)===-1&&t.push(e)}function _d(t){return t.filter(function(e,n){return t.indexOf(e)===n})}function gd(t){return t.split("-")[0]}function Gt(t){return[].slice.call(t)}function Ai(t){return Object.keys(t).reduce(function(e,n){return t[n]!==void 0&&(e[n]=t[n]),e},{})}function ot(){return document.createElement("div")}function pt(t){return["Element","Fragment"].some(function(e){return Zn(t,e)})}function vd(t){return Zn(t,"NodeList")}function bd(t){return Zn(t,"MouseEvent")}function yd(t){return!!(t&&t._tippy&&t._tippy.reference===t)}function Sd(t){return pt(t)?[t]:vd(t)?Gt(t):Array.isArray(t)?t:Gt(document.querySelectorAll(t))}function fn(t,e){t.forEach(function(n){n&&(n.style.transitionDuration=e+"ms")})}function $i(t,e){t.forEach(function(n){n&&n.setAttribute("data-state",e)})}function Cd(t){var e,n=He(t),i=n[0];return i!=null&&(e=i.ownerDocument)!=null&&e.body?i.ownerDocument:document}function xd(t,e){var n=e.clientX,i=e.clientY;return t.every(function(a){var o=a.popperRect,p=a.popperState,c=a.props,s=c.interactiveBorder,u=gd(p.placement),d=p.modifiersData.offset;if(!d)return!0;var l=u==="bottom"?d.top.y:0,f=u==="top"?d.bottom.y:0,h=u==="right"?d.left.x:0,v=u==="left"?d.right.x:0,S=o.top-i+l>s,C=i-o.bottom-f>s,O=o.left-n+h>s,R=n-o.right-v>s;return S||C||O||R})}function hn(t,e,n){var i=e+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(a){t[i](a,n)})}function Di(t,e){for(var n=e;n;){var i;if(t.contains(n))return!0;n=n.getRootNode==null||(i=n.getRootNode())==null?void 0:i.host}return!1}var ce={isTouch:!1},Ri=0;function wd(){ce.isTouch||(ce.isTouch=!0,window.performance&&document.addEventListener("mousemove",Ts))}function Ts(){var t=performance.now();t-Ri<20&&(ce.isTouch=!1,document.removeEventListener("mousemove",Ts)),Ri=t}function Ed(){var t=document.activeElement;if(yd(t)){var e=t._tippy;t.blur&&!e.state.isVisible&&t.blur()}}function Id(){document.addEventListener("touchstart",wd,Ae),window.addEventListener("blur",Ed)}var Od=typeof window<"u"&&typeof document<"u",Td=Od?!!window.msCrypto:!1;function ze(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 ki(t){var e=/[ \t]{2,}/g,n=/^[ \t]*/gm;return t.replace(e," ").replace(n,"").trim()}function Ld(t){return ki(`
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 u={placement:se(e.placement),variation:We(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:s,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,di(Object.assign({},u,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:o,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,di(Object.assign({},u,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const Xo={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Zo,data:{}};var Rt={passive:!0};function Qo(t){var e=t.state,n=t.instance,i=t.options,s=i.scroll,r=s===void 0?!0:s,o=i.resize,c=o===void 0?!0:o,l=Q(e.elements.popper),f=[].concat(e.scrollParents.reference,e.scrollParents.popper);return r&&f.forEach(function(u){u.addEventListener("scroll",n.update,Rt)}),c&&l.addEventListener("resize",n.update,Rt),function(){r&&f.forEach(function(u){u.removeEventListener("scroll",n.update,Rt)}),c&&l.removeEventListener("resize",n.update,Rt)}}const Jo={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Qo,data:{}};var el={left:"right",right:"left",bottom:"top",top:"bottom"};function Bt(t){return t.replace(/left|right|bottom|top/g,function(e){return el[e]})}var tl={start:"end",end:"start"};function ci(t){return t.replace(/start|end/g,function(e){return tl[e]})}function Vn(t){var e=Q(t),n=e.pageXOffset,i=e.pageYOffset;return{scrollLeft:n,scrollTop:i}}function jn(t){return Ge(Ie(t)).left+Vn(t).scrollLeft}function nl(t,e){var n=Q(t),i=Ie(t),s=n.visualViewport,r=i.clientWidth,o=i.clientHeight,c=0,l=0;if(s){r=s.width,o=s.height;var f=ds();(f||!f&&e==="fixed")&&(c=s.offsetLeft,l=s.offsetTop)}return{width:r,height:o,x:c+jn(t),y:l}}function il(t){var e,n=Ie(t),i=Vn(t),s=(e=t.ownerDocument)==null?void 0:e.body,r=$e(n.scrollWidth,n.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),o=$e(n.scrollHeight,n.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),c=-i.scrollLeft+jn(t),l=-i.scrollTop;return re(s||n).direction==="rtl"&&(c+=$e(n.clientWidth,s?s.clientWidth:0)-r),{width:r,height:o,x:c,y:l}}function zn(t){var e=re(t),n=e.overflow,i=e.overflowX,s=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+s+i)}function hs(t){return["html","body","#document"].indexOf(ue(t))>=0?t.ownerDocument.body:Z(t)&&zn(t)?t:hs(Ut(t))}function st(t,e){var n;e===void 0&&(e=[]);var i=hs(t),s=i===((n=t.ownerDocument)==null?void 0:n.body),r=Q(i),o=s?[r].concat(r.visualViewport||[],zn(i)?i:[]):i,c=e.concat(o);return s?c:c.concat(st(Ut(o)))}function In(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function sl(t,e){var n=Ge(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 ui(t,e,n){return e===rs?In(nl(t,n)):Re(e)?sl(e,n):In(il(Ie(t)))}function al(t){var e=st(Ut(t)),n=["absolute","fixed"].indexOf(re(t).position)>=0,i=n&&Z(t)?gt(t):t;return Re(i)?e.filter(function(s){return Re(s)&&cs(s,i)&&ue(s)!=="body"}):[]}function rl(t,e,n,i){var s=e==="clippingParents"?al(t):[].concat(e),r=[].concat(s,[n]),o=r[0],c=r.reduce(function(l,f){var u=ui(t,f,i);return l.top=$e(u.top,l.top),l.right=jt(u.right,l.right),l.bottom=jt(u.bottom,l.bottom),l.left=$e(u.left,l.left),l},ui(t,o,i));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}function ms(t){var e=t.reference,n=t.element,i=t.placement,s=i?se(i):null,r=i?We(i):null,o=e.x+e.width/2-n.width/2,c=e.y+e.height/2-n.height/2,l;switch(s){case K:l={x:o,y:e.y-n.height};break;case te:l={x:o,y:e.y+e.height};break;case ne:l={x:e.x+e.width,y:c};break;case U:l={x:e.x-n.width,y:c};break;default:l={x:e.x,y:e.y}}var f=s?Fn(s):null;if(f!=null){var u=f==="y"?"height":"width";switch(r){case Ke:l[f]=l[f]-(e[u]/2-n[u]/2);break;case lt:l[f]=l[f]+(e[u]/2-n[u]/2);break}}return l}function dt(t,e){e===void 0&&(e={});var n=e,i=n.placement,s=i===void 0?t.placement:i,r=n.strategy,o=r===void 0?t.strategy:r,c=n.boundary,l=c===void 0?To:c,f=n.rootBoundary,u=f===void 0?rs:f,h=n.elementContext,b=h===void 0?nt:h,g=n.altBoundary,C=g===void 0?!1:g,S=n.padding,y=S===void 0?0:S,w=ps(typeof y!="number"?y:fs(y,_t)),L=b===nt?Lo:nt,D=t.rects.popper,a=t.elements[C?L:b],I=rl(Re(a)?a:a.contextElement||Ie(t.elements.popper),l,u,o),m=Ge(t.elements.reference),T=ms({reference:m,element:D,strategy:"absolute",placement:s}),P=In(Object.assign({},D,T)),N=b===nt?P:m,$={top:I.top-N.top+w.top,bottom:N.bottom-I.bottom+w.bottom,left:I.left-N.left+w.left,right:N.right-I.right+w.right},O=t.modifiersData.offset;if(b===nt&&O){var A=O[s];Object.keys($).forEach(function(R){var G=[ne,te].indexOf(R)>=0?1:-1,W=[K,te].indexOf(R)>=0?"y":"x";$[R]+=A[W]*G})}return $}function ol(t,e){e===void 0&&(e={});var n=e,i=n.placement,s=n.boundary,r=n.rootBoundary,o=n.padding,c=n.flipVariations,l=n.allowedAutoPlacements,f=l===void 0?os:l,u=We(i),h=u?c?oi:oi.filter(function(C){return We(C)===u}):_t,b=h.filter(function(C){return f.indexOf(C)>=0});b.length===0&&(b=h,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 g=b.reduce(function(C,S){return C[S]=dt(t,{placement:S,boundary:s,rootBoundary:r,padding:o})[se(S)],C},{});return Object.keys(g).sort(function(C,S){return g[C]-g[S]})}function ll(t){if(se(t)===Kt)return[];var e=Bt(t);return[ci(t),e,ci(e)]}function dl(t){var e=t.state,n=t.options,i=t.name;if(!e.modifiersData[i]._skip){for(var s=n.mainAxis,r=s===void 0?!0:s,o=n.altAxis,c=o===void 0?!0:o,l=n.fallbackPlacements,f=n.padding,u=n.boundary,h=n.rootBoundary,b=n.altBoundary,g=n.flipVariations,C=g===void 0?!0:g,S=n.allowedAutoPlacements,y=e.options.placement,w=se(y),L=w===y,D=l||(L||!C?[Bt(y)]:ll(y)),a=[y].concat(D).reduce(function(pe,ie){return pe.concat(se(ie)===Kt?ol(e,{placement:ie,boundary:u,rootBoundary:h,padding:f,flipVariations:C,allowedAutoPlacements:S}):ie)},[]),I=e.rects.reference,m=e.rects.popper,T=new Map,P=!0,N=a[0],$=0;$<a.length;$++){var O=a[$],A=se(O),R=We(O)===Ke,G=[K,te].indexOf(A)>=0,W=G?"width":"height",z=dt(e,{placement:O,boundary:u,rootBoundary:h,altBoundary:b,padding:f}),H=G?R?ne:U:R?te:K;I[W]>m[W]&&(H=Bt(H));var F=Bt(H),oe=[];if(r&&oe.push(z[A]<=0),c&&oe.push(z[H]<=0,z[F]<=0),oe.every(function(pe){return pe})){N=O,P=!1;break}T.set(O,oe)}if(P)for(var le=C?3:1,we=function(ie){var fe=a.find(function(Pe){var he=T.get(Pe);if(he)return he.slice(0,ie).every(function(Ne){return Ne})});if(fe)return N=fe,"break"},de=le;de>0;de--){var Oe=we(de);if(Oe==="break")break}e.placement!==N&&(e.modifiersData[i]._skip=!0,e.placement=N,e.reset=!0)}}const cl={name:"flip",enabled:!0,phase:"main",fn:dl,requiresIfExists:["offset"],data:{_skip:!1}};function pi(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 fi(t){return[K,ne,te,U].some(function(e){return t[e]>=0})}function ul(t){var e=t.state,n=t.name,i=e.rects.reference,s=e.rects.popper,r=e.modifiersData.preventOverflow,o=dt(e,{elementContext:"reference"}),c=dt(e,{altBoundary:!0}),l=pi(o,i),f=pi(c,s,r),u=fi(l),h=fi(f);e.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:f,isReferenceHidden:u,hasPopperEscaped:h},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":h})}const pl={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:ul};function fl(t,e,n){var i=se(t),s=[U,K].indexOf(i)>=0?-1:1,r=typeof n=="function"?n(Object.assign({},e,{placement:t})):n,o=r[0],c=r[1];return o=o||0,c=(c||0)*s,[U,ne].indexOf(i)>=0?{x:c,y:o}:{x:o,y:c}}function hl(t){var e=t.state,n=t.options,i=t.name,s=n.offset,r=s===void 0?[0,0]:s,o=os.reduce(function(u,h){return u[h]=fl(h,e.rects,r),u},{}),c=o[e.placement],l=c.x,f=c.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=f),e.modifiersData[i]=o}const ml={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:hl};function _l(t){var e=t.state,n=t.name;e.modifiersData[n]=ms({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const gl={name:"popperOffsets",enabled:!0,phase:"read",fn:_l,data:{}};function vl(t){return t==="x"?"y":"x"}function bl(t){var e=t.state,n=t.options,i=t.name,s=n.mainAxis,r=s===void 0?!0:s,o=n.altAxis,c=o===void 0?!1:o,l=n.boundary,f=n.rootBoundary,u=n.altBoundary,h=n.padding,b=n.tether,g=b===void 0?!0:b,C=n.tetherOffset,S=C===void 0?0:C,y=dt(e,{boundary:l,rootBoundary:f,padding:h,altBoundary:u}),w=se(e.placement),L=We(e.placement),D=!L,a=Fn(w),I=vl(a),m=e.modifiersData.popperOffsets,T=e.rects.reference,P=e.rects.popper,N=typeof S=="function"?S(Object.assign({},e.rects,{placement:e.placement})):S,$=typeof N=="number"?{mainAxis:N,altAxis:N}:Object.assign({mainAxis:0,altAxis:0},N),O=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,A={x:0,y:0};if(m){if(r){var R,G=a==="y"?K:U,W=a==="y"?te:ne,z=a==="y"?"height":"width",H=m[a],F=H+y[G],oe=H-y[W],le=g?-P[z]/2:0,we=L===Ke?T[z]:P[z],de=L===Ke?-P[z]:-T[z],Oe=e.elements.arrow,pe=g&&Oe?Mn(Oe):{width:0,height:0},ie=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:us(),fe=ie[G],Pe=ie[W],he=it(0,T[z],pe[z]),Ne=D?T[z]/2-le-he-fe-$.mainAxis:we-he-fe-$.mainAxis,ve=D?-T[z]/2+le+he+Pe+$.mainAxis:de+he+Pe+$.mainAxis,Be=e.elements.arrow&&gt(e.elements.arrow),St=Be?a==="y"?Be.clientTop||0:Be.clientLeft||0:0,Xe=(R=O==null?void 0:O[a])!=null?R:0,Ct=H+Ne-Xe-St,It=H+ve-Xe,Qe=it(g?jt(F,Ct):F,H,g?$e(oe,It):oe);m[a]=Qe,A[a]=Qe-H}if(c){var Je,Et=a==="x"?K:U,wt=a==="x"?te:ne,me=m[I],be=I==="y"?"height":"width",et=me+y[Et],xe=me-y[wt],tt=[K,U].indexOf(w)!==-1,Ot=(Je=O==null?void 0:O[I])!=null?Je:0,xt=tt?et:me-T[be]-P[be]-Ot+$.altAxis,Tt=tt?me+T[be]+P[be]-Ot-$.altAxis:xe,Lt=g&&tt?Ho(xt,me,Tt):it(g?xt:et,me,g?Tt:xe);m[I]=Lt,A[I]=Lt-me}e.modifiersData[i]=A}}const yl={name:"preventOverflow",enabled:!0,phase:"main",fn:bl,requiresIfExists:["offset"]};function Sl(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function Cl(t){return t===Q(t)||!Z(t)?Vn(t):Sl(t)}function Il(t){var e=t.getBoundingClientRect(),n=Ue(e.width)/t.offsetWidth||1,i=Ue(e.height)/t.offsetHeight||1;return n!==1||i!==1}function El(t,e,n){n===void 0&&(n=!1);var i=Z(e),s=Z(e)&&Il(e),r=Ie(e),o=Ge(t,s,n),c={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(i||!i&&!n)&&((ue(e)!=="body"||zn(r))&&(c=Cl(e)),Z(e)?(l=Ge(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):r&&(l.x=jn(r))),{x:o.left+c.scrollLeft-l.x,y:o.top+c.scrollTop-l.y,width:o.width,height:o.height}}function wl(t){var e=new Map,n=new Set,i=[];t.forEach(function(r){e.set(r.name,r)});function s(r){n.add(r.name);var o=[].concat(r.requires||[],r.requiresIfExists||[]);o.forEach(function(c){if(!n.has(c)){var l=e.get(c);l&&s(l)}}),i.push(r)}return t.forEach(function(r){n.has(r.name)||s(r)}),i}function Ol(t){var e=wl(t);return Sn.reduce(function(n,i){return n.concat(e.filter(function(s){return s.phase===i}))},[])}function xl(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function ye(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];return[].concat(n).reduce(function(s,r){return s.replace(/%s/,r)},t)}var Le='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',Tl='Popper: modifier "%s" requires "%s", but "%s" modifier is not available',hi=["name","enabled","phase","fn","effect","requires","options"];function Ll(t){t.forEach(function(e){[].concat(Object.keys(e),hi).filter(function(n,i,s){return s.indexOf(n)===i}).forEach(function(n){switch(n){case"name":typeof e.name!="string"&&console.error(ye(Le,String(e.name),'"name"','"string"','"'+String(e.name)+'"'));break;case"enabled":typeof e.enabled!="boolean"&&console.error(ye(Le,e.name,'"enabled"','"boolean"','"'+String(e.enabled)+'"'));break;case"phase":Sn.indexOf(e.phase)<0&&console.error(ye(Le,e.name,'"phase"',"either "+Sn.join(", "),'"'+String(e.phase)+'"'));break;case"fn":typeof e.fn!="function"&&console.error(ye(Le,e.name,'"fn"','"function"','"'+String(e.fn)+'"'));break;case"effect":e.effect!=null&&typeof e.effect!="function"&&console.error(ye(Le,e.name,'"effect"','"function"','"'+String(e.fn)+'"'));break;case"requires":e.requires!=null&&!Array.isArray(e.requires)&&console.error(ye(Le,e.name,'"requires"','"array"','"'+String(e.requires)+'"'));break;case"requiresIfExists":Array.isArray(e.requiresIfExists)||console.error(ye(Le,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 '+hi.map(function(i){return'"'+i+'"'}).join(", ")+'; but "'+n+'" was provided.')}e.requires&&e.requires.forEach(function(i){t.find(function(s){return s.name===i})==null&&console.error(ye(Tl,String(e.name),i,i))})})})}function Al(t,e){var n=new Set;return t.filter(function(i){var s=e(i);if(!n.has(s))return n.add(s),!0})}function Dl(t){var e=t.reduce(function(n,i){var s=n[i.name];return n[i.name]=s?Object.assign({},s,i,{options:Object.assign({},s.options,i.options),data:Object.assign({},s.data,i.data)}):i,n},{});return Object.keys(e).map(function(n){return e[n]})}var mi="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",$l="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.",_i={placement:"bottom",modifiers:[],strategy:"absolute"};function gi(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function Rl(t){t===void 0&&(t={});var e=t,n=e.defaultModifiers,i=n===void 0?[]:n,s=e.defaultOptions,r=s===void 0?_i:s;return function(c,l,f){f===void 0&&(f=r);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},_i,r),modifiersData:{},elements:{reference:c,popper:l},attributes:{},styles:{}},h=[],b=!1,g={state:u,setOptions:function(w){var L=typeof w=="function"?w(u.options):w;S(),u.options=Object.assign({},r,u.options,L),u.scrollParents={reference:Re(c)?st(c):c.contextElement?st(c.contextElement):[],popper:st(l)};var D=Ol(Dl([].concat(i,u.options.modifiers)));if(u.orderedModifiers=D.filter(function(O){return O.enabled}),process.env.NODE_ENV!=="production"){var a=Al([].concat(D,u.options.modifiers),function(O){var A=O.name;return A});if(Ll(a),se(u.options.placement)===Kt){var I=u.orderedModifiers.find(function(O){var A=O.name;return A==="flip"});I||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "))}var m=re(l),T=m.marginTop,P=m.marginRight,N=m.marginBottom,$=m.marginLeft;[T,P,N,$].some(function(O){return parseFloat(O)})&&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 C(),g.update()},forceUpdate:function(){if(!b){var w=u.elements,L=w.reference,D=w.popper;if(!gi(L,D)){process.env.NODE_ENV!=="production"&&console.error(mi);return}u.rects={reference:El(L,gt(D),u.options.strategy==="fixed"),popper:Mn(D)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(O){return u.modifiersData[O.name]=Object.assign({},O.data)});for(var a=0,I=0;I<u.orderedModifiers.length;I++){if(process.env.NODE_ENV!=="production"&&(a+=1,a>100)){console.error($l);break}if(u.reset===!0){u.reset=!1,I=-1;continue}var m=u.orderedModifiers[I],T=m.fn,P=m.options,N=P===void 0?{}:P,$=m.name;typeof T=="function"&&(u=T({state:u,options:N,name:$,instance:g})||u)}}},update:xl(function(){return new Promise(function(y){g.forceUpdate(),y(u)})}),destroy:function(){S(),b=!0}};if(!gi(c,l))return process.env.NODE_ENV!=="production"&&console.error(mi),g;g.setOptions(f).then(function(y){!b&&f.onFirstUpdate&&f.onFirstUpdate(y)});function C(){u.orderedModifiers.forEach(function(y){var w=y.name,L=y.options,D=L===void 0?{}:L,a=y.effect;if(typeof a=="function"){var I=a({state:u,name:w,instance:g,options:D}),m=function(){};h.push(I||m)}})}function S(){h.forEach(function(y){return y()}),h=[]}return g}}var kl=[Jo,gl,Xo,ls,ml,cl,yl,Go,pl],Pl=Rl({defaultModifiers:kl}),Nl="tippy-box",_s="tippy-content",Bl="tippy-backdrop",gs="tippy-arrow",vs="tippy-svg-arrow",Ae={passive:!0,capture:!0},bs=function(){return document.body};function Ml(t,e){return{}.hasOwnProperty.call(t,e)}function dn(t,e,n){if(Array.isArray(t)){var i=t[e];return i??(Array.isArray(n)?n[e]:n)}return t}function Hn(t,e){var n={}.toString.call(t);return n.indexOf("[object")===0&&n.indexOf(e+"]")>-1}function ys(t,e){return typeof t=="function"?t.apply(void 0,e):t}function vi(t,e){if(e===0)return t;var n;return function(i){clearTimeout(n),n=setTimeout(function(){t(i)},e)}}function Fl(t,e){var n=Object.assign({},t);return e.forEach(function(i){delete n[i]}),n}function Vl(t){return t.split(/\s+/).filter(Boolean)}function je(t){return[].concat(t)}function bi(t,e){t.indexOf(e)===-1&&t.push(e)}function jl(t){return t.filter(function(e,n){return t.indexOf(e)===n})}function zl(t){return t.split("-")[0]}function zt(t){return[].slice.call(t)}function yi(t){return Object.keys(t).reduce(function(e,n){return t[n]!==void 0&&(e[n]=t[n]),e},{})}function at(){return document.createElement("div")}function ct(t){return["Element","Fragment"].some(function(e){return Hn(t,e)})}function Hl(t){return Hn(t,"NodeList")}function ql(t){return Hn(t,"MouseEvent")}function Kl(t){return!!(t&&t._tippy&&t._tippy.reference===t)}function Ul(t){return ct(t)?[t]:Hl(t)?zt(t):Array.isArray(t)?t:zt(document.querySelectorAll(t))}function cn(t,e){t.forEach(function(n){n&&(n.style.transitionDuration=e+"ms")})}function Si(t,e){t.forEach(function(n){n&&n.setAttribute("data-state",e)})}function Gl(t){var e,n=je(t),i=n[0];return i!=null&&(e=i.ownerDocument)!=null&&e.body?i.ownerDocument:document}function Wl(t,e){var n=e.clientX,i=e.clientY;return t.every(function(s){var r=s.popperRect,o=s.popperState,c=s.props,l=c.interactiveBorder,f=zl(o.placement),u=o.modifiersData.offset;if(!u)return!0;var h=f==="bottom"?u.top.y:0,b=f==="top"?u.bottom.y:0,g=f==="right"?u.left.x:0,C=f==="left"?u.right.x:0,S=r.top-i+h>l,y=i-r.bottom-b>l,w=r.left-n+g>l,L=n-r.right-C>l;return S||y||w||L})}function un(t,e,n){var i=e+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(s){t[i](s,n)})}function Ci(t,e){for(var n=e;n;){var i;if(t.contains(n))return!0;n=n.getRootNode==null||(i=n.getRootNode())==null?void 0:i.host}return!1}var ce={isTouch:!1},Ii=0;function Yl(){ce.isTouch||(ce.isTouch=!0,window.performance&&document.addEventListener("mousemove",Ss))}function Ss(){var t=performance.now();t-Ii<20&&(ce.isTouch=!1,document.removeEventListener("mousemove",Ss)),Ii=t}function Zl(){var t=document.activeElement;if(Kl(t)){var e=t._tippy;t.blur&&!e.state.isVisible&&t.blur()}}function Xl(){document.addEventListener("touchstart",Yl,Ae),window.addEventListener("blur",Zl)}var Ql=typeof window<"u"&&typeof document<"u",Jl=Ql?!!window.msCrypto:!1;function Ve(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 Ei(t){var e=/[ \t]{2,}/g,n=/^[ \t]*/gm;return t.replace(e," ").replace(n,"").trim()}function ed(t){return Ei(`
10
10
  %ctippy.js
11
11
 
12
- %c`+ki(t)+`
12
+ %c`+Ei(t)+`
13
13
 
14
14
  %c👷‍ This is a development-only message. It will be removed in production.
15
- `)}function Ls(t){return[Ld(t),"color: #00C584; font-size: 1.3em; font-weight: bold;","line-height: 1.5","color: #a6a095;"]}var ft;process.env.NODE_ENV!=="production"&&Ad();function Ad(){ft=new Set}function _e(t,e){if(t&&!ft.has(e)){var n;ft.add(e),(n=console).warn.apply(n,Ls(e))}}function En(t,e){if(t&&!ft.has(e)){var n;ft.add(e),(n=console).error.apply(n,Ls(e))}}function $d(t){var e=!t,n=Object.prototype.toString.call(t)==="[object Object]"&&!t.addEventListener;En(e,["tippy() was passed","`"+String(t)+"`","as its targets (first) argument. Valid types are: String, Element,","Element[], or NodeList."].join(" ")),En(n,["tippy() was passed a plain object which is not supported as an argument","for virtual positioning. Use props.getReferenceClientRect instead."].join(" "))}var As={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},Dd={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},Y=Object.assign({appendTo:Is,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},As,Dd),Rd=Object.keys(Y),kd=function(e){process.env.NODE_ENV!=="production"&&Ds(e,[]);var n=Object.keys(e);n.forEach(function(i){Y[i]=e[i]})};function $s(t){var e=t.plugins||[],n=e.reduce(function(i,a){var o=a.name,p=a.defaultValue;if(o){var c;i[o]=t[o]!==void 0?t[o]:(c=Y[o])!=null?c:p}return i},{});return Object.assign({},t,n)}function Pd(t,e){var n=e?Object.keys($s(Object.assign({},Y,{plugins:e}))):Rd,i=n.reduce(function(a,o){var p=(t.getAttribute("data-tippy-"+o)||"").trim();if(!p)return a;if(o==="content")a[o]=p;else try{a[o]=JSON.parse(p)}catch{a[o]=p}return a},{});return i}function Pi(t,e){var n=Object.assign({},e,{content:Os(e.content,[t])},e.ignoreAttributes?{}:Pd(t,e.plugins));return n.aria=Object.assign({},Y.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 Ds(t,e){t===void 0&&(t={}),e===void 0&&(e=[]);var n=Object.keys(t);n.forEach(function(i){var a=hd(Y,Object.keys(As)),o=!fd(a,i);o&&(o=e.filter(function(p){return p.name===i}).length===0),_e(o,["`"+i+"`","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.",`
15
+ `)}function Cs(t){return[ed(t),"color: #00C584; font-size: 1.3em; font-weight: bold;","line-height: 1.5","color: #a6a095;"]}var ut;process.env.NODE_ENV!=="production"&&td();function td(){ut=new Set}function _e(t,e){if(t&&!ut.has(e)){var n;ut.add(e),(n=console).warn.apply(n,Cs(e))}}function En(t,e){if(t&&!ut.has(e)){var n;ut.add(e),(n=console).error.apply(n,Cs(e))}}function nd(t){var e=!t,n=Object.prototype.toString.call(t)==="[object Object]"&&!t.addEventListener;En(e,["tippy() was passed","`"+String(t)+"`","as its targets (first) argument. Valid types are: String, Element,","Element[], or NodeList."].join(" ")),En(n,["tippy() was passed a plain object which is not supported as an argument","for virtual positioning. Use props.getReferenceClientRect instead."].join(" "))}var Is={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},id={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},Y=Object.assign({appendTo:bs,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},Is,id),sd=Object.keys(Y),ad=function(e){process.env.NODE_ENV!=="production"&&ws(e,[]);var n=Object.keys(e);n.forEach(function(i){Y[i]=e[i]})};function Es(t){var e=t.plugins||[],n=e.reduce(function(i,s){var r=s.name,o=s.defaultValue;if(r){var c;i[r]=t[r]!==void 0?t[r]:(c=Y[r])!=null?c:o}return i},{});return Object.assign({},t,n)}function rd(t,e){var n=e?Object.keys(Es(Object.assign({},Y,{plugins:e}))):sd,i=n.reduce(function(s,r){var o=(t.getAttribute("data-tippy-"+r)||"").trim();if(!o)return s;if(r==="content")s[r]=o;else try{s[r]=JSON.parse(o)}catch{s[r]=o}return s},{});return i}function wi(t,e){var n=Object.assign({},e,{content:ys(e.content,[t])},e.ignoreAttributes?{}:rd(t,e.plugins));return n.aria=Object.assign({},Y.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 ws(t,e){t===void 0&&(t={}),e===void 0&&(e=[]);var n=Object.keys(t);n.forEach(function(i){var s=Fl(Y,Object.keys(Is)),r=!Ml(s,i);r&&(r=e.filter(function(o){return o.name===i}).length===0),_e(r,["`"+i+"`","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 Nd=function(){return"innerHTML"};function In(t,e){t[Nd()]=e}function Ni(t){var e=ot();return t===!0?e.className=ws:(e.className=Es,pt(t)?e.appendChild(t):In(e,t)),e}function Bi(t,e){pt(e.content)?(In(t,""),t.appendChild(e.content)):typeof e.content!="function"&&(e.allowHTML?In(t,e.content):t.textContent=e.content)}function On(t){var e=t.firstElementChild,n=Gt(e.children);return{box:e,content:n.find(function(i){return i.classList.contains(xs)}),arrow:n.find(function(i){return i.classList.contains(ws)||i.classList.contains(Es)}),backdrop:n.find(function(i){return i.classList.contains(pd)})}}function Rs(t){var e=ot(),n=ot();n.className=ud,n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var i=ot();i.className=xs,i.setAttribute("data-state","hidden"),Bi(i,t.props),e.appendChild(n),n.appendChild(i),a(t.props,t.props);function a(o,p){var c=On(e),s=c.box,u=c.content,d=c.arrow;p.theme?s.setAttribute("data-theme",p.theme):s.removeAttribute("data-theme"),typeof p.animation=="string"?s.setAttribute("data-animation",p.animation):s.removeAttribute("data-animation"),p.inertia?s.setAttribute("data-inertia",""):s.removeAttribute("data-inertia"),s.style.maxWidth=typeof p.maxWidth=="number"?p.maxWidth+"px":p.maxWidth,p.role?s.setAttribute("role",p.role):s.removeAttribute("role"),(o.content!==p.content||o.allowHTML!==p.allowHTML)&&Bi(u,t.props),p.arrow?d?o.arrow!==p.arrow&&(s.removeChild(d),s.appendChild(Ni(p.arrow))):s.appendChild(Ni(p.arrow)):d&&s.removeChild(d)}return{popper:e,onUpdate:a}}Rs.$$tippy=!0;var Bd=1,Nt=[],mn=[];function Md(t,e){var n=Pi(t,Object.assign({},Y,$s(Ai(e)))),i,a,o,p=!1,c=!1,s=!1,u=!1,d,l,f,h=[],v=Ti(wt,n.interactiveDebounce),S,C=Bd++,O=null,R=_d(n.plugins),k={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},r={id:C,reference:t,popper:ot(),popperInstance:O,props:n,state:k,plugins:R,clearDelayTimeouts:Lt,setProps:At,setContent:$t,show:ha,hide:ma,hideWithInteractivity:_a,enable:it,disable:Tt,unmount:ga,destroy:va};if(!n.render)return process.env.NODE_ENV!=="production"&&En(!0,"render() function has not been supplied."),r;var b=n.render(r),g=b.popper,w=b.onUpdate;g.setAttribute("data-tippy-root",""),g.id="tippy-"+r.id,r.popper=g,t._tippy=r,g._tippy=r;var I=R.map(function(m){return m.fn(r)}),L=t.hasAttribute("aria-expanded");return Fe(),le(),G(),z("onCreate",[r]),n.showOnCreate&&nt(),g.addEventListener("mouseenter",function(){r.props.interactive&&r.state.isVisible&&r.clearDelayTimeouts()}),g.addEventListener("mouseleave",function(){r.props.interactive&&r.props.trigger.indexOf("mouseenter")>=0&&N().addEventListener("mousemove",v)}),r;function A(){var m=r.props.touch;return Array.isArray(m)?m:[m,0]}function E(){return A()[0]==="hold"}function T(){var m;return!!((m=r.props.render)!=null&&m.$$tippy)}function $(){return S||t}function N(){var m=$().parentNode;return m?Cd(m):document}function j(){return On(g)}function B(m){return r.state.isMounted&&!r.state.isVisible||ce.isTouch||d&&d.type==="focus"?0:pn(r.props.delay,m?0:1,Y.delay)}function G(m){m===void 0&&(m=!1),g.style.pointerEvents=r.props.interactive&&!m?"":"none",g.style.zIndex=""+r.props.zIndex}function z(m,y,x){if(x===void 0&&(x=!0),I.forEach(function(D){D[m]&&D[m].apply(D,y)}),x){var P;(P=r.props)[m].apply(P,y)}}function oe(){var m=r.props.aria;if(m.content){var y="aria-"+m.content,x=g.id,P=He(r.props.triggerTarget||t);P.forEach(function(D){var K=D.getAttribute(y);if(r.state.isVisible)D.setAttribute(y,K?K+" "+x:x);else{var J=K&&K.replace(x,"").trim();J?D.setAttribute(y,J):D.removeAttribute(y)}})}}function le(){if(!(L||!r.props.aria.expanded)){var m=He(r.props.triggerTarget||t);m.forEach(function(y){r.props.interactive?y.setAttribute("aria-expanded",r.state.isVisible&&y===$()?"true":"false"):y.removeAttribute("aria-expanded")})}}function Ee(){N().removeEventListener("mousemove",v),Nt=Nt.filter(function(m){return m!==v})}function de(m){if(!(ce.isTouch&&(s||m.type==="mousedown"))){var y=m.composedPath&&m.composedPath()[0]||m.target;if(!(r.props.interactive&&Di(g,y))){if(He(r.props.triggerTarget||t).some(function(x){return Di(x,y)})){if(ce.isTouch||r.state.isVisible&&r.props.trigger.indexOf("click")>=0)return}else z("onClickOutside",[r,m]);r.props.hideOnClick===!0&&(r.clearDelayTimeouts(),r.hide(),c=!0,setTimeout(function(){c=!1}),r.state.isMounted||fe())}}}function Ie(){s=!0}function pe(){s=!1}function ie(){var m=N();m.addEventListener("mousedown",de,!0),m.addEventListener("touchend",de,Ae),m.addEventListener("touchstart",pe,Ae),m.addEventListener("touchmove",Ie,Ae)}function fe(){var m=N();m.removeEventListener("mousedown",de,!0),m.removeEventListener("touchend",de,Ae),m.removeEventListener("touchstart",pe,Ae),m.removeEventListener("touchmove",Ie,Ae)}function Be(m,y){Me(m,function(){!r.state.isVisible&&g.parentNode&&g.parentNode.contains(g)&&y()})}function he(m,y){Me(m,y)}function Me(m,y){var x=j().box;function P(D){D.target===x&&(hn(x,"remove",P),y())}if(m===0)return y();hn(x,"remove",l),hn(x,"add",P),l=P}function ve(m,y,x){x===void 0&&(x=!1);var P=He(r.props.triggerTarget||t);P.forEach(function(D){D.addEventListener(m,y,x),h.push({node:D,eventType:m,handler:y,options:x})})}function Fe(){E()&&(ve("touchstart",Je,{passive:!0}),ve("touchend",Et,{passive:!0})),md(r.props.trigger).forEach(function(m){if(m!=="manual")switch(ve(m,Je),m){case"mouseenter":ve("mouseleave",Et);break;case"focus":ve(Td?"focusout":"blur",et);break;case"focusin":ve("focusout",et);break}})}function xt(){h.forEach(function(m){var y=m.node,x=m.eventType,P=m.handler,D=m.options;y.removeEventListener(x,P,D)}),h=[]}function Je(m){var y,x=!1;if(!(!r.state.isEnabled||tt(m)||c)){var P=((y=d)==null?void 0:y.type)==="focus";d=m,S=m.currentTarget,le(),!r.state.isVisible&&bd(m)&&Nt.forEach(function(D){return D(m)}),m.type==="click"&&(r.props.trigger.indexOf("mouseenter")<0||p)&&r.props.hideOnClick!==!1&&r.state.isVisible?x=!0:nt(m),m.type==="click"&&(p=!x),x&&!P&&Oe(m)}}function wt(m){var y=m.target,x=$().contains(y)||g.contains(y);if(!(m.type==="mousemove"&&x)){var P=be().concat(g).map(function(D){var K,J=D._tippy,Ve=(K=J.popperInstance)==null?void 0:K.state;return Ve?{popperRect:D.getBoundingClientRect(),popperState:Ve,props:n}:null}).filter(Boolean);xd(P,m)&&(Ee(),Oe(m))}}function Et(m){var y=tt(m)||r.props.trigger.indexOf("click")>=0&&p;if(!y){if(r.props.interactive){r.hideWithInteractivity(m);return}Oe(m)}}function et(m){r.props.trigger.indexOf("focusin")<0&&m.target!==$()||r.props.interactive&&m.relatedTarget&&g.contains(m.relatedTarget)||Oe(m)}function tt(m){return ce.isTouch?E()!==m.type.indexOf("touch")>=0:!1}function It(){Ot();var m=r.props,y=m.popperOptions,x=m.placement,P=m.offset,D=m.getReferenceClientRect,K=m.moveTransition,J=T()?On(g).arrow:null,Ve=D?{getBoundingClientRect:D,contextElement:D.contextElement||$()}:t,li={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(Dt){var je=Dt.state;if(T()){var ba=j(),dn=ba.box;["placement","reference-hidden","escaped"].forEach(function(Rt){Rt==="placement"?dn.setAttribute("data-placement",je.placement):je.attributes.popper["data-popper-"+Rt]?dn.setAttribute("data-"+Rt,""):dn.removeAttribute("data-"+Rt)}),je.attributes.popper={}}}},Te=[{name:"offset",options:{offset:P}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!K}},li];T()&&J&&Te.push({name:"arrow",options:{element:J,padding:3}}),Te.push.apply(Te,(y==null?void 0:y.modifiers)||[]),r.popperInstance=cd(Ve,g,Object.assign({},y,{placement:x,onFirstUpdate:f,modifiers:Te}))}function Ot(){r.popperInstance&&(r.popperInstance.destroy(),r.popperInstance=null)}function me(){var m=r.props.appendTo,y,x=$();r.props.interactive&&m===Is||m==="parent"?y=x.parentNode:y=Os(m,[x]),y.contains(g)||y.appendChild(g),r.state.isMounted=!0,It(),process.env.NODE_ENV!=="production"&&_e(r.props.interactive&&m===Y.appendTo&&x.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.",`
18
+ `,"Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "))})}var od=function(){return"innerHTML"};function wn(t,e){t[od()]=e}function Oi(t){var e=at();return t===!0?e.className=gs:(e.className=vs,ct(t)?e.appendChild(t):wn(e,t)),e}function xi(t,e){ct(e.content)?(wn(t,""),t.appendChild(e.content)):typeof e.content!="function"&&(e.allowHTML?wn(t,e.content):t.textContent=e.content)}function On(t){var e=t.firstElementChild,n=zt(e.children);return{box:e,content:n.find(function(i){return i.classList.contains(_s)}),arrow:n.find(function(i){return i.classList.contains(gs)||i.classList.contains(vs)}),backdrop:n.find(function(i){return i.classList.contains(Bl)})}}function Os(t){var e=at(),n=at();n.className=Nl,n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var i=at();i.className=_s,i.setAttribute("data-state","hidden"),xi(i,t.props),e.appendChild(n),n.appendChild(i),s(t.props,t.props);function s(r,o){var c=On(e),l=c.box,f=c.content,u=c.arrow;o.theme?l.setAttribute("data-theme",o.theme):l.removeAttribute("data-theme"),typeof o.animation=="string"?l.setAttribute("data-animation",o.animation):l.removeAttribute("data-animation"),o.inertia?l.setAttribute("data-inertia",""):l.removeAttribute("data-inertia"),l.style.maxWidth=typeof o.maxWidth=="number"?o.maxWidth+"px":o.maxWidth,o.role?l.setAttribute("role",o.role):l.removeAttribute("role"),(r.content!==o.content||r.allowHTML!==o.allowHTML)&&xi(f,t.props),o.arrow?u?r.arrow!==o.arrow&&(l.removeChild(u),l.appendChild(Oi(o.arrow))):l.appendChild(Oi(o.arrow)):u&&l.removeChild(u)}return{popper:e,onUpdate:s}}Os.$$tippy=!0;var ld=1,kt=[],pn=[];function dd(t,e){var n=wi(t,Object.assign({},Y,Es(yi(e)))),i,s,r,o=!1,c=!1,l=!1,f=!1,u,h,b,g=[],C=vi(Ct,n.interactiveDebounce),S,y=ld++,w=null,L=jl(n.plugins),D={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},a={id:y,reference:t,popper:at(),popperInstance:w,props:n,state:D,plugins:L,clearDelayTimeouts:xt,setProps:Tt,setContent:Lt,show:oa,hide:la,hideWithInteractivity:da,enable:tt,disable:Ot,unmount:ca,destroy:ua};if(!n.render)return process.env.NODE_ENV!=="production"&&En(!0,"render() function has not been supplied."),a;var I=n.render(a),m=I.popper,T=I.onUpdate;m.setAttribute("data-tippy-root",""),m.id="tippy-"+a.id,a.popper=m,t._tippy=a,m._tippy=a;var P=L.map(function(d){return d.fn(a)}),N=t.hasAttribute("aria-expanded");return Be(),le(),H(),F("onCreate",[a]),n.showOnCreate&&et(),m.addEventListener("mouseenter",function(){a.props.interactive&&a.state.isVisible&&a.clearDelayTimeouts()}),m.addEventListener("mouseleave",function(){a.props.interactive&&a.props.trigger.indexOf("mouseenter")>=0&&G().addEventListener("mousemove",C)}),a;function $(){var d=a.props.touch;return Array.isArray(d)?d:[d,0]}function O(){return $()[0]==="hold"}function A(){var d;return!!((d=a.props.render)!=null&&d.$$tippy)}function R(){return S||t}function G(){var d=R().parentNode;return d?Gl(d):document}function W(){return On(m)}function z(d){return a.state.isMounted&&!a.state.isVisible||ce.isTouch||u&&u.type==="focus"?0:dn(a.props.delay,d?0:1,Y.delay)}function H(d){d===void 0&&(d=!1),m.style.pointerEvents=a.props.interactive&&!d?"":"none",m.style.zIndex=""+a.props.zIndex}function F(d,_,v){if(v===void 0&&(v=!0),P.forEach(function(E){E[d]&&E[d].apply(E,_)}),v){var x;(x=a.props)[d].apply(x,_)}}function oe(){var d=a.props.aria;if(d.content){var _="aria-"+d.content,v=m.id,x=je(a.props.triggerTarget||t);x.forEach(function(E){var q=E.getAttribute(_);if(a.state.isVisible)E.setAttribute(_,q?q+" "+v:v);else{var J=q&&q.replace(v,"").trim();J?E.setAttribute(_,J):E.removeAttribute(_)}})}}function le(){if(!(N||!a.props.aria.expanded)){var d=je(a.props.triggerTarget||t);d.forEach(function(_){a.props.interactive?_.setAttribute("aria-expanded",a.state.isVisible&&_===R()?"true":"false"):_.removeAttribute("aria-expanded")})}}function we(){G().removeEventListener("mousemove",C),kt=kt.filter(function(d){return d!==C})}function de(d){if(!(ce.isTouch&&(l||d.type==="mousedown"))){var _=d.composedPath&&d.composedPath()[0]||d.target;if(!(a.props.interactive&&Ci(m,_))){if(je(a.props.triggerTarget||t).some(function(v){return Ci(v,_)})){if(ce.isTouch||a.state.isVisible&&a.props.trigger.indexOf("click")>=0)return}else F("onClickOutside",[a,d]);a.props.hideOnClick===!0&&(a.clearDelayTimeouts(),a.hide(),c=!0,setTimeout(function(){c=!1}),a.state.isMounted||fe())}}}function Oe(){l=!0}function pe(){l=!1}function ie(){var d=G();d.addEventListener("mousedown",de,!0),d.addEventListener("touchend",de,Ae),d.addEventListener("touchstart",pe,Ae),d.addEventListener("touchmove",Oe,Ae)}function fe(){var d=G();d.removeEventListener("mousedown",de,!0),d.removeEventListener("touchend",de,Ae),d.removeEventListener("touchstart",pe,Ae),d.removeEventListener("touchmove",Oe,Ae)}function Pe(d,_){Ne(d,function(){!a.state.isVisible&&m.parentNode&&m.parentNode.contains(m)&&_()})}function he(d,_){Ne(d,_)}function Ne(d,_){var v=W().box;function x(E){E.target===v&&(un(v,"remove",x),_())}if(d===0)return _();un(v,"remove",h),un(v,"add",x),h=x}function ve(d,_,v){v===void 0&&(v=!1);var x=je(a.props.triggerTarget||t);x.forEach(function(E){E.addEventListener(d,_,v),g.push({node:E,eventType:d,handler:_,options:v})})}function Be(){O()&&(ve("touchstart",Xe,{passive:!0}),ve("touchend",It,{passive:!0})),Vl(a.props.trigger).forEach(function(d){if(d!=="manual")switch(ve(d,Xe),d){case"mouseenter":ve("mouseleave",It);break;case"focus":ve(Jl?"focusout":"blur",Qe);break;case"focusin":ve("focusout",Qe);break}})}function St(){g.forEach(function(d){var _=d.node,v=d.eventType,x=d.handler,E=d.options;_.removeEventListener(v,x,E)}),g=[]}function Xe(d){var _,v=!1;if(!(!a.state.isEnabled||Je(d)||c)){var x=((_=u)==null?void 0:_.type)==="focus";u=d,S=d.currentTarget,le(),!a.state.isVisible&&ql(d)&&kt.forEach(function(E){return E(d)}),d.type==="click"&&(a.props.trigger.indexOf("mouseenter")<0||o)&&a.props.hideOnClick!==!1&&a.state.isVisible?v=!0:et(d),d.type==="click"&&(o=!v),v&&!x&&xe(d)}}function Ct(d){var _=d.target,v=R().contains(_)||m.contains(_);if(!(d.type==="mousemove"&&v)){var x=be().concat(m).map(function(E){var q,J=E._tippy,Me=(q=J.popperInstance)==null?void 0:q.state;return Me?{popperRect:E.getBoundingClientRect(),popperState:Me,props:n}:null}).filter(Boolean);Wl(x,d)&&(we(),xe(d))}}function It(d){var _=Je(d)||a.props.trigger.indexOf("click")>=0&&o;if(!_){if(a.props.interactive){a.hideWithInteractivity(d);return}xe(d)}}function Qe(d){a.props.trigger.indexOf("focusin")<0&&d.target!==R()||a.props.interactive&&d.relatedTarget&&m.contains(d.relatedTarget)||xe(d)}function Je(d){return ce.isTouch?O()!==d.type.indexOf("touch")>=0:!1}function Et(){wt();var d=a.props,_=d.popperOptions,v=d.placement,x=d.offset,E=d.getReferenceClientRect,q=d.moveTransition,J=A()?On(m).arrow:null,Me=E?{getBoundingClientRect:E,contextElement:E.contextElement||R()}:t,ti={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(At){var Fe=At.state;if(A()){var pa=W(),rn=pa.box;["placement","reference-hidden","escaped"].forEach(function(Dt){Dt==="placement"?rn.setAttribute("data-placement",Fe.placement):Fe.attributes.popper["data-popper-"+Dt]?rn.setAttribute("data-"+Dt,""):rn.removeAttribute("data-"+Dt)}),Fe.attributes.popper={}}}},Te=[{name:"offset",options:{offset:x}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!q}},ti];A()&&J&&Te.push({name:"arrow",options:{element:J,padding:3}}),Te.push.apply(Te,(_==null?void 0:_.modifiers)||[]),a.popperInstance=Pl(Me,m,Object.assign({},_,{placement:v,onFirstUpdate:b,modifiers:Te}))}function wt(){a.popperInstance&&(a.popperInstance.destroy(),a.popperInstance=null)}function me(){var d=a.props.appendTo,_,v=R();a.props.interactive&&d===bs||d==="parent"?_=v.parentNode:_=ys(d,[v]),_.contains(m)||_.appendChild(m),a.state.isMounted=!0,Et(),process.env.NODE_ENV!=="production"&&_e(a.props.interactive&&d===Y.appendTo&&v.nextElementSibling!==m,["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 be(){return Gt(g.querySelectorAll("[data-tippy-root]"))}function nt(m){r.clearDelayTimeouts(),m&&z("onTrigger",[r,m]),ie();var y=B(!0),x=A(),P=x[0],D=x[1];ce.isTouch&&P==="hold"&&D&&(y=D),y?i=setTimeout(function(){r.show()},y):r.show()}function Oe(m){if(r.clearDelayTimeouts(),z("onUntrigger",[r,m]),!r.state.isVisible){fe();return}if(!(r.props.trigger.indexOf("mouseenter")>=0&&r.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(m.type)>=0&&p)){var y=B(!1);y?a=setTimeout(function(){r.state.isVisible&&r.hide()},y):o=requestAnimationFrame(function(){r.hide()})}}function it(){r.state.isEnabled=!0}function Tt(){r.hide(),r.state.isEnabled=!1}function Lt(){clearTimeout(i),clearTimeout(a),cancelAnimationFrame(o)}function At(m){if(process.env.NODE_ENV!=="production"&&_e(r.state.isDestroyed,ze("setProps")),!r.state.isDestroyed){z("onBeforeUpdate",[r,m]),xt();var y=r.props,x=Pi(t,Object.assign({},y,Ai(m),{ignoreAttributes:!0}));r.props=x,Fe(),y.interactiveDebounce!==x.interactiveDebounce&&(Ee(),v=Ti(wt,x.interactiveDebounce)),y.triggerTarget&&!x.triggerTarget?He(y.triggerTarget).forEach(function(P){P.removeAttribute("aria-expanded")}):x.triggerTarget&&t.removeAttribute("aria-expanded"),le(),G(),w&&w(y,x),r.popperInstance&&(It(),be().forEach(function(P){requestAnimationFrame(P._tippy.popperInstance.forceUpdate)})),z("onAfterUpdate",[r,m])}}function $t(m){r.setProps({content:m})}function ha(){process.env.NODE_ENV!=="production"&&_e(r.state.isDestroyed,ze("show"));var m=r.state.isVisible,y=r.state.isDestroyed,x=!r.state.isEnabled,P=ce.isTouch&&!r.props.touch,D=pn(r.props.duration,0,Y.duration);if(!(m||y||x||P)&&!$().hasAttribute("disabled")&&(z("onShow",[r],!1),r.props.onShow(r)!==!1)){if(r.state.isVisible=!0,T()&&(g.style.visibility="visible"),G(),ie(),r.state.isMounted||(g.style.transition="none"),T()){var K=j(),J=K.box,Ve=K.content;fn([J,Ve],0)}f=function(){var Te;if(!(!r.state.isVisible||u)){if(u=!0,g.offsetHeight,g.style.transition=r.props.moveTransition,T()&&r.props.animation){var ln=j(),Dt=ln.box,je=ln.content;fn([Dt,je],D),$i([Dt,je],"visible")}oe(),le(),Li(mn,r),(Te=r.popperInstance)==null||Te.forceUpdate(),z("onMount",[r]),r.props.animation&&T()&&he(D,function(){r.state.isShown=!0,z("onShown",[r])})}},me()}}function ma(){process.env.NODE_ENV!=="production"&&_e(r.state.isDestroyed,ze("hide"));var m=!r.state.isVisible,y=r.state.isDestroyed,x=!r.state.isEnabled,P=pn(r.props.duration,1,Y.duration);if(!(m||y||x)&&(z("onHide",[r],!1),r.props.onHide(r)!==!1)){if(r.state.isVisible=!1,r.state.isShown=!1,u=!1,p=!1,T()&&(g.style.visibility="hidden"),Ee(),fe(),G(!0),T()){var D=j(),K=D.box,J=D.content;r.props.animation&&(fn([K,J],P),$i([K,J],"hidden"))}oe(),le(),r.props.animation?T()&&Be(P,r.unmount):r.unmount()}}function _a(m){process.env.NODE_ENV!=="production"&&_e(r.state.isDestroyed,ze("hideWithInteractivity")),N().addEventListener("mousemove",v),Li(Nt,v),v(m)}function ga(){process.env.NODE_ENV!=="production"&&_e(r.state.isDestroyed,ze("unmount")),r.state.isVisible&&r.hide(),r.state.isMounted&&(Ot(),be().forEach(function(m){m._tippy.unmount()}),g.parentNode&&g.parentNode.removeChild(g),mn=mn.filter(function(m){return m!==r}),r.state.isMounted=!1,z("onHidden",[r]))}function va(){process.env.NODE_ENV!=="production"&&_e(r.state.isDestroyed,ze("destroy")),!r.state.isDestroyed&&(r.clearDelayTimeouts(),r.unmount(),xt(),delete t._tippy,r.state.isDestroyed=!0,z("onDestroy",[r]))}}function yt(t,e){e===void 0&&(e={});var n=Y.plugins.concat(e.plugins||[]);process.env.NODE_ENV!=="production"&&($d(t),Ds(e,n)),Id();var i=Object.assign({},e,{plugins:n}),a=Sd(t);if(process.env.NODE_ENV!=="production"){var o=pt(i.content),p=a.length>1;_e(o&&p,["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.",`
24
+ `,"See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" "))}function be(){return zt(m.querySelectorAll("[data-tippy-root]"))}function et(d){a.clearDelayTimeouts(),d&&F("onTrigger",[a,d]),ie();var _=z(!0),v=$(),x=v[0],E=v[1];ce.isTouch&&x==="hold"&&E&&(_=E),_?i=setTimeout(function(){a.show()},_):a.show()}function xe(d){if(a.clearDelayTimeouts(),F("onUntrigger",[a,d]),!a.state.isVisible){fe();return}if(!(a.props.trigger.indexOf("mouseenter")>=0&&a.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(d.type)>=0&&o)){var _=z(!1);_?s=setTimeout(function(){a.state.isVisible&&a.hide()},_):r=requestAnimationFrame(function(){a.hide()})}}function tt(){a.state.isEnabled=!0}function Ot(){a.hide(),a.state.isEnabled=!1}function xt(){clearTimeout(i),clearTimeout(s),cancelAnimationFrame(r)}function Tt(d){if(process.env.NODE_ENV!=="production"&&_e(a.state.isDestroyed,Ve("setProps")),!a.state.isDestroyed){F("onBeforeUpdate",[a,d]),St();var _=a.props,v=wi(t,Object.assign({},_,yi(d),{ignoreAttributes:!0}));a.props=v,Be(),_.interactiveDebounce!==v.interactiveDebounce&&(we(),C=vi(Ct,v.interactiveDebounce)),_.triggerTarget&&!v.triggerTarget?je(_.triggerTarget).forEach(function(x){x.removeAttribute("aria-expanded")}):v.triggerTarget&&t.removeAttribute("aria-expanded"),le(),H(),T&&T(_,v),a.popperInstance&&(Et(),be().forEach(function(x){requestAnimationFrame(x._tippy.popperInstance.forceUpdate)})),F("onAfterUpdate",[a,d])}}function Lt(d){a.setProps({content:d})}function oa(){process.env.NODE_ENV!=="production"&&_e(a.state.isDestroyed,Ve("show"));var d=a.state.isVisible,_=a.state.isDestroyed,v=!a.state.isEnabled,x=ce.isTouch&&!a.props.touch,E=dn(a.props.duration,0,Y.duration);if(!(d||_||v||x)&&!R().hasAttribute("disabled")&&(F("onShow",[a],!1),a.props.onShow(a)!==!1)){if(a.state.isVisible=!0,A()&&(m.style.visibility="visible"),H(),ie(),a.state.isMounted||(m.style.transition="none"),A()){var q=W(),J=q.box,Me=q.content;cn([J,Me],0)}b=function(){var Te;if(!(!a.state.isVisible||f)){if(f=!0,m.offsetHeight,m.style.transition=a.props.moveTransition,A()&&a.props.animation){var an=W(),At=an.box,Fe=an.content;cn([At,Fe],E),Si([At,Fe],"visible")}oe(),le(),bi(pn,a),(Te=a.popperInstance)==null||Te.forceUpdate(),F("onMount",[a]),a.props.animation&&A()&&he(E,function(){a.state.isShown=!0,F("onShown",[a])})}},me()}}function la(){process.env.NODE_ENV!=="production"&&_e(a.state.isDestroyed,Ve("hide"));var d=!a.state.isVisible,_=a.state.isDestroyed,v=!a.state.isEnabled,x=dn(a.props.duration,1,Y.duration);if(!(d||_||v)&&(F("onHide",[a],!1),a.props.onHide(a)!==!1)){if(a.state.isVisible=!1,a.state.isShown=!1,f=!1,o=!1,A()&&(m.style.visibility="hidden"),we(),fe(),H(!0),A()){var E=W(),q=E.box,J=E.content;a.props.animation&&(cn([q,J],x),Si([q,J],"hidden"))}oe(),le(),a.props.animation?A()&&Pe(x,a.unmount):a.unmount()}}function da(d){process.env.NODE_ENV!=="production"&&_e(a.state.isDestroyed,Ve("hideWithInteractivity")),G().addEventListener("mousemove",C),bi(kt,C),C(d)}function ca(){process.env.NODE_ENV!=="production"&&_e(a.state.isDestroyed,Ve("unmount")),a.state.isVisible&&a.hide(),a.state.isMounted&&(wt(),be().forEach(function(d){d._tippy.unmount()}),m.parentNode&&m.parentNode.removeChild(m),pn=pn.filter(function(d){return d!==a}),a.state.isMounted=!1,F("onHidden",[a]))}function ua(){process.env.NODE_ENV!=="production"&&_e(a.state.isDestroyed,Ve("destroy")),!a.state.isDestroyed&&(a.clearDelayTimeouts(),a.unmount(),St(),delete t._tippy,a.state.isDestroyed=!0,F("onDestroy",[a]))}}function vt(t,e){e===void 0&&(e={});var n=Y.plugins.concat(e.plugins||[]);process.env.NODE_ENV!=="production"&&(nd(t),ws(e,n)),Xl();var i=Object.assign({},e,{plugins:n}),s=Ul(t);if(process.env.NODE_ENV!=="production"){var r=ct(i.content),o=s.length>1;_e(r&&o,["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 c=a.reduce(function(s,u){var d=u&&Md(u,i);return d&&s.push(d),s},[]);return pt(t)?c[0]:c}yt.defaultProps=Y;yt.setDefaultProps=kd;yt.currentInput=ce;Object.assign({},ms,{effect:function(e){var n=e.state,i={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(n.elements.popper.style,i.popper),n.styles=i,n.elements.arrow&&Object.assign(n.elements.arrow.style,i.arrow)}});var Fd={name:"sticky",defaultValue:!1,fn:function(e){var n=e.reference,i=e.popper;function a(){return e.popperInstance?e.popperInstance.state.elements.reference:n}function o(u){return e.props.sticky===!0||e.props.sticky===u}var p=null,c=null;function s(){var u=o("reference")?a().getBoundingClientRect():null,d=o("popper")?i.getBoundingClientRect():null;(u&&Mi(p,u)||d&&Mi(c,d))&&e.popperInstance&&e.popperInstance.update(),p=u,c=d,e.state.isMounted&&requestAnimationFrame(s)}return{onMount:function(){e.props.sticky&&s()}}}};function Mi(t,e){return t&&e?t.top!==e.top||t.right!==e.right||t.bottom!==e.bottom||t.left!==e.left:!0}yt.setDefaultProps({render:Rs});const Vd=t=>({name:"arrowDetected",enabled:!0,phase:"main",fn:t,requiresIfExists:["offset"]}),jd=["bottom","bottom-start","bottom-end","right","right-start","right-end","left","left-start","left-end","top","top-start","top-end"],ks=[!0,!1,"reference","popper"],Ps=(t,e)=>{const{contentElement:n}={...e};return delete e.contentElement,yt(t,{...e,plugins:[Fd],render:()=>Hd(n)})},Ns=({boundary:t="clippingParents",fallbackPlacements:e=[],onChangePlacement:n=()=>{},hasHideModifierEnabled:i=!1,tether:a=!0}={})=>({modifiers:[{name:"flip",options:{fallbackPlacements:e,boundary:t}},{name:"hide",enabled:i},{name:"preventOverflow",options:{altAxis:!a,tether:a}},Vd(({state:o})=>{n(o.placement)})]}),zd=t=>{const e=document.createElement("span");return e.innerText=t.innerText||"",t.innerText="",t.appendChild(e),e},Fi=t=>{const e=t==null?void 0:t.children[0];return e||zd(t)},Hd=t=>{const e=document.createElement("div");return e.className="tippy-box d-ps-absolute",e.appendChild(t),{popper:e}},Tn={none:void 0,small:"d-p4",medium:"d-p8",large:"d-p16"},Bs={none:void 0,small:"d-pl4",medium:"d-pl8",large:"d-pl16"},Ms=["dialog","menu","listbox","tree","grid"],Xn=["","anchor"],Fs=["none","dialog","first"],Zt=["parent","body"],qd=[...ks];let Gd="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Kd=(t=21)=>{let e="",n=t;for(;n--;)e+=Gd[Math.random()*64|0];return e};function jt(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?jt=function(e){return typeof e}:jt=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},jt(t)}var Vs={selector:"vue-portal-target-".concat(Kd())},Ud=function(e){return Vs.selector=e},_n=typeof window<"u"&&(typeof document>"u"?"undefined":jt(document))!==void 0,Wd=X.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)}}),Qn=X.extend({name:"VueSimplePortal",props:{disabled:{type:Boolean},prepend:{type:Boolean},selector:{type:String,default:function(){return"#".concat(Vs.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(_n)return document.querySelector(this.selector)},insertTargetEl:function(){if(_n){var e=document.querySelector("body"),n=document.createElement(this.tag);n.id=this.selector.substring(1),e.appendChild(n)}},mount:function(){if(_n){var e=this.getTargetEl(),n=document.createElement("DIV");this.prepend&&e.firstChild?e.insertBefore(n,e.firstChild):e.appendChild(n),this.container=new Wd({el:n,parent:this,propsData:{tag:this.tag,nodes:this.$scopedSlots.default}})}},unmount:function(){this.container&&(this.container.$destroy(),delete this.container)}}});function Yd(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};t.component(e.name||"portal",Qn),e.defaultSelector&&Ud(e.defaultSelector)}typeof window<"u"&&window.Vue&&window.Vue===X&&X.use(Yd);const Zd={name:"PopoverHeaderFooter",components:{DtButton:q,DtIcon:M},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 Xd=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(i){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)},Qd=[],Jd=_.normalizeComponent(Zd,Xd,Qd,!1,null,null,null,null);const ec=Jd.exports;const tc={name:"DtPopover",components:{SrOnlyCloseButton:Ut,DtLazyShow:Qe,PopoverHeaderFooter:ec,Portal:Qn},mixins:[_t,ge],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=>Ms.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(Tn).some(e=>e===t)},contentClass:{type:[String,Array,Object],default:""},contentWidth:{type:String,default:"",validator:t=>Xn.includes(t)},contentTabindex:{type:Number||null,default:-1},externalAnchor:{type:String,default:""},id:{type:String,default(){return V()}},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=>qd.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=>Fs.includes(t)||t instanceof HTMLElement||t.startsWith("#")},openWithArrowKeys:{type:Boolean,default:!1},appendTo:{type:[HTMLElement,String],default:"body",validator:t=>Zt.includes(t)||t instanceof HTMLElement}},emits:["opened","update:open"],data(){return{POPOVER_PADDING_CLASSES:Tn,POPOVER_HEADER_FOOTER_PADDING_CLASSES:Bs,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(--space-300))":this.maxHeight},labelledBy(){return this.ariaLabelledby||!this.ariaLabel&&V("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 i;const e=(i=t==null?void 0:t[0])==null?void 0:i.target;if(!e)return;const n=Zi(e);this.isOutsideViewport=n.bottom||n.top},popperOptions(){return Ns({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,i;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():(i=this.$refs.content)==null||i.$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,i;this._getFocusableElements(t,!0).length!==0?this.focusFirstElement(t):this.showCloseButton?(n=this.$refs.popover__header)==null||n.focusCloseButton():(i=this.$refs.content)==null||i.$el.focus()},initTippyInstance(){var t,e;this.tip=Ps(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 nc=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(i){i.preventDefault(),i.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(i){return e.defaultToggleOpen.apply(null,arguments)},contextmenu:e.onContext,keydown:[function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"up",38,i.key,["Up","ArrowUp"])?null:(i.preventDefault(),e.onArrowKeyPress.apply(null,arguments))},function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"down",40,i.key,["Down","ArrowDown"])?null:(i.preventDefault(),e.onArrowKeyPress.apply(null,arguments))}],"!keydown":function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"escape",void 0,i.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)},ic=[],sc=_.normalizeComponent(tc,nc,ic,!1,null,null,null,null);const Xt=sc.exports,lt={none:void 0,small:"d-py0",large:"d-py4"};const ac={name:"DtDropdown",components:{DtPopover:Xt,SrOnlyCloseButton:Ut},mixins:[Hn({indexKey:"highlightIndex",idKey:"highlightId",listElementKey:"getListElement",listItemRole:"menuitem",afterHighlightMethod:"afterHighlight",beginningOfListMethod:"beginningOfListMethod",endOfListMethod:"endOfListMethod",activeItemKey:"activeItemEl",focusOnKeyboardNavigation:!0}),ge],props:{open:{type:Boolean,default:null},openOnContext:{type:Boolean,default:!1},padding:{type:String,default:"small",validator:t=>Object.keys(lt).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 V()}},navigationType:{type:String,default:$e.ARROW_KEYS,validator:t=>Object.values($e).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=>Zt.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:$e,DROPDOWN_PADDING_CLASSES:lt,EVENT_KEYNAMES:H,openedWithKeyboard:!1,isOpen:null}},computed:{dropdownListeners(){return{...this.$listeners,opened:t=>{this.updateInitialHighlightIndex(t)},keydown:t=>{switch(t.code){case H.up:case H.arrowup:this.onUpKeyPress(t),t.stopPropagation(),t.preventDefault();break;case H.down:case H.arrowdown:this.onDownKeyPress(t),t.stopPropagation(),t.preventDefault();break;case H.space:case H.spacebar:this.onSpaceKey();break;case H.enter:this.onEnterKey();break;case H.home:this.onHomeKeyPress(t),t.stopPropagation(),t.preventDefault();break;case H.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",lt[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 rc=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:i}){return[e._t("anchor",null,null,i)]}},{key:"content",fn:function({close:i}){return[n("ul",{ref:"listWrapper",class:e.listClasses,attrs:{id:e.listId,"data-qa":"dt-dropdown-list-wrapper"},on:{mouseleave:e.clearHighlightIndex,"!mousemove":function(a){return e.onMouseHighlight.apply(null,arguments)}}},[e._t("list",null,{close:i}),e.showVisuallyHiddenClose?n("sr-only-close-button",{attrs:{"visually-hidden-close-label":e.visuallyHiddenCloseLabel,tabindex:e.isArrowKeyNav?-1:0},on:{close:i}}):e._e()],2)]}}],null,!0)},e.dropdownListeners))},oc=[],lc=_.normalizeComponent(ac,rc,oc,!1,null,null,null,null);const js=lc.exports;const dc={name:"DtDropdownSeparator"};var cc=function(){var e=this,n=e._self._c;return n("li",{staticClass:"dt-list-separator d-my4 d-mxn4",attrs:{"aria-hidden":"true"}})},uc=[],pc=_.normalizeComponent(dc,cc,uc,!1,null,null,null,null);const fc=pc.exports,hc={name:"DtImageViewer",components:{Portal:Qn,DtButton:q,DtIcon:M},mixins:[_t],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 H.esc:case H.escape:this.close();break;case H.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 mc=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(i){e.showCloseButton=!0},mouseleave:function(i){e.showCloseButton=!1},focusin:function(i){e.showCloseButton=!0},focusout:function(i){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",{attrs:{name:"close",size:"400"}})]},proxy:!0}],null,!1,1709155279)}):e._e()],1)],1)]):e._e()],1)},_c=[],gc=_.normalizeComponent(hc,mc,_c,!1,null,null,null,null);const vc=gc.exports,zt={TEXT:"text",TEXTAREA:"textarea",PASSWORD:"password",EMAIL:"email",NUMBER:"number",DATE:"date",TIME:"time"},qe={EXTRA_SMALL:"xs",SMALL:"sm",DEFAULT:"md",LARGE:"lg",EXTRA_LARGE:"xl"};function St(t){return t?t.every(e=>typeof e=="string"?!0:typeof e=="object"?Object.values(ee).includes(e==null?void 0:e.type):!1):!0}const bc={name:"DtValidationMessages",props:{id:{type:String,default(){return V()}},validationMessages:{type:Array,default:()=>[],validator:t=>St(t)},showMessages:{type:Boolean,default:!0}},computed:{isFilteredValidationMessagesEmpty(){return this.filteredValidationMessages.length===0},filteredValidationMessages(){return Fn(this.validationMessages)},validationState(){return Ce(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 yc=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:i,type:a},o){return n("div",{key:e.getMessageKey(a,o),class:["base-input__message","d-validation-message",e.messageTypeClass(a)],attrs:{role:"status","aria-live":"polite","data-qa":"validation-message"}},[n("p",{domProps:{innerHTML:e._s(i)}})])}),0):e._e()},Sc=[],Cc=_.normalizeComponent(bc,yc,Sc,!1,null,null,null,null);const we=Cc.exports,Jn={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(ee).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&&X.util.warn("You must provide an aria-label when there is no label passed",this)}}},ei={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}}},ti={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&&X.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)}},Qt={props:{messagesClass:{type:[String,Array,Object],default:""},messagesChildProps:{type:Object,default:()=>({})},showMessages:{type:Boolean,default:!0},messages:{type:Array,default:()=>[],validator:t=>St(t)}},computed:{formattedMessages(){return dt(this.messages)}}},xc={name:"DtInput",components:{DtValidationMessages:we},mixins:[Qt],inheritAttrs:!1,props:{name:{type:String,default:""},type:{type:String,default:zt.TEXT,validator:t=>Object.values(zt).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(qe).includes(t)},iconSize:{type:String,default:null,validator:t=>Object.values(qe).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===zt.TEXTAREA},isDefaultSize(){return this.size===qe.DEFAULT},isDefaultIconSize(){return this.iconSizeComputed===qe.DEFAULT},iconSizeComputed(){return this.iconSize?this.iconSize:this.size},isValidSize(){return Object.values(qe).includes(this.size)},isValidDescriptionSize(){return Object.values(Gi).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-${V()}`},inputState(){return Ce(this.validationMessages)},defaultLengthCalculation(){return this.calculateLength(this.value)},validationProps(){var t,e,n,i,a,o,p,c,s,u;return{length:{description:(e=(t=this==null?void 0:this.validate)==null?void 0:t.length)==null?void 0:e.description,max:(i=(n=this==null?void 0:this.validate)==null?void 0:n.length)==null?void 0:i.max,warn:(o=(a=this==null?void 0:this.validate)==null?void 0:a.length)==null?void 0:o.warn,message:(c=(p=this==null?void 0:this.validate)==null?void 0:p.length)==null?void 0:c.message,limitMaxLength:(u=(s=this==null?void 0:this.validate)==null?void 0:s.length)!=null&&u.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?ee.WARNING:null:ee.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 wc=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)},Ec=[],Ic=_.normalizeComponent(xc,wc,Ec,!1,null,null,null,null);const zs=Ic.exports,Hs={components:{DtValidationMessages:we},provide(){return{groupContext:this.provideObj,setGroupValue:this.setGroupValue}},props:{id:{type:String,default(){return V()}},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=>St(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=dt(this.messages);return{provideObj:{name:this.name,disabled:this.disabled,validationState:Ce(t)}}},computed:{formattedMessages(){return dt(this.messages)},validationState(){return Ce(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"]&&X.util.warn("It is expected that an aria-label is provided when there is no legend.",this)}},Oc={name:"DtInputGroup",components:{DtValidationMessages:we},mixins:[Hs],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 Tc=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)},Lc=[],Ac=_.normalizeComponent(Oc,Tc,Lc,!1,null,null,null,null);const ni=Ac.exports,Ln={default:"",danger:"d-modal--danger"},An={default:"",full:"d-modal--full"},Vi={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"},$c={name:"DtNotice",components:{DtNoticeIcon:Vn,DtNoticeContent:jn,DtNoticeAction:zn},mixins:[ge],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 fr.includes(t)}},important:{type:Boolean,default:!1},kind:{type:String,default:"base",validate(t){return Xe.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 Dc=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)},Rc=[],kc=_.normalizeComponent($c,Dc,Rc,!1,null,null,null,null);const Pc=kc.exports,Nc={name:"DtModal",components:{DtLazyShow:Qe,DtButton:q,DtIcon:M,SrOnlyCloseButton:Ut},mixins:[_t,ge],props:{closeButtonProps:{type:Object,required:!0,validator:t=>!!t.ariaLabel},copy:{type:String,default:""},describedById:{type:String,default:""},labelledById:{type:String,default:function(){return V()}},show:{type:Boolean,default:!1},title:{type:String,default:""},bannerTitle:{type:String,default:""},kind:{type:String,default:"default",validator:t=>Object.keys(Ln).includes(t)},size:{type:String,default:"default",validator:t=>Object.keys(An).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 Xe.includes(t)}},bannerClass:{type:[String,Object,Array],default:""},hideClose:{type:Boolean,default:!1},closeOnClick:{type:Boolean,default:!0},fixedHeaderFooter:{type:Boolean,default:!0}},emits:["update:show"],data(){return{MODAL_KIND_MODIFIERS:Ln,MODAL_SIZE_MODIFIERS:An,MODAL_BANNER_KINDS:Vi,EVENT_KEYNAMES:H}},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 H.esc:case H.escape:this.close();break;case H.tab:this.trapFocus(t);break}this.$emit("keydown",t)},"after-enter":t=>{t.target===t.currentTarget&&this.setFocusAfterTransition()}}},open(){return`${!this.show}`},hasFooterSlot(){return!!this.$slots.footer},bannerKindClass(){return Vi[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.focusFirstElement()},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 Bc=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)},Mc=[],Fc=_.normalizeComponent(Nc,Bc,Mc,!1,null,null,null,null);const Vc=Fc.exports;const jc={name:"ListSection",components:{Vnodes:{name:"vnodes",functional:!0,render:(t,e)=>e.props.vnodes},DtButton:q},props:{id:{type:String,default(){return ae.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 zc=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)])},Hc=[],qc=_.normalizeComponent(jc,zc,Hc,!1,null,null,null,null);const Gc=qc.exports,Kc={name:"DtListItemGroup",props:{id:{type:String,default(){return V()}},heading:{type:String,default:""},headingClass:{type:[String,Array,Object],default:""},listClass:{type:[String,Array,Object],default:""}}};var Uc=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)},Wc=[],Yc=_.normalizeComponent(Kc,Uc,Wc,!1,null,null,null,null);const Zc=Yc.exports,Xc={name:"DtPagination",components:{DtButton:q,DtIcon:M},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),i=Math.floor(n/2),a=this.currentPage-i,o=this.currentPage+i;return[1,"...",...this.range(a,o),"...",this.totalPages]}},methods:{range(t,e){const n=[];t=t>0?t:1;for(let i=t;i<=e;i++)n.push(i);return n},changePage(t){this.currentPage=t,this.$emit("change",this.currentPage)}}};var Qc=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:"muted",importance:e.isFirstPage?"primary":"clear",disabled:e.isFirstPage},on:{click:function(i){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(i,a){return n("div",{key:`page-${i}-${a}`,class:{"d-as-flex-end":isNaN(Number(i))}},[isNaN(Number(i))?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(i),kind:e.currentPage===i?"default":"muted",importance:e.currentPage===i?"primary":"clear","label-class":""},on:{click:function(o){return e.changePage(i)}}},[e._v(" "+e._s(i)+" ")])],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(i){return e.changePage(e.currentPage+1)}}},[n("template",{slot:"icon"},[n("dt-icon",{attrs:{name:"chevron-right",size:"300"}})],1)],2)],2)},Jc=[],eu=_.normalizeComponent(Xc,Qc,Jc,!1,null,null,null,null);const tu=eu.exports,nu={warning:"d-radio--warning",error:"d-radio--error",success:"d-radio--success"},iu={name:"DtRadio",components:{DtValidationMessages:we},mixins:[Jn,ei,ti,Qt],inheritAttrs:!1,props:{value:{type:[String,Number],default:""}},emits:["input","focusin","focusout"],computed:{inputValidationClass(){return nu[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 su=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)])])},au=[],ru=_.normalizeComponent(iu,su,au,!1,null,null,null,null);const ou=ru.exports,lu={name:"DtRadioGroup",extends:ni,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}`}}},du=null,cu=null;var uu=_.normalizeComponent(lu,du,cu,!1,null,null,null,null);const pu=uu.exports,qs=["default","sm"],fu={sm:"d-tablist--sm"},Gs={inverted:"d-tablist--inverted"},Ks={borderless:"d-tablist--no-border"},Us={selected:"d-tab--selected"},hu={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 qs.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:fu,TAB_LIST_KIND_MODIFIERS:Gs,TAB_LIST_IMPORTANCE_MODIFIERS:Ks}},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:i}=e[t];this.provideObj.selected=i,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 mu=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(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"left",37,i.key,["Left","ArrowLeft"])||"button"in i&&i.button!==0?null:e.tabLeft.apply(null,arguments)},function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"right",39,i.key,["Right","ArrowRight"])||"button"in i&&i.button!==2?null:e.tabRight.apply(null,arguments)},function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"enter",13,i.key,"Enter")?null:e.selectTab.apply(null,arguments)},function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"space",32,i.key,[" ","Spacebar"])?null:e.selectTab.apply(null,arguments)}],keydown:[function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"home",void 0,i.key,void 0)?null:e.onHomeButton.apply(null,arguments)},function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"end",void 0,i.key,void 0)?null:e.onEndButton.apply(null,arguments)}]}},"div",e.tabListChildProps,!1),[e._t("tabs")],2),e._t("default")],2)},_u=[],gu=_.normalizeComponent(hu,mu,_u,!1,null,null,null,null);const vu=gu.exports,bu={name:"DtTab",components:{DtButton:q},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:Us}},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 yu=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)},Su=[],Cu=_.normalizeComponent(bu,yu,Su,!1,null,null,null,null);const xu=Cu.exports,wu={name:"DtTabPanel",mixins:[_t],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 Eu=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)},Iu=[],Ou=_.normalizeComponent(wu,Eu,Iu,!1,null,null,null,null);const Tu=Ou.exports,Lu={error:"d-checkbox--error",warning:"d-checkbox--warning",success:"d-checkbox--success"},Au={name:"DtCheckbox",components:{DtValidationMessages:we},mixins:[Jn,ei,ti,Qt],inheritAttrs:!1,emits:["input","focusin","focusout"],computed:{inputValidationClass(){return Lu[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 $u=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()])])},Du=[],Ru=_.normalizeComponent(Au,$u,Du,!1,null,null,null,null);const ku=Ru.exports,Pu={name:"DtCheckboxGroup",extends:ni,model:{prop:"selectedValues"},props:{value:{type:[],default:null,validator:t=>t?(X.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}`}}},Nu=null,Bu=null;var Mu=_.normalizeComponent(Pu,Nu,Bu,!1,null,null,null,null);const Fu=Mu.exports,$n={xs:"d-chip__label--xs",sm:"d-chip__label--sm",md:""},Vu={xs:"d-chip__close--xs",sm:"d-chip__close--sm",md:""},ju={xs:"200",sm:"200",md:"200"},zu={name:"DtChip",components:{DtButton:q,DtIcon:M},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($n).includes(t)},interactive:{type:Boolean,default:!0},id:{type:String,default:function(){return V()}},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 ju[this.size]}},methods:{chipClasses(){return[this.$attrs["grouped-chip"]?"d-chip":"d-chip__label",$n[this.size],this.labelClass]},chipCloseButtonClasses(){return["d-chip__close",Vu[this.size]]},onClose(){this.hideClose||this.$emit("close")}}};var Hu=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(i){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)},qu=[],Gu=_.normalizeComponent(zu,Hu,qu,!1,null,null,null,null);const ii=Gu.exports,Dn={xs:"d-select--xs",sm:"d-select--sm",md:"",lg:"d-select--lg",xl:"d-select--xl"},Ws={error:"d-select__input--error",warning:"d-select__input--warning",success:"d-select__input--success"},Ku=t=>!t.index||typeof t.index=="number",Uu=t=>t.value?typeof t.value=="string"||typeof t.value=="number":!1,Wu=t=>t.label?typeof t.label=="string":!1,Yu=t=>t?t.every(e=>!(!Ku(e)||!Uu(e)||!Wu(e))):!0,Zu={name:"DtSelectMenu",components:{DtValidationMessages:we},mixins:[Qt],inheritAttrs:!1,props:{label:{type:String,default:""},description:{type:String,default:""},options:{type:Array,default:()=>[],validator:t=>Yu(t)},size:{type:String,default:"md",validator:t=>Object.keys(Dn).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:Sa,DESCRIPTION_SIZE_MODIFIERS:ya,SELECT_SIZE_MODIFIERS:Dn,SELECT_STATE_MODIFIERS:Ws}},computed:{selectListeners(){return{...this.$listeners,input:()=>{},change:t=>this.emitValue(t.target.value)}},state(){return Ce(this.formattedMessages)},selectKey(){return V()},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){this.$emit("input",t),this.$emit("change",t)},getOptionKey(t){return`select-${this.selectKey}-option-${t}`},validateOptionsPresence(){var t;((t=this.options)==null?void 0:t.length)<1&&!this.$slots.default&&X.util.warn("Options are expected to be provided via prop or slot",this)}}};var Xu=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(i){return n("option",e._b({key:e.getOptionKey(i.value),class:e.optionClass,domProps:{value:i.value}},"option",e.optionChildProps,!1),[e._v(" "+e._s(i.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)},Qu=[],Ju=_.normalizeComponent(Zu,Xu,Qu,!1,null,null,null,null);const ep=Ju.exports,Ys=["status","alert"],ji=6e3,tp={name:"DtToast",components:{DtNoticeIcon:Vn,DtNoticeContent:jn,DtNoticeAction:zn},mixins:[ge],props:{titleId:{type:String,default(){return ae.getUniqueString()}},contentId:{type:String,default(){return ae.getUniqueString()}},title:{type:String,default:""},message:{type:String,default:""},role:{type:String,default:"status",validator:t=>Ys.includes(t)},kind:{type:String,default:"base",validator:t=>Xe.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>=ji}},emits:["close","update:show"],data(){return{isShown:!1,minDuration:ji}},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 np=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()},ip=[],sp=_.normalizeComponent(tp,np,ip,!1,null,null,null,null);const ap=sp.exports,zi={sm:"d-toggle--small",md:""},rp=[!1,!0,"mixed"],op={name:"DtToggle",inheritAttrs:!1,model:{prop:"checked",event:"change"},props:{id:{type:String,default(){return ae.getUniqueString()}},disabled:{type:Boolean,default:!1},checked:{type:[Boolean,String],default:!1,validator:t=>rp.includes(t)},toggleOnClick:{type:Boolean,default:!0},size:{type:String,default:"md",validator:t=>Object.keys(zi).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",zi[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&&X.util.warn("You must provide an aria-label when there is no label passed",this)}}};var lp=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()])])},dp=[],cp=_.normalizeComponent(op,lp,dp,!1,null,null,null,null);const up=cp.exports,Zs=[...jd],Xs=300,Qs={hover:"d-tooltip--hover",show:"d-tooltip--show",inverted:"d-tooltip--inverted",hide:"d-tooltip--hide"},Js=[...ks],pp=[!0,!1,"toggle"];const fp={name:"DtTooltip",components:{DtLazyShow:Qe},props:{id:{type:String,default(){return V()}},fallbackPlacements:{type:Array,default:()=>["auto"]},inverted:{type:Boolean,default:!1},offset:{type:Array,default:()=>[0,-4]},placement:{type:String,default:"top",validator(t){return Zs.includes(t)}},sticky:{type:[Boolean,String],default:!1,validator:t=>Js.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:Qs,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:Ns({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=Ps(Fi(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 Fi(this.$refs.anchor).matches(":focus-visible")},onEnterAnchor(t){if(this.delay)this.inTimer=setTimeout(function(e){return this.triggerShow(e)}.bind(this,t),Xs);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 hp=function(){var e=this,n=e._self._c;return n("div",{attrs:{"data-qa":"dt-tooltip-container"}},[n("a",{ref:"anchor",attrs:{tabindex:"-1",role:"presentation","data-qa":"dt-tooltip-anchor"},on:{focusin:e.onEnterAnchor,focusout:e.onLeaveAnchor,mouseenter:e.onEnterAnchor,mouseleave:e.onLeaveAnchor,keydown:function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"esc",27,i.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)},mp=[],_p=_.normalizeComponent(fp,hp,mp,!1,null,null,null,null);const Jt=_p.exports,Ke={"{win}":"layout-grid","{arrow-right}":"arrow-right","{arrow-left}":"arrow-left","{arrow-up}":"arrow-up","{arrow-down}":"arrow-down","{cmd}":"command"},ea={"{plus}":"plus"},gp=Object.keys(Ke),vp={name:"DtKeyboardShortcut",components:{DtIcon:M},props:{inverted:{type:Boolean,default:!1},shortcut:{type:String,required:!0},screenReaderText:{type:String,default:null}},data(){return{SHORTCUTS_ICON_ALIASES:Ke,separator:/\+/gi}},computed:{icons(){return{...Ke,...ea}},shortcutWithSeparator(){return this.shortcut.replace(this.separator,"{plus}")},formattedShortcut(){return Object.keys(Ke).reduce((t,e)=>t.replace(new RegExp("{"+e+"}","gi"),Ke[e]),this.shortcutWithSeparator)},formattedShortcutSplit(){const t=Object.keys(this.icons).join("|"),e=new RegExp(`(${t})`,"gi");return this.formattedShortcut.split(e).filter(Boolean)}}};var bp=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-inverted-moderate":"d-bc-default"]},[e.screenReaderText?n("span",{staticClass:"sr-only"},[e._v(" "+e._s(e.screenReaderText)+" ")]):e._e(),e._l(e.formattedShortcutSplit,function(i,a){return[e.icons[i]?n("dt-icon",{key:`${a}-${i}`,class:[e.inverted?"d-fc-secondary-inverted":"d-fc-tertiary","d-mr2"],attrs:{name:e.icons[i],size:"100","aria-hidden":"true"}}):n("span",{key:`${a}-${i}`,class:[e.inverted?"d-fc-secondary-inverted":"d-fc-tertiary","d-mr2"],attrs:{"aria-hidden":"true"},domProps:{innerHTML:e._s(i)}})]})],2)},yp=[],Sp=_.normalizeComponent(vp,bp,yp,!1,null,null,null,null);const Cp=Sp.exports,si={LEFT:"left",RIGHT:"right"},ta=["sm","md","lg",null],xp={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===si.RIGHT}]}}};var wp=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()])},Ep=[],Ip=_.normalizeComponent(xp,wp,Ep,!1,null,null,null,null);const Op=Ip.exports,Tp={name:"DtRootLayout",components:{DtRootLayoutBody:Op},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(si).includes(t)},footerClass:{type:[String,Array,Object],default:""},footerHeight:{type:String,default:"64px"},responsiveBreakpoint:{type:String,default:null,validator:t=>ta.includes(t)}},computed:{responsiveClass(){if(this.responsiveBreakpoint)return`d-root-layout__responsive--${this.responsiveBreakpoint}`}}};var Lp=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)},Ap=[],$p=_.normalizeComponent(Tp,Lp,Ap,!1,null,null,null,null);const Dp=$p.exports,ke={default:"column",column:"column",row:"row","row-reverse":"row-reverse","column-reverse":"column-reverse"},na=["sm","md","lg","xl"],ai=["0","100","200","300","400","500","600"];function Hi(t){return t===ke.default}function qi(t){if(ht(t)==="string")return Hi(t)?null:ke[t];if(ht(t)==="object"){const{default:e}=t;return Hi(e)?null:ke[e]}else return null}function ht(t){return typeof t}function Rp(t){return qi(t)?`d-stack--${ke[qi(t)]}`:null}function kp(t){return ht(t)==="object"?[...na.map(e=>t[e]?`d-stack--${e}--${t[e]}`:null)]:null}function Pp(t){return ai.includes(t)?`d-stack--gap-${t}`:null}function Np(t){if(ht(t)==="string")return Object.keys(ke).includes(t);if(ht(t)==="object"){const{default:e}=t;return Object.keys(ke).includes(e)}else return null}function Bp(t){return ai.includes(t)}const Mp={name:"DtStack",props:{direction:{type:[String,Object],default:"column",validator:t=>Np(t)},as:{type:String,default:"div"},gap:{type:String,default:"0",validator:t=>Bp(t)}},data(){return{DT_STACK_DIRECTION:ke,DT_STACK_GAP:ai,DT_STACK_RESPONSIVE_BREAKPOINTS:na}},computed:{stackGap(){return Pp(this.gap)},defaultDirection(){return Rp(this.direction)},stackResponsive(){return kp(this.direction)}}};var Fp=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)},Vp=[],jp=_.normalizeComponent(Mp,Fp,Vp,!1,null,null,null,null);const zp=jp.exports,Hp={name:"DtRecipeComboboxWithPopover",components:{DtCombobox:ps,DtPopover:Xt,ComboboxLoadingList:ds,ComboboxEmptyList:cs},mixins:[ge],props:{label:{type:String,required:!0},labelVisible:{type:Boolean,default:!0},size:{type:String,default:null,validator:t=>Object.values(us).includes(t)},description:{type:String,default:""},showList:{type:Boolean,default:null},listId:{type:String,default(){return V()}},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(lt).some(e=>e===t)},contentWidth:{type:String,default:null,validator:t=>Xn.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=>Zt.includes(t)||t instanceof HTMLElement},transition:{type:String,default:"fade"}},emits:["select","escape","highlight","opened"],data(){return{DROPDOWN_PADDING_CLASSES:lt,isListShown:!1,isInputFocused:!1,isListFocused:!1,externalAnchor:V()}},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 i,a,o;const e=(a=(i=this.$refs.popover)==null?void 0:i.tip)==null?void 0:a.popper,n=this.$refs.input;(o=t.composedPath())!=null&&o.some(p=>[e,n].includes(p))||this.closeComboboxList()},openOnArrowKeyPress(){this.showList!==null||this.isListShown||!this.openWithArrowKeys||this.showComboboxList()}}};var qp=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:i}){return[n("div",{ref:"input",attrs:{id:e.externalAnchor},on:{focusin:e.onFocusIn,keydown:[function(a){return!a.type.indexOf("key")&&e._k(a.keyCode,"up",38,a.key,["Up","ArrowUp"])?null:e.openOnArrowKeyPress(a)},function(a){return!a.type.indexOf("key")&&e._k(a.keyCode,"down",40,a.key,["Down","ArrowDown"])?null:e.openOnArrowKeyPress(a)}]}},[e._t("input",null,{inputProps:i,onInput:e.handleDisplayList})],2)]}},{key:"list",fn:function({opened:i,listProps:a,clearHighlightIndex:o}){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(p){e.isListShown=p},opened:function(p){return i(p,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:o,focusout:o}},[e.loading?n("combobox-loading-list",e._b({},"combobox-loading-list",a,!1)):e.emptyList&&e.emptyStateMessage?n("combobox-empty-list",e._b({attrs:{message:e.emptyStateMessage}},"combobox-empty-list",a,!1)):e._t("list",null,{listProps:a})],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))},Gp=[],Kp=_.normalizeComponent(Hp,qp,Gp,!1,null,null,null,null);const ia=Kp.exports,sa={EXTRA_SMALL:"xs",SMALL:"sm",DEFAULT:"md"},Up={xs:"xs",sm:"xs",md:"sm"},Wp={xs:1.4,sm:.4,md:.2},Yp={name:"DtRecipeComboboxMultiSelect",components:{DtRecipeComboboxWithPopover:ia,DtInput:zs,DtChip:ii,DtValidationMessages:we},mixins:[ge],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=>St(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(sa).includes(t)},appendTo:{type:[HTMLElement,String],default:"body",validator:t=>Zt.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:Up}},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:{immediate:!0,async handler(){await this.$nextTick(),this.setInputPadding(),this.setChipsTopPosition(),this.setInputMinWidth(),this.checkMaxSelected()}},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()},immediate:!0}},mounted(){this.resizeWindowObserver=new ResizeObserver(async()=>{this.setChipsTopPosition(),this.setInputPadding()}),this.resizeWindowObserver.observe(document.body)},beforeDestroy(){var t;(t=this.resizeWindowObserver)==null||t.unobserve(document.body)},methods:{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 a;const n=this.getChipButtons().indexOf(t),i=e?n-1:n+1;i<0||i>=((a=this.$refs.chips)==null?void 0:a.length)||(this.getChipButtons()[n].blur(),this.getChipButtons()[i].focus(),this.closeComboboxList())},setChipsTopPosition(){const t=this.getInput();if(!t)return;const e=this.$refs.inputSlotWrapper,n=t.getBoundingClientRect().top-e.getBoundingClientRect().top,i=this.$refs.chipsWrapper;i.style.top=n-Wp[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 i=t.offsetLeft+this.getFullWidth(t);e.style.paddingLeft=i+"px";const a=n.getBoundingClientRect().height-4,o=t.offsetTop+2;a>this.originalInputSize&&(e.style.paddingTop=`${o}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 Zp=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:i}){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(a){return n("dt-chip",e._g({key:a.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(o){return!o.type.indexOf("key")&&e._k(o.keyCode,"backspace",void 0,o.key,void 0)?null:e.onChipRemove(a)},close:function(o){return e.onChipRemove(a)}}},e.chipListeners),[e._v(" "+e._s(a)+" ")])}),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:i},model:{value:e.value,callback:function(a){e.value=a},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(i){i.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)})},Xp=[],Qp=_.normalizeComponent(Yp,Zp,Xp,!1,null,null,null,null);const Jp=Qp.exports,ri=["sm","md","lg","xl"];const ef={name:"DtRecipeCallbarButton",components:{DtButton:q,DtTooltip:Jt},inheritAttrs:!0,props:{id:{type:String,default(){return ae.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=>ri.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 tf=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)},nf=[],sf=_.normalizeComponent(ef,tf,nf,!1,null,null,null,null);const aa=sf.exports;const af={name:"DtRecipeCallbarButtonWithPopover",components:{DtRecipeCallbarButton:aa,DtPopover:Xt,DtButton:q,DtIcon:M},inheritAttrs:!1,props:{id:{type:String,default(){return ae.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=>ri.includes(t)},contentClass:{type:[String,Array,Object],default:""}},emits:["arrowClick","click"],data(){return{open:!1}},computed:{showArrowButton(){return this.forceShowArrow||!this.disabled},isCompactMode(){return this.buttonWidthSize==="sm"||this.buttonWidthSize==="md"}},methods:{arrowClick(t){return this.$emit("arrowClick",t),this.open=!this.open},buttonClick(t){this.$listeners.click?this.$emit("click",t):this.arrowClick(t)},onModalIsOpened(t){this.open=t}}};var rf=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,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"},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",{attrs:{name:"chevron-up",size:"200"}})]},proxy:!0}],null,!1,3340821372)})]},proxy:!0}],null,!1,384931042)},"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)},of=[],lf=_.normalizeComponent(af,rf,of,!1,null,null,null,null);const df=lf.exports,cf={name:"DtRecipeContactInfo",components:{DtAvatar:Kt,DtListItem:gt},props:{id:{type:String,default(){return ae.getUniqueString()}},role:{type:String,default:""},avatarSrc:{type:String,default:""},avatarSeed:{type:String,default:null},avatarInitials:{type:String,default:""},avatarSize:{type:String,default:"lg"},presence:{type:String,default:null},avatarList:{type:Array,default:null}}};var uf=function(){var e=this,n=e._self._c;return n("dt-list-item",{attrs:{id:e.id,role:e.role,"element-type":"div","data-qa":"contact-info"},scopedSlots:e._u([{key:"left",fn:function(){return[n("div",{staticClass:"d-ps-relative",attrs:{"data-qa":"contact-info-left"}},[e.avatarList?n("div",{staticClass:"d-mrn4 d-d-flex d-fd-row"},e._l(e.avatarList,function(i,a){return n("div",{key:a},[i.src?n("dt-avatar",{attrs:{size:e.avatarSize,seed:i.seed,initials:i.initials,"overlay-icon":i.icon,"overlay-text":i.text,"overlay-class":"d-mn4 d-ba d-baw4 d-bc-white d-box-unset","avatar-class":["d-ba d-baw4 d-bc-white d-bar-pill",{"d-mln24":a>0}]}},[n("img",{attrs:{"data-qa":"dt-contact-avatar",src:i.src,alt:i.initials}})]):i.initials?n("dt-avatar",{attrs:{size:e.avatarSize,seed:i.seed,initials:i.initials,"overlay-icon":i.icon,"overlay-text":i.text,"overlay-class":"d-mn4 d-ba d-baw4 d-bc-white d-box-unset","avatar-class":["d-ba d-baw4 d-bc-white d-bar-pill",{"d-mln24":a>0}]}},[e._v(" "+e._s(i.initials)+" ")]):e._e()],1)}),0):e.avatarSrc?n("dt-avatar",{attrs:{size:e.avatarSize,initials:e.avatarInitials,seed:e.avatarSeed,presence:e.presence}},[n("img",{attrs:{"data-qa":"dt-contact-avatar",src:e.avatarSrc,initials:e.avatarInitials,seed:e.avatarSeed,alt:e.avatarInitials}})]):e.avatarInitials?n("dt-avatar",{attrs:{size:e.avatarSize,initials:e.avatarInitials,seed:e.avatarSeed,presence:e.presence}},[e._v(" "+e._s(e.avatarInitials)+" ")]):e._e()],1)]},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)})},pf=[],ff=_.normalizeComponent(cf,uf,pf,!1,null,null,null,null);const hf=ff.exports,ra=["green300","green100","red200","red100","gold100","gold200","black100","white"];const mf={name:"DtRecipeTopBannerInfo",props:{colorCode:{type:String,default:"green300",validator:function(t){return ra.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 _f=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)])},gf=[],vf=_.normalizeComponent(mf,_f,gf,!1,null,null,null,null);const bf=vf.exports,en="promptmenu",tn="promptcollect",nn="promptplay",sn="gotoexpert",Ct="goto",an="branch",rn="transfer",on="hangup",oa={[en]:"keypad",[tn]:"dialer",[nn]:"volume-2",[sn]:"expert-node",[an]:"branch",[Ct]:"call-merge",[rn]:"transfer",[on]:"phone-hang-up"},yf={[en]:"Menu",[tn]:"Collect",[nn]:"Play",[sn]:"Expert",[an]:"Branch",[Ct]:"Go-to",[rn]:"Transfer",[on]:"Hangup"},Se={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"}},Sf={[en]:Se.PROMPT,[tn]:Se.PROMPT,[nn]:Se.PROMPT,[sn]:Se.LOGIC,[an]:Se.LOGIC,[Ct]:Se.LOGIC,[rn]:Se.TERMINAL,[on]:Se.TERMINAL};const Cf={name:"DtRecipeIvrNode",components:{DtCard:ls,DtButton:q,DtDropdown:js,DtIcon:M},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 oa[this.nodeType]},headerColor(){const{normal:t,selected:e}=Sf[this.nodeType];return this.isSelected?e:t},isGotoNode(){return this.nodeType===Ct}},methods:{openMenu(){this.isOpen=!0}}};var xf=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-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(i){e.isOpen=i}},scopedSlots:e._u([{key:"anchor",fn:function(){return[n("dt-button",{attrs:{importance:"clear",kind:"muted","aria-label":e.menuButtonAriaLabel},on:{click:function(i){return i.stopPropagation(),i.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:i}){return[n("div",{staticClass:"d-w164"},[e._t("menuItems",null,{close:i})],2)]}}],null,!0)})]},proxy:!0},{key:"content",fn:function(){return[e._t("content")]},proxy:!0}],null,!0)})],2)},wf=[],Ef=_.normalizeComponent(Cf,xf,wf,!1,null,null,null,null);const If=Ef.exports;const Of={name:"DtRecipeGroupedChip",components:{DtChip:ii},computed:{}};var Tf=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)},Lf=[],Af=_.normalizeComponent(Of,Tf,Lf,!1,null,null,null,null);const $f=Af.exports;const Df={name:"DtRecipeSettingsMenuButton",components:{DtButton:q,DtIcon:M},props:{updateAvailable:{type:Boolean,default:!1},ariaLabel:{type:String,required:!0}},emits:["click"]};var Rf=function(){var e=this,n=e._self._c;return e.updateAvailable?n("dt-button",e._g({staticClass:"d-h32 d-bar-pill d-bgc-blue-200 d-bgo25 h:d-bgo50 d-bc-blue-500 d-bco25 d-fc-blue-500",attrs:{importance:"outlined",size:"xs","icon-position":"right","aria-label":e.ariaLabel},scopedSlots:e._u([{key:"icon",fn:function(){return[n("dt-icon",{staticClass:"d-fc-blue-500",attrs:{name:"more-vertical",size:"300"}})]},proxy:!0}],null,!1,993491315)},e.$listeners),[e._t("default")],2):n("dt-button",e._g({staticClass:"settings-menu-button d-p0 d-bar24 d-h32 d-w24 d-theme-topbar-fc",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))},kf=[],Pf=_.normalizeComponent(Df,Rf,kf,!1,null,"5f15fa46",null,null);const Nf=Pf.exports,F={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"},la={[F.INBOX]:"inbox",[F.CONTACTS]:"contacts",[F.CHANNELS]:"hash",[F.THREADS]:"thread",[F.LOCKED_CHANNEL]:"lock",[F.QUICK_START]:"sparkle",[F.COACHING_GROUP]:"users",[F.COACHING_CENTER]:"external-link","locked channel unread":"lock-filled","channel unread":"hash-bold",[F.ASSIGNED]:"at-sign",[F.DIGITAL]:"message"},mt={"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"},da="If type is contact center, color must be oneof the following:"+Object.keys(mt).join(", "),ca=["300","200"],Bf={};var Mf=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)])},Ff=[],Vf=_.normalizeComponent(Bf,Mf,Ff,!1,null,null,null,null);const jf=Vf.exports,zf={name:"DtRecipeLeftbarGeneralRowIcon",components:{DtIcon:M,IconDialbot:jf},props:{type:{type:String,default:null},color:{type:String,default:null},iconSize:{type:String,default:"300"}},computed:{isIconType(){return![F.DIALBOT,F.CONTACT_CENTER].includes(this.type)},isContactCenterType(){return this.type===F.CONTACT_CENTER},isDialbotType(){return this.type===F.DIALBOT},getIconName(){return la[this.type]},contactCenterIconClasses(){return["dt-leftbar-row__icon-cc",mt[this.color]]},dialbotClasses(){return["d-w24","d-h24","d-d-flex","d-ai-center","d-jc-center"]}}};var Hf=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()},qf=[],Gf=_.normalizeComponent(zf,Hf,qf,!1,null,null,null,null);const Kf=Gf.exports;const Uf={name:"DtRecipeGeneralRow",components:{DtEmojiTextWrapper:_.DtEmojiTextWrapper,DtBadge:Ji,DtIcon:M,DtButton:q,DtTooltip:Jt,DtRecipeLeftbarGeneralRowIcon:Kf},inheritAttrs:!1,props:{type:{type:String,default:"inbox",validator:t=>Object.values(F).includes(t)},ariaLabel:{type:String,default:""},description:{type:String,required:!0},color:{type:String,default:null,validator:t=>Object.keys(mt).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=>ca.includes(t)}},emits:["click","call"],data(){return{actionFocused:!1}},computed:{leftbarGeneralRowClasses(){return["dt-leftbar-row",{"dt-leftbar-row--no-action":!this.hasCallButton,"dt-leftbar-row--has-unread":this.hasUnreads,"dt-leftbar-row--selected":this.selected,"dt-leftbar-row--muted":this.muted,"dt-leftbar-row--action-focused":this.actionFocused}]},getIcon(){switch(this.type){case F.CHANNELS:if(this.hasUnreads)return"channel unread";break;case F.LOCKED_CHANNEL:if(this.hasUnreads)return"locked channel unread";break}return this.type},getAriaLabel(){return this.ariaLabel?this.ariaLabel:`${this.description} ${this.unreadCountTooltip} ${this.dndTextTooltip}`}},watch:{$props:{immediate:!0,deep:!0,handler(){this.validateProps()}}},methods:{validateProps(){this.type===F.CONTACT_CENTER&&!Object.keys(mt).includes(this.color)&&console.error(da)}}};var Wf=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}},"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"},[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),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",{staticClass:"dt-leftbar-row__dnd"},[e._v(" "+e._s(e.dndText)+" ")])]},proxy:!0}],null,!1,1506147022)}):e._e(),e.activeVoiceChat?n("div",{staticClass:"dt-leftbar-row__active-voice"},[n("dt-icon",{attrs:{size:"300",name:"activity"}})],1):e.unreadCount&&e.hasUnreads?n("dt-tooltip",{attrs:{message:e.unreadCountTooltip,placement:"top"},scopedSlots:e._u([{key:"anchor",fn:function(){return[n("dt-badge",{attrs:{kind:"count",type:"bulletin","data-qa":"dt-leftbar-row-unread-badge"}},[e._v(" "+e._s(e.unreadCount)+" ")])]},proxy:!0}])}):e._e()],1)]),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:"",size:"xs",kind:"inverted","aria-label":e.callButtonTooltip},on:{focus:function(i){e.actionFocused=!0},blur:function(i){e.actionFocused=!1},mouseleave:function(i){e.actionFocused=!1},click:function(i){return i.stopPropagation(),e.$emit("call",i)}},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,4111698736)})],1):e._e()])},Yf=[],Zf=_.normalizeComponent(Uf,Wf,Yf,!1,null,null,null,null);const oi=Zf.exports,Xf={name:"DtRecipeGroupRow",components:{DtIcon:M,DtRecipeGeneralRow:oi},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"]};var Qf=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.groupCountText} ${e.names}`,"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))},Jf=[],eh=_.normalizeComponent(Xf,Qf,Jf,!1,null,null,null,null);const th=eh.exports,nh={name:"DtRecipeGroupRow",components:{DtAvatar:Kt,DtIcon:M,DtRecipeGeneralRow:oi,DtEmojiTextWrapper:_.DtEmojiTextWrapper},inheritAttrs:!1,props:{avatarSrc:{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}},avatarInitial(){var t;return((t=this.name)==null?void 0:t[0])??""}}};var ih=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.name} ${e.presenceText} ${e.userStatus}`,"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:{size:"sm",seed:e.avatarSeed,presence:e.avatarPresence}},[e.avatarSrc?n("img",{attrs:{"data-qa":"dt-avatar-image",src:e.avatarSrc,alt:""}}):e.noInitials?[n("dt-icon",{attrs:{name:"user",size:"200"}})]:[e._v(" "+e._s(e.avatarInitial)+" ")]],2)]},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))},sh=[],ah=_.normalizeComponent(nh,ih,sh,!1,null,null,null,null);const rh=ah.exports,ua=["up","down"],pa=["mentions","messages"];const oh={name:"DtRecipeUnreadPill",components:{DtIcon:M},props:{kind:{type:String,required:!0,validator:t=>pa.includes(t)},direction:{type:String,required:!0,validator:t=>ua.includes(t)}},emits:["click"]};var lh=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)},dh=[],ch=_.normalizeComponent(oh,lh,dh,!1,null,null,null,null);const uh=ch.exports;const ph={name:"DtRecipeFeedItemRow",components:{DtAvatar:Kt,DtLazyShow:Qe,DtListItem:gt},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}},emits:["hover","focus"],computed:{avatarInitials(){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)}}},methods:{setFocus(t){this.$emit("focus",t)},setHover(t){this.$emit("hover",t)}}};var fh=function(){var e=this,n=e._self._c;return n("dt-list-item",e._g(e._b({ref:"FeedItemRef",class:["d-w100p","d-box-border","d-ps-relative","d-px8",{"d-bgc-secondary-opaque":e.isActive}],attrs:{"navigation-type":"none","data-qa":"feed-item-row"},scopedSlots:e._u([{key:"left",fn:function(){return[e.showHeader?n("dt-avatar",{attrs:{"avatar-class":"d-mt4",initials:e.avatarInitials}},[e.avatarImageUrl?n("img",{attrs:{"data-qa":"feed-item-row-avatar-img",alt:"",src:e.avatarImageUrl}}):e._e()]):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":"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":"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":"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":"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":"feed-item-row-content"}},[e._t("default")],2)])])},hh=[],mh=_.normalizeComponent(ph,fh,hh,!1,null,null,null,null);const _h=mh.exports;const gh={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 vh=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)+" ")])},bh=[],yh=_.normalizeComponent(gh,vh,bh,!1,null,null,null,null);const Sh=yh.exports,fa=["emojiUnicodeOrShortname","isSelected","ariaLabel","tooltip","num"];const Ch={name:"DtRecipeEmojiRow",components:{DtTooltip:Jt,DtButton:q,DtEmoji:_.DtEmoji,DtEmojiTextWrapper:_.DtEmojiTextWrapper},mixins:[],props:{reactions:{type:Array,default:()=>[],validator:t=>{for(const e of t)if(!fa.every(i=>e[i]!==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 xh=function(){var e=this,n=e._self._c;return n("span",{staticClass:"d-d-flex d-fw-wrap"},e._l(e.reactions,function(i){return n("span",{key:i.unicodeOutput,staticClass:"d-mr4 d-mb4",attrs:{reaction:i}},[n("dt-tooltip",{staticClass:"d-d-inline-block",attrs:{"content-class":"d-wmx464"},on:{shown:a=>e.emojiHovered(i,a)},scopedSlots:e._u([{key:"anchor",fn:function({attrs:a}){return[n("dt-button",{class:["d-h24 d-bar16 d-py0 d-fs-200 d-mb0 d-t",i.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":i.ariaLabel,attrs:a},on:{click:function(o){return e.emojiClicked(i)}}},[n("span",{staticClass:"d-mr4"},[n("dt-emoji",{attrs:{size:"200",code:i.emojiUnicodeOrShortname}})],1),n("span",{staticClass:"d-fw-bold d-fs-100"},[e._v(" "+e._s(i.num)+" ")])])]}}],null,!0)},[n("span",{attrs:{"aria-hidden":"true"}},[n("dt-emoji-text-wrapper",{attrs:{size:"200"}},[e._v(" "+e._s(i.tooltip)+" ")])],1)])],1)}),0)},wh=[],Eh=_.normalizeComponent(Ch,xh,wh,!1,null,null,null,null);const Ih=Eh.exports;exports.DtSkeleton=_.DtSkeleton;exports.DtSkeletonListItem=_.DtSkeletonListItem;exports.DtSkeletonParagraph=_.DtSkeletonParagraph;exports.DtSkeletonShape=_.DtSkeletonShape;exports.DtSkeletonText=_.DtSkeletonText;exports.SKELETON_HEADING_HEIGHTS=_.SKELETON_HEADING_HEIGHTS;exports.SKELETON_RIPPLE_DURATION=_.SKELETON_RIPPLE_DURATION;exports.SKELETON_SHAPES=_.SKELETON_SHAPES;exports.SKELETON_SHAPE_SIZES=_.SKELETON_SHAPE_SIZES;exports.SKELETON_TEXT_TYPES=_.SKELETON_TEXT_TYPES;exports.AVATAR_KIND_MODIFIERS=gn;exports.AVATAR_SIZE_MODIFIERS=Ft;exports.BADGE_DECORATION_MODIFIERS=yn;exports.BADGE_KIND_MODIFIERS=bn;exports.BADGE_TYPE_MODIFIERS=vn;exports.BREADCRUMBS_INVERTED_MODIFIER=as;exports.BREADCRUMB_ITEM_SELECTED_MODIFIER=ss;exports.BUTTON_GROUP_ALIGNMENT=Sn;exports.CALLBAR_BUTTON_VALID_WIDTH_SIZE=ri;exports.CHIP_SIZE_MODIFIERS=$n;exports.COLOR_CODES=ra;exports.DEFAULT_VALIDATION_MESSAGE_TYPE=Ki;exports.DESCRIPTION_SIZE_TYPES=Gi;exports.DtAvatar=Kt;exports.DtBadge=Ji;exports.DtBanner=Kr;exports.DtBreadcrumbItem=os;exports.DtBreadcrumbs=ao;exports.DtButton=q;exports.DtButtonGroup=uo;exports.DtCard=ls;exports.DtCheckableInputMixin=ei;exports.DtCheckbox=ku;exports.DtCheckboxGroup=Fu;exports.DtChip=ii;exports.DtCodeblock=yo;exports.DtCollapsible=nl;exports.DtCombobox=ps;exports.DtDropdown=js;exports.DtDropdownSeparator=fc;exports.DtGroupableInputMixin=ti;exports.DtIcon=M;exports.DtImageViewer=vc;exports.DtInput=zs;exports.DtInputGroup=ni;exports.DtInputGroupMixin=Hs;exports.DtInputMixin=Jn;exports.DtKeyboardListNavigationMixin=Hn;exports.DtKeyboardShortcut=Cp;exports.DtLazyShow=Qe;exports.DtLink=rs;exports.DtListItem=gt;exports.DtListItemGroup=Zc;exports.DtListSection=Gc;exports.DtModal=Vc;exports.DtNotice=Pc;exports.DtPagination=tu;exports.DtPopover=Xt;exports.DtPresence=Qi;exports.DtRadio=ou;exports.DtRadioGroup=pu;exports.DtRecipeCallbarButton=aa;exports.DtRecipeCallbarButtonWithPopover=df;exports.DtRecipeComboboxMultiSelect=Jp;exports.DtRecipeComboboxWithPopover=ia;exports.DtRecipeContactInfo=hf;exports.DtRecipeContactRow=rh;exports.DtRecipeEmojiRow=Ih;exports.DtRecipeFeedItemRow=_h;exports.DtRecipeGeneralRow=oi;exports.DtRecipeGroupRow=th;exports.DtRecipeGroupedChip=$f;exports.DtRecipeIvrNode=If;exports.DtRecipeSettingsMenuButton=Nf;exports.DtRecipeTimePill=Sh;exports.DtRecipeTopBannerInfo=bf;exports.DtRecipeUnreadPill=uh;exports.DtRootLayout=Dp;exports.DtSelectMenu=ep;exports.DtStack=zp;exports.DtTab=xu;exports.DtTabGroup=vu;exports.DtTabPanel=Tu;exports.DtToast=ap;exports.DtToggle=up;exports.DtTooltip=Jt;exports.DtValidationMessages=we;exports.INPUT_SIZES=qe;exports.INPUT_TYPES=zt;exports.IVR_NODE_BRANCH=an;exports.IVR_NODE_EXPERT=sn;exports.IVR_NODE_GO_TO=Ct;exports.IVR_NODE_HANGUP=on;exports.IVR_NODE_ICON_TYPES=oa;exports.IVR_NODE_LABELS=yf;exports.IVR_NODE_PROMPT_COLLECT=tn;exports.IVR_NODE_PROMPT_MENU=en;exports.IVR_NODE_PROMPT_PLAY=nn;exports.IVR_NODE_TRANSFER=rn;exports.LEFTBAR_GENERAL_ROW_CONTACT_CENTER_COLORS=mt;exports.LEFTBAR_GENERAL_ROW_CONTACT_CENTER_VALIDATION_ERROR=da;exports.LEFTBAR_GENERAL_ROW_ICON_MAPPING=la;exports.LEFTBAR_GENERAL_ROW_ICON_SIZES=ca;exports.LEFTBAR_GENERAL_ROW_TYPES=F;exports.LINK_KIND_MODIFIERS=Ht;exports.LINK_VARIANTS=ns;exports.MODAL_KIND_MODIFIERS=Ln;exports.MODAL_SIZE_MODIFIERS=An;exports.MULTI_SELECT_SIZES=sa;exports.NOTICE_KINDS=Xe;exports.POPOVER_CONTENT_WIDTHS=Xn;exports.POPOVER_HEADER_FOOTER_PADDING_CLASSES=Bs;exports.POPOVER_INITIAL_FOCUS_STRINGS=Fs;exports.POPOVER_PADDING_CLASSES=Tn;exports.POPOVER_ROLES=Ms;exports.PRESENCE_STATES=Ge;exports.PRESENCE_STATES_LIST=Xi;exports.REACTIONS_ATTRIBUTES=fa;exports.ROOT_LAYOUT_RESPONSIVE_BREAKPOINTS=ta;exports.ROOT_LAYOUT_SIDEBAR_POSITIONS=si;exports.SELECT_SIZE_MODIFIERS=Dn;exports.SELECT_STATE_MODIFIERS=Ws;exports.SHORTCUTS_ALIASES_LIST=gp;exports.SHORTCUTS_ICON_ALIASES=Ke;exports.SHORTCUTS_ICON_SEPARATOR=ea;exports.TAB_IMPORTANCE_MODIFIERS=Us;exports.TAB_LIST_IMPORTANCE_MODIFIERS=Ks;exports.TAB_LIST_KIND_MODIFIERS=Gs;exports.TAB_LIST_SIZES=qs;exports.TOAST_ROLES=Ys;exports.TOOLTIP_DELAY_MS=Xs;exports.TOOLTIP_DIRECTIONS=Zs;exports.TOOLTIP_HIDE_ON_CLICK_VARIANTS=pp;exports.TOOLTIP_KIND_MODIFIERS=Qs;exports.TOOLTIP_STICKY_VALUES=Js;exports.UNREAD_PILL_DIRECTIONS=ua;exports.UNREAD_PILL_KINDS=pa;exports.VALIDATION_MESSAGE_TYPES=ee;exports.filterFormattedMessages=Fn;exports.formatMessages=dt;exports.getUniqueString=V;exports.getValidationState=Ce;exports.validationMessageValidator=St;
29
+ `,"2) content: () => element.cloneNode(true)"].join(" "))}var c=s.reduce(function(l,f){var u=f&&dd(f,i);return u&&l.push(u),l},[]);return ct(t)?c[0]:c}vt.defaultProps=Y;vt.setDefaultProps=ad;vt.currentInput=ce;Object.assign({},ls,{effect:function(e){var n=e.state,i={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(n.elements.popper.style,i.popper),n.styles=i,n.elements.arrow&&Object.assign(n.elements.arrow.style,i.arrow)}});var cd={name:"sticky",defaultValue:!1,fn:function(e){var n=e.reference,i=e.popper;function s(){return e.popperInstance?e.popperInstance.state.elements.reference:n}function r(f){return e.props.sticky===!0||e.props.sticky===f}var o=null,c=null;function l(){var f=r("reference")?s().getBoundingClientRect():null,u=r("popper")?i.getBoundingClientRect():null;(f&&Ti(o,f)||u&&Ti(c,u))&&e.popperInstance&&e.popperInstance.update(),o=f,c=u,e.state.isMounted&&requestAnimationFrame(l)}return{onMount:function(){e.props.sticky&&l()}}}};function Ti(t,e){return t&&e?t.top!==e.top||t.right!==e.right||t.bottom!==e.bottom||t.left!==e.left:!0}vt.setDefaultProps({render:Os});const ud=t=>({name:"arrowDetected",enabled:!0,phase:"main",fn:t,requiresIfExists:["offset"]}),pd=["bottom","bottom-start","bottom-end","right","right-start","right-end","left","left-start","left-end","top","top-start","top-end"],xs=[!0,!1,"reference","popper"],Ts=(t,e)=>{const{contentElement:n}={...e};return delete e.contentElement,vt(t,{...e,plugins:[cd],render:()=>hd(n)})},Ls=({boundary:t="clippingParents",fallbackPlacements:e=[],onChangePlacement:n=()=>{},hasHideModifierEnabled:i=!1,tether:s=!0}={})=>({modifiers:[{name:"flip",options:{fallbackPlacements:e,boundary:t}},{name:"hide",enabled:i},{name:"preventOverflow",options:{altAxis:!s,tether:s}},ud(({state:r})=>{n(r.placement)})]}),fd=t=>{const e=document.createElement("span");return e.innerText=t.innerText||"",t.innerText="",t.appendChild(e),e},Li=t=>{const e=t==null?void 0:t.children[0];return e||fd(t)},hd=t=>{const e=document.createElement("div");return e.className="tippy-box d-ps-absolute",e.appendChild(t),{popper:e}},xn={none:void 0,small:"d-p4",medium:"d-p8",large:"d-p16"},As={none:void 0,small:"d-pl4",medium:"d-pl8",large:"d-pl16"},Ds=["dialog","menu","listbox","tree","grid"],qn=["","anchor"],$s=["none","dialog","first"],Gt=["parent","body"],md=[...xs];let _d="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",gd=(t=21)=>{let e="",n=t;for(;n--;)e+=_d[Math.random()*64|0];return e};function Mt(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Mt=function(e){return typeof e}:Mt=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Mt(t)}var Rs={selector:"vue-portal-target-".concat(gd())},vd=function(e){return Rs.selector=e},fn=typeof window<"u"&&(typeof document>"u"?"undefined":Mt(document))!==void 0,bd=X.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)}}),Kn=X.extend({name:"VueSimplePortal",props:{disabled:{type:Boolean},prepend:{type:Boolean},selector:{type:String,default:function(){return"#".concat(Rs.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(fn)return document.querySelector(this.selector)},insertTargetEl:function(){if(fn){var e=document.querySelector("body"),n=document.createElement(this.tag);n.id=this.selector.substring(1),e.appendChild(n)}},mount:function(){if(fn){var e=this.getTargetEl(),n=document.createElement("DIV");this.prepend&&e.firstChild?e.insertBefore(n,e.firstChild):e.appendChild(n),this.container=new bd({el:n,parent:this,propsData:{tag:this.tag,nodes:this.$scopedSlots.default}})}},unmount:function(){this.container&&(this.container.$destroy(),delete this.container)}}});function yd(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};t.component(e.name||"portal",Kn),e.defaultSelector&&vd(e.defaultSelector)}typeof window<"u"&&window.Vue&&window.Vue===X&&X.use(yd);const Sd={name:"PopoverHeaderFooter",components:{DtButton:j,DtIcon:k},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 Cd=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(i){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)},Id=[],Ed=p.normalizeComponent(Sd,Cd,Id,!1,null,null,null,null);const wd=Ed.exports;const Od={name:"DtPopover",components:{SrOnlyCloseButton:qt,DtLazyShow:Ze,PopoverHeaderFooter:wd,Portal:Kn},mixins:[ht,ge],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=>Ds.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(xn).some(e=>e===t)},contentClass:{type:[String,Array,Object],default:""},contentWidth:{type:String,default:"",validator:t=>qn.includes(t)},contentTabindex:{type:Number||null,default:-1},externalAnchor:{type:String,default:""},id:{type:String,default(){return M()}},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=>md.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=>$s.includes(t)||t instanceof HTMLElement||t.startsWith("#")},openWithArrowKeys:{type:Boolean,default:!1},appendTo:{type:[HTMLElement,String],default:"body",validator:t=>Gt.includes(t)||t instanceof HTMLElement}},emits:["opened","update:open"],data(){return{POPOVER_PADDING_CLASSES:xn,POPOVER_HEADER_FOOTER_PADDING_CLASSES:As,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(--space-300))":this.maxHeight},labelledBy(){return this.ariaLabelledby||!this.ariaLabel&&M("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 i;const e=(i=t==null?void 0:t[0])==null?void 0:i.target;if(!e)return;const n=ji(e);this.isOutsideViewport=n.bottom||n.top},popperOptions(){return Ls({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,i;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():(i=this.$refs.content)==null||i.$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,i;this._getFocusableElements(t,!0).length!==0?this.focusFirstElement(t):this.showCloseButton?(n=this.$refs.popover__header)==null||n.focusCloseButton():(i=this.$refs.content)==null||i.$el.focus()},initTippyInstance(){var t,e;this.tip=Ts(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 xd=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(i){i.preventDefault(),i.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(i){return e.defaultToggleOpen.apply(null,arguments)},contextmenu:e.onContext,keydown:[function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"up",38,i.key,["Up","ArrowUp"])?null:(i.preventDefault(),e.onArrowKeyPress.apply(null,arguments))},function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"down",40,i.key,["Down","ArrowDown"])?null:(i.preventDefault(),e.onArrowKeyPress.apply(null,arguments))}],"!keydown":function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"escape",void 0,i.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)},Td=[],Ld=p.normalizeComponent(Od,xd,Td,!1,null,null,null,null);const Wt=Ld.exports,rt={none:void 0,small:"d-py0",large:"d-py4"};const Ad={name:"DtDropdown",components:{DtPopover:Wt,SrOnlyCloseButton:qt},mixins:[Nn({indexKey:"highlightIndex",idKey:"highlightId",listElementKey:"getListElement",listItemRole:"menuitem",afterHighlightMethod:"afterHighlight",beginningOfListMethod:"beginningOfListMethod",endOfListMethod:"endOfListMethod",activeItemKey:"activeItemEl",focusOnKeyboardNavigation:!0}),ge],props:{open:{type:Boolean,default:null},openOnContext:{type:Boolean,default:!1},padding:{type:String,default:"small",validator:t=>Object.keys(rt).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 M()}},navigationType:{type:String,default:De.ARROW_KEYS,validator:t=>Object.values(De).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=>Gt.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:De,DROPDOWN_PADDING_CLASSES:rt,EVENT_KEYNAMES:V,openedWithKeyboard:!1,isOpen:null}},computed:{dropdownListeners(){return{...this.$listeners,opened:t=>{this.updateInitialHighlightIndex(t)},keydown:t=>{switch(t.code){case V.up:case V.arrowup:this.onUpKeyPress(t),t.stopPropagation(),t.preventDefault();break;case V.down:case V.arrowdown:this.onDownKeyPress(t),t.stopPropagation(),t.preventDefault();break;case V.space:case V.spacebar:this.onSpaceKey();break;case V.enter:this.onEnterKey();break;case V.home:this.onHomeKeyPress(t),t.stopPropagation(),t.preventDefault();break;case V.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",rt[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 Dd=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:i}){return[e._t("anchor",null,null,i)]}},{key:"content",fn:function({close:i}){return[n("ul",{ref:"listWrapper",class:e.listClasses,attrs:{id:e.listId,"data-qa":"dt-dropdown-list-wrapper"},on:{mouseleave:e.clearHighlightIndex,"!mousemove":function(s){return e.onMouseHighlight.apply(null,arguments)}}},[e._t("list",null,{close:i}),e.showVisuallyHiddenClose?n("sr-only-close-button",{attrs:{"visually-hidden-close-label":e.visuallyHiddenCloseLabel,tabindex:e.isArrowKeyNav?-1:0},on:{close:i}}):e._e()],2)]}}],null,!0)},e.dropdownListeners))},$d=[],Rd=p.normalizeComponent(Ad,Dd,$d,!1,null,null,null,null);const ks=Rd.exports;const kd={name:"DtDropdownSeparator"};var Pd=function(){var e=this,n=e._self._c;return n("li",{staticClass:"dt-list-separator d-my4 d-mxn4",attrs:{"aria-hidden":"true"}})},Nd=[],Bd=p.normalizeComponent(kd,Pd,Nd,!1,null,null,null,null);const Md=Bd.exports,Fd={name:"DtImageViewer",components:{Portal:Kn,DtButton:j,DtIcon:k},mixins:[ht],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 V.esc:case V.escape:this.close();break;case V.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 Vd=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(i){e.showCloseButton=!0},mouseleave:function(i){e.showCloseButton=!1},focusin:function(i){e.showCloseButton=!0},focusout:function(i){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",{attrs:{name:"close",size:"400"}})]},proxy:!0}],null,!1,1709155279)}):e._e()],1)],1)]):e._e()],1)},jd=[],zd=p.normalizeComponent(Fd,Vd,jd,!1,null,null,null,null);const Hd=zd.exports,Ft={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 bt(t){return t?t.every(e=>typeof e=="string"?!0:typeof e=="object"?Object.values(ee).includes(e==null?void 0:e.type):!1):!0}const qd={name:"DtValidationMessages",props:{id:{type:String,default(){return M()}},validationMessages:{type:Array,default:()=>[],validator:t=>bt(t)},showMessages:{type:Boolean,default:!0}},computed:{isFilteredValidationMessagesEmpty(){return this.filteredValidationMessages.length===0},filteredValidationMessages(){return $n(this.validationMessages)},validationState(){return Ce(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 Kd=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:i,type:s},r){return n("div",{key:e.getMessageKey(s,r),class:["base-input__message","d-validation-message",e.messageTypeClass(s)],attrs:{role:"status","aria-live":"polite","data-qa":"validation-message"}},[n("p",{domProps:{innerHTML:e._s(i)}})])}),0):e._e()},Ud=[],Gd=p.normalizeComponent(qd,Kd,Ud,!1,null,null,null,null);const Ee=Gd.exports,Un={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(ee).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&&X.util.warn("You must provide an aria-label when there is no label passed",this)}}},Gn={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}}},Wn={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&&X.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)}},Yt={props:{messagesClass:{type:[String,Array,Object],default:""},messagesChildProps:{type:Object,default:()=>({})},showMessages:{type:Boolean,default:!0},messages:{type:Array,default:()=>[],validator:t=>bt(t)}},computed:{formattedMessages(){return ot(this.messages)}}},Wd={name:"DtInput",components:{DtValidationMessages:Ee},mixins:[Yt],inheritAttrs:!1,props:{name:{type:String,default:""},type:{type:String,default:Ft.TEXT,validator:t=>Object.values(Ft).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===Ft.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(Pi).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-${M()}`},inputState(){return Ce(this.validationMessages)},defaultLengthCalculation(){return this.calculateLength(this.value)},validationProps(){var t,e,n,i,s,r,o,c,l,f;return{length:{description:(e=(t=this==null?void 0:this.validate)==null?void 0:t.length)==null?void 0:e.description,max:(i=(n=this==null?void 0:this.validate)==null?void 0:n.length)==null?void 0:i.max,warn:(r=(s=this==null?void 0:this.validate)==null?void 0:s.length)==null?void 0:r.warn,message:(c=(o=this==null?void 0:this.validate)==null?void 0:o.length)==null?void 0:c.message,limitMaxLength:(f=(l=this==null?void 0:this.validate)==null?void 0:l.length)!=null&&f.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?ee.WARNING:null:ee.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 Yd=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)},Zd=[],Xd=p.normalizeComponent(Wd,Yd,Zd,!1,null,null,null,null);const Ps=Xd.exports,Ns={components:{DtValidationMessages:Ee},provide(){return{groupContext:this.provideObj,setGroupValue:this.setGroupValue}},props:{id:{type:String,default(){return M()}},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=>bt(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=ot(this.messages);return{provideObj:{name:this.name,disabled:this.disabled,validationState:Ce(t)}}},computed:{formattedMessages(){return ot(this.messages)},validationState(){return Ce(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"]&&X.util.warn("It is expected that an aria-label is provided when there is no legend.",this)}},Qd={name:"DtInputGroup",components:{DtValidationMessages:Ee},mixins:[Ns],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 Jd=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)},ec=[],tc=p.normalizeComponent(Qd,Jd,ec,!1,null,null,null,null);const Yn=tc.exports,Tn={default:"",danger:"d-modal--danger"},Ln={default:"",full:"d-modal--full"},Ai={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"},nc={name:"DtNotice",components:{DtNoticeIcon:Rn,DtNoticeContent:kn,DtNoticeAction:Pn},mixins:[ge],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 Ma.includes(t)}},important:{type:Boolean,default:!1},kind:{type:String,default:"base",validate(t){return Ye.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 ic=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)},sc=[],ac=p.normalizeComponent(nc,ic,sc,!1,null,null,null,null);const rc=ac.exports,oc={name:"DtModal",components:{DtLazyShow:Ze,DtButton:j,DtIcon:k,SrOnlyCloseButton:qt},mixins:[ht,ge],props:{closeButtonProps:{type:Object,required:!0,validator:t=>!!t.ariaLabel},copy:{type:String,default:""},describedById:{type:String,default:""},labelledById:{type:String,default:function(){return M()}},show:{type:Boolean,default:!1},title:{type:String,default:""},bannerTitle:{type:String,default:""},kind:{type:String,default:"default",validator:t=>Object.keys(Tn).includes(t)},size:{type:String,default:"default",validator:t=>Object.keys(Ln).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 Ye.includes(t)}},bannerClass:{type:[String,Object,Array],default:""},hideClose:{type:Boolean,default:!1},closeOnClick:{type:Boolean,default:!0},fixedHeaderFooter:{type:Boolean,default:!0}},emits:["update:show"],data(){return{MODAL_KIND_MODIFIERS:Tn,MODAL_SIZE_MODIFIERS:Ln,MODAL_BANNER_KINDS:Ai,EVENT_KEYNAMES:V}},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 V.esc:case V.escape:this.close();break;case V.tab:this.trapFocus(t);break}this.$emit("keydown",t)},"after-enter":t=>{t.target===t.currentTarget&&this.setFocusAfterTransition()}}},open(){return`${!this.show}`},hasFooterSlot(){return!!this.$slots.footer},bannerKindClass(){return Ai[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.focusFirstElement()},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 lc=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)},dc=[],cc=p.normalizeComponent(oc,lc,dc,!1,null,null,null,null);const uc=cc.exports;const pc={name:"ListSection",components:{Vnodes:{name:"vnodes",functional:!0,render:(t,e)=>e.props.vnodes},DtButton:j},props:{id:{type:String,default(){return ae.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 fc=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)])},hc=[],mc=p.normalizeComponent(pc,fc,hc,!1,null,null,null,null);const _c=mc.exports,gc={name:"DtListItemGroup",props:{id:{type:String,default(){return M()}},heading:{type:String,default:""},headingClass:{type:[String,Array,Object],default:""},listClass:{type:[String,Array,Object],default:""}}};var vc=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)},bc=[],yc=p.normalizeComponent(gc,vc,bc,!1,null,null,null,null);const Sc=yc.exports,Cc={name:"DtPagination",components:{DtButton:j,DtIcon:k},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),i=Math.floor(n/2),s=this.currentPage-i,r=this.currentPage+i;return[1,"...",...this.range(s,r),"...",this.totalPages]}},methods:{range(t,e){const n=[];t=t>0?t:1;for(let i=t;i<=e;i++)n.push(i);return n},changePage(t){this.currentPage=t,this.$emit("change",this.currentPage)}}};var Ic=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:"muted",importance:e.isFirstPage?"primary":"clear",disabled:e.isFirstPage},on:{click:function(i){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(i,s){return n("div",{key:`page-${i}-${s}`,class:{"d-as-flex-end":isNaN(Number(i))}},[isNaN(Number(i))?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(i),kind:e.currentPage===i?"default":"muted",importance:e.currentPage===i?"primary":"clear","label-class":""},on:{click:function(r){return e.changePage(i)}}},[e._v(" "+e._s(i)+" ")])],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(i){return e.changePage(e.currentPage+1)}}},[n("template",{slot:"icon"},[n("dt-icon",{attrs:{name:"chevron-right",size:"300"}})],1)],2)],2)},Ec=[],wc=p.normalizeComponent(Cc,Ic,Ec,!1,null,null,null,null);const Oc=wc.exports,xc={warning:"d-radio--warning",error:"d-radio--error",success:"d-radio--success"},Tc={name:"DtRadio",components:{DtValidationMessages:Ee},mixins:[Un,Gn,Wn,Yt],inheritAttrs:!1,props:{value:{type:[String,Number],default:""}},emits:["input","focusin","focusout"],computed:{inputValidationClass(){return xc[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 Lc=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)])])},Ac=[],Dc=p.normalizeComponent(Tc,Lc,Ac,!1,null,null,null,null);const $c=Dc.exports,Rc={name:"DtRadioGroup",extends:Yn,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}`}}},kc=null,Pc=null;var Nc=p.normalizeComponent(Rc,kc,Pc,!1,null,null,null,null);const Bc=Nc.exports,Bs=["default","sm"],Mc={sm:"d-tablist--sm"},Ms={inverted:"d-tablist--inverted"},Fs={borderless:"d-tablist--no-border"},Vs={selected:"d-tab--selected"},Fc={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 Bs.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:Mc,TAB_LIST_KIND_MODIFIERS:Ms,TAB_LIST_IMPORTANCE_MODIFIERS:Fs}},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:i}=e[t];this.provideObj.selected=i,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 Vc=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(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"left",37,i.key,["Left","ArrowLeft"])||"button"in i&&i.button!==0?null:e.tabLeft.apply(null,arguments)},function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"right",39,i.key,["Right","ArrowRight"])||"button"in i&&i.button!==2?null:e.tabRight.apply(null,arguments)},function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"enter",13,i.key,"Enter")?null:e.selectTab.apply(null,arguments)},function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"space",32,i.key,[" ","Spacebar"])?null:e.selectTab.apply(null,arguments)}],keydown:[function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"home",void 0,i.key,void 0)?null:e.onHomeButton.apply(null,arguments)},function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"end",void 0,i.key,void 0)?null:e.onEndButton.apply(null,arguments)}]}},"div",e.tabListChildProps,!1),[e._t("tabs")],2),e._t("default")],2)},jc=[],zc=p.normalizeComponent(Fc,Vc,jc,!1,null,null,null,null);const Hc=zc.exports,qc={name:"DtTab",components:{DtButton:j},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:Vs}},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 Kc=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)},Uc=[],Gc=p.normalizeComponent(qc,Kc,Uc,!1,null,null,null,null);const Wc=Gc.exports,Yc={name:"DtTabPanel",mixins:[ht],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 Zc=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)},Xc=[],Qc=p.normalizeComponent(Yc,Zc,Xc,!1,null,null,null,null);const Jc=Qc.exports,eu={error:"d-checkbox--error",warning:"d-checkbox--warning",success:"d-checkbox--success"},tu={name:"DtCheckbox",components:{DtValidationMessages:Ee},mixins:[Un,Gn,Wn,Yt],inheritAttrs:!1,emits:["input","focusin","focusout"],computed:{inputValidationClass(){return eu[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 nu=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()])])},iu=[],su=p.normalizeComponent(tu,nu,iu,!1,null,null,null,null);const au=su.exports,ru={name:"DtCheckboxGroup",extends:Yn,model:{prop:"selectedValues"},props:{value:{type:[],default:null,validator:t=>t?(X.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}`}}},ou=null,lu=null;var du=p.normalizeComponent(ru,ou,lu,!1,null,null,null,null);const cu=du.exports,An={xs:"d-chip__label--xs",sm:"d-chip__label--sm",md:""},uu={xs:"d-chip__close--xs",sm:"d-chip__close--sm",md:""},pu={xs:"200",sm:"200",md:"200"},fu={name:"DtChip",components:{DtButton:j,DtIcon:k},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(An).includes(t)},interactive:{type:Boolean,default:!0},id:{type:String,default:function(){return M()}},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 pu[this.size]}},methods:{chipClasses(){return[this.$attrs["grouped-chip"]?"d-chip":"d-chip__label",An[this.size],this.labelClass]},chipCloseButtonClasses(){return["d-chip__close",uu[this.size]]},onClose(){this.hideClose||this.$emit("close")}}};var hu=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(i){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)},mu=[],_u=p.normalizeComponent(fu,hu,mu,!1,null,null,null,null);const Zn=_u.exports,Dn={xs:"d-select--xs",sm:"d-select--sm",md:"",lg:"d-select--lg",xl:"d-select--xl"},js={error:"d-select__input--error",warning:"d-select__input--warning",success:"d-select__input--success"},gu=t=>!t.index||typeof t.index=="number",vu=t=>t.value?typeof t.value=="string"||typeof t.value=="number":!1,bu=t=>t.label?typeof t.label=="string":!1,yu=t=>t?t.every(e=>!(!gu(e)||!vu(e)||!bu(e))):!0,Su={name:"DtSelectMenu",components:{DtValidationMessages:Ee},mixins:[Yt],inheritAttrs:!1,props:{label:{type:String,default:""},description:{type:String,default:""},options:{type:Array,default:()=>[],validator:t=>yu(t)},size:{type:String,default:"md",validator:t=>Object.keys(Dn).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:ha,DESCRIPTION_SIZE_MODIFIERS:fa,SELECT_SIZE_MODIFIERS:Dn,SELECT_STATE_MODIFIERS:js}},computed:{selectListeners(){return{...this.$listeners,input:()=>{},change:t=>this.emitValue(t.target.value)}},state(){return Ce(this.formattedMessages)},selectKey(){return M()},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){this.$emit("input",t),this.$emit("change",t)},getOptionKey(t){return`select-${this.selectKey}-option-${t}`},validateOptionsPresence(){var t;((t=this.options)==null?void 0:t.length)<1&&!this.$slots.default&&X.util.warn("Options are expected to be provided via prop or slot",this)}}};var Cu=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(i){return n("option",e._b({key:e.getOptionKey(i.value),class:e.optionClass,domProps:{value:i.value}},"option",e.optionChildProps,!1),[e._v(" "+e._s(i.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)},Iu=[],Eu=p.normalizeComponent(Su,Cu,Iu,!1,null,null,null,null);const wu=Eu.exports,zs=["status","alert"],Di=6e3,Ou={name:"DtToast",components:{DtNoticeIcon:Rn,DtNoticeContent:kn,DtNoticeAction:Pn},mixins:[ge],props:{titleId:{type:String,default(){return ae.getUniqueString()}},contentId:{type:String,default(){return ae.getUniqueString()}},title:{type:String,default:""},message:{type:String,default:""},role:{type:String,default:"status",validator:t=>zs.includes(t)},kind:{type:String,default:"base",validator:t=>Ye.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>=Di}},emits:["close","update:show"],data(){return{isShown:!1,minDuration:Di}},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 xu=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()},Tu=[],Lu=p.normalizeComponent(Ou,xu,Tu,!1,null,null,null,null);const Au=Lu.exports,$i={sm:"d-toggle--small",md:""},Du=[!1,!0,"mixed"],$u={name:"DtToggle",inheritAttrs:!1,model:{prop:"checked",event:"change"},props:{id:{type:String,default(){return ae.getUniqueString()}},disabled:{type:Boolean,default:!1},checked:{type:[Boolean,String],default:!1,validator:t=>Du.includes(t)},toggleOnClick:{type:Boolean,default:!0},size:{type:String,default:"md",validator:t=>Object.keys($i).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",$i[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&&X.util.warn("You must provide an aria-label when there is no label passed",this)}}};var Ru=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()])])},ku=[],Pu=p.normalizeComponent($u,Ru,ku,!1,null,null,null,null);const Nu=Pu.exports,Hs=[...pd],qs=300,Ks={hover:"d-tooltip--hover",show:"d-tooltip--show",inverted:"d-tooltip--inverted",hide:"d-tooltip--hide"},Us=[...xs],Bu=[!0,!1,"toggle"];const Mu={name:"DtTooltip",components:{DtLazyShow:Ze},props:{id:{type:String,default(){return M()}},fallbackPlacements:{type:Array,default:()=>["auto"]},inverted:{type:Boolean,default:!1},offset:{type:Array,default:()=>[0,-4]},placement:{type:String,default:"top",validator(t){return Hs.includes(t)}},sticky:{type:[Boolean,String],default:!1,validator:t=>Us.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:Ks,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:Ls({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=Ts(Li(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 Li(this.$refs.anchor).matches(":focus-visible")},onEnterAnchor(t){if(this.delay)this.inTimer=setTimeout(function(e){return this.triggerShow(e)}.bind(this,t),qs);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 Fu=function(){var e=this,n=e._self._c;return n("div",{attrs:{"data-qa":"dt-tooltip-container"}},[n("a",{ref:"anchor",attrs:{tabindex:"-1",role:"presentation","data-qa":"dt-tooltip-anchor"},on:{focusin:e.onEnterAnchor,focusout:e.onLeaveAnchor,mouseenter:e.onEnterAnchor,mouseleave:e.onLeaveAnchor,keydown:function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"esc",27,i.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)},Vu=[],ju=p.normalizeComponent(Mu,Fu,Vu,!1,null,null,null,null);const Zt=ju.exports,qe={"{win}":"layout-grid","{arrow-right}":"arrow-right","{arrow-left}":"arrow-left","{arrow-up}":"arrow-up","{arrow-down}":"arrow-down","{cmd}":"command"},Gs={"{plus}":"plus"},zu=Object.keys(qe),Hu={name:"DtKeyboardShortcut",components:{DtIcon:k},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,...Gs}},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 qu=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-inverted-moderate":"d-bc-default"]},[e.screenReaderText?n("span",{staticClass:"sr-only"},[e._v(" "+e._s(e.screenReaderText)+" ")]):e._e(),e._l(e.formattedShortcutSplit,function(i,s){return[e.icons[i]?n("dt-icon",{key:`${s}-${i}`,class:[e.inverted?"d-fc-secondary-inverted":"d-fc-tertiary","d-mr2"],attrs:{name:e.icons[i],size:"100","aria-hidden":"true"}}):n("span",{key:`${s}-${i}`,class:[e.inverted?"d-fc-secondary-inverted":"d-fc-tertiary","d-mr2"],attrs:{"aria-hidden":"true"},domProps:{innerHTML:e._s(i)}})]})],2)},Ku=[],Uu=p.normalizeComponent(Hu,qu,Ku,!1,null,null,null,null);const Gu=Uu.exports,Xn={LEFT:"left",RIGHT:"right"},Ws=["sm","md","lg",null],Wu={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===Xn.RIGHT}]}}};var Yu=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()])},Zu=[],Xu=p.normalizeComponent(Wu,Yu,Zu,!1,null,null,null,null);const Qu=Xu.exports,Ju={name:"DtRootLayout",components:{DtRootLayoutBody:Qu},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(Xn).includes(t)},footerClass:{type:[String,Array,Object],default:""},footerHeight:{type:String,default:"64px"},responsiveBreakpoint:{type:String,default:null,validator:t=>Ws.includes(t)}},computed:{responsiveClass(){if(this.responsiveBreakpoint)return`d-root-layout__responsive--${this.responsiveBreakpoint}`}}};var ep=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)},tp=[],np=p.normalizeComponent(Ju,ep,tp,!1,null,null,null,null);const ip=np.exports,ke={default:"column",column:"column",row:"row","row-reverse":"row-reverse","column-reverse":"column-reverse"},Ys=["sm","md","lg","xl"],Qn=["0","100","200","300","400","500","600"];function Ri(t){return t===ke.default}function ki(t){if(pt(t)==="string")return Ri(t)?null:ke[t];if(pt(t)==="object"){const{default:e}=t;return Ri(e)?null:ke[e]}else return null}function pt(t){return typeof t}function sp(t){return ki(t)?`d-stack--${ke[ki(t)]}`:null}function ap(t){return pt(t)==="object"?[...Ys.map(e=>t[e]?`d-stack--${e}--${t[e]}`:null)]:null}function rp(t){return Qn.includes(t)?`d-stack--gap-${t}`:null}function op(t){if(pt(t)==="string")return Object.keys(ke).includes(t);if(pt(t)==="object"){const{default:e}=t;return Object.keys(ke).includes(e)}else return null}function lp(t){return Qn.includes(t)}const dp={name:"DtStack",props:{direction:{type:[String,Object],default:"column",validator:t=>op(t)},as:{type:String,default:"div"},gap:{type:String,default:"0",validator:t=>lp(t)}},data(){return{DT_STACK_DIRECTION:ke,DT_STACK_GAP:Qn,DT_STACK_RESPONSIVE_BREAKPOINTS:Ys}},computed:{stackGap(){return rp(this.gap)},defaultDirection(){return sp(this.direction)},stackResponsive(){return ap(this.direction)}}};var cp=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)},up=[],pp=p.normalizeComponent(dp,cp,up,!1,null,null,null,null);const fp=pp.exports,hp={name:"DtRecipeComboboxWithPopover",components:{DtCombobox:as,DtPopover:Wt,ComboboxLoadingList:ns,ComboboxEmptyList:is},mixins:[ge],props:{label:{type:String,required:!0},labelVisible:{type:Boolean,default:!0},size:{type:String,default:null,validator:t=>Object.values(ss).includes(t)},description:{type:String,default:""},showList:{type:Boolean,default:null},listId:{type:String,default(){return M()}},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(rt).some(e=>e===t)},contentWidth:{type:String,default:null,validator:t=>qn.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=>Gt.includes(t)||t instanceof HTMLElement},transition:{type:String,default:"fade"}},emits:["select","escape","highlight","opened"],data(){return{DROPDOWN_PADDING_CLASSES:rt,isListShown:!1,isInputFocused:!1,isListFocused:!1,externalAnchor:M()}},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 i,s,r;const e=(s=(i=this.$refs.popover)==null?void 0:i.tip)==null?void 0:s.popper,n=this.$refs.input;(r=t.composedPath())!=null&&r.some(o=>[e,n].includes(o))||this.closeComboboxList()},openOnArrowKeyPress(){this.showList!==null||this.isListShown||!this.openWithArrowKeys||this.showComboboxList()}}};var mp=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:i}){return[n("div",{ref:"input",attrs:{id:e.externalAnchor},on:{focusin:e.onFocusIn,keydown:[function(s){return!s.type.indexOf("key")&&e._k(s.keyCode,"up",38,s.key,["Up","ArrowUp"])?null:e.openOnArrowKeyPress(s)},function(s){return!s.type.indexOf("key")&&e._k(s.keyCode,"down",40,s.key,["Down","ArrowDown"])?null:e.openOnArrowKeyPress(s)}]}},[e._t("input",null,{inputProps:i,onInput:e.handleDisplayList})],2)]}},{key:"list",fn:function({opened:i,listProps:s,clearHighlightIndex:r}){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(o){e.isListShown=o},opened:function(o){return i(o,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:r,focusout:r}},[e.loading?n("combobox-loading-list",e._b({},"combobox-loading-list",s,!1)):e.emptyList&&e.emptyStateMessage?n("combobox-empty-list",e._b({attrs:{message:e.emptyStateMessage}},"combobox-empty-list",s,!1)):e._t("list",null,{listProps:s})],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))},_p=[],gp=p.normalizeComponent(hp,mp,_p,!1,null,null,null,null);const Zs=gp.exports,Xs={EXTRA_SMALL:"xs",SMALL:"sm",DEFAULT:"md"},vp={xs:"xs",sm:"xs",md:"sm"},bp={xs:1.4,sm:.4,md:.2},yp={name:"DtRecipeComboboxMultiSelect",components:{DtRecipeComboboxWithPopover:Zs,DtInput:Ps,DtChip:Zn,DtValidationMessages:Ee},mixins:[ge],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=>bt(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(Xs).includes(t)},appendTo:{type:[HTMLElement,String],default:"body",validator:t=>Gt.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:vp}},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:{immediate:!0,async handler(){await this.$nextTick(),this.setInputPadding(),this.setChipsTopPosition(),this.setInputMinWidth(),this.checkMaxSelected()}},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()},immediate:!0}},mounted(){this.resizeWindowObserver=new ResizeObserver(async()=>{this.setChipsTopPosition(),this.setInputPadding()}),this.resizeWindowObserver.observe(document.body)},beforeDestroy(){var t;(t=this.resizeWindowObserver)==null||t.unobserve(document.body)},methods:{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 s;const n=this.getChipButtons().indexOf(t),i=e?n-1:n+1;i<0||i>=((s=this.$refs.chips)==null?void 0:s.length)||(this.getChipButtons()[n].blur(),this.getChipButtons()[i].focus(),this.closeComboboxList())},setChipsTopPosition(){const t=this.getInput();if(!t)return;const e=this.$refs.inputSlotWrapper,n=t.getBoundingClientRect().top-e.getBoundingClientRect().top,i=this.$refs.chipsWrapper;i.style.top=n-bp[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 i=t.offsetLeft+this.getFullWidth(t);e.style.paddingLeft=i+"px";const s=n.getBoundingClientRect().height-4,r=t.offsetTop+2;s>this.originalInputSize&&(e.style.paddingTop=`${r}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 Sp=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:i}){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(s){return n("dt-chip",e._g({key:s.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(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"backspace",void 0,r.key,void 0)?null:e.onChipRemove(s)},close:function(r){return e.onChipRemove(s)}}},e.chipListeners),[e._v(" "+e._s(s)+" ")])}),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:i},model:{value:e.value,callback:function(s){e.value=s},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(i){i.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)})},Cp=[],Ip=p.normalizeComponent(yp,Sp,Cp,!1,null,null,null,null);const Ep=Ip.exports,Jn=["sm","md","lg","xl"];const wp={name:"DtRecipeCallbarButton",components:{DtButton:j,DtTooltip:Zt},inheritAttrs:!0,props:{id:{type:String,default(){return ae.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=>Jn.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 Op=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)},xp=[],Tp=p.normalizeComponent(wp,Op,xp,!1,null,null,null,null);const Qs=Tp.exports;const Lp={name:"DtRecipeCallbarButtonWithPopover",components:{DtRecipeCallbarButton:Qs,DtPopover:Wt,DtButton:j,DtIcon:k},inheritAttrs:!1,props:{id:{type:String,default(){return ae.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=>Jn.includes(t)},contentClass:{type:[String,Array,Object],default:""}},emits:["arrowClick","click"],data(){return{open:!1}},computed:{showArrowButton(){return this.forceShowArrow||!this.disabled},isCompactMode(){return this.buttonWidthSize==="sm"||this.buttonWidthSize==="md"}},methods:{arrowClick(t){return this.$emit("arrowClick",t),this.open=!this.open},buttonClick(t){this.$listeners.click?this.$emit("click",t):this.arrowClick(t)},onModalIsOpened(t){this.open=t}}};var Ap=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,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"},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",{attrs:{name:"chevron-up",size:"200"}})]},proxy:!0}],null,!1,3340821372)})]},proxy:!0}],null,!1,384931042)},"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)},Dp=[],$p=p.normalizeComponent(Lp,Ap,Dp,!1,null,null,null,null);const Rp=$p.exports,kp={name:"DtRecipeContactInfo",components:{DtAvatar:Ht,DtIcon:k,DtListItem:mt},props:{id:{type:String,default(){return ae.getUniqueString()}},role:{type:String,default:""},showAvatar:{type:Boolean,default:!0},avatarSrc:{type:String,default:""},avatarSeed:{type:String,default:null},avatarInitials:{type:String,default:""},avatarIcon:{type:String,default:"user"},avatarSize:{type:String,default:"lg"},presence:{type:String,default:null},avatarList:{type:Array,default:null}}};var Pp=function(){var e=this,n=e._self._c;return n("dt-list-item",{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("div",{staticClass:"d-ps-relative",attrs:{"data-qa":"contact-info-left"}},[e.avatarList?n("div",{staticClass:"d-mrn4 d-d-flex d-fd-row"},e._l(e.avatarList,function(i,s){return n("div",{key:s},[n("dt-avatar",{attrs:{size:e.avatarSize,seed:i.seed,initials:i.initials,"overlay-icon":i.icon,"overlay-text":i.text,"overlay-class":"d-mn4 d-ba d-baw4 d-bc-white d-box-unset","avatar-class":["d-ba d-baw4 d-bc-white d-bar-pill",{"d-mln24":s>0}]}},[i.src?n("img",{attrs:{"data-qa":"dt-contact-avatar",src:i.src,alt:i.initials}}):i.initials?n("div",[e._v(" "+e._s(i.initials)+" ")]):n("dt-icon",{attrs:{name:e.avatarIcon}})],1)],1)}),0):n("dt-avatar",{attrs:{size:e.avatarSize,initials:e.avatarInitials,seed:e.avatarSeed,presence:e.presence}},[e.avatarSrc?n("img",{attrs:{"data-qa":"dt-contact-avatar",src:e.avatarSrc,initials:e.avatarInitials,seed:e.avatarSeed,alt:e.avatarInitials}}):e.avatarInitials?n("div",[e._v(" "+e._s(e.avatarInitials)+" ")]):n("dt-icon",{attrs:{name:e.avatarIcon}})],1)],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)})},Np=[],Bp=p.normalizeComponent(kp,Pp,Np,!1,null,null,null,null);const Mp=Bp.exports,Js=["green300","green100","red200","red100","gold100","gold200","black100","white"];const Fp={name:"DtRecipeTopBannerInfo",props:{colorCode:{type:String,default:"green300",validator:function(t){return Js.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 Vp=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)])},jp=[],zp=p.normalizeComponent(Fp,Vp,jp,!1,null,null,null,null);const Hp=zp.exports,Xt="promptmenu",Qt="promptcollect",Jt="promptplay",en="gotoexpert",yt="goto",tn="branch",nn="transfer",sn="hangup",ea={[Xt]:"keypad",[Qt]:"dialer",[Jt]:"volume-2",[en]:"expert-node",[tn]:"branch",[yt]:"call-merge",[nn]:"transfer",[sn]:"phone-hang-up"},qp={[Xt]:"Menu",[Qt]:"Collect",[Jt]:"Play",[en]:"Expert",[tn]:"Branch",[yt]:"Go-to",[nn]:"Transfer",[sn]:"Hangup"},Se={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"}},Kp={[Xt]:Se.PROMPT,[Qt]:Se.PROMPT,[Jt]:Se.PROMPT,[en]:Se.LOGIC,[tn]:Se.LOGIC,[yt]:Se.LOGIC,[nn]:Se.TERMINAL,[sn]:Se.TERMINAL};const Up={name:"DtRecipeIvrNode",components:{DtCard:ts,DtButton:j,DtDropdown:ks,DtIcon:k},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 ea[this.nodeType]},headerColor(){const{normal:t,selected:e}=Kp[this.nodeType];return this.isSelected?e:t},isGotoNode(){return this.nodeType===yt}},methods:{openMenu(){this.isOpen=!0}}};var Gp=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-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(i){e.isOpen=i}},scopedSlots:e._u([{key:"anchor",fn:function(){return[n("dt-button",{attrs:{importance:"clear",kind:"muted","aria-label":e.menuButtonAriaLabel},on:{click:function(i){return i.stopPropagation(),i.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:i}){return[n("div",{staticClass:"d-w164"},[e._t("menuItems",null,{close:i})],2)]}}],null,!0)})]},proxy:!0},{key:"content",fn:function(){return[e._t("content")]},proxy:!0}],null,!0)})],2)},Wp=[],Yp=p.normalizeComponent(Up,Gp,Wp,!1,null,null,null,null);const Zp=Yp.exports;const Xp={name:"DtRecipeGroupedChip",components:{DtChip:Zn},computed:{}};var Qp=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)},Jp=[],ef=p.normalizeComponent(Xp,Qp,Jp,!1,null,null,null,null);const tf=ef.exports;const nf={name:"DtRecipeSettingsMenuButton",components:{DtButton:j,DtIcon:k},props:{updateAvailable:{type:Boolean,default:!1},ariaLabel:{type:String,required:!0}},emits:["click"]};var sf=function(){var e=this,n=e._self._c;return e.updateAvailable?n("dt-button",e._g({staticClass:"d-h32 d-bar-pill d-bgc-blue-200 d-bgo25 h:d-bgo50 d-bc-blue-500 d-bco25 d-fc-blue-500",attrs:{importance:"outlined",size:"xs","icon-position":"right","aria-label":e.ariaLabel},scopedSlots:e._u([{key:"icon",fn:function(){return[n("dt-icon",{staticClass:"d-fc-blue-500",attrs:{name:"more-vertical",size:"300"}})]},proxy:!0}],null,!1,993491315)},e.$listeners),[e._t("default")],2):n("dt-button",e._g({staticClass:"settings-menu-button d-p0 d-bar24 d-h32 d-w24 d-theme-topbar-fc",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))},af=[],rf=p.normalizeComponent(nf,sf,af,!1,null,"5f15fa46",null,null);const of=rf.exports,B={INBOX:"inbox",CONTACTS:"contacts",CHANNELS:"channels",THREADS:"threads",LOCKED_CHANNEL:"locked channel",CONTACT_CENTER:"contact center",QUICK_START:"quick start",COACHING_GROUP:"coaching group",COACHING_CENTER:"coaching center",DIALBOT:"dialbot",ASSIGNED:"assigned",DIGITAL:"digital"},ta={[B.INBOX]:"inbox",[B.CONTACTS]:"contacts",[B.CHANNELS]:"hash",[B.THREADS]:"thread",[B.LOCKED_CHANNEL]:"lock",[B.QUICK_START]:"sparkle",[B.COACHING_GROUP]:"users",[B.COACHING_CENTER]:"external-link","locked channel unread":"lock-filled","channel unread":"hash-bold",[B.ASSIGNED]:"at-sign",[B.DIGITAL]:"message"},ft={"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"},na="If type is contact center, color must be oneof the following:"+Object.keys(ft).join(", "),ia=["300","200"],lf={};var df=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)])},cf=[],uf=p.normalizeComponent(lf,df,cf,!1,null,null,null,null);const pf=uf.exports,ff={name:"DtRecipeLeftbarGeneralRowIcon",components:{DtIcon:k,IconDialbot:pf},props:{type:{type:String,default:null},color:{type:String,default:null},iconSize:{type:String,default:"300"}},computed:{isIconType(){return![B.DIALBOT,B.CONTACT_CENTER].includes(this.type)},isContactCenterType(){return this.type===B.CONTACT_CENTER},isDialbotType(){return this.type===B.DIALBOT},getIconName(){return ta[this.type]},contactCenterIconClasses(){return["dt-leftbar-row__icon-cc",ft[this.color]]},dialbotClasses(){return["d-w24","d-h24","d-d-flex","d-ai-center","d-jc-center"]}}};var hf=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()},mf=[],_f=p.normalizeComponent(ff,hf,mf,!1,null,null,null,null);const gf=_f.exports;const vf={name:"DtRecipeGeneralRow",components:{DtEmojiTextWrapper:p.DtEmojiTextWrapper,DtBadge:Ui,DtIcon:k,DtButton:j,DtTooltip:Zt,DtRecipeLeftbarGeneralRowIcon:gf},inheritAttrs:!1,props:{type:{type:String,default:"inbox",validator:t=>Object.values(B).includes(t)},ariaLabel:{type:String,default:""},description:{type:String,required:!0},color:{type:String,default:null,validator:t=>Object.keys(ft).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=>ia.includes(t)}},emits:["click","call"],data(){return{actionFocused:!1}},computed:{leftbarGeneralRowClasses(){return["dt-leftbar-row",{"dt-leftbar-row--no-action":!this.hasCallButton,"dt-leftbar-row--has-unread":this.hasUnreads,"dt-leftbar-row--selected":this.selected,"dt-leftbar-row--muted":this.muted,"dt-leftbar-row--action-focused":this.actionFocused}]},getIcon(){switch(this.type){case B.CHANNELS:if(this.hasUnreads)return"channel unread";break;case B.LOCKED_CHANNEL:if(this.hasUnreads)return"locked channel unread";break}return this.type},getAriaLabel(){return this.ariaLabel?this.ariaLabel:`${this.description} ${this.unreadCountTooltip} ${this.dndTextTooltip}`}},watch:{$props:{immediate:!0,deep:!0,handler(){this.validateProps()}}},methods:{validateProps(){this.type===B.CONTACT_CENTER&&!Object.keys(ft).includes(this.color)&&console.error(na)}}};var bf=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}},"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"},[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),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",{staticClass:"dt-leftbar-row__dnd"},[e._v(" "+e._s(e.dndText)+" ")])]},proxy:!0}],null,!1,1506147022)}):e._e(),e.activeVoiceChat?n("div",{staticClass:"dt-leftbar-row__active-voice"},[n("dt-icon",{attrs:{size:"300",name:"activity"}})],1):e.unreadCount&&e.hasUnreads?n("dt-tooltip",{attrs:{message:e.unreadCountTooltip,placement:"top"},scopedSlots:e._u([{key:"anchor",fn:function(){return[n("dt-badge",{attrs:{kind:"count",type:"bulletin","data-qa":"dt-leftbar-row-unread-badge"}},[e._v(" "+e._s(e.unreadCount)+" ")])]},proxy:!0}])}):e._e()],1)]),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:"",size:"xs",kind:"inverted","aria-label":e.callButtonTooltip},on:{focus:function(i){e.actionFocused=!0},blur:function(i){e.actionFocused=!1},mouseleave:function(i){e.actionFocused=!1},click:function(i){return i.stopPropagation(),e.$emit("call",i)}},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,4111698736)})],1):e._e()])},yf=[],Sf=p.normalizeComponent(vf,bf,yf,!1,null,null,null,null);const ei=Sf.exports,Cf={name:"DtRecipeGroupRow",components:{DtIcon:k,DtRecipeGeneralRow:ei},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"]};var If=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.groupCountText} ${e.names}`,"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))},Ef=[],wf=p.normalizeComponent(Cf,If,Ef,!1,null,null,null,null);const Of=wf.exports,xf={name:"DtRecipeGroupRow",components:{DtAvatar:Ht,DtIcon:k,DtRecipeGeneralRow:ei,DtEmojiTextWrapper:p.DtEmojiTextWrapper},inheritAttrs:!1,props:{avatarSrc:{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}},avatarInitial(){var t;return((t=this.name)==null?void 0:t[0])??""}}};var Tf=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.name} ${e.presenceText} ${e.userStatus}`,"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:{size:"sm",seed:e.avatarSeed,presence:e.avatarPresence}},[e.avatarSrc?n("img",{attrs:{"data-qa":"dt-avatar-image",src:e.avatarSrc,alt:""}}):e.noInitials?[n("dt-icon",{attrs:{name:"user",size:"200"}})]:[e._v(" "+e._s(e.avatarInitial)+" ")]],2)]},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))},Lf=[],Af=p.normalizeComponent(xf,Tf,Lf,!1,null,null,null,null);const Df=Af.exports,sa=["up","down"],aa=["mentions","messages"];const $f={name:"DtRecipeUnreadPill",components:{DtIcon:k},props:{kind:{type:String,required:!0,validator:t=>aa.includes(t)},direction:{type:String,required:!0,validator:t=>sa.includes(t)}},emits:["click"]};var Rf=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)},kf=[],Pf=p.normalizeComponent($f,Rf,kf,!1,null,null,null,null);const Nf=Pf.exports;const Bf={name:"DtRecipeFeedItemRow",components:{DtAvatar:Ht,DtLazyShow:Ze,DtListItem:mt},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}},emits:["hover","focus"],computed:{avatarInitials(){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)}}},methods:{setFocus(t){this.$emit("focus",t)},setHover(t){this.$emit("hover",t)}}};var Mf=function(){var e=this,n=e._self._c;return n("dt-list-item",e._g(e._b({ref:"FeedItemRef",class:["d-w100p","d-box-border","d-ps-relative","d-px8",{"d-bgc-secondary-opaque":e.isActive}],attrs:{"navigation-type":"none","data-qa":"feed-item-row"},scopedSlots:e._u([{key:"left",fn:function(){return[e.showHeader?n("dt-avatar",{attrs:{"avatar-class":"d-mt4",initials:e.avatarInitials}},[e.avatarImageUrl?n("img",{attrs:{"data-qa":"feed-item-row-avatar-img",alt:"",src:e.avatarImageUrl}}):e._e()]):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":"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":"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":"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":"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":"feed-item-row-content"}},[e._t("default")],2)])])},Ff=[],Vf=p.normalizeComponent(Bf,Mf,Ff,!1,null,null,null,null);const jf=Vf.exports;const zf={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 Hf=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)+" ")])},qf=[],Kf=p.normalizeComponent(zf,Hf,qf,!1,null,null,null,null);const Uf=Kf.exports,ra=["emojiUnicodeOrShortname","isSelected","ariaLabel","tooltip","num"];const Gf={name:"DtRecipeEmojiRow",components:{DtTooltip:Zt,DtButton:j,DtEmoji:p.DtEmoji,DtEmojiTextWrapper:p.DtEmojiTextWrapper},mixins:[],props:{reactions:{type:Array,default:()=>[],validator:t=>{for(const e of t)if(!ra.every(i=>e[i]!==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 Wf=function(){var e=this,n=e._self._c;return n("span",{staticClass:"d-d-flex d-fw-wrap"},e._l(e.reactions,function(i){return n("span",{key:i.unicodeOutput,staticClass:"d-mr4 d-mb4",attrs:{reaction:i}},[n("dt-tooltip",{staticClass:"d-d-inline-block",attrs:{"content-class":"d-wmx464"},on:{shown:s=>e.emojiHovered(i,s)},scopedSlots:e._u([{key:"anchor",fn:function({attrs:s}){return[n("dt-button",{class:["d-h24 d-bar16 d-py0 d-fs-200 d-mb0 d-t",i.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":i.ariaLabel,attrs:s},on:{click:function(r){return e.emojiClicked(i)}}},[n("span",{staticClass:"d-mr4"},[n("dt-emoji",{attrs:{size:"200",code:i.emojiUnicodeOrShortname}})],1),n("span",{staticClass:"d-fw-bold d-fs-100"},[e._v(" "+e._s(i.num)+" ")])])]}}],null,!0)},[n("span",{attrs:{"aria-hidden":"true"}},[n("dt-emoji-text-wrapper",{attrs:{size:"200"}},[e._v(" "+e._s(i.tooltip)+" ")])],1)])],1)}),0)},Yf=[],Zf=p.normalizeComponent(Gf,Wf,Yf,!1,null,null,null,null);const Xf=Zf.exports;exports.DtSkeleton=p.DtSkeleton;exports.DtSkeletonListItem=p.DtSkeletonListItem;exports.DtSkeletonParagraph=p.DtSkeletonParagraph;exports.DtSkeletonShape=p.DtSkeletonShape;exports.DtSkeletonText=p.DtSkeletonText;exports.SKELETON_HEADING_HEIGHTS=p.SKELETON_HEADING_HEIGHTS;exports.SKELETON_RIPPLE_DURATION=p.SKELETON_RIPPLE_DURATION;exports.SKELETON_SHAPES=p.SKELETON_SHAPES;exports.SKELETON_SHAPE_SIZES=p.SKELETON_SHAPE_SIZES;exports.SKELETON_TEXT_TYPES=p.SKELETON_TEXT_TYPES;exports.AVATAR_COLORS=Ki;exports.AVATAR_GROUP_VALIDATOR=_n;exports.AVATAR_ICON_SIZES=La;exports.AVATAR_KIND_MODIFIERS=hn;exports.AVATAR_PRESENCE_SIZE_MODIFIERS=qi;exports.AVATAR_PRESENCE_STATES=mn;exports.AVATAR_SIZE_MODIFIERS=Nt;exports.BADGE_DECORATION_MODIFIERS=bn;exports.BADGE_KIND_MODIFIERS=vn;exports.BADGE_TYPE_MODIFIERS=gn;exports.BREADCRUMBS_INVERTED_MODIFIER=Qi;exports.BREADCRUMB_ITEM_SELECTED_MODIFIER=Xi;exports.BUTTON_GROUP_ALIGNMENT=yn;exports.CALLBAR_BUTTON_VALID_WIDTH_SIZE=Jn;exports.CHIP_SIZE_MODIFIERS=An;exports.COLOR_CODES=Js;exports.DEFAULT_VALIDATION_MESSAGE_TYPE=Ni;exports.DESCRIPTION_SIZE_TYPES=Pi;exports.DtAvatar=Ht;exports.DtBadge=Ui;exports.DtBanner=gr;exports.DtBreadcrumbItem=es;exports.DtBreadcrumbs=Ar;exports.DtButton=j;exports.DtButtonGroup=Pr;exports.DtCard=ts;exports.DtCheckableInputMixin=Gn;exports.DtCheckbox=au;exports.DtCheckboxGroup=cu;exports.DtChip=Zn;exports.DtCodeblock=qr;exports.DtCollapsible=xo;exports.DtCombobox=as;exports.DtDropdown=ks;exports.DtDropdownSeparator=Md;exports.DtGroupableInputMixin=Wn;exports.DtIcon=k;exports.DtImageViewer=Hd;exports.DtInput=Ps;exports.DtInputGroup=Yn;exports.DtInputGroupMixin=Ns;exports.DtInputMixin=Un;exports.DtKeyboardListNavigationMixin=Nn;exports.DtKeyboardShortcut=Gu;exports.DtLazyShow=Ze;exports.DtLink=Ji;exports.DtListItem=mt;exports.DtListItemGroup=Sc;exports.DtListSection=_c;exports.DtModal=uc;exports.DtNotice=rc;exports.DtPagination=Oc;exports.DtPopover=Wt;exports.DtPresence=Hi;exports.DtRadio=$c;exports.DtRadioGroup=Bc;exports.DtRecipeCallbarButton=Qs;exports.DtRecipeCallbarButtonWithPopover=Rp;exports.DtRecipeComboboxMultiSelect=Ep;exports.DtRecipeComboboxWithPopover=Zs;exports.DtRecipeContactInfo=Mp;exports.DtRecipeContactRow=Df;exports.DtRecipeEmojiRow=Xf;exports.DtRecipeFeedItemRow=jf;exports.DtRecipeGeneralRow=ei;exports.DtRecipeGroupRow=Of;exports.DtRecipeGroupedChip=tf;exports.DtRecipeIvrNode=Zp;exports.DtRecipeSettingsMenuButton=of;exports.DtRecipeTimePill=Uf;exports.DtRecipeTopBannerInfo=Hp;exports.DtRecipeUnreadPill=Nf;exports.DtRootLayout=ip;exports.DtSelectMenu=wu;exports.DtStack=fp;exports.DtTab=Wc;exports.DtTabGroup=Hc;exports.DtTabPanel=Jc;exports.DtToast=Au;exports.DtToggle=Nu;exports.DtTooltip=Zt;exports.DtValidationMessages=Ee;exports.INPUT_SIZES=ze;exports.INPUT_TYPES=Ft;exports.IVR_NODE_BRANCH=tn;exports.IVR_NODE_EXPERT=en;exports.IVR_NODE_GO_TO=yt;exports.IVR_NODE_HANGUP=sn;exports.IVR_NODE_ICON_TYPES=ea;exports.IVR_NODE_LABELS=qp;exports.IVR_NODE_PROMPT_COLLECT=Qt;exports.IVR_NODE_PROMPT_MENU=Xt;exports.IVR_NODE_PROMPT_PLAY=Jt;exports.IVR_NODE_TRANSFER=nn;exports.LEFTBAR_GENERAL_ROW_CONTACT_CENTER_COLORS=ft;exports.LEFTBAR_GENERAL_ROW_CONTACT_CENTER_VALIDATION_ERROR=na;exports.LEFTBAR_GENERAL_ROW_ICON_MAPPING=ta;exports.LEFTBAR_GENERAL_ROW_ICON_SIZES=ia;exports.LEFTBAR_GENERAL_ROW_TYPES=B;exports.LINK_KIND_MODIFIERS=Vt;exports.LINK_VARIANTS=Yi;exports.MODAL_KIND_MODIFIERS=Tn;exports.MODAL_SIZE_MODIFIERS=Ln;exports.MULTI_SELECT_SIZES=Xs;exports.NOTICE_KINDS=Ye;exports.POPOVER_CONTENT_WIDTHS=qn;exports.POPOVER_HEADER_FOOTER_PADDING_CLASSES=As;exports.POPOVER_INITIAL_FOCUS_STRINGS=$s;exports.POPOVER_PADDING_CLASSES=xn;exports.POPOVER_ROLES=Ds;exports.PRESENCE_STATES=He;exports.PRESENCE_STATES_LIST=zi;exports.REACTIONS_ATTRIBUTES=ra;exports.ROOT_LAYOUT_RESPONSIVE_BREAKPOINTS=Ws;exports.ROOT_LAYOUT_SIDEBAR_POSITIONS=Xn;exports.SELECT_SIZE_MODIFIERS=Dn;exports.SELECT_STATE_MODIFIERS=js;exports.SHORTCUTS_ALIASES_LIST=zu;exports.SHORTCUTS_ICON_ALIASES=qe;exports.SHORTCUTS_ICON_SEPARATOR=Gs;exports.TAB_IMPORTANCE_MODIFIERS=Vs;exports.TAB_LIST_IMPORTANCE_MODIFIERS=Fs;exports.TAB_LIST_KIND_MODIFIERS=Ms;exports.TAB_LIST_SIZES=Bs;exports.TOAST_ROLES=zs;exports.TOOLTIP_DELAY_MS=qs;exports.TOOLTIP_DIRECTIONS=Hs;exports.TOOLTIP_HIDE_ON_CLICK_VARIANTS=Bu;exports.TOOLTIP_KIND_MODIFIERS=Ks;exports.TOOLTIP_STICKY_VALUES=Us;exports.UNREAD_PILL_DIRECTIONS=sa;exports.UNREAD_PILL_KINDS=aa;exports.VALIDATION_MESSAGE_TYPES=ee;exports.filterFormattedMessages=$n;exports.formatMessages=ot;exports.getUniqueString=M;exports.getValidationState=Ce;exports.validationMessageValidator=bt;