@orchidui/core 1.106.0 → 1.108.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (90) hide show
  1. package/dist/DataDisplay/AccountVerificationContent/OcAccountVerificationContent.js +1 -1
  2. package/dist/DataDisplay/CustomerCard/OcCustomerCard.js +1 -1
  3. package/dist/DataDisplay/FloatContent/OcFloatContent.js +1 -1
  4. package/dist/DataDisplay/InfoCard/OcInfoCard.js +1 -1
  5. package/dist/DataDisplay/ListDetail/OcListDetail.js +1 -1
  6. package/dist/DataDisplay/ListItem/OcListItem.js +1 -1
  7. package/dist/DataDisplay/NewTable/OcNewTable.js +1 -1
  8. package/dist/DataDisplay/OnboardingListItem/OcOnboardingListItem.js +1 -1
  9. package/dist/DataDisplay/OnboardingRecap/OcOnboardingRecap.js +1 -1
  10. package/dist/DataDisplay/Overview/OcOverview.js +1 -1
  11. package/dist/DataDisplay/Pagination/OcPagination.js +1 -1
  12. package/dist/DataDisplay/RowItemData/OcRowItemData.js +1 -1
  13. package/dist/DataDisplay/Table/OcTable.js +1 -1
  14. package/dist/DataDisplay/TransferSummary/OcTransferSummary.js +1 -1
  15. package/dist/Disclosure/Accordion/OcAccordion.js +1 -1
  16. package/dist/Disclosure/OnboardingAccordion/OnboardingAccordion.js +1 -1
  17. package/dist/Disclosure/OnboardingProduct/OnboardingProductOption.js +1 -1
  18. package/dist/Disclosure/Steps/OcSteps.js +1 -1
  19. package/dist/Disclosure/Tabs/Tabs.js +1 -1
  20. package/dist/Disclosure/Variants/OcVariants.js +1 -1
  21. package/dist/Elements/AdditionalContent/OcAdditionalContent.js +1 -1
  22. package/dist/Elements/AuthenticationOption/AuthenticationOption.js +1 -1
  23. package/dist/Elements/Box/OcBox.js +1 -1
  24. package/dist/Elements/Checklist/OcChecklist.js +1 -1
  25. package/dist/Elements/EmptyPage/OcEmptyPage.js +1 -1
  26. package/dist/Elements/FeatureOverviewCard/OcFeatureOverviewCard.js +1 -1
  27. package/dist/Elements/Header/OcHeader.js +1 -1
  28. package/dist/Elements/PageTitle/OcPageTitle.js +1 -1
  29. package/dist/Elements/SandboxBanner/OcSandboxBanner.js +1 -1
  30. package/dist/Elements/Sidebar/OcSidebar.js +2 -2
  31. package/dist/Elements/SubSidebar/OcSubSidebar.js +1 -1
  32. package/dist/Elements/TopBanner/OcTopBanner.js +1 -1
  33. package/dist/Elements/VerificationOption/OcVerificationOption.js +1 -1
  34. package/dist/Feedback/Banner/OcBanner.js +1 -1
  35. package/dist/Feedback/Chip/OcChip.js +1 -1
  36. package/dist/Feedback/ShareIcon/OcShareIcon.js +1 -1
  37. package/dist/Feedback/Snackbar/OcSnackbar.js +1 -1
  38. package/dist/Form/BaseInput/OcBaseInput.js +1 -1
  39. package/dist/Form/Button/OcButton.js +1 -1
  40. package/dist/Form/Calendar/OcCalendar.js +1 -1
  41. package/dist/Form/CardInput/OcCardInput.js +1 -1
  42. package/dist/Form/Checkbox/OcCheckbox.js +1 -1
  43. package/dist/Form/CheckboxesGroup/OcCheckboxesGroup.js +1 -1
  44. package/dist/Form/Criteria/OcCriteria.js +1 -1
  45. package/dist/Form/Cropper/OcCropper.js +1 -1
  46. package/dist/Form/DatePicker/OcDatePicker.js +1 -1
  47. package/dist/Form/EmojiPicker/OcEmojiPicker.js +1 -1
  48. package/dist/Form/Input/OcInput.js +1 -1
  49. package/dist/Form/LinkInput/OcLinkInput.js +1 -1
  50. package/dist/Form/MultipleUploadFile/OcMultipleUploadFile.js +1 -1
  51. package/dist/Form/NumberInput/OcNumberInput.js +1 -1
  52. package/dist/Form/PhoneInput/OcPhoneInput.js +1 -1
  53. package/dist/Form/Radio/OcRadio.js +1 -1
  54. package/dist/Form/RadioGroup/OcRadioGroup.js +1 -1
  55. package/dist/Form/RangeInput/OcRangeInput.js +1 -1
  56. package/dist/Form/SectionItem/OcSectionItem.js +1 -1
  57. package/dist/Form/Select/OcSelect.js +1 -1
  58. package/dist/Form/SelectOptions/OcSelectOptions.js +1 -1
  59. package/dist/Form/SingleFileUpload/OcSingleFileUpload.js +1 -1
  60. package/dist/Form/Slider/OcSlider.js +1 -1
  61. package/dist/Form/TextArea/OcTextArea.js +1 -1
  62. package/dist/Form/index.js +1 -1
  63. package/dist/FormBuilder/OcFormBuilder.js +1 -1
  64. package/dist/{OcAccountSetupProgress-CXN7G1Eq.js → OcAccountSetupProgress-BfKmU-Yy.js} +1 -1
  65. package/dist/{OcComplexCalendar-B5KRBSQ9.js → OcComplexCalendar-Dwuy93cS.js} +1 -1
  66. package/dist/{OcComplexDatePicker-Bb6XZTHB.js → OcComplexDatePicker-DxdZyFfh.js} +1 -1
  67. package/dist/{OcCropper-CATIqyR2.js → OcCropper-Ca4KmgXY.js} +1 -1
  68. package/dist/{OcDataTable-Cite9CuX.js → OcDataTable-WmpWC3UU.js} +70 -69
  69. package/dist/{OcDraggableList-aTmm_x_I.js → OcDraggableList-Ntms3c31.js} +1 -1
  70. package/dist/{OcEmojiPicker-Ca6a1YJn.js → OcEmojiPicker-DMaVk0r1.js} +1 -1
  71. package/dist/{OcFilterForm-CQGMIekW.js → OcFilterForm-DyK-Plm8.js} +1 -1
  72. package/dist/{OcFilterSearch-DApP5rK_.js → OcFilterSearch-BzSlVySJ.js} +1 -1
  73. package/dist/{OcFilterSearchFor-BaB-2dGW.js → OcFilterSearchFor-C1dFFz-L.js} +1 -1
  74. package/dist/{OcModalCropper-DIOjBgrS.js → OcModalCropper-C1bO1LuM.js} +2 -2
  75. package/dist/{OcSort-D2U58bLe.js → OcSort-DmtOny8V.js} +1 -1
  76. package/dist/{OcTimePicker-CXY4jBpH.js → OcTimePicker-7rxptMNi.js} +1 -1
  77. package/dist/Overlay/ConfirmationModal/OcConfirmationModal.js +1 -1
  78. package/dist/Overlay/CopyTooltip/OcCopyTooltip.js +1 -1
  79. package/dist/Overlay/Dropdown/OcDropdown.js +1 -1
  80. package/dist/Overlay/Modal/OcModal.js +1 -1
  81. package/dist/Overlay/SupportMenu/OcSupportMenu.js +1 -1
  82. package/dist/Overlay/Tooltip/OcTooltip.js +1 -1
  83. package/dist/Overlay/Whitelist/OcWhiteList.js +1 -1
  84. package/dist/{SubPlanCard-CuP7G86G.js → SubPlanCard-B24310_W.js} +1 -1
  85. package/dist/{ThumbnailSection-DTe5OFZ3.js → ThumbnailSection-Dx0G7Jpk.js} +1 -1
  86. package/dist/{ThumbnailTheme-DM39OLPY.js → ThumbnailTheme-CoY5W8Sl.js} +1 -1
  87. package/dist/composables/uploadFileProgress.js +39 -37
  88. package/dist/{index-CaYex3gy.js → index-CswSEhQy.js} +8 -8
  89. package/dist/index.js +1 -1
  90. package/package.json +1 -1
