@dcodegroup-au/dsg-vue 0.0.21 → 0.0.22
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-CnRogxoI.cjs → DsgTablePerPage.vue_vue_type_style_index_0_lang--7p1oFP9.cjs} +149 -149
- package/dist/{DsgTablePerPage.vue_vue_type_style_index_0_lang-DvL9jhXe.js → DsgTablePerPage.vue_vue_type_style_index_0_lang-G5N7Ra82.js} +1583 -1565
- package/dist/components/Elements/DsgDatepicker.vue.d.ts +3 -0
- package/dist/dsg-vue.cjs +2 -2
- package/dist/dsg-vue.css +1 -1
- package/dist/dsg-vue.esm.js +201 -200
- package/dist/dsg-vue.table.cjs +1 -1
- package/dist/dsg-vue.table.esm.js +1 -1
- package/package.json +6 -6
package/dist/dsg-vue.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as j, D as ue, a as ui, b as zs, c as Tt, k as ci, d as
|
|
2
|
-
import { defineComponent as x, createElementBlock as y, openBlock as c, normalizeClass as N, unref as se, createVNode as A, normalizeProps as xs, guardReactiveProps as vi, ref as Y, useTemplateRef as be, createElementVNode as S, createCommentVNode as k, renderSlot as $, createBlock as M, toDisplayString as D, reactive as
|
|
1
|
+
import { _ as j, D as ue, a as ui, b as zs, c as Tt, k as ci, d as Re, u as fi, e as hi, f as pi, g as gi, h as mi, i as bi } from "./DsgTablePerPage.vue_vue_type_style_index_0_lang-G5N7Ra82.js";
|
|
2
|
+
import { defineComponent as x, createElementBlock as y, openBlock as c, normalizeClass as N, unref as se, createVNode as A, normalizeProps as xs, guardReactiveProps as vi, ref as Y, useTemplateRef as be, createElementVNode as S, createCommentVNode as k, renderSlot as $, createBlock as M, toDisplayString as D, reactive as Pe, mergeProps as Q, toRaw as oe, createApp as yi, nextTick as cs, computed as q, onMounted as Pt, onUnmounted as fs, Fragment as Z, h as bt, isVNode as Fs, cloneVNode as wi, watchEffect as Ct, useAttrs as ki, mergeModels as Lt, useModel as At, resolveDirective as Ci, renderList as fe, withDirectives as Ae, onBeforeUnmount as Si, withCtx as Ie, withKeys as le, withModifiers as H, vShow as We, Transition as vs, normalizeStyle as rt, createTextVNode as Xe, vModelSelect as Ei, resolveDynamicComponent as Oi } from "vue";
|
|
3
3
|
import { C as $i } from "./DsgColoursConfig-BseFo6-R.js";
|
|
4
4
|
import { _ as _s } from "./DsgLabel.vue_vue_type_style_index_0_lang-BRVMqZ-w.js";
|
|
5
5
|
const Ti = /* @__PURE__ */ x({
|
|
@@ -24,7 +24,7 @@ const Ti = /* @__PURE__ */ x({
|
|
|
24
24
|
for (const [o, i] of t)
|
|
25
25
|
s[o] = i;
|
|
26
26
|
return s;
|
|
27
|
-
},
|
|
27
|
+
}, Ve = /* @__PURE__ */ qs(Ti, [["__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"/>
|
|
@@ -51,7 +51,7 @@ const Ti = /* @__PURE__ */ x({
|
|
|
51
51
|
}, Ri = ["src", "alt"], Ui = {
|
|
52
52
|
key: 0,
|
|
53
53
|
class: "dsg-avatar--info"
|
|
54
|
-
}, Hi = { class: "dsg-avatar--title" }, zi = { class: "dsg-avatar--subtext" },
|
|
54
|
+
}, Hi = { class: "dsg-avatar--title" }, zi = { class: "dsg-avatar--subtext" }, ct = /* @__PURE__ */ x({
|
|
55
55
|
__name: "DsgAvatar",
|
|
56
56
|
props: {
|
|
57
57
|
profileUri: { default: "" },
|
|
@@ -155,14 +155,14 @@ const Ti = /* @__PURE__ */ x({
|
|
|
155
155
|
], 8, Ai)
|
|
156
156
|
], 2));
|
|
157
157
|
}
|
|
158
|
-
}),
|
|
158
|
+
}), mt = {
|
|
159
159
|
TOP_LEFT: "top-left",
|
|
160
160
|
TOP_RIGHT: "top-right",
|
|
161
161
|
TOP_CENTER: "top-center",
|
|
162
162
|
BOTTOM_LEFT: "bottom-left",
|
|
163
163
|
BOTTOM_RIGHT: "bottom-right",
|
|
164
164
|
BOTTOM_CENTER: "bottom-center"
|
|
165
|
-
},
|
|
165
|
+
}, xe = {
|
|
166
166
|
LIGHT: "light",
|
|
167
167
|
DARK: "dark",
|
|
168
168
|
COLORED: "colored",
|
|
@@ -182,7 +182,7 @@ const Ti = /* @__PURE__ */ x({
|
|
|
182
182
|
}, Fi = {
|
|
183
183
|
dangerouslyHTMLString: !1,
|
|
184
184
|
multiple: !0,
|
|
185
|
-
position:
|
|
185
|
+
position: mt.TOP_RIGHT,
|
|
186
186
|
autoClose: 5e3,
|
|
187
187
|
transition: "bounce",
|
|
188
188
|
hideProgressBar: !1,
|
|
@@ -250,10 +250,10 @@ function Wi(e) {
|
|
|
250
250
|
return e.containerId || String(e.position);
|
|
251
251
|
}
|
|
252
252
|
const Mt = "will-unmount";
|
|
253
|
-
function Xi(e =
|
|
253
|
+
function Xi(e = mt.TOP_RIGHT) {
|
|
254
254
|
return !!document.querySelector(`.${B.CSS_NAMESPACE}__toast-container--${e}`);
|
|
255
255
|
}
|
|
256
|
-
function Yi(e =
|
|
256
|
+
function Yi(e = mt.TOP_RIGHT) {
|
|
257
257
|
return `${B.CSS_NAMESPACE}__toast-container--${e}`;
|
|
258
258
|
}
|
|
259
259
|
function Zi(e, t, s = !1) {
|
|
@@ -262,7 +262,7 @@ function Zi(e, t, s = !1) {
|
|
|
262
262
|
`${B.CSS_NAMESPACE}__toast-container--${e}`,
|
|
263
263
|
s ? `${B.CSS_NAMESPACE}__toast-container--rtl` : null
|
|
264
264
|
].filter(Boolean).join(" ");
|
|
265
|
-
return
|
|
265
|
+
return Ue(t) ? t({
|
|
266
266
|
position: e,
|
|
267
267
|
rtl: s,
|
|
268
268
|
defaultClassName: o
|
|
@@ -288,23 +288,23 @@ function is(e) {
|
|
|
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
|
+
ft[i].unmount(), (o = document.getElementById(i)) == null || o.remove(), delete ft[i], delete F[i];
|
|
292
292
|
} catch {
|
|
293
293
|
}
|
|
294
294
|
}
|
|
295
|
-
const
|
|
295
|
+
const ft = Pe({});
|
|
296
296
|
function Qi(e, t) {
|
|
297
297
|
const s = document.getElementById(String(t));
|
|
298
|
-
s && (
|
|
298
|
+
s && (ft[s.id] = e);
|
|
299
299
|
}
|
|
300
300
|
function os(e, t = !0) {
|
|
301
301
|
const s = String(e);
|
|
302
|
-
if (!
|
|
302
|
+
if (!ft[s]) return;
|
|
303
303
|
const o = document.getElementById(s);
|
|
304
304
|
o && o.classList.add(Mt), t ? (to(e), o && o.addEventListener("animationend", is, !1)) : is(s), he.items = he.items.filter((i) => i.containerId !== e);
|
|
305
305
|
}
|
|
306
306
|
function eo(e) {
|
|
307
|
-
for (const t in
|
|
307
|
+
for (const t in ft)
|
|
308
308
|
os(t, e);
|
|
309
309
|
he.items = [];
|
|
310
310
|
}
|
|
@@ -327,7 +327,7 @@ function to(e) {
|
|
|
327
327
|
Gs(s);
|
|
328
328
|
}
|
|
329
329
|
function so(e) {
|
|
330
|
-
const t =
|
|
330
|
+
const t = Fe().find((s) => s.toastId === e);
|
|
331
331
|
return t?.containerId;
|
|
332
332
|
}
|
|
333
333
|
function hs(e) {
|
|
@@ -351,13 +351,13 @@ function no() {
|
|
|
351
351
|
St(e?.toastContent, e?.toastProps);
|
|
352
352
|
}
|
|
353
353
|
}
|
|
354
|
-
const F =
|
|
355
|
-
function
|
|
354
|
+
const F = Pe({}), he = Pe({ items: [] });
|
|
355
|
+
function Fe() {
|
|
356
356
|
const e = oe(F);
|
|
357
357
|
return Object.values(e).reduce((t, s) => [...t, ...s], []);
|
|
358
358
|
}
|
|
359
359
|
function ao(e) {
|
|
360
|
-
return
|
|
360
|
+
return Fe().find((t) => t.toastId === e);
|
|
361
361
|
}
|
|
362
362
|
function St(e, t = {}) {
|
|
363
363
|
if (io(t)) {
|
|
@@ -441,7 +441,7 @@ const J = {
|
|
|
441
441
|
},
|
|
442
442
|
dismiss(e) {
|
|
443
443
|
if (e) {
|
|
444
|
-
const t =
|
|
444
|
+
const t = Fe();
|
|
445
445
|
for (const s of t)
|
|
446
446
|
if (s.toastId === e) {
|
|
447
447
|
Gs(s, (o) => {
|
|
@@ -453,7 +453,7 @@ const J = {
|
|
|
453
453
|
},
|
|
454
454
|
dismissForce(e) {
|
|
455
455
|
if (e) {
|
|
456
|
-
const t =
|
|
456
|
+
const t = Fe();
|
|
457
457
|
for (const s of t)
|
|
458
458
|
if (s.toastId === e) {
|
|
459
459
|
const o = document.getElementById(e);
|
|
@@ -462,7 +462,7 @@ const J = {
|
|
|
462
462
|
}
|
|
463
463
|
}
|
|
464
464
|
}
|
|
465
|
-
}, lo =
|
|
465
|
+
}, lo = Pe({ useHandler: void 0 }), Ws = Pe({}), Bt = Pe({});
|
|
466
466
|
function Xs() {
|
|
467
467
|
return Math.random().toString(36).substring(2, 9);
|
|
468
468
|
}
|
|
@@ -472,7 +472,7 @@ function ro(e) {
|
|
|
472
472
|
function as(e) {
|
|
473
473
|
return typeof e == "string";
|
|
474
474
|
}
|
|
475
|
-
function
|
|
475
|
+
function Ue(e) {
|
|
476
476
|
return typeof e == "function";
|
|
477
477
|
}
|
|
478
478
|
function Nt(...e) {
|
|
@@ -526,7 +526,7 @@ const Ys = {
|
|
|
526
526
|
position: {
|
|
527
527
|
type: String,
|
|
528
528
|
required: !1,
|
|
529
|
-
default:
|
|
529
|
+
default: mt.TOP_LEFT
|
|
530
530
|
},
|
|
531
531
|
bodyClassName: {
|
|
532
532
|
type: String,
|
|
@@ -600,7 +600,7 @@ const Ys = {
|
|
|
600
600
|
theme: {
|
|
601
601
|
type: String,
|
|
602
602
|
required: !1,
|
|
603
|
-
default:
|
|
603
|
+
default: xe.AUTO
|
|
604
604
|
},
|
|
605
605
|
content: {
|
|
606
606
|
type: [String, Object, Function],
|
|
@@ -697,7 +697,7 @@ const Ys = {
|
|
|
697
697
|
theme: {
|
|
698
698
|
type: String,
|
|
699
699
|
required: !1,
|
|
700
|
-
default:
|
|
700
|
+
default: xe.AUTO
|
|
701
701
|
},
|
|
702
702
|
hide: {
|
|
703
703
|
type: Boolean,
|
|
@@ -770,12 +770,12 @@ const Ys = {
|
|
|
770
770
|
theme: {
|
|
771
771
|
type: String,
|
|
772
772
|
required: !1,
|
|
773
|
-
default:
|
|
773
|
+
default: xe.AUTO
|
|
774
774
|
},
|
|
775
775
|
type: {
|
|
776
776
|
type: String,
|
|
777
777
|
required: !1,
|
|
778
|
-
default:
|
|
778
|
+
default: xe.LIGHT
|
|
779
779
|
},
|
|
780
780
|
ariaLabel: {
|
|
781
781
|
type: String,
|
|
@@ -864,7 +864,7 @@ function Co({
|
|
|
864
864
|
if (o !== !1) {
|
|
865
865
|
if (Et(o))
|
|
866
866
|
i = oe(o);
|
|
867
|
-
else if (
|
|
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
870
|
} else Fs(o) ? i = wi(o, a) : as(o) || ro(o) ? i = o : ko(t) && (i = $t[t](a));
|
|
@@ -882,7 +882,7 @@ function Eo(e, t, s = B.COLLAPSE_DURATION) {
|
|
|
882
882
|
});
|
|
883
883
|
}
|
|
884
884
|
function Oo(e) {
|
|
885
|
-
const t = Y(!1), s = Y(!1), o = Y(!1), i = Y(Ot.Enter), n =
|
|
885
|
+
const t = Y(!1), s = Y(!1), o = Y(!1), i = Y(Ot.Enter), n = Pe({
|
|
886
886
|
...e,
|
|
887
887
|
appendPosition: e.appendPosition || !1,
|
|
888
888
|
collapse: typeof e.collapse > "u" ? !0 : e.collapse,
|
|
@@ -937,7 +937,7 @@ function Oo(e) {
|
|
|
937
937
|
T && (T.stopPropagation(), T.preventDefault()), s.value = !1;
|
|
938
938
|
}
|
|
939
939
|
return Ct(C), Ct(() => {
|
|
940
|
-
const T =
|
|
940
|
+
const T = Fe();
|
|
941
941
|
s.value = T.findIndex((ee) => ee.toastId === n.toastId) > -1;
|
|
942
942
|
}), Ct(() => {
|
|
943
943
|
e.isLoading !== void 0 && (e.loading.value ? O() : g());
|
|
@@ -989,7 +989,7 @@ const $o = /* @__PURE__ */ x({
|
|
|
989
989
|
}, [Et(i.value) ? bt(oe(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
995
|
}) : i.value]), A("div", {
|
|
@@ -1001,7 +1001,7 @@ const $o = /* @__PURE__ */ x({
|
|
|
1001
1001
|
...e.expandCustomProps ? e.contentProps : {
|
|
1002
1002
|
contentProps: e.contentProps || {}
|
|
1003
1003
|
}
|
|
1004
|
-
}) :
|
|
1004
|
+
}) : Ue(e.content) ? e.content({
|
|
1005
1005
|
toastProps: oe(e),
|
|
1006
1006
|
closeToast: r,
|
|
1007
1007
|
data: e.data
|
|
@@ -1016,7 +1016,7 @@ const $o = /* @__PURE__ */ x({
|
|
|
1016
1016
|
closeToast: r,
|
|
1017
1017
|
type: e.type,
|
|
1018
1018
|
theme: e.theme
|
|
1019
|
-
}) :
|
|
1019
|
+
}) : Ue(e.closeButton) ? e.closeButton({
|
|
1020
1020
|
closeToast: r,
|
|
1021
1021
|
type: e.type,
|
|
1022
1022
|
theme: e.theme
|
|
@@ -1036,9 +1036,9 @@ const $o = /* @__PURE__ */ x({
|
|
|
1036
1036
|
}, null)]);
|
|
1037
1037
|
}
|
|
1038
1038
|
});
|
|
1039
|
-
let
|
|
1039
|
+
let dt = 0;
|
|
1040
1040
|
function Zs() {
|
|
1041
|
-
typeof window > "u" || (
|
|
1041
|
+
typeof window > "u" || (dt && window.cancelAnimationFrame(dt), dt = window.requestAnimationFrame(Zs), Bt.lastUrl !== window.location.href && (Bt.lastUrl = window.location.href, J.clear()));
|
|
1042
1042
|
}
|
|
1043
1043
|
const To = /* @__PURE__ */ x({
|
|
1044
1044
|
name: "ToastifyContainer",
|
|
@@ -1050,7 +1050,7 @@ const To = /* @__PURE__ */ x({
|
|
|
1050
1050
|
return Pt(() => {
|
|
1051
1051
|
typeof window < "u" && e.clearOnUrlChange && window.requestAnimationFrame(Zs);
|
|
1052
1052
|
}), fs(() => {
|
|
1053
|
-
typeof window < "u" &&
|
|
1053
|
+
typeof window < "u" && dt && (window.cancelAnimationFrame(dt), Bt.lastUrl = "");
|
|
1054
1054
|
}), () => A(Z, null, [o.value.map((i) => {
|
|
1055
1055
|
const {
|
|
1056
1056
|
toastId: n = ""
|
|
@@ -1071,7 +1071,7 @@ const Js = {
|
|
|
1071
1071
|
};
|
|
1072
1072
|
function Qs() {
|
|
1073
1073
|
const e = [];
|
|
1074
|
-
return
|
|
1074
|
+
return Fe().forEach((t) => {
|
|
1075
1075
|
const s = document.getElementById(t.containerId);
|
|
1076
1076
|
s && !s.classList.contains(Mt) && e.push(t);
|
|
1077
1077
|
}), e;
|
|
@@ -1125,7 +1125,7 @@ V.success = (e, t) => Oe(e, K.DEFAULT, {
|
|
|
1125
1125
|
});
|
|
1126
1126
|
V.loading = (e, t) => Oe(e, K.DEFAULT, Nt(t, Js));
|
|
1127
1127
|
V.dark = (e, t) => Oe(e, K.DEFAULT, Nt(t, {
|
|
1128
|
-
theme:
|
|
1128
|
+
theme: xe.DARK
|
|
1129
1129
|
}));
|
|
1130
1130
|
V.remove = (e) => {
|
|
1131
1131
|
e ? J.dismiss(e) : J.clear();
|
|
@@ -1206,15 +1206,15 @@ function Bo(e, {
|
|
|
1206
1206
|
...I,
|
|
1207
1207
|
isLoading: !1
|
|
1208
1208
|
}), g;
|
|
1209
|
-
}, v =
|
|
1209
|
+
}, v = Ue(e) ? e() : e;
|
|
1210
1210
|
return v.then((m) => {
|
|
1211
1211
|
C("success", o, m);
|
|
1212
1212
|
}).catch((m) => {
|
|
1213
1213
|
C("error", s, m);
|
|
1214
1214
|
}), v;
|
|
1215
1215
|
}
|
|
1216
|
-
V.POSITION =
|
|
1217
|
-
V.THEME =
|
|
1216
|
+
V.POSITION = mt;
|
|
1217
|
+
V.THEME = xe;
|
|
1218
1218
|
V.TYPE = K;
|
|
1219
1219
|
V.TRANSITIONS = xi;
|
|
1220
1220
|
const Io = {
|
|
@@ -1240,28 +1240,28 @@ const Po = { class: "dsg-alert__wrapper" }, Mo = ["innerHTML"], No = /* @__PURE_
|
|
|
1240
1240
|
return (n, a) => (c(), y("div", {
|
|
1241
1241
|
class: N(t)
|
|
1242
1242
|
}, [
|
|
1243
|
-
n.contentProps.type === "gray" ? (c(), M(
|
|
1243
|
+
n.contentProps.type === "gray" ? (c(), M(Ve, {
|
|
1244
1244
|
key: 0,
|
|
1245
1245
|
icon: { icon: "info-circle" },
|
|
1246
1246
|
type: "outline",
|
|
1247
1247
|
theme: "gray",
|
|
1248
1248
|
size: "lg"
|
|
1249
1249
|
})) : k("", !0),
|
|
1250
|
-
n.contentProps.type === "error" ? (c(), M(
|
|
1250
|
+
n.contentProps.type === "error" ? (c(), M(Ve, {
|
|
1251
1251
|
key: 1,
|
|
1252
1252
|
icon: { icon: "alert-circle" },
|
|
1253
1253
|
type: "outline",
|
|
1254
1254
|
theme: "error",
|
|
1255
1255
|
size: "lg"
|
|
1256
1256
|
})) : k("", !0),
|
|
1257
|
-
n.contentProps.type === "warning" ? (c(), M(
|
|
1257
|
+
n.contentProps.type === "warning" ? (c(), M(Ve, {
|
|
1258
1258
|
key: 2,
|
|
1259
1259
|
icon: { icon: "alert-circle" },
|
|
1260
1260
|
type: "outline",
|
|
1261
1261
|
theme: "warning",
|
|
1262
1262
|
size: "lg"
|
|
1263
1263
|
})) : k("", !0),
|
|
1264
|
-
n.contentProps.type === "success" ? (c(), M(
|
|
1264
|
+
n.contentProps.type === "success" ? (c(), M(Ve, {
|
|
1265
1265
|
key: 3,
|
|
1266
1266
|
icon: { icon: "check-circle" },
|
|
1267
1267
|
type: "outline",
|
|
@@ -1290,18 +1290,18 @@ const Po = { class: "dsg-alert__wrapper" }, Mo = ["innerHTML"], No = /* @__PURE_
|
|
|
1290
1290
|
])) : k("", !0)
|
|
1291
1291
|
]));
|
|
1292
1292
|
}
|
|
1293
|
-
}), Vo = new class
|
|
1293
|
+
}), Vo = new class ot {
|
|
1294
1294
|
info(t = "", s = "", o = {}) {
|
|
1295
|
-
|
|
1295
|
+
ot.showToast("gray", t, s, o);
|
|
1296
1296
|
}
|
|
1297
1297
|
error(t = "", s = "", o = {}) {
|
|
1298
|
-
|
|
1298
|
+
ot.showToast("error", t, s, o);
|
|
1299
1299
|
}
|
|
1300
1300
|
warning(t = "", s = "", o = {}) {
|
|
1301
|
-
|
|
1301
|
+
ot.showToast("warning", t, s, o);
|
|
1302
1302
|
}
|
|
1303
1303
|
success(t = "", s = "", o = {}) {
|
|
1304
|
-
|
|
1304
|
+
ot.showToast("success", t, s, o);
|
|
1305
1305
|
}
|
|
1306
1306
|
static showToast(t, s, o, i) {
|
|
1307
1307
|
const n = {
|
|
@@ -1398,7 +1398,7 @@ const Po = { class: "dsg-alert__wrapper" }, Mo = ["innerHTML"], No = /* @__PURE_
|
|
|
1398
1398
|
}, [
|
|
1399
1399
|
C.type === "standard" ? $(C.$slots, "dsg-badge--before", { key: 0 }, () => [
|
|
1400
1400
|
S("div", Ro, [
|
|
1401
|
-
C.avatarUri ? (c(), M(
|
|
1401
|
+
C.avatarUri ? (c(), M(ct, {
|
|
1402
1402
|
key: 0,
|
|
1403
1403
|
"profile-uri": C.avatarUri,
|
|
1404
1404
|
class: "dsg-badge--avatar",
|
|
@@ -1551,7 +1551,7 @@ const Po = { class: "dsg-alert__wrapper" }, Mo = ["innerHTML"], No = /* @__PURE_
|
|
|
1551
1551
|
};
|
|
1552
1552
|
}
|
|
1553
1553
|
});
|
|
1554
|
-
var Qo = "2.0.3", ls = 500, ks = "user-agent",
|
|
1554
|
+
var Qo = "2.0.3", ls = 500, ks = "user-agent", _e = "", Cs = "?", It = "function", Ee = "undefined", qe = "object", rs = "string", G = "browser", me = "cpu", de = "device", ie = "engine", te = "os", He = "result", h = "name", d = "type", f = "vendor", p = "version", W = "architecture", ht = "major", u = "model", nt = "console", E = "mobile", P = "tablet", z = "smarttv", re = "wearable", zt = "xr", at = "embedded", Ye = "inapp", ps = "brands", Be = "formFactors", gs = "fullVersionList", ze = "platform", ms = "platformVersion", Rt = "bitness", $e = "sec-ch-ua", en = $e + "-full-version-list", tn = $e + "-arch", sn = $e + "-" + Rt, on = $e + "-form-factors", nn = $e + "-" + E, an = $e + "-" + u, ti = $e + "-" + ze, ln = ti + "-version", si = [ps, gs, E, u, ze, ms, W, Be, Rt], vt = "Amazon", Me = "Apple", Ss = "ASUS", Es = "BlackBerry", Le = "Google", Os = "Huawei", $s = "Lenovo", Ts = "Honor", yt = "LG", xt = "Microsoft", Ft = "Motorola", _t = "Nvidia", Ls = "OnePlus", qt = "OPPO", Ze = "Samsung", As = "Sharp", Je = "Sony", jt = "Xiaomi", Kt = "Zebra", Bs = "Chrome", Is = "Chromium", ke = "Chromecast", rn = "Edge", Qe = "Firefox", et = "Opera", Gt = "Facebook", Ds = "Sogou", Ne = "Mobile ", tt = " Browser", ds = "Windows", dn = typeof window !== Ee, X = dn && window.navigator ? window.navigator : void 0, Ce = X && X.userAgentData ? X.userAgentData : void 0, un = function(e, t) {
|
|
1555
1555
|
var s = {}, o = t;
|
|
1556
1556
|
if (!Dt(t)) {
|
|
1557
1557
|
o = {};
|
|
@@ -1567,44 +1567,44 @@ var Qo = "2.0.3", ls = 500, ks = "user-agent", Fe = "", Cs = "?", It = "function
|
|
|
1567
1567
|
t[e[s].toUpperCase()] = e[s];
|
|
1568
1568
|
return t;
|
|
1569
1569
|
}, us = function(e, t) {
|
|
1570
|
-
if (typeof e ===
|
|
1570
|
+
if (typeof e === qe && e.length > 0) {
|
|
1571
1571
|
for (var s in e)
|
|
1572
1572
|
if (ve(e[s]) == ve(t)) return !0;
|
|
1573
1573
|
return !1;
|
|
1574
1574
|
}
|
|
1575
|
-
return
|
|
1575
|
+
return Ge(e) ? ve(t).indexOf(ve(e)) !== -1 : !1;
|
|
1576
1576
|
}, Dt = function(e, t) {
|
|
1577
1577
|
for (var s in e)
|
|
1578
1578
|
return /^(browser|cpu|device|engine|os)$/.test(s) || (t ? Dt(e[s]) : !1);
|
|
1579
|
-
},
|
|
1579
|
+
}, Ge = function(e) {
|
|
1580
1580
|
return typeof e === rs;
|
|
1581
1581
|
}, Wt = function(e) {
|
|
1582
1582
|
if (e) {
|
|
1583
|
-
for (var t = [], s =
|
|
1583
|
+
for (var t = [], s = je(/\\?\"/g, e).split(","), o = 0; o < s.length; o++)
|
|
1584
1584
|
if (s[o].indexOf(";") > -1) {
|
|
1585
|
-
var i =
|
|
1585
|
+
var i = pt(s[o]).split(";v=");
|
|
1586
1586
|
t[o] = { brand: i[0], version: i[1] };
|
|
1587
1587
|
} else
|
|
1588
|
-
t[o] =
|
|
1588
|
+
t[o] = pt(s[o]);
|
|
1589
1589
|
return t;
|
|
1590
1590
|
}
|
|
1591
1591
|
}, ve = function(e) {
|
|
1592
|
-
return
|
|
1592
|
+
return Ge(e) ? e.toLowerCase() : e;
|
|
1593
1593
|
}, Xt = function(e) {
|
|
1594
|
-
return
|
|
1594
|
+
return Ge(e) ? je(/[^\d\.]/g, e).split(".")[0] : void 0;
|
|
1595
1595
|
}, ye = function(e) {
|
|
1596
1596
|
for (var t in e) {
|
|
1597
1597
|
var s = e[t];
|
|
1598
|
-
typeof s ==
|
|
1598
|
+
typeof s == qe && s.length == 2 ? this[s[0]] = s[1] : this[s] = void 0;
|
|
1599
1599
|
}
|
|
1600
1600
|
return this;
|
|
1601
|
-
},
|
|
1602
|
-
return
|
|
1603
|
-
},
|
|
1604
|
-
return
|
|
1605
|
-
},
|
|
1606
|
-
if (
|
|
1607
|
-
return e =
|
|
1601
|
+
}, je = function(e, t) {
|
|
1602
|
+
return Ge(t) ? t.replace(e, _e) : t;
|
|
1603
|
+
}, st = function(e) {
|
|
1604
|
+
return je(/\\?\"/g, e);
|
|
1605
|
+
}, pt = function(e, t) {
|
|
1606
|
+
if (Ge(e))
|
|
1607
|
+
return e = je(/^\s\s*/, e), typeof t === Ee ? e : e.substring(0, ls);
|
|
1608
1608
|
}, Yt = function(e, t) {
|
|
1609
1609
|
if (!(!e || !t))
|
|
1610
1610
|
for (var s = 0, o, i, n, a, l, r; s < t.length && !l; ) {
|
|
@@ -1612,12 +1612,12 @@ var Qo = "2.0.3", ls = 500, ks = "user-agent", Fe = "", Cs = "?", It = "function
|
|
|
1612
1612
|
for (o = i = 0; o < w.length && !l && w[o]; )
|
|
1613
1613
|
if (l = w[o++].exec(e), l)
|
|
1614
1614
|
for (n = 0; n < b.length; n++)
|
|
1615
|
-
r = l[++i], a = b[n], typeof a ===
|
|
1615
|
+
r = l[++i], a = b[n], typeof a === qe && 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
1616
|
s += 2;
|
|
1617
1617
|
}
|
|
1618
1618
|
}, Se = function(e, t) {
|
|
1619
1619
|
for (var s in t)
|
|
1620
|
-
if (typeof t[s] ===
|
|
1620
|
+
if (typeof t[s] === qe && t[s].length > 0) {
|
|
1621
1621
|
for (var o = 0; o < t[s].length; o++)
|
|
1622
1622
|
if (us(t[s][o], e))
|
|
1623
1623
|
return s === Cs ? void 0 : s;
|
|
@@ -1652,7 +1652,7 @@ var Qo = "2.0.3", ls = 500, ks = "user-agent", Fe = "", Cs = "?", It = "function
|
|
|
1652
1652
|
/\b(?:crmo|crios)\/([\w\.]+)/i
|
|
1653
1653
|
// Chrome for Android/iOS
|
|
1654
1654
|
],
|
|
1655
|
-
[p, [h,
|
|
1655
|
+
[p, [h, Ne + "Chrome"]],
|
|
1656
1656
|
[
|
|
1657
1657
|
/edg(?:e|ios|a)?\/([\w\.]+)/i
|
|
1658
1658
|
// Microsoft Edge
|
|
@@ -1672,17 +1672,17 @@ var Qo = "2.0.3", ls = 500, ks = "user-agent", Fe = "", Cs = "?", It = "function
|
|
|
1672
1672
|
/opios[\/ ]+([\w\.]+)/i
|
|
1673
1673
|
// Opera mini on iphone >= 8.0
|
|
1674
1674
|
],
|
|
1675
|
-
[p, [h,
|
|
1675
|
+
[p, [h, et + " Mini"]],
|
|
1676
1676
|
[
|
|
1677
1677
|
/\bop(?:rg)?x\/([\w\.]+)/i
|
|
1678
1678
|
// Opera GX
|
|
1679
1679
|
],
|
|
1680
|
-
[p, [h,
|
|
1680
|
+
[p, [h, et + " GX"]],
|
|
1681
1681
|
[
|
|
1682
1682
|
/\bopr\/([\w\.]+)/i
|
|
1683
1683
|
// Opera Webkit
|
|
1684
1684
|
],
|
|
1685
|
-
[p, [h,
|
|
1685
|
+
[p, [h, et]],
|
|
1686
1686
|
[
|
|
1687
1687
|
// Mixed
|
|
1688
1688
|
/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i
|
|
@@ -1755,22 +1755,22 @@ var Qo = "2.0.3", ls = 500, ks = "user-agent", Fe = "", Cs = "?", It = "function
|
|
|
1755
1755
|
/slbrowser\/([\w\.]+)/i
|
|
1756
1756
|
// Smart Lenovo Browser
|
|
1757
1757
|
],
|
|
1758
|
-
[p, [h, "Smart " + $s +
|
|
1758
|
+
[p, [h, "Smart " + $s + tt]],
|
|
1759
1759
|
[
|
|
1760
1760
|
/(avast|avg)\/([\w\.]+)/i
|
|
1761
1761
|
// Avast/AVG Secure Browser
|
|
1762
1762
|
],
|
|
1763
|
-
[[h, /(.+)/, "$1 Secure" +
|
|
1763
|
+
[[h, /(.+)/, "$1 Secure" + tt], p],
|
|
1764
1764
|
[
|
|
1765
1765
|
/\bfocus\/([\w\.]+)/i
|
|
1766
1766
|
// Firefox Focus
|
|
1767
1767
|
],
|
|
1768
|
-
[p, [h,
|
|
1768
|
+
[p, [h, Qe + " Focus"]],
|
|
1769
1769
|
[
|
|
1770
1770
|
/\bopt\/([\w\.]+)/i
|
|
1771
1771
|
// Opera Touch
|
|
1772
1772
|
],
|
|
1773
|
-
[p, [h,
|
|
1773
|
+
[p, [h, et + " Touch"]],
|
|
1774
1774
|
[
|
|
1775
1775
|
/coc_coc\w+\/([\w\.]+)/i
|
|
1776
1776
|
// Coc Coc Browser
|
|
@@ -1785,17 +1785,17 @@ var Qo = "2.0.3", ls = 500, ks = "user-agent", Fe = "", Cs = "?", It = "function
|
|
|
1785
1785
|
/coast\/([\w\.]+)/i
|
|
1786
1786
|
// Opera Coast
|
|
1787
1787
|
],
|
|
1788
|
-
[p, [h,
|
|
1788
|
+
[p, [h, et + " Coast"]],
|
|
1789
1789
|
[
|
|
1790
1790
|
/miuibrowser\/([\w\.]+)/i
|
|
1791
1791
|
// MIUI Browser
|
|
1792
1792
|
],
|
|
1793
|
-
[p, [h, "MIUI" +
|
|
1793
|
+
[p, [h, "MIUI" + tt]],
|
|
1794
1794
|
[
|
|
1795
1795
|
/fxios\/([\w\.-]+)/i
|
|
1796
1796
|
// Firefox for iOS
|
|
1797
1797
|
],
|
|
1798
|
-
[p, [h,
|
|
1798
|
+
[p, [h, Ne + Qe]],
|
|
1799
1799
|
[
|
|
1800
1800
|
/\bqihoobrowser\/?([\w\.]*)/i
|
|
1801
1801
|
// 360
|
|
@@ -1809,13 +1809,13 @@ var Qo = "2.0.3", ls = 500, ks = "user-agent", Fe = "", Cs = "?", It = "function
|
|
|
1809
1809
|
[
|
|
1810
1810
|
/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i
|
|
1811
1811
|
],
|
|
1812
|
-
[[h, /(.+)/, "$1" +
|
|
1812
|
+
[[h, /(.+)/, "$1" + tt], p],
|
|
1813
1813
|
[
|
|
1814
1814
|
// Oculus/Sailfish/HuaweiBrowser/VivoBrowser/PicoBrowser
|
|
1815
1815
|
/samsungbrowser\/([\w\.]+)/i
|
|
1816
1816
|
// Samsung Internet
|
|
1817
1817
|
],
|
|
1818
|
-
[p, [h,
|
|
1818
|
+
[p, [h, Ze + " Internet"]],
|
|
1819
1819
|
[
|
|
1820
1820
|
/metasr[\/ ]?([\d\.]+)/i
|
|
1821
1821
|
// Sogou Explorer
|
|
@@ -1852,7 +1852,7 @@ var Qo = "2.0.3", ls = 500, ks = "user-agent", Fe = "", Cs = "?", It = "function
|
|
|
1852
1852
|
/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i
|
|
1853
1853
|
// Facebook App for iOS & Android
|
|
1854
1854
|
],
|
|
1855
|
-
[[h, Gt], p, [d,
|
|
1855
|
+
[[h, Gt], p, [d, Ye]],
|
|
1856
1856
|
[
|
|
1857
1857
|
/(Klarna)\/([\w\.]+)/i,
|
|
1858
1858
|
// Klarna Shopping Browser for iOS & Android
|
|
@@ -1873,22 +1873,22 @@ var Qo = "2.0.3", ls = 500, ks = "user-agent", Fe = "", Cs = "?", It = "function
|
|
|
1873
1873
|
/(instagram|snapchat)[\/ ]([-\w\.]+)/i
|
|
1874
1874
|
// Instagram/Snapchat
|
|
1875
1875
|
],
|
|
1876
|
-
[h, p, [d,
|
|
1876
|
+
[h, p, [d, Ye]],
|
|
1877
1877
|
[
|
|
1878
1878
|
/\bgsa\/([\w\.]+) .*safari\//i
|
|
1879
1879
|
// Google Search Appliance on iOS
|
|
1880
1880
|
],
|
|
1881
|
-
[p, [h, "GSA"], [d,
|
|
1881
|
+
[p, [h, "GSA"], [d, Ye]],
|
|
1882
1882
|
[
|
|
1883
1883
|
/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i
|
|
1884
1884
|
// TikTok
|
|
1885
1885
|
],
|
|
1886
|
-
[p, [h, "TikTok"], [d,
|
|
1886
|
+
[p, [h, "TikTok"], [d, Ye]],
|
|
1887
1887
|
[
|
|
1888
1888
|
/\[(linkedin)app\]/i
|
|
1889
1889
|
// LinkedIn App for iOS & Android
|
|
1890
1890
|
],
|
|
1891
|
-
[h, [d,
|
|
1891
|
+
[h, [d, Ye]],
|
|
1892
1892
|
[
|
|
1893
1893
|
/(chromium)[\/ ]([-\w\.]+)/i
|
|
1894
1894
|
// Chromium
|
|
@@ -1908,12 +1908,12 @@ var Qo = "2.0.3", ls = 500, ks = "user-agent", Fe = "", Cs = "?", It = "function
|
|
|
1908
1908
|
/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i
|
|
1909
1909
|
// Android Browser
|
|
1910
1910
|
],
|
|
1911
|
-
[p, [h, "Android" +
|
|
1911
|
+
[p, [h, "Android" + tt]],
|
|
1912
1912
|
[
|
|
1913
1913
|
/chrome\/([\w\.]+) mobile/i
|
|
1914
1914
|
// Chrome Mobile
|
|
1915
1915
|
],
|
|
1916
|
-
[p, [h,
|
|
1916
|
+
[p, [h, Ne + "Chrome"]],
|
|
1917
1917
|
[
|
|
1918
1918
|
/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i
|
|
1919
1919
|
// Chrome/OmniWeb/Arora/Tizen/Nokia
|
|
@@ -1923,11 +1923,11 @@ var Qo = "2.0.3", ls = 500, ks = "user-agent", Fe = "", Cs = "?", It = "function
|
|
|
1923
1923
|
/version\/([\w\.\,]+) .*mobile(?:\/\w+ | ?)safari/i
|
|
1924
1924
|
// Safari Mobile
|
|
1925
1925
|
],
|
|
1926
|
-
[p, [h,
|
|
1926
|
+
[p, [h, Ne + "Safari"]],
|
|
1927
1927
|
[
|
|
1928
1928
|
/iphone .*mobile(?:\/\w+ | ?)safari/i
|
|
1929
1929
|
],
|
|
1930
|
-
[[h,
|
|
1930
|
+
[[h, Ne + "Safari"]],
|
|
1931
1931
|
[
|
|
1932
1932
|
/version\/([\w\.\,]+) .*(safari)/i
|
|
1933
1933
|
// Safari
|
|
@@ -1947,7 +1947,7 @@ var Qo = "2.0.3", ls = 500, ks = "user-agent", Fe = "", Cs = "?", It = "function
|
|
|
1947
1947
|
/(?:mobile|tablet);.*(firefox)\/([\w\.-]+)/i
|
|
1948
1948
|
// Firefox Mobile
|
|
1949
1949
|
],
|
|
1950
|
-
[[h,
|
|
1950
|
+
[[h, Ne + Qe], p],
|
|
1951
1951
|
[
|
|
1952
1952
|
/(navigator|netscape\d?)\/([-\w\.]+)/i
|
|
1953
1953
|
// Netscape
|
|
@@ -1962,7 +1962,7 @@ var Qo = "2.0.3", ls = 500, ks = "user-agent", Fe = "", Cs = "?", It = "function
|
|
|
1962
1962
|
/mobile vr; rv:([\w\.]+)\).+firefox/i
|
|
1963
1963
|
// Firefox Reality
|
|
1964
1964
|
],
|
|
1965
|
-
[p, [h,
|
|
1965
|
+
[p, [h, Qe + " Reality"]],
|
|
1966
1966
|
[
|
|
1967
1967
|
/ekiohf.+(flow)\/([\w\.]+)/i,
|
|
1968
1968
|
// Flow
|
|
@@ -1987,7 +1987,7 @@ var Qo = "2.0.3", ls = 500, ks = "user-agent", Fe = "", Cs = "?", It = "function
|
|
|
1987
1987
|
/(cobalt)\/([\w\.]+)/i
|
|
1988
1988
|
// Cobalt
|
|
1989
1989
|
],
|
|
1990
|
-
[h, [p, /[^\d\.]+./,
|
|
1990
|
+
[h, [p, /[^\d\.]+./, _e]]
|
|
1991
1991
|
],
|
|
1992
1992
|
cpu: [
|
|
1993
1993
|
[
|
|
@@ -2021,7 +2021,7 @@ var Qo = "2.0.3", ls = 500, ks = "user-agent", Fe = "", Cs = "?", It = "function
|
|
|
2021
2021
|
/((ppc|powerpc)(64)?)( mac|;|\))/i
|
|
2022
2022
|
// PowerPC
|
|
2023
2023
|
],
|
|
2024
|
-
[[W, /ower/,
|
|
2024
|
+
[[W, /ower/, _e, ve]],
|
|
2025
2025
|
[
|
|
2026
2026
|
/ sun4\w[;\)]/i
|
|
2027
2027
|
// SPARC
|
|
@@ -2041,30 +2041,30 @@ var Qo = "2.0.3", ls = 500, ks = "user-agent", Fe = "", Cs = "?", It = "function
|
|
|
2041
2041
|
// Samsung
|
|
2042
2042
|
/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i
|
|
2043
2043
|
],
|
|
2044
|
-
[u, [f,
|
|
2044
|
+
[u, [f, Ze], [d, P]],
|
|
2045
2045
|
[
|
|
2046
2046
|
/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,
|
|
2047
2047
|
/samsung[- ]((?!sm-[lr])[-\w]+)/i,
|
|
2048
2048
|
/sec-(sgh\w+)/i
|
|
2049
2049
|
],
|
|
2050
|
-
[u, [f,
|
|
2050
|
+
[u, [f, Ze], [d, E]],
|
|
2051
2051
|
[
|
|
2052
2052
|
// Apple
|
|
2053
2053
|
/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i
|
|
2054
2054
|
// iPod/iPhone
|
|
2055
2055
|
],
|
|
2056
|
-
[u, [f,
|
|
2056
|
+
[u, [f, Me], [d, E]],
|
|
2057
2057
|
[
|
|
2058
2058
|
/\((ipad);[-\w\),; ]+apple/i,
|
|
2059
2059
|
// iPad
|
|
2060
2060
|
/applecoremedia\/[\w\.]+ \((ipad)/i,
|
|
2061
2061
|
/\b(ipad)\d\d?,\d\d?[;\]].+ios/i
|
|
2062
2062
|
],
|
|
2063
|
-
[u, [f,
|
|
2063
|
+
[u, [f, Me], [d, P]],
|
|
2064
2064
|
[
|
|
2065
2065
|
/(macintosh);/i
|
|
2066
2066
|
],
|
|
2067
|
-
[u, [f,
|
|
2067
|
+
[u, [f, Me]],
|
|
2068
2068
|
[
|
|
2069
2069
|
// Sharp
|
|
2070
2070
|
/\b(sh-?[altvz]?\d\d[a-ekm]?)/i
|
|
@@ -2191,12 +2191,12 @@ var Qo = "2.0.3", ls = 500, ks = "user-agent", Fe = "", Cs = "?", It = "function
|
|
|
2191
2191
|
// Sony
|
|
2192
2192
|
/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
2193
|
],
|
|
2194
|
-
[u, [f,
|
|
2194
|
+
[u, [f, Je], [d, E]],
|
|
2195
2195
|
[
|
|
2196
2196
|
/sony tablet [ps]/i,
|
|
2197
2197
|
/\b(?:sony)?sgp\w+(?: bui|\))/i
|
|
2198
2198
|
],
|
|
2199
|
-
[[u, "Xperia Tablet"], [f,
|
|
2199
|
+
[[u, "Xperia Tablet"], [f, Je], [d, P]],
|
|
2200
2200
|
[
|
|
2201
2201
|
// OnePlus
|
|
2202
2202
|
/ (kb2005|in20[12]5|be20[12][59])\b/i,
|
|
@@ -2394,7 +2394,7 @@ var Qo = "2.0.3", ls = 500, ks = "user-agent", Fe = "", Cs = "?", It = "function
|
|
|
2394
2394
|
[
|
|
2395
2395
|
/hbbtv.+maple;(\d+)/i
|
|
2396
2396
|
],
|
|
2397
|
-
[[u, /^/, "SmartTV"], [f,
|
|
2397
|
+
[[u, /^/, "SmartTV"], [f, Ze], [d, z]],
|
|
2398
2398
|
[
|
|
2399
2399
|
/tcast.+(lg)e?. ([-\w]+)/i
|
|
2400
2400
|
// LG SmartTV
|
|
@@ -2408,7 +2408,7 @@ var Qo = "2.0.3", ls = 500, ks = "user-agent", Fe = "", Cs = "?", It = "function
|
|
|
2408
2408
|
/(apple) ?tv/i
|
|
2409
2409
|
// Apple TV
|
|
2410
2410
|
],
|
|
2411
|
-
[f, [u,
|
|
2411
|
+
[f, [u, Me + " TV"], [d, z]],
|
|
2412
2412
|
[
|
|
2413
2413
|
/crkey.*devicetype\/chromecast/i
|
|
2414
2414
|
// Google Chromecast Third Generation
|
|
@@ -2454,7 +2454,7 @@ var Qo = "2.0.3", ls = 500, ks = "user-agent", Fe = "", Cs = "?", It = "function
|
|
|
2454
2454
|
/(bravia[\w ]+)( bui|\))/i
|
|
2455
2455
|
// Sony
|
|
2456
2456
|
],
|
|
2457
|
-
[u, [f,
|
|
2457
|
+
[u, [f, Je], [d, z]],
|
|
2458
2458
|
[
|
|
2459
2459
|
/(mi(tv|box)-?\w+) bui/i
|
|
2460
2460
|
// Xiaomi
|
|
@@ -2471,7 +2471,7 @@ var Qo = "2.0.3", ls = 500, ks = "user-agent", Fe = "", Cs = "?", It = "function
|
|
|
2471
2471
|
/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i
|
|
2472
2472
|
// HbbTV devices
|
|
2473
2473
|
],
|
|
2474
|
-
[[f,
|
|
2474
|
+
[[f, pt], [u, pt], [d, z]],
|
|
2475
2475
|
[
|
|
2476
2476
|
// SmartTV from Unidentified Vendors
|
|
2477
2477
|
/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i
|
|
@@ -2490,22 +2490,22 @@ var Qo = "2.0.3", ls = 500, ks = "user-agent", Fe = "", Cs = "?", It = "function
|
|
|
2490
2490
|
/(nintendo) (\w+)/i
|
|
2491
2491
|
// Nintendo
|
|
2492
2492
|
],
|
|
2493
|
-
[f, u, [d,
|
|
2493
|
+
[f, u, [d, nt]],
|
|
2494
2494
|
[
|
|
2495
2495
|
/droid.+; (shield)( bui|\))/i
|
|
2496
2496
|
// Nvidia Portable
|
|
2497
2497
|
],
|
|
2498
|
-
[u, [f, _t], [d,
|
|
2498
|
+
[u, [f, _t], [d, nt]],
|
|
2499
2499
|
[
|
|
2500
2500
|
/(playstation \w+)/i
|
|
2501
2501
|
// Playstation
|
|
2502
2502
|
],
|
|
2503
|
-
[u, [f,
|
|
2503
|
+
[u, [f, Je], [d, nt]],
|
|
2504
2504
|
[
|
|
2505
2505
|
/\b(xbox(?: one)?(?!; xbox))[\); ]/i
|
|
2506
2506
|
// Microsoft Xbox
|
|
2507
2507
|
],
|
|
2508
|
-
[u, [f, xt], [d,
|
|
2508
|
+
[u, [f, xt], [d, nt]],
|
|
2509
2509
|
[
|
|
2510
2510
|
///////////////////
|
|
2511
2511
|
// WEARABLES
|
|
@@ -2513,7 +2513,7 @@ var Qo = "2.0.3", ls = 500, ks = "user-agent", Fe = "", Cs = "?", It = "function
|
|
|
2513
2513
|
/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i
|
|
2514
2514
|
// Samsung Galaxy Watch
|
|
2515
2515
|
],
|
|
2516
|
-
[u, [f,
|
|
2516
|
+
[u, [f, Ze], [d, re]],
|
|
2517
2517
|
[
|
|
2518
2518
|
/((pebble))app/i,
|
|
2519
2519
|
// Pebble
|
|
@@ -2530,7 +2530,7 @@ var Qo = "2.0.3", ls = 500, ks = "user-agent", Fe = "", Cs = "?", It = "function
|
|
|
2530
2530
|
/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i
|
|
2531
2531
|
// Apple Watch
|
|
2532
2532
|
],
|
|
2533
|
-
[u, [f,
|
|
2533
|
+
[u, [f, Me], [d, re]],
|
|
2534
2534
|
[
|
|
2535
2535
|
/(opwwe\d{3})/i
|
|
2536
2536
|
// OnePlus Watch
|
|
@@ -2545,7 +2545,7 @@ var Qo = "2.0.3", ls = 500, ks = "user-agent", Fe = "", Cs = "?", It = "function
|
|
|
2545
2545
|
/(smartwatch 3)/i
|
|
2546
2546
|
// Sony SmartWatch
|
|
2547
2547
|
],
|
|
2548
|
-
[u, [f,
|
|
2548
|
+
[u, [f, Je], [d, re]],
|
|
2549
2549
|
[
|
|
2550
2550
|
/(g watch r)/i
|
|
2551
2551
|
// LG G Watch R
|
|
@@ -2580,21 +2580,21 @@ var Qo = "2.0.3", ls = 500, ks = "user-agent", Fe = "", Cs = "?", It = "function
|
|
|
2580
2580
|
/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i
|
|
2581
2581
|
// Tesla
|
|
2582
2582
|
],
|
|
2583
|
-
[f, [d,
|
|
2583
|
+
[f, [d, at]],
|
|
2584
2584
|
[
|
|
2585
2585
|
/(aeobc)\b/i
|
|
2586
2586
|
// Echo Dot
|
|
2587
2587
|
],
|
|
2588
|
-
[u, [f, vt], [d,
|
|
2588
|
+
[u, [f, vt], [d, at]],
|
|
2589
2589
|
[
|
|
2590
2590
|
/(homepod).+mac os/i
|
|
2591
2591
|
// Apple HomePod
|
|
2592
2592
|
],
|
|
2593
|
-
[u, [f,
|
|
2593
|
+
[u, [f, Me], [d, at]],
|
|
2594
2594
|
[
|
|
2595
2595
|
/windows iot/i
|
|
2596
2596
|
],
|
|
2597
|
-
[[d,
|
|
2597
|
+
[[d, at]],
|
|
2598
2598
|
[
|
|
2599
2599
|
////////////////////
|
|
2600
2600
|
// MIXED (GENERIC)
|
|
@@ -2748,7 +2748,7 @@ var Qo = "2.0.3", ls = 500, ks = "user-agent", Fe = "", Cs = "?", It = "function
|
|
|
2748
2748
|
/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i
|
|
2749
2749
|
// Firefox OS
|
|
2750
2750
|
],
|
|
2751
|
-
[p, [h,
|
|
2751
|
+
[p, [h, Qe + " OS"]],
|
|
2752
2752
|
[
|
|
2753
2753
|
/web0s;.+rt(tv)/i,
|
|
2754
2754
|
/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i
|
|
@@ -2820,13 +2820,13 @@ var Qo = "2.0.3", ls = 500, ks = "user-agent", Fe = "", Cs = "?", It = "function
|
|
|
2820
2820
|
}, wt = function() {
|
|
2821
2821
|
var e = { init: {}, isIgnore: {}, isIgnoreRgx: {}, toString: {} };
|
|
2822
2822
|
return ye.call(e.init, [
|
|
2823
|
-
[G, [h, p,
|
|
2823
|
+
[G, [h, p, ht, d]],
|
|
2824
2824
|
[me, [W]],
|
|
2825
2825
|
[de, [d, u, f]],
|
|
2826
2826
|
[ie, [h, p]],
|
|
2827
2827
|
[te, [h, p]]
|
|
2828
2828
|
]), ye.call(e.isIgnore, [
|
|
2829
|
-
[G, [p,
|
|
2829
|
+
[G, [p, ht]],
|
|
2830
2830
|
[ie, [p]],
|
|
2831
2831
|
[te, [p]]
|
|
2832
2832
|
]), ye.call(e.isIgnoreRgx, [
|
|
@@ -2852,10 +2852,10 @@ var Qo = "2.0.3", ls = 500, ks = "user-agent", Fe = "", Cs = "?", It = "function
|
|
|
2852
2852
|
}) : e.parseCH().get();
|
|
2853
2853
|
}, a.prototype.withFeatureCheck = function() {
|
|
2854
2854
|
return e.detectFeature().get();
|
|
2855
|
-
}, t !=
|
|
2855
|
+
}, t != He && (a.prototype.is = function(l) {
|
|
2856
2856
|
var r = !1;
|
|
2857
2857
|
for (var w in this)
|
|
2858
|
-
if (this.hasOwnProperty(w) && !us(o, w) && ve(i ?
|
|
2858
|
+
if (this.hasOwnProperty(w) && !us(o, w) && ve(i ? je(i, this[w]) : this[w]) == ve(i ? je(i, l) : l)) {
|
|
2859
2859
|
if (r = !0, l != Ee) break;
|
|
2860
2860
|
} else if (l == Ee && r) {
|
|
2861
2861
|
r = !r;
|
|
@@ -2863,9 +2863,9 @@ var Qo = "2.0.3", ls = 500, ks = "user-agent", Fe = "", Cs = "?", It = "function
|
|
|
2863
2863
|
}
|
|
2864
2864
|
return r;
|
|
2865
2865
|
}, a.prototype.toString = function() {
|
|
2866
|
-
var l =
|
|
2866
|
+
var l = _e;
|
|
2867
2867
|
for (var r in n)
|
|
2868
|
-
typeof this[n[r]] !== Ee && (l += (l ? " " :
|
|
2868
|
+
typeof this[n[r]] !== Ee && (l += (l ? " " : _e) + this[n[r]]);
|
|
2869
2869
|
return l || Ee;
|
|
2870
2870
|
}), Ce || (a.prototype.then = function(l) {
|
|
2871
2871
|
var r = this, w = function() {
|
|
@@ -2886,12 +2886,12 @@ function ii(e, t) {
|
|
|
2886
2886
|
[ps, Wt(e[$e])],
|
|
2887
2887
|
[gs, Wt(e[en])],
|
|
2888
2888
|
[E, /\?1/.test(e[nn])],
|
|
2889
|
-
[u,
|
|
2890
|
-
[
|
|
2891
|
-
[ms,
|
|
2892
|
-
[W,
|
|
2889
|
+
[u, st(e[an])],
|
|
2890
|
+
[ze, st(e[ti])],
|
|
2891
|
+
[ms, st(e[ln])],
|
|
2892
|
+
[W, st(e[tn])],
|
|
2893
2893
|
[Be, Wt(e[on])],
|
|
2894
|
-
[Rt,
|
|
2894
|
+
[Rt, st(e[sn])]
|
|
2895
2895
|
]);
|
|
2896
2896
|
else
|
|
2897
2897
|
for (var s in e)
|
|
@@ -2914,9 +2914,9 @@ function Vs(e, t, s, o) {
|
|
|
2914
2914
|
!this.get(d) && Ce && Ce[E] && this.set(d, E), this.get(u) == "Macintosh" && X && typeof X.standalone !== Ee && X.maxTouchPoints && X.maxTouchPoints > 2 && this.set(u, "iPad").set(d, P);
|
|
2915
2915
|
break;
|
|
2916
2916
|
case te:
|
|
2917
|
-
!this.get(h) && Ce && Ce[
|
|
2917
|
+
!this.get(h) && Ce && Ce[ze] && this.set(h, Ce[ze]);
|
|
2918
2918
|
break;
|
|
2919
|
-
case
|
|
2919
|
+
case He:
|
|
2920
2920
|
var i = this.data, n = function(a) {
|
|
2921
2921
|
return i[a].getItem().detectFeature().get();
|
|
2922
2922
|
};
|
|
@@ -2924,7 +2924,7 @@ function Vs(e, t, s, o) {
|
|
|
2924
2924
|
}
|
|
2925
2925
|
return this;
|
|
2926
2926
|
}, this.parseUA = function() {
|
|
2927
|
-
return this.itemType !=
|
|
2927
|
+
return this.itemType != He && Yt.call(this.data, this.ua, this.rgxMap), this.itemType == G && this.set(ht, Xt(this.get(p))), this;
|
|
2928
2928
|
}, this.parseCH = function() {
|
|
2929
2929
|
var i = this.uaCH, n = this.rgxMap;
|
|
2930
2930
|
switch (this.itemType) {
|
|
@@ -2943,7 +2943,7 @@ function Vs(e, t, s, o) {
|
|
|
2943
2943
|
"MIUI Browser": "Miui Browser",
|
|
2944
2944
|
"Opera Mobi": "OperaMobile",
|
|
2945
2945
|
Yandex: "YaBrowser"
|
|
2946
|
-
}), this.set(h, w).set(p, b).set(
|
|
2946
|
+
}), this.set(h, w).set(p, b).set(ht, Xt(b)), l = w), this.itemType == ie && w == Is && this.set(p, b);
|
|
2947
2947
|
}
|
|
2948
2948
|
break;
|
|
2949
2949
|
case me:
|
|
@@ -2966,14 +2966,14 @@ function Vs(e, t, s, o) {
|
|
|
2966
2966
|
}
|
|
2967
2967
|
break;
|
|
2968
2968
|
case te:
|
|
2969
|
-
var g = i[
|
|
2969
|
+
var g = i[ze];
|
|
2970
2970
|
if (g) {
|
|
2971
2971
|
var O = i[ms];
|
|
2972
2972
|
g == ds && (O = parseInt(Xt(O), 10) >= 13 ? "11" : "10"), this.set(h, g).set(p, O);
|
|
2973
2973
|
}
|
|
2974
2974
|
this.get(h) == ds && i[u] == "Xbox" && this.set(h, "Xbox").set(p, void 0);
|
|
2975
2975
|
break;
|
|
2976
|
-
case
|
|
2976
|
+
case He:
|
|
2977
2977
|
var I = this.data, T = function(ee) {
|
|
2978
2978
|
return I[ee].getItem().setCH(i).parseCH().get();
|
|
2979
2979
|
};
|
|
@@ -2989,7 +2989,7 @@ function Vs(e, t, s, o) {
|
|
|
2989
2989
|
]), this;
|
|
2990
2990
|
}
|
|
2991
2991
|
function we(e, t, s) {
|
|
2992
|
-
if (typeof e ===
|
|
2992
|
+
if (typeof e === qe ? (Dt(e, !0) ? (typeof t === qe && (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
2993
|
var o = {};
|
|
2994
2994
|
s.forEach(function(r, w) {
|
|
2995
2995
|
o[w] = r;
|
|
@@ -3003,11 +3003,11 @@ function we(e, t, s) {
|
|
|
3003
3003
|
// User-Agent from passed headers
|
|
3004
3004
|
X && X.userAgent ? X.userAgent : (
|
|
3005
3005
|
// navigator.userAgent
|
|
3006
|
-
|
|
3006
|
+
_e
|
|
3007
3007
|
)
|
|
3008
3008
|
)
|
|
3009
3009
|
), n = new ii(s, !0), a = t ? un(Ns, t) : Ns, l = function(r) {
|
|
3010
|
-
return r ==
|
|
3010
|
+
return r == He ? function() {
|
|
3011
3011
|
return new Vs(r, i, a, n).set("ua", i).set(G, this.getBrowser()).set(me, this.getCPU()).set(de, this.getDevice()).set(ie, this.getEngine()).set(te, this.getOS()).get();
|
|
3012
3012
|
} : function() {
|
|
3013
3013
|
return new Vs(r, i, a[r], n).parseUA().get();
|
|
@@ -3019,25 +3019,25 @@ function we(e, t, s) {
|
|
|
3019
3019
|
["getDevice", l(de)],
|
|
3020
3020
|
["getEngine", l(ie)],
|
|
3021
3021
|
["getOS", l(te)],
|
|
3022
|
-
["getResult", l(
|
|
3022
|
+
["getResult", l(He)],
|
|
3023
3023
|
["getUA", function() {
|
|
3024
3024
|
return i;
|
|
3025
3025
|
}],
|
|
3026
3026
|
["setUA", function(r) {
|
|
3027
|
-
return
|
|
3027
|
+
return Ge(r) && (i = r.length > ls ? pt(r, ls) : r), this;
|
|
3028
3028
|
}]
|
|
3029
3029
|
]).setUA(i), this;
|
|
3030
3030
|
}
|
|
3031
3031
|
we.VERSION = Qo;
|
|
3032
|
-
we.BROWSER = Ut([h, p,
|
|
3032
|
+
we.BROWSER = Ut([h, p, ht, d]);
|
|
3033
3033
|
we.CPU = Ut([W]);
|
|
3034
|
-
we.DEVICE = Ut([u, f, d,
|
|
3034
|
+
we.DEVICE = Ut([u, f, d, nt, E, z, P, re, at]);
|
|
3035
3035
|
we.ENGINE = we.OS = Ut([h, p]);
|
|
3036
3036
|
const Zt = typeof navigator < "u" ? navigator.userAgent.toLowerCase().indexOf("firefox") > 0 : !1;
|
|
3037
3037
|
function Jt(e, t, s, o) {
|
|
3038
3038
|
e.addEventListener ? e.addEventListener(t, s, o) : e.attachEvent && e.attachEvent("on".concat(t), s);
|
|
3039
3039
|
}
|
|
3040
|
-
function
|
|
3040
|
+
function it(e, t, s, o) {
|
|
3041
3041
|
e.removeEventListener ? e.removeEventListener(t, s, o) : e.detachEvent && e.detachEvent("on".concat(t), s);
|
|
3042
3042
|
}
|
|
3043
3043
|
function oi(e, t) {
|
|
@@ -3060,7 +3060,7 @@ function fn(e, t) {
|
|
|
3060
3060
|
o.indexOf(s[n]) === -1 && (i = !1);
|
|
3061
3061
|
return i;
|
|
3062
3062
|
}
|
|
3063
|
-
const
|
|
3063
|
+
const Ke = {
|
|
3064
3064
|
backspace: 8,
|
|
3065
3065
|
"⌫": 8,
|
|
3066
3066
|
tab: 9,
|
|
@@ -3128,7 +3128,7 @@ const ht = {
|
|
|
3128
3128
|
"⌘": 91,
|
|
3129
3129
|
cmd: 91,
|
|
3130
3130
|
command: 91
|
|
3131
|
-
},
|
|
3131
|
+
}, lt = {
|
|
3132
3132
|
16: "shiftKey",
|
|
3133
3133
|
18: "altKey",
|
|
3134
3134
|
17: "ctrlKey",
|
|
@@ -3144,13 +3144,13 @@ const ht = {
|
|
|
3144
3144
|
91: !1
|
|
3145
3145
|
}, U = {};
|
|
3146
3146
|
for (let e = 1; e < 20; e++)
|
|
3147
|
-
|
|
3148
|
-
let R = [],
|
|
3149
|
-
const ge = /* @__PURE__ */ new Map(),
|
|
3147
|
+
Ke["f".concat(e)] = 111 + e;
|
|
3148
|
+
let R = [], ut = null, ai = "all";
|
|
3149
|
+
const ge = /* @__PURE__ */ new Map(), De = (e) => Ke[e.toLowerCase()] || ne[e.toLowerCase()] || e.toUpperCase().charCodeAt(0), hn = (e) => Object.keys(Ke).find((t) => Ke[t] === e), pn = (e) => Object.keys(ne).find((t) => ne[t] === e);
|
|
3150
3150
|
function li(e) {
|
|
3151
3151
|
ai = e || "all";
|
|
3152
3152
|
}
|
|
3153
|
-
function
|
|
3153
|
+
function gt() {
|
|
3154
3154
|
return ai || "all";
|
|
3155
3155
|
}
|
|
3156
3156
|
function gn() {
|
|
@@ -3173,7 +3173,7 @@ function bn() {
|
|
|
3173
3173
|
scope: i,
|
|
3174
3174
|
shortcut: a,
|
|
3175
3175
|
mods: n,
|
|
3176
|
-
keys: o.split("+").map((l) =>
|
|
3176
|
+
keys: o.split("+").map((l) => De(l))
|
|
3177
3177
|
});
|
|
3178
3178
|
});
|
|
3179
3179
|
}), e;
|
|
@@ -3187,11 +3187,11 @@ function vn(e) {
|
|
|
3187
3187
|
return (t.isContentEditable || (i || s === "TEXTAREA" || s === "SELECT") && !t.readOnly) && (o = !1), o;
|
|
3188
3188
|
}
|
|
3189
3189
|
function yn(e) {
|
|
3190
|
-
return typeof e == "string" && (e =
|
|
3190
|
+
return typeof e == "string" && (e = De(e)), R.indexOf(e) !== -1;
|
|
3191
3191
|
}
|
|
3192
3192
|
function wn(e, t) {
|
|
3193
3193
|
let s, o;
|
|
3194
|
-
e || (e =
|
|
3194
|
+
e || (e = gt());
|
|
3195
3195
|
for (const i in U)
|
|
3196
3196
|
if (Object.prototype.hasOwnProperty.call(U, i))
|
|
3197
3197
|
for (s = U[i], o = 0; o < s.length; )
|
|
@@ -3201,10 +3201,11 @@ function wn(e, t) {
|
|
|
3201
3201
|
} = a;
|
|
3202
3202
|
return bs(l);
|
|
3203
3203
|
}) : o++;
|
|
3204
|
-
|
|
3204
|
+
gt() === e && li(t || "all");
|
|
3205
3205
|
}
|
|
3206
3206
|
function kn(e) {
|
|
3207
3207
|
let t = e.keyCode || e.which || e.charCode;
|
|
3208
|
+
e.key && (t = De(e.key));
|
|
3208
3209
|
const s = R.indexOf(t);
|
|
3209
3210
|
if (s >= 0 && R.splice(s, 1), e.key && e.key.toLowerCase() === "meta" && R.splice(0, R.length), (t === 93 || t === 224) && (t = 91), t in _) {
|
|
3210
3211
|
_[t] = !1;
|
|
@@ -3242,9 +3243,9 @@ const kt = (e) => {
|
|
|
3242
3243
|
splitKey: i = "+"
|
|
3243
3244
|
} = e;
|
|
3244
3245
|
ni(t).forEach((a) => {
|
|
3245
|
-
const l = a.split(i), r = l.length, w = l[r - 1], b = w === "*" ? "*" :
|
|
3246
|
+
const l = a.split(i), r = l.length, w = l[r - 1], b = w === "*" ? "*" : De(w);
|
|
3246
3247
|
if (!U[b]) return;
|
|
3247
|
-
s || (s =
|
|
3248
|
+
s || (s = gt());
|
|
3248
3249
|
const C = r > 1 ? oi(ne, l) : [], v = [];
|
|
3249
3250
|
U[b] = U[b].filter((m) => {
|
|
3250
3251
|
const g = (o ? m.method === o : !0) && m.scope === s && fn(m.mods, C);
|
|
@@ -3266,23 +3267,23 @@ function Rs(e, t, s, o) {
|
|
|
3266
3267
|
function Us(e, t) {
|
|
3267
3268
|
const s = U["*"];
|
|
3268
3269
|
let o = e.keyCode || e.which || e.charCode;
|
|
3269
|
-
if (!ce.filter.call(this, e)) return;
|
|
3270
|
+
if (e.key && (o = De(e.key)), o === Ke.capslock || !ce.filter.call(this, e)) return;
|
|
3270
3271
|
if ((o === 93 || o === 224) && (o = 91), R.indexOf(o) === -1 && o !== 229 && R.push(o), ["metaKey", "ctrlKey", "altKey", "shiftKey"].forEach((l) => {
|
|
3271
|
-
const r =
|
|
3272
|
-
e[l] && R.indexOf(r) === -1 ? R.push(r) : !e[l] && R.indexOf(r) > -1 ? R.splice(R.indexOf(r), 1) : l === "metaKey" && e[l] && (R = R.filter((w) => w in
|
|
3272
|
+
const r = lt[l];
|
|
3273
|
+
e[l] && R.indexOf(r) === -1 ? R.push(r) : !e[l] && R.indexOf(r) > -1 ? R.splice(R.indexOf(r), 1) : l === "metaKey" && e[l] && (R = R.filter((w) => w in lt || w === o));
|
|
3273
3274
|
}), o in _) {
|
|
3274
3275
|
_[o] = !0;
|
|
3275
3276
|
for (const l in ne)
|
|
3276
3277
|
if (Object.prototype.hasOwnProperty.call(ne, l)) {
|
|
3277
|
-
const r =
|
|
3278
|
+
const r = lt[ne[l]];
|
|
3278
3279
|
ce[l] = e[r];
|
|
3279
3280
|
}
|
|
3280
3281
|
if (!s) return;
|
|
3281
3282
|
}
|
|
3282
3283
|
for (const l in _)
|
|
3283
|
-
Object.prototype.hasOwnProperty.call(_, l) && (_[l] = e[
|
|
3284
|
+
Object.prototype.hasOwnProperty.call(_, l) && (_[l] = e[lt[l]]);
|
|
3284
3285
|
e.getModifierState && !(e.altKey && !e.ctrlKey) && e.getModifierState("AltGraph") && (R.indexOf(17) === -1 && R.push(17), R.indexOf(18) === -1 && R.push(18), _[17] = !0, _[18] = !0);
|
|
3285
|
-
const i =
|
|
3286
|
+
const i = gt();
|
|
3286
3287
|
if (s)
|
|
3287
3288
|
for (let l = 0; l < s.length; l++)
|
|
3288
3289
|
s[l].scope === i && (e.type === "keydown" && s[l].keydown || e.type === "keyup" && s[l].keyup) && Rs(e, s[l], i, t);
|
|
@@ -3294,7 +3295,7 @@ function Us(e, t) {
|
|
|
3294
3295
|
splitKey: w
|
|
3295
3296
|
} = r, b = r.key.split(w), C = [];
|
|
3296
3297
|
for (let v = 0; v < b.length; v++)
|
|
3297
|
-
C.push(
|
|
3298
|
+
C.push(De(b[v]));
|
|
3298
3299
|
C.sort().join("") === R.sort().join("") && Rs(e, r, i, t);
|
|
3299
3300
|
}
|
|
3300
3301
|
}
|
|
@@ -3303,7 +3304,7 @@ function ce(e, t, s) {
|
|
|
3303
3304
|
const o = ni(e);
|
|
3304
3305
|
let i = [], n = "all", a = document, l = 0, r = !1, w = !0, b = "+", C = !1, v = !1;
|
|
3305
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 && (w = t.keydown), t.capture !== void 0 && (C = t.capture), typeof t.splitKey == "string" && (b = t.splitKey), t.single === !0 && (v = !0)), typeof t == "string" && (n = t), v && ri(e, n); l < o.length; l++)
|
|
3306
|
-
e = o[l].split(b), i = [], e.length > 1 && (i = oi(ne, e)), e = e[e.length - 1], e = e === "*" ? "*" :
|
|
3307
|
+
e = o[l].split(b), i = [], e.length > 1 && (i = oi(ne, e)), e = e[e.length - 1], e = e === "*" ? "*" : De(e), e in U || (U[e] = []), U[e].push({
|
|
3307
3308
|
keyup: r,
|
|
3308
3309
|
keydown: w,
|
|
3309
3310
|
scope: n,
|
|
@@ -3329,11 +3330,11 @@ function ce(e, t, s) {
|
|
|
3329
3330
|
capture: C
|
|
3330
3331
|
}), Jt(a, "keydown", m, C), Jt(a, "keyup", L, C);
|
|
3331
3332
|
}
|
|
3332
|
-
if (!
|
|
3333
|
+
if (!ut) {
|
|
3333
3334
|
const m = () => {
|
|
3334
3335
|
R = [];
|
|
3335
3336
|
};
|
|
3336
|
-
|
|
3337
|
+
ut = {
|
|
3337
3338
|
listener: m,
|
|
3338
3339
|
capture: C
|
|
3339
3340
|
}, Jt(window, "focus", m, C);
|
|
@@ -3361,7 +3362,7 @@ function bs(e) {
|
|
|
3361
3362
|
keyupListenr: i,
|
|
3362
3363
|
capture: n
|
|
3363
3364
|
} = ge.get(e) || {};
|
|
3364
|
-
o && i && (
|
|
3365
|
+
o && i && (it(e, "keyup", i, n), it(e, "keydown", o, n), ge.delete(e));
|
|
3365
3366
|
}
|
|
3366
3367
|
if ((t.length <= 0 || ge.size <= 0) && (Object.keys(ge).forEach((i) => {
|
|
3367
3368
|
const {
|
|
@@ -3369,19 +3370,19 @@ function bs(e) {
|
|
|
3369
3370
|
keyupListenr: a,
|
|
3370
3371
|
capture: l
|
|
3371
3372
|
} = ge.get(i) || {};
|
|
3372
|
-
n && a && (
|
|
3373
|
-
}), ge.clear(), Object.keys(U).forEach((i) => delete U[i]),
|
|
3373
|
+
n && a && (it(i, "keyup", a, l), it(i, "keydown", n, l), ge.delete(i));
|
|
3374
|
+
}), ge.clear(), Object.keys(U).forEach((i) => delete U[i]), ut)) {
|
|
3374
3375
|
const {
|
|
3375
3376
|
listener: i,
|
|
3376
3377
|
capture: n
|
|
3377
|
-
} =
|
|
3378
|
-
|
|
3378
|
+
} = ut;
|
|
3379
|
+
it(window, "focus", i, n), ut = null;
|
|
3379
3380
|
}
|
|
3380
3381
|
}
|
|
3381
3382
|
const Qt = {
|
|
3382
3383
|
getPressedKeyString: mn,
|
|
3383
3384
|
setScope: li,
|
|
3384
|
-
getScope:
|
|
3385
|
+
getScope: gt,
|
|
3385
3386
|
deleteScope: wn,
|
|
3386
3387
|
getPressedKeyCodes: gn,
|
|
3387
3388
|
getAllKeyCodes: bn,
|
|
@@ -3389,9 +3390,9 @@ const Qt = {
|
|
|
3389
3390
|
filter: vn,
|
|
3390
3391
|
trigger: Cn,
|
|
3391
3392
|
unbind: ri,
|
|
3392
|
-
keyMap:
|
|
3393
|
+
keyMap: Ke,
|
|
3393
3394
|
modifier: ne,
|
|
3394
|
-
modifierMap:
|
|
3395
|
+
modifierMap: lt
|
|
3395
3396
|
};
|
|
3396
3397
|
for (const e in Qt)
|
|
3397
3398
|
Object.prototype.hasOwnProperty.call(Qt, e) && (ce[e] = Qt[e]);
|
|
@@ -3488,7 +3489,7 @@ const Sn = {
|
|
|
3488
3489
|
S("div", En, [
|
|
3489
3490
|
$(m.$slots, "dsg-dropdown-menu--header", {}, () => [
|
|
3490
3491
|
m.headerType === "avatar" ? (c(), y("div", On, [
|
|
3491
|
-
m.avatarInfo ? (c(), M(
|
|
3492
|
+
m.avatarInfo ? (c(), M(ct, {
|
|
3492
3493
|
key: 0,
|
|
3493
3494
|
size: "md",
|
|
3494
3495
|
profileUri: m.avatarInfo.profileUri,
|
|
@@ -3535,7 +3536,7 @@ const Sn = {
|
|
|
3535
3536
|
S("div", Sn, [
|
|
3536
3537
|
$(m.$slots, "dsg-dropdown--trigger", {}, () => [
|
|
3537
3538
|
m.type === "avatar" ? (c(), y(Z, { key: 0 }, [
|
|
3538
|
-
m.avatarInfo ? (c(), M(
|
|
3539
|
+
m.avatarInfo ? (c(), M(ct, {
|
|
3539
3540
|
key: 0,
|
|
3540
3541
|
size: "lg",
|
|
3541
3542
|
profileUri: m.avatarInfo.profileUri,
|
|
@@ -3544,7 +3545,7 @@ const Sn = {
|
|
|
3544
3545
|
onClick: l,
|
|
3545
3546
|
"prevent-default": !0
|
|
3546
3547
|
}, null, 8, ["profileUri", "fullName"])) : k("", !0)
|
|
3547
|
-
], 64)) : m.type === "button" ? (c(), M(
|
|
3548
|
+
], 64)) : m.type === "button" ? (c(), M(Re, {
|
|
3548
3549
|
key: 1,
|
|
3549
3550
|
theme: m.buttonTheme,
|
|
3550
3551
|
label: m.label,
|
|
@@ -3552,7 +3553,7 @@ const Sn = {
|
|
|
3552
3553
|
ref: "dsgDropdownButtonTriggerEl",
|
|
3553
3554
|
"icon-after": "chevron-down",
|
|
3554
3555
|
class: N({ "dropdown-active": s.value })
|
|
3555
|
-
}, null, 8, ["theme", "label", "class"])) : m.type === "icon" ? (c(), M(
|
|
3556
|
+
}, null, 8, ["theme", "label", "class"])) : m.type === "icon" ? (c(), M(Re, {
|
|
3556
3557
|
key: 2,
|
|
3557
3558
|
"icon-before": m.icon,
|
|
3558
3559
|
size: "sm",
|
|
@@ -4517,7 +4518,7 @@ function na(e, t, s, o, i, n) {
|
|
|
4517
4518
|
512
|
|
4518
4519
|
/* NEED_PATCH */
|
|
4519
4520
|
), [
|
|
4520
|
-
[
|
|
4521
|
+
[We, n.visibleValues.length > 0]
|
|
4521
4522
|
]),
|
|
4522
4523
|
e.internalValue && e.internalValue.length > s.limit ? $(e.$slots, "limit", { key: 0 }, () => [
|
|
4523
4524
|
S("strong", {
|
|
@@ -4536,7 +4537,7 @@ function na(e, t, s, o, i, n) {
|
|
|
4536
4537
|
512
|
|
4537
4538
|
/* NEED_PATCH */
|
|
4538
4539
|
), [
|
|
4539
|
-
[
|
|
4540
|
+
[We, s.loading]
|
|
4540
4541
|
])
|
|
4541
4542
|
])
|
|
4542
4543
|
]),
|
|
@@ -4553,7 +4554,7 @@ function na(e, t, s, o, i, n) {
|
|
|
4553
4554
|
spellcheck: s.spellcheck,
|
|
4554
4555
|
placeholder: e.placeholder,
|
|
4555
4556
|
required: n.isRequired,
|
|
4556
|
-
style:
|
|
4557
|
+
style: rt(n.inputStyle),
|
|
4557
4558
|
value: e.search,
|
|
4558
4559
|
disabled: s.disabled,
|
|
4559
4560
|
tabindex: s.tabindex,
|
|
@@ -4580,7 +4581,7 @@ function na(e, t, s, o, i, n) {
|
|
|
4580
4581
|
},
|
|
4581
4582
|
[
|
|
4582
4583
|
$(e.$slots, "singleLabel", { option: n.singleValue }, () => [
|
|
4583
|
-
|
|
4584
|
+
Xe(
|
|
4584
4585
|
D(e.currentOptionLabel),
|
|
4585
4586
|
1
|
|
4586
4587
|
/* TEXT */
|
|
@@ -4599,7 +4600,7 @@ function na(e, t, s, o, i, n) {
|
|
|
4599
4600
|
},
|
|
4600
4601
|
[
|
|
4601
4602
|
$(e.$slots, "placeholder", {}, () => [
|
|
4602
|
-
|
|
4603
|
+
Xe(
|
|
4603
4604
|
D(e.placeholder),
|
|
4604
4605
|
1
|
|
4605
4606
|
/* TEXT */
|
|
@@ -4626,13 +4627,13 @@ function na(e, t, s, o, i, n) {
|
|
|
4626
4627
|
tabindex: "-1",
|
|
4627
4628
|
onMousedown: t[13] || (t[13] = H(() => {
|
|
4628
4629
|
}, ["prevent"])),
|
|
4629
|
-
style:
|
|
4630
|
+
style: rt({ maxHeight: e.optimizedHeight + "px" }),
|
|
4630
4631
|
ref: "list"
|
|
4631
4632
|
},
|
|
4632
4633
|
[
|
|
4633
4634
|
S("ul", {
|
|
4634
4635
|
class: "multiselect__content",
|
|
4635
|
-
style:
|
|
4636
|
+
style: rt(n.contentStyle),
|
|
4636
4637
|
role: "listbox",
|
|
4637
4638
|
id: "listbox-" + e.id,
|
|
4638
4639
|
"aria-multiselectable": e.multiple
|
|
@@ -4641,7 +4642,7 @@ function na(e, t, s, o, i, n) {
|
|
|
4641
4642
|
e.multiple && e.max === e.internalValue.length ? (c(), y("li", Jn, [
|
|
4642
4643
|
S("span", Qn, [
|
|
4643
4644
|
$(e.$slots, "maxElements", {}, () => [
|
|
4644
|
-
|
|
4645
|
+
Xe(
|
|
4645
4646
|
"Maximum of " + D(e.max) + " options selected. First remove a selected option to select another.",
|
|
4646
4647
|
1
|
|
4647
4648
|
/* TEXT */
|
|
@@ -4714,14 +4715,14 @@ function na(e, t, s, o, i, n) {
|
|
|
4714
4715
|
[
|
|
4715
4716
|
S("span", ia, [
|
|
4716
4717
|
$(e.$slots, "noResult", { search: e.search }, () => [
|
|
4717
|
-
t[20] || (t[20] =
|
|
4718
|
+
t[20] || (t[20] = Xe("No elements found. Consider changing the search query."))
|
|
4718
4719
|
])
|
|
4719
4720
|
])
|
|
4720
4721
|
],
|
|
4721
4722
|
512
|
|
4722
4723
|
/* NEED_PATCH */
|
|
4723
4724
|
), [
|
|
4724
|
-
[
|
|
4725
|
+
[We, s.showNoResults && e.filteredOptions.length === 0 && e.search && !s.loading]
|
|
4725
4726
|
]),
|
|
4726
4727
|
Ae(S(
|
|
4727
4728
|
"li",
|
|
@@ -4729,14 +4730,14 @@ function na(e, t, s, o, i, n) {
|
|
|
4729
4730
|
[
|
|
4730
4731
|
S("span", oa, [
|
|
4731
4732
|
$(e.$slots, "noOptions", {}, () => [
|
|
4732
|
-
t[21] || (t[21] =
|
|
4733
|
+
t[21] || (t[21] = Xe("List is empty."))
|
|
4733
4734
|
])
|
|
4734
4735
|
])
|
|
4735
4736
|
],
|
|
4736
4737
|
512
|
|
4737
4738
|
/* NEED_PATCH */
|
|
4738
4739
|
), [
|
|
4739
|
-
[
|
|
4740
|
+
[We, s.showNoOptions && (e.options.length === 0 || n.hasOptionGroup === !0 && e.filteredOptions.length === 0) && !e.search && !s.loading]
|
|
4740
4741
|
]),
|
|
4741
4742
|
$(e.$slots, "afterList")
|
|
4742
4743
|
], 12, Zn)
|
|
@@ -4744,7 +4745,7 @@ function na(e, t, s, o, i, n) {
|
|
|
4744
4745
|
36
|
|
4745
4746
|
/* STYLE, NEED_HYDRATION */
|
|
4746
4747
|
), [
|
|
4747
|
-
[
|
|
4748
|
+
[We, e.isOpen]
|
|
4748
4749
|
])
|
|
4749
4750
|
]),
|
|
4750
4751
|
_: 3
|
|
@@ -4983,9 +4984,9 @@ const aa = { class: "dsg-input--label-wrapper block" }, la = ["onMousedown"], ra
|
|
|
4983
4984
|
}, null, 32),
|
|
4984
4985
|
S("div", {
|
|
4985
4986
|
class: N(["dsg-modal__wrapper", b.wrapperClasses]),
|
|
4986
|
-
style:
|
|
4987
|
+
style: rt({ width: b.width })
|
|
4987
4988
|
}, [
|
|
4988
|
-
b.hasClosedButton ? (c(), M(
|
|
4989
|
+
b.hasClosedButton ? (c(), M(Re, {
|
|
4989
4990
|
key: 0,
|
|
4990
4991
|
theme: "gray-tertiary",
|
|
4991
4992
|
iconBefore: "x",
|
|
@@ -4997,7 +4998,7 @@ const aa = { class: "dsg-input--label-wrapper block" }, la = ["onMousedown"], ra
|
|
|
4997
4998
|
S("div", {
|
|
4998
4999
|
class: N(["dsg-modal__header", [`dsg-modal__header--${b.type}`, `${b.$slots.default ? "dsg-modal__header--with-body" : ""}`].join(" ")])
|
|
4999
5000
|
}, [
|
|
5000
|
-
b.miscIcon ? (c(), M(
|
|
5001
|
+
b.miscIcon ? (c(), M(Ve, xs(Q({ key: 0 }, b.miscIcon)), null, 16)) : k("", !0),
|
|
5001
5002
|
b.title || b.description ? (c(), y("div", ba, [
|
|
5002
5003
|
b.title ? (c(), y("h3", va, D(b.title), 1)) : k("", !0),
|
|
5003
5004
|
b.description ? (c(), y("p", ya, D(b.description), 1)) : k("", !0)
|
|
@@ -5011,11 +5012,11 @@ const aa = { class: "dsg-input--label-wrapper block" }, la = ["onMousedown"], ra
|
|
|
5011
5012
|
S("div", {
|
|
5012
5013
|
class: N(["dsg-modal__footer", `dsg-modal__footer--${b.footerType}`])
|
|
5013
5014
|
}, [
|
|
5014
|
-
b.secondaryButton ? (c(), M(
|
|
5015
|
+
b.secondaryButton ? (c(), M(Re, Q({ key: 0 }, b.secondaryButton, {
|
|
5015
5016
|
onButtonClicked: r,
|
|
5016
5017
|
classes: "dsg-modal__secondary-button"
|
|
5017
5018
|
}), null, 16)) : k("", !0),
|
|
5018
|
-
b.primaryButton ? (c(), M(
|
|
5019
|
+
b.primaryButton ? (c(), M(Re, Q({ key: 1 }, b.primaryButton, {
|
|
5019
5020
|
onButtonClicked: w,
|
|
5020
5021
|
classes: "dsg-dsg-modal__primary-button"
|
|
5021
5022
|
}), null, 16)) : k("", !0)
|
|
@@ -5081,7 +5082,7 @@ const aa = { class: "dsg-input--label-wrapper block" }, la = ["onMousedown"], ra
|
|
|
5081
5082
|
onBeforeChecked: r,
|
|
5082
5083
|
onAfterChecked: w
|
|
5083
5084
|
}, null, 8, ["size"])) : k("", !0),
|
|
5084
|
-
g.avatarUri ? (c(), M(
|
|
5085
|
+
g.avatarUri ? (c(), M(ct, {
|
|
5085
5086
|
key: 1,
|
|
5086
5087
|
"profile-uri": g.avatarUri,
|
|
5087
5088
|
size: "xxs",
|
|
@@ -5091,7 +5092,7 @@ const aa = { class: "dsg-input--label-wrapper block" }, la = ["onMousedown"], ra
|
|
|
5091
5092
|
g.dotHex ? (c(), y("span", {
|
|
5092
5093
|
key: 2,
|
|
5093
5094
|
class: "dsg-tag--dot",
|
|
5094
|
-
style:
|
|
5095
|
+
style: rt({ backgroundColor: g.dotHex })
|
|
5095
5096
|
}, null, 4)) : k("", !0)
|
|
5096
5097
|
]),
|
|
5097
5098
|
$(g.$slots, "dsg-tag--label", {}, () => [
|
|
@@ -5304,7 +5305,7 @@ const aa = { class: "dsg-input--label-wrapper block" }, la = ["onMousedown"], ra
|
|
|
5304
5305
|
])) : k("", !0)
|
|
5305
5306
|
]));
|
|
5306
5307
|
}
|
|
5307
|
-
}), Ga = j, Wa =
|
|
5308
|
+
}), Ga = j, Wa = Ve, Xa = pi, Ya = Vo, Za = ct, Ja = ei, Qa = Re, el = Tt, tl = Jo, sl = Rn, il = gi, ol = da, nl = ha, al = mi, ll = _s, rl = ma, dl = ka, ul = $a, cl = Da, fl = zs, hl = bi, pl = Na, gl = Ka, wl = {
|
|
5308
5309
|
DsgIcon: Ga,
|
|
5309
5310
|
DsgMiscIcon: Wa,
|
|
5310
5311
|
DsgCreditCardIcon: Xa,
|