@orchidui/core 1.6.1-28 → 1.6.1-29

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 (81) hide show
  1. package/dist/DataDisplay/CustomerCard/OcCustomerCard.js +1 -1
  2. package/dist/DataDisplay/FloatContent/OcFloatContent.js +1 -1
  3. package/dist/DataDisplay/InfoCard/OcInfoCard.js +1 -1
  4. package/dist/DataDisplay/ListDetail/OcListDetail.js +1 -1
  5. package/dist/DataDisplay/ListItem/OcListItem.js +1 -1
  6. package/dist/DataDisplay/OnboardingListItem/OcOnboardingListItem.js +1 -1
  7. package/dist/DataDisplay/Overview/OcOverview.js +1 -1
  8. package/dist/DataDisplay/Pagination/OcPagination.js +1 -1
  9. package/dist/DataDisplay/Table/OcTable.js +1 -1
  10. package/dist/DataDisplay/TransferSummary/OcTransferSummary.js +1 -1
  11. package/dist/Disclosure/Accordion/OcAccordion.js +1 -1
  12. package/dist/Disclosure/OnboardingAccordion/OnboardingAccordion.js +1 -1
  13. package/dist/Disclosure/Steps/OcSteps.js +1 -1
  14. package/dist/Disclosure/Tabs/Tabs.js +1 -1
  15. package/dist/Disclosure/Variants/OcVariants.js +1 -1
  16. package/dist/Elements/AdditionalContent/OcAdditionalContent.js +1 -1
  17. package/dist/Elements/AuthenticationOption/AuthenticationOption.js +1 -1
  18. package/dist/Elements/Box/OcBox.js +1 -1
  19. package/dist/Elements/EmptyPage/OcEmptyPage.js +1 -1
  20. package/dist/Elements/FeatureOverviewCard/OcFeatureOverviewCard.js +1 -1
  21. package/dist/Elements/Header/OcHeader.js +1 -1
  22. package/dist/Elements/PageTitle/OcPageTitle.js +1 -1
  23. package/dist/Elements/SandboxBanner/OcSandboxBanner.js +1 -1
  24. package/dist/Elements/Sidebar/OcSidebar.js +2 -2
  25. package/dist/Elements/SubSidebar/OcSubSidebar.js +1 -1
  26. package/dist/Elements/VerificationOption/OcVerificationOption.js +1 -1
  27. package/dist/Feedback/Banner/OcBanner.js +1 -1
  28. package/dist/Feedback/Chip/OcChip.js +1 -1
  29. package/dist/Feedback/ShareIcon/OcShareIcon.js +1 -1
  30. package/dist/Feedback/Snackbar/OcSnackbar.js +1 -1
  31. package/dist/Form/BaseInput/OcBaseInput.js +1 -1
  32. package/dist/Form/Button/OcButton.js +1 -1
  33. package/dist/Form/Calendar/OcCalendar.js +1 -1
  34. package/dist/Form/CardInput/OcCardInput.js +1 -1
  35. package/dist/Form/Checkbox/OcCheckbox.js +1 -1
  36. package/dist/Form/CheckboxesGroup/OcCheckboxesGroup.js +1 -1
  37. package/dist/Form/Criteria/OcCriteria.js +1 -1
  38. package/dist/Form/Cropper/OcCropper.js +1 -1
  39. package/dist/Form/DatePicker/OcDatePicker.js +1 -1
  40. package/dist/Form/EmojiPicker/OcEmojiPicker.js +1 -1
  41. package/dist/Form/Input/OcInput.js +1 -1
  42. package/dist/Form/LinkInput/OcLinkInput.js +1 -1
  43. package/dist/Form/MultipleUploadFile/OcMultipleUploadFile.js +1 -1
  44. package/dist/Form/NumberInput/OcNumberInput.js +1 -1
  45. package/dist/Form/PhoneInput/OcPhoneInput.js +1 -1
  46. package/dist/Form/Radio/OcRadio.js +1 -1
  47. package/dist/Form/RadioGroup/OcRadioGroup.js +1 -1
  48. package/dist/Form/RangeInput/OcRangeInput.js +1 -1
  49. package/dist/Form/SectionItem/OcSectionItem.js +1 -1
  50. package/dist/Form/Select/OcSelect.js +1 -1
  51. package/dist/Form/SelectOptions/OcSelectOptions.js +1 -1
  52. package/dist/Form/SingleFileUpload/OcSingleFileUpload.js +1 -1
  53. package/dist/Form/Slider/OcSlider.js +1 -1
  54. package/dist/Form/TextArea/OcTextArea.js +1 -1
  55. package/dist/Form/index.js +1 -1
  56. package/dist/FormBuilder/OcFormBuilder.js +1 -1
  57. package/dist/{OcAccountSetupProgress-D5I7E6ID.js → OcAccountSetupProgress-CjN-GEao.js} +1 -1
  58. package/dist/{OcComplexCalendar--wMxk0Ve.js → OcComplexCalendar-BaKuUCk-.js} +1 -1
  59. package/dist/{OcComplexDatePicker-CY85RtqE.js → OcComplexDatePicker-CzTXyd8f.js} +1 -1
  60. package/dist/{OcCropper-Dw5ATyZV.js → OcCropper-Dogk7ZVH.js} +1 -1
  61. package/dist/{OcDataTable-wMV3v19G.js → OcDataTable-DSv6mb3F.js} +1 -1
  62. package/dist/{OcDraggableList-B-D0GC5V.js → OcDraggableList-LXK8JQqC.js} +1 -1
  63. package/dist/{OcEmojiPicker-CQn6hsXE.js → OcEmojiPicker-DIqNIKuz.js} +1 -1
  64. package/dist/{OcFilterForm-CPb10cSx.js → OcFilterForm-DLcXQID6.js} +1 -1
  65. package/dist/{OcFilterSearch-DDKNu88V.js → OcFilterSearch-CHHFsVn-.js} +1 -1
  66. package/dist/{OcFilterSearchFor-DkDyVxGt.js → OcFilterSearchFor-bDLcVf6h.js} +1 -1
  67. package/dist/{OcModalCropper-DLdsv4-U.js → OcModalCropper-Cd3F552b.js} +2 -2
  68. package/dist/{OcTimePicker-ju8r0Pwk.js → OcTimePicker-DcI4XQG2.js} +1 -1
  69. package/dist/Overlay/ConfirmationModal/OcConfirmationModal.js +1 -1
  70. package/dist/Overlay/CopyTooltip/OcCopyTooltip.js +1 -1
  71. package/dist/Overlay/Dropdown/OcDropdown.js +1 -1
  72. package/dist/Overlay/Modal/OcModal.js +1 -1
  73. package/dist/Overlay/SupportMenu/OcSupportMenu.js +1 -1
  74. package/dist/Overlay/Tooltip/OcTooltip.js +1 -1
  75. package/dist/Overlay/Whitelist/OcWhiteList.js +1 -1
  76. package/dist/{SubPlanCard-CLpOv0cw.js → SubPlanCard-B0si_YTq.js} +1 -1
  77. package/dist/{ThumbnailSection-1yysvbfR.js → ThumbnailSection-DI_O8pPj.js} +1 -1
  78. package/dist/{ThumbnailTheme-B2HFX7j8.js → ThumbnailTheme-hSB0WG8D.js} +1 -1
  79. package/dist/{index-5pJR2_-O.js → index-BQ8oZLDi.js} +521 -517
  80. package/dist/index.js +1 -1
  81. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { computed as N, ref as M, onMounted as $e, openBlock as t, createElementBlock as i, normalizeClass as v, renderSlot as k, createCommentVNode as m, createElementVNode as n, createBlock as x, unref as r, Fragment as P, renderList as R, withCtx as S, createTextVNode as W, toDisplayString as $, createVNode as h, resolveDynamicComponent as at, mergeProps as F, normalizeProps as fe, guardReactiveProps as Ie, withModifiers as ce, defineComponent as Z, normalizeStyle as oe, createSlots as ee, useSlots as ht, onBeforeUnmount as Pt, withDirectives as Oe, vShow as Ee, watch as me, onUpdated as Et, nextTick as He, reactive as Nt, Transition as Ae, useAttrs as zt, withKeys as Fe, Teleport as Rt, onUnmounted as Ft, defineAsyncComponent as re } from "vue";
1
+ import { computed as N, ref as M, onMounted as $e, openBlock as t, createElementBlock as i, normalizeClass as v, renderSlot as k, createCommentVNode as m, createElementVNode as n, createBlock as x, unref as r, Fragment as P, renderList as R, withCtx as S, createTextVNode as W, toDisplayString as $, createVNode as h, resolveDynamicComponent as at, mergeProps as F, normalizeProps as fe, guardReactiveProps as Ie, withModifiers as ce, defineComponent as Z, normalizeStyle as oe, createSlots as ee, useSlots as ht, onBeforeUnmount as Pt, withDirectives as Be, vShow as Ee, watch as me, onUpdated as Et, nextTick as He, reactive as Nt, Transition as Ae, useAttrs as zt, withKeys as Fe, Teleport as Rt, onUnmounted as Ft, defineAsyncComponent as re } from "vue";
2
2
  import { S as Ce } from "./OcSkeleton-CvdpGSQR.js";
3
3
  import { _ as T } from "./OcIcon-CJgBICxh.js";
4
4
  import { clickOutside as nt } from "./directives/clickOutside.js";
@@ -69,8 +69,8 @@ const Kt = {
69
69
  l("update:selected", g);
70
70
  }
71
71
  }), p = (g) => {
72
- y.value.find((V) => f.value(V) === f.value(g)) ? y.value = y.value.filter(
73
- (V) => f.value(V) !== f.value(g)
72
+ y.value.find((C) => f.value(C) === f.value(g)) ? y.value = y.value.filter(
73
+ (C) => f.value(C) !== f.value(g)
74
74
  ) : y.value = [...y.value, g];
75
75
  }, w = () => {
76
76
  const g = y.value.length === c.value.length;
@@ -80,10 +80,10 @@ const Kt = {
80
80
  field: g,
81
81
  header: I
82
82
  });
83
- }, B = M(!0), C = M(!0), b = M(), O = () => {
84
- a.isSticky && (B.value = b.value.scrollLeft === 0, C.value = b.value.scrollLeft + b.value.clientWidth === b.value.scrollWidth);
83
+ }, O = M(!0), V = M(!0), b = M(), B = () => {
84
+ a.isSticky && (O.value = b.value.scrollLeft === 0, V.value = b.value.scrollLeft + b.value.clientWidth === b.value.scrollWidth);
85
85
  };
