@templatical/editor 0.6.6 → 0.6.7
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/bundle-stats.json +7 -7
- package/dist/cdn/chunks/{AccessibilityPanel-AQD2ygU6.js → AccessibilityPanel-DnNB30b0.js} +3 -3
- package/dist/cdn/chunks/{AccessibilityPanel-AQD2ygU6.js.map → AccessibilityPanel-DnNB30b0.js.map} +1 -1
- package/dist/cdn/chunks/{AiFeatureMenu-CDh9ifC8.js → AiFeatureMenu-BKBh_ueF.js} +2 -2
- package/dist/cdn/chunks/{AiFeatureMenu-CDh9ifC8.js.map → AiFeatureMenu-BKBh_ueF.js.map} +1 -1
- package/dist/cdn/chunks/{BlockA11yBadge-BxZr3s7T.js → BlockA11yBadge-CnBu14Fj.js} +2 -2
- package/dist/cdn/chunks/{BlockA11yBadge-BxZr3s7T.js.map → BlockA11yBadge-CnBu14Fj.js.map} +1 -1
- package/dist/cdn/chunks/{CloudEditor-Fg7pQ9IQ.js → CloudEditor-CmR17piA.js} +7 -7
- package/dist/cdn/chunks/{CloudEditor-Fg7pQ9IQ.js.map → CloudEditor-CmR17piA.js.map} +1 -1
- package/dist/cdn/chunks/{CollaboratorBar-B5a8eBXN.js → CollaboratorBar-BejZaFtY.js} +3 -3
- package/dist/cdn/chunks/{CollaboratorBar-B5a8eBXN.js.map → CollaboratorBar-BejZaFtY.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownBlock-BeHkO19t.js → CountdownBlock-CjvUEHhE.js} +2 -2
- package/dist/cdn/chunks/{CountdownBlock-BeHkO19t.js.map → CountdownBlock-CjvUEHhE.js.map} +1 -1
- package/dist/cdn/chunks/{CountdownToolbar-8UfW0jb1.js → CountdownToolbar-Caokkqsg.js} +3 -3
- package/dist/cdn/chunks/{CountdownToolbar-8UfW0jb1.js.map → CountdownToolbar-Caokkqsg.js.map} +1 -1
- package/dist/cdn/chunks/{ModuleBrowserModal-BMUyAmmj.js → ModuleBrowserModal-Tb9a7L-K.js} +5 -5
- package/dist/cdn/chunks/{ModuleBrowserModal-BMUyAmmj.js.map → ModuleBrowserModal-Tb9a7L-K.js.map} +1 -1
- package/dist/cdn/chunks/{ModulePreviewCanvas-CxSc7Pvd.js → ModulePreviewCanvas-JWIEv5oS.js} +2 -2
- package/dist/cdn/chunks/{ModulePreviewCanvas-CxSc7Pvd.js.map → ModulePreviewCanvas-JWIEv5oS.js.map} +1 -1
- package/dist/cdn/chunks/{NumberWithSuffix-BSOUOUCL.js → NumberWithSuffix-DrV8eumz.js} +2 -2
- package/dist/cdn/chunks/{NumberWithSuffix-BSOUOUCL.js.map → NumberWithSuffix-DrV8eumz.js.map} +1 -1
- package/dist/cdn/chunks/{ParagraphEditor-S1bpgxe5.js → ParagraphEditor-CSfShBAO.js} +5 -5
- package/dist/cdn/chunks/{ParagraphEditor-S1bpgxe5.js.map → ParagraphEditor-CSfShBAO.js.map} +1 -1
- package/dist/cdn/chunks/{RichTextEditorContent-ByehRfEA.js → RichTextEditorContent-DgqZzl8n.js} +2 -2
- package/dist/cdn/chunks/{RichTextEditorContent-ByehRfEA.js.map → RichTextEditorContent-DgqZzl8n.js.map} +1 -1
- package/dist/cdn/chunks/{SaveModuleDialog-5CNMvgYL.js → SaveModuleDialog-CxTwrIgx.js} +2 -2
- package/dist/cdn/chunks/{SaveModuleDialog-5CNMvgYL.js.map → SaveModuleDialog-CxTwrIgx.js.map} +1 -1
- package/dist/cdn/chunks/{TitleEditor-BASWPsCM.js → TitleEditor-DlqV7ODD.js} +5 -5
- package/dist/cdn/chunks/{TitleEditor-BASWPsCM.js.map → TitleEditor-DlqV7ODD.js.map} +1 -1
- package/dist/cdn/chunks/{blockTypeIcons-DfOffaYP.js → blockTypeIcons-DMt-2qR6.js} +3 -3
- package/dist/cdn/chunks/{blockTypeIcons-DfOffaYP.js.map → blockTypeIcons-DMt-2qR6.js.map} +1 -1
- package/dist/cdn/chunks/{de-D8CnZxV9.js → de-B_6zGPbx.js} +1 -1
- package/dist/cdn/chunks/{de-D8CnZxV9.js.map → de-B_6zGPbx.js.map} +1 -1
- package/dist/cdn/chunks/{de-Ce-LbJ2J.js → de-DG1WWVXM.js} +1 -1
- package/dist/cdn/chunks/{de-Ce-LbJ2J.js.map → de-DG1WWVXM.js.map} +1 -1
- package/dist/cdn/chunks/{en-DiCWK5fG.js → en-BE6OV83-.js} +1 -1
- package/dist/cdn/chunks/{en-DiCWK5fG.js.map → en-BE6OV83-.js.map} +1 -1
- package/dist/cdn/chunks/{en-8FHaQv4V.js → en-pYt1-lm4.js} +1 -1
- package/dist/cdn/chunks/{en-8FHaQv4V.js.map → en-pYt1-lm4.js.map} +1 -1
- package/dist/cdn/chunks/{extensions-BJOV1jre.js → extensions-CUvwrffu.js} +2 -2
- package/dist/cdn/chunks/{extensions-BJOV1jre.js.map → extensions-CUvwrffu.js.map} +1 -1
- package/dist/cdn/chunks/{features-D6FoOm8v.js → features-U3nzKc-R.js} +6 -6
- package/dist/cdn/chunks/{features-D6FoOm8v.js.map → features-U3nzKc-R.js.map} +1 -1
- package/dist/cdn/chunks/{icons-CpsjWPU-.js → icons-QcjADKIW.js} +2 -2
- package/dist/cdn/chunks/{icons-CpsjWPU-.js.map → icons-QcjADKIW.js.map} +1 -1
- package/dist/cdn/chunks/{media-library-CEd7Lqxk.js → media-library-Zcd_GInj.js} +3 -3
- package/dist/cdn/chunks/{media-library-CEd7Lqxk.js.map → media-library-Zcd_GInj.js.map} +1 -1
- package/dist/cdn/chunks/pt-BR-BYRTP5Ww.js +89 -0
- package/dist/cdn/chunks/pt-BR-BYRTP5Ww.js.map +1 -0
- package/dist/cdn/chunks/pt-BR-CQl2JxRp.js +209 -0
- package/dist/cdn/chunks/pt-BR-CQl2JxRp.js.map +1 -0
- package/dist/cdn/chunks/pt-BR-CtDwVsN-.js +523 -0
- package/dist/cdn/chunks/pt-BR-CtDwVsN-.js.map +1 -0
- package/dist/cdn/chunks/{quality-Bx1oORXQ.js → quality-8eo6DM3p.js} +2 -2
- package/dist/cdn/chunks/{quality-Bx1oORXQ.js.map → quality-8eo6DM3p.js.map} +1 -1
- package/dist/cdn/chunks/{renderer-CwxCisa-.js → renderer-eHJyPiJH.js} +2 -2
- package/dist/cdn/chunks/{renderer-CwxCisa-.js.map → renderer-eHJyPiJH.js.map} +1 -1
- package/dist/cdn/chunks/{src-DDSInEkE.js → src-CthVYW_o.js} +178 -163
- package/dist/cdn/chunks/{src-DDSInEkE.js.map → src-CthVYW_o.js.map} +1 -1
- package/dist/cdn/chunks/{styles-B1uu-Cc9.js → styles-CV5w3kjq.js} +8 -8
- package/dist/cdn/chunks/{styles-B1uu-Cc9.js.map → styles-CV5w3kjq.js.map} +1 -1
- package/dist/cdn/editor.js +102 -79
- package/dist/cdn/editor.js.map +1 -1
- package/dist/index.d.ts +29 -11
- package/dist/pt-BR-BMGasLBa.js +521 -0
- package/dist/pt-BR-Vq7D7c11.js +207 -0
- package/dist/templatical-editor.js +105 -82
- package/package.json +7 -7
- /package/dist/{de-Brqvgr43.js → de-DcVOh9Fp.js} +0 -0
- /package/dist/{en-WDVp87TE.js → en-TZVJ_f6v.js} +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { A as e, C as t, M as n, N as r, P as i, V as a, Z as o, at as s, f as c, g as l, h as u, l as ee, m as d, n as f, ot as p, p as m, r as h, rt as g, st as _, u as v, v as y, x as b, y as x } from "./draggable-CNhyCGIO.js";
|
|
2
|
-
import { O as S, Ot as C, St as te, w } from "./features-
|
|
3
|
-
import { A as ne, B as re, R as ie, W as ae, b as oe } from "./icons-
|
|
4
|
-
import { a as se, c as ce, d as le, f as ue, h as
|
|
2
|
+
import { O as S, Ot as C, St as te, w } from "./features-U3nzKc-R.js";
|
|
3
|
+
import { A as ne, B as re, R as ie, W as ae, b as oe } from "./icons-QcjADKIW.js";
|
|
4
|
+
import { a as se, c as ce, d as le, f as ue, h as de, i as fe, l as T, n as E, o as D, p as O, r as k, s as A, t as j, u as M } from "./media-library-Zcd_GInj.js";
|
|
5
5
|
//#region ../media-library/src/standalone/MediaLibrary.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
-
var
|
|
6
|
+
var N = {
|
|
7
7
|
class: "tpl tpl:flex tpl:flex-col tpl:overflow-hidden tpl:rounded-[var(--tpl-radius-lg)]",
|
|
8
8
|
style: {
|
|
9
9
|
width: "100%",
|
|
@@ -11,62 +11,62 @@ var F = {
|
|
|
11
11
|
"background-color": "var(--tpl-bg-elevated)",
|
|
12
12
|
border: "1px solid var(--tpl-border)"
|
|
13
13
|
}
|
|
14
|
-
},
|
|
14
|
+
}, P = {
|
|
15
15
|
class: "tpl:flex tpl:shrink-0 tpl:items-center tpl:justify-between tpl:border-b tpl:px-5 tpl:py-3.5",
|
|
16
16
|
style: { "border-color": "var(--tpl-border)" }
|
|
17
|
-
},
|
|
17
|
+
}, F = {
|
|
18
18
|
class: "tpl:text-sm tpl:font-semibold",
|
|
19
19
|
style: { color: "var(--tpl-text)" }
|
|
20
|
-
},
|
|
20
|
+
}, I = { class: "tpl:flex tpl:items-center tpl:gap-3" }, L = { class: "tpl:relative" }, R = ["value", "placeholder"], z = { class: "tpl:flex tpl:min-h-0 tpl:flex-1 tpl:overflow-hidden" }, B = {
|
|
21
21
|
key: 0,
|
|
22
22
|
class: "tpl:flex tpl:w-48 tpl:shrink-0 tpl:flex-col tpl:border-r",
|
|
23
23
|
style: {
|
|
24
24
|
"border-color": "var(--tpl-border)",
|
|
25
25
|
"background-color": "var(--tpl-bg)"
|
|
26
26
|
}
|
|
27
|
-
},
|
|
27
|
+
}, V = { class: "tpl:flex tpl:min-w-0 tpl:flex-1 tpl:flex-col" }, pe = {
|
|
28
28
|
class: "tpl:flex tpl:shrink-0 tpl:items-center tpl:justify-between tpl:border-b tpl:px-4 tpl:py-2.5",
|
|
29
29
|
style: { "border-color": "var(--tpl-border)" }
|
|
30
|
-
},
|
|
30
|
+
}, me = { class: "tpl:flex tpl:items-center tpl:gap-2" }, he = ["title"], ge = {
|
|
31
31
|
key: 1,
|
|
32
32
|
class: "tpl:text-xs tpl:font-medium",
|
|
33
33
|
style: { color: "var(--tpl-text)" }
|
|
34
|
-
},
|
|
34
|
+
}, _e = {
|
|
35
35
|
class: "tpl:flex tpl:rounded-md tpl:p-0.5",
|
|
36
36
|
style: {
|
|
37
37
|
border: "1px solid var(--tpl-border)",
|
|
38
38
|
"background-color": "var(--tpl-bg)"
|
|
39
39
|
}
|
|
40
|
-
},
|
|
40
|
+
}, ve = ["title"], ye = ["title"], be = { class: "tpl:flex tpl:items-center tpl:gap-2" }, xe = ["value"], Se = { value: "" }, Ce = ["value"], we = ["value"], Te = { value: "newest" }, Ee = { value: "oldest" }, De = { value: "name_asc" }, Oe = { value: "name_desc" }, ke = { value: "size_asc" }, Ae = { value: "size_desc" }, je = { class: "tpl:min-h-0 tpl:flex-1 tpl:overflow-y-auto" }, Me = {
|
|
41
41
|
key: 0,
|
|
42
42
|
class: "tpl:px-4 tpl:pt-3"
|
|
43
|
-
},
|
|
43
|
+
}, Ne = {
|
|
44
44
|
class: "tpl-scale-in tpl:mx-4 tpl:w-full tpl:max-w-sm tpl:rounded-[var(--tpl-radius-lg)] tpl:p-5",
|
|
45
45
|
style: {
|
|
46
46
|
"background-color": "var(--tpl-bg-elevated)",
|
|
47
47
|
"box-shadow": "var(--tpl-shadow-xl)"
|
|
48
48
|
}
|
|
49
|
-
},
|
|
49
|
+
}, Pe = {
|
|
50
50
|
class: "tpl:mb-2 tpl:text-sm tpl:font-semibold",
|
|
51
51
|
style: { color: "var(--tpl-text)" }
|
|
52
|
-
},
|
|
52
|
+
}, Fe = {
|
|
53
53
|
key: 0,
|
|
54
54
|
class: "tpl:mb-4 tpl:text-xs",
|
|
55
55
|
style: { color: "var(--tpl-text-muted)" }
|
|
56
|
-
},
|
|
56
|
+
}, Ie = {
|
|
57
57
|
key: 1,
|
|
58
58
|
class: "tpl:mb-4 tpl:max-h-32 tpl:overflow-y-auto tpl:rounded tpl:border tpl:p-2",
|
|
59
59
|
style: { "border-color": "var(--tpl-border)" }
|
|
60
|
-
},
|
|
60
|
+
}, Le = { class: "tpl:font-medium" }, Re = { style: { color: "var(--tpl-text-muted)" } }, ze = { class: "tpl:flex tpl:justify-end tpl:gap-2" }, Be = {
|
|
61
61
|
class: "tpl:flex tpl:shrink-0 tpl:items-center tpl:justify-between tpl:border-t tpl:px-5 tpl:py-3",
|
|
62
62
|
style: { "border-color": "var(--tpl-border)" }
|
|
63
|
-
},
|
|
63
|
+
}, Ve = { class: "tpl:flex tpl:min-w-0 tpl:flex-1 tpl:items-center tpl:gap-3" }, He = { class: "tpl:flex tpl:items-center tpl:gap-5" }, Ue = {
|
|
64
64
|
key: 0,
|
|
65
65
|
class: "tpl:flex tpl:items-center tpl:gap-2"
|
|
66
|
-
},
|
|
66
|
+
}, We = {
|
|
67
67
|
key: 1,
|
|
68
68
|
class: "tpl:relative"
|
|
69
|
-
},
|
|
69
|
+
}, Ge = { class: "tpl:flex tpl:items-center tpl:gap-2" }, H = ["disabled"], U = /* @__PURE__ */ b({
|
|
70
70
|
__name: "MediaLibrary",
|
|
71
71
|
props: {
|
|
72
72
|
authManager: {},
|
|
@@ -86,32 +86,32 @@ var F = {
|
|
|
86
86
|
features: c(() => b.planConfig.features),
|
|
87
87
|
fetchConfig: async () => {}
|
|
88
88
|
});
|
|
89
|
-
let
|
|
89
|
+
let j = c(() => b.planConfig.features.media_folders ?? !1), U = c(() => b.planConfig.features.import_from_url ?? !1), W = c(() => b.planConfig.storage.used_bytes ?? 0), G = c(() => b.planConfig.storage.limit_bytes ?? 0), { availableCategories: K } = ue(), q = de({
|
|
90
90
|
projectId: b.projectId,
|
|
91
91
|
authManager: b.authManager,
|
|
92
92
|
onError: b.onError
|
|
93
|
-
}),
|
|
94
|
-
library:
|
|
95
|
-
canUseMediaFolders:
|
|
93
|
+
}), J = E({
|
|
94
|
+
library: q,
|
|
95
|
+
canUseMediaFolders: j,
|
|
96
96
|
translations: w
|
|
97
97
|
});
|
|
98
|
-
function
|
|
99
|
-
if (!
|
|
100
|
-
let e =
|
|
98
|
+
function Y() {
|
|
99
|
+
if (!q.previewItem.value) return;
|
|
100
|
+
let e = q.previewItem.value;
|
|
101
101
|
b.onSelect?.({
|
|
102
102
|
...e,
|
|
103
|
-
url:
|
|
103
|
+
url: J.selectedUrl.value || e.url
|
|
104
104
|
});
|
|
105
105
|
}
|
|
106
106
|
return e(() => {
|
|
107
|
-
|
|
108
|
-
}), (e, r) => (n(), l("div",
|
|
109
|
-
m("div",
|
|
110
|
-
"used-bytes":
|
|
111
|
-
"limit-bytes":
|
|
107
|
+
q.loadItems(), q.loadFrequentlyUsed(), S("ready");
|
|
108
|
+
}), (e, r) => (n(), l("div", N, [
|
|
109
|
+
m("div", P, [m("h2", F, _(w.value.mediaLibrary.title), 1), m("div", I, [x(k, {
|
|
110
|
+
"used-bytes": W.value,
|
|
111
|
+
"limit-bytes": G.value,
|
|
112
112
|
size: 22
|
|
113
|
-
}, null, 8, ["used-bytes", "limit-bytes"]), m("div",
|
|
114
|
-
value: g(
|
|
113
|
+
}, null, 8, ["used-bytes", "limit-bytes"]), m("div", L, [m("input", {
|
|
114
|
+
value: g(J).searchInput.value,
|
|
115
115
|
type: "text",
|
|
116
116
|
class: "tpl:w-52 tpl:rounded-md tpl:border tpl:py-1.5 tpl:pr-3 tpl:pl-8 tpl:text-xs tpl:shadow-xs tpl:transition-all tpl:duration-150 tpl:outline-none tpl:focus:shadow-[var(--tpl-ring)]",
|
|
117
117
|
style: {
|
|
@@ -120,14 +120,14 @@ var F = {
|
|
|
120
120
|
color: "var(--tpl-text)"
|
|
121
121
|
},
|
|
122
122
|
placeholder: w.value.mediaLibrary.searchPlaceholder,
|
|
123
|
-
onInput: r[0] ||= (e) => g(
|
|
124
|
-
}, null, 40,
|
|
123
|
+
onInput: r[0] ||= (e) => g(J).handleSearchInput(e.target.value)
|
|
124
|
+
}, null, 40, R), x(g(oe), {
|
|
125
125
|
class: "tpl:absolute tpl:top-1/2 tpl:left-2.5 tpl:-translate-y-1/2",
|
|
126
126
|
size: 13,
|
|
127
127
|
"stroke-width": 2,
|
|
128
128
|
style: { color: "var(--tpl-text-dim)" }
|
|
129
129
|
})])])]),
|
|
130
|
-
m("div",
|
|
130
|
+
m("div", z, [x(f, {
|
|
131
131
|
"enter-active-class": "tpl:transition-all tpl:duration-200 tpl:ease-out",
|
|
132
132
|
"enter-from-class": "tpl:-ml-48 tpl:opacity-0",
|
|
133
133
|
"enter-to-class": "tpl:ml-0 tpl:opacity-100",
|
|
@@ -135,16 +135,16 @@ var F = {
|
|
|
135
135
|
"leave-from-class": "tpl:ml-0 tpl:opacity-100",
|
|
136
136
|
"leave-to-class": "tpl:-ml-48 tpl:opacity-0"
|
|
137
137
|
}, {
|
|
138
|
-
default: a(() => [
|
|
139
|
-
folders: g(
|
|
140
|
-
"current-folder-id": g(
|
|
141
|
-
"view-mode": g(
|
|
142
|
-
"has-frequently-used": g(
|
|
143
|
-
onNavigate: g(
|
|
144
|
-
onCreateFolder: g(
|
|
145
|
-
onRenameFolder: g(
|
|
146
|
-
onDeleteFolder: g(
|
|
147
|
-
onShowFrequentlyUsed: g(
|
|
138
|
+
default: a(() => [j.value && g(J).showSidebar.value ? (n(), l("div", B, [x(M, {
|
|
139
|
+
folders: g(q).folders.value,
|
|
140
|
+
"current-folder-id": g(q).currentFolderId.value,
|
|
141
|
+
"view-mode": g(q).viewMode.value,
|
|
142
|
+
"has-frequently-used": g(J).hasFrequentlyUsed.value,
|
|
143
|
+
onNavigate: g(q).navigateToFolder,
|
|
144
|
+
onCreateFolder: g(J).handleCreateFolder,
|
|
145
|
+
onRenameFolder: g(J).handleRenameFolder,
|
|
146
|
+
onDeleteFolder: g(J).handleDeleteFolder,
|
|
147
|
+
onShowFrequentlyUsed: g(q).showFrequentlyUsed
|
|
148
148
|
}, null, 8, [
|
|
149
149
|
"folders",
|
|
150
150
|
"current-folder-id",
|
|
@@ -157,55 +157,55 @@ var F = {
|
|
|
157
157
|
"onShowFrequentlyUsed"
|
|
158
158
|
])])) : u("", !0)]),
|
|
159
159
|
_: 1
|
|
160
|
-
}), m("div",
|
|
161
|
-
|
|
160
|
+
}), m("div", V, [m("div", pe, [m("div", me, [
|
|
161
|
+
j.value ? (n(), l("button", {
|
|
162
162
|
key: 0,
|
|
163
163
|
class: "tpl:flex tpl:size-7 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-md tpl:transition-all tpl:duration-150",
|
|
164
164
|
style: p({
|
|
165
|
-
color: g(
|
|
166
|
-
backgroundColor: g(
|
|
167
|
-
border: g(
|
|
165
|
+
color: g(J).showSidebar.value ? "var(--tpl-primary)" : "var(--tpl-text-muted)",
|
|
166
|
+
backgroundColor: g(J).showSidebar.value ? "var(--tpl-bg)" : "transparent",
|
|
167
|
+
border: g(J).showSidebar.value ? "1px solid var(--tpl-border)" : "1px solid transparent"
|
|
168
168
|
}),
|
|
169
|
-
title: g(
|
|
170
|
-
onClick: r[1] ||= (e) => g(
|
|
169
|
+
title: g(J).showSidebar.value ? w.value.mediaLibrary.hideFolders : w.value.mediaLibrary.showFolders,
|
|
170
|
+
onClick: r[1] ||= (e) => g(J).showSidebar.value = !g(J).showSidebar.value
|
|
171
171
|
}, [x(g(ne), {
|
|
172
172
|
size: 16,
|
|
173
173
|
"stroke-width": 2
|
|
174
|
-
})], 12,
|
|
175
|
-
g(
|
|
174
|
+
})], 12, he)) : u("", !0),
|
|
175
|
+
g(q).viewMode.value === "frequently-used" ? (n(), l("span", ge, _(w.value.mediaLibrary.frequentlyUsed), 1)) : (n(), d(O, {
|
|
176
176
|
key: 2,
|
|
177
|
-
folders: g(
|
|
178
|
-
"current-folder-id": g(
|
|
179
|
-
onNavigate: g(
|
|
177
|
+
folders: g(q).folders.value,
|
|
178
|
+
"current-folder-id": g(q).currentFolderId.value,
|
|
179
|
+
onNavigate: g(q).navigateToFolder
|
|
180
180
|
}, null, 8, [
|
|
181
181
|
"folders",
|
|
182
182
|
"current-folder-id",
|
|
183
183
|
"onNavigate"
|
|
184
184
|
])),
|
|
185
|
-
m("div",
|
|
185
|
+
m("div", _e, [m("button", {
|
|
186
186
|
class: "tpl:flex tpl:size-6 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded tpl:transition-all tpl:duration-150",
|
|
187
187
|
style: p({
|
|
188
|
-
color: g(
|
|
189
|
-
backgroundColor: g(
|
|
188
|
+
color: g(J).layoutMode.value === "grid" ? "var(--tpl-primary)" : "var(--tpl-text-muted)",
|
|
189
|
+
backgroundColor: g(J).layoutMode.value === "grid" ? "var(--tpl-bg-elevated)" : "transparent"
|
|
190
190
|
}),
|
|
191
191
|
title: w.value.mediaLibrary.viewGrid,
|
|
192
|
-
onClick: r[2] ||= (e) => g(
|
|
192
|
+
onClick: r[2] ||= (e) => g(J).layoutMode.value = "grid"
|
|
193
193
|
}, [x(g(ae), {
|
|
194
194
|
size: 14,
|
|
195
195
|
"stroke-width": 2
|
|
196
|
-
})], 12,
|
|
196
|
+
})], 12, ve), m("button", {
|
|
197
197
|
class: "tpl:flex tpl:size-6 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded tpl:transition-all tpl:duration-150",
|
|
198
198
|
style: p({
|
|
199
|
-
color: g(
|
|
200
|
-
backgroundColor: g(
|
|
199
|
+
color: g(J).layoutMode.value === "list" ? "var(--tpl-primary)" : "var(--tpl-text-muted)",
|
|
200
|
+
backgroundColor: g(J).layoutMode.value === "list" ? "var(--tpl-bg-elevated)" : "transparent"
|
|
201
201
|
}),
|
|
202
202
|
title: w.value.mediaLibrary.viewList,
|
|
203
|
-
onClick: r[3] ||= (e) => g(
|
|
203
|
+
onClick: r[3] ||= (e) => g(J).layoutMode.value = "list"
|
|
204
204
|
}, [x(g(ie), {
|
|
205
205
|
size: 14,
|
|
206
206
|
"stroke-width": 2
|
|
207
|
-
})], 12,
|
|
208
|
-
]), m("div",
|
|
207
|
+
})], 12, ye)])
|
|
208
|
+
]), m("div", be, [g(K).length > 1 ? (n(), l("select", {
|
|
209
209
|
key: 0,
|
|
210
210
|
class: "tpl:rounded-md tpl:border tpl:py-1.5 tpl:pr-7 tpl:pl-2.5 tpl:text-xs tpl:transition-all tpl:duration-150 tpl:outline-none",
|
|
211
211
|
style: {
|
|
@@ -213,36 +213,36 @@ var F = {
|
|
|
213
213
|
"background-color": "var(--tpl-bg)",
|
|
214
214
|
color: "var(--tpl-text)"
|
|
215
215
|
},
|
|
216
|
-
value: g(
|
|
217
|
-
onChange: r[4] ||= (e) => g(
|
|
218
|
-
}, [m("option",
|
|
216
|
+
value: g(q).categoryFilter.value ?? "",
|
|
217
|
+
onChange: r[4] ||= (e) => g(q).filterByCategory(e.target.value || null)
|
|
218
|
+
}, [m("option", Se, _(w.value.mediaLibrary.filterAll), 1), (n(!0), l(v, null, i(g(K), (e) => (n(), l("option", {
|
|
219
219
|
key: e,
|
|
220
220
|
value: e
|
|
221
|
-
}, _(g(
|
|
221
|
+
}, _(g(J).getCategoryLabel(e)), 9, Ce))), 128))], 40, xe)) : u("", !0), m("select", {
|
|
222
222
|
class: "tpl:rounded-md tpl:border tpl:py-1.5 tpl:pr-7 tpl:pl-2.5 tpl:text-xs tpl:transition-all tpl:duration-150 tpl:outline-none",
|
|
223
223
|
style: {
|
|
224
224
|
"border-color": "var(--tpl-border)",
|
|
225
225
|
"background-color": "var(--tpl-bg)",
|
|
226
226
|
color: "var(--tpl-text)"
|
|
227
227
|
},
|
|
228
|
-
value: g(
|
|
229
|
-
onChange: r[5] ||= (e) => g(
|
|
228
|
+
value: g(q).sortOption.value,
|
|
229
|
+
onChange: r[5] ||= (e) => g(q).sortBy(e.target.value)
|
|
230
230
|
}, [
|
|
231
|
-
m("option",
|
|
232
|
-
m("option",
|
|
233
|
-
m("option",
|
|
234
|
-
m("option",
|
|
235
|
-
m("option",
|
|
236
|
-
m("option",
|
|
237
|
-
], 40,
|
|
238
|
-
"is-uploading": g(
|
|
239
|
-
"upload-progress": g(
|
|
240
|
-
onUpload: g(
|
|
231
|
+
m("option", Te, _(w.value.mediaLibrary.sortNewest), 1),
|
|
232
|
+
m("option", Ee, _(w.value.mediaLibrary.sortOldest), 1),
|
|
233
|
+
m("option", De, _(w.value.mediaLibrary.sortNameAsc), 1),
|
|
234
|
+
m("option", Oe, _(w.value.mediaLibrary.sortNameDesc), 1),
|
|
235
|
+
m("option", ke, _(w.value.mediaLibrary.sortSizeAsc), 1),
|
|
236
|
+
m("option", Ae, _(w.value.mediaLibrary.sortSizeDesc), 1)
|
|
237
|
+
], 40, we)])]), m("div", je, [g(q).viewMode.value === "files" ? (n(), l("div", Me, [x(fe, {
|
|
238
|
+
"is-uploading": g(q).isUploading.value,
|
|
239
|
+
"upload-progress": g(q).uploadProgress.value,
|
|
240
|
+
onUpload: g(J).handleUpload
|
|
241
241
|
}, null, 8, [
|
|
242
242
|
"is-uploading",
|
|
243
243
|
"upload-progress",
|
|
244
244
|
"onUpload"
|
|
245
|
-
]),
|
|
245
|
+
]), U.value ? (n(), l("button", {
|
|
246
246
|
key: 0,
|
|
247
247
|
class: "tpl:mt-2 tpl:flex tpl:w-full tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:gap-1.5 tpl:rounded-md tpl:border tpl:border-dashed tpl:px-3 tpl:py-1.5 tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-150",
|
|
248
248
|
style: {
|
|
@@ -250,21 +250,21 @@ var F = {
|
|
|
250
250
|
color: "var(--tpl-text-muted)",
|
|
251
251
|
"background-color": "var(--tpl-bg)"
|
|
252
252
|
},
|
|
253
|
-
onClick: r[6] ||= (e) => g(
|
|
253
|
+
onClick: r[6] ||= (e) => g(J).showImportUrlModal.value = !0
|
|
254
254
|
}, [x(g(re), {
|
|
255
255
|
size: 14,
|
|
256
256
|
"stroke-width": 2
|
|
257
|
-
}), y(" " + _(w.value.mediaLibrary.importFromUrl), 1)])) : u("", !0)])) : u("", !0), x(
|
|
258
|
-
items: g(
|
|
259
|
-
"selected-ids": g(
|
|
260
|
-
"is-loading": g(
|
|
261
|
-
"has-more": g(
|
|
262
|
-
layout: g(
|
|
263
|
-
onSelect: g(
|
|
264
|
-
onToggle: g(
|
|
265
|
-
onLoadMore: g(
|
|
266
|
-
onEdit: g(
|
|
267
|
-
onReplace: g(
|
|
257
|
+
}), y(" " + _(w.value.mediaLibrary.importFromUrl), 1)])) : u("", !0)])) : u("", !0), x(T, {
|
|
258
|
+
items: g(J).displayItems.value,
|
|
259
|
+
"selected-ids": g(q).selectedItems.value,
|
|
260
|
+
"is-loading": g(q).isLoading.value,
|
|
261
|
+
"has-more": g(q).viewMode.value === "files" && g(q).hasMore.value,
|
|
262
|
+
layout: g(J).layoutMode.value,
|
|
263
|
+
onSelect: g(J).handleSelect,
|
|
264
|
+
onToggle: g(q).toggleSelection,
|
|
265
|
+
onLoadMore: g(q).loadMore,
|
|
266
|
+
onEdit: g(J).handleEditItem,
|
|
267
|
+
onReplace: g(J).handleReplaceItem
|
|
268
268
|
}, null, 8, [
|
|
269
269
|
"items",
|
|
270
270
|
"selected-ids",
|
|
@@ -278,11 +278,11 @@ var F = {
|
|
|
278
278
|
"onReplace"
|
|
279
279
|
])])])]),
|
|
280
280
|
x(ce, {
|
|
281
|
-
visible: g(
|
|
282
|
-
"is-importing": g(
|
|
283
|
-
error: g(
|
|
284
|
-
onImport: g(
|
|
285
|
-
onClose: r[7] ||= (e) => g(
|
|
281
|
+
visible: g(J).showImportUrlModal.value,
|
|
282
|
+
"is-importing": g(q).isImportingFromUrl.value,
|
|
283
|
+
error: g(q).importFromUrlError.value,
|
|
284
|
+
onImport: g(J).handleImportFromUrl,
|
|
285
|
+
onClose: r[7] ||= (e) => g(J).showImportUrlModal.value = !1
|
|
286
286
|
}, null, 8, [
|
|
287
287
|
"visible",
|
|
288
288
|
"is-importing",
|
|
@@ -290,23 +290,23 @@ var F = {
|
|
|
290
290
|
"onImport"
|
|
291
291
|
]),
|
|
292
292
|
x(le, {
|
|
293
|
-
visible: !!g(
|
|
294
|
-
item: g(
|
|
295
|
-
onSave: g(
|
|
296
|
-
onClose: r[8] ||= (e) => g(
|
|
293
|
+
visible: !!g(J).editingItem.value,
|
|
294
|
+
item: g(J).editingItem.value,
|
|
295
|
+
onSave: g(J).handleEditSave,
|
|
296
|
+
onClose: r[8] ||= (e) => g(J).editingItem.value = null
|
|
297
297
|
}, null, 8, [
|
|
298
298
|
"visible",
|
|
299
299
|
"item",
|
|
300
300
|
"onSave"
|
|
301
301
|
]),
|
|
302
302
|
x(se, {
|
|
303
|
-
visible: g(
|
|
304
|
-
item: g(
|
|
305
|
-
"usage-info": g(
|
|
306
|
-
"is-replacing": g(
|
|
307
|
-
error: g(
|
|
308
|
-
onReplace: g(
|
|
309
|
-
onClose: g(
|
|
303
|
+
visible: g(q).showReplaceWarning.value,
|
|
304
|
+
item: g(q).pendingReplaceItem.value,
|
|
305
|
+
"usage-info": g(q).replaceUsageInfo.value,
|
|
306
|
+
"is-replacing": g(q).isReplacing.value,
|
|
307
|
+
error: g(q).replaceError.value,
|
|
308
|
+
onReplace: g(J).handleReplaceFile,
|
|
309
|
+
onClose: g(q).cancelReplace
|
|
310
310
|
}, null, 8, [
|
|
311
311
|
"visible",
|
|
312
312
|
"item",
|
|
@@ -324,7 +324,7 @@ var F = {
|
|
|
324
324
|
"leave-from-class": "tpl:opacity-100",
|
|
325
325
|
"leave-to-class": "tpl:opacity-0"
|
|
326
326
|
}, {
|
|
327
|
-
default: a(() => [g(
|
|
327
|
+
default: a(() => [g(q).showDeleteWarning.value ? (n(), l("div", {
|
|
328
328
|
key: 0,
|
|
329
329
|
class: "tpl:absolute tpl:inset-0 tpl:z-10 tpl:flex tpl:items-center tpl:justify-center tpl:rounded-[var(--tpl-radius-lg)]",
|
|
330
330
|
style: {
|
|
@@ -332,27 +332,27 @@ var F = {
|
|
|
332
332
|
"backdrop-filter": "blur(8px)",
|
|
333
333
|
"-webkit-backdrop-filter": "blur(8px)"
|
|
334
334
|
},
|
|
335
|
-
onClick: r[11] ||= ee((...e) => g(
|
|
336
|
-
}, [m("div",
|
|
337
|
-
m("h3",
|
|
335
|
+
onClick: r[11] ||= ee((...e) => g(q).cancelDelete && g(q).cancelDelete(...e), ["self"])
|
|
336
|
+
}, [m("div", Ne, [
|
|
337
|
+
m("h3", Pe, _(w.value.mediaLibrary.deleteWarningTitle), 1),
|
|
338
338
|
m("p", {
|
|
339
|
-
class: s(["tpl:text-xs", g(
|
|
339
|
+
class: s(["tpl:text-xs", g(J).hasUsedFiles.value ? "tpl:mb-2" : "tpl:mb-4"]),
|
|
340
340
|
style: { color: "var(--tpl-text-muted)" }
|
|
341
341
|
}, _(w.value.mediaLibrary.deleteWarningMessage), 3),
|
|
342
|
-
g(
|
|
343
|
-
g(
|
|
342
|
+
g(J).hasUsedFiles.value ? (n(), l("p", Fe, _(w.value.mediaLibrary.deleteWarningUsageNote), 1)) : u("", !0),
|
|
343
|
+
g(J).hasUsedFiles.value ? (n(), l("div", Ie, [(n(!0), l(v, null, i(g(q).deleteUsageInfo.value, (e, t) => (n(), l("div", {
|
|
344
344
|
key: t,
|
|
345
345
|
class: "tpl:text-xs",
|
|
346
346
|
style: { color: "var(--tpl-text)" }
|
|
347
|
-
}, [e.template_count > 0 ? (n(), l(v, { key: 0 }, [m("span",
|
|
348
|
-
m("div",
|
|
347
|
+
}, [e.template_count > 0 ? (n(), l(v, { key: 0 }, [m("span", Le, _(g(J).displayItems.value.find((e) => e.id === t)?.filename || t), 1), m("span", Re, " - " + _(w.value.mediaLibrary.usedInTemplates.replace("{count}", e.template_count.toString())), 1)], 64)) : u("", !0)]))), 128))])) : u("", !0),
|
|
348
|
+
m("div", ze, [m("button", {
|
|
349
349
|
class: "tpl:cursor-pointer tpl:rounded-md tpl:border tpl:px-3 tpl:py-1.5 tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-150",
|
|
350
350
|
style: {
|
|
351
351
|
"border-color": "var(--tpl-border)",
|
|
352
352
|
color: "var(--tpl-text)",
|
|
353
353
|
"background-color": "var(--tpl-bg)"
|
|
354
354
|
},
|
|
355
|
-
onClick: r[9] ||= (...e) => g(
|
|
355
|
+
onClick: r[9] ||= (...e) => g(q).cancelDelete && g(q).cancelDelete(...e)
|
|
356
356
|
}, _(w.value.mediaLibrary.cancel), 1), m("button", {
|
|
357
357
|
class: "tpl:cursor-pointer tpl:rounded-md tpl:border tpl:px-3 tpl:py-1.5 tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-150",
|
|
358
358
|
style: {
|
|
@@ -360,31 +360,31 @@ var F = {
|
|
|
360
360
|
color: "var(--tpl-danger)",
|
|
361
361
|
"background-color": "var(--tpl-danger-light)"
|
|
362
362
|
},
|
|
363
|
-
onClick: r[10] ||= (...e) => g(
|
|
364
|
-
}, _(g(
|
|
363
|
+
onClick: r[10] ||= (...e) => g(q).confirmDelete && g(q).confirmDelete(...e)
|
|
364
|
+
}, _(g(J).hasUsedFiles.value ? w.value.mediaLibrary.deleteAnyway : w.value.mediaLibrary.confirmDelete), 1)])
|
|
365
365
|
])])) : u("", !0)]),
|
|
366
366
|
_: 1
|
|
367
367
|
}),
|
|
368
|
-
m("div",
|
|
368
|
+
m("div", Be, [m("div", Ve, [g(q).previewItem.value ? (n(), d(D, {
|
|
369
369
|
key: 0,
|
|
370
|
-
"selected-conversion": g(
|
|
371
|
-
"onUpdate:selectedConversion": r[12] ||= (e) => g(
|
|
372
|
-
item: g(
|
|
373
|
-
folders: g(
|
|
370
|
+
"selected-conversion": g(J).selectedConversion.value,
|
|
371
|
+
"onUpdate:selectedConversion": r[12] ||= (e) => g(J).selectedConversion.value = e,
|
|
372
|
+
item: g(q).previewItem.value,
|
|
373
|
+
folders: g(q).folders.value
|
|
374
374
|
}, null, 8, [
|
|
375
375
|
"selected-conversion",
|
|
376
376
|
"item",
|
|
377
377
|
"folders"
|
|
378
|
-
])) : u("", !0)]), m("div",
|
|
378
|
+
])) : u("", !0)]), m("div", He, [g(q).selectedItems.value.size > 0 ? (n(), l("div", Ue, [g(q).previewItem.value ? (n(), l("button", {
|
|
379
379
|
key: 0,
|
|
380
380
|
class: "tpl:flex tpl:cursor-pointer tpl:items-center tpl:gap-1 tpl:rounded-md tpl:border tpl:px-3 tpl:py-1.5 tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-150",
|
|
381
381
|
style: p({
|
|
382
|
-
borderColor: g(
|
|
383
|
-
color: g(
|
|
382
|
+
borderColor: g(J).copied.value ? "var(--tpl-success)" : "var(--tpl-border)",
|
|
383
|
+
color: g(J).copied.value ? "var(--tpl-success)" : "var(--tpl-text)",
|
|
384
384
|
backgroundColor: "var(--tpl-bg)"
|
|
385
385
|
}),
|
|
386
|
-
onClick: r[13] ||= (e) => g(
|
|
387
|
-
}, [g(
|
|
386
|
+
onClick: r[13] ||= (e) => g(J).copy(g(J).selectedUrl.value)
|
|
387
|
+
}, [g(J).copied.value ? (n(), d(g(C), {
|
|
388
388
|
key: 1,
|
|
389
389
|
size: 12,
|
|
390
390
|
"stroke-width": 2
|
|
@@ -392,25 +392,25 @@ var F = {
|
|
|
392
392
|
key: 0,
|
|
393
393
|
size: 12,
|
|
394
394
|
"stroke-width": 2
|
|
395
|
-
})), y(" " + _(g(
|
|
395
|
+
})), y(" " + _(g(J).copied.value ? w.value.mediaLibrary.copied : w.value.mediaLibrary.copyUrl), 1)], 4)) : u("", !0), j.value ? (n(), l("div", We, [m("button", {
|
|
396
396
|
class: "tpl:cursor-pointer tpl:rounded-md tpl:border tpl:px-3 tpl:py-1.5 tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-150",
|
|
397
397
|
style: {
|
|
398
398
|
"border-color": "var(--tpl-border)",
|
|
399
399
|
color: "var(--tpl-text)",
|
|
400
400
|
"background-color": "var(--tpl-bg)"
|
|
401
401
|
},
|
|
402
|
-
onClick: r[14] ||= (e) => g(
|
|
403
|
-
}, _(w.value.mediaLibrary.moveSelected), 1), g(
|
|
402
|
+
onClick: r[14] ||= (e) => g(J).showMovePicker.value = !g(J).showMovePicker.value
|
|
403
|
+
}, _(w.value.mediaLibrary.moveSelected), 1), g(J).showMovePicker.value ? (n(), d(A, {
|
|
404
404
|
key: 0,
|
|
405
|
-
folders: g(
|
|
406
|
-
"current-folder-id": g(
|
|
407
|
-
onSelect: g(
|
|
408
|
-
onClose: r[15] ||= (e) => g(
|
|
405
|
+
folders: g(q).folders.value,
|
|
406
|
+
"current-folder-id": g(q).currentFolderId.value,
|
|
407
|
+
onSelect: g(J).handleMoveToFolder,
|
|
408
|
+
onClose: r[15] ||= (e) => g(J).showMovePicker.value = !1
|
|
409
409
|
}, null, 8, [
|
|
410
410
|
"folders",
|
|
411
411
|
"current-folder-id",
|
|
412
412
|
"onSelect"
|
|
413
|
-
])) : u("", !0)])) : u("", !0)])) : u("", !0), m("div",
|
|
413
|
+
])) : u("", !0)])) : u("", !0)])) : u("", !0), m("div", Ge, [g(q).selectedItems.value.size > 0 ? (n(), l("button", {
|
|
414
414
|
key: 0,
|
|
415
415
|
class: "tpl:cursor-pointer tpl:rounded-md tpl:border tpl:px-3 tpl:py-1.5 tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-150",
|
|
416
416
|
style: {
|
|
@@ -418,7 +418,7 @@ var F = {
|
|
|
418
418
|
color: "var(--tpl-danger)",
|
|
419
419
|
"background-color": "var(--tpl-danger-light)"
|
|
420
420
|
},
|
|
421
|
-
onClick: r[16] ||= (...e) => g(
|
|
421
|
+
onClick: r[16] ||= (...e) => g(J).handleDeleteClick && g(J).handleDeleteClick(...e)
|
|
422
422
|
}, _(w.value.mediaLibrary.deleteSelected), 1)) : u("", !0), t.onSelect ? (n(), l("button", {
|
|
423
423
|
key: 1,
|
|
424
424
|
class: "tpl:cursor-pointer tpl:rounded-md tpl:px-4 tpl:py-1.5 tpl:text-sm tpl:font-medium tpl:shadow-xs tpl:transition-all tpl:duration-150 tpl:hover:opacity-90 tpl:disabled:cursor-not-allowed tpl:disabled:opacity-50",
|
|
@@ -426,36 +426,51 @@ var F = {
|
|
|
426
426
|
"background-color": "var(--tpl-primary)",
|
|
427
427
|
color: "var(--tpl-bg)"
|
|
428
428
|
},
|
|
429
|
-
disabled: !g(
|
|
430
|
-
onClick:
|
|
431
|
-
}, _(w.value.mediaLibrary.selectFile), 9,
|
|
429
|
+
disabled: !g(q).previewItem.value,
|
|
430
|
+
onClick: Y
|
|
431
|
+
}, _(w.value.mediaLibrary.selectFile), 9, H)) : u("", !0)])])])
|
|
432
432
|
]));
|
|
433
433
|
}
|
|
434
|
-
}),
|
|
434
|
+
}), W = (e, t, n) => {
|
|
435
435
|
let r = t.lastIndexOf("?"), i = e[r === -1 || r < t.lastIndexOf("/") ? t : t.slice(0, r)];
|
|
436
436
|
return i ? typeof i == "function" ? i() : Promise.resolve(i) : new Promise((e, r) => {
|
|
437
437
|
(typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(r.bind(null, /* @__PURE__ */ Error("Unknown variable dynamic import: " + t + (t.split("/").length === n ? "" : ". Note that variables only represent file names one level deep."))));
|
|
438
438
|
});
|
|
439
|
-
},
|
|
439
|
+
}, G = [
|
|
440
|
+
"en",
|
|
441
|
+
"de",
|
|
442
|
+
"pt-BR"
|
|
443
|
+
];
|
|
444
|
+
function K(e) {
|
|
445
|
+
return e.trim().replace(/_/g, "-").toLowerCase();
|
|
446
|
+
}
|
|
447
|
+
function q(e) {
|
|
448
|
+
let t = K(e);
|
|
449
|
+
return G.find((e) => K(e) === t);
|
|
450
|
+
}
|
|
440
451
|
function J(e) {
|
|
441
|
-
return e.split("-")[0]
|
|
452
|
+
return K(e).split("-")[0];
|
|
453
|
+
}
|
|
454
|
+
function Y(e) {
|
|
455
|
+
return q(e) ?? q(J(e)) ?? "en";
|
|
442
456
|
}
|
|
443
|
-
async function
|
|
444
|
-
let t =
|
|
445
|
-
return (await
|
|
446
|
-
"./locales/de.ts": () => import("./de-
|
|
447
|
-
"./locales/en.ts": () => import("./en-
|
|
448
|
-
|
|
457
|
+
async function Ke(e) {
|
|
458
|
+
let t = Y(e);
|
|
459
|
+
return (await W(/* @__PURE__ */ Object.assign({
|
|
460
|
+
"./locales/de.ts": () => import("./de-DG1WWVXM.js"),
|
|
461
|
+
"./locales/en.ts": () => import("./en-BE6OV83-.js"),
|
|
462
|
+
"./locales/pt-BR.ts": () => import("./pt-BR-BYRTP5Ww.js")
|
|
463
|
+
}), `./locales/${t}.ts`, 3)).default;
|
|
449
464
|
}
|
|
450
465
|
//#endregion
|
|
451
466
|
//#region ../media-library/src/standalone/visual.ts
|
|
452
467
|
var X = null, Z = o(null);
|
|
453
|
-
async function
|
|
468
|
+
async function qe(e) {
|
|
454
469
|
let n = typeof e.container == "string" ? document.querySelector(e.container) : e.container;
|
|
455
470
|
if (!n) throw Error(`Container element not found: ${e.container}`);
|
|
456
471
|
let r = S(e.auth, e.onError);
|
|
457
472
|
await r.initialize();
|
|
458
|
-
let i = await new w(r).fetchConfig(), a = await
|
|
473
|
+
let i = await new w(r).fetchConfig(), a = await Ke(e.locale ?? "en");
|
|
459
474
|
return $(n, e.theme), X && Q(), new Promise((o, s) => {
|
|
460
475
|
try {
|
|
461
476
|
X = h({ setup() {
|
|
@@ -465,7 +480,7 @@ async function We(e) {
|
|
|
465
480
|
unmount: Q
|
|
466
481
|
});
|
|
467
482
|
};
|
|
468
|
-
return () => t(
|
|
483
|
+
return () => t(U, {
|
|
469
484
|
authManager: r,
|
|
470
485
|
projectId: r.projectId,
|
|
471
486
|
planConfig: i,
|
|
@@ -488,10 +503,10 @@ function $(e, t) {
|
|
|
488
503
|
t && (t.primaryColor && e.style.setProperty("--tpl-primary", t.primaryColor), t.borderRadius !== void 0 && (e.style.setProperty("--tpl-radius", `${t.borderRadius}px`), e.style.setProperty("--tpl-radius-sm", `${Math.max(0, t.borderRadius - 3)}px`), e.style.setProperty("--tpl-radius-lg", `${t.borderRadius + 4}px`)));
|
|
489
504
|
}
|
|
490
505
|
typeof window < "u" && (window.TemplaticalMedia = {
|
|
491
|
-
init:
|
|
506
|
+
init: qe,
|
|
492
507
|
unmount: Q
|
|
493
508
|
});
|
|
494
509
|
//#endregion
|
|
495
|
-
export {
|
|
510
|
+
export { j as MediaLibraryModal };
|
|
496
511
|
|
|
497
|
-
//# sourceMappingURL=src-
|
|
512
|
+
//# sourceMappingURL=src-CthVYW_o.js.map
|