@orchidui/dashboard 1.19.0 → 1.20.1-0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +441 -467
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -1,10 +1,10 @@
1
1
  var pt = Object.defineProperty;
2
2
  var gt = (n, V, r) => V in n ? pt(n, V, { enumerable: !0, configurable: !0, writable: !0, value: r }) : n[V] = r;
3
- var ze = (n, V, r) => gt(n, typeof V != "symbol" ? V + "" : V, r);
4
- import { ref as v, computed as be, createBlock as F, openBlock as m, unref as w, normalizeClass as Q, withCtx as Y, createVNode as T, createElementBlock as E, createSlots as vt, renderSlot as Ke, normalizeStyle as ee, createCommentVNode as H, onMounted as _e, watch as ye, createElementVNode as b, Fragment as pe, createTextVNode as ge, toDisplayString as Pe, renderList as Ze, withKeys as it, inject as Be, reactive as et, provide as Te, nextTick as mt, withDirectives as ft, vShow as ht, defineComponent as bt, defineAsyncComponent as st } from "vue";
5
- import { Q as G, a as yt } from "./QuillEditor-DwCbpq2d.js";
6
- import { BaseInput as rt, Dropdown as ut, Input as $e, Icon as A, Modal as xt, Select as Je, Slider as Ne } from "@orchidui/core";
7
- import { rgbToHsl as tt, rgb2Hex as lt, rgbaToHex8 as kt, hsl2Hex as at, hexToRgb as je, rgbToHue as Ae, hslToRgb as nt, hex8ToRgba as $t, parseRgba as wt, parseRgb as St } from "./Dashboard/ColorPicker/components/converters.js";
3
+ var We = (n, V, r) => gt(n, typeof V != "symbol" ? V + "" : V, r);
4
+ import { ref as v, computed as $e, createBlock as q, openBlock as m, unref as w, normalizeClass as Q, withCtx as W, createVNode as T, createElementBlock as E, createSlots as vt, renderSlot as ze, normalizeStyle as te, createCommentVNode as H, onMounted as Je, watch as fe, createElementVNode as h, Fragment as ge, createTextVNode as ve, toDisplayString as Ne, renderList as Ke, withKeys as ot, inject as Re, reactive as _e, provide as Be, nextTick as mt, withDirectives as ft, vShow as ht, defineComponent as yt, defineAsyncComponent as it } from "vue";
5
+ import { Q as Y, a as bt } from "./QuillEditor-DwCbpq2d.js";
6
+ import { BaseInput as st, Dropdown as rt, Input as we, Icon as A, Modal as xt, Select as Ze, Slider as Ae } from "@orchidui/core";
7
+ import { rgbToHsl as et, rgb2Hex as tt, rgbaToHex8 as kt, hsl2Hex as lt, hexToRgb as je, rgbToHue as Qe, hslToRgb as at, hex8ToRgba as $t, parseRgba as wt, parseRgb as St } from "./Dashboard/ColorPicker/components/converters.js";
8
8
  import { PieChart as Ct } from "./Dashboard/Charts/PieChart/OcPieChart.js";
9
9
  import { LineChart as Ml } from "./Dashboard/Charts/LineChart/OcLineChart.js";
10
10
  import { BarChart as Al } from "./Dashboard/Charts/BarChart/OcBarChart.js";
