ablok-components 0.3.113 → 0.3.115
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/ablok-components.umd.js +2 -2
- package/dist/components/molecules/base-camera/base-camera.vue_vue_type_script_async_true_setup_true_lang.js +196 -197
- package/dist/components/molecules/dom-renderer/dom-renderer.vue_vue_type_script_setup_true_lang.js +25 -26
- package/dist/components/molecules/image-resize/image-resize.vue_vue_type_script_setup_true_lang.js +38 -39
- package/package.json +1 -1
- package/dist/_virtual/_rolldown/runtime.js +0 -13
- package/dist/node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_Symbol.js +0 -9
- package/dist/node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_baseGetTag.js +0 -15
- package/dist/node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_baseTrim.js +0 -13
- package/dist/node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_freeGlobal.js +0 -8
- package/dist/node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_getRawTag.js +0 -19
- package/dist/node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_objectToString.js +0 -12
- package/dist/node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_root.js +0 -10
- package/dist/node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_trimmedEndIndex.js +0 -13
- package/dist/node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/debounce.js +0 -55
- package/dist/node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/isObject.js +0 -12
- package/dist/node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/isObjectLike.js +0 -11
- package/dist/node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/isSymbol.js +0 -14
- package/dist/node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/now.js +0 -12
- package/dist/node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/toNumber.js +0 -24
package/dist/components/molecules/dom-renderer/dom-renderer.vue_vue_type_script_setup_true_lang.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import d from "html2canvas";
|
|
1
|
+
import { createElementBlock as e, defineComponent as t, normalizeClass as n, normalizeStyle as r, onBeforeUnmount as i, onMounted as a, openBlock as o, ref as s, renderSlot as c } from "vue";
|
|
2
|
+
import { debounce as l } from "lodash";
|
|
3
|
+
import u from "html2canvas";
|
|
5
4
|
//#region src/components/molecules/dom-renderer/dom-renderer.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
-
var
|
|
5
|
+
var d = /*@__PURE__*/ t({
|
|
7
6
|
__name: "dom-renderer",
|
|
8
7
|
props: {
|
|
9
8
|
modelValue: {
|
|
@@ -40,59 +39,59 @@ var f = /* @__PURE__ */ e(t(), 1), p = /*@__PURE__*/ r({
|
|
|
40
39
|
}
|
|
41
40
|
},
|
|
42
41
|
emits: ["update:modelValue", "update:pending"],
|
|
43
|
-
setup(
|
|
44
|
-
let
|
|
42
|
+
setup(t, { emit: d }) {
|
|
43
|
+
let f = t, p = d, m = s(), h = s(""), g = s(), _ = s(!0);
|
|
45
44
|
async function v() {
|
|
46
45
|
if (!m.value || !_.value) return "";
|
|
47
46
|
let e = m.value;
|
|
48
47
|
if (!e.isConnected) return "";
|
|
49
48
|
try {
|
|
50
|
-
|
|
49
|
+
f.emitPending && p("update:pending", !0);
|
|
51
50
|
let t = e.firstElementChild;
|
|
52
51
|
if (!t) return "";
|
|
53
|
-
let n = await
|
|
52
|
+
let n = await u(t, {
|
|
54
53
|
backgroundColor: "rgba(0, 0, 0, 0)",
|
|
55
54
|
scale: 1,
|
|
56
|
-
...
|
|
55
|
+
...f.options
|
|
57
56
|
});
|
|
58
57
|
if (!_.value || !m.value || !e.isConnected) return "";
|
|
59
|
-
let
|
|
60
|
-
if (p("update:modelValue",
|
|
58
|
+
let r = n.toDataURL();
|
|
59
|
+
if (p("update:modelValue", r), f.emitPending && p("update:pending", !1), f.debug) {
|
|
61
60
|
let e = new Image();
|
|
62
|
-
e.src =
|
|
61
|
+
e.src = r, document.body.appendChild(e);
|
|
63
62
|
}
|
|
64
|
-
return
|
|
63
|
+
return r;
|
|
65
64
|
} catch (e) {
|
|
66
|
-
return _.value &&
|
|
65
|
+
return _.value && f.emitPending && p("update:pending", !1), console.warn("dom-renderer: Render failed", e), "";
|
|
67
66
|
}
|
|
68
67
|
}
|
|
69
|
-
let y = (
|
|
68
|
+
let y = l(async () => {
|
|
70
69
|
h.value = await v();
|
|
71
70
|
}, 300, {
|
|
72
71
|
trailing: !0,
|
|
73
72
|
leading: !1
|
|
74
73
|
});
|
|
75
|
-
return
|
|
74
|
+
return a(() => {
|
|
76
75
|
let e = m.value;
|
|
77
|
-
|
|
78
|
-
!_.value || !e.isConnected || (
|
|
76
|
+
f.renderUpdates && (g.value = new MutationObserver(async (t) => {
|
|
77
|
+
!_.value || !e.isConnected || (f.emitPending && p("update:pending", !0), y());
|
|
79
78
|
}), g.value.observe(e, {
|
|
80
79
|
attributes: !0,
|
|
81
80
|
childList: !0,
|
|
82
81
|
characterData: !0,
|
|
83
82
|
subtree: !0
|
|
84
83
|
})), setTimeout(() => {
|
|
85
|
-
|
|
84
|
+
f.emitPending && p("update:pending", !0), y();
|
|
86
85
|
}, 500);
|
|
87
|
-
}),
|
|
86
|
+
}), i(() => {
|
|
88
87
|
_.value = !1, g.value && g.value.disconnect(), y.cancel();
|
|
89
|
-
}), (
|
|
90
|
-
class:
|
|
88
|
+
}), (i, a) => (o(), e("div", {
|
|
89
|
+
class: n(["dom-renderer", { "off-screen": !t.debug }]),
|
|
91
90
|
ref_key: "renderer",
|
|
92
91
|
ref: m,
|
|
93
|
-
style:
|
|
94
|
-
}, [
|
|
92
|
+
style: r(t.fixedWidth > 0 ? { width: `${t.fixedWidth}px` } : {})
|
|
93
|
+
}, [c(i.$slots, "default")], 6));
|
|
95
94
|
}
|
|
96
95
|
});
|
|
97
96
|
//#endregion
|
|
98
|
-
export {
|
|
97
|
+
export { d as default };
|
package/dist/components/molecules/image-resize/image-resize.vue_vue_type_script_setup_true_lang.js
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import
|
|
2
|
-
import t from "
|
|
3
|
-
import
|
|
4
|
-
import r from "
|
|
5
|
-
import {
|
|
6
|
-
import { createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createVNode as l, defineComponent as u, onMounted as d, openBlock as f, ref as p, renderSlot as m, toDisplayString as h, useTemplateRef as g, vModelText as _, watch as v, withDirectives as y, withModifiers as b } from "vue";
|
|
1
|
+
import e from "../../atoms/base-image/base-image.js";
|
|
2
|
+
import { resizeImageElementToDataUrl as t } from "../../../utilities/helpers.js";
|
|
3
|
+
import n from "../../atoms/base-input/base-input.js";
|
|
4
|
+
import { createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createVNode as s, defineComponent as c, onMounted as l, openBlock as u, ref as d, renderSlot as f, toDisplayString as p, useTemplateRef as m, vModelText as h, watch as g, withDirectives as _, withModifiers as v } from "vue";
|
|
5
|
+
import { debounce as y } from "lodash";
|
|
7
6
|
//#region src/components/molecules/image-resize/image-resize.vue?vue&type=script&setup=true&lang.ts
|
|
8
|
-
var
|
|
7
|
+
var b = {
|
|
9
8
|
key: 0,
|
|
10
9
|
class: "image-editor position-relative"
|
|
11
|
-
},
|
|
10
|
+
}, x = { class: "row mb-3" }, S = { class: "col" }, C = { class: "row gap-2 mb-4" }, w = { class: "col-12" }, T = { class: "input mb-2" }, E = { class: "col" }, D = { class: "input mb-0" }, O = { class: "col" }, k = { class: "input mb-0" }, A = { class: "row" }, j = { class: "col d-flex justify-content-end gap-2" }, M = ["disabled"], N = /*@__PURE__*/ c({
|
|
12
11
|
__name: "image-resize",
|
|
13
12
|
props: {
|
|
14
13
|
modelValue: {
|
|
@@ -26,36 +25,36 @@ var x = /* @__PURE__ */ e(i(), 1), S = {
|
|
|
26
25
|
}
|
|
27
26
|
},
|
|
28
27
|
emits: ["update:modelValue"],
|
|
29
|
-
setup(
|
|
30
|
-
let
|
|
28
|
+
setup(c, { emit: N }) {
|
|
29
|
+
let P = N, F = m("image"), I = d(1), L = d(0), R = d(0), z = d(null), B = d(0), V = d(0);
|
|
31
30
|
function H() {
|
|
32
|
-
z.value && (
|
|
31
|
+
z.value && (P("update:modelValue", z.value), I.value = 1);
|
|
33
32
|
}
|
|
34
33
|
let U = () => {
|
|
35
34
|
if (!B.value || !V.value) return;
|
|
36
35
|
L.value = Math.round(B.value * I.value);
|
|
37
36
|
let e = V.value / B.value;
|
|
38
37
|
R.value = Math.round(L.value * e);
|
|
39
|
-
let
|
|
40
|
-
if (!
|
|
41
|
-
let r =
|
|
42
|
-
r && (z.value =
|
|
43
|
-
}, W = (
|
|
44
|
-
return
|
|
38
|
+
let n = F.value?.$el;
|
|
39
|
+
if (!n) return;
|
|
40
|
+
let r = n.querySelector("img");
|
|
41
|
+
r && (z.value = t(r, L.value, R.value, "image/png"));
|
|
42
|
+
}, W = y(U, 300);
|
|
43
|
+
return g(I, () => {
|
|
45
44
|
B.value && (L.value = Math.round(B.value * I.value), W());
|
|
46
|
-
}),
|
|
45
|
+
}), g(L, () => {
|
|
47
46
|
if (!B.value || L.value === 0) return;
|
|
48
47
|
let e = L.value / B.value;
|
|
49
48
|
Math.abs(e - I.value) > 1e-4 && (I.value = Number(e.toFixed(4)));
|
|
50
49
|
let t = V.value / B.value;
|
|
51
50
|
R.value = Math.round(L.value * t), W();
|
|
52
|
-
}),
|
|
51
|
+
}), g(R, () => {
|
|
53
52
|
if (!V.value || R.value === 0) return;
|
|
54
53
|
let e = R.value / V.value;
|
|
55
54
|
Math.abs(e - I.value) > 1e-4 && (I.value = Number(e.toFixed(4)));
|
|
56
55
|
let t = B.value / V.value;
|
|
57
56
|
L.value = Math.round(R.value * t), W();
|
|
58
|
-
}),
|
|
57
|
+
}), l(() => {
|
|
59
58
|
let e = F.value?.$el;
|
|
60
59
|
if (!e) return;
|
|
61
60
|
let t = e.querySelector("img");
|
|
@@ -64,53 +63,53 @@ var x = /* @__PURE__ */ e(i(), 1), S = {
|
|
|
64
63
|
B.value = t.naturalWidth, V.value = t.naturalHeight, U();
|
|
65
64
|
};
|
|
66
65
|
t.complete ? n() : t.addEventListener("load", n);
|
|
67
|
-
}), (
|
|
68
|
-
|
|
66
|
+
}), (t, l) => c.modelValue ? (u(), a("div", b, [
|
|
67
|
+
o("div", x, [o("div", S, [s(e, {
|
|
69
68
|
ref_key: "image",
|
|
70
69
|
ref: F,
|
|
71
70
|
class: "d-none",
|
|
72
|
-
src:
|
|
71
|
+
src: c.modelValue,
|
|
73
72
|
animate: !1
|
|
74
|
-
}, null, 8, ["src"]), z.value ? (
|
|
73
|
+
}, null, 8, ["src"]), z.value ? (u(), r(e, {
|
|
75
74
|
key: 0,
|
|
76
75
|
ref: "targetImage",
|
|
77
76
|
class: "",
|
|
78
77
|
src: z.value,
|
|
79
78
|
animate: !1
|
|
80
|
-
}, null, 8, ["src"])) :
|
|
81
|
-
|
|
82
|
-
|
|
79
|
+
}, null, 8, ["src"])) : i("", !0)])]),
|
|
80
|
+
o("div", C, [
|
|
81
|
+
o("div", w, [o("div", T, [_(o("input", {
|
|
83
82
|
type: "range",
|
|
84
83
|
class: "form-range",
|
|
85
84
|
id: "scaleRange",
|
|
86
|
-
"onUpdate:modelValue":
|
|
85
|
+
"onUpdate:modelValue": l[0] ||= (e) => I.value = e,
|
|
87
86
|
min: "0",
|
|
88
87
|
max: "2",
|
|
89
88
|
step: "0.0001"
|
|
90
|
-
}, null, 512), [[
|
|
91
|
-
|
|
89
|
+
}, null, 512), [[h, I.value]])])]),
|
|
90
|
+
o("div", E, [o("div", D, [s(n, {
|
|
92
91
|
type: "number",
|
|
93
92
|
class: "form-input mb-0",
|
|
94
93
|
id: "targetWidth",
|
|
95
94
|
modelValue: L.value,
|
|
96
|
-
"onUpdate:modelValue":
|
|
95
|
+
"onUpdate:modelValue": l[1] ||= (e) => L.value = e
|
|
97
96
|
}, null, 8, ["modelValue"])])]),
|
|
98
|
-
|
|
99
|
-
|
|
97
|
+
l[3] ||= o("div", { class: "col-auto d-flex align-items-center" }, [o("output", null, "×")], -1),
|
|
98
|
+
o("div", O, [o("div", k, [s(n, {
|
|
100
99
|
type: "number",
|
|
101
100
|
class: "form-input mb-0",
|
|
102
101
|
id: "targetHeight",
|
|
103
102
|
modelValue: R.value,
|
|
104
|
-
"onUpdate:modelValue":
|
|
103
|
+
"onUpdate:modelValue": l[2] ||= (e) => R.value = e
|
|
105
104
|
}, null, 8, ["modelValue"])])])
|
|
106
105
|
]),
|
|
107
|
-
|
|
106
|
+
o("div", A, [o("div", j, [f(t.$slots, "actions"), o("button", {
|
|
108
107
|
class: "btn btn-sm btn-primary",
|
|
109
108
|
disabled: !z.value,
|
|
110
|
-
onClick:
|
|
111
|
-
},
|
|
112
|
-
])) :
|
|
109
|
+
onClick: v(H, ["prevent", "stop"])
|
|
110
|
+
}, p(t.$t("common.apply")), 9, M)])])
|
|
111
|
+
])) : i("", !0);
|
|
113
112
|
}
|
|
114
113
|
});
|
|
115
114
|
//#endregion
|
|
116
|
-
export {
|
|
115
|
+
export { N as default };
|
package/package.json
CHANGED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
//#region \0rolldown/runtime.js
|
|
2
|
-
var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescriptor, r = Object.getOwnPropertyNames, i = Object.getPrototypeOf, a = Object.prototype.hasOwnProperty, o = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), s = (e, i, o, s) => {
|
|
3
|
-
if (i && typeof i == "object" || typeof i == "function") for (var c = r(i), l = 0, u = c.length, d; l < u; l++) d = c[l], !a.call(e, d) && d !== o && t(e, d, {
|
|
4
|
-
get: ((e) => i[e]).bind(null, d),
|
|
5
|
-
enumerable: !(s = n(i, d)) || s.enumerable
|
|
6
|
-
});
|
|
7
|
-
return e;
|
|
8
|
-
}, c = (n, r, o) => (o = n == null ? {} : e(i(n)), s(r || !n || !n.__esModule || !a.call(n, "default") ? t(o, "default", {
|
|
9
|
-
value: n,
|
|
10
|
-
enumerable: !0
|
|
11
|
-
}) : o, n));
|
|
12
|
-
//#endregion
|
|
13
|
-
export { o as __commonJSMin, c as __toESM };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { __commonJSMin as e } from "../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
-
import { require__root as t } from "./_root.js";
|
|
3
|
-
//#region node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_Symbol.js
|
|
4
|
-
var n = /* @__PURE__ */ e(((e, n) => {
|
|
5
|
-
n.exports = t().Symbol;
|
|
6
|
-
}));
|
|
7
|
-
//#endregion
|
|
8
|
-
export default n();
|
|
9
|
-
export { n as require__Symbol };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { __commonJSMin as e } from "../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
-
import { require__Symbol as t } from "./_Symbol.js";
|
|
3
|
-
import { require__getRawTag as n } from "./_getRawTag.js";
|
|
4
|
-
import { require__objectToString as r } from "./_objectToString.js";
|
|
5
|
-
//#region node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_baseGetTag.js
|
|
6
|
-
var i = /* @__PURE__ */ e(((e, i) => {
|
|
7
|
-
var a = t(), o = n(), s = r(), c = "[object Null]", l = "[object Undefined]", u = a ? a.toStringTag : void 0;
|
|
8
|
-
function d(e) {
|
|
9
|
-
return e == null ? e === void 0 ? l : c : u && u in Object(e) ? o(e) : s(e);
|
|
10
|
-
}
|
|
11
|
-
i.exports = d;
|
|
12
|
-
}));
|
|
13
|
-
//#endregion
|
|
14
|
-
export default i();
|
|
15
|
-
export { i as require__baseGetTag };
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { __commonJSMin as e } from "../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
-
import { require__trimmedEndIndex as t } from "./_trimmedEndIndex.js";
|
|
3
|
-
//#region node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_baseTrim.js
|
|
4
|
-
var n = /* @__PURE__ */ e(((e, n) => {
|
|
5
|
-
var r = t(), i = /^\s+/;
|
|
6
|
-
function a(e) {
|
|
7
|
-
return e && e.slice(0, r(e) + 1).replace(i, "");
|
|
8
|
-
}
|
|
9
|
-
n.exports = a;
|
|
10
|
-
}));
|
|
11
|
-
//#endregion
|
|
12
|
-
export default n();
|
|
13
|
-
export { n as require__baseTrim };
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { __commonJSMin as e } from "../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
-
//#region node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_freeGlobal.js
|
|
3
|
-
var t = /* @__PURE__ */ e(((e, t) => {
|
|
4
|
-
t.exports = typeof global == "object" && global && global.Object === Object && global;
|
|
5
|
-
}));
|
|
6
|
-
//#endregion
|
|
7
|
-
export default t();
|
|
8
|
-
export { t as require__freeGlobal };
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { __commonJSMin as e } from "../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
-
import { require__Symbol as t } from "./_Symbol.js";
|
|
3
|
-
//#region node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_getRawTag.js
|
|
4
|
-
var n = /* @__PURE__ */ e(((e, n) => {
|
|
5
|
-
var r = t(), i = Object.prototype, a = i.hasOwnProperty, o = i.toString, s = r ? r.toStringTag : void 0;
|
|
6
|
-
function c(e) {
|
|
7
|
-
var t = a.call(e, s), n = e[s];
|
|
8
|
-
try {
|
|
9
|
-
e[s] = void 0;
|
|
10
|
-
var r = !0;
|
|
11
|
-
} catch {}
|
|
12
|
-
var i = o.call(e);
|
|
13
|
-
return r && (t ? e[s] = n : delete e[s]), i;
|
|
14
|
-
}
|
|
15
|
-
n.exports = c;
|
|
16
|
-
}));
|
|
17
|
-
//#endregion
|
|
18
|
-
export default n();
|
|
19
|
-
export { n as require__getRawTag };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { __commonJSMin as e } from "../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
-
//#region node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_objectToString.js
|
|
3
|
-
var t = /* @__PURE__ */ e(((e, t) => {
|
|
4
|
-
var n = Object.prototype.toString;
|
|
5
|
-
function r(e) {
|
|
6
|
-
return n.call(e);
|
|
7
|
-
}
|
|
8
|
-
t.exports = r;
|
|
9
|
-
}));
|
|
10
|
-
//#endregion
|
|
11
|
-
export default t();
|
|
12
|
-
export { t as require__objectToString };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { __commonJSMin as e } from "../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
-
import { require__freeGlobal as t } from "./_freeGlobal.js";
|
|
3
|
-
//#region node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_root.js
|
|
4
|
-
var n = /* @__PURE__ */ e(((e, n) => {
|
|
5
|
-
var r = t(), i = typeof self == "object" && self && self.Object === Object && self;
|
|
6
|
-
n.exports = r || i || Function("return this")();
|
|
7
|
-
}));
|
|
8
|
-
//#endregion
|
|
9
|
-
export default n();
|
|
10
|
-
export { n as require__root };
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { __commonJSMin as e } from "../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
-
//#region node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/_trimmedEndIndex.js
|
|
3
|
-
var t = /* @__PURE__ */ e(((e, t) => {
|
|
4
|
-
var n = /\s/;
|
|
5
|
-
function r(e) {
|
|
6
|
-
for (var t = e.length; t-- && n.test(e.charAt(t)););
|
|
7
|
-
return t;
|
|
8
|
-
}
|
|
9
|
-
t.exports = r;
|
|
10
|
-
}));
|
|
11
|
-
//#endregion
|
|
12
|
-
export default t();
|
|
13
|
-
export { t as require__trimmedEndIndex };
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { __commonJSMin as e } from "../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
-
import { require_isObject as t } from "./isObject.js";
|
|
3
|
-
import { require_now as n } from "./now.js";
|
|
4
|
-
import { require_toNumber as r } from "./toNumber.js";
|
|
5
|
-
//#region node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/debounce.js
|
|
6
|
-
var i = /* @__PURE__ */ e(((e, i) => {
|
|
7
|
-
var a = t(), o = n(), s = r(), c = "Expected a function", l = Math.max, u = Math.min;
|
|
8
|
-
function d(e, t, n) {
|
|
9
|
-
var r, i, d, f, p, m, h = 0, g = !1, _ = !1, v = !0;
|
|
10
|
-
if (typeof e != "function") throw TypeError(c);
|
|
11
|
-
t = s(t) || 0, a(n) && (g = !!n.leading, _ = "maxWait" in n, d = _ ? l(s(n.maxWait) || 0, t) : d, v = "trailing" in n ? !!n.trailing : v);
|
|
12
|
-
function y(t) {
|
|
13
|
-
var n = r, a = i;
|
|
14
|
-
return r = i = void 0, h = t, f = e.apply(a, n), f;
|
|
15
|
-
}
|
|
16
|
-
function b(e) {
|
|
17
|
-
return h = e, p = setTimeout(C, t), g ? y(e) : f;
|
|
18
|
-
}
|
|
19
|
-
function x(e) {
|
|
20
|
-
var n = e - m, r = e - h, i = t - n;
|
|
21
|
-
return _ ? u(i, d - r) : i;
|
|
22
|
-
}
|
|
23
|
-
function S(e) {
|
|
24
|
-
var n = e - m, r = e - h;
|
|
25
|
-
return m === void 0 || n >= t || n < 0 || _ && r >= d;
|
|
26
|
-
}
|
|
27
|
-
function C() {
|
|
28
|
-
var e = o();
|
|
29
|
-
if (S(e)) return w(e);
|
|
30
|
-
p = setTimeout(C, x(e));
|
|
31
|
-
}
|
|
32
|
-
function w(e) {
|
|
33
|
-
return p = void 0, v && r ? y(e) : (r = i = void 0, f);
|
|
34
|
-
}
|
|
35
|
-
function T() {
|
|
36
|
-
p !== void 0 && clearTimeout(p), h = 0, r = m = i = p = void 0;
|
|
37
|
-
}
|
|
38
|
-
function E() {
|
|
39
|
-
return p === void 0 ? f : w(o());
|
|
40
|
-
}
|
|
41
|
-
function D() {
|
|
42
|
-
var e = o(), n = S(e);
|
|
43
|
-
if (r = arguments, i = this, m = e, n) {
|
|
44
|
-
if (p === void 0) return b(m);
|
|
45
|
-
if (_) return clearTimeout(p), p = setTimeout(C, t), y(m);
|
|
46
|
-
}
|
|
47
|
-
return p === void 0 && (p = setTimeout(C, t)), f;
|
|
48
|
-
}
|
|
49
|
-
return D.cancel = T, D.flush = E, D;
|
|
50
|
-
}
|
|
51
|
-
i.exports = d;
|
|
52
|
-
}));
|
|
53
|
-
//#endregion
|
|
54
|
-
export default i();
|
|
55
|
-
export { i as require_debounce };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { __commonJSMin as e } from "../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
-
//#region node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/isObject.js
|
|
3
|
-
var t = /* @__PURE__ */ e(((e, t) => {
|
|
4
|
-
function n(e) {
|
|
5
|
-
var t = typeof e;
|
|
6
|
-
return e != null && (t == "object" || t == "function");
|
|
7
|
-
}
|
|
8
|
-
t.exports = n;
|
|
9
|
-
}));
|
|
10
|
-
//#endregion
|
|
11
|
-
export default t();
|
|
12
|
-
export { t as require_isObject };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { __commonJSMin as e } from "../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
-
//#region node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/isObjectLike.js
|
|
3
|
-
var t = /* @__PURE__ */ e(((e, t) => {
|
|
4
|
-
function n(e) {
|
|
5
|
-
return typeof e == "object" && !!e;
|
|
6
|
-
}
|
|
7
|
-
t.exports = n;
|
|
8
|
-
}));
|
|
9
|
-
//#endregion
|
|
10
|
-
export default t();
|
|
11
|
-
export { t as require_isObjectLike };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { __commonJSMin as e } from "../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
-
import { require__baseGetTag as t } from "./_baseGetTag.js";
|
|
3
|
-
import { require_isObjectLike as n } from "./isObjectLike.js";
|
|
4
|
-
//#region node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/isSymbol.js
|
|
5
|
-
var r = /* @__PURE__ */ e(((e, r) => {
|
|
6
|
-
var i = t(), a = n(), o = "[object Symbol]";
|
|
7
|
-
function s(e) {
|
|
8
|
-
return typeof e == "symbol" || a(e) && i(e) == o;
|
|
9
|
-
}
|
|
10
|
-
r.exports = s;
|
|
11
|
-
}));
|
|
12
|
-
//#endregion
|
|
13
|
-
export default r();
|
|
14
|
-
export { r as require_isSymbol };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { __commonJSMin as e } from "../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
-
import { require__root as t } from "./_root.js";
|
|
3
|
-
//#region node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/now.js
|
|
4
|
-
var n = /* @__PURE__ */ e(((e, n) => {
|
|
5
|
-
var r = t();
|
|
6
|
-
n.exports = function() {
|
|
7
|
-
return r.Date.now();
|
|
8
|
-
};
|
|
9
|
-
}));
|
|
10
|
-
//#endregion
|
|
11
|
-
export default n();
|
|
12
|
-
export { n as require_now };
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { __commonJSMin as e } from "../../../../../_virtual/_rolldown/runtime.js";
|
|
2
|
-
import { require_isObject as t } from "./isObject.js";
|
|
3
|
-
import { require__baseTrim as n } from "./_baseTrim.js";
|
|
4
|
-
import { require_isSymbol as r } from "./isSymbol.js";
|
|
5
|
-
//#region node_modules/.pnpm/lodash@4.18.1/node_modules/lodash/toNumber.js
|
|
6
|
-
var i = /* @__PURE__ */ e(((e, i) => {
|
|
7
|
-
var a = n(), o = t(), s = r(), c = NaN, l = /^[-+]0x[0-9a-f]+$/i, u = /^0b[01]+$/i, d = /^0o[0-7]+$/i, f = parseInt;
|
|
8
|
-
function p(e) {
|
|
9
|
-
if (typeof e == "number") return e;
|
|
10
|
-
if (s(e)) return c;
|
|
11
|
-
if (o(e)) {
|
|
12
|
-
var t = typeof e.valueOf == "function" ? e.valueOf() : e;
|
|
13
|
-
e = o(t) ? t + "" : t;
|
|
14
|
-
}
|
|
15
|
-
if (typeof e != "string") return e === 0 ? e : +e;
|
|
16
|
-
e = a(e);
|
|
17
|
-
var n = u.test(e);
|
|
18
|
-
return n || d.test(e) ? f(e.slice(2), n ? 2 : 8) : l.test(e) ? c : +e;
|
|
19
|
-
}
|
|
20
|
-
i.exports = p;
|
|
21
|
-
}));
|
|
22
|
-
//#endregion
|
|
23
|
-
export default i();
|
|
24
|
-
export { i as require_toNumber };
|