@@ -1,8 +1,8 @@
1
- import { ref as C, onMounted as Ce, createBlock as D, openBlock as o, unref as r, withCtx as y, createVNode as N, createElementVNode as q, createElementBlock as $, createCommentVNode as p, mergeProps as we, Fragment as ie, renderList as se, normalizeClass as re, toDisplayString as xe, computed as L, watch as $e, toRaw as Ze, nextTick as He, renderSlot as E, resolveDynamicComponent as _e, createSlots as el, normalizeProps as Se, guardReactiveProps as Oe } from "vue";
2
- import { aG as Pe, B as Ae, C as ll, E as al, Q as tl, a4 as sl, aR as ol, aS as ul, aT as il, aU as rl, K as nl, L as Ve, j as dl } from "./index-CaYex3gy.js";
3
- import { V as Fe } from "./vue-draggable-next.esm-bundler-QQ8zx__3.js";
1
+ import { ref as C, onMounted as Ce, createBlock as D, openBlock as o, unref as r, withCtx as y, createVNode as N, createElementVNode as q, createElementBlock as S, createCommentVNode as p, mergeProps as we, Fragment as re, renderList as se, normalizeClass as ne, toDisplayString as xe, computed as L, watch as $e, toRaw as Ze, nextTick as He, renderSlot as $, resolveDynamicComponent as _e, createSlots as el, normalizeProps as Se, guardReactiveProps as Oe } from "vue";
2
+ import { aG as Pe, B as Ae, C as ll, E as al, Q as tl, a4 as sl, aR as ol, aS as ul, aT as il, aU as rl, K as nl, L as Ve, j as dl } from "./index-CswSEhQy.js";
3
+ import { V as Ee } from "./vue-draggable-next.esm-bundler-QQ8zx__3.js";
4
4
  import { getFromLocalStorage as je, formatHeadersFromLocalStorage as Ke, formatHeadersToLocalStorage as vl, setInLocalStorage as cl } from "./DataTable/utils/editColumnsUtils.js";
5
- import { _ as Ee } from "./OcIcon-CUKFUeB7.js";
5
+ import { _ as Fe } from "./OcIcon-CUKFUeB7.js";
6
6
  import { formatFilterDisplay as ml, clearAllFilters as pl } from "./DataTable/utils/filterUtils.js";
7
7
  import { formatCustomItemsPerPageOptions as fl, getItemsPerPageOptions as yl } from "./DataTable/utils/paginationUtils.js";
8
8
  import "./dayjs.min-7xVZzECu.js";
@@ -40,7 +40,7 @@ const gl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, bl = {
40
40
  "update-order": []
41
41
  },
