@dialpad/dialtone 9.2.0 → 9.4.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 (127) 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 +5 -6
  23. package/dist/vue2/dialtone-vue.js +1757 -3809
  24. package/dist/vue2/directives.cjs +1 -1
  25. package/dist/vue2/directives.js +1 -1
  26. package/dist/vue2/emoji-BMxSCSLg.js +56039 -0
  27. package/dist/vue2/emoji-ZkNhBVKW.cjs +1 -0
  28. package/dist/vue2/emoji.cjs +1 -1
  29. package/dist/vue2/emoji.js +29 -27
  30. package/dist/vue2/emoji_picker-Qces1MZK.cjs +1 -0
  31. package/dist/vue2/emoji_picker-sjGJ0HVH.js +83604 -0
  32. package/dist/vue2/emoji_text_wrapper-Tni6PAOS.cjs +1 -0
  33. package/dist/vue2/emoji_text_wrapper-uHcCrlwz.js +91 -0
  34. package/dist/vue2/message_input.cjs +92 -0
  35. package/dist/vue2/message_input.js +13530 -0
  36. package/dist/vue2/stack-153kJjKj.cjs +2 -0
  37. package/dist/vue2/stack-DRdhbSNl.js +2336 -0
  38. package/dist/vue2/style.css +1 -1
  39. package/dist/vue2/{tooltip-_ykHbRFm.js → tooltip-PDBwUvGD.js} +17 -14
  40. package/dist/vue2/{tooltip-N61DaooE.cjs → tooltip-RmgCyjmY.cjs} +6 -6
  41. package/dist/vue2/types/common/dates.d.ts +1 -1
  42. package/dist/vue2/types/common/storybook_utils.d.ts +1 -1
  43. package/dist/vue2/types/common/storybook_utils.d.ts.map +1 -1
  44. package/dist/vue2/types/components/avatar/avatar.vue.d.ts +2 -2
  45. package/dist/vue2/types/components/badge/badge.vue.d.ts +8 -10
  46. package/dist/vue2/types/components/badge/badge.vue.d.ts.map +1 -1
  47. package/dist/vue2/types/components/checkbox/checkbox.vue.d.ts +7 -7
  48. package/dist/vue2/types/components/checkbox/checkbox.vue.d.ts.map +1 -1
  49. package/dist/vue2/types/components/checkbox_group/checkbox_group.vue.d.ts +1 -3
  50. package/dist/vue2/types/components/checkbox_group/checkbox_group.vue.d.ts.map +1 -1
  51. package/dist/vue2/types/components/combobox/combobox.vue.d.ts +7 -10
  52. package/dist/vue2/types/components/combobox/combobox.vue.d.ts.map +1 -1
  53. package/dist/vue2/types/components/emoji/emoji.vue.d.ts +2 -2
  54. package/dist/vue2/types/components/input_group/input_group.vue.d.ts +4 -9
  55. package/dist/vue2/types/components/input_group/input_group.vue.d.ts.map +1 -1
  56. package/dist/vue2/types/components/popover/popover.vue.d.ts +1 -4
  57. package/dist/vue2/types/components/popover/popover.vue.d.ts.map +1 -1
  58. package/dist/vue2/types/components/radio/radio.vue.d.ts +12 -2
  59. package/dist/vue2/types/components/radio/radio.vue.d.ts.map +1 -1
  60. package/dist/vue2/types/components/radio_group/radio_group.vue.d.ts +6 -1
  61. package/dist/vue2/types/components/radio_group/radio_group.vue.d.ts.map +1 -1
  62. package/dist/vue2/types/components/toast/toast.vue.d.ts +1 -4
  63. package/dist/vue2/types/components/toast/toast.vue.d.ts.map +1 -1
  64. package/dist/vue2/types/index.d.ts +1 -1
  65. package/dist/vue2/types/message_input.d.ts +3 -0
  66. package/dist/vue2/types/message_input.d.ts.map +1 -0
  67. package/dist/vue2/types/recipes/buttons/callbar_button/callbar_button.vue.d.ts +6 -6
  68. package/dist/vue2/types/recipes/buttons/callbar_button_with_popover/callbar_button_with_popover.vue.d.ts +4 -4
  69. package/dist/vue2/types/recipes/conversation_view/attachment_carousel/attachment_carousel.vue.d.ts +80 -0
  70. package/dist/vue2/types/recipes/conversation_view/attachment_carousel/attachment_carousel.vue.d.ts.map +1 -0
  71. package/dist/vue2/types/recipes/conversation_view/attachment_carousel/attachment_carousel_constants.d.ts +6 -0
  72. package/dist/vue2/types/recipes/conversation_view/attachment_carousel/attachment_carousel_constants.d.ts.map +1 -0
  73. package/dist/vue2/types/recipes/conversation_view/attachment_carousel/index.d.ts +2 -0
  74. package/dist/vue2/types/recipes/conversation_view/attachment_carousel/index.d.ts.map +1 -0
  75. package/dist/vue2/types/recipes/conversation_view/attachment_carousel/media_components/image_carousel.vue.d.ts +47 -0
  76. package/dist/vue2/types/recipes/conversation_view/attachment_carousel/media_components/image_carousel.vue.d.ts.map +1 -0
  77. package/dist/vue2/types/recipes/conversation_view/attachment_carousel/media_components/progress_bar.vue.d.ts +30 -0
  78. package/dist/vue2/types/recipes/conversation_view/attachment_carousel/media_components/progress_bar.vue.d.ts.map +1 -0
  79. package/dist/vue2/types/recipes/conversation_view/message_input/index.d.ts +2 -0
  80. package/dist/vue2/types/recipes/conversation_view/message_input/index.d.ts.map +1 -0
  81. package/dist/vue2/types/recipes/conversation_view/message_input/message_input.vue.d.ts +354 -0
  82. package/dist/vue2/types/recipes/conversation_view/message_input/message_input.vue.d.ts.map +1 -0
  83. package/dist/vue2/types/recipes/conversation_view/message_input/message_input_constants.d.ts +6 -0
  84. package/dist/vue2/types/recipes/conversation_view/message_input/message_input_constants.d.ts.map +1 -0
  85. package/dist/vue3/component-documentation.json +1 -1
  86. package/dist/vue3/dialtone-vue.cjs +1 -1
  87. package/dist/vue3/dialtone-vue.js +12 -12
  88. package/dist/vue3/emoji-AfK6oyUP.cjs +1 -0
  89. package/dist/vue3/{emoji-1yDNLQQx.js → emoji-w7mkBLzY.js} +5115 -5059
  90. package/dist/vue3/emoji.cjs +1 -1
  91. package/dist/vue3/emoji.js +3 -3
  92. package/dist/vue3/{emoji_picker-sjmzGlSc.cjs → emoji_picker-4xiNkfJF.cjs} +1 -1
  93. package/dist/vue3/{emoji_picker-DCzVDeyC.js → emoji_picker-nLVt8cFZ.js} +1 -1
  94. package/dist/vue3/{emoji_text_wrapper-dcKiFm0_.cjs → emoji_text_wrapper-MBYdbA6A.cjs} +1 -1
  95. package/dist/vue3/{emoji_text_wrapper-N58kVmVI.js → emoji_text_wrapper-mBDw9Xy3.js} +1 -1
  96. package/dist/vue3/message_input.cjs +10 -10
  97. package/dist/vue3/message_input.js +162 -143
  98. package/dist/vue3/{stack-l0ciejd8.js → stack-FdfddyeK.js} +4 -2
  99. package/dist/vue3/{stack-eFs3WCJT.cjs → stack-w8PNJngT.cjs} +2 -2
  100. package/dist/vue3/style.css +1 -1
  101. package/dist/vue3/types/common/dates.d.ts +1 -1
  102. package/dist/vue3/types/components/badge/badge.vue.d.ts +8 -10
  103. package/dist/vue3/types/components/badge/badge.vue.d.ts.map +1 -1
  104. package/dist/vue3/types/components/checkbox/checkbox.vue.d.ts +7 -7
  105. package/dist/vue3/types/components/checkbox/checkbox.vue.d.ts.map +1 -1
  106. package/dist/vue3/types/components/checkbox_group/checkbox_group.vue.d.ts +8 -11
  107. package/dist/vue3/types/components/checkbox_group/checkbox_group.vue.d.ts.map +1 -1
  108. package/dist/vue3/types/components/combobox/combobox.vue.d.ts +11 -4
  109. package/dist/vue3/types/components/combobox/combobox.vue.d.ts.map +1 -1
  110. package/dist/vue3/types/components/emoji/emoji.vue.d.ts +2 -2
  111. package/dist/vue3/types/components/input_group/input_group.vue.d.ts +1 -3
  112. package/dist/vue3/types/components/input_group/input_group.vue.d.ts.map +1 -1
  113. package/dist/vue3/types/components/modal/modal.vue.d.ts +4 -1
  114. package/dist/vue3/types/components/modal/modal.vue.d.ts.map +1 -1
  115. package/dist/vue3/types/components/radio/radio.vue.d.ts +4 -4
  116. package/dist/vue3/types/components/radio/radio.vue.d.ts.map +1 -1
  117. package/dist/vue3/types/components/rich_text_editor/extensions/mentions/suggestion.d.ts.map +1 -1
  118. package/dist/vue3/types/components/toast/toast.vue.d.ts +1 -4
  119. package/dist/vue3/types/components/toast/toast.vue.d.ts.map +1 -1
  120. package/dist/vue3/types/recipes/buttons/callbar_button/callbar_button.vue.d.ts +6 -6
  121. package/dist/vue3/types/recipes/buttons/callbar_button_with_popover/callbar_button_with_popover.vue.d.ts +4 -4
  122. package/dist/vue3/types/recipes/conversation_view/message_input/message_input.vue.d.ts +7 -2
  123. package/dist/vue3/types/recipes/conversation_view/message_input/message_input.vue.d.ts.map +1 -1
  124. package/package.json +1 -1
  125. package/dist/vue2/emoji-Cr1KlTAT.cjs +0 -1
  126. package/dist/vue2/emoji-tPpc6ODh.js +0 -139701
  127. package/dist/vue3/emoji-_XsewxWh.cjs +0 -1
