@orchidui/core 1.17.0 → 1.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/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 +2 -2
- package/dist/Elements/SubSidebar/OcSubSidebar.js +1 -1
- package/dist/Elements/TopBanner/OcTopBanner.js +4 -0
- package/dist/Elements/VerificationOption/OcVerificationOption.js +2 -2
- 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/Slider/OcSlider.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/{OcAccountSetupProgress-CV9uNxeg.js → OcAccountSetupProgress-g7V1kvOf.js} +1 -1
- package/dist/{OcComplexCalendar-D54oHLwu.js → OcComplexCalendar-CWPFV545.js} +1 -1
- package/dist/{OcComplexDatePicker-DaSJ4HtT.js → OcComplexDatePicker-DXg8PEZz.js} +1 -1
- package/dist/{OcCropper-DGEl7bPQ.js → OcCropper-BfXmon8i.js} +8 -8
- package/dist/{OcDataTable-F7QH2Pc0.js → OcDataTable-CsQHegQT.js} +100 -100
- package/dist/{OcDraggableList-CBZak5bV.js → OcDraggableList-BMlc5DDP.js} +11 -11
- package/dist/{OcEmojiPicker-DPJdrLIh.js → OcEmojiPicker-vNLeufFJ.js} +1 -1
- package/dist/{OcFilterForm-Nkw7WcfL.js → OcFilterForm-DxNgWEC9.js} +1 -1
- package/dist/{OcFilterSearch-BnvEtimd.js → OcFilterSearch-D1gAk_Ea.js} +12 -12
- package/dist/{OcFilterSearchFor-D6xP7uQz.js → OcFilterSearchFor-CKrNeOon.js} +1 -1
- package/dist/{OcModalCropper-B2bB8RzF.js → OcModalCropper-DOSQE3NJ.js} +4 -4
- package/dist/{OcPopper-Bc96YXbS.js → OcPopper-CYcXF-OR.js} +17 -14
- package/dist/{OcTimePicker-BO33VUwx.js → OcTimePicker-Cjo8eKGB.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/Popper/OcPopper.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-CpBVIWpL.js → SubPlanCard-BTqSr2AX.js} +1 -1
- package/dist/{ThumbnailSection-2snZiwzc.js → ThumbnailSection-DvanWXUV.js} +1 -1
- package/dist/{ThumbnailTheme-2Ow4cKYH.js → ThumbnailTheme-Cb9Ya2ZK.js} +1 -1
- package/dist/{index-PN9RLc1R.js → index-DkumyhAj.js} +844 -788
- package/dist/index.js +45 -44
- package/dist/style.css +1 -1
- package/package.json +1 -1
@@ -1,10 +1,10 @@
|
|
1
|
-
import { computed as z, ref as M, onMounted as we, openBlock as t, createElementBlock as i, normalizeClass as v, renderSlot as $, createCommentVNode as u, createElementVNode as n, createBlock as y, unref as o, Fragment as N, renderList as R, withCtx as S, createTextVNode as W, toDisplayString as
|
1
|
+
import { computed as z, ref as M, onMounted as we, openBlock as t, createElementBlock as i, normalizeClass as v, renderSlot as $, createCommentVNode as u, createElementVNode as n, createBlock as y, unref as o, Fragment as N, renderList as R, withCtx as S, createTextVNode as W, toDisplayString as w, createVNode as p, resolveDynamicComponent as at, normalizeProps as me, mergeProps as F, guardReactiveProps as Ie, withModifiers as fe, defineComponent as Z, normalizeStyle as ie, createSlots as te, useSlots as ht, onBeforeUnmount as Pt, withDirectives as Oe, vShow as Ee, watch as ue, 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 de } from "vue";
|
2
2
|
import { S as le } from "./OcSkeleton-CvdpGSQR.js";
|
3
3
|
import { _ as ge } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
4
4
|
import { _ as T } from "./OcIcon-CSpRxnwd.js";
|
5
5
|
import { clickOutside as nt } from "./directives/clickOutside.js";
|
6
|
-
import { _ as bt } from "./OcPopper-
|
7
|
-
import
|
6
|
+
import { _ as bt } from "./OcPopper-CYcXF-OR.js";
|
7
|
+
import X from "dayjs";
|
8
8
|
import { _ as st } from "./OcAvatar-DeVm4Ck5.js";
|
9
9
|
import "./OcProgressBar-hiyC5XSc.js";
|
10
10
|
import "./OcHorizontalProgressbar.vue_vue_type_script_setup_true_lang-4eVgPDi5.js";
|
@@ -21,7 +21,7 @@ import "./OcTheme-CWgrJh5Q.js";
|
|
21
21
|
const Kt = {
|
22
22
|
key: 0,
|
23
23
|
class: "flex relative group/row md:p-0 py-3 w-full"
|
24
|
-
},
|
24
|
+
}, Nm = {
|
25
25
|
__name: "OcTable",
|
26
26
|
props: {
|
27
27
|
options: {
|
@@ -75,15 +75,15 @@ const Kt = {
|
|
75
75
|
}, k = () => {
|
76
76
|
const O = x.value.length === c.value.length;
|
77
77
|
x.value = O ? [] : [...c.value];
|
78
|
-
}, A = z(() => typeof a.rowClass == "function" ? (O,
|
79
|
-
!
|
78
|
+
}, A = z(() => typeof a.rowClass == "function" ? (O, b) => a.rowClass(O, b) : () => a.rowClass), j = (O, b) => {
|
79
|
+
!b.disableClickRow && b.key !== "actions" && l("click:row", {
|
80
80
|
field: O,
|
81
|
-
header:
|
81
|
+
header: b
|
82
82
|
});
|
83
83
|
}, I = M(!0), C = M(!0), h = M(), B = () => {
|
84
84
|
a.isSticky && (I.value = h.value.scrollLeft === 0, C.value = h.value.scrollLeft + h.value.clientWidth === h.value.scrollWidth);
|
85
85
|
};
|
86
|
-
return we(() => B()), (O,
|
86
|
+
return we(() => B()), (O, b) => (t(), i("div", {
|
87
87
|
ref_key: "scrollTable",
|
88
88
|
ref: h,
|
89
89
|
class: v(["flex text-oc-text flex-col border-oc-gray-200 isolate z-10", [
|
@@ -199,7 +199,7 @@ const Kt = {
|
|
199
199
|
"is-selected": x.value.some((E) => f.value(E) === f.value(V)),
|
200
200
|
variant: "checkbox",
|
201
201
|
onSelected: (E) => g(V),
|
202
|
-
"onHover:field":
|
202
|
+
"onHover:field": b[0] || (b[0] = (E) => O.$emit("hover:cell", E))
|
203
203
|
}, null, 8, ["is-last", "is-selected", "class", "onSelected"])) : u("", !0),
|
204
204
|
(t(!0), i(N, null, R(m.value, (E, P) => (t(), y(o(Re), {
|
205
205
|
key: `${P}-${L}`,
|
@@ -226,7 +226,7 @@ const Kt = {
|
|
226
226
|
"image-class": E.imageClass,
|
227
227
|
link: e.rowLink && V[e.rowLink] && E.key !== "actions" ? V[e.rowLink] : "",
|
228
228
|
onClick: (D) => j(V, E),
|
229
|
-
"onHover:field":
|
229
|
+
"onHover:field": b[1] || (b[1] = (D) => O.$emit("hover:cell", D))
|
230
230
|
}, {
|
231
231
|
default: S(() => [
|
232
232
|
O.$slots[E.key] ? $(O.$slots, E.key, {
|
@@ -285,7 +285,7 @@ const Kt = {
|
|
285
285
|
class: "rounded-full w-full overflow-hidden h-6"
|
286
286
|
})) : (t(), i(N, { key: 1 }, [
|
287
287
|
e.variant === r.TEXT ? $(l.$slots, "default", { key: 0 }, () => [
|
288
|
-
W(
|
288
|
+
W(w(e.text), 1)
|
289
289
|
]) : $(l.$slots, "default", { key: 1 }, () => [
|
290
290
|
n("div", Gt, [
|
291
291
|
p(o(Te), {
|
@@ -426,14 +426,14 @@ const Kt = {
|
|
426
426
|
]))
|
427
427
|
], 64)) : e.variant === r.EMPTY ? (t(), i("div", Qt, "-")) : e.variant === r.DATETIME ? (t(), y(o(dt), {
|
428
428
|
key: 4,
|
429
|
-
title: o(
|
430
|
-
description: o(
|
429
|
+
title: o(X)(e.data).format("D MMM, YYYY"),
|
430
|
+
description: o(X)(e.data).format("h:mm A")
|
431
431
|
}, null, 8, ["title", "description"])) : e.variant === r.CONTENT ? (t(), y(o(dt), me(F({ key: 5 }, e.content)), null, 16)) : e.variant === r.CHIP ? (t(), i("div", {
|
432
432
|
key: 6,
|
433
433
|
link: e.link
|
434
434
|
}, [
|
435
435
|
p(o(ne), me(Ie(s.value)), null, 16)
|
436
|
-
], 8, _t)) : e.variant === r.DEFAULT ? (t(), i("div", el,
|
436
|
+
], 8, _t)) : e.variant === r.DEFAULT ? (t(), i("div", el, w(e.data), 1)) : (t(), i("div", {
|
437
437
|
key: 8,
|
438
438
|
link: e.link,
|
439
439
|
class: "w-full h-full"
|
@@ -485,14 +485,14 @@ const Kt = {
|
|
485
485
|
href: e.href,
|
486
486
|
target: "_blank",
|
487
487
|
rel: "noopener noreferrer"
|
488
|
-
},
|
489
|
-
W(
|
488
|
+
}, w(e.title), 9, ll)) : (t(), i(N, { key: 1 }, [
|
489
|
+
W(w(e.title), 1)
|
490
490
|
], 64)),
|
491
491
|
e.title ? u("", !0) : (t(), i("span", al, "-"))
|
492
492
|
], 2),
|
493
493
|
n("span", nl, [
|
494
494
|
$(r.$slots, "description", { description: e.description }, () => [
|
495
|
-
W(
|
495
|
+
W(w(e.description), 1)
|
496
496
|
]),
|
497
497
|
e.description ? u("", !0) : (t(), i("span", il, "-"))
|
498
498
|
])
|
@@ -553,6 +553,10 @@ const Kt = {
|
|
553
553
|
isSticky: {
|
554
554
|
type: Boolean,
|
555
555
|
default: !1
|
556
|
+
},
|
557
|
+
gridTemplateColumns: {
|
558
|
+
type: String,
|
559
|
+
default: "32px 200px repeat(${headers.length - 1}, minmax(150px, auto)) 32px"
|
556
560
|
}
|
557
561
|
},
|
558
562
|
setup(e) {
|
@@ -570,13 +574,13 @@ const Kt = {
|
|
570
574
|
var f, x;
|
571
575
|
return t(), i(N, null, [
|
572
576
|
n("div", {
|
573
|
-
class: v(["grid h-[58px] items-center border-b border-oc-gray-200 min-w-max relative", {
|
577
|
+
class: v(["grid min-h-[58px] items-center border-b border-oc-gray-200 min-w-max relative", {
|
574
578
|
"font-medium": e.important || e.isTotal,
|
575
579
|
"bg-oc-gray-900 text-white": e.isTotal,
|
576
580
|
"bg-oc-bg-dark": e.depth
|
577
581
|
}]),
|
578
582
|
style: ie({
|
579
|
-
gridTemplateColumns:
|
583
|
+
gridTemplateColumns: e.gridTemplateColumns
|
580
584
|
})
|
581
585
|
}, [
|
582
586
|
n("div", {
|
@@ -610,7 +614,7 @@ const Kt = {
|
|
610
614
|
}, () => {
|
611
615
|
var j;
|
612
616
|
return [
|
613
|
-
W(
|
617
|
+
W(w((j = e.row) == null ? void 0 : j[g == null ? void 0 : g.key]), 1)
|
614
618
|
];
|
615
619
|
})
|
616
620
|
], 2);
|
@@ -618,10 +622,10 @@ const Kt = {
|
|
618
622
|
n("div", {
|
619
623
|
class: v(["px-4 py-3 whitespace-nowrap flex items-center gap-2", e.isSticky ? "sticky left-9 z-10 bg-white border-oc-gray-200" : ""])
|
620
624
|
}, [
|
621
|
-
W(
|
625
|
+
W(w(e.row.label) + " ", 1),
|
622
626
|
p(o(ae), null, {
|
623
627
|
popper: S(() => [
|
624
|
-
n("div", dl,
|
628
|
+
n("div", dl, w(e.row.infoText), 1)
|
625
629
|
]),
|
626
630
|
default: S(() => [
|
627
631
|
e.row.infoText ? (t(), y(o(T), {
|
@@ -636,7 +640,7 @@ const Kt = {
|
|
636
640
|
], 2),
|
637
641
|
n("div", cl, [
|
638
642
|
$(c.$slots, e.row.key, { value: e.value }, () => [
|
639
|
-
W(
|
643
|
+
W(w(e.value), 1)
|
640
644
|
])
|
641
645
|
])
|
642
646
|
], 64)),
|
@@ -681,13 +685,17 @@ const Kt = {
|
|
681
685
|
isSticky: {
|
682
686
|
type: Boolean,
|
683
687
|
default: !1
|
688
|
+
},
|
689
|
+
gridTemplateColumns: {
|
690
|
+
type: String,
|
691
|
+
default: "32px 200px repeat(${headers.length - 1}, minmax(150px, auto)) 32px"
|
684
692
|
}
|
685
693
|
},
|
686
694
|
setup(e) {
|
687
695
|
return (r, a) => (t(), i("div", {
|
688
|
-
class: "grid bg-oc-gray-50 h-[
|
696
|
+
class: "grid bg-oc-gray-50 h-[35px] min-w-max relative",
|
689
697
|
style: ie({
|
690
|
-
gridTemplateColumns:
|
698
|
+
gridTemplateColumns: e.gridTemplateColumns
|
691
699
|
})
|
692
700
|
}, [
|
693
701
|
n("div", {
|
@@ -699,11 +707,11 @@ const Kt = {
|
|
699
707
|
l.class,
|
700
708
|
e.isSticky && s === 0 ? "sticky left-9 z-10 bg-oc-gray-50 border-oc-gray-200" : ""
|
701
709
|
]])
|
702
|
-
},
|
710
|
+
}, w(l.label), 3))), 128)),
|
703
711
|
a[0] || (a[0] = n("div", { class: "w-9 border-b border-oc-text-200" }, null, -1))
|
704
712
|
], 4));
|
705
713
|
}
|
706
|
-
}), ml = { class: "flex flex-col border rounded w-full border-oc-gray-200 overflow-auto" },
|
714
|
+
}), ml = { class: "flex flex-col border rounded w-full border-oc-gray-200 overflow-auto" }, zm = /* @__PURE__ */ Z({
|
707
715
|
__name: "OcExpandingTable",
|
708
716
|
props: {
|
709
717
|
total: {
|
@@ -733,6 +741,10 @@ const Kt = {
|
|
733
741
|
isSticky: {
|
734
742
|
type: Boolean,
|
735
743
|
default: !1
|
744
|
+
},
|
745
|
+
gridTemplateColumns: {
|
746
|
+
type: String,
|
747
|
+
default: "32px 200px repeat(${headers.length - 1}, minmax(150px, auto)) 32px"
|
736
748
|
}
|
737
749
|
},
|
738
750
|
setup(e) {
|
@@ -741,23 +753,26 @@ const Kt = {
|
|
741
753
|
e.isAlternative ? (t(), i(N, { key: 0 }, [
|
742
754
|
p(ul, {
|
743
755
|
headers: e.headers,
|
744
|
-
"is-sticky": e.isSticky
|
745
|
-
|
756
|
+
"is-sticky": e.isSticky,
|
757
|
+
"grid-template-columns": e.gridTemplateColumns
|
758
|
+
}, null, 8, ["headers", "is-sticky", "grid-template-columns"]),
|
746
759
|
e.isLoading && !e.fields.length ? (t(!0), i(N, { key: 0 }, R(e.loadingRows, (d) => (t(), y(Pe, {
|
747
760
|
key: d,
|
748
761
|
"is-loading": "",
|
749
762
|
"is-alternative": e.isAlternative,
|
750
763
|
row: a.value,
|
751
764
|
headers: e.headers,
|
752
|
-
"is-sticky": e.isSticky
|
753
|
-
|
765
|
+
"is-sticky": e.isSticky,
|
766
|
+
"grid-template-columns": e.gridTemplateColumns
|
767
|
+
}, null, 8, ["is-alternative", "row", "headers", "is-sticky", "grid-template-columns"]))), 128)) : (t(!0), i(N, { key: 1 }, R(e.fields, (d, c) => (t(), y(Pe, {
|
754
768
|
key: c,
|
755
769
|
row: d,
|
756
770
|
headers: e.headers,
|
757
771
|
"is-loading": e.isLoading,
|
758
772
|
"is-alternative": e.isAlternative,
|
759
773
|
"is-sticky": e.isSticky,
|
760
|
-
important: d.important
|
774
|
+
important: d.important,
|
775
|
+
"grid-template-columns": e.gridTemplateColumns
|
761
776
|
}, te({ _: 2 }, [
|
762
777
|
R(l.$slots, (m, f) => ({
|
763
778
|
name: f,
|
@@ -765,7 +780,7 @@ const Kt = {
|
|
765
780
|
$(l.$slots, f, F({ ref_for: !0 }, x))
|
766
781
|
])
|
767
782
|
}))
|
768
|
-
]), 1032, ["row", "headers", "is-loading", "is-alternative", "is-sticky", "important"]))), 128))
|
783
|
+
]), 1032, ["row", "headers", "is-loading", "is-alternative", "is-sticky", "important", "grid-template-columns"]))), 128))
|
769
784
|
], 64)) : (t(!0), i(N, { key: 1 }, R(e.headers, (d, c) => (t(), y(Pe, {
|
770
785
|
key: c,
|
771
786
|
row: d,
|
@@ -774,7 +789,8 @@ const Kt = {
|
|
774
789
|
"is-alternative": e.isAlternative,
|
775
790
|
value: e.fields[d.key],
|
776
791
|
"is-sticky": e.isSticky,
|
777
|
-
important: d.important
|
792
|
+
important: d.important,
|
793
|
+
"grid-template-columns": e.gridTemplateColumns
|
778
794
|
}, te({ _: 2 }, [
|
779
795
|
R(l.$slots, (m, f) => ({
|
780
796
|
name: f,
|
@@ -782,19 +798,20 @@ const Kt = {
|
|
782
798
|
$(l.$slots, f, F({ ref_for: !0 }, x))
|
783
799
|
])
|
784
800
|
}))
|
785
|
-
]), 1032, ["row", "headers", "is-loading", "is-alternative", "value", "is-sticky", "important"]))), 128)),
|
801
|
+
]), 1032, ["row", "headers", "is-loading", "is-alternative", "value", "is-sticky", "important", "grid-template-columns"]))), 128)),
|
786
802
|
$(l.$slots, "total", {}, () => [
|
787
803
|
p(Pe, {
|
788
804
|
"is-total": "",
|
789
805
|
headers: e.headers,
|
790
806
|
row: { label: "Total" },
|
791
807
|
value: e.total,
|
792
|
-
"is-sticky": e.isSticky
|
793
|
-
|
808
|
+
"is-sticky": e.isSticky,
|
809
|
+
"grid-template-columns": e.gridTemplateColumns
|
810
|
+
}, null, 8, ["headers", "value", "is-sticky", "grid-template-columns"])
|
794
811
|
])
|
795
812
|
]));
|
796
813
|
}
|
797
|
-
}), fl = { class: "w-full items-center flex relative" }, vl = { class: "flex items-center gap-x-6" }, gl = { class: "hidden md:flex items-center gap-x-3" }, pl = { class: "md:hidden mx-[30px]" },
|
814
|
+
}), fl = { class: "w-full items-center flex relative" }, vl = { class: "flex items-center gap-x-6" }, gl = { class: "hidden md:flex items-center gap-x-3" }, pl = { class: "md:hidden mx-[30px]" }, Rm = {
|
798
815
|
__name: "OcPagination",
|
799
816
|
props: {
|
800
817
|
maxPage: {
|
@@ -861,7 +878,7 @@ const Kt = {
|
|
861
878
|
onClick: (c) => l.$emit("update:modelValue", d === "..." ? e.modelValue : d)
|
862
879
|
}, {
|
863
880
|
default: S(() => [
|
864
|
-
W(
|
881
|
+
W(w(d), 1)
|
865
882
|
]),
|
866
883
|
_: 2
|
867
884
|
}, 1032, ["size", "is-rounded", "active", "onClick"]))), 128))
|
@@ -873,7 +890,7 @@ const Kt = {
|
|
873
890
|
active: !0
|
874
891
|
}, {
|
875
892
|
default: S(() => [
|
876
|
-
W(
|
893
|
+
W(w(e.modelValue), 1)
|
877
894
|
]),
|
878
895
|
_: 1
|
879
896
|
}, 8, ["size", "is-rounded"])
|
@@ -919,7 +936,7 @@ const Kt = {
|
|
919
936
|
class: v(e.isNext ? "-rotate-90" : "rotate-90"),
|
920
937
|
name: "chevron-down"
|
921
938
|
}, null, 8, ["class"]),
|
922
|
-
W(" " +
|
939
|
+
W(" " + w(e.isNext ? "Next" : "Prev"), 1)
|
923
940
|
], 2));
|
924
941
|
}
|
925
942
|
}, ut = {
|
@@ -958,7 +975,7 @@ const Kt = {
|
|
958
975
|
},
|
959
976
|
setup(e) {
|
960
977
|
return (r, a) => (t(), i("div", yl, [
|
961
|
-
e.title ? (t(), i("span", xl,
|
978
|
+
e.title ? (t(), i("span", xl, w(e.title), 1)) : u("", !0),
|
962
979
|
n("div", {
|
963
980
|
class: v(["flex gap-x-5 items-start md:flex-row flex-col gap-y-3 md:gap-y-0", e.containerClass])
|
964
981
|
}, [
|
@@ -1077,7 +1094,7 @@ const Kt = {
|
|
1077
1094
|
n("div", wl, [
|
1078
1095
|
n("div", kl, [
|
1079
1096
|
$(r.$slots, "title", {}, () => [
|
1080
|
-
n("span", $l,
|
1097
|
+
n("span", $l, w(e.title), 1)
|
1081
1098
|
]),
|
1082
1099
|
p(o(ae), F({
|
1083
1100
|
position: "top",
|
@@ -1098,7 +1115,7 @@ const Kt = {
|
|
1098
1115
|
e.tooltip ? {
|
1099
1116
|
name: "popper",
|
1100
1117
|
fn: S(() => [
|
1101
|
-
n("div", Sl,
|
1118
|
+
n("div", Sl, w(e.tooltip), 1)
|
1102
1119
|
]),
|
1103
1120
|
key: "0"
|
1104
1121
|
} : void 0
|
@@ -1115,9 +1132,9 @@ const Kt = {
|
|
1115
1132
|
}, [
|
1116
1133
|
$(r.$slots, "content", {}, () => [
|
1117
1134
|
isNaN(e.percentValue) ? (t(), i(N, { key: 1 }, [
|
1118
|
-
W(
|
1135
|
+
W(w(e.content), 1)
|
1119
1136
|
], 64)) : (t(), i("div", Bl, [
|
1120
|
-
n("div", Vl,
|
1137
|
+
n("div", Vl, w(e.content), 1),
|
1121
1138
|
p(o(ae), {
|
1122
1139
|
position: "top",
|
1123
1140
|
"popper-class": "rounded-sm",
|
@@ -1131,7 +1148,7 @@ const Kt = {
|
|
1131
1148
|
width: "10",
|
1132
1149
|
height: "9"
|
1133
1150
|
}, null, 8, ["name", "class"]),
|
1134
|
-
n("span", Il,
|
1151
|
+
n("span", Il, w(e.percentValue === 0 ? "-" : `${Math.abs(e.percentValue)}%`), 1)
|
1135
1152
|
])
|
1136
1153
|
]),
|
1137
1154
|
_: 2
|
@@ -1139,7 +1156,7 @@ const Kt = {
|
|
1139
1156
|
e.percentTooltip ? {
|
1140
1157
|
name: "popper",
|
1141
1158
|
fn: S(() => [
|
1142
|
-
n("div", Tl,
|
1159
|
+
n("div", Tl, w(e.percentTooltip), 1)
|
1143
1160
|
]),
|
1144
1161
|
key: "0"
|
1145
1162
|
} : void 0
|
@@ -1191,7 +1208,7 @@ const Kt = {
|
|
1191
1208
|
setup(e, { emit: r }) {
|
1192
1209
|
const a = r;
|
1193
1210
|
return (l, s) => {
|
1194
|
-
var d, c, m, f, x, g, k, A, j, I, C, h, B, O,
|
1211
|
+
var d, c, m, f, x, g, k, A, j, I, C, h, B, O, b, V, L, E, P;
|
1195
1212
|
return t(), i("div", {
|
1196
1213
|
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 }])
|
1197
1214
|
}, [
|
@@ -1200,7 +1217,7 @@ const Kt = {
|
|
1200
1217
|
key: 0,
|
1201
1218
|
class: v(["absolute right-3 top-3 transition", { "opacity-0 group-hover:opacity-100": e.isHover }])
|
1202
1219
|
}, [
|
1203
|
-
p(o(
|
1220
|
+
p(o(K), {
|
1204
1221
|
"right-icon": "pencil",
|
1205
1222
|
variant: "secondary",
|
1206
1223
|
size: "small",
|
@@ -1223,20 +1240,20 @@ const Kt = {
|
|
1223
1240
|
default: S(() => {
|
1224
1241
|
var D, U;
|
1225
1242
|
return [
|
1226
|
-
W(
|
1243
|
+
W(w(((U = (D = e.customer) == null ? void 0 : D.name) == null ? void 0 : U[0]) || "J"), 1)
|
1227
1244
|
];
|
1228
1245
|
}),
|
1229
1246
|
_: 1
|
1230
1247
|
}),
|
1231
1248
|
n("div", jl, [
|
1232
1249
|
n("div", Ml, [
|
1233
|
-
n("span", Ll,
|
1234
|
-
e.isBeneficiary ? (t(), i("span", Pl,
|
1250
|
+
n("span", Ll, w(((d = e.customer) == null ? void 0 : d.name) || "-"), 1),
|
1251
|
+
e.isBeneficiary ? (t(), i("span", Pl, w((c = e.customer.currency) == null ? void 0 : c.toUpperCase()), 1)) : u("", !0)
|
1235
1252
|
]),
|
1236
1253
|
e.isBeneficiary ? (t(), i("span", El, [
|
1237
|
-
W(
|
1238
|
-
e.customer.bank_account_number ? (t(), i("span", Nl, " / " +
|
1239
|
-
])) : (t(), i("span", zl,
|
1254
|
+
W(w(e.customer.bank_name) + " ", 1),
|
1255
|
+
e.customer.bank_account_number ? (t(), i("span", Nl, " / " + w(e.customer.bank_account_number), 1)) : u("", !0)
|
1256
|
+
])) : (t(), i("span", zl, w(((m = e.customer) == null ? void 0 : m.email) || ((f = e.customer) != null && f.phone_number_country_code && ((x = e.customer) != null && x.phone_number) ? `+${e.customer.phone_number_country_code} ${e.customer.phone_number}` : (g = e.customer) != null && g.phone_number ? e.customer.phone_number : "-")), 1))
|
1240
1257
|
])
|
1241
1258
|
]),
|
1242
1259
|
e.variant !== "small" ? (t(), i("div", Rl, [
|
@@ -1255,7 +1272,7 @@ const Kt = {
|
|
1255
1272
|
content: [
|
1256
1273
|
((C = (I = e.customer) == null ? void 0 : I.address) == null ? void 0 : C.street) || "",
|
1257
1274
|
((B = (h = e.customer) == null ? void 0 : h.address) == null ? void 0 : B.city) || "",
|
1258
|
-
((
|
1275
|
+
((b = (O = e.customer) == null ? void 0 : O.address) == null ? void 0 : b.state) || "",
|
1259
1276
|
((L = (V = e.customer) == null ? void 0 : V.address) == null ? void 0 : L.postal_code) || "",
|
1260
1277
|
((P = (E = e.customer) == null ? void 0 : E.address) == null ? void 0 : P.country) || ""
|
1261
1278
|
].join(" ").trim() || "-"
|
@@ -1278,7 +1295,7 @@ const Kt = {
|
|
1278
1295
|
n("span", { class: "text-sm text-oc-text-400" }, " Add customer detail to this transaction ")
|
1279
1296
|
], -1))
|
1280
1297
|
]),
|
1281
|
-
p(o(
|
1298
|
+
p(o(K), {
|
1282
1299
|
variant: "secondary",
|
1283
1300
|
size: "small",
|
1284
1301
|
class: "w-full",
|
@@ -1299,7 +1316,7 @@ const Kt = {
|
|
1299
1316
|
], 2);
|
1300
1317
|
};
|
1301
1318
|
}
|
1302
|
-
}, St = /* @__PURE__ */ ge(ql, [["__scopeId", "data-v-88d0c278"]]), Hl = { class: "bg-oc-bg-dark flex flex-col gap-3 p-4 rounded" }, Yl = { key: 0 },
|
1319
|
+
}, St = /* @__PURE__ */ ge(ql, [["__scopeId", "data-v-88d0c278"]]), Hl = { class: "bg-oc-bg-dark flex flex-col gap-3 p-4 rounded" }, Yl = { key: 0 }, Fm = {
|
1303
1320
|
__name: "OcTransferSummary",
|
1304
1321
|
props: {
|
1305
1322
|
transfer: {
|
@@ -1374,10 +1391,10 @@ const Kt = {
|
|
1374
1391
|
]),
|
1375
1392
|
n("div", Kl, [
|
1376
1393
|
n("div", Gl, [
|
1377
|
-
n("span", null,
|
1394
|
+
n("span", null, w(e.title), 1),
|
1378
1395
|
n("span", Xl, [
|
1379
1396
|
$(r.$slots, "description", {}, () => [
|
1380
|
-
W(
|
1397
|
+
W(w(e.description), 1)
|
1381
1398
|
])
|
1382
1399
|
])
|
1383
1400
|
]),
|
@@ -1391,7 +1408,7 @@ const Kt = {
|
|
1391
1408
|
class: v(["text-lg font-medium", e.iconTextClass])
|
1392
1409
|
}, [
|
1393
1410
|
$(r.$slots, "iconText", {}, () => [
|
1394
|
-
W(
|
1411
|
+
W(w(e.iconText), 1)
|
1395
1412
|
])
|
1396
1413
|
], 2)
|
1397
1414
|
])
|
@@ -1422,9 +1439,9 @@ const Kt = {
|
|
1422
1439
|
return t(), i("div", Zl, [
|
1423
1440
|
n("div", Ql, [
|
1424
1441
|
n("div", _l, [
|
1425
|
-
e.title ? (t(), i("span", ea,
|
1442
|
+
e.title ? (t(), i("span", ea, w(e.title), 1)) : u("", !0),
|
1426
1443
|
l[3] || (l[3] = W(" - ")),
|
1427
|
-
e.date ? (t(), i("span", ta,
|
1444
|
+
e.date ? (t(), i("span", ta, w(e.date), 1)) : u("", !0)
|
1428
1445
|
]),
|
1429
1446
|
p(o(se), {
|
1430
1447
|
modelValue: r.value,
|
@@ -1471,7 +1488,7 @@ const Kt = {
|
|
1471
1488
|
class: v([e.imageClass, "object-contain"]),
|
1472
1489
|
alt: e.title
|
1473
1490
|
}, null, 10, ia),
|
1474
|
-
n("div", oa,
|
1491
|
+
n("div", oa, w(e.title), 1),
|
1475
1492
|
$(r.$slots, "default")
|
1476
1493
|
]));
|
1477
1494
|
}
|
@@ -1533,7 +1550,7 @@ const Kt = {
|
|
1533
1550
|
$(f.$slots, "logo"),
|
1534
1551
|
n("div", ca, [
|
1535
1552
|
n("div", ua, [
|
1536
|
-
n("span", ma,
|
1553
|
+
n("span", ma, w(e.title), 1),
|
1537
1554
|
e.chips.length ? (t(), i("div", fa, [
|
1538
1555
|
(t(!0), i(N, null, R(e.chips, (k, A) => (t(), y(o(ne), F({
|
1539
1556
|
key: A,
|
@@ -1542,7 +1559,7 @@ const Kt = {
|
|
1542
1559
|
}, k), null, 16))), 128))
|
1543
1560
|
])) : u("", !0)
|
1544
1561
|
]),
|
1545
|
-
e.description ? (t(), i("div", va,
|
1562
|
+
e.description ? (t(), i("div", va, w(e.description), 1)) : u("", !0)
|
1546
1563
|
])
|
1547
1564
|
]),
|
1548
1565
|
$(f.$slots, "right", {}, () => [
|
@@ -1578,7 +1595,7 @@ const Kt = {
|
|
1578
1595
|
default: S(({ isShow: k }) => [
|
1579
1596
|
n("div", {
|
1580
1597
|
class: v(["text-sm w-[35px] h-[24px] flex items-center justify-center border rounded-sm font-medium whitespace-nowrap", k ? " bg-white" : "bg-oc-bg-dark"])
|
1581
|
-
}, " + " +
|
1598
|
+
}, " + " + w(e.paymentMethods.length - d.value), 3)
|
1582
1599
|
]),
|
1583
1600
|
popper: S(() => [
|
1584
1601
|
n("div", xa, [
|
@@ -1648,7 +1665,7 @@ const Kt = {
|
|
1648
1665
|
n("div", $a, [
|
1649
1666
|
n("div", Sa, [
|
1650
1667
|
$(d.$slots, "title", {}, () => [
|
1651
|
-
e.title ? (t(), i("span", Ca,
|
1668
|
+
e.title ? (t(), i("span", Ca, w(e.title), 1)) : u("", !0)
|
1652
1669
|
]),
|
1653
1670
|
e.chips.length ? (t(), i("div", Ba, [
|
1654
1671
|
(t(!0), i(N, null, R(e.chips, (m, f) => (t(), y(o(ne), {
|
@@ -1693,7 +1710,7 @@ const Kt = {
|
|
1693
1710
|
height: "16",
|
1694
1711
|
class: "text-oc-text-400"
|
1695
1712
|
}, null, 8, ["name"])) : u("", !0),
|
1696
|
-
W(" " +
|
1713
|
+
W(" " + w(e.description), 1)
|
1697
1714
|
]),
|
1698
1715
|
e.details.length ? (t(), i("div", Ia, [
|
1699
1716
|
(t(!0), i(N, null, R(e.details, (m, f) => (t(), i("div", {
|
@@ -1710,7 +1727,7 @@ const Kt = {
|
|
1710
1727
|
height: "16",
|
1711
1728
|
class: "text-oc-text-400 shrink-0"
|
1712
1729
|
}, null, 8, ["name"])),
|
1713
|
-
n("div", Ta,
|
1730
|
+
n("div", Ta, w(m.label), 1)
|
1714
1731
|
]))), 128))
|
1715
1732
|
])) : u("", !0)
|
1716
1733
|
])) : u("", !0)
|
@@ -1768,7 +1785,7 @@ const Kt = {
|
|
1768
1785
|
n("div", ja, [
|
1769
1786
|
n("div", Ma, [
|
1770
1787
|
n("div", La, [
|
1771
|
-
e.title ? (t(), i("span", Pa,
|
1788
|
+
e.title ? (t(), i("span", Pa, w(e.title), 1)) : u("", !0),
|
1772
1789
|
e.chips.length ? (t(), i("div", Ea, [
|
1773
1790
|
(t(!0), i(N, null, R(e.chips, (s, d) => (t(), y(o(ne), {
|
1774
1791
|
key: d,
|
@@ -1780,10 +1797,10 @@ const Kt = {
|
|
1780
1797
|
])
|
1781
1798
|
]),
|
1782
1799
|
n("div", Na, [
|
1783
|
-
n("div", za,
|
1800
|
+
n("div", za, w(e.description), 1)
|
1784
1801
|
])
|
1785
1802
|
]),
|
1786
|
-
e.buttonProps ? (t(), y(o(
|
1803
|
+
e.buttonProps ? (t(), y(o(K), F({
|
1787
1804
|
key: 0,
|
1788
1805
|
class: "shrink-0",
|
1789
1806
|
size: "small"
|
@@ -1815,7 +1832,7 @@ const Kt = {
|
|
1815
1832
|
])) : u("", !0),
|
1816
1833
|
n("div", Ua, [
|
1817
1834
|
n("div", qa, [
|
1818
|
-
n("div", Ha,
|
1835
|
+
n("div", Ha, w(e.page.title), 1),
|
1819
1836
|
n("div", Ya, [
|
1820
1837
|
p(o(se), {
|
1821
1838
|
modelValue: r.value,
|
@@ -1837,18 +1854,18 @@ const Kt = {
|
|
1837
1854
|
}, 8, ["modelValue"])
|
1838
1855
|
])
|
1839
1856
|
]),
|
1840
|
-
n("div", Ka,
|
1857
|
+
n("div", Ka, w(a(e.page.description)), 1),
|
1841
1858
|
n("div", Ga, [
|
1842
1859
|
n("span", Xa, [
|
1843
1860
|
d[2] || (d[2] = n("span", { class: "text-oc-text-300" }, "Last updated : ", -1)),
|
1844
|
-
n("span", Ja,
|
1861
|
+
n("span", Ja, w(o(X)(e.page.updated_at).format("DD MMM YYYY")), 1)
|
1845
1862
|
]),
|
1846
1863
|
p(o(ne), {
|
1847
1864
|
class: "ml-auto md:ml-0",
|
1848
1865
|
variant: e.page.enabled ? "primary" : "gray"
|
1849
1866
|
}, {
|
1850
1867
|
default: S(() => [
|
1851
|
-
W(
|
1868
|
+
W(w(e.page.enabled ? "Published" : "Draft"), 1)
|
1852
1869
|
]),
|
1853
1870
|
_: 1
|
1854
1871
|
}, 8, ["variant"])
|
@@ -1887,11 +1904,12 @@ const Kt = {
|
|
1887
1904
|
},
|
1888
1905
|
isTransparent: Boolean,
|
1889
1906
|
isDraggable: Boolean,
|
1890
|
-
isNoToggleForced: Boolean
|
1907
|
+
isNoToggleForced: Boolean,
|
1908
|
+
isOpenDefault: Boolean
|
1891
1909
|
},
|
1892
1910
|
emits: ["edit", "delete"],
|
1893
1911
|
setup(e, { expose: r, emit: a }) {
|
1894
|
-
const l = e, s = M(
|
1912
|
+
const l = e, s = M(l.isOpenDefault), d = () => {
|
1895
1913
|
l.isNoToggleForced || (s.value = !s.value);
|
1896
1914
|
};
|
1897
1915
|
return r({
|
@@ -1922,7 +1940,7 @@ const Kt = {
|
|
1922
1940
|
n("div", en, [
|
1923
1941
|
n("div", tn, [
|
1924
1942
|
n("div", ln, [
|
1925
|
-
e.title ? (t(), i("span", an,
|
1943
|
+
e.title ? (t(), i("span", an, w(e.title), 1)) : u("", !0),
|
1926
1944
|
e.chips.length ? (t(), i("div", nn, [
|
1927
1945
|
(t(!0), i(N, null, R(e.chips, (f, x) => (t(), y(o(ne), {
|
1928
1946
|
key: x,
|
@@ -1937,7 +1955,7 @@ const Kt = {
|
|
1937
1955
|
]),
|
1938
1956
|
$(c.$slots, "default", {}, () => [
|
1939
1957
|
e.description ? (t(), i("div", on, [
|
1940
|
-
n("div", sn,
|
1958
|
+
n("div", sn, w(e.description), 1)
|
1941
1959
|
])) : u("", !0)
|
1942
1960
|
])
|
1943
1961
|
]),
|
@@ -1977,7 +1995,7 @@ const Kt = {
|
|
1977
1995
|
])
|
1978
1996
|
], 2));
|
1979
1997
|
}
|
1980
|
-
}),
|
1998
|
+
}), Um = {
|
1981
1999
|
__name: "OcListItem",
|
1982
2000
|
props: {
|
1983
2001
|
isActive: Boolean,
|
@@ -2010,7 +2028,8 @@ const Kt = {
|
|
2010
2028
|
},
|
2011
2029
|
isDisabled: Boolean,
|
2012
2030
|
isTransparent: Boolean,
|
2013
|
-
isDraggable: Boolean
|
2031
|
+
isDraggable: Boolean,
|
2032
|
+
isOpenDefault: Boolean
|
2014
2033
|
},
|
2015
2034
|
emits: ["more", "edit", "delete", "click:item"],
|
2016
2035
|
setup(e) {
|
@@ -2063,8 +2082,8 @@ const Kt = {
|
|
2063
2082
|
},
|
2064
2083
|
setup(e) {
|
2065
2084
|
return (r, a) => (t(), i("div", mn, [
|
2066
|
-
n("span", fn,
|
2067
|
-
n("span", vn,
|
2085
|
+
n("span", fn, w(e.title) + ":", 1),
|
2086
|
+
n("span", vn, w(e.url), 1),
|
2068
2087
|
e.isCopy ? (t(), y(o(je), {
|
2069
2088
|
key: 0,
|
2070
2089
|
value: e.url
|
@@ -2115,7 +2134,7 @@ const Kt = {
|
|
2115
2134
|
n("div", {
|
2116
2135
|
class: v(["flex gap-x-2 items-center shrink-0 text-oc-text-400", { "w-[80px]": e.variant === "small" && !a.value }])
|
2117
2136
|
}, [
|
2118
|
-
W(
|
2137
|
+
W(w(e.label) + " ", 1),
|
2119
2138
|
e.showCopyTooltip ? (t(), y(o(je), {
|
2120
2139
|
key: 0,
|
2121
2140
|
value: e.content
|
@@ -2135,7 +2154,7 @@ const Kt = {
|
|
2135
2154
|
class: v({ "text-base font-medium": a.value })
|
2136
2155
|
}, [
|
2137
2156
|
$(l.$slots, "content", {}, () => [
|
2138
|
-
n("span", null,
|
2157
|
+
n("span", null, w(e.content), 1)
|
2139
2158
|
])
|
2140
2159
|
], 2)
|
2141
2160
|
], 2));
|
@@ -2143,7 +2162,7 @@ const Kt = {
|
|
2143
2162
|
}, pn = { class: "uppercase" }, yn = { class: "flex flex-col px-3 py-2 text-[12px] text-oc-text-400 font-medium text-sm" }, xn = { class: "mb-auto" }, hn = {
|
2144
2163
|
key: 1,
|
2145
2164
|
class: "absolute top-2 right-2 left-2 bottom-2 bg-white flex items-center justify-center"
|
2146
|
-
},
|
2165
|
+
}, qm = {
|
2147
2166
|
__name: "OcInfoCard",
|
2148
2167
|
props: {
|
2149
2168
|
isLoading: Boolean,
|
@@ -2170,14 +2189,14 @@ const Kt = {
|
|
2170
2189
|
key: 0,
|
2171
2190
|
class: v(["flex items-start text-oc-text-400 font-medium text-[10px]", e.titleClass])
|
2172
2191
|
}, [
|
2173
|
-
n("div", pn,
|
2192
|
+
n("div", pn, w(e.title), 1),
|
2174
2193
|
e.titleIconTooltip ? (t(), y(o(ae), {
|
2175
2194
|
key: 0,
|
2176
2195
|
"popper-class": "w-max bg-oc-bg",
|
2177
2196
|
position: "top-start"
|
2178
2197
|
}, {
|
2179
2198
|
popper: S(() => [
|
2180
|
-
n("div", yn,
|
2199
|
+
n("div", yn, w(e.titleIconTooltip), 1)
|
2181
2200
|
]),
|
2182
2201
|
default: S(() => [
|
2183
2202
|
p(o(T), {
|
@@ -2211,7 +2230,7 @@ const Kt = {
|
|
2211
2230
|
}, Bn = { class: "flex items-center gap-3" }, Vn = { class: "p-[6px] rounded cursor-pointer text-oc-gray-500 hover:bg-gray-100 hover:text-oc-text" }, On = { class: "p-2 border-b border-gray-200" }, In = {
|
2212
2231
|
key: 0,
|
2213
2232
|
class: "p-2"
|
2214
|
-
},
|
2233
|
+
}, Hm = {
|
2215
2234
|
__name: "OcFloatContent",
|
2216
2235
|
props: {
|
2217
2236
|
modelValue: {
|
@@ -2254,12 +2273,12 @@ const Kt = {
|
|
2254
2273
|
n("div", kn, [
|
2255
2274
|
n("span", $n, [
|
2256
2275
|
$(l.$slots, "title", {}, () => [
|
2257
|
-
W(
|
2276
|
+
W(w(e.title), 1)
|
2258
2277
|
])
|
2259
2278
|
]),
|
2260
2279
|
$(l.$slots, "description", {}, () => [
|
2261
2280
|
n("div", Sn, [
|
2262
|
-
e.description ? (t(), i("span", Cn,
|
2281
|
+
e.description ? (t(), i("span", Cn, w(e.description), 1)) : u("", !0),
|
2263
2282
|
p(o(je), {
|
2264
2283
|
value: e.description,
|
2265
2284
|
"tooltip-options": { strategy: "fixed" }
|
@@ -2338,7 +2357,7 @@ const Kt = {
|
|
2338
2357
|
}, Mn = {
|
2339
2358
|
key: 2,
|
2340
2359
|
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"
|
2341
|
-
}, Ln = { class: "flex flex-col gap-y-1" }, Pn = { class: "font-medium" }, En = { class: "text-oc-text-300 text-sm" },
|
2360
|
+
}, Ln = { class: "flex flex-col gap-y-1" }, Pn = { class: "font-medium" }, En = { class: "text-oc-text-300 text-sm" }, Ym = /* @__PURE__ */ Z({
|
2342
2361
|
__name: "OcOnboardingListItem",
|
2343
2362
|
props: {
|
2344
2363
|
title: {
|
@@ -2381,20 +2400,20 @@ const Kt = {
|
|
2381
2400
|
width: "18",
|
2382
2401
|
height: "18"
|
2383
2402
|
})
|
2384
|
-
])) : e.number ? (t(), i("div", Mn,
|
2403
|
+
])) : e.number ? (t(), i("div", Mn, w(e.number), 1)) : u("", !0),
|
2385
2404
|
n("div", Ln, [
|
2386
2405
|
$(r.$slots, "default", {}, () => [
|
2387
|
-
n("span", Pn,
|
2388
|
-
n("span", En,
|
2406
|
+
n("span", Pn, w(e.title), 1),
|
2407
|
+
n("span", En, w(e.description), 1)
|
2389
2408
|
])
|
2390
2409
|
])
|
2391
2410
|
]),
|
2392
2411
|
$(r.$slots, "action", {}, () => [
|
2393
|
-
e.isButtonVisible ? (t(), y(o(
|
2412
|
+
e.isButtonVisible ? (t(), y(o(K), F({ key: 0 }, e.buttonOptions, { class: "shrink-0" }), null, 16)) : u("", !0)
|
2394
2413
|
])
|
2395
2414
|
]));
|
2396
2415
|
}
|
2397
|
-
}),
|
2416
|
+
}), Wm = {
|
2398
2417
|
__name: "OcAccordion",
|
2399
2418
|
props: {
|
2400
2419
|
header: {
|
@@ -2455,7 +2474,7 @@ const Kt = {
|
|
2455
2474
|
onClick: d[0] || (d[0] = (c) => a.isDisabled ? null : s.$emit("update:isExpandable", !a.isExpandable))
|
2456
2475
|
}, [
|
2457
2476
|
$(s.$slots, "header", {}, () => [
|
2458
|
-
W(
|
2477
|
+
W(w(e.header), 1)
|
2459
2478
|
]),
|
2460
2479
|
e.showIcon ? (t(), y(o(T), {
|
2461
2480
|
key: 0,
|
@@ -2472,7 +2491,7 @@ const Kt = {
|
|
2472
2491
|
class: v(["text-oc-text text-sm p-4 rounded-b z-0 border-x border-b", [e.isExpandable ? "border-oc-gray-200" : " border-transparent", e.bodyStyle]])
|
2473
2492
|
}, [
|
2474
2493
|
$(s.$slots, "body", {}, () => [
|
2475
|
-
W(
|
2494
|
+
W(w(e.body), 1)
|
2476
2495
|
])
|
2477
2496
|
], 2)
|
2478
2497
|
], 2)
|
@@ -2518,7 +2537,7 @@ const Kt = {
|
|
2518
2537
|
}, null, 8, ["width", "height", "name"]))
|
2519
2538
|
], 2));
|
2520
2539
|
}
|
2521
|
-
}), zn = { class: "flex items-center flex-1 gap-x-4" }, Rn = { class: "flex flex-col gap-y-1" }, Fn = { class: "font-medium" }, Un = { class: "text-oc-text-400 text-sm" },
|
2540
|
+
}), zn = { class: "flex items-center flex-1 gap-x-4" }, Rn = { class: "flex flex-col gap-y-1" }, Fn = { class: "font-medium" }, Un = { class: "text-oc-text-400 text-sm" }, Km = /* @__PURE__ */ Z({
|
2522
2541
|
__name: "OnboardingAccordion",
|
2523
2542
|
props: {
|
2524
2543
|
description: {
|
@@ -2557,8 +2576,8 @@ const Kt = {
|
|
2557
2576
|
n("div", zn, [
|
2558
2577
|
p(Nn, { variant: e.variant }, null, 8, ["variant"]),
|
2559
2578
|
n("div", Rn, [
|
2560
|
-
n("span", Fn,
|
2561
|
-
n("span", Un,
|
2579
|
+
n("span", Fn, w(e.title), 1),
|
2580
|
+
n("span", Un, w(e.description), 1)
|
2562
2581
|
])
|
2563
2582
|
]),
|
2564
2583
|
$(d.$slots, "button-group"),
|
@@ -2579,7 +2598,7 @@ const Kt = {
|
|
2579
2598
|
}), qn = ["onClick"], Hn = {
|
2580
2599
|
key: 1,
|
2581
2600
|
class: "bg-oc-error rounded-full h-6 w-6 flex items-center justify-center text-xs font-bold text-white px-4"
|
2582
|
-
}, ft = 100, vt = 35,
|
2601
|
+
}, ft = 100, vt = 35, Gm = {
|
2583
2602
|
__name: "OcTabs",
|
2584
2603
|
props: {
|
2585
2604
|
variant: {
|
@@ -2682,7 +2701,7 @@ const Kt = {
|
|
2682
2701
|
e.isFullWidth ? "w-full" : "",
|
2683
2702
|
e.isBig ? "text-base" : "text-sm"
|
2684
2703
|
]]),
|
2685
|
-
onClick: (
|
2704
|
+
onClick: (b) => j(h.value)
|
2686
2705
|
}, [
|
2687
2706
|
$(I.$slots, h.value, {}, () => [
|
2688
2707
|
h.icon ? (t(), y(o(T), {
|
@@ -2693,8 +2712,8 @@ const Kt = {
|
|
2693
2712
|
}, null, 8, ["name"])) : u("", !0),
|
2694
2713
|
n("div", {
|
2695
2714
|
class: v({ truncate: e.isArrows })
|
2696
|
-
},
|
2697
|
-
h.count ? (t(), i("div", Hn,
|
2715
|
+
}, w(h.label), 3),
|
2716
|
+
h.count ? (t(), i("div", Hn, w(h.count > e.maxCount ? `${e.maxCount}+` : h.count), 1)) : u("", !0)
|
2698
2717
|
])
|
2699
2718
|
], 10, qn);
|
2700
2719
|
}), 128))
|
@@ -2716,7 +2735,7 @@ const Kt = {
|
|
2716
2735
|
], 2)) : u("", !0)
|
2717
2736
|
], 2));
|
2718
2737
|
}
|
2719
|
-
}, Yn = ["src"], Wn = { class: "shrink-0" },
|
2738
|
+
}, Yn = ["src"], Wn = { class: "shrink-0" }, Xm = {
|
2720
2739
|
__name: "OcPaymentTab",
|
2721
2740
|
props: {
|
2722
2741
|
tab: {
|
@@ -2741,7 +2760,7 @@ const Kt = {
|
|
2741
2760
|
alt: "logo"
|
2742
2761
|
}, null, 8, Yn)) : u("", !0)
|
2743
2762
|
]),
|
2744
|
-
n("div", Wn,
|
2763
|
+
n("div", Wn, w(e.tab.label), 1)
|
2745
2764
|
], 2));
|
2746
2765
|
}
|
2747
2766
|
}, Kn = { key: 1 }, Gn = /* @__PURE__ */ Z({
|
@@ -2779,14 +2798,14 @@ const Kt = {
|
|
2779
2798
|
name: "check-2",
|
2780
2799
|
width: "12",
|
2781
2800
|
height: "12"
|
2782
|
-
})) : (t(), i("span", Kn,
|
2801
|
+
})) : (t(), i("span", Kn, w(e.value), 1))
|
2783
2802
|
], 2),
|
2784
2803
|
n("span", {
|
2785
2804
|
class: v(e.isCurrent ? "font-medium" : "")
|
2786
|
-
},
|
2805
|
+
}, w(e.title), 3)
|
2787
2806
|
], 2));
|
2788
2807
|
}
|
2789
|
-
}), Xn = { class: "flex gap-x-7" },
|
2808
|
+
}), Xn = { class: "flex gap-x-7" }, Jm = /* @__PURE__ */ Z({
|
2790
2809
|
__name: "OcSteps",
|
2791
2810
|
props: {
|
2792
2811
|
steps: {
|
@@ -2814,7 +2833,7 @@ const Kt = {
|
|
2814
2833
|
])
|
2815
2834
|
]));
|
2816
2835
|
}
|
2817
|
-
}), Jn = { class: "flex gap-3 items-start md:flex-row flex-col" },
|
2836
|
+
}), Jn = { class: "flex gap-3 items-start md:flex-row flex-col" }, Zm = /* @__PURE__ */ Z({
|
2818
2837
|
__name: "OcVariants",
|
2819
2838
|
props: {
|
2820
2839
|
variants: {
|
@@ -2891,7 +2910,7 @@ const Kt = {
|
|
2891
2910
|
e.label ? (t(), i("span", {
|
2892
2911
|
key: 1,
|
2893
2912
|
class: v(e.isDisabled ? "text-oc-text-300" : e.isActive ? "font-medium" : "")
|
2894
|
-
},
|
2913
|
+
}, w(e.label), 3)) : u("", !0)
|
2895
2914
|
]),
|
2896
2915
|
$(r.$slots, `${e.value}-description`)
|
2897
2916
|
], 2));
|
@@ -2902,22 +2921,22 @@ function ti(e, r) {
|
|
2902
2921
|
$(e.$slots, "default")
|
2903
2922
|
]);
|
2904
2923
|
}
|
2905
|
-
const
|
2924
|
+
const Qm = /* @__PURE__ */ ge(_n, [["render", ti]]), li = {}, ai = { class: "px-3 md:px-[40px] border-b border-oc-gray-200 h-[68px] w-full flex items-center relative bg-oc-accent-1-600" };
|
2906
2925
|
function ni(e, r) {
|
2907
2926
|
return t(), i("div", ai, [
|
2908
2927
|
$(e.$slots, "default")
|
2909
2928
|
]);
|
2910
2929
|
}
|
2911
|
-
const
|
2930
|
+
const _m = /* @__PURE__ */ ge(li, [["render", ni]]), ii = {}, oi = { class: "flex items-center gap-x-3" };
|
2912
2931
|
function si(e, r) {
|
2913
2932
|
return t(), i("div", oi, [
|
2914
2933
|
$(e.$slots, "default")
|
2915
2934
|
]);
|
2916
2935
|
}
|
2917
|
-
const
|
2936
|
+
const ef = /* @__PURE__ */ ge(ii, [["render", si]]), ri = { class: "flex items-center" }, di = {
|
2918
2937
|
key: 1,
|
2919
2938
|
class: "text-oc-text-300 text-sm md:text-base"
|
2920
|
-
},
|
2939
|
+
}, tf = {
|
2921
2940
|
__name: "OcHeaderCenter",
|
2922
2941
|
props: {
|
2923
2942
|
isSaved: Boolean
|
@@ -2942,7 +2961,7 @@ const Zm = /* @__PURE__ */ ge(ii, [["render", si]]), ri = { class: "flex items-c
|
|
2942
2961
|
])
|
2943
2962
|
]));
|
2944
2963
|
}
|
2945
|
-
}, ci = { class: "flex items-center gap-x-7 ml-auto" }, ui = { class: "flex gap-x-3" },
|
2964
|
+
}, ci = { class: "flex items-center gap-x-7 ml-auto" }, ui = { class: "flex gap-x-3" }, lf = {
|
2946
2965
|
__name: "OcHeaderRight",
|
2947
2966
|
props: {
|
2948
2967
|
primaryProps: {
|
@@ -2962,7 +2981,7 @@ const Zm = /* @__PURE__ */ ge(ii, [["render", si]]), ri = { class: "flex items-c
|
|
2962
2981
|
$(a.$slots, "default", {}, () => [
|
2963
2982
|
$(a.$slots, "before"),
|
2964
2983
|
n("div", ui, [
|
2965
|
-
e.isSecondaryButtonVisible ? (t(), y(o(
|
2984
|
+
e.isSecondaryButtonVisible ? (t(), y(o(K), F({
|
2966
2985
|
key: 0,
|
2967
2986
|
class: "min-w-[100px]",
|
2968
2987
|
variant: "secondary",
|
@@ -2971,7 +2990,7 @@ const Zm = /* @__PURE__ */ ge(ii, [["render", si]]), ri = { class: "flex items-c
|
|
2971
2990
|
onClick: l[0] || (l[0] = (s) => a.$emit("cancel"))
|
2972
2991
|
}), null, 16)) : u("", !0),
|
2973
2992
|
$(a.$slots, "primary-button", {}, () => [
|
2974
|
-
p(o(
|
2993
|
+
p(o(K), F({
|
2975
2994
|
class: "min-w-[100px]",
|
2976
2995
|
label: "Save"
|
2977
2996
|
}, e.primaryProps, {
|
@@ -2983,7 +3002,7 @@ const Zm = /* @__PURE__ */ ge(ii, [["render", si]]), ri = { class: "flex items-c
|
|
2983
3002
|
])
|
2984
3003
|
]));
|
2985
3004
|
}
|
2986
|
-
}, mi = { class: "gap-x-9 hidden md:flex relative" }, fi = ["onClick"], vi = { class: "p-3 font-medium whitespace-normal text-oc-accent-1-500 flex items-center gap-2" }, gi = { class: "p-4 min-w-[220px] flex flex-col gap-y-3 border-b border-gray-200" },
|
3005
|
+
}, mi = { class: "gap-x-9 hidden md:flex relative" }, fi = ["onClick"], vi = { class: "p-3 font-medium whitespace-normal text-oc-accent-1-500 flex items-center gap-2" }, gi = { class: "p-4 min-w-[220px] flex flex-col gap-y-3 border-b border-gray-200" }, af = {
|
2987
3006
|
__name: "OcTabToSelect",
|
2988
3007
|
props: {
|
2989
3008
|
menus: Array,
|
@@ -3026,7 +3045,7 @@ const Zm = /* @__PURE__ */ ge(ii, [["render", si]]), ri = { class: "flex items-c
|
|
3026
3045
|
height: "24",
|
3027
3046
|
class: v(["group-hover:hidden", x.value === e.modelValue ? "hidden" : "block"])
|
3028
3047
|
}, null, 8, ["name", "class"]),
|
3029
|
-
W(" " +
|
3048
|
+
W(" " + w(x.label), 1)
|
3030
3049
|
], 10, fi))), 128)),
|
3031
3050
|
n("div", {
|
3032
3051
|
ref_key: "currentRef",
|
@@ -3058,7 +3077,7 @@ const Zm = /* @__PURE__ */ ge(ii, [["render", si]]), ri = { class: "flex items-c
|
|
3058
3077
|
]),
|
3059
3078
|
default: S(() => [
|
3060
3079
|
n("div", vi, [
|
3061
|
-
W(
|
3080
|
+
W(w(l.value.label) + " ", 1),
|
3062
3081
|
p(o(T), {
|
3063
3082
|
name: "chevron-down",
|
3064
3083
|
width: "20",
|
@@ -3097,7 +3116,7 @@ const Zm = /* @__PURE__ */ ge(ii, [["render", si]]), ri = { class: "flex items-c
|
|
3097
3116
|
e.isLoading ? (t(), y(o(le), {
|
3098
3117
|
key: 1,
|
3099
3118
|
class: "w-1/2 h-[20px] rounded"
|
3100
|
-
})) : (t(), i("span", xi,
|
3119
|
+
})) : (t(), i("span", xi, w(e.title), 1))
|
3101
3120
|
]),
|
3102
3121
|
e.chipProps ? (t(), y(o(ne), me(F({ key: 0 }, e.chipProps)), null, 16)) : u("", !0)
|
3103
3122
|
]),
|
@@ -3106,7 +3125,7 @@ const Zm = /* @__PURE__ */ ge(ii, [["render", si]]), ri = { class: "flex items-c
|
|
3106
3125
|
e.isLoading ? (t(), y(o(le), {
|
3107
3126
|
key: 1,
|
3108
3127
|
class: "w-1/3 h-[18px] rounded"
|
3109
|
-
})) : (t(), i("span", bi,
|
3128
|
+
})) : (t(), i("span", bi, w(e.description), 1))
|
3110
3129
|
]),
|
3111
3130
|
e.isCopy ? (t(), y(o(je), {
|
3112
3131
|
key: 0,
|
@@ -3142,8 +3161,8 @@ const Zm = /* @__PURE__ */ ge(ii, [["render", si]]), ri = { class: "flex items-c
|
|
3142
3161
|
const r = M(!1);
|
3143
3162
|
return (a, l) => (t(), i("div", wi, [
|
3144
3163
|
n("div", ki, [
|
3145
|
-
n("span", $i,
|
3146
|
-
e.primaryButtonProps || e.secondaryButtonProps ? (t(), y(o(
|
3164
|
+
n("span", $i, w(e.title), 1),
|
3165
|
+
e.primaryButtonProps || e.secondaryButtonProps ? (t(), y(o(K), F({
|
3147
3166
|
key: 0,
|
3148
3167
|
size: "small"
|
3149
3168
|
}, e.primaryButtonProps, { "is-additional-area": "" }), {
|
@@ -3184,7 +3203,7 @@ const Zm = /* @__PURE__ */ ge(ii, [["render", si]]), ri = { class: "flex items-c
|
|
3184
3203
|
}, 16)) : u("", !0)
|
3185
3204
|
]),
|
3186
3205
|
e.description ? (t(), i("div", Si, [
|
3187
|
-
n("span", Ci,
|
3206
|
+
n("span", Ci, w(e.description), 1),
|
3188
3207
|
p(o(je), {
|
3189
3208
|
class: "shrink-0",
|
3190
3209
|
value: e.description
|
@@ -3204,7 +3223,7 @@ const Zm = /* @__PURE__ */ ge(ii, [["render", si]]), ri = { class: "flex items-c
|
|
3204
3223
|
e.chipProps ? (t(), y(o(ne), F({ key: 1 }, e.chipProps, { class: "self-start" }), null, 16)) : u("", !0)
|
3205
3224
|
]));
|
3206
3225
|
}
|
3207
|
-
}), Vi = { class: "pb-4 flex flex-col" }, Oi = { class: "flex flex-col gap-y-3 pt-4 px-5 md:px-7" },
|
3226
|
+
}), Vi = { class: "pb-4 flex flex-col" }, Oi = { class: "flex flex-col gap-y-3 pt-4 px-5 md:px-7" }, nf = {
|
3208
3227
|
__name: "OcPageTitle",
|
3209
3228
|
props: {
|
3210
3229
|
title: { type: String, required: !0 },
|
@@ -3227,7 +3246,7 @@ const Zm = /* @__PURE__ */ ge(ii, [["render", si]]), ri = { class: "flex items-c
|
|
3227
3246
|
setup(e) {
|
3228
3247
|
return (r, a) => (t(), i("div", Vi, [
|
3229
3248
|
n("div", Oi, [
|
3230
|
-
e.isBack ? (t(), y(o(
|
3249
|
+
e.isBack ? (t(), y(o(K), {
|
3231
3250
|
key: 0,
|
3232
3251
|
size: "small",
|
3233
3252
|
"icon-class": "rotate-90",
|
@@ -3339,7 +3358,7 @@ const Zm = /* @__PURE__ */ ge(ii, [["render", si]]), ri = { class: "flex items-c
|
|
3339
3358
|
popper: S(() => {
|
3340
3359
|
var I, C;
|
3341
3360
|
return [
|
3342
|
-
n("div", Ti,
|
3361
|
+
n("div", Ti, w((C = (I = e.primaryActions) == null ? void 0 : I.mainLinkAction) == null ? void 0 : C.tooltipContent), 1)
|
3343
3362
|
];
|
3344
3363
|
}),
|
3345
3364
|
default: S(() => {
|
@@ -3368,7 +3387,7 @@ const Zm = /* @__PURE__ */ ge(ii, [["render", si]]), ri = { class: "flex items-c
|
|
3368
3387
|
distance: 7
|
3369
3388
|
}, {
|
3370
3389
|
popper: S(() => [
|
3371
|
-
n("div", Ai,
|
3390
|
+
n("div", Ai, w(I != null && I.isCopyButton ? s.value ? x.value : f.value : I.tooltipContent), 1)
|
3372
3391
|
]),
|
3373
3392
|
default: S(() => [
|
3374
3393
|
I != null && I.isCopyButton ? (t(), y(o(T), {
|
@@ -3413,7 +3432,7 @@ const Zm = /* @__PURE__ */ ge(ii, [["render", si]]), ri = { class: "flex items-c
|
|
3413
3432
|
key: 1,
|
3414
3433
|
ref_for: !0
|
3415
3434
|
}, B, {
|
3416
|
-
onClick: A[0] || (A[0] = (
|
3435
|
+
onClick: A[0] || (A[0] = (b) => c.value = !1)
|
3417
3436
|
}), null, 16))
|
3418
3437
|
], 64))), 128))
|
3419
3438
|
]),
|
@@ -3426,11 +3445,11 @@ const Zm = /* @__PURE__ */ ge(ii, [["render", si]]), ri = { class: "flex items-c
|
|
3426
3445
|
class: "!w-full"
|
3427
3446
|
}, {
|
3428
3447
|
popper: S(() => [
|
3429
|
-
n("div", Pi,
|
3448
|
+
n("div", Pi, w(B == null ? void 0 : B.tooltipText), 1)
|
3430
3449
|
]),
|
3431
3450
|
default: S(() => [
|
3432
3451
|
p(o(be), F({ ref_for: !0 }, B, {
|
3433
|
-
onClick: A[1] || (A[1] = (
|
3452
|
+
onClick: A[1] || (A[1] = (b) => c.value = !1)
|
3434
3453
|
}), null, 16)
|
3435
3454
|
]),
|
3436
3455
|
_: 2
|
@@ -3438,7 +3457,7 @@ const Zm = /* @__PURE__ */ ge(ii, [["render", si]]), ri = { class: "flex items-c
|
|
3438
3457
|
key: 1,
|
3439
3458
|
ref_for: !0
|
3440
3459
|
}, B, {
|
3441
|
-
onClick: A[2] || (A[2] = (
|
3460
|
+
onClick: A[2] || (A[2] = (b) => c.value = !1)
|
3442
3461
|
}), null, 16))
|
3443
3462
|
]))), 128))
|
3444
3463
|
])) : u("", !0)
|
@@ -3509,7 +3528,7 @@ const Zm = /* @__PURE__ */ ge(ii, [["render", si]]), ri = { class: "flex items-c
|
|
3509
3528
|
];
|
3510
3529
|
}),
|
3511
3530
|
default: S(() => [
|
3512
|
-
p(o(
|
3531
|
+
p(o(K), F({
|
3513
3532
|
size: o(l) ? "small" : "default"
|
3514
3533
|
}, e.secondaryButtonProps), null, 16, ["size"])
|
3515
3534
|
]),
|
@@ -3522,15 +3541,15 @@ const Zm = /* @__PURE__ */ ge(ii, [["render", si]]), ri = { class: "flex items-c
|
|
3522
3541
|
"arrow-hidden": ""
|
3523
3542
|
}, {
|
3524
3543
|
popper: S(() => [
|
3525
|
-
n("div", Ri,
|
3544
|
+
n("div", Ri, w(e.primaryButtonProps.tooltip), 1)
|
3526
3545
|
]),
|
3527
3546
|
default: S(() => [
|
3528
|
-
p(o(
|
3547
|
+
p(o(K), F({
|
3529
3548
|
size: o(l) ? "small" : "default"
|
3530
3549
|
}, e.primaryButtonProps), null, 16, ["size"])
|
3531
3550
|
]),
|
3532
3551
|
_: 1
|
3533
|
-
})) : e.primaryButtonProps ? (t(), y(o(
|
3552
|
+
})) : e.primaryButtonProps ? (t(), y(o(K), F({
|
3534
3553
|
key: 2,
|
3535
3554
|
size: o(l) ? "small" : "default"
|
3536
3555
|
}, e.primaryButtonProps), null, 16, ["size"])) : u("", !0)
|
@@ -3539,7 +3558,7 @@ const Zm = /* @__PURE__ */ ge(ii, [["render", si]]), ri = { class: "flex items-c
|
|
3539
3558
|
}, qi = /* @__PURE__ */ ge(Ui, [["__scopeId", "data-v-84aa7cb6"]]), Hi = { class: "flex flex-col flex-1 py-4 gap-5 px-6 animated-section" }, Yi = {
|
3540
3559
|
key: 0,
|
3541
3560
|
class: "border-t border-oc-gray-200 last:hidden first:hidden"
|
3542
|
-
},
|
3561
|
+
}, of = {
|
3543
3562
|
__name: "OcSidebar",
|
3544
3563
|
props: {
|
3545
3564
|
class: {
|
@@ -3649,7 +3668,7 @@ const Zm = /* @__PURE__ */ ge(ii, [["render", si]]), ri = { class: "flex items-c
|
|
3649
3668
|
}, 8, ["is-expanded", "display-name"])
|
3650
3669
|
], 2));
|
3651
3670
|
}
|
3652
|
-
},
|
3671
|
+
}, sf = {
|
3653
3672
|
__name: "OcSidebarSubmenu",
|
3654
3673
|
props: {
|
3655
3674
|
isExpanded: {
|
@@ -3786,7 +3805,7 @@ const Zm = /* @__PURE__ */ ge(ii, [["render", si]]), ri = { class: "flex items-c
|
|
3786
3805
|
distance: 10
|
3787
3806
|
}, {
|
3788
3807
|
popper: S(() => [
|
3789
|
-
n("div", Ki,
|
3808
|
+
n("div", Ki, w(e.iconTooltip), 1)
|
3790
3809
|
]),
|
3791
3810
|
default: S(() => [
|
3792
3811
|
p(o(T), F({
|
@@ -3806,7 +3825,7 @@ const Zm = /* @__PURE__ */ ge(ii, [["render", si]]), ri = { class: "flex items-c
|
|
3806
3825
|
class: v({
|
3807
3826
|
"truncate max-w-[180px]": e.shouldTruncateChip
|
3808
3827
|
})
|
3809
|
-
},
|
3828
|
+
}, w(e.label), 3)
|
3810
3829
|
])
|
3811
3830
|
]),
|
3812
3831
|
e.closable ? (t(), y(o(T), {
|
@@ -3885,7 +3904,7 @@ const Zm = /* @__PURE__ */ ge(ii, [["render", si]]), ri = { class: "flex items-c
|
|
3885
3904
|
n("div", to, [
|
3886
3905
|
n("div", lo, [
|
3887
3906
|
a[3] || (a[3] = n("span", { class: "font-medium" }, "Account setup", -1)),
|
3888
|
-
n("span", ao,
|
3907
|
+
n("span", ao, w(e.progress) + "%", 1)
|
3889
3908
|
]),
|
3890
3909
|
n("div", no, [
|
3891
3910
|
n("div", {
|
@@ -3905,7 +3924,7 @@ const Zm = /* @__PURE__ */ ge(ii, [["render", si]]), ri = { class: "flex items-c
|
|
3905
3924
|
class: "text-oc-warning-500"
|
3906
3925
|
})
|
3907
3926
|
])) : (t(), i("div", so, [
|
3908
|
-
n("span", ro,
|
3927
|
+
n("span", ro, w(e.progress), 1),
|
3909
3928
|
n("div", {
|
3910
3929
|
class: "pie",
|
3911
3930
|
style: ie({
|
@@ -3924,7 +3943,7 @@ const Zm = /* @__PURE__ */ ge(ii, [["render", si]]), ri = { class: "flex items-c
|
|
3924
3943
|
]))
|
3925
3944
|
], 2));
|
3926
3945
|
}
|
3927
|
-
},
|
3946
|
+
}, rf = /* @__PURE__ */ ge(co, [["__scopeId", "data-v-fb4f007e"]]), uo = { class: "pb-2" }, mo = {
|
3928
3947
|
key: 0,
|
3929
3948
|
class: "pl-3 uppercase text-oc-accent-1-200 relative text-medium text-sm"
|
3930
3949
|
}, fo = {
|
@@ -3937,7 +3956,7 @@ const Zm = /* @__PURE__ */ ge(ii, [["render", si]]), ri = { class: "flex items-c
|
|
3937
3956
|
return (r, a) => (t(), i("div", null, [
|
3938
3957
|
n("div", uo, [
|
3939
3958
|
e.isSidebarExpanded && e.label ? (t(), i("div", mo, [
|
3940
|
-
n("span", null,
|
3959
|
+
n("span", null, w(e.label), 1)
|
3941
3960
|
])) : u("", !0)
|
3942
3961
|
]),
|
3943
3962
|
n("div", {
|
@@ -4015,7 +4034,7 @@ const Zm = /* @__PURE__ */ ge(ii, [["render", si]]), ri = { class: "flex items-c
|
|
4015
4034
|
e.isExpanded ? (t(), i(N, { key: 0 }, [
|
4016
4035
|
n("span", {
|
4017
4036
|
class: v(["leading-[21px] flex-1", { "font-medium": e.isActive }])
|
4018
|
-
},
|
4037
|
+
}, w(e.label), 3),
|
4019
4038
|
e.isBeta ? (t(), i("div", go, " BETA ")) : u("", !0),
|
4020
4039
|
e.isNew ? (t(), i("div", po, " NEW ")) : u("", !0),
|
4021
4040
|
e.isTryIt ? (t(), i("div", yo, " TRY IT ")) : u("", !0)
|
@@ -4035,7 +4054,7 @@ const Zm = /* @__PURE__ */ ge(ii, [["render", si]]), ri = { class: "flex items-c
|
|
4035
4054
|
name: "popper",
|
4036
4055
|
fn: S(() => [
|
4037
4056
|
n("div", xo, [
|
4038
|
-
n("span", ho,
|
4057
|
+
n("span", ho, w(e.label), 1)
|
4039
4058
|
])
|
4040
4059
|
]),
|
4041
4060
|
key: "0"
|
@@ -4099,7 +4118,7 @@ const Zm = /* @__PURE__ */ ge(ii, [["render", si]]), ri = { class: "flex items-c
|
|
4099
4118
|
}, a[0] || (a[0] = [
|
4100
4119
|
n("div", { class: "w-[6px] h-[6px] rounded-full bg-[var(--oc-sidebar-menu-active-icon-active)]" }, null, -1)
|
4101
4120
|
]), 2),
|
4102
|
-
n("div", ko,
|
4121
|
+
n("div", ko, w(e.label), 1),
|
4103
4122
|
e.isBeta ? (t(), i("div", $o, " BETA ")) : u("", !0),
|
4104
4123
|
e.isNew ? (t(), i("div", So, " NEW ")) : u("", !0),
|
4105
4124
|
e.isTryIt ? (t(), i("div", Co, " TRY IT ")) : u("", !0)
|
@@ -4137,7 +4156,7 @@ const Zm = /* @__PURE__ */ ge(ii, [["render", si]]), ri = { class: "flex items-c
|
|
4137
4156
|
])
|
4138
4157
|
]));
|
4139
4158
|
}
|
4140
|
-
}, Do = { class: "relative" }, Ao = { class: "border relative z-10 bg-white border-oc-gray-200 shadow-normal rounded p-2 flex flex-col gap-y-2" }, jo = { class: "py-2 px-3 gap-x-3 flex items-center" }, Mo = { class: "text-oc-accent-2 flex-1 font-medium" }, Lo = { class: "flex items-center gap-x-2" }, Po = { class: "px-3 pb-3 text-oc-text-400 text-sm" },
|
4159
|
+
}, Do = { class: "relative" }, Ao = { class: "border relative z-10 bg-white border-oc-gray-200 shadow-normal rounded p-2 flex flex-col gap-y-2" }, jo = { class: "py-2 px-3 gap-x-3 flex items-center" }, Mo = { class: "text-oc-accent-2 flex-1 font-medium" }, Lo = { class: "flex items-center gap-x-2" }, Po = { class: "px-3 pb-3 text-oc-text-400 text-sm" }, df = {
|
4141
4160
|
__name: "OcSidebarFeatureBanners",
|
4142
4161
|
props: {
|
4143
4162
|
isStacked: {
|
@@ -4162,7 +4181,7 @@ const Zm = /* @__PURE__ */ ge(ii, [["render", si]]), ri = { class: "flex items-c
|
|
4162
4181
|
name: "sparkle-2",
|
4163
4182
|
class: "text-oc-accent-2"
|
4164
4183
|
}),
|
4165
|
-
n("div", Mo,
|
4184
|
+
n("div", Mo, w(e.title), 1),
|
4166
4185
|
n("div", Lo, [
|
4167
4186
|
p(o(T), {
|
4168
4187
|
name: "x",
|
@@ -4180,11 +4199,11 @@ const Zm = /* @__PURE__ */ ge(ii, [["render", si]]), ri = { class: "flex items-c
|
|
4180
4199
|
})
|
4181
4200
|
])
|
4182
4201
|
]),
|
4183
|
-
n("div", Po,
|
4202
|
+
n("div", Po, w(e.description), 1)
|
4184
4203
|
])
|
4185
4204
|
]));
|
4186
4205
|
}
|
4187
|
-
}, Eo = { class: "py-7 flex flex-col gap-y-3 px-4" }, No = { class: "flex flex-col gap-y-2" }, zo = ["onClick"],
|
4206
|
+
}, Eo = { class: "py-7 flex flex-col gap-y-3 px-4" }, No = { class: "flex flex-col gap-y-2" }, zo = ["onClick"], cf = /* @__PURE__ */ Z({
|
4188
4207
|
__name: "OcSubSidebar",
|
4189
4208
|
props: {
|
4190
4209
|
title: {
|
@@ -4214,7 +4233,7 @@ const Zm = /* @__PURE__ */ ge(ii, [["render", si]]), ri = { class: "flex items-c
|
|
4214
4233
|
width: "20",
|
4215
4234
|
height: "20"
|
4216
4235
|
}),
|
4217
|
-
W(" " +
|
4236
|
+
W(" " + w(e.title), 1)
|
4218
4237
|
])) : u("", !0),
|
4219
4238
|
n("div", No, [
|
4220
4239
|
(t(!0), i(N, null, R(e.menu, (l, s) => (t(), i("div", {
|
@@ -4224,11 +4243,11 @@ const Zm = /* @__PURE__ */ ge(ii, [["render", si]]), ri = { class: "flex items-c
|
|
4224
4243
|
e.modelValue === l.value ? "bg-oc-accent-2-50-tr text-oc-accent-1" : "text-oc-text-400"
|
4225
4244
|
]),
|
4226
4245
|
onClick: (d) => r.$emit("update:modelValue", l.value)
|
4227
|
-
},
|
4246
|
+
}, w(l.label), 11, zo))), 128))
|
4228
4247
|
])
|
4229
4248
|
]));
|
4230
4249
|
}
|
4231
|
-
}), Ro = { class: "relative" },
|
4250
|
+
}), Ro = { class: "relative" }, uf = {
|
4232
4251
|
__name: "OcEmptyPage",
|
4233
4252
|
props: {
|
4234
4253
|
isButton: {
|
@@ -4354,14 +4373,14 @@ const Zm = /* @__PURE__ */ ge(ii, [["render", si]]), ri = { class: "flex items-c
|
|
4354
4373
|
}, [
|
4355
4374
|
n("span", {
|
4356
4375
|
class: v([r.value[e.size].title, "font-medium"])
|
4357
|
-
},
|
4376
|
+
}, w(e.title), 3),
|
4358
4377
|
$(a.$slots, "description", {}, () => [
|
4359
4378
|
n("span", {
|
4360
4379
|
class: v([r.value[e.size].description, "text-oc-text-400 text-center"])
|
4361
|
-
},
|
4380
|
+
}, w(e.description), 3)
|
4362
4381
|
])
|
4363
4382
|
], 2),
|
4364
|
-
e.isButton ? (t(), y(o(
|
4383
|
+
e.isButton ? (t(), y(o(K), {
|
4365
4384
|
key: 0,
|
4366
4385
|
label: e.isUpgrade ? e.upgradeLabel : e.addButtonLabel,
|
4367
4386
|
"left-icon": e.isUpgrade ? "" : e.addButtonIcon,
|
@@ -4403,7 +4422,7 @@ const Zm = /* @__PURE__ */ ge(ii, [["render", si]]), ri = { class: "flex items-c
|
|
4403
4422
|
])) : (t(), i("div", Uo, [
|
4404
4423
|
n("div", qo, [
|
4405
4424
|
n("div", Ho, [
|
4406
|
-
n("span", Yo,
|
4425
|
+
n("span", Yo, w(e.title), 1),
|
4407
4426
|
e.chipOptions ? (t(), y(o(ne), me(F({ key: 0 }, e.chipOptions)), null, 16)) : u("", !0)
|
4408
4427
|
]),
|
4409
4428
|
n("span", {
|
@@ -4415,10 +4434,10 @@ const Zm = /* @__PURE__ */ ge(ii, [["render", si]]), ri = { class: "flex items-c
|
|
4415
4434
|
name: `flags/${e.countryIso.toUpperCase()}`
|
4416
4435
|
}, null, 8, ["name"])
|
4417
4436
|
])) : u("", !0),
|
4418
|
-
W(" " +
|
4437
|
+
W(" " + w(e.content), 1)
|
4419
4438
|
], 2)
|
4420
4439
|
]),
|
4421
|
-
e.isDropdown ? (t(), y(o(
|
4440
|
+
e.isDropdown ? (t(), y(o(K), me(F({ key: 0 }, e.dropdownOptions)), null, 16)) : u("", !0)
|
4422
4441
|
]))
|
4423
4442
|
], 2));
|
4424
4443
|
}
|
@@ -4497,7 +4516,7 @@ const Zm = /* @__PURE__ */ ge(ii, [["render", si]]), ri = { class: "flex items-c
|
|
4497
4516
|
}, d), null, 16))), 128))
|
4498
4517
|
]),
|
4499
4518
|
default: S(() => [
|
4500
|
-
p(o(
|
4519
|
+
p(o(K), F({
|
4501
4520
|
"left-icon": "dots-vertical",
|
4502
4521
|
variant: "secondary"
|
4503
4522
|
}, e.moreButtonProps), null, 16)
|
@@ -4509,7 +4528,7 @@ const Zm = /* @__PURE__ */ ge(ii, [["render", si]]), ri = { class: "flex items-c
|
|
4509
4528
|
position: "top"
|
4510
4529
|
}, te({
|
4511
4530
|
default: S(() => [
|
4512
|
-
p(o(
|
4531
|
+
p(o(K), F({
|
4513
4532
|
variant: "secondary",
|
4514
4533
|
label: "Top up balance"
|
4515
4534
|
}, e.secondaryButtonProps), null, 16)
|
@@ -4519,7 +4538,7 @@ const Zm = /* @__PURE__ */ ge(ii, [["render", si]]), ri = { class: "flex items-c
|
|
4519
4538
|
(s = e.secondaryButtonProps) != null && s.tooltip ? {
|
4520
4539
|
name: "popper",
|
4521
4540
|
fn: S(() => [
|
4522
|
-
W(
|
4541
|
+
W(w(e.secondaryButtonProps.tooltip), 1)
|
4523
4542
|
]),
|
4524
4543
|
key: "0"
|
4525
4544
|
} : void 0
|
@@ -4656,7 +4675,7 @@ const tt = /* @__PURE__ */ ge(is, [["render", ss]]), rs = { class: "flex" }, ds
|
|
4656
4675
|
popper: S(() => {
|
4657
4676
|
var c;
|
4658
4677
|
return [
|
4659
|
-
n("div", cs,
|
4678
|
+
n("div", cs, w((c = e.boxes[0]) == null ? void 0 : c.infoTooltip), 1)
|
4660
4679
|
];
|
4661
4680
|
}),
|
4662
4681
|
default: S(() => [
|
@@ -4671,7 +4690,7 @@ const tt = /* @__PURE__ */ ge(is, [["render", ss]]), rs = { class: "flex" }, ds
|
|
4671
4690
|
})
|
4672
4691
|
])) : u("", !0)
|
4673
4692
|
]),
|
4674
|
-
p(o(
|
4693
|
+
p(o(K), {
|
4675
4694
|
class: "self-start px-3",
|
4676
4695
|
label: "See details ->",
|
4677
4696
|
size: "small",
|
@@ -4697,7 +4716,7 @@ const tt = /* @__PURE__ */ ge(is, [["render", ss]]), rs = { class: "flex" }, ds
|
|
4697
4716
|
r.value ? (t(), i("div", us, [
|
4698
4717
|
n("div", ms, [
|
4699
4718
|
l[4] || (l[4] = n("span", { class: "font-medium" }, "Details", -1)),
|
4700
|
-
p(o(
|
4719
|
+
p(o(K), {
|
4701
4720
|
size: "small",
|
4702
4721
|
"left-icon": "x",
|
4703
4722
|
label: "Close",
|
@@ -4795,7 +4814,7 @@ const tt = /* @__PURE__ */ ge(is, [["render", ss]]), rs = { class: "flex" }, ds
|
|
4795
4814
|
p(o(ae), { "popper-options": { strategy: "fixed" } }, {
|
4796
4815
|
popper: S(() => [
|
4797
4816
|
$(r.$slots, l.infoTooltipSlot, {}, () => [
|
4798
|
-
n("div", ps,
|
4817
|
+
n("div", ps, w(l.infoTooltip), 1)
|
4799
4818
|
])
|
4800
4819
|
]),
|
4801
4820
|
default: S(() => [
|
@@ -4867,7 +4886,7 @@ const tt = /* @__PURE__ */ ge(is, [["render", ss]]), rs = { class: "flex" }, ds
|
|
4867
4886
|
}, $s = ["href"], Ss = { class: "truncate" }, Cs = { class: "text-oc-text whitespace-nowrap" }, Bs = {
|
4868
4887
|
key: 1,
|
4869
4888
|
class: "flex items-center h-[30px] gap-x-2 w-full"
|
4870
|
-
},
|
4889
|
+
}, mf = {
|
4871
4890
|
__name: "OcAdditionalContent",
|
4872
4891
|
props: {
|
4873
4892
|
mainLink: { type: String, default: "" },
|
@@ -4931,7 +4950,7 @@ const tt = /* @__PURE__ */ ge(is, [["render", ss]]), rs = { class: "flex" }, ds
|
|
4931
4950
|
class: "w-[100px] h-[24px] rounded"
|
4932
4951
|
})) : u("", !0)
|
4933
4952
|
])) : (t(), i("div", hs, [
|
4934
|
-
n("span", bs,
|
4953
|
+
n("span", bs, w(e.additionalTitle), 1),
|
4935
4954
|
e.chipVariant ? (t(), y(o(ne), {
|
4936
4955
|
key: 0,
|
4937
4956
|
variant: e.chipVariant,
|
@@ -4952,8 +4971,8 @@ const tt = /* @__PURE__ */ ge(is, [["render", ss]]), rs = { class: "flex" }, ds
|
|
4952
4971
|
target: "_blank",
|
4953
4972
|
class: "text-oc-text-400 flex items-center overflow-hidden cursor-pointer"
|
4954
4973
|
}, [
|
4955
|
-
n("div", Ss,
|
4956
|
-
n("div", Cs,
|
4974
|
+
n("div", Ss, w(e.mainLink), 1),
|
4975
|
+
n("div", Cs, w(e.userId), 1)
|
4957
4976
|
], 8, $s),
|
4958
4977
|
p(o(Ei), {
|
4959
4978
|
"primary-actions": e.primaryActions,
|
@@ -5032,8 +5051,8 @@ const tt = /* @__PURE__ */ ge(is, [["render", ss]]), rs = { class: "flex" }, ds
|
|
5032
5051
|
var l;
|
5033
5052
|
return t(), i("div", Vs, [
|
5034
5053
|
n("div", Os, [
|
5035
|
-
n("h2", Is,
|
5036
|
-
e.description ? (t(), i("p", Ts,
|
5054
|
+
n("h2", Is, w(e.title), 1),
|
5055
|
+
e.description ? (t(), i("p", Ts, w(e.description), 1)) : u("", !0),
|
5037
5056
|
(l = e.features) != null && l.length ? (t(), i("div", Ds, [
|
5038
5057
|
(t(!0), i(N, null, R(e.features, (s) => (t(), i("div", {
|
5039
5058
|
key: s.title,
|
@@ -5050,14 +5069,14 @@ const tt = /* @__PURE__ */ ge(is, [["render", ss]]), rs = { class: "flex" }, ds
|
|
5050
5069
|
height: "56",
|
5051
5070
|
width: "56"
|
5052
5071
|
}, null, 8, ["name"]),
|
5053
|
-
n("span", As,
|
5072
|
+
n("span", As, w(s.title), 1)
|
5054
5073
|
]))), 128))
|
5055
5074
|
])) : u("", !0)
|
5056
5075
|
])
|
5057
5076
|
]);
|
5058
5077
|
};
|
5059
5078
|
}
|
5060
|
-
},
|
5079
|
+
}, ff = /* @__PURE__ */ ge(js, [["__scopeId", "data-v-d658d1d3"]]), Ms = { class: "w-screen relative h-[40px] bg-oc-accent-3 flex items-center justify-center text-white" }, Ls = { class: "text-sm" }, vf = /* @__PURE__ */ Z({
|
5061
5080
|
__name: "OcSandboxBanner",
|
5062
5081
|
props: {
|
5063
5082
|
title: {
|
@@ -5071,14 +5090,48 @@ const tt = /* @__PURE__ */ ge(is, [["render", ss]]), rs = { class: "flex" }, ds
|
|
5071
5090
|
},
|
5072
5091
|
setup(e) {
|
5073
5092
|
return (r, a) => (t(), i("div", Ms, [
|
5074
|
-
n("span", Ls,
|
5093
|
+
n("span", Ls, w(e.title), 1),
|
5075
5094
|
e.chipProps ? (t(), y(o(ne), F({
|
5076
5095
|
key: 0,
|
5077
5096
|
class: "absolute left-[40px]"
|
5078
5097
|
}, e.chipProps), null, 16)) : u("", !0)
|
5079
5098
|
]));
|
5080
5099
|
}
|
5081
|
-
}), Ps = { class: "
|
5100
|
+
}), Ps = { class: "w-screen relative h-[40px] bg-oc-warning-300 flex items-center justify-center" }, Es = { class: "text-sm font-medium" }, Ns = { class: "flex items-center gap-2 underline" }, gf = /* @__PURE__ */ Z({
|
5101
|
+
__name: "OcTopBanner",
|
5102
|
+
props: {
|
5103
|
+
title: {
|
5104
|
+
type: String,
|
5105
|
+
default: ""
|
5106
|
+
},
|
5107
|
+
buttonLabel: String
|
5108
|
+
},
|
5109
|
+
emits: ["click:button"],
|
5110
|
+
setup(e) {
|
5111
|
+
return (r, a) => (t(), i("div", Ps, [
|
5112
|
+
n("span", Es, w(e.title), 1),
|
5113
|
+
e.buttonLabel ? (t(), y(o(K), {
|
5114
|
+
key: 0,
|
5115
|
+
class: "absolute right-9",
|
5116
|
+
size: "small",
|
5117
|
+
"is-transparent": "",
|
5118
|
+
onClick: a[0] || (a[0] = (l) => r.$emit("click:button"))
|
5119
|
+
}, {
|
5120
|
+
default: S(() => [
|
5121
|
+
n("span", Ns, [
|
5122
|
+
W(w(e.buttonLabel) + " ", 1),
|
5123
|
+
p(o(T), {
|
5124
|
+
name: "arrow-right",
|
5125
|
+
width: "9",
|
5126
|
+
height: "9"
|
5127
|
+
})
|
5128
|
+
])
|
5129
|
+
]),
|
5130
|
+
_: 1
|
5131
|
+
})) : u("", !0)
|
5132
|
+
]));
|
5133
|
+
}
|
5134
|
+
}), zs = { class: "flex flex-col text-center gap-y-3" }, Rs = { class: "text-lg font-medium" }, Fs = { class: "text-sm text-oc-text-400" }, pf = /* @__PURE__ */ Z({
|
5082
5135
|
__name: "OcBox",
|
5083
5136
|
props: {
|
5084
5137
|
icon: String,
|
@@ -5099,13 +5152,13 @@ const tt = /* @__PURE__ */ ge(is, [["render", ss]]), rs = { class: "flex" }, ds
|
|
5099
5152
|
height: e.height,
|
5100
5153
|
variant: e.variant
|
5101
5154
|
}, null, 8, ["icon", "width", "height", "variant"]),
|
5102
|
-
n("div",
|
5103
|
-
n("span",
|
5104
|
-
n("span",
|
5155
|
+
n("div", zs, [
|
5156
|
+
n("span", Rs, w(e.title), 1),
|
5157
|
+
n("span", Fs, w(e.description), 1)
|
5105
5158
|
])
|
5106
5159
|
], 2));
|
5107
5160
|
}
|
5108
|
-
}),
|
5161
|
+
}), yf = /* @__PURE__ */ Z({
|
5109
5162
|
__name: "OcAuthenticationOption",
|
5110
5163
|
props: {
|
5111
5164
|
icon: String,
|
@@ -5127,11 +5180,11 @@ const tt = /* @__PURE__ */ ge(is, [["render", ss]]), rs = { class: "flex" }, ds
|
|
5127
5180
|
height: e.height,
|
5128
5181
|
class: v(e.iconClass)
|
5129
5182
|
}, null, 8, ["name", "width", "height", "class"])) : u("", !0),
|
5130
|
-
n("span", null,
|
5183
|
+
n("span", null, w(e.title), 1),
|
5131
5184
|
e.chipProps ? (t(), y(o(ne), F({ key: 1 }, e.chipProps, { class: "absolute top-0 -translate-y-1/2 sm:right-9" }), null, 16)) : u("", !0)
|
5132
5185
|
], 2));
|
5133
5186
|
}
|
5134
|
-
}),
|
5187
|
+
}), Us = { class: "flex items-center" }, qs = { class: "flex flex-1 items-center gap-x-3" }, Hs = { class: "font-medium text-lg" }, xf = /* @__PURE__ */ Z({
|
5135
5188
|
__name: "OcVerificationOption",
|
5136
5189
|
props: {
|
5137
5190
|
title: {
|
@@ -5155,10 +5208,10 @@ const tt = /* @__PURE__ */ ge(is, [["render", ss]]), rs = { class: "flex" }, ds
|
|
5155
5208
|
return (r, a) => (t(), i("div", {
|
5156
5209
|
class: v(["rounded hover:bg-oc-gray-50 p-5 flex flex-col gap-y-3", e.isActive ? "border-2 border-oc-primary" : "border border-oc-gray-200"])
|
5157
5210
|
}, [
|
5158
|
-
n("div",
|
5159
|
-
n("div",
|
5211
|
+
n("div", Us, [
|
5212
|
+
n("div", qs, [
|
5160
5213
|
$(r.$slots, "title", {}, () => [
|
5161
|
-
n("span",
|
5214
|
+
n("span", Hs, w(e.title), 1)
|
5162
5215
|
]),
|
5163
5216
|
e.chipOptions ? (t(), y(o(ne), me(F({ key: 0 }, e.chipOptions)), null, 16)) : u("", !0)
|
5164
5217
|
]),
|
@@ -5173,13 +5226,13 @@ const tt = /* @__PURE__ */ ge(is, [["render", ss]]), rs = { class: "flex" }, ds
|
|
5173
5226
|
$(r.$slots, "content")
|
5174
5227
|
], 2));
|
5175
5228
|
}
|
5176
|
-
}),
|
5229
|
+
}), Ys = {
|
5177
5230
|
key: 0,
|
5178
5231
|
class: "flex flex-col gap-y-4 w-full"
|
5179
|
-
},
|
5232
|
+
}, Ws = { class: "flex flex-col gap-y-3" }, Ks = { class: "font-medium text-oc-text" }, Gs = { class: "text-oc-text-400" }, Xs = { class: "flex gap-x-3" }, Js = {
|
5180
5233
|
key: 0,
|
5181
5234
|
class: "text-oc-text"
|
5182
|
-
},
|
5235
|
+
}, Zs = ["innerHTML"], hf = {
|
5183
5236
|
__name: "OcSnackbar",
|
5184
5237
|
props: {
|
5185
5238
|
modelValue: {
|
@@ -5308,18 +5361,18 @@ const tt = /* @__PURE__ */ ge(is, [["render", ss]]), rs = { class: "flex" }, ds
|
|
5308
5361
|
}, null, 8, ["name", "width", "height"]))
|
5309
5362
|
], 64)) : u("", !0),
|
5310
5363
|
$(x.$slots, "default", {}, () => [
|
5311
|
-
f.value ? (t(), i("div",
|
5312
|
-
n("div", qs, [
|
5313
|
-
n("span", Hs, b(e.title), 1),
|
5314
|
-
n("span", Ys, b(e.description), 1)
|
5315
|
-
]),
|
5364
|
+
f.value ? (t(), i("div", Ys, [
|
5316
5365
|
n("div", Ws, [
|
5317
|
-
|
5366
|
+
n("span", Ks, w(e.title), 1),
|
5367
|
+
n("span", Gs, w(e.description), 1)
|
5368
|
+
]),
|
5369
|
+
n("div", Xs, [
|
5370
|
+
e.secondaryButton ? (t(), y(o(K), F({
|
5318
5371
|
key: 0,
|
5319
5372
|
variant: "secondary",
|
5320
5373
|
size: "small"
|
5321
5374
|
}, e.secondaryButton), null, 16)) : u("", !0),
|
5322
|
-
e.primaryButton ? (t(), y(o(
|
5375
|
+
e.primaryButton ? (t(), y(o(K), F({
|
5323
5376
|
key: 1,
|
5324
5377
|
size: "small"
|
5325
5378
|
}, e.primaryButton), null, 16)) : u("", !0)
|
@@ -5332,7 +5385,7 @@ const tt = /* @__PURE__ */ ge(is, [["render", ss]]), rs = { class: "flex" }, ds
|
|
5332
5385
|
key: 1,
|
5333
5386
|
class: "text-oc-text",
|
5334
5387
|
innerHTML: e.content
|
5335
|
-
}, null, 8,
|
5388
|
+
}, null, 8, Zs)) : (t(), i("span", Js, w(e.content), 1))
|
5336
5389
|
], 2))
|
5337
5390
|
]),
|
5338
5391
|
e.dismissible ? (t(), i("div", {
|
@@ -5353,7 +5406,7 @@ const tt = /* @__PURE__ */ ge(is, [["render", ss]]), rs = { class: "flex" }, ds
|
|
5353
5406
|
_: 3
|
5354
5407
|
}, 8, ["name"]));
|
5355
5408
|
}
|
5356
|
-
},
|
5409
|
+
}, Qs = { class: "flex items-center gap-3" }, _s = { class: "text-oc-text-500" }, er = { class: "p-4 text-sm" }, tr = {
|
5357
5410
|
__name: "OcBanner",
|
5358
5411
|
props: {
|
5359
5412
|
modelValue: {
|
@@ -5412,7 +5465,7 @@ const tt = /* @__PURE__ */ ge(is, [["render", ss]]), rs = { class: "flex" }, ds
|
|
5412
5465
|
n("div", {
|
5413
5466
|
class: v(["flex flex-1 items-center justify-between gap-3 min-h-[34px] px-4 text-sm", o(r)[e.color]])
|
5414
5467
|
}, [
|
5415
|
-
n("div",
|
5468
|
+
n("div", Qs, [
|
5416
5469
|
e.showIcon ? (t(), y(o(T), {
|
5417
5470
|
key: 0,
|
5418
5471
|
name: e.icon,
|
@@ -5421,10 +5474,10 @@ const tt = /* @__PURE__ */ ge(is, [["render", ss]]), rs = { class: "flex" }, ds
|
|
5421
5474
|
height: "16"
|
5422
5475
|
}, null, 8, ["name"])) : u("", !0),
|
5423
5476
|
$(l.$slots, "title", {}, () => [
|
5424
|
-
n("div",
|
5477
|
+
n("div", _s, w(e.title), 1)
|
5425
5478
|
], !0)
|
5426
5479
|
]),
|
5427
|
-
e.dismissible ? (t(), y(o(
|
5480
|
+
e.dismissible ? (t(), y(o(K), {
|
5428
5481
|
key: 0,
|
5429
5482
|
variant: "secondary",
|
5430
5483
|
"is-transparent": "",
|
@@ -5432,9 +5485,9 @@ const tt = /* @__PURE__ */ ge(is, [["render", ss]]), rs = { class: "flex" }, ds
|
|
5432
5485
|
onClick: s[0] || (s[0] = (d) => l.$emit("update:modelValue", !1))
|
5433
5486
|
})) : u("", !0)
|
5434
5487
|
], 2),
|
5435
|
-
n("div",
|
5488
|
+
n("div", er, [
|
5436
5489
|
$(l.$slots, "default", {}, () => [
|
5437
|
-
W(
|
5490
|
+
W(w(e.content), 1)
|
5438
5491
|
], !0)
|
5439
5492
|
])
|
5440
5493
|
], 2), [
|
@@ -5444,10 +5497,10 @@ const tt = /* @__PURE__ */ ge(is, [["render", ss]]), rs = { class: "flex" }, ds
|
|
5444
5497
|
_: 3
|
5445
5498
|
}, 8, ["name"]));
|
5446
5499
|
}
|
5447
|
-
},
|
5500
|
+
}, bf = /* @__PURE__ */ ge(tr, [["__scopeId", "data-v-d8517c87"]]), lr = { class: "rounded-full share-icon w-fit cursor-pointer text-oc-text-400 p-3 border border-gray-200" }, ar = { class: "px-3 py-2 text-oc-text-400 text-sm font-medium" }, nr = {
|
5448
5501
|
key: 1,
|
5449
5502
|
class: "px-3 share-icon border border-oc-gray-200 rounded-full w-fit py-[6px] flex items-center gap-x-2"
|
5450
|
-
},
|
5503
|
+
}, ir = { class: "text-sm" }, wf = {
|
5451
5504
|
__name: "OcShareIcon",
|
5452
5505
|
props: {
|
5453
5506
|
text: String,
|
@@ -5460,10 +5513,10 @@ const tt = /* @__PURE__ */ ge(is, [["render", ss]]), rs = { class: "flex" }, ds
|
|
5460
5513
|
setup(e) {
|
5461
5514
|
return (r, a) => e.isOnlyIcon ? (t(), y(o(ae), me(F({ key: 0 }, e.tooltipOptions)), {
|
5462
5515
|
popper: S(() => [
|
5463
|
-
n("div",
|
5516
|
+
n("div", ar, w(e.text), 1)
|
5464
5517
|
]),
|
5465
5518
|
default: S(() => [
|
5466
|
-
n("div",
|
5519
|
+
n("div", lr, [
|
5467
5520
|
p(o(T), {
|
5468
5521
|
name: e.icon,
|
5469
5522
|
width: "20",
|
@@ -5472,25 +5525,25 @@ const tt = /* @__PURE__ */ ge(is, [["render", ss]]), rs = { class: "flex" }, ds
|
|
5472
5525
|
])
|
5473
5526
|
]),
|
5474
5527
|
_: 1
|
5475
|
-
}, 16)) : (t(), i("div",
|
5528
|
+
}, 16)) : (t(), i("div", nr, [
|
5476
5529
|
p(o(T), {
|
5477
5530
|
name: e.icon,
|
5478
5531
|
width: "20",
|
5479
5532
|
height: "20"
|
5480
5533
|
}, null, 8, ["name"]),
|
5481
|
-
n("span",
|
5534
|
+
n("span", ir, w(e.text), 1)
|
5482
5535
|
]));
|
5483
5536
|
}
|
5484
|
-
},
|
5537
|
+
}, or = { class: "flex flex-col w-full gap-y-2" }, sr = { class: "flex items-center gap-x-1" }, rr = {
|
5485
5538
|
key: 0,
|
5486
5539
|
class: "text-oc-error"
|
5487
|
-
},
|
5540
|
+
}, dr = {
|
5488
5541
|
key: 0,
|
5489
5542
|
class: "px-3 py-2"
|
5490
|
-
},
|
5543
|
+
}, cr = {
|
5491
5544
|
key: 1,
|
5492
5545
|
class: "flex items-center text-sm text-oc-text-400"
|
5493
|
-
},
|
5546
|
+
}, ur = {
|
5494
5547
|
key: 2,
|
5495
5548
|
class: "flex items-center text-sm text-oc-error"
|
5496
5549
|
}, he = {
|
@@ -5506,19 +5559,19 @@ const tt = /* @__PURE__ */ ge(is, [["render", ss]]), rs = { class: "flex" }, ds
|
|
5506
5559
|
labelClass: String
|
5507
5560
|
},
|
5508
5561
|
setup(e) {
|
5509
|
-
return (r, a) => (t(), i("div",
|
5562
|
+
return (r, a) => (t(), i("div", or, [
|
5510
5563
|
e.label ? (t(), i("label", {
|
5511
5564
|
key: 0,
|
5512
5565
|
class: v(["flex items-center text-sm font-medium gap-x-3 text-oc-text-400", e.labelClass])
|
5513
5566
|
}, [
|
5514
|
-
n("span",
|
5515
|
-
W(
|
5516
|
-
e.isRequired ? (t(), i("span",
|
5567
|
+
n("span", sr, [
|
5568
|
+
W(w(e.label) + " ", 1),
|
5569
|
+
e.isRequired ? (t(), i("span", rr, "*")) : u("", !0)
|
5517
5570
|
]),
|
5518
5571
|
e.labelIcon ? (t(), y(o(ae), me(F({ key: 0 }, e.tooltipOptions)), {
|
5519
5572
|
popper: S(() => [
|
5520
5573
|
$(r.$slots, "tooltipText", {}, () => [
|
5521
|
-
e.tooltipText ? (t(), i("div",
|
5574
|
+
e.tooltipText ? (t(), i("div", dr, w(e.tooltipText), 1)) : u("", !0)
|
5522
5575
|
])
|
5523
5576
|
]),
|
5524
5577
|
default: S(() => [
|
@@ -5532,18 +5585,18 @@ const tt = /* @__PURE__ */ ge(is, [["render", ss]]), rs = { class: "flex" }, ds
|
|
5532
5585
|
}, 16)) : u("", !0)
|
5533
5586
|
], 2)) : u("", !0),
|
5534
5587
|
$(r.$slots, "default"),
|
5535
|
-
(e.hint || r.$slots.hint) && !e.errorMessage ? (t(), i("div",
|
5588
|
+
(e.hint || r.$slots.hint) && !e.errorMessage ? (t(), i("div", cr, [
|
5536
5589
|
$(r.$slots, "hint", {}, () => [
|
5537
|
-
W(
|
5590
|
+
W(w(e.hint), 1)
|
5538
5591
|
])
|
5539
5592
|
])) : u("", !0),
|
5540
|
-
e.errorMessage ? (t(), i("div",
|
5593
|
+
e.errorMessage ? (t(), i("div", ur, w(e.errorMessage), 1)) : u("", !0)
|
5541
5594
|
]));
|
5542
5595
|
}
|
5543
|
-
},
|
5596
|
+
}, mr = ["disabled"], fr = {
|
5544
5597
|
key: 2,
|
5545
5598
|
class: "overflow-hidden text-ellipsis"
|
5546
|
-
},
|
5599
|
+
}, vr = {
|
5547
5600
|
__name: "OcButton",
|
5548
5601
|
props: {
|
5549
5602
|
label: String,
|
@@ -5624,7 +5677,7 @@ const tt = /* @__PURE__ */ ge(is, [["render", ss]]), rs = { class: "flex" }, ds
|
|
5624
5677
|
height: k.value[e.size],
|
5625
5678
|
name: e.leftIcon
|
5626
5679
|
}, null, 8, ["width", "class", "height", "name"])) : u("", !0),
|
5627
|
-
e.label ? (t(), i("span",
|
5680
|
+
e.label ? (t(), i("span", fr, w(e.label), 1)) : $(A.$slots, "default", { key: 3 }, void 0, !0),
|
5628
5681
|
e.rightIcon ? (t(), y(o(T), {
|
5629
5682
|
key: 4,
|
5630
5683
|
width: k.value[e.size],
|
@@ -5632,7 +5685,7 @@ const tt = /* @__PURE__ */ ge(is, [["render", ss]]), rs = { class: "flex" }, ds
|
|
5632
5685
|
name: e.rightIcon,
|
5633
5686
|
class: v(e.iconClass)
|
5634
5687
|
}, null, 8, ["width", "height", "name", "class"])) : u("", !0)
|
5635
|
-
], 42,
|
5688
|
+
], 42, mr),
|
5636
5689
|
e.isAdditionalArea && !e.isTransparent ? (t(), i("div", {
|
5637
5690
|
key: 0,
|
5638
5691
|
class: v(["border-y border-r flex cursor-pointer items-center justify-center oc-btn-add-area px-[6px] py-3 rounded-r-[inherit]", [s.value[e.size], e.variant]]),
|
@@ -5647,7 +5700,7 @@ const tt = /* @__PURE__ */ ge(is, [["render", ss]]), rs = { class: "flex" }, ds
|
|
5647
5700
|
], 2)) : u("", !0)
|
5648
5701
|
], 2));
|
5649
5702
|
}
|
5650
|
-
},
|
5703
|
+
}, K = /* @__PURE__ */ ge(vr, [["__scopeId", "data-v-af49bb32"]]), gr = { class: "w-[30px] h-[20px] flex items-center justify-center" }, pr = {
|
5651
5704
|
__name: "OcCardInput",
|
5652
5705
|
props: {
|
5653
5706
|
placeholder: String,
|
@@ -5694,7 +5747,7 @@ const tt = /* @__PURE__ */ ge(is, [["render", ss]]), rs = { class: "flex" }, ds
|
|
5694
5747
|
"onUpdate:modelValue": a[0] || (a[0] = (l) => r.$emit("update:modelValue", l))
|
5695
5748
|
}, {
|
5696
5749
|
icon: S(() => [
|
5697
|
-
n("div",
|
5750
|
+
n("div", gr, [
|
5698
5751
|
p(o(T), {
|
5699
5752
|
name: `payment-methods/${e.cardType}`,
|
5700
5753
|
width: "20",
|
@@ -5705,7 +5758,7 @@ const tt = /* @__PURE__ */ ge(is, [["render", ss]]), rs = { class: "flex" }, ds
|
|
5705
5758
|
_: 1
|
5706
5759
|
}, 8, ["placeholder", "label", "error-message", "is-inline-label", "disabled", "hint", "model-value", "is-required", "label-icon", "tooltip-text", "tooltip-options"]));
|
5707
5760
|
}
|
5708
|
-
},
|
5761
|
+
}, yr = ["value", "checked", "disabled"], xr = {
|
5709
5762
|
__name: "OcCheckbox",
|
5710
5763
|
props: {
|
5711
5764
|
modelValue: Boolean,
|
@@ -5756,7 +5809,7 @@ const tt = /* @__PURE__ */ ge(is, [["render", ss]]), rs = { class: "flex" }, ds
|
|
5756
5809
|
e.label ? (t(), i("span", {
|
5757
5810
|
key: 0,
|
5758
5811
|
class: v({ "text-sm": !e.isButtonVariant })
|
5759
|
-
},
|
5812
|
+
}, w(e.label), 3)) : u("", !0),
|
5760
5813
|
n("input", {
|
5761
5814
|
value: e.modelValue,
|
5762
5815
|
type: "checkbox",
|
@@ -5764,14 +5817,14 @@ const tt = /* @__PURE__ */ ge(is, [["render", ss]]), rs = { class: "flex" }, ds
|
|
5764
5817
|
class: "h-0 w-0 hidden",
|
5765
5818
|
disabled: e.isDisabled,
|
5766
5819
|
onChange: d
|
5767
|
-
}, null, 40,
|
5820
|
+
}, null, 40, yr),
|
5768
5821
|
$(c.$slots, "after", {}, void 0, !0)
|
5769
5822
|
], 2)
|
5770
5823
|
]),
|
5771
5824
|
_: 3
|
5772
5825
|
}, 8, ["label", "hint", "error-message"]));
|
5773
5826
|
}
|
5774
|
-
}, Te = /* @__PURE__ */ ge(
|
5827
|
+
}, Te = /* @__PURE__ */ ge(xr, [["__scopeId", "data-v-bdfcee55"]]), hr = {
|
5775
5828
|
__name: "OcCheckboxesGroup",
|
5776
5829
|
props: {
|
5777
5830
|
alignment: {
|
@@ -5850,14 +5903,14 @@ const tt = /* @__PURE__ */ ge(is, [["render", ss]]), rs = { class: "flex" }, ds
|
|
5850
5903
|
_: 1
|
5851
5904
|
}, 8, ["label", "error-message", "hint"]));
|
5852
5905
|
}
|
5853
|
-
},
|
5906
|
+
}, br = { class: "flex gap-x-2 relative items-center text-oc-text-500 cursor-pointer transition-all duration-300" }, kf = {
|
5854
5907
|
__name: "OcCriteria",
|
5855
5908
|
props: {
|
5856
5909
|
modelValue: Boolean,
|
5857
5910
|
label: String
|
5858
5911
|
},
|
5859
5912
|
setup(e) {
|
5860
|
-
return (r, a) => (t(), i("div",
|
5913
|
+
return (r, a) => (t(), i("div", br, [
|
5861
5914
|
n("div", {
|
5862
5915
|
class: v([
|
5863
5916
|
"w-5 h-5 flex items-center justify-center rounded-full border transition-all duration-300",
|
@@ -5873,19 +5926,19 @@ const tt = /* @__PURE__ */ ge(is, [["render", ss]]), rs = { class: "flex" }, ds
|
|
5873
5926
|
e.label ? (t(), i("span", {
|
5874
5927
|
key: 0,
|
5875
5928
|
class: v(e.modelValue ? "text-oc-success" : "text-oc-primary-300")
|
5876
|
-
},
|
5929
|
+
}, w(e.label), 3)) : u("", !0)
|
5877
5930
|
]));
|
5878
5931
|
}
|
5879
|
-
},
|
5932
|
+
}, wr = { class: "flex flex-1 items-baseline gap-x-2" }, kr = {
|
5880
5933
|
key: 0,
|
5881
5934
|
class: "text-oc-text-300"
|
5882
|
-
},
|
5935
|
+
}, $r = { class: "flex items-center gap-x-1 w-full" }, Sr = {
|
5883
5936
|
key: 0,
|
5884
5937
|
class: "text-oc-text-300"
|
5885
|
-
},
|
5938
|
+
}, Cr = ["value", "readonly", "placeholder", "disabled", "autocomplete", "inputmode", "type"], Br = {
|
5886
5939
|
key: 1,
|
5887
5940
|
class: "flex items-center h-full"
|
5888
|
-
},
|
5941
|
+
}, Vr = {
|
5889
5942
|
key: 0,
|
5890
5943
|
class: "border-l border-gray-200 pl-3 py-3 h-full"
|
5891
5944
|
}, xe = {
|
@@ -6037,10 +6090,10 @@ const tt = /* @__PURE__ */ ge(is, [["render", ss]]), rs = { class: "flex" }, ds
|
|
6037
6090
|
name: e.icon
|
6038
6091
|
}, e.iconProps), null, 16, ["name"])) : u("", !0)
|
6039
6092
|
]),
|
6040
|
-
n("div",
|
6041
|
-
e.isInlineLabel && e.label ? (t(), i("label",
|
6042
|
-
n("div",
|
6043
|
-
e.preFill ? (t(), i("span",
|
6093
|
+
n("div", wr, [
|
6094
|
+
e.isInlineLabel && e.label ? (t(), i("label", kr, w(e.label) + ": ", 1)) : u("", !0),
|
6095
|
+
n("div", $r, [
|
6096
|
+
e.preFill ? (t(), i("span", Sr, w(e.preFill), 1)) : u("", !0),
|
6044
6097
|
n("input", F({
|
6045
6098
|
ref_key: "inputRef",
|
6046
6099
|
ref: s,
|
@@ -6061,11 +6114,11 @@ const tt = /* @__PURE__ */ ge(is, [["render", ss]]), rs = { class: "flex" }, ds
|
|
6061
6114
|
}),
|
6062
6115
|
onInput: k[2] || (k[2] = (A) => g.$emit("update:modelValue", A.target.value)),
|
6063
6116
|
onPaste: k[3] || (k[3] = (A) => g.$emit("paste"))
|
6064
|
-
}), null, 16,
|
6117
|
+
}), null, 16, Cr)
|
6065
6118
|
])
|
6066
6119
|
]),
|
6067
|
-
g.$slots.leading || x.value ? (t(), i("div",
|
6068
|
-
e.hasLeadingSeparator ? (t(), i("span",
|
6120
|
+
g.$slots.leading || x.value ? (t(), i("div", Br, [
|
6121
|
+
e.hasLeadingSeparator ? (t(), i("span", Vr)) : u("", !0),
|
6069
6122
|
g.$slots.leading ? u("", !0) : (t(), i("span", {
|
6070
6123
|
key: 1,
|
6071
6124
|
class: "text-oc-text-200",
|
@@ -6093,10 +6146,10 @@ const tt = /* @__PURE__ */ ge(is, [["render", ss]]), rs = { class: "flex" }, ds
|
|
6093
6146
|
} : void 0
|
6094
6147
|
]), 1032, ["label", "label-class", "hint", "error-message", "is-required", "label-icon", "tooltip-text", "tooltip-options"]));
|
6095
6148
|
}
|
6096
|
-
},
|
6149
|
+
}, Or = { class: "flex flex-1 items-baseline gap-x-2" }, Ir = {
|
6097
6150
|
key: 0,
|
6098
6151
|
class: "text-oc-text-300"
|
6099
|
-
},
|
6152
|
+
}, Tr = { class: "w-full flex flex-wrap gap-2" }, Dr = { key: 1 }, Ar = ["value", "readonly", "placeholder", "disabled"], $f = {
|
6100
6153
|
__name: "OcInputOption",
|
6101
6154
|
props: {
|
6102
6155
|
label: String,
|
@@ -6173,8 +6226,8 @@ const tt = /* @__PURE__ */ ge(is, [["render", ss]]), rs = { class: "flex" }, ds
|
|
6173
6226
|
default: S(() => {
|
6174
6227
|
var C, h;
|
6175
6228
|
return [
|
6176
|
-
n("div",
|
6177
|
-
e.isInlineLabel && e.label ? (t(), i("label",
|
6229
|
+
n("div", Or, [
|
6230
|
+
e.isInlineLabel && e.label ? (t(), i("label", Ir, w(e.label) + ": ", 1)) : u("", !0),
|
6178
6231
|
n("div", {
|
6179
6232
|
class: "bg-oc-bg-light flex items-center gap-x-1 w-full",
|
6180
6233
|
onClick: I[4] || (I[4] = (B) => c.value.focus())
|
@@ -6185,7 +6238,7 @@ const tt = /* @__PURE__ */ ge(is, [["render", ss]]), rs = { class: "flex" }, ds
|
|
6185
6238
|
"pointer-events-none bg-oc-bg-dark": e.isDisabled
|
6186
6239
|
}])
|
6187
6240
|
}, [
|
6188
|
-
n("div",
|
6241
|
+
n("div", Tr, [
|
6189
6242
|
$(j.$slots, "default", {
|
6190
6243
|
options: g.value,
|
6191
6244
|
areAllOptionsVisible: f.value
|
@@ -6194,7 +6247,7 @@ const tt = /* @__PURE__ */ ge(is, [["render", ss]]), rs = { class: "flex" }, ds
|
|
6194
6247
|
key: `${B}-${O}`,
|
6195
6248
|
closable: "",
|
6196
6249
|
label: B,
|
6197
|
-
onRemove: (
|
6250
|
+
onRemove: (b) => k(B)
|
6198
6251
|
}, null, 8, ["label", "onRemove"]))), 128)),
|
6199
6252
|
d.value.length > e.maxVisibleOptions ? (t(), y(o(ne), {
|
6200
6253
|
key: 0,
|
@@ -6207,7 +6260,7 @@ const tt = /* @__PURE__ */ ge(is, [["render", ss]]), rs = { class: "flex" }, ds
|
|
6207
6260
|
name: "minus",
|
6208
6261
|
width: "12",
|
6209
6262
|
height: "12"
|
6210
|
-
})) : (t(), i("span",
|
6263
|
+
})) : (t(), i("span", Dr, w(`+${d.value.length - e.maxVisibleOptions}`), 1))
|
6211
6264
|
]),
|
6212
6265
|
_: 1
|
6213
6266
|
})) : u("", !0)
|
@@ -6226,7 +6279,7 @@ const tt = /* @__PURE__ */ ge(is, [["render", ss]]), rs = { class: "flex" }, ds
|
|
6226
6279
|
console.log("$event: ", B), x.value = !1, j.$emit("blur", B);
|
6227
6280
|
}),
|
6228
6281
|
onKeyup: I[3] || (I[3] = Fe((B) => A(B.target.value), ["enter"]))
|
6229
|
-
}, null, 42,
|
6282
|
+
}, null, 42, Ar)
|
6230
6283
|
])
|
6231
6284
|
], 2)
|
6232
6285
|
])
|
@@ -6236,7 +6289,7 @@ const tt = /* @__PURE__ */ ge(is, [["render", ss]]), rs = { class: "flex" }, ds
|
|
6236
6289
|
_: 3
|
6237
6290
|
}, 8, ["label", "hint", "error-message", "is-required", "label-icon", "tooltip-text", "tooltip-options"]));
|
6238
6291
|
}
|
6239
|
-
},
|
6292
|
+
}, jr = { class: "flex gap-x-2 items-center" }, Mr = { class: "text-oc-text-400 font-medium text-sm" }, Lr = { class: "px-3 py-1 sticky top-0 bg-oc-bg-light z-[1000]" }, Pr = ["onClick"], Er = { class: "text-oc-text-300" }, Nr = { class: "text-oc-text-400" }, zr = {
|
6240
6293
|
__name: "OcPhoneInput",
|
6241
6294
|
props: {
|
6242
6295
|
countryCodes: { type: Array, default: () => [] },
|
@@ -6289,25 +6342,25 @@ const tt = /* @__PURE__ */ ge(is, [["render", ss]]), rs = { class: "flex" }, ds
|
|
6289
6342
|
return ((O = x(B)) == null ? void 0 : O.code) || "";
|
6290
6343
|
}, k = (B) => {
|
6291
6344
|
l("update:modelValue", [g(d.value), B]);
|
6292
|
-
}, A = (B, O,
|
6345
|
+
}, A = (B, O, b = null) => {
|
6293
6346
|
var V;
|
6294
|
-
d.value = B.toLowerCase(), l("update:modelValue", [O,
|
6347
|
+
d.value = B.toLowerCase(), l("update:modelValue", [O, b || ((V = a.modelValue) == null ? void 0 : V[1]) || ""]), c.value = !1;
|
6295
6348
|
}, j = M(null), I = M([]), C = () => {
|
6296
6349
|
setTimeout(() => {
|
6297
6350
|
const B = f.value.indexOf(
|
6298
6351
|
x(d.value)
|
6299
|
-
),
|
6300
|
-
j.value.scrollTo(0,
|
6352
|
+
), b = I.value[B].offsetTop;
|
6353
|
+
j.value.scrollTo(0, b - 60, { behavior: "smooth" });
|
6301
6354
|
}, 10);
|
6302
6355
|
}, h = (B) => {
|
6303
6356
|
let O = B.clipboardData.getData("Text");
|
6304
6357
|
try {
|
6305
6358
|
if (O.search(/[^0-9]/g) < 0)
|
6306
6359
|
if (O = O.slice(0, 19), O.length > 5 && a.shouldParseCountryCode) {
|
6307
|
-
const { nationalNumber:
|
6360
|
+
const { nationalNumber: b, countryCallingCode: V, country: L } = Wt(
|
6308
6361
|
"+" + O.replace("+", "")
|
6309
6362
|
);
|
6310
|
-
V && L ? A(L, V,
|
6363
|
+
V && L ? A(L, V, b) : l("update:modelValue", [g(d.value), b]);
|
6311
6364
|
} else
|
6312
6365
|
l("update:modelValue", [g(d.value), O]);
|
6313
6366
|
} catch {
|
@@ -6316,10 +6369,10 @@ const tt = /* @__PURE__ */ ge(is, [["render", ss]]), rs = { class: "flex" }, ds
|
|
6316
6369
|
B.preventDefault();
|
6317
6370
|
};
|
6318
6371
|
return (B, O) => {
|
6319
|
-
var
|
6372
|
+
var b;
|
6320
6373
|
return t(), y(o(xe), {
|
6321
6374
|
"error-message": e.errorMessage,
|
6322
|
-
"model-value": ((
|
6375
|
+
"model-value": ((b = e.modelValue) == null ? void 0 : b[1]) || "",
|
6323
6376
|
placeholder: e.placeholder,
|
6324
6377
|
label: e.label,
|
6325
6378
|
"is-inline-label": e.isInlineLabel,
|
@@ -6349,7 +6402,7 @@ const tt = /* @__PURE__ */ ge(is, [["render", ss]]), rs = { class: "flex" }, ds
|
|
6349
6402
|
ref: j,
|
6350
6403
|
class: "flex flex-col max-h-[300px] py-2 overflow-y-scroll hidden-scrollbar"
|
6351
6404
|
}, [
|
6352
|
-
n("div",
|
6405
|
+
n("div", Lr, [
|
6353
6406
|
p(o(xe), {
|
6354
6407
|
modelValue: m.value,
|
6355
6408
|
"onUpdate:modelValue": O[0] || (O[0] = (V) => m.value = V),
|
@@ -6383,17 +6436,17 @@ const tt = /* @__PURE__ */ ge(is, [["render", ss]]), rs = { class: "flex" }, ds
|
|
6383
6436
|
n("div", {
|
6384
6437
|
class: v(["fi !w-[20px] !h-[15px] !rounded-[2px] shadow-md", `fi-${V.iso.toLowerCase()}`])
|
6385
6438
|
}, null, 2),
|
6386
|
-
n("span",
|
6387
|
-
n("span",
|
6388
|
-
], 10,
|
6439
|
+
n("span", Er, "+" + w(V.code), 1),
|
6440
|
+
n("span", Nr, w(V.country), 1)
|
6441
|
+
], 10, Pr))), 128))
|
6389
6442
|
], 512)
|
6390
6443
|
]),
|
6391
6444
|
default: S(() => [
|
6392
|
-
n("div",
|
6445
|
+
n("div", jr, [
|
6393
6446
|
n("div", {
|
6394
6447
|
class: v(["fi !w-[20px] !h-[15px] !rounded-[2px] shadow-md", `fi-${d.value}`])
|
6395
6448
|
}, null, 2),
|
6396
|
-
n("span",
|
6449
|
+
n("span", Mr, " +" + w(g(d.value)), 1),
|
6397
6450
|
p(o(T), {
|
6398
6451
|
width: "16",
|
6399
6452
|
height: "16",
|
@@ -6409,10 +6462,10 @@ const tt = /* @__PURE__ */ ge(is, [["render", ss]]), rs = { class: "flex" }, ds
|
|
6409
6462
|
}, 8, ["error-message", "model-value", "placeholder", "label", "is-inline-label", "disabled", "hint", "is-required", "label-icon", "tooltip-text", "tooltip-options", "onKeydown"]);
|
6410
6463
|
};
|
6411
6464
|
}
|
6412
|
-
},
|
6465
|
+
}, Rr = ["id", "value", "checked", "name", "disabled"], Fr = ["for"], Ur = {
|
6413
6466
|
key: 0,
|
6414
6467
|
class: "px-3 py-2 whitespace-nowrap"
|
6415
|
-
},
|
6468
|
+
}, qr = {
|
6416
6469
|
__name: "OcRadio",
|
6417
6470
|
props: {
|
6418
6471
|
modelValue: [String, Boolean],
|
@@ -6450,7 +6503,7 @@ const tt = /* @__PURE__ */ ge(is, [["render", ss]]), rs = { class: "flex" }, ds
|
|
6450
6503
|
class: "radio-button__input absolute opacity-0 w-0 h-0",
|
6451
6504
|
type: "radio",
|
6452
6505
|
onInput: a[0] || (a[0] = (l) => r.$emit("update:modelValue", l.target.value))
|
6453
|
-
}, null, 40,
|
6506
|
+
}, null, 40, Rr),
|
6454
6507
|
n("label", {
|
6455
6508
|
for: e.groupName + e.id,
|
6456
6509
|
class: v(["radio-button__label flex gap-x-3 relative items-center cursor-pointer transition-all duration-300 text-oc-text-500", {
|
@@ -6479,12 +6532,12 @@ const tt = /* @__PURE__ */ ge(is, [["render", ss]]), rs = { class: "flex" }, ds
|
|
6479
6532
|
e.label ? (t(), i("span", {
|
6480
6533
|
key: 0,
|
6481
6534
|
class: v({ "text-sm": !e.isButtonVariantWithRadio })
|
6482
|
-
},
|
6535
|
+
}, w(e.label), 3)) : u("", !0)
|
6483
6536
|
]),
|
6484
6537
|
e.labelIcon ? (t(), y(o(ae), me(F({ key: 2 }, e.tooltipOptions)), {
|
6485
6538
|
popper: S(() => [
|
6486
6539
|
$(r.$slots, "tooltipText", {}, () => [
|
6487
|
-
e.tooltipText ? (t(), i("div",
|
6540
|
+
e.tooltipText ? (t(), i("div", Ur, w(e.tooltipText), 1)) : u("", !0)
|
6488
6541
|
])
|
6489
6542
|
]),
|
6490
6543
|
default: S(() => [
|
@@ -6497,12 +6550,12 @@ const tt = /* @__PURE__ */ ge(is, [["render", ss]]), rs = { class: "flex" }, ds
|
|
6497
6550
|
]),
|
6498
6551
|
_: 3
|
6499
6552
|
}, 16)) : u("", !0)
|
6500
|
-
], 10,
|
6553
|
+
], 10, Fr)
|
6501
6554
|
]),
|
6502
6555
|
_: 3
|
6503
6556
|
}, 8, ["class", "error-message", "hint"]));
|
6504
6557
|
}
|
6505
|
-
},
|
6558
|
+
}, Hr = {
|
6506
6559
|
__name: "OcRadioGroup",
|
6507
6560
|
props: {
|
6508
6561
|
alignment: {
|
@@ -6539,7 +6592,7 @@ const tt = /* @__PURE__ */ ge(is, [["render", ss]]), rs = { class: "flex" }, ds
|
|
6539
6592
|
n("div", {
|
6540
6593
|
class: v(["flex", [l.value[e.alignment], e.wrapperClass]])
|
6541
6594
|
}, [
|
6542
|
-
(t(!0), i(N, null, R(e.radio, (m, f) => (t(), y(o(
|
6595
|
+
(t(!0), i(N, null, R(e.radio, (m, f) => (t(), y(o(qr), {
|
6543
6596
|
id: m.value,
|
6544
6597
|
key: f,
|
6545
6598
|
class: v({ "!w-fit": !e.isBlock }),
|
@@ -6562,10 +6615,10 @@ const tt = /* @__PURE__ */ ge(is, [["render", ss]]), rs = { class: "flex" }, ds
|
|
6562
6615
|
_: 1
|
6563
6616
|
}, 8, ["label", "error-message", "hint"]));
|
6564
6617
|
}
|
6565
|
-
},
|
6618
|
+
}, Yr = { class: "flex flex-col gap-y-2 oc-range-input" }, Wr = { class: "flex gap-x-3" }, Kr = {
|
6566
6619
|
key: 0,
|
6567
6620
|
class: "flex pt-4"
|
6568
|
-
},
|
6621
|
+
}, Gr = {
|
6569
6622
|
__name: "OcRangeInput",
|
6570
6623
|
props: {
|
6571
6624
|
maxLimit: {
|
@@ -6609,14 +6662,14 @@ const tt = /* @__PURE__ */ ge(is, [["render", ss]]), rs = { class: "flex" }, ds
|
|
6609
6662
|
};
|
6610
6663
|
return we(() => {
|
6611
6664
|
a.onlyInput || c.value.updateSlider();
|
6612
|
-
}), (k, A) => (t(), i("div",
|
6665
|
+
}), (k, A) => (t(), i("div", Yr, [
|
6613
6666
|
p(o(he), {
|
6614
6667
|
label: e.label,
|
6615
6668
|
hint: e.hint,
|
6616
6669
|
"error-message": e.errorMessage
|
6617
6670
|
}, {
|
6618
6671
|
default: S(() => [
|
6619
|
-
n("div",
|
6672
|
+
n("div", Wr, [
|
6620
6673
|
p(o(xe), {
|
6621
6674
|
"model-value": s.value,
|
6622
6675
|
label: "From",
|
@@ -6632,7 +6685,7 @@ const tt = /* @__PURE__ */ ge(is, [["render", ss]]), rs = { class: "flex" }, ds
|
|
6632
6685
|
"onUpdate:modelValue": A[1] || (A[1] = (j) => m(j, 1))
|
6633
6686
|
}, null, 8, ["model-value"])
|
6634
6687
|
]),
|
6635
|
-
e.onlyInput ? u("", !0) : (t(), i("div",
|
6688
|
+
e.onlyInput ? u("", !0) : (t(), i("div", Kr, [
|
6636
6689
|
p(o(Lt), {
|
6637
6690
|
ref_key: "slider",
|
6638
6691
|
ref: c,
|
@@ -6649,28 +6702,28 @@ const tt = /* @__PURE__ */ ge(is, [["render", ss]]), rs = { class: "flex" }, ds
|
|
6649
6702
|
}, 8, ["label", "hint", "error-message"])
|
6650
6703
|
]));
|
6651
6704
|
}
|
6652
|
-
},
|
6705
|
+
}, Xr = {
|
6653
6706
|
key: 0,
|
6654
6707
|
class: "flex flex-wrap gap-2 overflow-hidden"
|
6655
|
-
},
|
6708
|
+
}, Jr = {
|
6656
6709
|
key: 0,
|
6657
6710
|
class: "text-oc-text-300 md:text-base text-lg"
|
6658
|
-
},
|
6711
|
+
}, Zr = {
|
6659
6712
|
key: 2,
|
6660
6713
|
class: "whitespace-nowrap flex gap-x-3 text-lg md:text-base items-center overflow-hidden"
|
6661
|
-
},
|
6714
|
+
}, Qr = {
|
6662
6715
|
key: 1,
|
6663
6716
|
class: "text-oc-text-300"
|
6664
|
-
},
|
6717
|
+
}, _r = {
|
6665
6718
|
key: 2,
|
6666
6719
|
class: "truncate"
|
6667
|
-
},
|
6720
|
+
}, ed = {
|
6668
6721
|
key: 0,
|
6669
6722
|
class: "sticky px-3 pt-3 top-0 z-10 bg-white"
|
6670
|
-
},
|
6723
|
+
}, td = {
|
6671
6724
|
key: 0,
|
6672
6725
|
class: "text-sm text-oc-text-300 text-center"
|
6673
|
-
},
|
6726
|
+
}, ld = { key: 0 }, ad = {
|
6674
6727
|
__name: "OcSelect",
|
6675
6728
|
props: {
|
6676
6729
|
label: String,
|
@@ -6758,15 +6811,15 @@ const tt = /* @__PURE__ */ ge(is, [["render", ss]]), rs = { class: "flex" }, ds
|
|
6758
6811
|
const P = [];
|
6759
6812
|
for (const H of l.options)
|
6760
6813
|
if (H.values) {
|
6761
|
-
const
|
6814
|
+
const G = H.values.filter(
|
6762
6815
|
(_) => {
|
6763
6816
|
var ee, oe;
|
6764
6817
|
return ((ee = _.label) == null ? void 0 : ee.toLowerCase().includes(d.value.toLowerCase())) || ((oe = _.subLabel) == null ? void 0 : oe.toLowerCase().includes(d.value.toLowerCase()));
|
6765
6818
|
}
|
6766
6819
|
);
|
6767
|
-
|
6820
|
+
G.length > 0 && P.push({
|
6768
6821
|
label: H.label,
|
6769
|
-
values:
|
6822
|
+
values: G
|
6770
6823
|
});
|
6771
6824
|
} else
|
6772
6825
|
((D = H.label) != null && D.toLowerCase().includes(d.value.toLowerCase()) || (U = H.subLabel) != null && U.toLowerCase().includes(d.value.toLowerCase())) && P.push(H);
|
@@ -6792,12 +6845,12 @@ const tt = /* @__PURE__ */ ge(is, [["render", ss]]), rs = { class: "flex" }, ds
|
|
6792
6845
|
return;
|
6793
6846
|
let D;
|
6794
6847
|
if (l.multiple) {
|
6795
|
-
const H = (l.modelValue || []).find((
|
6848
|
+
const H = (l.modelValue || []).find((G) => G === P.value);
|
6796
6849
|
if (!H && l.maxOptionAllowed && ((U = I.value) == null ? void 0 : U.length) >= Number(l.maxOptionAllowed)) {
|
6797
6850
|
s("max-option-allowed-set");
|
6798
6851
|
return;
|
6799
6852
|
}
|
6800
|
-
D = H ? (l.modelValue || []).filter((
|
6853
|
+
D = H ? (l.modelValue || []).filter((G) => G !== P.value) : [...l.modelValue || [], P.value];
|
6801
6854
|
} else
|
6802
6855
|
D = P.value, c.value = !1;
|
6803
6856
|
s("update:modelValue", D);
|
@@ -6824,24 +6877,24 @@ const tt = /* @__PURE__ */ ge(is, [["render", ss]]), rs = { class: "flex" }, ds
|
|
6824
6877
|
(D = m.value) == null || D.focus();
|
6825
6878
|
});
|
6826
6879
|
});
|
6827
|
-
const
|
6880
|
+
const b = M("100%"), V = z(() => ({ maxWidth: b.value })), L = () => {
|
6828
6881
|
var P, D, U, H;
|
6829
|
-
s("toggle"),
|
6882
|
+
s("toggle"), b.value = (D = (P = O.value) == null ? void 0 : P.$el) != null && D.offsetWidth ? `${(H = (U = O.value) == null ? void 0 : U.$el) == null ? void 0 : H.offsetWidth}px` : "100%", setTimeout(() => {
|
6830
6883
|
var ce;
|
6831
|
-
let
|
6832
|
-
if (Array.isArray(l.modelValue) ?
|
6884
|
+
let G, _;
|
6885
|
+
if (Array.isArray(l.modelValue) ? G = l.modelValue[0] ?? null : G = l.modelValue, !G) return;
|
6833
6886
|
j.value.find((pe, ke) => {
|
6834
|
-
if (pe.value ===
|
6887
|
+
if (pe.value === G)
|
6835
6888
|
return _ = ke, !0;
|
6836
6889
|
});
|
6837
6890
|
const ee = x.value[_], oe = (ce = ee == null ? void 0 : ee.optionItemRef) == null ? void 0 : ce.offsetTop;
|
6838
6891
|
g.value.parentNode.scrollTo(0, oe - 60, { behavior: "smooth" });
|
6839
6892
|
}, 10);
|
6840
6893
|
}, E = (P) => {
|
6841
|
-
var U, H,
|
6894
|
+
var U, H, G;
|
6842
6895
|
if (l.isLoading)
|
6843
6896
|
return;
|
6844
|
-
((U = P.target) == null ? void 0 : U.scrollHeight) - Math.round((H = P.target) == null ? void 0 : H.scrollTop) <= ((
|
6897
|
+
((U = P.target) == null ? void 0 : U.scrollHeight) - Math.round((H = P.target) == null ? void 0 : H.scrollTop) <= ((G = P.target) == null ? void 0 : G.clientHeight) && s("loadMore");
|
6845
6898
|
};
|
6846
6899
|
return r({
|
6847
6900
|
dropdownRef: f
|
@@ -6858,7 +6911,7 @@ const tt = /* @__PURE__ */ ge(is, [["render", ss]]), rs = { class: "flex" }, ds
|
|
6858
6911
|
"tooltip-options": e.tooltipOptions
|
6859
6912
|
}, te({
|
6860
6913
|
tooltipText: S(() => [
|
6861
|
-
P.$slots.selectTooltipText ? (t(), i("div",
|
6914
|
+
P.$slots.selectTooltipText ? (t(), i("div", ld, [
|
6862
6915
|
$(P.$slots, "selectTooltipText")
|
6863
6916
|
])) : u("", !0)
|
6864
6917
|
]),
|
@@ -6893,7 +6946,7 @@ const tt = /* @__PURE__ */ ge(is, [["render", ss]]), rs = { class: "flex" }, ds
|
|
6893
6946
|
ref: g,
|
6894
6947
|
class: "flex flex-col gap-y-2"
|
6895
6948
|
}, [
|
6896
|
-
e.isFilterable && !e.isInlineSearch || e.isFilterable && e.isInlineSearch && I.value ? (t(), i("div",
|
6949
|
+
e.isFilterable && !e.isInlineSearch || e.isFilterable && e.isInlineSearch && I.value ? (t(), i("div", ed, [
|
6897
6950
|
p(o(xe), {
|
6898
6951
|
ref_key: "searchInputRef",
|
6899
6952
|
ref: m,
|
@@ -6940,11 +6993,11 @@ const tt = /* @__PURE__ */ ge(is, [["render", ss]]), rs = { class: "flex" }, ds
|
|
6940
6993
|
"sub-label": H.subLabel,
|
6941
6994
|
"is-disabled": H.isDisabled,
|
6942
6995
|
"is-checkboxes": e.isCheckboxes,
|
6943
|
-
"is-selected": e.multiple ? e.modelValue ? e.modelValue.find((
|
6944
|
-
onClick: (
|
6996
|
+
"is-selected": e.multiple ? e.modelValue ? e.modelValue.find((G) => G === H.value) !== void 0 : !1 : e.modelValue === H.value,
|
6997
|
+
onClick: (G) => C(H)
|
6945
6998
|
}, null, 8, ["label", "sub-label", "is-disabled", "is-checkboxes", "is-selected", "onClick"]))), 128)),
|
6946
6999
|
$(P.$slots, "empty", {}, () => [
|
6947
|
-
j.value.length ? u("", !0) : (t(), i("div",
|
7000
|
+
j.value.length ? u("", !0) : (t(), i("div", td, " No data to display "))
|
6948
7001
|
])
|
6949
7002
|
]),
|
6950
7003
|
$(P.$slots, "infinite-scrolling"),
|
@@ -6953,7 +7006,7 @@ const tt = /* @__PURE__ */ ge(is, [["render", ss]]), rs = { class: "flex" }, ds
|
|
6953
7006
|
class: v(["h-[20px] rounded-sm", { "mt-2": !e.options.length && e.isFilterable }])
|
6954
7007
|
}, null, 8, ["class"])) : u("", !0)
|
6955
7008
|
], 2),
|
6956
|
-
e.isAddNew ? (t(), y(o(
|
7009
|
+
e.isAddNew ? (t(), y(o(K), {
|
6957
7010
|
key: 1,
|
6958
7011
|
variant: "secondary",
|
6959
7012
|
class: "flex items-center py-2 justify-center gap-x-[6px] sticky bottom-0 bg-white z-10",
|
@@ -6987,7 +7040,7 @@ const tt = /* @__PURE__ */ ge(is, [["render", ss]]), rs = { class: "flex" }, ds
|
|
6987
7040
|
}
|
6988
7041
|
]])
|
6989
7042
|
}, [
|
6990
|
-
e.multiple ? (t(), i("div",
|
7043
|
+
e.multiple ? (t(), i("div", Xr, [
|
6991
7044
|
$(P.$slots, "selection", {}, () => [
|
6992
7045
|
(t(!0), i(N, null, R(e.maxVisibleOptions ? I.value.slice(0, e.maxVisibleOptions) : I.value, (U) => (t(), y(o(ne), F({
|
6993
7046
|
key: U.value,
|
@@ -7004,7 +7057,7 @@ const tt = /* @__PURE__ */ ge(is, [["render", ss]]), rs = { class: "flex" }, ds
|
|
7004
7057
|
label: `+${I.value.length - e.maxVisibleOptions}`
|
7005
7058
|
}, null, 8, ["label"])) : u("", !0)
|
7006
7059
|
]),
|
7007
|
-
I.value.length === 0 ? (t(), i("span",
|
7060
|
+
I.value.length === 0 ? (t(), i("span", Jr, w(e.placeholder), 1)) : u("", !0)
|
7008
7061
|
])) : u("", !0),
|
7009
7062
|
e.isInlineSearch && e.isFilterable && !I.value ? (t(), y(o(xe), {
|
7010
7063
|
key: 1,
|
@@ -7028,18 +7081,18 @@ const tt = /* @__PURE__ */ ge(is, [["render", ss]]), rs = { class: "flex" }, ds
|
|
7028
7081
|
]),
|
7029
7082
|
key: "0"
|
7030
7083
|
} : void 0
|
7031
|
-
]), 1032, ["modelValue", "placeholder", "is-readonly"])) : (t(), i("span",
|
7084
|
+
]), 1032, ["modelValue", "placeholder", "is-readonly"])) : (t(), i("span", Zr, [
|
7032
7085
|
e.icon ? (t(), y(o(T), {
|
7033
7086
|
key: 0,
|
7034
7087
|
name: e.icon,
|
7035
7088
|
width: "16",
|
7036
7089
|
height: "16"
|
7037
7090
|
}, null, 8, ["name"])) : u("", !0),
|
7038
|
-
e.isInlineLabel && e.label ? (t(), i("span",
|
7039
|
-
I.value ? (t(), i("span",
|
7091
|
+
e.isInlineLabel && e.label ? (t(), i("span", Qr, w(e.label) + ": ", 1)) : u("", !0),
|
7092
|
+
I.value ? (t(), i("span", _r, w(I.value.label), 1)) : (t(), i("span", {
|
7040
7093
|
key: 3,
|
7041
7094
|
class: v(e.dropdownClasses ? "" : "text-oc-text-300")
|
7042
|
-
},
|
7095
|
+
}, w(e.placeholder), 3))
|
7043
7096
|
])),
|
7044
7097
|
e.modelValue && e.isClearable ? (t(), y(o(T), {
|
7045
7098
|
key: 3,
|
@@ -7073,7 +7126,7 @@ const tt = /* @__PURE__ */ ge(is, [["render", ss]]), rs = { class: "flex" }, ds
|
|
7073
7126
|
} : void 0
|
7074
7127
|
]), 1032, ["label", "hint", "error-message", "is-required", "label-icon", "tooltip-text", "tooltip-options"]));
|
7075
7128
|
}
|
7076
|
-
},
|
7129
|
+
}, nd = { class: "w-full flex items-center gap-x-3" }, id = { class: "truncate" }, od = {
|
7077
7130
|
key: 0,
|
7078
7131
|
class: "text-sm text-oc-text-300"
|
7079
7132
|
}, gt = {
|
@@ -7111,14 +7164,14 @@ const tt = /* @__PURE__ */ ge(is, [["render", ss]]), rs = { class: "flex" }, ds
|
|
7111
7164
|
"is-partial": e.isPartial,
|
7112
7165
|
class: "!w-fit pointer-events-none"
|
7113
7166
|
}, null, 8, ["model-value", "is-partial"])) : u("", !0),
|
7114
|
-
n("div",
|
7167
|
+
n("div", nd, [
|
7115
7168
|
$(l.$slots, "trailing"),
|
7116
7169
|
n("div", {
|
7117
7170
|
class: v(["flex flex-col gap-3 overflow-hidden", { "flex-1": e.isCheckboxes }])
|
7118
7171
|
}, [
|
7119
|
-
n("span",
|
7172
|
+
n("span", id, w(e.label), 1),
|
7120
7173
|
$(l.$slots, "sub-label", {}, () => [
|
7121
|
-
e.subLabel ? (t(), i("span",
|
7174
|
+
e.subLabel ? (t(), i("span", od, w(e.subLabel), 1)) : u("", !0)
|
7122
7175
|
])
|
7123
7176
|
], 2),
|
7124
7177
|
$(l.$slots, "leading")
|
@@ -7138,21 +7191,21 @@ const tt = /* @__PURE__ */ ge(is, [["render", ss]]), rs = { class: "flex" }, ds
|
|
7138
7191
|
$(l.$slots, "after")
|
7139
7192
|
], 512));
|
7140
7193
|
}
|
7141
|
-
},
|
7194
|
+
}, sd = { class: "flex flex-col" }, rd = { class: "px-3 pt-3 pb-2 border-y border-white text-oc-text uppercase text-xs font-medium" }, Sf = {
|
7142
7195
|
__name: "OcGroupOptions",
|
7143
7196
|
props: {
|
7144
7197
|
label: String
|
7145
7198
|
},
|
7146
7199
|
setup(e) {
|
7147
|
-
return (r, a) => (t(), i("div",
|
7148
|
-
n("div",
|
7200
|
+
return (r, a) => (t(), i("div", sd, [
|
7201
|
+
n("div", rd, w(e.label), 1),
|
7149
7202
|
$(r.$slots, "default")
|
7150
7203
|
]));
|
7151
7204
|
}
|
7152
|
-
},
|
7205
|
+
}, dd = { class: "flex items-center text-oc-text-400 gap-x-2" }, cd = {
|
7153
7206
|
key: 0,
|
7154
7207
|
class: "flex flex-col gap-2 p-2 py-3"
|
7155
|
-
},
|
7208
|
+
}, ud = ["onClick"], md = {
|
7156
7209
|
__name: "OcLinkInput",
|
7157
7210
|
props: {
|
7158
7211
|
placeholder: String,
|
@@ -7203,7 +7256,7 @@ const tt = /* @__PURE__ */ ge(is, [["render", ss]]), rs = { class: "flex" }, ds
|
|
7203
7256
|
() => a.links.find((h) => h.value === d.value) ?? {}
|
7204
7257
|
), f = z(() => m.value.preFill ?? ""), x = M(a.modelValue ? a.modelValue.replace(f.value, "") : ""), g = (h) => {
|
7205
7258
|
var O;
|
7206
|
-
const B = (O = a.links.find((
|
7259
|
+
const B = (O = a.links.find((b) => b.value === h)) == null ? void 0 : O.preFill;
|
7207
7260
|
l("update:modelValue", a.modelValue.replace(f.value, B)), d.value = h, l("update:type", h), s.value = !1;
|
7208
7261
|
}, k = (h) => {
|
7209
7262
|
x.value = h, l("update:modelValue", f.value + h), !a.isEdit && d.value !== "link" && l("update:title", h);
|
@@ -7243,23 +7296,23 @@ const tt = /* @__PURE__ */ ge(is, [["render", ss]]), rs = { class: "flex" }, ds
|
|
7243
7296
|
distance: 10
|
7244
7297
|
}, {
|
7245
7298
|
menu: S(() => [
|
7246
|
-
e.isEdit ? u("", !0) : (t(), i("div",
|
7299
|
+
e.isEdit ? u("", !0) : (t(), i("div", cd, [
|
7247
7300
|
(t(!0), i(N, null, R(e.links, (O) => (t(), i("div", {
|
7248
7301
|
key: O.value,
|
7249
7302
|
class: "flex items-center px-3 py-2 rounded-sm cursor-pointer gap-x-3 text-oc-text-400 hover:bg-gray-50",
|
7250
|
-
onClick: (
|
7303
|
+
onClick: (b) => g(O.value)
|
7251
7304
|
}, [
|
7252
7305
|
p(o(T), {
|
7253
7306
|
width: "20",
|
7254
7307
|
height: "20",
|
7255
7308
|
name: O.icon
|
7256
7309
|
}, null, 8, ["name"]),
|
7257
|
-
W(" " +
|
7258
|
-
], 8,
|
7310
|
+
W(" " + w(O.label), 1)
|
7311
|
+
], 8, ud))), 128))
|
7259
7312
|
]))
|
7260
7313
|
]),
|
7261
7314
|
default: S(() => [
|
7262
|
-
n("div",
|
7315
|
+
n("div", dd, [
|
7263
7316
|
m.value.icon ? (t(), y(o(T), {
|
7264
7317
|
key: 0,
|
7265
7318
|
width: "20",
|
@@ -7281,7 +7334,7 @@ const tt = /* @__PURE__ */ ge(is, [["render", ss]]), rs = { class: "flex" }, ds
|
|
7281
7334
|
}, 8, ["placeholder", "label", "error-message", "is-inline-label", "disabled", "hint", "pre-fill", "model-value", "is-required", "label-icon", "tooltip-text", "tooltip-options"])
|
7282
7335
|
]));
|
7283
7336
|
}
|
7284
|
-
},
|
7337
|
+
}, fd = ["disabled", "value", "rows", "placeholder"], vd = "18px", gd = {
|
7285
7338
|
__name: "OcTextArea",
|
7286
7339
|
props: {
|
7287
7340
|
placeholder: String,
|
@@ -7315,7 +7368,7 @@ const tt = /* @__PURE__ */ ge(is, [["render", ss]]), rs = { class: "flex" }, ds
|
|
7315
7368
|
setup(e, { emit: r }) {
|
7316
7369
|
const a = r, l = M(!1), s = (d) => {
|
7317
7370
|
const c = d.target;
|
7318
|
-
c && (c.style.height =
|
7371
|
+
c && (c.style.height = vd, c.style.height = c.scrollHeight + "px", a("update:modelValue", c.value));
|
7319
7372
|
};
|
7320
7373
|
return (d, c) => (t(), y(o(he), {
|
7321
7374
|
label: e.label,
|
@@ -7339,7 +7392,7 @@ const tt = /* @__PURE__ */ ge(is, [["render", ss]]), rs = { class: "flex" }, ds
|
|
7339
7392
|
onInput: s,
|
7340
7393
|
onFocus: c[0] || (c[0] = (m) => l.value = !0),
|
7341
7394
|
onBlur: c[1] || (c[1] = (m) => l.value = !1)
|
7342
|
-
}, null, 42,
|
7395
|
+
}, null, 42, fd)
|
7343
7396
|
]),
|
7344
7397
|
_: 1
|
7345
7398
|
}, 8, ["label", "error-message", "hint", "is-required", "label-icon", "tooltip-text", "tooltip-options"]));
|
@@ -7362,8 +7415,8 @@ var Bt = { exports: {} };
|
|
7362
7415
|
};
|
7363
7416
|
});
|
7364
7417
|
})(Bt);
|
7365
|
-
var
|
7366
|
-
const Vt = /* @__PURE__ */ We(
|
7418
|
+
var pd = Bt.exports;
|
7419
|
+
const Vt = /* @__PURE__ */ We(pd);
|
7367
7420
|
var Ot = { exports: {} };
|
7368
7421
|
(function(e, r) {
|
7369
7422
|
(function(a, l) {
|
@@ -7376,8 +7429,8 @@ var Ot = { exports: {} };
|
|
7376
7429
|
};
|
7377
7430
|
});
|
7378
7431
|
})(Ot);
|
7379
|
-
var
|
7380
|
-
const It = /* @__PURE__ */ We(
|
7432
|
+
var yd = Ot.exports;
|
7433
|
+
const It = /* @__PURE__ */ We(yd);
|
7381
7434
|
var Tt = { exports: {} };
|
7382
7435
|
(function(e, r) {
|
7383
7436
|
(function(a, l) {
|
@@ -7390,8 +7443,8 @@ var Tt = { exports: {} };
|
|
7390
7443
|
};
|
7391
7444
|
});
|
7392
7445
|
})(Tt);
|
7393
|
-
var
|
7394
|
-
const Dt = /* @__PURE__ */ We(
|
7446
|
+
var xd = Tt.exports;
|
7447
|
+
const Dt = /* @__PURE__ */ We(xd);
|
7395
7448
|
var At = { exports: {} };
|
7396
7449
|
(function(e, r) {
|
7397
7450
|
(function(a, l) {
|
@@ -7406,16 +7459,16 @@ var At = { exports: {} };
|
|
7406
7459
|
}, k = [/[+-]\d\d:?(\d\d)?|Z/, function(h) {
|
7407
7460
|
(this.zone || (this.zone = {})).offset = function(B) {
|
7408
7461
|
if (!B || B === "Z") return 0;
|
7409
|
-
var O = B.match(/([+-]|\d\d)/g),
|
7410
|
-
return
|
7462
|
+
var O = B.match(/([+-]|\d\d)/g), b = 60 * O[1] + (+O[2] || 0);
|
7463
|
+
return b === 0 ? 0 : O[0] === "+" ? -b : b;
|
7411
7464
|
}(h);
|
7412
7465
|
}], A = function(h) {
|
7413
7466
|
var B = f[h];
|
7414
7467
|
return B && (B.indexOf ? B : B.s.concat(B.f));
|
7415
7468
|
}, j = function(h, B) {
|
7416
|
-
var O,
|
7417
|
-
if (
|
7418
|
-
for (var V = 1; V <= 24; V += 1) if (h.indexOf(
|
7469
|
+
var O, b = f.meridiem;
|
7470
|
+
if (b) {
|
7471
|
+
for (var V = 1; V <= 24; V += 1) if (h.indexOf(b(V, 0, B)) > -1) {
|
7419
7472
|
O = V > 12;
|
7420
7473
|
break;
|
7421
7474
|
}
|
@@ -7435,10 +7488,10 @@ var At = { exports: {} };
|
|
7435
7488
|
this.milliseconds = +h;
|
7436
7489
|
}], s: [c, g("seconds")], ss: [c, g("seconds")], m: [c, g("minutes")], mm: [c, g("minutes")], H: [c, g("hours")], h: [c, g("hours")], HH: [c, g("hours")], hh: [c, g("hours")], D: [c, g("day")], DD: [d, g("day")], Do: [m, function(h) {
|
7437
7490
|
var B = f.ordinal, O = h.match(/\d+/);
|
7438
|
-
if (this.day = O[0], B) for (var
|
7491
|
+
if (this.day = O[0], B) for (var b = 1; b <= 31; b += 1) B(b).replace(/\[|\]/g, "") === h && (this.day = b);
|
7439
7492
|
}], w: [c, g("week")], ww: [d, g("week")], M: [c, g("month")], MM: [d, g("month")], MMM: [m, function(h) {
|
7440
|
-
var B = A("months"), O = (A("monthsShort") || B.map(function(
|
7441
|
-
return
|
7493
|
+
var B = A("months"), O = (A("monthsShort") || B.map(function(b) {
|
7494
|
+
return b.slice(0, 3);
|
7442
7495
|
})).indexOf(h) + 1;
|
7443
7496
|
if (O < 1) throw new Error();
|
7444
7497
|
this.month = O % 12 || O;
|
@@ -7452,22 +7505,22 @@ var At = { exports: {} };
|
|
7452
7505
|
function C(h) {
|
7453
7506
|
var B, O;
|
7454
7507
|
B = h, O = f && f.formats;
|
7455
|
-
for (var
|
7508
|
+
for (var b = (h = B.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(H, G, _) {
|
7456
7509
|
var ee = _ && _.toUpperCase();
|
7457
|
-
return
|
7510
|
+
return G || O[_] || a[_] || O[ee].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(oe, ce, pe) {
|
7458
7511
|
return ce || pe.slice(1);
|
7459
7512
|
});
|
7460
|
-
})).match(l), V =
|
7461
|
-
var E =
|
7462
|
-
|
7513
|
+
})).match(l), V = b.length, L = 0; L < V; L += 1) {
|
7514
|
+
var E = b[L], P = I[E], D = P && P[0], U = P && P[1];
|
7515
|
+
b[L] = U ? { regex: D, parser: U } : E.replace(/^\[|\]$/g, "");
|
7463
7516
|
}
|
7464
7517
|
return function(H) {
|
7465
|
-
for (var
|
7466
|
-
var oe =
|
7518
|
+
for (var G = {}, _ = 0, ee = 0; _ < V; _ += 1) {
|
7519
|
+
var oe = b[_];
|
7467
7520
|
if (typeof oe == "string") ee += oe.length;
|
7468
7521
|
else {
|
7469
7522
|
var ce = oe.regex, pe = oe.parser, ke = H.slice(ee), $e = ce.exec(ke)[0];
|
7470
|
-
pe.call(
|
7523
|
+
pe.call(G, $e), H = H.replace($e, "");
|
7471
7524
|
}
|
7472
7525
|
}
|
7473
7526
|
return function(ye) {
|
@@ -7476,19 +7529,19 @@ var At = { exports: {} };
|
|
7476
7529
|
var re = ye.hours;
|
7477
7530
|
Se ? re < 12 && (ye.hours += 12) : re === 12 && (ye.hours = 0), delete ye.afternoon;
|
7478
7531
|
}
|
7479
|
-
}(
|
7532
|
+
}(G), G;
|
7480
7533
|
};
|
7481
7534
|
}
|
7482
7535
|
return function(h, B, O) {
|
7483
7536
|
O.p.customParseFormat = !0, h && h.parseTwoDigitYear && (x = h.parseTwoDigitYear);
|
7484
|
-
var
|
7485
|
-
|
7537
|
+
var b = B.prototype, V = b.parse;
|
7538
|
+
b.parse = function(L) {
|
7486
7539
|
var E = L.date, P = L.utc, D = L.args;
|
7487
7540
|
this.$u = P;
|
7488
7541
|
var U = D[1];
|
7489
7542
|
if (typeof U == "string") {
|
7490
|
-
var H = D[2] === !0,
|
7491
|
-
|
7543
|
+
var H = D[2] === !0, G = D[3] === !0, _ = H || G, ee = D[2];
|
7544
|
+
G && (ee = D[2]), f = this.$locale(), !H && ee && (f = O.Ls[ee]), this.$d = function(ke, $e, ye, Se) {
|
7492
7545
|
try {
|
7493
7546
|
if (["x", "X"].indexOf($e) > -1) return new Date(($e === "X" ? 1e3 : 1) * ke);
|
7494
7547
|
var re = C($e)(ke), Be = re.year, Ce = re.month, Q = re.day, Ve = re.hours, q = re.minutes, J = re.seconds, Y = re.milliseconds, ve = re.zone, Me = re.week, Ke = /* @__PURE__ */ new Date(), Ge = Q || (Be || Ce ? 1 : Ke.getDate()), Xe = Be || Ke.getFullYear(), Ne = 0;
|
@@ -7513,53 +7566,53 @@ var At = { exports: {} };
|
|
7513
7566
|
};
|
7514
7567
|
});
|
7515
7568
|
})(At);
|
7516
|
-
var
|
7517
|
-
const it = /* @__PURE__ */ We(
|
7518
|
-
var
|
7519
|
-
function
|
7520
|
-
var r =
|
7569
|
+
var hd = At.exports;
|
7570
|
+
const it = /* @__PURE__ */ We(hd);
|
7571
|
+
var bd = typeof global == "object" && global && global.Object === Object && global, wd = typeof self == "object" && self && self.Object === Object && self, jt = bd || wd || Function("return this")(), qe = jt.Symbol, Mt = Object.prototype, kd = Mt.hasOwnProperty, $d = Mt.toString, Le = qe ? qe.toStringTag : void 0;
|
7572
|
+
function Sd(e) {
|
7573
|
+
var r = kd.call(e, Le), a = e[Le];
|
7521
7574
|
try {
|
7522
7575
|
e[Le] = void 0;
|
7523
7576
|
var l = !0;
|
7524
7577
|
} catch {
|
7525
7578
|
}
|
7526
|
-
var s =
|
7579
|
+
var s = $d.call(e);
|
7527
7580
|
return l && (r ? e[Le] = a : delete e[Le]), s;
|
7528
7581
|
}
|
7529
|
-
var
|
7530
|
-
function Sd(e) {
|
7531
|
-
return $d.call(e);
|
7532
|
-
}
|
7533
|
-
var Cd = "[object Null]", Bd = "[object Undefined]", pt = qe ? qe.toStringTag : void 0;
|
7582
|
+
var Cd = Object.prototype, Bd = Cd.toString;
|
7534
7583
|
function Vd(e) {
|
7535
|
-
return
|
7584
|
+
return Bd.call(e);
|
7585
|
+
}
|
7586
|
+
var Od = "[object Null]", Id = "[object Undefined]", pt = qe ? qe.toStringTag : void 0;
|
7587
|
+
function Td(e) {
|
7588
|
+
return e == null ? e === void 0 ? Id : Od : pt && pt in Object(e) ? Sd(e) : Vd(e);
|
7536
7589
|
}
|
7537
|
-
function
|
7590
|
+
function Dd(e) {
|
7538
7591
|
return e != null && typeof e == "object";
|
7539
7592
|
}
|
7540
|
-
var
|
7541
|
-
function
|
7542
|
-
return typeof e == "symbol" ||
|
7593
|
+
var Ad = "[object Symbol]";
|
7594
|
+
function jd(e) {
|
7595
|
+
return typeof e == "symbol" || Dd(e) && Td(e) == Ad;
|
7543
7596
|
}
|
7544
|
-
var
|
7545
|
-
function
|
7546
|
-
for (var r = e.length; r-- &&
|
7597
|
+
var Md = /\s/;
|
7598
|
+
function Ld(e) {
|
7599
|
+
for (var r = e.length; r-- && Md.test(e.charAt(r)); )
|
7547
7600
|
;
|
7548
7601
|
return r;
|
7549
7602
|
}
|
7550
|
-
var
|
7551
|
-
function
|
7552
|
-
return e && e.slice(0,
|
7603
|
+
var Pd = /^\s+/;
|
7604
|
+
function Ed(e) {
|
7605
|
+
return e && e.slice(0, Ld(e) + 1).replace(Pd, "");
|
7553
7606
|
}
|
7554
7607
|
function lt(e) {
|
7555
7608
|
var r = typeof e;
|
7556
7609
|
return e != null && (r == "object" || r == "function");
|
7557
7610
|
}
|
7558
|
-
var yt = NaN,
|
7611
|
+
var yt = NaN, Nd = /^[-+]0x[0-9a-f]+$/i, zd = /^0b[01]+$/i, Rd = /^0o[0-7]+$/i, Fd = parseInt;
|
7559
7612
|
function xt(e) {
|
7560
7613
|
if (typeof e == "number")
|
7561
7614
|
return e;
|
7562
|
-
if (
|
7615
|
+
if (jd(e))
|
7563
7616
|
return yt;
|
7564
7617
|
if (lt(e)) {
|
7565
7618
|
var r = typeof e.valueOf == "function" ? e.valueOf() : e;
|
@@ -7567,18 +7620,18 @@ function xt(e) {
|
|
7567
7620
|
}
|
7568
7621
|
if (typeof e != "string")
|
7569
7622
|
return e === 0 ? e : +e;
|
7570
|
-
e =
|
7571
|
-
var a =
|
7572
|
-
return a ||
|
7623
|
+
e = Ed(e);
|
7624
|
+
var a = zd.test(e);
|
7625
|
+
return a || Rd.test(e) ? Fd(e.slice(2), a ? 2 : 8) : Nd.test(e) ? yt : +e;
|
7573
7626
|
}
|
7574
7627
|
var et = function() {
|
7575
7628
|
return jt.Date.now();
|
7576
|
-
},
|
7577
|
-
function
|
7629
|
+
}, Ud = "Expected a function", qd = Math.max, Hd = Math.min;
|
7630
|
+
function Yd(e, r, a) {
|
7578
7631
|
var l, s, d, c, m, f, x = 0, g = !1, k = !1, A = !0;
|
7579
7632
|
if (typeof e != "function")
|
7580
|
-
throw new TypeError(
|
7581
|
-
r = xt(r) || 0, lt(a) && (g = !!a.leading, k = "maxWait" in a, d = k ?
|
7633
|
+
throw new TypeError(Ud);
|
7634
|
+
r = xt(r) || 0, lt(a) && (g = !!a.leading, k = "maxWait" in a, d = k ? qd(xt(a.maxWait) || 0, r) : d, A = "trailing" in a ? !!a.trailing : A);
|
7582
7635
|
function j(E) {
|
7583
7636
|
var P = l, D = s;
|
7584
7637
|
return l = s = void 0, x = E, c = e.apply(D, P), c;
|
@@ -7588,7 +7641,7 @@ function Ud(e, r, a) {
|
|
7588
7641
|
}
|
7589
7642
|
function C(E) {
|
7590
7643
|
var P = E - f, D = E - x, U = r - P;
|
7591
|
-
return k ?
|
7644
|
+
return k ? Hd(U, d - D) : U;
|
7592
7645
|
}
|
7593
7646
|
function h(E) {
|
7594
7647
|
var P = E - f, D = E - x;
|
@@ -7603,7 +7656,7 @@ function Ud(e, r, a) {
|
|
7603
7656
|
function O(E) {
|
7604
7657
|
return m = void 0, A && l ? j(E) : (l = s = void 0, c);
|
7605
7658
|
}
|
7606
|
-
function
|
7659
|
+
function b() {
|
7607
7660
|
m !== void 0 && clearTimeout(m), x = 0, l = f = s = m = void 0;
|
7608
7661
|
}
|
7609
7662
|
function V() {
|
@@ -7619,15 +7672,15 @@ function Ud(e, r, a) {
|
|
7619
7672
|
}
|
7620
7673
|
return m === void 0 && (m = setTimeout(B, r)), c;
|
7621
7674
|
}
|
7622
|
-
return L.cancel =
|
7675
|
+
return L.cancel = b, L.flush = V, L;
|
7623
7676
|
}
|
7624
|
-
const
|
7677
|
+
const Wd = { class: "flex items-center justify-between" }, Kd = { class: "flex flex-col gap-2 p-3" }, Gd = { class: "flex justify-between items-center" }, Xd = { key: 0 }, Jd = { key: 1 }, Zd = {
|
7625
7678
|
key: 0,
|
7626
7679
|
class: "grid grid-cols-3 gap-3"
|
7627
|
-
},
|
7680
|
+
}, Qd = ["onClick"], _d = {
|
7628
7681
|
key: 1,
|
7629
7682
|
class: "grid grid-cols-3 gap-3"
|
7630
|
-
},
|
7683
|
+
}, ec = ["onClick"], tc = ["onClick", "onMouseover"], lc = { key: 0 }, ac = { class: "flex gap-x-3 justify-end" }, nc = {
|
7631
7684
|
__name: "OcCalendar",
|
7632
7685
|
props: {
|
7633
7686
|
type: {
|
@@ -7649,7 +7702,7 @@ const qd = { class: "flex items-center justify-between" }, Hd = { class: "flex f
|
|
7649
7702
|
modelValue: {
|
7650
7703
|
type: [String, Date, Number, Array],
|
7651
7704
|
default: null,
|
7652
|
-
validator: (e) => Array.isArray(e) ?
|
7705
|
+
validator: (e) => Array.isArray(e) ? X(e[0]).isSameOrBefore(X(e[1])) : !0
|
7653
7706
|
},
|
7654
7707
|
disabledDate: {
|
7655
7708
|
type: Function,
|
@@ -7666,11 +7719,11 @@ const qd = { class: "flex items-center justify-between" }, Hd = { class: "flex f
|
|
7666
7719
|
},
|
7667
7720
|
emits: ["update:modelValue", "reset-calendar", "update:isIndefinite"],
|
7668
7721
|
setup(e, { emit: r }) {
|
7669
|
-
|
7722
|
+
X.extend(Vt), X.extend(It), X.extend(Dt), X.extend(it);
|
7670
7723
|
const a = e, l = r, s = M(), d = M(), c = M(), m = M(), f = M(), x = M(), g = M(), k = M(!1), A = M(!1), j = M(!1), I = M(!1), C = z(() => a.type === "range"), h = z(() => {
|
7671
7724
|
const J = s.value.endOf("month").date();
|
7672
7725
|
return Array.from({ length: J }, (Y, ve) => ve + 1);
|
7673
|
-
}), B = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], O = z(() => s.value.format("MMMM YYYY")),
|
7726
|
+
}), B = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], O = z(() => s.value.format("MMMM YYYY")), b = z(
|
7674
7727
|
() => j.value ? x.value.format("YYYY") : s.value.format("YYYY")
|
7675
7728
|
), V = z(() => s.value.format("MMM")), L = z(() => {
|
7676
7729
|
const q = d.value, J = c.value ?? g.value, Y = [q, J];
|
@@ -7692,7 +7745,7 @@ const qd = { class: "flex items-center justify-between" }, Hd = { class: "flex f
|
|
7692
7745
|
}
|
7693
7746
|
), H = () => {
|
7694
7747
|
g.value = null, s.value = s.value.subtract(1, "month"), d.value && (m.value = D.value ? d.value.date() : null, f.value = U.value ? c.value.date() : null);
|
7695
|
-
},
|
7748
|
+
}, G = () => {
|
7696
7749
|
g.value = null, s.value = s.value.add(1, "month"), m.value = D.value ? d.value.date() : null, f.value = U.value ? c.value.date() : null;
|
7697
7750
|
}, _ = (q) => {
|
7698
7751
|
g.value = null, s.value = s.value.set("month", q), I.value = !1;
|
@@ -7714,7 +7767,7 @@ const qd = { class: "flex items-center justify-between" }, Hd = { class: "flex f
|
|
7714
7767
|
"[]"
|
7715
7768
|
) : !1 : m.value && f.value && m.value <= q && f.value >= q, ye = (q) => {
|
7716
7769
|
const J = s.value.date(q);
|
7717
|
-
return a.disabledDate(J.toDate()) || a.minDate && J.isBefore(
|
7770
|
+
return a.disabledDate(J.toDate()) || a.minDate && J.isBefore(X(a.minDate), "day") || a.maxDate && J.isAfter(X(a.maxDate), "day");
|
7718
7771
|
}, Se = () => {
|
7719
7772
|
C.value && (ye(d.value.toDate()) || ye(c.value.toDate())) || (A.value = !1, l(
|
7720
7773
|
"update:modelValue",
|
@@ -7724,7 +7777,7 @@ const qd = { class: "flex items-center justify-between" }, Hd = { class: "flex f
|
|
7724
7777
|
l("update:isIndefinite", q);
|
7725
7778
|
}, Be = (q, J = !0) => {
|
7726
7779
|
if (!C.value) {
|
7727
|
-
let ve =
|
7780
|
+
let ve = X(O.value, "MMMM YYYY").date(q);
|
7728
7781
|
m.value = q, d.value = ve, f.value = null, c.value = null, Se();
|
7729
7782
|
return;
|
7730
7783
|
}
|
@@ -7734,12 +7787,12 @@ const qd = { class: "flex items-center justify-between" }, Hd = { class: "flex f
|
|
7734
7787
|
return;
|
7735
7788
|
}
|
7736
7789
|
c.value = Y, f.value = q, J && Se();
|
7737
|
-
}, Ce =
|
7790
|
+
}, Ce = Yd((q) => {
|
7738
7791
|
A.value && Be(q, !1);
|
7739
7792
|
}, 50), Q = () => {
|
7740
7793
|
var J, Y, ve;
|
7741
7794
|
const q = C.value ? (J = a.modelValue) == null ? void 0 : J[0] : a.modelValue;
|
7742
|
-
s.value =
|
7795
|
+
s.value = X(q), x.value = X(q), d.value = q && s.value, m.value = q && d.value.date(), !(!C.value || !q) && (c.value = X((Y = a.modelValue) == null ? void 0 : Y[1]), f.value = ((ve = c.value) == null ? void 0 : ve.month()) === s.value.month() ? c.value.date() : void 0);
|
7743
7796
|
}, Ve = (q) => {
|
7744
7797
|
const J = q + 11, Y = [];
|
7745
7798
|
for (; q <= J; )
|
@@ -7749,7 +7802,7 @@ const qd = { class: "flex items-center justify-between" }, Hd = { class: "flex f
|
|
7749
7802
|
return Q(), (q, J) => (t(), i("div", {
|
7750
7803
|
class: v(["p-6 w-fit rounded flex flex-col gap-y-7", e.position === "floating" ? "shadow-normal bg-white" : ""])
|
7751
7804
|
}, [
|
7752
|
-
n("div",
|
7805
|
+
n("div", Wd, [
|
7753
7806
|
p(o(se), {
|
7754
7807
|
modelValue: I.value,
|
7755
7808
|
"onUpdate:modelValue": J[1] || (J[1] = (Y) => I.value = Y),
|
@@ -7760,9 +7813,9 @@ const qd = { class: "flex items-center justify-between" }, Hd = { class: "flex f
|
|
7760
7813
|
"popper-options": { strategy: "fixed" }
|
7761
7814
|
}, {
|
7762
7815
|
menu: S(() => [
|
7763
|
-
n("div",
|
7764
|
-
n("div",
|
7765
|
-
p(o(
|
7816
|
+
n("div", Kd, [
|
7817
|
+
n("div", Gd, [
|
7818
|
+
p(o(K), {
|
7766
7819
|
"left-icon": "chevron-left",
|
7767
7820
|
"is-transparent": "",
|
7768
7821
|
onClick: oe
|
@@ -7771,30 +7824,30 @@ const qd = { class: "flex items-center justify-between" }, Hd = { class: "flex f
|
|
7771
7824
|
class: "cursor-pointer hover:opacity-50 transition",
|
7772
7825
|
onClick: J[0] || (J[0] = (Y) => j.value = !j.value)
|
7773
7826
|
}, [
|
7774
|
-
j.value ? (t(), i("div",
|
7827
|
+
j.value ? (t(), i("div", Xd, w(b.value - 11) + " - " + w(b.value), 1)) : (t(), i("div", Jd, w(b.value), 1))
|
7775
7828
|
]),
|
7776
|
-
p(o(
|
7829
|
+
p(o(K), {
|
7777
7830
|
"left-icon": "chevron-right",
|
7778
7831
|
"is-transparent": "",
|
7779
7832
|
onClick: ce
|
7780
7833
|
})
|
7781
7834
|
]),
|
7782
|
-
j.value ? (t(), i("div",
|
7783
|
-
(t(!0), i(N, null, R(Ve(
|
7835
|
+
j.value ? (t(), i("div", Zd, [
|
7836
|
+
(t(!0), i(N, null, R(Ve(b.value - 11), (Y) => (t(), i("div", {
|
7784
7837
|
key: Y,
|
7785
7838
|
class: v(["px-4 py-2 hover:border-oc-gray-200 border-2 border-transparent transition text-center rounded cursor-pointer", {
|
7786
7839
|
"!border-oc-primary bg-oc-primary text-white": s.value.year() === Y
|
7787
7840
|
}]),
|
7788
7841
|
onClick: (ve) => ee(Y)
|
7789
|
-
},
|
7790
|
-
])) : (t(), i("div",
|
7842
|
+
}, w(Y), 11, Qd))), 128))
|
7843
|
+
])) : (t(), i("div", _d, [
|
7791
7844
|
(t(), i(N, null, R(B, (Y, ve) => n("div", {
|
7792
7845
|
key: Y,
|
7793
7846
|
class: v(["px-4 py-2 hover:border-oc-gray-200 border-2 border-transparent transition text-center rounded cursor-pointer", {
|
7794
7847
|
"!border-oc-primary bg-oc-primary text-white": V.value === Y
|
7795
7848
|
}]),
|
7796
7849
|
onClick: (Me) => _(ve)
|
7797
|
-
},
|
7850
|
+
}, w(Y), 11, ec)), 64))
|
7798
7851
|
]))
|
7799
7852
|
])
|
7800
7853
|
]),
|
@@ -7802,7 +7855,7 @@ const qd = { class: "flex items-center justify-between" }, Hd = { class: "flex f
|
|
7802
7855
|
n("span", {
|
7803
7856
|
class: v([[k.value ? "pointer-events-none opacity-[.35]" : ""], "cursor-pointer hover:opacity-50 transition"]),
|
7804
7857
|
onClick: fe(pe, ["stop"])
|
7805
|
-
},
|
7858
|
+
}, w(O.value), 3)
|
7806
7859
|
]),
|
7807
7860
|
_: 1
|
7808
7861
|
}, 8, ["modelValue"]),
|
@@ -7817,7 +7870,7 @@ const qd = { class: "flex items-center justify-between" }, Hd = { class: "flex f
|
|
7817
7870
|
p(o(T), {
|
7818
7871
|
name: "chevron-down",
|
7819
7872
|
class: "-rotate-90 cursor-pointer",
|
7820
|
-
onClick:
|
7873
|
+
onClick: G
|
7821
7874
|
})
|
7822
7875
|
], 2)
|
7823
7876
|
]),
|
@@ -7843,11 +7896,11 @@ const qd = { class: "flex items-center justify-between" }, Hd = { class: "flex f
|
|
7843
7896
|
]]),
|
7844
7897
|
onClick: (Me) => Be(Y),
|
7845
7898
|
onMouseover: (Me) => o(Ce)(Y)
|
7846
|
-
},
|
7899
|
+
}, w(Y), 43, tc);
|
7847
7900
|
}), 128))
|
7848
7901
|
], 32),
|
7849
7902
|
$(q.$slots, "bottom", {}, () => [
|
7850
|
-
e.isIndefinite ? (t(), i("span",
|
7903
|
+
e.isIndefinite ? (t(), i("span", lc, [
|
7851
7904
|
p(o(Te), {
|
7852
7905
|
modelValue: k.value,
|
7853
7906
|
"onUpdate:modelValue": [
|
@@ -7858,8 +7911,8 @@ const qd = { class: "flex items-center justify-between" }, Hd = { class: "flex f
|
|
7858
7911
|
}, null, 8, ["modelValue", "label"])
|
7859
7912
|
])) : u("", !0)
|
7860
7913
|
]),
|
7861
|
-
n("div",
|
7862
|
-
p(o(
|
7914
|
+
n("div", ac, [
|
7915
|
+
p(o(K), {
|
7863
7916
|
label: "Reset",
|
7864
7917
|
class: "w-[72px]",
|
7865
7918
|
"is-disabled": k.value,
|
@@ -7869,17 +7922,17 @@ const qd = { class: "flex items-center justify-between" }, Hd = { class: "flex f
|
|
7869
7922
|
], 2));
|
7870
7923
|
}
|
7871
7924
|
};
|
7872
|
-
|
7873
|
-
|
7874
|
-
|
7875
|
-
|
7876
|
-
const
|
7925
|
+
X.extend(Vt);
|
7926
|
+
X.extend(It);
|
7927
|
+
X.extend(Dt);
|
7928
|
+
X.extend(it);
|
7929
|
+
const ic = { class: "flex flex-col gap-y-2 w-full" }, oc = {
|
7877
7930
|
key: 0,
|
7878
7931
|
class: "flex w-full"
|
7879
|
-
},
|
7932
|
+
}, sc = {
|
7880
7933
|
key: 1,
|
7881
7934
|
class: "flex flex-wrap cursor-pointer"
|
7882
|
-
},
|
7935
|
+
}, rc = { class: "flex items-center gap-x-3" }, dc = ["value"], cc = { class: "flex items-center gap-x-3" }, uc = ["value"], mc = {
|
7883
7936
|
__name: "DatePicker",
|
7884
7937
|
props: {
|
7885
7938
|
modelValue: {
|
@@ -7968,37 +8021,37 @@ const lc = { class: "flex flex-col gap-y-2 w-full" }, ac = {
|
|
7968
8021
|
},
|
7969
8022
|
emits: ["update:modelValue", "resetCalendar", "error"],
|
7970
8023
|
setup(e, { emit: r }) {
|
7971
|
-
|
8024
|
+
X.extend(it);
|
7972
8025
|
const a = r, l = e, s = M(!1), d = M(!1), c = M(!1), m = M([]), f = z(() => l.type === "range"), x = z(() => f.value ? l.modelValue && l.modelValue[0] ? [
|
7973
|
-
|
7974
|
-
|
7975
|
-
] : ["", ""] : l.modelValue ?
|
8026
|
+
X(l.modelValue[0], l.dateFormat),
|
8027
|
+
X(l.modelValue[1], l.dateFormat)
|
8028
|
+
] : ["", ""] : l.modelValue ? X(l.modelValue, l.dateFormat) : ""), g = (h) => {
|
7976
8029
|
l.type === "range" ? a(
|
7977
8030
|
"update:modelValue",
|
7978
8031
|
h ? [
|
7979
|
-
|
7980
|
-
|
8032
|
+
X(h.start).format(l.dateFormat),
|
8033
|
+
X(h.end).format(l.dateFormat)
|
7981
8034
|
] : []
|
7982
|
-
) : a("update:modelValue",
|
8035
|
+
) : a("update:modelValue", X(h).format(l.dateFormat)), s.value = !1;
|
7983
8036
|
}, k = () => {
|
7984
8037
|
a("resetCalendar"), a("update:modelValue", f.value ? [] : null), s.value = !1;
|
7985
8038
|
}, A = (h) => {
|
7986
|
-
const B =
|
7987
|
-
return ((
|
8039
|
+
const B = X(h);
|
8040
|
+
return ((b) => b.get("month") === X().get("month"))(B);
|
7988
8041
|
}, j = (h) => {
|
7989
8042
|
d.value = h, a("update:modelValue", h ? "Indefinite" : null);
|
7990
8043
|
}, I = (h, B) => {
|
7991
|
-
var
|
7992
|
-
const O =
|
7993
|
-
m.value[B] = O.format(l.dateFormat), m.value[B ? 0 : 1] = ((
|
8044
|
+
var b;
|
8045
|
+
const O = X(h, l.dateFormat, !0);
|
8046
|
+
m.value[B] = O.format(l.dateFormat), m.value[B ? 0 : 1] = ((b = l.modelValue) == null ? void 0 : b[B ? 0 : 1]) || X().format(l.dateFormat);
|
7994
8047
|
}, C = () => {
|
7995
8048
|
if (m.value.length) {
|
7996
|
-
if (c.value = !1, m.value.some((h) => !
|
8049
|
+
if (c.value = !1, m.value.some((h) => !X(h, l.dateFormat).isValid())) {
|
7997
8050
|
c.value = !0, m.value = [];
|
7998
8051
|
return;
|
7999
8052
|
}
|
8000
8053
|
l.maxDate && (m.value = m.value.map(
|
8001
|
-
(h) =>
|
8054
|
+
(h) => X(h, l.dateFormat).isSameOrBefore(X(l.maxDate)) ? h : X(l.maxDate).format(l.dateFormat)
|
8002
8055
|
)), a("update:modelValue", m.value), m.value = [];
|
8003
8056
|
}
|
8004
8057
|
};
|
@@ -8016,12 +8069,12 @@ const lc = { class: "flex flex-col gap-y-2 w-full" }, ac = {
|
|
8016
8069
|
updateCalendar: g,
|
8017
8070
|
resetCalendar: k
|
8018
8071
|
}, () => {
|
8019
|
-
var
|
8072
|
+
var b, V;
|
8020
8073
|
return [
|
8021
|
-
f.value ? (t(), y(o(
|
8074
|
+
f.value ? (t(), y(o(vm), {
|
8022
8075
|
key: 0,
|
8023
8076
|
"model-value": {
|
8024
|
-
start: (
|
8077
|
+
start: (b = e.modelValue) == null ? void 0 : b[0],
|
8025
8078
|
end: (V = e.modelValue) == null ? void 0 : V[1]
|
8026
8079
|
},
|
8027
8080
|
shortcuts: e.shortcuts,
|
@@ -8032,7 +8085,7 @@ const lc = { class: "flex flex-col gap-y-2 w-full" }, ac = {
|
|
8032
8085
|
"max-date": e.maxDate,
|
8033
8086
|
masks: { modelValue: e.dateFormat },
|
8034
8087
|
"onUpdate:modelValue": g
|
8035
|
-
}, null, 8, ["model-value", "shortcuts", "count-calendars", "min-date", "max-date", "masks"])) : !e.disabled && O ? (t(), y(o(
|
8088
|
+
}, null, 8, ["model-value", "shortcuts", "count-calendars", "min-date", "max-date", "masks"])) : !e.disabled && O ? (t(), y(o(nc), {
|
8036
8089
|
key: 1,
|
8037
8090
|
"model-value": x.value ? x.value.toDate() : /* @__PURE__ */ new Date(),
|
8038
8091
|
"disabled-date": d.value ? A : e.disabledDate,
|
@@ -8049,8 +8102,8 @@ const lc = { class: "flex flex-col gap-y-2 w-full" }, ac = {
|
|
8049
8102
|
})
|
8050
8103
|
]),
|
8051
8104
|
default: S(() => [
|
8052
|
-
n("div",
|
8053
|
-
!e.isSplitInput || !f.value ? (t(), i("div",
|
8105
|
+
n("div", ic, [
|
8106
|
+
!e.isSplitInput || !f.value ? (t(), i("div", oc, [
|
8054
8107
|
p(o(xe), {
|
8055
8108
|
"model-value": f.value ? e.modelValue && e.modelValue[0] ? `${x.value[0].format(e.dateFormat)} - ${x.value[1].format(e.dateFormat)}` : "" : e.modelValue === "Indefinite" ? "Indefinite" : e.modelValue ? x.value.format(e.dateFormat) : "",
|
8056
8109
|
icon: "calendar",
|
@@ -8061,7 +8114,7 @@ const lc = { class: "flex flex-col gap-y-2 w-full" }, ac = {
|
|
8061
8114
|
disabled: e.disabled,
|
8062
8115
|
placeholder: e.placeholder
|
8063
8116
|
}, null, 8, ["model-value", "label", "hint", "error-message", "is-required", "disabled", "placeholder"])
|
8064
|
-
])) : (t(), i("div",
|
8117
|
+
])) : (t(), i("div", sc, [
|
8065
8118
|
p(o(he), {
|
8066
8119
|
"error-message": c.value ? `Invalid Date. Try this format (${e.dateFormat})` : e.errorMessage,
|
8067
8120
|
hint: e.hint,
|
@@ -8079,7 +8132,7 @@ const lc = { class: "flex flex-col gap-y-2 w-full" }, ac = {
|
|
8079
8132
|
]]),
|
8080
8133
|
onClick: B[2] || (B[2] = (O) => s.value ? O.stopPropagation : null)
|
8081
8134
|
}, [
|
8082
|
-
n("div",
|
8135
|
+
n("div", rc, [
|
8083
8136
|
p(o(T), {
|
8084
8137
|
name: "calendar",
|
8085
8138
|
class: "text-oc-text-400"
|
@@ -8091,10 +8144,10 @@ const lc = { class: "flex flex-col gap-y-2 w-full" }, ac = {
|
|
8091
8144
|
onInput: B[0] || (B[0] = (O) => I(O.target.value, 0)),
|
8092
8145
|
onKeydown: Fe(C, ["enter"]),
|
8093
8146
|
onBlur: C
|
8094
|
-
}, null, 40,
|
8147
|
+
}, null, 40, dc)
|
8095
8148
|
]),
|
8096
8149
|
B[4] || (B[4] = n("span", { class: "text-oc-text-400" }, "To", -1)),
|
8097
|
-
n("div",
|
8150
|
+
n("div", cc, [
|
8098
8151
|
n("input", {
|
8099
8152
|
placeholder: "End date",
|
8100
8153
|
value: x.value[1] ? x.value[1].format(e.dateFormat) : "",
|
@@ -8102,7 +8155,7 @@ const lc = { class: "flex flex-col gap-y-2 w-full" }, ac = {
|
|
8102
8155
|
onInput: B[1] || (B[1] = (O) => I(O.target.value, 1)),
|
8103
8156
|
onKeydown: Fe(C, ["enter"]),
|
8104
8157
|
onBlur: C
|
8105
|
-
}, null, 40,
|
8158
|
+
}, null, 40, uc),
|
8106
8159
|
p(o(T), {
|
8107
8160
|
class: v([x.value.every(Boolean) ? "opacity-100" : "opacity-0", "text-oc-text-400"]),
|
8108
8161
|
width: "16",
|
@@ -8121,10 +8174,10 @@ const lc = { class: "flex flex-col gap-y-2 w-full" }, ac = {
|
|
8121
8174
|
_: 3
|
8122
8175
|
}, 8, ["modelValue", "is-disabled", "placement"]));
|
8123
8176
|
}
|
8124
|
-
},
|
8177
|
+
}, fc = { class: "flex flex-wrap w-full" }, vc = {
|
8125
8178
|
key: 0,
|
8126
8179
|
class: "flex items-center w-full mb-2 text-sm font-medium gap-x-3 text-oc-text-400"
|
8127
|
-
},
|
8180
|
+
}, gc = { class: "flex items-center gap-x-1" }, pc = ["min", "max", "value"], yc = ["min", "max", "value"], xc = { class: "absolute bottom-0 left-0" }, hc = { class: "absolute bottom-0 right-0" }, bc = { class: "w-[15%] -mt-4 px-2" }, wc = {
|
8128
8181
|
__name: "OcSlider",
|
8129
8182
|
props: {
|
8130
8183
|
maxLimit: {
|
@@ -8164,10 +8217,10 @@ const lc = { class: "flex flex-col gap-y-2 w-full" }, ac = {
|
|
8164
8217
|
var C, h, B;
|
8165
8218
|
parseInt((C = c.value) == null ? void 0 : C.value) - parseInt((h = d.value) == null ? void 0 : h.value) <= l.minGap && (c.value.value = parseInt((B = d.value) == null ? void 0 : B.value) + l.minGap), A();
|
8166
8219
|
}, A = (C = !1) => {
|
8167
|
-
var h, B, O,
|
8220
|
+
var h, B, O, b;
|
8168
8221
|
f.value = (((h = d.value) == null ? void 0 : h.value) - l.minLimit) / (l.maxLimit - l.minLimit) * 100, x.value = l.type === "range" ? (((B = c.value) == null ? void 0 : B.value) - l.minLimit) / (l.maxLimit - l.minLimit) * 100 : 0, m.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) ${x.value}%, var(--oc-gray-100) ${x.value}%)` : `linear-gradient(to right, var(--oc-primary-500) ${f.value}%, var(--oc-gray-100) ${f.value}%)`, C || s(
|
8169
8222
|
"update:modelValue",
|
8170
|
-
l.type === "range" ? [(O = d.value) == null ? void 0 : O.value, (
|
8223
|
+
l.type === "range" ? [(O = d.value) == null ? void 0 : O.value, (b = c.value) == null ? void 0 : b.value] : d.value.value
|
8171
8224
|
);
|
8172
8225
|
}, j = (C) => {
|
8173
8226
|
C.key >= "0" && C.key <= "9" || C.key === "Backspace" || C.preventDefault();
|
@@ -8177,10 +8230,10 @@ const lc = { class: "flex flex-col gap-y-2 w-full" }, ac = {
|
|
8177
8230
|
return r({
|
8178
8231
|
updateSlider: I
|
8179
8232
|
}), we(() => I()), (C, h) => {
|
8180
|
-
var B, O,
|
8181
|
-
return t(), i("div",
|
8182
|
-
e.label ? (t(), i("label",
|
8183
|
-
n("span",
|
8233
|
+
var B, O, b, V;
|
8234
|
+
return t(), i("div", fc, [
|
8235
|
+
e.label ? (t(), i("label", vc, [
|
8236
|
+
n("span", gc, w(e.label), 1)
|
8184
8237
|
])) : u("", !0),
|
8185
8238
|
n("div", {
|
8186
8239
|
class: v(["relative h-[33px] flex items-center", {
|
@@ -8201,7 +8254,7 @@ const lc = { class: "flex flex-col gap-y-2 w-full" }, ac = {
|
|
8201
8254
|
max: e.maxLimit,
|
8202
8255
|
value: e.type === "range" ? (B = e.modelValue) == null ? void 0 : B[0] : e.modelValue,
|
8203
8256
|
onInput: g
|
8204
|
-
}, null, 40,
|
8257
|
+
}, null, 40, pc),
|
8205
8258
|
e.type === "range" ? (t(), i("input", {
|
8206
8259
|
key: 0,
|
8207
8260
|
ref_key: "sliderTwo",
|
@@ -8211,29 +8264,29 @@ const lc = { class: "flex flex-col gap-y-2 w-full" }, ac = {
|
|
8211
8264
|
max: e.maxLimit,
|
8212
8265
|
value: (O = e.modelValue) == null ? void 0 : O[1],
|
8213
8266
|
onInput: k
|
8214
|
-
}, null, 40,
|
8267
|
+
}, null, 40, yc)) : u("", !0),
|
8215
8268
|
e.variant === "default" ? (t(), i("div", {
|
8216
8269
|
key: 1,
|
8217
8270
|
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]",
|
8218
8271
|
style: ie(`left: ${f.value}%`)
|
8219
|
-
},
|
8272
|
+
}, w(e.type === "range" ? (b = e.modelValue) == null ? void 0 : b[0] : e.modelValue), 5)) : u("", !0),
|
8220
8273
|
e.type === "range" ? (t(), i("div", {
|
8221
8274
|
key: 2,
|
8222
8275
|
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]",
|
8223
8276
|
style: ie(`right: ${100 - x.value}%`)
|
8224
|
-
},
|
8225
|
-
n("span",
|
8277
|
+
}, w((V = e.modelValue) == null ? void 0 : V[1]), 5)) : u("", !0),
|
8278
|
+
n("span", xc, [
|
8226
8279
|
$(C.$slots, "min-limit-label", {}, () => [
|
8227
|
-
W(
|
8280
|
+
W(w(e.minLimit), 1)
|
8228
8281
|
], !0)
|
8229
8282
|
]),
|
8230
|
-
n("span",
|
8283
|
+
n("span", hc, [
|
8231
8284
|
$(C.$slots, "max-limit-label", {}, () => [
|
8232
|
-
W(
|
8285
|
+
W(w(e.maxLimit), 1)
|
8233
8286
|
], !0)
|
8234
8287
|
])
|
8235
8288
|
], 2),
|
8236
|
-
n("div",
|
8289
|
+
n("div", bc, [
|
8237
8290
|
e.variant === "right" && e.type === "default" ? (t(), y(o(xe), {
|
8238
8291
|
key: 0,
|
8239
8292
|
"model-value": e.modelValue,
|
@@ -8245,10 +8298,10 @@ const lc = { class: "flex flex-col gap-y-2 w-full" }, ac = {
|
|
8245
8298
|
]);
|
8246
8299
|
};
|
8247
8300
|
}
|
8248
|
-
}, Lt = /* @__PURE__ */ ge(
|
8301
|
+
}, Lt = /* @__PURE__ */ ge(wc, [["__scopeId", "data-v-90983831"]]), kc = { class: "flex" }, $c = { class: "flex flex-col gap-y-1 flex-1" }, Sc = { class: "font-medium gap-x-3 flex items-center" }, Cc = { class: "px-2 py-1 text-sm text-oc-text-400" }, Bc = {
|
8249
8302
|
key: 1,
|
8250
8303
|
class: "text-sm text-oc-error flex items-center"
|
8251
|
-
},
|
8304
|
+
}, Vc = {
|
8252
8305
|
__name: "OcSectionItem",
|
8253
8306
|
props: {
|
8254
8307
|
title: String,
|
@@ -8274,16 +8327,16 @@ const lc = { class: "flex flex-col gap-y-2 w-full" }, ac = {
|
|
8274
8327
|
emits: ["update:modelValue"],
|
8275
8328
|
setup(e, { emit: r }) {
|
8276
8329
|
const a = e, l = r;
|
8277
|
-
return a.defaultValue === !0 && (a.modelValue === null || a.modelValue === void 0) && l("update:modelValue", !0), (s, d) => (t(), i("div",
|
8278
|
-
n("div",
|
8279
|
-
n("div",
|
8280
|
-
W(
|
8330
|
+
return a.defaultValue === !0 && (a.modelValue === null || a.modelValue === void 0) && l("update:modelValue", !0), (s, d) => (t(), i("div", kc, [
|
8331
|
+
n("div", $c, [
|
8332
|
+
n("div", Sc, [
|
8333
|
+
W(w(e.title) + " ", 1),
|
8281
8334
|
p(o(ae), {
|
8282
8335
|
position: "top",
|
8283
8336
|
distance: 4
|
8284
8337
|
}, {
|
8285
8338
|
popper: S(() => [
|
8286
|
-
n("div",
|
8339
|
+
n("div", Cc, w(e.popperMessage), 1)
|
8287
8340
|
]),
|
8288
8341
|
default: S(() => [
|
8289
8342
|
e.icon ? (t(), y(o(T), {
|
@@ -8300,8 +8353,8 @@ const lc = { class: "flex flex-col gap-y-2 w-full" }, ac = {
|
|
8300
8353
|
e.description ? (t(), i("span", {
|
8301
8354
|
key: 0,
|
8302
8355
|
class: v(["text-oc-text-400 text-sm", e.descriptionClass])
|
8303
|
-
},
|
8304
|
-
e.errorMessage ? (t(), i("div",
|
8356
|
+
}, w(e.description), 3)) : u("", !0),
|
8357
|
+
e.errorMessage ? (t(), i("div", Bc, w(e.errorMessage), 1)) : u("", !0)
|
8305
8358
|
]),
|
8306
8359
|
$(s.$slots, "actions", {}, () => [
|
8307
8360
|
e.isToggle ? (t(), y(o(wt), F({
|
@@ -8313,13 +8366,13 @@ const lc = { class: "flex flex-col gap-y-2 w-full" }, ac = {
|
|
8313
8366
|
])
|
8314
8367
|
]));
|
8315
8368
|
}
|
8316
|
-
},
|
8369
|
+
}, Oc = {
|
8317
8370
|
key: 0,
|
8318
8371
|
class: "flex gap-3 border border-oc-gray-200 p-3 rounded cursor-pointer"
|
8319
|
-
},
|
8372
|
+
}, Ic = ["onClick"], Tc = ["src"], Dc = {
|
8320
8373
|
key: 0,
|
8321
8374
|
class: "flex text-sm text-oc-text-400 mt-2"
|
8322
|
-
},
|
8375
|
+
}, Ac = {
|
8323
8376
|
__name: "OcSelectOptions",
|
8324
8377
|
props: {
|
8325
8378
|
isSmallImage: Boolean,
|
@@ -8385,7 +8438,7 @@ const lc = { class: "flex flex-col gap-y-2 w-full" }, ac = {
|
|
8385
8438
|
}
|
8386
8439
|
]])
|
8387
8440
|
}, [
|
8388
|
-
e.optionType === "icon" ? (t(), i("div",
|
8441
|
+
e.optionType === "icon" ? (t(), i("div", Oc, [
|
8389
8442
|
(t(!0), i(N, null, R(e.options, (f) => (t(), i("div", {
|
8390
8443
|
key: f.value,
|
8391
8444
|
class: v(["p-1", {
|
@@ -8421,7 +8474,7 @@ const lc = { class: "flex flex-col gap-y-2 w-full" }, ac = {
|
|
8421
8474
|
"w-[50%] mx-auto": e.isSmallImage
|
8422
8475
|
}]),
|
8423
8476
|
src: f.preview
|
8424
|
-
}, null, 10,
|
8477
|
+
}, null, 10, Tc)) : u("", !0),
|
8425
8478
|
n("div", {
|
8426
8479
|
class: v(["mt-2", [d.value ? "text-center" : "px-3", e.borderless ? "flex-1" : ""]])
|
8427
8480
|
}, [
|
@@ -8431,8 +8484,8 @@ const lc = { class: "flex flex-col gap-y-2 w-full" }, ac = {
|
|
8431
8484
|
"text-oc-text-400 group-hover:text-oc-text-500": d.value && f.value.toString() !== e.modelValue.toString(),
|
8432
8485
|
"text-oc-text-500": d.value && f.value.toString() === e.modelValue.toString()
|
8433
8486
|
}])
|
8434
|
-
},
|
8435
|
-
f.description ? (t(), i("div",
|
8487
|
+
}, w(f.label), 3),
|
8488
|
+
f.description ? (t(), i("div", Dc, w(f.description), 1)) : u("", !0)
|
8436
8489
|
], 2),
|
8437
8490
|
e.borderless ? (t(), y(o(T), {
|
8438
8491
|
key: 1,
|
@@ -8442,16 +8495,16 @@ const lc = { class: "flex flex-col gap-y-2 w-full" }, ac = {
|
|
8442
8495
|
class: v(["text-oc-primary", f.value.toString() === e.modelValue.toString() ? "opacity-100" : "opacity-0"])
|
8443
8496
|
}, null, 8, ["class"])) : u("", !0)
|
8444
8497
|
])
|
8445
|
-
], 10,
|
8498
|
+
], 10, Ic))), 128))
|
8446
8499
|
], 2)
|
8447
8500
|
]),
|
8448
8501
|
_: 3
|
8449
8502
|
}, 8, ["label", "hint", "error-message", "is-required", "label-icon", "tooltip-text", "tooltip-options"]));
|
8450
8503
|
}
|
8451
|
-
},
|
8504
|
+
}, jc = { class: "flex gap-x-3" }, Mc = {
|
8452
8505
|
key: 0,
|
8453
8506
|
class: "border rounded p-3 min-h-[140px] h-full"
|
8454
|
-
},
|
8507
|
+
}, Lc = ["accept"], Pc = { class: "py-2 flex flex-col" }, Ec = ["src"], Nc = /* @__PURE__ */ Z({
|
8455
8508
|
__name: "OcSingleOnlyImageUpload",
|
8456
8509
|
props: {
|
8457
8510
|
accept: {
|
@@ -8476,12 +8529,12 @@ const lc = { class: "flex flex-col gap-y-2 w-full" }, ac = {
|
|
8476
8529
|
};
|
8477
8530
|
return (x, g) => {
|
8478
8531
|
var k, A;
|
8479
|
-
return t(), i("div",
|
8532
|
+
return t(), i("div", jc, [
|
8480
8533
|
(k = e.uploadedImage) != null && k.fileUrl ? u("", !0) : (t(), i("label", {
|
8481
8534
|
key: 0,
|
8482
8535
|
class: v([{ "flex-1": e.showUploadImageArea }, "relative group overflow-hidden"])
|
8483
8536
|
}, [
|
8484
|
-
e.showUploadImageArea ? (t(), i("div",
|
8537
|
+
e.showUploadImageArea ? (t(), i("div", Mc, [
|
8485
8538
|
n("div", {
|
8486
8539
|
class: v(["w-full text-oc-text-300 text-sm h-full flex flex-col justify-center items-center transition-all border border-transparent border-dashed group-hover:border-oc-primary rounded-sm cursor-pointer", { "!border-oc-primary": m.value }])
|
8487
8540
|
}, [
|
@@ -8505,7 +8558,7 @@ const lc = { class: "flex flex-col gap-y-2 w-full" }, ac = {
|
|
8505
8558
|
onDragover: g[1] || (g[1] = (j) => m.value = !0),
|
8506
8559
|
onDragleave: g[2] || (g[2] = (j) => m.value = !1),
|
8507
8560
|
onDrop: g[3] || (g[3] = (j) => m.value = !1)
|
8508
|
-
}, null, 40,
|
8561
|
+
}, null, 40, Lc)
|
8509
8562
|
], 2)),
|
8510
8563
|
(A = e.uploadedImage) != null && A.fileUrl ? (t(), i("div", {
|
8511
8564
|
key: 1,
|
@@ -8518,7 +8571,7 @@ const lc = { class: "flex flex-col gap-y-2 w-full" }, ac = {
|
|
8518
8571
|
class: "absolute top-2 right-2 z-[1010]"
|
8519
8572
|
}, {
|
8520
8573
|
menu: S(() => [
|
8521
|
-
n("div",
|
8574
|
+
n("div", Pc, [
|
8522
8575
|
n("div", {
|
8523
8576
|
class: "flex p-3 cursor-pointer items-center gap-x-3",
|
8524
8577
|
onClick: g[4] || (g[4] = () => {
|
@@ -8559,7 +8612,7 @@ const lc = { class: "flex flex-col gap-y-2 w-full" }, ac = {
|
|
8559
8612
|
src: e.uploadedImage.fileUrl,
|
8560
8613
|
alt: "uploaded-image",
|
8561
8614
|
class: "object-contain h-full w-full"
|
8562
|
-
}, null, 8,
|
8615
|
+
}, null, 8, Ec)
|
8563
8616
|
], 2)) : u("", !0),
|
8564
8617
|
(t(), y(Rt, { to: "body" }, [
|
8565
8618
|
d.value ? (t(), y(o(ot), {
|
@@ -8576,13 +8629,13 @@ const lc = { class: "flex flex-col gap-y-2 w-full" }, ac = {
|
|
8576
8629
|
]);
|
8577
8630
|
};
|
8578
8631
|
}
|
8579
|
-
}),
|
8632
|
+
}), zc = ["accept"], Rc = {
|
8580
8633
|
key: 0,
|
8581
8634
|
class: "py-2 flex flex-col items-center gap-y-4"
|
8582
|
-
},
|
8635
|
+
}, Fc = { class: "flex items-baseline gap-x-3 w-full" }, Uc = { class: "text-sm flex-1 text-oc-text-400 pointer-events-none" }, qc = ["accept"], Hc = {
|
8583
8636
|
key: 0,
|
8584
8637
|
class: "relative group w-fit rounded overflow-hidden"
|
8585
|
-
},
|
8638
|
+
}, Yc = ["src"], Wc = ["src"], Kc = { class: "py-2 flex flex-col" }, Gc = { class: "flex flex-1 items-center gap-x-3 text-sm text-oc-text-400" }, Xc = { class: "flex flex-col w-7 h-7 items-center justify-center text-oc-text-300" }, Jc = { class: "uppercase text-[8px] font-bold leading-none block" }, Zc = { class: "flex" }, Qc = { class: "text-sm text-oc-primary" }, _c = { class: "rounded-full bg-oc-gray-100 w-[48px] h-2 overflow-hidden" }, Cf = {
|
8586
8639
|
__name: "OcSingleFileUpload",
|
8587
8640
|
props: {
|
8588
8641
|
format: {
|
@@ -8670,7 +8723,7 @@ const lc = { class: "flex flex-col gap-y-2 w-full" }, ac = {
|
|
8670
8723
|
j({ target: { files: D } }, a.format === "object");
|
8671
8724
|
}, O = () => {
|
8672
8725
|
!d.value || !c.value || l("update:modelValue", { fileName: c, fileLink: d });
|
8673
|
-
},
|
8726
|
+
}, b = (P) => {
|
8674
8727
|
h.value.fileUrl = P, h.value.fileName = Date.now(), g.value = !1, k.value = "", l("update:modelValue", a.format === "object" ? h.value : [h.value]);
|
8675
8728
|
}, V = async (P) => {
|
8676
8729
|
if (P)
|
@@ -8695,9 +8748,9 @@ const lc = { class: "flex flex-col gap-y-2 w-full" }, ac = {
|
|
8695
8748
|
$(P.$slots, "hint")
|
8696
8749
|
]),
|
8697
8750
|
default: S(() => {
|
8698
|
-
var U, H,
|
8751
|
+
var U, H, G, _, ee, oe, ce, pe, ke, $e, ye, Se, re, Be, Ce;
|
8699
8752
|
return [
|
8700
|
-
e.isImageOnly ? (t(), y(
|
8753
|
+
e.isImageOnly ? (t(), y(Nc, {
|
8701
8754
|
key: 0,
|
8702
8755
|
accept: e.accept,
|
8703
8756
|
"uploaded-image": h.value,
|
@@ -8707,7 +8760,7 @@ const lc = { class: "flex flex-col gap-y-2 w-full" }, ac = {
|
|
8707
8760
|
onChange: D[0] || (D[0] = (Q) => o(j)(Q, a.format === "object")),
|
8708
8761
|
onDelete: D[1] || (D[1] = (Q) => o(I)(0))
|
8709
8762
|
}, null, 8, ["accept", "uploaded-image", "image-classes", "show-upload-image-area"])) : e.isButtonOnly ? (t(), i(N, { key: 1 }, [
|
8710
|
-
p(o(
|
8763
|
+
p(o(K), F(e.buttonUploadProps, {
|
8711
8764
|
onClick: D[2] || (D[2] = (Q) => {
|
8712
8765
|
var Ve;
|
8713
8766
|
return (Ve = s.value) == null ? void 0 : Ve.click();
|
@@ -8720,7 +8773,7 @@ const lc = { class: "flex flex-col gap-y-2 w-full" }, ac = {
|
|
8720
8773
|
type: "file",
|
8721
8774
|
accept: e.accept,
|
8722
8775
|
onChange: D[3] || (D[3] = (Q) => o(j)(Q, a.format === "object"))
|
8723
|
-
}, null, 40,
|
8776
|
+
}, null, 40, zc)
|
8724
8777
|
], 64)) : (t(), i(N, { key: 2 }, [
|
8725
8778
|
o(A).length ? (t(), i("div", {
|
8726
8779
|
key: 1,
|
@@ -8729,16 +8782,16 @@ const lc = { class: "flex flex-col gap-y-2 w-full" }, ac = {
|
|
8729
8782
|
"!bg-oc-bg-dark": e.isDisabled
|
8730
8783
|
}])
|
8731
8784
|
}, [
|
8732
|
-
e.isPreview && ((_ = h.value) == null ? void 0 : _.progress) === 100 ? (t(), i("div",
|
8785
|
+
e.isPreview && ((_ = h.value) == null ? void 0 : _.progress) === 100 ? (t(), i("div", Hc, [
|
8733
8786
|
(oe = (ee = h.value) == null ? void 0 : ee.file) != null && oe.type.includes("video") ? (t(), i("video", {
|
8734
8787
|
key: 0,
|
8735
8788
|
autoplay: "",
|
8736
8789
|
loop: "",
|
8737
8790
|
src: C.value
|
8738
|
-
}, null, 8,
|
8791
|
+
}, null, 8, Yc)) : (t(), i("img", {
|
8739
8792
|
key: 1,
|
8740
8793
|
src: (ce = h.value) == null ? void 0 : ce.fileUrl
|
8741
|
-
}, null, 8,
|
8794
|
+
}, null, 8, Wc)),
|
8742
8795
|
p(o(se), {
|
8743
8796
|
modelValue: x.value,
|
8744
8797
|
"onUpdate:modelValue": D[13] || (D[13] = (Q) => x.value = Q),
|
@@ -8747,7 +8800,7 @@ const lc = { class: "flex flex-col gap-y-2 w-full" }, ac = {
|
|
8747
8800
|
menu: S(() => {
|
8748
8801
|
var Q, Ve;
|
8749
8802
|
return [
|
8750
|
-
n("div",
|
8803
|
+
n("div", Kc, [
|
8751
8804
|
!((Ve = (Q = h.value) == null ? void 0 : Q.file) != null && Ve.type.includes("video")) && e.allowToEdit ? (t(), i("div", {
|
8752
8805
|
key: 0,
|
8753
8806
|
class: "flex p-3 cursor-pointer items-center gap-x-3",
|
@@ -8792,28 +8845,28 @@ const lc = { class: "flex flex-col gap-y-2 w-full" }, ac = {
|
|
8792
8845
|
onClose: D[15] || (D[15] = () => {
|
8793
8846
|
g.value = !1, k.value = "";
|
8794
8847
|
}),
|
8795
|
-
onChangeImage:
|
8848
|
+
onChangeImage: b
|
8796
8849
|
}, null, 8, ["modelValue", "img"])) : u("", !0)
|
8797
8850
|
])) : (t(), i(N, { key: 1 }, [
|
8798
|
-
n("div",
|
8799
|
-
n("div",
|
8851
|
+
n("div", Gc, [
|
8852
|
+
n("div", Xc, [
|
8800
8853
|
p(o(T), {
|
8801
8854
|
name: "file-extension",
|
8802
8855
|
width: "14",
|
8803
8856
|
height: "10"
|
8804
8857
|
}),
|
8805
|
-
n("span",
|
8858
|
+
n("span", Jc, w(($e = h.value) == null ? void 0 : $e.extension), 1)
|
8806
8859
|
]),
|
8807
8860
|
n("div", {
|
8808
8861
|
class: v([e.shouldTruncateFileName ? "truncate max-w-[250px]" : ""])
|
8809
|
-
},
|
8862
|
+
}, w((ye = h.value) == null ? void 0 : ye.fileName), 3)
|
8810
8863
|
]),
|
8811
|
-
n("div",
|
8864
|
+
n("div", Zc, [
|
8812
8865
|
n("div", {
|
8813
8866
|
class: v([((Se = h.value) == null ? void 0 : Se.progress) === 100 ? "opacity-0" : "", "transition-all duration-500 flex flex-col gap-y-1 items-center"])
|
8814
8867
|
}, [
|
8815
|
-
n("span",
|
8816
|
-
n("div",
|
8868
|
+
n("span", Qc, w(((re = h.value) == null ? void 0 : re.progress) || 0) + "% ", 1),
|
8869
|
+
n("div", _c, [
|
8817
8870
|
n("div", {
|
8818
8871
|
class: "h-2 bg-oc-primary transition-all duration-100",
|
8819
8872
|
style: ie({ width: `${((Be = h.value) == null ? void 0 : Be.progress) || 0}%` })
|
@@ -8833,8 +8886,8 @@ const lc = { class: "flex flex-col gap-y-2 w-full" }, ac = {
|
|
8833
8886
|
]))
|
8834
8887
|
])
|
8835
8888
|
], 64))
|
8836
|
-
], 2)) : (t(), i("div",
|
8837
|
-
n("div",
|
8889
|
+
], 2)) : (t(), i("div", Rc, [
|
8890
|
+
n("div", Fc, [
|
8838
8891
|
e.variant === "url" ? (t(), i(N, { key: 0 }, [
|
8839
8892
|
p(o(xe), {
|
8840
8893
|
modelValue: d.value,
|
@@ -8848,7 +8901,7 @@ const lc = { class: "flex flex-col gap-y-2 w-full" }, ac = {
|
|
8848
8901
|
"onUpdate:modelValue": D[6] || (D[6] = (Q) => c.value = Q),
|
8849
8902
|
placeholder: "Enter file name"
|
8850
8903
|
}, null, 8, ["modelValue"]),
|
8851
|
-
p(o(
|
8904
|
+
p(o(K), {
|
8852
8905
|
class: "flex-shrink-0",
|
8853
8906
|
label: "OK",
|
8854
8907
|
disabled: "",
|
@@ -8868,13 +8921,13 @@ const lc = { class: "flex flex-col gap-y-2 w-full" }, ac = {
|
|
8868
8921
|
onDragover: D[10] || (D[10] = fe(() => {
|
8869
8922
|
}, ["prevent"]))
|
8870
8923
|
}, [
|
8871
|
-
n("span",
|
8872
|
-
p(o(
|
8924
|
+
n("span", Uc, w(e.isDisabled ? "Upload disabled" : "Choose file from your computer or drag here"), 1),
|
8925
|
+
p(o(K), {
|
8873
8926
|
size: "small",
|
8874
8927
|
"is-disabled": e.isDisabled,
|
8875
8928
|
variant: ((U = e.uploadButtonOptions) == null ? void 0 : U.variant) ?? "secondary",
|
8876
8929
|
"left-icon": ((H = e.uploadButtonOptions) == null ? void 0 : H.leftIcon) ?? "upload",
|
8877
|
-
label: ((
|
8930
|
+
label: ((G = e.uploadButtonOptions) == null ? void 0 : G.label) ?? "Upload",
|
8878
8931
|
onClick: D[7] || (D[7] = (Q) => s.value.click())
|
8879
8932
|
}, null, 8, ["is-disabled", "variant", "left-icon", "label"])
|
8880
8933
|
], 34),
|
@@ -8885,7 +8938,7 @@ const lc = { class: "flex flex-col gap-y-2 w-full" }, ac = {
|
|
8885
8938
|
type: "file",
|
8886
8939
|
accept: e.accept,
|
8887
8940
|
onChange: D[11] || (D[11] = (Q) => o(j)(Q, a.format === "object"))
|
8888
|
-
}, null, 40,
|
8941
|
+
}, null, 40, qc)
|
8889
8942
|
])
|
8890
8943
|
]))
|
8891
8944
|
], 64))
|
@@ -8894,16 +8947,16 @@ const lc = { class: "flex flex-col gap-y-2 w-full" }, ac = {
|
|
8894
8947
|
_: 3
|
8895
8948
|
}, 8, ["label", "label-class", "hint", "error-message"]));
|
8896
8949
|
}
|
8897
|
-
},
|
8950
|
+
}, eu = { class: "relative min-h-[100px]" }, tu = {
|
8898
8951
|
key: 0,
|
8899
8952
|
class: "absolute"
|
8900
|
-
},
|
8953
|
+
}, lu = { class: "w-[100px] hover:bg-oc-primary-50 cursor-pointer bg-oc-accent-1-50 text-oc-accent-1 rounded aspect-square flex items-center justify-center" }, au = ["accept", "multiple", "disabled"], nu = ["onClick"], iu = { class: "py-2 flex flex-col" }, ou = ["onClick"], su = ["onClick"], ru = {
|
8901
8954
|
key: 1,
|
8902
8955
|
class: "z-[1009] hidden group-hover:flex absolute bg-black/30 w-full h-full top-0 left-0 rounded"
|
8903
|
-
},
|
8956
|
+
}, du = {
|
8904
8957
|
key: 0,
|
8905
8958
|
class: "cursor-pointer m-auto drag-el"
|
8906
|
-
},
|
8959
|
+
}, cu = {
|
8907
8960
|
__name: "OcSimpleMultipleUpload",
|
8908
8961
|
props: {
|
8909
8962
|
accept: {
|
@@ -8938,42 +8991,42 @@ const lc = { class: "flex flex-col gap-y-2 w-full" }, ac = {
|
|
8938
8991
|
"invalidFileType"
|
8939
8992
|
],
|
8940
8993
|
setup(e, { emit: r }) {
|
8941
|
-
const a = e, l = r, s = M([]), d = M(!1), c = M(""), m = M({}), f = z(() => a.uploadedImages[c.value].fileUrl), x = M(!1), g = M(""), k = (
|
8942
|
-
x.value = !0, g.value =
|
8994
|
+
const a = e, l = r, s = M([]), d = M(!1), c = M(""), m = M({}), f = z(() => a.uploadedImages[c.value].fileUrl), x = M(!1), g = M(""), k = (b) => {
|
8995
|
+
x.value = !0, g.value = b;
|
8943
8996
|
}, A = M(!1), j = () => {
|
8944
|
-
const
|
8945
|
-
|
8997
|
+
const b = a.uploadedImages.find((V, L) => L === g.value);
|
8998
|
+
b.current ? l("onRemoveImage", b) : (l("delete", g.value), A.value = !0, setTimeout(() => {
|
8946
8999
|
A.value = !1;
|
8947
9000
|
}, 1e3)), l(
|
8948
9001
|
"update:uploadedImages",
|
8949
9002
|
a.uploadedImages.filter((V, L) => L !== g.value)
|
8950
9003
|
), x.value = !1;
|
8951
|
-
}, I = ({ url:
|
9004
|
+
}, I = ({ url: b, cropper: V }) => {
|
8952
9005
|
const L = a.uploadedImages[c.value];
|
8953
|
-
L.fileUrl =
|
8954
|
-
}, C = (
|
9006
|
+
L.fileUrl = b, L.fileName = Date.now(), l("onEditImage", { ...L, index: c.value, cropper: V }), d.value = !1, c.value = "", m.value = {};
|
9007
|
+
}, C = (b) => {
|
8955
9008
|
let V = a.uploadedImages[c.value];
|
8956
|
-
Object.keys(
|
8957
|
-
V[L] =
|
9009
|
+
Object.keys(b).forEach((L) => {
|
9010
|
+
V[L] = b[L];
|
8958
9011
|
}), l("update:uploadedImages", a.uploadedImages);
|
8959
|
-
}, h = (
|
8960
|
-
let V = a.uploadedImages.length +
|
9012
|
+
}, h = (b) => {
|
9013
|
+
let V = a.uploadedImages.length + b.target.files.length > a.maxImages;
|
8961
9014
|
if (a.maxImages && V) {
|
8962
9015
|
l("onMaxFileExceed", V);
|
8963
9016
|
return;
|
8964
9017
|
}
|
8965
|
-
l("change",
|
9018
|
+
l("change", b);
|
8966
9019
|
}, B = z(
|
8967
9020
|
() => a.maxImages == null || a.maxImages && a.uploadedImages.length < a.maxImages
|
8968
|
-
), O = (
|
9021
|
+
), O = (b, V) => {
|
8969
9022
|
var L;
|
8970
|
-
c.value =
|
9023
|
+
c.value = b, (L = a.inputOptions) == null || L.forEach((E) => {
|
8971
9024
|
m.value[E] = V[E], E === "caption" && (m.value.caption_variant = V.caption_variant);
|
8972
|
-
}), s[
|
9025
|
+
}), s[b] = !1, d.value = !0;
|
8973
9026
|
};
|
8974
|
-
return (
|
8975
|
-
B.value ? (t(), i("label",
|
8976
|
-
n("div",
|
9027
|
+
return (b, V) => (t(), i("div", eu, [
|
9028
|
+
B.value ? (t(), i("label", tu, [
|
9029
|
+
n("div", lu, [
|
8977
9030
|
p(o(T), { name: "plus" })
|
8978
9031
|
]),
|
8979
9032
|
n("input", {
|
@@ -8983,16 +9036,16 @@ const lc = { class: "flex flex-col gap-y-2 w-full" }, ac = {
|
|
8983
9036
|
multiple: a.maxImages !== 1,
|
8984
9037
|
disabled: e.isDisabled || A.value,
|
8985
9038
|
onChange: h
|
8986
|
-
}, null, 40,
|
9039
|
+
}, null, 40, au)
|
8987
9040
|
])) : u("", !0),
|
8988
|
-
(t(), y(o(
|
9041
|
+
(t(), y(o(gm), {
|
8989
9042
|
key: e.uploadedImages.length,
|
8990
9043
|
"model-value": e.uploadedImages,
|
8991
9044
|
disabled: e.isDisabled,
|
8992
9045
|
filter: "filtered-el",
|
8993
9046
|
class: "grid w-fit grid-cols-3 gap-3",
|
8994
9047
|
style: ie(`grid-template-columns: repeat(${e.columnsCount}, 1fr)`),
|
8995
|
-
"onUpdate:modelValue": V[0] || (V[0] = (L) => e.isDisabled ? null :
|
9048
|
+
"onUpdate:modelValue": V[0] || (V[0] = (L) => e.isDisabled ? null : b.$emit("update:uploadedImages", L))
|
8996
9049
|
}, {
|
8997
9050
|
default: S(({ list: L }) => [
|
8998
9051
|
(t(!0), i(N, null, R(L, (E, P) => (t(), i("div", {
|
@@ -9002,7 +9055,7 @@ const lc = { class: "flex flex-col gap-y-2 w-full" }, ac = {
|
|
9002
9055
|
"col-start-2": P === 0 && B.value
|
9003
9056
|
}]),
|
9004
9057
|
style: ie(`background-image: url(${E.fileUrl})`),
|
9005
|
-
onClick: (D) =>
|
9058
|
+
onClick: (D) => b.$emit("update:selectedImage", E)
|
9006
9059
|
}, [
|
9007
9060
|
e.isDisabled ? u("", !0) : (t(), y(o(se), {
|
9008
9061
|
key: 0,
|
@@ -9012,12 +9065,12 @@ const lc = { class: "flex flex-col gap-y-2 w-full" }, ac = {
|
|
9012
9065
|
class: "absolute top-2 right-2 z-[1010] hidden group-hover:flex"
|
9013
9066
|
}, {
|
9014
9067
|
menu: S(() => [
|
9015
|
-
$(
|
9068
|
+
$(b.$slots, "action", {
|
9016
9069
|
item: E,
|
9017
9070
|
removeItem: k,
|
9018
9071
|
fileIndex: P
|
9019
9072
|
}, () => [
|
9020
|
-
n("div",
|
9073
|
+
n("div", iu, [
|
9021
9074
|
n("div", {
|
9022
9075
|
class: "flex p-3 cursor-pointer items-center gap-x-3",
|
9023
9076
|
onClick: (D) => O(P, E)
|
@@ -9028,7 +9081,7 @@ const lc = { class: "flex flex-col gap-y-2 w-full" }, ac = {
|
|
9028
9081
|
name: "pencil"
|
9029
9082
|
}),
|
9030
9083
|
V[4] || (V[4] = n("span", null, "Edit Image", -1))
|
9031
|
-
], 8,
|
9084
|
+
], 8, ou),
|
9032
9085
|
n("div", {
|
9033
9086
|
class: "flex p-3 cursor-pointer items-center text-oc-error gap-x-3",
|
9034
9087
|
onClick: () => {
|
@@ -9041,7 +9094,7 @@ const lc = { class: "flex flex-col gap-y-2 w-full" }, ac = {
|
|
9041
9094
|
name: "bin"
|
9042
9095
|
}),
|
9043
9096
|
V[5] || (V[5] = n("span", null, "Delete", -1))
|
9044
|
-
], 8,
|
9097
|
+
], 8, su)
|
9045
9098
|
])
|
9046
9099
|
])
|
9047
9100
|
]),
|
@@ -9065,15 +9118,15 @@ const lc = { class: "flex flex-col gap-y-2 w-full" }, ac = {
|
|
9065
9118
|
}, null, 4)
|
9066
9119
|
], 2)
|
9067
9120
|
], 2),
|
9068
|
-
e.isDisabled ? u("", !0) : (t(), i("div",
|
9069
|
-
a.maxImages !== 1 ? (t(), i("span",
|
9121
|
+
e.isDisabled ? u("", !0) : (t(), i("div", ru, [
|
9122
|
+
a.maxImages !== 1 ? (t(), i("span", du, [
|
9070
9123
|
p(o(T), {
|
9071
9124
|
name: "arrows",
|
9072
9125
|
class: "text-oc-accent-1-50"
|
9073
9126
|
})
|
9074
9127
|
])) : u("", !0)
|
9075
9128
|
]))
|
9076
|
-
], 14,
|
9129
|
+
], 14, nu))), 128))
|
9077
9130
|
]),
|
9078
9131
|
_: 3
|
9079
9132
|
}, 8, ["model-value", "disabled", "style"])),
|
@@ -9090,7 +9143,7 @@ const lc = { class: "flex flex-col gap-y-2 w-full" }, ac = {
|
|
9090
9143
|
onChangeImage: I,
|
9091
9144
|
"onUpdate:inputOptions": C
|
9092
9145
|
}, null, 8, ["modelValue", "img", "input-options", "input-option-values"])) : u("", !0),
|
9093
|
-
p(o(
|
9146
|
+
p(o(Ju), {
|
9094
9147
|
modelValue: x.value,
|
9095
9148
|
"onUpdate:modelValue": V[3] || (V[3] = (L) => x.value = L),
|
9096
9149
|
description: "Do you want to delete this image ?",
|
@@ -9098,16 +9151,16 @@ const lc = { class: "flex flex-col gap-y-2 w-full" }, ac = {
|
|
9098
9151
|
}, null, 8, ["modelValue"])
|
9099
9152
|
]));
|
9100
9153
|
}
|
9101
|
-
},
|
9154
|
+
}, uu = { class: "flex flex-col gap-y-2" }, mu = ["accept"], fu = { class: "input-file-uploaded flex flex-col gap-y-3" }, vu = { class: "flex items-center gap-x-3" }, gu = { class: "flex flex-col items-center justify-center text-oc-text-300" }, pu = { class: "uppercase text-[8px] font-bold leading-none block" }, yu = { class: "text-oc-text-400 text-sm" }, xu = { class: "w-[100px] h-[6px] bg-oc-accent-1-50 rounded-full overflow-hidden transition-all duration-1000" }, hu = ["accept"], bu = {
|
9102
9155
|
key: 1,
|
9103
9156
|
class: "w-full text-oc-text-300 text-sm h-full flex-1 flex flex-col justify-center items-center my-auto min-h-[120px] transition-all duration-300 gap-2"
|
9104
|
-
},
|
9157
|
+
}, wu = { key: 0 }, ku = { key: 1 }, $u = {
|
9105
9158
|
key: 2,
|
9106
9159
|
class: "text-center"
|
9107
|
-
},
|
9160
|
+
}, Su = {
|
9108
9161
|
key: 2,
|
9109
9162
|
class: "mt-3 flex items-center justify-center"
|
9110
|
-
},
|
9163
|
+
}, Bf = {
|
9111
9164
|
__name: "OcMultipleUploadFile",
|
9112
9165
|
props: {
|
9113
9166
|
modelValue: {
|
@@ -9188,7 +9241,7 @@ const lc = { class: "flex flex-col gap-y-2 w-full" }, ac = {
|
|
9188
9241
|
var I;
|
9189
9242
|
(I = s.value) == null || I.click();
|
9190
9243
|
};
|
9191
|
-
return (I, C) => (t(), i("div",
|
9244
|
+
return (I, C) => (t(), i("div", uu, [
|
9192
9245
|
p(o(he), {
|
9193
9246
|
label: e.label,
|
9194
9247
|
hint: e.hint,
|
@@ -9198,7 +9251,7 @@ const lc = { class: "flex flex-col gap-y-2 w-full" }, ac = {
|
|
9198
9251
|
$(I.$slots, "hint")
|
9199
9252
|
]),
|
9200
9253
|
default: S(() => [
|
9201
|
-
e.isImageOnly ? (t(), y(
|
9254
|
+
e.isImageOnly ? (t(), y(cu, {
|
9202
9255
|
key: 0,
|
9203
9256
|
"uploaded-images": o(f),
|
9204
9257
|
"selected-image": e.selectedImage,
|
@@ -9227,7 +9280,7 @@ const lc = { class: "flex flex-col gap-y-2 w-full" }, ac = {
|
|
9227
9280
|
_: 3
|
9228
9281
|
}, 8, ["uploaded-images", "selected-image", "columns-count", "accept", "input-options", "max-images", "is-disabled", "onChange", "onDelete"])) : e.isButtonOnly ? (t(), i(N, { key: 1 }, [
|
9229
9282
|
$(I.$slots, "button", { triggerInput: j }, () => [
|
9230
|
-
p(o(
|
9283
|
+
p(o(K), F(e.buttonUploadProps, { onClick: j }), null, 16)
|
9231
9284
|
]),
|
9232
9285
|
n("input", {
|
9233
9286
|
id: "my-file",
|
@@ -9238,7 +9291,7 @@ const lc = { class: "flex flex-col gap-y-2 w-full" }, ac = {
|
|
9238
9291
|
multiple: "",
|
9239
9292
|
accept: e.accept,
|
9240
9293
|
onChange: k
|
9241
|
-
}, null, 40,
|
9294
|
+
}, null, 40, mu)
|
9242
9295
|
], 64)) : (t(), i("div", {
|
9243
9296
|
key: 2,
|
9244
9297
|
class: v(["relative border rounded p-3 min-w-[30rem] flex flex-col", [
|
@@ -9248,27 +9301,27 @@ const lc = { class: "flex flex-col gap-y-2 w-full" }, ac = {
|
|
9248
9301
|
}
|
9249
9302
|
]])
|
9250
9303
|
}, [
|
9251
|
-
n("div",
|
9304
|
+
n("div", fu, [
|
9252
9305
|
(t(!0), i(N, null, R(o(f), (h, B) => (t(), i("div", {
|
9253
9306
|
key: `${B}-${h.fileName}`,
|
9254
9307
|
class: "flex justify-between relative items-center w-full last:mb-2"
|
9255
9308
|
}, [
|
9256
|
-
n("div",
|
9257
|
-
n("div",
|
9309
|
+
n("div", vu, [
|
9310
|
+
n("div", gu, [
|
9258
9311
|
p(o(T), {
|
9259
9312
|
name: "file-extension",
|
9260
9313
|
width: "14",
|
9261
9314
|
height: "10"
|
9262
9315
|
}),
|
9263
|
-
n("span",
|
9316
|
+
n("span", pu, w(h.extension), 1)
|
9264
9317
|
]),
|
9265
|
-
n("span",
|
9318
|
+
n("span", yu, w(h == null ? void 0 : h.fileName), 1)
|
9266
9319
|
]),
|
9267
9320
|
c.value ? (t(), i("div", {
|
9268
9321
|
key: 0,
|
9269
9322
|
class: v(["w-[100px] h-[16px] absolute right-0 flex items-center z-40", { "on-end-loading": h.progress === 100 }])
|
9270
9323
|
}, [
|
9271
|
-
n("div",
|
9324
|
+
n("div", xu, [
|
9272
9325
|
n("div", {
|
9273
9326
|
style: ie({ width: `${h.progress}%` }),
|
9274
9327
|
class: "block transition-all duration-1000 h-[6px] rounded-full bg-oc-primary"
|
@@ -9310,17 +9363,17 @@ const lc = { class: "flex flex-col gap-y-2 w-full" }, ac = {
|
|
9310
9363
|
onDragleave: C[6] || (C[6] = (h) => d.value = !1),
|
9311
9364
|
onDrop: C[7] || (C[7] = (h) => d.value = !1),
|
9312
9365
|
onChange: k
|
9313
|
-
}, null, 40,
|
9314
|
-
o(f).length ? e.isDisabled ? u("", !0) : (t(), i("div",
|
9366
|
+
}, null, 40, hu)),
|
9367
|
+
o(f).length ? e.isDisabled ? u("", !0) : (t(), i("div", Su, C[9] || (C[9] = [
|
9315
9368
|
n("span", { class: "text-oc-accent-1 text-sm" }, "+ Add more", -1)
|
9316
|
-
]))) : (t(), i("div",
|
9369
|
+
]))) : (t(), i("div", bu, [
|
9317
9370
|
p(o(T), {
|
9318
9371
|
name: "upload",
|
9319
9372
|
class: v(e.isDisabled ? "text-oc-accent-1-200" : "text-oc-accent-1")
|
9320
9373
|
}, null, 8, ["class"]),
|
9321
|
-
e.labelUploadArea ? (t(), i("div",
|
9374
|
+
e.labelUploadArea ? (t(), i("div", wu, w(e.labelUploadArea), 1)) : e.isDisabled ? (t(), i("div", ku, "Upload disabled")) : (t(), i("div", $u, [
|
9322
9375
|
C[8] || (C[8] = n("div", null, "Select documents or drag here", -1)),
|
9323
|
-
n("div", null, "File max " +
|
9376
|
+
n("div", null, "File max " + w(e.maxSize) + "MB", 1)
|
9324
9377
|
]))
|
9325
9378
|
]))
|
9326
9379
|
], 2)
|
@@ -9330,7 +9383,7 @@ const lc = { class: "flex flex-col gap-y-2 w-full" }, ac = {
|
|
9330
9383
|
}, 8, ["label", "hint", "error-message"])
|
9331
9384
|
]));
|
9332
9385
|
}
|
9333
|
-
},
|
9386
|
+
}, Cu = ["value"], Bu = /* @__PURE__ */ Z({
|
9334
9387
|
__name: "OcNumberInput",
|
9335
9388
|
props: {
|
9336
9389
|
modelValue: {
|
@@ -9376,7 +9429,7 @@ const lc = { class: "flex flex-col gap-y-2 w-full" }, ac = {
|
|
9376
9429
|
!e.isDisabled && !e.errorMessage ? "number-input-focus-shadow" : ""
|
9377
9430
|
]])
|
9378
9431
|
}, [
|
9379
|
-
p(o(
|
9432
|
+
p(o(K), {
|
9380
9433
|
variant: "secondary",
|
9381
9434
|
class: "w-[28px] shrink-0 aspect-square",
|
9382
9435
|
size: "small",
|
@@ -9391,8 +9444,8 @@ const lc = { class: "flex flex-col gap-y-2 w-full" }, ac = {
|
|
9391
9444
|
placeholder: "1",
|
9392
9445
|
onKeydown: c,
|
9393
9446
|
onInput: f[0] || (f[0] = (x) => m.$emit("update:modelValue", x.target.value))
|
9394
|
-
}, null, 42,
|
9395
|
-
p(o(
|
9447
|
+
}, null, 42, Cu),
|
9448
|
+
p(o(K), {
|
9396
9449
|
variant: "secondary",
|
9397
9450
|
class: "w-[28px] shrink-0 aspect-square",
|
9398
9451
|
size: "small",
|
@@ -9406,7 +9459,7 @@ const lc = { class: "flex flex-col gap-y-2 w-full" }, ac = {
|
|
9406
9459
|
_: 1
|
9407
9460
|
}, 8, ["label", "tooltip-options", "error-message", "hint", "label-icon", "is-required", "tooltip-text"]));
|
9408
9461
|
}
|
9409
|
-
}),
|
9462
|
+
}), Vu = /* @__PURE__ */ ge(Bu, [["__scopeId", "data-v-5333a0fa"]]), Ou = {
|
9410
9463
|
__name: "OcDropdown",
|
9411
9464
|
props: {
|
9412
9465
|
distance: {
|
@@ -9448,8 +9501,9 @@ const lc = { class: "flex flex-col gap-y-2 w-full" }, ac = {
|
|
9448
9501
|
s.isAttachToBody && !s.preventClickOutside && d.value.checkElementIsInsidePopper(j.target) || s.modelValue && !s.preventClickOutside && l("update:modelValue", !1);
|
9449
9502
|
}, x = M(), g = M(0);
|
9450
9503
|
ue(() => s.modelValue, async () => {
|
9504
|
+
var b;
|
9451
9505
|
const j = window.innerHeight || document.documentElement.clientHeight, I = x.value.getBoundingClientRect().top, C = j - x.value.getBoundingClientRect().bottom, h = Math.max(I, C), O = h - (2 + (h === I ? 2.5 : 0)) * 16;
|
9452
|
-
g.value = O > 0 ? O : 0, d.value.popperInstance.update();
|
9506
|
+
g.value = O > 0 ? O : 0, (b = d.value.popperInstance) == null || b.update();
|
9453
9507
|
}), r({
|
9454
9508
|
dropdownScroll: c,
|
9455
9509
|
toggleDropdown: m,
|
@@ -9511,16 +9565,16 @@ const lc = { class: "flex flex-col gap-y-2 w-full" }, ac = {
|
|
9511
9565
|
[o(nt), f]
|
9512
9566
|
]);
|
9513
9567
|
}
|
9514
|
-
}, se = /* @__PURE__ */ ge(
|
9568
|
+
}, se = /* @__PURE__ */ ge(Ou, [["__scopeId", "data-v-43e27395"]]), Iu = { class: "flex items-center justify-between gap-x-3 p-3" }, Tu = { class: "flex items-center gap-x-3" }, Du = {
|
9515
9569
|
key: 0,
|
9516
9570
|
class: "bg-oc-warning-50 text-oc-warning shrink-0 px-2 rounded-sm uppercase text-xs font-medium"
|
9517
|
-
},
|
9571
|
+
}, Au = {
|
9518
9572
|
key: 1,
|
9519
9573
|
class: "bg-oc-accent-2-50 text-oc-accent-2 shrink-0 px-2 rounded-sm uppercase text-xs font-medium"
|
9520
|
-
},
|
9574
|
+
}, ju = {
|
9521
9575
|
key: 2,
|
9522
9576
|
class: "bg-oc-accent-2-50 text-oc-accent-2 shrink-0 px-2 rounded-sm uppercase text-xs font-medium"
|
9523
|
-
},
|
9577
|
+
}, Mu = {
|
9524
9578
|
key: 0,
|
9525
9579
|
class: "p-3 text-sm text-oc-text-300"
|
9526
9580
|
}, be = {
|
@@ -9547,28 +9601,28 @@ const lc = { class: "flex flex-col gap-y-2 w-full" }, ac = {
|
|
9547
9601
|
return (a, l) => (t(), i("div", {
|
9548
9602
|
class: v(["flex flex-col cursor-pointer rounded-sm hover:bg-oc-accent-1-50", r.value[e.variant]])
|
9549
9603
|
}, [
|
9550
|
-
n("div",
|
9551
|
-
n("div",
|
9604
|
+
n("div", Iu, [
|
9605
|
+
n("div", Tu, [
|
9552
9606
|
e.icon ? (t(), y(o(T), F({
|
9553
9607
|
key: 0,
|
9554
9608
|
class: "w-5 h-5",
|
9555
9609
|
name: e.icon
|
9556
9610
|
}, e.iconProps, { class: e.iconClasses }), null, 16, ["name", "class"])) : u("", !0),
|
9557
|
-
n("span", null,
|
9611
|
+
n("span", null, w(e.text), 1),
|
9558
9612
|
$(a.$slots, "badge")
|
9559
9613
|
]),
|
9560
|
-
e.isBeta ? (t(), i("div",
|
9614
|
+
e.isBeta ? (t(), i("div", Du, " BETA ")) : e.isNew ? (t(), i("div", Au, " NEW ")) : e.isTryIt ? (t(), i("div", ju, " TRY IT ")) : u("", !0)
|
9561
9615
|
]),
|
9562
|
-
e.subText ? (t(), i("div",
|
9563
|
-
n("span", null,
|
9616
|
+
e.subText ? (t(), i("div", Mu, [
|
9617
|
+
n("span", null, w(e.subText), 1)
|
9564
9618
|
])) : u("", !0)
|
9565
9619
|
], 2));
|
9566
9620
|
}
|
9567
|
-
},
|
9621
|
+
}, Lu = { class: "oc-tooltip-wrapper" }, Pu = {
|
9568
9622
|
key: 0,
|
9569
9623
|
class: "oc-arrow",
|
9570
9624
|
"data-popper-arrow": ""
|
9571
|
-
},
|
9625
|
+
}, Eu = {
|
9572
9626
|
__name: "OcTooltip",
|
9573
9627
|
props: {
|
9574
9628
|
popperClass: {
|
@@ -9623,7 +9677,8 @@ const lc = { class: "flex flex-col gap-y-2 w-full" }, ac = {
|
|
9623
9677
|
},
|
9624
9678
|
setup(e) {
|
9625
9679
|
const r = e, a = M(!1), l = M(), s = M(), d = M(), c = () => {
|
9626
|
-
|
9680
|
+
var x;
|
9681
|
+
a.value = !0, (x = d.value.popperInstance) == null || x.update(), r.hideAfter && setTimeout(() => m(), r.hideAfter);
|
9627
9682
|
}, m = () => a.value = !1;
|
9628
9683
|
we(() => {
|
9629
9684
|
if (r.trigger === "hover") {
|
@@ -9643,7 +9698,7 @@ const lc = { class: "flex flex-col gap-y-2 w-full" }, ac = {
|
|
9643
9698
|
const f = () => {
|
9644
9699
|
a.value && m();
|
9645
9700
|
};
|
9646
|
-
return (x, g) => Oe((t(), i("span",
|
9701
|
+
return (x, g) => Oe((t(), i("span", Lu, [
|
9647
9702
|
p(o(bt), {
|
9648
9703
|
ref_key: "popper",
|
9649
9704
|
ref: d,
|
@@ -9662,7 +9717,7 @@ const lc = { class: "flex flex-col gap-y-2 w-full" }, ac = {
|
|
9662
9717
|
class: v(["oc-tooltip", e.popperClass])
|
9663
9718
|
}, [
|
9664
9719
|
$(x.$slots, "popper", {}, void 0, !0),
|
9665
|
-
e.arrowHidden ? u("", !0) : (t(), i("div",
|
9720
|
+
e.arrowHidden ? u("", !0) : (t(), i("div", Pu))
|
9666
9721
|
], 2), [
|
9667
9722
|
[Ee, a.value]
|
9668
9723
|
])
|
@@ -9685,14 +9740,14 @@ const lc = { class: "flex flex-col gap-y-2 w-full" }, ac = {
|
|
9685
9740
|
[o(nt), f]
|
9686
9741
|
]);
|
9687
9742
|
}
|
9688
|
-
}, ae = /* @__PURE__ */ ge(
|
9743
|
+
}, ae = /* @__PURE__ */ ge(Eu, [["__scopeId", "data-v-7680cf01"]]), Nu = {
|
9689
9744
|
key: 0,
|
9690
9745
|
id: "modal-overlay-wrapper",
|
9691
9746
|
class: "fixed w-screen z-[1008] top-0 left-0 h-full min-h-screen bg-black/[.45] flex items-center justify-center"
|
9692
|
-
},
|
9747
|
+
}, zu = { class: "flex flex-col gap-y-1 overflow-hidden" }, Ru = { class: "text-lg font-medium text-ellipsis overflow-hidden whitespace-nowrap" }, Fu = {
|
9693
9748
|
key: 0,
|
9694
9749
|
class: "text-sm text-oc-text-300 text-ellipsis overflow-hidden whitespace-nowrap"
|
9695
|
-
},
|
9750
|
+
}, Uu = ["id"], qu = {
|
9696
9751
|
__name: "OcModal",
|
9697
9752
|
props: {
|
9698
9753
|
isBorderless: Boolean,
|
@@ -9789,7 +9844,7 @@ const lc = { class: "flex flex-col gap-y-2 w-full" }, ac = {
|
|
9789
9844
|
), Ft(() => {
|
9790
9845
|
var g;
|
9791
9846
|
(g = f.value) == null || g.removeEventListener("scroll", x);
|
9792
|
-
}), (g, k) => e.modelValue ? (t(), i("div",
|
9847
|
+
}), (g, k) => e.modelValue ? (t(), i("div", Nu, [
|
9793
9848
|
n("div", {
|
9794
9849
|
class: "w-full h-full absolute top-0 left-0 z-[1008]",
|
9795
9850
|
onClick: d
|
@@ -9802,10 +9857,10 @@ const lc = { class: "flex flex-col gap-y-2 w-full" }, ac = {
|
|
9802
9857
|
class: v(["flex bg-inherit border-oc-gray-200 gap-x-9 justify-between p-5 items-start rounded-t-xl", e.isBorderless ? "" : "border-b"])
|
9803
9858
|
}, [
|
9804
9859
|
$(g.$slots, "header", {}, () => [
|
9805
|
-
n("div",
|
9806
|
-
n("span",
|
9860
|
+
n("div", zu, [
|
9861
|
+
n("span", Ru, w(e.title), 1),
|
9807
9862
|
$(g.$slots, "description", {}, () => [
|
9808
|
-
e.description ? (t(), i("span",
|
9863
|
+
e.description ? (t(), i("span", Fu, w(e.description), 1)) : u("", !0)
|
9809
9864
|
])
|
9810
9865
|
]),
|
9811
9866
|
e.isCloseIcon ? (t(), i("div", {
|
@@ -9829,7 +9884,7 @@ const lc = { class: "flex flex-col gap-y-2 w-full" }, ac = {
|
|
9829
9884
|
onScroll: k[1] || (k[1] = (A) => l("content-scroll", A))
|
9830
9885
|
}, [
|
9831
9886
|
$(g.$slots, "default")
|
9832
|
-
], 42,
|
9887
|
+
], 42, Uu),
|
9833
9888
|
e.isFooterVisible ? (t(), i("div", {
|
9834
9889
|
key: 1,
|
9835
9890
|
class: v(["px-5 py-6 border-oc-gray-200 flex gap-x-4", [
|
@@ -9840,12 +9895,12 @@ const lc = { class: "flex flex-col gap-y-2 w-full" }, ac = {
|
|
9840
9895
|
]])
|
9841
9896
|
}, [
|
9842
9897
|
$(g.$slots, "footer", {}, () => [
|
9843
|
-
p(o(
|
9898
|
+
p(o(K), F({
|
9844
9899
|
label: "Cancel",
|
9845
9900
|
variant: "secondary",
|
9846
9901
|
class: "min-w-[112px]"
|
9847
9902
|
}, e.cancelButtonProps, { onClick: c }), null, 16),
|
9848
|
-
p(o(
|
9903
|
+
p(o(K), F({
|
9849
9904
|
label: "OK",
|
9850
9905
|
class: "min-w-[112px]"
|
9851
9906
|
}, e.confirmButtonProps, {
|
@@ -9856,10 +9911,10 @@ const lc = { class: "flex flex-col gap-y-2 w-full" }, ac = {
|
|
9856
9911
|
], 2)
|
9857
9912
|
])) : u("", !0);
|
9858
9913
|
}
|
9859
|
-
},
|
9914
|
+
}, Hu = {
|
9860
9915
|
key: 0,
|
9861
9916
|
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"
|
9862
|
-
},
|
9917
|
+
}, Yu = { class: "w-[calc(100%-40px)] h-[calc(100%-40px)]" }, Wu = { class: "modal-body p-9" }, Vf = {
|
9863
9918
|
__name: "OcModalPage",
|
9864
9919
|
props: {
|
9865
9920
|
modelValue: {
|
@@ -9890,8 +9945,8 @@ const lc = { class: "flex flex-col gap-y-2 w-full" }, ac = {
|
|
9890
9945
|
emits: ["update:modelValue", "back", "click:outside"],
|
9891
9946
|
setup(e, { emit: r }) {
|
9892
9947
|
const a = r;
|
9893
|
-
return (l, s) => e.modelValue ? (t(), i("div",
|
9894
|
-
n("div",
|
9948
|
+
return (l, s) => e.modelValue ? (t(), i("div", Hu, [
|
9949
|
+
n("div", Yu, [
|
9895
9950
|
$(l.$slots, "top"),
|
9896
9951
|
n("div", {
|
9897
9952
|
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])
|
@@ -9901,7 +9956,7 @@ const lc = { class: "flex flex-col gap-y-2 w-full" }, ac = {
|
|
9901
9956
|
class: "py-3 px-4 rounded cursor-pointer text-oc-gray-400 hover:bg-gray-100 hover:text-oc-text absolute top-5 left-5",
|
9902
9957
|
onClick: s[0] || (s[0] = (d) => a("back"))
|
9903
9958
|
}, [
|
9904
|
-
p(o(
|
9959
|
+
p(o(K), {
|
9905
9960
|
variant: "secondary",
|
9906
9961
|
"is-transparent": "",
|
9907
9962
|
label: "Back",
|
@@ -9919,14 +9974,14 @@ const lc = { class: "flex flex-col gap-y-2 w-full" }, ac = {
|
|
9919
9974
|
}),
|
9920
9975
|
s[2] || (s[2] = n("span", null, "Close", -1))
|
9921
9976
|
]),
|
9922
|
-
n("div",
|
9977
|
+
n("div", Wu, [
|
9923
9978
|
$(l.$slots, "default")
|
9924
9979
|
])
|
9925
9980
|
], 2)
|
9926
9981
|
])
|
9927
9982
|
])) : u("", !0);
|
9928
9983
|
}
|
9929
|
-
},
|
9984
|
+
}, Ku = { class: "text-center" }, Gu = ["innerHTML"], Xu = {
|
9930
9985
|
__name: "OcConfirmation",
|
9931
9986
|
props: {
|
9932
9987
|
description: String,
|
@@ -9965,14 +10020,14 @@ const lc = { class: "flex flex-col gap-y-2 w-full" }, ac = {
|
|
9965
10020
|
name: e.icon ?? r[e.variant]
|
9966
10021
|
}, null, 8, ["name"])
|
9967
10022
|
], 2)),
|
9968
|
-
n("div",
|
10023
|
+
n("div", Ku, [
|
9969
10024
|
$(l.$slots, "description", {}, () => [
|
9970
|
-
n("span", { innerHTML: e.description }, null, 8,
|
10025
|
+
n("span", { innerHTML: e.description }, null, 8, Gu)
|
9971
10026
|
])
|
9972
10027
|
])
|
9973
10028
|
], 2));
|
9974
10029
|
}
|
9975
|
-
},
|
10030
|
+
}, Ju = {
|
9976
10031
|
__name: "OcConfirmationModal",
|
9977
10032
|
props: {
|
9978
10033
|
modelValue: {
|
@@ -10045,7 +10100,7 @@ const lc = { class: "flex flex-col gap-y-2 w-full" }, ac = {
|
|
10045
10100
|
})), c = (m) => {
|
10046
10101
|
l("update:model-value", m), l("cancel");
|
10047
10102
|
};
|
10048
|
-
return (m, f) => (t(), y(o(
|
10103
|
+
return (m, f) => (t(), y(o(qu), {
|
10049
10104
|
size: "small",
|
10050
10105
|
"model-value": e.modelValue,
|
10051
10106
|
title: e.title,
|
@@ -10068,7 +10123,7 @@ const lc = { class: "flex flex-col gap-y-2 w-full" }, ac = {
|
|
10068
10123
|
onCancel: f[1] || (f[1] = (x) => m.$emit("cancel"))
|
10069
10124
|
}, {
|
10070
10125
|
default: S(() => [
|
10071
|
-
p(
|
10126
|
+
p(Xu, {
|
10072
10127
|
"icon-class": e.iconClass,
|
10073
10128
|
variant: e.variant,
|
10074
10129
|
description: e.description,
|
@@ -10088,10 +10143,10 @@ const lc = { class: "flex flex-col gap-y-2 w-full" }, ac = {
|
|
10088
10143
|
_: 3
|
10089
10144
|
}, 8, ["model-value", "title", "persistent", "cancel-button-props", "confirm-button-props"]));
|
10090
10145
|
}
|
10091
|
-
},
|
10146
|
+
}, Zu = { class: "fixed bottom-[30px] right-[32px]" }, Qu = { class: "relative" }, _u = {
|
10092
10147
|
key: 0,
|
10093
10148
|
class: "flex items-center justify-end"
|
10094
|
-
},
|
10149
|
+
}, em = { class: "w-[40px] flex text-white items-center bg-oc-text active:bg-oc-gray-800 justify-center aspect-square rounded-full cursor-pointer" }, tm = { class: "min-w-[180px]" }, lm = { class: "p-3" }, am = { class: "uppercase text-oc-text-400 text-xs font-medium" }, Of = /* @__PURE__ */ Z({
|
10095
10150
|
__name: "OcSupportMenu",
|
10096
10151
|
props: {
|
10097
10152
|
modelValue: {
|
@@ -10129,7 +10184,7 @@ const lc = { class: "flex flex-col gap-y-2 w-full" }, ac = {
|
|
10129
10184
|
const r = {
|
10130
10185
|
arrowHidden: !0
|
10131
10186
|
};
|
10132
|
-
return (a, l) => (t(), i("div",
|
10187
|
+
return (a, l) => (t(), i("div", Zu, [
|
10133
10188
|
p(o(se), {
|
10134
10189
|
"model-value": e.modelValue,
|
10135
10190
|
"popper-options": r,
|
@@ -10138,10 +10193,10 @@ const lc = { class: "flex flex-col gap-y-2 w-full" }, ac = {
|
|
10138
10193
|
"onUpdate:modelValue": l[0] || (l[0] = (s) => a.$emit("update:modelValue", s))
|
10139
10194
|
}, {
|
10140
10195
|
menu: S(() => [
|
10141
|
-
n("div",
|
10196
|
+
n("div", tm, [
|
10142
10197
|
(t(!0), i(N, null, R(e.topMenu, (s, d) => (t(), i(N, { key: d }, [
|
10143
|
-
n("div",
|
10144
|
-
n("span",
|
10198
|
+
n("div", lm, [
|
10199
|
+
n("span", am, w(s.title), 1)
|
10145
10200
|
]),
|
10146
10201
|
(t(!0), i(N, null, R(s.items, (c, m) => (t(), y(o(be), F({
|
10147
10202
|
key: m,
|
@@ -10182,11 +10237,11 @@ const lc = { class: "flex flex-col gap-y-2 w-full" }, ac = {
|
|
10182
10237
|
])
|
10183
10238
|
]),
|
10184
10239
|
default: S(() => [
|
10185
|
-
n("div",
|
10186
|
-
e.isPointed ? (t(), i("div",
|
10240
|
+
n("div", Qu, [
|
10241
|
+
e.isPointed ? (t(), i("div", _u, l[1] || (l[1] = [
|
10187
10242
|
n("div", { class: "w-[6px] aspect-square rounded-full bg-oc-error" }, null, -1)
|
10188
10243
|
]))) : u("", !0),
|
10189
|
-
n("div",
|
10244
|
+
n("div", em, [
|
10190
10245
|
p(o(T), {
|
10191
10246
|
name: "question",
|
10192
10247
|
width: "33",
|
@@ -10199,7 +10254,7 @@ const lc = { class: "flex flex-col gap-y-2 w-full" }, ac = {
|
|
10199
10254
|
}, 8, ["model-value"])
|
10200
10255
|
]));
|
10201
10256
|
}
|
10202
|
-
}),
|
10257
|
+
}), nm = { class: "px-3 py-2 text-oc-text-400 text-sm font-medium" }, je = /* @__PURE__ */ Z({
|
10203
10258
|
__name: "OcCopyTooltip",
|
10204
10259
|
props: {
|
10205
10260
|
value: [String, Blob],
|
@@ -10229,7 +10284,7 @@ const lc = { class: "flex flex-col gap-y-2 w-full" }, ac = {
|
|
10229
10284
|
distance: 20
|
10230
10285
|
}, e.tooltipOptions), {
|
10231
10286
|
popper: S(() => [
|
10232
|
-
n("div",
|
10287
|
+
n("div", nm, w(e.tooltipText), 1)
|
10233
10288
|
]),
|
10234
10289
|
default: S(({ isShow: s }) => [
|
10235
10290
|
n("div", {
|
@@ -10248,7 +10303,7 @@ const lc = { class: "flex flex-col gap-y-2 w-full" }, ac = {
|
|
10248
10303
|
_: 3
|
10249
10304
|
}, 16));
|
10250
10305
|
}
|
10251
|
-
}),
|
10306
|
+
}), im = { class: "flex justify-center pt-[75px] items-start backdrop-blur-sm" }, om = { class: "bg-white relative z-10 rounded pb-3 max-w-[320px] w-[96vw] shadow" }, sm = { class: "flex flex-col gap-y-7 p-5" }, rm = { class: "min-w-[142px] pt-7 flex justify-center items-center" }, dm = ["src"], cm = { class: "flex text-center flex-col gap-y-3" }, um = { class: "text-lg flex justify-center gap-x-3 items-center font-medium" }, mm = { class: "text-oc-text-400" }, fm = { class: "py-6 px-5 flex items-center justify-center" }, If = /* @__PURE__ */ Z({
|
10252
10307
|
__name: "OcWhiteList",
|
10253
10308
|
props: {
|
10254
10309
|
buttonProps: {
|
@@ -10264,30 +10319,30 @@ const lc = { class: "flex flex-col gap-y-2 w-full" }, ac = {
|
|
10264
10319
|
description: String
|
10265
10320
|
},
|
10266
10321
|
setup(e) {
|
10267
|
-
return (r, a) => (t(), i("div",
|
10322
|
+
return (r, a) => (t(), i("div", im, [
|
10268
10323
|
a[0] || (a[0] = n("div", { class: "absolute w-full h-full top-0 left-0 bg-oc-gray-50 opacity-80" }, null, -1)),
|
10269
|
-
n("div",
|
10270
|
-
n("div",
|
10324
|
+
n("div", om, [
|
10325
|
+
n("div", sm, [
|
10271
10326
|
$(r.$slots, "logo", {}, () => [
|
10272
|
-
n("div",
|
10327
|
+
n("div", rm, [
|
10273
10328
|
n("img", {
|
10274
10329
|
src: e.imagePath,
|
10275
10330
|
alt: "logo"
|
10276
|
-
}, null, 8,
|
10331
|
+
}, null, 8, dm)
|
10277
10332
|
])
|
10278
10333
|
]),
|
10279
|
-
n("div",
|
10280
|
-
n("div",
|
10281
|
-
W(
|
10334
|
+
n("div", cm, [
|
10335
|
+
n("div", um, [
|
10336
|
+
W(w(e.title) + " ", 1),
|
10282
10337
|
e.tagOptions ? (t(), y(o(Ht), me(F({ key: 0 }, e.tagOptions)), null, 16)) : u("", !0)
|
10283
10338
|
]),
|
10284
|
-
n("span",
|
10339
|
+
n("span", mm, w(e.description), 1)
|
10285
10340
|
]),
|
10286
10341
|
$(r.$slots, "bottom")
|
10287
10342
|
]),
|
10288
|
-
n("div",
|
10343
|
+
n("div", fm, [
|
10289
10344
|
$(r.$slots, "footer", {}, () => [
|
10290
|
-
p(o(
|
10345
|
+
p(o(K), F({
|
10291
10346
|
label: "Request Access",
|
10292
10347
|
class: "w-fit"
|
10293
10348
|
}, e.buttonProps), null, 16)
|
@@ -10296,7 +10351,7 @@ const lc = { class: "flex flex-col gap-y-2 w-full" }, ac = {
|
|
10296
10351
|
])
|
10297
10352
|
]));
|
10298
10353
|
}
|
10299
|
-
}),
|
10354
|
+
}), Tf = {
|
10300
10355
|
__name: "OcFormBuilder",
|
10301
10356
|
props: {
|
10302
10357
|
id: {
|
@@ -10336,80 +10391,80 @@ const lc = { class: "flex flex-col gap-y-2 w-full" }, ac = {
|
|
10336
10391
|
},
|
10337
10392
|
emits: ["onUpdate"],
|
10338
10393
|
setup(e, { emit: r }) {
|
10339
|
-
const a = e, l = r, s = (
|
10340
|
-
l("onUpdate",
|
10394
|
+
const a = e, l = r, s = (b, V) => {
|
10395
|
+
l("onUpdate", b, V);
|
10341
10396
|
}, d = {
|
10342
|
-
CardInput:
|
10343
|
-
CheckboxesGroup:
|
10397
|
+
CardInput: pr,
|
10398
|
+
CheckboxesGroup: hr,
|
10344
10399
|
Input: xe,
|
10345
|
-
NumberInput:
|
10346
|
-
LinkInput:
|
10347
|
-
Select:
|
10348
|
-
TextArea:
|
10400
|
+
NumberInput: Vu,
|
10401
|
+
LinkInput: md,
|
10402
|
+
Select: ad,
|
10403
|
+
TextArea: gd,
|
10349
10404
|
Toggle: wt,
|
10350
|
-
RadioGroup:
|
10351
|
-
TimePicker:
|
10352
|
-
DatePicker:
|
10405
|
+
RadioGroup: Hr,
|
10406
|
+
TimePicker: pm,
|
10407
|
+
DatePicker: mc,
|
10353
10408
|
Checkbox: Te,
|
10354
10409
|
Slider: Lt,
|
10355
|
-
RangeInput:
|
10356
|
-
PhoneInput:
|
10357
|
-
SectionItem:
|
10358
|
-
SelectOptions:
|
10359
|
-
}, c = (
|
10360
|
-
const
|
10410
|
+
RangeInput: Gr,
|
10411
|
+
PhoneInput: zr,
|
10412
|
+
SectionItem: Vc,
|
10413
|
+
SelectOptions: Ac
|
10414
|
+
}, c = (b) => d[b] ? d[b] : null, m = z(() => {
|
10415
|
+
const b = (L) => L.split(`
|
10361
10416
|
`).map((E) => E.trim()).filter(Boolean).map((E) => `"${E}"`).join(" "), V = {};
|
10362
10417
|
return Object.entries(a.grid).forEach(([L, E]) => {
|
10363
10418
|
Object.entries(E).forEach(([P, D]) => {
|
10364
|
-
V[`--grid-${L}-${P}`] = P === "area" ?
|
10419
|
+
V[`--grid-${L}-${P}`] = P === "area" ? b(D) : D;
|
10365
10420
|
});
|
10366
10421
|
}), V;
|
10367
|
-
}), f = (
|
10422
|
+
}), f = (b) => typeof b == "object" ? b[0].key : b, x = (b) => `grid-area: ${f(b)}`, g = z(() => a.class), k = M({}), A = M({}), j = M({}), I = (b) => typeof b == "object" ? b[0].key : b, C = (b) => {
|
10368
10423
|
a.jsonForm.forEach((V) => {
|
10369
10424
|
var L;
|
10370
10425
|
if (typeof V.name == "object") {
|
10371
10426
|
let E = null;
|
10372
10427
|
V.name.forEach((P) => {
|
10373
|
-
|
10428
|
+
b[P.key] && (E ? E.push(b[P.key]) : E = [b[P.key]]);
|
10374
10429
|
}), k.value[I(V.name)] = E, O(V);
|
10375
10430
|
} else
|
10376
|
-
(L = V.props) != null && L.parentKey ? (k.value[V.props.parentKey] =
|
10431
|
+
(L = V.props) != null && L.parentKey ? (k.value[V.props.parentKey] = b[V.props.parentKey] ?? {}, k.value[V.props.parentKey][V.name] = b[V.props.parentKey][V.name] ?? "") : k.value[V.name] = b[V.name] ?? "", O(V);
|
10377
10432
|
});
|
10378
10433
|
}, h = () => {
|
10379
|
-
a.jsonForm.forEach((
|
10380
|
-
if (typeof
|
10434
|
+
a.jsonForm.forEach((b) => {
|
10435
|
+
if (typeof b.name == "object") {
|
10381
10436
|
let V = [];
|
10382
|
-
|
10437
|
+
b.name.forEach((L) => {
|
10383
10438
|
a.errors[L.key] && V.push(a.errors[L.key]);
|
10384
|
-
}), A.value[I(
|
10439
|
+
}), A.value[I(b.name)] = V.join(",");
|
10385
10440
|
} else
|
10386
|
-
A.value[
|
10441
|
+
A.value[b.name] = a.errors[b.name] ?? "";
|
10387
10442
|
});
|
10388
10443
|
}, B = z(() => ({
|
10389
10444
|
...a.logicValues,
|
10390
10445
|
...k.value
|
10391
|
-
})), O = (
|
10392
|
-
if (
|
10393
|
-
let V =
|
10394
|
-
if (
|
10395
|
-
if (
|
10396
|
-
if (Array.isArray(
|
10446
|
+
})), O = (b) => {
|
10447
|
+
if (b.show_if || b.show_if_preview) {
|
10448
|
+
let V = b.class ? b.class : "";
|
10449
|
+
if (b.show_if)
|
10450
|
+
if (b.show_if_value !== void 0)
|
10451
|
+
if (Array.isArray(b.show_if_value)) {
|
10397
10452
|
let L = 0;
|
10398
|
-
|
10453
|
+
b.show_if.forEach((E, P) => {
|
10399
10454
|
var D;
|
10400
|
-
|
10401
|
-
}), (
|
10402
|
-
} else
|
10403
|
-
else
|
10404
|
-
else
|
10405
|
-
typeof
|
10455
|
+
b.show_if_value[P] === "arrayExist" ? (D = B.value[b.show_if[P]]) != null && D.length && (L = L + 1) : b.show_if_value[P] === B.value[b.show_if[P]] && (L = L + 1);
|
10456
|
+
}), (b.show_if_one && L < 1 || !b.show_if_one && L < b.show_if.length) && (V = V + " hidden");
|
10457
|
+
} else b.show_if_value !== B.value[b.show_if] && (V = V + " hidden");
|
10458
|
+
else b.show_if_not !== void 0 ? b.show_if_not === B.value[b.show_if] && (V = V + " hidden") : b.show_if_min !== void 0 && (isNaN(parseInt(B.value[b.show_if])) ? 1 : parseInt(B.value[b.show_if])) < parseInt(b.show_if_min) && (V = V + " hidden");
|
10459
|
+
else b.show_if_preview && (b.show_if_preview_only !== void 0 ? b.show_if_preview_only !== a.previewMode && (V = V + " hidden") : b.show_if_preview_not !== void 0 && b.show_if_preview_not === a.previewMode && (V = V + " hidden"));
|
10460
|
+
typeof b.name == "object" ? j.value[I(b.name)] = V : j.value[b.name] = V;
|
10406
10461
|
} else
|
10407
|
-
j.value[
|
10462
|
+
j.value[b.name] = b.class ? b.class : "";
|
10408
10463
|
};
|
10409
10464
|
return ue(
|
10410
10465
|
() => a.values,
|
10411
|
-
(
|
10412
|
-
C(
|
10466
|
+
(b) => {
|
10467
|
+
C(b);
|
10413
10468
|
},
|
10414
10469
|
{
|
10415
10470
|
deep: !0
|
@@ -10424,7 +10479,7 @@ const lc = { class: "flex flex-col gap-y-2 w-full" }, ac = {
|
|
10424
10479
|
}
|
10425
10480
|
), ue(
|
10426
10481
|
() => a.errors,
|
10427
|
-
(
|
10482
|
+
(b) => {
|
10428
10483
|
h();
|
10429
10484
|
},
|
10430
10485
|
{
|
@@ -10437,13 +10492,13 @@ const lc = { class: "flex flex-col gap-y-2 w-full" }, ac = {
|
|
10437
10492
|
}
|
10438
10493
|
), we(() => {
|
10439
10494
|
C(a.values), h(a.errors);
|
10440
|
-
}), (
|
10495
|
+
}), (b, V) => Object.values(k.value).length > 0 ? (t(), i("div", {
|
10441
10496
|
key: 0,
|
10442
10497
|
class: v(e.grid ? `responsive-smart-form-grid ${g.value}` : g.value),
|
10443
10498
|
style: ie(e.grid ? m.value : "")
|
10444
10499
|
}, [
|
10445
10500
|
(t(!0), i(N, null, R(e.jsonForm, (L) => {
|
10446
|
-
var E, P, D, U, H,
|
10501
|
+
var E, P, D, U, H, G;
|
10447
10502
|
return t(), i("div", {
|
10448
10503
|
key: f(L.name),
|
10449
10504
|
style: ie(e.grid ? x(L.name) : ""),
|
@@ -10459,11 +10514,11 @@ const lc = { class: "flex flex-col gap-y-2 w-full" }, ac = {
|
|
10459
10514
|
"model-value": (E = L.props) != null && E.parentKey ? (D = (P = k.value) == null ? void 0 : P[L.props.parentKey]) == null ? void 0 : D[L.name] : k.value[typeof L.name == "object" ? I(L.name) : L.name],
|
10460
10515
|
"error-message": A.value[typeof L.name == "object" ? I(L.name) : L.name],
|
10461
10516
|
"onUpdate:modelValue": (_) => s(L, _)
|
10462
|
-
}), null, 16, ["model-value", "error-message", "onUpdate:modelValue"])) : $(
|
10517
|
+
}), null, 16, ["model-value", "error-message", "onUpdate:modelValue"])) : $(b.$slots, L.type, {
|
10463
10518
|
key: 1,
|
10464
10519
|
formId: e.id,
|
10465
10520
|
form: L,
|
10466
|
-
value: (U = L.props) != null && U.parentKey ? (
|
10521
|
+
value: (U = L.props) != null && U.parentKey ? (G = (H = k.value) == null ? void 0 : H[L.props.parentKey]) == null ? void 0 : G[L.name] : k.value[typeof L.name == "object" ? I(L.name) : L.name],
|
10467
10522
|
error: A.value[typeof L.name == "object" ? I(L.name) : L.name],
|
10468
10523
|
onUpdate: s
|
10469
10524
|
})
|
@@ -10471,129 +10526,130 @@ const lc = { class: "flex flex-col gap-y-2 w-full" }, ac = {
|
|
10471
10526
|
}), 128))
|
10472
10527
|
], 6)) : u("", !0);
|
10473
10528
|
}
|
10474
|
-
},
|
10475
|
-
() => import("./OcComplexCalendar-
|
10476
|
-
),
|
10477
|
-
() => import("./OcComplexDatePicker-
|
10478
|
-
), ot = de(() => import("./OcModalCropper-
|
10479
|
-
() => import("./ThumbnailTheme-
|
10480
|
-
),
|
10481
|
-
() => import("./ThumbnailSection-
|
10482
|
-
),
|
10483
|
-
() => import("./OcAccountSetupProgress-
|
10529
|
+
}, Df = de(() => import("./OcDataTable-CsQHegQT.js")), Af = de(() => import("./OcFilterSearch-D1gAk_Ea.js")), jf = de(() => import("./OcFilterSearchFor-CKrNeOon.js")), Mf = de(() => import("./OcFilterForm-DxNgWEC9.js")), vm = de(
|
10530
|
+
() => import("./OcComplexCalendar-CWPFV545.js")
|
10531
|
+
), Lf = de(
|
10532
|
+
() => import("./OcComplexDatePicker-DXg8PEZz.js")
|
10533
|
+
), ot = de(() => import("./OcModalCropper-DOSQE3NJ.js")), Pf = de(() => import("./OcCropper-BfXmon8i.js")), gm = de(() => import("./OcDraggable-CZT2mJvO.js")), Ef = de(() => import("./OcDraggableList-BMlc5DDP.js")), Nf = de(() => import("./OcEmojiPicker-vNLeufFJ.js")), zf = de(
|
10534
|
+
() => import("./ThumbnailTheme-Cb9Ya2ZK.js")
|
10535
|
+
), Rf = de(
|
10536
|
+
() => import("./ThumbnailSection-DvanWXUV.js")
|
10537
|
+
), Ff = de(() => import("./SubPlanCard-BTqSr2AX.js")), Uf = de(() => import("./OcTimePopup-CXGhaOev.js")), pm = de(() => import("./OcTimePicker-Cjo8eKGB.js")), qf = de(
|
10538
|
+
() => import("./OcAccountSetupProgress-g7V1kvOf.js")
|
10484
10539
|
);
|
10485
10540
|
export {
|
10486
|
-
|
10541
|
+
Xm as $,
|
10487
10542
|
gn as A,
|
10488
|
-
|
10543
|
+
K as B,
|
10489
10544
|
Te as C,
|
10490
|
-
|
10545
|
+
Ym as D,
|
10491
10546
|
hl as E,
|
10492
10547
|
$t as F,
|
10493
10548
|
Ue as G,
|
10494
|
-
|
10549
|
+
Rm as H,
|
10495
10550
|
ct as I,
|
10496
10551
|
ut as J,
|
10497
|
-
|
10498
|
-
|
10552
|
+
Nm as K,
|
10553
|
+
zm as L,
|
10499
10554
|
rt as M,
|
10500
|
-
|
10555
|
+
Vu as N,
|
10501
10556
|
Re as O,
|
10502
10557
|
dt as P,
|
10503
10558
|
rl as Q,
|
10504
10559
|
Pe as R,
|
10505
10560
|
Lt as S,
|
10506
10561
|
ul as T,
|
10507
|
-
|
10508
|
-
|
10509
|
-
|
10510
|
-
|
10562
|
+
Fm as U,
|
10563
|
+
Wm as V,
|
10564
|
+
Km as W,
|
10565
|
+
Jm as X,
|
10511
10566
|
Gn as Y,
|
10512
|
-
|
10567
|
+
Gm as Z,
|
10513
10568
|
he as _,
|
10514
|
-
|
10515
|
-
|
10569
|
+
pr as a,
|
10570
|
+
Zm as a0,
|
10516
10571
|
Qn as a1,
|
10517
|
-
|
10572
|
+
mf as a2,
|
10518
10573
|
Ko as a3,
|
10519
|
-
|
10520
|
-
|
10521
|
-
|
10522
|
-
|
10523
|
-
|
10524
|
-
|
10525
|
-
|
10526
|
-
|
10527
|
-
|
10528
|
-
|
10529
|
-
|
10530
|
-
|
10531
|
-
|
10532
|
-
|
10533
|
-
|
10534
|
-
|
10535
|
-
|
10536
|
-
|
10537
|
-
|
10574
|
+
yf as a4,
|
10575
|
+
pf as a5,
|
10576
|
+
uf as a6,
|
10577
|
+
ff as a7,
|
10578
|
+
Qm as a8,
|
10579
|
+
_m as a9,
|
10580
|
+
be as aA,
|
10581
|
+
qu as aB,
|
10582
|
+
Vf as aC,
|
10583
|
+
Of as aD,
|
10584
|
+
ae as aE,
|
10585
|
+
If as aF,
|
10586
|
+
it as aG,
|
10587
|
+
vm as aH,
|
10588
|
+
gm as aI,
|
10589
|
+
Uf as aJ,
|
10590
|
+
Af as aK,
|
10591
|
+
Mf as aL,
|
10592
|
+
jf as aM,
|
10538
10593
|
Df as aN,
|
10539
|
-
|
10540
|
-
|
10541
|
-
|
10542
|
-
|
10543
|
-
|
10544
|
-
|
10545
|
-
|
10546
|
-
|
10547
|
-
|
10548
|
-
|
10549
|
-
|
10550
|
-
|
10551
|
-
|
10552
|
-
|
10594
|
+
Lf as aO,
|
10595
|
+
ot as aP,
|
10596
|
+
Pf as aQ,
|
10597
|
+
Ef as aR,
|
10598
|
+
Nf as aS,
|
10599
|
+
zf as aT,
|
10600
|
+
Rf as aU,
|
10601
|
+
Ff as aV,
|
10602
|
+
pm as aW,
|
10603
|
+
qf as aX,
|
10604
|
+
ef as aa,
|
10605
|
+
tf as ab,
|
10606
|
+
lf as ac,
|
10607
|
+
af as ad,
|
10608
|
+
nf as ae,
|
10553
10609
|
qi as af,
|
10554
10610
|
Ei as ag,
|
10555
|
-
|
10556
|
-
|
10557
|
-
|
10558
|
-
|
10611
|
+
vf as ah,
|
10612
|
+
of as ai,
|
10613
|
+
sf as aj,
|
10614
|
+
rf as ak,
|
10559
10615
|
fo as al,
|
10560
10616
|
wo as am,
|
10561
10617
|
Bo as an,
|
10562
10618
|
To as ao,
|
10563
|
-
|
10564
|
-
|
10565
|
-
|
10566
|
-
|
10567
|
-
|
10568
|
-
|
10569
|
-
|
10570
|
-
|
10571
|
-
|
10572
|
-
|
10573
|
-
|
10574
|
-
|
10575
|
-
|
10619
|
+
df as ap,
|
10620
|
+
cf as aq,
|
10621
|
+
gf as ar,
|
10622
|
+
xf as as,
|
10623
|
+
bf as at,
|
10624
|
+
ne as au,
|
10625
|
+
wf as av,
|
10626
|
+
hf as aw,
|
10627
|
+
Ju as ax,
|
10628
|
+
je as ay,
|
10629
|
+
se as az,
|
10630
|
+
hr as b,
|
10631
|
+
kf as c,
|
10576
10632
|
xe as d,
|
10577
|
-
|
10578
|
-
|
10579
|
-
|
10580
|
-
|
10581
|
-
|
10582
|
-
|
10633
|
+
$f as e,
|
10634
|
+
zr as f,
|
10635
|
+
qr as g,
|
10636
|
+
Hr as h,
|
10637
|
+
Gr as i,
|
10638
|
+
ad as j,
|
10583
10639
|
gt as k,
|
10584
|
-
|
10585
|
-
|
10586
|
-
|
10587
|
-
|
10588
|
-
|
10589
|
-
|
10590
|
-
|
10591
|
-
|
10592
|
-
|
10593
|
-
|
10640
|
+
Sf as l,
|
10641
|
+
md as m,
|
10642
|
+
gd as n,
|
10643
|
+
nc as o,
|
10644
|
+
mc as p,
|
10645
|
+
Vc as q,
|
10646
|
+
Ac as r,
|
10647
|
+
Cf as s,
|
10648
|
+
Bf as t,
|
10649
|
+
Tf as u,
|
10594
10650
|
St as v,
|
10595
|
-
|
10596
|
-
|
10651
|
+
Hm as w,
|
10652
|
+
qm as x,
|
10597
10653
|
De as y,
|
10598
|
-
|
10654
|
+
Um as z
|
10599
10655
|
};
|