@templatical/editor 0.0.4 → 0.0.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.
Files changed (108) hide show
  1. package/dist/{AiChatSidebar-CjfhTZwo.js → AiChatSidebar-DwME3f-a.js} +84 -70
  2. package/dist/{AiFeatureMenu-K44aZa_P.js → AiFeatureMenu-DJvWL1GZ.js} +23 -23
  3. package/dist/CloudEditor-Fe0ssRgi.js +1082 -0
  4. package/dist/{CollaboratorBar-BuCEcdbB.js → CollaboratorBar-DTT0EkZn.js} +1 -1
  5. package/dist/{CommentsSidebar-2lcqMfIP.js → CommentsSidebar-DrJhQRXK.js} +131 -131
  6. package/dist/{DesignReferenceSidebar-CNMu4Zrx.js → DesignReferenceSidebar-DdOht5zn.js} +49 -49
  7. package/dist/{ModuleBrowserModal-CvQ0xyQf.js → ModuleBrowserModal-CiV_jOEM.js} +58 -58
  8. package/dist/{ModulePreviewCanvas-Be2B3Y07.js → ModulePreviewCanvas-Bmy6Y1WE.js} +1 -1
  9. package/dist/ParagraphEditor-CoQ3NlS7.js +688 -0
  10. package/dist/{SaveModuleDialog-BaaeH5Xm.js → SaveModuleDialog-CD2ZYq1o.js} +25 -25
  11. package/dist/{SnapshotHistory-BPfjiuu1.js → SnapshotHistory-DltsKvhP.js} +1 -1
  12. package/dist/TemplateScoringPanel-DmnmUE3y.js +254 -0
  13. package/dist/{TestEmailModal-DIAlB3e_.js → TestEmailModal-Dl633j9o.js} +2 -2
  14. package/dist/{TitleEditor-D9DPjQkX.js → TitleEditor-C7fds2Nc.js} +3 -3
  15. package/dist/{TplModal-CmTSvCY-.js → TplModal-C5_CF-qn.js} +1 -1
  16. package/dist/{blockTypeIcons-D1RTWOkx.js → blockTypeIcons-BrKZB10B.js} +1 -1
  17. package/dist/cdn/chunks/AiChatSidebar-X_Bv3Qys.js +2 -0
  18. package/dist/cdn/chunks/{AiFeatureMenu-lxVm1RjH.js → AiFeatureMenu-C5UQmEgV.js} +16 -16
  19. package/dist/cdn/chunks/AiFeatureMenu-C5UQmEgV.js.map +1 -0
  20. package/dist/cdn/chunks/CloudEditor-DeTolKnf.js +1056 -0
  21. package/dist/cdn/chunks/CloudEditor-DeTolKnf.js.map +1 -0
  22. package/dist/cdn/chunks/{CollaboratorBar-D2PKtlOw.js → CollaboratorBar-DO1nxSrr.js} +3 -3
  23. package/dist/cdn/chunks/{CollaboratorBar-D2PKtlOw.js.map → CollaboratorBar-DO1nxSrr.js.map} +1 -1
  24. package/dist/cdn/chunks/CommentsSidebar-4MTw_hue.js +2 -0
  25. package/dist/cdn/chunks/DesignReferenceSidebar-Bswh4Yx4.js +2 -0
  26. package/dist/cdn/chunks/{ModuleBrowserModal-CxDXzkKS.js → ModuleBrowserModal-ChBr3aXj.js} +52 -52
  27. package/dist/cdn/chunks/ModuleBrowserModal-ChBr3aXj.js.map +1 -0
  28. package/dist/cdn/chunks/{ModulePreviewCanvas-DEfHampA.js → ModulePreviewCanvas-DkSvri9H.js} +2 -2
  29. package/dist/cdn/chunks/{ModulePreviewCanvas-DEfHampA.js.map → ModulePreviewCanvas-DkSvri9H.js.map} +1 -1
  30. package/dist/cdn/chunks/ParagraphEditor-DU3oUKA7.js +539 -0
  31. package/dist/cdn/chunks/ParagraphEditor-DU3oUKA7.js.map +1 -0
  32. package/dist/cdn/chunks/{RichTextEditorContent-DWUzizsC.js → RichTextEditorContent-BrsW1p9s.js} +4 -4
  33. package/dist/cdn/chunks/{RichTextEditorContent-DWUzizsC.js.map → RichTextEditorContent-BrsW1p9s.js.map} +1 -1
  34. package/dist/cdn/chunks/{SaveModuleDialog-DVna2xUl.js → SaveModuleDialog-CjqKkTEc.js} +24 -24
  35. package/dist/cdn/chunks/SaveModuleDialog-CjqKkTEc.js.map +1 -0
  36. package/dist/cdn/chunks/SnapshotHistory-KME4xmn_.js +2 -0
  37. package/dist/cdn/chunks/TemplateScoringPanel-DgB3xDN6.js +2 -0
  38. package/dist/cdn/chunks/TestEmailModal-DdpvRbYf.js +2 -0
  39. package/dist/cdn/chunks/{TitleEditor-DDf_OcHS.js → TitleEditor-C8FYbadT.js} +9 -9
  40. package/dist/cdn/chunks/{TitleEditor-DDf_OcHS.js.map → TitleEditor-C8FYbadT.js.map} +1 -1
  41. package/dist/cdn/chunks/{blockTypeIcons-BnobReQm.js → blockTypeIcons-5QwYklNq.js} +3 -3
  42. package/dist/cdn/chunks/{blockTypeIcons-BnobReQm.js.map → blockTypeIcons-5QwYklNq.js.map} +1 -1
  43. package/dist/cdn/chunks/{dist-CJcMnY7o.js → dist-BF5c3Dr-.js} +1 -1
  44. package/dist/cdn/chunks/dist-BGzvIxcJ.js +2 -0
  45. package/dist/cdn/chunks/dist-CFemF8rI.js +2 -0
  46. package/dist/cdn/chunks/dist-Co6uFhFK.js +2 -0
  47. package/dist/cdn/chunks/{dist-BkETaOfw.js → dist-DCikBY9K.js} +1 -1
  48. package/dist/cdn/chunks/dist-DUILafAC.js +2 -0
  49. package/dist/cdn/chunks/dist-DghiKH0A.js +2 -0
  50. package/dist/cdn/chunks/dist-Dw8ckvfK.js +2 -0
  51. package/dist/cdn/chunks/dist-H07p0KAw.js +2 -0
  52. package/dist/cdn/chunks/{dist-B878xb_62.js → dist-KYv9v_1z2.js} +11 -11
  53. package/dist/cdn/chunks/{dist-B878xb_62.js.map → dist-KYv9v_1z2.js.map} +1 -1
  54. package/dist/cdn/chunks/{dist-DLWHlekl.js → dist-MjnKIc0W.js} +1 -1
  55. package/dist/cdn/chunks/{dist-CllLxIMQ.js → dist-odp0vGRv.js} +1 -1
  56. package/dist/cdn/chunks/{extensions-B_kcV0tK.js → extensions-Bj7USRLr.js} +20 -20
  57. package/dist/cdn/chunks/{extensions-B_kcV0tK.js.map → extensions-Bj7USRLr.js.map} +1 -1
  58. package/dist/cdn/chunks/{features-ofOGnSC0.js → features-Ds0XUfte.js} +1235 -1198
  59. package/dist/cdn/chunks/features-Ds0XUfte.js.map +1 -0
  60. package/dist/cdn/chunks/{icons-bIb7PBOE.js → icons-fWsuSvgd.js} +2 -2
  61. package/dist/cdn/chunks/{icons-bIb7PBOE.js.map → icons-fWsuSvgd.js.map} +1 -1
  62. package/dist/cdn/chunks/{media-library-BIYzV2Y2.js → media-library-BGQm_OyC.js} +528 -528
  63. package/dist/cdn/chunks/{media-library-BIYzV2Y2.js.map → media-library-BGQm_OyC.js.map} +1 -1
  64. package/dist/cdn/chunks/{src-BuW9oYtm.js → src-3i8rPuqd.js} +4 -4
  65. package/dist/cdn/chunks/{src-BuW9oYtm.js.map → src-3i8rPuqd.js.map} +1 -1
  66. package/dist/cdn/chunks/{styleConstants-1KwsBMxJ.js → styleConstants-DFe3I4Op.js} +6 -6
  67. package/dist/cdn/chunks/{styleConstants-1KwsBMxJ.js.map → styleConstants-DFe3I4Op.js.map} +1 -1
  68. package/dist/cdn/chunks/{styles-DQFExz-T.js → styles-Dgijy53u.js} +1224 -1096
  69. package/dist/cdn/chunks/styles-Dgijy53u.js.map +1 -0
  70. package/dist/cdn/chunks/{tiptap-DplY-S-k.js → tiptap-BhxaWR8R.js} +2 -2
  71. package/dist/cdn/chunks/{tiptap-DplY-S-k.js.map → tiptap-BhxaWR8R.js.map} +1 -1
  72. package/dist/cdn/editor.css +1 -1
  73. package/dist/cdn/editor.js +110 -139
  74. package/dist/cdn/editor.js.map +1 -1
  75. package/dist/{dist-BkIys9zn.js → dist-Ci5lFuUy.js} +1 -1
  76. package/dist/{extensions-DEjfEFhD.js → extensions-DWx_jj8v.js} +1 -1
  77. package/dist/{styleConstants-D4SOZGBV.js → styleConstants-Cxw88naD.js} +5 -5
  78. package/dist/{styles-CgLaxDfu.js → styles-fdXNRqI3.js} +1341 -1213
  79. package/dist/templatical-editor.css +1 -1
  80. package/dist/templatical-editor.js +99 -129
  81. package/dist/templatical-editor.umd.cjs +55 -64
  82. package/dist/{useEditorCore-CjwRMl7K.js → useEditorCore-DUGD6pq_.js} +1054 -1033
  83. package/package.json +4 -2
  84. package/dist/CloudEditor-DFyuRxUV.js +0 -926
  85. package/dist/ParagraphEditor-CcMPnbDr.js +0 -652
  86. package/dist/TemplateScoringPanel-D58A23Vq.js +0 -249
  87. package/dist/cdn/chunks/AiChatSidebar-CmPTbTFG.js +0 -2
  88. package/dist/cdn/chunks/AiFeatureMenu-lxVm1RjH.js.map +0 -1
  89. package/dist/cdn/chunks/CloudEditor-Bmp5IlWi.js +0 -900
  90. package/dist/cdn/chunks/CloudEditor-Bmp5IlWi.js.map +0 -1
  91. package/dist/cdn/chunks/CommentsSidebar-BOelj4Ca.js +0 -2
  92. package/dist/cdn/chunks/DesignReferenceSidebar-Bf6rg0A7.js +0 -2
  93. package/dist/cdn/chunks/ModuleBrowserModal-CxDXzkKS.js.map +0 -1
  94. package/dist/cdn/chunks/ParagraphEditor-DHdu6lb3.js +0 -503
  95. package/dist/cdn/chunks/ParagraphEditor-DHdu6lb3.js.map +0 -1
  96. package/dist/cdn/chunks/SaveModuleDialog-DVna2xUl.js.map +0 -1
  97. package/dist/cdn/chunks/SnapshotHistory-BFF2SsTN.js +0 -2
  98. package/dist/cdn/chunks/TemplateScoringPanel-gi8wc_m7.js +0 -2
  99. package/dist/cdn/chunks/TestEmailModal-Qtd6aC-6.js +0 -2
  100. package/dist/cdn/chunks/dist-B6AUkMyh.js +0 -2
  101. package/dist/cdn/chunks/dist-Bf1Op9A1.js +0 -2
  102. package/dist/cdn/chunks/dist-CWsl6S1K.js +0 -2
  103. package/dist/cdn/chunks/dist-Cs0wFwdw.js +0 -2
  104. package/dist/cdn/chunks/dist-DS3_HVpX.js +0 -2
  105. package/dist/cdn/chunks/dist-DTXopj1a.js +0 -2
  106. package/dist/cdn/chunks/dist-DnwLoNLm.js +0 -2
  107. package/dist/cdn/chunks/features-ofOGnSC0.js.map +0 -1
  108. package/dist/cdn/chunks/styles-DQFExz-T.js.map +0 -1
@@ -1,8 +1,8 @@
1
1
  import { $ as e, B as t, E as n, F as r, H as i, I as a, J as o, L as s, N as c, O as l, R as u, S as d, U as f, _ as p, at as m, b as h, c as g, ct as _, d as v, f as y, g as b, h as x, l as S, lt as C, m as w, n as T, p as E, s as D, st as O, u as k, y as A } from "./draggable-BQNU47zu.js";
2
- import { $ as j, Ct as ee, E as M, T as N, Tt as P, an as F, in as te, lt as I, nn as L, nt as R, on as ne, pt as z, rn as re, rt as ie, sn as ae, tn as oe, tt as se, ut as ce, yt as le } from "./features-ofOGnSC0.js";
3
- import { G as ue, L as de, T as fe, U as pe, W as me, k as he, p as ge, y as _e, z as ve } from "./icons-bIb7PBOE.js";
2
+ import { $ as j, $t as ee, Ct as te, E as M, Qt as N, T as P, Tt as F, Zt as I, en as ne, lt as L, nn as re, nt as R, pt as ie, rn as ae, rt as oe, tn as se, tt as ce, ut as le, yt as ue } from "./features-Ds0XUfte.js";
3
+ import { G as de, L as fe, T as pe, U as me, W as he, k as ge, p as _e, y as ve, z as ye } from "./icons-fWsuSvgd.js";
4
4
  //#region ../media-library/src/api-client.ts
