@templatical/editor 0.14.0 → 0.15.0
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/{AiChatSidebar-J8iO_sX7.js → AiChatSidebar-BIKvYREk.js} +57 -56
- package/dist/{AiFeatureMenu-F2diEDgV.js → AiFeatureMenu-QbD82crt.js} +20 -20
- package/dist/{BlockIssueBadge-a-qlByxF.js → BlockIssueBadge-B3xVgMTh.js} +11 -11
- package/dist/{CloudEditor-CDjtwb4i.js → CloudEditor-DptuSf7A.js} +470 -468
- package/dist/{CollaboratorBar-B_EnJLtW.js → CollaboratorBar-DrA_K69w.js} +20 -20
- package/dist/{CommentsSidebar-DaP9BA_r.js → CommentsSidebar-D_tSGvTX.js} +154 -153
- package/dist/CountdownBlock-apiYUhkQ.js +92 -0
- package/dist/CountdownToolbar-CS0axcjz.js +210 -0
- package/dist/{DesignReferenceSidebar-BHRlTqlT.js → DesignReferenceSidebar-DWYK9nTk.js} +58 -57
- package/dist/{IssuesPanel-u7ee3Wrl.js → IssuesPanel-CR1MPaDE.js} +40 -40
- package/dist/{LoadingTrack-CV3ID80N.js → LoadingTrack-DsecR8Rw.js} +1 -1
- package/dist/MergeTagSuggestion-CH2SUxBo.js +1327 -0
- package/dist/{ModuleBrowserModal-DOsdaS6s.js → ModuleBrowserModal-D45rBj5C.js} +60 -59
- package/dist/{ModulePreviewCanvas-Cx4MOJ0X.js → ModulePreviewCanvas-BiQ6B2-l.js} +29 -29
- package/dist/{NumberWithSuffix-D2mW_DhT.js → NumberWithSuffix-CrA6quxx.js} +143 -142
- package/dist/{ParagraphEditor-DMzkVnST.js → ParagraphEditor-1NaUJpZO.js} +247 -246
- package/dist/{RichTextEditorContent-CRCxCwKf.js → RichTextEditorContent-BqLHIZY7.js} +45 -44
- package/dist/{SaveModuleDialog-DuEKgumL.js → SaveModuleDialog-B0sPOTgO.js} +38 -37
- package/dist/{SnapshotHistory-CVgiNJtE.js → SnapshotHistory-DslVzmSb.js} +34 -33
- package/dist/{TemplateScoringPanel-lm0_9nYi.js → TemplateScoringPanel-CZ62rGHz.js} +83 -82
- package/dist/{TestEmailModal-WBMdiW5S.js → TestEmailModal-DWGniJVu.js} +22 -21
- package/dist/{TitleEditor-eyT0h-Sa.js → TitleEditor-D4t_gZZJ.js} +44 -44
- package/dist/{TplModal-tjQ7OB0g.js → TplModal-Br2VG6cn.js} +14 -13
- package/dist/{blockTypeIcons-DdB3uTKD.js → blockTypeIcons-CXhCS5WV.js} +2 -2
- package/dist/bundle-stats.json +8 -8
- package/dist/cdn/chunks/{AiFeatureMenu-D7rB2SBs.js → AiFeatureMenu-3Slo_LGA.js} +5 -5
- package/dist/cdn/chunks/{AiFeatureMenu-D7rB2SBs.js.map → AiFeatureMenu-3Slo_LGA.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-DHOe0pgx.js → BlockIssueBadge-BxwEiiF3.js} +3 -3
- package/dist/cdn/chunks/{BlockIssueBadge-DHOe0pgx.js.map → BlockIssueBadge-BxwEiiF3.js.map} +1 -1
- package/dist/cdn/chunks/{CloudEditor-DNed_Ym0.js → CloudEditor-DFIFWD9G.js} +89 -89
- package/dist/cdn/chunks/{CloudEditor-DNed_Ym0.js.map → CloudEditor-DFIFWD9G.js.map} +1 -1
- package/dist/cdn/chunks/{CollaboratorBar-sj_9Lee3.js → CollaboratorBar-Cu3vuN66.js} +4 -4
- package/dist/cdn/chunks/{CollaboratorBar-sj_9Lee3.js.map → CollaboratorBar-Cu3vuN66.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownBlock-C1Ikjpn4.js → CountdownBlock-BEVAJQtQ.js} +3 -3
- package/dist/cdn/chunks/{CountdownBlock-C1Ikjpn4.js.map → CountdownBlock-BEVAJQtQ.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-j1G_X8rB.js → CountdownToolbar-CI2sQZv5.js} +4 -4
- package/dist/cdn/chunks/{CountdownToolbar-j1G_X8rB.js.map → CountdownToolbar-CI2sQZv5.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-CTOf3PsH.js → IssuesPanel-BdeDoTcn.js} +4 -4
- package/dist/cdn/chunks/{IssuesPanel-CTOf3PsH.js.map → IssuesPanel-BdeDoTcn.js.map} +1 -1
- package/dist/cdn/chunks/MergeTagSuggestion-BsCAo4Co.js +213 -0
- package/dist/cdn/chunks/MergeTagSuggestion-BsCAo4Co.js.map +1 -0
- package/dist/cdn/chunks/{ModuleBrowserModal-DCh88-rr.js → ModuleBrowserModal-Dz-I5zfj.js} +6 -6
- package/dist/cdn/chunks/{ModuleBrowserModal-DCh88-rr.js.map → ModuleBrowserModal-Dz-I5zfj.js.map} +1 -1
- package/dist/cdn/chunks/{ModulePreviewCanvas-DJqvTKmg.js → ModulePreviewCanvas-BfinyuAN.js} +3 -3
- package/dist/cdn/chunks/{ModulePreviewCanvas-DJqvTKmg.js.map → ModulePreviewCanvas-BfinyuAN.js.map} +1 -1
- package/dist/cdn/chunks/{NumberWithSuffix-Bu45XWSl.js → NumberWithSuffix-CDjEa08X.js} +6 -6
- package/dist/cdn/chunks/{NumberWithSuffix-Bu45XWSl.js.map → NumberWithSuffix-CDjEa08X.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-DwZqLJp2.js → ParagraphEditor-B3fG0vge.js} +22 -22
- package/dist/cdn/chunks/{ParagraphEditor-DwZqLJp2.js.map → ParagraphEditor-B3fG0vge.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-CIuZ-2DV.js → RichTextEditorContent-C6YPCp9j.js} +4 -4
- package/dist/cdn/chunks/{RichTextEditorContent-CIuZ-2DV.js.map → RichTextEditorContent-C6YPCp9j.js.map} +1 -1
- package/dist/cdn/chunks/{SaveModuleDialog-Bep0X2s_.js → SaveModuleDialog-C6UIIVAM.js} +3 -3
- package/dist/cdn/chunks/{SaveModuleDialog-Bep0X2s_.js.map → SaveModuleDialog-C6UIIVAM.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-DO1-h3RY.js → TitleEditor-BiZbLYF1.js} +10 -10
- package/dist/cdn/chunks/{TitleEditor-DO1-h3RY.js.map → TitleEditor-BiZbLYF1.js.map} +1 -1
- package/dist/cdn/chunks/{blockTypeIcons-8o24HVJu.js → blockTypeIcons-BernVG06.js} +3 -3
- package/dist/cdn/chunks/{blockTypeIcons-8o24HVJu.js.map → blockTypeIcons-BernVG06.js.map} +1 -1
- package/dist/cdn/chunks/{draggable-kPCz_3zM.js → draggable-kG-D5Xsm.js} +6 -6
- package/dist/cdn/chunks/draggable-kG-D5Xsm.js.map +1 -0
- package/dist/cdn/chunks/extensions-Drp8UDc6.js +421 -0
- package/dist/cdn/chunks/extensions-Drp8UDc6.js.map +1 -0
- package/dist/cdn/chunks/{features-CkTMVylx.js → features-Dpczf9Su.js} +884 -835
- package/dist/cdn/chunks/features-Dpczf9Su.js.map +1 -0
- package/dist/cdn/chunks/{icons-9zjCuoJx.js → icons-CuxnJiGQ.js} +26 -26
- package/dist/cdn/chunks/{icons-9zjCuoJx.js.map → icons-CuxnJiGQ.js.map} +1 -1
- package/dist/cdn/chunks/{liquid.browser-DKKBzRQu.js → liquid.browser-BJOEu6Cg.js} +693 -678
- package/dist/cdn/chunks/liquid.browser-BJOEu6Cg.js.map +1 -0
- package/dist/cdn/chunks/{media-library-DMRIPx4g.js → media-library-CiYl_BO7.js} +33 -33
- package/dist/cdn/chunks/{media-library-DMRIPx4g.js.map → media-library-CiYl_BO7.js.map} +1 -1
- package/dist/cdn/chunks/{pusher-CdEqyLwF.js → pusher-CIwiKF8H.js} +4 -4
- package/dist/cdn/chunks/{pusher-CdEqyLwF.js.map → pusher-CIwiKF8H.js.map} +1 -1
- package/dist/cdn/chunks/{quality-CyeUgs_c.js → quality-CNjGxBG0.js} +112 -112
- package/dist/cdn/chunks/{quality-CyeUgs_c.js.map → quality-CNjGxBG0.js.map} +1 -1
- package/dist/cdn/chunks/{renderer-BIKUEKDD.js → renderer-CFkg8h-K.js} +20 -20
- package/dist/cdn/chunks/renderer-CFkg8h-K.js.map +1 -0
- package/dist/cdn/chunks/{src-pDy_imWG.js → src-DRpKu4Dy.js} +5 -5
- package/dist/cdn/chunks/{src-pDy_imWG.js.map → src-DRpKu4Dy.js.map} +1 -1
- package/dist/cdn/chunks/{styles-D4Bd3SCx.js → styles-B7wryV0l.js} +1484 -1344
- package/dist/cdn/chunks/styles-B7wryV0l.js.map +1 -0
- package/dist/cdn/chunks/{tiptap-BlLFFU3M.js → tiptap-DF9PEiqH.js} +6859 -6823
- package/dist/cdn/chunks/tiptap-DF9PEiqH.js.map +1 -0
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +35 -35
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{check-CYJwFmjy.js → check-rl7ok6uJ.js} +1 -1
- package/dist/{chevron-down-C5l-DzAA.js → chevron-down-BKe__NOD.js} +1 -1
- package/dist/{circle-alert-wf5HUFZY.js → circle-alert-C8xmpMsK.js} +1 -1
- package/dist/{clock-Bj0bQw-K.js → clock-BW4JuDCN.js} +1 -1
- package/dist/{cloud-CoFDm9YA.js → cloud-BQusL53H.js} +208 -208
- package/dist/createLucideIcon-Dx-EjR9r.js +43 -0
- package/dist/{dist-CLpPNKy9.js → dist-B5Sov3sS.js} +7 -7
- package/dist/dist-BEWiuOMi.js +251 -0
- package/dist/{dist-CrQZ_af9.js → dist-BFmE-7hB.js} +2 -2
- package/dist/{dist-U5vfDdYI.js → dist-BMoa33wT.js} +2 -2
- package/dist/{dist-BctFrpeA.js → dist-BibU4HNl.js} +74 -65
- package/dist/{dist-Dd3ibRZm.js → dist-BsCGIDSt.js} +103 -102
- package/dist/dist-CNLKj9wa.js +5 -0
- package/dist/{dist-BX3gGwL8.js → dist-CNXDNYQn.js} +728 -694
- package/dist/{dist-Bn703mnA.js → dist-COG3IdPK.js} +3 -3
- package/dist/{dist-B7w6xTU6.js → dist-CQZxDvFw.js} +3 -3
- package/dist/{dist-34OcyoK1.js → dist-CRsjOQM-.js} +2 -2
- package/dist/dist-CTT6WYJ6.js +134 -0
- package/dist/dist-Cqa6aeAJ.js +5 -0
- package/dist/{dist-ChMninLH.js → dist-SXJJ2v41.js} +2 -2
- package/dist/{dist-CyjyYg52.js → dist-itdjZraK.js} +28 -23
- package/dist/extensions-DwaZAqm6.js +423 -0
- package/dist/{image-up-x8-WXfsx.js → image-up-BwBCmQ4P.js} +1 -1
- package/dist/{info-RS_fGcGi.js → info-TCn7uWR5.js} +1 -1
- package/dist/{keys-DgYXDafq.js → keys-Cv8-8GsD.js} +1 -1
- package/dist/{liquid.browser-CVjP5Mex.js → liquid.browser-DZLtv26k.js} +692 -677
- package/dist/{list-checks-Bf7XdDyv.js → list-checks-CSrOWNgq.js} +1 -1
- package/dist/{loader-circle-CLZ0_FvW.js → loader-circle-BLmicnPG.js} +1 -1
- package/dist/{message-circle-B-1bN9ab.js → message-circle-C9hHMQCI.js} +1 -1
- package/dist/{refresh-cw-CWKWqJYG.js → refresh-cw-D1JQ1LNa.js} +1 -1
- package/dist/runtime-dom.esm-bundler-BzuoCyNp.js +523 -0
- package/dist/{scan-line-BtK5dEai.js → scan-line-DgijVq9y.js} +1 -1
- package/dist/{send-Cn1IUdzh.js → send-DjPdq69F.js} +1 -1
- package/dist/{shield-check-CrvMk4Ea.js → shield-check-Bqluu8FS.js} +1 -1
- package/dist/{sparkles-CgfjwvnG.js → sparkles-M4azPVSP.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/styles-D7fQ7f_1.js +4164 -0
- package/dist/templatical-editor.js +127 -126
- package/dist/{text-align-start-C3r_Rnvy.js → text-align-start-CMya5pCQ.js} +11 -11
- package/dist/{trash-2-CjERg4x9.js → trash-2-C-81rkLS.js} +1 -1
- package/dist/{triangle-alert-Chkny574.js → triangle-alert-BuRWnynk.js} +1 -1
- package/dist/{upload-e5kDRkPb.js → upload-CWBIoLd4.js} +1 -1
- package/dist/{useAliveFlag-cUQj9rmB.js → useAliveFlag-CECL_OUb.js} +1 -1
- package/dist/{useCloudI18n-CYJKqXtI.js → useCloudI18n-AKCy98qD.js} +2 -2
- package/dist/{useEditorCore-8JxXDOA4.js → useEditorCore-vcWLdnjN.js} +1406 -1364
- package/dist/{useI18n-BWqM8i78.js → useI18n-C-TDeJBt.js} +2 -2
- package/dist/{useMergeTag-NHC4ylza.js → useMergeTag-DSrBY0-2.js} +5 -5
- package/dist/usePopoverRoot-DKUDnr55.js +8 -0
- package/dist/{vue.runtime.esm-bundler-BPa483TZ.js → vue.runtime.esm-bundler-l0XAqiyv.js} +626 -1147
- package/dist/{x-DiPIbccg.js → x-CQSvXnGR.js} +1 -1
- package/package.json +26 -26
- package/dist/CountdownBlock-DtAokAVw.js +0 -92
- package/dist/CountdownToolbar-Dtqgwy0g.js +0 -210
- package/dist/cdn/chunks/draggable-kPCz_3zM.js.map +0 -1
- package/dist/cdn/chunks/extensions-iwBXnEwq.js +0 -605
- package/dist/cdn/chunks/extensions-iwBXnEwq.js.map +0 -1
- package/dist/cdn/chunks/features-CkTMVylx.js.map +0 -1
- package/dist/cdn/chunks/liquid.browser-DKKBzRQu.js.map +0 -1
- package/dist/cdn/chunks/renderer-BIKUEKDD.js.map +0 -1
- package/dist/cdn/chunks/styles-D4Bd3SCx.js.map +0 -1
- package/dist/cdn/chunks/tiptap-BlLFFU3M.js.map +0 -1
- package/dist/createLucideIcon-Bad2kKE0.js +0 -43
- package/dist/dist-CADDCv0o.js +0 -5
- package/dist/dist-CGvz7vkq.js +0 -5
- package/dist/dist-DuCzdgDA.js +0 -382
- package/dist/extensions-J439b7y7.js +0 -1720
- package/dist/styles-BUwDOWd3.js +0 -4022
- package/dist/usePopoverRoot-B1sdY4es.js +0 -8
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { S as e, d as t, w as n } from "./vue.runtime.esm-bundler-BPa483TZ.js";
|
|
2
|
-
//#region ../../node_modules/.pnpm/@lucide+vue@1.23.0_vue@3.5.39_typescript@6.0.3_/node_modules/@lucide/vue/dist/esm/shared/src/utils/isEmptyString.mjs
|
|
3
|
-
var r = (e) => e === "", i = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e) === t).join(" ").trim(), a = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), o = (e) => e.replace(/^([A-Z])|[\s-_]+(\w)/g, (e, t, n) => n ? n.toUpperCase() : t.toLowerCase()), s = (e) => {
|
|
4
|
-
let t = o(e);
|
|
5
|
-
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
6
|
-
}, c = {
|
|
7
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
8
|
-
width: 24,
|
|
9
|
-
height: 24,
|
|
10
|
-
viewBox: "0 0 24 24",
|
|
11
|
-
fill: "none",
|
|
12
|
-
stroke: "currentColor",
|
|
13
|
-
"stroke-width": 2,
|
|
14
|
-
"stroke-linecap": "round",
|
|
15
|
-
"stroke-linejoin": "round"
|
|
16
|
-
}, l = /* @__PURE__ */ Symbol("lucide-icons");
|
|
17
|
-
function u() {
|
|
18
|
-
return n(l, {});
|
|
19
|
-
}
|
|
20
|
-
//#endregion
|
|
21
|
-
//#region ../../node_modules/.pnpm/@lucide+vue@1.23.0_vue@3.5.39_typescript@6.0.3_/node_modules/@lucide/vue/dist/esm/Icon.mjs
|
|
22
|
-
var d = ({ name: n, iconNode: o, absoluteStrokeWidth: l, "absolute-stroke-width": d, strokeWidth: f, "stroke-width": p, size: m, color: h, ...g }, { slots: _ }) => {
|
|
23
|
-
let { size: v, color: y, strokeWidth: b = 2, absoluteStrokeWidth: x = !1, class: S = "" } = u(), C = t(() => {
|
|
24
|
-
let e = r(l) || r(d) || l === !0 || d === !0 || x === !0, t = f || p || b || c["stroke-width"];
|
|
25
|
-
return e ? Number(t) * 24 / Number(m ?? v ?? c.width) : t;
|
|
26
|
-
});
|
|
27
|
-
return e("svg", {
|
|
28
|
-
...c,
|
|
29
|
-
...g,
|
|
30
|
-
width: m ?? v ?? c.width,
|
|
31
|
-
height: m ?? v ?? c.height,
|
|
32
|
-
stroke: h ?? y ?? c.stroke,
|
|
33
|
-
"stroke-width": C.value,
|
|
34
|
-
class: i("lucide", S, ...n ? [`lucide-${a(s(n))}-icon`, `lucide-${a(n)}`] : ["lucide-icon"])
|
|
35
|
-
}, [...o.map((t) => e(...t)), ..._.default ? [_.default()] : []]);
|
|
36
|
-
}, f = (t, n) => (r, { slots: i, attrs: a }) => e(d, {
|
|
37
|
-
...a,
|
|
38
|
-
...r,
|
|
39
|
-
iconNode: n,
|
|
40
|
-
name: t
|
|
41
|
-
}, i.default ? { default: i.default } : void 0);
|
|
42
|
-
//#endregion
|
|
43
|
-
export { f as t };
|
package/dist/dist-CADDCv0o.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { FontFamily as e } from "./dist-ChMninLH.js";
|
|
2
|
-
//#region ../../node_modules/.pnpm/@tiptap+extension-font-family@3.27.1_@tiptap+extension-text-style@3.27.1_@tiptap+core@3.27.1_@tiptap+pm@3.27.1__/node_modules/@tiptap/extension-font-family/dist/index.js
|
|
3
|
-
var t = e;
|
|
4
|
-
//#endregion
|
|
5
|
-
export { e as FontFamily, t as default };
|
package/dist/dist-CGvz7vkq.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { Color as e } from "./dist-ChMninLH.js";
|
|
2
|
-
//#region ../../node_modules/.pnpm/@tiptap+extension-color@3.27.1_@tiptap+extension-text-style@3.27.1_@tiptap+core@3.27.1_@tiptap+pm@3.27.1__/node_modules/@tiptap/extension-color/dist/index.js
|
|
3
|
-
var t = e;
|
|
4
|
-
//#endregion
|
|
5
|
-
export { e as Color, t as default };
|
package/dist/dist-DuCzdgDA.js
DELETED
|
@@ -1,382 +0,0 @@
|
|
|
1
|
-
import { C as e, E as t, G as n, L as r, O as i, Q as a, R as o, U as s, X as c, Z as l, d as u, q as d, rt as f, tt as p, w as m, x as h } from "./vue.runtime.esm-bundler-BPa483TZ.js";
|
|
2
|
-
//#region ../../node_modules/.pnpm/@vueuse+shared@14.3.0_vue@3.5.39_typescript@6.0.3_/node_modules/@vueuse/shared/dist/index.js
|
|
3
|
-
function g(e, t) {
|
|
4
|
-
return s() ? (d(e, t), !0) : !1;
|
|
5
|
-
}
|
|
6
|
-
var _ = /* @__PURE__ */ new WeakMap(), v = (...t) => {
|
|
7
|
-
let n = t[0], r = h()?.proxy ?? s();
|
|
8
|
-
if (r == null && !e()) throw Error("injectLocal must be called in setup");
|
|
9
|
-
return r && _.has(r) && n in _.get(r) ? _.get(r)[n] : m(...t);
|
|
10
|
-
}, y = typeof window < "u" && typeof document < "u";
|
|
11
|
-
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
12
|
-
var b = (e) => e != null, x = Object.prototype.toString, S = (e) => x.call(e) === "[object Object]", C = () => {}, w = /* @__PURE__ */ T();
|
|
13
|
-
function T() {
|
|
14
|
-
var e, t;
|
|
15
|
-
return y && !!(!((e = window) == null || (e = e.navigator) == null) && e.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((t = window) == null || (t = t.navigator) == null ? void 0 : t.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window?.navigator.userAgent));
|
|
16
|
-
}
|
|
17
|
-
function E(e, t) {
|
|
18
|
-
function n(...n) {
|
|
19
|
-
return new Promise((r, i) => {
|
|
20
|
-
Promise.resolve(e(() => t.apply(this, n), {
|
|
21
|
-
fn: t,
|
|
22
|
-
thisArg: this,
|
|
23
|
-
args: n
|
|
24
|
-
})).then(r).catch(i);
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
return n;
|
|
28
|
-
}
|
|
29
|
-
var D = (e) => e();
|
|
30
|
-
function O(e, t = {}) {
|
|
31
|
-
let n, r, i = C, a = (e) => {
|
|
32
|
-
clearTimeout(e), i(), i = C;
|
|
33
|
-
}, o;
|
|
34
|
-
return (s) => {
|
|
35
|
-
let c = p(e), l = p(t.maxWait);
|
|
36
|
-
return n && a(n), c <= 0 || l !== void 0 && l <= 0 ? (r &&= (a(r), void 0), Promise.resolve(s())) : new Promise((e, u) => {
|
|
37
|
-
i = t.rejectOnCancel ? u : e, o = s, l && !r && (r = setTimeout(() => {
|
|
38
|
-
n && a(n), r = void 0, e(o());
|
|
39
|
-
}, l)), n = setTimeout(() => {
|
|
40
|
-
r && a(r), r = void 0, e(s());
|
|
41
|
-
}, c);
|
|
42
|
-
});
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
function k(e) {
|
|
46
|
-
return e.endsWith("rem") ? Number.parseFloat(e) * 16 : Number.parseFloat(e);
|
|
47
|
-
}
|
|
48
|
-
function A(e) {
|
|
49
|
-
return Array.isArray(e) ? e : [e];
|
|
50
|
-
}
|
|
51
|
-
function j(e) {
|
|
52
|
-
return e || h();
|
|
53
|
-
}
|
|
54
|
-
function M(e, t = 200, n = {}) {
|
|
55
|
-
return E(O(t, n), e);
|
|
56
|
-
}
|
|
57
|
-
function N(e, t = 200, n = {}) {
|
|
58
|
-
let i = c(p(e)), a = M(() => {
|
|
59
|
-
i.value = e.value;
|
|
60
|
-
}, t, n);
|
|
61
|
-
return r(e, () => a()), l(i);
|
|
62
|
-
}
|
|
63
|
-
function P(e, t, n = {}) {
|
|
64
|
-
let { eventFilter: i = D, ...a } = n;
|
|
65
|
-
return r(e, E(i, t), a);
|
|
66
|
-
}
|
|
67
|
-
function F(e, n = !0, r) {
|
|
68
|
-
j(r) ? i(e, r) : n ? e() : t(e);
|
|
69
|
-
}
|
|
70
|
-
function I(e, t = 1e3, i = {}) {
|
|
71
|
-
let { immediate: o = !0, immediateCallback: s = !1 } = i, c = null, u = a(!1);
|
|
72
|
-
function d() {
|
|
73
|
-
c &&= (clearInterval(c), null);
|
|
74
|
-
}
|
|
75
|
-
function f() {
|
|
76
|
-
u.value = !1, d();
|
|
77
|
-
}
|
|
78
|
-
function m() {
|
|
79
|
-
let n = p(t);
|
|
80
|
-
n <= 0 || (u.value = !0, s && e(), d(), u.value && (c = setInterval(e, n)));
|
|
81
|
-
}
|
|
82
|
-
return o && y && m(), (n(t) || typeof t == "function") && g(r(t, () => {
|
|
83
|
-
u.value && y && m();
|
|
84
|
-
})), g(f), {
|
|
85
|
-
isActive: l(u),
|
|
86
|
-
pause: f,
|
|
87
|
-
resume: m
|
|
88
|
-
};
|
|
89
|
-
}
|
|
90
|
-
function L(e, t, n = {}) {
|
|
91
|
-
let { immediate: r = !0, immediateCallback: i = !1 } = n, o = a(!1), s;
|
|
92
|
-
function c() {
|
|
93
|
-
s &&= (clearTimeout(s), void 0);
|
|
94
|
-
}
|
|
95
|
-
function u() {
|
|
96
|
-
o.value = !1, c();
|
|
97
|
-
}
|
|
98
|
-
function d(...n) {
|
|
99
|
-
i && e(), c(), o.value = !0, s = setTimeout(() => {
|
|
100
|
-
o.value = !1, s = void 0, e(...n);
|
|
101
|
-
}, p(t));
|
|
102
|
-
}
|
|
103
|
-
return r && (o.value = !0, y && d()), g(u), {
|
|
104
|
-
isPending: l(o),
|
|
105
|
-
start: d,
|
|
106
|
-
stop: u
|
|
107
|
-
};
|
|
108
|
-
}
|
|
109
|
-
function R(e = !1, t = {}) {
|
|
110
|
-
let { truthyValue: r = !0, falsyValue: i = !1 } = t, o = n(e), s = a(e);
|
|
111
|
-
function c(e) {
|
|
112
|
-
if (arguments.length) return s.value = e, s.value;
|
|
113
|
-
{
|
|
114
|
-
let e = p(r);
|
|
115
|
-
return s.value = s.value === e ? p(i) : e, s.value;
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
return o ? c : [s, c];
|
|
119
|
-
}
|
|
120
|
-
function z(e, t, n = {}) {
|
|
121
|
-
let { debounce: r = 0, maxWait: i = void 0, ...a } = n;
|
|
122
|
-
return P(e, t, {
|
|
123
|
-
...a,
|
|
124
|
-
eventFilter: O(r, { maxWait: i })
|
|
125
|
-
});
|
|
126
|
-
}
|
|
127
|
-
function B(e, t, n) {
|
|
128
|
-
return r(e, t, {
|
|
129
|
-
...n,
|
|
130
|
-
immediate: !0
|
|
131
|
-
});
|
|
132
|
-
}
|
|
133
|
-
//#endregion
|
|
134
|
-
//#region ../../node_modules/.pnpm/@vueuse+core@14.3.0_vue@3.5.39_typescript@6.0.3_/node_modules/@vueuse/core/dist/index.js
|
|
135
|
-
var V = y ? window : void 0;
|
|
136
|
-
y && window.document, y && window.navigator, y && window.location;
|
|
137
|
-
function H(e) {
|
|
138
|
-
let t = p(e);
|
|
139
|
-
return t?.$el ?? t;
|
|
140
|
-
}
|
|
141
|
-
function U(...e) {
|
|
142
|
-
let t = (e, t, n, r) => (e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r)), n = u(() => {
|
|
143
|
-
let t = A(p(e[0])).filter((e) => e != null);
|
|
144
|
-
return t.every((e) => typeof e != "string") ? t : void 0;
|
|
145
|
-
});
|
|
146
|
-
return B(() => [
|
|
147
|
-
n.value?.map((e) => H(e)) ?? [V].filter((e) => e != null),
|
|
148
|
-
A(p(n.value ? e[1] : e[0])),
|
|
149
|
-
A(f(n.value ? e[2] : e[1])),
|
|
150
|
-
p(n.value ? e[3] : e[2])
|
|
151
|
-
], ([e, n, r, i], a, o) => {
|
|
152
|
-
if (!e?.length || !n?.length || !r?.length) return;
|
|
153
|
-
let s = S(i) ? { ...i } : i, c = e.flatMap((e) => n.flatMap((n) => r.map((r) => t(e, n, r, s))));
|
|
154
|
-
o(() => {
|
|
155
|
-
c.forEach((e) => e());
|
|
156
|
-
});
|
|
157
|
-
}, { flush: "post" });
|
|
158
|
-
}
|
|
159
|
-
var W = !1;
|
|
160
|
-
function G(e, t, n = {}) {
|
|
161
|
-
let { window: r = V, ignore: i = [], capture: a = !0, detectIframe: o = !1, controls: s = !1 } = n;
|
|
162
|
-
if (!r) return s ? {
|
|
163
|
-
stop: C,
|
|
164
|
-
cancel: C,
|
|
165
|
-
trigger: C
|
|
166
|
-
} : C;
|
|
167
|
-
if (w && !W) {
|
|
168
|
-
W = !0;
|
|
169
|
-
let e = { passive: !0 };
|
|
170
|
-
Array.from(r.document.body.children).forEach((t) => t.addEventListener("click", C, e)), r.document.documentElement.addEventListener("click", C, e);
|
|
171
|
-
}
|
|
172
|
-
let c = !0, l = (e) => p(i).some((t) => {
|
|
173
|
-
if (typeof t == "string") return Array.from(r.document.querySelectorAll(t)).some((t) => t === e.target || e.composedPath().includes(t));
|
|
174
|
-
{
|
|
175
|
-
let n = H(t);
|
|
176
|
-
return n && (e.target === n || e.composedPath().includes(n));
|
|
177
|
-
}
|
|
178
|
-
});
|
|
179
|
-
function u(e) {
|
|
180
|
-
let t = p(e);
|
|
181
|
-
return t && t.$.subTree.shapeFlag === 16;
|
|
182
|
-
}
|
|
183
|
-
function d(e, t) {
|
|
184
|
-
let n = p(e), r = n.$.subTree && n.$.subTree.children;
|
|
185
|
-
return r == null || !Array.isArray(r) ? !1 : r.some((e) => e.el === t.target || t.composedPath().includes(e.el));
|
|
186
|
-
}
|
|
187
|
-
let f = (n) => {
|
|
188
|
-
let r = H(e);
|
|
189
|
-
if (n.target != null && !(!(r instanceof Element) && u(e) && d(e, n)) && !(!r || r === n.target || n.composedPath().includes(r))) {
|
|
190
|
-
if ("detail" in n && n.detail === 0 && (c = !l(n)), !c) {
|
|
191
|
-
c = !0;
|
|
192
|
-
return;
|
|
193
|
-
}
|
|
194
|
-
t(n);
|
|
195
|
-
}
|
|
196
|
-
}, m = !1, h = [
|
|
197
|
-
U(r, "click", (e) => {
|
|
198
|
-
m || (m = !0, setTimeout(() => {
|
|
199
|
-
m = !1;
|
|
200
|
-
}, 0), f(e));
|
|
201
|
-
}, {
|
|
202
|
-
passive: !0,
|
|
203
|
-
capture: a
|
|
204
|
-
}),
|
|
205
|
-
U(r, "pointerdown", (t) => {
|
|
206
|
-
let n = H(e);
|
|
207
|
-
c = !l(t) && !!(n && !t.composedPath().includes(n));
|
|
208
|
-
}, { passive: !0 }),
|
|
209
|
-
o && U(r, "blur", (n) => {
|
|
210
|
-
setTimeout(() => {
|
|
211
|
-
let i = H(e), a = r.document.activeElement;
|
|
212
|
-
for (; a?.shadowRoot;) a = a.shadowRoot.activeElement;
|
|
213
|
-
a?.tagName === "IFRAME" && !i?.contains(r.document.activeElement) && t(n);
|
|
214
|
-
}, 0);
|
|
215
|
-
}, { passive: !0 })
|
|
216
|
-
].filter(Boolean), g = () => h.forEach((e) => e());
|
|
217
|
-
return s ? {
|
|
218
|
-
stop: g,
|
|
219
|
-
cancel: () => {
|
|
220
|
-
c = !1;
|
|
221
|
-
},
|
|
222
|
-
trigger: (e) => {
|
|
223
|
-
c = !0, f(e), c = !1;
|
|
224
|
-
}
|
|
225
|
-
} : g;
|
|
226
|
-
}
|
|
227
|
-
function K() {
|
|
228
|
-
let e = a(!1), t = h();
|
|
229
|
-
return t && i(() => {
|
|
230
|
-
e.value = !0;
|
|
231
|
-
}, t), e;
|
|
232
|
-
}
|
|
233
|
-
/* @__NO_SIDE_EFFECTS__ */
|
|
234
|
-
function q(e) {
|
|
235
|
-
let t = K();
|
|
236
|
-
return u(() => (t.value, !!e()));
|
|
237
|
-
}
|
|
238
|
-
function J(e, t, n = {}) {
|
|
239
|
-
let { window: i = V, ...a } = n, o, s = /* @__PURE__ */ q(() => i && "MutationObserver" in i), c = () => {
|
|
240
|
-
o &&= (o.disconnect(), void 0);
|
|
241
|
-
}, l = r(u(() => {
|
|
242
|
-
let t = A(p(e)).map(H).filter(b);
|
|
243
|
-
return new Set(t);
|
|
244
|
-
}), (e) => {
|
|
245
|
-
c(), s.value && e.size && (o = new MutationObserver(t), e.forEach((e) => o.observe(e, a)));
|
|
246
|
-
}, {
|
|
247
|
-
immediate: !0,
|
|
248
|
-
flush: "post"
|
|
249
|
-
}), d = () => o?.takeRecords(), f = () => {
|
|
250
|
-
l(), c();
|
|
251
|
-
};
|
|
252
|
-
return g(f), {
|
|
253
|
-
isSupported: s,
|
|
254
|
-
stop: f,
|
|
255
|
-
takeRecords: d
|
|
256
|
-
};
|
|
257
|
-
}
|
|
258
|
-
var Y = Symbol("vueuse-ssr-width");
|
|
259
|
-
/* @__NO_SIDE_EFFECTS__ */
|
|
260
|
-
function X() {
|
|
261
|
-
let t = e() ? v(Y, null) : null;
|
|
262
|
-
return typeof t == "number" ? t : void 0;
|
|
263
|
-
}
|
|
264
|
-
function Z(e, t = {}) {
|
|
265
|
-
let { window: n = V, ssrWidth: r = /* @__PURE__ */ X() } = t, i = /* @__PURE__ */ q(() => n && "matchMedia" in n && typeof n.matchMedia == "function"), s = a(typeof r == "number"), c = a(), l = a(!1);
|
|
266
|
-
return o(() => {
|
|
267
|
-
if (s.value) {
|
|
268
|
-
s.value = !i.value, l.value = p(e).split(",").some((e) => {
|
|
269
|
-
let t = e.includes("not all"), n = e.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/), i = e.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/), a = !!(n || i);
|
|
270
|
-
return n && a && (a = r >= k(n[1])), i && a && (a = r <= k(i[1])), t ? !a : a;
|
|
271
|
-
});
|
|
272
|
-
return;
|
|
273
|
-
}
|
|
274
|
-
i.value && (c.value = n.matchMedia(p(e)), l.value = c.value.matches);
|
|
275
|
-
}), U(c, "change", (e) => {
|
|
276
|
-
l.value = e.matches;
|
|
277
|
-
}, { passive: !0 }), u(() => l.value);
|
|
278
|
-
}
|
|
279
|
-
function Q(e, t = {}) {
|
|
280
|
-
let n = a(!1), r = a(null), i = 0, o = !0;
|
|
281
|
-
if (y) {
|
|
282
|
-
let a = typeof t == "function" ? { onDrop: t } : t, s = a.multiple ?? !0, c = a.preventDefaultForUnhandled ?? !1, l = (e) => {
|
|
283
|
-
let t = Array.from(e.dataTransfer?.files ?? []);
|
|
284
|
-
return t.length === 0 ? null : s ? t : [t[0]];
|
|
285
|
-
}, u = (e) => {
|
|
286
|
-
let t = f(a.dataTypes);
|
|
287
|
-
return typeof t == "function" ? t(e) : t?.length ? e.length === 0 ? !1 : e.every((e) => t.some((t) => e.includes(t))) : !0;
|
|
288
|
-
}, d = (e) => {
|
|
289
|
-
if (a.checkValidity) return a.checkValidity(e);
|
|
290
|
-
let t = u(Array.from(e ?? []).map((e) => e.type)), n = s || e.length <= 1;
|
|
291
|
-
return t && n;
|
|
292
|
-
}, p = () => /^(?:(?!chrome|android).)*safari/i.test(navigator.userAgent) && !("chrome" in window), m = (e, t) => {
|
|
293
|
-
let s = e.dataTransfer?.items;
|
|
294
|
-
if (o = (s && d(s)) ?? !1, c && e.preventDefault(), !p() && !o) {
|
|
295
|
-
e.dataTransfer && (e.dataTransfer.dropEffect = "none");
|
|
296
|
-
return;
|
|
297
|
-
}
|
|
298
|
-
e.preventDefault(), e.dataTransfer && (e.dataTransfer.dropEffect = "copy");
|
|
299
|
-
let u = l(e);
|
|
300
|
-
switch (t) {
|
|
301
|
-
case "enter":
|
|
302
|
-
var f;
|
|
303
|
-
i += 1, n.value = !0, (f = a.onEnter) == null || f.call(a, null, e);
|
|
304
|
-
break;
|
|
305
|
-
case "over":
|
|
306
|
-
var m;
|
|
307
|
-
(m = a.onOver) == null || m.call(a, null, e);
|
|
308
|
-
break;
|
|
309
|
-
case "leave":
|
|
310
|
-
var h;
|
|
311
|
-
--i, i === 0 && (n.value = !1), (h = a.onLeave) == null || h.call(a, null, e);
|
|
312
|
-
break;
|
|
313
|
-
case "drop":
|
|
314
|
-
if (i = 0, n.value = !1, o) {
|
|
315
|
-
var g;
|
|
316
|
-
r.value = u, (g = a.onDrop) == null || g.call(a, u, e);
|
|
317
|
-
}
|
|
318
|
-
break;
|
|
319
|
-
}
|
|
320
|
-
};
|
|
321
|
-
U(e, "dragenter", (e) => m(e, "enter")), U(e, "dragover", (e) => m(e, "over")), U(e, "dragleave", (e) => m(e, "leave")), U(e, "drop", (e) => m(e, "drop"));
|
|
322
|
-
}
|
|
323
|
-
return {
|
|
324
|
-
files: r,
|
|
325
|
-
isOverDropZone: n
|
|
326
|
-
};
|
|
327
|
-
}
|
|
328
|
-
function $(e, t, n = {}) {
|
|
329
|
-
let { window: i = V, ...a } = n, o, s = /* @__PURE__ */ q(() => i && "ResizeObserver" in i), c = () => {
|
|
330
|
-
o &&= (o.disconnect(), void 0);
|
|
331
|
-
}, l = r(u(() => {
|
|
332
|
-
let t = p(e);
|
|
333
|
-
return Array.isArray(t) ? t.map((e) => H(e)) : [H(t)];
|
|
334
|
-
}), (e) => {
|
|
335
|
-
if (c(), s.value && i) {
|
|
336
|
-
o = new ResizeObserver(t);
|
|
337
|
-
for (let t of e) t && o.observe(t, a);
|
|
338
|
-
}
|
|
339
|
-
}, {
|
|
340
|
-
immediate: !0,
|
|
341
|
-
flush: "post"
|
|
342
|
-
}), d = () => {
|
|
343
|
-
c(), l();
|
|
344
|
-
};
|
|
345
|
-
return g(d), {
|
|
346
|
-
isSupported: s,
|
|
347
|
-
stop: d
|
|
348
|
-
};
|
|
349
|
-
}
|
|
350
|
-
function ee(e, t = {}) {
|
|
351
|
-
let { reset: n = !0, windowResize: i = !0, windowScroll: o = !0, immediate: s = !0, updateTiming: c = "sync" } = t, l = a(0), u = a(0), d = a(0), f = a(0), p = a(0), m = a(0), h = a(0), g = a(0);
|
|
352
|
-
function _() {
|
|
353
|
-
let t = H(e);
|
|
354
|
-
if (!t) {
|
|
355
|
-
n && (l.value = 0, u.value = 0, d.value = 0, f.value = 0, p.value = 0, m.value = 0, h.value = 0, g.value = 0);
|
|
356
|
-
return;
|
|
357
|
-
}
|
|
358
|
-
let r = t.getBoundingClientRect();
|
|
359
|
-
l.value = r.height, u.value = r.bottom, d.value = r.left, f.value = r.right, p.value = r.top, m.value = r.width, h.value = r.x, g.value = r.y;
|
|
360
|
-
}
|
|
361
|
-
function v() {
|
|
362
|
-
c === "sync" ? _() : c === "next-frame" && requestAnimationFrame(() => _());
|
|
363
|
-
}
|
|
364
|
-
return $(e, v), r(() => H(e), (e) => !e && v()), J(e, v, { attributeFilter: ["style", "class"] }), o && U("scroll", v, {
|
|
365
|
-
capture: !0,
|
|
366
|
-
passive: !0
|
|
367
|
-
}), i && U("resize", v, { passive: !0 }), F(() => {
|
|
368
|
-
s && v();
|
|
369
|
-
}), {
|
|
370
|
-
height: l,
|
|
371
|
-
bottom: u,
|
|
372
|
-
left: d,
|
|
373
|
-
right: f,
|
|
374
|
-
top: p,
|
|
375
|
-
width: m,
|
|
376
|
-
x: h,
|
|
377
|
-
y: g,
|
|
378
|
-
update: v
|
|
379
|
-
};
|
|
380
|
-
}
|
|
381
|
-
//#endregion
|
|
382
|
-
export { Z as a, I as c, z as d, U as i, L as l, Q as n, N as o, ee as r, M as s, G as t, R as u };
|