86
- return $e(() => O()), (g, I) => (t(), i("div", {
86
+ return $e(() => B()), (g, I) => (t(), i("div", {
87
87
  ref_key: "scrollTable",
88
88
  ref: b,
89
89
  class: v(["flex text-oc-text flex-col border-oc-gray-200 isolate z-10", [
@@ -91,7 +91,7 @@ const Kt = {
91
91
  e.isResponsive ? "rounded" : "md:rounded",
92
92
  e.isBorderless ? "" : "border"
93
93
  ]]),
94
- onScroll: O
94
+ onScroll: B
95
95
  }, [
96
96
  g.$slots.before ? (t(), i("div", {
97
97
  key: 0,
@@ -120,31 +120,31 @@ const Kt = {
120
120
  "is-checked": y.value.length === c.value.length && y.value.length > 0,
121
121
  onSelectAll: w
122
122
  }, null, 8, ["is-sticky", "class", "is-partial", "is-checked"])) : m("", !0),
123
- (t(!0), i(P, null, R(u.value, (V) => (t(), x(r(rt), {
124
- key: V.key,
125
- text: V.label,
123
+ (t(!0), i(P, null, R(u.value, (C) => (t(), x(r(rt), {
124
+ key: C.key,
125
+ text: C.label,
126
126
  "is-loading": e.isLoading,
127
- variant: V.headerVariant,
127
+ variant: C.headerVariant,
128
128
  "is-sticky": e.isSticky,
129
129
  class: v([[
130
130
  e.isSticky || e.isResponsive ? "flex md:min-h-auto" : "hidden md:flex",
131
- V.stickyLeft && o.value ? "left-[40px] md:left-[32px]" : "left-0",
132
- V.stickyRight ? "right-0" : "",
133
- typeof V.class == "function" ? V.class() : V.class,
134
- V.stickyLeft || V.stickyRight ? "sticky shrink-0 z-10" : "",
135
- V.stickyLeft && !B.value ? "shadow-right-sticky" : "",
136
- V.stickyRight && !C.value ? "shadow-left-sticky" : ""
131
+ C.stickyLeft && o.value ? "left-[40px] md:left-[32px]" : "left-0",
132
+ C.stickyRight ? "right-0" : "",
133
+ typeof C.class == "function" ? C.class() : C.class,
134
+ C.stickyLeft || C.stickyRight ? "sticky shrink-0 z-10" : "",
135
+ C.stickyLeft && !O.value ? "shadow-right-sticky" : "",
136
+ C.stickyRight && !V.value ? "shadow-left-sticky" : ""
137
137
  ], "md:border-b border-oc-gray-200"])
138
138
  }, {
139
139
  default: S(() => [
140
- k(g.$slots, `header-${V.key}`)
140
+ k(g.$slots, `header-${C.key}`)
141
141
  ]),
142
142
  _: 2
143
143
  }, 1032, ["text", "is-loading", "variant", "is-sticky", "class"]))), 128))
144
144
  ], 2)
145
145
  ]),
146
- e.isLoading ? (t(!0), i(P, { key: 1 }, R(e.loadingRows, (V) => (t(), i("div", {
147
- key: V,
146
+ e.isLoading ? (t(!0), i(P, { key: 1 }, R(e.loadingRows, (C) => (t(), i("div", {
147
+ key: C,
148
148
  class: v(["flex flex-wrap md:flex-nowrap group/row border-oc-gray-200 md:p-0 py-3", {
149
149
  "pl-[40px]": o.value,
150
150
  "border-b": e.isBorderless
@@ -155,16 +155,16 @@ const Kt = {
155
155
  class: "opacity-0 flex justify-center absolute left-0 md:relative w-[5%]"
156
156
  })) : m("", !0),
157
157
  (t(!0), i(P, null, R(u.value, (z, E) => (t(), x(r(Re), {
158
- key: `${E}-${V}`,
158
+ key: `${E}-${C}`,
159
159
  class: v(z.class),
160
160
  "is-loading": "",
161
- "is-last": V === e.loadingRows
161
+ "is-last": C === e.loadingRows
162
162
  }, null, 8, ["class", "is-last"]))), 128))
163
163
  ], 2))), 128)) : (t(), i(P, { key: 2 }, [
164
164
  k(g.$slots, "table-body", {
165
165
  fields: c.value,
166
166
  headers: u.value,
167
- isScrollOnEnd: C.value,
167
+ isScrollOnEnd: V.value,
168
168
  onClickRow: j,
169
169
  isSelectable: o.value,
170
170
  isCursorPointer: d.value,
@@ -173,8 +173,8 @@ const Kt = {
173
173
  rowLink: e.rowLink,
174
174
  calculateRowClass: D.value
175
175
  }, () => [
176
- (t(!0), i(P, null, R(c.value, (V, z) => (t(), i("div", {
177
- key: `${f.value(V)}-${z}`,
176
+ (t(!0), i(P, null, R(c.value, (C, z) => (t(), i("div", {
177
+ key: `${f.value(C)}-${z}`,
178
178
  class: v({
179
179
  "border-b": c.value.length !== z + 1,
180
180
  "w-max": e.isSticky
@@ -187,7 +187,7 @@ const Kt = {
187
187
  "cursor-pointer": d.value
188
188
  },
189
189
  e.isResponsive ? "w-full" : e.isSticky ? "w-max !p-0" : "flex-wrap md:flex-nowrap",
190
- D.value(V, z)
190
+ D.value(C, z)
191
191
  ]])
192
192
  }, [
193
193
  o.value ? (t(), x(r(Re), {
@@ -196,43 +196,43 @@ const Kt = {
196
196
  e.isSticky ? "shrink-0 z-10 left-0 sticky" : "md:relative absolute w-[40px] md:w-[5%]"
197
197
  ]]),
198
198
  "is-last": c.value.length === z + 1,
199
- "is-selected": y.value.some((E) => f.value(E) === f.value(V)),
199
+ "is-selected": y.value.some((E) => f.value(E) === f.value(C)),
200
200
  variant: "checkbox",
201
- onSelected: (E) => p(V),
201
+ onSelected: (E) => p(C),
202
202
  "onHover:field": I[0] || (I[0] = (E) => g.$emit("hover:cell", E))
203
203
  }, null, 8, ["is-last", "is-selected", "class", "onSelected"])) : m("", !0),
204
204
  (t(!0), i(P, null, R(u.value, (E, L) => (t(), x(r(Re), {
205
205
  key: `${L}-${z}`,
206
206
  class: v(["flex border-oc-gray-200", [
207
- typeof E.class == "function" ? E.class(V) : E.class,
207
+ typeof E.class == "function" ? E.class(C) : E.class,
208
208
  E.stickyLeft && o.value ? "left-[40px] md:left-[32px]" : "left-0",
209
209
  E.stickyRight ? "right-0" : "",
210
210
  E.stickyLeft || E.stickyRight ? "shrink-0 sticky z-10" : "",
211
- E.stickyLeft && !B.value ? "shadow-right-sticky" : "",
212
- E.stickyRight && !C.value ? "shadow-left-sticky" : ""
211
+ E.stickyLeft && !O.value ? "shadow-right-sticky" : "",
212
+ E.stickyRight && !V.value ? "shadow-left-sticky" : ""
213
213
  ]]),
214
214
  "is-last": c.value.length === z + 1,
215
215
  variant: E.variant,
216
216
  "is-copy": E.isCopy,
217
217
  "add-description-to-copy-clipboard": E.addDescriptionToCopyClipboard ?? !0,
218
- data: V[`${E.key}`] ?? "",
218
+ data: C[`${E.key}`] ?? "",
219
219
  content: {
220
220
  important: E.important ?? !1,
221
- title: V[`${E.title}`],
222
- description: V[`${E.description}`],
223
- href: V[`${E.href}`]
221
+ title: C[`${E.title}`],
222
+ description: C[`${E.description}`],
223
+ href: C[`${E.href}`]
224
224
  },
225
225
  "chip-options": E.chipOptions,
226
226
  "image-class": E.imageClass,
227
- link: e.rowLink && V[e.rowLink] && E.key !== "actions" ? V[e.rowLink] : "",
228
- onClick: (A) => j(V, E),
227
+ link: e.rowLink && C[e.rowLink] && E.key !== "actions" ? C[e.rowLink] : "",
228
+ onClick: (A) => j(C, E),
229
229
  "onHover:field": I[1] || (I[1] = (A) => g.$emit("hover:cell", A))
230
230
  }, {
231
231
  default: S(() => [
232
232
  g.$slots[E.key] ? k(g.$slots, E.key, {
233
233
  key: 0,
234
- item: V,
235
- data: V[E.key],
234
+ item: C,
235
+ data: C[E.key],
236
236
  index: z
237
237
  }) : m("", !0)
238
238
  ]),
@@ -241,7 +241,7 @@ const Kt = {
241
241
  ], 2),
242
242
  g.$slots.extra ? (t(), i("div", Kt, [
243
243
  k(g.$slots, "extra", {
244
- item: V,
244
+ item: C,
245
245
  index: z
246
246
  })
247
247
  ])) : m("", !0)
@@ -601,9 +601,9 @@ const Kt = {
601
601
  data: (j = e.row) == null ? void 0 : j[w == null ? void 0 : w.key],
602
602
  item: e.row
603
603
  }, () => {
604
- var B, C;
604
+ var O, V;
605
605
  return [
606
- (B = d.value) != null && B[D] ? (t(), x(r(le), {
606
+ (O = d.value) != null && O[D] ? (t(), x(r(le), {
607
607
  key: 0,
608
608
  class: "overflow-hidden w-[-webkit-fill-available]",
609
609
  "arrow-hidden": "",
@@ -623,7 +623,7 @@ const Kt = {
623
623
  }),
624
624
  _: 2
625
625
  }, 1024)) : (t(), i(P, { key: 1 }, [
626
- W($((C = e.row) == null ? void 0 : C[w == null ? void 0 : w.key]), 1)
626
+ W($((V = e.row) == null ? void 0 : V[w == null ? void 0 : w.key]), 1)
627
627
  ], 64))
628
628
  ];
629
629
  })
@@ -676,10 +676,10 @@ const Kt = {
676
676
  value: e.value[w.key],
677
677
  depth: e.depth + 1
678
678
  }, ee({ _: 2 }, [
679
- R(u.$slots, (j, B) => ({
680
- name: B,
681
- fn: S((C) => [
682
- k(u.$slots, B, F({ ref_for: !0 }, C))
679
+ R(u.$slots, (j, O) => ({
680
+ name: O,
681
+ fn: S((V) => [
682
+ k(u.$slots, O, F({ ref_for: !0 }, V))
683
683
  ])
684
684
  }))
685
685
  ]), 1032, ["row", "important", "is-alternative", "is-loading", "headers", "value", "depth"]))), 128))
@@ -1019,7 +1019,7 @@ const Kt = {
1019
1019
  }, $l = {
1020
1020
  key: 0,
1021
1021
  class: "flex flex-col gap-y-3 min-w-[132px]"
1022
- }, kl = { class: "flex flex-col gap-y-px font-medium overflow-hidden" }, Sl = { class: "flex whitespace-nowrap items-start gap-x-3 text-xs text-oc-text-300" }, Cl = { class: "uppercase" }, Vl = { class: "px-3 bg-white text-center w-[175px] rounded py-2 text-oc-text-400 whitespace-break-spaces font-medium" }, Bl = { class: "flex items-center gap-x-2 overflow-hidden" }, Ol = {
1022
+ }, kl = { class: "flex flex-col gap-y-px font-medium overflow-hidden" }, Sl = { class: "flex whitespace-nowrap items-start gap-x-3 text-xs text-oc-text-300" }, Cl = { class: "uppercase" }, Vl = { class: "px-3 bg-white text-center w-[175px] rounded py-2 text-oc-text-400 whitespace-break-spaces font-medium" }, Ol = { class: "flex items-center gap-x-2 overflow-hidden" }, Bl = {
1023
1023
  key: 0,
1024
1024
  class: "flex items-center gap-x-3 overflow-hidden"
1025
1025
  }, Il = { class: "truncate" }, Tl = { class: "flex items-center gap-x-1" }, Dl = { class: "text-oc-text-400 text-sm font-medium cursor-default" }, Al = { class: "px-3 bg-white text-center w-[175px] rounded py-2 text-oc-text-400 whitespace-break-spaces font-medium text-sm" }, Ue = {
@@ -1095,7 +1095,7 @@ const Kt = {
1095
1095
  } : void 0
1096
1096
  ]), 1040)
1097
1097
  ]),
1098
- n("div", Bl, [
1098
+ n("div", Ol, [
1099
1099
  e.isCard ? (t(), x(r(T), {
1100
1100
  key: 0,
1101
1101
  width: "35",
@@ -1107,7 +1107,7 @@ const Kt = {
1107
1107
  k(s.$slots, "content", {}, () => [
1108
1108
  isNaN(e.percentValue) ? (t(), i(P, { key: 1 }, [
1109
1109
  W($(e.content), 1)
1110
- ], 64)) : (t(), i("div", Ol, [
1110
+ ], 64)) : (t(), i("div", Bl, [
1111
1111
  n("div", Il, $(e.content), 1),
1112
1112
  h(r(le), {
1113
1113
  position: "top",
@@ -1182,7 +1182,7 @@ const Kt = {
1182
1182
  setup(e, { emit: s }) {
1183
1183
  const a = s;
1184
1184
  return (l, o) => {
1185
- var d, c, u, f, y, p, w, D, j, B, C, b, O, g, I, V, z, E, L;
1185
+ var d, c, u, f, y, p, w, D, j, O, V, b, B, g, I, C, z, E, L;
1186
1186
  return t(), i("div", {
1187
1187
  class: v(["rounded shrink-0 border border-oc-gray-200 bg-oc-bg-light flex items-center justify-between gap-4 px-4 py-5 customer-card relative group", { [e.variant]: !0, "hover:shadow-normal transition": e.isHover }])
1188
1188
  }, [
@@ -1241,10 +1241,10 @@ const Kt = {
1241
1241
  key: 2,
1242
1242
  label: "Address",
1243
1243
  content: [
1244
- ((C = (B = e.customer) == null ? void 0 : B.address) == null ? void 0 : C.street) || "",
1245
- ((O = (b = e.customer) == null ? void 0 : b.address) == null ? void 0 : O.city) || "",
1244
+ ((V = (O = e.customer) == null ? void 0 : O.address) == null ? void 0 : V.street) || "",
1245
+ ((B = (b = e.customer) == null ? void 0 : b.address) == null ? void 0 : B.city) || "",
1246
1246
  ((I = (g = e.customer) == null ? void 0 : g.address) == null ? void 0 : I.state) || "",
1247
- ((z = (V = e.customer) == null ? void 0 : V.address) == null ? void 0 : z.postal_code) || "",
1247
+ ((z = (C = e.customer) == null ? void 0 : C.address) == null ? void 0 : z.postal_code) || "",
1248
1248
  ((L = (E = e.customer) == null ? void 0 : E.address) == null ? void 0 : L.country) || ""
1249
1249
  ].join(" ").trim() || "-"
1250
1250
  }, null, 8, ["content"]))
@@ -1588,10 +1588,10 @@ const Kt = {
1588
1588
  }, $a = { class: "flex items-center gap-x-4 w-full" }, ka = { class: "flex flex-col flex-1 gap-y-3 overflow-hidden" }, Sa = { class: "flex items-center justify-between" }, Ca = { class: "flex text-sm text-oc-text-400 items-center gap-x-3 overflow-hidden" }, Va = {
1589
1589
  key: 0,
1590
1590
  class: "text-base text-oc-text font-medium truncate"
1591
- }, Ba = {
1591
+ }, Oa = {
1592
1592
  key: 0,
1593
1593
  class: "flex gap-3 shrink-0"
1594
- }, Oa = {
1594
+ }, Ba = {
1595
1595
  key: 0,
1596
1596
  class: "flex flex-col gap-3"
1597
1597
  }, Ia = { class: "text-oc-text-400 flex gap-x-2 items-center text-sm" }, Ta = {
@@ -1638,7 +1638,7 @@ const Kt = {
1638
1638
  k(d.$slots, "title", {}, () => [
1639
1639
  e.title ? (t(), i("span", Va, $(e.title), 1)) : m("", !0)
1640
1640
  ]),
1641
- e.chips.length ? (t(), i("div", Ba, [
1641
+ e.chips.length ? (t(), i("div", Oa, [
1642
1642
  (t(!0), i(P, null, R(e.chips, (u, f) => (t(), x(r(ae), {
1643
1643
  key: f,
1644
1644
  label: u.label,
@@ -1672,7 +1672,7 @@ const Kt = {
1672
1672
  ])
1673
1673
  ]),
1674
1674
  k(d.$slots, "default", {}, () => [
1675
- e.descriptionIcon || e.description || e.details.length ? (t(), i("div", Oa, [
1675
+ e.descriptionIcon || e.description || e.details.length ? (t(), i("div", Ba, [
1676
1676
  n("div", Ia, [
1677
1677
  e.descriptionIcon ? (t(), x(r(T), {
1678
1678
  key: 0,
@@ -1958,7 +1958,7 @@ const Kt = {
1958
1958
  ])
1959
1959
  ])
1960
1960
  ], 2),
1961
- Oe(n("div", un, [
1961
+ Be(n("div", un, [
1962
1962
  k(c.$slots, "content")
1963
1963
  ], 512), [
1964
1964
  [Ee, o.value]
@@ -2196,7 +2196,7 @@ const Kt = {
2196
2196
  }, wn = { key: 0 }, $n = { class: "flex border-oc-gray-200 gap-x-9 justify-between p-5 items-start border-b sticky bg-oc-bg-light top-0" }, kn = { class: "flex flex-col gap-y-1 max-w-[300px]" }, Sn = { class: "text-lg font-medium truncate" }, Cn = { class: "flex gap-3 items-center" }, Vn = {
2197
2197
  key: 0,
2198
2198
  class: "text-sm text-oc-text-300 truncate"
2199
- }, Bn = { class: "flex items-center gap-3" }, On = { class: "p-[6px] rounded cursor-pointer text-oc-gray-500 hover:bg-gray-100 hover:text-oc-text" }, In = { class: "p-2 border-b border-gray-200" }, Tn = {
2199
+ }, On = { class: "flex items-center gap-3" }, Bn = { class: "p-[6px] rounded cursor-pointer text-oc-gray-500 hover:bg-gray-100 hover:text-oc-text" }, In = { class: "p-2 border-b border-gray-200" }, Tn = {
2200
2200
  key: 0,
2201
2201
  class: "p-2"
2202
2202
  }, Vm = {
@@ -2265,7 +2265,7 @@ const Kt = {
2265
2265
  ])
2266
2266
  ])
2267
2267
  ]),
2268
- n("div", Bn, [
2268
+ n("div", On, [
2269
2269
  e.dropdownOptions ? (t(), x(r(ie), F({
2270
2270
  key: 0,
2271
2271
  modelValue: a.value,
@@ -2289,7 +2289,7 @@ const Kt = {
2289
2289
  ])) : m("", !0)
2290
2290
  ]),
2291
2291
  default: S(() => [
2292
- n("div", On, [
2292
+ n("div", Bn, [
2293
2293
  h(r(T), {
2294
2294
  name: "dots-vertical",
2295
2295
  width: "20",
@@ -2326,7 +2326,7 @@ const Kt = {
2326
2326
  }, Ln = {
2327
2327
  key: 2,
2328
2328
  class: "w-[24px] h-[24px] min-w-[24px] text-oc-text-300 text-sm font-medium flex items-center justify-center border rounded-full border-oc-gray-200"
2329
- }, Pn = { class: "flex flex-col gap-y-1" }, En = { class: "font-medium" }, Nn = { class: "text-oc-text-300 text-sm" }, Bm = /* @__PURE__ */ Z({
2329
+ }, Pn = { class: "flex flex-col gap-y-1" }, En = { class: "font-medium" }, Nn = { class: "text-oc-text-300 text-sm" }, Om = /* @__PURE__ */ Z({
2330
2330
  __name: "OcOnboardingListItem",
2331
2331
  props: {
2332
2332
  title: {
@@ -2382,7 +2382,7 @@ const Kt = {
2382
2382
  ])
2383
2383
  ]));
2384
2384
  }
2385
- }), Om = {
2385
+ }), Bm = {
2386
2386
  __name: "OcAccordion",
2387
2387
  props: {
2388
2388
  header: {
@@ -2590,25 +2590,25 @@ const Kt = {
2590
2590
  "update:modelValue": []
2591
2591
  },
2592
2592
  setup(e, { emit: s }) {
2593
- const a = e, l = M(0), o = M(0), d = M(), c = s, u = N(() => a.tabs.findIndex((B) => B.value === a.modelValue)), f = N(() => a.variant === "pills"), y = N(() => a.direction === "vertical"), p = () => {
2593
+ const a = e, l = M(0), o = M(0), d = M(), c = s, u = N(() => a.tabs.findIndex((O) => O.value === a.modelValue)), f = N(() => a.variant === "pills"), y = N(() => a.direction === "vertical"), p = () => {
2594
2594
  y.value ? o.value = Math.round(d.value.clientHeight / vt) : o.value = Math.round(d.value.clientWidth / ft);
2595
- }, w = (B) => {
2596
- var O;
2597
- const C = B === "left" ? --u.value : ++u.value, b = (O = a.tabs[C]) == null ? void 0 : O.value;
2595
+ }, w = (O) => {
2596
+ var B;
2597
+ const V = O === "left" ? --u.value : ++u.value, b = (B = a.tabs[V]) == null ? void 0 : B.value;
2598
2598
  b !== void 0 && c("update:modelValue", b);
2599
2599
  }, D = () => {
2600
- const B = a.tabs.findIndex((C) => C.value === a.modelValue);
2601
- B > -1 && He(() => {
2600
+ const O = a.tabs.findIndex((V) => V.value === a.modelValue);
2601
+ O > -1 && He(() => {
2602
2602
  var b;
2603
- p(), l.value = B;
2604
- const C = {};
2605
- y.value ? C.top = B * vt : C.left = B * ft, (b = d.value) == null || b.scroll({
2606
- ...C,
2603
+ p(), l.value = O;
2604
+ const V = {};
2605
+ y.value ? V.top = O * vt : V.left = O * ft, (b = d.value) == null || b.scroll({
2606
+ ...V,
2607
2607
  behavior: "smooth"
2608
2608
  });
2609
2609
  });
2610
- }, j = (B) => {
2611
- a.isDisabled || c("update:modelValue", B);
2610
+ }, j = (O) => {
2611
+ a.isDisabled || c("update:modelValue", O);
2612
2612
  };
2613
2613
  return $e(() => {
2614
2614
  p(), a.isArrows && D();
@@ -2625,7 +2625,7 @@ const Kt = {
2625
2625
  () => {
2626
2626
  D();
2627
2627
  }
2628
- ), (B, C) => (t(), i("div", {
2628
+ ), (O, V) => (t(), i("div", {
2629
2629
  id: "test",
2630
2630
  ref_key: "tabsContainer",
2631
2631
  ref: d,
@@ -2646,20 +2646,20 @@ const Kt = {
2646
2646
  width: "16",
2647
2647
  height: "16",
2648
2648
  class: "text-oc-text-400 cursor-pointer hover:text-oc-text-500",
2649
- onClick: C[0] || (C[0] = ce((b) => w("left"), ["prevent"]))
2649
+ onClick: V[0] || (V[0] = ce((b) => w("left"), ["prevent"]))
2650
2650
  }, null, 8, ["name"])
2651
2651
  ], 2)) : m("", !0),
2652
2652
  n("div", {
2653
2653
  class: v(["flex items-center", { "flex-col": y.value }])
2654
2654
  }, [
2655
2655
  (t(!0), i(P, null, R(e.tabs, (b) => {
2656
- var O, g;
2656
+ var B, g;
2657
2657
  return t(), i("div", {
2658
2658
  key: b.value,
2659
2659
  class: v(["relative cursor-pointer min-w-[48px] gap-x-3 items-center flex justify-center text-sm", [
2660
2660
  b.class,
2661
2661
  f.value ? "py-2 px-3 rounded" : "px-4 pb-3 border-b-2 -mb-[1px]",
2662
- ((O = e.modelValue) == null ? void 0 : O.toString()) === ((g = b.value) == null ? void 0 : g.toString()) ? f.value ? "bg-oc-gray-200 text-oc-text-500" : "border-oc-primary-500 font-medium text-oc-text-500" : f.value ? "text-oc-text-400" : "border-transparent text-oc-text-400",
2662
+ ((B = e.modelValue) == null ? void 0 : B.toString()) === ((g = b.value) == null ? void 0 : g.toString()) ? f.value ? "bg-oc-gray-200 text-oc-text-500" : "border-oc-primary-500 font-medium text-oc-text-500" : f.value ? "text-oc-text-400" : "border-transparent text-oc-text-400",
2663
2663
  e.isArrows ? "!justify-normal !min-w-[100px]" : "",
2664
2664
  y.value ? "!justify-start w-full py-3 px-5" : "",
2665
2665
  y.value && e.isArrows ? "!min-h-[35px]" : "",
@@ -2667,7 +2667,7 @@ const Kt = {
2667
2667
  ]]),
2668
2668
  onClick: (I) => j(b.value)
2669
2669
  }, [
2670
- k(B.$slots, b.value, {}, () => [
2670
+ k(O.$slots, b.value, {}, () => [
2671
2671
  n("div", {
2672
2672
  class: v({ truncate: e.isArrows })
2673
2673
  }, $(b.label), 3),
@@ -2688,7 +2688,7 @@ const Kt = {
2688
2688
  width: "16",
2689
2689
  height: "16",
2690
2690
  class: "text-oc-text-400 cursor-pointer hover:text-oc-text-500",
2691
- onClick: C[1] || (C[1] = (b) => w("right"))
2691
+ onClick: V[1] || (V[1] = (b) => w("right"))
2692
2692
  }, null, 8, ["name"])
2693
2693
  ], 2)) : m("", !0)
2694
2694
  ], 2));
@@ -3093,7 +3093,7 @@ const Pm = /* @__PURE__ */ he(io, [["render", ro]]), co = { class: "flex items-c
3093
3093
  }, ko = { class: "flex flex-col gap-y-3" }, So = { class: "flex items-center justify-between gap-x-3" }, Co = { class: "text-xl leading-[24px] font-medium" }, Vo = {
3094
3094
  key: 0,
3095
3095
  class: "flex gap-x-6 text-sm text-oc-text-400 py-4 whitespace-nowrap items-center"
3096
- }, Bo = { class: "overflow-hidden text-ellipsis" }, Oo = /* @__PURE__ */ Z({
3096
+ }, Oo = { class: "overflow-hidden text-ellipsis" }, Bo = /* @__PURE__ */ Z({
3097
3097
  __name: "OcMobilePageTitle",
3098
3098
  props: {
3099
3099
  title: { type: String },
@@ -3148,7 +3148,7 @@ const Pm = /* @__PURE__ */ he(io, [["render", ro]]), co = { class: "flex items-c
3148
3148
  }, 16)) : m("", !0)
3149
3149
  ]),
3150
3150
  e.description ? (t(), i("div", Vo, [
3151
- n("span", Bo, $(e.description), 1),
3151
+ n("span", Oo, $(e.description), 1),
3152
3152
  h(r(Me), {
3153
3153
  class: "shrink-0",
3154
3154
  value: e.description
@@ -3236,7 +3236,7 @@ const Pm = /* @__PURE__ */ he(io, [["render", ro]]), co = { class: "flex items-c
3236
3236
  }, null, 8, ["primary-button-props", "secondary-button-props"])
3237
3237
  ])
3238
3238
  ], 2),
3239
- e.isMobileCombineButtons ? (t(), x(Oo, {
3239
+ e.isMobileCombineButtons ? (t(), x(Bo, {
3240
3240
  key: 1,
3241
3241
  "secondary-button-props": e.secondaryButtonProps,
3242
3242
  "primary-button-props": e.primaryButtonProps,
@@ -3298,16 +3298,16 @@ const Pm = /* @__PURE__ */ he(io, [["render", ro]]), co = { class: "flex items-c
3298
3298
  distance: 7
3299
3299
  }, {
3300
3300
  popper: S(() => {
3301
- var B, C;
3301
+ var O, V;
3302
3302
  return [
3303
- n("div", Ao, $((C = (B = e.primaryActions) == null ? void 0 : B.mainLinkAction) == null ? void 0 : C.tooltipContent), 1)
3303
+ n("div", Ao, $((V = (O = e.primaryActions) == null ? void 0 : O.mainLinkAction) == null ? void 0 : V.tooltipContent), 1)
3304
3304
  ];
3305
3305
  }),
3306
3306
  default: S(() => {
3307
- var B, C;
3307
+ var O, V;
3308
3308
  return [
3309
3309
  n("a", {
3310
- href: (C = (B = e.primaryActions) == null ? void 0 : B.mainLinkAction) == null ? void 0 : C.url,
3310
+ href: (V = (O = e.primaryActions) == null ? void 0 : O.mainLinkAction) == null ? void 0 : V.url,
3311
3311
  target: "_blank"
3312
3312
  }, [
3313
3313
  h(r(T), {
@@ -3319,29 +3319,29 @@ const Pm = /* @__PURE__ */ he(io, [["render", ro]]), co = { class: "flex items-c
3319
3319
  }),
3320
3320
  _: 1
3321
3321
  })) : m("", !0),
3322
- (t(!0), i(P, null, R(e.primaryActions.actions, (B, C) => {
3322
+ (t(!0), i(P, null, R(e.primaryActions.actions, (O, V) => {
3323
3323
  var b;
3324
- return t(), i(P, { key: C }, [
3325
- (b = e.primaryActions) != null && b.mainLinkAction || C > 0 ? (t(), i("div", Mo)) : m("", !0),
3324
+ return t(), i(P, { key: V }, [
3325
+ (b = e.primaryActions) != null && b.mainLinkAction || V > 0 ? (t(), i("div", Mo)) : m("", !0),
3326
3326
  h(r(le), {
3327
3327
  position: "top",
3328
3328
  "arrow-hidden": "",
3329
3329
  distance: 7
3330
3330
  }, {
3331
3331
  popper: S(() => [
3332
- n("div", jo, $(B != null && B.isCopyButton ? o.value ? y.value : f.value : B.tooltipContent), 1)
3332
+ n("div", jo, $(O != null && O.isCopyButton ? o.value ? y.value : f.value : O.tooltipContent), 1)
3333
3333
  ]),
3334
3334
  default: S(() => [
3335
- B != null && B.isCopyButton ? (t(), x(r(T), {
3335
+ O != null && O.isCopyButton ? (t(), x(r(T), {
3336
3336
  key: 0,
3337
3337
  class: v(["p-2 cursor-pointer rounded-sm hover:border-oc-accent-1-50-tr active:text-oc-text-400 hover:text-oc-text hover:bg-oc-accent-1-50-tr", o.value ? "!text-oc-success" : ""]),
3338
3338
  name: o.value ? "check" : "copy",
3339
3339
  onClick: u
3340
3340
  }, null, 8, ["name", "class"])) : (t(), x(r(T), {
3341
3341
  key: 1,
3342
- class: v(["p-2 cursor-pointer rounded-sm hover:border-oc-accent-1-50-tr active:text-oc-text-400 hover:text-oc-text hover:bg-oc-accent-1-50-tr", B.class ?? ""]),
3343
- name: B.icon,
3344
- onClick: B.onClick
3342
+ class: v(["p-2 cursor-pointer rounded-sm hover:border-oc-accent-1-50-tr active:text-oc-text-400 hover:text-oc-text hover:bg-oc-accent-1-50-tr", O.class ?? ""]),
3343
+ name: O.icon,
3344
+ onClick: O.onClick
3345
3345
  }, null, 8, ["name", "class", "onClick"]))
3346
3346
  ]),
3347
3347
  _: 2
@@ -3355,16 +3355,16 @@ const Pm = /* @__PURE__ */ he(io, [["render", ro]]), co = { class: "flex items-c
3355
3355
  d.value ? (t(), x(r(ie), {
3356
3356
  key: 2,
3357
3357
  modelValue: c.value,
3358
- "onUpdate:modelValue": D[3] || (D[3] = (B) => c.value = B),
3358
+ "onUpdate:modelValue": D[3] || (D[3] = (O) => c.value = O),
3359
3359
  distance: 6
3360
3360
  }, {
3361
3361
  menu: S(() => {
3362
- var B, C, b;
3362
+ var O, V, b;
3363
3363
  return [
3364
3364
  n("div", Lo, [
3365
3365
  n("div", Po, [
3366
- (t(!0), i(P, null, R((B = e.primaryActions.dropdownOptions) == null ? void 0 : B.top, (O, g) => (t(), i(P, { key: g }, [
3367
- O != null && O.isCopyButton ? (t(), x(r(xe), {
3366
+ (t(!0), i(P, null, R((O = e.primaryActions.dropdownOptions) == null ? void 0 : O.top, (B, g) => (t(), i(P, { key: g }, [
3367
+ B != null && B.isCopyButton ? (t(), x(r(xe), {
3368
3368
  key: 0,
3369
3369
  icon: o.value ? "check" : "copy",
3370
3370
  text: o.value ? y.value : f.value,
@@ -3373,24 +3373,24 @@ const Pm = /* @__PURE__ */ he(io, [["render", ro]]), co = { class: "flex items-c
3373
3373
  }, null, 8, ["icon", "text", "icon-classes"])) : (t(), x(r(xe), F({
3374
3374
  key: 1,
3375
3375
  ref_for: !0
3376
- }, O, {
3376
+ }, B, {
3377
3377
  onClick: D[0] || (D[0] = (I) => c.value = !1)
3378
3378
  }), null, 16))
3379
3379
  ], 64))), 128))
3380
3380
  ]),
3381
- (C = e.primaryActions.dropdownOptions) != null && C.bottom ? (t(), i("div", Eo, [
3382
- (t(!0), i(P, null, R((b = e.primaryActions.dropdownOptions) == null ? void 0 : b.bottom, (O, g) => (t(), i("div", { key: g }, [
3383
- O != null && O.tooltipText ? (t(), x(r(le), {
3381
+ (V = e.primaryActions.dropdownOptions) != null && V.bottom ? (t(), i("div", Eo, [
3382
+ (t(!0), i(P, null, R((b = e.primaryActions.dropdownOptions) == null ? void 0 : b.bottom, (B, g) => (t(), i("div", { key: g }, [
3383
+ B != null && B.tooltipText ? (t(), x(r(le), {
3384
3384
  key: 0,
3385
3385
  position: "bottom",
3386
3386
  distance: 14,
3387
3387
  class: "!w-full"
3388
3388
  }, {
3389
3389
  popper: S(() => [
3390
- n("div", No, $(O == null ? void 0 : O.tooltipText), 1)
3390
+ n("div", No, $(B == null ? void 0 : B.tooltipText), 1)
3391
3391
  ]),
3392
3392
  default: S(() => [
3393
- h(r(xe), F({ ref_for: !0 }, O, {
3393
+ h(r(xe), F({ ref_for: !0 }, B, {
3394
3394
  onClick: D[1] || (D[1] = (I) => c.value = !1)
3395
3395
  }), null, 16)
3396
3396
  ]),
@@ -3398,7 +3398,7 @@ const Pm = /* @__PURE__ */ he(io, [["render", ro]]), co = { class: "flex items-c
3398
3398
  }, 1024)) : (t(), x(r(xe), F({
3399
3399
  key: 1,
3400
3400
  ref_for: !0
3401
- }, O, {
3401
+ }, B, {
3402
3402
  onClick: D[2] || (D[2] = (I) => c.value = !1)
3403
3403
  }), null, 16))
3404
3404
  ]))), 128))
@@ -3547,26 +3547,26 @@ const Pm = /* @__PURE__ */ he(io, [["render", ro]]), co = { class: "flex items-c
3547
3547
  }, {
3548
3548
  default: S(() => [
3549
3549
  (t(!0), i(P, null, R(p.items, (D, j) => {
3550
- var B;
3550
+ var O;
3551
3551
  return t(), x(r(xi), {
3552
3552
  key: j,
3553
3553
  icon: D.icon,
3554
3554
  label: D.label,
3555
3555
  "is-children": !!D.children,
3556
- "is-active": D.active || D.children && ((B = D.children) == null ? void 0 : B.some((C) => C.active)),
3556
+ "is-active": D.active || D.children && ((O = D.children) == null ? void 0 : O.some((V) => V.active)),
3557
3557
  "is-expanded": e.isExpanded,
3558
3558
  "is-menu-expanded": o.expanded.includes(D.name),
3559
- onClick: (C) => c(D),
3560
- onCloseMenu: (C) => d(D.name)
3559
+ onClick: (V) => c(D),
3560
+ onCloseMenu: (V) => d(D.name)
3561
3561
  }, {
3562
3562
  default: S(() => [
3563
- (t(!0), i(P, null, R(D.children, (C, b) => (t(), x(r(wi), {
3563
+ (t(!0), i(P, null, R(D.children, (V, b) => (t(), x(r(wi), {
3564
3564
  key: b,
3565
- icon: C.icon,
3566
- label: C.label,
3567
- "is-active": C.active,
3565
+ icon: V.icon,
3566
+ label: V.label,
3567
+ "is-active": V.active,
3568
3568
  "is-expanded": e.isExpanded,
3569
- onClick: (O) => f.$emit("redirect", C)
3569
+ onClick: (B) => f.$emit("redirect", V)
3570
3570
  }, null, 8, ["icon", "label", "is-active", "is-expanded", "onClick"]))), 128))
3571
3571
  ]),
3572
3572
  _: 2
@@ -3918,7 +3918,7 @@ const Pm = /* @__PURE__ */ he(io, [["render", ro]]), co = { class: "flex items-c
3918
3918
  placement: "right-start",
3919
3919
  strategy: "fixed"
3920
3920
  });
3921
- }), (u, f) => Oe((t(), i("div", vi, [
3921
+ }), (u, f) => Be((t(), i("div", vi, [
3922
3922
  h(r(le), {
3923
3923
  position: "right",
3924
3924
  "arrow-hidden": "",
@@ -4056,7 +4056,7 @@ const Pm = /* @__PURE__ */ he(io, [["render", ro]]), co = { class: "flex items-c
4056
4056
  ])
4057
4057
  ]));
4058
4058
  }
4059
- }, Vi = { class: "relative" }, Bi = { class: "border relative z-10 bg-white border-oc-gray-200 shadow-normal rounded p-2 flex flex-col gap-y-2" }, Oi = { class: "py-2 px-3 gap-x-3 flex items-center" }, Ii = { class: "text-oc-accent-2 flex-1 font-medium" }, Ti = { class: "flex items-center gap-x-2" }, Di = { class: "px-3 pb-3 text-oc-text-400 text-sm" }, Hm = {
4059
+ }, Vi = { class: "relative" }, Oi = { class: "border relative z-10 bg-white border-oc-gray-200 shadow-normal rounded p-2 flex flex-col gap-y-2" }, Bi = { class: "py-2 px-3 gap-x-3 flex items-center" }, Ii = { class: "text-oc-accent-2 flex-1 font-medium" }, Ti = { class: "flex items-center gap-x-2" }, Di = { class: "px-3 pb-3 text-oc-text-400 text-sm" }, Hm = {
4060
4060
  __name: "OcSidebarFeatureBanners",
4061
4061
  props: {
4062
4062
  isStacked: {
@@ -4075,8 +4075,8 @@ const Pm = /* @__PURE__ */ he(io, [["render", ro]]), co = { class: "flex items-c
4075
4075
  setup(e) {
4076
4076
  return (s, a) => (t(), i("div", Vi, [
4077
4077
  a[2] || (a[2] = n("div", { class: "border absolute top-2 left-0 w-full h-[calc(100%-4px)] border-oc-gray-200 rounded pt-2" }, null, -1)),
4078
- n("div", Bi, [
4079
- n("div", Oi, [
4078
+ n("div", Oi, [
4079
+ n("div", Bi, [
4080
4080
  h(r(T), {
4081
4081
  name: "sparkle-2",
4082
4082
  class: "text-oc-accent-2"
@@ -4950,7 +4950,7 @@ const tt = /* @__PURE__ */ he(es, [["render", ls]]), as = { class: "flex" }, ns
4950
4950
  ]);
4951
4951
  };
4952
4952
  }
4953
- }, Gm = /* @__PURE__ */ he(Vs, [["__scopeId", "data-v-d658d1d3"]]), Bs = { class: "w-screen relative h-[40px] bg-oc-accent-3 flex items-center justify-center text-white" }, Os = { class: "text-sm" }, Xm = /* @__PURE__ */ Z({
4953
+ }, Gm = /* @__PURE__ */ he(Vs, [["__scopeId", "data-v-d658d1d3"]]), Os = { class: "w-screen relative h-[40px] bg-oc-accent-3 flex items-center justify-center text-white" }, Bs = { class: "text-sm" }, Xm = /* @__PURE__ */ Z({
4954
4954
  __name: "OcSandboxBanner",
4955
4955
  props: {
4956
4956
  title: {
@@ -4963,8 +4963,8 @@ const tt = /* @__PURE__ */ he(es, [["render", ls]]), as = { class: "flex" }, ns
4963
4963
  }
4964
4964
  },
4965
4965
  setup(e) {
4966
- return (s, a) => (t(), i("div", Bs, [
4967
- n("span", Os, $(e.title), 1),
4966
+ return (s, a) => (t(), i("div", Os, [
4967
+ n("span", Bs, $(e.title), 1),
4968
4968
  e.chipProps ? (t(), x(r(ae), F({
4969
4969
  key: 0,
4970
4970
  class: "absolute left-[40px]"
@@ -5166,7 +5166,7 @@ const tt = /* @__PURE__ */ he(es, [["render", ls]]), as = { class: "flex" }, ns
5166
5166
  }
5167
5167
  ), (y, p) => (t(), x(Ae, { name: e.transitionName }, {
5168
5168
  default: S(() => [
5169
- Oe(n("div", {
5169
+ Be(n("div", {
5170
5170
  ref_key: "snackBar",
5171
5171
  ref: d,
5172
5172
  class: v([[
@@ -5299,7 +5299,7 @@ const tt = /* @__PURE__ */ he(es, [["render", ls]]), as = { class: "flex" }, ns
5299
5299
  });
5300
5300
  return (l, o) => (t(), x(Ae, { name: e.transitionName }, {
5301
5301
  default: S(() => [
5302
- Oe(n("div", {
5302
+ Be(n("div", {
5303
5303
  class: v([r(a)[e.color], "border rounded-lg banner relative overflow-hidden"])
5304
5304
  }, [
5305
5305
  n("div", {
@@ -5402,12 +5402,7 @@ const tt = /* @__PURE__ */ he(es, [["render", ls]]), as = { class: "flex" }, ns
5402
5402
  return (s, a) => (t(), i("div", Js, [
5403
5403
  e.label ? (t(), i("label", {
5404
5404
  key: 0,
5405
- class: v(["flex items-center text-sm font-medium gap-x-3 text-oc-text-400", [
5406
- e.labelClass,
5407
- {
5408
- "!text-oc-error": e.errorMessage
5409
- }
5410
- ]])
5405
+ class: v(["flex items-center text-sm font-medium gap-x-3 text-oc-text-400", e.labelClass])
5411
5406
  }, [
5412
5407
  n("span", Zs, [
5413
5408
  W($(e.label) + " ", 1),
@@ -5504,9 +5499,9 @@ const tt = /* @__PURE__ */ he(es, [["render", ls]]), as = { class: "flex" }, ns
5504
5499
  e.isAdditionalArea ? "rounded-l-[inherit]" : "rounded-[inherit]"
5505
5500
  ]]),
5506
5501
  disabled: e.isDisabled || e.isLoading,
5507
- onMousedown: j[0] || (j[0] = (B) => a.value = !0),
5508
- onMouseup: j[1] || (j[1] = (B) => a.value = !1),
5509
- onMouseleave: j[2] || (j[2] = (B) => a.value = !1)
5502
+ onMousedown: j[0] || (j[0] = (O) => a.value = !0),
5503
+ onMouseup: j[1] || (j[1] = (O) => a.value = !1),
5504
+ onMouseleave: j[2] || (j[2] = (O) => a.value = !1)
5510
5505
  }, [
5511
5506
  e.isLoading ? (t(), x(r(T), {
5512
5507
  key: 0,
@@ -5534,7 +5529,7 @@ const tt = /* @__PURE__ */ he(es, [["render", ls]]), as = { class: "flex" }, ns
5534
5529
  e.isAdditionalArea && !e.isTransparent ? (t(), i("div", {
5535
5530
  key: 0,
5536
5531
  class: v(["border-y border-r flex cursor-pointer items-center justify-center oc-btn-add-area px-[6px] py-3 rounded-r-[inherit]", [o.value[e.size], e.variant]]),
5537
- onClick: j[3] || (j[3] = ce((B) => D.$emit("addition-click"), ["stop"]))
5532
+ onClick: j[3] || (j[3] = ce((O) => D.$emit("addition-click"), ["stop"]))
5538
5533
  }, [
5539
5534
  k(D.$slots, "additional-content", {}, () => [
5540
5535
  h(r(T), {
@@ -5741,7 +5736,7 @@ const tt = /* @__PURE__ */ he(es, [["render", ls]]), as = { class: "flex" }, ns
5741
5736
  class: v({ "!w-fit": !e.isBlock }),
5742
5737
  "model-value": d(D.value),
5743
5738
  "is-button-variant": e.isButtonVariant,
5744
- "onUpdate:modelValue": (B) => c(D.value)
5739
+ "onUpdate:modelValue": (O) => c(D.value)
5745
5740
  }, null, 8, ["label", "value", "is-error", "is-disabled", "class", "model-value", "is-button-variant", "onUpdate:modelValue"]))), 128))
5746
5741
  ], 2)
5747
5742
  ]),
@@ -6036,15 +6031,15 @@ const tt = /* @__PURE__ */ he(es, [["render", ls]]), as = { class: "flex" }, ns
6036
6031
  },
6037
6032
  setup(e, { expose: s, emit: a }) {
6038
6033
  const l = e, o = a, d = M([]), c = M(), u = M(""), f = M(!1), y = M(!1), p = N(() => f.value ? d.value : d.value.slice(0, l.maxVisibleOptions)), w = (j) => {
6039
- d.value = d.value.filter((B) => B !== j), o("option-removed", j), o("update:modelValue", d.value);
6034
+ d.value = d.value.filter((O) => O !== j), o("option-removed", j), o("update:modelValue", d.value);
6040
6035
  }, D = (j) => {
6041
6036
  if (!(j != null && j.trim()))
6042
6037
  return;
6043
- const B = (j == null ? void 0 : j.split(",")) || [];
6044
- B.forEach((C) => {
6038
+ const O = (j == null ? void 0 : j.split(",")) || [];
6039
+ O.forEach((V) => {
6045
6040
  var b;
6046
- C != null && C.trim() && (!l.allowDuplicated && ((b = d.value) != null && b.includes(C)) || (d.value.push(C), o("option-added", C)));
6047
- }), B.length && (u.value = "", o("update:modelValue", d.value));
6041
+ V != null && V.trim() && (!l.allowDuplicated && ((b = d.value) != null && b.includes(V)) || (d.value.push(V), o("option-added", V)));
6042
+ }), O.length && (u.value = "", o("update:modelValue", d.value));
6048
6043
  };
6049
6044
  return me(
6050
6045
  () => l.modelValue,
@@ -6057,7 +6052,7 @@ const tt = /* @__PURE__ */ he(es, [["render", ls]]), as = { class: "flex" }, ns
6057
6052
  }
6058
6053
  ), s({
6059
6054
  focus: () => c.value.focus()
6060
- }), (j, B) => (t(), x(r(ye), {
6055
+ }), (j, O) => (t(), x(r(ye), {
6061
6056
  label: e.isInlineLabel ? "" : e.label,
6062
6057
  hint: e.hint,
6063
6058
  "error-message": e.errorMessage,
@@ -6067,13 +6062,13 @@ const tt = /* @__PURE__ */ he(es, [["render", ls]]), as = { class: "flex" }, ns
6067
6062
  "tooltip-options": e.tooltipOptions
6068
6063
  }, {
6069
6064
  default: S(() => {
6070
- var C, b;
6065
+ var V, b;
6071
6066
  return [
6072
6067
  n("div", gr, [
6073
6068
  e.isInlineLabel && e.label ? (t(), i("label", pr, $(e.label) + ": ", 1)) : m("", !0),
6074
6069
  n("div", {
6075
6070
  class: "bg-oc-bg-light flex items-center gap-x-1 w-full",
6076
- onClick: B[4] || (B[4] = (O) => c.value.focus())
6071
+ onClick: O[4] || (O[4] = (B) => c.value.focus())
6077
6072
  }, [
6078
6073
  n("div", {
6079
6074
  class: v(["border min-h-[36px] py-3 w-full px-3 flex justify-between items-center cursor-pointer gap-x-3 rounded", {
@@ -6086,16 +6081,16 @@ const tt = /* @__PURE__ */ he(es, [["render", ls]]), as = { class: "flex" }, ns
6086
6081
  options: p.value,
6087
6082
  areAllOptionsVisible: f.value
6088
6083
  }, () => [
6089
- (t(!0), i(P, null, R(p.value, (O, g) => (t(), x(r(ae), {
6090
- key: `${O}-${g}`,
6084
+ (t(!0), i(P, null, R(p.value, (B, g) => (t(), x(r(ae), {
6085
+ key: `${B}-${g}`,
6091
6086
  closable: "",
6092
- label: O,
6093
- onRemove: (I) => w(O)
6087
+ label: B,
6088
+ onRemove: (I) => w(B)
6094
6089
  }, null, 8, ["label", "onRemove"]))), 128)),
6095
6090
  d.value.length > e.maxVisibleOptions ? (t(), x(r(ae), {
6096
6091
  key: 0,
6097
6092
  variant: "gray",
6098
- onClick: B[0] || (B[0] = (O) => f.value = !f.value)
6093
+ onClick: O[0] || (O[0] = (B) => f.value = !f.value)
6099
6094
  }, {
6100
6095
  default: S(() => [
6101
6096
  f.value ? (t(), x(r(T), {
@@ -6114,14 +6109,14 @@ const tt = /* @__PURE__ */ he(es, [["render", ls]]), as = { class: "flex" }, ns
6114
6109
  type: "text",
6115
6110
  value: u.value,
6116
6111
  readonly: e.isReadonly,
6117
- placeholder: ((C = p.value) == null ? void 0 : C.length) === 0 ? e.placeholder : "",
6112
+ placeholder: ((V = p.value) == null ? void 0 : V.length) === 0 ? e.placeholder : "",
6118
6113
  disabled: e.isDisabled,
6119
6114
  class: v(["h-7 flex-1 outline-none text-oc-text disabled:bg-transparent placeholder:font-normal placeholder:text-oc-text-300 bg-oc-bg-light", ((b = p.value) == null ? void 0 : b.length) === 0 ? "min-w-full" : "min-w-[80px]"]),
6120
- onFocus: B[1] || (B[1] = (O) => y.value = !0),
6121
- onBlur: B[2] || (B[2] = (O) => {
6122
- console.log("$event: ", O), y.value = !1, j.$emit("blur", O);
6115
+ onFocus: O[1] || (O[1] = (B) => y.value = !0),
6116
+ onBlur: O[2] || (O[2] = (B) => {
6117
+ console.log("$event: ", B), y.value = !1, j.$emit("blur", B);
6123
6118
  }),
6124
- onKeyup: B[3] || (B[3] = Fe((O) => D(O.target.value), ["enter"]))
6119
+ onKeyup: O[3] || (O[3] = Fe((B) => D(B.target.value), ["enter"]))
6125
6120
  }, null, 42, hr)
6126
6121
  ])
6127
6122
  ], 2)
@@ -6175,43 +6170,43 @@ const tt = /* @__PURE__ */ he(es, [["render", ls]]), as = { class: "flex" }, ns
6175
6170
  const a = e, l = s;
6176
6171
  let o = a.initialCountryCode;
6177
6172
  if (a.modelValue && a.modelValue[0]) {
6178
- const O = a.countryCodes.find((g) => g.code === a.modelValue[0].toString());
6179
- O && (o = O.iso.toLowerCase());
6173
+ const B = a.countryCodes.find((g) => g.code === a.modelValue[0].toString());
6174
+ B && (o = B.iso.toLowerCase());
6180
6175
  }
6181
6176
  const d = M(o), c = M(!1), u = M(""), f = N(
6182
- () => a.countryCodes.filter((O) => O.country.toLowerCase().includes(u.value.toLowerCase())).sort((O, g) => O.country.localeCompare(g.country))
6183
- ), y = (O) => a.countryCodes.find((g) => g.iso.toLowerCase() === O.toLowerCase()) || null, p = (O) => {
6177
+ () => a.countryCodes.filter((B) => B.country.toLowerCase().includes(u.value.toLowerCase())).sort((B, g) => B.country.localeCompare(g.country))
6178
+ ), y = (B) => a.countryCodes.find((g) => g.iso.toLowerCase() === B.toLowerCase()) || null, p = (B) => {
6184
6179
  var g;
6185
- return ((g = y(O)) == null ? void 0 : g.code) || "";
6186
- }, w = (O) => {
6187
- l("update:modelValue", [p(d.value), O]);
6188
- }, D = (O, g, I = null) => {
6189
- var V;
6190
- d.value = O.toLowerCase(), l("update:modelValue", [g, I || ((V = a.modelValue) == null ? void 0 : V[1]) || ""]), c.value = !1;
6191
- }, j = M(null), B = M([]), C = () => {
6180
+ return ((g = y(B)) == null ? void 0 : g.code) || "";
6181
+ }, w = (B) => {
6182
+ l("update:modelValue", [p(d.value), B]);
6183
+ }, D = (B, g, I = null) => {
6184
+ var C;
6185
+ d.value = B.toLowerCase(), l("update:modelValue", [g, I || ((C = a.modelValue) == null ? void 0 : C[1]) || ""]), c.value = !1;
6186
+ }, j = M(null), O = M([]), V = () => {
6192
6187
  setTimeout(() => {
6193
- const O = f.value.indexOf(
6188
+ const B = f.value.indexOf(
6194
6189
  y(d.value)
6195
- ), I = B.value[O].offsetTop;
6190
+ ), I = O.value[B].offsetTop;
6196
6191
  j.value.scrollTo(0, I - 60, { behavior: "smooth" });
6197
6192
  }, 10);
6198
- }, b = (O) => {
6199
- let g = O.clipboardData.getData("Text");
6193
+ }, b = (B) => {
6194
+ let g = B.clipboardData.getData("Text");
6200
6195
  try {
6201
6196
  if (g.search(/[^0-9]/g) < 0)
6202
6197
  if (g = g.slice(0, 19), g.length > 5 && a.shouldParseCountryCode) {
6203
- const { nationalNumber: I, countryCallingCode: V, country: z } = Wt(
6198
+ const { nationalNumber: I, countryCallingCode: C, country: z } = Wt(
6204
6199
  "+" + g.replace("+", "")
6205
6200
  );
6206
- V && z ? D(z, V, I) : l("update:modelValue", [p(d.value), I]);
6201
+ C && z ? D(z, C, I) : l("update:modelValue", [p(d.value), I]);
6207
6202
  } else
6208
6203
  l("update:modelValue", [p(d.value), g]);
6209
6204
  } catch {
6210
6205
  l("update:modelValue", [p(d.value), g]);
6211
6206
  }
6212
- O.preventDefault();
6207
+ B.preventDefault();
6213
6208
  };
6214
- return (O, g) => {
6209
+ return (B, g) => {
6215
6210
  var I;
6216
6211
  return t(), x(r(pe), {
6217
6212
  "error-message": e.errorMessage,
@@ -6233,8 +6228,8 @@ const tt = /* @__PURE__ */ he(es, [["render", ls]]), as = { class: "flex" }, ns
6233
6228
  h(r(ie), {
6234
6229
  modelValue: c.value,
6235
6230
  "onUpdate:modelValue": [
6236
- g[3] || (g[3] = (V) => c.value = V),
6237
- C
6231
+ g[3] || (g[3] = (C) => c.value = C),
6232
+ V
6238
6233
  ],
6239
6234
  distance: 10,
6240
6235
  placement: "bottom-start"
@@ -6248,7 +6243,7 @@ const tt = /* @__PURE__ */ he(es, [["render", ls]]), as = { class: "flex" }, ns
6248
6243
  n("div", $r, [
6249
6244
  h(r(pe), {
6250
6245
  modelValue: u.value,
6251
- "onUpdate:modelValue": g[0] || (g[0] = (V) => u.value = V),
6246
+ "onUpdate:modelValue": g[0] || (g[0] = (C) => u.value = C),
6252
6247
  icon: "search",
6253
6248
  placeholder: "Search",
6254
6249
  onKeydown: g[1] || (g[1] = ce(() => {
@@ -6265,22 +6260,22 @@ const tt = /* @__PURE__ */ he(es, [["render", ls]]), as = { class: "flex" }, ns
6265
6260
  _: 1
6266
6261
  }, 8, ["modelValue"])
6267
6262
  ]),
6268
- (t(!0), i(P, null, R(f.value, (V, z) => (t(), i("div", {
6263
+ (t(!0), i(P, null, R(f.value, (C, z) => (t(), i("div", {
6269
6264
  ref_for: !0,
6270
6265
  ref_key: "countryListItemRef",
6271
- ref: B,
6266
+ ref: O,
6272
6267
  key: z,
6273
6268
  class: v([
6274
6269
  "py-3 px-4 flex gap-x-4 items-center hover:bg-oc-gray-50 cursor-pointer",
6275
- d.value === V.iso.toLowerCase() ? "bg-oc-gray-50 font-medium" : ""
6270
+ d.value === C.iso.toLowerCase() ? "bg-oc-gray-50 font-medium" : ""
6276
6271
  ]),
6277
- onClick: (E) => D(V.iso, V.code)
6272
+ onClick: (E) => D(C.iso, C.code)
6278
6273
  }, [
6279
6274
  n("div", {
6280
- class: v(["fi !w-[20px] !h-[15px] !rounded-[2px] shadow-md", `fi-${V.iso.toLowerCase()}`])
6275
+ class: v(["fi !w-[20px] !h-[15px] !rounded-[2px] shadow-md", `fi-${C.iso.toLowerCase()}`])
6281
6276
  }, null, 2),
6282
- n("span", Sr, "+" + $(V.code), 1),
6283
- n("span", Cr, $(V.country), 1)
6277
+ n("span", Sr, "+" + $(C.code), 1),
6278
+ n("span", Cr, $(C.country), 1)
6284
6279
  ], 10, kr))), 128))
6285
6280
  ], 512)
6286
6281
  ]),
@@ -6305,7 +6300,7 @@ const tt = /* @__PURE__ */ he(es, [["render", ls]]), as = { class: "flex" }, ns
6305
6300
  }, 8, ["error-message", "model-value", "placeholder", "label", "is-inline-label", "disabled", "hint", "is-required", "label-icon", "tooltip-text", "tooltip-options", "onKeydown"]);
6306
6301
  };
6307
6302
  }
6308
- }, Br = ["id", "value", "checked", "name", "disabled"], Or = ["for"], Ir = {
6303
+ }, Or = ["id", "value", "checked", "name", "disabled"], Br = ["for"], Ir = {
6309
6304
  key: 0,
6310
6305
  class: "px-3 py-2 whitespace-nowrap"
6311
6306
  }, Tr = {
@@ -6346,7 +6341,7 @@ const tt = /* @__PURE__ */ he(es, [["render", ls]]), as = { class: "flex" }, ns
6346
6341
  class: "radio-button__input absolute opacity-0 w-0 h-0",
6347
6342
  type: "radio",
6348
6343
  onInput: a[0] || (a[0] = (l) => s.$emit("update:modelValue", l.target.value))
6349
- }, null, 40, Br),
6344
+ }, null, 40, Or),
6350
6345
  n("label", {
6351
6346
  for: e.groupName + e.id,
6352
6347
  class: v(["radio-button__label flex gap-x-3 relative items-center cursor-pointer transition-all duration-300 text-oc-text-500", {
@@ -6391,7 +6386,7 @@ const tt = /* @__PURE__ */ he(es, [["render", ls]]), as = { class: "flex" }, ns
6391
6386
  ]),
6392
6387
  _: 3
6393
6388
  }, 16)) : m("", !0)
6394
- ], 10, Or)
6389
+ ], 10, Br)
6395
6390
  ]),
6396
6391
  _: 3
6397
6392
  }, 8, ["class", "error-message", "hint"]));
@@ -6664,7 +6659,7 @@ const tt = /* @__PURE__ */ he(es, [["render", ls]]), as = { class: "flex" }, ns
6664
6659
  } else
6665
6660
  ((A = H.label) != null && A.toLowerCase().includes(d.value.toLowerCase()) || (U = H.subLabel) != null && U.toLowerCase().includes(d.value.toLowerCase())) && L.push(H);
6666
6661
  return L;
6667
- }), B = N(() => {
6662
+ }), O = N(() => {
6668
6663
  if (l.multiple) {
6669
6664
  let L = [];
6670
6665
  if (l.modelValue)
@@ -6679,14 +6674,14 @@ const tt = /* @__PURE__ */ he(es, [["render", ls]]), as = { class: "flex" }, ns
6679
6674
  var A;
6680
6675
  return L.value.toString() === ((A = l.modelValue) == null ? void 0 : A.toString());
6681
6676
  });
6682
- }), C = (L) => {
6677
+ }), V = (L) => {
6683
6678
  var U;
6684
6679
  if (L.isDisabled)
6685
6680
  return;
6686
6681
  let A;
6687
6682
  if (l.multiple) {
6688
6683
  const H = (l.modelValue || []).find((X) => X === L.value);
6689
- if (!H && l.maxOptionAllowed && ((U = B.value) == null ? void 0 : U.length) >= Number(l.maxOptionAllowed)) {
6684
+ if (!H && l.maxOptionAllowed && ((U = O.value) == null ? void 0 : U.length) >= Number(l.maxOptionAllowed)) {
6690
6685
  o("max-option-allowed-set");
6691
6686
  return;
6692
6687
  }
@@ -6699,7 +6694,7 @@ const tt = /* @__PURE__ */ he(es, [["render", ls]]), as = { class: "flex" }, ns
6699
6694
  "update:modelValue",
6700
6695
  (l.modelValue || []).filter((A) => A !== L)
6701
6696
  );
6702
- }, O = () => {
6697
+ }, B = () => {
6703
6698
  l.isAsynchronousSearch || (D.value ? o("update:modelValue", null) : o(
6704
6699
  "update:modelValue",
6705
6700
  j.value.map((L) => L.value)
@@ -6717,7 +6712,7 @@ const tt = /* @__PURE__ */ he(es, [["render", ls]]), as = { class: "flex" }, ns
6717
6712
  (A = u.value) == null || A.focus();
6718
6713
  });
6719
6714
  });
6720
- const I = M("100%"), V = N(() => ({ maxWidth: I.value })), z = () => {
6715
+ const I = M("100%"), C = N(() => ({ maxWidth: I.value })), z = () => {
6721
6716
  var L, A, U, H;
6722
6717
  o("toggle"), I.value = (A = (L = g.value) == null ? void 0 : L.$el) != null && A.offsetWidth ? `${(H = (U = g.value) == null ? void 0 : U.$el) == null ? void 0 : H.offsetWidth}px` : "100%", setTimeout(() => {
6723
6718
  var de;
@@ -6772,7 +6767,7 @@ const tt = /* @__PURE__ */ he(es, [["render", ls]]), as = { class: "flex" }, ns
6772
6767
  distance: 4,
6773
6768
  "popper-class": "w-full",
6774
6769
  placement: "bottom-end",
6775
- "popper-style": V.value,
6770
+ "popper-style": C.value,
6776
6771
  "popper-options": e.popperOptions,
6777
6772
  "is-disabled": e.isDisabled || e.isReadonly,
6778
6773
  "menu-classes": e.menuClasses,
@@ -6786,7 +6781,7 @@ const tt = /* @__PURE__ */ he(es, [["render", ls]]), as = { class: "flex" }, ns
6786
6781
  ref: p,
6787
6782
  class: "flex flex-col gap-y-2"
6788
6783
  }, [
6789
- e.isFilterable && !e.isInlineSearch || e.isFilterable && e.isInlineSearch && B.value ? (t(), i("div", Fr, [
6784
+ e.isFilterable && !e.isInlineSearch || e.isFilterable && e.isInlineSearch && O.value ? (t(), i("div", Fr, [
6790
6785
  h(r(pe), {
6791
6786
  ref_key: "searchInputRef",
6792
6787
  ref: u,
@@ -6808,7 +6803,7 @@ const tt = /* @__PURE__ */ he(es, [["render", ls]]), as = { class: "flex" }, ns
6808
6803
  }, 8, ["modelValue", "placeholder"])
6809
6804
  ])) : m("", !0),
6810
6805
  n("div", {
6811
- class: v(["flex px-3 pb-3 flex-col gap-y-2", { "pt-3": !e.isFilterable || e.isInlineSearch && !B.value }])
6806
+ class: v(["flex px-3 pb-3 flex-col gap-y-2", { "pt-3": !e.isFilterable || e.isInlineSearch && !O.value }])
6812
6807
  }, [
6813
6808
  e.isCheckboxes && e.isSelectAll && j.value.length && e.multiple ? (t(), x(r(gt), {
6814
6809
  key: 0,
@@ -6817,12 +6812,12 @@ const tt = /* @__PURE__ */ he(es, [["render", ls]]), as = { class: "flex" }, ns
6817
6812
  "is-partial": !D.value && !!((U = e.modelValue) != null && U.length),
6818
6813
  class: "border-b border-oc-gray-200",
6819
6814
  label: "Select All",
6820
- onClick: O
6815
+ onClick: B
6821
6816
  }, null, 8, ["is-selected", "is-partial"])) : m("", !0),
6822
6817
  k(L.$slots, "default", {
6823
6818
  key: w.value,
6824
6819
  fOptions: j.value,
6825
- selectOption: C
6820
+ selectOption: V
6826
6821
  }, () => [
6827
6822
  (t(!0), i(P, null, R(j.value, (H) => (t(), x(r(gt), {
6828
6823
  ref_for: !0,
@@ -6834,7 +6829,7 @@ const tt = /* @__PURE__ */ he(es, [["render", ls]]), as = { class: "flex" }, ns
6834
6829
  "is-disabled": H.isDisabled,
6835
6830
  "is-checkboxes": e.isCheckboxes,
6836
6831
  "is-selected": e.multiple ? e.modelValue ? e.modelValue.find((X) => X === H.value) !== void 0 : !1 : e.modelValue === H.value,
6837
- onClick: (X) => C(H)
6832
+ onClick: (X) => V(H)
6838
6833
  }, null, 8, ["label", "sub-label", "is-disabled", "is-checkboxes", "is-selected", "onClick"]))), 128))
6839
6834
  ]),
6840
6835
  k(L.$slots, "infinite-scrolling"),
@@ -6878,7 +6873,7 @@ const tt = /* @__PURE__ */ he(es, [["render", ls]]), as = { class: "flex" }, ns
6878
6873
  }, [
6879
6874
  e.multiple ? (t(), i("div", Pr, [
6880
6875
  k(L.$slots, "selection", {}, () => [
6881
- (t(!0), i(P, null, R(e.maxVisibleOptions ? B.value.slice(0, e.maxVisibleOptions) : B.value, (U) => (t(), x(r(ae), F({
6876
+ (t(!0), i(P, null, R(e.maxVisibleOptions ? O.value.slice(0, e.maxVisibleOptions) : O.value, (U) => (t(), x(r(ae), F({
6882
6877
  key: U.value,
6883
6878
  closable: "",
6884
6879
  variant: U.variant,
@@ -6888,14 +6883,14 @@ const tt = /* @__PURE__ */ he(es, [["render", ls]]), as = { class: "flex" }, ns
6888
6883
  "should-truncate-chip": "",
6889
6884
  onRemove: (H) => b(U.value)
6890
6885
  }), null, 16, ["variant", "label", "onRemove"]))), 128)),
6891
- e.maxVisibleOptions && B.value.length > e.maxVisibleOptions ? (t(), x(r(ae), {
6886
+ e.maxVisibleOptions && O.value.length > e.maxVisibleOptions ? (t(), x(r(ae), {
6892
6887
  key: 0,
6893
- label: `+${B.value.length - e.maxVisibleOptions}`
6888
+ label: `+${O.value.length - e.maxVisibleOptions}`
6894
6889
  }, null, 8, ["label"])) : m("", !0)
6895
6890
  ]),
6896
- B.value.length === 0 ? (t(), i("span", Er, $(e.placeholder), 1)) : m("", !0)
6891
+ O.value.length === 0 ? (t(), i("span", Er, $(e.placeholder), 1)) : m("", !0)
6897
6892
  ])) : m("", !0),
6898
- e.isInlineSearch && e.isFilterable && !B.value ? (t(), x(r(pe), {
6893
+ e.isInlineSearch && e.isFilterable && !O.value ? (t(), x(r(pe), {
6899
6894
  key: 1,
6900
6895
  modelValue: d.value,
6901
6896
  "onUpdate:modelValue": [
@@ -6925,7 +6920,7 @@ const tt = /* @__PURE__ */ he(es, [["render", ls]]), as = { class: "flex" }, ns
6925
6920
  height: "16"
6926
6921
  }, null, 8, ["name"])) : m("", !0),
6927
6922
  e.isInlineLabel && e.label ? (t(), i("span", zr, $(e.label) + ": ", 1)) : m("", !0),
6928
- B.value ? (t(), i("span", Rr, $(B.value.label), 1)) : (t(), i("span", {
6923
+ O.value ? (t(), i("span", Rr, $(O.value.label), 1)) : (t(), i("span", {
6929
6924
  key: 3,
6930
6925
  class: v(e.dropdownClasses ? "" : "text-oc-text-300")
6931
6926
  }, $(e.placeholder), 3))
@@ -7038,16 +7033,22 @@ const tt = /* @__PURE__ */ he(es, [["render", ls]]), as = { class: "flex" }, ns
7038
7033
  k(s.$slots, "default")
7039
7034
  ]));
7040
7035
  }
7041
- }, Xr = { class: "flex text-oc-text-400 items-center gap-x-2" }, Jr = {
7036
+ }, Xr = { class: "flex items-center text-oc-text-400 gap-x-2" }, Jr = {
7042
7037
  key: 0,
7043
- class: "flex flex-col p-2 py-3 gap-2"
7038
+ class: "flex flex-col gap-2 p-2 py-3"
7044
7039
  }, Zr = ["onClick"], Qr = {
7045
7040
  __name: "OcLinkInput",
7046
7041
  props: {
7047
7042
  placeholder: String,
7048
7043
  hint: String,
7049
7044
  label: String,
7050
- errorMessage: String,
7045
+ errorMessages: {
7046
+ type: Object,
7047
+ default: () => ({
7048
+ link: "",
7049
+ title: ""
7050
+ })
7051
+ },
7051
7052
  isInlineLabel: Boolean,
7052
7053
  isDisabled: Boolean,
7053
7054
  modelValue: String,
@@ -7081,88 +7082,91 @@ const tt = /* @__PURE__ */ he(es, [["render", ls]]), as = { class: "flex" }, ns
7081
7082
  "update:title": []
7082
7083
  },
7083
7084
  setup(e, { emit: s }) {
7084
- var B, C;
7085
- const a = e, l = s, o = M(!1), d = M(a.type ?? ((C = (B = a.links) == null ? void 0 : B[0]) == null ? void 0 : C.value)), c = M(a.title ?? ""), u = N(
7085
+ var O, V;
7086
+ const a = e, l = s, o = M(!1), d = M(a.type ?? ((V = (O = a.links) == null ? void 0 : O[0]) == null ? void 0 : V.value)), c = M(a.title ?? ""), u = N(
7086
7087
  () => a.links.find((b) => b.value === d.value) ?? {}
7087
7088
  ), f = N(() => u.value.preFill ?? ""), y = M(a.modelValue ? a.modelValue.replace(f.value, "") : ""), p = (b) => {
7088
7089
  var g;
7089
- const O = (g = a.links.find((I) => I.value === b)) == null ? void 0 : g.preFill;
7090
- l("update:modelValue", a.modelValue.replace(f.value, O)), d.value = b, l("update:type", b), o.value = !1;
7090
+ const B = (g = a.links.find((I) => I.value === b)) == null ? void 0 : g.preFill;
7091
+ l("update:modelValue", a.modelValue.replace(f.value, B)), d.value = b, l("update:type", b), o.value = !1;
7091
7092
  }, w = (b) => {
7092
7093
  y.value = b, l("update:modelValue", f.value + b), !a.isEdit && d.value !== "link" && l("update:title", b);
7093
7094
  }, D = N(() => u.value.placeholder ?? ""), j = N(() => d.value === "link");
7094
- return (b, O) => (t(), i("div", null, [
7095
- j.value || e.isEdit ? (t(), x(r(pe), {
7096
- key: 0,
7097
- modelValue: c.value,
7098
- "onUpdate:modelValue": [
7099
- O[0] || (O[0] = (g) => c.value = g),
7100
- O[1] || (O[1] = (g) => b.$emit("update:title", g))
7101
- ],
7102
- class: "mb-3",
7103
- label: "Title",
7104
- placeholder: "Title",
7105
- "error-message": e.errorMessage ? " " : ""
7106
- }, null, 8, ["modelValue", "error-message"])) : m("", !0),
7107
- h(r(pe), {
7108
- placeholder: D.value,
7109
- label: d.value === "link" ? "Link" : e.label,
7110
- "error-message": e.errorMessage,
7111
- "is-inline-label": e.isInlineLabel,
7112
- disabled: e.isDisabled,
7113
- hint: e.hint,
7114
- "pre-fill": f.value,
7115
- "model-value": y.value,
7116
- "is-required": e.isRequired,
7117
- "label-icon": e.labelIcon,
7118
- "tooltip-text": e.tooltipText,
7119
- "tooltip-options": e.tooltipOptions,
7120
- "onUpdate:modelValue": w
7121
- }, {
7122
- trailing: S(() => [
7123
- h(r(ie), {
7124
- modelValue: o.value,
7125
- "onUpdate:modelValue": O[2] || (O[2] = (g) => o.value = g),
7126
- distance: 10
7127
- }, {
7128
- menu: S(() => [
7129
- e.isEdit ? m("", !0) : (t(), i("div", Jr, [
7130
- (t(!0), i(P, null, R(e.links, (g) => (t(), i("div", {
7131
- key: g.value,
7132
- class: "flex rounded-sm items-center px-3 py-2 gap-x-3 cursor-pointer text-oc-text-400 hover:bg-gray-50",
7133
- onClick: (I) => p(g.value)
7134
- }, [
7135
- h(r(T), {
7095
+ return (b, B) => {
7096
+ var g, I;
7097
+ return t(), i("div", null, [
7098
+ j.value || e.isEdit ? (t(), x(r(pe), {
7099
+ key: 0,
7100
+ modelValue: c.value,
7101
+ "onUpdate:modelValue": [
7102
+ B[0] || (B[0] = (C) => c.value = C),
7103
+ B[1] || (B[1] = (C) => b.$emit("update:title", C))
7104
+ ],
7105
+ class: "mb-3",
7106
+ label: "Title",
7107
+ placeholder: "Title",
7108
+ "error-message": (g = e.errorMessages) != null && g.title ? " " : ""
7109
+ }, null, 8, ["modelValue", "error-message"])) : m("", !0),
7110
+ h(r(pe), {
7111
+ placeholder: D.value,
7112
+ label: d.value === "link" ? "Link" : e.label,
7113
+ "error-message": (I = e.errorMessages) != null && I.link ? " " : "",
7114
+ "is-inline-label": e.isInlineLabel,
7115
+ disabled: e.isDisabled,
7116
+ hint: e.hint,
7117
+ "pre-fill": f.value,
7118
+ "model-value": y.value,
7119
+ "is-required": e.isRequired,
7120
+ "label-icon": e.labelIcon,
7121
+ "tooltip-text": e.tooltipText,
7122
+ "tooltip-options": e.tooltipOptions,
7123
+ "onUpdate:modelValue": w
7124
+ }, {
7125
+ trailing: S(() => [
7126
+ h(r(ie), {
7127
+ modelValue: o.value,
7128
+ "onUpdate:modelValue": B[2] || (B[2] = (C) => o.value = C),
7129
+ distance: 10
7130
+ }, {
7131
+ menu: S(() => [
7132
+ e.isEdit ? m("", !0) : (t(), i("div", Jr, [
7133
+ (t(!0), i(P, null, R(e.links, (C) => (t(), i("div", {
7134
+ key: C.value,
7135
+ class: "flex items-center px-3 py-2 rounded-sm cursor-pointer gap-x-3 text-oc-text-400 hover:bg-gray-50",
7136
+ onClick: (z) => p(C.value)
7137
+ }, [
7138
+ h(r(T), {
7139
+ width: "20",
7140
+ height: "20",
7141
+ name: C.icon
7142
+ }, null, 8, ["name"]),
7143
+ W(" " + $(C.label), 1)
7144
+ ], 8, Zr))), 128))
7145
+ ]))
7146
+ ]),
7147
+ default: S(() => [
7148
+ n("div", Xr, [
7149
+ u.value.icon ? (t(), x(r(T), {
7150
+ key: 0,
7136
7151
  width: "20",
7137
7152
  height: "20",
7138
- name: g.icon
7139
- }, null, 8, ["name"]),
7140
- W(" " + $(g.label), 1)
7141
- ], 8, Zr))), 128))
7142
- ]))
7143
- ]),
7144
- default: S(() => [
7145
- n("div", Xr, [
7146
- u.value.icon ? (t(), x(r(T), {
7147
- key: 0,
7148
- width: "20",
7149
- height: "20",
7150
- name: u.value.icon
7151
- }, null, 8, ["name"])) : m("", !0),
7152
- h(r(T), {
7153
- width: "16",
7154
- height: "16",
7155
- class: v(["transition duration-300", o.value ? "-rotate-180" : ""]),
7156
- name: "chevron-down"
7157
- }, null, 8, ["class"])
7158
- ])
7159
- ]),
7160
- _: 1
7161
- }, 8, ["modelValue"])
7162
- ]),
7163
- _: 1
7164
- }, 8, ["placeholder", "label", "error-message", "is-inline-label", "disabled", "hint", "pre-fill", "model-value", "is-required", "label-icon", "tooltip-text", "tooltip-options"])
7165
- ]));
7153
+ name: u.value.icon
7154
+ }, null, 8, ["name"])) : m("", !0),
7155
+ h(r(T), {
7156
+ width: "16",
7157
+ height: "16",
7158
+ class: v(["transition duration-300", o.value ? "-rotate-180" : ""]),
7159
+ name: "chevron-down"
7160
+ }, null, 8, ["class"])
7161
+ ])
7162
+ ]),
7163
+ _: 1
7164
+ }, 8, ["modelValue"])
7165
+ ]),
7166
+ _: 1
7167
+ }, 8, ["placeholder", "label", "error-message", "is-inline-label", "disabled", "hint", "pre-fill", "model-value", "is-required", "label-icon", "tooltip-text", "tooltip-options"])
7168
+ ]);
7169
+ };
7166
7170
  }
7167
7171
  }, _r = ["disabled", "value", "rows", "placeholder"], ed = "18px", td = {
7168
7172
  __name: "OcTextArea",
@@ -7246,8 +7250,8 @@ var Vt = { exports: {} };
7246
7250
  });
7247
7251
  })(Vt);
7248
7252
  var ld = Vt.exports;
7249
- const Bt = /* @__PURE__ */ We(ld);
7250
- var Ot = { exports: {} };
7253
+ const Ot = /* @__PURE__ */ We(ld);
7254
+ var Bt = { exports: {} };
7251
7255
  (function(e, s) {
7252
7256
  (function(a, l) {
7253
7257
  e.exports = l();
@@ -7258,8 +7262,8 @@ var Ot = { exports: {} };
7258
7262
  };
7259
7263
  };
7260
7264
  });
7261
- })(Ot);
7262
- var ad = Ot.exports;
7265
+ })(Bt);
7266
+ var ad = Bt.exports;
7263
7267
  const It = /* @__PURE__ */ We(ad);
7264
7268
  var Tt = { exports: {} };
7265
7269
  (function(e, s) {
@@ -7283,28 +7287,28 @@ var At = { exports: {} };
7283
7287
  var a = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" }, l = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, o = /\d/, d = /\d\d/, c = /\d\d?/, u = /\d*[^-_:/,()\s\d]+/, f = {}, y = function(b) {
7284
7288
  return (b = +b) + (b > 68 ? 1900 : 2e3);
7285
7289
  }, p = function(b) {
7286
- return function(O) {
7287
- this[b] = +O;
7290
+ return function(B) {
7291
+ this[b] = +B;
7288
7292
  };
7289
7293
  }, w = [/[+-]\d\d:?(\d\d)?|Z/, function(b) {
7290
- (this.zone || (this.zone = {})).offset = function(O) {
7291
- if (!O || O === "Z") return 0;
7292
- var g = O.match(/([+-]|\d\d)/g), I = 60 * g[1] + (+g[2] || 0);
7294
+ (this.zone || (this.zone = {})).offset = function(B) {
7295
+ if (!B || B === "Z") return 0;
7296
+ var g = B.match(/([+-]|\d\d)/g), I = 60 * g[1] + (+g[2] || 0);
7293
7297
  return I === 0 ? 0 : g[0] === "+" ? -I : I;
7294
7298
  }(b);
7295
7299
  }], D = function(b) {
7296
- var O = f[b];
7297
- return O && (O.indexOf ? O : O.s.concat(O.f));
7298
- }, j = function(b, O) {
7300
+ var B = f[b];
7301
+ return B && (B.indexOf ? B : B.s.concat(B.f));
7302
+ }, j = function(b, B) {
7299
7303
  var g, I = f.meridiem;
7300
7304
  if (I) {
7301
- for (var V = 1; V <= 24; V += 1) if (b.indexOf(I(V, 0, O)) > -1) {
7302
- g = V > 12;
7305
+ for (var C = 1; C <= 24; C += 1) if (b.indexOf(I(C, 0, B)) > -1) {
7306
+ g = C > 12;
7303
7307
  break;
7304
7308
  }
7305
- } else g = b === (O ? "pm" : "PM");
7309
+ } else g = b === (B ? "pm" : "PM");
7306
7310
  return g;
7307
- }, B = { A: [u, function(b) {
7311
+ }, O = { A: [u, function(b) {
7308
7312
  this.afternoon = j(b, !1);
7309
7313
  }], a: [u, function(b) {
7310
7314
  this.afternoon = j(b, !0);
@@ -7317,35 +7321,35 @@ var At = { exports: {} };
7317
7321
  }], SSS: [/\d{3}/, function(b) {
7318
7322
  this.milliseconds = +b;
7319
7323
  }], s: [c, p("seconds")], ss: [c, p("seconds")], m: [c, p("minutes")], mm: [c, p("minutes")], H: [c, p("hours")], h: [c, p("hours")], HH: [c, p("hours")], hh: [c, p("hours")], D: [c, p("day")], DD: [d, p("day")], Do: [u, function(b) {
7320
- var O = f.ordinal, g = b.match(/\d+/);
7321
- if (this.day = g[0], O) for (var I = 1; I <= 31; I += 1) O(I).replace(/\[|\]/g, "") === b && (this.day = I);
7324
+ var B = f.ordinal, g = b.match(/\d+/);
7325
+ if (this.day = g[0], B) for (var I = 1; I <= 31; I += 1) B(I).replace(/\[|\]/g, "") === b && (this.day = I);
7322
7326
  }], w: [c, p("week")], ww: [d, p("week")], M: [c, p("month")], MM: [d, p("month")], MMM: [u, function(b) {
7323
- var O = D("months"), g = (D("monthsShort") || O.map(function(I) {
7327
+ var B = D("months"), g = (D("monthsShort") || B.map(function(I) {
7324
7328
  return I.slice(0, 3);
7325
7329
  })).indexOf(b) + 1;
7326
7330
  if (g < 1) throw new Error();
7327
7331
  this.month = g % 12 || g;
7328
7332
  }], MMMM: [u, function(b) {
7329
- var O = D("months").indexOf(b) + 1;
7330
- if (O < 1) throw new Error();
7331
- this.month = O % 12 || O;
7333
+ var B = D("months").indexOf(b) + 1;
7334
+ if (B < 1) throw new Error();
7335
+ this.month = B % 12 || B;
7332
7336
  }], Y: [/[+-]?\d+/, p("year")], YY: [d, function(b) {
7333
7337
  this.year = y(b);
7334
7338
  }], YYYY: [/\d{4}/, p("year")], Z: w, ZZ: w };
7335
- function C(b) {
7336
- var O, g;
7337
- O = b, g = f && f.formats;
7338
- for (var I = (b = O.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(H, X, te) {
7339
+ function V(b) {
7340
+ var B, g;
7341
+ B = b, g = f && f.formats;
7342
+ for (var I = (b = B.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(H, X, te) {
7339
7343
  var _ = te && te.toUpperCase();
7340
7344
  return X || g[te] || a[te] || g[_].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(ne, de, ve) {
7341
7345
  return de || ve.slice(1);
7342
7346
  });
7343
- })).match(l), V = I.length, z = 0; z < V; z += 1) {
7344
- var E = I[z], L = B[E], A = L && L[0], U = L && L[1];
7347
+ })).match(l), C = I.length, z = 0; z < C; z += 1) {
7348
+ var E = I[z], L = O[E], A = L && L[0], U = L && L[1];
7345
7349
  I[z] = U ? { regex: A, parser: U } : E.replace(/^\[|\]$/g, "");
7346
7350
  }
7347
7351
  return function(H) {
7348
- for (var X = {}, te = 0, _ = 0; te < V; te += 1) {
7352
+ for (var X = {}, te = 0, _ = 0; te < C; te += 1) {
7349
7353
  var ne = I[te];
7350
7354
  if (typeof ne == "string") _ += ne.length;
7351
7355
  else {
@@ -7362,9 +7366,9 @@ var At = { exports: {} };
7362
7366
  }(X), X;
7363
7367
  };
7364
7368
  }
7365
- return function(b, O, g) {
7369
+ return function(b, B, g) {
7366
7370
  g.p.customParseFormat = !0, b && b.parseTwoDigitYear && (y = b.parseTwoDigitYear);
7367
- var I = O.prototype, V = I.parse;
7371
+ var I = B.prototype, C = I.parse;
7368
7372
  I.parse = function(z) {
7369
7373
  var E = z.date, L = z.utc, A = z.args;
7370
7374
  this.$u = L;
@@ -7374,9 +7378,9 @@ var At = { exports: {} };
7374
7378
  X && (_ = A[2]), f = this.$locale(), !H && _ && (f = g.Ls[_]), this.$d = function(be, we, ge, ke) {
7375
7379
  try {
7376
7380
  if (["x", "X"].indexOf(we) > -1) return new Date((we === "X" ? 1e3 : 1) * be);
7377
- var se = C(we)(be), Ve = se.year, Se = se.month, Q = se.day, Be = se.hours, q = se.minutes, J = se.seconds, Y = se.milliseconds, ue = se.zone, je = se.week, Ke = /* @__PURE__ */ new Date(), Ge = Q || (Ve || Se ? 1 : Ke.getDate()), Xe = Ve || Ke.getFullYear(), Ne = 0;
7381
+ var se = V(we)(be), Ve = se.year, Se = se.month, Q = se.day, Oe = se.hours, q = se.minutes, J = se.seconds, Y = se.milliseconds, ue = se.zone, je = se.week, Ke = /* @__PURE__ */ new Date(), Ge = Q || (Ve || Se ? 1 : Ke.getDate()), Xe = Ve || Ke.getFullYear(), Ne = 0;
7378
7382
  Ve && !Se || (Ne = Se > 0 ? Se - 1 : Ke.getMonth());
7379
- var ze, Je = Be || 0, Ze = q || 0, Qe = J || 0, _e = Y || 0;
7383
+ var ze, Je = Oe || 0, Ze = q || 0, Qe = J || 0, _e = Y || 0;
7380
7384
  return ue ? new Date(Date.UTC(Xe, Ne, Ge, Je, Ze, Qe, _e + 60 * ue.offset * 1e3)) : ge ? new Date(Date.UTC(Xe, Ne, Ge, Je, Ze, Qe, _e)) : (ze = new Date(Xe, Ne, Ge, Je, Ze, Qe, _e), je && (ze = ke(ze).week(je).toDate()), ze);
7381
7385
  } catch {
7382
7386
  return /* @__PURE__ */ new Date("");
@@ -7391,7 +7395,7 @@ var At = { exports: {} };
7391
7395
  }
7392
7396
  de === ne && (this.$d = /* @__PURE__ */ new Date(""));
7393
7397
  }
7394
- else V.call(this, z);
7398
+ else C.call(this, z);
7395
7399
  };
7396
7400
  };
7397
7401
  });
@@ -7438,7 +7442,7 @@ function lt(e) {
7438
7442
  var s = typeof e;
7439
7443
  return e != null && (s == "object" || s == "function");
7440
7444
  }
7441
- var yt = NaN, Sd = /^[-+]0x[0-9a-f]+$/i, Cd = /^0b[01]+$/i, Vd = /^0o[0-7]+$/i, Bd = parseInt;
7445
+ var yt = NaN, Sd = /^[-+]0x[0-9a-f]+$/i, Cd = /^0b[01]+$/i, Vd = /^0o[0-7]+$/i, Od = parseInt;
7442
7446
  function xt(e) {
7443
7447
  if (typeof e == "number")
7444
7448
  return e;
@@ -7452,24 +7456,24 @@ function xt(e) {
7452
7456
  return e === 0 ? e : +e;
7453
7457
  e = kd(e);
7454
7458
  var a = Cd.test(e);
7455
- return a || Vd.test(e) ? Bd(e.slice(2), a ? 2 : 8) : Sd.test(e) ? yt : +e;
7459
+ return a || Vd.test(e) ? Od(e.slice(2), a ? 2 : 8) : Sd.test(e) ? yt : +e;
7456
7460
  }
7457
7461
  var et = function() {
7458
7462
  return Mt.Date.now();
7459
- }, Od = "Expected a function", Id = Math.max, Td = Math.min;
7463
+ }, Bd = "Expected a function", Id = Math.max, Td = Math.min;
7460
7464
  function Dd(e, s, a) {
7461
7465
  var l, o, d, c, u, f, y = 0, p = !1, w = !1, D = !0;
7462
7466
  if (typeof e != "function")
7463
- throw new TypeError(Od);
7467
+ throw new TypeError(Bd);
7464
7468
  s = xt(s) || 0, lt(a) && (p = !!a.leading, w = "maxWait" in a, d = w ? Id(xt(a.maxWait) || 0, s) : d, D = "trailing" in a ? !!a.trailing : D);
7465
7469
  function j(E) {
7466
7470
  var L = l, A = o;
7467
7471
  return l = o = void 0, y = E, c = e.apply(A, L), c;
7468
7472
  }
7469
- function B(E) {
7470
- return y = E, u = setTimeout(O, s), p ? j(E) : c;
7473
+ function O(E) {
7474
+ return y = E, u = setTimeout(B, s), p ? j(E) : c;
7471
7475
  }
7472
- function C(E) {
7476
+ function V(E) {
7473
7477
  var L = E - f, A = E - y, U = s - L;
7474
7478
  return w ? Td(U, d - A) : U;
7475
7479
  }
@@ -7477,11 +7481,11 @@ function Dd(e, s, a) {
7477
7481
  var L = E - f, A = E - y;
7478
7482
  return f === void 0 || L >= s || L < 0 || w && A >= d;
7479
7483
  }
7480
- function O() {
7484
+ function B() {
7481
7485
  var E = et();
7482
7486
  if (b(E))
7483
7487
  return g(E);
7484
- u = setTimeout(O, C(E));
7488
+ u = setTimeout(B, V(E));
7485
7489
  }
7486
7490
  function g(E) {
7487
7491
  return u = void 0, D && l ? j(E) : (l = o = void 0, c);
@@ -7489,20 +7493,20 @@ function Dd(e, s, a) {
7489
7493
  function I() {
7490
7494
  u !== void 0 && clearTimeout(u), y = 0, l = f = o = u = void 0;
7491
7495
  }
7492
- function V() {
7496
+ function C() {
7493
7497
  return u === void 0 ? c : g(et());
7494
7498
  }
7495
7499
  function z() {
7496
7500
  var E = et(), L = b(E);
7497
7501
  if (l = arguments, o = this, f = E, L) {
7498
7502
  if (u === void 0)
7499
- return B(f);
7503
+ return O(f);
7500
7504
  if (w)
7501
- return clearTimeout(u), u = setTimeout(O, s), j(f);
7505
+ return clearTimeout(u), u = setTimeout(B, s), j(f);
7502
7506
  }
7503
- return u === void 0 && (u = setTimeout(O, s)), c;
7507
+ return u === void 0 && (u = setTimeout(B, s)), c;
7504
7508
  }
7505
- return z.cancel = I, z.flush = V, z;
7509
+ return z.cancel = I, z.flush = C, z;
7506
7510
  }
7507
7511
  const Ad = { class: "flex items-center justify-between" }, Md = { class: "flex flex-col gap-2 p-3" }, jd = { class: "flex justify-between items-center" }, Ld = { key: 0 }, Pd = { key: 1 }, Ed = {
7508
7512
  key: 0,
@@ -7549,13 +7553,13 @@ const Ad = { class: "flex items-center justify-between" }, Md = { class: "flex f
7549
7553
  },
7550
7554
  emits: ["update:modelValue", "reset-calendar", "update:isIndefinite"],
7551
7555
  setup(e, { emit: s }) {
7552
- K.extend(Bt), K.extend(It), K.extend(Dt), K.extend(ot);
7553
- const a = e, l = s, o = M(), d = M(), c = M(), u = M(), f = M(), y = M(), p = M(), w = M(!1), D = M(!1), j = M(!1), B = M(!1), C = N(() => a.type === "range"), b = N(() => {
7556
+ K.extend(Ot), K.extend(It), K.extend(Dt), K.extend(ot);
7557
+ const a = e, l = s, o = M(), d = M(), c = M(), u = M(), f = M(), y = M(), p = M(), w = M(!1), D = M(!1), j = M(!1), O = M(!1), V = N(() => a.type === "range"), b = N(() => {
7554
7558
  const J = o.value.endOf("month").date();
7555
7559
  return Array.from({ length: J }, (Y, ue) => ue + 1);
7556
- }), O = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], g = N(() => o.value.format("MMMM YYYY")), I = N(
7560
+ }), B = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], g = N(() => o.value.format("MMMM YYYY")), I = N(
7557
7561
  () => j.value ? y.value.format("YYYY") : o.value.format("YYYY")
7558
- ), V = N(() => o.value.format("MMM")), z = N(() => {
7562
+ ), C = N(() => o.value.format("MMM")), z = N(() => {
7559
7563
  const q = d.value, J = c.value ?? p.value, Y = [q, J];
7560
7564
  return J && (q != null && q.isAfter(J)) && Y.reverse(), {
7561
7565
  from: Y[0],
@@ -7578,7 +7582,7 @@ const Ad = { class: "flex items-center justify-between" }, Md = { class: "flex f
7578
7582
  }, X = () => {
7579
7583
  p.value = null, o.value = o.value.add(1, "month"), u.value = A.value ? d.value.date() : null, f.value = U.value ? c.value.date() : null;
7580
7584
  }, te = (q) => {
7581
- p.value = null, o.value = o.value.set("month", q), B.value = !1;
7585
+ p.value = null, o.value = o.value.set("month", q), O.value = !1;
7582
7586
  }, _ = (q) => {
7583
7587
  p.value = null, o.value = o.value.set("year", q), j.value = !1;
7584
7588
  }, ne = () => {
@@ -7586,11 +7590,11 @@ const Ad = { class: "flex items-center justify-between" }, Md = { class: "flex f
7586
7590
  }, de = () => {
7587
7591
  p.value = null, j.value ? y.value = y.value.add(11, "year") : o.value = o.value.add(1, "year");
7588
7592
  }, ve = () => {
7589
- j.value = !1, B.value = !B.value;
7593
+ j.value = !1, O.value = !O.value;
7590
7594
  }, be = (q) => {
7591
7595
  const J = o.value.date(q);
7592
7596
  return Object.values(z.value).filter(Boolean).find((Y) => Y.isSame(J));
7593
- }, we = (q) => C.value ? E.value ? o.value.date(q).isBetween(
7597
+ }, we = (q) => V.value ? E.value ? o.value.date(q).isBetween(
7594
7598
  z.value.from,
7595
7599
  z.value.to,
7596
7600
  null,
@@ -7599,14 +7603,14 @@ const Ad = { class: "flex items-center justify-between" }, Md = { class: "flex f
7599
7603
  const J = o.value.date(q);
7600
7604
  return a.disabledDate(J.toDate()) || a.minDate && J.isBefore(K(a.minDate), "day") || a.maxDate && J.isAfter(K(a.maxDate), "day");
7601
7605
  }, ke = () => {
7602
- C.value && (ge(d.value.toDate()) || ge(c.value.toDate())) || (D.value = !1, l(
7606
+ V.value && (ge(d.value.toDate()) || ge(c.value.toDate())) || (D.value = !1, l(
7603
7607
  "update:modelValue",
7604
- C.value ? [z.value.from, z.value.to].map((q) => q.toDate()) : d.value.toDate()
7608
+ V.value ? [z.value.from, z.value.to].map((q) => q.toDate()) : d.value.toDate()
7605
7609
  ));
7606
7610
  }, se = (q) => {
7607
7611
  l("update:isIndefinite", q);
7608
7612
  }, Ve = (q, J = !0) => {
7609
- if (!C.value) {
7613
+ if (!V.value) {
7610
7614
  let ue = K(g.value, "MMMM YYYY").date(q);
7611
7615
  u.value = q, d.value = ue, f.value = null, c.value = null, ke();
7612
7616
  return;
@@ -7621,9 +7625,9 @@ const Ad = { class: "flex items-center justify-between" }, Md = { class: "flex f
7621
7625
  D.value && Ve(q, !1);
7622
7626
  }, 50), Q = () => {
7623
7627
  var J, Y, ue;
7624
- const q = C.value ? (J = a.modelValue) == null ? void 0 : J[0] : a.modelValue;
7625
- o.value = K(q), y.value = K(q), d.value = q && o.value, u.value = q && d.value.date(), !(!C.value || !q) && (c.value = K((Y = a.modelValue) == null ? void 0 : Y[1]), f.value = ((ue = c.value) == null ? void 0 : ue.month()) === o.value.month() ? c.value.date() : void 0);
7626
- }, Be = (q) => {
7628
+ const q = V.value ? (J = a.modelValue) == null ? void 0 : J[0] : a.modelValue;
7629
+ o.value = K(q), y.value = K(q), d.value = q && o.value, u.value = q && d.value.date(), !(!V.value || !q) && (c.value = K((Y = a.modelValue) == null ? void 0 : Y[1]), f.value = ((ue = c.value) == null ? void 0 : ue.month()) === o.value.month() ? c.value.date() : void 0);
7630
+ }, Oe = (q) => {
7627
7631
  const J = q + 11, Y = [];
7628
7632
  for (; q <= J; )
7629
7633
  Y.push(q++);
@@ -7634,8 +7638,8 @@ const Ad = { class: "flex items-center justify-between" }, Md = { class: "flex f
7634
7638
  }, [
7635
7639
  n("div", Ad, [
7636
7640
  h(r(ie), {
7637
- modelValue: B.value,
7638
- "onUpdate:modelValue": J[1] || (J[1] = (Y) => B.value = Y),
7641
+ modelValue: O.value,
7642
+ "onUpdate:modelValue": J[1] || (J[1] = (Y) => O.value = Y),
7639
7643
  distance: 10,
7640
7644
  position: "bottom",
7641
7645
  "is-popover": "",
@@ -7663,7 +7667,7 @@ const Ad = { class: "flex items-center justify-between" }, Md = { class: "flex f
7663
7667
  })
7664
7668
  ]),
7665
7669
  j.value ? (t(), i("div", Ed, [
7666
- (t(!0), i(P, null, R(Be(I.value - 11), (Y) => (t(), i("div", {
7670
+ (t(!0), i(P, null, R(Oe(I.value - 11), (Y) => (t(), i("div", {
7667
7671
  key: Y,
7668
7672
  class: v(["px-4 py-2 hover:border-oc-gray-200 border-2 border-transparent transition text-center rounded cursor-pointer", {
7669
7673
  "!border-oc-primary bg-oc-primary text-white": o.value.year() === Y
@@ -7671,10 +7675,10 @@ const Ad = { class: "flex items-center justify-between" }, Md = { class: "flex f
7671
7675
  onClick: (ue) => _(Y)
7672
7676
  }, $(Y), 11, Nd))), 128))
7673
7677
  ])) : (t(), i("div", zd, [
7674
- (t(), i(P, null, R(O, (Y, ue) => n("div", {
7678
+ (t(), i(P, null, R(B, (Y, ue) => n("div", {
7675
7679
  key: Y,
7676
7680
  class: v(["px-4 py-2 hover:border-oc-gray-200 border-2 border-transparent transition text-center rounded cursor-pointer", {
7677
- "!border-oc-primary bg-oc-primary text-white": V.value === Y
7681
+ "!border-oc-primary bg-oc-primary text-white": C.value === Y
7678
7682
  }]),
7679
7683
  onClick: (je) => te(ue)
7680
7684
  }, $(Y), 11, Rd)), 64))
@@ -7715,7 +7719,7 @@ const Ad = { class: "flex items-center justify-between" }, Md = { class: "flex f
7715
7719
  class: v(["w-9 rounded-full flex cursor-pointer items-center relative justify-center h-9", [
7716
7720
  be(Y) ? "bg-oc-primary text-white" : "hover:bg-oc-primary-50-tr",
7717
7721
  ge(Y) ? "pointer-events-none opacity-[.35]" : "",
7718
- C.value ? {
7722
+ V.value ? {
7719
7723
  ...we(Y) && {
7720
7724
  "before:bg-oc-primary-50-tr before:px-3 before:w-[calc(100%+0.5rem)] before:h-full before:absolute": !0,
7721
7725
  "before:rounded-l-full before:left-0 before:!w-[calc(100%+0.25rem)]": z.value.from.isSame(o.value.date(Y)),
@@ -7752,7 +7756,7 @@ const Ad = { class: "flex items-center justify-between" }, Md = { class: "flex f
7752
7756
  ], 2));
7753
7757
  }
7754
7758
  };
7755
- K.extend(Bt);
7759
+ K.extend(Ot);
7756
7760
  K.extend(It);
7757
7761
  K.extend(Dt);
7758
7762
  K.extend(ot);
@@ -7862,15 +7866,15 @@ const Yd = { class: "flex flex-col gap-y-2 w-full" }, Wd = { class: "flex w-full
7862
7866
  }, w = () => {
7863
7867
  a("resetCalendar"), a("update:modelValue", f.value ? [] : null), o.value = !1;
7864
7868
  }, D = (b) => {
7865
- const O = K(b);
7866
- return ((I) => I.get("month") === K().get("month"))(O);
7869
+ const B = K(b);
7870
+ return ((I) => I.get("month") === K().get("month"))(B);
7867
7871
  }, j = (b) => {
7868
7872
  d.value = b, a("update:modelValue", b ? "Indefinite" : null);
7869
- }, B = (b, O) => {
7873
+ }, O = (b, B) => {
7870
7874
  var I;
7871
7875
  const g = K(b, l.dateFormat, !0);
7872
- u.value[O] = g.format(l.dateFormat), u.value[O ? 0 : 1] = ((I = l.modelValue) == null ? void 0 : I[O ? 0 : 1]) || K().format(l.dateFormat);
7873
- }, C = () => {
7876
+ u.value[B] = g.format(l.dateFormat), u.value[B ? 0 : 1] = ((I = l.modelValue) == null ? void 0 : I[B ? 0 : 1]) || K().format(l.dateFormat);
7877
+ }, V = () => {
7874
7878
  if (u.value.length) {
7875
7879
  if (c.value = !1, u.value.some((b) => !K(b, l.dateFormat).isValid())) {
7876
7880
  c.value = !0, u.value = [];
@@ -7881,9 +7885,9 @@ const Yd = { class: "flex flex-col gap-y-2 w-full" }, Wd = { class: "flex w-full
7881
7885
  )), a("update:modelValue", u.value), u.value = [];
7882
7886
  }
7883
7887
  };
7884
- return (b, O) => (t(), x(r(ie), {
7888
+ return (b, B) => (t(), x(r(ie), {
7885
7889
  modelValue: o.value,
7886
- "onUpdate:modelValue": O[3] || (O[3] = (g) => o.value = g),
7890
+ "onUpdate:modelValue": B[3] || (B[3] = (g) => o.value = g),
7887
7891
  "is-disabled": e.disabled,
7888
7892
  placement: "bottom-start",
7889
7893
  distance: 10,
@@ -7895,13 +7899,13 @@ const Yd = { class: "flex flex-col gap-y-2 w-full" }, Wd = { class: "flex w-full
7895
7899
  updateCalendar: p,
7896
7900
  resetCalendar: w
7897
7901
  }, () => {
7898
- var I, V;
7902
+ var I, C;
7899
7903
  return [
7900
7904
  f.value ? (t(), x(r(Ju), {
7901
7905
  key: 0,
7902
7906
  "model-value": {
7903
7907
  start: (I = e.modelValue) == null ? void 0 : I[0],
7904
- end: (V = e.modelValue) == null ? void 0 : V[1]
7908
+ end: (C = e.modelValue) == null ? void 0 : C[1]
7905
7909
  },
7906
7910
  shortcuts: e.shortcuts,
7907
7911
  "count-calendars": e.countCalendars,
@@ -7958,7 +7962,7 @@ const Yd = { class: "flex flex-col gap-y-2 w-full" }, Wd = { class: "flex w-full
7958
7962
  "shadow-[0_0_0_2px]": o.value && !e.disabled
7959
7963
  }
7960
7964
  ]]),
7961
- onClick: O[2] || (O[2] = (g) => o.value ? g.stopPropagation : null)
7965
+ onClick: B[2] || (B[2] = (g) => o.value ? g.stopPropagation : null)
7962
7966
  }, [
7963
7967
  n("div", Xd, [
7964
7968
  h(r(T), {
@@ -7969,20 +7973,20 @@ const Yd = { class: "flex flex-col gap-y-2 w-full" }, Wd = { class: "flex w-full
7969
7973
  placeholder: "Start date",
7970
7974
  value: y.value[0] ? y.value[0].format(e.dateFormat) : "",
7971
7975
  class: "text-center bg-transparent outline-0 w-full placeholder:text-oc-text-300",
7972
- onInput: O[0] || (O[0] = (g) => B(g.target.value, 0)),
7973
- onKeydown: Fe(C, ["enter"]),
7974
- onBlur: C
7976
+ onInput: B[0] || (B[0] = (g) => O(g.target.value, 0)),
7977
+ onKeydown: Fe(V, ["enter"]),
7978
+ onBlur: V
7975
7979
  }, null, 40, Jd)
7976
7980
  ]),
7977
- O[4] || (O[4] = n("span", { class: "text-oc-text-400" }, "To", -1)),
7981
+ B[4] || (B[4] = n("span", { class: "text-oc-text-400" }, "To", -1)),
7978
7982
  n("div", Zd, [
7979
7983
  n("input", {
7980
7984
  placeholder: "End date",
7981
7985
  value: y.value[1] ? y.value[1].format(e.dateFormat) : "",
7982
7986
  class: "text-center bg-transparent outline-0 w-full placeholder:text-oc-text-300",
7983
- onInput: O[1] || (O[1] = (g) => B(g.target.value, 1)),
7984
- onKeydown: Fe(C, ["enter"]),
7985
- onBlur: C
7987
+ onInput: B[1] || (B[1] = (g) => O(g.target.value, 1)),
7988
+ onKeydown: Fe(V, ["enter"]),
7989
+ onBlur: V
7986
7990
  }, null, 40, Qd),
7987
7991
  h(r(T), {
7988
7992
  class: v([y.value.every(Boolean) ? "opacity-100" : "opacity-0", "text-oc-text-400"]),
@@ -8039,26 +8043,26 @@ const Yd = { class: "flex flex-col gap-y-2 w-full" }, Wd = { class: "flex w-full
8039
8043
  },
8040
8044
  setup(e, { expose: s, emit: a }) {
8041
8045
  const l = e, o = a, d = M(), c = M(), u = M(), f = M(0), y = M(0), p = () => {
8042
- var C, b;
8043
- l.type === "range" && parseInt((C = c.value) == null ? void 0 : C.value) - parseInt((b = d.value) == null ? void 0 : b.value) <= l.minGap && (d.value.value = parseInt(c.value.value) - l.minGap), D();
8046
+ var V, b;
8047
+ l.type === "range" && parseInt((V = c.value) == null ? void 0 : V.value) - parseInt((b = d.value) == null ? void 0 : b.value) <= l.minGap && (d.value.value = parseInt(c.value.value) - l.minGap), D();
8044
8048
  }, w = () => {
8045
- var C, b, O;
8046
- parseInt((C = c.value) == null ? void 0 : C.value) - parseInt((b = d.value) == null ? void 0 : b.value) <= l.minGap && (c.value.value = parseInt((O = d.value) == null ? void 0 : O.value) + l.minGap), D();
8047
- }, D = (C = !1) => {
8048
- var b, O, g, I;
8049
- f.value = (((b = d.value) == null ? void 0 : b.value) - l.minLimit) / (l.maxLimit - l.minLimit) * 100, y.value = l.type === "range" ? (((O = c.value) == null ? void 0 : O.value) - l.minLimit) / (l.maxLimit - l.minLimit) * 100 : 0, u.value.style.background = l.type === "range" ? `linear-gradient(to right, var(--oc-gray-100) ${f.value}% , var(--oc-primary-500) ${f.value}% , var(--oc-primary-500) ${y.value}%, var(--oc-gray-100) ${y.value}%)` : `linear-gradient(to right, var(--oc-primary-500) ${f.value}%, var(--oc-gray-100) ${f.value}%)`, C || o(
8049
+ var V, b, B;
8050
+ parseInt((V = c.value) == null ? void 0 : V.value) - parseInt((b = d.value) == null ? void 0 : b.value) <= l.minGap && (c.value.value = parseInt((B = d.value) == null ? void 0 : B.value) + l.minGap), D();
8051
+ }, D = (V = !1) => {
8052
+ var b, B, g, I;
8053
+ f.value = (((b = d.value) == null ? void 0 : b.value) - l.minLimit) / (l.maxLimit - l.minLimit) * 100, y.value = l.type === "range" ? (((B = c.value) == null ? void 0 : B.value) - l.minLimit) / (l.maxLimit - l.minLimit) * 100 : 0, u.value.style.background = l.type === "range" ? `linear-gradient(to right, var(--oc-gray-100) ${f.value}% , var(--oc-primary-500) ${f.value}% , var(--oc-primary-500) ${y.value}%, var(--oc-gray-100) ${y.value}%)` : `linear-gradient(to right, var(--oc-primary-500) ${f.value}%, var(--oc-gray-100) ${f.value}%)`, V || o(
8050
8054
  "update:modelValue",
8051
8055
  l.type === "range" ? [(g = d.value) == null ? void 0 : g.value, (I = c.value) == null ? void 0 : I.value] : d.value.value
8052
8056
  );
8053
- }, j = (C) => {
8054
- C.key >= "0" && C.key <= "9" || C.key === "Backspace" || C.preventDefault();
8055
- }, B = (C) => {
8056
- C && C[0] && C[1] && l.type === "range" ? (d.value.value = Number(C[0]), c.value.value = Number(C[1]), p(), l.type === "range" && w()) : C && l.type === "default" ? C <= l.maxLimit && C >= l.minLimit && (d.value.value = Number(C), p()) : D(!0);
8057
+ }, j = (V) => {
8058
+ V.key >= "0" && V.key <= "9" || V.key === "Backspace" || V.preventDefault();
8059
+ }, O = (V) => {
8060
+ V && V[0] && V[1] && l.type === "range" ? (d.value.value = Number(V[0]), c.value.value = Number(V[1]), p(), l.type === "range" && w()) : V && l.type === "default" ? V <= l.maxLimit && V >= l.minLimit && (d.value.value = Number(V), p()) : D(!0);
8057
8061
  };
8058
8062
  return s({
8059
- updateSlider: B
8060
- }), $e(() => B()), (C, b) => {
8061
- var O, g, I, V;
8063
+ updateSlider: O
8064
+ }), $e(() => O()), (V, b) => {
8065
+ var B, g, I, C;
8062
8066
  return t(), i("div", ec, [
8063
8067
  e.label ? (t(), i("label", tc, [
8064
8068
  n("span", lc, $(e.label), 1)
@@ -8080,7 +8084,7 @@ const Yd = { class: "flex flex-col gap-y-2 w-full" }, Wd = { class: "flex w-full
8080
8084
  type: "range",
8081
8085
  min: e.minLimit,
8082
8086
  max: e.maxLimit,
8083
- value: e.type === "range" ? (O = e.modelValue) == null ? void 0 : O[0] : e.modelValue,
8087
+ value: e.type === "range" ? (B = e.modelValue) == null ? void 0 : B[0] : e.modelValue,
8084
8088
  onInput: p
8085
8089
  }, null, 40, ac),
8086
8090
  e.type === "range" ? (t(), i("input", {
@@ -8102,14 +8106,14 @@ const Yd = { class: "flex flex-col gap-y-2 w-full" }, Wd = { class: "flex w-full
8102
8106
  key: 2,
8103
8107
  class: "group-hover:block absolute top-[1rem] z-[1] translate-x-1/2 rounded-sm py-[3px] px-[6px] min-w-[28px] bg-oc-text-500 text-center text-white text-sm font-medium leading-[20px]",
8104
8108
  style: oe(`right: ${100 - y.value}%`)
8105
- }, $((V = e.modelValue) == null ? void 0 : V[1]), 5)) : m("", !0),
8109
+ }, $((C = e.modelValue) == null ? void 0 : C[1]), 5)) : m("", !0),
8106
8110
  n("span", oc, [
8107
- k(C.$slots, "min-limit-label", {}, () => [
8111
+ k(V.$slots, "min-limit-label", {}, () => [
8108
8112
  W($(e.minLimit), 1)
8109
8113
  ], !0)
8110
8114
  ]),
8111
8115
  n("span", ic, [
8112
- k(C.$slots, "max-limit-label", {}, () => [
8116
+ k(V.$slots, "max-limit-label", {}, () => [
8113
8117
  W($(e.maxLimit), 1)
8114
8118
  ], !0)
8115
8119
  ])
@@ -8120,7 +8124,7 @@ const Yd = { class: "flex flex-col gap-y-2 w-full" }, Wd = { class: "flex w-full
8120
8124
  "model-value": e.modelValue,
8121
8125
  placeholder: "10",
8122
8126
  onKeydown: j,
8123
- "onUpdate:modelValue": B
8127
+ "onUpdate:modelValue": O
8124
8128
  }, null, 8, ["model-value"])) : m("", !0)
8125
8129
  ])
8126
8130
  ]);
@@ -8454,10 +8458,10 @@ const Yd = { class: "flex flex-col gap-y-2 w-full" }, Wd = { class: "flex w-full
8454
8458
  ]);
8455
8459
  };
8456
8460
  }
8457
- }), Vc = ["accept"], Bc = {
8461
+ }), Vc = ["accept"], Oc = {
8458
8462
  key: 0,
8459
8463
  class: "py-2 flex flex-col items-center gap-y-4"
8460
- }, Oc = { class: "flex items-baseline gap-x-3 w-full" }, Ic = { class: "text-sm flex-1 text-oc-text-400 pointer-events-none" }, Tc = ["accept"], Dc = {
8464
+ }, Bc = { class: "flex items-baseline gap-x-3 w-full" }, Ic = { class: "text-sm flex-1 text-oc-text-400 pointer-events-none" }, Tc = ["accept"], Dc = {
8461
8465
  key: 0,
8462
8466
  class: "relative group w-fit rounded overflow-hidden"
8463
8467
  }, Ac = ["src"], Mc = ["src"], jc = { class: "py-2 flex flex-col" }, Lc = { class: "flex flex-1 items-center gap-x-3 text-sm text-oc-text-400" }, Pc = { class: "flex flex-col w-7 h-7 items-center justify-center text-oc-text-300" }, Ec = { class: "uppercase text-[8px] font-bold leading-none block" }, Nc = { class: "flex" }, zc = { class: "text-sm text-oc-primary" }, Rc = { class: "rounded-full bg-oc-gray-100 w-[48px] h-2 overflow-hidden" }, of = {
@@ -8513,12 +8517,12 @@ const Yd = { class: "flex flex-col gap-y-2 w-full" }, Wd = { class: "flex w-full
8513
8517
  "invalidFileType"
8514
8518
  ],
8515
8519
  setup(e, { emit: s }) {
8516
- const a = e, l = s, o = M(), d = M(""), c = M(""), u = M(!0), f = M(!1), y = M(!1), p = M(!1), w = M(""), { currentFiles: D, onChangeFile: j, onDeleteFile: B } = $t(
8520
+ const a = e, l = s, o = M(), d = M(""), c = M(""), u = M(!0), f = M(!1), y = M(!1), p = M(!1), w = M(""), { currentFiles: D, onChangeFile: j, onDeleteFile: O } = $t(
8517
8521
  a.maxSize,
8518
8522
  l,
8519
8523
  a.accept,
8520
8524
  a.validateAcceptFileType
8521
- ), C = N(() => {
8525
+ ), V = N(() => {
8522
8526
  var L;
8523
8527
  return URL.createObjectURL((L = D.value) == null ? void 0 : L[0].file);
8524
8528
  }), b = N(() => {
@@ -8542,7 +8546,7 @@ const Yd = { class: "flex flex-col gap-y-2 w-full" }, Wd = { class: "flex w-full
8542
8546
  D.value = L;
8543
8547
  }
8544
8548
  });
8545
- const O = (L) => {
8549
+ const B = (L) => {
8546
8550
  L.preventDefault();
8547
8551
  const A = L.dataTransfer.files;
8548
8552
  j({ target: { files: A } }, a.format === "object");
@@ -8550,7 +8554,7 @@ const Yd = { class: "flex flex-col gap-y-2 w-full" }, Wd = { class: "flex w-full
8550
8554
  !d.value || !c.value || l("update:modelValue", { fileName: c, fileLink: d });
8551
8555
  }, I = (L) => {
8552
8556
  b.value.fileUrl = L, b.value.fileName = Date.now(), p.value = !1, w.value = "", l("update:modelValue", a.format === "object" ? b.value : [b.value]);
8553
- }, V = async (L) => {
8557
+ }, C = async (L) => {
8554
8558
  if (L)
8555
8559
  try {
8556
8560
  const A = await fetch(L, { method: "HEAD" });
@@ -8583,12 +8587,12 @@ const Yd = { class: "flex flex-col gap-y-2 w-full" }, Wd = { class: "flex w-full
8583
8587
  "show-upload-image-area": e.showUploadImageArea,
8584
8588
  "onUpdate:uploadedImage": E,
8585
8589
  onChange: A[0] || (A[0] = (Q) => r(j)(Q, a.format === "object")),
8586
- onDelete: A[1] || (A[1] = (Q) => r(B)(0))
8590
+ onDelete: A[1] || (A[1] = (Q) => r(O)(0))
8587
8591
  }, null, 8, ["accept", "uploaded-image", "image-classes", "show-upload-image-area"])) : e.isButtonOnly ? (t(), i(P, { key: 1 }, [
8588
8592
  h(r(G), F(e.buttonUploadProps, {
8589
8593
  onClick: A[2] || (A[2] = (Q) => {
8590
- var Be;
8591
- return (Be = o.value) == null ? void 0 : Be.click();
8594
+ var Oe;
8595
+ return (Oe = o.value) == null ? void 0 : Oe.click();
8592
8596
  })
8593
8597
  }), null, 16),
8594
8598
  n("input", {
@@ -8612,7 +8616,7 @@ const Yd = { class: "flex flex-col gap-y-2 w-full" }, Wd = { class: "flex w-full
8612
8616
  key: 0,
8613
8617
  autoplay: "",
8614
8618
  loop: "",
8615
- src: C.value
8619
+ src: V.value
8616
8620
  }, null, 8, Ac)) : (t(), i("img", {
8617
8621
  key: 1,
8618
8622
  src: (de = b.value) == null ? void 0 : de.fileUrl
@@ -8623,10 +8627,10 @@ const Yd = { class: "flex flex-col gap-y-2 w-full" }, Wd = { class: "flex w-full
8623
8627
  class: "absolute top-3 right-3"
8624
8628
  }, {
8625
8629
  menu: S(() => {
8626
- var Q, Be;
8630
+ var Q, Oe;
8627
8631
  return [
8628
8632
  n("div", jc, [
8629
- !((Be = (Q = b.value) == null ? void 0 : Q.file) != null && Be.type.includes("video")) && e.allowToEdit ? (t(), i("div", {
8633
+ !((Oe = (Q = b.value) == null ? void 0 : Q.file) != null && Oe.type.includes("video")) && e.allowToEdit ? (t(), i("div", {
8630
8634
  key: 0,
8631
8635
  class: "flex p-3 cursor-pointer items-center gap-x-3",
8632
8636
  onClick: z
@@ -8641,7 +8645,7 @@ const Yd = { class: "flex flex-col gap-y-2 w-full" }, Wd = { class: "flex w-full
8641
8645
  n("div", {
8642
8646
  class: "flex p-3 cursor-pointer items-center text-oc-error gap-x-3",
8643
8647
  onClick: A[12] || (A[12] = () => {
8644
- r(B)(0), y.value = !1;
8648
+ r(O)(0), y.value = !1;
8645
8649
  })
8646
8650
  }, [
8647
8651
  h(r(T), {
@@ -8701,7 +8705,7 @@ const Yd = { class: "flex flex-col gap-y-2 w-full" }, Wd = { class: "flex w-full
8701
8705
  e.isDisabled ? m("", !0) : (t(), i("div", {
8702
8706
  key: 0,
8703
8707
  class: "w-[36px] cursor-pointer flex text-oc-error items-center justify-center",
8704
- onClick: A[16] || (A[16] = (Q) => r(B)(0))
8708
+ onClick: A[16] || (A[16] = (Q) => r(O)(0))
8705
8709
  }, [
8706
8710
  h(r(T), {
8707
8711
  width: "16",
@@ -8711,15 +8715,15 @@ const Yd = { class: "flex flex-col gap-y-2 w-full" }, Wd = { class: "flex w-full
8711
8715
  ]))
8712
8716
  ])
8713
8717
  ], 64))
8714
- ], 2)) : (t(), i("div", Bc, [
8715
- n("div", Oc, [
8718
+ ], 2)) : (t(), i("div", Oc, [
8719
+ n("div", Bc, [
8716
8720
  e.variant === "url" ? (t(), i(P, { key: 0 }, [
8717
8721
  h(r(pe), {
8718
8722
  modelValue: d.value,
8719
8723
  "onUpdate:modelValue": A[4] || (A[4] = (Q) => d.value = Q),
8720
8724
  "error-message": d.value && !u.value ? "Invalid link" : "",
8721
8725
  placeholder: "https://website.com",
8722
- onBlur: A[5] || (A[5] = (Q) => V(d.value))
8726
+ onBlur: A[5] || (A[5] = (Q) => C(d.value))
8723
8727
  }, null, 8, ["modelValue", "error-message"]),
8724
8728
  h(r(pe), {
8725
8729
  modelValue: c.value,
@@ -8742,7 +8746,7 @@ const Yd = { class: "flex flex-col gap-y-2 w-full" }, Wd = { class: "flex w-full
8742
8746
  ]]),
8743
8747
  onDragenter: A[8] || (A[8] = (Q) => f.value = !0),
8744
8748
  onDragleave: A[9] || (A[9] = (Q) => f.value = !1),
8745
- onDrop: O,
8749
+ onDrop: B,
8746
8750
  onDragover: A[10] || (A[10] = ce(() => {
8747
8751
  }, ["prevent"]))
8748
8752
  }, [
@@ -8815,38 +8819,38 @@ const Yd = { class: "flex flex-col gap-y-2 w-full" }, Wd = { class: "flex w-full
8815
8819
  const a = e, l = s, o = M([]), d = M(!1), c = M(""), u = M({}), f = N(() => a.uploadedImages[c.value].fileUrl), y = M(!1), p = M(""), w = (I) => {
8816
8820
  y.value = !0, p.value = I;
8817
8821
  }, D = M(!1), j = () => {
8818
- const I = a.uploadedImages.find((V, z) => z === p.value);
8822
+ const I = a.uploadedImages.find((C, z) => z === p.value);
8819
8823
  I.current ? l("onRemoveImage", I) : (l("delete", p.value), D.value = !0, setTimeout(() => {
8820
8824
  D.value = !1;
8821
8825
  }, 1e3)), l(
8822
8826
  "update:uploadedImages",
8823
- a.uploadedImages.filter((V, z) => z !== p.value)
8827
+ a.uploadedImages.filter((C, z) => z !== p.value)
8824
8828
  ), y.value = !1;
8825
- }, B = (I) => {
8826
- const V = a.uploadedImages[c.value];
8827
- V.fileUrl = I, V.fileName = Date.now(), l("onEditImage", { ...V, index: c.value }), d.value = !1, c.value = "", u.value = {};
8828
- }, C = (I) => {
8829
- let V = a.uploadedImages[c.value];
8829
+ }, O = (I) => {
8830
+ const C = a.uploadedImages[c.value];
8831
+ C.fileUrl = I, C.fileName = Date.now(), l("onEditImage", { ...C, index: c.value }), d.value = !1, c.value = "", u.value = {};
8832
+ }, V = (I) => {
8833
+ let C = a.uploadedImages[c.value];
8830
8834
  Object.keys(I).forEach((z) => {
8831
- V[z] = I[z];
8835
+ C[z] = I[z];
8832
8836
  }), l("update:uploadedImages", a.uploadedImages);
8833
8837
  }, b = (I) => {
8834
- let V = a.uploadedImages.length + I.target.files.length > a.maxImages;
8835
- if (a.maxImages && V) {
8836
- l("onMaxFileExceed", V);
8838
+ let C = a.uploadedImages.length + I.target.files.length > a.maxImages;
8839
+ if (a.maxImages && C) {
8840
+ l("onMaxFileExceed", C);
8837
8841
  return;
8838
8842
  }
8839
8843
  l("change", I);
8840
- }, O = N(
8844
+ }, B = N(
8841
8845
  () => a.maxImages == null || a.maxImages && a.uploadedImages.length < a.maxImages
8842
- ), g = (I, V) => {
8846
+ ), g = (I, C) => {
8843
8847
  var z;
8844
8848
  c.value = I, (z = a.inputOptions) == null || z.forEach((E) => {
8845
- u.value[E] = V[E];
8849
+ u.value[E] = C[E];
8846
8850
  }), o[I] = !1, d.value = !0;
8847
8851
  };
8848
- return (I, V) => (t(), i("div", Fc, [
8849
- O.value ? (t(), i("label", Uc, [
8852
+ return (I, C) => (t(), i("div", Fc, [
8853
+ B.value ? (t(), i("label", Uc, [
8850
8854
  n("div", qc, [
8851
8855
  h(r(T), { name: "plus" })
8852
8856
  ]),
@@ -8865,14 +8869,14 @@ const Yd = { class: "flex flex-col gap-y-2 w-full" }, Wd = { class: "flex w-full
8865
8869
  filter: "filtered-el",
8866
8870
  class: "grid w-fit grid-cols-3 gap-3",
8867
8871
  style: oe(`grid-template-columns: repeat(${e.columnsCount}, 1fr)`),
8868
- "onUpdate:modelValue": V[0] || (V[0] = (z) => I.$emit("update:uploadedImages", z))
8872
+ "onUpdate:modelValue": C[0] || (C[0] = (z) => I.$emit("update:uploadedImages", z))
8869
8873
  }, {
8870
8874
  default: S(({ list: z }) => [
8871
8875
  (t(!0), i(P, null, R(z, (E, L) => (t(), i("div", {
8872
8876
  key: E.fileName,
8873
8877
  class: v(["w-[100px] group relative cursor-pointer aspect-square border rounded border-oc-accent-1-100 bg-cover bg-center", {
8874
8878
  "border-oc-primary": e.selectedImage.fileName === E.fileName,
8875
- "col-start-2": L === 0 && O.value
8879
+ "col-start-2": L === 0 && B.value
8876
8880
  }]),
8877
8881
  style: oe(`background-image: url(${E.fileUrl})`),
8878
8882
  onClick: (A) => I.$emit("update:selectedImage", E)
@@ -8899,7 +8903,7 @@ const Yd = { class: "flex flex-col gap-y-2 w-full" }, Wd = { class: "flex w-full
8899
8903
  height: "16",
8900
8904
  name: "pencil"
8901
8905
  }),
8902
- V[4] || (V[4] = n("span", null, "Edit Image", -1))
8906
+ C[4] || (C[4] = n("span", null, "Edit Image", -1))
8903
8907
  ], 8, Kc),
8904
8908
  n("div", {
8905
8909
  class: "flex p-3 cursor-pointer items-center text-oc-error gap-x-3",
@@ -8912,7 +8916,7 @@ const Yd = { class: "flex flex-col gap-y-2 w-full" }, Wd = { class: "flex w-full
8912
8916
  height: "16",
8913
8917
  name: "bin"
8914
8918
  }),
8915
- V[5] || (V[5] = n("span", null, "Delete", -1))
8919
+ C[5] || (C[5] = n("span", null, "Delete", -1))
8916
8920
  ], 8, Gc)
8917
8921
  ])
8918
8922
  ])
@@ -8952,19 +8956,19 @@ const Yd = { class: "flex flex-col gap-y-2 w-full" }, Wd = { class: "flex w-full
8952
8956
  d.value ? (t(), x(r(it), {
8953
8957
  key: 1,
8954
8958
  modelValue: d.value,
8955
- "onUpdate:modelValue": V[1] || (V[1] = (z) => d.value = z),
8959
+ "onUpdate:modelValue": C[1] || (C[1] = (z) => d.value = z),
8956
8960
  img: f.value,
8957
8961
  "input-options": e.inputOptions,
8958
8962
  "input-option-values": u.value,
8959
- onClose: V[2] || (V[2] = () => {
8963
+ onClose: C[2] || (C[2] = () => {
8960
8964
  d.value = !1, c.value = "";
8961
8965
  }),
8962
- onChangeImage: B,
8963
- "onUpdate:inputOptions": C
8966
+ onChangeImage: O,
8967
+ "onUpdate:inputOptions": V
8964
8968
  }, null, 8, ["modelValue", "img", "input-options", "input-option-values"])) : m("", !0),
8965
8969
  h(r(Au), {
8966
8970
  modelValue: y.value,
8967
- "onUpdate:modelValue": V[3] || (V[3] = (z) => y.value = z),
8971
+ "onUpdate:modelValue": C[3] || (C[3] = (z) => y.value = z),
8968
8972
  description: "Do you want to delete this image ?",
8969
8973
  onConfirm: j
8970
8974
  }, null, 8, ["modelValue"])
@@ -9032,41 +9036,41 @@ const Yd = { class: "flex flex-col gap-y-2 w-full" }, Wd = { class: "flex w-full
9032
9036
  l.validateAcceptFileType
9033
9037
  );
9034
9038
  $e(() => {
9035
- const B = [];
9036
- l.modelValue.length > 0 && (l.modelValue.forEach((C) => {
9037
- C.current && B.push({
9038
- current: C.current,
9039
+ const O = [];
9040
+ l.modelValue.length > 0 && (l.modelValue.forEach((V) => {
9041
+ V.current && O.push({
9042
+ current: V.current,
9039
9043
  file: null,
9040
- fileName: C.current.caption ?? "",
9044
+ fileName: V.current.caption ?? "",
9041
9045
  progress: 100,
9042
- fileUrl: C.current.path,
9043
- totalSize: C.current.file_size ?? 0,
9046
+ fileUrl: V.current.path,
9047
+ totalSize: V.current.file_size ?? 0,
9044
9048
  isLoaded: !0,
9045
- extension: C.current.extension ?? "png",
9046
- description: C.current.description,
9047
- link: C.current.link,
9048
- caption: C.current.caption,
9049
- caption_variant: C.current.caption_variant,
9050
- lightbox: C.current.lightbox
9049
+ extension: V.current.extension ?? "png",
9050
+ description: V.current.description,
9051
+ link: V.current.link,
9052
+ caption: V.current.caption,
9053
+ caption_variant: V.current.caption_variant,
9054
+ lightbox: V.current.lightbox
9051
9055
  });
9052
- }), f.value = B);
9056
+ }), f.value = O);
9053
9057
  });
9054
- const w = (B) => {
9055
- c.value = !0, y(B);
9056
- }, D = (B) => {
9057
- c.value = !1, p(B);
9058
+ const w = (O) => {
9059
+ c.value = !0, y(O);
9060
+ }, D = (O) => {
9061
+ c.value = !1, p(O);
9058
9062
  }, j = () => {
9059
- var B;
9060
- (B = o.value) == null || B.click();
9063
+ var O;
9064
+ (O = o.value) == null || O.click();
9061
9065
  };
9062
- return (B, C) => (t(), i("div", Qc, [
9066
+ return (O, V) => (t(), i("div", Qc, [
9063
9067
  h(r(ye), {
9064
9068
  label: e.label,
9065
9069
  hint: e.hint,
9066
9070
  "error-message": r(u) ? `File(s) is more than ${e.maxSize}MB` : e.errorMessage
9067
9071
  }, {
9068
9072
  hint: S(() => [
9069
- k(B.$slots, "hint")
9073
+ k(O.$slots, "hint")
9070
9074
  ]),
9071
9075
  default: S(() => [
9072
9076
  e.isImageOnly ? (t(), x(Zc, {
@@ -9078,17 +9082,17 @@ const Yd = { class: "flex flex-col gap-y-2 w-full" }, Wd = { class: "flex w-full
9078
9082
  "input-options": e.inputOptions,
9079
9083
  "max-images": e.maxImages,
9080
9084
  onChange: r(y),
9081
- "onUpdate:selectedImage": C[0] || (C[0] = (b) => B.$emit("update:selectedImage", b)),
9082
- "onUpdate:uploadedImages": C[1] || (C[1] = (b) => {
9083
- f.value = b, B.$emit("update:modelValue", b);
9085
+ "onUpdate:selectedImage": V[0] || (V[0] = (b) => O.$emit("update:selectedImage", b)),
9086
+ "onUpdate:uploadedImages": V[1] || (V[1] = (b) => {
9087
+ f.value = b, O.$emit("update:modelValue", b);
9084
9088
  }),
9085
- onOnEditImage: C[2] || (C[2] = (b) => B.$emit("onEditFile", b)),
9086
- onOnRemoveImage: C[3] || (C[3] = (b) => B.$emit("onRemoveFile", b)),
9089
+ onOnEditImage: V[2] || (V[2] = (b) => O.$emit("onEditFile", b)),
9090
+ onOnRemoveImage: V[3] || (V[3] = (b) => O.$emit("onRemoveFile", b)),
9087
9091
  onDelete: r(p),
9088
- onOnMaxFileExceed: C[4] || (C[4] = (b) => B.$emit("onMaxFileExceed", b))
9092
+ onOnMaxFileExceed: V[4] || (V[4] = (b) => O.$emit("onMaxFileExceed", b))
9089
9093
  }, {
9090
9094
  action: S((b) => [
9091
- k(B.$slots, "action", {
9095
+ k(O.$slots, "action", {
9092
9096
  item: b.item,
9093
9097
  removeItem: b.removeItem,
9094
9098
  fileIndex: b.i
@@ -9096,7 +9100,7 @@ const Yd = { class: "flex flex-col gap-y-2 w-full" }, Wd = { class: "flex w-full
9096
9100
  ]),
9097
9101
  _: 3
9098
9102
  }, 8, ["uploaded-images", "selected-image", "columns-count", "accept", "input-options", "max-images", "onChange", "onDelete"])) : e.isButtonOnly ? (t(), i(P, { key: 1 }, [
9099
- k(B.$slots, "button", { triggerInput: j }, () => [
9103
+ k(O.$slots, "button", { triggerInput: j }, () => [
9100
9104
  h(r(G), F(e.buttonUploadProps, { onClick: j }), null, 16)
9101
9105
  ]),
9102
9106
  n("input", {
@@ -9119,8 +9123,8 @@ const Yd = { class: "flex flex-col gap-y-2 w-full" }, Wd = { class: "flex w-full
9119
9123
  ]])
9120
9124
  }, [
9121
9125
  n("div", eu, [
9122
- (t(!0), i(P, null, R(r(f), (b, O) => (t(), i("div", {
9123
- key: `${O}-${b.fileName}`,
9126
+ (t(!0), i(P, null, R(r(f), (b, B) => (t(), i("div", {
9127
+ key: `${B}-${b.fileName}`,
9124
9128
  class: "flex justify-between relative items-center w-full last:mb-2"
9125
9129
  }, [
9126
9130
  n("div", tu, [
@@ -9154,7 +9158,7 @@ const Yd = { class: "flex flex-col gap-y-2 w-full" }, Wd = { class: "flex w-full
9154
9158
  "on-enable-delete": b.progress === 100 && c.value,
9155
9159
  "opacity-100": !c.value
9156
9160
  }]),
9157
- onClick: (g) => D(O)
9161
+ onClick: (g) => D(B)
9158
9162
  }, null, 8, ["class", "onClick"]))
9159
9163
  ]))), 128))
9160
9164
  ]),
@@ -9176,12 +9180,12 @@ const Yd = { class: "flex flex-col gap-y-2 w-full" }, Wd = { class: "flex w-full
9176
9180
  type: "file",
9177
9181
  multiple: "",
9178
9182
  accept: e.accept,
9179
- onDragover: C[5] || (C[5] = (b) => d.value = !0),
9180
- onDragleave: C[6] || (C[6] = (b) => d.value = !1),
9181
- onDrop: C[7] || (C[7] = (b) => d.value = !1),
9183
+ onDragover: V[5] || (V[5] = (b) => d.value = !0),
9184
+ onDragleave: V[6] || (V[6] = (b) => d.value = !1),
9185
+ onDrop: V[7] || (V[7] = (b) => d.value = !1),
9182
9186
  onChange: w
9183
9187
  }, null, 40, iu)),
9184
- r(f).length ? e.isDisabled ? m("", !0) : (t(), i("div", uu, C[9] || (C[9] = [
9188
+ r(f).length ? e.isDisabled ? m("", !0) : (t(), i("div", uu, V[9] || (V[9] = [
9185
9189
  n("span", { class: "text-oc-accent-1 text-sm" }, "+ Add more", -1)
9186
9190
  ]))) : (t(), i("div", su, [
9187
9191
  h(r(T), {
@@ -9189,7 +9193,7 @@ const Yd = { class: "flex flex-col gap-y-2 w-full" }, Wd = { class: "flex w-full
9189
9193
  class: v(e.isDisabled ? "text-oc-accent-1-200" : "text-oc-accent-1")
9190
9194
  }, null, 8, ["class"]),
9191
9195
  e.labelUploadArea ? (t(), i("div", ru, $(e.labelUploadArea), 1)) : e.isDisabled ? (t(), i("div", du, "Upload disabled")) : (t(), i("div", cu, [
9192
- C[8] || (C[8] = n("div", null, "Select documents or drag here", -1)),
9196
+ V[8] || (V[8] = n("div", null, "Select documents or drag here", -1)),
9193
9197
  n("div", null, "File max " + $(e.maxSize) + "MB", 1)
9194
9198
  ]))
9195
9199
  ]))
@@ -9312,20 +9316,20 @@ const Yd = { class: "flex flex-col gap-y-2 w-full" }, Wd = { class: "flex w-full
9312
9316
  setup(e, { expose: s, emit: a }) {
9313
9317
  const l = a, o = e, d = M(), c = M(), u = async (D) => {
9314
9318
  D != null && D.target && (o.isDisabled || (setTimeout(() => {
9315
- var j, B;
9316
- return (B = (j = d.value) == null ? void 0 : j.popperInstance) == null ? void 0 : B.update();
9319
+ var j, O;
9320
+ return (O = (j = d.value) == null ? void 0 : j.popperInstance) == null ? void 0 : O.update();
9317
9321
  }, 10), l("update:modelValue", !o.modelValue)));
9318
9322
  }, f = (D) => {
9319
9323
  o.isAttachToBody && !o.preventClickOutside && d.value.checkElementIsInsidePopper(D.target) || o.modelValue && !o.preventClickOutside && l("update:modelValue", !1);
9320
9324
  }, y = M(), p = M(0);
9321
9325
  return me(() => o.modelValue, async () => {
9322
- const D = window.innerHeight || document.documentElement.clientHeight, j = y.value.getBoundingClientRect().top, B = D - y.value.getBoundingClientRect().bottom, C = Math.max(j, B), O = C - (2 + (C === j ? 2.5 : 0)) * 16;
9323
- p.value = O > 0 ? O : 0, d.value.popperInstance.update();
9326
+ const D = window.innerHeight || document.documentElement.clientHeight, j = y.value.getBoundingClientRect().top, O = D - y.value.getBoundingClientRect().bottom, V = Math.max(j, O), B = V - (2 + (V === j ? 2.5 : 0)) * 16;
9327
+ p.value = B > 0 ? B : 0, d.value.popperInstance.update();
9324
9328
  }), s({
9325
9329
  dropdownScroll: c,
9326
9330
  toggleDropdown: u,
9327
9331
  popper: d
9328
- }), (D, j) => Oe((t(), i("span", {
9332
+ }), (D, j) => Be((t(), i("span", {
9329
9333
  ref_key: "parentElement",
9330
9334
  ref: y,
9331
9335
  class: "flex w-[inherit]"
@@ -9344,14 +9348,14 @@ const Yd = { class: "flex flex-col gap-y-2 w-full" }, Wd = { class: "flex w-full
9344
9348
  popper: S(() => [
9345
9349
  h(Ae, { name: "fade" }, {
9346
9350
  default: S(() => [
9347
- Oe(n("div", {
9351
+ Be(n("div", {
9348
9352
  ref_key: "dropdownScroll",
9349
9353
  ref: c,
9350
9354
  class: v([e.menuClasses, "rounded bg-oc-bg-light shadow min-w-[162px] overflow-y-auto"]),
9351
9355
  style: oe({
9352
9356
  maxHeight: (e.maxMenuHeight || p.value) - 68 + "px"
9353
9357
  }),
9354
- onScroll: j[0] || (j[0] = (B) => D.$emit("scroll", B))
9358
+ onScroll: j[0] || (j[0] = (O) => D.$emit("scroll", O))
9355
9359
  }, [
9356
9360
  k(D.$slots, "menu", { isPopoverOpen: e.modelValue }, void 0, !0)
9357
9361
  ], 38), [
@@ -9492,7 +9496,7 @@ const Yd = { class: "flex flex-col gap-y-2 w-full" }, Wd = { class: "flex w-full
9492
9496
  const f = () => {
9493
9497
  a.value && u();
9494
9498
  };
9495
- return (y, p) => Oe((t(), i("span", yu, [
9499
+ return (y, p) => Be((t(), i("span", yu, [
9496
9500
  h(r(bt), {
9497
9501
  ref_key: "popper",
9498
9502
  ref: d,
@@ -9505,7 +9509,7 @@ const Yd = { class: "flex flex-col gap-y-2 w-full" }, Wd = { class: "flex w-full
9505
9509
  popper: S(() => [
9506
9510
  h(Ae, { name: e.transitionName }, {
9507
9511
  default: S(() => [
9508
- Oe(n("div", {
9512
+ Be(n("div", {
9509
9513
  ref_key: "popperBodyEl",
9510
9514
  ref: o,
9511
9515
  class: v(["oc-tooltip", e.popperClass])
@@ -9708,7 +9712,7 @@ const Yd = { class: "flex flex-col gap-y-2 w-full" }, Wd = { class: "flex w-full
9708
9712
  }, Vu = {
9709
9713
  key: 0,
9710
9714
  class: "fixed w-screen z-[1008] bg-white top-0 left-0 h-full min-h-screen bg-black/[.45] flex items-center justify-center"
9711
- }, Bu = { class: "w-[calc(100%-40px)] h-[calc(100%-40px)]" }, Ou = { class: "modal-body p-9" }, rf = {
9715
+ }, Ou = { class: "w-[calc(100%-40px)] h-[calc(100%-40px)]" }, Bu = { class: "modal-body p-9" }, rf = {
9712
9716
  __name: "OcModalPage",
9713
9717
  props: {
9714
9718
  modelValue: {
@@ -9740,7 +9744,7 @@ const Yd = { class: "flex flex-col gap-y-2 w-full" }, Wd = { class: "flex w-full
9740
9744
  setup(e, { emit: s }) {
9741
9745
  const a = s;
9742
9746
  return (l, o) => e.modelValue ? (t(), i("div", Vu, [
9743
- n("div", Bu, [
9747
+ n("div", Ou, [
9744
9748
  k(l.$slots, "top"),
9745
9749
  n("div", {
9746
9750
  class: v(["relative z-[1008] shadow-normal max-w-[1440px] bg-[linear-gradient(180deg,_rgba(229,_238,_255,_0.5)_0%,_rgba(229,_238,_255,_0)_77.75%)] rounded-xl flex flex-col overflow-y-auto mx-auto", e.contentClass])
@@ -9768,7 +9772,7 @@ const Yd = { class: "flex flex-col gap-y-2 w-full" }, Wd = { class: "flex w-full
9768
9772
  }),
9769
9773
  o[2] || (o[2] = n("span", null, "Close", -1))
9770
9774
  ]),
9771
- n("div", Ou, [
9775
+ n("div", Bu, [
9772
9776
  k(l.$slots, "default")
9773
9777
  ])
9774
9778
  ], 2)
@@ -10203,45 +10207,45 @@ const Yd = { class: "flex flex-col gap-y-2 w-full" }, Wd = { class: "flex w-full
10203
10207
  SectionItem: vc,
10204
10208
  SelectOptions: hc
10205
10209
  }, c = (g) => d[g] ? d[g] : null, u = N(() => {
10206
- const g = (V) => V.split(`
10210
+ const g = (C) => C.split(`
10207
10211
  `).map((z) => z.trim()).filter(Boolean).map((z) => `"${z}"`).join(" "), I = {};
10208
- return Object.entries(a.grid).forEach(([V, z]) => {
10212
+ return Object.entries(a.grid).forEach(([C, z]) => {
10209
10213
  Object.entries(z).forEach(([E, L]) => {
10210
- I[`--grid-${V}-${E}`] = E === "area" ? g(L) : L;
10214
+ I[`--grid-${C}-${E}`] = E === "area" ? g(L) : L;
10211
10215
  });
10212
10216
  }), I;
10213
- }), f = (g) => typeof g == "object" ? g[0].key : g, y = (g) => `grid-area: ${f(g)}`, p = N(() => a.class), w = M({}), D = M({}), j = M({}), B = (g) => typeof g == "object" ? g[0].key : g, C = (g) => {
10217
+ }), f = (g) => typeof g == "object" ? g[0].key : g, y = (g) => `grid-area: ${f(g)}`, p = N(() => a.class), w = M({}), D = M({}), j = M({}), O = (g) => typeof g == "object" ? g[0].key : g, V = (g) => {
10214
10218
  a.jsonForm.forEach((I) => {
10215
- var V;
10219
+ var C;
10216
10220
  if (typeof I.name == "object") {
10217
10221
  let z = null;
10218
10222
  I.name.forEach((E) => {
10219
10223
  g[E.key] && (z ? z.push(g[E.key]) : z = [g[E.key]]);
10220
- }), w.value[B(I.name)] = z, O(I);
10224
+ }), w.value[O(I.name)] = z, B(I);
10221
10225
  } else
10222
- (V = I.props) != null && V.parentKey ? (w.value[I.props.parentKey] = g[I.props.parentKey] ?? {}, w.value[I.props.parentKey][I.name] = g[I.props.parentKey][I.name] ?? "") : w.value[I.name] = g[I.name] ?? "", O(I);
10226
+ (C = I.props) != null && C.parentKey ? (w.value[I.props.parentKey] = g[I.props.parentKey] ?? {}, w.value[I.props.parentKey][I.name] = g[I.props.parentKey][I.name] ?? "") : w.value[I.name] = g[I.name] ?? "", B(I);
10223
10227
  });
10224
10228
  }, b = () => {
10225
10229
  a.jsonForm.forEach((g) => {
10226
10230
  if (typeof g.name == "object") {
10227
10231
  let I = [];
10228
- g.name.forEach((V) => {
10229
- a.errors[V.key] && I.push(a.errors[V.key]);
10230
- }), D.value[B(g.name)] = I.join(",");
10232
+ g.name.forEach((C) => {
10233
+ a.errors[C.key] && I.push(a.errors[C.key]);
10234
+ }), D.value[O(g.name)] = I.join(",");
10231
10235
  } else
10232
10236
  D.value[g.name] = a.errors[g.name] ?? "";
10233
10237
  });
10234
- }, O = (g) => {
10238
+ }, B = (g) => {
10235
10239
  if (g.show_if || g.show_if_preview) {
10236
10240
  let I = g.class ? g.class : "";
10237
- g.show_if ? g.show_if_value !== void 0 ? g.show_if_value !== w.value[g.show_if] && (I = I + " hidden") : g.show_if_not !== void 0 ? g.show_if_not === w.value[g.show_if] && (I = I + " hidden") : g.show_if_min !== void 0 && (isNaN(parseInt(w.value[g.show_if])) ? 1 : parseInt(w.value[g.show_if])) < parseInt(g.show_if_min) && (I = I + " hidden") : g.show_if_preview && (g.show_if_preview_only !== void 0 ? g.show_if_preview_only !== a.previewMode && (I = I + " hidden") : g.show_if_preview_not !== void 0 && g.show_if_preview_not === a.previewMode && (I = I + " hidden")), typeof g.name == "object" ? j.value[B(g.name)] = I : j.value[g.name] = I;
10241
+ g.show_if ? g.show_if_value !== void 0 ? g.show_if_value !== w.value[g.show_if] && (I = I + " hidden") : g.show_if_not !== void 0 ? g.show_if_not === w.value[g.show_if] && (I = I + " hidden") : g.show_if_min !== void 0 && (isNaN(parseInt(w.value[g.show_if])) ? 1 : parseInt(w.value[g.show_if])) < parseInt(g.show_if_min) && (I = I + " hidden") : g.show_if_preview && (g.show_if_preview_only !== void 0 ? g.show_if_preview_only !== a.previewMode && (I = I + " hidden") : g.show_if_preview_not !== void 0 && g.show_if_preview_not === a.previewMode && (I = I + " hidden")), typeof g.name == "object" ? j.value[O(g.name)] = I : j.value[g.name] = I;
10238
10242
  } else
10239
10243
  j.value[g.name] = g.class ? g.class : "";
10240
10244
  };
10241
10245
  return me(
10242
10246
  () => a.values,
10243
10247
  (g) => {
10244
- C(g);
10248
+ V(g);
10245
10249
  },
10246
10250
  {
10247
10251
  deep: !0
@@ -10257,54 +10261,54 @@ const Yd = { class: "flex flex-col gap-y-2 w-full" }, Wd = { class: "flex w-full
10257
10261
  ), me(
10258
10262
  () => a.previewMode,
10259
10263
  () => {
10260
- C(a.values);
10264
+ V(a.values);
10261
10265
  }
10262
10266
  ), $e(() => {
10263
- C(a.values), b(a.errors);
10267
+ V(a.values), b(a.errors);
10264
10268
  }), (g, I) => Object.values(w.value).length > 0 ? (t(), i("div", {
10265
10269
  key: 0,
10266
10270
  class: v(e.grid ? `responsive-smart-form-grid ${p.value}` : p.value),
10267
10271
  style: oe(e.grid ? u.value : "")
10268
10272
  }, [
10269
- (t(!0), i(P, null, R(e.jsonForm, (V) => {
10273
+ (t(!0), i(P, null, R(e.jsonForm, (C) => {
10270
10274
  var z, E, L, A, U, H;
10271
10275
  return t(), i("div", {
10272
- key: f(V.name),
10273
- style: oe(e.grid ? y(V.name) : ""),
10276
+ key: f(C.name),
10277
+ style: oe(e.grid ? y(C.name) : ""),
10274
10278
  class: v([
10275
- V.type !== "Children" ? j.value[typeof V.name == "object" ? B(V.name) : V.name] : "",
10276
- V.class
10279
+ C.type !== "Children" ? j.value[typeof C.name == "object" ? O(C.name) : C.name] : "",
10280
+ C.class
10277
10281
  ])
10278
10282
  }, [
10279
- c(V.type) ? (t(), x(at(c(V.type)), F({
10283
+ c(C.type) ? (t(), x(at(c(C.type)), F({
10280
10284
  key: 0,
10281
10285
  ref_for: !0
10282
- }, V.props, {
10283
- "model-value": (z = V.props) != null && z.parentKey ? (L = (E = w.value) == null ? void 0 : E[V.props.parentKey]) == null ? void 0 : L[V.name] : w.value[typeof V.name == "object" ? B(V.name) : V.name],
10284
- "error-message": D.value[typeof V.name == "object" ? B(V.name) : V.name],
10285
- "onUpdate:modelValue": (X) => o(V, X)
10286
- }), null, 16, ["model-value", "error-message", "onUpdate:modelValue"])) : k(g.$slots, V.type, {
10286
+ }, C.props, {
10287
+ "model-value": (z = C.props) != null && z.parentKey ? (L = (E = w.value) == null ? void 0 : E[C.props.parentKey]) == null ? void 0 : L[C.name] : w.value[typeof C.name == "object" ? O(C.name) : C.name],
10288
+ "error-message": D.value[typeof C.name == "object" ? O(C.name) : C.name],
10289
+ "onUpdate:modelValue": (X) => o(C, X)
10290
+ }), null, 16, ["model-value", "error-message", "onUpdate:modelValue"])) : k(g.$slots, C.type, {
10287
10291
  key: 1,
10288
10292
  formId: e.id,
10289
- form: V,
10290
- value: (A = V.props) != null && A.parentKey ? (H = (U = w.value) == null ? void 0 : U[V.props.parentKey]) == null ? void 0 : H[V.name] : w.value[typeof V.name == "object" ? B(V.name) : V.name],
10291
- error: D.value[typeof V.name == "object" ? B(V.name) : V.name],
10293
+ form: C,
10294
+ value: (A = C.props) != null && A.parentKey ? (H = (U = w.value) == null ? void 0 : U[C.props.parentKey]) == null ? void 0 : H[C.name] : w.value[typeof C.name == "object" ? O(C.name) : C.name],
10295
+ error: D.value[typeof C.name == "object" ? O(C.name) : C.name],
10292
10296
  onUpdate: o
10293
10297
  })
10294
10298
  ], 6);
10295
10299
  }), 128))
10296
10300
  ], 6)) : m("", !0);
10297
10301
  }
10298
- }, mf = re(() => import("./OcDataTable-wMV3v19G.js")), ff = re(() => import("./OcFilterSearch-DDKNu88V.js")), vf = re(() => import("./OcFilterSearchFor-DkDyVxGt.js")), gf = re(() => import("./OcFilterForm-CPb10cSx.js")), Ju = re(
10299
- () => import("./OcComplexCalendar--wMxk0Ve.js")
10302
+ }, mf = re(() => import("./OcDataTable-DSv6mb3F.js")), ff = re(() => import("./OcFilterSearch-CHHFsVn-.js")), vf = re(() => import("./OcFilterSearchFor-bDLcVf6h.js")), gf = re(() => import("./OcFilterForm-DLcXQID6.js")), Ju = re(
10303
+ () => import("./OcComplexCalendar-BaKuUCk-.js")
10300
10304
  ), pf = re(
10301
- () => import("./OcComplexDatePicker-CY85RtqE.js")
10302
- ), it = re(() => import("./OcModalCropper-DLdsv4-U.js")), yf = re(() => import("./OcCropper-Dw5ATyZV.js")), Zu = re(() => import("./OcDraggable-CA_BCbpl.js")), xf = re(() => import("./OcDraggableList-B-D0GC5V.js")), hf = re(() => import("./OcEmojiPicker-CQn6hsXE.js")), bf = re(
10303
- () => import("./ThumbnailTheme-B2HFX7j8.js")
10305
+ () => import("./OcComplexDatePicker-CzTXyd8f.js")
10306
+ ), it = re(() => import("./OcModalCropper-Cd3F552b.js")), yf = re(() => import("./OcCropper-Dogk7ZVH.js")), Zu = re(() => import("./OcDraggable-CA_BCbpl.js")), xf = re(() => import("./OcDraggableList-LXK8JQqC.js")), hf = re(() => import("./OcEmojiPicker-DIqNIKuz.js")), bf = re(
10307
+ () => import("./ThumbnailTheme-hSB0WG8D.js")
10304
10308
  ), wf = re(
10305
- () => import("./ThumbnailSection-1yysvbfR.js")
10306
- ), $f = re(() => import("./SubPlanCard-CLpOv0cw.js")), kf = re(() => import("./OcTimePopup-CXGhaOev.js")), Qu = re(() => import("./OcTimePicker-ju8r0Pwk.js")), Sf = re(
10307
- () => import("./OcAccountSetupProgress-D5I7E6ID.js")
10309
+ () => import("./ThumbnailSection-DI_O8pPj.js")
10310
+ ), $f = re(() => import("./SubPlanCard-B0si_YTq.js")), kf = re(() => import("./OcTimePopup-CXGhaOev.js")), Qu = re(() => import("./OcTimePicker-DcI4XQG2.js")), Sf = re(
10311
+ () => import("./OcAccountSetupProgress-CjN-GEao.js")
10308
10312
  );
10309
10313
  export {
10310
10314
  Dm as $,
@@ -10312,7 +10316,7 @@ export {
10312
10316
  G as B,
10313
10317
  St as C,
10314
10318
  pn as D,
10315
- Bm as E,
10319
+ Om as E,
10316
10320
  wl as F,
10317
10321
  kt as G,
10318
10322
  Ue as H,
@@ -10329,7 +10333,7 @@ export {
10329
10333
  Lt as S,
10330
10334
  fl as T,
10331
10335
  km as U,
10332
- Om as V,
10336
+ Bm as V,
10333
10337
  Im as W,
10334
10338
  Am as X,
10335
10339
  Xn as Y,