bitboss-ui 2.0.1 → 2.0.3
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/components/BbTable/BbTable.vue.d.ts +3 -0
- package/dist/index105.js +6 -6
- package/dist/index105.js.map +1 -1
- package/dist/index113.js +1 -1
- package/dist/index115.js +4 -4
- package/dist/index117.js +1 -1
- package/dist/index12.js +1 -1
- package/dist/index121.js +1 -1
- package/dist/index122.js +1 -1
- package/dist/index123.js +1 -1
- package/dist/index125.js +1 -1
- package/dist/index128.js +1 -1
- package/dist/index14.js +3 -3
- package/dist/index16.js +2 -2
- package/dist/index18.js +3 -3
- package/dist/index198.js +5 -2
- package/dist/index198.js.map +1 -1
- package/dist/index199.js +158 -3
- package/dist/index199.js.map +1 -1
- package/dist/index20.js +12 -12
- package/dist/index200.js +84 -35
- package/dist/index200.js.map +1 -1
- package/dist/index202.js +3 -7
- package/dist/index202.js.map +1 -1
- package/dist/index203.js +3 -5
- package/dist/index203.js.map +1 -1
- package/dist/index204.js +32 -123
- package/dist/index204.js.map +1 -1
- package/dist/index205.js +6 -281
- package/dist/index205.js.map +1 -1
- package/dist/index206.js +7 -123
- package/dist/index206.js.map +1 -1
- package/dist/index207.js +2 -19
- package/dist/index207.js.map +1 -1
- package/dist/index208.js +126 -2
- package/dist/index208.js.map +1 -1
- package/dist/index209.js +5 -2
- package/dist/index209.js.map +1 -1
- package/dist/index210.js +119 -170
- package/dist/index210.js.map +1 -1
- package/dist/index211.js +19 -42
- package/dist/index211.js.map +1 -1
- package/dist/index212.js +5 -0
- package/dist/index212.js.map +1 -0
- package/dist/index213.js +2 -13
- package/dist/index213.js.map +1 -1
- package/dist/index214.js +158 -353
- package/dist/index214.js.map +1 -1
- package/dist/index215.js +42 -2
- package/dist/index215.js.map +1 -1
- package/dist/index217.js +13 -2
- package/dist/index217.js.map +1 -1
- package/dist/index218.js +360 -149
- package/dist/index218.js.map +1 -1
- package/dist/index219.js +2 -84
- package/dist/index219.js.map +1 -1
- package/dist/index22.js +5 -5
- package/dist/{index216.js → index220.js} +2 -2
- package/dist/{index216.js.map → index220.js.map} +1 -1
- package/dist/index221.js +2 -3
- package/dist/index221.js.map +1 -1
- package/dist/index222.js +2 -2
- package/dist/index223.js +2 -2
- package/dist/index224.js +2 -2
- package/dist/index225.js +2 -2
- package/dist/index227.js +2 -3
- package/dist/index227.js.map +1 -1
- package/dist/index228.js +3 -18
- package/dist/index228.js.map +1 -1
- package/dist/index229.js +2 -105
- package/dist/index229.js.map +1 -1
- package/dist/index230.js +21 -0
- package/dist/index230.js.map +1 -0
- package/dist/index231.js +53 -47
- package/dist/index231.js.map +1 -1
- package/dist/index233.js +100 -2
- package/dist/index233.js.map +1 -1
- package/dist/index237.js +9 -9
- package/dist/index237.js.map +1 -1
- package/dist/index238.js +23 -9
- package/dist/index238.js.map +1 -1
- package/dist/index239.js +6 -23
- package/dist/index239.js.map +1 -1
- package/dist/index24.js +1 -1
- package/dist/index240.js +16 -6
- package/dist/index240.js.map +1 -1
- package/dist/index241.js +9 -16
- package/dist/index241.js.map +1 -1
- package/dist/index242.js +3 -431
- package/dist/index242.js.map +1 -1
- package/dist/index243.js +11 -88
- package/dist/index243.js.map +1 -1
- package/dist/index244.js +9 -5
- package/dist/index244.js.map +1 -1
- package/dist/index245.js +9 -2
- package/dist/index245.js.map +1 -1
- package/dist/index246.js +15 -7
- package/dist/index246.js.map +1 -1
- package/dist/index247.js +224 -69
- package/dist/index247.js.map +1 -1
- package/dist/index248.js +420 -189
- package/dist/index248.js.map +1 -1
- package/dist/index249.js +88 -3
- package/dist/index249.js.map +1 -1
- package/dist/index250.js +280 -5
- package/dist/index250.js.map +1 -1
- package/dist/index251.js +6 -2
- package/dist/index251.js.map +1 -1
- package/dist/index252.js +2 -2
- package/dist/index253.js +2 -2
- package/dist/index254.js +2 -126
- package/dist/index254.js.map +1 -1
- package/dist/index255.js +126 -3
- package/dist/index255.js.map +1 -1
- package/dist/index256.js +6 -0
- package/dist/index256.js.map +1 -0
- package/dist/index258.js +7 -3
- package/dist/index258.js.map +1 -1
- package/dist/index259.js +3 -11
- package/dist/index259.js.map +1 -1
- package/dist/index26.js +3 -3
- package/dist/index260.js +2 -9
- package/dist/index260.js.map +1 -1
- package/dist/index261.js +67 -15
- package/dist/index261.js.map +1 -1
- package/dist/index262.js +191 -427
- package/dist/index262.js.map +1 -1
- package/dist/index263.js +5 -127
- package/dist/index263.js.map +1 -1
- package/dist/index264.js +431 -219
- package/dist/index264.js.map +1 -1
- package/dist/index265.js +127 -2
- package/dist/index265.js.map +1 -1
- package/dist/index269.js +2 -3
- package/dist/index269.js.map +1 -1
- package/dist/index270.js +28 -3
- package/dist/index270.js.map +1 -1
- package/dist/index271.js +3 -211
- package/dist/index271.js.map +1 -1
- package/dist/index272.js +6 -0
- package/dist/index272.js.map +1 -0
- package/dist/index273.js +209 -26
- package/dist/index273.js.map +1 -1
- package/dist/index278.js +15 -2
- package/dist/index278.js.map +1 -1
- package/dist/index279.js +34 -10
- package/dist/index279.js.map +1 -1
- package/dist/index28.js +2 -2
- package/dist/index280.js +10 -34
- package/dist/index280.js.map +1 -1
- package/dist/index281.js +2 -47
- package/dist/index281.js.map +1 -1
- package/dist/index282.js +50 -0
- package/dist/index282.js.map +1 -0
- package/dist/index284.js +416 -42
- package/dist/index284.js.map +1 -1
- package/dist/index285.js +50 -0
- package/dist/index285.js.map +1 -0
- package/dist/index30.js +2 -2
- package/dist/index32.js +3 -3
- package/dist/index34.js +13 -13
- package/dist/index36.js +4 -4
- package/dist/index38.js +2 -2
- package/dist/index40.js +2 -2
- package/dist/index42.js +6 -6
- package/dist/index44.js +2 -2
- package/dist/index46.js +2 -2
- package/dist/index52.js +1 -1
- package/dist/index54.js +1 -1
- package/dist/index70.js +4 -4
- package/dist/index74.js +2 -2
- package/dist/index76.js +1 -1
- package/dist/index79.js +2 -2
- package/dist/index81.js +1 -1
- package/dist/index83.js +3 -3
- package/dist/index85.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/index201.js +0 -9
- package/dist/index201.js.map +0 -1
- package/dist/index234.js +0 -6
- package/dist/index234.js.map +0 -1
- package/dist/index257.js +0 -10
- package/dist/index257.js.map +0 -1
- package/dist/index274.js +0 -18
- package/dist/index274.js.map +0 -1
- package/dist/index283.js +0 -424
- package/dist/index283.js.map +0 -1
package/dist/index200.js
CHANGED
|
@@ -1,38 +1,87 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
1
|
+
import { defineComponent as b, openBlock as n, createElementBlock as s, normalizeClass as r, createElementVNode as l, renderSlot as t, createTextVNode as o, toDisplayString as d, createCommentVNode as h, Fragment as c, renderList as m } from "vue";
|
|
2
|
+
const p = { class: "bb-cr-container__container" }, u = {
|
|
3
|
+
key: 0,
|
|
4
|
+
class: "bb-cr-container__loading-container"
|
|
5
|
+
}, g = {
|
|
6
|
+
key: 1,
|
|
7
|
+
class: "bb-cr-container__no-data-container"
|
|
8
|
+
}, _ = /* @__PURE__ */ b({
|
|
9
|
+
__name: "OptionsContainer",
|
|
10
|
+
props: {
|
|
11
|
+
direction: {},
|
|
12
|
+
hasErrors: { type: Boolean },
|
|
13
|
+
hideLabel: { type: Boolean },
|
|
14
|
+
loadingText: {},
|
|
15
|
+
loading: { type: Boolean },
|
|
16
|
+
noDataText: {},
|
|
17
|
+
options: {}
|
|
18
|
+
},
|
|
19
|
+
setup(k) {
|
|
20
|
+
return (a, $) => (n(), s("span", {
|
|
21
|
+
ref: "container",
|
|
22
|
+
class: r(["bb-cr-container", {
|
|
23
|
+
"bb-cr-container--errors": a.hasErrors,
|
|
24
|
+
"bb-cr-container--horizontal": a.direction === "horizontal",
|
|
25
|
+
"bb-cr-container--vertical": a.direction === "vertical"
|
|
26
|
+
}])
|
|
27
|
+
}, [
|
|
28
|
+
l("span", p, [
|
|
29
|
+
t(a.$slots, "prepend"),
|
|
30
|
+
!a.options.length && a.loading ? (n(), s("span", u, [
|
|
31
|
+
t(a.$slots, "loading", {}, () => [
|
|
32
|
+
o(d(a.loadingText), 1)
|
|
33
|
+
])
|
|
34
|
+
])) : a.options.length ? h("", !0) : (n(), s("span", g, [
|
|
35
|
+
t(a.$slots, "no-data", {}, () => [
|
|
36
|
+
o(d(a.noDataText), 1)
|
|
37
|
+
])
|
|
38
|
+
])),
|
|
39
|
+
(n(!0), s(c, null, m(a.options, (e, i) => (n(), s(c, {
|
|
40
|
+
key: (e == null ? void 0 : e.id) || i
|
|
41
|
+
}, [
|
|
42
|
+
t(a.$slots, "option:prepend", {
|
|
43
|
+
id: e.valueHash,
|
|
44
|
+
checked: !!e.selected,
|
|
45
|
+
disabled: !!e.disabled,
|
|
46
|
+
item: e.item,
|
|
47
|
+
text: e.text
|
|
48
|
+
}),
|
|
49
|
+
l("label", {
|
|
50
|
+
class: r(["bb-cr-container-option", { "bb-base-radio-selected": e.selected }])
|
|
51
|
+
}, [
|
|
52
|
+
t(a.$slots, "input", {
|
|
53
|
+
index: i,
|
|
54
|
+
option: e
|
|
55
|
+
}),
|
|
56
|
+
l("span", {
|
|
57
|
+
class: r({
|
|
58
|
+
"bb-cr-container-option__text": !0,
|
|
59
|
+
"bb-cr-container-option__text--hidden": a.hideLabel
|
|
60
|
+
})
|
|
61
|
+
}, [
|
|
62
|
+
t(a.$slots, "label", {
|
|
63
|
+
checked: !!e.selected,
|
|
64
|
+
item: e.item,
|
|
65
|
+
text: e.text
|
|
66
|
+
}, () => [
|
|
67
|
+
o(d(e.text), 1)
|
|
68
|
+
])
|
|
69
|
+
], 2)
|
|
70
|
+
], 2),
|
|
71
|
+
t(a.$slots, "option:append", {
|
|
72
|
+
id: e.valueHash,
|
|
73
|
+
checked: !!e.selected,
|
|
74
|
+
disabled: !!e.disabled,
|
|
75
|
+
item: e.item,
|
|
76
|
+
text: e.text
|
|
77
|
+
})
|
|
78
|
+
], 64))), 128)),
|
|
79
|
+
t(a.$slots, "append")
|
|
80
|
+
])
|
|
81
|
+
], 2));
|
|
82
|
+
}
|
|
83
|
+
});
|
|
35
84
|
export {
|
|
36
|
-
|
|
85
|
+
_ as default
|
|
37
86
|
};
|
|
38
87
|
//# sourceMappingURL=index200.js.map
|
package/dist/index200.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index200.js","sources":[
|
|
1
|
+
{"version":3,"file":"index200.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index202.js
CHANGED
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
const
|
|
3
|
-
o.value++;
|
|
4
|
-
}, a = () => {
|
|
5
|
-
o.value--;
|
|
6
|
-
}, d = () => ({ openedModals: o, modalHasOpened: s, modalHasClosed: a });
|
|
1
|
+
import r from "./index247.js";
|
|
2
|
+
const t = r;
|
|
7
3
|
export {
|
|
8
|
-
|
|
4
|
+
t as deburr
|
|
9
5
|
};
|
|
10
6
|
//# sourceMappingURL=index202.js.map
|
package/dist/index202.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index202.js","sources":["../src/
|
|
1
|
+
{"version":3,"file":"index202.js","sources":["../src/utilities/functions/deburr.ts"],"sourcesContent":["import d from 'lodash.deburr';\n\nexport const deburr = d;\n"],"names":["deburr","d"],"mappings":";AAEO,MAAMA,IAASC;"}
|
package/dist/index203.js
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
error: (r) => console.error(`${o}${r}`)
|
|
4
|
-
});
|
|
1
|
+
import t from "./index249.js";
|
|
2
|
+
const r = t;
|
|
5
3
|
export {
|
|
6
|
-
|
|
4
|
+
r as throttle
|
|
7
5
|
};
|
|
8
6
|
//# sourceMappingURL=index203.js.map
|
package/dist/index203.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index203.js","sources":["../src/
|
|
1
|
+
{"version":3,"file":"index203.js","sources":["../src/utilities/functions/throttle.ts"],"sourcesContent":["import t from 'lodash.throttle';\n\nexport const throttle = t;\n"],"names":["throttle"],"mappings":";AAEO,MAAMA,IAAW;"}
|
package/dist/index204.js
CHANGED
|
@@ -1,129 +1,38 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
const l = e.$el;
|
|
12
|
-
return B(l) && F(l) === "#comment" ? null : l;
|
|
13
|
-
}
|
|
14
|
-
return e;
|
|
15
|
-
}
|
|
16
|
-
function o(e) {
|
|
17
|
-
return typeof e == "function" ? e() : q(e);
|
|
18
|
-
}
|
|
19
|
-
function K(e) {
|
|
20
|
-
return {
|
|
21
|
-
name: "arrow",
|
|
22
|
-
options: e,
|
|
23
|
-
fn(l) {
|
|
24
|
-
const t = g(o(e.element));
|
|
25
|
-
return t == null ? {} : j({
|
|
26
|
-
element: t,
|
|
27
|
-
padding: e.padding
|
|
28
|
-
}).fn(l);
|
|
29
|
-
}
|
|
1
|
+
import { unrefElement as m } from "./index127.js";
|
|
2
|
+
import { ref as u, watch as l } from "vue";
|
|
3
|
+
import { createFocusTrap as d } from "./index248.js";
|
|
4
|
+
import { tryOnScopeDispose as D } from "./index197.js";
|
|
5
|
+
function O(i, a = {}) {
|
|
6
|
+
let e;
|
|
7
|
+
const { immediate: f, ...n } = a, c = u(!1), s = u(!1), o = (t) => e && e.activate(t), r = (t) => e && e.deactivate(t), v = () => {
|
|
8
|
+
e && (e.pause(), s.value = !0);
|
|
9
|
+
}, p = () => {
|
|
10
|
+
e && (e.unpause(), s.value = !1);
|
|
30
11
|
};
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
return (n = o(t.transform)) != null ? n : !0;
|
|
53
|
-
}), i = a(() => g(e.value)), u = a(() => g(l.value)), p = f(0), w = f(0), c = f(v.value), O = f(d.value), P = I({}), y = f(!1), _ = a(() => {
|
|
54
|
-
const n = {
|
|
55
|
-
position: c.value,
|
|
56
|
-
left: "0",
|
|
57
|
-
top: "0"
|
|
58
|
-
};
|
|
59
|
-
if (!u.value)
|
|
60
|
-
return n;
|
|
61
|
-
const R = C(u.value, p.value), b = C(u.value, w.value);
|
|
62
|
-
return S.value ? {
|
|
63
|
-
...n,
|
|
64
|
-
transform: "translate(" + R + "px, " + b + "px)",
|
|
65
|
-
...M(u.value) >= 1.5 && {
|
|
66
|
-
willChange: "transform"
|
|
67
|
-
}
|
|
68
|
-
} : {
|
|
69
|
-
position: c.value,
|
|
70
|
-
left: R + "px",
|
|
71
|
-
top: b + "px"
|
|
72
|
-
};
|
|
73
|
-
});
|
|
74
|
-
let s;
|
|
75
|
-
function m() {
|
|
76
|
-
i.value == null || u.value == null || A(i.value, u.value, {
|
|
77
|
-
middleware: D.value,
|
|
78
|
-
placement: d.value,
|
|
79
|
-
strategy: v.value
|
|
80
|
-
}).then((n) => {
|
|
81
|
-
p.value = n.x, w.value = n.y, c.value = n.strategy, O.value = n.placement, P.value = n.middlewareData, y.value = !0;
|
|
82
|
-
});
|
|
83
|
-
}
|
|
84
|
-
function E() {
|
|
85
|
-
typeof s == "function" && (s(), s = void 0);
|
|
86
|
-
}
|
|
87
|
-
function N() {
|
|
88
|
-
if (E(), x === void 0) {
|
|
89
|
-
m();
|
|
90
|
-
return;
|
|
91
|
-
}
|
|
92
|
-
if (i.value != null && u.value != null) {
|
|
93
|
-
s = x(i.value, u.value, m);
|
|
94
|
-
return;
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
function $() {
|
|
98
|
-
V.value || (y.value = !1);
|
|
99
|
-
}
|
|
100
|
-
return h([D, d, v], m, {
|
|
101
|
-
flush: "sync"
|
|
102
|
-
}), h([i, u], N, {
|
|
103
|
-
flush: "sync"
|
|
104
|
-
}), h(V, $, {
|
|
105
|
-
flush: "sync"
|
|
106
|
-
}), U() && k(E), {
|
|
107
|
-
x: r(p),
|
|
108
|
-
y: r(w),
|
|
109
|
-
strategy: r(c),
|
|
110
|
-
placement: r(O),
|
|
111
|
-
middlewareData: r(P),
|
|
112
|
-
isPositioned: r(y),
|
|
113
|
-
floatingStyles: _,
|
|
114
|
-
update: m
|
|
12
|
+
return l(
|
|
13
|
+
() => m(i),
|
|
14
|
+
(t) => {
|
|
15
|
+
t && (e = d(t, {
|
|
16
|
+
...n,
|
|
17
|
+
onActivate() {
|
|
18
|
+
c.value = !0, a.onActivate && a.onActivate();
|
|
19
|
+
},
|
|
20
|
+
onDeactivate() {
|
|
21
|
+
c.value = !1, a.onDeactivate && a.onDeactivate();
|
|
22
|
+
}
|
|
23
|
+
}), f && o());
|
|
24
|
+
},
|
|
25
|
+
{ flush: "post" }
|
|
26
|
+
), D(() => r()), {
|
|
27
|
+
hasFocus: c,
|
|
28
|
+
isPaused: s,
|
|
29
|
+
activate: o,
|
|
30
|
+
deactivate: r,
|
|
31
|
+
pause: v,
|
|
32
|
+
unpause: p
|
|
115
33
|
};
|
|
116
34
|
}
|
|
117
35
|
export {
|
|
118
|
-
|
|
119
|
-
W as autoUpdate,
|
|
120
|
-
A as computePosition,
|
|
121
|
-
X as flip,
|
|
122
|
-
le as getOverflowAncestors,
|
|
123
|
-
Y as hide,
|
|
124
|
-
Z as offset,
|
|
125
|
-
ee as platform,
|
|
126
|
-
ne as shift,
|
|
127
|
-
L as useFloating
|
|
36
|
+
O as useFocusTrap
|
|
128
37
|
};
|
|
129
38
|
//# sourceMappingURL=index204.js.map
|
package/dist/index204.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index204.js","sources":["../node_modules/@floating-ui/vue/dist/floating-ui.vue.mjs"],"sourcesContent":["import { arrow as arrow$1, computePosition } from '@floating-ui/dom';\nexport { autoPlacement, autoUpdate, computePosition, detectOverflow, flip, getOverflowAncestors, hide, inline, limitShift, offset, platform, shift, size } from '@floating-ui/dom';\nimport { isNode, getNodeName } from '@floating-ui/utils/dom';\nimport { unref, computed, ref, shallowRef, watch, getCurrentScope, onScopeDispose, shallowReadonly } from 'vue-demi';\n\nfunction isComponentPublicInstance(target) {\n return target != null && typeof target === 'object' && '$el' in target;\n}\nfunction unwrapElement(target) {\n if (isComponentPublicInstance(target)) {\n const element = target.$el;\n return isNode(element) && getNodeName(element) === '#comment' ? null : element;\n }\n return target;\n}\n\nfunction toValue(source) {\n return typeof source === 'function' ? source() : unref(source);\n}\n\n/**\n * Positions an inner element of the floating element such that it is centered to the reference element.\n * @param options The arrow options.\n * @see https://floating-ui.com/docs/arrow\n */\nfunction arrow(options) {\n return {\n name: 'arrow',\n options,\n fn(args) {\n const element = unwrapElement(toValue(options.element));\n if (element == null) {\n return {};\n }\n return arrow$1({\n element,\n padding: options.padding\n }).fn(args);\n }\n };\n}\n\nfunction getDPR(element) {\n if (typeof window === 'undefined') {\n return 1;\n }\n const win = element.ownerDocument.defaultView || window;\n return win.devicePixelRatio || 1;\n}\n\nfunction roundByDPR(element, value) {\n const dpr = getDPR(element);\n return Math.round(value * dpr) / dpr;\n}\n\n/**\n * Computes the `x` and `y` coordinates that will place the floating element next to a reference element when it is given a certain CSS positioning strategy.\n * @param reference The reference template ref.\n * @param floating The floating template ref.\n * @param options The floating options.\n * @see https://floating-ui.com/docs/vue\n */\nfunction useFloating(reference, floating, options) {\n if (options === void 0) {\n options = {};\n }\n const whileElementsMountedOption = options.whileElementsMounted;\n const openOption = computed(() => {\n var _toValue;\n return (_toValue = toValue(options.open)) != null ? _toValue : true;\n });\n const middlewareOption = computed(() => toValue(options.middleware));\n const placementOption = computed(() => {\n var _toValue2;\n return (_toValue2 = toValue(options.placement)) != null ? _toValue2 : 'bottom';\n });\n const strategyOption = computed(() => {\n var _toValue3;\n return (_toValue3 = toValue(options.strategy)) != null ? _toValue3 : 'absolute';\n });\n const transformOption = computed(() => {\n var _toValue4;\n return (_toValue4 = toValue(options.transform)) != null ? _toValue4 : true;\n });\n const referenceElement = computed(() => unwrapElement(reference.value));\n const floatingElement = computed(() => unwrapElement(floating.value));\n const x = ref(0);\n const y = ref(0);\n const strategy = ref(strategyOption.value);\n const placement = ref(placementOption.value);\n const middlewareData = shallowRef({});\n const isPositioned = ref(false);\n const floatingStyles = computed(() => {\n const initialStyles = {\n position: strategy.value,\n left: '0',\n top: '0'\n };\n if (!floatingElement.value) {\n return initialStyles;\n }\n const xVal = roundByDPR(floatingElement.value, x.value);\n const yVal = roundByDPR(floatingElement.value, y.value);\n if (transformOption.value) {\n return {\n ...initialStyles,\n transform: \"translate(\" + xVal + \"px, \" + yVal + \"px)\",\n ...(getDPR(floatingElement.value) >= 1.5 && {\n willChange: 'transform'\n })\n };\n }\n return {\n position: strategy.value,\n left: xVal + \"px\",\n top: yVal + \"px\"\n };\n });\n let whileElementsMountedCleanup;\n function update() {\n if (referenceElement.value == null || floatingElement.value == null) {\n return;\n }\n computePosition(referenceElement.value, floatingElement.value, {\n middleware: middlewareOption.value,\n placement: placementOption.value,\n strategy: strategyOption.value\n }).then(position => {\n x.value = position.x;\n y.value = position.y;\n strategy.value = position.strategy;\n placement.value = position.placement;\n middlewareData.value = position.middlewareData;\n isPositioned.value = true;\n });\n }\n function cleanup() {\n if (typeof whileElementsMountedCleanup === 'function') {\n whileElementsMountedCleanup();\n whileElementsMountedCleanup = undefined;\n }\n }\n function attach() {\n cleanup();\n if (whileElementsMountedOption === undefined) {\n update();\n return;\n }\n if (referenceElement.value != null && floatingElement.value != null) {\n whileElementsMountedCleanup = whileElementsMountedOption(referenceElement.value, floatingElement.value, update);\n return;\n }\n }\n function reset() {\n if (!openOption.value) {\n isPositioned.value = false;\n }\n }\n watch([middlewareOption, placementOption, strategyOption], update, {\n flush: 'sync'\n });\n watch([referenceElement, floatingElement], attach, {\n flush: 'sync'\n });\n watch(openOption, reset, {\n flush: 'sync'\n });\n if (getCurrentScope()) {\n onScopeDispose(cleanup);\n }\n return {\n x: shallowReadonly(x),\n y: shallowReadonly(y),\n strategy: shallowReadonly(strategy),\n placement: shallowReadonly(placement),\n middlewareData: shallowReadonly(middlewareData),\n isPositioned: shallowReadonly(isPositioned),\n floatingStyles,\n update\n };\n}\n\nexport { arrow, useFloating };\n"],"names":["isComponentPublicInstance","target","unwrapElement","element","isNode","getNodeName","toValue","source","unref","arrow","options","args","arrow$1","getDPR","roundByDPR","value","dpr","useFloating","reference","floating","whileElementsMountedOption","openOption","computed","_toValue","middlewareOption","placementOption","_toValue2","strategyOption","_toValue3","transformOption","_toValue4","referenceElement","floatingElement","x","ref","y","strategy","placement","middlewareData","shallowRef","isPositioned","floatingStyles","initialStyles","xVal","yVal","whileElementsMountedCleanup","update","computePosition","position","cleanup","attach","reset","watch","getCurrentScope","onScopeDispose","shallowReadonly"],"mappings":";;;;;AAKA,SAASA,EAA0BC,GAAQ;AACzC,SAAOA,KAAU,QAAQ,OAAOA,KAAW,YAAY,SAASA;AAClE;AACA,SAASC,E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","sources":["../node_modules/@vueuse/integrations/useFocusTrap.mjs"],"sourcesContent":["import { unrefElement, tryOnScopeDispose } from '@vueuse/core';\nimport { ref, watch } from 'vue-demi';\nimport { createFocusTrap } from 'focus-trap';\n\nfunction useFocusTrap(target, options = {}) {\n let trap;\n const { immediate, ...focusTrapOptions } = options;\n const hasFocus = ref(false);\n const isPaused = ref(false);\n const activate = (opts) => trap && trap.activate(opts);\n const deactivate = (opts) => trap && trap.deactivate(opts);\n const pause = () => {\n if (trap) {\n trap.pause();\n isPaused.value = true;\n }\n };\n const unpause = () => {\n if (trap) {\n trap.unpause();\n isPaused.value = false;\n }\n };\n watch(\n () => unrefElement(target),\n (el) => {\n if (!el)\n return;\n trap = createFocusTrap(el, {\n ...focusTrapOptions,\n onActivate() {\n hasFocus.value = true;\n if (options.onActivate)\n options.onActivate();\n },\n onDeactivate() {\n hasFocus.value = false;\n if (options.onDeactivate)\n options.onDeactivate();\n }\n });\n if (immediate)\n activate();\n },\n { flush: \"post\" }\n );\n tryOnScopeDispose(() => deactivate());\n return {\n hasFocus,\n isPaused,\n activate,\n deactivate,\n pause,\n unpause\n };\n}\n\nexport { useFocusTrap };\n"],"names":["useFocusTrap","target","options","trap","immediate","focusTrapOptions","hasFocus","ref","isPaused","activate","opts","deactivate","pause","unpause","watch","unrefElement","el","createFocusTrap","tryOnScopeDispose"],"mappings":";;;;AAIA,SAASA,EAAaC,GAAQC,IAAU,IAAI;AAC1C,MAAIC;AACJ,QAAM,EAAE,WAAAC,GAAW,GAAGC,EAAgB,IAAKH,GACrCI,IAAWC,EAAI,EAAK,GACpBC,IAAWD,EAAI,EAAK,GACpBE,IAAW,CAACC,MAASP,KAAQA,EAAK,SAASO,CAAI,GAC/CC,IAAa,CAACD,MAASP,KAAQA,EAAK,WAAWO,CAAI,GACnDE,IAAQ,MAAM;AAClB,IAAIT,MACFA,EAAK,MAAK,GACVK,EAAS,QAAQ;AAAA,EAEvB,GACQK,IAAU,MAAM;AACpB,IAAIV,MACFA,EAAK,QAAO,GACZK,EAAS,QAAQ;AAAA,EAEvB;AACE,SAAAM;AAAA,IACE,MAAMC,EAAad,CAAM;AAAA,IACzB,CAACe,MAAO;AACN,MAAKA,MAELb,IAAOc,EAAgBD,GAAI;AAAA,QACzB,GAAGX;AAAA,QACH,aAAa;AACX,UAAAC,EAAS,QAAQ,IACbJ,EAAQ,cACVA,EAAQ,WAAU;AAAA,QACrB;AAAA,QACD,eAAe;AACb,UAAAI,EAAS,QAAQ,IACbJ,EAAQ,gBACVA,EAAQ,aAAY;AAAA,QACvB;AAAA,MACT,CAAO,GACGE,KACFK;IACH;AAAA,IACD,EAAE,OAAO,OAAQ;AAAA,EACrB,GACES,EAAkB,MAAMP,EAAU,CAAE,GAC7B;AAAA,IACL,UAAAL;AAAA,IACA,UAAAE;AAAA,IACA,UAAAC;AAAA,IACA,YAAAE;AAAA,IACA,OAAAC;AAAA,IACA,SAAAC;AAAA,EACJ;AACA;","x_google_ignoreList":[0]}
|
package/dist/index205.js
CHANGED
|
@@ -1,284 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
(
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
})(K, function() {
|
|
7
|
-
var W = 1e3, k = 6e4, N = 36e5, A = "millisecond", S = "second", w = "minute", O = "hour", M = "day", T = "week", m = "month", U = "quarter", y = "year", _ = "date", J = "Invalid Date", q = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, B = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, G = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(s) {
|
|
8
|
-
var n = ["th", "st", "nd", "rd"], t = s % 100;
|
|
9
|
-
return "[" + s + (n[(t - 20) % 10] || n[t] || n[0]) + "]";
|
|
10
|
-
} }, I = function(s, n, t) {
|
|
11
|
-
var r = String(s);
|
|
12
|
-
return !r || r.length >= n ? s : "" + Array(n + 1 - r.length).join(t) + s;
|
|
13
|
-
}, P = { s: I, z: function(s) {
|
|
14
|
-
var n = -s.utcOffset(), t = Math.abs(n), r = Math.floor(t / 60), e = t % 60;
|
|
15
|
-
return (n <= 0 ? "+" : "-") + I(r, 2, "0") + ":" + I(e, 2, "0");
|
|
16
|
-
}, m: function s(n, t) {
|
|
17
|
-
if (n.date() < t.date()) return -s(t, n);
|
|
18
|
-
var r = 12 * (t.year() - n.year()) + (t.month() - n.month()), e = n.clone().add(r, m), i = t - e < 0, u = n.clone().add(r + (i ? -1 : 1), m);
|
|
19
|
-
return +(-(r + (t - e) / (i ? e - u : u - e)) || 0);
|
|
20
|
-
}, a: function(s) {
|
|
21
|
-
return s < 0 ? Math.ceil(s) || 0 : Math.floor(s);
|
|
22
|
-
}, p: function(s) {
|
|
23
|
-
return { M: m, y, w: T, d: M, D: _, h: O, m: w, s: S, ms: A, Q: U }[s] || String(s || "").toLowerCase().replace(/s$/, "");
|
|
24
|
-
}, u: function(s) {
|
|
25
|
-
return s === void 0;
|
|
26
|
-
} }, x = "en", D = {};
|
|
27
|
-
D[x] = G;
|
|
28
|
-
var Z = "$isDayjsObject", F = function(s) {
|
|
29
|
-
return s instanceof C || !(!s || !s[Z]);
|
|
30
|
-
}, j = function s(n, t, r) {
|
|
31
|
-
var e;
|
|
32
|
-
if (!n) return x;
|
|
33
|
-
if (typeof n == "string") {
|
|
34
|
-
var i = n.toLowerCase();
|
|
35
|
-
D[i] && (e = i), t && (D[i] = t, e = i);
|
|
36
|
-
var u = n.split("-");
|
|
37
|
-
if (!e && u.length > 1) return s(u[0]);
|
|
38
|
-
} else {
|
|
39
|
-
var o = n.name;
|
|
40
|
-
D[o] = n, e = o;
|
|
41
|
-
}
|
|
42
|
-
return !r && e && (x = e), e || !r && x;
|
|
43
|
-
}, f = function(s, n) {
|
|
44
|
-
if (F(s)) return s.clone();
|
|
45
|
-
var t = typeof n == "object" ? n : {};
|
|
46
|
-
return t.date = s, t.args = arguments, new C(t);
|
|
47
|
-
}, a = P;
|
|
48
|
-
a.l = j, a.i = F, a.w = function(s, n) {
|
|
49
|
-
return f(s, { locale: n.$L, utc: n.$u, x: n.$x, $offset: n.$offset });
|
|
50
|
-
};
|
|
51
|
-
var C = function() {
|
|
52
|
-
function s(t) {
|
|
53
|
-
this.$L = j(t.locale, null, !0), this.parse(t), this.$x = this.$x || t.x || {}, this[Z] = !0;
|
|
54
|
-
}
|
|
55
|
-
var n = s.prototype;
|
|
56
|
-
return n.parse = function(t) {
|
|
57
|
-
this.$d = function(r) {
|
|
58
|
-
var e = r.date, i = r.utc;
|
|
59
|
-
if (e === null) return /* @__PURE__ */ new Date(NaN);
|
|
60
|
-
if (a.u(e)) return /* @__PURE__ */ new Date();
|
|
61
|
-
if (e instanceof Date) return new Date(e);
|
|
62
|
-
if (typeof e == "string" && !/Z$/i.test(e)) {
|
|
63
|
-
var u = e.match(q);
|
|
64
|
-
if (u) {
|
|
65
|
-
var o = u[2] - 1 || 0, c = (u[7] || "0").substring(0, 3);
|
|
66
|
-
return i ? new Date(Date.UTC(u[1], o, u[3] || 1, u[4] || 0, u[5] || 0, u[6] || 0, c)) : new Date(u[1], o, u[3] || 1, u[4] || 0, u[5] || 0, u[6] || 0, c);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
return new Date(e);
|
|
70
|
-
}(t), this.init();
|
|
71
|
-
}, n.init = function() {
|
|
72
|
-
var t = this.$d;
|
|
73
|
-
this.$y = t.getFullYear(), this.$M = t.getMonth(), this.$D = t.getDate(), this.$W = t.getDay(), this.$H = t.getHours(), this.$m = t.getMinutes(), this.$s = t.getSeconds(), this.$ms = t.getMilliseconds();
|
|
74
|
-
}, n.$utils = function() {
|
|
75
|
-
return a;
|
|
76
|
-
}, n.isValid = function() {
|
|
77
|
-
return this.$d.toString() !== J;
|
|
78
|
-
}, n.isSame = function(t, r) {
|
|
79
|
-
var e = f(t);
|
|
80
|
-
return this.startOf(r) <= e && e <= this.endOf(r);
|
|
81
|
-
}, n.isAfter = function(t, r) {
|
|
82
|
-
return f(t) < this.startOf(r);
|
|
83
|
-
}, n.isBefore = function(t, r) {
|
|
84
|
-
return this.endOf(r) < f(t);
|
|
85
|
-
}, n.$g = function(t, r, e) {
|
|
86
|
-
return a.u(t) ? this[r] : this.set(e, t);
|
|
87
|
-
}, n.unix = function() {
|
|
88
|
-
return Math.floor(this.valueOf() / 1e3);
|
|
89
|
-
}, n.valueOf = function() {
|
|
90
|
-
return this.$d.getTime();
|
|
91
|
-
}, n.startOf = function(t, r) {
|
|
92
|
-
var e = this, i = !!a.u(r) || r, u = a.p(t), o = function(p, $) {
|
|
93
|
-
var v = a.w(e.$u ? Date.UTC(e.$y, $, p) : new Date(e.$y, $, p), e);
|
|
94
|
-
return i ? v : v.endOf(M);
|
|
95
|
-
}, c = function(p, $) {
|
|
96
|
-
return a.w(e.toDate()[p].apply(e.toDate("s"), (i ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice($)), e);
|
|
97
|
-
}, h = this.$W, d = this.$M, l = this.$D, b = "set" + (this.$u ? "UTC" : "");
|
|
98
|
-
switch (u) {
|
|
99
|
-
case y:
|
|
100
|
-
return i ? o(1, 0) : o(31, 11);
|
|
101
|
-
case m:
|
|
102
|
-
return i ? o(1, d) : o(0, d + 1);
|
|
103
|
-
case T:
|
|
104
|
-
var g = this.$locale().weekStart || 0, Y = (h < g ? h + 7 : h) - g;
|
|
105
|
-
return o(i ? l - Y : l + (6 - Y), d);
|
|
106
|
-
case M:
|
|
107
|
-
case _:
|
|
108
|
-
return c(b + "Hours", 0);
|
|
109
|
-
case O:
|
|
110
|
-
return c(b + "Minutes", 1);
|
|
111
|
-
case w:
|
|
112
|
-
return c(b + "Seconds", 2);
|
|
113
|
-
case S:
|
|
114
|
-
return c(b + "Milliseconds", 3);
|
|
115
|
-
default:
|
|
116
|
-
return this.clone();
|
|
117
|
-
}
|
|
118
|
-
}, n.endOf = function(t) {
|
|
119
|
-
return this.startOf(t, !1);
|
|
120
|
-
}, n.$set = function(t, r) {
|
|
121
|
-
var e, i = a.p(t), u = "set" + (this.$u ? "UTC" : ""), o = (e = {}, e[M] = u + "Date", e[_] = u + "Date", e[m] = u + "Month", e[y] = u + "FullYear", e[O] = u + "Hours", e[w] = u + "Minutes", e[S] = u + "Seconds", e[A] = u + "Milliseconds", e)[i], c = i === M ? this.$D + (r - this.$W) : r;
|
|
122
|
-
if (i === m || i === y) {
|
|
123
|
-
var h = this.clone().set(_, 1);
|
|
124
|
-
h.$d[o](c), h.init(), this.$d = h.set(_, Math.min(this.$D, h.daysInMonth())).$d;
|
|
125
|
-
} else o && this.$d[o](c);
|
|
126
|
-
return this.init(), this;
|
|
127
|
-
}, n.set = function(t, r) {
|
|
128
|
-
return this.clone().$set(t, r);
|
|
129
|
-
}, n.get = function(t) {
|
|
130
|
-
return this[a.p(t)]();
|
|
131
|
-
}, n.add = function(t, r) {
|
|
132
|
-
var e, i = this;
|
|
133
|
-
t = Number(t);
|
|
134
|
-
var u = a.p(r), o = function(d) {
|
|
135
|
-
var l = f(i);
|
|
136
|
-
return a.w(l.date(l.date() + Math.round(d * t)), i);
|
|
137
|
-
};
|
|
138
|
-
if (u === m) return this.set(m, this.$M + t);
|
|
139
|
-
if (u === y) return this.set(y, this.$y + t);
|
|
140
|
-
if (u === M) return o(1);
|
|
141
|
-
if (u === T) return o(7);
|
|
142
|
-
var c = (e = {}, e[w] = k, e[O] = N, e[S] = W, e)[u] || 1, h = this.$d.getTime() + t * c;
|
|
143
|
-
return a.w(h, this);
|
|
144
|
-
}, n.subtract = function(t, r) {
|
|
145
|
-
return this.add(-1 * t, r);
|
|
146
|
-
}, n.format = function(t) {
|
|
147
|
-
var r = this, e = this.$locale();
|
|
148
|
-
if (!this.isValid()) return e.invalidDate || J;
|
|
149
|
-
var i = t || "YYYY-MM-DDTHH:mm:ssZ", u = a.z(this), o = this.$H, c = this.$m, h = this.$M, d = e.weekdays, l = e.months, b = e.meridiem, g = function($, v, H, L) {
|
|
150
|
-
return $ && ($[v] || $(r, i)) || H[v].slice(0, L);
|
|
151
|
-
}, Y = function($) {
|
|
152
|
-
return a.s(o % 12 || 12, $, "0");
|
|
153
|
-
}, p = b || function($, v, H) {
|
|
154
|
-
var L = $ < 12 ? "AM" : "PM";
|
|
155
|
-
return H ? L.toLowerCase() : L;
|
|
156
|
-
};
|
|
157
|
-
return i.replace(B, function($, v) {
|
|
158
|
-
return v || function(H) {
|
|
159
|
-
switch (H) {
|
|
160
|
-
case "YY":
|
|
161
|
-
return String(r.$y).slice(-2);
|
|
162
|
-
case "YYYY":
|
|
163
|
-
return a.s(r.$y, 4, "0");
|
|
164
|
-
case "M":
|
|
165
|
-
return h + 1;
|
|
166
|
-
case "MM":
|
|
167
|
-
return a.s(h + 1, 2, "0");
|
|
168
|
-
case "MMM":
|
|
169
|
-
return g(e.monthsShort, h, l, 3);
|
|
170
|
-
case "MMMM":
|
|
171
|
-
return g(l, h);
|
|
172
|
-
case "D":
|
|
173
|
-
return r.$D;
|
|
174
|
-
case "DD":
|
|
175
|
-
return a.s(r.$D, 2, "0");
|
|
176
|
-
case "d":
|
|
177
|
-
return String(r.$W);
|
|
178
|
-
case "dd":
|
|
179
|
-
return g(e.weekdaysMin, r.$W, d, 2);
|
|
180
|
-
case "ddd":
|
|
181
|
-
return g(e.weekdaysShort, r.$W, d, 3);
|
|
182
|
-
case "dddd":
|
|
183
|
-
return d[r.$W];
|
|
184
|
-
case "H":
|
|
185
|
-
return String(o);
|
|
186
|
-
case "HH":
|
|
187
|
-
return a.s(o, 2, "0");
|
|
188
|
-
case "h":
|
|
189
|
-
return Y(1);
|
|
190
|
-
case "hh":
|
|
191
|
-
return Y(2);
|
|
192
|
-
case "a":
|
|
193
|
-
return p(o, c, !0);
|
|
194
|
-
case "A":
|
|
195
|
-
return p(o, c, !1);
|
|
196
|
-
case "m":
|
|
197
|
-
return String(c);
|
|
198
|
-
case "mm":
|
|
199
|
-
return a.s(c, 2, "0");
|
|
200
|
-
case "s":
|
|
201
|
-
return String(r.$s);
|
|
202
|
-
case "ss":
|
|
203
|
-
return a.s(r.$s, 2, "0");
|
|
204
|
-
case "SSS":
|
|
205
|
-
return a.s(r.$ms, 3, "0");
|
|
206
|
-
case "Z":
|
|
207
|
-
return u;
|
|
208
|
-
}
|
|
209
|
-
return null;
|
|
210
|
-
}($) || u.replace(":", "");
|
|
211
|
-
});
|
|
212
|
-
}, n.utcOffset = function() {
|
|
213
|
-
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
214
|
-
}, n.diff = function(t, r, e) {
|
|
215
|
-
var i, u = this, o = a.p(r), c = f(t), h = (c.utcOffset() - this.utcOffset()) * k, d = this - c, l = function() {
|
|
216
|
-
return a.m(u, c);
|
|
217
|
-
};
|
|
218
|
-
switch (o) {
|
|
219
|
-
case y:
|
|
220
|
-
i = l() / 12;
|
|
221
|
-
break;
|
|
222
|
-
case m:
|
|
223
|
-
i = l();
|
|
224
|
-
break;
|
|
225
|
-
case U:
|
|
226
|
-
i = l() / 3;
|
|
227
|
-
break;
|
|
228
|
-
case T:
|
|
229
|
-
i = (d - h) / 6048e5;
|
|
230
|
-
break;
|
|
231
|
-
case M:
|
|
232
|
-
i = (d - h) / 864e5;
|
|
233
|
-
break;
|
|
234
|
-
case O:
|
|
235
|
-
i = d / N;
|
|
236
|
-
break;
|
|
237
|
-
case w:
|
|
238
|
-
i = d / k;
|
|
239
|
-
break;
|
|
240
|
-
case S:
|
|
241
|
-
i = d / W;
|
|
242
|
-
break;
|
|
243
|
-
default:
|
|
244
|
-
i = d;
|
|
245
|
-
}
|
|
246
|
-
return e ? i : a.a(i);
|
|
247
|
-
}, n.daysInMonth = function() {
|
|
248
|
-
return this.endOf(m).$D;
|
|
249
|
-
}, n.$locale = function() {
|
|
250
|
-
return D[this.$L];
|
|
251
|
-
}, n.locale = function(t, r) {
|
|
252
|
-
if (!t) return this.$L;
|
|
253
|
-
var e = this.clone(), i = j(t, r, !0);
|
|
254
|
-
return i && (e.$L = i), e;
|
|
255
|
-
}, n.clone = function() {
|
|
256
|
-
return a.w(this.$d, this);
|
|
257
|
-
}, n.toDate = function() {
|
|
258
|
-
return new Date(this.valueOf());
|
|
259
|
-
}, n.toJSON = function() {
|
|
260
|
-
return this.isValid() ? this.toISOString() : null;
|
|
261
|
-
}, n.toISOString = function() {
|
|
262
|
-
return this.$d.toISOString();
|
|
263
|
-
}, n.toString = function() {
|
|
264
|
-
return this.$d.toUTCString();
|
|
265
|
-
}, s;
|
|
266
|
-
}(), z = C.prototype;
|
|
267
|
-
return f.prototype = z, [["$ms", A], ["$s", S], ["$m", w], ["$H", O], ["$W", M], ["$M", m], ["$y", y], ["$D", _]].forEach(function(s) {
|
|
268
|
-
z[s[1]] = function(n) {
|
|
269
|
-
return this.$g(n, s[0], s[1]);
|
|
270
|
-
};
|
|
271
|
-
}), f.extend = function(s, n) {
|
|
272
|
-
return s.$i || (s(n, C, f), s.$i = !0), f;
|
|
273
|
-
}, f.locale = j, f.isDayjs = F, f.unix = function(s) {
|
|
274
|
-
return f(1e3 * s);
|
|
275
|
-
}, f.en = D[x], f.Ls = D, f.p = {}, f;
|
|
276
|
-
});
|
|
277
|
-
})(E);
|
|
278
|
-
var R = E.exports;
|
|
279
|
-
const nt = /* @__PURE__ */ Q(R);
|
|
1
|
+
const o = (e, t = 50) => new Promise((r) => {
|
|
2
|
+
const n = setInterval(() => {
|
|
3
|
+
e() && (clearInterval(n), r());
|
|
4
|
+
}, t);
|
|
5
|
+
});
|
|
280
6
|
export {
|
|
281
|
-
|
|
282
|
-
nt as default
|
|
7
|
+
o as waitFor
|
|
283
8
|
};
|
|
284
9
|
//# sourceMappingURL=index205.js.map
|