@@ -35,7 +35,7 @@ const It = { key: 1 }, Vt = {
35
35
  setup(n, { emit: V }) {
36
36
  const r = n, y = V, u = v(!1), f = v(r.modelValue), C = (U) => {
37
37
  U && (f.value = U, y("update:model-value", U));
38
- }, p = be(() => r.variant === "gradient" ? {
38
+ }, p = $e(() => r.variant === "gradient" ? {
39
39
  class: "w-[20px] h-[20px] hide-svg-icon",
40
40
  style: {
41
41
  background: f.value
@@ -44,35 +44,35 @@ const It = { key: 1 }, Vt = {
44
44
  style: {
45
45
  color: f.value
46
46
  }
47
- }), a = v(), O = v([]), j = () => {
47
+ }), a = v(), O = v([]), Z = () => {
48
48
  O.value.length > 8 && (O.value = O.value.filter((U, N) => N < 8)), localStorage.setItem("ck-cp-local-color-list", JSON.stringify(O.value));
49
49
  };
50
50
  let M = localStorage.getItem("ck-cp-local-color-list");
51
- M && (O.value = [...new Set(JSON.parse(M))], j());
51
+ M && (O.value = [...new Set(JSON.parse(M))], Z());
52
52
  const L = (U) => {
53
53
  if (!U && f.value)
54
54
  if (O.value.find((D) => D === f.value))
55
55
  O.value = [
56
56
  f.value,
57
57
  ...O.value.filter((D) => D !== f.value)
58
- ], j();
58
+ ], Z();
59
59
  else {
60
60
  O.value.length >= 9 && O.value.pop();
61
61
  let D = f.value;
62
- O.value.unshift(D), j();
62
+ O.value.unshift(D), Z();
63
63
  }
64
- }, B = v(!1), W = (U) => {
64
+ }, B = v(!1), j = (U) => {
65
65
  f.value = U, y("update:model-value", U), u.value = !1;
66
66
  };
67
- return (U, N) => (m(), F(w(rt), {
67
+ return (U, N) => (m(), q(w(st), {
68
68
  class: Q(n.hideInputColor ? "w-[40px]" : ""),
69
69
  onClick: N[1] || (N[1] = () => {
70
70
  var D;
71
71
  return (D = a.value) == null ? void 0 : D.toggleDropdown();
72
72
  })
73
73
  }, {
74
- default: Y(() => [
75
- T(w(ut), {
74
+ default: W(() => [
75
+ T(w(rt), {
76
76
  ref_key: "dropdownRef",
77
77
  ref: a,
78
78
  modelValue: u.value,
@@ -86,8 +86,8 @@ const It = { key: 1 }, Vt = {
86
86
  strategy: "fixed"
87
87
  }
88
88
  }, {
89
- menu: Y(() => [
90
- B.value ? H("", !0) : (m(), F(w(xl), {
89
+ menu: W(() => [
90
+ B.value ? H("", !0) : (m(), q(w(xl), {
91
91
  key: 0,
92
92
  variant: n.variant,
93
93
  "show-alpha": !n.hideOpacity,
@@ -96,19 +96,19 @@ const It = { key: 1 }, Vt = {
96
96
  "last-used-colors": O.value,
97
97
  "preset-colors": n.presetColors,
98
98
  "onUpdate:modelValue": C,
99
- onLastUsedPick: W
99
+ onLastUsedPick: j
100
100
  }, null, 8, ["variant", "show-alpha", "type", "model-value", "last-used-colors", "preset-colors"]))
101
101
  ]),
102
- default: Y(() => [
102
+ default: W(() => [
103
103
  n.hideInputColor ? (m(), E("div", It, [
104
- Ke(U.$slots, "picker-icon", {}, () => [
104
+ ze(U.$slots, "picker-icon", {}, () => [
105
105
  T(w(A), {
106
106
  class: "cursor-pointer",
107
- style: ee(`color: ${f.value}`),
107
+ style: te(`color: ${f.value}`),
108
108
  name: "drop"
109
109
  }, null, 8, ["style"])
110
110
  ])
111
- ])) : (m(), F(w($e), {
111
+ ])) : (m(), q(w(we), {
112
112
  key: 0,
113
113
  "model-value": f.value,
114
114
  icon: "drop",
@@ -118,8 +118,8 @@ const It = { key: 1 }, Vt = {
118
118
  }, vt({ _: 2 }, [
119
119
  U.$slots.leading ? {
120
120
  name: "leading",
121
- fn: Y(() => [
122
- Ke(U.$slots, "leading")
121
+ fn: W(() => [
122
+ ze(U.$slots, "leading")
123
123
  ]),
124
124
  key: "0"
125
125
  } : void 0
@@ -200,136 +200,111 @@ const It = { key: 1 }, Vt = {
200
200
  "alignment"
201
201
  ],
202
202
  "text-only": ["changes", "font-size", "font-style", "link", "quote", "list", "alignment"]
203
- }, f = be(() => u[r.variant]), C = G.import("attributors/style/size");
204
- C.whitelist = r.fontSizes.map((c) => c.value), G.register(C, !0);
205
- const p = G.import("attributors/style/align");
206
- G.register(p, !0);
207
- const a = G.import("attributors/style/background");
208
- G.register(a, !0);
209
- const O = G.import("attributors/style/color");
210
- G.register(O, !0);
211
- const j = G.import("attributors/style/direction");
212
- G.register(j, !0);
213
- const M = G.import("attributors/style/font");
214
- G.register(M, !0);
215
- const L = G.import("blots/block/embed");
203
+ }, f = $e(() => u[r.variant]), C = Y.import("attributors/style/size");
204
+ C.whitelist = r.fontSizes.map((c) => c.value), Y.register(C, !0);
205
+ const p = Y.import("attributors/style/align");
206
+ Y.register(p, !0);
207
+ const a = Y.import("attributors/style/background");
208
+ Y.register(a, !0);
209
+ const O = Y.import("attributors/style/color");
210
+ Y.register(O, !0);
211
+ const Z = Y.import("attributors/style/direction");
212
+ Y.register(Z, !0);
213
+ const M = Y.import("attributors/style/font");
214
+ Y.register(M, !0);
215
+ const L = Y.import("blots/block/embed");
216
216
  class B extends L {
217
217
  }
218
- ze(B, "blotName", "divider"), ze(B, "tagName", "hr"), G.register(B);
219
- const W = v(
218
+ We(B, "blotName", "divider"), We(B, "tagName", "hr"), Y.register(B);
219
+ const j = v(
220
220
  Math.random().toString(36).replace(/[^a-zA-Z]+/g, "")
221
- ), U = v(!1), N = v(!1), D = v(!1), te = v(!1), K = v(!1), z = v(!1), R = v(!1), q = v(""), le = v(""), _ = v(""), x = v(), we = v(!1), ue = v(r.image), ve = be(() => {
222
- const c = [
223
- "background",
224
- "bold",
225
- "color",
226
- "font",
227
- "code",
228
- "italic",
229
- "link",
230
- "size",
231
- "strike",
232
- "script",
233
- "underline",
234
- "blockquote",
235
- "header",
236
- "indent",
237
- "list",
238
- "align",
239
- "direction",
240
- "code-block",
241
- "formula"
242
- ];
243
- return f.value.includes("image") && c.push("image"), f.value.includes("media") && c.push("video"), {
244
- formats: c
245
- };
246
- }), Se = (c) => {
247
- U.value = x.value.getQuill().history.stack.undo.length > 0, N.value = x.value.getQuill().history.stack.redo.length > 0, D.value = x.value.getQuill().getFormat().bold, te.value = x.value.getQuill().getFormat().italic, K.value = x.value.getQuill().getFormat().underline, R.value = x.value.getQuill().getFormat().blockquote, le.value = x.value.getQuill().getFormat().list, _.value = x.value.getQuill().getFormat().align;
221
+ ), U = v(!1), N = v(!1), D = v(!1), le = v(!1), J = v(!1), z = v(!1), R = v(!1), P = v(""), ae = v(""), ee = v(""), b = v(), Se = v(!1), ue = v(r.image), ie = (c) => {
222
+ U.value = b.value.getQuill().history.stack.undo.length > 0, N.value = b.value.getQuill().history.stack.redo.length > 0, D.value = b.value.getQuill().getFormat().bold, le.value = b.value.getQuill().getFormat().italic, J.value = b.value.getQuill().getFormat().underline, R.value = b.value.getQuill().getFormat().blockquote, ae.value = b.value.getQuill().getFormat().list, ee.value = b.value.getQuill().getFormat().align;
248
223
  let o = document.createElement("div");
249
- o.innerHTML = c, we.value && (o.innerText ? y("update:modelValue", c || "") : y("update:modelValue", ""), o.remove());
250
- }, Re = () => {
251
- if (x.value.getQuill().getSelection(!0)) {
252
- const o = x.value.getQuill().getSelection(!0);
253
- x.value.getQuill().insertText(o.index, `
254
- `, G.sources.USER), x.value.getQuill().insertEmbed(o.index + 1, "divider", !0, G.sources.USER), x.value.getQuill().setSelection(o.index + 2, G.sources.SILENT);
224
+ o.innerHTML = c, Se.value && (o.innerText ? y("update:modelValue", c || "") : y("update:modelValue", ""), o.remove());
225
+ }, Pe = () => {
226
+ if (b.value.getQuill().getSelection(!0)) {
227
+ const o = b.value.getQuill().getSelection(!0);
228
+ b.value.getQuill().insertText(o.index, `
229
+ `, Y.sources.USER), b.value.getQuill().insertEmbed(o.index + 1, "divider", !0, Y.sources.USER), b.value.getQuill().setSelection(o.index + 2, Y.sources.SILENT);
255
230
  }
256
231
  }, Ee = () => {
257
- x.value.getQuill().history.undo(), Se(r.modelValue);
232
+ b.value.getQuill().history.undo(), ie(r.modelValue);
233
+ }, Ue = () => {
234
+ b.value.getQuill().history.redo(), ie(r.modelValue);
258
235
  }, Ce = () => {
259
- x.value.getQuill().history.redo(), Se(r.modelValue);
260
- }, ae = () => {
261
236
  var c;
262
- x.value.getQuill().format("bold", !D.value), (c = x.value.getQuill().getSelection()) != null && c.length || (D.value = !D.value);
237
+ b.value.getQuill().format("bold", !D.value), (c = b.value.getQuill().getSelection()) != null && c.length || (D.value = !D.value);
238
+ }, ne = () => {
239
+ var c;
240
+ b.value.getQuill().format("italic", !le.value), (c = b.value.getQuill().getSelection()) != null && c.length || (le.value = !le.value);
263
241
  }, Ie = () => {
264
242
  var c;
265
- x.value.getQuill().format("italic", !te.value), (c = x.value.getQuill().getSelection()) != null && c.length || (te.value = !te.value);
243
+ b.value.getQuill().format("underline", !J.value), (c = b.value.getQuill().getSelection()) != null && c.length || (J.value = !J.value);
244
+ }, De = (c) => {
245
+ b.value.getQuill().format("size", c), P.value = c, z.value = !1;
246
+ }, me = () => {
247
+ const c = b.value.getQuill().getSelection();
248
+ c && c.length > 0 && b.value.getQuill().theme.tooltip.edit();
266
249
  }, Xe = () => {
267
- var c;
268
- x.value.getQuill().format("underline", !K.value), (c = x.value.getQuill().getSelection()) != null && c.length || (K.value = !K.value);
269
- }, de = (c) => {
270
- x.value.getQuill().format("size", c), q.value = c, z.value = !1;
271
- }, qe = () => {
272
- const c = x.value.getQuill().getSelection();
273
- c && c.length > 0 && x.value.getQuill().theme.tooltip.edit();
274
- }, ne = () => {
275
- x.value.getQuill().format("blockquote", !R.value);
276
- }, Ue = (c) => {
277
- const o = x.value.getQuill().getSelection();
278
- o && (x.value.getQuill().clipboard.dangerouslyPasteHTML(o.index, `<img src="${c}" />`), ue.value = c, y("update:image", ue.value));
279
- }, Fe = () => {
280
- x.value.getQuill().getSelection() || x.value.getQuill().setSelection(x.value.getQuill().getLength() - 1);
250
+ b.value.getQuill().format("blockquote", !R.value);
251
+ }, oe = (c) => {
252
+ const o = b.value.getQuill().getSelection();
253
+ o && (b.value.getQuill().clipboard.dangerouslyPasteHTML(o.index, `<img src="${c}" />`), ue.value = c, y("update:image", ue.value));
254
+ }, He = () => {
255
+ b.value.getQuill().getSelection() || b.value.getQuill().setSelection(b.value.getQuill().getLength() - 1);
281
256
  const c = document.createElement("input");
282
257
  c.type = "file", c.accept = "jpg,.jpeg,.png,.webp,.gif", c.onchange = () => {
283
- const o = c.files[0], h = new FileReader();
284
- h.onload = () => Ue(h.result), h.readAsDataURL(o);
258
+ const o = c.files[0], x = new FileReader();
259
+ x.onload = () => oe(x.result), x.readAsDataURL(o);
285
260
  }, c.click();
286
- }, P = (c) => /^data:image\/(png|jpg|jpeg|gif);base64,/.test(c), Z = (c) => {
261
+ }, Oe = (c) => /^data:image\/(png|jpg|jpeg|gif);base64,/.test(c), X = (c) => {
287
262
  setTimeout(() => {
288
- var h;
263
+ var x;
289
264
  if (c) {
290
- const J = x.value.getHTML(), ce = document.createElement("div");
291
- ce.innerHTML = J;
292
- let se = ce.getElementsByTagName("img");
293
- if (se && se.length > 0)
294
- for (let he = 0; he < se.length; he++) {
295
- const Qe = (h = se[he]) == null ? void 0 : h.getAttribute("src");
296
- P(Qe) && y("update:image", Qe);
265
+ const G = b.value.getHTML(), se = document.createElement("div");
266
+ se.innerHTML = G;
267
+ let xe = se.getElementsByTagName("img");
268
+ if (xe && xe.length > 0)
269
+ for (let pe = 0; pe < xe.length; pe++) {
270
+ const ke = (x = xe[pe]) == null ? void 0 : x.getAttribute("src");
271
+ Oe(ke) && y("update:image", ke);
297
272
  }
298
273
  }
299
274
  }, 100);
300
275
  const { items: o } = c.clipboardData;
301
- o.length && o[0].getAsString((h) => {
302
- P(h) && (x.value.getQuill().getSelection() || x.value.getQuill().setSelection(x.value.getQuill().getLength() - 1));
276
+ o.length && o[0].getAsString((x) => {
277
+ Oe(x) && (b.value.getQuill().getSelection() || b.value.getQuill().setSelection(b.value.getQuill().getLength() - 1));
303
278
  });
304
- }, De = () => {
305
- x.value.getQuill().theme.tooltip.edit("video");
306
- }, He = (c) => {
307
- x.value.getQuill().format("list", c), le.value = c;
308
- }, me = (c = void 0) => {
309
- x.value.getQuill().format("align", c), _.value = c;
310
- }, fe = v(""), Oe = () => {
311
- x.value.getQuill().format("color", fe.value);
279
+ }, _ = () => {
280
+ b.value.getQuill().theme.tooltip.edit("video");
281
+ }, Ve = (c) => {
282
+ b.value.getQuill().format("list", c), ae.value = c;
283
+ }, he = (c = void 0) => {
284
+ b.value.getQuill().format("align", c), ee.value = c;
285
+ }, de = v(""), qe = () => {
286
+ b.value.getQuill().format("color", de.value);
312
287
  };
313
- _e(() => {
314
- de(r.initialFontSize || r.fontSizes[0].value), we.value = !0;
288
+ Je(() => {
289
+ De(r.initialFontSize || r.fontSizes[0].value), Se.value = !0;
315
290
  });
316
- const ie = v(100), xe = v(!1), Me = (c) => {
317
- var h, J;
318
- ie.value = c;
319
- const o = (h = window.getSelection()) == null ? void 0 : h.focusNode;
320
- o && o.nodeName !== "#text" && (x.value.getQuill().format("width", `${ie.value}%`), (J = o == null ? void 0 : o.querySelector("img")) == null || J.setAttribute("style", "margin:auto;display:block;"));
321
- }, ke = (c = "left") => {
322
- var h, J;
323
- const o = (h = window.getSelection()) == null ? void 0 : h.focusNode;
291
+ const ye = v(100), ce = v(!1), Le = (c) => {
292
+ var x, G;
293
+ ye.value = c;
294
+ const o = (x = window.getSelection()) == null ? void 0 : x.focusNode;
295
+ o && o.nodeName !== "#text" && (b.value.getQuill().format("width", `${ye.value}%`), (G = o == null ? void 0 : o.querySelector("img")) == null || G.setAttribute("style", "margin:auto;display:block;"));
296
+ }, be = (c = "left") => {
297
+ var x, G;
298
+ const o = (x = window.getSelection()) == null ? void 0 : x.focusNode;
324
299
  if (o && o.nodeName !== "#text") {
325
- let ce = "float:left";
326
- c == "center" ? ce = "" : c == "right" && (ce = "float:right"), (J = o == null ? void 0 : o.querySelector("img")) == null || J.setAttribute("style", `margin:auto;display:block;${ce}`);
300
+ let se = "float:left";
301
+ c == "center" ? se = "" : c == "right" && (se = "float:right"), (G = o == null ? void 0 : o.querySelector("img")) == null || G.setAttribute("style", `margin:auto;display:block;${se}`);
327
302
  }
328
- }, oe = () => {
303
+ }, Me = () => {
329
304
  var o;
330
305
  const c = (o = window.getSelection()) == null ? void 0 : o.focusNode;
331
- xe.value = c.innerHTML && c.innerHTML.includes("<img");
332
- }, X = v(!1), Ve = v(3), Le = v(3), Ge = be(() => {
306
+ ce.value = c.innerHTML && c.innerHTML.includes("<img");
307
+ }, K = v(!1), F = v(3), Te = v(3), Fe = $e(() => {
333
308
  let c = [];
334
309
  for (let o = 1; o < 30; o++)
335
310
  c.push({
@@ -337,7 +312,7 @@ const It = { key: 1 }, Vt = {
337
312
  value: o.toString()
338
313
  });
339
314
  return c;
340
- }), Ye = be(() => {
315
+ }), Ge = $e(() => {
341
316
  let c = [];
342
317
  for (let o = 1; o < 12; o++)
343
318
  c.push({
@@ -345,16 +320,16 @@ const It = { key: 1 }, Vt = {
345
320
  value: o.toString()
346
321
  });
347
322
  return c;
348
- }), We = () => {
349
- let c = x.value.getQuill().getModule("better-table");
350
- c == null || c.insertTable(parseInt(Ve.value), parseInt(Le.value)), X.value = !1;
323
+ }), Ye = () => {
324
+ let c = b.value.getQuill().getModule("better-table");
325
+ c == null || c.insertTable(parseInt(F.value), parseInt(Te.value)), K.value = !1;
351
326
  };
352
- return ye(
327
+ return fe(
353
328
  () => r.modelValue,
354
329
  (c) => {
355
- c || x.value.getQuill().setContents([], "silent");
330
+ c || b.value.getQuill().setContents([], "silent");
356
331
  }
357
- ), (c, o) => (m(), F(w(rt), {
332
+ ), (c, o) => (m(), q(w(st), {
358
333
  label: n.label,
359
334
  hint: n.hint,
360
335
  "error-message": n.errorMessage,
@@ -363,63 +338,62 @@ const It = { key: 1 }, Vt = {
363
338
  "tooltip-text": n.tooltipText,
364
339
  "tooltip-options": n.tooltipOptions
365
340
  }, {
366
- default: Y(() => [
341
+ default: W(() => [
367
342
  T(w(xt), {
368
343
  title: "Insert table",
369
- modelValue: X.value,
370
- "onUpdate:modelValue": o[2] || (o[2] = (h) => X.value = h),
344
+ modelValue: K.value,
345
+ "onUpdate:modelValue": o[2] || (o[2] = (x) => K.value = x),
371
346
  class: "!w-full !h-full",
372
347
  confirmButtonProps: {
373
348
  label: "Save",
374
- onClick: () => We()
349
+ onClick: () => Ye()
375
350
  }
376
351
  }, {
377
- default: Y(() => [
378
- T(w(Je), {
379
- modelValue: Le.value,
380
- "onUpdate:modelValue": o[0] || (o[0] = (h) => Le.value = h),
381
- options: Ye.value,
352
+ default: W(() => [
353
+ T(w(Ze), {
354
+ modelValue: Te.value,
355
+ "onUpdate:modelValue": o[0] || (o[0] = (x) => Te.value = x),
356
+ options: Ge.value,
382
357
  label: "Table cell",
383
358
  class: "mb-3"
384
359
  }, null, 8, ["modelValue", "options"]),
385
- T(w(Je), {
386
- modelValue: Ve.value,
387
- "onUpdate:modelValue": o[1] || (o[1] = (h) => Ve.value = h),
388
- options: Ge.value,
360
+ T(w(Ze), {
361
+ modelValue: F.value,
362
+ "onUpdate:modelValue": o[1] || (o[1] = (x) => F.value = x),
363
+ options: Fe.value,
389
364
  label: "Table rows"
390
365
  }, null, 8, ["modelValue", "options"])
391
366
  ]),
392
367
  _: 1
393
368
  }, 8, ["modelValue", "confirmButtonProps"]),
394
- b("div", {
369
+ h("div", {
395
370
  class: Q(["grid", { "has-error": n.errorMessage }]),
396
- onClick: oe
371
+ onClick: Me
397
372
  }, [
398
- W.value ? (m(), F(w(yt), {
373
+ j.value ? (m(), q(w(bt), {
399
374
  key: 0,
400
- id: `#${W.value}`,
375
+ id: `#${j.value}`,
401
376
  ref_key: "quill",
402
- ref: x,
377
+ ref: b,
403
378
  content: n.modelValue,
404
379
  options: {
405
- bounds: `#${W.value}`
380
+ bounds: `#${j.value}`
406
381
  },
407
382
  "is-text-only": "",
408
383
  theme: "snow",
409
384
  "content-type": "html",
410
- "global-options": ve.value,
411
385
  class: "min-h-[200px]",
412
386
  placeholder: n.placeholder,
413
- "onUpdate:content": Se,
414
- onPaste: Z
387
+ "onUpdate:content": ie,
388
+ onPaste: X
415
389
  }, {
416
- toolbar: Y(() => [
417
- b("div", {
418
- id: W.value,
390
+ toolbar: W(() => [
391
+ h("div", {
392
+ id: j.value,
419
393
  class: "flex min-h-[36px] flex-wrap !py-2 !px-3 gap-y-2 rounded-t"
420
394
  }, [
421
- f.value.includes("changes") ? (m(), E(pe, { key: 0 }, [
422
- b("div", Tt, [
395
+ f.value.includes("changes") ? (m(), E(ge, { key: 0 }, [
396
+ h("div", Tt, [
423
397
  T(w(A), {
424
398
  class: Q(U.value ? "text-oc-text cursor-pointer" : "text-oc-text-300"),
425
399
  width: "20",
@@ -432,31 +406,31 @@ const It = { key: 1 }, Vt = {
432
406
  width: "20",
433
407
  height: "20",
434
408
  name: "text-editor/redo",
435
- onClick: Ce
409
+ onClick: Ue
436
410
  }, null, 8, ["class"])
437
411
  ]),
438
- o[16] || (o[16] = b("div", { class: "border-l border-oc-gray-200" }, null, -1))
412
+ o[16] || (o[16] = h("div", { class: "border-l border-oc-gray-200" }, null, -1))
439
413
  ], 64)) : H("", !0),
440
- f.value.includes("font-size") ? (m(), E(pe, { key: 1 }, [
441
- T(w(ut), {
414
+ f.value.includes("font-size") ? (m(), E(ge, { key: 1 }, [
415
+ T(w(rt), {
442
416
  modelValue: z.value,
443
- "onUpdate:modelValue": o[3] || (o[3] = (h) => z.value = h),
417
+ "onUpdate:modelValue": o[3] || (o[3] = (x) => z.value = x),
444
418
  class: "px-5"
445
419
  }, {
446
- menu: Y(() => [
447
- b("div", Rt, [
448
- (m(!0), E(pe, null, Ze(n.fontSizes, (h) => (m(), E("div", {
449
- key: h.value,
450
- class: Q(["min-w-[120px] cursor-pointer py-2 px-3 hover:bg-oc-gray-50", q.value === h.value ? "font-medium" : ""]),
451
- onClick: (J) => de(h.value)
452
- }, Pe(h.label), 11, Et))), 128))
420
+ menu: W(() => [
421
+ h("div", Rt, [
422
+ (m(!0), E(ge, null, Ke(n.fontSizes, (x) => (m(), E("div", {
423
+ key: x.value,
424
+ class: Q(["min-w-[120px] cursor-pointer py-2 px-3 hover:bg-oc-gray-50", P.value === x.value ? "font-medium" : ""]),
425
+ onClick: (G) => De(x.value)
426
+ }, Ne(x.label), 11, Et))), 128))
453
427
  ])
454
428
  ]),
455
- default: Y(() => {
456
- var h;
429
+ default: W(() => {
430
+ var x;
457
431
  return [
458
- b("div", Bt, [
459
- ge(Pe((h = n.fontSizes.find((J) => J.value === q.value)) == null ? void 0 : h.label) + " ", 1),
432
+ h("div", Bt, [
433
+ ve(Ne((x = n.fontSizes.find((G) => G.value === P.value)) == null ? void 0 : x.label) + " ", 1),
460
434
  T(w(A), {
461
435
  width: "20",
462
436
  height: "20",
@@ -468,195 +442,195 @@ const It = { key: 1 }, Vt = {
468
442
  }),
469
443
  _: 1
470
444
  }, 8, ["modelValue"]),
471
- o[17] || (o[17] = b("div", { class: "border-l border-oc-gray-200" }, null, -1))
445
+ o[17] || (o[17] = h("div", { class: "border-l border-oc-gray-200" }, null, -1))
472
446
  ], 64)) : H("", !0),
473
- f.value.includes("font-style") ? (m(), E(pe, { key: 2 }, [
474
- b("div", Ut, [
447
+ f.value.includes("font-style") ? (m(), E(ge, { key: 2 }, [
448
+ h("div", Ut, [
475
449
  T(w(A), {
476
450
  class: Q(["cursor-pointer", D.value ? "text-oc-text" : "text-oc-text-300"]),
477
451
  width: "20",
478
452
  height: "20",
479
453
  name: "text-editor/bold",
480
- onClick: ae
454
+ onClick: Ce
481
455
  }, null, 8, ["class"]),
482
456
  T(w(A), {
483
- class: Q(["cursor-pointer", te.value ? "text-oc-text" : "text-oc-text-300"]),
457
+ class: Q(["cursor-pointer", le.value ? "text-oc-text" : "text-oc-text-300"]),
484
458
  width: "20",
485
459
  height: "20",
486
460
  name: "text-editor/italic",
487
- onClick: Ie
461
+ onClick: ne
488
462
  }, null, 8, ["class"]),
489
463
  T(w(A), {
490
- class: Q(["cursor-pointer", K.value ? "text-oc-text" : "text-oc-text-300"]),
464
+ class: Q(["cursor-pointer", J.value ? "text-oc-text" : "text-oc-text-300"]),
491
465
  width: "20",
492
466
  height: "20",
493
467
  name: "text-editor/underline",
494
- onClick: Xe
468
+ onClick: Ie
495
469
  }, null, 8, ["class"])
496
470
  ]),
497
- o[18] || (o[18] = b("div", { class: "border-l border-oc-gray-200" }, null, -1))
471
+ o[18] || (o[18] = h("div", { class: "border-l border-oc-gray-200" }, null, -1))
498
472
  ], 64)) : H("", !0),
499
- b("div", Dt, [
500
- f.value.includes("link") ? (m(), F(w(A), {
473
+ h("div", Dt, [
474
+ f.value.includes("link") ? (m(), q(w(A), {
501
475
  key: 0,
502
476
  class: "cursor-pointer",
503
477
  width: "20",
504
478
  height: "20",
505
479
  name: "text-editor/link",
506
- onClick: qe
480
+ onClick: me
507
481
  })) : H("", !0),
508
- f.value.includes("image") ? (m(), F(w(A), {
482
+ f.value.includes("image") ? (m(), q(w(A), {
509
483
  key: 1,
510
484
  class: "cursor-pointer",
511
485
  width: "20",
512
486
  height: "20",
513
487
  name: "text-editor/image",
514
- onClick: Fe
488
+ onClick: He
515
489
  })) : H("", !0),
516
- f.value.includes("quote") ? (m(), F(w(A), {
490
+ f.value.includes("quote") ? (m(), q(w(A), {
517
491
  key: 2,
518
492
  class: Q(["cursor-pointer", R.value ? "text-oc-text" : "text-oc-text-300"]),
519
493
  width: "20",
520
494
  height: "20",
521
495
  name: "text-editor/quote",
522
- onClick: ne
496
+ onClick: Xe
523
497
  }, null, 8, ["class"])) : H("", !0),
524
- f.value.includes("media") ? (m(), F(w(A), {
498
+ f.value.includes("media") ? (m(), q(w(A), {
525
499
  key: 3,
526
500
  class: "cursor-pointer",
527
501
  width: "20",
528
502
  height: "20",
529
503
  name: "text-editor/media",
530
- onClick: De
504
+ onClick: _
531
505
  })) : H("", !0),
532
506
  T(w(A), {
533
507
  class: "cursor-pointer",
534
508
  width: "20",
535
509
  height: "20",
536
510
  name: "table",
537
- onClick: o[4] || (o[4] = (h) => X.value = !X.value)
511
+ onClick: o[4] || (o[4] = (x) => K.value = !K.value)
538
512
  })
539
513
  ]),
540
- f.value.includes("list") ? (m(), E(pe, { key: 3 }, [
541
- o[19] || (o[19] = b("div", { class: "border-l border-oc-gray-200" }, null, -1)),
542
- b("div", Ht, [
514
+ f.value.includes("list") ? (m(), E(ge, { key: 3 }, [
515
+ o[19] || (o[19] = h("div", { class: "border-l border-oc-gray-200" }, null, -1)),
516
+ h("div", Ht, [
543
517
  T(w(A), {
544
- class: Q(["cursor-pointer", le.value === "bullet" ? "text-oc-text" : "text-oc-text-300"]),
518
+ class: Q(["cursor-pointer", ae.value === "bullet" ? "text-oc-text" : "text-oc-text-300"]),
545
519
  width: "20",
546
520
  height: "20",
547
521
  name: "text-editor/bullet",
548
- onClick: o[5] || (o[5] = (h) => He("bullet"))
522
+ onClick: o[5] || (o[5] = (x) => Ve("bullet"))
549
523
  }, null, 8, ["class"]),
550
524
  T(w(A), {
551
- class: Q(["cursor-pointer", le.value === "ordered" ? "text-oc-text" : "text-oc-text-300"]),
525
+ class: Q(["cursor-pointer", ae.value === "ordered" ? "text-oc-text" : "text-oc-text-300"]),
552
526
  width: "20",
553
527
  height: "20",
554
528
  name: "text-editor/number",
555
- onClick: o[6] || (o[6] = (h) => He("ordered"))
529
+ onClick: o[6] || (o[6] = (x) => Ve("ordered"))
556
530
  }, null, 8, ["class"])
557
531
  ])
558
532
  ], 64)) : H("", !0),
559
- f.value.includes("alignment") ? (m(), E(pe, { key: 4 }, [
560
- o[20] || (o[20] = b("div", { class: "border-l border-oc-gray-200" }, null, -1)),
561
- b("div", Ot, [
533
+ f.value.includes("alignment") ? (m(), E(ge, { key: 4 }, [
534
+ o[20] || (o[20] = h("div", { class: "border-l border-oc-gray-200" }, null, -1)),
535
+ h("div", Ot, [
562
536
  T(w(A), {
563
- class: Q(["cursor-pointer", _.value ? "text-oc-text-300" : "text-oc-text"]),
537
+ class: Q(["cursor-pointer", ee.value ? "text-oc-text-300" : "text-oc-text"]),
564
538
  width: "20",
565
539
  height: "20",
566
540
  name: "text-editor/left",
567
- onClick: o[7] || (o[7] = (h) => me())
541
+ onClick: o[7] || (o[7] = (x) => he())
568
542
  }, null, 8, ["class"]),
569
543
  T(w(A), {
570
- class: Q(["cursor-pointer", _.value === "center" ? "text-oc-text" : "text-oc-text-300"]),
544
+ class: Q(["cursor-pointer", ee.value === "center" ? "text-oc-text" : "text-oc-text-300"]),
571
545
  width: "20",
572
546
  height: "20",
573
547
  name: "text-editor/center",
574
- onClick: o[8] || (o[8] = (h) => me("center"))
548
+ onClick: o[8] || (o[8] = (x) => he("center"))
575
549
  }, null, 8, ["class"]),
576
550
  T(w(A), {
577
- class: Q(["cursor-pointer", _.value === "right" ? "text-oc-text" : "text-oc-text-300"]),
551
+ class: Q(["cursor-pointer", ee.value === "right" ? "text-oc-text" : "text-oc-text-300"]),
578
552
  width: "20",
579
553
  height: "20",
580
554
  name: "text-editor/right",
581
- onClick: o[9] || (o[9] = (h) => me("right"))
555
+ onClick: o[9] || (o[9] = (x) => he("right"))
582
556
  }, null, 8, ["class"]),
583
557
  T(w(A), {
584
- class: Q(["cursor-pointer", _.value === "justify" ? "text-oc-text" : "text-oc-text-300"]),
558
+ class: Q(["cursor-pointer", ee.value === "justify" ? "text-oc-text" : "text-oc-text-300"]),
585
559
  width: "20",
586
560
  height: "20",
587
561
  name: "text-editor/justify",
588
- onClick: o[10] || (o[10] = (h) => me("justify"))
562
+ onClick: o[10] || (o[10] = (x) => he("justify"))
589
563
  }, null, 8, ["class"])
590
564
  ])
591
565
  ], 64)) : H("", !0),
592
- o[22] || (o[22] = b("div", { class: "border-l border-oc-gray-200" }, null, -1)),
593
- b("div", Mt, [
566
+ o[22] || (o[22] = h("div", { class: "border-l border-oc-gray-200" }, null, -1)),
567
+ h("div", Mt, [
594
568
  T(w(Vt), {
595
- modelValue: fe.value,
569
+ modelValue: de.value,
596
570
  "onUpdate:modelValue": [
597
- o[11] || (o[11] = (h) => fe.value = h),
598
- Oe
571
+ o[11] || (o[11] = (x) => de.value = x),
572
+ qe
599
573
  ],
600
574
  "hide-input-color": ""
601
575
  }, {
602
- "picker-icon": Y(() => [
603
- b("div", Qt, [
604
- b("div", {
605
- style: ee(`color:${fe.value}`)
576
+ "picker-icon": W(() => [
577
+ h("div", Qt, [
578
+ h("div", {
579
+ style: te(`color:${de.value}`)
606
580
  }, "A", 4),
607
- b("div", {
581
+ h("div", {
608
582
  class: "h-[5px] w-full rounded border",
609
- style: ee(`background:${fe.value}`)
583
+ style: te(`background:${de.value}`)
610
584
  }, null, 4)
611
585
  ])
612
586
  ]),
613
587
  _: 1
614
588
  }, 8, ["modelValue"])
615
589
  ]),
616
- o[23] || (o[23] = b("div", { class: "border-l border-oc-gray-200" }, null, -1)),
617
- xe.value ? (m(), E("div", At, [
618
- T(w(Ne), {
590
+ o[23] || (o[23] = h("div", { class: "border-l border-oc-gray-200" }, null, -1)),
591
+ ce.value ? (m(), E("div", At, [
592
+ T(w(Ae), {
619
593
  label: "Image width",
620
594
  class: "w-[120px]",
621
- "model-value": ie.value,
595
+ "model-value": ye.value,
622
596
  "min-limit": 0,
623
597
  "max-limit": 100,
624
- "onUpdate:modelValue": Me
598
+ "onUpdate:modelValue": Le
625
599
  }, null, 8, ["model-value"]),
626
- b("div", Nt, [
600
+ h("div", Nt, [
627
601
  T(w(A), {
628
602
  class: "cursor-pointer",
629
603
  width: "20",
630
604
  height: "20",
631
605
  name: "text-editor/left",
632
- onClick: o[12] || (o[12] = (h) => ke())
606
+ onClick: o[12] || (o[12] = (x) => be())
633
607
  }),
634
608
  T(w(A), {
635
609
  class: "cursor-pointer",
636
610
  width: "20",
637
611
  height: "20",
638
612
  name: "text-editor/center",
639
- onClick: o[13] || (o[13] = (h) => ke("center"))
613
+ onClick: o[13] || (o[13] = (x) => be("center"))
640
614
  }),
641
615
  T(w(A), {
642
616
  class: "cursor-pointer",
643
617
  width: "20",
644
618
  height: "20",
645
619
  name: "text-editor/right",
646
- onClick: o[14] || (o[14] = (h) => ke("right"))
620
+ onClick: o[14] || (o[14] = (x) => be("right"))
647
621
  })
648
622
  ])
649
623
  ])) : H("", !0),
650
- b("div", Pt, [
624
+ h("div", Pt, [
651
625
  (m(), E("svg", {
652
626
  width: "20",
653
627
  height: "20",
654
628
  viewBox: "0 0 15 15",
655
629
  fill: "none",
656
630
  xmlns: "http://www.w3.org/2000/svg",
657
- onClick: o[15] || (o[15] = (h) => Re())
631
+ onClick: o[15] || (o[15] = (x) => Pe())
658
632
  }, o[21] || (o[21] = [
659
- b("path", {
633
+ h("path", {
660
634
  "fill-rule": "evenodd",
661
635
  "clip-rule": "evenodd",
662
636
  d: "M2 7.5C2 7.22386 2.22386 7 2.5 7H12.5C12.7761 7 13 7.22386 13 7.5C13 7.77614 12.7761 8 12.5 8H2.5C2.22386 8 2 7.77614 2 7.5Z",
@@ -667,7 +641,7 @@ const It = { key: 1 }, Vt = {
667
641
  ], 8, Lt)
668
642
  ]),
669
643
  _: 1
670
- }, 8, ["id", "content", "options", "global-options", "placeholder"])) : H("", !0)
644
+ }, 8, ["id", "content", "options", "placeholder"])) : H("", !0)
671
645
  ], 2)
672
646
  ]),
673
647
  _: 1
@@ -714,22 +688,22 @@ const It = { key: 1 }, Vt = {
714
688
  }
715
689
  u.value = `#${a.toUpperCase()}`, y("update:modelValue", u.value);
716
690
  };
717
- return ye(
691
+ return fe(
718
692
  () => r.modelValue,
719
693
  (p, a) => {
720
694
  p !== a && (u.value = p);
721
695
  },
722
696
  { immediate: !0 }
723
- ), (p, a) => (m(), F(w($e), {
697
+ ), (p, a) => (m(), q(w(we), {
724
698
  class: "w-[158px]",
725
699
  placeholder: "#FFFFFF",
726
700
  "model-value": u.value,
727
701
  "onUpdate:modelValue": f,
728
702
  onBlur: C,
729
- onKeyup: it(C, ["enter"])
703
+ onKeyup: ot(C, ["enter"])
730
704
  }, null, 8, ["model-value"]));
731
705
  }
732
- }, qt = { class: "grid grid-cols-3 gap-3" }, ot = {
706
+ }, qt = { class: "grid grid-cols-3 gap-3" }, nt = {
733
707
  __name: "InputRgbHsl",
734
708
  props: {
735
709
  inputType: {
@@ -753,18 +727,18 @@ const It = { key: 1 }, Vt = {
753
727
  g: 0,
754
728
  b: 0
755
729
  }), f = v(), C = v(), p = v(), a = (M, L) => {
756
- var W, U, N;
730
+ var j, U, N;
757
731
  let B = 255;
758
732
  if (r.inputType == "HSL" && (B = 100, M == "r" && (B = 360)), !isNaN(parseInt(L))) {
759
733
  if (M == "r") {
760
734
  let D = parseInt(L);
761
- D <= B && (u.value.r = D, r.inputType == "RGB" ? O("r") : j()), (W = f.value) == null || W.focus();
735
+ D <= B && (u.value.r = D, r.inputType == "RGB" ? O("r") : Z()), (j = f.value) == null || j.focus();
762
736
  } else if (M == "g") {
763
737
  let D = parseInt(L);
764
- D <= B && (u.value.g = D, r.inputType == "RGB" ? O("g") : j()), (U = C.value) == null || U.focus();
738
+ D <= B && (u.value.g = D, r.inputType == "RGB" ? O("g") : Z()), (U = C.value) == null || U.focus();
765
739
  } else if (M == "b") {
766
740
  let D = parseInt(L);
767
- D <= B && (u.value.b = D, r.inputType == "RGB" ? O("b") : j()), (N = p.value) == null || N.focus();
741
+ D <= B && (u.value.b = D, r.inputType == "RGB" ? O("b") : Z()), (N = p.value) == null || N.focus();
768
742
  }
769
743
  }
770
744
  }, O = (M) => {
@@ -776,20 +750,20 @@ const It = { key: 1 }, Vt = {
776
750
  b: parseInt(u.value.b)
777
751
  }
778
752
  });
779
- }, j = () => {
753
+ }, Z = () => {
780
754
  y("update-hsl-value", {
781
755
  h: parseInt(u.value.r),
782
756
  s: parseInt(u.value.g),
783
757
  l: parseInt(u.value.b)
784
758
  });
785
759
  };
786
- return r.inputType === "RGB" ? ye(
760
+ return r.inputType === "RGB" ? fe(
787
761
  () => r.rgbValue,
788
762
  (M, L) => {
789
763
  M !== L && (u.value = M);
790
764
  },
791
765
  { immediate: !0, deep: !0 }
792
- ) : ye(
766
+ ) : fe(
793
767
  () => r.hslValue,
794
768
  (M) => {
795
769
  u.value = {
@@ -800,21 +774,21 @@ const It = { key: 1 }, Vt = {
800
774
  },
801
775
  { immediate: !0, deep: !0 }
802
776
  ), (M, L) => (m(), E("div", qt, [
803
- T(w($e), {
777
+ T(w(we), {
804
778
  ref_key: "rInputEl",
805
779
  ref: f,
806
780
  "model-value": u.value.r,
807
781
  placeholder: "100",
808
782
  "onUpdate:modelValue": L[0] || (L[0] = (B) => a("r", B))
809
783
  }, null, 8, ["model-value"]),
810
- T(w($e), {
784
+ T(w(we), {
811
785
  ref_key: "gInputEl",
812
786
  ref: C,
813
787
  "model-value": u.value.g,
814
788
  placeholder: "100",
815
789
  "onUpdate:modelValue": L[1] || (L[1] = (B) => a("g", B))
816
790
  }, null, 8, ["model-value"]),
817
- T(w($e), {
791
+ T(w(we), {
818
792
  ref_key: "bInputEl",
819
793
  ref: p,
820
794
  "model-value": u.value.b,
@@ -840,22 +814,22 @@ const It = { key: 1 }, Vt = {
840
814
  let p = parseInt(u.value);
841
815
  p && p <= 100 ? y("update:modelValue", p) : u.value = r.modelValue;
842
816
  };
843
- return ye(
817
+ return fe(
844
818
  () => r.modelValue,
845
819
  (p, a) => {
846
820
  p !== a && (u.value = p);
847
821
  },
848
822
  { immediate: !0 }
849
- ), (p, a) => (m(), F(w($e), {
823
+ ), (p, a) => (m(), q(w(we), {
850
824
  class: "w-[75px]",
851
825
  placeholder: "100",
852
826
  "model-value": u.value,
853
827
  "onUpdate:modelValue": f,
854
828
  onBlur: C,
855
- onKeyup: it(C, ["enter"])
829
+ onKeyup: ot(C, ["enter"])
856
830
  }, {
857
- leading: Y(() => a[0] || (a[0] = [
858
- ge("%")
831
+ leading: W(() => a[0] || (a[0] = [
832
+ ve("%")
859
833
  ])),
860
834
  _: 1
861
835
  }, 8, ["model-value"]));
@@ -870,7 +844,7 @@ const It = { key: 1 }, Vt = {
870
844
  const y = v(n.modelValue), u = V, f = (C) => {
871
845
  y.value = C, u("update:model-value", C);
872
846
  };
873
- return (C, p) => (m(), F(w(Je), {
847
+ return (C, p) => (m(), q(w(Ze), {
874
848
  class: "!w-[80px]",
875
849
  "model-value": y.value,
876
850
  options: [
@@ -890,19 +864,19 @@ const It = { key: 1 }, Vt = {
890
864
  "onUpdate:modelValue": f
891
865
  }, null, 8, ["model-value"]));
892
866
  }
893
- }, Yt = { class: "opacity-bar" }, Wt = { class: "picker-opacity-slider opacity-bar-background" }, zt = ["value"], jt = {
867
+ }, Yt = { class: "opacity-bar" }, Wt = { class: "picker-opacity-slider opacity-bar-background" }, jt = ["value"], zt = {
894
868
  __name: "SliderOpacity",
895
869
  props: {
896
870
  modelValue: { default: 0, type: Number }
897
871
  },
898
872
  emits: ["update:modelValue", "onInput"],
899
873
  setup(n, { emit: V }) {
900
- const r = Be("opacitySlider"), y = V, u = (f) => {
874
+ const r = Re("opacitySlider"), y = V, u = (f) => {
901
875
  y("update:modelValue", parseInt(f.target.value)), y("onInput", f);
902
876
  };
903
877
  return (f, C) => (m(), E("div", Yt, [
904
- b("div", Wt, [
905
- b("input", {
878
+ h("div", Wt, [
879
+ h("input", {
906
880
  ref_key: "opacitySlider",
907
881
  ref: r,
908
882
  value: n.modelValue,
@@ -911,7 +885,7 @@ const It = { key: 1 }, Vt = {
911
885
  min: "0",
912
886
  max: "100",
913
887
  onInput: u
914
- }, null, 40, zt)
888
+ }, null, 40, jt)
915
889
  ])
916
890
  ]));
917
891
  }
@@ -922,14 +896,14 @@ const It = { key: 1 }, Vt = {
922
896
  },
923
897
  emits: ["onAddColor", "onMouseDown", "onDeleteColor"],
924
898
  setup(n, { emit: V }) {
925
- const r = Be("gradientBar"), y = v(), u = V, f = (L) => {
899
+ const r = Re("gradientBar"), y = v(), u = V, f = (L) => {
926
900
  L.preventDefault();
927
901
  }, C = v("left:0"), p = v(!1), a = (L) => {
928
902
  u("onMouseDown", L);
929
903
  }, O = () => {
930
904
  let L = y.value.querySelector(".select");
931
905
  C.value = L == null ? void 0 : L.getAttribute("style");
932
- }, j = () => {
906
+ }, Z = () => {
933
907
  var B;
934
908
  O(), (((B = y.value.querySelectorAll(".gradient-handle")) == null ? void 0 : B.length) ?? 2) > 2 ? p.value = !0 : p.value = !1;
935
909
  }, M = (L) => {
@@ -939,13 +913,13 @@ const It = { key: 1 }, Vt = {
939
913
  ref_key: "gradientSlider",
940
914
  ref: y,
941
915
  class: "relative h-[40px]",
942
- onClick: j
916
+ onClick: Z
943
917
  }, [
944
- b("button", {
918
+ h("button", {
945
919
  type: "button",
946
920
  class: Q(["absolute top-[-18px] text-oc-accent-3 rounded-[4px] border-2 border-oc-gray-200 p-2 bg-oc-bg-light", p.value ? "" : "!hidden"]),
947
- style: ee(C.value),
948
- onClick: B[0] || (B[0] = (W) => L.$emit("onDeleteColor"))
921
+ style: te(C.value),
922
+ onClick: B[0] || (B[0] = (j) => L.$emit("onDeleteColor"))
949
923
  }, [
950
924
  T(w(A), {
951
925
  name: "bin",
@@ -953,7 +927,7 @@ const It = { key: 1 }, Vt = {
953
927
  height: "14"
954
928
  })
955
929
  ], 6),
956
- b("div", {
930
+ h("div", {
957
931
  class: Q(["gradient-bar", {
958
932
  "mt-[20px]": n.gradientType === "linear",
959
933
  "mt-[12px]": n.gradientType === "radial"
@@ -961,7 +935,7 @@ const It = { key: 1 }, Vt = {
961
935
  onMousedown: a,
962
936
  onDragstart: f
963
937
  }, [
964
- b("div", {
938
+ h("div", {
965
939
  ref_key: "gradientBar",
966
940
  ref: r,
967
941
  class: "gradient-container",
@@ -981,7 +955,7 @@ const It = { key: 1 }, Vt = {
981
955
  r("update:modelValue", parseFloat(u.target.value)), r("onInput", u);
982
956
  };
983
957
  return (u, f) => (m(), E("div", Zt, [
984
- b("input", {
958
+ h("input", {
985
959
  value: n.modelValue,
986
960
  class: "picker-hue-range-slider",
987
961
  type: "range",
@@ -1011,7 +985,7 @@ const It = { key: 1 }, Vt = {
1011
985
  emits: ["update:angle", "update:percentageX", "update:percentageY", "onInput"],
1012
986
  setup(n, { emit: V }) {
1013
987
  const r = v(!1), y = v(!1);
1014
- _e(() => {
988
+ Je(() => {
1015
989
  r.value = !0, y.value = !0;
1016
990
  });
1017
991
  const u = V, f = (C, p) => {
@@ -1029,7 +1003,7 @@ const It = { key: 1 }, Vt = {
1029
1003
  }
1030
1004
  };
1031
1005
  return (C, p) => (m(), E("div", el, [
1032
- n.gradientType == "linear" && r.value ? (m(), F(w(Ne), {
1006
+ n.gradientType == "linear" && r.value ? (m(), q(w(Ae), {
1033
1007
  key: 0,
1034
1008
  label: "Angle",
1035
1009
  "model-value": n.angle,
@@ -1037,43 +1011,43 @@ const It = { key: 1 }, Vt = {
1037
1011
  "max-limit": 360,
1038
1012
  "onUpdate:modelValue": p[0] || (p[0] = (a) => f(a, "angle"))
1039
1013
  }, {
1040
- "min-limit-label": Y(() => p[3] || (p[3] = [
1041
- ge("0 ")
1014
+ "min-limit-label": W(() => p[3] || (p[3] = [
1015
+ ve("0 ")
1042
1016
  ])),
1043
- "max-limit-label": Y(() => p[4] || (p[4] = [
1044
- ge("360"),
1045
- b("span", null, "°", -1)
1017
+ "max-limit-label": W(() => p[4] || (p[4] = [
1018
+ ve("360"),
1019
+ h("span", null, "°", -1)
1046
1020
  ])),
1047
1021
  _: 1
1048
1022
  }, 8, ["model-value"])) : H("", !0),
1049
1023
  n.gradientType == "radial" && y.value ? (m(), E("div", tl, [
1050
- T(w(Ne), {
1024
+ T(w(Ae), {
1051
1025
  label: "Position X",
1052
1026
  "model-value": n.percentageX,
1053
1027
  "min-limit": 0,
1054
1028
  "max-limit": 100,
1055
1029
  "onUpdate:modelValue": p[1] || (p[1] = (a) => f(a, "percentageX"))
1056
1030
  }, {
1057
- "min-limit-label": Y(() => p[5] || (p[5] = [
1058
- ge("0")
1031
+ "min-limit-label": W(() => p[5] || (p[5] = [
1032
+ ve("0")
1059
1033
  ])),
1060
- "max-limit-label": Y(() => p[6] || (p[6] = [
1061
- ge("100%")
1034
+ "max-limit-label": W(() => p[6] || (p[6] = [
1035
+ ve("100%")
1062
1036
  ])),
1063
1037
  _: 1
1064
1038
  }, 8, ["model-value"]),
1065
- T(w(Ne), {
1039
+ T(w(Ae), {
1066
1040
  label: "Position Y",
1067
1041
  "model-value": n.percentageY,
1068
1042
  "min-limit": 0,
1069
1043
  "max-limit": 100,
1070
1044
  "onUpdate:modelValue": p[2] || (p[2] = (a) => f(a, "percentageY"))
1071
1045
  }, {
1072
- "min-limit-label": Y(() => p[7] || (p[7] = [
1073
- ge("0")
1046
+ "min-limit-label": W(() => p[7] || (p[7] = [
1047
+ ve("0")
1074
1048
  ])),
1075
- "max-limit-label": Y(() => p[8] || (p[8] = [
1076
- ge("100%")
1049
+ "max-limit-label": W(() => p[8] || (p[8] = [
1050
+ ve("100%")
1077
1051
  ])),
1078
1052
  _: 1
1079
1053
  }, 8, ["model-value"])
@@ -1084,7 +1058,7 @@ const It = { key: 1 }, Vt = {
1084
1058
  __name: "PickerWrap",
1085
1059
  emits: ["onMouseDown"],
1086
1060
  setup(n) {
1087
- const V = Be("canvas"), r = Be("pickerWrap"), y = Be("pickerPointer"), u = (f) => {
1061
+ const V = Re("canvas"), r = Re("pickerWrap"), y = Re("pickerPointer"), u = (f) => {
1088
1062
  f.preventDefault();
1089
1063
  };
1090
1064
  return (f, C) => (m(), E("div", {
@@ -1094,13 +1068,13 @@ const It = { key: 1 }, Vt = {
1094
1068
  onMousedown: C[0] || (C[0] = (p) => f.$emit("onMouseDown", p)),
1095
1069
  onDragstart: u
1096
1070
  }, [
1097
- b("canvas", {
1071
+ h("canvas", {
1098
1072
  ref_key: "canvas",
1099
1073
  ref: V,
1100
1074
  class: "colour-area"
1101
1075
  }, null, 512),
1102
- C[1] || (C[1] = b("div", { class: "colour-area-mask" }, null, -1)),
1103
- b("div", {
1076
+ C[1] || (C[1] = h("div", { class: "colour-area-mask" }, null, -1)),
1077
+ h("div", {
1104
1078
  ref_key: "pickerPointer",
1105
1079
  ref: y,
1106
1080
  class: "colour-area-point-circle"
@@ -1135,7 +1109,7 @@ const It = { key: 1 }, Vt = {
1135
1109
  emits: ["onChangeMode"],
1136
1110
  setup(n) {
1137
1111
  return (V, r) => (m(), E("div", nl, [
1138
- b("button", {
1112
+ h("button", {
1139
1113
  type: "button",
1140
1114
  class: Q(n.mode == "solid" ? "active" : ""),
1141
1115
  style: { padding: "7px" },
@@ -1144,25 +1118,25 @@ const It = { key: 1 }, Vt = {
1144
1118
  n.modelValue && n.mode == "solid" ? (m(), E("div", {
1145
1119
  key: 0,
1146
1120
  class: "w-[28px] h-[28px] rounded-full border",
1147
- style: ee(`background:${n.modelValue}`)
1121
+ style: te(`background:${n.modelValue}`)
1148
1122
  }, null, 4)) : (m(), E("svg", ol, r[3] || (r[3] = [
1149
- b("g", { opacity: "0.5" }, [
1150
- b("path", {
1123
+ h("g", { opacity: "0.5" }, [
1124
+ h("path", {
1151
1125
  d: "M0 14C0 6.26801 6.26801 0 14 0C21.732 0 28 6.26801 28 14C28 21.732 21.732 28 14 28C6.26801 28 0 21.732 0 14Z",
1152
1126
  fill: "#03102F"
1153
1127
  })
1154
1128
  ], -1)
1155
1129
  ])))
1156
1130
  ], 2),
1157
- b("button", {
1131
+ h("button", {
1158
1132
  type: "button",
1159
1133
  class: Q(n.gradientType == "linear" && n.mode != "solid" ? "active" : ""),
1160
- style: ee(`${n.iconClasses.linear ? "" : "padding: 7px;"}`),
1134
+ style: te(`${n.iconClasses.linear ? "" : "padding: 7px;"}`),
1161
1135
  onClick: r[1] || (r[1] = (y) => V.$emit("onChangeMode", "linear"))
1162
1136
  }, [
1163
- b("div", {
1137
+ h("div", {
1164
1138
  class: "w-[28px] h-[28px] rounded-full border",
1165
- style: ee(
1139
+ style: te(
1166
1140
  n.modelValue && n.gradientType == "linear" && n.mode != "solid" ? `background:${n.modelValue}` : `
1167
1141
  background: linear-gradient(
1168
1142
  180deg,
@@ -1173,15 +1147,15 @@ const It = { key: 1 }, Vt = {
1173
1147
  )
1174
1148
  }, null, 4)
1175
1149
  ], 6),
1176
- b("button", {
1150
+ h("button", {
1177
1151
  type: "button",
1178
1152
  class: Q(n.gradientType == "radial" && n.mode != "solid" ? "active" : ""),
1179
- style: ee(`${n.iconClasses.radial ? "" : "padding: 6px;"}`),
1153
+ style: te(`${n.iconClasses.radial ? "" : "padding: 6px;"}`),
1180
1154
  onClick: r[2] || (r[2] = (y) => V.$emit("onChangeMode", "radial"))
1181
1155
  }, [
1182
- b("div", {
1156
+ h("div", {
1183
1157
  class: "w-[28px] h-[28px] rounded-full border",
1184
- style: ee(
1158
+ style: te(
1185
1159
  n.modelValue && n.gradientType == "radial" && n.mode != "solid" ? `background:${n.modelValue}` : "background: radial-gradient(circle at 50% 50%, rgb(255, 255, 255) 0%, rgb(3, 16, 47) 100%);"
1186
1160
  )
1187
1161
  }, null, 4)
@@ -1197,10 +1171,10 @@ const It = { key: 1 }, Vt = {
1197
1171
  }, dl = { key: 2 }, cl = { key: 0 }, pl = { class: "ck-cp-local-color-conatiner" }, gl = ["onClick"], vl = { class: "flex items-center gap-2" }, ml = { id: "ck-cp-target-background" }, fl = { class: "flex gap-3" }, hl = {
1198
1172
  key: 0,
1199
1173
  class: "w-full flex gap-3"
1200
- }, bl = {
1174
+ }, yl = {
1201
1175
  key: 4,
1202
1176
  class: "ck-cp-local-color-conatiner"
1203
- }, yl = ["onClick"], xl = {
1177
+ }, bl = ["onClick"], xl = {
1204
1178
  __name: "OcColorPickerPopup",
1205
1179
  props: {
1206
1180
  modelValue: {
@@ -1243,7 +1217,7 @@ const It = { key: 1 }, Vt = {
1243
1217
  { id: 1, r: 68, g: 71, b: 119, a: 100, percent: 0, hue: 0, select: !0 },
1244
1218
  { id: 2, r: 0, g: 0, b: 255, a: 100, percent: 100, hue: 0, select: !1 }
1245
1219
  ]), O = v(r.lastUsedColors);
1246
- ye(
1220
+ fe(
1247
1221
  () => r.lastUsedColors,
1248
1222
  () => {
1249
1223
  O.value = r.lastUsedColors;
@@ -1252,49 +1226,49 @@ const It = { key: 1 }, Vt = {
1252
1226
  deep: !0
1253
1227
  }
1254
1228
  );
1255
- const j = be(() => r.variant !== "gradient" ? O.value.filter((t) => !t.includes("linear") && !t.includes("radial")) : O.value), M = v(!1), L = v("linear"), B = et({
1229
+ const Z = $e(() => r.variant !== "gradient" ? O.value.filter((t) => !t.includes("linear") && !t.includes("radial")) : O.value), M = v(!1), L = v("linear"), B = _e({
1256
1230
  angle: 90,
1257
1231
  percentageX: 50,
1258
1232
  percentageY: 50
1259
- }), W = v(""), U = v(r.inputType), N = v(!1), D = v(), te = v(), K = v(), z = v(), R = v(), q = et({
1233
+ }), j = v(""), U = v(r.inputType), N = v(!1), D = v(), le = v(), J = v(), z = v(), R = v(), P = _e({
1260
1234
  h: 0,
1261
1235
  s: 0,
1262
1236
  l: 0
1263
1237
  });
1264
- Te("gradientBar", te), Te("canvas", K), Te("pickerWrap", z), Te("pickerPointer", R), Te("opacitySlider", D);
1265
- let le = 0, _ = 0, x = 0, we = 0, ue = 0, ve = 0;
1266
- const Se = (t) => {
1267
- !z.value || !R.value || (ue = z.value.offsetHeight - R.value.offsetHeight, ve = z.value.offsetWidth - R.value.offsetWidth, x = t.clientX - t.target.getBoundingClientRect().left, we = t.clientY - t.target.getBoundingClientRect().top, le = x - R.value.offsetWidth / 2, _ = we - R.value.offsetHeight / 2, R.value.style.left = `${le}px`, R.value.style.top = `${_}px`, Ce(!1), h(), window.addEventListener("mousemove", Re), window.addEventListener("mouseup", Ee));
1268
- }, Re = (t) => {
1238
+ Be("gradientBar", le), Be("canvas", J), Be("pickerWrap", z), Be("pickerPointer", R), Be("opacitySlider", D);
1239
+ let ae = 0, ee = 0, b = 0, Se = 0, ue = 0, ie = 0;
1240
+ const Pe = (t) => {
1241
+ !z.value || !R.value || (ue = z.value.offsetHeight - R.value.offsetHeight, ie = z.value.offsetWidth - R.value.offsetWidth, b = t.clientX - t.target.getBoundingClientRect().left, Se = t.clientY - t.target.getBoundingClientRect().top, ae = b - R.value.offsetWidth / 2, ee = Se - R.value.offsetHeight / 2, R.value.style.left = `${ae}px`, R.value.style.top = `${ee}px`, Ce(!1), G(), window.addEventListener("mousemove", Ee), window.addEventListener("mouseup", Ue));
1242
+ }, Ee = (t) => {
1269
1243
  t.preventDefault();
1270
1244
  const e = z.value.getBoundingClientRect(), l = t.clientX - e.left - R.value.offsetWidth / 2, i = t.clientY - e.top - R.value.offsetHeight / 2;
1271
- l >= 0 && l <= ve ? (le = l, R.value.style.left = `${l}px`) : 0 > l ? (le = 0, R.value.style.left = "0px") : l > ve && (le = ve, R.value.style.left = `${ve}px`), i >= 0 && i <= ue ? (_ = i, R.value.style.top = `${i}px`) : 0 > i ? (_ = 0, R.value.style.top = "0px") : i > ue && (_ = ue, R.value.style.top = `${ue}px`), Ce(!1), h();
1272
- }, Ee = () => {
1273
- window.removeEventListener("mousemove", Re), window.removeEventListener("mouseup", Ee);
1245
+ l >= 0 && l <= ie ? (ae = l, R.value.style.left = `${l}px`) : 0 > l ? (ae = 0, R.value.style.left = "0px") : l > ie && (ae = ie, R.value.style.left = `${ie}px`), i >= 0 && i <= ue ? (ee = i, R.value.style.top = `${i}px`) : 0 > i ? (ee = 0, R.value.style.top = "0px") : i > ue && (ee = ue, R.value.style.top = `${ue}px`), Ce(!1), G();
1246
+ }, Ue = () => {
1247
+ window.removeEventListener("mousemove", Ee), window.removeEventListener("mouseup", Ue);
1274
1248
  }, Ce = (t) => {
1275
1249
  if (!t) {
1276
- let e = Xe();
1277
- const l = nt(ae.value, e.s, e.l);
1250
+ let e = De();
1251
+ const l = at(ne.value, e.s, e.l);
1278
1252
  if (l) {
1279
1253
  if (N.value) {
1280
1254
  let i = a.value.find((s) => s.select == !0);
1281
1255
  i && (i.r = l.r, i.g = l.g, i.b = l.b);
1282
1256
  }
1283
- oe(), X();
1257
+ K(), F();
1284
1258
  }
1285
1259
  }
1286
- }, ae = v(0), Ie = async (t) => {
1287
- const { rgb: e } = at(ae.value, 100, 50);
1288
- ke(e), setTimeout(() => {
1289
- Ce(t), h();
1260
+ }, ne = v(0), Ie = async (t) => {
1261
+ const { rgb: e } = lt(ne.value, 100, 50);
1262
+ Me(e), setTimeout(() => {
1263
+ Ce(t), G();
1290
1264
  }, 0);
1291
- }, Xe = () => {
1265
+ }, De = () => {
1292
1266
  let t = { s: 0, l: 0 }, e = z.value.offsetWidth - R.value.offsetWidth, l = z.value.offsetHeight - R.value.offsetHeight, i = parseInt(R.value.style.left), d = 1 - parseInt(R.value.style.top) / l, k = i / e;
1293
1267
  return t.l = d / 2 * (2 - k), t.s = d * k / (1 - Math.abs(2 * t.l - 1)), Number.isNaN(t.s) && (t.s = t.l), t.l = t.l > 1 ? 1 : t.l, t.s = t.s > 1 ? 1 : t.s, t;
1294
- }, de = () => {
1268
+ }, me = () => {
1295
1269
  const t = a.value.find((e) => e.select == !0);
1296
1270
  if (t) {
1297
- const { l: e, s: l } = tt(t.r, t.g, t.b);
1271
+ const { l: e, s: l } = et(t.r, t.g, t.b);
1298
1272
  let i = e, s = l;
1299
1273
  Number.isNaN(s) && (s = i);
1300
1274
  let d = { x: 0, y: 0 }, k = z.value.offsetWidth - R.value.offsetWidth, I = z.value.offsetHeight - R.value.offsetHeight;
@@ -1308,26 +1282,26 @@ const It = { key: 1 }, Vt = {
1308
1282
  return d.x = $, d.y = g, d;
1309
1283
  } else
1310
1284
  return null;
1311
- }, qe = () => {
1285
+ }, Xe = () => {
1312
1286
  const t = a.value.find((e) => e.select == !0);
1313
- t && (t.hue = ae.value);
1314
- }, ne = v(100), Ue = (t) => {
1287
+ t && (t.hue = ne.value);
1288
+ }, oe = v(100), He = (t) => {
1315
1289
  if (r.showAlpha) {
1316
1290
  const e = a.value.find((l) => l.select == !0);
1317
- e && (e.a = parseInt(t), X());
1291
+ e && (e.a = parseInt(t), F());
1318
1292
  }
1319
- }, Fe = (t) => {
1293
+ }, Oe = (t) => {
1320
1294
  var l, i, s, d;
1321
1295
  const e = (i = (l = u.value) == null ? void 0 : l.querySelector(".gradient-handle-content")) == null ? void 0 : i.getBoundingClientRect();
1322
- return t === 0 ? "0px" : t === 100 && e ? `${(((s = te.value) == null ? void 0 : s.offsetWidth) || 0) - (e.width || 0)}px` : `${(((d = te.value) == null ? void 0 : d.offsetWidth) || 0) * (t / 100) - ((e == null ? void 0 : e.width) || 0) / 2}px`;
1296
+ return t === 0 ? "0px" : t === 100 && e ? `${(((s = le.value) == null ? void 0 : s.offsetWidth) || 0) - (e.width || 0)}px` : `${(((d = le.value) == null ? void 0 : d.offsetWidth) || 0) * (t / 100) - ((e == null ? void 0 : e.width) || 0) / 2}px`;
1323
1297
  };
1324
- let P = null, Z = null;
1325
- const De = (t) => {
1298
+ let X = null, _ = null;
1299
+ const Ve = (t) => {
1326
1300
  var i, s;
1327
1301
  const l = t.target.offsetParent;
1328
1302
  if ((i = l == null ? void 0 : l.id) != null && i.includes("clr-gb-")) {
1329
1303
  const d = l.id.replace("clr-gb-", "");
1330
- Z = l;
1304
+ _ = l;
1331
1305
  const k = a.value.find((I) => I.select == !0);
1332
1306
  if (k && k.id != d) {
1333
1307
  const I = (s = u.value) == null ? void 0 : s.querySelector(".gradient-handle.select");
@@ -1336,30 +1310,30 @@ const It = { key: 1 }, Vt = {
1336
1310
  for (let g = 0; g < a.value.length; g++) {
1337
1311
  const S = a.value[g];
1338
1312
  if (S.id == d) {
1339
- $ != -1 && (a.value[$].select = !1), a.value[g].select = !0, ne.value = S.a, ie(S.r, S.g, S.b, S.hue, !0), oe(), h();
1313
+ $ != -1 && (a.value[$].select = !1), a.value[g].select = !0, oe.value = S.a, ce(S.r, S.g, S.b, S.hue, !0), K(), G();
1340
1314
  break;
1341
1315
  }
1342
1316
  }
1343
1317
  }
1344
- window.addEventListener("mousemove", me), window.addEventListener("mouseup", He);
1318
+ window.addEventListener("mousemove", de), window.addEventListener("mouseup", he);
1345
1319
  }
1346
- }, He = () => {
1347
- window.removeEventListener("mousemove", me), window.removeEventListener("mouseup", De);
1348
- }, me = (t) => {
1320
+ }, he = () => {
1321
+ window.removeEventListener("mousemove", de), window.removeEventListener("mouseup", Ve);
1322
+ }, de = (t) => {
1349
1323
  var d, k;
1350
1324
  t.preventDefault();
1351
- const e = (k = (d = u.value) == null ? void 0 : d.querySelector(".gradient-handle-content")) == null ? void 0 : k.getBoundingClientRect(), l = P == null ? void 0 : P.getBoundingClientRect(), i = l.width - (e == null ? void 0 : e.width);
1325
+ const e = (k = (d = u.value) == null ? void 0 : d.querySelector(".gradient-handle-content")) == null ? void 0 : k.getBoundingClientRect(), l = X == null ? void 0 : X.getBoundingClientRect(), i = l.width - (e == null ? void 0 : e.width);
1352
1326
  let s = t.clientX - (l.left || 0) - ((e == null ? void 0 : e.width) || 0) / 2;
1353
- if (s < 0 ? s = 0 : s > i && (s = i), Z) {
1354
- Z.style.left = `${s}px`;
1327
+ if (s < 0 ? s = 0 : s > i && (s = i), _) {
1328
+ _.style.left = `${s}px`;
1355
1329
  const I = parseFloat((s / ((l == null ? void 0 : l.width) - (e == null ? void 0 : e.width)) * 100).toFixed(0)), $ = a.value.find(
1356
- (g) => g.id == (Z == null ? void 0 : Z.id.replace("clr-gb-", ""))
1330
+ (g) => g.id == (_ == null ? void 0 : _.id.replace("clr-gb-", ""))
1357
1331
  );
1358
- $ && ($.percent = I), X();
1332
+ $ && ($.percent = I), F();
1359
1333
  }
1360
- }, fe = (t) => {
1334
+ }, qe = (t) => {
1361
1335
  var I, $;
1362
- const e = P == null ? void 0 : P.getBoundingClientRect(), l = Math.round((t.clientX - ((e == null ? void 0 : e.left) || 0)) / ((e == null ? void 0 : e.width) || 1) * 100), i = a.value.findIndex((g) => g.select == !0), s = a.value[i], d = {
1336
+ const e = X == null ? void 0 : X.getBoundingClientRect(), l = Math.round((t.clientX - ((e == null ? void 0 : e.left) || 0)) / ((e == null ? void 0 : e.width) || 1) * 100), i = a.value.findIndex((g) => g.select == !0), s = a.value[i], d = {
1363
1337
  id: Date.now(),
1364
1338
  r: s.r,
1365
1339
  g: s.g,
@@ -1371,14 +1345,14 @@ const It = { key: 1 }, Vt = {
1371
1345
  };
1372
1346
  a.value[i].select = !1;
1373
1347
  const k = (I = u.value) == null ? void 0 : I.querySelector(".gradient-handle.select");
1374
- k == null || k.classList.remove("select"), a.value = [...a.value, d], Me(d), Z = ($ = u.value) == null ? void 0 : $.querySelector(`#clr-gb-${d.id}`), X();
1375
- }, Oe = (t) => {
1348
+ k == null || k.classList.remove("select"), a.value = [...a.value, d], be(d), _ = ($ = u.value) == null ? void 0 : $.querySelector(`#clr-gb-${d.id}`), F();
1349
+ }, ye = (t) => {
1376
1350
  if (t.r == 0 && t.g == 0 && t.b == 0)
1377
1351
  return !0;
1378
1352
  if (t.r == 255 && t.g == 255 && t.b == 255)
1379
1353
  return !0;
1380
1354
  {
1381
- const e = K.value.getContext("2d", { willReadFrequently: !0 }), l = K.value.width, i = K.value.height, s = e.getImageData(0, 0, l, i).data, d = t.r, k = t.g, I = t.b;
1355
+ const e = J.value.getContext("2d", { willReadFrequently: !0 }), l = J.value.width, i = J.value.height, s = e.getImageData(0, 0, l, i).data, d = t.r, k = t.g, I = t.b;
1382
1356
  for (let $ = 0; $ < i; $++)
1383
1357
  for (let g = 0; g < l; g++) {
1384
1358
  const S = ($ * l + g) * 4, re = s[S], dt = s[S + 1], ct = s[S + 2];
@@ -1387,42 +1361,42 @@ const It = { key: 1 }, Vt = {
1387
1361
  }
1388
1362
  return !1;
1389
1363
  }
1390
- }, ie = (t, e, l, i, s) => {
1364
+ }, ce = (t, e, l, i, s) => {
1391
1365
  setTimeout(() => {
1392
- if (Oe({ r: t, g: e, b: l })) {
1393
- let d = de();
1366
+ if (ye({ r: t, g: e, b: l })) {
1367
+ let d = me();
1394
1368
  d && (R.value.style.left = `${d.x}px`, R.value.style.top = `${d.y}px`);
1395
1369
  } else {
1396
- let d = de();
1397
- d && (R.value.style.left = `${d.x}px`, R.value.style.top = `${d.y}px`), ae.value = i, Ie(s);
1370
+ let d = me();
1371
+ d && (R.value.style.left = `${d.x}px`, R.value.style.top = `${d.y}px`), ne.value = i, Ie(s);
1398
1372
  }
1399
1373
  }, 0);
1400
- }, xe = () => {
1401
- a.value.forEach((l) => Me(l)), Ve();
1374
+ }, Le = () => {
1375
+ a.value.forEach((l) => be(l)), Te();
1402
1376
  const t = a.value[0];
1403
- ae.value = t.hue, Ie(!0);
1404
- let e = de();
1405
- e && (R.value.style.left = `${e.x}px`, R.value.style.top = `${e.y}px`), oe(), X();
1406
- }, Me = (t) => {
1377
+ ne.value = t.hue, Ie(!0);
1378
+ let e = me();
1379
+ e && (R.value.style.left = `${e.x}px`, R.value.style.top = `${e.y}px`), K(), F();
1380
+ }, be = (t) => {
1407
1381
  if (y.value == "gradient") {
1408
1382
  let e = document.createElement("div");
1409
- e.id = `clr-gb-${t.id}`, e.classList.add("gradient-handle"), e.style.left = Fe(t.percent);
1383
+ e.id = `clr-gb-${t.id}`, e.classList.add("gradient-handle"), e.style.left = Oe(t.percent);
1410
1384
  let l = document.createElement("div");
1411
- l.classList.add("gradient-handle-content"), t.select == !0 && e.classList.add("select"), e.appendChild(l), P && P.appendChild(e);
1385
+ l.classList.add("gradient-handle-content"), t.select == !0 && e.classList.add("select"), e.appendChild(l), X && X.appendChild(e);
1412
1386
  }
1413
- }, ke = (t) => {
1414
- const e = K.value.getContext("2d", { willReadFrequently: !0 }), l = K.value.width, i = K.value.height;
1387
+ }, Me = (t) => {
1388
+ const e = J.value.getContext("2d", { willReadFrequently: !0 }), l = J.value.width, i = J.value.height;
1415
1389
  e.fillStyle = `rgb(${t[0]},${t[1]},${t[2]})`, e.fillRect(0, 0, l, i);
1416
1390
  let s = e.createLinearGradient(0, 0, l - 12, 0);
1417
1391
  s.addColorStop(0, "rgb(255,255,255)"), s.addColorStop(1, "rgba(255,255,255,0)"), e.fillStyle = s, e.fillRect(0, 0, l, i);
1418
1392
  let d = e.createLinearGradient(0, 0, 0, i);
1419
1393
  d.addColorStop(0, "rgba(0,0,0,0)"), d.addColorStop(1, "rgb(0,0,0)"), e.fillStyle = d, e.fillRect(0, 0, l, i);
1420
- }, oe = () => {
1394
+ }, K = () => {
1421
1395
  if (r.showAlpha) {
1422
1396
  let t = a.value.find((e) => e.select == !0);
1423
1397
  t && (D.value.style.background = ` linear-gradient(90deg,rgba(255, 255, 255, 0) 0%, rgba(${t.r}, ${t.g}, ${t.b}, 100) 97%)`);
1424
1398
  }
1425
- }, X = () => {
1399
+ }, F = () => {
1426
1400
  var t;
1427
1401
  if (y.value == "gradient") {
1428
1402
  a.value.sort((s, d) => s.percent - d.percent);
@@ -1440,7 +1414,7 @@ const It = { key: 1 }, Vt = {
1440
1414
  a.value.length - 1 == s ? (e = e + `rgba(${d},${k},${I},${$ / 100}) ${g}%)`, l = l + `rgba(${d},${k},${I},${$ / 100}) ${g}%)`) : (e = e + `rgba(${d},${k},${I},${$ / 100}) ${g}%, `, l = l + `rgba(${d},${k},${I},${$ / 100}) ${g}%, `);
1441
1415
  }
1442
1416
  }
1443
- te.value.style.backgroundImage = e;
1417
+ le.value.style.backgroundImage = e;
1444
1418
  let i = (t = u.value) == null ? void 0 : t.querySelector("#ck-cp-target-background");
1445
1419
  i && (i.style.backgroundImage = l, N.value && p(i.style.backgroundImage));
1446
1420
  } else {
@@ -1457,17 +1431,17 @@ const It = { key: 1 }, Vt = {
1457
1431
  d = `rgb(${e},${l},${i})`;
1458
1432
  break;
1459
1433
  case "HEX":
1460
- d = lt(e, l, i);
1434
+ d = tt(e, l, i);
1461
1435
  break;
1462
1436
  }
1463
1437
  p(d);
1464
1438
  }
1465
- }, Ve = () => {
1439
+ }, Te = () => {
1466
1440
  a.value.forEach((t) => {
1467
- t.hue = Ae(t.r, t.g, t.b);
1441
+ t.hue = Qe(t.r, t.g, t.b);
1468
1442
  });
1469
- }, Le = (t) => {
1470
- L.value = t, X();
1443
+ }, Fe = (t) => {
1444
+ L.value = t, F();
1471
1445
  }, Ge = () => {
1472
1446
  var t, e;
1473
1447
  if (a.value.length > 2) {
@@ -1478,7 +1452,7 @@ const It = { key: 1 }, Vt = {
1478
1452
  const s = (t = u.value) == null ? void 0 : t.querySelector(`#clr-gb-${i}`);
1479
1453
  s == null || s.remove();
1480
1454
  const d = a.value[0];
1481
- d && (d.select = !0, Z = (e = u.value) == null ? void 0 : e.querySelector(`#clr-gb-${d.id}`), Z == null || Z.classList.add("select"), ie(d.r, d.g, d.b, d.hue, !1), h(), X());
1455
+ d && (d.select = !0, _ = (e = u.value) == null ? void 0 : e.querySelector(`#clr-gb-${d.id}`), _ == null || _.classList.add("select"), ce(d.r, d.g, d.b, d.hue, !1), G(), F());
1482
1456
  }
1483
1457
  }
1484
1458
  }, Ye = () => {
@@ -1487,56 +1461,56 @@ const It = { key: 1 }, Vt = {
1487
1461
  t == null || t.classList.add("active"), new EyeDropper().open().then((i) => {
1488
1462
  const { sRGBHex: s } = i, d = a.value.find((I) => I.select == !0), k = je(s);
1489
1463
  if (k) {
1490
- const I = Ae(k.r, k.g, k.b);
1491
- if (d && (d.hue = I, d.r = k.r, d.g = k.g, d.b = k.b), Oe(k)) {
1492
- const $ = de();
1464
+ const I = Qe(k.r, k.g, k.b);
1465
+ if (d && (d.hue = I, d.r = k.r, d.g = k.g, d.b = k.b), ye(k)) {
1466
+ const $ = me();
1493
1467
  $ && (R.value.style.left = `${$.x}px`, R.value.style.top = `${$.y}px`);
1494
1468
  } else {
1495
- ae.value = I;
1496
- const { rgb: $ } = at(I, 100, 50);
1497
- ke($);
1498
- const g = de();
1469
+ ne.value = I;
1470
+ const { rgb: $ } = lt(I, 100, 50);
1471
+ Me($);
1472
+ const g = me();
1499
1473
  g && (R.value.style.left = `${g.x}px`, R.value.style.top = `${g.y}px`);
1500
1474
  }
1501
- h(), oe(), X(), t == null || t.classList.remove("active");
1475
+ G(), K(), F(), t == null || t.classList.remove("active");
1502
1476
  }
1503
1477
  }).catch(() => {
1504
1478
  t == null || t.classList.remove("active");
1505
1479
  });
1506
- }, We = (t) => {
1480
+ }, c = (t) => {
1507
1481
  const { value: e, type: l } = t;
1508
1482
  if (l != "a") {
1509
1483
  const i = a.value.find((s) => s.select == !0);
1510
1484
  if (i) {
1511
1485
  i.r = parseInt(e.r), i.g = parseInt(e.g), i.b = parseInt(e.b);
1512
- const s = Ae(i.r, i.g, i.b);
1513
- i.hue = s, ie(i.r, i.g, i.b, i.hue, !0), X(), oe();
1486
+ const s = Qe(i.r, i.g, i.b);
1487
+ i.hue = s, ce(i.r, i.g, i.b, i.hue, !0), F(), K();
1514
1488
  }
1515
1489
  } else
1516
- ne.value = e, X(), oe();
1517
- }, c = (t) => {
1518
- q.h = t.h, q.s = t.s, q.l = t.l;
1490
+ oe.value = e, F(), K();
1491
+ }, o = (t) => {
1492
+ P.h = t.h, P.s = t.s, P.l = t.l;
1519
1493
  const e = a.value.find((l) => l.select == !0);
1520
- if (e && !Number.isNaN(q.h) && !Number.isNaN(q.s) && !Number.isNaN(q.l)) {
1521
- const { r: l, g: i, b: s } = nt(q.h, q.s / 100, q.l / 100);
1522
- e.hue = q.h, e.r = l, e.g = i, e.b = s, ie(e.r, e.g, e.b, e.hue, !0), X(), oe();
1494
+ if (e && !Number.isNaN(P.h) && !Number.isNaN(P.s) && !Number.isNaN(P.l)) {
1495
+ const { r: l, g: i, b: s } = at(P.h, P.s / 100, P.l / 100);
1496
+ e.hue = P.h, e.r = l, e.g = i, e.b = s, ce(e.r, e.g, e.b, e.hue, !0), F(), K();
1523
1497
  }
1524
- }, o = () => {
1525
- if (W.value) {
1526
- const t = je(W.value);
1498
+ }, x = () => {
1499
+ if (j.value) {
1500
+ const t = je(j.value);
1527
1501
  if (t) {
1528
- const e = Ae(t.r, t.g, t.b), l = a.value.find((i) => i.select == !0);
1529
- l && (l.r = t.r, l.g = t.g, l.b = t.b, l.hue = e, ie(t.r, t.g, t.b, l.hue, !0), X(), oe(), se(U.value));
1502
+ const e = Qe(t.r, t.g, t.b), l = a.value.find((i) => i.select == !0);
1503
+ l && (l.r = t.r, l.g = t.g, l.b = t.b, l.hue = e, ce(t.r, t.g, t.b, l.hue, !0), F(), K(), pe(U.value));
1530
1504
  }
1531
1505
  }
1532
- }, h = () => {
1506
+ }, G = () => {
1533
1507
  const t = a.value.find((e) => e.select == !0);
1534
- t && (W.value = lt(t.r, t.g, t.b).toUpperCase()), se(U.value);
1535
- }, J = (t) => {
1508
+ t && (j.value = tt(t.r, t.g, t.b).toUpperCase()), pe(U.value);
1509
+ }, se = (t) => {
1536
1510
  f("last-used-pick", t);
1537
1511
  };
1538
1512
  window.EyeDropper && (M.value = !0);
1539
- const ce = (t = "") => {
1513
+ const xe = (t = "") => {
1540
1514
  if (y.value == "gradient") {
1541
1515
  let e = t.includes("linear") ? "linear" : "radial", l = [];
1542
1516
  if (L.value = e, e == "linear") {
@@ -1595,7 +1569,7 @@ const It = { key: 1 }, Vt = {
1595
1569
  }
1596
1570
  }
1597
1571
  }
1598
- l.length > 1 && (a.value = l, a.value[0].select = !0, ne.value = a.value[0].a);
1572
+ l.length > 1 && (a.value = l, a.value[0].select = !0, oe.value = a.value[0].a);
1599
1573
  } else if (t) {
1600
1574
  let e = {
1601
1575
  r: 0,
@@ -1617,48 +1591,48 @@ const It = { key: 1 }, Vt = {
1617
1591
  let l = St(t);
1618
1592
  l ? (e.a = 1, e.r = l.r, e.g = l.g, e.b = l.b) : e = null;
1619
1593
  }
1620
- e && (a.value[0].r = e.r, a.value[0].b = e.b, a.value[0].g = e.g, a.value[0].a = parseInt((e.a * 100).toFixed(0)), ne.value = a.value[0].a, a.value[0].hue = 0);
1594
+ e && (a.value[0].r = e.r, a.value[0].b = e.b, a.value[0].g = e.g, a.value[0].a = parseInt((e.a * 100).toFixed(0)), oe.value = a.value[0].a, a.value[0].hue = 0);
1621
1595
  }
1622
- }, se = (t) => {
1596
+ }, pe = (t) => {
1623
1597
  const e = a.value.find((l) => l.select == !0);
1624
1598
  if (e) {
1625
1599
  switch (t) {
1626
1600
  case "RGB":
1627
1601
  break;
1628
1602
  case "HSL": {
1629
- const { h: l, s: i, l: s } = tt(e.r, e.g, e.b);
1630
- q.h = Math.round(l), q.s = Math.round(i * 100), q.l = Math.round(s * 100);
1603
+ const { h: l, s: i, l: s } = et(e.r, e.g, e.b);
1604
+ P.h = Math.round(l), P.s = Math.round(i * 100), P.l = Math.round(s * 100);
1631
1605
  break;
1632
1606
  }
1633
1607
  }
1634
1608
  U.value = t;
1635
1609
  }
1636
- }, he = (t) => {
1637
- t && ce(t), xe();
1610
+ }, ke = (t) => {
1611
+ t && xe(t), Le();
1638
1612
  };
1639
- ye(
1613
+ fe(
1640
1614
  () => r.modelValue,
1641
1615
  (t, e) => {
1642
1616
  t !== e && t !== C.value && (a.value.forEach((l) => {
1643
- const i = P == null ? void 0 : P.querySelector(`#clr-gb-${l.id}`);
1617
+ const i = X == null ? void 0 : X.querySelector(`#clr-gb-${l.id}`);
1644
1618
  i == null || i.remove();
1645
- }), he(t));
1619
+ }), ke(t));
1646
1620
  }
1647
1621
  );
1648
- const Qe = (t) => {
1622
+ const ut = (t) => {
1649
1623
  a.value.forEach((e) => {
1650
- const l = P == null ? void 0 : P.querySelector(`#clr-gb-${e.id}`);
1624
+ const l = X == null ? void 0 : X.querySelector(`#clr-gb-${e.id}`);
1651
1625
  l == null || l.remove();
1652
1626
  }), t !== "solid" ? (y.value = "gradient", setTimeout(() => {
1653
1627
  var e;
1654
- P = (e = u.value) == null ? void 0 : e.querySelector(".gradient-bar"), Le(t), xe();
1628
+ X = (e = u.value) == null ? void 0 : e.querySelector(".gradient-bar"), Fe(t), Le();
1655
1629
  }, 200)) : t === "solid" && (y.value = "solid", a.value = a.value.map((e) => (e.select = !1, e)), a.value[0].select = !0, setTimeout(() => {
1656
- he(r.modelValue);
1630
+ ke(r.modelValue);
1657
1631
  }, 200));
1658
1632
  };
1659
- return _e(() => {
1633
+ return Je(() => {
1660
1634
  var t;
1661
- y.value = r.modelValue.includes("linear") || r.modelValue.includes("radial") ? "gradient" : "solid", y.value == "gradient" && (P = (t = u.value) == null ? void 0 : t.querySelector(".gradient-bar")), he(r.modelValue), se(U.value), mt(() => {
1635
+ y.value = r.modelValue.includes("linear") || r.modelValue.includes("radial") ? "gradient" : "solid", y.value == "gradient" && (X = (t = u.value) == null ? void 0 : t.querySelector(".gradient-bar")), ke(r.modelValue), pe(U.value), mt(() => {
1662
1636
  N.value = !0;
1663
1637
  });
1664
1638
  }), (t, e) => (m(), E("div", {
@@ -1675,14 +1649,14 @@ const It = { key: 1 }, Vt = {
1675
1649
  "model-value": n.modelValue,
1676
1650
  iconClasses: n.iconClasses,
1677
1651
  gradientType: L.value,
1678
- onOnChangeMode: Qe
1652
+ onOnChangeMode: ut
1679
1653
  }, null, 8, ["variant", "mode", "model-value", "iconClasses", "gradientType"])
1680
1654
  ])) : H("", !0),
1681
1655
  y.value == "gradient" && n.variant == "gradient" ? (m(), E("div", ul, [
1682
1656
  T(Kt, {
1683
1657
  gradientType: L.value,
1684
- onOnAddColor: fe,
1685
- onOnMouseDown: De,
1658
+ onOnAddColor: qe,
1659
+ onOnMouseDown: Ve,
1686
1660
  onOnDeleteColor: Ge
1687
1661
  }, null, 8, ["gradientType"]),
1688
1662
  T(ll, {
@@ -1695,29 +1669,29 @@ const It = { key: 1 }, Vt = {
1695
1669
  inputType: U.value,
1696
1670
  mode: y.value,
1697
1671
  gradientType: L.value,
1698
- onOnInput: X
1672
+ onOnInput: F
1699
1673
  }, null, 8, ["percentageY", "angle", "percentageX", "inputType", "mode", "gradientType"])
1700
1674
  ])) : (m(), E("div", dl, [
1701
1675
  n.presetColors ? (m(), E("div", cl, [
1702
- e[10] || (e[10] = b("div", { class: "text-oc-text-400 text-sm my-3 font-medium" }, "Choose color", -1)),
1703
- b("div", pl, [
1704
- (m(!0), E(pe, null, Ze(n.presetColors, (l) => (m(), E("div", {
1676
+ e[10] || (e[10] = h("div", { class: "text-oc-text-400 text-sm my-3 font-medium" }, "Choose color", -1)),
1677
+ h("div", pl, [
1678
+ (m(!0), E(ge, null, Ke(n.presetColors, (l) => (m(), E("div", {
1705
1679
  key: `color-${l}`,
1706
1680
  class: "ck-cp-color-item !w-[32px] !h-[32px]",
1707
- style: ee(`background:${l}`),
1708
- onClick: (i) => J(l)
1681
+ style: te(`background:${l}`),
1682
+ onClick: (i) => se(l)
1709
1683
  }, null, 12, gl))), 128))
1710
1684
  ])
1711
1685
  ])) : H("", !0)
1712
1686
  ])),
1713
- T(al, { onOnMouseDown: Se }),
1714
- b("div", vl, [
1687
+ T(al, { onOnMouseDown: Pe }),
1688
+ h("div", vl, [
1715
1689
  T(_t, {
1716
1690
  class: Q(M.value ? "max-w-[90%]" : ""),
1717
- modelValue: ae.value,
1718
- "onUpdate:modelValue": e[3] || (e[3] = (l) => ae.value = l),
1691
+ modelValue: ne.value,
1692
+ "onUpdate:modelValue": e[3] || (e[3] = (l) => ne.value = l),
1719
1693
  onOnInput: e[4] || (e[4] = (l) => Ie(!1)),
1720
- onOnChange: qe
1694
+ onOnChange: Xe
1721
1695
  }, null, 8, ["class", "modelValue"]),
1722
1696
  M.value ? (m(), E("button", {
1723
1697
  key: 0,
@@ -1727,69 +1701,69 @@ const It = { key: 1 }, Vt = {
1727
1701
  style: { padding: "7px" },
1728
1702
  onClick: Ye
1729
1703
  }, e[11] || (e[11] = [
1730
- b("svg", {
1704
+ h("svg", {
1731
1705
  version: "1.1",
1732
1706
  xmlns: "http://www.w3.org/2000/svg",
1733
1707
  width: "32",
1734
1708
  height: "32",
1735
1709
  viewBox: "0 0 32 32"
1736
1710
  }, [
1737
- b("path", { d: "M21.35 1.825l-6.344 6.35-0.588-0.588c-0.781-0.781-2.050-0.781-2.831 0s-0.781 2.050 0 2.831l10 10c0.781 0.781 2.050 0.781 2.831 0s0.781-2.050 0-2.831l-0.587-0.587 6.344-6.35c2.438-2.438 2.438-6.388 0-8.819s-6.387-2.438-8.819 0zM3.462 20.206c-0.938 0.938-1.462 2.212-1.462 3.538v2.65l-1.663 2.494c-0.531 0.794-0.425 1.85 0.25 2.525s1.731 0.781 2.525 0.25l2.494-1.663h2.65c1.325 0 2.6-0.525 3.537-1.462l7.544-7.544-2.831-2.831-7.544 7.544c-0.188 0.188-0.444 0.294-0.706 0.294h-2.256v-2.256c0-0.262 0.106-0.519 0.294-0.706l7.544-7.544-2.831-2.831-7.544 7.544z" })
1711
+ h("path", { d: "M21.35 1.825l-6.344 6.35-0.588-0.588c-0.781-0.781-2.050-0.781-2.831 0s-0.781 2.050 0 2.831l10 10c0.781 0.781 2.050 0.781 2.831 0s0.781-2.050 0-2.831l-0.587-0.587 6.344-6.35c2.438-2.438 2.438-6.388 0-8.819s-6.387-2.438-8.819 0zM3.462 20.206c-0.938 0.938-1.462 2.212-1.462 3.538v2.65l-1.663 2.494c-0.531 0.794-0.425 1.85 0.25 2.525s1.731 0.781 2.525 0.25l2.494-1.663h2.65c1.325 0 2.6-0.525 3.537-1.462l7.544-7.544-2.831-2.831-7.544 7.544c-0.188 0.188-0.444 0.294-0.706 0.294h-2.256v-2.256c0-0.262 0.106-0.519 0.294-0.706l7.544-7.544-2.831-2.831-7.544 7.544z" })
1738
1712
  ], -1)
1739
1713
  ]))) : H("", !0)
1740
1714
  ]),
1741
- n.showAlpha ? (m(), F(jt, {
1715
+ n.showAlpha ? (m(), q(zt, {
1742
1716
  key: 3,
1743
- modelValue: ne.value,
1744
- "onUpdate:modelValue": e[5] || (e[5] = (l) => ne.value = l),
1745
- onOnInput: e[6] || (e[6] = (l) => Ue(l.target.value))
1717
+ modelValue: oe.value,
1718
+ "onUpdate:modelValue": e[5] || (e[5] = (l) => oe.value = l),
1719
+ onOnInput: e[6] || (e[6] = (l) => He(l.target.value))
1746
1720
  }, null, 8, ["modelValue"])) : H("", !0),
1747
- ft(b("div", ml, null, 512), [
1721
+ ft(h("div", ml, null, 512), [
1748
1722
  [ht, !1]
1749
1723
  ]),
1750
- b("div", fl, [
1724
+ h("div", fl, [
1751
1725
  T(Gt, {
1752
1726
  "model-value": U.value,
1753
- "onUpdate:modelValue": se
1727
+ "onUpdate:modelValue": pe
1754
1728
  }, null, 8, ["model-value"]),
1755
1729
  N.value && n.showInputSet ? (m(), E("div", hl, [
1756
- U.value == "HEX" ? (m(), F(Xt, {
1730
+ U.value == "HEX" ? (m(), q(Xt, {
1757
1731
  key: 0,
1758
- modelValue: W.value,
1732
+ modelValue: j.value,
1759
1733
  "onUpdate:modelValue": [
1760
- e[7] || (e[7] = (l) => W.value = l),
1761
- o
1734
+ e[7] || (e[7] = (l) => j.value = l),
1735
+ x
1762
1736
  ]
1763
1737
  }, null, 8, ["modelValue"])) : H("", !0),
1764
- U.value == "RGB" ? (m(), F(ot, {
1738
+ U.value == "RGB" ? (m(), q(nt, {
1765
1739
  key: 1,
1766
1740
  "rgb-value": a.value.find((l) => l.select == !0),
1767
- onUpdateRgbValue: We
1741
+ onUpdateRgbValue: c
1768
1742
  }, null, 8, ["rgb-value"])) : H("", !0),
1769
- U.value == "HSL" ? (m(), F(ot, {
1743
+ U.value == "HSL" ? (m(), q(nt, {
1770
1744
  key: 2,
1771
1745
  "input-type": "HSL",
1772
- "hsl-value": q,
1773
- onUpdateHslValue: c
1746
+ "hsl-value": P,
1747
+ onUpdateHslValue: o
1774
1748
  }, null, 8, ["hsl-value"])) : H("", !0),
1775
- n.showAlpha ? (m(), F(Ft, {
1749
+ n.showAlpha ? (m(), q(Ft, {
1776
1750
  key: 3,
1777
- modelValue: ne.value,
1751
+ modelValue: oe.value,
1778
1752
  "onUpdate:modelValue": [
1779
- e[8] || (e[8] = (l) => ne.value = l),
1780
- e[9] || (e[9] = (l) => Ue(l))
1753
+ e[8] || (e[8] = (l) => oe.value = l),
1754
+ e[9] || (e[9] = (l) => He(l))
1781
1755
  ]
1782
1756
  }, null, 8, ["modelValue"])) : H("", !0)
1783
1757
  ])) : H("", !0)
1784
1758
  ]),
1785
- e[12] || (e[12] = b("div", { class: "text-oc-text-400 text-sm my-3 font-medium font-inter" }, "Last used", -1)),
1786
- O.value.length > 0 && n.showColorList ? (m(), E("div", bl, [
1787
- (m(!0), E(pe, null, Ze(j.value, (l) => (m(), E("div", {
1759
+ e[12] || (e[12] = h("div", { class: "text-oc-text-400 text-sm my-3 font-medium font-inter" }, "Last used", -1)),
1760
+ O.value.length > 0 && n.showColorList ? (m(), E("div", yl, [
1761
+ (m(!0), E(ge, null, Ke(Z.value, (l) => (m(), E("div", {
1788
1762
  key: `color-${l}`,
1789
1763
  class: "ck-cp-color-item !w-[32px] !h-[32px]",
1790
- style: ee(`background:${l}`),
1791
- onClick: (i) => J(l)
1792
- }, null, 12, yl))), 128))
1764
+ style: te(`background:${l}`),
1765
+ onClick: (i) => se(l)
1766
+ }, null, 12, bl))), 128))
1793
1767
  ])) : H("", !0)
1794
1768
  ], 10, sl));
1795
1769
  }
@@ -1799,7 +1773,7 @@ const It = { key: 1 }, Vt = {
1799
1773
  }, Sl = {
1800
1774
  key: 0,
1801
1775
  class: "text-sm text-oc-text-400"
1802
- }, El = /* @__PURE__ */ bt({
1776
+ }, El = /* @__PURE__ */ yt({
1803
1777
  __name: "OcOnboardingProgressbar",
1804
1778
  props: {
1805
1779
  title: {
@@ -1820,7 +1794,7 @@ const It = { key: 1 }, Vt = {
1820
1794
  }
1821
1795
  },
1822
1796
  setup(n) {
1823
- const V = n, r = be(() => ({
1797
+ const V = n, r = $e(() => ({
1824
1798
  grid: {
1825
1799
  containLabel: !1
1826
1800
  },
@@ -1855,17 +1829,17 @@ const It = { key: 1 }, Vt = {
1855
1829
  "tooltip-formatter": () => null,
1856
1830
  "tooltip-value-formatter": () => null
1857
1831
  }, null, 8, ["additional-options"]),
1858
- b("div", $l, [
1859
- n.title ? (m(), E("span", wl, Pe(n.title), 1)) : H("", !0),
1860
- Ke(y.$slots, "description", {}, () => [
1861
- n.description ? (m(), E("span", Sl, Pe(n.description), 1)) : H("", !0)
1832
+ h("div", $l, [
1833
+ n.title ? (m(), E("span", wl, Ne(n.title), 1)) : H("", !0),
1834
+ ze(y.$slots, "description", {}, () => [
1835
+ n.description ? (m(), E("span", Sl, Ne(n.description), 1)) : H("", !0)
1862
1836
  ])
1863
1837
  ])
1864
1838
  ]));
1865
1839
  }
1866
- }), Ul = st(
1840
+ }), Ul = it(
1867
1841
  () => import("./OcCodeBlock-uFQyGnLq.js")
1868
- ), Dl = st(
1842
+ ), Dl = it(
1869
1843
  () => import("./OcLottieAnimation-BjY3rCjS.js")
1870
1844
  );
1871
1845
  export {