@orchidui/core 1.0.8 → 1.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/DataDisplay/CustomerCard/OcCustomerCard.js +1 -1
- package/dist/DataDisplay/FloatContent/OcFloatContent.js +1 -1
- package/dist/DataDisplay/InfoCard/OcInfoCard.js +1 -1
- package/dist/DataDisplay/ListDetail/OcListDetail.js +1 -1
- package/dist/DataDisplay/ListItem/OcListItem.js +1 -1
- package/dist/DataDisplay/OnboardingListItem/OcOnboardingListItem.js +1 -1
- package/dist/DataDisplay/Overview/OcOverview.js +1 -1
- package/dist/DataDisplay/Pagination/OcPagination.js +1 -1
- package/dist/DataDisplay/Table/OcTable.js +1 -1
- package/dist/DataDisplay/TransferSummary/OcTransferSummary.js +1 -1
- package/dist/Disclosure/Accordion/OcAccordion.js +1 -1
- package/dist/Disclosure/OnboardingAccordion/OnboardingAccordion.js +1 -1
- package/dist/Disclosure/Steps/OcSteps.js +1 -1
- package/dist/Disclosure/Tabs/Tabs.js +1 -1
- package/dist/Disclosure/Variants/OcVariants.js +1 -1
- package/dist/Elements/AdditionalContent/OcAdditionalContent.js +1 -1
- package/dist/Elements/AuthenticationOption/AuthenticationOption.js +1 -1
- package/dist/Elements/Box/OcBox.js +1 -1
- package/dist/Elements/EmptyPage/OcEmptyPage.js +1 -1
- package/dist/Elements/FeatureOverviewCard/OcFeatureOverviewCard.js +1 -1
- package/dist/Elements/Header/OcHeader.js +1 -1
- package/dist/Elements/PageTitle/OcPageTitle.js +1 -1
- package/dist/Elements/SandboxBanner/OcSandboxBanner.js +1 -1
- package/dist/Elements/Sidebar/OcSidebar.js +1 -1
- package/dist/Elements/SubSidebar/OcSubSidebar.js +1 -1
- package/dist/Elements/VerificationOption/OcVerificationOption.js +1 -1
- package/dist/Feedback/Banner/OcBanner.js +1 -1
- package/dist/Feedback/Chip/OcChip.js +1 -1
- package/dist/Feedback/ShareIcon/OcShareIcon.js +1 -1
- package/dist/Feedback/Snackbar/OcSnackbar.js +1 -1
- package/dist/Form/BaseInput/OcBaseInput.js +1 -1
- package/dist/Form/Button/OcButton.js +1 -1
- package/dist/Form/Calendar/OcCalendar.js +1 -1
- package/dist/Form/CardInput/OcCardInput.js +1 -1
- package/dist/Form/Checkbox/OcCheckbox.js +1 -1
- package/dist/Form/CheckboxesGroup/OcCheckboxesGroup.js +1 -1
- package/dist/Form/Criteria/OcCriteria.js +1 -1
- package/dist/Form/Cropper/OcCropper.js +1 -1
- package/dist/Form/DatePicker/OcDatePicker.js +1 -1
- package/dist/Form/EmojiPicker/OcEmojiPicker.js +1 -1
- package/dist/Form/Input/OcInput.js +1 -1
- package/dist/Form/LinkInput/OcLinkInput.js +1 -1
- package/dist/Form/MultipleUploadFile/OcMultipleUploadFile.js +1 -1
- package/dist/Form/NumberInput/OcNumberInput.js +1 -1
- package/dist/Form/PhoneInput/OcPhoneInput.js +1 -1
- package/dist/Form/Radio/OcRadio.js +1 -1
- package/dist/Form/RadioGroup/OcRadioGroup.js +1 -1
- package/dist/Form/RangeInput/OcRangeInput.js +1 -1
- package/dist/Form/SectionItem/OcSectionItem.js +1 -1
- package/dist/Form/Select/OcSelect.js +1 -1
- package/dist/Form/SelectOptions/OcSelectOptions.js +1 -1
- package/dist/Form/SingleFileUpload/OcSingleFileUpload.js +1 -1
- package/dist/Form/TextArea/OcTextArea.js +1 -1
- package/dist/Form/index.js +1 -1
- package/dist/FormBuilder/OcFormBuilder.js +1 -1
- package/dist/{OcComplexCalendar-CIVengZ-.js → OcComplexCalendar-9rZbu59e.js} +1 -1
- package/dist/{OcComplexDatePicker-CF1YFQcW.js → OcComplexDatePicker-e9PArxZ1.js} +1 -1
- package/dist/{OcCropper-DUjA1GBN.js → OcCropper-B6ij7yY3.js} +1 -1
- package/dist/{OcDataTable-jEi8nv49.js → OcDataTable-BTgZYC64.js} +117 -117
- package/dist/{OcDraggableList-zuwcLtbA.js → OcDraggableList-BYzUbyJX.js} +1 -1
- package/dist/{OcEmojiPicker-CB3pj0zm.js → OcEmojiPicker-8a8G8-nU.js} +1 -1
- package/dist/{OcFilterForm-Cjh9_XCp.js → OcFilterForm-HRZ8LgFL.js} +1 -1
- package/dist/{OcFilterSearch-uwvSa4T-.js → OcFilterSearch-7oHB9RkR.js} +1 -1
- package/dist/{OcFilterSearchFor-slPlYfnK.js → OcFilterSearchFor-BvvqJ-b-.js} +1 -1
- package/dist/{OcModalCropper-DPHzg5DA.js → OcModalCropper-_JTW2Uvu.js} +2 -2
- package/dist/{OcTimePicker-CKpg4fbP.js → OcTimePicker-DM8yNBD3.js} +1 -1
- package/dist/Overlay/ConfirmationModal/OcConfirmationModal.js +1 -1
- package/dist/Overlay/CopyTooltip/OcCopyTooltip.js +1 -1
- package/dist/Overlay/Dropdown/OcDropdown.js +1 -1
- package/dist/Overlay/Modal/OcModal.js +1 -1
- package/dist/Overlay/SupportMenu/OcSupportMenu.js +1 -1
- package/dist/Overlay/Tooltip/OcTooltip.js +1 -1
- package/dist/Overlay/Whitelist/OcWhiteList.js +1 -1
- package/dist/{SubPlanCard-1SpYv17Z.js → SubPlanCard-60j8QhAA.js} +1 -1
- package/dist/{ThumbnailSection-BlC_pHTK.js → ThumbnailSection-DfeUfddb.js} +1 -1
- package/dist/{ThumbnailTheme-BDN3LEJ8.js → ThumbnailTheme-6GIOokSb.js} +1 -1
- package/dist/{index-Dr8aLhn5.js → index-D87rwdFq.js} +236 -232
- package/dist/index.js +1 -1
- package/package.json +1 -1
@@ -1,4 +1,4 @@
|
|
1
|
-
import { computed as z, ref as M, onMounted as Ce, openBlock as t, createElementBlock as s, normalizeClass as f, renderSlot as S, createCommentVNode as m, createElementVNode as n, createBlock as p, unref as i, Fragment as
|
1
|
+
import { computed as z, ref as M, onMounted as Ce, openBlock as t, createElementBlock as s, normalizeClass as f, renderSlot as S, createCommentVNode as m, createElementVNode as n, createBlock as p, unref as i, Fragment as L, renderList as R, withCtx as w, createTextVNode as W, toDisplayString as $, createVNode as h, mergeProps as F, normalizeProps as ve, guardReactiveProps as Ae, withModifiers as ye, defineComponent as Z, normalizeStyle as re, createSlots as ae, useSlots as ht, onBeforeUnmount as zt, withDirectives as Ie, vShow as ze, resolveDynamicComponent as bt, watch as fe, onUpdated as Nt, nextTick as Ye, reactive as Rt, Transition as je, useAttrs as Ft, withKeys as Ue, Teleport as Ut, onUnmounted as qt, defineAsyncComponent as de } from "vue";
|
2
2
|
import { S as Se } from "./OcSkeleton-CvdpGSQR.js";
|
3
3
|
import { _ as T } from "./OcIcon-CJgBICxh.js";
|
4
4
|
import { clickOutside as wt } from "./directives/clickOutside.js";
|
@@ -119,7 +119,7 @@ const Gt = {
|
|
119
119
|
"is-checked": b.value.length === c.value.length && b.value.length > 0,
|
120
120
|
onSelectAll: x
|
121
121
|
}, null, 8, ["is-sticky", "class", "is-partial", "is-checked"])) : m("", !0),
|
122
|
-
(t(!0), s(
|
122
|
+
(t(!0), s(L, null, R(u.value, (V) => (t(), p(i(st), {
|
123
123
|
key: V.key,
|
124
124
|
text: V.label,
|
125
125
|
"is-loading": e.isLoading,
|
@@ -142,7 +142,7 @@ const Gt = {
|
|
142
142
|
}, 1032, ["text", "is-loading", "variant", "is-sticky", "class"]))), 128))
|
143
143
|
], 2)
|
144
144
|
]),
|
145
|
-
e.isLoading ? (t(!0), s(
|
145
|
+
e.isLoading ? (t(!0), s(L, { key: 1 }, R(e.loadingRows, (V) => (t(), s("div", {
|
146
146
|
key: V,
|
147
147
|
class: f(["flex flex-wrap md:flex-nowrap group/row border-oc-gray-200 md:p-0 py-3", {
|
148
148
|
"pl-[40px]": o.value,
|
@@ -153,13 +153,13 @@ const Gt = {
|
|
153
153
|
key: 0,
|
154
154
|
class: "opacity-0 flex justify-center absolute left-0 md:relative w-[5%]"
|
155
155
|
})) : m("", !0),
|
156
|
-
(t(!0), s(
|
156
|
+
(t(!0), s(L, null, R(u.value, (N, E) => (t(), p(i(Fe), {
|
157
157
|
key: `${E}-${V}`,
|
158
158
|
class: f(N.class),
|
159
159
|
"is-loading": "",
|
160
160
|
"is-last": V === e.loadingRows
|
161
161
|
}, null, 8, ["class", "is-last"]))), 128))
|
162
|
-
], 2))), 128)) : (t(), s(
|
162
|
+
], 2))), 128)) : (t(), s(L, { key: 2 }, [
|
163
163
|
S(g.$slots, "table-body", {
|
164
164
|
fields: c.value,
|
165
165
|
headers: u.value,
|
@@ -172,7 +172,7 @@ const Gt = {
|
|
172
172
|
rowLink: e.rowLink,
|
173
173
|
calculateRowClass: O.value
|
174
174
|
}, () => [
|
175
|
-
(t(!0), s(
|
175
|
+
(t(!0), s(L, null, R(c.value, (V, N) => (t(), s("div", {
|
176
176
|
key: `${v.value(V)}-${N}`,
|
177
177
|
class: f({
|
178
178
|
"border-b": c.value.length !== N + 1,
|
@@ -200,8 +200,8 @@ const Gt = {
|
|
200
200
|
onSelected: (E) => y(V),
|
201
201
|
"onHover:field": I[0] || (I[0] = (E) => g.$emit("hover:cell", E))
|
202
202
|
}, null, 8, ["is-last", "is-selected", "class", "onSelected"])) : m("", !0),
|
203
|
-
(t(!0), s(
|
204
|
-
key: `${
|
203
|
+
(t(!0), s(L, null, R(u.value, (E, P) => (t(), p(i(Fe), {
|
204
|
+
key: `${P}-${N}`,
|
205
205
|
class: f(["flex border-oc-gray-200", [
|
206
206
|
typeof E.class == "function" ? E.class(V) : E.class,
|
207
207
|
E.stickyLeft && o.value ? "left-[40px] md:left-[32px]" : "left-0",
|
@@ -282,7 +282,7 @@ const Gt = {
|
|
282
282
|
e.isLoading ? (t(), p(i(Se), {
|
283
283
|
key: 0,
|
284
284
|
class: "rounded-full w-full overflow-hidden h-6"
|
285
|
-
})) : (t(), s(
|
285
|
+
})) : (t(), s(L, { key: 1 }, [
|
286
286
|
e.variant === r.TEXT ? S(l.$slots, "default", { key: 0 }, () => [
|
287
287
|
W($(e.text), 1)
|
288
288
|
]) : S(l.$slots, "default", { key: 1 }, () => [
|
@@ -395,7 +395,7 @@ const Gt = {
|
|
395
395
|
key: 1,
|
396
396
|
class: "w-6 h-6 mx-auto",
|
397
397
|
name: e.data
|
398
|
-
}, null, 8, ["name"])) : e.variant === r.IMAGE ? (t(), s(
|
398
|
+
}, null, 8, ["name"])) : e.variant === r.IMAGE ? (t(), s(L, { key: 2 }, [
|
399
399
|
e.data ? (t(), p(i(Be), {
|
400
400
|
key: 0,
|
401
401
|
link: e.link,
|
@@ -507,7 +507,7 @@ const Gt = {
|
|
507
507
|
href: e.href,
|
508
508
|
target: "_blank",
|
509
509
|
rel: "noopener noreferrer"
|
510
|
-
}, $(e.title), 9, Zt)) : (t(), s(
|
510
|
+
}, $(e.title), 9, Zt)) : (t(), s(L, { key: 1 }, [
|
511
511
|
W($(e.title), 1)
|
512
512
|
], 64)),
|
513
513
|
e.title ? m("", !0) : (t(), s("span", Qt, "-"))
|
@@ -584,7 +584,7 @@ const Gt = {
|
|
584
584
|
};
|
585
585
|
return (u, v) => {
|
586
586
|
var b, y;
|
587
|
-
return t(), s(
|
587
|
+
return t(), s(L, null, [
|
588
588
|
n("div", {
|
589
589
|
class: f(["h-[58px] w-full flex items-center", {
|
590
590
|
"font-medium": e.important || e.isTotal,
|
@@ -605,7 +605,7 @@ const Gt = {
|
|
605
605
|
class: f(["mx-auto transition-all duration-500", r.value ? "rotate-180" : ""])
|
606
606
|
}, null, 8, ["class"])) : m("", !0)
|
607
607
|
]),
|
608
|
-
e.isAlternative ? (t(!0), s(
|
608
|
+
e.isAlternative ? (t(!0), s(L, { key: 1 }, R(e.headers, (x, O) => {
|
609
609
|
var D;
|
610
610
|
return t(), s("div", {
|
611
611
|
key: x.key,
|
@@ -643,13 +643,13 @@ const Gt = {
|
|
643
643
|
];
|
644
644
|
}),
|
645
645
|
_: 2
|
646
|
-
}, 1024)) : (t(), s(
|
646
|
+
}, 1024)) : (t(), s(L, { key: 1 }, [
|
647
647
|
W($((j = e.row) == null ? void 0 : j[x == null ? void 0 : x.key]), 1)
|
648
648
|
], 64))
|
649
649
|
];
|
650
650
|
})
|
651
651
|
], 2);
|
652
|
-
}), 128)) : (t(), s(
|
652
|
+
}), 128)) : (t(), s(L, { key: 0 }, [
|
653
653
|
n("div", {
|
654
654
|
class: "flex-1 gap-x-2 items-center flex px-4 py-3",
|
655
655
|
style: re(e.depth ? { paddingLeft: 12 + e.depth * 20 + "px" } : {})
|
@@ -687,7 +687,7 @@ const Gt = {
|
|
687
687
|
class: "transition-all overflow-hidden duration-500",
|
688
688
|
style: re({ maxHeight: a.value })
|
689
689
|
}, [
|
690
|
-
(t(!0), s(
|
690
|
+
(t(!0), s(L, null, R(e.row.children, (x, O) => (t(), p(i(Ee), {
|
691
691
|
key: O,
|
692
692
|
row: x,
|
693
693
|
important: x.important,
|
@@ -719,7 +719,7 @@ const Gt = {
|
|
719
719
|
setup(e) {
|
720
720
|
return (r, a) => (t(), s("div", il, [
|
721
721
|
a[0] || (a[0] = n("div", { class: "w-9" }, null, -1)),
|
722
|
-
(t(!0), s(
|
722
|
+
(t(!0), s(L, null, R(e.headers, (l) => (t(), s("div", {
|
723
723
|
key: l.key,
|
724
724
|
class: f(["py-3 px-4 flex-1 uppercase text-xs text-oc-text-400 font-medium", l.class])
|
725
725
|
}, $(l.label), 3))), 128)),
|
@@ -757,15 +757,15 @@ const Gt = {
|
|
757
757
|
setup(e) {
|
758
758
|
const r = e, a = z(() => Object.fromEntries(r.headers.map((l) => [l.key, ""])));
|
759
759
|
return (l, o) => (t(), s("div", rl, [
|
760
|
-
e.isAlternative ? (t(), s(
|
760
|
+
e.isAlternative ? (t(), s(L, { key: 0 }, [
|
761
761
|
h(sl, { headers: e.headers }, null, 8, ["headers"]),
|
762
|
-
e.isLoading && !e.fields.length ? (t(!0), s(
|
762
|
+
e.isLoading && !e.fields.length ? (t(!0), s(L, { key: 0 }, R(e.loadingRows, (d) => (t(), p(Ee, {
|
763
763
|
key: d,
|
764
764
|
"is-loading": "",
|
765
765
|
"is-alternative": e.isAlternative,
|
766
766
|
row: a.value,
|
767
767
|
headers: e.headers
|
768
|
-
}, null, 8, ["is-alternative", "row", "headers"]))), 128)) : (t(!0), s(
|
768
|
+
}, null, 8, ["is-alternative", "row", "headers"]))), 128)) : (t(!0), s(L, { key: 1 }, R(e.fields, (d, c) => (t(), p(Ee, {
|
769
769
|
key: c,
|
770
770
|
row: d,
|
771
771
|
headers: e.headers,
|
@@ -780,7 +780,7 @@ const Gt = {
|
|
780
780
|
])
|
781
781
|
}))
|
782
782
|
]), 1032, ["row", "headers", "is-loading", "is-alternative", "important"]))), 128))
|
783
|
-
], 64)) : (t(!0), s(
|
783
|
+
], 64)) : (t(!0), s(L, { key: 1 }, R(e.headers, (d, c) => (t(), p(Ee, {
|
784
784
|
key: c,
|
785
785
|
row: d,
|
786
786
|
headers: e.headers,
|
@@ -865,7 +865,7 @@ const Gt = {
|
|
865
865
|
onClick: o[0] || (o[0] = (d) => e.modelValue > 1 ? l.$emit("update:modelValue", e.modelValue > 1 ? e.modelValue - 1 : e.modelValue) : "")
|
866
866
|
}, null, 8, ["disabled", "size"]),
|
867
867
|
n("div", ul, [
|
868
|
-
(t(!0), s(
|
868
|
+
(t(!0), s(L, null, R(a.value, (d) => (t(), p(i(ct), {
|
869
869
|
key: d,
|
870
870
|
size: e.size,
|
871
871
|
"is-rounded": e.isRounded,
|
@@ -974,7 +974,7 @@ const Gt = {
|
|
974
974
|
n("div", {
|
975
975
|
class: f(["flex gap-x-5 items-start md:flex-row flex-col gap-y-3 md:gap-y-0", e.containerClass])
|
976
976
|
}, [
|
977
|
-
(t(!0), s(
|
977
|
+
(t(!0), s(L, null, R(e.items, (l, o) => (t(), p(i(qe), {
|
978
978
|
key: o,
|
979
979
|
title: l.title,
|
980
980
|
class: f(["flex-1", l.class]),
|
@@ -1074,7 +1074,7 @@ const Gt = {
|
|
1074
1074
|
e.isLoading ? (t(), s("div", pl, [
|
1075
1075
|
h(i(Se), { class: "w-[80%] h-[14px] rounded-sm" }),
|
1076
1076
|
h(i(Se), { class: "w-full h-[20px] rounded-sm" })
|
1077
|
-
])) : (t(), s(
|
1077
|
+
])) : (t(), s(L, { key: 1 }, [
|
1078
1078
|
n("div", {
|
1079
1079
|
class: f(["flex items-center", e.isBig ? "gap-x-[.75rem]" : "gap-x-3"])
|
1080
1080
|
}, [
|
@@ -1125,7 +1125,7 @@ const Gt = {
|
|
1125
1125
|
class: f([e.isBig ? "text-xl" : "", "truncate"])
|
1126
1126
|
}, [
|
1127
1127
|
S(r.$slots, "content", {}, () => [
|
1128
|
-
isNaN(e.percentValue) ? (t(), s(
|
1128
|
+
isNaN(e.percentValue) ? (t(), s(L, { key: 1 }, [
|
1129
1129
|
W($(e.content), 1)
|
1130
1130
|
], 64)) : (t(), s("div", $l, [
|
1131
1131
|
n("div", kl, $(e.content), 1),
|
@@ -1175,10 +1175,10 @@ const Gt = {
|
|
1175
1175
|
}, Ml = {
|
1176
1176
|
key: 1,
|
1177
1177
|
class: "text-sm text-oc-text-400 truncate"
|
1178
|
-
},
|
1178
|
+
}, Pl = {
|
1179
1179
|
key: 0,
|
1180
1180
|
class: "flex flex-col gap-y-4 pt-4 w-full"
|
1181
|
-
},
|
1181
|
+
}, Ll = { class: "flex flex-col gap-y-2 w-full items-center" }, El = { key: 0 }, zl = {
|
1182
1182
|
__name: "OcCustomerCard",
|
1183
1183
|
props: {
|
1184
1184
|
variant: {
|
@@ -1202,7 +1202,7 @@ const Gt = {
|
|
1202
1202
|
setup(e, { emit: r }) {
|
1203
1203
|
const a = r;
|
1204
1204
|
return (l, o) => {
|
1205
|
-
var d, c, u, v, b, y, x, O, D, C, j, k, B, g, I, V, N, E,
|
1205
|
+
var d, c, u, v, b, y, x, O, D, C, j, k, B, g, I, V, N, E, P;
|
1206
1206
|
return t(), s("div", {
|
1207
1207
|
class: f(["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 }])
|
1208
1208
|
}, [
|
@@ -1225,7 +1225,7 @@ const Gt = {
|
|
1225
1225
|
name: "filled-x-circle",
|
1226
1226
|
onClick: o[1] || (o[1] = (A) => a("closeCustomer"))
|
1227
1227
|
})) : m("", !0),
|
1228
|
-
e.customer ? (t(), s(
|
1228
|
+
e.customer ? (t(), s(L, { key: 2 }, [
|
1229
1229
|
n("div", Bl, [
|
1230
1230
|
h(i(it), {
|
1231
1231
|
class: "shrink-0 uppercase",
|
@@ -1247,7 +1247,7 @@ const Gt = {
|
|
1247
1247
|
e.isBeneficiary ? (t(), s("span", jl, $(e.customer.bank_name) + " / " + $(e.customer.bank_account_number), 1)) : (t(), s("span", Ml, $(((u = e.customer) == null ? void 0 : u.email) || ((v = e.customer) != null && v.phone_number_country_code && ((b = e.customer) != null && b.phone_number) ? `+${e.customer.phone_number_country_code} ${e.customer.phone_number}` : (y = e.customer) != null && y.phone_number ? e.customer.phone_number : "-")), 1))
|
1248
1248
|
])
|
1249
1249
|
]),
|
1250
|
-
e.variant !== "small" ? (t(), s("div",
|
1250
|
+
e.variant !== "small" ? (t(), s("div", Pl, [
|
1251
1251
|
e.isBeneficiary ? m("", !0) : (t(), p(i(De), {
|
1252
1252
|
key: 0,
|
1253
1253
|
label: "Phone",
|
@@ -1265,12 +1265,12 @@ const Gt = {
|
|
1265
1265
|
((B = (k = e.customer) == null ? void 0 : k.address) == null ? void 0 : B.city) || "",
|
1266
1266
|
((I = (g = e.customer) == null ? void 0 : g.address) == null ? void 0 : I.state) || "",
|
1267
1267
|
((N = (V = e.customer) == null ? void 0 : V.address) == null ? void 0 : N.postal_code) || "",
|
1268
|
-
((
|
1268
|
+
((P = (E = e.customer) == null ? void 0 : E.address) == null ? void 0 : P.country) || ""
|
1269
1269
|
].join(" ").trim() || "-"
|
1270
1270
|
}, null, 8, ["content"]))
|
1271
1271
|
])) : m("", !0)
|
1272
|
-
], 64)) : e.isBeneficiary ? m("", !0) : (t(), s(
|
1273
|
-
n("div",
|
1272
|
+
], 64)) : e.isBeneficiary ? m("", !0) : (t(), s(L, { key: 3 }, [
|
1273
|
+
n("div", Ll, [
|
1274
1274
|
h(i(it), { size: 32 }, {
|
1275
1275
|
default: w(() => [
|
1276
1276
|
h(i(T), {
|
@@ -1456,7 +1456,7 @@ const Gt = {
|
|
1456
1456
|
}, 8, ["modelValue"])
|
1457
1457
|
]),
|
1458
1458
|
(o = e.urls) != null && o.length ? (t(), s("div", Zl, [
|
1459
|
-
(t(!0), s(
|
1459
|
+
(t(!0), s(L, null, R(e.urls, (d, c) => (t(), p(i(dn), {
|
1460
1460
|
key: c,
|
1461
1461
|
title: d.title,
|
1462
1462
|
url: d.url
|
@@ -1543,7 +1543,7 @@ const Gt = {
|
|
1543
1543
|
n("div", ia, [
|
1544
1544
|
n("span", sa, $(e.title), 1),
|
1545
1545
|
e.chips.length ? (t(), s("div", ra, [
|
1546
|
-
(t(!0), s(
|
1546
|
+
(t(!0), s(L, null, R(e.chips, (x, O) => (t(), p(i(le), F({
|
1547
1547
|
key: O,
|
1548
1548
|
class: "font-medium",
|
1549
1549
|
ref_for: !0
|
@@ -1571,7 +1571,7 @@ const Gt = {
|
|
1571
1571
|
]),
|
1572
1572
|
(y = e.paymentMethods) != null && y.length ? (t(), s("div", ua, [
|
1573
1573
|
b[3] || (b[3] = n("span", { class: "text-sm font-medium text-oc-text-300 whitespace-nowrap" }, "Payment methods", -1)),
|
1574
|
-
(t(!0), s(
|
1574
|
+
(t(!0), s(L, null, R(e.paymentMethods.slice(0, d.value), (x) => (t(), s("img", {
|
1575
1575
|
key: x.method,
|
1576
1576
|
width: "35",
|
1577
1577
|
height: "24",
|
@@ -1590,7 +1590,7 @@ const Gt = {
|
|
1590
1590
|
]),
|
1591
1591
|
popper: w(() => [
|
1592
1592
|
n("div", fa, [
|
1593
|
-
(t(!0), s(
|
1593
|
+
(t(!0), s(L, null, R(l.value, (x) => (t(), s("img", {
|
1594
1594
|
key: x.method,
|
1595
1595
|
width: "35",
|
1596
1596
|
height: "24",
|
@@ -1659,7 +1659,7 @@ const Gt = {
|
|
1659
1659
|
e.title ? (t(), s("span", ba, $(e.title), 1)) : m("", !0)
|
1660
1660
|
]),
|
1661
1661
|
e.chips.length ? (t(), s("div", wa, [
|
1662
|
-
(t(!0), s(
|
1662
|
+
(t(!0), s(L, null, R(e.chips, (u, v) => (t(), p(i(le), {
|
1663
1663
|
key: v,
|
1664
1664
|
label: u.label,
|
1665
1665
|
variant: u.variant,
|
@@ -1704,7 +1704,7 @@ const Gt = {
|
|
1704
1704
|
W(" " + $(e.description), 1)
|
1705
1705
|
]),
|
1706
1706
|
e.details.length ? (t(), s("div", Sa, [
|
1707
|
-
(t(!0), s(
|
1707
|
+
(t(!0), s(L, null, R(e.details, (u, v) => (t(), s("div", {
|
1708
1708
|
key: v,
|
1709
1709
|
class: "flex items-center gap-2"
|
1710
1710
|
}, [
|
@@ -1734,7 +1734,7 @@ const Gt = {
|
|
1734
1734
|
}, Aa = {
|
1735
1735
|
key: 1,
|
1736
1736
|
class: "flex gap-3"
|
1737
|
-
}, ja = { class: "flex flex-col gap-4" }, Ma = { class: "text-xs whitespace-nowrap uppercase text-oc-text-300 overflow-hidden text-ellipsis" },
|
1737
|
+
}, ja = { class: "flex flex-col gap-4" }, Ma = { class: "text-xs whitespace-nowrap uppercase text-oc-text-300 overflow-hidden text-ellipsis" }, Pa = /* @__PURE__ */ Z({
|
1738
1738
|
__name: "OcTerminal",
|
1739
1739
|
props: {
|
1740
1740
|
title: String,
|
@@ -1778,7 +1778,7 @@ const Gt = {
|
|
1778
1778
|
n("div", Ta, [
|
1779
1779
|
e.title ? (t(), s("span", Da, $(e.title), 1)) : m("", !0),
|
1780
1780
|
e.chips.length ? (t(), s("div", Aa, [
|
1781
|
-
(t(!0), s(
|
1781
|
+
(t(!0), s(L, null, R(e.chips, (o, d) => (t(), p(i(le), {
|
1782
1782
|
key: d,
|
1783
1783
|
label: o.label,
|
1784
1784
|
variant: o.variant,
|
@@ -1798,7 +1798,7 @@ const Gt = {
|
|
1798
1798
|
}, e.buttonProps), null, 16)) : m("", !0)
|
1799
1799
|
], 2));
|
1800
1800
|
}
|
1801
|
-
}),
|
1801
|
+
}), La = {
|
1802
1802
|
key: 0,
|
1803
1803
|
class: "min-w-[100px]"
|
1804
1804
|
}, Ea = { class: "grow pl-3" }, za = { class: "flex w-full" }, Na = { class: "text-lg font-medium" }, Ra = { class: "ml-auto" }, Fa = { class: "cursor-pointer flex hover:bg-oc-gray-200 items-center rounded p-2" }, Ua = { class: "line-clamp-2 mb-3 max-w-[80%] text-oc-text-400" }, qa = { class: "w-full text-sm lg:mt-4 flex flex-wrap items-center" }, Ha = { class: "mr-3" }, Ya = { class: "text-oc-text-400 font-medium" }, Wa = {
|
@@ -1815,7 +1815,7 @@ const Gt = {
|
|
1815
1815
|
class: "w-full p-5 flex",
|
1816
1816
|
onMouseleave: d[1] || (d[1] = (c) => r.value = !1)
|
1817
1817
|
}, [
|
1818
|
-
e.page.page_cover_url ? (t(), s("div",
|
1818
|
+
e.page.page_cover_url ? (t(), s("div", La, [
|
1819
1819
|
n("div", {
|
1820
1820
|
class: "w-[100px] h-[100px] rounded !bg-cover",
|
1821
1821
|
style: re(`background:url(${l(e.page.page_cover_url)})`)
|
@@ -1932,7 +1932,7 @@ const Gt = {
|
|
1932
1932
|
n("div", Ja, [
|
1933
1933
|
e.title ? (t(), s("span", Za, $(e.title), 1)) : m("", !0),
|
1934
1934
|
e.chips.length ? (t(), s("div", Qa, [
|
1935
|
-
(t(!0), s(
|
1935
|
+
(t(!0), s(L, null, R(e.chips, (v, b) => (t(), p(i(le), {
|
1936
1936
|
key: b,
|
1937
1937
|
label: v.label,
|
1938
1938
|
variant: v.variant,
|
@@ -2033,7 +2033,7 @@ const Gt = {
|
|
2033
2033
|
case "general":
|
2034
2034
|
return Va;
|
2035
2035
|
case "terminal":
|
2036
|
-
return
|
2036
|
+
return Pa;
|
2037
2037
|
case "logo":
|
2038
2038
|
return la;
|
2039
2039
|
case "page":
|
@@ -2296,13 +2296,13 @@ const Gt = {
|
|
2296
2296
|
}, e.dropdownProps), {
|
2297
2297
|
menu: w(() => [
|
2298
2298
|
n("div", $n, [
|
2299
|
-
(t(!0), s(
|
2299
|
+
(t(!0), s(L, null, R(e.dropdownOptions.top, (d, c) => (t(), p(i(pe), F({
|
2300
2300
|
key: c,
|
2301
2301
|
ref_for: !0
|
2302
2302
|
}, d), null, 16))), 128))
|
2303
2303
|
]),
|
2304
2304
|
e.dropdownOptions.bottom ? (t(), s("div", kn, [
|
2305
|
-
(t(!0), s(
|
2305
|
+
(t(!0), s(L, null, R(e.dropdownOptions.bottom, (d, c) => (t(), p(i(pe), F({
|
2306
2306
|
key: c,
|
2307
2307
|
ref_for: !0
|
2308
2308
|
}, d), null, 16))), 128))
|
@@ -2526,7 +2526,7 @@ const Gt = {
|
|
2526
2526
|
}, null, 8, ["width", "height", "name"]))
|
2527
2527
|
], 2));
|
2528
2528
|
}
|
2529
|
-
}), jn = { class: "flex items-center flex-1 gap-x-4" }, Mn = { class: "flex flex-col gap-y-1" },
|
2529
|
+
}), jn = { class: "flex items-center flex-1 gap-x-4" }, Mn = { class: "flex flex-col gap-y-1" }, Pn = { class: "font-medium" }, Ln = { class: "text-oc-text-400 text-sm" }, Zu = /* @__PURE__ */ Z({
|
2530
2530
|
__name: "OnboardingAccordion",
|
2531
2531
|
props: {
|
2532
2532
|
description: {
|
@@ -2565,8 +2565,8 @@ const Gt = {
|
|
2565
2565
|
n("div", jn, [
|
2566
2566
|
h(An, { variant: e.variant }, null, 8, ["variant"]),
|
2567
2567
|
n("div", Mn, [
|
2568
|
-
n("span",
|
2569
|
-
n("span",
|
2568
|
+
n("span", Pn, $(e.title), 1),
|
2569
|
+
n("span", Ln, $(e.description), 1)
|
2570
2570
|
])
|
2571
2571
|
]),
|
2572
2572
|
S(d.$slots, "button-group"),
|
@@ -2669,7 +2669,7 @@ const Gt = {
|
|
2669
2669
|
n("div", {
|
2670
2670
|
class: f(["flex items-center", { "flex-col": b.value }])
|
2671
2671
|
}, [
|
2672
|
-
(t(!0), s(
|
2672
|
+
(t(!0), s(L, null, R(e.tabs, (j) => {
|
2673
2673
|
var k, B;
|
2674
2674
|
return t(), s("div", {
|
2675
2675
|
key: j.value,
|
@@ -2795,7 +2795,7 @@ const Gt = {
|
|
2795
2795
|
setup(e) {
|
2796
2796
|
return (r, a) => (t(), s("div", qn, [
|
2797
2797
|
S(r.$slots, "default", {}, () => [
|
2798
|
-
(t(!0), s(
|
2798
|
+
(t(!0), s(L, null, R(e.steps, (l, o) => (t(), p(Un, {
|
2799
2799
|
key: o,
|
2800
2800
|
title: l.title,
|
2801
2801
|
value: o + 1,
|
@@ -2822,7 +2822,7 @@ const Gt = {
|
|
2822
2822
|
emits: ["update:modelValue"],
|
2823
2823
|
setup(e) {
|
2824
2824
|
return (r, a) => (t(), s("div", Hn, [
|
2825
|
-
(t(!0), s(
|
2825
|
+
(t(!0), s(L, null, R(e.variants, (l) => (t(), p(i(Wn), F({
|
2826
2826
|
key: l.value,
|
2827
2827
|
"is-active": l.value === e.modelValue,
|
2828
2828
|
ref_for: !0
|
@@ -2995,9 +2995,9 @@ const nm = /* @__PURE__ */ he(_n, [["render", to]]), lo = { class: "flex items-c
|
|
2995
2995
|
return fe(
|
2996
2996
|
() => r.modelValue,
|
2997
2997
|
() => c()
|
2998
|
-
), Ce(() => c()), (u, v) => (t(), s(
|
2998
|
+
), Ce(() => c()), (u, v) => (t(), s(L, null, [
|
2999
2999
|
n("div", io, [
|
3000
|
-
(t(!0), s(
|
3000
|
+
(t(!0), s(L, null, R(e.menus, (b) => (t(), s("div", {
|
3001
3001
|
key: b.value,
|
3002
3002
|
ref_for: !0,
|
3003
3003
|
ref_key: "menuRefs",
|
@@ -3020,7 +3020,7 @@ const nm = /* @__PURE__ */ he(_n, [["render", to]]), lo = { class: "flex items-c
|
|
3020
3020
|
}, {
|
3021
3021
|
menu: w(() => [
|
3022
3022
|
n("div", co, [
|
3023
|
-
(t(!0), s(
|
3023
|
+
(t(!0), s(L, null, R(e.menus, (b) => (t(), p(i(pe), {
|
3024
3024
|
key: b.value,
|
3025
3025
|
class: f(["px-5 py-3", [
|
3026
3026
|
b.value === e.modelValue ? "!text-oc-accent-1 font-medium bg-oc-accent-1-50-tr" : "!text-oc-text-400"
|
@@ -3128,7 +3128,7 @@ const nm = /* @__PURE__ */ he(_n, [["render", to]]), lo = { class: "flex items-c
|
|
3128
3128
|
text: (o = e.secondaryButtonProps) == null ? void 0 : o.label,
|
3129
3129
|
icon: (d = e.secondaryButtonProps) == null ? void 0 : d.leftIcon
|
3130
3130
|
}, null, 8, ["text", "icon"])) : m("", !0),
|
3131
|
-
e.secondaryButtonProps && e.secondaryButtonProps.dropdownOptions ? (t(!0), s(
|
3131
|
+
e.secondaryButtonProps && e.secondaryButtonProps.dropdownOptions ? (t(!0), s(L, { key: 1 }, R(e.secondaryButtonProps.dropdownOptions, (c) => (t(), p(i(pe), F({
|
3132
3132
|
key: c.text,
|
3133
3133
|
ref_for: !0
|
3134
3134
|
}, c), null, 16))), 128)) : m("", !0)
|
@@ -3320,9 +3320,9 @@ const nm = /* @__PURE__ */ he(_n, [["render", to]]), lo = { class: "flex items-c
|
|
3320
3320
|
}),
|
3321
3321
|
_: 1
|
3322
3322
|
})) : m("", !0),
|
3323
|
-
(t(!0), s(
|
3323
|
+
(t(!0), s(L, null, R(e.primaryActions.actions, (C, j) => {
|
3324
3324
|
var k;
|
3325
|
-
return t(), s(
|
3325
|
+
return t(), s(L, { key: j }, [
|
3326
3326
|
(k = e.primaryActions) != null && k.mainLinkAction || j > 0 ? (t(), s("div", Vo)) : m("", !0),
|
3327
3327
|
h(i(te), {
|
3328
3328
|
position: "top",
|
@@ -3364,7 +3364,7 @@ const nm = /* @__PURE__ */ he(_n, [["render", to]]), lo = { class: "flex items-c
|
|
3364
3364
|
return [
|
3365
3365
|
n("div", Bo, [
|
3366
3366
|
n("div", Io, [
|
3367
|
-
(t(!0), s(
|
3367
|
+
(t(!0), s(L, null, R((C = e.primaryActions.dropdownOptions) == null ? void 0 : C.top, (B, g) => (t(), s(L, { key: g }, [
|
3368
3368
|
B != null && B.isCopyButton ? (t(), p(i(pe), {
|
3369
3369
|
key: 0,
|
3370
3370
|
icon: o.value ? "check" : "copy",
|
@@ -3380,7 +3380,7 @@ const nm = /* @__PURE__ */ he(_n, [["render", to]]), lo = { class: "flex items-c
|
|
3380
3380
|
], 64))), 128))
|
3381
3381
|
]),
|
3382
3382
|
(j = e.primaryActions.dropdownOptions) != null && j.bottom ? (t(), s("div", To, [
|
3383
|
-
(t(!0), s(
|
3383
|
+
(t(!0), s(L, null, R((k = e.primaryActions.dropdownOptions) == null ? void 0 : k.bottom, (B, g) => (t(), s("div", { key: g }, [
|
3384
3384
|
B != null && B.tooltipText ? (t(), p(i(te), {
|
3385
3385
|
key: 0,
|
3386
3386
|
position: "bottom",
|
@@ -3433,7 +3433,7 @@ const nm = /* @__PURE__ */ he(_n, [["render", to]]), lo = { class: "flex items-c
|
|
3433
3433
|
}, jo = { class: "flex gap-x-3 items-center" }, Mo = {
|
3434
3434
|
key: 0,
|
3435
3435
|
class: "p-2"
|
3436
|
-
},
|
3436
|
+
}, Po = { class: "px-3 py-[5px] whitespace-nowrap font-medium text-sm text-oc-text-400 flex gap-x-3 items-center" }, Lo = {
|
3437
3437
|
__name: "OcPageTitleRight",
|
3438
3438
|
props: {
|
3439
3439
|
primaryButtonProps: Object,
|
@@ -3453,7 +3453,7 @@ const nm = /* @__PURE__ */ he(_n, [["render", to]]), lo = { class: "flex items-c
|
|
3453
3453
|
var u;
|
3454
3454
|
return [
|
3455
3455
|
(u = e.secondaryButtonProps) != null && u.dropdownOptions ? (t(), s("div", Mo, [
|
3456
|
-
(t(!0), s(
|
3456
|
+
(t(!0), s(L, null, R(e.secondaryButtonProps.dropdownOptions, (v, b) => (t(), p(i(pe), F({
|
3457
3457
|
key: b,
|
3458
3458
|
ref_for: !0
|
3459
3459
|
}, v), null, 16))), 128))
|
@@ -3474,7 +3474,7 @@ const nm = /* @__PURE__ */ he(_n, [["render", to]]), lo = { class: "flex items-c
|
|
3474
3474
|
"arrow-hidden": ""
|
3475
3475
|
}, {
|
3476
3476
|
popper: w(() => [
|
3477
|
-
n("div",
|
3477
|
+
n("div", Po, $(e.primaryButtonProps.tooltip), 1)
|
3478
3478
|
]),
|
3479
3479
|
default: w(() => [
|
3480
3480
|
h(i(G), F({
|
@@ -3488,7 +3488,7 @@ const nm = /* @__PURE__ */ he(_n, [["render", to]]), lo = { class: "flex items-c
|
|
3488
3488
|
}, e.primaryButtonProps), null, 16, ["size"])) : m("", !0)
|
3489
3489
|
]));
|
3490
3490
|
}
|
3491
|
-
}, Eo = /* @__PURE__ */ he(
|
3491
|
+
}, Eo = /* @__PURE__ */ he(Lo, [["__scopeId", "data-v-a7abfe33"]]), zo = { class: "grid py-7 w-full max-h-[inherit] overflow-y-auto overflow-x-hidden gap-3 px-8" }, No = {
|
3492
3492
|
key: 0,
|
3493
3493
|
class: "text-sm uppercase text-[var(--oc-sidebar-menu-title)] my-3"
|
3494
3494
|
}, Ro = ["onClick"], Fo = {
|
@@ -3532,7 +3532,7 @@ const nm = /* @__PURE__ */ he(_n, [["render", to]]), lo = { class: "flex items-c
|
|
3532
3532
|
}, [
|
3533
3533
|
n("div", zo, [
|
3534
3534
|
S(v.$slots, "before", { isExpanded: e.isExpanded }),
|
3535
|
-
(t(!0), s(
|
3535
|
+
(t(!0), s(L, null, R(e.sidebarMenu, (y, x) => (t(), s(L, { key: x }, [
|
3536
3536
|
e.isExpanded && y.label ? (t(), s("h2", No, $(y.label), 1)) : m("", !0),
|
3537
3537
|
(!y.label || !e.isExpanded) && x !== 0 ? (t(), s("div", {
|
3538
3538
|
key: 1,
|
@@ -3540,7 +3540,7 @@ const nm = /* @__PURE__ */ he(_n, [["render", to]]), lo = { class: "flex items-c
|
|
3540
3540
|
}, b[0] || (b[0] = [
|
3541
3541
|
n("div", { class: "w-full border-b border-[var(--oc-sidebar-menu-title)] opacity-50" }, null, -1)
|
3542
3542
|
]), 2)) : m("", !0),
|
3543
|
-
(t(!0), s(
|
3543
|
+
(t(!0), s(L, null, R(y.items, (O, D) => (t(), s("div", {
|
3544
3544
|
key: D,
|
3545
3545
|
class: "flex flex-col"
|
3546
3546
|
}, [
|
@@ -3664,7 +3664,7 @@ const nm = /* @__PURE__ */ he(_n, [["render", to]]), lo = { class: "flex items-c
|
|
3664
3664
|
return (r, a) => (t(), s("div", {
|
3665
3665
|
class: f(["grid gap-3 transition-all duration-500 overflow-hidden", e.isExpanded ? "max-h-screen" : "max-h-0"])
|
3666
3666
|
}, [
|
3667
|
-
(t(!0), s(
|
3667
|
+
(t(!0), s(L, null, R(e.menu.children, (l, o) => (t(), s("div", {
|
3668
3668
|
key: o,
|
3669
3669
|
class: f(["text-oc-text-400 flex items-center rounded hover:bg-[var(--oc-sidebar-menu-hover)]", {
|
3670
3670
|
"font-medium bg-[var(--oc-sidebar-menu-active)] text-[var(--oc-sidebar-menu-active-text)]": l.active
|
@@ -3853,7 +3853,7 @@ const nm = /* @__PURE__ */ he(_n, [["render", to]]), lo = { class: "flex items-c
|
|
3853
3853
|
]])
|
3854
3854
|
}, [
|
3855
3855
|
e.isExpanded ? (t(), s("div", Yo, [
|
3856
|
-
e.isPending ? (t(), s(
|
3856
|
+
e.isPending ? (t(), s(L, { key: 0 }, [
|
3857
3857
|
n("div", Wo, [
|
3858
3858
|
n("div", Ko, [
|
3859
3859
|
h(T, {
|
@@ -3877,7 +3877,7 @@ const nm = /* @__PURE__ */ he(_n, [["render", to]]), lo = { class: "flex items-c
|
|
3877
3877
|
])) : m("", !0)
|
3878
3878
|
])
|
3879
3879
|
])
|
3880
|
-
], 64)) : (t(), s(
|
3880
|
+
], 64)) : (t(), s(L, { key: 1 }, [
|
3881
3881
|
n("div", Qo, [
|
3882
3882
|
n("div", _o, [
|
3883
3883
|
a[3] || (a[3] = n("span", { class: "font-medium" }, "Account setup", -1)),
|
@@ -3953,7 +3953,7 @@ const nm = /* @__PURE__ */ he(_n, [["render", to]]), lo = { class: "flex items-c
|
|
3953
3953
|
W(" " + $(e.title), 1)
|
3954
3954
|
])) : m("", !0),
|
3955
3955
|
n("div", ri, [
|
3956
|
-
(t(!0), s(
|
3956
|
+
(t(!0), s(L, null, R(e.menu, (l, o) => (t(), s("div", {
|
3957
3957
|
key: o,
|
3958
3958
|
class: f([
|
3959
3959
|
"py-3 whitespace-nowrap rounded cursor-pointer font-medium hover:bg-oc-accent-2-50-tr px-5",
|
@@ -4167,7 +4167,7 @@ const nm = /* @__PURE__ */ he(_n, [["render", to]]), lo = { class: "flex items-c
|
|
4167
4167
|
return (r, a) => (t(), s("div", xi, [
|
4168
4168
|
a[0] || (a[0] = n("span", { class: "text-xs shrink-0 font-medium text-oc-text-300 uppercase" }, " Payment methods ", -1)),
|
4169
4169
|
n("div", hi, [
|
4170
|
-
(t(!0), s(
|
4170
|
+
(t(!0), s(L, null, R(e.methods, (l) => (t(), s("img", {
|
4171
4171
|
key: l,
|
4172
4172
|
width: "35",
|
4173
4173
|
alt: l,
|
@@ -4224,7 +4224,7 @@ const nm = /* @__PURE__ */ he(_n, [["render", to]]), lo = { class: "flex items-c
|
|
4224
4224
|
class: "text-sm"
|
4225
4225
|
}, e.dropdownProps), {
|
4226
4226
|
menu: w(() => [
|
4227
|
-
(t(!0), s(
|
4227
|
+
(t(!0), s(L, null, R(e.dropdownItems, (d, c) => (t(), p(i(pe), F({
|
4228
4228
|
key: c,
|
4229
4229
|
ref_for: !0
|
4230
4230
|
}, d), null, 16))), 128))
|
@@ -4299,7 +4299,7 @@ const nm = /* @__PURE__ */ he(_n, [["render", to]]), lo = { class: "flex items-c
|
|
4299
4299
|
setup(e) {
|
4300
4300
|
return (r, a) => (t(), s("div", Vi, [
|
4301
4301
|
n("div", Oi, [
|
4302
|
-
(t(!0), s(
|
4302
|
+
(t(!0), s(L, null, R(e.isLoading ? 2 : e.overviewTabs, (l) => S(r.$slots, l.value, { tab: l }, () => [
|
4303
4303
|
(t(), p(yi, {
|
4304
4304
|
key: l.value,
|
4305
4305
|
title: l.title,
|
@@ -4345,10 +4345,10 @@ function Di(e, r) {
|
|
4345
4345
|
const lt = /* @__PURE__ */ he(Ii, [["render", Di]]), Ai = { class: "flex" }, ji = {
|
4346
4346
|
key: 0,
|
4347
4347
|
class: "p-2"
|
4348
|
-
}, Mi = { class: "py-2 px-3" },
|
4348
|
+
}, Mi = { class: "py-2 px-3" }, Pi = {
|
4349
4349
|
key: 0,
|
4350
4350
|
class: "max-w-[250px] fixed z-[1006] top-0 right-0 transition-all duration-500 flex flex-col gap-y-2 w-full bg-white h-screen overflow-y-auto"
|
4351
|
-
},
|
4351
|
+
}, Li = { class: "p-5 flex items-center justify-between" }, Ei = { class: "px-5 flex-1 flex flex-col gap-y-5" }, zi = /* @__PURE__ */ Z({
|
4352
4352
|
__name: "MobileDynamicType",
|
4353
4353
|
props: {
|
4354
4354
|
boxes: { type: Array, default: () => [] },
|
@@ -4363,7 +4363,7 @@ const lt = /* @__PURE__ */ he(Ii, [["render", Di]]), Ai = { class: "flex" }, ji
|
|
4363
4363
|
h(lt, { class: "!flex-nowrap flex-col w-full" }, {
|
4364
4364
|
default: w(() => [
|
4365
4365
|
n("div", Ai, [
|
4366
|
-
(t(!0), s(
|
4366
|
+
(t(!0), s(L, null, R(e.boxes[0].items.slice(0, 2), (o, d) => (t(), p(i(qe), {
|
4367
4367
|
key: d,
|
4368
4368
|
"is-transparent": "",
|
4369
4369
|
title: o.title,
|
@@ -4412,8 +4412,8 @@ const lt = /* @__PURE__ */ he(Ii, [["render", Di]]), Ai = { class: "flex" }, ji
|
|
4412
4412
|
}),
|
4413
4413
|
h(je, { name: "slide-from-right" }, {
|
4414
4414
|
default: w(() => [
|
4415
|
-
r.value ? (t(), s("div",
|
4416
|
-
n("div",
|
4415
|
+
r.value ? (t(), s("div", Pi, [
|
4416
|
+
n("div", Li, [
|
4417
4417
|
l[4] || (l[4] = n("span", { class: "font-medium" }, "Details", -1)),
|
4418
4418
|
h(i(G), {
|
4419
4419
|
size: "small",
|
@@ -4426,9 +4426,9 @@ const lt = /* @__PURE__ */ he(Ii, [["render", Di]]), Ai = { class: "flex" }, ji
|
|
4426
4426
|
})
|
4427
4427
|
]),
|
4428
4428
|
n("div", Ei, [
|
4429
|
-
(t(!0), s(
|
4429
|
+
(t(!0), s(L, null, R(e.boxes, (o, d) => (t(), p(lt, { key: d }, {
|
4430
4430
|
default: w(() => [
|
4431
|
-
(t(!0), s(
|
4431
|
+
(t(!0), s(L, null, R(o.items, (c, u) => (t(), p(i(qe), F({
|
4432
4432
|
key: `${d}-${u}`,
|
4433
4433
|
"is-transparent": "",
|
4434
4434
|
title: c.title,
|
@@ -4475,9 +4475,9 @@ const lt = /* @__PURE__ */ he(Ii, [["render", Di]]), Ai = { class: "flex" }, ji
|
|
4475
4475
|
},
|
4476
4476
|
emits: ["addCustomer", "editCustomer"],
|
4477
4477
|
setup(e) {
|
4478
|
-
return (r, a) => (t(), s(
|
4478
|
+
return (r, a) => (t(), s(L, null, [
|
4479
4479
|
n("div", Ni, [
|
4480
|
-
(t(!0), s(
|
4480
|
+
(t(!0), s(L, null, R(e.boxes, (l, o) => (t(), p(lt, {
|
4481
4481
|
key: o,
|
4482
4482
|
class: f(
|
4483
4483
|
(e.isCustomer ? "!grid grid-cols-4 grid-rows-2 gap-y-4 w-full !py-4 " : " ") + (l == null ? void 0 : l.style)
|
@@ -4487,7 +4487,7 @@ const lt = /* @__PURE__ */ he(Ii, [["render", Di]]), Ai = { class: "flex" }, ji
|
|
4487
4487
|
l.slot && r.$slots[l.slot] ? S(r.$slots, l.slot, {
|
4488
4488
|
key: 0,
|
4489
4489
|
data: { ...l, key: o }
|
4490
|
-
}) : (t(!0), s(
|
4490
|
+
}) : (t(!0), s(L, { key: 1 }, R(l.items, (d, c) => (t(), p(i(qe), F({
|
4491
4491
|
key: `${o}-${c}`,
|
4492
4492
|
"is-transparent": "",
|
4493
4493
|
title: d.title,
|
@@ -4722,7 +4722,7 @@ const lt = /* @__PURE__ */ he(Ii, [["render", Di]]), Ai = { class: "flex" }, ji
|
|
4722
4722
|
n("h2", Zi, $(e.title), 1),
|
4723
4723
|
e.description ? (t(), s("p", Qi, $(e.description), 1)) : m("", !0),
|
4724
4724
|
(l = e.features) != null && l.length ? (t(), s("div", _i, [
|
4725
|
-
(t(!0), s(
|
4725
|
+
(t(!0), s(L, null, R(e.features, (o) => (t(), s("div", {
|
4726
4726
|
key: o.title,
|
4727
4727
|
class: "rounded bg-white flex flex-col gap-2 p-6 items-center justify-center relative"
|
4728
4728
|
}, [
|
@@ -4976,7 +4976,7 @@ const lt = /* @__PURE__ */ he(Ii, [["render", Di]]), Ai = { class: "flex" }, ji
|
|
4976
4976
|
], "border rounded-lg flex shadow-sm snackbar relative"]),
|
4977
4977
|
style: re(e.isFloating && e.position.includes("center") ? { left: c.value + "px" } : "")
|
4978
4978
|
}, [
|
4979
|
-
e.showIcon ? (t(), s(
|
4979
|
+
e.showIcon ? (t(), s(L, { key: 0 }, [
|
4980
4980
|
v.value ? (t(), s("div", {
|
4981
4981
|
key: 0,
|
4982
4982
|
class: f([o[e.color], "w-[48px] flex shrink-0 items-center justify-center h-[48px] rounded-full"])
|
@@ -5334,7 +5334,7 @@ const lt = /* @__PURE__ */ he(Ii, [["render", Di]]), Ai = { class: "flex" }, ji
|
|
5334
5334
|
], 2)) : m("", !0)
|
5335
5335
|
], 2));
|
5336
5336
|
}
|
5337
|
-
}, G = /* @__PURE__ */ he(js, [["__scopeId", "data-v-af49bb32"]]), Ms = { class: "w-[30px] h-[20px] flex items-center justify-center" },
|
5337
|
+
}, G = /* @__PURE__ */ he(js, [["__scopeId", "data-v-af49bb32"]]), Ms = { class: "w-[30px] h-[20px] flex items-center justify-center" }, Ps = {
|
5338
5338
|
__name: "OcCardInput",
|
5339
5339
|
props: {
|
5340
5340
|
placeholder: String,
|
@@ -5392,7 +5392,7 @@ const lt = /* @__PURE__ */ he(Ii, [["render", Di]]), Ai = { class: "flex" }, ji
|
|
5392
5392
|
_: 1
|
5393
5393
|
}, 8, ["placeholder", "label", "error-message", "is-inline-label", "disabled", "hint", "model-value", "is-required", "label-icon", "tooltip-text", "tooltip-options"]));
|
5394
5394
|
}
|
5395
|
-
},
|
5395
|
+
}, Ls = ["value", "checked", "disabled"], Te = {
|
5396
5396
|
__name: "OcCheckbox",
|
5397
5397
|
props: {
|
5398
5398
|
modelValue: Boolean,
|
@@ -5451,7 +5451,7 @@ const lt = /* @__PURE__ */ he(Ii, [["render", Di]]), Ai = { class: "flex" }, ji
|
|
5451
5451
|
class: "h-0 w-0 hidden",
|
5452
5452
|
disabled: e.isDisabled,
|
5453
5453
|
onChange: d
|
5454
|
-
}, null, 40,
|
5454
|
+
}, null, 40, Ls),
|
5455
5455
|
S(c.$slots, "after")
|
5456
5456
|
], 2)
|
5457
5457
|
]),
|
@@ -5521,7 +5521,7 @@ const lt = /* @__PURE__ */ he(Ii, [["render", Di]]), Ai = { class: "flex" }, ji
|
|
5521
5521
|
"is-button-variant": e.isButtonVariant,
|
5522
5522
|
"onUpdate:modelValue": b
|
5523
5523
|
}, null, 8, ["is-disabled", "value", "model-value", "is-button-variant"])) : m("", !0),
|
5524
|
-
(t(!0), s(
|
5524
|
+
(t(!0), s(L, null, R(e.checkboxes, (O, D) => (t(), p(i(Te), {
|
5525
5525
|
key: D,
|
5526
5526
|
label: O.label,
|
5527
5527
|
value: O.value,
|
@@ -5871,7 +5871,7 @@ const lt = /* @__PURE__ */ he(Ii, [["render", Di]]), Ai = { class: "flex" }, ji
|
|
5871
5871
|
options: y.value,
|
5872
5872
|
areAllOptionsVisible: v.value
|
5873
5873
|
}, () => [
|
5874
|
-
(t(!0), s(
|
5874
|
+
(t(!0), s(L, null, R(y.value, (B, g) => (t(), p(i(le), {
|
5875
5875
|
key: `${B}-${g}`,
|
5876
5876
|
closable: "",
|
5877
5877
|
label: B,
|
@@ -6050,7 +6050,7 @@ const lt = /* @__PURE__ */ he(Ii, [["render", Di]]), Ai = { class: "flex" }, ji
|
|
6050
6050
|
_: 1
|
6051
6051
|
}, 8, ["modelValue"])
|
6052
6052
|
]),
|
6053
|
-
(t(!0), s(
|
6053
|
+
(t(!0), s(L, null, R(v.value, (V, N) => (t(), s("div", {
|
6054
6054
|
ref_for: !0,
|
6055
6055
|
ref_key: "countryListItemRef",
|
6056
6056
|
ref: C,
|
@@ -6218,7 +6218,7 @@ const lt = /* @__PURE__ */ he(Ii, [["render", Di]]), Ai = { class: "flex" }, ji
|
|
6218
6218
|
n("div", {
|
6219
6219
|
class: f(["flex", [l.value[e.alignment], e.wrapperClass]])
|
6220
6220
|
}, [
|
6221
|
-
(t(!0), s(
|
6221
|
+
(t(!0), s(L, null, R(e.radio, (u, v) => (t(), p(i(ir), {
|
6222
6222
|
id: u.value,
|
6223
6223
|
key: v,
|
6224
6224
|
class: f({ "!w-fit": !e.isBlock }),
|
@@ -6360,6 +6360,10 @@ const lt = /* @__PURE__ */ he(Ii, [["render", Di]]), Ai = { class: "flex" }, ji
|
|
6360
6360
|
type: String,
|
6361
6361
|
default: "Placeholder"
|
6362
6362
|
},
|
6363
|
+
searchPlaceholder: {
|
6364
|
+
type: String,
|
6365
|
+
default: "Search"
|
6366
|
+
},
|
6363
6367
|
isInlineLabel: Boolean,
|
6364
6368
|
isFilterable: Boolean,
|
6365
6369
|
isAsynchronousSearch: Boolean,
|
@@ -6422,11 +6426,11 @@ const lt = /* @__PURE__ */ he(Ii, [["render", Di]]), Ai = { class: "flex" }, ji
|
|
6422
6426
|
},
|
6423
6427
|
setup(e, { expose: r, emit: a }) {
|
6424
6428
|
const l = e, o = a, d = M(l.searchKeywords ?? ""), c = M(!1), u = M(), v = M(), b = M([]), y = M(), x = M((/* @__PURE__ */ new Date()).toISOString()), O = z(() => {
|
6425
|
-
var
|
6426
|
-
return l.multiple ? ((
|
6429
|
+
var P, A;
|
6430
|
+
return l.multiple ? ((P = l.modelValue) == null ? void 0 : P.length) && ((A = l.modelValue) == null ? void 0 : A.length) === D.value.length : !1;
|
6427
6431
|
}), D = z(() => {
|
6428
6432
|
var A, U;
|
6429
|
-
const
|
6433
|
+
const P = [];
|
6430
6434
|
for (const H of l.options)
|
6431
6435
|
if (H.values) {
|
6432
6436
|
const X = H.values.filter(
|
@@ -6435,58 +6439,58 @@ const lt = /* @__PURE__ */ he(Ii, [["render", Di]]), Ai = { class: "flex" }, ji
|
|
6435
6439
|
return ((_ = ee.label) == null ? void 0 : _.toLowerCase().includes(d.value.toLowerCase())) || ((oe = ee.subLabel) == null ? void 0 : oe.toLowerCase().includes(d.value.toLowerCase()));
|
6436
6440
|
}
|
6437
6441
|
);
|
6438
|
-
X.length > 0 &&
|
6442
|
+
X.length > 0 && P.push({
|
6439
6443
|
label: H.label,
|
6440
6444
|
values: X
|
6441
6445
|
});
|
6442
6446
|
} else
|
6443
|
-
((A = H.label) != null && A.toLowerCase().includes(d.value.toLowerCase()) || (U = H.subLabel) != null && U.toLowerCase().includes(d.value.toLowerCase())) &&
|
6444
|
-
return
|
6447
|
+
((A = H.label) != null && A.toLowerCase().includes(d.value.toLowerCase()) || (U = H.subLabel) != null && U.toLowerCase().includes(d.value.toLowerCase())) && P.push(H);
|
6448
|
+
return P;
|
6445
6449
|
}), C = z(() => {
|
6446
6450
|
if (l.multiple) {
|
6447
|
-
let
|
6451
|
+
let P = [];
|
6448
6452
|
if (l.modelValue)
|
6449
6453
|
for (const A of l.modelValue)
|
6450
6454
|
for (const U of l.options)
|
6451
6455
|
U.values ? U.values.forEach((H) => {
|
6452
|
-
H.value === A &&
|
6453
|
-
}) : U.value === A &&
|
6454
|
-
return
|
6456
|
+
H.value === A && P.push(H);
|
6457
|
+
}) : U.value === A && P.push(U);
|
6458
|
+
return P;
|
6455
6459
|
} else
|
6456
|
-
return l.options.find((
|
6460
|
+
return l.options.find((P) => {
|
6457
6461
|
var A;
|
6458
|
-
return
|
6462
|
+
return P.value.toString() === ((A = l.modelValue) == null ? void 0 : A.toString());
|
6459
6463
|
});
|
6460
|
-
}), j = (
|
6464
|
+
}), j = (P) => {
|
6461
6465
|
var U;
|
6462
|
-
if (
|
6466
|
+
if (P.isDisabled)
|
6463
6467
|
return;
|
6464
6468
|
let A;
|
6465
6469
|
if (l.multiple) {
|
6466
|
-
const H = (l.modelValue || []).find((X) => X ===
|
6470
|
+
const H = (l.modelValue || []).find((X) => X === P.value);
|
6467
6471
|
if (!H && l.maxOptionAllowed && ((U = C.value) == null ? void 0 : U.length) >= Number(l.maxOptionAllowed)) {
|
6468
6472
|
o("max-option-allowed-set");
|
6469
6473
|
return;
|
6470
6474
|
}
|
6471
|
-
A = H ? (l.modelValue || []).filter((X) => X !==
|
6475
|
+
A = H ? (l.modelValue || []).filter((X) => X !== P.value) : [...l.modelValue || [], P.value];
|
6472
6476
|
} else
|
6473
|
-
A =
|
6477
|
+
A = P.value, c.value = !1;
|
6474
6478
|
o("update:modelValue", A);
|
6475
|
-
}, k = (
|
6479
|
+
}, k = (P) => {
|
6476
6480
|
o(
|
6477
6481
|
"update:modelValue",
|
6478
|
-
(l.modelValue || []).filter((A) => A !==
|
6482
|
+
(l.modelValue || []).filter((A) => A !== P)
|
6479
6483
|
);
|
6480
6484
|
}, B = () => {
|
6481
6485
|
l.isAsynchronousSearch || (O.value ? o("update:modelValue", null) : o(
|
6482
6486
|
"update:modelValue",
|
6483
|
-
D.value.map((
|
6487
|
+
D.value.map((P) => P.value)
|
6484
6488
|
));
|
6485
6489
|
}, g = M();
|
6486
6490
|
fe(D, () => {
|
6487
6491
|
x.value = (/* @__PURE__ */ new Date()).toISOString();
|
6488
|
-
}), fe(c, (
|
6489
|
-
if (!
|
6492
|
+
}), fe(c, (P) => {
|
6493
|
+
if (!P) {
|
6490
6494
|
o("close");
|
6491
6495
|
return;
|
6492
6496
|
}
|
@@ -6496,8 +6500,8 @@ const lt = /* @__PURE__ */ he(Ii, [["render", Di]]), Ai = { class: "flex" }, ji
|
|
6496
6500
|
});
|
6497
6501
|
});
|
6498
6502
|
const I = M("100%"), V = z(() => ({ maxWidth: I.value })), N = () => {
|
6499
|
-
var
|
6500
|
-
o("toggle"), I.value = (A = (
|
6503
|
+
var P, A, U, H;
|
6504
|
+
o("toggle"), I.value = (A = (P = g.value) == null ? void 0 : P.$el) != null && A.offsetWidth ? `${(H = (U = g.value) == null ? void 0 : U.$el) == null ? void 0 : H.offsetWidth}px` : "100%", setTimeout(() => {
|
6501
6505
|
var se;
|
6502
6506
|
let X, ee;
|
6503
6507
|
if (Array.isArray(l.modelValue) ? X = l.modelValue[0] ?? null : X = l.modelValue, !X) return;
|
@@ -6508,15 +6512,15 @@ const lt = /* @__PURE__ */ he(Ii, [["render", Di]]), Ai = { class: "flex" }, ji
|
|
6508
6512
|
const _ = b.value[ee], oe = (se = _ == null ? void 0 : _.optionItemRef) == null ? void 0 : se.offsetTop;
|
6509
6513
|
y.value.parentNode.scrollTo(0, oe - 60, { behavior: "smooth" });
|
6510
6514
|
}, 10);
|
6511
|
-
}, E = (
|
6515
|
+
}, E = (P) => {
|
6512
6516
|
var U, H, X;
|
6513
6517
|
if (l.isLoading)
|
6514
6518
|
return;
|
6515
|
-
((U =
|
6519
|
+
((U = P.target) == null ? void 0 : U.scrollHeight) - Math.round((H = P.target) == null ? void 0 : H.scrollTop) <= ((X = P.target) == null ? void 0 : X.clientHeight) && o("loadMore");
|
6516
6520
|
};
|
6517
6521
|
return r({
|
6518
6522
|
dropdownRef: v
|
6519
|
-
}), (
|
6523
|
+
}), (P, A) => (t(), p(i(ge), {
|
6520
6524
|
ref_key: "baseInput",
|
6521
6525
|
ref: g,
|
6522
6526
|
class: "relative rounded",
|
@@ -6529,8 +6533,8 @@ const lt = /* @__PURE__ */ he(Ii, [["render", Di]]), Ai = { class: "flex" }, ji
|
|
6529
6533
|
"tooltip-options": e.tooltipOptions
|
6530
6534
|
}, ae({
|
6531
6535
|
tooltipText: w(() => [
|
6532
|
-
|
6533
|
-
S(
|
6536
|
+
P.$slots.selectTooltipText ? (t(), s("div", hr, [
|
6537
|
+
S(P.$slots, "selectTooltipText")
|
6534
6538
|
])) : m("", !0)
|
6535
6539
|
]),
|
6536
6540
|
default: w(() => [
|
@@ -6568,7 +6572,7 @@ const lt = /* @__PURE__ */ he(Ii, [["render", Di]]), Ai = { class: "flex" }, ji
|
|
6568
6572
|
modelValue: d.value,
|
6569
6573
|
"onUpdate:modelValue": [
|
6570
6574
|
A[4] || (A[4] = (H) => d.value = H),
|
6571
|
-
A[5] || (A[5] = (H) =>
|
6575
|
+
A[5] || (A[5] = (H) => P.$emit("onSearchKeywords", d.value))
|
6572
6576
|
],
|
6573
6577
|
icon: "search",
|
6574
6578
|
placeholder: "Search"
|
@@ -6594,12 +6598,12 @@ const lt = /* @__PURE__ */ he(Ii, [["render", Di]]), Ai = { class: "flex" }, ji
|
|
6594
6598
|
label: "Select All",
|
6595
6599
|
onClick: B
|
6596
6600
|
}, null, 8, ["is-selected", "is-partial"])) : m("", !0),
|
6597
|
-
S(
|
6601
|
+
S(P.$slots, "default", {
|
6598
6602
|
key: x.value,
|
6599
6603
|
fOptions: D.value,
|
6600
6604
|
selectOption: j
|
6601
6605
|
}, () => [
|
6602
|
-
(t(!0), s(
|
6606
|
+
(t(!0), s(L, null, R(D.value, (H) => (t(), p(i(gt), {
|
6603
6607
|
ref_for: !0,
|
6604
6608
|
ref_key: "filterableOptionsRef",
|
6605
6609
|
ref: b,
|
@@ -6612,7 +6616,7 @@ const lt = /* @__PURE__ */ he(Ii, [["render", Di]]), Ai = { class: "flex" }, ji
|
|
6612
6616
|
onClick: (X) => j(H)
|
6613
6617
|
}, null, 8, ["label", "sub-label", "is-disabled", "is-checkboxes", "is-selected", "onClick"]))), 128))
|
6614
6618
|
]),
|
6615
|
-
S(
|
6619
|
+
S(P.$slots, "infinite-scrolling"),
|
6616
6620
|
e.isLoading ? (t(), p(i(Se), {
|
6617
6621
|
key: 1,
|
6618
6622
|
class: f(["h-[20px] rounded-sm", { "mt-2": !e.options.length && e.isFilterable }])
|
@@ -6624,7 +6628,7 @@ const lt = /* @__PURE__ */ he(Ii, [["render", Di]]), Ai = { class: "flex" }, ji
|
|
6624
6628
|
class: "flex items-center py-2 justify-center gap-x-[6px] sticky bottom-0 bg-white z-10",
|
6625
6629
|
size: "small",
|
6626
6630
|
"is-transparent": "",
|
6627
|
-
onClick: A[6] || (A[6] = (H) =>
|
6631
|
+
onClick: A[6] || (A[6] = (H) => P.$emit("addNew"))
|
6628
6632
|
}, {
|
6629
6633
|
default: w(() => [
|
6630
6634
|
h(i(T), {
|
@@ -6649,8 +6653,8 @@ const lt = /* @__PURE__ */ he(Ii, [["render", Di]]), Ai = { class: "flex" }, ji
|
|
6649
6653
|
}])
|
6650
6654
|
}, [
|
6651
6655
|
e.multiple ? (t(), s("div", mr, [
|
6652
|
-
S(
|
6653
|
-
(t(!0), s(
|
6656
|
+
S(P.$slots, "selection", {}, () => [
|
6657
|
+
(t(!0), s(L, null, R(e.maxVisibleOptions ? C.value.slice(0, e.maxVisibleOptions) : C.value, (U) => (t(), p(i(le), F({
|
6654
6658
|
key: U.value,
|
6655
6659
|
closable: "",
|
6656
6660
|
variant: U.variant,
|
@@ -6672,9 +6676,9 @@ const lt = /* @__PURE__ */ he(Ii, [["render", Di]]), Ai = { class: "flex" }, ji
|
|
6672
6676
|
modelValue: d.value,
|
6673
6677
|
"onUpdate:modelValue": [
|
6674
6678
|
A[0] || (A[0] = (U) => d.value = U),
|
6675
|
-
A[1] || (A[1] = (U) =>
|
6679
|
+
A[1] || (A[1] = (U) => P.$emit("onSearchKeywords", d.value))
|
6676
6680
|
],
|
6677
|
-
placeholder:
|
6681
|
+
placeholder: e.searchPlaceholder,
|
6678
6682
|
"input-class": "!border-none !shadow-none",
|
6679
6683
|
"is-readonly": !c.value,
|
6680
6684
|
onKeyup: A[2] || (A[2] = Ue((U) => c.value = !1, ["enter"]))
|
@@ -6689,7 +6693,7 @@ const lt = /* @__PURE__ */ he(Ii, [["render", Di]]), Ai = { class: "flex" }, ji
|
|
6689
6693
|
]),
|
6690
6694
|
key: "0"
|
6691
6695
|
} : void 0
|
6692
|
-
]), 1032, ["modelValue", "is-readonly"])) : (t(), s("span", vr, [
|
6696
|
+
]), 1032, ["modelValue", "placeholder", "is-readonly"])) : (t(), s("span", vr, [
|
6693
6697
|
e.icon ? (t(), p(i(T), {
|
6694
6698
|
key: 0,
|
6695
6699
|
name: e.icon,
|
@@ -6719,10 +6723,10 @@ const lt = /* @__PURE__ */ he(Ii, [["render", Di]]), Ai = { class: "flex" }, ji
|
|
6719
6723
|
]),
|
6720
6724
|
_: 2
|
6721
6725
|
}, [
|
6722
|
-
|
6726
|
+
P.$slots.hint ? {
|
6723
6727
|
name: "hint",
|
6724
6728
|
fn: w(() => [
|
6725
|
-
S(
|
6729
|
+
S(P.$slots, "hint")
|
6726
6730
|
]),
|
6727
6731
|
key: "0"
|
6728
6732
|
} : void 0
|
@@ -6893,7 +6897,7 @@ const lt = /* @__PURE__ */ he(Ii, [["render", Di]]), Ai = { class: "flex" }, ji
|
|
6893
6897
|
}, {
|
6894
6898
|
menu: w(() => [
|
6895
6899
|
e.isEdit ? m("", !0) : (t(), s("div", Or, [
|
6896
|
-
(t(!0), s(
|
6900
|
+
(t(!0), s(L, null, R(e.links, (g) => (t(), s("div", {
|
6897
6901
|
key: g.value,
|
6898
6902
|
class: "flex rounded-sm items-center px-3 py-2 gap-x-3 cursor-pointer text-oc-text-400 hover:bg-gray-50",
|
6899
6903
|
onClick: (I) => y(g.value)
|
@@ -7039,9 +7043,9 @@ var jt = { exports: {} };
|
|
7039
7043
|
};
|
7040
7044
|
});
|
7041
7045
|
})(jt);
|
7042
|
-
var
|
7043
|
-
const Mt = /* @__PURE__ */ Ke(
|
7044
|
-
var
|
7046
|
+
var Pr = jt.exports;
|
7047
|
+
const Mt = /* @__PURE__ */ Ke(Pr);
|
7048
|
+
var Pt = { exports: {} };
|
7045
7049
|
(function(e, r) {
|
7046
7050
|
(function(a, l) {
|
7047
7051
|
e.exports = l();
|
@@ -7107,7 +7111,7 @@ var Lt = { exports: {} };
|
|
7107
7111
|
return se || ue.slice(1);
|
7108
7112
|
});
|
7109
7113
|
})).match(l), V = I.length, N = 0; N < V; N += 1) {
|
7110
|
-
var E = I[N],
|
7114
|
+
var E = I[N], P = C[E], A = P && P[0], U = P && P[1];
|
7111
7115
|
I[N] = U ? { regex: A, parser: U } : E.replace(/^\[|\]$/g, "");
|
7112
7116
|
}
|
7113
7117
|
return function(H) {
|
@@ -7132,22 +7136,22 @@ var Lt = { exports: {} };
|
|
7132
7136
|
g.p.customParseFormat = !0, k && k.parseTwoDigitYear && (b = k.parseTwoDigitYear);
|
7133
7137
|
var I = B.prototype, V = I.parse;
|
7134
7138
|
I.parse = function(N) {
|
7135
|
-
var E = N.date,
|
7136
|
-
this.$u =
|
7139
|
+
var E = N.date, P = N.utc, A = N.args;
|
7140
|
+
this.$u = P;
|
7137
7141
|
var U = A[1];
|
7138
7142
|
if (typeof U == "string") {
|
7139
7143
|
var H = A[2] === !0, X = A[3] === !0, ee = H || X, _ = A[2];
|
7140
7144
|
X && (_ = A[2]), v = this.$locale(), !H && _ && (v = g.Ls[_]), this.$d = function(be, we, me, $e) {
|
7141
7145
|
try {
|
7142
7146
|
if (["x", "X"].indexOf(we) > -1) return new Date((we === "X" ? 1e3 : 1) * be);
|
7143
|
-
var ie = j(we)(be), Ve = ie.year, ke = ie.month, Q = ie.day, Oe = ie.hours, q = ie.minutes, J = ie.seconds, Y = ie.milliseconds, ce = ie.zone,
|
7147
|
+
var ie = j(we)(be), Ve = ie.year, ke = ie.month, Q = ie.day, Oe = ie.hours, q = ie.minutes, J = ie.seconds, Y = ie.milliseconds, ce = ie.zone, Pe = ie.week, Ge = /* @__PURE__ */ new Date(), Xe = Q || (Ve || ke ? 1 : Ge.getDate()), Je = Ve || Ge.getFullYear(), Ne = 0;
|
7144
7148
|
Ve && !ke || (Ne = ke > 0 ? ke - 1 : Ge.getMonth());
|
7145
7149
|
var Re, Ze = Oe || 0, Qe = q || 0, _e = J || 0, et = Y || 0;
|
7146
|
-
return ce ? new Date(Date.UTC(Je, Ne, Xe, Ze, Qe, _e, et + 60 * ce.offset * 1e3)) : me ? new Date(Date.UTC(Je, Ne, Xe, Ze, Qe, _e, et)) : (Re = new Date(Je, Ne, Xe, Ze, Qe, _e, et),
|
7150
|
+
return ce ? new Date(Date.UTC(Je, Ne, Xe, Ze, Qe, _e, et + 60 * ce.offset * 1e3)) : me ? new Date(Date.UTC(Je, Ne, Xe, Ze, Qe, _e, et)) : (Re = new Date(Je, Ne, Xe, Ze, Qe, _e, et), Pe && (Re = $e(Re).week(Pe).toDate()), Re);
|
7147
7151
|
} catch {
|
7148
7152
|
return /* @__PURE__ */ new Date("");
|
7149
7153
|
}
|
7150
|
-
}(E, U,
|
7154
|
+
}(E, U, P, g), this.init(), _ && _ !== !0 && (this.$L = this.locale(_).$L), ee && E != this.format(U) && (this.$d = /* @__PURE__ */ new Date("")), v = {};
|
7151
7155
|
} else if (U instanceof Array) for (var oe = U.length, se = 1; se <= oe; se += 1) {
|
7152
7156
|
A[1] = U[se - 1];
|
7153
7157
|
var ue = g.apply(this, A);
|
@@ -7161,19 +7165,19 @@ var Lt = { exports: {} };
|
|
7161
7165
|
};
|
7162
7166
|
};
|
7163
7167
|
});
|
7164
|
-
})(
|
7165
|
-
var
|
7166
|
-
const nt = /* @__PURE__ */ Ke(
|
7167
|
-
var Er = typeof global == "object" && global && global.Object === Object && global, zr = typeof self == "object" && self && self.Object === Object && self,
|
7168
|
+
})(Pt);
|
7169
|
+
var Lr = Pt.exports;
|
7170
|
+
const nt = /* @__PURE__ */ Ke(Lr);
|
7171
|
+
var Er = typeof global == "object" && global && global.Object === Object && global, zr = typeof self == "object" && self && self.Object === Object && self, Lt = Er || zr || Function("return this")(), He = Lt.Symbol, Et = Object.prototype, Nr = Et.hasOwnProperty, Rr = Et.toString, Le = He ? He.toStringTag : void 0;
|
7168
7172
|
function Fr(e) {
|
7169
|
-
var r = Nr.call(e,
|
7173
|
+
var r = Nr.call(e, Le), a = e[Le];
|
7170
7174
|
try {
|
7171
|
-
e[
|
7175
|
+
e[Le] = void 0;
|
7172
7176
|
var l = !0;
|
7173
7177
|
} catch {
|
7174
7178
|
}
|
7175
7179
|
var o = Rr.call(e);
|
7176
|
-
return l && (r ? e[
|
7180
|
+
return l && (r ? e[Le] = a : delete e[Le]), o;
|
7177
7181
|
}
|
7178
7182
|
var Ur = Object.prototype, qr = Ur.toString;
|
7179
7183
|
function Hr(e) {
|
@@ -7221,7 +7225,7 @@ function xt(e) {
|
|
7221
7225
|
return a || ad.test(e) ? nd(e.slice(2), a ? 2 : 8) : td.test(e) ? yt : +e;
|
7222
7226
|
}
|
7223
7227
|
var tt = function() {
|
7224
|
-
return
|
7228
|
+
return Lt.Date.now();
|
7225
7229
|
}, od = "Expected a function", id = Math.max, sd = Math.min;
|
7226
7230
|
function rd(e, r, a) {
|
7227
7231
|
var l, o, d, c, u, v, b = 0, y = !1, x = !1, O = !0;
|
@@ -7229,19 +7233,19 @@ function rd(e, r, a) {
|
|
7229
7233
|
throw new TypeError(od);
|
7230
7234
|
r = xt(r) || 0, at(a) && (y = !!a.leading, x = "maxWait" in a, d = x ? id(xt(a.maxWait) || 0, r) : d, O = "trailing" in a ? !!a.trailing : O);
|
7231
7235
|
function D(E) {
|
7232
|
-
var
|
7233
|
-
return l = o = void 0, b = E, c = e.apply(A,
|
7236
|
+
var P = l, A = o;
|
7237
|
+
return l = o = void 0, b = E, c = e.apply(A, P), c;
|
7234
7238
|
}
|
7235
7239
|
function C(E) {
|
7236
7240
|
return b = E, u = setTimeout(B, r), y ? D(E) : c;
|
7237
7241
|
}
|
7238
7242
|
function j(E) {
|
7239
|
-
var
|
7243
|
+
var P = E - v, A = E - b, U = r - P;
|
7240
7244
|
return x ? sd(U, d - A) : U;
|
7241
7245
|
}
|
7242
7246
|
function k(E) {
|
7243
|
-
var
|
7244
|
-
return v === void 0 ||
|
7247
|
+
var P = E - v, A = E - b;
|
7248
|
+
return v === void 0 || P >= r || P < 0 || x && A >= d;
|
7245
7249
|
}
|
7246
7250
|
function B() {
|
7247
7251
|
var E = tt();
|
@@ -7259,8 +7263,8 @@ function rd(e, r, a) {
|
|
7259
7263
|
return u === void 0 ? c : g(tt());
|
7260
7264
|
}
|
7261
7265
|
function N() {
|
7262
|
-
var E = tt(),
|
7263
|
-
if (l = arguments, o = this, v = E,
|
7266
|
+
var E = tt(), P = k(E);
|
7267
|
+
if (l = arguments, o = this, v = E, P) {
|
7264
7268
|
if (u === void 0)
|
7265
7269
|
return C(v);
|
7266
7270
|
if (x)
|
@@ -7329,15 +7333,15 @@ const dd = { class: "flex items-center justify-between" }, cd = { class: "flex f
|
|
7329
7333
|
};
|
7330
7334
|
}), E = z(
|
7331
7335
|
() => Object.values(N.value).filter(Boolean).length > 1
|
7332
|
-
),
|
7336
|
+
), P = z(() => o.value.month()), A = z(
|
7333
7337
|
() => {
|
7334
7338
|
var q;
|
7335
|
-
return
|
7339
|
+
return P.value === ((q = d.value) == null ? void 0 : q.month());
|
7336
7340
|
}
|
7337
7341
|
), U = z(
|
7338
7342
|
() => {
|
7339
7343
|
var q;
|
7340
|
-
return
|
7344
|
+
return P.value === ((q = c.value) == null ? void 0 : q.month());
|
7341
7345
|
}
|
7342
7346
|
), H = () => {
|
7343
7347
|
y.value = null, o.value = o.value.subtract(1, "month"), d.value && (u.value = A.value ? d.value.date() : null, v.value = U.value ? c.value.date() : null);
|
@@ -7429,7 +7433,7 @@ const dd = { class: "flex items-center justify-between" }, cd = { class: "flex f
|
|
7429
7433
|
})
|
7430
7434
|
]),
|
7431
7435
|
D.value ? (t(), s("div", vd, [
|
7432
|
-
(t(!0), s(
|
7436
|
+
(t(!0), s(L, null, R(Oe(I.value - 11), (Y) => (t(), s("div", {
|
7433
7437
|
key: Y,
|
7434
7438
|
class: f(["px-4 py-2 hover:border-oc-gray-200 border-2 border-transparent transition text-center rounded cursor-pointer", {
|
7435
7439
|
"!border-oc-primary bg-oc-primary text-white": o.value.year() === Y
|
@@ -7437,12 +7441,12 @@ const dd = { class: "flex items-center justify-between" }, cd = { class: "flex f
|
|
7437
7441
|
onClick: (ce) => _(Y)
|
7438
7442
|
}, $(Y), 11, gd))), 128))
|
7439
7443
|
])) : (t(), s("div", pd, [
|
7440
|
-
(t(), s(
|
7444
|
+
(t(), s(L, null, R(B, (Y, ce) => n("div", {
|
7441
7445
|
key: Y,
|
7442
7446
|
class: f(["px-4 py-2 hover:border-oc-gray-200 border-2 border-transparent transition text-center rounded cursor-pointer", {
|
7443
7447
|
"!border-oc-primary bg-oc-primary text-white": V.value === Y
|
7444
7448
|
}]),
|
7445
|
-
onClick: (
|
7449
|
+
onClick: (Pe) => ee(ce)
|
7446
7450
|
}, $(Y), 11, yd)), 64))
|
7447
7451
|
]))
|
7448
7452
|
])
|
@@ -7474,7 +7478,7 @@ const dd = { class: "flex items-center justify-between" }, cd = { class: "flex f
|
|
7474
7478
|
class: "grid grid-cols-7 w-fit gap-3",
|
7475
7479
|
onMouseout: J[2] || (J[2] = (Y) => i(ke)(void 0))
|
7476
7480
|
}, [
|
7477
|
-
(t(!0), s(
|
7481
|
+
(t(!0), s(L, null, R(k.value, (Y) => {
|
7478
7482
|
var ce;
|
7479
7483
|
return t(), s("div", {
|
7480
7484
|
key: Y,
|
@@ -7490,8 +7494,8 @@ const dd = { class: "flex items-center justify-between" }, cd = { class: "flex f
|
|
7490
7494
|
"before:bg-transparent": u.value !== null && u.value === v.value
|
7491
7495
|
} : ""
|
7492
7496
|
]]),
|
7493
|
-
onClick: (
|
7494
|
-
onMouseover: (
|
7497
|
+
onClick: (Pe) => Ve(Y),
|
7498
|
+
onMouseover: (Pe) => i(ke)(Y)
|
7495
7499
|
}, $(Y), 43, xd);
|
7496
7500
|
}), 128))
|
7497
7501
|
], 32),
|
@@ -7695,7 +7699,7 @@ const $d = { class: "flex flex-col gap-y-2 w-full" }, kd = { class: "flex w-full
|
|
7695
7699
|
]),
|
7696
7700
|
default: w(() => [
|
7697
7701
|
n("div", $d, [
|
7698
|
-
!e.isSplitInput || !v.value ? (t(), s(
|
7702
|
+
!e.isSplitInput || !v.value ? (t(), s(L, { key: 0 }, [
|
7699
7703
|
n("div", kd, [
|
7700
7704
|
h(i(xe), {
|
7701
7705
|
"model-value": v.value ? e.modelValue && e.modelValue[0] ? `${b.value[0].format(e.dateFormat)} - ${b.value[1].format(e.dateFormat)}` : "" : e.modelValue === "Indefinite" ? "Indefinite" : e.modelValue ? b.value.format(e.dateFormat) : "",
|
@@ -7768,10 +7772,10 @@ const $d = { class: "flex flex-col gap-y-2 w-full" }, kd = { class: "flex w-full
|
|
7768
7772
|
_: 3
|
7769
7773
|
}, 8, ["modelValue", "is-disabled"]));
|
7770
7774
|
}
|
7771
|
-
}, Dd = { class: "flex" }, Ad = { class: "flex flex-col gap-y-1 flex-1" }, jd = { class: "font-medium gap-x-3 flex items-center" }, Md = { class: "px-2 py-1 text-sm text-oc-text-400" },
|
7775
|
+
}, Dd = { class: "flex" }, Ad = { class: "flex flex-col gap-y-1 flex-1" }, jd = { class: "font-medium gap-x-3 flex items-center" }, Md = { class: "px-2 py-1 text-sm text-oc-text-400" }, Pd = {
|
7772
7776
|
key: 1,
|
7773
7777
|
class: "text-sm text-oc-error flex items-center"
|
7774
|
-
},
|
7778
|
+
}, Ld = {
|
7775
7779
|
__name: "OcSectionItem",
|
7776
7780
|
props: {
|
7777
7781
|
title: String,
|
@@ -7824,7 +7828,7 @@ const $d = { class: "flex flex-col gap-y-2 w-full" }, kd = { class: "flex w-full
|
|
7824
7828
|
key: 0,
|
7825
7829
|
class: f(["text-oc-text-400 text-sm", e.descriptionClass])
|
7826
7830
|
}, $(e.description), 3)) : m("", !0),
|
7827
|
-
e.errorMessage ? (t(), s("div",
|
7831
|
+
e.errorMessage ? (t(), s("div", Pd, $(e.errorMessage), 1)) : m("", !0)
|
7828
7832
|
]),
|
7829
7833
|
S(o.$slots, "actions", {}, () => [
|
7830
7834
|
e.isToggle ? (t(), p(i(St), F({
|
@@ -7908,7 +7912,7 @@ const $d = { class: "flex flex-col gap-y-2 w-full" }, kd = { class: "flex w-full
|
|
7908
7912
|
]])
|
7909
7913
|
}, [
|
7910
7914
|
e.optionType === "icon" ? (t(), s("div", Ed, [
|
7911
|
-
(t(!0), s(
|
7915
|
+
(t(!0), s(L, null, R(e.options, (v) => (t(), s("div", {
|
7912
7916
|
key: v.value,
|
7913
7917
|
class: f(["p-1", {
|
7914
7918
|
"bg-oc-gray-200 rounded-sm": v.value.toString() === e.modelValue.toString()
|
@@ -7919,7 +7923,7 @@ const $d = { class: "flex flex-col gap-y-2 w-full" }, kd = { class: "flex w-full
|
|
7919
7923
|
onClick: (b) => o(v.value)
|
7920
7924
|
}, null, 8, ["name", "onClick"])
|
7921
7925
|
], 2))), 128))
|
7922
|
-
])) : (t(!0), s(
|
7926
|
+
])) : (t(!0), s(L, { key: 1 }, R(e.options, (v) => (t(), s("div", {
|
7923
7927
|
key: v.value,
|
7924
7928
|
class: f(["cursor-pointer group items-start", {
|
7925
7929
|
"flex border border-oc-gray-200 p-3 rounded hover:shadow": !d.value,
|
@@ -8161,15 +8165,15 @@ const $d = { class: "flex flex-col gap-y-2 w-full" }, kd = { class: "flex w-full
|
|
8161
8165
|
a.accept,
|
8162
8166
|
a.validateAcceptFileType
|
8163
8167
|
), j = z(() => {
|
8164
|
-
var
|
8165
|
-
return URL.createObjectURL((
|
8168
|
+
var P;
|
8169
|
+
return URL.createObjectURL((P = O.value) == null ? void 0 : P[0].file);
|
8166
8170
|
}), k = z(() => {
|
8167
|
-
var
|
8168
|
-
return (
|
8171
|
+
var P;
|
8172
|
+
return (P = O.value) == null ? void 0 : P[0];
|
8169
8173
|
});
|
8170
8174
|
Ce(() => {
|
8171
8175
|
if (a.modelValue && a.modelValue.current) {
|
8172
|
-
const
|
8176
|
+
const P = [
|
8173
8177
|
{
|
8174
8178
|
current: a.modelValue.current,
|
8175
8179
|
file: null,
|
@@ -8181,38 +8185,38 @@ const $d = { class: "flex flex-col gap-y-2 w-full" }, kd = { class: "flex w-full
|
|
8181
8185
|
extension: a.modelValue.current.extension ?? "png"
|
8182
8186
|
}
|
8183
8187
|
];
|
8184
|
-
O.value =
|
8188
|
+
O.value = P;
|
8185
8189
|
}
|
8186
8190
|
});
|
8187
|
-
const B = (
|
8188
|
-
|
8189
|
-
const A =
|
8191
|
+
const B = (P) => {
|
8192
|
+
P.preventDefault();
|
8193
|
+
const A = P.dataTransfer.files;
|
8190
8194
|
D({ target: { files: A } }, a.format === "object");
|
8191
8195
|
}, g = () => {
|
8192
8196
|
!d.value || !c.value || l("update:modelValue", { fileName: c, fileLink: d });
|
8193
|
-
}, I = (
|
8194
|
-
k.value.fileUrl =
|
8195
|
-
}, V = async (
|
8196
|
-
if (
|
8197
|
+
}, I = (P) => {
|
8198
|
+
k.value.fileUrl = P, k.value.fileName = Date.now(), y.value = !1, x.value = "", l("update:modelValue", a.format === "object" ? k.value : [k.value]);
|
8199
|
+
}, V = async (P) => {
|
8200
|
+
if (P)
|
8197
8201
|
try {
|
8198
|
-
const A = await fetch(
|
8202
|
+
const A = await fetch(P, { method: "HEAD" });
|
8199
8203
|
u.value = A.ok;
|
8200
8204
|
} catch (A) {
|
8201
8205
|
console.log("Error checking file link:", A);
|
8202
8206
|
}
|
8203
8207
|
}, N = () => {
|
8204
8208
|
x.value = k.value.fileUrl, b.value = !1, y.value = !0;
|
8205
|
-
}, E = (
|
8206
|
-
l("update:modelValue",
|
8209
|
+
}, E = (P) => {
|
8210
|
+
l("update:modelValue", P);
|
8207
8211
|
};
|
8208
|
-
return (
|
8212
|
+
return (P, A) => (t(), p(i(ge), {
|
8209
8213
|
label: e.label,
|
8210
8214
|
"label-class": e.labelClass,
|
8211
8215
|
hint: e.hint,
|
8212
8216
|
"error-message": e.errorMessage
|
8213
8217
|
}, {
|
8214
8218
|
hint: w(() => [
|
8215
|
-
S(
|
8219
|
+
S(P.$slots, "hint")
|
8216
8220
|
]),
|
8217
8221
|
default: w(() => {
|
8218
8222
|
var U, H, X, ee, _, oe, se, ue, be, we, me, $e, ie, Ve, ke;
|
@@ -8226,7 +8230,7 @@ const $d = { class: "flex flex-col gap-y-2 w-full" }, kd = { class: "flex w-full
|
|
8226
8230
|
"onUpdate:uploadedImage": E,
|
8227
8231
|
onChange: A[0] || (A[0] = (Q) => i(D)(Q, a.format === "object")),
|
8228
8232
|
onDelete: A[1] || (A[1] = (Q) => i(C)(0))
|
8229
|
-
}, null, 8, ["accept", "uploaded-image", "image-classes", "show-upload-image-area"])) : e.isButtonOnly ? (t(), s(
|
8233
|
+
}, null, 8, ["accept", "uploaded-image", "image-classes", "show-upload-image-area"])) : e.isButtonOnly ? (t(), s(L, { key: 1 }, [
|
8230
8234
|
h(i(G), F(e.buttonUploadProps, {
|
8231
8235
|
onClick: A[2] || (A[2] = (Q) => {
|
8232
8236
|
var Oe;
|
@@ -8241,7 +8245,7 @@ const $d = { class: "flex flex-col gap-y-2 w-full" }, kd = { class: "flex w-full
|
|
8241
8245
|
accept: e.accept,
|
8242
8246
|
onChange: A[3] || (A[3] = (Q) => i(D)(Q, a.format === "object"))
|
8243
8247
|
}, null, 40, Gd)
|
8244
|
-
], 64)) : (t(), s(
|
8248
|
+
], 64)) : (t(), s(L, { key: 2 }, [
|
8245
8249
|
i(O).length ? (t(), s("div", {
|
8246
8250
|
key: 1,
|
8247
8251
|
class: f(["p-3 rounded border flex gap-x-5 border-oc-gray-200 bg-white items-center", {
|
@@ -8314,7 +8318,7 @@ const $d = { class: "flex flex-col gap-y-2 w-full" }, kd = { class: "flex w-full
|
|
8314
8318
|
}),
|
8315
8319
|
onChangeImage: I
|
8316
8320
|
}, null, 8, ["modelValue", "img"])) : m("", !0)
|
8317
|
-
])) : (t(), s(
|
8321
|
+
])) : (t(), s(L, { key: 1 }, [
|
8318
8322
|
n("div", ac, [
|
8319
8323
|
n("div", nc, [
|
8320
8324
|
h(i(T), {
|
@@ -8355,7 +8359,7 @@ const $d = { class: "flex flex-col gap-y-2 w-full" }, kd = { class: "flex w-full
|
|
8355
8359
|
], 64))
|
8356
8360
|
], 2)) : (t(), s("div", Xd, [
|
8357
8361
|
n("div", Jd, [
|
8358
|
-
e.variant === "url" ? (t(), s(
|
8362
|
+
e.variant === "url" ? (t(), s(L, { key: 0 }, [
|
8359
8363
|
h(i(xe), {
|
8360
8364
|
modelValue: d.value,
|
8361
8365
|
"onUpdate:modelValue": A[4] || (A[4] = (Q) => d.value = Q),
|
@@ -8510,18 +8514,18 @@ const $d = { class: "flex flex-col gap-y-2 w-full" }, kd = { class: "flex w-full
|
|
8510
8514
|
"onUpdate:modelValue": V[0] || (V[0] = (N) => I.$emit("update:uploadedImages", N))
|
8511
8515
|
}, {
|
8512
8516
|
default: w(({ list: N }) => [
|
8513
|
-
(t(!0), s(
|
8517
|
+
(t(!0), s(L, null, R(N, (E, P) => (t(), s("div", {
|
8514
8518
|
key: E.fileName,
|
8515
8519
|
class: f(["w-[100px] group relative cursor-pointer aspect-square border rounded border-oc-accent-1-100 bg-cover bg-center", {
|
8516
8520
|
"border-oc-primary": e.selectedImage.fileName === E.fileName,
|
8517
|
-
"col-start-2":
|
8521
|
+
"col-start-2": P === 0 && B.value
|
8518
8522
|
}]),
|
8519
8523
|
style: re(`background-image: url(${E.fileUrl})`),
|
8520
8524
|
onClick: (A) => I.$emit("update:selectedImage", E)
|
8521
8525
|
}, [
|
8522
8526
|
h(i(ne), {
|
8523
|
-
modelValue: o.value[
|
8524
|
-
"onUpdate:modelValue": (A) => o.value[
|
8527
|
+
modelValue: o.value[P],
|
8528
|
+
"onUpdate:modelValue": (A) => o.value[P] = A,
|
8525
8529
|
placement: "bottom-end",
|
8526
8530
|
class: "absolute top-2 right-2 z-[1010] hidden group-hover:flex"
|
8527
8531
|
}, {
|
@@ -8529,12 +8533,12 @@ const $d = { class: "flex flex-col gap-y-2 w-full" }, kd = { class: "flex w-full
|
|
8529
8533
|
S(I.$slots, "action", {
|
8530
8534
|
item: E,
|
8531
8535
|
removeItem: x,
|
8532
|
-
fileIndex:
|
8536
|
+
fileIndex: P
|
8533
8537
|
}, () => [
|
8534
8538
|
n("div", vc, [
|
8535
8539
|
n("div", {
|
8536
8540
|
class: "flex p-3 cursor-pointer items-center gap-x-3",
|
8537
|
-
onClick: (A) => g(
|
8541
|
+
onClick: (A) => g(P, E)
|
8538
8542
|
}, [
|
8539
8543
|
h(i(T), {
|
8540
8544
|
width: "16",
|
@@ -8546,7 +8550,7 @@ const $d = { class: "flex flex-col gap-y-2 w-full" }, kd = { class: "flex w-full
|
|
8546
8550
|
n("div", {
|
8547
8551
|
class: "flex p-3 cursor-pointer items-center text-oc-error gap-x-3",
|
8548
8552
|
onClick: () => {
|
8549
|
-
x(
|
8553
|
+
x(P), o.value[P] = !1;
|
8550
8554
|
}
|
8551
8555
|
}, [
|
8552
8556
|
h(i(T), {
|
@@ -8737,7 +8741,7 @@ const $d = { class: "flex flex-col gap-y-2 w-full" }, kd = { class: "flex w-full
|
|
8737
8741
|
})
|
8738
8742
|
]),
|
8739
8743
|
_: 3
|
8740
|
-
}, 8, ["uploaded-images", "selected-image", "columns-count", "accept", "input-options", "max-images", "onChange", "onDelete"])) : e.isButtonOnly ? (t(), s(
|
8744
|
+
}, 8, ["uploaded-images", "selected-image", "columns-count", "accept", "input-options", "max-images", "onChange", "onDelete"])) : e.isButtonOnly ? (t(), s(L, { key: 1 }, [
|
8741
8745
|
S(C.$slots, "button", { triggerInput: D }, () => [
|
8742
8746
|
h(i(G), F(e.buttonUploadProps, { onClick: D }), null, 16)
|
8743
8747
|
]),
|
@@ -8761,7 +8765,7 @@ const $d = { class: "flex flex-col gap-y-2 w-full" }, kd = { class: "flex w-full
|
|
8761
8765
|
]])
|
8762
8766
|
}, [
|
8763
8767
|
n("div", $c, [
|
8764
|
-
(t(!0), s(
|
8768
|
+
(t(!0), s(L, null, R(i(v), (k, B) => (t(), s("div", {
|
8765
8769
|
key: `${B}-${k.fileName}`,
|
8766
8770
|
class: "flex justify-between relative items-center w-full last:mb-2"
|
8767
8771
|
}, [
|
@@ -8842,7 +8846,7 @@ const $d = { class: "flex flex-col gap-y-2 w-full" }, kd = { class: "flex w-full
|
|
8842
8846
|
}, 8, ["label", "hint", "error-message"])
|
8843
8847
|
]));
|
8844
8848
|
}
|
8845
|
-
}, Mc = ["value"],
|
8849
|
+
}, Mc = ["value"], Pc = /* @__PURE__ */ Z({
|
8846
8850
|
__name: "OcNumberInput",
|
8847
8851
|
props: {
|
8848
8852
|
modelValue: {
|
@@ -8917,7 +8921,7 @@ const $d = { class: "flex flex-col gap-y-2 w-full" }, kd = { class: "flex w-full
|
|
8917
8921
|
_: 1
|
8918
8922
|
}, 8, ["label", "tooltip-options", "error-message", "hint", "label-icon", "is-required", "tooltip-text"]));
|
8919
8923
|
}
|
8920
|
-
}),
|
8924
|
+
}), Lc = {
|
8921
8925
|
__name: "OcDropdown",
|
8922
8926
|
props: {
|
8923
8927
|
distance: {
|
@@ -9017,7 +9021,7 @@ const $d = { class: "flex flex-col gap-y-2 w-full" }, kd = { class: "flex w-full
|
|
9017
9021
|
[i(wt), v]
|
9018
9022
|
]);
|
9019
9023
|
}
|
9020
|
-
}, ne = /* @__PURE__ */ he(
|
9024
|
+
}, ne = /* @__PURE__ */ he(Lc, [["__scopeId", "data-v-28a0af68"]]), Ec = { class: "flex items-center gap-x-3 p-3" }, zc = { class: "md:text-base text-sm" }, Nc = {
|
9021
9025
|
key: 0,
|
9022
9026
|
class: "p-3 text-sm text-oc-text-300"
|
9023
9027
|
}, pe = {
|
@@ -9633,11 +9637,11 @@ const $d = { class: "flex flex-col gap-y-2 w-full" }, kd = { class: "flex w-full
|
|
9633
9637
|
}, {
|
9634
9638
|
menu: w(() => [
|
9635
9639
|
n("div", iu, [
|
9636
|
-
(t(!0), s(
|
9640
|
+
(t(!0), s(L, null, R(e.topMenu, (o, d) => (t(), s(L, { key: d }, [
|
9637
9641
|
n("div", su, [
|
9638
9642
|
n("span", ru, $(o.title), 1)
|
9639
9643
|
]),
|
9640
|
-
(t(!0), s(
|
9644
|
+
(t(!0), s(L, null, R(o.items, (c, u) => (t(), p(i(pe), F({
|
9641
9645
|
key: u,
|
9642
9646
|
class: "text-sm",
|
9643
9647
|
ref_for: !0
|
@@ -9649,7 +9653,7 @@ const $d = { class: "flex flex-col gap-y-2 w-full" }, kd = { class: "flex w-full
|
|
9649
9653
|
}, 1040))), 128))
|
9650
9654
|
], 64))), 128)),
|
9651
9655
|
l[2] || (l[2] = n("div", { class: "w-full border-t border-gray-200" }, null, -1)),
|
9652
|
-
(t(!0), s(
|
9656
|
+
(t(!0), s(L, null, R(e.bottomMenu, (o, d) => (t(), p(i(pe), F({
|
9653
9657
|
key: d,
|
9654
9658
|
class: "text-sm",
|
9655
9659
|
ref_for: !0
|
@@ -9816,10 +9820,10 @@ const $d = { class: "flex flex-col gap-y-2 w-full" }, kd = { class: "flex w-full
|
|
9816
9820
|
const a = e, l = r, o = (g, I) => {
|
9817
9821
|
l("onUpdate", g, I);
|
9818
9822
|
}, d = {
|
9819
|
-
CardInput:
|
9823
|
+
CardInput: Ps,
|
9820
9824
|
CheckboxesGroup: Es,
|
9821
9825
|
Input: xe,
|
9822
|
-
NumberInput:
|
9826
|
+
NumberInput: Pc,
|
9823
9827
|
LinkInput: Ir,
|
9824
9828
|
Select: br,
|
9825
9829
|
TextArea: Ar,
|
@@ -9831,14 +9835,14 @@ const $d = { class: "flex flex-col gap-y-2 w-full" }, kd = { class: "flex w-full
|
|
9831
9835
|
Slider: kt,
|
9832
9836
|
RangeInput: ur,
|
9833
9837
|
PhoneInput: lr,
|
9834
|
-
SectionItem:
|
9838
|
+
SectionItem: Ld,
|
9835
9839
|
SelectOptions: Fd
|
9836
9840
|
}, c = (g) => d[g] ? d[g] : null, u = z(() => {
|
9837
9841
|
const g = (V) => V.split(`
|
9838
9842
|
`).map((N) => N.trim()).filter(Boolean).map((N) => `"${N}"`).join(" "), I = {};
|
9839
9843
|
return Object.entries(a.grid).forEach(([V, N]) => {
|
9840
|
-
Object.entries(N).forEach(([E,
|
9841
|
-
I[`--grid-${V}-${E}`] = E === "area" ? g(
|
9844
|
+
Object.entries(N).forEach(([E, P]) => {
|
9845
|
+
I[`--grid-${V}-${E}`] = E === "area" ? g(P) : P;
|
9842
9846
|
});
|
9843
9847
|
}), I;
|
9844
9848
|
}), v = (g) => typeof g == "object" ? g[0].key : g, b = (g) => `grid-area: ${v(g)}`, y = z(() => a.class), x = M({}), O = M({}), D = M({}), C = (g) => typeof g == "object" ? g[0].key : g, j = (g) => {
|
@@ -9897,8 +9901,8 @@ const $d = { class: "flex flex-col gap-y-2 w-full" }, kd = { class: "flex w-full
|
|
9897
9901
|
class: f(e.grid ? `responsive-smart-form-grid ${y.value}` : y.value),
|
9898
9902
|
style: re(e.grid ? u.value : "")
|
9899
9903
|
}, [
|
9900
|
-
(t(!0), s(
|
9901
|
-
var N, E,
|
9904
|
+
(t(!0), s(L, null, R(e.jsonForm, (V) => {
|
9905
|
+
var N, E, P, A, U, H;
|
9902
9906
|
return t(), s("div", {
|
9903
9907
|
key: v(V.name),
|
9904
9908
|
style: re(e.grid ? b(V.name) : ""),
|
@@ -9911,7 +9915,7 @@ const $d = { class: "flex flex-col gap-y-2 w-full" }, kd = { class: "flex w-full
|
|
9911
9915
|
key: 0,
|
9912
9916
|
ref_for: !0
|
9913
9917
|
}, V.props, {
|
9914
|
-
"model-value": (N = V.props) != null && N.parentKey ? (
|
9918
|
+
"model-value": (N = V.props) != null && N.parentKey ? (P = (E = x.value) == null ? void 0 : E[V.props.parentKey]) == null ? void 0 : P[V.name] : x.value[typeof V.name == "object" ? C(V.name) : V.name],
|
9915
9919
|
"error-message": O.value[typeof V.name == "object" ? C(V.name) : V.name],
|
9916
9920
|
"onUpdate:modelValue": (X) => o(V, X)
|
9917
9921
|
}), null, 16, ["model-value", "error-message", "onUpdate:modelValue"])) : S(g.$slots, V.type, {
|
@@ -9926,15 +9930,15 @@ const $d = { class: "flex flex-col gap-y-2 w-full" }, kd = { class: "flex w-full
|
|
9926
9930
|
}), 128))
|
9927
9931
|
], 6)) : m("", !0);
|
9928
9932
|
}
|
9929
|
-
}, Dm = de(() => import("./OcDataTable-
|
9930
|
-
() => import("./OcComplexCalendar-
|
9931
|
-
),
|
9932
|
-
() => import("./OcComplexDatePicker-
|
9933
|
-
), ot = de(() => import("./OcModalCropper-
|
9934
|
-
() => import("./ThumbnailTheme-
|
9933
|
+
}, Dm = de(() => import("./OcDataTable-BTgZYC64.js")), Am = de(() => import("./OcFilterSearch-7oHB9RkR.js")), jm = de(() => import("./OcFilterSearchFor-BvvqJ-b-.js")), Mm = de(() => import("./OcFilterForm-HRZ8LgFL.js")), hu = de(
|
9934
|
+
() => import("./OcComplexCalendar-9rZbu59e.js")
|
9935
|
+
), Pm = de(
|
9936
|
+
() => import("./OcComplexDatePicker-e9PArxZ1.js")
|
9937
|
+
), ot = de(() => import("./OcModalCropper-_JTW2Uvu.js")), Lm = de(() => import("./OcCropper-B6ij7yY3.js")), bu = de(() => import("./OcDraggable-CA_BCbpl.js")), Em = de(() => import("./OcDraggableList-BYzUbyJX.js")), zm = de(() => import("./OcEmojiPicker-8a8G8-nU.js")), Nm = de(
|
9938
|
+
() => import("./ThumbnailTheme-6GIOokSb.js")
|
9935
9939
|
), Rm = de(
|
9936
|
-
() => import("./ThumbnailSection-
|
9937
|
-
), Fm = de(() => import("./SubPlanCard-
|
9940
|
+
() => import("./ThumbnailSection-DfeUfddb.js")
|
9941
|
+
), Fm = de(() => import("./SubPlanCard-60j8QhAA.js")), Um = de(() => import("./OcTimePopup-CXGhaOev.js")), wu = de(() => import("./OcTimePicker-DM8yNBD3.js"));
|
9938
9942
|
export {
|
9939
9943
|
tm as $,
|
9940
9944
|
Wu as A,
|
@@ -9964,7 +9968,7 @@ export {
|
|
9964
9968
|
Qu as Y,
|
9965
9969
|
_u as Z,
|
9966
9970
|
ge as _,
|
9967
|
-
|
9971
|
+
Ps as a,
|
9968
9972
|
Wn as a0,
|
9969
9973
|
fm as a1,
|
9970
9974
|
yi as a2,
|
@@ -9982,9 +9986,9 @@ export {
|
|
9982
9986
|
Mm as aE,
|
9983
9987
|
jm as aF,
|
9984
9988
|
Dm as aG,
|
9985
|
-
|
9989
|
+
Pm as aH,
|
9986
9990
|
ot as aI,
|
9987
|
-
|
9991
|
+
Lm as aJ,
|
9988
9992
|
Em as aK,
|
9989
9993
|
zm as aL,
|
9990
9994
|
Nm as aM,
|
@@ -10033,11 +10037,11 @@ export {
|
|
10033
10037
|
Ar as o,
|
10034
10038
|
wd as p,
|
10035
10039
|
Td as q,
|
10036
|
-
|
10040
|
+
Ld as r,
|
10037
10041
|
Fd as s,
|
10038
10042
|
Cm as t,
|
10039
10043
|
Vm as u,
|
10040
|
-
|
10044
|
+
Pc as v,
|
10041
10045
|
Tm as w,
|
10042
10046
|
Gu as x,
|
10043
10047
|
Ku as y,
|