@dcodegroup-au/dsg-vue 0.0.22 → 0.0.23
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/{DsgTablePerPage.vue_vue_type_style_index_0_lang--7p1oFP9.cjs → DsgTablePerPage.vue_vue_type_style_index_0_lang-BhOGWFCu.cjs} +1 -1
- package/dist/{DsgTablePerPage.vue_vue_type_style_index_0_lang-G5N7Ra82.js → DsgTablePerPage.vue_vue_type_style_index_0_lang-BoZ8zryc.js} +85 -74
- package/dist/components/Elements/DsgBadge.vue.d.ts +6 -4
- package/dist/components/Elements/DsgDropdown.vue.d.ts +1 -0
- package/dist/components/Elements/DsgInput.vue.d.ts +2 -0
- package/dist/components/Elements/DsgInputSelect.vue.d.ts +4 -1
- package/dist/dsg-vue.cjs +2 -2
- package/dist/dsg-vue.css +1 -1
- package/dist/dsg-vue.esm.js +1188 -1143
- package/dist/dsg-vue.helpers.cjs +1 -0
- package/dist/dsg-vue.helpers.esm.js +4 -0
- package/dist/dsg-vue.table.cjs +1 -1
- package/dist/dsg-vue.table.esm.js +1 -1
- package/dist/helpers.d.ts +2 -0
- package/dist/utilities/General.d.ts +1 -0
- package/package.json +7 -1
- package/vite.config.ts +1 -0
package/dist/dsg-vue.esm.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { _ as
|
|
2
|
-
import { defineComponent as
|
|
3
|
-
import { C as
|
|
1
|
+
import { _ as G, D as fe, a as fi, b as xs, c as Tt, k as hi, d as Re, e as vs, u as pi, f as gi, g as mi, h as bi, i as vi } from "./DsgTablePerPage.vue_vue_type_style_index_0_lang-BoZ8zryc.js";
|
|
2
|
+
import { defineComponent as _, createElementBlock as v, openBlock as c, normalizeClass as V, unref as ae, createVNode as L, normalizeProps as Fs, guardReactiveProps as yi, ref as W, useTemplateRef as be, createElementVNode as E, createCommentVNode as k, renderSlot as T, createBlock as M, toDisplayString as D, reactive as Me, mergeProps as ee, toRaw as ne, createApp as wi, nextTick as cs, computed as q, onMounted as Mt, onUnmounted as fs, Fragment as X, h as vt, isVNode as qs, cloneVNode as ki, watchEffect as rt, useAttrs as Ci, mergeModels as At, useModel as Lt, resolveDirective as Ei, renderList as le, withDirectives as Le, onBeforeUnmount as Si, withCtx as Ie, withKeys as de, withModifiers as z, vShow as We, Transition as ys, normalizeStyle as dt, createTextVNode as Xe, vModelSelect as Oi, resolveDynamicComponent as $i } from "vue";
|
|
3
|
+
import { C as Ti } from "./DsgColoursConfig-BseFo6-R.js";
|
|
4
4
|
import { _ as _s } from "./DsgLabel.vue_vue_type_style_index_0_lang-BRVMqZ-w.js";
|
|
5
|
-
const
|
|
5
|
+
const Ai = /* @__PURE__ */ _({
|
|
6
6
|
__name: "DsgMiscIcon",
|
|
7
7
|
props: {
|
|
8
8
|
theme: { default: "brand" },
|
|
@@ -13,18 +13,18 @@ const Ti = /* @__PURE__ */ x({
|
|
|
13
13
|
},
|
|
14
14
|
setup(e) {
|
|
15
15
|
const t = ["dsg-misc-icon", `dsg-misc-icon--${e.theme}`, `dsg-misc-icon--${e.type}`, `dsg-misc-icon--${e.size}`, e.classes].join(" ").replace(/\s+/g, " ").trim();
|
|
16
|
-
return (s, o) => (c(),
|
|
17
|
-
class:
|
|
16
|
+
return (s, o) => (c(), v("div", {
|
|
17
|
+
class: V(ae(t))
|
|
18
18
|
}, [
|
|
19
|
-
|
|
19
|
+
L(G, Fs(yi(s.icon)), null, 16)
|
|
20
20
|
], 2));
|
|
21
21
|
}
|
|
22
|
-
}),
|
|
22
|
+
}), js = (e, t) => {
|
|
23
23
|
const s = e.__vccOpts || e;
|
|
24
24
|
for (const [o, i] of t)
|
|
25
25
|
s[o] = i;
|
|
26
26
|
return s;
|
|
27
|
-
}, Ve = /* @__PURE__ */
|
|
27
|
+
}, Ve = /* @__PURE__ */ js(Ai, [["__scopeId", "data-v-6f50208c"]]), Li = `<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
28
28
|
<g id="Size=4xl" clip-path="url(#clip0_3302_422487)">
|
|
29
29
|
<path id="Vector" d="M24.711 5.66721C25.0149 6.40224 25.5983 6.98649 26.3328 7.29151L28.9086 8.35843C29.6437 8.66292 30.2277 9.24694 30.5322 9.98202C30.8367 10.7171 30.8367 11.543 30.5322 12.2781L29.466 14.8521C29.1614 15.5875 29.161 16.4142 29.467 17.1493L30.5313 19.7224C30.6822 20.0865 30.76 20.4768 30.76 20.8709C30.7601 21.265 30.6825 21.6553 30.5317 22.0194C30.3808 22.3836 30.1597 22.7144 29.881 22.993C29.6023 23.2717 29.2714 23.4927 28.9072 23.6434L26.3333 24.7096C25.5982 25.0135 25.014 25.5968 24.709 26.3314L23.642 28.9072C23.3376 29.6423 22.7535 30.2263 22.0185 30.5308C21.2834 30.8353 20.4574 30.8353 19.7224 30.5308L17.1484 29.4646C16.4133 29.1609 15.5877 29.1615 14.853 29.4663L12.2773 30.5317C11.5426 30.8355 10.7174 30.8353 9.98289 30.531C9.2484 30.2268 8.6647 29.6435 8.36001 28.9092L7.29277 26.3326C6.98885 25.5976 6.40548 25.0133 5.67091 24.7083L3.09514 23.6414C2.36037 23.337 1.77652 22.7534 1.47193 22.0187C1.16734 21.2841 1.16692 20.4585 1.47078 19.7236L2.53694 17.1496C2.84067 16.4145 2.84005 15.5889 2.53521 14.8542L1.47059 12.2766C1.31964 11.9125 1.24192 11.5223 1.24186 11.1282C1.24179 10.734 1.31939 10.3438 1.47022 9.97962C1.62104 9.6155 1.84214 9.28466 2.12088 9.00601C2.39961 8.72737 2.73052 8.50638 3.09469 8.35567L5.66862 7.28951C6.40301 6.98586 6.98691 6.40322 7.29216 5.6695L8.35908 3.09372C8.66357 2.35864 9.24759 1.77461 9.98267 1.47013C10.7178 1.16565 11.5437 1.16565 12.2788 1.47013L14.8527 2.53629C15.5878 2.84002 16.4134 2.8394 17.1481 2.53456L19.7249 1.47178C20.4599 1.16747 21.2857 1.16754 22.0206 1.47196C22.7556 1.77638 23.3395 2.36023 23.644 3.09513L24.7113 5.67167L24.711 5.66721Z" fill="#0788F5"/>
|
|
30
30
|
<path id="Vector_2" fill-rule="evenodd" clip-rule="evenodd" d="M22.2665 11.8058C22.4803 11.4701 22.5519 11.0631 22.4656 10.6746C22.3794 10.286 22.1423 9.94759 21.8065 9.73383C21.4708 9.52006 21.0638 9.44843 20.6753 9.5347C20.2867 9.62097 19.9483 9.85806 19.7345 10.1938L13.8605 19.4238L11.1725 16.0638C10.924 15.753 10.5622 15.5536 10.1667 15.5095C9.77118 15.4655 9.37436 15.5803 9.06352 15.8288C8.75269 16.0773 8.55331 16.4391 8.50923 16.8347C8.46516 17.2302 8.58001 17.627 8.82852 17.9378L12.8285 22.9378C12.9776 23.1244 13.1691 23.2727 13.387 23.3703C13.6049 23.468 13.843 23.5122 14.0815 23.4993C14.32 23.4864 14.5519 23.4167 14.758 23.2961C14.9641 23.1755 15.1385 23.0074 15.2665 22.8058L22.2665 11.8058Z" fill="white"/>
|
|
@@ -35,23 +35,23 @@ const Ti = /* @__PURE__ */ x({
|
|
|
35
35
|
</clipPath>
|
|
36
36
|
</defs>
|
|
37
37
|
</svg>
|
|
38
|
-
`,
|
|
38
|
+
`, Bi = ["href", "title"], Ii = {
|
|
39
39
|
class: "dsg-avatar--image-wrapper",
|
|
40
40
|
tabindex: "0",
|
|
41
41
|
ref: "avatarImageWrapperEl"
|
|
42
|
-
},
|
|
42
|
+
}, Di = ["src", "alt"], Mi = {
|
|
43
43
|
key: 1,
|
|
44
44
|
class: "dsg-avatar--initials"
|
|
45
|
-
}, Pi = { class: "dsg-avatar--status" },
|
|
45
|
+
}, Pi = { class: "dsg-avatar--status" }, Ni = {
|
|
46
46
|
key: 0,
|
|
47
47
|
class: "dsg-avatar--activity"
|
|
48
|
-
},
|
|
48
|
+
}, Vi = ["innerHTML"], Ri = {
|
|
49
49
|
key: 2,
|
|
50
50
|
class: "dsg-avatar--logo"
|
|
51
|
-
},
|
|
51
|
+
}, Ui = ["src", "alt"], Hi = {
|
|
52
52
|
key: 0,
|
|
53
53
|
class: "dsg-avatar--info"
|
|
54
|
-
},
|
|
54
|
+
}, zi = { class: "dsg-avatar--title" }, xi = { class: "dsg-avatar--subtext" }, ft = /* @__PURE__ */ _({
|
|
55
55
|
__name: "DsgAvatar",
|
|
56
56
|
props: {
|
|
57
57
|
profileUri: { default: "" },
|
|
@@ -82,80 +82,80 @@ const Ti = /* @__PURE__ */ x({
|
|
|
82
82
|
`dsg-avatar--${["profile-photo", "profile-photo-verified"].indexOf(e.theme) !== -1 ? "profile-photo" : "non-profile-photo"}`,
|
|
83
83
|
e.classes
|
|
84
84
|
].join(" ");
|
|
85
|
-
["profile-photo", "profile-photo-verified"].indexOf(e.theme) !== -1 && (["sm", "md", "lg"].indexOf(e.size) === -1 && new
|
|
85
|
+
["profile-photo", "profile-photo-verified"].indexOf(e.theme) !== -1 && (["sm", "md", "lg"].indexOf(e.size) === -1 && new fe("DsgAvatar: The 'profile-photo' theme only supports the 'sm', 'md', and 'lg' sizes."), (e.fullName || e.title || e.subText) && new fi("DsgAvatar: The 'profile-photo' theme will not display the 'title' or 'subText' props.")), e.theme === "logo" && !e.companyLogoUri && new fe("DsgAvatar: The 'logo' theme requires a 'companyLogoUri' prop."), ["activity", "verified", "logo"].indexOf(e.theme) !== -1 && e.title?.length && e.subText?.length && ["xs", "sm", "md", "lg", "xl", "2xl"].indexOf(e.size) === -1 && new fe(
|
|
86
86
|
"DsgAvatar: The 'activity', 'verified', and 'logo' themes only support the 'xs', 'sm', 'md', 'lg', and 'xl' sizes when 'title' and 'subText' are provided."
|
|
87
|
-
), e.theme === "tile" && !e.title?.length && !e.fullName && new
|
|
88
|
-
const i = (
|
|
89
|
-
const m =
|
|
87
|
+
), e.theme === "tile" && !e.title?.length && !e.fullName && new fe("DsgAvatar: The 'tile' theme requires either 'title' or 'fullName' prop."), e.size === "xxs" && (e.title?.length || e.subText?.length) && new fe("DsgAvatar: The 'xxs' size does not support the 'title' or 'subText' props.");
|
|
88
|
+
const i = (b) => {
|
|
89
|
+
const m = b.split(" ");
|
|
90
90
|
return (m[0].charAt(0) + m[m.length - 1].charAt(0)).toUpperCase();
|
|
91
|
-
}, n = () => e.fullName ? "Avatar of " + e.fullName : "Avatar", a = s, l =
|
|
92
|
-
a("before-change-status", l.value,
|
|
93
|
-
},
|
|
94
|
-
e.preventDefault || (a("avatar-clicked",
|
|
91
|
+
}, n = () => e.fullName ? "Avatar of " + e.fullName : "Avatar", a = s, l = W(!1), r = (b) => {
|
|
92
|
+
a("before-change-status", l.value, b), l.value = b, a("after-change-status", l.value);
|
|
93
|
+
}, y = be("avatarImageWrapperEl"), g = (b) => {
|
|
94
|
+
e.preventDefault || (a("avatar-clicked", b), y.value && !e.uri && y.value.focus());
|
|
95
95
|
};
|
|
96
96
|
return t({
|
|
97
97
|
setUserActiveStatus: r,
|
|
98
|
-
toggleFocus: (
|
|
99
|
-
|
|
98
|
+
toggleFocus: (b) => {
|
|
99
|
+
y.value && (b ? y.value.focus() : y.value.blur());
|
|
100
100
|
}
|
|
101
|
-
}), (
|
|
102
|
-
class:
|
|
101
|
+
}), (b, m) => (c(), v("div", {
|
|
102
|
+
class: V(ae(o))
|
|
103
103
|
}, [
|
|
104
|
-
|
|
104
|
+
E("a", {
|
|
105
105
|
class: "dsg-avatar--link",
|
|
106
|
-
href:
|
|
106
|
+
href: b.uri,
|
|
107
107
|
title: n(),
|
|
108
108
|
target: "_blank",
|
|
109
109
|
ref: "avatarLink",
|
|
110
|
-
onClick:
|
|
110
|
+
onClick: g
|
|
111
111
|
}, [
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
112
|
+
E("div", Ii, [
|
|
113
|
+
T(b.$slots, "dsg-avatar--background", {}, () => [
|
|
114
|
+
b.profileUri ? (c(), v("img", {
|
|
115
115
|
key: 0,
|
|
116
116
|
class: "dsg-avatar--profile-image",
|
|
117
|
-
src:
|
|
117
|
+
src: b.profileUri,
|
|
118
118
|
alt: n()
|
|
119
|
-
}, null, 8,
|
|
120
|
-
!
|
|
121
|
-
!
|
|
119
|
+
}, null, 8, Di)) : k("", !0),
|
|
120
|
+
!b.profileUri && b.fullName ? (c(), v("span", Mi, D(i(b.fullName)), 1)) : k("", !0),
|
|
121
|
+
!b.profileUri && !b.fullName ? (c(), M(G, {
|
|
122
122
|
key: 2,
|
|
123
123
|
class: "dsg-avatar--user-icon",
|
|
124
124
|
icon: "user-01",
|
|
125
|
-
color:
|
|
126
|
-
size:
|
|
125
|
+
color: ae(Ti).gray[600],
|
|
126
|
+
size: b.size
|
|
127
127
|
}, null, 8, ["color", "size"])) : k("", !0)
|
|
128
128
|
]),
|
|
129
|
-
["tile"].indexOf(
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
["verified", "profile-photo-verified"].indexOf(
|
|
129
|
+
["tile"].indexOf(b.theme) === -1 ? T(b.$slots, "dsg-avatar--status", { key: 0 }, () => [
|
|
130
|
+
E("div", Pi, [
|
|
131
|
+
b.theme === "activity" && b.isOnline ? (c(), v("span", Ni)) : k("", !0),
|
|
132
|
+
["verified", "profile-photo-verified"].indexOf(b.theme) !== -1 ? (c(), v("span", {
|
|
133
133
|
key: 1,
|
|
134
134
|
class: "dsg-avatar--verified",
|
|
135
|
-
innerHTML:
|
|
136
|
-
}, null, 8,
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
src:
|
|
135
|
+
innerHTML: ae(Li)
|
|
136
|
+
}, null, 8, Vi)) : k("", !0),
|
|
137
|
+
b.theme === "logo" ? (c(), v("span", Ri, [
|
|
138
|
+
E("img", {
|
|
139
|
+
src: b.companyLogoUri,
|
|
140
140
|
alt: n(),
|
|
141
141
|
class: "dsg-avatar--company-logo"
|
|
142
|
-
}, null, 8,
|
|
142
|
+
}, null, 8, Ui)
|
|
143
143
|
])) : k("", !0)
|
|
144
144
|
])
|
|
145
145
|
]) : k("", !0)
|
|
146
146
|
], 512),
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
147
|
+
b.title?.length || b.theme === "tile" && (b.title?.length || b.fullName) ? (c(), v("div", Hi, [
|
|
148
|
+
b.title?.length || b.theme === "tile" && (b.title?.length || b.fullName) ? T(b.$slots, "dsg-avatar--title", { key: 0 }, () => [
|
|
149
|
+
E("h3", zi, D(b.title?.length ? b.title : b.fullName), 1)
|
|
150
150
|
]) : k("", !0),
|
|
151
|
-
|
|
152
|
-
|
|
151
|
+
b.subText?.length ? T(b.$slots, "dsg-avatar--subtext", { key: 1 }, () => [
|
|
152
|
+
E("p", xi, D(b.subText), 1)
|
|
153
153
|
]) : k("", !0)
|
|
154
154
|
])) : k("", !0)
|
|
155
|
-
], 8,
|
|
155
|
+
], 8, Bi)
|
|
156
156
|
], 2));
|
|
157
157
|
}
|
|
158
|
-
}),
|
|
158
|
+
}), bt = {
|
|
159
159
|
TOP_LEFT: "top-left",
|
|
160
160
|
TOP_RIGHT: "top-right",
|
|
161
161
|
TOP_CENTER: "top-center",
|
|
@@ -167,22 +167,22 @@ const Ti = /* @__PURE__ */ x({
|
|
|
167
167
|
DARK: "dark",
|
|
168
168
|
COLORED: "colored",
|
|
169
169
|
AUTO: "auto"
|
|
170
|
-
},
|
|
170
|
+
}, Y = {
|
|
171
171
|
INFO: "info",
|
|
172
172
|
SUCCESS: "success",
|
|
173
173
|
WARNING: "warning",
|
|
174
174
|
ERROR: "error",
|
|
175
175
|
DEFAULT: "default"
|
|
176
|
-
},
|
|
176
|
+
}, Fi = {
|
|
177
177
|
BOUNCE: "bounce",
|
|
178
178
|
SLIDE: "slide",
|
|
179
179
|
FLIP: "flip",
|
|
180
180
|
ZOOM: "zoom",
|
|
181
181
|
NONE: "none"
|
|
182
|
-
},
|
|
182
|
+
}, qi = {
|
|
183
183
|
dangerouslyHTMLString: !1,
|
|
184
184
|
multiple: !0,
|
|
185
|
-
position:
|
|
185
|
+
position: bt.TOP_RIGHT,
|
|
186
186
|
autoClose: 5e3,
|
|
187
187
|
transition: "bounce",
|
|
188
188
|
hideProgressBar: !1,
|
|
@@ -200,67 +200,67 @@ const Ti = /* @__PURE__ */ x({
|
|
|
200
200
|
rtl: !1,
|
|
201
201
|
newestOnTop: !1,
|
|
202
202
|
toastClassName: ""
|
|
203
|
-
},
|
|
204
|
-
...
|
|
203
|
+
}, Ks = {
|
|
204
|
+
...qi,
|
|
205
205
|
..._i
|
|
206
206
|
};
|
|
207
|
-
|
|
208
|
-
var
|
|
209
|
-
const
|
|
207
|
+
Y.DEFAULT;
|
|
208
|
+
var I = /* @__PURE__ */ ((e) => (e[e.COLLAPSE_DURATION = 300] = "COLLAPSE_DURATION", e[e.DEBOUNCE_DURATION = 50] = "DEBOUNCE_DURATION", e.CSS_NAMESPACE = "Toastify", e))(I || {}), ss = /* @__PURE__ */ ((e) => (e.ENTRANCE_ANIMATION_END = "d", e))(ss || {});
|
|
209
|
+
const ji = {
|
|
210
210
|
enter: "Toastify--animate Toastify__bounce-enter",
|
|
211
211
|
exit: "Toastify--animate Toastify__bounce-exit",
|
|
212
212
|
appendPosition: !0
|
|
213
|
-
},
|
|
213
|
+
}, Ki = {
|
|
214
214
|
enter: "Toastify--animate Toastify__slide-enter",
|
|
215
215
|
exit: "Toastify--animate Toastify__slide-exit",
|
|
216
216
|
appendPosition: !0
|
|
217
|
-
},
|
|
217
|
+
}, Gi = {
|
|
218
218
|
enter: "Toastify--animate Toastify__zoom-enter",
|
|
219
219
|
exit: "Toastify--animate Toastify__zoom-exit"
|
|
220
|
-
},
|
|
220
|
+
}, Wi = {
|
|
221
221
|
enter: "Toastify--animate Toastify__flip-enter",
|
|
222
222
|
exit: "Toastify--animate Toastify__flip-exit"
|
|
223
|
-
},
|
|
224
|
-
function
|
|
223
|
+
}, ws = "Toastify--animate Toastify__none-enter";
|
|
224
|
+
function Gs(e, t = !1) {
|
|
225
225
|
var s;
|
|
226
|
-
let o =
|
|
226
|
+
let o = ji;
|
|
227
227
|
if (!e || typeof e == "string")
|
|
228
228
|
switch (e) {
|
|
229
229
|
case "flip":
|
|
230
|
-
o =
|
|
230
|
+
o = Wi;
|
|
231
231
|
break;
|
|
232
232
|
case "zoom":
|
|
233
|
-
o =
|
|
233
|
+
o = Gi;
|
|
234
234
|
break;
|
|
235
235
|
case "slide":
|
|
236
|
-
o =
|
|
236
|
+
o = Ki;
|
|
237
237
|
break;
|
|
238
238
|
}
|
|
239
239
|
else
|
|
240
240
|
o = e;
|
|
241
241
|
if (t)
|
|
242
|
-
o.enter =
|
|
243
|
-
else if (o.enter ===
|
|
242
|
+
o.enter = ws;
|
|
243
|
+
else if (o.enter === ws) {
|
|
244
244
|
const i = (s = o.exit.split("__")[1]) == null ? void 0 : s.split("-")[0];
|
|
245
245
|
o.enter = `Toastify--animate Toastify__${i}-enter`;
|
|
246
246
|
}
|
|
247
247
|
return o;
|
|
248
248
|
}
|
|
249
|
-
function
|
|
249
|
+
function Xi(e) {
|
|
250
250
|
return e.containerId || String(e.position);
|
|
251
251
|
}
|
|
252
|
-
const
|
|
253
|
-
function
|
|
254
|
-
return !!document.querySelector(`.${
|
|
252
|
+
const Pt = "will-unmount";
|
|
253
|
+
function Yi(e = bt.TOP_RIGHT) {
|
|
254
|
+
return !!document.querySelector(`.${I.CSS_NAMESPACE}__toast-container--${e}`);
|
|
255
255
|
}
|
|
256
|
-
function
|
|
257
|
-
return `${
|
|
256
|
+
function Zi(e = bt.TOP_RIGHT) {
|
|
257
|
+
return `${I.CSS_NAMESPACE}__toast-container--${e}`;
|
|
258
258
|
}
|
|
259
|
-
function
|
|
259
|
+
function Ji(e, t, s = !1) {
|
|
260
260
|
const o = [
|
|
261
|
-
`${
|
|
262
|
-
`${
|
|
263
|
-
s ? `${
|
|
261
|
+
`${I.CSS_NAMESPACE}__toast-container`,
|
|
262
|
+
`${I.CSS_NAMESPACE}__toast-container--${e}`,
|
|
263
|
+
s ? `${I.CSS_NAMESPACE}__toast-container--rtl` : null
|
|
264
264
|
].filter(Boolean).join(" ");
|
|
265
265
|
return Ue(t) ? t({
|
|
266
266
|
position: e,
|
|
@@ -268,99 +268,99 @@ function Zi(e, t, s = !1) {
|
|
|
268
268
|
defaultClassName: o
|
|
269
269
|
}) : `${o} ${t || ""}`;
|
|
270
270
|
}
|
|
271
|
-
function
|
|
271
|
+
function Qi(e) {
|
|
272
272
|
var t;
|
|
273
|
-
const { position: s, containerClassName: o, rtl: i = !1, style: n = {} } = e, a =
|
|
274
|
-
|
|
273
|
+
const { position: s, containerClassName: o, rtl: i = !1, style: n = {} } = e, a = I.CSS_NAMESPACE, l = Zi(s), r = document.querySelector(`.${a}`), y = document.querySelector(`.${l}`), g = !!y && !((t = y.className) != null && t.includes(Pt)), C = r || document.createElement("div"), b = document.createElement("div");
|
|
274
|
+
b.className = Ji(
|
|
275
275
|
s,
|
|
276
276
|
o,
|
|
277
277
|
i
|
|
278
|
-
),
|
|
278
|
+
), b.dataset.testid = `${I.CSS_NAMESPACE}__toast-container--${s}`, b.id = Xi(e);
|
|
279
279
|
for (const m in n)
|
|
280
280
|
if (Object.prototype.hasOwnProperty.call(n, m)) {
|
|
281
|
-
const
|
|
282
|
-
|
|
281
|
+
const B = n[m];
|
|
282
|
+
b.style[m] = B;
|
|
283
283
|
}
|
|
284
|
-
return r || (C.className =
|
|
284
|
+
return r || (C.className = I.CSS_NAMESPACE, document.body.appendChild(C)), g || C.appendChild(b), b;
|
|
285
285
|
}
|
|
286
286
|
function is(e) {
|
|
287
287
|
var t, s, o;
|
|
288
288
|
const i = typeof e == "string" ? e : ((t = e.currentTarget) == null ? void 0 : t.id) || ((s = e.target) == null ? void 0 : s.id), n = document.getElementById(i);
|
|
289
289
|
n && n.removeEventListener("animationend", is, !1);
|
|
290
290
|
try {
|
|
291
|
-
|
|
291
|
+
ht[i].unmount(), (o = document.getElementById(i)) == null || o.remove(), delete ht[i], delete j[i];
|
|
292
292
|
} catch {
|
|
293
293
|
}
|
|
294
294
|
}
|
|
295
|
-
const
|
|
296
|
-
function
|
|
295
|
+
const ht = Me({});
|
|
296
|
+
function eo(e, t) {
|
|
297
297
|
const s = document.getElementById(String(t));
|
|
298
|
-
s && (
|
|
298
|
+
s && (ht[s.id] = e);
|
|
299
299
|
}
|
|
300
300
|
function os(e, t = !0) {
|
|
301
301
|
const s = String(e);
|
|
302
|
-
if (!
|
|
302
|
+
if (!ht[s]) return;
|
|
303
303
|
const o = document.getElementById(s);
|
|
304
|
-
o && o.classList.add(
|
|
304
|
+
o && o.classList.add(Pt), t ? (so(e), o && o.addEventListener("animationend", is, !1)) : is(s), pe.items = pe.items.filter((i) => i.containerId !== e);
|
|
305
305
|
}
|
|
306
|
-
function
|
|
307
|
-
for (const t in
|
|
306
|
+
function to(e) {
|
|
307
|
+
for (const t in ht)
|
|
308
308
|
os(t, e);
|
|
309
|
-
|
|
309
|
+
pe.items = [];
|
|
310
310
|
}
|
|
311
|
-
function
|
|
311
|
+
function Ws(e, t) {
|
|
312
312
|
const s = document.getElementById(e.toastId);
|
|
313
313
|
if (s) {
|
|
314
314
|
let o = e;
|
|
315
315
|
o = {
|
|
316
316
|
...o,
|
|
317
|
-
...
|
|
317
|
+
...Gs(o.transition)
|
|
318
318
|
};
|
|
319
319
|
const i = o.appendPosition ? `${o.exit}--${o.position}` : o.exit;
|
|
320
320
|
s.className += ` ${i}`, t && t(s);
|
|
321
321
|
}
|
|
322
322
|
}
|
|
323
|
-
function
|
|
324
|
-
for (const t in
|
|
323
|
+
function so(e) {
|
|
324
|
+
for (const t in j)
|
|
325
325
|
if (t === e)
|
|
326
|
-
for (const s of
|
|
327
|
-
|
|
326
|
+
for (const s of j[t] || [])
|
|
327
|
+
Ws(s);
|
|
328
328
|
}
|
|
329
|
-
function
|
|
329
|
+
function io(e) {
|
|
330
330
|
const t = Fe().find((s) => s.toastId === e);
|
|
331
331
|
return t?.containerId;
|
|
332
332
|
}
|
|
333
333
|
function hs(e) {
|
|
334
334
|
return document.getElementById(e);
|
|
335
335
|
}
|
|
336
|
-
function
|
|
336
|
+
function oo(e) {
|
|
337
337
|
const t = hs(e.containerId);
|
|
338
|
-
return t && t.classList.contains(
|
|
338
|
+
return t && t.classList.contains(Pt);
|
|
339
339
|
}
|
|
340
|
-
function
|
|
340
|
+
function ks(e) {
|
|
341
341
|
var t;
|
|
342
|
-
const s =
|
|
343
|
-
return s ??
|
|
342
|
+
const s = qs(e.content) ? ne(e.content.props) : null;
|
|
343
|
+
return s ?? ne((t = e.data) != null ? t : {});
|
|
344
344
|
}
|
|
345
|
-
function
|
|
346
|
-
return e ?
|
|
345
|
+
function no(e) {
|
|
346
|
+
return e ? pe.items.filter((t) => t.containerId === e).length > 0 : pe.items.length > 0;
|
|
347
347
|
}
|
|
348
|
-
function
|
|
349
|
-
if (
|
|
350
|
-
const e =
|
|
351
|
-
|
|
348
|
+
function ao() {
|
|
349
|
+
if (pe.items.length > 0) {
|
|
350
|
+
const e = pe.items.shift();
|
|
351
|
+
Et(e?.toastContent, e?.toastProps);
|
|
352
352
|
}
|
|
353
353
|
}
|
|
354
|
-
const
|
|
354
|
+
const j = Me({}), pe = Me({ items: [] });
|
|
355
355
|
function Fe() {
|
|
356
|
-
const e =
|
|
356
|
+
const e = ne(j);
|
|
357
357
|
return Object.values(e).reduce((t, s) => [...t, ...s], []);
|
|
358
358
|
}
|
|
359
|
-
function
|
|
359
|
+
function lo(e) {
|
|
360
360
|
return Fe().find((t) => t.toastId === e);
|
|
361
361
|
}
|
|
362
|
-
function
|
|
363
|
-
if (
|
|
362
|
+
function Et(e, t = {}) {
|
|
363
|
+
if (oo(t)) {
|
|
364
364
|
const s = hs(t.containerId);
|
|
365
365
|
s && s.addEventListener("animationend", ns.bind(null, e, t), !1);
|
|
366
366
|
} else
|
|
@@ -369,16 +369,16 @@ function St(e, t = {}) {
|
|
|
369
369
|
function ns(e, t = {}) {
|
|
370
370
|
const s = hs(t.containerId);
|
|
371
371
|
s && s.removeEventListener("animationend", ns.bind(null, e, t), !1);
|
|
372
|
-
const o =
|
|
373
|
-
if (!i && !
|
|
374
|
-
const n =
|
|
375
|
-
t.useHandler && t.useHandler(a), a.mount(n),
|
|
372
|
+
const o = j[t.containerId] || [], i = o.length > 0;
|
|
373
|
+
if (!i && !Yi(t.position)) {
|
|
374
|
+
const n = Qi(t), a = wi(Ao, t);
|
|
375
|
+
t.useHandler && t.useHandler(a), a.mount(n), eo(a, n.id);
|
|
376
376
|
}
|
|
377
377
|
i && !t.updateId && (t.position = o[0].position), cs(() => {
|
|
378
|
-
t.updateId ?
|
|
378
|
+
t.updateId ? te.update(t) : te.add(e, t);
|
|
379
379
|
});
|
|
380
380
|
}
|
|
381
|
-
const
|
|
381
|
+
const te = {
|
|
382
382
|
/**
|
|
383
383
|
* add a toast
|
|
384
384
|
* @param _ ..
|
|
@@ -386,9 +386,9 @@ const J = {
|
|
|
386
386
|
*/
|
|
387
387
|
add(e, t) {
|
|
388
388
|
const { containerId: s = "" } = t;
|
|
389
|
-
s && (
|
|
389
|
+
s && (j[s] = j[s] || [], j[s].find((o) => o.toastId === t.toastId) || setTimeout(() => {
|
|
390
390
|
var o, i;
|
|
391
|
-
t.newestOnTop ? (o =
|
|
391
|
+
t.newestOnTop ? (o = j[s]) == null || o.unshift(t) : (i = j[s]) == null || i.push(t), t.onOpen && t.onOpen(ks(t));
|
|
392
392
|
}, t.delay || 0));
|
|
393
393
|
},
|
|
394
394
|
/**
|
|
@@ -397,12 +397,12 @@ const J = {
|
|
|
397
397
|
*/
|
|
398
398
|
remove(e) {
|
|
399
399
|
if (e) {
|
|
400
|
-
const t =
|
|
400
|
+
const t = io(e);
|
|
401
401
|
if (t) {
|
|
402
|
-
const s =
|
|
402
|
+
const s = j[t];
|
|
403
403
|
let o = s.find((i) => i.toastId === e);
|
|
404
|
-
|
|
405
|
-
o != null && o.onClose && (o.onClose(
|
|
404
|
+
j[t] = s.filter((i) => i.toastId !== e), !j[t].length && !no(t) && os(t, !1), ao(), cs(() => {
|
|
405
|
+
o != null && o.onClose && (o.onClose(ks(o)), o = void 0);
|
|
406
406
|
});
|
|
407
407
|
}
|
|
408
408
|
}
|
|
@@ -414,14 +414,14 @@ const J = {
|
|
|
414
414
|
update(e = {}) {
|
|
415
415
|
const { containerId: t = "" } = e;
|
|
416
416
|
if (t && e.updateId) {
|
|
417
|
-
|
|
418
|
-
const s =
|
|
417
|
+
j[t] = j[t] || [];
|
|
418
|
+
const s = j[t].find((n) => n.toastId === e.toastId), o = s?.position !== e.position || s?.transition !== e.transition, i = {
|
|
419
419
|
...e,
|
|
420
420
|
disabledEnterTransition: !o,
|
|
421
421
|
updateId: void 0
|
|
422
422
|
};
|
|
423
|
-
|
|
424
|
-
|
|
423
|
+
te.dismissForce(e?.toastId), setTimeout(() => {
|
|
424
|
+
R(i.content, i);
|
|
425
425
|
}, e.delay || 0);
|
|
426
426
|
}
|
|
427
427
|
},
|
|
@@ -430,13 +430,13 @@ const J = {
|
|
|
430
430
|
* @param containerId container id
|
|
431
431
|
*/
|
|
432
432
|
clear(e, t = !0) {
|
|
433
|
-
e ? os(e, t) :
|
|
433
|
+
e ? os(e, t) : to(t);
|
|
434
434
|
},
|
|
435
435
|
dismissCallback(e) {
|
|
436
436
|
var t;
|
|
437
437
|
const s = (t = e.currentTarget) == null ? void 0 : t.id, o = document.getElementById(s);
|
|
438
|
-
o && (o.removeEventListener("animationend",
|
|
439
|
-
|
|
438
|
+
o && (o.removeEventListener("animationend", te.dismissCallback, !1), setTimeout(() => {
|
|
439
|
+
te.remove(s);
|
|
440
440
|
}));
|
|
441
441
|
},
|
|
442
442
|
dismiss(e) {
|
|
@@ -444,8 +444,8 @@ const J = {
|
|
|
444
444
|
const t = Fe();
|
|
445
445
|
for (const s of t)
|
|
446
446
|
if (s.toastId === e) {
|
|
447
|
-
|
|
448
|
-
o.addEventListener("animationend",
|
|
447
|
+
Ws(s, (o) => {
|
|
448
|
+
o.addEventListener("animationend", te.dismissCallback, !1);
|
|
449
449
|
});
|
|
450
450
|
break;
|
|
451
451
|
}
|
|
@@ -457,16 +457,16 @@ const J = {
|
|
|
457
457
|
for (const s of t)
|
|
458
458
|
if (s.toastId === e) {
|
|
459
459
|
const o = document.getElementById(e);
|
|
460
|
-
o && (o.remove(), o.removeEventListener("animationend",
|
|
460
|
+
o && (o.remove(), o.removeEventListener("animationend", te.dismissCallback, !1), te.remove(e));
|
|
461
461
|
break;
|
|
462
462
|
}
|
|
463
463
|
}
|
|
464
464
|
}
|
|
465
|
-
},
|
|
466
|
-
function
|
|
465
|
+
}, ro = Me({ useHandler: void 0 }), Xs = Me({}), Bt = Me({});
|
|
466
|
+
function Ys() {
|
|
467
467
|
return Math.random().toString(36).substring(2, 9);
|
|
468
468
|
}
|
|
469
|
-
function
|
|
469
|
+
function uo(e) {
|
|
470
470
|
return typeof e == "number" && !isNaN(e);
|
|
471
471
|
}
|
|
472
472
|
function as(e) {
|
|
@@ -476,23 +476,23 @@ function Ue(e) {
|
|
|
476
476
|
return typeof e == "function";
|
|
477
477
|
}
|
|
478
478
|
function Nt(...e) {
|
|
479
|
-
return
|
|
479
|
+
return ee(...e);
|
|
480
480
|
}
|
|
481
|
-
function
|
|
481
|
+
function St(e) {
|
|
482
482
|
return typeof e == "object" && (!!(e != null && e.render) || !!(e != null && e.setup) || typeof e?.type == "object");
|
|
483
483
|
}
|
|
484
|
-
function
|
|
485
|
-
|
|
486
|
-
}
|
|
487
|
-
function co() {
|
|
488
|
-
return Ws[`${B.CSS_NAMESPACE}-default-options`] || js;
|
|
484
|
+
function co(e = {}) {
|
|
485
|
+
Xs[`${I.CSS_NAMESPACE}-default-options`] = e;
|
|
489
486
|
}
|
|
490
487
|
function fo() {
|
|
488
|
+
return Xs[`${I.CSS_NAMESPACE}-default-options`] || Ks;
|
|
489
|
+
}
|
|
490
|
+
function ho() {
|
|
491
491
|
const e = window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches;
|
|
492
492
|
return document.documentElement.classList.contains("dark") || e ? "dark" : "light";
|
|
493
493
|
}
|
|
494
494
|
var Ot = /* @__PURE__ */ ((e) => (e[e.Enter = 0] = "Enter", e[e.Exit = 1] = "Exit", e))(Ot || {});
|
|
495
|
-
const
|
|
495
|
+
const Zs = {
|
|
496
496
|
containerId: {
|
|
497
497
|
type: [String, Number],
|
|
498
498
|
required: !1,
|
|
@@ -526,7 +526,7 @@ const Ys = {
|
|
|
526
526
|
position: {
|
|
527
527
|
type: String,
|
|
528
528
|
required: !1,
|
|
529
|
-
default:
|
|
529
|
+
default: bt.TOP_LEFT
|
|
530
530
|
},
|
|
531
531
|
bodyClassName: {
|
|
532
532
|
type: String,
|
|
@@ -622,7 +622,7 @@ const Ys = {
|
|
|
622
622
|
type: {
|
|
623
623
|
type: String,
|
|
624
624
|
required: !1,
|
|
625
|
-
default:
|
|
625
|
+
default: Y.DEFAULT
|
|
626
626
|
},
|
|
627
627
|
icon: {
|
|
628
628
|
type: [Boolean, String, Number, Object, Function],
|
|
@@ -679,7 +679,7 @@ const Ys = {
|
|
|
679
679
|
required: !1,
|
|
680
680
|
default: !1
|
|
681
681
|
}
|
|
682
|
-
},
|
|
682
|
+
}, po = {
|
|
683
683
|
autoClose: {
|
|
684
684
|
type: [Number, Boolean],
|
|
685
685
|
required: !0
|
|
@@ -692,7 +692,7 @@ const Ys = {
|
|
|
692
692
|
type: {
|
|
693
693
|
type: String,
|
|
694
694
|
required: !1,
|
|
695
|
-
default:
|
|
695
|
+
default: Y.DEFAULT
|
|
696
696
|
},
|
|
697
697
|
theme: {
|
|
698
698
|
type: String,
|
|
@@ -734,27 +734,27 @@ const Ys = {
|
|
|
734
734
|
required: !1,
|
|
735
735
|
default: void 0
|
|
736
736
|
}
|
|
737
|
-
},
|
|
737
|
+
}, go = /* @__PURE__ */ _({
|
|
738
738
|
name: "ProgressBar",
|
|
739
|
-
props:
|
|
739
|
+
props: po,
|
|
740
740
|
// @ts-ignore
|
|
741
741
|
setup(e, {
|
|
742
742
|
attrs: t
|
|
743
743
|
}) {
|
|
744
|
-
const s =
|
|
744
|
+
const s = W(), o = q(() => e.hide ? "true" : "false"), i = q(() => ({
|
|
745
745
|
...t.style || {},
|
|
746
746
|
animationDuration: `${e.autoClose === !0 ? 5e3 : e.autoClose}ms`,
|
|
747
747
|
animationPlayState: e.isRunning ? "running" : "paused",
|
|
748
748
|
opacity: e.hide || e.autoClose === !1 ? 0 : 1,
|
|
749
749
|
transform: e.controlledProgress ? `scaleX(${e.progress})` : "none"
|
|
750
|
-
})), n = q(() => [`${
|
|
750
|
+
})), n = q(() => [`${I.CSS_NAMESPACE}__progress-bar`, e.controlledProgress ? `${I.CSS_NAMESPACE}__progress-bar--controlled` : `${I.CSS_NAMESPACE}__progress-bar--animated`, `${I.CSS_NAMESPACE}__progress-bar-theme--${e.theme}`, `${I.CSS_NAMESPACE}__progress-bar--${e.type}`, e.rtl ? `${I.CSS_NAMESPACE}__progress-bar--rtl` : null].filter(Boolean).join(" ")), a = q(() => `${n.value} ${t?.class || ""}`), l = () => {
|
|
751
751
|
s.value && (s.value.onanimationend = null, s.value.ontransitionend = null);
|
|
752
752
|
}, r = () => {
|
|
753
753
|
e.isIn && e.closeToast && e.autoClose !== !1 && (e.closeToast(), l());
|
|
754
|
-
},
|
|
755
|
-
return
|
|
756
|
-
s.value && (l(), s.value.onanimationend =
|
|
757
|
-
}), () =>
|
|
754
|
+
}, y = q(() => e.controlledProgress ? null : r), g = q(() => e.controlledProgress ? r : null);
|
|
755
|
+
return rt(() => {
|
|
756
|
+
s.value && (l(), s.value.onanimationend = y.value, s.value.ontransitionend = g.value);
|
|
757
|
+
}), () => L("div", {
|
|
758
758
|
ref: s,
|
|
759
759
|
role: "progressbar",
|
|
760
760
|
"aria-hidden": o.value,
|
|
@@ -763,7 +763,7 @@ const Ys = {
|
|
|
763
763
|
style: i.value
|
|
764
764
|
}, null);
|
|
765
765
|
}
|
|
766
|
-
}),
|
|
766
|
+
}), mo = /* @__PURE__ */ _({
|
|
767
767
|
name: "CloseButton",
|
|
768
768
|
inheritAttrs: !1,
|
|
769
769
|
props: {
|
|
@@ -789,17 +789,17 @@ const Ys = {
|
|
|
789
789
|
}
|
|
790
790
|
},
|
|
791
791
|
setup(e) {
|
|
792
|
-
return () =>
|
|
793
|
-
class: `${
|
|
792
|
+
return () => L("button", {
|
|
793
|
+
class: `${I.CSS_NAMESPACE}__close-button ${I.CSS_NAMESPACE}__close-button--${e.theme}`,
|
|
794
794
|
type: "button",
|
|
795
795
|
onClick: (t) => {
|
|
796
796
|
t.stopPropagation(), e.closeToast && e.closeToast(t);
|
|
797
797
|
},
|
|
798
798
|
"aria-label": e.ariaLabel
|
|
799
|
-
}, [
|
|
799
|
+
}, [L("svg", {
|
|
800
800
|
"aria-hidden": "true",
|
|
801
801
|
viewBox: "0 0 14 16"
|
|
802
|
-
}, [
|
|
802
|
+
}, [L("path", {
|
|
803
803
|
"fill-rule": "evenodd",
|
|
804
804
|
d: "M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"
|
|
805
805
|
}, null)])]);
|
|
@@ -809,47 +809,47 @@ const Ys = {
|
|
|
809
809
|
type: t,
|
|
810
810
|
path: s,
|
|
811
811
|
...o
|
|
812
|
-
}) =>
|
|
812
|
+
}) => L("svg", ee({
|
|
813
813
|
viewBox: "0 0 24 24",
|
|
814
814
|
width: "100%",
|
|
815
815
|
height: "100%",
|
|
816
816
|
fill: e === "colored" ? "currentColor" : `var(--toastify-icon-color-${t})`
|
|
817
|
-
}, o), [
|
|
817
|
+
}, o), [L("path", {
|
|
818
818
|
d: s
|
|
819
819
|
}, null)]);
|
|
820
|
-
function
|
|
821
|
-
return
|
|
820
|
+
function bo(e) {
|
|
821
|
+
return L(Vt, ee(e, {
|
|
822
822
|
path: "M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"
|
|
823
823
|
}), null);
|
|
824
824
|
}
|
|
825
|
-
function
|
|
826
|
-
return
|
|
825
|
+
function vo(e) {
|
|
826
|
+
return L(Vt, ee(e, {
|
|
827
827
|
path: "M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"
|
|
828
828
|
}), null);
|
|
829
829
|
}
|
|
830
|
-
function
|
|
831
|
-
return
|
|
830
|
+
function yo(e) {
|
|
831
|
+
return L(Vt, ee(e, {
|
|
832
832
|
path: "M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"
|
|
833
833
|
}), null);
|
|
834
834
|
}
|
|
835
|
-
function
|
|
836
|
-
return
|
|
835
|
+
function wo(e) {
|
|
836
|
+
return L(Vt, ee(e, {
|
|
837
837
|
path: "M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"
|
|
838
838
|
}), null);
|
|
839
839
|
}
|
|
840
|
-
function
|
|
841
|
-
return
|
|
842
|
-
class: `${
|
|
840
|
+
function ko() {
|
|
841
|
+
return L("div", {
|
|
842
|
+
class: `${I.CSS_NAMESPACE}__spinner`
|
|
843
843
|
}, null);
|
|
844
844
|
}
|
|
845
845
|
const $t = {
|
|
846
|
-
info:
|
|
847
|
-
warning:
|
|
848
|
-
success:
|
|
849
|
-
error:
|
|
850
|
-
spinner:
|
|
851
|
-
},
|
|
852
|
-
function
|
|
846
|
+
info: vo,
|
|
847
|
+
warning: bo,
|
|
848
|
+
success: yo,
|
|
849
|
+
error: wo,
|
|
850
|
+
spinner: ko
|
|
851
|
+
}, Co = (e) => e in $t;
|
|
852
|
+
function Eo({
|
|
853
853
|
theme: e,
|
|
854
854
|
type: t,
|
|
855
855
|
isLoading: s,
|
|
@@ -862,18 +862,18 @@ function Co({
|
|
|
862
862
|
};
|
|
863
863
|
if (n && (o === void 0 || typeof o == "boolean")) return $t.spinner();
|
|
864
864
|
if (o !== !1) {
|
|
865
|
-
if (
|
|
866
|
-
i =
|
|
865
|
+
if (St(o))
|
|
866
|
+
i = ne(o);
|
|
867
867
|
else if (Ue(o)) {
|
|
868
868
|
const l = o;
|
|
869
869
|
a.type = n ? "loading" : t, i = l(a), i = !i && n ? $t.spinner() : i;
|
|
870
|
-
} else
|
|
870
|
+
} else qs(o) ? i = ki(o, a) : as(o) || uo(o) ? i = o : Co(t) && (i = $t[t](a));
|
|
871
871
|
return i;
|
|
872
872
|
}
|
|
873
873
|
}
|
|
874
874
|
const So = () => {
|
|
875
875
|
};
|
|
876
|
-
function
|
|
876
|
+
function Oo(e, t, s = I.COLLAPSE_DURATION) {
|
|
877
877
|
const { scrollHeight: o, style: i } = e, n = s;
|
|
878
878
|
requestAnimationFrame(() => {
|
|
879
879
|
i.minHeight = "initial", i.height = o + "px", i.transition = `all ${n}ms`, requestAnimationFrame(() => {
|
|
@@ -881,138 +881,138 @@ function Eo(e, t, s = B.COLLAPSE_DURATION) {
|
|
|
881
881
|
});
|
|
882
882
|
});
|
|
883
883
|
}
|
|
884
|
-
function
|
|
885
|
-
const t =
|
|
884
|
+
function $o(e) {
|
|
885
|
+
const t = W(!1), s = W(!1), o = W(!1), i = W(Ot.Enter), n = Me({
|
|
886
886
|
...e,
|
|
887
887
|
appendPosition: e.appendPosition || !1,
|
|
888
888
|
collapse: typeof e.collapse > "u" ? !0 : e.collapse,
|
|
889
|
-
collapseDuration: e.collapseDuration ||
|
|
890
|
-
}), a = n.done || So, l = q(() => n.appendPosition ? `${n.enter}--${n.position}` : n.enter), r = q(() => n.appendPosition ? `${n.exit}--${n.position}` : n.exit),
|
|
891
|
-
onMouseenter:
|
|
892
|
-
onMouseleave:
|
|
889
|
+
collapseDuration: e.collapseDuration || I.COLLAPSE_DURATION
|
|
890
|
+
}), a = n.done || So, l = q(() => n.appendPosition ? `${n.enter}--${n.position}` : n.enter), r = q(() => n.appendPosition ? `${n.exit}--${n.position}` : n.exit), y = q(() => e.pauseOnHover ? {
|
|
891
|
+
onMouseenter: F,
|
|
892
|
+
onMouseleave: S
|
|
893
893
|
} : {});
|
|
894
|
-
function
|
|
895
|
-
const
|
|
896
|
-
|
|
894
|
+
function g() {
|
|
895
|
+
const w = l.value.split(" ");
|
|
896
|
+
b().addEventListener(
|
|
897
897
|
ss.ENTRANCE_ANIMATION_END,
|
|
898
|
-
|
|
898
|
+
S,
|
|
899
899
|
{ once: !0 }
|
|
900
900
|
);
|
|
901
|
-
const
|
|
902
|
-
const Te =
|
|
903
|
-
|
|
904
|
-
},
|
|
905
|
-
const
|
|
906
|
-
|
|
901
|
+
const $ = (N) => {
|
|
902
|
+
const Te = b();
|
|
903
|
+
N.target === Te && (Te.dispatchEvent(new Event(ss.ENTRANCE_ANIMATION_END)), Te.removeEventListener("animationend", $), Te.removeEventListener("animationcancel", $), i.value === Ot.Enter && N.type !== "animationcancel" && Te.classList.remove(...w));
|
|
904
|
+
}, A = () => {
|
|
905
|
+
const N = b();
|
|
906
|
+
N.classList.add(...w), N.addEventListener("animationend", $), N.addEventListener("animationcancel", $);
|
|
907
907
|
};
|
|
908
|
-
e.pauseOnFocusLoss && m(),
|
|
908
|
+
e.pauseOnFocusLoss && m(), A();
|
|
909
909
|
}
|
|
910
910
|
function C() {
|
|
911
|
-
if (!
|
|
912
|
-
const
|
|
913
|
-
const
|
|
914
|
-
|
|
915
|
-
},
|
|
916
|
-
const
|
|
917
|
-
i.value = Ot.Exit,
|
|
911
|
+
if (!b()) return;
|
|
912
|
+
const w = () => {
|
|
913
|
+
const A = b();
|
|
914
|
+
A.removeEventListener("animationend", w), n.collapse ? Oo(A, a, n.collapseDuration) : a();
|
|
915
|
+
}, $ = () => {
|
|
916
|
+
const A = b();
|
|
917
|
+
i.value = Ot.Exit, A && (A.className += ` ${r.value}`, A.addEventListener("animationend", w));
|
|
918
918
|
};
|
|
919
|
-
s.value || (o.value ?
|
|
919
|
+
s.value || (o.value ? w() : setTimeout($));
|
|
920
920
|
}
|
|
921
|
-
function
|
|
921
|
+
function b() {
|
|
922
922
|
return e.toastRef.value;
|
|
923
923
|
}
|
|
924
924
|
function m() {
|
|
925
|
-
document.hasFocus() ||
|
|
925
|
+
document.hasFocus() || F(), window.addEventListener("focus", S), window.addEventListener("blur", F);
|
|
926
926
|
}
|
|
927
|
-
function
|
|
928
|
-
window.removeEventListener("focus",
|
|
927
|
+
function B() {
|
|
928
|
+
window.removeEventListener("focus", S), window.removeEventListener("blur", F);
|
|
929
929
|
}
|
|
930
|
-
function
|
|
930
|
+
function S() {
|
|
931
931
|
(!e.loading.value || e.isLoading === void 0) && (t.value = !0);
|
|
932
932
|
}
|
|
933
|
-
function
|
|
933
|
+
function F() {
|
|
934
934
|
t.value = !1;
|
|
935
935
|
}
|
|
936
|
-
function
|
|
937
|
-
|
|
936
|
+
function se(w) {
|
|
937
|
+
w && (w.stopPropagation(), w.preventDefault()), s.value = !1;
|
|
938
938
|
}
|
|
939
|
-
return
|
|
940
|
-
const
|
|
941
|
-
s.value =
|
|
942
|
-
}),
|
|
943
|
-
e.isLoading !== void 0 && (e.loading.value ?
|
|
944
|
-
}),
|
|
945
|
-
e.pauseOnFocusLoss &&
|
|
939
|
+
return rt(C), rt(() => {
|
|
940
|
+
const w = Fe();
|
|
941
|
+
s.value = w.findIndex(($) => $.toastId === n.toastId) > -1;
|
|
942
|
+
}), rt(() => {
|
|
943
|
+
e.isLoading !== void 0 && (e.loading.value ? F() : S());
|
|
944
|
+
}), Mt(g), fs(() => {
|
|
945
|
+
e.pauseOnFocusLoss && B();
|
|
946
946
|
}), {
|
|
947
947
|
isIn: s,
|
|
948
948
|
isRunning: t,
|
|
949
|
-
hideToast:
|
|
950
|
-
eventHandlers:
|
|
949
|
+
hideToast: se,
|
|
950
|
+
eventHandlers: y
|
|
951
951
|
};
|
|
952
952
|
}
|
|
953
|
-
const
|
|
953
|
+
const To = /* @__PURE__ */ _({
|
|
954
954
|
name: "ToastItem",
|
|
955
955
|
inheritAttrs: !1,
|
|
956
|
-
props:
|
|
956
|
+
props: Zs,
|
|
957
957
|
// @ts-ignore
|
|
958
958
|
setup(e) {
|
|
959
|
-
const t =
|
|
959
|
+
const t = W(), s = q(() => !!e.isLoading), o = q(() => e.progress !== void 0 && e.progress !== null), i = q(() => Eo(e)), n = q(() => [`${I.CSS_NAMESPACE}__toast`, `${I.CSS_NAMESPACE}__toast-theme--${e.theme}`, `${I.CSS_NAMESPACE}__toast--${e.type}`, e.rtl ? `${I.CSS_NAMESPACE}__toast--rtl` : void 0, e.toastClassName || ""].filter(Boolean).join(" ")), {
|
|
960
960
|
isRunning: a,
|
|
961
961
|
isIn: l,
|
|
962
962
|
hideToast: r,
|
|
963
|
-
eventHandlers:
|
|
964
|
-
} =
|
|
963
|
+
eventHandlers: y
|
|
964
|
+
} = $o({
|
|
965
965
|
toastRef: t,
|
|
966
966
|
loading: s,
|
|
967
967
|
done: () => {
|
|
968
|
-
|
|
968
|
+
te.remove(e.toastId);
|
|
969
969
|
},
|
|
970
|
-
...
|
|
970
|
+
...Gs(e.transition, e.disabledEnterTransition),
|
|
971
971
|
...e
|
|
972
972
|
});
|
|
973
|
-
return () =>
|
|
973
|
+
return () => L("div", ee({
|
|
974
974
|
id: e.toastId,
|
|
975
975
|
class: n.value,
|
|
976
976
|
style: e.toastStyle || {},
|
|
977
977
|
ref: t,
|
|
978
978
|
"data-testid": `toast-item-${e.toastId}`,
|
|
979
|
-
onClick: (
|
|
980
|
-
e.closeOnClick && r(), e.onClick && e.onClick(
|
|
979
|
+
onClick: (g) => {
|
|
980
|
+
e.closeOnClick && r(), e.onClick && e.onClick(g);
|
|
981
981
|
}
|
|
982
|
-
},
|
|
982
|
+
}, y.value), [L("div", {
|
|
983
983
|
role: e.role,
|
|
984
984
|
"data-testid": "toast-body",
|
|
985
|
-
class: `${
|
|
986
|
-
}, [i.value != null &&
|
|
985
|
+
class: `${I.CSS_NAMESPACE}__toast-body ${e.bodyClassName || ""}`
|
|
986
|
+
}, [i.value != null && L("div", {
|
|
987
987
|
"data-testid": `toast-icon-${e.type}`,
|
|
988
|
-
class: [`${
|
|
989
|
-
}, [
|
|
988
|
+
class: [`${I.CSS_NAMESPACE}__toast-icon`, e.isLoading ? "" : `${I.CSS_NAMESPACE}--animate-icon ${I.CSS_NAMESPACE}__zoom-enter`].join(" ")
|
|
989
|
+
}, [St(i.value) ? vt(ne(i.value), {
|
|
990
990
|
theme: e.theme,
|
|
991
991
|
type: e.type
|
|
992
992
|
}) : Ue(i.value) ? i.value({
|
|
993
993
|
theme: e.theme,
|
|
994
994
|
type: e.type
|
|
995
|
-
}) : i.value]),
|
|
995
|
+
}) : i.value]), L("div", {
|
|
996
996
|
"data-testid": "toast-content"
|
|
997
|
-
}, [
|
|
998
|
-
toastProps:
|
|
997
|
+
}, [St(e.content) ? vt(ne(e.content), {
|
|
998
|
+
toastProps: ne(e),
|
|
999
999
|
closeToast: r,
|
|
1000
1000
|
data: e.data,
|
|
1001
1001
|
...e.expandCustomProps ? e.contentProps : {
|
|
1002
1002
|
contentProps: e.contentProps || {}
|
|
1003
1003
|
}
|
|
1004
1004
|
}) : Ue(e.content) ? e.content({
|
|
1005
|
-
toastProps:
|
|
1005
|
+
toastProps: ne(e),
|
|
1006
1006
|
closeToast: r,
|
|
1007
1007
|
data: e.data
|
|
1008
|
-
}) : e.dangerouslyHTMLString ?
|
|
1008
|
+
}) : e.dangerouslyHTMLString ? vt("div", {
|
|
1009
1009
|
innerHTML: e.content
|
|
1010
|
-
}) : e.content])]), (e.closeButton === void 0 || e.closeButton === !0) &&
|
|
1010
|
+
}) : e.content])]), (e.closeButton === void 0 || e.closeButton === !0) && L(mo, {
|
|
1011
1011
|
theme: e.theme,
|
|
1012
|
-
closeToast: (
|
|
1013
|
-
|
|
1012
|
+
closeToast: (g) => {
|
|
1013
|
+
g.stopPropagation(), g.preventDefault(), r();
|
|
1014
1014
|
}
|
|
1015
|
-
}, null),
|
|
1015
|
+
}, null), St(e.closeButton) ? vt(ne(e.closeButton), {
|
|
1016
1016
|
closeToast: r,
|
|
1017
1017
|
type: e.type,
|
|
1018
1018
|
theme: e.theme
|
|
@@ -1020,7 +1020,7 @@ const $o = /* @__PURE__ */ x({
|
|
|
1020
1020
|
closeToast: r,
|
|
1021
1021
|
type: e.type,
|
|
1022
1022
|
theme: e.theme
|
|
1023
|
-
}) : null,
|
|
1023
|
+
}) : null, L(go, {
|
|
1024
1024
|
className: e.progressClassName,
|
|
1025
1025
|
style: e.progressStyle,
|
|
1026
1026
|
rtl: e.rtl,
|
|
@@ -1036,52 +1036,52 @@ const $o = /* @__PURE__ */ x({
|
|
|
1036
1036
|
}, null)]);
|
|
1037
1037
|
}
|
|
1038
1038
|
});
|
|
1039
|
-
let
|
|
1040
|
-
function
|
|
1041
|
-
typeof window > "u" || (
|
|
1039
|
+
let ut = 0;
|
|
1040
|
+
function Js() {
|
|
1041
|
+
typeof window > "u" || (ut && window.cancelAnimationFrame(ut), ut = window.requestAnimationFrame(Js), Bt.lastUrl !== window.location.href && (Bt.lastUrl = window.location.href, te.clear()));
|
|
1042
1042
|
}
|
|
1043
|
-
const
|
|
1043
|
+
const Ao = /* @__PURE__ */ _({
|
|
1044
1044
|
name: "ToastifyContainer",
|
|
1045
1045
|
inheritAttrs: !1,
|
|
1046
|
-
props:
|
|
1046
|
+
props: Zs,
|
|
1047
1047
|
// @ts-ignore
|
|
1048
1048
|
setup(e) {
|
|
1049
|
-
const t = q(() => e.containerId), s = q(() =>
|
|
1050
|
-
return
|
|
1051
|
-
typeof window < "u" && e.clearOnUrlChange && window.requestAnimationFrame(
|
|
1049
|
+
const t = q(() => e.containerId), s = q(() => j[t.value] || []), o = q(() => s.value.filter((i) => i.position === e.position));
|
|
1050
|
+
return Mt(() => {
|
|
1051
|
+
typeof window < "u" && e.clearOnUrlChange && window.requestAnimationFrame(Js);
|
|
1052
1052
|
}), fs(() => {
|
|
1053
|
-
typeof window < "u" &&
|
|
1054
|
-
}), () =>
|
|
1053
|
+
typeof window < "u" && ut && (window.cancelAnimationFrame(ut), Bt.lastUrl = "");
|
|
1054
|
+
}), () => L(X, null, [o.value.map((i) => {
|
|
1055
1055
|
const {
|
|
1056
1056
|
toastId: n = ""
|
|
1057
1057
|
} = i;
|
|
1058
|
-
return
|
|
1058
|
+
return L(To, ee({
|
|
1059
1059
|
key: n
|
|
1060
1060
|
}, i), null);
|
|
1061
1061
|
})]);
|
|
1062
1062
|
}
|
|
1063
1063
|
});
|
|
1064
1064
|
let Ht = !1;
|
|
1065
|
-
const
|
|
1065
|
+
const Qs = {
|
|
1066
1066
|
isLoading: !0,
|
|
1067
1067
|
autoClose: !1,
|
|
1068
1068
|
closeOnClick: !1,
|
|
1069
1069
|
closeButton: !1,
|
|
1070
1070
|
draggable: !1
|
|
1071
1071
|
};
|
|
1072
|
-
function
|
|
1072
|
+
function ei() {
|
|
1073
1073
|
const e = [];
|
|
1074
1074
|
return Fe().forEach((t) => {
|
|
1075
1075
|
const s = document.getElementById(t.containerId);
|
|
1076
|
-
s && !s.classList.contains(
|
|
1076
|
+
s && !s.classList.contains(Pt) && e.push(t);
|
|
1077
1077
|
}), e;
|
|
1078
1078
|
}
|
|
1079
1079
|
function Lo(e) {
|
|
1080
|
-
const t =
|
|
1081
|
-
return s > 0 && t +
|
|
1080
|
+
const t = ei().length, s = e ?? 0;
|
|
1081
|
+
return s > 0 && t + pe.items.length >= s;
|
|
1082
1082
|
}
|
|
1083
|
-
function
|
|
1084
|
-
Lo(e.limit) && !e.updateId &&
|
|
1083
|
+
function Bo(e) {
|
|
1084
|
+
Lo(e.limit) && !e.updateId && pe.items.push({
|
|
1085
1085
|
toastId: e.toastId,
|
|
1086
1086
|
containerId: e.containerId,
|
|
1087
1087
|
toastContent: e.content,
|
|
@@ -1090,155 +1090,155 @@ function Ao(e) {
|
|
|
1090
1090
|
}
|
|
1091
1091
|
function Oe(e, t, s = {}) {
|
|
1092
1092
|
if (Ht) return;
|
|
1093
|
-
s = Nt(
|
|
1093
|
+
s = Nt(fo(), {
|
|
1094
1094
|
type: t
|
|
1095
|
-
},
|
|
1095
|
+
}, ne(s)), (!s.toastId || typeof s.toastId != "string" && typeof s.toastId != "number") && (s.toastId = Ys()), s = {
|
|
1096
1096
|
...s,
|
|
1097
|
-
...s.type === "loading" ?
|
|
1097
|
+
...s.type === "loading" ? Qs : {},
|
|
1098
1098
|
content: e,
|
|
1099
1099
|
containerId: s.containerId || String(s.position)
|
|
1100
1100
|
};
|
|
1101
1101
|
const o = Number(s?.progress);
|
|
1102
|
-
return !isNaN(o) && o < 0 && (s.progress = 0), o > 1 && (s.progress = 1), s.theme === "auto" && (s.theme =
|
|
1103
|
-
|
|
1102
|
+
return !isNaN(o) && o < 0 && (s.progress = 0), o > 1 && (s.progress = 1), s.theme === "auto" && (s.theme = ho()), Bo(s), Bt.lastUrl = window.location.href, s.multiple ? pe.items.length ? s.updateId && Et(e, s) : Et(e, s) : (Ht = !0, R.clearAll(void 0, !1), setTimeout(() => {
|
|
1103
|
+
Et(e, s);
|
|
1104
1104
|
}, 0), setTimeout(() => {
|
|
1105
1105
|
Ht = !1;
|
|
1106
1106
|
}, 390)), s.toastId;
|
|
1107
1107
|
}
|
|
1108
|
-
const
|
|
1109
|
-
|
|
1108
|
+
const R = (e, t) => Oe(e, Y.DEFAULT, t);
|
|
1109
|
+
R.info = (e, t) => Oe(e, Y.DEFAULT, {
|
|
1110
1110
|
...t,
|
|
1111
|
-
type:
|
|
1111
|
+
type: Y.INFO
|
|
1112
1112
|
});
|
|
1113
|
-
|
|
1113
|
+
R.error = (e, t) => Oe(e, Y.DEFAULT, {
|
|
1114
1114
|
...t,
|
|
1115
|
-
type:
|
|
1115
|
+
type: Y.ERROR
|
|
1116
1116
|
});
|
|
1117
|
-
|
|
1117
|
+
R.warning = (e, t) => Oe(e, Y.DEFAULT, {
|
|
1118
1118
|
...t,
|
|
1119
|
-
type:
|
|
1119
|
+
type: Y.WARNING
|
|
1120
1120
|
});
|
|
1121
|
-
|
|
1122
|
-
|
|
1121
|
+
R.warn = R.warning;
|
|
1122
|
+
R.success = (e, t) => Oe(e, Y.DEFAULT, {
|
|
1123
1123
|
...t,
|
|
1124
|
-
type:
|
|
1124
|
+
type: Y.SUCCESS
|
|
1125
1125
|
});
|
|
1126
|
-
|
|
1127
|
-
|
|
1126
|
+
R.loading = (e, t) => Oe(e, Y.DEFAULT, Nt(t, Qs));
|
|
1127
|
+
R.dark = (e, t) => Oe(e, Y.DEFAULT, Nt(t, {
|
|
1128
1128
|
theme: xe.DARK
|
|
1129
1129
|
}));
|
|
1130
|
-
|
|
1131
|
-
e ?
|
|
1130
|
+
R.remove = (e) => {
|
|
1131
|
+
e ? te.dismiss(e) : te.clear();
|
|
1132
1132
|
};
|
|
1133
|
-
|
|
1133
|
+
R.clearAll = (e, t) => {
|
|
1134
1134
|
cs(() => {
|
|
1135
|
-
|
|
1135
|
+
te.clear(e, t);
|
|
1136
1136
|
});
|
|
1137
1137
|
};
|
|
1138
|
-
|
|
1138
|
+
R.isActive = (e) => {
|
|
1139
1139
|
let t = !1;
|
|
1140
|
-
return t =
|
|
1140
|
+
return t = ei().findIndex((s) => s.toastId === e) > -1, t;
|
|
1141
1141
|
};
|
|
1142
|
-
|
|
1142
|
+
R.update = (e, t = {}) => {
|
|
1143
1143
|
setTimeout(() => {
|
|
1144
|
-
const s =
|
|
1144
|
+
const s = lo(e);
|
|
1145
1145
|
if (s) {
|
|
1146
|
-
const o =
|
|
1146
|
+
const o = ne(s), {
|
|
1147
1147
|
content: i
|
|
1148
1148
|
} = o, n = {
|
|
1149
1149
|
...o,
|
|
1150
1150
|
...t,
|
|
1151
1151
|
toastId: t.toastId || e,
|
|
1152
|
-
updateId:
|
|
1152
|
+
updateId: Ys()
|
|
1153
1153
|
}, a = n.render || i;
|
|
1154
1154
|
delete n.render, Oe(a, n.type, n);
|
|
1155
1155
|
}
|
|
1156
1156
|
}, 0);
|
|
1157
1157
|
};
|
|
1158
|
-
|
|
1159
|
-
|
|
1158
|
+
R.done = (e) => {
|
|
1159
|
+
R.update(e, {
|
|
1160
1160
|
isLoading: !1,
|
|
1161
1161
|
progress: 1
|
|
1162
1162
|
});
|
|
1163
1163
|
};
|
|
1164
|
-
|
|
1165
|
-
function
|
|
1164
|
+
R.promise = Io;
|
|
1165
|
+
function Io(e, {
|
|
1166
1166
|
pending: t,
|
|
1167
1167
|
error: s,
|
|
1168
1168
|
success: o
|
|
1169
1169
|
}, i) {
|
|
1170
1170
|
var n, a, l;
|
|
1171
1171
|
let r;
|
|
1172
|
-
const
|
|
1172
|
+
const y = {
|
|
1173
1173
|
...i || {},
|
|
1174
1174
|
autoClose: !1
|
|
1175
1175
|
};
|
|
1176
|
-
t && (r = as(t) ?
|
|
1177
|
-
...
|
|
1176
|
+
t && (r = as(t) ? R.loading(t, y) : R.loading(t.render, {
|
|
1177
|
+
...y,
|
|
1178
1178
|
...t
|
|
1179
1179
|
}));
|
|
1180
|
-
const
|
|
1180
|
+
const g = {
|
|
1181
1181
|
autoClose: (n = i?.autoClose) != null ? n : !0,
|
|
1182
1182
|
closeOnClick: (a = i?.closeOnClick) != null ? a : !0,
|
|
1183
1183
|
closeButton: (l = i?.autoClose) != null ? l : null,
|
|
1184
1184
|
isLoading: void 0,
|
|
1185
1185
|
draggable: null,
|
|
1186
1186
|
delay: 100
|
|
1187
|
-
}, C = (m,
|
|
1188
|
-
if (
|
|
1189
|
-
|
|
1187
|
+
}, C = (m, B, S) => {
|
|
1188
|
+
if (B == null) {
|
|
1189
|
+
R.remove(r);
|
|
1190
1190
|
return;
|
|
1191
1191
|
}
|
|
1192
|
-
const
|
|
1192
|
+
const F = {
|
|
1193
1193
|
type: m,
|
|
1194
|
-
...
|
|
1194
|
+
...g,
|
|
1195
1195
|
...i,
|
|
1196
|
-
data:
|
|
1197
|
-
},
|
|
1198
|
-
render:
|
|
1199
|
-
} :
|
|
1200
|
-
return r ?
|
|
1201
|
-
...
|
|
1202
|
-
...
|
|
1196
|
+
data: S
|
|
1197
|
+
}, se = as(B) ? {
|
|
1198
|
+
render: B
|
|
1199
|
+
} : B;
|
|
1200
|
+
return r ? R.update(r, {
|
|
1201
|
+
...F,
|
|
1202
|
+
...se,
|
|
1203
1203
|
isLoading: !1
|
|
1204
|
-
}) :
|
|
1205
|
-
...
|
|
1206
|
-
...
|
|
1204
|
+
}) : R(se.render, {
|
|
1205
|
+
...F,
|
|
1206
|
+
...se,
|
|
1207
1207
|
isLoading: !1
|
|
1208
|
-
}),
|
|
1209
|
-
},
|
|
1210
|
-
return
|
|
1208
|
+
}), S;
|
|
1209
|
+
}, b = Ue(e) ? e() : e;
|
|
1210
|
+
return b.then((m) => {
|
|
1211
1211
|
C("success", o, m);
|
|
1212
1212
|
}).catch((m) => {
|
|
1213
1213
|
C("error", s, m);
|
|
1214
|
-
}),
|
|
1214
|
+
}), b;
|
|
1215
1215
|
}
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
const
|
|
1216
|
+
R.POSITION = bt;
|
|
1217
|
+
R.THEME = xe;
|
|
1218
|
+
R.TYPE = Y;
|
|
1219
|
+
R.TRANSITIONS = Fi;
|
|
1220
|
+
const Do = {
|
|
1221
1221
|
install(e, t = {}) {
|
|
1222
|
-
|
|
1223
|
-
}),
|
|
1222
|
+
ro.useHandler = t.useHandler || (() => {
|
|
1223
|
+
}), Mo(t);
|
|
1224
1224
|
}
|
|
1225
1225
|
};
|
|
1226
|
-
typeof window < "u" && (window.Vue3Toastify =
|
|
1227
|
-
function
|
|
1228
|
-
const t = Nt(
|
|
1229
|
-
|
|
1226
|
+
typeof window < "u" && (window.Vue3Toastify = Do);
|
|
1227
|
+
function Mo(e = {}) {
|
|
1228
|
+
const t = Nt(Ks, e);
|
|
1229
|
+
co(t);
|
|
1230
1230
|
}
|
|
1231
|
-
const Po = { class: "dsg-alert__wrapper" },
|
|
1231
|
+
const Po = { class: "dsg-alert__wrapper" }, No = ["innerHTML"], Vo = /* @__PURE__ */ _({
|
|
1232
1232
|
__name: "DsgAlertComponent",
|
|
1233
1233
|
props: {
|
|
1234
1234
|
contentProps: { default: () => ({ title: "", message: "", type: "gray", hasCloseButton: !0 }) }
|
|
1235
1235
|
},
|
|
1236
1236
|
setup(e) {
|
|
1237
|
-
const t = ["dsg-alert", "dsg-alert--" + e.contentProps.type, e.contentProps.hasCloseButton ? "dsg-alert--has-close" : "dsg-alert--no-close"], o =
|
|
1237
|
+
const t = ["dsg-alert", "dsg-alert--" + e.contentProps.type, e.contentProps.hasCloseButton ? "dsg-alert--has-close" : "dsg-alert--no-close"], o = Ci().closeToast, i = () => {
|
|
1238
1238
|
o();
|
|
1239
1239
|
};
|
|
1240
|
-
return (n, a) => (c(),
|
|
1241
|
-
class:
|
|
1240
|
+
return (n, a) => (c(), v("div", {
|
|
1241
|
+
class: V(t)
|
|
1242
1242
|
}, [
|
|
1243
1243
|
n.contentProps.type === "gray" ? (c(), M(Ve, {
|
|
1244
1244
|
key: 0,
|
|
@@ -1268,29 +1268,29 @@ const Po = { class: "dsg-alert__wrapper" }, Mo = ["innerHTML"], No = /* @__PURE_
|
|
|
1268
1268
|
theme: "success",
|
|
1269
1269
|
size: "lg"
|
|
1270
1270
|
})) : k("", !0),
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
class:
|
|
1271
|
+
E("div", Po, [
|
|
1272
|
+
E("p", {
|
|
1273
|
+
class: V(["dsg-alert__title", { "dsg-alert__title--with-close-button": n.contentProps.hasCloseButton }])
|
|
1274
1274
|
}, D(n.contentProps.title), 3),
|
|
1275
|
-
n.contentProps.message ? (c(),
|
|
1275
|
+
n.contentProps.message ? (c(), v("p", {
|
|
1276
1276
|
key: 0,
|
|
1277
1277
|
innerHTML: n.contentProps.message,
|
|
1278
1278
|
class: "dsg-alert__message"
|
|
1279
|
-
}, null, 8,
|
|
1279
|
+
}, null, 8, No)) : k("", !0)
|
|
1280
1280
|
]),
|
|
1281
|
-
n.contentProps.hasCloseButton ? (c(),
|
|
1281
|
+
n.contentProps.hasCloseButton ? (c(), v("button", {
|
|
1282
1282
|
key: 4,
|
|
1283
1283
|
onClick: i,
|
|
1284
1284
|
class: "dsg-alert__close-button"
|
|
1285
1285
|
}, [
|
|
1286
|
-
|
|
1286
|
+
L(G, {
|
|
1287
1287
|
icon: "x-close",
|
|
1288
1288
|
size: "sm"
|
|
1289
1289
|
})
|
|
1290
1290
|
])) : k("", !0)
|
|
1291
1291
|
]));
|
|
1292
1292
|
}
|
|
1293
|
-
}),
|
|
1293
|
+
}), Ro = new class ot {
|
|
1294
1294
|
info(t = "", s = "", o = {}) {
|
|
1295
1295
|
ot.showToast("gray", t, s, o);
|
|
1296
1296
|
}
|
|
@@ -1310,7 +1310,7 @@ const Po = { class: "dsg-alert__wrapper" }, Mo = ["innerHTML"], No = /* @__PURE_
|
|
|
1310
1310
|
maxWidthClass: "",
|
|
1311
1311
|
...i
|
|
1312
1312
|
};
|
|
1313
|
-
|
|
1313
|
+
R(Vo, {
|
|
1314
1314
|
autoClose: !n.hasCloseButton,
|
|
1315
1315
|
closeButton: !1,
|
|
1316
1316
|
hideProgressBar: !0,
|
|
@@ -1329,16 +1329,16 @@ const Po = { class: "dsg-alert__wrapper" }, Mo = ["innerHTML"], No = /* @__PURE_
|
|
|
1329
1329
|
}
|
|
1330
1330
|
});
|
|
1331
1331
|
}
|
|
1332
|
-
}(),
|
|
1332
|
+
}(), Uo = { class: "dsg-badge--before" }, Ho = {
|
|
1333
1333
|
key: 2,
|
|
1334
1334
|
class: "dsg-badge--dot"
|
|
1335
|
-
},
|
|
1335
|
+
}, zo = {
|
|
1336
1336
|
key: 1,
|
|
1337
1337
|
class: "dsg-badge--label"
|
|
1338
|
-
},
|
|
1338
|
+
}, xo = { class: "dsg-badge--after" }, Fo = {
|
|
1339
1339
|
key: 1,
|
|
1340
1340
|
class: "dsg-badge--close-wrapper"
|
|
1341
|
-
},
|
|
1341
|
+
}, ti = /* @__PURE__ */ _({
|
|
1342
1342
|
__name: "DsgBadge",
|
|
1343
1343
|
props: {
|
|
1344
1344
|
label: { default: "" },
|
|
@@ -1348,7 +1348,9 @@ const Po = { class: "dsg-alert__wrapper" }, Mo = ["innerHTML"], No = /* @__PURE_
|
|
|
1348
1348
|
hasClose: { type: Boolean, default: !1 },
|
|
1349
1349
|
avatarUri: { default: "" },
|
|
1350
1350
|
iconBefore: { default: "" },
|
|
1351
|
+
icon: { default: "" },
|
|
1351
1352
|
iconAfter: { default: "" },
|
|
1353
|
+
iconOnly: { type: Boolean, default: !1 },
|
|
1352
1354
|
hasDot: { type: Boolean, default: !1 },
|
|
1353
1355
|
theme: { default: "badge-modern" },
|
|
1354
1356
|
themeColor: { default: "gray" },
|
|
@@ -1356,12 +1358,13 @@ const Po = { class: "dsg-alert__wrapper" }, Mo = ["innerHTML"], No = /* @__PURE_
|
|
|
1356
1358
|
},
|
|
1357
1359
|
emits: ["before-hide", "after-hide", "before-destroy", "after-destroy", "on-click"],
|
|
1358
1360
|
setup(e, { expose: t, emit: s }) {
|
|
1359
|
-
const o = e.iconBefore || e.iconAfter || e.type === "add", i = [
|
|
1361
|
+
const o = e.iconBefore || e.iconAfter || e.type === "add" || e.type === "icon", i = [
|
|
1360
1362
|
"dsg-badge",
|
|
1361
1363
|
`dsg-badge--${e.size}`,
|
|
1362
1364
|
`dsg-badge--${e.type}`,
|
|
1363
1365
|
`dsg-badge--${e.theme}`,
|
|
1364
1366
|
`dsg-badge--${e.themeColor}`,
|
|
1367
|
+
`dsg-badge--${e.iconOnly ? "icon-only" : "label"}`,
|
|
1365
1368
|
`${e.hasClose ? "dsg-badge--has-close" : ""}`,
|
|
1366
1369
|
`${e.avatarUri ? "dsg-badge--has-avatar" : ""}`,
|
|
1367
1370
|
`${e.hasDot ? "dsg-badge--has-dot" : ""}`,
|
|
@@ -1370,10 +1373,12 @@ const Po = { class: "dsg-alert__wrapper" }, Mo = ["innerHTML"], No = /* @__PURE_
|
|
|
1370
1373
|
`${e.iconAfter ? "dsg-badge--has-icon-after" : ""}`,
|
|
1371
1374
|
e.classes
|
|
1372
1375
|
].join(" ").replaceAll(/\s+/g, " ").trim();
|
|
1373
|
-
e.type === "add" && (e.label || e.avatarUri || e.hasDot || e.iconBefore || e.iconAfter || e.hasClose) && e.theme !== "badge-modern" && e.themeColor && new
|
|
1374
|
-
|
|
1376
|
+
(e.type === "add" || e.type === "icon") && (e.label || e.avatarUri || e.hasDot || e.iconBefore || e.iconAfter || e.hasClose) && e.theme !== "badge-modern" && e.themeColor && new fe(
|
|
1377
|
+
"DsgBadge: 'add'/'icon' type badges should only be called with 'size', 'theme' and 'themeColor' props. Note that 'themeColor' prop is discarded for theme 'badge-modern'."
|
|
1378
|
+
), [e.avatarUri, e.iconBefore, e.hasDot].filter(Boolean).length > 1 && new fe("DsgBadge: 'avatarUri', 'iconBefore' and 'hasDot' props are mutually exclusive. Please use only one of them."), [e.iconAfter, e.hasClose].filter(Boolean).length > 1 && new fe("DsgBadge: 'iconAfter' and 'hasClose' props are mutually exclusive. Please use only one of them.");
|
|
1379
|
+
const l = s, r = be("dsgBadge"), y = (C) => {
|
|
1375
1380
|
e.destroyOnClose ? (l("before-destroy", r.value), r.value?.remove(), l("after-destroy")) : (l("before-hide", r.value), r.value && (r.value.style.display = "none"), l("after-hide", r.value));
|
|
1376
|
-
},
|
|
1381
|
+
}, g = (C) => {
|
|
1377
1382
|
l("on-click", r.value);
|
|
1378
1383
|
};
|
|
1379
1384
|
return t({
|
|
@@ -1383,70 +1388,76 @@ const Po = { class: "dsg-alert__wrapper" }, Mo = ["innerHTML"], No = /* @__PURE_
|
|
|
1383
1388
|
* @param {Event} clickEvent - The click event
|
|
1384
1389
|
* @returns void
|
|
1385
1390
|
*/
|
|
1386
|
-
hideOrDestroy:
|
|
1391
|
+
hideOrDestroy: y,
|
|
1387
1392
|
/**
|
|
1388
1393
|
* Click Event handler for the badge to manually trigger the 'on-click' event
|
|
1389
1394
|
*
|
|
1390
1395
|
* @param {Event} clickEvent - The click event
|
|
1391
1396
|
* @returns void
|
|
1392
1397
|
*/
|
|
1393
|
-
clickEvent:
|
|
1394
|
-
}), (C,
|
|
1395
|
-
class:
|
|
1398
|
+
clickEvent: g
|
|
1399
|
+
}), (C, b) => (c(), v("div", {
|
|
1400
|
+
class: V(ae(i)),
|
|
1396
1401
|
ref: "dsgBadge",
|
|
1397
|
-
onClick:
|
|
1402
|
+
onClick: g
|
|
1398
1403
|
}, [
|
|
1399
|
-
C.type === "standard" ?
|
|
1400
|
-
|
|
1401
|
-
C.avatarUri ? (c(), M(
|
|
1404
|
+
C.type === "standard" ? T(C.$slots, "dsg-badge--before", { key: 0 }, () => [
|
|
1405
|
+
E("div", Uo, [
|
|
1406
|
+
C.avatarUri ? (c(), M(ft, {
|
|
1402
1407
|
key: 0,
|
|
1403
1408
|
"profile-uri": C.avatarUri,
|
|
1404
1409
|
class: "dsg-badge--avatar",
|
|
1405
1410
|
size: "xxs"
|
|
1406
1411
|
}, null, 8, ["profile-uri"])) : k("", !0),
|
|
1407
|
-
C.iconBefore ? (c(), M(
|
|
1412
|
+
C.iconBefore ? (c(), M(G, {
|
|
1408
1413
|
key: 1,
|
|
1409
1414
|
icon: C.iconBefore,
|
|
1410
1415
|
size: "xxs",
|
|
1411
1416
|
class: "dsg-badge--icon-before dsg-badge--icon"
|
|
1412
1417
|
}, null, 8, ["icon"])) : k("", !0),
|
|
1413
|
-
C.hasDot ? (c(),
|
|
1418
|
+
C.hasDot ? (c(), v("span", Ho)) : k("", !0)
|
|
1414
1419
|
])
|
|
1415
1420
|
]) : k("", !0),
|
|
1416
|
-
C.type === "standard" ? (c(),
|
|
1417
|
-
C.type === "add" ? (c(), M(
|
|
1421
|
+
C.type === "standard" ? (c(), v("label", zo, D(C.label), 1)) : k("", !0),
|
|
1422
|
+
C.type === "add" ? (c(), M(G, {
|
|
1418
1423
|
key: 2,
|
|
1419
1424
|
icon: "plus",
|
|
1420
1425
|
size: "xxs",
|
|
1421
1426
|
class: "dsg-badge--icon-add dsg-badge--icon"
|
|
1422
1427
|
})) : k("", !0),
|
|
1423
|
-
C.type === "
|
|
1424
|
-
|
|
1425
|
-
|
|
1428
|
+
C.type === "icon" ? (c(), M(G, {
|
|
1429
|
+
key: 3,
|
|
1430
|
+
icon: C.icon,
|
|
1431
|
+
size: "xxs",
|
|
1432
|
+
class: "dsg-badge--icon-icon dsg-badge--icon"
|
|
1433
|
+
}, null, 8, ["icon"])) : k("", !0),
|
|
1434
|
+
C.type === "standard" ? T(C.$slots, "dsg-badge--after", { key: 4 }, () => [
|
|
1435
|
+
E("div", xo, [
|
|
1436
|
+
C.iconAfter ? (c(), M(G, {
|
|
1426
1437
|
key: 0,
|
|
1427
1438
|
icon: C.iconAfter,
|
|
1428
1439
|
size: "xxs",
|
|
1429
1440
|
class: "dsg-badge--icon-after dsg-badge--icon"
|
|
1430
1441
|
}, null, 8, ["icon"])) : k("", !0),
|
|
1431
|
-
C.hasClose ? (c(),
|
|
1432
|
-
C.hasClose ? (c(), M(
|
|
1442
|
+
C.hasClose ? (c(), v("span", Fo, [
|
|
1443
|
+
C.hasClose ? (c(), M(G, {
|
|
1433
1444
|
key: 0,
|
|
1434
1445
|
icon: "x-close",
|
|
1435
1446
|
class: "dsg-badge--close",
|
|
1436
1447
|
size: "xxs",
|
|
1437
|
-
onClick:
|
|
1448
|
+
onClick: y
|
|
1438
1449
|
})) : k("", !0)
|
|
1439
1450
|
])) : k("", !0)
|
|
1440
1451
|
])
|
|
1441
1452
|
]) : k("", !0)
|
|
1442
1453
|
], 2));
|
|
1443
1454
|
}
|
|
1444
|
-
}),
|
|
1455
|
+
}), qo = {
|
|
1445
1456
|
key: 0,
|
|
1446
1457
|
class: "dsg-checkbox-group--form-wrapper"
|
|
1447
|
-
}, _o = { class: "dsg-checkbox-group--header" },
|
|
1458
|
+
}, _o = { class: "dsg-checkbox-group--header" }, jo = { class: "dsg-checkbox-group--header-title-wrapper" }, Ko = { class: "dsg-checkbox-group--title" }, Go = ["innerHTML"], Wo = { class: "dsg-checkbox-group--options" }, Xo = ["onClick"], Yo = { class: "dsg-checkbox-group--panel-left" }, Zo = ["textContent"], Jo = ["innerHTML", "data"], Qo = /* @__PURE__ */ _({
|
|
1448
1459
|
__name: "DsgCheckboxGroup",
|
|
1449
|
-
props: /* @__PURE__ */
|
|
1460
|
+
props: /* @__PURE__ */ At({
|
|
1450
1461
|
size: { default: "md" },
|
|
1451
1462
|
theme: { default: "form" },
|
|
1452
1463
|
title: { default: "" },
|
|
@@ -1460,20 +1471,20 @@ const Po = { class: "dsg-alert__wrapper" }, Mo = ["innerHTML"], No = /* @__PURE_
|
|
|
1460
1471
|
}),
|
|
1461
1472
|
emits: ["update:modelValue"],
|
|
1462
1473
|
setup(e) {
|
|
1463
|
-
const t =
|
|
1474
|
+
const t = Lt(e, "modelValue"), s = ["dsg-checkbox-group", `dsg-checkbox-group--${e.size}`, `dsg-checkbox-group--theme-${e.theme}`], o = (i, n) => {
|
|
1464
1475
|
i.target instanceof HTMLAnchorElement || (t.value = n.value);
|
|
1465
1476
|
};
|
|
1466
1477
|
return (i, n) => {
|
|
1467
|
-
const a =
|
|
1468
|
-
return c(),
|
|
1469
|
-
class:
|
|
1478
|
+
const a = Ei("key");
|
|
1479
|
+
return c(), v("div", {
|
|
1480
|
+
class: V(s)
|
|
1470
1481
|
}, [
|
|
1471
|
-
["form", "form-radio"].includes(i.theme) ? (c(),
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
i.tooltip ? (c(), M(
|
|
1482
|
+
["form", "form-radio"].includes(i.theme) ? (c(), v("div", qo, [
|
|
1483
|
+
E("div", _o, [
|
|
1484
|
+
T(i.$slots, "dsg-checkbox-group--header", {}, () => [
|
|
1485
|
+
E("div", jo, [
|
|
1486
|
+
E("h3", Ko, D(i.title), 1),
|
|
1487
|
+
i.tooltip ? (c(), M(xs, {
|
|
1477
1488
|
key: 0,
|
|
1478
1489
|
label: i.tooltip,
|
|
1479
1490
|
position: "top",
|
|
@@ -1483,75 +1494,75 @@ const Po = { class: "dsg-alert__wrapper" }, Mo = ["innerHTML"], No = /* @__PURE_
|
|
|
1483
1494
|
class: "dsg-checkbox-group--tooltip"
|
|
1484
1495
|
}, null, 8, ["label"])) : k("", !0)
|
|
1485
1496
|
]),
|
|
1486
|
-
i.subtext ? (c(),
|
|
1497
|
+
i.subtext ? (c(), v("p", {
|
|
1487
1498
|
key: 0,
|
|
1488
1499
|
class: "dsg-checkbox-group--subtext",
|
|
1489
1500
|
innerHTML: i.subtext
|
|
1490
|
-
}, null, 8,
|
|
1501
|
+
}, null, 8, Go)) : k("", !0)
|
|
1491
1502
|
])
|
|
1492
1503
|
]),
|
|
1493
|
-
|
|
1494
|
-
(c(!0),
|
|
1504
|
+
E("div", Wo, [
|
|
1505
|
+
(c(!0), v(X, null, le(i.options, (l, r) => (c(), v("div", {
|
|
1495
1506
|
key: r,
|
|
1496
1507
|
class: "dsg-checkbox-group--option"
|
|
1497
1508
|
}, [
|
|
1498
|
-
|
|
1509
|
+
L(Tt, {
|
|
1499
1510
|
label: l.label,
|
|
1500
1511
|
value: l.value,
|
|
1501
1512
|
disabled: l.disabled,
|
|
1502
1513
|
size: "sm",
|
|
1503
1514
|
type: ["form", "panel"].includes(i.theme) ? "checkbox" : "radio",
|
|
1504
1515
|
modelValue: t.value,
|
|
1505
|
-
"onUpdate:modelValue": n[0] || (n[0] = (
|
|
1516
|
+
"onUpdate:modelValue": n[0] || (n[0] = (y) => t.value = y)
|
|
1506
1517
|
}, null, 8, ["label", "value", "disabled", "type", "modelValue"])
|
|
1507
1518
|
]))), 128))
|
|
1508
1519
|
])
|
|
1509
1520
|
])) : k("", !0),
|
|
1510
|
-
["panel", "panel-content"].includes(i.theme) ? (c(!0),
|
|
1511
|
-
class:
|
|
1512
|
-
onClick: (
|
|
1521
|
+
["panel", "panel-content"].includes(i.theme) ? (c(!0), v(X, { key: 1 }, le(i.options, (l, r) => Le((c(), v("div", {
|
|
1522
|
+
class: V(["dsg-checkbox-group--panel", `dsg-checkbox-group--panel-${t.value === l.value ? "selected" : "unselected"}`]),
|
|
1523
|
+
onClick: (y) => o(y, l)
|
|
1513
1524
|
}, [
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
l.icon ? (c(), M(
|
|
1525
|
+
E("div", Yo, [
|
|
1526
|
+
T(i.$slots, `dsg-checkbox-group--panel-title--${String(l.value).trim().toLowerCase().replace(/[^0-9a-zA-Z]/g, "-").replace(/-+/g, "-")}`, { data: l }, () => [
|
|
1527
|
+
l.icon ? (c(), M(G, {
|
|
1517
1528
|
key: 0,
|
|
1518
1529
|
icon: l.icon,
|
|
1519
1530
|
size: "xl"
|
|
1520
1531
|
}, null, 8, ["icon"])) : k("", !0),
|
|
1521
|
-
|
|
1532
|
+
E("h3", {
|
|
1522
1533
|
class: "dsg-checkbox-group--panel-title",
|
|
1523
1534
|
textContent: D(l.label)
|
|
1524
|
-
}, null, 8,
|
|
1535
|
+
}, null, 8, Zo)
|
|
1525
1536
|
]),
|
|
1526
|
-
|
|
1527
|
-
l.subtext ? (c(),
|
|
1537
|
+
T(i.$slots, `dsg-checkbox-group--panel-subtext--${String(l.value).trim().toLowerCase().replace(/[^0-9a-zA-Z]/g, "-").replace(/-+/g, "-")}`, {}, () => [
|
|
1538
|
+
l.subtext ? (c(), v("p", {
|
|
1528
1539
|
key: 0,
|
|
1529
1540
|
class: "dsg-checkbox-group--panel-subtext",
|
|
1530
1541
|
innerHTML: l.subtext,
|
|
1531
1542
|
data: l
|
|
1532
|
-
}, null, 8,
|
|
1543
|
+
}, null, 8, Jo)) : k("", !0)
|
|
1533
1544
|
])
|
|
1534
1545
|
]),
|
|
1535
|
-
(c(),
|
|
1546
|
+
(c(), v("div", {
|
|
1536
1547
|
key: r,
|
|
1537
1548
|
class: "dsg-checkbox-group--panel-right"
|
|
1538
1549
|
}, [
|
|
1539
|
-
|
|
1550
|
+
L(Tt, {
|
|
1540
1551
|
value: l.value,
|
|
1541
1552
|
disabled: l.disabled,
|
|
1542
1553
|
type: "radio",
|
|
1543
1554
|
modelValue: t.value,
|
|
1544
|
-
"onUpdate:modelValue": n[1] || (n[1] = (
|
|
1555
|
+
"onUpdate:modelValue": n[1] || (n[1] = (y) => t.value = y)
|
|
1545
1556
|
}, null, 8, ["value", "disabled", "modelValue"])
|
|
1546
1557
|
]))
|
|
1547
|
-
], 10,
|
|
1558
|
+
], 10, Xo)), [
|
|
1548
1559
|
[a, r]
|
|
1549
1560
|
])), 256)) : k("", !0)
|
|
1550
1561
|
]);
|
|
1551
1562
|
};
|
|
1552
1563
|
}
|
|
1553
1564
|
});
|
|
1554
|
-
var
|
|
1565
|
+
var en = "2.0.3", ls = 500, Cs = "user-agent", qe = "", Es = "?", It = "function", Se = "undefined", _e = "object", rs = "string", Z = "browser", me = "cpu", ce = "device", oe = "engine", ie = "os", He = "result", h = "name", d = "type", f = "vendor", p = "version", J = "architecture", pt = "major", u = "model", nt = "console", O = "mobile", P = "tablet", x = "smarttv", ue = "wearable", zt = "xr", at = "embedded", Ye = "inapp", ps = "brands", Be = "formFactors", gs = "fullVersionList", ze = "platform", ms = "platformVersion", Rt = "bitness", $e = "sec-ch-ua", tn = $e + "-full-version-list", sn = $e + "-arch", on = $e + "-" + Rt, nn = $e + "-form-factors", an = $e + "-" + O, ln = $e + "-" + u, si = $e + "-" + ze, rn = si + "-version", ii = [ps, gs, O, u, ze, ms, J, Be, Rt], yt = "Amazon", Pe = "Apple", Ss = "ASUS", Os = "BlackBerry", Ae = "Google", $s = "Huawei", Ts = "Lenovo", As = "Honor", wt = "LG", xt = "Microsoft", Ft = "Motorola", qt = "Nvidia", Ls = "OnePlus", _t = "OPPO", Ze = "Samsung", Bs = "Sharp", Je = "Sony", jt = "Xiaomi", Kt = "Zebra", Is = "Chrome", Ds = "Chromium", ke = "Chromecast", dn = "Edge", Qe = "Firefox", et = "Opera", Gt = "Facebook", Ms = "Sogou", Ne = "Mobile ", tt = " Browser", ds = "Windows", un = typeof window !== Se, Q = un && window.navigator ? window.navigator : void 0, Ce = Q && Q.userAgentData ? Q.userAgentData : void 0, cn = function(e, t) {
|
|
1555
1566
|
var s = {}, o = t;
|
|
1556
1567
|
if (!Dt(t)) {
|
|
1557
1568
|
o = {};
|
|
@@ -1567,7 +1578,7 @@ var Qo = "2.0.3", ls = 500, ks = "user-agent", _e = "", Cs = "?", It = "function
|
|
|
1567
1578
|
t[e[s].toUpperCase()] = e[s];
|
|
1568
1579
|
return t;
|
|
1569
1580
|
}, us = function(e, t) {
|
|
1570
|
-
if (typeof e ===
|
|
1581
|
+
if (typeof e === _e && e.length > 0) {
|
|
1571
1582
|
for (var s in e)
|
|
1572
1583
|
if (ve(e[s]) == ve(t)) return !0;
|
|
1573
1584
|
return !1;
|
|
@@ -1582,10 +1593,10 @@ var Qo = "2.0.3", ls = 500, ks = "user-agent", _e = "", Cs = "?", It = "function
|
|
|
1582
1593
|
if (e) {
|
|
1583
1594
|
for (var t = [], s = je(/\\?\"/g, e).split(","), o = 0; o < s.length; o++)
|
|
1584
1595
|
if (s[o].indexOf(";") > -1) {
|
|
1585
|
-
var i =
|
|
1596
|
+
var i = gt(s[o]).split(";v=");
|
|
1586
1597
|
t[o] = { brand: i[0], version: i[1] };
|
|
1587
1598
|
} else
|
|
1588
|
-
t[o] =
|
|
1599
|
+
t[o] = gt(s[o]);
|
|
1589
1600
|
return t;
|
|
1590
1601
|
}
|
|
1591
1602
|
}, ve = function(e) {
|
|
@@ -1595,34 +1606,34 @@ var Qo = "2.0.3", ls = 500, ks = "user-agent", _e = "", Cs = "?", It = "function
|
|
|
1595
1606
|
}, ye = function(e) {
|
|
1596
1607
|
for (var t in e) {
|
|
1597
1608
|
var s = e[t];
|
|
1598
|
-
typeof s ==
|
|
1609
|
+
typeof s == _e && s.length == 2 ? this[s[0]] = s[1] : this[s] = void 0;
|
|
1599
1610
|
}
|
|
1600
1611
|
return this;
|
|
1601
1612
|
}, je = function(e, t) {
|
|
1602
|
-
return Ge(t) ? t.replace(e,
|
|
1613
|
+
return Ge(t) ? t.replace(e, qe) : t;
|
|
1603
1614
|
}, st = function(e) {
|
|
1604
1615
|
return je(/\\?\"/g, e);
|
|
1605
|
-
},
|
|
1616
|
+
}, gt = function(e, t) {
|
|
1606
1617
|
if (Ge(e))
|
|
1607
|
-
return e = je(/^\s\s*/, e), typeof t ===
|
|
1618
|
+
return e = je(/^\s\s*/, e), typeof t === Se ? e : e.substring(0, ls);
|
|
1608
1619
|
}, Yt = function(e, t) {
|
|
1609
1620
|
if (!(!e || !t))
|
|
1610
1621
|
for (var s = 0, o, i, n, a, l, r; s < t.length && !l; ) {
|
|
1611
|
-
var
|
|
1612
|
-
for (o = i = 0; o <
|
|
1613
|
-
if (l =
|
|
1614
|
-
for (n = 0; n <
|
|
1615
|
-
r = l[++i], a =
|
|
1622
|
+
var y = t[s], g = t[s + 1];
|
|
1623
|
+
for (o = i = 0; o < y.length && !l && y[o]; )
|
|
1624
|
+
if (l = y[o++].exec(e), l)
|
|
1625
|
+
for (n = 0; n < g.length; n++)
|
|
1626
|
+
r = l[++i], a = g[n], typeof a === _e && a.length > 0 ? a.length === 2 ? typeof a[1] == It ? this[a[0]] = a[1].call(this, r) : this[a[0]] = a[1] : a.length === 3 ? typeof a[1] === It && !(a[1].exec && a[1].test) ? this[a[0]] = r ? a[1].call(this, r, a[2]) : void 0 : this[a[0]] = r ? r.replace(a[1], a[2]) : void 0 : a.length === 4 && (this[a[0]] = r ? a[3].call(this, r.replace(a[1], a[2])) : void 0) : this[a] = r || void 0;
|
|
1616
1627
|
s += 2;
|
|
1617
1628
|
}
|
|
1618
|
-
},
|
|
1629
|
+
}, Ee = function(e, t) {
|
|
1619
1630
|
for (var s in t)
|
|
1620
|
-
if (typeof t[s] ===
|
|
1631
|
+
if (typeof t[s] === _e && t[s].length > 0) {
|
|
1621
1632
|
for (var o = 0; o < t[s].length; o++)
|
|
1622
1633
|
if (us(t[s][o], e))
|
|
1623
|
-
return s ===
|
|
1634
|
+
return s === Es ? void 0 : s;
|
|
1624
1635
|
} else if (us(t[s], e))
|
|
1625
|
-
return s ===
|
|
1636
|
+
return s === Es ? void 0 : s;
|
|
1626
1637
|
return t.hasOwnProperty("*") ? t["*"] : e;
|
|
1627
1638
|
}, Ps = {
|
|
1628
1639
|
ME: "4.90",
|
|
@@ -1636,7 +1647,7 @@ var Qo = "2.0.3", ls = 500, ks = "user-agent", _e = "", Cs = "?", It = "function
|
|
|
1636
1647
|
"8.1": "NT 6.3",
|
|
1637
1648
|
10: ["NT 6.4", "NT 10.0"],
|
|
1638
1649
|
RT: "ARM"
|
|
1639
|
-
},
|
|
1650
|
+
}, Ns = {
|
|
1640
1651
|
embedded: "Automotive",
|
|
1641
1652
|
mobile: "Mobile",
|
|
1642
1653
|
tablet: ["Tablet", "EInk"],
|
|
@@ -1645,7 +1656,7 @@ var Qo = "2.0.3", ls = 500, ks = "user-agent", _e = "", Cs = "?", It = "function
|
|
|
1645
1656
|
xr: ["VR", "XR"],
|
|
1646
1657
|
"?": ["Desktop", "Unknown"],
|
|
1647
1658
|
"*": void 0
|
|
1648
|
-
},
|
|
1659
|
+
}, Vs = {
|
|
1649
1660
|
browser: [
|
|
1650
1661
|
[
|
|
1651
1662
|
// Most common regardless engine
|
|
@@ -1755,7 +1766,7 @@ var Qo = "2.0.3", ls = 500, ks = "user-agent", _e = "", Cs = "?", It = "function
|
|
|
1755
1766
|
/slbrowser\/([\w\.]+)/i
|
|
1756
1767
|
// Smart Lenovo Browser
|
|
1757
1768
|
],
|
|
1758
|
-
[p, [h, "Smart " +
|
|
1769
|
+
[p, [h, "Smart " + Ts + tt]],
|
|
1759
1770
|
[
|
|
1760
1771
|
/(avast|avg)\/([\w\.]+)/i
|
|
1761
1772
|
// Avast/AVG Secure Browser
|
|
@@ -1820,12 +1831,12 @@ var Qo = "2.0.3", ls = 500, ks = "user-agent", _e = "", Cs = "?", It = "function
|
|
|
1820
1831
|
/metasr[\/ ]?([\d\.]+)/i
|
|
1821
1832
|
// Sogou Explorer
|
|
1822
1833
|
],
|
|
1823
|
-
[p, [h,
|
|
1834
|
+
[p, [h, Ms + " Explorer"]],
|
|
1824
1835
|
[
|
|
1825
1836
|
/(sogou)mo\w+\/([\d\.]+)/i
|
|
1826
1837
|
// Sogou Mobile
|
|
1827
1838
|
],
|
|
1828
|
-
[[h,
|
|
1839
|
+
[[h, Ms + " Mobile"], p],
|
|
1829
1840
|
[
|
|
1830
1841
|
/(electron)\/([\w\.]+) safari/i,
|
|
1831
1842
|
// Electron-based App
|
|
@@ -1898,12 +1909,12 @@ var Qo = "2.0.3", ls = 500, ks = "user-agent", _e = "", Cs = "?", It = "function
|
|
|
1898
1909
|
/headlesschrome(?:\/([\w\.]+)| )/i
|
|
1899
1910
|
// Chrome Headless
|
|
1900
1911
|
],
|
|
1901
|
-
[p, [h,
|
|
1912
|
+
[p, [h, Is + " Headless"]],
|
|
1902
1913
|
[
|
|
1903
1914
|
/ wv\).+(chrome)\/([\w\.]+)/i
|
|
1904
1915
|
// Chrome WebView
|
|
1905
1916
|
],
|
|
1906
|
-
[[h,
|
|
1917
|
+
[[h, Is + " WebView"], p],
|
|
1907
1918
|
[
|
|
1908
1919
|
/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i
|
|
1909
1920
|
// Android Browser
|
|
@@ -1987,51 +1998,51 @@ var Qo = "2.0.3", ls = 500, ks = "user-agent", _e = "", Cs = "?", It = "function
|
|
|
1987
1998
|
/(cobalt)\/([\w\.]+)/i
|
|
1988
1999
|
// Cobalt
|
|
1989
2000
|
],
|
|
1990
|
-
[h, [p, /[^\d\.]+./,
|
|
2001
|
+
[h, [p, /[^\d\.]+./, qe]]
|
|
1991
2002
|
],
|
|
1992
2003
|
cpu: [
|
|
1993
2004
|
[
|
|
1994
2005
|
/\b((amd|x|x86[-_]?|wow|win)64)\b/i
|
|
1995
2006
|
// AMD64 (x64)
|
|
1996
2007
|
],
|
|
1997
|
-
[[
|
|
2008
|
+
[[J, "amd64"]],
|
|
1998
2009
|
[
|
|
1999
2010
|
/(ia32(?=;))/i,
|
|
2000
2011
|
// IA32 (quicktime)
|
|
2001
2012
|
/\b((i[346]|x)86)(pc)?\b/i
|
|
2002
2013
|
// IA32 (x86)
|
|
2003
2014
|
],
|
|
2004
|
-
[[
|
|
2015
|
+
[[J, "ia32"]],
|
|
2005
2016
|
[
|
|
2006
2017
|
/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i
|
|
2007
2018
|
// ARM64
|
|
2008
2019
|
],
|
|
2009
|
-
[[
|
|
2020
|
+
[[J, "arm64"]],
|
|
2010
2021
|
[
|
|
2011
2022
|
/\b(arm(v[67])?ht?n?[fl]p?)\b/i
|
|
2012
2023
|
// ARMHF
|
|
2013
2024
|
],
|
|
2014
|
-
[[
|
|
2025
|
+
[[J, "armhf"]],
|
|
2015
2026
|
[
|
|
2016
2027
|
// PocketPC mistakenly identified as PowerPC
|
|
2017
2028
|
/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i
|
|
2018
2029
|
],
|
|
2019
|
-
[[
|
|
2030
|
+
[[J, "arm"]],
|
|
2020
2031
|
[
|
|
2021
2032
|
/((ppc|powerpc)(64)?)( mac|;|\))/i
|
|
2022
2033
|
// PowerPC
|
|
2023
2034
|
],
|
|
2024
|
-
[[
|
|
2035
|
+
[[J, /ower/, qe, ve]],
|
|
2025
2036
|
[
|
|
2026
2037
|
/ sun4\w[;\)]/i
|
|
2027
2038
|
// SPARC
|
|
2028
2039
|
],
|
|
2029
|
-
[[
|
|
2040
|
+
[[J, "sparc"]],
|
|
2030
2041
|
[
|
|
2031
2042
|
/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i
|
|
2032
2043
|
// IA64, 68K, ARM/64, AVR/32, IRIX/64, MIPS/64, SPARC/64, PA-RISC
|
|
2033
2044
|
],
|
|
2034
|
-
[[
|
|
2045
|
+
[[J, ve]]
|
|
2035
2046
|
],
|
|
2036
2047
|
device: [
|
|
2037
2048
|
[
|
|
@@ -2047,48 +2058,48 @@ var Qo = "2.0.3", ls = 500, ks = "user-agent", _e = "", Cs = "?", It = "function
|
|
|
2047
2058
|
/samsung[- ]((?!sm-[lr])[-\w]+)/i,
|
|
2048
2059
|
/sec-(sgh\w+)/i
|
|
2049
2060
|
],
|
|
2050
|
-
[u, [f, Ze], [d,
|
|
2061
|
+
[u, [f, Ze], [d, O]],
|
|
2051
2062
|
[
|
|
2052
2063
|
// Apple
|
|
2053
2064
|
/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i
|
|
2054
2065
|
// iPod/iPhone
|
|
2055
2066
|
],
|
|
2056
|
-
[u, [f,
|
|
2067
|
+
[u, [f, Pe], [d, O]],
|
|
2057
2068
|
[
|
|
2058
2069
|
/\((ipad);[-\w\),; ]+apple/i,
|
|
2059
2070
|
// iPad
|
|
2060
2071
|
/applecoremedia\/[\w\.]+ \((ipad)/i,
|
|
2061
2072
|
/\b(ipad)\d\d?,\d\d?[;\]].+ios/i
|
|
2062
2073
|
],
|
|
2063
|
-
[u, [f,
|
|
2074
|
+
[u, [f, Pe], [d, P]],
|
|
2064
2075
|
[
|
|
2065
2076
|
/(macintosh);/i
|
|
2066
2077
|
],
|
|
2067
|
-
[u, [f,
|
|
2078
|
+
[u, [f, Pe]],
|
|
2068
2079
|
[
|
|
2069
2080
|
// Sharp
|
|
2070
2081
|
/\b(sh-?[altvz]?\d\d[a-ekm]?)/i
|
|
2071
2082
|
],
|
|
2072
|
-
[u, [f,
|
|
2083
|
+
[u, [f, Bs], [d, O]],
|
|
2073
2084
|
[
|
|
2074
2085
|
// Honor
|
|
2075
2086
|
/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i
|
|
2076
2087
|
],
|
|
2077
|
-
[u, [f,
|
|
2088
|
+
[u, [f, As], [d, P]],
|
|
2078
2089
|
[
|
|
2079
2090
|
/honor([-\w ]+)[;\)]/i
|
|
2080
2091
|
],
|
|
2081
|
-
[u, [f,
|
|
2092
|
+
[u, [f, As], [d, O]],
|
|
2082
2093
|
[
|
|
2083
2094
|
// Huawei
|
|
2084
2095
|
/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i
|
|
2085
2096
|
],
|
|
2086
|
-
[u, [f,
|
|
2097
|
+
[u, [f, $s], [d, P]],
|
|
2087
2098
|
[
|
|
2088
2099
|
/(?:huawei)([-\w ]+)[;\)]/i,
|
|
2089
2100
|
/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i
|
|
2090
2101
|
],
|
|
2091
|
-
[u, [f,
|
|
2102
|
+
[u, [f, $s], [d, O]],
|
|
2092
2103
|
[
|
|
2093
2104
|
// Xiaomi
|
|
2094
2105
|
/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,
|
|
@@ -2111,40 +2122,40 @@ var Qo = "2.0.3", ls = 500, ks = "user-agent", _e = "", Cs = "?", It = "function
|
|
|
2111
2122
|
// Xiaomi Mi
|
|
2112
2123
|
/ ([\w ]+) miui\/v?\d/i
|
|
2113
2124
|
],
|
|
2114
|
-
[[u, /_/g, " "], [f, jt], [d,
|
|
2125
|
+
[[u, /_/g, " "], [f, jt], [d, O]],
|
|
2115
2126
|
[
|
|
2116
2127
|
// OPPO
|
|
2117
2128
|
/; (\w+) bui.+ oppo/i,
|
|
2118
2129
|
/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i
|
|
2119
2130
|
],
|
|
2120
|
-
[u, [f,
|
|
2131
|
+
[u, [f, _t], [d, O]],
|
|
2121
2132
|
[
|
|
2122
2133
|
/\b(opd2(\d{3}a?))(?: bui|\))/i
|
|
2123
2134
|
],
|
|
2124
|
-
[u, [f,
|
|
2135
|
+
[u, [f, Ee, { OnePlus: ["304", "403", "203"], "*": _t }], [d, P]],
|
|
2125
2136
|
[
|
|
2126
2137
|
// BLU Vivo Series
|
|
2127
2138
|
/(vivo (5r?|6|8l?|go|one|s|x[il]?[2-4]?)[\w\+ ]*)(?: bui|\))/i
|
|
2128
2139
|
],
|
|
2129
|
-
[u, [f, "BLU"], [d,
|
|
2140
|
+
[u, [f, "BLU"], [d, O]],
|
|
2130
2141
|
[
|
|
2131
2142
|
// Vivo
|
|
2132
2143
|
/; vivo (\w+)(?: bui|\))/i,
|
|
2133
2144
|
/\b(v[12]\d{3}\w?[at])(?: bui|;)/i
|
|
2134
2145
|
],
|
|
2135
|
-
[u, [f, "Vivo"], [d,
|
|
2146
|
+
[u, [f, "Vivo"], [d, O]],
|
|
2136
2147
|
[
|
|
2137
2148
|
// Realme
|
|
2138
2149
|
/\b(rmx[1-3]\d{3})(?: bui|;|\))/i
|
|
2139
2150
|
],
|
|
2140
|
-
[u, [f, "Realme"], [d,
|
|
2151
|
+
[u, [f, "Realme"], [d, O]],
|
|
2141
2152
|
[
|
|
2142
2153
|
// Motorola
|
|
2143
2154
|
/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,
|
|
2144
2155
|
/\bmot(?:orola)?[- ](\w*)/i,
|
|
2145
2156
|
/((?:moto(?! 360)[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i
|
|
2146
2157
|
],
|
|
2147
|
-
[u, [f, Ft], [d,
|
|
2158
|
+
[u, [f, Ft], [d, O]],
|
|
2148
2159
|
[
|
|
2149
2160
|
/\b(mz60\d|xoom[2 ]{0,2}) build\//i
|
|
2150
2161
|
],
|
|
@@ -2153,19 +2164,19 @@ var Qo = "2.0.3", ls = 500, ks = "user-agent", _e = "", Cs = "?", It = "function
|
|
|
2153
2164
|
// LG
|
|
2154
2165
|
/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i
|
|
2155
2166
|
],
|
|
2156
|
-
[u, [f,
|
|
2167
|
+
[u, [f, wt], [d, P]],
|
|
2157
2168
|
[
|
|
2158
2169
|
/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,
|
|
2159
2170
|
/\blg[-e;\/ ]+(?!.*(?:browser|netcast|android tv|watch))(\w+)/i,
|
|
2160
2171
|
/\blg-?([\d\w]+) bui/i
|
|
2161
2172
|
],
|
|
2162
|
-
[u, [f,
|
|
2173
|
+
[u, [f, wt], [d, O]],
|
|
2163
2174
|
[
|
|
2164
2175
|
// Lenovo
|
|
2165
2176
|
/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i,
|
|
2166
2177
|
/lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i
|
|
2167
2178
|
],
|
|
2168
|
-
[u, [f,
|
|
2179
|
+
[u, [f, Ts], [d, P]],
|
|
2169
2180
|
[
|
|
2170
2181
|
// Nokia
|
|
2171
2182
|
/(nokia) (t[12][01])/i
|
|
@@ -2175,23 +2186,23 @@ var Qo = "2.0.3", ls = 500, ks = "user-agent", _e = "", Cs = "?", It = "function
|
|
|
2175
2186
|
/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,
|
|
2176
2187
|
/nokia[-_ ]?(([-\w\. ]*))/i
|
|
2177
2188
|
],
|
|
2178
|
-
[[u, /_/g, " "], [d,
|
|
2189
|
+
[[u, /_/g, " "], [d, O], [f, "Nokia"]],
|
|
2179
2190
|
[
|
|
2180
2191
|
// Google
|
|
2181
2192
|
/(pixel (c|tablet))\b/i
|
|
2182
2193
|
// Google Pixel C/Tablet
|
|
2183
2194
|
],
|
|
2184
|
-
[u, [f,
|
|
2195
|
+
[u, [f, Ae], [d, P]],
|
|
2185
2196
|
[
|
|
2186
2197
|
/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i
|
|
2187
2198
|
// Google Pixel
|
|
2188
2199
|
],
|
|
2189
|
-
[u, [f,
|
|
2200
|
+
[u, [f, Ae], [d, O]],
|
|
2190
2201
|
[
|
|
2191
2202
|
// Sony
|
|
2192
2203
|
/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i
|
|
2193
2204
|
],
|
|
2194
|
-
[u, [f, Je], [d,
|
|
2205
|
+
[u, [f, Je], [d, O]],
|
|
2195
2206
|
[
|
|
2196
2207
|
/sony tablet [ps]/i,
|
|
2197
2208
|
/\b(?:sony)?sgp\w+(?: bui|\))/i
|
|
@@ -2202,7 +2213,7 @@ var Qo = "2.0.3", ls = 500, ks = "user-agent", _e = "", Cs = "?", It = "function
|
|
|
2202
2213
|
/ (kb2005|in20[12]5|be20[12][59])\b/i,
|
|
2203
2214
|
/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i
|
|
2204
2215
|
],
|
|
2205
|
-
[u, [f, Ls], [d,
|
|
2216
|
+
[u, [f, Ls], [d, O]],
|
|
2206
2217
|
[
|
|
2207
2218
|
// Amazon
|
|
2208
2219
|
/(alexa)webm/i,
|
|
@@ -2211,12 +2222,12 @@ var Qo = "2.0.3", ls = 500, ks = "user-agent", _e = "", Cs = "?", It = "function
|
|
|
2211
2222
|
/(kf[a-z]+)( bui|\)).+silk\//i
|
|
2212
2223
|
// Kindle Fire HD
|
|
2213
2224
|
],
|
|
2214
|
-
[u, [f,
|
|
2225
|
+
[u, [f, yt], [d, P]],
|
|
2215
2226
|
[
|
|
2216
2227
|
/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i
|
|
2217
2228
|
// Fire Phone
|
|
2218
2229
|
],
|
|
2219
|
-
[[u, /(.+)/g, "Fire Phone $1"], [f,
|
|
2230
|
+
[[u, /(.+)/g, "Fire Phone $1"], [f, yt], [d, O]],
|
|
2220
2231
|
[
|
|
2221
2232
|
// BlackBerry
|
|
2222
2233
|
/(playbook);[-\w\),; ]+(rim)/i
|
|
@@ -2228,7 +2239,7 @@ var Qo = "2.0.3", ls = 500, ks = "user-agent", _e = "", Cs = "?", It = "function
|
|
|
2228
2239
|
/\(bb10; (\w+)/i
|
|
2229
2240
|
// BlackBerry 10
|
|
2230
2241
|
],
|
|
2231
|
-
[u, [f,
|
|
2242
|
+
[u, [f, Os], [d, O]],
|
|
2232
2243
|
[
|
|
2233
2244
|
// Asus
|
|
2234
2245
|
/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i
|
|
@@ -2237,7 +2248,7 @@ var Qo = "2.0.3", ls = 500, ks = "user-agent", _e = "", Cs = "?", It = "function
|
|
|
2237
2248
|
[
|
|
2238
2249
|
/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i
|
|
2239
2250
|
],
|
|
2240
|
-
[u, [f, Ss], [d,
|
|
2251
|
+
[u, [f, Ss], [d, O]],
|
|
2241
2252
|
[
|
|
2242
2253
|
// HTC
|
|
2243
2254
|
/(nexus 9)/i
|
|
@@ -2252,7 +2263,7 @@ var Qo = "2.0.3", ls = 500, ks = "user-agent", _e = "", Cs = "?", It = "function
|
|
|
2252
2263
|
/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i
|
|
2253
2264
|
// Alcatel/GeeksPhone/Nexian/Panasonic/Sony
|
|
2254
2265
|
],
|
|
2255
|
-
[f, [u, /_/g, " "], [d,
|
|
2266
|
+
[f, [u, /_/g, " "], [d, O]],
|
|
2256
2267
|
[
|
|
2257
2268
|
// TCL
|
|
2258
2269
|
/tcl (xess p17aa)/i,
|
|
@@ -2262,12 +2273,12 @@ var Qo = "2.0.3", ls = 500, ks = "user-agent", _e = "", Cs = "?", It = "function
|
|
|
2262
2273
|
[
|
|
2263
2274
|
/droid [\w\.]+; (418(?:7d|8v)|5087z|5102l|61(?:02[dh]|25[adfh]|27[ai]|56[dh]|59k|65[ah])|a509dl|t(?:43(?:0w|1[adepqu])|50(?:6d|7[adju])|6(?:09dl|10k|12b|71[efho]|76[hjk])|7(?:66[ahju]|67[hw]|7[045][bh]|71[hk]|73o|76[ho]|79w|81[hks]?|82h|90[bhsy]|99b)|810[hs]))(_\w(\w|\w\w))?(\)| bui)/i
|
|
2264
2275
|
],
|
|
2265
|
-
[u, [f, "TCL"], [d,
|
|
2276
|
+
[u, [f, "TCL"], [d, O]],
|
|
2266
2277
|
[
|
|
2267
2278
|
// itel
|
|
2268
2279
|
/(itel) ((\w+))/i
|
|
2269
2280
|
],
|
|
2270
|
-
[[f, ve], u, [d,
|
|
2281
|
+
[[f, ve], u, [d, Ee, { tablet: ["p10001l", "w7001"], "*": "mobile" }]],
|
|
2271
2282
|
[
|
|
2272
2283
|
// Acer
|
|
2273
2284
|
/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i
|
|
@@ -2278,34 +2289,34 @@ var Qo = "2.0.3", ls = 500, ks = "user-agent", _e = "", Cs = "?", It = "function
|
|
|
2278
2289
|
/droid.+; (m[1-5] note) bui/i,
|
|
2279
2290
|
/\bmz-([-\w]{2,})/i
|
|
2280
2291
|
],
|
|
2281
|
-
[u, [f, "Meizu"], [d,
|
|
2292
|
+
[u, [f, "Meizu"], [d, O]],
|
|
2282
2293
|
[
|
|
2283
2294
|
// Ulefone
|
|
2284
2295
|
/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i
|
|
2285
2296
|
],
|
|
2286
|
-
[u, [f, "Ulefone"], [d,
|
|
2297
|
+
[u, [f, "Ulefone"], [d, O]],
|
|
2287
2298
|
[
|
|
2288
2299
|
// Energizer
|
|
2289
2300
|
/; (energy ?\w+)(?: bui|\))/i,
|
|
2290
2301
|
/; energizer ([\w ]+)(?: bui|\))/i
|
|
2291
2302
|
],
|
|
2292
|
-
[u, [f, "Energizer"], [d,
|
|
2303
|
+
[u, [f, "Energizer"], [d, O]],
|
|
2293
2304
|
[
|
|
2294
2305
|
// Cat
|
|
2295
2306
|
/; cat (b35);/i,
|
|
2296
2307
|
/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i
|
|
2297
2308
|
],
|
|
2298
|
-
[u, [f, "Cat"], [d,
|
|
2309
|
+
[u, [f, "Cat"], [d, O]],
|
|
2299
2310
|
[
|
|
2300
2311
|
// Smartfren
|
|
2301
2312
|
/((?:new )?andromax[\w- ]+)(?: bui|\))/i
|
|
2302
2313
|
],
|
|
2303
|
-
[u, [f, "Smartfren"], [d,
|
|
2314
|
+
[u, [f, "Smartfren"], [d, O]],
|
|
2304
2315
|
[
|
|
2305
2316
|
// Nothing
|
|
2306
2317
|
/droid.+; (a(?:015|06[35]|142p?))/i
|
|
2307
2318
|
],
|
|
2308
|
-
[u, [f, "Nothing"], [d,
|
|
2319
|
+
[u, [f, "Nothing"], [d, O]],
|
|
2309
2320
|
[
|
|
2310
2321
|
// Archos
|
|
2311
2322
|
/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,
|
|
@@ -2316,7 +2327,7 @@ var Qo = "2.0.3", ls = 500, ks = "user-agent", _e = "", Cs = "?", It = "function
|
|
|
2316
2327
|
/archos ([\w ]+)( b|\))/i,
|
|
2317
2328
|
/; (ac[3-6]\d\w{2,8})( b|\))/i
|
|
2318
2329
|
],
|
|
2319
|
-
[u, [f, "Archos"], [d,
|
|
2330
|
+
[u, [f, "Archos"], [d, O]],
|
|
2320
2331
|
[
|
|
2321
2332
|
// MIXED
|
|
2322
2333
|
/(imo) (tab \w+)/i,
|
|
@@ -2339,7 +2350,7 @@ var Qo = "2.0.3", ls = 500, ks = "user-agent", _e = "", Cs = "?", It = "function
|
|
|
2339
2350
|
/(oppo) ?([\w ]+) bui/i
|
|
2340
2351
|
// OPPO
|
|
2341
2352
|
],
|
|
2342
|
-
[f, u, [d,
|
|
2353
|
+
[f, u, [d, O]],
|
|
2343
2354
|
[
|
|
2344
2355
|
/(kobo)\s(ereader|touch)/i,
|
|
2345
2356
|
// Kobo
|
|
@@ -2358,22 +2369,22 @@ var Qo = "2.0.3", ls = 500, ks = "user-agent", _e = "", Cs = "?", It = "function
|
|
|
2358
2369
|
/droid [\d\.]+; (fp\du?)(?: b|\))/i
|
|
2359
2370
|
// Fairphone
|
|
2360
2371
|
],
|
|
2361
|
-
[u, [f, "Fairphone"], [d,
|
|
2372
|
+
[u, [f, "Fairphone"], [d, O]],
|
|
2362
2373
|
[
|
|
2363
2374
|
/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i
|
|
2364
2375
|
// Nvidia Tablets
|
|
2365
2376
|
],
|
|
2366
|
-
[u, [f,
|
|
2377
|
+
[u, [f, qt], [d, P]],
|
|
2367
2378
|
[
|
|
2368
2379
|
/(sprint) (\w+)/i
|
|
2369
2380
|
// Sprint Phones
|
|
2370
2381
|
],
|
|
2371
|
-
[f, u, [d,
|
|
2382
|
+
[f, u, [d, O]],
|
|
2372
2383
|
[
|
|
2373
2384
|
/(kin\.[onetw]{3})/i
|
|
2374
2385
|
// Microsoft Kin
|
|
2375
2386
|
],
|
|
2376
|
-
[[u, /\./g, " "], [f, xt], [d,
|
|
2387
|
+
[[u, /\./g, " "], [f, xt], [d, O]],
|
|
2377
2388
|
[
|
|
2378
2389
|
/droid.+; ([c6]+|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i
|
|
2379
2390
|
// Zebra
|
|
@@ -2382,7 +2393,7 @@ var Qo = "2.0.3", ls = 500, ks = "user-agent", _e = "", Cs = "?", It = "function
|
|
|
2382
2393
|
[
|
|
2383
2394
|
/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i
|
|
2384
2395
|
],
|
|
2385
|
-
[u, [f, Kt], [d,
|
|
2396
|
+
[u, [f, Kt], [d, O]],
|
|
2386
2397
|
[
|
|
2387
2398
|
///////////////////
|
|
2388
2399
|
// SMARTTVS
|
|
@@ -2390,97 +2401,97 @@ var Qo = "2.0.3", ls = 500, ks = "user-agent", _e = "", Cs = "?", It = "function
|
|
|
2390
2401
|
/smart-tv.+(samsung)/i
|
|
2391
2402
|
// Samsung
|
|
2392
2403
|
],
|
|
2393
|
-
[f, [d,
|
|
2404
|
+
[f, [d, x]],
|
|
2394
2405
|
[
|
|
2395
2406
|
/hbbtv.+maple;(\d+)/i
|
|
2396
2407
|
],
|
|
2397
|
-
[[u, /^/, "SmartTV"], [f, Ze], [d,
|
|
2408
|
+
[[u, /^/, "SmartTV"], [f, Ze], [d, x]],
|
|
2398
2409
|
[
|
|
2399
2410
|
/tcast.+(lg)e?. ([-\w]+)/i
|
|
2400
2411
|
// LG SmartTV
|
|
2401
2412
|
],
|
|
2402
|
-
[f, u, [d,
|
|
2413
|
+
[f, u, [d, x]],
|
|
2403
2414
|
[
|
|
2404
2415
|
/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i
|
|
2405
2416
|
],
|
|
2406
|
-
[[f,
|
|
2417
|
+
[[f, wt], [d, x]],
|
|
2407
2418
|
[
|
|
2408
2419
|
/(apple) ?tv/i
|
|
2409
2420
|
// Apple TV
|
|
2410
2421
|
],
|
|
2411
|
-
[f, [u,
|
|
2422
|
+
[f, [u, Pe + " TV"], [d, x]],
|
|
2412
2423
|
[
|
|
2413
2424
|
/crkey.*devicetype\/chromecast/i
|
|
2414
2425
|
// Google Chromecast Third Generation
|
|
2415
2426
|
],
|
|
2416
|
-
[[u, ke + " Third Generation"], [f,
|
|
2427
|
+
[[u, ke + " Third Generation"], [f, Ae], [d, x]],
|
|
2417
2428
|
[
|
|
2418
2429
|
/crkey.*devicetype\/([^/]*)/i
|
|
2419
2430
|
// Google Chromecast with specific device type
|
|
2420
2431
|
],
|
|
2421
|
-
[[u, /^/, "Chromecast "], [f,
|
|
2432
|
+
[[u, /^/, "Chromecast "], [f, Ae], [d, x]],
|
|
2422
2433
|
[
|
|
2423
2434
|
/fuchsia.*crkey/i
|
|
2424
2435
|
// Google Chromecast Nest Hub
|
|
2425
2436
|
],
|
|
2426
|
-
[[u, ke + " Nest Hub"], [f,
|
|
2437
|
+
[[u, ke + " Nest Hub"], [f, Ae], [d, x]],
|
|
2427
2438
|
[
|
|
2428
2439
|
/crkey/i
|
|
2429
2440
|
// Google Chromecast, Linux-based or unknown
|
|
2430
2441
|
],
|
|
2431
|
-
[[u, ke], [f,
|
|
2442
|
+
[[u, ke], [f, Ae], [d, x]],
|
|
2432
2443
|
[
|
|
2433
2444
|
/(portaltv)/i
|
|
2434
2445
|
// Facebook Portal TV
|
|
2435
2446
|
],
|
|
2436
|
-
[u, [f, Gt], [d,
|
|
2447
|
+
[u, [f, Gt], [d, x]],
|
|
2437
2448
|
[
|
|
2438
2449
|
/droid.+aft(\w+)( bui|\))/i
|
|
2439
2450
|
// Fire TV
|
|
2440
2451
|
],
|
|
2441
|
-
[u, [f,
|
|
2452
|
+
[u, [f, yt], [d, x]],
|
|
2442
2453
|
[
|
|
2443
2454
|
/(shield \w+ tv)/i
|
|
2444
2455
|
// Nvidia Shield TV
|
|
2445
2456
|
],
|
|
2446
|
-
[u, [f,
|
|
2457
|
+
[u, [f, qt], [d, x]],
|
|
2447
2458
|
[
|
|
2448
2459
|
/\(dtv[\);].+(aquos)/i,
|
|
2449
2460
|
/(aquos-tv[\w ]+)\)/i
|
|
2450
2461
|
// Sharp
|
|
2451
2462
|
],
|
|
2452
|
-
[u, [f,
|
|
2463
|
+
[u, [f, Bs], [d, x]],
|
|
2453
2464
|
[
|
|
2454
2465
|
/(bravia[\w ]+)( bui|\))/i
|
|
2455
2466
|
// Sony
|
|
2456
2467
|
],
|
|
2457
|
-
[u, [f, Je], [d,
|
|
2468
|
+
[u, [f, Je], [d, x]],
|
|
2458
2469
|
[
|
|
2459
2470
|
/(mi(tv|box)-?\w+) bui/i
|
|
2460
2471
|
// Xiaomi
|
|
2461
2472
|
],
|
|
2462
|
-
[u, [f, jt], [d,
|
|
2473
|
+
[u, [f, jt], [d, x]],
|
|
2463
2474
|
[
|
|
2464
2475
|
/Hbbtv.*(technisat) (.*);/i
|
|
2465
2476
|
// TechniSAT
|
|
2466
2477
|
],
|
|
2467
|
-
[f, u, [d,
|
|
2478
|
+
[f, u, [d, x]],
|
|
2468
2479
|
[
|
|
2469
2480
|
/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,
|
|
2470
2481
|
// Roku
|
|
2471
2482
|
/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i
|
|
2472
2483
|
// HbbTV devices
|
|
2473
2484
|
],
|
|
2474
|
-
[[f,
|
|
2485
|
+
[[f, gt], [u, gt], [d, x]],
|
|
2475
2486
|
[
|
|
2476
2487
|
// SmartTV from Unidentified Vendors
|
|
2477
2488
|
/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i
|
|
2478
2489
|
],
|
|
2479
|
-
[u, [d,
|
|
2490
|
+
[u, [d, x]],
|
|
2480
2491
|
[
|
|
2481
2492
|
/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i
|
|
2482
2493
|
],
|
|
2483
|
-
[[d,
|
|
2494
|
+
[[d, x]],
|
|
2484
2495
|
[
|
|
2485
2496
|
///////////////////
|
|
2486
2497
|
// CONSOLES
|
|
@@ -2495,7 +2506,7 @@ var Qo = "2.0.3", ls = 500, ks = "user-agent", _e = "", Cs = "?", It = "function
|
|
|
2495
2506
|
/droid.+; (shield)( bui|\))/i
|
|
2496
2507
|
// Nvidia Portable
|
|
2497
2508
|
],
|
|
2498
|
-
[u, [f,
|
|
2509
|
+
[u, [f, qt], [d, nt]],
|
|
2499
2510
|
[
|
|
2500
2511
|
/(playstation \w+)/i
|
|
2501
2512
|
// Playstation
|
|
@@ -2513,48 +2524,48 @@ var Qo = "2.0.3", ls = 500, ks = "user-agent", _e = "", Cs = "?", It = "function
|
|
|
2513
2524
|
/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i
|
|
2514
2525
|
// Samsung Galaxy Watch
|
|
2515
2526
|
],
|
|
2516
|
-
[u, [f, Ze], [d,
|
|
2527
|
+
[u, [f, Ze], [d, ue]],
|
|
2517
2528
|
[
|
|
2518
2529
|
/((pebble))app/i,
|
|
2519
2530
|
// Pebble
|
|
2520
2531
|
/(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i
|
|
2521
2532
|
// Asus ZenWatch / LG Watch / Pixel Watch
|
|
2522
2533
|
],
|
|
2523
|
-
[f, u, [d,
|
|
2534
|
+
[f, u, [d, ue]],
|
|
2524
2535
|
[
|
|
2525
2536
|
/(ow(?:19|20)?we?[1-3]{1,3})/i
|
|
2526
2537
|
// Oppo Watch
|
|
2527
2538
|
],
|
|
2528
|
-
[u, [f,
|
|
2539
|
+
[u, [f, _t], [d, ue]],
|
|
2529
2540
|
[
|
|
2530
2541
|
/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i
|
|
2531
2542
|
// Apple Watch
|
|
2532
2543
|
],
|
|
2533
|
-
[u, [f,
|
|
2544
|
+
[u, [f, Pe], [d, ue]],
|
|
2534
2545
|
[
|
|
2535
2546
|
/(opwwe\d{3})/i
|
|
2536
2547
|
// OnePlus Watch
|
|
2537
2548
|
],
|
|
2538
|
-
[u, [f, Ls], [d,
|
|
2549
|
+
[u, [f, Ls], [d, ue]],
|
|
2539
2550
|
[
|
|
2540
2551
|
/(moto 360)/i
|
|
2541
2552
|
// Motorola 360
|
|
2542
2553
|
],
|
|
2543
|
-
[u, [f, Ft], [d,
|
|
2554
|
+
[u, [f, Ft], [d, ue]],
|
|
2544
2555
|
[
|
|
2545
2556
|
/(smartwatch 3)/i
|
|
2546
2557
|
// Sony SmartWatch
|
|
2547
2558
|
],
|
|
2548
|
-
[u, [f, Je], [d,
|
|
2559
|
+
[u, [f, Je], [d, ue]],
|
|
2549
2560
|
[
|
|
2550
2561
|
/(g watch r)/i
|
|
2551
2562
|
// LG G Watch R
|
|
2552
2563
|
],
|
|
2553
|
-
[u, [f,
|
|
2564
|
+
[u, [f, wt], [d, ue]],
|
|
2554
2565
|
[
|
|
2555
2566
|
/droid.+; (wt63?0{2,3})\)/i
|
|
2556
2567
|
],
|
|
2557
|
-
[u, [f, Kt], [d,
|
|
2568
|
+
[u, [f, Kt], [d, ue]],
|
|
2558
2569
|
[
|
|
2559
2570
|
///////////////////
|
|
2560
2571
|
// XR
|
|
@@ -2562,7 +2573,7 @@ var Qo = "2.0.3", ls = 500, ks = "user-agent", _e = "", Cs = "?", It = "function
|
|
|
2562
2573
|
/droid.+; (glass) \d/i
|
|
2563
2574
|
// Google Glass
|
|
2564
2575
|
],
|
|
2565
|
-
[u, [f,
|
|
2576
|
+
[u, [f, Ae], [d, zt]],
|
|
2566
2577
|
[
|
|
2567
2578
|
/(pico) (4|neo3(?: link|pro)?)/i
|
|
2568
2579
|
// Pico
|
|
@@ -2585,12 +2596,12 @@ var Qo = "2.0.3", ls = 500, ks = "user-agent", _e = "", Cs = "?", It = "function
|
|
|
2585
2596
|
/(aeobc)\b/i
|
|
2586
2597
|
// Echo Dot
|
|
2587
2598
|
],
|
|
2588
|
-
[u, [f,
|
|
2599
|
+
[u, [f, yt], [d, at]],
|
|
2589
2600
|
[
|
|
2590
2601
|
/(homepod).+mac os/i
|
|
2591
2602
|
// Apple HomePod
|
|
2592
2603
|
],
|
|
2593
|
-
[u, [f,
|
|
2604
|
+
[u, [f, Pe], [d, at]],
|
|
2594
2605
|
[
|
|
2595
2606
|
/windows iot/i
|
|
2596
2607
|
],
|
|
@@ -2601,7 +2612,7 @@ var Qo = "2.0.3", ls = 500, ks = "user-agent", _e = "", Cs = "?", It = "function
|
|
|
2601
2612
|
///////////////////
|
|
2602
2613
|
/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+?(mobile|vr|\d) safari/i
|
|
2603
2614
|
],
|
|
2604
|
-
[u, [d,
|
|
2615
|
+
[u, [d, Ee, { mobile: "Mobile", xr: "VR", "*": P }]],
|
|
2605
2616
|
[
|
|
2606
2617
|
/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i
|
|
2607
2618
|
// Unidentifiable Tablet
|
|
@@ -2611,7 +2622,7 @@ var Qo = "2.0.3", ls = 500, ks = "user-agent", _e = "", Cs = "?", It = "function
|
|
|
2611
2622
|
/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i
|
|
2612
2623
|
// Unidentifiable Mobile
|
|
2613
2624
|
],
|
|
2614
|
-
[[d,
|
|
2625
|
+
[[d, O]],
|
|
2615
2626
|
[
|
|
2616
2627
|
/droid .+?; ([\w\. -]+)( bui|\))/i
|
|
2617
2628
|
// Generic Android Device
|
|
@@ -2623,7 +2634,7 @@ var Qo = "2.0.3", ls = 500, ks = "user-agent", _e = "", Cs = "?", It = "function
|
|
|
2623
2634
|
/windows.+ edge\/([\w\.]+)/i
|
|
2624
2635
|
// EdgeHTML
|
|
2625
2636
|
],
|
|
2626
|
-
[p, [h,
|
|
2637
|
+
[p, [h, dn + "HTML"]],
|
|
2627
2638
|
[
|
|
2628
2639
|
/(arkweb)\/([\w\.]+)/i
|
|
2629
2640
|
// ArkWeb
|
|
@@ -2670,14 +2681,14 @@ var Qo = "2.0.3", ls = 500, ks = "user-agent", _e = "", Cs = "?", It = "function
|
|
|
2670
2681
|
/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i
|
|
2671
2682
|
// Windows Phone
|
|
2672
2683
|
],
|
|
2673
|
-
[h, [p,
|
|
2684
|
+
[h, [p, Ee, Ps]],
|
|
2674
2685
|
[
|
|
2675
2686
|
/windows nt 6\.2; (arm)/i,
|
|
2676
2687
|
// Windows RT
|
|
2677
2688
|
/windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i,
|
|
2678
2689
|
/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i
|
|
2679
2690
|
],
|
|
2680
|
-
[[p,
|
|
2691
|
+
[[p, Ee, Ps], [h, ds]],
|
|
2681
2692
|
[
|
|
2682
2693
|
// iOS/macOS
|
|
2683
2694
|
/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,
|
|
@@ -2738,7 +2749,7 @@ var Qo = "2.0.3", ls = 500, ks = "user-agent", _e = "", Cs = "?", It = "function
|
|
|
2738
2749
|
/\(bb(10);/i
|
|
2739
2750
|
// BlackBerry 10
|
|
2740
2751
|
],
|
|
2741
|
-
[p, [h,
|
|
2752
|
+
[p, [h, Os]],
|
|
2742
2753
|
[
|
|
2743
2754
|
/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i
|
|
2744
2755
|
// Symbian
|
|
@@ -2817,87 +2828,87 @@ var Qo = "2.0.3", ls = 500, ks = "user-agent", _e = "", Cs = "?", It = "function
|
|
|
2817
2828
|
],
|
|
2818
2829
|
[h, p]
|
|
2819
2830
|
]
|
|
2820
|
-
},
|
|
2831
|
+
}, kt = function() {
|
|
2821
2832
|
var e = { init: {}, isIgnore: {}, isIgnoreRgx: {}, toString: {} };
|
|
2822
2833
|
return ye.call(e.init, [
|
|
2823
|
-
[
|
|
2824
|
-
[me, [
|
|
2825
|
-
[
|
|
2826
|
-
[
|
|
2827
|
-
[
|
|
2834
|
+
[Z, [h, p, pt, d]],
|
|
2835
|
+
[me, [J]],
|
|
2836
|
+
[ce, [d, u, f]],
|
|
2837
|
+
[oe, [h, p]],
|
|
2838
|
+
[ie, [h, p]]
|
|
2828
2839
|
]), ye.call(e.isIgnore, [
|
|
2829
|
-
[
|
|
2830
|
-
[
|
|
2831
|
-
[
|
|
2840
|
+
[Z, [p, pt]],
|
|
2841
|
+
[oe, [p]],
|
|
2842
|
+
[ie, [p]]
|
|
2832
2843
|
]), ye.call(e.isIgnoreRgx, [
|
|
2833
|
-
[
|
|
2834
|
-
[
|
|
2844
|
+
[Z, / ?browser$/i],
|
|
2845
|
+
[ie, / ?os$/i]
|
|
2835
2846
|
]), ye.call(e.toString, [
|
|
2836
|
-
[
|
|
2837
|
-
[me, [
|
|
2838
|
-
[
|
|
2839
|
-
[
|
|
2840
|
-
[
|
|
2847
|
+
[Z, [h, p]],
|
|
2848
|
+
[me, [J]],
|
|
2849
|
+
[ce, [f, u]],
|
|
2850
|
+
[oe, [h, p]],
|
|
2851
|
+
[ie, [h, p]]
|
|
2841
2852
|
]), e;
|
|
2842
|
-
}(),
|
|
2843
|
-
var s =
|
|
2853
|
+
}(), fn = function(e, t) {
|
|
2854
|
+
var s = kt.init[t], o = kt.isIgnore[t] || 0, i = kt.isIgnoreRgx[t] || 0, n = kt.toString[t] || 0;
|
|
2844
2855
|
function a() {
|
|
2845
2856
|
ye.call(this, s);
|
|
2846
2857
|
}
|
|
2847
2858
|
return a.prototype.getItem = function() {
|
|
2848
2859
|
return e;
|
|
2849
2860
|
}, a.prototype.withClientHints = function() {
|
|
2850
|
-
return Ce ? Ce.getHighEntropyValues(
|
|
2851
|
-
return e.setCH(new
|
|
2861
|
+
return Ce ? Ce.getHighEntropyValues(ii).then(function(l) {
|
|
2862
|
+
return e.setCH(new oi(l, !1)).parseCH().get();
|
|
2852
2863
|
}) : e.parseCH().get();
|
|
2853
2864
|
}, a.prototype.withFeatureCheck = function() {
|
|
2854
2865
|
return e.detectFeature().get();
|
|
2855
2866
|
}, t != He && (a.prototype.is = function(l) {
|
|
2856
2867
|
var r = !1;
|
|
2857
|
-
for (var
|
|
2858
|
-
if (this.hasOwnProperty(
|
|
2859
|
-
if (r = !0, l !=
|
|
2860
|
-
} else if (l ==
|
|
2868
|
+
for (var y in this)
|
|
2869
|
+
if (this.hasOwnProperty(y) && !us(o, y) && ve(i ? je(i, this[y]) : this[y]) == ve(i ? je(i, l) : l)) {
|
|
2870
|
+
if (r = !0, l != Se) break;
|
|
2871
|
+
} else if (l == Se && r) {
|
|
2861
2872
|
r = !r;
|
|
2862
2873
|
break;
|
|
2863
2874
|
}
|
|
2864
2875
|
return r;
|
|
2865
2876
|
}, a.prototype.toString = function() {
|
|
2866
|
-
var l =
|
|
2877
|
+
var l = qe;
|
|
2867
2878
|
for (var r in n)
|
|
2868
|
-
typeof this[n[r]] !==
|
|
2869
|
-
return l ||
|
|
2879
|
+
typeof this[n[r]] !== Se && (l += (l ? " " : qe) + this[n[r]]);
|
|
2880
|
+
return l || Se;
|
|
2870
2881
|
}), Ce || (a.prototype.then = function(l) {
|
|
2871
|
-
var r = this,
|
|
2882
|
+
var r = this, y = function() {
|
|
2872
2883
|
for (var C in r)
|
|
2873
2884
|
r.hasOwnProperty(C) && (this[C] = r[C]);
|
|
2874
2885
|
};
|
|
2875
|
-
|
|
2886
|
+
y.prototype = {
|
|
2876
2887
|
is: a.prototype.is,
|
|
2877
2888
|
toString: a.prototype.toString
|
|
2878
2889
|
};
|
|
2879
|
-
var
|
|
2880
|
-
return l(
|
|
2890
|
+
var g = new y();
|
|
2891
|
+
return l(g), g;
|
|
2881
2892
|
}), new a();
|
|
2882
2893
|
};
|
|
2883
|
-
function
|
|
2884
|
-
if (e = e || {}, ye.call(this,
|
|
2894
|
+
function oi(e, t) {
|
|
2895
|
+
if (e = e || {}, ye.call(this, ii), t)
|
|
2885
2896
|
ye.call(this, [
|
|
2886
2897
|
[ps, Wt(e[$e])],
|
|
2887
|
-
[gs, Wt(e[
|
|
2888
|
-
[
|
|
2889
|
-
[u, st(e[
|
|
2890
|
-
[ze, st(e[
|
|
2891
|
-
[ms, st(e[
|
|
2892
|
-
[
|
|
2893
|
-
[Be, Wt(e[
|
|
2894
|
-
[Rt, st(e[
|
|
2898
|
+
[gs, Wt(e[tn])],
|
|
2899
|
+
[O, /\?1/.test(e[an])],
|
|
2900
|
+
[u, st(e[ln])],
|
|
2901
|
+
[ze, st(e[si])],
|
|
2902
|
+
[ms, st(e[rn])],
|
|
2903
|
+
[J, st(e[sn])],
|
|
2904
|
+
[Be, Wt(e[nn])],
|
|
2905
|
+
[Rt, st(e[on])]
|
|
2895
2906
|
]);
|
|
2896
2907
|
else
|
|
2897
2908
|
for (var s in e)
|
|
2898
|
-
this.hasOwnProperty(s) && typeof e[s] !==
|
|
2909
|
+
this.hasOwnProperty(s) && typeof e[s] !== Se && (this[s] = e[s]);
|
|
2899
2910
|
}
|
|
2900
|
-
function
|
|
2911
|
+
function Rs(e, t, s, o) {
|
|
2901
2912
|
return this.get = function(i) {
|
|
2902
2913
|
return i ? this.data.hasOwnProperty(i) ? this.data[i] : void 0 : this.data;
|
|
2903
2914
|
}, this.set = function(i, n) {
|
|
@@ -2905,36 +2916,36 @@ function Vs(e, t, s, o) {
|
|
|
2905
2916
|
}, this.setCH = function(i) {
|
|
2906
2917
|
return this.uaCH = i, this;
|
|
2907
2918
|
}, this.detectFeature = function() {
|
|
2908
|
-
if (
|
|
2919
|
+
if (Q && Q.userAgent == this.ua)
|
|
2909
2920
|
switch (this.itemType) {
|
|
2910
|
-
case
|
|
2911
|
-
|
|
2921
|
+
case Z:
|
|
2922
|
+
Q.brave && typeof Q.brave.isBrave == It && this.set(h, "Brave");
|
|
2912
2923
|
break;
|
|
2913
|
-
case
|
|
2914
|
-
!this.get(d) && Ce && Ce[
|
|
2924
|
+
case ce:
|
|
2925
|
+
!this.get(d) && Ce && Ce[O] && this.set(d, O), this.get(u) == "Macintosh" && Q && typeof Q.standalone !== Se && Q.maxTouchPoints && Q.maxTouchPoints > 2 && this.set(u, "iPad").set(d, P);
|
|
2915
2926
|
break;
|
|
2916
|
-
case
|
|
2927
|
+
case ie:
|
|
2917
2928
|
!this.get(h) && Ce && Ce[ze] && this.set(h, Ce[ze]);
|
|
2918
2929
|
break;
|
|
2919
2930
|
case He:
|
|
2920
2931
|
var i = this.data, n = function(a) {
|
|
2921
2932
|
return i[a].getItem().detectFeature().get();
|
|
2922
2933
|
};
|
|
2923
|
-
this.set(
|
|
2934
|
+
this.set(Z, n(Z)).set(me, n(me)).set(ce, n(ce)).set(oe, n(oe)).set(ie, n(ie));
|
|
2924
2935
|
}
|
|
2925
2936
|
return this;
|
|
2926
2937
|
}, this.parseUA = function() {
|
|
2927
|
-
return this.itemType != He && Yt.call(this.data, this.ua, this.rgxMap), this.itemType ==
|
|
2938
|
+
return this.itemType != He && Yt.call(this.data, this.ua, this.rgxMap), this.itemType == Z && this.set(pt, Xt(this.get(p))), this;
|
|
2928
2939
|
}, this.parseCH = function() {
|
|
2929
2940
|
var i = this.uaCH, n = this.rgxMap;
|
|
2930
2941
|
switch (this.itemType) {
|
|
2931
|
-
case
|
|
2932
|
-
case
|
|
2942
|
+
case Z:
|
|
2943
|
+
case oe:
|
|
2933
2944
|
var a = i[gs] || i[ps], l;
|
|
2934
2945
|
if (a)
|
|
2935
2946
|
for (var r in a) {
|
|
2936
|
-
var
|
|
2937
|
-
this.itemType ==
|
|
2947
|
+
var y = a[r].brand || a[r], g = a[r].version;
|
|
2948
|
+
this.itemType == Z && !/not.a.brand/i.test(y) && (!l || /chrom/i.test(l) && y != Ds) && (y = Ee(y, {
|
|
2938
2949
|
Chrome: "Google Chrome",
|
|
2939
2950
|
Edge: "Microsoft Edge",
|
|
2940
2951
|
"Chrome WebView": "Android WebView",
|
|
@@ -2943,41 +2954,41 @@ function Vs(e, t, s, o) {
|
|
|
2943
2954
|
"MIUI Browser": "Miui Browser",
|
|
2944
2955
|
"Opera Mobi": "OperaMobile",
|
|
2945
2956
|
Yandex: "YaBrowser"
|
|
2946
|
-
}), this.set(h,
|
|
2957
|
+
}), this.set(h, y).set(p, g).set(pt, Xt(g)), l = y), this.itemType == oe && y == Ds && this.set(p, g);
|
|
2947
2958
|
}
|
|
2948
2959
|
break;
|
|
2949
2960
|
case me:
|
|
2950
|
-
var C = i[
|
|
2961
|
+
var C = i[J];
|
|
2951
2962
|
C && (C && i[Rt] == "64" && (C += "64"), Yt.call(this.data, C + ";", n));
|
|
2952
2963
|
break;
|
|
2953
|
-
case
|
|
2954
|
-
if (i[
|
|
2955
|
-
var
|
|
2956
|
-
Yt.call(
|
|
2964
|
+
case ce:
|
|
2965
|
+
if (i[O] && this.set(d, O), i[u] && (this.set(u, i[u]), !this.get(d) || !this.get(f))) {
|
|
2966
|
+
var b = {};
|
|
2967
|
+
Yt.call(b, "droid 9; " + i[u] + ")", n), !this.get(d) && b.type && this.set(d, b.type), !this.get(f) && b.vendor && this.set(f, b.vendor);
|
|
2957
2968
|
}
|
|
2958
2969
|
if (i[Be]) {
|
|
2959
2970
|
var m;
|
|
2960
2971
|
if (typeof i[Be] != "string")
|
|
2961
|
-
for (var
|
|
2962
|
-
m =
|
|
2972
|
+
for (var B = 0; !m && B < i[Be].length; )
|
|
2973
|
+
m = Ee(i[Be][B++], Ns);
|
|
2963
2974
|
else
|
|
2964
|
-
m =
|
|
2975
|
+
m = Ee(i[Be], Ns);
|
|
2965
2976
|
this.set(d, m);
|
|
2966
2977
|
}
|
|
2967
2978
|
break;
|
|
2968
|
-
case
|
|
2969
|
-
var
|
|
2970
|
-
if (
|
|
2971
|
-
var
|
|
2972
|
-
|
|
2979
|
+
case ie:
|
|
2980
|
+
var S = i[ze];
|
|
2981
|
+
if (S) {
|
|
2982
|
+
var F = i[ms];
|
|
2983
|
+
S == ds && (F = parseInt(Xt(F), 10) >= 13 ? "11" : "10"), this.set(h, S).set(p, F);
|
|
2973
2984
|
}
|
|
2974
2985
|
this.get(h) == ds && i[u] == "Xbox" && this.set(h, "Xbox").set(p, void 0);
|
|
2975
2986
|
break;
|
|
2976
2987
|
case He:
|
|
2977
|
-
var
|
|
2978
|
-
return
|
|
2988
|
+
var se = this.data, w = function($) {
|
|
2989
|
+
return se[$].getItem().setCH(i).parseCH().get();
|
|
2979
2990
|
};
|
|
2980
|
-
this.set(
|
|
2991
|
+
this.set(Z, w(Z)).set(me, w(me)).set(ce, w(ce)).set(oe, w(oe)).set(ie, w(ie));
|
|
2981
2992
|
}
|
|
2982
2993
|
return this;
|
|
2983
2994
|
}, ye.call(this, [
|
|
@@ -2985,53 +2996,53 @@ function Vs(e, t, s, o) {
|
|
|
2985
2996
|
["ua", t],
|
|
2986
2997
|
["uaCH", o],
|
|
2987
2998
|
["rgxMap", s],
|
|
2988
|
-
["data",
|
|
2999
|
+
["data", fn(this, e)]
|
|
2989
3000
|
]), this;
|
|
2990
3001
|
}
|
|
2991
3002
|
function we(e, t, s) {
|
|
2992
|
-
if (typeof e ===
|
|
3003
|
+
if (typeof e === _e ? (Dt(e, !0) ? (typeof t === _e && (s = t), t = e) : (s = e, t = void 0), e = void 0) : typeof e === rs && !Dt(t, !0) && (s = t, t = void 0), s && typeof s.append === It) {
|
|
2993
3004
|
var o = {};
|
|
2994
|
-
s.forEach(function(r,
|
|
2995
|
-
o[
|
|
3005
|
+
s.forEach(function(r, y) {
|
|
3006
|
+
o[y] = r;
|
|
2996
3007
|
}), s = o;
|
|
2997
3008
|
}
|
|
2998
3009
|
if (!(this instanceof we))
|
|
2999
3010
|
return new we(e, t, s).getResult();
|
|
3000
3011
|
var i = typeof e === rs ? e : (
|
|
3001
3012
|
// Passed user-agent string
|
|
3002
|
-
s && s[
|
|
3013
|
+
s && s[Cs] ? s[Cs] : (
|
|
3003
3014
|
// User-Agent from passed headers
|
|
3004
|
-
|
|
3015
|
+
Q && Q.userAgent ? Q.userAgent : (
|
|
3005
3016
|
// navigator.userAgent
|
|
3006
|
-
|
|
3017
|
+
qe
|
|
3007
3018
|
)
|
|
3008
3019
|
)
|
|
3009
|
-
), n = new
|
|
3020
|
+
), n = new oi(s, !0), a = t ? cn(Vs, t) : Vs, l = function(r) {
|
|
3010
3021
|
return r == He ? function() {
|
|
3011
|
-
return new
|
|
3022
|
+
return new Rs(r, i, a, n).set("ua", i).set(Z, this.getBrowser()).set(me, this.getCPU()).set(ce, this.getDevice()).set(oe, this.getEngine()).set(ie, this.getOS()).get();
|
|
3012
3023
|
} : function() {
|
|
3013
|
-
return new
|
|
3024
|
+
return new Rs(r, i, a[r], n).parseUA().get();
|
|
3014
3025
|
};
|
|
3015
3026
|
};
|
|
3016
3027
|
return ye.call(this, [
|
|
3017
|
-
["getBrowser", l(
|
|
3028
|
+
["getBrowser", l(Z)],
|
|
3018
3029
|
["getCPU", l(me)],
|
|
3019
|
-
["getDevice", l(
|
|
3020
|
-
["getEngine", l(
|
|
3021
|
-
["getOS", l(
|
|
3030
|
+
["getDevice", l(ce)],
|
|
3031
|
+
["getEngine", l(oe)],
|
|
3032
|
+
["getOS", l(ie)],
|
|
3022
3033
|
["getResult", l(He)],
|
|
3023
3034
|
["getUA", function() {
|
|
3024
3035
|
return i;
|
|
3025
3036
|
}],
|
|
3026
3037
|
["setUA", function(r) {
|
|
3027
|
-
return Ge(r) && (i = r.length > ls ?
|
|
3038
|
+
return Ge(r) && (i = r.length > ls ? gt(r, ls) : r), this;
|
|
3028
3039
|
}]
|
|
3029
3040
|
]).setUA(i), this;
|
|
3030
3041
|
}
|
|
3031
|
-
we.VERSION =
|
|
3032
|
-
we.BROWSER = Ut([h, p,
|
|
3033
|
-
we.CPU = Ut([
|
|
3034
|
-
we.DEVICE = Ut([u, f, d, nt,
|
|
3042
|
+
we.VERSION = en;
|
|
3043
|
+
we.BROWSER = Ut([h, p, pt, d]);
|
|
3044
|
+
we.CPU = Ut([J]);
|
|
3045
|
+
we.DEVICE = Ut([u, f, d, nt, O, x, P, ue, at]);
|
|
3035
3046
|
we.ENGINE = we.OS = Ut([h, p]);
|
|
3036
3047
|
const Zt = typeof navigator < "u" ? navigator.userAgent.toLowerCase().indexOf("firefox") > 0 : !1;
|
|
3037
3048
|
function Jt(e, t, s, o) {
|
|
@@ -3040,12 +3051,12 @@ function Jt(e, t, s, o) {
|
|
|
3040
3051
|
function it(e, t, s, o) {
|
|
3041
3052
|
e.removeEventListener ? e.removeEventListener(t, s, o) : e.detachEvent && e.detachEvent("on".concat(t), s);
|
|
3042
3053
|
}
|
|
3043
|
-
function
|
|
3054
|
+
function ni(e, t) {
|
|
3044
3055
|
const s = t.slice(0, t.length - 1);
|
|
3045
3056
|
for (let o = 0; o < s.length; o++) s[o] = e[s[o].toLowerCase()];
|
|
3046
3057
|
return s;
|
|
3047
3058
|
}
|
|
3048
|
-
function
|
|
3059
|
+
function ai(e) {
|
|
3049
3060
|
typeof e != "string" && (e = ""), e = e.replace(/\s/g, "");
|
|
3050
3061
|
const t = e.split(",");
|
|
3051
3062
|
let s = t.lastIndexOf("");
|
|
@@ -3053,7 +3064,7 @@ function ni(e) {
|
|
|
3053
3064
|
t[s - 1] += ",", t.splice(s, 1), s = t.lastIndexOf("");
|
|
3054
3065
|
return t;
|
|
3055
3066
|
}
|
|
3056
|
-
function
|
|
3067
|
+
function hn(e, t) {
|
|
3057
3068
|
const s = e.length >= t.length ? e : t, o = e.length >= t.length ? t : e;
|
|
3058
3069
|
let i = !0;
|
|
3059
3070
|
for (let n = 0; n < s.length; n++)
|
|
@@ -3112,7 +3123,7 @@ const Ke = {
|
|
|
3112
3123
|
"[": 219,
|
|
3113
3124
|
"]": 221,
|
|
3114
3125
|
"\\": 220
|
|
3115
|
-
},
|
|
3126
|
+
}, re = {
|
|
3116
3127
|
// shiftKey
|
|
3117
3128
|
"⇧": 16,
|
|
3118
3129
|
shift: 16,
|
|
@@ -3137,32 +3148,32 @@ const Ke = {
|
|
|
3137
3148
|
ctrlKey: 17,
|
|
3138
3149
|
altKey: 18,
|
|
3139
3150
|
metaKey: 91
|
|
3140
|
-
},
|
|
3151
|
+
}, K = {
|
|
3141
3152
|
16: !1,
|
|
3142
3153
|
18: !1,
|
|
3143
3154
|
17: !1,
|
|
3144
3155
|
91: !1
|
|
3145
|
-
},
|
|
3156
|
+
}, H = {};
|
|
3146
3157
|
for (let e = 1; e < 20; e++)
|
|
3147
3158
|
Ke["f".concat(e)] = 111 + e;
|
|
3148
|
-
let
|
|
3149
|
-
const ge = /* @__PURE__ */ new Map(), De = (e) => Ke[e.toLowerCase()] ||
|
|
3150
|
-
function
|
|
3151
|
-
|
|
3152
|
-
}
|
|
3153
|
-
function gt() {
|
|
3154
|
-
return ai || "all";
|
|
3159
|
+
let U = [], ct = null, li = "all";
|
|
3160
|
+
const ge = /* @__PURE__ */ new Map(), De = (e) => Ke[e.toLowerCase()] || re[e.toLowerCase()] || e.toUpperCase().charCodeAt(0), pn = (e) => Object.keys(Ke).find((t) => Ke[t] === e), gn = (e) => Object.keys(re).find((t) => re[t] === e);
|
|
3161
|
+
function ri(e) {
|
|
3162
|
+
li = e || "all";
|
|
3155
3163
|
}
|
|
3156
|
-
function
|
|
3157
|
-
return
|
|
3164
|
+
function mt() {
|
|
3165
|
+
return li || "all";
|
|
3158
3166
|
}
|
|
3159
3167
|
function mn() {
|
|
3160
|
-
return
|
|
3168
|
+
return U.slice(0);
|
|
3161
3169
|
}
|
|
3162
3170
|
function bn() {
|
|
3171
|
+
return U.map((e) => pn(e) || gn(e) || String.fromCharCode(e));
|
|
3172
|
+
}
|
|
3173
|
+
function vn() {
|
|
3163
3174
|
const e = [];
|
|
3164
|
-
return Object.keys(
|
|
3165
|
-
|
|
3175
|
+
return Object.keys(H).forEach((t) => {
|
|
3176
|
+
H[t].forEach((s) => {
|
|
3166
3177
|
let {
|
|
3167
3178
|
key: o,
|
|
3168
3179
|
scope: i,
|
|
@@ -3178,7 +3189,7 @@ function bn() {
|
|
|
3178
3189
|
});
|
|
3179
3190
|
}), e;
|
|
3180
3191
|
}
|
|
3181
|
-
function
|
|
3192
|
+
function yn(e) {
|
|
3182
3193
|
const t = e.target || e.srcElement, {
|
|
3183
3194
|
tagName: s
|
|
3184
3195
|
} = t;
|
|
@@ -3186,48 +3197,48 @@ function vn(e) {
|
|
|
3186
3197
|
const i = s === "INPUT" && !["checkbox", "radio", "range", "button", "file", "reset", "submit", "color"].includes(t.type);
|
|
3187
3198
|
return (t.isContentEditable || (i || s === "TEXTAREA" || s === "SELECT") && !t.readOnly) && (o = !1), o;
|
|
3188
3199
|
}
|
|
3189
|
-
function
|
|
3190
|
-
return typeof e == "string" && (e = De(e)),
|
|
3200
|
+
function wn(e) {
|
|
3201
|
+
return typeof e == "string" && (e = De(e)), U.indexOf(e) !== -1;
|
|
3191
3202
|
}
|
|
3192
|
-
function
|
|
3203
|
+
function kn(e, t) {
|
|
3193
3204
|
let s, o;
|
|
3194
|
-
e || (e =
|
|
3195
|
-
for (const i in
|
|
3196
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
3197
|
-
for (s =
|
|
3205
|
+
e || (e = mt());
|
|
3206
|
+
for (const i in H)
|
|
3207
|
+
if (Object.prototype.hasOwnProperty.call(H, i))
|
|
3208
|
+
for (s = H[i], o = 0; o < s.length; )
|
|
3198
3209
|
s[o].scope === e ? s.splice(o, 1).forEach((a) => {
|
|
3199
3210
|
let {
|
|
3200
3211
|
element: l
|
|
3201
3212
|
} = a;
|
|
3202
3213
|
return bs(l);
|
|
3203
3214
|
}) : o++;
|
|
3204
|
-
|
|
3215
|
+
mt() === e && ri(t || "all");
|
|
3205
3216
|
}
|
|
3206
|
-
function
|
|
3217
|
+
function Cn(e) {
|
|
3207
3218
|
let t = e.keyCode || e.which || e.charCode;
|
|
3208
3219
|
e.key && (t = De(e.key));
|
|
3209
|
-
const s =
|
|
3210
|
-
if (s >= 0 &&
|
|
3211
|
-
|
|
3212
|
-
for (const o in
|
|
3220
|
+
const s = U.indexOf(t);
|
|
3221
|
+
if (s >= 0 && U.splice(s, 1), e.key && e.key.toLowerCase() === "meta" && U.splice(0, U.length), (t === 93 || t === 224) && (t = 91), t in K) {
|
|
3222
|
+
K[t] = !1;
|
|
3223
|
+
for (const o in re) re[o] === t && (he[o] = !1);
|
|
3213
3224
|
}
|
|
3214
3225
|
}
|
|
3215
|
-
function
|
|
3226
|
+
function di(e) {
|
|
3216
3227
|
if (typeof e > "u")
|
|
3217
|
-
Object.keys(
|
|
3218
|
-
Array.isArray(
|
|
3228
|
+
Object.keys(H).forEach((i) => {
|
|
3229
|
+
Array.isArray(H[i]) && H[i].forEach((n) => Ct(n)), delete H[i];
|
|
3219
3230
|
}), bs(null);
|
|
3220
3231
|
else if (Array.isArray(e))
|
|
3221
3232
|
e.forEach((i) => {
|
|
3222
|
-
i.key &&
|
|
3233
|
+
i.key && Ct(i);
|
|
3223
3234
|
});
|
|
3224
3235
|
else if (typeof e == "object")
|
|
3225
|
-
e.key &&
|
|
3236
|
+
e.key && Ct(e);
|
|
3226
3237
|
else if (typeof e == "string") {
|
|
3227
3238
|
for (var t = arguments.length, s = new Array(t > 1 ? t - 1 : 0), o = 1; o < t; o++)
|
|
3228
3239
|
s[o - 1] = arguments[o];
|
|
3229
3240
|
let [i, n] = s;
|
|
3230
|
-
typeof i == "function" && (n = i, i = ""),
|
|
3241
|
+
typeof i == "function" && (n = i, i = ""), Ct({
|
|
3231
3242
|
key: e,
|
|
3232
3243
|
scope: i,
|
|
3233
3244
|
method: n,
|
|
@@ -3235,122 +3246,122 @@ function ri(e) {
|
|
|
3235
3246
|
});
|
|
3236
3247
|
}
|
|
3237
3248
|
}
|
|
3238
|
-
const
|
|
3249
|
+
const Ct = (e) => {
|
|
3239
3250
|
let {
|
|
3240
3251
|
key: t,
|
|
3241
3252
|
scope: s,
|
|
3242
3253
|
method: o,
|
|
3243
3254
|
splitKey: i = "+"
|
|
3244
3255
|
} = e;
|
|
3245
|
-
|
|
3246
|
-
const l = a.split(i), r = l.length,
|
|
3247
|
-
if (!
|
|
3248
|
-
s || (s =
|
|
3249
|
-
const C = r > 1 ?
|
|
3250
|
-
|
|
3251
|
-
const
|
|
3252
|
-
return
|
|
3253
|
-
}),
|
|
3256
|
+
ai(t).forEach((a) => {
|
|
3257
|
+
const l = a.split(i), r = l.length, y = l[r - 1], g = y === "*" ? "*" : De(y);
|
|
3258
|
+
if (!H[g]) return;
|
|
3259
|
+
s || (s = mt());
|
|
3260
|
+
const C = r > 1 ? ni(re, l) : [], b = [];
|
|
3261
|
+
H[g] = H[g].filter((m) => {
|
|
3262
|
+
const S = (o ? m.method === o : !0) && m.scope === s && hn(m.mods, C);
|
|
3263
|
+
return S && b.push(m.element), !S;
|
|
3264
|
+
}), b.forEach((m) => bs(m));
|
|
3254
3265
|
});
|
|
3255
3266
|
};
|
|
3256
|
-
function
|
|
3267
|
+
function Us(e, t, s, o) {
|
|
3257
3268
|
if (t.element !== o)
|
|
3258
3269
|
return;
|
|
3259
3270
|
let i;
|
|
3260
3271
|
if (t.scope === s || t.scope === "all") {
|
|
3261
3272
|
i = t.mods.length > 0;
|
|
3262
|
-
for (const n in
|
|
3263
|
-
Object.prototype.hasOwnProperty.call(
|
|
3264
|
-
(t.mods.length === 0 && !
|
|
3273
|
+
for (const n in K)
|
|
3274
|
+
Object.prototype.hasOwnProperty.call(K, n) && (!K[n] && t.mods.indexOf(+n) > -1 || K[n] && t.mods.indexOf(+n) === -1) && (i = !1);
|
|
3275
|
+
(t.mods.length === 0 && !K[16] && !K[18] && !K[17] && !K[91] || i || t.shortcut === "*") && (t.keys = [], t.keys = t.keys.concat(U), t.method(e, t) === !1 && (e.preventDefault ? e.preventDefault() : e.returnValue = !1, e.stopPropagation && e.stopPropagation(), e.cancelBubble && (e.cancelBubble = !0)));
|
|
3265
3276
|
}
|
|
3266
3277
|
}
|
|
3267
|
-
function
|
|
3268
|
-
const s =
|
|
3278
|
+
function Hs(e, t) {
|
|
3279
|
+
const s = H["*"];
|
|
3269
3280
|
let o = e.keyCode || e.which || e.charCode;
|
|
3270
|
-
if (e.key && (o = De(e.key)), o === Ke.capslock || !
|
|
3271
|
-
if ((o === 93 || o === 224) && (o = 91),
|
|
3281
|
+
if (e.key && (o = De(e.key)), o === Ke.capslock || !he.filter.call(this, e)) return;
|
|
3282
|
+
if ((o === 93 || o === 224) && (o = 91), U.indexOf(o) === -1 && o !== 229 && U.push(o), ["metaKey", "ctrlKey", "altKey", "shiftKey"].forEach((l) => {
|
|
3272
3283
|
const r = lt[l];
|
|
3273
|
-
e[l] &&
|
|
3274
|
-
}), o in
|
|
3275
|
-
|
|
3276
|
-
for (const l in
|
|
3277
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
3278
|
-
const r = lt[
|
|
3279
|
-
|
|
3284
|
+
e[l] && U.indexOf(r) === -1 ? U.push(r) : !e[l] && U.indexOf(r) > -1 ? U.splice(U.indexOf(r), 1) : l === "metaKey" && e[l] && (U = U.filter((y) => y in lt || y === o));
|
|
3285
|
+
}), o in K) {
|
|
3286
|
+
K[o] = !0;
|
|
3287
|
+
for (const l in re)
|
|
3288
|
+
if (Object.prototype.hasOwnProperty.call(re, l)) {
|
|
3289
|
+
const r = lt[re[l]];
|
|
3290
|
+
he[l] = e[r];
|
|
3280
3291
|
}
|
|
3281
3292
|
if (!s) return;
|
|
3282
3293
|
}
|
|
3283
|
-
for (const l in
|
|
3284
|
-
Object.prototype.hasOwnProperty.call(
|
|
3285
|
-
e.getModifierState && !(e.altKey && !e.ctrlKey) && e.getModifierState("AltGraph") && (
|
|
3286
|
-
const i =
|
|
3294
|
+
for (const l in K)
|
|
3295
|
+
Object.prototype.hasOwnProperty.call(K, l) && (K[l] = e[lt[l]]);
|
|
3296
|
+
e.getModifierState && !(e.altKey && !e.ctrlKey) && e.getModifierState("AltGraph") && (U.indexOf(17) === -1 && U.push(17), U.indexOf(18) === -1 && U.push(18), K[17] = !0, K[18] = !0);
|
|
3297
|
+
const i = mt();
|
|
3287
3298
|
if (s)
|
|
3288
3299
|
for (let l = 0; l < s.length; l++)
|
|
3289
|
-
s[l].scope === i && (e.type === "keydown" && s[l].keydown || e.type === "keyup" && s[l].keyup) &&
|
|
3290
|
-
if (!(o in
|
|
3291
|
-
const n =
|
|
3300
|
+
s[l].scope === i && (e.type === "keydown" && s[l].keydown || e.type === "keyup" && s[l].keyup) && Us(e, s[l], i, t);
|
|
3301
|
+
if (!(o in H)) return;
|
|
3302
|
+
const n = H[o], a = n.length;
|
|
3292
3303
|
for (let l = 0; l < a; l++)
|
|
3293
3304
|
if ((e.type === "keydown" && n[l].keydown || e.type === "keyup" && n[l].keyup) && n[l].key) {
|
|
3294
3305
|
const r = n[l], {
|
|
3295
|
-
splitKey:
|
|
3296
|
-
} = r,
|
|
3297
|
-
for (let
|
|
3298
|
-
C.push(De(b
|
|
3299
|
-
C.sort().join("") ===
|
|
3306
|
+
splitKey: y
|
|
3307
|
+
} = r, g = r.key.split(y), C = [];
|
|
3308
|
+
for (let b = 0; b < g.length; b++)
|
|
3309
|
+
C.push(De(g[b]));
|
|
3310
|
+
C.sort().join("") === U.sort().join("") && Us(e, r, i, t);
|
|
3300
3311
|
}
|
|
3301
3312
|
}
|
|
3302
|
-
function
|
|
3303
|
-
|
|
3304
|
-
const o =
|
|
3305
|
-
let i = [], n = "all", a = document, l = 0, r = !1,
|
|
3306
|
-
for (s === void 0 && typeof t == "function" && (s = t), Object.prototype.toString.call(t) === "[object Object]" && (t.scope && (n = t.scope), t.element && (a = t.element), t.keyup && (r = t.keyup), t.keydown !== void 0 && (
|
|
3307
|
-
e = o[l].split(
|
|
3313
|
+
function he(e, t, s) {
|
|
3314
|
+
U = [];
|
|
3315
|
+
const o = ai(e);
|
|
3316
|
+
let i = [], n = "all", a = document, l = 0, r = !1, y = !0, g = "+", C = !1, b = !1;
|
|
3317
|
+
for (s === void 0 && typeof t == "function" && (s = t), Object.prototype.toString.call(t) === "[object Object]" && (t.scope && (n = t.scope), t.element && (a = t.element), t.keyup && (r = t.keyup), t.keydown !== void 0 && (y = t.keydown), t.capture !== void 0 && (C = t.capture), typeof t.splitKey == "string" && (g = t.splitKey), t.single === !0 && (b = !0)), typeof t == "string" && (n = t), b && di(e, n); l < o.length; l++)
|
|
3318
|
+
e = o[l].split(g), i = [], e.length > 1 && (i = ni(re, e)), e = e[e.length - 1], e = e === "*" ? "*" : De(e), e in H || (H[e] = []), H[e].push({
|
|
3308
3319
|
keyup: r,
|
|
3309
|
-
keydown:
|
|
3320
|
+
keydown: y,
|
|
3310
3321
|
scope: n,
|
|
3311
3322
|
mods: i,
|
|
3312
3323
|
shortcut: o[l],
|
|
3313
3324
|
method: s,
|
|
3314
3325
|
key: o[l],
|
|
3315
|
-
splitKey:
|
|
3326
|
+
splitKey: g,
|
|
3316
3327
|
element: a
|
|
3317
3328
|
});
|
|
3318
3329
|
if (typeof a < "u" && window) {
|
|
3319
3330
|
if (!ge.has(a)) {
|
|
3320
3331
|
const m = function() {
|
|
3321
|
-
let
|
|
3322
|
-
return
|
|
3323
|
-
},
|
|
3324
|
-
let
|
|
3325
|
-
|
|
3332
|
+
let S = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : window.event;
|
|
3333
|
+
return Hs(S, a);
|
|
3334
|
+
}, B = function() {
|
|
3335
|
+
let S = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : window.event;
|
|
3336
|
+
Hs(S, a), Cn(S);
|
|
3326
3337
|
};
|
|
3327
3338
|
ge.set(a, {
|
|
3328
3339
|
keydownListener: m,
|
|
3329
|
-
keyupListenr:
|
|
3340
|
+
keyupListenr: B,
|
|
3330
3341
|
capture: C
|
|
3331
|
-
}), Jt(a, "keydown", m, C), Jt(a, "keyup",
|
|
3342
|
+
}), Jt(a, "keydown", m, C), Jt(a, "keyup", B, C);
|
|
3332
3343
|
}
|
|
3333
|
-
if (!
|
|
3344
|
+
if (!ct) {
|
|
3334
3345
|
const m = () => {
|
|
3335
|
-
|
|
3346
|
+
U = [];
|
|
3336
3347
|
};
|
|
3337
|
-
|
|
3348
|
+
ct = {
|
|
3338
3349
|
listener: m,
|
|
3339
3350
|
capture: C
|
|
3340
3351
|
}, Jt(window, "focus", m, C);
|
|
3341
3352
|
}
|
|
3342
3353
|
}
|
|
3343
3354
|
}
|
|
3344
|
-
function
|
|
3355
|
+
function En(e) {
|
|
3345
3356
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "all";
|
|
3346
|
-
Object.keys(
|
|
3347
|
-
|
|
3357
|
+
Object.keys(H).forEach((s) => {
|
|
3358
|
+
H[s].filter((i) => i.scope === t && i.shortcut === e).forEach((i) => {
|
|
3348
3359
|
i && i.method && i.method();
|
|
3349
3360
|
});
|
|
3350
3361
|
});
|
|
3351
3362
|
}
|
|
3352
3363
|
function bs(e) {
|
|
3353
|
-
const t = Object.values(
|
|
3364
|
+
const t = Object.values(H).flat();
|
|
3354
3365
|
if (t.findIndex((o) => {
|
|
3355
3366
|
let {
|
|
3356
3367
|
element: i
|
|
@@ -3371,57 +3382,57 @@ function bs(e) {
|
|
|
3371
3382
|
capture: l
|
|
3372
3383
|
} = ge.get(i) || {};
|
|
3373
3384
|
n && a && (it(i, "keyup", a, l), it(i, "keydown", n, l), ge.delete(i));
|
|
3374
|
-
}), ge.clear(), Object.keys(
|
|
3385
|
+
}), ge.clear(), Object.keys(H).forEach((i) => delete H[i]), ct)) {
|
|
3375
3386
|
const {
|
|
3376
3387
|
listener: i,
|
|
3377
3388
|
capture: n
|
|
3378
|
-
} =
|
|
3379
|
-
it(window, "focus", i, n),
|
|
3389
|
+
} = ct;
|
|
3390
|
+
it(window, "focus", i, n), ct = null;
|
|
3380
3391
|
}
|
|
3381
3392
|
}
|
|
3382
3393
|
const Qt = {
|
|
3383
|
-
getPressedKeyString:
|
|
3384
|
-
setScope:
|
|
3385
|
-
getScope:
|
|
3386
|
-
deleteScope:
|
|
3387
|
-
getPressedKeyCodes:
|
|
3388
|
-
getAllKeyCodes:
|
|
3389
|
-
isPressed:
|
|
3390
|
-
filter:
|
|
3391
|
-
trigger:
|
|
3392
|
-
unbind:
|
|
3394
|
+
getPressedKeyString: bn,
|
|
3395
|
+
setScope: ri,
|
|
3396
|
+
getScope: mt,
|
|
3397
|
+
deleteScope: kn,
|
|
3398
|
+
getPressedKeyCodes: mn,
|
|
3399
|
+
getAllKeyCodes: vn,
|
|
3400
|
+
isPressed: wn,
|
|
3401
|
+
filter: yn,
|
|
3402
|
+
trigger: En,
|
|
3403
|
+
unbind: di,
|
|
3393
3404
|
keyMap: Ke,
|
|
3394
|
-
modifier:
|
|
3405
|
+
modifier: re,
|
|
3395
3406
|
modifierMap: lt
|
|
3396
3407
|
};
|
|
3397
3408
|
for (const e in Qt)
|
|
3398
|
-
Object.prototype.hasOwnProperty.call(Qt, e) && (
|
|
3409
|
+
Object.prototype.hasOwnProperty.call(Qt, e) && (he[e] = Qt[e]);
|
|
3399
3410
|
if (typeof window < "u") {
|
|
3400
3411
|
const e = window.hotkeys;
|
|
3401
|
-
|
|
3412
|
+
he.noConflict = (t) => (t && window.hotkeys === he && (window.hotkeys = e), he), window.hotkeys = he;
|
|
3402
3413
|
}
|
|
3403
3414
|
const Sn = {
|
|
3404
3415
|
class: "dsg-dropdown--trigger",
|
|
3405
3416
|
tabindex: "0"
|
|
3406
|
-
},
|
|
3417
|
+
}, On = { class: "dsg-dropdown--menu" }, $n = {
|
|
3407
3418
|
key: 0,
|
|
3408
3419
|
class: "dsg-dropdown--menu-header"
|
|
3409
|
-
},
|
|
3420
|
+
}, Tn = {
|
|
3410
3421
|
key: 1,
|
|
3411
3422
|
class: "dsg-dropdown--menu-header"
|
|
3412
|
-
},
|
|
3423
|
+
}, An = { class: "dsg-dropdown--menu-title" }, Ln = {
|
|
3413
3424
|
key: 2,
|
|
3414
3425
|
class: "dsg-dropdown--menu-header subsection"
|
|
3415
|
-
},
|
|
3426
|
+
}, Bn = { class: "dsg-dropdown--menu-subtitle" }, In = ["href", "target", "tabindex", "title", "onClick"], Dn = {
|
|
3416
3427
|
key: 0,
|
|
3417
3428
|
class: "dsg-dropdown--menu-item--content"
|
|
3418
|
-
},
|
|
3429
|
+
}, Mn = {
|
|
3419
3430
|
key: 0,
|
|
3420
3431
|
class: "dsg-dropdown--menu-item--icon"
|
|
3421
|
-
}, Pn = { class: "dsg-dropdown--menu-item--label" },
|
|
3432
|
+
}, Pn = { class: "dsg-dropdown--menu-item--label" }, Nn = { class: "dsg-dropdown--menu-item--hotkey" }, Vn = { key: 0 }, Rn = {
|
|
3422
3433
|
key: 1,
|
|
3423
3434
|
class: "dsg-dropdown--menu-item--content"
|
|
3424
|
-
},
|
|
3435
|
+
}, Un = /* @__PURE__ */ _({
|
|
3425
3436
|
__name: "DsgDropdown",
|
|
3426
3437
|
props: {
|
|
3427
3438
|
label: { default: "" },
|
|
@@ -3435,45 +3446,46 @@ const Sn = {
|
|
|
3435
3446
|
headerType: { default: "none" },
|
|
3436
3447
|
headerTitle: { default: "" },
|
|
3437
3448
|
classes: { default: "" },
|
|
3449
|
+
strategy: { default: "absolute" },
|
|
3438
3450
|
skidding: { default: 0 },
|
|
3439
3451
|
distance: { default: 0 }
|
|
3440
3452
|
},
|
|
3441
3453
|
setup(e, { expose: t }) {
|
|
3442
|
-
const s =
|
|
3454
|
+
const s = W(e.isOpen), o = new we().getOS().name;
|
|
3443
3455
|
e.menuItems.forEach((m) => {
|
|
3444
3456
|
});
|
|
3445
3457
|
const i = be("floatingVueDropdownEl"), n = be("dsgDropdownAvatarTriggerEl"), a = be("dsgDropdownButtonTriggerEl"), l = (m) => {
|
|
3446
|
-
|
|
3458
|
+
y(), n.value && setTimeout(() => {
|
|
3447
3459
|
n?.value?.toggleFocus(s.value);
|
|
3448
3460
|
}, 100);
|
|
3449
3461
|
}, r = (m) => {
|
|
3450
|
-
|
|
3462
|
+
y(), a.value && setTimeout(() => {
|
|
3451
3463
|
a?.value?.focusButton(s.value);
|
|
3452
3464
|
}, 100);
|
|
3453
|
-
},
|
|
3465
|
+
}, y = () => {
|
|
3454
3466
|
s.value = !s.value, s.value ? i.value?.show() : i.value?.hide();
|
|
3455
|
-
},
|
|
3456
|
-
|
|
3457
|
-
}, C = be("dsgDropdown"),
|
|
3458
|
-
return
|
|
3467
|
+
}, g = (m, B) => {
|
|
3468
|
+
B.uri || m.preventDefault(), B.action && (B.action(), i.value?.hide());
|
|
3469
|
+
}, C = be("dsgDropdown"), b = (m) => (m = m.toLowerCase(), m.replace("ctrl", "⌃").replace("shift", "⇧").replace("alt", "⌥").replace("cmd", o === "macOS" ? "⌘" : "⊞").replace("++", "+").replace("+", "").toUpperCase());
|
|
3470
|
+
return Mt(() => {
|
|
3459
3471
|
e.menuItems.forEach((m) => {
|
|
3460
|
-
m.hotkey &&
|
|
3461
|
-
m.hotkeyPreventDefault && m.hotkeyPreventDefault === !0 &&
|
|
3472
|
+
m.hotkey && he(m.hotkey, (B) => {
|
|
3473
|
+
m.hotkeyPreventDefault && m.hotkeyPreventDefault === !0 && B.preventDefault(), m.uri && window.open(m.uri, m.uriTarget ?? "_blank"), typeof m.action == "function" && (m.action(), i.value?.hide());
|
|
3462
3474
|
});
|
|
3463
3475
|
});
|
|
3464
3476
|
}), Si(() => {
|
|
3465
|
-
|
|
3477
|
+
he.deleteScope("dsgDropdown");
|
|
3466
3478
|
}), t({
|
|
3467
|
-
handleTriggerClick:
|
|
3468
|
-
}), (m,
|
|
3469
|
-
class:
|
|
3479
|
+
handleTriggerClick: y
|
|
3480
|
+
}), (m, B) => (c(), v("div", {
|
|
3481
|
+
class: V(["dsg-dropdown", m.classes]),
|
|
3470
3482
|
ref: "dsgDropdown"
|
|
3471
3483
|
}, [
|
|
3472
|
-
|
|
3484
|
+
L(ae(hi), ee({
|
|
3473
3485
|
triggers: [],
|
|
3474
3486
|
placement: m.placement,
|
|
3475
3487
|
"handle-resize": !1,
|
|
3476
|
-
strategy:
|
|
3488
|
+
strategy: m.strategy,
|
|
3477
3489
|
shown: s.value,
|
|
3478
3490
|
flip: !1,
|
|
3479
3491
|
shift: !1,
|
|
@@ -3482,14 +3494,14 @@ const Sn = {
|
|
|
3482
3494
|
skidding: m.skidding,
|
|
3483
3495
|
distance: m.distance,
|
|
3484
3496
|
class: "dsg-dropdown--popper",
|
|
3485
|
-
onHide:
|
|
3497
|
+
onHide: B[0] || (B[0] = (S) => s.value = !1),
|
|
3486
3498
|
ref: "floatingVueDropdownEl"
|
|
3487
|
-
}, {
|
|
3499
|
+
}, m.$attrs), {
|
|
3488
3500
|
popper: Ie(() => [
|
|
3489
|
-
|
|
3490
|
-
|
|
3491
|
-
m.headerType === "avatar" ? (c(),
|
|
3492
|
-
m.avatarInfo ? (c(), M(
|
|
3501
|
+
E("div", On, [
|
|
3502
|
+
T(m.$slots, "dsg-dropdown-menu--header", {}, () => [
|
|
3503
|
+
m.headerType === "avatar" ? (c(), v("div", $n, [
|
|
3504
|
+
m.avatarInfo ? (c(), M(ft, {
|
|
3493
3505
|
key: 0,
|
|
3494
3506
|
size: "md",
|
|
3495
3507
|
profileUri: m.avatarInfo.profileUri,
|
|
@@ -3498,45 +3510,45 @@ const Sn = {
|
|
|
3498
3510
|
title: m.avatarInfo.title,
|
|
3499
3511
|
"sub-text": m.avatarInfo.subText
|
|
3500
3512
|
}, null, 8, ["profileUri", "fullName", "isOnline", "title", "sub-text"])) : k("", !0)
|
|
3501
|
-
])) : m.headerType === "title" ? (c(),
|
|
3502
|
-
|
|
3503
|
-
])) : m.headerType === "subsection" ? (c(),
|
|
3504
|
-
|
|
3513
|
+
])) : m.headerType === "title" ? (c(), v("div", Tn, [
|
|
3514
|
+
E("h3", An, D(m.headerTitle), 1)
|
|
3515
|
+
])) : m.headerType === "subsection" ? (c(), v("div", Ln, [
|
|
3516
|
+
E("h4", Bn, D(m.headerTitle), 1)
|
|
3505
3517
|
])) : k("", !0)
|
|
3506
3518
|
]),
|
|
3507
|
-
|
|
3508
|
-
(c(!0),
|
|
3509
|
-
class:
|
|
3510
|
-
href:
|
|
3511
|
-
target:
|
|
3512
|
-
tabindex: !
|
|
3513
|
-
title:
|
|
3514
|
-
key:
|
|
3515
|
-
onClick: (
|
|
3519
|
+
T(m.$slots, "dsg-dropdown-menu-content", {}, () => [
|
|
3520
|
+
(c(!0), v(X, null, le(m.menuItems, (S, F) => (c(), v("a", {
|
|
3521
|
+
class: V(["dsg-dropdown--menu-item", { "is-divider": S.type === "divider" }]),
|
|
3522
|
+
href: S.uri,
|
|
3523
|
+
target: S.uriTarget ?? "_blank",
|
|
3524
|
+
tabindex: !S.uri && S.type !== "divider" ? 0 : void 0,
|
|
3525
|
+
title: S.label,
|
|
3526
|
+
key: F,
|
|
3527
|
+
onClick: (se) => g(se, S)
|
|
3516
3528
|
}, [
|
|
3517
|
-
|
|
3518
|
-
|
|
3519
|
-
|
|
3520
|
-
icon:
|
|
3529
|
+
S.type === "item" || S.type === void 0 ? (c(), v("div", Dn, [
|
|
3530
|
+
S.icon ? (c(), v("div", Mn, [
|
|
3531
|
+
L(G, {
|
|
3532
|
+
icon: S.icon,
|
|
3521
3533
|
size: "xs"
|
|
3522
3534
|
}, null, 8, ["icon"])
|
|
3523
3535
|
])) : k("", !0),
|
|
3524
|
-
|
|
3525
|
-
|
|
3526
|
-
|
|
3536
|
+
E("span", Pn, D(S.label), 1),
|
|
3537
|
+
E("div", Nn, [
|
|
3538
|
+
S.hotkey ? (c(), v("span", Vn, D(b(S.hotkey)), 1)) : k("", !0)
|
|
3527
3539
|
])
|
|
3528
|
-
])) :
|
|
3529
|
-
|
|
3540
|
+
])) : S.type === "divider" ? (c(), v("div", Rn, B[1] || (B[1] = [
|
|
3541
|
+
E("hr", null, null, -1)
|
|
3530
3542
|
]))) : k("", !0)
|
|
3531
|
-
], 10,
|
|
3543
|
+
], 10, In))), 128))
|
|
3532
3544
|
])
|
|
3533
3545
|
])
|
|
3534
3546
|
]),
|
|
3535
3547
|
default: Ie(() => [
|
|
3536
|
-
|
|
3537
|
-
|
|
3538
|
-
m.type === "avatar" ? (c(),
|
|
3539
|
-
m.avatarInfo ? (c(), M(
|
|
3548
|
+
E("div", Sn, [
|
|
3549
|
+
T(m.$slots, "dsg-dropdown--trigger", {}, () => [
|
|
3550
|
+
m.type === "avatar" ? (c(), v(X, { key: 0 }, [
|
|
3551
|
+
m.avatarInfo ? (c(), M(ft, {
|
|
3540
3552
|
key: 0,
|
|
3541
3553
|
size: "lg",
|
|
3542
3554
|
profileUri: m.avatarInfo.profileUri,
|
|
@@ -3552,33 +3564,33 @@ const Sn = {
|
|
|
3552
3564
|
onClick: r,
|
|
3553
3565
|
ref: "dsgDropdownButtonTriggerEl",
|
|
3554
3566
|
"icon-after": "chevron-down",
|
|
3555
|
-
class:
|
|
3567
|
+
class: V({ "dropdown-active": s.value })
|
|
3556
3568
|
}, null, 8, ["theme", "label", "class"])) : m.type === "icon" ? (c(), M(Re, {
|
|
3557
3569
|
key: 2,
|
|
3558
3570
|
"icon-before": m.icon,
|
|
3559
3571
|
size: "sm",
|
|
3560
3572
|
theme: m.buttonTheme,
|
|
3561
|
-
class:
|
|
3562
|
-
onClick:
|
|
3573
|
+
class: V(["dsg-dropdown--trigger-button", { "dropdown-active": s.value }]),
|
|
3574
|
+
onClick: y
|
|
3563
3575
|
}, null, 8, ["icon-before", "theme", "class"])) : k("", !0)
|
|
3564
3576
|
])
|
|
3565
3577
|
])
|
|
3566
3578
|
]),
|
|
3567
3579
|
_: 3
|
|
3568
|
-
},
|
|
3580
|
+
}, 16, ["placement", "strategy", "shown", "boundary", "container", "skidding", "distance"])
|
|
3569
3581
|
], 2));
|
|
3570
3582
|
}
|
|
3571
3583
|
});
|
|
3572
3584
|
function es(e) {
|
|
3573
3585
|
return e === 0 ? !1 : Array.isArray(e) && e.length === 0 ? !0 : !e;
|
|
3574
3586
|
}
|
|
3575
|
-
function
|
|
3587
|
+
function Hn(e) {
|
|
3576
3588
|
return (...t) => !e(...t);
|
|
3577
3589
|
}
|
|
3578
|
-
function
|
|
3590
|
+
function zn(e, t) {
|
|
3579
3591
|
return e === void 0 && (e = "undefined"), e === null && (e = "null"), e === !1 && (e = "false"), e.toString().toLowerCase().indexOf(t.trim()) !== -1;
|
|
3580
3592
|
}
|
|
3581
|
-
function
|
|
3593
|
+
function xn(e) {
|
|
3582
3594
|
return e.filter((t) => !t.$isLabel);
|
|
3583
3595
|
}
|
|
3584
3596
|
function ts(e, t) {
|
|
@@ -3587,8 +3599,8 @@ function ts(e, t) {
|
|
|
3587
3599
|
$isLabel: !0
|
|
3588
3600
|
}), o.concat(i[e])) : o, []);
|
|
3589
3601
|
}
|
|
3590
|
-
const
|
|
3591
|
-
var
|
|
3602
|
+
const zs = (...e) => (t) => e.reduce((s, o) => o(s), t);
|
|
3603
|
+
var Fn = {
|
|
3592
3604
|
data() {
|
|
3593
3605
|
return {
|
|
3594
3606
|
search: "",
|
|
@@ -3861,7 +3873,7 @@ var xn = {
|
|
|
3861
3873
|
filteredOptions() {
|
|
3862
3874
|
const e = this.search || "", t = e.toLowerCase().trim();
|
|
3863
3875
|
let s = this.options.concat();
|
|
3864
|
-
return this.internalSearch ? s = this.groupValues ? this.filterAndFlat(s, t, this.label) : this.filterOptions(s, t, this.label, this.customLabel) : s = this.groupValues ? ts(this.groupValues, this.groupLabel)(s) : s, s = this.hideSelected ? s.filter(
|
|
3876
|
+
return this.internalSearch ? s = this.groupValues ? this.filterAndFlat(s, t, this.label) : this.filterOptions(s, t, this.label, this.customLabel) : s = this.groupValues ? ts(this.groupValues, this.groupLabel)(s) : s, s = this.hideSelected ? s.filter(Hn(this.isSelected)) : s, this.taggable && t.length && !this.isExistingOption(t) && (this.tagPosition === "bottom" ? s.push({ isTag: !0, label: e }) : s.unshift({ isTag: !0, label: e })), s.slice(0, this.optionsLimit);
|
|
3865
3877
|
},
|
|
3866
3878
|
valueKeys() {
|
|
3867
3879
|
return this.trackBy ? this.internalValue.map((e) => e[this.trackBy]) : this.internalValue;
|
|
@@ -3899,7 +3911,7 @@ var xn = {
|
|
|
3899
3911
|
* @return {Array} returns a filtered and flat options list
|
|
3900
3912
|
*/
|
|
3901
3913
|
filterAndFlat(e, t, s) {
|
|
3902
|
-
return
|
|
3914
|
+
return zs(
|
|
3903
3915
|
this.filterGroups(t, s, this.groupValues, this.groupLabel, this.customLabel),
|
|
3904
3916
|
ts(this.groupValues, this.groupLabel)
|
|
3905
3917
|
)(e);
|
|
@@ -3910,9 +3922,9 @@ var xn = {
|
|
|
3910
3922
|
* @return {Array} returns a flat options list without group labels
|
|
3911
3923
|
*/
|
|
3912
3924
|
flatAndStrip(e) {
|
|
3913
|
-
return
|
|
3925
|
+
return zs(
|
|
3914
3926
|
ts(this.groupValues, this.groupLabel),
|
|
3915
|
-
|
|
3927
|
+
xn
|
|
3916
3928
|
)(e);
|
|
3917
3929
|
},
|
|
3918
3930
|
/**
|
|
@@ -4108,7 +4120,7 @@ var xn = {
|
|
|
4108
4120
|
* @returns {Array}
|
|
4109
4121
|
*/
|
|
4110
4122
|
filterOptions(e, t, s, o) {
|
|
4111
|
-
return t ? e.filter((i) =>
|
|
4123
|
+
return t ? e.filter((i) => zn(o(i, s), t)).sort((i, n) => typeof this.filteringSortFunc == "function" ? this.filteringSortFunc(i, n) : o(i, s).length - o(n, s).length) : e;
|
|
4112
4124
|
},
|
|
4113
4125
|
/**
|
|
4114
4126
|
*
|
|
@@ -4131,7 +4143,7 @@ var xn = {
|
|
|
4131
4143
|
});
|
|
4132
4144
|
}
|
|
4133
4145
|
}
|
|
4134
|
-
},
|
|
4146
|
+
}, qn = {
|
|
4135
4147
|
data() {
|
|
4136
4148
|
return {
|
|
4137
4149
|
pointer: 0,
|
|
@@ -4211,9 +4223,9 @@ var xn = {
|
|
|
4211
4223
|
this.pointer = e, this.pointerDirty = !0;
|
|
4212
4224
|
}
|
|
4213
4225
|
}
|
|
4214
|
-
},
|
|
4226
|
+
}, ui = {
|
|
4215
4227
|
name: "vue-multiselect",
|
|
4216
|
-
mixins: [
|
|
4228
|
+
mixins: [Fn, qn],
|
|
4217
4229
|
compatConfig: {
|
|
4218
4230
|
MODE: 3,
|
|
4219
4231
|
ATTR_ENUMERATED_COERCION: !1
|
|
@@ -4432,32 +4444,32 @@ var xn = {
|
|
|
4432
4444
|
}
|
|
4433
4445
|
}
|
|
4434
4446
|
};
|
|
4435
|
-
const _n = ["tabindex", "aria-expanded", "aria-owns", "aria-activedescendant"],
|
|
4447
|
+
const _n = ["tabindex", "aria-expanded", "aria-owns", "aria-activedescendant"], jn = {
|
|
4436
4448
|
ref: "tags",
|
|
4437
4449
|
class: "multiselect__tags"
|
|
4438
|
-
},
|
|
4439
|
-
function
|
|
4440
|
-
return c(),
|
|
4450
|
+
}, Kn = { class: "multiselect__tags-wrap" }, Gn = ["textContent"], Wn = ["onKeypress", "onMousedown"], Xn = ["textContent"], Yn = { class: "multiselect__spinner" }, Zn = ["name", "id", "spellcheck", "placeholder", "required", "value", "disabled", "tabindex", "aria-label", "aria-controls"], Jn = ["id", "aria-multiselectable"], Qn = { key: 0 }, ea = { class: "multiselect__option" }, ta = ["aria-selected", "id", "role"], sa = ["onClick", "onMouseenter", "data-select", "data-selected", "data-deselect"], ia = ["data-select", "data-deselect", "onMouseenter", "onMousedown"], oa = { class: "multiselect__option" }, na = { class: "multiselect__option" };
|
|
4451
|
+
function aa(e, t, s, o, i, n) {
|
|
4452
|
+
return c(), v("div", {
|
|
4441
4453
|
tabindex: e.searchable ? -1 : s.tabindex,
|
|
4442
|
-
class:
|
|
4454
|
+
class: V([{ "multiselect--active": e.isOpen, "multiselect--disabled": s.disabled, "multiselect--above": n.isAbove, "multiselect--has-options-group": n.hasOptionGroup }, "multiselect"]),
|
|
4443
4455
|
onFocus: t[14] || (t[14] = (a) => e.activate()),
|
|
4444
4456
|
onBlur: t[15] || (t[15] = (a) => e.searchable ? !1 : e.deactivate()),
|
|
4445
4457
|
onKeydown: [
|
|
4446
|
-
t[16] || (t[16] =
|
|
4447
|
-
t[17] || (t[17] =
|
|
4458
|
+
t[16] || (t[16] = de(z((a) => e.pointerForward(), ["self", "prevent"]), ["down"])),
|
|
4459
|
+
t[17] || (t[17] = de(z((a) => e.pointerBackward(), ["self", "prevent"]), ["up"]))
|
|
4448
4460
|
],
|
|
4449
|
-
onKeypress: t[18] || (t[18] =
|
|
4450
|
-
onKeyup: t[19] || (t[19] =
|
|
4461
|
+
onKeypress: t[18] || (t[18] = de(z((a) => e.addPointerElement(a), ["stop", "self"]), ["enter", "tab"])),
|
|
4462
|
+
onKeyup: t[19] || (t[19] = de((a) => e.deactivate(), ["esc"])),
|
|
4451
4463
|
role: "combobox",
|
|
4452
4464
|
"aria-expanded": e.isOpen,
|
|
4453
4465
|
"aria-owns": "listbox-" + e.id,
|
|
4454
4466
|
"aria-activedescendant": e.isOpen && e.pointer !== null ? e.id + "-" + e.pointer : null
|
|
4455
4467
|
}, [
|
|
4456
|
-
|
|
4457
|
-
|
|
4468
|
+
T(e.$slots, "caret", { toggle: e.toggle }, () => [
|
|
4469
|
+
E(
|
|
4458
4470
|
"div",
|
|
4459
4471
|
{
|
|
4460
|
-
onMousedown: t[0] || (t[0] =
|
|
4472
|
+
onMousedown: t[0] || (t[0] = z((a) => e.toggle(), ["prevent", "stop"])),
|
|
4461
4473
|
class: "multiselect__select"
|
|
4462
4474
|
},
|
|
4463
4475
|
null,
|
|
@@ -4465,47 +4477,47 @@ function na(e, t, s, o, i, n) {
|
|
|
4465
4477
|
/* NEED_HYDRATION */
|
|
4466
4478
|
)
|
|
4467
4479
|
]),
|
|
4468
|
-
|
|
4469
|
-
|
|
4480
|
+
T(e.$slots, "clear", { search: e.search }),
|
|
4481
|
+
E(
|
|
4470
4482
|
"div",
|
|
4471
|
-
|
|
4483
|
+
jn,
|
|
4472
4484
|
[
|
|
4473
|
-
|
|
4485
|
+
T(e.$slots, "selection", {
|
|
4474
4486
|
search: e.search,
|
|
4475
4487
|
remove: e.removeElement,
|
|
4476
4488
|
values: n.visibleValues,
|
|
4477
4489
|
isOpen: e.isOpen
|
|
4478
4490
|
}, () => [
|
|
4479
|
-
|
|
4491
|
+
Le(E(
|
|
4480
4492
|
"div",
|
|
4481
|
-
|
|
4493
|
+
Kn,
|
|
4482
4494
|
[
|
|
4483
|
-
(c(!0),
|
|
4484
|
-
|
|
4495
|
+
(c(!0), v(
|
|
4496
|
+
X,
|
|
4485
4497
|
null,
|
|
4486
|
-
|
|
4498
|
+
le(n.visibleValues, (a, l) => T(e.$slots, "tag", {
|
|
4487
4499
|
option: a,
|
|
4488
4500
|
search: e.search,
|
|
4489
4501
|
remove: e.removeElement
|
|
4490
4502
|
}, () => [
|
|
4491
|
-
(c(),
|
|
4503
|
+
(c(), v(
|
|
4492
4504
|
"span",
|
|
4493
4505
|
{
|
|
4494
4506
|
class: "multiselect__tag",
|
|
4495
4507
|
key: l,
|
|
4496
|
-
onMousedown: t[1] || (t[1] =
|
|
4508
|
+
onMousedown: t[1] || (t[1] = z(() => {
|
|
4497
4509
|
}, ["prevent"]))
|
|
4498
4510
|
},
|
|
4499
4511
|
[
|
|
4500
|
-
|
|
4512
|
+
E("span", {
|
|
4501
4513
|
textContent: D(e.getOptionLabel(a))
|
|
4502
|
-
}, null, 8,
|
|
4503
|
-
|
|
4514
|
+
}, null, 8, Gn),
|
|
4515
|
+
E("i", {
|
|
4504
4516
|
tabindex: "1",
|
|
4505
|
-
onKeypress:
|
|
4506
|
-
onMousedown:
|
|
4517
|
+
onKeypress: de(z((r) => e.removeElement(a), ["prevent"]), ["enter"]),
|
|
4518
|
+
onMousedown: z((r) => e.removeElement(a), ["prevent"]),
|
|
4507
4519
|
class: "multiselect__tag-icon"
|
|
4508
|
-
}, null, 40,
|
|
4520
|
+
}, null, 40, Wn)
|
|
4509
4521
|
],
|
|
4510
4522
|
32
|
|
4511
4523
|
/* NEED_HYDRATION */
|
|
@@ -4520,19 +4532,19 @@ function na(e, t, s, o, i, n) {
|
|
|
4520
4532
|
), [
|
|
4521
4533
|
[We, n.visibleValues.length > 0]
|
|
4522
4534
|
]),
|
|
4523
|
-
e.internalValue && e.internalValue.length > s.limit ?
|
|
4524
|
-
|
|
4535
|
+
e.internalValue && e.internalValue.length > s.limit ? T(e.$slots, "limit", { key: 0 }, () => [
|
|
4536
|
+
E("strong", {
|
|
4525
4537
|
class: "multiselect__strong",
|
|
4526
4538
|
textContent: D(s.limitText(e.internalValue.length - s.limit))
|
|
4527
|
-
}, null, 8,
|
|
4539
|
+
}, null, 8, Xn)
|
|
4528
4540
|
]) : k("v-if", !0)
|
|
4529
4541
|
]),
|
|
4530
|
-
|
|
4542
|
+
L(ys, { name: "multiselect__loading" }, {
|
|
4531
4543
|
default: Ie(() => [
|
|
4532
|
-
|
|
4533
|
-
|
|
4544
|
+
T(e.$slots, "loading", {}, () => [
|
|
4545
|
+
Le(E(
|
|
4534
4546
|
"div",
|
|
4535
|
-
|
|
4547
|
+
Yn,
|
|
4536
4548
|
null,
|
|
4537
4549
|
512
|
|
4538
4550
|
/* NEED_PATCH */
|
|
@@ -4544,7 +4556,7 @@ function na(e, t, s, o, i, n) {
|
|
|
4544
4556
|
_: 3
|
|
4545
4557
|
/* FORWARDED */
|
|
4546
4558
|
}),
|
|
4547
|
-
e.searchable ? (c(),
|
|
4559
|
+
e.searchable ? (c(), v("input", {
|
|
4548
4560
|
key: 0,
|
|
4549
4561
|
ref: "search",
|
|
4550
4562
|
name: s.name,
|
|
@@ -4554,33 +4566,33 @@ function na(e, t, s, o, i, n) {
|
|
|
4554
4566
|
spellcheck: s.spellcheck,
|
|
4555
4567
|
placeholder: e.placeholder,
|
|
4556
4568
|
required: n.isRequired,
|
|
4557
|
-
style:
|
|
4569
|
+
style: dt(n.inputStyle),
|
|
4558
4570
|
value: e.search,
|
|
4559
4571
|
disabled: s.disabled,
|
|
4560
4572
|
tabindex: s.tabindex,
|
|
4561
4573
|
"aria-label": s.name + "-searchbox",
|
|
4562
4574
|
onInput: t[2] || (t[2] = (a) => e.updateSearch(a.target.value)),
|
|
4563
|
-
onFocus: t[3] || (t[3] =
|
|
4564
|
-
onBlur: t[4] || (t[4] =
|
|
4565
|
-
onKeyup: t[5] || (t[5] =
|
|
4575
|
+
onFocus: t[3] || (t[3] = z((a) => e.activate(), ["prevent"])),
|
|
4576
|
+
onBlur: t[4] || (t[4] = z((a) => e.deactivate(), ["prevent"])),
|
|
4577
|
+
onKeyup: t[5] || (t[5] = de((a) => e.deactivate(), ["esc"])),
|
|
4566
4578
|
onKeydown: [
|
|
4567
|
-
t[6] || (t[6] =
|
|
4568
|
-
t[7] || (t[7] =
|
|
4569
|
-
t[9] || (t[9] =
|
|
4579
|
+
t[6] || (t[6] = de(z((a) => e.pointerForward(), ["prevent"]), ["down"])),
|
|
4580
|
+
t[7] || (t[7] = de(z((a) => e.pointerBackward(), ["prevent"]), ["up"])),
|
|
4581
|
+
t[9] || (t[9] = de(z((a) => e.removeLastElement(), ["stop"]), ["delete"]))
|
|
4570
4582
|
],
|
|
4571
|
-
onKeypress: t[8] || (t[8] =
|
|
4583
|
+
onKeypress: t[8] || (t[8] = de(z((a) => e.addPointerElement(a), ["prevent", "stop", "self"]), ["enter"])),
|
|
4572
4584
|
class: "multiselect__input",
|
|
4573
4585
|
"aria-controls": "listbox-" + e.id
|
|
4574
|
-
}, null, 44,
|
|
4575
|
-
n.isSingleLabelVisible ? (c(),
|
|
4586
|
+
}, null, 44, Zn)) : k("v-if", !0),
|
|
4587
|
+
n.isSingleLabelVisible ? (c(), v(
|
|
4576
4588
|
"span",
|
|
4577
4589
|
{
|
|
4578
4590
|
key: 1,
|
|
4579
4591
|
class: "multiselect__single",
|
|
4580
|
-
onMousedown: t[10] || (t[10] =
|
|
4592
|
+
onMousedown: t[10] || (t[10] = z((...a) => e.toggle && e.toggle(...a), ["prevent"]))
|
|
4581
4593
|
},
|
|
4582
4594
|
[
|
|
4583
|
-
|
|
4595
|
+
T(e.$slots, "singleLabel", { option: n.singleValue }, () => [
|
|
4584
4596
|
Xe(
|
|
4585
4597
|
D(e.currentOptionLabel),
|
|
4586
4598
|
1
|
|
@@ -4591,15 +4603,15 @@ function na(e, t, s, o, i, n) {
|
|
|
4591
4603
|
32
|
|
4592
4604
|
/* NEED_HYDRATION */
|
|
4593
4605
|
)) : k("v-if", !0),
|
|
4594
|
-
n.isPlaceholderVisible ? (c(),
|
|
4606
|
+
n.isPlaceholderVisible ? (c(), v(
|
|
4595
4607
|
"span",
|
|
4596
4608
|
{
|
|
4597
4609
|
key: 2,
|
|
4598
4610
|
class: "multiselect__placeholder",
|
|
4599
|
-
onMousedown: t[11] || (t[11] =
|
|
4611
|
+
onMousedown: t[11] || (t[11] = z((...a) => e.toggle && e.toggle(...a), ["prevent"]))
|
|
4600
4612
|
},
|
|
4601
4613
|
[
|
|
4602
|
-
|
|
4614
|
+
T(e.$slots, "placeholder", {}, () => [
|
|
4603
4615
|
Xe(
|
|
4604
4616
|
D(e.placeholder),
|
|
4605
4617
|
1
|
|
@@ -4614,34 +4626,34 @@ function na(e, t, s, o, i, n) {
|
|
|
4614
4626
|
512
|
|
4615
4627
|
/* NEED_PATCH */
|
|
4616
4628
|
),
|
|
4617
|
-
|
|
4629
|
+
L(ys, {
|
|
4618
4630
|
name: "multiselect",
|
|
4619
4631
|
persisted: ""
|
|
4620
4632
|
}, {
|
|
4621
4633
|
default: Ie(() => [
|
|
4622
|
-
|
|
4634
|
+
Le(E(
|
|
4623
4635
|
"div",
|
|
4624
4636
|
{
|
|
4625
4637
|
class: "multiselect__content-wrapper",
|
|
4626
4638
|
onFocus: t[12] || (t[12] = (...a) => e.activate && e.activate(...a)),
|
|
4627
4639
|
tabindex: "-1",
|
|
4628
|
-
onMousedown: t[13] || (t[13] =
|
|
4640
|
+
onMousedown: t[13] || (t[13] = z(() => {
|
|
4629
4641
|
}, ["prevent"])),
|
|
4630
|
-
style:
|
|
4642
|
+
style: dt({ maxHeight: e.optimizedHeight + "px" }),
|
|
4631
4643
|
ref: "list"
|
|
4632
4644
|
},
|
|
4633
4645
|
[
|
|
4634
|
-
|
|
4646
|
+
E("ul", {
|
|
4635
4647
|
class: "multiselect__content",
|
|
4636
|
-
style:
|
|
4648
|
+
style: dt(n.contentStyle),
|
|
4637
4649
|
role: "listbox",
|
|
4638
4650
|
id: "listbox-" + e.id,
|
|
4639
4651
|
"aria-multiselectable": e.multiple
|
|
4640
4652
|
}, [
|
|
4641
|
-
|
|
4642
|
-
e.multiple && e.max === e.internalValue.length ? (c(),
|
|
4643
|
-
|
|
4644
|
-
|
|
4653
|
+
T(e.$slots, "beforeList"),
|
|
4654
|
+
e.multiple && e.max === e.internalValue.length ? (c(), v("li", Qn, [
|
|
4655
|
+
E("span", ea, [
|
|
4656
|
+
T(e.$slots, "maxElements", {}, () => [
|
|
4645
4657
|
Xe(
|
|
4646
4658
|
"Maximum of " + D(e.max) + " options selected. First remove a selected option to select another.",
|
|
4647
4659
|
1
|
|
@@ -4650,31 +4662,31 @@ function na(e, t, s, o, i, n) {
|
|
|
4650
4662
|
])
|
|
4651
4663
|
])
|
|
4652
4664
|
])) : k("v-if", !0),
|
|
4653
|
-
!e.max || e.internalValue.length < e.max ? (c(!0),
|
|
4654
|
-
|
|
4665
|
+
!e.max || e.internalValue.length < e.max ? (c(!0), v(
|
|
4666
|
+
X,
|
|
4655
4667
|
{ key: 1 },
|
|
4656
|
-
|
|
4668
|
+
le(e.filteredOptions, (a, l) => (c(), v("li", {
|
|
4657
4669
|
class: "multiselect__element",
|
|
4658
4670
|
key: l,
|
|
4659
4671
|
"aria-selected": e.isSelected(a),
|
|
4660
4672
|
id: e.id + "-" + l,
|
|
4661
4673
|
role: a && (a.$isLabel || a.$isDisabled) ? null : "option"
|
|
4662
4674
|
}, [
|
|
4663
|
-
a && (a.$isLabel || a.$isDisabled) ? k("v-if", !0) : (c(),
|
|
4675
|
+
a && (a.$isLabel || a.$isDisabled) ? k("v-if", !0) : (c(), v("span", {
|
|
4664
4676
|
key: 0,
|
|
4665
|
-
class:
|
|
4666
|
-
onClick:
|
|
4667
|
-
onMouseenter:
|
|
4677
|
+
class: V([e.optionHighlight(l, a), "multiselect__option"]),
|
|
4678
|
+
onClick: z((r) => e.select(a), ["stop"]),
|
|
4679
|
+
onMouseenter: z((r) => e.pointerSet(l), ["self"]),
|
|
4668
4680
|
"data-select": a && a.isTag ? e.tagPlaceholder : n.selectLabelText,
|
|
4669
4681
|
"data-selected": n.selectedLabelText,
|
|
4670
4682
|
"data-deselect": n.deselectLabelText
|
|
4671
4683
|
}, [
|
|
4672
|
-
|
|
4684
|
+
T(e.$slots, "option", {
|
|
4673
4685
|
option: a,
|
|
4674
4686
|
search: e.search,
|
|
4675
4687
|
index: l
|
|
4676
4688
|
}, () => [
|
|
4677
|
-
|
|
4689
|
+
E(
|
|
4678
4690
|
"span",
|
|
4679
4691
|
null,
|
|
4680
4692
|
D(e.getOptionLabel(a)),
|
|
@@ -4682,21 +4694,21 @@ function na(e, t, s, o, i, n) {
|
|
|
4682
4694
|
/* TEXT */
|
|
4683
4695
|
)
|
|
4684
4696
|
])
|
|
4685
|
-
], 42,
|
|
4686
|
-
a && (a.$isLabel || a.$isDisabled) ? (c(),
|
|
4697
|
+
], 42, sa)),
|
|
4698
|
+
a && (a.$isLabel || a.$isDisabled) ? (c(), v("span", {
|
|
4687
4699
|
key: 1,
|
|
4688
4700
|
"data-select": e.groupSelect && n.selectGroupLabelText,
|
|
4689
4701
|
"data-deselect": e.groupSelect && n.deselectGroupLabelText,
|
|
4690
|
-
class:
|
|
4691
|
-
onMouseenter:
|
|
4692
|
-
onMousedown:
|
|
4702
|
+
class: V([e.groupHighlight(l, a), "multiselect__option"]),
|
|
4703
|
+
onMouseenter: z((r) => e.groupSelect && e.pointerSet(l), ["self"]),
|
|
4704
|
+
onMousedown: z((r) => e.selectGroup(a), ["prevent"])
|
|
4693
4705
|
}, [
|
|
4694
|
-
|
|
4706
|
+
T(e.$slots, "option", {
|
|
4695
4707
|
option: a,
|
|
4696
4708
|
search: e.search,
|
|
4697
4709
|
index: l
|
|
4698
4710
|
}, () => [
|
|
4699
|
-
|
|
4711
|
+
E(
|
|
4700
4712
|
"span",
|
|
4701
4713
|
null,
|
|
4702
4714
|
D(e.getOptionLabel(a)),
|
|
@@ -4704,17 +4716,17 @@ function na(e, t, s, o, i, n) {
|
|
|
4704
4716
|
/* TEXT */
|
|
4705
4717
|
)
|
|
4706
4718
|
])
|
|
4707
|
-
], 42,
|
|
4708
|
-
], 8,
|
|
4719
|
+
], 42, ia)) : k("v-if", !0)
|
|
4720
|
+
], 8, ta))),
|
|
4709
4721
|
128
|
|
4710
4722
|
/* KEYED_FRAGMENT */
|
|
4711
4723
|
)) : k("v-if", !0),
|
|
4712
|
-
|
|
4724
|
+
Le(E(
|
|
4713
4725
|
"li",
|
|
4714
4726
|
null,
|
|
4715
4727
|
[
|
|
4716
|
-
|
|
4717
|
-
|
|
4728
|
+
E("span", oa, [
|
|
4729
|
+
T(e.$slots, "noResult", { search: e.search }, () => [
|
|
4718
4730
|
t[20] || (t[20] = Xe("No elements found. Consider changing the search query."))
|
|
4719
4731
|
])
|
|
4720
4732
|
])
|
|
@@ -4724,12 +4736,12 @@ function na(e, t, s, o, i, n) {
|
|
|
4724
4736
|
), [
|
|
4725
4737
|
[We, s.showNoResults && e.filteredOptions.length === 0 && e.search && !s.loading]
|
|
4726
4738
|
]),
|
|
4727
|
-
|
|
4739
|
+
Le(E(
|
|
4728
4740
|
"li",
|
|
4729
4741
|
null,
|
|
4730
4742
|
[
|
|
4731
|
-
|
|
4732
|
-
|
|
4743
|
+
E("span", na, [
|
|
4744
|
+
T(e.$slots, "noOptions", {}, () => [
|
|
4733
4745
|
t[21] || (t[21] = Xe("List is empty."))
|
|
4734
4746
|
])
|
|
4735
4747
|
])
|
|
@@ -4739,8 +4751,8 @@ function na(e, t, s, o, i, n) {
|
|
|
4739
4751
|
), [
|
|
4740
4752
|
[We, s.showNoOptions && (e.options.length === 0 || n.hasOptionGroup === !0 && e.filteredOptions.length === 0) && !e.search && !s.loading]
|
|
4741
4753
|
]),
|
|
4742
|
-
|
|
4743
|
-
], 12,
|
|
4754
|
+
T(e.$slots, "afterList")
|
|
4755
|
+
], 12, Jn)
|
|
4744
4756
|
],
|
|
4745
4757
|
36
|
|
4746
4758
|
/* STYLE, NEED_HYDRATION */
|
|
@@ -4753,10 +4765,13 @@ function na(e, t, s, o, i, n) {
|
|
|
4753
4765
|
})
|
|
4754
4766
|
], 42, _n);
|
|
4755
4767
|
}
|
|
4756
|
-
|
|
4757
|
-
const
|
|
4768
|
+
ui.render = aa;
|
|
4769
|
+
const la = { class: "dsg-input--label-wrapper block" }, ra = ["onMousedown"], da = { class: "option-label" }, ua = {
|
|
4770
|
+
key: 0,
|
|
4771
|
+
class: "dsg-input-select--error-wrapper"
|
|
4772
|
+
}, ca = /* @__PURE__ */ _({
|
|
4758
4773
|
__name: "DsgInputSelect",
|
|
4759
|
-
props: /* @__PURE__ */
|
|
4774
|
+
props: /* @__PURE__ */ At({
|
|
4760
4775
|
options: { default: () => [] },
|
|
4761
4776
|
multiple: { type: Boolean, default: !1 },
|
|
4762
4777
|
getUrl: {},
|
|
@@ -4764,12 +4779,15 @@ const aa = { class: "dsg-input--label-wrapper block" }, la = ["onMousedown"], ra
|
|
|
4764
4779
|
label: { default: "label" },
|
|
4765
4780
|
showLabels: { type: Boolean, default: !1 },
|
|
4766
4781
|
disabled: { type: Boolean, default: !1 },
|
|
4767
|
-
closeOnSelect: { type: Boolean, default: !
|
|
4782
|
+
closeOnSelect: { type: Boolean, default: !1 },
|
|
4768
4783
|
trackBy: { default: "id" },
|
|
4784
|
+
contentMaxWidth: { default: "24rem" },
|
|
4769
4785
|
itemLabel: { default: "label" },
|
|
4770
4786
|
allowEmpty: { type: Boolean, default: !1 },
|
|
4787
|
+
validateOnLoad: { type: Boolean, default: !0 },
|
|
4771
4788
|
selectLabel: { default: "" },
|
|
4772
4789
|
selectedLabel: { default: "" },
|
|
4790
|
+
errors: { default: () => [] },
|
|
4773
4791
|
size: { default: "md" }
|
|
4774
4792
|
}, {
|
|
4775
4793
|
modelValue: {},
|
|
@@ -4777,98 +4795,125 @@ const aa = { class: "dsg-input--label-wrapper block" }, la = ["onMousedown"], ra
|
|
|
4777
4795
|
single: {},
|
|
4778
4796
|
singleModifiers: {}
|
|
4779
4797
|
}),
|
|
4780
|
-
emits: /* @__PURE__ */
|
|
4798
|
+
emits: /* @__PURE__ */ At(["update:modelValue", "update:model-value", "search-change", "select", "open", "close", "remove", "tag"], ["update:modelValue", "update:single"]),
|
|
4781
4799
|
setup(e, { emit: t }) {
|
|
4782
|
-
const s =
|
|
4783
|
-
|
|
4784
|
-
|
|
4785
|
-
|
|
4786
|
-
|
|
4800
|
+
const s = Lt(e, "modelValue"), o = Lt(e, "single"), i = W(e.options), n = be("multiselectEl"), a = W(!1), l = W([]);
|
|
4801
|
+
q(() => l.value.length > 0);
|
|
4802
|
+
const r = q(() => [...Array.isArray(e.errors) ? e.errors : [e.errors], ...l.value].filter(($, A, N) => A === N.indexOf($))), y = q(
|
|
4803
|
+
() => ["dsg-input-select", `dsg-input-select--${e.size}`, `dsg-input-select--${r.value.length > 0 ? "has-errors" : "no-errors"}`].join(" ").replace(/\s+/g, " ").trim()
|
|
4804
|
+
);
|
|
4805
|
+
rt(() => {
|
|
4806
|
+
l.value = (Array.isArray(e.errors) ? e.errors : [e.errors]).filter((w) => w != null && w !== "");
|
|
4807
|
+
});
|
|
4808
|
+
const g = t, C = () => {
|
|
4809
|
+
if (n.value)
|
|
4810
|
+
if (a.value === !0) {
|
|
4811
|
+
const w = n.value.$el.getBoundingClientRect(), $ = n.value.$el.offsetHeight, A = window.innerHeight, N = n.value.$refs.list;
|
|
4812
|
+
N.style.display = "block";
|
|
4813
|
+
const Te = N.offsetHeight;
|
|
4814
|
+
N.style.display = void 0, w.bottom - $ * 2;
|
|
4815
|
+
const ci = w.bottom + Te + $ + 2 > A ? "top" : "bottom";
|
|
4816
|
+
N.style.left = "0", N.style.right = "auto", N.style.width = "auto", N.style.maxWidth = e.contentMaxWidth, ci === "top" ? N.style.bottom = `${$ + 4}px` : N.style.top = `${$ + 4}px`;
|
|
4787
4817
|
} else {
|
|
4788
|
-
const
|
|
4789
|
-
|
|
4818
|
+
const w = n.value.$refs.list;
|
|
4819
|
+
w.style.display = "none", w.style.top = "auto", w.style.bottom = "auto", w.style.left = "auto", w.style.right = "auto";
|
|
4790
4820
|
}
|
|
4791
|
-
}, b = (
|
|
4792
|
-
|
|
4793
|
-
},
|
|
4794
|
-
|
|
4795
|
-
},
|
|
4796
|
-
e.getUrl &&
|
|
4821
|
+
}, b = (w) => {
|
|
4822
|
+
a.value = !0, C(), g("open", w);
|
|
4823
|
+
}, m = (w, $) => {
|
|
4824
|
+
a.value = !1, C(), g("close", w, $);
|
|
4825
|
+
}, B = pi((w) => {
|
|
4826
|
+
e.getUrl && w.length > 2 && vs.get(e.getUrl, {
|
|
4797
4827
|
params: {
|
|
4798
|
-
term:
|
|
4828
|
+
term: w
|
|
4799
4829
|
}
|
|
4800
|
-
}).then((
|
|
4801
|
-
i.value =
|
|
4802
|
-
}),
|
|
4803
|
-
}, 300),
|
|
4804
|
-
|
|
4805
|
-
},
|
|
4806
|
-
w
|
|
4830
|
+
}).then(($) => {
|
|
4831
|
+
i.value = $.data;
|
|
4832
|
+
}), g("search-change", w);
|
|
4833
|
+
}, 300), S = (w) => {
|
|
4834
|
+
l.value = [], e.allowEmpty === !1 && (w == null || Array.isArray(w) && w.length === 0) && l.value.push(`${e.label} is required.`), g("update:modelValue", w), g("update:model-value", w);
|
|
4835
|
+
}, F = (w) => {
|
|
4836
|
+
o.value = w[e.trackBy] || w;
|
|
4837
|
+
}, se = () => {
|
|
4838
|
+
C();
|
|
4807
4839
|
};
|
|
4808
|
-
return
|
|
4809
|
-
window.addEventListener("resize",
|
|
4840
|
+
return Mt(() => {
|
|
4841
|
+
window.addEventListener("resize", se), e.getUrl && e.options.length === 0 && vs.get(e.getUrl).then((w) => {
|
|
4842
|
+
i.value = w.data;
|
|
4843
|
+
}).catch((w) => {
|
|
4844
|
+
console.error("Error fetching options:", w);
|
|
4845
|
+
}), e.validateOnLoad && S(s.value);
|
|
4810
4846
|
}), fs(() => {
|
|
4811
|
-
window.removeEventListener("resize",
|
|
4812
|
-
}), (
|
|
4813
|
-
class:
|
|
4847
|
+
window.removeEventListener("resize", se);
|
|
4848
|
+
}), (w, $) => (c(), v("div", {
|
|
4849
|
+
class: V(y.value)
|
|
4814
4850
|
}, [
|
|
4815
|
-
|
|
4816
|
-
|
|
4851
|
+
E("div", la, [
|
|
4852
|
+
w.label ? (c(), M(_s, {
|
|
4817
4853
|
key: 0,
|
|
4818
|
-
label:
|
|
4854
|
+
label: w.label,
|
|
4819
4855
|
size: "sm"
|
|
4820
4856
|
}, null, 8, ["label"])) : k("", !0)
|
|
4821
4857
|
]),
|
|
4822
|
-
|
|
4858
|
+
L(ae(ui), ee({
|
|
4823
4859
|
ref: "multiselectEl",
|
|
4824
4860
|
modelValue: s.value,
|
|
4825
4861
|
"onUpdate:modelValue": [
|
|
4826
|
-
|
|
4827
|
-
|
|
4862
|
+
$[0] || ($[0] = (A) => s.value = A),
|
|
4863
|
+
$[4] || ($[4] = (A) => S(A))
|
|
4828
4864
|
],
|
|
4829
4865
|
options: i.value,
|
|
4830
|
-
multiple:
|
|
4831
|
-
onSearchChange:
|
|
4832
|
-
onSelect:
|
|
4833
|
-
onOpen:
|
|
4834
|
-
onClose:
|
|
4835
|
-
onRemove:
|
|
4836
|
-
onTag:
|
|
4837
|
-
placeholder:
|
|
4838
|
-
label:
|
|
4839
|
-
"track-by":
|
|
4840
|
-
"close-on-select":
|
|
4841
|
-
"show-labels":
|
|
4842
|
-
disabled:
|
|
4843
|
-
"allow-empty":
|
|
4844
|
-
"select-label":
|
|
4866
|
+
multiple: w.multiple,
|
|
4867
|
+
onSearchChange: ae(B),
|
|
4868
|
+
onSelect: $[1] || ($[1] = (A) => F(A)),
|
|
4869
|
+
onOpen: $[2] || ($[2] = (A) => b(A)),
|
|
4870
|
+
onClose: $[3] || ($[3] = (A, N) => m(A, N)),
|
|
4871
|
+
onRemove: $[5] || ($[5] = (A, N) => g("remove", A, N)),
|
|
4872
|
+
onTag: $[6] || ($[6] = (A, N) => g("tag", A, N)),
|
|
4873
|
+
placeholder: w.placeholder,
|
|
4874
|
+
label: w.itemLabel,
|
|
4875
|
+
"track-by": w.trackBy,
|
|
4876
|
+
"close-on-select": w.closeOnSelect,
|
|
4877
|
+
"show-labels": w.showLabels,
|
|
4878
|
+
disabled: w.disabled,
|
|
4879
|
+
"allow-empty": w.allowEmpty,
|
|
4880
|
+
"select-label": w.selectLabel,
|
|
4845
4881
|
"preserve-search": !0,
|
|
4846
|
-
"selected-label":
|
|
4847
|
-
class: "dsg-input--multiselect"
|
|
4848
|
-
|
|
4849
|
-
|
|
4850
|
-
|
|
4851
|
-
|
|
4882
|
+
"selected-label": w.selectedLabel,
|
|
4883
|
+
class: ["dsg-input--multiselect", {
|
|
4884
|
+
"dsg-input--multiselect--has-errors": w.errors && w.errors.length,
|
|
4885
|
+
"dsg-input--multiselect--disabled": w.disabled
|
|
4886
|
+
}]
|
|
4887
|
+
}, w.$attrs), {
|
|
4888
|
+
caret: Ie(({ toggle: A }) => [
|
|
4889
|
+
E("div", {
|
|
4890
|
+
onMousedown: z((N) => A(), ["prevent", "stop"]),
|
|
4852
4891
|
class: "multiselect__select"
|
|
4853
4892
|
}, [
|
|
4854
|
-
|
|
4855
|
-
], 40,
|
|
4893
|
+
L(G, { icon: "chevron-down" })
|
|
4894
|
+
], 40, ra)
|
|
4856
4895
|
]),
|
|
4857
|
-
option: Ie(({ option:
|
|
4858
|
-
|
|
4859
|
-
|
|
4896
|
+
option: Ie(({ option: A }) => [
|
|
4897
|
+
E("span", da, D(A[w.itemLabel]), 1),
|
|
4898
|
+
L(G, {
|
|
4860
4899
|
icon: "check",
|
|
4861
4900
|
size: "sm",
|
|
4862
4901
|
class: "option-icon text-brand-600"
|
|
4863
4902
|
})
|
|
4864
4903
|
]),
|
|
4865
4904
|
_: 1
|
|
4866
|
-
}, 16, ["modelValue", "options", "multiple", "onSearchChange", "placeholder", "label", "track-by", "close-on-select", "show-labels", "disabled", "allow-empty", "select-label", "selected-label"])
|
|
4905
|
+
}, 16, ["modelValue", "options", "multiple", "onSearchChange", "placeholder", "label", "track-by", "close-on-select", "show-labels", "disabled", "allow-empty", "select-label", "selected-label", "class"]),
|
|
4906
|
+
r.value && r.value.length ? (c(), v("div", ua, [
|
|
4907
|
+
(c(!0), v(X, null, le(r.value, (A, N) => (c(), v("span", {
|
|
4908
|
+
class: "dsg-input--error",
|
|
4909
|
+
key: N
|
|
4910
|
+
}, D(A), 1))), 128))
|
|
4911
|
+
])) : k("", !0)
|
|
4867
4912
|
], 2));
|
|
4868
4913
|
}
|
|
4869
|
-
}),
|
|
4914
|
+
}), fa = ["name"], ha = ["selected"], pa = ["value", "selected"], ga = /* @__PURE__ */ _({
|
|
4870
4915
|
__name: "DsgInputDropdown",
|
|
4871
|
-
props: /* @__PURE__ */
|
|
4916
|
+
props: /* @__PURE__ */ At({
|
|
4872
4917
|
name: { default: "" },
|
|
4873
4918
|
placeholder: { default: "" },
|
|
4874
4919
|
classes: { default: "" },
|
|
@@ -4879,31 +4924,31 @@ const aa = { class: "dsg-input--label-wrapper block" }, la = ["onMousedown"], ra
|
|
|
4879
4924
|
}),
|
|
4880
4925
|
emits: ["update:modelValue"],
|
|
4881
4926
|
setup(e) {
|
|
4882
|
-
const t =
|
|
4883
|
-
return (s, o) =>
|
|
4884
|
-
class:
|
|
4927
|
+
const t = Lt(e, "modelValue");
|
|
4928
|
+
return (s, o) => Le((c(), v("select", {
|
|
4929
|
+
class: V(["dsg-input-dropdown", s.classes]),
|
|
4885
4930
|
name: s.name,
|
|
4886
4931
|
"onUpdate:modelValue": o[0] || (o[0] = (i) => t.value = i)
|
|
4887
4932
|
}, [
|
|
4888
|
-
s.placeholder ? (c(),
|
|
4933
|
+
s.placeholder ? (c(), v("option", {
|
|
4889
4934
|
key: 0,
|
|
4890
4935
|
value: "",
|
|
4891
4936
|
disabled: "",
|
|
4892
4937
|
selected: t.value === ""
|
|
4893
|
-
}, D(s.placeholder), 9,
|
|
4894
|
-
(c(!0),
|
|
4938
|
+
}, D(s.placeholder), 9, ha)) : k("", !0),
|
|
4939
|
+
(c(!0), v(X, null, le(s.options, (i, n) => (c(), v("option", {
|
|
4895
4940
|
key: n,
|
|
4896
4941
|
value: i.value,
|
|
4897
4942
|
selected: t.value === i.value
|
|
4898
|
-
}, D(i.label), 9,
|
|
4899
|
-
], 10,
|
|
4900
|
-
[
|
|
4943
|
+
}, D(i.label), 9, pa))), 128))
|
|
4944
|
+
], 10, fa)), [
|
|
4945
|
+
[Oi, t.value]
|
|
4901
4946
|
]);
|
|
4902
4947
|
}
|
|
4903
|
-
}),
|
|
4948
|
+
}), ma = ["href", "title", "target"], ba = {
|
|
4904
4949
|
key: 0,
|
|
4905
4950
|
class: "dsg-link--label"
|
|
4906
|
-
},
|
|
4951
|
+
}, va = /* @__PURE__ */ _({
|
|
4907
4952
|
__name: "DsgLink",
|
|
4908
4953
|
props: {
|
|
4909
4954
|
label: { default: "Link" },
|
|
@@ -4922,31 +4967,31 @@ const aa = { class: "dsg-input--label-wrapper block" }, la = ["onMousedown"], ra
|
|
|
4922
4967
|
].join(" "), o = t, i = (n) => {
|
|
4923
4968
|
e.preventDefault && n.preventDefault(), o("link-clicked", n);
|
|
4924
4969
|
};
|
|
4925
|
-
return (n, a) => (c(),
|
|
4970
|
+
return (n, a) => (c(), v("a", {
|
|
4926
4971
|
href: n.href,
|
|
4927
4972
|
title: "Link: " + n.label,
|
|
4928
4973
|
target: n.uriTarget,
|
|
4929
|
-
class:
|
|
4974
|
+
class: V(ae(s)),
|
|
4930
4975
|
onClick: i
|
|
4931
4976
|
}, [
|
|
4932
|
-
|
|
4933
|
-
n.label ? (c(),
|
|
4977
|
+
T(n.$slots, "dsg-link-content", {}, () => [
|
|
4978
|
+
n.label ? (c(), v("span", ba, D(n.label), 1)) : k("", !0)
|
|
4934
4979
|
])
|
|
4935
|
-
], 10,
|
|
4980
|
+
], 10, ma));
|
|
4936
4981
|
}
|
|
4937
|
-
}),
|
|
4982
|
+
}), ya = {
|
|
4938
4983
|
key: 1,
|
|
4939
4984
|
class: "dsg-modal__header-text"
|
|
4940
|
-
},
|
|
4985
|
+
}, wa = {
|
|
4941
4986
|
key: 0,
|
|
4942
4987
|
class: "dsg-modal__header-title"
|
|
4943
|
-
},
|
|
4988
|
+
}, ka = {
|
|
4944
4989
|
key: 1,
|
|
4945
4990
|
class: "dsg-modal__header-description"
|
|
4946
|
-
},
|
|
4991
|
+
}, Ca = {
|
|
4947
4992
|
key: 1,
|
|
4948
4993
|
class: "dsg-modal__body"
|
|
4949
|
-
},
|
|
4994
|
+
}, Ea = /* @__PURE__ */ _({
|
|
4950
4995
|
__name: "DsgModal",
|
|
4951
4996
|
props: {
|
|
4952
4997
|
title: { default: "" },
|
|
@@ -4964,7 +5009,7 @@ const aa = { class: "dsg-input--label-wrapper block" }, la = ["onMousedown"], ra
|
|
|
4964
5009
|
},
|
|
4965
5010
|
emits: ["before-open", "after-open", "before-close", "after-close", "secondary-button-clicked", "primary-button-clicked"],
|
|
4966
5011
|
setup(e, { expose: t, emit: s }) {
|
|
4967
|
-
const o = s, i =
|
|
5012
|
+
const o = s, i = W(e.initialOpen), n = () => {
|
|
4968
5013
|
o("before-open"), i.value = !0, o("after-open");
|
|
4969
5014
|
}, a = () => {
|
|
4970
5015
|
o("before-close"), i.value = !1, o("after-close");
|
|
@@ -4972,52 +5017,52 @@ const aa = { class: "dsg-input--label-wrapper block" }, la = ["onMousedown"], ra
|
|
|
4972
5017
|
i.value && e.closeClickBackground && a();
|
|
4973
5018
|
}, r = () => {
|
|
4974
5019
|
o("secondary-button-clicked");
|
|
4975
|
-
},
|
|
5020
|
+
}, y = () => {
|
|
4976
5021
|
o("primary-button-clicked");
|
|
4977
5022
|
};
|
|
4978
|
-
return t({ open: n, close: a, secondaryButtonClicked: r, primaryButtonClicked:
|
|
4979
|
-
class:
|
|
5023
|
+
return t({ open: n, close: a, secondaryButtonClicked: r, primaryButtonClicked: y }), (g, C) => (c(), v("div", {
|
|
5024
|
+
class: V(["dsg-modal", `dsg-modal--${i.value ? "open" : "closed"}`])
|
|
4980
5025
|
}, [
|
|
4981
|
-
|
|
5026
|
+
E("div", {
|
|
4982
5027
|
class: "dsg-modal__background",
|
|
4983
5028
|
onDblclick: l
|
|
4984
5029
|
}, null, 32),
|
|
4985
|
-
|
|
4986
|
-
class:
|
|
4987
|
-
style:
|
|
5030
|
+
E("div", {
|
|
5031
|
+
class: V(["dsg-modal__wrapper", g.wrapperClasses]),
|
|
5032
|
+
style: dt({ width: g.width })
|
|
4988
5033
|
}, [
|
|
4989
|
-
|
|
5034
|
+
g.hasClosedButton ? (c(), M(Re, {
|
|
4990
5035
|
key: 0,
|
|
4991
5036
|
theme: "gray-tertiary",
|
|
4992
5037
|
iconBefore: "x",
|
|
4993
5038
|
size: "lg",
|
|
4994
|
-
class:
|
|
5039
|
+
class: V(["dsg-modal__close-button", `dsg-modal__close-button--${g.type}`]),
|
|
4995
5040
|
onClick: a
|
|
4996
5041
|
}, null, 8, ["class"])) : k("", !0),
|
|
4997
|
-
|
|
4998
|
-
|
|
4999
|
-
class:
|
|
5042
|
+
T(g.$slots, "dsg-modal__header", {}, () => [
|
|
5043
|
+
E("div", {
|
|
5044
|
+
class: V(["dsg-modal__header", [`dsg-modal__header--${g.type}`, `${g.$slots.default ? "dsg-modal__header--with-body" : ""}`].join(" ")])
|
|
5000
5045
|
}, [
|
|
5001
|
-
|
|
5002
|
-
|
|
5003
|
-
|
|
5004
|
-
|
|
5046
|
+
g.miscIcon ? (c(), M(Ve, Fs(ee({ key: 0 }, g.miscIcon)), null, 16)) : k("", !0),
|
|
5047
|
+
g.title || g.description ? (c(), v("div", ya, [
|
|
5048
|
+
g.title ? (c(), v("h3", wa, D(g.title), 1)) : k("", !0),
|
|
5049
|
+
g.description ? (c(), v("p", ka, D(g.description), 1)) : k("", !0)
|
|
5005
5050
|
])) : k("", !0)
|
|
5006
5051
|
], 2)
|
|
5007
5052
|
]),
|
|
5008
|
-
|
|
5009
|
-
|
|
5053
|
+
g.$slots.default ? (c(), v("div", Ca, [
|
|
5054
|
+
T(g.$slots, "default")
|
|
5010
5055
|
])) : k("", !0),
|
|
5011
|
-
|
|
5012
|
-
|
|
5013
|
-
class:
|
|
5056
|
+
T(g.$slots, "dsg-modal__footer", {}, () => [
|
|
5057
|
+
E("div", {
|
|
5058
|
+
class: V(["dsg-modal__footer", `dsg-modal__footer--${g.footerType}`])
|
|
5014
5059
|
}, [
|
|
5015
|
-
|
|
5060
|
+
g.secondaryButton ? (c(), M(Re, ee({ key: 0 }, g.secondaryButton, {
|
|
5016
5061
|
onButtonClicked: r,
|
|
5017
5062
|
classes: "dsg-modal__secondary-button"
|
|
5018
5063
|
}), null, 16)) : k("", !0),
|
|
5019
|
-
|
|
5020
|
-
onButtonClicked:
|
|
5064
|
+
g.primaryButton ? (c(), M(Re, ee({ key: 1 }, g.primaryButton, {
|
|
5065
|
+
onButtonClicked: y,
|
|
5021
5066
|
classes: "dsg-dsg-modal__primary-button"
|
|
5022
5067
|
}), null, 16)) : k("", !0)
|
|
5023
5068
|
], 2)
|
|
@@ -5025,10 +5070,10 @@ const aa = { class: "dsg-input--label-wrapper block" }, la = ["onMousedown"], ra
|
|
|
5025
5070
|
], 6)
|
|
5026
5071
|
], 2));
|
|
5027
5072
|
}
|
|
5028
|
-
}),
|
|
5073
|
+
}), Sa = { class: "dsg-tag--before" }, Oa = { class: "dsg-tag--label" }, $a = { class: "dsg-tag--after" }, Ta = {
|
|
5029
5074
|
key: 0,
|
|
5030
5075
|
class: "dsg-tag--count"
|
|
5031
|
-
},
|
|
5076
|
+
}, Aa = /* @__PURE__ */ _({
|
|
5032
5077
|
__name: "DsgTag",
|
|
5033
5078
|
props: {
|
|
5034
5079
|
label: { default: "" },
|
|
@@ -5053,54 +5098,54 @@ const aa = { class: "dsg-input--label-wrapper block" }, la = ["onMousedown"], ra
|
|
|
5053
5098
|
`dsg-tag--${e.hasCheckbox ? "has-checkbox" : "no-checkbox"}`,
|
|
5054
5099
|
e.classes
|
|
5055
5100
|
].join(" "), i = () => `tag-${e.size}`;
|
|
5056
|
-
e.hasClose && e.tagCount !== null && new
|
|
5057
|
-
const n = s, a = be("dsgTag"), l = (
|
|
5101
|
+
e.hasClose && e.tagCount !== null && new fe("DsgTag: 'hasClose' and 'tagCount' props are mutually exclusive. Please use only one of them."), e.avatarUri && e.dotHex && new fe("DsgTag: 'avatarUri' and 'dotHex' props are mutually exclusive. Please use only one of them.");
|
|
5102
|
+
const n = s, a = be("dsgTag"), l = (S) => {
|
|
5058
5103
|
e.destroyOnClose ? (n("before-destroy", a.value), a.value?.remove(), n("after-destroy")) : (n("before-hide", a.value), a.value && (a.value.style.display = "none"), n("after-hide", a.value));
|
|
5059
|
-
}, r = (
|
|
5060
|
-
n("before-checked",
|
|
5061
|
-
},
|
|
5062
|
-
n("after-checked",
|
|
5063
|
-
},
|
|
5064
|
-
|
|
5065
|
-
},
|
|
5104
|
+
}, r = (S, F) => {
|
|
5105
|
+
n("before-checked", S, F);
|
|
5106
|
+
}, y = (S) => {
|
|
5107
|
+
n("after-checked", S);
|
|
5108
|
+
}, g = W(e.tagCount), C = (S) => {
|
|
5109
|
+
g.value = S;
|
|
5110
|
+
}, b = W(e.value);
|
|
5066
5111
|
return t({
|
|
5067
5112
|
setTagCount: C,
|
|
5068
|
-
setValue: (
|
|
5069
|
-
|
|
5113
|
+
setValue: (S) => {
|
|
5114
|
+
b.value = S;
|
|
5070
5115
|
},
|
|
5071
|
-
getValue: () =>
|
|
5072
|
-
}), (
|
|
5073
|
-
class:
|
|
5116
|
+
getValue: () => b.value
|
|
5117
|
+
}), (S, F) => (c(), v("div", {
|
|
5118
|
+
class: V(ae(o)),
|
|
5074
5119
|
ref: "dsgTag"
|
|
5075
5120
|
}, [
|
|
5076
|
-
|
|
5077
|
-
|
|
5121
|
+
E("div", Sa, [
|
|
5122
|
+
S.hasCheckbox ? (c(), M(Tt, {
|
|
5078
5123
|
key: 0,
|
|
5079
5124
|
class: "dsg-tag--checkbox",
|
|
5080
5125
|
size: i(),
|
|
5081
5126
|
"no-focus": !0,
|
|
5082
5127
|
onBeforeChecked: r,
|
|
5083
|
-
onAfterChecked:
|
|
5128
|
+
onAfterChecked: y
|
|
5084
5129
|
}, null, 8, ["size"])) : k("", !0),
|
|
5085
|
-
|
|
5130
|
+
S.avatarUri ? (c(), M(ft, {
|
|
5086
5131
|
key: 1,
|
|
5087
|
-
"profile-uri":
|
|
5132
|
+
"profile-uri": S.avatarUri,
|
|
5088
5133
|
size: "xxs",
|
|
5089
5134
|
"no-focus": !0,
|
|
5090
5135
|
class: "dsg-tag--avatar"
|
|
5091
5136
|
}, null, 8, ["profile-uri"])) : k("", !0),
|
|
5092
|
-
|
|
5137
|
+
S.dotHex ? (c(), v("span", {
|
|
5093
5138
|
key: 2,
|
|
5094
5139
|
class: "dsg-tag--dot",
|
|
5095
|
-
style:
|
|
5140
|
+
style: dt({ backgroundColor: S.dotHex })
|
|
5096
5141
|
}, null, 4)) : k("", !0)
|
|
5097
5142
|
]),
|
|
5098
|
-
|
|
5099
|
-
|
|
5143
|
+
T(S.$slots, "dsg-tag--label", {}, () => [
|
|
5144
|
+
E("span", Oa, D(S.label), 1)
|
|
5100
5145
|
]),
|
|
5101
|
-
|
|
5102
|
-
|
|
5103
|
-
|
|
5146
|
+
E("div", $a, [
|
|
5147
|
+
g.value && g.value > 0 ? (c(), v("div", Ta, D(g.value), 1)) : k("", !0),
|
|
5148
|
+
S.hasClose ? (c(), M(G, {
|
|
5104
5149
|
key: 1,
|
|
5105
5150
|
icon: "x-close",
|
|
5106
5151
|
class: "dsg-tag--close",
|
|
@@ -5109,10 +5154,10 @@ const aa = { class: "dsg-input--label-wrapper block" }, la = ["onMousedown"], ra
|
|
|
5109
5154
|
])
|
|
5110
5155
|
], 2));
|
|
5111
5156
|
}
|
|
5112
|
-
}),
|
|
5157
|
+
}), La = { class: "dsg-toggle--element" }, Ba = ["checked", "disabled"], Ia = {
|
|
5113
5158
|
key: 0,
|
|
5114
5159
|
class: "dsg-toggle--label-wrapper"
|
|
5115
|
-
},
|
|
5160
|
+
}, Da = ["innerHTML"], Ma = ["innerHTML"], Pa = /* @__PURE__ */ _({
|
|
5116
5161
|
__name: "DsgToggle",
|
|
5117
5162
|
props: {
|
|
5118
5163
|
modelValue: { type: Boolean, default: !1 },
|
|
@@ -5131,48 +5176,48 @@ const aa = { class: "dsg-input--label-wrapper block" }, la = ["onMousedown"], ra
|
|
|
5131
5176
|
`dsg-toggle--${e.label.length ? "has-label" : "no-label"}`,
|
|
5132
5177
|
`dsg-toggle--${e.subText.length ? "has-subtext" : "no-subtext"}`,
|
|
5133
5178
|
e.classes
|
|
5134
|
-
].join(" "), i =
|
|
5179
|
+
].join(" "), i = W(e.modelValue), n = () => {
|
|
5135
5180
|
e.disabled || (r("before-toggle", i.value, !i.value), i.value = !i.value, r("after-toggle", i.value), r("update:modelValue", i.value));
|
|
5136
5181
|
}, a = be("toggleCheckbox"), l = () => {
|
|
5137
5182
|
a.value && a.value.focus(), e.disabled || n();
|
|
5138
5183
|
}, r = s;
|
|
5139
5184
|
return t({
|
|
5140
|
-
set: (
|
|
5141
|
-
i.value =
|
|
5185
|
+
set: (g) => {
|
|
5186
|
+
i.value = g;
|
|
5142
5187
|
}
|
|
5143
|
-
}), (
|
|
5144
|
-
class:
|
|
5188
|
+
}), (g, C) => (c(), v("div", {
|
|
5189
|
+
class: V(ae(o)),
|
|
5145
5190
|
onClick: l
|
|
5146
5191
|
}, [
|
|
5147
|
-
|
|
5148
|
-
|
|
5192
|
+
E("label", La, [
|
|
5193
|
+
E("input", {
|
|
5149
5194
|
type: "checkbox",
|
|
5150
5195
|
class: "dsg-toggle--checkbox",
|
|
5151
5196
|
checked: i.value,
|
|
5152
5197
|
onChange: n,
|
|
5153
5198
|
title: "checkbox",
|
|
5154
5199
|
ref: "toggleCheckbox",
|
|
5155
|
-
disabled:
|
|
5156
|
-
}, null, 40,
|
|
5157
|
-
C[0] || (C[0] =
|
|
5200
|
+
disabled: g.disabled
|
|
5201
|
+
}, null, 40, Ba),
|
|
5202
|
+
C[0] || (C[0] = E("span", { class: "dsg-toggle--slider" }, null, -1))
|
|
5158
5203
|
]),
|
|
5159
|
-
|
|
5160
|
-
|
|
5161
|
-
|
|
5204
|
+
g.label.length ? (c(), v("div", Ia, [
|
|
5205
|
+
T(g.$slots, "dsg-toggle--label", {}, () => [
|
|
5206
|
+
E("h3", {
|
|
5162
5207
|
class: "dsg-toggle--label",
|
|
5163
|
-
innerHTML:
|
|
5164
|
-
}, null, 8,
|
|
5208
|
+
innerHTML: g.label
|
|
5209
|
+
}, null, 8, Da)
|
|
5165
5210
|
]),
|
|
5166
|
-
|
|
5167
|
-
|
|
5211
|
+
g.label.length && g.subText.length ? T(g.$slots, "dsg-toggle--subtext", { key: 0 }, () => [
|
|
5212
|
+
E("p", {
|
|
5168
5213
|
class: "dsg-toggle--subtext",
|
|
5169
|
-
innerHTML:
|
|
5170
|
-
}, null, 8,
|
|
5214
|
+
innerHTML: g.subText
|
|
5215
|
+
}, null, 8, Ma)
|
|
5171
5216
|
]) : k("", !0)
|
|
5172
5217
|
])) : k("", !0)
|
|
5173
5218
|
], 2));
|
|
5174
5219
|
}
|
|
5175
|
-
}),
|
|
5220
|
+
}), Na = { key: 1 }, Va = /* @__PURE__ */ _({
|
|
5176
5221
|
__name: "DsgBreadcrumb",
|
|
5177
5222
|
props: {
|
|
5178
5223
|
breadcrumbs: { default: () => [] },
|
|
@@ -5184,16 +5229,16 @@ const aa = { class: "dsg-input--label-wrapper block" }, la = ["onMousedown"], ra
|
|
|
5184
5229
|
theme: { default: "text" }
|
|
5185
5230
|
},
|
|
5186
5231
|
setup(e) {
|
|
5187
|
-
return (t, s) => (c(),
|
|
5188
|
-
class:
|
|
5232
|
+
return (t, s) => (c(), v("div", {
|
|
5233
|
+
class: V(["dsg-breadcrumbs", "dsg-breadcrumbs"])
|
|
5189
5234
|
}, [
|
|
5190
|
-
(c(!0),
|
|
5235
|
+
(c(!0), v(X, null, le(t.breadcrumbs, (o, i) => (c(), v(X, {
|
|
5191
5236
|
key: `breadcrumb-item-${i}`
|
|
5192
5237
|
}, [
|
|
5193
|
-
(c(), M(
|
|
5238
|
+
(c(), M($i(o.url ?? !1 ? "a" : "span"), {
|
|
5194
5239
|
href: o.url ?? null,
|
|
5195
5240
|
disabled: o.disabled,
|
|
5196
|
-
class:
|
|
5241
|
+
class: V(
|
|
5197
5242
|
[
|
|
5198
5243
|
"dsg-breadcrumbs__button-base",
|
|
5199
5244
|
`dsg-breadcrumbs__button-base--${t.theme}`,
|
|
@@ -5202,32 +5247,32 @@ const aa = { class: "dsg-input--label-wrapper block" }, la = ["onMousedown"], ra
|
|
|
5202
5247
|
)
|
|
5203
5248
|
}, {
|
|
5204
5249
|
default: Ie(() => [
|
|
5205
|
-
o.icon && o.useIcon ? (c(), M(
|
|
5250
|
+
o.icon && o.useIcon ? (c(), M(G, {
|
|
5206
5251
|
key: 0,
|
|
5207
5252
|
icon: o.icon,
|
|
5208
5253
|
size: "sm",
|
|
5209
5254
|
classes: "dsg-breadcrumbs__icon"
|
|
5210
|
-
}, null, 8, ["icon"])) : (c(),
|
|
5255
|
+
}, null, 8, ["icon"])) : (c(), v("span", Na, D(o.label), 1))
|
|
5211
5256
|
]),
|
|
5212
5257
|
_: 2
|
|
5213
5258
|
}, 1032, ["href", "disabled", "class"])),
|
|
5214
|
-
i < t.breadcrumbs.length - 1 ? (c(), M(
|
|
5259
|
+
i < t.breadcrumbs.length - 1 ? (c(), M(G, ee({
|
|
5215
5260
|
key: 0,
|
|
5216
5261
|
ref_for: !0
|
|
5217
5262
|
}, t.divider, { class: "dsg-breadcrumbs__divider" }), null, 16)) : k("", !0)
|
|
5218
5263
|
], 64))), 128))
|
|
5219
5264
|
]));
|
|
5220
5265
|
}
|
|
5221
|
-
}),
|
|
5266
|
+
}), Ra = /* @__PURE__ */ js(Va, [["__scopeId", "data-v-8f108e12"]]), Ua = { class: "dsg-tab" }, Ha = { class: "dsg-tab--mobile" }, za = {
|
|
5222
5267
|
"aria-label": "Select a tab",
|
|
5223
5268
|
class: "dsg-tab--mobile-select"
|
|
5224
|
-
},
|
|
5269
|
+
}, xa = ["selected", "textContent"], Fa = { class: "dsg-tab--desktop" }, qa = { class: "dsg-tab--desktop-wrapper" }, _a = {
|
|
5225
5270
|
class: "dsg-tab--desktop-nav",
|
|
5226
5271
|
"aria-label": "Tabs"
|
|
5227
|
-
},
|
|
5272
|
+
}, ja = ["href", "onClick", "aria-current"], Ka = ["textContent"], Ga = {
|
|
5228
5273
|
key: 0,
|
|
5229
5274
|
class: "dsg-tab--content"
|
|
5230
|
-
},
|
|
5275
|
+
}, Wa = /* @__PURE__ */ _({
|
|
5231
5276
|
__name: "DsgTab",
|
|
5232
5277
|
props: {
|
|
5233
5278
|
tabs: { default: () => [] },
|
|
@@ -5254,50 +5299,50 @@ const aa = { class: "dsg-input--label-wrapper block" }, la = ["onMousedown"], ra
|
|
|
5254
5299
|
}
|
|
5255
5300
|
e.selfUpdate && o(n);
|
|
5256
5301
|
};
|
|
5257
|
-
return (n, a) => (c(),
|
|
5258
|
-
|
|
5259
|
-
|
|
5260
|
-
(c(!0),
|
|
5302
|
+
return (n, a) => (c(), v("div", Ua, [
|
|
5303
|
+
E("div", Ha, [
|
|
5304
|
+
E("select", za, [
|
|
5305
|
+
(c(!0), v(X, null, le(n.tabs, (l) => (c(), v("option", {
|
|
5261
5306
|
key: l.name,
|
|
5262
5307
|
selected: l.current,
|
|
5263
5308
|
textContent: D(l.name)
|
|
5264
|
-
}, null, 8,
|
|
5309
|
+
}, null, 8, xa))), 128))
|
|
5265
5310
|
]),
|
|
5266
|
-
|
|
5311
|
+
L(G, {
|
|
5267
5312
|
class: "dsg-tab--mobile-select-icon",
|
|
5268
5313
|
icon: "chevron-down",
|
|
5269
5314
|
"aria-hidden": "true",
|
|
5270
5315
|
size: "sm"
|
|
5271
5316
|
})
|
|
5272
5317
|
]),
|
|
5273
|
-
|
|
5274
|
-
|
|
5275
|
-
|
|
5276
|
-
(c(!0),
|
|
5318
|
+
E("div", Fa, [
|
|
5319
|
+
E("div", qa, [
|
|
5320
|
+
E("div", _a, [
|
|
5321
|
+
(c(!0), v(X, null, le(n.tabs, (l) => (c(), v("a", {
|
|
5277
5322
|
key: l.name,
|
|
5278
5323
|
href: l.href,
|
|
5279
|
-
onClick:
|
|
5280
|
-
class:
|
|
5324
|
+
onClick: z((r) => i(l), ["prevent"]),
|
|
5325
|
+
class: V(["dsg-tab--desktop-link", l.current ? "link-active" : "link-inactive"]),
|
|
5281
5326
|
"aria-current": l.current ? "page" : void 0
|
|
5282
5327
|
}, [
|
|
5283
|
-
|
|
5328
|
+
E("span", {
|
|
5284
5329
|
class: "dsg-tab--desktop-link-label",
|
|
5285
5330
|
textContent: D(l.name)
|
|
5286
|
-
}, null, 8,
|
|
5287
|
-
l.badge ? (c(), M(
|
|
5331
|
+
}, null, 8, Ka),
|
|
5332
|
+
l.badge ? (c(), M(ti, {
|
|
5288
5333
|
key: 0,
|
|
5289
5334
|
label: l.badge.label,
|
|
5290
5335
|
"theme-color": l.current ? "brand" : "gray",
|
|
5291
5336
|
theme: "pill-color",
|
|
5292
5337
|
size: "sm"
|
|
5293
5338
|
}, null, 8, ["label", "theme-color"])) : k("", !0)
|
|
5294
|
-
], 10,
|
|
5339
|
+
], 10, ja))), 128))
|
|
5295
5340
|
])
|
|
5296
5341
|
])
|
|
5297
5342
|
]),
|
|
5298
|
-
n.useSlots ? (c(),
|
|
5299
|
-
(c(!0),
|
|
5300
|
-
l.current ?
|
|
5343
|
+
n.useSlots ? (c(), v("div", Ga, [
|
|
5344
|
+
(c(!0), v(X, null, le(n.tabs, (l, r) => (c(), v(X, null, [
|
|
5345
|
+
l.current ? T(n.$slots, `dsg-tab--content--${String(l.key).trim().toLowerCase().replace(/[^0-9a-zA-Z]/g, "-").replace(/-+/g, "-")}`, {
|
|
5301
5346
|
key: 0,
|
|
5302
5347
|
data: l
|
|
5303
5348
|
}) : k("", !0)
|
|
@@ -5305,54 +5350,54 @@ const aa = { class: "dsg-input--label-wrapper block" }, la = ["onMousedown"], ra
|
|
|
5305
5350
|
])) : k("", !0)
|
|
5306
5351
|
]));
|
|
5307
5352
|
}
|
|
5308
|
-
}),
|
|
5309
|
-
DsgIcon:
|
|
5310
|
-
DsgMiscIcon:
|
|
5311
|
-
DsgCreditCardIcon:
|
|
5312
|
-
DsgAlert:
|
|
5313
|
-
DsgAvatar:
|
|
5314
|
-
DsgBadge:
|
|
5315
|
-
DsgButton:
|
|
5316
|
-
DsgCheckbox:
|
|
5317
|
-
DsgCheckboxGroup:
|
|
5318
|
-
DsgDropdown:
|
|
5319
|
-
DsgInput:
|
|
5320
|
-
DsgInputSelect:
|
|
5321
|
-
DsgInputDropdown:
|
|
5322
|
-
DsgDatepicker:
|
|
5323
|
-
DsgLabel:
|
|
5324
|
-
DsgLink:
|
|
5325
|
-
DsgModal:
|
|
5326
|
-
DsgTag:
|
|
5327
|
-
DsgToggle:
|
|
5328
|
-
DsgTooltip:
|
|
5329
|
-
DsgBreadcrumb:
|
|
5330
|
-
DsgTab:
|
|
5331
|
-
DsgFilter:
|
|
5353
|
+
}), Xa = G, Ya = Ve, Za = gi, Ja = Ro, Qa = ft, el = ti, tl = Re, sl = Tt, il = Qo, ol = Un, nl = mi, al = ca, ll = ga, rl = bi, dl = _s, ul = va, cl = Ea, fl = Aa, hl = Pa, pl = xs, gl = vi, ml = Ra, bl = Wa, Cl = {
|
|
5354
|
+
DsgIcon: Xa,
|
|
5355
|
+
DsgMiscIcon: Ya,
|
|
5356
|
+
DsgCreditCardIcon: Za,
|
|
5357
|
+
DsgAlert: Ja,
|
|
5358
|
+
DsgAvatar: Qa,
|
|
5359
|
+
DsgBadge: el,
|
|
5360
|
+
DsgButton: tl,
|
|
5361
|
+
DsgCheckbox: sl,
|
|
5362
|
+
DsgCheckboxGroup: il,
|
|
5363
|
+
DsgDropdown: ol,
|
|
5364
|
+
DsgInput: nl,
|
|
5365
|
+
DsgInputSelect: al,
|
|
5366
|
+
DsgInputDropdown: ll,
|
|
5367
|
+
DsgDatepicker: rl,
|
|
5368
|
+
DsgLabel: dl,
|
|
5369
|
+
DsgLink: ul,
|
|
5370
|
+
DsgModal: cl,
|
|
5371
|
+
DsgTag: fl,
|
|
5372
|
+
DsgToggle: hl,
|
|
5373
|
+
DsgTooltip: pl,
|
|
5374
|
+
DsgBreadcrumb: ml,
|
|
5375
|
+
DsgTab: bl,
|
|
5376
|
+
DsgFilter: gl
|
|
5332
5377
|
};
|
|
5333
5378
|
export {
|
|
5334
|
-
|
|
5335
|
-
|
|
5336
|
-
|
|
5337
|
-
|
|
5338
|
-
|
|
5339
|
-
|
|
5340
|
-
|
|
5341
|
-
|
|
5342
|
-
|
|
5343
|
-
|
|
5344
|
-
|
|
5345
|
-
|
|
5346
|
-
|
|
5347
|
-
|
|
5348
|
-
|
|
5349
|
-
|
|
5350
|
-
|
|
5351
|
-
|
|
5352
|
-
|
|
5353
|
-
|
|
5354
|
-
|
|
5355
|
-
|
|
5356
|
-
|
|
5357
|
-
|
|
5379
|
+
Ja as DsgAlert,
|
|
5380
|
+
Qa as DsgAvatar,
|
|
5381
|
+
el as DsgBadge,
|
|
5382
|
+
ml as DsgBreadcrumb,
|
|
5383
|
+
tl as DsgButton,
|
|
5384
|
+
sl as DsgCheckbox,
|
|
5385
|
+
il as DsgCheckboxGroup,
|
|
5386
|
+
Za as DsgCreditCardIcon,
|
|
5387
|
+
rl as DsgDatepicker,
|
|
5388
|
+
ol as DsgDropdown,
|
|
5389
|
+
gl as DsgFilter,
|
|
5390
|
+
Xa as DsgIcon,
|
|
5391
|
+
nl as DsgInput,
|
|
5392
|
+
ll as DsgInputDropdown,
|
|
5393
|
+
al as DsgInputSelect,
|
|
5394
|
+
dl as DsgLabel,
|
|
5395
|
+
ul as DsgLink,
|
|
5396
|
+
Ya as DsgMiscIcon,
|
|
5397
|
+
cl as DsgModal,
|
|
5398
|
+
bl as DsgTab,
|
|
5399
|
+
fl as DsgTag,
|
|
5400
|
+
hl as DsgToggle,
|
|
5401
|
+
pl as DsgTooltip,
|
|
5402
|
+
Cl as default
|
|
5358
5403
|
};
|