42
42
  setup(k, { emit: ue }) {
43
- const j = ue, h = k, f = C([]), S = C([]), O = C(!1), g = {
43
+ const j = ue, h = k, f = C([]), O = C([]), V = C(!1), g = {
44
44
  handle: ".drag-el",
45
45
  filter: ".is-disabled",
46
46
  group: "headers",
@@ -49,18 +49,18 @@ const gl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, bl = {
49
49
  move: (l) => l.to.dataset.activeHeaders ? !0 : !!l.draggedContext.futureIndex,
50
50
  "onUpdate:modelValue": () => J()
51
51
  }, J = (l = !1) => {
52
- S.value = S.value.map((d) => ({
52
+ O.value = O.value.map((d) => ({
53
53
  ...d,
54
54
  isActive: !0
55
55
  })), j("update-order", {
56
- fixedHeaders: S.value,
56
+ fixedHeaders: O.value,
57
57
  activeHeaders: f.value,
58
58
  isOnMount: l
59
59
  });
60
60
  };
61
61
  return Ce(() => {
62
62
  const l = je(h.localKey), { fixed: d, active: v } = Ke(l, h.headers, h.localKey);
63
- S.value = d || h.headers.slice(0, 1), f.value = v || h.headers.slice(1).map((b) => {
63
+ O.value = d || h.headers.slice(0, 1), f.value = v || h.headers.slice(1).map((b) => {
64
64
  var t, I, P;
65
65
  return {
66
66
  ...b,
@@ -68,26 +68,26 @@ const gl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, bl = {
68
68
  };
69
69
  }), J(!0);
70
70
  }), (l, d) => (o(), D(r(Pe), {
71
- modelValue: O.value,
72
- "onUpdate:modelValue": d[3] || (d[3] = (v) => O.value = v),
71
+ modelValue: V.value,
72
+ "onUpdate:modelValue": d[3] || (d[3] = (v) => V.value = v),
73
73
  "is-attach-to-body": ""
74
74
  }, {
75
75
  menu: y(() => [
76
76
  q("div", gl, [
77
- S.value.length ? (o(), $("div", bl, [
77
+ O.value.length ? (o(), S("div", bl, [
78
78
  d[4] || (d[4] = q("span", { class: "text-oc-text-400 font-medium" }, "Fixed columns", -1)),
79
- N(r(Fe), we({
79
+ N(r(Ee), we({
80
80
  key: "key",
81
- modelValue: S.value,
82
- "onUpdate:modelValue": d[0] || (d[0] = (v) => S.value = v)
81
+ modelValue: O.value,
82
+ "onUpdate:modelValue": d[0] || (d[0] = (v) => O.value = v)
83
83
  }, g), {
84
84
  default: y(() => [
85
- (o(!0), $(ie, null, se(S.value, (v, b) => (o(), $("div", {
85
+ (o(!0), S(re, null, se(O.value, (v, b) => (o(), S("div", {
86
86
  key: v.key,
87
- class: re(["flex items-center justify-between h-[26px]", b ? "" : "is-disabled"])
87
+ class: ne(["flex items-center justify-between h-[26px]", b ? "" : "is-disabled"])
88
88
  }, [
89
89
  q("span", null, xe(v.label), 1),
90
- b ? (o(), D(r(Ee), {
90
+ b ? (o(), D(r(Fe), {
91
91
  key: 0,
92
92
  width: "18",
93
93
  height: "18",
@@ -101,16 +101,16 @@ const gl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, bl = {
101
101
  ])) : p("", !0),
102
102
  q("div", kl, [
103
103
  d[5] || (d[5] = q("span", { class: "text-oc-text-400 font-medium" }, "Active columns", -1)),
104
- N(r(Fe), we({
104
+ N(r(Ee), we({
105
105
  key: "key",
106
106
  modelValue: f.value,
107
107
  "onUpdate:modelValue": d[2] || (d[2] = (v) => f.value = v)
108
108
  }, g, { "data-active-headers": "true" }), {
109
109
  default: y(() => [
110
- (o(!0), $(ie, null, se(f.value, (v) => (o(), $(ie, {
110
+ (o(!0), S(re, null, se(f.value, (v) => (o(), S(re, {
111
111
  key: v.key
112
112
  }, [
113
- v.key !== "actions" ? (o(), $("div", hl, [
113
+ v.key !== "actions" ? (o(), S("div", hl, [
114
114
  q("div", wl, [
115
115
  N(r(ll), {
116
116
  modelValue: v.isActive,
@@ -122,7 +122,7 @@ const gl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, bl = {
122
122
  }, null, 8, ["modelValue", "onUpdate:modelValue"]),
123
123
  q("div", xl, xe(v.label), 1)
124
124
  ]),
125
- f.value.length > 1 ? (o(), D(r(Ee), {
125
+ f.value.length > 1 ? (o(), D(r(Fe), {
126
126
  key: 0,
127
127
  width: "18",
128
128
  height: "18",
@@ -155,10 +155,10 @@ const gl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, bl = {
155
155
  }, Vl = {
156
156
  key: 0,
157
157
  class: "absolute flex items-center gap-5 left-5"
158
- }, Fl = {
158
+ }, El = {
159
159
  key: 1,
160
160
  class: "absolute flex gap-3 left-5"
161
- }, El = {
161
+ }, Fl = {
162
162
  key: 1,
163
163
  class: "flex justify-center w-full gap-5 md:justify-start"
164
164
  }, Cl = {
@@ -278,7 +278,7 @@ const gl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, bl = {
278
278
  const j = k, h = ue, f = L(() => {
279
279
  var e;
280
280
  return (e = j.options) == null ? void 0 : e.cursor;
281
- }), S = C(), O = L(() => {
281
+ }), O = C(), V = L(() => {
282
282
  var e;
283
283
  return (e = j.options) == null ? void 0 : e.tableOptions;
284
284
  }), g = C({
@@ -298,11 +298,11 @@ const gl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, bl = {
298
298
  const J = L(() => {
299
299
  var a;
300
300
  return {
301
- ...O.value,
302
- headers: S.value ? S.value.map((u) => {
301
+ ...V.value,
302
+ headers: O.value ? O.value.map((u) => {
303
303
  var n, i;
304
- return u.class = ((i = (n = O.value) == null ? void 0 : n.headers.find((c) => c.key === u.key)) == null ? void 0 : i.class) ?? "", u;
305
- }).filter((u) => u.isActive) : (a = O.value) == null ? void 0 : a.headers.filter((u) => Re(u.key))
304
+ return u.class = ((i = (n = V.value) == null ? void 0 : n.headers.find((c) => c.key === u.key)) == null ? void 0 : i.class) ?? "", u;
305
+ }).filter((u) => u.isActive) : (a = V.value) == null ? void 0 : a.headers.filter((u) => Re(u.key))
306
306
  };
307
307
  }), l = L(() => {
308
308
  var e;
@@ -325,7 +325,7 @@ const gl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, bl = {
325
325
  );
326
326
  const I = C(!1), P = C(t.value[(me = (ce = l.value) == null ? void 0 : ce.tabs) == null ? void 0 : me.key]), Q = C(t.value.page), G = C(
327
327
  (fe = (pe = l.value) == null ? void 0 : pe.per_page) != null && fe.key ? t.value[(ge = (ye = l.value) == null ? void 0 : ye.per_page) == null ? void 0 : ge.key] : t.value.per_page
328
- ), ne = ((he = t.value[t.value.selectedSearchOption || ((ke = (be = l.value) == null ? void 0 : be.search) == null ? void 0 : ke.key)]) == null ? void 0 : he.trim()) ?? "", R = C(ne ? ne.split(",") : []), de = C(!1), Ue = L(
328
+ ), de = ((he = t.value[t.value.selectedSearchOption || ((ke = (be = l.value) == null ? void 0 : be.search) == null ? void 0 : ke.key)]) == null ? void 0 : he.trim()) ?? "", R = C(de ? de.split(",") : []), ie = C(!1), Ue = L(
329
329
  () => {
330
330
  var e;
331
331
  return fl((e = j.options) == null ? void 0 : e.perPageOptions);
@@ -339,10 +339,10 @@ const gl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, bl = {
339
339
  R.value = R.value.filter((a) => a !== e), A();
340
340
  }, Ne = L(() => ml(t.value, l.value)), Re = (e) => {
341
341
  var a, u, n, i, c, w;
342
- return ((w = (c = (i = (n = t.value) == null ? void 0 : n[(u = (a = l.value) == null ? void 0 : a.columnEdit) == null ? void 0 : u.key]) == null ? void 0 : i.active) == null ? void 0 : c.find((V) => V.key === e)) == null ? void 0 : w.isActive) ?? !0;
342
+ return ((w = (c = (i = (n = t.value) == null ? void 0 : n[(u = (a = l.value) == null ? void 0 : a.columnEdit) == null ? void 0 : u.key]) == null ? void 0 : i.active) == null ? void 0 : c.find((E) => E.key === e)) == null ? void 0 : w.isActive) ?? !0;
343
343
  }, Be = ({ fixedHeaders: e, activeHeaders: a, isOnMount: u }) => {
344
- var n, i, c, w, V, K, s, U;
345
- if (t.value[(i = (n = l.value) == null ? void 0 : n.columnEdit) == null ? void 0 : i.key] || (t.value[(w = (c = l.value) == null ? void 0 : c.columnEdit) == null ? void 0 : w.key] = {}), t.value[(K = (V = l.value) == null ? void 0 : V.columnEdit) == null ? void 0 : K.key].fixed = e, t.value[(U = (s = l.value) == null ? void 0 : s.columnEdit) == null ? void 0 : U.key].active = a, S.value = [...e, ...a], !u) {
344
+ var n, i, c, w, E, K, s, U;
345
+ if (t.value[(i = (n = l.value) == null ? void 0 : n.columnEdit) == null ? void 0 : i.key] || (t.value[(w = (c = l.value) == null ? void 0 : c.columnEdit) == null ? void 0 : w.key] = {}), t.value[(K = (E = l.value) == null ? void 0 : E.columnEdit) == null ? void 0 : K.key].fixed = e, t.value[(U = (s = l.value) == null ? void 0 : s.columnEdit) == null ? void 0 : U.key].active = a, O.value = [...e, ...a], !u) {
346
346
  const F = vl(e, a);
347
347
  cl(l.value.columnEdit.localStorageKey, F);
348
348
  }
@@ -352,12 +352,12 @@ const gl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, bl = {
352
352
  if ((a = (e = l.value) == null ? void 0 : e.columnEdit) != null && a.localStorageKey) {
353
353
  const w = je(l.value.columnEdit.localStorageKey);
354
354
  if (w) {
355
- const { fixed: V, active: K } = Ke(
355
+ const { fixed: E, active: K } = Ke(
356
356
  w,
357
- O.value.headers,
357
+ V.value.headers,
358
358
  l.value.columnEdit.localStorageKey
359
359
  );
360
- t.value[(n = (u = l.value) == null ? void 0 : u.columnEdit) == null ? void 0 : n.key].fixed = V, t.value[(c = (i = l.value) == null ? void 0 : i.columnEdit) == null ? void 0 : c.key].active = K, S.value = [...V, ...K];
360
+ t.value[(n = (u = l.value) == null ? void 0 : u.columnEdit) == null ? void 0 : n.key].fixed = E, t.value[(c = (i = l.value) == null ? void 0 : i.columnEdit) == null ? void 0 : c.key].active = K, O.value = [...E, ...K];
361
361
  }
362
362
  }
363
363
  }, ze = (e) => {
@@ -375,8 +375,8 @@ const gl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, bl = {
375
375
  }, Je = () => {
376
376
  A(null, Q.value);
377
377
  }, A = (e = null, a = !1, u = "", n = !1, i = !1) => {
378
- var w, V, K, s, U, F, T, M, B, W, X, Y, Z, H, _, ee, le, ae, te;
379
- g.value && !a && (Q.value = 1), g.value ? t.value.page = Q.value : t.value.cursor = u, (w = l.value) != null && w.per_page ? t.value[l.value.per_page.key] = G.value : t.value.per_page = G.value, (V = l.value) != null && V.tabs && i && (t.value[l.value.tabs.key] = P.value), (s = (K = l.value) == null ? void 0 : K.tabs) != null && s.filter_name && (i ? t.value[(F = (U = l.value) == null ? void 0 : U.tabs) == null ? void 0 : F.filter_name] = null : e && (P.value = null)), (T = l.value) != null && T.search && ((B = (M = l.value.search) == null ? void 0 : M.options) != null && B.length ? (Object.keys(t.value).forEach((x) => {
378
+ var w, E, K, s, U, F, T, M, B, W, X, Y, Z, H, _, ee, le, ae, te;
379
+ g.value && !a && (Q.value = 1), g.value ? t.value.page = Q.value : t.value.cursor = u, (w = l.value) != null && w.per_page ? t.value[l.value.per_page.key] = G.value : t.value.per_page = G.value, (E = l.value) != null && E.tabs && i && (t.value[l.value.tabs.key] = P.value), (s = (K = l.value) == null ? void 0 : K.tabs) != null && s.filter_name && (i ? t.value[(F = (U = l.value) == null ? void 0 : U.tabs) == null ? void 0 : F.filter_name] = null : e && (P.value = null)), (T = l.value) != null && T.search && ((B = (M = l.value.search) == null ? void 0 : M.options) != null && B.length ? (Object.keys(t.value).forEach((x) => {
380
380
  var z;
381
381
  (z = l.value.search.options) != null && z.map((m) => m.value).includes(x) && delete t.value[x];
382
382
  }), t.value[((W = t.value) == null ? void 0 : W.selectedSearchOption) || ((Z = (Y = (X = l.value.search) == null ? void 0 : X.options) == null ? void 0 : Y[0]) == null ? void 0 : Z.value) || l.value.search.key] = R.value.join()) : t.value[l.value.search.key] = R.value.join()), e && (I.value = !1, t.value = { ...t.value, ...e }, Object.keys(t.value).forEach((x) => {
@@ -407,8 +407,8 @@ const gl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, bl = {
407
407
  h("on-table-ready");
408
408
  });
409
409
  }), (e, a) => {
410
- var u, n, i, c, w, V, K;
411
- return o(), $("div", Sl, [
410
+ var u, n, i, c, w, E, K;
411
+ return o(), S("div", Sl, [
412
412
  J.value ? (o(), D(_e(k.isNewTable ? r(al) : r(tl)), {
413
413
  key: 0,
414
414
  selected: k.selected,
@@ -420,26 +420,26 @@ const gl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, bl = {
420
420
  "row-link": k.rowLink,
421
421
  "selected-index": k.selectedIndex,
422
422
  "disabled-rows": k.disabledRows,
423
- "is-sticky": O.value.isSticky,
424
- "is-borderless": O.value.isBorderless,
423
+ "is-sticky": V.value.isSticky,
424
+ "is-borderless": V.value.isBorderless,
425
425
  "onUpdate:selected": a[8] || (a[8] = (s) => e.$emit("update:selected", s)),
426
426
  "onClick:row": a[9] || (a[9] = (s) => e.$emit("click:row", s)),
427
427
  "onHover:cell": a[10] || (a[10] = (s) => e.$emit("hover:cell", s))
428
428
  }, el({
429
429
  after: y(() => [
430
- E(e.$slots, "after")
430
+ $(e.$slots, "after")
431
431
  ]),
432
432
  empty: y(() => [
433
- E(e.$slots, "empty")
433
+ $(e.$slots, "empty")
434
434
  ]),
435
435
  "table-header": y((s) => [
436
- E(e.$slots, "table-header", Se(Oe(s)))
436
+ $(e.$slots, "table-header", Se(Oe(s)))
437
437
  ]),
438
438
  "table-body": y((s) => [
439
- E(e.$slots, "table-body", Se(Oe(s)))
439
+ $(e.$slots, "table-body", Se(Oe(s)))
440
440
  ]),
441
441
  "after-rows": y(() => [
442
- E(e.$slots, "after-rows")
442
+ $(e.$slots, "after-rows")
443
443
  ]),
444
444
  _: 2
445
445
  }, [
@@ -448,11 +448,11 @@ const gl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, bl = {
448
448
  fn: y(() => {
449
449
  var s, U, F, T, M;
450
450
  return [
451
- E(e.$slots, "before"),
452
- (s = l.value) != null && s.search || (U = l.value) != null && U.form || (F = l.value) != null && F.tabs || (T = l.value) != null && T.sort ? (o(), $("div", Ol, [
453
- De.value ? (o(), $("div", Vl, [
454
- E(e.$slots, "bulk-actions", { selectedRows: k.selected })
455
- ])) : (o(), $("div", Fl, [
451
+ $(e.$slots, "before"),
452
+ (s = l.value) != null && s.search || (U = l.value) != null && U.form || (F = l.value) != null && F.tabs || (T = l.value) != null && T.sort ? (o(), S("div", Ol, [
453
+ De.value ? (o(), S("div", Vl, [
454
+ $(e.$slots, "bulk-actions", { selectedRows: k.selected })
455
+ ])) : (o(), S("div", El, [
456
456
  (M = l.value) != null && M.tabs ? (o(), D(r(sl), {
457
457
  key: 0,
458
458
  modelValue: P.value,
@@ -465,23 +465,24 @@ const gl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, bl = {
465
465
  variant: "pills"
466
466
  }, null, 8, ["modelValue", "is-disabled", "tabs"])) : p("", !0)
467
467
  ])),
468
- E(e.$slots, "filter-options", {}, () => {
468
+ $(e.$slots, "filter-options", {}, () => {
469
469
  var B, W, X, Y, Z, H, _, ee, le, ae, te, x, z;
470
470
  return [
471
- (B = l.value) != null && B.search || (W = l.value) != null && W.form || (X = l.value) != null && X.sort || (Y = l.value) != null && Y.columnEdit ? (o(), $("div", {
471
+ (B = l.value) != null && B.search || (W = l.value) != null && W.form || (X = l.value) != null && X.sort || (Y = l.value) != null && Y.columnEdit ? (o(), S("div", {
472
472
  key: 0,
473
- class: re([
473
+ class: ne([
474
474
  "flex gap-3 absolute ml-auto items-center bg-oc-bg-light right-4 max-w-[calc(100%-24px)]",
475
- l.value ? de.value ? "md:w-fit w-full" : "" : "w-full justify-end"
475
+ l.value ? ie.value ? "md:w-fit w-full" : "" : "w-full justify-end"
476
476
  ])
477
477
  }, [
478
+ $(e.$slots, "before-filter-options", { isSearchExpanded: ie.value }),
478
479
  (Z = l.value) != null && Z.search ? (o(), D(r(ol), {
479
480
  key: 0,
480
481
  "is-search-only": !l.value.tabs || l.value.isSearchOnly,
481
482
  "search-options": ((H = l.value.search) == null ? void 0 : H.options) ?? [],
482
483
  "selected-option": (((_ = t.value) == null ? void 0 : _.selectedSearchOption) || ((ae = (le = (ee = l.value.search) == null ? void 0 : ee.options) == null ? void 0 : le[0]) == null ? void 0 : ae.value)) ?? "keywords",
483
484
  onAddQuery: Le,
484
- onToggle: a[2] || (a[2] = (m) => de.value = m),
485
+ onToggle: a[2] || (a[2] = (m) => ie.value = m),
485
486
  onChangeSearchKey: ze
486
487
  }, null, 8, ["is-search-only", "search-options", "selected-option"])) : p("", !0),
487
488
  (te = l.value) != null && te.form ? (o(), D(r(Pe), {
@@ -509,7 +510,7 @@ const gl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, bl = {
509
510
  onCancel: a[5] || (a[5] = (m) => I.value = !1)
510
511
  }, {
511
512
  default: y(({ errors: m, values: oe, jsonForm: Xe, updateForm: Ye }) => [
512
- E(e.$slots, "custom-filter-form", {
513
+ $(e.$slots, "custom-filter-form", {
513
514
  errors: m,
514
515
  values: oe,
515
516
  jsonForm: Xe,
@@ -540,7 +541,7 @@ const gl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, bl = {
540
541
  l.value.columnEdit ? (o(), D($l, {
541
542
  key: 3,
542
543
  options: t.value.columnEdit,
543
- headers: ((z = O.value) == null ? void 0 : z.headers) || [],
544
+ headers: ((z = V.value) == null ? void 0 : z.headers) || [],
544
545
  "local-key": l.value.columnEdit.localStorageKey,
545
546
  onUpdateOrder: Be
546
547
  }, null, 8, ["options", "headers", "local-key"])) : p("", !0)
@@ -560,38 +561,38 @@ const gl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, bl = {
560
561
  }),
561
562
  key: "0"
562
563
  } : void 0,
563
- se((w = O.value) == null ? void 0 : w.headers, (s, U) => ({
564
+ se((w = V.value) == null ? void 0 : w.headers, (s, U) => ({
564
565
  name: s.key,
565
566
  fn: y(({ data: F, item: T }) => [
566
- E(e.$slots, s.key, {
567
+ $(e.$slots, s.key, {
567
568
  data: F,
568
569
  item: T
569
570
  })
570
571
  ])
571
572
  })),
572
- se((V = O.value) == null ? void 0 : V.headers, (s, U) => ({
573
+ se((E = V.value) == null ? void 0 : E.headers, (s, U) => ({
573
574
  name: `header-${s.key}-tooltip`,
574
575
  fn: y(({ data: F, item: T }) => [
575
- E(e.$slots, `header-${s.key}-tooltip`, {
576
+ $(e.$slots, `header-${s.key}-tooltip`, {
576
577
  data: F,
577
578
  item: T
578
579
  })
579
580
  ])
580
581
  })),
581
- se((K = O.value) == null ? void 0 : K.headers, (s, U) => ({
582
+ se((K = V.value) == null ? void 0 : K.headers, (s, U) => ({
582
583
  name: `header-${s.key}-left-tooltip`,
583
584
  fn: y(({ data: F, item: T }) => [
584
- E(e.$slots, `header-${s.key}-left-tooltip`, {
585
+ $(e.$slots, `header-${s.key}-left-tooltip`, {
585
586
  data: F,
586
587
  item: T
587
588
  })
588
589
  ])
589
590
  }))
590
591
  ]), 1064, ["selected", "row-key", "options", "is-loading", "loading-rows", "row-class", "row-link", "selected-index", "disabled-rows", "is-sticky", "is-borderless"])) : p("", !0),
591
- E(e.$slots, "before-pagination"),
592
- g.value || f.value ? (o(), $("div", {
592
+ $(e.$slots, "before-pagination"),
593
+ g.value || f.value ? (o(), S("div", {
593
594
  key: 1,
594
- class: re(["flex items-center gap-3", g.value && g.value.last_page === 1 ? "justify-end" : ""])
595
+ class: ne(["flex items-center gap-3", g.value && g.value.last_page === 1 ? "justify-end" : ""])
595
596
  }, [
596
597
  g.value && !v.value ? (o(), D(r(nl), {
597
598
  key: 0,
@@ -605,7 +606,7 @@ const gl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, bl = {
605
606
  strategy: g.value.strategy,
606
607
  "total-visible": "5"
607
608
  }, null, 8, ["modelValue", "max-page", "strategy"])) : p("", !0),
608
- f.value ? (o(), $("div", El, [
609
+ f.value ? (o(), S("div", Fl, [
609
610
  N(r(Ve), {
610
611
  disabled: !f.value.prev,
611
612
  onClick: a[12] || (a[12] = (s) => f.value.prev ? A(null, !1, f.value.prev) : null)
@@ -616,7 +617,7 @@ const gl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, bl = {
616
617
  onClick: a[13] || (a[13] = (s) => f.value.next ? A(null, !1, f.value.next) : null)
617
618
  }, null, 8, ["disabled"])
618
619
  ])) : p("", !0),
619
- d.value ? p("", !0) : (o(), $("div", Cl, [
620
+ d.value ? p("", !0) : (o(), S("div", Cl, [
620
621
  N(r(dl), {
621
622
  modelValue: G.value,
622
623
  "onUpdate:modelValue": [
@@ -1,5 +1,5 @@
1
1
  import { ref as w, createBlock as y, openBlock as c, unref as l, withCtx as r, createElementBlock as b, Fragment as C, renderList as $, normalizeClass as s, createElementVNode as o, createCommentVNode as m, renderSlot as u, toDisplayString as x, createVNode as f } from "vue";
2
- import { aP as D, aL as S, aG as B } from "./index-CaYex3gy.js";
2
+ import { aP as D, aL as S, aG as B } from "./index-CswSEhQy.js";
3
3
  import { _ as g } from "./OcIcon-CUKFUeB7.js";
4
4
  const M = ["onMouseleave", "onMouseover", "onClick"], L = { class: "flex justify-evenly w-full" }, N = { class: "flex w-full" }, U = { class: "ml-4 flex w-full" }, E = { class: "flex items-center flex-wrap w-full" }, O = ["href"], W = { class: "min-w-[120px]" }, j = { class: "truncate w-[200px]" }, z = { class: "flex items-center ml-4" }, A = { class: "flex w-full" }, P = {
5
5
  __name: "OcDraggableList",
@@ -1,5 +1,5 @@
1
1
  import { ref as m, computed as p, createElementBlock as l, openBlock as s, createVNode as f, createBlock as N, createCommentVNode as z, unref as c, withCtx as v, createElementVNode as n, normalizeClass as T, Fragment as V, renderList as k, createTextVNode as C } from "vue";
2
- import { aG as U, d as G, B as b } from "./index-CaYex3gy.js";
2
+ import { aG as U, d as G, B as b } from "./index-CswSEhQy.js";
3
3
  import { EMOJI_LIST as a, EMOJI_CATEGORIES as J } from "./Form/EmojiPicker/conts/emoji.js";
4
4
  import { _ as P } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
5
  const A = { class: "flex items-center justify-center rounded bg-oc-bg-dark h-[140px] relative w-full z-50" }, F = ["innerHTML"], R = { class: "p-4 w-[340px]" }, q = { class: "bg-oc-bg-dark p-4 rounded flex items-center justify-center" }, K = ["innerHTML"], Q = { class: "pt-3 pb-4" }, W = ["id", "innerHTML", "onClick"], X = {
@@ -1,5 +1,5 @@
1
1
  import { ref as r, computed as c, onMounted as B, createElementBlock as k, openBlock as O, renderSlot as $, createElementVNode as f, createVNode as u, unref as i } from "vue";
2
- import { t as C, B as m } from "./index-CaYex3gy.js";
2
+ import { t as C, B as m } from "./index-CswSEhQy.js";
3
3
  const w = { class: "flex w-[326px] flex-col" }, A = { class: "p-5" }, E = { class: "sticky bottom-0 flex gap-x-5 bg-oc-bg-light px-5 pb-5 pt-3" }, N = {
4
4
  __name: "OcFilterForm",
5
5
  props: {
@@ -1,5 +1,5 @@
1
1
  import { ref as u, computed as K, createElementBlock as d, openBlock as s, Fragment as p, createElementVNode as r, createCommentVNode as f, normalizeClass as O, createVNode as m, unref as c, withKeys as N, createSlots as Q, withCtx as h, toDisplayString as D, renderList as E, createBlock as S, nextTick as F } from "vue";
2
- import { d as I, aG as U, aH as j, B as w } from "./index-CaYex3gy.js";
2
+ import { d as I, aG as U, aH as j, B as w } from "./index-CswSEhQy.js";
3
3
  import { _ as q } from "./OcIcon-CUKFUeB7.js";
4
4
  const A = { class: "flex gap-x-4" }, G = { class: "flex gap-x-2 items-center pl-2 text-oc-text-400 font-medium text-sm" }, H = { class: "p-2 flex flex-col" }, P = {
5
5
  __name: "OcFilterSearch",
@@ -1,5 +1,5 @@
1
1
  import { computed as h, createBlock as c, createCommentVNode as k, openBlock as a, unref as o, withCtx as y, createElementVNode as f, createElementBlock as v, createVNode as F, Fragment as p, renderList as b } from "vue";
2
- import { T as $, aB as m } from "./index-CaYex3gy.js";
2
+ import { T as $, aB as m } from "./index-CswSEhQy.js";
3
3
  const w = { class: "flex gap-1 items-center normal-case flex-wrap" }, E = {
4
4
  __name: "OcFilterSearchFor",
5
5
  props: {
@@ -1,6 +1,6 @@
1
1
  import { ref as o, createBlock as v, openBlock as d, unref as r, withCtx as x, createVNode as O } from "vue";
2
- import { aI as b } from "./index-CaYex3gy.js";
3
- import k from "./OcCropper-CATIqyR2.js";
2
+ import { aI as b } from "./index-CswSEhQy.js";
3
+ import k from "./OcCropper-Ca4KmgXY.js";
4
4
  const h = {
5
5
  __name: "OcModalCropper",
6
6
  props: {
@@ -1,5 +1,5 @@
1
1
  import { ref as k, useId as B, computed as i, createBlock as C, openBlock as f, unref as l, withCtx as v, createElementVNode as o, createVNode as s, createElementBlock as O, createCommentVNode as $, normalizeClass as x } from "vue";
2
- import { aG as D, B as N, h as S } from "./index-CaYex3gy.js";
2
+ import { aG as D, B as N, h as S } from "./index-CswSEhQy.js";
3
3
  import { _ as V } from "./OcIcon-CUKFUeB7.js";
4
4
  const A = { class: "relative" }, h = {
5
5
  key: 0,
@@ -1,5 +1,5 @@
1
1
  import { ref as n, watch as g, createBlock as m, openBlock as s, unref as o, withCtx as p, createVNode as v, createCommentVNode as y } from "vue";
2
- import { aG as S, d as h, aQ as D } from "./index-CaYex3gy.js";
2
+ import { aG as S, d as h, aQ as D } from "./index-CswSEhQy.js";
3
3
  import { d as c } from "./dayjs.min-7xVZzECu.js";
4
4
  const w = {
5
5
  __name: "OcTimePicker",
@@ -1,4 +1,4 @@
1
- import { aE as r } from "../../index-CaYex3gy.js";
1
+ import { aE as r } from "../../index-CswSEhQy.js";
2
2
  export {
3
3
  r as ConfirmationModal
4
4
  };
@@ -1,4 +1,4 @@
1
- import { aF as a } from "../../index-CaYex3gy.js";
1
+ import { aF as a } from "../../index-CswSEhQy.js";
2
2
  export {
3
3
  a as CopyTooltip
4
4
  };
@@ -1,4 +1,4 @@
1
- import { aG as r, aH as p } from "../../index-CaYex3gy.js";
1
+ import { aG as r, aH as p } from "../../index-CswSEhQy.js";
2
2
  export {
3
3
  r as Dropdown,
4
4
  p as DropdownItem
@@ -1,4 +1,4 @@
1
- import { aI as d, aJ as e } from "../../index-CaYex3gy.js";
1
+ import { aI as d, aJ as e } from "../../index-CswSEhQy.js";
2
2
  export {
3
3
  d as Modal,
4
4
  e as OcModalPage
@@ -1,4 +1,4 @@
1
- import { aK as r } from "../../index-CaYex3gy.js";
1
+ import { aK as r } from "../../index-CswSEhQy.js";
2
2
  export {
3
3
  r as SupportMenu
4
4
  };
@@ -1,4 +1,4 @@
1
- import { aL as p } from "../../index-CaYex3gy.js";
1
+ import { aL as p } from "../../index-CswSEhQy.js";
2
2
  export {
3
3
  p as Tooltip
4
4
  };
@@ -1,4 +1,4 @@
1
- import { aM as e } from "../../index-CaYex3gy.js";
1
+ import { aM as e } from "../../index-CswSEhQy.js";
2
2
  export {
3
3
  e as WhiteList
4
4
  };
@@ -1,5 +1,5 @@
1
1
  import { computed as l, createElementBlock as o, openBlock as a, normalizeClass as d, createElementVNode as e, createBlock as x, createCommentVNode as u, toDisplayString as r, unref as m, createTextVNode as v, Fragment as T, renderList as k, createVNode as P } from "vue";
2
- import { aB as _, B as w } from "./index-CaYex3gy.js";
2
+ import { aB as _, B as w } from "./index-CswSEhQy.js";
3
3
  import { _ as C } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
4
  import { _ as F } from "./OcIcon-CUKFUeB7.js";
5
5
  const B = { class: "z-10 flex flex-col gap-4 p-9 relative" }, E = { class: "flex items-center gap-4" }, A = { class: "font-medium text-xl" }, N = { class: "flex gap-3 items-center mb-5" }, S = { class: "flex items-start gap-2" }, V = { class: "text-[24px] font-medium tracking-tighter" }, q = { class: "text-[40px] leading-none font-medium" }, z = { key: 0 }, $ = {
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as a, openBlock as d, createElementVNode as t, createVNode as o, unref as i, toDisplayString as r } from "vue";
2
- import { B as n } from "./index-CaYex3gy.js";
2
+ import { B as n } from "./index-CswSEhQy.js";
3
3
  const m = { class: "flex flex-col" }, u = { class: "w-full relative group" }, f = { class: "w-full h-full bg-black/25 absolute top-0 left-0 hidden group-hover:flex rounded-lg" }, v = { class: "w-full px-6 gap-3 m-auto flex" }, b = ["src", "alt"], g = { class: "mt-4 text-md text-center" }, x = {
4
4
  __name: "ThumbnailSection",
5
5
  props: {
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as s, openBlock as i, normalizeClass as f, createElementVNode as l, Fragment as b, createCommentVNode as u, createVNode as m, createBlock as r, unref as a, createTextVNode as c, toDisplayString as g, withCtx as v } from "vue";
2
- import { B as d, aB as h } from "./index-CaYex3gy.js";
2
+ import { B as d, aB as h } from "./index-CswSEhQy.js";
3
3
  import { _ as k } from "./OcIcon-CUKFUeB7.js";
4
4
  const x = { class: "w-full relative group" }, y = {
5
5
  key: 0,
@@ -1,24 +1,26 @@
1
- import { ref as p } from "vue";
2
- const E = (u, n) => {
3
- const d = n.split(","), f = u.name.split(".").pop().toLowerCase();
4
- return d.find((t) => t.includes(f));
5
- }, h = (u, n, d, f = !1) => {
6
- const t = p([]), c = p(!1), v = (l, a = !1) => {
7
- const e = [...l.target.files].filter((o) => {
8
- const s = !t.value.some((i) => i.fileName === o.name);
9
- if (s || n("fileExist"), f) {
10
- const i = E(o, d);
1
+ import { ref as v } from "vue";
2
+ const g = (d, n) => {
3
+ const f = n.split(","), c = d.name.split(".").pop().toLowerCase();
4
+ return f.find((l) => l.includes(c));
5
+ }, z = (d, n, f, c = !1) => {
6
+ const l = v([]), p = v(!1), E = (t, o = !1) => {
7
+ const e = [...t.target.files].filter((a) => {
8
+ const s = !l.value.some((i) => i.fileName === a.name);
9
+ if (s || n("fileExist"), c) {
10
+ const i = g(a, f);
11
11
  return i || n("invalidFileType"), s && i;
12
12
  } else
13
13
  return s;
14
- });
15
- if (l.target && (l.target.value = ""), c.value = e.reduce((o, s) => o + s.size, 0) > u * 1024 * 1024, c.value) {
14
+ }), u = t.target;
15
+ if (u && setTimeout(() => {
16
+ u.value = "";
17
+ }), p.value = e.reduce((a, s) => a + s.size, 0) > d * 1024 * 1024, p.value) {
16
18
  n("onExceedMaxFileSize", e);
17
19
  return;
18
20
  }
19
- for (let o = 0; o < e.length; o++) {
20
- const s = e[o], i = new FileReader();
21
- new FormData().append("file", s), t.value.unshift({
21
+ for (let a = 0; a < e.length; a++) {
22
+ const s = e[a], i = new FileReader();
23
+ new FormData().append("file", s), l.value.unshift({
22
24
  file: s,
23
25
  fileName: s.name,
24
26
  link: s.link,
@@ -27,38 +29,38 @@ const E = (u, n) => {
27
29
  totalSize: 0,
28
30
  isLoaded: !1,
29
31
  extension: s.name.split(".").at(-1) || "png"
30
- }), n("update:modelValue", a ? t.value[0] : t.value), s && (F(i, o), i.readAsDataURL(s));
32
+ }), n("update:modelValue", o ? l.value[0] : l.value), s && (F(i, a), i.readAsDataURL(s));
31
33
  }
32
- }, r = (l, a, e) => {
33
- if (!l.type) return;
34
- const o = () => {
35
- t.value[e].totalSize = l.total;
36
- }, s = () => {
37
- t.value[e].fileUrl = a.result, t.value[e].isLoaded = !0;
34
+ }, r = (t, o, e) => {
35
+ if (!t.type) return;
36
+ const u = () => {
37
+ l.value[e].totalSize = t.total;
38
+ }, a = () => {
39
+ l.value[e].fileUrl = o.result, l.value[e].isLoaded = !0;
38
40
  };
39
41
  ({
40
- loadstart: o,
41
- loadend: s,
42
- load: s,
42
+ loadstart: u,
43
+ loadend: a,
44
+ load: a,
43
45
  progress: () => {
44
- t.value[e].progress = Number(
45
- (l.loaded / t.value[e].totalSize * 100).toFixed(2)
46
+ l.value[e].progress = Number(
47
+ (t.loaded / l.value[e].totalSize * 100).toFixed(2)
46
48
  );
47
49
  }
48
- })[l.type]();
49
- }, F = (l, a) => {
50
- l.addEventListener("loadstart", (e) => r(e, l, a)), l.addEventListener("load", (e) => r(e, l, a)), l.addEventListener("loadend", (e) => r(e, l, a)), l.addEventListener("progress", (e) => r(e, l, a)), l.addEventListener("error", (e) => r(e, l, a)), l.addEventListener("abort", (e) => r(e, l, a));
50
+ })[t.type]();
51
+ }, F = (t, o) => {
52
+ t.addEventListener("loadstart", (e) => r(e, t, o)), t.addEventListener("load", (e) => r(e, t, o)), t.addEventListener("loadend", (e) => r(e, t, o)), t.addEventListener("progress", (e) => r(e, t, o)), t.addEventListener("error", (e) => r(e, t, o)), t.addEventListener("abort", (e) => r(e, t, o));
51
53
  };
52
54
  return {
53
- isErrorMaxSize: c,
54
- currentFiles: t,
55
- onChangeFile: v,
56
- onDeleteFile: (l) => {
57
- let a = t.value.find((e, o) => o === l);
58
- t.value = t.value.filter((e) => e !== a), n("onRemoveFile", a), n("update:modelValue", t.value.length > 0 ? t.value : null);
55
+ isErrorMaxSize: p,
56
+ currentFiles: l,
57
+ onChangeFile: E,
58
+ onDeleteFile: (t) => {
59
+ let o = l.value.find((e, u) => u === t);
60
+ l.value = l.value.filter((e) => e !== o), n("onRemoveFile", o), n("update:modelValue", l.value.length > 0 ? l.value : null);
59
61
  }
60
62
  };
61
63
  };
62
64
  export {
63
- h as useUploadFileProgress
65
+ z as useUploadFileProgress
64
66
  };