@salesql/sql_components_vue3 3.10.0 → 3.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/constants/contact-data.d.ts +4 -2
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.es.js +709 -704
- package/dist/index.es.js.map +1 -1
- package/llms-full.txt +3 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as z, computed as
|
|
1
|
+
import { defineComponent as z, computed as h, openBlock as a, createElementBlock as l, normalizeStyle as X, normalizeClass as A, createBlock as W, unref as f, createCommentVNode as k, createElementVNode as s, renderSlot as F, toDisplayString as r, withModifiers as De, ref as N, watch as le, useModel as Ae, onMounted as Pe, withDirectives as ft, vModelCheckbox as sa, createTextVNode as ae, mergeModels as ye, onBeforeUnmount as be, nextTick as se, createVNode as V, Fragment as G, renderList as ne, useSlots as ze, vModelDynamic as oa, useAttrs as da, mergeProps as Ve, vModelText as ra, Transition as Se, withCtx as P, Teleport as He, useId as ve, withKeys as je, reactive as ca, resolveDynamicComponent as Gt, provide as ua, inject as fa, createSlots as vt } from "vue";
|
|
2
2
|
const Xe = {
|
|
3
3
|
DARK: "dark",
|
|
4
4
|
// slate ring — for light surfaces (default)
|
|
@@ -32,7 +32,7 @@ const Xe = {
|
|
|
32
32
|
[st.SMALL]: 20,
|
|
33
33
|
[st.MEDIUM]: 32,
|
|
34
34
|
[st.LARGE]: 48
|
|
35
|
-
}, t = e, i =
|
|
35
|
+
}, t = e, i = h(
|
|
36
36
|
() => {
|
|
37
37
|
var n;
|
|
38
38
|
return typeof t.size == "string" ? (n = o[t.size]) != null ? n : 24 : t.size;
|
|
@@ -137,13 +137,13 @@ const Xe = {
|
|
|
137
137
|
},
|
|
138
138
|
emits: [me],
|
|
139
139
|
setup(e, { emit: o }) {
|
|
140
|
-
const t = e, i = o, n =
|
|
140
|
+
const t = e, i = o, n = h(() => t.size === de.SMALL ? 14 : 20), d = h(
|
|
141
141
|
() => t.variant === fe.PRIMARY || t.variant === fe.WARNING ? Xe.LIGHT : Xe.DARK
|
|
142
142
|
);
|
|
143
|
-
function v(
|
|
144
|
-
t.disabled || t.loading || i(me,
|
|
143
|
+
function v(c) {
|
|
144
|
+
t.disabled || t.loading || i(me, c);
|
|
145
145
|
}
|
|
146
|
-
return (
|
|
146
|
+
return (c, m) => (a(), l("button", {
|
|
147
147
|
class: A(["ds-button", [
|
|
148
148
|
`ds-button--${e.variant}`,
|
|
149
149
|
`ds-button--${e.size}`,
|
|
@@ -166,29 +166,29 @@ const Xe = {
|
|
|
166
166
|
"aria-label": e.ariaLabel || void 0,
|
|
167
167
|
onClick: v
|
|
168
168
|
}, [
|
|
169
|
-
e.loading ? (a(), W(
|
|
169
|
+
e.loading ? (a(), W(f(Me), {
|
|
170
170
|
key: 0,
|
|
171
171
|
class: "ds-button__spinner",
|
|
172
172
|
size: n.value,
|
|
173
173
|
tone: d.value
|
|
174
|
-
}, null, 8, ["size", "tone"])) :
|
|
174
|
+
}, null, 8, ["size", "tone"])) : k("", !0),
|
|
175
175
|
s("span", {
|
|
176
176
|
class: "ds-button__content",
|
|
177
177
|
"aria-hidden": e.loading || void 0
|
|
178
178
|
}, [
|
|
179
|
-
e.leftIcon ||
|
|
180
|
-
F(
|
|
179
|
+
e.leftIcon || c.$slots.leading ? (a(), l("span", ha, [
|
|
180
|
+
F(c.$slots, "leading", {}, () => [
|
|
181
181
|
s("i", pa, r(e.leftIcon), 1)
|
|
182
182
|
], !0)
|
|
183
|
-
])) :
|
|
184
|
-
|
|
185
|
-
F(
|
|
186
|
-
])) :
|
|
187
|
-
e.rightIcon ||
|
|
188
|
-
F(
|
|
183
|
+
])) : k("", !0),
|
|
184
|
+
c.$slots.default && !e.circle && !e.square ? (a(), l("span", ka, [
|
|
185
|
+
F(c.$slots, "default", {}, void 0, !0)
|
|
186
|
+
])) : k("", !0),
|
|
187
|
+
e.rightIcon || c.$slots.trailing ? (a(), l("span", Sa, [
|
|
188
|
+
F(c.$slots, "trailing", {}, () => [
|
|
189
189
|
s("i", $a, r(e.rightIcon), 1)
|
|
190
190
|
], !0)
|
|
191
|
-
])) :
|
|
191
|
+
])) : k("", !0)
|
|
192
192
|
], 8, ga)
|
|
193
193
|
], 10, ya));
|
|
194
194
|
}
|
|
@@ -247,13 +247,13 @@ const Xe = {
|
|
|
247
247
|
type: "button",
|
|
248
248
|
class: "ds-tag__close",
|
|
249
249
|
"aria-label": e.closeLabel || void 0,
|
|
250
|
-
onClick: n[0] || (n[0] = De((d) => t(
|
|
250
|
+
onClick: n[0] || (n[0] = De((d) => t(f(ce)), ["stop"]))
|
|
251
251
|
}, [...n[1] || (n[1] = [
|
|
252
252
|
s("i", {
|
|
253
253
|
class: "material-symbols-filled",
|
|
254
254
|
"aria-hidden": "true"
|
|
255
255
|
}, "close", -1)
|
|
256
|
-
])], 8, Ea)) :
|
|
256
|
+
])], 8, Ea)) : k("", !0)
|
|
257
257
|
], 2));
|
|
258
258
|
}
|
|
259
259
|
}), Fd = /* @__PURE__ */ U(Ta, [["__scopeId", "data-v-23118dd1"]]), ct = {
|
|
@@ -321,42 +321,42 @@ const Xe = {
|
|
|
321
321
|
function i() {
|
|
322
322
|
t.value = !0;
|
|
323
323
|
}
|
|
324
|
-
const n =
|
|
325
|
-
var
|
|
326
|
-
return (
|
|
327
|
-
}),
|
|
328
|
-
var
|
|
329
|
-
return (
|
|
330
|
-
}),
|
|
331
|
-
var
|
|
332
|
-
return (
|
|
333
|
-
}), $ =
|
|
324
|
+
const n = h(() => !!o.image && !t.value), d = h(() => o.letters ? o.letters : o.firstName && o.lastName ? (o.firstName.charAt(0) + o.lastName.charAt(0)).toUpperCase() : ""), v = h(() => `${o.firstName} ${o.lastName}`.trim() || o.letters), c = h(() => {
|
|
325
|
+
var p;
|
|
326
|
+
return (p = o.alt) != null ? p : v.value;
|
|
327
|
+
}), m = h(() => {
|
|
328
|
+
var p;
|
|
329
|
+
return (p = o.width) != null ? p : o.size;
|
|
330
|
+
}), g = h(() => {
|
|
331
|
+
var p;
|
|
332
|
+
return (p = o.height) != null ? p : o.size;
|
|
333
|
+
}), $ = h(() => ({ width: `${m.value}px`, height: `${g.value}px` })), _ = h(
|
|
334
334
|
() => {
|
|
335
|
-
var
|
|
336
|
-
return (
|
|
335
|
+
var p;
|
|
336
|
+
return (p = o.textSize) != null ? p : Math.round(Math.min(m.value, g.value) * 0.4);
|
|
337
337
|
}
|
|
338
|
-
), b =
|
|
339
|
-
const
|
|
340
|
-
let
|
|
341
|
-
for (let S = 0; S <
|
|
342
|
-
|
|
343
|
-
const
|
|
344
|
-
for (let S = 0; S < 3; S++)
|
|
345
|
-
const T =
|
|
346
|
-
return { bg: `rgb(${
|
|
338
|
+
), b = h(() => {
|
|
339
|
+
const p = o.uid || o.firstName + o.lastName || o.letters;
|
|
340
|
+
let u = 0;
|
|
341
|
+
for (let S = 0; S < p.length; S++)
|
|
342
|
+
u = p.charCodeAt(S) + ((u << 5) - u), u = u & u;
|
|
343
|
+
const y = [0, 0, 0];
|
|
344
|
+
for (let S = 0; S < 3; S++) y[S] = u >> S * 8 & 255;
|
|
345
|
+
const T = y[0] >= 200 && y[1] >= 200 && y[2] >= 200;
|
|
346
|
+
return { bg: `rgb(${y[0]}, ${y[1]}, ${y[2]})`, fg: T ? "#323f4b" : "#fff" };
|
|
347
347
|
});
|
|
348
|
-
return (
|
|
348
|
+
return (p, u) => n.value ? (a(), l("img", {
|
|
349
349
|
key: 0,
|
|
350
350
|
class: A(["ds-avatar", { "is-circular": e.circular }]),
|
|
351
351
|
src: e.image,
|
|
352
|
-
alt:
|
|
352
|
+
alt: c.value,
|
|
353
353
|
style: X($.value),
|
|
354
354
|
onError: i
|
|
355
355
|
}, null, 46, Da)) : d.value ? (a(), l("div", {
|
|
356
356
|
key: 1,
|
|
357
357
|
class: A(["ds-avatar ds-avatar--initials", { "is-circular": e.circular, "ds-avatar--accent": e.accent }]),
|
|
358
358
|
role: "img",
|
|
359
|
-
"aria-label":
|
|
359
|
+
"aria-label": c.value || void 0,
|
|
360
360
|
style: X([
|
|
361
361
|
$.value,
|
|
362
362
|
{
|
|
@@ -418,7 +418,7 @@ const Xe = {
|
|
|
418
418
|
ft(s("input", {
|
|
419
419
|
ref_key: "inputRef",
|
|
420
420
|
ref: i,
|
|
421
|
-
"onUpdate:modelValue": v[0] || (v[0] = (
|
|
421
|
+
"onUpdate:modelValue": v[0] || (v[0] = (c) => o.value = c),
|
|
422
422
|
type: "checkbox",
|
|
423
423
|
class: "ds-checkbox__native",
|
|
424
424
|
disabled: e.disabled,
|
|
@@ -440,13 +440,13 @@ const Xe = {
|
|
|
440
440
|
}, null, -1)
|
|
441
441
|
])])) : o.value ? (a(), l("svg", Ma, [...v[2] || (v[2] = [
|
|
442
442
|
s("path", { d: "M3.5 8.5l3 3 6-6" }, null, -1)
|
|
443
|
-
])])) :
|
|
443
|
+
])])) : k("", !0)
|
|
444
444
|
], 2),
|
|
445
445
|
d.$slots.default || e.label ? (a(), l("span", xa, [
|
|
446
446
|
F(d.$slots, "default", {}, () => [
|
|
447
447
|
ae(r(e.label), 1)
|
|
448
448
|
], !0)
|
|
449
|
-
])) :
|
|
449
|
+
])) : k("", !0)
|
|
450
450
|
], 2));
|
|
451
451
|
}
|
|
452
452
|
}), at = /* @__PURE__ */ U(Pa, [["__scopeId", "data-v-2da3772e"]]), Bt = {
|
|
@@ -516,35 +516,35 @@ const Xe = {
|
|
|
516
516
|
},
|
|
517
517
|
emits: [kt],
|
|
518
518
|
setup(e, { emit: o }) {
|
|
519
|
-
const t = e, i = o, n =
|
|
519
|
+
const t = e, i = o, n = h(
|
|
520
520
|
() => Math.max(1, t.headers.length + (t.selectable ? 1 : 0))
|
|
521
|
-
), d =
|
|
521
|
+
), d = h(
|
|
522
522
|
() => t.rowHeight == null ? void 0 : {
|
|
523
523
|
"--ds-table-row-height": typeof t.rowHeight == "number" ? `${t.rowHeight}px` : t.rowHeight
|
|
524
524
|
}
|
|
525
|
-
), v =
|
|
525
|
+
), v = h(
|
|
526
526
|
() => t.height == null ? void 0 : { height: typeof t.height == "number" ? `${t.height}px` : t.height }
|
|
527
527
|
);
|
|
528
|
-
function
|
|
528
|
+
function c(w) {
|
|
529
529
|
i(kt, w);
|
|
530
530
|
}
|
|
531
|
-
function
|
|
531
|
+
function m(w) {
|
|
532
532
|
if (!w) return 0;
|
|
533
533
|
const O = /^(\d+(?:\.\d+)?)px$/.exec(w.trim());
|
|
534
534
|
return O ? parseFloat(O[1]) : 0;
|
|
535
535
|
}
|
|
536
|
-
const
|
|
536
|
+
const g = h(() => {
|
|
537
537
|
const w = {};
|
|
538
538
|
let O = 0;
|
|
539
539
|
for (const C of t.columns)
|
|
540
|
-
C.pinned === he.LEFT && (w[C.key] = { position: "sticky", left: `${O}px` }, O +=
|
|
540
|
+
C.pinned === he.LEFT && (w[C.key] = { position: "sticky", left: `${O}px` }, O += m(C.width));
|
|
541
541
|
let E = 0;
|
|
542
542
|
for (let C = t.columns.length - 1; C >= 0; C--) {
|
|
543
543
|
const L = t.columns[C];
|
|
544
|
-
L.pinned === he.RIGHT && (w[L.key] = { position: "sticky", right: `${E}px` }, E +=
|
|
544
|
+
L.pinned === he.RIGHT && (w[L.key] = { position: "sticky", right: `${E}px` }, E += m(L.width));
|
|
545
545
|
}
|
|
546
546
|
return w;
|
|
547
|
-
}), $ =
|
|
547
|
+
}), $ = h(() => {
|
|
548
548
|
const w = t.columns.filter((C) => C.pinned === he.LEFT), O = t.columns.filter((C) => C.pinned === he.RIGHT), E = /* @__PURE__ */ new Set();
|
|
549
549
|
return w.length && E.add(w[w.length - 1].key), O.length && E.add(O[0].key), E;
|
|
550
550
|
});
|
|
@@ -557,29 +557,29 @@ const Xe = {
|
|
|
557
557
|
};
|
|
558
558
|
}
|
|
559
559
|
function b(w) {
|
|
560
|
-
const O =
|
|
560
|
+
const O = g.value[w.key], E = w.width ? { width: w.width } : void 0;
|
|
561
561
|
if (!(!O && !E))
|
|
562
562
|
return { ...E, ...O };
|
|
563
563
|
}
|
|
564
|
-
function
|
|
565
|
-
const O =
|
|
564
|
+
function p(w) {
|
|
565
|
+
const O = g.value[w.key];
|
|
566
566
|
if (O)
|
|
567
567
|
return w.width ? { ...O, width: w.width } : O;
|
|
568
568
|
}
|
|
569
|
-
const
|
|
569
|
+
const u = h(
|
|
570
570
|
() => t.headers.map((w) => typeof w == "string" ? { label: w } : w)
|
|
571
|
-
),
|
|
572
|
-
const w = {}, O =
|
|
571
|
+
), y = h(() => {
|
|
572
|
+
const w = {}, O = u.value;
|
|
573
573
|
let E = 0;
|
|
574
574
|
O.forEach((L, I) => {
|
|
575
|
-
L.pinned === he.LEFT && (w[I] = { position: "sticky", left: `${E}px` }, E +=
|
|
575
|
+
L.pinned === he.LEFT && (w[I] = { position: "sticky", left: `${E}px` }, E += m(L.width));
|
|
576
576
|
});
|
|
577
577
|
let C = 0;
|
|
578
578
|
for (let L = O.length - 1; L >= 0; L--)
|
|
579
|
-
O[L].pinned === he.RIGHT && (w[L] = { position: "sticky", right: `${C}px` }, C +=
|
|
579
|
+
O[L].pinned === he.RIGHT && (w[L] = { position: "sticky", right: `${C}px` }, C += m(O[L].width));
|
|
580
580
|
return w;
|
|
581
|
-
}), T =
|
|
582
|
-
const w =
|
|
581
|
+
}), T = h(() => {
|
|
582
|
+
const w = u.value, O = w.map((L, I) => ({ h: L, i: I })).filter(({ h: L }) => L.pinned === he.LEFT), E = w.map((L, I) => ({ h: L, i: I })).filter(({ h: L }) => L.pinned === he.RIGHT), C = /* @__PURE__ */ new Set();
|
|
583
583
|
return O.length && C.add(O[O.length - 1].i), E.length && C.add(E[0].i), C;
|
|
584
584
|
});
|
|
585
585
|
function S(w, O) {
|
|
@@ -591,7 +591,7 @@ const Xe = {
|
|
|
591
591
|
};
|
|
592
592
|
}
|
|
593
593
|
function R(w, O) {
|
|
594
|
-
const E =
|
|
594
|
+
const E = y.value[O], C = w.width ? { width: w.width } : void 0;
|
|
595
595
|
if (!(!E && !C))
|
|
596
596
|
return { ...C, ...E };
|
|
597
597
|
}
|
|
@@ -628,14 +628,14 @@ const Xe = {
|
|
|
628
628
|
s("thead", Fa, [
|
|
629
629
|
s("tr", null, [
|
|
630
630
|
e.selectable ? (a(), l("th", Va, [
|
|
631
|
-
V(
|
|
631
|
+
V(f(at), {
|
|
632
632
|
"model-value": e.allSelected,
|
|
633
633
|
indeterminate: !e.allSelected && e.someSelected,
|
|
634
634
|
"aria-label": e.selectAllLabel || void 0,
|
|
635
|
-
"onUpdate:modelValue":
|
|
635
|
+
"onUpdate:modelValue": c
|
|
636
636
|
}, null, 8, ["model-value", "indeterminate", "aria-label"])
|
|
637
|
-
])) :
|
|
638
|
-
(a(!0), l(G, null, ne(
|
|
637
|
+
])) : k("", !0),
|
|
638
|
+
(a(!0), l(G, null, ne(u.value, (E, C) => (a(), l("th", {
|
|
639
639
|
key: E.label,
|
|
640
640
|
class: A(S(E, C)),
|
|
641
641
|
style: X(R(E, C))
|
|
@@ -650,7 +650,7 @@ const Xe = {
|
|
|
650
650
|
"data-testid": "ds-table-loading"
|
|
651
651
|
}, [
|
|
652
652
|
F(w.$slots, "loading", {}, () => [
|
|
653
|
-
V(
|
|
653
|
+
V(f(Me), {
|
|
654
654
|
label: e.loadingLabel || void 0
|
|
655
655
|
}, null, 8, ["label"])
|
|
656
656
|
], !0)
|
|
@@ -680,7 +680,7 @@ const Xe = {
|
|
|
680
680
|
return a(), l("th", {
|
|
681
681
|
key: E.key,
|
|
682
682
|
class: A([
|
|
683
|
-
`ds-table__th--${(C = E.align) != null ? C :
|
|
683
|
+
`ds-table__th--${(C = E.align) != null ? C : f(Bt).LEFT}`,
|
|
684
684
|
_(E)
|
|
685
685
|
]),
|
|
686
686
|
style: X(b(E))
|
|
@@ -696,7 +696,7 @@ const Xe = {
|
|
|
696
696
|
"data-testid": "ds-table-loading"
|
|
697
697
|
}, [
|
|
698
698
|
F(w.$slots, "loading", {}, () => [
|
|
699
|
-
V(
|
|
699
|
+
V(f(Me), {
|
|
700
700
|
label: e.loadingLabel || void 0
|
|
701
701
|
}, null, 8, ["label"])
|
|
702
702
|
], !0)
|
|
@@ -721,10 +721,10 @@ const Xe = {
|
|
|
721
721
|
return a(), l("td", {
|
|
722
722
|
key: C.key,
|
|
723
723
|
class: A([
|
|
724
|
-
`ds-table__td--${(L = C.align) != null ? L :
|
|
724
|
+
`ds-table__td--${(L = C.align) != null ? L : f(Bt).LEFT}`,
|
|
725
725
|
_(C)
|
|
726
726
|
]),
|
|
727
|
-
style: X(
|
|
727
|
+
style: X(p(C)),
|
|
728
728
|
title: e.rowHeight != null && !w.$slots[`cell-${C.key}`] && E[C.key] != null ? String(E[C.key]) : void 0
|
|
729
729
|
}, [
|
|
730
730
|
F(w.$slots, `cell-${C.key}`, { row: E }, () => [
|
|
@@ -792,16 +792,16 @@ const Xe = {
|
|
|
792
792
|
emits: /* @__PURE__ */ ye([Ze, Qe, yt, gt], ["update:modelValue"]),
|
|
793
793
|
setup(e, { expose: o, emit: t }) {
|
|
794
794
|
const i = Ae(e, "modelValue"), n = e, d = t, v = N();
|
|
795
|
-
function
|
|
795
|
+
function c(T) {
|
|
796
796
|
const S = T.relatedTarget, R = T.currentTarget;
|
|
797
797
|
S && (R != null && R.contains(S)) || d(gt, T);
|
|
798
798
|
}
|
|
799
|
-
const
|
|
799
|
+
const m = ze(), g = N(!1);
|
|
800
800
|
function $() {
|
|
801
|
-
n.disabled || (
|
|
801
|
+
n.disabled || (g.value = !g.value);
|
|
802
802
|
}
|
|
803
|
-
const _ =
|
|
804
|
-
() => !!
|
|
803
|
+
const _ = h(() => n.type === Ne.PASSWORD), b = h(() => n.type === Ne.SEARCH), p = h(() => _.value ? g.value ? Ne.TEXT : Ne.PASSWORD : b.value ? Ne.TEXT : n.type), u = h(() => _.value && !!n.toggleLabel), y = h(
|
|
804
|
+
() => !!m.suffix || n.error && n.showErrorIcon || u.value
|
|
805
805
|
);
|
|
806
806
|
return o({
|
|
807
807
|
focus: () => {
|
|
@@ -824,17 +824,17 @@ const Xe = {
|
|
|
824
824
|
`ds-input--${e.size}`,
|
|
825
825
|
{ "is-error": e.error, "is-disabled": e.disabled, "is-search": b.value }
|
|
826
826
|
]]),
|
|
827
|
-
onFocusout:
|
|
827
|
+
onFocusout: c
|
|
828
828
|
}, [
|
|
829
829
|
s("div", Qa, [
|
|
830
|
-
b.value ? (a(), l("i", Ja, "search")) :
|
|
830
|
+
b.value ? (a(), l("i", Ja, "search")) : k("", !0),
|
|
831
831
|
ft(s("input", {
|
|
832
832
|
id: e.id || void 0,
|
|
833
833
|
ref_key: "inputEl",
|
|
834
834
|
ref: v,
|
|
835
835
|
"onUpdate:modelValue": S[0] || (S[0] = (R) => i.value = R),
|
|
836
|
-
class: A(["ds-input__control", { "has-suffix":
|
|
837
|
-
type:
|
|
836
|
+
class: A(["ds-input__control", { "has-suffix": y.value }]),
|
|
837
|
+
type: p.value,
|
|
838
838
|
placeholder: e.placeholder,
|
|
839
839
|
min: e.min,
|
|
840
840
|
max: e.max,
|
|
@@ -844,32 +844,32 @@ const Xe = {
|
|
|
844
844
|
autocomplete: e.autocomplete || void 0,
|
|
845
845
|
"aria-invalid": e.error || void 0,
|
|
846
846
|
"aria-describedby": e.error && e.errorMessage && e.id ? `${e.id}-error` : void 0,
|
|
847
|
-
onFocus: S[1] || (S[1] = (R) => d(
|
|
848
|
-
onBlur: S[2] || (S[2] = (R) => d(
|
|
849
|
-
onChange: S[3] || (S[3] = (R) => d(
|
|
847
|
+
onFocus: S[1] || (S[1] = (R) => d(f(Ze), R)),
|
|
848
|
+
onBlur: S[2] || (S[2] = (R) => d(f(Qe), R)),
|
|
849
|
+
onChange: S[3] || (S[3] = (R) => d(f(yt), R))
|
|
850
850
|
}, null, 42, el), [
|
|
851
851
|
[oa, i.value]
|
|
852
852
|
]),
|
|
853
|
-
|
|
853
|
+
y.value ? (a(), l("div", tl, [
|
|
854
854
|
F(T.$slots, "suffix", {}, void 0, !0),
|
|
855
|
-
e.error && e.showErrorIcon ? (a(), l("i", al, "warning")) :
|
|
855
|
+
e.error && e.showErrorIcon ? (a(), l("i", al, "warning")) : u.value ? (a(), l("button", {
|
|
856
856
|
key: 1,
|
|
857
857
|
type: "button",
|
|
858
858
|
class: "ds-input__toggle",
|
|
859
859
|
disabled: e.disabled,
|
|
860
860
|
"aria-label": e.toggleLabel || void 0,
|
|
861
|
-
"aria-pressed":
|
|
861
|
+
"aria-pressed": g.value,
|
|
862
862
|
onClick: $
|
|
863
863
|
}, [
|
|
864
|
-
s("i", nl, r(
|
|
865
|
-
], 8, ll)) :
|
|
866
|
-
])) :
|
|
864
|
+
s("i", nl, r(g.value ? "visibility" : "visibility_off"), 1)
|
|
865
|
+
], 8, ll)) : k("", !0)
|
|
866
|
+
])) : k("", !0)
|
|
867
867
|
]),
|
|
868
868
|
e.error && e.errorMessage ? (a(), l("p", {
|
|
869
869
|
key: 0,
|
|
870
870
|
id: e.id ? `${e.id}-error` : void 0,
|
|
871
871
|
class: "ds-input__error"
|
|
872
|
-
}, r(e.errorMessage), 9, il)) :
|
|
872
|
+
}, r(e.errorMessage), 9, il)) : k("", !0)
|
|
873
873
|
], 34));
|
|
874
874
|
}
|
|
875
875
|
}), lt = /* @__PURE__ */ U(sl, [["__scopeId", "data-v-d6eb193a"]]), ol = {
|
|
@@ -896,17 +896,17 @@ const Xe = {
|
|
|
896
896
|
}),
|
|
897
897
|
emits: /* @__PURE__ */ ye([Ze, Qe], ["update:modelValue"]),
|
|
898
898
|
setup(e, { emit: o }) {
|
|
899
|
-
const t = Ae(e, "modelValue"), i = o, n = da(), d = (
|
|
900
|
-
() => Object.fromEntries(Object.entries(n).filter(([
|
|
901
|
-
),
|
|
902
|
-
() => Object.fromEntries(Object.entries(n).filter(([
|
|
899
|
+
const t = Ae(e, "modelValue"), i = o, n = da(), d = (m) => m === "class" || m === "style" || m.startsWith("data-"), v = h(
|
|
900
|
+
() => Object.fromEntries(Object.entries(n).filter(([m]) => d(m)))
|
|
901
|
+
), c = h(
|
|
902
|
+
() => Object.fromEntries(Object.entries(n).filter(([m]) => !d(m)))
|
|
903
903
|
);
|
|
904
|
-
return (
|
|
904
|
+
return (m, g) => (a(), l("div", Ve({
|
|
905
905
|
class: ["ds-textarea", [`ds-textarea--resize-${e.resize}`, { "is-error": e.error, "is-disabled": e.disabled }]]
|
|
906
906
|
}, v.value), [
|
|
907
|
-
ft(s("textarea", Ve(
|
|
907
|
+
ft(s("textarea", Ve(c.value, {
|
|
908
908
|
id: e.id || void 0,
|
|
909
|
-
"onUpdate:modelValue":
|
|
909
|
+
"onUpdate:modelValue": g[0] || (g[0] = ($) => t.value = $),
|
|
910
910
|
class: "ds-textarea__control",
|
|
911
911
|
placeholder: e.placeholder,
|
|
912
912
|
rows: e.rows,
|
|
@@ -914,8 +914,8 @@ const Xe = {
|
|
|
914
914
|
name: e.name || void 0,
|
|
915
915
|
"aria-invalid": e.error || void 0,
|
|
916
916
|
"aria-describedby": e.error && e.errorMessage && e.id ? `${e.id}-error` : void 0,
|
|
917
|
-
onFocus:
|
|
918
|
-
onBlur:
|
|
917
|
+
onFocus: g[1] || (g[1] = ($) => i(f(Ze), $)),
|
|
918
|
+
onBlur: g[2] || (g[2] = ($) => i(f(Qe), $))
|
|
919
919
|
}), null, 16, dl), [
|
|
920
920
|
[ra, t.value]
|
|
921
921
|
]),
|
|
@@ -923,7 +923,7 @@ const Xe = {
|
|
|
923
923
|
key: 0,
|
|
924
924
|
id: e.id ? `${e.id}-error` : void 0,
|
|
925
925
|
class: "ds-textarea__error"
|
|
926
|
-
}, r(e.errorMessage), 9, rl)) :
|
|
926
|
+
}, r(e.errorMessage), 9, rl)) : k("", !0)
|
|
927
927
|
], 16));
|
|
928
928
|
}
|
|
929
929
|
}), qd = /* @__PURE__ */ U(cl, [["__scopeId", "data-v-745c01de"]]), ul = {
|
|
@@ -967,8 +967,8 @@ const Xe = {
|
|
|
967
967
|
}),
|
|
968
968
|
emits: /* @__PURE__ */ ye([ce], ["update:visible"]),
|
|
969
969
|
setup(e, { emit: o }) {
|
|
970
|
-
const t = e, i = o, n = Ae(e, "visible"), d = ze(), v =
|
|
971
|
-
function
|
|
970
|
+
const t = e, i = o, n = Ae(e, "visible"), d = ze(), v = h(() => vl[t.type]), c = h(() => !!d.default || t.description.length > 0), m = h(() => !!d.title || t.title.length > 0);
|
|
971
|
+
function g() {
|
|
972
972
|
n.value = !1, i(ce);
|
|
973
973
|
}
|
|
974
974
|
return ($, _) => (a(), W(Se, { name: "ds-alert-fade" }, {
|
|
@@ -978,35 +978,35 @@ const Xe = {
|
|
|
978
978
|
class: A(["ds-alert", [`ds-alert--${e.type}`, `ds-alert--${e.effect}`, { "is-center": e.center }]]),
|
|
979
979
|
role: "alert"
|
|
980
980
|
}, [
|
|
981
|
-
e.showIcon ? (a(), l("i", bl, r(v.value), 1)) :
|
|
981
|
+
e.showIcon ? (a(), l("i", bl, r(v.value), 1)) : k("", !0),
|
|
982
982
|
s("div", ml, [
|
|
983
|
-
|
|
983
|
+
m.value ? (a(), l("div", {
|
|
984
984
|
key: 0,
|
|
985
|
-
class: A(["ds-alert__title", { "has-body":
|
|
985
|
+
class: A(["ds-alert__title", { "has-body": c.value, "is-bold": c.value || e.boldTitle }])
|
|
986
986
|
}, [
|
|
987
987
|
F($.$slots, "title", {}, () => [
|
|
988
988
|
ae(r(e.title), 1)
|
|
989
989
|
], !0)
|
|
990
|
-
], 2)) :
|
|
991
|
-
|
|
990
|
+
], 2)) : k("", !0),
|
|
991
|
+
c.value ? (a(), l("div", yl, [
|
|
992
992
|
F($.$slots, "default", {}, () => [
|
|
993
993
|
ae(r(e.description), 1)
|
|
994
994
|
], !0)
|
|
995
|
-
])) :
|
|
995
|
+
])) : k("", !0)
|
|
996
996
|
]),
|
|
997
997
|
e.closable ? (a(), l("button", {
|
|
998
998
|
key: 1,
|
|
999
999
|
type: "button",
|
|
1000
1000
|
class: "ds-alert__close",
|
|
1001
1001
|
"aria-label": e.closeLabel || void 0,
|
|
1002
|
-
onClick:
|
|
1002
|
+
onClick: g
|
|
1003
1003
|
}, [..._[0] || (_[0] = [
|
|
1004
1004
|
s("i", {
|
|
1005
1005
|
class: "material-symbols-filled",
|
|
1006
1006
|
"aria-hidden": "true"
|
|
1007
1007
|
}, "close", -1)
|
|
1008
|
-
])], 8, gl)) :
|
|
1009
|
-
], 2)) :
|
|
1008
|
+
])], 8, gl)) : k("", !0)
|
|
1009
|
+
], 2)) : k("", !0)
|
|
1010
1010
|
]),
|
|
1011
1011
|
_: 3
|
|
1012
1012
|
}));
|
|
@@ -1071,26 +1071,26 @@ const Xe = {
|
|
|
1071
1071
|
},
|
|
1072
1072
|
emits: [ce, wt],
|
|
1073
1073
|
setup(e, { emit: o }) {
|
|
1074
|
-
const t = e, i = o, n = N(!0), d =
|
|
1074
|
+
const t = e, i = o, n = N(!0), d = h(() => Sl[t.type]), v = h(
|
|
1075
1075
|
() => t.linkTarget === Mt.BLANK ? "noopener noreferrer" : void 0
|
|
1076
1076
|
);
|
|
1077
|
-
let
|
|
1077
|
+
let c, m = 0, g = t.duration;
|
|
1078
1078
|
function $() {
|
|
1079
|
-
|
|
1079
|
+
c && (clearTimeout(c), c = void 0);
|
|
1080
1080
|
}
|
|
1081
1081
|
function _(T) {
|
|
1082
|
-
$(), !(t.duration <= 0 || !n.value) && (
|
|
1082
|
+
$(), !(t.duration <= 0 || !n.value) && (m = Date.now(), c = setTimeout(u, T));
|
|
1083
1083
|
}
|
|
1084
1084
|
function b() {
|
|
1085
|
-
|
|
1085
|
+
c && (g -= Date.now() - m, $());
|
|
1086
1086
|
}
|
|
1087
|
-
function
|
|
1088
|
-
_(
|
|
1087
|
+
function p() {
|
|
1088
|
+
_(g > 0 ? g : t.duration);
|
|
1089
1089
|
}
|
|
1090
|
-
function
|
|
1090
|
+
function u() {
|
|
1091
1091
|
$(), n.value = !1, i(ce);
|
|
1092
1092
|
}
|
|
1093
|
-
function
|
|
1093
|
+
function y(T) {
|
|
1094
1094
|
i(wt, T);
|
|
1095
1095
|
}
|
|
1096
1096
|
return Pe(() => _(t.duration)), be($), (T, S) => (a(), W(He, { to: "body" }, [
|
|
@@ -1107,35 +1107,35 @@ const Xe = {
|
|
|
1107
1107
|
class: A(["ds-notification__card", `ds-notification__card--${e.type}`]),
|
|
1108
1108
|
role: "alert",
|
|
1109
1109
|
onMouseenter: b,
|
|
1110
|
-
onMouseleave:
|
|
1110
|
+
onMouseleave: p
|
|
1111
1111
|
}, [
|
|
1112
1112
|
s("i", $l, r(d.value), 1),
|
|
1113
1113
|
s("div", _l, [
|
|
1114
|
-
e.title ? (a(), l("span", Ll, r(e.title), 1)) :
|
|
1115
|
-
e.description ? (a(), l("p", wl, r(e.description), 1)) :
|
|
1114
|
+
e.title ? (a(), l("span", Ll, r(e.title), 1)) : k("", !0),
|
|
1115
|
+
e.description ? (a(), l("p", wl, r(e.description), 1)) : k("", !0),
|
|
1116
1116
|
e.linkTitle ? (a(), l("a", {
|
|
1117
1117
|
key: 2,
|
|
1118
1118
|
class: "ds-notification__link",
|
|
1119
1119
|
href: e.link || void 0,
|
|
1120
1120
|
target: e.linkTarget,
|
|
1121
1121
|
rel: v.value,
|
|
1122
|
-
onClick:
|
|
1123
|
-
}, r(e.linkTitle), 9, El)) :
|
|
1122
|
+
onClick: y
|
|
1123
|
+
}, r(e.linkTitle), 9, El)) : k("", !0)
|
|
1124
1124
|
]),
|
|
1125
1125
|
e.showClose ? (a(), l("button", {
|
|
1126
1126
|
key: 0,
|
|
1127
1127
|
type: "button",
|
|
1128
1128
|
class: "ds-notification__close",
|
|
1129
1129
|
"aria-label": e.closeLabel || void 0,
|
|
1130
|
-
onClick:
|
|
1130
|
+
onClick: u
|
|
1131
1131
|
}, [...S[0] || (S[0] = [
|
|
1132
1132
|
s("i", {
|
|
1133
1133
|
class: "material-symbols-filled",
|
|
1134
1134
|
"aria-hidden": "true"
|
|
1135
1135
|
}, "close", -1)
|
|
1136
|
-
])], 8, Tl)) :
|
|
1136
|
+
])], 8, Tl)) : k("", !0)
|
|
1137
1137
|
], 34)
|
|
1138
|
-
], 2)) :
|
|
1138
|
+
], 2)) : k("", !0)
|
|
1139
1139
|
]),
|
|
1140
1140
|
_: 1
|
|
1141
1141
|
})
|
|
@@ -1174,52 +1174,52 @@ const Xe = {
|
|
|
1174
1174
|
setup(e, { emit: o }) {
|
|
1175
1175
|
const t = e, i = o, n = N(null);
|
|
1176
1176
|
let d = null;
|
|
1177
|
-
const v = ve(),
|
|
1177
|
+
const v = ve(), c = h(() => ({
|
|
1178
1178
|
width: t.width,
|
|
1179
1179
|
...t.height ? { height: t.height } : {}
|
|
1180
1180
|
}));
|
|
1181
|
-
function
|
|
1181
|
+
function m() {
|
|
1182
1182
|
t.fixed && t.closeOnBackdrop && i(ce);
|
|
1183
1183
|
}
|
|
1184
|
-
function
|
|
1184
|
+
function g() {
|
|
1185
1185
|
return n.value ? Array.from(n.value.querySelectorAll('a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex="-1"])')).filter(
|
|
1186
|
-
(
|
|
1186
|
+
(u) => u.offsetParent !== null
|
|
1187
1187
|
) : [];
|
|
1188
1188
|
}
|
|
1189
|
-
function $(
|
|
1189
|
+
function $(p) {
|
|
1190
1190
|
var S;
|
|
1191
|
-
if (
|
|
1191
|
+
if (p.key === "Escape") {
|
|
1192
1192
|
t.closeOnEscape && i(ce);
|
|
1193
1193
|
return;
|
|
1194
1194
|
}
|
|
1195
|
-
if (
|
|
1196
|
-
const
|
|
1197
|
-
if (
|
|
1198
|
-
|
|
1195
|
+
if (p.key !== "Tab") return;
|
|
1196
|
+
const u = g();
|
|
1197
|
+
if (u.length === 0) {
|
|
1198
|
+
p.preventDefault(), (S = n.value) == null || S.focus();
|
|
1199
1199
|
return;
|
|
1200
1200
|
}
|
|
1201
|
-
const
|
|
1202
|
-
|
|
1201
|
+
const y = u[0], T = u[u.length - 1];
|
|
1202
|
+
p.shiftKey && document.activeElement === y ? (p.preventDefault(), T.focus()) : !p.shiftKey && document.activeElement === T && (p.preventDefault(), y.focus());
|
|
1203
1203
|
}
|
|
1204
1204
|
function _() {
|
|
1205
1205
|
d = document.activeElement, document.addEventListener("keydown", $), document.body.style.overflow = "hidden", se(() => {
|
|
1206
|
-
var
|
|
1207
|
-
return (
|
|
1206
|
+
var p, u;
|
|
1207
|
+
return (u = (p = g()[0]) != null ? p : n.value) == null ? void 0 : u.focus();
|
|
1208
1208
|
});
|
|
1209
1209
|
}
|
|
1210
|
-
function b(
|
|
1211
|
-
var
|
|
1212
|
-
document.removeEventListener("keydown", $), document.body.style.overflow = "",
|
|
1210
|
+
function b(p = !0) {
|
|
1211
|
+
var u;
|
|
1212
|
+
document.removeEventListener("keydown", $), document.body.style.overflow = "", p && ((u = d == null ? void 0 : d.focus) == null || u.call(d));
|
|
1213
1213
|
}
|
|
1214
1214
|
return le(
|
|
1215
1215
|
() => t.open && t.fixed,
|
|
1216
|
-
(
|
|
1217
|
-
typeof document != "undefined" && (
|
|
1216
|
+
(p, u) => {
|
|
1217
|
+
typeof document != "undefined" && (p ? _() : u && b());
|
|
1218
1218
|
},
|
|
1219
1219
|
{ immediate: !0 }
|
|
1220
1220
|
), be(() => {
|
|
1221
1221
|
typeof document != "undefined" && b(!1);
|
|
1222
|
-
}), (
|
|
1222
|
+
}), (p, u) => (a(), W(He, {
|
|
1223
1223
|
to: "body",
|
|
1224
1224
|
disabled: !e.fixed
|
|
1225
1225
|
}, [
|
|
@@ -1229,7 +1229,7 @@ const Xe = {
|
|
|
1229
1229
|
key: 0,
|
|
1230
1230
|
class: A(["ds-modal", { "is-fixed": e.fixed }]),
|
|
1231
1231
|
style: X(e.fixed ? { paddingTop: e.top } : void 0),
|
|
1232
|
-
onClick:
|
|
1232
|
+
onClick: m
|
|
1233
1233
|
}, [
|
|
1234
1234
|
s("div", {
|
|
1235
1235
|
ref_key: "dialogRef",
|
|
@@ -1237,35 +1237,35 @@ const Xe = {
|
|
|
1237
1237
|
class: A(["ds-modal__dialog", { "is-center": e.center }]),
|
|
1238
1238
|
role: "dialog",
|
|
1239
1239
|
"aria-modal": e.fixed ? "true" : "false",
|
|
1240
|
-
"aria-labelledby": e.title ?
|
|
1240
|
+
"aria-labelledby": e.title ? f(v) : void 0,
|
|
1241
1241
|
"aria-label": e.title ? void 0 : "dialog",
|
|
1242
1242
|
tabindex: "-1",
|
|
1243
|
-
style: X(
|
|
1244
|
-
onClick:
|
|
1243
|
+
style: X(c.value),
|
|
1244
|
+
onClick: u[1] || (u[1] = De(() => {
|
|
1245
1245
|
}, ["stop"]))
|
|
1246
1246
|
}, [
|
|
1247
1247
|
e.title || e.showClose ? (a(), l("div", Dl, [
|
|
1248
1248
|
s("span", {
|
|
1249
|
-
id:
|
|
1249
|
+
id: f(v),
|
|
1250
1250
|
class: "ds-modal__title"
|
|
1251
1251
|
}, r(e.title), 9, Al),
|
|
1252
|
-
e.showClose ? (a(), W(
|
|
1252
|
+
e.showClose ? (a(), W(f(oe), {
|
|
1253
1253
|
key: 0,
|
|
1254
1254
|
variant: "tertiary",
|
|
1255
1255
|
circle: "",
|
|
1256
1256
|
"left-icon": "close",
|
|
1257
1257
|
"aria-label": e.closeLabel || void 0,
|
|
1258
|
-
onClick:
|
|
1259
|
-
}, null, 8, ["aria-label"])) :
|
|
1260
|
-
])) :
|
|
1258
|
+
onClick: u[0] || (u[0] = (y) => i(f(ce)))
|
|
1259
|
+
}, null, 8, ["aria-label"])) : k("", !0)
|
|
1260
|
+
])) : k("", !0),
|
|
1261
1261
|
s("div", Rl, [
|
|
1262
|
-
F(
|
|
1262
|
+
F(p.$slots, "default", {}, void 0, !0)
|
|
1263
1263
|
]),
|
|
1264
|
-
|
|
1265
|
-
F(
|
|
1266
|
-
])) :
|
|
1264
|
+
p.$slots.footer ? (a(), l("div", Nl, [
|
|
1265
|
+
F(p.$slots, "footer", {}, void 0, !0)
|
|
1266
|
+
])) : k("", !0)
|
|
1267
1267
|
], 14, Il)
|
|
1268
|
-
], 6)) :
|
|
1268
|
+
], 6)) : k("", !0)
|
|
1269
1269
|
]),
|
|
1270
1270
|
_: 3
|
|
1271
1271
|
})
|
|
@@ -1303,47 +1303,47 @@ const zl = "--ds-overlay-shift", ke = 8, Ul = {
|
|
|
1303
1303
|
right: "left"
|
|
1304
1304
|
};
|
|
1305
1305
|
function Xt(e, o, t) {
|
|
1306
|
-
const i = N(0), n = N(!1), d =
|
|
1306
|
+
const i = N(0), n = N(!1), d = h(
|
|
1307
1307
|
() => i.value ? { [zl]: `${Math.round(i.value)}px` } : null
|
|
1308
|
-
), v =
|
|
1308
|
+
), v = h(() => {
|
|
1309
1309
|
const _ = o();
|
|
1310
1310
|
if (!n.value) return _;
|
|
1311
|
-
const b = _.indexOf("-"),
|
|
1312
|
-
return
|
|
1311
|
+
const b = _.indexOf("-"), p = b === -1 ? _ : _.slice(0, b), u = Ul[p];
|
|
1312
|
+
return u ? b === -1 ? u : u + _.slice(b) : _;
|
|
1313
1313
|
});
|
|
1314
|
-
function
|
|
1314
|
+
function c() {
|
|
1315
1315
|
if (!t) return;
|
|
1316
1316
|
const _ = o().split("-")[0];
|
|
1317
1317
|
if (_ === "over") {
|
|
1318
1318
|
n.value = !1;
|
|
1319
1319
|
return;
|
|
1320
1320
|
}
|
|
1321
|
-
const b = e.value,
|
|
1322
|
-
if (!b || !
|
|
1323
|
-
const
|
|
1321
|
+
const b = e.value, p = t.trigger.value;
|
|
1322
|
+
if (!b || !p) return;
|
|
1323
|
+
const u = p.getBoundingClientRect(), y = t.gap;
|
|
1324
1324
|
if (_ === "top" || _ === "bottom") {
|
|
1325
|
-
const T = window.innerHeight -
|
|
1325
|
+
const T = window.innerHeight - u.bottom - y - ke, S = u.top - y - ke, R = b.offsetHeight;
|
|
1326
1326
|
n.value = _ === "bottom" ? R > T && S > T : R > S && T > S;
|
|
1327
1327
|
} else {
|
|
1328
|
-
const T = window.innerWidth -
|
|
1328
|
+
const T = window.innerWidth - u.right - y - ke, S = u.left - y - ke, R = b.offsetWidth;
|
|
1329
1329
|
n.value = _ === "right" ? R > T && S > T : R > S && T > S;
|
|
1330
1330
|
}
|
|
1331
1331
|
}
|
|
1332
|
-
async function
|
|
1332
|
+
async function m() {
|
|
1333
1333
|
if (typeof window == "undefined") return;
|
|
1334
|
-
|
|
1334
|
+
c(), i.value = 0, await se();
|
|
1335
1335
|
const _ = e.value;
|
|
1336
1336
|
if (!_) return;
|
|
1337
|
-
const b = _.getBoundingClientRect(),
|
|
1338
|
-
|
|
1337
|
+
const b = _.getBoundingClientRect(), p = o().split("-")[0], u = p === "top" || p === "bottom" || p === "over", [y, T, S] = u ? [b.left, b.right, window.innerWidth] : [b.top, b.bottom, window.innerHeight];
|
|
1338
|
+
y < ke ? i.value = ke - y : T > S - ke && (i.value = S - ke - T);
|
|
1339
1339
|
}
|
|
1340
|
-
function
|
|
1341
|
-
typeof window != "undefined" && (window.addEventListener("resize",
|
|
1340
|
+
function g() {
|
|
1341
|
+
typeof window != "undefined" && (window.addEventListener("resize", m), window.addEventListener("scroll", m, { capture: !0, passive: !0 }), m());
|
|
1342
1342
|
}
|
|
1343
1343
|
function $() {
|
|
1344
|
-
typeof window != "undefined" && (window.removeEventListener("resize",
|
|
1344
|
+
typeof window != "undefined" && (window.removeEventListener("resize", m), window.removeEventListener("scroll", m, { capture: !0 }), i.value = 0, n.value = !1);
|
|
1345
1345
|
}
|
|
1346
|
-
return { shift: i, shiftStyle: d, resolvedPlacement: v, measure:
|
|
1346
|
+
return { shift: i, shiftStyle: d, resolvedPlacement: v, measure: m, activate: g, deactivate: $ };
|
|
1347
1347
|
}
|
|
1348
1348
|
const Ee = {
|
|
1349
1349
|
TOP: "top",
|
|
@@ -1375,11 +1375,11 @@ const Ee = {
|
|
|
1375
1375
|
teleported: { type: Boolean, default: !1 }
|
|
1376
1376
|
},
|
|
1377
1377
|
setup(e) {
|
|
1378
|
-
const o = e, t = ze(), i = ve(), n = N(null), d = N(!1), v = N(null), { isKeyboardFocus:
|
|
1379
|
-
shiftStyle:
|
|
1380
|
-
activate:
|
|
1378
|
+
const o = e, t = ze(), i = ve(), n = N(null), d = N(!1), v = N(null), { isKeyboardFocus: c } = Pl(), {
|
|
1379
|
+
shiftStyle: m,
|
|
1380
|
+
activate: g,
|
|
1381
1381
|
deactivate: $
|
|
1382
|
-
} = Xt(v, () => o.placement), _ = N(null), b =
|
|
1382
|
+
} = Xt(v, () => o.placement), _ = N(null), b = h(() => {
|
|
1383
1383
|
const I = _.value;
|
|
1384
1384
|
if (I)
|
|
1385
1385
|
return {
|
|
@@ -1389,21 +1389,21 @@ const Ee = {
|
|
|
1389
1389
|
height: `${I.height}px`
|
|
1390
1390
|
};
|
|
1391
1391
|
});
|
|
1392
|
-
function
|
|
1392
|
+
function p() {
|
|
1393
1393
|
var ee;
|
|
1394
1394
|
const I = (ee = n.value) == null ? void 0 : ee.getBoundingClientRect();
|
|
1395
1395
|
I && (_.value = { top: I.top, left: I.left, width: I.width, height: I.height });
|
|
1396
1396
|
}
|
|
1397
|
-
function
|
|
1398
|
-
|
|
1397
|
+
function u() {
|
|
1398
|
+
p(), window.addEventListener("resize", p), window.addEventListener("scroll", p, { capture: !0, passive: !0 });
|
|
1399
1399
|
}
|
|
1400
|
-
function
|
|
1401
|
-
window.removeEventListener("resize",
|
|
1400
|
+
function y() {
|
|
1401
|
+
window.removeEventListener("resize", p), window.removeEventListener("scroll", p, { capture: !0 });
|
|
1402
1402
|
}
|
|
1403
1403
|
le(d, (I) => {
|
|
1404
|
-
I ? (o.teleported &&
|
|
1404
|
+
I ? (o.teleported && u(), g()) : (o.teleported && y(), $());
|
|
1405
1405
|
});
|
|
1406
|
-
const T =
|
|
1406
|
+
const T = h(() => !o.disabled && (o.content.length > 0 || !!t.content));
|
|
1407
1407
|
le(
|
|
1408
1408
|
() => o.disabled,
|
|
1409
1409
|
(I) => {
|
|
@@ -1433,7 +1433,7 @@ const Ee = {
|
|
|
1433
1433
|
}
|
|
1434
1434
|
function E(I) {
|
|
1435
1435
|
const ee = I.target;
|
|
1436
|
-
!T.value || !R && !
|
|
1436
|
+
!T.value || !R && !c(ee) || (R = !0, K(), d.value = !0, M(ee));
|
|
1437
1437
|
}
|
|
1438
1438
|
function C(I) {
|
|
1439
1439
|
const ee = I.relatedTarget, H = I.currentTarget;
|
|
@@ -1443,7 +1443,7 @@ const Ee = {
|
|
|
1443
1443
|
K(), d.value = !1, x();
|
|
1444
1444
|
}
|
|
1445
1445
|
return be(() => {
|
|
1446
|
-
K(), x(), $(), o.teleported &&
|
|
1446
|
+
K(), x(), $(), o.teleported && y();
|
|
1447
1447
|
}), (I, ee) => (a(), l("div", {
|
|
1448
1448
|
ref_key: "rootRef",
|
|
1449
1449
|
ref: n,
|
|
@@ -1467,18 +1467,18 @@ const Ee = {
|
|
|
1467
1467
|
style: X(b.value)
|
|
1468
1468
|
}, [
|
|
1469
1469
|
s("div", {
|
|
1470
|
-
id:
|
|
1470
|
+
id: f(i),
|
|
1471
1471
|
ref_key: "bubbleRef",
|
|
1472
1472
|
ref: v,
|
|
1473
1473
|
class: A(["ds-tooltip__bubble", `ds-tooltip__bubble--${e.placement}`]),
|
|
1474
1474
|
role: "tooltip",
|
|
1475
|
-
style: X(
|
|
1475
|
+
style: X(f(m))
|
|
1476
1476
|
}, [
|
|
1477
1477
|
F(I.$slots, "content", {}, () => [
|
|
1478
1478
|
ae(r(e.content), 1)
|
|
1479
1479
|
], !0)
|
|
1480
1480
|
], 14, Fl)
|
|
1481
|
-
], 4)) :
|
|
1481
|
+
], 4)) : k("", !0)
|
|
1482
1482
|
]),
|
|
1483
1483
|
_: 3
|
|
1484
1484
|
})
|
|
@@ -1489,17 +1489,17 @@ const Ee = {
|
|
|
1489
1489
|
default: P(() => [
|
|
1490
1490
|
d.value ? (a(), l("div", {
|
|
1491
1491
|
key: 0,
|
|
1492
|
-
id:
|
|
1492
|
+
id: f(i),
|
|
1493
1493
|
ref_key: "bubbleRef",
|
|
1494
1494
|
ref: v,
|
|
1495
1495
|
class: A(["ds-tooltip__bubble", `ds-tooltip__bubble--${e.placement}`]),
|
|
1496
1496
|
role: "tooltip",
|
|
1497
|
-
style: X(
|
|
1497
|
+
style: X(f(m))
|
|
1498
1498
|
}, [
|
|
1499
1499
|
F(I.$slots, "content", {}, () => [
|
|
1500
1500
|
ae(r(e.content), 1)
|
|
1501
1501
|
], !0)
|
|
1502
|
-
], 14, Vl)) :
|
|
1502
|
+
], 14, Vl)) : k("", !0)
|
|
1503
1503
|
]),
|
|
1504
1504
|
_: 3
|
|
1505
1505
|
}))
|
|
@@ -1534,7 +1534,7 @@ const Ee = {
|
|
|
1534
1534
|
}
|
|
1535
1535
|
},
|
|
1536
1536
|
setup(e) {
|
|
1537
|
-
const o = e, t =
|
|
1537
|
+
const o = e, t = h(() => o.verified === null || o.verified === void 0 ? {
|
|
1538
1538
|
state: rt.NEW,
|
|
1539
1539
|
icon: "new_releases",
|
|
1540
1540
|
label: "Newly found"
|
|
@@ -1595,16 +1595,16 @@ const Ee = {
|
|
|
1595
1595
|
n.value = !1;
|
|
1596
1596
|
}, 1200), i($e, t.value);
|
|
1597
1597
|
}
|
|
1598
|
-
function
|
|
1598
|
+
function c() {
|
|
1599
1599
|
i(_e);
|
|
1600
1600
|
}
|
|
1601
|
-
function
|
|
1601
|
+
function m() {
|
|
1602
1602
|
i(Le);
|
|
1603
1603
|
}
|
|
1604
|
-
return be(() => clearTimeout(d)), (
|
|
1604
|
+
return be(() => clearTimeout(d)), (g, $) => (a(), l("div", {
|
|
1605
1605
|
class: A(["ds-contact-value", { "ds-contact-value--main": e.main }])
|
|
1606
1606
|
}, [
|
|
1607
|
-
V(
|
|
1607
|
+
V(f(Kl), {
|
|
1608
1608
|
verified: e.verified,
|
|
1609
1609
|
"is-contact-data": e.isContactData
|
|
1610
1610
|
}, null, 8, ["verified", "is-contact-data"]),
|
|
@@ -1613,17 +1613,17 @@ const Ee = {
|
|
|
1613
1613
|
title: e.value
|
|
1614
1614
|
}, r(e.value), 9, Wl),
|
|
1615
1615
|
s("span", Yl, [
|
|
1616
|
-
e.valueType ? (a(), W(
|
|
1616
|
+
e.valueType ? (a(), W(f(Ia), {
|
|
1617
1617
|
key: 0,
|
|
1618
1618
|
class: "ds-contact-value__badge",
|
|
1619
|
-
tone: e.main ?
|
|
1619
|
+
tone: e.main ? f(ct).ACCENT : f(ct).GREY,
|
|
1620
1620
|
title: e.valueType
|
|
1621
1621
|
}, {
|
|
1622
1622
|
default: P(() => [
|
|
1623
1623
|
ae(r(e.valueType), 1)
|
|
1624
1624
|
]),
|
|
1625
1625
|
_: 1
|
|
1626
|
-
}, 8, ["tone", "title"])) :
|
|
1626
|
+
}, 8, ["tone", "title"])) : k("", !0),
|
|
1627
1627
|
s("span", jl, [
|
|
1628
1628
|
e.hideValue ? (a(), l("i", {
|
|
1629
1629
|
key: 0,
|
|
@@ -1648,7 +1648,7 @@ const Ee = {
|
|
|
1648
1648
|
"aria-label": e.correctLabel,
|
|
1649
1649
|
"aria-pressed": e.correct === !0,
|
|
1650
1650
|
title: e.correctLabel,
|
|
1651
|
-
onClick:
|
|
1651
|
+
onClick: c
|
|
1652
1652
|
}, [
|
|
1653
1653
|
s("i", {
|
|
1654
1654
|
class: A(e.correct === !0 ? "material-symbols-filled" : "material-symbols-rounded"),
|
|
@@ -1661,14 +1661,14 @@ const Ee = {
|
|
|
1661
1661
|
"aria-label": e.incorrectLabel,
|
|
1662
1662
|
"aria-pressed": e.correct === !1,
|
|
1663
1663
|
title: e.incorrectLabel,
|
|
1664
|
-
onClick:
|
|
1664
|
+
onClick: m
|
|
1665
1665
|
}, [
|
|
1666
1666
|
s("i", {
|
|
1667
1667
|
class: A(e.correct === !1 ? "material-symbols-filled" : "material-symbols-rounded"),
|
|
1668
1668
|
"aria-hidden": "true"
|
|
1669
1669
|
}, "thumb_down", 2)
|
|
1670
1670
|
], 8, en)
|
|
1671
|
-
], 64)) :
|
|
1671
|
+
], 64)) : k("", !0)
|
|
1672
1672
|
], 64))
|
|
1673
1673
|
])
|
|
1674
1674
|
])
|
|
@@ -1743,8 +1743,8 @@ const Ee = {
|
|
|
1743
1743
|
},
|
|
1744
1744
|
emits: [$e, pt, we, ce, _e, Le],
|
|
1745
1745
|
setup(e, { emit: o }) {
|
|
1746
|
-
const t = e, i = o, n = N(!1), d =
|
|
1747
|
-
function
|
|
1746
|
+
const t = e, i = o, n = N(!1), d = h(() => t.more.length + (t.mostLikely ? 1 : 0)), v = h(() => d.value > 3), c = h(() => d.value === 0), m = h(() => t.collapsible && n.value);
|
|
1747
|
+
function g() {
|
|
1748
1748
|
n.value = !n.value;
|
|
1749
1749
|
}
|
|
1750
1750
|
function $(T) {
|
|
@@ -1756,13 +1756,13 @@ const Ee = {
|
|
|
1756
1756
|
function b() {
|
|
1757
1757
|
i(we);
|
|
1758
1758
|
}
|
|
1759
|
-
function
|
|
1759
|
+
function p() {
|
|
1760
1760
|
i(ce);
|
|
1761
1761
|
}
|
|
1762
|
-
function
|
|
1762
|
+
function u(T) {
|
|
1763
1763
|
i(_e, T);
|
|
1764
1764
|
}
|
|
1765
|
-
function
|
|
1765
|
+
function y(T) {
|
|
1766
1766
|
i(Le, T);
|
|
1767
1767
|
}
|
|
1768
1768
|
return (T, S) => (a(), l("section", {
|
|
@@ -1771,8 +1771,8 @@ const Ee = {
|
|
|
1771
1771
|
"aria-busy": e.loading ? "true" : void 0
|
|
1772
1772
|
}, [
|
|
1773
1773
|
s("div", {
|
|
1774
|
-
class: A(["ds-data-card__header", { "is-collapsed":
|
|
1775
|
-
onClick: S[1] || (S[1] = (R) => e.collapsible &&
|
|
1774
|
+
class: A(["ds-data-card__header", { "is-collapsed": m.value, "is-collapsible": e.collapsible }]),
|
|
1775
|
+
onClick: S[1] || (S[1] = (R) => e.collapsible && g())
|
|
1776
1776
|
}, [
|
|
1777
1777
|
s("div", ln, [
|
|
1778
1778
|
s("i", nn, r(e.icon), 1),
|
|
@@ -1783,13 +1783,13 @@ const Ee = {
|
|
|
1783
1783
|
onClick: S[0] || (S[0] = De(() => {
|
|
1784
1784
|
}, ["stop"]))
|
|
1785
1785
|
}, [
|
|
1786
|
-
!
|
|
1786
|
+
!m.value && e.showEdit ? (a(), l("button", {
|
|
1787
1787
|
key: 0,
|
|
1788
1788
|
type: "button",
|
|
1789
1789
|
class: "ds-data-card__edit",
|
|
1790
1790
|
onClick: b
|
|
1791
|
-
}, r(e.editLabel), 1)) :
|
|
1792
|
-
!
|
|
1791
|
+
}, r(e.editLabel), 1)) : k("", !0),
|
|
1792
|
+
!m.value && e.showSort ? (a(), W(f(oe), {
|
|
1793
1793
|
key: 1,
|
|
1794
1794
|
variant: "tertiary",
|
|
1795
1795
|
size: "medium",
|
|
@@ -1797,34 +1797,34 @@ const Ee = {
|
|
|
1797
1797
|
"left-icon": "swap_vert",
|
|
1798
1798
|
"aria-label": e.sortLabel,
|
|
1799
1799
|
onClick: _
|
|
1800
|
-
}, null, 8, ["aria-label"])) :
|
|
1801
|
-
e.collapsible ? (a(), W(
|
|
1800
|
+
}, null, 8, ["aria-label"])) : k("", !0),
|
|
1801
|
+
e.collapsible ? (a(), W(f(oe), {
|
|
1802
1802
|
key: 2,
|
|
1803
1803
|
variant: "tertiary",
|
|
1804
1804
|
size: "medium",
|
|
1805
1805
|
circle: "",
|
|
1806
1806
|
"left-icon": n.value ? "keyboard_arrow_down" : "keyboard_arrow_up",
|
|
1807
1807
|
"aria-label": e.toggleLabel,
|
|
1808
|
-
onClick:
|
|
1809
|
-
}, null, 8, ["left-icon", "aria-label"])) :
|
|
1808
|
+
onClick: g
|
|
1809
|
+
}, null, 8, ["left-icon", "aria-label"])) : k("", !0),
|
|
1810
1810
|
e.showClose ? (a(), l("button", {
|
|
1811
1811
|
key: 3,
|
|
1812
1812
|
type: "button",
|
|
1813
1813
|
class: "ds-data-card__close",
|
|
1814
1814
|
"aria-label": e.closeLabel,
|
|
1815
|
-
onClick:
|
|
1815
|
+
onClick: p
|
|
1816
1816
|
}, [...S[4] || (S[4] = [
|
|
1817
1817
|
s("i", {
|
|
1818
1818
|
class: "material-symbols-filled",
|
|
1819
1819
|
"aria-hidden": "true"
|
|
1820
1820
|
}, "close", -1)
|
|
1821
|
-
])], 8, on)) :
|
|
1821
|
+
])], 8, on)) : k("", !0)
|
|
1822
1822
|
])
|
|
1823
1823
|
], 2),
|
|
1824
|
-
|
|
1824
|
+
m.value ? k("", !0) : (a(), l("div", dn, [
|
|
1825
1825
|
e.loading ? (a(), l("div", rn, [
|
|
1826
1826
|
F(T.$slots, "loading", {}, () => [
|
|
1827
|
-
V(
|
|
1827
|
+
V(f(Me), {
|
|
1828
1828
|
label: e.loadingLabel || void 0
|
|
1829
1829
|
}, null, 8, ["label"])
|
|
1830
1830
|
], !0)
|
|
@@ -1840,18 +1840,18 @@ const Ee = {
|
|
|
1840
1840
|
s("span", fn, r(e.lockedLabel), 1)
|
|
1841
1841
|
])
|
|
1842
1842
|
], !0)
|
|
1843
|
-
])) :
|
|
1843
|
+
])) : c.value ? (a(), l("div", vn, [
|
|
1844
1844
|
s("span", bn, [
|
|
1845
1845
|
s("i", mn, r(e.icon), 1)
|
|
1846
1846
|
]),
|
|
1847
1847
|
s("div", yn, [
|
|
1848
1848
|
s("span", gn, r(e.emptyLabel), 1),
|
|
1849
|
-
e.emptySubtitle ? (a(), l("span", hn, r(e.emptySubtitle), 1)) :
|
|
1849
|
+
e.emptySubtitle ? (a(), l("span", hn, r(e.emptySubtitle), 1)) : k("", !0)
|
|
1850
1850
|
])
|
|
1851
1851
|
])) : (a(), l(G, { key: 3 }, [
|
|
1852
1852
|
e.mostLikely ? (a(), l("div", pn, [
|
|
1853
|
-
v.value ? (a(), l("div", kn, r(e.mostLikelyLabel), 1)) :
|
|
1854
|
-
V(
|
|
1853
|
+
v.value ? (a(), l("div", kn, r(e.mostLikelyLabel), 1)) : k("", !0),
|
|
1854
|
+
V(f(xt), {
|
|
1855
1855
|
value: e.mostLikely.value,
|
|
1856
1856
|
"value-type": e.mostLikely.type,
|
|
1857
1857
|
verified: e.mostLikely.verified,
|
|
@@ -1861,14 +1861,14 @@ const Ee = {
|
|
|
1861
1861
|
"is-contact-data": e.isContactData,
|
|
1862
1862
|
"show-rate": e.showRate,
|
|
1863
1863
|
onCopy: $,
|
|
1864
|
-
onCorrect: S[2] || (S[2] = (R) =>
|
|
1865
|
-
onIncorrect: S[3] || (S[3] = (R) =>
|
|
1864
|
+
onCorrect: S[2] || (S[2] = (R) => u(e.mostLikely)),
|
|
1865
|
+
onIncorrect: S[3] || (S[3] = (R) => y(e.mostLikely))
|
|
1866
1866
|
}, null, 8, ["value", "value-type", "verified", "correct", "hide-value", "is-contact-data", "show-rate"])
|
|
1867
|
-
])) :
|
|
1867
|
+
])) : k("", !0),
|
|
1868
1868
|
e.more.length > 0 ? (a(), l("div", Sn, [
|
|
1869
|
-
v.value ? (a(), l("div", $n, r(e.moreLabel), 1)) :
|
|
1869
|
+
v.value ? (a(), l("div", $n, r(e.moreLabel), 1)) : k("", !0),
|
|
1870
1870
|
s("div", _n, [
|
|
1871
|
-
(a(!0), l(G, null, ne(e.more, (R) => (a(), W(
|
|
1871
|
+
(a(!0), l(G, null, ne(e.more, (R) => (a(), W(f(xt), {
|
|
1872
1872
|
key: R.value,
|
|
1873
1873
|
value: R.value,
|
|
1874
1874
|
"value-type": R.type,
|
|
@@ -1878,11 +1878,11 @@ const Ee = {
|
|
|
1878
1878
|
"is-contact-data": e.isContactData,
|
|
1879
1879
|
"show-rate": e.showRate,
|
|
1880
1880
|
onCopy: $,
|
|
1881
|
-
onCorrect: (B) =>
|
|
1882
|
-
onIncorrect: (B) =>
|
|
1881
|
+
onCorrect: (B) => u(R),
|
|
1882
|
+
onIncorrect: (B) => y(R)
|
|
1883
1883
|
}, null, 8, ["value", "value-type", "verified", "correct", "hide-value", "is-contact-data", "show-rate", "onCorrect", "onIncorrect"]))), 128))
|
|
1884
1884
|
])
|
|
1885
|
-
])) :
|
|
1885
|
+
])) : k("", !0)
|
|
1886
1886
|
], 64))
|
|
1887
1887
|
]))
|
|
1888
1888
|
], 8, an));
|
|
@@ -1928,7 +1928,7 @@ const Ee = {
|
|
|
1928
1928
|
F(n.$slots, "default", {}, () => [
|
|
1929
1929
|
ae(r(e.label), 1)
|
|
1930
1930
|
], !0)
|
|
1931
|
-
])) :
|
|
1931
|
+
])) : k("", !0)
|
|
1932
1932
|
], 2));
|
|
1933
1933
|
}
|
|
1934
1934
|
}), Zt = /* @__PURE__ */ U(Tn, [["__scopeId", "data-v-96b70404"]]), Cn = ["aria-checked", "aria-busy", "aria-disabled", "aria-label", "disabled"], In = {
|
|
@@ -1968,13 +1968,13 @@ const Ee = {
|
|
|
1968
1968
|
onClick: i
|
|
1969
1969
|
}, [
|
|
1970
1970
|
s("span", In, [
|
|
1971
|
-
e.loading ? (a(), W(
|
|
1971
|
+
e.loading ? (a(), W(f(Me), {
|
|
1972
1972
|
key: 0,
|
|
1973
1973
|
class: "ds-switch__spinner",
|
|
1974
1974
|
size: 12,
|
|
1975
|
-
tone:
|
|
1975
|
+
tone: f(Xe).DARK,
|
|
1976
1976
|
label: ""
|
|
1977
|
-
}, null, 8, ["tone"])) :
|
|
1977
|
+
}, null, 8, ["tone"])) : k("", !0)
|
|
1978
1978
|
])
|
|
1979
1979
|
], 10, Cn));
|
|
1980
1980
|
}
|
|
@@ -1997,7 +1997,7 @@ const Ee = {
|
|
|
1997
1997
|
t.disabled || i(me, d);
|
|
1998
1998
|
}
|
|
1999
1999
|
return (d, v) => {
|
|
2000
|
-
var
|
|
2000
|
+
var c;
|
|
2001
2001
|
return a(), l("button", {
|
|
2002
2002
|
type: "button",
|
|
2003
2003
|
class: A(["ds-item-selector-button", { "is-empty": !e.item, "is-disabled": e.disabled }]),
|
|
@@ -2010,9 +2010,9 @@ const Ee = {
|
|
|
2010
2010
|
e.icon ? (a(), l("i", {
|
|
2011
2011
|
key: 0,
|
|
2012
2012
|
class: A(["ds-item-selector-button__icon", e.item ? "material-symbols-filled" : "material-symbols-rounded"]),
|
|
2013
|
-
style: X((
|
|
2013
|
+
style: X((c = e.item) != null && c.color ? { color: e.item.color } : void 0),
|
|
2014
2014
|
"aria-hidden": "true"
|
|
2015
|
-
}, r(e.icon), 7)) :
|
|
2015
|
+
}, r(e.icon), 7)) : k("", !0)
|
|
2016
2016
|
], 10, An);
|
|
2017
2017
|
};
|
|
2018
2018
|
}
|
|
@@ -2098,15 +2098,15 @@ const Ee = {
|
|
|
2098
2098
|
}),
|
|
2099
2099
|
emits: /* @__PURE__ */ ye([pe], ["update:modelValue"]),
|
|
2100
2100
|
setup(e, { emit: o }) {
|
|
2101
|
-
const t = e, i = o, n = Ae(e, "modelValue"), d = `ds-select-${ve()}`, v = `${d}-listbox`,
|
|
2102
|
-
if (!
|
|
2103
|
-
const D =
|
|
2101
|
+
const t = e, i = o, n = Ae(e, "modelValue"), d = `ds-select-${ve()}`, v = `${d}-listbox`, c = (D) => `${d}-option-${D}`, m = N(null), g = N(null), $ = N(null), _ = N(!1), b = N(-1), p = N(""), u = h(() => t.selectType === Pt.FILTER_SUMMARY), y = h(() => t.filterable && !t.remote), T = h(() => {
|
|
2102
|
+
if (!y.value) return t.options;
|
|
2103
|
+
const D = p.value.trim().toLowerCase();
|
|
2104
2104
|
return D ? t.options.filter(
|
|
2105
2105
|
(q) => q.label.toLowerCase().includes(D) || (q.subLabel ? q.subLabel.toLowerCase().includes(D) : !1)
|
|
2106
2106
|
) : t.options;
|
|
2107
|
-
}), S =
|
|
2107
|
+
}), S = h(
|
|
2108
2108
|
() => t.loading ? [] : T.value
|
|
2109
|
-
), R =
|
|
2109
|
+
), R = h(() => {
|
|
2110
2110
|
const D = [];
|
|
2111
2111
|
return S.value.forEach((q, J) => {
|
|
2112
2112
|
const Q = q.group, re = D[D.length - 1];
|
|
@@ -2118,7 +2118,7 @@ const Ee = {
|
|
|
2118
2118
|
items: [{ option: q, index: J }]
|
|
2119
2119
|
}) : (re == null ? void 0 : re.kind) === "plain" ? re.items.push({ option: q, index: J }) : D.push({ kind: "plain", key: `p-${J}`, items: [{ option: q, index: J }] });
|
|
2120
2120
|
}), D;
|
|
2121
|
-
}), B =
|
|
2121
|
+
}), B = h(() => t.multiple ? Array.isArray(n.value) ? n.value : [] : n.value !== null && n.value !== void 0 ? [n.value] : []), Y = h(() => B.value.length > 0), j = h(() => u.value && Y.value);
|
|
2122
2122
|
function K(D) {
|
|
2123
2123
|
return B.value.includes(D);
|
|
2124
2124
|
}
|
|
@@ -2132,13 +2132,13 @@ const Ee = {
|
|
|
2132
2132
|
var q, J, Q;
|
|
2133
2133
|
return (Q = (J = (q = t.options.find((re) => re.value === D)) == null ? void 0 : q.label) != null ? J : M.get(D)) != null ? Q : String(D);
|
|
2134
2134
|
}
|
|
2135
|
-
const w =
|
|
2135
|
+
const w = h(() => u.value ? Y.value ? t.multiple ? `${t.placeholder} (${B.value.length})` : x(B.value[0]) : t.placeholder : Y.value ? t.multiple ? B.value.map(x).join(", ") : x(B.value[0]) : t.placeholder), O = Object.values(zt), E = h(
|
|
2136
2136
|
() => typeof t.width == "string" && O.includes(t.width) ? `ds-select--w-${t.width}` : null
|
|
2137
|
-
), C =
|
|
2137
|
+
), C = h(() => {
|
|
2138
2138
|
if (!E.value)
|
|
2139
2139
|
return { width: typeof t.width == "number" ? `${t.width}px` : t.width };
|
|
2140
|
-
}), L =
|
|
2141
|
-
() => _.value && b.value >= 0 ?
|
|
2140
|
+
}), L = h(
|
|
2141
|
+
() => _.value && b.value >= 0 ? c(b.value) : void 0
|
|
2142
2142
|
);
|
|
2143
2143
|
function I() {
|
|
2144
2144
|
if (S.value.length === 0) return -1;
|
|
@@ -2152,9 +2152,9 @@ const Ee = {
|
|
|
2152
2152
|
}));
|
|
2153
2153
|
}
|
|
2154
2154
|
function H(D = !0) {
|
|
2155
|
-
_.value = !1, b.value = -1,
|
|
2155
|
+
_.value = !1, b.value = -1, p.value && (p.value = "", i(pe, "")), D && se(() => {
|
|
2156
2156
|
var q;
|
|
2157
|
-
return (q =
|
|
2157
|
+
return (q = g.value) == null ? void 0 : q.focus();
|
|
2158
2158
|
});
|
|
2159
2159
|
}
|
|
2160
2160
|
function Te() {
|
|
@@ -2177,7 +2177,7 @@ const Ee = {
|
|
|
2177
2177
|
const q = S.value.length;
|
|
2178
2178
|
q !== 0 && (b.value < 0 ? b.value = D > 0 ? 0 : q - 1 : b.value = (b.value + D + q) % q, se(() => {
|
|
2179
2179
|
var J, Q;
|
|
2180
|
-
(Q = (J = document.getElementById(
|
|
2180
|
+
(Q = (J = document.getElementById(c(b.value))) == null ? void 0 : J.scrollIntoView) == null || Q.call(J, { block: "nearest" });
|
|
2181
2181
|
}));
|
|
2182
2182
|
}
|
|
2183
2183
|
function Ye(D) {
|
|
@@ -2237,13 +2237,13 @@ const Ee = {
|
|
|
2237
2237
|
}
|
|
2238
2238
|
}
|
|
2239
2239
|
function te(D) {
|
|
2240
|
-
|
|
2240
|
+
p.value = D.target.value, i(pe, p.value);
|
|
2241
2241
|
}
|
|
2242
2242
|
le(S, (D) => {
|
|
2243
2243
|
_.value && (D.length === 0 ? b.value = -1 : (b.value < 0 || b.value >= D.length) && (b.value = 0));
|
|
2244
2244
|
});
|
|
2245
2245
|
function ie(D) {
|
|
2246
|
-
|
|
2246
|
+
m.value && !m.value.contains(D.target) && H(!1);
|
|
2247
2247
|
}
|
|
2248
2248
|
return le(_, (D) => {
|
|
2249
2249
|
typeof document != "undefined" && (D ? document.addEventListener("mousedown", ie) : document.removeEventListener("mousedown", ie));
|
|
@@ -2256,7 +2256,7 @@ const Ee = {
|
|
|
2256
2256
|
typeof document != "undefined" && document.removeEventListener("mousedown", ie);
|
|
2257
2257
|
}), (D, q) => (a(), l("div", {
|
|
2258
2258
|
ref_key: "rootRef",
|
|
2259
|
-
ref:
|
|
2259
|
+
ref: m,
|
|
2260
2260
|
class: A(["ds-select", [`ds-select--${e.selectType}`, E.value, { "is-open": _.value }]]),
|
|
2261
2261
|
style: X(C.value)
|
|
2262
2262
|
}, [
|
|
@@ -2265,7 +2265,7 @@ const Ee = {
|
|
|
2265
2265
|
}, [
|
|
2266
2266
|
s("button", {
|
|
2267
2267
|
ref_key: "triggerRef",
|
|
2268
|
-
ref:
|
|
2268
|
+
ref: g,
|
|
2269
2269
|
type: "button",
|
|
2270
2270
|
class: "ds-select__trigger",
|
|
2271
2271
|
disabled: e.disabled,
|
|
@@ -2281,7 +2281,7 @@ const Ee = {
|
|
|
2281
2281
|
title: w.value
|
|
2282
2282
|
}, r(w.value), 9, Bn)
|
|
2283
2283
|
], 40, On),
|
|
2284
|
-
|
|
2284
|
+
u.value && Y.value ? (a(), l("button", {
|
|
2285
2285
|
key: 0,
|
|
2286
2286
|
type: "button",
|
|
2287
2287
|
class: "ds-select__clear",
|
|
@@ -2314,11 +2314,11 @@ const Ee = {
|
|
|
2314
2314
|
autocomplete: "off",
|
|
2315
2315
|
"aria-label": e.searchLabel,
|
|
2316
2316
|
placeholder: e.searchPlaceholder,
|
|
2317
|
-
value:
|
|
2317
|
+
value: p.value,
|
|
2318
2318
|
onInput: te,
|
|
2319
2319
|
onKeydown: Z
|
|
2320
2320
|
}, null, 40, Un)
|
|
2321
|
-
])) :
|
|
2321
|
+
])) : k("", !0),
|
|
2322
2322
|
s("ul", {
|
|
2323
2323
|
id: v,
|
|
2324
2324
|
class: "ds-select__listbox",
|
|
@@ -2330,7 +2330,7 @@ const Ee = {
|
|
|
2330
2330
|
}, [
|
|
2331
2331
|
e.loading ? (a(), l("li", Vn, [
|
|
2332
2332
|
F(D.$slots, "loading", {}, () => [
|
|
2333
|
-
V(
|
|
2333
|
+
V(f(Me), { size: "small" })
|
|
2334
2334
|
], !0)
|
|
2335
2335
|
])) : (a(), l(G, { key: 1 }, [
|
|
2336
2336
|
(a(!0), l(G, null, ne(R.value, (J) => (a(), l("li", {
|
|
@@ -2343,9 +2343,9 @@ const Ee = {
|
|
|
2343
2343
|
key: 0,
|
|
2344
2344
|
id: J.headerId,
|
|
2345
2345
|
class: "ds-select__group-header"
|
|
2346
|
-
}, r(J.label), 9, Gn)) :
|
|
2346
|
+
}, r(J.label), 9, Gn)) : k("", !0),
|
|
2347
2347
|
(a(!0), l(G, null, ne(J.items, (Q) => (a(), l("div", {
|
|
2348
|
-
id:
|
|
2348
|
+
id: c(Q.index),
|
|
2349
2349
|
key: Q.option.value,
|
|
2350
2350
|
class: A(["ds-select__option", {
|
|
2351
2351
|
"is-selected": K(Q.option.value),
|
|
@@ -2357,13 +2357,13 @@ const Ee = {
|
|
|
2357
2357
|
onClick: De((re) => Ue(Q.option.value), ["prevent"]),
|
|
2358
2358
|
onMouseenter: (re) => b.value = Q.index
|
|
2359
2359
|
}, [
|
|
2360
|
-
e.showCheckbox ? (a(), W(
|
|
2360
|
+
e.showCheckbox ? (a(), W(f(at), {
|
|
2361
2361
|
key: 0,
|
|
2362
2362
|
class: "ds-select__option-check",
|
|
2363
2363
|
"model-value": K(Q.option.value),
|
|
2364
2364
|
disabled: "",
|
|
2365
2365
|
"aria-hidden": "true"
|
|
2366
|
-
}, null, 8, ["model-value"])) :
|
|
2366
|
+
}, null, 8, ["model-value"])) : k("", !0),
|
|
2367
2367
|
F(D.$slots, "option", {
|
|
2368
2368
|
option: Q.option,
|
|
2369
2369
|
selected: K(Q.option.value),
|
|
@@ -2374,10 +2374,10 @@ const Ee = {
|
|
|
2374
2374
|
class: "material-symbols-filled ds-select__option-icon",
|
|
2375
2375
|
style: X(Q.option.color ? { color: Q.option.color } : void 0),
|
|
2376
2376
|
"aria-hidden": "true"
|
|
2377
|
-
}, r(Q.option.icon), 5)) :
|
|
2377
|
+
}, r(Q.option.icon), 5)) : k("", !0),
|
|
2378
2378
|
s("span", Kn, [
|
|
2379
2379
|
ae(r(Q.option.label), 1),
|
|
2380
|
-
Q.option.subLabel ? (a(), l("span", Wn, ", " + r(Q.option.subLabel), 1)) :
|
|
2380
|
+
Q.option.subLabel ? (a(), l("span", Wn, ", " + r(Q.option.subLabel), 1)) : k("", !0)
|
|
2381
2381
|
])
|
|
2382
2382
|
], !0)
|
|
2383
2383
|
], 42, Hn))), 128))
|
|
@@ -2386,10 +2386,10 @@ const Ee = {
|
|
|
2386
2386
|
F(D.$slots, "empty", {}, () => [
|
|
2387
2387
|
ae(r(e.emptyText), 1)
|
|
2388
2388
|
], !0)
|
|
2389
|
-
])) :
|
|
2389
|
+
])) : k("", !0)
|
|
2390
2390
|
], 64))
|
|
2391
2391
|
], 40, Fn)
|
|
2392
|
-
])) :
|
|
2392
|
+
])) : k("", !0)
|
|
2393
2393
|
], 6));
|
|
2394
2394
|
}
|
|
2395
2395
|
}), Xd = /* @__PURE__ */ U(jn, [["__scopeId", "data-v-936974a2"]]), Xn = ["tabindex"], Zn = /* @__PURE__ */ z({
|
|
@@ -2407,7 +2407,7 @@ const Ee = {
|
|
|
2407
2407
|
function d(v) {
|
|
2408
2408
|
t.clickable && (v.key === "Enter" || v.key === " ") && (v.preventDefault(), i(me));
|
|
2409
2409
|
}
|
|
2410
|
-
return (v,
|
|
2410
|
+
return (v, c) => (a(), l("tr", {
|
|
2411
2411
|
class: A(["ds-row", { "is-selected": e.selected, "is-clickable": e.clickable }]),
|
|
2412
2412
|
tabindex: e.clickable ? 0 : void 0,
|
|
2413
2413
|
onClick: n,
|
|
@@ -2434,7 +2434,7 @@ const Ee = {
|
|
|
2434
2434
|
}
|
|
2435
2435
|
},
|
|
2436
2436
|
setup(e) {
|
|
2437
|
-
const o = e, t = (n) => typeof n == "number" ? `${n}px` : n, i =
|
|
2437
|
+
const o = e, t = (n) => typeof n == "number" ? `${n}px` : n, i = h(() => {
|
|
2438
2438
|
const n = {};
|
|
2439
2439
|
if (o.width != null && (n.width = t(o.width)), o.pinned) {
|
|
2440
2440
|
n.position = "sticky";
|
|
@@ -2521,10 +2521,10 @@ const Ee = {
|
|
|
2521
2521
|
type: "button",
|
|
2522
2522
|
class: "ds-pill__icon",
|
|
2523
2523
|
"aria-label": e.iconLabel || void 0,
|
|
2524
|
-
onClick: n[0] || (n[0] = (d) => t(
|
|
2524
|
+
onClick: n[0] || (n[0] = (d) => t(f(me)))
|
|
2525
2525
|
}, [
|
|
2526
2526
|
s("i", li, r(e.icon), 1)
|
|
2527
|
-
], 8, ai)) :
|
|
2527
|
+
], 8, ai)) : k("", !0)
|
|
2528
2528
|
], 6));
|
|
2529
2529
|
}
|
|
2530
2530
|
}), er = /* @__PURE__ */ U(ni, [["__scopeId", "data-v-59af98d0"]]), ii = {
|
|
@@ -2538,11 +2538,11 @@ const Ee = {
|
|
|
2538
2538
|
return (i, n) => (a(), l("button", {
|
|
2539
2539
|
type: "button",
|
|
2540
2540
|
class: "ds-pill-with-border",
|
|
2541
|
-
onClick: n[0] || (n[0] = (d) => t(
|
|
2541
|
+
onClick: n[0] || (n[0] = (d) => t(f(me)))
|
|
2542
2542
|
}, [
|
|
2543
2543
|
i.$slots.icon ? (a(), l("span", ii, [
|
|
2544
2544
|
F(i.$slots, "icon", {}, void 0, !0)
|
|
2545
|
-
])) :
|
|
2545
|
+
])) : k("", !0),
|
|
2546
2546
|
s("span", si, [
|
|
2547
2547
|
F(i.$slots, "default", {}, void 0, !0)
|
|
2548
2548
|
])
|
|
@@ -2575,7 +2575,7 @@ const Ee = {
|
|
|
2575
2575
|
showLegend: { type: Boolean, default: !1 }
|
|
2576
2576
|
},
|
|
2577
2577
|
setup(e) {
|
|
2578
|
-
const o = e, t = ze(), i =
|
|
2578
|
+
const o = e, t = ze(), i = h(() => o.segments.filter((d) => !!d.name)), n = h(
|
|
2579
2579
|
() => !!t.legend || o.showLegend && i.value.length > 0
|
|
2580
2580
|
);
|
|
2581
2581
|
return (d, v) => n.value ? (a(), l("div", ci, [
|
|
@@ -2585,30 +2585,30 @@ const Ee = {
|
|
|
2585
2585
|
"aria-label": e.label || void 0,
|
|
2586
2586
|
style: { height: `${e.height}px` }
|
|
2587
2587
|
}), [
|
|
2588
|
-
(a(!0), l(G, null, ne(e.segments, (
|
|
2589
|
-
var
|
|
2588
|
+
(a(!0), l(G, null, ne(e.segments, (c, m) => {
|
|
2589
|
+
var g;
|
|
2590
2590
|
return a(), l("div", {
|
|
2591
|
-
key: `${(
|
|
2591
|
+
key: `${(g = c.name) != null ? g : ""}-${m}`,
|
|
2592
2592
|
class: "ds-segmented-progress-bar__segment",
|
|
2593
2593
|
style: X({
|
|
2594
|
-
width: `${e.total > 0 ?
|
|
2595
|
-
backgroundColor:
|
|
2594
|
+
width: `${e.total > 0 ? c.amount * 100 / e.total : 0}%`,
|
|
2595
|
+
backgroundColor: c.color
|
|
2596
2596
|
}),
|
|
2597
|
-
title:
|
|
2597
|
+
title: c.name || void 0
|
|
2598
2598
|
}, null, 12, fi);
|
|
2599
2599
|
}), 128))
|
|
2600
2600
|
], 16, ui),
|
|
2601
2601
|
F(d.$slots, "legend", {}, () => [
|
|
2602
2602
|
s("ul", vi, [
|
|
2603
|
-
(a(!0), l(G, null, ne(i.value, (
|
|
2604
|
-
key: `${
|
|
2603
|
+
(a(!0), l(G, null, ne(i.value, (c, m) => (a(), l("li", {
|
|
2604
|
+
key: `${c.name}-${m}`,
|
|
2605
2605
|
class: "ds-segmented-progress-bar__legend-item"
|
|
2606
2606
|
}, [
|
|
2607
2607
|
s("span", {
|
|
2608
2608
|
class: "ds-segmented-progress-bar__legend-swatch",
|
|
2609
|
-
style: X({ backgroundColor:
|
|
2609
|
+
style: X({ backgroundColor: c.color })
|
|
2610
2610
|
}, null, 4),
|
|
2611
|
-
s("span", bi, r(
|
|
2611
|
+
s("span", bi, r(c.name), 1)
|
|
2612
2612
|
]))), 128))
|
|
2613
2613
|
])
|
|
2614
2614
|
], !0)
|
|
@@ -2618,16 +2618,16 @@ const Ee = {
|
|
|
2618
2618
|
"aria-label": e.label || void 0,
|
|
2619
2619
|
style: { height: `${e.height}px` }
|
|
2620
2620
|
}), [
|
|
2621
|
-
(a(!0), l(G, null, ne(e.segments, (
|
|
2622
|
-
var
|
|
2621
|
+
(a(!0), l(G, null, ne(e.segments, (c, m) => {
|
|
2622
|
+
var g;
|
|
2623
2623
|
return a(), l("div", {
|
|
2624
|
-
key: `${(
|
|
2624
|
+
key: `${(g = c.name) != null ? g : ""}-${m}`,
|
|
2625
2625
|
class: "ds-segmented-progress-bar__segment",
|
|
2626
2626
|
style: X({
|
|
2627
|
-
width: `${e.total > 0 ?
|
|
2628
|
-
backgroundColor:
|
|
2627
|
+
width: `${e.total > 0 ? c.amount * 100 / e.total : 0}%`,
|
|
2628
|
+
backgroundColor: c.color
|
|
2629
2629
|
}),
|
|
2630
|
-
title:
|
|
2630
|
+
title: c.name || void 0
|
|
2631
2631
|
}, null, 12, ri);
|
|
2632
2632
|
}), 128))
|
|
2633
2633
|
], 16, di));
|
|
@@ -2654,16 +2654,16 @@ const Ee = {
|
|
|
2654
2654
|
}, [
|
|
2655
2655
|
o.$slots["table-header"] ? (a(), l("div", yi, [
|
|
2656
2656
|
F(o.$slots, "table-header", {}, void 0, !0)
|
|
2657
|
-
])) :
|
|
2657
|
+
])) : k("", !0),
|
|
2658
2658
|
s("div", gi, [
|
|
2659
2659
|
e.image ? (a(), l("img", {
|
|
2660
2660
|
key: 0,
|
|
2661
2661
|
src: e.image,
|
|
2662
2662
|
alt: "",
|
|
2663
2663
|
class: "ds-empty-state__image"
|
|
2664
|
-
}, null, 8, hi)) :
|
|
2664
|
+
}, null, 8, hi)) : k("", !0),
|
|
2665
2665
|
s("p", pi, r(e.title), 1),
|
|
2666
|
-
e.subtitle ? (a(), l("p", ki, r(e.subtitle), 1)) :
|
|
2666
|
+
e.subtitle ? (a(), l("p", ki, r(e.subtitle), 1)) : k("", !0),
|
|
2667
2667
|
F(o.$slots, "button", {}, void 0, !0)
|
|
2668
2668
|
])
|
|
2669
2669
|
], 2));
|
|
@@ -2694,38 +2694,38 @@ const Ee = {
|
|
|
2694
2694
|
},
|
|
2695
2695
|
emits: [St, $t],
|
|
2696
2696
|
setup(e, { emit: o }) {
|
|
2697
|
-
const t = e, i = o, n =
|
|
2698
|
-
const
|
|
2699
|
-
if (
|
|
2700
|
-
return Array.from({ length:
|
|
2701
|
-
const
|
|
2702
|
-
|
|
2703
|
-
const _ = Math.max(2,
|
|
2704
|
-
for (let
|
|
2705
|
-
$.push(
|
|
2706
|
-
return
|
|
2697
|
+
const t = e, i = o, n = h(() => Math.max(1, Math.ceil(t.total / t.pageSize))), d = h(() => {
|
|
2698
|
+
const m = n.value;
|
|
2699
|
+
if (m <= 7)
|
|
2700
|
+
return Array.from({ length: m }, (p, u) => u + 1);
|
|
2701
|
+
const g = t.currentPage, $ = [1];
|
|
2702
|
+
g > 4 && $.push(Ii);
|
|
2703
|
+
const _ = Math.max(2, g - 2), b = Math.min(m - 1, g + 2);
|
|
2704
|
+
for (let p = _; p <= b; p++)
|
|
2705
|
+
$.push(p);
|
|
2706
|
+
return g < m - 3 && $.push(Di), $.push(m), $;
|
|
2707
2707
|
});
|
|
2708
|
-
function v(
|
|
2709
|
-
|
|
2708
|
+
function v(m) {
|
|
2709
|
+
m < 1 || m > n.value || i(St, m);
|
|
2710
2710
|
}
|
|
2711
|
-
function
|
|
2712
|
-
const
|
|
2713
|
-
i($t, Number(
|
|
2711
|
+
function c(m) {
|
|
2712
|
+
const g = m.target;
|
|
2713
|
+
i($t, Number(g.value));
|
|
2714
2714
|
}
|
|
2715
|
-
return (
|
|
2715
|
+
return (m, g) => (a(), l("nav", {
|
|
2716
2716
|
class: "ds-paginator",
|
|
2717
2717
|
"aria-label": e.paginationLabel || void 0
|
|
2718
2718
|
}, [
|
|
2719
|
-
e.limitMessage ? (a(), l("span", _i, r(e.limitMessage), 1)) :
|
|
2719
|
+
e.limitMessage ? (a(), l("span", _i, r(e.limitMessage), 1)) : k("", !0),
|
|
2720
2720
|
s("div", Li, [
|
|
2721
|
-
V(
|
|
2721
|
+
V(f(oe), {
|
|
2722
2722
|
variant: "tertiary",
|
|
2723
2723
|
circle: "",
|
|
2724
2724
|
size: "medium",
|
|
2725
2725
|
"left-icon": "chevron_left",
|
|
2726
2726
|
"aria-label": e.prevLabel || void 0,
|
|
2727
2727
|
disabled: e.currentPage <= 1,
|
|
2728
|
-
onClick:
|
|
2728
|
+
onClick: g[0] || (g[0] = ($) => v(e.currentPage - 1))
|
|
2729
2729
|
}, null, 8, ["aria-label", "disabled"]),
|
|
2730
2730
|
(a(!0), l(G, null, ne(d.value, ($) => (a(), l(G, { key: $ }, [
|
|
2731
2731
|
typeof $ == "string" ? (a(), l("span", wi, "…")) : (a(), l("button", {
|
|
@@ -2736,21 +2736,21 @@ const Ee = {
|
|
|
2736
2736
|
onClick: (_) => v($)
|
|
2737
2737
|
}, r($), 11, Ei))
|
|
2738
2738
|
], 64))), 128)),
|
|
2739
|
-
V(
|
|
2739
|
+
V(f(oe), {
|
|
2740
2740
|
variant: "tertiary",
|
|
2741
2741
|
circle: "",
|
|
2742
2742
|
size: "medium",
|
|
2743
2743
|
"left-icon": "chevron_right",
|
|
2744
2744
|
"aria-label": e.nextLabel || void 0,
|
|
2745
2745
|
disabled: e.currentPage >= n.value,
|
|
2746
|
-
onClick:
|
|
2746
|
+
onClick: g[1] || (g[1] = ($) => v(e.currentPage + 1))
|
|
2747
2747
|
}, null, 8, ["aria-label", "disabled"])
|
|
2748
2748
|
]),
|
|
2749
2749
|
s("select", {
|
|
2750
2750
|
class: "ds-paginator__page-size",
|
|
2751
2751
|
"aria-label": e.pageSizeLabel || void 0,
|
|
2752
2752
|
value: e.pageSize,
|
|
2753
|
-
onChange:
|
|
2753
|
+
onChange: c
|
|
2754
2754
|
}, [
|
|
2755
2755
|
(a(!0), l(G, null, ne(e.pageSizes, ($) => (a(), l("option", {
|
|
2756
2756
|
key: $,
|
|
@@ -2795,7 +2795,7 @@ const Ee = {
|
|
|
2795
2795
|
F(n.$slots, "default", {}, () => [
|
|
2796
2796
|
ae(r(e.text), 1)
|
|
2797
2797
|
], !0)
|
|
2798
|
-
])) :
|
|
2798
|
+
])) : k("", !0)
|
|
2799
2799
|
], 10, Ri));
|
|
2800
2800
|
}
|
|
2801
2801
|
}), ir = /* @__PURE__ */ U(Bi, [["__scopeId", "data-v-374c4426"]]), Ce = {
|
|
@@ -2824,31 +2824,31 @@ const Ee = {
|
|
|
2824
2824
|
},
|
|
2825
2825
|
emits: [ot, Lt],
|
|
2826
2826
|
setup(e, { emit: o }) {
|
|
2827
|
-
const t = e, i = o, n =
|
|
2828
|
-
() => t.steps.map((
|
|
2829
|
-
var
|
|
2827
|
+
const t = e, i = o, n = h(() => t.value === t.steps.length), d = h(
|
|
2828
|
+
() => t.steps.map((g, $) => {
|
|
2829
|
+
var p;
|
|
2830
2830
|
const _ = $ + 1;
|
|
2831
2831
|
let b;
|
|
2832
|
-
return _ === t.value ? b = Ce.ACTIVE :
|
|
2833
|
-
key: (
|
|
2832
|
+
return _ === t.value ? b = Ce.ACTIVE : g.completed ? b = Ce.COMPLETED : g.visited ? b = Ce.INCOMPLETE : _ < t.value ? b = Ce.COMPLETED : b = Ce.NEUTRAL, {
|
|
2833
|
+
key: (p = g.key) != null ? p : _,
|
|
2834
2834
|
index: _,
|
|
2835
|
-
label:
|
|
2835
|
+
label: g.label,
|
|
2836
2836
|
state: b,
|
|
2837
2837
|
current: b === Ce.ACTIVE,
|
|
2838
2838
|
marker: b === Ce.INCOMPLETE ? "!" : String(_)
|
|
2839
2839
|
};
|
|
2840
2840
|
})
|
|
2841
2841
|
);
|
|
2842
|
-
function v(
|
|
2843
|
-
t.clickable && i(ot,
|
|
2842
|
+
function v(g) {
|
|
2843
|
+
t.clickable && i(ot, g);
|
|
2844
2844
|
}
|
|
2845
|
-
function
|
|
2845
|
+
function c() {
|
|
2846
2846
|
t.value < t.steps.length && i(ot, t.value + 1);
|
|
2847
2847
|
}
|
|
2848
|
-
function
|
|
2848
|
+
function m() {
|
|
2849
2849
|
i(Lt);
|
|
2850
2850
|
}
|
|
2851
|
-
return (
|
|
2851
|
+
return (g, $) => (a(), l("div", Mi, [
|
|
2852
2852
|
s("ol", xi, [
|
|
2853
2853
|
(a(!0), l(G, null, ne(d.value, (_) => (a(), l("li", {
|
|
2854
2854
|
key: _.key,
|
|
@@ -2868,29 +2868,29 @@ const Ee = {
|
|
|
2868
2868
|
}, 1032, ["type", "class", "aria-current", "onClick"]))
|
|
2869
2869
|
]))), 128))
|
|
2870
2870
|
]),
|
|
2871
|
-
!n.value && e.nextLabel ? (a(), W(
|
|
2871
|
+
!n.value && e.nextLabel ? (a(), W(f(oe), {
|
|
2872
2872
|
key: 0,
|
|
2873
2873
|
variant: "primary",
|
|
2874
2874
|
size: "large",
|
|
2875
2875
|
"right-icon": "keyboard_arrow_right",
|
|
2876
|
-
onClick:
|
|
2876
|
+
onClick: c
|
|
2877
2877
|
}, {
|
|
2878
2878
|
default: P(() => [
|
|
2879
2879
|
ae(r(e.nextLabel), 1)
|
|
2880
2880
|
]),
|
|
2881
2881
|
_: 1
|
|
2882
|
-
})) :
|
|
2883
|
-
n.value && e.finalStepLabel ? (a(), W(
|
|
2882
|
+
})) : k("", !0),
|
|
2883
|
+
n.value && e.finalStepLabel ? (a(), W(f(oe), {
|
|
2884
2884
|
key: 1,
|
|
2885
2885
|
variant: "primary",
|
|
2886
2886
|
size: "large",
|
|
2887
|
-
onClick:
|
|
2887
|
+
onClick: m
|
|
2888
2888
|
}, {
|
|
2889
2889
|
default: P(() => [
|
|
2890
2890
|
ae(r(e.finalStepLabel), 1)
|
|
2891
2891
|
]),
|
|
2892
2892
|
_: 1
|
|
2893
|
-
})) :
|
|
2893
|
+
})) : k("", !0)
|
|
2894
2894
|
]));
|
|
2895
2895
|
}
|
|
2896
2896
|
}), sr = /* @__PURE__ */ U(Ui, [["__scopeId", "data-v-d6f1e6d7"]]), Ut = {
|
|
@@ -2941,39 +2941,39 @@ const Ee = {
|
|
|
2941
2941
|
setup(e, { emit: o }) {
|
|
2942
2942
|
const t = e, i = o, n = N(null);
|
|
2943
2943
|
let d = null;
|
|
2944
|
-
const v = ze(),
|
|
2944
|
+
const v = ze(), c = ve(), m = h(() => t.title && !v.header ? c : void 0), g = (E) => Math.min(Math.max(E, t.minWidth), Math.max(t.minWidth, t.maxWidth)), $ = N(g(t.width));
|
|
2945
2945
|
le(
|
|
2946
2946
|
() => [t.width, t.minWidth, t.maxWidth],
|
|
2947
2947
|
() => {
|
|
2948
|
-
|
|
2948
|
+
y.value || ($.value = g(t.width));
|
|
2949
2949
|
}
|
|
2950
2950
|
);
|
|
2951
|
-
const _ =
|
|
2951
|
+
const _ = h(() => ({ width: `${$.value}px` }));
|
|
2952
2952
|
async function b() {
|
|
2953
2953
|
t.beforeClose && await t.beforeClose() === !1 || i(ce);
|
|
2954
2954
|
}
|
|
2955
|
-
let
|
|
2956
|
-
function
|
|
2957
|
-
if (
|
|
2958
|
-
|
|
2955
|
+
let p = !1;
|
|
2956
|
+
function u() {
|
|
2957
|
+
if (p) {
|
|
2958
|
+
p = !1;
|
|
2959
2959
|
return;
|
|
2960
2960
|
}
|
|
2961
2961
|
t.fixed && t.closeOnOverlay && b();
|
|
2962
2962
|
}
|
|
2963
|
-
const
|
|
2963
|
+
const y = N(!1);
|
|
2964
2964
|
let T = 0, S = 0;
|
|
2965
2965
|
function R(E) {
|
|
2966
2966
|
const C = E.clientX - T, L = t.direction === Ut.RTL ? S - C : S + C;
|
|
2967
|
-
return
|
|
2967
|
+
return g(L);
|
|
2968
2968
|
}
|
|
2969
2969
|
function B(E) {
|
|
2970
|
-
t.resizable && (
|
|
2970
|
+
t.resizable && (y.value = !0, T = E.clientX, S = $.value, document.addEventListener("pointermove", Y), document.addEventListener("pointerup", j), document.addEventListener("pointercancel", j), i(Et, $.value));
|
|
2971
2971
|
}
|
|
2972
2972
|
function Y(E) {
|
|
2973
|
-
|
|
2973
|
+
y.value && ($.value = R(E), i(Tt, $.value));
|
|
2974
2974
|
}
|
|
2975
2975
|
function j() {
|
|
2976
|
-
|
|
2976
|
+
y.value && (K(), y.value = !1, p = !0, setTimeout(() => p = !1, 0), i(Ct, $.value));
|
|
2977
2977
|
}
|
|
2978
2978
|
function K() {
|
|
2979
2979
|
document.removeEventListener("pointermove", Y), document.removeEventListener("pointerup", j), document.removeEventListener("pointercancel", j);
|
|
@@ -3026,8 +3026,8 @@ const Ee = {
|
|
|
3026
3026
|
default: P(() => [
|
|
3027
3027
|
e.open ? (a(), l("div", {
|
|
3028
3028
|
key: 0,
|
|
3029
|
-
class: A(["ds-drawer", [`ds-drawer--${e.direction}`, { "is-fixed": e.fixed, "is-resizing":
|
|
3030
|
-
onClick: De(
|
|
3029
|
+
class: A(["ds-drawer", [`ds-drawer--${e.direction}`, { "is-fixed": e.fixed, "is-resizing": y.value }]]),
|
|
3030
|
+
onClick: De(u, ["self"])
|
|
3031
3031
|
}, [
|
|
3032
3032
|
s("aside", {
|
|
3033
3033
|
ref_key: "panelRef",
|
|
@@ -3035,8 +3035,8 @@ const Ee = {
|
|
|
3035
3035
|
class: "ds-drawer__panel",
|
|
3036
3036
|
role: "dialog",
|
|
3037
3037
|
"aria-modal": e.fixed ? "true" : "false",
|
|
3038
|
-
"aria-labelledby":
|
|
3039
|
-
"aria-label":
|
|
3038
|
+
"aria-labelledby": m.value,
|
|
3039
|
+
"aria-label": m.value ? void 0 : "drawer",
|
|
3040
3040
|
tabindex: "-1",
|
|
3041
3041
|
style: X(_.value)
|
|
3042
3042
|
}, [
|
|
@@ -3045,18 +3045,18 @@ const Ee = {
|
|
|
3045
3045
|
class: "ds-drawer__dragger",
|
|
3046
3046
|
"aria-hidden": "true",
|
|
3047
3047
|
onPointerdown: De(B, ["stop", "prevent"])
|
|
3048
|
-
}, null, 32)) :
|
|
3048
|
+
}, null, 32)) : k("", !0),
|
|
3049
3049
|
e.title || e.showClose || E.$slots.header || E.$slots.actions ? (a(), l("header", Vi, [
|
|
3050
3050
|
F(E.$slots, "header", {}, () => [
|
|
3051
3051
|
s("h4", {
|
|
3052
|
-
id:
|
|
3052
|
+
id: f(c),
|
|
3053
3053
|
class: "ds-drawer__title"
|
|
3054
3054
|
}, r(e.title), 9, qi)
|
|
3055
3055
|
], !0),
|
|
3056
3056
|
e.showClose || E.$slots.actions ? (a(), l("div", Gi, [
|
|
3057
3057
|
E.$slots.actions ? (a(), l("div", Hi, [
|
|
3058
3058
|
F(E.$slots, "actions", {}, void 0, !0)
|
|
3059
|
-
])) :
|
|
3059
|
+
])) : k("", !0),
|
|
3060
3060
|
e.showClose ? (a(), l("button", {
|
|
3061
3061
|
key: 1,
|
|
3062
3062
|
type: "button",
|
|
@@ -3068,17 +3068,17 @@ const Ee = {
|
|
|
3068
3068
|
class: "material-symbols-filled",
|
|
3069
3069
|
"aria-hidden": "true"
|
|
3070
3070
|
}, "close", -1)
|
|
3071
|
-
])], 8, Ki)) :
|
|
3072
|
-
])) :
|
|
3073
|
-
])) :
|
|
3071
|
+
])], 8, Ki)) : k("", !0)
|
|
3072
|
+
])) : k("", !0)
|
|
3073
|
+
])) : k("", !0),
|
|
3074
3074
|
s("div", Wi, [
|
|
3075
3075
|
F(E.$slots, "default", {}, void 0, !0)
|
|
3076
3076
|
]),
|
|
3077
3077
|
E.$slots.footer ? (a(), l("footer", Yi, [
|
|
3078
3078
|
F(E.$slots, "footer", {}, void 0, !0)
|
|
3079
|
-
])) :
|
|
3079
|
+
])) : k("", !0)
|
|
3080
3080
|
], 12, Fi)
|
|
3081
|
-
], 2)) :
|
|
3081
|
+
], 2)) : k("", !0)
|
|
3082
3082
|
]),
|
|
3083
3083
|
_: 3
|
|
3084
3084
|
}, 8, ["name"])
|
|
@@ -3137,7 +3137,7 @@ const Ee = {
|
|
|
3137
3137
|
setup(e, { emit: o }) {
|
|
3138
3138
|
var C;
|
|
3139
3139
|
const t = e, i = o, n = N(null), d = N(null), v = /* @__PURE__ */ new Set();
|
|
3140
|
-
function
|
|
3140
|
+
function c(L) {
|
|
3141
3141
|
var I, ee;
|
|
3142
3142
|
return !!((I = n.value) != null && I.contains(L)) || !!((ee = d.value) != null && ee.contains(L)) || [...v].some((H) => H(L));
|
|
3143
3143
|
}
|
|
@@ -3146,12 +3146,12 @@ const Ee = {
|
|
|
3146
3146
|
return v.add(L), () => v.delete(L);
|
|
3147
3147
|
}
|
|
3148
3148
|
});
|
|
3149
|
-
const
|
|
3149
|
+
const g = (C = fa(Ft, null)) == null ? void 0 : C.register(c), $ = ve(), {
|
|
3150
3150
|
shiftStyle: _,
|
|
3151
3151
|
resolvedPlacement: b,
|
|
3152
|
-
activate:
|
|
3153
|
-
deactivate:
|
|
3154
|
-
} = Xt(d, () => t.placement, { trigger: n, gap: Qi }),
|
|
3152
|
+
activate: p,
|
|
3153
|
+
deactivate: u
|
|
3154
|
+
} = Xt(d, () => t.placement, { trigger: n, gap: Qi }), y = h(() => {
|
|
3155
3155
|
const I = {
|
|
3156
3156
|
...!!t.growTo ? {
|
|
3157
3157
|
width: "max-content",
|
|
@@ -3162,7 +3162,7 @@ const Ee = {
|
|
|
3162
3162
|
..._.value
|
|
3163
3163
|
};
|
|
3164
3164
|
return Object.keys(I).length > 0 ? I : void 0;
|
|
3165
|
-
}), T = N(null), S =
|
|
3165
|
+
}), T = N(null), S = h(() => {
|
|
3166
3166
|
const L = T.value;
|
|
3167
3167
|
return L ? {
|
|
3168
3168
|
zIndex: Vt,
|
|
@@ -3201,7 +3201,7 @@ const Ee = {
|
|
|
3201
3201
|
}
|
|
3202
3202
|
function E(L) {
|
|
3203
3203
|
const I = L.target;
|
|
3204
|
-
!I ||
|
|
3204
|
+
!I || c(I) || x();
|
|
3205
3205
|
}
|
|
3206
3206
|
return le(
|
|
3207
3207
|
() => t.open,
|
|
@@ -3209,12 +3209,12 @@ const Ee = {
|
|
|
3209
3209
|
var ee;
|
|
3210
3210
|
typeof document != "undefined" && (L ? (M = document.activeElement, t.closeOnOutside && document.addEventListener("mousedown", E), t.teleported && j(), se(() => {
|
|
3211
3211
|
var H, Te;
|
|
3212
|
-
(Te = (H = d.value) == null ? void 0 : H.focus) == null || Te.call(H, { preventScroll: !0 }),
|
|
3213
|
-
})) : I && (document.removeEventListener("mousedown", E), K(),
|
|
3212
|
+
(Te = (H = d.value) == null ? void 0 : H.focus) == null || Te.call(H, { preventScroll: !0 }), p();
|
|
3213
|
+
})) : I && (document.removeEventListener("mousedown", E), K(), u(), (ee = M == null ? void 0 : M.focus) == null || ee.call(M, { preventScroll: !0 })));
|
|
3214
3214
|
},
|
|
3215
3215
|
{ immediate: !0 }
|
|
3216
3216
|
), be(() => {
|
|
3217
|
-
|
|
3217
|
+
g == null || g(), typeof document != "undefined" && (document.removeEventListener("mousedown", E), K(), u());
|
|
3218
3218
|
}), (L, I) => (a(), l("div", {
|
|
3219
3219
|
ref_key: "rootRef",
|
|
3220
3220
|
ref: n,
|
|
@@ -3240,17 +3240,17 @@ const Ee = {
|
|
|
3240
3240
|
onKeydown: je(O, ["esc"])
|
|
3241
3241
|
}, [
|
|
3242
3242
|
s("div", {
|
|
3243
|
-
id:
|
|
3243
|
+
id: f($),
|
|
3244
3244
|
ref_key: "panelRef",
|
|
3245
3245
|
ref: d,
|
|
3246
|
-
class: A(["ds-popover__panel", [`ds-popover__panel--${
|
|
3246
|
+
class: A(["ds-popover__panel", [`ds-popover__panel--${f(b)}`, { "is-flush": e.flush }]]),
|
|
3247
3247
|
role: "dialog",
|
|
3248
3248
|
tabindex: "-1",
|
|
3249
|
-
style: X(
|
|
3249
|
+
style: X(y.value)
|
|
3250
3250
|
}, [
|
|
3251
3251
|
F(L.$slots, "default", {}, void 0, !0)
|
|
3252
3252
|
], 14, Xi)
|
|
3253
|
-
], 36)) :
|
|
3253
|
+
], 36)) : k("", !0)
|
|
3254
3254
|
]),
|
|
3255
3255
|
_: 3
|
|
3256
3256
|
})
|
|
@@ -3261,16 +3261,16 @@ const Ee = {
|
|
|
3261
3261
|
default: P(() => [
|
|
3262
3262
|
e.open ? (a(), l("div", {
|
|
3263
3263
|
key: 0,
|
|
3264
|
-
id:
|
|
3264
|
+
id: f($),
|
|
3265
3265
|
ref_key: "panelRef",
|
|
3266
3266
|
ref: d,
|
|
3267
|
-
class: A(["ds-popover__panel", [`ds-popover__panel--${
|
|
3267
|
+
class: A(["ds-popover__panel", [`ds-popover__panel--${f(b)}`, { "is-flush": e.flush }]]),
|
|
3268
3268
|
role: "dialog",
|
|
3269
3269
|
tabindex: "-1",
|
|
3270
|
-
style: X(
|
|
3270
|
+
style: X(y.value)
|
|
3271
3271
|
}, [
|
|
3272
3272
|
F(L.$slots, "default", {}, void 0, !0)
|
|
3273
|
-
], 14, Zi)) :
|
|
3273
|
+
], 14, Zi)) : k("", !0)
|
|
3274
3274
|
]),
|
|
3275
3275
|
_: 3
|
|
3276
3276
|
}))
|
|
@@ -3293,11 +3293,11 @@ const Ee = {
|
|
|
3293
3293
|
() => o.src,
|
|
3294
3294
|
() => t.value = !1
|
|
3295
3295
|
);
|
|
3296
|
-
const i =
|
|
3296
|
+
const i = h(() => (o.name || "?").slice(0, 1)), n = h(() => ({ width: `${o.size}px`, height: `${o.size}px` })), d = h(() => {
|
|
3297
3297
|
const v = `${Math.round(o.size * 0.61)}px`;
|
|
3298
3298
|
return { width: v, height: v };
|
|
3299
3299
|
});
|
|
3300
|
-
return (v,
|
|
3300
|
+
return (v, c) => (a(), l("span", {
|
|
3301
3301
|
class: "ds-company-logo",
|
|
3302
3302
|
style: X(n.value)
|
|
3303
3303
|
}, [
|
|
@@ -3308,7 +3308,7 @@ const Ee = {
|
|
|
3308
3308
|
alt: "",
|
|
3309
3309
|
loading: "lazy",
|
|
3310
3310
|
style: X(d.value),
|
|
3311
|
-
onError:
|
|
3311
|
+
onError: c[0] || (c[0] = (m) => t.value = !0)
|
|
3312
3312
|
}, null, 44, es)) : (a(), l("span", ts, r(i.value), 1))
|
|
3313
3313
|
], 4));
|
|
3314
3314
|
}
|
|
@@ -3330,7 +3330,7 @@ const Ee = {
|
|
|
3330
3330
|
details: { type: Array, default: () => [] }
|
|
3331
3331
|
},
|
|
3332
3332
|
setup(e) {
|
|
3333
|
-
const o = e, t =
|
|
3333
|
+
const o = e, t = h(() => o.details.filter((i) => i.value));
|
|
3334
3334
|
return (i, n) => (a(), l("div", ls, [
|
|
3335
3335
|
s("div", ns, [
|
|
3336
3336
|
V(Qt, {
|
|
@@ -3342,7 +3342,7 @@ const Ee = {
|
|
|
3342
3342
|
e.websiteUrl ? (a(), W(ge, {
|
|
3343
3343
|
key: 0,
|
|
3344
3344
|
content: e.websiteLabel,
|
|
3345
|
-
placement:
|
|
3345
|
+
placement: f(Ee).BOTTOM
|
|
3346
3346
|
}, {
|
|
3347
3347
|
default: P(() => [
|
|
3348
3348
|
s("a", {
|
|
@@ -3359,7 +3359,7 @@ const Ee = {
|
|
|
3359
3359
|
])], 8, ss)
|
|
3360
3360
|
]),
|
|
3361
3361
|
_: 1
|
|
3362
|
-
}, 8, ["content", "placement"])) :
|
|
3362
|
+
}, 8, ["content", "placement"])) : k("", !0),
|
|
3363
3363
|
e.linkedinUrl ? (a(), l("a", {
|
|
3364
3364
|
key: 1,
|
|
3365
3365
|
class: "ds-company-card__linkedin",
|
|
@@ -3367,7 +3367,7 @@ const Ee = {
|
|
|
3367
3367
|
target: "_blank",
|
|
3368
3368
|
rel: "noopener noreferrer",
|
|
3369
3369
|
"aria-label": e.linkedinLabel || void 0
|
|
3370
|
-
}, "in", 8, os)) :
|
|
3370
|
+
}, "in", 8, os)) : k("", !0)
|
|
3371
3371
|
]),
|
|
3372
3372
|
(a(!0), l(G, null, ne(t.value, (d) => (a(), l("div", {
|
|
3373
3373
|
key: d.id,
|
|
@@ -3421,22 +3421,27 @@ function ys(e, o, t) {
|
|
|
3421
3421
|
function gs(e, o) {
|
|
3422
3422
|
if (!e) return [];
|
|
3423
3423
|
if (o === We.EMAIL) {
|
|
3424
|
-
const
|
|
3425
|
-
return
|
|
3426
|
-
{ text: e.slice(0,
|
|
3427
|
-
{ text: e.slice(
|
|
3424
|
+
const d = e.indexOf("@");
|
|
3425
|
+
return d <= 0 ? [{ text: e, masked: !0 }] : [
|
|
3426
|
+
{ text: e.slice(0, d), masked: !0 },
|
|
3427
|
+
{ text: e.slice(d), masked: !1 }
|
|
3428
3428
|
];
|
|
3429
3429
|
}
|
|
3430
3430
|
const t = [];
|
|
3431
3431
|
let i = 0;
|
|
3432
3432
|
for (; i < e.length; ) {
|
|
3433
|
-
const
|
|
3434
|
-
let
|
|
3435
|
-
for (;
|
|
3436
|
-
const
|
|
3437
|
-
|
|
3433
|
+
const d = ut.includes(e[i]);
|
|
3434
|
+
let v = i;
|
|
3435
|
+
for (; v < e.length && ut.includes(e[v]) === d; ) v += 1;
|
|
3436
|
+
const c = e.slice(i, v);
|
|
3437
|
+
t.push({ text: c, masked: d && c !== "." }), i = v;
|
|
3438
3438
|
}
|
|
3439
|
-
|
|
3439
|
+
const n = [];
|
|
3440
|
+
return t.forEach((d, v) => {
|
|
3441
|
+
var m, g;
|
|
3442
|
+
let c = d.text;
|
|
3443
|
+
d.masked || ((m = t[v - 1]) != null && m.masked && (c = c.replace(/^-/, " ")), (g = t[v + 1]) != null && g.masked && (c = c.replace(/-$/, " "))), ys(n, c, d.masked);
|
|
3444
|
+
}), n;
|
|
3440
3445
|
}
|
|
3441
3446
|
const hs = ["title"], ps = { "aria-hidden": "true" }, ks = {
|
|
3442
3447
|
key: 0,
|
|
@@ -3457,25 +3462,25 @@ const hs = ["title"], ps = { "aria-hidden": "true" }, ks = {
|
|
|
3457
3462
|
o.kind === We.EMAIL ? Ss : d.text.length
|
|
3458
3463
|
);
|
|
3459
3464
|
}
|
|
3460
|
-
const i =
|
|
3465
|
+
const i = h(
|
|
3461
3466
|
() => o.masked ? gs(o.value, o.kind).map((d) => ({
|
|
3462
3467
|
...d,
|
|
3463
3468
|
circles: t(d)
|
|
3464
3469
|
})) : []
|
|
3465
|
-
), n =
|
|
3470
|
+
), n = h(() => i.value.findIndex((d) => d.circles));
|
|
3466
3471
|
return (d, v) => (a(), l("span", {
|
|
3467
3472
|
class: A(["ds-masked-value", { "is-masked": e.masked }]),
|
|
3468
3473
|
title: e.masked ? void 0 : e.value
|
|
3469
3474
|
}, [
|
|
3470
|
-
e.masked ? (a(!0), l(G, { key: 0 }, ne(i.value, (
|
|
3471
|
-
key:
|
|
3472
|
-
class: A(
|
|
3475
|
+
e.masked ? (a(!0), l(G, { key: 0 }, ne(i.value, (c, m) => (a(), l("span", {
|
|
3476
|
+
key: m,
|
|
3477
|
+
class: A(c.masked ? "ds-masked-value__mask" : "ds-masked-value__clear")
|
|
3473
3478
|
}, [
|
|
3474
|
-
|
|
3475
|
-
s("span", ps, r(
|
|
3476
|
-
|
|
3479
|
+
c.circles ? (a(), l(G, { key: 0 }, [
|
|
3480
|
+
s("span", ps, r(c.circles), 1),
|
|
3481
|
+
m === n.value ? (a(), l("span", ks, r(e.maskedLabel), 1)) : k("", !0)
|
|
3477
3482
|
], 64)) : (a(), l(G, { key: 1 }, [
|
|
3478
|
-
ae(r(
|
|
3483
|
+
ae(r(c.text), 1)
|
|
3479
3484
|
], 64))
|
|
3480
3485
|
], 2))), 128)) : (a(), l(G, { key: 1 }, [
|
|
3481
3486
|
ae(r(e.value), 1)
|
|
@@ -3497,7 +3502,7 @@ const hs = ["title"], ps = { "aria-hidden": "true" }, ks = {
|
|
|
3497
3502
|
focusable: { type: Boolean, default: !0 }
|
|
3498
3503
|
},
|
|
3499
3504
|
setup(e) {
|
|
3500
|
-
return (o, t) => (a(), W(
|
|
3505
|
+
return (o, t) => (a(), W(f(ge), {
|
|
3501
3506
|
class: "ds-deliverability-badge",
|
|
3502
3507
|
content: e.tooltip,
|
|
3503
3508
|
placement: e.placement
|
|
@@ -3525,7 +3530,7 @@ const hs = ["title"], ps = { "aria-hidden": "true" }, ks = {
|
|
|
3525
3530
|
key: 0,
|
|
3526
3531
|
class: A(["ds-more-count-chip", { "is-active": e.active }]),
|
|
3527
3532
|
"aria-label": e.label || void 0
|
|
3528
|
-
}, "+" + r(e.overflow), 11, Es)) :
|
|
3533
|
+
}, "+" + r(e.overflow), 11, Es)) : k("", !0);
|
|
3529
3534
|
}
|
|
3530
3535
|
}), aa = /* @__PURE__ */ U(Ts, [["__scopeId", "data-v-583db8f3"]]), Cs = { class: "ds-contact-list" }, Is = {
|
|
3531
3536
|
key: 0,
|
|
@@ -3576,112 +3581,112 @@ const hs = ["title"], ps = { "aria-hidden": "true" }, ks = {
|
|
|
3576
3581
|
},
|
|
3577
3582
|
emits: [$e, _e, Le],
|
|
3578
3583
|
setup(e, { emit: o }) {
|
|
3579
|
-
const t = e, i = o, n =
|
|
3580
|
-
key: `${b.type}-${
|
|
3584
|
+
const t = e, i = o, n = h(() => t.sections.length ? t.sections.filter((b) => b.items.length > 0).map((b, p) => ({
|
|
3585
|
+
key: `${b.type}-${p}`,
|
|
3581
3586
|
label: b.label,
|
|
3582
3587
|
type: b.type,
|
|
3583
3588
|
items: b.items
|
|
3584
|
-
})) : t.items.length ? [{ key: "group", label: "", type: t.type, items: t.items }] : []), d =
|
|
3589
|
+
})) : t.items.length ? [{ key: "group", label: "", type: t.type, items: t.items }] : []), d = h(() => n.value.reduce((b, p) => b + p.items.length, 0));
|
|
3585
3590
|
function v(b) {
|
|
3586
3591
|
return t.kind === We.EMAIL && b.valid;
|
|
3587
3592
|
}
|
|
3588
|
-
function
|
|
3589
|
-
var
|
|
3590
|
-
const
|
|
3591
|
-
return
|
|
3593
|
+
function c(b, p) {
|
|
3594
|
+
var y;
|
|
3595
|
+
const u = (y = b.type) != null ? y : p.type;
|
|
3596
|
+
return u ? Jt(u, t.kind) : "";
|
|
3592
3597
|
}
|
|
3593
|
-
function
|
|
3594
|
-
var
|
|
3595
|
-
return (
|
|
3598
|
+
function m(b, p, u) {
|
|
3599
|
+
var y;
|
|
3600
|
+
return (y = b.id) != null ? y : `${p.key}:${u}`;
|
|
3596
3601
|
}
|
|
3597
|
-
const
|
|
3602
|
+
const g = N(null);
|
|
3598
3603
|
let $;
|
|
3599
|
-
function _(b,
|
|
3604
|
+
function _(b, p) {
|
|
3600
3605
|
typeof navigator != "undefined" && navigator.clipboard && navigator.clipboard.writeText(b.value).catch(() => {
|
|
3601
|
-
}),
|
|
3602
|
-
|
|
3606
|
+
}), g.value = p, clearTimeout($), $ = setTimeout(() => {
|
|
3607
|
+
g.value = null;
|
|
3603
3608
|
}, 1200), i($e, b);
|
|
3604
3609
|
}
|
|
3605
|
-
return be(() => clearTimeout($)), (b,
|
|
3610
|
+
return be(() => clearTimeout($)), (b, p) => (a(), l("div", Cs, [
|
|
3606
3611
|
e.title || b.$slots.actions ? (a(), l("div", Is, [
|
|
3607
|
-
e.title ? (a(), l("span", Ds, r(e.title), 1)) :
|
|
3608
|
-
e.title ? (a(), l("span", As, "(" + r(d.value) + ")", 1)) :
|
|
3612
|
+
e.title ? (a(), l("span", Ds, r(e.title), 1)) : k("", !0),
|
|
3613
|
+
e.title ? (a(), l("span", As, "(" + r(d.value) + ")", 1)) : k("", !0),
|
|
3609
3614
|
s("span", Rs, [
|
|
3610
3615
|
F(b.$slots, "actions", {}, void 0, !0)
|
|
3611
3616
|
])
|
|
3612
|
-
])) :
|
|
3613
|
-
!d.value && e.emptyLabel ? (a(), l("p", Ns, r(e.emptyLabel), 1)) :
|
|
3614
|
-
(a(!0), l(G, null, ne(n.value, (
|
|
3615
|
-
key:
|
|
3617
|
+
])) : k("", !0),
|
|
3618
|
+
!d.value && e.emptyLabel ? (a(), l("p", Ns, r(e.emptyLabel), 1)) : k("", !0),
|
|
3619
|
+
(a(!0), l(G, null, ne(n.value, (u) => (a(), l(G, {
|
|
3620
|
+
key: u.key
|
|
3616
3621
|
}, [
|
|
3617
|
-
|
|
3622
|
+
u.label ? (a(), l("p", Os, r(u.label) + " (" + r(u.items.length) + ") ", 1)) : k("", !0),
|
|
3618
3623
|
s("ul", {
|
|
3619
3624
|
class: "ds-contact-list__items",
|
|
3620
3625
|
role: "list",
|
|
3621
|
-
"aria-label":
|
|
3626
|
+
"aria-label": u.label || void 0
|
|
3622
3627
|
}, [
|
|
3623
|
-
(a(!0), l(G, null, ne(
|
|
3624
|
-
key: y
|
|
3625
|
-
class: A(["ds-contact-list__item", { "is-primary":
|
|
3628
|
+
(a(!0), l(G, null, ne(u.items, (y, T) => (a(), l("li", {
|
|
3629
|
+
key: m(y, u, T),
|
|
3630
|
+
class: A(["ds-contact-list__item", { "is-primary": y.primary, "is-masked": y.masked }])
|
|
3626
3631
|
}, [
|
|
3627
|
-
|
|
3632
|
+
c(y, u) ? (a(), l("i", Ms, r(c(y, u)), 1)) : k("", !0),
|
|
3628
3633
|
s("span", xs, [
|
|
3629
|
-
V(
|
|
3634
|
+
V(f(ea), {
|
|
3630
3635
|
class: "ds-contact-list__value",
|
|
3631
|
-
value:
|
|
3636
|
+
value: y.value,
|
|
3632
3637
|
kind: e.kind,
|
|
3633
|
-
masked:
|
|
3638
|
+
masked: y.masked,
|
|
3634
3639
|
"masked-label": e.maskedLabel
|
|
3635
3640
|
}, null, 8, ["value", "kind", "masked", "masked-label"]),
|
|
3636
|
-
v(
|
|
3641
|
+
v(y) ? (a(), W(f(ta), {
|
|
3637
3642
|
key: 0,
|
|
3638
3643
|
label: e.badgeLabel,
|
|
3639
3644
|
tooltip: e.badgeTooltip,
|
|
3640
3645
|
focusable: !1
|
|
3641
|
-
}, null, 8, ["label", "tooltip"])) :
|
|
3646
|
+
}, null, 8, ["label", "tooltip"])) : k("", !0)
|
|
3642
3647
|
]),
|
|
3643
|
-
|
|
3648
|
+
y.masked ? k("", !0) : (a(), l("span", Ps, [
|
|
3644
3649
|
s("button", {
|
|
3645
3650
|
type: "button",
|
|
3646
|
-
class: A(["ds-contact-list__action", { "is-copied":
|
|
3647
|
-
"aria-label":
|
|
3648
|
-
title:
|
|
3649
|
-
onClick: (S) => _(
|
|
3651
|
+
class: A(["ds-contact-list__action", { "is-copied": g.value === m(y, u, T) }]),
|
|
3652
|
+
"aria-label": g.value === m(y, u, T) ? e.copiedLabel : e.copyLabel,
|
|
3653
|
+
title: g.value === m(y, u, T) ? e.copiedLabel : e.copyLabel,
|
|
3654
|
+
onClick: (S) => _(y, m(y, u, T))
|
|
3650
3655
|
}, [
|
|
3651
|
-
s("i", Us, r(
|
|
3656
|
+
s("i", Us, r(g.value === m(y, u, T) ? "check" : "content_copy"), 1)
|
|
3652
3657
|
], 10, zs),
|
|
3653
3658
|
e.showRate ? (a(), l(G, { key: 0 }, [
|
|
3654
3659
|
s("button", {
|
|
3655
3660
|
type: "button",
|
|
3656
|
-
class: A(["ds-contact-list__action", { "is-on":
|
|
3661
|
+
class: A(["ds-contact-list__action", { "is-on": y.rating === !0 }]),
|
|
3657
3662
|
"aria-label": e.correctLabel,
|
|
3658
|
-
"aria-pressed":
|
|
3663
|
+
"aria-pressed": y.rating === !0,
|
|
3659
3664
|
title: e.correctLabel,
|
|
3660
|
-
onClick: (S) => i(
|
|
3665
|
+
onClick: (S) => i(f(_e), y)
|
|
3661
3666
|
}, [
|
|
3662
3667
|
s("i", {
|
|
3663
3668
|
class: A(
|
|
3664
|
-
|
|
3669
|
+
y.rating === !0 ? "material-symbols-filled" : "material-symbols-rounded"
|
|
3665
3670
|
),
|
|
3666
3671
|
"aria-hidden": "true"
|
|
3667
3672
|
}, "thumb_up", 2)
|
|
3668
3673
|
], 10, Fs),
|
|
3669
3674
|
s("button", {
|
|
3670
3675
|
type: "button",
|
|
3671
|
-
class: A(["ds-contact-list__action", { "is-on":
|
|
3676
|
+
class: A(["ds-contact-list__action", { "is-on": y.rating === !1 }]),
|
|
3672
3677
|
"aria-label": e.incorrectLabel,
|
|
3673
|
-
"aria-pressed":
|
|
3678
|
+
"aria-pressed": y.rating === !1,
|
|
3674
3679
|
title: e.incorrectLabel,
|
|
3675
|
-
onClick: (S) => i(
|
|
3680
|
+
onClick: (S) => i(f(Le), y)
|
|
3676
3681
|
}, [
|
|
3677
3682
|
s("i", {
|
|
3678
3683
|
class: A(
|
|
3679
|
-
|
|
3684
|
+
y.rating === !1 ? "material-symbols-filled" : "material-symbols-rounded"
|
|
3680
3685
|
),
|
|
3681
3686
|
"aria-hidden": "true"
|
|
3682
3687
|
}, "thumb_down", 2)
|
|
3683
3688
|
], 10, Vs)
|
|
3684
|
-
], 64)) :
|
|
3689
|
+
], 64)) : k("", !0)
|
|
3685
3690
|
]))
|
|
3686
3691
|
], 2))), 128))
|
|
3687
3692
|
], 8, Bs)
|
|
@@ -3741,30 +3746,30 @@ const hs = ["title"], ps = { "aria-hidden": "true" }, ks = {
|
|
|
3741
3746
|
},
|
|
3742
3747
|
emits: [ue, $e, _e, Le, ht],
|
|
3743
3748
|
setup(e, { emit: o }) {
|
|
3744
|
-
const t = e, i = o, n = N(!1), d = N(!1), v =
|
|
3749
|
+
const t = e, i = o, n = N(!1), d = N(!1), v = h(() => {
|
|
3745
3750
|
var M;
|
|
3746
3751
|
return (M = t.items[0]) != null ? M : null;
|
|
3747
|
-
}),
|
|
3752
|
+
}), c = h(() => !t.disabled && t.items.length > 0), m = h(() => c.value && n.value), g = h(() => {
|
|
3748
3753
|
var M;
|
|
3749
3754
|
return ms((M = t.count) != null ? M : t.items.length);
|
|
3750
|
-
}), $ =
|
|
3755
|
+
}), $ = h(
|
|
3751
3756
|
() => !!v.value && t.kind === We.EMAIL && v.value.valid
|
|
3752
|
-
), _ =
|
|
3757
|
+
), _ = h(
|
|
3753
3758
|
() => t.items.some((M) => M.masked) || t.sections.some((M) => M.items.some((x) => x.masked))
|
|
3754
|
-
), b =
|
|
3759
|
+
), b = h(() => !!t.revealLabel && _.value), p = h(() => {
|
|
3755
3760
|
var x;
|
|
3756
3761
|
const M = t.type || ((x = v.value) == null ? void 0 : x.type);
|
|
3757
3762
|
return M ? Jt(M, t.kind) : "";
|
|
3758
3763
|
});
|
|
3759
|
-
let
|
|
3760
|
-
function
|
|
3764
|
+
let u;
|
|
3765
|
+
function y(M) {
|
|
3761
3766
|
n.value !== M && (n.value = M, i(ue, M));
|
|
3762
3767
|
}
|
|
3763
3768
|
function T() {
|
|
3764
|
-
|
|
3769
|
+
c.value && (clearTimeout(u), d.value || y(!0));
|
|
3765
3770
|
}
|
|
3766
3771
|
function S() {
|
|
3767
|
-
!
|
|
3772
|
+
!c.value || d.value || (clearTimeout(u), u = setTimeout(() => y(!1), t.leaveDelay));
|
|
3768
3773
|
}
|
|
3769
3774
|
function R() {
|
|
3770
3775
|
t.teleported && T();
|
|
@@ -3773,21 +3778,21 @@ const hs = ["title"], ps = { "aria-hidden": "true" }, ks = {
|
|
|
3773
3778
|
t.teleported && S();
|
|
3774
3779
|
}
|
|
3775
3780
|
function Y() {
|
|
3776
|
-
|
|
3781
|
+
c.value && (clearTimeout(u), d.value ? (d.value = !1, y(!1)) : (d.value = !0, y(!0)));
|
|
3777
3782
|
}
|
|
3778
3783
|
function j(M) {
|
|
3779
|
-
M || (d.value = !1, clearTimeout(
|
|
3784
|
+
M || (d.value = !1, clearTimeout(u), y(!1));
|
|
3780
3785
|
}
|
|
3781
3786
|
function K(M) {
|
|
3782
|
-
M.key !== "Escape" || !n.value || (d.value = !1,
|
|
3787
|
+
M.key !== "Escape" || !n.value || (d.value = !1, y(!1));
|
|
3783
3788
|
}
|
|
3784
3789
|
return le(n, (M) => {
|
|
3785
3790
|
typeof document != "undefined" && (M ? document.addEventListener("keydown", K) : document.removeEventListener("keydown", K));
|
|
3786
3791
|
}), be(() => {
|
|
3787
|
-
clearTimeout(
|
|
3792
|
+
clearTimeout(u), typeof document != "undefined" && document.removeEventListener("keydown", K);
|
|
3788
3793
|
}), (M, x) => (a(), l("div", {
|
|
3789
3794
|
class: A(["ds-contact-cell", {
|
|
3790
|
-
"is-open":
|
|
3795
|
+
"is-open": m.value,
|
|
3791
3796
|
"is-pinned": d.value,
|
|
3792
3797
|
"is-empty": !v.value,
|
|
3793
3798
|
"is-disabled": e.disabled
|
|
@@ -3795,8 +3800,8 @@ const hs = ["title"], ps = { "aria-hidden": "true" }, ks = {
|
|
|
3795
3800
|
onMouseenter: T,
|
|
3796
3801
|
onMouseleave: S
|
|
3797
3802
|
}, [
|
|
3798
|
-
V(
|
|
3799
|
-
open:
|
|
3803
|
+
V(f(Ke), {
|
|
3804
|
+
open: m.value,
|
|
3800
3805
|
placement: e.placement,
|
|
3801
3806
|
offset: e.offset,
|
|
3802
3807
|
width: e.popoverWidth,
|
|
@@ -3809,37 +3814,37 @@ const hs = ["title"], ps = { "aria-hidden": "true" }, ks = {
|
|
|
3809
3814
|
s("button", {
|
|
3810
3815
|
type: "button",
|
|
3811
3816
|
class: "ds-contact-cell__trigger",
|
|
3812
|
-
"aria-haspopup":
|
|
3813
|
-
"aria-expanded":
|
|
3817
|
+
"aria-haspopup": c.value ? "dialog" : void 0,
|
|
3818
|
+
"aria-expanded": c.value ? m.value : void 0,
|
|
3814
3819
|
onClick: Y
|
|
3815
3820
|
}, [
|
|
3816
3821
|
v.value ? (a(), l(G, { key: 0 }, [
|
|
3817
|
-
|
|
3822
|
+
p.value ? (a(), l("i", Ks, r(p.value), 1)) : k("", !0),
|
|
3818
3823
|
s("span", Ws, [
|
|
3819
|
-
V(
|
|
3824
|
+
V(f(ea), {
|
|
3820
3825
|
class: "ds-contact-cell__value",
|
|
3821
3826
|
value: v.value.value,
|
|
3822
3827
|
kind: e.kind,
|
|
3823
3828
|
masked: v.value.masked,
|
|
3824
3829
|
"masked-label": e.maskedLabel
|
|
3825
3830
|
}, null, 8, ["value", "kind", "masked", "masked-label"]),
|
|
3826
|
-
$.value ? (a(), W(
|
|
3831
|
+
$.value ? (a(), W(f(ta), {
|
|
3827
3832
|
key: 0,
|
|
3828
3833
|
label: e.badgeLabel,
|
|
3829
3834
|
tooltip: e.badgeTooltip,
|
|
3830
3835
|
focusable: !1
|
|
3831
|
-
}, null, 8, ["label", "tooltip"])) :
|
|
3836
|
+
}, null, 8, ["label", "tooltip"])) : k("", !0)
|
|
3832
3837
|
]),
|
|
3833
|
-
V(
|
|
3834
|
-
overflow:
|
|
3835
|
-
active:
|
|
3838
|
+
V(f(aa), {
|
|
3839
|
+
overflow: g.value,
|
|
3840
|
+
active: m.value,
|
|
3836
3841
|
label: e.moreLabel
|
|
3837
3842
|
}, null, 8, ["overflow", "active", "label"])
|
|
3838
3843
|
], 64)) : (a(), l("span", Ys, r(e.emptyLabel), 1))
|
|
3839
3844
|
], 8, Hs)
|
|
3840
3845
|
]),
|
|
3841
3846
|
default: P(() => [
|
|
3842
|
-
V(
|
|
3847
|
+
V(f(Gs), {
|
|
3843
3848
|
items: e.items,
|
|
3844
3849
|
sections: e.sections,
|
|
3845
3850
|
kind: e.kind,
|
|
@@ -3856,27 +3861,27 @@ const hs = ["title"], ps = { "aria-hidden": "true" }, ks = {
|
|
|
3856
3861
|
class: A({ "ds-contact-cell__list--reveal": b.value }),
|
|
3857
3862
|
onMouseenter: R,
|
|
3858
3863
|
onMouseleave: B,
|
|
3859
|
-
onCopy: x[1] || (x[1] = (w) => i(
|
|
3860
|
-
onCorrect: x[2] || (x[2] = (w) => i(
|
|
3861
|
-
onIncorrect: x[3] || (x[3] = (w) => i(
|
|
3864
|
+
onCopy: x[1] || (x[1] = (w) => i(f($e), w)),
|
|
3865
|
+
onCorrect: x[2] || (x[2] = (w) => i(f(_e), w)),
|
|
3866
|
+
onIncorrect: x[3] || (x[3] = (w) => i(f(Le), w))
|
|
3862
3867
|
}, vt({ _: 2 }, [
|
|
3863
3868
|
b.value || M.$slots.actions ? {
|
|
3864
3869
|
name: "actions",
|
|
3865
3870
|
fn: P(() => [
|
|
3866
|
-
b.value ? (a(), W(
|
|
3871
|
+
b.value ? (a(), W(f(oe), {
|
|
3867
3872
|
key: 0,
|
|
3868
3873
|
class: "ds-contact-cell__reveal",
|
|
3869
|
-
variant:
|
|
3870
|
-
size:
|
|
3874
|
+
variant: f(fe).PRIMARY,
|
|
3875
|
+
size: f(de).SMALL,
|
|
3871
3876
|
"left-icon": "visibility",
|
|
3872
3877
|
loading: e.revealing,
|
|
3873
|
-
onClick: x[0] || (x[0] = (w) => i(
|
|
3878
|
+
onClick: x[0] || (x[0] = (w) => i(f(ht)))
|
|
3874
3879
|
}, {
|
|
3875
3880
|
default: P(() => [
|
|
3876
3881
|
ae(r(e.revealLabel), 1)
|
|
3877
3882
|
]),
|
|
3878
3883
|
_: 1
|
|
3879
|
-
}, 8, ["variant", "size", "loading"])) :
|
|
3884
|
+
}, 8, ["variant", "size", "loading"])) : k("", !0),
|
|
3880
3885
|
F(M.$slots, "actions", {}, void 0, !0)
|
|
3881
3886
|
]),
|
|
3882
3887
|
key: "0"
|
|
@@ -3919,59 +3924,59 @@ const hs = ["title"], ps = { "aria-hidden": "true" }, ks = {
|
|
|
3919
3924
|
},
|
|
3920
3925
|
emits: [ue],
|
|
3921
3926
|
setup(e, { emit: o }) {
|
|
3922
|
-
const t = e, i = o, n = ze(), d = ve(), v = ve(),
|
|
3927
|
+
const t = e, i = o, n = ze(), d = ve(), v = ve(), c = N(t.open);
|
|
3923
3928
|
le(
|
|
3924
3929
|
() => t.open,
|
|
3925
|
-
(_) =>
|
|
3930
|
+
(_) => c.value = _
|
|
3926
3931
|
);
|
|
3927
|
-
function
|
|
3928
|
-
|
|
3932
|
+
function m() {
|
|
3933
|
+
c.value = !c.value, i(ue, c.value);
|
|
3929
3934
|
}
|
|
3930
|
-
const
|
|
3931
|
-
() => t.collapsible ? { type: "button", "aria-expanded": String(
|
|
3935
|
+
const g = h(() => !!n.default && (!t.collapsible || c.value)), $ = h(
|
|
3936
|
+
() => t.collapsible ? { type: "button", "aria-expanded": String(c.value), "aria-controls": v } : {}
|
|
3932
3937
|
);
|
|
3933
3938
|
return (_, b) => (a(), l("section", {
|
|
3934
3939
|
class: "ds-profile-card",
|
|
3935
|
-
"aria-labelledby":
|
|
3940
|
+
"aria-labelledby": f(d)
|
|
3936
3941
|
}, [
|
|
3937
3942
|
s("div", Zs, [
|
|
3938
3943
|
(a(), W(Gt(e.collapsible ? "button" : "div"), Ve({
|
|
3939
3944
|
class: ["ds-profile-card__heading", { "ds-profile-card__toggle": e.collapsible }]
|
|
3940
3945
|
}, $.value, {
|
|
3941
|
-
onClick: b[0] || (b[0] = (
|
|
3946
|
+
onClick: b[0] || (b[0] = (p) => e.collapsible ? m() : void 0)
|
|
3942
3947
|
}), {
|
|
3943
3948
|
default: P(() => [
|
|
3944
3949
|
s("i", Qs, r(e.icon), 1),
|
|
3945
3950
|
s("span", {
|
|
3946
|
-
id:
|
|
3951
|
+
id: f(d),
|
|
3947
3952
|
class: "ds-profile-card__title"
|
|
3948
3953
|
}, r(e.title), 9, Js),
|
|
3949
|
-
e.count !== null && !e.countHint ? (a(), l("span", eo, r(e.count), 1)) :
|
|
3954
|
+
e.count !== null && !e.countHint ? (a(), l("span", eo, r(e.count), 1)) : k("", !0),
|
|
3950
3955
|
e.count !== null && e.countHint ? (a(), W(ge, {
|
|
3951
3956
|
key: 1,
|
|
3952
3957
|
content: e.countHint,
|
|
3953
|
-
placement:
|
|
3958
|
+
placement: f(Ee).BOTTOM
|
|
3954
3959
|
}, {
|
|
3955
3960
|
default: P(() => [
|
|
3956
3961
|
s("span", to, r(e.count), 1)
|
|
3957
3962
|
]),
|
|
3958
3963
|
_: 1
|
|
3959
|
-
}, 8, ["content", "placement"])) :
|
|
3960
|
-
e.collapsible ? (a(), l("i", ao, r(
|
|
3964
|
+
}, 8, ["content", "placement"])) : k("", !0),
|
|
3965
|
+
e.collapsible ? (a(), l("i", ao, r(c.value ? "keyboard_arrow_up" : "keyboard_arrow_down"), 1)) : k("", !0)
|
|
3961
3966
|
]),
|
|
3962
3967
|
_: 1
|
|
3963
3968
|
}, 16, ["class"])),
|
|
3964
3969
|
_.$slots.actions ? (a(), l("span", lo, [
|
|
3965
3970
|
F(_.$slots, "actions", {}, void 0, !0)
|
|
3966
|
-
])) :
|
|
3971
|
+
])) : k("", !0)
|
|
3967
3972
|
]),
|
|
3968
|
-
|
|
3973
|
+
g.value ? (a(), l("div", {
|
|
3969
3974
|
key: 0,
|
|
3970
|
-
id:
|
|
3975
|
+
id: f(v),
|
|
3971
3976
|
class: A(["ds-profile-card__body", { "is-padded": e.padded }])
|
|
3972
3977
|
}, [
|
|
3973
3978
|
F(_.$slots, "default", {}, void 0, !0)
|
|
3974
|
-
], 10, no)) :
|
|
3979
|
+
], 10, no)) : k("", !0)
|
|
3975
3980
|
], 8, Xs));
|
|
3976
3981
|
}
|
|
3977
3982
|
}), so = /* @__PURE__ */ U(io, [["__scopeId", "data-v-869a877f"]]), oo = { class: "ds-profile-group-bar" }, ro = { class: "ds-profile-group-bar__label" }, co = {
|
|
@@ -3987,7 +3992,7 @@ const hs = ["title"], ps = { "aria-hidden": "true" }, ks = {
|
|
|
3987
3992
|
s("span", ro, r(e.label), 1),
|
|
3988
3993
|
o.$slots.actions ? (a(), l("span", co, [
|
|
3989
3994
|
F(o.$slots, "actions", {}, void 0, !0)
|
|
3990
|
-
])) :
|
|
3995
|
+
])) : k("", !0)
|
|
3991
3996
|
]));
|
|
3992
3997
|
}
|
|
3993
3998
|
}), cr = /* @__PURE__ */ U(uo, [["__scopeId", "data-v-537a9086"]]), Fe = {
|
|
@@ -4017,23 +4022,23 @@ const hs = ["title"], ps = { "aria-hidden": "true" }, ks = {
|
|
|
4017
4022
|
label: { type: String, default: "" }
|
|
4018
4023
|
},
|
|
4019
4024
|
setup(e) {
|
|
4020
|
-
const o = e, t =
|
|
4025
|
+
const o = e, t = h(
|
|
4021
4026
|
() => o.state === Fe.LOADING ? "autorenew" : fo[o.kind]
|
|
4022
4027
|
);
|
|
4023
4028
|
return (i, n) => (a(), l("div", {
|
|
4024
4029
|
class: A(["ds-contact-placeholder", `ds-contact-placeholder--${e.state}`]),
|
|
4025
|
-
role: e.state ===
|
|
4030
|
+
role: e.state === f(Fe).LOADING ? "status" : void 0
|
|
4026
4031
|
}, [
|
|
4027
4032
|
s("i", {
|
|
4028
|
-
class: A(["material-symbols-filled ds-contact-placeholder__icon", { "is-spinning": e.state ===
|
|
4033
|
+
class: A(["material-symbols-filled ds-contact-placeholder__icon", { "is-spinning": e.state === f(Fe).LOADING }]),
|
|
4029
4034
|
"aria-hidden": "true"
|
|
4030
4035
|
}, r(t.value), 3),
|
|
4031
|
-
e.state ===
|
|
4036
|
+
e.state === f(Fe).SKELETON ? (a(), l(G, { key: 0 }, [
|
|
4032
4037
|
n[0] || (n[0] = s("span", {
|
|
4033
4038
|
class: "ds-contact-placeholder__bar",
|
|
4034
4039
|
"aria-hidden": "true"
|
|
4035
4040
|
}, null, -1)),
|
|
4036
|
-
e.label ? (a(), l("span", bo, r(e.label), 1)) :
|
|
4041
|
+
e.label ? (a(), l("span", bo, r(e.label), 1)) : k("", !0)
|
|
4037
4042
|
], 64)) : (a(), l("span", mo, r(e.label), 1))
|
|
4038
4043
|
], 10, vo));
|
|
4039
4044
|
}
|
|
@@ -4069,8 +4074,8 @@ const hs = ["title"], ps = { "aria-hidden": "true" }, ks = {
|
|
|
4069
4074
|
emptyLabel: { type: String, default: "" }
|
|
4070
4075
|
},
|
|
4071
4076
|
setup(e) {
|
|
4072
|
-
const o = e, t = ve(), i = N(!1), n =
|
|
4073
|
-
return (
|
|
4077
|
+
const o = e, t = ve(), i = N(!1), n = h(() => [o.industry, o.employees].filter(Boolean).join(" · ")), d = h(() => o.fields.filter((c) => c.value)), v = h(() => !!o.about || d.value.length > 0);
|
|
4078
|
+
return (c, m) => (a(), W(so, {
|
|
4074
4079
|
class: "ds-profile-company-card",
|
|
4075
4080
|
icon: "corporate_fare",
|
|
4076
4081
|
title: e.title,
|
|
@@ -4089,12 +4094,12 @@ const hs = ["title"], ps = { "aria-hidden": "true" }, ks = {
|
|
|
4089
4094
|
}, null, 8, ["src", "name"]),
|
|
4090
4095
|
s("div", po, [
|
|
4091
4096
|
s("div", ko, r(e.name), 1),
|
|
4092
|
-
n.value ? (a(), l("div", So, r(n.value), 1)) :
|
|
4097
|
+
n.value ? (a(), l("div", So, r(n.value), 1)) : k("", !0)
|
|
4093
4098
|
]),
|
|
4094
4099
|
e.websiteUrl ? (a(), W(ge, {
|
|
4095
4100
|
key: 0,
|
|
4096
4101
|
content: e.websiteLabel,
|
|
4097
|
-
placement:
|
|
4102
|
+
placement: f(Ee).TOP
|
|
4098
4103
|
}, {
|
|
4099
4104
|
default: P(() => [
|
|
4100
4105
|
s("a", {
|
|
@@ -4103,7 +4108,7 @@ const hs = ["title"], ps = { "aria-hidden": "true" }, ks = {
|
|
|
4103
4108
|
target: "_blank",
|
|
4104
4109
|
rel: "noopener noreferrer",
|
|
4105
4110
|
"aria-label": e.websiteLabel || void 0
|
|
4106
|
-
}, [...
|
|
4111
|
+
}, [...m[2] || (m[2] = [
|
|
4107
4112
|
s("i", {
|
|
4108
4113
|
class: "material-symbols-filled",
|
|
4109
4114
|
"aria-hidden": "true"
|
|
@@ -4111,7 +4116,7 @@ const hs = ["title"], ps = { "aria-hidden": "true" }, ks = {
|
|
|
4111
4116
|
])], 8, $o)
|
|
4112
4117
|
]),
|
|
4113
4118
|
_: 1
|
|
4114
|
-
}, 8, ["content", "placement"])) :
|
|
4119
|
+
}, 8, ["content", "placement"])) : k("", !0),
|
|
4115
4120
|
e.linkedinUrl ? (a(), l("a", {
|
|
4116
4121
|
key: 1,
|
|
4117
4122
|
class: "ds-profile-company-card__linkedin",
|
|
@@ -4119,7 +4124,7 @@ const hs = ["title"], ps = { "aria-hidden": "true" }, ks = {
|
|
|
4119
4124
|
target: "_blank",
|
|
4120
4125
|
rel: "noopener noreferrer",
|
|
4121
4126
|
"aria-label": e.linkedinLabel || void 0
|
|
4122
|
-
}, "in", 8, _o)) :
|
|
4127
|
+
}, "in", 8, _o)) : k("", !0)
|
|
4123
4128
|
], 2),
|
|
4124
4129
|
e.about ? (a(), l("div", Lo, [
|
|
4125
4130
|
s("div", wo, [
|
|
@@ -4128,30 +4133,30 @@ const hs = ["title"], ps = { "aria-hidden": "true" }, ks = {
|
|
|
4128
4133
|
type: "button",
|
|
4129
4134
|
class: "ds-profile-company-card__about-toggle",
|
|
4130
4135
|
"aria-expanded": i.value,
|
|
4131
|
-
"aria-controls":
|
|
4132
|
-
onClick:
|
|
4136
|
+
"aria-controls": f(t),
|
|
4137
|
+
onClick: m[0] || (m[0] = (g) => i.value = !i.value)
|
|
4133
4138
|
}, r(i.value ? e.showLessLabel : e.showMoreLabel), 9, To)
|
|
4134
4139
|
]),
|
|
4135
4140
|
s("div", {
|
|
4136
|
-
id:
|
|
4141
|
+
id: f(t),
|
|
4137
4142
|
class: A(["ds-profile-company-card__about-text", { "is-clamped": !i.value }])
|
|
4138
4143
|
}, r(e.about), 11, Co)
|
|
4139
|
-
])) :
|
|
4140
|
-
(a(!0), l(G, null, ne(d.value, (
|
|
4141
|
-
key:
|
|
4144
|
+
])) : k("", !0),
|
|
4145
|
+
(a(!0), l(G, null, ne(d.value, (g, $) => (a(), l("div", {
|
|
4146
|
+
key: g.id,
|
|
4142
4147
|
class: A(["ds-profile-company-card__field", { "is-first": $ === 0 && !e.about }])
|
|
4143
4148
|
}, [
|
|
4144
|
-
s("span", Io, r(
|
|
4145
|
-
|
|
4149
|
+
s("span", Io, r(g.label), 1),
|
|
4150
|
+
g.href ? (a(), l("a", {
|
|
4146
4151
|
key: 0,
|
|
4147
4152
|
class: "ds-profile-company-card__field-value is-link",
|
|
4148
|
-
href:
|
|
4153
|
+
href: g.href,
|
|
4149
4154
|
target: "_blank",
|
|
4150
4155
|
rel: "noopener noreferrer"
|
|
4151
|
-
}, r(
|
|
4156
|
+
}, r(g.value), 9, Do)) : (a(), l("span", Ao, r(g.value), 1))
|
|
4152
4157
|
], 2))), 128))
|
|
4153
4158
|
], 64)) : (a(), l("div", go, [
|
|
4154
|
-
|
|
4159
|
+
m[1] || (m[1] = s("i", {
|
|
4155
4160
|
class: "material-symbols-filled ds-profile-company-card__empty-icon",
|
|
4156
4161
|
"aria-hidden": "true"
|
|
4157
4162
|
}, "apartment", -1)),
|
|
@@ -4180,7 +4185,7 @@ const hs = ["title"], ps = { "aria-hidden": "true" }, ks = {
|
|
|
4180
4185
|
alt: { type: String, default: void 0 }
|
|
4181
4186
|
},
|
|
4182
4187
|
setup(e) {
|
|
4183
|
-
const o = e, t =
|
|
4188
|
+
const o = e, t = h(() => `${o.firstName} ${o.lastName}`.trim()), i = N(null), n = N(!1);
|
|
4184
4189
|
function d() {
|
|
4185
4190
|
const v = i.value;
|
|
4186
4191
|
n.value = !!v && v.scrollWidth > v.clientWidth;
|
|
@@ -4192,7 +4197,7 @@ const hs = ["title"], ps = { "aria-hidden": "true" }, ks = {
|
|
|
4192
4197
|
() => {
|
|
4193
4198
|
se(d);
|
|
4194
4199
|
}
|
|
4195
|
-
), (v,
|
|
4200
|
+
), (v, c) => (a(), l("div", No, [
|
|
4196
4201
|
V(Na, {
|
|
4197
4202
|
class: "ds-profile-hero__avatar",
|
|
4198
4203
|
image: e.image,
|
|
@@ -4213,7 +4218,7 @@ const hs = ["title"], ps = { "aria-hidden": "true" }, ks = {
|
|
|
4213
4218
|
class: "ds-profile-hero__headline-tooltip",
|
|
4214
4219
|
content: e.headline,
|
|
4215
4220
|
disabled: !n.value,
|
|
4216
|
-
placement:
|
|
4221
|
+
placement: f(Ee).BOTTOM,
|
|
4217
4222
|
block: ""
|
|
4218
4223
|
}, {
|
|
4219
4224
|
default: P(() => [
|
|
@@ -4226,11 +4231,11 @@ const hs = ["title"], ps = { "aria-hidden": "true" }, ks = {
|
|
|
4226
4231
|
}, r(e.headline), 545)
|
|
4227
4232
|
]),
|
|
4228
4233
|
_: 1
|
|
4229
|
-
}, 8, ["content", "disabled", "placement"])) :
|
|
4234
|
+
}, 8, ["content", "disabled", "placement"])) : k("", !0),
|
|
4230
4235
|
e.linkedinUrl ? (a(), l("div", Bo, [
|
|
4231
4236
|
V(ge, {
|
|
4232
4237
|
content: e.linkedinLabel,
|
|
4233
|
-
placement:
|
|
4238
|
+
placement: f(Ee).BOTTOM
|
|
4234
4239
|
}, {
|
|
4235
4240
|
default: P(() => [
|
|
4236
4241
|
s("a", {
|
|
@@ -4243,11 +4248,11 @@ const hs = ["title"], ps = { "aria-hidden": "true" }, ks = {
|
|
|
4243
4248
|
]),
|
|
4244
4249
|
_: 1
|
|
4245
4250
|
}, 8, ["content", "placement"])
|
|
4246
|
-
])) :
|
|
4251
|
+
])) : k("", !0)
|
|
4247
4252
|
]),
|
|
4248
4253
|
v.$slots.actions ? (a(), l("div", xo, [
|
|
4249
4254
|
F(v.$slots, "actions", {}, void 0, !0)
|
|
4250
|
-
])) :
|
|
4255
|
+
])) : k("", !0)
|
|
4251
4256
|
]));
|
|
4252
4257
|
}
|
|
4253
4258
|
}), vr = /* @__PURE__ */ U(Po, [["__scopeId", "data-v-4e674c0f"]]), zo = {
|
|
@@ -4273,7 +4278,7 @@ const hs = ["title"], ps = { "aria-hidden": "true" }, ks = {
|
|
|
4273
4278
|
target: "_blank",
|
|
4274
4279
|
rel: "noopener noreferrer"
|
|
4275
4280
|
}, r(e.value), 9, Fo)) : (a(), l("span", Vo, r(e.value), 1))
|
|
4276
|
-
])) :
|
|
4281
|
+
])) : k("", !0);
|
|
4277
4282
|
}
|
|
4278
4283
|
}), br = /* @__PURE__ */ U(qo, [["__scopeId", "data-v-1459ea30"]]), Go = { class: "ds-profile-timeline-row" }, Ho = ["src"], Ko = {
|
|
4279
4284
|
key: 1,
|
|
@@ -4302,7 +4307,7 @@ const hs = ["title"], ps = { "aria-hidden": "true" }, ks = {
|
|
|
4302
4307
|
function i() {
|
|
4303
4308
|
t.value = !0;
|
|
4304
4309
|
}
|
|
4305
|
-
const n =
|
|
4310
|
+
const n = h(() => !!o.logo && !t.value);
|
|
4306
4311
|
return (d, v) => (a(), l("div", Go, [
|
|
4307
4312
|
n.value ? (a(), l("img", {
|
|
4308
4313
|
key: 0,
|
|
@@ -4313,8 +4318,8 @@ const hs = ["title"], ps = { "aria-hidden": "true" }, ks = {
|
|
|
4313
4318
|
}, null, 40, Ho)) : (a(), l("span", Ko)),
|
|
4314
4319
|
s("div", Wo, [
|
|
4315
4320
|
s("span", Yo, r(e.title), 1),
|
|
4316
|
-
e.subtitle ? (a(), l("span", jo, r(e.subtitle), 1)) :
|
|
4317
|
-
e.dates ? (a(), l("span", Xo, r(e.dates), 1)) :
|
|
4321
|
+
e.subtitle ? (a(), l("span", jo, r(e.subtitle), 1)) : k("", !0),
|
|
4322
|
+
e.dates ? (a(), l("span", Xo, r(e.dates), 1)) : k("", !0)
|
|
4318
4323
|
])
|
|
4319
4324
|
]));
|
|
4320
4325
|
}
|
|
@@ -4333,7 +4338,7 @@ const hs = ["title"], ps = { "aria-hidden": "true" }, ks = {
|
|
|
4333
4338
|
class: "ds-profile-locked-card-tooltip",
|
|
4334
4339
|
content: e.hint,
|
|
4335
4340
|
disabled: !e.hint,
|
|
4336
|
-
placement:
|
|
4341
|
+
placement: f(Ee).LEFT,
|
|
4337
4342
|
block: ""
|
|
4338
4343
|
}, {
|
|
4339
4344
|
default: P(() => [
|
|
@@ -4394,23 +4399,23 @@ const ld = ["aria-label"], nd = ["aria-label"], id = { class: "ds-organizer-form
|
|
|
4394
4399
|
},
|
|
4395
4400
|
emits: [Rt, Nt, Ot, dt],
|
|
4396
4401
|
setup(e, { expose: o, emit: t }) {
|
|
4397
|
-
const i = e, n = t, d = ve(), v = ve(),
|
|
4402
|
+
const i = e, n = t, d = ve(), v = ve(), c = N(), m = [], g = N(!1), $ = h(() => i.name.trim()), _ = h(
|
|
4398
4403
|
() => $.value.length > 0 && $.value.length <= i.maxNameLength
|
|
4399
|
-
), b =
|
|
4404
|
+
), b = h(() => {
|
|
4400
4405
|
var x;
|
|
4401
4406
|
return i.originalName === void 0 ? !0 : $.value !== i.originalName.trim() || i.color.toLowerCase() !== ((x = i.originalColor) != null ? x : "").toLowerCase();
|
|
4402
|
-
}),
|
|
4407
|
+
}), p = h(() => _.value && b.value), u = h(() => g.value ? $.value ? $.value.length > i.maxNameLength ? i.errorTooLongName : "" : i.errorMissingName : ""), y = h(() => u.value || i.errorMessage), T = h(() => Math.max(i.colors.indexOf(i.color), 0));
|
|
4403
4408
|
function S(x) {
|
|
4404
|
-
|
|
4409
|
+
g.value = !0, n(Ot, x);
|
|
4405
4410
|
}
|
|
4406
4411
|
function R() {
|
|
4407
|
-
|
|
4412
|
+
g.value = !0, !(i.loading || !p.value) && n(Nt, { name: $.value, color: i.color });
|
|
4408
4413
|
}
|
|
4409
4414
|
function B(x) {
|
|
4410
4415
|
x.isComposing || (x.preventDefault(), R());
|
|
4411
4416
|
}
|
|
4412
4417
|
function Y(x, w) {
|
|
4413
|
-
|
|
4418
|
+
m[w] = x;
|
|
4414
4419
|
}
|
|
4415
4420
|
const j = {
|
|
4416
4421
|
ArrowRight: 1,
|
|
@@ -4424,11 +4429,11 @@ const ld = ["aria-label"], nd = ["aria-label"], id = { class: "ds-organizer-form
|
|
|
4424
4429
|
if (!O) return;
|
|
4425
4430
|
x.preventDefault();
|
|
4426
4431
|
const E = i.colors.length, C = (w + O + E) % E;
|
|
4427
|
-
(L =
|
|
4432
|
+
(L = m[C]) == null || L.focus(), n(dt, i.colors[C]);
|
|
4428
4433
|
}
|
|
4429
4434
|
const M = () => {
|
|
4430
4435
|
var x;
|
|
4431
|
-
return (x =
|
|
4436
|
+
return (x = c.value) == null ? void 0 : x.focus();
|
|
4432
4437
|
};
|
|
4433
4438
|
return Pe(M), o({ focus: M }), (x, w) => (a(), l("div", {
|
|
4434
4439
|
class: "ds-organizer-form",
|
|
@@ -4439,7 +4444,7 @@ const ld = ["aria-label"], nd = ["aria-label"], id = { class: "ds-organizer-form
|
|
|
4439
4444
|
type: "button",
|
|
4440
4445
|
class: "ds-organizer-form__back",
|
|
4441
4446
|
"aria-label": e.backLabel,
|
|
4442
|
-
onClick: w[0] || (w[0] = (O) => n(
|
|
4447
|
+
onClick: w[0] || (w[0] = (O) => n(f(Rt)))
|
|
4443
4448
|
}, [
|
|
4444
4449
|
w[1] || (w[1] = s("i", {
|
|
4445
4450
|
class: "material-symbols-filled ds-organizer-form__back-icon",
|
|
@@ -4449,28 +4454,28 @@ const ld = ["aria-label"], nd = ["aria-label"], id = { class: "ds-organizer-form
|
|
|
4449
4454
|
], 8, nd),
|
|
4450
4455
|
w[2] || (w[2] = s("div", { class: "ds-organizer-form__divider" }, null, -1)),
|
|
4451
4456
|
s("div", sd, [
|
|
4452
|
-
V(
|
|
4453
|
-
id:
|
|
4457
|
+
V(f(lt), {
|
|
4458
|
+
id: f(d),
|
|
4454
4459
|
ref_key: "inputRef",
|
|
4455
|
-
ref:
|
|
4460
|
+
ref: c,
|
|
4456
4461
|
"model-value": e.name,
|
|
4457
|
-
size:
|
|
4462
|
+
size: f(Ht).MD,
|
|
4458
4463
|
placeholder: e.namePlaceholder,
|
|
4459
|
-
error: !!
|
|
4460
|
-
"error-message":
|
|
4464
|
+
error: !!y.value,
|
|
4465
|
+
"error-message": y.value,
|
|
4461
4466
|
autocomplete: "off",
|
|
4462
4467
|
"onUpdate:modelValue": S,
|
|
4463
4468
|
onKeydown: je(B, ["enter"])
|
|
4464
4469
|
}, null, 8, ["id", "model-value", "size", "placeholder", "error", "error-message"])
|
|
4465
4470
|
]),
|
|
4466
4471
|
s("p", {
|
|
4467
|
-
id:
|
|
4472
|
+
id: f(v),
|
|
4468
4473
|
class: "ds-organizer-form__label"
|
|
4469
4474
|
}, r(e.setColorLabel), 9, od),
|
|
4470
4475
|
s("div", {
|
|
4471
4476
|
class: "ds-organizer-form__swatches",
|
|
4472
4477
|
role: "radiogroup",
|
|
4473
|
-
"aria-labelledby":
|
|
4478
|
+
"aria-labelledby": f(v)
|
|
4474
4479
|
}, [
|
|
4475
4480
|
(a(!0), l(G, null, ne(e.colors, (O, E) => (a(), l("button", {
|
|
4476
4481
|
key: O,
|
|
@@ -4483,20 +4488,20 @@ const ld = ["aria-label"], nd = ["aria-label"], id = { class: "ds-organizer-form
|
|
|
4483
4488
|
"aria-checked": O === e.color,
|
|
4484
4489
|
"aria-label": O,
|
|
4485
4490
|
tabindex: E === T.value ? 0 : -1,
|
|
4486
|
-
onClick: (C) => n(
|
|
4491
|
+
onClick: (C) => n(f(dt), O),
|
|
4487
4492
|
onKeydown: (C) => K(C, E)
|
|
4488
4493
|
}, [
|
|
4489
|
-
O === e.color ? (a(), l("i", cd, "check")) :
|
|
4494
|
+
O === e.color ? (a(), l("i", cd, "check")) : k("", !0)
|
|
4490
4495
|
], 46, rd))), 128))
|
|
4491
4496
|
], 8, dd),
|
|
4492
4497
|
w[3] || (w[3] = s("div", { class: "ds-organizer-form__divider" }, null, -1)),
|
|
4493
4498
|
s("div", ud, [
|
|
4494
|
-
V(
|
|
4499
|
+
V(f(oe), {
|
|
4495
4500
|
class: "ds-organizer-form__submit",
|
|
4496
|
-
variant:
|
|
4497
|
-
size:
|
|
4501
|
+
variant: f(fe).PRIMARY,
|
|
4502
|
+
size: f(de).LARGE,
|
|
4498
4503
|
loading: e.loading,
|
|
4499
|
-
disabled: !
|
|
4504
|
+
disabled: !p.value,
|
|
4500
4505
|
onClick: R
|
|
4501
4506
|
}, {
|
|
4502
4507
|
default: P(() => [
|
|
@@ -4518,65 +4523,65 @@ const ld = ["aria-label"], nd = ["aria-label"], id = { class: "ds-organizer-form
|
|
|
4518
4523
|
},
|
|
4519
4524
|
emits: [we, Ie],
|
|
4520
4525
|
setup(e, { emit: o }) {
|
|
4521
|
-
const t = e, i = o, n = /* @__PURE__ */ Symbol("ds-picker-row-actions"), d = N(!1), v = N(null),
|
|
4522
|
-
function
|
|
4523
|
-
d.value !==
|
|
4526
|
+
const t = e, i = o, n = /* @__PURE__ */ Symbol("ds-picker-row-actions"), d = N(!1), v = N(null), c = N(null);
|
|
4527
|
+
function m(u) {
|
|
4528
|
+
d.value !== u && (d.value = u, u ? Oe.value = n : Oe.value === n && (Oe.value = null));
|
|
4524
4529
|
}
|
|
4525
|
-
le(Oe, (
|
|
4526
|
-
|
|
4530
|
+
le(Oe, (u) => {
|
|
4531
|
+
u !== n && m(!1);
|
|
4527
4532
|
});
|
|
4528
|
-
const
|
|
4529
|
-
var
|
|
4533
|
+
const g = () => {
|
|
4534
|
+
var u, y;
|
|
4530
4535
|
return [
|
|
4531
|
-
...(
|
|
4536
|
+
...(y = (u = c.value) == null ? void 0 : u.querySelectorAll('[role="menuitem"]')) != null ? y : []
|
|
4532
4537
|
];
|
|
4533
4538
|
};
|
|
4534
4539
|
le(
|
|
4535
4540
|
d,
|
|
4536
|
-
(
|
|
4537
|
-
|
|
4538
|
-
var
|
|
4539
|
-
return (
|
|
4541
|
+
(u) => {
|
|
4542
|
+
u && se(() => {
|
|
4543
|
+
var y;
|
|
4544
|
+
return (y = g()[0]) == null ? void 0 : y.focus();
|
|
4540
4545
|
});
|
|
4541
4546
|
},
|
|
4542
4547
|
{ flush: "post" }
|
|
4543
4548
|
);
|
|
4544
4549
|
function $() {
|
|
4545
4550
|
se(() => {
|
|
4546
|
-
var
|
|
4547
|
-
return (
|
|
4551
|
+
var u;
|
|
4552
|
+
return (u = v.value) == null ? void 0 : u.focus();
|
|
4548
4553
|
});
|
|
4549
4554
|
}
|
|
4550
4555
|
function _() {
|
|
4551
|
-
|
|
4556
|
+
m(!1), $();
|
|
4552
4557
|
}
|
|
4553
|
-
function b(
|
|
4554
|
-
|
|
4558
|
+
function b(u) {
|
|
4559
|
+
m(!1), u === Ie && $(), i(u, t.option);
|
|
4555
4560
|
}
|
|
4556
|
-
function
|
|
4561
|
+
function p(u) {
|
|
4557
4562
|
var R;
|
|
4558
|
-
if (
|
|
4559
|
-
|
|
4563
|
+
if (u.key === "Escape" || u.key === "Tab") {
|
|
4564
|
+
u.key === "Escape" && u.stopPropagation(), _();
|
|
4560
4565
|
return;
|
|
4561
4566
|
}
|
|
4562
|
-
const
|
|
4567
|
+
const y = g(), T = y.indexOf(document.activeElement);
|
|
4563
4568
|
let S;
|
|
4564
|
-
if (
|
|
4565
|
-
else if (
|
|
4566
|
-
else if (
|
|
4567
|
-
else if (
|
|
4569
|
+
if (u.key === "ArrowDown") S = (T + 1) % y.length;
|
|
4570
|
+
else if (u.key === "ArrowUp") S = (T - 1 + y.length) % y.length;
|
|
4571
|
+
else if (u.key === "Home") S = 0;
|
|
4572
|
+
else if (u.key === "End") S = y.length - 1;
|
|
4568
4573
|
else return;
|
|
4569
|
-
|
|
4574
|
+
u.preventDefault(), (R = y[S]) == null || R.focus();
|
|
4570
4575
|
}
|
|
4571
4576
|
return be(() => {
|
|
4572
4577
|
Oe.value === n && (Oe.value = null);
|
|
4573
|
-
}), (
|
|
4578
|
+
}), (u, y) => (a(), W(f(Ke), {
|
|
4574
4579
|
class: "ds-picker-row-actions",
|
|
4575
4580
|
open: d.value,
|
|
4576
|
-
placement:
|
|
4581
|
+
placement: f(Ge).BOTTOM_END,
|
|
4577
4582
|
width: "150px",
|
|
4578
4583
|
teleported: "",
|
|
4579
|
-
"onUpdate:open":
|
|
4584
|
+
"onUpdate:open": m
|
|
4580
4585
|
}, {
|
|
4581
4586
|
trigger: P(() => [
|
|
4582
4587
|
s("button", {
|
|
@@ -4587,7 +4592,7 @@ const ld = ["aria-label"], nd = ["aria-label"], id = { class: "ds-organizer-form
|
|
|
4587
4592
|
"aria-label": e.actionsLabel,
|
|
4588
4593
|
"aria-haspopup": "menu",
|
|
4589
4594
|
"aria-expanded": d.value
|
|
4590
|
-
}, [...
|
|
4595
|
+
}, [...y[2] || (y[2] = [
|
|
4591
4596
|
s("i", {
|
|
4592
4597
|
class: "material-symbols-filled ds-picker-row-actions__glyph",
|
|
4593
4598
|
"aria-hidden": "true"
|
|
@@ -4597,11 +4602,11 @@ const ld = ["aria-label"], nd = ["aria-label"], id = { class: "ds-organizer-form
|
|
|
4597
4602
|
default: P(() => [
|
|
4598
4603
|
s("div", {
|
|
4599
4604
|
ref_key: "menuRef",
|
|
4600
|
-
ref:
|
|
4605
|
+
ref: c,
|
|
4601
4606
|
class: "ds-picker-row-actions__menu",
|
|
4602
4607
|
role: "menu",
|
|
4603
4608
|
"aria-label": e.actionsLabel,
|
|
4604
|
-
onKeydown:
|
|
4609
|
+
onKeydown: p
|
|
4605
4610
|
}, [
|
|
4606
4611
|
e.showEdit ? (a(), l("button", {
|
|
4607
4612
|
key: 0,
|
|
@@ -4609,22 +4614,22 @@ const ld = ["aria-label"], nd = ["aria-label"], id = { class: "ds-organizer-form
|
|
|
4609
4614
|
role: "menuitem",
|
|
4610
4615
|
tabindex: "-1",
|
|
4611
4616
|
class: "ds-picker-row-actions__item",
|
|
4612
|
-
onClick:
|
|
4617
|
+
onClick: y[0] || (y[0] = (T) => b(f(we)))
|
|
4613
4618
|
}, [
|
|
4614
|
-
|
|
4619
|
+
y[3] || (y[3] = s("i", {
|
|
4615
4620
|
class: "material-symbols-filled ds-picker-row-actions__glyph",
|
|
4616
4621
|
"aria-hidden": "true"
|
|
4617
4622
|
}, "edit", -1)),
|
|
4618
4623
|
s("span", md, r(e.editLabel), 1)
|
|
4619
|
-
])) :
|
|
4624
|
+
])) : k("", !0),
|
|
4620
4625
|
s("button", {
|
|
4621
4626
|
type: "button",
|
|
4622
4627
|
role: "menuitem",
|
|
4623
4628
|
tabindex: "-1",
|
|
4624
4629
|
class: "ds-picker-row-actions__item ds-picker-row-actions__item--danger",
|
|
4625
|
-
onClick:
|
|
4630
|
+
onClick: y[1] || (y[1] = (T) => b(f(Ie)))
|
|
4626
4631
|
}, [
|
|
4627
|
-
|
|
4632
|
+
y[4] || (y[4] = s("i", {
|
|
4628
4633
|
class: "material-symbols-filled ds-picker-row-actions__glyph",
|
|
4629
4634
|
"aria-hidden": "true"
|
|
4630
4635
|
}, "delete", -1)),
|
|
@@ -4691,14 +4696,14 @@ const ld = ["aria-label"], nd = ["aria-label"], id = { class: "ds-organizer-form
|
|
|
4691
4696
|
tt
|
|
4692
4697
|
],
|
|
4693
4698
|
setup(e, { expose: o, emit: t }) {
|
|
4694
|
-
const i = e, n = t, d = N(!1), v = N(""),
|
|
4699
|
+
const i = e, n = t, d = N(!1), v = N(""), c = N(null), m = N("list"), g = N("create"), $ = N(null), _ = N(""), b = N(""), p = h(() => m.value === "form"), u = h(() => i.colors.length > 0), y = ve(), T = h(() => mt(i.align)), S = h(() => bt(i.folders, v.value)), R = h(
|
|
4695
4700
|
() => i.size === xe.LARGE ? de.LARGE : de.MEDIUM
|
|
4696
4701
|
);
|
|
4697
4702
|
function B(L) {
|
|
4698
4703
|
return i.folder !== null && i.folder.id === L.id;
|
|
4699
4704
|
}
|
|
4700
4705
|
function Y() {
|
|
4701
|
-
|
|
4706
|
+
m.value = "list", g.value = "create", $.value = null, _.value = "", b.value = "";
|
|
4702
4707
|
}
|
|
4703
4708
|
function j(L) {
|
|
4704
4709
|
d.value !== L && (L && (v.value = ""), Y(), d.value = L, n(ue, L));
|
|
@@ -4711,51 +4716,51 @@ const ld = ["aria-label"], nd = ["aria-label"], id = { class: "ds-organizer-form
|
|
|
4711
4716
|
}
|
|
4712
4717
|
function x() {
|
|
4713
4718
|
const L = v.value.trim();
|
|
4714
|
-
if (!
|
|
4719
|
+
if (!u.value) {
|
|
4715
4720
|
n(Je, L), j(!1);
|
|
4716
4721
|
return;
|
|
4717
4722
|
}
|
|
4718
|
-
|
|
4723
|
+
g.value = "create", $.value = null, _.value = L, b.value = i.colors[0], m.value = "form";
|
|
4719
4724
|
}
|
|
4720
4725
|
function w(L) {
|
|
4721
4726
|
var I;
|
|
4722
|
-
n(we, L),
|
|
4727
|
+
n(we, L), u.value && (g.value = "edit", $.value = L, _.value = L.name, b.value = (I = L.color) != null ? I : i.colors[0], m.value = "form");
|
|
4723
4728
|
}
|
|
4724
4729
|
function O(L) {
|
|
4725
4730
|
n(Ie, L);
|
|
4726
4731
|
}
|
|
4727
4732
|
function E({ name: L, color: I }) {
|
|
4728
|
-
|
|
4733
|
+
g.value === "edit" && $.value ? n(tt, { id: $.value.id, name: L, color: I }) : n(et, { name: L, color: I });
|
|
4729
4734
|
}
|
|
4730
4735
|
function C() {
|
|
4731
4736
|
Y(), se(() => {
|
|
4732
4737
|
var L;
|
|
4733
|
-
return (L =
|
|
4738
|
+
return (L = c.value) == null ? void 0 : L.focus();
|
|
4734
4739
|
});
|
|
4735
4740
|
}
|
|
4736
4741
|
return o({ closeForm: C }), le(v, (L) => n(pe, L)), (L, I) => (a(), l("div", {
|
|
4737
4742
|
class: A(["ds-saved-button", [`ds-saved-button--${e.size}`, { "is-open": d.value, "is-disabled": e.disabled }]])
|
|
4738
4743
|
}, [
|
|
4739
|
-
V(
|
|
4744
|
+
V(f(Ke), {
|
|
4740
4745
|
open: d.value,
|
|
4741
4746
|
placement: T.value,
|
|
4742
4747
|
width: "300px",
|
|
4743
|
-
"grow-to":
|
|
4744
|
-
flush:
|
|
4748
|
+
"grow-to": p.value ? "" : f(la),
|
|
4749
|
+
flush: p.value,
|
|
4745
4750
|
"trigger-on-click": !1,
|
|
4746
4751
|
"onUpdate:open": j
|
|
4747
4752
|
}, {
|
|
4748
4753
|
trigger: P(() => [
|
|
4749
|
-
V(
|
|
4754
|
+
V(f(ge), {
|
|
4750
4755
|
content: e.tooltip,
|
|
4751
4756
|
disabled: !e.tooltip || d.value,
|
|
4752
4757
|
placement: "bottom",
|
|
4753
4758
|
teleported: ""
|
|
4754
4759
|
}, {
|
|
4755
4760
|
default: P(() => [
|
|
4756
|
-
V(
|
|
4761
|
+
V(f(oe), {
|
|
4757
4762
|
class: "ds-saved-button__trigger",
|
|
4758
|
-
variant:
|
|
4763
|
+
variant: f(fe).OUTLINE,
|
|
4759
4764
|
size: R.value,
|
|
4760
4765
|
pill: e.pill,
|
|
4761
4766
|
disabled: e.disabled,
|
|
@@ -4793,11 +4798,11 @@ const ld = ["aria-label"], nd = ["aria-label"], id = { class: "ds-organizer-form
|
|
|
4793
4798
|
default: P(() => {
|
|
4794
4799
|
var ee;
|
|
4795
4800
|
return [
|
|
4796
|
-
|
|
4801
|
+
p.value ? (a(), W(f(na), {
|
|
4797
4802
|
key: 0,
|
|
4798
4803
|
class: "ds-saved-button__form",
|
|
4799
|
-
title:
|
|
4800
|
-
"submit-label":
|
|
4804
|
+
title: g.value === "edit" ? e.editFormTitle : e.createFormTitle,
|
|
4805
|
+
"submit-label": g.value === "edit" ? e.editSubmitLabel : e.createSubmitLabel,
|
|
4801
4806
|
name: _.value,
|
|
4802
4807
|
color: b.value,
|
|
4803
4808
|
"original-name": $.value ? $.value.name : void 0,
|
|
@@ -4815,9 +4820,9 @@ const ld = ["aria-label"], nd = ["aria-label"], id = { class: "ds-organizer-form
|
|
|
4815
4820
|
onBack: C,
|
|
4816
4821
|
onSubmit: E
|
|
4817
4822
|
}, null, 8, ["title", "submit-label", "name", "color", "original-name", "original-color", "colors", "loading", "error-message", "name-placeholder", "set-color-label", "back-label", "error-missing-name", "error-too-long-name"])) : (a(), l("div", pd, [
|
|
4818
|
-
V(
|
|
4823
|
+
V(f(lt), {
|
|
4819
4824
|
ref_key: "searchRef",
|
|
4820
|
-
ref:
|
|
4825
|
+
ref: c,
|
|
4821
4826
|
modelValue: v.value,
|
|
4822
4827
|
"onUpdate:modelValue": I[2] || (I[2] = (H) => v.value = H),
|
|
4823
4828
|
class: "ds-saved-button__search",
|
|
@@ -4835,8 +4840,8 @@ const ld = ["aria-label"], nd = ["aria-label"], id = { class: "ds-organizer-form
|
|
|
4835
4840
|
key: H.id,
|
|
4836
4841
|
class: A(["ds-saved-button__option", { "is-current": B(H) }])
|
|
4837
4842
|
}, [
|
|
4838
|
-
V(
|
|
4839
|
-
name:
|
|
4843
|
+
V(f(Zt), {
|
|
4844
|
+
name: f(y),
|
|
4840
4845
|
value: String(H.id),
|
|
4841
4846
|
"model-value": B(H),
|
|
4842
4847
|
"onUpdate:modelValue": (Te) => M(H)
|
|
@@ -4851,7 +4856,7 @@ const ld = ["aria-label"], nd = ["aria-label"], id = { class: "ds-organizer-form
|
|
|
4851
4856
|
]),
|
|
4852
4857
|
_: 2
|
|
4853
4858
|
}, 1032, ["name", "value", "model-value", "onUpdate:modelValue"]),
|
|
4854
|
-
e.rowActions ? (a(), W(
|
|
4859
|
+
e.rowActions ? (a(), W(f(ia), {
|
|
4855
4860
|
key: 0,
|
|
4856
4861
|
option: H,
|
|
4857
4862
|
"actions-label": e.actionsLabel,
|
|
@@ -4859,17 +4864,17 @@ const ld = ["aria-label"], nd = ["aria-label"], id = { class: "ds-organizer-form
|
|
|
4859
4864
|
"delete-label": e.deleteLabel,
|
|
4860
4865
|
onEdit: w,
|
|
4861
4866
|
onDelete: O
|
|
4862
|
-
}, null, 8, ["option", "actions-label", "edit-label", "delete-label"])) :
|
|
4867
|
+
}, null, 8, ["option", "actions-label", "edit-label", "delete-label"])) : k("", !0)
|
|
4863
4868
|
], 2))), 128)),
|
|
4864
|
-
!S.value.length && e.emptyLabel ? (a(), l("p", $d, r(e.emptyLabel), 1)) :
|
|
4869
|
+
!S.value.length && e.emptyLabel ? (a(), l("p", $d, r(e.emptyLabel), 1)) : k("", !0)
|
|
4865
4870
|
], 8, kd),
|
|
4866
4871
|
e.createLabel || L.$slots.footer ? (a(), l(G, { key: 0 }, [
|
|
4867
4872
|
I[4] || (I[4] = s("div", { class: "ds-saved-button__divider" }, null, -1)),
|
|
4868
4873
|
s("div", _d, [
|
|
4869
4874
|
F(L.$slots, "footer", { query: v.value }, () => [
|
|
4870
|
-
V(
|
|
4871
|
-
variant:
|
|
4872
|
-
size:
|
|
4875
|
+
V(f(oe), {
|
|
4876
|
+
variant: f(fe).TERTIARY,
|
|
4877
|
+
size: f(de).MEDIUM,
|
|
4873
4878
|
"left-icon": "add",
|
|
4874
4879
|
onClick: x
|
|
4875
4880
|
}, {
|
|
@@ -4880,7 +4885,7 @@ const ld = ["aria-label"], nd = ["aria-label"], id = { class: "ds-organizer-form
|
|
|
4880
4885
|
}, 8, ["variant", "size"])
|
|
4881
4886
|
], !0)
|
|
4882
4887
|
])
|
|
4883
|
-
], 64)) :
|
|
4888
|
+
], 64)) : k("", !0)
|
|
4884
4889
|
]))
|
|
4885
4890
|
];
|
|
4886
4891
|
}),
|
|
@@ -4945,20 +4950,20 @@ const ld = ["aria-label"], nd = ["aria-label"], id = { class: "ds-organizer-form
|
|
|
4945
4950
|
tt
|
|
4946
4951
|
],
|
|
4947
4952
|
setup(e, { expose: o, emit: t }) {
|
|
4948
|
-
const i = e, n = t, d = N(!1), v = N(""),
|
|
4953
|
+
const i = e, n = t, d = N(!1), v = N(""), c = N(/* @__PURE__ */ new Set()), m = N(null), g = N("list"), $ = N("create"), _ = N(null), b = N(""), p = N(""), u = h(() => g.value === "form"), y = h(() => i.colors.length > 0), T = h(() => y.value && !!i.createLabel), S = h(() => i.tags.length > 0), R = h(
|
|
4949
4954
|
() => S.value ? `${i.taggedAsLabel} ${i.tags[0].name}` : i.label
|
|
4950
|
-
), B =
|
|
4955
|
+
), B = h(() => mt(i.align)), Y = h(() => bt(i.options, v.value)), j = h(() => v.value.trim()), K = h(() => {
|
|
4951
4956
|
if (!i.createLabel || !j.value) return !1;
|
|
4952
4957
|
const Z = j.value.toLowerCase();
|
|
4953
4958
|
return !i.options.some((te) => te.name.toLowerCase() === Z);
|
|
4954
|
-
}), M =
|
|
4959
|
+
}), M = h(
|
|
4955
4960
|
() => i.size === xe.LARGE ? de.LARGE : de.MEDIUM
|
|
4956
4961
|
);
|
|
4957
4962
|
function x() {
|
|
4958
|
-
|
|
4963
|
+
g.value = "list", $.value = "create", _.value = null, b.value = "", p.value = "";
|
|
4959
4964
|
}
|
|
4960
4965
|
function w(Z) {
|
|
4961
|
-
d.value !== Z && (Z && (v.value = "",
|
|
4966
|
+
d.value !== Z && (Z && (v.value = "", c.value = new Set(i.tags.map((te) => te.id))), x(), d.value = Z, n(ue, Z));
|
|
4962
4967
|
}
|
|
4963
4968
|
function O() {
|
|
4964
4969
|
i.disabled || w(!d.value);
|
|
@@ -4974,25 +4979,25 @@ const ld = ["aria-label"], nd = ["aria-label"], id = { class: "ds-organizer-form
|
|
|
4974
4979
|
se(L);
|
|
4975
4980
|
});
|
|
4976
4981
|
function I(Z, te) {
|
|
4977
|
-
const ie = new Set(
|
|
4978
|
-
te ? ie.add(Z.id) : ie.delete(Z.id),
|
|
4982
|
+
const ie = new Set(c.value);
|
|
4983
|
+
te ? ie.add(Z.id) : ie.delete(Z.id), c.value = ie;
|
|
4979
4984
|
}
|
|
4980
4985
|
function ee() {
|
|
4981
4986
|
const Z = new Set(i.options.map((ie) => ie.id)), te = [
|
|
4982
|
-
...i.options.filter((ie) =>
|
|
4983
|
-
...i.tags.filter((ie) =>
|
|
4987
|
+
...i.options.filter((ie) => c.value.has(ie.id)),
|
|
4988
|
+
...i.tags.filter((ie) => c.value.has(ie.id) && !Z.has(ie.id))
|
|
4984
4989
|
];
|
|
4985
4990
|
n(Dt, te), w(!1);
|
|
4986
4991
|
}
|
|
4987
4992
|
function H() {
|
|
4988
|
-
$.value = "create", _.value = null, b.value = j.value,
|
|
4993
|
+
$.value = "create", _.value = null, b.value = j.value, p.value = i.colors[0], g.value = "form";
|
|
4989
4994
|
}
|
|
4990
4995
|
function Te() {
|
|
4991
|
-
|
|
4996
|
+
y.value ? H() : n(Je, j.value);
|
|
4992
4997
|
}
|
|
4993
4998
|
function Ue(Z) {
|
|
4994
4999
|
var te;
|
|
4995
|
-
n(we, Z),
|
|
5000
|
+
n(we, Z), y.value && ($.value = "edit", _.value = Z, b.value = Z.name, p.value = (te = Z.color) != null ? te : i.colors[0], g.value = "form");
|
|
4996
5001
|
}
|
|
4997
5002
|
function it(Z) {
|
|
4998
5003
|
n(Ie, Z);
|
|
@@ -5003,7 +5008,7 @@ const ld = ["aria-label"], nd = ["aria-label"], id = { class: "ds-organizer-form
|
|
|
5003
5008
|
function Ye() {
|
|
5004
5009
|
x(), se(() => {
|
|
5005
5010
|
var Z;
|
|
5006
|
-
return (Z =
|
|
5011
|
+
return (Z = m.value) == null ? void 0 : Z.focus();
|
|
5007
5012
|
});
|
|
5008
5013
|
}
|
|
5009
5014
|
return o({ closeForm: Ye }), le(v, (Z) => n(pe, Z)), (Z, te) => (a(), l("div", {
|
|
@@ -5012,26 +5017,26 @@ const ld = ["aria-label"], nd = ["aria-label"], id = { class: "ds-organizer-form
|
|
|
5012
5017
|
{ "is-open": d.value, "is-disabled": e.disabled, "has-tags": S.value }
|
|
5013
5018
|
]])
|
|
5014
5019
|
}, [
|
|
5015
|
-
V(
|
|
5020
|
+
V(f(Ke), {
|
|
5016
5021
|
open: d.value,
|
|
5017
5022
|
placement: B.value,
|
|
5018
5023
|
width: "240px",
|
|
5019
|
-
"grow-to":
|
|
5020
|
-
flush:
|
|
5024
|
+
"grow-to": u.value ? "" : f(la),
|
|
5025
|
+
flush: u.value,
|
|
5021
5026
|
"trigger-on-click": !1,
|
|
5022
5027
|
"onUpdate:open": w
|
|
5023
5028
|
}, {
|
|
5024
5029
|
trigger: P(() => [
|
|
5025
|
-
V(
|
|
5030
|
+
V(f(ge), {
|
|
5026
5031
|
content: R.value,
|
|
5027
5032
|
disabled: !C.value || d.value,
|
|
5028
5033
|
placement: "bottom",
|
|
5029
5034
|
teleported: ""
|
|
5030
5035
|
}, {
|
|
5031
5036
|
default: P(() => [
|
|
5032
|
-
V(
|
|
5037
|
+
V(f(oe), {
|
|
5033
5038
|
class: "ds-tag-picker__trigger",
|
|
5034
|
-
variant:
|
|
5039
|
+
variant: f(fe).OUTLINE,
|
|
5035
5040
|
size: M.value,
|
|
5036
5041
|
pill: e.pill,
|
|
5037
5042
|
disabled: e.disabled,
|
|
@@ -5066,7 +5071,7 @@ const ld = ["aria-label"], nd = ["aria-label"], id = { class: "ds-organizer-form
|
|
|
5066
5071
|
S.value ? {
|
|
5067
5072
|
name: "trailing",
|
|
5068
5073
|
fn: P(() => [
|
|
5069
|
-
V(
|
|
5074
|
+
V(f(aa), {
|
|
5070
5075
|
overflow: e.tags.length - 1,
|
|
5071
5076
|
label: e.moreLabel
|
|
5072
5077
|
}, null, 8, ["overflow", "label"])
|
|
@@ -5081,13 +5086,13 @@ const ld = ["aria-label"], nd = ["aria-label"], id = { class: "ds-organizer-form
|
|
|
5081
5086
|
default: P(() => {
|
|
5082
5087
|
var ie;
|
|
5083
5088
|
return [
|
|
5084
|
-
|
|
5089
|
+
u.value ? (a(), W(f(na), {
|
|
5085
5090
|
key: 0,
|
|
5086
5091
|
class: "ds-tag-picker__form",
|
|
5087
5092
|
title: $.value === "edit" ? e.editFormTitle : e.createFormTitle,
|
|
5088
5093
|
"submit-label": $.value === "edit" ? e.editSubmitLabel : e.createSubmitLabel,
|
|
5089
5094
|
name: b.value,
|
|
5090
|
-
color:
|
|
5095
|
+
color: p.value,
|
|
5091
5096
|
"original-name": _.value ? _.value.name : void 0,
|
|
5092
5097
|
"original-color": _.value ? (ie = _.value.color) != null ? ie : e.colors[0] : void 0,
|
|
5093
5098
|
colors: e.colors,
|
|
@@ -5099,13 +5104,13 @@ const ld = ["aria-label"], nd = ["aria-label"], id = { class: "ds-organizer-form
|
|
|
5099
5104
|
"error-missing-name": e.errorMissingName,
|
|
5100
5105
|
"error-too-long-name": e.errorTooLongName,
|
|
5101
5106
|
"onUpdate:name": te[0] || (te[0] = (D) => b.value = D),
|
|
5102
|
-
"onUpdate:color": te[1] || (te[1] = (D) =>
|
|
5107
|
+
"onUpdate:color": te[1] || (te[1] = (D) => p.value = D),
|
|
5103
5108
|
onBack: Ye,
|
|
5104
5109
|
onSubmit: Re
|
|
5105
5110
|
}, null, 8, ["title", "submit-label", "name", "color", "original-name", "original-color", "colors", "loading", "error-message", "name-placeholder", "set-color-label", "back-label", "error-missing-name", "error-too-long-name"])) : (a(), l("div", wd, [
|
|
5106
|
-
V(
|
|
5111
|
+
V(f(lt), {
|
|
5107
5112
|
ref_key: "searchRef",
|
|
5108
|
-
ref:
|
|
5113
|
+
ref: m,
|
|
5109
5114
|
modelValue: v.value,
|
|
5110
5115
|
"onUpdate:modelValue": te[2] || (te[2] = (D) => v.value = D),
|
|
5111
5116
|
class: "ds-tag-picker__search",
|
|
@@ -5123,8 +5128,8 @@ const ld = ["aria-label"], nd = ["aria-label"], id = { class: "ds-organizer-form
|
|
|
5123
5128
|
key: D.id,
|
|
5124
5129
|
class: "ds-tag-picker__option"
|
|
5125
5130
|
}, [
|
|
5126
|
-
V(
|
|
5127
|
-
"model-value":
|
|
5131
|
+
V(f(at), {
|
|
5132
|
+
"model-value": c.value.has(D.id),
|
|
5128
5133
|
"onUpdate:modelValue": (q) => I(D, q)
|
|
5129
5134
|
}, {
|
|
5130
5135
|
default: P(() => [
|
|
@@ -5137,7 +5142,7 @@ const ld = ["aria-label"], nd = ["aria-label"], id = { class: "ds-organizer-form
|
|
|
5137
5142
|
]),
|
|
5138
5143
|
_: 2
|
|
5139
5144
|
}, 1032, ["model-value", "onUpdate:modelValue"]),
|
|
5140
|
-
e.rowActions ? (a(), W(
|
|
5145
|
+
e.rowActions ? (a(), W(f(ia), {
|
|
5141
5146
|
key: 0,
|
|
5142
5147
|
option: D,
|
|
5143
5148
|
"actions-label": e.actionsLabel,
|
|
@@ -5145,7 +5150,7 @@ const ld = ["aria-label"], nd = ["aria-label"], id = { class: "ds-organizer-form
|
|
|
5145
5150
|
"delete-label": e.deleteLabel,
|
|
5146
5151
|
onEdit: Ue,
|
|
5147
5152
|
onDelete: it
|
|
5148
|
-
}, null, 8, ["option", "actions-label", "edit-label", "delete-label"])) :
|
|
5153
|
+
}, null, 8, ["option", "actions-label", "edit-label", "delete-label"])) : k("", !0)
|
|
5149
5154
|
]))), 128)),
|
|
5150
5155
|
K.value ? (a(), l("button", {
|
|
5151
5156
|
key: 0,
|
|
@@ -5159,18 +5164,18 @@ const ld = ["aria-label"], nd = ["aria-label"], id = { class: "ds-organizer-form
|
|
|
5159
5164
|
}, "add", -1)),
|
|
5160
5165
|
s("span", null, r(e.createLabel), 1),
|
|
5161
5166
|
s("span", Cd, "“" + r(j.value) + "”", 1)
|
|
5162
|
-
])) :
|
|
5163
|
-
!Y.value.length && !K.value && e.emptyLabel ? (a(), l("p", Id, r(e.emptyLabel), 1)) :
|
|
5167
|
+
])) : k("", !0),
|
|
5168
|
+
!Y.value.length && !K.value && e.emptyLabel ? (a(), l("p", Id, r(e.emptyLabel), 1)) : k("", !0)
|
|
5164
5169
|
], 8, Ed),
|
|
5165
5170
|
te[5] || (te[5] = s("div", { class: "ds-tag-picker__divider" }, null, -1)),
|
|
5166
5171
|
s("div", {
|
|
5167
5172
|
class: A(["ds-tag-picker__footer", { "is-split": T.value }])
|
|
5168
5173
|
}, [
|
|
5169
|
-
T.value ? (a(), W(
|
|
5174
|
+
T.value ? (a(), W(f(oe), {
|
|
5170
5175
|
key: 0,
|
|
5171
5176
|
class: "ds-tag-picker__new",
|
|
5172
|
-
variant:
|
|
5173
|
-
size:
|
|
5177
|
+
variant: f(fe).TERTIARY,
|
|
5178
|
+
size: f(de).MEDIUM,
|
|
5174
5179
|
"left-icon": "add",
|
|
5175
5180
|
onClick: H
|
|
5176
5181
|
}, {
|
|
@@ -5178,11 +5183,11 @@ const ld = ["aria-label"], nd = ["aria-label"], id = { class: "ds-organizer-form
|
|
|
5178
5183
|
ae(r(e.createLabel), 1)
|
|
5179
5184
|
]),
|
|
5180
5185
|
_: 1
|
|
5181
|
-
}, 8, ["variant", "size"])) :
|
|
5182
|
-
V(
|
|
5186
|
+
}, 8, ["variant", "size"])) : k("", !0),
|
|
5187
|
+
V(f(oe), {
|
|
5183
5188
|
class: "ds-tag-picker__apply",
|
|
5184
|
-
variant:
|
|
5185
|
-
size:
|
|
5189
|
+
variant: f(fe).PRIMARY,
|
|
5190
|
+
size: f(de).MEDIUM,
|
|
5186
5191
|
onClick: ee
|
|
5187
5192
|
}, {
|
|
5188
5193
|
default: P(() => [
|
|
@@ -5235,28 +5240,28 @@ const ld = ["aria-label"], nd = ["aria-label"], id = { class: "ds-organizer-form
|
|
|
5235
5240
|
},
|
|
5236
5241
|
emits: [At, pe, ue],
|
|
5237
5242
|
setup(e, { emit: o }) {
|
|
5238
|
-
const t = e, i = o, n = N(!1), d = N(""), v = N(t.defaultChannel),
|
|
5243
|
+
const t = e, i = o, n = N(!1), d = N(""), v = N(t.defaultChannel), c = N(/* @__PURE__ */ new Set()), m = ve(), g = h(() => mt(t.align)), $ = h(() => bt(t.campaigns, d.value)), _ = h(
|
|
5239
5244
|
() => t.variant === qt.PRIMARY ? fe.PRIMARY : fe.OUTLINE
|
|
5240
|
-
), b =
|
|
5245
|
+
), b = h(
|
|
5241
5246
|
() => t.size === xe.LARGE ? de.LARGE : de.MEDIUM
|
|
5242
5247
|
);
|
|
5243
|
-
function
|
|
5248
|
+
function p(S) {
|
|
5244
5249
|
n.value !== S && (S && (d.value = ""), n.value = S, i(ue, S));
|
|
5245
5250
|
}
|
|
5246
|
-
function
|
|
5247
|
-
t.disabled ||
|
|
5251
|
+
function u() {
|
|
5252
|
+
t.disabled || p(!n.value);
|
|
5248
5253
|
}
|
|
5249
|
-
function
|
|
5250
|
-
const B = new Set(
|
|
5251
|
-
R ? B.add(S.id) : B.delete(S.id),
|
|
5254
|
+
function y(S, R) {
|
|
5255
|
+
const B = new Set(c.value);
|
|
5256
|
+
R ? B.add(S.id) : B.delete(S.id), c.value = B;
|
|
5252
5257
|
}
|
|
5253
5258
|
function T() {
|
|
5254
|
-
if (
|
|
5259
|
+
if (c.value.size === 0) return;
|
|
5255
5260
|
const S = {
|
|
5256
5261
|
channel: v.value,
|
|
5257
|
-
campaigns: t.campaigns.filter((R) =>
|
|
5262
|
+
campaigns: t.campaigns.filter((R) => c.value.has(R.id))
|
|
5258
5263
|
};
|
|
5259
|
-
i(At, S),
|
|
5264
|
+
i(At, S), c.value = /* @__PURE__ */ new Set(), p(!1);
|
|
5260
5265
|
}
|
|
5261
5266
|
return le(d, (S) => i(pe, S)), (S, R) => (a(), l("div", {
|
|
5262
5267
|
class: A(["ds-add-to-sequence", [
|
|
@@ -5265,21 +5270,21 @@ const ld = ["aria-label"], nd = ["aria-label"], id = { class: "ds-organizer-form
|
|
|
5265
5270
|
{ "is-open": n.value, "is-disabled": e.disabled }
|
|
5266
5271
|
]])
|
|
5267
5272
|
}, [
|
|
5268
|
-
V(
|
|
5273
|
+
V(f(Ke), {
|
|
5269
5274
|
open: n.value,
|
|
5270
|
-
placement:
|
|
5275
|
+
placement: g.value,
|
|
5271
5276
|
width: "288px",
|
|
5272
5277
|
"trigger-on-click": !1,
|
|
5273
|
-
"onUpdate:open":
|
|
5278
|
+
"onUpdate:open": p
|
|
5274
5279
|
}, {
|
|
5275
5280
|
trigger: P(() => [
|
|
5276
|
-
V(
|
|
5281
|
+
V(f(ge), {
|
|
5277
5282
|
content: e.tooltip,
|
|
5278
5283
|
disabled: !e.tooltip || n.value,
|
|
5279
5284
|
placement: "bottom"
|
|
5280
5285
|
}, {
|
|
5281
5286
|
default: P(() => [
|
|
5282
|
-
V(
|
|
5287
|
+
V(f(oe), {
|
|
5283
5288
|
class: "ds-add-to-sequence__trigger",
|
|
5284
5289
|
variant: _.value,
|
|
5285
5290
|
size: b.value,
|
|
@@ -5287,7 +5292,7 @@ const ld = ["aria-label"], nd = ["aria-label"], id = { class: "ds-organizer-form
|
|
|
5287
5292
|
disabled: e.disabled,
|
|
5288
5293
|
"aria-haspopup": "dialog",
|
|
5289
5294
|
"aria-expanded": n.value,
|
|
5290
|
-
onClick:
|
|
5295
|
+
onClick: u
|
|
5291
5296
|
}, {
|
|
5292
5297
|
leading: P(() => [...R[1] || (R[1] = [
|
|
5293
5298
|
s("i", {
|
|
@@ -5316,8 +5321,8 @@ const ld = ["aria-label"], nd = ["aria-label"], id = { class: "ds-organizer-form
|
|
|
5316
5321
|
key: B.value,
|
|
5317
5322
|
class: A(["ds-add-to-sequence__channel", { "is-on": v.value === B.value }])
|
|
5318
5323
|
}, [
|
|
5319
|
-
V(
|
|
5320
|
-
name:
|
|
5324
|
+
V(f(Zt), {
|
|
5325
|
+
name: f(m),
|
|
5321
5326
|
value: B.value,
|
|
5322
5327
|
"model-value": v.value === B.value,
|
|
5323
5328
|
"onUpdate:modelValue": (Y) => v.value = B.value
|
|
@@ -5329,7 +5334,7 @@ const ld = ["aria-label"], nd = ["aria-label"], id = { class: "ds-organizer-form
|
|
|
5329
5334
|
}, 1032, ["name", "value", "model-value", "onUpdate:modelValue"])
|
|
5330
5335
|
], 2))), 128))
|
|
5331
5336
|
], 8, Od),
|
|
5332
|
-
V(
|
|
5337
|
+
V(f(lt), {
|
|
5333
5338
|
modelValue: d.value,
|
|
5334
5339
|
"onUpdate:modelValue": R[0] || (R[0] = (B) => d.value = B),
|
|
5335
5340
|
class: "ds-add-to-sequence__search",
|
|
@@ -5337,7 +5342,7 @@ const ld = ["aria-label"], nd = ["aria-label"], id = { class: "ds-organizer-form
|
|
|
5337
5342
|
size: "sm",
|
|
5338
5343
|
placeholder: e.searchPlaceholder
|
|
5339
5344
|
}, null, 8, ["modelValue", "placeholder"]),
|
|
5340
|
-
e.campaignsLabel ? (a(), l("p", Bd, r(e.campaignsLabel), 1)) :
|
|
5345
|
+
e.campaignsLabel ? (a(), l("p", Bd, r(e.campaignsLabel), 1)) : k("", !0),
|
|
5341
5346
|
s("div", {
|
|
5342
5347
|
class: "ds-add-to-sequence__list",
|
|
5343
5348
|
role: "group",
|
|
@@ -5347,9 +5352,9 @@ const ld = ["aria-label"], nd = ["aria-label"], id = { class: "ds-organizer-form
|
|
|
5347
5352
|
key: B.id,
|
|
5348
5353
|
class: "ds-add-to-sequence__option"
|
|
5349
5354
|
}, [
|
|
5350
|
-
V(
|
|
5351
|
-
"model-value":
|
|
5352
|
-
"onUpdate:modelValue": (Y) =>
|
|
5355
|
+
V(f(at), {
|
|
5356
|
+
"model-value": c.value.has(B.id),
|
|
5357
|
+
"onUpdate:modelValue": (Y) => y(B, Y)
|
|
5353
5358
|
}, {
|
|
5354
5359
|
default: P(() => [
|
|
5355
5360
|
ae(r(B.name), 1)
|
|
@@ -5357,15 +5362,15 @@ const ld = ["aria-label"], nd = ["aria-label"], id = { class: "ds-organizer-form
|
|
|
5357
5362
|
_: 2
|
|
5358
5363
|
}, 1032, ["model-value", "onUpdate:modelValue"])
|
|
5359
5364
|
]))), 128)),
|
|
5360
|
-
!$.value.length && e.emptyLabel ? (a(), l("p", xd, r(e.emptyLabel), 1)) :
|
|
5365
|
+
!$.value.length && e.emptyLabel ? (a(), l("p", xd, r(e.emptyLabel), 1)) : k("", !0)
|
|
5361
5366
|
], 8, Md),
|
|
5362
5367
|
R[2] || (R[2] = s("div", { class: "ds-add-to-sequence__divider" }, null, -1)),
|
|
5363
5368
|
s("div", Pd, [
|
|
5364
|
-
V(
|
|
5369
|
+
V(f(oe), {
|
|
5365
5370
|
class: "ds-add-to-sequence__add",
|
|
5366
|
-
variant:
|
|
5367
|
-
size:
|
|
5368
|
-
disabled:
|
|
5371
|
+
variant: f(fe).PRIMARY,
|
|
5372
|
+
size: f(de).MEDIUM,
|
|
5373
|
+
disabled: c.value.size === 0,
|
|
5369
5374
|
onClick: T
|
|
5370
5375
|
}, {
|
|
5371
5376
|
default: P(() => [
|