@orchidui/core 0.3.0 → 0.5.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.
@@ -1,4 +1,4 @@
1
- import { defineComponent as T, useSlots as L, openBlock as s, createElementBlock as i, createElementVNode as t, normalizeClass as v, toDisplayString as g, renderSlot as p, createTextVNode as B, createBlock as h, unref as c, createCommentVNode as d, ref as C, createVNode as b, withCtx as w, Fragment as S, renderList as k, computed as A, onMounted as j, onBeforeUnmount as _, mergeProps as O, withModifiers as N, normalizeStyle as I, withDirectives as E, vShow as F, resolveDynamicComponent as U, createSlots as W, normalizeProps as Y, guardReactiveProps as H } from "vue";
1
+ import { defineComponent as T, useSlots as L, openBlock as s, createElementBlock as o, createElementVNode as t, normalizeClass as v, toDisplayString as g, renderSlot as p, createTextVNode as B, createBlock as h, unref as c, createCommentVNode as d, ref as C, createVNode as b, withCtx as w, Fragment as S, renderList as k, computed as A, onMounted as j, onBeforeUnmount as _, mergeProps as O, withModifiers as N, normalizeStyle as I, withDirectives as E, vShow as F, resolveDynamicComponent as U, createSlots as W, normalizeProps as Y, guardReactiveProps as H } from "vue";
2
2
  import q from "dayjs";
3
3
  import { D as V, T as G, B as R } from "./OcComplexCalendar.vue_vue_type_style_index_0_lang-CIQPD-6N.js";
4
4
  import { _ as $ } from "./OcIcon-CJgBICxh.js";
@@ -24,7 +24,7 @@ const K = { class: "flex w-full relative gap-x-5 py-4 before:top-[20px] last:bef
24
24
  iconTextClass: String
25
25
  },
