@dialpad/dialtone-vue 2.81.3 → 2.82.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.
@@ -0,0 +1,30 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const X=require("vue"),_=require("./emoji_text_wrapper-7d14f08d.cjs"),ee={ERROR:"error",WARNING:"warning",SUCCESS:"success"},Gi={LARGE:"lg",EXTRA_LARGE:"xl"},va={xs:"",sm:"",md:"",lg:"d-description--lg",xl:"d-description--xl"},ba={xs:"d-label--xs",sm:"d-label--sm",md:"",lg:"d-label--lg",xl:"d-label--xl"},q={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,ya="dt";var mn={},Sa={get exports(){return mn},set exports(t){mn=t}};(function(t){(function(e,n,i){function a(s){var u=this,d=c();u.next=function(){var o=2091639*u.s0+u.c*23283064365386963e-26;return u.s0=u.s1,u.s1=u.s2,u.s2=o-(u.c=o|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 l(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),o=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,o&&(typeof o=="object"&&l(o,d),f.state=function(){return l(d,{})}),f}function c(){var s=4022871197,u=function(d){d=String(d);for(var o=0;o<d.length;o++){s+=d.charCodeAt(o);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})(_.commonjsGlobal,t,!1)})(Sa);var _n={},Ca={get exports(){return _n},set exports(t){_n=t}};(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 o=s.x^s.x<<11;return s.x=s.y,s.y=s.z,s.z=s.w,s.w^=s.w>>>19^o^o>>>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 l(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,o=function(){return(u.next()>>>0)/4294967296};return o.double=function(){do var f=u.next()>>>11,h=(u.next()>>>0)/4294967296,v=(f+h)/(1<<21);while(v===0);return v},o.int32=u.next,o.quick=o,d&&(typeof d=="object"&&l(d,u),o.state=function(){return l(u,{})}),o}n&&n.exports?n.exports=p:i&&i.amd?i(function(){return p}):this.xor128=p})(_.commonjsGlobal,t,!1)})(Ca);var gn={},xa={get exports(){return gn},set exports(t){gn=t}};(function(t){(function(e,n,i){function a(c){var s=this,u="";s.next=function(){var o=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^(o^o<<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 l(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,o=function(){return(u.next()>>>0)/4294967296};return o.double=function(){do var f=u.next()>>>11,h=(u.next()>>>0)/4294967296,v=(f+h)/(1<<21);while(v===0);return v},o.int32=u.next,o.quick=o,d&&(typeof d=="object"&&l(d,u),o.state=function(){return l(u,{})}),o}n&&n.exports?n.exports=p:i&&i.amd?i(function(){return p}):this.xorwow=p})(_.commonjsGlobal,t,!1)})(xa);var vn={},wa={get exports(){return vn},set exports(t){vn=t}};(function(t){(function(e,n,i){function a(c){var s=this;s.next=function(){var d=s.x,o=s.i,f,h;return f=d[o],f^=f>>>7,h=f^f<<24,f=d[o+1&7],h^=f^f>>>10,f=d[o+3&7],h^=f^f>>>3,f=d[o+4&7],h^=f^f<<7,f=d[o+7&7],f=f^f<<13,h^=f^f<<9,d[o]=h,s.i=o+1&7,h};function u(d,o){var f,h=[];if(o===(o|0))h[0]=o;else for(o=""+o,f=0;f<o.length;++f)h[f&7]=h[f&7]<<15^o.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 l(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,o=function(){return(u.next()>>>0)/4294967296};return o.double=function(){do var f=u.next()>>>11,h=(u.next()>>>0)/4294967296,v=(f+h)/(1<<21);while(v===0);return v},o.int32=u.next,o.quick=o,d&&(d.x&&l(d,u),o.state=function(){return l(u,{})}),o}n&&n.exports?n.exports=p:i&&i.amd?i(function(){return p}):this.xorshift7=p})(_.commonjsGlobal,t,!1)})(wa);var bn={},Ea={get exports(){return bn},set exports(t){bn=t}};(function(t){(function(e,n,i){function a(c){var s=this;s.next=function(){var d=s.w,o=s.X,f=s.i,h,v;return s.w=d=d+1640531527|0,v=o[f+34&127],h=o[f=f+1&127],v^=v<<13,h^=h<<17,v^=v>>>15,h^=h>>>12,v=o[f]=v^h,s.i=f,v+(d^d>>>16)|0};function u(d,o){var f,h,v,S,C,O=[],R=128;for(o===(o|0)?(h=o,o=null):(o=o+"\0",h=0,R=Math.max(R,o.length)),v=0,S=-32;S<R;++S)o&&(h^=o.charCodeAt((S+32)%o.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[(o&&o.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 l(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,o=function(){return(u.next()>>>0)/4294967296};return o.double=function(){do var f=u.next()>>>11,h=(u.next()>>>0)/4294967296,v=(f+h)/(1<<21);while(v===0);return v},o.int32=u.next,o.quick=o,d&&(d.X&&l(d,u),o.state=function(){return l(u,{})}),o}n&&n.exports?n.exports=p:i&&i.amd?i(function(){return p}):this.xor4096=p})(_.commonjsGlobal,t,!1)})(Ea);var yn={},Ia={get exports(){return yn},set exports(t){yn=t}};(function(t){(function(e,n,i){function a(c){var s=this,u="";s.next=function(){var o=s.b,f=s.c,h=s.d,v=s.a;return o=o<<25^o>>>7^f,f=f-h|0,h=h<<24^h>>>8^v,v=v-o|0,s.b=o=o<<20^o>>>12^f,s.c=f=f-h|0,s.d=h<<16^f>>>16^v,s.a=v-o|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 l(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,o=function(){return(u.next()>>>0)/4294967296};return o.double=function(){do var f=u.next()>>>11,h=(u.next()>>>0)/4294967296,v=(f+h)/(1<<21);while(v===0);return v},o.int32=u.next,o.quick=o,d&&(typeof d=="object"&&l(d,u),o.state=function(){return l(u,{})}),o}n&&n.exports?n.exports=p:i&&i.amd?i(function(){return p}):this.tychei=p})(_.commonjsGlobal,t,!1)})(Ia);var Sn={},Oa={get exports(){return Sn},set exports(t){Sn=t}};const Ta={},La=Object.freeze(Object.defineProperty({__proto__:null,default:Ta},Symbol.toStringTag,{value:"Module"})),Aa=_.getAugmentedNamespace(La);(function(t){(function(e,n,i){var a=256,l=6,p=52,c="random",s=i.pow(a,l),u=i.pow(2,p),d=u*2,o=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(l),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=o&L+r[I%g]+(b=A[I])],A[L]=b;(w.g=function(E){for(var T,$=0,N=w.i,z=w.j,B=w.S;E--;)T=B[N=o&N+1],$=$*a+B[o&(B[N]=B[z=o&z+T])+(B[z]=T)];return w.i=N,w.j=z,$})(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[o&I]=o&(w^=b[o&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=Aa}catch{}}else i["seed"+c]=h})(typeof self<"u"?self:_.commonjsGlobal,[],Math)})(Oa);var $a=mn,Da=_n,Ra=gn,ka=vn,Pa=bn,Na=yn,Pe=Sn;Pe.alea=$a;Pe.xor128=Da;Pe.xorwow=Ra;Pe.xorshift7=ka;Pe.xor4096=Pa;Pe.tychei=Na;var Ui=Pe;let Ba=0,di;const Ma=typeof setImmediate=="function"?setImmediate:setTimeout;function V(t=ya){return`${t}${Ba++}`}function Nt(t,e){const n=Ui(e);return t[Math.floor(n()*t.length)]}function lt(t){return t?t.map(e=>typeof e=="string"?{message:e,type:Ki}:e):[]}function Mn(t){const e=Ce(t);return!t||!e?[]:t.filter(n=>!!n.message&&n.type===e)}function Ce(t){return t?Bt(t,ee.ERROR)?ee.ERROR:Bt(t,ee.WARNING)?ee.WARNING:Bt(t,ee.SUCCESS)?ee.SUCCESS:null:null}function Bt(t,e){return!t||!e?!1:t.some(n=>(n==null?void 0:n.type)===e)}const Fa={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}},Va=()=>new Promise(t=>{Ma(t)}),Wi=t=>t==null?void 0:t.toLowerCase().split("-").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join("");function za(t,e=300){clearTimeout(di),di=setTimeout(t,e)}function Yi(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:Nt,formatMessages:lt,filterFormattedMessages:Mn,hasFormattedMessageOfType:Bt,getValidationState:Ce,htmlFragment:Fa,flushPromises:Va,kebabCaseToPascalCase:Wi,debounce:za,isOutOfViewPort:Yi},He={BUSY:"busy",AWAY:"away",OFFLINE:"offline",ACTIVE:"active"},Zi=[He.BUSY,He.AWAY,He.OFFLINE,He.ACTIVE],ja={name:"DtPresence",props:{presence:{type:String,default:He.ACTIVE,validator:t=>Zi.includes(t)},srText:{type:String,default:null}}};var qa=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"}})])},Ha=[],Ga=_.normalizeComponent(ja,qa,Ha,!1,null,null,null,null);const Xi=Ga.exports,Ka={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 Wi(this.name)},currentIcon(){return _.DIALTONE_ICONS[this.iconName]}}};var Ua=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()},Wa=[],Ya=_.normalizeComponent(Ka,Ua,Wa,!1,null,null,null,null);const M=Ya.exports,Mt={xs:"d-avatar--xs",sm:"d-avatar--sm",md:"d-avatar--md",lg:"d-avatar--lg",xl:"d-avatar--xl"},Cn={default:"",icon:"d-avatar__icon",initials:"d-avatar__initials"},Za={md:"d-avatar__presence--md",lg:"d-avatar__presence--lg"},ci={NONE:"",BUSY:"busy",AWAY:"away",OFFLINE:"offline",ACTIVE:"active"},Xa=[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"]},Qa=3,Ja=2,pi=t=>t>1;const er={name:"DtAvatar",components:{DtPresence:Xi,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(Mt).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:Mt,AVATAR_KIND_MODIFIERS:Cn,AVATAR_PRESENCE_SIZE_MODIFIERS:Za,imageLoadedSuccessfully:null,slottedInitials:"",formattedInitials:"",initializing:!1}},computed:{avatarClasses(){return["d-avatar",Mt[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(Cn.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 Nt(Xa,this.seed)},randomizeGradientColorStops(){const t=new Set;let e=0;for(;t.size<Qa;){const i=this.seed===void 0?void 0:this.seed+e.toString();t.size===Ja?t.add(Nt(ui.with200,i)):t.add(Nt(ui.with100,i)),e++}const n=Ui(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 tr=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)},nr=[],ir=_.normalizeComponent(er,tr,nr,!1,null,null,null,null);const Gt=ir.exports,xn={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"},wn={label:"",count:"d-badge--count"},En={"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"},sr={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(wn).includes(t)},type:{type:String,default:"default",validator:t=>Object.keys(xn).includes(t)},decoration:{type:String,default:void 0,validator:t=>Object.keys(En).includes(t)}},data(){return{BADGE_TYPE_MODIFIERS:xn,BADGE_KIND_MODIFIERS:wn,BADGE_DECORATION_MODIFIERS:En}},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 ar=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()])},rr=[],or=_.normalizeComponent(sr,ar,rr,!1,null,null,null,null);const Qi=or.exports,Ze=["base","error","info","success","warning"],lr=["alert","alertdialog","status"],dr=new Map([["info","info"],["success","check-circle"],["warning","alert-triangle"],["error","alert-circle"],["base","bell"]]),cr={name:"DtNoticeIcon",components:{DtIcon:M},props:{kind:{type:String,default:"base",validate(t){return Ze.includes(t)}}},computed:{defaultIcon(){return dr.get(this.kind)}}};var ur=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()},pr=[],fr=_.normalizeComponent(cr,ur,pr,!1,null,null,null,null);const Fn=fr.exports,hr={name:"DtNoticeContent",props:{title:{type:String,default:""},titleId:{type:String,default:void 0},contentId:{type:String,default:void 0}}};var mr=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)])},_r=[],gr=_.normalizeComponent(hr,mr,_r,!1,null,null,null,null);const Vn=gr.exports,ln={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"},vr=["submit","reset","button"],mi={left:"d-btn__icon--left",right:"d-btn__icon--right",top:"d-btn__icon--top",bottom:"d-btn__icon--bottom"},br=[{circle:!0,kind:"default",importance:"primary",message:Rt(!0,"default","primary")},{circle:!0,kind:"danger",importance:"outlined",message:Rt(!0,"danger","outlined")},{circle:!0,kind:"muted",importance:"primary",message:Rt(!0,"muted","primary")},{circle:!1,kind:"muted",importance:"primary",message:Rt(!1,"muted","primary")}];function Rt(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 yr="danger",Sr="warning",Cr="success",Ji="muted",es="inverted",ts=["",yr,Sr,Cr,Ji,es],jt={default:"",warning:"d-link--warning",danger:"d-link--danger",success:"d-link--success",muted:"d-link--muted",inverted:"d-link--inverted"},xr={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(jt).includes(t)},disabled:{type:Boolean,default:!1},type:{type:String,default:"button",validator:t=>vr.includes(t)},width:{type:String,default:null},size:{type:String,default:"md",validator:t=>Object.keys(ln).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",jt[this.linkKind],ln[this.size]]:["d-btn",hi[this.importance],fi[this.kind],ln[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 br)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 wr=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-w100p","d-btn__label","base-button__label",e.labelClass],attrs:{"data-qa":"dt-button-label"}},[e._t("default")],2):e._e()])},Er=[],Ir=_.normalizeComponent(xr,wr,Er,!1,null,null,null,null);const G=Ir.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.`)}}},Or={name:"SrOnlyCloseButton",components:{DtIcon:M,DtButton:G},props:{visuallyHiddenCloseLabel:{type:String,default:null}},methods:{close(){this.$emit("close")}}};var Tr=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)},Lr=[],Ar=_.normalizeComponent(Or,Tr,Lr,!1,null,null,null,null);const Kt=Ar.exports,$r={name:"DtNoticeAction",components:{DtIcon:M,DtButton:G,SrOnlyCloseButton:Kt},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 Dr=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)},Rr=[],kr=_.normalizeComponent($r,Dr,Rr,!1,null,null,null,null);const zn=kr.exports,ns=':not(:disabled):not([aria-disabled="true"]):not([role="presentation"])',Pr=`${ns}:not([tabindex="-1"])`,Nr="button,[href],input,select,textarea,details,[tabindex]",mt={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(Nr)].filter(i=>{const a=window.getComputedStyle(i);return a.getPropertyValue("display")!=="none"&&a.getPropertyValue("visibility")!=="hidden"&&i.matches(e?ns:Pr)}):[]},focusTrappedTabPress(t,e){if(!(t.key==="Tab"))return;const i=this._getFocusableElements(e);if(!i.length){t.preventDefault();return}const a=this._getFirstFocusElement(i),l=i[i.length-1];t.shiftKey?document.activeElement===a&&(l.focus(),t.preventDefault()):document.activeElement===l&&(a.focus(),t.preventDefault())}}},Br={name:"DtBanner",components:{DtNoticeIcon:Fn,DtNoticeContent:Vn,DtNoticeAction:zn},mixins:[mt,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 Ze.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 Mr=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)])},Fr=[],Vr=_.normalizeComponent(Br,Mr,Fr,!1,null,null,null,null);const zr=Vr.exports,is="d-breadcrumbs__item--selected",ss="d-breadcrumbs--inverted",jr={name:"DtLink",props:{kind:{type:String,default:"",validator(t){return ts.includes(t)}}},emits:["click","focusin","focusout"],data(){return{LINK_KIND_MODIFIERS:jt}}};var qr=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)},Hr=[],Gr=_.normalizeComponent(jr,qr,Hr,!1,null,null,null,null);const as=Gr.exports,Kr={name:"DtBreadcrumbItem",components:{DtLink:as},inheritAttrs:!1,props:{inverted:{type:Boolean,default:!1},selected:{type:Boolean,default:!1},label:{type:String,default:""}},data(){return{BREADCRUMB_ITEM_SELECTED_MODIFIER:is}},computed:{linkKind(){return this.inverted?es:Ji},ariaCurrent(){return this.selected?"location":void 0}}};var Ur=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)},Wr=[],Yr=_.normalizeComponent(Kr,Ur,Wr,!1,null,null,null,null);const rs=Yr.exports,Zr={name:"DtBreadcrumbs",components:{DtBreadcrumbItem:rs},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:ss}},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,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)])},Qr=[],Jr=_.normalizeComponent(Zr,Xr,Qr,!1,null,null,null,null);const eo=Jr.exports,In={start:"d-btn-group--start",end:"d-btn-group--end","space-between":"d-btn-group--space-between"},to={name:"DtButtonGroup",props:{alignment:{type:String,default:"start",validator:t=>Object.keys(In).includes(t)}},data(){return{BUTTON_GROUP_ALIGNMENT:In}}};var no=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)},io=[],so=_.normalizeComponent(to,no,io,!1,null,null,null,null);const ao=so.exports,ro={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 oo=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()])},lo=[],co=_.normalizeComponent(ro,oo,lo,!1,null,null,null,null);const os=co.exports,uo={name:"DtCodeblock",props:{text:{type:String,required:!0}}};var po=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
+ `)])},fo=[],ho=_.normalizeComponent(uo,po,fo,!1,null,null,null,null);const mo=ho.exports,_o={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 l=t.offsetTop,p=a||t.parentElement,c=this._getScrollBounds(p),s=c.bottom-c.top,u=this._getElementHeight(t),d=l+u;let o=-1;switch(e){case"top":o=l;break;case"center":o=l+(u-s)/2;break;case"bottom":o=o=d-s;break;default:l-c.top<=s/2?o=l:o=d-s;break}this._setScrollTop(p,o,c,l,d,n,i)},_setScrollTop(t,e,n,i,a,l,p){n=n||this._getScrollBounds(t);const c=n.bottom-n.top;if(l&&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}}},go="listElementKey is required or the referenced element doesn't exist. Received listElement: ",jn=({listItemRole:t="option",indexKey:e="highlightIndex",idKey:n="highlightId",listElementKey:i="listRef",activeItemKey:a="",openMethod:l=null,afterHighlightMethod:p=null,beginningOfListMethod:c=null,endOfListMethod:s=null,scrollToOnHighlight:u=!0,focusOnKeyboardNavigation:d=!1}={})=>({mixins:[_o],data(){return{[e]:-1,[n]:"",scrollToOnHighlight:u,focusOnKeyboardNavigation:d}},provide(){return{highlightId:()=>this[n]}},methods:{_getListElement(){var o;return((o=this[i]())==null?void 0:o.$el)||this[i]()},_itemsLength(){const o=this._getListItemNodes();return o===null?0:o.length},_getListItemNodes(){const o=this._getListElement();return o?Array.from(o.querySelectorAll(`[role="${t}"], #sr-only-close-button`)):(console.error(go,o),null)},onUpKey(){l&&this[l](!0),this[e]>0?this.setHighlightIndex(this[e]-1):c&&this[c](),this.scrollActiveItemIntoViewIfNeeded(),this.focusActiveItemIfNeeded()},onDownKey(){l&&this[l](!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(o){const f=this._getListItemNodes(),h=f.filter(C=>C.textContent.trim().toLowerCase().startsWith(o.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(o){return o.length===1},jumpToBeginning(){this.setHighlightIndex(0)},jumpToEnd(){this.setHighlightIndex(this._itemsLength()-1)},setHighlightIndex(o){this[e]=o,this[n]=this._getItemId(o),this._itemsLength()&&p&&this[p](o)},setHighlightId(o){this[n]=o,this[e]=this._getItemIndex(o),this._itemsLength()&&p&&this[p](this._getItemIndex(o))},_getItemIndex(o){const f=this._getListElement();return f?Array.from(f.querySelectorAll(`[role="${t}"], #sr-only-close-button`)).indexOf(f.querySelector(`#${o}`)):void 0},_getItemId(o){var h;const f=this._getListElement();if(f)return(h=f.querySelectorAll(`[role="${t}"], #sr-only-close-button`)[o])==null?void 0:h.id},scrollActiveItemIntoViewIfNeeded(){if(!this.scrollToOnHighlight)return;const o=this[a];if(o){const f=this._getListElement();this.scrollElementIntoViewIfNeeded(o,null,null,f)}},focusActiveItemIfNeeded(){if(!this.focusOnKeyboardNavigation)return;const o=this[a];o&&o.focus()}}}),dn={DEFAULT:"default",CUSTOM:"custom"},$e={ARROW_KEYS:"arrow-keys",TAB:"tab",NONE:"none"};const vo={name:"DtDefaultListItem"};var bo=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)},yo=[],So=_.normalizeComponent(vo,bo,yo,!1,null,null,null,null);const _i=So.exports;const Co={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:dn.DEFAULT,validator:t=>Object.values(dn).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 dn.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 xo=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)},wo=[],Eo=_.normalizeComponent(Co,xo,wo,!1,null,null,null,null);const _t=Eo.exports,Io={name:"ComboboxLoadingList",components:{DtListItem:_t,DtSkeleton:_.DtSkeleton}};var Oo=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)},To=[],Lo=_.normalizeComponent(Io,Oo,To,!1,null,null,null,null);const ls=Lo.exports;const Ao={name:"ComboboxEmptyList",components:{DtListItem:_t},props:{message:{type:String,required:!0},itemClass:{type:[String,Object,Array],default:""}}};var $o=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)},Do=[],Ro=_.normalizeComponent(Ao,$o,Do,!1,null,null,null,null);const ds=Ro.exports,cs={EXTRA_SMALL:"xs",SMALL:"sm",DEFAULT:"md",LARGE:"lg",EXTRA_LARGE:"xl"},ko={name:"DtCombobox",components:{ComboboxLoadingList:ls,ComboboxEmptyList:ds},mixins:[jn({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(cs).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 Po=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()])},No=[],Bo=_.normalizeComponent(ko,Po,No,!1,null,null,null,null);const us=Bo.exports;const Mo={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 Fo=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)},Vo=[],zo=_.normalizeComponent(Mo,Fo,Vo,!1,null,null,null,null);const jo=zo.exports,qo={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 Ho=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)])},Go=[],Ko=_.normalizeComponent(qo,Ho,Go,!1,null,null,null,null);const Xe=Ko.exports,Uo={name:"DtCollapsible",components:{DtButton:G,DtCollapsibleLazyShow:jo,DtLazyShow:Xe,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 Wo=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)},Yo=[],Zo=_.normalizeComponent(Uo,Wo,Yo,!1,null,null,null,null);const Xo=Zo.exports;var U="top",te="bottom",ne="right",W="left",Ut="auto",gt=[U,te,ne,W],Ke="start",dt="end",Qo="clippingParents",ps="viewport",it="popper",Jo="reference",gi=gt.reduce(function(t,e){return t.concat([e+"-"+Ke,e+"-"+dt])},[]),fs=[].concat(gt,[Ut]).reduce(function(t,e){return t.concat([e,e+"-"+Ke,e+"-"+dt])},[]),el="beforeRead",tl="read",nl="afterRead",il="beforeMain",sl="main",al="afterMain",rl="beforeWrite",ol="write",ll="afterWrite",On=[el,tl,nl,il,sl,al,rl,ol,ll];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 dl(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var i=e.styles[n]||{},a=e.attributes[n]||{},l=e.elements[n];!Z(l)||!ue(l)||(Object.assign(l.style,i),Object.keys(a).forEach(function(p){var c=a[p];c===!1?l.removeAttribute(p):l.setAttribute(p,c===!0?"":c)}))})}function cl(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],l=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(l).forEach(function(s){a.removeAttribute(s)}))})}}const hs={name:"applyStyles",enabled:!0,phase:"write",fn:dl,effect:cl,requires:["computeStyles"]};function se(t){return t.split("-")[0]}var De=Math.max,qt=Math.min,Ue=Math.round;function Tn(){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 ms(){return!/^((?!chrome|android).)*safari/i.test(Tn())}function We(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var i=t.getBoundingClientRect(),a=1,l=1;e&&Z(t)&&(a=t.offsetWidth>0&&Ue(i.width)/t.offsetWidth||1,l=t.offsetHeight>0&&Ue(i.height)/t.offsetHeight||1);var p=Re(t)?Q(t):window,c=p.visualViewport,s=!ms()&&n,u=(i.left+(s&&c?c.offsetLeft:0))/a,d=(i.top+(s&&c?c.offsetTop:0))/l,o=i.width/a,f=i.height/l;return{width:o,height:f,top:d,right:u+o,bottom:d+f,left:u,x:u,y:d}}function Hn(t){var e=We(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 _s(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 ul(t){return["table","td","th"].indexOf(ue(t))>=0}function xe(t){return((Re(t)?t.ownerDocument:t.document)||window.document).documentElement}function Wt(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 pl(t){var e=/firefox/i.test(Tn()),n=/Trident/i.test(Tn());if(n&&Z(t)){var i=re(t);if(i.position==="fixed")return null}var a=Wt(t);for(qn(a)&&(a=a.host);Z(a)&&["html","body"].indexOf(ue(a))<0;){var l=re(a);if(l.transform!=="none"||l.perspective!=="none"||l.contain==="paint"||["transform","perspective"].indexOf(l.willChange)!==-1||e&&l.willChange==="filter"||e&&l.filter&&l.filter!=="none")return a;a=a.parentNode}return null}function vt(t){for(var e=Q(t),n=vi(t);n&&ul(n)&&re(n).position==="static";)n=vi(n);return n&&(ue(n)==="html"||ue(n)==="body"&&re(n).position==="static")?e:n||pl(t)||e}function Gn(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function st(t,e,n){return De(t,qt(e,n))}function fl(t,e,n){var i=st(t,e,n);return i>n?n:i}function gs(){return{top:0,right:0,bottom:0,left:0}}function vs(t){return Object.assign({},gs(),t)}function bs(t,e){return e.reduce(function(n,i){return n[i]=t,n},{})}var hl=function(e,n){return e=typeof e=="function"?e(Object.assign({},n.rects,{placement:n.placement})):e,vs(typeof e!="number"?e:bs(e,gt))};function ml(t){var e,n=t.state,i=t.name,a=t.options,l=n.elements.arrow,p=n.modifiersData.popperOffsets,c=se(n.placement),s=Gn(c),u=[W,ne].indexOf(c)>=0,d=u?"height":"width";if(!(!l||!p)){var o=hl(a.padding,n),f=Hn(l),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=vt(l),R=O?s==="y"?O.clientHeight||0:O.clientWidth||0:0,k=S/2-C/2,r=o[h],b=R-f[d]-o[v],g=R/2-f[d]/2+k,w=st(r,g,b),I=s;n.modifiersData[i]=(e={},e[I]=w,e.centerOffset=w-g,e)}}function _l(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(" "))),!_s(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 gl={name:"arrow",enabled:!0,phase:"main",fn:ml,effect:_l,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ye(t){return t.split("-")[1]}var vl={top:"auto",right:"auto",bottom:"auto",left:"auto"};function bl(t,e){var n=t.x,i=t.y,a=e.devicePixelRatio||1;return{x:Ue(n*a)/a||0,y:Ue(i*a)/a||0}}function bi(t){var e,n=t.popper,i=t.popperRect,a=t.placement,l=t.variation,p=t.offsets,c=t.position,s=t.gpuAcceleration,u=t.adaptive,d=t.roundOffsets,o=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=vt(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)&&l===dt){r=te;var L=o&&g===b&&b.visualViewport?b.visualViewport.height:g[w];S-=L-i.height,S*=s?1:-1}if(a===W||(a===U||a===te)&&l===dt){k=ne;var A=o&&g===b&&b.visualViewport?b.visualViewport.width:g[I];h-=A-i.width,h*=s?1:-1}}var E=Object.assign({position:c},u&&vl),T=d===!0?bl({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 yl(t){var e=t.state,n=t.options,i=n.gpuAcceleration,a=i===void 0?!0:i,l=n.adaptive,p=l===void 0?!0:l,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(o){return u.indexOf(o)>=0})&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',`
6
+
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
+
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:Ye(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 Sl={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:yl,data:{}};var kt={passive:!0};function Cl(t){var e=t.state,n=t.instance,i=t.options,a=i.scroll,l=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 l&&u.forEach(function(d){d.addEventListener("scroll",n.update,kt)}),c&&s.addEventListener("resize",n.update,kt),function(){l&&u.forEach(function(d){d.removeEventListener("scroll",n.update,kt)}),c&&s.removeEventListener("resize",n.update,kt)}}const xl={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Cl,data:{}};var wl={left:"right",right:"left",bottom:"top",top:"bottom"};function Ft(t){return t.replace(/left|right|bottom|top/g,function(e){return wl[e]})}var El={start:"end",end:"start"};function yi(t){return t.replace(/start|end/g,function(e){return El[e]})}function Kn(t){var e=Q(t),n=e.pageXOffset,i=e.pageYOffset;return{scrollLeft:n,scrollTop:i}}function Un(t){return We(xe(t)).left+Kn(t).scrollLeft}function Il(t,e){var n=Q(t),i=xe(t),a=n.visualViewport,l=i.clientWidth,p=i.clientHeight,c=0,s=0;if(a){l=a.width,p=a.height;var u=ms();(u||!u&&e==="fixed")&&(c=a.offsetLeft,s=a.offsetTop)}return{width:l,height:p,x:c+Un(t),y:s}}function Ol(t){var e,n=xe(t),i=Kn(t),a=(e=t.ownerDocument)==null?void 0:e.body,l=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+Un(t),s=-i.scrollTop;return re(a||n).direction==="rtl"&&(c+=De(n.clientWidth,a?a.clientWidth:0)-l),{width:l,height:p,x:c,y:s}}function Wn(t){var e=re(t),n=e.overflow,i=e.overflowX,a=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+i)}function ys(t){return["html","body","#document"].indexOf(ue(t))>=0?t.ownerDocument.body:Z(t)&&Wn(t)?t:ys(Wt(t))}function at(t,e){var n;e===void 0&&(e=[]);var i=ys(t),a=i===((n=t.ownerDocument)==null?void 0:n.body),l=Q(i),p=a?[l].concat(l.visualViewport||[],Wn(i)?i:[]):i,c=e.concat(p);return a?c:c.concat(at(Wt(p)))}function Ln(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Tl(t,e){var n=We(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===ps?Ln(Il(t,n)):Re(e)?Tl(e,n):Ln(Ol(xe(t)))}function Ll(t){var e=at(Wt(t)),n=["absolute","fixed"].indexOf(re(t).position)>=0,i=n&&Z(t)?vt(t):t;return Re(i)?e.filter(function(a){return Re(a)&&_s(a,i)&&ue(a)!=="body"}):[]}function Al(t,e,n,i){var a=e==="clippingParents"?Ll(t):[].concat(e),l=[].concat(a,[n]),p=l[0],c=l.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 Ss(t){var e=t.reference,n=t.element,i=t.placement,a=i?se(i):null,l=i?Ye(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?Gn(a):null;if(u!=null){var d=u==="y"?"height":"width";switch(l){case Ke:s[u]=s[u]-(e[d]/2-n[d]/2);break;case dt:s[u]=s[u]+(e[d]/2-n[d]/2);break}}return s}function ct(t,e){e===void 0&&(e={});var n=e,i=n.placement,a=i===void 0?t.placement:i,l=n.strategy,p=l===void 0?t.strategy:l,c=n.boundary,s=c===void 0?Qo:c,u=n.rootBoundary,d=u===void 0?ps:u,o=n.elementContext,f=o===void 0?it:o,h=n.altBoundary,v=h===void 0?!1:h,S=n.padding,C=S===void 0?0:S,O=vs(typeof C!="number"?C:bs(C,gt)),R=f===it?Jo:it,k=t.rects.popper,r=t.elements[v?R:f],b=Al(Re(r)?r:r.contextElement||xe(t.elements.popper),s,d,p),g=We(t.elements.reference),w=Ss({reference:g,element:k,strategy:"absolute",placement:a}),I=Ln(Object.assign({},k,w)),L=f===it?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===it&&E){var T=E[a];Object.keys(A).forEach(function($){var N=[ne,te].indexOf($)>=0?1:-1,z=[U,te].indexOf($)>=0?"y":"x";A[$]+=T[z]*N})}return A}function $l(t,e){e===void 0&&(e={});var n=e,i=n.placement,a=n.boundary,l=n.rootBoundary,p=n.padding,c=n.flipVariations,s=n.allowedAutoPlacements,u=s===void 0?fs:s,d=Ye(i),o=d?c?gi:gi.filter(function(v){return Ye(v)===d}):gt,f=o.filter(function(v){return u.indexOf(v)>=0});f.length===0&&(f=o,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]=ct(t,{placement:S,boundary:a,rootBoundary:l,padding:p})[se(S)],v},{});return Object.keys(h).sort(function(v,S){return h[v]-h[S]})}function Dl(t){if(se(t)===Ut)return[];var e=Ft(t);return[yi(t),e,yi(e)]}function Rl(t){var e=t.state,n=t.options,i=t.name;if(!e.modifiersData[i]._skip){for(var a=n.mainAxis,l=a===void 0?!0:a,p=n.altAxis,c=p===void 0?!0:p,s=n.fallbackPlacements,u=n.padding,d=n.boundary,o=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?[Ft(C)]:Dl(C)),r=[C].concat(k).reduce(function(pe,ie){return pe.concat(se(ie)===Ut?$l(e,{placement:ie,boundary:d,rootBoundary:o,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),$=Ye(E)===Ke,N=[U,te].indexOf(T)>=0,z=N?"width":"height",B=ct(e,{placement:E,boundary:d,rootBoundary:o,altBoundary:f,padding:u}),H=N?$?ne:W:$?te:U;b[z]>g[z]&&(H=Ft(H));var j=Ft(H),oe=[];if(l&&oe.push(B[T]<=0),c&&oe.push(B[H]<=0,B[j]<=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(Ne){var he=w.get(Ne);if(he)return he.slice(0,ie).every(function(Be){return Be})});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 kl={name:"flip",enabled:!0,phase:"main",fn:Rl,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 Pl(t){var e=t.state,n=t.name,i=e.rects.reference,a=e.rects.popper,l=e.modifiersData.preventOverflow,p=ct(e,{elementContext:"reference"}),c=ct(e,{altBoundary:!0}),s=Ci(p,i),u=Ci(c,a,l),d=xi(s),o=xi(u);e.modifiersData[n]={referenceClippingOffsets:s,popperEscapeOffsets:u,isReferenceHidden:d,hasPopperEscaped:o},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":o})}const Nl={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Pl};function Bl(t,e,n){var i=se(t),a=[W,U].indexOf(i)>=0?-1:1,l=typeof n=="function"?n(Object.assign({},e,{placement:t})):n,p=l[0],c=l[1];return p=p||0,c=(c||0)*a,[W,ne].indexOf(i)>=0?{x:c,y:p}:{x:p,y:c}}function Ml(t){var e=t.state,n=t.options,i=t.name,a=n.offset,l=a===void 0?[0,0]:a,p=fs.reduce(function(d,o){return d[o]=Bl(o,e.rects,l),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 Fl={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Ml};function Vl(t){var e=t.state,n=t.name;e.modifiersData[n]=Ss({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const zl={name:"popperOffsets",enabled:!0,phase:"read",fn:Vl,data:{}};function jl(t){return t==="x"?"y":"x"}function ql(t){var e=t.state,n=t.options,i=t.name,a=n.mainAxis,l=a===void 0?!0:a,p=n.altAxis,c=p===void 0?!1:p,s=n.boundary,u=n.rootBoundary,d=n.altBoundary,o=n.padding,f=n.tether,h=f===void 0?!0:f,v=n.tetherOffset,S=v===void 0?0:v,C=ct(e,{boundary:s,rootBoundary:u,padding:o,altBoundary:d}),O=se(e.placement),R=Ye(e.placement),k=!R,r=Gn(O),b=jl(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(l){var $,N=r==="y"?U:W,z=r==="y"?te:ne,B=r==="y"?"height":"width",H=g[r],j=H+C[N],oe=H-C[z],le=h?-I[B]/2:0,Ee=R===Ke?w[B]:I[B],de=R===Ke?-I[B]:-w[B],Ie=e.elements.arrow,pe=h&&Ie?Hn(Ie):{width:0,height:0},ie=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:gs(),fe=ie[N],Ne=ie[z],he=st(0,w[B],pe[B]),Be=k?w[B]/2-le-he-fe-A.mainAxis:Ee-he-fe-A.mainAxis,ve=k?-w[B]/2+le+he+Ne+A.mainAxis:de+he+Ne+A.mainAxis,Me=e.elements.arrow&&vt(e.elements.arrow),Ct=Me?r==="y"?Me.clientTop||0:Me.clientLeft||0:0,Qe=($=E==null?void 0:E[r])!=null?$:0,xt=H+Be-Qe-Ct,wt=H+ve-Qe,Je=st(h?qt(j,xt):j,H,h?De(oe,wt):oe);g[r]=Je,T[r]=Je-H}if(c){var et,Et=r==="x"?U:W,It=r==="x"?te:ne,me=g[b],be=b==="y"?"height":"width",tt=me+C[Et],Oe=me-C[It],nt=[U,W].indexOf(O)!==-1,Ot=(et=E==null?void 0:E[b])!=null?et:0,Tt=nt?tt:me-w[be]-I[be]-Ot+A.altAxis,Lt=nt?me+w[be]+I[be]-Ot-A.altAxis:Oe,At=h&&nt?fl(Tt,me,Lt):st(h?Tt:tt,me,h?Lt:Oe);g[b]=At,T[b]=At-me}e.modifiersData[i]=T}}const Hl={name:"preventOverflow",enabled:!0,phase:"main",fn:ql,requiresIfExists:["offset"]};function Gl(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function Kl(t){return t===Q(t)||!Z(t)?Kn(t):Gl(t)}function Ul(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 Wl(t,e,n){n===void 0&&(n=!1);var i=Z(e),a=Z(e)&&Ul(e),l=xe(e),p=We(t,a,n),c={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(i||!i&&!n)&&((ue(e)!=="body"||Wn(l))&&(c=Kl(e)),Z(e)?(s=We(e,!0),s.x+=e.clientLeft,s.y+=e.clientTop):l&&(s.x=Un(l))),{x:p.left+c.scrollLeft-s.x,y:p.top+c.scrollTop-s.y,width:p.width,height:p.height}}function Yl(t){var e=new Map,n=new Set,i=[];t.forEach(function(l){e.set(l.name,l)});function a(l){n.add(l.name);var p=[].concat(l.requires||[],l.requiresIfExists||[]);p.forEach(function(c){if(!n.has(c)){var s=e.get(c);s&&a(s)}}),i.push(l)}return t.forEach(function(l){n.has(l.name)||a(l)}),i}function Zl(t){var e=Yl(t);return On.reduce(function(n,i){return n.concat(e.filter(function(a){return a.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(a,l){return a.replace(/%s/,l)},t)}var Le='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',Ql='Popper: modifier "%s" requires "%s", but "%s" modifier is not available',wi=["name","enabled","phase","fn","effect","requires","options"];function Jl(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":On.indexOf(e.phase)<0&&console.error(ye(Le,e.name,'"phase"',"either "+On.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(Ql,String(e.name),i,i))})})})}function ed(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 td(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.",nd="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 id(t){t===void 0&&(t={});var e=t,n=e.defaultModifiers,i=n===void 0?[]:n,a=e.defaultOptions,l=a===void 0?Ii:a;return function(c,s,u){u===void 0&&(u=l);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},Ii,l),modifiersData:{},elements:{reference:c,popper:s},attributes:{},styles:{}},o=[],f=!1,h={state:d,setOptions:function(O){var R=typeof O=="function"?O(d.options):O;S(),d.options=Object.assign({},l,d.options,R),d.scrollParents={reference:Re(c)?at(c):c.contextElement?at(c.contextElement):[],popper:at(s)};var k=Zl(td([].concat(i,d.options.modifiers)));if(d.orderedModifiers=k.filter(function(E){return E.enabled}),process.env.NODE_ENV!=="production"){var r=ed([].concat(k,d.options.modifiers),function(E){var T=E.name;return T});if(Jl(r),se(d.options.placement)===Ut){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:Wl(R,vt(k),d.options.strategy==="fixed"),popper:Hn(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(nd);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:Xl(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(){};o.push(b||g)}})}function S(){o.forEach(function(C){return C()}),o=[]}return h}}var sd=[xl,zl,Sl,hs,Fl,kl,Hl,gl,Nl],ad=id({defaultModifiers:sd}),rd="tippy-box",Cs="tippy-content",od="tippy-backdrop",xs="tippy-arrow",ws="tippy-svg-arrow",Ae={passive:!0,capture:!0},Es=function(){return document.body};function ld(t,e){return{}.hasOwnProperty.call(t,e)}function cn(t,e,n){if(Array.isArray(t)){var i=t[e];return i??(Array.isArray(n)?n[e]:n)}return t}function Yn(t,e){var n={}.toString.call(t);return n.indexOf("[object")===0&&n.indexOf(e+"]")>-1}function Is(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 dd(t,e){var n=Object.assign({},t);return e.forEach(function(i){delete n[i]}),n}function cd(t){return t.split(/\s+/).filter(Boolean)}function je(t){return[].concat(t)}function Li(t,e){t.indexOf(e)===-1&&t.push(e)}function ud(t){return t.filter(function(e,n){return t.indexOf(e)===n})}function pd(t){return t.split("-")[0]}function Ht(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 rt(){return document.createElement("div")}function ut(t){return["Element","Fragment"].some(function(e){return Yn(t,e)})}function fd(t){return Yn(t,"NodeList")}function hd(t){return Yn(t,"MouseEvent")}function md(t){return!!(t&&t._tippy&&t._tippy.reference===t)}function _d(t){return ut(t)?[t]:fd(t)?Ht(t):Array.isArray(t)?t:Ht(document.querySelectorAll(t))}function un(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 gd(t){var e,n=je(t),i=n[0];return i!=null&&(e=i.ownerDocument)!=null&&e.body?i.ownerDocument:document}function vd(t,e){var n=e.clientX,i=e.clientY;return t.every(function(a){var l=a.popperRect,p=a.popperState,c=a.props,s=c.interactiveBorder,u=pd(p.placement),d=p.modifiersData.offset;if(!d)return!0;var o=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=l.top-i+o>s,C=i-l.bottom-f>s,O=l.left-n+h>s,R=n-l.right-v>s;return S||C||O||R})}function pn(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 bd(){ce.isTouch||(ce.isTouch=!0,window.performance&&document.addEventListener("mousemove",Os))}function Os(){var t=performance.now();t-Ri<20&&(ce.isTouch=!1,document.removeEventListener("mousemove",Os)),Ri=t}function yd(){var t=document.activeElement;if(md(t)){var e=t._tippy;t.blur&&!e.state.isVisible&&t.blur()}}function Sd(){document.addEventListener("touchstart",bd,Ae),window.addEventListener("blur",yd)}var Cd=typeof window<"u"&&typeof document<"u",xd=Cd?!!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 wd(t){return ki(`
10
+ %ctippy.js
11
+
12
+ %c`+ki(t)+`
13
+
14
+ %c👷‍ This is a development-only message. It will be removed in production.
15
+ `)}function Ts(t){return[wd(t),"color: #00C584; font-size: 1.3em; font-weight: bold;","line-height: 1.5","color: #a6a095;"]}var pt;process.env.NODE_ENV!=="production"&&Ed();function Ed(){pt=new Set}function _e(t,e){if(t&&!pt.has(e)){var n;pt.add(e),(n=console).warn.apply(n,Ts(e))}}function An(t,e){if(t&&!pt.has(e)){var n;pt.add(e),(n=console).error.apply(n,Ts(e))}}function Id(t){var e=!t,n=Object.prototype.toString.call(t)==="[object Object]"&&!t.addEventListener;An(e,["tippy() was passed","`"+String(t)+"`","as its targets (first) argument. Valid types are: String, Element,","Element[], or NodeList."].join(" ")),An(n,["tippy() was passed a plain object which is not supported as an argument","for virtual positioning. Use props.getReferenceClientRect instead."].join(" "))}var Ls={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},Od={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},Y=Object.assign({appendTo:Es,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},Ls,Od),Td=Object.keys(Y),Ld=function(e){process.env.NODE_ENV!=="production"&&$s(e,[]);var n=Object.keys(e);n.forEach(function(i){Y[i]=e[i]})};function As(t){var e=t.plugins||[],n=e.reduce(function(i,a){var l=a.name,p=a.defaultValue;if(l){var c;i[l]=t[l]!==void 0?t[l]:(c=Y[l])!=null?c:p}return i},{});return Object.assign({},t,n)}function Ad(t,e){var n=e?Object.keys(As(Object.assign({},Y,{plugins:e}))):Td,i=n.reduce(function(a,l){var p=(t.getAttribute("data-tippy-"+l)||"").trim();if(!p)return a;if(l==="content")a[l]=p;else try{a[l]=JSON.parse(p)}catch{a[l]=p}return a},{});return i}function Pi(t,e){var n=Object.assign({},e,{content:Is(e.content,[t])},e.ignoreAttributes?{}:Ad(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 $s(t,e){t===void 0&&(t={}),e===void 0&&(e=[]);var n=Object.keys(t);n.forEach(function(i){var a=dd(Y,Object.keys(Ls)),l=!ld(a,i);l&&(l=e.filter(function(p){return p.name===i}).length===0),_e(l,["`"+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
+
17
+ `,`All props: https://atomiks.github.io/tippyjs/v6/all-props/
18
+ `,"Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "))})}var $d=function(){return"innerHTML"};function $n(t,e){t[$d()]=e}function Ni(t){var e=rt();return t===!0?e.className=xs:(e.className=ws,ut(t)?e.appendChild(t):$n(e,t)),e}function Bi(t,e){ut(e.content)?($n(t,""),t.appendChild(e.content)):typeof e.content!="function"&&(e.allowHTML?$n(t,e.content):t.textContent=e.content)}function Dn(t){var e=t.firstElementChild,n=Ht(e.children);return{box:e,content:n.find(function(i){return i.classList.contains(Cs)}),arrow:n.find(function(i){return i.classList.contains(xs)||i.classList.contains(ws)}),backdrop:n.find(function(i){return i.classList.contains(od)})}}function Ds(t){var e=rt(),n=rt();n.className=rd,n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var i=rt();i.className=Cs,i.setAttribute("data-state","hidden"),Bi(i,t.props),e.appendChild(n),n.appendChild(i),a(t.props,t.props);function a(l,p){var c=Dn(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"),(l.content!==p.content||l.allowHTML!==p.allowHTML)&&Bi(u,t.props),p.arrow?d?l.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}}Ds.$$tippy=!0;var Dd=1,Pt=[],fn=[];function Rd(t,e){var n=Pi(t,Object.assign({},Y,As(Ai(e)))),i,a,l,p=!1,c=!1,s=!1,u=!1,d,o,f,h=[],v=Ti(xt,n.interactiveDebounce),S,C=Dd++,O=null,R=ud(n.plugins),k={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},r={id:C,reference:t,popper:rt(),popperInstance:O,props:n,state:k,plugins:R,clearDelayTimeouts:Tt,setProps:Lt,setContent:At,show:pa,hide:fa,hideWithInteractivity:ha,enable:nt,disable:Ot,unmount:ma,destroy:_a};if(!n.render)return process.env.NODE_ENV!=="production"&&An(!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 Me(),le(),H(),j("onCreate",[r]),n.showOnCreate&&tt(),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?gd(m):document}function z(){return Dn(g)}function B(m){return r.state.isMounted&&!r.state.isVisible||ce.isTouch||d&&d.type==="focus"?0:cn(r.props.delay,m?0:1,Y.delay)}function H(m){m===void 0&&(m=!1),g.style.pointerEvents=r.props.interactive&&!m?"":"none",g.style.zIndex=""+r.props.zIndex}function j(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=je(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=je(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),Pt=Pt.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(je(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 j("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 Ne(m,y){Be(m,function(){!r.state.isVisible&&g.parentNode&&g.parentNode.contains(g)&&y()})}function he(m,y){Be(m,y)}function Be(m,y){var x=z().box;function P(D){D.target===x&&(pn(x,"remove",P),y())}if(m===0)return y();pn(x,"remove",o),pn(x,"add",P),o=P}function ve(m,y,x){x===void 0&&(x=!1);var P=je(r.props.triggerTarget||t);P.forEach(function(D){D.addEventListener(m,y,x),h.push({node:D,eventType:m,handler:y,options:x})})}function Me(){E()&&(ve("touchstart",Qe,{passive:!0}),ve("touchend",wt,{passive:!0})),cd(r.props.trigger).forEach(function(m){if(m!=="manual")switch(ve(m,Qe),m){case"mouseenter":ve("mouseleave",wt);break;case"focus":ve(xd?"focusout":"blur",Je);break;case"focusin":ve("focusout",Je);break}})}function Ct(){h.forEach(function(m){var y=m.node,x=m.eventType,P=m.handler,D=m.options;y.removeEventListener(x,P,D)}),h=[]}function Qe(m){var y,x=!1;if(!(!r.state.isEnabled||et(m)||c)){var P=((y=d)==null?void 0:y.type)==="focus";d=m,S=m.currentTarget,le(),!r.state.isVisible&&hd(m)&&Pt.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:tt(m),m.type==="click"&&(p=!x),x&&!P&&Oe(m)}}function xt(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,Fe=(K=J.popperInstance)==null?void 0:K.state;return Fe?{popperRect:D.getBoundingClientRect(),popperState:Fe,props:n}:null}).filter(Boolean);vd(P,m)&&(Ee(),Oe(m))}}function wt(m){var y=et(m)||r.props.trigger.indexOf("click")>=0&&p;if(!y){if(r.props.interactive){r.hideWithInteractivity(m);return}Oe(m)}}function Je(m){r.props.trigger.indexOf("focusin")<0&&m.target!==$()||r.props.interactive&&m.relatedTarget&&g.contains(m.relatedTarget)||Oe(m)}function et(m){return ce.isTouch?E()!==m.type.indexOf("touch")>=0:!1}function Et(){It();var m=r.props,y=m.popperOptions,x=m.placement,P=m.offset,D=m.getReferenceClientRect,K=m.moveTransition,J=T()?Dn(g).arrow:null,Fe=D?{getBoundingClientRect:D,contextElement:D.contextElement||$()}:t,li={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function($t){var Ve=$t.state;if(T()){var ga=z(),on=ga.box;["placement","reference-hidden","escaped"].forEach(function(Dt){Dt==="placement"?on.setAttribute("data-placement",Ve.placement):Ve.attributes.popper["data-popper-"+Dt]?on.setAttribute("data-"+Dt,""):on.removeAttribute("data-"+Dt)}),Ve.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=ad(Fe,g,Object.assign({},y,{placement:x,onFirstUpdate:f,modifiers:Te}))}function It(){r.popperInstance&&(r.popperInstance.destroy(),r.popperInstance=null)}function me(){var m=r.props.appendTo,y,x=$();r.props.interactive&&m===Es||m==="parent"?y=x.parentNode:y=Is(m,[x]),y.contains(g)||y.appendChild(g),r.state.isMounted=!0,Et(),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.",`
19
+
20
+ `,"Using a wrapper <div> or <span> tag around the reference element","solves this by creating a new parentNode context.",`
21
+
22
+ `,"Specifying `appendTo: document.body` silences this warning, but it","assumes you are using a focus management solution to handle","keyboard navigation.",`
23
+
24
+ `,"See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" "))}function be(){return Ht(g.querySelectorAll("[data-tippy-root]"))}function tt(m){r.clearDelayTimeouts(),m&&j("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(),j("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):l=requestAnimationFrame(function(){r.hide()})}}function nt(){r.state.isEnabled=!0}function Ot(){r.hide(),r.state.isEnabled=!1}function Tt(){clearTimeout(i),clearTimeout(a),cancelAnimationFrame(l)}function Lt(m){if(process.env.NODE_ENV!=="production"&&_e(r.state.isDestroyed,ze("setProps")),!r.state.isDestroyed){j("onBeforeUpdate",[r,m]),Ct();var y=r.props,x=Pi(t,Object.assign({},y,Ai(m),{ignoreAttributes:!0}));r.props=x,Me(),y.interactiveDebounce!==x.interactiveDebounce&&(Ee(),v=Ti(xt,x.interactiveDebounce)),y.triggerTarget&&!x.triggerTarget?je(y.triggerTarget).forEach(function(P){P.removeAttribute("aria-expanded")}):x.triggerTarget&&t.removeAttribute("aria-expanded"),le(),H(),w&&w(y,x),r.popperInstance&&(Et(),be().forEach(function(P){requestAnimationFrame(P._tippy.popperInstance.forceUpdate)})),j("onAfterUpdate",[r,m])}}function At(m){r.setProps({content:m})}function pa(){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=cn(r.props.duration,0,Y.duration);if(!(m||y||x||P)&&!$().hasAttribute("disabled")&&(j("onShow",[r],!1),r.props.onShow(r)!==!1)){if(r.state.isVisible=!0,T()&&(g.style.visibility="visible"),H(),ie(),r.state.isMounted||(g.style.transition="none"),T()){var K=z(),J=K.box,Fe=K.content;un([J,Fe],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 rn=z(),$t=rn.box,Ve=rn.content;un([$t,Ve],D),$i([$t,Ve],"visible")}oe(),le(),Li(fn,r),(Te=r.popperInstance)==null||Te.forceUpdate(),j("onMount",[r]),r.props.animation&&T()&&he(D,function(){r.state.isShown=!0,j("onShown",[r])})}},me()}}function fa(){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=cn(r.props.duration,1,Y.duration);if(!(m||y||x)&&(j("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(),H(!0),T()){var D=z(),K=D.box,J=D.content;r.props.animation&&(un([K,J],P),$i([K,J],"hidden"))}oe(),le(),r.props.animation?T()&&Ne(P,r.unmount):r.unmount()}}function ha(m){process.env.NODE_ENV!=="production"&&_e(r.state.isDestroyed,ze("hideWithInteractivity")),N().addEventListener("mousemove",v),Li(Pt,v),v(m)}function ma(){process.env.NODE_ENV!=="production"&&_e(r.state.isDestroyed,ze("unmount")),r.state.isVisible&&r.hide(),r.state.isMounted&&(It(),be().forEach(function(m){m._tippy.unmount()}),g.parentNode&&g.parentNode.removeChild(g),fn=fn.filter(function(m){return m!==r}),r.state.isMounted=!1,j("onHidden",[r]))}function _a(){process.env.NODE_ENV!=="production"&&_e(r.state.isDestroyed,ze("destroy")),!r.state.isDestroyed&&(r.clearDelayTimeouts(),r.unmount(),Ct(),delete t._tippy,r.state.isDestroyed=!0,j("onDestroy",[r]))}}function bt(t,e){e===void 0&&(e={});var n=Y.plugins.concat(e.plugins||[]);process.env.NODE_ENV!=="production"&&(Id(t),$s(e,n)),Sd();var i=Object.assign({},e,{plugins:n}),a=_d(t);if(process.env.NODE_ENV!=="production"){var l=ut(i.content),p=a.length>1;_e(l&&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.",`
25
+
26
+ `,"Instead, pass the .innerHTML of the element, or use a function that","returns a cloned version of the element instead.",`
27
+
28
+ `,`1) content: element.innerHTML
29
+ `,"2) content: () => element.cloneNode(true)"].join(" "))}var c=a.reduce(function(s,u){var d=u&&Rd(u,i);return d&&s.push(d),s},[]);return ut(t)?c[0]:c}bt.defaultProps=Y;bt.setDefaultProps=Ld;bt.currentInput=ce;Object.assign({},hs,{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 kd={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 l(u){return e.props.sticky===!0||e.props.sticky===u}var p=null,c=null;function s(){var u=l("reference")?a().getBoundingClientRect():null,d=l("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}bt.setDefaultProps({render:Ds});const Pd=t=>({name:"arrowDetected",enabled:!0,phase:"main",fn:t,requiresIfExists:["offset"]}),Nd=["bottom","bottom-start","bottom-end","right","right-start","right-end","left","left-start","left-end","top","top-start","top-end"],Rs=[!0,!1,"reference","popper"],ks=(t,e)=>{const{contentElement:n}={...e};return delete e.contentElement,bt(t,{...e,plugins:[kd],render:()=>Md(n)})},Ps=({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}},Pd(({state:l})=>{n(l.placement)})]}),Bd=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||Bd(t)},Md=t=>{const e=document.createElement("div");return e.className="tippy-box d-ps-absolute",e.appendChild(t),{popper:e}},Rn={none:void 0,small:"d-p4",medium:"d-p8",large:"d-p16"},Ns={none:void 0,small:"d-pl4",medium:"d-pl8",large:"d-pl16"},Bs=["dialog","menu","listbox","tree","grid"],Zn=["","anchor"],Ms=["none","dialog","first"],Yt=["parent","body"],Fd=[...Rs];let Vd="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",zd=(t=21)=>{let e="",n=t;for(;n--;)e+=Vd[Math.random()*64|0];return e};function Vt(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Vt=function(e){return typeof e}:Vt=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vt(t)}var Fs={selector:"vue-portal-target-".concat(zd())},jd=function(e){return Fs.selector=e},hn=typeof window<"u"&&(typeof document>"u"?"undefined":Vt(document))!==void 0,qd=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)}}),Xn=X.extend({name:"VueSimplePortal",props:{disabled:{type:Boolean},prepend:{type:Boolean},selector:{type:String,default:function(){return"#".concat(Fs.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(hn)return document.querySelector(this.selector)},insertTargetEl:function(){if(hn){var e=document.querySelector("body"),n=document.createElement(this.tag);n.id=this.selector.substring(1),e.appendChild(n)}},mount:function(){if(hn){var e=this.getTargetEl(),n=document.createElement("DIV");this.prepend&&e.firstChild?e.insertBefore(n,e.firstChild):e.appendChild(n),this.container=new qd({el:n,parent:this,propsData:{tag:this.tag,nodes:this.$scopedSlots.default}})}},unmount:function(){this.container&&(this.container.$destroy(),delete this.container)}}});function Hd(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};t.component(e.name||"portal",Xn),e.defaultSelector&&jd(e.defaultSelector)}typeof window<"u"&&window.Vue&&window.Vue===X&&X.use(Hd);const Gd={name:"PopoverHeaderFooter",components:{DtButton:G,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 Kd=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)},Ud=[],Wd=_.normalizeComponent(Gd,Kd,Ud,!1,null,null,null,null);const Yd=Wd.exports;const Zd={name:"DtPopover",components:{SrOnlyCloseButton:Kt,DtLazyShow:Xe,PopoverHeaderFooter:Yd,Portal:Xn},mixins:[mt,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=>Bs.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(Rn).some(e=>e===t)},contentClass:{type:[String,Array,Object],default:""},contentWidth:{type:String,default:"",validator:t=>Zn.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=>Fd.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=>Ms.includes(t)||t instanceof HTMLElement||t.startsWith("#")},openWithArrowKeys:{type:Boolean,default:!1},appendTo:{type:[HTMLElement,String],default:"body",validator:t=>Yt.includes(t)||t instanceof HTMLElement}},emits:["opened","update:open"],data(){return{POPOVER_PADDING_CLASSES:Rn,POPOVER_HEADER_FOOTER_PADDING_CLASSES:Ns,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=Yi(e);this.isOutsideViewport=n.bottom||n.top},popperOptions(){return Ps({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(){return this.$el.getRootNode().querySelector('.d-modal[aria-hidden="false"], .d-modal--transparent[aria-hidden="false"]')||this.anchorEl.closest(".d-zi-drawer")?650:300},defaultToggleOpen(t){var e;this.openOnContext||(this.open??(this.anchorEl.contains(t.target)&&!((e=this.anchorEl)!=null&&e.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){this.open===null&&this.openWithArrowKeys&&this.anchorEl.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(){if(this.modal){const t=this.anchorEl.closest("body, .tippy-box");t.tagName.toLowerCase()==="body"?(t.classList.add("d-of-hidden"),this.tip.setProps({offset:this.offset})):t.classList.add("d-zi-popover")}},enableScrolling(){var e;const t=this.anchorEl.closest("body, .tippy-box");t&&(((e=t.tagName)==null?void 0:e.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(){await this.$nextTick(),this.popoverContentEl.style.width=`${this.anchorEl.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=ks(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)},Qd=[],Jd=_.normalizeComponent(Zd,Xd,Qd,!1,null,null,null,null);const Zt=Jd.exports,ot={none:void 0,small:"d-py0",large:"d-py4"};const ec={name:"DtDropdown",components:{DtPopover:Zt,SrOnlyCloseButton:Kt},mixins:[jn({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(ot).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=>Yt.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:ot,EVENT_KEYNAMES:q,openedWithKeyboard:!1,isOpen:null}},computed:{dropdownListeners(){return{...this.$listeners,opened:t=>{this.updateInitialHighlightIndex(t)},keydown:t=>{switch(t.code){case q.up:case q.arrowup:this.onUpKeyPress(t),t.stopPropagation(),t.preventDefault();break;case q.down:case q.arrowdown:this.onDownKeyPress(t),t.stopPropagation(),t.preventDefault();break;case q.space:case q.spacebar:this.onSpaceKey();break;case q.enter:this.onEnterKey();break;case q.home:this.onHomeKeyPress(t),t.stopPropagation(),t.preventDefault();break;case q.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",ot[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 tc=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))},nc=[],ic=_.normalizeComponent(ec,tc,nc,!1,null,null,null,null);const Vs=ic.exports;const sc={name:"DtDropdownSeparator"};var ac=function(){var e=this,n=e._self._c;return n("li",{staticClass:"dt-list-separator d-my4 d-mxn4",attrs:{"aria-hidden":"true"}})},rc=[],oc=_.normalizeComponent(sc,ac,rc,!1,null,null,null,null);const lc=oc.exports,dc={name:"DtImageViewer",components:{Portal:Xn,DtButton:G,DtIcon:M},mixins:[mt],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 q.esc:case q.escape:this.close();break;case q.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 cc=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)},uc=[],pc=_.normalizeComponent(dc,cc,uc,!1,null,null,null,null);const fc=pc.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 yt(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 hc={name:"DtValidationMessages",props:{id:{type:String,default(){return V()}},validationMessages:{type:Array,default:()=>[],validator:t=>yt(t)},showMessages:{type:Boolean,default:!0}},computed:{isFilteredValidationMessagesEmpty(){return this.filteredValidationMessages.length===0},filteredValidationMessages(){return Mn(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 mc=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},l){return n("div",{key:e.getMessageKey(a,l),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()},_c=[],gc=_.normalizeComponent(hc,mc,_c,!1,null,null,null,null);const we=gc.exports,Qn={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)}}},Jn={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}}},ei={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)}},Xt={props:{messagesClass:{type:[String,Array,Object],default:""},messagesChildProps:{type:Object,default:()=>({})},showMessages:{type:Boolean,default:!0},messages:{type:Array,default:()=>[],validator:t=>yt(t)}},computed:{formattedMessages(){return lt(this.messages)}}},vc={name:"DtInput",components:{DtValidationMessages:we},mixins:[Xt],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,l,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:(l=(a=this==null?void 0:this.validate)==null?void 0:a.length)==null?void 0:l.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 bc=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)},yc=[],Sc=_.normalizeComponent(vc,bc,yc,!1,null,null,null,null);const zs=Sc.exports,js={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=>yt(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=lt(this.messages);return{provideObj:{name:this.name,disabled:this.disabled,validationState:Ce(t)}}},computed:{formattedMessages(){return lt(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)}},Cc={name:"DtInputGroup",components:{DtValidationMessages:we},mixins:[js],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 xc=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)},wc=[],Ec=_.normalizeComponent(Cc,xc,wc,!1,null,null,null,null);const ti=Ec.exports,kn={default:"",danger:"d-modal--danger"},Pn={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"},Ic={name:"DtNotice",components:{DtNoticeIcon:Fn,DtNoticeContent:Vn,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 lr.includes(t)}},important:{type:Boolean,default:!1},kind:{type:String,default:"base",validate(t){return Ze.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 Oc=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)},Tc=[],Lc=_.normalizeComponent(Ic,Oc,Tc,!1,null,null,null,null);const Ac=Lc.exports,$c={name:"DtModal",components:{DtLazyShow:Xe,DtButton:G,DtIcon:M,SrOnlyCloseButton:Kt},mixins:[mt,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(kn).includes(t)},size:{type:String,default:"default",validator:t=>Object.keys(Pn).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 Ze.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:kn,MODAL_SIZE_MODIFIERS:Pn,MODAL_BANNER_KINDS:Vi,EVENT_KEYNAMES:q}},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 q.esc:case q.escape:this.close();break;case q.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 Dc=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)},Rc=[],kc=_.normalizeComponent($c,Dc,Rc,!1,null,null,null,null);const Pc=kc.exports;const Nc={name:"ListSection",components:{Vnodes:{name:"vnodes",functional:!0,render:(t,e)=>e.props.vnodes},DtButton:G},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 Bc=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)])},Mc=[],Fc=_.normalizeComponent(Nc,Bc,Mc,!1,null,null,null,null);const Vc=Fc.exports,zc={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 jc=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)},qc=[],Hc=_.normalizeComponent(zc,jc,qc,!1,null,null,null,null);const Gc=Hc.exports,Kc={name:"DtPagination",components:{DtButton:G,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,l=this.currentPage+i;return[1,"...",...this.range(a,l),"...",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 Uc=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(l){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)},Wc=[],Yc=_.normalizeComponent(Kc,Uc,Wc,!1,null,null,null,null);const Zc=Yc.exports,Xc={warning:"d-radio--warning",error:"d-radio--error",success:"d-radio--success"},Qc={name:"DtRadio",components:{DtValidationMessages:we},mixins:[Qn,Jn,ei,Xt],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 Jc=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)])])},eu=[],tu=_.normalizeComponent(Qc,Jc,eu,!1,null,null,null,null);const nu=tu.exports,iu={name:"DtRadioGroup",extends:ti,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}`}}},su=null,au=null;var ru=_.normalizeComponent(iu,su,au,!1,null,null,null,null);const ou=ru.exports,qs=["default","sm"],lu={sm:"d-tablist--sm"},Hs={inverted:"d-tablist--inverted"},Gs={borderless:"d-tablist--no-border"},Ks={selected:"d-tab--selected"},du={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:lu,TAB_LIST_KIND_MODIFIERS:Hs,TAB_LIST_IMPORTANCE_MODIFIERS:Gs}},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 cu=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)},uu=[],pu=_.normalizeComponent(du,cu,uu,!1,null,null,null,null);const fu=pu.exports,hu={name:"DtTab",components:{DtButton:G},inject:["changeContentPanel","groupContext","setFocus"],inheritAttrs:!1,props:{id:{type:String,required:!0},panelId:{type:String,required:!0},label:{type:String,default:""},selected:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},tabClass:{type:[String,Array,Object],default:""}},data(){return{TAB_IMPORTANCE_MODIFIERS:Ks}},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 mu=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)},_u=[],gu=_.normalizeComponent(hu,mu,_u,!1,null,null,null,null);const vu=gu.exports,bu={name:"DtTabPanel",mixins:[mt],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 yu=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)},Su=[],Cu=_.normalizeComponent(bu,yu,Su,!1,null,null,null,null);const xu=Cu.exports,wu={error:"d-checkbox--error",warning:"d-checkbox--warning",success:"d-checkbox--success"},Eu={name:"DtCheckbox",components:{DtValidationMessages:we},mixins:[Qn,Jn,ei,Xt],inheritAttrs:!1,emits:["input","focusin","focusout"],computed:{inputValidationClass(){return wu[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 Iu=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()])])},Ou=[],Tu=_.normalizeComponent(Eu,Iu,Ou,!1,null,null,null,null);const Lu=Tu.exports,Au={name:"DtCheckboxGroup",extends:ti,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}`}}},$u=null,Du=null;var Ru=_.normalizeComponent(Au,$u,Du,!1,null,null,null,null);const ku=Ru.exports,Nn={xs:"d-chip__label--xs",sm:"d-chip__label--sm",md:""},Pu={xs:"d-chip__close--xs",sm:"d-chip__close--sm",md:""},Nu={xs:"200",sm:"200",md:"200"},Bu={name:"DtChip",components:{DtButton:G,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(Nn).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 Nu[this.size]}},methods:{chipClasses(){return[this.$attrs["grouped-chip"]?"d-chip":"d-chip__label",Nn[this.size],this.labelClass]},chipCloseButtonClasses(){return["d-chip__close",Pu[this.size]]},onClose(){this.hideClose||this.$emit("close")}}};var Mu=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)},Fu=[],Vu=_.normalizeComponent(Bu,Mu,Fu,!1,null,null,null,null);const ni=Vu.exports,Bn={xs:"d-select--xs",sm:"d-select--sm",md:"",lg:"d-select--lg",xl:"d-select--xl"},Us={error:"d-select__input--error",warning:"d-select__input--warning",success:"d-select__input--success"},zu=t=>!t.index||typeof t.index=="number",ju=t=>t.value?typeof t.value=="string"||typeof t.value=="number":!1,qu=t=>t.label?typeof t.label=="string":!1,Hu=t=>t?t.every(e=>!(!zu(e)||!ju(e)||!qu(e))):!0,Gu={name:"DtSelectMenu",components:{DtValidationMessages:we},mixins:[Xt],inheritAttrs:!1,props:{label:{type:String,default:""},description:{type:String,default:""},options:{type:Array,default:()=>[],validator:t=>Hu(t)},size:{type:String,default:"md",validator:t=>Object.keys(Bn).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:ba,DESCRIPTION_SIZE_MODIFIERS:va,SELECT_SIZE_MODIFIERS:Bn,SELECT_STATE_MODIFIERS:Us}},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 Ku=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)},Uu=[],Wu=_.normalizeComponent(Gu,Ku,Uu,!1,null,null,null,null);const Yu=Wu.exports,Ws=["status","alert"],zi=6e3,Zu={name:"DtToast",components:{DtNoticeIcon:Fn,DtNoticeContent:Vn,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=>Ws.includes(t)},kind:{type:String,default:"base",validator:t=>Ze.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>=zi}},emits:["close","update:show"],data(){return{isShown:!1,minDuration:zi}},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()},Qu=[],Ju=_.normalizeComponent(Zu,Xu,Qu,!1,null,null,null,null);const ep=Ju.exports,ji={sm:"d-toggle--small",md:""},tp=[!1,!0,"mixed"],np={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=>tp.includes(t)},toggleOnClick:{type:Boolean,default:!0},size:{type:String,default:"md",validator:t=>Object.keys(ji).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",ji[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 ip=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()])])},sp=[],ap=_.normalizeComponent(np,ip,sp,!1,null,null,null,null);const rp=ap.exports,Ys=[...Nd],Zs=300,Xs={hover:"d-tooltip--hover",show:"d-tooltip--show",inverted:"d-tooltip--inverted",hide:"d-tooltip--hide"},Qs=[...Rs],op=[!0,!1,"toggle"];const lp={name:"DtTooltip",components:{DtLazyShow:Xe},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 Ys.includes(t)}},sticky:{type:[Boolean,String],default:!1,validator:t=>Qs.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:Xs,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:Ps({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=ks(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),Zs);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 dp=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)},cp=[],up=_.normalizeComponent(lp,dp,cp,!1,null,null,null,null);const ii=up.exports,Ge={"{win}":"layout-grid","{arrow-right}":"arrow-right","{arrow-left}":"arrow-left","{arrow-up}":"arrow-up","{arrow-down}":"arrow-down","{cmd}":"command"},Js={"{plus}":"plus"},pp=Object.keys(Ge),fp={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:Ge,separator:/\+/gi}},computed:{icons(){return{...Ge,...Js}},shortcutWithSeparator(){return this.shortcut.replace(this.separator,"{plus}")},formattedShortcut(){return Object.keys(Ge).reduce((t,e)=>t.replace(new RegExp("{"+e+"}","gi"),Ge[e]),this.shortcutWithSeparator)},formattedShortcutSplit(){const t=Object.keys(this.icons).join("|"),e=new RegExp(`(${t})`,"gi");return this.formattedShortcut.split(e).filter(Boolean)}}};var hp=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)},mp=[],_p=_.normalizeComponent(fp,hp,mp,!1,null,null,null,null);const gp=_p.exports,si={LEFT:"left",RIGHT:"right"},ea=["sm","md","lg",null],vp={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 bp=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()])},yp=[],Sp=_.normalizeComponent(vp,bp,yp,!1,null,null,null,null);const Cp=Sp.exports,xp={name:"DtRootLayout",components:{DtRootLayoutBody:Cp},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=>ea.includes(t)}},computed:{responsiveClass(){if(this.responsiveBreakpoint)return`d-root-layout__responsive--${this.responsiveBreakpoint}`}}};var wp=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)},Ep=[],Ip=_.normalizeComponent(xp,wp,Ep,!1,null,null,null,null);const Op=Ip.exports,ke={default:"column",column:"column",row:"row","row-reverse":"row-reverse","column-reverse":"column-reverse"},ta=["sm","md","lg","xl"],ai=["0","100","200","300","400","500","600"];function qi(t){return t===ke.default}function Hi(t){if(ft(t)==="string")return qi(t)?null:ke[t];if(ft(t)==="object"){const{default:e}=t;return qi(e)?null:ke[e]}else return null}function ft(t){return typeof t}function Tp(t){return Hi(t)?`d-stack--${ke[Hi(t)]}`:null}function Lp(t){return ft(t)==="object"?[...ta.map(e=>t[e]?`d-stack--${e}--${t[e]}`:null)]:null}function Ap(t){return ai.includes(t)?`d-stack--gap-${t}`:null}function $p(t){if(ft(t)==="string")return Object.keys(ke).includes(t);if(ft(t)==="object"){const{default:e}=t;return Object.keys(ke).includes(e)}else return null}function Dp(t){return ai.includes(t)}const Rp={name:"DtStack",props:{direction:{type:[String,Object],default:"column",validator:t=>$p(t)},as:{type:String,default:"div"},gap:{type:String,default:"0",validator:t=>Dp(t)}},data(){return{DT_STACK_DIRECTION:ke,DT_STACK_GAP:ai,DT_STACK_RESPONSIVE_BREAKPOINTS:ta}},computed:{stackGap(){return Ap(this.gap)},defaultDirection(){return Tp(this.direction)},stackResponsive(){return Lp(this.direction)}}};var kp=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)},Pp=[],Np=_.normalizeComponent(Rp,kp,Pp,!1,null,null,null,null);const Bp=Np.exports,Mp={name:"DtRecipeComboboxWithPopover",components:{DtCombobox:us,DtPopover:Zt,ComboboxLoadingList:ls,ComboboxEmptyList:ds},mixins:[ge],props:{label:{type:String,required:!0},labelVisible:{type:Boolean,default:!0},size:{type:String,default:null,validator:t=>Object.values(cs).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(ot).some(e=>e===t)},contentWidth:{type:String,default:null,validator:t=>Zn.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=>Yt.includes(t)||t instanceof HTMLElement},transition:{type:String,default:"fade"}},emits:["select","escape","highlight","opened"],data(){return{DROPDOWN_PADDING_CLASSES:ot,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,l;const e=(a=(i=this.$refs.popover)==null?void 0:i.tip)==null?void 0:a.popper,n=this.$refs.input;(l=t.composedPath())!=null&&l.some(p=>[e,n].includes(p))||this.closeComboboxList()},openOnArrowKeyPress(){this.showList!==null||this.isListShown||!this.openWithArrowKeys||this.showComboboxList()}}};var Fp=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:l}){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:l,focusout:l}},[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))},Vp=[],zp=_.normalizeComponent(Mp,Fp,Vp,!1,null,null,null,null);const na=zp.exports,ia={EXTRA_SMALL:"xs",SMALL:"sm",DEFAULT:"md"},jp={xs:"xs",sm:"xs",md:"sm"},qp={xs:1.4,sm:.4,md:.2},Hp={name:"DtRecipeComboboxMultiSelect",components:{DtRecipeComboboxWithPopover:na,DtInput:zs,DtChip:ni,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=>yt(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(ia).includes(t)},appendTo:{type:[HTMLElement,String],default:"body",validator:t=>Yt.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:jp}},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-qp[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,l=t.offsetTop+2;a>this.originalInputSize&&(e.style.paddingTop=`${l}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 Gp=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(l){return!l.type.indexOf("key")&&e._k(l.keyCode,"backspace",void 0,l.key,void 0)?null:e.onChipRemove(a)},close:function(l){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)})},Kp=[],Up=_.normalizeComponent(Hp,Gp,Kp,!1,null,null,null,null);const Wp=Up.exports,ri=["sm","md","lg","xl"];const Yp={name:"DtRecipeCallbarButton",components:{DtButton:G,DtTooltip:ii},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 Zp=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=[],Qp=_.normalizeComponent(Yp,Zp,Xp,!1,null,null,null,null);const sa=Qp.exports;const Jp={name:"DtRecipeCallbarButtonWithPopover",components:{DtRecipeCallbarButton:sa,DtPopover:Zt,DtButton:G,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 ef=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)},tf=[],nf=_.normalizeComponent(Jp,ef,tf,!1,null,null,null,null);const sf=nf.exports,af={name:"DtRecipeContactInfo",components:{DtAvatar:Gt,DtListItem:_t},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 rf=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)})},of=[],lf=_.normalizeComponent(af,rf,of,!1,null,null,null,null);const df=lf.exports,aa=["green300","green100","red200","red100","gold100","gold200","black100","white"];const cf={name:"DtRecipeTopBannerInfo",props:{colorCode:{type:String,default:"green300",validator:function(t){return aa.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 uf=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)])},pf=[],ff=_.normalizeComponent(cf,uf,pf,!1,null,null,null,null);const hf=ff.exports,Qt="promptmenu",Jt="promptcollect",en="promptplay",tn="gotoexpert",St="goto",nn="branch",sn="transfer",an="hangup",ra={[Qt]:"keypad",[Jt]:"dialer",[en]:"volume-2",[tn]:"expert-node",[nn]:"branch",[St]:"call-merge",[sn]:"transfer",[an]:"phone-hang-up"},mf={[Qt]:"Menu",[Jt]:"Collect",[en]:"Play",[tn]:"Expert",[nn]:"Branch",[St]:"Go-to",[sn]:"Transfer",[an]:"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"}},_f={[Qt]:Se.PROMPT,[Jt]:Se.PROMPT,[en]:Se.PROMPT,[tn]:Se.LOGIC,[nn]:Se.LOGIC,[St]:Se.LOGIC,[sn]:Se.TERMINAL,[an]:Se.TERMINAL};const gf={name:"DtRecipeIvrNode",components:{DtCard:os,DtButton:G,DtDropdown:Vs,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 ra[this.nodeType]},headerColor(){const{normal:t,selected:e}=_f[this.nodeType];return this.isSelected?e:t},isGotoNode(){return this.nodeType===St}},methods:{openMenu(){this.isOpen=!0}}};var vf=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)},bf=[],yf=_.normalizeComponent(gf,vf,bf,!1,null,null,null,null);const Sf=yf.exports;const Cf={name:"DtRecipeGroupedChip",components:{DtChip:ni},computed:{}};var xf=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)},wf=[],Ef=_.normalizeComponent(Cf,xf,wf,!1,null,null,null,null);const If=Ef.exports;const Of={name:"DtRecipeSettingsMenuButton",components:{DtButton:G,DtIcon:M},props:{updateAvailable:{type:Boolean,default:!1},ariaLabel:{type:String,required:!0}},emits:["click"]};var Tf=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))},Lf=[],Af=_.normalizeComponent(Of,Tf,Lf,!1,null,"5f15fa46",null,null);const $f=Af.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"},oa={[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"},ht={"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"},la="If type is contact center, color must be oneof the following:"+Object.keys(ht).join(", "),da=["300","200"],Df={};var Rf=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)])},kf=[],Pf=_.normalizeComponent(Df,Rf,kf,!1,null,null,null,null);const Nf=Pf.exports,Bf={name:"DtRecipeLeftbarGeneralRowIcon",components:{DtIcon:M,IconDialbot:Nf},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 oa[this.type]},contactCenterIconClasses(){return["dt-leftbar-row__icon-cc",ht[this.color]]},dialbotClasses(){return["d-w24","d-h24","d-d-flex","d-ai-center","d-jc-center"]}}};var Mf=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()},Ff=[],Vf=_.normalizeComponent(Bf,Mf,Ff,!1,null,null,null,null);const zf=Vf.exports;const jf={name:"DtRecipeGeneralRow",components:{DtEmojiTextWrapper:_.DtEmojiTextWrapper,DtBadge:Qi,DtIcon:M,DtButton:G,DtTooltip:ii,DtRecipeLeftbarGeneralRowIcon:zf},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(ht).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=>da.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(ht).includes(this.color)&&console.error(la)}}};var qf=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()])},Hf=[],Gf=_.normalizeComponent(jf,qf,Hf,!1,null,null,null,null);const oi=Gf.exports,Kf={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 Uf=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))},Wf=[],Yf=_.normalizeComponent(Kf,Uf,Wf,!1,null,null,null,null);const Zf=Yf.exports,Xf={name:"DtRecipeGroupRow",components:{DtAvatar:Gt,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 Qf=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))},Jf=[],eh=_.normalizeComponent(Xf,Qf,Jf,!1,null,null,null,null);const th=eh.exports,ca=["up","down"],ua=["mentions","messages"];const nh={name:"DtRecipeUnreadPill",components:{DtIcon:M},props:{kind:{type:String,required:!0,validator:t=>ua.includes(t)},direction:{type:String,required:!0,validator:t=>ca.includes(t)}},emits:["click"]};var ih=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)},sh=[],ah=_.normalizeComponent(nh,ih,sh,!1,null,null,null,null);const rh=ah.exports;const oh={name:"DtRecipeFeedItemRow",components:{DtAvatar:Gt,DtLazyShow:Xe,DtListItem:_t},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 lh=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)])])},dh=[],ch=_.normalizeComponent(oh,lh,dh,!1,null,null,null,null);const uh=ch.exports;const ph={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 fh=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)+" ")])},hh=[],mh=_.normalizeComponent(ph,fh,hh,!1,null,null,null,null);const _h=mh.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=Cn;exports.AVATAR_SIZE_MODIFIERS=Mt;exports.BADGE_DECORATION_MODIFIERS=En;exports.BADGE_KIND_MODIFIERS=wn;exports.BADGE_TYPE_MODIFIERS=xn;exports.BREADCRUMBS_INVERTED_MODIFIER=ss;exports.BREADCRUMB_ITEM_SELECTED_MODIFIER=is;exports.BUTTON_GROUP_ALIGNMENT=In;exports.CALLBAR_BUTTON_VALID_WIDTH_SIZE=ri;exports.CHIP_SIZE_MODIFIERS=Nn;exports.COLOR_CODES=aa;exports.DEFAULT_VALIDATION_MESSAGE_TYPE=Ki;exports.DESCRIPTION_SIZE_TYPES=Gi;exports.DtAvatar=Gt;exports.DtBadge=Qi;exports.DtBanner=zr;exports.DtBreadcrumbItem=rs;exports.DtBreadcrumbs=eo;exports.DtButton=G;exports.DtButtonGroup=ao;exports.DtCard=os;exports.DtCheckableInputMixin=Jn;exports.DtCheckbox=Lu;exports.DtCheckboxGroup=ku;exports.DtChip=ni;exports.DtCodeblock=mo;exports.DtCollapsible=Xo;exports.DtCombobox=us;exports.DtDropdown=Vs;exports.DtDropdownSeparator=lc;exports.DtGroupableInputMixin=ei;exports.DtIcon=M;exports.DtImageViewer=fc;exports.DtInput=zs;exports.DtInputGroup=ti;exports.DtInputGroupMixin=js;exports.DtInputMixin=Qn;exports.DtKeyboardListNavigationMixin=jn;exports.DtKeyboardShortcut=gp;exports.DtLazyShow=Xe;exports.DtLink=as;exports.DtListItem=_t;exports.DtListItemGroup=Gc;exports.DtListSection=Vc;exports.DtModal=Pc;exports.DtNotice=Ac;exports.DtPagination=Zc;exports.DtPopover=Zt;exports.DtPresence=Xi;exports.DtRadio=nu;exports.DtRadioGroup=ou;exports.DtRecipeCallbarButton=sa;exports.DtRecipeCallbarButtonWithPopover=sf;exports.DtRecipeComboboxMultiSelect=Wp;exports.DtRecipeComboboxWithPopover=na;exports.DtRecipeContactInfo=df;exports.DtRecipeContactRow=th;exports.DtRecipeFeedItemRow=uh;exports.DtRecipeGeneralRow=oi;exports.DtRecipeGroupRow=Zf;exports.DtRecipeGroupedChip=If;exports.DtRecipeIvrNode=Sf;exports.DtRecipeSettingsMenuButton=$f;exports.DtRecipeTimePill=_h;exports.DtRecipeTopBannerInfo=hf;exports.DtRecipeUnreadPill=rh;exports.DtRootLayout=Op;exports.DtSelectMenu=Yu;exports.DtStack=Bp;exports.DtTab=vu;exports.DtTabGroup=fu;exports.DtTabPanel=xu;exports.DtToast=ep;exports.DtToggle=rp;exports.DtTooltip=ii;exports.DtValidationMessages=we;exports.INPUT_SIZES=qe;exports.INPUT_TYPES=zt;exports.IVR_NODE_BRANCH=nn;exports.IVR_NODE_EXPERT=tn;exports.IVR_NODE_GO_TO=St;exports.IVR_NODE_HANGUP=an;exports.IVR_NODE_ICON_TYPES=ra;exports.IVR_NODE_LABELS=mf;exports.IVR_NODE_PROMPT_COLLECT=Jt;exports.IVR_NODE_PROMPT_MENU=Qt;exports.IVR_NODE_PROMPT_PLAY=en;exports.IVR_NODE_TRANSFER=sn;exports.LEFTBAR_GENERAL_ROW_CONTACT_CENTER_COLORS=ht;exports.LEFTBAR_GENERAL_ROW_CONTACT_CENTER_VALIDATION_ERROR=la;exports.LEFTBAR_GENERAL_ROW_ICON_MAPPING=oa;exports.LEFTBAR_GENERAL_ROW_ICON_SIZES=da;exports.LEFTBAR_GENERAL_ROW_TYPES=F;exports.LINK_KIND_MODIFIERS=jt;exports.LINK_VARIANTS=ts;exports.MODAL_KIND_MODIFIERS=kn;exports.MODAL_SIZE_MODIFIERS=Pn;exports.MULTI_SELECT_SIZES=ia;exports.NOTICE_KINDS=Ze;exports.POPOVER_CONTENT_WIDTHS=Zn;exports.POPOVER_HEADER_FOOTER_PADDING_CLASSES=Ns;exports.POPOVER_INITIAL_FOCUS_STRINGS=Ms;exports.POPOVER_PADDING_CLASSES=Rn;exports.POPOVER_ROLES=Bs;exports.PRESENCE_STATES=He;exports.PRESENCE_STATES_LIST=Zi;exports.ROOT_LAYOUT_RESPONSIVE_BREAKPOINTS=ea;exports.ROOT_LAYOUT_SIDEBAR_POSITIONS=si;exports.SELECT_SIZE_MODIFIERS=Bn;exports.SELECT_STATE_MODIFIERS=Us;exports.SHORTCUTS_ALIASES_LIST=pp;exports.SHORTCUTS_ICON_ALIASES=Ge;exports.SHORTCUTS_ICON_SEPARATOR=Js;exports.TAB_IMPORTANCE_MODIFIERS=Ks;exports.TAB_LIST_IMPORTANCE_MODIFIERS=Gs;exports.TAB_LIST_KIND_MODIFIERS=Hs;exports.TAB_LIST_SIZES=qs;exports.TOAST_ROLES=Ws;exports.TOOLTIP_DELAY_MS=Zs;exports.TOOLTIP_DIRECTIONS=Ys;exports.TOOLTIP_HIDE_ON_CLICK_VARIANTS=op;exports.TOOLTIP_KIND_MODIFIERS=Xs;exports.TOOLTIP_STICKY_VALUES=Qs;exports.UNREAD_PILL_DIRECTIONS=ca;exports.UNREAD_PILL_KINDS=ua;exports.VALIDATION_MESSAGE_TYPES=ee;exports.filterFormattedMessages=Mn;exports.formatMessages=lt;exports.getUniqueString=V;exports.getValidationState=Ce;exports.validationMessageValidator=yt;