@orchidui/dashboard 1.8.1-90 → 1.8.1-92

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