26
26
  setup(e) {
27
- return L(), (a, f) => (s(), i("div", K, [
27
+ return L(), (a, f) => (s(), o("div", K, [
28
28
  t("div", null, [
29
29
  t("div", {
30
30
  class: v(["w-6 h-6 flex z-[1] relative items-center rounded-full justify-center", e.isActive ? "bg-oc-accent-1-50 shadow" : " bg-transparent"])
@@ -60,10 +60,10 @@ const K = { class: "flex w-full relative gap-x-5 py-4 before:top-[20px] last:bef
60
60
  ])
61
61
  ]));
62
62
  }
63
- }), te = { class: "px-5 py-4 flex flex-col gap-y-5 rounded border border-gray-200 group hover:shadow-normal" }, se = { class: "flex items-center justify-between" }, ne = { class: "flex text-sm text-oc-text-400 items-center gap-x-2" }, ie = {
63
+ }), te = { class: "px-5 py-4 flex flex-col gap-y-5 rounded border border-gray-200 group hover:shadow-normal" }, se = { class: "flex items-center justify-between" }, ne = { class: "flex text-sm text-oc-text-400 items-center gap-x-2" }, oe = {
64
64
  key: 0,
65
65
  class: "text-base text-oc-text font-medium"
66
- }, oe = { key: 1 }, le = {
66
+ }, ie = { key: 1 }, le = {
67
67
  key: 0,
68
68
  class: "flex flex-col gap-y-3"
69
69
  }, ae = /* @__PURE__ */ T({
@@ -80,13 +80,13 @@ const K = { class: "flex w-full relative gap-x-5 py-4 before:top-[20px] last:bef
80
80
  setup(e) {
81
81
  const a = C(!1);
82
82
  return (f, l) => {
83
- var o;
84
- return s(), i("div", te, [
83
+ var i;
84
+ return s(), o("div", te, [
85
85
  t("div", se, [
86
86
  t("div", ne, [
87
- e.title ? (s(), i("span", ie, g(e.title), 1)) : d("", !0),
87
+ e.title ? (s(), o("span", oe, g(e.title), 1)) : d("", !0),
88
88
  l[3] || (l[3] = B(" - ")),
89
- e.date ? (s(), i("span", oe, g(e.date), 1)) : d("", !0)
89
+ e.date ? (s(), o("span", ie, g(e.date), 1)) : d("", !0)
90
90
  ]),
91
91
  b(c(V), {
92
92
  modelValue: a.value,
@@ -109,9 +109,9 @@ const K = { class: "flex w-full relative gap-x-5 py-4 before:top-[20px] last:bef
109
109
  _: 3
110
110
  }, 8, ["modelValue"])
111
111
  ]),
112
- (o = e.urls) != null && o.length ? (s(), i("div", le, [
113
- (s(!0), i(S, null, k(e.urls, (n, m) => (s(), h(c(vt), {
114
- key: m,
112
+ (i = e.urls) != null && i.length ? (s(), o("div", le, [
113
+ (s(!0), o(S, null, k(e.urls, (n, u) => (s(), h(c(vt), {
114
+ key: u,
115
115
  title: n.title,
116
116
  url: n.url
117
117
  }, null, 8, ["title", "url"]))), 128))
@@ -127,7 +127,7 @@ const K = { class: "flex w-full relative gap-x-5 py-4 before:top-[20px] last:bef
127
127
  imageClass: String
128
128
  },
129
129
  setup(e) {
130
- return (a, f) => (s(), i("div", re, [
130
+ return (a, f) => (s(), o("div", re, [
131
131
  t("img", {
132
132
  src: e.image,
133
133
  class: v([e.imageClass, "object-contain"]),
@@ -167,65 +167,65 @@ const K = { class: "flex w-full relative gap-x-5 py-4 before:top-[20px] last:bef
167
167
  setup(e) {
168
168
  var r;
169
169
  const a = e, f = A(() => {
170
- var u;
171
- return ((u = a.paymentMethods) == null ? void 0 : u.length) > n.value;
170
+ var m;
171
+ return ((m = a.paymentMethods) == null ? void 0 : m.length) > n.value;
172
172
  }), l = A(
173
173
  () => {
174
- var u, x;
175
- return (x = a.paymentMethods) == null ? void 0 : x.slice(n.value, (u = a.paymentMethods) == null ? void 0 : u.length);
174
+ var m, x;
175
+ return (x = a.paymentMethods) == null ? void 0 : x.slice(n.value, (m = a.paymentMethods) == null ? void 0 : m.length);
176
176
  }
177
- ), o = C(), n = C((r = a.paymentMethods) == null ? void 0 : r.length), m = () => {
177
+ ), i = C(), n = C((r = a.paymentMethods) == null ? void 0 : r.length), u = () => {
178
178
  var D;
179
- const u = o.value.clientWidth - 105 - 32 - 4 * ((D = a.paymentMethods) == null ? void 0 : D.length) - 35, x = 35;
180
- n.value = Math.floor(u / x);
179
+ const m = i.value.clientWidth - 105 - 32 - 4 * ((D = a.paymentMethods) == null ? void 0 : D.length) - 35, x = 35;
180
+ n.value = Math.floor(m / x);
181
181
  };
182
182
  return j(() => {
183
- m(), window.addEventListener("resize", m);
183
+ u(), window.addEventListener("resize", u);
184
184
  }), _(() => {
185
- window.removeEventListener("resize", m);
186
- }), (u, x) => {
185
+ window.removeEventListener("resize", u);
186
+ }), (m, x) => {
187
187
  var D;
188
- return s(), i("div", {
188
+ return s(), o("div", {
189
189
  ref_key: "cardContainer",
190
- ref: o,
190
+ ref: i,
191
191
  class: "md:px-5 px-3 md:py-4 py-3 flex flex-col gap-y-4 rounded border border-gray-200 group hover:shadow-normal"
192
192
  }, [
193
193
  t("div", me, [
194
194
  t("div", ge, [
195
- p(u.$slots, "logo"),
195
+ p(m.$slots, "logo"),
196
196
  t("div", pe, [
197
197
  t("div", fe, [
198
198
  t("span", xe, g(e.title), 1),
199
- e.chips.length ? (s(), i("div", ve, [
200
- (s(!0), i(S, null, k(e.chips, (y, P) => (s(), h(c(M), O({
199
+ e.chips.length ? (s(), o("div", ve, [
200
+ (s(!0), o(S, null, k(e.chips, (y, P) => (s(), h(c(M), O({
201
201
  key: P,
202
202
  class: "font-medium",
203
203
  ref_for: !0
204
204
  }, y), null, 16))), 128))
205
205
  ])) : d("", !0)
206
206
  ]),
207
- e.description ? (s(), i("div", he, g(e.description), 1)) : d("", !0)
207
+ e.description ? (s(), o("div", he, g(e.description), 1)) : d("", !0)
208
208
  ])
209
209
  ]),
210
- p(u.$slots, "right", {}, () => [
210
+ p(m.$slots, "right", {}, () => [
211
211
  t("div", ye, [
212
212
  b(c($), {
213
213
  name: "pencil",
214
214
  class: "cursor-pointer text-oc-text-400 p-2",
215
- onClick: x[0] || (x[0] = (y) => u.$emit("edit"))
215
+ onClick: x[0] || (x[0] = (y) => m.$emit("edit"))
216
216
  }),
217
217
  x[2] || (x[2] = t("div", { class: "border-r border-gray-200" }, null, -1)),
218
218
  b(c($), {
219
219
  name: "bin",
220
220
  class: "cursor-pointer text-oc-error p-2",
221
- onClick: x[1] || (x[1] = (y) => u.$emit("delete"))
221
+ onClick: x[1] || (x[1] = (y) => m.$emit("delete"))
222
222
  })
223
223
  ])
224
224
  ])
225
225
  ]),
226
- (D = e.paymentMethods) != null && D.length ? (s(), i("div", $e, [
226
+ (D = e.paymentMethods) != null && D.length ? (s(), o("div", $e, [
227
227
  x[3] || (x[3] = t("span", { class: "text-sm font-medium text-oc-text-300 whitespace-nowrap" }, "Payment methods", -1)),
228
- (s(!0), i(S, null, k(e.paymentMethods.slice(0, n.value), (y) => (s(), i("img", {
228
+ (s(!0), o(S, null, k(e.paymentMethods.slice(0, n.value), (y) => (s(), o("img", {
229
229
  key: y.method,
230
230
  width: "35",
231
231
  height: "24",
@@ -244,7 +244,7 @@ const K = { class: "flex w-full relative gap-x-5 py-4 before:top-[20px] last:bef
244
244
  ]),
245
245
  popper: w(() => [
246
246
  t("div", we, [
247
- (s(!0), i(S, null, k(l.value, (y) => (s(), i("img", {
247
+ (s(!0), o(S, null, k(l.value, (y) => (s(), o("img", {
248
248
  key: y.method,
249
249
  width: "35",
250
250
  height: "24",
@@ -294,15 +294,15 @@ const K = { class: "flex w-full relative gap-x-5 py-4 before:top-[20px] last:bef
294
294
  },
295
295
  emits: ["more"],
296
296
  setup(e, { emit: a }) {
297
- const f = a, l = C(!1), o = () => {
297
+ const f = a, l = C(!1), i = () => {
298
298
  l.value = !l.value, f("more");
299
299
  };
300
- return (n, m) => (s(), i("div", {
300
+ return (n, u) => (s(), o("div", {
301
301
  class: v(["px-5 py-4 rounded border border-gray-200 group", {
302
302
  "hover:shadow-normal": !e.isDisabled && !e.isTransparent,
303
303
  "border-none !p-0": e.isTransparent
304
304
  }]),
305
- onMouseleave: m[1] || (m[1] = (r) => l.value = !1)
305
+ onMouseleave: u[1] || (u[1] = (r) => l.value = !1)
306
306
  }, [
307
307
  t("div", Te, [
308
308
  p(n.$slots, "logo"),
@@ -310,11 +310,11 @@ const K = { class: "flex w-full relative gap-x-5 py-4 before:top-[20px] last:bef
310
310
  t("div", De, [
311
311
  t("div", Be, [
312
312
  p(n.$slots, "title", {}, () => [
313
- e.title ? (s(), i("span", Me, g(e.title), 1)) : d("", !0)
313
+ e.title ? (s(), o("span", Me, g(e.title), 1)) : d("", !0)
314
314
  ]),
315
- e.chips.length ? (s(), i("div", Ae, [
316
- (s(!0), i(S, null, k(e.chips, (r, u) => (s(), h(c(M), {
317
- key: u,
315
+ e.chips.length ? (s(), o("div", Ae, [
316
+ (s(!0), o(S, null, k(e.chips, (r, m) => (s(), h(c(M), {
317
+ key: m,
318
318
  label: r.label,
319
319
  variant: r.variant,
320
320
  icon: r.icon,
@@ -328,7 +328,7 @@ const K = { class: "flex w-full relative gap-x-5 py-4 before:top-[20px] last:bef
328
328
  e.isDropdownActionsVisible && !e.isDisabled ? (s(), h(c(V), {
329
329
  key: 0,
330
330
  modelValue: l.value,
331
- "onUpdate:modelValue": m[0] || (m[0] = (r) => l.value = r),
331
+ "onUpdate:modelValue": u[0] || (u[0] = (r) => l.value = r),
332
332
  placement: "bottom-end"
333
333
  }, {
334
334
  menu: w(() => [
@@ -338,7 +338,7 @@ const K = { class: "flex w-full relative gap-x-5 py-4 before:top-[20px] last:bef
338
338
  b(c($), {
339
339
  name: "dots-vertical",
340
340
  class: "opacity-0 p-2 group-hover:opacity-100 cursor-pointer active:bg-oc-gray-100 rounded",
341
- onClick: N(o, ["stop"])
341
+ onClick: N(i, ["stop"])
342
342
  })
343
343
  ]),
344
344
  _: 3
@@ -346,7 +346,7 @@ const K = { class: "flex w-full relative gap-x-5 py-4 before:top-[20px] last:bef
346
346
  ])
347
347
  ]),
348
348
  p(n.$slots, "default", {}, () => [
349
- e.descriptionIcon || e.description || e.details.length ? (s(), i("div", Oe, [
349
+ e.descriptionIcon || e.description || e.details.length ? (s(), o("div", Oe, [
350
350
  t("div", Ve, [
351
351
  e.descriptionIcon ? (s(), h(c($), {
352
352
  key: 0,
@@ -357,12 +357,12 @@ const K = { class: "flex w-full relative gap-x-5 py-4 before:top-[20px] last:bef
357
357
  }, null, 8, ["name"])) : d("", !0),
358
358
  B(" " + g(e.description), 1)
359
359
  ]),
360
- e.details.length ? (s(), i("div", ze, [
361
- (s(!0), i(S, null, k(e.details, (r, u) => (s(), i("div", {
362
- key: u,
360
+ e.details.length ? (s(), o("div", ze, [
361
+ (s(!0), o(S, null, k(e.details, (r, m) => (s(), o("div", {
362
+ key: m,
363
363
  class: "flex items-center gap-2"
364
364
  }, [
365
- r.country ? (s(), i("div", {
365
+ r.country ? (s(), o("div", {
366
366
  key: 0,
367
367
  class: v(["fi w-[15px] h-[15px] shadow", "fi-" + r.country])
368
368
  }, null, 2)) : (s(), h(c($), {
@@ -415,7 +415,7 @@ const K = { class: "flex w-full relative gap-x-5 py-4 before:top-[20px] last:bef
415
415
  medium: "w-[56px]",
416
416
  large: "w-16"
417
417
  };
418
- return (f, l) => (s(), i("div", {
418
+ return (f, l) => (s(), o("div", {
419
419
  class: v(["p-4 flex gap-x-4 rounded items-center border border-gray-200 group", { "hover:shadow-normal": !e.isDisabled }])
420
420
  }, [
421
421
  t("div", {
@@ -430,12 +430,12 @@ const K = { class: "flex w-full relative gap-x-5 py-4 before:top-[20px] last:bef
430
430
  t("div", _e, [
431
431
  t("div", Ne, [
432
432
  t("div", Ie, [
433
- e.title ? (s(), i("span", Ee, g(e.title), 1)) : d("", !0),
434
- e.chips.length ? (s(), i("div", Fe, [
435
- (s(!0), i(S, null, k(e.chips, (o, n) => (s(), h(c(M), {
433
+ e.title ? (s(), o("span", Ee, g(e.title), 1)) : d("", !0),
434
+ e.chips.length ? (s(), o("div", Fe, [
435
+ (s(!0), o(S, null, k(e.chips, (i, n) => (s(), h(c(M), {
436
436
  key: n,
437
- label: o.label,
438
- variant: o.variant,
437
+ label: i.label,
438
+ variant: i.variant,
439
439
  class: "font-medium"
440
440
  }, null, 8, ["label", "variant"]))), 128))
441
441
  ])) : d("", !0)
@@ -461,15 +461,15 @@ const K = { class: "flex w-full relative gap-x-5 py-4 before:top-[20px] last:bef
461
461
  page: Object
462
462
  },
463
463
  setup(e) {
464
- const a = C(!1), f = (o) => {
464
+ const a = C(!1), f = (i) => {
465
465
  let n = document.createElement("DIV");
466
- return n.innerHTML = o, n.textContent || n.innerText || "";
467
- }, l = (o) => o == null ? void 0 : o.replace("generics/medium/", "generics/thumbnail/");
468
- return (o, n) => (s(), i("div", {
466
+ return n.innerHTML = i, n.textContent || n.innerText || "";
467
+ }, l = (i) => i == null ? void 0 : i.replace("generics/medium/", "generics/thumbnail/");
468
+ return (i, n) => (s(), o("div", {
469
469
  class: "w-full p-5 flex",
470
- onMouseleave: n[1] || (n[1] = (m) => a.value = !1)
470
+ onMouseleave: n[1] || (n[1] = (u) => a.value = !1)
471
471
  }, [
472
- e.page.page_cover_url ? (s(), i("div", He, [
472
+ e.page.page_cover_url ? (s(), o("div", He, [
473
473
  t("div", {
474
474
  class: "w-[100px] h-[100px] rounded !bg-cover",
475
475
  style: I(`background:url(${l(e.page.page_cover_url)})`)
@@ -481,11 +481,11 @@ const K = { class: "flex w-full relative gap-x-5 py-4 before:top-[20px] last:bef
481
481
  t("div", Je, [
482
482
  b(c(V), {
483
483
  modelValue: a.value,
484
- "onUpdate:modelValue": n[0] || (n[0] = (m) => a.value = m),
484
+ "onUpdate:modelValue": n[0] || (n[0] = (u) => a.value = u),
485
485
  placement: "bottom-end"
486
486
  }, {
487
487
  menu: w(() => [
488
- p(o.$slots, "menu")
488
+ p(i.$slots, "menu")
489
489
  ]),
490
490
  default: w(() => [
491
491
  t("div", Ke, [
@@ -518,7 +518,7 @@ const K = { class: "flex w-full relative gap-x-5 py-4 before:top-[20px] last:bef
518
518
  ])
519
519
  ], 32));
520
520
  }
521
- }, st = { class: "flex items-center gap-x-4 w-full p-5 pl-0" }, nt = { class: "flex flex-col flex-1 gap-y-3" }, it = { class: "flex items-center justify-between" }, ot = { class: "flex text-sm text-oc-text-400 items-center gap-x-3 overflow-hidden" }, lt = {
521
+ }, st = { class: "flex items-center gap-x-4 w-full p-5 pl-0" }, nt = { class: "flex flex-col flex-1 gap-y-3" }, ot = { class: "flex items-center justify-between" }, it = { class: "flex text-sm text-oc-text-400 items-center gap-x-3 overflow-hidden" }, lt = {
522
522
  key: 0,
523
523
  class: "text-base text-oc-text font-medium truncate"
524
524
  }, at = {
@@ -550,12 +550,12 @@ const K = { class: "flex w-full relative gap-x-5 py-4 before:top-[20px] last:bef
550
550
  },
551
551
  emits: ["edit", "delete"],
552
552
  setup(e, { expose: a, emit: f }) {
553
- const l = e, o = C(!1), n = () => {
554
- l.isNoToggleForced || (o.value = !o.value);
553
+ const l = e, i = C(!1), n = () => {
554
+ l.isNoToggleForced || (i.value = !i.value);
555
555
  };
556
556
  return a({
557
557
  toggleAccordion: n
558
- }), (m, r) => (s(), i("div", {
558
+ }), (u, r) => (s(), o("div", {
559
559
  class: v(["rounded border border-gray-200 group overflow-hidden", {
560
560
  "hover:shadow-normal": !e.isDisabled && !e.isTransparent,
561
561
  "border-none !p-0": e.isTransparent
@@ -563,61 +563,62 @@ const K = { class: "flex w-full relative gap-x-5 py-4 before:top-[20px] last:bef
563
563
  }, [
564
564
  t("div", {
565
565
  class: v(["flex gap-4 items-stretch", {
566
- "border-b": o.value,
566
+ "border-b": i.value,
567
567
  "pl-5": e.isNoToggleForced
568
568
  }])
569
569
  }, [
570
- e.isNoToggleForced ? d("", !0) : (s(), i("div", {
570
+ e.isNoToggleForced ? d("", !0) : (s(), o("div", {
571
571
  key: 0,
572
572
  class: "flex items-center p-3 border-r bg-gray-50 cursor-pointer",
573
573
  onClick: n
574
574
  }, [
575
575
  b(c($), {
576
- name: o.value ? "chevron-up" : "chevron-down",
576
+ name: i.value ? "chevron-up" : "chevron-down",
577
577
  width: "20",
578
578
  height: "20",
579
579
  class: "text-oc-text-400"
580
580
  }, null, 8, ["name"])
581
581
  ])),
582
582
  t("div", st, [
583
+ p(u.$slots, "logo"),
583
584
  t("div", nt, [
584
- t("div", it, [
585
- t("div", ot, [
586
- e.title ? (s(), i("span", lt, g(e.title), 1)) : d("", !0),
587
- e.chips.length ? (s(), i("div", at, [
588
- (s(!0), i(S, null, k(e.chips, (u, x) => (s(), h(c(M), {
585
+ t("div", ot, [
586
+ t("div", it, [
587
+ e.title ? (s(), o("span", lt, g(e.title), 1)) : d("", !0),
588
+ e.chips.length ? (s(), o("div", at, [
589
+ (s(!0), o(S, null, k(e.chips, (m, x) => (s(), h(c(M), {
589
590
  key: x,
590
- label: u.label,
591
- variant: u.variant,
592
- icon: u.icon,
593
- "icon-tooltip": u.iconTooltip,
591
+ label: m.label,
592
+ variant: m.variant,
593
+ icon: m.icon,
594
+ "icon-tooltip": m.iconTooltip,
594
595
  class: "font-medium shrink-0"
595
596
  }, null, 8, ["label", "variant", "icon", "icon-tooltip"]))), 128))
596
597
  ])) : d("", !0)
597
598
  ])
598
599
  ]),
599
- p(m.$slots, "default", {}, () => [
600
- e.description ? (s(), i("div", rt, [
600
+ p(u.$slots, "default", {}, () => [
601
+ e.description ? (s(), o("div", rt, [
601
602
  t("div", ct, g(e.description), 1)
602
603
  ])) : d("", !0)
603
604
  ])
604
605
  ]),
605
- p(m.$slots, "right", {
606
- isOpen: o.value,
606
+ p(u.$slots, "right", {
607
+ isOpen: i.value,
607
608
  toggleAccordion: n
608
609
  }, () => [
609
- e.hasActions ? (s(), i("div", dt, [
610
+ e.hasActions ? (s(), o("div", dt, [
610
611
  t("div", ut, [
611
612
  b(c($), {
612
613
  name: "pencil",
613
614
  class: "cursor-pointer text-oc-text-400 p-2",
614
- onClick: r[0] || (r[0] = (u) => m.$emit("edit"))
615
+ onClick: r[0] || (r[0] = (m) => u.$emit("edit"))
615
616
  }),
616
617
  r[2] || (r[2] = t("div", { class: "border-r border-gray-200" }, null, -1)),
617
618
  b(c($), {
618
619
  name: "bin",
619
620
  class: "cursor-pointer text-oc-error p-2",
620
- onClick: r[1] || (r[1] = (u) => m.$emit("delete"))
621
+ onClick: r[1] || (r[1] = (m) => u.$emit("delete"))
621
622
  })
622
623
  ]),
623
624
  e.isDraggable ? (s(), h(c($), {
@@ -632,9 +633,9 @@ const K = { class: "flex w-full relative gap-x-5 py-4 before:top-[20px] last:bef
632
633
  ])
633
634
  ], 2),
634
635
  E(t("div", mt, [
635
- p(m.$slots, "content")
636
+ p(u.$slots, "content")
636
637
  ], 512), [
637
- [F, o.value]
638
+ [F, i.value]
638
639
  ])
639
640
  ], 2));
640
641
  }
@@ -697,17 +698,17 @@ const K = { class: "flex w-full relative gap-x-5 py-4 before:top-[20px] last:bef
697
698
  return z;
698
699
  }
699
700
  });
700
- return (l, o) => (s(), h(U(f.value), O(a, {
701
+ return (l, i) => (s(), h(U(f.value), O(a, {
701
702
  class: { "opacity-50": e.isDisabled },
702
- onMore: o[0] || (o[0] = (n) => l.$emit("more")),
703
- onEdit: o[1] || (o[1] = (n) => l.$emit("edit")),
704
- onDelete: o[2] || (o[2] = (n) => l.$emit("delete")),
705
- onClick: o[3] || (o[3] = (n) => l.$emit("click:item"))
703
+ onMore: i[0] || (i[0] = (n) => l.$emit("more")),
704
+ onEdit: i[1] || (i[1] = (n) => l.$emit("edit")),
705
+ onDelete: i[2] || (i[2] = (n) => l.$emit("delete")),
706
+ onClick: i[3] || (i[3] = (n) => l.$emit("click:item"))
706
707
  }), W({ _: 2 }, [
707
- k(l.$slots, (n, m) => ({
708
- name: m,
708
+ k(l.$slots, (n, u) => ({
709
+ name: u,
709
710
  fn: w((r) => [
710
- p(l.$slots, m, Y(H(r)))
711
+ p(l.$slots, u, Y(H(r)))
711
712
  ])
712
713
  }))
713
714
  ]), 1040, ["class"]));
@@ -723,7 +724,7 @@ const K = { class: "flex w-full relative gap-x-5 py-4 before:top-[20px] last:bef
723
724
  }
724
725
  },
725
726
  setup(e) {
726
- return (a, f) => (s(), i("div", pt, [
727
+ return (a, f) => (s(), o("div", pt, [
727
728
  t("span", ft, g(e.title) + ":", 1),
728
729
  t("span", xt, g(e.url), 1),
729
730
  e.isCopy ? (s(), h(c(J), {
@@ -12,6 +12,7 @@ import { ModalCropper as Q } from "./Cropper.js";
12
12
  import { _ as W } from "./OcDraggable-BjhGJmpM.js";
13
13
  import { _ as X } from "./OcConfirmationModal-BfCrRV9r.js";
14
14
  import "@popperjs/core";
15
+ import "vue-draggable-next";
15
16
  const Y = { class: "relative min-h-[100px]" }, Z = {
16
17
  key: 0,
17
18
  class: "absolute"
@@ -219,7 +220,7 @@ const Y = { class: "relative min-h-[100px]" }, Z = {
219
220
  }, Ie = {
220
221
  key: 2,
221
222
  class: "mt-3 flex items-center justify-center"
222
- }, ze = {
223
+ }, je = {
223
224
  __name: "OcMultipleUploadFile",
224
225
  props: {
225
226
  modelValue: {
@@ -442,5 +443,5 @@ const Y = { class: "relative min-h-[100px]" }, Z = {
442
443
  }
443
444
  };
444
445
  export {
445
- ze as _
446
+ je as _
446
447
  };