@dialpad/dialtone 9.2.0 → 9.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (105) hide show
  1. package/dist/css/dialtone.css +2 -2
  2. package/dist/eslint-plugin/rules/custom-implementation.js +1 -1
  3. package/dist/eslint-plugin/rules/deprecated-component.js +5 -5
  4. package/dist/eslint-plugin/rules/deprecated-directive.js +1 -1
  5. package/dist/eslint-plugin/rules/deprecated-icons.js +1 -1
  6. package/dist/icons/icons.json +1 -1
  7. package/dist/icons/keywords.json +1 -1
  8. package/dist/icons/svg/unread.svg +1 -0
  9. package/dist/icons/svg/user-rematch.svg +1 -0
  10. package/dist/tokens/android/java/tokens-dark.kt +1 -1
  11. package/dist/tokens/android/java/tokens-light.kt +1 -1
  12. package/dist/tokens/android/res/values/colors-dark.xml +1 -1
  13. package/dist/tokens/android/res/values/colors-light.xml +1 -1
  14. package/dist/tokens/android/res/values/dimens.xml +1 -1
  15. package/dist/tokens/css/variables-dark.css +1 -1
  16. package/dist/tokens/css/variables-light.css +1 -1
  17. package/dist/tokens/ios/tokens-dark.swift +1 -1
  18. package/dist/tokens/ios/tokens-light.swift +1 -1
  19. package/dist/tokens/less/variables-dark.less +1 -1
  20. package/dist/tokens/less/variables-light.less +1 -1
  21. package/dist/vue2/component-documentation.json +1 -1
  22. package/dist/vue2/dialtone-vue.cjs +6 -6
  23. package/dist/vue2/dialtone-vue.js +864 -622
  24. package/dist/vue2/directives.js +1 -1
  25. package/dist/vue2/emoji.cjs +1 -1
  26. package/dist/vue2/emoji.js +83625 -30
  27. package/dist/vue2/{emoji-tPpc6ODh.js → emoji_text_wrapper--R-54YKU.js} +4063 -87639
  28. package/dist/vue2/emoji_text_wrapper-_UNgB0uv.cjs +1 -0
  29. package/dist/vue2/style.css +1 -1
  30. package/dist/vue2/{tooltip-_ykHbRFm.js → tooltip-eJqD2Wwv.js} +12 -12
  31. package/dist/vue2/types/common/dates.d.ts +1 -1
  32. package/dist/vue2/types/common/storybook_utils.d.ts +1 -1
  33. package/dist/vue2/types/common/storybook_utils.d.ts.map +1 -1
  34. package/dist/vue2/types/components/avatar/avatar.vue.d.ts +2 -2
  35. package/dist/vue2/types/components/badge/badge.vue.d.ts +8 -10
  36. package/dist/vue2/types/components/badge/badge.vue.d.ts.map +1 -1
  37. package/dist/vue2/types/components/checkbox/checkbox.vue.d.ts +7 -7
  38. package/dist/vue2/types/components/checkbox/checkbox.vue.d.ts.map +1 -1
  39. package/dist/vue2/types/components/checkbox_group/checkbox_group.vue.d.ts +1 -3
  40. package/dist/vue2/types/components/checkbox_group/checkbox_group.vue.d.ts.map +1 -1
  41. package/dist/vue2/types/components/combobox/combobox.vue.d.ts +7 -10
  42. package/dist/vue2/types/components/combobox/combobox.vue.d.ts.map +1 -1
  43. package/dist/vue2/types/components/emoji/emoji.vue.d.ts +2 -2
  44. package/dist/vue2/types/components/input_group/input_group.vue.d.ts +4 -9
  45. package/dist/vue2/types/components/input_group/input_group.vue.d.ts.map +1 -1
  46. package/dist/vue2/types/components/popover/popover.vue.d.ts +1 -4
  47. package/dist/vue2/types/components/popover/popover.vue.d.ts.map +1 -1
  48. package/dist/vue2/types/components/radio/radio.vue.d.ts +12 -2
  49. package/dist/vue2/types/components/radio/radio.vue.d.ts.map +1 -1
  50. package/dist/vue2/types/components/radio_group/radio_group.vue.d.ts +6 -1
  51. package/dist/vue2/types/components/radio_group/radio_group.vue.d.ts.map +1 -1
  52. package/dist/vue2/types/components/toast/toast.vue.d.ts +1 -4
  53. package/dist/vue2/types/components/toast/toast.vue.d.ts.map +1 -1
  54. package/dist/vue2/types/index.d.ts +1 -1
  55. package/dist/vue2/types/recipes/buttons/callbar_button/callbar_button.vue.d.ts +6 -6
  56. package/dist/vue2/types/recipes/buttons/callbar_button_with_popover/callbar_button_with_popover.vue.d.ts +4 -4
  57. package/dist/vue2/types/recipes/conversation_view/attachment_carousel/attachment_carousel.vue.d.ts +80 -0
  58. package/dist/vue2/types/recipes/conversation_view/attachment_carousel/attachment_carousel.vue.d.ts.map +1 -0
  59. package/dist/vue2/types/recipes/conversation_view/attachment_carousel/attachment_carousel_constants.d.ts +6 -0
  60. package/dist/vue2/types/recipes/conversation_view/attachment_carousel/attachment_carousel_constants.d.ts.map +1 -0
  61. package/dist/vue2/types/recipes/conversation_view/attachment_carousel/index.d.ts +2 -0
  62. package/dist/vue2/types/recipes/conversation_view/attachment_carousel/index.d.ts.map +1 -0
  63. package/dist/vue2/types/recipes/conversation_view/attachment_carousel/media_components/image_carousel.vue.d.ts +47 -0
  64. package/dist/vue2/types/recipes/conversation_view/attachment_carousel/media_components/image_carousel.vue.d.ts.map +1 -0
  65. package/dist/vue2/types/recipes/conversation_view/attachment_carousel/media_components/progress_bar.vue.d.ts +30 -0
  66. package/dist/vue2/types/recipes/conversation_view/attachment_carousel/media_components/progress_bar.vue.d.ts.map +1 -0
  67. package/dist/vue3/component-documentation.json +1 -1
  68. package/dist/vue3/dialtone-vue.cjs +1 -1
  69. package/dist/vue3/dialtone-vue.js +12 -12
  70. package/dist/vue3/emoji-AfK6oyUP.cjs +1 -0
  71. package/dist/vue3/{emoji-1yDNLQQx.js → emoji-w7mkBLzY.js} +5115 -5059
  72. package/dist/vue3/emoji.cjs +1 -1
  73. package/dist/vue3/emoji.js +3 -3
  74. package/dist/vue3/{emoji_picker-sjmzGlSc.cjs → emoji_picker-4xiNkfJF.cjs} +1 -1
  75. package/dist/vue3/{emoji_picker-DCzVDeyC.js → emoji_picker-nLVt8cFZ.js} +1 -1
  76. package/dist/vue3/{emoji_text_wrapper-dcKiFm0_.cjs → emoji_text_wrapper-MBYdbA6A.cjs} +1 -1
  77. package/dist/vue3/{emoji_text_wrapper-N58kVmVI.js → emoji_text_wrapper-mBDw9Xy3.js} +1 -1
  78. package/dist/vue3/message_input.cjs +1 -1
  79. package/dist/vue3/message_input.js +3 -3
  80. package/dist/vue3/{stack-l0ciejd8.js → stack-FdfddyeK.js} +4 -2
  81. package/dist/vue3/{stack-eFs3WCJT.cjs → stack-w8PNJngT.cjs} +2 -2
  82. package/dist/vue3/style.css +1 -1
  83. package/dist/vue3/types/common/dates.d.ts +1 -1
  84. package/dist/vue3/types/components/badge/badge.vue.d.ts +8 -10
  85. package/dist/vue3/types/components/badge/badge.vue.d.ts.map +1 -1
  86. package/dist/vue3/types/components/checkbox/checkbox.vue.d.ts +7 -7
  87. package/dist/vue3/types/components/checkbox/checkbox.vue.d.ts.map +1 -1
  88. package/dist/vue3/types/components/checkbox_group/checkbox_group.vue.d.ts +8 -11
  89. package/dist/vue3/types/components/checkbox_group/checkbox_group.vue.d.ts.map +1 -1
  90. package/dist/vue3/types/components/combobox/combobox.vue.d.ts +11 -4
  91. package/dist/vue3/types/components/combobox/combobox.vue.d.ts.map +1 -1
  92. package/dist/vue3/types/components/emoji/emoji.vue.d.ts +2 -2
  93. package/dist/vue3/types/components/input_group/input_group.vue.d.ts +1 -3
  94. package/dist/vue3/types/components/input_group/input_group.vue.d.ts.map +1 -1
  95. package/dist/vue3/types/components/modal/modal.vue.d.ts +4 -1
  96. package/dist/vue3/types/components/modal/modal.vue.d.ts.map +1 -1
  97. package/dist/vue3/types/components/radio/radio.vue.d.ts +4 -4
  98. package/dist/vue3/types/components/radio/radio.vue.d.ts.map +1 -1
  99. package/dist/vue3/types/components/toast/toast.vue.d.ts +1 -4
  100. package/dist/vue3/types/components/toast/toast.vue.d.ts.map +1 -1
  101. package/dist/vue3/types/recipes/buttons/callbar_button/callbar_button.vue.d.ts +6 -6
  102. package/dist/vue3/types/recipes/buttons/callbar_button_with_popover/callbar_button_with_popover.vue.d.ts +4 -4
  103. package/package.json +1 -1
  104. package/dist/vue2/emoji-Cr1KlTAT.cjs +0 -1
  105. package/dist/vue3/emoji-_XsewxWh.cjs +0 -1
@@ -1,6 +1,6 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./tooltip-N61DaooE.cjs"),l=require("./emoji-Cr1KlTAT.cjs"),L=require("vue"),q={BUSY:"busy",AWAY:"away",OFFLINE:"offline",ACTIVE:"active"},xt=[q.BUSY,q.AWAY,q.OFFLINE,q.ACTIVE],Na={name:"DtPresence",props:{presence:{type:String,default:q.ACTIVE,validator:t=>xt.includes(t)},srText:{type:String,default:null}}};var Pa=function(){var e=this,a=e._self._c;return a("div",{staticClass:"d-presence",attrs:{"data-qa":"dt-presence",role:"status","aria-live":e.$attrs.ariaLive||"off"}},[e.srText?a("span",{staticClass:"sr-only",attrs:{"data-qa":"dt-presence-sr-text"}},[e._v(e._s(e.srText)+" ")]):e._e(),a("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"}})])},Ba=[],Fa=o.normalizeComponent(Na,Pa,Ba,!1,null,null,null,null);const Lt=Fa.exports,le={xs:"d-avatar--xs",sm:"d-avatar--sm",md:"d-avatar--md",lg:"d-avatar--lg",xl:"d-avatar--xl"},$t={default:"",icon:"d-avatar__icon",initials:"d-avatar__initials"},Rt={md:"d-avatar__presence--md",lg:"d-avatar__presence--lg"},Fe={NONE:"",BUSY:"busy",AWAY:"away",OFFLINE:"offline",ACTIVE:"active"},At={xs:"100",sm:"200",md:"300",lg:"500",xl:"600"},Mt=["100","200","300","400","500","600","700","800","900","1000","1100","1200","1300","1400","1500","1600","1700","1800"],Ve=t=>t>1,Va=["accessibility","activity","add-task","agent-assist","ai-notes","airplay","airtable","alarm-check","alarm-clock-off","alarm-minus","alarm-plus","album","alert-circle","alert-triangle","amex","app-store-badge","apple","archive","archive-restore","arrow-down","arrow-down-left","arrow-down-right","arrow-left","arrow-left-right","arrow-right","arrow-up","arrow-up-down","arrow-up-left","arrow-up-right","asana","asterisk","at-sign","ata-adapter","attestation","attestation-outline","axis-3d","bar-chart","bar-chart-2","bar-chart-3","bar-chart-4","bar-chart-horizontal","barge","baseline","battery","battery-charging","battery-full","battery-low","battery-medium","bell","bell-minus","bell-off","bell-plus","bell-ring","binary","bluetooth","bluetooth-connected","bluetooth-off","bluetooth-searching","blur-background","bold","book","book-open","bookmark","bookmark-minus","bookmark-plus","box","box-select","boxes","branch","brand-dialpad","brand-dialpad-meetings","briefcase","building","building-2","bullhorn","calculator","calendar","calendar-check","calendar-check-2","calendar-clock","calendar-days","calendar-heart","calendar-minus","calendar-off","calendar-plus","calendar-range","calendar-search","calendar-x","call-abandoned","call-merge","call-rejected","camera","camera-off","camera-tracking","cast","check","check-circle","check-circle-filled","chevron-down","chevron-first","chevron-last","chevron-left","chevron-right","chevron-up","chevrons-down","chevrons-down-up","chevrons-left","chevrons-left-right","chevrons-right","chevrons-right-left","chevrons-up","chevrons-up-down","circle-half-filled","circle-slashed","clipboard","clipboard-check","clipboard-copy","clipboard-edit","clipboard-list","clipboard-signature","clipboard-type","clipboard-x","clock","clock-1","clock-10","clock-11","clock-12","clock-2","clock-3","clock-4","clock-5","clock-6","clock-7","clock-8","clock-9","clockify","close","cloud","cloud-cog","cloud-drizzle","cloud-fog","cloud-hail","cloud-lightning","cloud-moon","cloud-moon-rain","cloud-off","cloud-rain","cloud-rain-wind","cloud-snow","cloud-sun","cloud-sun-rain","cloudy","coaching-hub","code","command","concierge-bell","contacts","copper-crm","copy","copyright","corner-down-left","corner-down-right","corner-left-down","corner-left-up","corner-right-down","corner-right-up","corner-up-left","corner-up-right","cpu","credit-card","dash","dect-base-station","dect-handset","delete","deskphone","dialbot","dialer","dialpad-ai","dialpad-ai-color","dialpad-logomark","digital-whisper","diners-club","discover","dissatisfied","double-check","download","download-cloud","dp-phone","edit","edit-2","empty","end-chat","equal","eraser","evernote","expand","expert-node","external-link","eye","eye-off","facebook","factory","fast-forward","file","file-audio","files","film","filter","fingerprint","flag","flag-off","flame","focus","folder","folder-tree","folders","food","form-input","forward","freshsales-crm","front","gamepad","gauge","gif-filled","gif-outline","giphy","globe-2","gmail","google-business-messaging","google-calendar","google-docs","google-drive","google-glyph","google-sheets","google-slides","greenhouse","grid","grip-horizontal","grip-vertical","hand","hard-drive","hash","hash-bold","haze","hd","headphones","hear","heart","help-circle","highfive","history","hold","home","hourglass","hubspot","image","import","inbox","indent","infinity","info","inspect","instagram","intercom","isolated-queries","italic","jcb","jira-service-desk","key","keyboard","keypad","languages","laptop-2","large-self-view","layout","layout-dashboard","layout-filmstrip","layout-grid","layout-template","library","life-buoy","lightbulb","lightbulb-off","lightning-bolt","line-chart","line-messenger","link-2","link-2-off","linkedin","list-add","list-bullet","list-checks","list-ordered","listen","listen","listening","live-queue","living-thing","loading","lock","lock-filled","log-in","log-out","maestro","mail","mail-open","mails","map","map-pin","mastercard","maximize","megaphone","megaphone-off","menu","message","messenger","mic","mic-off","microsoft","microsoft-dynamics-365","microsoft-teams","minimize","minimize-alt","minus-circle","miro","monday-com","monitor","monitor-off","monitor-speaker","moon","more-horizontal","more-vertical","mouse","multi-line-dept","music","music-off","network","neutral","newspaper","not-enough-queries","notes","object","office-365","option","package","paperclip","park","party-popper","past-conversations","pause","pause-circle","phone","phone-call","phone-forward","phone-hang-up","phone-hang-up","phone-hold","phone-incoming","phone-missed","phone-off","phone-outgoing","picture-in-picture","pie-chart","pin","pin-off","pipedrive","play","play-circle","play-filled","play-store-badge","plug","plus","plus-circle","power","print-fax","printer","puzzle","qr-code","queries","quote","record","record-filled","redo","refresh","repeat","reply","reply-all","rewind","rewind-15-sec","salesforce-glyph","salesforce-logo","satisfied","save","scan","scan-face","scissors","screen-share-off","scroll","search","send","servicenow","settings","share","share-2","share-screen","sheet","shield","shield-alert","shield-check","shield-close","shield-off","shortcuts","shuffle","sidebar","sidebar-close","sidebar-open","signal-best","signal-high","signal-low","signal-medium","signal-zero","siren","skip-15-sec","skip-back","skip-back-ten","skip-forward","skip-forward-ten","slack","slash","sliders","sliders-horizontal","small-self-view","smartphone","smartphone-charging","snapchat","snooze","snowflake","somewhat-dissatisfied","somewhat-satisfied","sort-asc","sort-desc","sparkle","speaker","star","star-filled","sticker","stop-circle","stop-filled","strikethrough","sun","sun-dim","sun-medium","sunrise","sunset","switch-to-cellular","switch-to-hd","table","tag","tags","takeover","task","telegram","text-cursor","text-cursor-input","thermometer","thermometer-snowflake","thermometer-sun","thread","threads","thumbs-down","thumbs-up","tiktok","timer","timer-off","timer-reset","toggl","too-many-queries","tools","toy-brick","transfer","transfer-webchat","transportation","trash","trending-down","trending-up","triangle","twitter","type","umbrella","underline","undo-2","union-pay","unlink-2","unlock","unlock-filled","upload","upload-cloud","usb","user","user-check","user-minus","user-plus","user-remove","users","very-dissatisfied","very-satisfied","viber","video","video-off","video-settings","visa","voicemail","voicemail-drop","volume","volume-1","volume-2","volume-x","waveform","we-chat","webcam","webchat","whatsapp","whisper","wifi","wifi-off","wind","x-brand","x-circle","zap-off","zendesk","zoho","zoho-crm","zoho-desk","zoom","zoom-in","zoom-logo","zoom-out"];function qa(){return[void 0,...Va]}const Ha=t=>{if(typeof t!="string"||!t.trim())return"";const e=t.trim().split(/\s+/g);return e.length===1?e.join("").substring(0,2):e.filter((a,n)=>n===0||n===e.length-1).map(a=>a.slice(0,1).toUpperCase()).join("")},za=qa(),Ua={name:"DtAvatar",components:{DtPresence:Lt,DtIcon:l.DtIcon},inheritAttrs:!1,props:{id:{type:String,default(){return o.getUniqueString()}},seed:{type:String,default:void 0},color:{type:String,default:void 0},size:{type:String,default:"md",validator:t=>Object.keys(le).includes(t)},avatarClass:{type:[String,Array,Object],default:""},canvasClass:{type:[String,Array,Object],default:""},iconClass:{type:[String,Array,Object],default:""},presence:{type:String,default:Fe.NONE,validator:t=>Object.values(Fe).includes(t)},presenceProps:{type:Object,default:()=>({})},group:{type:Number,default:void 0,validator:t=>Ve(t)},overlayIcon:{type:String,default:""},overlayText:{type:String,default:""},overlayClass:{type:[String,Array,Object],default:""},imageSrc:{type:String,default:""},imageAlt:{type:String,default:""},iconName:{type:String,default:void 0,validator:t=>za.includes(t)},iconSize:{type:String,default:"",validator:t=>!t||Object.keys(l.ICON_SIZE_MODIFIERS).includes(t)},fullName:{type:String,default:""},clickable:{type:Boolean,default:!1}},emits:["click"],data(){return{AVATAR_SIZE_MODIFIERS:le,AVATAR_KIND_MODIFIERS:$t,AVATAR_PRESENCE_SIZE_MODIFIERS:Rt,AVATAR_ICON_SIZES:At,imageLoadedSuccessfully:null,formattedInitials:"",initializing:!1}},computed:{isNotIconType(){return!this.iconName},avatarClasses(){return["d-avatar",le[this.validatedSize],this.avatarClass,{"d-avatar--group":this.showGroup,[`d-avatar--color-${this.getColor()}`]:this.isNotIconType,"d-avatar--clickable":this.clickable}]},overlayClasses(){return["d-avatar__overlay",this.overlayClass]},showGroup(){return Ve(this.group)},formattedGroup(){return this.group>99?"99+":this.group},validatedSize(){return this.group?"xs":this.size},showImage(){return this.imageLoadedSuccessfully!==!1&&this.imageSrc},buttonAriaLabel(){if(this.clickable)return this.fullName||this.imageAlt||this.$attrs["aria-label"]}},watch:{fullName:{immediate:!0,handler(t){this.formatInitials(t)}},imageSrc(t){this.imageLoadedSuccessfully=null,t&&(this.validateProps(),this.setImageListeners())}},mounted(){this.validateProps(),this.setImageListeners()},methods:{async setImageListeners(){await this.$nextTick();const t=this.$refs.avatarImage;t&&(t.addEventListener("load",()=>this._loadedImageEventHandler(t),{once:!0}),t.addEventListener("error",()=>this._erroredImageEventHandler(t),{once:!0}))},formatInitials(t){const e=Ha(t);this.validatedSize==="xs"?this.formattedInitials="":this.validatedSize==="sm"?this.formattedInitials=e[0]:this.formattedInitials=e},getColor(){return this.color??o.getRandomElement(Mt,this.seed)},_loadedImageEventHandler(t){this.imageLoadedSuccessfully=!0,t.classList.remove("d-d-none")},_erroredImageEventHandler(t){this.imageLoadedSuccessfully=!1,t.classList.add("d-d-none")},validateProps(){if(this.imageSrc&&!(this.fullName||this.imageAlt))throw new Error("full-name or image-alt must be set if image-src is provided")},handleClick(t){this.clickable&&this.$emit("click",t)}}};var Wa=function(){var e=this,a=e._self._c;return a(e.clickable?"button":"div",{tag:"component",class:e.avatarClasses,attrs:{id:e.id,"data-qa":"dt-avatar","aria-label":e.buttonAriaLabel},on:{click:e.handleClick}},[a("div",{ref:"canvas",class:[e.canvasClass,"d-avatar__canvas",{"d-avatar--image-loaded":e.imageLoadedSuccessfully}]},[e.showImage?a("img",{ref:"avatarImage",staticClass:"d-avatar__image",attrs:{"data-qa":"dt-avatar-image",src:e.imageSrc,alt:e.imageAlt||e.fullName}}):e.iconName?a("dt-icon",{class:[e.iconClass,e.AVATAR_KIND_MODIFIERS.icon],attrs:{name:e.iconName,size:e.iconSize||e.AVATAR_ICON_SIZES[e.size],"data-qa":"dt-avatar-icon"}}):a("span",{class:[e.AVATAR_KIND_MODIFIERS.initials]},[e._v(" "+e._s(e.formattedInitials)+" ")])],1),e.overlayIcon||e.overlayText?a("div",{class:e.overlayClasses},[e.overlayIcon?a("dt-icon",{staticClass:"d-avatar__overlay-icon",attrs:{name:e.overlayIcon}}):e.overlayText?a("p",{staticClass:"d-avatar__overlay-text"},[e._v(" "+e._s(e.overlayText)+" ")]):e._e()],1):e._e(),e.showGroup?a("span",{staticClass:"d-avatar__count",attrs:{"data-qa":"dt-avatar-count"}},[e._v(e._s(e.formattedGroup))]):e._e(),e.presence&&!e.showGroup?a("dt-presence",e._b({class:["d-avatar__presence",e.AVATAR_PRESENCE_SIZE_MODIFIERS[e.size]],attrs:{presence:e.presence,"data-qa":"dt-presence"}},"dt-presence",e.presenceProps,!1)):e._e()],1)},Ka=[],ja=o.normalizeComponent(Ua,Wa,Ka,!1,null,null,null,null);const te=ja.exports,qe={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"},He={label:"",count:"d-badge--count"},ze={"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"},Ya={name:"DtBadge",components:{DtIcon:l.DtIcon},props:{iconLeft:{type:String,default:""},iconRight:{type:String,default:""},text:{type:String,default:""},kind:{type:String,default:"label",validator:t=>Object.keys(He).includes(t)},type:{type:String,default:"default",validator:t=>Object.keys(qe).includes(t)},decoration:{type:String,default:void 0,validator:t=>Object.keys(ze).includes(t)},labelClass:{type:[String,Array,Object],default:""}},data(){return{BADGE_TYPE_MODIFIERS:qe,BADGE_KIND_MODIFIERS:He,BADGE_DECORATION_MODIFIERS:ze}},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 Ga=function(){var e=this,a=e._self._c;return a("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?a("span",{staticClass:"d-badge__decorative"}):e._e(),e.iconLeft||e.type==="ai"?a("span",{staticClass:"d-badge__icon-left"},[a("dt-icon",{attrs:{name:e.iconLeft||"dialpad-ai",size:"200"}})],1):e._e(),a("span",{class:["d-badge__label",e.labelClass]},[e._t("default",function(){return[e._v(" "+e._s(e.text)+" ")]})],2),e.iconRight?a("span",{staticClass:"d-badge__icon-right"},[a("dt-icon",{attrs:{name:e.iconRight,size:"200"}})],1):e._e()])},Za=[],Xa=o.normalizeComponent(Ya,Ga,Za,!1,null,null,null,null);const be=Xa.exports,W=["base","error","info","success","warning"],Nt=["alert","alertdialog","status"],Qa=new Map([["info","info"],["success","check-circle"],["warning","alert-triangle"],["error","alert-circle"],["base","bell"]]),Ja={name:"DtNoticeIcon",components:{DtIcon:l.DtIcon},props:{kind:{type:String,default:"base",validate(t){return W.includes(t)}}},computed:{defaultIcon(){return Qa.get(this.kind)}}};var en=function(){var e=this,a=e._self._c;return e.defaultIcon||e.$slots.default?a("div",{staticClass:"d-notice__icon",attrs:{"aria-hidden":"true"}},[e._t("default",function(){return[a("dt-icon",{attrs:{name:e.defaultIcon,size:"400"}})]})],2):e._e()},tn=[],an=o.normalizeComponent(Ja,en,tn,!1,null,null,null,null);const ye=an.exports,nn={name:"DtNoticeContent",props:{title:{type:String,default:""},titleId:{type:String,default:void 0},contentId:{type:String,default:void 0}}};var rn=function(){var e=this,a=e._self._c;return a("div",{staticClass:"d-notice__content",attrs:{"data-qa":"notice-content"}},[e.title||e.$slots.titleOverride?a("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(),a("p",{staticClass:"d-notice__message",attrs:{id:e.contentId,"data-qa":"notice-content-message"}},[e._t("default")],2)])},sn=[],on=o.normalizeComponent(nn,rn,sn,!1,null,null,null,null);const Se=on.exports,ln={name:"DtLink",props:{kind:{type:String,default:"",validator(t){return l.LINK_VARIANTS.includes(t)}}},emits:["click","focusin","focusout"],data(){return{LINK_KIND_MODIFIERS:l.LINK_KIND_MODIFIERS}}};var dn=function(){var e=this,a=e._self._c;return a("a",e._g({class:["d-link",e.LINK_KIND_MODIFIERS[e.kind]],attrs:{"data-qa":"dt-link",href:"href"in e.$attrs?e.$attrs.href:"javascript:void(0)"}},e.$listeners),[e._t("default")],2)},cn=[],un=o.normalizeComponent(ln,dn,cn,!1,null,null,null,null);const Pt=un.exports,D={props:{visuallyHiddenClose:{type:Boolean,default:!1},visuallyHiddenCloseLabel:{type:String,default:null}},watch:{$props:{immediate:!0,deep:!0,handler(){this.validateVisuallyHiddenCloseProps()}}},computed:{showVisuallyHiddenClose(){return this.visuallyHiddenClose&&this.visuallyHiddenCloseLabel!=null}},methods:{validateVisuallyHiddenCloseProps(){this.visuallyHiddenClose&&!this.visuallyHiddenCloseLabel&&console.error(`If visuallyHiddenClose prop is true, the component includes
2
- a visually hidden close button and you must set the visuallyHiddenCloseLabel prop.`)}}},pn={name:"SrOnlyCloseButton",components:{DtIcon:l.DtIcon,DtButton:l.DtButton},props:{visuallyHiddenCloseLabel:{type:String,default:null}},emits:["close"],methods:{close(){this.$emit("close")}}};var fn=function(){var e=this,a=e._self._c;return a("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(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"space",32,n.key,[" ","Spacebar"])?null:(n.preventDefault(),n.stopPropagation(),e.close.apply(null,arguments))}}},[a("dt-icon",{attrs:{name:"close"}})],1)},hn=[],mn=o.normalizeComponent(pn,fn,hn,!1,null,null,null,null);const Ce=mn.exports,_n={name:"DtNoticeAction",components:{DtIcon:l.DtIcon,DtButton:l.DtButton,SrOnlyCloseButton:Ce},mixins:[D],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 gn=function(){var e=this,a=e._self._c;return a("div",{staticClass:"d-notice__actions",attrs:{"data-qa":"notice-content-actions"}},[e._t("default"),e.hideClose?e._e():a("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[a("dt-icon",{attrs:{name:"close",size:"200"}})]},proxy:!0}],null,!1,1154370889)},"dt-button",e.closeButtonProps,!1),e.noticeActionListeners)),e.showVisuallyHiddenClose?a("sr-only-close-button",{attrs:{"visually-hidden-close-label":e.visuallyHiddenCloseLabel},on:{close:e.close}}):e._e()],2)},vn=[],bn=o.normalizeComponent(_n,gn,vn,!1,null,null,null,null);const Ie=bn.exports,yn={name:"DtNotice",components:{DtNoticeIcon:ye,DtNoticeContent:Se,DtNoticeAction:Ie},mixins:[D],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 Nt.includes(t)}},important:{type:Boolean,default:!1},kind:{type:String,default:"base",validate(t){return W.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 Sn=function(){var e=this,a=e._self._c;return a("aside",{class:e.noticeClass,attrs:{"data-qa":"notice"}},[a("dt-notice-icon",{attrs:{kind:e.kind}},[e._t("icon")],2),a("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),a("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)},Cn=[],In=o.normalizeComponent(yn,Sn,Cn,!1,null,null,null,null);const En=In.exports,Bt=':not(:disabled):not([aria-disabled="true"]):not([role="presentation"])',wn=`${Bt}:not([tabindex="-1"])`,Dn="button,[href],input,select,textarea,details,[tabindex]",K={methods:{async getFirstFocusableElement(t){await this.$nextTick();const e=this._getFocusableElements(t,!0);return this._getFirstFocusElement(e)},async focusFirstElement(t=this.$el){const e=await this.getFirstFocusableElement(t);e==null||e.focus({preventScroll:!0})},async focusElementById(t){var a;await this.$nextTick();const e=(a=this.$el)==null?void 0:a.querySelector(t);if(e){e.focus();return}console.warn('Could not find the element specified in dt-modal prop "initialFocusElement". Defaulting to focusing the first element.'),await this.focusFirstElement()},_getFirstFocusElement(t){if(!t.length)return;let e=t[0];return e.matches('[type="radio"]:not(:checked)')&&(e=t.find(a=>a.checked&&a.name===e.name)||e),e},_getFocusableElements(t=this.$el,e=!1){return t?[...t.querySelectorAll(Dn)].filter(n=>{const r=window.getComputedStyle(n);return r.getPropertyValue("display")!=="none"&&r.getPropertyValue("visibility")!=="hidden"&&n.matches(e?Bt:wn)}):[]},focusTrappedTabPress(t,e){if(!(t.key==="Tab"))return;const n=this._getFocusableElements(e);if(!n.length){t.preventDefault();return}const r=this._getFirstFocusElement(n),s=n[n.length-1];t.shiftKey?document.activeElement===r&&(s.focus(),t.preventDefault()):document.activeElement===s&&(r.focus(),t.preventDefault())}}},On={name:"DtBanner",components:{DtNoticeIcon:ye,DtNoticeContent:Se,DtNoticeAction:Ie},mixins:[K,D],props:{titleId:{type:String,default(){return o.utils.getUniqueString()}},contentId:{type:String,default(){return o.utils.getUniqueString()}},title:{type:String,default:""},important:{type:Boolean,default:!1},pinned:{type:Boolean,default:!1},kind:{type:String,default:"base",validate(t){return W.includes(t)}},closeButtonProps:{type:Object,default:()=>({})},hideClose:{type:Boolean,default:!1},hideIcon:{type:Boolean,default:!1},dialogClass:{type:String,default:""},backgroundImage:{type:String,default:""},backgroundSize:{type:String,default:"cover"}},emits:["close"],computed:{role(){return this.important?"alertdialog":"status"},bannerClass(){return["d-banner",{error:"d-banner--error",info:"d-banner--info",success:"d-banner--success",warning:"d-banner--warning",base:"d-banner--base"}[this.kind],{"d-banner--important":this.important,"d-banner--pinned":this.pinned}]},bannerBackgroundImage(){return this.backgroundImage===""?null:`background-image: url(${this.backgroundImage});
3
- background-size: ${this.backgroundSize};`}},mounted(){this.important&&this.focusFirstElement()},methods:{trapFocus(t){this.important&&this.focusTrappedTabPress(t)}}};var Tn=function(){var e=this,a=e._self._c;return a("aside",{class:e.bannerClass,style:e.bannerBackgroundImage,on:{keydown:function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"tab",9,n.key,"Tab")?null:e.trapFocus.apply(null,arguments)}}},[a("div",{staticClass:"d-banner__dialog",class:e.dialogClass,attrs:{role:e.role,"aria-labelledby":e.titleId,"aria-describedby":e.contentId}},[e.hideIcon?e._e():a("dt-notice-icon",e._g({attrs:{kind:e.kind}},e.$listeners),[e._t("icon")],2),a("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),a("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)])},kn=[],xn=o.normalizeComponent(On,Tn,kn,!1,null,null,null,null);const Ln=xn.exports,Ft="d-breadcrumbs__item--selected",Vt="d-breadcrumbs--inverted",$n={name:"DtBreadcrumbItem",components:{DtLink:Pt},inheritAttrs:!1,props:{inverted:{type:Boolean,default:!1},selected:{type:Boolean,default:!1},label:{type:String,default:""}},data(){return{BREADCRUMB_ITEM_SELECTED_MODIFIER:Ft}},computed:{linkKind(){return this.inverted?l.INVERTED:l.MUTED},ariaCurrent(){return this.selected?"location":void 0}}};var Rn=function(){var e=this,a=e._self._c;return a("li",{class:["d-breadcrumbs__item",{[e.BREADCRUMB_ITEM_SELECTED_MODIFIER]:e.selected}],attrs:{"data-qa":"dt-breadcrumb-item"}},[a("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)},An=[],Mn=o.normalizeComponent($n,Rn,An,!1,null,null,null,null);const qt=Mn.exports,Nn={name:"DtBreadcrumbs",components:{DtBreadcrumbItem:qt},props:{breadcrumbs:{type:Array,default:()=>[],validate(t){return t.every(({href:e,label:a})=>e!==void 0&&a!==void 0)}},inverted:{type:Boolean,default:!1},ariaLabel:{type:String,default:"breadcrumb"}},data(){return{BREADCRUMBS_INVERTED_MODIFIER:Vt}},methods:{getBreadcrumbItemKey(t){return`breadcrumbs-item-${t}-${o.utils.getUniqueString()}`}}};var Pn=function(){var e=this,a=e._self._c;return a("nav",{class:["d-breadcrumbs",{[e.BREADCRUMBS_INVERTED_MODIFIER]:e.inverted}],attrs:{"aria-label":e.ariaLabel,"data-qa":"dt-breadcrumbs"}},[a("ol",[e._t("default",function(){return e._l(e.breadcrumbs,function(n,r){return a("dt-breadcrumb-item",e._g(e._b({key:e.getBreadcrumbItemKey(r),attrs:{inverted:e.inverted}},"dt-breadcrumb-item",n,!1),e.$listeners))})})],2)])},Bn=[],Fn=o.normalizeComponent(Nn,Pn,Bn,!1,null,null,null,null);const Vn=Fn.exports,Ue={start:"d-btn-group--start",end:"d-btn-group--end","space-between":"d-btn-group--space-between"},qn={name:"DtButtonGroup",props:{alignment:{type:String,default:"start",validator:t=>Object.keys(Ue).includes(t)}},data(){return{BUTTON_GROUP_ALIGNMENT:Ue}}};var Hn=function(){var e=this,a=e._self._c;return a("div",{class:["d-btn-group",e.BUTTON_GROUP_ALIGNMENT[e.alignment]],attrs:{role:"group"}},[e._t("default")],2)},zn=[],Un=o.normalizeComponent(qn,Hn,zn,!1,null,null,null,null);const Wn=Un.exports,Kn={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 jn=function(){var e=this,a=e._self._c;return a("div",{class:["d-card",e.containerClass],attrs:{"data-qa":"dt-card"}},[e.$slots.header?a("div",{class:["d-card__header",e.headerClass]},[e._t("header")],2):e._e(),a("div",{class:["d-card__content",e.contentClass],style:{"max-height":e.maxHeight}},[e._t("content")],2),e.$slots.footer?a("div",{class:["d-card__footer",e.footerClass]},[e._t("footer")],2):e._e()])},Yn=[],Gn=o.normalizeComponent(Kn,jn,Yn,!1,null,null,null,null);const Ht=Gn.exports,Zn={name:"DtCodeblock",props:{text:{type:String,required:!0}}};var Xn=function(){var e=this,a=e._self._c;return a("pre",[e._v(" "),a("code",{staticClass:"d-codeblock"},[e._v(e._s(e.text))]),e._v(`
4
- `)])},Qn=[],Jn=o.normalizeComponent(Zn,Xn,Qn,!1,null,null,null,null);const er=Jn.exports,tr={methods:{scrollElementIntoViewIfNeeded(t,e,a,n){t.scrollIntoViewIfNeeded?this.scrollIntoViewIfNeeded(t,e,a,n):this.scrollIntoView(t,"bottom",!1,a,n)},scrollElementIntoView(t,e,a,n){if(e==="center"){this.scrollIntoView(t,"center",!1,a,n);return}e===!1?this.scrollIntoView(t,"bottom",!1,a,n):this.scrollIntoView(t,"top",!1,a,n)},scrollIntoViewIfNeeded(t,e,a,n){const r=e?"center":void 0;this.scrollIntoView(t,r,!0,a,n)},scrollIntoView(t,e,a,n,r){if(!t||!t.parentElement)return;const s=t.offsetTop,i=r||t.parentElement,c=this._getScrollBounds(i),u=c.bottom-c.top,f=this._getElementHeight(t),g=s+f;let d=-1;switch(e){case"top":d=s;break;case"center":d=s+(f-u)/2;break;case"bottom":d=d=g-u;break;default:s-c.top<=u/2?d=s:d=g-u;break}this._setScrollTop(i,d,c,s,g,a,n)},_setScrollTop(t,e,a,n,r,s,i){a=a||this._getScrollBounds(t);const c=a.bottom-a.top;if(s&&this._inScrollBounds(n,r,a))if(n<a.top)e=n;else if(r>a.bottom)e=r-c;else return;i?t.scrollTo({top:e,behavior:i}):t.scrollTop=e},_getElementHeight(t){return t.getBoundingClientRect().height},_getScrollBounds(t){const e=this._getElementHeight(t),a=t.scrollTop;return{top:a,bottom:a+e}},_inScrollBounds(t,e,a){const n=e-t;return e<=a.bottom+3*n/4&&t>=a.top-n/4}}},ar="listElementKey is required or the referenced element doesn't exist. Received listElement: ",it=({listItemRole:t="option",indexKey:e="highlightIndex",idKey:a="highlightId",listElementKey:n="listRef",activeItemKey:r="",openMethod:s=null,afterHighlightMethod:i=null,beginningOfListMethod:c=null,endOfListMethod:u=null,scrollToOnHighlight:f=!0,focusOnKeyboardNavigation:g=!1}={})=>({mixins:[tr],data(){return{[e]:-1,[a]:"",scrollToOnHighlight:f,focusOnKeyboardNavigation:g}},provide(){return{highlightId:()=>this[a]}},methods:{_getListElement(){var d;return((d=this[n]())==null?void 0:d.$el)||this[n]()},_itemsLength(){const d=this._getListItemNodes();return d===null?0:d.length},_getListItemNodes(){const d=this._getListElement();return d?Array.from(d.querySelectorAll(`[role="${t}"], #sr-only-close-button`)):(console.error(ar,d),null)},onUpKey(){s&&this[s](!0),this[e]>0?this.setHighlightIndex(this[e]-1):c&&this[c](),this.scrollActiveItemIntoViewIfNeeded(),this.focusActiveItemIfNeeded()},onDownKey(){s&&this[s](!0),this[e]<this._itemsLength()-1?this.setHighlightIndex(this[e]+1):u&&this[u](),this.scrollActiveItemIntoViewIfNeeded(),this.focusActiveItemIfNeeded()},onHomeKey(){this.jumpToBeginning(),this.scrollActiveItemIntoViewIfNeeded(),this.focusActiveItemIfNeeded()},onEndKey(){this.jumpToEnd(),this.scrollActiveItemIntoViewIfNeeded(),this.focusActiveItemIfNeeded()},onNavigationKey(d){const _=this._getListItemNodes(),m=_.filter(C=>C.textContent.trim().toLowerCase().startsWith(d.toLowerCase()));if(m.length<=0)return;const v=m.findIndex(C=>this[e]===_.indexOf(C)),I=_.indexOf(v<m.length-1?m[v+1]:m[0]);this.setHighlightIndex(I),this.scrollActiveItemIntoViewIfNeeded(),this.focusActiveItemIfNeeded()},isValidLetter(d){return d.length>1?!1:d>="a"&&d<="z"||d>="A"&&d<="Z"},jumpToBeginning(){this.setHighlightIndex(0)},jumpToEnd(){this.setHighlightIndex(this._itemsLength()-1)},setHighlightIndex(d){this[e]=d,this[a]=this._getItemId(d),this._itemsLength()&&i&&this[i](d)},setHighlightId(d){this[a]=d,this[e]=this._getItemIndex(d),this._itemsLength()&&i&&this[i](this._getItemIndex(d))},_getItemIndex(d){const _=this._getListElement();return _?Array.from(_.querySelectorAll(`[role="${t}"], #sr-only-close-button`)).indexOf(_.querySelector(`#${d}`)):void 0},_getItemId(d){var m;const _=this._getListElement();if(_)return(m=_.querySelectorAll(`[role="${t}"], #sr-only-close-button`)[d])==null?void 0:m.id},scrollActiveItemIntoViewIfNeeded(){if(!this.scrollToOnHighlight)return;const d=this[r];if(d){const _=this._getListElement();this.scrollElementIntoViewIfNeeded(d,null,null,_)}},focusActiveItemIfNeeded(){if(!this.focusOnKeyboardNavigation)return;const d=this[r];d&&d.focus()}}}),de={DEFAULT:"default",CUSTOM:"custom"},x={ARROW_KEYS:"arrow-keys",TAB:"tab",NONE:"none"},nr={name:"DtItemLayout",props:{as:{type:String,default:"div"}}};var rr=function(){var e=this,a=e._self._c;return a(e.as,{tag:"component",staticClass:"dt-item-layout"},[e.$slots.left?a("section",{staticClass:"dt-item-layout--left",attrs:{"data-qa":"dt-item-layout-left-wrapper"}},[e._t("left")],2):e._e(),a("section",{staticClass:"dt-item-layout--content",attrs:{"data-qa":"dt-item-layout-content-wrapper"}},[e.$slots.default?a("div",{staticClass:"dt-item-layout--title",attrs:{"data-qa":"dt-item-layout-title-wrapper"}},[e._t("default")],2):e._e(),e.$slots.subtitle?a("div",{class:["dt-item-layout--subtitle",{"dt-item-layout--subtitle--with-title":e.$slots.default}],attrs:{"data-qa":"dt-item-layout-subtitle-wrapper"}},[e._t("subtitle")],2):e._e(),e.$slots.bottom?a("div",{staticClass:"dt-item-layout--bottom",attrs:{"data-qa":"dt-item-layout-bottom-wrapper"}},[e._t("bottom")],2):e._e()]),e.$slots.right?a("section",{staticClass:"dt-item-layout--right",attrs:{"data-qa":"dt-item-layout-right-wrapper"}},[e._t("right")],2):e._e(),e.$slots.selected?a("section",{staticClass:"dt-item-layout--selected",attrs:{"data-qa":"dt-item-layout-selected-wrapper"}},[e._t("selected")],2):e._e()])},sr=[],ir=o.normalizeComponent(nr,rr,sr,!1,null,"c04dbbaa",null,null);const me=ir.exports,or={name:"DtListItem",components:{DtItemLayout:me,DtIcon:l.DtIcon},inject:{highlightId:{default:null}},props:{id:{type:String,default(){return o.utils.getUniqueString()}},role:{type:String,default:"listitem"},elementType:{type:String,default:"li"},type:{type:String,default:de.DEFAULT,validator:t=>Object.values(de).includes(t)},navigationType:{type:String,default:x.NONE,validator:t=>Object.values(x).includes(t)},selected:{type:Boolean,default:!1}},emits:["click","keydown","mousemove","mouseleave"],data(){return{injected:!1,mouseHighlighted:!1}},computed:{listItemType(){switch(this.type){case de.DEFAULT:return me;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===x.TAB},isHoverable(){return this.navigationType!==x.NONE}},methods:{onClick(t){this.$emit("click",t)},onMouseHover(){this.mouseHighlighted=!0},onMouseLeave(){this.mouseHighlighted=!1}}};var lr=function(){var e=this,a=e._self._c;return a(e.elementType,e._g({tag:"component",class:["dt-list-item",{"dt-list-item--focusable":e.isFocusable,"dt-list-item--highlighted":e.isHighlighted,"dt-list-item--static":!e.isHoverable}],attrs:{id:e.id,tabindex:e.isFocusable?0:-1,role:e.role,"aria-selected":e.isHighlighted}},e.listItemListeners),[e.listItemType?a(e.listItemType,{tag:"component",scopedSlots:e._u([e._l(e.$slots,function(n,r){return{key:r,fn:function(){return[e._t(r)]},proxy:!0}}),e.selected?{key:"selected",fn:function(){return[a("dt-icon",{staticClass:"dt-list-item--selected-icon",attrs:{name:"check",size:"400"}})]},proxy:!0}:null],null,!0)}):e._t("default")],2)},dr=[],cr=o.normalizeComponent(or,lr,dr,!1,null,null,null,null);const ae=cr.exports,ur={name:"ComboboxLoadingList",components:{DtListItem:ae,DtSkeleton:l.DtSkeleton}};var pr=function(){var e=this,a=e._self._c;return a("ol",{staticClass:"d-combobox__loading-list",attrs:{"aria-busy":"true"}},e._l(7,function(n){return a("dt-list-item",{key:n,attrs:{role:"option","navigation-type":"none"}},[a("dt-skeleton",{attrs:{"text-option":{type:"body"},offset:0}})],1)}),1)},fr=[],hr=o.normalizeComponent(ur,pr,fr,!1,null,null,null,null);const zt=hr.exports,mr={name:"ComboboxEmptyList",components:{DtListItem:ae},props:{message:{type:String,required:!0},itemClass:{type:[String,Object,Array],default:""}}};var _r=function(){var e=this,a=e._self._c;return a("ol",{staticClass:"d-combobox__empty-list",attrs:{"data-qa":"dt-combobox-empty-list"}},[e._t("default",function(){return[a("dt-list-item",{class:["dt-empty-list-item",e.itemClass],attrs:{role:"option","navigation-type":"none",type:"custom"}},[a("span",[e._v(e._s(e.message))])])]})],2)},gr=[],vr=o.normalizeComponent(mr,_r,gr,!1,null,null,null,null);const Ut=vr.exports,ot={EXTRA_SMALL:"xs",SMALL:"sm",DEFAULT:"md",LARGE:"lg",EXTRA_LARGE:"xl"},br={name:"DtCombobox",components:{ComboboxLoadingList:zt,ComboboxEmptyList:Ut},mixins:[it({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(ot).includes(t)},description:{type:String,default:""},listId:{type:String,default(){return o.getUniqueString()}},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 a;this.outsideRenderedListRef=e,(a=this.outsideRenderedListRef)==null||a.addEventListener("mousemove",this.onMouseHighlight),this.$emit("opened",t),t&&this.setInitialHighlightIndex()},onKeyValidation(t,e){!this.showList||!this.getListElement()||this[e](t)},setInitialHighlightIndex(){this.showList&&this.$nextTick(()=>{this.setHighlightIndex(this.loading?-1:0)})},validateEmptyListProps(){this.$slots.emptyListItem||(this.emptyList&&!this.emptyStateMessage||!this.emptyList&&this.emptyStateMessage)&&console.error(`Invalid props: you must pass both props emptyList and emptyStateMessage to show the
5
- empty message.`)}}};var yr=function(){var e=this,a=e._self._c;return a("div",{on:{keydown:[function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"esc",27,n.key,["Esc","Escape"])?null:(n.stopPropagation(),e.onKeyValidation(n,"onEscapeKey"))},function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"enter",13,n.key,"Enter")||n.ctrlKey||n.shiftKey||n.altKey||n.metaKey?null:e.onKeyValidation(n,"onEnterKey")},function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"up",38,n.key,["Up","ArrowUp"])?null:(n.stopPropagation(),n.preventDefault(),e.onKeyValidation(n,"onUpKey"))},function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"down",40,n.key,["Down","ArrowDown"])?null:(n.stopPropagation(),n.preventDefault(),e.onKeyValidation(n,"onDownKey"))},function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"home",void 0,n.key,void 0)?null:(n.stopPropagation(),n.preventDefault(),e.onKeyValidation(n,"onHomeKey"))},function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"end",void 0,n.key,void 0)?null:(n.stopPropagation(),n.preventDefault(),e.onKeyValidation(n,"onEndKey"))}]}},[a("div",{attrs:{"data-qa":"dt-combobox-input-wrapper"}},[e._t("input",null,{inputProps:e.inputProps})],2),e.showList?a("div",{ref:"listWrapper",attrs:{"data-qa":"dt-combobox-list-wrapper"},on:{mouseleave:e.clearHighlightIndex,focusout:e.clearHighlightIndex,"!mousemove":function(n){return e.onMouseHighlight.apply(null,arguments)}}},[e.loading&&!e.listRenderedOutside?a("combobox-loading-list",e._b({},"combobox-loading-list",e.listProps,!1)):e.emptyList&&(e.emptyStateMessage||e.$slots.emptyListItem)&&!e.listRenderedOutside?a("combobox-empty-list",e._b({attrs:{message:e.emptyStateMessage,"item-class":e.emptyStateClass}},"combobox-empty-list",e.listProps,!1),[e._t("emptyListItem")],2):e._t("list",null,{listProps:e.listProps,opened:e.onOpen,clearHighlightIndex:e.clearHighlightIndex})],2):e._e()])},Sr=[],Cr=o.normalizeComponent(br,yr,Sr,!1,null,null,null,null);const Wt=Cr.exports,Ir={name:"DtCollapsibleLazyShow",props:{show:{type:Boolean,default:null},appear:{type:Boolean,default:!1},elementType:{type:String,default:"div"}},data(){return{initialized:!!this.show}},computed:{isCSSEnabled(){return process.env.NODE_ENV!=="test"}},watch:{show:function(t){!t||this.initialized||(this.initialized=!0)}},methods:{beforeEnter(t){requestAnimationFrame(()=>{t.style.height||(t.style.height="0px")})},enter(t){requestAnimationFrame(()=>{requestAnimationFrame(()=>{t.style.height=`${t.scrollHeight}px`})})},afterEnter(t){t.style.height=null},beforeLeave(t){requestAnimationFrame(()=>{t.style.height||(t.style.height=`${t.offsetHeight}px`)})},leave(t){requestAnimationFrame(()=>{requestAnimationFrame(()=>{t.style.height="0px"})})},afterLeave(t){t.style.height=null}}};var Er=function(){var e=this,a=e._self._c;return a("transition",e._g({attrs:{appear:e.appear,"enter-active-class":"enter-active","leave-active-class":"leave-active",css:e.isCSSEnabled},on:{"before-enter":e.beforeEnter,enter:e.enter,"after-enter":e.afterEnter,"before-leave":e.beforeLeave,leave:e.leave,"after-leave":e.afterLeave}},e.$listeners),[a(e.elementType,e._g({directives:[{name:"show",rawName:"v-show",value:e.show,expression:"show"}],tag:"component"},e.$listeners),[e.initialized?e._t("default"):e._e()],2)],1)},wr=[],Dr=o.normalizeComponent(Ir,Er,wr,!1,null,null,null,null);const Or=Dr.exports,Tr={name:"DtCollapsible",components:{DtButton:l.DtButton,DtCollapsibleLazyShow:Or,DtLazyShow:o.DtLazyShow,DtIcon:l.DtIcon},props:{anchorText:{type:String,default:null},open:{type:Boolean,default:null},id:{type:String,default(){return o.getUniqueString()}},elementType:{type:String,default:"div"},contentElementType:{type:String,default:"div"},anchorClass:{type:[String,Array,Object],default:null},contentClass:{type:[String,Array,Object],default:null},maxWidth:{type:String,default:null},maxHeight:{type:String,default:null},ariaLabel:{type:String,default:null},ariaLabelledBy:{type:String,default:null}},emits:["update:open","opened"],data(){return{isOpen:!0}},computed:{labelledBy(){return this.ariaLabelledBy||!this.ariaLabel&&o.getUniqueString("DtCollapsible__anchor")}},watch:{open:{handler:function(t){t!==null&&(this.isOpen=t)},immediate:!0}},mounted(){this.validateProperAnchor()},methods:{onLeaveTransitionComplete(){this.$emit("opened",!1),this.open!==null&&this.$emit("update:open",!1)},onEnterTransitionComplete(){this.$emit("opened",!0,this.$refs.content),this.open!==null&&this.$emit("update:open",!0)},defaultToggleOpen(){this.open===null&&this.toggleOpen()},toggleOpen(){this.isOpen=!this.isOpen},validateProperAnchor(){!this.anchorText&&!this.$scopedSlots.anchor&&console.error("anchor text and anchor slot content cannot both be falsy")}}};var kr=function(){var e=this,a=e._self._c;return a(e.elementType,e._g({ref:"collapsible",tag:"component"},e.$listeners),[a("div",{ref:"anchor",class:e.anchorClass,attrs:{id:!e.ariaLabelledBy&&e.labelledBy}},[e._t("anchor",function(){return[a("dt-button",{style:{width:e.maxWidth},attrs:{importance:"clear",kind:"muted","aria-controls":e.id,"aria-expanded":`${e.isOpen}`},on:{click:e.defaultToggleOpen}},[a("dt-icon",{staticClass:"d-collapsible__icon",attrs:{name:e.isOpen?"chevron-down":"chevron-right",size:"300"}}),a("span",{staticClass:"d-collapsible__anchor-text",attrs:{title:e.anchorText}},[e._v(" "+e._s(e.anchorText)+" ")])],1)]},{attrs:{"aria-controls":e.id,"aria-expanded":e.isOpen.toString(),role:"button"}})],2),a("dt-collapsible-lazy-show",e._g({ref:"contentWrapper",class:e.contentClass,style:{"max-height":e.maxHeight,"max-width":e.maxWidth},attrs:{id:e.id,"aria-hidden":`${!e.isOpen}`,"aria-labelledby":e.labelledBy,"aria-label":e.ariaLabel,show:e.isOpen,"element-type":e.contentElementType,"data-qa":"dt-collapsible--content",tabindex:"-1",appear:""},on:{"after-leave":e.onLeaveTransitionComplete,"after-enter":e.onEnterTransitionComplete}},e.$listeners),[e._t("content")],2)],1)},xr=[],Lr=o.normalizeComponent(Tr,kr,xr,!1,null,null,null,null);const Kt=Lr.exports,$={default:"column",column:"column",row:"row","row-reverse":"row-reverse","column-reverse":"column-reverse"},lt=["sm","md","lg","xl"],ne=["0","100","200","300","400","500","600"],jt=["row","column"],$r=t=>t.term?typeof t.term=="string":!1,Rr=t=>t.description?typeof t.description=="string":!1,Ar=t=>Array.isArray(t)?t.every(e=>!(typeof e!="object"||!$r(e)||!Rr(e))):!1,Mr={name:"DtDescriptionList",props:{direction:{type:String,default:"row",validator:t=>jt.includes(t)},items:{type:Array,default:()=>[],validator:t=>Ar(t),required:!0},gap:{type:String,default:"400",validator:t=>ne.includes(t)},termClass:{type:[String,Array,Object],default:""},descriptionClass:{type:[String,Array,Object],default:""}},computed:{dtClass(){return["dt-description-list__term",this.termClass]},ddClass(){return["dt-description-list__description",this.descriptionClass]},getDirectionClass(){return`dt-description-list--${this.direction}`},getGapClass(){return`dt-description-list--gap-${this.gap}`}}};var Nr=function(){var e=this,a=e._self._c;return a("dl",{class:["dt-description-list",e.getDirectionClass,e.getGapClass]},[e._l(e.items,function(n){return[a("dt",{key:`dt-${n.term}`,class:e.dtClass},[e._v(" "+e._s(n.term)+" ")]),a("dd",{key:`dd-${n.term}`,class:e.ddClass},[e._v(" "+e._s(n.description)+" ")])]})],2)},Pr=[],Br=o.normalizeComponent(Mr,Nr,Pr,!1,null,null,null,null);const Fr=Br.exports,We={none:void 0,small:"d-p4",medium:"d-p8",large:"d-p16"},Yt={none:void 0,small:"d-pl4",medium:"d-pl8",large:"d-pl16"},Gt=["dialog","menu","listbox","tree","grid"],dt=["","anchor"],Zt=["none","dialog","first"],re=["parent","body"],Xt=[...o.TIPPY_STICKY_VALUES],Vr=[...o.BASE_TIPPY_DIRECTIONS];let qr="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Hr=(t=21)=>{let e="",a=t;for(;a--;)e+=qr[Math.random()*64|0];return e};function ce(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ce=function(e){return typeof e}:ce=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ce(t)}var Qt={selector:"vue-portal-target-".concat(Hr())},zr=function(e){return Qt.selector=e},Ne=typeof window<"u"&&(typeof document>"u"?"undefined":ce(document))!==void 0,Ur=L.extend({abstract:!0,name:"PortalOutlet",props:["nodes","tag"],data:function(e){return{updatedNodes:e.nodes}},render:function(e){var a=this.updatedNodes&&this.updatedNodes();return a?a.length===1&&!a[0].text?a:e(this.tag||"DIV",a):e()},destroyed:function(){var e=this.$el;e&&e.parentNode.removeChild(e)}}),ct=L.extend({name:"VueSimplePortal",props:{disabled:{type:Boolean},prepend:{type:Boolean},selector:{type:String,default:function(){return"#".concat(Qt.selector)}},tag:{type:String,default:"DIV"}},render:function(e){if(this.disabled){var a=this.$scopedSlots&&this.$scopedSlots.default();return a?a.length<2&&!a[0].text?a:e(this.tag,a):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(Ne)return document.querySelector(this.selector)},insertTargetEl:function(){if(Ne){var e=document.querySelector("body"),a=document.createElement(this.tag);a.id=this.selector.substring(1),e.appendChild(a)}},mount:function(){if(Ne){var e=this.getTargetEl(),a=document.createElement("DIV");this.prepend&&e.firstChild?e.insertBefore(a,e.firstChild):e.appendChild(a),this.container=new Ur({el:a,parent:this,propsData:{tag:this.tag,nodes:this.$scopedSlots.default}})}},unmount:function(){this.container&&(this.container.$destroy(),delete this.container)}}});function Wr(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};t.component(e.name||"portal",ct),e.defaultSelector&&zr(e.defaultSelector)}typeof window<"u"&&window.Vue&&window.Vue===L&&L.use(Wr);const Kr={name:"PopoverHeaderFooter",components:{DtButton:l.DtButton,DtIcon:l.DtIcon},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 jr=function(){var e=this,a=e._self._c;return a("div",{class:{"d-popover__header":e.type==="header","d-popover__footer":e.type==="footer"},attrs:{"data-qa":"dt-popover-header-footer"}},[e.$slots.content?a("div",{class:[{"d-popover__header__content":e.type==="header","d-popover__footer__content":e.type==="footer"},e.contentClass],attrs:{"data-qa":"dt-popover-header-footer-content"}},[e._t("content")],2):e._e(),e.showCloseButton?a("dt-button",e._b({ref:"popover__close-button",class:{"d-popover__header__close-button":e.type==="header","d-popover__footer__close-button":e.type==="footer"},attrs:{"data-qa":"dt-popover-close",importance:"outlined",kind:"muted",circle:""},on:{click:function(n){return e.$emit("close")}},scopedSlots:e._u([{key:"icon",fn:function(){return[a("dt-icon",{attrs:{name:"close",size:"300"}})]},proxy:!0}],null,!1,2538694920)},"dt-button",e.closeButtonProps,!1)):e._e()],1)},Yr=[],Gr=o.normalizeComponent(Kr,jr,Yr,!1,null,null,null,null);const Zr=Gr.exports,Xr={name:"DtPopover",components:{SrOnlyCloseButton:Ce,DtLazyShow:o.DtLazyShow,PopoverHeaderFooter:Zr,Portal:ct},mixins:[K,D],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=>Gt.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(We).some(e=>e===t)},contentClass:{type:[String,Array,Object],default:""},contentWidth:{type:String,default:"",validator:t=>dt.includes(t)},contentTabindex:{type:Number||null,default:-1},externalAnchor:{type:String,default:""},id:{type:String,default(){return o.getUniqueString()}},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=>Xt.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=>Zt.includes(t)||t instanceof HTMLElement||t.startsWith("#")},openWithArrowKeys:{type:Boolean,default:!1},appendTo:{type:[HTMLElement,String],default:"body",validator:t=>re.includes(t)||t instanceof HTMLElement}},emits:["opened","update:open"],data(){return{POPOVER_PADDING_CLASSES:We,POPOVER_HEADER_FOOTER_PADDING_CLASSES:Yt,intersectionObserver:null,isOutsideViewport:!1,isOpen:!1,anchorEl:null,popoverContentEl:null}},computed:{popoverListeners(){return{...this.$listeners,keydown:t=>{this.onKeydown(t),this.$emit("keydown",t)},"after-leave":t=>{this.onLeaveTransitionComplete()},"after-enter":t=>{this.onEnterTransitionComplete()}}},calculatedMaxHeight(){return this.isOutsideViewport&&this.modal?"calc(100vh - var(--dt-space-300))":this.maxHeight},labelledBy(){return this.ariaLabelledby||!this.ariaLabel&&o.getUniqueString("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 n;const e=(n=t==null?void 0:t[0])==null?void 0:n.target;if(!e)return;const a=o.isOutOfViewPort(e);this.isOutsideViewport=a.bottom||a.top},popperOptions(){return o.getPopperOptions({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,a;this.openOnContext||(this.open??((e=this.anchorEl)!=null&&e.contains(t.target)&&!((a=this.anchorEl)!=null&&a.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,a;const t=(e=this.anchorEl)==null?void 0:e.closest("body, .tippy-box");t&&(((a=t.tagName)==null?void 0:a.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,a,n;const t=(a=(e=this.$refs.content)==null?void 0:e.$el)==null?void 0:a.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():(n=this.$refs.content)==null||n.$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 a,n;this._getFocusableElements(t,!0).length!==0?this.focusFirstElement(t):this.showCloseButton?(a=this.$refs.popover__header)==null||a.focusCloseButton():(n=this.$refs.content)==null||n.$el.focus()},initTippyInstance(){var t,e;this.tip=o.createTippy(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 Qr=function(){var e=this,a=e._self._c;return a("div",[e.modal&&e.isOpen?a("portal",[a("div",{staticClass:"d-modal--transparent",attrs:{"aria-hidden":e.modal&&e.isOpen?"false":"true"},on:{click:function(n){n.preventDefault(),n.stopPropagation()}}})]):e._e(),a(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),[a("div",{ref:"anchor",attrs:{id:!e.ariaLabelledby&&e.labelledBy,"data-qa":"dt-popover-anchor",tabindex:e.openOnContext?0:void 0},on:{"!click":function(n){return e.defaultToggleOpen.apply(null,arguments)},contextmenu:e.onContext,keydown:[function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"up",38,n.key,["Up","ArrowUp"])?null:(n.preventDefault(),e.onArrowKeyPress.apply(null,arguments))},function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"down",40,n.key,["Down","ArrowDown"])?null:(n.preventDefault(),e.onArrowKeyPress.apply(null,arguments))}],"!keydown":function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"escape",void 0,n.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),a("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?a("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(),a("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?a("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?a("sr-only-close-button",{attrs:{"visually-hidden-close-label":e.visuallyHiddenCloseLabel},on:{close:e.closePopover}}):e._e()],1)],1)],1)},Jr=[],es=o.normalizeComponent(Xr,Qr,Jr,!1,null,null,null,null);const Ee=es.exports,z={none:void 0,small:"d-py0",large:"d-py4"},ts={name:"DtDropdown",components:{DtPopover:Ee,SrOnlyCloseButton:Ce},mixins:[it({indexKey:"highlightIndex",idKey:"highlightId",listElementKey:"getListElement",listItemRole:"menuitem",afterHighlightMethod:"afterHighlight",beginningOfListMethod:"beginningOfListMethod",endOfListMethod:"endOfListMethod",activeItemKey:"activeItemEl",focusOnKeyboardNavigation:!0}),D],props:{open:{type:Boolean,default:null},openOnContext:{type:Boolean,default:!1},padding:{type:String,default:"small",validator:t=>Object.keys(z).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 o.getUniqueString()}},navigationType:{type:String,default:x.ARROW_KEYS,validator:t=>Object.values(x).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=>re.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:x,DROPDOWN_PADDING_CLASSES:z,EVENT_KEYNAMES:o.EVENT_KEYNAMES,openedWithKeyboard:!1,isOpen:null}},computed:{dropdownListeners(){return{...this.$listeners,opened:t=>{this.updateInitialHighlightIndex(t)},keydown:t=>{switch(t.code){case o.EVENT_KEYNAMES.up:case o.EVENT_KEYNAMES.arrowup:this.onUpKeyPress(t),t.stopPropagation(),t.preventDefault();break;case o.EVENT_KEYNAMES.down:case o.EVENT_KEYNAMES.arrowdown:this.onDownKeyPress(t),t.stopPropagation(),t.preventDefault();break;case o.EVENT_KEYNAMES.space:case o.EVENT_KEYNAMES.spacebar:this.onSpaceKey();break;case o.EVENT_KEYNAMES.enter:this.onEnterKey();break;case o.EVENT_KEYNAMES.home:this.onHomeKeyPress(t),t.stopPropagation(),t.preventDefault();break;case o.EVENT_KEYNAMES.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-dropdown-list",z[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.isValidLetter(t.key)))return t.stopPropagation(),t.preventDefault(),this.onNavigationKey(t.key)}}};var as=function(){var e=this,a=e._self._c;return a("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:n}){return[e._t("anchor",null,null,n)]}},{key:"content",fn:function({close:n}){return[a("ul",{ref:"listWrapper",class:e.listClasses,attrs:{id:e.listId,"data-qa":"dt-dropdown-list-wrapper"},on:{mouseleave:e.clearHighlightIndex,"!mousemove":function(r){return e.onMouseHighlight.apply(null,arguments)}}},[e._t("list",null,{close:n}),e.showVisuallyHiddenClose?a("sr-only-close-button",{attrs:{"visually-hidden-close-label":e.visuallyHiddenCloseLabel,tabindex:e.isArrowKeyNav?-1:0},on:{close:n}}):e._e()],2)]}}],null,!0)},e.dropdownListeners))},ns=[],rs=o.normalizeComponent(ts,as,ns,!1,null,null,null,null);const Jt=rs.exports,ss={name:"DtDropdownSeparator"};var is=function(){var e=this,a=e._self._c;return a("li",{staticClass:"dt-list-separator",attrs:{"aria-hidden":"true"}})},os=[],ls=o.normalizeComponent(ss,is,os,!1,null,null,null,null);const ds=ls.exports,cs={name:"DtImageViewer",components:{Portal:ct,DtButton:l.DtButton,DtIcon:l.DtIcon},mixins:[K],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 o.EVENT_KEYNAMES.esc:case o.EVENT_KEYNAMES.escape:this.close();break;case o.EVENT_KEYNAMES.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 us=function(){var e=this,a=e._self._c;return a("div",[a("dt-button",{staticClass:"d-image-viewer__preview-button",attrs:{"data-qa":"dt-image-viewer-preview","aria-label":e.ariaLabel,importance:"clear"},on:{click:e.openModal}},[a("img",{class:e.imageButtonClass,attrs:{src:e.imageSrc,alt:e.imageAlt}})]),e.isOpen?a("portal",[a("div",e._g({staticClass:"d-modal",attrs:{"aria-hidden":e.isOpen?"false":"true","data-qa":"dt-modal"},on:{mouseover:function(n){e.showCloseButton=!0},mouseleave:function(n){e.showCloseButton=!1},focusin:function(n){e.showCloseButton=!0},focusout:function(n){e.showCloseButton=!1}}},e.modalListeners),[a("div",{staticClass:"d-image-viewer__full",attrs:{"data-qa":"dt-image-viewer-full",role:"dialog","aria-modal":"true"}},[a("img",{staticClass:"d-image-viewer__full__image",attrs:{src:e.imageSrc,alt:e.imageAlt}})]),a("transition",{attrs:{name:"fade"}},[e.showCloseButton?a("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[a("dt-icon",{staticClass:"d-image-viewer__close-button",attrs:{name:"close",size:"400"}})]},proxy:!0}],null,!1,1620344283)}):e._e()],1)],1)]):e._e()],1)},ps=[],fs=o.normalizeComponent(cs,us,ps,!1,null,null,null,null);const hs=fs.exports,ea={components:{DtValidationMessages:l.DtValidationMessages},provide(){return{groupContext:this.provideObj,setGroupValue:this.setGroupValue}},props:{id:{type:String,default(){return o.getUniqueString()}},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=>l.validationMessageValidator(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=o.formatMessages(this.messages);return{provideObj:{name:this.name,disabled:this.disabled,validationState:o.getValidationState(t)}}},computed:{formattedMessages(){return o.formatMessages(this.messages)},validationState(){return o.getValidationState(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"]&&L.util.warn("It is expected that an aria-label is provided when there is no legend.",this)}},ms={name:"DtInputGroup",components:{DtValidationMessages:l.DtValidationMessages},mixins:[ea],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 _s=function(){var e=this,a=e._self._c;return a("fieldset",{staticClass:"d-input-group__fieldset",attrs:{"data-qa":e.dataQaGroup}},[e.$slots.legend||e.legend?a("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"),a("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)},gs=[],vs=o.normalizeComponent(ms,_s,gs,!1,null,null,null,null);const ut=vs.exports,Ke={default:"",danger:"d-modal--danger"},je={default:"",full:"d-modal--full"},Ye={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"},bs={name:"DtModal",components:{DtLazyShow:o.DtLazyShow,DtButton:l.DtButton,DtIcon:l.DtIcon,SrOnlyCloseButton:Ce},mixins:[K,D],props:{closeButtonProps:{type:Object,required:!0,validator:t=>!!t.ariaLabel},copy:{type:String,default:""},describedById:{type:String,default:""},labelledById:{type:String,default:function(){return o.getUniqueString()}},show:{type:Boolean,default:!1},title:{type:String,default:""},bannerTitle:{type:String,default:""},kind:{type:String,default:"default",validator:t=>Object.keys(Ke).includes(t)},size:{type:String,default:"default",validator:t=>Object.keys(je).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 W.includes(t)}},bannerClass:{type:[String,Object,Array],default:""},hideClose:{type:Boolean,default:!1},closeOnClick:{type:Boolean,default:!0},fixedHeaderFooter:{type:Boolean,default:!0},initialFocusElement:{type:[String,HTMLElement],default:"first",validator:t=>t==="first"||t instanceof HTMLElement||t.startsWith("#")}},emits:["update:show"],data(){return{MODAL_KIND_MODIFIERS:Ke,MODAL_SIZE_MODIFIERS:je,MODAL_BANNER_KINDS:Ye,EVENT_KEYNAMES:o.EVENT_KEYNAMES}},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 o.EVENT_KEYNAMES.esc:case o.EVENT_KEYNAMES.escape:this.close();break;case o.EVENT_KEYNAMES.tab:this.trapFocus(t);break}this.$emit("keydown",t)},"after-enter":t=>{this.$emit("update:show",!0),t.target===t.currentTarget&&this.setFocusAfterTransition()}}},open(){return`${!this.show}`},hasFooterSlot(){return!!this.$slots.footer},bannerKindClass(){return Ye[this.bannerKind]}},watch:{show:{immediate:!0,handler(t){var e;t?this.previousActiveElement=document.activeElement:((e=this.previousActiveElement)==null||e.focus(),this.previousActiveElement=null)}},$props:{immediate:!0,deep:!0,handler(){this.validateProps()}}},methods:{close(){this.$emit("update:show",!1)},setFocusAfterTransition(){this.initialFocusElement==="first"?this.focusFirstElement():this.initialFocusElement.startsWith("#")?this.focusElementById(this.initialFocusElement):this.initialFocusElement instanceof HTMLElement&&this.initialFocusElement.focus()},trapFocus(t){this.show&&this.focusTrappedTabPress(t)},validateProps(){this.hideClose&&!this.visuallyHiddenClose&&console.error(`If hideClose prop is true, visuallyHiddenClose and visuallyHiddenCloseLabel props
6
- need to be set so the component always includes a close button`)}}};var ys=function(){var e=this,a=e._self._c;return a("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)?a("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(),a("transition",{attrs:{appear:"",name:"d-modal__dialog"}},[a("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?a("div",{staticClass:"d-modal__header",attrs:{id:e.labelledById,"data-qa":"dt-modal-title"}},[e._t("header")],2):a("h2",{staticClass:"d-modal__header",attrs:{id:e.labelledById,"data-qa":"dt-modal-title"}},[e._v(" "+e._s(e.title)+" ")]),e.$slots.default?a("div",{class:["d-modal__content",e.contentClass],attrs:{"data-qa":"dt-modal-copy"}},[e._t("default")],2):a("p",{class:["d-modal__content",e.contentClass],attrs:{"data-qa":"dt-modal-copy"}},[e._v(" "+e._s(e.copy)+" ")]),e.hasFooterSlot?a("footer",{staticClass:"d-modal__footer"},[e._t("footer")],2):e._e(),e.hideClose?e._e():a("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[a("dt-icon",{attrs:{name:"close",size:"400"}})]},proxy:!0}],null,!1,1709155279)},"dt-button",e.closeButtonProps,!1)),e.showVisuallyHiddenClose?a("sr-only-close-button",{attrs:{"visually-hidden-close-label":e.visuallyHiddenCloseLabel},on:{close:e.close}}):e._e()],1)])],1)},Ss=[],Cs=o.normalizeComponent(bs,ys,Ss,!1,null,null,null,null);const Is=Cs.exports,Es={name:"DtListItemGroup",props:{id:{type:String,default(){return o.getUniqueString()}},heading:{type:String,default:""},headingClass:{type:[String,Array,Object],default:""},listClass:{type:[String,Array,Object],default:""}}};var ws=function(){var e=this,a=e._self._c;return a("ul",{class:["d-list-item-group",e.listClass],attrs:{id:e.id,role:"group","data-qa":"dt-dropdown-list-wrapper","aria-labelledby":`${e.id}-heading`}},[e.heading?a("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)},Ds=[],Os=o.normalizeComponent(Es,ws,Ds,!1,null,null,null,null);const Ts=Os.exports,ks={name:"DtPagination",components:{DtButton:l.DtButton,DtIcon:l.DtIcon},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 a=this.maxVisible-(3-this.maxVisible%2),n=Math.floor(a/2),r=this.currentPage-n,s=this.currentPage+n;return[1,"...",...this.range(r,s),"...",this.totalPages]}},methods:{range(t,e){const a=[];t=t>0?t:1;for(let n=t;n<=e;n++)a.push(n);return a},changePage(t){this.currentPage=t,this.$emit("change",this.currentPage)}}};var xs=function(){var e=this,a=e._self._c;return a("nav",{staticClass:"d-pagination",attrs:{"aria-label":e.ariaLabel}},[a("dt-button",{staticClass:"d-pagination__button",class:e.isFirstPage?"d-fc-black-300 d-bgc-transparent":"d-fc-tertiary",attrs:{"data-qa":"dt-pagination-prev","aria-label":e.prevAriaLabel,kind:e.isFirstPage?"default":"muted",importance:e.isFirstPage?"primary":"clear",disabled:e.isFirstPage},on:{click:function(n){return e.changePage(e.currentPage-1)}}},[a("template",{slot:"icon"},[a("dt-icon",{attrs:{name:"chevron-left",size:"300"}})],1)],2),e._l(e.pages,function(n,r){return a("div",{key:`page-${n}-${r}`,class:{"d-pagination__separator":isNaN(Number(n))}},[isNaN(Number(n))?a("div",{staticClass:"d-pagination__separator-icon",attrs:{"data-qa":"dt-pagination-separator"}},[a("dt-icon",{attrs:{name:"more-horizontal",size:"300"}})],1):a("dt-button",{attrs:{"aria-label":e.pageNumberAriaLabel(n),kind:e.currentPage===n?"default":"muted",importance:e.currentPage===n?"primary":"clear","label-class":""},on:{click:function(s){return e.changePage(n)}}},[e._v(" "+e._s(n)+" ")])],1)}),a("dt-button",{staticClass:"d-pagination__button",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(n){return e.changePage(e.currentPage+1)}}},[a("template",{slot:"icon"},[a("dt-icon",{attrs:{name:"chevron-right",size:"300"}})],1)],2)],2)},Ls=[],$s=o.normalizeComponent(ks,xs,Ls,!1,null,null,null,null);const Rs=$s.exports,ta={warning:"d-radio--warning",error:"d-radio--error",success:"d-radio--success"},As={name:"DtRadio",components:{DtValidationMessages:l.DtValidationMessages},mixins:[l.InputMixin,l.CheckableMixin,l.GroupableMixin,l.MessagesMixin],inheritAttrs:!1,props:{value:{type:[String,Number],default:""}},emits:["input","focusin","focusout"],computed:{inputValidationClass(){return ta[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 Ms=function(){var e=this,a=e._self._c;return a("div",[a("label",[a("div",{class:["d-radio-group",{"d-radio-group--disabled":e.internalDisabled}]},[a("div",{staticClass:"d-radio__input"},[a("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))]),a("div",{staticClass:"d-radio__copy d-radio__label",attrs:{"data-qa":"radio-label-description-container"}},[a("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?a("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(),a("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)])])])},Ns=[],Ps=o.normalizeComponent(As,Ms,Ns,!1,null,null,null,null);const Bs=Ps.exports,Fs={name:"DtRadioGroup",extends:ut,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}`}}},Vs=null,qs=null;var Hs=o.normalizeComponent(Fs,Vs,qs,!1,null,null,null,null);const zs=Hs.exports,Us={name:"DtTabPanel",mixins:[K],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,a=!0;for(;e;){if(e.previousElementSibling!==null){a=!1;break}e=e.parentNode!==this.$el?e.parentNode:null}return a}}};var Ws=function(){var e=this,a=e._self._c;return a("div",{directives:[{name:"show",rawName:"v-show",value:!e.hidePanel,expression:"!hidePanel"}],class: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)},Ks=[],js=o.normalizeComponent(Us,Ws,Ks,!1,null,null,null,null);const Ys=js.exports,Gs={error:"d-checkbox--error",warning:"d-checkbox--warning",success:"d-checkbox--success"},Zs={name:"DtCheckbox",components:{DtValidationMessages:l.DtValidationMessages},mixins:[l.InputMixin,l.CheckableMixin,l.GroupableMixin,l.MessagesMixin],inheritAttrs:!1,emits:["input","focusin","focusout"],computed:{inputValidationClass(){return Gs[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:a}=t;this.internalIndeterminate&&(a=!1,this.internalIndeterminate=!1,t.checked=!1),this.setGroupValue(e,a),this.$emit("input",a)},runValidations(){this.validateInputLabels(this.hasLabel,this.$attrs["aria-label"])}}};var Xs=function(){var e=this,a=e._self._c;return a("div",[a("label",[a("div",{class:["d-checkbox-group",{"d-checkbox-group--disabled":e.internalDisabled}]},[a("div",{staticClass:"d-checkbox__input"},[a("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?a("div",{staticClass:"d-checkbox__copy d-checkbox__label",attrs:{"data-qa":"checkbox-label-description-container"}},[e.hasLabel?a("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?a("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(),a("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()])])])},Qs=[],Js=o.normalizeComponent(Zs,Xs,Qs,!1,null,null,null,null);const ei=Js.exports,ti={name:"DtCheckboxGroup",extends:ut,model:{prop:"selectedValues"},props:{value:{type:[],default:null,validator:t=>t?(L.util.warn("Component uses selectedValues to initialize the model, value is not supported by this component",void 0),!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(a=>a!==t),this.$emit("input",this.internalValue)},getMessageKey(t,e){return`checkbox-group-message-${t}-${e}-${this.id}`}}},ai=null,ni=null;var ri=o.normalizeComponent(ti,ai,ni,!1,null,null,null,null);const si=ri.exports,Ge={xs:"d-chip__label--xs",sm:"d-chip__label--sm",md:""},aa={xs:"d-chip__close--xs",sm:"d-chip__close--sm",md:""},na={xs:"200",sm:"200",md:"200"},ii={name:"DtChip",components:{DtButton:l.DtButton,DtIcon:l.DtIcon},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(Ge).includes(t)},interactive:{type:Boolean,default:!0},id:{type:String,default:function(){return o.getUniqueString()}},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 na[this.size]}},methods:{chipClasses(){return[this.$attrs["grouped-chip"]?"d-chip":"d-chip__label",Ge[this.size],this.labelClass]},chipCloseButtonClasses(){return["d-chip__close",aa[this.size]]},onClose(){this.hideClose||this.$emit("close")}}};var oi=function(){var e=this,a=e._self._c;return a("span",{staticClass:"d-chip"},[a(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?a("span",{staticClass:"d-chip__icon",attrs:{"data-qa":"dt-chip-icon"}},[e._t("icon")],2):e.$slots.avatar?a("span",{attrs:{"data-qa":"dt-chip-avatar"}},[e._t("avatar")],2):e._e(),e.$slots.default?a("span",{class:["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():a("dt-button",e._b({class:e.chipCloseButtonClasses(),attrs:{"data-qa":"dt-chip-close","aria-label":e.closeButtonProps.ariaLabel},on:{click:function(n){return e.$emit("close")}},scopedSlots:e._u([{key:"icon",fn:function(){return[a("dt-icon",{attrs:{name:"close",size:e.closeButtonIconSize}})]},proxy:!0}],null,!1,1192647893)},"dt-button",e.closeButtonProps,!1))],1)},li=[],di=o.normalizeComponent(ii,oi,li,!1,null,null,null,null);const pt=di.exports,Ze={xs:"d-select--xs",sm:"d-select--sm",md:"",lg:"d-select--lg",xl:"d-select--xl"},ra={error:"d-select__input--error",warning:"d-select__input--warning",success:"d-select__input--success"},ci=t=>!t.index||typeof t.index=="number",ui=t=>t.value?typeof t.value=="string"||typeof t.value=="number":!1,pi=t=>t.label?typeof t.label=="string":!1,fi=t=>t?t.every(e=>!(!ci(e)||!ui(e)||!pi(e))):!0,hi={name:"DtSelectMenu",components:{DtValidationMessages:l.DtValidationMessages},mixins:[l.MessagesMixin],inheritAttrs:!1,props:{label:{type:String,default:""},description:{type:String,default:""},options:{type:Array,default:()=>[],validator:t=>fi(t)},value:{type:String,default:null},size:{type:String,default:"md",validator:t=>Object.keys(Ze).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:o.LABEL_SIZE_MODIFIERS,DESCRIPTION_SIZE_MODIFIERS:o.DESCRIPTION_SIZE_MODIFIERS,SELECT_SIZE_MODIFIERS:Ze,SELECT_STATE_MODIFIERS:ra}},computed:{selectListeners(){return{...this.$listeners,input:()=>{},change:t=>this.emitValue(t.target.value,t)}},state(){return o.getValidationState(this.formattedMessages)},selectKey(){return o.getUniqueString()},descriptionKey(){return`select-${this.selectKey}-description`},labelAriaDetails(){return this.$slots.description||this.description?this.descriptionKey:this.$attrs["aria-details"]}},mounted(){this.validateOptionsPresence()},beforeUpdate(){this.validateOptionsPresence()},methods:{emitValue(t,e){this.$emit("input",t,e),this.$emit("change",t,e)},getOptionKey(t){return`select-${this.selectKey}-option-${t}`},validateOptionsPresence(){var t;((t=this.options)==null?void 0:t.length)<1&&!this.$slots.default&&L.util.warn("Options are expected to be provided via prop or slot",this)}}};var mi=function(){var e=this,a=e._self._c;return a("div",[a("label",[e.$slots.label||e.label?a("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?a("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(),a("div",{class:["d-select",e.SELECT_SIZE_MODIFIERS[e.size],e.selectClass,{"d-select--disabled":e.disabled}],attrs:{"data-qa":"dt-select-wrapper"}},[a("select",e._g(e._b({ref:"selectElement",class:["d-select__input",e.SELECT_STATE_MODIFIERS[e.state]],attrs:{"data-qa":"dt-select",disabled:e.disabled},domProps:{value:e.value}},"select",e.$attrs,!1),e.selectListeners),[e._t("default",function(){return e._l(e.options,function(n){return a("option",e._b({key:e.getOptionKey(n.value),class:e.optionClass,domProps:{value:n.value}},"option",e.optionChildProps,!1),[e._v(" "+e._s(n.label)+" ")])})})],2)])]),a("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)},_i=[],gi=o.normalizeComponent(hi,mi,_i,!1,null,null,null,null);const vi=gi.exports,sa=["status","alert"],Xe=6e3,bi={name:"DtToast",components:{DtNoticeIcon:ye,DtNoticeContent:Se,DtNoticeAction:Ie},mixins:[D],props:{titleId:{type:String,default(){return o.utils.getUniqueString()}},contentId:{type:String,default(){return o.utils.getUniqueString()}},title:{type:String,default:""},message:{type:String,default:""},role:{type:String,default:"status",validator:t=>sa.includes(t)},kind:{type:String,default:"base",validator:t=>W.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>=Xe}},emits:["close","update:show"],data(){return{isShown:!1,minDuration:Xe}},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 yi=function(){var e=this,a=e._self._c;return e.isShown?a("div",{class:["d-toast",e.kindClass,{"d-toast--important":e.important}],attrs:{"data-qa":"dt-toast","aria-hidden":(!e.isShown).toString()}},[a("div",{staticClass:"d-toast__dialog"},[a("dt-notice-icon",e._g({attrs:{kind:e.kind}},e.$listeners),[e._t("icon")],2),a("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),a("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()},Si=[],Ci=o.normalizeComponent(bi,yi,Si,!1,null,null,null,null);const Ii=Ci.exports,Qe={sm:"d-toggle--small",md:""},ia=[!1,!0,"mixed"],Ei={name:"DtToggle",inheritAttrs:!1,model:{prop:"checked",event:"change"},props:{id:{type:String,default(){return o.utils.getUniqueString()}},disabled:{type:Boolean,default:!1},checked:{type:[Boolean,String],default:!1,validator:t=>ia.includes(t)},toggleOnClick:{type:Boolean,default:!0},size:{type:String,default:"md",validator:t=>Object.keys(Qe).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",Qe[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&&L.util.warn("You must provide an aria-label when there is no label passed",this)}}};var wi=function(){var e=this,a=e._self._c;return a("div",{staticClass:"d-toggle-wrapper"},[e.$slots.default?a("label",e._b({class:e.labelClass,attrs:{for:e.id,"data-qa":"toggle-label"}},"label",e.labelChildProps,!1),[e._t("default")],2):e._e(),a("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?a("span",{staticClass:"d-toggle__inner"}):e._e()])])},Di=[],Oi=o.normalizeComponent(Ei,wi,Di,!1,null,null,null,null);const Ti=Oi.exports,H={"{win}":"layout-grid","{arrow-right}":"arrow-right","{arrow-left}":"arrow-left","{arrow-up}":"arrow-up","{arrow-down}":"arrow-down","{cmd}":"command"},oa={"{plus}":"plus"},ki=Object.keys(H),xi={name:"DtKeyboardShortcut",components:{DtIcon:l.DtIcon},props:{inverted:{type:Boolean,default:!1},shortcut:{type:String,required:!0},screenReaderText:{type:String,default:null}},data(){return{SHORTCUTS_ICON_ALIASES:H,separator:/\+/gi}},computed:{icons(){return{...H,...oa}},shortcutWithSeparator(){return this.shortcut.replace(this.separator,"{plus}")},formattedShortcut(){return Object.keys(H).reduce((t,e)=>t.replace(new RegExp("{"+e+"}","gi"),H[e]),this.shortcutWithSeparator)},formattedShortcutSplit(){const t=Object.keys(this.icons).join("|"),e=new RegExp(`(${t})`,"gi");return this.formattedShortcut.split(e).filter(Boolean)}}};var Li=function(){var e=this,a=e._self._c;return a("kbd",{class:["d-keyboard-shortcut",{"d-keyboard-shortcut--inverted":e.inverted}]},[e.screenReaderText?a("span",{staticClass:"sr-only"},[e._v(" "+e._s(e.screenReaderText)+" ")]):e._e(),e._l(e.formattedShortcutSplit,function(n,r){return[e.icons[n]?a("dt-icon",{key:`${r}-${n}`,class:["d-keyboard-shortcut__icon",{"d-keyboard-shortcut__icon--inverted":e.inverted}],attrs:{name:e.icons[n],size:"100","aria-hidden":"true"}}):a("span",{key:`${r}-${n}`,class:["d-keyboard-shortcut__item",{"d-keyboard-shortcut__item--inverted":e.inverted}],attrs:{"aria-hidden":"true"},domProps:{innerHTML:e._s(n)}})]})],2)},$i=[],Ri=o.normalizeComponent(xi,Li,$i,!1,null,null,null,null);const Ai=Ri.exports,Je={LEFT:"left",RIGHT:"right"},la=["sm","md","lg",null],Mi={name:"DtRootLayout",props:{fixed:{type:Boolean,default:!0},headerClass:{type:[String,Array,Object],default:""},headerHeight:{type:String,default:"64px"},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(Je).includes(t)},footerClass:{type:[String,Array,Object],default:""},footerHeight:{type:String,default:"64px"},responsiveBreakpoint:{type:String,default:null,validator:t=>la.includes(t)}},computed:{isInverted(){return this.sidebarPosition===Je.RIGHT}}};var Ni=function(){var e=this,a=e._self._c;return a("div",{class:["root-layout","d-root-layout",{"d-root-layout--fixed":e.fixed,"d-root-layout--inverted":e.isInverted,[`d-root-layout__responsive--${e.responsiveBreakpoint}`]:!!e.responsiveBreakpoint}],attrs:{"data-qa":"dt-root-layout"}},[a("header",{class:["d-root-layout__header",{"d-root-layout__header--sticky":e.headerSticky},e.headerClass],attrs:{"data-qa":"dt-root-layout-header"}},[e._t("header")],2),a("aside",{ref:"root-layout-sidebar",class:["d-root-layout__sidebar",e.sidebarClass],attrs:{tabindex:"0","data-qa":"dt-root-layout-sidebar"}},[e._t("sidebar")],2),a("main",{ref:"root-layout-content",class:["d-root-layout__content",e.contentClass],attrs:{"data-qa":"dt-root-layout-content",tabindex:"0"}},[e._t("default")],2),a("footer",{class:["d-root-layout__footer",e.footerClass],attrs:{"data-qa":"dt-root-layout-footer"}},[e._t("footer")],2)])},Pi=[],Bi=o.normalizeComponent(Mi,Ni,Pi,!1,null,null,null,null);const Fi=Bi.exports;function yt(t){return t===$.default}function St(t){if(Q(t)==="string")return yt(t)?null:$[t];if(Q(t)==="object"){const{default:e}=t;return yt(e)?null:$[e]}else return null}function Q(t){return typeof t}function Vi(t){return St(t)?`d-stack--${$[St(t)]}`:null}function qi(t){return Q(t)==="object"?[...lt.map(e=>t[e]?`d-stack--${e}--${t[e]}`:null)]:null}function Hi(t){return ne.includes(t)?`d-stack--gap-${t}`:null}function zi(t){if(Q(t)==="string")return Object.keys($).includes(t);if(Q(t)==="object"){const{default:e}=t;return Object.keys($).includes(e)}else return null}function Ui(t){return ne.includes(t)}const Wi={name:"DtStack",props:{direction:{type:[String,Object],default:"column",validator:t=>zi(t)},as:{type:String,default:"div"},gap:{type:String,default:"0",validator:t=>Ui(t)}},data(){return{DT_STACK_DIRECTION:$,DT_STACK_GAP:ne,DT_STACK_RESPONSIVE_BREAKPOINTS:lt}},computed:{stackGap(){return Hi(this.gap)},defaultDirection(){return Vi(this.direction)},stackResponsive(){return qi(this.direction)}}};var Ki=function(){var e=this,a=e._self._c;return a(e.as,{tag:"component",class:["d-stack",e.defaultDirection,e.stackResponsive,e.stackGap]},[e._t("default")],2)},ji=[],Yi=o.normalizeComponent(Wi,Ki,ji,!1,null,null,null,null);const Gi=Yi.exports;function U(t){"@babel/helpers - typeof";return U=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},U(t)}function y(t){if(t===null||t===!0||t===!1)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function p(t,e){if(e.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+e.length+" present")}function h(t){p(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||U(t)==="object"&&e==="[object Date]"?new Date(t.getTime()):typeof t=="number"||e==="[object Number]"?new Date(t):((typeof t=="string"||e==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function we(t,e){p(2,arguments);var a=h(t),n=y(e);return isNaN(n)?new Date(NaN):(n&&a.setDate(a.getDate()+n),a)}function ft(t,e){p(2,arguments);var a=h(t),n=y(e);if(isNaN(n))return new Date(NaN);if(!n)return a;var r=a.getDate(),s=new Date(a.getTime());s.setMonth(a.getMonth()+n+1,0);var i=s.getDate();return r>=i?s:(a.setFullYear(s.getFullYear(),s.getMonth(),r),a)}function G(t,e){if(p(2,arguments),!e||U(e)!=="object")return new Date(NaN);var a=e.years?y(e.years):0,n=e.months?y(e.months):0,r=e.weeks?y(e.weeks):0,s=e.days?y(e.days):0,i=e.hours?y(e.hours):0,c=e.minutes?y(e.minutes):0,u=e.seconds?y(e.seconds):0,f=h(t),g=n||a?ft(f,n+a*12):f,d=s||r?we(g,s+r*7):g,_=c+i*60,m=u+_*60,v=m*1e3,I=new Date(d.getTime()+v);return I}function Zi(t,e){p(2,arguments);var a=h(t).getTime(),n=y(e);return new Date(a+n)}var Xi={};function B(){return Xi}function et(t,e){var a,n,r,s,i,c,u,f;p(1,arguments);var g=B(),d=y((a=(n=(r=(s=e==null?void 0:e.weekStartsOn)!==null&&s!==void 0?s:e==null||(i=e.locale)===null||i===void 0||(c=i.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&r!==void 0?r:g.weekStartsOn)!==null&&n!==void 0?n:(u=g.locale)===null||u===void 0||(f=u.options)===null||f===void 0?void 0:f.weekStartsOn)!==null&&a!==void 0?a:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var _=h(t),m=_.getDay(),v=(m<d?7:0)+m-d;return _.setDate(_.getDate()-v),_.setHours(0,0,0,0),_}function J(t){var e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),t.getTime()-e.getTime()}function _e(t){p(1,arguments);var e=h(t);return e.setHours(0,0,0,0),e}var Qi=864e5;function Ji(t,e){p(2,arguments);var a=_e(t),n=_e(e),r=a.getTime()-J(a),s=n.getTime()-J(n);return Math.round((r-s)/Qi)}function N(t,e){p(2,arguments);var a=h(t),n=h(e),r=a.getTime()-n.getTime();return r<0?-1:r>0?1:r}var eo=6e4,to=36e5;function da(t,e){p(2,arguments);var a=_e(t),n=_e(e);return a.getTime()===n.getTime()}function ao(t){return p(1,arguments),t instanceof Date||U(t)==="object"&&Object.prototype.toString.call(t)==="[object Date]"}function no(t){if(p(1,arguments),!ao(t)&&typeof t!="number")return!1;var e=h(t);return!isNaN(Number(e))}function ro(t,e){p(2,arguments);var a=h(t),n=h(e),r=a.getFullYear()-n.getFullYear(),s=a.getMonth()-n.getMonth();return r*12+s}function so(t,e){p(2,arguments);var a=h(t),n=h(e);return a.getFullYear()-n.getFullYear()}function Ct(t,e){var a=t.getFullYear()-e.getFullYear()||t.getMonth()-e.getMonth()||t.getDate()-e.getDate()||t.getHours()-e.getHours()||t.getMinutes()-e.getMinutes()||t.getSeconds()-e.getSeconds()||t.getMilliseconds()-e.getMilliseconds();return a<0?-1:a>0?1:a}function io(t,e){p(2,arguments);var a=h(t),n=h(e),r=Ct(a,n),s=Math.abs(Ji(a,n));a.setDate(a.getDate()-r*s);var i=+(Ct(a,n)===-r),c=r*(s-i);return c===0?0:c}function ht(t,e){return p(2,arguments),h(t).getTime()-h(e).getTime()}var It={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}},oo="trunc";function mt(t){return t?It[t]:It[oo]}function lo(t,e,a){p(2,arguments);var n=ht(t,e)/to;return mt(a==null?void 0:a.roundingMethod)(n)}function co(t,e,a){p(2,arguments);var n=ht(t,e)/eo;return mt(a==null?void 0:a.roundingMethod)(n)}function uo(t){p(1,arguments);var e=h(t);return e.setHours(23,59,59,999),e}function po(t){p(1,arguments);var e=h(t),a=e.getMonth();return e.setFullYear(e.getFullYear(),a+1,0),e.setHours(23,59,59,999),e}function fo(t){p(1,arguments);var e=h(t);return uo(e).getTime()===po(e).getTime()}function ca(t,e){p(2,arguments);var a=h(t),n=h(e),r=N(a,n),s=Math.abs(ro(a,n)),i;if(s<1)i=0;else{a.getMonth()===1&&a.getDate()>27&&a.setDate(30),a.setMonth(a.getMonth()-r*s);var c=N(a,n)===-r;fo(h(t))&&s===1&&N(t,n)===1&&(c=!1),i=r*(s-Number(c))}return i===0?0:i}function ua(t,e,a){p(2,arguments);var n=ht(t,e)/1e3;return mt(a==null?void 0:a.roundingMethod)(n)}function ho(t,e){p(2,arguments);var a=h(t),n=h(e),r=N(a,n),s=Math.abs(so(a,n));a.setFullYear(1584),n.setFullYear(1584);var i=N(a,n)===-r,c=r*(s-Number(i));return c===0?0:c}function mo(t,e){p(2,arguments);var a=y(e);return Zi(t,-a)}var _o=864e5;function go(t){p(1,arguments);var e=h(t),a=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var n=e.getTime(),r=a-n;return Math.floor(r/_o)+1}function ge(t){p(1,arguments);var e=1,a=h(t),n=a.getUTCDay(),r=(n<e?7:0)+n-e;return a.setUTCDate(a.getUTCDate()-r),a.setUTCHours(0,0,0,0),a}function pa(t){p(1,arguments);var e=h(t),a=e.getUTCFullYear(),n=new Date(0);n.setUTCFullYear(a+1,0,4),n.setUTCHours(0,0,0,0);var r=ge(n),s=new Date(0);s.setUTCFullYear(a,0,4),s.setUTCHours(0,0,0,0);var i=ge(s);return e.getTime()>=r.getTime()?a+1:e.getTime()>=i.getTime()?a:a-1}function vo(t){p(1,arguments);var e=pa(t),a=new Date(0);a.setUTCFullYear(e,0,4),a.setUTCHours(0,0,0,0);var n=ge(a);return n}var bo=6048e5;function yo(t){p(1,arguments);var e=h(t),a=ge(e).getTime()-vo(e).getTime();return Math.round(a/bo)+1}function ve(t,e){var a,n,r,s,i,c,u,f;p(1,arguments);var g=B(),d=y((a=(n=(r=(s=e==null?void 0:e.weekStartsOn)!==null&&s!==void 0?s:e==null||(i=e.locale)===null||i===void 0||(c=i.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&r!==void 0?r:g.weekStartsOn)!==null&&n!==void 0?n:(u=g.locale)===null||u===void 0||(f=u.options)===null||f===void 0?void 0:f.weekStartsOn)!==null&&a!==void 0?a:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var _=h(t),m=_.getUTCDay(),v=(m<d?7:0)+m-d;return _.setUTCDate(_.getUTCDate()-v),_.setUTCHours(0,0,0,0),_}function fa(t,e){var a,n,r,s,i,c,u,f;p(1,arguments);var g=h(t),d=g.getUTCFullYear(),_=B(),m=y((a=(n=(r=(s=e==null?void 0:e.firstWeekContainsDate)!==null&&s!==void 0?s:e==null||(i=e.locale)===null||i===void 0||(c=i.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&r!==void 0?r:_.firstWeekContainsDate)!==null&&n!==void 0?n:(u=_.locale)===null||u===void 0||(f=u.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&a!==void 0?a:1);if(!(m>=1&&m<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var v=new Date(0);v.setUTCFullYear(d+1,0,m),v.setUTCHours(0,0,0,0);var I=ve(v,e),C=new Date(0);C.setUTCFullYear(d,0,m),C.setUTCHours(0,0,0,0);var w=ve(C,e);return g.getTime()>=I.getTime()?d+1:g.getTime()>=w.getTime()?d:d-1}function So(t,e){var a,n,r,s,i,c,u,f;p(1,arguments);var g=B(),d=y((a=(n=(r=(s=e==null?void 0:e.firstWeekContainsDate)!==null&&s!==void 0?s:e==null||(i=e.locale)===null||i===void 0||(c=i.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&r!==void 0?r:g.firstWeekContainsDate)!==null&&n!==void 0?n:(u=g.locale)===null||u===void 0||(f=u.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&a!==void 0?a:1),_=fa(t,e),m=new Date(0);m.setUTCFullYear(_,0,d),m.setUTCHours(0,0,0,0);var v=ve(m,e);return v}var Co=6048e5;function Io(t,e){p(1,arguments);var a=h(t),n=ve(a,e).getTime()-So(a,e).getTime();return Math.round(n/Co)+1}function b(t,e){for(var a=t<0?"-":"",n=Math.abs(t).toString();n.length<e;)n="0"+n;return a+n}var Eo={y:function(e,a){var n=e.getUTCFullYear(),r=n>0?n:1-n;return b(a==="yy"?r%100:r,a.length)},M:function(e,a){var n=e.getUTCMonth();return a==="M"?String(n+1):b(n+1,2)},d:function(e,a){return b(e.getUTCDate(),a.length)},a:function(e,a){var n=e.getUTCHours()/12>=1?"pm":"am";switch(a){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h:function(e,a){return b(e.getUTCHours()%12||12,a.length)},H:function(e,a){return b(e.getUTCHours(),a.length)},m:function(e,a){return b(e.getUTCMinutes(),a.length)},s:function(e,a){return b(e.getUTCSeconds(),a.length)},S:function(e,a){var n=a.length,r=e.getUTCMilliseconds(),s=Math.floor(r*Math.pow(10,n-3));return b(s,a.length)}};const T=Eo;var V={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wo={G:function(e,a,n){var r=e.getUTCFullYear()>0?1:0;switch(a){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,a,n){if(a==="yo"){var r=e.getUTCFullYear(),s=r>0?r:1-r;return n.ordinalNumber(s,{unit:"year"})}return T.y(e,a)},Y:function(e,a,n,r){var s=fa(e,r),i=s>0?s:1-s;if(a==="YY"){var c=i%100;return b(c,2)}return a==="Yo"?n.ordinalNumber(i,{unit:"year"}):b(i,a.length)},R:function(e,a){var n=pa(e);return b(n,a.length)},u:function(e,a){var n=e.getUTCFullYear();return b(n,a.length)},Q:function(e,a,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(a){case"Q":return String(r);case"QQ":return b(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,a,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(a){case"q":return String(r);case"qq":return b(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,a,n){var r=e.getUTCMonth();switch(a){case"M":case"MM":return T.M(e,a);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,a,n){var r=e.getUTCMonth();switch(a){case"L":return String(r+1);case"LL":return b(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,a,n,r){var s=Io(e,r);return a==="wo"?n.ordinalNumber(s,{unit:"week"}):b(s,a.length)},I:function(e,a,n){var r=yo(e);return a==="Io"?n.ordinalNumber(r,{unit:"week"}):b(r,a.length)},d:function(e,a,n){return a==="do"?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):T.d(e,a)},D:function(e,a,n){var r=go(e);return a==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):b(r,a.length)},E:function(e,a,n){var r=e.getUTCDay();switch(a){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,a,n,r){var s=e.getUTCDay(),i=(s-r.weekStartsOn+8)%7||7;switch(a){case"e":return String(i);case"ee":return b(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(s,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(s,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(s,{width:"short",context:"formatting"});case"eeee":default:return n.day(s,{width:"wide",context:"formatting"})}},c:function(e,a,n,r){var s=e.getUTCDay(),i=(s-r.weekStartsOn+8)%7||7;switch(a){case"c":return String(i);case"cc":return b(i,a.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(s,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(s,{width:"narrow",context:"standalone"});case"cccccc":return n.day(s,{width:"short",context:"standalone"});case"cccc":default:return n.day(s,{width:"wide",context:"standalone"})}},i:function(e,a,n){var r=e.getUTCDay(),s=r===0?7:r;switch(a){case"i":return String(s);case"ii":return b(s,a.length);case"io":return n.ordinalNumber(s,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,a,n){var r=e.getUTCHours(),s=r/12>=1?"pm":"am";switch(a){case"a":case"aa":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},b:function(e,a,n){var r=e.getUTCHours(),s;switch(r===12?s=V.noon:r===0?s=V.midnight:s=r/12>=1?"pm":"am",a){case"b":case"bb":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},B:function(e,a,n){var r=e.getUTCHours(),s;switch(r>=17?s=V.evening:r>=12?s=V.afternoon:r>=4?s=V.morning:s=V.night,a){case"B":case"BB":case"BBB":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},h:function(e,a,n){if(a==="ho"){var r=e.getUTCHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return T.h(e,a)},H:function(e,a,n){return a==="Ho"?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):T.H(e,a)},K:function(e,a,n){var r=e.getUTCHours()%12;return a==="Ko"?n.ordinalNumber(r,{unit:"hour"}):b(r,a.length)},k:function(e,a,n){var r=e.getUTCHours();return r===0&&(r=24),a==="ko"?n.ordinalNumber(r,{unit:"hour"}):b(r,a.length)},m:function(e,a,n){return a==="mo"?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):T.m(e,a)},s:function(e,a,n){return a==="so"?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):T.s(e,a)},S:function(e,a){return T.S(e,a)},X:function(e,a,n,r){var s=r._originalDate||e,i=s.getTimezoneOffset();if(i===0)return"Z";switch(a){case"X":return wt(i);case"XXXX":case"XX":return M(i);case"XXXXX":case"XXX":default:return M(i,":")}},x:function(e,a,n,r){var s=r._originalDate||e,i=s.getTimezoneOffset();switch(a){case"x":return wt(i);case"xxxx":case"xx":return M(i);case"xxxxx":case"xxx":default:return M(i,":")}},O:function(e,a,n,r){var s=r._originalDate||e,i=s.getTimezoneOffset();switch(a){case"O":case"OO":case"OOO":return"GMT"+Et(i,":");case"OOOO":default:return"GMT"+M(i,":")}},z:function(e,a,n,r){var s=r._originalDate||e,i=s.getTimezoneOffset();switch(a){case"z":case"zz":case"zzz":return"GMT"+Et(i,":");case"zzzz":default:return"GMT"+M(i,":")}},t:function(e,a,n,r){var s=r._originalDate||e,i=Math.floor(s.getTime()/1e3);return b(i,a.length)},T:function(e,a,n,r){var s=r._originalDate||e,i=s.getTime();return b(i,a.length)}};function Et(t,e){var a=t>0?"-":"+",n=Math.abs(t),r=Math.floor(n/60),s=n%60;if(s===0)return a+String(r);var i=e||"";return a+String(r)+i+b(s,2)}function wt(t,e){if(t%60===0){var a=t>0?"-":"+";return a+b(Math.abs(t)/60,2)}return M(t,e)}function M(t,e){var a=e||"",n=t>0?"-":"+",r=Math.abs(t),s=b(Math.floor(r/60),2),i=b(r%60,2);return n+s+a+i}const Do=wo;var Dt=function(e,a){switch(e){case"P":return a.date({width:"short"});case"PP":return a.date({width:"medium"});case"PPP":return a.date({width:"long"});case"PPPP":default:return a.date({width:"full"})}},ha=function(e,a){switch(e){case"p":return a.time({width:"short"});case"pp":return a.time({width:"medium"});case"ppp":return a.time({width:"long"});case"pppp":default:return a.time({width:"full"})}},Oo=function(e,a){var n=e.match(/(P+)(p+)?/)||[],r=n[1],s=n[2];if(!s)return Dt(e,a);var i;switch(r){case"P":i=a.dateTime({width:"short"});break;case"PP":i=a.dateTime({width:"medium"});break;case"PPP":i=a.dateTime({width:"long"});break;case"PPPP":default:i=a.dateTime({width:"full"});break}return i.replace("{{date}}",Dt(r,a)).replace("{{time}}",ha(s,a))},To={p:ha,P:Oo};const ko=To;var xo=["D","DD"],Lo=["YY","YYYY"];function $o(t){return xo.indexOf(t)!==-1}function Ro(t){return Lo.indexOf(t)!==-1}function Ot(t,e,a){if(t==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(a,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(a,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(a,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(a,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Ao={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Mo=function(e,a,n){var r,s=Ao[e];return typeof s=="string"?r=s:a===1?r=s.one:r=s.other.replace("{{count}}",a.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};const No=Mo;function Pe(t){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=e.width?String(e.width):t.defaultWidth,n=t.formats[a]||t.formats[t.defaultWidth];return n}}var Po={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Bo={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Fo={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Vo={date:Pe({formats:Po,defaultWidth:"full"}),time:Pe({formats:Bo,defaultWidth:"full"}),dateTime:Pe({formats:Fo,defaultWidth:"full"})};const qo=Vo;var Ho={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},zo=function(e,a,n,r){return Ho[e]};const Uo=zo;function Z(t){return function(e,a){var n=a!=null&&a.context?String(a.context):"standalone",r;if(n==="formatting"&&t.formattingValues){var s=t.defaultFormattingWidth||t.defaultWidth,i=a!=null&&a.width?String(a.width):s;r=t.formattingValues[i]||t.formattingValues[s]}else{var c=t.defaultWidth,u=a!=null&&a.width?String(a.width):t.defaultWidth;r=t.values[u]||t.values[c]}var f=t.argumentCallback?t.argumentCallback(e):e;return r[f]}}var Wo={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Ko={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},jo={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Yo={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Go={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Zo={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Xo=function(e,a){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},Qo={ordinalNumber:Xo,era:Z({values:Wo,defaultWidth:"wide"}),quarter:Z({values:Ko,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Z({values:jo,defaultWidth:"wide"}),day:Z({values:Yo,defaultWidth:"wide"}),dayPeriod:Z({values:Go,defaultWidth:"wide",formattingValues:Zo,defaultFormattingWidth:"wide"})};const Jo=Qo;function X(t){return function(e){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=a.width,r=n&&t.matchPatterns[n]||t.matchPatterns[t.defaultMatchWidth],s=e.match(r);if(!s)return null;var i=s[0],c=n&&t.parsePatterns[n]||t.parsePatterns[t.defaultParseWidth],u=Array.isArray(c)?tl(c,function(d){return d.test(i)}):el(c,function(d){return d.test(i)}),f;f=t.valueCallback?t.valueCallback(u):u,f=a.valueCallback?a.valueCallback(f):f;var g=e.slice(i.length);return{value:f,rest:g}}}function el(t,e){for(var a in t)if(t.hasOwnProperty(a)&&e(t[a]))return a}function tl(t,e){for(var a=0;a<t.length;a++)if(e(t[a]))return a}function al(t){return function(e){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.match(t.matchPattern);if(!n)return null;var r=n[0],s=e.match(t.parsePattern);if(!s)return null;var i=t.valueCallback?t.valueCallback(s[0]):s[0];i=a.valueCallback?a.valueCallback(i):i;var c=e.slice(r.length);return{value:i,rest:c}}}var nl=/^(\d+)(th|st|nd|rd)?/i,rl=/\d+/i,sl={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},il={any:[/^b/i,/^(a|c)/i]},ol={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},ll={any:[/1/i,/2/i,/3/i,/4/i]},dl={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},cl={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},ul={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},pl={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},fl={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},hl={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},ml={ordinalNumber:al({matchPattern:nl,parsePattern:rl,valueCallback:function(e){return parseInt(e,10)}}),era:X({matchPatterns:sl,defaultMatchWidth:"wide",parsePatterns:il,defaultParseWidth:"any"}),quarter:X({matchPatterns:ol,defaultMatchWidth:"wide",parsePatterns:ll,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:X({matchPatterns:dl,defaultMatchWidth:"wide",parsePatterns:cl,defaultParseWidth:"any"}),day:X({matchPatterns:ul,defaultMatchWidth:"wide",parsePatterns:pl,defaultParseWidth:"any"}),dayPeriod:X({matchPatterns:fl,defaultMatchWidth:"any",parsePatterns:hl,defaultParseWidth:"any"})};const _l=ml;var gl={code:"en-US",formatDistance:No,formatLong:qo,formatRelative:Uo,localize:Jo,match:_l,options:{weekStartsOn:0,firstWeekContainsDate:1}};const _t=gl;var vl=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,bl=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,yl=/^'([^]*?)'?$/,Sl=/''/g,Cl=/[a-zA-Z]/;function R(t,e,a){var n,r,s,i,c,u,f,g,d,_,m,v,I,C,w,F,A,Re;p(2,arguments);var La=String(e),j=B(),Y=(n=(r=a==null?void 0:a.locale)!==null&&r!==void 0?r:j.locale)!==null&&n!==void 0?n:_t,Ae=y((s=(i=(c=(u=a==null?void 0:a.firstWeekContainsDate)!==null&&u!==void 0?u:a==null||(f=a.locale)===null||f===void 0||(g=f.options)===null||g===void 0?void 0:g.firstWeekContainsDate)!==null&&c!==void 0?c:j.firstWeekContainsDate)!==null&&i!==void 0?i:(d=j.locale)===null||d===void 0||(_=d.options)===null||_===void 0?void 0:_.firstWeekContainsDate)!==null&&s!==void 0?s:1);if(!(Ae>=1&&Ae<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var Me=y((m=(v=(I=(C=a==null?void 0:a.weekStartsOn)!==null&&C!==void 0?C:a==null||(w=a.locale)===null||w===void 0||(F=w.options)===null||F===void 0?void 0:F.weekStartsOn)!==null&&I!==void 0?I:j.weekStartsOn)!==null&&v!==void 0?v:(A=j.locale)===null||A===void 0||(Re=A.options)===null||Re===void 0?void 0:Re.weekStartsOn)!==null&&m!==void 0?m:0);if(!(Me>=0&&Me<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!Y.localize)throw new RangeError("locale must contain localize property");if(!Y.formatLong)throw new RangeError("locale must contain formatLong property");var ie=h(t);if(!no(ie))throw new RangeError("Invalid time value");var $a=J(ie),Ra=mo(ie,$a),Aa={firstWeekContainsDate:Ae,weekStartsOn:Me,locale:Y,_originalDate:ie},Ma=La.match(bl).map(function(E){var O=E[0];if(O==="p"||O==="P"){var oe=ko[O];return oe(E,Y.formatLong)}return E}).join("").match(vl).map(function(E){if(E==="''")return"'";var O=E[0];if(O==="'")return Il(E);var oe=Do[O];if(oe)return!(a!=null&&a.useAdditionalWeekYearTokens)&&Ro(E)&&Ot(E,e,String(t)),!(a!=null&&a.useAdditionalDayOfYearTokens)&&$o(E)&&Ot(E,e,String(t)),oe(Ra,E,Y.localize,Aa);if(O.match(Cl))throw new RangeError("Format string contains an unescaped latin alphabet character `"+O+"`");return E}).join("");return Ma}function Il(t){var e=t.match(yl);return e?e[1].replace(Sl,"'"):t}function ma(t,e){if(t==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t}function El(t){return ma({},t)}var Tt=1440,wl=2520,Be=43200,Dl=86400;function Ol(t,e,a){var n,r;p(2,arguments);var s=B(),i=(n=(r=a==null?void 0:a.locale)!==null&&r!==void 0?r:s.locale)!==null&&n!==void 0?n:_t;if(!i.formatDistance)throw new RangeError("locale must contain formatDistance property");var c=N(t,e);if(isNaN(c))throw new RangeError("Invalid time value");var u=ma(El(a),{addSuffix:!!(a!=null&&a.addSuffix),comparison:c}),f,g;c>0?(f=h(e),g=h(t)):(f=h(t),g=h(e));var d=ua(g,f),_=(J(g)-J(f))/1e3,m=Math.round((d-_)/60),v;if(m<2)return a!=null&&a.includeSeconds?d<5?i.formatDistance("lessThanXSeconds",5,u):d<10?i.formatDistance("lessThanXSeconds",10,u):d<20?i.formatDistance("lessThanXSeconds",20,u):d<40?i.formatDistance("halfAMinute",0,u):d<60?i.formatDistance("lessThanXMinutes",1,u):i.formatDistance("xMinutes",1,u):m===0?i.formatDistance("lessThanXMinutes",1,u):i.formatDistance("xMinutes",m,u);if(m<45)return i.formatDistance("xMinutes",m,u);if(m<90)return i.formatDistance("aboutXHours",1,u);if(m<Tt){var I=Math.round(m/60);return i.formatDistance("aboutXHours",I,u)}else{if(m<wl)return i.formatDistance("xDays",1,u);if(m<Be){var C=Math.round(m/Tt);return i.formatDistance("xDays",C,u)}else if(m<Dl)return v=Math.round(m/Be),i.formatDistance("aboutXMonths",v,u)}if(v=ca(g,f),v<12){var w=Math.round(m/Be);return i.formatDistance("xMonths",w,u)}else{var F=v%12,A=Math.floor(v/12);return F<3?i.formatDistance("aboutXYears",A,u):F<9?i.formatDistance("overXYears",A,u):i.formatDistance("almostXYears",A+1,u)}}var Tl=["years","months","weeks","days","hours","minutes","seconds"];function kl(t,e){var a,n,r,s,i;if(arguments.length<1)throw new TypeError("1 argument required, but only ".concat(arguments.length," present"));var c=B(),u=(a=(n=e==null?void 0:e.locale)!==null&&n!==void 0?n:c.locale)!==null&&a!==void 0?a:_t,f=(r=e==null?void 0:e.format)!==null&&r!==void 0?r:Tl,g=(s=e==null?void 0:e.zero)!==null&&s!==void 0?s:!1,d=(i=e==null?void 0:e.delimiter)!==null&&i!==void 0?i:" ";if(!u.formatDistance)return"";var _=f.reduce(function(m,v){var I="x".concat(v.replace(/(^.)/,function(w){return w.toUpperCase()})),C=t[v];return typeof C=="number"&&(g||t[v])?m.concat(u.formatDistance(I,C)):m},[]).join(d);return _}function xl(t){p(1,arguments);var e=h(t),a=e.getDate();return a}function Ll(t){p(1,arguments);var e=h(t),a=e.getFullYear(),n=e.getMonth(),r=new Date(0);return r.setFullYear(a,n+1,0),r.setHours(0,0,0,0),r.getDate()}function ue(t){p(1,arguments);var e=h(t),a=e.getMonth();return a}function tt(t){return p(1,arguments),h(t).getFullYear()}function $l(t){p(1,arguments);var e=h(t.start),a=h(t.end);if(isNaN(e.getTime()))throw new RangeError("Start Date is invalid");if(isNaN(a.getTime()))throw new RangeError("End Date is invalid");var n={};n.years=Math.abs(ho(a,e));var r=N(a,e),s=G(e,{years:r*n.years});n.months=Math.abs(ca(a,s));var i=G(s,{months:r*n.months});n.days=Math.abs(io(a,i));var c=G(i,{days:r*n.days});n.hours=Math.abs(lo(a,c));var u=G(c,{hours:r*n.hours});n.minutes=Math.abs(co(a,u));var f=G(u,{minutes:r*n.minutes});return n.seconds=Math.abs(ua(a,f)),n}function Rl(t,e){p(2,arguments);var a=h(t),n=h(e);return a.getTime()===n.getTime()}function Al(t,e,a){p(2,arguments);var n=et(t,a),r=et(e,a);return n.getTime()===r.getTime()}function Ml(t,e){p(2,arguments);var a=h(t),n=h(e);return a.getFullYear()===n.getFullYear()}function Nl(t,e){return p(1,arguments),Al(t,Date.now(),e)}function Pl(t){return p(1,arguments),Ml(t,Date.now())}function Bl(t){return p(1,arguments),da(t,Date.now())}function Fl(t,e){p(2,arguments);var a=y(e);return we(t,-a)}function Vl(t){return p(1,arguments),da(t,Fl(Date.now(),1))}function ql(t,e){p(2,arguments);var a=h(t),n=y(e),r=a.getFullYear(),s=a.getDate(),i=new Date(0);i.setFullYear(r,n,15),i.setHours(0,0,0,0);var c=Ll(i);return a.setMonth(n,Math.min(s,c)),a}function Hl(t,e){if(p(2,arguments),U(e)!=="object"||e===null)throw new RangeError("values parameter must be an object");var a=h(t);return isNaN(a.getTime())?new Date(NaN):(e.year!=null&&a.setFullYear(e.year),e.month!=null&&(a=ql(a,e.month)),e.date!=null&&a.setDate(y(e.date)),e.hours!=null&&a.setHours(y(e.hours)),e.minutes!=null&&a.setMinutes(y(e.minutes)),e.seconds!=null&&a.setSeconds(y(e.seconds)),e.milliseconds!=null&&a.setMilliseconds(y(e.milliseconds)),a)}function zl(t,e){p(2,arguments);var a=y(e);return ft(t,-a)}const _a=0,ga="MMMM",at=t=>t?new Date(t):new Date,Ul=(t,e,a)=>{const n=at(JSON.parse(JSON.stringify(t))),r=[];for(let s=0;s<7;s++){const i=we(n,s),c=ue(i)!==e;r.push({text:i.getDate(),value:i,currentMonth:!c,isFirstDayOfMonth:i.getDate()===1&&!c,selected:a?i.getDate()===a&&!c:!1})}return r},Wl=(t,e)=>!t||!e?!1:Rl(t,e),Kl=(t,e,a)=>{const n=[],r=at(new Date(e,t)),s=at(new Date(e,t+1,0)),c=et(r,{weekStartsOn:_a}),u=f=>{const g=Ul(f,t,a);if(n.push({days:g}),!n[n.length-1].days.some(d=>Wl(d.value,s))){const d=we(f,7);u(d)}};return u(c),n},jl=(t,e)=>{const a=[1,2,3,4,5,6,7].map(s=>new Intl.DateTimeFormat(t,{weekday:"short",timeZone:"UTC"}).format(new Date(`2017-01-0${s}T00:00:00+00:00`)).slice(0,2)),n=a.slice(0,e),r=a.slice(e+1,a.length);return[a[e]].concat(...r).concat(...n)},Yl=(t,e)=>R(new Date(2e3,t,1),e),Gl={name:"DtDatepickerMonthYearPicker",components:{DtIcon:l.DtIcon},props:{prevMonthLabel:{type:String,required:!0},nextMonthLabel:{type:String,required:!0},prevYearLabel:{type:String,required:!0},nextYearLabel:{type:String,required:!0},changeToLabel:{type:String,required:!0},selectedDate:{type:Date,required:!0}},emits:["calendar-days","focus-day","close-datepicker"],data(){return{selectMonth:ue(this.selectedDate),selectYear:tt(this.selectedDate),highlightedDay:null,focusPicker:0,focusRefs:[]}},computed:{calendarDays(){return Kl(this.selectMonth,this.selectYear,this.highlightedDay)},formattedMonth(){return(t,e)=>Yl(t,e)},MONTH_FORMAT(){return ga}},watch:{selectMonth:{handler(){this.highlightDay(),this.$emit("calendar-days",this.calendarDays)},immediate:!0},selectYear:{handler(){this.highlightDay(),this.$emit("calendar-days",this.calendarDays)},immediate:!0}},mounted(){this.focusMonthYearPicker()},methods:{setDayRef(t){this.focusRefs.includes(t)||this.focusRefs.push(t)},focusMonthYearPicker(){this.focusRefs[0].focus()},handleKeyDown(t){switch(t.key){case"ArrowLeft":t.preventDefault(),this.focusPicker===0?(this.focusPicker=3,this.focusRefs[this.focusPicker].focus()):(this.focusPicker--,this.focusRefs[this.focusPicker].focus());break;case"ArrowRight":t.preventDefault(),this.focusPicker===3?(this.focusPicker=0,this.focusRefs[this.focusPicker].focus()):(this.focusPicker++,this.focusRefs[this.focusPicker].focus());break;case"ArrowDown":t.preventDefault(),this.$emit("focus-day");break;case"Tab":this.$emit("focus-day");break;case"Escape":this.$emit("close-datepicker");break}},highlightDay(){const t=tt(this.selectedDate),e=ue(this.selectedDate);t!==this.selectYear||e!==this.selectMonth?this.highlightedDay=null:this.highlightedDay=xl(this.selectedDate)},changeMonth(t){const e=Hl(this.selectedDate,{month:this.selectMonth,year:this.selectYear}),a=++t?ft(e,1):zl(e,1);this.selectMonth=ue(a)},changeYear(t){this.selectYear=this.selectYear+t}}};var Zl=function(){var e=this,a=e._self._c;return a("div",{staticClass:"d-datepicker__month-year-picker"},[a("div",[a("button",{ref:n=>{n&&e.setDayRef(n)},attrs:{id:"prevYearButton",type:"button","aria-label":`${e.changeToLabel} ${e.prevYearLabel} ${e.selectYear-1}`},on:{click:function(n){return e.changeYear(-1)},keydown:function(n){return e.handleKeyDown(n)}}},[a("dt-icon",{attrs:{name:"chevrons-left",size:"400"}})],1),a("button",{ref:n=>{n&&e.setDayRef(n)},attrs:{id:"prevMonthButton",type:"button","aria-label":`${e.changeToLabel} ${e.prevMonthLabel} ${e.formattedMonth(e.selectMonth-1,e.MONTH_FORMAT)}`},on:{click:function(n){return e.changeMonth(-1)},keydown:function(n){return e.handleKeyDown(n)}}},[a("dt-icon",{attrs:{name:"chevron-left",size:"300"}})],1)]),a("div",[a("p",[e._v(" "+e._s(e.formattedMonth(e.selectMonth,e.MONTH_FORMAT))+" "+e._s(e.selectYear)+" ")])]),a("div",[a("button",{ref:n=>{n&&e.setDayRef(n)},attrs:{id:"nextMonthButton",type:"button","aria-label":`${e.changeToLabel} ${e.nextMonthLabel} ${e.formattedMonth(e.selectMonth+1,e.MONTH_FORMAT)}`},on:{click:function(n){return e.changeMonth(1)},keydown:function(n){return e.handleKeyDown(n)}}},[a("dt-icon",{attrs:{name:"chevron-right",size:"300"}})],1),a("button",{ref:n=>{n&&e.setDayRef(n)},attrs:{id:"nextYearButton",type:"button","aria-label":`${e.changeToLabel} ${e.nextYearLabel} ${e.selectYear+1}`},on:{click:function(n){return e.changeYear(1)},keydown:function(n){return e.handleKeyDown(n)}}},[a("dt-icon",{attrs:{name:"chevrons-right",size:"300"}})],1)])])},Xl=[],Ql=o.normalizeComponent(Gl,Zl,Xl,!1,null,null,null,null);const Jl=Ql.exports,ed={name:"DtDatepickerCalendar",props:{calendarDays:{type:Array,required:!0},locale:{type:String,required:!0},selectDayLabel:{type:String,required:!0}},emits:["select-date","focus-month-year-picker","close-datepicker"],data(){return{selectedDay:null,focusDay:0,daysRef:[]}},computed:{weekDays(){return jl(this.locale,_a)}},watch:{calendarDays(){this.focusDay=0,this.daysRef=[],this.selectedDay=null}},methods:{dayAriaLabel(t){return`${this.selectDayLabel} ${t.text} ${R(t.value,ga)} ${tt(t.value)}`},setDayRef(t,e){!this.daysRef.includes(t)&&e&&this.daysRef.push(t)},handleKeyDown(t){switch(t.key){case"ArrowUp":t.preventDefault(),this.focusDay-=7;try{this.daysRef[this.focusDay].focus()}catch{this.$emit("focus-month-year-picker")}break;case"ArrowDown":t.preventDefault(),this.focusDay+=7;try{this.daysRef[this.focusDay].focus()}catch{this.$emit("focus-month-year-picker")}break;case"ArrowLeft":t.preventDefault(),this.focusDay>0&&(this.focusDay-=1,this.daysRef[this.focusDay].focus());break;case"ArrowRight":t.preventDefault(),this.focusDay<this.daysRef.length-1&&(this.focusDay+=1,this.daysRef[this.focusDay].focus());break;case"Tab":t.preventDefault(),this.$emit("focus-month-year-picker");break;case"Escape":this.$emit("close-datepicker");break}},focusFirstDay(){this.focusDay=0,this.daysRef[this.focusDay].focus()},selectDay(t){t.currentMonth&&(this.selectedDay=t.text,this.$emit("select-date",t.value))}}};var td=function(){var e=this,a=e._self._c;return a("div",{staticClass:"d-datepicker__calendar"},[a("div",{staticClass:"d-datepicker__week-day"},e._l(e.weekDays,function(n){return a("div",{key:n},[a("p",[e._v(" "+e._s(n)+" ")])])}),0),e._l(e.calendarDays,function(n,r){return a("div",{key:r,staticClass:"d-datepicker__week"},e._l(n.days,function(s,i){return a("button",{key:r+i,ref:c=>{c&&e.setDayRef(c,s.currentMonth)},refInFor:!0,staticClass:"d-datepicker__day",class:{"d-datepicker__day--disabled":!s.currentMonth,"d-datepicker__day--selected":e.selectedDay?s.text===e.selectedDay&&s.currentMonth:s.selected},attrs:{type:"button","aria-label":e.dayAriaLabel(s)},on:{click:function(c){return e.selectDay(s)},keydown:function(c){return e.handleKeyDown(c)}}},[e._v(" "+e._s(s.text)+" ")])}),0)})],2)},ad=[],nd=o.normalizeComponent(ed,td,ad,!1,null,null,null,null);const rd=nd.exports,sd={name:"DtDatepicker",components:{MonthYearPicker:Jl,Calendar:rd},props:{prevMonthLabel:{type:String,required:!0},nextMonthLabel:{type:String,required:!0},prevYearLabel:{type:String,required:!0},nextYearLabel:{type:String,required:!0},selectDayLabel:{type:String,required:!0},changeToLabel:{type:String,required:!0},locale:{type:String,default:"en-US"},selectedDate:{type:Date,default:()=>new Date}},emits:["selected-date","close-datepicker"],data(){return{calendarDays:[]}},methods:{updateCalendarDays(t){this.calendarDays=t}}};var id=function(){var e=this,a=e._self._c;return a("div",{staticClass:"d-datepicker"},[a("div",{staticClass:"d-datepicker--header"},[a("month-year-picker",{ref:"monthYearPicker",attrs:{"prev-month-label":e.prevMonthLabel,"next-month-label":e.nextMonthLabel,"prev-year-label":e.prevYearLabel,"next-year-label":e.nextYearLabel,"change-to-label":e.changeToLabel,"selected-date":e.selectedDate},on:{"calendar-days":e.updateCalendarDays,"focus-day":function(n){return e.$refs.calendar.focusFirstDay()},"close-datepicker":function(n){return e.$emit("close-datepicker")}}})],1),a("div",{staticClass:"d-datepicker--body"},[a("calendar",{ref:"calendar",attrs:{locale:e.locale,"calendar-days":e.calendarDays,"select-day-label":e.selectDayLabel},on:{"select-date":function(n){return e.$emit("selected-date",n)},"focus-month-year-picker":function(n){return e.$refs.monthYearPicker.focusMonthYearPicker()},"close-datepicker":function(n){return e.$emit("close-datepicker")}}})],1)])},od=[],ld=o.normalizeComponent(sd,id,od,!1,null,null,null,null);const dd=ld.exports;function cd(t){return R(t,"EEEE, MMMM d, yyyy")}function ud(t){return R(t,"MMMM d, yyyy")}function pd(t,e=!0){return R(t,e?"EEE, MMM d, yyyy":"MMM d, yyyy")}function fd(t,e=!1){return R(t,e?"MMM d":"MMMM d")}function hd(t){return R(t,"MM/dd/yy")}const md={name:"DtRecipeComboboxWithPopover",components:{DtCombobox:Wt,DtPopover:Ee,ComboboxLoadingList:zt,ComboboxEmptyList:Ut},mixins:[D],props:{label:{type:String,required:!0},labelVisible:{type:Boolean,default:!0},size:{type:String,default:null,validator:t=>Object.values(ot).includes(t)},description:{type:String,default:""},showList:{type:Boolean,default:null},listId:{type:String,default(){return o.getUniqueString()}},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(z).some(e=>e===t)},contentWidth:{type:String,default:null,validator:t=>dt.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=>re.includes(t)||t instanceof HTMLElement},transition:{type:String,default:"fade"}},emits:["select","escape","highlight","opened"],data(){return{DROPDOWN_PADDING_CLASSES:z,isListShown:!1,isInputFocused:!1,isListFocused:!1,externalAnchor:o.getUniqueString()}},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 n,r,s;const e=(r=(n=this.$refs.popover)==null?void 0:n.tip)==null?void 0:r.popper,a=this.$refs.input;(s=t.composedPath())!=null&&s.some(i=>[e,a].includes(i))||this.closeComboboxList()},openOnArrowKeyPress(){this.showList!==null||this.isListShown||!this.openWithArrowKeys||this.showComboboxList()}}};var _d=function(){var e=this,a=e._self._c;return a("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:n}){return[a("div",{ref:"input",attrs:{id:e.externalAnchor},on:{focusin:e.onFocusIn,keydown:[function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"up",38,r.key,["Up","ArrowUp"])?null:e.openOnArrowKeyPress(r)},function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"down",40,r.key,["Down","ArrowDown"])?null:e.openOnArrowKeyPress(r)}]}},[e._t("input",null,{inputProps:n,onInput:e.handleDisplayList})],2)]}},{key:"list",fn:function({opened:n,listProps:r,clearHighlightIndex:s}){return[a("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-appear":!0,"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(i){e.isListShown=i},opened:function(i){return n(i,arguments[1])}},scopedSlots:e._u([e.$slots.header?{key:"headerContent",fn:function(){return[a("div",{ref:"header"},[e._t("header")],2)]},proxy:!0}:null,{key:"content",fn:function(){return[a("div",{ref:"listWrapper",class:[e.DROPDOWN_PADDING_CLASSES[e.padding],e.listClass],on:{mouseleave:s,focusout:s}},[e.loading?a("combobox-loading-list",e._b({},"combobox-loading-list",r,!1)):e.emptyList&&e.emptyStateMessage?a("combobox-empty-list",e._b({attrs:{message:e.emptyStateMessage}},"combobox-empty-list",r,!1)):e._t("list",null,{listProps:r})],2)]},proxy:!0},e.$slots.footer?{key:"footerContent",fn:function(){return[a("div",{ref:"footer"},[e._t("footer")],2)]},proxy:!0}:null],null,!0)})]}}],null,!0)},e.comboboxListeners))},gd=[],vd=o.normalizeComponent(md,_d,gd,!1,null,null,null,null);const va=vd.exports,ba={EXTRA_SMALL:"xs",SMALL:"sm",DEFAULT:"md"},ya={xs:"xs",sm:"xs",md:"sm"},Sa={xs:1.4,sm:.4,md:.2},bd={name:"DtRecipeComboboxMultiSelect",components:{DtRecipeComboboxWithPopover:va,DtInput:l.DtInput,DtChip:pt,DtValidationMessages:l.DtValidationMessages},mixins:[D],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=>l.validationMessageValidator(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(ba).includes(t)},appendTo:{type:[HTMLElement,String],default:"body",validator:t=>re.includes(t)||t instanceof HTMLElement},transition:{type:String,default:"fade"}},emits:["input","select","remove","max-selected","keyup"],data(){return{value:"",popoverOffset:[0,4],showValidationMessages:!1,initialInputPadding:{},resizeWindowObserver:null,originalInputSize:null,CHIP_SIZES:ya}},computed:{inputPlaceHolder(){var t;return((t=this.selectedItems)==null?void 0:t.length)>0?"":this.placeholder},chipListeners(){return{...this.$listeners,keyup:t=>{this.onChipKeyup(t),this.$emit("keyup",t)}}},inputListeners(){return{...this.$listeners,input:t=>{this.$emit("input",t),this.hasSuggestionList&&this.showComboboxList()},keyup:t=>{this.onInputKeyup(t),this.$emit("keyup",t)},click:t=>{this.hasSuggestionList&&this.showComboboxList()}}}},watch:{selectedItems:{async handler(){this.initSelectedItems()}},async label(){await this.$nextTick(),this.setChipsTopPosition()},async description(){await this.$nextTick(),this.setChipsTopPosition()},size:{async handler(){await this.$nextTick();const t=this.getInput();this.revertInputPadding(t),this.originalInputSize=t.getBoundingClientRect().height,this.setInputPadding(),this.setChipsTopPosition()}}},mounted(){this.resizeWindowObserver=new ResizeObserver(async()=>{this.setChipsTopPosition(),this.setInputPadding()}),this.resizeWindowObserver.observe(document.body),this.initSelectedItems()},beforeDestroy(){var t;(t=this.resizeWindowObserver)==null||t.unobserve(document.body)},methods:{async initSelectedItems(){await this.$nextTick(),this.setInputPadding(),this.setChipsTopPosition(),this.setInputMinWidth(),this.checkMaxSelected()},onChipRemove(t){var e;this.$emit("remove",t),(e=this.$refs.input)==null||e.focus()},onComboboxSelect(t){this.value="",this.$emit("select",t)},showComboboxList(){var t;this.showList==null&&((t=this.$refs.comboboxWithPopover)==null||t.showComboboxList())},closeComboboxList(){var t;this.showList==null&&((t=this.$refs.comboboxWithPopover)==null||t.closeComboboxList())},getChipButtons(){return this.$refs.chips&&this.$refs.chips.map(t=>t.$el.querySelector("button"))},getChips(){return this.$refs.chips&&this.$refs.chips.map(t=>t.$el)},getLastChipButton(){return this.$refs.chips&&this.getChipButtons()[this.getChipButtons().length-1]},getLastChip(){return this.$refs.chips&&this.getChips()[this.getChips().length-1]},getFirstChip(){return this.$refs.chips&&this.getChips()[0]},getInput(){var t;return(t=this.$refs.input)==null?void 0:t.$refs.input},onChipKeyup(t){var a;const e=(a=t.code)==null?void 0:a.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 a;const e=(a=t.code)==null?void 0:a.toLowerCase();this.selectedItems.length>0&&t.target.selectionStart===0&&(e==="backspace"||e==="arrowleft")&&this.moveFromInputToChip()},moveFromInputToChip(){var t;this.getLastChipButton().focus(),(t=this.$refs.input)==null||t.blur(),this.closeComboboxList()},moveFromChipToInput(){var t;this.getLastChipButton().blur(),(t=this.$refs.input)==null||t.focus(),this.showComboboxList()},navigateBetweenChips(t,e){var r;const a=this.getChipButtons().indexOf(t),n=e?a-1:a+1;n<0||n>=((r=this.$refs.chips)==null?void 0:r.length)||(this.getChipButtons()[a].blur(),this.getChipButtons()[n].focus(),this.closeComboboxList())},setChipsTopPosition(){const t=this.getInput();if(!t)return;const e=this.$refs.inputSlotWrapper,a=t.getBoundingClientRect().top-e.getBoundingClientRect().top,n=this.$refs.chipsWrapper;n.style.top=a-Sa[this.size]+"px"},setInputPadding(){const t=this.getLastChip(),e=this.getInput(),a=this.$refs.chipsWrapper;if(!e||(this.revertInputPadding(e),this.popoverOffset=[0,4],!t))return;const n=t.offsetLeft+this.getFullWidth(t);e.style.paddingLeft=n+"px";const r=a.getBoundingClientRect().height-4,s=t.offsetTop+2;r>this.originalInputSize&&(e.style.paddingTop=`${s}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 yd=function(){var e=this,a=e._self._c;return a("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:n}){return[a("span",{ref:"inputSlotWrapper",staticClass:"combobox__input-wrapper"},[a("span",{ref:"chipsWrapper",staticClass:"combobox__chip-wrapper"},e._l(e.selectedItems,function(r){return a("dt-chip",e._g({key:r,ref:"chips",refInFor:!0,staticClass:"combobox__chip",attrs:{"label-class":["d-chip__label"],"close-button-props":{ariaLabel:"close"},size:e.CHIP_SIZES[e.size]},on:{keyup:function(s){return!s.type.indexOf("key")&&e._k(s.keyCode,"backspace",void 0,s.key,void 0)?null:e.onChipRemove(r)},close:function(s){return e.onChipRemove(r)}}},e.chipListeners),[e._v(" "+e._s(r)+" ")])}),1),a("dt-input",e._g({ref:"input",staticClass:"combobox__input",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:n},model:{value:e.value,callback:function(r){e.value=r},expression:"value"}},e.inputListeners)),a("dt-validation-messages",{attrs:{"validation-messages":e.maxSelectedMessage,"show-messages":e.showValidationMessages}})],1)]}},e.$slots.header?{key:"header",fn:function(){return[a("div",{ref:"header"},[e._t("header")],2)]},proxy:!0}:null,{key:"list",fn:function(){return[a("div",{ref:"list",on:{mousedown:function(n){n.preventDefault()}}},[e.loading?a("div",{staticClass:"combobox__list--loading"},[e._v(" "+e._s(e.loadingMessage)+" ")]):e._t("list")],2)]},proxy:!0},e.$slots.footer?{key:"footer",fn:function(){return[a("div",{ref:"footer"},[e._t("footer")],2)]},proxy:!0}:null],null,!0)})},Sd=[],Cd=o.normalizeComponent(bd,yd,Sd,!1,null,"b2859861",null,null);const Id=Cd.exports,gt=["sm","md","lg","xl"],Ed={name:"DtRecipeCallbarButton",components:{DtButton:l.DtButton,DtTooltip:o.DtTooltip},inheritAttrs:!1,props:{id:{type:String,default(){return o.utils.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||(void 0).$slots.default},buttonClass:{type:[String,Array,Object],default:""},textClass:{type:[String,Array,Object],default:""},buttonWidthSize:{type:String,default:"xl",validator:t=>gt.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"},callbarButtonListeners(){return{...this.$listeners,click:t=>this.$emit("click",t)}}}};var wd=function(){var e=this,a=e._self._c;return a("dt-tooltip",{attrs:{id:e.id,offset:[0,8]},scopedSlots:e._u([{key:"anchor",fn:function(){return[a("span",{class:{"dt-recipe-callbar-button--disabled":e.disabled}},[a("dt-button",e._g(e._b({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},scopedSlots:e._u([{key:"icon",fn:function(){return[e._t("icon")]},proxy:!0}],null,!0)},"dt-button",e.$attrs,!1),e.callbarButtonListeners),[e._t("default")],2)],1)]},proxy:!0}],null,!0)},[e._t("tooltip")],2)},Dd=[],Od=o.normalizeComponent(Ed,wd,Dd,!1,null,null,null,null);const Ca=Od.exports,Td={name:"DtRecipeCallbarButtonWithPopover",components:{DtRecipeCallbarButton:Ca,DtPopover:Ee,DtButton:l.DtButton,DtIcon:l.DtIcon},inheritAttrs:!1,props:{id:{type:String,default(){return o.utils.getUniqueString()}},ariaLabel:{type:String,default:null,validator:t=>t||(void 0).$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=>gt.includes(t)},contentClass:{type:[String,Array,Object],default:""},openPopover:{type:Boolean,default:!1}},emits:["arrow-click","click","opened"],data(){return{open:!1}},computed:{showArrowButton(){return this.forceShowArrow||!this.disabled},isCompactMode(){return this.buttonWidthSize==="sm"||this.buttonWidthSize==="md"},showPopover(){return!this.openPopover||this.open?(this.syncOpenState(),!1):this.toggleOpen()}},methods:{arrowClick(t){return this.$emit("arrow-click",t),this.toggleOpen()},toggleOpen(){return this.open=!this.open},syncOpenState(){this.open=this.openPopover},buttonClick(t){this.$listeners.click?this.$emit("click",t):this.arrowClick(t)},onModalIsOpened(t){this.open=t,this.$emit("opened",t)}}};var kd=function(){var e=this,a=e._self._c;return a("div",{staticClass:"dt-recipe--callbar-button-with-popover"},[a("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?a("dt-popover",e._b({staticClass:"dt-recipe--callbar-button-with-popover--popover-wrapper",attrs:{id:e.id,modal:!1,open:e.open,placement:e.placement,"initial-focus-element":e.initialFocusElement,"show-close-button":e.showCloseButton,offset:[0,16],padding:"none","dialog-class":["dt-recipe--callbar-button-with-popover--popover",e.contentClass],"header-class":"d-d-flex d-ai-center d-fw-normal d-px12","open-popover":e.showPopover},on:{opened:e.onModalIsOpened},scopedSlots:e._u([{key:"anchor",fn:function(){return[a("dt-button",{class:["dt-recipe--callbar-button-with-popover--arrow",{"dt-recipe--callbar-button-with-popover--arrow--large":!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[a("dt-icon",{staticClass:"dt-recipe--callbar-button-with-popover--arrow__icon",attrs:{name:"chevron-up",size:"200"}})]},proxy:!0}],null,!1,982444464)})]},proxy:!0}],null,!1,3818376870)},"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)},xd=[],Ld=o.normalizeComponent(Td,kd,xd,!1,null,null,null,null);const $d=Ld.exports,Rd={name:"DtRecipeContactInfo",components:{DtAvatar:te,DtListItem:ae},props:{id:{type:String,default(){return o.utils.getUniqueString()}},role:{type:String,default:""},showAvatar:{type:Boolean,default:!0},avatarSrc:{type:String,default:""},avatarSeed:{type:String,default:null},avatarFullName:{type:String,default:""},avatarIcon:{type:String,default:null},avatarSize:{type:String,default:"lg"},avatarAriaLabel:{type:String,default:""},presence:{type:String,default:null},avatarList:{type:Array,default:null}},emits:["avatar-click"],methods:{avatarClick(){this.$emit("avatar-click")}}};var Ad=function(){var e=this,a=e._self._c;return a("dt-list-item",{staticClass:"dt-contact-info",attrs:{id:e.id,role:e.role,"element-type":"div","data-qa":"contact-info"},scopedSlots:e._u([{key:"left",fn:function(){return[e.showAvatar?a("button",{staticClass:"dt-contact-info__left",attrs:{"data-qa":"contact-info-left","aria-labelledby":e.avatarAriaLabel},on:{click:e.avatarClick}},[e.avatarList?a("span",{staticClass:"dt-contact-info--avatars"},e._l(e.avatarList,function(n,r){return a("dt-avatar",{key:r,attrs:{size:e.avatarSize,seed:n.seed,"full-name":n.fullName,"image-src":n.src,"icon-name":e.avatarIcon,"overlay-icon":n.icon,"overlay-text":n.text,"avatar-class":[{"d-mln24":r>0,"d-bc-brand":!!n.halo}]}})}),1):a("dt-avatar",{attrs:{size:e.avatarSize,"full-name":e.avatarFullName,"image-src":e.avatarSrc,"icon-name":e.avatarIcon,seed:e.avatarSeed,presence:e.presence}})],1):e._e()]},proxy:!0},{key:"default",fn:function(){return[a("div",{attrs:{"data-qa":"contact-info-header"}},[e._t("header")],2)]},proxy:!0},{key:"subtitle",fn:function(){return[a("div",{attrs:{"data-qa":"contact-info-subtitle"}},[e._t("subtitle")],2)]},proxy:!0},{key:"bottom",fn:function(){return[a("div",{attrs:{"data-qa":"contact-info-bottom"}},[e._t("bottom")],2)]},proxy:!0},{key:"right",fn:function(){return[a("div",{attrs:{"data-qa":"contact-info-right"}},[e._t("right")],2)]},proxy:!0}],null,!0)})},Md=[],Nd=o.normalizeComponent(Rd,Ad,Md,!1,null,"20548ad1",null,null);const Pd=Nd.exports,Ia=["green300","green100","red200","red100","gold100","gold200","black100","white"],Bd={name:"DtRecipeTopBannerInfo",props:{colorCode:{type:String,default:"green300",validator:function(t){return Ia.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 Fd=function(){var e=this,a=e._self._c;return a("div",{staticClass:"dt-top-banner-info",class:e.bannerInfoClass,attrs:{"data-qa":"banner-info"}},[a("div",{staticClass:"dt-top-banner-info__left"},[e._t("left")],2),a("div",{staticClass:"dt-top-banner-info__middle",attrs:{"data-qa":"banner-info--middle"}},[e._t("default")],2),a("div",{staticClass:"dt-top-banner-info__right"},[e._t("right")],2)])},Vd=[],qd=o.normalizeComponent(Bd,Fd,Vd,!1,null,null,null,null);const Hd=qd.exports,De="promptmenu",Oe="promptcollect",Te="promptplay",ke="gotoexpert",se="goto",xe="branch",Le="transfer",$e="hangup",Ea={[De]:"keypad",[Oe]:"dialer",[Te]:"volume-2",[ke]:"expert-node",[xe]:"branch",[se]:"call-merge",[Le]:"transfer",[$e]:"phone-hang-up"},zd={[De]:"Menu",[Oe]:"Collect",[Te]:"Play",[ke]:"Expert",[xe]:"Branch",[se]:"Go-to",[Le]:"Transfer",[$e]:"Hangup"},k={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"}},Ud={[De]:k.PROMPT,[Oe]:k.PROMPT,[Te]:k.PROMPT,[ke]:k.LOGIC,[xe]:k.LOGIC,[se]:k.LOGIC,[Le]:k.TERMINAL,[$e]:k.TERMINAL},Wd={name:"DtRecipeIvrNode",components:{DtCard:Ht,DtButton:l.DtButton,DtDropdown:Jt,DtIcon:l.DtIcon},props:{nodeType:{type:String,required:!0},nodeLabel:{type:String,required:!0},isSelected:{type:Boolean,default:!1},menuButtonAriaLabel:{type:String,required:!0},dtmfKey:{type:String,default:null}},emits:["click"],data(){return{isOpen:!1}},computed:{nodeIcon(){return Ea[this.nodeType]},headerColor(){const{normal:t,selected:e}=Ud[this.nodeType];return this.isSelected?e:t},isGotoNode(){return this.nodeType===se}},methods:{openMenu(){this.isOpen=!0}}};var Kd=function(){var e=this,a=e._self._c;return a("div",e._g({staticClass:"ivr_node"},e.$listeners),[e.dtmfKey?a("div",{staticClass:"ivr-connector ivr-connector--dtmf",class:{"ivr-connector--dtmf--selected":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?a("div",{staticClass:"ivr-connector",class:{"ivr-connector--selected":e.isSelected},attrs:{"data-qa":"dt-top-connector"}}):e._e(),a("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[a("div",{staticClass:"ivr_node__header-left"},[a("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[a("dt-icon",{class:["",{ivr_node__goto_icon:e.isGotoNode}],attrs:{name:e.nodeIcon,size:"200"}})]},proxy:!0}])}),a("p",{staticClass:"ivr_node__label",attrs:{"data-qa":"ivr-node-label"}},[e._v(" "+e._s(e.nodeLabel)+" ")])],1),a("dt-dropdown",{attrs:{placement:"bottom",open:e.isOpen},on:{"update:open":function(n){e.isOpen=n}},scopedSlots:e._u([{key:"anchor",fn:function(){return[a("dt-button",{attrs:{importance:"clear",kind:"muted","aria-label":e.menuButtonAriaLabel},on:{click:function(n){return n.stopPropagation(),n.preventDefault(),e.openMenu.apply(null,arguments)}},scopedSlots:e._u([{key:"icon",fn:function(){return[a("dt-icon",{attrs:{name:"more-vertical",size:"200"}})]},proxy:!0}])})]},proxy:!0},{key:"list",fn:function({close:n}){return[a("div",{staticClass:"ivr_node__dropdown-list"},[e._t("menuItems",null,{close:n})],2)]}}],null,!0)})]},proxy:!0},{key:"content",fn:function(){return[e._t("content")]},proxy:!0}],null,!0)})],2)},jd=[],Yd=o.normalizeComponent(Wd,Kd,jd,!1,null,null,null,null);const Gd=Yd.exports,Zd={name:"DtRecipeGroupedChip",components:{DtChip:pt},computed:{}};var Xd=function(){var e=this,a=e._self._c;return a("div",{staticClass:"dt-grouped-chip",attrs:{"data-qa":"grouped-chip"}},[a("dt-chip",{staticClass:"dt-chip-content dt-chip-content--left",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?a("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?a("div",{attrs:{"data-qa":"left-grouped-chip-content"}},[e._t("leftContent")],2):e._e()]},proxy:!0}],null,!0)}),a("dt-chip",{staticClass:"dt-chip-content dt-chip-content--right",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?a("div",{attrs:{"data-qa":"right-grouped-chip-icon"}},[e._t("rightIcon")],2):e._e()]},proxy:!0},{key:"default",fn:function(){return[e.$slots.rightContent?a("div",{attrs:{"data-qa":"right-grouped-chip-content"}},[e._t("rightContent")],2):e._e()]},proxy:!0}],null,!0)})],1)},Qd=[],Jd=o.normalizeComponent(Zd,Xd,Qd,!1,null,null,null,null);const ec=Jd.exports,tc={name:"DtRecipeSettingsMenuButton",components:{DtButton:l.DtButton,DtIcon:l.DtIcon},props:{updateAvailable:{type:Boolean,default:!1},ariaLabel:{type:String,required:!0}},emits:["click"]};var ac=function(){var e=this,a=e._self._c;return e.updateAvailable?a("dt-button",e._g({staticClass:"settings-menu-button-update",attrs:{importance:"outlined",size:"xs","icon-position":"right","aria-label":e.ariaLabel},scopedSlots:e._u([{key:"icon",fn:function(){return[a("dt-icon",{attrs:{name:"more-vertical",size:"300"}})]},proxy:!0}],null,!1,3418040308)},e.$listeners),[e._t("default")],2):a("dt-button",e._g({staticClass:"settings-menu-button",attrs:{importance:"clear",kind:"inverted","aria-label":e.ariaLabel},scopedSlots:e._u([{key:"icon",fn:function(){return[a("dt-icon",{attrs:{name:"more-vertical",size:"300"}})]},proxy:!0}])},e.$listeners))},nc=[],rc=o.normalizeComponent(tc,ac,nc,!1,null,"4ee1371d",null,null);const sc=rc.exports,S={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"},wa={[S.INBOX]:"inbox",[S.CONTACTS]:"contacts",[S.CHANNELS]:"hash",[S.THREADS]:"thread",[S.LOCKED_CHANNEL]:"lock",[S.QUICK_START]:"sparkle",[S.COACHING_GROUP]:"users",[S.COACHING_CENTER]:"external-link","locked channel unread":"lock-filled","channel unread":"hash-bold",[S.ASSIGNED]:"at-sign",[S.DIGITAL]:"message"},ee={"magenta-200":"d-bgc-magenta-200","green-200":"d-bgc-green-200","gold-300":"d-bgc-gold-300","purple-600":"d-bgc-purple-600","magenta-300":"d-bgc-magenta-300","purple-300":"d-bgc-purple-300","green-500":"d-bgc-green-500","purple-100":"d-bgc-purple-100","magenta-400":"d-bgc-magenta-400","magenta-100":"d-bgc-magenta-100","black-300":"d-bgc-black-300"},Da="If type is contact center, color must be oneof the following:"+Object.keys(ee).join(", "),Oa=["300","200"],ic={name:"DtRecipeLeftbarGeneralRowIcon",components:{DtIcon:l.DtIcon},props:{type:{type:String,default:null},color:{type:String,default:null},iconSize:{type:String,default:"300"}},computed:{isIconType(){return![S.DIALBOT,S.CONTACT_CENTER].includes(this.type)},isContactCenterType(){return this.type===S.CONTACT_CENTER},isDialbotType(){return this.type===S.DIALBOT},getIconName(){return wa[this.type]},contactCenterIconClasses(){return["dt-leftbar-row__icon-cc",ee[this.color]]},dialbotClasses(){return["d-d-flex","d-ai-center","d-jc-center"]}}};var oc=function(){var e=this,a=e._self._c;return e.isIconType?a("dt-icon",{attrs:{name:e.getIconName,size:e.iconSize}}):e.isContactCenterType?a("div",{class:e.contactCenterIconClasses}):e.isDialbotType?a("div",{class:e.dialbotClasses,attrs:{"data-qa":"general-row-dialbot"}},[a("dt-icon",{attrs:{name:"dialbot",size:"500"}})],1):e._e()},lc=[],dc=o.normalizeComponent(ic,oc,lc,!1,null,null,null,null);const cc=dc.exports,uc={name:"DtRecipeGeneralRow",components:{DtEmojiTextWrapper:l.DtEmojiTextWrapper,DtBadge:be,DtIcon:l.DtIcon,DtButton:l.DtButton,DtTooltip:o.DtTooltip,DtRecipeLeftbarGeneralRowIcon:cc},inheritAttrs:!1,props:{type:{type:String,default:"inbox",validator:t=>Object.values(S).includes(t)},ariaLabel:{type:String,default:""},description:{type:String,required:!0},color:{type:String,default:null,validator:t=>Object.keys(ee).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=>Oa.includes(t)}},emits:["click","call"],data(){return{actionFocused:!1,labelWidth:"100%"}},computed:{leftbarGeneralRowClasses(){return["dt-leftbar-row",{"dt-leftbar-row--no-action":!this.hasCallButton,"dt-leftbar-row--has-unread":this.hasUnreads,"dt-leftbar-row--unread-count":this.showUnreadCount,"dt-leftbar-row--selected":this.selected,"dt-leftbar-row--muted":this.muted,"dt-leftbar-row--action-focused":this.actionFocused}]},getIcon(){switch(this.type){case S.CHANNELS:if(this.hasUnreads)return"channel unread";break;case S.LOCKED_CHANNEL:if(this.hasUnreads)return"locked channel unread";break}return this.type},getAriaLabel(){return this.ariaLabel?this.ariaLabel:o.safeConcatStrings([this.description,this.unreadCountTooltip,this.dndTextTooltip])},hasActions(){return this.dndText||this.activeVoiceChat||this.showUnreadCount||this.hasCallButton},showUnreadCount(){return!!this.unreadCount&&this.hasUnreads}},watch:{$props:{immediate:!0,deep:!0,async handler(){this.validateProps(),await this.$nextTick(),this.adjustLabelWidth()}}},mounted(){this.resizeObserver=new ResizeObserver(this.adjustLabelWidth),this.resizeObserver.observe(this.$el),this.adjustLabelWidth()},beforeDestroy:function(){this.resizeObserver.disconnect()},methods:{validateProps(){this.type===S.CONTACT_CENTER&&!Object.keys(ee).includes(this.color)&&console.error(Da)},adjustLabelWidth(){var r,s,i,c,u,f;const t=((s=(r=this.$el)==null?void 0:r.querySelector(".dt-leftbar-row__primary"))==null?void 0:s.clientWidth)||0,e=((c=(i=this.$el)==null?void 0:i.querySelector(".dt-leftbar-row__omega"))==null?void 0:c.clientWidth)||0,a=((f=(u=this.$el)==null?void 0:u.querySelector(".dt-leftbar-row__alpha"))==null?void 0:f.clientWidth)||0,n=16;this.labelWidth=t-(e+a+n)+"px"}}};var pc=function(){var e=this,a=e._self._c;return a("div",{class:e.leftbarGeneralRowClasses,attrs:{"data-qa":"dt-leftbar-row"}},[a("a",e._g(e._b({staticClass:"dt-leftbar-row__primary",attrs:{"data-qa":"data-qa"in e.$attrs?e.$attrs["data-qa"]:"dt-leftbar-row-link","aria-label":e.getAriaLabel,title:e.description,href:"href"in e.$attrs?e.$attrs.href:"javascript:void(0)"}},"a",e.$attrs,!1),e.$listeners),[a("div",{staticClass:"dt-leftbar-row__alpha"},[e.isTyping?a("div",{staticClass:"dt-leftbar-row__is-typing"},[a("span"),a("span"),a("span")]):e._t("left",function(){return[a("dt-recipe-leftbar-general-row-icon",{attrs:{type:e.getIcon,color:e.color,"icon-size":e.iconSize,"data-qa":"dt-leftbar-row-icon"}})]})],2),a("div",{staticClass:"dt-leftbar-row__label",style:`flex-basis: ${e.labelWidth}`},[e._t("label",function(){return[a("dt-emoji-text-wrapper",{staticClass:"dt-leftbar-row__description",attrs:{"data-qa":"dt-leftbar-row-description",size:"200"}},[e._v(" "+e._s(e.description)+" ")])]})],2)]),e.hasActions?a("div",{staticClass:"dt-leftbar-row__omega"},[e.dndText?a("dt-tooltip",{attrs:{placement:"top",message:e.dndTextTooltip},scopedSlots:e._u([{key:"anchor",fn:function(){return[a("div",{ref:"dt-leftbar-row-dnd",staticClass:"dt-leftbar-row__dnd",attrs:{"data-qa":"dt-leftbar-row-dnd"}},[e._v(" "+e._s(e.dndText)+" ")])]},proxy:!0}],null,!1,490758222)}):e._e(),e.activeVoiceChat?a("div",{staticClass:"dt-leftbar-row__active-voice"},[a("dt-icon",{attrs:{size:"300",name:"waveform"}})],1):e.showUnreadCount?a("dt-tooltip",{attrs:{message:e.unreadCountTooltip,placement:"top"},scopedSlots:e._u([{key:"anchor",fn:function(){return[a("dt-badge",{staticClass:"dt-leftbar-row__unread-badge",attrs:{kind:"count",type:"bulletin","data-qa":"dt-leftbar-row-unread-badge"}},[e._v(" "+e._s(e.unreadCount)+" ")])]},proxy:!0}],null,!1,462525554)}):e._e(),e.hasCallButton?a("div",{staticClass:"dt-leftbar-row__action",attrs:{"data-qa":"dt-leftbar-row-action"}},[a("dt-tooltip",{attrs:{message:e.callButtonTooltip,placement:"top"},scopedSlots:e._u([{key:"anchor",fn:function(){return[a("dt-button",{staticClass:"dt-leftbar-row__action-button",attrs:{"data-qa":"dt-leftbar-row-action-call-button",circle:!0,size:"xs",kind:"inverted","aria-label":e.callButtonTooltip},on:{focus:function(n){e.actionFocused=!0},blur:function(n){e.actionFocused=!1},click:function(n){return n.stopPropagation(),e.$emit("call",n)}},scopedSlots:e._u([{key:"icon",fn:function(){return[a("dt-icon",{attrs:{name:"phone",size:"200"}})]},proxy:!0}],null,!1,990728611)})]},proxy:!0}],null,!1,4239858356)})],1):e._e()],1):e._e()])},fc=[],hc=o.normalizeComponent(uc,pc,fc,!1,null,"8577d0d5",null,null);const vt=hc.exports,mc={name:"DtRecipeGroupRow",components:{DtIcon:l.DtIcon,DtRecipeGeneralRow:vt},inheritAttrs:!1,props:{groupCountText:{type:String,default:""},names:{type:String,required:!0},unreadCount:{type:String,default:null},unreadCountTooltip:{type:String,default:null},hasUnreads:{type:Boolean,default:!1},selected:{type:Boolean,default:!1},isTyping:{type:Boolean,default:!1}},emits:["click"],computed:{ariaLabel(){return o.safeConcatStrings([this.groupCountText,this.names])}}};var _c=function(){var e=this,a=e._self._c;return a("dt-recipe-general-row",e._g(e._b({attrs:{description:e.names,"aria-label":e.ariaLabel,"unread-count":e.unreadCount,"has-unreads":e.hasUnreads,"unread-count-tooltip":e.unreadCountTooltip,selected:e.selected,"is-typing":e.isTyping},scopedSlots:e._u([{key:"left",fn:function(){return[a("dt-icon",{attrs:{name:"users",size:"300"}})]},proxy:!0}])},"dt-recipe-general-row",e.$attrs,!1),e.$listeners))},gc=[],vc=o.normalizeComponent(mc,_c,gc,!1,null,null,null,null);const bc=vc.exports,yc={name:"DtRecipeContactRow",components:{DtAvatar:te,DtRecipeGeneralRow:vt,DtEmojiTextWrapper:l.DtEmojiTextWrapper},inheritAttrs:!1,props:{avatarSrc:{type:String,default:""},avatarAlt:{type:String,default:""},avatarPresence:{type:String,default:null},avatarSeed:{type:String,default:null},presenceText:{type:String,default:""},name:{type:String,required:!0},userStatus:{type:String,default:""},muted:{type:Boolean,default:!1},unreadCount:{type:String,default:null},hasUnreads:{type:Boolean,default:!1},selected:{type:Boolean,default:!1},noInitials:{type:Boolean,default:!1},isTyping:{type:Boolean,default:!1},hasCallButton:{type:Boolean,default:!0},callButtonTooltip:{type:String,default:""},unreadCountTooltip:{type:String,default:""}},emits:["click","call"],computed:{presenceColorClass(){switch(this.avatarPresence){case"active":return"d-fc-success";case"busy":return"d-fc-critical";case"away":return"d-fc-warning";default:return}},contactDescription(){return o.safeConcatStrings([this.name,this.presenceText,this.userStatus])},iconName(){return this.noInitials?"user":null}}};var Sc=function(){var e=this,a=e._self._c;return a("dt-recipe-general-row",e._g(e._b({attrs:{"unread-count":e.unreadCount,description:e.contactDescription,"has-unreads":e.hasUnreads,selected:e.selected,"has-call-button":e.hasCallButton,muted:e.muted,"is-typing":e.isTyping,"call-button-tooltip":e.callButtonTooltip,"unread-count-tooltip":e.unreadCountTooltip},scopedSlots:e._u([{key:"left",fn:function(){return[a("dt-avatar",{attrs:{"full-name":e.name,"image-src":e.avatarSrc,"image-alt":e.avatarAlt,"icon-name":e.iconName,"icon-size":"200",size:"sm",seed:e.avatarSeed,presence:e.avatarPresence}})]},proxy:!0},{key:"label",fn:function(){return[a("dt-emoji-text-wrapper",{staticClass:"dt-leftbar-row__description",attrs:{"data-qa":"dt-leftbar-row-description",size:"200"}},[e._v(" "+e._s(e.name)+" ")]),a("div",{staticClass:"dt-leftbar-row__status"},[e.presenceText?a("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?a("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))},Cc=[],Ic=o.normalizeComponent(yc,Sc,Cc,!1,null,null,null,null);const Ec=Ic.exports,Ta=["up","down"],ka=["mentions","messages"],wc={name:"DtRecipeUnreadPill",components:{DtIcon:l.DtIcon},props:{kind:{type:String,required:!0,validator:t=>ka.includes(t)},direction:{type:String,required:!0,validator:t=>Ta.includes(t)}},emits:["click"]};var Dc=function(){var e=this,a=e._self._c;return a("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),[a("dt-icon",{attrs:{name:`arrow-${e.direction}`,size:"300"}}),a("span",{attrs:{"data-qa":"dt-leftbar-unread-pill__label"}},[e._t("default")],2)],1)},Oc=[],Tc=o.normalizeComponent(wc,Dc,Oc,!1,null,null,null,null);const kc=Tc.exports,pe={NORMAL:"",SEARCHED:"d-bgc-warning-subtle",ERROR:"d-bgc-critical-subtle"},fe="NORMAL",xc={name:"DtRecipeFeedItemRow",components:{DtAvatar:te,DtLazyShow:o.DtLazyShow,DtListItem:ae,DtBadge:be},mixins:[K],inheritAttrs:!1,props:{avatarSeed:{type:String,default:null},showHeader:{type:Boolean,default:!1},avatarImageUrl:{type:String,default:""},displayName:{type:String,default:""},time:{type:String,default:""},shortTime:{type:String,default:""},labelText:{type:String,default:""},isActive:{type:Boolean,default:!1},state:{type:String,default:fe,validator:t=>Object.keys(pe).includes(t)}},emits:["hover","focus","keydown"],data(){return{faded:!1}},computed:{feedListeners(){return{...this.$listeners,mouseenter:()=>this.setHover(!0),mouseleave:()=>this.setHover(!1),focusin:()=>this.setFocus(!0),focusout:()=>this.setFocus(!1),keydown:t=>{switch(t.code){case"Tab":this.trapFocus(t);break}this.$emit("keydown",t)}}},listItemClasses(){return["d-w100p","d-box-border","d-ps-relative","d-px16",{"d-bgc-secondary-opaque":this.isActive&&this.state===fe},pe[this.state],"dt-feed-item-row","d-t","d-tp-bgc"]}},methods:{trapFocus(t){this.focusTrappedTabPress(t)},setFocus(t){this.$emit("focus",t)},setHover(t){this.$emit("hover",t)},fade(){this.state===fe||this.faded===!0||(this.$refs.FeedItemRef.$el.classList.remove(pe[this.state]),this.faded=!0)}}};var Lc=function(){var e=this,a=e._self._c;return a("dt-list-item",e._g(e._b({ref:"FeedItemRef",class:e.listItemClasses,attrs:{"navigation-type":"none","data-qa":"dt-feed-item-row"},scopedSlots:e._u([{key:"left",fn:function(){return[e.showHeader?e._t("avatar",function(){return[a("dt-avatar",{attrs:{"full-name":e.displayName,"image-src":e.avatarImageUrl,seed:e.avatarSeed}})]}):e._e(),e.showHeader?e._e():a("div",{directives:[{name:"show",rawName:"v-show",value:e.isActive,expression:"isActive"}],staticClass:"dt-feed-item-row__left-time",attrs:{"data-qa":"dt-feed-item-row--left-time"}},[e._v(" "+e._s(e.shortTime)+" ")])]},proxy:!0},{key:"bottom",fn:function(){return[a("div",{staticClass:"dt-feed-item-row__reactions",attrs:{"data-qa":"dt-feed-item-row--reactions"}},[e._t("reactions")],2),a("div",{staticClass:"dt-feed-item-row__threading"},[e._t("threading")],2)]},proxy:!0},{key:"right",fn:function(){return[a("div",{directives:[{name:"show",rawName:"v-show",value:e.isActive,expression:"isActive"}],staticClass:"dt-feed-item-row__menu",attrs:{"data-qa":"dt-feed-item-row--menu"}},[a("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),[a("article",[e.showHeader?a("div",{staticClass:"dt-feed-item-row__header",attrs:{"data-qa":"dt-feed-item-row--header"}},[a("p",{staticClass:"dt-feed-item-row__header__name"},[e._v(" "+e._s(e.displayName)+" ")]),a("time",{staticClass:"dt-feed-item-row__header__time"},[e._v(" "+e._s(e.time)+" ")]),e.labelText?a("dt-badge",{attrs:{text:e.labelText}}):e._e()],1):e._e(),a("span",{staticClass:"content-text-wrapper-class",attrs:{"data-qa":"dt-feed-item-row--content"}},[e._t("default")],2)])])},$c=[],Rc=o.normalizeComponent(xc,Lc,$c,!1,null,"38d7dabd",null,null);const Ac=Rc.exports,nt={default:"dt-recipe-feed-item-pill__border-default",ai:"dt-recipe-feed-item-pill__border-ai",critical:"dt-recipe-feed-item-pill__border-critical"},Mc={name:"DtRecipeFeedItemPill",components:{DtItemLayout:me,DtIcon:l.DtIcon,DtCollapsible:Kt},props:{iconName:{type:String,default:()=>""},title:{type:String,default:()=>""},wrapperClass:{type:[String,Array,Object],default:""},buttonClass:{type:[String,Array,Object],default:""},ariaLabel:{type:String,required:!0},toggleable:{type:Boolean,default:()=>!0},defaultToggled:{type:Boolean,default:()=>!1},borderColor:{type:String,default:"default",validator:t=>Object.keys(nt).includes(t)}},data(){return{hover:!1,expanded:this.defaultToggled}},computed:{computedIcon(){return this.toggleable&&this.hover?this.expanded?"chevron-down":"chevron-right":this.iconName},toggleableClass(){return this.toggleable?"d-c-pointer":""},borderClass(){return nt[this.borderColor]}},methods:{onClick(){this.toggleable&&(this.expanded=!this.expanded)}}};var Nc=function(){var e=this,a=e._self._c;return a("div",{class:["dt-recipe-feed-item-pill__border",e.borderClass,e.wrapperClass]},[a("div",{staticClass:"dt-recipe-feed-item-pill__wrapper"},[a("dt-collapsible",{attrs:{open:e.expanded},scopedSlots:e._u([{key:"anchor",fn:function(){return[a("button",{class:["dt-recipe-feed-item-pill__button",e.toggleableClass,e.buttonClass],attrs:{"data-qa":"dt-recipe-feed-item-pill","aria-label":e.ariaLabel},on:{focusin:function(n){e.hover=!0},focusout:function(n){e.hover=!1},mouseenter:function(n){e.hover=!0},mouseleave:function(n){e.hover=!1},click:e.onClick}},[a("dt-item-layout",{staticClass:"dt-recipe-feed-item-pill__layout",scopedSlots:e._u([{key:"left",fn:function(){return[a("dt-icon",{staticClass:"dt-recipe-feed-item-pill__icon",attrs:{"data-qa":"dt-recipe-feed-item-pill__icon",size:"300",name:e.computedIcon}})]},proxy:!0},{key:"subtitle",fn:function(){return[e._t("subtitle")]},proxy:!0},{key:"bottom",fn:function(){return[e._t("bottom")]},proxy:!0},{key:"right",fn:function(){return[e._t("right")]},proxy:!0}],null,!0)},[e._t("title",function(){return[a("span",{staticClass:"dt-recipe-feed-item-pill__title"},[e._v(e._s(e.title))])]})],2)],1)]},proxy:!0},{key:"content",fn:function(){return[a("div",{staticClass:"dt-recipe-feed-item-pill__content"},[e._t("content")],2)]},proxy:!0}],null,!0)})],1)])},Pc=[],Bc=o.normalizeComponent(Mc,Nc,Pc,!1,null,"ebc5dd1f",null,null);const Fc=Bc.exports,Vc={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 qc=function(){var e=this,a=e._self._c;return a("time",{staticClass:"dt-time-pill",attrs:{"data-qa":"dt-time-pill",dateTime:e.dateTime}},[e._v(" "+e._s(e.dateTimeDisplay)+" ")])},Hc=[],zc=o.normalizeComponent(Vc,qc,Hc,!1,null,null,null,null);const Uc=zc.exports,xa=["emojiUnicodeOrShortname","isSelected","ariaLabel","tooltip","num"],Wc={name:"DtRecipeEmojiRow",components:{DtTooltip:o.DtTooltip,DtButton:l.DtButton,DtEmoji:l.DtEmoji,DtEmojiTextWrapper:l.DtEmojiTextWrapper},mixins:[],props:{reactions:{type:Array,default:()=>[],validator:t=>{for(const e of t)if(!xa.every(n=>e[n]!==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 Kc=function(){var e=this,a=e._self._c;return a("span",{staticClass:"dt-emoji-row"},[e._l(e.reactions,function(n){return a("span",{key:n.unicodeOutput,attrs:{reaction:n}},[a("dt-tooltip",{staticClass:"dt-emoji-row__tooltip",attrs:{"content-class":"d-wmx464"},on:{shown:r=>e.emojiHovered(n,r)},scopedSlots:e._u([{key:"anchor",fn:function({attrs:r}){return[a("dt-button",{class:["dt-emoji-row__reaction",n.isSelected?"dt-emoji-row__reaction--selected":""],attrs:{importance:"clear",size:"sm","data-qa":"feed-item-reaction-button","aria-label":n.ariaLabel,attrs:r},on:{click:function(s){return e.emojiClicked(n)}}},[a("span",{staticClass:"dt-emoji-row__emoji"},[a("dt-emoji",{attrs:{size:"200",code:n.emojiUnicodeOrShortname}})],1),a("span",{staticClass:"dt-emoji-row__reaction-number"},[e._v(" "+e._s(n.num)+" ")])])]}}],null,!0)},[a("span",{attrs:{"aria-hidden":"true"}},[a("dt-emoji-text-wrapper",{attrs:{size:"200"}},[e._v(" "+e._s(n.tooltip)+" ")])],1)])],1)}),e._t("picker")],2)},jc=[],Yc=o.normalizeComponent(Wc,Kc,jc,!1,null,null,null,null);const Gc=Yc.exports,rt={warning:"dt-recipe-callbox-badge--warning"},st={default:"dt-recipe-callbox--border-default",ai:"dt-recipe-callbox--border-ai",critical:"dt-recipe-callbox--border-critical"},Zc={name:"DtRecipeCallbox",components:{DtBadge:be,DtAvatar:te},inheritAttrs:!1,props:{badgeText:{type:String,default:""},badgeColor:{type:String,default:null,validator:t=>t===null||Object.keys(rt).includes(t)},avatarSrc:{type:String,default:""},avatarFullName:{type:String,default:""},avatarSeed:{type:String,default:""},title:{type:String,default:""},borderColor:{type:String,default:"default",validator:t=>Object.keys(st).includes(t)},clickable:{type:Boolean,default:!1},isOnHold:{type:Boolean,default:!1}},emits:["click"],computed:{shouldShowAvatar(){return this.avatarFullName||this.avatarSrc},badgeClass(){return rt[this.badgeColor]},borderClass(){return st[this.borderColor]}},methods:{handleClick(t){this.clickable&&this.$emit("click",t)}}};var Xc=function(){var e=this,a=e._self._c;return a("div",{staticClass:"dt-recipe-callbox",attrs:{"data-qa":"dt-recipe-callbox"}},[e.$slots.video?a("div",{staticClass:"dt-recipe-callbox--video",attrs:{"data-qa":"dt-recipe-callbox--video-wrapper"}},[e._t("video")],2):e._e(),a("div",{class:["dt-recipe-callbox--main-content",e.borderClass,{"dt-recipe-callbox--clickable":e.clickable}],attrs:{"data-qa":"dt-recipe-callbox--main-content"}},[a("div",{staticClass:"dt-recipe-callbox--main-content-top"},[e.shouldShowAvatar?a("dt-avatar",{attrs:{"avatar-class":"dt-recipe-callbox--avatar","image-src":e.avatarSrc,"full-name":e.avatarFullName,seed:e.avatarSeed,clickable:e.clickable,"overlay-icon":e.isOnHold?"pause":null,size:"sm"},on:{click:e.handleClick}}):e._e(),a("div",{staticClass:"dt-recipe-callbox--content"},[a(e.clickable?"button":"span",{tag:"component",staticClass:"dt-recipe-callbox--content-title",attrs:{"data-qa":"dt-recipe-callbox--title"},on:{click:e.handleClick}},[e._v(" "+e._s(e.title)+" ")]),e.$slots.badge||e.badgeText?a("div",{staticClass:"dt-recipe-callbox--content-badge",attrs:{"data-qa":"dt-recipe-callbox--badge-wrapper"}},[e._t("badge",function(){return[a("dt-badge",{class:e.badgeClass,attrs:{text:e.badgeText}})]})],2):e._e(),e.$slots.subtitle?a("div",{staticClass:"dt-recipe-callbox--content-subtitle",attrs:{"data-qa":"dt-recipe-callbox--subtitle-wrapper"}},[e._t("subtitle")],2):e._e()],1),e.$slots.right?a("div",{staticClass:"dt-recipe-callbox--right",attrs:{"data-qa":"dt-recipe-callbox--right-wrapper"}},[e._t("right")],2):e._e()],1),e.$slots.bottom?a("div",{staticClass:"dt-recipe-callbox--main-content-bottom",attrs:{"data-qa":"dt-recipe-callbox--bottom-wrapper"}},[e._t("bottom")],2):e._e()])])},Qc=[],Jc=o.normalizeComponent(Zc,Xc,Qc,!1,null,"66800ae7",null,null);const eu=Jc.exports;let P;function he(t,e){return bt(),R(t,e,{locale:P})}function tu(t,e){return bt(),kl(t,{locale:P,format:e})}function au(t,e){return bt(),Ol(t,e,{locale:P})}function nu(){return P!==void 0}function bt(){if(!nu())throw new Error("Locale not set, please call setDateLocale(locale) and pass in a datefns locale object as the locale param before calling this function")}function ru(t){P=t}function su(t){return he(t,"MMMM d, y")}function iu(t){if(t<60)return au(0,29*1e3);const e=$l({start:0,end:t*1e3});return tu(e,["hours","minutes"])}function kt(t){const e=new Intl.RelativeTimeFormat(P.code,{numeric:"auto"});return o.capitalizeFirstLetter(e.formatToParts(t,"day")[0].value,P.code)}function ou(t){return Bl(t)?kt(0):Vl(t)?kt(-1):Nl(t)?he(t,"EEEE"):Pl(t)?he(t,"EEEE, MMMM d"):he(t,"MMMM d, y")}exports.DEFAULT_VALIDATION_MESSAGE_TYPE=o.DEFAULT_VALIDATION_MESSAGE_TYPE;exports.DESCRIPTION_SIZE_TYPES=o.DESCRIPTION_SIZE_TYPES;exports.DtLazyShow=o.DtLazyShow;exports.DtTooltip=o.DtTooltip;exports.TOOLTIP_DELAY_MS=o.TOOLTIP_DELAY_MS;exports.TOOLTIP_DIRECTIONS=o.TOOLTIP_DIRECTIONS;exports.TOOLTIP_HIDE_ON_CLICK_VARIANTS=o.TOOLTIP_HIDE_ON_CLICK_VARIANTS;exports.TOOLTIP_KIND_MODIFIERS=o.TOOLTIP_KIND_MODIFIERS;exports.TOOLTIP_STICKY_VALUES=o.TOOLTIP_STICKY_VALUES;exports.VALIDATION_MESSAGE_TYPES=o.VALIDATION_MESSAGE_TYPES;exports.filterFormattedMessages=o.filterFormattedMessages;exports.formatMessages=o.formatMessages;exports.getUniqueString=o.getUniqueString;exports.getValidationState=o.getValidationState;exports.BUTTON_ICON_SIZES=l.BUTTON_ICON_SIZES;exports.BUTTON_IMPORTANCE_MODIFIERS=l.BUTTON_IMPORTANCE_MODIFIERS;exports.BUTTON_KIND_MODIFIERS=l.BUTTON_KIND_MODIFIERS;exports.BUTTON_SIZE_MODIFIERS=l.BUTTON_SIZE_MODIFIERS;exports.BUTTON_TYPES=l.BUTTON_TYPES;exports.CDN_URL=l.CDN_URL;exports.DtButton=l.DtButton;exports.DtCheckableInputMixin=l.CheckableMixin;exports.DtEmojiPicker=l.emoji_picker;exports.DtGroupableInputMixin=l.GroupableMixin;exports.DtIcon=l.DtIcon;exports.DtInput=l.DtInput;exports.DtInputMixin=l.InputMixin;exports.DtSkeleton=l.DtSkeleton;exports.DtSkeletonListItem=l.DtSkeletonListItem;exports.DtSkeletonParagraph=l.DtSkeletonParagraph;exports.DtSkeletonShape=l.DtSkeletonShape;exports.DtSkeletonText=l.DtSkeletonText;exports.DtTab=l.DtTab;exports.DtTabGroup=l.DtTabGroup;exports.DtValidationMessages=l.DtValidationMessages;exports.EMOJIS_PER_ROW=l.EMOJIS_PER_ROW;exports.EMOJI_PICKER_CATEGORIES=l.EMOJI_PICKER_CATEGORIES;exports.EMOJI_PICKER_SKIN_TONE_MODIFIERS=l.EMOJI_PICKER_SKIN_TONE_MODIFIERS;exports.ICON_POSITION_MODIFIERS=l.ICON_POSITION_MODIFIERS;exports.ICON_SIZE_MODIFIERS=l.ICON_SIZE_MODIFIERS;exports.INPUT_SIZES=l.INPUT_SIZES;exports.INPUT_TYPES=l.INPUT_TYPES;exports.INVALID_COMBINATION=l.INVALID_COMBINATION;exports.LINK_KIND_MODIFIERS=l.LINK_KIND_MODIFIERS;exports.LINK_VARIANTS=l.LINK_VARIANTS;exports.SKELETON_HEADING_HEIGHTS=l.SKELETON_HEADING_HEIGHTS;exports.SKELETON_RIPPLE_DURATION=l.SKELETON_RIPPLE_DURATION;exports.SKELETON_SHAPES=l.SKELETON_SHAPES;exports.SKELETON_SHAPE_SIZES=l.SKELETON_SHAPE_SIZES;exports.SKELETON_TEXT_TYPES=l.SKELETON_TEXT_TYPES;exports.TAB_IMPORTANCE_MODIFIERS=l.TAB_IMPORTANCE_MODIFIERS;exports.TAB_LIST_IMPORTANCE_MODIFIERS=l.TAB_LIST_IMPORTANCE_MODIFIERS;exports.TAB_LIST_KIND_MODIFIERS=l.TAB_LIST_KIND_MODIFIERS;exports.TAB_LIST_SIZES=l.TAB_LIST_SIZES;exports.validationMessageValidator=l.validationMessageValidator;exports.AVATAR_COLORS=Mt;exports.AVATAR_GROUP_VALIDATOR=Ve;exports.AVATAR_ICON_SIZES=At;exports.AVATAR_KIND_MODIFIERS=$t;exports.AVATAR_PRESENCE_SIZE_MODIFIERS=Rt;exports.AVATAR_PRESENCE_STATES=Fe;exports.AVATAR_SIZE_MODIFIERS=le;exports.BADGE_DECORATION_MODIFIERS=ze;exports.BADGE_KIND_MODIFIERS=He;exports.BADGE_TYPE_MODIFIERS=qe;exports.BREADCRUMBS_INVERTED_MODIFIER=Vt;exports.BREADCRUMB_ITEM_SELECTED_MODIFIER=Ft;exports.BUTTON_GROUP_ALIGNMENT=Ue;exports.CALLBAR_BUTTON_VALID_WIDTH_SIZE=gt;exports.CALLBOX_BADGE_COLORS=rt;exports.CALLBOX_BORDER_COLORS=st;exports.CHIP_CLOSE_BUTTON_SIZE_MODIFIERS=aa;exports.CHIP_ICON_SIZES=na;exports.CHIP_SIZES=ya;exports.CHIP_SIZE_MODIFIERS=Ge;exports.CHIP_TOP_POSITION=Sa;exports.COLOR_CODES=Ia;exports.DEFAULT_FEED_ROW_STATE=fe;exports.DROPDOWN_PADDING_CLASSES=z;exports.DT_DESCRIPTION_LIST_DIRECTION=jt;exports.DT_STACK_DIRECTION=$;exports.DT_STACK_GAP=ne;exports.DT_STACK_RESPONSIVE_BREAKPOINTS=lt;exports.DtAvatar=te;exports.DtBadge=be;exports.DtBanner=Ln;exports.DtBreadcrumbItem=qt;exports.DtBreadcrumbs=Vn;exports.DtButtonGroup=Wn;exports.DtCard=Ht;exports.DtCheckbox=ei;exports.DtCheckboxGroup=si;exports.DtChip=pt;exports.DtCodeblock=er;exports.DtCollapsible=Kt;exports.DtCombobox=Wt;exports.DtDatepicker=dd;exports.DtDescriptionList=Fr;exports.DtDropdown=Jt;exports.DtDropdownSeparator=ds;exports.DtImageViewer=hs;exports.DtInputGroup=ut;exports.DtInputGroupMixin=ea;exports.DtItemLayout=me;exports.DtKeyboardListNavigationMixin=it;exports.DtKeyboardShortcut=Ai;exports.DtLink=Pt;exports.DtListItem=ae;exports.DtListItemGroup=Ts;exports.DtModal=Is;exports.DtNotice=En;exports.DtNoticeAction=Ie;exports.DtNoticeContent=Se;exports.DtNoticeIcon=ye;exports.DtPagination=Rs;exports.DtPopover=Ee;exports.DtPresence=Lt;exports.DtRadio=Bs;exports.DtRadioGroup=zs;exports.DtRecipeCallbarButton=Ca;exports.DtRecipeCallbarButtonWithPopover=$d;exports.DtRecipeCallbox=eu;exports.DtRecipeComboboxMultiSelect=Id;exports.DtRecipeComboboxWithPopover=va;exports.DtRecipeContactInfo=Pd;exports.DtRecipeContactRow=Ec;exports.DtRecipeEmojiRow=Gc;exports.DtRecipeFeedItemPill=Fc;exports.DtRecipeFeedItemRow=Ac;exports.DtRecipeGeneralRow=vt;exports.DtRecipeGroupRow=bc;exports.DtRecipeGroupedChip=ec;exports.DtRecipeIvrNode=Gd;exports.DtRecipeSettingsMenuButton=sc;exports.DtRecipeTimePill=Uc;exports.DtRecipeTopBannerInfo=Hd;exports.DtRecipeUnreadPill=kc;exports.DtRootLayout=Fi;exports.DtSelectMenu=vi;exports.DtStack=Gi;exports.DtTabPanel=Ys;exports.DtToast=Ii;exports.DtToggle=Ti;exports.FEED_ITEM_PILL_BORDER_COLORS=nt;exports.FEED_ROW_STATE_BACKGROUND_COLOR=pe;exports.IVR_NODE_BRANCH=xe;exports.IVR_NODE_EXPERT=ke;exports.IVR_NODE_GO_TO=se;exports.IVR_NODE_HANGUP=$e;exports.IVR_NODE_ICON_TYPES=Ea;exports.IVR_NODE_LABELS=zd;exports.IVR_NODE_PROMPT_COLLECT=Oe;exports.IVR_NODE_PROMPT_MENU=De;exports.IVR_NODE_PROMPT_PLAY=Te;exports.IVR_NODE_TRANSFER=Le;exports.LABEL_SIZES=ot;exports.LEFTBAR_GENERAL_ROW_CONTACT_CENTER_COLORS=ee;exports.LEFTBAR_GENERAL_ROW_CONTACT_CENTER_VALIDATION_ERROR=Da;exports.LEFTBAR_GENERAL_ROW_ICON_MAPPING=wa;exports.LEFTBAR_GENERAL_ROW_ICON_SIZES=Oa;exports.LEFTBAR_GENERAL_ROW_TYPES=S;exports.LIST_ITEM_NAVIGATION_TYPES=x;exports.LIST_ITEM_TYPES=de;exports.MODAL_BANNER_KINDS=Ye;exports.MODAL_KIND_MODIFIERS=Ke;exports.MODAL_SIZE_MODIFIERS=je;exports.MULTI_SELECT_SIZES=ba;exports.NOTICE_KINDS=W;exports.NOTICE_ROLES=Nt;exports.POPOVER_APPEND_TO_VALUES=re;exports.POPOVER_CONTENT_WIDTHS=dt;exports.POPOVER_DIRECTIONS=Vr;exports.POPOVER_HEADER_FOOTER_PADDING_CLASSES=Yt;exports.POPOVER_INITIAL_FOCUS_STRINGS=Zt;exports.POPOVER_PADDING_CLASSES=We;exports.POPOVER_ROLES=Gt;exports.POPOVER_STICKY_VALUES=Xt;exports.PRESENCE_STATES=q;exports.PRESENCE_STATES_LIST=xt;exports.RADIO_INPUT_VALIDATION_CLASSES=ta;exports.REACTIONS_ATTRIBUTES=xa;exports.ROOT_LAYOUT_RESPONSIVE_BREAKPOINTS=la;exports.ROOT_LAYOUT_SIDEBAR_POSITIONS=Je;exports.SELECT_SIZE_MODIFIERS=Ze;exports.SELECT_STATE_MODIFIERS=ra;exports.SHORTCUTS_ALIASES_LIST=ki;exports.SHORTCUTS_ICON_ALIASES=H;exports.SHORTCUTS_ICON_SEPARATOR=oa;exports.TOAST_MIN_DURATION=Xe;exports.TOAST_ROLES=sa;exports.TOGGLE_CHECKED_VALUES=ia;exports.TOGGLE_SIZE_MODIFIERS=Qe;exports.UNREAD_PILL_DIRECTIONS=Ta;exports.UNREAD_PILL_KINDS=ka;exports.durationInHHMM=iu;exports.formatLong=cd;exports.formatMedium=ud;exports.formatNoYear=fd;exports.formatNumerical=hd;exports.formatShort=pd;exports.getDateMedium=su;exports.relativeDate=ou;exports.setDateLocale=ru;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./tooltip-N61DaooE.cjs"),l=require("./emoji_text_wrapper-_UNgB0uv.cjs"),x=require("vue"),V={BUSY:"busy",AWAY:"away",OFFLINE:"offline",ACTIVE:"active"},Lt=[V.BUSY,V.AWAY,V.OFFLINE,V.ACTIVE],Pa={name:"DtPresence",props:{presence:{type:String,default:V.ACTIVE,validator:t=>Lt.includes(t)},srText:{type:String,default:null}}};var Ba=function(){var e=this,a=e._self._c;return a("div",{staticClass:"d-presence",attrs:{"data-qa":"dt-presence",role:"status","aria-live":e.$attrs.ariaLive||"off"}},[e.srText?a("span",{staticClass:"sr-only",attrs:{"data-qa":"dt-presence-sr-text"}},[e._v(e._s(e.srText)+" ")]):e._e(),a("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"}})])},Fa=[],qa=i.normalizeComponent(Pa,Ba,Fa,!1,null,null,null,null);const xt=qa.exports,le={xs:"d-avatar--xs",sm:"d-avatar--sm",md:"d-avatar--md",lg:"d-avatar--lg",xl:"d-avatar--xl"},At={default:"",icon:"d-avatar__icon",initials:"d-avatar__initials"},$t={md:"d-avatar__presence--md",lg:"d-avatar__presence--lg"},Fe={NONE:"",BUSY:"busy",AWAY:"away",OFFLINE:"offline",ACTIVE:"active"},Rt={xs:"100",sm:"200",md:"300",lg:"500",xl:"600"},Mt=["100","200","300","400","500","600","700","800","900","1000","1100","1200","1300","1400","1500","1600","1700","1800"],qe=t=>t>1,Va=["accessibility","activity","add-task","agent-assist","ai-notes","airplay","airtable","alarm-check","alarm-clock-off","alarm-minus","alarm-plus","album","alert-circle","alert-triangle","amex","app-store-badge","apple","archive","archive-restore","arrow-down","arrow-down-left","arrow-down-right","arrow-left","arrow-left-right","arrow-right","arrow-up","arrow-up-down","arrow-up-left","arrow-up-right","asana","asterisk","at-sign","ata-adapter","attestation","attestation-outline","axis-3d","bar-chart","bar-chart-2","bar-chart-3","bar-chart-4","bar-chart-horizontal","barge","baseline","battery","battery-charging","battery-full","battery-low","battery-medium","bell","bell-minus","bell-off","bell-plus","bell-ring","binary","bluetooth","bluetooth-connected","bluetooth-off","bluetooth-searching","blur-background","bold","book","book-open","bookmark","bookmark-minus","bookmark-plus","box","box-select","boxes","branch","brand-dialpad","brand-dialpad-meetings","briefcase","building","building-2","bullhorn","calculator","calendar","calendar-check","calendar-check-2","calendar-clock","calendar-days","calendar-heart","calendar-minus","calendar-off","calendar-plus","calendar-range","calendar-search","calendar-x","call-abandoned","call-merge","call-rejected","camera","camera-off","camera-tracking","cast","check","check-circle","check-circle-filled","chevron-down","chevron-first","chevron-last","chevron-left","chevron-right","chevron-up","chevrons-down","chevrons-down-up","chevrons-left","chevrons-left-right","chevrons-right","chevrons-right-left","chevrons-up","chevrons-up-down","circle-half-filled","circle-slashed","clipboard","clipboard-check","clipboard-copy","clipboard-edit","clipboard-list","clipboard-signature","clipboard-type","clipboard-x","clock","clock-1","clock-10","clock-11","clock-12","clock-2","clock-3","clock-4","clock-5","clock-6","clock-7","clock-8","clock-9","clockify","close","cloud","cloud-cog","cloud-drizzle","cloud-fog","cloud-hail","cloud-lightning","cloud-moon","cloud-moon-rain","cloud-off","cloud-rain","cloud-rain-wind","cloud-snow","cloud-sun","cloud-sun-rain","cloudy","coaching-hub","code","command","concierge-bell","contacts","copper-crm","copy","copyright","corner-down-left","corner-down-right","corner-left-down","corner-left-up","corner-right-down","corner-right-up","corner-up-left","corner-up-right","cpu","credit-card","dash","dect-base-station","dect-handset","delete","deskphone","dialbot","dialer","dialpad-ai","dialpad-ai-color","dialpad-logomark","digital-whisper","diners-club","discover","dissatisfied","double-check","download","download-cloud","dp-phone","edit","edit-2","empty","end-chat","equal","eraser","evernote","expand","expert-node","external-link","eye","eye-off","facebook","factory","fast-forward","file","file-audio","files","film","filter","fingerprint","flag","flag-off","flame","focus","folder","folder-tree","folders","food","form-input","forward","freshsales-crm","front","gamepad","gauge","gif-filled","gif-outline","giphy","globe-2","gmail","google-business-messaging","google-calendar","google-docs","google-drive","google-glyph","google-sheets","google-slides","greenhouse","grid","grip-horizontal","grip-vertical","hand","hard-drive","hash","hash-bold","haze","hd","headphones","hear","heart","help-circle","highfive","history","hold","home","hourglass","hubspot","image","import","inbox","indent","infinity","info","inspect","instagram","intercom","isolated-queries","italic","jcb","jira-service-desk","key","keyboard","keypad","languages","laptop-2","large-self-view","layout","layout-dashboard","layout-filmstrip","layout-grid","layout-template","library","life-buoy","lightbulb","lightbulb-off","lightning-bolt","line-chart","line-messenger","link-2","link-2-off","linkedin","list-add","list-bullet","list-checks","list-ordered","listen","listen","listening","live-queue","living-thing","loading","lock","lock-filled","log-in","log-out","maestro","mail","mail-open","mails","map","map-pin","mastercard","maximize","megaphone","megaphone-off","menu","message","messenger","mic","mic-off","microsoft","microsoft-dynamics-365","microsoft-teams","minimize","minimize-alt","minus-circle","miro","monday-com","monitor","monitor-off","monitor-speaker","moon","more-horizontal","more-vertical","mouse","multi-line-dept","music","music-off","network","neutral","newspaper","not-enough-queries","notes","object","office-365","option","package","paperclip","park","party-popper","past-conversations","pause","pause-circle","phone","phone-call","phone-forward","phone-hang-up","phone-hang-up","phone-hold","phone-incoming","phone-missed","phone-off","phone-outgoing","picture-in-picture","pie-chart","pin","pin-off","pipedrive","play","play-circle","play-filled","play-store-badge","plug","plus","plus-circle","power","print-fax","printer","puzzle","qr-code","queries","quote","record","record-filled","redo","refresh","repeat","reply","reply-all","rewind","rewind-15-sec","salesforce-glyph","salesforce-logo","satisfied","save","scan","scan-face","scissors","screen-share-off","scroll","search","send","servicenow","settings","share","share-2","share-screen","sheet","shield","shield-alert","shield-check","shield-close","shield-off","shortcuts","shuffle","sidebar","sidebar-close","sidebar-open","signal-best","signal-high","signal-low","signal-medium","signal-zero","siren","skip-15-sec","skip-back","skip-back-ten","skip-forward","skip-forward-ten","slack","slash","sliders","sliders-horizontal","small-self-view","smartphone","smartphone-charging","snapchat","snooze","snowflake","somewhat-dissatisfied","somewhat-satisfied","sort-asc","sort-desc","sparkle","speaker","star","star-filled","sticker","stop-circle","stop-filled","strikethrough","sun","sun-dim","sun-medium","sunrise","sunset","switch-to-cellular","switch-to-hd","table","tag","tags","takeover","task","telegram","text-cursor","text-cursor-input","thermometer","thermometer-snowflake","thermometer-sun","thread","threads","thumbs-down","thumbs-up","tiktok","timer","timer-off","timer-reset","toggl","too-many-queries","tools","toy-brick","transfer","transfer-webchat","transportation","trash","trending-down","trending-up","triangle","twitter","type","umbrella","underline","undo-2","union-pay","unlink-2","unlock","unlock-filled","unread","upload","upload-cloud","usb","user","user-check","user-minus","user-plus","user-rematch","user-remove","users","very-dissatisfied","very-satisfied","viber","video","video-off","video-settings","visa","voicemail","voicemail-drop","volume","volume-1","volume-2","volume-x","waveform","we-chat","webcam","webchat","whatsapp","whisper","wifi","wifi-off","wind","x-brand","x-circle","zap-off","zendesk","zoho","zoho-crm","zoho-desk","zoom","zoom-in","zoom-logo","zoom-out"];function Ha(){return[void 0,...Va]}const za=t=>{if(typeof t!="string"||!t.trim())return"";const e=t.trim().split(/\s+/g);return e.length===1?e.join("").substring(0,2):e.filter((a,n)=>n===0||n===e.length-1).map(a=>a.slice(0,1).toUpperCase()).join("")},Wa=Ha(),Ua={name:"DtAvatar",components:{DtPresence:xt,DtIcon:l.DtIcon},inheritAttrs:!1,props:{id:{type:String,default(){return i.getUniqueString()}},seed:{type:String,default:void 0},color:{type:String,default:void 0},size:{type:String,default:"md",validator:t=>Object.keys(le).includes(t)},avatarClass:{type:[String,Array,Object],default:""},canvasClass:{type:[String,Array,Object],default:""},iconClass:{type:[String,Array,Object],default:""},presence:{type:String,default:Fe.NONE,validator:t=>Object.values(Fe).includes(t)},presenceProps:{type:Object,default:()=>({})},group:{type:Number,default:void 0,validator:t=>qe(t)},overlayIcon:{type:String,default:""},overlayText:{type:String,default:""},overlayClass:{type:[String,Array,Object],default:""},imageSrc:{type:String,default:""},imageAlt:{type:String,default:""},iconName:{type:String,default:void 0,validator:t=>Wa.includes(t)},iconSize:{type:String,default:"",validator:t=>!t||Object.keys(l.ICON_SIZE_MODIFIERS).includes(t)},fullName:{type:String,default:""},clickable:{type:Boolean,default:!1}},emits:["click"],data(){return{AVATAR_SIZE_MODIFIERS:le,AVATAR_KIND_MODIFIERS:At,AVATAR_PRESENCE_SIZE_MODIFIERS:$t,AVATAR_ICON_SIZES:Rt,imageLoadedSuccessfully:null,formattedInitials:"",initializing:!1}},computed:{isNotIconType(){return!this.iconName},avatarClasses(){return["d-avatar",le[this.validatedSize],this.avatarClass,{"d-avatar--group":this.showGroup,[`d-avatar--color-${this.getColor()}`]:this.isNotIconType,"d-avatar--clickable":this.clickable}]},overlayClasses(){return["d-avatar__overlay",this.overlayClass]},showGroup(){return qe(this.group)},formattedGroup(){return this.group>99?"99+":this.group},validatedSize(){return this.group?"xs":this.size},showImage(){return this.imageLoadedSuccessfully!==!1&&this.imageSrc},buttonAriaLabel(){if(this.clickable)return this.fullName||this.imageAlt||this.$attrs["aria-label"]}},watch:{fullName:{immediate:!0,handler(){this.formatInitials()}},size:{immediate:!0,handler(){this.formatInitials()}},group:{immediate:!0,handler(){this.formatInitials()}},imageSrc(t){this.imageLoadedSuccessfully=null,t&&(this.validateProps(),this.setImageListeners())}},mounted(){this.validateProps(),this.setImageListeners()},methods:{async setImageListeners(){await this.$nextTick();const t=this.$refs.avatarImage;t&&(t.addEventListener("load",()=>this._loadedImageEventHandler(t),{once:!0}),t.addEventListener("error",()=>this._erroredImageEventHandler(t),{once:!0}))},formatInitials(){const t=za(this.fullName);this.validatedSize==="xs"?this.formattedInitials="":this.validatedSize==="sm"?this.formattedInitials=t[0]:this.formattedInitials=t},getColor(){return this.color??i.getRandomElement(Mt,this.seed)},_loadedImageEventHandler(t){this.imageLoadedSuccessfully=!0,t.classList.remove("d-d-none")},_erroredImageEventHandler(t){this.imageLoadedSuccessfully=!1,t.classList.add("d-d-none")},validateProps(){if(this.imageSrc&&!(this.fullName||this.imageAlt))throw new Error("full-name or image-alt must be set if image-src is provided")},handleClick(t){this.clickable&&this.$emit("click",t)}}};var Ka=function(){var e=this,a=e._self._c;return a(e.clickable?"button":"div",{tag:"component",class:e.avatarClasses,attrs:{id:e.id,"data-qa":"dt-avatar","aria-label":e.buttonAriaLabel},on:{click:e.handleClick}},[a("div",{ref:"canvas",class:[e.canvasClass,"d-avatar__canvas",{"d-avatar--image-loaded":e.imageLoadedSuccessfully}]},[e.showImage?a("img",{ref:"avatarImage",staticClass:"d-avatar__image",attrs:{"data-qa":"dt-avatar-image",src:e.imageSrc,alt:e.imageAlt||e.fullName}}):e.iconName?a("dt-icon",{class:[e.iconClass,e.AVATAR_KIND_MODIFIERS.icon],attrs:{name:e.iconName,size:e.iconSize||e.AVATAR_ICON_SIZES[e.size],"data-qa":"dt-avatar-icon"}}):a("span",{class:[e.AVATAR_KIND_MODIFIERS.initials]},[e._v(" "+e._s(e.formattedInitials)+" ")])],1),e.overlayIcon||e.overlayText?a("div",{class:e.overlayClasses},[e.overlayIcon?a("dt-icon",{staticClass:"d-avatar__overlay-icon",attrs:{name:e.overlayIcon}}):e.overlayText?a("p",{staticClass:"d-avatar__overlay-text"},[e._v(" "+e._s(e.overlayText)+" ")]):e._e()],1):e._e(),e.showGroup?a("span",{staticClass:"d-avatar__count",attrs:{"data-qa":"dt-avatar-count"}},[e._v(e._s(e.formattedGroup))]):e._e(),e.presence&&!e.showGroup?a("dt-presence",e._b({class:["d-avatar__presence",e.AVATAR_PRESENCE_SIZE_MODIFIERS[e.size]],attrs:{presence:e.presence,"data-qa":"dt-presence"}},"dt-presence",e.presenceProps,!1)):e._e()],1)},ja=[],Ya=i.normalizeComponent(Ua,Ka,ja,!1,null,null,null,null);const te=Ya.exports,Ve={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"},He={label:"",count:"d-badge--count"},ze={"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"},Ga={name:"DtBadge",components:{DtIcon:l.DtIcon},props:{iconLeft:{type:String,default:""},iconRight:{type:String,default:""},text:{type:String,default:""},kind:{type:String,default:"label",validator:t=>Object.keys(He).includes(t)},type:{type:String,default:"default",validator:t=>Object.keys(Ve).includes(t)},decoration:{type:String,default:void 0,validator:t=>Object.keys(ze).includes(t)},labelClass:{type:[String,Array,Object],default:""}},data(){return{BADGE_TYPE_MODIFIERS:Ve,BADGE_KIND_MODIFIERS:He,BADGE_DECORATION_MODIFIERS:ze}},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 Za=function(){var e=this,a=e._self._c;return a("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?a("span",{staticClass:"d-badge__decorative"}):e._e(),e.iconLeft||e.type==="ai"?a("span",{staticClass:"d-badge__icon-left"},[a("dt-icon",{attrs:{name:e.iconLeft||"dialpad-ai",size:"200"}})],1):e._e(),a("span",{class:["d-badge__label",e.labelClass]},[e._t("default",function(){return[e._v(" "+e._s(e.text)+" ")]})],2),e.iconRight?a("span",{staticClass:"d-badge__icon-right"},[a("dt-icon",{attrs:{name:e.iconRight,size:"200"}})],1):e._e()])},Xa=[],Qa=i.normalizeComponent(Ga,Za,Xa,!1,null,null,null,null);const be=Qa.exports,U=["base","error","info","success","warning"],Nt=["alert","alertdialog","status"],Ja=new Map([["info","info"],["success","check-circle"],["warning","alert-triangle"],["error","alert-circle"],["base","bell"]]),en={name:"DtNoticeIcon",components:{DtIcon:l.DtIcon},props:{kind:{type:String,default:"base",validate(t){return U.includes(t)}}},computed:{defaultIcon(){return Ja.get(this.kind)}}};var tn=function(){var e=this,a=e._self._c;return e.defaultIcon||e.$slots.default?a("div",{staticClass:"d-notice__icon",attrs:{"aria-hidden":"true"}},[e._t("default",function(){return[a("dt-icon",{attrs:{name:e.defaultIcon,size:"400"}})]})],2):e._e()},an=[],nn=i.normalizeComponent(en,tn,an,!1,null,null,null,null);const ye=nn.exports,rn={name:"DtNoticeContent",props:{title:{type:String,default:""},titleId:{type:String,default:void 0},contentId:{type:String,default:void 0}}};var sn=function(){var e=this,a=e._self._c;return a("div",{staticClass:"d-notice__content",attrs:{"data-qa":"notice-content"}},[e.title||e.$slots.titleOverride?a("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(),a("p",{staticClass:"d-notice__message",attrs:{id:e.contentId,"data-qa":"notice-content-message"}},[e._t("default")],2)])},on=[],ln=i.normalizeComponent(rn,sn,on,!1,null,null,null,null);const Se=ln.exports,dn={name:"DtLink",props:{kind:{type:String,default:"",validator(t){return l.LINK_VARIANTS.includes(t)}}},emits:["click","focusin","focusout"],data(){return{LINK_KIND_MODIFIERS:l.LINK_KIND_MODIFIERS}}};var cn=function(){var e=this,a=e._self._c;return a("a",e._g({class:["d-link",e.LINK_KIND_MODIFIERS[e.kind]],attrs:{"data-qa":"dt-link",href:"href"in e.$attrs?e.$attrs.href:"javascript:void(0)"}},e.$listeners),[e._t("default")],2)},un=[],pn=i.normalizeComponent(dn,cn,un,!1,null,null,null,null);const Pt=pn.exports,D={props:{visuallyHiddenClose:{type:Boolean,default:!1},visuallyHiddenCloseLabel:{type:String,default:null}},watch:{$props:{immediate:!0,deep:!0,handler(){this.validateVisuallyHiddenCloseProps()}}},computed:{showVisuallyHiddenClose(){return this.visuallyHiddenClose&&this.visuallyHiddenCloseLabel!=null}},methods:{validateVisuallyHiddenCloseProps(){this.visuallyHiddenClose&&!this.visuallyHiddenCloseLabel&&console.error(`If visuallyHiddenClose prop is true, the component includes
2
+ a visually hidden close button and you must set the visuallyHiddenCloseLabel prop.`)}}},fn={name:"SrOnlyCloseButton",components:{DtIcon:l.DtIcon,DtButton:l.DtButton},props:{visuallyHiddenCloseLabel:{type:String,default:null}},emits:["close"],methods:{close(){this.$emit("close")}}};var hn=function(){var e=this,a=e._self._c;return a("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(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"space",32,n.key,[" ","Spacebar"])?null:(n.preventDefault(),n.stopPropagation(),e.close.apply(null,arguments))}}},[a("dt-icon",{attrs:{name:"close"}})],1)},mn=[],_n=i.normalizeComponent(fn,hn,mn,!1,null,null,null,null);const Ce=_n.exports,gn={name:"DtNoticeAction",components:{DtIcon:l.DtIcon,DtButton:l.DtButton,SrOnlyCloseButton:Ce},mixins:[D],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 vn=function(){var e=this,a=e._self._c;return a("div",{staticClass:"d-notice__actions",attrs:{"data-qa":"notice-content-actions"}},[e._t("default"),e.hideClose?e._e():a("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[a("dt-icon",{attrs:{name:"close",size:"200"}})]},proxy:!0}],null,!1,1154370889)},"dt-button",e.closeButtonProps,!1),e.noticeActionListeners)),e.showVisuallyHiddenClose?a("sr-only-close-button",{attrs:{"visually-hidden-close-label":e.visuallyHiddenCloseLabel},on:{close:e.close}}):e._e()],2)},bn=[],yn=i.normalizeComponent(gn,vn,bn,!1,null,null,null,null);const Ie=yn.exports,Sn={name:"DtNotice",components:{DtNoticeIcon:ye,DtNoticeContent:Se,DtNoticeAction:Ie},mixins:[D],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 Nt.includes(t)}},important:{type:Boolean,default:!1},kind:{type:String,default:"base",validate(t){return U.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 Cn=function(){var e=this,a=e._self._c;return a("aside",{class:e.noticeClass,attrs:{"data-qa":"notice"}},[a("dt-notice-icon",{attrs:{kind:e.kind}},[e._t("icon")],2),a("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),a("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)},In=[],wn=i.normalizeComponent(Sn,Cn,In,!1,null,null,null,null);const En=wn.exports,Bt=':not(:disabled):not([aria-disabled="true"]):not([role="presentation"])',Dn=`${Bt}:not([tabindex="-1"])`,On="button,[href],input,select,textarea,details,[tabindex]",K={methods:{async getFirstFocusableElement(t){await this.$nextTick();const e=this._getFocusableElements(t,!0);return this._getFirstFocusElement(e)},async focusFirstElement(t=this.$el){const e=await this.getFirstFocusableElement(t);e==null||e.focus({preventScroll:!0})},async focusElementById(t){var a;await this.$nextTick();const e=(a=this.$el)==null?void 0:a.querySelector(t);if(e){e.focus();return}console.warn('Could not find the element specified in dt-modal prop "initialFocusElement". Defaulting to focusing the first element.'),await this.focusFirstElement()},_getFirstFocusElement(t){if(!t.length)return;let e=t[0];return e.matches('[type="radio"]:not(:checked)')&&(e=t.find(a=>a.checked&&a.name===e.name)||e),e},_getFocusableElements(t=this.$el,e=!1){return t?[...t.querySelectorAll(On)].filter(n=>{const r=window.getComputedStyle(n);return r.getPropertyValue("display")!=="none"&&r.getPropertyValue("visibility")!=="hidden"&&n.matches(e?Bt:Dn)}):[]},focusTrappedTabPress(t,e){if(!(t.key==="Tab"))return;const n=this._getFocusableElements(e);if(!n.length){t.preventDefault();return}const r=this._getFirstFocusElement(n),s=n[n.length-1];t.shiftKey?document.activeElement===r&&(s.focus(),t.preventDefault()):document.activeElement===s&&(r.focus(),t.preventDefault())}}},Tn={name:"DtBanner",components:{DtNoticeIcon:ye,DtNoticeContent:Se,DtNoticeAction:Ie},mixins:[K,D],props:{titleId:{type:String,default(){return i.utils.getUniqueString()}},contentId:{type:String,default(){return i.utils.getUniqueString()}},title:{type:String,default:""},important:{type:Boolean,default:!1},pinned:{type:Boolean,default:!1},kind:{type:String,default:"base",validate(t){return U.includes(t)}},closeButtonProps:{type:Object,default:()=>({})},hideClose:{type:Boolean,default:!1},hideIcon:{type:Boolean,default:!1},dialogClass:{type:String,default:""},backgroundImage:{type:String,default:""},backgroundSize:{type:String,default:"cover"}},emits:["close"],computed:{role(){return this.important?"alertdialog":"status"},bannerClass(){return["d-banner",{error:"d-banner--error",info:"d-banner--info",success:"d-banner--success",warning:"d-banner--warning",base:"d-banner--base"}[this.kind],{"d-banner--important":this.important,"d-banner--pinned":this.pinned}]},bannerBackgroundImage(){return this.backgroundImage===""?null:`background-image: url(${this.backgroundImage});
3
+ background-size: ${this.backgroundSize};`}},mounted(){this.important&&this.focusFirstElement()},methods:{trapFocus(t){this.important&&this.focusTrappedTabPress(t)}}};var kn=function(){var e=this,a=e._self._c;return a("aside",{class:e.bannerClass,style:e.bannerBackgroundImage,on:{keydown:function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"tab",9,n.key,"Tab")?null:e.trapFocus.apply(null,arguments)}}},[a("div",{staticClass:"d-banner__dialog",class:e.dialogClass,attrs:{role:e.role,"aria-labelledby":e.titleId,"aria-describedby":e.contentId}},[e.hideIcon?e._e():a("dt-notice-icon",e._g({attrs:{kind:e.kind}},e.$listeners),[e._t("icon")],2),a("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),a("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)])},Ln=[],xn=i.normalizeComponent(Tn,kn,Ln,!1,null,null,null,null);const An=xn.exports,Ft="d-breadcrumbs__item--selected",qt="d-breadcrumbs--inverted",$n={name:"DtBreadcrumbItem",components:{DtLink:Pt},inheritAttrs:!1,props:{inverted:{type:Boolean,default:!1},selected:{type:Boolean,default:!1},label:{type:String,default:""}},data(){return{BREADCRUMB_ITEM_SELECTED_MODIFIER:Ft}},computed:{linkKind(){return this.inverted?l.INVERTED:l.MUTED},ariaCurrent(){return this.selected?"location":void 0}}};var Rn=function(){var e=this,a=e._self._c;return a("li",{class:["d-breadcrumbs__item",{[e.BREADCRUMB_ITEM_SELECTED_MODIFIER]:e.selected}],attrs:{"data-qa":"dt-breadcrumb-item"}},[a("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)},Mn=[],Nn=i.normalizeComponent($n,Rn,Mn,!1,null,null,null,null);const Vt=Nn.exports,Pn={name:"DtBreadcrumbs",components:{DtBreadcrumbItem:Vt},props:{breadcrumbs:{type:Array,default:()=>[],validate(t){return t.every(({href:e,label:a})=>e!==void 0&&a!==void 0)}},inverted:{type:Boolean,default:!1},ariaLabel:{type:String,default:"breadcrumb"}},data(){return{BREADCRUMBS_INVERTED_MODIFIER:qt}},methods:{getBreadcrumbItemKey(t){return`breadcrumbs-item-${t}-${i.utils.getUniqueString()}`}}};var Bn=function(){var e=this,a=e._self._c;return a("nav",{class:["d-breadcrumbs",{[e.BREADCRUMBS_INVERTED_MODIFIER]:e.inverted}],attrs:{"aria-label":e.ariaLabel,"data-qa":"dt-breadcrumbs"}},[a("ol",[e._t("default",function(){return e._l(e.breadcrumbs,function(n,r){return a("dt-breadcrumb-item",e._g(e._b({key:e.getBreadcrumbItemKey(r),attrs:{inverted:e.inverted}},"dt-breadcrumb-item",n,!1),e.$listeners))})})],2)])},Fn=[],qn=i.normalizeComponent(Pn,Bn,Fn,!1,null,null,null,null);const Vn=qn.exports,We={start:"d-btn-group--start",end:"d-btn-group--end","space-between":"d-btn-group--space-between"},Hn={name:"DtButtonGroup",props:{alignment:{type:String,default:"start",validator:t=>Object.keys(We).includes(t)}},data(){return{BUTTON_GROUP_ALIGNMENT:We}}};var zn=function(){var e=this,a=e._self._c;return a("div",{class:["d-btn-group",e.BUTTON_GROUP_ALIGNMENT[e.alignment]],attrs:{role:"group"}},[e._t("default")],2)},Wn=[],Un=i.normalizeComponent(Hn,zn,Wn,!1,null,null,null,null);const Kn=Un.exports,jn={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 Yn=function(){var e=this,a=e._self._c;return a("div",{class:["d-card",e.containerClass],attrs:{"data-qa":"dt-card"}},[e.$slots.header?a("div",{class:["d-card__header",e.headerClass]},[e._t("header")],2):e._e(),a("div",{class:["d-card__content",e.contentClass],style:{"max-height":e.maxHeight}},[e._t("content")],2),e.$slots.footer?a("div",{class:["d-card__footer",e.footerClass]},[e._t("footer")],2):e._e()])},Gn=[],Zn=i.normalizeComponent(jn,Yn,Gn,!1,null,null,null,null);const Ht=Zn.exports,Xn={name:"DtCodeblock",props:{text:{type:String,required:!0}}};var Qn=function(){var e=this,a=e._self._c;return a("pre",[e._v(" "),a("code",{staticClass:"d-codeblock"},[e._v(e._s(e.text))]),e._v(`
4
+ `)])},Jn=[],er=i.normalizeComponent(Xn,Qn,Jn,!1,null,null,null,null);const tr=er.exports,ar={methods:{scrollElementIntoViewIfNeeded(t,e,a,n){t.scrollIntoViewIfNeeded?this.scrollIntoViewIfNeeded(t,e,a,n):this.scrollIntoView(t,"bottom",!1,a,n)},scrollElementIntoView(t,e,a,n){if(e==="center"){this.scrollIntoView(t,"center",!1,a,n);return}e===!1?this.scrollIntoView(t,"bottom",!1,a,n):this.scrollIntoView(t,"top",!1,a,n)},scrollIntoViewIfNeeded(t,e,a,n){const r=e?"center":void 0;this.scrollIntoView(t,r,!0,a,n)},scrollIntoView(t,e,a,n,r){if(!t||!t.parentElement)return;const s=t.offsetTop,o=r||t.parentElement,c=this._getScrollBounds(o),u=c.bottom-c.top,f=this._getElementHeight(t),g=s+f;let d=-1;switch(e){case"top":d=s;break;case"center":d=s+(f-u)/2;break;case"bottom":d=d=g-u;break;default:s-c.top<=u/2?d=s:d=g-u;break}this._setScrollTop(o,d,c,s,g,a,n)},_setScrollTop(t,e,a,n,r,s,o){a=a||this._getScrollBounds(t);const c=a.bottom-a.top;if(s&&this._inScrollBounds(n,r,a))if(n<a.top)e=n;else if(r>a.bottom)e=r-c;else return;o?t.scrollTo({top:e,behavior:o}):t.scrollTop=e},_getElementHeight(t){return t.getBoundingClientRect().height},_getScrollBounds(t){const e=this._getElementHeight(t),a=t.scrollTop;return{top:a,bottom:a+e}},_inScrollBounds(t,e,a){const n=e-t;return e<=a.bottom+3*n/4&&t>=a.top-n/4}}},nr="listElementKey is required or the referenced element doesn't exist. Received listElement: ",it=({listItemRole:t="option",indexKey:e="highlightIndex",idKey:a="highlightId",listElementKey:n="listRef",activeItemKey:r="",openMethod:s=null,afterHighlightMethod:o=null,beginningOfListMethod:c=null,endOfListMethod:u=null,scrollToOnHighlight:f=!0,focusOnKeyboardNavigation:g=!1}={})=>({mixins:[ar],data(){return{[e]:-1,[a]:"",scrollToOnHighlight:f,focusOnKeyboardNavigation:g}},provide(){return{highlightId:()=>this[a]}},methods:{_getListElement(){var d;return((d=this[n]())==null?void 0:d.$el)||this[n]()},_itemsLength(){const d=this._getListItemNodes();return d===null?0:d.length},_getListItemNodes(){const d=this._getListElement();return d?Array.from(d.querySelectorAll(`[role="${t}"], #sr-only-close-button`)):(console.error(nr,d),null)},onUpKey(){s&&this[s](!0),this[e]>0?this.setHighlightIndex(this[e]-1):c&&this[c](),this.scrollActiveItemIntoViewIfNeeded(),this.focusActiveItemIfNeeded()},onDownKey(){s&&this[s](!0),this[e]<this._itemsLength()-1?this.setHighlightIndex(this[e]+1):u&&this[u](),this.scrollActiveItemIntoViewIfNeeded(),this.focusActiveItemIfNeeded()},onHomeKey(){this.jumpToBeginning(),this.scrollActiveItemIntoViewIfNeeded(),this.focusActiveItemIfNeeded()},onEndKey(){this.jumpToEnd(),this.scrollActiveItemIntoViewIfNeeded(),this.focusActiveItemIfNeeded()},onNavigationKey(d){const _=this._getListItemNodes(),m=_.filter(C=>C.textContent.trim().toLowerCase().startsWith(d.toLowerCase()));if(m.length<=0)return;const v=m.findIndex(C=>this[e]===_.indexOf(C)),I=_.indexOf(v<m.length-1?m[v+1]:m[0]);this.setHighlightIndex(I),this.scrollActiveItemIntoViewIfNeeded(),this.focusActiveItemIfNeeded()},isValidLetter(d){return d.length>1?!1:d>="a"&&d<="z"||d>="A"&&d<="Z"},jumpToBeginning(){this.setHighlightIndex(0)},jumpToEnd(){this.setHighlightIndex(this._itemsLength()-1)},setHighlightIndex(d){this[e]=d,this[a]=this._getItemId(d),this._itemsLength()&&o&&this[o](d)},setHighlightId(d){this[a]=d,this[e]=this._getItemIndex(d),this._itemsLength()&&o&&this[o](this._getItemIndex(d))},_getItemIndex(d){const _=this._getListElement();return _?Array.from(_.querySelectorAll(`[role="${t}"], #sr-only-close-button`)).indexOf(_.querySelector(`#${d}`)):void 0},_getItemId(d){var m;const _=this._getListElement();if(_)return(m=_.querySelectorAll(`[role="${t}"], #sr-only-close-button`)[d])==null?void 0:m.id},scrollActiveItemIntoViewIfNeeded(){if(!this.scrollToOnHighlight)return;const d=this[r];if(d){const _=this._getListElement();this.scrollElementIntoViewIfNeeded(d,null,null,_)}},focusActiveItemIfNeeded(){if(!this.focusOnKeyboardNavigation)return;const d=this[r];d&&d.focus()}}}),de={DEFAULT:"default",CUSTOM:"custom"},L={ARROW_KEYS:"arrow-keys",TAB:"tab",NONE:"none"},rr={name:"DtItemLayout",props:{as:{type:String,default:"div"}}};var sr=function(){var e=this,a=e._self._c;return a(e.as,{tag:"component",staticClass:"dt-item-layout"},[e.$slots.left?a("section",{staticClass:"dt-item-layout--left",attrs:{"data-qa":"dt-item-layout-left-wrapper"}},[e._t("left")],2):e._e(),a("section",{staticClass:"dt-item-layout--content",attrs:{"data-qa":"dt-item-layout-content-wrapper"}},[e.$slots.default?a("div",{staticClass:"dt-item-layout--title",attrs:{"data-qa":"dt-item-layout-title-wrapper"}},[e._t("default")],2):e._e(),e.$slots.subtitle?a("div",{class:["dt-item-layout--subtitle",{"dt-item-layout--subtitle--with-title":e.$slots.default}],attrs:{"data-qa":"dt-item-layout-subtitle-wrapper"}},[e._t("subtitle")],2):e._e(),e.$slots.bottom?a("div",{staticClass:"dt-item-layout--bottom",attrs:{"data-qa":"dt-item-layout-bottom-wrapper"}},[e._t("bottom")],2):e._e()]),e.$slots.right?a("section",{staticClass:"dt-item-layout--right",attrs:{"data-qa":"dt-item-layout-right-wrapper"}},[e._t("right")],2):e._e(),e.$slots.selected?a("section",{staticClass:"dt-item-layout--selected",attrs:{"data-qa":"dt-item-layout-selected-wrapper"}},[e._t("selected")],2):e._e()])},ir=[],or=i.normalizeComponent(rr,sr,ir,!1,null,"411cb81e",null,null);const me=or.exports,lr={name:"DtListItem",components:{DtItemLayout:me,DtIcon:l.DtIcon},inject:{highlightId:{default:null}},props:{id:{type:String,default(){return i.utils.getUniqueString()}},role:{type:String,default:"listitem"},elementType:{type:String,default:"li"},type:{type:String,default:de.DEFAULT,validator:t=>Object.values(de).includes(t)},navigationType:{type:String,default:L.NONE,validator:t=>Object.values(L).includes(t)},selected:{type:Boolean,default:!1}},emits:["click","keydown","mousemove","mouseleave"],data(){return{injected:!1,mouseHighlighted:!1}},computed:{listItemType(){switch(this.type){case de.DEFAULT:return me;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===L.TAB},isHoverable(){return this.navigationType!==L.NONE}},methods:{onClick(t){this.$emit("click",t)},onMouseHover(){this.mouseHighlighted=!0},onMouseLeave(){this.mouseHighlighted=!1}}};var dr=function(){var e=this,a=e._self._c;return a(e.elementType,e._g({tag:"component",class:["dt-list-item",{"dt-list-item--focusable":e.isFocusable,"dt-list-item--highlighted":e.isHighlighted,"dt-list-item--static":!e.isHoverable}],attrs:{id:e.id,tabindex:e.isFocusable?0:-1,role:e.role,"aria-selected":e.isHighlighted}},e.listItemListeners),[e.listItemType?a(e.listItemType,{tag:"component",scopedSlots:e._u([e._l(e.$slots,function(n,r){return{key:r,fn:function(){return[e._t(r)]},proxy:!0}}),e.selected?{key:"selected",fn:function(){return[a("dt-icon",{staticClass:"dt-list-item--selected-icon",attrs:{name:"check",size:"400"}})]},proxy:!0}:null],null,!0)}):e._t("default")],2)},cr=[],ur=i.normalizeComponent(lr,dr,cr,!1,null,null,null,null);const ae=ur.exports,pr={name:"ComboboxLoadingList",components:{DtListItem:ae,DtSkeleton:l.DtSkeleton}};var fr=function(){var e=this,a=e._self._c;return a("ol",{staticClass:"d-combobox__loading-list",attrs:{"aria-busy":"true"}},e._l(7,function(n){return a("dt-list-item",{key:n,attrs:{role:"option","navigation-type":"none"}},[a("dt-skeleton",{attrs:{"text-option":{type:"body"},offset:0}})],1)}),1)},hr=[],mr=i.normalizeComponent(pr,fr,hr,!1,null,null,null,null);const zt=mr.exports,_r={name:"ComboboxEmptyList",components:{DtListItem:ae},props:{message:{type:String,required:!0},itemClass:{type:[String,Object,Array],default:""}}};var gr=function(){var e=this,a=e._self._c;return a("ol",{staticClass:"d-combobox__empty-list",attrs:{"data-qa":"dt-combobox-empty-list"}},[e._t("default",function(){return[a("dt-list-item",{class:["dt-empty-list-item",e.itemClass],attrs:{role:"option","navigation-type":"none",type:"custom"}},[a("span",[e._v(e._s(e.message))])])]})],2)},vr=[],br=i.normalizeComponent(_r,gr,vr,!1,null,null,null,null);const Wt=br.exports,ot={EXTRA_SMALL:"xs",SMALL:"sm",DEFAULT:"md",LARGE:"lg",EXTRA_LARGE:"xl"},yr={name:"DtCombobox",components:{ComboboxLoadingList:zt,ComboboxEmptyList:Wt},mixins:[it({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(ot).includes(t)},description:{type:String,default:""},listId:{type:String,default(){return i.getUniqueString()}},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 a;this.outsideRenderedListRef=e,(a=this.outsideRenderedListRef)==null||a.addEventListener("mousemove",this.onMouseHighlight),this.$emit("opened",t),t&&this.setInitialHighlightIndex()},onKeyValidation(t,e){!this.showList||!this.getListElement()||this[e](t)},setInitialHighlightIndex(){this.showList&&this.$nextTick(()=>{this.setHighlightIndex(this.loading?-1:0)})},validateEmptyListProps(){this.$slots.emptyListItem||(this.emptyList&&!this.emptyStateMessage||!this.emptyList&&this.emptyStateMessage)&&console.error(`Invalid props: you must pass both props emptyList and emptyStateMessage to show the
5
+ empty message.`)}}};var Sr=function(){var e=this,a=e._self._c;return a("div",{on:{keydown:[function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"esc",27,n.key,["Esc","Escape"])?null:(n.stopPropagation(),e.onKeyValidation(n,"onEscapeKey"))},function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"enter",13,n.key,"Enter")||n.ctrlKey||n.shiftKey||n.altKey||n.metaKey?null:e.onKeyValidation(n,"onEnterKey")},function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"up",38,n.key,["Up","ArrowUp"])?null:(n.stopPropagation(),n.preventDefault(),e.onKeyValidation(n,"onUpKey"))},function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"down",40,n.key,["Down","ArrowDown"])?null:(n.stopPropagation(),n.preventDefault(),e.onKeyValidation(n,"onDownKey"))},function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"home",void 0,n.key,void 0)?null:(n.stopPropagation(),n.preventDefault(),e.onKeyValidation(n,"onHomeKey"))},function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"end",void 0,n.key,void 0)?null:(n.stopPropagation(),n.preventDefault(),e.onKeyValidation(n,"onEndKey"))}]}},[a("div",{attrs:{"data-qa":"dt-combobox-input-wrapper"}},[e._t("input",null,{inputProps:e.inputProps})],2),e.showList?a("div",{ref:"listWrapper",attrs:{"data-qa":"dt-combobox-list-wrapper"},on:{mouseleave:e.clearHighlightIndex,focusout:e.clearHighlightIndex,"!mousemove":function(n){return e.onMouseHighlight.apply(null,arguments)}}},[e.loading&&!e.listRenderedOutside?a("combobox-loading-list",e._b({},"combobox-loading-list",e.listProps,!1)):e.emptyList&&(e.emptyStateMessage||e.$slots.emptyListItem)&&!e.listRenderedOutside?a("combobox-empty-list",e._b({attrs:{message:e.emptyStateMessage,"item-class":e.emptyStateClass}},"combobox-empty-list",e.listProps,!1),[e._t("emptyListItem")],2):e._t("list",null,{listProps:e.listProps,opened:e.onOpen,clearHighlightIndex:e.clearHighlightIndex})],2):e._e()])},Cr=[],Ir=i.normalizeComponent(yr,Sr,Cr,!1,null,null,null,null);const Ut=Ir.exports,wr={name:"DtCollapsibleLazyShow",props:{show:{type:Boolean,default:null},appear:{type:Boolean,default:!1},elementType:{type:String,default:"div"}},data(){return{initialized:!!this.show}},computed:{isCSSEnabled(){return process.env.NODE_ENV!=="test"}},watch:{show:function(t){!t||this.initialized||(this.initialized=!0)}},methods:{beforeEnter(t){requestAnimationFrame(()=>{t.style.height||(t.style.height="0px")})},enter(t){requestAnimationFrame(()=>{requestAnimationFrame(()=>{t.style.height=`${t.scrollHeight}px`})})},afterEnter(t){t.style.height=null},beforeLeave(t){requestAnimationFrame(()=>{t.style.height||(t.style.height=`${t.offsetHeight}px`)})},leave(t){requestAnimationFrame(()=>{requestAnimationFrame(()=>{t.style.height="0px"})})},afterLeave(t){t.style.height=null}}};var Er=function(){var e=this,a=e._self._c;return a("transition",e._g({attrs:{appear:e.appear,"enter-active-class":"enter-active","leave-active-class":"leave-active",css:e.isCSSEnabled},on:{"before-enter":e.beforeEnter,enter:e.enter,"after-enter":e.afterEnter,"before-leave":e.beforeLeave,leave:e.leave,"after-leave":e.afterLeave}},e.$listeners),[a(e.elementType,e._g({directives:[{name:"show",rawName:"v-show",value:e.show,expression:"show"}],tag:"component"},e.$listeners),[e.initialized?e._t("default"):e._e()],2)],1)},Dr=[],Or=i.normalizeComponent(wr,Er,Dr,!1,null,null,null,null);const Tr=Or.exports,kr={name:"DtCollapsible",components:{DtButton:l.DtButton,DtCollapsibleLazyShow:Tr,DtLazyShow:i.DtLazyShow,DtIcon:l.DtIcon},props:{anchorText:{type:String,default:null},open:{type:Boolean,default:null},id:{type:String,default(){return i.getUniqueString()}},elementType:{type:String,default:"div"},contentElementType:{type:String,default:"div"},anchorClass:{type:[String,Array,Object],default:null},contentClass:{type:[String,Array,Object],default:null},maxWidth:{type:String,default:null},maxHeight:{type:String,default:null},ariaLabel:{type:String,default:null},ariaLabelledBy:{type:String,default:null}},emits:["update:open","opened"],data(){return{isOpen:!0}},computed:{labelledBy(){return this.ariaLabelledBy||!this.ariaLabel&&i.getUniqueString("DtCollapsible__anchor")}},watch:{open:{handler:function(t){t!==null&&(this.isOpen=t)},immediate:!0}},mounted(){this.validateProperAnchor()},methods:{onLeaveTransitionComplete(){this.$emit("opened",!1),this.open!==null&&this.$emit("update:open",!1)},onEnterTransitionComplete(){this.$emit("opened",!0,this.$refs.content),this.open!==null&&this.$emit("update:open",!0)},defaultToggleOpen(){this.open===null&&this.toggleOpen()},toggleOpen(){this.isOpen=!this.isOpen},validateProperAnchor(){!this.anchorText&&!this.$scopedSlots.anchor&&console.error("anchor text and anchor slot content cannot both be falsy")}}};var Lr=function(){var e=this,a=e._self._c;return a(e.elementType,e._g({ref:"collapsible",tag:"component"},e.$listeners),[a("div",{ref:"anchor",class:e.anchorClass,attrs:{id:!e.ariaLabelledBy&&e.labelledBy}},[e._t("anchor",function(){return[a("dt-button",{style:{width:e.maxWidth},attrs:{importance:"clear",kind:"muted","aria-controls":e.id,"aria-expanded":`${e.isOpen}`},on:{click:e.defaultToggleOpen}},[a("dt-icon",{staticClass:"d-collapsible__icon",attrs:{name:e.isOpen?"chevron-down":"chevron-right",size:"300"}}),a("span",{staticClass:"d-collapsible__anchor-text",attrs:{title:e.anchorText}},[e._v(" "+e._s(e.anchorText)+" ")])],1)]},{attrs:{"aria-controls":e.id,"aria-expanded":e.isOpen.toString(),role:"button"}})],2),a("dt-collapsible-lazy-show",e._g({ref:"contentWrapper",class:e.contentClass,style:{"max-height":e.maxHeight,"max-width":e.maxWidth},attrs:{id:e.id,"aria-hidden":`${!e.isOpen}`,"aria-labelledby":e.labelledBy,"aria-label":e.ariaLabel,show:e.isOpen,"element-type":e.contentElementType,"data-qa":"dt-collapsible--content",tabindex:"-1",appear:""},on:{"after-leave":e.onLeaveTransitionComplete,"after-enter":e.onEnterTransitionComplete}},e.$listeners),[e._t("content")],2)],1)},xr=[],Ar=i.normalizeComponent(kr,Lr,xr,!1,null,null,null,null);const Kt=Ar.exports,A={default:"column",column:"column",row:"row","row-reverse":"row-reverse","column-reverse":"column-reverse"},lt=["sm","md","lg","xl"],ne=["0","100","200","300","400","500","600"],jt=["row","column"],$r=t=>t.term?typeof t.term=="string":!1,Rr=t=>t.description?typeof t.description=="string":!1,Mr=t=>Array.isArray(t)?t.every(e=>!(typeof e!="object"||!$r(e)||!Rr(e))):!1,Nr={name:"DtDescriptionList",props:{direction:{type:String,default:"row",validator:t=>jt.includes(t)},items:{type:Array,default:()=>[],validator:t=>Mr(t),required:!0},gap:{type:String,default:"400",validator:t=>ne.includes(t)},termClass:{type:[String,Array,Object],default:""},descriptionClass:{type:[String,Array,Object],default:""}},computed:{dtClass(){return["dt-description-list__term",this.termClass]},ddClass(){return["dt-description-list__description",this.descriptionClass]},getDirectionClass(){return`dt-description-list--${this.direction}`},getGapClass(){return`dt-description-list--gap-${this.gap}`}}};var Pr=function(){var e=this,a=e._self._c;return a("dl",{class:["dt-description-list",e.getDirectionClass,e.getGapClass]},[e._l(e.items,function(n){return[a("dt",{key:`dt-${n.term}`,class:e.dtClass},[e._v(" "+e._s(n.term)+" ")]),a("dd",{key:`dd-${n.term}`,class:e.ddClass},[e._v(" "+e._s(n.description)+" ")])]})],2)},Br=[],Fr=i.normalizeComponent(Nr,Pr,Br,!1,null,null,null,null);const qr=Fr.exports,Ue={none:void 0,small:"d-p4",medium:"d-p8",large:"d-p16"},Yt={none:void 0,small:"d-pl4",medium:"d-pl8",large:"d-pl16"},Gt=["dialog","menu","listbox","tree","grid"],dt=["","anchor"],Zt=["none","dialog","first"],re=["parent","body"],Xt=[...i.TIPPY_STICKY_VALUES],Vr=[...i.BASE_TIPPY_DIRECTIONS];let Hr="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",zr=(t=21)=>{let e="",a=t;for(;a--;)e+=Hr[Math.random()*64|0];return e};function ce(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ce=function(e){return typeof e}:ce=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ce(t)}var Qt={selector:"vue-portal-target-".concat(zr())},Wr=function(e){return Qt.selector=e},Ne=typeof window<"u"&&(typeof document>"u"?"undefined":ce(document))!==void 0,Ur=x.extend({abstract:!0,name:"PortalOutlet",props:["nodes","tag"],data:function(e){return{updatedNodes:e.nodes}},render:function(e){var a=this.updatedNodes&&this.updatedNodes();return a?a.length===1&&!a[0].text?a:e(this.tag||"DIV",a):e()},destroyed:function(){var e=this.$el;e&&e.parentNode.removeChild(e)}}),ct=x.extend({name:"VueSimplePortal",props:{disabled:{type:Boolean},prepend:{type:Boolean},selector:{type:String,default:function(){return"#".concat(Qt.selector)}},tag:{type:String,default:"DIV"}},render:function(e){if(this.disabled){var a=this.$scopedSlots&&this.$scopedSlots.default();return a?a.length<2&&!a[0].text?a:e(this.tag,a):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(Ne)return document.querySelector(this.selector)},insertTargetEl:function(){if(Ne){var e=document.querySelector("body"),a=document.createElement(this.tag);a.id=this.selector.substring(1),e.appendChild(a)}},mount:function(){if(Ne){var e=this.getTargetEl(),a=document.createElement("DIV");this.prepend&&e.firstChild?e.insertBefore(a,e.firstChild):e.appendChild(a),this.container=new Ur({el:a,parent:this,propsData:{tag:this.tag,nodes:this.$scopedSlots.default}})}},unmount:function(){this.container&&(this.container.$destroy(),delete this.container)}}});function Kr(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};t.component(e.name||"portal",ct),e.defaultSelector&&Wr(e.defaultSelector)}typeof window<"u"&&window.Vue&&window.Vue===x&&x.use(Kr);const jr={name:"PopoverHeaderFooter",components:{DtButton:l.DtButton,DtIcon:l.DtIcon},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 Yr=function(){var e=this,a=e._self._c;return a("div",{class:{"d-popover__header":e.type==="header","d-popover__footer":e.type==="footer"},attrs:{"data-qa":"dt-popover-header-footer"}},[e.$slots.content?a("div",{class:[{"d-popover__header__content":e.type==="header","d-popover__footer__content":e.type==="footer"},e.contentClass],attrs:{"data-qa":"dt-popover-header-footer-content"}},[e._t("content")],2):e._e(),e.showCloseButton?a("dt-button",e._b({ref:"popover__close-button",class:{"d-popover__header__close-button":e.type==="header","d-popover__footer__close-button":e.type==="footer"},attrs:{"data-qa":"dt-popover-close",importance:"outlined",kind:"muted",circle:""},on:{click:function(n){return e.$emit("close")}},scopedSlots:e._u([{key:"icon",fn:function(){return[a("dt-icon",{attrs:{name:"close",size:"300"}})]},proxy:!0}],null,!1,2538694920)},"dt-button",e.closeButtonProps,!1)):e._e()],1)},Gr=[],Zr=i.normalizeComponent(jr,Yr,Gr,!1,null,null,null,null);const Xr=Zr.exports,Qr={name:"DtPopover",components:{SrOnlyCloseButton:Ce,DtLazyShow:i.DtLazyShow,PopoverHeaderFooter:Xr,Portal:ct},mixins:[K,D],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=>Gt.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(Ue).some(e=>e===t)},contentClass:{type:[String,Array,Object],default:""},contentWidth:{type:String,default:"",validator:t=>dt.includes(t)},contentTabindex:{type:Number||null,default:-1},externalAnchor:{type:String,default:""},id:{type:String,default(){return i.getUniqueString()}},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=>Xt.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=>Zt.includes(t)||t instanceof HTMLElement||t.startsWith("#")},openWithArrowKeys:{type:Boolean,default:!1},appendTo:{type:[HTMLElement,String],default:"body",validator:t=>re.includes(t)||t instanceof HTMLElement}},emits:["opened","update:open"],data(){return{POPOVER_PADDING_CLASSES:Ue,POPOVER_HEADER_FOOTER_PADDING_CLASSES:Yt,intersectionObserver:null,isOutsideViewport:!1,isOpen:!1,anchorEl:null,popoverContentEl:null}},computed:{popoverListeners(){return{...this.$listeners,keydown:t=>{this.onKeydown(t),this.$emit("keydown",t)},"after-leave":t=>{this.onLeaveTransitionComplete()},"after-enter":t=>{this.onEnterTransitionComplete()}}},calculatedMaxHeight(){return this.isOutsideViewport&&this.modal?"calc(100vh - var(--dt-space-300))":this.maxHeight},labelledBy(){return this.ariaLabelledby||!this.ariaLabel&&i.getUniqueString("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 n;const e=(n=t==null?void 0:t[0])==null?void 0:n.target;if(!e)return;const a=i.isOutOfViewPort(e);this.isOutsideViewport=a.bottom||a.top},popperOptions(){return i.getPopperOptions({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,a;this.openOnContext||(this.open??((e=this.anchorEl)!=null&&e.contains(t.target)&&!((a=this.anchorEl)!=null&&a.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,a;const t=(e=this.anchorEl)==null?void 0:e.closest("body, .tippy-box");t&&(((a=t.tagName)==null?void 0:a.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,a,n;const t=(a=(e=this.$refs.content)==null?void 0:e.$el)==null?void 0:a.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():(n=this.$refs.content)==null||n.$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 a,n;this._getFocusableElements(t,!0).length!==0?this.focusFirstElement(t):this.showCloseButton?(a=this.$refs.popover__header)==null||a.focusCloseButton():(n=this.$refs.content)==null||n.$el.focus()},initTippyInstance(){var t,e;this.tip=i.createTippy(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 Jr=function(){var e=this,a=e._self._c;return a("div",[e.modal&&e.isOpen?a("portal",[a("div",{staticClass:"d-modal--transparent",attrs:{"aria-hidden":e.modal&&e.isOpen?"false":"true"},on:{click:function(n){n.preventDefault(),n.stopPropagation()}}})]):e._e(),a(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),[a("div",{ref:"anchor",attrs:{id:!e.ariaLabelledby&&e.labelledBy,"data-qa":"dt-popover-anchor",tabindex:e.openOnContext?0:void 0},on:{"!click":function(n){return e.defaultToggleOpen.apply(null,arguments)},contextmenu:e.onContext,keydown:[function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"up",38,n.key,["Up","ArrowUp"])?null:(n.preventDefault(),e.onArrowKeyPress.apply(null,arguments))},function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"down",40,n.key,["Down","ArrowDown"])?null:(n.preventDefault(),e.onArrowKeyPress.apply(null,arguments))}],"!keydown":function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"escape",void 0,n.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),a("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?a("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(),a("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?a("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?a("sr-only-close-button",{attrs:{"visually-hidden-close-label":e.visuallyHiddenCloseLabel},on:{close:e.closePopover}}):e._e()],1)],1)],1)},es=[],ts=i.normalizeComponent(Qr,Jr,es,!1,null,null,null,null);const we=ts.exports,z={none:void 0,small:"d-py0",large:"d-py4"},as={name:"DtDropdown",components:{DtPopover:we,SrOnlyCloseButton:Ce},mixins:[it({indexKey:"highlightIndex",idKey:"highlightId",listElementKey:"getListElement",listItemRole:"menuitem",afterHighlightMethod:"afterHighlight",beginningOfListMethod:"beginningOfListMethod",endOfListMethod:"endOfListMethod",activeItemKey:"activeItemEl",focusOnKeyboardNavigation:!0}),D],props:{open:{type:Boolean,default:null},openOnContext:{type:Boolean,default:!1},padding:{type:String,default:"small",validator:t=>Object.keys(z).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 i.getUniqueString()}},navigationType:{type:String,default:L.ARROW_KEYS,validator:t=>Object.values(L).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=>re.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:L,DROPDOWN_PADDING_CLASSES:z,EVENT_KEYNAMES:i.EVENT_KEYNAMES,openedWithKeyboard:!1,isOpen:null}},computed:{dropdownListeners(){return{...this.$listeners,opened:t=>{this.updateInitialHighlightIndex(t)},keydown:t=>{switch(t.code){case i.EVENT_KEYNAMES.up:case i.EVENT_KEYNAMES.arrowup:this.onUpKeyPress(t),t.stopPropagation(),t.preventDefault();break;case i.EVENT_KEYNAMES.down:case i.EVENT_KEYNAMES.arrowdown:this.onDownKeyPress(t),t.stopPropagation(),t.preventDefault();break;case i.EVENT_KEYNAMES.space:case i.EVENT_KEYNAMES.spacebar:this.onSpaceKey();break;case i.EVENT_KEYNAMES.enter:this.onEnterKey();break;case i.EVENT_KEYNAMES.home:this.onHomeKeyPress(t),t.stopPropagation(),t.preventDefault();break;case i.EVENT_KEYNAMES.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-dropdown-list",z[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.isValidLetter(t.key)))return t.stopPropagation(),t.preventDefault(),this.onNavigationKey(t.key)}}};var ns=function(){var e=this,a=e._self._c;return a("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:n}){return[e._t("anchor",null,null,n)]}},{key:"content",fn:function({close:n}){return[a("ul",{ref:"listWrapper",class:e.listClasses,attrs:{id:e.listId,"data-qa":"dt-dropdown-list-wrapper"},on:{mouseleave:e.clearHighlightIndex,"!mousemove":function(r){return e.onMouseHighlight.apply(null,arguments)}}},[e._t("list",null,{close:n}),e.showVisuallyHiddenClose?a("sr-only-close-button",{attrs:{"visually-hidden-close-label":e.visuallyHiddenCloseLabel,tabindex:e.isArrowKeyNav?-1:0},on:{close:n}}):e._e()],2)]}}],null,!0)},e.dropdownListeners))},rs=[],ss=i.normalizeComponent(as,ns,rs,!1,null,null,null,null);const Jt=ss.exports,is={name:"DtDropdownSeparator"};var os=function(){var e=this,a=e._self._c;return a("li",{staticClass:"dt-list-separator",attrs:{"aria-hidden":"true"}})},ls=[],ds=i.normalizeComponent(is,os,ls,!1,null,null,null,null);const cs=ds.exports,us={name:"DtImageViewer",components:{Portal:ct,DtButton:l.DtButton,DtIcon:l.DtIcon},mixins:[K],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 i.EVENT_KEYNAMES.esc:case i.EVENT_KEYNAMES.escape:this.close();break;case i.EVENT_KEYNAMES.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 ps=function(){var e=this,a=e._self._c;return a("div",[a("dt-button",{staticClass:"d-image-viewer__preview-button",attrs:{"data-qa":"dt-image-viewer-preview","aria-label":e.ariaLabel,importance:"clear"},on:{click:e.openModal}},[a("img",{class:e.imageButtonClass,attrs:{src:e.imageSrc,alt:e.imageAlt}})]),e.isOpen?a("portal",[a("div",e._g({staticClass:"d-modal",attrs:{"aria-hidden":e.isOpen?"false":"true","data-qa":"dt-modal"},on:{mouseover:function(n){e.showCloseButton=!0},mouseleave:function(n){e.showCloseButton=!1},focusin:function(n){e.showCloseButton=!0},focusout:function(n){e.showCloseButton=!1}}},e.modalListeners),[a("div",{staticClass:"d-image-viewer__full",attrs:{"data-qa":"dt-image-viewer-full",role:"dialog","aria-modal":"true"}},[a("img",{staticClass:"d-image-viewer__full__image",attrs:{src:e.imageSrc,alt:e.imageAlt}})]),a("transition",{attrs:{name:"fade"}},[e.showCloseButton?a("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[a("dt-icon",{staticClass:"d-image-viewer__close-button",attrs:{name:"close",size:"400"}})]},proxy:!0}],null,!1,1620344283)}):e._e()],1)],1)]):e._e()],1)},fs=[],hs=i.normalizeComponent(us,ps,fs,!1,null,null,null,null);const ea=hs.exports,ta={components:{DtValidationMessages:l.DtValidationMessages},provide(){return{groupContext:this.provideObj,setGroupValue:this.setGroupValue}},props:{id:{type:String,default(){return i.getUniqueString()}},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=>l.validationMessageValidator(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=i.formatMessages(this.messages);return{provideObj:{name:this.name,disabled:this.disabled,validationState:i.getValidationState(t)}}},computed:{formattedMessages(){return i.formatMessages(this.messages)},validationState(){return i.getValidationState(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)}},ms={name:"DtInputGroup",components:{DtValidationMessages:l.DtValidationMessages},mixins:[ta],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 _s=function(){var e=this,a=e._self._c;return a("fieldset",{staticClass:"d-input-group__fieldset",attrs:{"data-qa":e.dataQaGroup}},[e.$slots.legend||e.legend?a("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"),a("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)},gs=[],vs=i.normalizeComponent(ms,_s,gs,!1,null,null,null,null);const ut=vs.exports,Ke={default:"",danger:"d-modal--danger"},je={default:"",full:"d-modal--full"},Ye={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"},bs={name:"DtModal",components:{DtLazyShow:i.DtLazyShow,DtButton:l.DtButton,DtIcon:l.DtIcon,SrOnlyCloseButton:Ce},mixins:[K,D],props:{closeButtonProps:{type:Object,required:!0,validator:t=>!!t.ariaLabel},copy:{type:String,default:""},describedById:{type:String,default:""},labelledById:{type:String,default:function(){return i.getUniqueString()}},show:{type:Boolean,default:!1},title:{type:String,default:""},bannerTitle:{type:String,default:""},kind:{type:String,default:"default",validator:t=>Object.keys(Ke).includes(t)},size:{type:String,default:"default",validator:t=>Object.keys(je).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 U.includes(t)}},bannerClass:{type:[String,Object,Array],default:""},hideClose:{type:Boolean,default:!1},closeOnClick:{type:Boolean,default:!0},fixedHeaderFooter:{type:Boolean,default:!0},initialFocusElement:{type:[String,HTMLElement],default:"first",validator:t=>t==="first"||t instanceof HTMLElement||t.startsWith("#")}},emits:["update:show"],data(){return{MODAL_KIND_MODIFIERS:Ke,MODAL_SIZE_MODIFIERS:je,MODAL_BANNER_KINDS:Ye,EVENT_KEYNAMES:i.EVENT_KEYNAMES}},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 i.EVENT_KEYNAMES.esc:case i.EVENT_KEYNAMES.escape:this.close();break;case i.EVENT_KEYNAMES.tab:this.trapFocus(t);break}this.$emit("keydown",t)},"after-enter":t=>{this.$emit("update:show",!0),t.target===t.currentTarget&&this.setFocusAfterTransition()}}},open(){return`${!this.show}`},hasFooterSlot(){return!!this.$slots.footer},bannerKindClass(){return Ye[this.bannerKind]}},watch:{show:{immediate:!0,handler(t){var e;t?this.previousActiveElement=document.activeElement:((e=this.previousActiveElement)==null||e.focus(),this.previousActiveElement=null)}},$props:{immediate:!0,deep:!0,handler(){this.validateProps()}}},methods:{close(){this.$emit("update:show",!1)},setFocusAfterTransition(){this.initialFocusElement==="first"?this.focusFirstElement():this.initialFocusElement.startsWith("#")?this.focusElementById(this.initialFocusElement):this.initialFocusElement instanceof HTMLElement&&this.initialFocusElement.focus()},trapFocus(t){this.show&&this.focusTrappedTabPress(t)},validateProps(){this.hideClose&&!this.visuallyHiddenClose&&console.error(`If hideClose prop is true, visuallyHiddenClose and visuallyHiddenCloseLabel props
6
+ need to be set so the component always includes a close button`)}}};var ys=function(){var e=this,a=e._self._c;return a("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)?a("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(),a("transition",{attrs:{appear:"",name:"d-modal__dialog"}},[a("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?a("div",{staticClass:"d-modal__header",attrs:{id:e.labelledById,"data-qa":"dt-modal-title"}},[e._t("header")],2):a("h2",{staticClass:"d-modal__header",attrs:{id:e.labelledById,"data-qa":"dt-modal-title"}},[e._v(" "+e._s(e.title)+" ")]),e.$slots.default?a("div",{class:["d-modal__content",e.contentClass],attrs:{"data-qa":"dt-modal-copy"}},[e._t("default")],2):a("p",{class:["d-modal__content",e.contentClass],attrs:{"data-qa":"dt-modal-copy"}},[e._v(" "+e._s(e.copy)+" ")]),e.hasFooterSlot?a("footer",{staticClass:"d-modal__footer"},[e._t("footer")],2):e._e(),e.hideClose?e._e():a("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[a("dt-icon",{attrs:{name:"close",size:"400"}})]},proxy:!0}],null,!1,1709155279)},"dt-button",e.closeButtonProps,!1)),e.showVisuallyHiddenClose?a("sr-only-close-button",{attrs:{"visually-hidden-close-label":e.visuallyHiddenCloseLabel},on:{close:e.close}}):e._e()],1)])],1)},Ss=[],Cs=i.normalizeComponent(bs,ys,Ss,!1,null,null,null,null);const Is=Cs.exports,ws={name:"DtListItemGroup",props:{id:{type:String,default(){return i.getUniqueString()}},heading:{type:String,default:""},headingClass:{type:[String,Array,Object],default:""},listClass:{type:[String,Array,Object],default:""}}};var Es=function(){var e=this,a=e._self._c;return a("ul",{class:["d-list-item-group",e.listClass],attrs:{id:e.id,role:"group","data-qa":"dt-dropdown-list-wrapper","aria-labelledby":`${e.id}-heading`}},[e.heading?a("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)},Ds=[],Os=i.normalizeComponent(ws,Es,Ds,!1,null,null,null,null);const Ts=Os.exports,ks={name:"DtPagination",components:{DtButton:l.DtButton,DtIcon:l.DtIcon},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 a=this.maxVisible-(3-this.maxVisible%2),n=Math.floor(a/2),r=this.currentPage-n,s=this.currentPage+n;return[1,"...",...this.range(r,s),"...",this.totalPages]}},methods:{range(t,e){const a=[];t=t>0?t:1;for(let n=t;n<=e;n++)a.push(n);return a},changePage(t){this.currentPage=t,this.$emit("change",this.currentPage)}}};var Ls=function(){var e=this,a=e._self._c;return a("nav",{staticClass:"d-pagination",attrs:{"aria-label":e.ariaLabel}},[a("dt-button",{staticClass:"d-pagination__button",class:e.isFirstPage?"d-fc-black-300 d-bgc-transparent":"d-fc-tertiary",attrs:{"data-qa":"dt-pagination-prev","aria-label":e.prevAriaLabel,kind:e.isFirstPage?"default":"muted",importance:e.isFirstPage?"primary":"clear",disabled:e.isFirstPage},on:{click:function(n){return e.changePage(e.currentPage-1)}}},[a("template",{slot:"icon"},[a("dt-icon",{attrs:{name:"chevron-left",size:"300"}})],1)],2),e._l(e.pages,function(n,r){return a("div",{key:`page-${n}-${r}`,class:{"d-pagination__separator":isNaN(Number(n))}},[isNaN(Number(n))?a("div",{staticClass:"d-pagination__separator-icon",attrs:{"data-qa":"dt-pagination-separator"}},[a("dt-icon",{attrs:{name:"more-horizontal",size:"300"}})],1):a("dt-button",{attrs:{"aria-label":e.pageNumberAriaLabel(n),kind:e.currentPage===n?"default":"muted",importance:e.currentPage===n?"primary":"clear","label-class":""},on:{click:function(s){return e.changePage(n)}}},[e._v(" "+e._s(n)+" ")])],1)}),a("dt-button",{staticClass:"d-pagination__button",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(n){return e.changePage(e.currentPage+1)}}},[a("template",{slot:"icon"},[a("dt-icon",{attrs:{name:"chevron-right",size:"300"}})],1)],2)],2)},xs=[],As=i.normalizeComponent(ks,Ls,xs,!1,null,null,null,null);const $s=As.exports,aa={warning:"d-radio--warning",error:"d-radio--error",success:"d-radio--success"},Rs={name:"DtRadio",components:{DtValidationMessages:l.DtValidationMessages},mixins:[l.InputMixin,l.CheckableMixin,l.GroupableMixin,l.MessagesMixin],inheritAttrs:!1,props:{value:{type:[String,Number],default:""}},emits:["input","focusin","focusout"],computed:{inputValidationClass(){return aa[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 Ms=function(){var e=this,a=e._self._c;return a("div",[a("label",[a("div",{class:["d-radio-group",{"d-radio-group--disabled":e.internalDisabled}]},[a("div",{staticClass:"d-radio__input"},[a("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))]),a("div",{staticClass:"d-radio__copy d-radio__label",attrs:{"data-qa":"radio-label-description-container"}},[a("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?a("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(),a("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)])])])},Ns=[],Ps=i.normalizeComponent(Rs,Ms,Ns,!1,null,null,null,null);const Bs=Ps.exports,Fs={name:"DtRadioGroup",extends:ut,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}`}}},qs=null,Vs=null;var Hs=i.normalizeComponent(Fs,qs,Vs,!1,null,null,null,null);const zs=Hs.exports,Ws={name:"DtTabPanel",mixins:[K],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,a=!0;for(;e;){if(e.previousElementSibling!==null){a=!1;break}e=e.parentNode!==this.$el?e.parentNode:null}return a}}};var Us=function(){var e=this,a=e._self._c;return a("div",{directives:[{name:"show",rawName:"v-show",value:!e.hidePanel,expression:"!hidePanel"}],class: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)},Ks=[],js=i.normalizeComponent(Ws,Us,Ks,!1,null,null,null,null);const Ys=js.exports,Gs={error:"d-checkbox--error",warning:"d-checkbox--warning",success:"d-checkbox--success"},Zs={name:"DtCheckbox",components:{DtValidationMessages:l.DtValidationMessages},mixins:[l.InputMixin,l.CheckableMixin,l.GroupableMixin,l.MessagesMixin],inheritAttrs:!1,emits:["input","focusin","focusout"],computed:{inputValidationClass(){return Gs[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:a}=t;this.internalIndeterminate&&(a=!1,this.internalIndeterminate=!1,t.checked=!1),this.setGroupValue(e,a),this.$emit("input",a)},runValidations(){this.validateInputLabels(this.hasLabel,this.$attrs["aria-label"])}}};var Xs=function(){var e=this,a=e._self._c;return a("div",[a("label",[a("div",{class:["d-checkbox-group",{"d-checkbox-group--disabled":e.internalDisabled}]},[a("div",{staticClass:"d-checkbox__input"},[a("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?a("div",{staticClass:"d-checkbox__copy d-checkbox__label",attrs:{"data-qa":"checkbox-label-description-container"}},[e.hasLabel?a("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?a("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(),a("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()])])])},Qs=[],Js=i.normalizeComponent(Zs,Xs,Qs,!1,null,null,null,null);const ei=Js.exports,ti={name:"DtCheckboxGroup",extends:ut,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",void 0),!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(a=>a!==t),this.$emit("input",this.internalValue)},getMessageKey(t,e){return`checkbox-group-message-${t}-${e}-${this.id}`}}},ai=null,ni=null;var ri=i.normalizeComponent(ti,ai,ni,!1,null,null,null,null);const si=ri.exports,Ge={xs:"d-chip__label--xs",sm:"d-chip__label--sm",md:""},na={xs:"d-chip__close--xs",sm:"d-chip__close--sm",md:""},ra={xs:"200",sm:"200",md:"200"},ii={name:"DtChip",components:{DtButton:l.DtButton,DtIcon:l.DtIcon},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(Ge).includes(t)},interactive:{type:Boolean,default:!0},id:{type:String,default:function(){return i.getUniqueString()}},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 ra[this.size]}},methods:{chipClasses(){return[this.$attrs["grouped-chip"]?"d-chip":"d-chip__label",Ge[this.size],this.labelClass]},chipCloseButtonClasses(){return["d-chip__close",na[this.size]]},onClose(){this.hideClose||this.$emit("close")}}};var oi=function(){var e=this,a=e._self._c;return a("span",{staticClass:"d-chip"},[a(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?a("span",{staticClass:"d-chip__icon",attrs:{"data-qa":"dt-chip-icon"}},[e._t("icon")],2):e.$slots.avatar?a("span",{attrs:{"data-qa":"dt-chip-avatar"}},[e._t("avatar")],2):e._e(),e.$slots.default?a("span",{class:["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():a("dt-button",e._b({class:e.chipCloseButtonClasses(),attrs:{"data-qa":"dt-chip-close","aria-label":e.closeButtonProps.ariaLabel},on:{click:function(n){return e.$emit("close")}},scopedSlots:e._u([{key:"icon",fn:function(){return[a("dt-icon",{attrs:{name:"close",size:e.closeButtonIconSize}})]},proxy:!0}],null,!1,1192647893)},"dt-button",e.closeButtonProps,!1))],1)},li=[],di=i.normalizeComponent(ii,oi,li,!1,null,null,null,null);const pt=di.exports,Ze={xs:"d-select--xs",sm:"d-select--sm",md:"",lg:"d-select--lg",xl:"d-select--xl"},sa={error:"d-select__input--error",warning:"d-select__input--warning",success:"d-select__input--success"},ci=t=>!t.index||typeof t.index=="number",ui=t=>t.value?typeof t.value=="string"||typeof t.value=="number":!1,pi=t=>t.label?typeof t.label=="string":!1,fi=t=>t?t.every(e=>!(!ci(e)||!ui(e)||!pi(e))):!0,hi={name:"DtSelectMenu",components:{DtValidationMessages:l.DtValidationMessages},mixins:[l.MessagesMixin],inheritAttrs:!1,props:{label:{type:String,default:""},description:{type:String,default:""},options:{type:Array,default:()=>[],validator:t=>fi(t)},value:{type:String,default:null},size:{type:String,default:"md",validator:t=>Object.keys(Ze).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:i.LABEL_SIZE_MODIFIERS,DESCRIPTION_SIZE_MODIFIERS:i.DESCRIPTION_SIZE_MODIFIERS,SELECT_SIZE_MODIFIERS:Ze,SELECT_STATE_MODIFIERS:sa}},computed:{selectListeners(){return{...this.$listeners,input:()=>{},change:t=>this.emitValue(t.target.value,t)}},state(){return i.getValidationState(this.formattedMessages)},selectKey(){return i.getUniqueString()},descriptionKey(){return`select-${this.selectKey}-description`},labelAriaDetails(){return this.$slots.description||this.description?this.descriptionKey:this.$attrs["aria-details"]}},mounted(){this.validateOptionsPresence()},beforeUpdate(){this.validateOptionsPresence()},methods:{emitValue(t,e){this.$emit("input",t,e),this.$emit("change",t,e)},getOptionKey(t){return`select-${this.selectKey}-option-${t}`},validateOptionsPresence(){var t;((t=this.options)==null?void 0:t.length)<1&&!this.$slots.default&&x.util.warn("Options are expected to be provided via prop or slot",this)}}};var mi=function(){var e=this,a=e._self._c;return a("div",[a("label",[e.$slots.label||e.label?a("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?a("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(),a("div",{class:["d-select",e.SELECT_SIZE_MODIFIERS[e.size],e.selectClass,{"d-select--disabled":e.disabled}],attrs:{"data-qa":"dt-select-wrapper"}},[a("select",e._g(e._b({ref:"selectElement",class:["d-select__input",e.SELECT_STATE_MODIFIERS[e.state]],attrs:{"data-qa":"dt-select",disabled:e.disabled},domProps:{value:e.value}},"select",e.$attrs,!1),e.selectListeners),[e._t("default",function(){return e._l(e.options,function(n){return a("option",e._b({key:e.getOptionKey(n.value),class:e.optionClass,domProps:{value:n.value}},"option",e.optionChildProps,!1),[e._v(" "+e._s(n.label)+" ")])})})],2)])]),a("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)},_i=[],gi=i.normalizeComponent(hi,mi,_i,!1,null,null,null,null);const vi=gi.exports,ia=["status","alert"],Xe=6e3,bi={name:"DtToast",components:{DtNoticeIcon:ye,DtNoticeContent:Se,DtNoticeAction:Ie},mixins:[D],props:{titleId:{type:String,default(){return i.utils.getUniqueString()}},contentId:{type:String,default(){return i.utils.getUniqueString()}},title:{type:String,default:""},message:{type:String,default:""},role:{type:String,default:"status",validator:t=>ia.includes(t)},kind:{type:String,default:"base",validator:t=>U.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>=Xe}},emits:["close","update:show"],data(){return{isShown:!1,minDuration:Xe}},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 yi=function(){var e=this,a=e._self._c;return e.isShown?a("div",{class:["d-toast",e.kindClass,{"d-toast--important":e.important}],attrs:{"data-qa":"dt-toast","aria-hidden":(!e.isShown).toString()}},[a("div",{staticClass:"d-toast__dialog"},[a("dt-notice-icon",e._g({attrs:{kind:e.kind}},e.$listeners),[e._t("icon")],2),a("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),a("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()},Si=[],Ci=i.normalizeComponent(bi,yi,Si,!1,null,null,null,null);const Ii=Ci.exports,Qe={sm:"d-toggle--small",md:""},oa=[!1,!0,"mixed"],wi={name:"DtToggle",inheritAttrs:!1,model:{prop:"checked",event:"change"},props:{id:{type:String,default(){return i.utils.getUniqueString()}},disabled:{type:Boolean,default:!1},checked:{type:[Boolean,String],default:!1,validator:t=>oa.includes(t)},toggleOnClick:{type:Boolean,default:!0},size:{type:String,default:"md",validator:t=>Object.keys(Qe).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",Qe[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 Ei=function(){var e=this,a=e._self._c;return a("div",{staticClass:"d-toggle-wrapper"},[e.$slots.default?a("label",e._b({class:e.labelClass,attrs:{for:e.id,"data-qa":"toggle-label"}},"label",e.labelChildProps,!1),[e._t("default")],2):e._e(),a("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?a("span",{staticClass:"d-toggle__inner"}):e._e()])])},Di=[],Oi=i.normalizeComponent(wi,Ei,Di,!1,null,null,null,null);const Ti=Oi.exports,H={"{win}":"layout-grid","{arrow-right}":"arrow-right","{arrow-left}":"arrow-left","{arrow-up}":"arrow-up","{arrow-down}":"arrow-down","{cmd}":"command"},la={"{plus}":"plus"},ki=Object.keys(H),Li={name:"DtKeyboardShortcut",components:{DtIcon:l.DtIcon},props:{inverted:{type:Boolean,default:!1},shortcut:{type:String,required:!0},screenReaderText:{type:String,default:null}},data(){return{SHORTCUTS_ICON_ALIASES:H,separator:/\+/gi}},computed:{icons(){return{...H,...la}},shortcutWithSeparator(){return this.shortcut.replace(this.separator,"{plus}")},formattedShortcut(){return Object.keys(H).reduce((t,e)=>t.replace(new RegExp("{"+e+"}","gi"),H[e]),this.shortcutWithSeparator)},formattedShortcutSplit(){const t=Object.keys(this.icons).join("|"),e=new RegExp(`(${t})`,"gi");return this.formattedShortcut.split(e).filter(Boolean)}}};var xi=function(){var e=this,a=e._self._c;return a("kbd",{class:["d-keyboard-shortcut",{"d-keyboard-shortcut--inverted":e.inverted}]},[e.screenReaderText?a("span",{staticClass:"sr-only"},[e._v(" "+e._s(e.screenReaderText)+" ")]):e._e(),e._l(e.formattedShortcutSplit,function(n,r){return[e.icons[n]?a("dt-icon",{key:`${r}-${n}`,class:["d-keyboard-shortcut__icon",{"d-keyboard-shortcut__icon--inverted":e.inverted}],attrs:{name:e.icons[n],size:"100","aria-hidden":"true"}}):a("span",{key:`${r}-${n}`,class:["d-keyboard-shortcut__item",{"d-keyboard-shortcut__item--inverted":e.inverted}],attrs:{"aria-hidden":"true"},domProps:{innerHTML:e._s(n)}})]})],2)},Ai=[],$i=i.normalizeComponent(Li,xi,Ai,!1,null,null,null,null);const Ri=$i.exports,Je={LEFT:"left",RIGHT:"right"},da=["sm","md","lg",null],Mi={name:"DtRootLayout",props:{fixed:{type:Boolean,default:!0},headerClass:{type:[String,Array,Object],default:""},headerHeight:{type:String,default:"64px"},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(Je).includes(t)},footerClass:{type:[String,Array,Object],default:""},footerHeight:{type:String,default:"64px"},responsiveBreakpoint:{type:String,default:null,validator:t=>da.includes(t)}},computed:{isInverted(){return this.sidebarPosition===Je.RIGHT}}};var Ni=function(){var e=this,a=e._self._c;return a("div",{class:["root-layout","d-root-layout",{"d-root-layout--fixed":e.fixed,"d-root-layout--inverted":e.isInverted,[`d-root-layout__responsive--${e.responsiveBreakpoint}`]:!!e.responsiveBreakpoint}],attrs:{"data-qa":"dt-root-layout"}},[a("header",{class:["d-root-layout__header",{"d-root-layout__header--sticky":e.headerSticky},e.headerClass],attrs:{"data-qa":"dt-root-layout-header"}},[e._t("header")],2),a("aside",{ref:"root-layout-sidebar",class:["d-root-layout__sidebar",e.sidebarClass],attrs:{tabindex:"0","data-qa":"dt-root-layout-sidebar"}},[e._t("sidebar")],2),a("main",{ref:"root-layout-content",class:["d-root-layout__content",e.contentClass],attrs:{"data-qa":"dt-root-layout-content",tabindex:"0"}},[e._t("default")],2),a("footer",{class:["d-root-layout__footer",e.footerClass],attrs:{"data-qa":"dt-root-layout-footer"}},[e._t("footer")],2)])},Pi=[],Bi=i.normalizeComponent(Mi,Ni,Pi,!1,null,null,null,null);const Fi=Bi.exports;function yt(t){return t===A.default}function St(t){if(Q(t)==="string")return yt(t)?null:A[t];if(Q(t)==="object"){const{default:e}=t;return yt(e)?null:A[e]}else return null}function Q(t){return typeof t}function qi(t){return St(t)?`d-stack--${A[St(t)]}`:null}function Vi(t){return Q(t)==="object"?[...lt.map(e=>t[e]?`d-stack--${e}--${t[e]}`:null)]:null}function Hi(t){return ne.includes(t)?`d-stack--gap-${t}`:null}function zi(t){if(Q(t)==="string")return Object.keys(A).includes(t);if(Q(t)==="object"){const{default:e}=t;return Object.keys(A).includes(e)}else return null}function Wi(t){return ne.includes(t)}const Ui={name:"DtStack",props:{direction:{type:[String,Object],default:"column",validator:t=>zi(t)},as:{type:String,default:"div"},gap:{type:String,default:"0",validator:t=>Wi(t)}},data(){return{DT_STACK_DIRECTION:A,DT_STACK_GAP:ne,DT_STACK_RESPONSIVE_BREAKPOINTS:lt}},computed:{stackGap(){return Hi(this.gap)},defaultDirection(){return qi(this.direction)},stackResponsive(){return Vi(this.direction)}}};var Ki=function(){var e=this,a=e._self._c;return a(e.as,{tag:"component",class:["d-stack",e.defaultDirection,e.stackResponsive,e.stackGap]},[e._t("default")],2)},ji=[],Yi=i.normalizeComponent(Ui,Ki,ji,!1,null,null,null,null);const Gi=Yi.exports;function W(t){"@babel/helpers - typeof";return W=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},W(t)}function y(t){if(t===null||t===!0||t===!1)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function p(t,e){if(e.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+e.length+" present")}function h(t){p(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||W(t)==="object"&&e==="[object Date]"?new Date(t.getTime()):typeof t=="number"||e==="[object Number]"?new Date(t):((typeof t=="string"||e==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function Ee(t,e){p(2,arguments);var a=h(t),n=y(e);return isNaN(n)?new Date(NaN):(n&&a.setDate(a.getDate()+n),a)}function ft(t,e){p(2,arguments);var a=h(t),n=y(e);if(isNaN(n))return new Date(NaN);if(!n)return a;var r=a.getDate(),s=new Date(a.getTime());s.setMonth(a.getMonth()+n+1,0);var o=s.getDate();return r>=o?s:(a.setFullYear(s.getFullYear(),s.getMonth(),r),a)}function G(t,e){if(p(2,arguments),!e||W(e)!=="object")return new Date(NaN);var a=e.years?y(e.years):0,n=e.months?y(e.months):0,r=e.weeks?y(e.weeks):0,s=e.days?y(e.days):0,o=e.hours?y(e.hours):0,c=e.minutes?y(e.minutes):0,u=e.seconds?y(e.seconds):0,f=h(t),g=n||a?ft(f,n+a*12):f,d=s||r?Ee(g,s+r*7):g,_=c+o*60,m=u+_*60,v=m*1e3,I=new Date(d.getTime()+v);return I}function Zi(t,e){p(2,arguments);var a=h(t).getTime(),n=y(e);return new Date(a+n)}var Xi={};function B(){return Xi}function et(t,e){var a,n,r,s,o,c,u,f;p(1,arguments);var g=B(),d=y((a=(n=(r=(s=e==null?void 0:e.weekStartsOn)!==null&&s!==void 0?s:e==null||(o=e.locale)===null||o===void 0||(c=o.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&r!==void 0?r:g.weekStartsOn)!==null&&n!==void 0?n:(u=g.locale)===null||u===void 0||(f=u.options)===null||f===void 0?void 0:f.weekStartsOn)!==null&&a!==void 0?a:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var _=h(t),m=_.getDay(),v=(m<d?7:0)+m-d;return _.setDate(_.getDate()-v),_.setHours(0,0,0,0),_}function J(t){var e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),t.getTime()-e.getTime()}function _e(t){p(1,arguments);var e=h(t);return e.setHours(0,0,0,0),e}var Qi=864e5;function Ji(t,e){p(2,arguments);var a=_e(t),n=_e(e),r=a.getTime()-J(a),s=n.getTime()-J(n);return Math.round((r-s)/Qi)}function N(t,e){p(2,arguments);var a=h(t),n=h(e),r=a.getTime()-n.getTime();return r<0?-1:r>0?1:r}var eo=6e4,to=36e5;function ca(t,e){p(2,arguments);var a=_e(t),n=_e(e);return a.getTime()===n.getTime()}function ao(t){return p(1,arguments),t instanceof Date||W(t)==="object"&&Object.prototype.toString.call(t)==="[object Date]"}function no(t){if(p(1,arguments),!ao(t)&&typeof t!="number")return!1;var e=h(t);return!isNaN(Number(e))}function ro(t,e){p(2,arguments);var a=h(t),n=h(e),r=a.getFullYear()-n.getFullYear(),s=a.getMonth()-n.getMonth();return r*12+s}function so(t,e){p(2,arguments);var a=h(t),n=h(e);return a.getFullYear()-n.getFullYear()}function Ct(t,e){var a=t.getFullYear()-e.getFullYear()||t.getMonth()-e.getMonth()||t.getDate()-e.getDate()||t.getHours()-e.getHours()||t.getMinutes()-e.getMinutes()||t.getSeconds()-e.getSeconds()||t.getMilliseconds()-e.getMilliseconds();return a<0?-1:a>0?1:a}function io(t,e){p(2,arguments);var a=h(t),n=h(e),r=Ct(a,n),s=Math.abs(Ji(a,n));a.setDate(a.getDate()-r*s);var o=+(Ct(a,n)===-r),c=r*(s-o);return c===0?0:c}function ht(t,e){return p(2,arguments),h(t).getTime()-h(e).getTime()}var It={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}},oo="trunc";function mt(t){return t?It[t]:It[oo]}function lo(t,e,a){p(2,arguments);var n=ht(t,e)/to;return mt(a==null?void 0:a.roundingMethod)(n)}function co(t,e,a){p(2,arguments);var n=ht(t,e)/eo;return mt(a==null?void 0:a.roundingMethod)(n)}function uo(t){p(1,arguments);var e=h(t);return e.setHours(23,59,59,999),e}function po(t){p(1,arguments);var e=h(t),a=e.getMonth();return e.setFullYear(e.getFullYear(),a+1,0),e.setHours(23,59,59,999),e}function fo(t){p(1,arguments);var e=h(t);return uo(e).getTime()===po(e).getTime()}function ua(t,e){p(2,arguments);var a=h(t),n=h(e),r=N(a,n),s=Math.abs(ro(a,n)),o;if(s<1)o=0;else{a.getMonth()===1&&a.getDate()>27&&a.setDate(30),a.setMonth(a.getMonth()-r*s);var c=N(a,n)===-r;fo(h(t))&&s===1&&N(t,n)===1&&(c=!1),o=r*(s-Number(c))}return o===0?0:o}function pa(t,e,a){p(2,arguments);var n=ht(t,e)/1e3;return mt(a==null?void 0:a.roundingMethod)(n)}function ho(t,e){p(2,arguments);var a=h(t),n=h(e),r=N(a,n),s=Math.abs(so(a,n));a.setFullYear(1584),n.setFullYear(1584);var o=N(a,n)===-r,c=r*(s-Number(o));return c===0?0:c}function mo(t,e){p(2,arguments);var a=y(e);return Zi(t,-a)}var _o=864e5;function go(t){p(1,arguments);var e=h(t),a=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var n=e.getTime(),r=a-n;return Math.floor(r/_o)+1}function ge(t){p(1,arguments);var e=1,a=h(t),n=a.getUTCDay(),r=(n<e?7:0)+n-e;return a.setUTCDate(a.getUTCDate()-r),a.setUTCHours(0,0,0,0),a}function fa(t){p(1,arguments);var e=h(t),a=e.getUTCFullYear(),n=new Date(0);n.setUTCFullYear(a+1,0,4),n.setUTCHours(0,0,0,0);var r=ge(n),s=new Date(0);s.setUTCFullYear(a,0,4),s.setUTCHours(0,0,0,0);var o=ge(s);return e.getTime()>=r.getTime()?a+1:e.getTime()>=o.getTime()?a:a-1}function vo(t){p(1,arguments);var e=fa(t),a=new Date(0);a.setUTCFullYear(e,0,4),a.setUTCHours(0,0,0,0);var n=ge(a);return n}var bo=6048e5;function yo(t){p(1,arguments);var e=h(t),a=ge(e).getTime()-vo(e).getTime();return Math.round(a/bo)+1}function ve(t,e){var a,n,r,s,o,c,u,f;p(1,arguments);var g=B(),d=y((a=(n=(r=(s=e==null?void 0:e.weekStartsOn)!==null&&s!==void 0?s:e==null||(o=e.locale)===null||o===void 0||(c=o.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&r!==void 0?r:g.weekStartsOn)!==null&&n!==void 0?n:(u=g.locale)===null||u===void 0||(f=u.options)===null||f===void 0?void 0:f.weekStartsOn)!==null&&a!==void 0?a:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var _=h(t),m=_.getUTCDay(),v=(m<d?7:0)+m-d;return _.setUTCDate(_.getUTCDate()-v),_.setUTCHours(0,0,0,0),_}function ha(t,e){var a,n,r,s,o,c,u,f;p(1,arguments);var g=h(t),d=g.getUTCFullYear(),_=B(),m=y((a=(n=(r=(s=e==null?void 0:e.firstWeekContainsDate)!==null&&s!==void 0?s:e==null||(o=e.locale)===null||o===void 0||(c=o.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&r!==void 0?r:_.firstWeekContainsDate)!==null&&n!==void 0?n:(u=_.locale)===null||u===void 0||(f=u.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&a!==void 0?a:1);if(!(m>=1&&m<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var v=new Date(0);v.setUTCFullYear(d+1,0,m),v.setUTCHours(0,0,0,0);var I=ve(v,e),C=new Date(0);C.setUTCFullYear(d,0,m),C.setUTCHours(0,0,0,0);var E=ve(C,e);return g.getTime()>=I.getTime()?d+1:g.getTime()>=E.getTime()?d:d-1}function So(t,e){var a,n,r,s,o,c,u,f;p(1,arguments);var g=B(),d=y((a=(n=(r=(s=e==null?void 0:e.firstWeekContainsDate)!==null&&s!==void 0?s:e==null||(o=e.locale)===null||o===void 0||(c=o.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&r!==void 0?r:g.firstWeekContainsDate)!==null&&n!==void 0?n:(u=g.locale)===null||u===void 0||(f=u.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&a!==void 0?a:1),_=ha(t,e),m=new Date(0);m.setUTCFullYear(_,0,d),m.setUTCHours(0,0,0,0);var v=ve(m,e);return v}var Co=6048e5;function Io(t,e){p(1,arguments);var a=h(t),n=ve(a,e).getTime()-So(a,e).getTime();return Math.round(n/Co)+1}function b(t,e){for(var a=t<0?"-":"",n=Math.abs(t).toString();n.length<e;)n="0"+n;return a+n}var wo={y:function(e,a){var n=e.getUTCFullYear(),r=n>0?n:1-n;return b(a==="yy"?r%100:r,a.length)},M:function(e,a){var n=e.getUTCMonth();return a==="M"?String(n+1):b(n+1,2)},d:function(e,a){return b(e.getUTCDate(),a.length)},a:function(e,a){var n=e.getUTCHours()/12>=1?"pm":"am";switch(a){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h:function(e,a){return b(e.getUTCHours()%12||12,a.length)},H:function(e,a){return b(e.getUTCHours(),a.length)},m:function(e,a){return b(e.getUTCMinutes(),a.length)},s:function(e,a){return b(e.getUTCSeconds(),a.length)},S:function(e,a){var n=a.length,r=e.getUTCMilliseconds(),s=Math.floor(r*Math.pow(10,n-3));return b(s,a.length)}};const T=wo;var q={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Eo={G:function(e,a,n){var r=e.getUTCFullYear()>0?1:0;switch(a){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,a,n){if(a==="yo"){var r=e.getUTCFullYear(),s=r>0?r:1-r;return n.ordinalNumber(s,{unit:"year"})}return T.y(e,a)},Y:function(e,a,n,r){var s=ha(e,r),o=s>0?s:1-s;if(a==="YY"){var c=o%100;return b(c,2)}return a==="Yo"?n.ordinalNumber(o,{unit:"year"}):b(o,a.length)},R:function(e,a){var n=fa(e);return b(n,a.length)},u:function(e,a){var n=e.getUTCFullYear();return b(n,a.length)},Q:function(e,a,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(a){case"Q":return String(r);case"QQ":return b(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,a,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(a){case"q":return String(r);case"qq":return b(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,a,n){var r=e.getUTCMonth();switch(a){case"M":case"MM":return T.M(e,a);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,a,n){var r=e.getUTCMonth();switch(a){case"L":return String(r+1);case"LL":return b(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,a,n,r){var s=Io(e,r);return a==="wo"?n.ordinalNumber(s,{unit:"week"}):b(s,a.length)},I:function(e,a,n){var r=yo(e);return a==="Io"?n.ordinalNumber(r,{unit:"week"}):b(r,a.length)},d:function(e,a,n){return a==="do"?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):T.d(e,a)},D:function(e,a,n){var r=go(e);return a==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):b(r,a.length)},E:function(e,a,n){var r=e.getUTCDay();switch(a){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,a,n,r){var s=e.getUTCDay(),o=(s-r.weekStartsOn+8)%7||7;switch(a){case"e":return String(o);case"ee":return b(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(s,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(s,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(s,{width:"short",context:"formatting"});case"eeee":default:return n.day(s,{width:"wide",context:"formatting"})}},c:function(e,a,n,r){var s=e.getUTCDay(),o=(s-r.weekStartsOn+8)%7||7;switch(a){case"c":return String(o);case"cc":return b(o,a.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(s,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(s,{width:"narrow",context:"standalone"});case"cccccc":return n.day(s,{width:"short",context:"standalone"});case"cccc":default:return n.day(s,{width:"wide",context:"standalone"})}},i:function(e,a,n){var r=e.getUTCDay(),s=r===0?7:r;switch(a){case"i":return String(s);case"ii":return b(s,a.length);case"io":return n.ordinalNumber(s,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,a,n){var r=e.getUTCHours(),s=r/12>=1?"pm":"am";switch(a){case"a":case"aa":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},b:function(e,a,n){var r=e.getUTCHours(),s;switch(r===12?s=q.noon:r===0?s=q.midnight:s=r/12>=1?"pm":"am",a){case"b":case"bb":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},B:function(e,a,n){var r=e.getUTCHours(),s;switch(r>=17?s=q.evening:r>=12?s=q.afternoon:r>=4?s=q.morning:s=q.night,a){case"B":case"BB":case"BBB":return n.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(s,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(s,{width:"wide",context:"formatting"})}},h:function(e,a,n){if(a==="ho"){var r=e.getUTCHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return T.h(e,a)},H:function(e,a,n){return a==="Ho"?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):T.H(e,a)},K:function(e,a,n){var r=e.getUTCHours()%12;return a==="Ko"?n.ordinalNumber(r,{unit:"hour"}):b(r,a.length)},k:function(e,a,n){var r=e.getUTCHours();return r===0&&(r=24),a==="ko"?n.ordinalNumber(r,{unit:"hour"}):b(r,a.length)},m:function(e,a,n){return a==="mo"?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):T.m(e,a)},s:function(e,a,n){return a==="so"?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):T.s(e,a)},S:function(e,a){return T.S(e,a)},X:function(e,a,n,r){var s=r._originalDate||e,o=s.getTimezoneOffset();if(o===0)return"Z";switch(a){case"X":return Et(o);case"XXXX":case"XX":return M(o);case"XXXXX":case"XXX":default:return M(o,":")}},x:function(e,a,n,r){var s=r._originalDate||e,o=s.getTimezoneOffset();switch(a){case"x":return Et(o);case"xxxx":case"xx":return M(o);case"xxxxx":case"xxx":default:return M(o,":")}},O:function(e,a,n,r){var s=r._originalDate||e,o=s.getTimezoneOffset();switch(a){case"O":case"OO":case"OOO":return"GMT"+wt(o,":");case"OOOO":default:return"GMT"+M(o,":")}},z:function(e,a,n,r){var s=r._originalDate||e,o=s.getTimezoneOffset();switch(a){case"z":case"zz":case"zzz":return"GMT"+wt(o,":");case"zzzz":default:return"GMT"+M(o,":")}},t:function(e,a,n,r){var s=r._originalDate||e,o=Math.floor(s.getTime()/1e3);return b(o,a.length)},T:function(e,a,n,r){var s=r._originalDate||e,o=s.getTime();return b(o,a.length)}};function wt(t,e){var a=t>0?"-":"+",n=Math.abs(t),r=Math.floor(n/60),s=n%60;if(s===0)return a+String(r);var o=e||"";return a+String(r)+o+b(s,2)}function Et(t,e){if(t%60===0){var a=t>0?"-":"+";return a+b(Math.abs(t)/60,2)}return M(t,e)}function M(t,e){var a=e||"",n=t>0?"-":"+",r=Math.abs(t),s=b(Math.floor(r/60),2),o=b(r%60,2);return n+s+a+o}const Do=Eo;var Dt=function(e,a){switch(e){case"P":return a.date({width:"short"});case"PP":return a.date({width:"medium"});case"PPP":return a.date({width:"long"});case"PPPP":default:return a.date({width:"full"})}},ma=function(e,a){switch(e){case"p":return a.time({width:"short"});case"pp":return a.time({width:"medium"});case"ppp":return a.time({width:"long"});case"pppp":default:return a.time({width:"full"})}},Oo=function(e,a){var n=e.match(/(P+)(p+)?/)||[],r=n[1],s=n[2];if(!s)return Dt(e,a);var o;switch(r){case"P":o=a.dateTime({width:"short"});break;case"PP":o=a.dateTime({width:"medium"});break;case"PPP":o=a.dateTime({width:"long"});break;case"PPPP":default:o=a.dateTime({width:"full"});break}return o.replace("{{date}}",Dt(r,a)).replace("{{time}}",ma(s,a))},To={p:ma,P:Oo};const ko=To;var Lo=["D","DD"],xo=["YY","YYYY"];function Ao(t){return Lo.indexOf(t)!==-1}function $o(t){return xo.indexOf(t)!==-1}function Ot(t,e,a){if(t==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(a,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(a,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(a,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(a,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Ro={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Mo=function(e,a,n){var r,s=Ro[e];return typeof s=="string"?r=s:a===1?r=s.one:r=s.other.replace("{{count}}",a.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};const No=Mo;function Pe(t){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=e.width?String(e.width):t.defaultWidth,n=t.formats[a]||t.formats[t.defaultWidth];return n}}var Po={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Bo={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Fo={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},qo={date:Pe({formats:Po,defaultWidth:"full"}),time:Pe({formats:Bo,defaultWidth:"full"}),dateTime:Pe({formats:Fo,defaultWidth:"full"})};const Vo=qo;var Ho={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},zo=function(e,a,n,r){return Ho[e]};const Wo=zo;function Z(t){return function(e,a){var n=a!=null&&a.context?String(a.context):"standalone",r;if(n==="formatting"&&t.formattingValues){var s=t.defaultFormattingWidth||t.defaultWidth,o=a!=null&&a.width?String(a.width):s;r=t.formattingValues[o]||t.formattingValues[s]}else{var c=t.defaultWidth,u=a!=null&&a.width?String(a.width):t.defaultWidth;r=t.values[u]||t.values[c]}var f=t.argumentCallback?t.argumentCallback(e):e;return r[f]}}var Uo={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Ko={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},jo={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Yo={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Go={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Zo={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Xo=function(e,a){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},Qo={ordinalNumber:Xo,era:Z({values:Uo,defaultWidth:"wide"}),quarter:Z({values:Ko,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Z({values:jo,defaultWidth:"wide"}),day:Z({values:Yo,defaultWidth:"wide"}),dayPeriod:Z({values:Go,defaultWidth:"wide",formattingValues:Zo,defaultFormattingWidth:"wide"})};const Jo=Qo;function X(t){return function(e){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=a.width,r=n&&t.matchPatterns[n]||t.matchPatterns[t.defaultMatchWidth],s=e.match(r);if(!s)return null;var o=s[0],c=n&&t.parsePatterns[n]||t.parsePatterns[t.defaultParseWidth],u=Array.isArray(c)?tl(c,function(d){return d.test(o)}):el(c,function(d){return d.test(o)}),f;f=t.valueCallback?t.valueCallback(u):u,f=a.valueCallback?a.valueCallback(f):f;var g=e.slice(o.length);return{value:f,rest:g}}}function el(t,e){for(var a in t)if(t.hasOwnProperty(a)&&e(t[a]))return a}function tl(t,e){for(var a=0;a<t.length;a++)if(e(t[a]))return a}function al(t){return function(e){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.match(t.matchPattern);if(!n)return null;var r=n[0],s=e.match(t.parsePattern);if(!s)return null;var o=t.valueCallback?t.valueCallback(s[0]):s[0];o=a.valueCallback?a.valueCallback(o):o;var c=e.slice(r.length);return{value:o,rest:c}}}var nl=/^(\d+)(th|st|nd|rd)?/i,rl=/\d+/i,sl={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},il={any:[/^b/i,/^(a|c)/i]},ol={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},ll={any:[/1/i,/2/i,/3/i,/4/i]},dl={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},cl={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},ul={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},pl={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},fl={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},hl={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},ml={ordinalNumber:al({matchPattern:nl,parsePattern:rl,valueCallback:function(e){return parseInt(e,10)}}),era:X({matchPatterns:sl,defaultMatchWidth:"wide",parsePatterns:il,defaultParseWidth:"any"}),quarter:X({matchPatterns:ol,defaultMatchWidth:"wide",parsePatterns:ll,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:X({matchPatterns:dl,defaultMatchWidth:"wide",parsePatterns:cl,defaultParseWidth:"any"}),day:X({matchPatterns:ul,defaultMatchWidth:"wide",parsePatterns:pl,defaultParseWidth:"any"}),dayPeriod:X({matchPatterns:fl,defaultMatchWidth:"any",parsePatterns:hl,defaultParseWidth:"any"})};const _l=ml;var gl={code:"en-US",formatDistance:No,formatLong:Vo,formatRelative:Wo,localize:Jo,match:_l,options:{weekStartsOn:0,firstWeekContainsDate:1}};const _t=gl;var vl=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,bl=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,yl=/^'([^]*?)'?$/,Sl=/''/g,Cl=/[a-zA-Z]/;function $(t,e,a){var n,r,s,o,c,u,f,g,d,_,m,v,I,C,E,F,R,$e;p(2,arguments);var Aa=String(e),j=B(),Y=(n=(r=a==null?void 0:a.locale)!==null&&r!==void 0?r:j.locale)!==null&&n!==void 0?n:_t,Re=y((s=(o=(c=(u=a==null?void 0:a.firstWeekContainsDate)!==null&&u!==void 0?u:a==null||(f=a.locale)===null||f===void 0||(g=f.options)===null||g===void 0?void 0:g.firstWeekContainsDate)!==null&&c!==void 0?c:j.firstWeekContainsDate)!==null&&o!==void 0?o:(d=j.locale)===null||d===void 0||(_=d.options)===null||_===void 0?void 0:_.firstWeekContainsDate)!==null&&s!==void 0?s:1);if(!(Re>=1&&Re<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var Me=y((m=(v=(I=(C=a==null?void 0:a.weekStartsOn)!==null&&C!==void 0?C:a==null||(E=a.locale)===null||E===void 0||(F=E.options)===null||F===void 0?void 0:F.weekStartsOn)!==null&&I!==void 0?I:j.weekStartsOn)!==null&&v!==void 0?v:(R=j.locale)===null||R===void 0||($e=R.options)===null||$e===void 0?void 0:$e.weekStartsOn)!==null&&m!==void 0?m:0);if(!(Me>=0&&Me<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!Y.localize)throw new RangeError("locale must contain localize property");if(!Y.formatLong)throw new RangeError("locale must contain formatLong property");var ie=h(t);if(!no(ie))throw new RangeError("Invalid time value");var $a=J(ie),Ra=mo(ie,$a),Ma={firstWeekContainsDate:Re,weekStartsOn:Me,locale:Y,_originalDate:ie},Na=Aa.match(bl).map(function(w){var O=w[0];if(O==="p"||O==="P"){var oe=ko[O];return oe(w,Y.formatLong)}return w}).join("").match(vl).map(function(w){if(w==="''")return"'";var O=w[0];if(O==="'")return Il(w);var oe=Do[O];if(oe)return!(a!=null&&a.useAdditionalWeekYearTokens)&&$o(w)&&Ot(w,e,String(t)),!(a!=null&&a.useAdditionalDayOfYearTokens)&&Ao(w)&&Ot(w,e,String(t)),oe(Ra,w,Y.localize,Ma);if(O.match(Cl))throw new RangeError("Format string contains an unescaped latin alphabet character `"+O+"`");return w}).join("");return Na}function Il(t){var e=t.match(yl);return e?e[1].replace(Sl,"'"):t}function _a(t,e){if(t==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t}function wl(t){return _a({},t)}var Tt=1440,El=2520,Be=43200,Dl=86400;function Ol(t,e,a){var n,r;p(2,arguments);var s=B(),o=(n=(r=a==null?void 0:a.locale)!==null&&r!==void 0?r:s.locale)!==null&&n!==void 0?n:_t;if(!o.formatDistance)throw new RangeError("locale must contain formatDistance property");var c=N(t,e);if(isNaN(c))throw new RangeError("Invalid time value");var u=_a(wl(a),{addSuffix:!!(a!=null&&a.addSuffix),comparison:c}),f,g;c>0?(f=h(e),g=h(t)):(f=h(t),g=h(e));var d=pa(g,f),_=(J(g)-J(f))/1e3,m=Math.round((d-_)/60),v;if(m<2)return a!=null&&a.includeSeconds?d<5?o.formatDistance("lessThanXSeconds",5,u):d<10?o.formatDistance("lessThanXSeconds",10,u):d<20?o.formatDistance("lessThanXSeconds",20,u):d<40?o.formatDistance("halfAMinute",0,u):d<60?o.formatDistance("lessThanXMinutes",1,u):o.formatDistance("xMinutes",1,u):m===0?o.formatDistance("lessThanXMinutes",1,u):o.formatDistance("xMinutes",m,u);if(m<45)return o.formatDistance("xMinutes",m,u);if(m<90)return o.formatDistance("aboutXHours",1,u);if(m<Tt){var I=Math.round(m/60);return o.formatDistance("aboutXHours",I,u)}else{if(m<El)return o.formatDistance("xDays",1,u);if(m<Be){var C=Math.round(m/Tt);return o.formatDistance("xDays",C,u)}else if(m<Dl)return v=Math.round(m/Be),o.formatDistance("aboutXMonths",v,u)}if(v=ua(g,f),v<12){var E=Math.round(m/Be);return o.formatDistance("xMonths",E,u)}else{var F=v%12,R=Math.floor(v/12);return F<3?o.formatDistance("aboutXYears",R,u):F<9?o.formatDistance("overXYears",R,u):o.formatDistance("almostXYears",R+1,u)}}var Tl=["years","months","weeks","days","hours","minutes","seconds"];function kl(t,e){var a,n,r,s,o;if(arguments.length<1)throw new TypeError("1 argument required, but only ".concat(arguments.length," present"));var c=B(),u=(a=(n=e==null?void 0:e.locale)!==null&&n!==void 0?n:c.locale)!==null&&a!==void 0?a:_t,f=(r=e==null?void 0:e.format)!==null&&r!==void 0?r:Tl,g=(s=e==null?void 0:e.zero)!==null&&s!==void 0?s:!1,d=(o=e==null?void 0:e.delimiter)!==null&&o!==void 0?o:" ";if(!u.formatDistance)return"";var _=f.reduce(function(m,v){var I="x".concat(v.replace(/(^.)/,function(E){return E.toUpperCase()})),C=t[v];return typeof C=="number"&&(g||t[v])?m.concat(u.formatDistance(I,C)):m},[]).join(d);return _}function Ll(t){p(1,arguments);var e=h(t),a=e.getDate();return a}function xl(t){p(1,arguments);var e=h(t),a=e.getFullYear(),n=e.getMonth(),r=new Date(0);return r.setFullYear(a,n+1,0),r.setHours(0,0,0,0),r.getDate()}function ue(t){p(1,arguments);var e=h(t),a=e.getMonth();return a}function tt(t){return p(1,arguments),h(t).getFullYear()}function Al(t){p(1,arguments);var e=h(t.start),a=h(t.end);if(isNaN(e.getTime()))throw new RangeError("Start Date is invalid");if(isNaN(a.getTime()))throw new RangeError("End Date is invalid");var n={};n.years=Math.abs(ho(a,e));var r=N(a,e),s=G(e,{years:r*n.years});n.months=Math.abs(ua(a,s));var o=G(s,{months:r*n.months});n.days=Math.abs(io(a,o));var c=G(o,{days:r*n.days});n.hours=Math.abs(lo(a,c));var u=G(c,{hours:r*n.hours});n.minutes=Math.abs(co(a,u));var f=G(u,{minutes:r*n.minutes});return n.seconds=Math.abs(pa(a,f)),n}function $l(t,e){p(2,arguments);var a=h(t),n=h(e);return a.getTime()===n.getTime()}function Rl(t,e,a){p(2,arguments);var n=et(t,a),r=et(e,a);return n.getTime()===r.getTime()}function Ml(t,e){p(2,arguments);var a=h(t),n=h(e);return a.getFullYear()===n.getFullYear()}function Nl(t,e){return p(1,arguments),Rl(t,Date.now(),e)}function Pl(t){return p(1,arguments),Ml(t,Date.now())}function Bl(t){return p(1,arguments),ca(t,Date.now())}function Fl(t,e){p(2,arguments);var a=y(e);return Ee(t,-a)}function ql(t){return p(1,arguments),ca(t,Fl(Date.now(),1))}function Vl(t,e){p(2,arguments);var a=h(t),n=y(e),r=a.getFullYear(),s=a.getDate(),o=new Date(0);o.setFullYear(r,n,15),o.setHours(0,0,0,0);var c=xl(o);return a.setMonth(n,Math.min(s,c)),a}function Hl(t,e){if(p(2,arguments),W(e)!=="object"||e===null)throw new RangeError("values parameter must be an object");var a=h(t);return isNaN(a.getTime())?new Date(NaN):(e.year!=null&&a.setFullYear(e.year),e.month!=null&&(a=Vl(a,e.month)),e.date!=null&&a.setDate(y(e.date)),e.hours!=null&&a.setHours(y(e.hours)),e.minutes!=null&&a.setMinutes(y(e.minutes)),e.seconds!=null&&a.setSeconds(y(e.seconds)),e.milliseconds!=null&&a.setMilliseconds(y(e.milliseconds)),a)}function zl(t,e){p(2,arguments);var a=y(e);return ft(t,-a)}const ga=0,va="MMMM",at=t=>t?new Date(t):new Date,Wl=(t,e,a)=>{const n=at(JSON.parse(JSON.stringify(t))),r=[];for(let s=0;s<7;s++){const o=Ee(n,s),c=ue(o)!==e;r.push({text:o.getDate(),value:o,currentMonth:!c,isFirstDayOfMonth:o.getDate()===1&&!c,selected:a?o.getDate()===a&&!c:!1})}return r},Ul=(t,e)=>!t||!e?!1:$l(t,e),Kl=(t,e,a)=>{const n=[],r=at(new Date(e,t)),s=at(new Date(e,t+1,0)),c=et(r,{weekStartsOn:ga}),u=f=>{const g=Wl(f,t,a);if(n.push({days:g}),!n[n.length-1].days.some(d=>Ul(d.value,s))){const d=Ee(f,7);u(d)}};return u(c),n},jl=(t,e)=>{const a=[1,2,3,4,5,6,7].map(s=>new Intl.DateTimeFormat(t,{weekday:"short",timeZone:"UTC"}).format(new Date(`2017-01-0${s}T00:00:00+00:00`)).slice(0,2)),n=a.slice(0,e),r=a.slice(e+1,a.length);return[a[e]].concat(...r).concat(...n)},Yl=(t,e)=>$(new Date(2e3,t,1),e),Gl={name:"DtDatepickerMonthYearPicker",components:{DtIcon:l.DtIcon},props:{prevMonthLabel:{type:String,required:!0},nextMonthLabel:{type:String,required:!0},prevYearLabel:{type:String,required:!0},nextYearLabel:{type:String,required:!0},changeToLabel:{type:String,required:!0},selectedDate:{type:Date,required:!0}},emits:["calendar-days","focus-day","close-datepicker"],data(){return{selectMonth:ue(this.selectedDate),selectYear:tt(this.selectedDate),highlightedDay:null,focusPicker:0,focusRefs:[]}},computed:{calendarDays(){return Kl(this.selectMonth,this.selectYear,this.highlightedDay)},formattedMonth(){return(t,e)=>Yl(t,e)},MONTH_FORMAT(){return va}},watch:{selectMonth:{handler(){this.highlightDay(),this.$emit("calendar-days",this.calendarDays)},immediate:!0},selectYear:{handler(){this.highlightDay(),this.$emit("calendar-days",this.calendarDays)},immediate:!0}},mounted(){this.focusMonthYearPicker()},methods:{setDayRef(t){this.focusRefs.includes(t)||this.focusRefs.push(t)},focusMonthYearPicker(){this.focusRefs[0].focus()},handleKeyDown(t){switch(t.key){case"ArrowLeft":t.preventDefault(),this.focusPicker===0?(this.focusPicker=3,this.focusRefs[this.focusPicker].focus()):(this.focusPicker--,this.focusRefs[this.focusPicker].focus());break;case"ArrowRight":t.preventDefault(),this.focusPicker===3?(this.focusPicker=0,this.focusRefs[this.focusPicker].focus()):(this.focusPicker++,this.focusRefs[this.focusPicker].focus());break;case"ArrowDown":t.preventDefault(),this.$emit("focus-day");break;case"Tab":this.$emit("focus-day");break;case"Escape":this.$emit("close-datepicker");break}},highlightDay(){const t=tt(this.selectedDate),e=ue(this.selectedDate);t!==this.selectYear||e!==this.selectMonth?this.highlightedDay=null:this.highlightedDay=Ll(this.selectedDate)},changeMonth(t){const e=Hl(this.selectedDate,{month:this.selectMonth,year:this.selectYear}),a=++t?ft(e,1):zl(e,1);this.selectMonth=ue(a)},changeYear(t){this.selectYear=this.selectYear+t}}};var Zl=function(){var e=this,a=e._self._c;return a("div",{staticClass:"d-datepicker__month-year-picker"},[a("div",[a("button",{ref:n=>{n&&e.setDayRef(n)},attrs:{id:"prevYearButton",type:"button","aria-label":`${e.changeToLabel} ${e.prevYearLabel} ${e.selectYear-1}`},on:{click:function(n){return e.changeYear(-1)},keydown:function(n){return e.handleKeyDown(n)}}},[a("dt-icon",{attrs:{name:"chevrons-left",size:"400"}})],1),a("button",{ref:n=>{n&&e.setDayRef(n)},attrs:{id:"prevMonthButton",type:"button","aria-label":`${e.changeToLabel} ${e.prevMonthLabel} ${e.formattedMonth(e.selectMonth-1,e.MONTH_FORMAT)}`},on:{click:function(n){return e.changeMonth(-1)},keydown:function(n){return e.handleKeyDown(n)}}},[a("dt-icon",{attrs:{name:"chevron-left",size:"300"}})],1)]),a("div",[a("p",[e._v(" "+e._s(e.formattedMonth(e.selectMonth,e.MONTH_FORMAT))+" "+e._s(e.selectYear)+" ")])]),a("div",[a("button",{ref:n=>{n&&e.setDayRef(n)},attrs:{id:"nextMonthButton",type:"button","aria-label":`${e.changeToLabel} ${e.nextMonthLabel} ${e.formattedMonth(e.selectMonth+1,e.MONTH_FORMAT)}`},on:{click:function(n){return e.changeMonth(1)},keydown:function(n){return e.handleKeyDown(n)}}},[a("dt-icon",{attrs:{name:"chevron-right",size:"300"}})],1),a("button",{ref:n=>{n&&e.setDayRef(n)},attrs:{id:"nextYearButton",type:"button","aria-label":`${e.changeToLabel} ${e.nextYearLabel} ${e.selectYear+1}`},on:{click:function(n){return e.changeYear(1)},keydown:function(n){return e.handleKeyDown(n)}}},[a("dt-icon",{attrs:{name:"chevrons-right",size:"300"}})],1)])])},Xl=[],Ql=i.normalizeComponent(Gl,Zl,Xl,!1,null,null,null,null);const Jl=Ql.exports,ed={name:"DtDatepickerCalendar",props:{calendarDays:{type:Array,required:!0},locale:{type:String,required:!0},selectDayLabel:{type:String,required:!0}},emits:["select-date","focus-month-year-picker","close-datepicker"],data(){return{selectedDay:null,focusDay:0,daysRef:[]}},computed:{weekDays(){return jl(this.locale,ga)}},watch:{calendarDays(){this.focusDay=0,this.daysRef=[],this.selectedDay=null}},methods:{dayAriaLabel(t){return`${this.selectDayLabel} ${t.text} ${$(t.value,va)} ${tt(t.value)}`},setDayRef(t,e){!this.daysRef.includes(t)&&e&&this.daysRef.push(t)},handleKeyDown(t){switch(t.key){case"ArrowUp":t.preventDefault(),this.focusDay-=7;try{this.daysRef[this.focusDay].focus()}catch{this.$emit("focus-month-year-picker")}break;case"ArrowDown":t.preventDefault(),this.focusDay+=7;try{this.daysRef[this.focusDay].focus()}catch{this.$emit("focus-month-year-picker")}break;case"ArrowLeft":t.preventDefault(),this.focusDay>0&&(this.focusDay-=1,this.daysRef[this.focusDay].focus());break;case"ArrowRight":t.preventDefault(),this.focusDay<this.daysRef.length-1&&(this.focusDay+=1,this.daysRef[this.focusDay].focus());break;case"Tab":t.preventDefault(),this.$emit("focus-month-year-picker");break;case"Escape":this.$emit("close-datepicker");break}},focusFirstDay(){this.focusDay=0,this.daysRef[this.focusDay].focus()},selectDay(t){t.currentMonth&&(this.selectedDay=t.text,this.$emit("select-date",t.value))}}};var td=function(){var e=this,a=e._self._c;return a("div",{staticClass:"d-datepicker__calendar"},[a("div",{staticClass:"d-datepicker__week-day"},e._l(e.weekDays,function(n){return a("div",{key:n},[a("p",[e._v(" "+e._s(n)+" ")])])}),0),e._l(e.calendarDays,function(n,r){return a("div",{key:r,staticClass:"d-datepicker__week"},e._l(n.days,function(s,o){return a("button",{key:r+o,ref:c=>{c&&e.setDayRef(c,s.currentMonth)},refInFor:!0,staticClass:"d-datepicker__day",class:{"d-datepicker__day--disabled":!s.currentMonth,"d-datepicker__day--selected":e.selectedDay?s.text===e.selectedDay&&s.currentMonth:s.selected},attrs:{type:"button","aria-label":e.dayAriaLabel(s)},on:{click:function(c){return e.selectDay(s)},keydown:function(c){return e.handleKeyDown(c)}}},[e._v(" "+e._s(s.text)+" ")])}),0)})],2)},ad=[],nd=i.normalizeComponent(ed,td,ad,!1,null,null,null,null);const rd=nd.exports,sd={name:"DtDatepicker",components:{MonthYearPicker:Jl,Calendar:rd},props:{prevMonthLabel:{type:String,required:!0},nextMonthLabel:{type:String,required:!0},prevYearLabel:{type:String,required:!0},nextYearLabel:{type:String,required:!0},selectDayLabel:{type:String,required:!0},changeToLabel:{type:String,required:!0},locale:{type:String,default:"en-US"},selectedDate:{type:Date,default:()=>new Date}},emits:["selected-date","close-datepicker"],data(){return{calendarDays:[]}},methods:{updateCalendarDays(t){this.calendarDays=t}}};var id=function(){var e=this,a=e._self._c;return a("div",{staticClass:"d-datepicker"},[a("div",{staticClass:"d-datepicker--header"},[a("month-year-picker",{ref:"monthYearPicker",attrs:{"prev-month-label":e.prevMonthLabel,"next-month-label":e.nextMonthLabel,"prev-year-label":e.prevYearLabel,"next-year-label":e.nextYearLabel,"change-to-label":e.changeToLabel,"selected-date":e.selectedDate},on:{"calendar-days":e.updateCalendarDays,"focus-day":function(n){return e.$refs.calendar.focusFirstDay()},"close-datepicker":function(n){return e.$emit("close-datepicker")}}})],1),a("div",{staticClass:"d-datepicker--body"},[a("calendar",{ref:"calendar",attrs:{locale:e.locale,"calendar-days":e.calendarDays,"select-day-label":e.selectDayLabel},on:{"select-date":function(n){return e.$emit("selected-date",n)},"focus-month-year-picker":function(n){return e.$refs.monthYearPicker.focusMonthYearPicker()},"close-datepicker":function(n){return e.$emit("close-datepicker")}}})],1)])},od=[],ld=i.normalizeComponent(sd,id,od,!1,null,null,null,null);const dd=ld.exports;function cd(t){return $(t,"EEEE, MMMM d, yyyy")}function ud(t){return $(t,"MMMM d, yyyy")}function pd(t,e=!0){return $(t,e?"EEE, MMM d, yyyy":"MMM d, yyyy")}function fd(t,e=!1){return $(t,e?"MMM d":"MMMM d")}function hd(t){return $(t,"MM/dd/yy")}const md={name:"DtRecipeComboboxWithPopover",components:{DtCombobox:Ut,DtPopover:we,ComboboxLoadingList:zt,ComboboxEmptyList:Wt},mixins:[D],props:{label:{type:String,required:!0},labelVisible:{type:Boolean,default:!0},size:{type:String,default:null,validator:t=>Object.values(ot).includes(t)},description:{type:String,default:""},showList:{type:Boolean,default:null},listId:{type:String,default(){return i.getUniqueString()}},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(z).some(e=>e===t)},contentWidth:{type:String,default:null,validator:t=>dt.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=>re.includes(t)||t instanceof HTMLElement},transition:{type:String,default:"fade"}},emits:["select","escape","highlight","opened"],data(){return{DROPDOWN_PADDING_CLASSES:z,isListShown:!1,isInputFocused:!1,isListFocused:!1,externalAnchor:i.getUniqueString()}},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 n,r,s;const e=(r=(n=this.$refs.popover)==null?void 0:n.tip)==null?void 0:r.popper,a=this.$refs.input;(s=t.composedPath())!=null&&s.some(o=>[e,a].includes(o))||this.closeComboboxList()},openOnArrowKeyPress(){this.showList!==null||this.isListShown||!this.openWithArrowKeys||this.showComboboxList()}}};var _d=function(){var e=this,a=e._self._c;return a("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:n}){return[a("div",{ref:"input",attrs:{id:e.externalAnchor},on:{focusin:e.onFocusIn,keydown:[function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"up",38,r.key,["Up","ArrowUp"])?null:e.openOnArrowKeyPress(r)},function(r){return!r.type.indexOf("key")&&e._k(r.keyCode,"down",40,r.key,["Down","ArrowDown"])?null:e.openOnArrowKeyPress(r)}]}},[e._t("input",null,{inputProps:n,onInput:e.handleDisplayList})],2)]}},{key:"list",fn:function({opened:n,listProps:r,clearHighlightIndex:s}){return[a("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-appear":!0,"content-tabindex":null,modal:!1,"auto-focus":!1,"append-to":e.appendTo,transition:e.transition,"visually-hidden-close-label":e.visuallyHiddenCloseLabel,"visually-hidden-close":e.visuallyHiddenClose},on:{"update:open":function(o){e.isListShown=o},opened:function(o){return n(o,arguments[1])}},scopedSlots:e._u([e.$slots.header?{key:"headerContent",fn:function(){return[a("div",{ref:"header"},[e._t("header")],2)]},proxy:!0}:null,{key:"content",fn:function(){return[a("div",{ref:"listWrapper",class:[e.DROPDOWN_PADDING_CLASSES[e.padding],e.listClass],on:{mouseleave:s,focusout:s}},[e.loading?a("combobox-loading-list",e._b({},"combobox-loading-list",r,!1)):e.emptyList&&e.emptyStateMessage?a("combobox-empty-list",e._b({attrs:{message:e.emptyStateMessage}},"combobox-empty-list",r,!1)):e._t("list",null,{listProps:r})],2)]},proxy:!0},e.$slots.footer?{key:"footerContent",fn:function(){return[a("div",{ref:"footer"},[e._t("footer")],2)]},proxy:!0}:null],null,!0)})]}}],null,!0)},e.comboboxListeners))},gd=[],vd=i.normalizeComponent(md,_d,gd,!1,null,null,null,null);const ba=vd.exports,ya={EXTRA_SMALL:"xs",SMALL:"sm",DEFAULT:"md"},Sa={xs:"xs",sm:"xs",md:"sm"},Ca={xs:1.4,sm:.4,md:.2},bd={name:"DtRecipeComboboxMultiSelect",components:{DtRecipeComboboxWithPopover:ba,DtInput:l.DtInput,DtChip:pt,DtValidationMessages:l.DtValidationMessages},mixins:[D],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=>l.validationMessageValidator(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(ya).includes(t)},appendTo:{type:[HTMLElement,String],default:"body",validator:t=>re.includes(t)||t instanceof HTMLElement},transition:{type:String,default:"fade"}},emits:["input","select","remove","max-selected","keyup"],data(){return{value:"",popoverOffset:[0,4],showValidationMessages:!1,initialInputPadding:{},resizeWindowObserver:null,originalInputSize:null,CHIP_SIZES:Sa}},computed:{inputPlaceHolder(){var t;return((t=this.selectedItems)==null?void 0:t.length)>0?"":this.placeholder},chipListeners(){return{...this.$listeners,keyup:t=>{this.onChipKeyup(t),this.$emit("keyup",t)}}},inputListeners(){return{...this.$listeners,input:t=>{this.$emit("input",t),this.hasSuggestionList&&this.showComboboxList()},keyup:t=>{this.onInputKeyup(t),this.$emit("keyup",t)},click:t=>{this.hasSuggestionList&&this.showComboboxList()}}}},watch:{selectedItems:{async handler(){this.initSelectedItems()}},async label(){await this.$nextTick(),this.setChipsTopPosition()},async description(){await this.$nextTick(),this.setChipsTopPosition()},size:{async handler(){await this.$nextTick();const t=this.getInput();this.revertInputPadding(t),this.originalInputSize=t.getBoundingClientRect().height,this.setInputPadding(),this.setChipsTopPosition()}}},mounted(){this.resizeWindowObserver=new ResizeObserver(async()=>{this.setChipsTopPosition(),this.setInputPadding()}),this.resizeWindowObserver.observe(document.body),this.initSelectedItems()},beforeDestroy(){var t;(t=this.resizeWindowObserver)==null||t.unobserve(document.body)},methods:{async initSelectedItems(){await this.$nextTick(),this.setInputPadding(),this.setChipsTopPosition(),this.setInputMinWidth(),this.checkMaxSelected()},onChipRemove(t){var e;this.$emit("remove",t),(e=this.$refs.input)==null||e.focus()},onComboboxSelect(t){this.value="",this.$emit("select",t)},showComboboxList(){var t;this.showList==null&&((t=this.$refs.comboboxWithPopover)==null||t.showComboboxList())},closeComboboxList(){var t;this.showList==null&&((t=this.$refs.comboboxWithPopover)==null||t.closeComboboxList())},getChipButtons(){return this.$refs.chips&&this.$refs.chips.map(t=>t.$el.querySelector("button"))},getChips(){return this.$refs.chips&&this.$refs.chips.map(t=>t.$el)},getLastChipButton(){return this.$refs.chips&&this.getChipButtons()[this.getChipButtons().length-1]},getLastChip(){return this.$refs.chips&&this.getChips()[this.getChips().length-1]},getFirstChip(){return this.$refs.chips&&this.getChips()[0]},getInput(){var t;return(t=this.$refs.input)==null?void 0:t.$refs.input},onChipKeyup(t){var a;const e=(a=t.code)==null?void 0:a.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 a;const e=(a=t.code)==null?void 0:a.toLowerCase();this.selectedItems.length>0&&t.target.selectionStart===0&&(e==="backspace"||e==="arrowleft")&&this.moveFromInputToChip()},moveFromInputToChip(){var t;this.getLastChipButton().focus(),(t=this.$refs.input)==null||t.blur(),this.closeComboboxList()},moveFromChipToInput(){var t;this.getLastChipButton().blur(),(t=this.$refs.input)==null||t.focus(),this.showComboboxList()},navigateBetweenChips(t,e){var r;const a=this.getChipButtons().indexOf(t),n=e?a-1:a+1;n<0||n>=((r=this.$refs.chips)==null?void 0:r.length)||(this.getChipButtons()[a].blur(),this.getChipButtons()[n].focus(),this.closeComboboxList())},setChipsTopPosition(){const t=this.getInput();if(!t)return;const e=this.$refs.inputSlotWrapper,a=t.getBoundingClientRect().top-e.getBoundingClientRect().top,n=this.$refs.chipsWrapper;n.style.top=a-Ca[this.size]+"px"},setInputPadding(){const t=this.getLastChip(),e=this.getInput(),a=this.$refs.chipsWrapper;if(!e||(this.revertInputPadding(e),this.popoverOffset=[0,4],!t))return;const n=t.offsetLeft+this.getFullWidth(t);e.style.paddingLeft=n+"px";const r=a.getBoundingClientRect().height-4,s=t.offsetTop+2;r>this.originalInputSize&&(e.style.paddingTop=`${s}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 yd=function(){var e=this,a=e._self._c;return a("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:n}){return[a("span",{ref:"inputSlotWrapper",staticClass:"combobox__input-wrapper"},[a("span",{ref:"chipsWrapper",staticClass:"combobox__chip-wrapper"},e._l(e.selectedItems,function(r){return a("dt-chip",e._g({key:r,ref:"chips",refInFor:!0,staticClass:"combobox__chip",attrs:{"label-class":["d-chip__label"],"close-button-props":{ariaLabel:"close"},size:e.CHIP_SIZES[e.size]},on:{keyup:function(s){return!s.type.indexOf("key")&&e._k(s.keyCode,"backspace",void 0,s.key,void 0)?null:e.onChipRemove(r)},close:function(s){return e.onChipRemove(r)}}},e.chipListeners),[e._v(" "+e._s(r)+" ")])}),1),a("dt-input",e._g({ref:"input",staticClass:"combobox__input",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:n},model:{value:e.value,callback:function(r){e.value=r},expression:"value"}},e.inputListeners)),a("dt-validation-messages",{attrs:{"validation-messages":e.maxSelectedMessage,"show-messages":e.showValidationMessages}})],1)]}},e.$slots.header?{key:"header",fn:function(){return[a("div",{ref:"header"},[e._t("header")],2)]},proxy:!0}:null,{key:"list",fn:function(){return[a("div",{ref:"list",on:{mousedown:function(n){n.preventDefault()}}},[e.loading?a("div",{staticClass:"combobox__list--loading"},[e._v(" "+e._s(e.loadingMessage)+" ")]):e._t("list")],2)]},proxy:!0},e.$slots.footer?{key:"footer",fn:function(){return[a("div",{ref:"footer"},[e._t("footer")],2)]},proxy:!0}:null],null,!0)})},Sd=[],Cd=i.normalizeComponent(bd,yd,Sd,!1,null,"b2859861",null,null);const Id=Cd.exports,gt=["sm","md","lg","xl"],wd={name:"DtRecipeCallbarButton",components:{DtButton:l.DtButton,DtTooltip:i.DtTooltip},inheritAttrs:!1,props:{id:{type:String,default(){return i.utils.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||(void 0).$slots.default},buttonClass:{type:[String,Array,Object],default:""},textClass:{type:[String,Array,Object],default:""},buttonWidthSize:{type:String,default:"xl",validator:t=>gt.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"},callbarButtonListeners(){return{...this.$listeners,click:t=>this.$emit("click",t)}}}};var Ed=function(){var e=this,a=e._self._c;return a("dt-tooltip",{attrs:{id:e.id,offset:[0,8]},scopedSlots:e._u([{key:"anchor",fn:function(){return[a("span",{class:{"dt-recipe-callbar-button--disabled":e.disabled}},[a("dt-button",e._g(e._b({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},scopedSlots:e._u([{key:"icon",fn:function(){return[e._t("icon")]},proxy:!0}],null,!0)},"dt-button",e.$attrs,!1),e.callbarButtonListeners),[e._t("default")],2)],1)]},proxy:!0}],null,!0)},[e._t("tooltip")],2)},Dd=[],Od=i.normalizeComponent(wd,Ed,Dd,!1,null,null,null,null);const Ia=Od.exports,Td={name:"DtRecipeCallbarButtonWithPopover",components:{DtRecipeCallbarButton:Ia,DtPopover:we,DtButton:l.DtButton,DtIcon:l.DtIcon},inheritAttrs:!1,props:{id:{type:String,default(){return i.utils.getUniqueString()}},ariaLabel:{type:String,default:null,validator:t=>t||(void 0).$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=>gt.includes(t)},contentClass:{type:[String,Array,Object],default:""},openPopover:{type:Boolean,default:!1}},emits:["arrow-click","click","opened"],data(){return{open:!1}},computed:{showArrowButton(){return this.forceShowArrow||!this.disabled},isCompactMode(){return this.buttonWidthSize==="sm"||this.buttonWidthSize==="md"},showPopover(){return!this.openPopover||this.open?(this.syncOpenState(),!1):this.toggleOpen()}},methods:{arrowClick(t){return this.$emit("arrow-click",t),this.toggleOpen()},toggleOpen(){return this.open=!this.open},syncOpenState(){this.open=this.openPopover},buttonClick(t){this.$listeners.click?this.$emit("click",t):this.arrowClick(t)},onModalIsOpened(t){this.open=t,this.$emit("opened",t)}}};var kd=function(){var e=this,a=e._self._c;return a("div",{staticClass:"dt-recipe--callbar-button-with-popover"},[a("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?a("dt-popover",e._b({staticClass:"dt-recipe--callbar-button-with-popover--popover-wrapper",attrs:{id:e.id,modal:!1,open:e.open,placement:e.placement,"initial-focus-element":e.initialFocusElement,"show-close-button":e.showCloseButton,offset:[0,16],padding:"none","dialog-class":["dt-recipe--callbar-button-with-popover--popover",e.contentClass],"header-class":"d-d-flex d-ai-center d-fw-normal d-px12","open-popover":e.showPopover},on:{opened:e.onModalIsOpened},scopedSlots:e._u([{key:"anchor",fn:function(){return[a("dt-button",{class:["dt-recipe--callbar-button-with-popover--arrow",{"dt-recipe--callbar-button-with-popover--arrow--large":!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[a("dt-icon",{staticClass:"dt-recipe--callbar-button-with-popover--arrow__icon",attrs:{name:"chevron-up",size:"200"}})]},proxy:!0}],null,!1,982444464)})]},proxy:!0}],null,!1,3818376870)},"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)},Ld=[],xd=i.normalizeComponent(Td,kd,Ld,!1,null,null,null,null);const Ad=xd.exports,$d={name:"DtRecipeContactInfo",components:{DtAvatar:te,DtListItem:ae},props:{id:{type:String,default(){return i.utils.getUniqueString()}},role:{type:String,default:""},showAvatar:{type:Boolean,default:!0},avatarSrc:{type:String,default:""},avatarSeed:{type:String,default:null},avatarFullName:{type:String,default:""},avatarIcon:{type:String,default:null},avatarSize:{type:String,default:"lg"},avatarAriaLabel:{type:String,default:""},presence:{type:String,default:null},avatarList:{type:Array,default:null}},emits:["avatar-click"],methods:{avatarClick(){this.$emit("avatar-click")}}};var Rd=function(){var e=this,a=e._self._c;return a("dt-list-item",{staticClass:"dt-contact-info",attrs:{id:e.id,role:e.role,"element-type":"div","data-qa":"contact-info"},scopedSlots:e._u([{key:"left",fn:function(){return[e.showAvatar?a("button",{staticClass:"dt-contact-info__left",attrs:{"data-qa":"contact-info-left","aria-labelledby":e.avatarAriaLabel},on:{click:e.avatarClick}},[e.avatarList?a("span",{staticClass:"dt-contact-info--avatars"},e._l(e.avatarList,function(n,r){return a("dt-avatar",{key:r,attrs:{size:e.avatarSize,seed:n.seed,"full-name":n.fullName,"image-src":n.src,"icon-name":e.avatarIcon,"overlay-icon":n.icon,"overlay-text":n.text,"avatar-class":[{"d-mln24":r>0,"d-bc-brand":!!n.halo}]}})}),1):a("dt-avatar",{attrs:{size:e.avatarSize,"full-name":e.avatarFullName,"image-src":e.avatarSrc,"icon-name":e.avatarIcon,seed:e.avatarSeed,presence:e.presence}})],1):e._e()]},proxy:!0},{key:"default",fn:function(){return[a("div",{attrs:{"data-qa":"contact-info-header"}},[e._t("header")],2)]},proxy:!0},{key:"subtitle",fn:function(){return[a("div",{attrs:{"data-qa":"contact-info-subtitle"}},[e._t("subtitle")],2)]},proxy:!0},{key:"bottom",fn:function(){return[a("div",{attrs:{"data-qa":"contact-info-bottom"}},[e._t("bottom")],2)]},proxy:!0},{key:"right",fn:function(){return[a("div",{attrs:{"data-qa":"contact-info-right"}},[e._t("right")],2)]},proxy:!0}],null,!0)})},Md=[],Nd=i.normalizeComponent($d,Rd,Md,!1,null,"20548ad1",null,null);const Pd=Nd.exports,wa=["green300","green100","red200","red100","gold100","gold200","black100","white"],Bd={name:"DtRecipeTopBannerInfo",props:{colorCode:{type:String,default:"green300",validator:function(t){return wa.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 Fd=function(){var e=this,a=e._self._c;return a("div",{staticClass:"dt-top-banner-info",class:e.bannerInfoClass,attrs:{"data-qa":"banner-info"}},[a("div",{staticClass:"dt-top-banner-info__left"},[e._t("left")],2),a("div",{staticClass:"dt-top-banner-info__middle",attrs:{"data-qa":"banner-info--middle"}},[e._t("default")],2),a("div",{staticClass:"dt-top-banner-info__right"},[e._t("right")],2)])},qd=[],Vd=i.normalizeComponent(Bd,Fd,qd,!1,null,null,null,null);const Hd=Vd.exports,De="promptmenu",Oe="promptcollect",Te="promptplay",ke="gotoexpert",se="goto",Le="branch",xe="transfer",Ae="hangup",Ea={[De]:"keypad",[Oe]:"dialer",[Te]:"volume-2",[ke]:"expert-node",[Le]:"branch",[se]:"call-merge",[xe]:"transfer",[Ae]:"phone-hang-up"},zd={[De]:"Menu",[Oe]:"Collect",[Te]:"Play",[ke]:"Expert",[Le]:"Branch",[se]:"Go-to",[xe]:"Transfer",[Ae]:"Hangup"},k={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"}},Wd={[De]:k.PROMPT,[Oe]:k.PROMPT,[Te]:k.PROMPT,[ke]:k.LOGIC,[Le]:k.LOGIC,[se]:k.LOGIC,[xe]:k.TERMINAL,[Ae]:k.TERMINAL},Ud={name:"DtRecipeIvrNode",components:{DtCard:Ht,DtButton:l.DtButton,DtDropdown:Jt,DtIcon:l.DtIcon},props:{nodeType:{type:String,required:!0},nodeLabel:{type:String,required:!0},isSelected:{type:Boolean,default:!1},menuButtonAriaLabel:{type:String,required:!0},dtmfKey:{type:String,default:null}},emits:["click"],data(){return{isOpen:!1}},computed:{nodeIcon(){return Ea[this.nodeType]},headerColor(){const{normal:t,selected:e}=Wd[this.nodeType];return this.isSelected?e:t},isGotoNode(){return this.nodeType===se}},methods:{openMenu(){this.isOpen=!0}}};var Kd=function(){var e=this,a=e._self._c;return a("div",e._g({staticClass:"ivr_node"},e.$listeners),[e.dtmfKey?a("div",{staticClass:"ivr-connector ivr-connector--dtmf",class:{"ivr-connector--dtmf--selected":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?a("div",{staticClass:"ivr-connector",class:{"ivr-connector--selected":e.isSelected},attrs:{"data-qa":"dt-top-connector"}}):e._e(),a("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[a("div",{staticClass:"ivr_node__header-left"},[a("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[a("dt-icon",{class:["",{ivr_node__goto_icon:e.isGotoNode}],attrs:{name:e.nodeIcon,size:"200"}})]},proxy:!0}])}),a("p",{staticClass:"ivr_node__label",attrs:{"data-qa":"ivr-node-label"}},[e._v(" "+e._s(e.nodeLabel)+" ")])],1),a("dt-dropdown",{attrs:{placement:"bottom",open:e.isOpen},on:{"update:open":function(n){e.isOpen=n}},scopedSlots:e._u([{key:"anchor",fn:function(){return[a("dt-button",{attrs:{importance:"clear",kind:"muted","aria-label":e.menuButtonAriaLabel},on:{click:function(n){return n.stopPropagation(),n.preventDefault(),e.openMenu.apply(null,arguments)}},scopedSlots:e._u([{key:"icon",fn:function(){return[a("dt-icon",{attrs:{name:"more-vertical",size:"200"}})]},proxy:!0}])})]},proxy:!0},{key:"list",fn:function({close:n}){return[a("div",{staticClass:"ivr_node__dropdown-list"},[e._t("menuItems",null,{close:n})],2)]}}],null,!0)})]},proxy:!0},{key:"content",fn:function(){return[e._t("content")]},proxy:!0}],null,!0)})],2)},jd=[],Yd=i.normalizeComponent(Ud,Kd,jd,!1,null,null,null,null);const Gd=Yd.exports,Zd={name:"DtRecipeGroupedChip",components:{DtChip:pt},computed:{}};var Xd=function(){var e=this,a=e._self._c;return a("div",{staticClass:"dt-grouped-chip",attrs:{"data-qa":"grouped-chip"}},[a("dt-chip",{staticClass:"dt-chip-content dt-chip-content--left",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?a("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?a("div",{attrs:{"data-qa":"left-grouped-chip-content"}},[e._t("leftContent")],2):e._e()]},proxy:!0}],null,!0)}),a("dt-chip",{staticClass:"dt-chip-content dt-chip-content--right",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?a("div",{attrs:{"data-qa":"right-grouped-chip-icon"}},[e._t("rightIcon")],2):e._e()]},proxy:!0},{key:"default",fn:function(){return[e.$slots.rightContent?a("div",{attrs:{"data-qa":"right-grouped-chip-content"}},[e._t("rightContent")],2):e._e()]},proxy:!0}],null,!0)})],1)},Qd=[],Jd=i.normalizeComponent(Zd,Xd,Qd,!1,null,null,null,null);const ec=Jd.exports,tc={name:"DtRecipeSettingsMenuButton",components:{DtButton:l.DtButton,DtIcon:l.DtIcon},props:{updateAvailable:{type:Boolean,default:!1},ariaLabel:{type:String,required:!0}},emits:["click"]};var ac=function(){var e=this,a=e._self._c;return e.updateAvailable?a("dt-button",e._g({staticClass:"settings-menu-button-update",attrs:{importance:"outlined",size:"xs","icon-position":"right","aria-label":e.ariaLabel},scopedSlots:e._u([{key:"icon",fn:function(){return[a("dt-icon",{attrs:{name:"more-vertical",size:"300"}})]},proxy:!0}],null,!1,3418040308)},e.$listeners),[e._t("default")],2):a("dt-button",e._g({staticClass:"settings-menu-button",attrs:{importance:"clear",kind:"inverted","aria-label":e.ariaLabel},scopedSlots:e._u([{key:"icon",fn:function(){return[a("dt-icon",{attrs:{name:"more-vertical",size:"300"}})]},proxy:!0}])},e.$listeners))},nc=[],rc=i.normalizeComponent(tc,ac,nc,!1,null,"4ee1371d",null,null);const sc=rc.exports,S={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"},Da={[S.INBOX]:"inbox",[S.CONTACTS]:"contacts",[S.CHANNELS]:"hash",[S.THREADS]:"thread",[S.LOCKED_CHANNEL]:"lock",[S.QUICK_START]:"sparkle",[S.COACHING_GROUP]:"users",[S.COACHING_CENTER]:"external-link","locked channel unread":"lock-filled","channel unread":"hash-bold",[S.ASSIGNED]:"at-sign",[S.DIGITAL]:"message"},ee={"magenta-200":"d-bgc-magenta-200","green-200":"d-bgc-green-200","gold-300":"d-bgc-gold-300","purple-600":"d-bgc-purple-600","magenta-300":"d-bgc-magenta-300","purple-300":"d-bgc-purple-300","green-500":"d-bgc-green-500","purple-100":"d-bgc-purple-100","magenta-400":"d-bgc-magenta-400","magenta-100":"d-bgc-magenta-100","black-300":"d-bgc-black-300"},Oa="If type is contact center, color must be oneof the following:"+Object.keys(ee).join(", "),Ta=["300","200"],ic={name:"DtRecipeLeftbarGeneralRowIcon",components:{DtIcon:l.DtIcon},props:{type:{type:String,default:null},color:{type:String,default:null},iconSize:{type:String,default:"300"}},computed:{isIconType(){return![S.DIALBOT,S.CONTACT_CENTER].includes(this.type)},isContactCenterType(){return this.type===S.CONTACT_CENTER},isDialbotType(){return this.type===S.DIALBOT},getIconName(){return Da[this.type]},contactCenterIconClasses(){return["dt-leftbar-row__icon-cc",ee[this.color]]},dialbotClasses(){return["d-d-flex","d-ai-center","d-jc-center"]}}};var oc=function(){var e=this,a=e._self._c;return e.isIconType?a("dt-icon",{attrs:{name:e.getIconName,size:e.iconSize}}):e.isContactCenterType?a("div",{class:e.contactCenterIconClasses}):e.isDialbotType?a("div",{class:e.dialbotClasses,attrs:{"data-qa":"general-row-dialbot"}},[a("dt-icon",{attrs:{name:"dialbot",size:"500"}})],1):e._e()},lc=[],dc=i.normalizeComponent(ic,oc,lc,!1,null,null,null,null);const cc=dc.exports,uc={name:"DtRecipeGeneralRow",components:{DtEmojiTextWrapper:l.DtEmojiTextWrapper,DtBadge:be,DtIcon:l.DtIcon,DtButton:l.DtButton,DtTooltip:i.DtTooltip,DtRecipeLeftbarGeneralRowIcon:cc},inheritAttrs:!1,props:{type:{type:String,default:"inbox",validator:t=>Object.values(S).includes(t)},ariaLabel:{type:String,default:""},description:{type:String,required:!0},color:{type:String,default:null,validator:t=>Object.keys(ee).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=>Ta.includes(t)}},emits:["click","call"],data(){return{actionFocused:!1,labelWidth:"100%"}},computed:{leftbarGeneralRowClasses(){return["dt-leftbar-row",{"dt-leftbar-row--no-action":!this.hasCallButton,"dt-leftbar-row--has-unread":this.hasUnreads,"dt-leftbar-row--unread-count":this.showUnreadCount,"dt-leftbar-row--selected":this.selected,"dt-leftbar-row--muted":this.muted,"dt-leftbar-row--action-focused":this.actionFocused}]},getIcon(){switch(this.type){case S.CHANNELS:if(this.hasUnreads)return"channel unread";break;case S.LOCKED_CHANNEL:if(this.hasUnreads)return"locked channel unread";break}return this.type},getAriaLabel(){return this.ariaLabel?this.ariaLabel:i.safeConcatStrings([this.description,this.unreadCountTooltip,this.dndTextTooltip])},hasActions(){return this.dndText||this.activeVoiceChat||this.showUnreadCount||this.hasCallButton},showUnreadCount(){return!!this.unreadCount&&this.hasUnreads}},watch:{$props:{immediate:!0,deep:!0,async handler(){this.validateProps(),await this.$nextTick(),this.adjustLabelWidth()}}},mounted(){this.resizeObserver=new ResizeObserver(this.adjustLabelWidth),this.resizeObserver.observe(this.$el),this.adjustLabelWidth()},beforeDestroy:function(){this.resizeObserver.disconnect()},methods:{validateProps(){this.type===S.CONTACT_CENTER&&!Object.keys(ee).includes(this.color)&&console.error(Oa)},adjustLabelWidth(){var r,s,o,c,u,f;const t=((s=(r=this.$el)==null?void 0:r.querySelector(".dt-leftbar-row__primary"))==null?void 0:s.clientWidth)||0,e=((c=(o=this.$el)==null?void 0:o.querySelector(".dt-leftbar-row__omega"))==null?void 0:c.clientWidth)||0,a=((f=(u=this.$el)==null?void 0:u.querySelector(".dt-leftbar-row__alpha"))==null?void 0:f.clientWidth)||0,n=16;this.labelWidth=t-(e+a+n)+"px"}}};var pc=function(){var e=this,a=e._self._c;return a("div",{class:e.leftbarGeneralRowClasses,attrs:{"data-qa":"dt-leftbar-row"}},[a("a",e._g(e._b({staticClass:"dt-leftbar-row__primary",attrs:{"data-qa":"data-qa"in e.$attrs?e.$attrs["data-qa"]:"dt-leftbar-row-link","aria-label":e.getAriaLabel,title:e.description,href:"href"in e.$attrs?e.$attrs.href:"javascript:void(0)"}},"a",e.$attrs,!1),e.$listeners),[a("div",{staticClass:"dt-leftbar-row__alpha"},[e.isTyping?a("div",{staticClass:"dt-leftbar-row__is-typing"},[a("span"),a("span"),a("span")]):e._t("left",function(){return[a("dt-recipe-leftbar-general-row-icon",{attrs:{type:e.getIcon,color:e.color,"icon-size":e.iconSize,"data-qa":"dt-leftbar-row-icon"}})]})],2),a("div",{staticClass:"dt-leftbar-row__label",style:`flex-basis: ${e.labelWidth}`},[e._t("label",function(){return[a("dt-emoji-text-wrapper",{staticClass:"dt-leftbar-row__description",attrs:{"data-qa":"dt-leftbar-row-description",size:"200"}},[e._v(" "+e._s(e.description)+" ")])]})],2)]),e.hasActions?a("div",{staticClass:"dt-leftbar-row__omega"},[e.dndText?a("dt-tooltip",{attrs:{placement:"top",message:e.dndTextTooltip},scopedSlots:e._u([{key:"anchor",fn:function(){return[a("div",{ref:"dt-leftbar-row-dnd",staticClass:"dt-leftbar-row__dnd",attrs:{"data-qa":"dt-leftbar-row-dnd"}},[e._v(" "+e._s(e.dndText)+" ")])]},proxy:!0}],null,!1,490758222)}):e._e(),e.activeVoiceChat?a("div",{staticClass:"dt-leftbar-row__active-voice"},[a("dt-icon",{attrs:{size:"300",name:"waveform"}})],1):e.showUnreadCount?a("dt-tooltip",{attrs:{message:e.unreadCountTooltip,placement:"top"},scopedSlots:e._u([{key:"anchor",fn:function(){return[a("dt-badge",{staticClass:"dt-leftbar-row__unread-badge",attrs:{kind:"count",type:"bulletin","data-qa":"dt-leftbar-row-unread-badge"}},[e._v(" "+e._s(e.unreadCount)+" ")])]},proxy:!0}],null,!1,462525554)}):e._e(),e.hasCallButton?a("div",{staticClass:"dt-leftbar-row__action",attrs:{"data-qa":"dt-leftbar-row-action"}},[a("dt-tooltip",{attrs:{message:e.callButtonTooltip,placement:"top"},scopedSlots:e._u([{key:"anchor",fn:function(){return[a("dt-button",{staticClass:"dt-leftbar-row__action-button",attrs:{"data-qa":"dt-leftbar-row-action-call-button",circle:!0,size:"xs",kind:"inverted","aria-label":e.callButtonTooltip},on:{focus:function(n){e.actionFocused=!0},blur:function(n){e.actionFocused=!1},click:function(n){return n.stopPropagation(),e.$emit("call",n)}},scopedSlots:e._u([{key:"icon",fn:function(){return[a("dt-icon",{attrs:{name:"phone",size:"200"}})]},proxy:!0}],null,!1,990728611)})]},proxy:!0}],null,!1,4239858356)})],1):e._e()],1):e._e()])},fc=[],hc=i.normalizeComponent(uc,pc,fc,!1,null,"8577d0d5",null,null);const vt=hc.exports,mc={name:"DtRecipeGroupRow",components:{DtIcon:l.DtIcon,DtRecipeGeneralRow:vt},inheritAttrs:!1,props:{groupCountText:{type:String,default:""},names:{type:String,required:!0},unreadCount:{type:String,default:null},unreadCountTooltip:{type:String,default:null},hasUnreads:{type:Boolean,default:!1},selected:{type:Boolean,default:!1},isTyping:{type:Boolean,default:!1}},emits:["click"],computed:{ariaLabel(){return i.safeConcatStrings([this.groupCountText,this.names])}}};var _c=function(){var e=this,a=e._self._c;return a("dt-recipe-general-row",e._g(e._b({attrs:{description:e.names,"aria-label":e.ariaLabel,"unread-count":e.unreadCount,"has-unreads":e.hasUnreads,"unread-count-tooltip":e.unreadCountTooltip,selected:e.selected,"is-typing":e.isTyping},scopedSlots:e._u([{key:"left",fn:function(){return[a("dt-icon",{attrs:{name:"users",size:"300"}})]},proxy:!0}])},"dt-recipe-general-row",e.$attrs,!1),e.$listeners))},gc=[],vc=i.normalizeComponent(mc,_c,gc,!1,null,null,null,null);const bc=vc.exports,yc={name:"DtRecipeContactRow",components:{DtAvatar:te,DtRecipeGeneralRow:vt,DtEmojiTextWrapper:l.DtEmojiTextWrapper},inheritAttrs:!1,props:{avatarSrc:{type:String,default:""},avatarAlt:{type:String,default:""},avatarPresence:{type:String,default:null},avatarSeed:{type:String,default:null},presenceText:{type:String,default:""},name:{type:String,required:!0},userStatus:{type:String,default:""},muted:{type:Boolean,default:!1},unreadCount:{type:String,default:null},hasUnreads:{type:Boolean,default:!1},selected:{type:Boolean,default:!1},noInitials:{type:Boolean,default:!1},isTyping:{type:Boolean,default:!1},hasCallButton:{type:Boolean,default:!0},callButtonTooltip:{type:String,default:""},unreadCountTooltip:{type:String,default:""}},emits:["click","call"],computed:{presenceColorClass(){switch(this.avatarPresence){case"active":return"d-fc-success";case"busy":return"d-fc-critical";case"away":return"d-fc-warning";default:return}},contactDescription(){return i.safeConcatStrings([this.name,this.presenceText,this.userStatus])},iconName(){return this.noInitials?"user":null}}};var Sc=function(){var e=this,a=e._self._c;return a("dt-recipe-general-row",e._g(e._b({attrs:{"unread-count":e.unreadCount,description:e.contactDescription,"has-unreads":e.hasUnreads,selected:e.selected,"has-call-button":e.hasCallButton,muted:e.muted,"is-typing":e.isTyping,"call-button-tooltip":e.callButtonTooltip,"unread-count-tooltip":e.unreadCountTooltip},scopedSlots:e._u([{key:"left",fn:function(){return[a("dt-avatar",{attrs:{"full-name":e.name,"image-src":e.avatarSrc,"image-alt":e.avatarAlt,"icon-name":e.iconName,"icon-size":"200",size:"sm",seed:e.avatarSeed,presence:e.avatarPresence}})]},proxy:!0},{key:"label",fn:function(){return[a("dt-emoji-text-wrapper",{staticClass:"dt-leftbar-row__description",attrs:{"data-qa":"dt-leftbar-row-description",size:"200"}},[e._v(" "+e._s(e.name)+" ")]),a("div",{staticClass:"dt-leftbar-row__status"},[e.presenceText?a("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?a("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))},Cc=[],Ic=i.normalizeComponent(yc,Sc,Cc,!1,null,null,null,null);const wc=Ic.exports,ka=["up","down"],La=["mentions","messages"],Ec={name:"DtRecipeUnreadPill",components:{DtIcon:l.DtIcon},props:{kind:{type:String,required:!0,validator:t=>La.includes(t)},direction:{type:String,required:!0,validator:t=>ka.includes(t)}},emits:["click"]};var Dc=function(){var e=this,a=e._self._c;return a("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),[a("dt-icon",{attrs:{name:`arrow-${e.direction}`,size:"300"}}),a("span",{attrs:{"data-qa":"dt-leftbar-unread-pill__label"}},[e._t("default")],2)],1)},Oc=[],Tc=i.normalizeComponent(Ec,Dc,Oc,!1,null,null,null,null);const kc=Tc.exports,pe={NORMAL:"",SEARCHED:"d-bgc-warning-subtle",ERROR:"d-bgc-critical-subtle"},fe="NORMAL",Lc={name:"DtRecipeFeedItemRow",components:{DtAvatar:te,DtLazyShow:i.DtLazyShow,DtListItem:ae,DtBadge:be},mixins:[K],inheritAttrs:!1,props:{avatarSeed:{type:String,default:null},showHeader:{type:Boolean,default:!1},avatarImageUrl:{type:String,default:""},displayName:{type:String,default:""},time:{type:String,default:""},shortTime:{type:String,default:""},labelText:{type:String,default:""},isActive:{type:Boolean,default:!1},state:{type:String,default:fe,validator:t=>Object.keys(pe).includes(t)}},emits:["hover","focus","keydown"],data(){return{faded:!1}},computed:{feedListeners(){return{...this.$listeners,mouseenter:()=>this.setHover(!0),mouseleave:()=>this.setHover(!1),focusin:()=>this.setFocus(!0),focusout:()=>this.setFocus(!1),keydown:t=>{switch(t.code){case"Tab":this.trapFocus(t);break}this.$emit("keydown",t)}}},listItemClasses(){return["d-w100p","d-box-border","d-ps-relative","d-px16",{"d-bgc-secondary-opaque":this.isActive&&this.state===fe},pe[this.state],"dt-feed-item-row","d-t","d-tp-bgc"]}},methods:{trapFocus(t){this.focusTrappedTabPress(t)},setFocus(t){this.$emit("focus",t)},setHover(t){this.$emit("hover",t)},fade(){this.state===fe||this.faded===!0||(this.$refs.FeedItemRef.$el.classList.remove(pe[this.state]),this.faded=!0)}}};var xc=function(){var e=this,a=e._self._c;return a("dt-list-item",e._g(e._b({ref:"FeedItemRef",class:e.listItemClasses,attrs:{"navigation-type":"none","data-qa":"dt-feed-item-row"},scopedSlots:e._u([{key:"left",fn:function(){return[e.showHeader?e._t("avatar",function(){return[a("dt-avatar",{attrs:{"full-name":e.displayName,"image-src":e.avatarImageUrl,seed:e.avatarSeed}})]}):e._e(),e.showHeader?e._e():a("div",{directives:[{name:"show",rawName:"v-show",value:e.isActive,expression:"isActive"}],staticClass:"dt-feed-item-row__left-time",attrs:{"data-qa":"dt-feed-item-row--left-time"}},[e._v(" "+e._s(e.shortTime)+" ")])]},proxy:!0},{key:"bottom",fn:function(){return[a("div",{staticClass:"dt-feed-item-row__reactions",attrs:{"data-qa":"dt-feed-item-row--reactions"}},[e._t("reactions")],2),a("div",{staticClass:"dt-feed-item-row__threading"},[e._t("threading")],2)]},proxy:!0},{key:"right",fn:function(){return[a("div",{directives:[{name:"show",rawName:"v-show",value:e.isActive,expression:"isActive"}],staticClass:"dt-feed-item-row__menu",attrs:{"data-qa":"dt-feed-item-row--menu"}},[a("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),[a("article",[e.showHeader?a("div",{staticClass:"dt-feed-item-row__header",attrs:{"data-qa":"dt-feed-item-row--header"}},[a("p",{staticClass:"dt-feed-item-row__header__name"},[e._v(" "+e._s(e.displayName)+" ")]),a("time",{staticClass:"dt-feed-item-row__header__time"},[e._v(" "+e._s(e.time)+" ")]),e.labelText?a("dt-badge",{attrs:{text:e.labelText}}):e._e()],1):e._e(),a("span",{staticClass:"content-text-wrapper-class",attrs:{"data-qa":"dt-feed-item-row--content"}},[e._t("default")],2)])])},Ac=[],$c=i.normalizeComponent(Lc,xc,Ac,!1,null,"38d7dabd",null,null);const Rc=$c.exports,nt={default:"dt-recipe-feed-item-pill__border-default",ai:"dt-recipe-feed-item-pill__border-ai",critical:"dt-recipe-feed-item-pill__border-critical"},Mc={name:"DtRecipeFeedItemPill",components:{DtItemLayout:me,DtIcon:l.DtIcon,DtCollapsible:Kt},props:{iconName:{type:String,default:()=>""},title:{type:String,default:()=>""},wrapperClass:{type:[String,Array,Object],default:""},buttonClass:{type:[String,Array,Object],default:""},ariaLabel:{type:String,required:!0},toggleable:{type:Boolean,default:()=>!0},defaultToggled:{type:Boolean,default:()=>!1},borderColor:{type:String,default:"default",validator:t=>Object.keys(nt).includes(t)}},data(){return{hover:!1,expanded:this.defaultToggled}},computed:{computedIcon(){return this.toggleable&&this.hover?this.expanded?"chevron-down":"chevron-right":this.iconName},toggleableClass(){return this.toggleable?"d-c-pointer":""},borderClass(){return nt[this.borderColor]}},methods:{onClick(){this.toggleable&&(this.expanded=!this.expanded)}}};var Nc=function(){var e=this,a=e._self._c;return a("div",{class:["dt-recipe-feed-item-pill__border",e.borderClass,e.wrapperClass]},[a("div",{staticClass:"dt-recipe-feed-item-pill__wrapper"},[a("dt-collapsible",{attrs:{open:e.expanded},scopedSlots:e._u([{key:"anchor",fn:function(){return[a("button",{class:["dt-recipe-feed-item-pill__button",e.toggleableClass,e.buttonClass],attrs:{"data-qa":"dt-recipe-feed-item-pill","aria-label":e.ariaLabel},on:{focusin:function(n){e.hover=!0},focusout:function(n){e.hover=!1},mouseenter:function(n){e.hover=!0},mouseleave:function(n){e.hover=!1},click:e.onClick}},[a("dt-item-layout",{staticClass:"dt-recipe-feed-item-pill__layout",scopedSlots:e._u([{key:"left",fn:function(){return[a("dt-icon",{staticClass:"dt-recipe-feed-item-pill__icon",attrs:{"data-qa":"dt-recipe-feed-item-pill__icon",size:"300",name:e.computedIcon}})]},proxy:!0},{key:"subtitle",fn:function(){return[e._t("subtitle")]},proxy:!0},{key:"bottom",fn:function(){return[e._t("bottom")]},proxy:!0},{key:"right",fn:function(){return[e._t("right")]},proxy:!0}],null,!0)},[e._t("title",function(){return[a("span",{staticClass:"dt-recipe-feed-item-pill__title"},[e._v(e._s(e.title))])]})],2)],1)]},proxy:!0},{key:"content",fn:function(){return[a("div",{staticClass:"dt-recipe-feed-item-pill__content"},[e._t("content")],2)]},proxy:!0}],null,!0)})],1)])},Pc=[],Bc=i.normalizeComponent(Mc,Nc,Pc,!1,null,"ebc5dd1f",null,null);const Fc=Bc.exports,qc={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 Vc=function(){var e=this,a=e._self._c;return a("time",{staticClass:"dt-time-pill",attrs:{"data-qa":"dt-time-pill",dateTime:e.dateTime}},[e._v(" "+e._s(e.dateTimeDisplay)+" ")])},Hc=[],zc=i.normalizeComponent(qc,Vc,Hc,!1,null,null,null,null);const Wc=zc.exports,xa=["emojiUnicodeOrShortname","isSelected","ariaLabel","tooltip","num"],Uc={name:"DtRecipeEmojiRow",components:{DtTooltip:i.DtTooltip,DtButton:l.DtButton,DtEmoji:l.DtEmoji,DtEmojiTextWrapper:l.DtEmojiTextWrapper},mixins:[],props:{reactions:{type:Array,default:()=>[],validator:t=>{for(const e of t)if(!xa.every(n=>e[n]!==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 Kc=function(){var e=this,a=e._self._c;return a("span",{staticClass:"dt-emoji-row"},[e._l(e.reactions,function(n){return a("span",{key:n.unicodeOutput,attrs:{reaction:n}},[a("dt-tooltip",{staticClass:"dt-emoji-row__tooltip",attrs:{"content-class":"d-wmx464"},on:{shown:r=>e.emojiHovered(n,r)},scopedSlots:e._u([{key:"anchor",fn:function({attrs:r}){return[a("dt-button",{class:["dt-emoji-row__reaction",n.isSelected?"dt-emoji-row__reaction--selected":""],attrs:{importance:"clear",size:"sm","data-qa":"feed-item-reaction-button","aria-label":n.ariaLabel,attrs:r},on:{click:function(s){return e.emojiClicked(n)}}},[a("span",{staticClass:"dt-emoji-row__emoji"},[a("dt-emoji",{attrs:{size:"200",code:n.emojiUnicodeOrShortname}})],1),a("span",{staticClass:"dt-emoji-row__reaction-number"},[e._v(" "+e._s(n.num)+" ")])])]}}],null,!0)},[a("span",{attrs:{"aria-hidden":"true"}},[a("dt-emoji-text-wrapper",{attrs:{size:"200"}},[e._v(" "+e._s(n.tooltip)+" ")])],1)])],1)}),e._t("picker")],2)},jc=[],Yc=i.normalizeComponent(Uc,Kc,jc,!1,null,null,null,null);const Gc=Yc.exports,Zc={name:"DtProgressBar",props:{progressbarAriaLabel:{type:String,required:!0},progress:{type:Number,default:20}},data:()=>({circleCircumference:50}),computed:{cssVars(){return{"--stroke-dashoffset":this.circleCircumference-this.circleCircumference*this.progress/100,"--stroke-dasharray":this.circleCircumference}}},mounted(){this.circleCircumference=this.$refs.progressbarCircle.getTotalLength()}};var Xc=function(){var e=this,a=e._self._c;return a("div",{attrs:{role:"progressbar","aria-label":e.progressbarAriaLabel,tabindex:"-1","aria-valuenow":e.progress,"aria-valuemin":"0","aria-valuemax":"100"}},[a("svg",{staticClass:"progress-bar",style:e.cssVars},[a("circle",{ref:"progressbarCircle",staticClass:"progress-bar__circle",attrs:{r:"8",cx:"12",cy:"12"}}),a("circle",{staticClass:"progress-bar__circle",attrs:{r:"8",cx:"12",cy:"12"}})])])},Qc=[],Jc=i.normalizeComponent(Zc,Xc,Qc,!1,null,null,null,null);const eu=Jc.exports,tu={name:"DtImageCarousel",components:{DtImageViewer:ea,DtButton:l.DtButton,DtIcon:l.DtIcon,DtProgressBar:eu},props:{mediaItem:{type:Object,required:!0},index:{type:Number,required:!0},closeAriaLabel:{type:String,required:!0},clickToOpenAriaLabel:{type:String,required:!0},progressbarAriaLabel:{type:String,required:!0}},emits:["remove-media"],methods:{removeMediaItem(t){this.$emit("remove-media",t)}}};var au=function(){var e=this,a=e._self._c;return a("li",{staticClass:"dt-attachment-image"},[a("dt-image-viewer",{attrs:{"image-button-class":"dt-attachment-image__image-viewer","image-src":e.mediaItem.path,"image-alt":e.mediaItem.altText,"close-aria-label":e.closeAriaLabel,"aria-label":e.clickToOpenAriaLabel}}),a("div",{staticClass:"dt-attachment-image__top-right"},[e.mediaItem.isUploading?a("dt-progress-bar",{staticClass:"dt-attachment-image__progress-bar",attrs:{progress:e.mediaItem.progress,"progressbar-aria-label":e.progressbarAriaLabel}}):e._e(),a("dt-button",{staticClass:"dt-attachment-image__close-button",attrs:{id:`closeButton-${e.index}`,tabindex:"0",circle:"",size:"xs",importance:"clear","aria-label":e.closeAriaLabel},on:{click:function(n){return e.removeMediaItem(e.index)}},scopedSlots:e._u([{key:"icon",fn:function(){return[a("dt-icon",{attrs:{name:"close",size:"200"}})]},proxy:!0}])})],1)],1)},nu=[],ru=i.normalizeComponent(tu,au,nu,!1,null,null,null,null);const su=ru.exports,iu=64,ou={name:"DtRecipeAttachmentCarousel",components:{DtButton:l.DtButton,DtIcon:l.DtIcon,DtImageCarousel:su},mixins:[],props:{mediaList:{type:Array,default:()=>[]},closeAriaLabel:{type:String,required:!0},clickToOpenAriaLabel:{type:String,required:!0},progressbarAriaLabel:{type:String,required:!0},leftArrowAriaLabel:{type:String,required:!0},rightArrowAriaLabel:{type:String,required:!0}},emits:["remove-media"],data(){return{showCloseButton:{},showRightArrow:!0,showLeftArrow:!1,isMounted:!1}},computed:{filteredMediaList(){return this.mediaList.filter(t=>t.type==="image"||t.type==="video")}},mounted:function(){this.showLeftArrow=this.$refs.carousel.scrollLeft>0,this.showRightArrow=this.$refs.carousel.scrollWidth>this.$refs.carousel.clientWidth},methods:{onItemFocus(t){t.currentTarget.scrollIntoView({behavior:"smooth"})},mediaComponent(t){switch(t){case"image":return"dt-image-carousel";default:return null}},removeMediaItem(t){this.showRightArrow=this.$refs.carousel.scrollWidth>this.$refs.carousel.clientWidth+iu,this.$emit("remove-media",t)},closeButton(t,e){this.showCloseButton[e]=t},handleScroll(){const t=this.$refs.carousel;this.showLeftArrow=t.scrollLeft>0,this.showRightArrow=t.scrollLeft+t.clientWidth!==t.scrollWidth},leftScroll(){this.$refs.carousel.scrollTo({left:this.$refs.carousel.scrollLeft-100,behavior:"smooth"})},rightScroll(){this.$refs.carousel.scrollTo({left:this.$refs.carousel.scrollLeft+100,behavior:"smooth"})}}};var lu=function(){var e=this,a=e._self._c;return a("div",{staticClass:"dt-attachment-carousel",attrs:{role:"presentation"}},[e.mediaList.length>0?a("ul",{ref:"carousel",staticClass:"dt-attachment-carousel__media-list",on:{scroll:e.handleScroll}},e._l(e.filteredMediaList,function(n,r){return a(e.mediaComponent(n.type),{key:`media-${r}`,tag:"component",attrs:{index:r,"media-item":n,"close-aria-label":e.closeAriaLabel,"click-to-open-aria-label":e.clickToOpenAriaLabel,"progressbar-aria-label":e.progressbarAriaLabel},on:{"remove-media":function(s){return e.removeMediaItem(r)},focusin:e.onItemFocus}})}),1):e._e(),a("dt-button",{directives:[{name:"show",rawName:"v-show",value:e.showLeftArrow,expression:"showLeftArrow"}],staticClass:"dt-attachment-carousel__arrow dt-attachment-carousel__arrow--left",attrs:{tabindex:"-1","aria-label":e.leftArrowAriaLabel,circle:"",size:"xs",importance:"clear"},on:{click:e.leftScroll},scopedSlots:e._u([{key:"icon",fn:function(){return[a("dt-icon",{attrs:{name:"arrow-left",size:"100"}})]},proxy:!0}])}),a("dt-button",{directives:[{name:"show",rawName:"v-show",value:e.showRightArrow,expression:"showRightArrow"}],staticClass:"dt-attachment-carousel__arrow dt-attachment-carousel__arrow--right",attrs:{tabindex:"-1","aria-label":e.rightArrowAriaLabel,circle:"",size:"xs",importance:"clear"},on:{click:e.rightScroll},scopedSlots:e._u([{key:"icon",fn:function(){return[a("dt-icon",{attrs:{name:"arrow-right",size:"100"}})]},proxy:!0}])})],1)},du=[],cu=i.normalizeComponent(ou,lu,du,!1,null,null,null,null);const uu=cu.exports,rt={warning:"dt-recipe-callbox-badge--warning"},st={default:"dt-recipe-callbox--border-default",ai:"dt-recipe-callbox--border-ai",critical:"dt-recipe-callbox--border-critical"},pu={name:"DtRecipeCallbox",components:{DtBadge:be,DtAvatar:te},inheritAttrs:!1,props:{badgeText:{type:String,default:""},badgeColor:{type:String,default:null,validator:t=>t===null||Object.keys(rt).includes(t)},avatarSrc:{type:String,default:""},avatarFullName:{type:String,default:""},avatarSeed:{type:String,default:""},title:{type:String,default:""},borderColor:{type:String,default:"default",validator:t=>Object.keys(st).includes(t)},clickable:{type:Boolean,default:!1},isOnHold:{type:Boolean,default:!1}},emits:["click"],computed:{shouldShowAvatar(){return this.avatarFullName||this.avatarSrc},badgeClass(){return rt[this.badgeColor]},borderClass(){return st[this.borderColor]}},methods:{handleClick(t){this.clickable&&this.$emit("click",t)}}};var fu=function(){var e=this,a=e._self._c;return a("div",{staticClass:"dt-recipe-callbox",attrs:{"data-qa":"dt-recipe-callbox"}},[e.$slots.video?a("div",{staticClass:"dt-recipe-callbox--video",attrs:{"data-qa":"dt-recipe-callbox--video-wrapper"}},[e._t("video")],2):e._e(),a("div",{class:["dt-recipe-callbox--main-content",e.borderClass,{"dt-recipe-callbox--clickable":e.clickable}],attrs:{"data-qa":"dt-recipe-callbox--main-content"}},[a("div",{staticClass:"dt-recipe-callbox--main-content-top"},[e.shouldShowAvatar?a("dt-avatar",{attrs:{"avatar-class":"dt-recipe-callbox--avatar","image-src":e.avatarSrc,"full-name":e.avatarFullName,seed:e.avatarSeed,clickable:e.clickable,"overlay-icon":e.isOnHold?"pause":null,size:"sm"},on:{click:e.handleClick}}):e._e(),a("div",{staticClass:"dt-recipe-callbox--content"},[a(e.clickable?"button":"span",{tag:"component",staticClass:"dt-recipe-callbox--content-title",attrs:{"data-qa":"dt-recipe-callbox--title"},on:{click:e.handleClick}},[e._v(" "+e._s(e.title)+" ")]),e.$slots.badge||e.badgeText?a("div",{staticClass:"dt-recipe-callbox--content-badge",attrs:{"data-qa":"dt-recipe-callbox--badge-wrapper"}},[e._t("badge",function(){return[a("dt-badge",{class:e.badgeClass,attrs:{text:e.badgeText}})]})],2):e._e(),e.$slots.subtitle?a("div",{staticClass:"dt-recipe-callbox--content-subtitle",attrs:{"data-qa":"dt-recipe-callbox--subtitle-wrapper"}},[e._t("subtitle")],2):e._e()],1),e.$slots.right?a("div",{staticClass:"dt-recipe-callbox--right",attrs:{"data-qa":"dt-recipe-callbox--right-wrapper"}},[e._t("right")],2):e._e()],1),e.$slots.bottom?a("div",{staticClass:"dt-recipe-callbox--main-content-bottom",attrs:{"data-qa":"dt-recipe-callbox--bottom-wrapper"}},[e._t("bottom")],2):e._e()])])},hu=[],mu=i.normalizeComponent(pu,fu,hu,!1,null,"66800ae7",null,null);const _u=mu.exports;let P;function he(t,e){return bt(),$(t,e,{locale:P})}function gu(t,e){return bt(),kl(t,{locale:P,format:e})}function vu(t,e){return bt(),Ol(t,e,{locale:P})}function bu(){return P!==void 0}function bt(){if(!bu())throw new Error("Locale not set, please call setDateLocale(locale) and pass in a datefns locale object as the locale param before calling this function")}function yu(t){P=t}function Su(t){return he(t,"MMMM d, y")}function Cu(t){if(t<60)return vu(0,29*1e3);const e=Al({start:0,end:t*1e3});return gu(e,["hours","minutes"])}function kt(t){const e=new Intl.RelativeTimeFormat(P.code,{numeric:"auto"});return i.capitalizeFirstLetter(e.formatToParts(t,"day")[0].value,P.code)}function Iu(t){return Bl(t)?kt(0):ql(t)?kt(-1):Nl(t)?he(t,"EEEE"):Pl(t)?he(t,"EEEE, MMMM d"):he(t,"MMMM d, y")}exports.DEFAULT_VALIDATION_MESSAGE_TYPE=i.DEFAULT_VALIDATION_MESSAGE_TYPE;exports.DESCRIPTION_SIZE_TYPES=i.DESCRIPTION_SIZE_TYPES;exports.DtLazyShow=i.DtLazyShow;exports.DtTooltip=i.DtTooltip;exports.TOOLTIP_DELAY_MS=i.TOOLTIP_DELAY_MS;exports.TOOLTIP_DIRECTIONS=i.TOOLTIP_DIRECTIONS;exports.TOOLTIP_HIDE_ON_CLICK_VARIANTS=i.TOOLTIP_HIDE_ON_CLICK_VARIANTS;exports.TOOLTIP_KIND_MODIFIERS=i.TOOLTIP_KIND_MODIFIERS;exports.TOOLTIP_STICKY_VALUES=i.TOOLTIP_STICKY_VALUES;exports.VALIDATION_MESSAGE_TYPES=i.VALIDATION_MESSAGE_TYPES;exports.filterFormattedMessages=i.filterFormattedMessages;exports.formatMessages=i.formatMessages;exports.getUniqueString=i.getUniqueString;exports.getValidationState=i.getValidationState;exports.BUTTON_ICON_SIZES=l.BUTTON_ICON_SIZES;exports.BUTTON_IMPORTANCE_MODIFIERS=l.BUTTON_IMPORTANCE_MODIFIERS;exports.BUTTON_KIND_MODIFIERS=l.BUTTON_KIND_MODIFIERS;exports.BUTTON_SIZE_MODIFIERS=l.BUTTON_SIZE_MODIFIERS;exports.BUTTON_TYPES=l.BUTTON_TYPES;exports.DtButton=l.DtButton;exports.DtCheckableInputMixin=l.CheckableMixin;exports.DtGroupableInputMixin=l.GroupableMixin;exports.DtIcon=l.DtIcon;exports.DtInput=l.DtInput;exports.DtInputMixin=l.InputMixin;exports.DtSkeleton=l.DtSkeleton;exports.DtSkeletonListItem=l.DtSkeletonListItem;exports.DtSkeletonParagraph=l.DtSkeletonParagraph;exports.DtSkeletonShape=l.DtSkeletonShape;exports.DtSkeletonText=l.DtSkeletonText;exports.DtTab=l.DtTab;exports.DtTabGroup=l.DtTabGroup;exports.DtValidationMessages=l.DtValidationMessages;exports.ICON_POSITION_MODIFIERS=l.ICON_POSITION_MODIFIERS;exports.ICON_SIZE_MODIFIERS=l.ICON_SIZE_MODIFIERS;exports.INPUT_SIZES=l.INPUT_SIZES;exports.INPUT_TYPES=l.INPUT_TYPES;exports.INVALID_COMBINATION=l.INVALID_COMBINATION;exports.LINK_KIND_MODIFIERS=l.LINK_KIND_MODIFIERS;exports.LINK_VARIANTS=l.LINK_VARIANTS;exports.SKELETON_HEADING_HEIGHTS=l.SKELETON_HEADING_HEIGHTS;exports.SKELETON_RIPPLE_DURATION=l.SKELETON_RIPPLE_DURATION;exports.SKELETON_SHAPES=l.SKELETON_SHAPES;exports.SKELETON_SHAPE_SIZES=l.SKELETON_SHAPE_SIZES;exports.SKELETON_TEXT_TYPES=l.SKELETON_TEXT_TYPES;exports.TAB_IMPORTANCE_MODIFIERS=l.TAB_IMPORTANCE_MODIFIERS;exports.TAB_LIST_IMPORTANCE_MODIFIERS=l.TAB_LIST_IMPORTANCE_MODIFIERS;exports.TAB_LIST_KIND_MODIFIERS=l.TAB_LIST_KIND_MODIFIERS;exports.TAB_LIST_SIZES=l.TAB_LIST_SIZES;exports.validationMessageValidator=l.validationMessageValidator;exports.AVATAR_COLORS=Mt;exports.AVATAR_GROUP_VALIDATOR=qe;exports.AVATAR_ICON_SIZES=Rt;exports.AVATAR_KIND_MODIFIERS=At;exports.AVATAR_PRESENCE_SIZE_MODIFIERS=$t;exports.AVATAR_PRESENCE_STATES=Fe;exports.AVATAR_SIZE_MODIFIERS=le;exports.BADGE_DECORATION_MODIFIERS=ze;exports.BADGE_KIND_MODIFIERS=He;exports.BADGE_TYPE_MODIFIERS=Ve;exports.BREADCRUMBS_INVERTED_MODIFIER=qt;exports.BREADCRUMB_ITEM_SELECTED_MODIFIER=Ft;exports.BUTTON_GROUP_ALIGNMENT=We;exports.CALLBAR_BUTTON_VALID_WIDTH_SIZE=gt;exports.CALLBOX_BADGE_COLORS=rt;exports.CALLBOX_BORDER_COLORS=st;exports.CHIP_CLOSE_BUTTON_SIZE_MODIFIERS=na;exports.CHIP_ICON_SIZES=ra;exports.CHIP_SIZES=Sa;exports.CHIP_SIZE_MODIFIERS=Ge;exports.CHIP_TOP_POSITION=Ca;exports.COLOR_CODES=wa;exports.DEFAULT_FEED_ROW_STATE=fe;exports.DROPDOWN_PADDING_CLASSES=z;exports.DT_DESCRIPTION_LIST_DIRECTION=jt;exports.DT_STACK_DIRECTION=A;exports.DT_STACK_GAP=ne;exports.DT_STACK_RESPONSIVE_BREAKPOINTS=lt;exports.DtAvatar=te;exports.DtBadge=be;exports.DtBanner=An;exports.DtBreadcrumbItem=Vt;exports.DtBreadcrumbs=Vn;exports.DtButtonGroup=Kn;exports.DtCard=Ht;exports.DtCheckbox=ei;exports.DtCheckboxGroup=si;exports.DtChip=pt;exports.DtCodeblock=tr;exports.DtCollapsible=Kt;exports.DtCombobox=Ut;exports.DtDatepicker=dd;exports.DtDescriptionList=qr;exports.DtDropdown=Jt;exports.DtDropdownSeparator=cs;exports.DtImageViewer=ea;exports.DtInputGroup=ut;exports.DtInputGroupMixin=ta;exports.DtItemLayout=me;exports.DtKeyboardListNavigationMixin=it;exports.DtKeyboardShortcut=Ri;exports.DtLink=Pt;exports.DtListItem=ae;exports.DtListItemGroup=Ts;exports.DtModal=Is;exports.DtNotice=En;exports.DtNoticeAction=Ie;exports.DtNoticeContent=Se;exports.DtNoticeIcon=ye;exports.DtPagination=$s;exports.DtPopover=we;exports.DtPresence=xt;exports.DtRadio=Bs;exports.DtRadioGroup=zs;exports.DtRecipeAttachmentCarousel=uu;exports.DtRecipeCallbarButton=Ia;exports.DtRecipeCallbarButtonWithPopover=Ad;exports.DtRecipeCallbox=_u;exports.DtRecipeComboboxMultiSelect=Id;exports.DtRecipeComboboxWithPopover=ba;exports.DtRecipeContactInfo=Pd;exports.DtRecipeContactRow=wc;exports.DtRecipeEmojiRow=Gc;exports.DtRecipeFeedItemPill=Fc;exports.DtRecipeFeedItemRow=Rc;exports.DtRecipeGeneralRow=vt;exports.DtRecipeGroupRow=bc;exports.DtRecipeGroupedChip=ec;exports.DtRecipeIvrNode=Gd;exports.DtRecipeSettingsMenuButton=sc;exports.DtRecipeTimePill=Wc;exports.DtRecipeTopBannerInfo=Hd;exports.DtRecipeUnreadPill=kc;exports.DtRootLayout=Fi;exports.DtSelectMenu=vi;exports.DtStack=Gi;exports.DtTabPanel=Ys;exports.DtToast=Ii;exports.DtToggle=Ti;exports.FEED_ITEM_PILL_BORDER_COLORS=nt;exports.FEED_ROW_STATE_BACKGROUND_COLOR=pe;exports.IVR_NODE_BRANCH=Le;exports.IVR_NODE_EXPERT=ke;exports.IVR_NODE_GO_TO=se;exports.IVR_NODE_HANGUP=Ae;exports.IVR_NODE_ICON_TYPES=Ea;exports.IVR_NODE_LABELS=zd;exports.IVR_NODE_PROMPT_COLLECT=Oe;exports.IVR_NODE_PROMPT_MENU=De;exports.IVR_NODE_PROMPT_PLAY=Te;exports.IVR_NODE_TRANSFER=xe;exports.LABEL_SIZES=ot;exports.LEFTBAR_GENERAL_ROW_CONTACT_CENTER_COLORS=ee;exports.LEFTBAR_GENERAL_ROW_CONTACT_CENTER_VALIDATION_ERROR=Oa;exports.LEFTBAR_GENERAL_ROW_ICON_MAPPING=Da;exports.LEFTBAR_GENERAL_ROW_ICON_SIZES=Ta;exports.LEFTBAR_GENERAL_ROW_TYPES=S;exports.LIST_ITEM_NAVIGATION_TYPES=L;exports.LIST_ITEM_TYPES=de;exports.MODAL_BANNER_KINDS=Ye;exports.MODAL_KIND_MODIFIERS=Ke;exports.MODAL_SIZE_MODIFIERS=je;exports.MULTI_SELECT_SIZES=ya;exports.NOTICE_KINDS=U;exports.NOTICE_ROLES=Nt;exports.POPOVER_APPEND_TO_VALUES=re;exports.POPOVER_CONTENT_WIDTHS=dt;exports.POPOVER_DIRECTIONS=Vr;exports.POPOVER_HEADER_FOOTER_PADDING_CLASSES=Yt;exports.POPOVER_INITIAL_FOCUS_STRINGS=Zt;exports.POPOVER_PADDING_CLASSES=Ue;exports.POPOVER_ROLES=Gt;exports.POPOVER_STICKY_VALUES=Xt;exports.PRESENCE_STATES=V;exports.PRESENCE_STATES_LIST=Lt;exports.RADIO_INPUT_VALIDATION_CLASSES=aa;exports.REACTIONS_ATTRIBUTES=xa;exports.ROOT_LAYOUT_RESPONSIVE_BREAKPOINTS=da;exports.ROOT_LAYOUT_SIDEBAR_POSITIONS=Je;exports.SELECT_SIZE_MODIFIERS=Ze;exports.SELECT_STATE_MODIFIERS=sa;exports.SHORTCUTS_ALIASES_LIST=ki;exports.SHORTCUTS_ICON_ALIASES=H;exports.SHORTCUTS_ICON_SEPARATOR=la;exports.TOAST_MIN_DURATION=Xe;exports.TOAST_ROLES=ia;exports.TOGGLE_CHECKED_VALUES=oa;exports.TOGGLE_SIZE_MODIFIERS=Qe;exports.UNREAD_PILL_DIRECTIONS=ka;exports.UNREAD_PILL_KINDS=La;exports.durationInHHMM=Cu;exports.formatLong=cd;exports.formatMedium=ud;exports.formatNoYear=fd;exports.formatNumerical=hd;exports.formatShort=pd;exports.getDateMedium=Su;exports.relativeDate=Iu;exports.setDateLocale=yu;