@templatical/editor 0.16.4 → 0.16.5
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/{AiFeatureMenu-BPCkrHAS.js → AiFeatureMenu-B1oEJebq.js} +1 -1
- package/dist/{CloudEditor-v8ARYaFW.js → CloudEditor-D6KNL6VU.js} +6 -6
- package/dist/{CollaboratorBar-BQzKZ2zo.js → CollaboratorBar-C_EhXQ5R.js} +1 -1
- package/dist/{ColorPicker-Cab6U2sH.js → ColorPicker-CppJgX_T.js} +57 -58
- package/dist/{CountdownToolbar-q3umZ7TZ.js → CountdownToolbar-D5GaA_lt.js} +2 -2
- package/dist/{MergeTagSuggestion-DrT3LiZ4.js → MergeTagSuggestion-jIpT_jmz.js} +7 -5
- package/dist/{ModuleBrowserModal-CzzChPmN.js → ModuleBrowserModal-CXy8Bbv9.js} +4 -4
- package/dist/{ModulePreviewCanvas-C0Q2n3FL.js → ModulePreviewCanvas-CJC9kyZN.js} +1 -1
- package/dist/{NumberWithSuffix-Bhm2ByHs.js → NumberWithSuffix-DNi-v4l1.js} +1 -1
- package/dist/{ParagraphEditor-BhsBi8p8.js → ParagraphEditor-nk5Vvr7M.js} +38 -39
- package/dist/{RichTextEditorContent-ef0fdj6e.js → RichTextEditorContent-DBaCrvH0.js} +13 -13
- package/dist/{SaveModuleDialog-BNN3dcxD.js → SaveModuleDialog-CYu5PhBz.js} +2 -2
- package/dist/{SnapshotHistory-tWvgMCe6.js → SnapshotHistory-B38ImqMO.js} +2 -2
- package/dist/{TestEmailModal-EdwEcsrD.js → TestEmailModal-DbstIzEf.js} +2 -2
- package/dist/{TitleEditor-DdvRepBq.js → TitleEditor-CmfkOHJT.js} +18 -18
- package/dist/{TplModal-Niu4Y96-.js → TplModal-BXnx3sLr.js} +4 -4
- package/dist/{blockTypeIcons-DHcYPMB8.js → blockTypeIcons-BVIEw0XJ.js} +1 -1
- package/dist/bundle-stats.json +7 -7
- package/dist/cdn/chunks/{AiFeatureMenu-AoUwsqor.js → AiFeatureMenu-CuIg4yrB.js} +6 -6
- package/dist/cdn/chunks/{AiFeatureMenu-AoUwsqor.js.map → AiFeatureMenu-CuIg4yrB.js.map} +1 -1
- package/dist/cdn/chunks/{BlockIssueBadge-DZU3CfEN.js → BlockIssueBadge-BHEl_Hs7.js} +4 -4
- package/dist/cdn/chunks/{BlockIssueBadge-DZU3CfEN.js.map → BlockIssueBadge-BHEl_Hs7.js.map} +1 -1
- package/dist/cdn/chunks/{CloudEditor-BrZLF_m1.js → CloudEditor-1Ms0w691.js} +130 -130
- package/dist/cdn/chunks/{CloudEditor-BrZLF_m1.js.map → CloudEditor-1Ms0w691.js.map} +1 -1
- package/dist/cdn/chunks/{CollaboratorBar-BAC56ez6.js → CollaboratorBar-C0a5P64z.js} +3 -3
- package/dist/cdn/chunks/{CollaboratorBar-BAC56ez6.js.map → CollaboratorBar-C0a5P64z.js.map} +1 -1
- package/dist/cdn/chunks/{ColorPicker-DLEoT419.js → ColorPicker-bsMmT-_B.js} +144 -144
- package/dist/cdn/chunks/ColorPicker-bsMmT-_B.js.map +1 -0
- package/dist/cdn/chunks/{CountdownBlock-BOF9aTXF.js → CountdownBlock-8053oz4k.js} +4 -4
- package/dist/cdn/chunks/{CountdownBlock-BOF9aTXF.js.map → CountdownBlock-8053oz4k.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-C9bQ5k4E.js → CountdownToolbar-DQ_zrorh.js} +4 -4
- package/dist/cdn/chunks/{CountdownToolbar-C9bQ5k4E.js.map → CountdownToolbar-DQ_zrorh.js.map} +1 -1
- package/dist/cdn/chunks/{IssuesPanel-CHwYahKK.js → IssuesPanel-CwQ376nf.js} +7 -7
- package/dist/cdn/chunks/{IssuesPanel-CHwYahKK.js.map → IssuesPanel-CwQ376nf.js.map} +1 -1
- package/dist/cdn/chunks/{MergeTagSuggestion-jesxS7An.js → MergeTagSuggestion-rpZ6Ol-i.js} +8 -6
- package/dist/cdn/chunks/MergeTagSuggestion-rpZ6Ol-i.js.map +1 -0
- package/dist/cdn/chunks/{ModuleBrowserModal-iSXXpAUk.js → ModuleBrowserModal-DUegB2Jk.js} +8 -8
- package/dist/cdn/chunks/{ModuleBrowserModal-iSXXpAUk.js.map → ModuleBrowserModal-DUegB2Jk.js.map} +1 -1
- package/dist/cdn/chunks/{ModulePreviewCanvas-DIy0MZj2.js → ModulePreviewCanvas-f4h8r9Lh.js} +32 -32
- package/dist/cdn/chunks/{ModulePreviewCanvas-DIy0MZj2.js.map → ModulePreviewCanvas-f4h8r9Lh.js.map} +1 -1
- package/dist/cdn/chunks/{NumberWithSuffix-vPdOG2lO.js → NumberWithSuffix-Bu_nHJuD.js} +2 -2
- package/dist/cdn/chunks/{NumberWithSuffix-vPdOG2lO.js.map → NumberWithSuffix-Bu_nHJuD.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-D7znI_X1.js → ParagraphEditor-IpZsg8qo.js} +75 -75
- package/dist/cdn/chunks/ParagraphEditor-IpZsg8qo.js.map +1 -0
- package/dist/cdn/chunks/{RichTextEditorContent-DVwGHbO6.js → RichTextEditorContent-DDnqZ9cB.js} +6 -6
- package/dist/cdn/chunks/{RichTextEditorContent-DVwGHbO6.js.map → RichTextEditorContent-DDnqZ9cB.js.map} +1 -1
- package/dist/cdn/chunks/{SaveModuleDialog-D2_qPtE9.js → SaveModuleDialog-CVA5HPCi.js} +20 -20
- package/dist/cdn/chunks/{SaveModuleDialog-D2_qPtE9.js.map → SaveModuleDialog-CVA5HPCi.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-CKjZ6Cgp.js → TitleEditor-DU8wm0Rh.js} +9 -9
- package/dist/cdn/chunks/TitleEditor-DU8wm0Rh.js.map +1 -0
- package/dist/cdn/chunks/{blockTypeIcons-BKecgdgr.js → blockTypeIcons-Dm5Oosjp.js} +7 -7
- package/dist/cdn/chunks/{blockTypeIcons-BKecgdgr.js.map → blockTypeIcons-Dm5Oosjp.js.map} +1 -1
- package/dist/cdn/chunks/{extensions-OZTN_skA.js → extensions-BGUoo2a5.js} +29 -29
- package/dist/cdn/chunks/{extensions-OZTN_skA.js.map → extensions-BGUoo2a5.js.map} +1 -1
- package/dist/cdn/chunks/{features-Bo7H8WNI.js → features-BSpDuFFR.js} +423 -404
- package/dist/cdn/chunks/features-BSpDuFFR.js.map +1 -0
- package/dist/cdn/chunks/{icons-BrNSrnyT.js → icons-k3XVoRvc.js} +2 -2
- package/dist/cdn/chunks/{icons-BrNSrnyT.js.map → icons-k3XVoRvc.js.map} +1 -1
- package/dist/cdn/chunks/{media-library-Cec5DMR3.js → media-library-iDq3otm6.js} +451 -451
- package/dist/cdn/chunks/{media-library-Cec5DMR3.js.map → media-library-iDq3otm6.js.map} +1 -1
- package/dist/cdn/chunks/{quality-Dd2iYgRf.js → quality-Bb7vN32U.js} +512 -512
- package/dist/cdn/chunks/{quality-Dd2iYgRf.js.map → quality-Bb7vN32U.js.map} +1 -1
- package/dist/cdn/chunks/{renderer-Br-qXdnQ.js → renderer-cOvtk8HM.js} +16 -16
- package/dist/cdn/chunks/{renderer-Br-qXdnQ.js.map → renderer-cOvtk8HM.js.map} +1 -1
- package/dist/cdn/chunks/{src-BH8PABpF.js → src-Ddp969zE.js} +6 -6
- package/dist/cdn/chunks/{src-BH8PABpF.js.map → src-Ddp969zE.js.map} +1 -1
- package/dist/cdn/chunks/{styles-nqo5BynI.js → styles-CW_gRVVR.js} +219 -219
- package/dist/cdn/chunks/styles-CW_gRVVR.js.map +1 -0
- package/dist/cdn/editor.css +1 -1
- package/dist/cdn/editor.js +46 -46
- package/dist/cdn/editor.js.map +1 -1
- package/dist/{extensions-B2poxDIo.js → extensions-Cjd-VAII.js} +1 -1
- package/dist/index.d.ts +12 -0
- package/dist/style.css +1 -1
- package/dist/{styles-DN4J7w-C.js → styles-DJfTblY7.js} +97 -97
- package/dist/templatical-editor.js +4 -4
- package/dist/{useEditorCore-DBq2689h.js → useEditorCore-DnOG2a_b.js} +681 -681
- package/dist/usePopoverPosition-B3Byo68F.js +281 -0
- package/package.json +7 -7
- package/dist/cdn/chunks/ColorPicker-DLEoT419.js.map +0 -1
- package/dist/cdn/chunks/MergeTagSuggestion-jesxS7An.js.map +0 -1
- package/dist/cdn/chunks/ParagraphEditor-D7znI_X1.js.map +0 -1
- package/dist/cdn/chunks/TitleEditor-CKjZ6Cgp.js.map +0 -1
- package/dist/cdn/chunks/features-Bo7H8WNI.js.map +0 -1
- package/dist/cdn/chunks/styles-nqo5BynI.js.map +0 -1
- package/dist/color-DhoxCSMv.js +0 -259
- package/dist/usePopoverRoot-C1j0D7cc.js +0 -8
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { A as e, Dt as t, N as n, O as r, Ot as i, _ as a, c as o, d as s, l as c, r as l, s as u } from "./vue.runtime.esm-bundler-B0xoGkDv.js";
|
|
2
|
-
import "./useEditorCore-
|
|
2
|
+
import "./useEditorCore-DnOG2a_b.js";
|
|
3
3
|
import { L as d, t as f } from "./keys-BbDgCU6K.js";
|
|
4
4
|
import { t as p } from "./image-up-CDEgJqwA.js";
|
|
5
5
|
import { t as m } from "./shield-check-YYDhGroE.js";
|
|
@@ -2,15 +2,15 @@ import { A as e, D as t, Dt as n, E as r, Et as i, I as a, K as o, O as s, Ot as
|
|
|
2
2
|
import { c as E, o as D, t as O } from "./runtime-dom.esm-bundler-GdMI8WqG.js";
|
|
3
3
|
import { t as k } from "./timeouts-Bmi_yePw.js";
|
|
4
4
|
import { O as A, a as j } from "./dist-DoRIUsfz.js";
|
|
5
|
-
import { L as M, T as N, b as ee, t as P } from "./useEditorCore-
|
|
5
|
+
import { L as M, T as N, b as ee, t as P } from "./useEditorCore-DnOG2a_b.js";
|
|
6
6
|
import { m as F } from "./dist-DYv_Pttj.js";
|
|
7
|
-
import {
|
|
7
|
+
import { i as I } from "./usePopoverPosition-B3Byo68F.js";
|
|
8
8
|
import { D as L, M as R, c as z, j as te, l as ne, r as B, s as re, t as ie } from "./keys-BbDgCU6K.js";
|
|
9
9
|
import { t as V } from "./useI18n-eR1yVW0v.js";
|
|
10
10
|
import { t as H } from "./createLucideIcon-FSF4peHQ.js";
|
|
11
11
|
import { t as U } from "./check-Cg6Mc2pP.js";
|
|
12
12
|
import { t as W } from "./circle-alert-Bhzm-fNA.js";
|
|
13
|
-
import { a as G, c as ae, d as oe, f as K, i as q, l as se, n as ce, o as le, p as ue, r as de, s as fe, t as pe, u as me } from "./styles-
|
|
13
|
+
import { a as G, c as ae, d as oe, f as K, i as q, l as se, n as ce, o as le, p as ue, r as de, s as fe, t as pe, u as me } from "./styles-DJfTblY7.js";
|
|
14
14
|
import { t as he } from "./clock-m7TwQw4b.js";
|
|
15
15
|
import { t as J } from "./loader-circle-BT38qSm3.js";
|
|
16
16
|
import { t as ge } from "./message-circle-BAHcL9S-.js";
|
|
@@ -19,7 +19,7 @@ import { t as Y } from "./sparkles-CCwQMMMZ.js";
|
|
|
19
19
|
import { t as X } from "./triangle-alert-B2g0ALvq.js";
|
|
20
20
|
import { t as Z } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
21
21
|
import { n as Q } from "./useCloudI18n-WbfVWq5k.js";
|
|
22
|
-
import { d as $ } from "./ColorPicker-
|
|
22
|
+
import { d as $ } from "./ColorPicker-CppJgX_T.js";
|
|
23
23
|
import { _ as ve, a as ye, c as be, d as xe, f as Se, g as Ce, h as we, l as Te, m as Ee, n as De, o as Oe, p as ke, r as Ae, s as je, t as Me, v as Ne, y as Pe } from "./cloud-BogxOeZu.js";
|
|
24
24
|
var Fe = H("save", [
|
|
25
25
|
["path", {
|
|
@@ -628,7 +628,7 @@ var Ge = ["aria-label"], Ke = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
628
628
|
},
|
|
629
629
|
emits: ["save"],
|
|
630
630
|
setup(e) {
|
|
631
|
-
let t = h(() => import("./CollaboratorBar-
|
|
631
|
+
let t = h(() => import("./CollaboratorBar-C_EhXQ5R.js")), r = h(() => import("./SnapshotHistory-B38ImqMO.js")), a = h(() => import("./AiFeatureMenu-B1oEJebq.js")), { t: o, format: u } = Q();
|
|
632
632
|
return (d, f) => (s(), m("header", tt, [
|
|
633
633
|
p("div", nt, [e.featureFlags.templateLimit.value === null ? w("", !0) : (s(), m("span", rt, c(b(u)(b(o).header.templatesUsed, {
|
|
634
634
|
used: e.featureFlags.templateCount.value,
|
|
@@ -790,7 +790,7 @@ var Ge = ["aria-label"], Ke = { class: "tpl:flex tpl:max-h-[80vh] tpl:w-full tpl
|
|
|
790
790
|
"module-insert"
|
|
791
791
|
],
|
|
792
792
|
setup(e, { expose: t, emit: n }) {
|
|
793
|
-
let r = h(() => import("./AiChatSidebar-CYAbVB2G.js")), i = h(() => import("./CommentsSidebar-C_XLBbo3.js")), a = h(() => import("./DesignReferenceSidebar-Bh9uAZ4B.js")), o = h(() => import("./TemplateScoringPanel-ZhObHWeb.js")), c = h(() => import("./TestEmailModal-
|
|
793
|
+
let r = h(() => import("./AiChatSidebar-CYAbVB2G.js")), i = h(() => import("./CommentsSidebar-C_XLBbo3.js")), a = h(() => import("./DesignReferenceSidebar-Bh9uAZ4B.js")), o = h(() => import("./TemplateScoringPanel-ZhObHWeb.js")), c = h(() => import("./TestEmailModal-DbstIzEf.js")), l = h(() => import("./SaveModuleDialog-CYu5PhBz.js")), d = h(() => import("./ModuleBrowserModal-CXy8Bbv9.js")), f = h(async () => {
|
|
794
794
|
try {
|
|
795
795
|
return (await import("@templatical/media-library")).MediaLibraryModal;
|
|
796
796
|
} catch {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { A as e, Dt as t, O as n, Ot as r, _ as i, c as a, d as o, l as s, nt as c, r as l, s as u, u as d } from "./vue.runtime.esm-bundler-B0xoGkDv.js";
|
|
2
|
-
import "./useEditorCore-
|
|
2
|
+
import "./useEditorCore-DnOG2a_b.js";
|
|
3
3
|
import { t as f } from "./createLucideIcon-FSF4peHQ.js";
|
|
4
4
|
import { n as p } from "./useCloudI18n-WbfVWq5k.js";
|
|
5
5
|
import { t as m } from "./readableTextColor-f8Kykfnh.js";
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { Dt as e, Et as t, O as n, R as r, Y as i, _ as a, c as o, d as s, h as c, i as ee, l as te, nt as l, s as u, u as d, x as f } from "./vue.runtime.esm-bundler-B0xoGkDv.js";
|
|
2
2
|
import { c as ne, s as p, t as re } from "./runtime-dom.esm-bundler-GdMI8WqG.js";
|
|
3
|
-
import {
|
|
4
|
-
import { I as
|
|
5
|
-
import { t as
|
|
3
|
+
import { i as ie, n as ae, r as m, t as oe } from "./usePopoverPosition-B3Byo68F.js";
|
|
4
|
+
import { I as se, P as ce } from "./keys-BbDgCU6K.js";
|
|
5
|
+
import { t as le } from "./useI18n-eR1yVW0v.js";
|
|
6
6
|
import { t as h } from "./x-Ctg_250T.js";
|
|
7
|
-
import { t as ce } from "./usePopoverRoot-C1j0D7cc.js";
|
|
8
7
|
//#region src/constants/styleConstants.ts
|
|
9
8
|
var g = "tpl:block tpl:mb-1.5 tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-text-muted)]", _ = "tpl:w-full tpl:h-10 tpl:px-3.5 tpl:py-1.5 tpl:text-sm tpl:border tpl:rounded-[var(--tpl-radius-sm)] tpl:shadow-xs tpl:text-[var(--tpl-text)] tpl:bg-[var(--tpl-bg)] tpl:border-[var(--tpl-border)] tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:outline-none focus:tpl:border-[var(--tpl-primary)] focus:tpl:shadow-[var(--tpl-ring)] placeholder:tpl:text-[var(--tpl-text-dim)]", v = "tpl:w-full tpl:h-10 tpl:px-3.5 tpl:py-1.5 tpl:text-sm tpl:border tpl:rounded-l-[var(--tpl-radius-sm)] tpl:rounded-r-none tpl:border-r-0 tpl:shadow-xs tpl:text-[var(--tpl-text)] tpl:bg-[var(--tpl-bg)] tpl:border-[var(--tpl-border)] tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:outline-none focus:tpl:border-[var(--tpl-primary)] focus:tpl:shadow-[var(--tpl-ring)] placeholder:tpl:text-[var(--tpl-text-dim)]", y = "tpl:flex tpl:items-center tpl:px-2.5 tpl:text-xs tpl:border tpl:border-l-0 tpl:text-[var(--tpl-text-dim)] tpl:bg-[var(--tpl-bg-hover)] tpl:border-[var(--tpl-border)] tpl:rounded-r-[var(--tpl-radius-sm)]", b = "tpl:flex-1 tpl:h-10 tpl:px-3.5 tpl:py-1.5 tpl:text-xs tpl:font-mono tpl:border tpl:rounded-[var(--tpl-radius-sm)] tpl:shadow-xs tpl:text-[var(--tpl-text)] tpl:bg-[var(--tpl-bg)] tpl:border-[var(--tpl-border)] tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] tpl:outline-none focus:tpl:border-[var(--tpl-primary)] focus:tpl:shadow-[var(--tpl-ring)]", x = "tpl:rounded-[var(--tpl-radius)] tpl:bg-[var(--tpl-bg-elevated)] tpl:p-4 tpl:border tpl:border-[var(--tpl-border)] tpl:transition-colors tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] hover:tpl:bg-[var(--tpl-bg-hover)]", S = "tpl:flex tpl:size-8 tpl:shrink-0 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:duration-150 tpl:hover:border-[var(--tpl-danger)] tpl:hover:bg-[var(--tpl-danger-light)] tpl:hover:text-[var(--tpl-danger)]", C = "tpl:flex tpl:w-full tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded-md tpl:border tpl:border-dashed tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:px-3 tpl:py-2 tpl:text-xs tpl:font-medium tpl:text-[var(--tpl-text-muted)] tpl:transition-all tpl:duration-150 tpl:hover:border-[var(--tpl-primary)] tpl:hover:text-[var(--tpl-primary)]", w = "tpl:w-full tpl:resize-y tpl:rounded-md tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg)] tpl:px-2.5 tpl:py-2 tpl:font-mono tpl:text-xs tpl:text-[var(--tpl-text)] tpl:outline-none tpl:transition-all tpl:duration-150 tpl:placeholder:text-[var(--tpl-text-dim)] tpl:focus:border-[var(--tpl-primary)] tpl:focus:shadow-[0_0_0_3px_var(--tpl-primary-light)]", T = "tpl-btn tpl:inline-flex tpl:items-center tpl:gap-1.5 tpl:rounded-[var(--tpl-radius-sm)] tpl:border tpl:px-3.5 tpl:py-2 tpl:text-sm tpl:font-medium tpl:whitespace-nowrap tpl:transition-all tpl:duration-[120ms] tpl:ease-[cubic-bezier(0.16,1,0.3,1)] hover:tpl:bg-[var(--tpl-primary)] hover:tpl:text-[var(--tpl-bg)] tpl:disabled:cursor-not-allowed tpl:disabled:opacity-50", E = [
|
|
10
9
|
"10px",
|
|
@@ -59,7 +58,7 @@ var g = "tpl:block tpl:mb-1.5 tpl:text-sm tpl:font-medium tpl:text-[var(--tpl-te
|
|
|
59
58
|
}
|
|
60
59
|
], k = "#000000", A = "#ffffff", j = "#ffff00", M = "#f2f2f2", N = (e, t = 0, n = 1) => e > n ? n : e < t ? t : e, P = (e, t = 0, n = 10 ** t) => Math.round(n * e) / n;
|
|
61
60
|
360 / (Math.PI * 2);
|
|
62
|
-
var F = (e) =>
|
|
61
|
+
var F = (e) => fe(I(e)), I = (e) => (e[0] === "#" && (e = e.substring(1)), e.length < 6 ? {
|
|
63
62
|
r: parseInt(e[0] + e[0], 16),
|
|
64
63
|
g: parseInt(e[1] + e[1], 16),
|
|
65
64
|
b: parseInt(e[2] + e[2], 16),
|
|
@@ -69,7 +68,7 @@ var F = (e) => de(I(e)), I = (e) => (e[0] === "#" && (e = e.substring(1)), e.len
|
|
|
69
68
|
g: parseInt(e.substring(2, 4), 16),
|
|
70
69
|
b: parseInt(e.substring(4, 6), 16),
|
|
71
70
|
a: e.length === 8 ? P(parseInt(e.substring(6, 8), 16) / 255, 2) : 1
|
|
72
|
-
}), L = (e) => ue(
|
|
71
|
+
}), L = (e) => de(ue(e)), R = ({ h: e, s: t, v: n, a: r }) => {
|
|
73
72
|
let i = (200 - t) * n / 100;
|
|
74
73
|
return {
|
|
75
74
|
h: P(e),
|
|
@@ -80,7 +79,7 @@ var F = (e) => de(I(e)), I = (e) => (e[0] === "#" && (e = e.substring(1)), e.len
|
|
|
80
79
|
}, z = (e) => {
|
|
81
80
|
let { h: t, s: n, l: r } = R(e);
|
|
82
81
|
return `hsl(${t}, ${n}%, ${r}%)`;
|
|
83
|
-
},
|
|
82
|
+
}, ue = ({ h: e, s: t, v: n, a: r }) => {
|
|
84
83
|
e = e / 360 * 6, t /= 100, n /= 100;
|
|
85
84
|
let i = Math.floor(e), a = n * (1 - t), o = n * (1 - (e - i) * t), s = n * (1 - (1 - e + i) * t), c = i % 6;
|
|
86
85
|
return {
|
|
@@ -113,10 +112,10 @@ var F = (e) => de(I(e)), I = (e) => (e[0] === "#" && (e = e.substring(1)), e.len
|
|
|
113
112
|
}, B = (e) => {
|
|
114
113
|
let t = e.toString(16);
|
|
115
114
|
return t.length < 2 ? "0" + t : t;
|
|
116
|
-
},
|
|
115
|
+
}, de = ({ r: e, g: t, b: n, a: r }) => {
|
|
117
116
|
let i = r < 1 ? B(P(r * 255)) : "";
|
|
118
117
|
return "#" + B(e) + B(t) + B(n) + i;
|
|
119
|
-
},
|
|
118
|
+
}, fe = ({ r: e, g: t, b: n, a: r }) => {
|
|
120
119
|
let i = Math.max(e, t, n), a = i - Math.min(e, t, n), o = a ? i === e ? (t - n) / a : i === t ? 2 + (n - e) / a : 4 + (e - t) / a : 0;
|
|
121
120
|
return {
|
|
122
121
|
h: P(60 * (o < 0 ? o + 6 : o)),
|
|
@@ -128,7 +127,7 @@ var F = (e) => de(I(e)), I = (e) => (e[0] === "#" && (e = e.substring(1)), e.len
|
|
|
128
127
|
if (e === t) return !0;
|
|
129
128
|
for (let n in e) if (e[n] !== t[n]) return !1;
|
|
130
129
|
return !0;
|
|
131
|
-
},
|
|
130
|
+
}, pe = (e, t) => e.toLowerCase() === t.toLowerCase() || V(I(e), I(t)), H = {}, U = (e) => {
|
|
132
131
|
let t = H[e];
|
|
133
132
|
return t || (t = document.createElement("template"), t.innerHTML = e, H[e] = t), t;
|
|
134
133
|
}, W = (e, t, n) => {
|
|
@@ -136,13 +135,13 @@ var F = (e) => de(I(e)), I = (e) => (e[0] === "#" && (e = e.substring(1)), e.len
|
|
|
136
135
|
bubbles: !0,
|
|
137
136
|
detail: n
|
|
138
137
|
}));
|
|
139
|
-
}, G = !1, K = (e) => "touches" in e,
|
|
138
|
+
}, G = !1, K = (e) => "touches" in e, me = (e) => G && !K(e) ? !1 : (G ||= K(e), !0), q = (e, t) => {
|
|
140
139
|
let n = K(t) ? t.touches[0] : t, r = e.el.getBoundingClientRect();
|
|
141
140
|
W(e.el, "move", e.getMove({
|
|
142
141
|
x: N((n.pageX - (r.left + window.pageXOffset)) / r.width),
|
|
143
142
|
y: N((n.pageY - (r.top + window.pageYOffset)) / r.height)
|
|
144
143
|
}));
|
|
145
|
-
},
|
|
144
|
+
}, he = (e, t) => {
|
|
146
145
|
let n = t.keyCode;
|
|
147
146
|
n > 40 || e.xy && n < 37 || n < 33 || (t.preventDefault(), W(e.el, "move", e.getMove({
|
|
148
147
|
x: n === 39 ? .01 : n === 37 ? -.01 : n === 34 ? .05 : n === 33 ? -.05 : n === 35 ? 1 : n === 36 ? -1 : 0,
|
|
@@ -163,7 +162,7 @@ var F = (e) => de(I(e)), I = (e) => (e[0] === "#" && (e = e.substring(1)), e.len
|
|
|
163
162
|
switch (e.type) {
|
|
164
163
|
case "mousedown":
|
|
165
164
|
case "touchstart":
|
|
166
|
-
if (e.preventDefault(), !
|
|
165
|
+
if (e.preventDefault(), !me(e) || !G && e.button != 0) return;
|
|
167
166
|
this.el.focus(), q(this, e), this.dragging = !0;
|
|
168
167
|
break;
|
|
169
168
|
case "mousemove":
|
|
@@ -175,7 +174,7 @@ var F = (e) => de(I(e)), I = (e) => (e[0] === "#" && (e = e.substring(1)), e.len
|
|
|
175
174
|
this.dragging = !1;
|
|
176
175
|
break;
|
|
177
176
|
case "keydown":
|
|
178
|
-
|
|
177
|
+
he(this, e);
|
|
179
178
|
break;
|
|
180
179
|
}
|
|
181
180
|
}
|
|
@@ -184,7 +183,7 @@ var F = (e) => de(I(e)), I = (e) => (e[0] === "#" && (e = e.substring(1)), e.len
|
|
|
184
183
|
for (let n in e) this.nodes[t].style.setProperty(n, e[n]);
|
|
185
184
|
});
|
|
186
185
|
}
|
|
187
|
-
},
|
|
186
|
+
}, ge = class extends J {
|
|
188
187
|
constructor(e) {
|
|
189
188
|
super(e, "hue", "aria-label=\"Hue\" aria-valuemin=\"0\" aria-valuemax=\"360\"", !1);
|
|
190
189
|
}
|
|
@@ -202,7 +201,7 @@ var F = (e) => de(I(e)), I = (e) => (e[0] === "#" && (e = e.substring(1)), e.len
|
|
|
202
201
|
getMove(e, t) {
|
|
203
202
|
return { h: t ? N(this.h + e.x * 360, 0, 360) : 360 * e.x };
|
|
204
203
|
}
|
|
205
|
-
},
|
|
204
|
+
}, _e = class extends J {
|
|
206
205
|
constructor(e) {
|
|
207
206
|
super(e, "saturation", "aria-label=\"Color\"", !0);
|
|
208
207
|
}
|
|
@@ -224,19 +223,19 @@ var F = (e) => de(I(e)), I = (e) => (e[0] === "#" && (e = e.substring(1)), e.len
|
|
|
224
223
|
v: t ? N(this.hsva.v - e.y * 100, 0, 100) : Math.round(100 - e.y * 100)
|
|
225
224
|
};
|
|
226
225
|
}
|
|
227
|
-
},
|
|
226
|
+
}, ve = ":host{display:flex;flex-direction:column;position:relative;width:200px;height:200px;user-select:none;-webkit-user-select:none;cursor:default}:host([hidden]){display:none!important}[role=slider]{position:relative;touch-action:none;user-select:none;-webkit-user-select:none;outline:0}[role=slider]:last-child{border-radius:0 0 8px 8px}[part$=pointer]{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;display:flex;place-content:center center;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}[part$=pointer]::after{content:\"\";width:100%;height:100%;border-radius:inherit;background-color:currentColor}[role=slider]:focus [part$=pointer]{transform:translate(-50%,-50%) scale(1.1)}", ye = "[part=hue]{flex:0 0 24px;background:linear-gradient(to right,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%)}[part=hue-pointer]{top:50%;z-index:2}", be = "[part=saturation]{flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(to top,#000,transparent),linear-gradient(to right,#fff,rgba(255,255,255,0));box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}[part=saturation-pointer]{z-index:3}", Y = Symbol("same"), X = Symbol("color"), Z = Symbol("hsva"), Q = Symbol("update"), xe = Symbol("parts"), Se = Symbol("css"), $ = Symbol("sliders"), Ce = class extends HTMLElement {
|
|
228
227
|
static get observedAttributes() {
|
|
229
228
|
return ["color"];
|
|
230
229
|
}
|
|
231
|
-
get [
|
|
230
|
+
get [Se]() {
|
|
232
231
|
return [
|
|
233
|
-
_e,
|
|
234
232
|
ve,
|
|
235
|
-
ye
|
|
233
|
+
ye,
|
|
234
|
+
be
|
|
236
235
|
];
|
|
237
236
|
}
|
|
238
|
-
get [
|
|
239
|
-
return [
|
|
237
|
+
get [$]() {
|
|
238
|
+
return [_e, ge];
|
|
240
239
|
}
|
|
241
240
|
get color() {
|
|
242
241
|
return this[X];
|
|
@@ -249,8 +248,8 @@ var F = (e) => de(I(e)), I = (e) => (e[0] === "#" && (e = e.substring(1)), e.len
|
|
|
249
248
|
}
|
|
250
249
|
constructor() {
|
|
251
250
|
super();
|
|
252
|
-
let e = U(`<style>${this[
|
|
253
|
-
t.appendChild(e.content.cloneNode(!0)), t.addEventListener("move", this), this[
|
|
251
|
+
let e = U(`<style>${this[Se].join("")}</style>`), t = this.attachShadow({ mode: "open" });
|
|
252
|
+
t.appendChild(e.content.cloneNode(!0)), t.addEventListener("move", this), this[xe] = this[$].map((e) => new e(t));
|
|
254
253
|
}
|
|
255
254
|
connectedCallback() {
|
|
256
255
|
if (this.hasOwnProperty("color")) {
|
|
@@ -275,9 +274,9 @@ var F = (e) => de(I(e)), I = (e) => (e[0] === "#" && (e = e.substring(1)), e.len
|
|
|
275
274
|
return this.color && this.colorModel.equal(e, this.color);
|
|
276
275
|
}
|
|
277
276
|
[Q](e) {
|
|
278
|
-
this[Z] = e, this[
|
|
277
|
+
this[Z] = e, this[xe].forEach((t) => t.update(e));
|
|
279
278
|
}
|
|
280
|
-
},
|
|
279
|
+
}, we = {
|
|
281
280
|
defaultColor: "#000",
|
|
282
281
|
toHsva: F,
|
|
283
282
|
fromHsva: ({ h: e, s: t, v: n }) => L({
|
|
@@ -286,38 +285,38 @@ var F = (e) => de(I(e)), I = (e) => (e[0] === "#" && (e = e.substring(1)), e.len
|
|
|
286
285
|
v: n,
|
|
287
286
|
a: 1
|
|
288
287
|
}),
|
|
289
|
-
equal:
|
|
288
|
+
equal: pe,
|
|
290
289
|
fromAttr: (e) => e
|
|
291
|
-
},
|
|
290
|
+
}, Te = class extends Ce {
|
|
292
291
|
get colorModel() {
|
|
293
|
-
return
|
|
292
|
+
return we;
|
|
294
293
|
}
|
|
295
|
-
},
|
|
296
|
-
customElements.define("hex-color-picker",
|
|
294
|
+
}, Ee = class extends Te {};
|
|
295
|
+
customElements.define("hex-color-picker", Ee);
|
|
297
296
|
//#endregion
|
|
298
297
|
//#region src/components/ColorPicker.vue?vue&type=script&setup=true&lang.ts
|
|
299
|
-
var
|
|
298
|
+
var De = [
|
|
300
299
|
"disabled",
|
|
301
300
|
"aria-label",
|
|
302
301
|
"title",
|
|
303
302
|
"aria-expanded"
|
|
304
|
-
],
|
|
303
|
+
], Oe = {
|
|
305
304
|
key: 0,
|
|
306
305
|
class: "tpl:relative tpl:flex-1"
|
|
307
|
-
},
|
|
306
|
+
}, ke = [
|
|
308
307
|
"value",
|
|
309
308
|
"placeholder",
|
|
310
309
|
"disabled",
|
|
311
310
|
"aria-label"
|
|
312
|
-
],
|
|
311
|
+
], Ae = ["aria-label", "title"], je = ["data-tpl-theme"], Me = ["color", "aria-label"], Ne = {
|
|
313
312
|
key: 0,
|
|
314
313
|
class: "tpl:relative tpl:mt-2"
|
|
315
|
-
},
|
|
314
|
+
}, Pe = [
|
|
316
315
|
"value",
|
|
317
316
|
"placeholder",
|
|
318
317
|
"disabled",
|
|
319
318
|
"aria-label"
|
|
320
|
-
],
|
|
319
|
+
], Fe = ["aria-label", "title"], Ie = /* @__PURE__ */ a({
|
|
321
320
|
__name: "ColorPicker",
|
|
322
321
|
props: {
|
|
323
322
|
modelValue: {},
|
|
@@ -336,7 +335,7 @@ var Ee = [
|
|
|
336
335
|
},
|
|
337
336
|
emits: ["update:modelValue"],
|
|
338
337
|
setup(a, { emit: g }) {
|
|
339
|
-
let _ = a, v = g, { t: y } =
|
|
338
|
+
let _ = a, v = g, { t: y } = le(), x = i(!1), S = i(), C = i(), w = i(!1);
|
|
340
339
|
ie(S, () => {
|
|
341
340
|
x.value = !1;
|
|
342
341
|
}, { ignore: [C] });
|
|
@@ -356,20 +355,20 @@ var Ee = [
|
|
|
356
355
|
function N() {
|
|
357
356
|
v("update:modelValue", "");
|
|
358
357
|
}
|
|
359
|
-
let P =
|
|
358
|
+
let P = ae(), { toLocal: F } = oe(), I = f(ce, null), L = f(se, null), R = i({
|
|
360
359
|
top: 0,
|
|
361
360
|
left: 0
|
|
362
361
|
});
|
|
363
|
-
function
|
|
362
|
+
function z() {
|
|
364
363
|
if (!_.disabled) {
|
|
365
364
|
if (!x.value) {
|
|
366
365
|
let e = C.value?.getBoundingClientRect();
|
|
367
366
|
if (e) {
|
|
368
|
-
let t = e.bottom + 8 + 240 <= window.innerHeight;
|
|
369
|
-
|
|
370
|
-
top: t
|
|
367
|
+
let t = e.bottom + 8 + 240 <= window.innerHeight ? e.bottom + 8 : Math.max(8, e.top - 240 - 8);
|
|
368
|
+
R.value = F({
|
|
369
|
+
top: t,
|
|
371
370
|
left: e.left
|
|
372
|
-
};
|
|
371
|
+
});
|
|
373
372
|
}
|
|
374
373
|
}
|
|
375
374
|
x.value = !x.value;
|
|
@@ -390,12 +389,12 @@ var Ee = [
|
|
|
390
389
|
x.value ? "tpl:border-[var(--tpl-primary)] tpl:shadow-[var(--tpl-ring)]" : !a.disabled && "hover:tpl:border-[var(--tpl-text-dim)]",
|
|
391
390
|
a.size === "sm" ? "tpl:size-8" : "tpl:size-10"
|
|
392
391
|
]),
|
|
393
|
-
onClick:
|
|
392
|
+
onClick: z
|
|
394
393
|
}, [o("span", {
|
|
395
394
|
class: t(["tpl:block tpl:size-full tpl:rounded-[calc(var(--tpl-radius-sm)-2px)]", { "tpl-color-swatch-empty": T.value }]),
|
|
396
395
|
style: e(T.value ? void 0 : { backgroundColor: E.value })
|
|
397
|
-
}, null, 6)], 10,
|
|
398
|
-
a.swatchOnly ? d("", !0) : (n(), s("div",
|
|
396
|
+
}, null, 6)], 10, De),
|
|
397
|
+
a.swatchOnly ? d("", !0) : (n(), s("div", Oe, [o("input", {
|
|
399
398
|
type: "text",
|
|
400
399
|
class: t([l(b), "tpl:w-full"]),
|
|
401
400
|
style: e(O.value ? { paddingRight: "2.25rem" } : void 0),
|
|
@@ -404,7 +403,7 @@ var Ee = [
|
|
|
404
403
|
disabled: a.disabled,
|
|
405
404
|
"aria-label": l(y).colorPicker.hexValue,
|
|
406
405
|
onInput: M
|
|
407
|
-
}, null, 46,
|
|
406
|
+
}, null, 46, ke), O.value ? (n(), s("button", {
|
|
408
407
|
key: 0,
|
|
409
408
|
type: "button",
|
|
410
409
|
"aria-label": l(y).colorPicker.clear,
|
|
@@ -414,7 +413,7 @@ var Ee = [
|
|
|
414
413
|
}, [c(l(h), {
|
|
415
414
|
size: 14,
|
|
416
415
|
"stroke-width": 1.5
|
|
417
|
-
})], 8,
|
|
416
|
+
})], 8, Ae)) : d("", !0)])),
|
|
418
417
|
(n(), te(ee, {
|
|
419
418
|
to: l(P),
|
|
420
419
|
disabled: !l(P)
|
|
@@ -430,12 +429,12 @@ var Ee = [
|
|
|
430
429
|
key: 0,
|
|
431
430
|
ref_key: "popoverRef",
|
|
432
431
|
ref: S,
|
|
433
|
-
"data-tpl-theme": l(
|
|
434
|
-
class: "tpl-color-popover tpl:
|
|
432
|
+
"data-tpl-theme": l(L),
|
|
433
|
+
class: "tpl-color-popover tpl:absolute tpl:z-modal tpl:rounded-[var(--tpl-radius)] tpl:border tpl:border-[var(--tpl-border)] tpl:bg-[var(--tpl-bg-elevated)] tpl:p-3 tpl:shadow-lg",
|
|
435
434
|
style: e({
|
|
436
|
-
top: `${
|
|
437
|
-
left: `${
|
|
438
|
-
...l(
|
|
435
|
+
top: `${R.value.top}px`,
|
|
436
|
+
left: `${R.value.left}px`,
|
|
437
|
+
...l(I)
|
|
439
438
|
})
|
|
440
439
|
}, [o("hex-color-picker", {
|
|
441
440
|
color: D.value,
|
|
@@ -444,7 +443,7 @@ var Ee = [
|
|
|
444
443
|
onPointerdown: A,
|
|
445
444
|
onPointerup: j,
|
|
446
445
|
onKeydown: u[0] ||= p((e) => x.value = !1, ["escape"])
|
|
447
|
-
}, null, 40,
|
|
446
|
+
}, null, 40, Me), a.swatchOnly ? (n(), s("div", Ne, [o("input", {
|
|
448
447
|
type: "text",
|
|
449
448
|
class: t([l(b), "tpl:w-full"]),
|
|
450
449
|
style: e(O.value ? { paddingRight: "2.25rem" } : void 0),
|
|
@@ -454,7 +453,7 @@ var Ee = [
|
|
|
454
453
|
"aria-label": l(y).colorPicker.hexValue,
|
|
455
454
|
onChange: M,
|
|
456
455
|
onKeydown: u[1] ||= p(ne((e) => e.target.blur(), ["prevent"]), ["enter"])
|
|
457
|
-
}, null, 46,
|
|
456
|
+
}, null, 46, Pe), O.value ? (n(), s("button", {
|
|
458
457
|
key: 0,
|
|
459
458
|
type: "button",
|
|
460
459
|
"aria-label": l(y).colorPicker.clear,
|
|
@@ -464,11 +463,11 @@ var Ee = [
|
|
|
464
463
|
}, [c(l(h), {
|
|
465
464
|
size: 14,
|
|
466
465
|
"stroke-width": 1.5
|
|
467
|
-
})], 8,
|
|
466
|
+
})], 8, Fe)) : d("", !0)])) : d("", !0)], 12, je)) : d("", !0)]),
|
|
468
467
|
_: 1
|
|
469
468
|
})], 8, ["to", "disabled"]))
|
|
470
469
|
], 2));
|
|
471
470
|
}
|
|
472
471
|
});
|
|
473
472
|
//#endregion
|
|
474
|
-
export { S as _, k as a, D as c, T as d, _ as f, w as g, g as h, M as i, C as l, y as m, A as n, E as o, v as p, j as r, O as s,
|
|
473
|
+
export { S as _, k as a, D as c, T as d, _ as f, w as g, g as h, M as i, C as l, y as m, A as n, E as o, v as p, j as r, O as s, Ie as t, x as u };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { A as e, Et as t, O as n, Ot as r, R as i, _ as a, c as o, d as s, h as c, l, nt as u, r as d, s as f } from "./vue.runtime.esm-bundler-B0xoGkDv.js";
|
|
2
2
|
import { t as p } from "./useI18n-eR1yVW0v.js";
|
|
3
|
-
import { f as m, t as h } from "./ColorPicker-
|
|
3
|
+
import { f as m, t as h } from "./ColorPicker-CppJgX_T.js";
|
|
4
4
|
import { t as g } from "./ToggleSwitch-DUNuUPsZ.js";
|
|
5
|
-
import { n as _, r as v, t as y } from "./NumberWithSuffix-
|
|
5
|
+
import { n as _, r as v, t as y } from "./NumberWithSuffix-DNi-v4l1.js";
|
|
6
6
|
//#region src/components/toolbar/CountdownToolbar.vue?vue&type=script&setup=true&lang.ts
|
|
7
7
|
var b = ["value"], x = ["value"], S = ["value"], C = { class: "tpl:grid tpl:grid-cols-2 tpl:gap-2" }, w = ["value"], T = { value: "" }, E = ["value"], D = { class: "tpl:grid tpl:grid-cols-2 tpl:gap-3" }, O = { class: "tpl:grid tpl:grid-cols-2 tpl:gap-3" }, k = { class: "tpl:grid tpl:grid-cols-2 tpl:gap-2" }, A = [
|
|
8
8
|
"value",
|
|
@@ -1202,11 +1202,13 @@ function kt(e, t) {
|
|
|
1202
1202
|
}
|
|
1203
1203
|
function b(e) {
|
|
1204
1204
|
if (!r || !e || e.bottom < 0 || e.top > window.innerHeight) return;
|
|
1205
|
-
r.style.position = "
|
|
1206
|
-
let t = r.
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1205
|
+
r.style.position = "absolute", r.style.zIndex = "9999";
|
|
1206
|
+
let t = r.offsetParent?.getBoundingClientRect(), n = t?.top ?? 0, i = t?.left ?? 0;
|
|
1207
|
+
r.style.left = `${e.left - i}px`, r.style.top = `${e.bottom - n}px`;
|
|
1208
|
+
let a = r.offsetHeight;
|
|
1209
|
+
if (a !== 0 && window.innerHeight - e.bottom < a) {
|
|
1210
|
+
let t = Math.max(0, e.top - a);
|
|
1211
|
+
r.style.top = `${t - n}px`;
|
|
1210
1212
|
}
|
|
1211
1213
|
}
|
|
1212
1214
|
function x(e, t) {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { A as e, Dt as t, I as n, N as r, O as i, Ot as a, R as o, Y as s, _ as c, c as l, d as u, g as ee, h as d, l as f, nt as p, r as m, s as h, u as te, z as g } from "./vue.runtime.esm-bundler-B0xoGkDv.js";
|
|
2
2
|
import { a as ne, c as _, i as re } from "./runtime-dom.esm-bundler-GdMI8WqG.js";
|
|
3
|
-
import "./useEditorCore-
|
|
3
|
+
import "./useEditorCore-DnOG2a_b.js";
|
|
4
4
|
import { L as v, j as ie, m as ae } from "./keys-BbDgCU6K.js";
|
|
5
5
|
import { t as oe } from "./useI18n-eR1yVW0v.js";
|
|
6
|
-
import { n as se, r as y, t as b } from "./blockTypeIcons-
|
|
6
|
+
import { n as se, r as y, t as b } from "./blockTypeIcons-BVIEw0XJ.js";
|
|
7
7
|
import { t as ce } from "./trash-2-CRBDolnR.js";
|
|
8
8
|
import { t as le } from "./x-Ctg_250T.js";
|
|
9
9
|
import { n as ue } from "./useCloudI18n-WbfVWq5k.js";
|
|
10
|
-
import { t as de } from "./TplModal-
|
|
10
|
+
import { t as de } from "./TplModal-BXnx3sLr.js";
|
|
11
11
|
//#region src/cloud/components/ModuleBrowserModal.vue?vue&type=script&setup=true&lang.ts
|
|
12
12
|
var fe = {
|
|
13
13
|
role: "dialog",
|
|
@@ -46,7 +46,7 @@ var fe = {
|
|
|
46
46
|
props: { visible: { type: Boolean } },
|
|
47
47
|
emits: ["close", "insert"],
|
|
48
48
|
setup(c, { emit: B }) {
|
|
49
|
-
let Te = c, V = B, Ee = ee(() => import("./ModulePreviewCanvas-
|
|
49
|
+
let Te = c, V = B, Ee = ee(() => import("./ModulePreviewCanvas-CJC9kyZN.js")), { t: De } = oe(), { t: H } = ue(), U = v(ie, "ModuleBrowserModal"), W = v(ae, "ModuleBrowserModal"), G = s(""), K = s(null), q = s(null), J = s("end"), Y = h(() => {
|
|
50
50
|
let e = U.modules.value;
|
|
51
51
|
if (!G.value) return e;
|
|
52
52
|
let t = G.value.toLowerCase();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { A as e, Dt as t, M as n, N as r, O as i, _ as a, c as o, d as s, l as c, nt as l, r as u, s as d, x as f } from "./vue.runtime.esm-bundler-B0xoGkDv.js";
|
|
2
|
-
import { I as p, _ as m, a as h, d as g, f as _, h as v, i as y, l as b, m as x, n as S, p as C, r as w, v as T, y as E } from "./useEditorCore-
|
|
2
|
+
import { I as p, _ as m, a as h, d as g, f as _, h as v, i as y, l as b, m as x, n as S, p as C, r as w, v as T, y as E } from "./useEditorCore-DnOG2a_b.js";
|
|
3
3
|
import { o as D } from "./keys-BbDgCU6K.js";
|
|
4
4
|
//#region src/components/blocks/PreviewSectionBlock.vue?vue&type=script&setup=true&lang.ts
|
|
5
5
|
var O = { class: "tpl:w-full" }, k = { class: "tpl:flex tpl:gap-0" }, A = /* @__PURE__ */ a({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { A as e, Dt as t, Et as n, N as r, O as i, Ot as a, _ as o, c as s, d as c, j as l, l as u, nt as d, r as f, s as p, u as m } from "./vue.runtime.esm-bundler-B0xoGkDv.js";
|
|
2
|
-
import { h, m as g, p as _ } from "./ColorPicker-
|
|
2
|
+
import { h, m as g, p as _ } from "./ColorPicker-CppJgX_T.js";
|
|
3
3
|
//#region src/components/SlidingPillSelect.vue?vue&type=script&setup=true&lang.ts
|
|
4
4
|
var v = [
|
|
5
5
|
"aria-checked",
|