@dialpad/dialtone-vue 2.83.2 → 2.83.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.json +1 -1
- package/CHANGELOG.md +14 -0
- package/dist/dialtone-vue.cjs +2 -2
- package/dist/dialtone-vue.js +3 -2
- package/dist/emoji.cjs +1 -1
- package/dist/emoji.js +1 -1
- package/dist/{emoji_text_wrapper-2ce1c80c.js → emoji_text_wrapper-1b295e1b.js} +302 -302
- package/dist/emoji_text_wrapper-f588a5a5.cjs +1 -0
- package/package.json +2 -2
- package/dist/emoji_text_wrapper-7e134e22.cjs +0 -1
package/dist/dialtone-vue.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const X=require("vue"),_=require("./emoji_text_wrapper-7e134e22.cjs"),ee={ERROR:"error",WARNING:"warning",SUCCESS:"success"},Gi={LARGE:"lg",EXTRA_LARGE:"xl"},ya={xs:"",sm:"",md:"",lg:"d-description--lg",xl:"d-description--xl"},Sa={xs:"d-label--xs",sm:"d-label--sm",md:"",lg:"d-label--lg",xl:"d-label--xl"},H={esc:"Esc",escape:"Escape",tab:"Tab",enter:"Enter",space:"Space",spacebar:"Spacebar",up:"Up",arrowup:"ArrowUp",left:"Left",arrowleft:"ArrowLeft",right:"Right",arrowright:"ArrowRight",down:"Down",arrowdown:"ArrowDown",home:"Home",end:"End"},Ki=ee.ERROR,Ca="dt";var Pe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function xa(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function wa(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function i(){if(this instanceof i){var a=[null];a.push.apply(a,arguments);var o=Function.bind.apply(e,a);return new o}return e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(i){var a=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(n,i,a.get?a:{enumerable:!0,get:function(){return t[i]}})}),n}var Rn={exports:{}};Rn.exports;(function(t){(function(e,n,i){function a(s){var u=this,d=c();u.next=function(){var l=2091639*u.s0+u.c*23283064365386963e-26;return u.s0=u.s1,u.s1=u.s2,u.s2=l-(u.c=l|0)},u.c=1,u.s0=d(" "),u.s1=d(" "),u.s2=d(" "),u.s0-=d(s),u.s0<0&&(u.s0+=1),u.s1-=d(s),u.s1<0&&(u.s1+=1),u.s2-=d(s),u.s2<0&&(u.s2+=1),d=null}function o(s,u){return u.c=s.c,u.s0=s.s0,u.s1=s.s1,u.s2=s.s2,u}function p(s,u){var d=new a(s),l=u&&u.state,f=d.next;return f.int32=function(){return d.next()*4294967296|0},f.double=function(){return f()+(f()*2097152|0)*11102230246251565e-32},f.quick=f,l&&(typeof l=="object"&&o(l,d),f.state=function(){return o(d,{})}),f}function c(){var s=4022871197,u=function(d){d=String(d);for(var l=0;l<d.length;l++){s+=d.charCodeAt(l);var f=.02519603282416938*s;s=f>>>0,f-=s,f*=s,s=f>>>0,f-=s,s+=f*4294967296}return(s>>>0)*23283064365386963e-26};return u}n&&n.exports?n.exports=p:i&&i.amd?i(function(){return p}):this.alea=p})(Pe,t,!1)})(Rn);var Ea=Rn.exports,kn={exports:{}};kn.exports;(function(t){(function(e,n,i){function a(c){var s=this,u="";s.x=0,s.y=0,s.z=0,s.w=0,s.next=function(){var l=s.x^s.x<<11;return s.x=s.y,s.y=s.z,s.z=s.w,s.w^=s.w>>>19^l^l>>>8},c===(c|0)?s.x=c:u+=c;for(var d=0;d<u.length+64;d++)s.x^=u.charCodeAt(d)|0,s.next()}function o(c,s){return s.x=c.x,s.y=c.y,s.z=c.z,s.w=c.w,s}function p(c,s){var u=new a(c),d=s&&s.state,l=function(){return(u.next()>>>0)/4294967296};return l.double=function(){do var f=u.next()>>>11,h=(u.next()>>>0)/4294967296,v=(f+h)/(1<<21);while(v===0);return v},l.int32=u.next,l.quick=l,d&&(typeof d=="object"&&o(d,u),l.state=function(){return o(u,{})}),l}n&&n.exports?n.exports=p:i&&i.amd?i(function(){return p}):this.xor128=p})(Pe,t,!1)})(kn);var Ia=kn.exports,Pn={exports:{}};Pn.exports;(function(t){(function(e,n,i){function a(c){var s=this,u="";s.next=function(){var l=s.x^s.x>>>2;return s.x=s.y,s.y=s.z,s.z=s.w,s.w=s.v,(s.d=s.d+362437|0)+(s.v=s.v^s.v<<4^(l^l<<1))|0},s.x=0,s.y=0,s.z=0,s.w=0,s.v=0,c===(c|0)?s.x=c:u+=c;for(var d=0;d<u.length+64;d++)s.x^=u.charCodeAt(d)|0,d==u.length&&(s.d=s.x<<10^s.x>>>4),s.next()}function o(c,s){return s.x=c.x,s.y=c.y,s.z=c.z,s.w=c.w,s.v=c.v,s.d=c.d,s}function p(c,s){var u=new a(c),d=s&&s.state,l=function(){return(u.next()>>>0)/4294967296};return l.double=function(){do var f=u.next()>>>11,h=(u.next()>>>0)/4294967296,v=(f+h)/(1<<21);while(v===0);return v},l.int32=u.next,l.quick=l,d&&(typeof d=="object"&&o(d,u),l.state=function(){return o(u,{})}),l}n&&n.exports?n.exports=p:i&&i.amd?i(function(){return p}):this.xorwow=p})(Pe,t,!1)})(Pn);var Oa=Pn.exports,Nn={exports:{}};Nn.exports;(function(t){(function(e,n,i){function a(c){var s=this;s.next=function(){var d=s.x,l=s.i,f,h;return f=d[l],f^=f>>>7,h=f^f<<24,f=d[l+1&7],h^=f^f>>>10,f=d[l+3&7],h^=f^f>>>3,f=d[l+4&7],h^=f^f<<7,f=d[l+7&7],f=f^f<<13,h^=f^f<<9,d[l]=h,s.i=l+1&7,h};function u(d,l){var f,h=[];if(l===(l|0))h[0]=l;else for(l=""+l,f=0;f<l.length;++f)h[f&7]=h[f&7]<<15^l.charCodeAt(f)+h[f+1&7]<<13;for(;h.length<8;)h.push(0);for(f=0;f<8&&h[f]===0;++f);for(f==8?h[7]=-1:h[f],d.x=h,d.i=0,f=256;f>0;--f)d.next()}u(s,c)}function o(c,s){return s.x=c.x.slice(),s.i=c.i,s}function p(c,s){c==null&&(c=+new Date);var u=new a(c),d=s&&s.state,l=function(){return(u.next()>>>0)/4294967296};return l.double=function(){do var f=u.next()>>>11,h=(u.next()>>>0)/4294967296,v=(f+h)/(1<<21);while(v===0);return v},l.int32=u.next,l.quick=l,d&&(d.x&&o(d,u),l.state=function(){return o(u,{})}),l}n&&n.exports?n.exports=p:i&&i.amd?i(function(){return p}):this.xorshift7=p})(Pe,t,!1)})(Nn);var Ta=Nn.exports,Bn={exports:{}};Bn.exports;(function(t){(function(e,n,i){function a(c){var s=this;s.next=function(){var d=s.w,l=s.X,f=s.i,h,v;return s.w=d=d+1640531527|0,v=l[f+34&127],h=l[f=f+1&127],v^=v<<13,h^=h<<17,v^=v>>>15,h^=h>>>12,v=l[f]=v^h,s.i=f,v+(d^d>>>16)|0};function u(d,l){var f,h,v,S,C,O=[],R=128;for(l===(l|0)?(h=l,l=null):(l=l+"\0",h=0,R=Math.max(R,l.length)),v=0,S=-32;S<R;++S)l&&(h^=l.charCodeAt((S+32)%l.length)),S===0&&(C=h),h^=h<<10,h^=h>>>15,h^=h<<4,h^=h>>>13,S>=0&&(C=C+1640531527|0,f=O[S&127]^=h+C,v=f==0?v+1:0);for(v>=128&&(O[(l&&l.length||0)&127]=-1),v=127,S=4*128;S>0;--S)h=O[v+34&127],f=O[v=v+1&127],h^=h<<13,f^=f<<17,h^=h>>>15,f^=f>>>12,O[v]=h^f;d.w=C,d.X=O,d.i=v}u(s,c)}function o(c,s){return s.i=c.i,s.w=c.w,s.X=c.X.slice(),s}function p(c,s){c==null&&(c=+new Date);var u=new a(c),d=s&&s.state,l=function(){return(u.next()>>>0)/4294967296};return l.double=function(){do var f=u.next()>>>11,h=(u.next()>>>0)/4294967296,v=(f+h)/(1<<21);while(v===0);return v},l.int32=u.next,l.quick=l,d&&(d.X&&o(d,u),l.state=function(){return o(u,{})}),l}n&&n.exports?n.exports=p:i&&i.amd?i(function(){return p}):this.xor4096=p})(Pe,t,!1)})(Bn);var La=Bn.exports,Mn={exports:{}};Mn.exports;(function(t){(function(e,n,i){function a(c){var s=this,u="";s.next=function(){var l=s.b,f=s.c,h=s.d,v=s.a;return l=l<<25^l>>>7^f,f=f-h|0,h=h<<24^h>>>8^v,v=v-l|0,s.b=l=l<<20^l>>>12^f,s.c=f=f-h|0,s.d=h<<16^f>>>16^v,s.a=v-l|0},s.a=0,s.b=0,s.c=-1640531527,s.d=1367130551,c===Math.floor(c)?(s.a=c/4294967296|0,s.b=c|0):u+=c;for(var d=0;d<u.length+20;d++)s.b^=u.charCodeAt(d)|0,s.next()}function o(c,s){return s.a=c.a,s.b=c.b,s.c=c.c,s.d=c.d,s}function p(c,s){var u=new a(c),d=s&&s.state,l=function(){return(u.next()>>>0)/4294967296};return l.double=function(){do var f=u.next()>>>11,h=(u.next()>>>0)/4294967296,v=(f+h)/(1<<21);while(v===0);return v},l.int32=u.next,l.quick=l,d&&(typeof d=="object"&&o(d,u),l.state=function(){return o(u,{})}),l}n&&n.exports?n.exports=p:i&&i.amd?i(function(){return p}):this.tychei=p})(Pe,t,!1)})(Mn);var Aa=Mn.exports,Ui={exports:{}};const $a={},Da=Object.freeze(Object.defineProperty({__proto__:null,default:$a},Symbol.toStringTag,{value:"Module"})),Ra=wa(Da);(function(t){(function(e,n,i){var a=256,o=6,p=52,c="random",s=i.pow(a,o),u=i.pow(2,p),d=u*2,l=a-1,f;function h(r,b,g){var w=[];b=b==!0?{entropy:!0}:b||{};var I=O(C(b.entropy?[r,k(n)]:r??R(),3),w),L=new v(w),A=function(){for(var E=L.g(o),T=s,$=0;E<u;)E=(E+$)*a,T*=a,$=L.g(1);for(;E>=d;)E/=2,T/=2,$>>>=1;return(E+$)/T};return A.int32=function(){return L.g(4)|0},A.quick=function(){return L.g(4)/4294967296},A.double=A,O(k(L.S),n),(b.pass||g||function(E,T,$,N){return N&&(N.S&&S(N,L),E.state=function(){return S(L,{})}),$?(i[c]=E,T):E})(A,I,"global"in b?b.global:this==i,b.state)}function v(r){var b,g=r.length,w=this,I=0,L=w.i=w.j=0,A=w.S=[];for(g||(r=[g++]);I<a;)A[I]=I++;for(I=0;I<a;I++)A[I]=A[L=l&L+r[I%g]+(b=A[I])],A[L]=b;(w.g=function(E){for(var T,$=0,N=w.i,j=w.j,B=w.S;E--;)T=B[N=l&N+1],$=$*a+B[l&(B[N]=B[j=l&j+T])+(B[j]=T)];return w.i=N,w.j=j,$})(a)}function S(r,b){return b.i=r.i,b.j=r.j,b.S=r.S.slice(),b}function C(r,b){var g=[],w=typeof r,I;if(b&&w=="object")for(I in r)try{g.push(C(r[I],b-1))}catch{}return g.length?g:w=="string"?r:r+"\0"}function O(r,b){for(var g=r+"",w,I=0;I<g.length;)b[l&I]=l&(w^=b[l&I]*19)+g.charCodeAt(I++);return k(b)}function R(){try{var r;return f&&(r=f.randomBytes)?r=r(a):(r=new Uint8Array(a),(e.crypto||e.msCrypto).getRandomValues(r)),k(r)}catch{var b=e.navigator,g=b&&b.plugins;return[+new Date,e,g,e.screen,k(n)]}}function k(r){return String.fromCharCode.apply(0,r)}if(O(i.random(),n),t.exports){t.exports=h;try{f=Ra}catch{}}else i["seed"+c]=h})(typeof self<"u"?self:Pe,[],Math)})(Ui);var ka=Ui.exports,Pa=Ea,Na=Ia,Ba=Oa,Ma=Ta,Fa=La,Va=Aa,Ne=ka;Ne.alea=Pa;Ne.xor128=Na;Ne.xorwow=Ba;Ne.xorshift7=Ma;Ne.xor4096=Fa;Ne.tychei=Va;var ja=Ne;const Wi=xa(ja);let za=0,di;const Ha=typeof setImmediate=="function"?setImmediate:setTimeout;function V(t=Ca){return`${t}${za++}`}function Bt(t,e){const n=Wi(e);return t[Math.floor(n()*t.length)]}function dt(t){return t?t.map(e=>typeof e=="string"?{message:e,type:Ki}:e):[]}function Fn(t){const e=Ce(t);return!t||!e?[]:t.filter(n=>!!n.message&&n.type===e)}function Ce(t){return t?Mt(t,ee.ERROR)?ee.ERROR:Mt(t,ee.WARNING)?ee.WARNING:Mt(t,ee.SUCCESS)?ee.SUCCESS:null:null}function Mt(t,e){return!t||!e?!1:t.some(n=>(n==null?void 0:n.type)===e)}const qa={name:"html-fragment",functional:!0,props:["html"],render(t,e){return new X({name:"Inner",beforeCreate(){this.$createElement=t},template:`<div>${e.props.html}</div>`}).$mount()._vnode.children}},Ga=()=>new Promise(t=>{Ha(t)}),Yi=t=>t==null?void 0:t.toLowerCase().split("-").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join("");function Ka(t,e=300){clearTimeout(di),di=setTimeout(t,e)}function Zi(t){const e=t.getBoundingClientRect(),n={top:e.top<0,left:e.left<0,bottom:e.bottom>(window.innerHeight||document.documentElement.clientHeight),right:e.right>(window.innerWidth||document.documentElement.clientWidth)};return n.any=Object.values(n).some(i=>i),n.all=Object.values(n).every(i=>i),n}const ae={getUniqueString:V,getRandomElement:Bt,formatMessages:dt,filterFormattedMessages:Fn,hasFormattedMessageOfType:Mt,getValidationState:Ce,htmlFragment:qa,flushPromises:Ga,kebabCaseToPascalCase:Yi,debounce:Ka,isOutOfViewPort:Zi},Ge={BUSY:"busy",AWAY:"away",OFFLINE:"offline",ACTIVE:"active"},Xi=[Ge.BUSY,Ge.AWAY,Ge.OFFLINE,Ge.ACTIVE],Ua={name:"DtPresence",props:{presence:{type:String,default:Ge.ACTIVE,validator:t=>Xi.includes(t)},srText:{type:String,default:null}}};var Wa=function(){var e=this,n=e._self._c;return n("div",{staticClass:"d-presence",attrs:{"data-qa":"dt-presence",role:"status","aria-live":e.$attrs.ariaLive||"off"}},[e.srText?n("span",{staticClass:"sr-only",attrs:{"data-qa":"dt-presence-sr-text"}},[e._v(e._s(e.srText)+" ")]):e._e(),n("div",{staticClass:"d-presence__inner",class:{"d-presence__inner--active":e.presence==="active","d-presence__inner--away":e.presence==="away","d-presence__inner--busy":e.presence==="busy","d-presence__inner--offline":e.presence==="offline"}})])},Ya=[],Za=_.normalizeComponent(Ua,Wa,Ya,!1,null,null,null,null);const Qi=Za.exports,Xa={name:"DtIcon",props:{size:{type:String,default:"500",validator:t=>Object.keys(_.ICON_SIZE_MODIFIERS).includes(t)},name:{type:String,required:!0},ariaLabel:{type:String,default:void 0}},computed:{iconSize(){return _.ICON_SIZE_MODIFIERS[this.size]},iconName(){return Yi(this.name)},currentIcon(){return _.DIALTONE_ICONS[this.iconName]}}};var Qa=function(){var e=this,n=e._self._c;return e.currentIcon?n(e.currentIcon,{tag:"component",class:e.iconSize,attrs:{"data-qa":"dt-icon","aria-hidden":e.ariaLabel?"false":"true","aria-label":e.ariaLabel}}):e._e()},Ja=[],er=_.normalizeComponent(Xa,Qa,Ja,!1,null,null,null,null);const M=er.exports,Ft={xs:"d-avatar--xs",sm:"d-avatar--sm",md:"d-avatar--md",lg:"d-avatar--lg",xl:"d-avatar--xl"},gn={default:"",icon:"d-avatar__icon",initials:"d-avatar__initials"},tr={md:"d-avatar__presence--md",lg:"d-avatar__presence--lg"},ci={NONE:"",BUSY:"busy",AWAY:"away",OFFLINE:"offline",ACTIVE:"active"},nr=[45,-45,90,-90,135,-135,180,-180],ui={with100:["purple-100","magenta-100","gold-100","blue-100"],with200:["purple-200","magenta-200","gold-200","blue-200"]},ir=3,sr=2,pi=t=>t>1;const ar={name:"DtAvatar",components:{DtPresence:Qi,DtIcon:M},inheritAttrs:!1,props:{id:{type:String,default(){return V()}},seed:{type:String,default:void 0},size:{type:String,default:"md",validator:t=>Object.keys(Ft).includes(t)},avatarClass:{type:[String,Array,Object],default:""},canvasClass:{type:[String,Array,Object],default:""},presence:{type:String,default:ci.NONE,validator:t=>Object.values(ci).includes(t)},presenceProps:{type:Object,default:()=>({})},initials:{type:String,default:""},gradient:{type:Boolean,default:!0},group:{type:Number,default:void 0,validator:t=>pi(t)},overlayIcon:{type:String,default:""},overlayText:{type:String,default:""},overlayClass:{type:[String,Array,Object],default:""}},data(){return{kind:null,AVATAR_SIZE_MODIFIERS:Ft,AVATAR_KIND_MODIFIERS:gn,AVATAR_PRESENCE_SIZE_MODIFIERS:tr,imageLoadedSuccessfully:null,slottedInitials:"",formattedInitials:"",initializing:!1}},computed:{avatarClasses(){return["d-avatar",Ft[this.validatedSize],this.avatarClass,{"d-avatar--no-gradient":!this.gradient,"d-avatar--group":this.showGroup}]},overlayClasses(){return["d-bgc-black-900 d-o70 d-ps-absolute d-w100p d-h100p d-d-flex d-ai-center d-bar-circle d-zi-base",this.overlayClass]},showDefaultSlot(){return this.kind!=="initials"||this.kind==="image"&&this.imageLoadedSuccessfully===!0},showInitials(){return this.kind==="initials"||this.kind==="image"&&this.initials&&this.imageLoadedSuccessfully!==!0},showGroup(){return pi(this.group)},initialKindStyle(){const t=this.randomizeGradientColorStops();return{"--avatar-gradient-angle":`${this.randomizeGradientAngle()}deg`,"--avatar-gradient-stop-1":`var(--${t[0]})`,"--avatar-gradient-stop-2":`var(--${t[1]})`,"--avatar-gradient-stop-3":`var(--${t[2]})`}},formattedGroup(){return this.group>99?"99+":this.group},validatedSize(){return this.group?"xs":this.size}},mounted(){this.init()},updated(){this.init()},methods:{async init(){var e;if(this.initializing)return;this.kind=null,await this.$nextTick();const t=((e=this.$refs.canvas)==null?void 0:e.firstElementChild)||this.$refs.canvas;this.formatInitials(this.initials),t&&(this.setKind(t),this.kindHandler(t)),this.initializing=!0,await this.$nextTick(),this.initializing=!1},kindHandler(t){switch(this.kind){case"image":t.classList.add("d-avatar__image"),this.validateImageAttrsPresence(),this.setImageListeners(t);break;case"icon":t.classList.add(gn.icon);break;case"initials":this.slottedInitials=t.text||t.textContent,this.formatInitials(this.slottedInitials.trim()||this.initials);break}},setImageListeners(t){t.addEventListener("load",()=>this._loadedImageEventHandler(t),{once:!0}),t.addEventListener("error",()=>this._erroredImageEventHandler(t),{once:!0})},formatInitials(t){!t||this.validatedSize==="xs"?this.formattedInitials="":this.validatedSize==="sm"?this.formattedInitials=t.trim()[0]:this.formattedInitials=t.trim().slice(0,2)},setKind(t){if(this.isIconType(t)){this.kind="icon";return}if(this.isImageType(t)){this.kind="image";return}this.kind="initials"},isIconType(t){var e;return((e=t==null?void 0:t.tagName)==null?void 0:e.toUpperCase())==="SVG"},isImageType(t){var e;return((e=t==null?void 0:t.tagName)==null?void 0:e.toUpperCase())==="IMG"},randomizeGradientAngle(){return Bt(nr,this.seed)},randomizeGradientColorStops(){const t=new Set;let e=0;for(;t.size<ir;){const i=this.seed===void 0?void 0:this.seed+e.toString();t.size===sr?t.add(Bt(ui.with200,i)):t.add(Bt(ui.with100,i)),e++}const n=Wi(this.seed);return Array.from(t).sort(()=>.5-n())},validateImageAttrsPresence(){const t=!this.$refs.canvas.firstChild.getAttribute("src"),e=this.$refs.canvas.firstChild.getAttribute("alt")===null;(t||e)&&X.util.warn("src and alt attributes are required for image avatars",this)},_loadedImageEventHandler(t){this.imageLoadedSuccessfully=!0,t.classList.remove("d-d-none"),t.classList.add("d-avatar--image-loaded")},_erroredImageEventHandler(t){this.imageLoadedSuccessfully=!1,t.classList.remove("d-avatar--image-loaded"),t.classList.add("d-d-none")}}};var rr=function(){var e=this,n=e._self._c;return n("div",{class:e.avatarClasses,style:e.initialKindStyle,attrs:{id:e.id,"data-qa":"dt-avatar"}},[n("div",{ref:"canvas",class:[e.canvasClass,"d-avatar__canvas"]},[e.showDefaultSlot?e._t("default"):e._e(),e.showInitials?n("span",{staticClass:"d-ps-absolute d-zi-base",class:e.AVATAR_KIND_MODIFIERS.initials},[e._v(" "+e._s(e.formattedInitials)+" ")]):e._e()],2),e.overlayIcon||e.overlayText?n("div",{class:e.overlayClasses},[e.overlayIcon?n("dt-icon",{staticClass:"d-fc-white d-w100p",attrs:{name:e.overlayIcon}}):e.overlayText?n("p",{staticClass:"d-fs-200 d-fw-bold d-fc-white d-w100p d-ta-center"},[e._v(" "+e._s(e.overlayText)+" ")]):e._e()],1):e._e(),e.showGroup?n("span",{staticClass:"d-avatar__count d-zi-base",attrs:{"data-qa":"dt-avatar-count"}},[e._v(e._s(e.formattedGroup))]):e._e(),e.presence&&!e.showGroup?n("dt-presence",e._b({staticClass:"d-zi-base",class:["d-avatar__presence",e.AVATAR_PRESENCE_SIZE_MODIFIERS[e.size]],attrs:{presence:e.presence,"data-qa":"dt-presence"}},"dt-presence",e.presenceProps,!1)):e._e()],1)},or=[],lr=_.normalizeComponent(ar,rr,or,!1,null,null,null,null);const Kt=lr.exports,vn={default:"",info:"d-badge--info",success:"d-badge--success",warning:"d-badge--warning",critical:"d-badge--critical",bulletin:"d-badge--bulletin",ai:"d-badge--ai"},bn={label:"",count:"d-badge--count"},yn={"black-400":"d-badge--decorate-black-400","black-500":"d-badge--decorate-black-500","black-900":"d-badge--decorate-black-900","red-200":"d-badge--decorate-red-200","red-300":"d-badge--decorate-red-300","red-400":"d-badge--decorate-red-400","purple-200":"d-badge--decorate-purple-200","purple-300":"d-badge--decorate-purple-300","purple-400":"d-badge--decorate-purple-400","purple-500":"d-badge--decorate-purple-500","blue-200":"d-badge--decorate-blue-200","blue-300":"d-badge--decorate-blue-300","blue-400":"d-badge--decorate-blue-400","green-300":"d-badge--decorate-green-300","green-400":"d-badge--decorate-green-400","green-500":"d-badge--decorate-green-500","gold-300":"d-badge--decorate-gold-300","gold-400":"d-badge--decorate-gold-400","gold-500":"d-badge--decorate-gold-500","magenta-200":"d-badge--decorate-magenta-200","magenta-300":"d-badge--decorate-magenta-300","magenta-400":"d-badge--decorate-magenta-400"},dr={name:"DtBadge",components:{DtIcon:M},props:{iconLeft:{type:String,default:""},iconRight:{type:String,default:""},text:{type:String,default:""},kind:{type:String,default:"label",validator:t=>Object.keys(bn).includes(t)},type:{type:String,default:"default",validator:t=>Object.keys(vn).includes(t)},decoration:{type:String,default:void 0,validator:t=>Object.keys(yn).includes(t)}},data(){return{BADGE_TYPE_MODIFIERS:vn,BADGE_KIND_MODIFIERS:bn,BADGE_DECORATION_MODIFIERS:yn}},computed:{hasIcons(){return this.iconLeft!==""||this.iconRight!==""}},watch:{$props:{immediate:!0,deep:!0,handler(){this.validateProps()}}},methods:{validateProps(){this.validateTypePropCombination(),this.validateDecorationPropCombination()},validateTypePropCombination(){this.type==="ai"&&this.kind==="count"&&console.error("DtBadge error: type: 'ai' with kind: 'count' is an invalid combination.")},validateDecorationPropCombination(){this.decoration&&((this.kind!=="label"||this.type!=="default")&&console.error("DtBadge error: decoration prop can only be used with kind: 'label' and type: 'default'."),this.hasIcons&&console.error("DtBadge error: decoration prop cannot be used with iconLeft or iconRight."))}}};var cr=function(){var e=this,n=e._self._c;return n("span",{class:["d-badge",e.BADGE_TYPE_MODIFIERS[e.type],e.BADGE_KIND_MODIFIERS[e.kind],e.BADGE_DECORATION_MODIFIERS[e.decoration]],attrs:{"data-qa":"dt-badge"}},[e.decoration?n("span",{staticClass:"d-badge__decorative"}):e._e(),e.iconLeft||e.type==="ai"?n("span",{staticClass:"d-badge__icon-left"},[n("dt-icon",{attrs:{name:e.iconLeft||"dialpad-ai",size:"200"}})],1):e._e(),n("span",{staticClass:"d-badge__label"},[e._t("default",function(){return[e._v(" "+e._s(e.text)+" ")]})],2),e.iconRight?n("span",{staticClass:"d-badge__icon-right"},[n("dt-icon",{attrs:{name:e.iconRight,size:"200"}})],1):e._e()])},ur=[],pr=_.normalizeComponent(dr,cr,ur,!1,null,null,null,null);const Ji=pr.exports,Xe=["base","error","info","success","warning"],fr=["alert","alertdialog","status"],hr=new Map([["info","info"],["success","check-circle"],["warning","alert-triangle"],["error","alert-circle"],["base","bell"]]),mr={name:"DtNoticeIcon",components:{DtIcon:M},props:{kind:{type:String,default:"base",validate(t){return Xe.includes(t)}}},computed:{defaultIcon(){return hr.get(this.kind)}}};var _r=function(){var e=this,n=e._self._c;return e.defaultIcon||e.$slots.default?n("div",{staticClass:"d-notice__icon",attrs:{"aria-hidden":"true"}},[e._t("default",function(){return[n("dt-icon",{attrs:{name:e.defaultIcon,size:"400"}})]})],2):e._e()},gr=[],vr=_.normalizeComponent(mr,_r,gr,!1,null,null,null,null);const Vn=vr.exports,br={name:"DtNoticeContent",props:{title:{type:String,default:""},titleId:{type:String,default:void 0},contentId:{type:String,default:void 0}}};var yr=function(){var e=this,n=e._self._c;return n("div",{staticClass:"d-notice__content",attrs:{"data-qa":"notice-content"}},[e.title||e.$slots.titleOverride?n("p",{staticClass:"d-notice__title",attrs:{id:e.titleId,"data-qa":"notice-content-title"}},[e._t("titleOverride",function(){return[e._v(" "+e._s(e.title)+" ")]})],2):e._e(),n("p",{staticClass:"d-notice__message",attrs:{id:e.contentId,"data-qa":"notice-content-message"}},[e._t("default")],2)])},Sr=[],Cr=_.normalizeComponent(br,yr,Sr,!1,null,null,null,null);const jn=Cr.exports,cn={xs:"d-btn--xs",sm:"d-btn--sm",md:"",lg:"d-btn--lg",xl:"d-btn--xl"},fi={default:"",muted:"d-btn--muted",danger:"d-btn--danger",inverted:"d-btn--inverted"},hi={clear:"",primary:"d-btn--primary",outlined:"d-btn--outlined"},xr=["submit","reset","button"],mi={left:"d-btn__icon--left",right:"d-btn__icon--right",top:"d-btn__icon--top",bottom:"d-btn__icon--bottom"},wr=[{circle:!0,kind:"default",importance:"primary",message:kt(!0,"default","primary")},{circle:!0,kind:"danger",importance:"outlined",message:kt(!0,"danger","outlined")},{circle:!0,kind:"muted",importance:"primary",message:kt(!0,"muted","primary")},{circle:!1,kind:"muted",importance:"primary",message:kt(!1,"muted","primary")}];function kt(t,e,n){return`You cannot have a ${t?"circle ":""}button with kind: ${e} and importance: ${n} as it does not exist in our design system. See https://dialpad.design/components/button.html for a list of available button styles`}const Er="danger",Ir="warning",Or="success",es="muted",ts="inverted",ns=["",Er,Ir,Or,es,ts],Ht={default:"",warning:"d-link--warning",danger:"d-link--danger",success:"d-link--success",muted:"d-link--muted",inverted:"d-link--inverted"},Tr={name:"DtButton",props:{circle:{type:Boolean,default:!1},iconPosition:{type:String,default:"left",validator:t=>Object.keys(mi).includes(t)},importance:{type:String,default:"primary",validator:t=>Object.keys(hi).includes(t)},link:{type:Boolean,default:!1},linkKind:{type:String,default:"default",validator:t=>Object.keys(Ht).includes(t)},disabled:{type:Boolean,default:!1},type:{type:String,default:"button",validator:t=>xr.includes(t)},width:{type:String,default:null},size:{type:String,default:"md",validator:t=>Object.keys(cn).includes(t)},labelClass:{type:[String,Array,Object],default:""},loading:{type:Boolean,default:!1},kind:{type:String,default:"default",validator:t=>Object.keys(fi).includes(t)},assertiveOnFocus:{type:Boolean,default:!1},active:{type:Boolean,default:!1}},emits:["click","focusin","focusout"],data(){return{ICON_POSITION_MODIFIERS:mi,isInFocus:!1}},computed:{buttonListeners(){return this.assertiveOnFocus?{...this.$listeners,focusin:t=>{this.isInFocus=!0},focusout:t=>{this.isInFocus=!1}}:this.$listeners},computedAriaLive(){return this.assertiveOnFocus&&this.isInFocus?"assertive":this.$attrs.ariaLive}},watch:{$props:{deep:!0,immediate:!0,handler(){process.env.NODE_ENV!=="production"&&(this.circle&&this.link&&X.util.warn("You cannot enable circle and link at the same time",this),this.isInvalidPropCombination(this.circle,this.kind,this.importance))}}},methods:{buttonClasses(){return this.link?["d-link",Ht[this.linkKind],cn[this.size]]:["d-btn",hi[this.importance],fi[this.kind],cn[this.size],{"d-btn--circle":this.circle,"d-btn--loading":this.loading,"d-btn--icon-only":this.isIconOnly(),"d-btn--vertical":this.isVerticalIconLayout(),"d-btn--active":this.active}]},isInvalidPropCombination(t,e,n){for(const i of wr)if(t===i.circle&&e===i.kind&&n===i.importance)return console.error(i.message),!1;return!0},shouldRenderIcon(){return this.$slots.icon&&!this.link},isIconOnly(){return this.shouldRenderIcon()&&!this.$slots.default},isVerticalIconLayout(){return this.shouldRenderIcon()&&!this.isIconOnly()&&["top","bottom"].includes(this.iconPosition)}}};var Lr=function(){var e=this,n=e._self._c;return n("button",e._g({class:["base-button__button",e.buttonClasses()],style:{width:e.width},attrs:{"data-qa":"dt-button",type:e.type,disabled:e.disabled,"aria-live":e.computedAriaLive,"aria-label":e.loading?"loading":e.$attrs["aria-label"]}},e.buttonListeners),[e.shouldRenderIcon()?n("span",{class:["base-button__icon","d-btn__icon",e.ICON_POSITION_MODIFIERS[e.iconPosition]],attrs:{"data-qa":"dt-button-icon"}},[e._t("icon")],2):e._e(),e.$slots.default?n("span",{class:["d-btn__label","base-button__label",e.labelClass],attrs:{"data-qa":"dt-button-label"}},[e._t("default")],2):e._e()])},Ar=[],$r=_.normalizeComponent(Tr,Lr,Ar,!1,null,null,null,null);const q=$r.exports,ge={props:{visuallyHiddenClose:{type:Boolean,default:!1},visuallyHiddenCloseLabel:{type:String,default:null}},watch:{$props:{immediate:!0,deep:!0,handler(){this.validateVisuallyHiddenCloseProps()}}},computed:{showVisuallyHiddenClose(){return this.visuallyHiddenClose&&this.visuallyHiddenCloseLabel!=null}},methods:{validateVisuallyHiddenCloseProps(){this.visuallyHiddenClose&&!this.visuallyHiddenCloseLabel&&console.error(`If visuallyHiddenClose prop is true, the component includes
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const X=require("vue"),_=require("./emoji_text_wrapper-f588a5a5.cjs"),ee={ERROR:"error",WARNING:"warning",SUCCESS:"success"},Gi={LARGE:"lg",EXTRA_LARGE:"xl"},ya={xs:"",sm:"",md:"",lg:"d-description--lg",xl:"d-description--xl"},Sa={xs:"d-label--xs",sm:"d-label--sm",md:"",lg:"d-label--lg",xl:"d-label--xl"},H={esc:"Esc",escape:"Escape",tab:"Tab",enter:"Enter",space:"Space",spacebar:"Spacebar",up:"Up",arrowup:"ArrowUp",left:"Left",arrowleft:"ArrowLeft",right:"Right",arrowright:"ArrowRight",down:"Down",arrowdown:"ArrowDown",home:"Home",end:"End"},Ki=ee.ERROR,Ca="dt";var Pe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function xa(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function wa(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function i(){if(this instanceof i){var a=[null];a.push.apply(a,arguments);var o=Function.bind.apply(e,a);return new o}return e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(i){var a=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(n,i,a.get?a:{enumerable:!0,get:function(){return t[i]}})}),n}var Rn={exports:{}};Rn.exports;(function(t){(function(e,n,i){function a(s){var u=this,d=c();u.next=function(){var l=2091639*u.s0+u.c*23283064365386963e-26;return u.s0=u.s1,u.s1=u.s2,u.s2=l-(u.c=l|0)},u.c=1,u.s0=d(" "),u.s1=d(" "),u.s2=d(" "),u.s0-=d(s),u.s0<0&&(u.s0+=1),u.s1-=d(s),u.s1<0&&(u.s1+=1),u.s2-=d(s),u.s2<0&&(u.s2+=1),d=null}function o(s,u){return u.c=s.c,u.s0=s.s0,u.s1=s.s1,u.s2=s.s2,u}function p(s,u){var d=new a(s),l=u&&u.state,f=d.next;return f.int32=function(){return d.next()*4294967296|0},f.double=function(){return f()+(f()*2097152|0)*11102230246251565e-32},f.quick=f,l&&(typeof l=="object"&&o(l,d),f.state=function(){return o(d,{})}),f}function c(){var s=4022871197,u=function(d){d=String(d);for(var l=0;l<d.length;l++){s+=d.charCodeAt(l);var f=.02519603282416938*s;s=f>>>0,f-=s,f*=s,s=f>>>0,f-=s,s+=f*4294967296}return(s>>>0)*23283064365386963e-26};return u}n&&n.exports?n.exports=p:i&&i.amd?i(function(){return p}):this.alea=p})(Pe,t,!1)})(Rn);var Ea=Rn.exports,kn={exports:{}};kn.exports;(function(t){(function(e,n,i){function a(c){var s=this,u="";s.x=0,s.y=0,s.z=0,s.w=0,s.next=function(){var l=s.x^s.x<<11;return s.x=s.y,s.y=s.z,s.z=s.w,s.w^=s.w>>>19^l^l>>>8},c===(c|0)?s.x=c:u+=c;for(var d=0;d<u.length+64;d++)s.x^=u.charCodeAt(d)|0,s.next()}function o(c,s){return s.x=c.x,s.y=c.y,s.z=c.z,s.w=c.w,s}function p(c,s){var u=new a(c),d=s&&s.state,l=function(){return(u.next()>>>0)/4294967296};return l.double=function(){do var f=u.next()>>>11,h=(u.next()>>>0)/4294967296,v=(f+h)/(1<<21);while(v===0);return v},l.int32=u.next,l.quick=l,d&&(typeof d=="object"&&o(d,u),l.state=function(){return o(u,{})}),l}n&&n.exports?n.exports=p:i&&i.amd?i(function(){return p}):this.xor128=p})(Pe,t,!1)})(kn);var Ia=kn.exports,Pn={exports:{}};Pn.exports;(function(t){(function(e,n,i){function a(c){var s=this,u="";s.next=function(){var l=s.x^s.x>>>2;return s.x=s.y,s.y=s.z,s.z=s.w,s.w=s.v,(s.d=s.d+362437|0)+(s.v=s.v^s.v<<4^(l^l<<1))|0},s.x=0,s.y=0,s.z=0,s.w=0,s.v=0,c===(c|0)?s.x=c:u+=c;for(var d=0;d<u.length+64;d++)s.x^=u.charCodeAt(d)|0,d==u.length&&(s.d=s.x<<10^s.x>>>4),s.next()}function o(c,s){return s.x=c.x,s.y=c.y,s.z=c.z,s.w=c.w,s.v=c.v,s.d=c.d,s}function p(c,s){var u=new a(c),d=s&&s.state,l=function(){return(u.next()>>>0)/4294967296};return l.double=function(){do var f=u.next()>>>11,h=(u.next()>>>0)/4294967296,v=(f+h)/(1<<21);while(v===0);return v},l.int32=u.next,l.quick=l,d&&(typeof d=="object"&&o(d,u),l.state=function(){return o(u,{})}),l}n&&n.exports?n.exports=p:i&&i.amd?i(function(){return p}):this.xorwow=p})(Pe,t,!1)})(Pn);var Oa=Pn.exports,Nn={exports:{}};Nn.exports;(function(t){(function(e,n,i){function a(c){var s=this;s.next=function(){var d=s.x,l=s.i,f,h;return f=d[l],f^=f>>>7,h=f^f<<24,f=d[l+1&7],h^=f^f>>>10,f=d[l+3&7],h^=f^f>>>3,f=d[l+4&7],h^=f^f<<7,f=d[l+7&7],f=f^f<<13,h^=f^f<<9,d[l]=h,s.i=l+1&7,h};function u(d,l){var f,h=[];if(l===(l|0))h[0]=l;else for(l=""+l,f=0;f<l.length;++f)h[f&7]=h[f&7]<<15^l.charCodeAt(f)+h[f+1&7]<<13;for(;h.length<8;)h.push(0);for(f=0;f<8&&h[f]===0;++f);for(f==8?h[7]=-1:h[f],d.x=h,d.i=0,f=256;f>0;--f)d.next()}u(s,c)}function o(c,s){return s.x=c.x.slice(),s.i=c.i,s}function p(c,s){c==null&&(c=+new Date);var u=new a(c),d=s&&s.state,l=function(){return(u.next()>>>0)/4294967296};return l.double=function(){do var f=u.next()>>>11,h=(u.next()>>>0)/4294967296,v=(f+h)/(1<<21);while(v===0);return v},l.int32=u.next,l.quick=l,d&&(d.x&&o(d,u),l.state=function(){return o(u,{})}),l}n&&n.exports?n.exports=p:i&&i.amd?i(function(){return p}):this.xorshift7=p})(Pe,t,!1)})(Nn);var Ta=Nn.exports,Bn={exports:{}};Bn.exports;(function(t){(function(e,n,i){function a(c){var s=this;s.next=function(){var d=s.w,l=s.X,f=s.i,h,v;return s.w=d=d+1640531527|0,v=l[f+34&127],h=l[f=f+1&127],v^=v<<13,h^=h<<17,v^=v>>>15,h^=h>>>12,v=l[f]=v^h,s.i=f,v+(d^d>>>16)|0};function u(d,l){var f,h,v,S,C,O=[],R=128;for(l===(l|0)?(h=l,l=null):(l=l+"\0",h=0,R=Math.max(R,l.length)),v=0,S=-32;S<R;++S)l&&(h^=l.charCodeAt((S+32)%l.length)),S===0&&(C=h),h^=h<<10,h^=h>>>15,h^=h<<4,h^=h>>>13,S>=0&&(C=C+1640531527|0,f=O[S&127]^=h+C,v=f==0?v+1:0);for(v>=128&&(O[(l&&l.length||0)&127]=-1),v=127,S=4*128;S>0;--S)h=O[v+34&127],f=O[v=v+1&127],h^=h<<13,f^=f<<17,h^=h>>>15,f^=f>>>12,O[v]=h^f;d.w=C,d.X=O,d.i=v}u(s,c)}function o(c,s){return s.i=c.i,s.w=c.w,s.X=c.X.slice(),s}function p(c,s){c==null&&(c=+new Date);var u=new a(c),d=s&&s.state,l=function(){return(u.next()>>>0)/4294967296};return l.double=function(){do var f=u.next()>>>11,h=(u.next()>>>0)/4294967296,v=(f+h)/(1<<21);while(v===0);return v},l.int32=u.next,l.quick=l,d&&(d.X&&o(d,u),l.state=function(){return o(u,{})}),l}n&&n.exports?n.exports=p:i&&i.amd?i(function(){return p}):this.xor4096=p})(Pe,t,!1)})(Bn);var La=Bn.exports,Mn={exports:{}};Mn.exports;(function(t){(function(e,n,i){function a(c){var s=this,u="";s.next=function(){var l=s.b,f=s.c,h=s.d,v=s.a;return l=l<<25^l>>>7^f,f=f-h|0,h=h<<24^h>>>8^v,v=v-l|0,s.b=l=l<<20^l>>>12^f,s.c=f=f-h|0,s.d=h<<16^f>>>16^v,s.a=v-l|0},s.a=0,s.b=0,s.c=-1640531527,s.d=1367130551,c===Math.floor(c)?(s.a=c/4294967296|0,s.b=c|0):u+=c;for(var d=0;d<u.length+20;d++)s.b^=u.charCodeAt(d)|0,s.next()}function o(c,s){return s.a=c.a,s.b=c.b,s.c=c.c,s.d=c.d,s}function p(c,s){var u=new a(c),d=s&&s.state,l=function(){return(u.next()>>>0)/4294967296};return l.double=function(){do var f=u.next()>>>11,h=(u.next()>>>0)/4294967296,v=(f+h)/(1<<21);while(v===0);return v},l.int32=u.next,l.quick=l,d&&(typeof d=="object"&&o(d,u),l.state=function(){return o(u,{})}),l}n&&n.exports?n.exports=p:i&&i.amd?i(function(){return p}):this.tychei=p})(Pe,t,!1)})(Mn);var Aa=Mn.exports,Ui={exports:{}};const $a={},Da=Object.freeze(Object.defineProperty({__proto__:null,default:$a},Symbol.toStringTag,{value:"Module"})),Ra=wa(Da);(function(t){(function(e,n,i){var a=256,o=6,p=52,c="random",s=i.pow(a,o),u=i.pow(2,p),d=u*2,l=a-1,f;function h(r,b,g){var w=[];b=b==!0?{entropy:!0}:b||{};var I=O(C(b.entropy?[r,k(n)]:r??R(),3),w),L=new v(w),A=function(){for(var E=L.g(o),T=s,$=0;E<u;)E=(E+$)*a,T*=a,$=L.g(1);for(;E>=d;)E/=2,T/=2,$>>>=1;return(E+$)/T};return A.int32=function(){return L.g(4)|0},A.quick=function(){return L.g(4)/4294967296},A.double=A,O(k(L.S),n),(b.pass||g||function(E,T,$,N){return N&&(N.S&&S(N,L),E.state=function(){return S(L,{})}),$?(i[c]=E,T):E})(A,I,"global"in b?b.global:this==i,b.state)}function v(r){var b,g=r.length,w=this,I=0,L=w.i=w.j=0,A=w.S=[];for(g||(r=[g++]);I<a;)A[I]=I++;for(I=0;I<a;I++)A[I]=A[L=l&L+r[I%g]+(b=A[I])],A[L]=b;(w.g=function(E){for(var T,$=0,N=w.i,j=w.j,B=w.S;E--;)T=B[N=l&N+1],$=$*a+B[l&(B[N]=B[j=l&j+T])+(B[j]=T)];return w.i=N,w.j=j,$})(a)}function S(r,b){return b.i=r.i,b.j=r.j,b.S=r.S.slice(),b}function C(r,b){var g=[],w=typeof r,I;if(b&&w=="object")for(I in r)try{g.push(C(r[I],b-1))}catch{}return g.length?g:w=="string"?r:r+"\0"}function O(r,b){for(var g=r+"",w,I=0;I<g.length;)b[l&I]=l&(w^=b[l&I]*19)+g.charCodeAt(I++);return k(b)}function R(){try{var r;return f&&(r=f.randomBytes)?r=r(a):(r=new Uint8Array(a),(e.crypto||e.msCrypto).getRandomValues(r)),k(r)}catch{var b=e.navigator,g=b&&b.plugins;return[+new Date,e,g,e.screen,k(n)]}}function k(r){return String.fromCharCode.apply(0,r)}if(O(i.random(),n),t.exports){t.exports=h;try{f=Ra}catch{}}else i["seed"+c]=h})(typeof self<"u"?self:Pe,[],Math)})(Ui);var ka=Ui.exports,Pa=Ea,Na=Ia,Ba=Oa,Ma=Ta,Fa=La,Va=Aa,Ne=ka;Ne.alea=Pa;Ne.xor128=Na;Ne.xorwow=Ba;Ne.xorshift7=Ma;Ne.xor4096=Fa;Ne.tychei=Va;var ja=Ne;const Wi=xa(ja);let za=0,di;const Ha=typeof setImmediate=="function"?setImmediate:setTimeout;function V(t=Ca){return`${t}${za++}`}function Bt(t,e){const n=Wi(e);return t[Math.floor(n()*t.length)]}function dt(t){return t?t.map(e=>typeof e=="string"?{message:e,type:Ki}:e):[]}function Fn(t){const e=Ce(t);return!t||!e?[]:t.filter(n=>!!n.message&&n.type===e)}function Ce(t){return t?Mt(t,ee.ERROR)?ee.ERROR:Mt(t,ee.WARNING)?ee.WARNING:Mt(t,ee.SUCCESS)?ee.SUCCESS:null:null}function Mt(t,e){return!t||!e?!1:t.some(n=>(n==null?void 0:n.type)===e)}const qa={name:"html-fragment",functional:!0,props:["html"],render(t,e){return new X({name:"Inner",beforeCreate(){this.$createElement=t},template:`<div>${e.props.html}</div>`}).$mount()._vnode.children}},Ga=()=>new Promise(t=>{Ha(t)}),Yi=t=>t==null?void 0:t.toLowerCase().split("-").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join("");function Ka(t,e=300){clearTimeout(di),di=setTimeout(t,e)}function Zi(t){const e=t.getBoundingClientRect(),n={top:e.top<0,left:e.left<0,bottom:e.bottom>(window.innerHeight||document.documentElement.clientHeight),right:e.right>(window.innerWidth||document.documentElement.clientWidth)};return n.any=Object.values(n).some(i=>i),n.all=Object.values(n).every(i=>i),n}const ae={getUniqueString:V,getRandomElement:Bt,formatMessages:dt,filterFormattedMessages:Fn,hasFormattedMessageOfType:Mt,getValidationState:Ce,htmlFragment:qa,flushPromises:Ga,kebabCaseToPascalCase:Yi,debounce:Ka,isOutOfViewPort:Zi},Ge={BUSY:"busy",AWAY:"away",OFFLINE:"offline",ACTIVE:"active"},Xi=[Ge.BUSY,Ge.AWAY,Ge.OFFLINE,Ge.ACTIVE],Ua={name:"DtPresence",props:{presence:{type:String,default:Ge.ACTIVE,validator:t=>Xi.includes(t)},srText:{type:String,default:null}}};var Wa=function(){var e=this,n=e._self._c;return n("div",{staticClass:"d-presence",attrs:{"data-qa":"dt-presence",role:"status","aria-live":e.$attrs.ariaLive||"off"}},[e.srText?n("span",{staticClass:"sr-only",attrs:{"data-qa":"dt-presence-sr-text"}},[e._v(e._s(e.srText)+" ")]):e._e(),n("div",{staticClass:"d-presence__inner",class:{"d-presence__inner--active":e.presence==="active","d-presence__inner--away":e.presence==="away","d-presence__inner--busy":e.presence==="busy","d-presence__inner--offline":e.presence==="offline"}})])},Ya=[],Za=_.normalizeComponent(Ua,Wa,Ya,!1,null,null,null,null);const Qi=Za.exports,Xa={name:"DtIcon",props:{size:{type:String,default:"500",validator:t=>Object.keys(_.ICON_SIZE_MODIFIERS).includes(t)},name:{type:String,required:!0},ariaLabel:{type:String,default:void 0}},computed:{iconSize(){return _.ICON_SIZE_MODIFIERS[this.size]},iconName(){return Yi(this.name)},currentIcon(){return _.DIALTONE_ICONS[this.iconName]}}};var Qa=function(){var e=this,n=e._self._c;return e.currentIcon?n(e.currentIcon,{tag:"component",class:e.iconSize,attrs:{"data-qa":"dt-icon","aria-hidden":e.ariaLabel?"false":"true","aria-label":e.ariaLabel}}):e._e()},Ja=[],er=_.normalizeComponent(Xa,Qa,Ja,!1,null,null,null,null);const M=er.exports,Ft={xs:"d-avatar--xs",sm:"d-avatar--sm",md:"d-avatar--md",lg:"d-avatar--lg",xl:"d-avatar--xl"},gn={default:"",icon:"d-avatar__icon",initials:"d-avatar__initials"},tr={md:"d-avatar__presence--md",lg:"d-avatar__presence--lg"},ci={NONE:"",BUSY:"busy",AWAY:"away",OFFLINE:"offline",ACTIVE:"active"},nr=[45,-45,90,-90,135,-135,180,-180],ui={with100:["purple-100","magenta-100","gold-100","blue-100"],with200:["purple-200","magenta-200","gold-200","blue-200"]},ir=3,sr=2,pi=t=>t>1;const ar={name:"DtAvatar",components:{DtPresence:Qi,DtIcon:M},inheritAttrs:!1,props:{id:{type:String,default(){return V()}},seed:{type:String,default:void 0},size:{type:String,default:"md",validator:t=>Object.keys(Ft).includes(t)},avatarClass:{type:[String,Array,Object],default:""},canvasClass:{type:[String,Array,Object],default:""},presence:{type:String,default:ci.NONE,validator:t=>Object.values(ci).includes(t)},presenceProps:{type:Object,default:()=>({})},initials:{type:String,default:""},gradient:{type:Boolean,default:!0},group:{type:Number,default:void 0,validator:t=>pi(t)},overlayIcon:{type:String,default:""},overlayText:{type:String,default:""},overlayClass:{type:[String,Array,Object],default:""}},data(){return{kind:null,AVATAR_SIZE_MODIFIERS:Ft,AVATAR_KIND_MODIFIERS:gn,AVATAR_PRESENCE_SIZE_MODIFIERS:tr,imageLoadedSuccessfully:null,slottedInitials:"",formattedInitials:"",initializing:!1}},computed:{avatarClasses(){return["d-avatar",Ft[this.validatedSize],this.avatarClass,{"d-avatar--no-gradient":!this.gradient,"d-avatar--group":this.showGroup}]},overlayClasses(){return["d-bgc-black-900 d-o70 d-ps-absolute d-w100p d-h100p d-d-flex d-ai-center d-bar-circle d-zi-base",this.overlayClass]},showDefaultSlot(){return this.kind!=="initials"||this.kind==="image"&&this.imageLoadedSuccessfully===!0},showInitials(){return this.kind==="initials"||this.kind==="image"&&this.initials&&this.imageLoadedSuccessfully!==!0},showGroup(){return pi(this.group)},initialKindStyle(){const t=this.randomizeGradientColorStops();return{"--avatar-gradient-angle":`${this.randomizeGradientAngle()}deg`,"--avatar-gradient-stop-1":`var(--${t[0]})`,"--avatar-gradient-stop-2":`var(--${t[1]})`,"--avatar-gradient-stop-3":`var(--${t[2]})`}},formattedGroup(){return this.group>99?"99+":this.group},validatedSize(){return this.group?"xs":this.size}},mounted(){this.init()},updated(){this.init()},methods:{async init(){var e;if(this.initializing)return;this.kind=null,await this.$nextTick();const t=((e=this.$refs.canvas)==null?void 0:e.firstElementChild)||this.$refs.canvas;this.formatInitials(this.initials),t&&(this.setKind(t),this.kindHandler(t)),this.initializing=!0,await this.$nextTick(),this.initializing=!1},kindHandler(t){switch(this.kind){case"image":t.classList.add("d-avatar__image"),this.validateImageAttrsPresence(),this.setImageListeners(t);break;case"icon":t.classList.add(gn.icon);break;case"initials":this.slottedInitials=t.text||t.textContent,this.formatInitials(this.slottedInitials.trim()||this.initials);break}},setImageListeners(t){t.addEventListener("load",()=>this._loadedImageEventHandler(t),{once:!0}),t.addEventListener("error",()=>this._erroredImageEventHandler(t),{once:!0})},formatInitials(t){!t||this.validatedSize==="xs"?this.formattedInitials="":this.validatedSize==="sm"?this.formattedInitials=t.trim()[0]:this.formattedInitials=t.trim().slice(0,2)},setKind(t){if(this.isIconType(t)){this.kind="icon";return}if(this.isImageType(t)){this.kind="image";return}this.kind="initials"},isIconType(t){var e;return((e=t==null?void 0:t.tagName)==null?void 0:e.toUpperCase())==="SVG"},isImageType(t){var e;return((e=t==null?void 0:t.tagName)==null?void 0:e.toUpperCase())==="IMG"},randomizeGradientAngle(){return Bt(nr,this.seed)},randomizeGradientColorStops(){const t=new Set;let e=0;for(;t.size<ir;){const i=this.seed===void 0?void 0:this.seed+e.toString();t.size===sr?t.add(Bt(ui.with200,i)):t.add(Bt(ui.with100,i)),e++}const n=Wi(this.seed);return Array.from(t).sort(()=>.5-n())},validateImageAttrsPresence(){const t=!this.$refs.canvas.firstChild.getAttribute("src"),e=this.$refs.canvas.firstChild.getAttribute("alt")===null;(t||e)&&X.util.warn("src and alt attributes are required for image avatars",this)},_loadedImageEventHandler(t){this.imageLoadedSuccessfully=!0,t.classList.remove("d-d-none"),t.classList.add("d-avatar--image-loaded")},_erroredImageEventHandler(t){this.imageLoadedSuccessfully=!1,t.classList.remove("d-avatar--image-loaded"),t.classList.add("d-d-none")}}};var rr=function(){var e=this,n=e._self._c;return n("div",{class:e.avatarClasses,style:e.initialKindStyle,attrs:{id:e.id,"data-qa":"dt-avatar"}},[n("div",{ref:"canvas",class:[e.canvasClass,"d-avatar__canvas"]},[e.showDefaultSlot?e._t("default"):e._e(),e.showInitials?n("span",{staticClass:"d-ps-absolute d-zi-base",class:e.AVATAR_KIND_MODIFIERS.initials},[e._v(" "+e._s(e.formattedInitials)+" ")]):e._e()],2),e.overlayIcon||e.overlayText?n("div",{class:e.overlayClasses},[e.overlayIcon?n("dt-icon",{staticClass:"d-fc-white d-w100p",attrs:{name:e.overlayIcon}}):e.overlayText?n("p",{staticClass:"d-fs-200 d-fw-bold d-fc-white d-w100p d-ta-center"},[e._v(" "+e._s(e.overlayText)+" ")]):e._e()],1):e._e(),e.showGroup?n("span",{staticClass:"d-avatar__count d-zi-base",attrs:{"data-qa":"dt-avatar-count"}},[e._v(e._s(e.formattedGroup))]):e._e(),e.presence&&!e.showGroup?n("dt-presence",e._b({staticClass:"d-zi-base",class:["d-avatar__presence",e.AVATAR_PRESENCE_SIZE_MODIFIERS[e.size]],attrs:{presence:e.presence,"data-qa":"dt-presence"}},"dt-presence",e.presenceProps,!1)):e._e()],1)},or=[],lr=_.normalizeComponent(ar,rr,or,!1,null,null,null,null);const Kt=lr.exports,vn={default:"",info:"d-badge--info",success:"d-badge--success",warning:"d-badge--warning",critical:"d-badge--critical",bulletin:"d-badge--bulletin",ai:"d-badge--ai"},bn={label:"",count:"d-badge--count"},yn={"black-400":"d-badge--decorate-black-400","black-500":"d-badge--decorate-black-500","black-900":"d-badge--decorate-black-900","red-200":"d-badge--decorate-red-200","red-300":"d-badge--decorate-red-300","red-400":"d-badge--decorate-red-400","purple-200":"d-badge--decorate-purple-200","purple-300":"d-badge--decorate-purple-300","purple-400":"d-badge--decorate-purple-400","purple-500":"d-badge--decorate-purple-500","blue-200":"d-badge--decorate-blue-200","blue-300":"d-badge--decorate-blue-300","blue-400":"d-badge--decorate-blue-400","green-300":"d-badge--decorate-green-300","green-400":"d-badge--decorate-green-400","green-500":"d-badge--decorate-green-500","gold-300":"d-badge--decorate-gold-300","gold-400":"d-badge--decorate-gold-400","gold-500":"d-badge--decorate-gold-500","magenta-200":"d-badge--decorate-magenta-200","magenta-300":"d-badge--decorate-magenta-300","magenta-400":"d-badge--decorate-magenta-400"},dr={name:"DtBadge",components:{DtIcon:M},props:{iconLeft:{type:String,default:""},iconRight:{type:String,default:""},text:{type:String,default:""},kind:{type:String,default:"label",validator:t=>Object.keys(bn).includes(t)},type:{type:String,default:"default",validator:t=>Object.keys(vn).includes(t)},decoration:{type:String,default:void 0,validator:t=>Object.keys(yn).includes(t)}},data(){return{BADGE_TYPE_MODIFIERS:vn,BADGE_KIND_MODIFIERS:bn,BADGE_DECORATION_MODIFIERS:yn}},computed:{hasIcons(){return this.iconLeft!==""||this.iconRight!==""}},watch:{$props:{immediate:!0,deep:!0,handler(){this.validateProps()}}},methods:{validateProps(){this.validateTypePropCombination(),this.validateDecorationPropCombination()},validateTypePropCombination(){this.type==="ai"&&this.kind==="count"&&console.error("DtBadge error: type: 'ai' with kind: 'count' is an invalid combination.")},validateDecorationPropCombination(){this.decoration&&((this.kind!=="label"||this.type!=="default")&&console.error("DtBadge error: decoration prop can only be used with kind: 'label' and type: 'default'."),this.hasIcons&&console.error("DtBadge error: decoration prop cannot be used with iconLeft or iconRight."))}}};var cr=function(){var e=this,n=e._self._c;return n("span",{class:["d-badge",e.BADGE_TYPE_MODIFIERS[e.type],e.BADGE_KIND_MODIFIERS[e.kind],e.BADGE_DECORATION_MODIFIERS[e.decoration]],attrs:{"data-qa":"dt-badge"}},[e.decoration?n("span",{staticClass:"d-badge__decorative"}):e._e(),e.iconLeft||e.type==="ai"?n("span",{staticClass:"d-badge__icon-left"},[n("dt-icon",{attrs:{name:e.iconLeft||"dialpad-ai",size:"200"}})],1):e._e(),n("span",{staticClass:"d-badge__label"},[e._t("default",function(){return[e._v(" "+e._s(e.text)+" ")]})],2),e.iconRight?n("span",{staticClass:"d-badge__icon-right"},[n("dt-icon",{attrs:{name:e.iconRight,size:"200"}})],1):e._e()])},ur=[],pr=_.normalizeComponent(dr,cr,ur,!1,null,null,null,null);const Ji=pr.exports,Xe=["base","error","info","success","warning"],fr=["alert","alertdialog","status"],hr=new Map([["info","info"],["success","check-circle"],["warning","alert-triangle"],["error","alert-circle"],["base","bell"]]),mr={name:"DtNoticeIcon",components:{DtIcon:M},props:{kind:{type:String,default:"base",validate(t){return Xe.includes(t)}}},computed:{defaultIcon(){return hr.get(this.kind)}}};var _r=function(){var e=this,n=e._self._c;return e.defaultIcon||e.$slots.default?n("div",{staticClass:"d-notice__icon",attrs:{"aria-hidden":"true"}},[e._t("default",function(){return[n("dt-icon",{attrs:{name:e.defaultIcon,size:"400"}})]})],2):e._e()},gr=[],vr=_.normalizeComponent(mr,_r,gr,!1,null,null,null,null);const Vn=vr.exports,br={name:"DtNoticeContent",props:{title:{type:String,default:""},titleId:{type:String,default:void 0},contentId:{type:String,default:void 0}}};var yr=function(){var e=this,n=e._self._c;return n("div",{staticClass:"d-notice__content",attrs:{"data-qa":"notice-content"}},[e.title||e.$slots.titleOverride?n("p",{staticClass:"d-notice__title",attrs:{id:e.titleId,"data-qa":"notice-content-title"}},[e._t("titleOverride",function(){return[e._v(" "+e._s(e.title)+" ")]})],2):e._e(),n("p",{staticClass:"d-notice__message",attrs:{id:e.contentId,"data-qa":"notice-content-message"}},[e._t("default")],2)])},Sr=[],Cr=_.normalizeComponent(br,yr,Sr,!1,null,null,null,null);const jn=Cr.exports,cn={xs:"d-btn--xs",sm:"d-btn--sm",md:"",lg:"d-btn--lg",xl:"d-btn--xl"},fi={default:"",muted:"d-btn--muted",danger:"d-btn--danger",inverted:"d-btn--inverted"},hi={clear:"",primary:"d-btn--primary",outlined:"d-btn--outlined"},xr=["submit","reset","button"],mi={left:"d-btn__icon--left",right:"d-btn__icon--right",top:"d-btn__icon--top",bottom:"d-btn__icon--bottom"},wr=[{circle:!0,kind:"default",importance:"primary",message:kt(!0,"default","primary")},{circle:!0,kind:"danger",importance:"outlined",message:kt(!0,"danger","outlined")},{circle:!0,kind:"muted",importance:"primary",message:kt(!0,"muted","primary")},{circle:!1,kind:"muted",importance:"primary",message:kt(!1,"muted","primary")}];function kt(t,e,n){return`You cannot have a ${t?"circle ":""}button with kind: ${e} and importance: ${n} as it does not exist in our design system. See https://dialpad.design/components/button.html for a list of available button styles`}const Er="danger",Ir="warning",Or="success",es="muted",ts="inverted",ns=["",Er,Ir,Or,es,ts],Ht={default:"",warning:"d-link--warning",danger:"d-link--danger",success:"d-link--success",muted:"d-link--muted",inverted:"d-link--inverted"},Tr={name:"DtButton",props:{circle:{type:Boolean,default:!1},iconPosition:{type:String,default:"left",validator:t=>Object.keys(mi).includes(t)},importance:{type:String,default:"primary",validator:t=>Object.keys(hi).includes(t)},link:{type:Boolean,default:!1},linkKind:{type:String,default:"default",validator:t=>Object.keys(Ht).includes(t)},disabled:{type:Boolean,default:!1},type:{type:String,default:"button",validator:t=>xr.includes(t)},width:{type:String,default:null},size:{type:String,default:"md",validator:t=>Object.keys(cn).includes(t)},labelClass:{type:[String,Array,Object],default:""},loading:{type:Boolean,default:!1},kind:{type:String,default:"default",validator:t=>Object.keys(fi).includes(t)},assertiveOnFocus:{type:Boolean,default:!1},active:{type:Boolean,default:!1}},emits:["click","focusin","focusout"],data(){return{ICON_POSITION_MODIFIERS:mi,isInFocus:!1}},computed:{buttonListeners(){return this.assertiveOnFocus?{...this.$listeners,focusin:t=>{this.isInFocus=!0},focusout:t=>{this.isInFocus=!1}}:this.$listeners},computedAriaLive(){return this.assertiveOnFocus&&this.isInFocus?"assertive":this.$attrs.ariaLive}},watch:{$props:{deep:!0,immediate:!0,handler(){process.env.NODE_ENV!=="production"&&(this.circle&&this.link&&X.util.warn("You cannot enable circle and link at the same time",this),this.isInvalidPropCombination(this.circle,this.kind,this.importance))}}},methods:{buttonClasses(){return this.link?["d-link",Ht[this.linkKind],cn[this.size]]:["d-btn",hi[this.importance],fi[this.kind],cn[this.size],{"d-btn--circle":this.circle,"d-btn--loading":this.loading,"d-btn--icon-only":this.isIconOnly(),"d-btn--vertical":this.isVerticalIconLayout(),"d-btn--active":this.active}]},isInvalidPropCombination(t,e,n){for(const i of wr)if(t===i.circle&&e===i.kind&&n===i.importance)return console.error(i.message),!1;return!0},shouldRenderIcon(){return this.$slots.icon&&!this.link},isIconOnly(){return this.shouldRenderIcon()&&!this.$slots.default},isVerticalIconLayout(){return this.shouldRenderIcon()&&!this.isIconOnly()&&["top","bottom"].includes(this.iconPosition)}}};var Lr=function(){var e=this,n=e._self._c;return n("button",e._g({class:["base-button__button",e.buttonClasses()],style:{width:e.width},attrs:{"data-qa":"dt-button",type:e.type,disabled:e.disabled,"aria-live":e.computedAriaLive,"aria-label":e.loading?"loading":e.$attrs["aria-label"]}},e.buttonListeners),[e.shouldRenderIcon()?n("span",{class:["base-button__icon","d-btn__icon",e.ICON_POSITION_MODIFIERS[e.iconPosition]],attrs:{"data-qa":"dt-button-icon"}},[e._t("icon")],2):e._e(),e.$slots.default?n("span",{class:["d-btn__label","base-button__label",e.labelClass],attrs:{"data-qa":"dt-button-label"}},[e._t("default")],2):e._e()])},Ar=[],$r=_.normalizeComponent(Tr,Lr,Ar,!1,null,null,null,null);const q=$r.exports,ge={props:{visuallyHiddenClose:{type:Boolean,default:!1},visuallyHiddenCloseLabel:{type:String,default:null}},watch:{$props:{immediate:!0,deep:!0,handler(){this.validateVisuallyHiddenCloseProps()}}},computed:{showVisuallyHiddenClose(){return this.visuallyHiddenClose&&this.visuallyHiddenCloseLabel!=null}},methods:{validateVisuallyHiddenCloseProps(){this.visuallyHiddenClose&&!this.visuallyHiddenCloseLabel&&console.error(`If visuallyHiddenClose prop is true, the component includes
|
|
2
2
|
a visually hidden close button and you must set the visuallyHiddenCloseLabel prop.`)}}},Dr={name:"SrOnlyCloseButton",components:{DtIcon:M,DtButton:q},props:{visuallyHiddenCloseLabel:{type:String,default:null}},methods:{close(){this.$emit("close")}}};var Rr=function(){var e=this,n=e._self._c;return n("dt-button",{staticClass:"d-vi-visible-sr",attrs:{id:"sr-only-close-button","data-qa":"dt-sr-only-close-button","aria-label":e.visuallyHiddenCloseLabel},on:{click:e.close,keydown:function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"space",32,i.key,[" ","Spacebar"])?null:(i.preventDefault(),i.stopPropagation(),e.close.apply(null,arguments))}}},[n("dt-icon",{attrs:{name:"close"}})],1)},kr=[],Pr=_.normalizeComponent(Dr,Rr,kr,!1,null,null,null,null);const Ut=Pr.exports,Nr={name:"DtNoticeAction",components:{DtIcon:M,DtButton:q,SrOnlyCloseButton:Ut},mixins:[ge],props:{closeButtonProps:{type:Object,default:()=>({})},hideClose:{type:Boolean,default:!1}},emits:["close"],computed:{noticeActionListeners(){return{...this.$listeners,click:t=>{this.close(),this.$emit("click",t)}}}},created(){!this.hideClose&&!this.closeButtonProps.ariaLabel&&console.error("Invalid props: you must pass in closeButtonProps.ariaLabel if the close button is displayed.")},mounted(){this.hideClose||(this.lastFocusedElement=document.activeElement)},beforeDestroy(){var t;(t=this.lastFocusedElement)==null||t.focus()},methods:{close(){this.$emit("close")}}};var Br=function(){var e=this,n=e._self._c;return n("div",{staticClass:"d-notice__actions",attrs:{"data-qa":"notice-content-actions"}},[e._t("default"),e.hideClose?e._e():n("dt-button",e._g(e._b({ref:"closeButton",attrs:{"data-qa":"dt-notice-action-close-button",size:"sm",importance:"clear",circle:"","aria-label":e.closeButtonProps.ariaLabel?e.closeButtonProps.ariaLabel:"Close"},scopedSlots:e._u([{key:"icon",fn:function(){return[n("dt-icon",{attrs:{name:"close",size:"200"}})]},proxy:!0}],null,!1,1154370889)},"dt-button",e.closeButtonProps,!1),e.noticeActionListeners)),e.showVisuallyHiddenClose?n("sr-only-close-button",{attrs:{"visually-hidden-close-label":e.visuallyHiddenCloseLabel},on:{close:e.close}}):e._e()],2)},Mr=[],Fr=_.normalizeComponent(Nr,Br,Mr,!1,null,null,null,null);const zn=Fr.exports,is=':not(:disabled):not([aria-disabled="true"]):not([role="presentation"])',Vr=`${is}:not([tabindex="-1"])`,jr="button,[href],input,select,textarea,details,[tabindex]",_t={methods:{async getFirstFocusableElement(t){await this.$nextTick();const e=this._getFocusableElements(t,!0);return this._getFirstFocusElement(e)},async focusFirstElement(t){const e=await this.getFirstFocusableElement(t);e==null||e.focus({preventScroll:!0})},_getFirstFocusElement(t){if(!t.length)return;let e=t[0];return e.matches('[type="radio"]:not(:checked)')&&(e=t.find(n=>n.checked&&n.name===e.name)||e),e},_getFocusableElements(t=this.$el,e=!1){return t?[...t.querySelectorAll(jr)].filter(i=>{const a=window.getComputedStyle(i);return a.getPropertyValue("display")!=="none"&&a.getPropertyValue("visibility")!=="hidden"&&i.matches(e?is:Vr)}):[]},focusTrappedTabPress(t,e){if(!(t.key==="Tab"))return;const i=this._getFocusableElements(e);if(!i.length){t.preventDefault();return}const a=this._getFirstFocusElement(i),o=i[i.length-1];t.shiftKey?document.activeElement===a&&(o.focus(),t.preventDefault()):document.activeElement===o&&(a.focus(),t.preventDefault())}}},zr={name:"DtBanner",components:{DtNoticeIcon:Vn,DtNoticeContent:jn,DtNoticeAction:zn},mixins:[_t,ge],props:{titleId:{type:String,default(){return ae.getUniqueString()}},contentId:{type:String,default(){return ae.getUniqueString()}},title:{type:String,default:""},important:{type:Boolean,default:!1},pinned:{type:Boolean,default:!1},kind:{type:String,default:"base",validate(t){return Xe.includes(t)}},closeButtonProps:{type:Object,default:()=>({})},hideClose:{type:Boolean,default:!1},hideIcon:{type:Boolean,default:!1},dialogClass:{type:String,default:""},backgroundImage:{type:String,default:""},backgroundSize:{type:String,default:"cover"}},emits:["close"],computed:{role(){return this.important?"alertdialog":"status"},bannerClass(){return["d-banner",{error:"d-banner--error",info:"d-banner--info",success:"d-banner--success",warning:"d-banner--warning",base:"d-banner--base"}[this.kind],{"d-banner--important":this.important,"d-banner--pinned":this.pinned}]},bannerBackgroundImage(){return this.backgroundImage===""?null:`background-image: url(${this.backgroundImage});
|
|
3
3
|
background-size: ${this.backgroundSize};`}},mounted(){this.important&&this.focusFirstElement()},methods:{trapFocus(t){this.important&&this.focusTrappedTabPress(t)}}};var Hr=function(){var e=this,n=e._self._c;return n("aside",{class:e.bannerClass,style:e.bannerBackgroundImage,on:{keydown:function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"tab",9,i.key,"Tab")?null:e.trapFocus.apply(null,arguments)}}},[n("div",{staticClass:"d-banner__dialog",class:e.dialogClass,attrs:{role:e.role,"aria-labelledby":e.titleId,"aria-describedby":e.contentId}},[e.hideIcon?e._e():n("dt-notice-icon",e._g({attrs:{kind:e.kind}},e.$listeners),[e._t("icon")],2),n("dt-notice-content",e._g({attrs:{"title-id":e.titleId,"content-id":e.contentId,title:e.title},scopedSlots:e._u([{key:"titleOverride",fn:function(){return[e._t("titleOverride")]},proxy:!0}],null,!0)},e.$listeners),[e._t("default")],2),n("dt-notice-action",e._g({attrs:{"hide-close":e.hideClose,"close-button-props":e.closeButtonProps,"visually-hidden-close":e.visuallyHiddenClose,"visually-hidden-close-label":e.visuallyHiddenCloseLabel}},e.$listeners),[e._t("action")],2)],1)])},qr=[],Gr=_.normalizeComponent(zr,Hr,qr,!1,null,null,null,null);const Kr=Gr.exports,ss="d-breadcrumbs__item--selected",as="d-breadcrumbs--inverted",Ur={name:"DtLink",props:{kind:{type:String,default:"",validator(t){return ns.includes(t)}}},emits:["click","focusin","focusout"],data(){return{LINK_KIND_MODIFIERS:Ht}}};var Wr=function(){var e=this,n=e._self._c;return n("a",e._g({class:["d-link",e.LINK_KIND_MODIFIERS[e.kind]],attrs:{"data-qa":"dt-link"}},e.$listeners),[e._t("default")],2)},Yr=[],Zr=_.normalizeComponent(Ur,Wr,Yr,!1,null,null,null,null);const rs=Zr.exports,Xr={name:"DtBreadcrumbItem",components:{DtLink:rs},inheritAttrs:!1,props:{inverted:{type:Boolean,default:!1},selected:{type:Boolean,default:!1},label:{type:String,default:""}},data(){return{BREADCRUMB_ITEM_SELECTED_MODIFIER:ss}},computed:{linkKind(){return this.inverted?ts:es},ariaCurrent(){return this.selected?"location":void 0}}};var Qr=function(){var e=this,n=e._self._c;return n("li",{class:["d-breadcrumbs__item",{[e.BREADCRUMB_ITEM_SELECTED_MODIFIER]:e.selected}],attrs:{"data-qa":"dt-breadcrumb-item"}},[n("dt-link",e._b({attrs:{kind:e.linkKind,"aria-current":e.ariaCurrent,"data-qa":"breadcrumb-item"}},"dt-link",e.$attrs,!1),[e._t("default",function(){return[e._v(" "+e._s(e.label)+" ")]})],2)],1)},Jr=[],eo=_.normalizeComponent(Xr,Qr,Jr,!1,null,null,null,null);const os=eo.exports,to={name:"DtBreadcrumbs",components:{DtBreadcrumbItem:os},props:{breadcrumbs:{type:Array,default:()=>[],validate(t){return t.every(({href:e,label:n})=>e!==void 0&&n!==void 0)}},inverted:{type:Boolean,default:!1},ariaLabel:{type:String,default:"breadcrumb"}},data(){return{BREADCRUMBS_INVERTED_MODIFIER:as}},methods:{getBreadcrumbItemKey(t){return`breadcrumbs-item-${t}-${ae.getUniqueString()}`}}};var no=function(){var e=this,n=e._self._c;return n("nav",{class:["d-breadcrumbs",{[e.BREADCRUMBS_INVERTED_MODIFIER]:e.inverted}],attrs:{"aria-label":e.ariaLabel,"data-qa":"dt-breadcrumbs"}},[n("ol",[e._t("default",function(){return e._l(e.breadcrumbs,function(i,a){return n("dt-breadcrumb-item",e._g(e._b({key:e.getBreadcrumbItemKey(a),attrs:{inverted:e.inverted}},"dt-breadcrumb-item",i,!1),e.$listeners))})})],2)])},io=[],so=_.normalizeComponent(to,no,io,!1,null,null,null,null);const ao=so.exports,Sn={start:"d-btn-group--start",end:"d-btn-group--end","space-between":"d-btn-group--space-between"},ro={name:"DtButtonGroup",props:{alignment:{type:String,default:"start",validator:t=>Object.keys(Sn).includes(t)}},data(){return{BUTTON_GROUP_ALIGNMENT:Sn}}};var oo=function(){var e=this,n=e._self._c;return n("div",{class:["d-btn-group",e.BUTTON_GROUP_ALIGNMENT[e.alignment]],attrs:{role:"group"}},[e._t("default")],2)},lo=[],co=_.normalizeComponent(ro,oo,lo,!1,null,null,null,null);const uo=co.exports,po={name:"DtCard",props:{maxHeight:{type:String,default:null},containerClass:{type:[String,Array,Object],default:""},contentClass:{type:[String,Array,Object],default:""},headerClass:{type:[String,Array,Object],default:""},footerClass:{type:[String,Array,Object],default:""}}};var fo=function(){var e=this,n=e._self._c;return n("div",{class:["d-card",e.containerClass],attrs:{"data-qa":"dt-card"}},[e.$slots.header?n("div",{class:["d-card__header",e.headerClass]},[e._t("header")],2):e._e(),n("div",{class:["d-card__content",e.contentClass],style:{"max-height":e.maxHeight}},[e._t("content")],2),e.$slots.footer?n("div",{class:["d-card__footer",e.footerClass]},[e._t("footer")],2):e._e()])},ho=[],mo=_.normalizeComponent(po,fo,ho,!1,null,null,null,null);const ls=mo.exports,_o={name:"DtCodeblock",props:{text:{type:String,required:!0}}};var go=function(){var e=this,n=e._self._c;return n("pre",[e._v(" "),n("code",{staticClass:"d-d-block d-bgc-secondary d-ws-pre-wrap d-p8 d-ba d-bc-subtle d-bar8 d-fs-200 d-ff-mono d-lh-400 d-fc-secondary"},[e._v(e._s(e.text))]),e._v(`
|
|
4
4
|
`)])},vo=[],bo=_.normalizeComponent(_o,go,vo,!1,null,null,null,null);const yo=bo.exports,So={methods:{scrollElementIntoViewIfNeeded(t,e,n,i){t.scrollIntoViewIfNeeded?this.scrollIntoViewIfNeeded(t,e,n,i):this.scrollIntoView(t,"bottom",!1,n,i)},scrollElementIntoView(t,e,n,i){if(e==="center"){this.scrollIntoView(t,"center",!1,n,i);return}e===!1?this.scrollIntoView(t,"bottom",!1,n,i):this.scrollIntoView(t,"top",!1,n,i)},scrollIntoViewIfNeeded(t,e,n,i){const a=e?"center":void 0;this.scrollIntoView(t,a,!0,n,i)},scrollIntoView(t,e,n,i,a){if(!t||!t.parentElement)return;const o=t.offsetTop,p=a||t.parentElement,c=this._getScrollBounds(p),s=c.bottom-c.top,u=this._getElementHeight(t),d=o+u;let l=-1;switch(e){case"top":l=o;break;case"center":l=o+(u-s)/2;break;case"bottom":l=l=d-s;break;default:o-c.top<=s/2?l=o:l=d-s;break}this._setScrollTop(p,l,c,o,d,n,i)},_setScrollTop(t,e,n,i,a,o,p){n=n||this._getScrollBounds(t);const c=n.bottom-n.top;if(o&&this._inScrollBounds(i,a,n))if(i<n.top)e=i;else if(a>n.bottom)e=a-c;else return;p?t.scrollTo({top:e,behavior:p}):t.scrollTop=e},_getElementHeight(t){return t.getBoundingClientRect().height},_getScrollBounds(t){const e=this._getElementHeight(t),n=t.scrollTop;return{top:n,bottom:n+e}},_inScrollBounds(t,e,n){const i=e-t;return e<=n.bottom+3*i/4&&t>=n.top-i/4}}},Co="listElementKey is required or the referenced element doesn't exist. Received listElement: ",Hn=({listItemRole:t="option",indexKey:e="highlightIndex",idKey:n="highlightId",listElementKey:i="listRef",activeItemKey:a="",openMethod:o=null,afterHighlightMethod:p=null,beginningOfListMethod:c=null,endOfListMethod:s=null,scrollToOnHighlight:u=!0,focusOnKeyboardNavigation:d=!1}={})=>({mixins:[So],data(){return{[e]:-1,[n]:"",scrollToOnHighlight:u,focusOnKeyboardNavigation:d}},provide(){return{highlightId:()=>this[n]}},methods:{_getListElement(){var l;return((l=this[i]())==null?void 0:l.$el)||this[i]()},_itemsLength(){const l=this._getListItemNodes();return l===null?0:l.length},_getListItemNodes(){const l=this._getListElement();return l?Array.from(l.querySelectorAll(`[role="${t}"], #sr-only-close-button`)):(console.error(Co,l),null)},onUpKey(){o&&this[o](!0),this[e]>0?this.setHighlightIndex(this[e]-1):c&&this[c](),this.scrollActiveItemIntoViewIfNeeded(),this.focusActiveItemIfNeeded()},onDownKey(){o&&this[o](!0),this[e]<this._itemsLength()-1?this.setHighlightIndex(this[e]+1):s&&this[s](),this.scrollActiveItemIntoViewIfNeeded(),this.focusActiveItemIfNeeded()},onHomeKey(){this.jumpToBeginning(),this.scrollActiveItemIntoViewIfNeeded(),this.focusActiveItemIfNeeded()},onEndKey(){this.jumpToEnd(),this.scrollActiveItemIntoViewIfNeeded(),this.focusActiveItemIfNeeded()},onNavigationKey(l){const f=this._getListItemNodes(),h=f.filter(C=>C.textContent.trim().toLowerCase().startsWith(l.toLowerCase()));if(h.length<=0)return;const v=h.findIndex(C=>this[e]===f.indexOf(C)),S=f.indexOf(v<h.length-1?h[v+1]:h[0]);this.setHighlightIndex(S),this.scrollActiveItemIntoViewIfNeeded(),this.focusActiveItemIfNeeded()},isValidCharacter(l){return l.length===1},jumpToBeginning(){this.setHighlightIndex(0)},jumpToEnd(){this.setHighlightIndex(this._itemsLength()-1)},setHighlightIndex(l){this[e]=l,this[n]=this._getItemId(l),this._itemsLength()&&p&&this[p](l)},setHighlightId(l){this[n]=l,this[e]=this._getItemIndex(l),this._itemsLength()&&p&&this[p](this._getItemIndex(l))},_getItemIndex(l){const f=this._getListElement();return f?Array.from(f.querySelectorAll(`[role="${t}"], #sr-only-close-button`)).indexOf(f.querySelector(`#${l}`)):void 0},_getItemId(l){var h;const f=this._getListElement();if(f)return(h=f.querySelectorAll(`[role="${t}"], #sr-only-close-button`)[l])==null?void 0:h.id},scrollActiveItemIntoViewIfNeeded(){if(!this.scrollToOnHighlight)return;const l=this[a];if(l){const f=this._getListElement();this.scrollElementIntoViewIfNeeded(l,null,null,f)}},focusActiveItemIfNeeded(){if(!this.focusOnKeyboardNavigation)return;const l=this[a];l&&l.focus()}}}),un={DEFAULT:"default",CUSTOM:"custom"},$e={ARROW_KEYS:"arrow-keys",TAB:"tab",NONE:"none"};const xo={name:"DtDefaultListItem"};var wo=function(){var e=this,n=e._self._c;return n("div",{staticClass:"dt-default-list-item d-fs-200 d-lh-300 d-py4 d-px8 d-d-flex d-ai-center"},[e.$slots.left?n("section",{staticClass:"dt-default-list-item--left d-d-inline-flex d-as-flex-start d-d-flex d-ai-center d-pr8 d-jc-flex-end",attrs:{"data-qa":"dt-default-list-item-left-wrapper"}},[e._t("left")],2):e._e(),n("section",{staticClass:"d-fl-grow1"},[e.$slots.default?n("div",[e._t("default")],2):e._e(),e.$slots.subtitle?n("div",{class:["d-fs-100 d-fc-tertiary",{"d-mtn2":e.$slots.default}],attrs:{"data-qa":"dt-default-list-item-subtitle-wrapper"}},[e._t("subtitle")],2):e._e(),e.$slots.bottom?n("div",{staticClass:"d-mt2",attrs:{"data-qa":"dt-default-list-item-bottom-wrapper"}},[e._t("bottom")],2):e._e()]),e.$slots.right?n("section",{staticClass:"dt-default-list-item--right d-d-inline-flex d-as-flex-start d-d-flex d-ai-center d-pl8",attrs:{"data-qa":"dt-default-list-item-right-wrapper"}},[e._t("right")],2):e._e(),e._t("selected")],2)},Eo=[],Io=_.normalizeComponent(xo,wo,Eo,!1,null,null,null,null);const _i=Io.exports;const Oo={name:"DtListItem",components:{DtDefaultListItem:_i,DtIcon:M},inject:{highlightId:{default:null}},props:{id:{type:String,default(){return ae.getUniqueString()}},role:{type:String,default:"listitem"},elementType:{type:String,default:"li"},type:{type:String,default:un.DEFAULT,validator:t=>Object.values(un).includes(t)},navigationType:{type:String,default:$e.NONE,validator:t=>Object.values($e).includes(t)},selected:{type:Boolean,default:!1}},emits:["click","keydown","mousemove","mouseleave"],data(){return{injected:!1,mouseHighlighted:!1}},computed:{listItemType(){switch(this.type){case un.DEFAULT:return _i;default:return null}},listItemListeners(){return{...this.$listeners,keydown:t=>{["enter","space"].includes(t.code.toLowerCase())&&this.onClick(t),this.$emit("keydown",t)},mousemove:t=>{this.onMouseHover(t),this.$emit("mousemove",t)},mouseleave:t=>{this.onMouseLeave(t),this.$emit("mouseleave",t)}}},isHighlighted(){return this.isHoverable?this.highlightId&&this.highlightId()?this.id===this.highlightId():this.mouseHighlighted:!1},isFocusable(){return this.navigationType===$e.TAB},isHoverable(){return this.navigationType!==$e.NONE}},methods:{onClick(t){this.$emit("click",t)},onMouseHover(){this.mouseHighlighted=!0},onMouseLeave(){this.mouseHighlighted=!1}}};var To=function(){var e=this,n=e._self._c;return n(e.elementType,e._g({tag:"component",class:["dt-list-item d-ls-none",{"dt-list-item--focusable":e.isFocusable,"dt-list-item--highlighted":e.isHighlighted,"dt-list-item--static":!e.isHoverable}],attrs:{id:e.id,tabindex:e.isFocusable?0:-1,role:e.role,"aria-selected":e.isHighlighted}},e.listItemListeners),[e.listItemType?n(e.listItemType,{tag:"component",scopedSlots:e._u([e._l(e.$slots,function(i,a){return{key:a,fn:function(){return[e._t(a)]},proxy:!0}}),e.selected?{key:"selected",fn:function(){return[n("dt-icon",{staticClass:"d-ml8",attrs:{name:"check",size:"400"}})]},proxy:!0}:null],null,!0)}):e._t("default")],2)},Lo=[],Ao=_.normalizeComponent(Oo,To,Lo,!1,null,null,null,null);const gt=Ao.exports,$o={name:"ComboboxLoadingList",components:{DtListItem:gt,DtSkeleton:_.DtSkeleton}};var Do=function(){var e=this,n=e._self._c;return n("ol",{staticClass:"d-p0 d-mt8 d-hmx332 d-of-y-auto",attrs:{"aria-busy":"true"}},e._l(7,function(i){return n("dt-list-item",{key:i,attrs:{role:"option","navigation-type":"none"}},[n("dt-skeleton",{attrs:{"text-option":{type:"body"},offset:0}})],1)}),1)},Ro=[],ko=_.normalizeComponent($o,Do,Ro,!1,null,null,null,null);const ds=ko.exports;const Po={name:"ComboboxEmptyList",components:{DtListItem:gt},props:{message:{type:String,required:!0},itemClass:{type:[String,Object,Array],default:""}}};var No=function(){var e=this,n=e._self._c;return n("ol",{staticClass:"d-p0",attrs:{"data-qa":"dt-combobox-empty-list"}},[e._t("default",function(){return[n("dt-list-item",{class:["dt-empty-list-item",e.itemClass],attrs:{role:"option","navigation-type":"none",type:"custom"}},[n("span",[e._v(e._s(e.message))])])]})],2)},Bo=[],Mo=_.normalizeComponent(Po,No,Bo,!1,null,null,null,null);const cs=Mo.exports,us={EXTRA_SMALL:"xs",SMALL:"sm",DEFAULT:"md",LARGE:"lg",EXTRA_LARGE:"xl"},Fo={name:"DtCombobox",components:{ComboboxLoadingList:ds,ComboboxEmptyList:cs},mixins:[Hn({indexKey:"highlightIndex",idKey:"highlightId",listElementKey:"getListElement",afterHighlightMethod:"afterHighlight",beginningOfListMethod:"beginningOfListMethod",endOfListMethod:"endOfListMethod",activeItemKey:"activeItemEl"})],props:{label:{type:String,required:!0},labelVisible:{type:Boolean,default:!0},size:{type:String,default:null,validator:t=>Object.values(us).includes(t)},description:{type:String,default:""},listId:{type:String,default(){return V()}},onBeginningOfList:{type:Function,default:null},onEndOfList:{type:Function,default:null},showList:{type:Boolean,default:!1},listRenderedOutside:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},emptyList:{type:Boolean,default:!1},emptyStateMessage:{type:String,default:""},emptyStateClass:{type:[String,Object,Array],default:""},clickOnSelect:{type:Boolean,default:!1}},emits:["select","escape","highlight","opened"],data(){return{outsideRenderedListRef:null}},computed:{inputProps(){return{label:this.label,labelVisible:this.labelVisible,size:this.size,description:this.description,role:"combobox","aria-label":this.label,"aria-expanded":this.showList.toString(),"aria-owns":this.listId,"aria-haspopup":"listbox","aria-activedescendant":this.activeItemId,"aria-controls":this.listId}},listProps(){return{role:"listbox",id:this.listId,class:"d-ps-relative","aria-label":this.label}},beginningOfListMethod(){return this.onBeginningOfList||this.jumpToEnd},endOfListMethod(){return this.onEndOfList||this.jumpToBeginning},activeItemId(){if(!(!this.showList||this.highlightIndex<0||this.loading))return this.highlightId},activeItemEl(){return this.highlightId?this.getListElement().querySelector("#"+this.highlightId):""}},watch:{showList(t){this.listRenderedOutside||(this.setInitialHighlightIndex(),this.$emit("opened",t)),!t&&this.outsideRenderedListRef&&(this.outsideRenderedListRef.removeEventListener("mousemove",this.onMouseHighlight),this.outsideRenderedListRef=null)},loading(t){this.$nextTick(()=>{this.setInitialHighlightIndex()})},$props:{deep:!0,immediate:!0,handler(){this.validateEmptyListProps()}}},created(){this.validateEmptyListProps()},methods:{onMouseHighlight(t){if(this.loading)return;const e=t.target.closest("li");e&&this.highlightId!==e.id&&this.setHighlightId(e.id)},getListElement(){var t;return this.outsideRenderedListRef??((t=this.$refs.listWrapper)==null?void 0:t.querySelector(`#${this.listId}`))},clearHighlightIndex(){this.showList&&this.setHighlightIndex(-1)},afterHighlight(){this.loading||this.$emit("highlight",this.highlightIndex)},onEnterKey(){var t;this.loading||this.emptyList||this.highlightIndex>=0&&(this.$emit("select",this.highlightIndex),this.clickOnSelect&&((t=this.activeItemEl)==null||t.click()))},onEscapeKey(){this.$emit("escape")},onOpen(t,e){var n;this.outsideRenderedListRef=e,(n=this.outsideRenderedListRef)==null||n.addEventListener("mousemove",this.onMouseHighlight),this.$emit("opened",t),t&&this.setInitialHighlightIndex()},onKeyValidation(t,e){!this.showList||!this.getListElement()||this[e](t)},setInitialHighlightIndex(){this.showList&&this.$nextTick(()=>{this.setHighlightIndex(this.loading?-1:0)})},validateEmptyListProps(){this.$slots.emptyListItem||(this.emptyList&&!this.emptyStateMessage||!this.emptyList&&this.emptyStateMessage)&&console.error(`Invalid props: you must pass both props emptyList and emptyStateMessage to show the
|
|
@@ -26,6 +26,6 @@
|
|
|
26
26
|
`,"Instead, pass the .innerHTML of the element, or use a function that","returns a cloned version of the element instead.",`
|
|
27
27
|
|
|
28
28
|
`,`1) content: element.innerHTML
|
|
29
|
-
`,"2) content: () => element.cloneNode(true)"].join(" "))}var c=a.reduce(function(s,u){var d=u&&Md(u,i);return d&&s.push(d),s},[]);return pt(t)?c[0]:c}yt.defaultProps=Y;yt.setDefaultProps=kd;yt.currentInput=ce;Object.assign({},ms,{effect:function(e){var n=e.state,i={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(n.elements.popper.style,i.popper),n.styles=i,n.elements.arrow&&Object.assign(n.elements.arrow.style,i.arrow)}});var Fd={name:"sticky",defaultValue:!1,fn:function(e){var n=e.reference,i=e.popper;function a(){return e.popperInstance?e.popperInstance.state.elements.reference:n}function o(u){return e.props.sticky===!0||e.props.sticky===u}var p=null,c=null;function s(){var u=o("reference")?a().getBoundingClientRect():null,d=o("popper")?i.getBoundingClientRect():null;(u&&Mi(p,u)||d&&Mi(c,d))&&e.popperInstance&&e.popperInstance.update(),p=u,c=d,e.state.isMounted&&requestAnimationFrame(s)}return{onMount:function(){e.props.sticky&&s()}}}};function Mi(t,e){return t&&e?t.top!==e.top||t.right!==e.right||t.bottom!==e.bottom||t.left!==e.left:!0}yt.setDefaultProps({render:Rs});const Vd=t=>({name:"arrowDetected",enabled:!0,phase:"main",fn:t,requiresIfExists:["offset"]}),jd=["bottom","bottom-start","bottom-end","right","right-start","right-end","left","left-start","left-end","top","top-start","top-end"],ks=[!0,!1,"reference","popper"],Ps=(t,e)=>{const{contentElement:n}={...e};return delete e.contentElement,yt(t,{...e,plugins:[Fd],render:()=>Hd(n)})},Ns=({boundary:t="clippingParents",fallbackPlacements:e=[],onChangePlacement:n=()=>{},hasHideModifierEnabled:i=!1,tether:a=!0}={})=>({modifiers:[{name:"flip",options:{fallbackPlacements:e,boundary:t}},{name:"hide",enabled:i},{name:"preventOverflow",options:{altAxis:!a,tether:a}},Vd(({state:o})=>{n(o.placement)})]}),zd=t=>{const e=document.createElement("span");return e.innerText=t.innerText||"",t.innerText="",t.appendChild(e),e},Fi=t=>{const e=t==null?void 0:t.children[0];return e||zd(t)},Hd=t=>{const e=document.createElement("div");return e.className="tippy-box d-ps-absolute",e.appendChild(t),{popper:e}},Tn={none:void 0,small:"d-p4",medium:"d-p8",large:"d-p16"},Bs={none:void 0,small:"d-pl4",medium:"d-pl8",large:"d-pl16"},Ms=["dialog","menu","listbox","tree","grid"],Xn=["","anchor"],Fs=["none","dialog","first"],Zt=["parent","body"],qd=[...ks];let Gd="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Kd=(t=21)=>{let e="",n=t;for(;n--;)e+=Gd[Math.random()*64|0];return e};function jt(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?jt=function(e){return typeof e}:jt=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},jt(t)}var Vs={selector:"vue-portal-target-".concat(Kd())},Ud=function(e){return Vs.selector=e},_n=typeof window<"u"&&(typeof document>"u"?"undefined":jt(document))!==void 0,Wd=X.extend({abstract:!0,name:"PortalOutlet",props:["nodes","tag"],data:function(e){return{updatedNodes:e.nodes}},render:function(e){var n=this.updatedNodes&&this.updatedNodes();return n?n.length===1&&!n[0].text?n:e(this.tag||"DIV",n):e()},destroyed:function(){var e=this.$el;e&&e.parentNode.removeChild(e)}}),Qn=X.extend({name:"VueSimplePortal",props:{disabled:{type:Boolean},prepend:{type:Boolean},selector:{type:String,default:function(){return"#".concat(Vs.selector)}},tag:{type:String,default:"DIV"}},render:function(e){if(this.disabled){var n=this.$scopedSlots&&this.$scopedSlots.default();return n?n.length<2&&!n[0].text?n:e(this.tag,n):e()}return e()},created:function(){this.getTargetEl()||this.insertTargetEl()},updated:function(){var e=this;this.$nextTick(function(){!e.disabled&&e.slotFn!==e.$scopedSlots.default&&(e.container.updatedNodes=e.$scopedSlots.default),e.slotFn=e.$scopedSlots.default})},beforeDestroy:function(){this.unmount()},watch:{disabled:{immediate:!0,handler:function(e){e?this.unmount():this.$nextTick(this.mount)}}},methods:{getTargetEl:function(){if(_n)return document.querySelector(this.selector)},insertTargetEl:function(){if(_n){var e=document.querySelector("body"),n=document.createElement(this.tag);n.id=this.selector.substring(1),e.appendChild(n)}},mount:function(){if(_n){var e=this.getTargetEl(),n=document.createElement("DIV");this.prepend&&e.firstChild?e.insertBefore(n,e.firstChild):e.appendChild(n),this.container=new Wd({el:n,parent:this,propsData:{tag:this.tag,nodes:this.$scopedSlots.default}})}},unmount:function(){this.container&&(this.container.$destroy(),delete this.container)}}});function Yd(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};t.component(e.name||"portal",Qn),e.defaultSelector&&Ud(e.defaultSelector)}typeof window<"u"&&window.Vue&&window.Vue===X&&X.use(Yd);const Zd={name:"PopoverHeaderFooter",components:{DtButton:q,DtIcon:M},props:{type:{type:String,validator:function(t){return["header","footer"].includes(t)}},contentClass:{type:[String,Array,Object],default:""},showCloseButton:{type:Boolean,default:!1},closeButtonProps:{type:Object,default:()=>{}}},emits:["close"],methods:{focusCloseButton(){var e;const t=(e=this.$refs["popover__close-button"])==null?void 0:e.$el;t==null||t.focus()}}};var Xd=function(){var e=this,n=e._self._c;return n("div",{class:{"d-popover__header":e.type==="header","d-popover__footer":e.type==="footer"},attrs:{"data-qa":"dt-popover-header-footer"}},[e.$slots.content?n("div",{class:["d-to-ellipsis","d-w100p",e.contentClass],attrs:{"data-qa":"dt-popover-header-footer-content"}},[e._t("content")],2):e._e(),e.showCloseButton?n("dt-button",e._b({ref:"popover__close-button",staticClass:"d-p6 d-mr6 d-bc-transparent",attrs:{"data-qa":"dt-popover-close",importance:"outlined",kind:"muted",circle:""},on:{click:function(i){return e.$emit("close")}},scopedSlots:e._u([{key:"icon",fn:function(){return[n("dt-icon",{attrs:{name:"close",size:"300"}})]},proxy:!0}],null,!1,2538694920)},"dt-button",e.closeButtonProps,!1)):e._e()],1)},Qd=[],Jd=_.normalizeComponent(Zd,Xd,Qd,!1,null,null,null,null);const ec=Jd.exports;const tc={name:"DtPopover",components:{SrOnlyCloseButton:Ut,DtLazyShow:Qe,PopoverHeaderFooter:ec,Portal:Qn},mixins:[_t,ge],props:{open:{type:Boolean,default:null},openOnContext:{type:Boolean,default:!1},elementType:{type:String,default:"div"},transition:{type:String,default:"fade"},role:{type:String,default:"dialog",validator:t=>Ms.includes(t)},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null},closeButtonProps:{type:Object,default:()=>({})},padding:{type:String,default:"large",validator:t=>Object.keys(Tn).some(e=>e===t)},contentClass:{type:[String,Array,Object],default:""},contentWidth:{type:String,default:"",validator:t=>Xn.includes(t)},contentTabindex:{type:Number||null,default:-1},externalAnchor:{type:String,default:""},id:{type:String,default(){return V()}},offset:{type:Array,default:()=>[0,4]},hideOnClick:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},fallbackPlacements:{type:Array,default:()=>["auto"]},placement:{type:String,default:"bottom-end"},tether:{type:Boolean,default:!0},sticky:{type:[Boolean,String],default:!1,validator:t=>qd.includes(t)},maxHeight:{type:String,default:""},maxWidth:{type:String,default:""},showCloseButton:{type:Boolean,default:!1},headerClass:{type:[String,Array,Object],default:""},footerClass:{type:[String,Array,Object],default:""},dialogClass:{type:[String,Array,Object],default:""},initialFocusElement:{type:[String,HTMLElement],default:"first",validator:t=>Fs.includes(t)||t instanceof HTMLElement||t.startsWith("#")},openWithArrowKeys:{type:Boolean,default:!1},appendTo:{type:[HTMLElement,String],default:"body",validator:t=>Zt.includes(t)||t instanceof HTMLElement}},emits:["opened","update:open"],data(){return{POPOVER_PADDING_CLASSES:Tn,POPOVER_HEADER_FOOTER_PADDING_CLASSES:Bs,intersectionObserver:null,isOutsideViewport:!1,isOpen:!1,anchorEl:null,popoverContentEl:null}},computed:{popoverListeners(){return{...this.$listeners,keydown:t=>{this.onKeydown(t),this.$emit("keydown",t)},"after-leave":t=>{this.onLeaveTransitionComplete()},"after-enter":t=>{this.onEnterTransitionComplete()}}},calculatedMaxHeight(){return this.isOutsideViewport&&this.modal?"calc(100vh - var(--space-300))":this.maxHeight},labelledBy(){return this.ariaLabelledby||!this.ariaLabel&&V("DtPopover__anchor")}},watch:{$props:{immediate:!0,deep:!0,handler(){this.validateProps()}},modal(t){var e;(e=this.tip)==null||e.setProps({zIndex:t?650:this.calculateAnchorZindex()})},offset(t){var e;(e=this.tip)==null||e.setProps({offset:t})},sticky(t){var e;(e=this.tip)==null||e.setProps({sticky:t})},fallbackPlacements(){var t;(t=this.tip)==null||t.setProps({popperOptions:this.popperOptions()})},tether(){var t;(t=this.tip)==null||t.setProps({popperOptions:this.popperOptions()})},placement(t){var e;(e=this.tip)==null||e.setProps({placement:t})},open:{handler:function(t){t!==null&&(this.isOpen=t)},immediate:!0},isOpen(t,e){t?(this.initTippyInstance(),this.tip.show()):!t&&e!==t&&(this.removeEventListeners(),this.tip.hide())}},mounted(){const t=this.externalAnchor?this.$refs.anchor.getRootNode().querySelector(`#${this.externalAnchor}`):null;this.anchorEl=t??this.$refs.anchor.children[0],this.popoverContentEl=this.$refs.content.$el,this.isOpen&&(this.initTippyInstance(),this.tip.show()),this.intersectionObserver=new IntersectionObserver(this.hasIntersectedViewport),this.intersectionObserver.observe(this.popoverContentEl)},beforeDestroy(){var t;(t=this.tip)==null||t.destroy(),this.intersectionObserver.disconnect(),this.removeReferences(),this.removeEventListeners()},methods:{hasIntersectedViewport(t){var i;const e=(i=t==null?void 0:t[0])==null?void 0:i.target;if(!e)return;const n=Zi(e);this.isOutsideViewport=n.bottom||n.top},popperOptions(){return Ns({fallbackPlacements:this.fallbackPlacements,tether:this.tether,hasHideModifierEnabled:!0})},validateProps(){this.modal&&this.initialFocusElement==="none"&&console.error('If the popover is modal you must set the initialFocusElement prop. Possible values: "dialog", "first", HTMLElement')},calculateAnchorZindex(){var t;return this.$el.getRootNode().querySelector('.d-modal[aria-hidden="false"], .d-modal--transparent[aria-hidden="false"]')||(t=this.anchorEl)!=null&&t.closest(".d-zi-drawer")?650:300},defaultToggleOpen(t){var e,n;this.openOnContext||(this.open??((e=this.anchorEl)!=null&&e.contains(t.target)&&!((n=this.anchorEl)!=null&&n.disabled)&&this.toggleOpen()))},async onContext(t){this.openOnContext&&(t.preventDefault(),this.isOpen=!0,await this.$nextTick(),this.tip.setProps({placement:"right-start",getReferenceClientRect:()=>({width:0,height:0,top:t.clientY,bottom:t.clientY,left:t.clientX,right:t.clientX})}))},toggleOpen(){this.isOpen=!this.isOpen},onArrowKeyPress(t){var e;this.open===null&&this.openWithArrowKeys&&(e=this.anchorEl)!=null&&e.contains(t.target)&&(this.isOpen||(this.isOpen=!0))},addEventListeners(){window.addEventListener("dt-popover-close",this.closePopover),this.contentWidth==="anchor"&&window.addEventListener("resize",this.onResize)},removeEventListeners(){window.removeEventListener("dt-popover-close",this.closePopover),this.contentWidth==="anchor"&&window.removeEventListener("resize",this.onResize)},closePopover(){this.isOpen=!1},preventScrolling(){var t;if(this.modal){const e=(t=this.anchorEl)==null?void 0:t.closest("body, .tippy-box");e.tagName.toLowerCase()==="body"?(e.classList.add("d-of-hidden"),this.tip.setProps({offset:this.offset})):e.classList.add("d-zi-popover")}},enableScrolling(){var e,n;const t=(e=this.anchorEl)==null?void 0:e.closest("body, .tippy-box");t&&(((n=t.tagName)==null?void 0:n.toLowerCase())==="body"?(t.classList.remove("d-of-hidden"),this.tip.setProps({offset:this.offset})):t.classList.remove("d-zi-popover"))},removeReferences(){this.anchorEl=null,this.popoverContentEl=null,this.tip=null},async onShow(){this.contentWidth==="anchor"&&await this.setPopoverContentAnchorWidth(),this.contentWidth===null&&(this.popoverContentEl.style.width="auto"),this.addEventListeners()},async onLeaveTransitionComplete(){var t;this.modal&&(await this.focusFirstElement(this.$refs.anchor),await this.$nextTick(),this.enableScrolling()),(t=this.tip)==null||t.unmount(),this.$emit("opened",!1),this.open!==null&&this.$emit("update:open",!1)},async onEnterTransitionComplete(){this.focusInitialElement(),await this.$nextTick(),this.preventScrolling(),this.$emit("opened",!0,this.$refs.popover__content),this.open!==null&&this.$emit("update:open",!0)},focusInitialElement(){this.initialFocusElement==="dialog"&&this.$refs.content.$el.focus(),this.initialFocusElement.startsWith("#")&&this.focusInitialElementById(),this.initialFocusElement==="first"&&this.focusFirstElementIfNeeded(this.$refs.popover__content),this.initialFocusElement instanceof HTMLElement&&this.initialFocusElement.focus()},focusInitialElementById(){var e,n,i;const t=(n=(e=this.$refs.content)==null?void 0:e.$el)==null?void 0:n.querySelector(this.initialFocusElement);t?t.focus():console.warn('Could not find the element specified in dt-popover prop "initialFocusElement". Defaulting to focusing the dialog.'),t?t.focus():(i=this.$refs.content)==null||i.$el.focus()},onResize(){this.closePopover()},onClickOutside(){if(!this.hideOnClick)return;this.popoverContentEl.querySelector(".d-popover__anchor--opened")||this.closePopover()},onKeydown(t){t.key==="Tab"&&this.modal&&this.focusTrappedTabPress(t,this.popoverContentEl),t.key==="Escape"&&this.closePopover()},async setPopoverContentAnchorWidth(){var t;await this.$nextTick(),this.popoverContentEl.style.width=`${(t=this.anchorEl)==null?void 0:t.clientWidth}px`},focusFirstElementIfNeeded(t){var n,i;this._getFocusableElements(t,!0).length!==0?this.focusFirstElement(t):this.showCloseButton?(n=this.$refs.popover__header)==null||n.focusCloseButton():(i=this.$refs.content)==null||i.$el.focus()},initTippyInstance(){var t,e;this.tip=Ps(this.anchorEl,{popperOptions:this.popperOptions(),contentElement:this.popoverContentEl,placement:this.placement,offset:this.offset,sticky:this.sticky,appendTo:this.appendTo==="body"?(e=(t=this.anchorEl)==null?void 0:t.getRootNode())==null?void 0:e.querySelector("body"):this.appendTo,interactive:!0,trigger:"manual",hideOnClick:!1,zIndex:this.modal?650:this.calculateAnchorZindex(),onClickOutside:this.onClickOutside,onShow:this.onShow})}}};var nc=function(){var e=this,n=e._self._c;return n("div",[e.modal&&e.isOpen?n("portal",[n("div",{staticClass:"d-modal--transparent",attrs:{"aria-hidden":e.modal&&e.isOpen?"false":"true"},on:{click:function(i){i.preventDefault(),i.stopPropagation()}}})]):e._e(),n(e.elementType,e._g({ref:"popover",tag:"component",class:["d-popover",{"d-popover__anchor--opened":e.isOpen}],attrs:{"data-qa":"dt-popover-container"}},e.$listeners),[n("div",{ref:"anchor",attrs:{id:!e.ariaLabelledby&&e.labelledBy,"data-qa":"dt-popover-anchor",tabindex:e.openOnContext?0:void 0},on:{"!click":function(i){return e.defaultToggleOpen.apply(null,arguments)},contextmenu:e.onContext,keydown:[function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"up",38,i.key,["Up","ArrowUp"])?null:(i.preventDefault(),e.onArrowKeyPress.apply(null,arguments))},function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"down",40,i.key,["Down","ArrowDown"])?null:(i.preventDefault(),e.onArrowKeyPress.apply(null,arguments))}],"!keydown":function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"escape",void 0,i.key,void 0)?null:e.closePopover.apply(null,arguments)}}},[e._t("anchor",null,{attrs:{"aria-expanded":e.isOpen.toString(),"aria-controls":e.id,"aria-haspopup":e.role}})],2),n("dt-lazy-show",e._g({ref:"content",class:["d-popover__dialog",{"d-popover__dialog--modal":e.modal},e.dialogClass],style:{"max-height":e.calculatedMaxHeight,"max-width":e.maxWidth},attrs:{id:e.id,role:e.role,"data-qa":"dt-popover","aria-hidden":`${!e.isOpen}`,"aria-labelledby":e.labelledBy,"aria-label":e.ariaLabel,"aria-modal":`${!e.modal}`,transition:e.transition,show:e.isOpen,tabindex:e.contentTabindex,appear:""}},e.popoverListeners),[e.$slots.headerContent||e.showCloseButton?n("popover-header-footer",{ref:"popover__header",class:e.POPOVER_HEADER_FOOTER_PADDING_CLASSES[e.padding],attrs:{"content-class":e.headerClass,type:"header","show-close-button":e.showCloseButton,"close-button-props":e.closeButtonProps},on:{close:e.closePopover},scopedSlots:e._u([{key:"content",fn:function(){return[e._t("headerContent",null,{close:e.closePopover})]},proxy:!0}],null,!0)}):e._e(),n("div",{ref:"popover__content",class:["d-popover__content",e.POPOVER_PADDING_CLASSES[e.padding],e.contentClass],attrs:{"data-qa":"dt-popover-content"}},[e._t("content",null,{close:e.closePopover})],2),e.$slots.footerContent?n("popover-header-footer",{ref:"popover__footer",class:e.POPOVER_HEADER_FOOTER_PADDING_CLASSES[e.padding],attrs:{type:"footer","content-class":e.footerClass},scopedSlots:e._u([{key:"content",fn:function(){return[e._t("footerContent",null,{close:e.closePopover})]},proxy:!0}],null,!0)}):e._e(),e.showVisuallyHiddenClose?n("sr-only-close-button",{attrs:{"visually-hidden-close-label":e.visuallyHiddenCloseLabel},on:{close:e.closePopover}}):e._e()],1)],1)],1)},ic=[],sc=_.normalizeComponent(tc,nc,ic,!1,null,null,null,null);const Xt=sc.exports,lt={none:void 0,small:"d-py0",large:"d-py4"};const ac={name:"DtDropdown",components:{DtPopover:Xt,SrOnlyCloseButton:Ut},mixins:[Hn({indexKey:"highlightIndex",idKey:"highlightId",listElementKey:"getListElement",listItemRole:"menuitem",afterHighlightMethod:"afterHighlight",beginningOfListMethod:"beginningOfListMethod",endOfListMethod:"endOfListMethod",activeItemKey:"activeItemEl",focusOnKeyboardNavigation:!0}),ge],props:{open:{type:Boolean,default:null},openOnContext:{type:Boolean,default:!1},padding:{type:String,default:"small",validator:t=>Object.keys(lt).some(e=>e===t)},modal:{type:Boolean,default:!0},contentWidth:{type:String,default:null},maxHeight:{type:String,default:""},maxWidth:{type:String,default:""},listId:{type:String,default(){return V()}},navigationType:{type:String,default:$e.ARROW_KEYS,validator:t=>Object.values($e).includes(t)},fallbackPlacements:{type:Array,default:()=>["auto"]},placement:{type:String,default:"bottom"},onBeginningOfList:{type:Function,default:null},onEndOfList:{type:Function,default:null},listClass:{type:[String,Array,Object],default:""},appendTo:{type:[HTMLElement,String],default:"body",validator:t=>Zt.includes(t)||t instanceof HTMLElement},tether:{type:Boolean,default:!0},transition:{type:String,default:"fade"}},emits:["highlight","opened","update:open"],data(){return{LIST_ITEM_NAVIGATION_TYPES:$e,DROPDOWN_PADDING_CLASSES:lt,EVENT_KEYNAMES:H,openedWithKeyboard:!1,isOpen:null}},computed:{dropdownListeners(){return{...this.$listeners,opened:t=>{this.updateInitialHighlightIndex(t)},keydown:t=>{switch(t.code){case H.up:case H.arrowup:this.onUpKeyPress(t),t.stopPropagation(),t.preventDefault();break;case H.down:case H.arrowdown:this.onDownKeyPress(t),t.stopPropagation(),t.preventDefault();break;case H.space:case H.spacebar:this.onSpaceKey();break;case H.enter:this.onEnterKey();break;case H.home:this.onHomeKeyPress(t),t.stopPropagation(),t.preventDefault();break;case H.end:this.onEndKeyPress(t),t.stopPropagation(),t.preventDefault();break;default:this.onKeyPress(t);break}this.$emit("keydown",t)}}},beginningOfListMethod(){return this.onBeginningOfList||this.jumpToEnd},endOfListMethod(){return this.onEndOfList||this.jumpToBeginning},activeItemEl(){return this.getListElement().querySelector("#"+this.highlightId)},isArrowKeyNav(){return this.navigationType===this.LIST_ITEM_NAVIGATION_TYPES.ARROW_KEYS},listClasses(){return["d-ps-relative","d-stack2","d-m4","d-px0",lt[this.padding],this.listClass,{"d-context-menu-list":this.openOnContext}]},shouldOpenWithArrowKeys(){return!this.openOnContext}},methods:{onMouseHighlight(t){const e=t.target.closest("li");e&&e.role&&this.highlightId!==e.id&&(this.setHighlightId(e.id),e.focus())},getListElement(){return this.$refs.listWrapper},clearHighlightIndex(){this.setHighlightIndex(-1)},afterHighlight(){this.visuallyHiddenClose&&this.highlightIndex===this._itemsLength()-1||this.$emit("highlight",this.highlightIndex)},updateInitialHighlightIndex(t){this.isOpen=t,t?(this.openedWithKeyboard&&this.isArrowKeyNav&&this.setHighlightIndex(0),this.$emit("opened",!0)):(this.clearHighlightIndex(),this.openedWithKeyboard=!1,this.$emit("opened",!1))},onSpaceKey(){this.open||(this.openedWithKeyboard=!0)},onEnterKey(){this.open||(this.openedWithKeyboard=!0)},onUpKeyPress(){if(!this.isOpen){this.openedWithKeyboard=!0;return}if(this.isArrowKeyNav)return this.onUpKey()},onDownKeyPress(){if(!this.isOpen){this.openedWithKeyboard=!0;return}if(this.isArrowKeyNav)return this.onDownKey()},onHomeKeyPress(){if(!(!this.isOpen||!this.isArrowKeyNav))return this.onHomeKey()},onEndKeyPress(){if(!(!this.isOpen||!this.isArrowKeyNav))return this.onEndKey()},onKeyPress(t){if(!(!this.isOpen||!this.isArrowKeyNav||!this.isValidCharacter(t.key)))return t.stopPropagation(),t.preventDefault(),this.onNavigationKey(t.key)}}};var rc=function(){var e=this,n=e._self._c;return n("dt-popover",e._g({ref:"popover",attrs:{"content-width":e.contentWidth,open:e.open,placement:e.placement,"initial-focus-element":e.openedWithKeyboard?"first":"dialog","fallback-placements":e.fallbackPlacements,padding:"none",role:"menu","append-to":e.appendTo,modal:e.modal,"max-height":e.maxHeight,"max-width":e.maxWidth,"open-with-arrow-keys":e.shouldOpenWithArrowKeys,"open-on-context":e.openOnContext,tether:e.tether,transition:e.transition},scopedSlots:e._u([{key:"anchor",fn:function({attrs:i}){return[e._t("anchor",null,null,i)]}},{key:"content",fn:function({close:i}){return[n("ul",{ref:"listWrapper",class:e.listClasses,attrs:{id:e.listId,"data-qa":"dt-dropdown-list-wrapper"},on:{mouseleave:e.clearHighlightIndex,"!mousemove":function(a){return e.onMouseHighlight.apply(null,arguments)}}},[e._t("list",null,{close:i}),e.showVisuallyHiddenClose?n("sr-only-close-button",{attrs:{"visually-hidden-close-label":e.visuallyHiddenCloseLabel,tabindex:e.isArrowKeyNav?-1:0},on:{close:i}}):e._e()],2)]}}],null,!0)},e.dropdownListeners))},oc=[],lc=_.normalizeComponent(ac,rc,oc,!1,null,null,null,null);const js=lc.exports;const dc={name:"DtDropdownSeparator"};var cc=function(){var e=this,n=e._self._c;return n("li",{staticClass:"dt-list-separator d-my4 d-mxn4",attrs:{"aria-hidden":"true"}})},uc=[],pc=_.normalizeComponent(dc,cc,uc,!1,null,null,null,null);const fc=pc.exports,hc={name:"DtImageViewer",components:{Portal:Qn,DtButton:q,DtIcon:M},mixins:[_t],props:{open:{type:Boolean,default:null},imageSrc:{type:String,required:!0},imageAlt:{type:String,required:!0},imageButtonClass:{type:String,required:!1,default:""},ariaLabel:{type:String,required:!0},closeAriaLabel:{type:String,required:!0}},emits:["opened","update:open"],data(){return{showCloseButton:!0,isOpen:!1}},computed:{modalListeners(){return{...this.$listeners,click:t=>{t.target===t.currentTarget&&this.close()},keydown:t=>{switch(t.code){case H.esc:case H.escape:this.close();break;case H.tab:this.trapFocus(t);break}}}}},watch:{isOpen:{immediate:!0,handler(t){var e;t?this.previousActiveElement=document.activeElement:((e=this.previousActiveElement)==null||e.focus(),this.previousActiveElement=null)}},open:{handler:function(t){t!==null&&(this.isOpen=t)},immediate:!0}},methods:{openModal(){this.open===null&&(this.isOpen=!0,this.showCloseButton=!0,this.$emit("opened",!0),setTimeout(()=>{this.focusAfterOpen()}))},close(){this.isOpen=!1,this.$emit("opened",!1),this.open!==null&&this.$emit("update:open",!1)},focusAfterOpen(){var t;(t=this.$refs.closeImage)==null||t.$el.focus()},trapFocus(t){this.isOpen&&this.focusTrappedTabPress(t)}}};var mc=function(){var e=this,n=e._self._c;return n("div",[n("dt-button",{staticClass:"d-p0 d-c-zoom-in",attrs:{"data-qa":"dt-image-viewer-preview","aria-label":e.ariaLabel,importance:"clear"},on:{click:e.openModal}},[n("img",{class:e.imageButtonClass,attrs:{src:e.imageSrc,alt:e.imageAlt}})]),e.isOpen?n("portal",[n("div",e._g({staticClass:"d-modal",attrs:{"aria-hidden":e.isOpen?"false":"true","data-qa":"dt-modal"},on:{mouseover:function(i){e.showCloseButton=!0},mouseleave:function(i){e.showCloseButton=!1},focusin:function(i){e.showCloseButton=!0},focusout:function(i){e.showCloseButton=!1}}},e.modalListeners),[n("div",{staticClass:"d-p0 d-bar0 d-wmx80p d-hmx80p",attrs:{"data-qa":"dt-image-viewer-full",role:"dialog","aria-modal":"true"}},[n("img",{staticClass:"d-wmx100p d-hmx100p",attrs:{src:e.imageSrc,alt:e.imageAlt}})]),n("transition",{attrs:{name:"fade"}},[e.showCloseButton?n("dt-button",{ref:"closeImage",staticClass:"d-modal__close",attrs:{"data-qa":"dt-image-viewer-close-btn",circle:"",size:"lg",importance:"clear",kind:"inverted","aria-label":e.closeAriaLabel},on:{click:e.close},scopedSlots:e._u([{key:"icon",fn:function(){return[n("dt-icon",{attrs:{name:"close",size:"400"}})]},proxy:!0}],null,!1,1709155279)}):e._e()],1)],1)]):e._e()],1)},_c=[],gc=_.normalizeComponent(hc,mc,_c,!1,null,null,null,null);const vc=gc.exports,zt={TEXT:"text",TEXTAREA:"textarea",PASSWORD:"password",EMAIL:"email",NUMBER:"number",DATE:"date",TIME:"time"},qe={EXTRA_SMALL:"xs",SMALL:"sm",DEFAULT:"md",LARGE:"lg",EXTRA_LARGE:"xl"};function St(t){return t?t.every(e=>typeof e=="string"?!0:typeof e=="object"?Object.values(ee).includes(e==null?void 0:e.type):!1):!0}const bc={name:"DtValidationMessages",props:{id:{type:String,default(){return V()}},validationMessages:{type:Array,default:()=>[],validator:t=>St(t)},showMessages:{type:Boolean,default:!0}},computed:{isFilteredValidationMessagesEmpty(){return this.filteredValidationMessages.length===0},filteredValidationMessages(){return Fn(this.validationMessages)},validationState(){return Ce(this.validationMessages)}},methods:{getMessageKey(t,e){return`validation-message-${t}-${e}-${this.id}`},messageTypeClass(t){return{error:"base-input__message--error d-validation-message--error",warning:"base-input__message--warning d-validation-message--warning",success:"base-input__message--success d-validation-message--success"}[t]}}};var yc=function(){var e=this,n=e._self._c;return e.showMessages&&!e.isFilteredValidationMessagesEmpty?n("div",{staticClass:"base-input__messages d-d-flex d-fd-column",attrs:{"data-qa":"validation-messages-container"}},e._l(e.filteredValidationMessages,function({message:i,type:a},o){return n("div",{key:e.getMessageKey(a,o),class:["base-input__message","d-validation-message",e.messageTypeClass(a)],attrs:{role:"status","aria-live":"polite","data-qa":"validation-message"}},[n("p",{domProps:{innerHTML:e._s(i)}})])}),0):e._e()},Sc=[],Cc=_.normalizeComponent(bc,yc,Sc,!1,null,null,null,null);const we=Cc.exports,Jn={inheritAttrs:!1,props:{label:{type:String,default:""},name:{type:String,default:""},value:{type:[String,Number,Boolean,Object],default:null},description:{type:String,default:""},disabled:{type:Boolean,default:!1},validationState:{type:String,default:"",validator:t=>t?Object.values(ee).includes(t):!0},inputClass:{type:[String,Array,Object],default:""},labelClass:{type:[String,Array,Object],default:""},descriptionClass:{type:[String,Array,Object],default:""},labelChildProps:{type:Object,default:()=>({})},descriptionChildProps:{type:Object,default:()=>({})}},data(){return{internalDisabled:this.disabled,internalValidationState:this.validationState}},watch:{disabled(t){this.internalDisabled=t},validationState(t){this.internalValidationState=t}},methods:{validateInputLabels(t,e){!t&&!e&&X.util.warn("You must provide an aria-label when there is no label passed",this)}}},ei={model:{prop:"checked"},props:{checked:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1},value:{type:[String,Number,Boolean],default:null}},data(){return{internalChecked:this.checked,internalIndeterminate:this.indeterminate}},watch:{checked(t){this.internalChecked=t},indeterminate(t){this.internalIndeterminate=t}}},ti={inject:{groupContext:{default:{}},setGroupValue:{default:()=>()=>{}}},data(){return{internalValue:this.value}},computed:{hasGroup(){return Object.prototype.hasOwnProperty.call(this.groupContext,"name")},groupName(){var t;return((t=this.groupContext)==null?void 0:t.name)??""},groupValue(){var t;return(t=this.groupContext)==null?void 0:t.value},groupDisabled(){var t;return((t=this.groupContext)==null?void 0:t.disabled)??!1},groupValidationState(){var t;return((t=this.groupContext)==null?void 0:t.validationState)??null},internalName(){return this.name||this.groupName}},watch:{value(t){this.internalValue=t},groupValue:{immediate:!0,handler(t){this.hasGroup&&(this.internalValue=t)}},groupDisabled:{immediate:!0,handler(t){this.hasGroup&&(this.internalDisabled=this.disabled||t)}},groupValidationState:{immediate:!0,handler(t){this.hasGroup&&(this.internalValidationState=t||this.validationState)}}},created(){var n;const t=Object.prototype.hasOwnProperty.call(this.groupContext,"name"),e=(n=this.groupContext)==null?void 0:n.name;this.name&&t&&e!==this.name&&X.util.warn(`Component is being used inside a Group. Did you mean to override the name prop value (${e}) with (${this.name})? It is recommended to only set name at the Group level.`,this)}},Qt={props:{messagesClass:{type:[String,Array,Object],default:""},messagesChildProps:{type:Object,default:()=>({})},showMessages:{type:Boolean,default:!0},messages:{type:Array,default:()=>[],validator:t=>St(t)}},computed:{formattedMessages(){return dt(this.messages)}}},xc={name:"DtInput",components:{DtValidationMessages:we},mixins:[Qt],inheritAttrs:!1,props:{name:{type:String,default:""},type:{type:String,default:zt.TEXT,validator:t=>Object.values(zt).includes(t)},value:{type:[String,Number],default:""},disabled:{type:Boolean,default:!1},label:{type:String,default:""},labelVisible:{type:Boolean,default:!0},description:{type:String,default:""},size:{type:String,default:null,validator:t=>Object.values(qe).includes(t)},iconSize:{type:String,default:null,validator:t=>Object.values(qe).includes(t)},inputClass:{type:[String,Object,Array],default:""},inputWrapperClass:{type:[String,Object,Array],default:""},currentLength:{type:Number,default:null},retainWarning:{type:Boolean,default:!1},validate:{type:Object,default:null}},emits:["input","blur","clear","focus","focusin","focusout","update:length","update:invalid"],data(){return{descriptionSizeClasses:{lg:"d-description--lg",xl:"d-description--xl"},labelSizeClasses:{xs:"d-label--xs",sm:"d-label--sm",md:"d-label--md",lg:"d-label--lg",xl:"d-label--xl"},isInputFocused:!1,isInvalid:!1,defaultLength:0}},computed:{isTextarea(){return this.type===zt.TEXTAREA},isDefaultSize(){return this.size===qe.DEFAULT},isDefaultIconSize(){return this.iconSizeComputed===qe.DEFAULT},iconSizeComputed(){return this.iconSize?this.iconSize:this.size},isValidSize(){return Object.values(qe).includes(this.size)},isValidDescriptionSize(){return Object.values(Gi).includes(this.size)},inputComponent(){return this.isTextarea?"textarea":"input"},inputListeners(){return{...this.$listeners,input:t=>this.$emit("input",t.target.value),focus:t=>{this.isInputFocused=!0,this.$emit("focus",t)},blur:t=>{this.isInputFocused=!1,this.onBlur(t)}}},descriptionKey(){return`input-description-${V()}`},inputState(){return Ce(this.validationMessages)},defaultLengthCalculation(){return this.calculateLength(this.value)},validationProps(){var t,e,n,i,a,o,p,c,s,u;return{length:{description:(e=(t=this==null?void 0:this.validate)==null?void 0:t.length)==null?void 0:e.description,max:(i=(n=this==null?void 0:this.validate)==null?void 0:n.length)==null?void 0:i.max,warn:(o=(a=this==null?void 0:this.validate)==null?void 0:a.length)==null?void 0:o.warn,message:(c=(p=this==null?void 0:this.validate)==null?void 0:p.length)==null?void 0:c.message,limitMaxLength:(u=(s=this==null?void 0:this.validate)==null?void 0:s.length)!=null&&u.limitMaxLength?this.validate.length.limitMaxLength:!1}}},validationMessages(){return this.showLengthLimitValidation?this.formattedMessages.concat([this.inputLengthErrorMessage()]):this.formattedMessages},showInputState(){return this.showMessages&&this.inputState},inputLength(){return this.currentLength?this.currentLength:this.defaultLengthCalculation},inputLengthState(){return this.inputLength<this.validationProps.length.warn?null:this.inputLength<=this.validationProps.length.max?this.validationProps.length.warn?ee.WARNING:null:ee.ERROR},shouldValidateLength(){return!!(this.validationProps.length.description&&this.validationProps.length.max)},shouldLimitMaxLength(){return this.shouldValidateLength&&this.validationProps.length.limitMaxLength},showLengthLimitValidation(){return this.shouldValidateLength&&this.inputLengthState!==null&&this.validationProps.length.message&&(this.retainWarning||this.isInputFocused||this.isInvalid)},sizeModifierClass(){return this.isDefaultSize||!this.isValidSize?"":{input:{xs:"d-input--xs",sm:"d-input--sm",lg:"d-input--lg",xl:"d-input--xl"},textarea:{xs:"d-textarea--xs",sm:"d-textarea--sm",lg:"d-textarea--lg",xl:"d-textarea--xl"}}[this.inputComponent][this.size]},stateClass(){return[{input:{error:"d-input--error base-input__input--error",warning:"d-input--warning base-input__input--warning",success:"d-input--success base-input__input--success"},textarea:{error:"d-textarea--error base-input__input--error",warning:"d-textarea--warning base-input__input--warning",success:"d-textarea--success base-input__input--success"}}[this.inputComponent][this.inputState]]}},watch:{isInvalid(t){this.$emit("update:invalid",t)},value:{immediate:!0,handler(t){this.shouldValidateLength&&this.validateLength(this.inputLength),this.currentLength==null&&this.$emit("update:length",this.calculateLength(t))}}},methods:{inputClasses(){return["base-input__input",this.inputComponent==="input"?"d-input":"d-textarea",{[this.stateClass]:this.showInputState,"d-input-icon--left":this.$slots.leftIcon,"d-input-icon--right":this.$slots.rightIcon},this.sizeModifierClass,this.inputClass]},inputWrapperClasses(){return["d-input__wrapper",{[this.stateClass]:this.showInputState},this.inputWrapperClass]},calculateLength(t){return typeof t!="string"?0:[...t].length},inputLengthErrorMessage(){return{message:this.validationProps.length.message,type:this.inputLengthState}},inputIconClasses(t){const e={xs:"d-input-icon--xs",sm:"d-input-icon--sm",lg:"d-input-icon--lg",xl:"d-input-icon--xl"};return[{left:"base-input__icon--left d-input-icon--left",right:"base-input__icon--right d-input-icon--right"}[t],"d-input-icon",{[e[this.iconSizeComputed]]:!this.isDefaultIconSize},this.sizeModifierClass]},onBlur(t){var e;(e=this.$refs.container)!=null&&e.contains(t.relatedTarget)||this.$emit("blur",t)},clear(){this.$emit("input",""),this.$emit("clear")},blur(){this.$refs.input.blur()},focus(){this.$refs.input.focus()},select(){this.$refs.input.select()},getMessageKey(t,e){return`message-${t}-${e}`},validateLength(t){this.isInvalid=t>this.validationProps.length.max}}};var wc=function(){var e=this,n=e._self._c;return n("div",{ref:"container",staticClass:"base-input",attrs:{"data-qa":"dt-input"}},[n("label",{staticClass:"base-input__label",attrs:{"aria-details":e.$slots.description||e.description?e.descriptionKey:void 0,"data-qa":"dt-input-label-wrapper"}},[e._t("labelSlot",function(){return[e.labelVisible&&e.label?n("div",{ref:"label",class:["base-input__label-text","d-label",e.labelSizeClasses[e.size]],attrs:{"data-qa":"dt-input-label"}},[e._v(" "+e._s(e.label)+" ")]):e._e()]}),e.$slots.description||e.description||e.shouldValidateLength?n("div",{ref:"description",class:["base-input__description","d-description","d-fd-column",e.descriptionSizeClasses[e.size]],attrs:{id:e.descriptionKey,"data-qa":"dt-input-description"}},[e.$slots.description||e.description?n("div",[e._t("description",function(){return[e._v(e._s(e.description))]})],2):e._e(),e.shouldValidateLength?n("div",{class:["d-mb2"],attrs:{"data-qa":"dt-input-length-description"}},[e._v(" "+e._s(e.validationProps.length.description)+" ")]):e._e()]):e._e(),n("div",{class:e.inputWrapperClasses(),attrs:{"read-only":e.disabled}},[e.$slots.leftIcon?n("span",{class:e.inputIconClasses("left"),attrs:{"data-qa":"dt-input-left-icon-wrapper"},on:{focusout:e.onBlur}},[e._t("leftIcon")],2):e._e(),e.isTextarea?n("textarea",e._g(e._b({ref:"input",class:e.inputClasses(),attrs:{name:e.name,disabled:e.disabled,maxlength:e.shouldLimitMaxLength?e.validationProps.length.max:null,"data-qa":"dt-input-input"},domProps:{value:e.value}},"textarea",e.$attrs,!1),e.inputListeners)):n("input",e._g(e._b({ref:"input",class:e.inputClasses(),attrs:{name:e.name,type:e.type,disabled:e.disabled,maxlength:e.shouldLimitMaxLength?e.validationProps.length.max:null,"data-qa":"dt-input-input"},domProps:{value:e.value}},"input",e.$attrs,!1),e.inputListeners)),e.$slots.rightIcon?n("span",{class:e.inputIconClasses("right"),attrs:{"data-qa":"dt-input-right-icon-wrapper"},on:{focusout:e.onBlur}},[e._t("rightIcon")],2):e._e()])],2),n("dt-validation-messages",e._b({class:e.messagesClass,attrs:{"validation-messages":e.validationMessages,"show-messages":e.showMessages,"data-qa":"dt-input-messages"}},"dt-validation-messages",e.messagesChildProps,!1))],1)},Ec=[],Ic=_.normalizeComponent(xc,wc,Ec,!1,null,null,null,null);const zs=Ic.exports,Hs={components:{DtValidationMessages:we},provide(){return{groupContext:this.provideObj,setGroupValue:this.setGroupValue}},props:{id:{type:String,default(){return V()}},value:{type:[String,Number,Boolean,Object],default:null},name:{type:String,required:!0},legend:{type:String,default:""},disabled:{type:Boolean,default:!1},messages:{type:Array,default:()=>[],validator:t=>St(t)},showMessages:{type:Boolean,default:!0},legendClass:{type:[String,Array,Object],default:""},messagesClass:{type:[String,Array,Object],default:""},legendChildProps:{type:Object,default:()=>({})},messagesChildProps:{type:Object,default:()=>({})}},data(){const t=dt(this.messages);return{provideObj:{name:this.name,disabled:this.disabled,validationState:Ce(t)}}},computed:{formattedMessages(){return dt(this.messages)},validationState(){return Ce(this.formattedMessages)}},watch:{disabled(t){this.provideObj.disabled=t},validationState(t){this.provideObj.validationState=t}},methods:{setGroupValue(t){this.internalValue=t,this.$emit("input",t)}},mounted(){!this.legend&&!this.$slots.legend&&!this.$attrs["aria-label"]&&X.util.warn("It is expected that an aria-label is provided when there is no legend.",this)}},Oc={name:"DtInputGroup",components:{DtValidationMessages:we},mixins:[Hs],props:{dataQaGroup:{type:String,default:"input-group"},dataQaGroupLegend:{type:String,default:"input-group-legend"},dataQaGroupMessages:{type:String,default:"input-group-messages"}},emits:["input"],data(){return{internalValue:this.value,provideObj:{value:this.value}}},watch:{value(t){this.internalValue=t},internalValue(t){this.provideObj.value=t}},methods:{getMessageKey(t,e){return`input-group-message-${t}-${e}-${this.id}`}}};var Tc=function(){var e=this,n=e._self._c;return n("fieldset",{attrs:{"data-qa":e.dataQaGroup}},[e.$slots.legend||e.legend?n("legend",e._b({class:["d-label",e.legendClass],attrs:{"data-qa":e.dataQaGroupLegend}},"legend",e.legendChildProps,!1),[e._t("legend",function(){return[e._v(" "+e._s(e.legend)+" ")]})],2):e._e(),e._t("default"),n("dt-validation-messages",e._b({class:e.messagesClass,attrs:{"validation-messages":e.formattedMessages,"show-messages":e.showMessages,"data-qa":e.dataQaGroupMessages}},"dt-validation-messages",e.messagesChildProps,!1))],2)},Lc=[],Ac=_.normalizeComponent(Oc,Tc,Lc,!1,null,null,null,null);const ni=Ac.exports,Ln={default:"",danger:"d-modal--danger"},An={default:"",full:"d-modal--full"},Vi={error:"d-modal__banner--critical",info:"d-modal__banner--info",success:"d-modal__banner--success",warning:"d-modal__banner--warning",base:"d-modal__banner--general"},$c={name:"DtNotice",components:{DtNoticeIcon:Vn,DtNoticeContent:jn,DtNoticeAction:zn},mixins:[ge],props:{titleId:{type:String,default:void 0},contentId:{type:String,default:void 0},title:{type:String,default:""},role:{type:String,default:"status",validate(t){return fr.includes(t)}},important:{type:Boolean,default:!1},kind:{type:String,default:"base",validate(t){return Xe.includes(t)}},closeButtonProps:{type:Object,default:()=>({})},hideClose:{type:Boolean,default:!1}},emits:["close"],computed:{noticeClass(){return["d-notice",{error:"d-notice--error",info:"d-notice--info",success:"d-notice--success",warning:"d-notice--warning",base:"d-notice--base"}[this.kind],{"d-notice--important":this.important}]}}};var Dc=function(){var e=this,n=e._self._c;return n("aside",{class:e.noticeClass,attrs:{"data-qa":"notice"}},[n("dt-notice-icon",{attrs:{kind:e.kind}},[e._t("icon")],2),n("dt-notice-content",e._g({attrs:{"title-id":e.titleId,"content-id":e.contentId,title:e.title,role:e.role},scopedSlots:e._u([{key:"titleOverride",fn:function(){return[e._t("titleOverride")]},proxy:!0}],null,!0)},e.$listeners),[e._t("default")],2),n("dt-notice-action",e._g({attrs:{"hide-close":e.hideClose,"close-button-props":e.closeButtonProps,"visually-hidden-close":e.visuallyHiddenClose,"visually-hidden-close-label":e.visuallyHiddenCloseLabel}},e.$listeners),[e._t("action")],2)],1)},Rc=[],kc=_.normalizeComponent($c,Dc,Rc,!1,null,null,null,null);const Pc=kc.exports,Nc={name:"DtModal",components:{DtLazyShow:Qe,DtButton:q,DtIcon:M,SrOnlyCloseButton:Ut},mixins:[_t,ge],props:{closeButtonProps:{type:Object,required:!0,validator:t=>!!t.ariaLabel},copy:{type:String,default:""},describedById:{type:String,default:""},labelledById:{type:String,default:function(){return V()}},show:{type:Boolean,default:!1},title:{type:String,default:""},bannerTitle:{type:String,default:""},kind:{type:String,default:"default",validator:t=>Object.keys(Ln).includes(t)},size:{type:String,default:"default",validator:t=>Object.keys(An).includes(t)},modalClass:{type:[String,Object,Array],default:""},dialogClass:{type:[String,Object,Array],default:""},contentClass:{type:[String,Object,Array],default:""},bannerKind:{type:String,default:"warning",validate(t){return Xe.includes(t)}},bannerClass:{type:[String,Object,Array],default:""},hideClose:{type:Boolean,default:!1},closeOnClick:{type:Boolean,default:!0},fixedHeaderFooter:{type:Boolean,default:!0}},emits:["update:show"],data(){return{MODAL_KIND_MODIFIERS:Ln,MODAL_SIZE_MODIFIERS:An,MODAL_BANNER_KINDS:Vi,EVENT_KEYNAMES:H}},computed:{modalListeners(){return{...this.$listeners,click:t=>{this.closeOnClick&&(t.target===t.currentTarget&&this.close(),this.$emit("click",t))},keydown:t=>{switch(t.code){case H.esc:case H.escape:this.close();break;case H.tab:this.trapFocus(t);break}this.$emit("keydown",t)},"after-enter":t=>{t.target===t.currentTarget&&this.setFocusAfterTransition()}}},open(){return`${!this.show}`},hasFooterSlot(){return!!this.$slots.footer},bannerKindClass(){return Vi[this.bannerKind]}},watch:{show:{immediate:!0,handler(t){var e;t?this.previousActiveElement=document.activeElement:((e=this.previousActiveElement)==null||e.focus(),this.previousActiveElement=null)}},$props:{immediate:!0,deep:!0,handler(){this.validateProps()}}},methods:{close(){this.$emit("update:show",!1)},setFocusAfterTransition(){this.focusFirstElement()},trapFocus(t){this.show&&this.focusTrappedTabPress(t)},validateProps(){this.hideClose&&!this.visuallyHiddenClose&&console.error(`If hideClose prop is true, visuallyHiddenClose and visuallyHiddenCloseLabel props
|
|
29
|
+
`,"2) content: () => element.cloneNode(true)"].join(" "))}var c=a.reduce(function(s,u){var d=u&&Md(u,i);return d&&s.push(d),s},[]);return pt(t)?c[0]:c}yt.defaultProps=Y;yt.setDefaultProps=kd;yt.currentInput=ce;Object.assign({},ms,{effect:function(e){var n=e.state,i={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(n.elements.popper.style,i.popper),n.styles=i,n.elements.arrow&&Object.assign(n.elements.arrow.style,i.arrow)}});var Fd={name:"sticky",defaultValue:!1,fn:function(e){var n=e.reference,i=e.popper;function a(){return e.popperInstance?e.popperInstance.state.elements.reference:n}function o(u){return e.props.sticky===!0||e.props.sticky===u}var p=null,c=null;function s(){var u=o("reference")?a().getBoundingClientRect():null,d=o("popper")?i.getBoundingClientRect():null;(u&&Mi(p,u)||d&&Mi(c,d))&&e.popperInstance&&e.popperInstance.update(),p=u,c=d,e.state.isMounted&&requestAnimationFrame(s)}return{onMount:function(){e.props.sticky&&s()}}}};function Mi(t,e){return t&&e?t.top!==e.top||t.right!==e.right||t.bottom!==e.bottom||t.left!==e.left:!0}yt.setDefaultProps({render:Rs});const Vd=t=>({name:"arrowDetected",enabled:!0,phase:"main",fn:t,requiresIfExists:["offset"]}),jd=["bottom","bottom-start","bottom-end","right","right-start","right-end","left","left-start","left-end","top","top-start","top-end"],ks=[!0,!1,"reference","popper"],Ps=(t,e)=>{const{contentElement:n}={...e};return delete e.contentElement,yt(t,{...e,plugins:[Fd],render:()=>Hd(n)})},Ns=({boundary:t="clippingParents",fallbackPlacements:e=[],onChangePlacement:n=()=>{},hasHideModifierEnabled:i=!1,tether:a=!0}={})=>({modifiers:[{name:"flip",options:{fallbackPlacements:e,boundary:t}},{name:"hide",enabled:i},{name:"preventOverflow",options:{altAxis:!a,tether:a}},Vd(({state:o})=>{n(o.placement)})]}),zd=t=>{const e=document.createElement("span");return e.innerText=t.innerText||"",t.innerText="",t.appendChild(e),e},Fi=t=>{const e=t==null?void 0:t.children[0];return e||zd(t)},Hd=t=>{const e=document.createElement("div");return e.className="tippy-box d-ps-absolute",e.appendChild(t),{popper:e}},Tn={none:void 0,small:"d-p4",medium:"d-p8",large:"d-p16"},Bs={none:void 0,small:"d-pl4",medium:"d-pl8",large:"d-pl16"},Ms=["dialog","menu","listbox","tree","grid"],Xn=["","anchor"],Fs=["none","dialog","first"],Zt=["parent","body"],qd=[...ks];let Gd="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Kd=(t=21)=>{let e="",n=t;for(;n--;)e+=Gd[Math.random()*64|0];return e};function jt(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?jt=function(e){return typeof e}:jt=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},jt(t)}var Vs={selector:"vue-portal-target-".concat(Kd())},Ud=function(e){return Vs.selector=e},_n=typeof window<"u"&&(typeof document>"u"?"undefined":jt(document))!==void 0,Wd=X.extend({abstract:!0,name:"PortalOutlet",props:["nodes","tag"],data:function(e){return{updatedNodes:e.nodes}},render:function(e){var n=this.updatedNodes&&this.updatedNodes();return n?n.length===1&&!n[0].text?n:e(this.tag||"DIV",n):e()},destroyed:function(){var e=this.$el;e&&e.parentNode.removeChild(e)}}),Qn=X.extend({name:"VueSimplePortal",props:{disabled:{type:Boolean},prepend:{type:Boolean},selector:{type:String,default:function(){return"#".concat(Vs.selector)}},tag:{type:String,default:"DIV"}},render:function(e){if(this.disabled){var n=this.$scopedSlots&&this.$scopedSlots.default();return n?n.length<2&&!n[0].text?n:e(this.tag,n):e()}return e()},created:function(){this.getTargetEl()||this.insertTargetEl()},updated:function(){var e=this;this.$nextTick(function(){!e.disabled&&e.slotFn!==e.$scopedSlots.default&&(e.container.updatedNodes=e.$scopedSlots.default),e.slotFn=e.$scopedSlots.default})},beforeDestroy:function(){this.unmount()},watch:{disabled:{immediate:!0,handler:function(e){e?this.unmount():this.$nextTick(this.mount)}}},methods:{getTargetEl:function(){if(_n)return document.querySelector(this.selector)},insertTargetEl:function(){if(_n){var e=document.querySelector("body"),n=document.createElement(this.tag);n.id=this.selector.substring(1),e.appendChild(n)}},mount:function(){if(_n){var e=this.getTargetEl(),n=document.createElement("DIV");this.prepend&&e.firstChild?e.insertBefore(n,e.firstChild):e.appendChild(n),this.container=new Wd({el:n,parent:this,propsData:{tag:this.tag,nodes:this.$scopedSlots.default}})}},unmount:function(){this.container&&(this.container.$destroy(),delete this.container)}}});function Yd(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};t.component(e.name||"portal",Qn),e.defaultSelector&&Ud(e.defaultSelector)}typeof window<"u"&&window.Vue&&window.Vue===X&&X.use(Yd);const Zd={name:"PopoverHeaderFooter",components:{DtButton:q,DtIcon:M},props:{type:{type:String,validator:function(t){return["header","footer"].includes(t)}},contentClass:{type:[String,Array,Object],default:""},showCloseButton:{type:Boolean,default:!1},closeButtonProps:{type:Object,default:()=>{}}},emits:["close"],methods:{focusCloseButton(){var e;const t=(e=this.$refs["popover__close-button"])==null?void 0:e.$el;t==null||t.focus()}}};var Xd=function(){var e=this,n=e._self._c;return n("div",{class:{"d-popover__header":e.type==="header","d-popover__footer":e.type==="footer"},attrs:{"data-qa":"dt-popover-header-footer"}},[e.$slots.content?n("div",{class:["d-to-ellipsis","d-w100p",e.contentClass],attrs:{"data-qa":"dt-popover-header-footer-content"}},[e._t("content")],2):e._e(),e.showCloseButton?n("dt-button",e._b({ref:"popover__close-button",staticClass:"d-p6 d-mr6 d-bc-transparent",attrs:{"data-qa":"dt-popover-close",importance:"outlined",kind:"muted",circle:""},on:{click:function(i){return e.$emit("close")}},scopedSlots:e._u([{key:"icon",fn:function(){return[n("dt-icon",{attrs:{name:"close",size:"300"}})]},proxy:!0}],null,!1,2538694920)},"dt-button",e.closeButtonProps,!1)):e._e()],1)},Qd=[],Jd=_.normalizeComponent(Zd,Xd,Qd,!1,null,null,null,null);const ec=Jd.exports;const tc={name:"DtPopover",components:{SrOnlyCloseButton:Ut,DtLazyShow:Qe,PopoverHeaderFooter:ec,Portal:Qn},mixins:[_t,ge],props:{open:{type:Boolean,default:null},openOnContext:{type:Boolean,default:!1},elementType:{type:String,default:"div"},transition:{type:String,default:"fade"},role:{type:String,default:"dialog",validator:t=>Ms.includes(t)},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null},closeButtonProps:{type:Object,default:()=>({})},padding:{type:String,default:"large",validator:t=>Object.keys(Tn).some(e=>e===t)},contentClass:{type:[String,Array,Object],default:""},contentWidth:{type:String,default:"",validator:t=>Xn.includes(t)},contentTabindex:{type:Number||null,default:-1},externalAnchor:{type:String,default:""},id:{type:String,default(){return V()}},offset:{type:Array,default:()=>[0,4]},hideOnClick:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},fallbackPlacements:{type:Array,default:()=>["auto"]},placement:{type:String,default:"bottom-end"},tether:{type:Boolean,default:!0},sticky:{type:[Boolean,String],default:!1,validator:t=>qd.includes(t)},maxHeight:{type:String,default:""},maxWidth:{type:String,default:""},showCloseButton:{type:Boolean,default:!1},headerClass:{type:[String,Array,Object],default:""},footerClass:{type:[String,Array,Object],default:""},dialogClass:{type:[String,Array,Object],default:""},initialFocusElement:{type:[String,HTMLElement],default:"first",validator:t=>Fs.includes(t)||t instanceof HTMLElement||t.startsWith("#")},openWithArrowKeys:{type:Boolean,default:!1},appendTo:{type:[HTMLElement,String],default:"body",validator:t=>Zt.includes(t)||t instanceof HTMLElement}},emits:["opened","update:open"],data(){return{POPOVER_PADDING_CLASSES:Tn,POPOVER_HEADER_FOOTER_PADDING_CLASSES:Bs,intersectionObserver:null,isOutsideViewport:!1,isOpen:!1,anchorEl:null,popoverContentEl:null}},computed:{popoverListeners(){return{...this.$listeners,keydown:t=>{this.onKeydown(t),this.$emit("keydown",t)},"after-leave":t=>{this.onLeaveTransitionComplete()},"after-enter":t=>{this.onEnterTransitionComplete()}}},calculatedMaxHeight(){return this.isOutsideViewport&&this.modal?"calc(100vh - var(--space-300))":this.maxHeight},labelledBy(){return this.ariaLabelledby||!this.ariaLabel&&V("DtPopover__anchor")}},watch:{$props:{immediate:!0,deep:!0,handler(){this.validateProps()}},modal(t){var e;(e=this.tip)==null||e.setProps({zIndex:t?650:this.calculateAnchorZindex()})},offset(t){var e;(e=this.tip)==null||e.setProps({offset:t})},sticky(t){var e;(e=this.tip)==null||e.setProps({sticky:t})},fallbackPlacements(){var t;(t=this.tip)==null||t.setProps({popperOptions:this.popperOptions()})},tether(){var t;(t=this.tip)==null||t.setProps({popperOptions:this.popperOptions()})},placement(t){var e;(e=this.tip)==null||e.setProps({placement:t})},open:{handler:function(t){t!==null&&(this.isOpen=t)},immediate:!0},isOpen(t,e){t?(this.initTippyInstance(),this.tip.show()):!t&&e!==t&&(this.removeEventListeners(),this.tip.hide())}},mounted(){const t=this.externalAnchor?this.$refs.anchor.getRootNode().querySelector(`#${this.externalAnchor}`):null;this.anchorEl=t??this.$refs.anchor.children[0],this.popoverContentEl=this.$refs.content.$el,this.isOpen&&(this.initTippyInstance(),this.tip.show()),this.intersectionObserver=new IntersectionObserver(this.hasIntersectedViewport),this.intersectionObserver.observe(this.popoverContentEl)},beforeDestroy(){var t;(t=this.tip)==null||t.destroy(),this.intersectionObserver.disconnect(),this.removeReferences(),this.removeEventListeners()},methods:{hasIntersectedViewport(t){var i;const e=(i=t==null?void 0:t[0])==null?void 0:i.target;if(!e)return;const n=Zi(e);this.isOutsideViewport=n.bottom||n.top},popperOptions(){return Ns({fallbackPlacements:this.fallbackPlacements,tether:this.tether,hasHideModifierEnabled:!0})},validateProps(){this.modal&&this.initialFocusElement==="none"&&console.error('If the popover is modal you must set the initialFocusElement prop. Possible values: "dialog", "first", HTMLElement')},calculateAnchorZindex(){var t;return this.$el.getRootNode().querySelector('.d-modal[aria-hidden="false"], .d-modal--transparent[aria-hidden="false"]')||(t=this.anchorEl)!=null&&t.closest(".d-zi-drawer")?650:300},defaultToggleOpen(t){var e,n;this.openOnContext||(this.open??((e=this.anchorEl)!=null&&e.contains(t.target)&&!((n=this.anchorEl)!=null&&n.disabled)&&this.toggleOpen()))},async onContext(t){this.openOnContext&&(t.preventDefault(),this.isOpen=!0,await this.$nextTick(),this.tip.setProps({placement:"right-start",getReferenceClientRect:()=>({width:0,height:0,top:t.clientY,bottom:t.clientY,left:t.clientX,right:t.clientX})}))},toggleOpen(){this.isOpen=!this.isOpen},onArrowKeyPress(t){var e;this.open===null&&this.openWithArrowKeys&&(e=this.anchorEl)!=null&&e.contains(t.target)&&(this.isOpen||(this.isOpen=!0))},addEventListeners(){window.addEventListener("dt-popover-close",this.closePopover),this.contentWidth==="anchor"&&window.addEventListener("resize",this.onResize)},removeEventListeners(){window.removeEventListener("dt-popover-close",this.closePopover),this.contentWidth==="anchor"&&window.removeEventListener("resize",this.onResize)},closePopover(){this.isOpen=!1},preventScrolling(){var t;if(this.modal){const e=(t=this.anchorEl)==null?void 0:t.closest("body, .tippy-box");e.tagName.toLowerCase()==="body"?(e.classList.add("d-of-hidden"),this.tip.setProps({offset:this.offset})):e.classList.add("d-zi-popover")}},enableScrolling(){var e,n;const t=(e=this.anchorEl)==null?void 0:e.closest("body, .tippy-box");t&&(((n=t.tagName)==null?void 0:n.toLowerCase())==="body"?(t.classList.remove("d-of-hidden"),this.tip.setProps({offset:this.offset})):t.classList.remove("d-zi-popover"))},removeReferences(){this.anchorEl=null,this.popoverContentEl=null,this.tip=null},async onShow(){this.contentWidth==="anchor"&&await this.setPopoverContentAnchorWidth(),this.contentWidth===null&&(this.popoverContentEl.style.width="auto"),this.addEventListeners()},async onLeaveTransitionComplete(){var t;this.modal&&(await this.focusFirstElement(this.$refs.anchor),await this.$nextTick(),this.enableScrolling()),(t=this.tip)==null||t.unmount(),this.$emit("opened",!1),this.open!==null&&this.$emit("update:open",!1)},async onEnterTransitionComplete(){this.focusInitialElement(),await this.$nextTick(),this.preventScrolling(),this.$emit("opened",!0,this.$refs.popover__content),this.open!==null&&this.$emit("update:open",!0)},focusInitialElement(){this.initialFocusElement==="dialog"&&this.$refs.content.$el.focus(),this.initialFocusElement.startsWith("#")&&this.focusInitialElementById(),this.initialFocusElement==="first"&&this.focusFirstElementIfNeeded(this.$refs.popover__content),this.initialFocusElement instanceof HTMLElement&&this.initialFocusElement.focus()},focusInitialElementById(){var e,n,i;const t=(n=(e=this.$refs.content)==null?void 0:e.$el)==null?void 0:n.querySelector(this.initialFocusElement);t?t.focus():console.warn('Could not find the element specified in dt-popover prop "initialFocusElement". Defaulting to focusing the dialog.'),t?t.focus():(i=this.$refs.content)==null||i.$el.focus()},onResize(){this.closePopover()},onClickOutside(){if(!this.hideOnClick)return;this.popoverContentEl.querySelector(".d-popover__anchor--opened")||this.closePopover()},onKeydown(t){t.key==="Tab"&&this.modal&&this.focusTrappedTabPress(t,this.popoverContentEl),t.key==="Escape"&&this.closePopover()},async setPopoverContentAnchorWidth(){var t;await this.$nextTick(),this.popoverContentEl.style.width=`${(t=this.anchorEl)==null?void 0:t.clientWidth}px`},focusFirstElementIfNeeded(t){var n,i;this._getFocusableElements(t,!0).length!==0?this.focusFirstElement(t):this.showCloseButton?(n=this.$refs.popover__header)==null||n.focusCloseButton():(i=this.$refs.content)==null||i.$el.focus()},initTippyInstance(){var t,e;this.tip=Ps(this.anchorEl,{popperOptions:this.popperOptions(),contentElement:this.popoverContentEl,placement:this.placement,offset:this.offset,sticky:this.sticky,appendTo:this.appendTo==="body"?(e=(t=this.anchorEl)==null?void 0:t.getRootNode())==null?void 0:e.querySelector("body"):this.appendTo,interactive:!0,trigger:"manual",hideOnClick:!1,zIndex:this.modal?650:this.calculateAnchorZindex(),onClickOutside:this.onClickOutside,onShow:this.onShow})}}};var nc=function(){var e=this,n=e._self._c;return n("div",[e.modal&&e.isOpen?n("portal",[n("div",{staticClass:"d-modal--transparent",attrs:{"aria-hidden":e.modal&&e.isOpen?"false":"true"},on:{click:function(i){i.preventDefault(),i.stopPropagation()}}})]):e._e(),n(e.elementType,e._g({ref:"popover",tag:"component",class:["d-popover",{"d-popover__anchor--opened":e.isOpen}],attrs:{"data-qa":"dt-popover-container"}},e.$listeners),[n("div",{ref:"anchor",attrs:{id:!e.ariaLabelledby&&e.labelledBy,"data-qa":"dt-popover-anchor",tabindex:e.openOnContext?0:void 0},on:{"!click":function(i){return e.defaultToggleOpen.apply(null,arguments)},contextmenu:e.onContext,keydown:[function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"up",38,i.key,["Up","ArrowUp"])?null:(i.preventDefault(),e.onArrowKeyPress.apply(null,arguments))},function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"down",40,i.key,["Down","ArrowDown"])?null:(i.preventDefault(),e.onArrowKeyPress.apply(null,arguments))}],"!keydown":function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"escape",void 0,i.key,void 0)?null:e.closePopover.apply(null,arguments)}}},[e._t("anchor",null,{attrs:{"aria-expanded":e.isOpen.toString(),"aria-controls":e.id,"aria-haspopup":e.role}})],2),n("dt-lazy-show",e._g({ref:"content",class:["d-popover__dialog",{"d-popover__dialog--modal":e.modal},e.dialogClass],style:{"max-height":e.calculatedMaxHeight,"max-width":e.maxWidth},attrs:{id:e.id,role:e.role,"data-qa":"dt-popover","aria-hidden":`${!e.isOpen}`,"aria-labelledby":e.labelledBy,"aria-label":e.ariaLabel,"aria-modal":`${!e.modal}`,transition:e.transition,show:e.isOpen,tabindex:e.contentTabindex,appear:""}},e.popoverListeners),[e.$slots.headerContent||e.showCloseButton?n("popover-header-footer",{ref:"popover__header",class:e.POPOVER_HEADER_FOOTER_PADDING_CLASSES[e.padding],attrs:{"content-class":e.headerClass,type:"header","show-close-button":e.showCloseButton,"close-button-props":e.closeButtonProps},on:{close:e.closePopover},scopedSlots:e._u([{key:"content",fn:function(){return[e._t("headerContent",null,{close:e.closePopover})]},proxy:!0}],null,!0)}):e._e(),n("div",{ref:"popover__content",class:["d-popover__content",e.POPOVER_PADDING_CLASSES[e.padding],e.contentClass],attrs:{"data-qa":"dt-popover-content"}},[e._t("content",null,{close:e.closePopover})],2),e.$slots.footerContent?n("popover-header-footer",{ref:"popover__footer",class:e.POPOVER_HEADER_FOOTER_PADDING_CLASSES[e.padding],attrs:{type:"footer","content-class":e.footerClass},scopedSlots:e._u([{key:"content",fn:function(){return[e._t("footerContent",null,{close:e.closePopover})]},proxy:!0}],null,!0)}):e._e(),e.showVisuallyHiddenClose?n("sr-only-close-button",{attrs:{"visually-hidden-close-label":e.visuallyHiddenCloseLabel},on:{close:e.closePopover}}):e._e()],1)],1)],1)},ic=[],sc=_.normalizeComponent(tc,nc,ic,!1,null,null,null,null);const Xt=sc.exports,lt={none:void 0,small:"d-py0",large:"d-py4"};const ac={name:"DtDropdown",components:{DtPopover:Xt,SrOnlyCloseButton:Ut},mixins:[Hn({indexKey:"highlightIndex",idKey:"highlightId",listElementKey:"getListElement",listItemRole:"menuitem",afterHighlightMethod:"afterHighlight",beginningOfListMethod:"beginningOfListMethod",endOfListMethod:"endOfListMethod",activeItemKey:"activeItemEl",focusOnKeyboardNavigation:!0}),ge],props:{open:{type:Boolean,default:null},openOnContext:{type:Boolean,default:!1},padding:{type:String,default:"small",validator:t=>Object.keys(lt).some(e=>e===t)},modal:{type:Boolean,default:!0},contentWidth:{type:String,default:null},maxHeight:{type:String,default:""},maxWidth:{type:String,default:""},listId:{type:String,default(){return V()}},navigationType:{type:String,default:$e.ARROW_KEYS,validator:t=>Object.values($e).includes(t)},fallbackPlacements:{type:Array,default:()=>["auto"]},placement:{type:String,default:"bottom"},onBeginningOfList:{type:Function,default:null},onEndOfList:{type:Function,default:null},listClass:{type:[String,Array,Object],default:""},appendTo:{type:[HTMLElement,String],default:"body",validator:t=>Zt.includes(t)||t instanceof HTMLElement},tether:{type:Boolean,default:!0},transition:{type:String,default:"fade"}},emits:["highlight","opened","update:open"],data(){return{LIST_ITEM_NAVIGATION_TYPES:$e,DROPDOWN_PADDING_CLASSES:lt,EVENT_KEYNAMES:H,openedWithKeyboard:!1,isOpen:null}},computed:{dropdownListeners(){return{...this.$listeners,opened:t=>{this.updateInitialHighlightIndex(t)},keydown:t=>{switch(t.code){case H.up:case H.arrowup:this.onUpKeyPress(t),t.stopPropagation(),t.preventDefault();break;case H.down:case H.arrowdown:this.onDownKeyPress(t),t.stopPropagation(),t.preventDefault();break;case H.space:case H.spacebar:this.onSpaceKey();break;case H.enter:this.onEnterKey();break;case H.home:this.onHomeKeyPress(t),t.stopPropagation(),t.preventDefault();break;case H.end:this.onEndKeyPress(t),t.stopPropagation(),t.preventDefault();break;default:this.onKeyPress(t);break}this.$emit("keydown",t)}}},beginningOfListMethod(){return this.onBeginningOfList||this.jumpToEnd},endOfListMethod(){return this.onEndOfList||this.jumpToBeginning},activeItemEl(){return this.getListElement().querySelector("#"+this.highlightId)},isArrowKeyNav(){return this.navigationType===this.LIST_ITEM_NAVIGATION_TYPES.ARROW_KEYS},listClasses(){return["d-ps-relative","d-stack2","d-m4","d-px0",lt[this.padding],this.listClass,{"d-context-menu-list":this.openOnContext}]},shouldOpenWithArrowKeys(){return!this.openOnContext}},methods:{onMouseHighlight(t){const e=t.target.closest("li");e&&e.role&&this.highlightId!==e.id&&(this.setHighlightId(e.id),e.focus())},getListElement(){return this.$refs.listWrapper},clearHighlightIndex(){this.setHighlightIndex(-1)},afterHighlight(){this.visuallyHiddenClose&&this.highlightIndex===this._itemsLength()-1||this.$emit("highlight",this.highlightIndex)},updateInitialHighlightIndex(t){this.isOpen=t,t?(this.openedWithKeyboard&&this.isArrowKeyNav&&this.setHighlightIndex(0),this.$emit("opened",!0)):(this.clearHighlightIndex(),this.openedWithKeyboard=!1,this.$emit("opened",!1))},onSpaceKey(){this.open||(this.openedWithKeyboard=!0)},onEnterKey(){this.open||(this.openedWithKeyboard=!0)},onUpKeyPress(){if(!this.isOpen){this.openedWithKeyboard=!0;return}if(this.isArrowKeyNav)return this.onUpKey()},onDownKeyPress(){if(!this.isOpen){this.openedWithKeyboard=!0;return}if(this.isArrowKeyNav)return this.onDownKey()},onHomeKeyPress(){if(!(!this.isOpen||!this.isArrowKeyNav))return this.onHomeKey()},onEndKeyPress(){if(!(!this.isOpen||!this.isArrowKeyNav))return this.onEndKey()},onKeyPress(t){if(!(!this.isOpen||!this.isArrowKeyNav||!this.isValidCharacter(t.key)))return t.stopPropagation(),t.preventDefault(),this.onNavigationKey(t.key)}}};var rc=function(){var e=this,n=e._self._c;return n("dt-popover",e._g({ref:"popover",attrs:{"content-width":e.contentWidth,open:e.open,placement:e.placement,"initial-focus-element":e.openedWithKeyboard?"first":"dialog","fallback-placements":e.fallbackPlacements,padding:"none",role:"menu","append-to":e.appendTo,modal:e.modal,"max-height":e.maxHeight,"max-width":e.maxWidth,"open-with-arrow-keys":e.shouldOpenWithArrowKeys,"open-on-context":e.openOnContext,tether:e.tether,transition:e.transition},scopedSlots:e._u([{key:"anchor",fn:function({attrs:i}){return[e._t("anchor",null,null,i)]}},{key:"content",fn:function({close:i}){return[n("ul",{ref:"listWrapper",class:e.listClasses,attrs:{id:e.listId,"data-qa":"dt-dropdown-list-wrapper"},on:{mouseleave:e.clearHighlightIndex,"!mousemove":function(a){return e.onMouseHighlight.apply(null,arguments)}}},[e._t("list",null,{close:i}),e.showVisuallyHiddenClose?n("sr-only-close-button",{attrs:{"visually-hidden-close-label":e.visuallyHiddenCloseLabel,tabindex:e.isArrowKeyNav?-1:0},on:{close:i}}):e._e()],2)]}}],null,!0)},e.dropdownListeners))},oc=[],lc=_.normalizeComponent(ac,rc,oc,!1,null,null,null,null);const js=lc.exports;const dc={name:"DtDropdownSeparator"};var cc=function(){var e=this,n=e._self._c;return n("li",{staticClass:"dt-list-separator d-my4 d-mxn4",attrs:{"aria-hidden":"true"}})},uc=[],pc=_.normalizeComponent(dc,cc,uc,!1,null,null,null,null);const fc=pc.exports,hc={name:"DtImageViewer",components:{Portal:Qn,DtButton:q,DtIcon:M},mixins:[_t],props:{open:{type:Boolean,default:null},imageSrc:{type:String,required:!0},imageAlt:{type:String,required:!0},imageButtonClass:{type:String,required:!1,default:""},ariaLabel:{type:String,required:!0},closeAriaLabel:{type:String,required:!0}},emits:["opened","update:open"],data(){return{showCloseButton:!0,isOpen:!1}},computed:{modalListeners(){return{...this.$listeners,click:t=>{t.target===t.currentTarget&&this.close()},keydown:t=>{switch(t.code){case H.esc:case H.escape:this.close();break;case H.tab:this.trapFocus(t);break}}}}},watch:{isOpen:{immediate:!0,handler(t){var e;t?this.previousActiveElement=document.activeElement:((e=this.previousActiveElement)==null||e.focus(),this.previousActiveElement=null)}},open:{handler:function(t){t!==null&&(this.isOpen=t)},immediate:!0}},methods:{openModal(){this.open===null&&(this.isOpen=!0,this.showCloseButton=!0,this.$emit("opened",!0),setTimeout(()=>{this.focusAfterOpen()}))},close(){this.isOpen=!1,this.$emit("opened",!1),this.open!==null&&this.$emit("update:open",!1)},focusAfterOpen(){var t;(t=this.$refs.closeImage)==null||t.$el.focus()},trapFocus(t){this.isOpen&&this.focusTrappedTabPress(t)}}};var mc=function(){var e=this,n=e._self._c;return n("div",[n("dt-button",{staticClass:"d-p0 d-c-zoom-in",attrs:{"data-qa":"dt-image-viewer-preview","aria-label":e.ariaLabel,importance:"clear"},on:{click:e.openModal}},[n("img",{class:e.imageButtonClass,attrs:{src:e.imageSrc,alt:e.imageAlt}})]),e.isOpen?n("portal",[n("div",e._g({staticClass:"d-modal",attrs:{"aria-hidden":e.isOpen?"false":"true","data-qa":"dt-modal"},on:{mouseover:function(i){e.showCloseButton=!0},mouseleave:function(i){e.showCloseButton=!1},focusin:function(i){e.showCloseButton=!0},focusout:function(i){e.showCloseButton=!1}}},e.modalListeners),[n("div",{staticClass:"d-p0 d-bar0 d-wmx80p d-hmx80p",attrs:{"data-qa":"dt-image-viewer-full",role:"dialog","aria-modal":"true"}},[n("img",{staticClass:"d-wmx100p d-hmx100p",attrs:{src:e.imageSrc,alt:e.imageAlt}})]),n("transition",{attrs:{name:"fade"}},[e.showCloseButton?n("dt-button",{ref:"closeImage",staticClass:"d-modal__close",attrs:{"data-qa":"dt-image-viewer-close-btn",circle:"",size:"lg",importance:"clear",kind:"inverted","aria-label":e.closeAriaLabel},on:{click:e.close},scopedSlots:e._u([{key:"icon",fn:function(){return[n("dt-icon",{attrs:{name:"close",size:"400"}})]},proxy:!0}],null,!1,1709155279)}):e._e()],1)],1)]):e._e()],1)},_c=[],gc=_.normalizeComponent(hc,mc,_c,!1,null,null,null,null);const vc=gc.exports,zt={TEXT:"text",TEXTAREA:"textarea",PASSWORD:"password",EMAIL:"email",NUMBER:"number",DATE:"date",TIME:"time"},qe={EXTRA_SMALL:"xs",SMALL:"sm",DEFAULT:"md",LARGE:"lg",EXTRA_LARGE:"xl"};function St(t){return t?t.every(e=>typeof e=="string"?!0:typeof e=="object"?Object.values(ee).includes(e==null?void 0:e.type):!1):!0}const bc={name:"DtValidationMessages",props:{id:{type:String,default(){return V()}},validationMessages:{type:Array,default:()=>[],validator:t=>St(t)},showMessages:{type:Boolean,default:!0}},computed:{isFilteredValidationMessagesEmpty(){return this.filteredValidationMessages.length===0},filteredValidationMessages(){return Fn(this.validationMessages)},validationState(){return Ce(this.validationMessages)}},methods:{getMessageKey(t,e){return`validation-message-${t}-${e}-${this.id}`},messageTypeClass(t){return{error:"base-input__message--error d-validation-message--error",warning:"base-input__message--warning d-validation-message--warning",success:"base-input__message--success d-validation-message--success"}[t]}}};var yc=function(){var e=this,n=e._self._c;return e.showMessages&&!e.isFilteredValidationMessagesEmpty?n("div",{staticClass:"base-input__messages d-d-flex d-fd-column",attrs:{"data-qa":"validation-messages-container"}},e._l(e.filteredValidationMessages,function({message:i,type:a},o){return n("div",{key:e.getMessageKey(a,o),class:["base-input__message","d-validation-message",e.messageTypeClass(a)],attrs:{role:"status","aria-live":"polite","data-qa":"validation-message"}},[n("p",{domProps:{innerHTML:e._s(i)}})])}),0):e._e()},Sc=[],Cc=_.normalizeComponent(bc,yc,Sc,!1,null,null,null,null);const we=Cc.exports,Jn={inheritAttrs:!1,props:{label:{type:String,default:""},name:{type:String,default:""},value:{type:[String,Number,Boolean,Object],default:null},description:{type:String,default:""},disabled:{type:Boolean,default:!1},validationState:{type:String,default:"",validator:t=>t?Object.values(ee).includes(t):!0},inputClass:{type:[String,Array,Object],default:""},labelClass:{type:[String,Array,Object],default:""},descriptionClass:{type:[String,Array,Object],default:""},labelChildProps:{type:Object,default:()=>({})},descriptionChildProps:{type:Object,default:()=>({})}},data(){return{internalDisabled:this.disabled,internalValidationState:this.validationState}},watch:{disabled(t){this.internalDisabled=t},validationState(t){this.internalValidationState=t}},methods:{validateInputLabels(t,e){!t&&!e&&X.util.warn("You must provide an aria-label when there is no label passed",this)}}},ei={model:{prop:"checked"},props:{checked:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1},value:{type:[String,Number,Boolean],default:null}},data(){return{internalChecked:this.checked,internalIndeterminate:this.indeterminate}},watch:{checked(t){this.internalChecked=t},indeterminate(t){this.internalIndeterminate=t}}},ti={inject:{groupContext:{default:{}},setGroupValue:{default:()=>()=>{}}},data(){return{internalValue:this.value}},computed:{hasGroup(){return Object.prototype.hasOwnProperty.call(this.groupContext,"name")},groupName(){var t;return((t=this.groupContext)==null?void 0:t.name)??""},groupValue(){var t;return(t=this.groupContext)==null?void 0:t.value},groupDisabled(){var t;return((t=this.groupContext)==null?void 0:t.disabled)??!1},groupValidationState(){var t;return((t=this.groupContext)==null?void 0:t.validationState)??null},internalName(){return this.name||this.groupName}},watch:{value(t){this.internalValue=t},groupValue:{immediate:!0,handler(t){this.hasGroup&&(this.internalValue=t)}},groupDisabled:{immediate:!0,handler(t){this.hasGroup&&(this.internalDisabled=this.disabled||t)}},groupValidationState:{immediate:!0,handler(t){this.hasGroup&&(this.internalValidationState=t||this.validationState)}}},created(){var n;const t=Object.prototype.hasOwnProperty.call(this.groupContext,"name"),e=(n=this.groupContext)==null?void 0:n.name;this.name&&t&&e!==this.name&&X.util.warn(`Component is being used inside a Group. Did you mean to override the name prop value (${e}) with (${this.name})? It is recommended to only set name at the Group level.`,this)}},Qt={props:{messagesClass:{type:[String,Array,Object],default:""},messagesChildProps:{type:Object,default:()=>({})},showMessages:{type:Boolean,default:!0},messages:{type:Array,default:()=>[],validator:t=>St(t)}},computed:{formattedMessages(){return dt(this.messages)}}},xc={name:"DtInput",components:{DtValidationMessages:we},mixins:[Qt],inheritAttrs:!1,props:{name:{type:String,default:""},type:{type:String,default:zt.TEXT,validator:t=>Object.values(zt).includes(t)},value:{type:[String,Number],default:""},disabled:{type:Boolean,default:!1},label:{type:String,default:""},labelVisible:{type:Boolean,default:!0},description:{type:String,default:""},size:{type:String,default:null,validator:t=>Object.values(qe).includes(t)},iconSize:{type:String,default:null,validator:t=>Object.values(qe).includes(t)},inputClass:{type:[String,Object,Array],default:""},inputWrapperClass:{type:[String,Object,Array],default:""},currentLength:{type:Number,default:null},retainWarning:{type:Boolean,default:!1},validate:{type:Object,default:null}},emits:["input","blur","clear","focus","focusin","focusout","update:length","update:invalid"],data(){return{descriptionSizeClasses:{lg:"d-description--lg",xl:"d-description--xl"},labelSizeClasses:{xs:"d-label--xs",sm:"d-label--sm",md:"d-label--md",lg:"d-label--lg",xl:"d-label--xl"},isInputFocused:!1,isInvalid:!1,defaultLength:0}},computed:{isTextarea(){return this.type===zt.TEXTAREA},isDefaultSize(){return this.size===qe.DEFAULT},isDefaultIconSize(){return this.iconSizeComputed===qe.DEFAULT},iconSizeComputed(){return this.iconSize?this.iconSize:this.size},isValidSize(){return Object.values(qe).includes(this.size)},isValidDescriptionSize(){return Object.values(Gi).includes(this.size)},inputComponent(){return this.isTextarea?"textarea":"input"},inputListeners(){return{...this.$listeners,input:t=>this.$emit("input",t.target.value),focus:t=>{this.isInputFocused=!0,this.$emit("focus",t)},blur:t=>{this.isInputFocused=!1,this.onBlur(t)}}},descriptionKey(){return`input-description-${V()}`},inputState(){return Ce(this.validationMessages)},defaultLengthCalculation(){return this.calculateLength(this.value)},validationProps(){var t,e,n,i,a,o,p,c,s,u;return{length:{description:(e=(t=this==null?void 0:this.validate)==null?void 0:t.length)==null?void 0:e.description,max:(i=(n=this==null?void 0:this.validate)==null?void 0:n.length)==null?void 0:i.max,warn:(o=(a=this==null?void 0:this.validate)==null?void 0:a.length)==null?void 0:o.warn,message:(c=(p=this==null?void 0:this.validate)==null?void 0:p.length)==null?void 0:c.message,limitMaxLength:(u=(s=this==null?void 0:this.validate)==null?void 0:s.length)!=null&&u.limitMaxLength?this.validate.length.limitMaxLength:!1}}},validationMessages(){return this.showLengthLimitValidation?this.formattedMessages.concat([this.inputLengthErrorMessage()]):this.formattedMessages},showInputState(){return this.showMessages&&this.inputState},inputLength(){return this.currentLength?this.currentLength:this.defaultLengthCalculation},inputLengthState(){return this.inputLength<this.validationProps.length.warn?null:this.inputLength<=this.validationProps.length.max?this.validationProps.length.warn?ee.WARNING:null:ee.ERROR},shouldValidateLength(){return!!(this.validationProps.length.description&&this.validationProps.length.max)},shouldLimitMaxLength(){return this.shouldValidateLength&&this.validationProps.length.limitMaxLength},showLengthLimitValidation(){return this.shouldValidateLength&&this.inputLengthState!==null&&this.validationProps.length.message&&(this.retainWarning||this.isInputFocused||this.isInvalid)},sizeModifierClass(){return this.isDefaultSize||!this.isValidSize?"":{input:{xs:"d-input--xs",sm:"d-input--sm",lg:"d-input--lg",xl:"d-input--xl"},textarea:{xs:"d-textarea--xs",sm:"d-textarea--sm",lg:"d-textarea--lg",xl:"d-textarea--xl"}}[this.inputComponent][this.size]},stateClass(){return[{input:{error:"d-input--error base-input__input--error",warning:"d-input--warning base-input__input--warning",success:"d-input--success base-input__input--success"},textarea:{error:"d-textarea--error base-input__input--error",warning:"d-textarea--warning base-input__input--warning",success:"d-textarea--success base-input__input--success"}}[this.inputComponent][this.inputState]]}},watch:{isInvalid(t){this.$emit("update:invalid",t)},value:{immediate:!0,handler(t){this.shouldValidateLength&&this.validateLength(this.inputLength),this.currentLength==null&&this.$emit("update:length",this.calculateLength(t))}}},methods:{inputClasses(){return["base-input__input",this.inputComponent==="input"?"d-input":"d-textarea",{[this.stateClass]:this.showInputState,"d-input-icon--left":this.$slots.leftIcon,"d-input-icon--right":this.$slots.rightIcon},this.sizeModifierClass,this.inputClass]},inputWrapperClasses(){return["d-input__wrapper",{[this.stateClass]:this.showInputState},this.inputWrapperClass]},calculateLength(t){return typeof t!="string"?0:[...t].length},inputLengthErrorMessage(){return{message:this.validationProps.length.message,type:this.inputLengthState}},inputIconClasses(t){const e={xs:"d-input-icon--xs",sm:"d-input-icon--sm",lg:"d-input-icon--lg",xl:"d-input-icon--xl"};return[{left:"base-input__icon--left d-input-icon--left",right:"base-input__icon--right d-input-icon--right"}[t],"d-input-icon",{[e[this.iconSizeComputed]]:!this.isDefaultIconSize},this.sizeModifierClass]},onBlur(t){var e;(e=this.$refs.container)!=null&&e.contains(t.relatedTarget)||this.$emit("blur",t)},clear(){this.$emit("input",""),this.$emit("clear")},blur(){this.$refs.input.blur()},focus(){this.$refs.input.focus()},select(){this.$refs.input.select()},getMessageKey(t,e){return`message-${t}-${e}`},validateLength(t){this.isInvalid=t>this.validationProps.length.max}}};var wc=function(){var e=this,n=e._self._c;return n("div",{ref:"container",staticClass:"base-input",attrs:{"data-qa":"dt-input"}},[n("label",{staticClass:"base-input__label",attrs:{"aria-details":e.$slots.description||e.description?e.descriptionKey:void 0,"data-qa":"dt-input-label-wrapper"}},[e._t("labelSlot",function(){return[e.labelVisible&&e.label?n("div",{ref:"label",class:["base-input__label-text","d-label",e.labelSizeClasses[e.size]],attrs:{"data-qa":"dt-input-label"}},[e._v(" "+e._s(e.label)+" ")]):e._e()]}),e.$slots.description||e.description||e.shouldValidateLength?n("div",{ref:"description",class:["base-input__description","d-description","d-fd-column",e.descriptionSizeClasses[e.size]],attrs:{id:e.descriptionKey,"data-qa":"dt-input-description"}},[e.$slots.description||e.description?n("div",[e._t("description",function(){return[e._v(e._s(e.description))]})],2):e._e(),e.shouldValidateLength?n("div",{class:["d-mb2"],attrs:{"data-qa":"dt-input-length-description"}},[e._v(" "+e._s(e.validationProps.length.description)+" ")]):e._e()]):e._e(),n("div",{class:e.inputWrapperClasses(),attrs:{"read-only":e.disabled}},[e.$slots.leftIcon?n("span",{class:e.inputIconClasses("left"),attrs:{"data-qa":"dt-input-left-icon-wrapper"},on:{focusout:e.onBlur}},[e._t("leftIcon")],2):e._e(),e.isTextarea?n("textarea",e._g(e._b({ref:"input",class:e.inputClasses(),attrs:{name:e.name,disabled:e.disabled,maxlength:e.shouldLimitMaxLength?e.validationProps.length.max:null,"data-qa":"dt-input-input"},domProps:{value:e.value}},"textarea",e.$attrs,!1),e.inputListeners)):n("input",e._g(e._b({ref:"input",class:e.inputClasses(),attrs:{name:e.name,type:e.type,disabled:e.disabled,maxlength:e.shouldLimitMaxLength?e.validationProps.length.max:null,"data-qa":"dt-input-input"},domProps:{value:e.value}},"input",e.$attrs,!1),e.inputListeners)),e.$slots.rightIcon?n("span",{class:e.inputIconClasses("right"),attrs:{"data-qa":"dt-input-right-icon-wrapper"},on:{focusout:e.onBlur}},[e._t("rightIcon")],2):e._e()])],2),n("dt-validation-messages",e._b({class:e.messagesClass,attrs:{"validation-messages":e.validationMessages,"show-messages":e.showMessages,"data-qa":"dt-input-messages"}},"dt-validation-messages",e.messagesChildProps,!1))],1)},Ec=[],Ic=_.normalizeComponent(xc,wc,Ec,!1,null,null,null,null);const zs=Ic.exports,Hs={components:{DtValidationMessages:we},provide(){return{groupContext:this.provideObj,setGroupValue:this.setGroupValue}},props:{id:{type:String,default(){return V()}},value:{type:[String,Number,Boolean,Object],default:null},name:{type:String,required:!0},legend:{type:String,default:""},disabled:{type:Boolean,default:!1},messages:{type:Array,default:()=>[],validator:t=>St(t)},showMessages:{type:Boolean,default:!0},legendClass:{type:[String,Array,Object],default:""},messagesClass:{type:[String,Array,Object],default:""},legendChildProps:{type:Object,default:()=>({})},messagesChildProps:{type:Object,default:()=>({})}},data(){const t=dt(this.messages);return{provideObj:{name:this.name,disabled:this.disabled,validationState:Ce(t)}}},computed:{formattedMessages(){return dt(this.messages)},validationState(){return Ce(this.formattedMessages)}},watch:{disabled(t){this.provideObj.disabled=t},validationState(t){this.provideObj.validationState=t}},methods:{setGroupValue(t){this.internalValue=t,this.$emit("input",t)}},mounted(){!this.legend&&!this.$slots.legend&&!this.$attrs["aria-label"]&&X.util.warn("It is expected that an aria-label is provided when there is no legend.",this)}},Oc={name:"DtInputGroup",components:{DtValidationMessages:we},mixins:[Hs],props:{dataQaGroup:{type:String,default:"input-group"},dataQaGroupLegend:{type:String,default:"input-group-legend"},dataQaGroupMessages:{type:String,default:"input-group-messages"}},emits:["input"],data(){return{internalValue:this.value,provideObj:{value:this.value}}},watch:{value(t){this.internalValue=t},internalValue(t){this.provideObj.value=t}},methods:{getMessageKey(t,e){return`input-group-message-${t}-${e}-${this.id}`}}};var Tc=function(){var e=this,n=e._self._c;return n("fieldset",{attrs:{"data-qa":e.dataQaGroup}},[e.$slots.legend||e.legend?n("legend",e._b({class:["d-label",e.legendClass],attrs:{"data-qa":e.dataQaGroupLegend}},"legend",e.legendChildProps,!1),[e._t("legend",function(){return[e._v(" "+e._s(e.legend)+" ")]})],2):e._e(),e._t("default"),n("dt-validation-messages",e._b({class:e.messagesClass,attrs:{"validation-messages":e.formattedMessages,"show-messages":e.showMessages,"data-qa":e.dataQaGroupMessages}},"dt-validation-messages",e.messagesChildProps,!1))],2)},Lc=[],Ac=_.normalizeComponent(Oc,Tc,Lc,!1,null,null,null,null);const ni=Ac.exports,Ln={default:"",danger:"d-modal--danger"},An={default:"",full:"d-modal--full"},Vi={error:"d-modal__banner--critical",info:"d-modal__banner--info",success:"d-modal__banner--success",warning:"d-modal__banner--warning",base:"d-modal__banner--general"},$c={name:"DtNotice",components:{DtNoticeIcon:Vn,DtNoticeContent:jn,DtNoticeAction:zn},mixins:[ge],props:{titleId:{type:String,default:void 0},contentId:{type:String,default:void 0},title:{type:String,default:""},role:{type:String,default:"status",validate(t){return fr.includes(t)}},important:{type:Boolean,default:!1},kind:{type:String,default:"base",validate(t){return Xe.includes(t)}},closeButtonProps:{type:Object,default:()=>({})},hideClose:{type:Boolean,default:!1}},emits:["close"],computed:{noticeClass(){return["d-notice",{error:"d-notice--error",info:"d-notice--info",success:"d-notice--success",warning:"d-notice--warning",base:"d-notice--base"}[this.kind],{"d-notice--important":this.important}]}}};var Dc=function(){var e=this,n=e._self._c;return n("aside",{class:e.noticeClass,attrs:{"data-qa":"notice"}},[n("dt-notice-icon",{attrs:{kind:e.kind}},[e._t("icon")],2),n("dt-notice-content",e._g({attrs:{"title-id":e.titleId,"content-id":e.contentId,title:e.title,role:e.role},scopedSlots:e._u([{key:"titleOverride",fn:function(){return[e._t("titleOverride")]},proxy:!0}],null,!0)},e.$listeners),[e._t("default")],2),n("dt-notice-action",e._g({attrs:{"hide-close":e.hideClose,"close-button-props":e.closeButtonProps,"visually-hidden-close":e.visuallyHiddenClose,"visually-hidden-close-label":e.visuallyHiddenCloseLabel}},e.$listeners),[e._t("action")],2)],1)},Rc=[],kc=_.normalizeComponent($c,Dc,Rc,!1,null,null,null,null);const Pc=kc.exports,Nc={name:"DtModal",components:{DtLazyShow:Qe,DtButton:q,DtIcon:M,SrOnlyCloseButton:Ut},mixins:[_t,ge],props:{closeButtonProps:{type:Object,required:!0,validator:t=>!!t.ariaLabel},copy:{type:String,default:""},describedById:{type:String,default:""},labelledById:{type:String,default:function(){return V()}},show:{type:Boolean,default:!1},title:{type:String,default:""},bannerTitle:{type:String,default:""},kind:{type:String,default:"default",validator:t=>Object.keys(Ln).includes(t)},size:{type:String,default:"default",validator:t=>Object.keys(An).includes(t)},modalClass:{type:[String,Object,Array],default:""},dialogClass:{type:[String,Object,Array],default:""},contentClass:{type:[String,Object,Array],default:""},bannerKind:{type:String,default:"warning",validate(t){return Xe.includes(t)}},bannerClass:{type:[String,Object,Array],default:""},hideClose:{type:Boolean,default:!1},closeOnClick:{type:Boolean,default:!0},fixedHeaderFooter:{type:Boolean,default:!0}},emits:["update:show"],data(){return{MODAL_KIND_MODIFIERS:Ln,MODAL_SIZE_MODIFIERS:An,MODAL_BANNER_KINDS:Vi,EVENT_KEYNAMES:H}},computed:{modalListeners(){return{...this.$listeners,click:t=>{this.closeOnClick&&(t.target===t.currentTarget&&this.close(),this.$emit("click",t))},keydown:t=>{switch(t.code){case H.esc:case H.escape:this.close();break;case H.tab:this.trapFocus(t);break}this.$emit("keydown",t)},"after-enter":t=>{t.target===t.currentTarget&&this.setFocusAfterTransition()}}},open(){return`${!this.show}`},hasFooterSlot(){return!!this.$slots.footer},bannerKindClass(){return Vi[this.bannerKind]}},watch:{show:{immediate:!0,handler(t){var e;t?this.previousActiveElement=document.activeElement:((e=this.previousActiveElement)==null||e.focus(),this.previousActiveElement=null)}},$props:{immediate:!0,deep:!0,handler(){this.validateProps()}}},methods:{close(){this.$emit("update:show",!1)},setFocusAfterTransition(){this.focusFirstElement()},trapFocus(t){this.show&&this.focusTrappedTabPress(t)},validateProps(){this.hideClose&&!this.visuallyHiddenClose&&console.error(`If hideClose prop is true, visuallyHiddenClose and visuallyHiddenCloseLabel props
|
|
30
30
|
need to be set so the component always includes a close button`)}}};var Bc=function(){var e=this,n=e._self._c;return n("dt-lazy-show",e._g({class:["d-modal",e.MODAL_KIND_MODIFIERS[e.kind],e.MODAL_SIZE_MODIFIERS[e.size],e.modalClass],attrs:{transition:"d-zoom",show:e.show,"data-qa":"dt-modal","aria-hidden":e.open}},e.modalListeners),[e.show&&(e.$slots.banner||e.bannerTitle)?n("div",{class:["d-modal__banner",e.bannerClass,e.bannerKindClass],attrs:{"data-qa":"dt-modal-banner"}},[e._t("banner",function(){return[e._v(" "+e._s(e.bannerTitle)+" ")]})],2):e._e(),n("transition",{attrs:{appear:"",name:"d-modal__dialog"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.show,expression:"show"}],class:["d-modal__dialog",{"d-modal__dialog--scrollable":e.fixedHeaderFooter},e.dialogClass],attrs:{role:"dialog","aria-modal":"true","aria-describedby":e.describedById,"aria-labelledby":e.labelledById}},[e.$slots.header?n("div",{staticClass:"d-modal__header",attrs:{id:e.labelledById,"data-qa":"dt-modal-title"}},[e._t("header")],2):n("h2",{staticClass:"d-modal__header",attrs:{id:e.labelledById,"data-qa":"dt-modal-title"}},[e._v(" "+e._s(e.title)+" ")]),e.$slots.default?n("div",{class:["d-modal__content",e.contentClass],attrs:{"data-qa":"dt-modal-copy"}},[e._t("default")],2):n("p",{class:["d-modal__content",e.contentClass],attrs:{"data-qa":"dt-modal-copy"}},[e._v(" "+e._s(e.copy)+" ")]),e.hasFooterSlot?n("footer",{staticClass:"d-modal__footer"},[e._t("footer")],2):e._e(),e.hideClose?e._e():n("dt-button",e._b({staticClass:"d-modal__close",attrs:{circle:"",size:"lg",importance:"clear","aria-label":e.closeButtonProps.ariaLabel},on:{click:e.close},scopedSlots:e._u([{key:"icon",fn:function(){return[n("dt-icon",{attrs:{name:"close",size:"400"}})]},proxy:!0}],null,!1,1709155279)},"dt-button",e.closeButtonProps,!1)),e.showVisuallyHiddenClose?n("sr-only-close-button",{attrs:{"visually-hidden-close-label":e.visuallyHiddenCloseLabel},on:{close:e.close}}):e._e()],1)])],1)},Mc=[],Fc=_.normalizeComponent(Nc,Bc,Mc,!1,null,null,null,null);const Vc=Fc.exports;const jc={name:"ListSection",components:{Vnodes:{name:"vnodes",functional:!0,render:(t,e)=>e.props.vnodes},DtButton:q},props:{id:{type:String,default(){return ae.getUniqueString()}},header:{type:String,default:null},separator:{type:Boolean,default:!1},maxDisplayed:{type:Number,default:0},textMore:{type:String,default:"Show more"},textLess:{type:String,default:"Show less"}},data(){return{showAll:!1}},computed:{isCollapsible(){return!(this.maxDisplayed===0||this.itemCount<=this.maxDisplayed)},showMoreLessText(){return this.showAll?this.textLess:this.textMore},hiddenCount(){return this.itemCount-this.displayedItems.length},itemCount(){return this.$slots.default.length},displayedItems(){return this.$slots.default.filter((t,e)=>e<=this.maxDisplayed-1)}},methods:{showMoreLessClicked(){this.showAll=!this.showAll}}};var zc=function(){var e=this,n=e._self._c;return n("div",{class:["dt-list-section","d-fs-200","d-lh6","d-py6","d-bc-black-400",{"d-bb":e.separator}],attrs:{id:e.id,role:"group","aria-labelledby":`${e.id}-list-section-header`,tabindex:"-1"}},[e.header?n("h3",{staticClass:"d-pl12 d-mt6",attrs:{id:`${e.id}-list-section-header`}},[e._v(" "+e._s(e.header)+" ")]):e._e(),!e.isCollapsible||e.showAll?n("ol",{attrs:{id:`${e.id}-list-section-content`}},[e._t("default")],2):n("ol",{attrs:{id:`${e.id}-list-section-content`}},[n("vnodes",{attrs:{vnodes:e.displayedItems}})],1),n("div",{staticClass:"d-d-flex"},[e.isCollapsible?n("dt-button",{staticClass:"d-ml12 d-py6",attrs:{id:`${e.id}-list-section-show-more-less`,link:""},on:{click:e.showMoreLessClicked}},[e._v(" "+e._s(e.showMoreLessText)+" ")]):e._e(),e._t("footer")],2)])},Hc=[],qc=_.normalizeComponent(jc,zc,Hc,!1,null,null,null,null);const Gc=qc.exports,Kc={name:"DtListItemGroup",props:{id:{type:String,default(){return V()}},heading:{type:String,default:""},headingClass:{type:[String,Array,Object],default:""},listClass:{type:[String,Array,Object],default:""}}};var Uc=function(){var e=this,n=e._self._c;return n("ul",{class:["d-ps-relative","d-px0",e.listClass],attrs:{id:e.id,role:"group","data-qa":"dt-dropdown-list-wrapper","aria-labelledby":`${e.id}-heading`}},[e.heading?n("li",{class:["dt-dropdown-list--header",e.headingClass],attrs:{id:`${e.id}-heading`,role:"presentation","data-qa":"dt-dropdown-list-heading"}},[e._t("headingSlot",function(){return[e._v(" "+e._s(e.heading)+" ")]})],2):e._e(),e._t("default")],2)},Wc=[],Yc=_.normalizeComponent(Kc,Uc,Wc,!1,null,null,null,null);const Zc=Yc.exports,Xc={name:"DtPagination",components:{DtButton:q,DtIcon:M},props:{ariaLabel:{type:String,required:!0},totalPages:{type:Number,required:!0},prevAriaLabel:{type:String,required:!0},nextAriaLabel:{type:String,required:!0},pageNumberAriaLabel:{type:Function,required:!0},activePage:{type:Number,default:1},maxVisible:{type:Number,default:5}},emits:["change"],data(){return{currentPage:this.activePage}},computed:{isFirstPage(){return this.currentPage===1},isLastPage(){return this.currentPage===this.totalPages},pages(){if(this.maxVisible===0)return[];if(this.totalPages<=this.maxVisible)return this.range(1,this.totalPages);const t=this.maxVisible-1,e=this.totalPages-t+1;if(this.currentPage<t)return[...this.range(1,t),"...",this.totalPages];if(this.currentPage>e)return[1,"...",...this.range(e,this.totalPages)];const n=this.maxVisible-(3-this.maxVisible%2),i=Math.floor(n/2),a=this.currentPage-i,o=this.currentPage+i;return[1,"...",...this.range(a,o),"...",this.totalPages]}},methods:{range(t,e){const n=[];t=t>0?t:1;for(let i=t;i<=e;i++)n.push(i);return n},changePage(t){this.currentPage=t,this.$emit("change",this.currentPage)}}};var Qc=function(){var e=this,n=e._self._c;return n("nav",{staticClass:"d-d-flex d-fd-row d-gg4 d-ai-center",attrs:{"aria-label":e.ariaLabel}},[n("dt-button",{staticClass:"d-px8",class:e.isFirstPage?"d-fc-black-300 d-bgc-transparent":"d-fc-tertiary",attrs:{"data-qa":"dt-pagination-prev","aria-label":e.prevAriaLabel,kind:"muted",importance:e.isFirstPage?"primary":"clear",disabled:e.isFirstPage},on:{click:function(i){return e.changePage(e.currentPage-1)}}},[n("template",{slot:"icon"},[n("dt-icon",{attrs:{name:"chevron-left",size:"300"}})],1)],2),e._l(e.pages,function(i,a){return n("div",{key:`page-${i}-${a}`,class:{"d-as-flex-end":isNaN(Number(i))}},[isNaN(Number(i))?n("div",{staticClass:"d-fc-tertiary d-w24 d-ta-center",attrs:{"data-qa":"dt-pagination-separator"}},[n("dt-icon",{attrs:{name:"more-horizontal",size:"300"}})],1):n("dt-button",{attrs:{"aria-label":e.pageNumberAriaLabel(i),kind:e.currentPage===i?"default":"muted",importance:e.currentPage===i?"primary":"clear","label-class":""},on:{click:function(o){return e.changePage(i)}}},[e._v(" "+e._s(i)+" ")])],1)}),n("dt-button",{staticClass:"d-px8",class:e.isLastPage?"d-fc-black-300 d-bgc-transparent":"d-fc-tertiary",attrs:{"data-qa":"dt-pagination-next","aria-label":e.nextAriaLabel,disabled:e.isLastPage,kind:"muted",importance:e.isLastPage?"primary":"clear"},on:{click:function(i){return e.changePage(e.currentPage+1)}}},[n("template",{slot:"icon"},[n("dt-icon",{attrs:{name:"chevron-right",size:"300"}})],1)],2)],2)},Jc=[],eu=_.normalizeComponent(Xc,Qc,Jc,!1,null,null,null,null);const tu=eu.exports,nu={warning:"d-radio--warning",error:"d-radio--error",success:"d-radio--success"},iu={name:"DtRadio",components:{DtValidationMessages:we},mixins:[Jn,ei,ti,Qt],inheritAttrs:!1,props:{value:{type:[String,Number],default:""}},emits:["input","focusin","focusout"],computed:{inputValidationClass(){return nu[this.internalValidationState]},radioGroupValue(){var t;return(t=this.groupContext)==null?void 0:t.selectedValue},inputListeners(){return{...this.$listeners,input:()=>{},change:t=>this.emitValue(t.target.value)}}},watch:{radioGroupValue:{immediate:!0,handler(t){this.hasGroup&&(this.internalChecked=t===this.value)}}},methods:{emitValue(t){t!==this.radioGroupValue&&(this.setGroupValue(t),this.$emit("input",t))}}};var su=function(){var e=this,n=e._self._c;return n("label",[n("div",{class:["d-radio-group",{"d-radio-group--disabled":e.internalDisabled}]},[n("div",{staticClass:"d-radio__input"},[n("input",e._g(e._b({class:["d-radio",e.inputValidationClass,e.inputClass],attrs:{name:e.internalName,disabled:e.internalDisabled,type:"radio"},domProps:{checked:e.internalChecked,value:e.value}},"input",e.$attrs,!1),e.inputListeners))]),n("div",{staticClass:"d-radio__copy d-radio__label",attrs:{"data-qa":"radio-label-description-container"}},[n("div",e._b({class:e.labelClass,attrs:{"data-qa":"radio-label"}},"div",e.labelChildProps,!1),[e._t("default",function(){return[e._v(e._s(e.label))]})],2),e.$slots.description||e.description?n("div",e._b({class:["d-description",e.descriptionClass],attrs:{"data-qa":"radio-description"}},"div",e.descriptionChildProps,!1),[e._t("description",function(){return[e._v(e._s(e.description))]})],2):e._e(),n("dt-validation-messages",e._b({class:e.messagesClass,attrs:{"validation-messages":e.formattedMessages,"show-messages":e.showMessages,"data-qa":"dt-radio-validation-messages"}},"dt-validation-messages",e.messagesChildProps,!1))],1)])])},au=[],ru=_.normalizeComponent(iu,su,au,!1,null,null,null,null);const ou=ru.exports,lu={name:"DtRadioGroup",extends:ni,props:{value:{type:[String,Number],default:""},dataQaGroup:{type:String,default:"radio-group"},dataQaGroupLegend:{type:String,default:"radio-group-legend"},dataQaGroupMessages:{type:String,default:"radio-group-messages"}},emits:["input"],data(){return{provideObj:{selectedValue:this.value}}},watch:{value(t){this.provideObj.selectedValue=t}},methods:{setGroupValue(t){this.$emit("input",t)},getMessageKey(t,e){return`radio-group-message-${t}-${e}-${this.id}`}}},du=null,cu=null;var uu=_.normalizeComponent(lu,du,cu,!1,null,null,null,null);const pu=uu.exports,qs=["default","sm"],fu={sm:"d-tablist--sm"},Gs={inverted:"d-tablist--inverted"},Ks={borderless:"d-tablist--no-border"},Us={selected:"d-tab--selected"},hu={name:"DtTabGroup",provide(){return{groupContext:this.provideObj,changeContentPanel:this.changeContentPanel,setFocus:this.setFocus}},props:{label:{type:String,default:""},selected:{type:String,default:""},disabled:{type:Boolean,default:!1},inverted:{type:Boolean,default:!1},borderless:{type:Boolean,default:!1},size:{type:String,default:"default",validate(t){return qs.includes(t)}},tabListClass:{type:[String,Array,Object],default:""},tabListChildProps:{type:Object,default:()=>({})}},emits:["change"],data(){return{provideObj:{selected:"",disabled:!1},focusId:null,tabs:[],TAB_LIST_SIZE_MODIFIERS:fu,TAB_LIST_KIND_MODIFIERS:Gs,TAB_LIST_IMPORTANCE_MODIFIERS:Ks}},watch:{disabled:{immediate:!0,handler(){this.provideObj.disabled=this.disabled}},selected:{immediate:!0,handler(){this.provideObj.selected=this.selected}}},mounted(){this.updateSelected()},beforeUpdate(){this.updateSelected()},methods:{updateSelected(){this.provideObj.selected||(this.provideObj.selected=this.selected),this.tabs=this.getTabChildren()},setFocus(t){this.focusId=t},getTabChildren(){return this.$children.map(({$el:t})=>t).filter(({className:t})=>t.includes("d-tab")).map(t=>{var e,n;return{context:t,panelId:(e=t.getAttribute("aria-controls"))==null?void 0:e.replace("dt-panel-",""),id:(n=t.getAttribute("id"))==null?void 0:n.replace("dt-tab-",""),isSelected:t.getAttribute("aria-selected")==="true"}})},onChange(){this.$emit("change",{...this.provideObj})},changeContentPanel({selected:t,selectOverride:e}){this.provideObj.selected=t,e||this.onChange()},tabLeft(){const{index:t,tabs:e}=this.getIndexAndTabs();if(t===-1)return;const n=t-1<0?e.length-1:t-1;this.selectFocusOnTab(n,e)},tabRight(){const{index:t,tabs:e}=this.getIndexAndTabs();if(t===-1)return;const n=t+1>e.length-1?0:t+1;this.selectFocusOnTab(n,e)},selectFocusOnTab(t,e){const{context:n}=e[t];n.focus()},selectTab(){const{tabs:t,index:e}=this.getIndexAndTabs();this.selectTabByIndex(e,t)},selectTabByIndex(t,e){const{context:n,panelId:i}=e[t];this.provideObj.selected=i,n.focus()},getIndexAndTabs(){const t=this.tabs.findIndex(e=>this.focusId?e.id===`${this.focusId}`:e.isSelected);return{tabs:this.tabs,index:t}},onHomeButton(){var t,e;this.tabs.length!==0&&((e=(t=this.tabs[0])==null?void 0:t.context)==null||e.focus())},onEndButton(){var t,e;this.tabs.length!==0&&((e=(t=this.tabs[this.tabs.length-1])==null?void 0:t.context)==null||e.focus())}}};var mu=function(){var e=this,n=e._self._c;return n("div",{attrs:{"data-qa":"dt-tab-group"}},[n("div",e._b({class:["d-tablist",e.TAB_LIST_SIZE_MODIFIERS[e.size],{[e.TAB_LIST_KIND_MODIFIERS.inverted]:e.inverted,[e.TAB_LIST_IMPORTANCE_MODIFIERS.borderless]:e.borderless},e.tabListClass],attrs:{role:"tablist","aria-label":e.label},on:{keyup:[function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"left",37,i.key,["Left","ArrowLeft"])||"button"in i&&i.button!==0?null:e.tabLeft.apply(null,arguments)},function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"right",39,i.key,["Right","ArrowRight"])||"button"in i&&i.button!==2?null:e.tabRight.apply(null,arguments)},function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"enter",13,i.key,"Enter")?null:e.selectTab.apply(null,arguments)},function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"space",32,i.key,[" ","Spacebar"])?null:e.selectTab.apply(null,arguments)}],keydown:[function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"home",void 0,i.key,void 0)?null:e.onHomeButton.apply(null,arguments)},function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"end",void 0,i.key,void 0)?null:e.onEndButton.apply(null,arguments)}]}},"div",e.tabListChildProps,!1),[e._t("tabs")],2),e._t("default")],2)},_u=[],gu=_.normalizeComponent(hu,mu,_u,!1,null,null,null,null);const vu=gu.exports,bu={name:"DtTab",components:{DtButton:q},inject:["changeContentPanel","groupContext","setFocus"],inheritAttrs:!1,props:{id:{type:String,required:!0},panelId:{type:String,required:!0},label:{type:String,default:""},selected:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},tabClass:{type:[String,Array,Object],default:""}},data(){return{TAB_IMPORTANCE_MODIFIERS:Us}},computed:{isSelected(){return this.groupContext.selected===this.panelId},tabListeners(){return{...this.$listeners,click:t=>{this.selectPanel(),this.$emit("click",t)},focus:t=>{this.setFocus(this.id),this.$emit("focus",t)}}}},mounted(){this.setSelectedPanelByDefault()},methods:{setSelectedPanelByDefault(){this.selected&&this.selectPanel(!0)},selectPanel(t=!1){this.changeContentPanel({selected:this.panelId,selectOverride:t})}}};var yu=function(){var e=this,n=e._self._c;return n("dt-button",e._g(e._b({class:["d-tab",{[e.TAB_IMPORTANCE_MODIFIERS.selected]:e.isSelected},e.tabClass],attrs:{id:`dt-tab-${e.id}`,role:"tab","aria-selected":`${e.isSelected}`,"aria-controls":`dt-panel-${e.panelId}`,"aria-label":e.label,"data-qa":"dt-tab",tabindex:e.isSelected?"0":"-1",disabled:e.groupContext.disabled||e.disabled}},"dt-button",e.$attrs,!1),e.tabListeners),[e._t("default")],2)},Su=[],Cu=_.normalizeComponent(bu,yu,Su,!1,null,null,null,null);const xu=Cu.exports,wu={name:"DtTabPanel",mixins:[_t],inject:["groupContext"],props:{id:{type:String,required:!0},tabId:{type:String,required:!0},hidden:{type:Boolean,default:!1},tabPanelClass:{type:[String,Array,Object],default:""}},data(){return{isFirstElementFocusable:!1}},computed:{hidePanel(){return this.groupContext.selected!==this.id||this.hidden}},async mounted(){const t=await this.getFirstFocusableElement(this.$el);t?this.isFirstElementFocusable=this.isFirstElementOfPanel(t):this.isFirstElementFocusable=!1},methods:{isFirstElementOfPanel(t){let e=t,n=!0;for(;e;){if(e.previousElementSibling!==null){n=!1;break}e=e.parentNode!==this.$el?e.parentNode:null}return n}}};var Eu=function(){var e=this,n=e._self._c;return n("div",{class:[{"d-d-none":e.hidePanel},e.tabPanelClass],attrs:{id:`dt-panel-${e.id}`,role:"tabpanel",tabindex:e.isFirstElementFocusable?-1:0,"aria-labelledby":`dt-tab-${e.tabId}`,"aria-hidden":`${e.hidePanel}`,"data-qa":"dt-tab-panel"}},[e._t("default")],2)},Iu=[],Ou=_.normalizeComponent(wu,Eu,Iu,!1,null,null,null,null);const Tu=Ou.exports,Lu={error:"d-checkbox--error",warning:"d-checkbox--warning",success:"d-checkbox--success"},Au={name:"DtCheckbox",components:{DtValidationMessages:we},mixins:[Jn,ei,ti,Qt],inheritAttrs:!1,emits:["input","focusin","focusout"],computed:{inputValidationClass(){return Lu[this.internalValidationState]},checkboxGroupValueChecked(){var t,e;return((e=(t=this.groupContext)==null?void 0:t.selectedValues)==null?void 0:e.includes(this.value))??!1},hasLabel(){return!!(this.$slots.default||this.label)},hasDescription(){return!!(this.$slots.description||this.description)},hasLabelOrDescription(){return this.hasLabel||this.hasDescription},inputListeners(){return{...this.$listeners,input:()=>{},change:t=>this.emitValue(t.target)}}},watch:{checkboxGroupValueChecked:{immediate:!0,handler(t){this.hasGroup&&(this.internalChecked=t)}}},mounted(){this.runValidations()},methods:{emitValue(t){let{value:e,checked:n}=t;this.internalIndeterminate&&(n=!1,this.internalIndeterminate=!1,t.checked=!1),this.setGroupValue(e,n),this.$emit("input",n)},runValidations(){this.validateInputLabels(this.hasLabel,this.$attrs["aria-label"])}}};var $u=function(){var e=this,n=e._self._c;return n("label",[n("div",{class:["d-checkbox-group",{"d-checkbox-group--disabled":e.internalDisabled}]},[n("div",{staticClass:"d-checkbox__input"},[n("input",e._g(e._b({class:["d-checkbox",e.inputValidationClass,e.inputClass],attrs:{type:"checkbox",name:e.internalName,disabled:e.internalDisabled},domProps:{checked:e.internalChecked,value:e.value,indeterminate:e.internalIndeterminate}},"input",e.$attrs,!1),e.inputListeners))]),e.hasLabelOrDescription?n("div",{staticClass:"d-checkbox__copy d-checkbox__label",attrs:{"data-qa":"checkbox-label-description-container"}},[e.hasLabel?n("div",e._b({class:e.labelClass,attrs:{"data-qa":"checkbox-label"}},"div",e.labelChildProps,!1),[e._t("default",function(){return[e._v(e._s(e.label))]})],2):e._e(),e.hasDescription?n("div",e._b({class:["d-description",e.descriptionClass],attrs:{"data-qa":"checkbox-description"}},"div",e.descriptionChildProps,!1),[e._t("description",function(){return[e._v(e._s(e.description))]})],2):e._e(),n("dt-validation-messages",e._b({class:e.messagesClass,attrs:{"validation-messages":e.formattedMessages,"show-messages":e.showMessages,"data-qa":"dt-checkbox-validation-messages"}},"dt-validation-messages",e.messagesChildProps,!1))],1):e._e()])])},Du=[],Ru=_.normalizeComponent(Au,$u,Du,!1,null,null,null,null);const ku=Ru.exports,Pu={name:"DtCheckboxGroup",extends:ni,model:{prop:"selectedValues"},props:{value:{type:[],default:null,validator:t=>t?(X.util.warn("Component uses selectedValues to initialize the model, value is not supported by this component",globalThis),!1):!0},selectedValues:{type:Array,default(){return[]}},dataQaGroup:{type:String,default:"checkbox-group"},dataQaGroupLegend:{type:String,default:"checkbox-group-legend"},dataQaGroupMessages:{type:String,default:"checkbox-group-messages"}},emits:["input"],data(){return{internalValue:this.selectedValues,provideObj:{selectedValues:this.selectedValues}}},watch:{selectedValues(t){this.internalValue=t},internalValue(t){this.provideObj.selectedValues=t}},methods:{setGroupValue(t,e){e?this.internalValue.includes(t)||this.internalValue.push(t):this.internalValue=this.internalValue.filter(n=>n!==t),this.$emit("input",this.internalValue)},getMessageKey(t,e){return`checkbox-group-message-${t}-${e}-${this.id}`}}},Nu=null,Bu=null;var Mu=_.normalizeComponent(Pu,Nu,Bu,!1,null,null,null,null);const Fu=Mu.exports,$n={xs:"d-chip__label--xs",sm:"d-chip__label--sm",md:""},Vu={xs:"d-chip__close--xs",sm:"d-chip__close--sm",md:""},ju={xs:"200",sm:"200",md:"200"},zu={name:"DtChip",components:{DtButton:q,DtIcon:M},props:{closeButtonProps:{type:Object,default:function(){return{ariaLabel:"close"}},validator:t=>!!t.ariaLabel},hideClose:{type:Boolean,default:!1},size:{type:String,default:"md",validator:t=>Object.keys($n).includes(t)},interactive:{type:Boolean,default:!0},id:{type:String,default:function(){return V()}},ariaLabel:{type:String,default:""},contentClass:{type:[String,Array,Object],default:""},labelClass:{type:[String,Array,Object],default:""}},emits:["click","close","keyup"],data(){return{isActive:!1}},computed:{chipListeners(){return{...this.$listeners,click:t=>{this.interactive&&this.$emit("click",t)},keyup:t=>{var e;((e=t.code)==null?void 0:e.toLowerCase())==="delete"?this.onClose():this.$emit("keyup",t)}}},closeButtonIconSize(){return ju[this.size]}},methods:{chipClasses(){return[this.$attrs["grouped-chip"]?"d-chip":"d-chip__label",$n[this.size],this.labelClass]},chipCloseButtonClasses(){return["d-chip__close",Vu[this.size]]},onClose(){this.hideClose||this.$emit("close")}}};var Hu=function(){var e=this,n=e._self._c;return n("span",{staticClass:"d-chip"},[n(e.interactive?"button":"span",e._g({tag:"component",class:e.chipClasses(),attrs:{id:e.id,type:e.interactive&&"button","data-qa":"dt-chip","aria-labelledby":e.ariaLabel?void 0:`${e.id}-content`,"aria-label":e.ariaLabel}},e.chipListeners),[e.$slots.icon?n("span",{staticClass:"d-chip__icon",attrs:{"data-qa":"dt-chip-icon"}},[e._t("icon")],2):e.$slots.avatar?n("span",{attrs:{"data-qa":"dt-chip-avatar"}},[e._t("avatar")],2):e._e(),e.$slots.default?n("span",{class:["d-truncate","d-chip__text",e.contentClass],attrs:{id:`${e.id}-content`,"data-qa":"dt-chip-label"}},[e._t("default")],2):e._e()]),e.hideClose?e._e():n("dt-button",e._b({class:e.chipCloseButtonClasses(),attrs:{"data-qa":"dt-chip-close","aria-label":e.closeButtonProps.ariaLabel},on:{click:function(i){return e.$emit("close")}},scopedSlots:e._u([{key:"icon",fn:function(){return[n("dt-icon",{attrs:{name:"close",size:e.closeButtonIconSize}})]},proxy:!0}],null,!1,1192647893)},"dt-button",e.closeButtonProps,!1))],1)},qu=[],Gu=_.normalizeComponent(zu,Hu,qu,!1,null,null,null,null);const ii=Gu.exports,Dn={xs:"d-select--xs",sm:"d-select--sm",md:"",lg:"d-select--lg",xl:"d-select--xl"},Ws={error:"d-select__input--error",warning:"d-select__input--warning",success:"d-select__input--success"},Ku=t=>!t.index||typeof t.index=="number",Uu=t=>t.value?typeof t.value=="string"||typeof t.value=="number":!1,Wu=t=>t.label?typeof t.label=="string":!1,Yu=t=>t?t.every(e=>!(!Ku(e)||!Uu(e)||!Wu(e))):!0,Zu={name:"DtSelectMenu",components:{DtValidationMessages:we},mixins:[Qt],inheritAttrs:!1,props:{label:{type:String,default:""},description:{type:String,default:""},options:{type:Array,default:()=>[],validator:t=>Yu(t)},size:{type:String,default:"md",validator:t=>Object.keys(Dn).includes(t)},labelClass:{type:[String,Array,Object],default:""},descriptionClass:{type:[String,Array,Object],default:""},selectClass:{type:[String,Array,Object],default:""},optionClass:{type:[String,Array,Object],default:""},labelChildProps:{type:Object,default:()=>({})},descriptionChildProps:{type:Object,default:()=>({})},optionChildProps:{type:Object,default:()=>({})},disabled:{type:Boolean,default:!1}},emits:["input","change"],data(){return{LABEL_SIZE_MODIFIERS:Sa,DESCRIPTION_SIZE_MODIFIERS:ya,SELECT_SIZE_MODIFIERS:Dn,SELECT_STATE_MODIFIERS:Ws}},computed:{selectListeners(){return{...this.$listeners,input:()=>{},change:t=>this.emitValue(t.target.value)}},state(){return Ce(this.formattedMessages)},selectKey(){return V()},descriptionKey(){return`select-${this.selectKey}-description`},labelAriaDetails(){return this.$slots.description||this.description?this.descriptionKey:this.$attrs["aria-details"]}},mounted(){this.validateOptionsPresence()},beforeUpdate(){this.validateOptionsPresence()},methods:{emitValue(t){this.$emit("input",t),this.$emit("change",t)},getOptionKey(t){return`select-${this.selectKey}-option-${t}`},validateOptionsPresence(){var t;((t=this.options)==null?void 0:t.length)<1&&!this.$slots.default&&X.util.warn("Options are expected to be provided via prop or slot",this)}}};var Xu=function(){var e=this,n=e._self._c;return n("div",[n("label",[e.$slots.label||e.label?n("div",e._b({class:["d-label",e.LABEL_SIZE_MODIFIERS[e.size],e.labelClass],attrs:{"aria-details":e.labelAriaDetails,"data-qa":"dt-select-label"}},"div",e.labelChildProps,!1),[e._t("label",function(){return[e._v(e._s(e.label))]})],2):e._e(),e.$slots.description||e.description?n("div",e._b({class:["d-description",e.DESCRIPTION_SIZE_MODIFIERS[e.size],e.descriptionClass],attrs:{id:e.descriptionKey,"data-qa":"dt-select-description"}},"div",e.descriptionChildProps,!1),[e._t("description",function(){return[e._v(e._s(e.description))]})],2):e._e(),n("div",{class:["d-select",e.SELECT_SIZE_MODIFIERS[e.size],e.selectClass,{"d-select--disabled":e.disabled}],attrs:{"data-qa":"dt-select-wrapper"}},[n("select",e._g(e._b({class:["d-select__input",e.SELECT_STATE_MODIFIERS[e.state]],attrs:{"data-qa":"dt-select",disabled:e.disabled}},"select",e.$attrs,!1),e.selectListeners),[e._t("default",function(){return e._l(e.options,function(i){return n("option",e._b({key:e.getOptionKey(i.value),class:e.optionClass,domProps:{value:i.value}},"option",e.optionChildProps,!1),[e._v(" "+e._s(i.label)+" ")])})})],2)])]),n("dt-validation-messages",e._b({class:e.messagesClass,attrs:{"validation-messages":e.formattedMessages,"show-messages":e.showMessages,"data-qa":"dt-select-messages"}},"dt-validation-messages",e.messagesChildProps,!1))],1)},Qu=[],Ju=_.normalizeComponent(Zu,Xu,Qu,!1,null,null,null,null);const ep=Ju.exports,Ys=["status","alert"],ji=6e3,tp={name:"DtToast",components:{DtNoticeIcon:Vn,DtNoticeContent:jn,DtNoticeAction:zn},mixins:[ge],props:{titleId:{type:String,default(){return ae.getUniqueString()}},contentId:{type:String,default(){return ae.getUniqueString()}},title:{type:String,default:""},message:{type:String,default:""},role:{type:String,default:"status",validator:t=>Ys.includes(t)},kind:{type:String,default:"base",validator:t=>Xe.includes(t)},important:{type:Boolean,default:!1},show:{type:Boolean,default:!1},closeButtonProps:{type:Object,default:()=>({})},hideClose:{type:Boolean,default:!1},duration:{type:Number,default:null,validator:t=>t>=ji}},emits:["close","update:show"],data(){return{isShown:!1,minDuration:ji}},computed:{kindClass(){return{error:"d-toast--error",info:"d-toast--info",success:"d-toast--success",warning:"d-toast--warning",base:"d-toast--base"}[this.kind]},noticeActionListeners(){return{...this.$listeners,close:t=>{this.isShown=!1,this.$emit("update:show",!1),this.$emit("close",t)}}},shouldSetTimeout(){return!!this.duration&&this.duration>=this.minDuration}},watch:{show:{handler:function(t){this.isShown=t,t?this.setTimeout():clearTimeout(this.displayTimer)},immediate:!0}},destroyed(){this.shouldSetTimeout&&clearTimeout(this.displayTimer)},methods:{setTimeout(){this.shouldSetTimeout&&(this.displayTimer=setTimeout(()=>{this.isShown=!1,this.$emit("update:show",!1)},this.duration))}}};var np=function(){var e=this,n=e._self._c;return e.isShown?n("div",{class:["d-toast",e.kindClass,{"d-toast--important":e.important}],attrs:{"data-qa":"dt-toast","aria-hidden":(!e.isShown).toString()}},[n("div",{staticClass:"d-toast__dialog"},[n("dt-notice-icon",e._g({attrs:{kind:e.kind}},e.$listeners),[e._t("icon")],2),n("dt-notice-content",e._g({attrs:{"title-id":e.titleId,"content-id":e.contentId,title:e.title,role:e.role},scopedSlots:e._u([{key:"titleOverride",fn:function(){return[e._t("titleOverride")]},proxy:!0}],null,!0)},e.$listeners),[e._t("default",function(){return[e._v(" "+e._s(e.message)+" ")]})],2),n("dt-notice-action",e._g({attrs:{"hide-close":e.hideClose,"close-button-props":e.closeButtonProps,"visually-hidden-close":e.visuallyHiddenClose,"visually-hidden-close-label":e.visuallyHiddenCloseLabel}},e.noticeActionListeners),[e._t("action")],2)],1)]):e._e()},ip=[],sp=_.normalizeComponent(tp,np,ip,!1,null,null,null,null);const ap=sp.exports,zi={sm:"d-toggle--small",md:""},rp=[!1,!0,"mixed"],op={name:"DtToggle",inheritAttrs:!1,model:{prop:"checked",event:"change"},props:{id:{type:String,default(){return ae.getUniqueString()}},disabled:{type:Boolean,default:!1},checked:{type:[Boolean,String],default:!1,validator:t=>rp.includes(t)},toggleOnClick:{type:Boolean,default:!0},size:{type:String,default:"md",validator:t=>Object.keys(zi).includes(t)},showIcon:{type:Boolean,default:!0},labelClass:{type:[String,Array,Object],default:""},labelChildProps:{type:Object,default:()=>({})}},emits:["change"],data(){return{internalChecked:this.checked}},computed:{inputListeners(){return{...this.$listeners,click:t=>this.toggleCheckedValue()}},isIndeterminate(){return this.internalChecked==="mixed"},toggleRole(){return this.isIndeterminate?"checkbox":"switch"},toggleClasses(){return["d-toggle",zi[this.size],{"d-toggle--checked":this.internalChecked===!0,"d-toggle--disabled":this.disabled,"d-toggle--indeterminate":this.isIndeterminate}]}},watch:{checked(t){this.internalChecked=t}},mounted(){this.runValidations()},methods:{toggleCheckedValue(){this.$emit("change",!this.internalChecked),this.toggleOnClick&&(this.internalChecked=!this.internalChecked)},hasSlotLabel(){return!!this.$slots.default},runValidations(){this.validateInputLabels(this.hasSlotLabel(),this.$attrs["aria-label"])},validateInputLabels(t,e){!t&&!e&&X.util.warn("You must provide an aria-label when there is no label passed",this)}}};var lp=function(){var e=this,n=e._self._c;return n("div",{staticClass:"d-d-flex d-ai-center"},[e.$slots.default?n("label",e._b({class:e.labelClass,attrs:{for:e.id,"data-qa":"toggle-label"}},"label",e.labelChildProps,!1),[e._t("default")],2):e._e(),n("button",e._g(e._b({class:e.toggleClasses,attrs:{id:e.id,role:e.toggleRole,type:"button","aria-checked":e.internalChecked.toString(),disabled:e.disabled,"aria-disabled":e.disabled.toString()}},"button",e.$attrs,!1),e.inputListeners),[e.showIcon?n("span",{staticClass:"d-toggle__inner"}):e._e()])])},dp=[],cp=_.normalizeComponent(op,lp,dp,!1,null,null,null,null);const up=cp.exports,Zs=[...jd],Xs=300,Qs={hover:"d-tooltip--hover",show:"d-tooltip--show",inverted:"d-tooltip--inverted",hide:"d-tooltip--hide"},Js=[...ks],pp=[!0,!1,"toggle"];const fp={name:"DtTooltip",components:{DtLazyShow:Qe},props:{id:{type:String,default(){return V()}},fallbackPlacements:{type:Array,default:()=>["auto"]},inverted:{type:Boolean,default:!1},offset:{type:Array,default:()=>[0,-4]},placement:{type:String,default:"top",validator(t){return Zs.includes(t)}},sticky:{type:[Boolean,String],default:!1,validator:t=>Js.includes(t)},contentClass:{type:[String,Object,Array],default:""},message:{type:String,default:""},show:{type:Boolean,default:null},transition:{type:String,default:"fade"},delay:{type:Boolean,default:!0}},emits:["shown","update:show"],data(){return{TOOLTIP_KIND_MODIFIERS:Qs,tip:null,inTimer:null,isShown:!1,currentPlacement:this.placement}},computed:{tooltipListeners(){return{...this.$listeners,"after-leave":()=>{this.onLeaveTransitionComplete()},"after-enter":()=>{this.onEnterTransitionComplete()}}},tippyProps(){var t,e;return{offset:this.offset,appendTo:(e=(t=this.anchorEl)==null?void 0:t.getRootNode())==null?void 0:e.querySelector("body"),interactive:!1,trigger:"manual",placement:this.placement,sticky:this.sticky,popperOptions:Ns({fallbackPlacements:this.fallbackPlacements,hasHideModifierEnabled:!0,onChangePlacement:this.onChangePlacement})}}},watch:{tippyProps:{handler:"setProps",deep:!0},show:{handler:function(t){t!==null&&(this.isShown=t)},immediate:!0},isShown(t){t?(this.setProps(),this.tip.show()):this.tip.hide()},sticky(t){this.tip.setProps({sticky:t})}},mounted(){this.tip=Ps(Fi(this.$refs.anchor),this.initOptions()),this.isShown&&this.tip.show()},beforeDestroy(){var t;this.tip&&((t=this.tip)==null||t.destroy())},methods:{calculateAnchorZindex(){return this.$el.getRootNode().querySelector('.d-modal[aria-hidden="false"], .d-modal--transparent[aria-hidden="false"]')||this.$el.closest(".d-zi-drawer")?651:400},hasVisibleFocus(){return Fi(this.$refs.anchor).matches(":focus-visible")},onEnterAnchor(t){if(this.delay)this.inTimer=setTimeout(function(e){return this.triggerShow(e)}.bind(this,t),Xs);else return this.triggerShow(t)},triggerShow(t){t.type==="focusin"?this.show===null&&this.hasVisibleFocus()&&(this.isShown=!0):this.show===null&&(this.isShown=!0)},onLeaveAnchor(){return clearTimeout(this.inTimer),this.triggerHide()},triggerHide(){this.show===null&&(this.isShown=!1)},onChangePlacement(t){this.currentPlacement=t},onLeaveTransitionComplete(){var t;(t=this.tip)==null||t.unmount(),this.$emit("shown",!1),this.show!==null&&this.$emit("update:show",!1)},onEnterTransitionComplete(){this.$emit("shown",!0),this.show!==null&&this.$emit("update:show",!0)},setProps(){this.tip&&this.tip.setProps&&this.tip.setProps({...this.tippyProps,zIndex:this.calculateAnchorZindex()})},onMount(){this.setProps()},initOptions(){return{contentElement:this.$refs.content.$el,allowHTML:!0,zIndex:this.calculateAnchorZindex(),onMount:this.onMount,...this.tippyProps}}}};var hp=function(){var e=this,n=e._self._c;return n("div",{attrs:{"data-qa":"dt-tooltip-container"}},[n("a",{ref:"anchor",attrs:{tabindex:"-1",role:"presentation","data-qa":"dt-tooltip-anchor"},on:{focusin:e.onEnterAnchor,focusout:e.onLeaveAnchor,mouseenter:e.onEnterAnchor,mouseleave:e.onLeaveAnchor,keydown:function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"esc",27,i.key,["Esc","Escape"])?null:e.onLeaveAnchor.apply(null,arguments)}}},[e._t("anchor")],2),n("dt-lazy-show",e._g({ref:"content",class:["d-tooltip",`d-tooltip__arrow-tippy--${e.currentPlacement}`,{[e.TOOLTIP_KIND_MODIFIERS.inverted]:e.inverted},e.contentClass],attrs:{id:e.id,show:e.isShown&&(!!e.message.trim()||!!e.$slots.default),role:"tooltip","aria-hidden":"false","data-qa":"dt-tooltip",appear:"",transition:e.transition}},e.tooltipListeners),[e._t("default",function(){return[e._v(" "+e._s(e.message)+" ")]})],2)],1)},mp=[],_p=_.normalizeComponent(fp,hp,mp,!1,null,null,null,null);const Jt=_p.exports,Ke={"{win}":"layout-grid","{arrow-right}":"arrow-right","{arrow-left}":"arrow-left","{arrow-up}":"arrow-up","{arrow-down}":"arrow-down","{cmd}":"command"},ea={"{plus}":"plus"},gp=Object.keys(Ke),vp={name:"DtKeyboardShortcut",components:{DtIcon:M},props:{inverted:{type:Boolean,default:!1},shortcut:{type:String,required:!0},screenReaderText:{type:String,default:null}},data(){return{SHORTCUTS_ICON_ALIASES:Ke,separator:/\+/gi}},computed:{icons(){return{...Ke,...ea}},shortcutWithSeparator(){return this.shortcut.replace(this.separator,"{plus}")},formattedShortcut(){return Object.keys(Ke).reduce((t,e)=>t.replace(new RegExp("{"+e+"}","gi"),Ke[e]),this.shortcutWithSeparator)},formattedShortcutSplit(){const t=Object.keys(this.icons).join("|"),e=new RegExp(`(${t})`,"gi");return this.formattedShortcut.split(e).filter(Boolean)}}};var bp=function(){var e=this,n=e._self._c;return n("kbd",{class:["d-d-inline-flex","d-ff-custom","d-ai-center","d-jc-center","d-box-border","d-px4","d-ba","d-bar4","d-fs-100",e.inverted?"d-bc-inverted-moderate":"d-bc-default"]},[e.screenReaderText?n("span",{staticClass:"sr-only"},[e._v(" "+e._s(e.screenReaderText)+" ")]):e._e(),e._l(e.formattedShortcutSplit,function(i,a){return[e.icons[i]?n("dt-icon",{key:`${a}-${i}`,class:[e.inverted?"d-fc-secondary-inverted":"d-fc-tertiary","d-mr2"],attrs:{name:e.icons[i],size:"100","aria-hidden":"true"}}):n("span",{key:`${a}-${i}`,class:[e.inverted?"d-fc-secondary-inverted":"d-fc-tertiary","d-mr2"],attrs:{"aria-hidden":"true"},domProps:{innerHTML:e._s(i)}})]})],2)},yp=[],Sp=_.normalizeComponent(vp,bp,yp,!1,null,null,null,null);const Cp=Sp.exports,si={LEFT:"left",RIGHT:"right"},ta=["sm","md","lg",null],xp={name:"DtRootLayoutBody",props:{bodyClass:{type:[String,Array,Object],default:void 0},contentClass:{type:[String,Array,Object],default:void 0},sidebarClass:{type:[String,Array,Object],default:void 0},sidebarWidth:{type:String,default:void 0},fixed:{type:Boolean,default:void 0},sidebarPosition:{type:String,default:void 0}},computed:{bodyClasses(){return[this.bodyClass,{"d-root-layout__body--invert":this.sidebarPosition===si.RIGHT}]}}};var wp=function(){var e=this,n=e._self._c;return n("div",{ref:"root-layout-body",class:["d-root-layout__body",e.bodyClasses],attrs:{"data-qa":"dt-root-layout-body"}},[e.$slots.sidebar?n("aside",{ref:"root-layout-sidebar",class:["d-root-layout__sidebar",{"d-root-layout__sidebar--sticky":e.fixed},e.sidebarClass],style:{"flex-basis":e.sidebarWidth},attrs:{"data-qa":"dt-root-layout-sidebar"}},[e._t("sidebar")],2):e._e(),e.$slots.content?n("main",{ref:"root-layout-content",class:["d-root-layout__content",e.contentClass],attrs:{"data-qa":"dt-root-layout-content",tabindex:"0"}},[e._t("content")],2):e._e()])},Ep=[],Ip=_.normalizeComponent(xp,wp,Ep,!1,null,null,null,null);const Op=Ip.exports,Tp={name:"DtRootLayout",components:{DtRootLayoutBody:Op},props:{fixed:{type:Boolean,default:!0},headerClass:{type:[String,Array,Object],default:""},headerHeight:{type:String,default:"64px"},bodyClass:{type:[String,Array,Object],default:""},headerSticky:{type:Boolean,default:!1},contentClass:{type:[String,Array,Object],default:""},sidebarClass:{type:[String,Array,Object],default:""},sidebarWidth:{type:String,default:"256px"},sidebarPosition:{type:String,default:"left",validator:t=>Object.values(si).includes(t)},footerClass:{type:[String,Array,Object],default:""},footerHeight:{type:String,default:"64px"},responsiveBreakpoint:{type:String,default:null,validator:t=>ta.includes(t)}},computed:{responsiveClass(){if(this.responsiveBreakpoint)return`d-root-layout__responsive--${this.responsiveBreakpoint}`}}};var Lp=function(){var e=this,n=e._self._c;return n("div",{class:["root-layout d-root-layout",{"d-root-layout--fixed":e.fixed},e.responsiveClass],attrs:{"data-qa":"dt-root-layout"}},[e.$slots.header?n("header",{class:["d-root-layout__header",{"d-root-layout__header--sticky":e.headerSticky},e.headerClass],style:{height:e.headerHeight,"min-height":e.headerHeight},attrs:{"data-qa":"dt-root-layout-header"}},[e._t("header")],2):e._e(),n("dt-root-layout-body",{attrs:{"body-class":e.bodyClass,"content-class":e.contentClass,"sidebar-class":e.sidebarClass,"sidebar-width":e.sidebarWidth,"sidebar-position":e.sidebarPosition,"header-height":e.$slots.header?e.headerHeight:"0px","footer-height":e.$slots.footer?e.footerHeight:"0px",fixed:e.fixed},scopedSlots:e._u([e.$slots.sidebar?{key:"sidebar",fn:function(){return[e._t("sidebar")]},proxy:!0}:null,e.$slots.default?{key:"content",fn:function(){return[e._t("default")]},proxy:!0}:null],null,!0)}),e.$slots.footer?n("footer",{class:["d-root-layout__footer",e.footerClass],style:{height:e.footerHeight,"min-height":e.footerHeight},attrs:{"data-qa":"dt-root-layout-footer"}},[e._t("footer")],2):e._e()],1)},Ap=[],$p=_.normalizeComponent(Tp,Lp,Ap,!1,null,null,null,null);const Dp=$p.exports,ke={default:"column",column:"column",row:"row","row-reverse":"row-reverse","column-reverse":"column-reverse"},na=["sm","md","lg","xl"],ai=["0","100","200","300","400","500","600"];function Hi(t){return t===ke.default}function qi(t){if(ht(t)==="string")return Hi(t)?null:ke[t];if(ht(t)==="object"){const{default:e}=t;return Hi(e)?null:ke[e]}else return null}function ht(t){return typeof t}function Rp(t){return qi(t)?`d-stack--${ke[qi(t)]}`:null}function kp(t){return ht(t)==="object"?[...na.map(e=>t[e]?`d-stack--${e}--${t[e]}`:null)]:null}function Pp(t){return ai.includes(t)?`d-stack--gap-${t}`:null}function Np(t){if(ht(t)==="string")return Object.keys(ke).includes(t);if(ht(t)==="object"){const{default:e}=t;return Object.keys(ke).includes(e)}else return null}function Bp(t){return ai.includes(t)}const Mp={name:"DtStack",props:{direction:{type:[String,Object],default:"column",validator:t=>Np(t)},as:{type:String,default:"div"},gap:{type:String,default:"0",validator:t=>Bp(t)}},data(){return{DT_STACK_DIRECTION:ke,DT_STACK_GAP:ai,DT_STACK_RESPONSIVE_BREAKPOINTS:na}},computed:{stackGap(){return Pp(this.gap)},defaultDirection(){return Rp(this.direction)},stackResponsive(){return kp(this.direction)}}};var Fp=function(){var e=this,n=e._self._c;return n(e.as,{tag:"component",class:["d-stack",e.defaultDirection,e.stackResponsive,e.stackGap]},[e._t("default")],2)},Vp=[],jp=_.normalizeComponent(Mp,Fp,Vp,!1,null,null,null,null);const zp=jp.exports,Hp={name:"DtRecipeComboboxWithPopover",components:{DtCombobox:ps,DtPopover:Xt,ComboboxLoadingList:ds,ComboboxEmptyList:cs},mixins:[ge],props:{label:{type:String,required:!0},labelVisible:{type:Boolean,default:!0},size:{type:String,default:null,validator:t=>Object.values(us).includes(t)},description:{type:String,default:""},showList:{type:Boolean,default:null},listId:{type:String,default(){return V()}},listClass:{type:[String,Array,Object],default:""},onBeginningOfList:{type:Function,default:null},onEndOfList:{type:Function,default:null},maxHeight:{type:String,default:""},maxWidth:{type:String,default:""},padding:{type:String,default:"small",validator:t=>Object.keys(lt).some(e=>e===t)},contentWidth:{type:String,default:null,validator:t=>Xn.includes(t)},openWithArrowKeys:{type:Boolean,default:!1},popoverOffset:{type:Array,default:()=>[0,4]},popoverSticky:{type:[Boolean,String],default:!1},hasSuggestionList:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},emptyList:{type:Boolean,default:!1},emptyStateMessage:{type:String,default:""},appendTo:{type:[HTMLElement,String],default:"body",validator:t=>Zt.includes(t)||t instanceof HTMLElement},transition:{type:String,default:"fade"}},emits:["select","escape","highlight","opened"],data(){return{DROPDOWN_PADDING_CLASSES:lt,isListShown:!1,isInputFocused:!1,isListFocused:!1,externalAnchor:V()}},computed:{comboboxListeners(){return{...this.$listeners,select:this.onSelect,escape:this.onEscape,highlight:this.onHighlight}}},watch:{showList:{handler:function(t){t!==null&&(this.isListShown=t)},immediate:!0},isListShown(t){t?window.addEventListener("mousedown",this.onFocusOut):window.removeEventListener("mousedown",this.onFocusOut),this.onOpened(t)}},methods:{handleDisplayList(t){!this.hasSuggestionList&&t&&this.showComboboxList(),!this.hasSuggestionList&&!t&&this.closeComboboxList()},showComboboxList(){this.showList==null&&(this.isListShown=!0)},closeComboboxList(){this.showList==null&&(this.isListShown=!1)},onSelect(t){this.loading||(this.$emit("select",t),this.hasSuggestionList||this.closeComboboxList())},onEscape(){this.$emit("escape"),this.closeComboboxList()},onHighlight(t){this.loading||this.$emit("highlight",t)},onOpened(t){this.$emit("opened",t)},onFocusIn(t){var e;this.hasSuggestionList&&t&&((e=this.$refs.input)==null?void 0:e.querySelector("input"))===t.target&&this.showComboboxList()},onFocusOut(t){var i,a,o;const e=(a=(i=this.$refs.popover)==null?void 0:i.tip)==null?void 0:a.popper,n=this.$refs.input;(o=t.composedPath())!=null&&o.some(p=>[e,n].includes(p))||this.closeComboboxList()},openOnArrowKeyPress(){this.showList!==null||this.isListShown||!this.openWithArrowKeys||this.showComboboxList()}}};var qp=function(){var e=this,n=e._self._c;return n("dt-combobox",e._g({ref:"combobox",attrs:{loading:e.loading,label:e.label,"label-visible":e.labelVisible,size:e.size,description:e.description,"empty-list":e.emptyList,"empty-state-message":e.emptyStateMessage,"show-list":e.isListShown,"on-beginning-of-list":e.onBeginningOfList,"on-end-of-list":e.onEndOfList,"list-rendered-outside":!0,"list-id":e.listId,"data-qa":"dt-combobox"},scopedSlots:e._u([{key:"input",fn:function({inputProps:i}){return[n("div",{ref:"input",attrs:{id:e.externalAnchor},on:{focusin:e.onFocusIn,keydown:[function(a){return!a.type.indexOf("key")&&e._k(a.keyCode,"up",38,a.key,["Up","ArrowUp"])?null:e.openOnArrowKeyPress(a)},function(a){return!a.type.indexOf("key")&&e._k(a.keyCode,"down",40,a.key,["Down","ArrowDown"])?null:e.openOnArrowKeyPress(a)}]}},[e._t("input",null,{inputProps:i,onInput:e.handleDisplayList})],2)]}},{key:"list",fn:function({opened:i,listProps:a,clearHighlightIndex:o}){return[n("dt-popover",{ref:"popover",attrs:{open:e.isListShown,"hide-on-click":!1,"max-height":e.maxHeight,"max-width":e.maxWidth,offset:e.popoverOffset,sticky:e.popoverSticky,placement:"bottom-start","initial-focus-element":"none",padding:"none",role:"listbox","external-anchor":e.externalAnchor,"content-width":e.contentWidth,"content-tabindex":null,modal:!1,"auto-focus":!1,"append-to":e.appendTo,transition:e.transition,"visually-hidden-close-label":e.visuallyHiddenCloseLabel,"visually-hidden-close":e.visuallyHiddenClose},on:{"update:open":function(p){e.isListShown=p},opened:function(p){return i(p,arguments[1])}},scopedSlots:e._u([{key:"headerContent",fn:function(){return[e.$slots.header?n("div",{ref:"header"},[e._t("header")],2):e._e()]},proxy:!0},{key:"content",fn:function(){return[n("div",{ref:"listWrapper",class:[e.DROPDOWN_PADDING_CLASSES[e.padding],e.listClass],on:{mouseleave:o,focusout:o}},[e.loading?n("combobox-loading-list",e._b({},"combobox-loading-list",a,!1)):e.emptyList&&e.emptyStateMessage?n("combobox-empty-list",e._b({attrs:{message:e.emptyStateMessage}},"combobox-empty-list",a,!1)):e._t("list",null,{listProps:a})],2)]},proxy:!0},{key:"footerContent",fn:function(){return[e.$slots.footer?n("div",{ref:"footer"},[e._t("footer")],2):e._e()]},proxy:!0}],null,!0)})]}}],null,!0)},e.comboboxListeners))},Gp=[],Kp=_.normalizeComponent(Hp,qp,Gp,!1,null,null,null,null);const ia=Kp.exports,sa={EXTRA_SMALL:"xs",SMALL:"sm",DEFAULT:"md"},Up={xs:"xs",sm:"xs",md:"sm"},Wp={xs:1.4,sm:.4,md:.2},Yp={name:"DtRecipeComboboxMultiSelect",components:{DtRecipeComboboxWithPopover:ia,DtInput:zs,DtChip:ii,DtValidationMessages:we},mixins:[ge],props:{label:{type:String,required:!0},labelVisible:{type:Boolean,default:!0},description:{type:String,default:""},placeholder:{type:String,default:"Select one or start typing"},inputMessages:{type:Array,default:()=>[],validator:t=>St(t)},showInputMessages:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},loadingMessage:{type:String,default:"loading..."},showList:{type:Boolean,default:null},listMaxHeight:{type:String,default:"300px"},selectedItems:{type:Array,default:function(){return[]}},maxSelected:{type:Number,default:0},maxSelectedMessage:{type:Array,default:function(){return[]}},hasSuggestionList:{type:Boolean,default:!0},size:{type:String,default:"md",validator:t=>Object.values(sa).includes(t)},appendTo:{type:[HTMLElement,String],default:"body",validator:t=>Zt.includes(t)||t instanceof HTMLElement},transition:{type:String,default:"fade"}},emits:["input","select","remove","max-selected"],data(){return{value:"",popoverOffset:[0,4],showValidationMessages:!1,initialInputPadding:{},resizeWindowObserver:null,originalInputSize:null,CHIP_SIZES:Up}},computed:{inputPlaceHolder(){var t;return((t=this.selectedItems)==null?void 0:t.length)>0?"":this.placeholder},chipListeners(){return{...this.$listeners,keyup:t=>{this.onChipKeyup(t),this.$emit("keyup",t)}}},inputListeners(){return{...this.$listeners,input:t=>{this.$emit("input",t),this.hasSuggestionList&&this.showComboboxList()},keyup:t=>{this.onInputKeyup(t),this.$emit("keyup",t)},click:t=>{this.hasSuggestionList&&this.showComboboxList()}}}},watch:{selectedItems:{immediate:!0,async handler(){await this.$nextTick(),this.setInputPadding(),this.setChipsTopPosition(),this.setInputMinWidth(),this.checkMaxSelected()}},async label(){await this.$nextTick(),this.setChipsTopPosition()},async description(){await this.$nextTick(),this.setChipsTopPosition()},size:{async handler(){await this.$nextTick();const t=this.getInput();this.revertInputPadding(t),this.originalInputSize=t.getBoundingClientRect().height,this.setInputPadding(),this.setChipsTopPosition()},immediate:!0}},mounted(){this.resizeWindowObserver=new ResizeObserver(async()=>{this.setChipsTopPosition(),this.setInputPadding()}),this.resizeWindowObserver.observe(document.body)},beforeDestroy(){var t;(t=this.resizeWindowObserver)==null||t.unobserve(document.body)},methods:{onChipRemove(t){var e;this.$emit("remove",t),(e=this.$refs.input)==null||e.focus()},onComboboxSelect(t){this.value="",this.$emit("select",t)},showComboboxList(){var t;this.showList==null&&((t=this.$refs.comboboxWithPopover)==null||t.showComboboxList())},closeComboboxList(){var t;this.showList==null&&((t=this.$refs.comboboxWithPopover)==null||t.closeComboboxList())},getChipButtons(){return this.$refs.chips&&this.$refs.chips.map(t=>t.$el.querySelector("button"))},getChips(){return this.$refs.chips&&this.$refs.chips.map(t=>t.$el)},getLastChipButton(){return this.$refs.chips&&this.getChipButtons()[this.getChipButtons().length-1]},getLastChip(){return this.$refs.chips&&this.getChips()[this.getChips().length-1]},getFirstChip(){return this.$refs.chips&&this.getChips()[0]},getInput(){var t;return(t=this.$refs.input)==null?void 0:t.$refs.input},onChipKeyup(t){var n;const e=(n=t.code)==null?void 0:n.toLowerCase();e==="arrowleft"?this.navigateBetweenChips(t.target,!0):e==="arrowright"&&(t.target.id===this.getLastChipButton().id?this.moveFromChipToInput():this.navigateBetweenChips(t.target,!1))},onInputKeyup(t){var n;const e=(n=t.code)==null?void 0:n.toLowerCase();this.selectedItems.length>0&&t.target.selectionStart===0&&(e==="backspace"||e==="arrowleft")&&this.moveFromInputToChip()},moveFromInputToChip(){var t;this.getLastChipButton().focus(),(t=this.$refs.input)==null||t.blur(),this.closeComboboxList()},moveFromChipToInput(){var t;this.getLastChipButton().blur(),(t=this.$refs.input)==null||t.focus(),this.showComboboxList()},navigateBetweenChips(t,e){var a;const n=this.getChipButtons().indexOf(t),i=e?n-1:n+1;i<0||i>=((a=this.$refs.chips)==null?void 0:a.length)||(this.getChipButtons()[n].blur(),this.getChipButtons()[i].focus(),this.closeComboboxList())},setChipsTopPosition(){const t=this.getInput();if(!t)return;const e=this.$refs.inputSlotWrapper,n=t.getBoundingClientRect().top-e.getBoundingClientRect().top,i=this.$refs.chipsWrapper;i.style.top=n-Wp[this.size]+"px"},setInputPadding(){const t=this.getLastChip(),e=this.getInput(),n=this.$refs.chipsWrapper;if(!e||(this.revertInputPadding(e),this.popoverOffset=[0,4],!t))return;const i=t.offsetLeft+this.getFullWidth(t);e.style.paddingLeft=i+"px";const a=n.getBoundingClientRect().height-4,o=t.offsetTop+2;a>this.originalInputSize&&(e.style.paddingTop=`${o}px`)},revertInputPadding(t){t.style.paddingLeft="",t.style.paddingTop="",t.style.paddingBottom=""},getFullWidth(t){const e=window.getComputedStyle(t);return t.offsetWidth+parseInt(e.marginLeft)+parseInt(e.marginRight)},setInputMinWidth(){const t=this.getFirstChip(),e=this.getInput();e&&(t?e.style.minWidth=this.getFullWidth(t)+4+"px":e.style.minWidth="")},checkMaxSelected(){this.maxSelected!==0&&(this.selectedItems.length>this.maxSelected?(this.showValidationMessages=!0,this.$emit("max-selected")):this.showValidationMessages=!1)}}};var Zp=function(){var e=this,n=e._self._c;return n("dt-recipe-combobox-with-popover",{ref:"comboboxWithPopover",attrs:{label:e.label,"show-list":e.showList,"max-height":e.listMaxHeight,"popover-offset":e.popoverOffset,"has-suggestion-list":e.hasSuggestionList,"visually-hidden-close-label":e.visuallyHiddenCloseLabel,"visually-hidden-close":e.visuallyHiddenClose,"content-width":"anchor","append-to":e.appendTo,transition:e.transition},on:{select:e.onComboboxSelect},scopedSlots:e._u([{key:"input",fn:function({onInput:i}){return[n("span",{ref:"inputSlotWrapper",staticClass:"d-ps-relative d-d-block"},[n("span",{ref:"chipsWrapper",staticClass:"d-ps-absolute d-mx2 d-pl1"},e._l(e.selectedItems,function(a){return n("dt-chip",e._g({key:a.id,ref:"chips",refInFor:!0,class:["d-mt4","d-mx2","d-zi-base1"],attrs:{"label-class":["d-chip__label"],"close-button-props":{ariaLabel:"close"},size:e.CHIP_SIZES[e.size]},on:{keyup:function(o){return!o.type.indexOf("key")&&e._k(o.keyCode,"backspace",void 0,o.key,void 0)?null:e.onChipRemove(a)},close:function(o){return e.onChipRemove(a)}}},e.chipListeners),[e._v(" "+e._s(a)+" ")])}),1),n("dt-input",e._g({ref:"input",staticClass:"d-fl-grow1",attrs:{"aria-label":e.label,label:e.labelVisible?e.label:"",description:e.description,placeholder:e.inputPlaceHolder,"show-messages":e.showInputMessages,messages:e.inputMessages,size:e.size},on:{input:i},model:{value:e.value,callback:function(a){e.value=a},expression:"value"}},e.inputListeners)),n("dt-validation-messages",{attrs:{"validation-messages":e.maxSelectedMessage,"show-messages":e.showValidationMessages}})],1)]}},{key:"header",fn:function(){return[e.$slots.header?n("div",{ref:"header"},[e._t("header")],2):e._e()]},proxy:!0},{key:"list",fn:function(){return[n("div",{ref:"list",on:{mousedown:function(i){i.preventDefault()}}},[e.loading?n("div",{staticClass:"d-ta-center d-py16"},[e._v(" "+e._s(e.loadingMessage)+" ")]):e._t("list")],2)]},proxy:!0},{key:"footer",fn:function(){return[e.$slots.footer?n("div",{ref:"footer"},[e._t("footer")],2):e._e()]},proxy:!0}],null,!0)})},Xp=[],Qp=_.normalizeComponent(Yp,Zp,Xp,!1,null,null,null,null);const Jp=Qp.exports,ri=["sm","md","lg","xl"];const ef={name:"DtRecipeCallbarButton",components:{DtButton:q,DtTooltip:Jt},inheritAttrs:!0,props:{id:{type:String,default(){return ae.getUniqueString()}},active:{type:Boolean,default:!1},danger:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},circle:{type:Boolean,default:!1},ariaLabel:{type:String,default:null,validator:t=>t||globalThis.$slots.default},buttonClass:{type:[String,Array,Object],default:""},textClass:{type:[String,Array,Object],default:""},buttonWidthSize:{type:String,default:"xl",validator:t=>ri.includes(t)},importance:{type:String,default:""}},emits:["click"],computed:{callbarButtonClass(){return[this.buttonClass,"dt-recipe-callbar-button","d-px0",{"dt-recipe-callbar-button--circle":this.circle,"dt-recipe-callbar-button--active":this.active,"dt-recipe-callbar-button--danger":this.danger,"d-btn--disabled d-bgc-transparent":this.disabled,"d-fc-primary":!this.disabled}]},callbarButtonTextClass(){return["d-fs-100 lg:d-d-none md:d-d-none sm:d-d-none",this.textClass]},buttonWidth(){switch(this.buttonWidthSize){case"sm":return"4.5rem";case"md":return"6rem";default:return"8.4rem"}},buttonImportance(){return this.importance?this.importance:this.circle?"outlined":"clear"}}};var tf=function(){var e=this,n=e._self._c;return n("dt-tooltip",{attrs:{id:e.id,offset:[0,8]},scopedSlots:e._u([{key:"anchor",fn:function(){return[n("span",{class:{"d-c-not-allowed":e.disabled}},[n("dt-button",e._g({class:e.callbarButtonClass,attrs:{importance:e.buttonImportance,kind:"muted","icon-position":"top","aria-disabled":e.disabled,"aria-label":e.ariaLabel,"label-class":e.callbarButtonTextClass,width:e.buttonWidth}},e.$listeners),[e._t("default"),e._t("icon",null,{slot:"icon"})],2)],1)]},proxy:!0}],null,!0)},[e._t("tooltip")],2)},nf=[],sf=_.normalizeComponent(ef,tf,nf,!1,null,null,null,null);const aa=sf.exports;const af={name:"DtRecipeCallbarButtonWithPopover",components:{DtRecipeCallbarButton:aa,DtPopover:Xt,DtButton:q,DtIcon:M},inheritAttrs:!1,props:{id:{type:String,default(){return ae.getUniqueString()}},ariaLabel:{type:String,default:null,validator:t=>t||globalThis.$slots.default},arrowButtonLabel:{type:String,required:!0,validator:t=>!!t},placement:{type:String,default:"top"},initialFocusElement:{type:String,default:"first"},showCloseButton:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},forceShowArrow:{type:Boolean,default:!1},active:{type:Boolean,default:!1},danger:{type:Boolean,default:!1},buttonClass:{type:[String,Array,Object],default:""},textClass:{type:[String,Array,Object],default:""},buttonWidthSize:{type:String,default:"xl",validator:t=>ri.includes(t)},contentClass:{type:[String,Array,Object],default:""}},emits:["arrowClick","click"],data(){return{open:!1}},computed:{showArrowButton(){return this.forceShowArrow||!this.disabled},isCompactMode(){return this.buttonWidthSize==="sm"||this.buttonWidthSize==="md"}},methods:{arrowClick(t){return this.$emit("arrowClick",t),this.open=!this.open},buttonClick(t){this.$listeners.click?this.$emit("click",t):this.arrowClick(t)},onModalIsOpened(t){this.open=t}}};var rf=function(){var e=this,n=e._self._c;return n("div",{staticClass:"d-d-flex d-ai-center"},[n("dt-recipe-callbar-button",{staticClass:"dt-recipe--callbar-button-with-popover--main-button",attrs:{"aria-label":e.ariaLabel,disabled:e.disabled,active:e.active,danger:e.danger,"button-class":e.buttonClass,"button-width-size":e.buttonWidthSize,"text-class":e.textClass},on:{click:e.buttonClick}},[e._t("icon",null,{slot:"icon"}),e._t("tooltip",null,{slot:"tooltip"}),e._t("default")],2),e.showArrowButton?n("dt-popover",e._b({staticClass:"dt-recipe--callbar-button-with-popover--popover-wrapper",attrs:{id:e.id,open:e.open,placement:e.placement,"initial-focus-element":e.initialFocusElement,"show-close-button":e.showCloseButton,offset:[0,16],padding:"none","dialog-class":["dt-recipe--callbar-button-with-popover--popover",e.contentClass],"header-class":"d-d-flex d-ai-center d-fw-normal d-px12"},on:{opened:e.onModalIsOpened},scopedSlots:e._u([{key:"anchor",fn:function(){return[n("dt-button",{class:["dt-recipe--callbar-button-with-popover--arrow",{"d-mln24":!e.isCompactMode}],attrs:{circle:"",importance:"clear",size:"lg",width:"2rem","aria-label":e.arrowButtonLabel,active:e.open},on:{click:e.arrowClick},scopedSlots:e._u([{key:"icon",fn:function(){return[n("dt-icon",{attrs:{name:"chevron-up",size:"200"}})]},proxy:!0}],null,!1,3340821372)})]},proxy:!0}],null,!1,384931042)},"dt-popover",e.$attrs,!1),[e._t("content",null,{slot:"content"}),e._t("headerContent",null,{slot:"headerContent"}),e._t("footerContent",null,{slot:"footerContent"})],2):e._e()],1)},of=[],lf=_.normalizeComponent(af,rf,of,!1,null,null,null,null);const df=lf.exports,cf={name:"DtRecipeContactInfo",components:{DtAvatar:Kt,DtListItem:gt},props:{id:{type:String,default(){return ae.getUniqueString()}},role:{type:String,default:""},avatarSrc:{type:String,default:""},avatarSeed:{type:String,default:null},avatarInitials:{type:String,default:""},avatarSize:{type:String,default:"lg"},presence:{type:String,default:null},avatarList:{type:Array,default:null}}};var uf=function(){var e=this,n=e._self._c;return n("dt-list-item",{attrs:{id:e.id,role:e.role,"element-type":"div","data-qa":"contact-info"},scopedSlots:e._u([{key:"left",fn:function(){return[n("div",{staticClass:"d-ps-relative",attrs:{"data-qa":"contact-info-left"}},[e.avatarList?n("div",{staticClass:"d-mrn4 d-d-flex d-fd-row"},e._l(e.avatarList,function(i,a){return n("div",{key:a},[i.src?n("dt-avatar",{attrs:{size:e.avatarSize,seed:i.seed,initials:i.initials,"overlay-icon":i.icon,"overlay-text":i.text,"overlay-class":"d-mn4 d-ba d-baw4 d-bc-white d-box-unset","avatar-class":["d-ba d-baw4 d-bc-white d-bar-pill",{"d-mln24":a>0}]}},[n("img",{attrs:{"data-qa":"dt-contact-avatar",src:i.src,alt:i.initials}})]):i.initials?n("dt-avatar",{attrs:{size:e.avatarSize,seed:i.seed,initials:i.initials,"overlay-icon":i.icon,"overlay-text":i.text,"overlay-class":"d-mn4 d-ba d-baw4 d-bc-white d-box-unset","avatar-class":["d-ba d-baw4 d-bc-white d-bar-pill",{"d-mln24":a>0}]}},[e._v(" "+e._s(i.initials)+" ")]):e._e()],1)}),0):e.avatarSrc?n("dt-avatar",{attrs:{size:e.avatarSize,initials:e.avatarInitials,seed:e.avatarSeed,presence:e.presence}},[n("img",{attrs:{"data-qa":"dt-contact-avatar",src:e.avatarSrc,initials:e.avatarInitials,seed:e.avatarSeed,alt:e.avatarInitials}})]):e.avatarInitials?n("dt-avatar",{attrs:{size:e.avatarSize,initials:e.avatarInitials,seed:e.avatarSeed,presence:e.presence}},[e._v(" "+e._s(e.avatarInitials)+" ")]):e._e()],1)]},proxy:!0},{key:"default",fn:function(){return[n("div",{attrs:{"data-qa":"contact-info-header"}},[e._t("header")],2)]},proxy:!0},{key:"subtitle",fn:function(){return[n("div",{attrs:{"data-qa":"contact-info-subtitle"}},[e._t("subtitle")],2)]},proxy:!0},{key:"bottom",fn:function(){return[n("div",{attrs:{"data-qa":"contact-info-bottom"}},[e._t("bottom")],2)]},proxy:!0},{key:"right",fn:function(){return[n("div",{attrs:{"data-qa":"contact-info-right"}},[e._t("right")],2)]},proxy:!0}],null,!0)})},pf=[],ff=_.normalizeComponent(cf,uf,pf,!1,null,null,null,null);const hf=ff.exports,ra=["green300","green100","red200","red100","gold100","gold200","black100","white"];const mf={name:"DtRecipeTopBannerInfo",props:{colorCode:{type:String,default:"green300",validator:function(t){return ra.includes(t)}}},computed:{bannerInfoClass(){return[{green300:"d-bgc-success",green100:"d-bgc-success",red200:"d-bgc-critical",red100:"d-bgc-critical",gold200:"d-bgc-warning",gold100:"d-bgc-warning",black100:"d-bgc-info",white:"d-bgc-primary"}[this.colorCode]]}}};var _f=function(){var e=this,n=e._self._c;return n("div",{staticClass:"d-fs-100 d-d-flex d-top-banner-info d-jc-space-between d-ai-center d-fc-primary",class:e.bannerInfoClass,attrs:{"data-qa":"banner-info"}},[n("div",{staticClass:"d-top-banner-info__left"},[e._t("left")],2),n("div",{staticClass:"d-top-banner-info__middle d-my4"},[e._t("default")],2),n("div",{staticClass:"d-top-banner-info__right d-ta-right"},[e._t("right")],2)])},gf=[],vf=_.normalizeComponent(mf,_f,gf,!1,null,null,null,null);const bf=vf.exports,en="promptmenu",tn="promptcollect",nn="promptplay",sn="gotoexpert",Ct="goto",an="branch",rn="transfer",on="hangup",oa={[en]:"keypad",[tn]:"dialer",[nn]:"volume-2",[sn]:"expert-node",[an]:"branch",[Ct]:"call-merge",[rn]:"transfer",[on]:"phone-hang-up"},yf={[en]:"Menu",[tn]:"Collect",[nn]:"Play",[sn]:"Expert",[an]:"Branch",[Ct]:"Go-to",[rn]:"Transfer",[on]:"Hangup"},Se={PROMPT:{normal:"d-bc-blue-200",selected:"d-bc-blue-300"},LOGIC:{normal:"d-bc-purple-200",selected:"d-bc-purple-400"},TERMINAL:{normal:"d-bc-red-100",selected:"d-bc-red-200"}},Sf={[en]:Se.PROMPT,[tn]:Se.PROMPT,[nn]:Se.PROMPT,[sn]:Se.LOGIC,[an]:Se.LOGIC,[Ct]:Se.LOGIC,[rn]:Se.TERMINAL,[on]:Se.TERMINAL};const Cf={name:"DtRecipeIvrNode",components:{DtCard:ls,DtButton:q,DtDropdown:js,DtIcon:M},props:{nodeType:{type:String,required:!0},nodeLabel:{type:String,required:!0},isSelected:{type:Boolean,default:!1},menuButtonAriaLabel:{type:String,required:!0},dtmfKey:{type:String,default:null}},emits:["click"],data(){return{isOpen:!1}},computed:{nodeIcon(){return oa[this.nodeType]},headerColor(){const{normal:t,selected:e}=Sf[this.nodeType];return this.isSelected?e:t},isGotoNode(){return this.nodeType===Ct}},methods:{openMenu(){this.isOpen=!0}}};var xf=function(){var e=this,n=e._self._c;return n("div",e._g({staticClass:"d-d-flex d-fd-column d-ai-center d-c-pointer ivr_node__width"},e.$listeners),[e.dtmfKey?n("div",{staticClass:"ivr-connector d-w24 d-h24 d-bar-circle d-mbn12 d-fc-white d-fs-200",class:{"d-mbn16":e.isSelected},attrs:{"data-qa":"dt-top-connector-dtmf"}},[e._v(" "+e._s(e.dtmfKey)+" ")]):e._e(),e.$slots.connector?e._t("connector"):e._e(),!e.dtmfKey&&!e.$slots.connector?n("div",{staticClass:"ivr-connector d-w8 d-h8 d-bar-circle d-mbn4",class:{"d-mbn8":e.isSelected},attrs:{"data-qa":"dt-top-connector"}}):e._e(),n("dt-card",{attrs:{"content-class":"d-bt d-bc-black-300 d-px12 d-pt8 d-pb12","container-class":["d-w100p",{"d-ba d-bar8 d-baw4":e.isSelected},e.headerColor],"header-class":["d-mtn1","d-bt","d-btw4","d-p0",e.headerColor,{"d-btr4":!e.isSelected}]},scopedSlots:e._u([{key:"header",fn:function(){return[n("div",{staticClass:"d-d-flex d-ai-center"},[n("dt-button",{attrs:{"aria-label":e.nodeType,importance:"clear",kind:"muted","data-qa":"dt-ivr-node-icon"},scopedSlots:e._u([{key:"icon",fn:function(){return[n("dt-icon",{class:["",{ivr_node__goto_icon:e.isGotoNode}],attrs:{name:e.nodeIcon,size:"200"}})]},proxy:!0}])}),n("p",{staticClass:"d-fs-200 d-fw-bold",attrs:{"data-qa":"ivr-node-label"}},[e._v(" "+e._s(e.nodeLabel)+" ")])],1),n("dt-dropdown",{attrs:{placement:"bottom",open:e.isOpen},on:{"update:open":function(i){e.isOpen=i}},scopedSlots:e._u([{key:"anchor",fn:function(){return[n("dt-button",{attrs:{importance:"clear",kind:"muted","aria-label":e.menuButtonAriaLabel},on:{click:function(i){return i.stopPropagation(),i.preventDefault(),e.openMenu.apply(null,arguments)}},scopedSlots:e._u([{key:"icon",fn:function(){return[n("dt-icon",{attrs:{name:"more-vertical",size:"200"}})]},proxy:!0}])})]},proxy:!0},{key:"list",fn:function({close:i}){return[n("div",{staticClass:"d-w164"},[e._t("menuItems",null,{close:i})],2)]}}],null,!0)})]},proxy:!0},{key:"content",fn:function(){return[e._t("content")]},proxy:!0}],null,!0)})],2)},wf=[],Ef=_.normalizeComponent(Cf,xf,wf,!1,null,null,null,null);const If=Ef.exports;const Of={name:"DtRecipeGroupedChip",components:{DtChip:ii},computed:{}};var Tf=function(){var e=this,n=e._self._c;return n("div",{staticClass:"d-d-inline-flex d-ws-nowrap d-bgc-unset",attrs:{"data-qa":"grouped-chip"}},[n("dt-chip",{staticClass:"d-blr-pill d-bgc-moderate-opaque d-wmx84 dt-chip-content",attrs:{"hide-close":!0,interactive:!1,"content-class":"d-fs100",size:"xs","grouped-chip":!0},scopedSlots:e._u([e.$slots.leftIcon?{key:"icon",fn:function(){return[e.$slots.leftIcon?n("div",{attrs:{"data-qa":"left-grouped-chip-icon"}},[e._t("leftIcon")],2):e._e()]},proxy:!0}:null,{key:"default",fn:function(){return[e.$slots.leftContent?n("div",{attrs:{"data-qa":"left-grouped-chip-content"}},[e._t("leftContent")],2):e._e()]},proxy:!0}],null,!0)}),n("dt-chip",{staticClass:"d-brr-pill d-bgc-purple-200 d-wmx84 dt-chip-content",attrs:{"hide-close":!0,interactive:!1,"content-class":"d-fs100",size:"xs","grouped-chip":!0},scopedSlots:e._u([{key:"icon",fn:function(){return[e.$slots.rightIcon?n("div",{attrs:{"data-qa":"right-grouped-chip-icon"}},[e._t("rightIcon")],2):e._e()]},proxy:!0},{key:"default",fn:function(){return[e.$slots.rightContent?n("div",{attrs:{"data-qa":"right-grouped-chip-content"}},[e._t("rightContent")],2):e._e()]},proxy:!0}],null,!0)})],1)},Lf=[],Af=_.normalizeComponent(Of,Tf,Lf,!1,null,null,null,null);const $f=Af.exports;const Df={name:"DtRecipeSettingsMenuButton",components:{DtButton:q,DtIcon:M},props:{updateAvailable:{type:Boolean,default:!1},ariaLabel:{type:String,required:!0}},emits:["click"]};var Rf=function(){var e=this,n=e._self._c;return e.updateAvailable?n("dt-button",e._g({staticClass:"d-h32 d-bar-pill d-bgc-blue-200 d-bgo25 h:d-bgo50 d-bc-blue-500 d-bco25 d-fc-blue-500",attrs:{importance:"outlined",size:"xs","icon-position":"right","aria-label":e.ariaLabel},scopedSlots:e._u([{key:"icon",fn:function(){return[n("dt-icon",{staticClass:"d-fc-blue-500",attrs:{name:"more-vertical",size:"300"}})]},proxy:!0}],null,!1,993491315)},e.$listeners),[e._t("default")],2):n("dt-button",e._g({staticClass:"settings-menu-button d-p0 d-bar24 d-h32 d-w24 d-theme-topbar-fc",attrs:{importance:"clear",kind:"inverted","aria-label":e.ariaLabel},scopedSlots:e._u([{key:"icon",fn:function(){return[n("dt-icon",{attrs:{name:"more-vertical",size:"300"}})]},proxy:!0}])},e.$listeners))},kf=[],Pf=_.normalizeComponent(Df,Rf,kf,!1,null,"5f15fa46",null,null);const Nf=Pf.exports,F={INBOX:"inbox",CONTACTS:"contacts",CHANNELS:"channels",THREADS:"threads",LOCKED_CHANNEL:"locked channel",CONTACT_CENTER:"contact center",QUICK_START:"quick start",COACHING_GROUP:"coaching group",COACHING_CENTER:"coaching center",DIALBOT:"dialbot",ASSIGNED:"assigned",DIGITAL:"digital"},la={[F.INBOX]:"inbox",[F.CONTACTS]:"contacts",[F.CHANNELS]:"hash",[F.THREADS]:"thread",[F.LOCKED_CHANNEL]:"lock",[F.QUICK_START]:"sparkle",[F.COACHING_GROUP]:"users",[F.COACHING_CENTER]:"external-link","locked channel unread":"lock-filled","channel unread":"hash-bold",[F.ASSIGNED]:"at-sign",[F.DIGITAL]:"message"},mt={"magenta-200":"d-bgc-magenta-200","green-200":"d-bgc-green-200","gold-300":"d-bgc-gold-300","purple-600":"d-bgc-purple-600","magenta-300":"d-bgc-magenta-300","purple-300":"d-bgc-purple-300","green-500":"d-bgc-green-500","purple-100":"d-bgc-purple-100","magenta-400":"d-bgc-magenta-400","magenta-100":"d-bgc-magenta-100"},da="If type is contact center, color must be oneof the following:"+Object.keys(mt).join(", "),ca=["300","200"],Bf={};var Mf=function(){var e=this,n=e._self._c;return n("svg",{staticClass:"d-svg d-svg--native d-svg__dialbot",attrs:{"aria-hidden":"true",focusable:"false","aria-label":"Dialbot",width:"358",height:"358",viewBox:"0 0 358 358",fill:"none"}},[n("circle",{attrs:{cx:"179",cy:"179",r:"179",fill:"url(#paint0_linear_4_44)"}}),n("path",{attrs:{d:"M179 268.5v-11.933V268.5Zm86.517 0v11.933h19.308l-8.635-17.27-10.673 5.337Zm-16.73-33.459-9.3-7.478-4.797 5.967 3.424 6.848 10.673-5.337ZM179 101.433c42.839 0 77.567 34.728 77.567 77.567h23.866c0-56.02-45.413-101.433-101.433-101.433v23.866ZM101.433 179c0-42.839 34.728-77.567 77.567-77.567V77.567C122.98 77.567 77.567 122.98 77.567 179h23.866ZM179 256.567c-42.839 0-77.567-34.728-77.567-77.567H77.567c0 56.02 45.413 101.433 101.433 101.433v-23.866Zm86.517 0H179v23.866h86.517v-23.866Zm-27.403-16.189 16.729 33.459 21.347-10.674-16.729-33.459-21.347 10.674ZM256.567 179c0 18.396-6.39 35.268-17.08 48.563l18.6 14.955c13.975-17.38 22.346-39.488 22.346-63.518h-23.866Z",fill:"white"}}),n("path",{attrs:{d:"M226.733 202.867c-6.527 5.701-13.942 10.11-22.243 13.226-8.302 3.116-16.781 4.674-25.437 4.674-8.727 0-17.241-1.558-25.543-4.674-8.301-3.116-15.716-7.525-22.243-13.226v-11.934c4.399 2.652 9.365 4.939 14.9 6.862a112.163 112.163 0 0 0 16.815 4.674c5.748 1.127 11.105 1.69 16.071 1.69 5.038 0 10.395-.563 16.071-1.69a112.209 112.209 0 0 0 16.816-4.674c5.534-1.923 10.465-4.21 14.793-6.862v11.934Z",fill:"white"}}),n("defs",[n("linearGradient",{attrs:{id:"paint0_linear_4_44",x1:"0",y1:"0",x2:"358",y2:"358",gradientUnits:"userSpaceOnUse"}},[n("stop",{attrs:{"stop-color":"#7C52FF"}}),n("stop",{attrs:{offset:"1","stop-color":"#F9008E"}})],1)],1)])},Ff=[],Vf=_.normalizeComponent(Bf,Mf,Ff,!1,null,null,null,null);const jf=Vf.exports,zf={name:"DtRecipeLeftbarGeneralRowIcon",components:{DtIcon:M,IconDialbot:jf},props:{type:{type:String,default:null},color:{type:String,default:null},iconSize:{type:String,default:"300"}},computed:{isIconType(){return![F.DIALBOT,F.CONTACT_CENTER].includes(this.type)},isContactCenterType(){return this.type===F.CONTACT_CENTER},isDialbotType(){return this.type===F.DIALBOT},getIconName(){return la[this.type]},contactCenterIconClasses(){return["dt-leftbar-row__icon-cc",mt[this.color]]},dialbotClasses(){return["d-w24","d-h24","d-d-flex","d-ai-center","d-jc-center"]}}};var Hf=function(){var e=this,n=e._self._c;return e.isIconType?n("dt-icon",{attrs:{name:e.getIconName,size:e.iconSize}}):e.isContactCenterType?n("div",{class:e.contactCenterIconClasses}):e.isDialbotType?n("div",{class:e.dialbotClasses,attrs:{"data-qa":"general-row-dialbot"}},[n("icon-dialbot",{staticClass:"d-svg--size24"})],1):e._e()},qf=[],Gf=_.normalizeComponent(zf,Hf,qf,!1,null,null,null,null);const Kf=Gf.exports;const Uf={name:"DtRecipeGeneralRow",components:{DtEmojiTextWrapper:_.DtEmojiTextWrapper,DtBadge:Ji,DtIcon:M,DtButton:q,DtTooltip:Jt,DtRecipeLeftbarGeneralRowIcon:Kf},inheritAttrs:!1,props:{type:{type:String,default:"inbox",validator:t=>Object.values(F).includes(t)},ariaLabel:{type:String,default:""},description:{type:String,required:!0},color:{type:String,default:null,validator:t=>Object.keys(mt).includes(t)},hasUnreads:{type:Boolean,default:!1},unreadCount:{type:String,default:null},unreadCountTooltip:{type:String,default:""},selected:{type:Boolean,default:!1},muted:{type:Boolean,default:!1},activeVoiceChat:{type:Boolean,default:!1},dndText:{type:String,default:""},dndTextTooltip:{type:String,default:""},hasCallButton:{type:Boolean,default:!1},callButtonTooltip:{type:String,default:""},isTyping:{type:Boolean,default:!1},iconSize:{type:String,default:"300",validator:t=>ca.includes(t)}},emits:["click","call"],data(){return{actionFocused:!1}},computed:{leftbarGeneralRowClasses(){return["dt-leftbar-row",{"dt-leftbar-row--no-action":!this.hasCallButton,"dt-leftbar-row--has-unread":this.hasUnreads,"dt-leftbar-row--selected":this.selected,"dt-leftbar-row--muted":this.muted,"dt-leftbar-row--action-focused":this.actionFocused}]},getIcon(){switch(this.type){case F.CHANNELS:if(this.hasUnreads)return"channel unread";break;case F.LOCKED_CHANNEL:if(this.hasUnreads)return"locked channel unread";break}return this.type},getAriaLabel(){return this.ariaLabel?this.ariaLabel:`${this.description} ${this.unreadCountTooltip} ${this.dndTextTooltip}`}},watch:{$props:{immediate:!0,deep:!0,handler(){this.validateProps()}}},methods:{validateProps(){this.type===F.CONTACT_CENTER&&!Object.keys(mt).includes(this.color)&&console.error(da)}}};var Wf=function(){var e=this,n=e._self._c;return n("div",{class:e.leftbarGeneralRowClasses,attrs:{"data-qa":"dt-leftbar-row"}},[n("a",e._g(e._b({staticClass:"dt-leftbar-row__primary",attrs:{"data-qa":"data-qa"in e.$attrs?e.$attrs["data-qa"]:"dt-leftbar-row-link","aria-label":e.getAriaLabel,title:e.description}},"a",e.$attrs,!1),e.$listeners),[n("div",{staticClass:"dt-leftbar-row__alpha"},[e.isTyping?n("div",{staticClass:"dt-leftbar-row__is-typing"},[n("span"),n("span"),n("span")]):e._t("left",function(){return[n("dt-recipe-leftbar-general-row-icon",{attrs:{type:e.getIcon,color:e.color,"icon-size":e.iconSize,"data-qa":"dt-leftbar-row-icon"}})]})],2),n("div",{staticClass:"dt-leftbar-row__label"},[e._t("label",function(){return[n("dt-emoji-text-wrapper",{staticClass:"dt-leftbar-row__description",attrs:{"data-qa":"dt-leftbar-row-description",size:"200"}},[e._v(" "+e._s(e.description)+" ")])]})],2),n("div",{staticClass:"dt-leftbar-row__omega"},[e.dndText?n("dt-tooltip",{attrs:{placement:"top",message:e.dndTextTooltip},scopedSlots:e._u([{key:"anchor",fn:function(){return[n("div",{staticClass:"dt-leftbar-row__dnd"},[e._v(" "+e._s(e.dndText)+" ")])]},proxy:!0}],null,!1,1506147022)}):e._e(),e.activeVoiceChat?n("div",{staticClass:"dt-leftbar-row__active-voice"},[n("dt-icon",{attrs:{size:"300",name:"activity"}})],1):e.unreadCount&&e.hasUnreads?n("dt-tooltip",{attrs:{message:e.unreadCountTooltip,placement:"top"},scopedSlots:e._u([{key:"anchor",fn:function(){return[n("dt-badge",{attrs:{kind:"count",type:"bulletin","data-qa":"dt-leftbar-row-unread-badge"}},[e._v(" "+e._s(e.unreadCount)+" ")])]},proxy:!0}])}):e._e()],1)]),e.hasCallButton?n("div",{staticClass:"dt-leftbar-row__action",attrs:{"data-qa":"dt-leftbar-row-action"}},[n("dt-tooltip",{attrs:{message:e.callButtonTooltip,placement:"top"},scopedSlots:e._u([{key:"anchor",fn:function(){return[n("dt-button",{staticClass:"dt-leftbar-row__action-button",attrs:{"data-qa":"dt-leftbar-row-action-call-button",circle:"",size:"xs",kind:"inverted","aria-label":e.callButtonTooltip},on:{focus:function(i){e.actionFocused=!0},blur:function(i){e.actionFocused=!1},mouseleave:function(i){e.actionFocused=!1},click:function(i){return i.stopPropagation(),e.$emit("call",i)}},scopedSlots:e._u([{key:"icon",fn:function(){return[n("dt-icon",{attrs:{name:"phone",size:"200"}})]},proxy:!0}],null,!1,990728611)})]},proxy:!0}],null,!1,4111698736)})],1):e._e()])},Yf=[],Zf=_.normalizeComponent(Uf,Wf,Yf,!1,null,null,null,null);const oi=Zf.exports,Xf={name:"DtRecipeGroupRow",components:{DtIcon:M,DtRecipeGeneralRow:oi},inheritAttrs:!1,props:{groupCountText:{type:String,default:""},names:{type:String,required:!0},unreadCount:{type:String,default:null},unreadCountTooltip:{type:String,default:null},hasUnreads:{type:Boolean,default:!1},selected:{type:Boolean,default:!1},isTyping:{type:Boolean,default:!1}},emits:["click"]};var Qf=function(){var e=this,n=e._self._c;return n("dt-recipe-general-row",e._g(e._b({attrs:{description:e.names,"aria-label":`${e.groupCountText} ${e.names}`,"unread-count":e.unreadCount,"has-unreads":e.hasUnreads,"unread-count-tooltip":e.unreadCountTooltip,selected:e.selected,"is-typing":e.isTyping},scopedSlots:e._u([{key:"left",fn:function(){return[n("dt-icon",{attrs:{name:"users",size:"300"}})]},proxy:!0}])},"dt-recipe-general-row",e.$attrs,!1),e.$listeners))},Jf=[],eh=_.normalizeComponent(Xf,Qf,Jf,!1,null,null,null,null);const th=eh.exports,nh={name:"DtRecipeGroupRow",components:{DtAvatar:Kt,DtIcon:M,DtRecipeGeneralRow:oi,DtEmojiTextWrapper:_.DtEmojiTextWrapper},inheritAttrs:!1,props:{avatarSrc:{type:String,default:""},avatarPresence:{type:String,default:null},avatarSeed:{type:String,default:null},presenceText:{type:String,default:""},name:{type:String,required:!0},userStatus:{type:String,default:""},muted:{type:Boolean,default:!1},unreadCount:{type:String,default:null},hasUnreads:{type:Boolean,default:!1},selected:{type:Boolean,default:!1},noInitials:{type:Boolean,default:!1},isTyping:{type:Boolean,default:!1},hasCallButton:{type:Boolean,default:!0},callButtonTooltip:{type:String,default:""},unreadCountTooltip:{type:String,default:""}},emits:["click","call"],computed:{presenceColorClass(){switch(this.avatarPresence){case"active":return"d-fc-success";case"busy":return"d-fc-critical";case"away":return"d-fc-warning";default:return}},avatarInitial(){var t;return((t=this.name)==null?void 0:t[0])??""}}};var ih=function(){var e=this,n=e._self._c;return n("dt-recipe-general-row",e._g(e._b({attrs:{"unread-count":e.unreadCount,description:`${e.name} ${e.presenceText} ${e.userStatus}`,"has-unreads":e.hasUnreads,selected:e.selected,"has-call-button":e.hasCallButton,muted:e.muted,"is-typing":e.isTyping,"call-button-tooltip":e.callButtonTooltip,"unread-count-tooltip":e.unreadCountTooltip},scopedSlots:e._u([{key:"left",fn:function(){return[n("dt-avatar",{attrs:{size:"sm",seed:e.avatarSeed,presence:e.avatarPresence}},[e.avatarSrc?n("img",{attrs:{"data-qa":"dt-avatar-image",src:e.avatarSrc,alt:""}}):e.noInitials?[n("dt-icon",{attrs:{name:"user",size:"200"}})]:[e._v(" "+e._s(e.avatarInitial)+" ")]],2)]},proxy:!0},{key:"label",fn:function(){return[n("dt-emoji-text-wrapper",{staticClass:"dt-leftbar-row__description",attrs:{"data-qa":"dt-leftbar-row-description",size:"200"}},[e._v(" "+e._s(e.name)+" ")]),n("div",{staticClass:"dt-leftbar-row__status"},[e.presenceText?n("span",{class:["dt-leftbar-row__meta-context",e.presenceColorClass],attrs:{"data-qa":"dt-leftbar-row-presence-text"}},[e._v(" "+e._s(e.presenceText)+" ")]):e._e(),e.userStatus?n("dt-emoji-text-wrapper",{staticClass:"dt-leftbar-row__meta-custom",attrs:{size:"100","element-type":"span","data-qa":"dt-leftbar-row-user-status"}},[e._v(" "+e._s(e.userStatus)+" ")]):e._e()],1)]},proxy:!0}])},"dt-recipe-general-row",e.$attrs,!1),e.$listeners))},sh=[],ah=_.normalizeComponent(nh,ih,sh,!1,null,null,null,null);const rh=ah.exports,ua=["up","down"],pa=["mentions","messages"];const oh={name:"DtRecipeUnreadPill",components:{DtIcon:M},props:{kind:{type:String,required:!0,validator:t=>pa.includes(t)},direction:{type:String,required:!0,validator:t=>ua.includes(t)}},emits:["click"]};var lh=function(){var e=this,n=e._self._c;return n("button",e._g({class:["dt-leftbar-unread-pill",`dt-leftbar-unread-pill--${e.kind}`],attrs:{type:"button","data-qa":"dt-leftbar-unread-pill"}},e.$listeners),[n("dt-icon",{attrs:{name:`arrow-${e.direction}`,size:"300"}}),n("span",{attrs:{"data-qa":"dt-leftbar-unread-pill__label"}},[e._t("default")],2)],1)},dh=[],ch=_.normalizeComponent(oh,lh,dh,!1,null,null,null,null);const uh=ch.exports;const ph={name:"DtRecipeFeedItemRow",components:{DtAvatar:Kt,DtLazyShow:Qe,DtListItem:gt},inheritAttrs:!1,props:{showHeader:{type:Boolean,default:!1},avatarImageUrl:{type:String,default:""},displayName:{type:String,default:""},time:{type:String,default:""},shortTime:{type:String,default:""},isActive:{type:Boolean,default:!1}},emits:["hover","focus"],computed:{avatarInitials(){return(this.displayName||"").split(" ").map(n=>n.charAt(0)).join("").slice(0,2).toUpperCase()},feedListeners(){return{...this.$listeners,mouseenter:()=>this.setHover(!0),mouseleave:()=>this.setHover(!1),focusin:()=>this.setFocus(!0),focusout:()=>this.setFocus(!1)}}},methods:{setFocus(t){this.$emit("focus",t)},setHover(t){this.$emit("hover",t)}}};var fh=function(){var e=this,n=e._self._c;return n("dt-list-item",e._g(e._b({ref:"FeedItemRef",class:["d-w100p","d-box-border","d-ps-relative","d-px8",{"d-bgc-secondary-opaque":e.isActive}],attrs:{"navigation-type":"none","data-qa":"feed-item-row"},scopedSlots:e._u([{key:"left",fn:function(){return[e.showHeader?n("dt-avatar",{attrs:{"avatar-class":"d-mt4",initials:e.avatarInitials}},[e.avatarImageUrl?n("img",{attrs:{"data-qa":"feed-item-row-avatar-img",alt:"",src:e.avatarImageUrl}}):e._e()]):e._e(),e.showHeader?e._e():n("div",{directives:[{name:"show",rawName:"v-show",value:e.isActive,expression:"isActive"}],staticClass:"d-fs-100 d-fw-normal d-ws-nowrap d-lh-100 d-fc-tertiary d-mb6",attrs:{"data-qa":"feed-item-row-left-time"}},[e._v(" "+e._s(e.shortTime)+" ")])]},proxy:!0},{key:"bottom",fn:function(){return[n("div",{staticClass:"d-d-flex d-fw-wrap",attrs:{"data-qa":"feed-item-row-reactions"}},[e._t("reactions")],2),e._t("threading")]},proxy:!0},{key:"right",fn:function(){return[n("div",{directives:[{name:"show",rawName:"v-show",value:e.isActive,expression:"isActive"}],staticClass:"d-ps-absolute d-tn16 d-r12",attrs:{"data-qa":"feed-item-row-menu"}},[n("dt-lazy-show",{attrs:{appear:!0,transition:"fade",show:e.isActive}},[e._t("menu")],2)],1)]},proxy:!0}],null,!0)},"dt-list-item",e.$attrs,!1),e.feedListeners),[n("article",[e.showHeader?n("div",{staticClass:"d-d-flex d-ai-center",attrs:{"data-qa":"feed-item-row-header"}},[n("p",{staticClass:"d-fs-200 d-lh-300 d-fw-bold d-to-ellipsis d-of-hidden d-ws-nowrap"},[e._v(" "+e._s(e.displayName)+" ")]),n("time",{staticClass:"d-fs-100 d-mt2 d-lh-300 d-fc-tertiary d-fw-normal d-ml4 d-fl-shrink0"},[e._v(" "+e._s(e.time)+" ")])]):e._e(),n("span",{staticClass:"content-text-wrapper-class",attrs:{"data-qa":"feed-item-row-content"}},[e._t("default")],2)])])},hh=[],mh=_.normalizeComponent(ph,fh,hh,!1,null,null,null,null);const _h=mh.exports;const gh={name:"DtRecipeTimePill",props:{dateTimeDisplay:{type:String,required:!0},dateTime:{type:String,required:!0,validator:t=>{const e=new Date(t);return e instanceof Date&&!isNaN(e)}}}};var vh=function(){var e=this,n=e._self._c;return n("time",{staticClass:"d-ba d-bar-pill d-baw1 d-bc-black-300 d-px16 d-py4 d-fs-100",attrs:{"data-qa":"dt-time-pill",dateTime:e.dateTime}},[e._v(" "+e._s(e.dateTimeDisplay)+" ")])},bh=[],yh=_.normalizeComponent(gh,vh,bh,!1,null,null,null,null);const Sh=yh.exports,fa=["emojiUnicodeOrShortname","isSelected","ariaLabel","tooltip","num"];const Ch={name:"DtRecipeEmojiRow",components:{DtTooltip:Jt,DtButton:q,DtEmoji:_.DtEmoji,DtEmojiTextWrapper:_.DtEmojiTextWrapper},mixins:[],props:{reactions:{type:Array,default:()=>[],validator:t=>{for(const e of t)if(!fa.every(i=>e[i]!==void 0))return!1;return!0}}},emits:["emoji-clicked","emoji-hovered"],methods:{emojiClicked(t){this.$emit("emoji-clicked",t.emojiUnicodeOrShortname)},emojiHovered(t,e){this.$emit("emoji-hovered",{reaction:t.emojiUnicodeOrShortname,state:e})}}};var xh=function(){var e=this,n=e._self._c;return n("span",{staticClass:"d-d-flex d-fw-wrap"},e._l(e.reactions,function(i){return n("span",{key:i.unicodeOutput,staticClass:"d-mr4 d-mb4",attrs:{reaction:i}},[n("dt-tooltip",{staticClass:"d-d-inline-block",attrs:{"content-class":"d-wmx464"},on:{shown:a=>e.emojiHovered(i,a)},scopedSlots:e._u([{key:"anchor",fn:function({attrs:a}){return[n("dt-button",{class:["d-h24 d-bar16 d-py0 d-fs-200 d-mb0 d-t",i.isSelected?`d-fc-purple-500 d-bgc-purple-400 d-bgo10 d-bc-purple-400 d-bco50 ' +
|
|
31
31
|
'h:d-bgc-purple-400 h:d-bco25 a:d-bgc-purple-400 a:d-bco25`:"d-fc-black-600 d-bgc-black-100 h:d-bgc-white h:d-bc-black-600 a:d-bgc-white a:d-bc-black-600"],attrs:{importance:"clear",size:"sm","data-qa":"feed-item-reaction-button","aria-label":i.ariaLabel,attrs:a},on:{click:function(o){return e.emojiClicked(i)}}},[n("span",{staticClass:"d-mr4"},[n("dt-emoji",{attrs:{size:"200",code:i.emojiUnicodeOrShortname}})],1),n("span",{staticClass:"d-fw-bold d-fs-100"},[e._v(" "+e._s(i.num)+" ")])])]}}],null,!0)},[n("span",{attrs:{"aria-hidden":"true"}},[n("dt-emoji-text-wrapper",{attrs:{size:"200"}},[e._v(" "+e._s(i.tooltip)+" ")])],1)])],1)}),0)},wh=[],Eh=_.normalizeComponent(Ch,xh,wh,!1,null,null,null,null);const Ih=Eh.exports;exports.DtSkeleton=_.DtSkeleton;exports.DtSkeletonListItem=_.DtSkeletonListItem;exports.DtSkeletonParagraph=_.DtSkeletonParagraph;exports.DtSkeletonShape=_.DtSkeletonShape;exports.DtSkeletonText=_.DtSkeletonText;exports.SKELETON_HEADING_HEIGHTS=_.SKELETON_HEADING_HEIGHTS;exports.SKELETON_RIPPLE_DURATION=_.SKELETON_RIPPLE_DURATION;exports.SKELETON_SHAPES=_.SKELETON_SHAPES;exports.SKELETON_SHAPE_SIZES=_.SKELETON_SHAPE_SIZES;exports.SKELETON_TEXT_TYPES=_.SKELETON_TEXT_TYPES;exports.AVATAR_KIND_MODIFIERS=gn;exports.AVATAR_SIZE_MODIFIERS=Ft;exports.BADGE_DECORATION_MODIFIERS=yn;exports.BADGE_KIND_MODIFIERS=bn;exports.BADGE_TYPE_MODIFIERS=vn;exports.BREADCRUMBS_INVERTED_MODIFIER=as;exports.BREADCRUMB_ITEM_SELECTED_MODIFIER=ss;exports.BUTTON_GROUP_ALIGNMENT=Sn;exports.CALLBAR_BUTTON_VALID_WIDTH_SIZE=ri;exports.CHIP_SIZE_MODIFIERS=$n;exports.COLOR_CODES=ra;exports.DEFAULT_VALIDATION_MESSAGE_TYPE=Ki;exports.DESCRIPTION_SIZE_TYPES=Gi;exports.DtAvatar=Kt;exports.DtBadge=Ji;exports.DtBanner=Kr;exports.DtBreadcrumbItem=os;exports.DtBreadcrumbs=ao;exports.DtButton=q;exports.DtButtonGroup=uo;exports.DtCard=ls;exports.DtCheckableInputMixin=ei;exports.DtCheckbox=ku;exports.DtCheckboxGroup=Fu;exports.DtChip=ii;exports.DtCodeblock=yo;exports.DtCollapsible=nl;exports.DtCombobox=ps;exports.DtDropdown=js;exports.DtDropdownSeparator=fc;exports.DtGroupableInputMixin=ti;exports.DtIcon=M;exports.DtImageViewer=vc;exports.DtInput=zs;exports.DtInputGroup=ni;exports.DtInputGroupMixin=Hs;exports.DtInputMixin=Jn;exports.DtKeyboardListNavigationMixin=Hn;exports.DtKeyboardShortcut=Cp;exports.DtLazyShow=Qe;exports.DtLink=rs;exports.DtListItem=gt;exports.DtListItemGroup=Zc;exports.DtListSection=Gc;exports.DtModal=Vc;exports.DtNotice=Pc;exports.DtPagination=tu;exports.DtPopover=Xt;exports.DtPresence=Qi;exports.DtRadio=ou;exports.DtRadioGroup=pu;exports.DtRecipeCallbarButton=aa;exports.DtRecipeCallbarButtonWithPopover=df;exports.DtRecipeComboboxMultiSelect=Jp;exports.DtRecipeComboboxWithPopover=ia;exports.DtRecipeContactInfo=hf;exports.DtRecipeContactRow=rh;exports.DtRecipeEmojiRow=Ih;exports.DtRecipeFeedItemRow=_h;exports.DtRecipeGeneralRow=oi;exports.DtRecipeGroupRow=th;exports.DtRecipeGroupedChip=$f;exports.DtRecipeIvrNode=If;exports.DtRecipeSettingsMenuButton=Nf;exports.DtRecipeTimePill=Sh;exports.DtRecipeTopBannerInfo=bf;exports.DtRecipeUnreadPill=uh;exports.DtRootLayout=Dp;exports.DtSelectMenu=ep;exports.DtStack=zp;exports.DtTab=xu;exports.DtTabGroup=vu;exports.DtTabPanel=Tu;exports.DtToast=ap;exports.DtToggle=up;exports.DtTooltip=Jt;exports.DtValidationMessages=we;exports.INPUT_SIZES=qe;exports.INPUT_TYPES=zt;exports.IVR_NODE_BRANCH=an;exports.IVR_NODE_EXPERT=sn;exports.IVR_NODE_GO_TO=Ct;exports.IVR_NODE_HANGUP=on;exports.IVR_NODE_ICON_TYPES=oa;exports.IVR_NODE_LABELS=yf;exports.IVR_NODE_PROMPT_COLLECT=tn;exports.IVR_NODE_PROMPT_MENU=en;exports.IVR_NODE_PROMPT_PLAY=nn;exports.IVR_NODE_TRANSFER=rn;exports.LEFTBAR_GENERAL_ROW_CONTACT_CENTER_COLORS=mt;exports.LEFTBAR_GENERAL_ROW_CONTACT_CENTER_VALIDATION_ERROR=da;exports.LEFTBAR_GENERAL_ROW_ICON_MAPPING=la;exports.LEFTBAR_GENERAL_ROW_ICON_SIZES=ca;exports.LEFTBAR_GENERAL_ROW_TYPES=F;exports.LINK_KIND_MODIFIERS=Ht;exports.LINK_VARIANTS=ns;exports.MODAL_KIND_MODIFIERS=Ln;exports.MODAL_SIZE_MODIFIERS=An;exports.MULTI_SELECT_SIZES=sa;exports.NOTICE_KINDS=Xe;exports.POPOVER_CONTENT_WIDTHS=Xn;exports.POPOVER_HEADER_FOOTER_PADDING_CLASSES=Bs;exports.POPOVER_INITIAL_FOCUS_STRINGS=Fs;exports.POPOVER_PADDING_CLASSES=Tn;exports.POPOVER_ROLES=Ms;exports.PRESENCE_STATES=Ge;exports.PRESENCE_STATES_LIST=Xi;exports.REACTIONS_ATTRIBUTES=fa;exports.ROOT_LAYOUT_RESPONSIVE_BREAKPOINTS=ta;exports.ROOT_LAYOUT_SIDEBAR_POSITIONS=si;exports.SELECT_SIZE_MODIFIERS=Dn;exports.SELECT_STATE_MODIFIERS=Ws;exports.SHORTCUTS_ALIASES_LIST=gp;exports.SHORTCUTS_ICON_ALIASES=Ke;exports.SHORTCUTS_ICON_SEPARATOR=ea;exports.TAB_IMPORTANCE_MODIFIERS=Us;exports.TAB_LIST_IMPORTANCE_MODIFIERS=Ks;exports.TAB_LIST_KIND_MODIFIERS=Gs;exports.TAB_LIST_SIZES=qs;exports.TOAST_ROLES=Ys;exports.TOOLTIP_DELAY_MS=Xs;exports.TOOLTIP_DIRECTIONS=Zs;exports.TOOLTIP_HIDE_ON_CLICK_VARIANTS=pp;exports.TOOLTIP_KIND_MODIFIERS=Qs;exports.TOOLTIP_STICKY_VALUES=Js;exports.UNREAD_PILL_DIRECTIONS=ua;exports.UNREAD_PILL_KINDS=pa;exports.VALIDATION_MESSAGE_TYPES=ee;exports.filterFormattedMessages=Fn;exports.formatMessages=dt;exports.getUniqueString=V;exports.getValidationState=Ce;exports.validationMessageValidator=St;
|