5
- var ye = class {
5
+ var be = class {
6
6
  constructor(e) {
7
7
  this.authManager = e;
8
8
  }
@@ -36,7 +36,7 @@ var ye = class {
36
36
  async browseMedia(e) {
37
37
  let t = new URLSearchParams();
38
38
  e.folder_id && t.set("folder_id", e.folder_id), e.search && t.set("search", e.search), e.category && t.set("category", e.category), e.sort && t.set("sort", e.sort), e.cursor && t.set("cursor", e.cursor);
39
- let n = t.toString(), r = `${M(N["media.browse"], this.baseParams)}${n ? `?${n}` : ""}`, i = await this.authManager.authenticatedFetch(r, { headers: { Accept: "application/json" } });
39
+ let n = t.toString(), r = `${M(P["media.browse"], this.baseParams)}${n ? `?${n}` : ""}`, i = await this.authManager.authenticatedFetch(r, { headers: { Accept: "application/json" } });
40
40
  if (!i.ok) {
41
41
  let e = await i.json().catch(() => ({ message: `HTTP error ${i.status}` }));
42
42
  throw Error(e.message, { cause: e });
@@ -46,7 +46,7 @@ var ye = class {
46
46
  async uploadMedia(e, t) {
47
47
  let n = new FormData();
48
48
  n.append("file", e), t && n.append("folder_id", t);
49
- let r = M(N["media.upload"], this.baseParams), i = await this.authManager.authenticatedFetch(r, {
49
+ let r = M(P["media.upload"], this.baseParams), i = await this.authManager.authenticatedFetch(r, {
50
50
  method: "POST",
51
51
  headers: { Accept: "application/json" },
52
52
  body: n
@@ -58,7 +58,7 @@ var ye = class {
58
58
  return (await i.json()).data;
59
59
  }
60
60
  async updateMedia(e, t, n) {
61
- return this.request(M(N["media.update"], {
61
+ return this.request(M(P["media.update"], {
62
62
  ...this.baseParams,
63
63
  media: e
64
64
  }), {
@@ -70,13 +70,13 @@ var ye = class {
70
70
  });
71
71
  }
72
72
  async deleteMedia(e) {
73
- return this.request(M(N["media.delete"], this.baseParams), {
73
+ return this.request(M(P["media.delete"], this.baseParams), {
74
74
  method: "POST",
75
75
  body: JSON.stringify({ ids: e })
76
76
  });
77
77
  }
78
78
  async moveMedia(e, t) {
79
- return this.request(M(N["media.move"], this.baseParams), {
79
+ return this.request(M(P["media.move"], this.baseParams), {
80
80
  method: "POST",
81
81
  body: JSON.stringify({
82
82
  ids: e,
@@ -85,10 +85,10 @@ var ye = class {
85
85
  });
86
86
  }
87
87
  async getMediaFolders() {
88
- return this.request(M(N["folders.index"], this.baseParams));
88
+ return this.request(M(P["folders.index"], this.baseParams));
89
89
  }
90
90
  async createMediaFolder(e, t) {
91
- return this.request(M(N["folders.store"], this.baseParams), {
91
+ return this.request(M(P["folders.store"], this.baseParams), {
92
92
  method: "POST",
93
93
  body: JSON.stringify({
94
94
  name: e,
@@ -97,7 +97,7 @@ var ye = class {
97
97
  });
98
98
  }
99
99
  async renameMediaFolder(e, t) {
100
- return this.request(M(N["folders.update"], {
100
+ return this.request(M(P["folders.update"], {
101
101
  ...this.baseParams,
102
102
  mediaFolder: e
103
103
  }), {
@@ -106,13 +106,13 @@ var ye = class {
106
106
  });
107
107
  }
108
108
  async deleteMediaFolder(e) {
109
- return this.request(M(N["folders.destroy"], {
109
+ return this.request(M(P["folders.destroy"], {
110
110
  ...this.baseParams,
111
111
  mediaFolder: e
112
112
  }), { method: "DELETE" });
113
113
  }
114
114
  async checkMediaUsage(e) {
115
- let t = await this.authManager.authenticatedFetch(M(N["media.checkUsage"], this.baseParams), {
115
+ let t = await this.authManager.authenticatedFetch(M(P["media.checkUsage"], this.baseParams), {
116
116
  method: "POST",
117
117
  headers: {
118
118
  "Content-Type": "application/json",
@@ -127,10 +127,10 @@ var ye = class {
127
127
  return t.json();
128
128
  }
129
129
  async getFrequentlyUsed() {
130
- return this.request(M(N["media.frequentlyUsed"], this.baseParams));
130
+ return this.request(M(P["media.frequentlyUsed"], this.baseParams));
131
131
  }
132
132
  async importFromUrl(e, t) {
133
- return this.request(M(N["media.importFromUrl"], this.baseParams), {
133
+ return this.request(M(P["media.importFromUrl"], this.baseParams), {
134
134
  method: "POST",
135
135
  body: JSON.stringify({
136
136
  url: e,
@@ -141,7 +141,7 @@ var ye = class {
141
141
  async replaceMedia(e, t) {
142
142
  let n = new FormData();
143
143
  n.append("file", t);
144
- let r = M(N["media.replace"], {
144
+ let r = M(P["media.replace"], {
145
145
  ...this.baseParams,
146
146
  media: e
147
147
  }), i = await this.authManager.authenticatedFetch(r, {
@@ -158,9 +158,9 @@ var ye = class {
158
158
  };
159
159
  //#endregion
160
160
  //#region ../media-library/src/composable.ts
161
- function be(t) {
161
+ function xe(t) {
162
162
  if (!t.projectId) throw Error("projectId is required for useMediaLibrary");
163
- let n = new ye(t.authManager), r = e([]), i = e([]), a = e(null), o = e("files"), s = e(""), c = e(null), l = e("newest"), u = e(!1), d = e(!1), f = e(!1), p = e(null), m = e(null), h = e(/* @__PURE__ */ new Set()), g = e(null), _ = e([]), v = e({}), y = e(!1), b = e([]), x = e(!1), S = e(null), C = e(!1), w = e(null), T = e(!1), E = e(null), D = e(null);
163
+ let n = new be(t.authManager), r = e([]), i = e([]), a = e(null), o = e("files"), s = e(""), c = e(null), l = e("newest"), u = e(!1), d = e(!1), f = e(!1), p = e(null), m = e(null), h = e(/* @__PURE__ */ new Set()), g = e(null), _ = e([]), v = e({}), y = e(!1), b = e([]), x = e(!1), S = e(null), C = e(!1), w = e(null), T = e(!1), E = e(null), D = e(null);
164
164
  async function O() {
165
165
  u.value = !0;
166
166
  try {
@@ -205,13 +205,13 @@ function be(t) {
205
205
  async function ee(e) {
206
206
  l.value = e, await O();
207
207
  }
208
- async function M(e) {
208
+ async function te(e) {
209
209
  o.value = "files", a.value = e, s.value = "", h.value = /* @__PURE__ */ new Set(), g.value = null, await O();
210
210
  }
211
- async function N() {
212
- o.value = "frequently-used", a.value = null, s.value = "", h.value = /* @__PURE__ */ new Set(), g.value = null, await R();
211
+ async function M() {
212
+ o.value = "frequently-used", a.value = null, s.value = "", h.value = /* @__PURE__ */ new Set(), g.value = null, await L();
213
213
  }
214
- async function P(e) {
214
+ async function N(e) {
215
215
  d.value = !0;
216
216
  try {
217
217
  let t = await n.uploadMedia(e, a.value);
@@ -222,7 +222,7 @@ function be(t) {
222
222
  d.value = !1;
223
223
  }
224
224
  }
225
- async function F(e) {
225
+ async function P(e) {
226
226
  d.value = !0, m.value = {
227
227
  current: 0,
228
228
  total: e.length
@@ -243,7 +243,7 @@ function be(t) {
243
243
  d.value = !1, m.value = null;
244
244
  }
245
245
  }
246
- async function te(e) {
246
+ async function F(e) {
247
247
  if (h.value.size !== 0) try {
248
248
  let t = await n.moveMedia([...h.value], e);
249
249
  if (a.value === null) {
@@ -263,21 +263,21 @@ function be(t) {
263
263
  t.onError?.(e);
264
264
  }
265
265
  }
266
- async function L() {
266
+ async function ne() {
267
267
  if (h.value.size !== 0) try {
268
268
  await n.deleteMedia([...h.value]), r.value = r.value.filter((e) => !h.value.has(e.id)), _.value = _.value.filter((e) => !h.value.has(e.id)), h.value = /* @__PURE__ */ new Set(), g.value = null;
269
269
  } catch (e) {
270
270
  t.onError?.(e);
271
271
  }
272
272
  }
273
- async function R() {
273
+ async function L() {
274
274
  try {
275
275
  _.value = await n.getFrequentlyUsed();
276
276
  } catch (e) {
277
277
  t.onError?.(e);
278
278
  }
279
279
  }
280
- async function ne() {
280
+ async function re() {
281
281
  if (h.value.size === 0) return !1;
282
282
  b.value = [...h.value];
283
283
  try {
@@ -289,17 +289,17 @@ function be(t) {
289
289
  return t.onError?.(e), !1;
290
290
  }
291
291
  }
292
- async function z() {
292
+ async function R() {
293
293
  if (y.value = !1, b.value.length !== 0) try {
294
294
  await n.deleteMedia(b.value), r.value = r.value.filter((e) => !b.value.includes(e.id)), _.value = _.value.filter((e) => !b.value.includes(e.id)), h.value = /* @__PURE__ */ new Set(), g.value = null, b.value = [], v.value = {};
295
295
  } catch (e) {
296
296
  t.onError?.(e);
297
297
  }
298
298
  }
299
- function re() {
299
+ function ie() {
300
300
  y.value = !1, b.value = [], v.value = {};
301
301
  }
302
- async function ie(e) {
302
+ async function ae(e) {
303
303
  x.value = !0, S.value = null;
304
304
  try {
305
305
  let t = await n.importFromUrl(e, a.value);
@@ -310,57 +310,57 @@ function be(t) {
310
310
  x.value = !1;
311
311
  }
312
312
  }
313
- function ae(e) {
313
+ function oe(e) {
314
314
  let t = new Set(h.value);
315
315
  t.has(e) ? t.delete(e) : t.add(e), h.value = t;
316
316
  }
317
- function oe() {
317
+ function se() {
318
318
  h.value = /* @__PURE__ */ new Set(), g.value = null;
319
319
  }
320
- function se(e) {
320
+ function ce(e) {
321
321
  g.value = e, h.value = new Set([e.id]);
322
322
  }
323
- async function ce() {
323
+ async function le() {
324
324
  try {
325
325
  i.value = await n.getMediaFolders();
326
326
  } catch (e) {
327
327
  t.onError?.(e);
328
328
  }
329
329
  }
330
- async function le(e, r) {
330
+ async function ue(e, r) {
331
331
  try {
332
332
  let t = await n.createMediaFolder(e, r);
333
- return await ce(), t;
333
+ return await le(), t;
334
334
  } catch (e) {
335
335
  return t.onError?.(e), null;
336
336
  }
337
337
  }
338
- function ue(e, t) {
338
+ function de(e, t) {
339
339
  for (let n of e) {
340
340
  if (n.id === t) return n;
341
341
  if (n.children) {
342
- let e = ue(n.children, t);
342
+ let e = de(n.children, t);
343
343
  if (e) return e;
344
344
  }
345
345
  }
346
346
  return null;
347
347
  }
348
- async function de(e, r) {
348
+ async function fe(e, r) {
349
349
  try {
350
- await n.renameMediaFolder(e, r), await ce();
350
+ await n.renameMediaFolder(e, r), await le();
351
351
  } catch (e) {
352
352
  t.onError?.(e);
353
353
  }
354
354
  }
355
- async function fe(e) {
355
+ async function pe(e) {
356
356
  try {
357
- let t = ue(i.value, e)?.parent_id ?? null;
358
- await n.deleteMediaFolder(e), a.value === e && (a.value = t), await ce(), await O();
357
+ let t = de(i.value, e)?.parent_id ?? null;
358
+ await n.deleteMediaFolder(e), a.value === e && (a.value = t), await le(), await O();
359
359
  } catch (e) {
360
360
  t.onError?.(e);
361
361
  }
362
362
  }
363
- async function pe(e) {
363
+ async function me(e) {
364
364
  E.value = e, w.value = null;
365
365
  try {
366
366
  D.value = (await n.checkMediaUsage([e.id])).data[e.id] ?? null, T.value = !0;
@@ -368,10 +368,10 @@ function be(t) {
368
368
  t.onError?.(e);
369
369
  }
370
370
  }
371
- function me() {
371
+ function he() {
372
372
  T.value = !1, E.value = null, D.value = null, w.value = null;
373
373
  }
374
- async function he(e) {
374
+ async function ge(e) {
375
375
  if (!E.value) return null;
376
376
  C.value = !0, w.value = null;
377
377
  try {
@@ -383,7 +383,7 @@ function be(t) {
383
383
  C.value = !1;
384
384
  }
385
385
  }
386
- async function ge(e, i) {
386
+ async function _e(e, i) {
387
387
  try {
388
388
  let t = await n.replaceMedia(e, i);
389
389
  return r.value = r.value.map((e) => e.id === t.id ? t : e), _.value = _.value.map((e) => e.id === t.id ? t : e), g.value?.id === t.id && (g.value = t), t;
@@ -413,42 +413,42 @@ function be(t) {
413
413
  search: A,
414
414
  filterByCategory: j,
415
415
  sortBy: ee,
416
- navigateToFolder: M,
417
- showFrequentlyUsed: N,
418
- uploadFile: P,
419
- uploadFiles: F,
420
- moveSelected: te,
416
+ navigateToFolder: te,
417
+ showFrequentlyUsed: M,
418
+ uploadFile: N,
419
+ uploadFiles: P,
420
+ moveSelected: F,
421
421
  updateFile: I,
422
- deleteSelected: L,
422
+ deleteSelected: ne,
423
423
  isImportingFromUrl: x,
424
424
  importFromUrlError: S,
425
- importFromUrl: ie,
426
- toggleSelection: ae,
427
- clearSelection: oe,
428
- selectItem: se,
429
- loadFolders: ce,
430
- createFolder: le,
431
- renameFolder: de,
432
- deleteFolder: fe,
433
- findFolderInTree: ue,
434
- loadFrequentlyUsed: R,
435
- checkUsageBeforeDelete: ne,
436
- confirmDelete: z,
437
- cancelDelete: re,
425
+ importFromUrl: ae,
426
+ toggleSelection: oe,
427
+ clearSelection: se,
428
+ selectItem: ce,
429
+ loadFolders: le,
430
+ createFolder: ue,
431
+ renameFolder: fe,
432
+ deleteFolder: pe,
433
+ findFolderInTree: de,
434
+ loadFrequentlyUsed: L,
435
+ checkUsageBeforeDelete: re,
436
+ confirmDelete: R,
437
+ cancelDelete: ie,
438
438
  isReplacing: C,
439
439
  replaceError: w,
440
440
  showReplaceWarning: T,
441
441
  pendingReplaceItem: E,
442
442
  replaceUsageInfo: D,
443
- checkUsageBeforeReplace: pe,
444
- cancelReplace: me,
445
- replaceFile: he,
446
- replaceMediaDirectly: ge
443
+ checkUsageBeforeReplace: me,
444
+ cancelReplace: he,
445
+ replaceFile: ge,
446
+ replaceMediaDirectly: _e
447
447
  };
448
448
  }
449
449
  //#endregion
450
450
  //#region ../media-library/src/composables/useI18n.ts
451
- function B(e) {
451
+ function z(e) {
452
452
  let t = e ?? n("translations"), r = o(t) ? t.value : t;
453
453
  function i(e, t) {
454
454
  return e.replace(/\{(\w+)\}/g, (e, n) => n in t ? String(t[n]) : `{${n}}`);
@@ -460,14 +460,14 @@ function B(e) {
460
460
  }
461
461
  //#endregion
462
462
  //#region ../media-library/src/components/media/MediaBreadcrumb.vue?vue&type=script&setup=true&lang.ts
463
- var xe = {
463
+ var Se = {
464
464
  key: 0,
465
465
  class: "tpl:flex tpl:items-center tpl:gap-1 tpl:text-xs",
466
466
  style: { color: "var(--tpl-text-muted)" }
467
- }, Se = ["onClick"], Ce = {
467
+ }, Ce = ["onClick"], we = {
468
468
  key: 1,
469
469
  style: { color: "var(--tpl-text)" }
470
- }, we = /* @__PURE__ */ d({
470
+ }, Te = /* @__PURE__ */ d({
471
471
  __name: "MediaBreadcrumb",
472
472
  props: {
473
473
  folders: {},
@@ -475,7 +475,7 @@ var xe = {
475
475
  },
476
476
  emits: ["navigate"],
477
477
  setup(e, { emit: t }) {
478
- let n = e, i = t, { t: a } = B(), o = E(() => {
478
+ let n = e, i = t, { t: a } = z(), o = E(() => {
479
479
  if (!n.currentFolderId) return [];
480
480
  let e = [];
481
481
  return s(n.folders, n.currentFolderId, e), e;
@@ -487,11 +487,11 @@ var xe = {
487
487
  }
488
488
  return !1;
489
489
  }
490
- return (e, t) => o.value.length > 0 ? (c(), p("div", xe, [w("button", {
490
+ return (e, t) => o.value.length > 0 ? (c(), p("div", Se, [w("button", {
491
491
  class: "tpl:transition-colors tpl:duration-150 tpl:hover:underline",
492
492
  style: { color: "var(--tpl-primary)" },
493
493
  onClick: t[0] ||= (e) => i("navigate", null)
494
- }, C(m(a).mediaLibrary.allFiles), 1), (c(!0), p(v, null, r(o.value, (e, t) => (c(), p(v, { key: e.id }, [h(m(ee), {
494
+ }, C(m(a).mediaLibrary.allFiles), 1), (c(!0), p(v, null, r(o.value, (e, t) => (c(), p(v, { key: e.id }, [h(m(te), {
495
495
  size: 12,
496
496
  "stroke-width": 2
497
497
  }), t < o.value.length - 1 ? (c(), p("button", {
@@ -499,12 +499,12 @@ var xe = {
499
499
  class: "tpl:transition-colors tpl:duration-150 tpl:hover:underline",
500
500
  style: { color: "var(--tpl-primary)" },
501
501
  onClick: (t) => i("navigate", e.id)
502
- }, C(e.name), 9, Se)) : (c(), p("span", Ce, C(e.name), 1))], 64))), 128))])) : b("", !0);
502
+ }, C(e.name), 9, Ce)) : (c(), p("span", we, C(e.name), 1))], 64))), 128))])) : b("", !0);
503
503
  }
504
504
  });
505
505
  //#endregion
506
506
  //#region ../media-library/src/composables/useMediaCategories.ts
507
- function Te() {
507
+ function Ee() {
508
508
  let e = n("planConfig"), t = E(() => e.config.value?.media ?? null), r = E(() => t.value?.use_media_library ?? !0), i = E(() => t.value?.categories ?? null), a = E(() => i.value ? Object.values(i.value).flatMap((e) => e.mime_types) : []), o = E(() => a.value.join(",")), s = E(() => t.value?.max_file_size ?? 0);
509
509
  function c(e, t) {
510
510
  return i.value ? !t || t.length === 0 ? a.value.includes(e) : t.some((t) => i.value[t]?.mime_types.includes(e)) : !1;
@@ -530,14 +530,14 @@ function Te() {
530
530
  }
531
531
  //#endregion
532
532
  //#region ../media-library/src/composables/useImageCrop.ts
533
- var Ee = {
533
+ var De = {
534
534
  free: void 0,
535
535
  square: 1,
536
536
  landscape43: 4 / 3,
537
537
  landscape169: 16 / 9,
538
538
  original: void 0
539
539
  };
540
- function De(e) {
540
+ function Oe(e) {
541
541
  return e === "image/png" || e === "image/gif" ? {
542
542
  mimeType: "image/png",
543
543
  quality: 1
@@ -549,7 +549,7 @@ function De(e) {
549
549
  quality: .92
550
550
  };
551
551
  }
552
- function Oe(e, t, n) {
552
+ function ke(e, t, n) {
553
553
  let r = e.width, i = e.height;
554
554
  if (!t && !n) return e;
555
555
  let a = r, o = i;
@@ -559,7 +559,7 @@ function Oe(e, t, n) {
559
559
  let c = s.getContext("2d");
560
560
  return c && (c.imageSmoothingEnabled = !0, c.imageSmoothingQuality = "high", c.drawImage(e, 0, 0, a, o)), s;
561
561
  }
562
- function ke(e, t, n) {
562
+ function Ae(e, t, n) {
563
563
  return new Promise((r, i) => {
564
564
  e.toBlob((e) => {
565
565
  if (!e) {
@@ -571,7 +571,7 @@ function ke(e, t, n) {
571
571
  }, n.mimeType, n.quality);
572
572
  });
573
573
  }
574
- function Ae(e, t, n, r) {
574
+ function je(e, t, n, r) {
575
575
  let i = e, a = t;
576
576
  if (n && i > n) {
577
577
  let e = n / i;
@@ -588,7 +588,7 @@ function Ae(e, t, n, r) {
588
588
  }
589
589
  //#endregion
590
590
  //#region ../../node_modules/.bun/vue-advanced-cropper@2.8.9+cc44681ce9393ba4/node_modules/vue-advanced-cropper/dist/index.esm-bundler.js
591
- function je(e, t) {
591
+ function Me(e, t) {
592
592
  var n = Object.keys(e);
593
593
  if (Object.getOwnPropertySymbols) {
594
594
  var r = Object.getOwnPropertySymbols(e);
@@ -598,18 +598,18 @@ function je(e, t) {
598
598
  }
599
599
  return n;
600
600
  }
601
- function V(e) {
601
+ function B(e) {
602
602
  for (var t = 1; t < arguments.length; t++) {
603
603
  var n = arguments[t] == null ? {} : arguments[t];
604
- t % 2 ? je(Object(n), !0).forEach((function(t) {
605
- H(e, t, n[t]);
606
- })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : je(Object(n)).forEach((function(t) {
604
+ t % 2 ? Me(Object(n), !0).forEach((function(t) {
605
+ V(e, t, n[t]);
606
+ })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Me(Object(n)).forEach((function(t) {
607
607
  Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
608
608
  }));
609
609
  }
610
610
  return e;
611
611
  }
612
- function H(e, t, n) {
612
+ function V(e, t, n) {
613
613
  return t in e ? Object.defineProperty(e, t, {
614
614
  value: n,
615
615
  enumerable: !0,
@@ -617,7 +617,7 @@ function H(e, t, n) {
617
617
  writable: !0
618
618
  }) : e[t] = n, e;
619
619
  }
620
- function Me(e, t) {
620
+ function Ne(e, t) {
621
621
  if (e == null) return {};
622
622
  var n, r, i = function(e, t) {
623
623
  if (e == null) return {};
@@ -631,28 +631,28 @@ function Me(e, t) {
631
631
  }
632
632
  return i;
633
633
  }
634
- function Ne(e) {
634
+ function Pe(e) {
635
635
  return function(e) {
636
- if (Array.isArray(e)) return Pe(e);
636
+ if (Array.isArray(e)) return Fe(e);
637
637
  }(e) || function(e) {
638
638
  if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
639
639
  }(e) || function(e, t) {
640
640
  if (e) {
641
- if (typeof e == "string") return Pe(e, t);
641
+ if (typeof e == "string") return Fe(e, t);
642
642
  var n = Object.prototype.toString.call(e).slice(8, -1);
643
643
  if (n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set") return Array.from(e);
644
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return Pe(e, t);
644
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return Fe(e, t);
645
645
  }
646
646
  }(e) || function() {
647
647
  throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
648
648
  }();
649
649
  }
650
- function Pe(e, t) {
650
+ function Fe(e, t) {
651
651
  (t == null || t > e.length) && (t = e.length);
652
652
  for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
653
653
  return r;
654
654
  }
655
- var Fe, Ie, Le, U = (Fe = function(e) {
655
+ var Ie, Le, Re, H = (Ie = function(e) {
656
656
  (function() {
657
657
  var t = {}.hasOwnProperty;
658
658
  function n() {
@@ -674,15 +674,15 @@ var Fe, Ie, Le, U = (Fe = function(e) {
674
674
  }
675
675
  e.exports ? (n.default = n, e.exports = n) : window.classNames = n;
676
676
  })();
677
- }, Fe(Le = {
678
- path: Ie,
677
+ }, Ie(Re = {
678
+ path: Le,
679
679
  exports: {},
680
680
  require: function(e, t) {
681
681
  return function() {
682
682
  throw Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs");
683
- }(t == null && Le.path);
683
+ }(t == null && Re.path);
684
684
  }
685
- }, Le.exports), Le.exports), W = function(e) {
685
+ }, Re.exports), Re.exports), U = function(e) {
686
686
  return function(t, n) {
687
687
  if (!t) return e;
688
688
  var r;
@@ -694,7 +694,7 @@ var Fe, Ie, Le, U = (Fe = function(e) {
694
694
  }), "") : "");
695
695
  };
696
696
  };
697
- function Re(e, t, n) {
697
+ function ze(e, t, n) {
698
698
  var r, i, a, o, s;
699
699
  function c() {
700
700
  var l = Date.now() - o;
@@ -712,65 +712,65 @@ function Re(e, t, n) {
712
712
  r &&= (s = e.apply(a, i), a = i = null, clearTimeout(r), null);
713
713
  }, l;
714
714
  }
715
- Re.debounce = Re;
716
- var ze = Re, G = function() {
717
- return G = Object.assign || function(e) {
715
+ ze.debounce = ze;
716
+ var Be = ze, W = function() {
717
+ return W = Object.assign || function(e) {
718
718
  for (var t, n = 1, r = arguments.length; n < r; n++) for (var i in t = arguments[n]) Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]);
719
719
  return e;
720
- }, G.apply(this, arguments);
720
+ }, W.apply(this, arguments);
721
721
  };
722
- function Be(e, t) {
722
+ function Ve(e, t) {
723
723
  var n, r;
724
724
  return e && t ? (n = "" + e + t[0].toUpperCase() + t.slice(1), r = e + "-" + t) : (n = e || t, r = e || t), {
725
725
  name: n,
726
726
  classname: r
727
727
  };
728
728
  }
729
- function Ve(e) {
729
+ function He(e) {
730
730
  return /^blob:/.test(e);
731
731
  }
732
- function He(e) {
733
- return Ve(e) || function(e) {
732
+ function Ue(e) {
733
+ return He(e) || function(e) {
734
734
  return /^data:/.test(e);
735
735
  }(e);
736
736
  }
737
- function Ue(e) {
737
+ function We(e) {
738
738
  return !!(e && e.constructor && e.call && e.apply);
739
739
  }
740
- function K(e) {
740
+ function G(e) {
741
741
  return e === void 0;
742
742
  }
743
- function We(e) {
743
+ function Ge(e) {
744
744
  return typeof e == "object" && !!e;
745
745
  }
746
- function Ge(e, t, n) {
746
+ function Ke(e, t, n) {
747
747
  var r = {};
748
- return We(e) ? (Object.keys(t).forEach((function(i) {
749
- K(e[i]) ? r[i] = t[i] : We(t[i]) ? We(e[i]) ? r[i] = Ge(e[i], t[i], n[i]) : r[i] = e[i] ? t[i] : n[i] : !0 === t[i] || !1 === t[i] ? r[i] = !!e[i] : r[i] = e[i];
748
+ return Ge(e) ? (Object.keys(t).forEach((function(i) {
749
+ G(e[i]) ? r[i] = t[i] : Ge(t[i]) ? Ge(e[i]) ? r[i] = Ke(e[i], t[i], n[i]) : r[i] = e[i] ? t[i] : n[i] : !0 === t[i] || !1 === t[i] ? r[i] = !!e[i] : r[i] = e[i];
750
750
  })), r) : e ? t : n;
751
751
  }
752
- function Ke(e) {
752
+ function qe(e) {
753
753
  var t = Number(e);
754
754
  return Number.isNaN(t) ? e : t;
755
755
  }
756
- function qe(e) {
756
+ function Je(e) {
757
757
  return typeof (e == "number" || function(e) {
758
758
  return typeof e == "object" && !!e;
759
- }(e) && toString.call(e) == "[object Number]") && !Je(e);
759
+ }(e) && toString.call(e) == "[object Number]") && !Ye(e);
760
760
  }
761
- function Je(e) {
761
+ function Ye(e) {
762
762
  return e != e;
763
763
  }
764
- function Ye(e, t) {
764
+ function Xe(e, t) {
765
765
  return Math.sqrt((e.x - t.x) ** 2 + (e.y - t.y) ** 2);
766
766
  }
767
- var Xe = function(e, t) {
767
+ var Ze = function(e, t) {
768
768
  e === void 0 && (e = {}), t === void 0 && (t = {}), this.type = "manipulateImage", this.move = e, this.scale = t;
769
- }, Ze = function(e, t) {
769
+ }, Qe = function(e, t) {
770
770
  t === void 0 && (t = {}), this.type = "resize", this.directions = e, this.params = t;
771
- }, Qe = function(e) {
771
+ }, $e = function(e) {
772
772
  this.type = "move", this.directions = e;
773
- }, $e = function() {
773
+ }, et = function() {
774
774
  function e(e, t, n, r, i) {
775
775
  this.type = "drag", this.nativeEvent = e, this.position = n, this.previousPosition = r, this.element = t, this.anchor = i;
776
776
  }
@@ -788,7 +788,7 @@ var Xe = function(e, t) {
788
788
  top: 0
789
789
  };
790
790
  }, e;
791
- }(), et = {
791
+ }(), tt = {
792
792
  name: "DraggableElement",
793
793
  props: { classname: { type: String } },
794
794
  beforeMount: function() {
@@ -809,7 +809,7 @@ var Xe = function(e, t) {
809
809
  this.hovered && !this.touches.length && (this.hovered = !1, this.$emit("leave"));
810
810
  },
811
811
  onTouchStart: function(e) {
812
- e.cancelable && !this.disabled && e.touches.length === 1 && (this.touches = Ne(e.touches), this.hovered ||= (this.$emit("enter"), !0), e.touches.length && this.initAnchor(this.touches.reduce((function(t, n) {
812
+ e.cancelable && !this.disabled && e.touches.length === 1 && (this.touches = Pe(e.touches), this.hovered ||= (this.$emit("enter"), !0), e.touches.length && this.initAnchor(this.touches.reduce((function(t, n) {
813
813
  return {
814
814
  clientX: t.clientX + n.clientX / e.touches.length,
815
815
  clientY: t.clientY + n.clientY / e.touches.length
@@ -855,11 +855,11 @@ var Xe = function(e, t) {
855
855
  };
856
856
  },
857
857
  processMove: function(e, t) {
858
- var n = Ne(t);
858
+ var n = Pe(t);
859
859
  if (this.touches.length) {
860
860
  if (this.touches.length === 1 && n.length === 1) {
861
861
  var r = this.$refs.draggable;
862
- this.$emit("drag", new $e(e, r, {
862
+ this.$emit("drag", new et(e, r, {
863
863
  left: n[0].clientX,
864
864
  top: n[0].clientY
865
865
  }, {
@@ -881,7 +881,7 @@ var Xe = function(e, t) {
881
881
  "enter"
882
882
  ]
883
883
  };
884
- et.render = function(e, t, n, r, i, o) {
884
+ tt.render = function(e, t, n, r, i, o) {
885
885
  return c(), x("div", {
886
886
  ref: "draggable",
887
887
  class: n.classname,
@@ -899,9 +899,9 @@ et.render = function(e, t, n, r, i, o) {
899
899
  }
900
900
  }, [a(e.$slots, "default")], 34);
901
901
  };
902
- var tt = W("vue-handler-wrapper"), nt = {
902
+ var nt = U("vue-handler-wrapper"), rt = {
903
903
  name: "HandlerWrapper",
904
- components: { DraggableElement: et },
904
+ components: { DraggableElement: tt },
905
905
  props: {
906
906
  horizontalPosition: { type: String },
907
907
  verticalPosition: { type: String },
@@ -913,12 +913,12 @@ var tt = W("vue-handler-wrapper"), nt = {
913
913
  computed: { classes: function() {
914
914
  var e;
915
915
  if (this.horizontalPosition || this.verticalPosition) {
916
- var t, n = Be(this.horizontalPosition, this.verticalPosition);
917
- e = tt((H(t = {}, n.classname, !0), H(t, "disabled", this.disabled), t));
918
- } else e = tt({ disabled: this.disabled });
916
+ var t, n = Ve(this.horizontalPosition, this.verticalPosition);
917
+ e = nt((V(t = {}, n.classname, !0), V(t, "disabled", this.disabled), t));
918
+ } else e = nt({ disabled: this.disabled });
919
919
  return {
920
920
  root: e,
921
- draggable: tt("draggable")
921
+ draggable: nt("draggable")
922
922
  };
923
923
  } },
924
924
  emits: [
@@ -928,7 +928,7 @@ var tt = W("vue-handler-wrapper"), nt = {
928
928
  "drag-end"
929
929
  ]
930
930
  };
931
- nt.render = function(e, t, n, r, o, l) {
931
+ rt.render = function(e, t, n, r, o, l) {
932
932
  var u = s("DraggableElement");
933
933
  return c(), x("div", { class: l.classes.root }, [h(u, {
934
934
  class: l.classes.draggable,
@@ -951,9 +951,9 @@ nt.render = function(e, t, n, r, o, l) {
951
951
  _: 3
952
952
  }, 8, ["class"])], 2);
953
953
  };
954
- var rt = W("vue-line-wrapper"), it = {
954
+ var it = U("vue-line-wrapper"), at = {
955
955
  name: "LineWrapper",
956
- components: { DraggableElement: et },
956
+ components: { DraggableElement: tt },
957
957
  props: {
958
958
  position: {
959
959
  type: String,
@@ -966,7 +966,7 @@ var rt = W("vue-line-wrapper"), it = {
966
966
  },
967
967
  computed: { classname: function() {
968
968
  var e;
969
- return rt((H(e = {}, this.position, !0), H(e, "disabled", this.disabled), e));
969
+ return it((V(e = {}, this.position, !0), V(e, "disabled", this.disabled), e));
970
970
  } },
971
971
  emits: [
972
972
  "leave",
@@ -975,7 +975,7 @@ var rt = W("vue-line-wrapper"), it = {
975
975
  "drag-end"
976
976
  ]
977
977
  };
978
- it.render = function(e, t, n, r, o, l) {
978
+ at.render = function(e, t, n, r, o, l) {
979
979
  var u = s("DraggableElement");
980
980
  return c(), x(u, {
981
981
  class: l.classname,
@@ -998,23 +998,23 @@ it.render = function(e, t, n, r, o, l) {
998
998
  _: 3
999
999
  }, 8, ["class"]);
1000
1000
  };
1001
- var q = [
1001
+ var K = [
1002
1002
  "left",
1003
1003
  "right",
1004
1004
  "top",
1005
1005
  "bottom"
1006
- ], at = ["left", "right"], ot = ["top", "bottom"], st = ["left", "top"], ct = [
1006
+ ], ot = ["left", "right"], st = ["top", "bottom"], ct = ["left", "top"], lt = [
1007
1007
  "fill-area",
1008
1008
  "fit-area",
1009
1009
  "stencil",
1010
1010
  "none"
1011
- ], lt = {
1011
+ ], ut = {
1012
1012
  left: 0,
1013
1013
  top: 0,
1014
1014
  width: 0,
1015
1015
  height: 0
1016
1016
  };
1017
- function ut(e, t, n) {
1017
+ function dt(e, t, n) {
1018
1018
  return !(n ||= [
1019
1019
  "width",
1020
1020
  "height",
@@ -1024,7 +1024,7 @@ function ut(e, t, n) {
1024
1024
  return e[n] !== t[n];
1025
1025
  }));
1026
1026
  }
1027
- function J(e) {
1027
+ function q(e) {
1028
1028
  return {
1029
1029
  left: e.left,
1030
1030
  top: e.top,
@@ -1032,31 +1032,31 @@ function J(e) {
1032
1032
  bottom: e.top + e.height
1033
1033
  };
1034
1034
  }
1035
- function dt(e, t) {
1035
+ function ft(e, t) {
1036
1036
  return {
1037
1037
  left: e.left - t.left,
1038
1038
  top: e.top - t.top
1039
1039
  };
1040
1040
  }
1041
- function Y(e) {
1041
+ function J(e) {
1042
1042
  return {
1043
1043
  left: e.left + e.width / 2,
1044
1044
  top: e.top + e.height / 2
1045
1045
  };
1046
1046
  }
1047
- function ft(e, t) {
1047
+ function pt(e, t) {
1048
1048
  var n = {
1049
1049
  left: 0,
1050
1050
  top: 0,
1051
1051
  right: 0,
1052
1052
  bottom: 0
1053
1053
  };
1054
- return q.forEach((function(r) {
1055
- var i = t[r], a = J(e)[r];
1054
+ return K.forEach((function(r) {
1055
+ var i = t[r], a = q(e)[r];
1056
1056
  n[r] = i !== void 0 && a !== void 0 ? r === "left" || r === "top" ? Math.max(0, i - a) : Math.max(0, a - i) : 0;
1057
1057
  })), n;
1058
1058
  }
1059
- function pt(e, t) {
1059
+ function Y(e, t) {
1060
1060
  return {
1061
1061
  left: e.left - t.left,
1062
1062
  top: e.top - t.top,
@@ -1071,7 +1071,7 @@ function mt(e) {
1071
1071
  };
1072
1072
  }
1073
1073
  function X(e, t) {
1074
- return G(G({}, e), {
1074
+ return W(W({}, e), {
1075
1075
  left: e.left + t.left,
1076
1076
  top: e.top + t.top
1077
1077
  });
@@ -1079,7 +1079,7 @@ function X(e, t) {
1079
1079
  function Z(e, t, n, r) {
1080
1080
  if (t !== 1) {
1081
1081
  if (n) {
1082
- var i = Y(e);
1082
+ var i = J(e);
1083
1083
  return {
1084
1084
  width: e.width * t,
1085
1085
  height: e.height * t,
@@ -1106,7 +1106,7 @@ function gt(e, t) {
1106
1106
  var n = {
1107
1107
  left: 0,
1108
1108
  top: 0
1109
- }, r = ft(e, t);
1109
+ }, r = pt(e, t);
1110
1110
  return r.left && r.left > 0 ? n.left = r.left : r.right && r.right > 0 && (n.left = -r.right), r.top && r.top > 0 ? n.top = r.top : r.bottom && r.bottom > 0 && (n.top = -r.bottom), n;
1111
1111
  }
1112
1112
  function _t(e, t) {
@@ -1144,7 +1144,7 @@ function bt(e, t) {
1144
1144
  };
1145
1145
  }
1146
1146
  function xt(e, t) {
1147
- var n = ft($(e, t), t);
1147
+ var n = pt($(e, t), t);
1148
1148
  return n.left + n.right + n.top + n.bottom ? n.left + n.right > n.top + n.bottom ? Math.min((e.width + n.left + n.right) / e.width, ht(e, t)) : Math.min((e.height + n.top + n.bottom) / e.height, ht(e, t)) : 1;
1149
1149
  }
1150
1150
  function $(e, t, n) {
@@ -1159,7 +1159,7 @@ function St(e) {
1159
1159
  };
1160
1160
  }
1161
1161
  function Ct(e, t) {
1162
- return G(G({}, e), {
1162
+ return W(W({}, e), {
1163
1163
  minWidth: Math.min(t.width, e.minWidth),
1164
1164
  minHeight: Math.min(t.height, e.minHeight),
1165
1165
  maxWidth: Math.min(t.width, e.maxWidth),
@@ -1169,7 +1169,7 @@ function Ct(e, t) {
1169
1169
  function wt(e, t, n) {
1170
1170
  n === void 0 && (n = !0);
1171
1171
  var r = {};
1172
- return q.forEach((function(i) {
1172
+ return K.forEach((function(i) {
1173
1173
  var a = e[i], o = t[i];
1174
1174
  a !== void 0 && o !== void 0 ? r[i] = i === "left" || i === "top" ? n ? Math.max(a, o) : Math.min(a, o) : n ? Math.min(a, o) : Math.max(a, o) : o === void 0 ? a !== void 0 && (r[i] = a) : r[i] = o;
1175
1175
  })), r;
@@ -1239,20 +1239,20 @@ function At(e) {
1239
1239
  return kt({
1240
1240
  coordinates: e,
1241
1241
  positionRestrictions: a,
1242
- event: new Qe({
1242
+ event: new $e({
1243
1243
  left: t.left - e.left,
1244
1244
  top: t.top - e.top
1245
1245
  })
1246
1246
  });
1247
- }, l = G({}, t);
1247
+ }, l = W({}, t);
1248
1248
  return (Array.isArray(n) ? n : [n]).forEach((function(e) {
1249
1249
  var t = {};
1250
- K((t = typeof e == "function" ? e({
1250
+ G((t = typeof e == "function" ? e({
1251
1251
  coordinates: l,
1252
1252
  imageSize: r,
1253
1253
  visibleArea: s
1254
- }) : e).width) && K(t.height) || (l = function(e, t) {
1255
- return c(G(G(G({}, e), Ot({
1254
+ }) : e).width) && G(t.height) || (l = function(e, t) {
1255
+ return c(W(W(W({}, e), Ot({
1256
1256
  width: t.width,
1257
1257
  height: t.height,
1258
1258
  sizeRestrictions: i,
@@ -1264,12 +1264,12 @@ function At(e) {
1264
1264
  left: e.left,
1265
1265
  top: e.top
1266
1266
  });
1267
- }(l, G(G({}, l), t))), K(t.left) && K(t.top) || (l = c(l, G(G({}, l), t)));
1267
+ }(l, W(W({}, l), t))), G(t.left) && G(t.top) || (l = c(l, W(W({}, l), t)));
1268
1268
  })), l;
1269
1269
  }
1270
1270
  function jt(e) {
1271
- var t = e.getAreaRestrictions, n = e.boundaries, r = e.coordinates, i = e.visibleArea, a = e.stencilSize, o = e.sizeRestrictions, s = e.positionRestrictions, c, l, u, d = G({}, r), f = G({}, i), p = G({}, a);
1272
- c = Q(p), l = Q(d), u === void 0 && (u = .001), (c === 0 || l === 0 ? Math.abs(l - c) < u : Math.abs(l / c) < 1 + u && Math.abs(l / c) > 1 - u) || (d = G(G({}, d), Ot({
1271
+ var t = e.getAreaRestrictions, n = e.boundaries, r = e.coordinates, i = e.visibleArea, a = e.stencilSize, o = e.sizeRestrictions, s = e.positionRestrictions, c, l, u, d = W({}, r), f = W({}, i), p = W({}, a);
1272
+ c = Q(p), l = Q(d), u === void 0 && (u = .001), (c === 0 || l === 0 ? Math.abs(l - c) < u : Math.abs(l / c) < 1 + u && Math.abs(l / c) > 1 - u) || (d = W(W({}, d), Ot({
1273
1273
  sizeRestrictions: o,
1274
1274
  width: d.width,
1275
1275
  height: d.height,
@@ -1282,16 +1282,16 @@ function jt(e) {
1282
1282
  visibleArea: f,
1283
1283
  type: "resize"
1284
1284
  }));
1285
- return m !== 1 && (f = Z(f, m), d = Z(d, m)), f = $(f = X(f, dt(Y(d), Y(f))), t({
1285
+ return m !== 1 && (f = Z(f, m), d = Z(d, m)), f = $(f = X(f, ft(J(d), J(f))), t({
1286
1286
  visibleArea: f,
1287
1287
  type: "move"
1288
1288
  })), {
1289
- coordinates: d = $(d, Tt(J(f), s)),
1289
+ coordinates: d = $(d, Tt(q(f), s)),
1290
1290
  visibleArea: f
1291
1291
  };
1292
1292
  }
1293
1293
  function Mt(e) {
1294
- var t = e.event, n = e.getAreaRestrictions, r = e.boundaries, i = e.coordinates, a = e.visibleArea, o = e.positionRestrictions, s = G({}, i), c = G({}, a);
1294
+ var t = e.event, n = e.getAreaRestrictions, r = e.boundaries, i = e.coordinates, a = e.visibleArea, o = e.positionRestrictions, s = W({}, i), c = W({}, a);
1295
1295
  if (i && a && t.type !== "manipulateImage") {
1296
1296
  var l = {
1297
1297
  width: 0,
@@ -1302,10 +1302,10 @@ function Mt(e) {
1302
1302
  visibleArea: c,
1303
1303
  type: "resize"
1304
1304
  }));
1305
- c = Z(c, u), u !== 1 && (l.height /= u, l.width /= u), c = $(c = X(c, dt(Y(s), Y(c))), n({
1305
+ c = Z(c, u), u !== 1 && (l.height /= u, l.width /= u), c = $(c = X(c, ft(J(s), J(c))), n({
1306
1306
  visibleArea: c,
1307
1307
  type: "move"
1308
- })), s = $(s, Tt(J(c), o));
1308
+ })), s = $(s, Tt(q(c), o));
1309
1309
  }
1310
1310
  return {
1311
1311
  coordinates: s,
@@ -1313,7 +1313,7 @@ function Mt(e) {
1313
1313
  };
1314
1314
  }
1315
1315
  function Nt(e) {
1316
- var t = e.event, n = e.coordinates, r = e.visibleArea, i = e.getAreaRestrictions, a = G({}, r), o = G({}, n);
1316
+ var t = e.event, n = e.coordinates, r = e.visibleArea, i = e.getAreaRestrictions, a = W({}, r), o = W({}, n);
1317
1317
  if (t.type === "setCoordinates") {
1318
1318
  var s = Math.max(0, o.width - a.width), c = Math.max(0, o.height - a.height);
1319
1319
  s > c ? a = Z(a, Math.min(o.width / a.width, ht(a, i({
@@ -1322,7 +1322,7 @@ function Nt(e) {
1322
1322
  })))) : c > s && (a = Z(a, Math.min(o.height / a.height, ht(a, i({
1323
1323
  visibleArea: a,
1324
1324
  type: "resize"
1325
- }))))), a = $(a = X(a, mt(gt(o, J(a)))), i({
1325
+ }))))), a = $(a = X(a, mt(gt(o, q(a)))), i({
1326
1326
  visibleArea: a,
1327
1327
  type: "move"
1328
1328
  }));
@@ -1347,7 +1347,7 @@ function Ft(e) {
1347
1347
  height: .8 * a.height,
1348
1348
  width: .8 * a.height * o
1349
1349
  };
1350
- return Ot(G(G({}, s), {
1350
+ return Ot(W(W({}, s), {
1351
1351
  aspectRatio: r,
1352
1352
  sizeRestrictions: i
1353
1353
  }));
@@ -1375,7 +1375,7 @@ function Lt(e) {
1375
1375
  top: n.top + n.height / 2 - o.height / 2,
1376
1376
  width: o.width,
1377
1377
  height: o.height
1378
- }, c = ft(n, J(G({
1378
+ }, c = pt(n, q(W({
1379
1379
  left: 0,
1380
1380
  top: 0
1381
1381
  }, r))), l = {};
@@ -1393,10 +1393,10 @@ function Lt(e) {
1393
1393
  };
1394
1394
  }
1395
1395
  function Rt(e, t) {
1396
- return wt(e, J(t));
1396
+ return wt(e, q(t));
1397
1397
  }
1398
1398
  function zt(e) {
1399
- var t = e.event, n = e.coordinates, r = e.visibleArea, i = e.sizeRestrictions, a = e.getAreaRestrictions, o = e.positionRestrictions, s = e.adjustStencil, c = t.scale, l = t.move, u = G({}, r), d = G({}, n), f = 1, p = 1, m = c.factor && Math.abs(c.factor - 1) > .001;
1399
+ var t = e.event, n = e.coordinates, r = e.visibleArea, i = e.sizeRestrictions, a = e.getAreaRestrictions, o = e.positionRestrictions, s = e.adjustStencil, c = t.scale, l = t.move, u = W({}, r), d = W({}, n), f = 1, p = 1, m = c.factor && Math.abs(c.factor - 1) > .001;
1400
1400
  u = X(u, {
1401
1401
  left: l.left || 0,
1402
1402
  top: l.top || 0
@@ -1421,49 +1421,49 @@ function zt(e) {
1421
1421
  })), a({
1422
1422
  visibleArea: u,
1423
1423
  type: "move"
1424
- })), d.width *= p, d.height *= p, d.left = u.left + g * p, d.top = u.top + v * p, d = $(d, Tt(J(u), o)), c.factor && m && s && (c.factor > 1 ? f = Math.min(h.area.maximum, c.factor) / p : c.factor < 1 && (f = Math.max(d.height / u.height, d.width / u.width, c.factor / p)), f !== 1 && (u = X(u = $(u = Z(u, f, c.factor > 1 ? c.center : Y(d)), a({
1424
+ })), d.width *= p, d.height *= p, d.left = u.left + g * p, d.top = u.top + v * p, d = $(d, Tt(q(u), o)), c.factor && m && s && (c.factor > 1 ? f = Math.min(h.area.maximum, c.factor) / p : c.factor < 1 && (f = Math.max(d.height / u.height, d.width / u.width, c.factor / p)), f !== 1 && (u = X(u = $(u = Z(u, f, c.factor > 1 ? c.center : J(d)), a({
1425
1425
  visibleArea: u,
1426
1426
  type: "move"
1427
- })), mt(gt(d, J(u)))))), {
1427
+ })), mt(gt(d, q(u)))))), {
1428
1428
  coordinates: d,
1429
1429
  visibleArea: u
1430
1430
  };
1431
1431
  }
1432
1432
  function Bt(e) {
1433
- var t = e.aspectRatio, n = e.getAreaRestrictions, r = e.coordinates, i = e.visibleArea, a = e.sizeRestrictions, o = e.positionRestrictions, s = e.imageSize, c = e.previousImageSize, l = e.angle, u = G({}, r), d = G({}, i), f = bt(Y(G({
1433
+ var t = e.aspectRatio, n = e.getAreaRestrictions, r = e.coordinates, i = e.visibleArea, a = e.sizeRestrictions, o = e.positionRestrictions, s = e.imageSize, c = e.previousImageSize, l = e.angle, u = W({}, r), d = W({}, i), f = bt(J(W({
1434
1434
  left: 0,
1435
1435
  top: 0
1436
1436
  }, c)), l);
1437
- return (u = G(G({}, Ot({
1437
+ return (u = W(W({}, Ot({
1438
1438
  sizeRestrictions: a,
1439
1439
  aspectRatio: t,
1440
1440
  width: u.width,
1441
1441
  height: u.height
1442
- })), bt(Y(u), l))).left -= f.left - s.width / 2 + u.width / 2, u.top -= f.top - s.height / 2 + u.height / 2, d = Z(d, xt(d, n({
1442
+ })), bt(J(u), l))).left -= f.left - s.width / 2 + u.width / 2, u.top -= f.top - s.height / 2 + u.height / 2, d = Z(d, xt(d, n({
1443
1443
  visibleArea: d,
1444
1444
  type: "resize"
1445
1445
  }))), {
1446
1446
  coordinates: u = $(u, o),
1447
- visibleArea: d = $(d = X(d, dt(Y(u), Y(r))), n({
1447
+ visibleArea: d = $(d = X(d, ft(J(u), J(r))), n({
1448
1448
  visibleArea: d,
1449
1449
  type: "move"
1450
1450
  }))
1451
1451
  };
1452
1452
  }
1453
1453
  function Vt(e) {
1454
- var t = e.flip, n = e.previousFlip, r = e.rotate, i = e.getAreaRestrictions, a = e.coordinates, o = e.visibleArea, s = e.imageSize, c = G({}, a), l = G({}, o), u = n.horizontal !== t.horizontal, d = n.vertical !== t.vertical;
1454
+ var t = e.flip, n = e.previousFlip, r = e.rotate, i = e.getAreaRestrictions, a = e.coordinates, o = e.visibleArea, s = e.imageSize, c = W({}, a), l = W({}, o), u = n.horizontal !== t.horizontal, d = n.vertical !== t.vertical;
1455
1455
  if (u || d) {
1456
1456
  var f = bt({
1457
1457
  left: s.width / 2,
1458
1458
  top: s.height / 2
1459
- }, -r), p = bt(Y(c), -r), m = bt({
1459
+ }, -r), p = bt(J(c), -r), m = bt({
1460
1460
  left: u ? f.left - (p.left - f.left) : p.left,
1461
1461
  top: d ? f.top - (p.top - f.top) : p.top
1462
1462
  }, r);
1463
- c = X(c, dt(m, Y(c))), p = bt(Y(l), -r), l = $(l = X(l, dt(m = bt({
1463
+ c = X(c, ft(m, J(c))), p = bt(J(l), -r), l = $(l = X(l, ft(m = bt({
1464
1464
  left: u ? f.left - (p.left - f.left) : p.left,
1465
1465
  top: d ? f.top - (p.top - f.top) : p.top
1466
- }, r), Y(l))), i({
1466
+ }, r), J(l))), i({
1467
1467
  visibleArea: l,
1468
1468
  type: "move"
1469
1469
  }));
@@ -1474,10 +1474,10 @@ function Vt(e) {
1474
1474
  };
1475
1475
  }
1476
1476
  function Ht(e) {
1477
- var t = e.directions, n = e.coordinates, r = e.positionRestrictions, i = r === void 0 ? {} : r, a = e.sizeRestrictions, o = e.preserveRatio, s = e.compensate, c = G({}, t), l = pt(n, c).width, u = pt(n, c).height;
1477
+ var t = e.directions, n = e.coordinates, r = e.positionRestrictions, i = r === void 0 ? {} : r, a = e.sizeRestrictions, o = e.preserveRatio, s = e.compensate, c = W({}, t), l = Y(n, c).width, u = Y(n, c).height;
1478
1478
  l < 0 && (c.left < 0 && c.right < 0 ? (c.left = -(n.width - a.minWidth) / (c.left / c.right), c.right = -(n.width - a.minWidth) / (c.right / c.left)) : c.left < 0 ? c.left = -(n.width - a.minWidth) : c.right < 0 && (c.right = -(n.width - a.minWidth))), u < 0 && (c.top < 0 && c.bottom < 0 ? (c.top = -(n.height - a.minHeight) / (c.top / c.bottom), c.bottom = -(n.height - a.minHeight) / (c.bottom / c.top)) : c.top < 0 ? c.top = -(n.height - a.minHeight) : c.bottom < 0 && (c.bottom = -(n.height - a.minHeight)));
1479
- var d = ft(pt(n, c), i);
1480
- s && (d.left && d.left > 0 && d.right === 0 ? (c.right += d.left, c.left -= d.left) : d.right && d.right > 0 && d.left === 0 && (c.left += d.right, c.right -= d.right), d.top && d.top > 0 && d.bottom === 0 ? (c.bottom += d.top, c.top -= d.top) : d.bottom && d.bottom > 0 && d.top === 0 && (c.top += d.bottom, c.bottom -= d.bottom), d = ft(pt(n, c), i));
1479
+ var d = pt(Y(n, c), i);
1480
+ s && (d.left && d.left > 0 && d.right === 0 ? (c.right += d.left, c.left -= d.left) : d.right && d.right > 0 && d.left === 0 && (c.left += d.right, c.right -= d.right), d.top && d.top > 0 && d.bottom === 0 ? (c.bottom += d.top, c.top -= d.top) : d.bottom && d.bottom > 0 && d.top === 0 && (c.top += d.bottom, c.bottom -= d.bottom), d = pt(Y(n, c), i));
1481
1481
  var f = {
1482
1482
  width: Infinity,
1483
1483
  height: Infinity,
@@ -1486,27 +1486,27 @@ function Ht(e) {
1486
1486
  top: Infinity,
1487
1487
  bottom: Infinity
1488
1488
  };
1489
- if (q.forEach((function(e) {
1489
+ if (K.forEach((function(e) {
1490
1490
  var t = d[e];
1491
1491
  t && c[e] && (f[e] = Math.max(0, 1 - t / c[e]));
1492
1492
  })), o) {
1493
- var p = Math.min.apply(null, q.map((function(e) {
1493
+ var p = Math.min.apply(null, K.map((function(e) {
1494
1494
  return f[e];
1495
1495
  })));
1496
- p !== Infinity && q.forEach((function(e) {
1496
+ p !== Infinity && K.forEach((function(e) {
1497
1497
  c[e] *= p;
1498
1498
  }));
1499
- } else q.forEach((function(e) {
1499
+ } else K.forEach((function(e) {
1500
1500
  f[e] !== Infinity && (c[e] *= f[e]);
1501
1501
  }));
1502
- if (l = pt(n, c).width, u = pt(n, c).height, c.right + c.left && (l > a.maxWidth ? f.width = (a.maxWidth - n.width) / (c.right + c.left) : l < a.minWidth && (f.width = (a.minWidth - n.width) / (c.right + c.left))), c.bottom + c.top && (u > a.maxHeight ? f.height = (a.maxHeight - n.height) / (c.bottom + c.top) : u < a.minHeight && (f.height = (a.minHeight - n.height) / (c.bottom + c.top))), o) {
1502
+ if (l = Y(n, c).width, u = Y(n, c).height, c.right + c.left && (l > a.maxWidth ? f.width = (a.maxWidth - n.width) / (c.right + c.left) : l < a.minWidth && (f.width = (a.minWidth - n.width) / (c.right + c.left))), c.bottom + c.top && (u > a.maxHeight ? f.height = (a.maxHeight - n.height) / (c.bottom + c.top) : u < a.minHeight && (f.height = (a.minHeight - n.height) / (c.bottom + c.top))), o) {
1503
1503
  var m = Math.min(f.width, f.height);
1504
- m !== Infinity && q.forEach((function(e) {
1504
+ m !== Infinity && K.forEach((function(e) {
1505
1505
  c[e] *= m;
1506
1506
  }));
1507
- } else f.width !== Infinity && at.forEach((function(e) {
1507
+ } else f.width !== Infinity && ot.forEach((function(e) {
1508
1508
  c[e] *= f.width;
1509
- })), f.height !== Infinity && ot.forEach((function(e) {
1509
+ })), f.height !== Infinity && st.forEach((function(e) {
1510
1510
  c[e] *= f.height;
1511
1511
  }));
1512
1512
  return c;
@@ -1514,9 +1514,9 @@ function Ht(e) {
1514
1514
  function Ut(e, t, n) {
1515
1515
  return t == 0 && n == 0 ? e / 2 : t == 0 ? 0 : n == 0 ? e : e * Math.abs(t / (t + n));
1516
1516
  }
1517
- var Wt = W("vue-simple-handler"), Gt = W("vue-simple-handler-wrapper"), Kt = {
1517
+ var Wt = U("vue-simple-handler"), Gt = U("vue-simple-handler-wrapper"), Kt = {
1518
1518
  name: "SimpleHandler",
1519
- components: { HandlerWrapper: nt },
1519
+ components: { HandlerWrapper: rt },
1520
1520
  props: {
1521
1521
  defaultClass: { type: String },
1522
1522
  hoverClass: { type: String },
@@ -1532,10 +1532,10 @@ var Wt = W("vue-simple-handler"), Gt = W("vue-simple-handler-wrapper"), Kt = {
1532
1532
  return { hover: !1 };
1533
1533
  },
1534
1534
  computed: { classes: function() {
1535
- var e, t = (H(e = {}, this.horizontalPosition, !!this.horizontalPosition), H(e, this.verticalPosition, !!this.verticalPosition), H(e, `${this.horizontalPosition}-${this.verticalPosition}`, !!(this.verticalPosition && this.horizontalPosition)), H(e, "hover", this.hover), e);
1535
+ var e, t = (V(e = {}, this.horizontalPosition, !!this.horizontalPosition), V(e, this.verticalPosition, !!this.verticalPosition), V(e, `${this.horizontalPosition}-${this.verticalPosition}`, !!(this.verticalPosition && this.horizontalPosition)), V(e, "hover", this.hover), e);
1536
1536
  return {
1537
- default: U(Wt(t), this.defaultClass, this.hover && this.hoverClass),
1538
- wrapper: U(Gt(t), this.wrapperClass)
1537
+ default: H(Wt(t), this.defaultClass, this.hover && this.hoverClass),
1538
+ wrapper: H(Gt(t), this.wrapperClass)
1539
1539
  };
1540
1540
  } },
1541
1541
  methods: {
@@ -1581,9 +1581,9 @@ Kt.render = function(e, t, n, r, a, o) {
1581
1581
  "onLeave"
1582
1582
  ]);
1583
1583
  };
1584
- var qt = W("vue-simple-line"), Jt = W("vue-simple-line-wrapper"), Yt = {
1584
+ var qt = U("vue-simple-line"), Jt = U("vue-simple-line-wrapper"), Yt = {
1585
1585
  name: "SimpleLine",
1586
- components: { LineWrapper: it },
1586
+ components: { LineWrapper: at },
1587
1587
  props: {
1588
1588
  defaultClass: { type: String },
1589
1589
  hoverClass: { type: String },
@@ -1599,8 +1599,8 @@ var qt = W("vue-simple-line"), Jt = W("vue-simple-line-wrapper"), Yt = {
1599
1599
  },
1600
1600
  computed: { classes: function() {
1601
1601
  return {
1602
- root: U(qt(H({}, this.position, !0)), this.defaultClass, this.hover && this.hoverClass),
1603
- wrapper: U(Jt(H({}, this.position, !0)), this.wrapperClass)
1602
+ root: H(qt(V({}, this.position, !0)), this.defaultClass, this.hover && this.hoverClass),
1603
+ wrapper: H(Jt(V({}, this.position, !0)), this.wrapperClass)
1604
1604
  };
1605
1605
  } },
1606
1606
  methods: {
@@ -1644,7 +1644,7 @@ Yt.render = function(e, t, n, r, a, o) {
1644
1644
  "onLeave"
1645
1645
  ]);
1646
1646
  };
1647
- var Xt = W("vue-bounding-box"), Zt = [
1647
+ var Xt = U("vue-bounding-box"), Zt = [
1648
1648
  "east",
1649
1649
  "west",
1650
1650
  null
@@ -1730,7 +1730,7 @@ var Xt = W("vue-bounding-box"), Zt = [
1730
1730
  return Zt.forEach((function(t) {
1731
1731
  Qt.forEach((function(n) {
1732
1732
  if (t !== n) {
1733
- var r = Be(t, n);
1733
+ var r = Ve(t, n);
1734
1734
  e.push({
1735
1735
  name: r.name,
1736
1736
  classname: r.classname,
@@ -1762,8 +1762,8 @@ var Xt = W("vue-bounding-box"), Zt = [
1762
1762
  n.horizontalDirection && n.verticalDirection || !e.lines[n.name] || t.push({
1763
1763
  name: n.name,
1764
1764
  component: e.linesComponent,
1765
- class: U(e.classes.lines.default, e.classes.lines[n.name], !e.resizable && e.classes.lines.disabled),
1766
- wrapperClass: U(e.classes.linesWrappers.default, e.classes.linesWrappers[n.name], !e.resizable && e.classes.linesWrappers.disabled),
1765
+ class: H(e.classes.lines.default, e.classes.lines[n.name], !e.resizable && e.classes.lines.disabled),
1766
+ wrapperClass: H(e.classes.linesWrappers.default, e.classes.linesWrappers[n.name], !e.resizable && e.classes.linesWrappers.disabled),
1767
1767
  hoverClass: e.classes.lines.hover,
1768
1768
  verticalDirection: n.verticalDirection,
1769
1769
  horizontalDirection: n.horizontalDirection,
@@ -1778,8 +1778,8 @@ var Xt = W("vue-bounding-box"), Zt = [
1778
1778
  var a = {
1779
1779
  name: i.name,
1780
1780
  component: e.handlersComponent,
1781
- class: U(e.classes.handlers.default, e.classes.handlers[i.name]),
1782
- wrapperClass: U(e.classes.handlersWrappers.default, e.classes.handlersWrappers[i.name]),
1781
+ class: H(e.classes.handlers.default, e.classes.handlers[i.name]),
1782
+ wrapperClass: H(e.classes.handlersWrappers.default, e.classes.handlersWrappers[i.name]),
1783
1783
  hoverClass: e.classes.handlers.hover,
1784
1784
  verticalDirection: i.verticalDirection,
1785
1785
  horizontalDirection: i.horizontalDirection,
@@ -1788,7 +1788,7 @@ var Xt = W("vue-bounding-box"), Zt = [
1788
1788
  if (n && r) {
1789
1789
  var o = i.horizontalDirection, s = i.verticalDirection, c = o === "east" ? n : o === "west" ? 0 : n / 2, l = s === "south" ? r : s === "north" ? 0 : r / 2;
1790
1790
  a.wrapperClass = Xt("handler"), a.wrapperStyle = { transform: `translate(${c}px, ${l}px)` }, e.transitions && e.transitions.enabled && (a.wrapperStyle.transition = `${e.transitions.time}ms ${e.transitions.timingFunction}`);
1791
- } else a.wrapperClass = Xt("handler", H({}, i.classname, !0));
1791
+ } else a.wrapperClass = Xt("handler", V({}, i.classname, !0));
1792
1792
  t.push(a);
1793
1793
  }
1794
1794
  })), t;
@@ -1814,7 +1814,7 @@ var Xt = W("vue-bounding-box"), Zt = [
1814
1814
  top: 0,
1815
1815
  bottom: 0
1816
1816
  };
1817
- t === "west" ? s.left -= a : t === "east" && (s.right += a), n === "north" ? s.top -= o : n === "south" && (s.bottom += o), !n && t ? r = "width" : n && !t && (r = "height"), this.resizable && this.$emit("resize", new Ze(s, {
1817
+ t === "west" ? s.left -= a : t === "east" && (s.right += a), n === "north" ? s.top -= o : n === "south" && (s.bottom += o), !n && t ? r = "width" : n && !t && (r = "height"), this.resizable && this.$emit("resize", new Qe(s, {
1818
1818
  allowedDirections: {
1819
1819
  left: t === "west" || !t,
1820
1820
  right: t === "east" || !t,
@@ -1888,7 +1888,7 @@ $t.render = function(e, t, n, i, o, s) {
1888
1888
  })), 128))
1889
1889
  ], 6);
1890
1890
  };
1891
- var en = W("vue-draggable-area"), tn = {
1891
+ var en = U("vue-draggable-area"), tn = {
1892
1892
  name: "DraggableArea",
1893
1893
  props: {
1894
1894
  movable: {
@@ -1916,14 +1916,14 @@ var en = W("vue-draggable-area"), tn = {
1916
1916
  onTouchStart: function(e) {
1917
1917
  if (e.cancelable) {
1918
1918
  var t = this.movable && e.touches.length === 1;
1919
- t && (this.touches = Ne(e.touches)), (this.touchStarted || t) && (e.preventDefault(), e.stopPropagation());
1919
+ t && (this.touches = Pe(e.touches)), (this.touchStarted || t) && (e.preventDefault(), e.stopPropagation());
1920
1920
  }
1921
1921
  },
1922
1922
  onTouchEnd: function() {
1923
1923
  this.touchStarted = !1, this.processEnd();
1924
1924
  },
1925
1925
  onTouchMove: function(e) {
1926
- this.touches.length >= 1 && (this.touchStarted ? (this.processMove(e, e.touches), e.preventDefault(), e.stopPropagation()) : Ye({
1926
+ this.touches.length >= 1 && (this.touchStarted ? (this.processMove(e, e.touches), e.preventDefault(), e.stopPropagation()) : Xe({
1927
1927
  x: this.touches[0].clientX,
1928
1928
  y: this.touches[0].clientY
1929
1929
  }, {
@@ -1962,10 +1962,10 @@ var en = W("vue-draggable-area"), tn = {
1962
1962
  };
1963
1963
  },
1964
1964
  processMove: function(e, t) {
1965
- var n = Ne(t);
1965
+ var n = Pe(t);
1966
1966
  if (this.touches.length) {
1967
1967
  var r = this.$refs.container.getBoundingClientRect(), i = r.left, a = r.top;
1968
- this.touches.length === 1 && n.length === 1 && this.$emit("move", new Qe({
1968
+ this.touches.length === 1 && n.length === 1 && this.$emit("move", new $e({
1969
1969
  left: n[0].clientX - (i + this.anchor.x),
1970
1970
  top: n[0].clientY - (a + this.anchor.y)
1971
1971
  }));
@@ -2065,7 +2065,7 @@ function on(e) {
2065
2065
  return null;
2066
2066
  }
2067
2067
  }
2068
- var sn = W("vue-preview-result"), cn = {
2068
+ var sn = U("vue-preview-result"), cn = {
2069
2069
  name: "PreviewResult",
2070
2070
  props: {
2071
2071
  image: { type: Object },
@@ -2089,7 +2089,7 @@ var sn = W("vue-preview-result"), cn = {
2089
2089
  root: sn(),
2090
2090
  wrapper: sn("wrapper"),
2091
2091
  imageWrapper: sn("image-wrapper"),
2092
- image: U(sn("image"), this.imageClass)
2092
+ image: H(sn("image"), this.imageClass)
2093
2093
  };
2094
2094
  },
2095
2095
  wrapperStyle: function() {
@@ -2130,7 +2130,7 @@ function ln(e, t) {
2130
2130
  return e.forEach((function(t) {
2131
2131
  a.left += (t.clientX - r) / e.length, a.top += (t.clientY - i) / e.length;
2132
2132
  })), e.forEach((function(e) {
2133
- o += Ye({
2133
+ o += Xe({
2134
2134
  x: a.left,
2135
2135
  y: a.top
2136
2136
  }, {
@@ -2185,18 +2185,18 @@ var un = {
2185
2185
  window.removeEventListener("mouseup", this.onMouseUp), window.removeEventListener("mousemove", this.onMouseMove), window.removeEventListener("touchmove", this.onTouchMove), window.removeEventListener("touchend", this.onTouchEnd);
2186
2186
  },
2187
2187
  created: function() {
2188
- this.transforming = !1, this.debouncedProcessEnd = ze(this.processEnd), this.touches = [];
2188
+ this.transforming = !1, this.debouncedProcessEnd = Be(this.processEnd), this.touches = [];
2189
2189
  },
2190
2190
  methods: {
2191
2191
  processMove: function(e, t) {
2192
2192
  if (this.touches.length) {
2193
- if (this.touches.length === 1 && t.length === 1) this.$emit("move", new Xe({
2193
+ if (this.touches.length === 1 && t.length === 1) this.$emit("move", new Ze({
2194
2194
  left: this.touches[0].clientX - t[0].clientX,
2195
2195
  top: this.touches[0].clientY - t[0].clientY
2196
2196
  }));
2197
2197
  else if (this.touches.length > 1 && this.touchResize) {
2198
2198
  var n = ln(t, this.$refs.container), r = this.oldGeometricProperties;
2199
- r.count === n.count && r.count > 1 && this.$emit("resize", new Xe({
2199
+ r.count === n.count && r.count > 1 && this.$emit("resize", new Ze({
2200
2200
  left: r.centerMass.left - n.centerMass.left,
2201
2201
  top: r.centerMass.top - n.centerMass.top
2202
2202
  }, {
@@ -2219,7 +2219,7 @@ var un = {
2219
2219
  onTouchStart: function(e) {
2220
2220
  if (e.cancelable && (this.touchMove || this.touchResize && e.touches.length > 1) && this.processEvent(e)) {
2221
2221
  var t = this.$refs.container, n = t.getBoundingClientRect(), r = n.left, i = n.top, a = n.bottom, o = n.right;
2222
- this.touches = Ne(e.touches).filter((function(e) {
2222
+ this.touches = Pe(e.touches).filter((function(e) {
2223
2223
  return e.clientX > r && e.clientX < o && e.clientY > i && e.clientY < a;
2224
2224
  })), this.oldGeometricProperties = ln(this.touches, t);
2225
2225
  }
@@ -2230,7 +2230,7 @@ var un = {
2230
2230
  onTouchMove: function(e) {
2231
2231
  var t = this;
2232
2232
  if (this.touches.length) {
2233
- var n = Ne(e.touches).filter((function(e) {
2233
+ var n = Pe(e.touches).filter((function(e) {
2234
2234
  return !e.identifier || t.touches.find((function(t) {
2235
2235
  return t.identifier === e.identifier;
2236
2236
  }));
@@ -2256,11 +2256,11 @@ var un = {
2256
2256
  },
2257
2257
  onWheel: function(e) {
2258
2258
  if (this.wheelResize && this.processEvent(e)) {
2259
- var t = this.$refs.container.getBoundingClientRect(), n = t.left, r = t.top, i = 1 + this.wheelResize.ratio * (o = e.deltaY || e.detail || e.wheelDelta, (s = +o) == 0 || Je(s) ? s : s > 0 ? 1 : -1), a = {
2259
+ var t = this.$refs.container.getBoundingClientRect(), n = t.left, r = t.top, i = 1 + this.wheelResize.ratio * (o = e.deltaY || e.detail || e.wheelDelta, (s = +o) == 0 || Ye(s) ? s : s > 0 ? 1 : -1), a = {
2260
2260
  left: e.clientX - n,
2261
2261
  top: e.clientY - r
2262
2262
  };
2263
- this.$emit("resize", new Xe({}, {
2263
+ this.$emit("resize", new Ze({}, {
2264
2264
  factor: i,
2265
2265
  center: a
2266
2266
  })), this.touches.length || this.debouncedProcessEnd();
@@ -2335,7 +2335,7 @@ dn.render = function(e, t, n, r, o, l) {
2335
2335
  "wheel-resize"
2336
2336
  ]);
2337
2337
  };
2338
- var fn = W("vue-preview"), pn = {
2338
+ var fn = U("vue-preview"), pn = {
2339
2339
  props: {
2340
2340
  coordinates: { type: Object },
2341
2341
  transitions: { type: Object },
@@ -2368,7 +2368,7 @@ var fn = W("vue-preview"), pn = {
2368
2368
  root: fn({ fill: this.fill }),
2369
2369
  wrapper: fn("wrapper"),
2370
2370
  imageWrapper: fn("image-wrapper"),
2371
- image: U(fn("image"), this.imageClass)
2371
+ image: H(fn("image"), this.imageClass)
2372
2372
  };
2373
2373
  },
2374
2374
  style: function() {
@@ -2387,7 +2387,7 @@ var fn = W("vue-preview"), pn = {
2387
2387
  },
2388
2388
  imageStyle: function() {
2389
2389
  if (this.coordinates && this.image) {
2390
- var e = this.coordinates.width / this.size.width, t = V(V({
2390
+ var e = this.coordinates.width / this.size.width, t = B(B({
2391
2391
  rotate: 0,
2392
2392
  flip: {
2393
2393
  horizontal: !1,
@@ -2483,7 +2483,7 @@ mn.render = function(e, t, n, r, i, a) {
2483
2483
  var o = s("preview");
2484
2484
  return c(), x(o, l(e.$attrs, { fill: !0 }), null, 16);
2485
2485
  };
2486
- var hn = W("vue-rectangle-stencil"), gn = {
2486
+ var hn = U("vue-rectangle-stencil"), gn = {
2487
2487
  name: "RectangleStencil",
2488
2488
  components: {
2489
2489
  StencilPreview: mn,
@@ -2558,13 +2558,13 @@ var hn = W("vue-rectangle-stencil"), gn = {
2558
2558
  computed: {
2559
2559
  classes: function() {
2560
2560
  return {
2561
- stencil: U(hn({
2561
+ stencil: H(hn({
2562
2562
  movable: this.movable,
2563
2563
  moving: this.moving,
2564
2564
  resizing: this.resizing
2565
2565
  }), this.moving && this.movingClass, this.resizing && this.resizingClass),
2566
- preview: U(hn("preview"), this.previewClass),
2567
- boundingBox: U(hn("bounding-box"), this.boundingBoxClass)
2566
+ preview: H(hn("preview"), this.previewClass),
2567
+ boundingBox: H(hn("bounding-box"), this.boundingBoxClass)
2568
2568
  };
2569
2569
  },
2570
2570
  style: function() {
@@ -2674,7 +2674,7 @@ gn.render = function(e, t, n, r, a, o) {
2674
2674
  "onResizeEnd"
2675
2675
  ])], 6);
2676
2676
  };
2677
- var _n = W("vue-circle-stencil"), vn = {
2677
+ var _n = U("vue-circle-stencil"), vn = {
2678
2678
  components: {
2679
2679
  StencilPreview: mn,
2680
2680
  BoundingBox: $t,
@@ -2755,13 +2755,13 @@ var _n = W("vue-circle-stencil"), vn = {
2755
2755
  computed: {
2756
2756
  classes: function() {
2757
2757
  return {
2758
- stencil: U(_n({
2758
+ stencil: H(_n({
2759
2759
  movable: this.movable,
2760
2760
  moving: this.moving,
2761
2761
  resizing: this.resizing
2762
2762
  }), this.moving && this.movingClass, this.resizing && this.resizingClass),
2763
- preview: U(_n("preview"), this.previewClass),
2764
- boundingBox: U(_n("bounding-box"), this.boundingBoxClass)
2763
+ preview: H(_n("preview"), this.previewClass),
2764
+ boundingBox: H(_n("bounding-box"), this.boundingBoxClass)
2765
2765
  };
2766
2766
  },
2767
2767
  style: function() {
@@ -2871,7 +2871,7 @@ vn.render = function(e, t, n, r, a, o) {
2871
2871
  "onResizeEnd"
2872
2872
  ])], 6);
2873
2873
  };
2874
- var yn = ["transitions"], bn = W("vue-advanced-cropper"), xn = {
2874
+ var yn = ["transitions"], bn = U("vue-advanced-cropper"), xn = {
2875
2875
  name: "Cropper",
2876
2876
  components: { BackgroundWrapper: dn },
2877
2877
  props: {
@@ -2937,7 +2937,7 @@ var yn = ["transitions"], bn = W("vue-advanced-cropper"), xn = {
2937
2937
  type: String,
2938
2938
  default: "fit-area",
2939
2939
  validator: function(e) {
2940
- return ct.indexOf(e) !== -1;
2940
+ return lt.indexOf(e) !== -1;
2941
2941
  }
2942
2942
  },
2943
2943
  roundResult: {
@@ -2971,24 +2971,24 @@ var yn = ["transitions"], bn = W("vue-advanced-cropper"), xn = {
2971
2971
  resizeAlgorithm: {
2972
2972
  type: Function,
2973
2973
  default: function(e) {
2974
- var t = e.event, n = e.coordinates, r = e.aspectRatio, i = e.positionRestrictions, a = e.sizeRestrictions, o = G(G({}, n), {
2974
+ var t = e.event, n = e.coordinates, r = e.aspectRatio, i = e.positionRestrictions, a = e.sizeRestrictions, o = W(W({}, n), {
2975
2975
  right: n.left + n.width,
2976
2976
  bottom: n.top + n.height
2977
- }), s = t.params || {}, c = G({}, t.directions), l = s.allowedDirections || {
2977
+ }), s = t.params || {}, c = W({}, t.directions), l = s.allowedDirections || {
2978
2978
  left: !0,
2979
2979
  right: !0,
2980
2980
  bottom: !0,
2981
2981
  top: !0
2982
2982
  };
2983
- a.widthFrozen && (c.left = 0, c.right = 0), a.heightFrozen && (c.top = 0, c.bottom = 0), q.forEach((function(e) {
2983
+ a.widthFrozen && (c.left = 0, c.right = 0), a.heightFrozen && (c.top = 0, c.bottom = 0), K.forEach((function(e) {
2984
2984
  l[e] || (c[e] = 0);
2985
2985
  }));
2986
- var u = pt(o, c = Ht({
2986
+ var u = Y(o, c = Ht({
2987
2987
  coordinates: o,
2988
2988
  directions: c,
2989
2989
  sizeRestrictions: a,
2990
2990
  positionRestrictions: i
2991
- })).width, d = pt(o, c).height, f = s.preserveRatio ? Q(o) : _t(u / d, r);
2991
+ })).width, d = Y(o, c).height, f = s.preserveRatio ? Q(o) : _t(u / d, r);
2992
2992
  if (f) {
2993
2993
  var p = s.respectDirection;
2994
2994
  if (p ||= o.width >= o.height || f === 1 ? "width" : "height", p === "width") {
@@ -3013,10 +3013,10 @@ var yn = ["transitions"], bn = W("vue-advanced-cropper"), xn = {
3013
3013
  compensate: s.compensate
3014
3014
  });
3015
3015
  }
3016
- return u = pt(o, c).width, d = pt(o, c).height, (f = s.preserveRatio ? Q(o) : _t(u / d, r)) && Math.abs(f - u / d) > .001 && q.forEach((function(e) {
3016
+ return u = Y(o, c).width, d = Y(o, c).height, (f = s.preserveRatio ? Q(o) : _t(u / d, r)) && Math.abs(f - u / d) > .001 && K.forEach((function(e) {
3017
3017
  l[e] || (c[e] = 0);
3018
3018
  })), kt({
3019
- event: new Qe({
3019
+ event: new $e({
3020
3020
  left: -c.left,
3021
3021
  top: -c.top
3022
3022
  }),
@@ -3044,7 +3044,7 @@ var yn = ["transitions"], bn = W("vue-advanced-cropper"), xn = {
3044
3044
  fitCoordinates: {
3045
3045
  type: Function,
3046
3046
  default: function(e) {
3047
- var t = e.visibleArea, n = e.coordinates, r = e.aspectRatio, i = e.sizeRestrictions, a = e.positionRestrictions, o = G(G({}, n), Ot({
3047
+ var t = e.visibleArea, n = e.coordinates, r = e.aspectRatio, i = e.sizeRestrictions, a = e.positionRestrictions, o = W(W({}, n), Ot({
3048
3048
  width: n.width,
3049
3049
  height: n.height,
3050
3050
  aspectRatio: r,
@@ -3055,15 +3055,15 @@ var yn = ["transitions"], bn = W("vue-advanced-cropper"), xn = {
3055
3055
  minWidth: Math.min(t.width, i.minWidth)
3056
3056
  }
3057
3057
  }));
3058
- return o = $(o = X(o, dt(Y(n), Y(o))), Tt(J(t), a));
3058
+ return o = $(o = X(o, ft(J(n), J(o))), Tt(q(t), a));
3059
3059
  }
3060
3060
  },
3061
3061
  fitVisibleArea: {
3062
3062
  type: Function,
3063
3063
  default: function(e) {
3064
- var t = e.visibleArea, n = e.boundaries, r = e.getAreaRestrictions, i = e.coordinates, a = G({}, t);
3064
+ var t = e.visibleArea, n = e.boundaries, r = e.getAreaRestrictions, i = e.coordinates, a = W({}, t);
3065
3065
  a.height = a.width / Q(n), a.top += (t.height - a.height) / 2, (i.height - a.height > 0 || i.width - a.width > 0) && (a = Z(a, Math.max(i.height / a.height, i.width / a.width)));
3066
- var o = mt(gt(i, J(a = Z(a, xt(a, r({
3066
+ var o = mt(gt(i, q(a = Z(a, xt(a, r({
3067
3067
  visibleArea: a,
3068
3068
  type: "resize"
3069
3069
  }))))));
@@ -3144,7 +3144,7 @@ var yn = ["transitions"], bn = W("vue-advanced-cropper"), xn = {
3144
3144
  height: 0
3145
3145
  },
3146
3146
  visibleArea: null,
3147
- coordinates: V({}, lt)
3147
+ coordinates: B({}, ut)
3148
3148
  };
3149
3149
  },
3150
3150
  computed: {
@@ -3182,7 +3182,7 @@ var yn = ["transitions"], bn = W("vue-advanced-cropper"), xn = {
3182
3182
  return !!(this.visibleArea && this.imageLoaded);
3183
3183
  },
3184
3184
  settings: function() {
3185
- var e = Ge(this.resizeImage, {
3185
+ var e = Ke(this.resizeImage, {
3186
3186
  touch: !0,
3187
3187
  wheel: { ratio: .1 },
3188
3188
  adjustStencil: !0
@@ -3192,7 +3192,7 @@ var yn = ["transitions"], bn = W("vue-advanced-cropper"), xn = {
3192
3192
  adjustStencil: !1
3193
3193
  });
3194
3194
  return {
3195
- moveImage: Ge(this.moveImage, {
3195
+ moveImage: Ke(this.moveImage, {
3196
3196
  touch: !0,
3197
3197
  mouse: !0
3198
3198
  }, {
@@ -3223,13 +3223,13 @@ var yn = ["transitions"], bn = W("vue-advanced-cropper"), xn = {
3223
3223
  if (this.boundaries.width && this.boundaries.height && this.imageSize.width && this.imageSize.height) {
3224
3224
  var e = this.sizeRestrictionsAlgorithm({
3225
3225
  imageSize: this.imageSize,
3226
- minWidth: K(this.minWidth) ? 0 : Ke(this.minWidth),
3227
- minHeight: K(this.minHeight) ? 0 : Ke(this.minHeight),
3228
- maxWidth: K(this.maxWidth) ? Infinity : Ke(this.maxWidth),
3229
- maxHeight: K(this.maxHeight) ? Infinity : Ke(this.maxHeight)
3226
+ minWidth: G(this.minWidth) ? 0 : qe(this.minWidth),
3227
+ minHeight: G(this.minHeight) ? 0 : qe(this.minHeight),
3228
+ maxWidth: G(this.maxWidth) ? Infinity : qe(this.maxWidth),
3229
+ maxHeight: G(this.maxHeight) ? Infinity : qe(this.maxHeight)
3230
3230
  });
3231
3231
  if (e = function(e) {
3232
- var t = e.areaRestrictions, n = e.sizeRestrictions, r = e.boundaries, i = e.positionRestrictions, a = G(G({}, n), {
3232
+ var t = e.areaRestrictions, n = e.sizeRestrictions, r = e.boundaries, i = e.positionRestrictions, a = W(W({}, n), {
3233
3233
  minWidth: n.minWidth === void 0 ? 0 : n.minWidth,
3234
3234
  minHeight: n.minHeight === void 0 ? 0 : n.minHeight,
3235
3235
  maxWidth: n.maxWidth === void 0 ? Infinity : n.maxWidth,
@@ -3275,14 +3275,14 @@ var yn = ["transitions"], bn = W("vue-advanced-cropper"), xn = {
3275
3275
  classes: function() {
3276
3276
  return {
3277
3277
  cropper: bn(),
3278
- image: U(bn("image"), this.imageClass),
3278
+ image: H(bn("image"), this.imageClass),
3279
3279
  stencil: bn("stencil"),
3280
- boundaries: U(bn("boundaries"), this.boundariesClass),
3281
- stretcher: U(bn("stretcher")),
3282
- background: U(bn("background"), this.backgroundClass),
3283
- foreground: U(bn("foreground"), this.foregroundClass),
3284
- imageWrapper: U(bn("image-wrapper")),
3285
- cropperWrapper: U(bn("cropper-wrapper"))
3280
+ boundaries: H(bn("boundaries"), this.boundariesClass),
3281
+ stretcher: H(bn("stretcher")),
3282
+ background: H(bn("background"), this.backgroundClass),
3283
+ foreground: H(bn("foreground"), this.foregroundClass),
3284
+ imageWrapper: H(bn("image-wrapper")),
3285
+ cropperWrapper: H(bn("cropper-wrapper"))
3286
3286
  };
3287
3287
  },
3288
3288
  stencilCoordinates: function() {
@@ -3319,7 +3319,7 @@ var yn = ["transitions"], bn = W("vue-advanced-cropper"), xn = {
3319
3319
  }, n = {
3320
3320
  left: (1 - 1 / this.coefficient) * e.width / 2,
3321
3321
  top: (1 - 1 / this.coefficient) * e.height / 2
3322
- }, r = V(V({}, this.imageTransforms), {}, {
3322
+ }, r = B(B({}, this.imageTransforms), {}, {
3323
3323
  scaleX: this.imageAttributes.width / e.width * this.imageTransforms.scaleX,
3324
3324
  scaleY: this.imageAttributes.height / e.height * this.imageTransforms.scaleY
3325
3325
  }), i = {
@@ -3368,7 +3368,7 @@ var yn = ["transitions"], bn = W("vue-advanced-cropper"), xn = {
3368
3368
  }
3369
3369
  },
3370
3370
  created: function() {
3371
- this.debouncedUpdate = ze(this.update, this.debounce), this.debouncedDisableTransitions = ze(this.disableTransitions, this.transitionsOptions.time), this.awaiting = !1;
3371
+ this.debouncedUpdate = Be(this.update, this.debounce), this.debouncedDisableTransitions = Be(this.disableTransitions, this.transitionsOptions.time), this.awaiting = !1;
3372
3372
  },
3373
3373
  mounted: function() {
3374
3374
  this.$refs.image.addEventListener("load", this.onSuccessLoadImage), this.$refs.image.addEventListener("error", this.onFailLoadImage), this.onChangeImage(), window.addEventListener("resize", this.refresh), window.addEventListener("orientationchange", this.refresh);
@@ -3378,16 +3378,16 @@ var yn = ["transitions"], bn = W("vue-advanced-cropper"), xn = {
3378
3378
  },
3379
3379
  methods: {
3380
3380
  getResult: function() {
3381
- var e = this.initialized ? this.prepareResult(V({}, this.coordinates)) : this.defaultCoordinates(), t = {
3381
+ var e = this.initialized ? this.prepareResult(B({}, this.coordinates)) : this.defaultCoordinates(), t = {
3382
3382
  rotate: this.imageTransforms.rotate % 360,
3383
- flip: V({}, this.imageTransforms.flip)
3383
+ flip: B({}, this.imageTransforms.flip)
3384
3384
  };
3385
3385
  if (this.src && this.imageLoaded) {
3386
3386
  var n = this;
3387
3387
  return {
3388
3388
  image: this.image,
3389
3389
  coordinates: e,
3390
- visibleArea: this.visibleArea ? V({}, this.visibleArea) : null,
3390
+ visibleArea: this.visibleArea ? B({}, this.visibleArea) : null,
3391
3391
  imageTransforms: t,
3392
3392
  get canvas() {
3393
3393
  return n.canvas ? n.getCanvas() : void 0;
@@ -3397,14 +3397,14 @@ var yn = ["transitions"], bn = W("vue-advanced-cropper"), xn = {
3397
3397
  return {
3398
3398
  image: this.image,
3399
3399
  coordinates: e,
3400
- visibleArea: this.visibleArea ? V({}, this.visibleArea) : null,
3400
+ visibleArea: this.visibleArea ? B({}, this.visibleArea) : null,
3401
3401
  canvas: void 0,
3402
3402
  imageTransforms: t
3403
3403
  };
3404
3404
  },
3405
3405
  zoom: function(e, t) {
3406
3406
  var n = (arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}).transitions, r = n === void 0 || n;
3407
- this.onManipulateImage(new Xe({}, {
3407
+ this.onManipulateImage(new Ze({}, {
3408
3408
  factor: 1 / e,
3409
3409
  center: t
3410
3410
  }), {
@@ -3414,7 +3414,7 @@ var yn = ["transitions"], bn = W("vue-advanced-cropper"), xn = {
3414
3414
  },
3415
3415
  move: function(e, t) {
3416
3416
  var n = (arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}).transitions, r = n === void 0 || n;
3417
- this.onManipulateImage(new Xe({
3417
+ this.onManipulateImage(new Ze({
3418
3418
  left: e || 0,
3419
3419
  top: t || 0
3420
3420
  }), {
@@ -3457,7 +3457,7 @@ var yn = ["transitions"], bn = W("vue-advanced-cropper"), xn = {
3457
3457
  top: Math.round(t.top)
3458
3458
  };
3459
3459
  return i.width > n.maxWidth ? i.width = Math.floor(t.width) : i.width < n.minWidth && (i.width = Math.ceil(t.width)), i.height > n.maxHeight ? i.height = Math.floor(t.height) : i.height < n.minHeight && (i.height = Math.ceil(t.height)), $(i, r);
3460
- }(V(V({}, this.getPublicProperties()), {}, {
3460
+ }(B(B({}, this.getPublicProperties()), {}, {
3461
3461
  positionRestrictions: Rt(this.positionRestrictions, this.visibleArea),
3462
3462
  coordinates: e
3463
3463
  })) : e;
@@ -3479,16 +3479,16 @@ var yn = ["transitions"], bn = W("vue-advanced-cropper"), xn = {
3479
3479
  sizeRestrictions: this.sizeRestrictions,
3480
3480
  stencilSize: this.getStencilSize()
3481
3481
  });
3482
- return V(V({}, a), {}, { changed: !ut(a.visibleArea, t) || !ut(a.coordinates, n) });
3482
+ return B(B({}, a), {}, { changed: !dt(a.visibleArea, t) || !dt(a.coordinates, n) });
3483
3483
  },
3484
3484
  runAutoZoom: function(e) {
3485
- var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = t.transitions, r = n !== void 0 && n, i = Me(t, yn), a = this.processAutoZoom(e, this.visibleArea, this.coordinates, i), o = a.visibleArea, s = a.coordinates, c = a.changed;
3485
+ var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = t.transitions, r = n !== void 0 && n, i = Ne(t, yn), a = this.processAutoZoom(e, this.visibleArea, this.coordinates, i), o = a.visibleArea, s = a.coordinates, c = a.changed;
3486
3486
  r && c && this.enableTransitions(), this.visibleArea = o, this.coordinates = s, r && c && this.debouncedDisableTransitions();
3487
3487
  },
3488
3488
  normalizeEvent: function(e) {
3489
3489
  return function(e) {
3490
3490
  var t = e.event, n = e.visibleArea, r = e.coefficient;
3491
- if (t.type === "manipulateImage") return G(G({}, t), {
3491
+ if (t.type === "manipulateImage") return W(W({}, t), {
3492
3492
  move: {
3493
3493
  left: t.move && t.move.left ? r * t.move.left : 0,
3494
3494
  top: t.move && t.move.top ? r * t.move.top : 0
@@ -3502,19 +3502,19 @@ var yn = ["transitions"], bn = W("vue-advanced-cropper"), xn = {
3502
3502
  }
3503
3503
  });
3504
3504
  if (t.type === "resize") {
3505
- var i = G(G({}, t), { directions: G({}, t.directions) });
3506
- return q.forEach((function(e) {
3505
+ var i = W(W({}, t), { directions: W({}, t.directions) });
3506
+ return K.forEach((function(e) {
3507
3507
  i.directions[e] *= r;
3508
3508
  })), i;
3509
3509
  }
3510
3510
  if (t.type === "move") {
3511
- var a = G(G({}, t), { directions: G({}, t.directions) });
3512
- return st.forEach((function(e) {
3511
+ var a = W(W({}, t), { directions: W({}, t.directions) });
3512
+ return ct.forEach((function(e) {
3513
3513
  a.directions[e] *= r;
3514
3514
  })), a;
3515
3515
  }
3516
3516
  return t;
3517
- }(V(V({}, this.getPublicProperties()), {}, { event: e }));
3517
+ }(B(B({}, this.getPublicProperties()), {}, { event: e }));
3518
3518
  },
3519
3519
  getCanvas: function() {
3520
3520
  if (this.$refs.canvas) {
@@ -3524,12 +3524,12 @@ var yn = ["transitions"], bn = W("vue-advanced-cropper"), xn = {
3524
3524
  height: t.naturalHeight
3525
3525
  }, o = yt(a, r), s = e.getContext("2d");
3526
3526
  e.height = o.height, e.width = o.width, s.save();
3527
- var c = bt(Y(G({
3527
+ var c = bt(J(W({
3528
3528
  left: 0,
3529
3529
  top: 0
3530
3530
  }, a)), r);
3531
3531
  return s.translate(-(c.left - o.width / 2), -(c.top - o.height / 2)), s.rotate(r * Math.PI / 180), s.translate(i.horizontal ? a.width : 0, i.vertical ? a.height : 0), s.scale(i.horizontal ? -1 : 1, i.vertical ? -1 : 1), s.drawImage(t, 0, 0, a.width, a.height), s.restore(), e;
3532
- }(this.$refs.sourceCanvas, t, this.imageTransforms) : t, r = V({
3532
+ }(this.$refs.sourceCanvas, t, this.imageTransforms) : t, r = B({
3533
3533
  minWidth: 0,
3534
3534
  minHeight: 0,
3535
3535
  maxWidth: Infinity,
@@ -3593,7 +3593,7 @@ var yn = ["transitions"], bn = W("vue-advanced-cropper"), xn = {
3593
3593
  if (this.$refs.image) {
3594
3594
  var t = this.defaultSize;
3595
3595
  t ||= this.stencilSize ? It : Ft;
3596
- var n = Ue(t) ? t({
3596
+ var n = We(t) ? t({
3597
3597
  boundaries: this.boundaries,
3598
3598
  imageSize: this.imageSize,
3599
3599
  aspectRatio: this.getAspectRatio(),
@@ -3602,13 +3602,13 @@ var yn = ["transitions"], bn = W("vue-advanced-cropper"), xn = {
3602
3602
  visibleArea: this.visibleArea
3603
3603
  }) : t, r = this.defaultPosition || Pt, i = [n, function(t) {
3604
3604
  var n = t.coordinates;
3605
- return V({}, Ue(r) ? r({
3605
+ return B({}, We(r) ? r({
3606
3606
  coordinates: n,
3607
3607
  imageSize: e.imageSize,
3608
3608
  visibleArea: e.visibleArea
3609
3609
  }) : e.defaultPosition);
3610
3610
  }];
3611
- this.delayedTransforms && i.push.apply(i, Ne(Array.isArray(this.delayedTransforms) ? this.delayedTransforms : [this.delayedTransforms])), this.coordinates = this.applyTransform(i, !0), this.delayedTransforms = null;
3611
+ this.delayedTransforms && i.push.apply(i, Pe(Array.isArray(this.delayedTransforms) ? this.delayedTransforms : [this.delayedTransforms])), this.coordinates = this.applyTransform(i, !0), this.delayedTransforms = null;
3612
3612
  }
3613
3613
  },
3614
3614
  clearImage: function() {
@@ -3638,7 +3638,7 @@ var yn = ["transitions"], bn = W("vue-advanced-cropper"), xn = {
3638
3638
  cropper: n,
3639
3639
  imageSize: e.imageSize
3640
3640
  };
3641
- if (Ue(e.defaultBoundaries) ? e.boundaries = e.defaultBoundaries(t) : e.defaultBoundaries === "fit" ? e.boundaries = function(e) {
3641
+ if (We(e.defaultBoundaries) ? e.boundaries = e.defaultBoundaries(t) : e.defaultBoundaries === "fit" ? e.boundaries = function(e) {
3642
3642
  var t = e.cropper, n = e.imageSize, r = t.clientHeight, i = t.clientWidth, a = r, o = n.width * r / n.height;
3643
3643
  return o > i && (o = i, a = n.height * i / n.width), {
3644
3644
  width: o,
@@ -3655,10 +3655,10 @@ var yn = ["transitions"], bn = W("vue-advanced-cropper"), xn = {
3655
3655
  },
3656
3656
  resetVisibleArea: function() {
3657
3657
  var e = this;
3658
- return this.appliedImageTransforms = V(V({}, this.defaultImageTransforms), {}, { flip: V({}, this.defaultImageTransforms.flip) }), this.updateBoundaries().then((function() {
3658
+ return this.appliedImageTransforms = B(B({}, this.defaultImageTransforms), {}, { flip: B({}, this.defaultImageTransforms.flip) }), this.updateBoundaries().then((function() {
3659
3659
  e.priority !== "visible-area" && (e.visibleArea = null, e.resetCoordinates());
3660
3660
  var t, n, r, i, a, o, s = e.defaultVisibleArea || Lt;
3661
- e.visibleArea = Ue(s) ? s({
3661
+ e.visibleArea = We(s) ? s({
3662
3662
  imageSize: e.imageSize,
3663
3663
  boundaries: e.boundaries,
3664
3664
  coordinates: e.priority === "visible-area" ? null : e.coordinates,
@@ -3668,7 +3668,7 @@ var yn = ["transitions"], bn = W("vue-advanced-cropper"), xn = {
3668
3668
  visibleArea: e.visibleArea,
3669
3669
  boundaries: e.boundaries,
3670
3670
  getAreaRestrictions: e.getAreaRestrictions
3671
- }, n = t.visibleArea, r = t.boundaries, i = t.getAreaRestrictions, a = G({}, n), o = Q(r), a.width / a.height !== o && (a.height = a.width / o), $(a, i({
3671
+ }, n = t.visibleArea, r = t.boundaries, i = t.getAreaRestrictions, a = W({}, n), o = Q(r), a.width / a.height !== o && (a.height = a.width / o), $(a, i({
3672
3672
  visibleArea: a,
3673
3673
  type: "move"
3674
3674
  }))), e.priority === "visible-area" ? e.resetCoordinates() : e.coordinates = e.fitCoordinates({
@@ -3709,7 +3709,7 @@ var yn = ["transitions"], bn = W("vue-advanced-cropper"), xn = {
3709
3709
  var e, t = this;
3710
3710
  if (this.imageLoaded = !1, this.delayedTransforms = null, this.src) {
3711
3711
  if (function(e) {
3712
- if (He(e)) return !1;
3712
+ if (Ue(e)) return !1;
3713
3713
  var t = window.location, n = /(\w+:)?(?:\/\/)([\w.-]+)?(?::(\d+))?\/?/.exec(e) || [], r = {
3714
3714
  protocol: n[1] || "",
3715
3715
  host: n[2] || "",
@@ -3719,7 +3719,7 @@ var yn = ["transitions"], bn = W("vue-advanced-cropper"), xn = {
3719
3719
  };
3720
3720
  return !(!r.protocol && !r.host && !r.port || r.protocol && r.protocol == t.protocol && r.host && r.host == t.host && r.host && i(r) == i(t));
3721
3721
  }(this.src)) {
3722
- var n = K(this.crossOrigin) ? this.canvas : this.crossOrigin;
3722
+ var n = G(this.crossOrigin) ? this.canvas : this.crossOrigin;
3723
3723
  !0 === n && (n = "anonymous"), this.imageAttributes.crossOrigin = n || null;
3724
3724
  }
3725
3725
  if (this.checkOrientation) {
@@ -3762,13 +3762,13 @@ var yn = ["transitions"], bn = W("vue-advanced-cropper"), xn = {
3762
3762
  },
3763
3763
  onParseImage: function(e) {
3764
3764
  var t = this, n = e.source, r = e.arrayBuffer, i = e.orientation;
3765
- this.imageAttributes.revoke && this.imageAttributes.src && URL.revokeObjectURL(this.imageAttributes.src), this.imageAttributes.revoke = !1, r && i && i > 1 ? Ve(n) || !He(n) ? (this.imageAttributes.src = URL.createObjectURL(new Blob([r])), this.imageAttributes.revoke = !0) : this.imageAttributes.src = function(e) {
3765
+ this.imageAttributes.revoke && this.imageAttributes.src && URL.revokeObjectURL(this.imageAttributes.src), this.imageAttributes.revoke = !1, r && i && i > 1 ? He(n) || !Ue(n) ? (this.imageAttributes.src = URL.createObjectURL(new Blob([r])), this.imageAttributes.revoke = !0) : this.imageAttributes.src = function(e) {
3766
3766
  for (var t = [], n = new Uint8Array(e); n.length > 0;) {
3767
3767
  var r = n.subarray(0, 8192);
3768
3768
  t.push(String.fromCharCode.apply(null, Array.from ? Array.from(r) : r.slice())), n = n.subarray(8192);
3769
3769
  }
3770
3770
  return "data:image/jpeg;base64," + btoa(t.join(""));
3771
- }(r) : this.imageAttributes.src = n, Ue(this.defaultTransforms) ? this.appliedImageTransforms = nn(this.defaultTransforms()) : We(this.defaultTransforms) ? this.appliedImageTransforms = nn(this.defaultTransforms) : this.appliedImageTransforms = function(e) {
3771
+ }(r) : this.imageAttributes.src = n, We(this.defaultTransforms) ? this.appliedImageTransforms = nn(this.defaultTransforms()) : Ge(this.defaultTransforms) ? this.appliedImageTransforms = nn(this.defaultTransforms) : this.appliedImageTransforms = function(e) {
3772
3772
  var t = nn({});
3773
3773
  if (e) switch (e) {
3774
3774
  case 2:
@@ -3792,7 +3792,7 @@ var yn = ["transitions"], bn = W("vue-advanced-cropper"), xn = {
3792
3792
  case 8: t.rotate = -90;
3793
3793
  }
3794
3794
  return t;
3795
- }(i), this.defaultImageTransforms = V(V({}, this.appliedImageTransforms), {}, { flip: V({}, this.appliedImageTransforms.flip) }), this.$nextTick((function() {
3795
+ }(i), this.defaultImageTransforms = B(B({}, this.appliedImageTransforms), {}, { flip: B({}, this.appliedImageTransforms.flip) }), this.$nextTick((function() {
3796
3796
  var e = t.$refs.image;
3797
3797
  e && e.complete && (function(e) {
3798
3798
  return !!e.naturalWidth;
@@ -3808,7 +3808,7 @@ var yn = ["transitions"], bn = W("vue-advanced-cropper"), xn = {
3808
3808
  onMove: function(e) {
3809
3809
  var t = this;
3810
3810
  this.transitionsOptions.enabled || this.awaitRender((function() {
3811
- t.coordinates = t.moveAlgorithm(V(V({}, t.getPublicProperties()), {}, {
3811
+ t.coordinates = t.moveAlgorithm(B(B({}, t.getPublicProperties()), {}, {
3812
3812
  positionRestrictions: Rt(t.positionRestrictions, t.visibleArea),
3813
3813
  coordinates: t.coordinates,
3814
3814
  event: t.normalizeEvent(e)
@@ -3819,7 +3819,7 @@ var yn = ["transitions"], bn = W("vue-advanced-cropper"), xn = {
3819
3819
  var t = this;
3820
3820
  this.transitionsOptions.enabled || this.stencilSize && !this.autoZoom || this.awaitRender((function() {
3821
3821
  var n = t.sizeRestrictions, r = Math.min(t.coordinates.width, t.coordinates.height, 20 * t.coefficient);
3822
- t.coordinates = t.resizeAlgorithm(V(V({}, t.getPublicProperties()), {}, {
3822
+ t.coordinates = t.resizeAlgorithm(B(B({}, t.getPublicProperties()), {}, {
3823
3823
  positionRestrictions: Rt(t.positionRestrictions, t.visibleArea),
3824
3824
  sizeRestrictions: {
3825
3825
  maxWidth: Math.min(n.maxWidth, t.visibleArea.width),
@@ -3836,7 +3836,7 @@ var yn = ["transitions"], bn = W("vue-advanced-cropper"), xn = {
3836
3836
  if (!this.transitionsOptions.enabled) {
3837
3837
  var n = t.transitions, r = n !== void 0 && n, i = t.normalize, a = i === void 0 || i;
3838
3838
  r && this.enableTransitions();
3839
- var o = zt(V(V({}, this.getPublicProperties()), {}, {
3839
+ var o = zt(B(B({}, this.getPublicProperties()), {}, {
3840
3840
  event: a ? this.normalizeEvent(e) : e,
3841
3841
  getAreaRestrictions: this.getAreaRestrictions,
3842
3842
  imageRestriction: this.imageRestriction,
@@ -3864,9 +3864,9 @@ var yn = ["transitions"], bn = W("vue-advanced-cropper"), xn = {
3864
3864
  var s = this.$refs.stencil.aspectRatios();
3865
3865
  t = s.minimum, n = s.maximum;
3866
3866
  }
3867
- if (K(t) && (t = K(i) ? a : i), K(n) && (n = K(i) ? o : i), !e && (K(t) || K(n))) {
3867
+ if (G(t) && (t = G(i) ? a : i), G(n) && (n = G(i) ? o : i), !e && (G(t) || G(n))) {
3868
3868
  var c = this.getStencilSize(), l = c ? Q(c) : null;
3869
- K(t) && (t = qe(l) ? l : void 0), K(n) && (n = qe(l) ? l : void 0);
3869
+ G(t) && (t = Je(l) ? l : void 0), G(n) && (n = Je(l) ? l : void 0);
3870
3870
  }
3871
3871
  return {
3872
3872
  minimum: t,
@@ -3884,7 +3884,7 @@ var yn = ["transitions"], bn = W("vue-advanced-cropper"), xn = {
3884
3884
  coefficient: this.coefficient,
3885
3885
  coordinates: this.coordinates,
3886
3886
  aspectRatio: this.getAspectRatio(!0)
3887
- }, t = e.boundaries, n = e.stencilSize, r = e.aspectRatio, _t(Q(i = Ue(n) ? n({
3887
+ }, t = e.boundaries, n = e.stencilSize, r = e.aspectRatio, _t(Q(i = We(n) ? n({
3888
3888
  boundaries: t,
3889
3889
  aspectRatio: r
3890
3890
  }) : n), r) && (i = Ot({
@@ -3929,13 +3929,13 @@ var yn = ["transitions"], bn = W("vue-advanced-cropper"), xn = {
3929
3929
  };
3930
3930
  },
3931
3931
  defaultCoordinates: function() {
3932
- return V({}, lt);
3932
+ return B({}, ut);
3933
3933
  },
3934
3934
  flip: function(e, t) {
3935
3935
  var n = (arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}).transitions, r = n === void 0 || n;
3936
3936
  if (!this.transitionsActive) {
3937
3937
  r && this.enableTransitions();
3938
- var i = V({}, this.imageTransforms.flip), a = Vt({
3938
+ var i = B({}, this.imageTransforms.flip), a = Vt({
3939
3939
  flip: {
3940
3940
  horizontal: e ? !i.horizontal : i.horizontal,
3941
3941
  vertical: t ? !i.vertical : i.vertical
@@ -3957,7 +3957,7 @@ var yn = ["transitions"], bn = W("vue-advanced-cropper"), xn = {
3957
3957
  var t = (arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}).transitions, n = t === void 0 || t;
3958
3958
  if (!this.transitionsActive) {
3959
3959
  n && this.enableTransitions();
3960
- var r = V({}, this.imageSize);
3960
+ var r = B({}, this.imageSize);
3961
3961
  this.appliedImageTransforms.rotate += e;
3962
3962
  var i = Bt({
3963
3963
  visibleArea: this.visibleArea,
@@ -4121,54 +4121,54 @@ var wn = ["data-tpl-theme"], Tn = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, En
4121
4121
  },
4122
4122
  emits: ["save", "close"],
4123
4123
  setup(a, { emit: o }) {
4124
- let s = a, l = o, { t: u } = B(), d = n("tplUiTheme"), g = u.mediaLibrary, { isImageMimeType: S } = Te(), j = e(""), ee = e(""), M = e(null), N = e("free"), P = e(void 0), F = e(void 0), te = e(""), I = e(""), L = e(void 0), R = e(null), ne = e(!1), z = e(!1), re = e(!1), ie = E(() => s.item ? [
4124
+ let s = a, l = o, { t: u } = z(), d = n("tplUiTheme"), g = u.mediaLibrary, { isImageMimeType: S } = Ee(), j = e(""), ee = e(""), te = e(null), M = e("free"), N = e(void 0), P = e(void 0), F = e(""), I = e(""), ne = e(void 0), L = e(null), re = e(!1), R = e(!1), ie = e(!1), ae = E(() => s.item ? [
4125
4125
  "image/jpeg",
4126
4126
  "image/png",
4127
4127
  "image/webp",
4128
4128
  "image/gif"
4129
- ].includes(s.item.mime_type) : !1), ae = E(() => N.value === "original" ? L.value : Ee[N.value]), oe = E(() => R.value ? Ae(R.value.width, R.value.height, P.value, F.value) : null);
4129
+ ].includes(s.item.mime_type) : !1), oe = E(() => M.value === "original" ? ne.value : De[M.value]), se = E(() => L.value ? je(L.value.width, L.value.height, N.value, P.value) : null);
4130
4130
  t(() => s.visible, (e) => {
4131
- e && s.item && (j.value = s.item.filename, ee.value = s.item.alt_text || "", N.value = "free", P.value = void 0, F.value = void 0, te.value = "", I.value = "", L.value = void 0, R.value = null, ne.value = !1, re.value = !1, s.item.width && s.item.height && (L.value = s.item.width / s.item.height));
4131
+ e && s.item && (j.value = s.item.filename, ee.value = s.item.alt_text || "", M.value = "free", N.value = void 0, P.value = void 0, F.value = "", I.value = "", ne.value = void 0, L.value = null, re.value = !1, ie.value = !1, s.item.width && s.item.height && (ne.value = s.item.width / s.item.height));
4132
4132
  });
4133
- function se(e) {
4134
- e.coordinates && (R.value = {
4133
+ function ce(e) {
4134
+ e.coordinates && (L.value = {
4135
4135
  width: Math.round(e.coordinates.width),
4136
4136
  height: Math.round(e.coordinates.height)
4137
- }, re.value = !0);
4137
+ }, ie.value = !0);
4138
4138
  }
4139
- function ce() {
4140
- ne.value = !0, !L.value && s.item?.width && s.item?.height && (L.value = s.item.width / s.item.height);
4139
+ function le() {
4140
+ re.value = !0, !ne.value && s.item?.width && s.item?.height && (ne.value = s.item.width / s.item.height);
4141
4141
  }
4142
- function le(e) {
4142
+ function ue(e) {
4143
4143
  let t = e.target.value;
4144
- te.value = t, P.value = t && parseInt(t, 10) || void 0;
4144
+ F.value = t, N.value = t && parseInt(t, 10) || void 0;
4145
4145
  }
4146
- function ue(e) {
4146
+ function de(e) {
4147
4147
  let t = e.target.value;
4148
- I.value = t, F.value = t && parseInt(t, 10) || void 0;
4148
+ I.value = t, P.value = t && parseInt(t, 10) || void 0;
4149
4149
  }
4150
- async function de() {
4150
+ async function fe() {
4151
4151
  let e = j.value.trim();
4152
- if (!e || !s.item || z.value) return;
4152
+ if (!e || !s.item || R.value) return;
4153
4153
  let t = S(s.item.mime_type), n;
4154
- if (ie.value && M.value && re.value) {
4155
- z.value = !0;
4154
+ if (ae.value && te.value && ie.value) {
4155
+ R.value = !0;
4156
4156
  try {
4157
- let { canvas: e } = M.value.getResult();
4157
+ let { canvas: e } = te.value.getResult();
4158
4158
  if (e) {
4159
- let t = Oe(e, P.value, F.value), r = De(s.item.mime_type);
4160
- n = { file: await ke(t, s.item.filename, r) };
4159
+ let t = ke(e, N.value, P.value), r = Oe(s.item.mime_type);
4160
+ n = { file: await Ae(t, s.item.filename, r) };
4161
4161
  }
4162
4162
  } catch {
4163
- z.value = !1;
4163
+ R.value = !1;
4164
4164
  return;
4165
4165
  }
4166
- z.value = !1;
4166
+ R.value = !1;
4167
4167
  }
4168
4168
  l("save", s.item.id, e, t ? ee.value : void 0, n), l("close");
4169
4169
  }
4170
- function fe(e) {
4171
- e.key === "Enter" && !z.value && (e.preventDefault(), de()), e.key === "Escape" && l("close");
4170
+ function pe(e) {
4171
+ e.key === "Enter" && !R.value && (e.preventDefault(), fe()), e.key === "Escape" && l("close");
4172
4172
  }
4173
4173
  return (e, t) => (c(), x(y, { to: "body" }, [h(T, {
4174
4174
  "enter-active-class": "tpl:transition tpl:ease-out tpl:duration-150",
@@ -4184,22 +4184,22 @@ var wn = ["data-tpl-theme"], Tn = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, En
4184
4184
  class: "tpl tpl:fixed tpl:inset-0 tpl:z-[10000] tpl:flex tpl:items-center tpl:justify-center",
4185
4185
  style: { "background-color": "var(--tpl-overlay)" },
4186
4186
  onClick: t[3] ||= k((e) => l("close"), ["self"]),
4187
- onKeydown: fe
4187
+ onKeydown: pe
4188
4188
  }, [w("div", {
4189
- class: O(["tpl:mx-4 tpl:flex tpl:max-h-[90vh] tpl:w-full tpl:flex-col tpl:overflow-hidden tpl:rounded-lg tpl:shadow-xl", ie.value ? "tpl:max-w-2xl" : "tpl:max-w-sm"]),
4189
+ class: O(["tpl:mx-4 tpl:flex tpl:max-h-[90vh] tpl:w-full tpl:flex-col tpl:overflow-hidden tpl:rounded-lg tpl:shadow-xl", ae.value ? "tpl:max-w-2xl" : "tpl:max-w-sm"]),
4190
4190
  style: { "background-color": "var(--tpl-bg-elevated)" }
4191
4191
  }, [
4192
4192
  w("div", Tn, [w("h3", En, C(m(u).mediaLibrary.editFile), 1)]),
4193
4193
  w("div", Dn, [
4194
- ie.value ? (c(), p("div", On, [w("div", kn, [h(m(xn), {
4194
+ ae.value ? (c(), p("div", On, [w("div", kn, [h(m(xn), {
4195
4195
  ref_key: "cropperRef",
4196
- ref: M,
4196
+ ref: te,
4197
4197
  src: a.item.url,
4198
- "stencil-props": { aspectRatio: ae.value },
4198
+ "stencil-props": { aspectRatio: oe.value },
4199
4199
  class: "tpl:h-full tpl:w-full",
4200
4200
  "background-class": "tpl-cropper-background",
4201
- onChange: se,
4202
- onReady: ce
4201
+ onChange: ce,
4202
+ onReady: le
4203
4203
  }, null, 8, ["src", "stencil-props"])]), w("div", An, [
4204
4204
  w("div", null, [w("label", jn, C(m(u).mediaLibrary.cropAspectRatio), 1), w("div", Mn, [(c(), p(v, null, r([
4205
4205
  "free",
@@ -4212,14 +4212,14 @@ var wn = ["data-tpl-theme"], Tn = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, En
4212
4212
  type: "button",
4213
4213
  class: "tpl:cursor-pointer tpl:rounded-md tpl:border tpl:px-2.5 tpl:py-1 tpl:text-xs tpl:font-medium tpl:transition-all tpl:duration-150",
4214
4214
  style: _({
4215
- borderColor: N.value === e ? "var(--tpl-primary)" : "var(--tpl-border)",
4216
- backgroundColor: N.value === e ? "var(--tpl-primary-light)" : "var(--tpl-bg)",
4217
- color: N.value === e ? "var(--tpl-primary)" : "var(--tpl-text)"
4215
+ borderColor: M.value === e ? "var(--tpl-primary)" : "var(--tpl-border)",
4216
+ backgroundColor: M.value === e ? "var(--tpl-primary-light)" : "var(--tpl-bg)",
4217
+ color: M.value === e ? "var(--tpl-primary)" : "var(--tpl-text)"
4218
4218
  }),
4219
- onClick: (t) => N.value = e
4219
+ onClick: (t) => M.value = e
4220
4220
  }, C(m(g)[`crop${e.charAt(0).toUpperCase()}${e.slice(1)}`]), 13, Nn)), 64))])]),
4221
4221
  w("div", Pn, [w("div", Fn, [w("label", In, [A(C(m(u).mediaLibrary.cropMaxWidth) + " ", 1), w("span", Ln, C(m(u).mediaLibrary.cropOptional), 1)]), w("div", Rn, [w("input", {
4222
- value: te.value,
4222
+ value: F.value,
4223
4223
  type: "number",
4224
4224
  min: "1",
4225
4225
  class: "tpl:w-full tpl:rounded-md tpl:border tpl:py-1.5 tpl:pr-8 tpl:pl-3 tpl:text-xs tpl:outline-none",
@@ -4228,8 +4228,8 @@ var wn = ["data-tpl-theme"], Tn = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, En
4228
4228
  "background-color": "var(--tpl-bg)",
4229
4229
  color: "var(--tpl-text)"
4230
4230
  },
4231
- placeholder: R.value?.width?.toString() || "",
4232
- onInput: le
4231
+ placeholder: L.value?.width?.toString() || "",
4232
+ onInput: ue
4233
4233
  }, null, 40, zn), w("span", Bn, C(m(u).mediaLibrary.cropPixels), 1)])]), w("div", Vn, [w("label", Hn, [A(C(m(u).mediaLibrary.cropMaxHeight) + " ", 1), w("span", Un, C(m(u).mediaLibrary.cropOptional), 1)]), w("div", Wn, [w("input", {
4234
4234
  value: I.value,
4235
4235
  type: "number",
@@ -4240,10 +4240,10 @@ var wn = ["data-tpl-theme"], Tn = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, En
4240
4240
  "background-color": "var(--tpl-bg)",
4241
4241
  color: "var(--tpl-text)"
4242
4242
  },
4243
- placeholder: R.value?.height?.toString() || "",
4244
- onInput: ue
4243
+ placeholder: L.value?.height?.toString() || "",
4244
+ onInput: de
4245
4245
  }, null, 40, Gn), w("span", Kn, C(m(u).mediaLibrary.cropPixels), 1)])])]),
4246
- oe.value ? (c(), p("div", qn, [w("span", null, C(m(u).mediaLibrary.cropOutputSize) + ": ", 1), w("span", Jn, C(oe.value.width) + " x " + C(oe.value.height) + " " + C(m(u).mediaLibrary.cropPixels), 1)])) : b("", !0)
4246
+ se.value ? (c(), p("div", qn, [w("span", null, C(m(u).mediaLibrary.cropOutputSize) + ": ", 1), w("span", Jn, C(se.value.width) + " x " + C(se.value.height) + " " + C(m(u).mediaLibrary.cropPixels), 1)])) : b("", !0)
4247
4247
  ])])) : b("", !0),
4248
4248
  w("div", Yn, [w("label", Xn, C(m(u).mediaLibrary.fileName), 1), f(w("input", {
4249
4249
  "onUpdate:modelValue": t[0] ||= (e) => j.value = e,
@@ -4254,7 +4254,7 @@ var wn = ["data-tpl-theme"], Tn = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, En
4254
4254
  "background-color": "var(--tpl-bg)",
4255
4255
  color: "var(--tpl-text)"
4256
4256
  },
4257
- autofocus: !ie.value
4257
+ autofocus: !ae.value
4258
4258
  }, null, 8, Zn), [[D, j.value]])]),
4259
4259
  m(S)(a.item.mime_type) ? (c(), p("div", Qn, [w("label", $n, C(m(u).mediaLibrary.altText), 1), f(w("input", {
4260
4260
  "onUpdate:modelValue": t[1] ||= (e) => ee.value = e,
@@ -4279,9 +4279,9 @@ var wn = ["data-tpl-theme"], Tn = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, En
4279
4279
  }, C(m(u).mediaLibrary.cancel), 1), w("button", {
4280
4280
  class: "tpl:cursor-pointer tpl:rounded-md tpl:px-3 tpl:py-1.5 tpl:text-xs tpl:font-medium tpl:text-white tpl:transition-all tpl:duration-150 tpl:disabled:cursor-not-allowed tpl:disabled:opacity-50",
4281
4281
  style: { background: "linear-gradient(\n 135deg,\n var(--tpl-primary),\n var(--tpl-primary-hover)\n )" },
4282
- disabled: z.value,
4283
- onClick: de
4284
- }, C(z.value ? m(u).mediaLibrary.saving : m(u).mediaLibrary.saveChanges), 9, nr)])
4282
+ disabled: R.value,
4283
+ onClick: fe
4284
+ }, C(R.value ? m(u).mediaLibrary.saving : m(u).mediaLibrary.saveChanges), 9, nr)])
4285
4285
  ], 2)], 40, wn)) : b("", !0)]),
4286
4286
  _: 1
4287
4287
  })]));
@@ -4309,31 +4309,31 @@ var wn = ["data-tpl-theme"], Tn = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, En
4309
4309
  "deleteFolder"
4310
4310
  ],
4311
4311
  setup(t, { emit: n }) {
4312
- let i = t, a = n, { t: o } = B(), l = e(!1), u = e(!1), d = e(""), g = e(!1), y = e(""), T = E(() => (i.folder.children?.length ?? 0) > 0), A = E(() => i.depth < dr - 1), j = E(() => i.currentFolderId === i.folder.id), M = E(() => !i.currentFolderId || !i.folder.children ? !1 : P(i.folder.children, i.currentFolderId)), N = E(() => l.value || M.value);
4313
- function P(e, t) {
4314
- for (let n of e) if (n.id === t || n.children && P(n.children, t)) return !0;
4312
+ let i = t, a = n, { t: o } = z(), l = e(!1), u = e(!1), d = e(""), g = e(!1), y = e(""), T = E(() => (i.folder.children?.length ?? 0) > 0), A = E(() => i.depth < dr - 1), j = E(() => i.currentFolderId === i.folder.id), ee = E(() => !i.currentFolderId || !i.folder.children ? !1 : N(i.folder.children, i.currentFolderId)), M = E(() => l.value || ee.value);
4313
+ function N(e, t) {
4314
+ for (let n of e) if (n.id === t || n.children && N(n.children, t)) return !0;
4315
4315
  return !1;
4316
4316
  }
4317
- function F() {
4317
+ function P() {
4318
4318
  l.value = !l.value;
4319
4319
  }
4320
- function te() {
4320
+ function F() {
4321
4321
  u.value = !0, d.value = i.folder.name;
4322
4322
  }
4323
4323
  function I() {
4324
4324
  let e = d.value.trim();
4325
4325
  e && e !== i.folder.name && a("renameFolder", i.folder.id, e), u.value = !1, d.value = "";
4326
4326
  }
4327
- function L() {
4327
+ function ne() {
4328
4328
  u.value = !1, d.value = "";
4329
4329
  }
4330
- function R() {
4330
+ function L() {
4331
4331
  g.value = !0, y.value = "", l.value = !0;
4332
4332
  }
4333
- function ne() {
4333
+ function re() {
4334
4334
  y.value.trim() && a("createFolder", y.value.trim(), i.folder.id), g.value = !1, y.value = "";
4335
4335
  }
4336
- function z() {
4336
+ function R() {
4337
4337
  g.value = !1, y.value = "";
4338
4338
  }
4339
4339
  return (e, n) => {
@@ -4349,16 +4349,16 @@ var wn = ["data-tpl-theme"], Tn = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, En
4349
4349
  T.value || g.value ? (c(), p("button", {
4350
4350
  key: 0,
4351
4351
  class: "tpl:flex tpl:size-4 tpl:shrink-0 tpl:items-center tpl:justify-center tpl:rounded tpl:transition-colors",
4352
- onClick: k(F, ["stop"])
4353
- }, [h(m(ee), {
4354
- class: O(["tpl:transition-transform tpl:duration-150", { "tpl:rotate-90": N.value }]),
4352
+ onClick: k(P, ["stop"])
4353
+ }, [h(m(te), {
4354
+ class: O(["tpl:transition-transform tpl:duration-150", { "tpl:rotate-90": M.value }]),
4355
4355
  size: 10,
4356
4356
  "stroke-width": 2
4357
4357
  }, null, 8, ["class"])])) : (c(), p("span", ir)),
4358
4358
  w("button", {
4359
4359
  class: "tpl:flex tpl:min-w-0 tpl:flex-1 tpl:items-center tpl:gap-1.5",
4360
4360
  onClick: n[0] ||= (e) => a("navigate", t.folder.id)
4361
- }, [h(m(me), {
4361
+ }, [h(m(he), {
4362
4362
  class: "tpl:shrink-0",
4363
4363
  size: 14,
4364
4364
  "stroke-width": 1.5
@@ -4374,7 +4374,7 @@ var wn = ["data-tpl-theme"], Tn = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, En
4374
4374
  color: "var(--tpl-text)"
4375
4375
  },
4376
4376
  autofocus: "",
4377
- onKeydown: [S(I, ["enter"]), S(L, ["escape"])],
4377
+ onKeydown: [S(I, ["enter"]), S(ne, ["escape"])],
4378
4378
  onBlur: I,
4379
4379
  onClick: n[2] ||= k(() => {}, ["stop"])
4380
4380
  }, null, 544)), [[D, d.value]]) : b("", !0),
@@ -4383,29 +4383,29 @@ var wn = ["data-tpl-theme"], Tn = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, En
4383
4383
  key: 0,
4384
4384
  class: "tpl:flex tpl:size-6 tpl:items-center tpl:justify-center tpl:rounded tpl:transition-colors",
4385
4385
  title: m(o).mediaLibrary.addSubfolder,
4386
- onClick: k(R, ["stop"])
4387
- }, [h(m(fe), {
4386
+ onClick: k(L, ["stop"])
4387
+ }, [h(m(pe), {
4388
4388
  size: 12,
4389
4389
  "stroke-width": 2
4390
4390
  })], 8, sr)) : b("", !0),
4391
4391
  w("button", {
4392
4392
  class: "tpl:flex tpl:size-6 tpl:items-center tpl:justify-center tpl:rounded tpl:transition-colors",
4393
4393
  title: m(o).mediaLibrary.renameFolder,
4394
- onClick: k(te, ["stop"])
4395
- }, [h(m(ce), {
4394
+ onClick: k(F, ["stop"])
4395
+ }, [h(m(le), {
4396
4396
  size: 12,
4397
4397
  "stroke-width": 2
4398
4398
  })], 8, cr),
4399
4399
  w("button", {
4400
4400
  class: "tpl:flex tpl:size-6 tpl:items-center tpl:justify-center tpl:rounded tpl:transition-colors",
4401
4401
  onClick: n[3] ||= k((e) => a("deleteFolder", t.folder.id), ["stop"])
4402
- }, [h(m(ie), {
4402
+ }, [h(m(oe), {
4403
4403
  size: 12,
4404
4404
  "stroke-width": 2,
4405
4405
  style: { color: "var(--tpl-danger)" }
4406
4406
  })])
4407
4407
  ]))
4408
- ], 4), N.value ? (c(), p("div", lr, [(c(!0), p(v, null, r(t.folder.children, (e) => (c(), x(i, {
4408
+ ], 4), M.value ? (c(), p("div", lr, [(c(!0), p(v, null, r(t.folder.children, (e) => (c(), x(i, {
4409
4409
  key: e.id,
4410
4410
  folder: e,
4411
4411
  "current-folder-id": t.currentFolderId,
@@ -4433,8 +4433,8 @@ var wn = ["data-tpl-theme"], Tn = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, En
4433
4433
  },
4434
4434
  placeholder: m(o).mediaLibrary.subfolderName,
4435
4435
  autofocus: "",
4436
- onKeydown: [S(ne, ["enter"]), S(z, ["escape"])],
4437
- onBlur: ne
4436
+ onKeydown: [S(re, ["enter"]), S(R, ["escape"])],
4437
+ onBlur: re
4438
4438
  }, null, 40, ur), [[D, y.value]])], 4)) : b("", !0)])) : b("", !0)]);
4439
4439
  };
4440
4440
  }
@@ -4457,7 +4457,7 @@ var wn = ["data-tpl-theme"], Tn = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, En
4457
4457
  "showFrequentlyUsed"
4458
4458
  ],
4459
4459
  setup(t, { emit: n }) {
4460
- let i = n, { t: a } = B(), o = e(!1), s = e("");
4460
+ let i = n, { t: a } = z(), o = e(!1), s = e("");
4461
4461
  function l() {
4462
4462
  o.value = !0, s.value = "";
4463
4463
  }
@@ -4475,7 +4475,7 @@ var wn = ["data-tpl-theme"], Tn = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, En
4475
4475
  color: t.viewMode === "files" && t.currentFolderId === null ? "var(--tpl-primary)" : "var(--tpl-text)"
4476
4476
  }),
4477
4477
  onClick: n[0] ||= (e) => i("navigate", null)
4478
- }, [h(m(ue), {
4478
+ }, [h(m(de), {
4479
4479
  size: 14,
4480
4480
  "stroke-width": 1.5
4481
4481
  }), A(" " + C(m(a).mediaLibrary.allFiles), 1)], 4),
@@ -4508,7 +4508,7 @@ var wn = ["data-tpl-theme"], Tn = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, En
4508
4508
  class: "tpl:flex tpl:w-full tpl:items-center tpl:gap-2 tpl:px-3 tpl:py-2 tpl:text-left tpl:text-xs tpl:transition-all tpl:duration-150",
4509
4509
  style: { color: "var(--tpl-text-muted)" },
4510
4510
  onClick: l
4511
- }, [h(m(fe), {
4511
+ }, [h(m(pe), {
4512
4512
  size: 14,
4513
4513
  "stroke-width": 1.5
4514
4514
  }), A(" " + C(m(a).mediaLibrary.newFolder), 1)])),
@@ -4522,7 +4522,7 @@ var wn = ["data-tpl-theme"], Tn = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, En
4522
4522
  color: t.viewMode === "frequently-used" ? "var(--tpl-primary)" : "var(--tpl-text)"
4523
4523
  }),
4524
4524
  onClick: n[6] ||= (e) => i("showFrequentlyUsed")
4525
- }, [h(m(ge), {
4525
+ }, [h(m(_e), {
4526
4526
  size: 14,
4527
4527
  "stroke-width": 1.5
4528
4528
  }), A(" " + C(m(a).mediaLibrary.frequentlyUsed), 1)], 4)) : b("", !0)
@@ -4757,15 +4757,15 @@ var wn = ["data-tpl-theme"], Tn = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, En
4757
4757
  "replace"
4758
4758
  ],
4759
4759
  setup(t, { emit: n }) {
4760
- let i = t, a = n, { isAcceptedMimeType: o, isImageMimeType: s } = Te();
4760
+ let i = t, a = n, { isAcceptedMimeType: o, isImageMimeType: s } = Ee();
4761
4761
  function l(e) {
4762
4762
  return !i.accept || i.accept.length === 0 ? !0 : o(e.mime_type, i.accept);
4763
4763
  }
4764
4764
  function u(e) {
4765
4765
  a("select", e);
4766
4766
  }
4767
- let { t: d } = B(), f = e(null);
4768
- ne(f, ([{ isIntersecting: e }]) => {
4767
+ let { t: d } = z(), f = e(null);
4768
+ re(f, ([{ isIntersecting: e }]) => {
4769
4769
  e && i.hasMore && !i.isLoading && a("loadMore");
4770
4770
  }, { threshold: .1 });
4771
4771
  function g(e) {
@@ -4786,7 +4786,7 @@ var wn = ["data-tpl-theme"], Tn = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, En
4786
4786
  key: e,
4787
4787
  class: O(["tpl-pulse tpl:rounded-lg", t.layout === "list" ? "tpl:h-12" : "tpl:aspect-square"]),
4788
4788
  style: { "background-color": "var(--tpl-bg-hover)" }
4789
- }, null, 2)), 64))], 2)) : t.items.length === 0 ? (c(), p("div", br, [h(m(ue), {
4789
+ }, null, 2)), 64))], 2)) : t.items.length === 0 ? (c(), p("div", br, [h(m(de), {
4790
4790
  class: "tpl:mb-3",
4791
4791
  size: 40,
4792
4792
  "stroke-width": 1,
@@ -4810,7 +4810,7 @@ var wn = ["data-tpl-theme"], Tn = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, En
4810
4810
  style: { color: "var(--tpl-text-muted)" },
4811
4811
  title: m(d).mediaLibrary.editFile,
4812
4812
  onClick: k((t) => a("edit", e), ["stop"])
4813
- }, [h(m(ce), {
4813
+ }, [h(m(le), {
4814
4814
  size: 12,
4815
4815
  "stroke-width": 2
4816
4816
  })], 8, Ur), w("button", {
@@ -4818,11 +4818,11 @@ var wn = ["data-tpl-theme"], Tn = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, En
4818
4818
  style: { color: "var(--tpl-text-muted)" },
4819
4819
  title: m(d).mediaLibrary.replaceFile,
4820
4820
  onClick: k((t) => a("replace", e), ["stop"])
4821
- }, [h(m(I), {
4821
+ }, [h(m(L), {
4822
4822
  size: 12,
4823
4823
  "stroke-width": 2
4824
4824
  })], 8, Wr)]),
4825
- t.selectedIds.has(e.id) ? (c(), p("div", Gr, [h(m(P), {
4825
+ t.selectedIds.has(e.id) ? (c(), p("div", Gr, [h(m(F), {
4826
4826
  size: 12,
4827
4827
  "stroke-width": 3
4828
4828
  })])) : b("", !0)
@@ -4855,7 +4855,7 @@ var wn = ["data-tpl-theme"], Tn = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, En
4855
4855
  style: { "background-color": "rgba(0, 0, 0, 0.6)" },
4856
4856
  title: m(d).mediaLibrary.editFile,
4857
4857
  onClick: k((t) => a("edit", e), ["stop"])
4858
- }, [h(m(ce), {
4858
+ }, [h(m(le), {
4859
4859
  size: 11,
4860
4860
  "stroke-width": 2
4861
4861
  })], 8, jr), w("button", {
@@ -4863,11 +4863,11 @@ var wn = ["data-tpl-theme"], Tn = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, En
4863
4863
  style: { "background-color": "rgba(0, 0, 0, 0.6)" },
4864
4864
  title: m(d).mediaLibrary.replaceFile,
4865
4865
  onClick: k((t) => a("replace", e), ["stop"])
4866
- }, [h(m(I), {
4866
+ }, [h(m(L), {
4867
4867
  size: 11,
4868
4868
  "stroke-width": 2
4869
4869
  })], 8, Mr)]),
4870
- t.selectedIds.has(e.id) ? (c(), p("div", Nr, [h(m(P), {
4870
+ t.selectedIds.has(e.id) ? (c(), p("div", Nr, [h(m(F), {
4871
4871
  size: 12,
4872
4872
  "stroke-width": 3
4873
4873
  })])) : b("", !0)
@@ -4877,7 +4877,7 @@ var wn = ["data-tpl-theme"], Tn = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, En
4877
4877
  ref: f,
4878
4878
  class: "tpl:h-4"
4879
4879
  }, null, 512),
4880
- t.isLoading && t.items.length > 0 ? (c(), p("div", Kr, [h(m(z), {
4880
+ t.isLoading && t.items.length > 0 ? (c(), p("div", Kr, [h(m(ie), {
4881
4881
  class: "tpl-spinner",
4882
4882
  size: 20,
4883
4883
  "stroke-width": 2,
@@ -4907,7 +4907,7 @@ var wn = ["data-tpl-theme"], Tn = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, En
4907
4907
  },
4908
4908
  emits: ["import", "close"],
4909
4909
  setup(r, { emit: a }) {
4910
- let o = r, s = a, { t: l } = B(), u = n("tplUiTheme"), d = e("");
4910
+ let o = r, s = a, { t: l } = z(), u = n("tplUiTheme"), d = e("");
4911
4911
  t(() => o.visible, (e) => {
4912
4912
  e && (d.value = "");
4913
4913
  });
@@ -4966,7 +4966,7 @@ var wn = ["data-tpl-theme"], Tn = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, En
4966
4966
  style: { background: "linear-gradient(\n 135deg,\n var(--tpl-primary),\n var(--tpl-primary-hover)\n )" },
4967
4967
  disabled: !d.value.trim() || r.isImporting,
4968
4968
  onClick: g
4969
- }, [r.isImporting ? (c(), p("span", ri, [h(m(z), {
4969
+ }, [r.isImporting ? (c(), p("span", ri, [h(m(ie), {
4970
4970
  class: "tpl:animate-spin",
4971
4971
  size: 12,
4972
4972
  "stroke-width": 2
@@ -4987,7 +4987,7 @@ var wn = ["data-tpl-theme"], Tn = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, En
4987
4987
  },
4988
4988
  emits: ["select", "close"],
4989
4989
  setup(t, { emit: n }) {
4990
- let i = n, { t: a } = B(), o = e(null);
4990
+ let i = n, { t: a } = z(), o = e(null);
4991
4991
  function s(e, t = 0) {
4992
4992
  let n = [];
4993
4993
  for (let r of e) n.push({
@@ -4997,7 +4997,7 @@ var wn = ["data-tpl-theme"], Tn = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, En
4997
4997
  }), r.children?.length && n.push(...s(r.children, t + 1));
4998
4998
  return n;
4999
4999
  }
5000
- return oe(o, () => {
5000
+ return I(o, () => {
5001
5001
  i("close");
5002
5002
  }), (e, n) => (c(), p("div", {
5003
5003
  ref_key: "pickerRef",
@@ -5012,7 +5012,7 @@ var wn = ["data-tpl-theme"], Tn = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, En
5012
5012
  class: "tpl:flex tpl:w-full tpl:items-center tpl:gap-1.5 tpl:px-3 tpl:py-1.5 tpl:text-left tpl:text-xs tpl:transition-colors tpl:duration-100",
5013
5013
  style: { color: "var(--tpl-text)" },
5014
5014
  onClick: n[0] ||= (e) => i("select", null)
5015
- }, [h(m(ue), {
5015
+ }, [h(m(de), {
5016
5016
  class: "tpl:shrink-0",
5017
5017
  size: 14,
5018
5018
  "stroke-width": 1.5
@@ -5027,7 +5027,7 @@ var wn = ["data-tpl-theme"], Tn = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, En
5027
5027
  disabled: e.id === t.currentFolderId,
5028
5028
  onClick: (t) => i("select", e.id)
5029
5029
  }, [
5030
- h(m(me), {
5030
+ h(m(he), {
5031
5031
  class: "tpl:shrink-0",
5032
5032
  size: 14,
5033
5033
  "stroke-width": 1.5
@@ -5061,7 +5061,7 @@ var wn = ["data-tpl-theme"], Tn = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, En
5061
5061
  },
5062
5062
  emits: ["update:selectedConversion"],
5063
5063
  setup(e, { emit: t }) {
5064
- let n = e, i = t, { t: a } = B(), { isImageMimeType: o } = Te(), s = E(() => {
5064
+ let n = e, i = t, { t: a } = z(), { isImageMimeType: o } = Ee(), s = E(() => {
5065
5065
  if (!_.value || !n.item.conversions_generated) return [];
5066
5066
  let e = [];
5067
5067
  return n.item.small_url && e.push({
@@ -5138,7 +5138,7 @@ var wn = ["data-tpl-theme"], Tn = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, En
5138
5138
  _.value && e.item.width && e.item.height ? (c(), p(v, { key: 0 }, [A(" · " + C(e.item.width) + "×" + C(e.item.height) + "px ", 1)], 64)) : b("", !0),
5139
5139
  g.value ? (c(), p(v, { key: 1 }, [
5140
5140
  n[0] ||= A(" · ", -1),
5141
- h(m(me), {
5141
+ h(m(he), {
5142
5142
  class: "tpl:mb-px tpl:inline",
5143
5143
  size: 9,
5144
5144
  "stroke-width": 2
@@ -5204,7 +5204,7 @@ var wn = ["data-tpl-theme"], Tn = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, En
5204
5204
  },
5205
5205
  emits: ["replace", "close"],
5206
5206
  setup(r, { emit: a }) {
5207
- let o = r, s = a, { t: l } = B(), u = n("tplUiTheme"), d = e(null), f = e(null), g = E(() => {
5207
+ let o = r, s = a, { t: l } = z(), u = n("tplUiTheme"), d = e(null), f = e(null), g = E(() => {
5208
5208
  if (!o.item) return "";
5209
5209
  let e = o.item.filename.split(".");
5210
5210
  return e.length > 1 ? e[e.length - 1].toLowerCase() : "";
@@ -5295,7 +5295,7 @@ var wn = ["data-tpl-theme"], Tn = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, En
5295
5295
  },
5296
5296
  emits: ["upload"],
5297
5297
  setup(t, { emit: n }) {
5298
- let r = n, { t: i, format: a } = B(), { allAcceptedMimeTypes: o, allAcceptedInputString: s, maxFileSize: l } = Te(), u = e();
5298
+ let r = n, { t: i, format: a } = z(), { allAcceptedMimeTypes: o, allAcceptedInputString: s, maxFileSize: l } = Ee(), u = e();
5299
5299
  function d(e) {
5300
5300
  let t = [];
5301
5301
  for (let n of Array.from(e)) o.value.includes(n.type) && n.size <= l.value && t.push(n);
@@ -5305,9 +5305,9 @@ var wn = ["data-tpl-theme"], Tn = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, En
5305
5305
  let t = d(e);
5306
5306
  t.length && r("upload", t);
5307
5307
  }
5308
- let { isOverDropZone: g } = re(u, { onDrop: (e) => {
5308
+ let { isOverDropZone: g } = ee(u, { onDrop: (e) => {
5309
5309
  e?.length && f(e);
5310
- } }), { open: _, onChange: y } = F({
5310
+ } }), { open: _, onChange: y } = se({
5311
5311
  accept: s.value,
5312
5312
  multiple: !0
5313
5313
  });
@@ -5322,7 +5322,7 @@ var wn = ["data-tpl-theme"], Tn = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, En
5322
5322
  "background-color": "var(--tpl-bg)"
5323
5323
  },
5324
5324
  onClick: n[0] ||= (e) => m(_)()
5325
- }, [t.isUploading ? (c(), p("div", Li, [h(m(z), {
5325
+ }, [t.isUploading ? (c(), p("div", Li, [h(m(ie), {
5326
5326
  class: "tpl-spinner",
5327
5327
  size: 20,
5328
5328
  "stroke-width": 2,
@@ -5373,7 +5373,7 @@ var wn = ["data-tpl-theme"], Tn = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, En
5373
5373
  size: {}
5374
5374
  },
5375
5375
  setup(t) {
5376
- let n = t, { t: r, format: a } = B(), o = e(!1), s = E(() => n.size ?? 24), l = E(() => Math.max(2, s.value / 8)), u = E(() => (s.value - l.value) / 2), d = E(() => 2 * Math.PI * u.value), f = E(() => n.limitBytes <= 0 ? 0 : Math.min(100, n.usedBytes / n.limitBytes * 100)), m = E(() => d.value - f.value / 100 * d.value), g = E(() => f.value >= 95 ? "var(--tpl-danger)" : f.value >= 75 ? "var(--tpl-warning, #f59e0b)" : "var(--tpl-primary)");
5376
+ let n = t, { t: r, format: a } = z(), o = e(!1), s = E(() => n.size ?? 24), l = E(() => Math.max(2, s.value / 8)), u = E(() => (s.value - l.value) / 2), d = E(() => 2 * Math.PI * u.value), f = E(() => n.limitBytes <= 0 ? 0 : Math.min(100, n.usedBytes / n.limitBytes * 100)), m = E(() => d.value - f.value / 100 * d.value), g = E(() => f.value >= 95 ? "var(--tpl-danger)" : f.value >= 75 ? "var(--tpl-warning, #f59e0b)" : "var(--tpl-primary)");
5377
5377
  function _(e) {
5378
5378
  if (e === 0) return "0 B";
5379
5379
  let t = 1024, n = [
@@ -5468,7 +5468,7 @@ function qi(n) {
5468
5468
  function x(e) {
5469
5469
  l.value = e, b(e);
5470
5470
  }
5471
- let { copy: S, copied: C } = L({
5471
+ let { copy: S, copied: C } = N({
5472
5472
  copiedDuring: 2e3,
5473
5473
  legacy: !0
5474
5474
  });
@@ -5496,10 +5496,10 @@ function qi(n) {
5496
5496
  async function ee(e) {
5497
5497
  await r.importFromUrl(e) && (f.value = !1);
5498
5498
  }
5499
- async function M(e) {
5499
+ async function te(e) {
5500
5500
  p.value = !1, await r.moveSelected(e);
5501
5501
  }
5502
- async function N() {
5502
+ async function M() {
5503
5503
  await r.checkUsageBeforeDelete();
5504
5504
  }
5505
5505
  function P(e) {
@@ -5508,7 +5508,7 @@ function qi(n) {
5508
5508
  async function F(e) {
5509
5509
  await r.replaceFile(e);
5510
5510
  }
5511
- function te() {
5511
+ function I() {
5512
5512
  r.clearSelection(), r.cancelDelete(), r.cancelReplace(), l.value = "", r.categoryFilter.value = null, r.sortOption.value = "newest", r.viewMode.value = "files", d.value = null, f.value = !1, u.value = "original";
5513
5513
  }
5514
5514
  return {
@@ -5535,11 +5535,11 @@ function qi(n) {
5535
5535
  handleEditItem: A,
5536
5536
  handleEditSave: j,
5537
5537
  handleImportFromUrl: ee,
5538
- handleMoveToFolder: M,
5539
- handleDeleteClick: N,
5538
+ handleMoveToFolder: te,
5539
+ handleDeleteClick: M,
5540
5540
  handleReplaceItem: P,
5541
5541
  handleReplaceFile: F,
5542
- resetUI: te
5542
+ resetUI: I
5543
5543
  };
5544
5544
  }
5545
5545
  //#endregion
@@ -5618,30 +5618,30 @@ var Ji = ["data-tpl-theme"], Yi = {
5618
5618
  },
5619
5619
  emits: ["close", "select"],
5620
5620
  setup(e, { emit: a }) {
5621
- let o = e, s = a, { t: l } = B(), u = n("tplUiTheme"), d = n("authManager"), f = n("projectId"), g = E(() => f.value), S = n("planConfig"), D = E(() => S.hasFeature("media_folders")), j = E(() => S.hasFeature("import_from_url")), ee = E(() => S.config.value?.storage.used_bytes ?? 0), M = E(() => S.config.value?.storage.limit_bytes ?? 0), { isAcceptedMimeType: N, availableCategories: F } = Te(), I = be({
5621
+ let o = e, s = a, { t: l } = z(), u = n("tplUiTheme"), d = n("authManager"), f = n("projectId"), g = E(() => f.value), S = n("planConfig"), D = E(() => S.hasFeature("media_folders")), j = E(() => S.hasFeature("import_from_url")), ee = E(() => S.config.value?.storage.used_bytes ?? 0), te = E(() => S.config.value?.storage.limit_bytes ?? 0), { isAcceptedMimeType: M, availableCategories: N } = Ee(), P = xe({
5622
5622
  projectId: g.value,
5623
5623
  authManager: d
5624
- }), L = qi({
5625
- library: I,
5624
+ }), I = qi({
5625
+ library: P,
5626
5626
  canUseMediaFolders: D,
5627
5627
  translations: l
5628
5628
  });
5629
5629
  t(() => o.visible, (e) => {
5630
- e ? (I.loadItems(), I.loadFrequentlyUsed()) : L.resetUI();
5630
+ e ? (P.loadItems(), P.loadFrequentlyUsed()) : I.resetUI();
5631
5631
  });
5632
- function R(e) {
5632
+ function L(e) {
5633
5633
  e.key === "Escape" && s("close");
5634
5634
  }
5635
- te(document, "keydown", R);
5636
- function ne() {
5637
- return I.previewItem.value ? o.accept?.length ? N(I.previewItem.value.mime_type, o.accept) : !0 : !1;
5635
+ ne(document, "keydown", L);
5636
+ function re() {
5637
+ return P.previewItem.value ? o.accept?.length ? M(P.previewItem.value.mime_type, o.accept) : !0 : !1;
5638
5638
  }
5639
- function z() {
5640
- if (ne()) {
5641
- let e = I.previewItem.value;
5639
+ function R() {
5640
+ if (re()) {
5641
+ let e = P.previewItem.value;
5642
5642
  s("select", {
5643
5643
  ...e,
5644
- url: L.selectedUrl.value || e.url
5644
+ url: I.selectedUrl.value || e.url
5645
5645
  }), s("close");
5646
5646
  }
5647
5647
  }
@@ -5662,11 +5662,11 @@ var Ji = ["data-tpl-theme"], Yi = {
5662
5662
  w("div", Xi, [w("h2", Zi, C(m(l).mediaLibrary.title), 1), w("div", Qi, [
5663
5663
  h(Ki, {
5664
5664
  "used-bytes": ee.value,
5665
- "limit-bytes": M.value,
5665
+ "limit-bytes": te.value,
5666
5666
  size: 22
5667
5667
  }, null, 8, ["used-bytes", "limit-bytes"]),
5668
5668
  w("div", $i, [w("input", {
5669
- value: m(L).searchInput.value,
5669
+ value: m(I).searchInput.value,
5670
5670
  type: "text",
5671
5671
  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)]",
5672
5672
  style: {
@@ -5675,8 +5675,8 @@ var Ji = ["data-tpl-theme"], Yi = {
5675
5675
  color: "var(--tpl-text)"
5676
5676
  },
5677
5677
  placeholder: m(l).mediaLibrary.searchPlaceholder,
5678
- onInput: n[0] ||= (e) => m(L).handleSearchInput(e.target.value)
5679
- }, null, 40, ea), h(m(_e), {
5678
+ onInput: n[0] ||= (e) => m(I).handleSearchInput(e.target.value)
5679
+ }, null, 40, ea), h(m(ve), {
5680
5680
  class: "tpl:absolute tpl:top-1/2 tpl:left-2.5 tpl:-translate-y-1/2",
5681
5681
  size: 13,
5682
5682
  "stroke-width": 2,
@@ -5686,7 +5686,7 @@ var Ji = ["data-tpl-theme"], Yi = {
5686
5686
  class: "tpl:flex tpl:size-7 tpl:items-center tpl:justify-center tpl:rounded-md tpl:transition-all tpl:duration-150",
5687
5687
  style: { color: "var(--tpl-text-muted)" },
5688
5688
  onClick: n[1] ||= (e) => s("close")
5689
- }, [h(m(se), {
5689
+ }, [h(m(ce), {
5690
5690
  size: 18,
5691
5691
  "stroke-width": 2
5692
5692
  })])
@@ -5699,16 +5699,16 @@ var Ji = ["data-tpl-theme"], Yi = {
5699
5699
  "leave-from-class": "tpl:ml-0 tpl:opacity-100",
5700
5700
  "leave-to-class": "tpl:-ml-48 tpl:opacity-0"
5701
5701
  }, {
5702
- default: i(() => [D.value && m(L).showSidebar.value ? (c(), p("div", na, [h(gr, {
5703
- folders: m(I).folders.value,
5704
- "current-folder-id": m(I).currentFolderId.value,
5705
- "view-mode": m(I).viewMode.value,
5706
- "has-frequently-used": m(L).hasFrequentlyUsed.value,
5707
- onNavigate: m(I).navigateToFolder,
5708
- onCreateFolder: m(L).handleCreateFolder,
5709
- onRenameFolder: m(L).handleRenameFolder,
5710
- onDeleteFolder: m(L).handleDeleteFolder,
5711
- onShowFrequentlyUsed: m(I).showFrequentlyUsed
5702
+ default: i(() => [D.value && m(I).showSidebar.value ? (c(), p("div", na, [h(gr, {
5703
+ folders: m(P).folders.value,
5704
+ "current-folder-id": m(P).currentFolderId.value,
5705
+ "view-mode": m(P).viewMode.value,
5706
+ "has-frequently-used": m(I).hasFrequentlyUsed.value,
5707
+ onNavigate: m(P).navigateToFolder,
5708
+ onCreateFolder: m(I).handleCreateFolder,
5709
+ onRenameFolder: m(I).handleRenameFolder,
5710
+ onDeleteFolder: m(I).handleDeleteFolder,
5711
+ onShowFrequentlyUsed: m(P).showFrequentlyUsed
5712
5712
  }, null, 8, [
5713
5713
  "folders",
5714
5714
  "current-folder-id",
@@ -5726,21 +5726,21 @@ var Ji = ["data-tpl-theme"], Yi = {
5726
5726
  key: 0,
5727
5727
  class: "tpl:flex tpl:size-7 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded-md tpl:transition-all tpl:duration-150",
5728
5728
  style: _({
5729
- color: m(L).showSidebar.value ? "var(--tpl-primary)" : "var(--tpl-text-muted)",
5730
- backgroundColor: m(L).showSidebar.value ? "var(--tpl-bg)" : "transparent",
5731
- border: m(L).showSidebar.value ? "1px solid var(--tpl-border)" : "1px solid transparent"
5729
+ color: m(I).showSidebar.value ? "var(--tpl-primary)" : "var(--tpl-text-muted)",
5730
+ backgroundColor: m(I).showSidebar.value ? "var(--tpl-bg)" : "transparent",
5731
+ border: m(I).showSidebar.value ? "1px solid var(--tpl-border)" : "1px solid transparent"
5732
5732
  }),
5733
- title: m(L).showSidebar.value ? m(l).mediaLibrary.hideFolders : m(l).mediaLibrary.showFolders,
5734
- onClick: n[2] ||= (e) => m(L).showSidebar.value = !m(L).showSidebar.value
5735
- }, [h(m(he), {
5733
+ title: m(I).showSidebar.value ? m(l).mediaLibrary.hideFolders : m(l).mediaLibrary.showFolders,
5734
+ onClick: n[2] ||= (e) => m(I).showSidebar.value = !m(I).showSidebar.value
5735
+ }, [h(m(ge), {
5736
5736
  size: 16,
5737
5737
  "stroke-width": 2
5738
5738
  })], 12, oa)) : b("", !0),
5739
- m(I).viewMode.value === "frequently-used" ? (c(), p("span", sa, C(m(l).mediaLibrary.frequentlyUsed), 1)) : (c(), x(we, {
5739
+ m(P).viewMode.value === "frequently-used" ? (c(), p("span", sa, C(m(l).mediaLibrary.frequentlyUsed), 1)) : (c(), x(Te, {
5740
5740
  key: 2,
5741
- folders: m(I).folders.value,
5742
- "current-folder-id": m(I).currentFolderId.value,
5743
- onNavigate: m(I).navigateToFolder
5741
+ folders: m(P).folders.value,
5742
+ "current-folder-id": m(P).currentFolderId.value,
5743
+ onNavigate: m(P).navigateToFolder
5744
5744
  }, null, 8, [
5745
5745
  "folders",
5746
5746
  "current-folder-id",
@@ -5749,27 +5749,27 @@ var Ji = ["data-tpl-theme"], Yi = {
5749
5749
  w("div", ca, [w("button", {
5750
5750
  class: "tpl:flex tpl:size-6 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded tpl:transition-all tpl:duration-150",
5751
5751
  style: _({
5752
- color: m(L).layoutMode.value === "grid" ? "var(--tpl-primary)" : "var(--tpl-text-muted)",
5753
- backgroundColor: m(L).layoutMode.value === "grid" ? "var(--tpl-bg-elevated)" : "transparent"
5752
+ color: m(I).layoutMode.value === "grid" ? "var(--tpl-primary)" : "var(--tpl-text-muted)",
5753
+ backgroundColor: m(I).layoutMode.value === "grid" ? "var(--tpl-bg-elevated)" : "transparent"
5754
5754
  }),
5755
5755
  title: m(l).mediaLibrary.viewGrid,
5756
- onClick: n[3] ||= (e) => m(L).layoutMode.value = "grid"
5757
- }, [h(m(pe), {
5756
+ onClick: n[3] ||= (e) => m(I).layoutMode.value = "grid"
5757
+ }, [h(m(me), {
5758
5758
  size: 14,
5759
5759
  "stroke-width": 2
5760
5760
  })], 12, la), w("button", {
5761
5761
  class: "tpl:flex tpl:size-6 tpl:cursor-pointer tpl:items-center tpl:justify-center tpl:rounded tpl:transition-all tpl:duration-150",
5762
5762
  style: _({
5763
- color: m(L).layoutMode.value === "list" ? "var(--tpl-primary)" : "var(--tpl-text-muted)",
5764
- backgroundColor: m(L).layoutMode.value === "list" ? "var(--tpl-bg-elevated)" : "transparent"
5763
+ color: m(I).layoutMode.value === "list" ? "var(--tpl-primary)" : "var(--tpl-text-muted)",
5764
+ backgroundColor: m(I).layoutMode.value === "list" ? "var(--tpl-bg-elevated)" : "transparent"
5765
5765
  }),
5766
5766
  title: m(l).mediaLibrary.viewList,
5767
- onClick: n[4] ||= (e) => m(L).layoutMode.value = "list"
5768
- }, [h(m(de), {
5767
+ onClick: n[4] ||= (e) => m(I).layoutMode.value = "list"
5768
+ }, [h(m(fe), {
5769
5769
  size: 14,
5770
5770
  "stroke-width": 2
5771
5771
  })], 12, ua)])
5772
- ]), w("div", da, [m(F).length > 1 ? (c(), p("select", {
5772
+ ]), w("div", da, [m(N).length > 1 ? (c(), p("select", {
5773
5773
  key: 0,
5774
5774
  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",
5775
5775
  style: {
@@ -5777,20 +5777,20 @@ var Ji = ["data-tpl-theme"], Yi = {
5777
5777
  "background-color": "var(--tpl-bg)",
5778
5778
  color: "var(--tpl-text)"
5779
5779
  },
5780
- value: m(I).categoryFilter.value ?? "",
5781
- onChange: n[5] ||= (e) => m(I).filterByCategory(e.target.value || null)
5782
- }, [w("option", pa, C(m(l).mediaLibrary.filterAll), 1), (c(!0), p(v, null, r(m(F), (e) => (c(), p("option", {
5780
+ value: m(P).categoryFilter.value ?? "",
5781
+ onChange: n[5] ||= (e) => m(P).filterByCategory(e.target.value || null)
5782
+ }, [w("option", pa, C(m(l).mediaLibrary.filterAll), 1), (c(!0), p(v, null, r(m(N), (e) => (c(), p("option", {
5783
5783
  key: e,
5784
5784
  value: e
5785
- }, C(m(L).getCategoryLabel(e)), 9, ma))), 128))], 40, fa)) : b("", !0), w("select", {
5785
+ }, C(m(I).getCategoryLabel(e)), 9, ma))), 128))], 40, fa)) : b("", !0), w("select", {
5786
5786
  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",
5787
5787
  style: {
5788
5788
  "border-color": "var(--tpl-border)",
5789
5789
  "background-color": "var(--tpl-bg)",
5790
5790
  color: "var(--tpl-text)"
5791
5791
  },
5792
- value: m(I).sortOption.value,
5793
- onChange: n[6] ||= (e) => m(I).sortBy(e.target.value)
5792
+ value: m(P).sortOption.value,
5793
+ onChange: n[6] ||= (e) => m(P).sortBy(e.target.value)
5794
5794
  }, [
5795
5795
  w("option", ga, C(m(l).mediaLibrary.sortNewest), 1),
5796
5796
  w("option", _a, C(m(l).mediaLibrary.sortOldest), 1),
@@ -5798,10 +5798,10 @@ var Ji = ["data-tpl-theme"], Yi = {
5798
5798
  w("option", ya, C(m(l).mediaLibrary.sortNameDesc), 1),
5799
5799
  w("option", ba, C(m(l).mediaLibrary.sortSizeAsc), 1),
5800
5800
  w("option", xa, C(m(l).mediaLibrary.sortSizeDesc), 1)
5801
- ], 40, ha)])]), w("div", Sa, [m(I).viewMode.value === "files" ? (c(), p("div", Ca, [h(Vi, {
5802
- "is-uploading": m(I).isUploading.value,
5803
- "upload-progress": m(I).uploadProgress.value,
5804
- onUpload: m(L).handleUpload
5801
+ ], 40, ha)])]), w("div", Sa, [m(P).viewMode.value === "files" ? (c(), p("div", Ca, [h(Vi, {
5802
+ "is-uploading": m(P).isUploading.value,
5803
+ "upload-progress": m(P).uploadProgress.value,
5804
+ onUpload: m(I).handleUpload
5805
5805
  }, null, 8, [
5806
5806
  "is-uploading",
5807
5807
  "upload-progress",
@@ -5814,22 +5814,22 @@ var Ji = ["data-tpl-theme"], Yi = {
5814
5814
  color: "var(--tpl-text-muted)",
5815
5815
  "background-color": "var(--tpl-bg)"
5816
5816
  },
5817
- onClick: n[7] ||= (e) => m(L).showImportUrlModal.value = !0
5818
- }, [h(m(ve), {
5817
+ onClick: n[7] ||= (e) => m(I).showImportUrlModal.value = !0
5818
+ }, [h(m(ye), {
5819
5819
  size: 14,
5820
5820
  "stroke-width": 2
5821
5821
  }), A(" " + C(m(l).mediaLibrary.importFromUrl), 1)])) : b("", !0)])) : b("", !0), h(qr, {
5822
- items: m(L).displayItems.value,
5823
- "selected-ids": m(I).selectedItems.value,
5824
- "is-loading": m(I).isLoading.value,
5825
- "has-more": m(I).viewMode.value === "files" && m(I).hasMore.value,
5822
+ items: m(I).displayItems.value,
5823
+ "selected-ids": m(P).selectedItems.value,
5824
+ "is-loading": m(P).isLoading.value,
5825
+ "has-more": m(P).viewMode.value === "files" && m(P).hasMore.value,
5826
5826
  accept: e.accept,
5827
- layout: m(L).layoutMode.value,
5828
- onSelect: m(L).handleSelect,
5829
- onToggle: m(I).toggleSelection,
5830
- onLoadMore: m(I).loadMore,
5831
- onEdit: m(L).handleEditItem,
5832
- onReplace: m(L).handleReplaceItem
5827
+ layout: m(I).layoutMode.value,
5828
+ onSelect: m(I).handleSelect,
5829
+ onToggle: m(P).toggleSelection,
5830
+ onLoadMore: m(P).loadMore,
5831
+ onEdit: m(I).handleEditItem,
5832
+ onReplace: m(I).handleReplaceItem
5833
5833
  }, null, 8, [
5834
5834
  "items",
5835
5835
  "selected-ids",
@@ -5844,11 +5844,11 @@ var Ji = ["data-tpl-theme"], Yi = {
5844
5844
  "onReplace"
5845
5845
  ])])])]),
5846
5846
  h(ai, {
5847
- visible: m(L).showImportUrlModal.value,
5848
- "is-importing": m(I).isImportingFromUrl.value,
5849
- error: m(I).importFromUrlError.value,
5850
- onImport: m(L).handleImportFromUrl,
5851
- onClose: n[8] ||= (e) => m(L).showImportUrlModal.value = !1
5847
+ visible: m(I).showImportUrlModal.value,
5848
+ "is-importing": m(P).isImportingFromUrl.value,
5849
+ error: m(P).importFromUrlError.value,
5850
+ onImport: m(I).handleImportFromUrl,
5851
+ onClose: n[8] ||= (e) => m(I).showImportUrlModal.value = !1
5852
5852
  }, null, 8, [
5853
5853
  "visible",
5854
5854
  "is-importing",
@@ -5856,23 +5856,23 @@ var Ji = ["data-tpl-theme"], Yi = {
5856
5856
  "onImport"
5857
5857
  ]),
5858
5858
  h(rr, {
5859
- visible: !!m(L).editingItem.value,
5860
- item: m(L).editingItem.value,
5861
- onSave: m(L).handleEditSave,
5862
- onClose: n[9] ||= (e) => m(L).editingItem.value = null
5859
+ visible: !!m(I).editingItem.value,
5860
+ item: m(I).editingItem.value,
5861
+ onSave: m(I).handleEditSave,
5862
+ onClose: n[9] ||= (e) => m(I).editingItem.value = null
5863
5863
  }, null, 8, [
5864
5864
  "visible",
5865
5865
  "item",
5866
5866
  "onSave"
5867
5867
  ]),
5868
5868
  h(Ii, {
5869
- visible: m(I).showReplaceWarning.value,
5870
- item: m(I).pendingReplaceItem.value,
5871
- "usage-info": m(I).replaceUsageInfo.value,
5872
- "is-replacing": m(I).isReplacing.value,
5873
- error: m(I).replaceError.value,
5874
- onReplace: m(L).handleReplaceFile,
5875
- onClose: m(I).cancelReplace
5869
+ visible: m(P).showReplaceWarning.value,
5870
+ item: m(P).pendingReplaceItem.value,
5871
+ "usage-info": m(P).replaceUsageInfo.value,
5872
+ "is-replacing": m(P).isReplacing.value,
5873
+ error: m(P).replaceError.value,
5874
+ onReplace: m(I).handleReplaceFile,
5875
+ onClose: m(P).cancelReplace
5876
5876
  }, null, 8, [
5877
5877
  "visible",
5878
5878
  "item",
@@ -5890,7 +5890,7 @@ var Ji = ["data-tpl-theme"], Yi = {
5890
5890
  "leave-from-class": "tpl:opacity-100",
5891
5891
  "leave-to-class": "tpl:opacity-0"
5892
5892
  }, {
5893
- default: i(() => [m(I).showDeleteWarning.value ? (c(), p("div", {
5893
+ default: i(() => [m(P).showDeleteWarning.value ? (c(), p("div", {
5894
5894
  key: 0,
5895
5895
  class: "tpl:absolute tpl:inset-0 tpl:z-10 tpl:flex tpl:items-center tpl:justify-center tpl:rounded-[var(--tpl-radius-lg)]",
5896
5896
  style: {
@@ -5898,19 +5898,19 @@ var Ji = ["data-tpl-theme"], Yi = {
5898
5898
  "backdrop-filter": "blur(8px)",
5899
5899
  "-webkit-backdrop-filter": "blur(8px)"
5900
5900
  },
5901
- onClick: n[12] ||= k((...e) => m(I).cancelDelete && m(I).cancelDelete(...e), ["self"])
5901
+ onClick: n[12] ||= k((...e) => m(P).cancelDelete && m(P).cancelDelete(...e), ["self"])
5902
5902
  }, [w("div", wa, [
5903
5903
  w("h3", Ta, C(m(l).mediaLibrary.deleteWarningTitle), 1),
5904
5904
  w("p", {
5905
- class: O(["tpl:text-xs", m(L).hasUsedFiles.value ? "tpl:mb-2" : "tpl:mb-4"]),
5905
+ class: O(["tpl:text-xs", m(I).hasUsedFiles.value ? "tpl:mb-2" : "tpl:mb-4"]),
5906
5906
  style: { color: "var(--tpl-text-muted)" }
5907
5907
  }, C(m(l).mediaLibrary.deleteWarningMessage), 3),
5908
- m(L).hasUsedFiles.value ? (c(), p("p", Ea, C(m(l).mediaLibrary.deleteWarningUsageNote), 1)) : b("", !0),
5909
- m(L).hasUsedFiles.value ? (c(), p("div", Da, [(c(!0), p(v, null, r(m(I).deleteUsageInfo.value, (e, t) => (c(), p("div", {
5908
+ m(I).hasUsedFiles.value ? (c(), p("p", Ea, C(m(l).mediaLibrary.deleteWarningUsageNote), 1)) : b("", !0),
5909
+ m(I).hasUsedFiles.value ? (c(), p("div", Da, [(c(!0), p(v, null, r(m(P).deleteUsageInfo.value, (e, t) => (c(), p("div", {
5910
5910
  key: t,
5911
5911
  class: "tpl:text-xs",
5912
5912
  style: { color: "var(--tpl-text)" }
5913
- }, [e.template_count > 0 ? (c(), p(v, { key: 0 }, [w("span", Oa, C(m(L).displayItems.value.find((e) => e.id === t)?.filename || t), 1), w("span", ka, " - " + C(m(l).mediaLibrary.usedInTemplates.replace("{count}", e.template_count.toString())), 1)], 64)) : b("", !0)]))), 128))])) : b("", !0),
5913
+ }, [e.template_count > 0 ? (c(), p(v, { key: 0 }, [w("span", Oa, C(m(I).displayItems.value.find((e) => e.id === t)?.filename || t), 1), w("span", ka, " - " + C(m(l).mediaLibrary.usedInTemplates.replace("{count}", e.template_count.toString())), 1)], 64)) : b("", !0)]))), 128))])) : b("", !0),
5914
5914
  w("div", Aa, [w("button", {
5915
5915
  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",
5916
5916
  style: {
@@ -5918,7 +5918,7 @@ var Ji = ["data-tpl-theme"], Yi = {
5918
5918
  color: "var(--tpl-text)",
5919
5919
  "background-color": "var(--tpl-bg)"
5920
5920
  },
5921
- onClick: n[10] ||= (...e) => m(I).cancelDelete && m(I).cancelDelete(...e)
5921
+ onClick: n[10] ||= (...e) => m(P).cancelDelete && m(P).cancelDelete(...e)
5922
5922
  }, C(m(l).mediaLibrary.cancel), 1), w("button", {
5923
5923
  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",
5924
5924
  style: {
@@ -5926,57 +5926,57 @@ var Ji = ["data-tpl-theme"], Yi = {
5926
5926
  color: "var(--tpl-danger)",
5927
5927
  "background-color": "var(--tpl-danger-light)"
5928
5928
  },
5929
- onClick: n[11] ||= (...e) => m(I).confirmDelete && m(I).confirmDelete(...e)
5930
- }, C(m(L).hasUsedFiles.value ? m(l).mediaLibrary.deleteAnyway : m(l).mediaLibrary.confirmDelete), 1)])
5929
+ onClick: n[11] ||= (...e) => m(P).confirmDelete && m(P).confirmDelete(...e)
5930
+ }, C(m(I).hasUsedFiles.value ? m(l).mediaLibrary.deleteAnyway : m(l).mediaLibrary.confirmDelete), 1)])
5931
5931
  ])])) : b("", !0)]),
5932
5932
  _: 1
5933
5933
  }),
5934
- w("div", ja, [w("div", Ma, [m(I).previewItem.value ? (c(), x(xi, {
5934
+ w("div", ja, [w("div", Ma, [m(P).previewItem.value ? (c(), x(xi, {
5935
5935
  key: 0,
5936
- "selected-conversion": m(L).selectedConversion.value,
5937
- "onUpdate:selectedConversion": n[13] ||= (e) => m(L).selectedConversion.value = e,
5938
- item: m(I).previewItem.value,
5939
- folders: m(I).folders.value
5936
+ "selected-conversion": m(I).selectedConversion.value,
5937
+ "onUpdate:selectedConversion": n[13] ||= (e) => m(I).selectedConversion.value = e,
5938
+ item: m(P).previewItem.value,
5939
+ folders: m(P).folders.value
5940
5940
  }, null, 8, [
5941
5941
  "selected-conversion",
5942
5942
  "item",
5943
5943
  "folders"
5944
- ])) : b("", !0)]), w("div", Na, [m(I).selectedItems.value.size > 0 ? (c(), p("div", Pa, [m(I).previewItem.value ? (c(), p("button", {
5944
+ ])) : b("", !0)]), w("div", Na, [m(P).selectedItems.value.size > 0 ? (c(), p("div", Pa, [m(P).previewItem.value ? (c(), p("button", {
5945
5945
  key: 0,
5946
5946
  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",
5947
5947
  style: _({
5948
- borderColor: m(L).copied.value ? "var(--tpl-success)" : "var(--tpl-border)",
5949
- color: m(L).copied.value ? "var(--tpl-success)" : "var(--tpl-text)",
5948
+ borderColor: m(I).copied.value ? "var(--tpl-success)" : "var(--tpl-border)",
5949
+ color: m(I).copied.value ? "var(--tpl-success)" : "var(--tpl-text)",
5950
5950
  backgroundColor: "var(--tpl-bg)"
5951
5951
  }),
5952
- onClick: n[14] ||= (e) => m(L).copy(m(L).selectedUrl.value)
5953
- }, [m(L).copied.value ? (c(), x(m(P), {
5952
+ onClick: n[14] ||= (e) => m(I).copy(m(I).selectedUrl.value)
5953
+ }, [m(I).copied.value ? (c(), x(m(F), {
5954
5954
  key: 1,
5955
5955
  size: 12,
5956
5956
  "stroke-width": 2
5957
- })) : (c(), x(m(le), {
5957
+ })) : (c(), x(m(ue), {
5958
5958
  key: 0,
5959
5959
  size: 12,
5960
5960
  "stroke-width": 2
5961
- })), A(" " + C(m(L).copied.value ? m(l).mediaLibrary.copied : m(l).mediaLibrary.copyUrl), 1)], 4)) : b("", !0), D.value ? (c(), p("div", Fa, [w("button", {
5961
+ })), A(" " + C(m(I).copied.value ? m(l).mediaLibrary.copied : m(l).mediaLibrary.copyUrl), 1)], 4)) : b("", !0), D.value ? (c(), p("div", Fa, [w("button", {
5962
5962
  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",
5963
5963
  style: {
5964
5964
  "border-color": "var(--tpl-border)",
5965
5965
  color: "var(--tpl-text)",
5966
5966
  "background-color": "var(--tpl-bg)"
5967
5967
  },
5968
- onClick: n[15] ||= (e) => m(L).showMovePicker.value = !m(L).showMovePicker.value
5969
- }, C(m(l).mediaLibrary.moveSelected), 1), m(L).showMovePicker.value ? (c(), x(ui, {
5968
+ onClick: n[15] ||= (e) => m(I).showMovePicker.value = !m(I).showMovePicker.value
5969
+ }, C(m(l).mediaLibrary.moveSelected), 1), m(I).showMovePicker.value ? (c(), x(ui, {
5970
5970
  key: 0,
5971
- folders: m(I).folders.value,
5972
- "current-folder-id": m(I).currentFolderId.value,
5973
- onSelect: m(L).handleMoveToFolder,
5974
- onClose: n[16] ||= (e) => m(L).showMovePicker.value = !1
5971
+ folders: m(P).folders.value,
5972
+ "current-folder-id": m(P).currentFolderId.value,
5973
+ onSelect: m(I).handleMoveToFolder,
5974
+ onClose: n[16] ||= (e) => m(I).showMovePicker.value = !1
5975
5975
  }, null, 8, [
5976
5976
  "folders",
5977
5977
  "current-folder-id",
5978
5978
  "onSelect"
5979
- ])) : b("", !0)])) : b("", !0)])) : b("", !0), w("div", Ia, [m(I).selectedItems.value.size > 0 ? (c(), p("button", {
5979
+ ])) : b("", !0)])) : b("", !0)])) : b("", !0), w("div", Ia, [m(P).selectedItems.value.size > 0 ? (c(), p("button", {
5980
5980
  key: 0,
5981
5981
  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",
5982
5982
  style: {
@@ -5984,15 +5984,15 @@ var Ji = ["data-tpl-theme"], Yi = {
5984
5984
  color: "var(--tpl-danger)",
5985
5985
  "background-color": "var(--tpl-danger-light)"
5986
5986
  },
5987
- onClick: n[17] ||= (...e) => m(L).handleDeleteClick && m(L).handleDeleteClick(...e)
5987
+ onClick: n[17] ||= (...e) => m(I).handleDeleteClick && m(I).handleDeleteClick(...e)
5988
5988
  }, C(m(l).mediaLibrary.deleteSelected), 1)) : b("", !0), w("button", {
5989
5989
  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",
5990
5990
  style: {
5991
5991
  "background-color": "var(--tpl-primary)",
5992
5992
  color: "var(--tpl-bg)"
5993
5993
  },
5994
- disabled: !ne(),
5995
- onClick: z
5994
+ disabled: !re(),
5995
+ onClick: R
5996
5996
  }, C(e.accept?.length ? m(l).mediaLibrary.selectImage : m(l).mediaLibrary.selectFile), 9, La)])])])
5997
5997
  ])], 8, Ji)) : b("", !0)]),
5998
5998
  _: 1
@@ -6000,6 +6000,6 @@ var Ji = ["data-tpl-theme"], Yi = {
6000
6000
  }
6001
6001
  });
6002
6002
  //#endregion
6003
- export { Ii as a, ai as c, rr as d, Te as f, ye as g, be as h, Vi as i, qr as l, B as m, qi as n, xi as o, we as p, Ki as r, ui as s, Ra as t, gr as u };
6003
+ export { Ii as a, ai as c, rr as d, Ee as f, be as g, xe as h, Vi as i, qr as l, z as m, qi as n, xi as o, Te as p, Ki as r, ui as s, Ra as t, gr as u };
6004
6004
 
6005
- //# sourceMappingURL=media-library-BIYzV2Y2.js.map
6005
+ //# sourceMappingURL=media-library-BGQm_OyC.js.map