@@ -0,0 +1,2336 @@
1
+ import { n as a, g, a as P, u as x, b as $, B as L, c as D, i as R, d as N, e as F } from "./tooltip-PDBwUvGD.js";
2
+ import { t as p, I as V, L as z, w as H, x as C } from "./emoji-BMxSCSLg.js";
3
+ import u from "vue";
4
+ const r = {
5
+ BUSY: "busy",
6
+ AWAY: "away",
7
+ OFFLINE: "offline",
8
+ ACTIVE: "active"
9
+ }, B = [
10
+ r.BUSY,
11
+ r.AWAY,
12
+ r.OFFLINE,
13
+ r.ACTIVE
14
+ ], q = {
15
+ name: "DtPresence",
16
+ props: {
17
+ /**
18
+ * Determines the color of the inner presence circle, indicating status.
19
+ * Accepts one of 4 values: 'busy', 'away', 'active', 'offline'
20
+ * @values busy, away, active, offline
21
+ */
22
+ presence: {
23
+ type: String,
24
+ default: r.ACTIVE,
25
+ validator: (t) => B.includes(t)
26
+ },
27
+ /**
28
+ * Since Presence is a visual element, we need SRs to read out any state changes
29
+ * that occur.
30
+ * Text entered here will be read by assistive technology. If null this component will be ignored by AT.
31
+ */
32
+ srText: {
33
+ type: String,
34
+ default: null
35
+ }
36
+ }
37
+ };
38
+ var j = function() {
39
+ var e = this, s = e._self._c;
40
+ return s("div", { staticClass: "d-presence", attrs: { "data-qa": "dt-presence", role: "status", "aria-live": e.$attrs.ariaLive || "off" } }, [e.srText ? s("span", { staticClass: "sr-only", attrs: { "data-qa": "dt-presence-sr-text" } }, [e._v(e._s(e.srText) + " ")]) : e._e(), s("div", { staticClass: "d-presence__inner", class: {
41
+ "d-presence__inner--active": e.presence === "active",
42
+ "d-presence__inner--away": e.presence === "away",
43
+ "d-presence__inner--busy": e.presence === "busy",
44
+ "d-presence__inner--offline": e.presence === "offline"
45
+ } })]);
46
+ }, M = [], K = /* @__PURE__ */ a(
47
+ q,
48
+ j,
49
+ M,
50
+ !1,
51
+ null,
52
+ null,
53
+ null,
54
+ null
55
+ );
56
+ const W = K.exports, f = {
57
+ xs: "d-avatar--xs",
58
+ sm: "d-avatar--sm",
59
+ md: "d-avatar--md",
60
+ lg: "d-avatar--lg",
61
+ xl: "d-avatar--xl"
62
+ }, G = {
63
+ default: "",
64
+ icon: "d-avatar__icon",
65
+ initials: "d-avatar__initials"
66
+ }, U = {
67
+ md: "d-avatar__presence--md",
68
+ lg: "d-avatar__presence--lg"
69
+ }, _ = {
70
+ NONE: "",
71
+ BUSY: "busy",
72
+ AWAY: "away",
73
+ OFFLINE: "offline",
74
+ ACTIVE: "active"
75
+ }, Y = {
76
+ xs: "100",
77
+ sm: "200",
78
+ md: "300",
79
+ lg: "500",
80
+ xl: "600"
81
+ }, Z = [
82
+ "100",
83
+ "200",
84
+ "300",
85
+ "400",
86
+ "500",
87
+ "600",
88
+ "700",
89
+ "800",
90
+ "900",
91
+ "1000",
92
+ "1100",
93
+ "1200",
94
+ "1300",
95
+ "1400",
96
+ "1500",
97
+ "1600",
98
+ "1700",
99
+ "1800"
100
+ ], b = (t) => t > 1, X = [
101
+ "accessibility",
102
+ "activity",
103
+ "add-task",
104
+ "agent-assist",
105
+ "ai-notes",
106
+ "airplay",
107
+ "airtable",
108
+ "alarm-check",
109
+ "alarm-clock-off",
110
+ "alarm-minus",
111
+ "alarm-plus",
112
+ "album",
113
+ "alert-circle",
114
+ "alert-triangle",
115
+ "amex",
116
+ "app-store-badge",
117
+ "apple",
118
+ "archive",
119
+ "archive-restore",
120
+ "arrow-down",
121
+ "arrow-down-left",
122
+ "arrow-down-right",
123
+ "arrow-left",
124
+ "arrow-left-right",
125
+ "arrow-right",
126
+ "arrow-up",
127
+ "arrow-up-down",
128
+ "arrow-up-left",
129
+ "arrow-up-right",
130
+ "asana",
131
+ "asterisk",
132
+ "at-sign",
133
+ "ata-adapter",
134
+ "attestation",
135
+ "attestation-outline",
136
+ "axis-3d",
137
+ "bar-chart",
138
+ "bar-chart-2",
139
+ "bar-chart-3",
140
+ "bar-chart-4",
141
+ "bar-chart-horizontal",
142
+ "barge",
143
+ "baseline",
144
+ "battery",
145
+ "battery-charging",
146
+ "battery-full",
147
+ "battery-low",
148
+ "battery-medium",
149
+ "bell",
150
+ "bell-minus",
151
+ "bell-off",
152
+ "bell-plus",
153
+ "bell-ring",
154
+ "binary",
155
+ "bluetooth",
156
+ "bluetooth-connected",
157
+ "bluetooth-off",
158
+ "bluetooth-searching",
159
+ "blur-background",
160
+ "bold",
161
+ "book",
162
+ "book-open",
163
+ "bookmark",
164
+ "bookmark-minus",
165
+ "bookmark-plus",
166
+ "box",
167
+ "box-select",
168
+ "boxes",
169
+ "branch",
170
+ "brand-dialpad",
171
+ "brand-dialpad-meetings",
172
+ "briefcase",
173
+ "building",
174
+ "building-2",
175
+ "bullhorn",
176
+ "calculator",
177
+ "calendar",
178
+ "calendar-check",
179
+ "calendar-check-2",
180
+ "calendar-clock",
181
+ "calendar-days",
182
+ "calendar-heart",
183
+ "calendar-minus",
184
+ "calendar-off",
185
+ "calendar-plus",
186
+ "calendar-range",
187
+ "calendar-search",
188
+ "calendar-x",
189
+ "call-abandoned",
190
+ "call-merge",
191
+ "call-rejected",
192
+ "camera",
193
+ "camera-off",
194
+ "camera-tracking",
195
+ "cast",
196
+ "check",
197
+ "check-circle",
198
+ "check-circle-filled",
199
+ "chevron-down",
200
+ "chevron-first",
201
+ "chevron-last",
202
+ "chevron-left",
203
+ "chevron-right",
204
+ "chevron-up",
205
+ "chevrons-down",
206
+ "chevrons-down-up",
207
+ "chevrons-left",
208
+ "chevrons-left-right",
209
+ "chevrons-right",
210
+ "chevrons-right-left",
211
+ "chevrons-up",
212
+ "chevrons-up-down",
213
+ "circle-half-filled",
214
+ "circle-slashed",
215
+ "clipboard",
216
+ "clipboard-check",
217
+ "clipboard-copy",
218
+ "clipboard-edit",
219
+ "clipboard-list",
220
+ "clipboard-signature",
221
+ "clipboard-type",
222
+ "clipboard-x",
223
+ "clock",
224
+ "clock-1",
225
+ "clock-10",
226
+ "clock-11",
227
+ "clock-12",
228
+ "clock-2",
229
+ "clock-3",
230
+ "clock-4",
231
+ "clock-5",
232
+ "clock-6",
233
+ "clock-7",
234
+ "clock-8",
235
+ "clock-9",
236
+ "clockify",
237
+ "close",
238
+ "cloud",
239
+ "cloud-cog",
240
+ "cloud-drizzle",
241
+ "cloud-fog",
242
+ "cloud-hail",
243
+ "cloud-lightning",
244
+ "cloud-moon",
245
+ "cloud-moon-rain",
246
+ "cloud-off",
247
+ "cloud-rain",
248
+ "cloud-rain-wind",
249
+ "cloud-snow",
250
+ "cloud-sun",
251
+ "cloud-sun-rain",
252
+ "cloudy",
253
+ "coaching-hub",
254
+ "code",
255
+ "command",
256
+ "concierge-bell",
257
+ "contacts",
258
+ "copper-crm",
259
+ "copy",
260
+ "copyright",
261
+ "corner-down-left",
262
+ "corner-down-right",
263
+ "corner-left-down",
264
+ "corner-left-up",
265
+ "corner-right-down",
266
+ "corner-right-up",
267
+ "corner-up-left",
268
+ "corner-up-right",
269
+ "cpu",
270
+ "credit-card",
271
+ "dash",
272
+ "dect-base-station",
273
+ "dect-handset",
274
+ "delete",
275
+ "deskphone",
276
+ "dialbot",
277
+ "dialer",
278
+ "dialpad-ai",
279
+ "dialpad-ai-color",
280
+ "dialpad-logomark",
281
+ "digital-whisper",
282
+ "diners-club",
283
+ "discover",
284
+ "dissatisfied",
285
+ "double-check",
286
+ "download",
287
+ "download-cloud",
288
+ "dp-phone",
289
+ "edit",
290
+ "edit-2",
291
+ "empty",
292
+ "end-chat",
293
+ "equal",
294
+ "eraser",
295
+ "evernote",
296
+ "expand",
297
+ "expert-node",
298
+ "external-link",
299
+ "eye",
300
+ "eye-off",
301
+ "facebook",
302
+ "factory",
303
+ "fast-forward",
304
+ "file",
305
+ "file-audio",
306
+ "files",
307
+ "film",
308
+ "filter",
309
+ "fingerprint",
310
+ "flag",
311
+ "flag-off",
312
+ "flame",
313
+ "focus",
314
+ "folder",
315
+ "folder-tree",
316
+ "folders",
317
+ "food",
318
+ "form-input",
319
+ "forward",
320
+ "freshsales-crm",
321
+ "front",
322
+ "gamepad",
323
+ "gauge",
324
+ "gif-filled",
325
+ "gif-outline",
326
+ "giphy",
327
+ "globe-2",
328
+ "gmail",
329
+ "google-business-messaging",
330
+ "google-calendar",
331
+ "google-docs",
332
+ "google-drive",
333
+ "google-glyph",
334
+ "google-sheets",
335
+ "google-slides",
336
+ "greenhouse",
337
+ "grid",
338
+ "grip-horizontal",
339
+ "grip-vertical",
340
+ "hand",
341
+ "hard-drive",
342
+ "hash",
343
+ "hash-bold",
344
+ "haze",
345
+ "hd",
346
+ "headphones",
347
+ "hear",
348
+ "heart",
349
+ "help-circle",
350
+ "highfive",
351
+ "history",
352
+ "hold",
353
+ "home",
354
+ "hourglass",
355
+ "hubspot",
356
+ "image",
357
+ "import",
358
+ "inbox",
359
+ "indent",
360
+ "infinity",
361
+ "info",
362
+ "inspect",
363
+ "instagram",
364
+ "intercom",
365
+ "isolated-queries",
366
+ "italic",
367
+ "jcb",
368
+ "jira-service-desk",
369
+ "key",
370
+ "keyboard",
371
+ "keypad",
372
+ "languages",
373
+ "laptop-2",
374
+ "large-self-view",
375
+ "layout",
376
+ "layout-dashboard",
377
+ "layout-filmstrip",
378
+ "layout-grid",
379
+ "layout-template",
380
+ "library",
381
+ "life-buoy",
382
+ "lightbulb",
383
+ "lightbulb-off",
384
+ "lightning-bolt",
385
+ "line-chart",
386
+ "line-messenger",
387
+ "link-2",
388
+ "link-2-off",
389
+ "linkedin",
390
+ "list-add",
391
+ "list-bullet",
392
+ "list-checks",
393
+ "list-ordered",
394
+ "listen",
395
+ "listen",
396
+ "listening",
397
+ "live-queue",
398
+ "living-thing",
399
+ "loading",
400
+ "lock",
401
+ "lock-filled",
402
+ "log-in",
403
+ "log-out",
404
+ "maestro",
405
+ "mail",
406
+ "mail-open",
407
+ "mails",
408
+ "map",
409
+ "map-pin",
410
+ "mastercard",
411
+ "maximize",
412
+ "megaphone",
413
+ "megaphone-off",
414
+ "menu",
415
+ "message",
416
+ "messenger",
417
+ "mic",
418
+ "mic-off",
419
+ "microsoft",
420
+ "microsoft-dynamics-365",
421
+ "microsoft-teams",
422
+ "minimize",
423
+ "minimize-alt",
424
+ "minus-circle",
425
+ "miro",
426
+ "monday-com",
427
+ "monitor",
428
+ "monitor-off",
429
+ "monitor-speaker",
430
+ "moon",
431
+ "more-horizontal",
432
+ "more-vertical",
433
+ "mouse",
434
+ "multi-line-dept",
435
+ "music",
436
+ "music-off",
437
+ "network",
438
+ "neutral",
439
+ "newspaper",
440
+ "not-enough-queries",
441
+ "notes",
442
+ "object",
443
+ "office-365",
444
+ "option",
445
+ "package",
446
+ "paperclip",
447
+ "park",
448
+ "party-popper",
449
+ "past-conversations",
450
+ "pause",
451
+ "pause-circle",
452
+ "phone",
453
+ "phone-call",
454
+ "phone-forward",
455
+ "phone-hang-up",
456
+ "phone-hang-up",
457
+ "phone-hold",
458
+ "phone-incoming",
459
+ "phone-missed",
460
+ "phone-off",
461
+ "phone-outgoing",
462
+ "picture-in-picture",
463
+ "pie-chart",
464
+ "pin",
465
+ "pin-off",
466
+ "pipedrive",
467
+ "play",
468
+ "play-circle",
469
+ "play-filled",
470
+ "play-store-badge",
471
+ "plug",
472
+ "plus",
473
+ "plus-circle",
474
+ "power",
475
+ "print-fax",
476
+ "printer",
477
+ "puzzle",
478
+ "qr-code",
479
+ "queries",
480
+ "quote",
481
+ "record",
482
+ "record-filled",
483
+ "redo",
484
+ "refresh",
485
+ "repeat",
486
+ "reply",
487
+ "reply-all",
488
+ "rewind",
489
+ "rewind-15-sec",
490
+ "salesforce-glyph",
491
+ "salesforce-logo",
492
+ "satisfied",
493
+ "save",
494
+ "scan",
495
+ "scan-face",
496
+ "scissors",
497
+ "screen-share-off",
498
+ "scroll",
499
+ "search",
500
+ "send",
501
+ "servicenow",
502
+ "settings",
503
+ "share",
504
+ "share-2",
505
+ "share-screen",
506
+ "sheet",
507
+ "shield",
508
+ "shield-alert",
509
+ "shield-check",
510
+ "shield-close",
511
+ "shield-off",
512
+ "shortcuts",
513
+ "shuffle",
514
+ "sidebar",
515
+ "sidebar-close",
516
+ "sidebar-open",
517
+ "signal-best",
518
+ "signal-high",
519
+ "signal-low",
520
+ "signal-medium",
521
+ "signal-zero",
522
+ "siren",
523
+ "skip-15-sec",
524
+ "skip-back",
525
+ "skip-back-ten",
526
+ "skip-forward",
527
+ "skip-forward-ten",
528
+ "slack",
529
+ "slash",
530
+ "sliders",
531
+ "sliders-horizontal",
532
+ "small-self-view",
533
+ "smartphone",
534
+ "smartphone-charging",
535
+ "snapchat",
536
+ "snooze",
537
+ "snowflake",
538
+ "somewhat-dissatisfied",
539
+ "somewhat-satisfied",
540
+ "sort-asc",
541
+ "sort-desc",
542
+ "sparkle",
543
+ "speaker",
544
+ "star",
545
+ "star-filled",
546
+ "sticker",
547
+ "stop-circle",
548
+ "stop-filled",
549
+ "strikethrough",
550
+ "sun",
551
+ "sun-dim",
552
+ "sun-medium",
553
+ "sunrise",
554
+ "sunset",
555
+ "switch-to-cellular",
556
+ "switch-to-hd",
557
+ "table",
558
+ "tag",
559
+ "tags",
560
+ "takeover",
561
+ "task",
562
+ "telegram",
563
+ "text-cursor",
564
+ "text-cursor-input",
565
+ "thermometer",
566
+ "thermometer-snowflake",
567
+ "thermometer-sun",
568
+ "thread",
569
+ "threads",
570
+ "thumbs-down",
571
+ "thumbs-up",
572
+ "tiktok",
573
+ "timer",
574
+ "timer-off",
575
+ "timer-reset",
576
+ "toggl",
577
+ "too-many-queries",
578
+ "tools",
579
+ "toy-brick",
580
+ "transfer",
581
+ "transfer-webchat",
582
+ "transportation",
583
+ "trash",
584
+ "trending-down",
585
+ "trending-up",
586
+ "triangle",
587
+ "twitter",
588
+ "type",
589
+ "umbrella",
590
+ "underline",
591
+ "undo-2",
592
+ "union-pay",
593
+ "unlink-2",
594
+ "unlock",
595
+ "unlock-filled",
596
+ "unread",
597
+ "upload",
598
+ "upload-cloud",
599
+ "usb",
600
+ "user",
601
+ "user-check",
602
+ "user-minus",
603
+ "user-plus",
604
+ "user-rematch",
605
+ "user-remove",
606
+ "users",
607
+ "very-dissatisfied",
608
+ "very-satisfied",
609
+ "viber",
610
+ "video",
611
+ "video-off",
612
+ "video-settings",
613
+ "visa",
614
+ "voicemail",
615
+ "voicemail-drop",
616
+ "volume",
617
+ "volume-1",
618
+ "volume-2",
619
+ "volume-x",
620
+ "waveform",
621
+ "we-chat",
622
+ "webcam",
623
+ "webchat",
624
+ "whatsapp",
625
+ "whisper",
626
+ "wifi",
627
+ "wifi-off",
628
+ "wind",
629
+ "x-brand",
630
+ "x-circle",
631
+ "zap-off",
632
+ "zendesk",
633
+ "zoho",
634
+ "zoho-crm",
635
+ "zoho-desk",
636
+ "zoom",
637
+ "zoom-in",
638
+ "zoom-logo",
639
+ "zoom-out"
640
+ ];
641
+ function J() {
642
+ return [void 0, ...X];
643
+ }
644
+ const Q = (t) => {
645
+ if (typeof t != "string" || !t.trim())
646
+ return "";
647
+ const e = t.trim().split(/\s+/g);
648
+ return e.length === 1 ? e.join("").substring(0, 2) : e.filter((s, o) => o === 0 || o === e.length - 1).map((s) => s.slice(0, 1).toUpperCase()).join("");
649
+ }, ee = J(), te = {
650
+ name: "DtAvatar",
651
+ components: { DtPresence: W, DtIcon: p },
652
+ inheritAttrs: !1,
653
+ props: {
654
+ /**
655
+ * Id of the avatar content wrapper element
656
+ */
657
+ id: {
658
+ type: String,
659
+ default() {
660
+ return g();
661
+ }
662
+ },
663
+ /**
664
+ * Pass in a seed to get the random color generation based on that string. For example if you pass in a
665
+ * user ID as the string it will return the same randomly generated colors every time for that user.
666
+ */
667
+ seed: {
668
+ type: String,
669
+ default: void 0
670
+ },
671
+ /**
672
+ * Set the avatar background to a specific color. If undefined will randomize the color which can be deterministic
673
+ * if the seed prop is set.
674
+ */
675
+ color: {
676
+ type: String,
677
+ default: void 0
678
+ },
679
+ /**
680
+ * The size of the avatar
681
+ * @values xs, sm, md, lg, xl
682
+ */
683
+ size: {
684
+ type: String,
685
+ default: "md",
686
+ validator: (t) => Object.keys(f).includes(t)
687
+ },
688
+ /**
689
+ * Used to customize the avatar container
690
+ */
691
+ avatarClass: {
692
+ type: [String, Array, Object],
693
+ default: ""
694
+ },
695
+ /**
696
+ * Set classes on the avatar canvas. Wrapper around the core avatar image.
697
+ */
698
+ canvasClass: {
699
+ type: [String, Array, Object],
700
+ default: ""
701
+ },
702
+ /**
703
+ * Pass through classes. Used to customize the avatar icon
704
+ */
705
+ iconClass: {
706
+ type: [String, Array, Object],
707
+ default: ""
708
+ },
709
+ /**
710
+ * Determines whether to show the presence indicator for
711
+ * Avatar - accepts PRESENCE_STATES values: 'busy', 'away', 'offline',
712
+ * or 'active'. By default, it's null and nothing is shown.
713
+ * @values null, busy, away, offline, active
714
+ */
715
+ presence: {
716
+ type: String,
717
+ default: _.NONE,
718
+ validator: (t) => Object.values(_).includes(t)
719
+ },
720
+ /**
721
+ * A set of props to be passed into the presence component.
722
+ */
723
+ presenceProps: {
724
+ type: Object,
725
+ default: () => ({})
726
+ },
727
+ /**
728
+ * Determines whether to show a group avatar.
729
+ * Limit to 2 digits max, more than 99 will be rendered as “99+”.
730
+ * if the number is 1 or less it would just show the regular avatar as if group had not been set.
731
+ */
732
+ group: {
733
+ type: Number,
734
+ default: void 0,
735
+ validator: (t) => b(t)
736
+ },
737
+ /**
738
+ * The icon that overlays the avatar
739
+ */
740
+ overlayIcon: {
741
+ type: String,
742
+ default: ""
743
+ },
744
+ /**
745
+ * The text that overlays the avatar
746
+ */
747
+ overlayText: {
748
+ type: String,
749
+ default: ""
750
+ },
751
+ /**
752
+ * Used to customize the avatar overlay
753
+ */
754
+ overlayClass: {
755
+ type: [String, Array, Object],
756
+ default: ""
757
+ },
758
+ /**
759
+ * Source of the image
760
+ */
761
+ imageSrc: {
762
+ type: String,
763
+ default: ""
764
+ },
765
+ /**
766
+ * Alt attribute of the image, by default
767
+ * it'd be the full name
768
+ */
769
+ imageAlt: {
770
+ type: String,
771
+ default: ""
772
+ },
773
+ /**
774
+ * Icon name to be displayed on the avatar
775
+ */
776
+ iconName: {
777
+ type: String,
778
+ default: void 0,
779
+ validator: (t) => ee.includes(t)
780
+ },
781
+ /**
782
+ * Icon size to be displayed on the avatar
783
+ * @values 100, 200, 300, 400, 500, 600, 700, 800
784
+ */
785
+ iconSize: {
786
+ type: String,
787
+ default: "",
788
+ validator: (t) => !t || Object.keys(V).includes(t)
789
+ },
790
+ /**
791
+ * Full name used to extract initials and set alt attribute.
792
+ */
793
+ fullName: {
794
+ type: String,
795
+ default: ""
796
+ },
797
+ /**
798
+ * Makes the avatar focusable and clickable,
799
+ * emits a click event when clicked.
800
+ */
801
+ clickable: {
802
+ type: Boolean,
803
+ default: !1
804
+ }
805
+ },
806
+ emits: [
807
+ /**
808
+ * Avatar click event
809
+ *
810
+ * @event click
811
+ * @type {PointerEvent | KeyboardEvent}
812
+ */
813
+ "click"
814
+ ],
815
+ data() {
816
+ return {
817
+ AVATAR_SIZE_MODIFIERS: f,
818
+ AVATAR_KIND_MODIFIERS: G,
819
+ AVATAR_PRESENCE_SIZE_MODIFIERS: U,
820
+ AVATAR_ICON_SIZES: Y,
821
+ imageLoadedSuccessfully: null,
822
+ formattedInitials: "",
823
+ initializing: !1
824
+ };
825
+ },
826
+ computed: {
827
+ isNotIconType() {
828
+ return !this.iconName;
829
+ },
830
+ avatarClasses() {
831
+ return [
832
+ "d-avatar",
833
+ f[this.validatedSize],
834
+ this.avatarClass,
835
+ {
836
+ "d-avatar--group": this.showGroup,
837
+ [`d-avatar--color-${this.getColor()}`]: this.isNotIconType,
838
+ "d-avatar--clickable": this.clickable
839
+ }
840
+ ];
841
+ },
842
+ overlayClasses() {
843
+ return [
844
+ "d-avatar__overlay",
845
+ this.overlayClass
846
+ ];
847
+ },
848
+ showGroup() {
849
+ return b(this.group);
850
+ },
851
+ formattedGroup() {
852
+ return this.group > 99 ? "99+" : this.group;
853
+ },
854
+ validatedSize() {
855
+ return this.group ? "xs" : this.size;
856
+ },
857
+ showImage() {
858
+ return this.imageLoadedSuccessfully !== !1 && this.imageSrc;
859
+ },
860
+ buttonAriaLabel() {
861
+ if (this.clickable)
862
+ return this.fullName || this.imageAlt || this.$attrs["aria-label"];
863
+ }
864
+ },
865
+ watch: {
866
+ fullName: {
867
+ immediate: !0,
868
+ handler() {
869
+ this.formatInitials();
870
+ }
871
+ },
872
+ size: {
873
+ immediate: !0,
874
+ handler() {
875
+ this.formatInitials();
876
+ }
877
+ },
878
+ group: {
879
+ immediate: !0,
880
+ handler() {
881
+ this.formatInitials();
882
+ }
883
+ },
884
+ imageSrc(t) {
885
+ this.imageLoadedSuccessfully = null, t && (this.validateProps(), this.setImageListeners());
886
+ }
887
+ },
888
+ mounted() {
889
+ this.validateProps(), this.setImageListeners();
890
+ },
891
+ methods: {
892
+ async setImageListeners() {
893
+ await this.$nextTick();
894
+ const t = this.$refs.avatarImage;
895
+ t && (t.addEventListener("load", () => this._loadedImageEventHandler(t), { once: !0 }), t.addEventListener("error", () => this._erroredImageEventHandler(t), { once: !0 }));
896
+ },
897
+ formatInitials() {
898
+ const t = Q(this.fullName);
899
+ this.validatedSize === "xs" ? this.formattedInitials = "" : this.validatedSize === "sm" ? this.formattedInitials = t[0] : this.formattedInitials = t;
900
+ },
901
+ getColor() {
902
+ return this.color ?? P(Z, this.seed);
903
+ },
904
+ _loadedImageEventHandler(t) {
905
+ this.imageLoadedSuccessfully = !0, t.classList.remove("d-d-none");
906
+ },
907
+ _erroredImageEventHandler(t) {
908
+ this.imageLoadedSuccessfully = !1, t.classList.add("d-d-none");
909
+ },
910
+ validateProps() {
911
+ if (this.imageSrc && !(this.fullName || this.imageAlt))
912
+ throw new Error("full-name or image-alt must be set if image-src is provided");
913
+ },
914
+ handleClick(t) {
915
+ this.clickable && this.$emit("click", t);
916
+ }
917
+ }
918
+ };
919
+ var se = function() {
920
+ var e = this, s = e._self._c;
921
+ return s(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 } }, [s("div", { ref: "canvas", class: [
922
+ e.canvasClass,
923
+ "d-avatar__canvas",
924
+ { "d-avatar--image-loaded": e.imageLoadedSuccessfully }
925
+ ] }, [e.showImage ? s("img", { ref: "avatarImage", staticClass: "d-avatar__image", attrs: { "data-qa": "dt-avatar-image", src: e.imageSrc, alt: e.imageAlt || e.fullName } }) : e.iconName ? s("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" } }) : s("span", { class: [e.AVATAR_KIND_MODIFIERS.initials] }, [e._v(" " + e._s(e.formattedInitials) + " ")])], 1), e.overlayIcon || e.overlayText ? s("div", { class: e.overlayClasses }, [e.overlayIcon ? s("dt-icon", { staticClass: "d-avatar__overlay-icon", attrs: { name: e.overlayIcon } }) : e.overlayText ? s("p", { staticClass: "d-avatar__overlay-text" }, [e._v(" " + e._s(e.overlayText) + " ")]) : e._e()], 1) : e._e(), e.showGroup ? s("span", { staticClass: "d-avatar__count", attrs: { "data-qa": "dt-avatar-count" } }, [e._v(e._s(e.formattedGroup))]) : e._e(), e.presence && !e.showGroup ? s("dt-presence", e._b({ class: [
926
+ "d-avatar__presence",
927
+ e.AVATAR_PRESENCE_SIZE_MODIFIERS[e.size]
928
+ ], attrs: { presence: e.presence, "data-qa": "dt-presence" } }, "dt-presence", e.presenceProps, !1)) : e._e()], 1);
929
+ }, oe = [], ae = /* @__PURE__ */ a(
930
+ te,
931
+ se,
932
+ oe,
933
+ !1,
934
+ null,
935
+ null,
936
+ null,
937
+ null
938
+ );
939
+ const at = ae.exports, ne = {
940
+ name: "DtLink",
941
+ props: {
942
+ /**
943
+ * Applies the link variant styles
944
+ * @values null, danger, warning, success, muted, inverted
945
+ */
946
+ kind: {
947
+ type: String,
948
+ default: "",
949
+ validator(t) {
950
+ return z.includes(t);
951
+ }
952
+ }
953
+ },
954
+ emits: [
955
+ /**
956
+ * Native click event
957
+ *
958
+ * @event click
959
+ * @type {PointerEvent | KeyboardEvent}
960
+ */
961
+ "click",
962
+ /**
963
+ * Native focus in event
964
+ *
965
+ * @event focusin
966
+ * @type {FocusEvent}
967
+ */
968
+ "focusin",
969
+ /**
970
+ * Native focus out event
971
+ *
972
+ * @event focusout
973
+ * @type {FocusEvent}
974
+ */
975
+ "focusout"
976
+ ],
977
+ data() {
978
+ return {
979
+ LINK_KIND_MODIFIERS: H
980
+ };
981
+ }
982
+ };
983
+ var ie = function() {
984
+ var e = this, s = e._self._c;
985
+ return s("a", e._g({ class: [
986
+ "d-link",
987
+ e.LINK_KIND_MODIFIERS[e.kind]
988
+ ], attrs: { "data-qa": "dt-link", href: "href" in e.$attrs ? e.$attrs.href : "javascript:void(0)" } }, e.$listeners), [e._t("default")], 2);
989
+ }, re = [], le = /* @__PURE__ */ a(
990
+ ne,
991
+ ie,
992
+ re,
993
+ !1,
994
+ null,
995
+ null,
996
+ null,
997
+ null
998
+ );
999
+ const nt = le.exports, ce = {
1000
+ props: {
1001
+ /**
1002
+ * If true, a hidden close button is included for screen readers
1003
+ * @values true, false
1004
+ */
1005
+ visuallyHiddenClose: {
1006
+ type: Boolean,
1007
+ default: !1
1008
+ },
1009
+ /**
1010
+ * Label for the visually hidden close button
1011
+ * Required if visuallyHiddenClose is set to `true`
1012
+ */
1013
+ visuallyHiddenCloseLabel: {
1014
+ type: String,
1015
+ default: null
1016
+ }
1017
+ },
1018
+ watch: {
1019
+ $props: {
1020
+ immediate: !0,
1021
+ deep: !0,
1022
+ handler() {
1023
+ this.validateVisuallyHiddenCloseProps();
1024
+ }
1025
+ }
1026
+ },
1027
+ computed: {
1028
+ showVisuallyHiddenClose() {
1029
+ return this.visuallyHiddenClose && this.visuallyHiddenCloseLabel != null;
1030
+ }
1031
+ },
1032
+ methods: {
1033
+ validateVisuallyHiddenCloseProps() {
1034
+ this.visuallyHiddenClose && !this.visuallyHiddenCloseLabel && console.error(`If visuallyHiddenClose prop is true, the component includes
1035
+ a visually hidden close button and you must set the visuallyHiddenCloseLabel prop.`);
1036
+ }
1037
+ }
1038
+ }, de = {
1039
+ name: "SrOnlyCloseButton",
1040
+ components: {
1041
+ DtIcon: p,
1042
+ DtButton: C
1043
+ },
1044
+ props: {
1045
+ /**
1046
+ * Label for the visually hidden close button
1047
+ * Required if visuallyHiddenClose is set to `true`
1048
+ */
1049
+ visuallyHiddenCloseLabel: {
1050
+ type: String,
1051
+ default: null
1052
+ }
1053
+ },
1054
+ emits: ["close"],
1055
+ methods: {
1056
+ close() {
1057
+ this.$emit("close");
1058
+ }
1059
+ }
1060
+ };
1061
+ var ue = function() {
1062
+ var e = this, s = e._self._c;
1063
+ return s("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(o) {
1064
+ return !o.type.indexOf("key") && e._k(o.keyCode, "space", 32, o.key, [" ", "Spacebar"]) ? null : (o.preventDefault(), o.stopPropagation(), e.close.apply(null, arguments));
1065
+ } } }, [s("dt-icon", { attrs: { name: "close" } })], 1);
1066
+ }, pe = [], fe = /* @__PURE__ */ a(
1067
+ de,
1068
+ ue,
1069
+ pe,
1070
+ !1,
1071
+ null,
1072
+ null,
1073
+ null,
1074
+ null
1075
+ );
1076
+ const he = fe.exports, O = ':not(:disabled):not([aria-disabled="true"]):not([role="presentation"])', me = `${O}:not([tabindex="-1"])`, ge = "button,[href],input,select,textarea,details,[tabindex]", ye = {
1077
+ methods: {
1078
+ /**
1079
+ * get the first focusable element in your component, includes tabindex="-1".
1080
+ * @param {object} el - optional - ref of dom element to trap focus on.
1081
+ * will default to the root node of the vue component
1082
+ */
1083
+ async getFirstFocusableElement(t) {
1084
+ await this.$nextTick();
1085
+ const e = this._getFocusableElements(t, !0);
1086
+ return this._getFirstFocusElement(e);
1087
+ },
1088
+ /**
1089
+ * set focus to the first focusable element in your component, includes tabindex="-1".
1090
+ * @param {object} el - optional - ref of dom element to trap focus on.
1091
+ * will default to the root node of the vue component
1092
+ */
1093
+ async focusFirstElement(t = this.$el) {
1094
+ const e = await this.getFirstFocusableElement(t);
1095
+ e == null || e.focus({ preventScroll: !0 });
1096
+ },
1097
+ async focusElementById(t) {
1098
+ var s;
1099
+ await this.$nextTick();
1100
+ const e = (s = this.$el) == null ? void 0 : s.querySelector(t);
1101
+ if (e) {
1102
+ e.focus();
1103
+ return;
1104
+ }
1105
+ console.warn('Could not find the element specified in dt-modal prop "initialFocusElement". Defaulting to focusing the first element.'), await this.focusFirstElement();
1106
+ },
1107
+ /**
1108
+ * internal use only.
1109
+ *
1110
+ * @param focusableElements - list of focusable elements
1111
+ * @returns {*} - first DOM element that is focusable.
1112
+ * @private
1113
+ */
1114
+ _getFirstFocusElement(t) {
1115
+ if (!t.length)
1116
+ return;
1117
+ let e = t[0];
1118
+ return e.matches('[type="radio"]:not(:checked)') && (e = t.find((s) => s.checked && s.name === e.name) || e), e;
1119
+ },
1120
+ /**
1121
+ * internal use only.
1122
+ *
1123
+ * gets all the focusable elements within the component
1124
+ * and sets the first and last of those elements.
1125
+ *
1126
+ * @param {object} el - the root dom element to find focusable elements in.
1127
+ * @param {bool} includeNegativeTabIndex - will include tabindex="-1" in the list of focusable elements.
1128
+ */
1129
+ _getFocusableElements(t = this.$el, e = !1) {
1130
+ return t ? [...t.querySelectorAll(ge)].filter((o) => {
1131
+ const n = window.getComputedStyle(o);
1132
+ return n.getPropertyValue("display") !== "none" && n.getPropertyValue("visibility") !== "hidden" && o.matches(e ? O : me);
1133
+ }) : [];
1134
+ },
1135
+ /**
1136
+ * tabs to the next element contained within your component, does not include tabindex="-1".
1137
+ * @param {object} e - keypress event
1138
+ * @param {object} el - optional - ref of dom element to trap focus on.
1139
+ * will default to the root node of the vue component
1140
+ */
1141
+ focusTrappedTabPress(t, e) {
1142
+ if (!(t.key === "Tab"))
1143
+ return;
1144
+ const o = this._getFocusableElements(e);
1145
+ if (!o.length) {
1146
+ t.preventDefault();
1147
+ return;
1148
+ }
1149
+ const n = this._getFirstFocusElement(o), v = o[o.length - 1];
1150
+ t.shiftKey ? document.activeElement === n && (v.focus(), t.preventDefault()) : document.activeElement === v && (n.focus(), t.preventDefault());
1151
+ }
1152
+ }
1153
+ }, h = {
1154
+ DEFAULT: "default",
1155
+ CUSTOM: "custom"
1156
+ }, c = {
1157
+ ARROW_KEYS: "arrow-keys",
1158
+ TAB: "tab",
1159
+ NONE: "none"
1160
+ }, ve = {
1161
+ name: "DtItemLayout",
1162
+ props: {
1163
+ /**
1164
+ * Set this prop to render layout as a specific HTML element.
1165
+ */
1166
+ as: {
1167
+ type: String,
1168
+ default: "div"
1169
+ }
1170
+ }
1171
+ };
1172
+ var _e = function() {
1173
+ var e = this, s = e._self._c;
1174
+ return s(e.as, { tag: "component", staticClass: "dt-item-layout" }, [e.$slots.left ? s("section", { staticClass: "dt-item-layout--left", attrs: { "data-qa": "dt-item-layout-left-wrapper" } }, [e._t("left")], 2) : e._e(), s("section", { staticClass: "dt-item-layout--content", attrs: { "data-qa": "dt-item-layout-content-wrapper" } }, [e.$slots.default ? s("div", { staticClass: "dt-item-layout--title", attrs: { "data-qa": "dt-item-layout-title-wrapper" } }, [e._t("default")], 2) : e._e(), e.$slots.subtitle ? s("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 ? s("div", { staticClass: "dt-item-layout--bottom", attrs: { "data-qa": "dt-item-layout-bottom-wrapper" } }, [e._t("bottom")], 2) : e._e()]), e.$slots.right ? s("section", { staticClass: "dt-item-layout--right", attrs: { "data-qa": "dt-item-layout-right-wrapper" } }, [e._t("right")], 2) : e._e(), e.$slots.selected ? s("section", { staticClass: "dt-item-layout--selected", attrs: { "data-qa": "dt-item-layout-selected-wrapper" } }, [e._t("selected")], 2) : e._e()]);
1175
+ }, be = [], Se = /* @__PURE__ */ a(
1176
+ ve,
1177
+ _e,
1178
+ be,
1179
+ !1,
1180
+ null,
1181
+ "411cb81e",
1182
+ null,
1183
+ null
1184
+ );
1185
+ const S = Se.exports, Ee = {
1186
+ name: "DtListItem",
1187
+ components: {
1188
+ DtItemLayout: S,
1189
+ DtIcon: p
1190
+ },
1191
+ /**
1192
+ * Value provided from keyboard_list_navigation.js using id prop.
1193
+ */
1194
+ inject: {
1195
+ highlightId: { default: null }
1196
+ },
1197
+ props: {
1198
+ /**
1199
+ * Id for the item.
1200
+ */
1201
+ id: {
1202
+ type: String,
1203
+ default() {
1204
+ return x.getUniqueString();
1205
+ }
1206
+ },
1207
+ /**
1208
+ * String to use for the item's role.
1209
+ */
1210
+ role: {
1211
+ type: String,
1212
+ default: "listitem"
1213
+ },
1214
+ /**
1215
+ * HTML element type (tag name) of the content wrapper element.
1216
+ */
1217
+ elementType: {
1218
+ type: String,
1219
+ default: "li"
1220
+ },
1221
+ /**
1222
+ * The type of child list item to use.
1223
+ * @values default, custom
1224
+ */
1225
+ type: {
1226
+ type: String,
1227
+ default: h.DEFAULT,
1228
+ validator: (t) => Object.values(h).includes(t)
1229
+ },
1230
+ /**
1231
+ * The type of navigation that this component should support.
1232
+ * - "arrow-keys" for items that are navigated with UP/DOWN keys.
1233
+ * - "tab" for items that are navigated using the TAB key.
1234
+ * - "none" for static items that are not interactive.
1235
+ * @values arrow-keys, tab, none
1236
+ */
1237
+ navigationType: {
1238
+ type: String,
1239
+ default: c.NONE,
1240
+ validator: (t) => Object.values(c).includes(t)
1241
+ },
1242
+ /**
1243
+ * Applies selected styles to the list item
1244
+ */
1245
+ selected: {
1246
+ type: Boolean,
1247
+ default: !1
1248
+ }
1249
+ },
1250
+ emits: [
1251
+ /**
1252
+ * Native click event
1253
+ *
1254
+ * @event click
1255
+ * @type {PointerEvent | KeyboardEvent}
1256
+ */
1257
+ "click",
1258
+ /**
1259
+ * Key down event
1260
+ *
1261
+ * @event keydown
1262
+ * @type {KeyboardEvent}
1263
+ */
1264
+ "keydown",
1265
+ /**
1266
+ * Native mouse move event
1267
+ *
1268
+ * @event mousemove
1269
+ * @type {MouseEvent}
1270
+ */
1271
+ "mousemove",
1272
+ /**
1273
+ * Native mouse leave event
1274
+ *
1275
+ * @event mouseleave
1276
+ * @type {MouseEvent}
1277
+ */
1278
+ "mouseleave"
1279
+ ],
1280
+ data() {
1281
+ return {
1282
+ injected: !1,
1283
+ mouseHighlighted: !1
1284
+ };
1285
+ },
1286
+ computed: {
1287
+ listItemType() {
1288
+ switch (this.type) {
1289
+ case h.DEFAULT:
1290
+ return S;
1291
+ default:
1292
+ return null;
1293
+ }
1294
+ },
1295
+ listItemListeners() {
1296
+ return {
1297
+ ...this.$listeners,
1298
+ keydown: (t) => {
1299
+ ["enter", "space"].includes(t.code.toLowerCase()) && this.onClick(t), this.$emit("keydown", t);
1300
+ },
1301
+ mousemove: (t) => {
1302
+ this.onMouseHover(t), this.$emit("mousemove", t);
1303
+ },
1304
+ mouseleave: (t) => {
1305
+ this.onMouseLeave(t), this.$emit("mouseleave", t);
1306
+ }
1307
+ };
1308
+ },
1309
+ /**
1310
+ * For keyboard navigation, whether this item is currently highlighted.
1311
+ * An injected highlightId will override the default mouseover highlight.
1312
+ */
1313
+ isHighlighted() {
1314
+ return this.isHoverable ? this.highlightId && this.highlightId() ? this.id === this.highlightId() : this.mouseHighlighted : !1;
1315
+ },
1316
+ isFocusable() {
1317
+ return this.navigationType === c.TAB;
1318
+ },
1319
+ /**
1320
+ * Whether to apply hover styles.
1321
+ */
1322
+ isHoverable() {
1323
+ return this.navigationType !== c.NONE;
1324
+ }
1325
+ },
1326
+ methods: {
1327
+ onClick(t) {
1328
+ this.$emit("click", t);
1329
+ },
1330
+ onMouseHover() {
1331
+ this.mouseHighlighted = !0;
1332
+ },
1333
+ onMouseLeave() {
1334
+ this.mouseHighlighted = !1;
1335
+ }
1336
+ }
1337
+ };
1338
+ var ke = function() {
1339
+ var e = this, s = e._self._c;
1340
+ return s(e.elementType, e._g({ tag: "component", class: ["dt-list-item", {
1341
+ "dt-list-item--focusable": e.isFocusable,
1342
+ "dt-list-item--highlighted": e.isHighlighted,
1343
+ "dt-list-item--static": !e.isHoverable
1344
+ }], attrs: { id: e.id, tabindex: e.isFocusable ? 0 : -1, role: e.role, "aria-selected": e.isHighlighted } }, e.listItemListeners), [e.listItemType ? s(e.listItemType, { tag: "component", scopedSlots: e._u([e._l(e.$slots, function(o, n) {
1345
+ return { key: n, fn: function() {
1346
+ return [e._t(n)];
1347
+ }, proxy: !0 };
1348
+ }), e.selected ? { key: "selected", fn: function() {
1349
+ return [s("dt-icon", { staticClass: "dt-list-item--selected-icon", attrs: { name: "check", size: "400" } })];
1350
+ }, proxy: !0 } : null], null, !0) }) : e._t("default")], 2);
1351
+ }, we = [], Ce = /* @__PURE__ */ a(
1352
+ Ee,
1353
+ ke,
1354
+ we,
1355
+ !1,
1356
+ null,
1357
+ null,
1358
+ null,
1359
+ null
1360
+ );
1361
+ const it = Ce.exports, i = {
1362
+ default: "column",
1363
+ column: "column",
1364
+ row: "row",
1365
+ "row-reverse": "row-reverse",
1366
+ "column-reverse": "column-reverse"
1367
+ }, I = ["sm", "md", "lg", "xl"], y = ["0", "100", "200", "300", "400", "500", "600"], E = {
1368
+ none: void 0,
1369
+ small: "d-p4",
1370
+ medium: "d-p8",
1371
+ large: "d-p16"
1372
+ }, Oe = {
1373
+ none: void 0,
1374
+ small: "d-pl4",
1375
+ medium: "d-pl8",
1376
+ large: "d-pl16"
1377
+ }, Ie = ["dialog", "menu", "listbox", "tree", "grid"], Te = ["", "anchor"], Ae = ["none", "dialog", "first"], Pe = ["parent", "body"], xe = [
1378
+ ...$
1379
+ ], rt = [
1380
+ ...L
1381
+ ];
1382
+ let $e = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", Le = (t = 21) => {
1383
+ let e = "", s = t;
1384
+ for (; s--; )
1385
+ e += $e[Math.random() * 64 | 0];
1386
+ return e;
1387
+ };
1388
+ function d(t) {
1389
+ "@babel/helpers - typeof";
1390
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? d = function(e) {
1391
+ return typeof e;
1392
+ } : d = function(e) {
1393
+ return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
1394
+ }, d(t);
1395
+ }
1396
+ var T = {
1397
+ selector: "vue-portal-target-".concat(Le())
1398
+ }, De = function(e) {
1399
+ return T.selector = e;
1400
+ }, m = typeof window < "u" && (typeof document > "u" ? "undefined" : d(document)) !== void 0, Re = u.extend({
1401
+ // as an abstract component, it doesn't appear in
1402
+ // the $parent chain of components.
1403
+ // which means the next parent of any component rendered inside of this oen
1404
+ // will be the parent from which is was sent
1405
+ // @ts-expect-error
1406
+ abstract: !0,
1407
+ name: "PortalOutlet",
1408
+ props: ["nodes", "tag"],
1409
+ data: function(e) {
1410
+ return {
1411
+ updatedNodes: e.nodes
1412
+ };
1413
+ },
1414
+ render: function(e) {
1415
+ var s = this.updatedNodes && this.updatedNodes();
1416
+ return s ? s.length === 1 && !s[0].text ? s : e(this.tag || "DIV", s) : e();
1417
+ },
1418
+ destroyed: function() {
1419
+ var e = this.$el;
1420
+ e && e.parentNode.removeChild(e);
1421
+ }
1422
+ }), A = u.extend({
1423
+ name: "VueSimplePortal",
1424
+ props: {
1425
+ disabled: {
1426
+ type: Boolean
1427
+ },
1428
+ prepend: {
1429
+ type: Boolean
1430
+ },
1431
+ selector: {
1432
+ type: String,
1433
+ default: function() {
1434
+ return "#".concat(T.selector);
1435
+ }
1436
+ },
1437
+ tag: {
1438
+ type: String,
1439
+ default: "DIV"
1440
+ }
1441
+ },
1442
+ render: function(e) {
1443
+ if (this.disabled) {
1444
+ var s = this.$scopedSlots && this.$scopedSlots.default();
1445
+ return s ? s.length < 2 && !s[0].text ? s : e(this.tag, s) : e();
1446
+ }
1447
+ return e();
1448
+ },
1449
+ created: function() {
1450
+ this.getTargetEl() || this.insertTargetEl();
1451
+ },
1452
+ updated: function() {
1453
+ var e = this;
1454
+ this.$nextTick(function() {
1455
+ !e.disabled && e.slotFn !== e.$scopedSlots.default && (e.container.updatedNodes = e.$scopedSlots.default), e.slotFn = e.$scopedSlots.default;
1456
+ });
1457
+ },
1458
+ beforeDestroy: function() {
1459
+ this.unmount();
1460
+ },
1461
+ watch: {
1462
+ disabled: {
1463
+ immediate: !0,
1464
+ handler: function(e) {
1465
+ e ? this.unmount() : this.$nextTick(this.mount);
1466
+ }
1467
+ }
1468
+ },
1469
+ methods: {
1470
+ // This returns the element into which the content should be mounted.
1471
+ getTargetEl: function() {
1472
+ if (m)
1473
+ return document.querySelector(this.selector);
1474
+ },
1475
+ insertTargetEl: function() {
1476
+ if (m) {
1477
+ var e = document.querySelector("body"), s = document.createElement(this.tag);
1478
+ s.id = this.selector.substring(1), e.appendChild(s);
1479
+ }
1480
+ },
1481
+ mount: function() {
1482
+ if (m) {
1483
+ var e = this.getTargetEl(), s = document.createElement("DIV");
1484
+ this.prepend && e.firstChild ? e.insertBefore(s, e.firstChild) : e.appendChild(s), this.container = new Re({
1485
+ el: s,
1486
+ parent: this,
1487
+ propsData: {
1488
+ tag: this.tag,
1489
+ nodes: this.$scopedSlots.default
1490
+ }
1491
+ });
1492
+ }
1493
+ },
1494
+ unmount: function() {
1495
+ this.container && (this.container.$destroy(), delete this.container);
1496
+ }
1497
+ }
1498
+ });
1499
+ function Ne(t) {
1500
+ var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
1501
+ t.component(e.name || "portal", A), e.defaultSelector && De(e.defaultSelector);
1502
+ }
1503
+ typeof window < "u" && window.Vue && window.Vue === u && u.use(Ne);
1504
+ const Fe = {
1505
+ name: "PopoverHeaderFooter",
1506
+ components: {
1507
+ DtButton: C,
1508
+ DtIcon: p
1509
+ },
1510
+ props: {
1511
+ // eslint-disable-next-line vue/require-default-prop
1512
+ type: {
1513
+ type: String,
1514
+ validator: function(t) {
1515
+ return ["header", "footer"].includes(t);
1516
+ }
1517
+ },
1518
+ /**
1519
+ * Additional class name for the content wrapper element.
1520
+ */
1521
+ contentClass: {
1522
+ type: [String, Array, Object],
1523
+ default: ""
1524
+ },
1525
+ /**
1526
+ * Determines visibility for close button
1527
+ * @values true, false
1528
+ */
1529
+ showCloseButton: {
1530
+ type: Boolean,
1531
+ default: !1
1532
+ },
1533
+ /**
1534
+ * A set of props to be passed into the popover's header close button.
1535
+ * Requires an 'ariaLabel' property.
1536
+ */
1537
+ closeButtonProps: {
1538
+ type: Object,
1539
+ default: () => {
1540
+ }
1541
+ }
1542
+ },
1543
+ emits: [
1544
+ /**
1545
+ * Emitted when popover is closed
1546
+ *
1547
+ * @event close
1548
+ * @type { Boolean }
1549
+ */
1550
+ "close"
1551
+ ],
1552
+ methods: {
1553
+ focusCloseButton() {
1554
+ var e;
1555
+ const t = (e = this.$refs["popover__close-button"]) == null ? void 0 : e.$el;
1556
+ t == null || t.focus();
1557
+ }
1558
+ }
1559
+ };
1560
+ var Ve = function() {
1561
+ var e = this, s = e._self._c;
1562
+ return s("div", { class: {
1563
+ "d-popover__header": e.type === "header",
1564
+ "d-popover__footer": e.type === "footer"
1565
+ }, attrs: { "data-qa": "dt-popover-header-footer" } }, [e.$slots.content ? s("div", { class: [{
1566
+ "d-popover__header__content": e.type === "header",
1567
+ "d-popover__footer__content": e.type === "footer"
1568
+ }, e.contentClass], attrs: { "data-qa": "dt-popover-header-footer-content" } }, [e._t("content")], 2) : e._e(), e.showCloseButton ? s("dt-button", e._b({ ref: "popover__close-button", class: {
1569
+ "d-popover__header__close-button": e.type === "header",
1570
+ "d-popover__footer__close-button": e.type === "footer"
1571
+ }, attrs: { "data-qa": "dt-popover-close", importance: "outlined", kind: "muted", circle: "" }, on: { click: function(o) {
1572
+ return e.$emit("close");
1573
+ } }, scopedSlots: e._u([{ key: "icon", fn: function() {
1574
+ return [s("dt-icon", { attrs: { name: "close", size: "300" } })];
1575
+ }, proxy: !0 }], null, !1, 2538694920) }, "dt-button", e.closeButtonProps, !1)) : e._e()], 1);
1576
+ }, ze = [], He = /* @__PURE__ */ a(
1577
+ Fe,
1578
+ Ve,
1579
+ ze,
1580
+ !1,
1581
+ null,
1582
+ null,
1583
+ null,
1584
+ null
1585
+ );
1586
+ const Be = He.exports, qe = {
1587
+ name: "DtPopover",
1588
+ /********************
1589
+ * CHILD COMPONENTS *
1590
+ ********************/
1591
+ components: {
1592
+ SrOnlyCloseButton: he,
1593
+ DtLazyShow: D,
1594
+ PopoverHeaderFooter: Be,
1595
+ Portal: A
1596
+ },
1597
+ mixins: [ye, ce],
1598
+ props: {
1599
+ /**
1600
+ * Controls whether the popover is shown. Leaving this null will have the popover trigger on click by default.
1601
+ * If you set this value, the default trigger behavior will be disabled, and you can control it as you need.
1602
+ * Supports .sync modifier
1603
+ * @values null, true, false
1604
+ */
1605
+ open: {
1606
+ type: Boolean,
1607
+ default: null
1608
+ },
1609
+ /**
1610
+ * Opens the popover on right click (context menu). If you set this value to `true`,
1611
+ * the default trigger behavior will be disabled.
1612
+ * @values true, false
1613
+ */
1614
+ openOnContext: {
1615
+ type: Boolean,
1616
+ default: !1
1617
+ },
1618
+ /**
1619
+ * Element type (tag name) of the root element of the component.
1620
+ */
1621
+ elementType: {
1622
+ type: String,
1623
+ default: "div"
1624
+ },
1625
+ /**
1626
+ * Named transition when the content display is toggled.
1627
+ * @see DtLazyShow
1628
+ */
1629
+ transition: {
1630
+ type: String,
1631
+ default: "fade"
1632
+ },
1633
+ /**
1634
+ * ARIA role for the content of the popover. Defaults to "dialog".
1635
+ * <a class="d-link" href="https://www.w3.org/TR/wai-aria/#aria-haspopup" target="_blank">aria-haspopup</a>
1636
+ */
1637
+ role: {
1638
+ type: String,
1639
+ default: "dialog",
1640
+ validator: (t) => Ie.includes(t)
1641
+ },
1642
+ /**
1643
+ * ID of the element that serves as the label for the popover content.
1644
+ * Defaults to the "anchor" element; this exists to provide a different
1645
+ * ID of the label element if, for example, the anchor slot contains
1646
+ * other items that do not serve as a label. You should provide this
1647
+ * or ariaLabel, but not both.
1648
+ */
1649
+ ariaLabelledby: {
1650
+ type: String,
1651
+ default: null
1652
+ },
1653
+ /**
1654
+ * Descriptive label for the popover content. You should provide this
1655
+ * or ariaLabelledby, but not both.
1656
+ */
1657
+ ariaLabel: {
1658
+ type: String,
1659
+ default: null
1660
+ },
1661
+ /**
1662
+ * A set of props to be passed into the popover's header close button.
1663
+ * Requires an 'ariaLabel' property, when the header popover is visible
1664
+ */
1665
+ closeButtonProps: {
1666
+ type: Object,
1667
+ default: () => ({})
1668
+ },
1669
+ /**
1670
+ * Padding size class for the popover content.
1671
+ * @values none, small, medium, large
1672
+ */
1673
+ padding: {
1674
+ type: String,
1675
+ default: "large",
1676
+ validator: (t) => Object.keys(E).some((e) => e === t)
1677
+ },
1678
+ /**
1679
+ * Additional class name for the content wrapper element.
1680
+ */
1681
+ contentClass: {
1682
+ type: [String, Array, Object],
1683
+ default: ""
1684
+ },
1685
+ /**
1686
+ * Width configuration for the popover content. When its value is 'anchor',
1687
+ * the popover content will have the same width as the anchor.
1688
+ * @values null, anchor
1689
+ */
1690
+ contentWidth: {
1691
+ type: String,
1692
+ default: "",
1693
+ validator: (t) => Te.includes(t)
1694
+ },
1695
+ /**
1696
+ * Tabindex value for the content. Passing null, no tabindex attribute will be set.
1697
+ */
1698
+ contentTabindex: {
1699
+ type: Number || null,
1700
+ default: -1
1701
+ },
1702
+ /**
1703
+ * External anchor id to use in those cases the anchor can't be provided via the slot.
1704
+ * For instance, using the combobox's input as the anchor for the popover.
1705
+ */
1706
+ externalAnchor: {
1707
+ type: String,
1708
+ default: ""
1709
+ },
1710
+ /**
1711
+ * The id of the tooltip
1712
+ */
1713
+ id: {
1714
+ type: String,
1715
+ default() {
1716
+ return g();
1717
+ }
1718
+ },
1719
+ /**
1720
+ * Displaces the content box from its anchor element
1721
+ * by the specified number of pixels.
1722
+ * <a
1723
+ * class="d-link"
1724
+ * href="https://atomiks.github.io/tippyjs/v6/all-props/#offset"
1725
+ * target="_blank"
1726
+ * >
1727
+ * Tippy.js docs
1728
+ * </a>
1729
+ */
1730
+ offset: {
1731
+ type: Array,
1732
+ default: () => [0, 4]
1733
+ },
1734
+ /**
1735
+ * Determines if the popover hides upon clicking the
1736
+ * anchor or outside the content box.
1737
+ * @values true, false
1738
+ */
1739
+ hideOnClick: {
1740
+ type: Boolean,
1741
+ default: !0
1742
+ },
1743
+ /**
1744
+ * Determines modal state. If enabled popover has a modal overlay
1745
+ * preventing interaction with elements below it, but it is invisible.
1746
+ * @values true, false
1747
+ */
1748
+ modal: {
1749
+ type: Boolean,
1750
+ default: !0
1751
+ },
1752
+ /**
1753
+ * If the popover does not fit in the direction described by "placement",
1754
+ * it will attempt to change its direction to the "fallbackPlacements".
1755
+ * <a
1756
+ * class="d-link"
1757
+ * href="https://popper.js.org/docs/v2/modifiers/flip/#fallbackplacements"
1758
+ * target="_blank"
1759
+ * >
1760
+ * Popper.js docs
1761
+ * </a>
1762
+ * */
1763
+ fallbackPlacements: {
1764
+ type: Array,
1765
+ default: () => ["auto"]
1766
+ },
1767
+ /**
1768
+ * The direction the popover displays relative to the anchor.
1769
+ * <a
1770
+ * class="d-link"
1771
+ * href="https://atomiks.github.io/tippyjs/v6/all-props/#placement"
1772
+ * target="_blank"
1773
+ * >
1774
+ * Tippy.js docs
1775
+ * </a>
1776
+ * @values top, top-start, top-end,
1777
+ * right, right-start, right-end,
1778
+ * left, left-start, left-end,
1779
+ * bottom, bottom-start, bottom-end,
1780
+ * auto, auto-start, auto-end
1781
+ */
1782
+ placement: {
1783
+ type: String,
1784
+ default: "bottom-end"
1785
+ },
1786
+ /**
1787
+ * If set to false the dialog will display over top of the anchor when there is insufficient space.
1788
+ * If set to true it will never move from its position relative to the anchor and will clip instead.
1789
+ * <a
1790
+ * class="d-link"
1791
+ * href="https://popper.js.org/docs/v2/modifiers/prevent-overflow/#tether"
1792
+ * target="_blank"
1793
+ * >
1794
+ * Popper.js docs
1795
+ * </a>
1796
+ * @values true, false
1797
+ */
1798
+ tether: {
1799
+ type: Boolean,
1800
+ default: !0
1801
+ },
1802
+ /**
1803
+ * If the popover sticks to the anchor. This is usually not needed, but can be needed
1804
+ * if the reference element's position is animating, or to automatically update the popover
1805
+ * position in those cases the DOM layout changes the reference element's position.
1806
+ * `true` enables it, `reference` only checks the "reference" rect for changes and `popper` only
1807
+ * checks the "popper" rect for changes.
1808
+ * <a
1809
+ * class="d-link"
1810
+ * href="https://atomiks.github.io/tippyjs/v6/all-props/#sticky"
1811
+ * target="_blank"
1812
+ * >
1813
+ * Tippy.js docs
1814
+ * </a>
1815
+ * @values true, false, reference, popper
1816
+ */
1817
+ sticky: {
1818
+ type: [Boolean, String],
1819
+ default: !1,
1820
+ validator: (t) => xe.includes(t)
1821
+ },
1822
+ /**
1823
+ * Determines maximum height for the popover before overflow.
1824
+ * Possible units rem|px|em
1825
+ */
1826
+ maxHeight: {
1827
+ type: String,
1828
+ default: ""
1829
+ },
1830
+ /**
1831
+ * Determines maximum width for the popover before overflow.
1832
+ * Possible units rem|px|%|em
1833
+ */
1834
+ maxWidth: {
1835
+ type: String,
1836
+ default: ""
1837
+ },
1838
+ /**
1839
+ * Determines visibility for close button
1840
+ * @values true, false
1841
+ */
1842
+ showCloseButton: {
1843
+ type: Boolean,
1844
+ default: !1
1845
+ },
1846
+ /**
1847
+ * Additional class name for the header content wrapper element.
1848
+ */
1849
+ headerClass: {
1850
+ type: [String, Array, Object],
1851
+ default: ""
1852
+ },
1853
+ /**
1854
+ * Additional class name for the footer content wrapper element.
1855
+ */
1856
+ footerClass: {
1857
+ type: [String, Array, Object],
1858
+ default: ""
1859
+ },
1860
+ /**
1861
+ * Additional class name for the dialog element.
1862
+ */
1863
+ dialogClass: {
1864
+ type: [String, Array, Object],
1865
+ default: ""
1866
+ },
1867
+ /**
1868
+ * The element that is focused when the popover is opened. This can be an
1869
+ * HTMLElement within the popover, a string starting with '#' which will
1870
+ * find the element by ID. 'first' which will automatically focus
1871
+ * the first element, or 'dialog' which will focus the dialog window itself.
1872
+ * If the dialog is modal this prop cannot be 'none'.
1873
+ * @values none, dialog, first
1874
+ */
1875
+ initialFocusElement: {
1876
+ type: [String, HTMLElement],
1877
+ default: "first",
1878
+ validator: (t) => Ae.includes(t) || t instanceof HTMLElement || t.startsWith("#")
1879
+ },
1880
+ /**
1881
+ * If the popover should open pressing up or down arrow key on the anchor element.
1882
+ * This can be set when not passing open prop.
1883
+ * @values true, false
1884
+ */
1885
+ openWithArrowKeys: {
1886
+ type: Boolean,
1887
+ default: !1
1888
+ },
1889
+ /**
1890
+ * Sets the element to which the popover is going to append to.
1891
+ * 'body' will append to the nearest body (supports shadow DOM).
1892
+ * @values 'body', 'parent', HTMLElement,
1893
+ */
1894
+ appendTo: {
1895
+ type: [HTMLElement, String],
1896
+ default: "body",
1897
+ validator: (t) => Pe.includes(t) || t instanceof HTMLElement
1898
+ }
1899
+ },
1900
+ emits: [
1901
+ /**
1902
+ * Emitted when popover is shown or hidden
1903
+ *
1904
+ * @event opened
1905
+ * @type {Boolean | Array}
1906
+ */
1907
+ "opened",
1908
+ /**
1909
+ * Emitted to sync value with parent
1910
+ *
1911
+ * @event update:opened
1912
+ * @type {Boolean | Array}
1913
+ */
1914
+ "update:open"
1915
+ ],
1916
+ data() {
1917
+ return {
1918
+ POPOVER_PADDING_CLASSES: E,
1919
+ POPOVER_HEADER_FOOTER_PADDING_CLASSES: Oe,
1920
+ intersectionObserver: null,
1921
+ isOutsideViewport: !1,
1922
+ isOpen: !1,
1923
+ anchorEl: null,
1924
+ popoverContentEl: null
1925
+ };
1926
+ },
1927
+ computed: {
1928
+ popoverListeners() {
1929
+ return {
1930
+ ...this.$listeners,
1931
+ keydown: (t) => {
1932
+ this.onKeydown(t), this.$emit("keydown", t);
1933
+ },
1934
+ "after-leave": (t) => {
1935
+ this.onLeaveTransitionComplete();
1936
+ },
1937
+ "after-enter": (t) => {
1938
+ this.onEnterTransitionComplete();
1939
+ }
1940
+ };
1941
+ },
1942
+ calculatedMaxHeight() {
1943
+ return this.isOutsideViewport && this.modal ? "calc(100vh - var(--dt-space-300))" : this.maxHeight;
1944
+ },
1945
+ labelledBy() {
1946
+ return this.ariaLabelledby || !this.ariaLabel && g("DtPopover__anchor");
1947
+ }
1948
+ },
1949
+ watch: {
1950
+ $props: {
1951
+ immediate: !0,
1952
+ deep: !0,
1953
+ handler() {
1954
+ this.validateProps();
1955
+ }
1956
+ },
1957
+ modal(t) {
1958
+ var e;
1959
+ (e = this.tip) == null || e.setProps({
1960
+ zIndex: t ? 650 : this.calculateAnchorZindex()
1961
+ });
1962
+ },
1963
+ offset(t) {
1964
+ var e;
1965
+ (e = this.tip) == null || e.setProps({
1966
+ offset: t
1967
+ });
1968
+ },
1969
+ sticky(t) {
1970
+ var e;
1971
+ (e = this.tip) == null || e.setProps({
1972
+ sticky: t
1973
+ });
1974
+ },
1975
+ fallbackPlacements() {
1976
+ var t;
1977
+ (t = this.tip) == null || t.setProps({
1978
+ popperOptions: this.popperOptions()
1979
+ });
1980
+ },
1981
+ tether() {
1982
+ var t;
1983
+ (t = this.tip) == null || t.setProps({
1984
+ popperOptions: this.popperOptions()
1985
+ });
1986
+ },
1987
+ placement(t) {
1988
+ var e;
1989
+ (e = this.tip) == null || e.setProps({
1990
+ placement: t
1991
+ });
1992
+ },
1993
+ open: {
1994
+ handler: function(t) {
1995
+ t !== null && (this.isOpen = t);
1996
+ },
1997
+ immediate: !0
1998
+ },
1999
+ isOpen(t, e) {
2000
+ t ? (this.initTippyInstance(), this.tip.show()) : !t && e !== t && (this.removeEventListeners(), this.tip.hide());
2001
+ }
2002
+ },
2003
+ mounted() {
2004
+ const t = this.externalAnchor ? this.$refs.anchor.getRootNode().querySelector(`#${this.externalAnchor}`) : null;
2005
+ 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);
2006
+ },
2007
+ beforeDestroy() {
2008
+ var t;
2009
+ (t = this.tip) == null || t.destroy(), this.intersectionObserver.disconnect(), this.removeReferences(), this.removeEventListeners();
2010
+ },
2011
+ /******************
2012
+ * METHODS *
2013
+ ******************/
2014
+ methods: {
2015
+ hasIntersectedViewport(t) {
2016
+ var o;
2017
+ const e = (o = t == null ? void 0 : t[0]) == null ? void 0 : o.target;
2018
+ if (!e)
2019
+ return;
2020
+ const s = R(e);
2021
+ this.isOutsideViewport = s.bottom || s.top;
2022
+ },
2023
+ popperOptions() {
2024
+ return N({
2025
+ fallbackPlacements: this.fallbackPlacements,
2026
+ tether: this.tether,
2027
+ hasHideModifierEnabled: !0
2028
+ });
2029
+ },
2030
+ validateProps() {
2031
+ this.modal && this.initialFocusElement === "none" && console.error('If the popover is modal you must set the initialFocusElement prop. Possible values: "dialog", "first", HTMLElement');
2032
+ },
2033
+ calculateAnchorZindex() {
2034
+ var t;
2035
+ return this.$el.getRootNode().querySelector('.d-modal[aria-hidden="false"], .d-modal--transparent[aria-hidden="false"]') || // Special case because we don't have any dialtone drawer component yet. Render at 650 when
2036
+ // anchor of popover is within a drawer.
2037
+ (t = this.anchorEl) != null && t.closest(".d-zi-drawer") ? 650 : 300;
2038
+ },
2039
+ defaultToggleOpen(t) {
2040
+ var e, s;
2041
+ this.openOnContext || (this.open ?? ((e = this.anchorEl) != null && e.contains(t.target) && !((s = this.anchorEl) != null && s.disabled) && this.toggleOpen()));
2042
+ },
2043
+ async onContext(t) {
2044
+ this.openOnContext && (t.preventDefault(), this.isOpen = !0, await this.$nextTick(), this.tip.setProps({
2045
+ placement: "right-start",
2046
+ getReferenceClientRect: () => ({
2047
+ width: 0,
2048
+ height: 0,
2049
+ top: t.clientY,
2050
+ bottom: t.clientY,
2051
+ left: t.clientX,
2052
+ right: t.clientX
2053
+ })
2054
+ }));
2055
+ },
2056
+ toggleOpen() {
2057
+ this.isOpen = !this.isOpen;
2058
+ },
2059
+ onArrowKeyPress(t) {
2060
+ var e;
2061
+ this.open === null && this.openWithArrowKeys && (e = this.anchorEl) != null && e.contains(t.target) && (this.isOpen || (this.isOpen = !0));
2062
+ },
2063
+ addEventListeners() {
2064
+ window.addEventListener("dt-popover-close", this.closePopover), this.contentWidth === "anchor" && window.addEventListener("resize", this.onResize);
2065
+ },
2066
+ removeEventListeners() {
2067
+ window.removeEventListener("dt-popover-close", this.closePopover), this.contentWidth === "anchor" && window.removeEventListener("resize", this.onResize);
2068
+ },
2069
+ closePopover() {
2070
+ this.isOpen = !1;
2071
+ },
2072
+ /*
2073
+ * Prevents scrolling outside of the currently opened modal popover by:
2074
+ * - when anchor is not within another popover: setting the body to overflow: hidden
2075
+ * - when anchor is within another popover: set the popover dialog container to it's non-modal z-index
2076
+ * since it is no longer the active modal. This puts it underneath the overlay and prevents scrolling.
2077
+ **/
2078
+ preventScrolling() {
2079
+ var t;
2080
+ if (this.modal) {
2081
+ const e = (t = this.anchorEl) == null ? void 0 : t.closest("body, .tippy-box");
2082
+ e.tagName.toLowerCase() === "body" ? (e.classList.add("d-of-hidden"), this.tip.setProps({ offset: this.offset })) : e.classList.add("d-zi-popover");
2083
+ }
2084
+ },
2085
+ /*
2086
+ * Resets the prevent scrolling properties set in preventScrolling() back to normal.
2087
+ **/
2088
+ enableScrolling() {
2089
+ var e, s;
2090
+ const t = (e = this.anchorEl) == null ? void 0 : e.closest("body, .tippy-box");
2091
+ t && (((s = t.tagName) == null ? void 0 : s.toLowerCase()) === "body" ? (t.classList.remove("d-of-hidden"), this.tip.setProps({ offset: this.offset })) : t.classList.remove("d-zi-popover"));
2092
+ },
2093
+ removeReferences() {
2094
+ this.anchorEl = null, this.popoverContentEl = null, this.tip = null;
2095
+ },
2096
+ async onShow() {
2097
+ this.contentWidth === "anchor" && await this.setPopoverContentAnchorWidth(), this.contentWidth === null && (this.popoverContentEl.style.width = "auto"), this.addEventListeners();
2098
+ },
2099
+ async onLeaveTransitionComplete() {
2100
+ var t;
2101
+ 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);
2102
+ },
2103
+ async onEnterTransitionComplete() {
2104
+ this.focusInitialElement(), await this.$nextTick(), this.preventScrolling(), this.$emit("opened", !0, this.$refs.popover__content), this.open !== null && this.$emit("update:open", !0);
2105
+ },
2106
+ focusInitialElement() {
2107
+ 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();
2108
+ },
2109
+ focusInitialElementById() {
2110
+ var e, s, o;
2111
+ const t = (s = (e = this.$refs.content) == null ? void 0 : e.$el) == null ? void 0 : s.querySelector(this.initialFocusElement);
2112
+ t ? t.focus() : console.warn('Could not find the element specified in dt-popover prop "initialFocusElement". Defaulting to focusing the dialog.'), t ? t.focus() : (o = this.$refs.content) == null || o.$el.focus();
2113
+ },
2114
+ onResize() {
2115
+ this.closePopover();
2116
+ },
2117
+ onClickOutside() {
2118
+ if (!this.hideOnClick)
2119
+ return;
2120
+ this.popoverContentEl.querySelector(".d-popover__anchor--opened") || this.closePopover();
2121
+ },
2122
+ onKeydown(t) {
2123
+ t.key === "Tab" && this.modal && this.focusTrappedTabPress(t, this.popoverContentEl), t.key === "Escape" && this.closePopover();
2124
+ },
2125
+ async setPopoverContentAnchorWidth() {
2126
+ var t;
2127
+ await this.$nextTick(), this.popoverContentEl.style.width = `${(t = this.anchorEl) == null ? void 0 : t.clientWidth}px`;
2128
+ },
2129
+ focusFirstElementIfNeeded(t) {
2130
+ var s, o;
2131
+ this._getFocusableElements(t, !0).length !== 0 ? this.focusFirstElement(t) : this.showCloseButton ? (s = this.$refs.popover__header) == null || s.focusCloseButton() : (o = this.$refs.content) == null || o.$el.focus();
2132
+ },
2133
+ initTippyInstance() {
2134
+ var t, e;
2135
+ this.tip = F(this.anchorEl, {
2136
+ popperOptions: this.popperOptions(),
2137
+ contentElement: this.popoverContentEl,
2138
+ placement: this.placement,
2139
+ offset: this.offset,
2140
+ sticky: this.sticky,
2141
+ appendTo: this.appendTo === "body" ? (e = (t = this.anchorEl) == null ? void 0 : t.getRootNode()) == null ? void 0 : e.querySelector("body") : this.appendTo,
2142
+ interactive: !0,
2143
+ trigger: "manual",
2144
+ // We have to manage hideOnClick functionality manually to handle
2145
+ // popover within popover situations.
2146
+ hideOnClick: !1,
2147
+ zIndex: this.modal ? 650 : this.calculateAnchorZindex(),
2148
+ onClickOutside: this.onClickOutside,
2149
+ onShow: this.onShow
2150
+ });
2151
+ }
2152
+ }
2153
+ };
2154
+ var je = function() {
2155
+ var e = this, s = e._self._c;
2156
+ return s("div", [e.modal && e.isOpen ? s("portal", [s("div", { staticClass: "d-modal--transparent", attrs: { "aria-hidden": e.modal && e.isOpen ? "false" : "true" }, on: { click: function(o) {
2157
+ o.preventDefault(), o.stopPropagation();
2158
+ } } })]) : e._e(), s(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), [s("div", { ref: "anchor", attrs: { id: !e.ariaLabelledby && e.labelledBy, "data-qa": "dt-popover-anchor", tabindex: e.openOnContext ? 0 : void 0 }, on: { "!click": function(o) {
2159
+ return e.defaultToggleOpen.apply(null, arguments);
2160
+ }, contextmenu: e.onContext, keydown: [function(o) {
2161
+ return !o.type.indexOf("key") && e._k(o.keyCode, "up", 38, o.key, ["Up", "ArrowUp"]) ? null : (o.preventDefault(), e.onArrowKeyPress.apply(null, arguments));
2162
+ }, function(o) {
2163
+ return !o.type.indexOf("key") && e._k(o.keyCode, "down", 40, o.key, ["Down", "ArrowDown"]) ? null : (o.preventDefault(), e.onArrowKeyPress.apply(null, arguments));
2164
+ }], "!keydown": function(o) {
2165
+ return !o.type.indexOf("key") && e._k(o.keyCode, "escape", void 0, o.key, void 0) ? null : e.closePopover.apply(null, arguments);
2166
+ } } }, [e._t("anchor", null, { attrs: {
2167
+ "aria-expanded": e.isOpen.toString(),
2168
+ "aria-controls": e.id,
2169
+ "aria-haspopup": e.role
2170
+ } })], 2), s("dt-lazy-show", e._g({ ref: "content", class: ["d-popover__dialog", { "d-popover__dialog--modal": e.modal }, e.dialogClass], style: {
2171
+ "max-height": e.calculatedMaxHeight,
2172
+ "max-width": e.maxWidth
2173
+ }, 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 ? s("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() {
2174
+ return [e._t("headerContent", null, { close: e.closePopover })];
2175
+ }, proxy: !0 }], null, !0) }) : e._e(), s("div", { ref: "popover__content", class: [
2176
+ "d-popover__content",
2177
+ e.POPOVER_PADDING_CLASSES[e.padding],
2178
+ e.contentClass
2179
+ ], attrs: { "data-qa": "dt-popover-content" } }, [e._t("content", null, { close: e.closePopover })], 2), e.$slots.footerContent ? s("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() {
2180
+ return [e._t("footerContent", null, { close: e.closePopover })];
2181
+ }, proxy: !0 }], null, !0) }) : e._e(), e.showVisuallyHiddenClose ? s("sr-only-close-button", { attrs: { "visually-hidden-close-label": e.visuallyHiddenCloseLabel }, on: { close: e.closePopover } }) : e._e()], 1)], 1)], 1);
2182
+ }, Me = [], Ke = /* @__PURE__ */ a(
2183
+ qe,
2184
+ je,
2185
+ Me,
2186
+ !1,
2187
+ null,
2188
+ null,
2189
+ null,
2190
+ null
2191
+ );
2192
+ const lt = Ke.exports;
2193
+ function k(t) {
2194
+ return t === i.default;
2195
+ }
2196
+ function w(t) {
2197
+ if (l(t) === "string")
2198
+ return k(t) ? null : i[t];
2199
+ if (l(t) === "object") {
2200
+ const { default: e } = t;
2201
+ return k(e) ? null : i[e];
2202
+ } else
2203
+ return null;
2204
+ }
2205
+ function l(t) {
2206
+ return typeof t;
2207
+ }
2208
+ function We(t) {
2209
+ return w(t) ? `d-stack--${i[w(t)]}` : null;
2210
+ }
2211
+ function Ge(t) {
2212
+ return l(t) === "object" ? [
2213
+ ...I.map((e) => t[e] ? `d-stack--${e}--${t[e]}` : null)
2214
+ ] : null;
2215
+ }
2216
+ function Ue(t) {
2217
+ return y.includes(t) ? `d-stack--gap-${t}` : null;
2218
+ }
2219
+ function Ye(t) {
2220
+ if (l(t) === "string")
2221
+ return Object.keys(i).includes(t);
2222
+ if (l(t) === "object") {
2223
+ const { default: e } = t;
2224
+ return Object.keys(i).includes(e);
2225
+ } else
2226
+ return null;
2227
+ }
2228
+ function Ze(t) {
2229
+ return y.includes(t);
2230
+ }
2231
+ const Xe = {
2232
+ name: "DtStack",
2233
+ props: {
2234
+ /**
2235
+ * Set this prop to the direction to stack the items.
2236
+ * You can override the default direction with 'default' key.
2237
+ * All the undefined breakpoints will have 'default' value.
2238
+ * By default, for the column direction it will have `justify-content: flex-start`
2239
+ * and for the row direction `align-items: center`. This can be overriden
2240
+ * by utility classes.
2241
+ */
2242
+ direction: {
2243
+ type: [String, Object],
2244
+ default: "column",
2245
+ validator: (t) => Ye(t)
2246
+ },
2247
+ /**
2248
+ * Set this prop to render stack as a specific HTML element.
2249
+ */
2250
+ as: {
2251
+ type: String,
2252
+ default: "div"
2253
+ },
2254
+ /**
2255
+ * Set this prop to have the space between each stack item
2256
+ * @values 0, 100, 200, 300, 400, 500, 600
2257
+ */
2258
+ gap: {
2259
+ type: String,
2260
+ default: "0",
2261
+ validator: (t) => Ze(t)
2262
+ }
2263
+ },
2264
+ data() {
2265
+ return {
2266
+ DT_STACK_DIRECTION: i,
2267
+ DT_STACK_GAP: y,
2268
+ DT_STACK_RESPONSIVE_BREAKPOINTS: I
2269
+ };
2270
+ },
2271
+ computed: {
2272
+ stackGap() {
2273
+ return Ue(this.gap);
2274
+ },
2275
+ defaultDirection() {
2276
+ return We(this.direction);
2277
+ },
2278
+ stackResponsive() {
2279
+ return Ge(this.direction);
2280
+ }
2281
+ }
2282
+ };
2283
+ var Je = function() {
2284
+ var e = this, s = e._self._c;
2285
+ return s(e.as, { tag: "component", class: [
2286
+ "d-stack",
2287
+ e.defaultDirection,
2288
+ e.stackResponsive,
2289
+ e.stackGap
2290
+ ] }, [e._t("default")], 2);
2291
+ }, Qe = [], et = /* @__PURE__ */ a(
2292
+ Xe,
2293
+ Je,
2294
+ Qe,
2295
+ !1,
2296
+ null,
2297
+ null,
2298
+ null,
2299
+ null
2300
+ );
2301
+ const ct = et.exports;
2302
+ export {
2303
+ f as A,
2304
+ I as B,
2305
+ it as D,
2306
+ c as L,
2307
+ ye as M,
2308
+ Pe as P,
2309
+ he as S,
2310
+ ct as a,
2311
+ nt as b,
2312
+ at as c,
2313
+ lt as d,
2314
+ ce as e,
2315
+ y as f,
2316
+ A as g,
2317
+ Te as h,
2318
+ S as i,
2319
+ G as j,
2320
+ U as k,
2321
+ _ as l,
2322
+ Y as m,
2323
+ Z as n,
2324
+ b as o,
2325
+ h as p,
2326
+ E as q,
2327
+ Oe as r,
2328
+ Ie as s,
2329
+ Ae as t,
2330
+ xe as u,
2331
+ rt as v,
2332
+ W as w,
2333
+ r as x,
2334
+ B as y,
2335
+ i as z
2336
+ };