@orchidui/dashboard 1.19.0-3 → 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.
package/dist/index.js CHANGED
@@ -1,12 +1,12 @@
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 he, 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 D, onMounted as _e, watch as ye, createElementVNode as h, 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 bt, defineComponent as ht, defineAsyncComponent as st } from "vue";
5
- import { Q as G, a as yt } from "./QuillEditor-DRwC0sgJ.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
- import { LineChart as Ol } from "./Dashboard/Charts/LineChart/OcLineChart.js";
9
+ import { LineChart as Ml } from "./Dashboard/Charts/LineChart/OcLineChart.js";
10
10
  import { BarChart as Al } from "./Dashboard/Charts/BarChart/OcBarChart.js";
11
11
  import { BarRaceChart as Pl } from "./Dashboard/Charts/BarRaceChart/OcBarRaceChart.js";
12
12
  import { _ as ql } from "./OcCard-D3be6IMj.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, 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" ? {
36
+ const r = n, y = V, u = v(!1), f = v(r.modelValue), C = (U) => {
37
+ U && (f.value = U, y("update:model-value", U));
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,40 +44,40 @@ const It = { key: 1 }, Vt = {
44
44
  style: {
45
45
  color: f.value
46
46
  }
47
- }), a = v(), H = v([]), j = () => {
48
- H.value.length > 8 && (H.value = H.value.filter((M, N) => N < 8)), localStorage.setItem("ck-cp-local-color-list", JSON.stringify(H.value));
47
+ }), a = v(), O = v([]), Z = () => {
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
- let O = localStorage.getItem("ck-cp-local-color-list");
51
- O && (H.value = [...new Set(JSON.parse(O))], j());
52
- const L = (M) => {
53
- if (!M && f.value)
54
- if (H.value.find((U) => U === f.value))
55
- H.value = [
50
+ let M = localStorage.getItem("ck-cp-local-color-list");
51
+ M && (O.value = [...new Set(JSON.parse(M))], Z());
52
+ const L = (U) => {
53
+ if (!U && f.value)
54
+ if (O.value.find((D) => D === f.value))
55
+ O.value = [
56
56
  f.value,
57
- ...H.value.filter((U) => U !== f.value)
58
- ], j();
57
+ ...O.value.filter((D) => D !== f.value)
58
+ ], Z();
59
59
  else {
60
- H.value.length >= 9 && H.value.pop();
61
- let U = f.value;
62
- H.value.unshift(U), j();
60
+ O.value.length >= 9 && O.value.pop();
61
+ let D = f.value;
62
+ O.value.unshift(D), Z();
63
63
  }
64
- }, B = v(!1), W = (M) => {
65
- f.value = M, y("update:model-value", M), u.value = !1;
64
+ }, B = v(!1), j = (U) => {
65
+ f.value = U, y("update:model-value", U), u.value = !1;
66
66
  };
67
- return (M, 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
- var U;
71
- return (U = a.value) == null ? void 0 : U.toggleDropdown();
70
+ var D;
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,
79
79
  "onUpdate:modelValue": [
80
- N[0] || (N[0] = (U) => u.value = U),
80
+ N[0] || (N[0] = (D) => u.value = D),
81
81
  L
82
82
  ],
83
83
  "max-menu-height": 800,
@@ -86,29 +86,29 @@ const It = { key: 1 }, Vt = {
86
86
  strategy: "fixed"
87
87
  }
88
88
  }, {
89
- menu: Y(() => [
90
- B.value ? D("", !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,
94
94
  type: n.hideOpacity ? "HEX" : "HEX8",
95
95
  "model-value": n.modelValue,
96
- "last-used-colors": H.value,
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(M.$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",
@@ -116,10 +116,10 @@ const It = { key: 1 }, Vt = {
116
116
  placeholder: "",
117
117
  "onUpdate:modelValue": C
118
118
  }, vt({ _: 2 }, [
119
- M.$slots.leading ? {
119
+ U.$slots.leading ? {
120
120
  name: "leading",
121
- fn: Y(() => [
122
- Ke(M.$slots, "leading")
121
+ fn: W(() => [
122
+ ze(U.$slots, "leading")
123
123
  ]),
124
124
  key: "0"
125
125
  } : void 0
@@ -131,7 +131,7 @@ const It = { key: 1 }, Vt = {
131
131
  _: 3
132
132
  }, 8, ["class"]));
133
133
  }
134
- }, Lt = ["id"], Tt = { class: "flex items-center gap-x-3 px-5" }, Bt = { class: "flex items-center gap-x-5 cursor-pointer" }, Rt = { class: "flex flex-col py-2 overflow-hidden" }, Et = ["onClick"], Mt = { class: "flex gap-x-3 items-center px-5" }, Ut = { class: "flex items-center gap-x-3 px-5" }, Dt = { class: "flex gap-x-3 items-center px-5" }, Ht = { class: "flex gap-x-3 items-center px-5" }, Ot = { class: "flex items-center" }, Qt = { class: "grid cursor-pointer px-5" }, At = {
134
+ }, Lt = ["id"], Tt = { class: "flex items-center gap-x-3 px-5" }, Bt = { class: "flex items-center gap-x-5 cursor-pointer" }, Rt = { class: "flex flex-col py-2 overflow-hidden" }, Et = ["onClick"], Ut = { class: "flex gap-x-3 items-center px-5" }, Dt = { class: "flex items-center gap-x-3 px-5" }, Ht = { class: "flex gap-x-3 items-center px-5" }, Ot = { class: "flex gap-x-3 items-center px-5" }, Mt = { class: "flex items-center" }, Qt = { class: "grid cursor-pointer px-5" }, At = {
135
135
  key: 5,
136
136
  class: "flex gap-x-3 items-center px-5"
137
137
  }, Nt = { class: "flex" }, Pt = { class: "mt-1 mx-2 cursor-pointer" }, Rl = {
@@ -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 = 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");
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
- ), M = v(!1), N = v(!1), U = 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 = 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, N.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;
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", !U.value), (c = x.value.getQuill().getSelection()) != null && c.length || (U.value = !U.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
- }, 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
- }, 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], b = new FileReader();
284
- b.onload = () => Me(b.result), b.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 b;
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 be = 0; be < se.length; be++) {
295
- const Qe = (b = se[be]) == null ? void 0 : b.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((b) => {
302
- P(b) && (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
- }, 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);
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), 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;
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 = he(() => {
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 = he(() => {
315
+ }), Ge = $e(() => {
341
316
  let c = [];
342
317
  for (let o = 1; o < 12; o++)
343
318
  c.push({
@@ -345,15 +320,16 @@ const It = { key: 1 }, Vt = {
345
320
  value: o.toString()
346
321
  });
347
322
  return c;
348
- }), We = () => {
349
- x.value.getQuill().getModule("better-table").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;
350
326
  };
351
- return ye(
327
+ return fe(
352
328
  () => r.modelValue,
353
329
  (c) => {
354
- c || x.value.getQuill().setContents([], "silent");
330
+ c || b.value.getQuill().setContents([], "silent");
355
331
  }
356
- ), (c, o) => (m(), F(w(rt), {
332
+ ), (c, o) => (m(), q(w(st), {
357
333
  label: n.label,
358
334
  hint: n.hint,
359
335
  "error-message": n.errorMessage,
@@ -362,29 +338,29 @@ const It = { key: 1 }, Vt = {
362
338
  "tooltip-text": n.tooltipText,
363
339
  "tooltip-options": n.tooltipOptions
364
340
  }, {
365
- default: Y(() => [
341
+ default: W(() => [
366
342
  T(w(xt), {
367
343
  title: "Insert table",
368
- modelValue: X.value,
369
- "onUpdate:modelValue": o[2] || (o[2] = (b) => X.value = b),
344
+ modelValue: K.value,
345
+ "onUpdate:modelValue": o[2] || (o[2] = (x) => K.value = x),
370
346
  class: "!w-full !h-full",
371
347
  confirmButtonProps: {
372
348
  label: "Save",
373
- onClick: () => We()
349
+ onClick: () => Ye()
374
350
  }
375
351
  }, {
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,
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,
381
357
  label: "Table cell",
382
358
  class: "mb-3"
383
359
  }, null, 8, ["modelValue", "options"]),
384
- T(w(Je), {
385
- modelValue: Ve.value,
386
- "onUpdate:modelValue": o[1] || (o[1] = (b) => Ve.value = b),
387
- 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,
388
364
  label: "Table rows"
389
365
  }, null, 8, ["modelValue", "options"])
390
366
  ]),
@@ -392,34 +368,34 @@ const It = { key: 1 }, Vt = {
392
368
  }, 8, ["modelValue", "confirmButtonProps"]),
393
369
  h("div", {
394
370
  class: Q(["grid", { "has-error": n.errorMessage }]),
395
- onClick: oe
371
+ onClick: Me
396
372
  }, [
397
- W.value ? (m(), F(w(yt), {
373
+ j.value ? (m(), q(w(bt), {
398
374
  key: 0,
399
- id: `#${W.value}`,
375
+ id: `#${j.value}`,
400
376
  ref_key: "quill",
401
- ref: x,
377
+ ref: b,
402
378
  content: n.modelValue,
403
379
  options: {
404
- bounds: `#${W.value}`
380
+ bounds: `#${j.value}`
405
381
  },
382
+ "is-text-only": "",
406
383
  theme: "snow",
407
384
  "content-type": "html",
408
- "global-options": ve.value,
409
385
  class: "min-h-[200px]",
410
386
  placeholder: n.placeholder,
411
- "onUpdate:content": Se,
412
- onPaste: Z
387
+ "onUpdate:content": ie,
388
+ onPaste: X
413
389
  }, {
414
- toolbar: Y(() => [
390
+ toolbar: W(() => [
415
391
  h("div", {
416
- id: W.value,
392
+ id: j.value,
417
393
  class: "flex min-h-[36px] flex-wrap !py-2 !px-3 gap-y-2 rounded-t"
418
394
  }, [
419
- f.value.includes("changes") ? (m(), E(pe, { key: 0 }, [
395
+ f.value.includes("changes") ? (m(), E(ge, { key: 0 }, [
420
396
  h("div", Tt, [
421
397
  T(w(A), {
422
- class: Q(M.value ? "text-oc-text cursor-pointer" : "text-oc-text-300"),
398
+ class: Q(U.value ? "text-oc-text cursor-pointer" : "text-oc-text-300"),
423
399
  width: "20",
424
400
  height: "20",
425
401
  name: "text-editor/undo",
@@ -430,31 +406,31 @@ const It = { key: 1 }, Vt = {
430
406
  width: "20",
431
407
  height: "20",
432
408
  name: "text-editor/redo",
433
- onClick: Ce
409
+ onClick: Ue
434
410
  }, null, 8, ["class"])
435
411
  ]),
436
412
  o[16] || (o[16] = h("div", { class: "border-l border-oc-gray-200" }, null, -1))
437
- ], 64)) : D("", !0),
438
- f.value.includes("font-size") ? (m(), E(pe, { key: 1 }, [
439
- T(w(ut), {
413
+ ], 64)) : H("", !0),
414
+ f.value.includes("font-size") ? (m(), E(ge, { key: 1 }, [
415
+ T(w(rt), {
440
416
  modelValue: z.value,
441
- "onUpdate:modelValue": o[3] || (o[3] = (b) => z.value = b),
417
+ "onUpdate:modelValue": o[3] || (o[3] = (x) => z.value = x),
442
418
  class: "px-5"
443
419
  }, {
444
- menu: Y(() => [
420
+ menu: W(() => [
445
421
  h("div", Rt, [
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", q.value === b.value ? "font-medium" : ""]),
449
- onClick: (J) => de(b.value)
450
- }, Pe(b.label), 11, Et))), 128))
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))
451
427
  ])
452
428
  ]),
453
- default: Y(() => {
454
- var b;
429
+ default: W(() => {
430
+ var x;
455
431
  return [
456
432
  h("div", Bt, [
457
- ge(Pe((b = n.fontSizes.find((J) => J.value === q.value)) == null ? void 0 : b.label) + " ", 1),
433
+ ve(Ne((x = n.fontSizes.find((G) => G.value === P.value)) == null ? void 0 : x.label) + " ", 1),
458
434
  T(w(A), {
459
435
  width: "20",
460
436
  height: "20",
@@ -467,144 +443,144 @@ const It = { key: 1 }, Vt = {
467
443
  _: 1
468
444
  }, 8, ["modelValue"]),
469
445
  o[17] || (o[17] = h("div", { class: "border-l border-oc-gray-200" }, null, -1))
470
- ], 64)) : D("", !0),
471
- f.value.includes("font-style") ? (m(), E(pe, { key: 2 }, [
472
- h("div", Mt, [
446
+ ], 64)) : H("", !0),
447
+ f.value.includes("font-style") ? (m(), E(ge, { key: 2 }, [
448
+ h("div", Ut, [
473
449
  T(w(A), {
474
- class: Q(["cursor-pointer", U.value ? "text-oc-text" : "text-oc-text-300"]),
450
+ class: Q(["cursor-pointer", D.value ? "text-oc-text" : "text-oc-text-300"]),
475
451
  width: "20",
476
452
  height: "20",
477
453
  name: "text-editor/bold",
478
- onClick: ae
454
+ onClick: Ce
479
455
  }, null, 8, ["class"]),
480
456
  T(w(A), {
481
- 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"]),
482
458
  width: "20",
483
459
  height: "20",
484
460
  name: "text-editor/italic",
485
- onClick: Ie
461
+ onClick: ne
486
462
  }, null, 8, ["class"]),
487
463
  T(w(A), {
488
- 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"]),
489
465
  width: "20",
490
466
  height: "20",
491
467
  name: "text-editor/underline",
492
- onClick: Xe
468
+ onClick: Ie
493
469
  }, null, 8, ["class"])
494
470
  ]),
495
471
  o[18] || (o[18] = h("div", { class: "border-l border-oc-gray-200" }, null, -1))
496
- ], 64)) : D("", !0),
497
- h("div", Ut, [
498
- f.value.includes("link") ? (m(), F(w(A), {
472
+ ], 64)) : H("", !0),
473
+ h("div", Dt, [
474
+ f.value.includes("link") ? (m(), q(w(A), {
499
475
  key: 0,
500
476
  class: "cursor-pointer",
501
477
  width: "20",
502
478
  height: "20",
503
479
  name: "text-editor/link",
504
- onClick: qe
505
- })) : D("", !0),
506
- f.value.includes("image") ? (m(), F(w(A), {
480
+ onClick: me
481
+ })) : H("", !0),
482
+ f.value.includes("image") ? (m(), q(w(A), {
507
483
  key: 1,
508
484
  class: "cursor-pointer",
509
485
  width: "20",
510
486
  height: "20",
511
487
  name: "text-editor/image",
512
- onClick: Fe
513
- })) : D("", !0),
514
- f.value.includes("quote") ? (m(), F(w(A), {
488
+ onClick: He
489
+ })) : H("", !0),
490
+ f.value.includes("quote") ? (m(), q(w(A), {
515
491
  key: 2,
516
492
  class: Q(["cursor-pointer", R.value ? "text-oc-text" : "text-oc-text-300"]),
517
493
  width: "20",
518
494
  height: "20",
519
495
  name: "text-editor/quote",
520
- onClick: ne
521
- }, null, 8, ["class"])) : D("", !0),
522
- f.value.includes("media") ? (m(), F(w(A), {
496
+ onClick: Xe
497
+ }, null, 8, ["class"])) : H("", !0),
498
+ f.value.includes("media") ? (m(), q(w(A), {
523
499
  key: 3,
524
500
  class: "cursor-pointer",
525
501
  width: "20",
526
502
  height: "20",
527
503
  name: "text-editor/media",
528
- onClick: Ue
529
- })) : D("", !0),
504
+ onClick: _
505
+ })) : H("", !0),
530
506
  T(w(A), {
531
507
  class: "cursor-pointer",
532
508
  width: "20",
533
509
  height: "20",
534
510
  name: "table",
535
- onClick: o[4] || (o[4] = (b) => X.value = !X.value)
511
+ onClick: o[4] || (o[4] = (x) => K.value = !K.value)
536
512
  })
537
513
  ]),
538
- f.value.includes("list") ? (m(), E(pe, { key: 3 }, [
514
+ f.value.includes("list") ? (m(), E(ge, { key: 3 }, [
539
515
  o[19] || (o[19] = h("div", { class: "border-l border-oc-gray-200" }, null, -1)),
540
- h("div", Dt, [
516
+ h("div", Ht, [
541
517
  T(w(A), {
542
- 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"]),
543
519
  width: "20",
544
520
  height: "20",
545
521
  name: "text-editor/bullet",
546
- onClick: o[5] || (o[5] = (b) => De("bullet"))
522
+ onClick: o[5] || (o[5] = (x) => Ve("bullet"))
547
523
  }, null, 8, ["class"]),
548
524
  T(w(A), {
549
- 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"]),
550
526
  width: "20",
551
527
  height: "20",
552
528
  name: "text-editor/number",
553
- onClick: o[6] || (o[6] = (b) => De("ordered"))
529
+ onClick: o[6] || (o[6] = (x) => Ve("ordered"))
554
530
  }, null, 8, ["class"])
555
531
  ])
556
- ], 64)) : D("", !0),
557
- f.value.includes("alignment") ? (m(), E(pe, { key: 4 }, [
532
+ ], 64)) : H("", !0),
533
+ f.value.includes("alignment") ? (m(), E(ge, { key: 4 }, [
558
534
  o[20] || (o[20] = h("div", { class: "border-l border-oc-gray-200" }, null, -1)),
559
- h("div", Ht, [
535
+ h("div", Ot, [
560
536
  T(w(A), {
561
- 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"]),
562
538
  width: "20",
563
539
  height: "20",
564
540
  name: "text-editor/left",
565
- onClick: o[7] || (o[7] = (b) => me())
541
+ onClick: o[7] || (o[7] = (x) => he())
566
542
  }, null, 8, ["class"]),
567
543
  T(w(A), {
568
- 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"]),
569
545
  width: "20",
570
546
  height: "20",
571
547
  name: "text-editor/center",
572
- onClick: o[8] || (o[8] = (b) => me("center"))
548
+ onClick: o[8] || (o[8] = (x) => he("center"))
573
549
  }, null, 8, ["class"]),
574
550
  T(w(A), {
575
- 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"]),
576
552
  width: "20",
577
553
  height: "20",
578
554
  name: "text-editor/right",
579
- onClick: o[9] || (o[9] = (b) => me("right"))
555
+ onClick: o[9] || (o[9] = (x) => he("right"))
580
556
  }, null, 8, ["class"]),
581
557
  T(w(A), {
582
- 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"]),
583
559
  width: "20",
584
560
  height: "20",
585
561
  name: "text-editor/justify",
586
- onClick: o[10] || (o[10] = (b) => me("justify"))
562
+ onClick: o[10] || (o[10] = (x) => he("justify"))
587
563
  }, null, 8, ["class"])
588
564
  ])
589
- ], 64)) : D("", !0),
565
+ ], 64)) : H("", !0),
590
566
  o[22] || (o[22] = h("div", { class: "border-l border-oc-gray-200" }, null, -1)),
591
- h("div", Ot, [
567
+ h("div", Mt, [
592
568
  T(w(Vt), {
593
- modelValue: fe.value,
569
+ modelValue: de.value,
594
570
  "onUpdate:modelValue": [
595
- o[11] || (o[11] = (b) => fe.value = b),
596
- He
571
+ o[11] || (o[11] = (x) => de.value = x),
572
+ qe
597
573
  ],
598
574
  "hide-input-color": ""
599
575
  }, {
600
- "picker-icon": Y(() => [
576
+ "picker-icon": W(() => [
601
577
  h("div", Qt, [
602
578
  h("div", {
603
- style: ee(`color:${fe.value}`)
579
+ style: te(`color:${de.value}`)
604
580
  }, "A", 4),
605
581
  h("div", {
606
582
  class: "h-[5px] w-full rounded border",
607
- style: ee(`background:${fe.value}`)
583
+ style: te(`background:${de.value}`)
608
584
  }, null, 4)
609
585
  ])
610
586
  ]),
@@ -612,14 +588,14 @@ const It = { key: 1 }, Vt = {
612
588
  }, 8, ["modelValue"])
613
589
  ]),
614
590
  o[23] || (o[23] = h("div", { class: "border-l border-oc-gray-200" }, null, -1)),
615
- xe.value ? (m(), E("div", At, [
616
- T(w(Ne), {
591
+ ce.value ? (m(), E("div", At, [
592
+ T(w(Ae), {
617
593
  label: "Image width",
618
594
  class: "w-[120px]",
619
- "model-value": ie.value,
595
+ "model-value": ye.value,
620
596
  "min-limit": 0,
621
597
  "max-limit": 100,
622
- "onUpdate:modelValue": Oe
598
+ "onUpdate:modelValue": Le
623
599
  }, null, 8, ["model-value"]),
624
600
  h("div", Nt, [
625
601
  T(w(A), {
@@ -627,24 +603,24 @@ const It = { key: 1 }, Vt = {
627
603
  width: "20",
628
604
  height: "20",
629
605
  name: "text-editor/left",
630
- onClick: o[12] || (o[12] = (b) => ke())
606
+ onClick: o[12] || (o[12] = (x) => be())
631
607
  }),
632
608
  T(w(A), {
633
609
  class: "cursor-pointer",
634
610
  width: "20",
635
611
  height: "20",
636
612
  name: "text-editor/center",
637
- onClick: o[13] || (o[13] = (b) => ke("center"))
613
+ onClick: o[13] || (o[13] = (x) => be("center"))
638
614
  }),
639
615
  T(w(A), {
640
616
  class: "cursor-pointer",
641
617
  width: "20",
642
618
  height: "20",
643
619
  name: "text-editor/right",
644
- onClick: o[14] || (o[14] = (b) => ke("right"))
620
+ onClick: o[14] || (o[14] = (x) => be("right"))
645
621
  })
646
622
  ])
647
- ])) : D("", !0),
623
+ ])) : H("", !0),
648
624
  h("div", Pt, [
649
625
  (m(), E("svg", {
650
626
  width: "20",
@@ -652,7 +628,7 @@ const It = { key: 1 }, Vt = {
652
628
  viewBox: "0 0 15 15",
653
629
  fill: "none",
654
630
  xmlns: "http://www.w3.org/2000/svg",
655
- onClick: o[15] || (o[15] = (b) => Re())
631
+ onClick: o[15] || (o[15] = (x) => Pe())
656
632
  }, o[21] || (o[21] = [
657
633
  h("path", {
658
634
  "fill-rule": "evenodd",
@@ -665,7 +641,7 @@ const It = { key: 1 }, Vt = {
665
641
  ], 8, Lt)
666
642
  ]),
667
643
  _: 1
668
- }, 8, ["id", "content", "options", "global-options", "placeholder"])) : D("", !0)
644
+ }, 8, ["id", "content", "options", "placeholder"])) : H("", !0)
669
645
  ], 2)
670
646
  ]),
671
647
  _: 1
@@ -712,22 +688,22 @@ const It = { key: 1 }, Vt = {
712
688
  }
713
689
  u.value = `#${a.toUpperCase()}`, y("update:modelValue", u.value);
714
690
  };
715
- return ye(
691
+ return fe(
716
692
  () => r.modelValue,
717
693
  (p, a) => {
718
694
  p !== a && (u.value = p);
719
695
  },
720
696
  { immediate: !0 }
721
- ), (p, a) => (m(), F(w($e), {
697
+ ), (p, a) => (m(), q(w(we), {
722
698
  class: "w-[158px]",
723
699
  placeholder: "#FFFFFF",
724
700
  "model-value": u.value,
725
701
  "onUpdate:modelValue": f,
726
702
  onBlur: C,
727
- onKeyup: it(C, ["enter"])
703
+ onKeyup: ot(C, ["enter"])
728
704
  }, null, 8, ["model-value"]));
729
705
  }
730
- }, qt = { class: "grid grid-cols-3 gap-3" }, ot = {
706
+ }, qt = { class: "grid grid-cols-3 gap-3" }, nt = {
731
707
  __name: "InputRgbHsl",
732
708
  props: {
733
709
  inputType: {
@@ -750,69 +726,69 @@ const It = { key: 1 }, Vt = {
750
726
  r: 0,
751
727
  g: 0,
752
728
  b: 0
753
- }), f = v(), C = v(), p = v(), a = (O, L) => {
754
- var W, M, N;
729
+ }), f = v(), C = v(), p = v(), a = (M, L) => {
730
+ var j, U, N;
755
731
  let B = 255;
756
- if (r.inputType == "HSL" && (B = 100, O == "r" && (B = 360)), !isNaN(parseInt(L))) {
757
- if (O == "r") {
758
- let U = parseInt(L);
759
- U <= B && (u.value.r = U, r.inputType == "RGB" ? H("r") : j()), (W = f.value) == null || W.focus();
760
- } else if (O == "g") {
761
- let U = parseInt(L);
762
- U <= B && (u.value.g = U, r.inputType == "RGB" ? H("g") : j()), (M = C.value) == null || M.focus();
763
- } else if (O == "b") {
764
- let U = parseInt(L);
765
- U <= B && (u.value.b = U, r.inputType == "RGB" ? H("b") : j()), (N = p.value) == null || N.focus();
732
+ if (r.inputType == "HSL" && (B = 100, M == "r" && (B = 360)), !isNaN(parseInt(L))) {
733
+ if (M == "r") {
734
+ let D = parseInt(L);
735
+ D <= B && (u.value.r = D, r.inputType == "RGB" ? O("r") : Z()), (j = f.value) == null || j.focus();
736
+ } else if (M == "g") {
737
+ let D = parseInt(L);
738
+ D <= B && (u.value.g = D, r.inputType == "RGB" ? O("g") : Z()), (U = C.value) == null || U.focus();
739
+ } else if (M == "b") {
740
+ let D = parseInt(L);
741
+ D <= B && (u.value.b = D, r.inputType == "RGB" ? O("b") : Z()), (N = p.value) == null || N.focus();
766
742
  }
767
743
  }
768
- }, H = (O) => {
744
+ }, O = (M) => {
769
745
  y("update-rgb-value", {
770
- type: O,
746
+ type: M,
771
747
  value: {
772
748
  r: parseInt(u.value.r),
773
749
  g: parseInt(u.value.g),
774
750
  b: parseInt(u.value.b)
775
751
  }
776
752
  });
777
- }, j = () => {
753
+ }, Z = () => {
778
754
  y("update-hsl-value", {
779
755
  h: parseInt(u.value.r),
780
756
  s: parseInt(u.value.g),
781
757
  l: parseInt(u.value.b)
782
758
  });
783
759
  };
784
- return r.inputType === "RGB" ? ye(
760
+ return r.inputType === "RGB" ? fe(
785
761
  () => r.rgbValue,
786
- (O, L) => {
787
- O !== L && (u.value = O);
762
+ (M, L) => {
763
+ M !== L && (u.value = M);
788
764
  },
789
765
  { immediate: !0, deep: !0 }
790
- ) : ye(
766
+ ) : fe(
791
767
  () => r.hslValue,
792
- (O) => {
768
+ (M) => {
793
769
  u.value = {
794
- r: O.h,
795
- g: O.s,
796
- b: O.l
770
+ r: M.h,
771
+ g: M.s,
772
+ b: M.l
797
773
  };
798
774
  },
799
775
  { immediate: !0, deep: !0 }
800
- ), (O, L) => (m(), E("div", qt, [
801
- T(w($e), {
776
+ ), (M, L) => (m(), E("div", qt, [
777
+ T(w(we), {
802
778
  ref_key: "rInputEl",
803
779
  ref: f,
804
780
  "model-value": u.value.r,
805
781
  placeholder: "100",
806
782
  "onUpdate:modelValue": L[0] || (L[0] = (B) => a("r", B))
807
783
  }, null, 8, ["model-value"]),
808
- T(w($e), {
784
+ T(w(we), {
809
785
  ref_key: "gInputEl",
810
786
  ref: C,
811
787
  "model-value": u.value.g,
812
788
  placeholder: "100",
813
789
  "onUpdate:modelValue": L[1] || (L[1] = (B) => a("g", B))
814
790
  }, null, 8, ["model-value"]),
815
- T(w($e), {
791
+ T(w(we), {
816
792
  ref_key: "bInputEl",
817
793
  ref: p,
818
794
  "model-value": u.value.b,
@@ -838,22 +814,22 @@ const It = { key: 1 }, Vt = {
838
814
  let p = parseInt(u.value);
839
815
  p && p <= 100 ? y("update:modelValue", p) : u.value = r.modelValue;
840
816
  };
841
- return ye(
817
+ return fe(
842
818
  () => r.modelValue,
843
819
  (p, a) => {
844
820
  p !== a && (u.value = p);
845
821
  },
846
822
  { immediate: !0 }
847
- ), (p, a) => (m(), F(w($e), {
823
+ ), (p, a) => (m(), q(w(we), {
848
824
  class: "w-[75px]",
849
825
  placeholder: "100",
850
826
  "model-value": u.value,
851
827
  "onUpdate:modelValue": f,
852
828
  onBlur: C,
853
- onKeyup: it(C, ["enter"])
829
+ onKeyup: ot(C, ["enter"])
854
830
  }, {
855
- leading: Y(() => a[0] || (a[0] = [
856
- ge("%")
831
+ leading: W(() => a[0] || (a[0] = [
832
+ ve("%")
857
833
  ])),
858
834
  _: 1
859
835
  }, 8, ["model-value"]));
@@ -868,7 +844,7 @@ const It = { key: 1 }, Vt = {
868
844
  const y = v(n.modelValue), u = V, f = (C) => {
869
845
  y.value = C, u("update:model-value", C);
870
846
  };
871
- return (C, p) => (m(), F(w(Je), {
847
+ return (C, p) => (m(), q(w(Ze), {
872
848
  class: "!w-[80px]",
873
849
  "model-value": y.value,
874
850
  options: [
@@ -888,14 +864,14 @@ const It = { key: 1 }, Vt = {
888
864
  "onUpdate:modelValue": f
889
865
  }, null, 8, ["model-value"]));
890
866
  }
891
- }, 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 = {
892
868
  __name: "SliderOpacity",
893
869
  props: {
894
870
  modelValue: { default: 0, type: Number }
895
871
  },
896
872
  emits: ["update:modelValue", "onInput"],
897
873
  setup(n, { emit: V }) {
898
- const r = Be("opacitySlider"), y = V, u = (f) => {
874
+ const r = Re("opacitySlider"), y = V, u = (f) => {
899
875
  y("update:modelValue", parseInt(f.target.value)), y("onInput", f);
900
876
  };
901
877
  return (f, C) => (m(), E("div", Yt, [
@@ -909,7 +885,7 @@ const It = { key: 1 }, Vt = {
909
885
  min: "0",
910
886
  max: "100",
911
887
  onInput: u
912
- }, null, 40, zt)
888
+ }, null, 40, jt)
913
889
  ])
914
890
  ]));
915
891
  }
@@ -920,30 +896,30 @@ const It = { key: 1 }, Vt = {
920
896
  },
921
897
  emits: ["onAddColor", "onMouseDown", "onDeleteColor"],
922
898
  setup(n, { emit: V }) {
923
- const r = Be("gradientBar"), y = v(), u = V, f = (L) => {
899
+ const r = Re("gradientBar"), y = v(), u = V, f = (L) => {
924
900
  L.preventDefault();
925
901
  }, C = v("left:0"), p = v(!1), a = (L) => {
926
902
  u("onMouseDown", L);
927
- }, H = () => {
903
+ }, O = () => {
928
904
  let L = y.value.querySelector(".select");
929
905
  C.value = L == null ? void 0 : L.getAttribute("style");
930
- }, j = () => {
906
+ }, Z = () => {
931
907
  var B;
932
- H(), (((B = y.value.querySelectorAll(".gradient-handle")) == null ? void 0 : B.length) ?? 2) > 2 ? p.value = !0 : p.value = !1;
933
- }, O = (L) => {
908
+ O(), (((B = y.value.querySelectorAll(".gradient-handle")) == null ? void 0 : B.length) ?? 2) > 2 ? p.value = !0 : p.value = !1;
909
+ }, M = (L) => {
934
910
  p.value = !1, u("onAddColor", L);
935
911
  };
936
912
  return (L, B) => (m(), E("div", {
937
913
  ref_key: "gradientSlider",
938
914
  ref: y,
939
915
  class: "relative h-[40px]",
940
- onClick: j
916
+ onClick: Z
941
917
  }, [
942
918
  h("button", {
943
919
  type: "button",
944
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"]),
945
- style: ee(C.value),
946
- onClick: B[0] || (B[0] = (W) => L.$emit("onDeleteColor"))
921
+ style: te(C.value),
922
+ onClick: B[0] || (B[0] = (j) => L.$emit("onDeleteColor"))
947
923
  }, [
948
924
  T(w(A), {
949
925
  name: "bin",
@@ -963,7 +939,7 @@ const It = { key: 1 }, Vt = {
963
939
  ref_key: "gradientBar",
964
940
  ref: r,
965
941
  class: "gradient-container",
966
- onDblclick: O
942
+ onDblclick: M
967
943
  }, null, 544)
968
944
  ], 34)
969
945
  ], 512));
@@ -1009,7 +985,7 @@ const It = { key: 1 }, Vt = {
1009
985
  emits: ["update:angle", "update:percentageX", "update:percentageY", "onInput"],
1010
986
  setup(n, { emit: V }) {
1011
987
  const r = v(!1), y = v(!1);
1012
- _e(() => {
988
+ Je(() => {
1013
989
  r.value = !0, y.value = !0;
1014
990
  });
1015
991
  const u = V, f = (C, p) => {
@@ -1027,7 +1003,7 @@ const It = { key: 1 }, Vt = {
1027
1003
  }
1028
1004
  };
1029
1005
  return (C, p) => (m(), E("div", el, [
1030
- n.gradientType == "linear" && r.value ? (m(), F(w(Ne), {
1006
+ n.gradientType == "linear" && r.value ? (m(), q(w(Ae), {
1031
1007
  key: 0,
1032
1008
  label: "Angle",
1033
1009
  "model-value": n.angle,
@@ -1035,54 +1011,54 @@ const It = { key: 1 }, Vt = {
1035
1011
  "max-limit": 360,
1036
1012
  "onUpdate:modelValue": p[0] || (p[0] = (a) => f(a, "angle"))
1037
1013
  }, {
1038
- "min-limit-label": Y(() => p[3] || (p[3] = [
1039
- ge("0 ")
1014
+ "min-limit-label": W(() => p[3] || (p[3] = [
1015
+ ve("0 ")
1040
1016
  ])),
1041
- "max-limit-label": Y(() => p[4] || (p[4] = [
1042
- ge("360"),
1017
+ "max-limit-label": W(() => p[4] || (p[4] = [
1018
+ ve("360"),
1043
1019
  h("span", null, "°", -1)
1044
1020
  ])),
1045
1021
  _: 1
1046
- }, 8, ["model-value"])) : D("", !0),
1022
+ }, 8, ["model-value"])) : H("", !0),
1047
1023
  n.gradientType == "radial" && y.value ? (m(), E("div", tl, [
1048
- T(w(Ne), {
1024
+ T(w(Ae), {
1049
1025
  label: "Position X",
1050
1026
  "model-value": n.percentageX,
1051
1027
  "min-limit": 0,
1052
1028
  "max-limit": 100,
1053
1029
  "onUpdate:modelValue": p[1] || (p[1] = (a) => f(a, "percentageX"))
1054
1030
  }, {
1055
- "min-limit-label": Y(() => p[5] || (p[5] = [
1056
- ge("0")
1031
+ "min-limit-label": W(() => p[5] || (p[5] = [
1032
+ ve("0")
1057
1033
  ])),
1058
- "max-limit-label": Y(() => p[6] || (p[6] = [
1059
- ge("100%")
1034
+ "max-limit-label": W(() => p[6] || (p[6] = [
1035
+ ve("100%")
1060
1036
  ])),
1061
1037
  _: 1
1062
1038
  }, 8, ["model-value"]),
1063
- T(w(Ne), {
1039
+ T(w(Ae), {
1064
1040
  label: "Position Y",
1065
1041
  "model-value": n.percentageY,
1066
1042
  "min-limit": 0,
1067
1043
  "max-limit": 100,
1068
1044
  "onUpdate:modelValue": p[2] || (p[2] = (a) => f(a, "percentageY"))
1069
1045
  }, {
1070
- "min-limit-label": Y(() => p[7] || (p[7] = [
1071
- ge("0")
1046
+ "min-limit-label": W(() => p[7] || (p[7] = [
1047
+ ve("0")
1072
1048
  ])),
1073
- "max-limit-label": Y(() => p[8] || (p[8] = [
1074
- ge("100%")
1049
+ "max-limit-label": W(() => p[8] || (p[8] = [
1050
+ ve("100%")
1075
1051
  ])),
1076
1052
  _: 1
1077
1053
  }, 8, ["model-value"])
1078
- ])) : D("", !0)
1054
+ ])) : H("", !0)
1079
1055
  ]));
1080
1056
  }
1081
1057
  }, al = {
1082
1058
  __name: "PickerWrap",
1083
1059
  emits: ["onMouseDown"],
1084
1060
  setup(n) {
1085
- 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) => {
1086
1062
  f.preventDefault();
1087
1063
  };
1088
1064
  return (f, C) => (m(), E("div", {
@@ -1142,7 +1118,7 @@ const It = { key: 1 }, Vt = {
1142
1118
  n.modelValue && n.mode == "solid" ? (m(), E("div", {
1143
1119
  key: 0,
1144
1120
  class: "w-[28px] h-[28px] rounded-full border",
1145
- style: ee(`background:${n.modelValue}`)
1121
+ style: te(`background:${n.modelValue}`)
1146
1122
  }, null, 4)) : (m(), E("svg", ol, r[3] || (r[3] = [
1147
1123
  h("g", { opacity: "0.5" }, [
1148
1124
  h("path", {
@@ -1155,12 +1131,12 @@ const It = { key: 1 }, Vt = {
1155
1131
  h("button", {
1156
1132
  type: "button",
1157
1133
  class: Q(n.gradientType == "linear" && n.mode != "solid" ? "active" : ""),
1158
- style: ee(`${n.iconClasses.linear ? "" : "padding: 7px;"}`),
1134
+ style: te(`${n.iconClasses.linear ? "" : "padding: 7px;"}`),
1159
1135
  onClick: r[1] || (r[1] = (y) => V.$emit("onChangeMode", "linear"))
1160
1136
  }, [
1161
1137
  h("div", {
1162
1138
  class: "w-[28px] h-[28px] rounded-full border",
1163
- style: ee(
1139
+ style: te(
1164
1140
  n.modelValue && n.gradientType == "linear" && n.mode != "solid" ? `background:${n.modelValue}` : `
1165
1141
  background: linear-gradient(
1166
1142
  180deg,
@@ -1174,12 +1150,12 @@ const It = { key: 1 }, Vt = {
1174
1150
  h("button", {
1175
1151
  type: "button",
1176
1152
  class: Q(n.gradientType == "radial" && n.mode != "solid" ? "active" : ""),
1177
- style: ee(`${n.iconClasses.radial ? "" : "padding: 6px;"}`),
1153
+ style: te(`${n.iconClasses.radial ? "" : "padding: 6px;"}`),
1178
1154
  onClick: r[2] || (r[2] = (y) => V.$emit("onChangeMode", "radial"))
1179
1155
  }, [
1180
1156
  h("div", {
1181
1157
  class: "w-[28px] h-[28px] rounded-full border",
1182
- style: ee(
1158
+ style: te(
1183
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%);"
1184
1160
  )
1185
1161
  }, null, 4)
@@ -1192,13 +1168,13 @@ const It = { key: 1 }, Vt = {
1192
1168
  }, ul = {
1193
1169
  key: 1,
1194
1170
  class: "grid items-center mb-5"
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 = {
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 = {
1196
1172
  key: 0,
1197
1173
  class: "w-full flex gap-3"
1198
- }, hl = {
1174
+ }, yl = {
1199
1175
  key: 4,
1200
1176
  class: "ck-cp-local-color-conatiner"
1201
- }, yl = ["onClick"], xl = {
1177
+ }, bl = ["onClick"], xl = {
1202
1178
  __name: "OcColorPickerPopup",
1203
1179
  props: {
1204
1180
  modelValue: {
@@ -1240,59 +1216,59 @@ const It = { key: 1 }, Vt = {
1240
1216
  }, a = v([
1241
1217
  { id: 1, r: 68, g: 71, b: 119, a: 100, percent: 0, hue: 0, select: !0 },
1242
1218
  { id: 2, r: 0, g: 0, b: 255, a: 100, percent: 100, hue: 0, select: !1 }
1243
- ]), H = v(r.lastUsedColors);
1244
- ye(
1219
+ ]), O = v(r.lastUsedColors);
1220
+ fe(
1245
1221
  () => r.lastUsedColors,
1246
1222
  () => {
1247
- H.value = r.lastUsedColors;
1223
+ O.value = r.lastUsedColors;
1248
1224
  },
1249
1225
  {
1250
1226
  deep: !0
1251
1227
  }
1252
1228
  );
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({
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({
1254
1230
  angle: 90,
1255
1231
  percentageX: 50,
1256
1232
  percentageY: 50
1257
- }), W = v(""), M = v(r.inputType), N = v(!1), U = 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({
1258
1234
  h: 0,
1259
1235
  s: 0,
1260
1236
  l: 0
1261
1237
  });
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
+ 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) => {
1267
1243
  t.preventDefault();
1268
1244
  const e = z.value.getBoundingClientRect(), l = t.clientX - e.left - R.value.offsetWidth / 2, i = t.clientY - e.top - R.value.offsetHeight / 2;
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);
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);
1272
1248
  }, Ce = (t) => {
1273
1249
  if (!t) {
1274
- let e = Xe();
1275
- const l = nt(ae.value, e.s, e.l);
1250
+ let e = De();
1251
+ const l = at(ne.value, e.s, e.l);
1276
1252
  if (l) {
1277
1253
  if (N.value) {
1278
1254
  let i = a.value.find((s) => s.select == !0);
1279
1255
  i && (i.r = l.r, i.g = l.g, i.b = l.b);
1280
1256
  }
1281
- oe(), X();
1257
+ K(), F();
1282
1258
  }
1283
1259
  }
1284
- }, ae = v(0), Ie = async (t) => {
1285
- const { rgb: e } = at(ae.value, 100, 50);
1286
- ke(e), setTimeout(() => {
1287
- Ce(t), b();
1260
+ }, ne = v(0), Ie = async (t) => {
1261
+ const { rgb: e } = lt(ne.value, 100, 50);
1262
+ Me(e), setTimeout(() => {
1263
+ Ce(t), G();
1288
1264
  }, 0);
1289
- }, Xe = () => {
1265
+ }, De = () => {
1290
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;
1291
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;
1292
- }, de = () => {
1268
+ }, me = () => {
1293
1269
  const t = a.value.find((e) => e.select == !0);
1294
1270
  if (t) {
1295
- 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);
1296
1272
  let i = e, s = l;
1297
1273
  Number.isNaN(s) && (s = i);
1298
1274
  let d = { x: 0, y: 0 }, k = z.value.offsetWidth - R.value.offsetWidth, I = z.value.offsetHeight - R.value.offsetHeight;
@@ -1306,26 +1282,26 @@ const It = { key: 1 }, Vt = {
1306
1282
  return d.x = $, d.y = g, d;
1307
1283
  } else
1308
1284
  return null;
1309
- }, qe = () => {
1285
+ }, Xe = () => {
1310
1286
  const t = a.value.find((e) => e.select == !0);
1311
- t && (t.hue = ae.value);
1312
- }, ne = v(100), Me = (t) => {
1287
+ t && (t.hue = ne.value);
1288
+ }, oe = v(100), He = (t) => {
1313
1289
  if (r.showAlpha) {
1314
1290
  const e = a.value.find((l) => l.select == !0);
1315
- e && (e.a = parseInt(t), X());
1291
+ e && (e.a = parseInt(t), F());
1316
1292
  }
1317
- }, Fe = (t) => {
1293
+ }, Oe = (t) => {
1318
1294
  var l, i, s, d;
1319
1295
  const e = (i = (l = u.value) == null ? void 0 : l.querySelector(".gradient-handle-content")) == null ? void 0 : i.getBoundingClientRect();
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`;
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`;
1321
1297
  };
1322
- let P = null, Z = null;
1323
- const Ue = (t) => {
1298
+ let X = null, _ = null;
1299
+ const Ve = (t) => {
1324
1300
  var i, s;
1325
1301
  const l = t.target.offsetParent;
1326
1302
  if ((i = l == null ? void 0 : l.id) != null && i.includes("clr-gb-")) {
1327
1303
  const d = l.id.replace("clr-gb-", "");
1328
- Z = l;
1304
+ _ = l;
1329
1305
  const k = a.value.find((I) => I.select == !0);
1330
1306
  if (k && k.id != d) {
1331
1307
  const I = (s = u.value) == null ? void 0 : s.querySelector(".gradient-handle.select");
@@ -1334,30 +1310,30 @@ const It = { key: 1 }, Vt = {
1334
1310
  for (let g = 0; g < a.value.length; g++) {
1335
1311
  const S = a.value[g];
1336
1312
  if (S.id == d) {
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();
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();
1338
1314
  break;
1339
1315
  }
1340
1316
  }
1341
1317
  }
1342
- window.addEventListener("mousemove", me), window.addEventListener("mouseup", De);
1318
+ window.addEventListener("mousemove", de), window.addEventListener("mouseup", he);
1343
1319
  }
1344
- }, De = () => {
1345
- window.removeEventListener("mousemove", me), window.removeEventListener("mouseup", Ue);
1346
- }, me = (t) => {
1320
+ }, he = () => {
1321
+ window.removeEventListener("mousemove", de), window.removeEventListener("mouseup", Ve);
1322
+ }, de = (t) => {
1347
1323
  var d, k;
1348
1324
  t.preventDefault();
1349
- 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);
1350
1326
  let s = t.clientX - (l.left || 0) - ((e == null ? void 0 : e.width) || 0) / 2;
1351
- if (s < 0 ? s = 0 : s > i && (s = i), Z) {
1352
- Z.style.left = `${s}px`;
1327
+ if (s < 0 ? s = 0 : s > i && (s = i), _) {
1328
+ _.style.left = `${s}px`;
1353
1329
  const I = parseFloat((s / ((l == null ? void 0 : l.width) - (e == null ? void 0 : e.width)) * 100).toFixed(0)), $ = a.value.find(
1354
- (g) => g.id == (Z == null ? void 0 : Z.id.replace("clr-gb-", ""))
1330
+ (g) => g.id == (_ == null ? void 0 : _.id.replace("clr-gb-", ""))
1355
1331
  );
1356
- $ && ($.percent = I), X();
1332
+ $ && ($.percent = I), F();
1357
1333
  }
1358
- }, fe = (t) => {
1334
+ }, qe = (t) => {
1359
1335
  var I, $;
1360
- 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 = {
1361
1337
  id: Date.now(),
1362
1338
  r: s.r,
1363
1339
  g: s.g,
@@ -1369,14 +1345,14 @@ const It = { key: 1 }, Vt = {
1369
1345
  };
1370
1346
  a.value[i].select = !1;
1371
1347
  const k = (I = u.value) == null ? void 0 : I.querySelector(".gradient-handle.select");
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}`), X();
1373
- }, He = (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) => {
1374
1350
  if (t.r == 0 && t.g == 0 && t.b == 0)
1375
1351
  return !0;
1376
1352
  if (t.r == 255 && t.g == 255 && t.b == 255)
1377
1353
  return !0;
1378
1354
  {
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;
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;
1380
1356
  for (let $ = 0; $ < i; $++)
1381
1357
  for (let g = 0; g < l; g++) {
1382
1358
  const S = ($ * l + g) * 4, re = s[S], dt = s[S + 1], ct = s[S + 2];
@@ -1385,42 +1361,42 @@ const It = { key: 1 }, Vt = {
1385
1361
  }
1386
1362
  return !1;
1387
1363
  }
1388
- }, ie = (t, e, l, i, s) => {
1364
+ }, ce = (t, e, l, i, s) => {
1389
1365
  setTimeout(() => {
1390
- if (He({ r: t, g: e, b: l })) {
1391
- let d = de();
1366
+ if (ye({ r: t, g: e, b: l })) {
1367
+ let d = me();
1392
1368
  d && (R.value.style.left = `${d.x}px`, R.value.style.top = `${d.y}px`);
1393
1369
  } else {
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);
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);
1396
1372
  }
1397
1373
  }, 0);
1398
- }, xe = () => {
1399
- a.value.forEach((l) => Oe(l)), Ve();
1374
+ }, Le = () => {
1375
+ a.value.forEach((l) => be(l)), Te();
1400
1376
  const t = a.value[0];
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(), X();
1404
- }, Oe = (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) => {
1405
1381
  if (y.value == "gradient") {
1406
1382
  let e = document.createElement("div");
1407
- 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);
1408
1384
  let l = document.createElement("div");
1409
- 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);
1410
1386
  }
1411
- }, ke = (t) => {
1412
- 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;
1413
1389
  e.fillStyle = `rgb(${t[0]},${t[1]},${t[2]})`, e.fillRect(0, 0, l, i);
1414
1390
  let s = e.createLinearGradient(0, 0, l - 12, 0);
1415
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);
1416
1392
  let d = e.createLinearGradient(0, 0, 0, i);
1417
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);
1418
- }, oe = () => {
1394
+ }, K = () => {
1419
1395
  if (r.showAlpha) {
1420
1396
  let t = a.value.find((e) => e.select == !0);
1421
- t && (U.value.style.background = ` linear-gradient(90deg,rgba(255, 255, 255, 0) 0%, rgba(${t.r}, ${t.g}, ${t.b}, 100) 97%)`);
1397
+ t && (D.value.style.background = ` linear-gradient(90deg,rgba(255, 255, 255, 0) 0%, rgba(${t.r}, ${t.g}, ${t.b}, 100) 97%)`);
1422
1398
  }
1423
- }, X = () => {
1399
+ }, F = () => {
1424
1400
  var t;
1425
1401
  if (y.value == "gradient") {
1426
1402
  a.value.sort((s, d) => s.percent - d.percent);
@@ -1438,7 +1414,7 @@ const It = { key: 1 }, Vt = {
1438
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}%, `);
1439
1415
  }
1440
1416
  }
1441
- te.value.style.backgroundImage = e;
1417
+ le.value.style.backgroundImage = e;
1442
1418
  let i = (t = u.value) == null ? void 0 : t.querySelector("#ck-cp-target-background");
1443
1419
  i && (i.style.backgroundImage = l, N.value && p(i.style.backgroundImage));
1444
1420
  } else {
@@ -1455,17 +1431,17 @@ const It = { key: 1 }, Vt = {
1455
1431
  d = `rgb(${e},${l},${i})`;
1456
1432
  break;
1457
1433
  case "HEX":
1458
- d = lt(e, l, i);
1434
+ d = tt(e, l, i);
1459
1435
  break;
1460
1436
  }
1461
1437
  p(d);
1462
1438
  }
1463
- }, Ve = () => {
1439
+ }, Te = () => {
1464
1440
  a.value.forEach((t) => {
1465
- t.hue = Ae(t.r, t.g, t.b);
1441
+ t.hue = Qe(t.r, t.g, t.b);
1466
1442
  });
1467
- }, Le = (t) => {
1468
- L.value = t, X();
1443
+ }, Fe = (t) => {
1444
+ L.value = t, F();
1469
1445
  }, Ge = () => {
1470
1446
  var t, e;
1471
1447
  if (a.value.length > 2) {
@@ -1476,7 +1452,7 @@ const It = { key: 1 }, Vt = {
1476
1452
  const s = (t = u.value) == null ? void 0 : t.querySelector(`#clr-gb-${i}`);
1477
1453
  s == null || s.remove();
1478
1454
  const d = a.value[0];
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(), 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());
1480
1456
  }
1481
1457
  }
1482
1458
  }, Ye = () => {
@@ -1485,56 +1461,56 @@ const It = { key: 1 }, Vt = {
1485
1461
  t == null || t.classList.add("active"), new EyeDropper().open().then((i) => {
1486
1462
  const { sRGBHex: s } = i, d = a.value.find((I) => I.select == !0), k = je(s);
1487
1463
  if (k) {
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();
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();
1491
1467
  $ && (R.value.style.left = `${$.x}px`, R.value.style.top = `${$.y}px`);
1492
1468
  } else {
1493
- ae.value = I;
1494
- const { rgb: $ } = at(I, 100, 50);
1495
- ke($);
1496
- const g = de();
1469
+ ne.value = I;
1470
+ const { rgb: $ } = lt(I, 100, 50);
1471
+ Me($);
1472
+ const g = me();
1497
1473
  g && (R.value.style.left = `${g.x}px`, R.value.style.top = `${g.y}px`);
1498
1474
  }
1499
- b(), oe(), X(), t == null || t.classList.remove("active");
1475
+ G(), K(), F(), t == null || t.classList.remove("active");
1500
1476
  }
1501
1477
  }).catch(() => {
1502
1478
  t == null || t.classList.remove("active");
1503
1479
  });
1504
- }, We = (t) => {
1480
+ }, c = (t) => {
1505
1481
  const { value: e, type: l } = t;
1506
1482
  if (l != "a") {
1507
1483
  const i = a.value.find((s) => s.select == !0);
1508
1484
  if (i) {
1509
1485
  i.r = parseInt(e.r), i.g = parseInt(e.g), i.b = parseInt(e.b);
1510
- const s = Ae(i.r, i.g, i.b);
1511
- 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();
1512
1488
  }
1513
1489
  } else
1514
- ne.value = e, X(), oe();
1515
- }, c = (t) => {
1516
- 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;
1517
1493
  const e = a.value.find((l) => l.select == !0);
1518
- if (e && !Number.isNaN(q.h) && !Number.isNaN(q.s) && !Number.isNaN(q.l)) {
1519
- const { r: l, g: i, b: s } = nt(q.h, q.s / 100, q.l / 100);
1520
- 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();
1521
1497
  }
1522
- }, o = () => {
1523
- if (W.value) {
1524
- const t = je(W.value);
1498
+ }, x = () => {
1499
+ if (j.value) {
1500
+ const t = je(j.value);
1525
1501
  if (t) {
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), X(), oe(), se(M.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));
1528
1504
  }
1529
1505
  }
1530
- }, b = () => {
1506
+ }, G = () => {
1531
1507
  const t = a.value.find((e) => e.select == !0);
1532
- t && (W.value = lt(t.r, t.g, t.b).toUpperCase()), se(M.value);
1533
- }, J = (t) => {
1508
+ t && (j.value = tt(t.r, t.g, t.b).toUpperCase()), pe(U.value);
1509
+ }, se = (t) => {
1534
1510
  f("last-used-pick", t);
1535
1511
  };
1536
- window.EyeDropper && (O.value = !0);
1537
- const ce = (t = "") => {
1512
+ window.EyeDropper && (M.value = !0);
1513
+ const xe = (t = "") => {
1538
1514
  if (y.value == "gradient") {
1539
1515
  let e = t.includes("linear") ? "linear" : "radial", l = [];
1540
1516
  if (L.value = e, e == "linear") {
@@ -1593,7 +1569,7 @@ const It = { key: 1 }, Vt = {
1593
1569
  }
1594
1570
  }
1595
1571
  }
1596
- 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);
1597
1573
  } else if (t) {
1598
1574
  let e = {
1599
1575
  r: 0,
@@ -1615,48 +1591,48 @@ const It = { key: 1 }, Vt = {
1615
1591
  let l = St(t);
1616
1592
  l ? (e.a = 1, e.r = l.r, e.g = l.g, e.b = l.b) : e = null;
1617
1593
  }
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);
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);
1619
1595
  }
1620
- }, se = (t) => {
1596
+ }, pe = (t) => {
1621
1597
  const e = a.value.find((l) => l.select == !0);
1622
1598
  if (e) {
1623
1599
  switch (t) {
1624
1600
  case "RGB":
1625
1601
  break;
1626
1602
  case "HSL": {
1627
- const { h: l, s: i, l: s } = tt(e.r, e.g, e.b);
1628
- 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);
1629
1605
  break;
1630
1606
  }
1631
1607
  }
1632
- M.value = t;
1608
+ U.value = t;
1633
1609
  }
1634
- }, be = (t) => {
1635
- t && ce(t), xe();
1610
+ }, ke = (t) => {
1611
+ t && xe(t), Le();
1636
1612
  };
1637
- ye(
1613
+ fe(
1638
1614
  () => r.modelValue,
1639
1615
  (t, e) => {
1640
1616
  t !== e && t !== C.value && (a.value.forEach((l) => {
1641
- 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}`);
1642
1618
  i == null || i.remove();
1643
- }), be(t));
1619
+ }), ke(t));
1644
1620
  }
1645
1621
  );
1646
- const Qe = (t) => {
1622
+ const ut = (t) => {
1647
1623
  a.value.forEach((e) => {
1648
- 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}`);
1649
1625
  l == null || l.remove();
1650
1626
  }), t !== "solid" ? (y.value = "gradient", setTimeout(() => {
1651
1627
  var e;
1652
- 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();
1653
1629
  }, 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);
1630
+ ke(r.modelValue);
1655
1631
  }, 200));
1656
1632
  };
1657
- return _e(() => {
1633
+ return Je(() => {
1658
1634
  var t;
1659
- 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")), be(r.modelValue), se(M.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(() => {
1660
1636
  N.value = !0;
1661
1637
  });
1662
1638
  }), (t, e) => (m(), E("div", {
@@ -1673,14 +1649,14 @@ const It = { key: 1 }, Vt = {
1673
1649
  "model-value": n.modelValue,
1674
1650
  iconClasses: n.iconClasses,
1675
1651
  gradientType: L.value,
1676
- onOnChangeMode: Qe
1652
+ onOnChangeMode: ut
1677
1653
  }, null, 8, ["variant", "mode", "model-value", "iconClasses", "gradientType"])
1678
- ])) : D("", !0),
1654
+ ])) : H("", !0),
1679
1655
  y.value == "gradient" && n.variant == "gradient" ? (m(), E("div", ul, [
1680
1656
  T(Kt, {
1681
1657
  gradientType: L.value,
1682
- onOnAddColor: fe,
1683
- onOnMouseDown: Ue,
1658
+ onOnAddColor: qe,
1659
+ onOnMouseDown: Ve,
1684
1660
  onOnDeleteColor: Ge
1685
1661
  }, null, 8, ["gradientType"]),
1686
1662
  T(ll, {
@@ -1690,34 +1666,34 @@ const It = { key: 1 }, Vt = {
1690
1666
  "onUpdate:angle": e[1] || (e[1] = (l) => B.angle = l),
1691
1667
  percentageX: B.percentageX,
1692
1668
  "onUpdate:percentageX": e[2] || (e[2] = (l) => B.percentageX = l),
1693
- inputType: M.value,
1669
+ inputType: U.value,
1694
1670
  mode: y.value,
1695
1671
  gradientType: L.value,
1696
- onOnInput: X
1672
+ onOnInput: F
1697
1673
  }, null, 8, ["percentageY", "angle", "percentageX", "inputType", "mode", "gradientType"])
1698
1674
  ])) : (m(), E("div", dl, [
1699
1675
  n.presetColors ? (m(), E("div", cl, [
1700
1676
  e[10] || (e[10] = h("div", { class: "text-oc-text-400 text-sm my-3 font-medium" }, "Choose color", -1)),
1701
1677
  h("div", pl, [
1702
- (m(!0), E(pe, null, Ze(n.presetColors, (l) => (m(), E("div", {
1678
+ (m(!0), E(ge, null, Ke(n.presetColors, (l) => (m(), E("div", {
1703
1679
  key: `color-${l}`,
1704
1680
  class: "ck-cp-color-item !w-[32px] !h-[32px]",
1705
- style: ee(`background:${l}`),
1706
- onClick: (i) => J(l)
1681
+ style: te(`background:${l}`),
1682
+ onClick: (i) => se(l)
1707
1683
  }, null, 12, gl))), 128))
1708
1684
  ])
1709
- ])) : D("", !0)
1685
+ ])) : H("", !0)
1710
1686
  ])),
1711
- T(al, { onOnMouseDown: Se }),
1687
+ T(al, { onOnMouseDown: Pe }),
1712
1688
  h("div", vl, [
1713
1689
  T(_t, {
1714
- class: Q(O.value ? "max-w-[90%]" : ""),
1715
- modelValue: ae.value,
1716
- "onUpdate:modelValue": e[3] || (e[3] = (l) => ae.value = l),
1690
+ class: Q(M.value ? "max-w-[90%]" : ""),
1691
+ modelValue: ne.value,
1692
+ "onUpdate:modelValue": e[3] || (e[3] = (l) => ne.value = l),
1717
1693
  onOnInput: e[4] || (e[4] = (l) => Ie(!1)),
1718
- onOnChange: qe
1694
+ onOnChange: Xe
1719
1695
  }, null, 8, ["class", "modelValue"]),
1720
- O.value ? (m(), E("button", {
1696
+ M.value ? (m(), E("button", {
1721
1697
  key: 0,
1722
1698
  id: "cp-btn-eyedropper",
1723
1699
  type: "button",
@@ -1734,61 +1710,61 @@ const It = { key: 1 }, Vt = {
1734
1710
  }, [
1735
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" })
1736
1712
  ], -1)
1737
- ]))) : D("", !0)
1713
+ ]))) : H("", !0)
1738
1714
  ]),
1739
- n.showAlpha ? (m(), F(jt, {
1715
+ n.showAlpha ? (m(), q(zt, {
1740
1716
  key: 3,
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))
1744
- }, null, 8, ["modelValue"])) : D("", !0),
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))
1720
+ }, null, 8, ["modelValue"])) : H("", !0),
1745
1721
  ft(h("div", ml, null, 512), [
1746
- [bt, !1]
1722
+ [ht, !1]
1747
1723
  ]),
1748
1724
  h("div", fl, [
1749
1725
  T(Gt, {
1750
- "model-value": M.value,
1751
- "onUpdate:modelValue": se
1726
+ "model-value": U.value,
1727
+ "onUpdate:modelValue": pe
1752
1728
  }, null, 8, ["model-value"]),
1753
- N.value && n.showInputSet ? (m(), E("div", bl, [
1754
- M.value == "HEX" ? (m(), F(Xt, {
1729
+ N.value && n.showInputSet ? (m(), E("div", hl, [
1730
+ U.value == "HEX" ? (m(), q(Xt, {
1755
1731
  key: 0,
1756
- modelValue: W.value,
1732
+ modelValue: j.value,
1757
1733
  "onUpdate:modelValue": [
1758
- e[7] || (e[7] = (l) => W.value = l),
1759
- o
1734
+ e[7] || (e[7] = (l) => j.value = l),
1735
+ x
1760
1736
  ]
1761
- }, null, 8, ["modelValue"])) : D("", !0),
1762
- M.value == "RGB" ? (m(), F(ot, {
1737
+ }, null, 8, ["modelValue"])) : H("", !0),
1738
+ U.value == "RGB" ? (m(), q(nt, {
1763
1739
  key: 1,
1764
1740
  "rgb-value": a.value.find((l) => l.select == !0),
1765
- onUpdateRgbValue: We
1766
- }, null, 8, ["rgb-value"])) : D("", !0),
1767
- M.value == "HSL" ? (m(), F(ot, {
1741
+ onUpdateRgbValue: c
1742
+ }, null, 8, ["rgb-value"])) : H("", !0),
1743
+ U.value == "HSL" ? (m(), q(nt, {
1768
1744
  key: 2,
1769
1745
  "input-type": "HSL",
1770
- "hsl-value": q,
1771
- onUpdateHslValue: c
1772
- }, null, 8, ["hsl-value"])) : D("", !0),
1773
- n.showAlpha ? (m(), F(Ft, {
1746
+ "hsl-value": P,
1747
+ onUpdateHslValue: o
1748
+ }, null, 8, ["hsl-value"])) : H("", !0),
1749
+ n.showAlpha ? (m(), q(Ft, {
1774
1750
  key: 3,
1775
- modelValue: ne.value,
1751
+ modelValue: oe.value,
1776
1752
  "onUpdate:modelValue": [
1777
- e[8] || (e[8] = (l) => ne.value = l),
1778
- e[9] || (e[9] = (l) => Me(l))
1753
+ e[8] || (e[8] = (l) => oe.value = l),
1754
+ e[9] || (e[9] = (l) => He(l))
1779
1755
  ]
1780
- }, null, 8, ["modelValue"])) : D("", !0)
1781
- ])) : D("", !0)
1756
+ }, null, 8, ["modelValue"])) : H("", !0)
1757
+ ])) : H("", !0)
1782
1758
  ]),
1783
1759
  e[12] || (e[12] = h("div", { class: "text-oc-text-400 text-sm my-3 font-medium font-inter" }, "Last used", -1)),
1784
- H.value.length > 0 && n.showColorList ? (m(), E("div", hl, [
1785
- (m(!0), E(pe, null, Ze(j.value, (l) => (m(), E("div", {
1760
+ O.value.length > 0 && n.showColorList ? (m(), E("div", yl, [
1761
+ (m(!0), E(ge, null, Ke(Z.value, (l) => (m(), E("div", {
1786
1762
  key: `color-${l}`,
1787
1763
  class: "ck-cp-color-item !w-[32px] !h-[32px]",
1788
- style: ee(`background:${l}`),
1789
- onClick: (i) => J(l)
1790
- }, null, 12, yl))), 128))
1791
- ])) : D("", !0)
1764
+ style: te(`background:${l}`),
1765
+ onClick: (i) => se(l)
1766
+ }, null, 12, bl))), 128))
1767
+ ])) : H("", !0)
1792
1768
  ], 10, sl));
1793
1769
  }
1794
1770
  }, kl = { class: "flex flex-col pt-10 px-7 gap-y-7 items-center" }, $l = { class: "flex flex-col gap-y-4 text-center items-center" }, wl = {
@@ -1797,7 +1773,7 @@ const It = { key: 1 }, Vt = {
1797
1773
  }, Sl = {
1798
1774
  key: 0,
1799
1775
  class: "text-sm text-oc-text-400"
1800
- }, El = /* @__PURE__ */ ht({
1776
+ }, El = /* @__PURE__ */ yt({
1801
1777
  __name: "OcOnboardingProgressbar",
1802
1778
  props: {
1803
1779
  title: {
@@ -1818,7 +1794,7 @@ const It = { key: 1 }, Vt = {
1818
1794
  }
1819
1795
  },
1820
1796
  setup(n) {
1821
- const V = n, r = he(() => ({
1797
+ const V = n, r = $e(() => ({
1822
1798
  grid: {
1823
1799
  containLabel: !1
1824
1800
  },
@@ -1854,27 +1830,27 @@ const It = { key: 1 }, Vt = {
1854
1830
  "tooltip-value-formatter": () => null
1855
1831
  }, null, 8, ["additional-options"]),
1856
1832
  h("div", $l, [
1857
- n.title ? (m(), E("span", wl, Pe(n.title), 1)) : D("", !0),
1858
- Ke(y.$slots, "description", {}, () => [
1859
- n.description ? (m(), E("span", Sl, Pe(n.description), 1)) : D("", !0)
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)
1860
1836
  ])
1861
1837
  ])
1862
1838
  ]));
1863
1839
  }
1864
- }), Ml = st(
1840
+ }), Ul = it(
1865
1841
  () => import("./OcCodeBlock-uFQyGnLq.js")
1866
- ), Ul = st(
1867
- () => import("./OcLottieAnimation-0mdksHMn.js")
1842
+ ), Dl = it(
1843
+ () => import("./OcLottieAnimation-BjY3rCjS.js")
1868
1844
  );
1869
1845
  export {
1870
1846
  Al as BarChart,
1871
1847
  Pl as BarRaceChart,
1872
1848
  ql as Card,
1873
- Ml as CodeBlock,
1849
+ Ul as CodeBlock,
1874
1850
  Vt as ColorPicker,
1875
1851
  xl as ColorPickerPopup,
1876
- Ol as LineChart,
1877
- Ul as LottieAnimation,
1852
+ Ml as LineChart,
1853
+ Dl as LottieAnimation,
1878
1854
  El as OnboardingProgressbar,
1879
1855
  Ct as PieChart,
1880
1856
  Rl as TextEditor