@orchidui/core 1.37.0 → 1.39.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/NewTable/OcNewTable.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 +1 -1
- package/dist/Elements/VerificationOption/OcVerificationOption.js +1 -1
- package/dist/Feedback/Banner/OcBanner.js +1 -1
- package/dist/Feedback/Chip/OcChip.js +1 -1
- package/dist/Feedback/ShareIcon/OcShareIcon.js +1 -1
- package/dist/Feedback/Snackbar/OcSnackbar.js +1 -1
- package/dist/Form/BaseInput/OcBaseInput.js +1 -1
- package/dist/Form/Button/OcButton.js +1 -1
- package/dist/Form/Calendar/OcCalendar.js +1 -1
- package/dist/Form/CardInput/OcCardInput.js +1 -1
- package/dist/Form/Checkbox/OcCheckbox.js +1 -1
- package/dist/Form/CheckboxesGroup/OcCheckboxesGroup.js +1 -1
- package/dist/Form/Criteria/OcCriteria.js +1 -1
- package/dist/Form/Cropper/OcCropper.js +1 -1
- package/dist/Form/DatePicker/OcDatePicker.js +1 -1
- package/dist/Form/EmojiPicker/OcEmojiPicker.js +1 -1
- package/dist/Form/Input/OcInput.js +1 -1
- package/dist/Form/LinkInput/OcLinkInput.js +1 -1
- package/dist/Form/MultipleUploadFile/OcMultipleUploadFile.js +1 -1
- package/dist/Form/NumberInput/OcNumberInput.js +1 -1
- package/dist/Form/PhoneInput/OcPhoneInput.js +1 -1
- package/dist/Form/Radio/OcRadio.js +1 -1
- package/dist/Form/RadioGroup/OcRadioGroup.js +1 -1
- package/dist/Form/RangeInput/OcRangeInput.js +1 -1
- package/dist/Form/SectionItem/OcSectionItem.js +1 -1
- package/dist/Form/Select/OcSelect.js +1 -1
- package/dist/Form/SelectOptions/OcSelectOptions.js +1 -1
- package/dist/Form/SingleFileUpload/OcSingleFileUpload.js +1 -1
- package/dist/Form/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-BPWhLYHi.js → OcAccountSetupProgress-CAsTFLzD.js} +1 -1
- package/dist/{OcComplexCalendar-BlOBT1La.js → OcComplexCalendar-BKht-iKa.js} +1 -1
- package/dist/{OcComplexDatePicker-DBFH7lmt.js → OcComplexDatePicker-CST3cyMh.js} +1 -1
- package/dist/{OcCropper-CuMnd2M3.js → OcCropper-DMvRM32l.js} +1 -1
- package/dist/{OcDataTable-COmYbRqV.js → OcDataTable-D1Lmh1Lj.js} +63 -58
- package/dist/{OcDraggableList-_PLGJGjR.js → OcDraggableList-CwGfz1m1.js} +1 -1
- package/dist/{OcEmojiPicker-oJ2P52ez.js → OcEmojiPicker-B5v0dgDQ.js} +1 -1
- package/dist/{OcFilterForm-PJ4ct9Oc.js → OcFilterForm-BfRaaBNx.js} +1 -1
- package/dist/{OcFilterSearch-DRhgRiRU.js → OcFilterSearch-eV23JjoR.js} +1 -1
- package/dist/{OcFilterSearchFor-CMADE-xY.js → OcFilterSearchFor-FKrmN6gd.js} +1 -1
- package/dist/{OcModalCropper-C9t83srb.js → OcModalCropper-BG0rGXgt.js} +2 -2
- package/dist/{OcTimePicker-p_UB8H14.js → OcTimePicker-C_OHCpVq.js} +1 -1
- package/dist/Overlay/ConfirmationModal/OcConfirmationModal.js +1 -1
- package/dist/Overlay/CopyTooltip/OcCopyTooltip.js +1 -1
- package/dist/Overlay/Dropdown/OcDropdown.js +1 -1
- package/dist/Overlay/Modal/OcModal.js +1 -1
- package/dist/Overlay/SupportMenu/OcSupportMenu.js +1 -1
- package/dist/Overlay/Tooltip/OcTooltip.js +1 -1
- package/dist/Overlay/Whitelist/OcWhiteList.js +1 -1
- package/dist/{SubPlanCard-BMMfelK9.js → SubPlanCard-DKX_tiqc.js} +1 -1
- package/dist/{ThumbnailSection-CWEcHMNd.js → ThumbnailSection-B7Vmk_YO.js} +1 -1
- package/dist/{ThumbnailTheme-DBWECYl_.js → ThumbnailTheme-B645KTkE.js} +1 -1
- package/dist/{index-DdH3wo6I.js → index-Bl4-MlMa.js} +365 -356
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { computed as P, ref as j, onMounted as Ce, createElementBlock as i, openBlock as t, normalizeClass as v, createCommentVNode as u, renderSlot as $, createElementVNode as n, createBlock as y, unref as o, Fragment as
|
|
1
|
+
import { computed as P, ref as j, onMounted as Ce, createElementBlock as i, openBlock as t, normalizeClass as v, createCommentVNode as u, renderSlot as $, createElementVNode as n, createBlock as y, unref as o, Fragment as R, renderList as q, withCtx as B, createTextVNode as J, toDisplayString as w, createVNode as p, resolveDynamicComponent as vt, normalizeProps as ke, mergeProps as W, guardReactiveProps as qe, withModifiers as fe, normalizeStyle as me, createSlots as ne, watch as ge, withDirectives as Fe, vShow as Qe, onBeforeUnmount as Xt, useSlots as Mt, defineComponent as Jt, nextTick as Ke, resolveComponent as Zt, onUnmounted as gt, reactive as Qt, Transition as Ye, useAttrs as _t, withKeys as ot, Teleport as el, defineAsyncComponent as xe } from "vue";
|
|
2
2
|
import { S as se } from "./OcSkeleton-BACPFrH2.js";
|
|
3
3
|
import { _ as Be } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
4
|
import { _ as T } from "./OcIcon-BedshzZm.js";
|
|
@@ -15,9 +15,9 @@ import "./OcSection-BjyapRr3.js";
|
|
|
15
15
|
import { _ as al } from "./OcTag-CuzgktNM.js";
|
|
16
16
|
import { preventEventIfNotNumberInput as nl } from "./composables/helpers.js";
|
|
17
17
|
import { parsePhoneNumber as il } from "libphonenumber-js";
|
|
18
|
-
import { deepEqual as
|
|
18
|
+
import { deepEqual as Re } from "./Form/Select/utils/deepEqual.js";
|
|
19
19
|
import { T as Pt } from "./OcToggle-DOfA-DZ8.js";
|
|
20
|
-
import { useUploadFileProgress as
|
|
20
|
+
import { useUploadFileProgress as Nt } from "./composables/uploadFileProgress.js";
|
|
21
21
|
import "./OcTheme-B6NTNYtz.js";
|
|
22
22
|
const ol = {
|
|
23
23
|
key: 0,
|
|
@@ -126,7 +126,7 @@ const ol = {
|
|
|
126
126
|
"is-checked": g.value.length === c.value.length && g.value.length > 0,
|
|
127
127
|
onSelectAll: b
|
|
128
128
|
}, null, 8, ["is-sticky", "class", "is-partial", "is-checked"])) : u("", !0),
|
|
129
|
-
(t(!0), i(
|
|
129
|
+
(t(!0), i(R, null, q(m.value, (V) => (t(), y(o(bt), {
|
|
130
130
|
key: V.key,
|
|
131
131
|
text: V.label,
|
|
132
132
|
"is-loading": e.isLoading,
|
|
@@ -152,7 +152,7 @@ const ol = {
|
|
|
152
152
|
}, 1032, ["text", "is-loading", "variant", "is-sticky", "class", "is-sortable", "sort-by", "onUpdate:sortBy"]))), 128))
|
|
153
153
|
], 2)
|
|
154
154
|
]),
|
|
155
|
-
e.isLoading ? (t(!0), i(
|
|
155
|
+
e.isLoading ? (t(!0), i(R, { key: 1 }, q(e.loadingRows, (V) => (t(), i("div", {
|
|
156
156
|
key: V,
|
|
157
157
|
class: v(["flex flex-wrap md:flex-nowrap group/row border-oc-gray-200 md:p-0 py-3", {
|
|
158
158
|
"pl-[40px]": s.value,
|
|
@@ -163,13 +163,13 @@ const ol = {
|
|
|
163
163
|
key: 0,
|
|
164
164
|
class: "opacity-0 flex justify-center absolute left-0 md:relative w-[5%]"
|
|
165
165
|
})) : u("", !0),
|
|
166
|
-
(t(!0), i(
|
|
166
|
+
(t(!0), i(R, null, q(m.value, (M, E) => (t(), y(o(tt), {
|
|
167
167
|
key: `${E}-${V}`,
|
|
168
168
|
class: v(M.class),
|
|
169
169
|
"is-loading": "",
|
|
170
170
|
"is-last": V === e.loadingRows
|
|
171
171
|
}, null, 8, ["class", "is-last"]))), 128))
|
|
172
|
-
], 2))), 128)) : (t(), i(
|
|
172
|
+
], 2))), 128)) : (t(), i(R, { key: 2 }, [
|
|
173
173
|
$(I.$slots, "table-body", {
|
|
174
174
|
fields: c.value,
|
|
175
175
|
headers: m.value,
|
|
@@ -182,7 +182,7 @@ const ol = {
|
|
|
182
182
|
rowLink: e.rowLink,
|
|
183
183
|
calculateRowClass: A.value
|
|
184
184
|
}, () => [
|
|
185
|
-
(t(!0), i(
|
|
185
|
+
(t(!0), i(R, null, q(c.value, (V, M) => (t(), i("div", {
|
|
186
186
|
key: `${f.value(V)}-${M}`,
|
|
187
187
|
class: v({
|
|
188
188
|
"border-b": c.value.length !== M + 1,
|
|
@@ -210,7 +210,7 @@ const ol = {
|
|
|
210
210
|
onSelected: (E) => x(V),
|
|
211
211
|
"onHover:field": S[0] || (S[0] = (E) => I.$emit("hover:cell", E))
|
|
212
212
|
}, null, 8, ["is-last", "is-selected", "class", "onSelected"])) : u("", !0),
|
|
213
|
-
(t(!0), i(
|
|
213
|
+
(t(!0), i(R, null, q(m.value, (E, U) => (t(), y(o(tt), {
|
|
214
214
|
key: `${U}-${M}`,
|
|
215
215
|
class: v(["flex border-oc-gray-200", [
|
|
216
216
|
typeof E.class == "function" ? E.class(V) : E.class,
|
|
@@ -300,12 +300,12 @@ const ol = {
|
|
|
300
300
|
e.isLoading ? (t(), y(o(se), {
|
|
301
301
|
key: 0,
|
|
302
302
|
class: "rounded-full w-full overflow-hidden h-6"
|
|
303
|
-
})) : (t(), i(
|
|
303
|
+
})) : (t(), i(R, { key: 1 }, [
|
|
304
304
|
e.variant === r.TEXT ? $(a.$slots, "default", { key: 0 }, () => [
|
|
305
305
|
J(w(e.text), 1)
|
|
306
306
|
]) : $(a.$slots, "default", { key: 1 }, () => [
|
|
307
307
|
n("div", sl, [
|
|
308
|
-
p(o(
|
|
308
|
+
p(o(ze), {
|
|
309
309
|
"model-value": e.isChecked,
|
|
310
310
|
"is-partial": e.isPartial,
|
|
311
311
|
"onUpdate:modelValue": s[0] || (s[0] = (d) => a.$emit("selectAll", d))
|
|
@@ -437,7 +437,7 @@ const ol = {
|
|
|
437
437
|
onMouseover: f[2] || (f[2] = (x) => m.$emit("hover:field", l))
|
|
438
438
|
}, [
|
|
439
439
|
$(m.$slots, "default", {}, () => [
|
|
440
|
-
e.variant === r.CHECKBOX ? (t(), y(o(
|
|
440
|
+
e.variant === r.CHECKBOX ? (t(), y(o(ze), {
|
|
441
441
|
key: 0,
|
|
442
442
|
"model-value": e.isSelected,
|
|
443
443
|
class: v(["m-auto justify-center items-center", e.isSelected ? "flex" : e.isSimple ? "" : "md:hidden group-hover/row:flex"]),
|
|
@@ -446,7 +446,7 @@ const ol = {
|
|
|
446
446
|
key: 1,
|
|
447
447
|
class: "w-6 h-6 mx-auto",
|
|
448
448
|
name: e.data
|
|
449
|
-
}, null, 8, ["name"])) : e.variant === r.IMAGE ? (t(), i(
|
|
449
|
+
}, null, 8, ["name"])) : e.variant === r.IMAGE ? (t(), i(R, { key: 2 }, [
|
|
450
450
|
e.data ? (t(), i("div", rl, [
|
|
451
451
|
n("img", {
|
|
452
452
|
class: v([e.imageClass, "h-full"]),
|
|
@@ -521,7 +521,7 @@ const ol = {
|
|
|
521
521
|
href: e.href,
|
|
522
522
|
target: "_blank",
|
|
523
523
|
rel: "noopener noreferrer"
|
|
524
|
-
}, w(e.title), 9, gl)) : (t(), i(
|
|
524
|
+
}, w(e.title), 9, gl)) : (t(), i(R, { key: 1 }, [
|
|
525
525
|
J(w(e.title), 1)
|
|
526
526
|
], 64)),
|
|
527
527
|
e.title ? u("", !0) : (t(), i("span", yl, "-"))
|
|
@@ -608,7 +608,7 @@ const ol = {
|
|
|
608
608
|
};
|
|
609
609
|
return (c, m) => {
|
|
610
610
|
var f, g;
|
|
611
|
-
return t(), i(
|
|
611
|
+
return t(), i(R, null, [
|
|
612
612
|
n("div", {
|
|
613
613
|
class: v(["grid min-h-[58px] items-center border-b border-oc-gray-200 min-w-max relative", {
|
|
614
614
|
"font-medium": e.important || e.isTotal,
|
|
@@ -631,7 +631,7 @@ const ol = {
|
|
|
631
631
|
class: v(["mx-auto transition-all duration-500", r.value ? "rotate-180" : ""])
|
|
632
632
|
}, null, 8, ["class"])) : u("", !0)
|
|
633
633
|
], 2),
|
|
634
|
-
e.isAlternative ? (t(!0), i(
|
|
634
|
+
e.isAlternative ? (t(!0), i(R, { key: 1 }, q(e.headers, (x, b) => {
|
|
635
635
|
var A;
|
|
636
636
|
return t(), i("div", {
|
|
637
637
|
key: x.key,
|
|
@@ -654,7 +654,7 @@ const ol = {
|
|
|
654
654
|
];
|
|
655
655
|
})
|
|
656
656
|
], 2);
|
|
657
|
-
}), 128)) : (t(), i(
|
|
657
|
+
}), 128)) : (t(), i(R, { key: 0 }, [
|
|
658
658
|
n("div", {
|
|
659
659
|
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" : ""])
|
|
660
660
|
}, [
|
|
@@ -689,7 +689,7 @@ const ol = {
|
|
|
689
689
|
class: "transition-all overflow-hidden duration-500",
|
|
690
690
|
style: me({ maxHeight: l.value })
|
|
691
691
|
}, [
|
|
692
|
-
(t(!0), i(
|
|
692
|
+
(t(!0), i(R, null, q(e.row.children, (x, b) => (t(), y(o(Ze), {
|
|
693
693
|
key: b,
|
|
694
694
|
row: x,
|
|
695
695
|
important: x.important,
|
|
@@ -699,7 +699,7 @@ const ol = {
|
|
|
699
699
|
value: e.value[x.key],
|
|
700
700
|
depth: e.depth + 1,
|
|
701
701
|
"is-sticky": e.isSticky
|
|
702
|
-
},
|
|
702
|
+
}, ne({ _: 2 }, [
|
|
703
703
|
q(c.$slots, (A, D) => ({
|
|
704
704
|
name: D,
|
|
705
705
|
fn: B((O) => [
|
|
@@ -737,7 +737,7 @@ const ol = {
|
|
|
737
737
|
n("div", {
|
|
738
738
|
class: v(["w-9 flex items-center justify-center border-b border-oc-text-200", e.isSticky ? "sticky left-0 z-20 bg-oc-gray-50 border-oc-gray-200" : ""])
|
|
739
739
|
}, null, 2),
|
|
740
|
-
(t(!0), i(
|
|
740
|
+
(t(!0), i(R, null, q(e.headers, (a, s) => (t(), i("div", {
|
|
741
741
|
key: a.key,
|
|
742
742
|
class: v(["py-3 px-4 text-xs text-oc-text-400 border-b border-oc-text-200 font-medium whitespace-nowrap", [
|
|
743
743
|
a.class,
|
|
@@ -786,13 +786,13 @@ const ol = {
|
|
|
786
786
|
setup(e) {
|
|
787
787
|
const r = e, l = P(() => Object.fromEntries(r.headers.map((a) => [a.key, ""])));
|
|
788
788
|
return (a, s) => (t(), i("div", Cl, [
|
|
789
|
-
e.isAlternative ? (t(), i(
|
|
789
|
+
e.isAlternative ? (t(), i(R, { key: 0 }, [
|
|
790
790
|
p(Sl, {
|
|
791
791
|
headers: e.headers,
|
|
792
792
|
"is-sticky": e.isSticky,
|
|
793
793
|
"grid-template-columns": e.gridTemplateColumns
|
|
794
794
|
}, null, 8, ["headers", "is-sticky", "grid-template-columns"]),
|
|
795
|
-
e.isLoading && !e.fields.length ? (t(!0), i(
|
|
795
|
+
e.isLoading && !e.fields.length ? (t(!0), i(R, { key: 0 }, q(e.loadingRows, (d) => (t(), y(Ze, {
|
|
796
796
|
key: d,
|
|
797
797
|
"is-loading": "",
|
|
798
798
|
"is-alternative": e.isAlternative,
|
|
@@ -800,7 +800,7 @@ const ol = {
|
|
|
800
800
|
headers: e.headers,
|
|
801
801
|
"is-sticky": e.isSticky,
|
|
802
802
|
"grid-template-columns": e.gridTemplateColumns
|
|
803
|
-
}, null, 8, ["is-alternative", "row", "headers", "is-sticky", "grid-template-columns"]))), 128)) : (t(!0), i(
|
|
803
|
+
}, null, 8, ["is-alternative", "row", "headers", "is-sticky", "grid-template-columns"]))), 128)) : (t(!0), i(R, { key: 1 }, q(e.fields, (d, c) => (t(), y(Ze, {
|
|
804
804
|
key: c,
|
|
805
805
|
row: d,
|
|
806
806
|
headers: e.headers,
|
|
@@ -809,7 +809,7 @@ const ol = {
|
|
|
809
809
|
"is-sticky": e.isSticky,
|
|
810
810
|
important: d.important,
|
|
811
811
|
"grid-template-columns": e.gridTemplateColumns
|
|
812
|
-
},
|
|
812
|
+
}, ne({ _: 2 }, [
|
|
813
813
|
q(a.$slots, (m, f) => ({
|
|
814
814
|
name: f,
|
|
815
815
|
fn: B((g) => [
|
|
@@ -817,7 +817,7 @@ const ol = {
|
|
|
817
817
|
])
|
|
818
818
|
}))
|
|
819
819
|
]), 1032, ["row", "headers", "is-loading", "is-alternative", "is-sticky", "important", "grid-template-columns"]))), 128))
|
|
820
|
-
], 64)) : (t(!0), i(
|
|
820
|
+
], 64)) : (t(!0), i(R, { key: 1 }, q(e.headers, (d, c) => (t(), y(Ze, {
|
|
821
821
|
key: c,
|
|
822
822
|
row: d,
|
|
823
823
|
headers: e.headers,
|
|
@@ -827,7 +827,7 @@ const ol = {
|
|
|
827
827
|
"is-sticky": e.isSticky,
|
|
828
828
|
important: d.important,
|
|
829
829
|
"grid-template-columns": e.gridTemplateColumns
|
|
830
|
-
},
|
|
830
|
+
}, ne({ _: 2 }, [
|
|
831
831
|
q(a.$slots, (m, f) => ({
|
|
832
832
|
name: f,
|
|
833
833
|
fn: B((g) => [
|
|
@@ -906,7 +906,7 @@ const ol = {
|
|
|
906
906
|
onClick: s[0] || (s[0] = (d) => e.modelValue > 1 ? a.$emit("update:modelValue", e.modelValue > 1 ? e.modelValue - 1 : e.modelValue) : "")
|
|
907
907
|
}, null, 8, ["disabled", "size"]),
|
|
908
908
|
n("div", Vl, [
|
|
909
|
-
(t(!0), i(
|
|
909
|
+
(t(!0), i(R, null, q(l.value, (d) => (t(), y(o($t), {
|
|
910
910
|
key: d,
|
|
911
911
|
size: e.size,
|
|
912
912
|
"is-rounded": e.isRounded,
|
|
@@ -1015,7 +1015,7 @@ const ol = {
|
|
|
1015
1015
|
n("div", {
|
|
1016
1016
|
class: v(["flex gap-x-5 items-start md:flex-row flex-col gap-y-3 md:gap-y-0", e.containerClass])
|
|
1017
1017
|
}, [
|
|
1018
|
-
(t(!0), i(
|
|
1018
|
+
(t(!0), i(R, null, q(e.items, (a, s) => (t(), y(o(st), {
|
|
1019
1019
|
key: s,
|
|
1020
1020
|
title: a.title,
|
|
1021
1021
|
class: v(["flex-1", a.class]),
|
|
@@ -1027,7 +1027,7 @@ const ol = {
|
|
|
1027
1027
|
info: a.info,
|
|
1028
1028
|
"icon-height": a.iconHeight,
|
|
1029
1029
|
"icon-width": a.iconWidth
|
|
1030
|
-
},
|
|
1030
|
+
}, ne({ _: 2 }, [
|
|
1031
1031
|
a.isWarning ? {
|
|
1032
1032
|
name: "warning",
|
|
1033
1033
|
fn: B(() => [
|
|
@@ -1039,7 +1039,7 @@ const ol = {
|
|
|
1039
1039
|
], 2)
|
|
1040
1040
|
]));
|
|
1041
1041
|
}
|
|
1042
|
-
},
|
|
1042
|
+
}, Rt = {
|
|
1043
1043
|
__name: "OcOverviewIcon",
|
|
1044
1044
|
props: {
|
|
1045
1045
|
icon: {
|
|
@@ -1081,10 +1081,10 @@ const ol = {
|
|
|
1081
1081
|
}, Ll = {
|
|
1082
1082
|
key: 0,
|
|
1083
1083
|
class: "flex flex-col gap-y-3 min-w-[132px]"
|
|
1084
|
-
}, jl = { class: "flex flex-col gap-y-px font-medium overflow-hidden" }, Ml = { class: "flex whitespace-nowrap items-start gap-x-3 text-xs text-oc-text-300" }, El = { class: "uppercase" }, Pl = { class: "px-3 bg-white text-center w-[175px] rounded py-2 text-oc-text-400 whitespace-break-spaces font-medium" },
|
|
1084
|
+
}, jl = { class: "flex flex-col gap-y-px font-medium overflow-hidden" }, Ml = { class: "flex whitespace-nowrap items-start gap-x-3 text-xs text-oc-text-300" }, El = { class: "uppercase" }, Pl = { class: "px-3 bg-white text-center w-[175px] rounded py-2 text-oc-text-400 whitespace-break-spaces font-medium" }, Nl = { class: "flex items-center gap-x-2 overflow-hidden" }, Rl = {
|
|
1085
1085
|
key: 0,
|
|
1086
1086
|
class: "flex items-center gap-x-3 overflow-hidden"
|
|
1087
|
-
},
|
|
1087
|
+
}, zl = { class: "truncate" }, Fl = { class: "flex items-center gap-x-1" }, Ul = { class: "text-oc-text-400 text-sm font-medium cursor-default" }, ql = { class: "px-3 bg-white text-center w-[175px] rounded py-2 text-oc-text-400 whitespace-break-spaces font-medium text-sm" }, st = {
|
|
1088
1088
|
__name: "OcOverviewItem",
|
|
1089
1089
|
props: {
|
|
1090
1090
|
icon: String,
|
|
@@ -1116,11 +1116,11 @@ const ol = {
|
|
|
1116
1116
|
e.isLoading ? (t(), i("div", Ll, [
|
|
1117
1117
|
p(o(se), { class: "w-[80%] h-[14px] rounded-sm" }),
|
|
1118
1118
|
p(o(se), { class: "w-full h-[20px] rounded-sm" })
|
|
1119
|
-
])) : (t(), i(
|
|
1119
|
+
])) : (t(), i(R, { key: 1 }, [
|
|
1120
1120
|
n("div", {
|
|
1121
1121
|
class: v(["flex items-center", e.isBig ? "gap-x-[.75rem]" : "gap-x-3"])
|
|
1122
1122
|
}, [
|
|
1123
|
-
e.icon ? (t(), y(o(
|
|
1123
|
+
e.icon ? (t(), y(o(Rt), {
|
|
1124
1124
|
key: 0,
|
|
1125
1125
|
icon: e.icon,
|
|
1126
1126
|
variant: e.variant,
|
|
@@ -1136,7 +1136,7 @@ const ol = {
|
|
|
1136
1136
|
position: "top",
|
|
1137
1137
|
"popper-options": { strategy: "fixed" },
|
|
1138
1138
|
"popper-class": "rounded-sm"
|
|
1139
|
-
}, e.tooltipOptions),
|
|
1139
|
+
}, e.tooltipOptions), ne({
|
|
1140
1140
|
default: B(() => [
|
|
1141
1141
|
e.info ? (t(), y(o(T), {
|
|
1142
1142
|
key: 0,
|
|
@@ -1157,7 +1157,7 @@ const ol = {
|
|
|
1157
1157
|
} : void 0
|
|
1158
1158
|
]), 1040)
|
|
1159
1159
|
]),
|
|
1160
|
-
n("div",
|
|
1160
|
+
n("div", Nl, [
|
|
1161
1161
|
e.isCard ? (t(), y(o(T), {
|
|
1162
1162
|
key: 0,
|
|
1163
1163
|
width: "35",
|
|
@@ -1167,15 +1167,15 @@ const ol = {
|
|
|
1167
1167
|
class: v([e.isBig ? "text-xl" : "", "truncate"])
|
|
1168
1168
|
}, [
|
|
1169
1169
|
$(r.$slots, "content", {}, () => [
|
|
1170
|
-
isNaN(e.percentValue) ? (t(), i(
|
|
1170
|
+
isNaN(e.percentValue) ? (t(), i(R, { key: 1 }, [
|
|
1171
1171
|
J(w(e.content), 1)
|
|
1172
|
-
], 64)) : (t(), i("div",
|
|
1173
|
-
n("div",
|
|
1172
|
+
], 64)) : (t(), i("div", Rl, [
|
|
1173
|
+
n("div", zl, w(e.content), 1),
|
|
1174
1174
|
p(o(re), {
|
|
1175
1175
|
position: "top",
|
|
1176
1176
|
"popper-class": "rounded-sm",
|
|
1177
1177
|
"popper-options": { strategy: "fixed" }
|
|
1178
|
-
},
|
|
1178
|
+
}, ne({
|
|
1179
1179
|
default: B(() => [
|
|
1180
1180
|
n("div", Fl, [
|
|
1181
1181
|
p(o(T), {
|
|
@@ -1271,7 +1271,7 @@ const ol = {
|
|
|
1271
1271
|
name: "filled-x-circle",
|
|
1272
1272
|
onClick: c[1] || (c[1] = (V) => a("closeCustomer"))
|
|
1273
1273
|
})) : u("", !0),
|
|
1274
|
-
e.customer ? (t(), i(
|
|
1274
|
+
e.customer ? (t(), i(R, { key: 2 }, [
|
|
1275
1275
|
n("div", Hl, [
|
|
1276
1276
|
p(o(xt), {
|
|
1277
1277
|
class: "shrink-0 uppercase",
|
|
@@ -1318,7 +1318,7 @@ const ol = {
|
|
|
1318
1318
|
].join(" ").trim() || "-"
|
|
1319
1319
|
}, null, 8, ["content"]))
|
|
1320
1320
|
])) : u("", !0)
|
|
1321
|
-
], 64)) : e.isBeneficiary ? u("", !0) : (t(), i(
|
|
1321
|
+
], 64)) : e.isBeneficiary ? u("", !0) : (t(), i(R, { key: 3 }, [
|
|
1322
1322
|
n("div", ea, [
|
|
1323
1323
|
p(o(xt), { size: 32 }, {
|
|
1324
1324
|
default: B(() => [
|
|
@@ -1356,7 +1356,7 @@ const ol = {
|
|
|
1356
1356
|
], 2);
|
|
1357
1357
|
};
|
|
1358
1358
|
}
|
|
1359
|
-
},
|
|
1359
|
+
}, zt = /* @__PURE__ */ Be(la, [["__scopeId", "data-v-78669018"]]), aa = { class: "bg-oc-bg-dark flex flex-col gap-3 p-4 rounded" }, na = { key: 0 }, $f = {
|
|
1360
1360
|
__name: "OcTransferSummary",
|
|
1361
1361
|
props: {
|
|
1362
1362
|
transfer: {
|
|
@@ -1477,7 +1477,7 @@ const ol = {
|
|
|
1477
1477
|
n("div", da, [
|
|
1478
1478
|
e.title ? (t(), i("span", ca, w(e.title), 1)) : u("", !0),
|
|
1479
1479
|
e.chips.length ? (t(), i("div", ua, [
|
|
1480
|
-
(t(!0), i(
|
|
1480
|
+
(t(!0), i(R, null, q(e.chips, (g, x) => (t(), y(o(ue), {
|
|
1481
1481
|
key: x,
|
|
1482
1482
|
label: g.label,
|
|
1483
1483
|
variant: g.variant,
|
|
@@ -1584,7 +1584,7 @@ const ol = {
|
|
|
1584
1584
|
e.title ? (t(), i("span", ka, w(e.title), 1)) : u("", !0)
|
|
1585
1585
|
]),
|
|
1586
1586
|
e.chips.length ? (t(), i("div", $a, [
|
|
1587
|
-
(t(!0), i(
|
|
1587
|
+
(t(!0), i(R, null, q(e.chips, (m, f) => (t(), y(o(ue), {
|
|
1588
1588
|
key: f,
|
|
1589
1589
|
label: m.label,
|
|
1590
1590
|
variant: m.variant,
|
|
@@ -1629,7 +1629,7 @@ const ol = {
|
|
|
1629
1629
|
J(" " + w(e.description), 1)
|
|
1630
1630
|
]),
|
|
1631
1631
|
e.details.length ? (t(), i("div", Ba, [
|
|
1632
|
-
(t(!0), i(
|
|
1632
|
+
(t(!0), i(R, null, q(e.details, (m, f) => (t(), i("div", {
|
|
1633
1633
|
key: f,
|
|
1634
1634
|
class: "flex items-center gap-2"
|
|
1635
1635
|
}, [
|
|
@@ -1674,7 +1674,7 @@ const ol = {
|
|
|
1674
1674
|
}, La = {
|
|
1675
1675
|
key: 0,
|
|
1676
1676
|
class: "min-w-[100px]"
|
|
1677
|
-
}, ja = { class: "grow pl-3" }, Ma = { class: "flex w-full" }, Ea = { class: "text-lg font-medium" }, Pa = { class: "ml-auto" },
|
|
1677
|
+
}, ja = { class: "grow pl-3" }, Ma = { class: "flex w-full" }, Ea = { class: "text-lg font-medium" }, Pa = { class: "ml-auto" }, Na = { class: "cursor-pointer flex hover:bg-oc-gray-200 items-center rounded p-2" }, Ra = { class: "line-clamp-2 mb-3 max-w-[80%] text-oc-text-400" }, za = { class: "w-full text-sm lg:mt-4 flex flex-wrap items-center" }, Fa = { class: "mr-3" }, Ua = { class: "text-oc-text-400 font-medium" }, qa = {
|
|
1678
1678
|
__name: "OcPage",
|
|
1679
1679
|
props: {
|
|
1680
1680
|
page: Object
|
|
@@ -1707,7 +1707,7 @@ const ol = {
|
|
|
1707
1707
|
$(s.$slots, "menu")
|
|
1708
1708
|
]),
|
|
1709
1709
|
default: B(() => [
|
|
1710
|
-
n("div",
|
|
1710
|
+
n("div", Na, [
|
|
1711
1711
|
p(o(T), {
|
|
1712
1712
|
class: "text-oc-text-400",
|
|
1713
1713
|
name: "dots-vertical"
|
|
@@ -1718,8 +1718,8 @@ const ol = {
|
|
|
1718
1718
|
}, 8, ["modelValue"])
|
|
1719
1719
|
])
|
|
1720
1720
|
]),
|
|
1721
|
-
n("div",
|
|
1722
|
-
n("div",
|
|
1721
|
+
n("div", Ra, w(l(e.page.description)), 1),
|
|
1722
|
+
n("div", za, [
|
|
1723
1723
|
n("span", Fa, [
|
|
1724
1724
|
d[2] || (d[2] = n("span", { class: "text-oc-text-300" }, "Last updated : ", -1)),
|
|
1725
1725
|
n("span", Ua, w(o(_)(e.page.updated_at).format("DD MMM YYYY")), 1)
|
|
@@ -1797,7 +1797,7 @@ const ol = {
|
|
|
1797
1797
|
n("div", Ka, [
|
|
1798
1798
|
n("span", Ga, w(e.title), 1),
|
|
1799
1799
|
e.chips.length ? (t(), i("div", Xa, [
|
|
1800
|
-
(t(!0), i(
|
|
1800
|
+
(t(!0), i(R, null, q(e.chips, (b, A) => (t(), y(o(ue), W({
|
|
1801
1801
|
key: A,
|
|
1802
1802
|
class: "font-medium"
|
|
1803
1803
|
}, { ref_for: !0 }, b), null, 16))), 128))
|
|
@@ -1824,7 +1824,7 @@ const ol = {
|
|
|
1824
1824
|
]),
|
|
1825
1825
|
(x = e.paymentMethods) != null && x.length ? (t(), i("div", Qa, [
|
|
1826
1826
|
g[3] || (g[3] = n("span", { class: "text-sm font-medium text-oc-text-300 whitespace-nowrap" }, "Payment methods", -1)),
|
|
1827
|
-
(t(!0), i(
|
|
1827
|
+
(t(!0), i(R, null, q(e.paymentMethods.slice(0, d.value), (b) => (t(), i("img", {
|
|
1828
1828
|
key: b.method,
|
|
1829
1829
|
width: "35",
|
|
1830
1830
|
height: "24",
|
|
@@ -1843,7 +1843,7 @@ const ol = {
|
|
|
1843
1843
|
]),
|
|
1844
1844
|
popper: B(() => [
|
|
1845
1845
|
n("div", en, [
|
|
1846
|
-
(t(!0), i(
|
|
1846
|
+
(t(!0), i(R, null, q(a.value, (b) => (t(), i("img", {
|
|
1847
1847
|
key: b.method,
|
|
1848
1848
|
width: "35",
|
|
1849
1849
|
height: "24",
|
|
@@ -1908,7 +1908,7 @@ const ol = {
|
|
|
1908
1908
|
n("div", sn, [
|
|
1909
1909
|
e.title ? (t(), i("span", rn, w(e.title), 1)) : u("", !0),
|
|
1910
1910
|
e.chips.length ? (t(), i("div", dn, [
|
|
1911
|
-
(t(!0), i(
|
|
1911
|
+
(t(!0), i(R, null, q(e.chips, (s, d) => (t(), y(o(ue), {
|
|
1912
1912
|
key: d,
|
|
1913
1913
|
label: s.label,
|
|
1914
1914
|
variant: s.variant,
|
|
@@ -2026,7 +2026,7 @@ const ol = {
|
|
|
2026
2026
|
}, 8, ["modelValue"])
|
|
2027
2027
|
]),
|
|
2028
2028
|
(s = e.urls) != null && s.length ? (t(), i("div", $n, [
|
|
2029
|
-
(t(!0), i(
|
|
2029
|
+
(t(!0), i(R, null, q(e.urls, (d, c) => (t(), y(o(Vn), {
|
|
2030
2030
|
key: c,
|
|
2031
2031
|
title: d.title,
|
|
2032
2032
|
url: d.url
|
|
@@ -2108,7 +2108,7 @@ const ol = {
|
|
|
2108
2108
|
onDelete: d[2] || (d[2] = (c) => s.$emit("delete")),
|
|
2109
2109
|
onClick: d[3] || (d[3] = (c) => s.$emit("click:item")),
|
|
2110
2110
|
"onUpdate:modelValue": d[4] || (d[4] = (c) => s.$emit("update:modelValue", c))
|
|
2111
|
-
}),
|
|
2111
|
+
}), ne({ _: 2 }, [
|
|
2112
2112
|
q(s.$slots, (c, m) => ({
|
|
2113
2113
|
name: m,
|
|
2114
2114
|
fn: B((f) => [
|
|
@@ -2271,10 +2271,10 @@ const ol = {
|
|
|
2271
2271
|
])) : u("", !0)
|
|
2272
2272
|
], 2));
|
|
2273
2273
|
}
|
|
2274
|
-
}, Ln = { key: 0 }, jn = { class: "flex border-oc-gray-200 gap-x-9 justify-between p-5 items-start border-b sticky bg-oc-bg-light top-0" }, Mn = { class: "flex flex-col gap-y-1 max-w-[300px]" }, En = { class: "text-lg font-medium truncate" }, Pn = { class: "flex gap-3 items-center" },
|
|
2274
|
+
}, Ln = { key: 0 }, jn = { class: "flex border-oc-gray-200 gap-x-9 justify-between p-5 items-start border-b sticky bg-oc-bg-light top-0" }, Mn = { class: "flex flex-col gap-y-1 max-w-[300px]" }, En = { class: "text-lg font-medium truncate" }, Pn = { class: "flex gap-3 items-center" }, Nn = {
|
|
2275
2275
|
key: 0,
|
|
2276
2276
|
class: "text-sm text-oc-text-300 truncate"
|
|
2277
|
-
},
|
|
2277
|
+
}, Rn = { class: "flex items-center gap-3" }, zn = { class: "p-[6px] rounded cursor-pointer text-oc-gray-500 hover:bg-gray-100 hover:text-oc-text" }, Fn = { class: "p-2 border-b border-gray-200" }, Un = {
|
|
2278
2278
|
key: 0,
|
|
2279
2279
|
class: "p-2"
|
|
2280
2280
|
}, Bf = {
|
|
@@ -2325,7 +2325,7 @@ const ol = {
|
|
|
2325
2325
|
]),
|
|
2326
2326
|
$(a.$slots, "description", {}, () => [
|
|
2327
2327
|
n("div", Pn, [
|
|
2328
|
-
e.description ? (t(), i("span",
|
|
2328
|
+
e.description ? (t(), i("span", Nn, w(e.description), 1)) : u("", !0),
|
|
2329
2329
|
p(o(We), {
|
|
2330
2330
|
value: e.description,
|
|
2331
2331
|
"tooltip-options": { strategy: "fixed" }
|
|
@@ -2343,7 +2343,7 @@ const ol = {
|
|
|
2343
2343
|
])
|
|
2344
2344
|
])
|
|
2345
2345
|
]),
|
|
2346
|
-
n("div",
|
|
2346
|
+
n("div", Rn, [
|
|
2347
2347
|
e.dropdownOptions ? (t(), y(o(ye), W({
|
|
2348
2348
|
key: 0,
|
|
2349
2349
|
modelValue: l.value,
|
|
@@ -2354,14 +2354,14 @@ const ol = {
|
|
|
2354
2354
|
}, e.dropdownProps), {
|
|
2355
2355
|
menu: B(() => [
|
|
2356
2356
|
n("div", Fn, [
|
|
2357
|
-
(t(!0), i(
|
|
2357
|
+
(t(!0), i(R, null, q(e.dropdownOptions.top, (d, c) => (t(), y(o(Le), W({ key: c }, { ref_for: !0 }, d), null, 16))), 128))
|
|
2358
2358
|
]),
|
|
2359
2359
|
e.dropdownOptions.bottom ? (t(), i("div", Un, [
|
|
2360
|
-
(t(!0), i(
|
|
2360
|
+
(t(!0), i(R, null, q(e.dropdownOptions.bottom, (d, c) => (t(), y(o(Le), W({ key: c }, { ref_for: !0 }, d), null, 16))), 128))
|
|
2361
2361
|
])) : u("", !0)
|
|
2362
2362
|
]),
|
|
2363
2363
|
default: B(() => [
|
|
2364
|
-
n("div",
|
|
2364
|
+
n("div", zn, [
|
|
2365
2365
|
p(o(T), {
|
|
2366
2366
|
name: "dots-vertical",
|
|
2367
2367
|
width: "20",
|
|
@@ -2520,6 +2520,10 @@ const ol = {
|
|
|
2520
2520
|
type: Boolean,
|
|
2521
2521
|
default: !1
|
|
2522
2522
|
},
|
|
2523
|
+
isSelected: {
|
|
2524
|
+
type: Boolean,
|
|
2525
|
+
default: !1
|
|
2526
|
+
},
|
|
2523
2527
|
isSelectable: {
|
|
2524
2528
|
type: Boolean,
|
|
2525
2529
|
default: !1
|
|
@@ -2565,16 +2569,16 @@ const ol = {
|
|
|
2565
2569
|
return (c, m) => {
|
|
2566
2570
|
var g, x, b, A;
|
|
2567
2571
|
const f = Zt("OcTableRow", !0);
|
|
2568
|
-
return t(), i(
|
|
2572
|
+
return t(), i(R, null, [
|
|
2569
2573
|
n("tr", {
|
|
2570
|
-
class: "hoverable-row group/row",
|
|
2574
|
+
class: v(["hoverable-row group/row", e.isSelected ? "border-x-[3px] border-oc-primary-500" : ""]),
|
|
2571
2575
|
onClick: m[2] || (m[2] = (D) => c.$emit("click", D))
|
|
2572
2576
|
}, [
|
|
2573
2577
|
e.isExpand ? (t(), i("td", {
|
|
2574
2578
|
key: 0,
|
|
2575
2579
|
class: v(["p-0 border-r border-oc-gray-200 sticky left-0 z-20", [
|
|
2576
2580
|
e.index !== e.sortedFields.length - 1 ? "border-b" : "",
|
|
2577
|
-
e.isChild ? "bg-oc-bg-dark" : "bg-oc-bg-light"
|
|
2581
|
+
e.isChild || e.isSelected ? "bg-oc-bg-dark" : "bg-oc-bg-light"
|
|
2578
2582
|
]]),
|
|
2579
2583
|
"data-expand-column": ""
|
|
2580
2584
|
}, [
|
|
@@ -2598,14 +2602,14 @@ const ol = {
|
|
|
2598
2602
|
"data-checkbox-column": ""
|
|
2599
2603
|
}, [
|
|
2600
2604
|
n("div", ti, [
|
|
2601
|
-
p(o(
|
|
2605
|
+
p(o(ze), {
|
|
2602
2606
|
class: "items-center",
|
|
2603
2607
|
"model-value": e.selectedRows.some((D) => e.getRowKey(D) === e.getRowKey(e.row)),
|
|
2604
2608
|
"onUpdate:modelValue": m[0] || (m[0] = (D) => e.selectRow(e.row))
|
|
2605
2609
|
}, null, 8, ["model-value"])
|
|
2606
2610
|
])
|
|
2607
2611
|
], 2)) : u("", !0),
|
|
2608
|
-
(t(!0), i(
|
|
2612
|
+
(t(!0), i(R, null, q(e.headers, (D, O) => (t(), i("td", {
|
|
2609
2613
|
key: D.key + e.index,
|
|
2610
2614
|
class: v(["p-0", [
|
|
2611
2615
|
{ "border-b border-oc-gray-200": e.index !== e.sortedFields.length - 1 },
|
|
@@ -2638,8 +2642,8 @@ const ol = {
|
|
|
2638
2642
|
}, null, 8, ["value"])) : u("", !0)
|
|
2639
2643
|
], 2)
|
|
2640
2644
|
], 10, li))), 128))
|
|
2641
|
-
]),
|
|
2642
|
-
(A = (b = e.row) == null ? void 0 : b.children) != null && A.length && s.value ? (t(!0), i(
|
|
2645
|
+
], 2),
|
|
2646
|
+
(A = (b = e.row) == null ? void 0 : b.children) != null && A.length && s.value ? (t(!0), i(R, { key: 0 }, q(e.row.children, (D, O) => (t(), y(f, {
|
|
2643
2647
|
key: e.getRowKey(D),
|
|
2644
2648
|
row: D,
|
|
2645
2649
|
headers: e.headers,
|
|
@@ -2653,7 +2657,7 @@ const ol = {
|
|
|
2653
2657
|
"get-row-key": e.getRowKey,
|
|
2654
2658
|
"select-row": e.selectRow,
|
|
2655
2659
|
"get-sticky-classes": e.getStickyClasses
|
|
2656
|
-
},
|
|
2660
|
+
}, ne({ _: 2 }, [
|
|
2657
2661
|
q(c.$slots, (k, h) => ({
|
|
2658
2662
|
name: h,
|
|
2659
2663
|
fn: B((C) => [
|
|
@@ -2689,6 +2693,10 @@ const ol = {
|
|
|
2689
2693
|
type: Array,
|
|
2690
2694
|
default: () => []
|
|
2691
2695
|
},
|
|
2696
|
+
selectedIndex: {
|
|
2697
|
+
type: Number,
|
|
2698
|
+
default: -1
|
|
2699
|
+
},
|
|
2692
2700
|
isLoading: {
|
|
2693
2701
|
type: Boolean,
|
|
2694
2702
|
default: !1
|
|
@@ -2697,38 +2705,38 @@ const ol = {
|
|
|
2697
2705
|
emits: ["update:selected", "click:row"],
|
|
2698
2706
|
setup(e, { emit: r }) {
|
|
2699
2707
|
const l = e, a = r, s = P(() => {
|
|
2700
|
-
var
|
|
2701
|
-
return l.isLoading ? [] : ((
|
|
2708
|
+
var N;
|
|
2709
|
+
return l.isLoading ? [] : ((N = l.options) == null ? void 0 : N.fields) ?? [];
|
|
2702
2710
|
}), d = P(() => {
|
|
2703
|
-
var
|
|
2704
|
-
return ((
|
|
2711
|
+
var N;
|
|
2712
|
+
return ((N = l.options) == null ? void 0 : N.headers) ?? [];
|
|
2705
2713
|
}), c = P(() => {
|
|
2706
|
-
var
|
|
2707
|
-
return l.isLoading ? !1 : (
|
|
2714
|
+
var N;
|
|
2715
|
+
return l.isLoading ? !1 : (N = l.options) == null ? void 0 : N.isSelectable;
|
|
2708
2716
|
}), m = P(() => {
|
|
2709
|
-
var
|
|
2710
|
-
return (((
|
|
2717
|
+
var N;
|
|
2718
|
+
return (((N = l.options) == null ? void 0 : N.isExpand) && !(l != null && l.isLoading)) ?? !1;
|
|
2711
2719
|
}), f = P(
|
|
2712
|
-
() => typeof l.rowKey == "function" ? l.rowKey : (
|
|
2720
|
+
() => typeof l.rowKey == "function" ? l.rowKey : (N) => N[l.rowKey]
|
|
2713
2721
|
), g = P({
|
|
2714
2722
|
get() {
|
|
2715
2723
|
return l.selected || [];
|
|
2716
2724
|
},
|
|
2717
|
-
set(
|
|
2718
|
-
a("update:selected",
|
|
2725
|
+
set(N) {
|
|
2726
|
+
a("update:selected", N);
|
|
2719
2727
|
}
|
|
2720
|
-
}), x = j(null), b = j("desc"), A = P(() => x.value ? [...s.value].sort((
|
|
2721
|
-
const G =
|
|
2722
|
-
if (typeof G == "number" && typeof
|
|
2723
|
-
return b.value === "asc" ? G -
|
|
2724
|
-
const oe = String(G || "").toLowerCase(), be = String(
|
|
2728
|
+
}), x = j(null), b = j("desc"), A = P(() => x.value ? [...s.value].sort((z, H) => {
|
|
2729
|
+
const G = z[x.value], ae = H[x.value];
|
|
2730
|
+
if (typeof G == "number" && typeof ae == "number")
|
|
2731
|
+
return b.value === "asc" ? G - ae : ae - G;
|
|
2732
|
+
const oe = String(G || "").toLowerCase(), be = String(ae || "").toLowerCase();
|
|
2725
2733
|
return b.value === "asc" ? oe.localeCompare(be) : be.localeCompare(oe);
|
|
2726
2734
|
}) : s.value), D = {
|
|
2727
2735
|
DEFAULT: 125,
|
|
2728
2736
|
ACTIONS: 32
|
|
2729
2737
|
};
|
|
2730
2738
|
let O = !1, k = !1;
|
|
2731
|
-
const h = (
|
|
2739
|
+
const h = (N, z) => {
|
|
2732
2740
|
if (k) {
|
|
2733
2741
|
k = !1;
|
|
2734
2742
|
return;
|
|
@@ -2739,68 +2747,68 @@ const ol = {
|
|
|
2739
2747
|
let F = null;
|
|
2740
2748
|
ge(
|
|
2741
2749
|
() => l.isLoading,
|
|
2742
|
-
(
|
|
2743
|
-
|
|
2750
|
+
(N) => {
|
|
2751
|
+
N ? (L.value = !1, F && clearTimeout(F), F = setTimeout(() => {
|
|
2744
2752
|
l.isLoading && (L.value = !0);
|
|
2745
2753
|
}, 3e3)) : (L.value = !1, F && (clearTimeout(F), F = null));
|
|
2746
2754
|
}
|
|
2747
2755
|
);
|
|
2748
|
-
const Y = (
|
|
2749
|
-
const H =
|
|
2750
|
-
H &&
|
|
2756
|
+
const Y = (N, z) => {
|
|
2757
|
+
const H = z.querySelector('div[data-resize-handle="true"]');
|
|
2758
|
+
H && z.removeChild(H);
|
|
2751
2759
|
const G = document.createElement("div");
|
|
2752
|
-
return G.classList.add("shadow-line"), G.style.top = "0", G.style.right = "0", G.style.width = "8px", G.style.position = "absolute", G.style.cursor = "col-resize", G.style.userSelect = "none", G.style.height =
|
|
2753
|
-
}, X = (
|
|
2754
|
-
if (Q(
|
|
2760
|
+
return G.classList.add("shadow-line"), G.style.top = "0", G.style.right = "0", G.style.width = "8px", G.style.position = "absolute", G.style.cursor = "col-resize", G.style.userSelect = "none", G.style.height = N + "px", G.style.borderRight = "1px solid var(--oc-gray-200)", G.setAttribute("data-resize-handle", "true"), G;
|
|
2761
|
+
}, X = (N) => {
|
|
2762
|
+
if (Q(N, "box-sizing") == "border-box")
|
|
2755
2763
|
return 0;
|
|
2756
|
-
const
|
|
2757
|
-
return parseInt(
|
|
2758
|
-
}, Q = (
|
|
2759
|
-
|
|
2760
|
-
|
|
2764
|
+
const z = Q(N, "padding-left"), H = Q(N, "padding-right");
|
|
2765
|
+
return parseInt(z) + parseInt(H);
|
|
2766
|
+
}, Q = (N, z) => window.getComputedStyle(N, null).getPropertyValue(z), ie = (N) => {
|
|
2767
|
+
N.addEventListener("mousedown", function(z) {
|
|
2768
|
+
z.preventDefault(), z.stopPropagation(), S = z.target.parentElement, V = S.nextElementSibling;
|
|
2761
2769
|
const H = C.value, G = H ? H.scrollLeft : 0;
|
|
2762
|
-
M =
|
|
2763
|
-
const
|
|
2764
|
-
E = S.offsetWidth -
|
|
2765
|
-
}),
|
|
2766
|
-
|
|
2767
|
-
}),
|
|
2768
|
-
|
|
2769
|
-
}),
|
|
2770
|
-
|
|
2770
|
+
M = z.pageX + G;
|
|
2771
|
+
const ae = X(S);
|
|
2772
|
+
E = S.offsetWidth - ae, V && V.offsetWidth - ae;
|
|
2773
|
+
}), N.addEventListener("click", function(z) {
|
|
2774
|
+
z.preventDefault(), z.stopPropagation();
|
|
2775
|
+
}), N.addEventListener("mouseover", function(z) {
|
|
2776
|
+
z.target.style.borderColor = "var(--oc-gray-500)";
|
|
2777
|
+
}), N.addEventListener("mouseout", function(z) {
|
|
2778
|
+
z.target.style.borderColor = "var(--oc-gray-200)";
|
|
2771
2779
|
});
|
|
2772
|
-
}, de = (
|
|
2780
|
+
}, de = (N) => {
|
|
2773
2781
|
if (S) {
|
|
2774
2782
|
O = !0;
|
|
2775
|
-
const
|
|
2783
|
+
const z = C.value, H = z ? z.scrollLeft : 0, ae = N.pageX + H - M;
|
|
2776
2784
|
let be = Array.from(S.parentElement.children).indexOf(S);
|
|
2777
2785
|
m.value && be--, c.value && be--;
|
|
2778
2786
|
const Ve = d.value[be];
|
|
2779
2787
|
let Ee = D.DEFAULT;
|
|
2780
2788
|
Ve && (Ve.minWidth !== void 0 ? Ee = Ve.minWidth : Ve.key === "actions" && (Ee = D.ACTIONS));
|
|
2781
|
-
const Pe = Math.max(Ee, E +
|
|
2789
|
+
const Pe = Math.max(Ee, E + ae);
|
|
2782
2790
|
S.style.width = Pe + "px", S.style.minWidth = Pe + "px";
|
|
2783
2791
|
}
|
|
2784
2792
|
}, ve = () => {
|
|
2785
2793
|
O && (k = !0, setTimeout(() => {
|
|
2786
2794
|
k = !1;
|
|
2787
2795
|
}, 0)), O = !1, S = void 0, V = void 0, M = void 0, E = void 0;
|
|
2788
|
-
}, pe = (
|
|
2789
|
-
if (!
|
|
2790
|
-
const
|
|
2796
|
+
}, pe = (N) => {
|
|
2797
|
+
if (!N) return;
|
|
2798
|
+
const z = N.getElementsByTagName("tr")[0], H = z ? z.children : void 0;
|
|
2791
2799
|
if (H)
|
|
2792
2800
|
for (let G = 0; G < H.length; G++) {
|
|
2793
|
-
const
|
|
2794
|
-
|
|
2801
|
+
const ae = H[G].querySelector('div[style*="cursor: col-resize"]');
|
|
2802
|
+
ae && H[G].removeChild(ae), H[G].style.position = "";
|
|
2795
2803
|
}
|
|
2796
|
-
}, $e = (
|
|
2797
|
-
const
|
|
2804
|
+
}, $e = (N) => {
|
|
2805
|
+
const z = N.getElementsByTagName("tr")[0], H = z ? z.children : void 0;
|
|
2798
2806
|
if (!H)
|
|
2799
2807
|
return;
|
|
2800
|
-
const G =
|
|
2808
|
+
const G = N.offsetHeight, ae = N.offsetWidth;
|
|
2801
2809
|
let oe = 0;
|
|
2802
2810
|
m.value && (oe += 32), c.value && (oe += 32);
|
|
2803
|
-
const be =
|
|
2811
|
+
const be = ae - oe, Ve = [];
|
|
2804
2812
|
let Ee = 0, Pe = 0, Ue = 0;
|
|
2805
2813
|
for (let le = 0; le < H.length; le++) {
|
|
2806
2814
|
const _e = H[le].hasAttribute("data-checkbox-column"), ct = H[le].hasAttribute("data-expand-column");
|
|
@@ -2809,18 +2817,18 @@ const ol = {
|
|
|
2809
2817
|
let Se = le;
|
|
2810
2818
|
m.value && Se--, c.value && Se--;
|
|
2811
2819
|
const we = d.value[Se];
|
|
2812
|
-
let
|
|
2813
|
-
we && (we.minWidth !== void 0 ?
|
|
2820
|
+
let Ne = D.DEFAULT;
|
|
2821
|
+
we && (we.minWidth !== void 0 ? Ne = we.minWidth : we.key === "actions" && (Ne = D.ACTIONS));
|
|
2814
2822
|
const Ae = we && we.width !== void 0, Xe = we && we.minWidth !== void 0, et = Ae ? we.width : null, Gt = Xe ? we.minWidth : null;
|
|
2815
2823
|
Ve.push({
|
|
2816
2824
|
index: le,
|
|
2817
2825
|
header: we,
|
|
2818
|
-
minWidth:
|
|
2826
|
+
minWidth: Ne,
|
|
2819
2827
|
hasPropsWidth: Ae,
|
|
2820
2828
|
hasPropsMinWidth: Xe,
|
|
2821
2829
|
propsWidth: et,
|
|
2822
2830
|
propsMinWidth: Gt
|
|
2823
|
-
}), Ae ? (Pe++, Ue += et) : Ee +=
|
|
2831
|
+
}), Ae ? (Pe++, Ue += et) : Ee += Ne;
|
|
2824
2832
|
}
|
|
2825
2833
|
const Ge = Ee + Ue < be;
|
|
2826
2834
|
for (let le = 0; le < H.length; le++) {
|
|
@@ -2831,37 +2839,37 @@ const ol = {
|
|
|
2831
2839
|
}
|
|
2832
2840
|
const Se = Ve.find((Ae) => Ae.index === le);
|
|
2833
2841
|
if (!Se) continue;
|
|
2834
|
-
let we = Se.minWidth,
|
|
2835
|
-
if (Se.hasPropsMinWidth && (
|
|
2842
|
+
let we = Se.minWidth, Ne = Se.minWidth;
|
|
2843
|
+
if (Se.hasPropsMinWidth && (Ne = Se.propsMinWidth), Ge)
|
|
2836
2844
|
if (Se.hasPropsWidth)
|
|
2837
2845
|
we = Se.propsWidth;
|
|
2838
2846
|
else {
|
|
2839
2847
|
let Ae;
|
|
2840
2848
|
if (Pe === 0)
|
|
2841
|
-
Ae = Math.max(
|
|
2849
|
+
Ae = Math.max(Ne, Math.floor(be / Ve.length));
|
|
2842
2850
|
else {
|
|
2843
2851
|
const Xe = be - Ue, et = Ve.length - Pe;
|
|
2844
|
-
Ae = Math.max(
|
|
2852
|
+
Ae = Math.max(Ne, Math.floor(Xe / et));
|
|
2845
2853
|
}
|
|
2846
2854
|
we = Ae;
|
|
2847
2855
|
}
|
|
2848
2856
|
else Se.hasPropsWidth && (we = Se.propsWidth);
|
|
2849
|
-
if (Se.header && Se.header.key !== "actions" && (H[le].style.width = we + "px"), H[le].style.minWidth =
|
|
2857
|
+
if (Se.header && Se.header.key !== "actions" && (H[le].style.width = we + "px"), H[le].style.minWidth = Ne + "px", le < H.length - 1) {
|
|
2850
2858
|
const Ae = Y(G, H[le]);
|
|
2851
2859
|
Ae && (H[le].appendChild(Ae), le === 0 || le === H.length - 1 || (H[le].style.position = "relative"), ie(Ae));
|
|
2852
2860
|
}
|
|
2853
2861
|
}
|
|
2854
2862
|
}, he = () => {
|
|
2855
|
-
var
|
|
2856
|
-
((
|
|
2863
|
+
var N;
|
|
2864
|
+
((N = I.value) == null ? void 0 : N.scrollLeft) > 0 ? U.value = !0 : U.value = !1;
|
|
2857
2865
|
};
|
|
2858
2866
|
let te = null;
|
|
2859
|
-
function Oe(
|
|
2867
|
+
function Oe(N, z) {
|
|
2860
2868
|
let H = null;
|
|
2861
2869
|
return function(...G) {
|
|
2862
2870
|
H && clearTimeout(H), H = setTimeout(() => {
|
|
2863
|
-
|
|
2864
|
-
},
|
|
2871
|
+
N.apply(this, G);
|
|
2872
|
+
}, z);
|
|
2865
2873
|
};
|
|
2866
2874
|
}
|
|
2867
2875
|
const ce = () => {
|
|
@@ -2876,34 +2884,34 @@ const ol = {
|
|
|
2876
2884
|
}), gt(() => {
|
|
2877
2885
|
document.removeEventListener("mousemove", de), document.removeEventListener("mouseup", ve), te && (te.disconnect(), te = null);
|
|
2878
2886
|
});
|
|
2879
|
-
const De = (
|
|
2887
|
+
const De = (N, z, H = !1) => {
|
|
2880
2888
|
const G = [];
|
|
2881
|
-
if (d.value.findIndex((oe) => oe.key ===
|
|
2889
|
+
if (d.value.findIndex((oe) => oe.key === z) === 0) {
|
|
2882
2890
|
let oe = "left-0";
|
|
2883
2891
|
m.value && c.value ? oe = "left-[62px]" : (m.value || c.value) && (oe = "left-[31px]"), G.push(
|
|
2884
2892
|
`!sticky ${oe} ${l.isLoading ? "z-[0]" : H ? "z-30" : "z-20"}`
|
|
2885
2893
|
);
|
|
2886
2894
|
}
|
|
2887
2895
|
return G.join(" ");
|
|
2888
|
-
}, ee = (
|
|
2889
|
-
g.value.find((H) => f.value(H) === f.value(
|
|
2890
|
-
(H) => f.value(H) !== f.value(
|
|
2891
|
-
) : g.value = [...g.value,
|
|
2896
|
+
}, ee = (N) => {
|
|
2897
|
+
g.value.find((H) => f.value(H) === f.value(N)) ? g.value = g.value.filter(
|
|
2898
|
+
(H) => f.value(H) !== f.value(N)
|
|
2899
|
+
) : g.value = [...g.value, N];
|
|
2892
2900
|
}, Me = () => {
|
|
2893
|
-
const
|
|
2894
|
-
g.value =
|
|
2895
|
-
}, K = (
|
|
2896
|
-
!
|
|
2897
|
-
field:
|
|
2898
|
-
header:
|
|
2901
|
+
const N = g.value.length === s.value.length;
|
|
2902
|
+
g.value = N ? [] : [...s.value];
|
|
2903
|
+
}, K = (N, z) => {
|
|
2904
|
+
!z.disableClickRow && z.key !== "actions" && a("click:row", {
|
|
2905
|
+
field: N,
|
|
2906
|
+
header: z
|
|
2899
2907
|
});
|
|
2900
2908
|
};
|
|
2901
|
-
return (
|
|
2909
|
+
return (N, z) => {
|
|
2902
2910
|
var H;
|
|
2903
2911
|
return t(), i("div", null, [
|
|
2904
2912
|
n("div", oi, [
|
|
2905
|
-
|
|
2906
|
-
$(
|
|
2913
|
+
N.$slots.before ? (t(), i("div", si, [
|
|
2914
|
+
$(N.$slots, "before")
|
|
2907
2915
|
])) : u("", !0),
|
|
2908
2916
|
n("div", {
|
|
2909
2917
|
ref_key: "scrollContainerRef",
|
|
@@ -2918,7 +2926,7 @@ const ol = {
|
|
|
2918
2926
|
}, [
|
|
2919
2927
|
n("thead", null, [
|
|
2920
2928
|
n("tr", null, [
|
|
2921
|
-
m.value ? (t(), i("th", ri, [...
|
|
2929
|
+
m.value ? (t(), i("th", ri, [...z[0] || (z[0] = [
|
|
2922
2930
|
n("div", { class: "flex p-3 items-center min-h-[35px] border-b border-oc-text-200" }, null, -1)
|
|
2923
2931
|
])])) : u("", !0),
|
|
2924
2932
|
c.value ? (t(), i("th", {
|
|
@@ -2927,17 +2935,17 @@ const ol = {
|
|
|
2927
2935
|
"data-checkbox-column": ""
|
|
2928
2936
|
}, [
|
|
2929
2937
|
n("div", di, [
|
|
2930
|
-
p(o(
|
|
2938
|
+
p(o(ze), {
|
|
2931
2939
|
class: "items-center",
|
|
2932
2940
|
"model-value": g.value.length === s.value.length,
|
|
2933
2941
|
"onUpdate:modelValue": Me
|
|
2934
2942
|
}, null, 8, ["model-value"])
|
|
2935
2943
|
])
|
|
2936
2944
|
], 2)) : u("", !0),
|
|
2937
|
-
(t(!0), i(
|
|
2945
|
+
(t(!0), i(R, null, q(d.value, (G, ae) => (t(), i("th", {
|
|
2938
2946
|
key: G.key,
|
|
2939
2947
|
class: v(["p-0 bg-oc-gray-50", [
|
|
2940
|
-
U.value && !
|
|
2948
|
+
U.value && !ae ? "shadow-left" : "",
|
|
2941
2949
|
G.headerClass,
|
|
2942
2950
|
De(G, G.key, !0),
|
|
2943
2951
|
G.key === "actions" ? "cursor-default" : "cursor-pointer",
|
|
@@ -2964,7 +2972,7 @@ const ol = {
|
|
|
2964
2972
|
height: "32",
|
|
2965
2973
|
class: "text-oc-text-400 motion-safe:animate-spin"
|
|
2966
2974
|
}),
|
|
2967
|
-
L.value ? (t(), i("div", fi, [...
|
|
2975
|
+
L.value ? (t(), i("div", fi, [...z[1] || (z[1] = [
|
|
2968
2976
|
n("span", { class: "font-medium" }, "Fetching data", -1),
|
|
2969
2977
|
n("span", { class: "text-oc-text-400 text-sm" }, "Loading data, this may take a few moments..", -1)
|
|
2970
2978
|
])])) : u("", !0)
|
|
@@ -2972,12 +2980,13 @@ const ol = {
|
|
|
2972
2980
|
])
|
|
2973
2981
|
])
|
|
2974
2982
|
])) : (t(), i("tbody", ui, [
|
|
2975
|
-
(t(!0), i(
|
|
2983
|
+
(t(!0), i(R, null, q(A.value, (G, ae) => (t(), y(ii, {
|
|
2976
2984
|
key: f.value(G),
|
|
2977
2985
|
headers: d.value,
|
|
2978
2986
|
row: G,
|
|
2979
|
-
index:
|
|
2987
|
+
index: ae,
|
|
2980
2988
|
"is-expand": m.value,
|
|
2989
|
+
"is-selected": e.selectedIndex === ae,
|
|
2981
2990
|
"is-selectable": c.value,
|
|
2982
2991
|
"sorted-fields": A.value,
|
|
2983
2992
|
"selected-rows": g.value,
|
|
@@ -2986,21 +2995,21 @@ const ol = {
|
|
|
2986
2995
|
"get-sticky-classes": De,
|
|
2987
2996
|
onToggleChildren: ce,
|
|
2988
2997
|
"onClick:col": K
|
|
2989
|
-
},
|
|
2990
|
-
q(Object.keys(
|
|
2998
|
+
}, ne({ _: 2 }, [
|
|
2999
|
+
q(Object.keys(N.$slots), (oe) => ({
|
|
2991
3000
|
name: oe,
|
|
2992
3001
|
fn: B((be) => [
|
|
2993
|
-
$(
|
|
3002
|
+
$(N.$slots, oe, W({ ref_for: !0 }, be))
|
|
2994
3003
|
])
|
|
2995
3004
|
}))
|
|
2996
|
-
]), 1032, ["headers", "row", "index", "is-expand", "is-selectable", "sorted-fields", "selected-rows", "get-row-key"]))), 128)),
|
|
2997
|
-
$(
|
|
3005
|
+
]), 1032, ["headers", "row", "index", "is-expand", "is-selected", "is-selectable", "sorted-fields", "selected-rows", "get-row-key"]))), 128)),
|
|
3006
|
+
$(N.$slots, "after-rows")
|
|
2998
3007
|
]))
|
|
2999
3008
|
], 512),
|
|
3000
|
-
!s.value.length && !e.isLoading ? $(
|
|
3009
|
+
!s.value.length && !e.isLoading ? $(N.$slots, "empty", { key: 0 }) : u("", !0)
|
|
3001
3010
|
], 2)
|
|
3002
3011
|
]),
|
|
3003
|
-
$(
|
|
3012
|
+
$(N.$slots, "after")
|
|
3004
3013
|
]);
|
|
3005
3014
|
};
|
|
3006
3015
|
}
|
|
@@ -3275,7 +3284,7 @@ const ol = {
|
|
|
3275
3284
|
n("div", {
|
|
3276
3285
|
class: v(["flex items-center", { "flex-col": g.value, "w-full": e.isFullWidth }])
|
|
3277
3286
|
}, [
|
|
3278
|
-
(t(!0), i(
|
|
3287
|
+
(t(!0), i(R, null, q(e.tabs, (h) => {
|
|
3279
3288
|
var C, I;
|
|
3280
3289
|
return t(), i("div", {
|
|
3281
3290
|
key: h.value,
|
|
@@ -3410,7 +3419,7 @@ const ol = {
|
|
|
3410
3419
|
setup(e) {
|
|
3411
3420
|
return (r, l) => (t(), i("div", Ci, [
|
|
3412
3421
|
$(r.$slots, "default", {}, () => [
|
|
3413
|
-
(t(!0), i(
|
|
3422
|
+
(t(!0), i(R, null, q(e.steps, (a, s) => (t(), y(Si, {
|
|
3414
3423
|
key: s,
|
|
3415
3424
|
title: a.title,
|
|
3416
3425
|
value: s + 1,
|
|
@@ -3437,12 +3446,12 @@ const ol = {
|
|
|
3437
3446
|
emits: ["update:modelValue"],
|
|
3438
3447
|
setup(e) {
|
|
3439
3448
|
return (r, l) => (t(), i("div", Bi, [
|
|
3440
|
-
(t(!0), i(
|
|
3449
|
+
(t(!0), i(R, null, q(e.variants, (a) => (t(), y(o(Vi), W({
|
|
3441
3450
|
key: a.value,
|
|
3442
3451
|
"is-active": a.value === e.modelValue
|
|
3443
3452
|
}, { ref_for: !0 }, a, {
|
|
3444
3453
|
onClick: (s) => r.$emit("update:modelValue", a.isDisabled ? e.modelValue : a.value)
|
|
3445
|
-
}),
|
|
3454
|
+
}), ne({ _: 2 }, [
|
|
3446
3455
|
q(r.$slots, (s, d) => ({
|
|
3447
3456
|
name: d,
|
|
3448
3457
|
fn: B((c) => [
|
|
@@ -3521,17 +3530,17 @@ function Pi(e, r) {
|
|
|
3521
3530
|
$(e.$slots, "default")
|
|
3522
3531
|
]);
|
|
3523
3532
|
}
|
|
3524
|
-
const Pf = /* @__PURE__ */ Be(Mi, [["render", Pi]]),
|
|
3533
|
+
const Pf = /* @__PURE__ */ Be(Mi, [["render", Pi]]), Ni = { class: "flex items-center" }, Ri = {
|
|
3525
3534
|
key: 1,
|
|
3526
3535
|
class: "text-oc-text-300 text-sm md:text-base"
|
|
3527
|
-
},
|
|
3536
|
+
}, Nf = {
|
|
3528
3537
|
__name: "OcHeaderCenter",
|
|
3529
3538
|
props: {
|
|
3530
3539
|
isSaved: Boolean
|
|
3531
3540
|
},
|
|
3532
3541
|
emits: ["back"],
|
|
3533
3542
|
setup(e) {
|
|
3534
|
-
return (r, l) => (t(), i("div",
|
|
3543
|
+
return (r, l) => (t(), i("div", Ni, [
|
|
3535
3544
|
$(r.$slots, "default", {}, () => [
|
|
3536
3545
|
$(r.$slots, "before"),
|
|
3537
3546
|
e.isSaved ? (t(), i("span", {
|
|
@@ -3544,12 +3553,12 @@ const Pf = /* @__PURE__ */ Be(Mi, [["render", Pi]]), Ri = { class: "flex items-c
|
|
|
3544
3553
|
class: "rotate-90"
|
|
3545
3554
|
}),
|
|
3546
3555
|
l[1] || (l[1] = J(" Back ", -1))
|
|
3547
|
-
])) : (t(), i("span",
|
|
3556
|
+
])) : (t(), i("span", Ri, " Unsaved changes ")),
|
|
3548
3557
|
$(r.$slots, "after")
|
|
3549
3558
|
])
|
|
3550
3559
|
]));
|
|
3551
3560
|
}
|
|
3552
|
-
},
|
|
3561
|
+
}, zi = { class: "flex items-center gap-x-7 ml-auto" }, Fi = { class: "flex gap-x-3" }, Rf = {
|
|
3553
3562
|
__name: "OcHeaderRight",
|
|
3554
3563
|
props: {
|
|
3555
3564
|
primaryProps: {
|
|
@@ -3565,7 +3574,7 @@ const Pf = /* @__PURE__ */ Be(Mi, [["render", Pi]]), Ri = { class: "flex items-c
|
|
|
3565
3574
|
},
|
|
3566
3575
|
emits: ["save", "cancel", "addition-click", "dropdown-action"],
|
|
3567
3576
|
setup(e, { emit: r }) {
|
|
3568
|
-
return (l, a) => (t(), i("div",
|
|
3577
|
+
return (l, a) => (t(), i("div", zi, [
|
|
3569
3578
|
$(l.$slots, "default", {}, () => [
|
|
3570
3579
|
$(l.$slots, "before"),
|
|
3571
3580
|
n("div", Fi, [
|
|
@@ -3590,7 +3599,7 @@ const Pf = /* @__PURE__ */ Be(Mi, [["render", Pi]]), Ri = { class: "flex items-c
|
|
|
3590
3599
|
])
|
|
3591
3600
|
]));
|
|
3592
3601
|
}
|
|
3593
|
-
}, Ui = { class: "gap-x-9 hidden md:flex relative" }, qi = ["onClick"], Wi = { class: "p-3 font-medium whitespace-normal text-oc-accent-1-500 flex items-center gap-2" }, Hi = { class: "p-4 min-w-[220px] flex flex-col gap-y-3 border-b border-gray-200" },
|
|
3602
|
+
}, Ui = { class: "gap-x-9 hidden md:flex relative" }, qi = ["onClick"], Wi = { class: "p-3 font-medium whitespace-normal text-oc-accent-1-500 flex items-center gap-2" }, Hi = { class: "p-4 min-w-[220px] flex flex-col gap-y-3 border-b border-gray-200" }, zf = {
|
|
3594
3603
|
__name: "OcTabToSelect",
|
|
3595
3604
|
props: {
|
|
3596
3605
|
menus: Array,
|
|
@@ -3609,9 +3618,9 @@ const Pf = /* @__PURE__ */ Be(Mi, [["render", Pi]]), Ri = { class: "flex items-c
|
|
|
3609
3618
|
return ge(
|
|
3610
3619
|
() => r.modelValue,
|
|
3611
3620
|
() => c()
|
|
3612
|
-
), Ce(() => c()), (m, f) => (t(), i(
|
|
3621
|
+
), Ce(() => c()), (m, f) => (t(), i(R, null, [
|
|
3613
3622
|
n("div", Ui, [
|
|
3614
|
-
(t(!0), i(
|
|
3623
|
+
(t(!0), i(R, null, q(e.menus, (g) => (t(), i("div", {
|
|
3615
3624
|
key: g.value,
|
|
3616
3625
|
ref_for: !0,
|
|
3617
3626
|
ref_key: "menuRefs",
|
|
@@ -3648,7 +3657,7 @@ const Pf = /* @__PURE__ */ Be(Mi, [["render", Pi]]), Ri = { class: "flex items-c
|
|
|
3648
3657
|
}, {
|
|
3649
3658
|
menu: B(() => [
|
|
3650
3659
|
n("div", Hi, [
|
|
3651
|
-
(t(!0), i(
|
|
3660
|
+
(t(!0), i(R, null, q(e.menus, (g) => (t(), y(o(Le), {
|
|
3652
3661
|
key: g.value,
|
|
3653
3662
|
class: v(["px-3", [
|
|
3654
3663
|
g.value === e.modelValue ? "!text-oc-accent-1 font-medium bg-oc-accent-1-50-tr" : "!text-oc-text-400"
|
|
@@ -3770,7 +3779,7 @@ const Pf = /* @__PURE__ */ Be(Mi, [["render", Pi]]), Ri = { class: "flex items-c
|
|
|
3770
3779
|
icon: (d = e.secondaryButtonProps) == null ? void 0 : d.leftIcon,
|
|
3771
3780
|
onClick: (c = e.secondaryButtonProps) == null ? void 0 : c.onClick
|
|
3772
3781
|
}, null, 8, ["text", "icon", "onClick"])) : u("", !0),
|
|
3773
|
-
e.secondaryButtonProps && e.secondaryButtonProps.dropdownOptions ? (t(!0), i(
|
|
3782
|
+
e.secondaryButtonProps && e.secondaryButtonProps.dropdownOptions ? (t(!0), i(R, { key: 1 }, q(e.secondaryButtonProps.dropdownOptions, (m) => (t(), y(o(Le), W({
|
|
3774
3783
|
key: m.text
|
|
3775
3784
|
}, { ref_for: !0 }, m), null, 16))), 128)) : u("", !0)
|
|
3776
3785
|
];
|
|
@@ -3856,7 +3865,7 @@ const Pf = /* @__PURE__ */ Be(Mi, [["render", Pi]]), Ri = { class: "flex items-c
|
|
|
3856
3865
|
"is-copy": e.isCopy,
|
|
3857
3866
|
"is-loading": e.isLoading,
|
|
3858
3867
|
class: "flex-1"
|
|
3859
|
-
},
|
|
3868
|
+
}, ne({ _: 2 }, [
|
|
3860
3869
|
r.$slots.title ? {
|
|
3861
3870
|
name: "title",
|
|
3862
3871
|
fn: B(() => [
|
|
@@ -3964,9 +3973,9 @@ const Pf = /* @__PURE__ */ Be(Mi, [["render", Pi]]), Ri = { class: "flex items-c
|
|
|
3964
3973
|
}),
|
|
3965
3974
|
_: 1
|
|
3966
3975
|
})) : u("", !0),
|
|
3967
|
-
(t(!0), i(
|
|
3976
|
+
(t(!0), i(R, null, q(e.primaryActions.actions, (O, k) => {
|
|
3968
3977
|
var h;
|
|
3969
|
-
return t(), i(
|
|
3978
|
+
return t(), i(R, { key: k }, [
|
|
3970
3979
|
(h = e.primaryActions) != null && h.mainLinkAction || k > 0 ? (t(), i("div", so)) : u("", !0),
|
|
3971
3980
|
p(o(re), {
|
|
3972
3981
|
position: "top",
|
|
@@ -4008,7 +4017,7 @@ const Pf = /* @__PURE__ */ Be(Mi, [["render", Pi]]), Ri = { class: "flex items-c
|
|
|
4008
4017
|
return [
|
|
4009
4018
|
n("div", co, [
|
|
4010
4019
|
n("div", uo, [
|
|
4011
|
-
(t(!0), i(
|
|
4020
|
+
(t(!0), i(R, null, q((O = e.primaryActions.dropdownOptions) == null ? void 0 : O.top, (C, I) => (t(), i(R, { key: I }, [
|
|
4012
4021
|
C != null && C.isCopyButton ? (t(), y(o(Le), {
|
|
4013
4022
|
key: 0,
|
|
4014
4023
|
icon: s.value ? "check" : "copy",
|
|
@@ -4024,7 +4033,7 @@ const Pf = /* @__PURE__ */ Be(Mi, [["render", Pi]]), Ri = { class: "flex items-c
|
|
|
4024
4033
|
], 64))), 128))
|
|
4025
4034
|
]),
|
|
4026
4035
|
(k = e.primaryActions.dropdownOptions) != null && k.bottom ? (t(), i("div", mo, [
|
|
4027
|
-
(t(!0), i(
|
|
4036
|
+
(t(!0), i(R, null, q((h = e.primaryActions.dropdownOptions) == null ? void 0 : h.bottom, (C, I) => (t(), i("div", { key: I }, [
|
|
4028
4037
|
C != null && C.tooltipText ? (t(), y(o(re), {
|
|
4029
4038
|
key: 0,
|
|
4030
4039
|
position: "bottom",
|
|
@@ -4107,7 +4116,7 @@ const Pf = /* @__PURE__ */ Be(Mi, [["render", Pi]]), Ri = { class: "flex items-c
|
|
|
4107
4116
|
var m;
|
|
4108
4117
|
return [
|
|
4109
4118
|
(m = e.secondaryButtonProps) != null && m.dropdownOptions ? (t(), i("div", yo, [
|
|
4110
|
-
(t(!0), i(
|
|
4119
|
+
(t(!0), i(R, null, q(e.secondaryButtonProps.dropdownOptions, (f, g) => (t(), y(o(Le), W({ key: g }, { ref_for: !0 }, f), null, 16))), 128))
|
|
4111
4120
|
])) : u("", !0)
|
|
4112
4121
|
];
|
|
4113
4122
|
}),
|
|
@@ -4190,7 +4199,7 @@ const Pf = /* @__PURE__ */ Be(Mi, [["render", Pi]]), Ri = { class: "flex items-c
|
|
|
4190
4199
|
}, [
|
|
4191
4200
|
n("div", wo, [
|
|
4192
4201
|
$(f.$slots, "before", { isExpanded: e.isExpanded }),
|
|
4193
|
-
(t(!0), i(
|
|
4202
|
+
(t(!0), i(R, null, q(e.sidebarMenu, (x, b) => (t(), i(R, { key: b }, [
|
|
4194
4203
|
e.isExpanded ? u("", !0) : (t(), i("div", ko)),
|
|
4195
4204
|
x.label || x.items.length > 0 ? (t(), y(o(Uo), {
|
|
4196
4205
|
key: 1,
|
|
@@ -4198,7 +4207,7 @@ const Pf = /* @__PURE__ */ Be(Mi, [["render", Pi]]), Ri = { class: "flex items-c
|
|
|
4198
4207
|
"is-sidebar-expanded": e.isExpanded
|
|
4199
4208
|
}, {
|
|
4200
4209
|
default: B(() => [
|
|
4201
|
-
(t(!0), i(
|
|
4210
|
+
(t(!0), i(R, null, q(x.items, (A, D) => {
|
|
4202
4211
|
var O;
|
|
4203
4212
|
return t(), y(o(Jo), {
|
|
4204
4213
|
key: D,
|
|
@@ -4215,7 +4224,7 @@ const Pf = /* @__PURE__ */ Be(Mi, [["render", Pi]]), Ri = { class: "flex items-c
|
|
|
4215
4224
|
onCloseMenu: (k) => d(A.name)
|
|
4216
4225
|
}, {
|
|
4217
4226
|
default: B(() => [
|
|
4218
|
-
(t(!0), i(
|
|
4227
|
+
(t(!0), i(R, null, q(A.children, (k, h) => (t(), y(o(ts), {
|
|
4219
4228
|
key: h,
|
|
4220
4229
|
icon: k.icon,
|
|
4221
4230
|
label: k.label,
|
|
@@ -4268,7 +4277,7 @@ const Pf = /* @__PURE__ */ Be(Mi, [["render", Pi]]), Ri = { class: "flex items-c
|
|
|
4268
4277
|
return (r, l) => (t(), i("div", {
|
|
4269
4278
|
class: v(["grid gap-3 transition-all duration-500 overflow-hidden", e.isExpanded ? "max-h-screen" : "max-h-0"])
|
|
4270
4279
|
}, [
|
|
4271
|
-
(t(!0), i(
|
|
4280
|
+
(t(!0), i(R, null, q(e.menu.children, (a, s) => (t(), i("div", {
|
|
4272
4281
|
key: s,
|
|
4273
4282
|
class: v(["text-oc-text-400 flex items-center rounded hover:bg-[var(--oc-sidebar-menu-hover)]", {
|
|
4274
4283
|
"font-medium bg-[var(--oc-sidebar-menu-active)] text-[var(--oc-sidebar-menu-active-text)]": a.active
|
|
@@ -4447,7 +4456,7 @@ const Pf = /* @__PURE__ */ Be(Mi, [["render", Pi]]), Ri = { class: "flex items-c
|
|
|
4447
4456
|
}, Po = {
|
|
4448
4457
|
key: 1,
|
|
4449
4458
|
class: "pie-wrapper progress style-2"
|
|
4450
|
-
},
|
|
4459
|
+
}, No = { class: "label" }, Ro = {
|
|
4451
4460
|
__name: "OcAccountSetup",
|
|
4452
4461
|
props: {
|
|
4453
4462
|
isExpanded: Boolean,
|
|
@@ -4467,7 +4476,7 @@ const Pf = /* @__PURE__ */ Be(Mi, [["render", Pi]]), Ri = { class: "flex items-c
|
|
|
4467
4476
|
]])
|
|
4468
4477
|
}, [
|
|
4469
4478
|
e.isExpanded ? (t(), i("div", So, [
|
|
4470
|
-
e.isPending ? (t(), i(
|
|
4479
|
+
e.isPending ? (t(), i(R, { key: 0 }, [
|
|
4471
4480
|
n("div", Co, [
|
|
4472
4481
|
n("div", Bo, [
|
|
4473
4482
|
p(T, {
|
|
@@ -4491,7 +4500,7 @@ const Pf = /* @__PURE__ */ Be(Mi, [["render", Pi]]), Ri = { class: "flex items-c
|
|
|
4491
4500
|
])) : u("", !0)
|
|
4492
4501
|
])
|
|
4493
4502
|
])
|
|
4494
|
-
], 64)) : (t(), i(
|
|
4503
|
+
], 64)) : (t(), i(R, { key: 1 }, [
|
|
4495
4504
|
n("div", Do, [
|
|
4496
4505
|
n("div", Ao, [
|
|
4497
4506
|
l[3] || (l[3] = n("span", { class: "font-medium" }, "Account setup", -1)),
|
|
@@ -4515,7 +4524,7 @@ const Pf = /* @__PURE__ */ Be(Mi, [["render", Pi]]), Ri = { class: "flex items-c
|
|
|
4515
4524
|
class: "text-oc-warning-500"
|
|
4516
4525
|
})
|
|
4517
4526
|
])) : (t(), i("div", Po, [
|
|
4518
|
-
n("span",
|
|
4527
|
+
n("span", No, w(e.progress), 1),
|
|
4519
4528
|
n("div", {
|
|
4520
4529
|
class: "pie",
|
|
4521
4530
|
style: me({
|
|
@@ -4534,7 +4543,7 @@ const Pf = /* @__PURE__ */ Be(Mi, [["render", Pi]]), Ri = { class: "flex items-c
|
|
|
4534
4543
|
]))
|
|
4535
4544
|
], 2));
|
|
4536
4545
|
}
|
|
4537
|
-
}, Wf = /* @__PURE__ */ Be(
|
|
4546
|
+
}, Wf = /* @__PURE__ */ Be(Ro, [["__scopeId", "data-v-fb4f007e"]]), zo = { class: "pb-2" }, Fo = {
|
|
4538
4547
|
key: 0,
|
|
4539
4548
|
class: "pl-3 uppercase text-oc-accent-1-200 relative text-medium text-sm"
|
|
4540
4549
|
}, Uo = {
|
|
@@ -4545,7 +4554,7 @@ const Pf = /* @__PURE__ */ Be(Mi, [["render", Pi]]), Ri = { class: "flex items-c
|
|
|
4545
4554
|
},
|
|
4546
4555
|
setup(e) {
|
|
4547
4556
|
return (r, l) => (t(), i("div", null, [
|
|
4548
|
-
n("div",
|
|
4557
|
+
n("div", zo, [
|
|
4549
4558
|
e.isSidebarExpanded && e.label ? (t(), i("div", Fo, [
|
|
4550
4559
|
n("span", null, w(e.label), 1)
|
|
4551
4560
|
])) : u("", !0)
|
|
@@ -4602,7 +4611,7 @@ const Pf = /* @__PURE__ */ Be(Mi, [["render", Pi]]), Ri = { class: "flex items-c
|
|
|
4602
4611
|
distance: 10,
|
|
4603
4612
|
"popper-options": { strategy: "fixed" },
|
|
4604
4613
|
class: "w-full"
|
|
4605
|
-
},
|
|
4614
|
+
}, ne({
|
|
4606
4615
|
default: B(() => [
|
|
4607
4616
|
n("div", {
|
|
4608
4617
|
ref_key: "menuItemRef",
|
|
@@ -4622,7 +4631,7 @@ const Pf = /* @__PURE__ */ Be(Mi, [["render", Pi]]), Ri = { class: "flex items-c
|
|
|
4622
4631
|
"mx-auto": !e.isExpanded
|
|
4623
4632
|
})
|
|
4624
4633
|
}, null, 8, ["name", "class"]),
|
|
4625
|
-
e.isExpanded ? (t(), i(
|
|
4634
|
+
e.isExpanded ? (t(), i(R, { key: 0 }, [
|
|
4626
4635
|
n("span", {
|
|
4627
4636
|
class: v(["leading-[21px] flex-1", { "font-medium": e.isActive }])
|
|
4628
4637
|
}, w(e.label), 3),
|
|
@@ -4807,7 +4816,7 @@ const Pf = /* @__PURE__ */ Be(Mi, [["render", Pi]]), Ri = { class: "flex items-c
|
|
|
4807
4816
|
J(" " + w(e.title), 1)
|
|
4808
4817
|
])) : u("", !0),
|
|
4809
4818
|
n("div", ms, [
|
|
4810
|
-
(t(!0), i(
|
|
4819
|
+
(t(!0), i(R, null, q(e.menu, (a, s) => (t(), i("div", {
|
|
4811
4820
|
key: s,
|
|
4812
4821
|
class: v([
|
|
4813
4822
|
"py-3 whitespace-nowrap rounded cursor-pointer font-medium hover:bg-oc-accent-2-50-tr px-5",
|
|
@@ -5039,7 +5048,7 @@ const Pf = /* @__PURE__ */ Be(Mi, [["render", Pi]]), Ri = { class: "flex items-c
|
|
|
5039
5048
|
return (r, l) => (t(), i("div", $s, [
|
|
5040
5049
|
l[0] || (l[0] = n("span", { class: "text-xs shrink-0 font-medium text-oc-text-300 uppercase" }, " Payment methods ", -1)),
|
|
5041
5050
|
n("div", Ss, [
|
|
5042
|
-
(t(!0), i(
|
|
5051
|
+
(t(!0), i(R, null, q(e.methods, (a) => (t(), i("img", {
|
|
5043
5052
|
key: a,
|
|
5044
5053
|
width: "35",
|
|
5045
5054
|
alt: a,
|
|
@@ -5096,7 +5105,7 @@ const Pf = /* @__PURE__ */ Be(Mi, [["render", Pi]]), Ri = { class: "flex items-c
|
|
|
5096
5105
|
class: "text-sm"
|
|
5097
5106
|
}, e.dropdownProps), {
|
|
5098
5107
|
menu: B(() => [
|
|
5099
|
-
(t(!0), i(
|
|
5108
|
+
(t(!0), i(R, null, q(e.dropdownItems, (d, c) => (t(), y(o(Le), W({ key: c }, { ref_for: !0 }, d), null, 16))), 128))
|
|
5100
5109
|
]),
|
|
5101
5110
|
default: B(() => [
|
|
5102
5111
|
p(o(Z), W({
|
|
@@ -5109,7 +5118,7 @@ const Pf = /* @__PURE__ */ Be(Mi, [["render", Pi]]), Ri = { class: "flex items-c
|
|
|
5109
5118
|
p(o(re), {
|
|
5110
5119
|
"popper-options": { strategy: "fixed" },
|
|
5111
5120
|
position: "top"
|
|
5112
|
-
},
|
|
5121
|
+
}, ne({
|
|
5113
5122
|
default: B(() => [
|
|
5114
5123
|
p(o(Z), W({
|
|
5115
5124
|
variant: "secondary",
|
|
@@ -5168,7 +5177,7 @@ const Pf = /* @__PURE__ */ Be(Mi, [["render", Pi]]), Ri = { class: "flex items-c
|
|
|
5168
5177
|
setup(e) {
|
|
5169
5178
|
return (r, l) => (t(), i("div", Ds, [
|
|
5170
5179
|
n("div", As, [
|
|
5171
|
-
(t(!0), i(
|
|
5180
|
+
(t(!0), i(R, null, q(e.isLoading ? 2 : e.overviewTabs, (a) => $(r.$slots, a.value, { tab: a }, () => [
|
|
5172
5181
|
(t(), y(ks, {
|
|
5173
5182
|
key: a.value,
|
|
5174
5183
|
title: a.title,
|
|
@@ -5211,10 +5220,10 @@ function Es(e, r) {
|
|
|
5211
5220
|
$(e.$slots, "default")
|
|
5212
5221
|
]);
|
|
5213
5222
|
}
|
|
5214
|
-
const mt = /* @__PURE__ */ Be(js, [["render", Es]]), Ps = { class: "flex" },
|
|
5223
|
+
const mt = /* @__PURE__ */ Be(js, [["render", Es]]), Ps = { class: "flex" }, Ns = {
|
|
5215
5224
|
key: 0,
|
|
5216
5225
|
class: "p-2"
|
|
5217
|
-
},
|
|
5226
|
+
}, Rs = { class: "py-2 px-3" }, zs = {
|
|
5218
5227
|
key: 0,
|
|
5219
5228
|
class: "max-w-[250px] fixed z-[1006] top-0 right-0 transition-all duration-500 flex flex-col gap-y-2 w-full bg-white h-screen overflow-y-auto"
|
|
5220
5229
|
}, Fs = { class: "p-5 flex items-center justify-between" }, Us = { class: "px-5 flex-1 flex flex-col gap-y-5" }, qs = {
|
|
@@ -5234,14 +5243,14 @@ const mt = /* @__PURE__ */ Be(js, [["render", Es]]), Ps = { class: "flex" }, Rs
|
|
|
5234
5243
|
var s, d;
|
|
5235
5244
|
return [
|
|
5236
5245
|
n("div", Ps, [
|
|
5237
|
-
(t(!0), i(
|
|
5246
|
+
(t(!0), i(R, null, q((s = e.boxes[0]) == null ? void 0 : s.items.slice(0, 2), (c, m) => (t(), y(o(st), W({
|
|
5238
5247
|
key: m,
|
|
5239
5248
|
"is-transparent": "",
|
|
5240
5249
|
title: c.title,
|
|
5241
5250
|
content: c.content,
|
|
5242
5251
|
class: c.class,
|
|
5243
5252
|
"is-loading": c.isLoading
|
|
5244
|
-
}, { ref_for: !0 }, c),
|
|
5253
|
+
}, { ref_for: !0 }, c), ne({ _: 2 }, [
|
|
5245
5254
|
c.slot && l.$slots[c.slot] ? {
|
|
5246
5255
|
name: "content",
|
|
5247
5256
|
fn: B(() => [
|
|
@@ -5252,12 +5261,12 @@ const mt = /* @__PURE__ */ Be(js, [["render", Es]]), Ps = { class: "flex" }, Rs
|
|
|
5252
5261
|
key: "0"
|
|
5253
5262
|
} : void 0
|
|
5254
5263
|
]), 1040, ["title", "content", "class", "is-loading"]))), 128)),
|
|
5255
|
-
(d = e.boxes[0]) != null && d.showInfo ? (t(), i("div",
|
|
5264
|
+
(d = e.boxes[0]) != null && d.showInfo ? (t(), i("div", Ns, [
|
|
5256
5265
|
p(o(re), null, {
|
|
5257
5266
|
popper: B(() => {
|
|
5258
5267
|
var c;
|
|
5259
5268
|
return [
|
|
5260
|
-
n("div",
|
|
5269
|
+
n("div", Rs, w((c = e.boxes[0]) == null ? void 0 : c.infoTooltip), 1)
|
|
5261
5270
|
];
|
|
5262
5271
|
}),
|
|
5263
5272
|
default: B(() => [
|
|
@@ -5295,7 +5304,7 @@ const mt = /* @__PURE__ */ Be(js, [["render", Es]]), Ps = { class: "flex" }, Rs
|
|
|
5295
5304
|
}),
|
|
5296
5305
|
p(Ye, { name: "slide-from-right" }, {
|
|
5297
5306
|
default: B(() => [
|
|
5298
|
-
r.value ? (t(), i("div",
|
|
5307
|
+
r.value ? (t(), i("div", zs, [
|
|
5299
5308
|
n("div", Fs, [
|
|
5300
5309
|
a[4] || (a[4] = n("span", { class: "font-medium" }, "Details", -1)),
|
|
5301
5310
|
p(o(Z), {
|
|
@@ -5309,16 +5318,16 @@ const mt = /* @__PURE__ */ Be(js, [["render", Es]]), Ps = { class: "flex" }, Rs
|
|
|
5309
5318
|
})
|
|
5310
5319
|
]),
|
|
5311
5320
|
n("div", Us, [
|
|
5312
|
-
(t(!0), i(
|
|
5321
|
+
(t(!0), i(R, null, q(e.boxes, (s, d) => (t(), y(mt, { key: d }, {
|
|
5313
5322
|
default: B(() => [
|
|
5314
|
-
(t(!0), i(
|
|
5323
|
+
(t(!0), i(R, null, q(s.items, (c, m) => (t(), y(o(st), W({
|
|
5315
5324
|
key: `${d}-${m}`,
|
|
5316
5325
|
"is-transparent": "",
|
|
5317
5326
|
title: c.title,
|
|
5318
5327
|
content: c.content,
|
|
5319
5328
|
class: c.class,
|
|
5320
5329
|
"is-loading": c.isLoading
|
|
5321
|
-
}, { ref_for: !0 }, c),
|
|
5330
|
+
}, { ref_for: !0 }, c), ne({ _: 2 }, [
|
|
5322
5331
|
c.slot && l.$slots[c.slot] ? {
|
|
5323
5332
|
name: "content",
|
|
5324
5333
|
fn: B(() => [
|
|
@@ -5332,7 +5341,7 @@ const mt = /* @__PURE__ */ Be(js, [["render", Es]]), Ps = { class: "flex" }, Rs
|
|
|
5332
5341
|
]),
|
|
5333
5342
|
_: 2
|
|
5334
5343
|
}, 1024))), 128)),
|
|
5335
|
-
e.isCustomer ? (t(), y(o(
|
|
5344
|
+
e.isCustomer ? (t(), y(o(zt), {
|
|
5336
5345
|
key: 0,
|
|
5337
5346
|
variant: e.customerCardVariant,
|
|
5338
5347
|
customer: e.customer,
|
|
@@ -5357,9 +5366,9 @@ const mt = /* @__PURE__ */ Be(js, [["render", Es]]), Ps = { class: "flex" }, Rs
|
|
|
5357
5366
|
},
|
|
5358
5367
|
emits: ["addCustomer", "editCustomer"],
|
|
5359
5368
|
setup(e) {
|
|
5360
|
-
return (r, l) => (t(), i(
|
|
5369
|
+
return (r, l) => (t(), i(R, null, [
|
|
5361
5370
|
n("div", Ws, [
|
|
5362
|
-
(t(!0), i(
|
|
5371
|
+
(t(!0), i(R, null, q(e.boxes, (a, s) => (t(), y(mt, {
|
|
5363
5372
|
key: s,
|
|
5364
5373
|
class: v(
|
|
5365
5374
|
(e.isCustomer ? "!grid grid-cols-4 grid-rows-2 gap-y-4 w-full !py-4 " : " ") + (a == null ? void 0 : a.style)
|
|
@@ -5369,14 +5378,14 @@ const mt = /* @__PURE__ */ Be(js, [["render", Es]]), Ps = { class: "flex" }, Rs
|
|
|
5369
5378
|
a.slot && r.$slots[a.slot] ? $(r.$slots, a.slot, {
|
|
5370
5379
|
key: 0,
|
|
5371
5380
|
data: { ...a, key: s }
|
|
5372
|
-
}) : (t(!0), i(
|
|
5381
|
+
}) : (t(!0), i(R, { key: 1 }, q(a.items, (d, c) => (t(), y(o(st), W({
|
|
5373
5382
|
key: `${s}-${c}`,
|
|
5374
5383
|
"is-transparent": "",
|
|
5375
5384
|
title: d.title,
|
|
5376
5385
|
class: d.class,
|
|
5377
5386
|
"is-loading": d.isLoading,
|
|
5378
5387
|
content: d.content
|
|
5379
|
-
}, { ref_for: !0 }, d),
|
|
5388
|
+
}, { ref_for: !0 }, d), ne({ _: 2 }, [
|
|
5380
5389
|
d.slot && r.$slots[d.slot] ? {
|
|
5381
5390
|
name: "content",
|
|
5382
5391
|
fn: B(() => [
|
|
@@ -5411,7 +5420,7 @@ const mt = /* @__PURE__ */ Be(js, [["render", Es]]), Ps = { class: "flex" }, Rs
|
|
|
5411
5420
|
]),
|
|
5412
5421
|
_: 2
|
|
5413
5422
|
}, 1032, ["class"]))), 128)),
|
|
5414
|
-
e.isCustomer ? (t(), y(o(
|
|
5423
|
+
e.isCustomer ? (t(), y(o(zt), {
|
|
5415
5424
|
key: 0,
|
|
5416
5425
|
variant: e.customerCardVariant,
|
|
5417
5426
|
customer: e.customer,
|
|
@@ -5420,7 +5429,7 @@ const mt = /* @__PURE__ */ Be(js, [["render", Es]]), Ps = { class: "flex" }, Rs
|
|
|
5420
5429
|
class: "max-w-[300px]",
|
|
5421
5430
|
onAddCustomer: l[0] || (l[0] = (a) => r.$emit("addCustomer")),
|
|
5422
5431
|
onEditCustomer: l[1] || (l[1] = (a) => r.$emit("editCustomer", a))
|
|
5423
|
-
},
|
|
5432
|
+
}, ne({ _: 2 }, [
|
|
5424
5433
|
r.$slots["customer-leading"] ? {
|
|
5425
5434
|
name: "leading",
|
|
5426
5435
|
fn: B(() => [
|
|
@@ -5444,7 +5453,7 @@ const mt = /* @__PURE__ */ Be(js, [["render", Es]]), Ps = { class: "flex" }, Rs
|
|
|
5444
5453
|
"customer-card-variant": e.customerCardVariant,
|
|
5445
5454
|
customer: e.customer,
|
|
5446
5455
|
onAddCustomer: l[2] || (l[2] = (a) => r.$emit("addCustomer"))
|
|
5447
|
-
},
|
|
5456
|
+
}, ne({ _: 2 }, [
|
|
5448
5457
|
q(r.$slots, (a, s) => ({
|
|
5449
5458
|
name: s,
|
|
5450
5459
|
fn: B((d) => [
|
|
@@ -5572,7 +5581,7 @@ const mt = /* @__PURE__ */ Be(js, [["render", Es]]), Ps = { class: "flex" }, Rs
|
|
|
5572
5581
|
class: v(e.additionalStyling),
|
|
5573
5582
|
onAddCustomer: s[0] || (s[0] = (d) => a.$emit("addCustomer")),
|
|
5574
5583
|
onEditCustomer: s[1] || (s[1] = (d) => a.$emit("editCustomer", d))
|
|
5575
|
-
},
|
|
5584
|
+
}, ne({ _: 2 }, [
|
|
5576
5585
|
q(a.$slots, (d, c) => ({
|
|
5577
5586
|
name: c,
|
|
5578
5587
|
fn: B((m) => [
|
|
@@ -5593,7 +5602,7 @@ const mt = /* @__PURE__ */ Be(js, [["render", Es]]), Ps = { class: "flex" }, Rs
|
|
|
5593
5602
|
class: v(e.additionalStyling),
|
|
5594
5603
|
"is-loading": e.isLoading,
|
|
5595
5604
|
onChangeTab: s[2] || (s[2] = (d) => a.$emit("changeTab", d))
|
|
5596
|
-
},
|
|
5605
|
+
}, ne({ _: 2 }, [
|
|
5597
5606
|
q(a.$slots, (d, c) => ({
|
|
5598
5607
|
name: c,
|
|
5599
5608
|
fn: B((m) => [
|
|
@@ -5634,7 +5643,7 @@ const mt = /* @__PURE__ */ Be(js, [["render", Es]]), Ps = { class: "flex" }, Rs
|
|
|
5634
5643
|
n("h2", nr, w(e.title), 1),
|
|
5635
5644
|
e.description ? (t(), i("p", ir, w(e.description), 1)) : u("", !0),
|
|
5636
5645
|
(a = e.features) != null && a.length ? (t(), i("div", or, [
|
|
5637
|
-
(t(!0), i(
|
|
5646
|
+
(t(!0), i(R, null, q(e.features, (s) => (t(), i("div", {
|
|
5638
5647
|
key: s.title,
|
|
5639
5648
|
class: "rounded bg-white flex flex-col gap-2 p-6 items-center justify-center relative"
|
|
5640
5649
|
}, [
|
|
@@ -5734,7 +5743,7 @@ const mt = /* @__PURE__ */ Be(js, [["render", Es]]), Ps = { class: "flex" }, Rs
|
|
|
5734
5743
|
return (r, l) => (t(), i("div", {
|
|
5735
5744
|
class: v(["rounded py-7 px-5 border bg-oc-bg-light flex flex-col gap-y-5 items-center shadow-sm", e.isActive ? "border-oc-primary" : "border-oc-gray-200"])
|
|
5736
5745
|
}, [
|
|
5737
|
-
p(o(
|
|
5746
|
+
p(o(Rt), {
|
|
5738
5747
|
icon: e.icon,
|
|
5739
5748
|
width: e.width,
|
|
5740
5749
|
height: e.height,
|
|
@@ -5937,7 +5946,7 @@ const mt = /* @__PURE__ */ Be(js, [["render", Es]]), Ps = { class: "flex" }, Rs
|
|
|
5937
5946
|
], "border rounded-lg flex shadow-sm snackbar relative"]),
|
|
5938
5947
|
style: me(e.isFloating && e.position.includes("center") ? { left: c.value + "px" } : "")
|
|
5939
5948
|
}, [
|
|
5940
|
-
e.showIcon ? (t(), i(
|
|
5949
|
+
e.showIcon ? (t(), i(R, { key: 0 }, [
|
|
5941
5950
|
f.value ? (t(), i("div", {
|
|
5942
5951
|
key: 0,
|
|
5943
5952
|
class: v([s[e.color], "w-[48px] flex shrink-0 items-center justify-center h-[48px] rounded-full"])
|
|
@@ -6132,13 +6141,13 @@ const mt = /* @__PURE__ */ Be(js, [["render", Es]]), Ps = { class: "flex" }, Rs
|
|
|
6132
6141
|
}, Mr = { class: "flex flex-col w-full gap-y-2" }, Er = { class: "flex items-center gap-x-1" }, Pr = {
|
|
6133
6142
|
key: 0,
|
|
6134
6143
|
class: "text-oc-error"
|
|
6135
|
-
},
|
|
6144
|
+
}, Nr = {
|
|
6136
6145
|
key: 0,
|
|
6137
6146
|
class: "px-3 py-2"
|
|
6138
|
-
},
|
|
6147
|
+
}, Rr = {
|
|
6139
6148
|
key: 1,
|
|
6140
6149
|
class: "flex items-center text-sm text-oc-text-400"
|
|
6141
|
-
},
|
|
6150
|
+
}, zr = {
|
|
6142
6151
|
key: 2,
|
|
6143
6152
|
class: "flex items-center text-sm text-oc-error"
|
|
6144
6153
|
}, Te = {
|
|
@@ -6166,7 +6175,7 @@ const mt = /* @__PURE__ */ Be(js, [["render", Es]]), Ps = { class: "flex" }, Rs
|
|
|
6166
6175
|
e.labelIcon ? (t(), y(o(re), ke(W({ key: 0 }, e.tooltipOptions)), {
|
|
6167
6176
|
popper: B(() => [
|
|
6168
6177
|
$(r.$slots, "tooltipText", {}, () => [
|
|
6169
|
-
e.tooltipText ? (t(), i("div",
|
|
6178
|
+
e.tooltipText ? (t(), i("div", Nr, w(e.tooltipText), 1)) : u("", !0)
|
|
6170
6179
|
])
|
|
6171
6180
|
]),
|
|
6172
6181
|
default: B(() => [
|
|
@@ -6180,12 +6189,12 @@ const mt = /* @__PURE__ */ Be(js, [["render", Es]]), Ps = { class: "flex" }, Rs
|
|
|
6180
6189
|
}, 16)) : u("", !0)
|
|
6181
6190
|
], 2)) : u("", !0),
|
|
6182
6191
|
$(r.$slots, "default"),
|
|
6183
|
-
(e.hint || r.$slots.hint) && !e.errorMessage ? (t(), i("div",
|
|
6192
|
+
(e.hint || r.$slots.hint) && !e.errorMessage ? (t(), i("div", Rr, [
|
|
6184
6193
|
$(r.$slots, "hint", {}, () => [
|
|
6185
6194
|
J(w(e.hint), 1)
|
|
6186
6195
|
])
|
|
6187
6196
|
])) : u("", !0),
|
|
6188
|
-
e.errorMessage ? (t(), i("div",
|
|
6197
|
+
e.errorMessage ? (t(), i("div", zr, w(e.errorMessage), 1)) : u("", !0)
|
|
6189
6198
|
]));
|
|
6190
6199
|
}
|
|
6191
6200
|
}, Fr = ["disabled"], Ur = {
|
|
@@ -6419,7 +6428,7 @@ const mt = /* @__PURE__ */ Be(js, [["render", Es]]), Ps = { class: "flex" }, Rs
|
|
|
6419
6428
|
_: 3
|
|
6420
6429
|
}, 8, ["label", "hint", "error-message"]));
|
|
6421
6430
|
}
|
|
6422
|
-
},
|
|
6431
|
+
}, ze = /* @__PURE__ */ Be(Kr, [["__scopeId", "data-v-bdfcee55"]]), Gr = {
|
|
6423
6432
|
__name: "OcCheckboxesGroup",
|
|
6424
6433
|
props: {
|
|
6425
6434
|
alignment: {
|
|
@@ -6473,7 +6482,7 @@ const mt = /* @__PURE__ */ Be(js, [["render", Es]]), Ps = { class: "flex" }, Rs
|
|
|
6473
6482
|
n("div", {
|
|
6474
6483
|
class: v(["flex", s.value[e.alignment]])
|
|
6475
6484
|
}, [
|
|
6476
|
-
e.isSelectAll ? (t(), y(o(
|
|
6485
|
+
e.isSelectAll ? (t(), y(o(ze), {
|
|
6477
6486
|
key: 0,
|
|
6478
6487
|
label: "Select all",
|
|
6479
6488
|
"is-disabled": e.isDisabled,
|
|
@@ -6482,7 +6491,7 @@ const mt = /* @__PURE__ */ Be(js, [["render", Es]]), Ps = { class: "flex" }, Rs
|
|
|
6482
6491
|
"is-button-variant": e.isButtonVariant,
|
|
6483
6492
|
"onUpdate:modelValue": g
|
|
6484
6493
|
}, null, 8, ["is-disabled", "value", "model-value", "is-button-variant"])) : u("", !0),
|
|
6485
|
-
(t(!0), i(
|
|
6494
|
+
(t(!0), i(R, null, q(e.checkboxes, (A, D) => (t(), y(o(ze), {
|
|
6486
6495
|
key: D,
|
|
6487
6496
|
label: A.label,
|
|
6488
6497
|
value: A.value,
|
|
@@ -6667,7 +6676,7 @@ const mt = /* @__PURE__ */ Be(js, [["render", Es]]), Ps = { class: "flex" }, Rs
|
|
|
6667
6676
|
"tooltip-text": e.tooltipText,
|
|
6668
6677
|
"tooltip-options": e.tooltipOptions,
|
|
6669
6678
|
class: v(o(a).class)
|
|
6670
|
-
},
|
|
6679
|
+
}, ne({
|
|
6671
6680
|
default: B(() => [
|
|
6672
6681
|
n("div", {
|
|
6673
6682
|
class: v(["rounded h-[36px] border input-shadow flex items-center transition-all ease-out duration-[250ms] gap-x-3 px-3 cursor-pointer", m.value]),
|
|
@@ -6845,7 +6854,7 @@ const mt = /* @__PURE__ */ Be(js, [["render", Es]]), Ps = { class: "flex" }, Rs
|
|
|
6845
6854
|
options: x.value,
|
|
6846
6855
|
areAllOptionsVisible: f.value
|
|
6847
6856
|
}, () => [
|
|
6848
|
-
(t(!0), i(
|
|
6857
|
+
(t(!0), i(R, null, q(x.value, (C, I) => (t(), y(o(ue), {
|
|
6849
6858
|
key: `${C}-${I}`,
|
|
6850
6859
|
closable: "",
|
|
6851
6860
|
label: C,
|
|
@@ -7028,7 +7037,7 @@ const mt = /* @__PURE__ */ Be(js, [["render", Es]]), Ps = { class: "flex" }, Rs
|
|
|
7028
7037
|
_: 1
|
|
7029
7038
|
}, 8, ["modelValue"])
|
|
7030
7039
|
]),
|
|
7031
|
-
(t(!0), i(
|
|
7040
|
+
(t(!0), i(R, null, q(f.value, (V, M) => (t(), i("div", {
|
|
7032
7041
|
ref_for: !0,
|
|
7033
7042
|
ref_key: "countryListItemRef",
|
|
7034
7043
|
ref: O,
|
|
@@ -7198,7 +7207,7 @@ const mt = /* @__PURE__ */ Be(js, [["render", Es]]), Ps = { class: "flex" }, Rs
|
|
|
7198
7207
|
n("div", {
|
|
7199
7208
|
class: v(["flex", [a.value[e.alignment], e.wrapperClass]])
|
|
7200
7209
|
}, [
|
|
7201
|
-
(t(!0), i(
|
|
7210
|
+
(t(!0), i(R, null, q(e.radio, (m, f) => (t(), y(o(pd), {
|
|
7202
7211
|
id: m.value,
|
|
7203
7212
|
key: f,
|
|
7204
7213
|
class: v({ "!w-fit": !e.isBlock }),
|
|
@@ -7433,30 +7442,30 @@ const mt = /* @__PURE__ */ Be(js, [["render", Es]]), Ps = { class: "flex" }, Rs
|
|
|
7433
7442
|
for (const F of a.modelValue)
|
|
7434
7443
|
for (const Y of a.options)
|
|
7435
7444
|
Y.values ? Y.values.forEach((X) => {
|
|
7436
|
-
|
|
7437
|
-
}) :
|
|
7445
|
+
Re(X.value, F) && L.push(X);
|
|
7446
|
+
}) : Re(Y.value, F) && L.push(Y);
|
|
7438
7447
|
return L;
|
|
7439
7448
|
} else
|
|
7440
|
-
return a.options.find((L) =>
|
|
7449
|
+
return a.options.find((L) => Re(L.value, a.modelValue));
|
|
7441
7450
|
}), h = (L) => {
|
|
7442
7451
|
var Y;
|
|
7443
7452
|
if (L.isDisabled)
|
|
7444
7453
|
return;
|
|
7445
7454
|
let F;
|
|
7446
7455
|
if (a.multiple) {
|
|
7447
|
-
const X = (a.modelValue || []).find((Q) =>
|
|
7456
|
+
const X = (a.modelValue || []).find((Q) => Re(Q, L.value));
|
|
7448
7457
|
if (!X && a.maxOptionAllowed && ((Y = k.value) == null ? void 0 : Y.length) >= Number(a.maxOptionAllowed)) {
|
|
7449
7458
|
s("max-option-allowed-set");
|
|
7450
7459
|
return;
|
|
7451
7460
|
}
|
|
7452
|
-
F = X ? (a.modelValue || []).filter((Q) => !
|
|
7461
|
+
F = X ? (a.modelValue || []).filter((Q) => !Re(Q, L.value)) : [...a.modelValue || [], L.value];
|
|
7453
7462
|
} else
|
|
7454
7463
|
F = L.value, c.value = !1;
|
|
7455
7464
|
s("update:modelValue", F);
|
|
7456
7465
|
}, C = (L) => {
|
|
7457
7466
|
s(
|
|
7458
7467
|
"update:modelValue",
|
|
7459
|
-
(a.modelValue || []).filter((F) => !
|
|
7468
|
+
(a.modelValue || []).filter((F) => !Re(F, L))
|
|
7460
7469
|
);
|
|
7461
7470
|
}, I = () => {
|
|
7462
7471
|
a.isAsynchronousSearch || (A.value ? s("update:modelValue", null) : s(
|
|
@@ -7483,7 +7492,7 @@ const mt = /* @__PURE__ */ Be(js, [["render", Es]]), Ps = { class: "flex" }, Rs
|
|
|
7483
7492
|
let Q, ie;
|
|
7484
7493
|
if (Array.isArray(a.modelValue) ? Q = a.modelValue[0] ?? null : Q = a.modelValue, !Q) return;
|
|
7485
7494
|
O.value.find((te, Oe) => {
|
|
7486
|
-
if (
|
|
7495
|
+
if (Re(te.value, Q))
|
|
7487
7496
|
return ie = Oe, !0;
|
|
7488
7497
|
});
|
|
7489
7498
|
const de = g.value[ie], ve = (pe = de == null ? void 0 : de.optionItemRef) == null ? void 0 : pe.offsetTop;
|
|
@@ -7508,7 +7517,7 @@ const mt = /* @__PURE__ */ Be(js, [["render", Es]]), Ps = { class: "flex" }, Rs
|
|
|
7508
7517
|
"label-icon": e.labelIcon,
|
|
7509
7518
|
"tooltip-text": e.tooltipText,
|
|
7510
7519
|
"tooltip-options": e.tooltipOptions
|
|
7511
|
-
},
|
|
7520
|
+
}, ne({
|
|
7512
7521
|
tooltipText: B(() => [
|
|
7513
7522
|
L.$slots.selectTooltipText ? (t(), i("div", Id, [
|
|
7514
7523
|
$(L.$slots, "selectTooltipText")
|
|
@@ -7583,7 +7592,7 @@ const mt = /* @__PURE__ */ Be(js, [["render", Es]]), Ps = { class: "flex" }, Rs
|
|
|
7583
7592
|
fOptions: O.value,
|
|
7584
7593
|
selectOption: h
|
|
7585
7594
|
}, () => [
|
|
7586
|
-
(t(!0), i(
|
|
7595
|
+
(t(!0), i(R, null, q(O.value, (X) => (t(), y(o(Ot), {
|
|
7587
7596
|
ref_for: !0,
|
|
7588
7597
|
ref_key: "filterableOptionsRef",
|
|
7589
7598
|
ref: g,
|
|
@@ -7592,7 +7601,7 @@ const mt = /* @__PURE__ */ Be(js, [["render", Es]]), Ps = { class: "flex" }, Rs
|
|
|
7592
7601
|
"sub-label": X.subLabel,
|
|
7593
7602
|
"is-disabled": X.isDisabled,
|
|
7594
7603
|
"is-checkboxes": e.isCheckboxes,
|
|
7595
|
-
"is-selected": e.multiple ? e.modelValue ? e.modelValue.find((Q) => o(
|
|
7604
|
+
"is-selected": e.multiple ? e.modelValue ? e.modelValue.find((Q) => o(Re)(Q, X.value)) !== void 0 : !1 : o(Re)(e.modelValue, X.value),
|
|
7596
7605
|
onClick: (Q) => h(X)
|
|
7597
7606
|
}, null, 8, ["label", "sub-label", "is-disabled", "is-checkboxes", "is-selected", "onClick"]))), 128)),
|
|
7598
7607
|
$(L.$slots, "empty", {}, () => [
|
|
@@ -7641,7 +7650,7 @@ const mt = /* @__PURE__ */ Be(js, [["render", Es]]), Ps = { class: "flex" }, Rs
|
|
|
7641
7650
|
}, [
|
|
7642
7651
|
e.multiple ? (t(), i("div", $d, [
|
|
7643
7652
|
$(L.$slots, "selection", {}, () => [
|
|
7644
|
-
(t(!0), i(
|
|
7653
|
+
(t(!0), i(R, null, q(e.maxVisibleOptions ? k.value.slice(0, e.maxVisibleOptions) : k.value, (Y) => (t(), y(o(ue), W({
|
|
7645
7654
|
key: Y.value,
|
|
7646
7655
|
closable: "",
|
|
7647
7656
|
variant: Y.variant,
|
|
@@ -7668,7 +7677,7 @@ const mt = /* @__PURE__ */ Be(js, [["render", Es]]), Ps = { class: "flex" }, Rs
|
|
|
7668
7677
|
"input-class": "border-none !shadow-none bg-transparent",
|
|
7669
7678
|
"is-readonly": !c.value,
|
|
7670
7679
|
onKeyup: F[2] || (F[2] = ot((Y) => c.value = !1, ["enter"]))
|
|
7671
|
-
},
|
|
7680
|
+
}, ne({ _: 2 }, [
|
|
7672
7681
|
c.value ? {
|
|
7673
7682
|
name: "icon",
|
|
7674
7683
|
fn: B(() => [
|
|
@@ -7759,7 +7768,7 @@ const mt = /* @__PURE__ */ Be(js, [["render", Es]]), Ps = { class: "flex" }, Rs
|
|
|
7759
7768
|
}]),
|
|
7760
7769
|
onClick: s[0] || (s[0] = (d) => a.$emit("select"))
|
|
7761
7770
|
}, [
|
|
7762
|
-
e.isCheckboxes ? (t(), y(o(
|
|
7771
|
+
e.isCheckboxes ? (t(), y(o(ze), {
|
|
7763
7772
|
key: 0,
|
|
7764
7773
|
"model-value": !!e.isSelected,
|
|
7765
7774
|
"is-partial": e.isPartial,
|
|
@@ -7806,7 +7815,7 @@ const mt = /* @__PURE__ */ Be(js, [["render", Es]]), Ps = { class: "flex" }, Rs
|
|
|
7806
7815
|
}, Ed = { class: "flex items-center text-oc-text-400 gap-x-2" }, Pd = {
|
|
7807
7816
|
key: 0,
|
|
7808
7817
|
class: "flex flex-col gap-2 p-2 py-3"
|
|
7809
|
-
},
|
|
7818
|
+
}, Nd = ["onClick"], Rd = {
|
|
7810
7819
|
__name: "OcLinkInput",
|
|
7811
7820
|
props: {
|
|
7812
7821
|
placeholder: String,
|
|
@@ -7898,7 +7907,7 @@ const mt = /* @__PURE__ */ Be(js, [["render", Es]]), Ps = { class: "flex" }, Rs
|
|
|
7898
7907
|
}, {
|
|
7899
7908
|
menu: B(() => [
|
|
7900
7909
|
e.isEdit ? u("", !0) : (t(), i("div", Pd, [
|
|
7901
|
-
(t(!0), i(
|
|
7910
|
+
(t(!0), i(R, null, q(e.links, (I) => (t(), i("div", {
|
|
7902
7911
|
key: I.value,
|
|
7903
7912
|
class: "flex items-center px-3 py-2 rounded-sm cursor-pointer gap-x-3 text-oc-text-400 hover:bg-gray-50",
|
|
7904
7913
|
onClick: (S) => x(I.value)
|
|
@@ -7909,7 +7918,7 @@ const mt = /* @__PURE__ */ Be(js, [["render", Es]]), Ps = { class: "flex" }, Rs
|
|
|
7909
7918
|
name: I.icon
|
|
7910
7919
|
}, null, 8, ["name"]),
|
|
7911
7920
|
J(" " + w(I.label), 1)
|
|
7912
|
-
], 8,
|
|
7921
|
+
], 8, Nd))), 128))
|
|
7913
7922
|
]))
|
|
7914
7923
|
]),
|
|
7915
7924
|
default: B(() => [
|
|
@@ -7935,7 +7944,7 @@ const mt = /* @__PURE__ */ Be(js, [["render", Es]]), Ps = { class: "flex" }, Rs
|
|
|
7935
7944
|
}, 8, ["placeholder", "label", "error-message", "is-inline-label", "disabled", "hint", "pre-fill", "model-value", "is-required", "label-icon", "tooltip-text", "tooltip-options"])
|
|
7936
7945
|
]));
|
|
7937
7946
|
}
|
|
7938
|
-
},
|
|
7947
|
+
}, zd = ["disabled", "value", "rows", "placeholder"], Fd = "18px", Ud = {
|
|
7939
7948
|
__name: "OcTextArea",
|
|
7940
7949
|
props: {
|
|
7941
7950
|
placeholder: String,
|
|
@@ -7997,7 +8006,7 @@ const mt = /* @__PURE__ */ Be(js, [["render", Es]]), Ps = { class: "flex" }, Rs
|
|
|
7997
8006
|
onInput: s,
|
|
7998
8007
|
onFocus: c[0] || (c[0] = (m) => a.value = !0),
|
|
7999
8008
|
onBlur: c[1] || (c[1] = (m) => a.value = !1)
|
|
8000
|
-
}, null, 42,
|
|
8009
|
+
}, null, 42, zd)
|
|
8001
8010
|
]),
|
|
8002
8011
|
_: 1
|
|
8003
8012
|
}, 8, ["label", "error-message", "hint", "is-required", "label-icon", "tooltip-text", "tooltip-options"]));
|
|
@@ -8155,9 +8164,9 @@ function _d() {
|
|
|
8155
8164
|
X && (ie = L[2]), f = this.$locale(), !Y && ie && (f = I.Ls[ie]), this.$d = (function($e, he, te, Oe) {
|
|
8156
8165
|
try {
|
|
8157
8166
|
if (["x", "X"].indexOf(he) > -1) return new Date((he === "X" ? 1e3 : 1) * $e);
|
|
8158
|
-
var ce = k(he)($e), je = ce.year, De = ce.month, ee = ce.day, Me = ce.hours, K = ce.minutes,
|
|
8159
|
-
je && !De || (Ve = De > 0 ? De - 1 :
|
|
8160
|
-
var Ee, Pe = Me || 0, Ue = K || 0, Ge =
|
|
8167
|
+
var ce = k(he)($e), je = ce.year, De = ce.month, ee = ce.day, Me = ce.hours, K = ce.minutes, N = ce.seconds, z = ce.milliseconds, H = ce.zone, G = ce.week, ae = /* @__PURE__ */ new Date(), oe = ee || (je || De ? 1 : ae.getDate()), be = je || ae.getFullYear(), Ve = 0;
|
|
8168
|
+
je && !De || (Ve = De > 0 ? De - 1 : ae.getMonth());
|
|
8169
|
+
var Ee, Pe = Me || 0, Ue = K || 0, Ge = N || 0, le = z || 0;
|
|
8161
8170
|
return H ? new Date(Date.UTC(be, Ve, oe, Pe, Ue, Ge, le + 60 * H.offset * 1e3)) : te ? new Date(Date.UTC(be, Ve, oe, Pe, Ue, Ge, le)) : (Ee = new Date(be, Ve, oe, Pe, Ue, Ge, le), G && (Ee = Oe(Ee).week(G).toDate()), Ee);
|
|
8162
8171
|
} catch {
|
|
8163
8172
|
return /* @__PURE__ */ new Date("");
|
|
@@ -8292,7 +8301,7 @@ const Oc = { class: "flex items-center justify-between" }, Vc = { class: "flex f
|
|
|
8292
8301
|
}, Lc = ["onClick"], jc = {
|
|
8293
8302
|
key: 1,
|
|
8294
8303
|
class: "grid grid-cols-3 gap-3"
|
|
8295
|
-
}, Mc = ["onClick"], Ec = ["onClick", "onMouseover"], Pc = { key: 0 },
|
|
8304
|
+
}, Mc = ["onClick"], Ec = ["onClick", "onMouseover"], Pc = { key: 0 }, Nc = { class: "flex gap-x-3 justify-end" }, Rc = {
|
|
8296
8305
|
__name: "OcCalendar",
|
|
8297
8306
|
props: {
|
|
8298
8307
|
type: {
|
|
@@ -8333,15 +8342,15 @@ const Oc = { class: "flex items-center justify-between" }, Vc = { class: "flex f
|
|
|
8333
8342
|
setup(e, { emit: r }) {
|
|
8334
8343
|
_.extend(Ut), _.extend(qt), _.extend(Wt), _.extend(pt);
|
|
8335
8344
|
const l = e, a = r, s = j(), d = j(), c = j(), m = j(), f = j(), g = j(), x = j(), b = j(!1), A = j(!1), D = j(!1), O = j(!1), k = P(() => l.type === "range"), h = P(() => {
|
|
8336
|
-
const
|
|
8337
|
-
return Array.from({ length:
|
|
8345
|
+
const N = s.value.endOf("month").date();
|
|
8346
|
+
return Array.from({ length: N }, (z, H) => H + 1);
|
|
8338
8347
|
}), C = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], I = P(() => s.value.format("MMMM YYYY")), S = P(
|
|
8339
8348
|
() => D.value ? g.value.format("YYYY") : s.value.format("YYYY")
|
|
8340
8349
|
), V = P(() => s.value.format("MMM")), M = P(() => {
|
|
8341
|
-
const K = d.value,
|
|
8342
|
-
return
|
|
8343
|
-
from:
|
|
8344
|
-
to:
|
|
8350
|
+
const K = d.value, N = c.value ?? x.value, z = [K, N];
|
|
8351
|
+
return N && (K != null && K.isAfter(N)) && z.reverse(), {
|
|
8352
|
+
from: z[0],
|
|
8353
|
+
to: z[1]
|
|
8345
8354
|
};
|
|
8346
8355
|
}), E = P(
|
|
8347
8356
|
() => Object.values(M.value).filter(Boolean).length > 1
|
|
@@ -8370,16 +8379,16 @@ const Oc = { class: "flex items-center justify-between" }, Vc = { class: "flex f
|
|
|
8370
8379
|
}, pe = () => {
|
|
8371
8380
|
D.value = !1, O.value = !O.value;
|
|
8372
8381
|
}, $e = (K) => {
|
|
8373
|
-
const
|
|
8374
|
-
return Object.values(M.value).filter(Boolean).find((
|
|
8382
|
+
const N = s.value.date(K);
|
|
8383
|
+
return Object.values(M.value).filter(Boolean).find((z) => z.isSame(N));
|
|
8375
8384
|
}, he = (K) => k.value ? E.value ? s.value.date(K).isBetween(
|
|
8376
8385
|
M.value.from,
|
|
8377
8386
|
M.value.to,
|
|
8378
8387
|
null,
|
|
8379
8388
|
"[]"
|
|
8380
8389
|
) : !1 : m.value && f.value && m.value <= K && f.value >= K, te = (K) => {
|
|
8381
|
-
const
|
|
8382
|
-
return l.disabledDate(
|
|
8390
|
+
const N = s.value.date(K);
|
|
8391
|
+
return l.disabledDate(N.toDate()) || l.minDate && N.isBefore(_(l.minDate), "day") || l.maxDate && N.isAfter(_(l.maxDate), "day");
|
|
8383
8392
|
}, Oe = () => {
|
|
8384
8393
|
k.value && (te(d.value.toDate()) || te(c.value.toDate())) || (A.value = !1, a(
|
|
8385
8394
|
"update:modelValue",
|
|
@@ -8387,37 +8396,37 @@ const Oc = { class: "flex items-center justify-between" }, Vc = { class: "flex f
|
|
|
8387
8396
|
));
|
|
8388
8397
|
}, ce = (K) => {
|
|
8389
8398
|
a("update:isIndefinite", K);
|
|
8390
|
-
}, je = (K,
|
|
8399
|
+
}, je = (K, N = !0) => {
|
|
8391
8400
|
if (!k.value) {
|
|
8392
8401
|
let H = _(I.value, "MMMM YYYY").date(K);
|
|
8393
8402
|
m.value = K, d.value = H, f.value = null, c.value = null, Oe();
|
|
8394
8403
|
return;
|
|
8395
8404
|
}
|
|
8396
|
-
let
|
|
8405
|
+
let z = K && s.value.date(K);
|
|
8397
8406
|
if (!A.value) {
|
|
8398
|
-
m.value = K, d.value =
|
|
8407
|
+
m.value = K, d.value = z, f.value = void 0, c.value = void 0, A.value = !0;
|
|
8399
8408
|
return;
|
|
8400
8409
|
}
|
|
8401
|
-
c.value =
|
|
8410
|
+
c.value = z, f.value = K, N && Oe();
|
|
8402
8411
|
}, De = Bc((K) => {
|
|
8403
8412
|
A.value && je(K, !1);
|
|
8404
8413
|
}, 50), ee = () => {
|
|
8405
|
-
var
|
|
8406
|
-
const K = k.value ? (
|
|
8407
|
-
s.value = _(K), g.value = _(K), d.value = K && s.value, m.value = K && d.value.date(), !(!k.value || !K) && (c.value = _((
|
|
8414
|
+
var N, z, H;
|
|
8415
|
+
const K = k.value ? (N = l.modelValue) == null ? void 0 : N[0] : l.modelValue;
|
|
8416
|
+
s.value = _(K), g.value = _(K), d.value = K && s.value, m.value = K && d.value.date(), !(!k.value || !K) && (c.value = _((z = l.modelValue) == null ? void 0 : z[1]), f.value = ((H = c.value) == null ? void 0 : H.month()) === s.value.month() ? c.value.date() : void 0);
|
|
8408
8417
|
}, Me = (K) => {
|
|
8409
|
-
const
|
|
8410
|
-
for (; K <=
|
|
8411
|
-
|
|
8412
|
-
return
|
|
8418
|
+
const N = K + 11, z = [];
|
|
8419
|
+
for (; K <= N; )
|
|
8420
|
+
z.push(K++);
|
|
8421
|
+
return z;
|
|
8413
8422
|
};
|
|
8414
|
-
return ee(), (K,
|
|
8423
|
+
return ee(), (K, N) => (t(), i("div", {
|
|
8415
8424
|
class: v(["p-6 w-fit rounded flex flex-col gap-y-7", e.position === "floating" ? "shadow-normal bg-white" : ""])
|
|
8416
8425
|
}, [
|
|
8417
8426
|
n("div", Oc, [
|
|
8418
8427
|
p(o(ye), {
|
|
8419
8428
|
modelValue: O.value,
|
|
8420
|
-
"onUpdate:modelValue":
|
|
8429
|
+
"onUpdate:modelValue": N[1] || (N[1] = (z) => O.value = z),
|
|
8421
8430
|
distance: 10,
|
|
8422
8431
|
position: "bottom",
|
|
8423
8432
|
"is-popover": "",
|
|
@@ -8434,7 +8443,7 @@ const Oc = { class: "flex items-center justify-between" }, Vc = { class: "flex f
|
|
|
8434
8443
|
}),
|
|
8435
8444
|
n("div", {
|
|
8436
8445
|
class: "cursor-pointer hover:opacity-50 transition",
|
|
8437
|
-
onClick:
|
|
8446
|
+
onClick: N[0] || (N[0] = (z) => D.value = !D.value)
|
|
8438
8447
|
}, [
|
|
8439
8448
|
D.value ? (t(), i("div", Tc, w(S.value - 11) + " - " + w(S.value), 1)) : (t(), i("div", Dc, w(S.value), 1))
|
|
8440
8449
|
]),
|
|
@@ -8445,21 +8454,21 @@ const Oc = { class: "flex items-center justify-between" }, Vc = { class: "flex f
|
|
|
8445
8454
|
})
|
|
8446
8455
|
]),
|
|
8447
8456
|
D.value ? (t(), i("div", Ac, [
|
|
8448
|
-
(t(!0), i(
|
|
8449
|
-
key:
|
|
8457
|
+
(t(!0), i(R, null, q(Me(S.value - 11), (z) => (t(), i("div", {
|
|
8458
|
+
key: z,
|
|
8450
8459
|
class: v(["px-4 py-2 hover:border-oc-gray-200 border-2 border-transparent transition text-center rounded cursor-pointer", {
|
|
8451
|
-
"!border-oc-primary bg-oc-primary text-white": s.value.year() ===
|
|
8460
|
+
"!border-oc-primary bg-oc-primary text-white": s.value.year() === z
|
|
8452
8461
|
}]),
|
|
8453
|
-
onClick: (H) => ie(
|
|
8454
|
-
}, w(
|
|
8462
|
+
onClick: (H) => ie(z)
|
|
8463
|
+
}, w(z), 11, Lc))), 128))
|
|
8455
8464
|
])) : (t(), i("div", jc, [
|
|
8456
|
-
(t(), i(
|
|
8457
|
-
key:
|
|
8465
|
+
(t(), i(R, null, q(C, (z, H) => n("div", {
|
|
8466
|
+
key: z,
|
|
8458
8467
|
class: v(["px-4 py-2 hover:border-oc-gray-200 border-2 border-transparent transition text-center rounded cursor-pointer", {
|
|
8459
|
-
"!border-oc-primary bg-oc-primary text-white": V.value ===
|
|
8468
|
+
"!border-oc-primary bg-oc-primary text-white": V.value === z
|
|
8460
8469
|
}]),
|
|
8461
8470
|
onClick: (G) => Q(H)
|
|
8462
|
-
}, w(
|
|
8471
|
+
}, w(z), 11, Mc)), 64))
|
|
8463
8472
|
]))
|
|
8464
8473
|
])
|
|
8465
8474
|
]),
|
|
@@ -8488,47 +8497,47 @@ const Oc = { class: "flex items-center justify-between" }, Vc = { class: "flex f
|
|
|
8488
8497
|
]),
|
|
8489
8498
|
n("div", {
|
|
8490
8499
|
class: "grid grid-cols-7 w-fit gap-3",
|
|
8491
|
-
onMouseout:
|
|
8500
|
+
onMouseout: N[2] || (N[2] = (z) => o(De)(void 0))
|
|
8492
8501
|
}, [
|
|
8493
|
-
(t(!0), i(
|
|
8502
|
+
(t(!0), i(R, null, q(h.value, (z) => {
|
|
8494
8503
|
var H;
|
|
8495
8504
|
return t(), i("div", {
|
|
8496
|
-
key:
|
|
8505
|
+
key: z,
|
|
8497
8506
|
class: v(["w-9 rounded-full flex cursor-pointer items-center relative justify-center h-9", [
|
|
8498
|
-
$e(
|
|
8499
|
-
te(
|
|
8507
|
+
$e(z) ? "bg-oc-primary text-white" : "hover:bg-oc-primary-50-tr",
|
|
8508
|
+
te(z) ? "pointer-events-none opacity-[.35]" : "",
|
|
8500
8509
|
k.value ? {
|
|
8501
|
-
...he(
|
|
8510
|
+
...he(z) && {
|
|
8502
8511
|
"before:bg-oc-primary-50-tr before:px-3 before:w-[calc(100%+0.5rem)] before:h-full before:absolute": !0,
|
|
8503
|
-
"before:rounded-l-full before:left-0 before:!w-[calc(100%+0.25rem)]": M.value.from.isSame(s.value.date(
|
|
8504
|
-
"before:rounded-r-full before:right-0 before:!w-[calc(100%+0.25rem)]": (H = M.value.to) == null ? void 0 : H.isSame(s.value.date(
|
|
8512
|
+
"before:rounded-l-full before:left-0 before:!w-[calc(100%+0.25rem)]": M.value.from.isSame(s.value.date(z)),
|
|
8513
|
+
"before:rounded-r-full before:right-0 before:!w-[calc(100%+0.25rem)]": (H = M.value.to) == null ? void 0 : H.isSame(s.value.date(z))
|
|
8505
8514
|
},
|
|
8506
8515
|
"before:bg-transparent": m.value !== null && m.value === f.value
|
|
8507
8516
|
} : ""
|
|
8508
8517
|
]]),
|
|
8509
|
-
onClick: (G) => je(
|
|
8510
|
-
onMouseover: (G) => o(De)(
|
|
8511
|
-
}, w(
|
|
8518
|
+
onClick: (G) => je(z),
|
|
8519
|
+
onMouseover: (G) => o(De)(z)
|
|
8520
|
+
}, w(z), 43, Ec);
|
|
8512
8521
|
}), 128))
|
|
8513
8522
|
], 32),
|
|
8514
8523
|
$(K.$slots, "bottom", {}, () => [
|
|
8515
8524
|
e.isIndefinite ? (t(), i("span", Pc, [
|
|
8516
|
-
p(o(
|
|
8525
|
+
p(o(ze), {
|
|
8517
8526
|
modelValue: b.value,
|
|
8518
8527
|
"onUpdate:modelValue": [
|
|
8519
|
-
|
|
8528
|
+
N[3] || (N[3] = (z) => b.value = z),
|
|
8520
8529
|
ce
|
|
8521
8530
|
],
|
|
8522
8531
|
label: e.inDefiniteLabel
|
|
8523
8532
|
}, null, 8, ["modelValue", "label"])
|
|
8524
8533
|
])) : u("", !0)
|
|
8525
8534
|
]),
|
|
8526
|
-
n("div",
|
|
8535
|
+
n("div", Nc, [
|
|
8527
8536
|
p(o(Z), {
|
|
8528
8537
|
label: "Reset",
|
|
8529
8538
|
class: "w-[72px]",
|
|
8530
8539
|
"is-disabled": b.value,
|
|
8531
|
-
onClick:
|
|
8540
|
+
onClick: N[4] || (N[4] = (z) => a("reset-calendar"))
|
|
8532
8541
|
}, null, 8, ["is-disabled"])
|
|
8533
8542
|
])
|
|
8534
8543
|
], 2));
|
|
@@ -8538,7 +8547,7 @@ _.extend(Ut);
|
|
|
8538
8547
|
_.extend(qt);
|
|
8539
8548
|
_.extend(Wt);
|
|
8540
8549
|
_.extend(pt);
|
|
8541
|
-
const
|
|
8550
|
+
const zc = { class: "flex flex-col gap-y-2 w-full" }, Fc = {
|
|
8542
8551
|
key: 0,
|
|
8543
8552
|
class: "flex w-full"
|
|
8544
8553
|
}, Uc = {
|
|
@@ -8697,7 +8706,7 @@ const Nc = { class: "flex flex-col gap-y-2 w-full" }, Fc = {
|
|
|
8697
8706
|
"max-date": e.maxDate,
|
|
8698
8707
|
masks: { modelValue: e.dateFormat },
|
|
8699
8708
|
"onUpdate:modelValue": x
|
|
8700
|
-
}, null, 8, ["model-value", "shortcuts", "count-calendars", "min-date", "max-date", "masks"])) : !e.disabled && I ? (t(), y(o(
|
|
8709
|
+
}, null, 8, ["model-value", "shortcuts", "count-calendars", "min-date", "max-date", "masks"])) : !e.disabled && I ? (t(), y(o(Rc), {
|
|
8701
8710
|
key: 1,
|
|
8702
8711
|
"model-value": g.value ? g.value.toDate() : /* @__PURE__ */ new Date(),
|
|
8703
8712
|
"disabled-date": d.value ? A : e.disabledDate,
|
|
@@ -8714,7 +8723,7 @@ const Nc = { class: "flex flex-col gap-y-2 w-full" }, Fc = {
|
|
|
8714
8723
|
})
|
|
8715
8724
|
]),
|
|
8716
8725
|
default: B(() => [
|
|
8717
|
-
n("div",
|
|
8726
|
+
n("div", zc, [
|
|
8718
8727
|
!e.isSplitInput || !f.value ? (t(), i("div", Fc, [
|
|
8719
8728
|
p(o(Ie), {
|
|
8720
8729
|
"model-value": f.value ? e.modelValue && e.modelValue[0] ? `${g.value[0].format(e.dateFormat)} - ${g.value[1].format(e.dateFormat)}` : "" : e.modelValue === "Indefinite" ? "Indefinite" : e.modelValue ? g.value.format(e.dateFormat) : "",
|
|
@@ -9051,7 +9060,7 @@ const Nc = { class: "flex flex-col gap-y-2 w-full" }, Fc = {
|
|
|
9051
9060
|
]])
|
|
9052
9061
|
}, [
|
|
9053
9062
|
e.optionType === "icon" ? (t(), i("div", du, [
|
|
9054
|
-
(t(!0), i(
|
|
9063
|
+
(t(!0), i(R, null, q(e.options, (f) => (t(), i("div", {
|
|
9055
9064
|
key: f.value,
|
|
9056
9065
|
class: v(["p-1", {
|
|
9057
9066
|
"bg-oc-gray-200 rounded-sm": f.value.toString() === e.modelValue.toString()
|
|
@@ -9062,7 +9071,7 @@ const Nc = { class: "flex flex-col gap-y-2 w-full" }, Fc = {
|
|
|
9062
9071
|
onClick: (g) => s(f.value)
|
|
9063
9072
|
}, null, 8, ["name", "onClick"])
|
|
9064
9073
|
], 2))), 128))
|
|
9065
|
-
])) : (t(!0), i(
|
|
9074
|
+
])) : (t(!0), i(R, { key: 1 }, q(e.options, (f) => (t(), i("div", {
|
|
9066
9075
|
key: f.value,
|
|
9067
9076
|
class: v(["cursor-pointer group items-start", {
|
|
9068
9077
|
"flex border border-oc-gray-200 p-3 rounded hover:shadow": !d.value,
|
|
@@ -9346,7 +9355,7 @@ const Nc = { class: "flex flex-col gap-y-2 w-full" }, Fc = {
|
|
|
9346
9355
|
"onUpdate:modelValue": M[0] || (M[0] = (E) => e.isDisabled ? null : V.$emit("update:uploadedImages", E))
|
|
9347
9356
|
}, {
|
|
9348
9357
|
default: B(({ list: E }) => [
|
|
9349
|
-
(t(!0), i(
|
|
9358
|
+
(t(!0), i(R, null, q(E, (U, L) => (t(), i("div", {
|
|
9350
9359
|
key: U.fileName,
|
|
9351
9360
|
class: v(["w-[100px] group relative cursor-pointer aspect-square border rounded border-oc-accent-1-100 bg-cover bg-center", {
|
|
9352
9361
|
"border-oc-primary": e.selectedImage.fileName === U.fileName,
|
|
@@ -9464,7 +9473,7 @@ const Nc = { class: "flex flex-col gap-y-2 w-full" }, Fc = {
|
|
|
9464
9473
|
}, ju = { class: "flex items-baseline gap-x-3 w-full" }, Mu = { class: "text-sm flex-1 text-oc-text-400 pointer-events-none" }, Eu = ["accept"], Pu = {
|
|
9465
9474
|
key: 0,
|
|
9466
9475
|
class: "relative group w-fit rounded overflow-hidden"
|
|
9467
|
-
},
|
|
9476
|
+
}, Nu = ["src"], Ru = ["src"], zu = { class: "py-2 flex flex-col" }, Fu = { class: "flex flex-1 items-center gap-x-3 text-sm text-oc-text-400 overflow-hidden" }, Uu = { class: "flex flex-col w-7 h-7 items-center justify-center text-oc-text-300" }, qu = { class: "uppercase text-[8px] font-bold leading-none block" }, Wu = { class: "flex" }, Hu = { class: "text-sm text-oc-primary" }, Yu = { class: "rounded-full bg-oc-gray-100 w-[48px] h-2 overflow-hidden" }, sv = {
|
|
9468
9477
|
__name: "OcSingleFileUpload",
|
|
9469
9478
|
props: {
|
|
9470
9479
|
format: {
|
|
@@ -9518,7 +9527,7 @@ const Nc = { class: "flex flex-col gap-y-2 w-full" }, Fc = {
|
|
|
9518
9527
|
"onOpenEditImage"
|
|
9519
9528
|
],
|
|
9520
9529
|
setup(e, { emit: r }) {
|
|
9521
|
-
const l = e, a = r, s = j(), d = j(""), c = j(""), m = j(!0), f = j(!1), g = j(!1), x = j(!1), b = j(""), { currentFiles: A, onChangeFile: D, onDeleteFile: O } =
|
|
9530
|
+
const l = e, a = r, s = j(), d = j(""), c = j(""), m = j(!0), f = j(!1), g = j(!1), x = j(!1), b = j(""), { currentFiles: A, onChangeFile: D, onDeleteFile: O } = Nt(
|
|
9522
9531
|
l.maxSize,
|
|
9523
9532
|
a,
|
|
9524
9533
|
l.accept,
|
|
@@ -9590,7 +9599,7 @@ const Nc = { class: "flex flex-col gap-y-2 w-full" }, Fc = {
|
|
|
9590
9599
|
onChange: L[0] || (L[0] = (ee) => o(D)(ee, l.format === "object")),
|
|
9591
9600
|
onDelete: L[1] || (L[1] = (ee) => o(O)(0)),
|
|
9592
9601
|
onOnOpenEditImage: L[2] || (L[2] = (ee) => U.$emit("onOpenEditImage", ee))
|
|
9593
|
-
}, null, 8, ["accept", "uploaded-image", "image-classes", "show-upload-image-area"])) : e.isButtonOnly ? (t(), i(
|
|
9602
|
+
}, null, 8, ["accept", "uploaded-image", "image-classes", "show-upload-image-area"])) : e.isButtonOnly ? (t(), i(R, { key: 1 }, [
|
|
9594
9603
|
p(o(Z), W(e.buttonUploadProps, {
|
|
9595
9604
|
onClick: L[3] || (L[3] = (ee) => {
|
|
9596
9605
|
var Me;
|
|
@@ -9605,7 +9614,7 @@ const Nc = { class: "flex flex-col gap-y-2 w-full" }, Fc = {
|
|
|
9605
9614
|
accept: e.accept,
|
|
9606
9615
|
onChange: L[4] || (L[4] = (ee) => o(D)(ee, l.format === "object"))
|
|
9607
9616
|
}, null, 40, Au)
|
|
9608
|
-
], 64)) : (t(), i(
|
|
9617
|
+
], 64)) : (t(), i(R, { key: 2 }, [
|
|
9609
9618
|
o(A).length ? (t(), i("div", {
|
|
9610
9619
|
key: 1,
|
|
9611
9620
|
class: v(["p-3 rounded border flex gap-x-5 border-oc-gray-200 bg-white items-center", {
|
|
@@ -9619,10 +9628,10 @@ const Nc = { class: "flex flex-col gap-y-2 w-full" }, Fc = {
|
|
|
9619
9628
|
autoplay: "",
|
|
9620
9629
|
loop: "",
|
|
9621
9630
|
src: k.value
|
|
9622
|
-
}, null, 8,
|
|
9631
|
+
}, null, 8, Nu)) : (t(), i("img", {
|
|
9623
9632
|
key: 1,
|
|
9624
9633
|
src: (ve = h.value) == null ? void 0 : ve.fileUrl
|
|
9625
|
-
}, null, 8,
|
|
9634
|
+
}, null, 8, Ru)),
|
|
9626
9635
|
p(o(ye), {
|
|
9627
9636
|
modelValue: g.value,
|
|
9628
9637
|
"onUpdate:modelValue": L[14] || (L[14] = (ee) => g.value = ee),
|
|
@@ -9631,7 +9640,7 @@ const Nc = { class: "flex flex-col gap-y-2 w-full" }, Fc = {
|
|
|
9631
9640
|
menu: B(() => {
|
|
9632
9641
|
var ee, Me;
|
|
9633
9642
|
return [
|
|
9634
|
-
n("div",
|
|
9643
|
+
n("div", zu, [
|
|
9635
9644
|
!((Me = (ee = h.value) == null ? void 0 : ee.file) != null && Me.type.includes("video")) && e.allowToEdit ? (t(), i("div", {
|
|
9636
9645
|
key: 0,
|
|
9637
9646
|
class: "flex p-3 cursor-pointer items-center gap-x-3",
|
|
@@ -9678,7 +9687,7 @@ const Nc = { class: "flex flex-col gap-y-2 w-full" }, Fc = {
|
|
|
9678
9687
|
}),
|
|
9679
9688
|
onChangeImage: S
|
|
9680
9689
|
}, null, 8, ["modelValue", "img"])) : u("", !0)
|
|
9681
|
-
])) : (t(), i(
|
|
9690
|
+
])) : (t(), i(R, { key: 1 }, [
|
|
9682
9691
|
n("div", Fu, [
|
|
9683
9692
|
n("div", Uu, [
|
|
9684
9693
|
p(o(T), {
|
|
@@ -9719,7 +9728,7 @@ const Nc = { class: "flex flex-col gap-y-2 w-full" }, Fc = {
|
|
|
9719
9728
|
], 64))
|
|
9720
9729
|
], 2)) : (t(), i("div", Lu, [
|
|
9721
9730
|
n("div", ju, [
|
|
9722
|
-
e.variant === "url" ? (t(), i(
|
|
9731
|
+
e.variant === "url" ? (t(), i(R, { key: 0 }, [
|
|
9723
9732
|
p(o(Ie), {
|
|
9724
9733
|
modelValue: d.value,
|
|
9725
9734
|
"onUpdate:modelValue": L[5] || (L[5] = (ee) => d.value = ee),
|
|
@@ -9835,7 +9844,7 @@ const Nc = { class: "flex flex-col gap-y-2 w-full" }, Fc = {
|
|
|
9835
9844
|
"onImageError"
|
|
9836
9845
|
],
|
|
9837
9846
|
setup(e, { emit: r }) {
|
|
9838
|
-
const l = r, a = e, s = j(), d = j(!1), c = j(!1), { isErrorMaxSize: m, currentFiles: f, onChangeFile: g, onDeleteFile: x } =
|
|
9847
|
+
const l = r, a = e, s = j(), d = j(!1), c = j(!1), { isErrorMaxSize: m, currentFiles: f, onChangeFile: g, onDeleteFile: x } = Nt(
|
|
9839
9848
|
a.maxSize,
|
|
9840
9849
|
l,
|
|
9841
9850
|
a.accept,
|
|
@@ -9909,7 +9918,7 @@ const Nc = { class: "flex flex-col gap-y-2 w-full" }, Fc = {
|
|
|
9909
9918
|
})
|
|
9910
9919
|
]),
|
|
9911
9920
|
_: 3
|
|
9912
|
-
}, 8, ["uploaded-images", "selected-image", "columns-count", "accept", "input-options", "max-images", "is-disabled", "onChange", "onDelete"])) : e.isButtonOnly ? (t(), i(
|
|
9921
|
+
}, 8, ["uploaded-images", "selected-image", "columns-count", "accept", "input-options", "max-images", "is-disabled", "onChange", "onDelete"])) : e.isButtonOnly ? (t(), i(R, { key: 1 }, [
|
|
9913
9922
|
$(O.$slots, "button", { triggerInput: D }, () => [
|
|
9914
9923
|
p(o(Z), W(e.buttonUploadProps, { onClick: D }), null, 16)
|
|
9915
9924
|
]),
|
|
@@ -9933,7 +9942,7 @@ const Nc = { class: "flex flex-col gap-y-2 w-full" }, Fc = {
|
|
|
9933
9942
|
]])
|
|
9934
9943
|
}, [
|
|
9935
9944
|
n("div", Xu, [
|
|
9936
|
-
(t(!0), i(
|
|
9945
|
+
(t(!0), i(R, null, q(o(f), (h, C) => (t(), i("div", {
|
|
9937
9946
|
key: `${C}-${h.fileName}`,
|
|
9938
9947
|
class: "flex justify-between relative items-center w-full last:mb-2"
|
|
9939
9948
|
}, [
|
|
@@ -10768,7 +10777,7 @@ const Nc = { class: "flex flex-col gap-y-2 w-full" }, Fc = {
|
|
|
10768
10777
|
"content-class": e.contentClass,
|
|
10769
10778
|
icon: e.icon,
|
|
10770
10779
|
"hide-icon": e.hideIcon
|
|
10771
|
-
},
|
|
10780
|
+
}, ne({ _: 2 }, [
|
|
10772
10781
|
m.$slots.description ? {
|
|
10773
10782
|
name: "description",
|
|
10774
10783
|
fn: B(() => [
|
|
@@ -10784,7 +10793,7 @@ const Nc = { class: "flex flex-col gap-y-2 w-full" }, Fc = {
|
|
|
10784
10793
|
}, Am = { class: "fixed bottom-[30px] right-[32px]" }, Lm = { class: "relative" }, jm = {
|
|
10785
10794
|
key: 0,
|
|
10786
10795
|
class: "flex items-center justify-end"
|
|
10787
|
-
}, Mm = { class: "w-[40px] flex text-white items-center bg-oc-text active:bg-oc-gray-800 justify-center aspect-square rounded-full cursor-pointer" }, Em = { class: "min-w-[180px]" }, Pm = { class: "p-3" },
|
|
10796
|
+
}, Mm = { class: "w-[40px] flex text-white items-center bg-oc-text active:bg-oc-gray-800 justify-center aspect-square rounded-full cursor-pointer" }, Em = { class: "min-w-[180px]" }, Pm = { class: "p-3" }, Nm = { class: "uppercase text-oc-text-400 text-xs font-medium" }, cv = {
|
|
10788
10797
|
__name: "OcSupportMenu",
|
|
10789
10798
|
props: {
|
|
10790
10799
|
modelValue: {
|
|
@@ -10832,11 +10841,11 @@ const Nc = { class: "flex flex-col gap-y-2 w-full" }, Fc = {
|
|
|
10832
10841
|
}, {
|
|
10833
10842
|
menu: B(() => [
|
|
10834
10843
|
n("div", Em, [
|
|
10835
|
-
(t(!0), i(
|
|
10844
|
+
(t(!0), i(R, null, q(e.topMenu, (s, d) => (t(), i(R, { key: d }, [
|
|
10836
10845
|
n("div", Pm, [
|
|
10837
|
-
n("span",
|
|
10846
|
+
n("span", Nm, w(s.title), 1)
|
|
10838
10847
|
]),
|
|
10839
|
-
(t(!0), i(
|
|
10848
|
+
(t(!0), i(R, null, q(s.items, (c, m) => (t(), y(o(Le), W({
|
|
10840
10849
|
key: m,
|
|
10841
10850
|
class: "text-sm"
|
|
10842
10851
|
}, { ref_for: !0 }, c), {
|
|
@@ -10854,7 +10863,7 @@ const Nc = { class: "flex flex-col gap-y-2 w-full" }, Fc = {
|
|
|
10854
10863
|
}, 1040))), 128))
|
|
10855
10864
|
], 64))), 128)),
|
|
10856
10865
|
a[2] || (a[2] = n("div", { class: "w-full border-t border-gray-200" }, null, -1)),
|
|
10857
|
-
(t(!0), i(
|
|
10866
|
+
(t(!0), i(R, null, q(e.bottomMenu, (s, d) => (t(), y(o(Le), W({
|
|
10858
10867
|
key: d,
|
|
10859
10868
|
class: "text-sm"
|
|
10860
10869
|
}, { ref_for: !0 }, s), {
|
|
@@ -10890,7 +10899,7 @@ const Nc = { class: "flex flex-col gap-y-2 w-full" }, Fc = {
|
|
|
10890
10899
|
}, 8, ["model-value"])
|
|
10891
10900
|
]));
|
|
10892
10901
|
}
|
|
10893
|
-
},
|
|
10902
|
+
}, Rm = { class: "px-3 py-2 text-oc-text-400 text-sm font-medium" }, We = {
|
|
10894
10903
|
__name: "OcCopyTooltip",
|
|
10895
10904
|
props: {
|
|
10896
10905
|
value: [String, Blob],
|
|
@@ -10920,7 +10929,7 @@ const Nc = { class: "flex flex-col gap-y-2 w-full" }, Fc = {
|
|
|
10920
10929
|
distance: 20
|
|
10921
10930
|
}, e.tooltipOptions), {
|
|
10922
10931
|
popper: B(() => [
|
|
10923
|
-
n("div",
|
|
10932
|
+
n("div", Rm, w(e.tooltipText), 1)
|
|
10924
10933
|
]),
|
|
10925
10934
|
default: B(({ isShow: s }) => [
|
|
10926
10935
|
n("div", {
|
|
@@ -10939,7 +10948,7 @@ const Nc = { class: "flex flex-col gap-y-2 w-full" }, Fc = {
|
|
|
10939
10948
|
_: 3
|
|
10940
10949
|
}, 16));
|
|
10941
10950
|
}
|
|
10942
|
-
},
|
|
10951
|
+
}, zm = { class: "flex justify-center pt-[75px] items-start backdrop-blur-sm" }, Fm = { class: "bg-white relative z-10 rounded pb-3 max-w-[320px] w-[96vw] shadow" }, Um = { class: "flex flex-col gap-y-7 p-5" }, qm = { class: "min-w-[142px] pt-7 flex justify-center items-center" }, Wm = ["src"], Hm = { class: "flex text-center flex-col gap-y-3" }, Ym = { class: "text-lg flex justify-center gap-x-3 items-center font-medium" }, Km = { class: "text-oc-text-400" }, Gm = { class: "py-6 px-5 flex items-center justify-center" }, uv = {
|
|
10943
10952
|
__name: "OcWhiteList",
|
|
10944
10953
|
props: {
|
|
10945
10954
|
buttonProps: {
|
|
@@ -10955,7 +10964,7 @@ const Nc = { class: "flex flex-col gap-y-2 w-full" }, Fc = {
|
|
|
10955
10964
|
description: String
|
|
10956
10965
|
},
|
|
10957
10966
|
setup(e) {
|
|
10958
|
-
return (r, l) => (t(), i("div",
|
|
10967
|
+
return (r, l) => (t(), i("div", zm, [
|
|
10959
10968
|
l[0] || (l[0] = n("div", { class: "absolute w-full h-full top-0 left-0 bg-oc-gray-50 opacity-80" }, null, -1)),
|
|
10960
10969
|
n("div", Fm, [
|
|
10961
10970
|
n("div", Um, [
|
|
@@ -11034,14 +11043,14 @@ const Nc = { class: "flex flex-col gap-y-2 w-full" }, Fc = {
|
|
|
11034
11043
|
CheckboxesGroup: Gr,
|
|
11035
11044
|
Input: Ie,
|
|
11036
11045
|
NumberInput: dm,
|
|
11037
|
-
LinkInput:
|
|
11046
|
+
LinkInput: Rd,
|
|
11038
11047
|
Select: Td,
|
|
11039
11048
|
TextArea: Ud,
|
|
11040
11049
|
Toggle: Pt,
|
|
11041
11050
|
RadioGroup: hd,
|
|
11042
11051
|
TimePicker: Zm,
|
|
11043
11052
|
DatePicker: Kc,
|
|
11044
|
-
Checkbox:
|
|
11053
|
+
Checkbox: ze,
|
|
11045
11054
|
Slider: Kt,
|
|
11046
11055
|
RangeInput: kd,
|
|
11047
11056
|
PhoneInput: fd,
|
|
@@ -11133,7 +11142,7 @@ const Nc = { class: "flex flex-col gap-y-2 w-full" }, Fc = {
|
|
|
11133
11142
|
class: v(e.grid ? `responsive-smart-form-grid ${x.value}` : x.value),
|
|
11134
11143
|
style: me(e.grid ? m.value : "")
|
|
11135
11144
|
}, [
|
|
11136
|
-
(t(!0), i(
|
|
11145
|
+
(t(!0), i(R, null, q(e.jsonForm, (M) => {
|
|
11137
11146
|
var E, U, L, F, Y, X;
|
|
11138
11147
|
return t(), i("div", {
|
|
11139
11148
|
key: f(M.name),
|
|
@@ -11162,26 +11171,26 @@ const Nc = { class: "flex flex-col gap-y-2 w-full" }, Fc = {
|
|
|
11162
11171
|
}), 128))
|
|
11163
11172
|
], 6)) : u("", !0);
|
|
11164
11173
|
}
|
|
11165
|
-
}, fv = xe(() => import("./OcDataTable-
|
|
11166
|
-
() => import("./OcComplexCalendar-
|
|
11174
|
+
}, fv = xe(() => import("./OcDataTable-D1Lmh1Lj.js")), vv = xe(() => import("./OcFilterSearch-eV23JjoR.js")), gv = xe(() => import("./OcFilterSearchFor-FKrmN6gd.js")), yv = xe(() => import("./OcFilterForm-BfRaaBNx.js")), Xm = xe(
|
|
11175
|
+
() => import("./OcComplexCalendar-BKht-iKa.js")
|
|
11167
11176
|
), pv = xe(
|
|
11168
|
-
() => import("./OcComplexDatePicker-
|
|
11169
|
-
), ht = xe(() => import("./OcModalCropper-
|
|
11170
|
-
() => import("./ThumbnailTheme-
|
|
11177
|
+
() => import("./OcComplexDatePicker-CST3cyMh.js")
|
|
11178
|
+
), ht = xe(() => import("./OcModalCropper-BG0rGXgt.js")), hv = xe(() => import("./OcCropper-DMvRM32l.js")), Jm = xe(() => import("./OcDraggable-DRsp4j4e.js")), xv = xe(() => import("./OcDraggableList-CwGfz1m1.js")), bv = xe(() => import("./OcEmojiPicker-B5v0dgDQ.js")), wv = xe(
|
|
11179
|
+
() => import("./ThumbnailTheme-B645KTkE.js")
|
|
11171
11180
|
), kv = xe(
|
|
11172
|
-
() => import("./ThumbnailSection-
|
|
11173
|
-
), $v = xe(() => import("./SubPlanCard-
|
|
11174
|
-
() => import("./OcAccountSetupProgress-
|
|
11181
|
+
() => import("./ThumbnailSection-B7Vmk_YO.js")
|
|
11182
|
+
), $v = xe(() => import("./SubPlanCard-DKX_tiqc.js")), Sv = xe(() => import("./OcTimePopup-CrwbZ_Nx.js")), Zm = xe(() => import("./OcTimePicker-C_OHCpVq.js")), Cv = xe(
|
|
11183
|
+
() => import("./OcAccountSetupProgress-CAsTFLzD.js")
|
|
11175
11184
|
);
|
|
11176
11185
|
export {
|
|
11177
11186
|
Df as $,
|
|
11178
11187
|
Vn as A,
|
|
11179
11188
|
Z as B,
|
|
11180
|
-
|
|
11189
|
+
ze as C,
|
|
11181
11190
|
Vf as D,
|
|
11182
11191
|
Of as E,
|
|
11183
11192
|
Al as F,
|
|
11184
|
-
|
|
11193
|
+
Rt as G,
|
|
11185
11194
|
st as H,
|
|
11186
11195
|
kf as I,
|
|
11187
11196
|
kt as J,
|
|
@@ -11240,9 +11249,9 @@ export {
|
|
|
11240
11249
|
Cv as aY,
|
|
11241
11250
|
Ef as aa,
|
|
11242
11251
|
Pf as ab,
|
|
11243
|
-
|
|
11244
|
-
|
|
11245
|
-
|
|
11252
|
+
Nf as ac,
|
|
11253
|
+
Rf as ad,
|
|
11254
|
+
zf as ae,
|
|
11246
11255
|
Ff as af,
|
|
11247
11256
|
bo as ag,
|
|
11248
11257
|
vo as ah,
|
|
@@ -11275,16 +11284,16 @@ export {
|
|
|
11275
11284
|
Td as j,
|
|
11276
11285
|
Ot as k,
|
|
11277
11286
|
ov as l,
|
|
11278
|
-
|
|
11287
|
+
Rd as m,
|
|
11279
11288
|
Ud as n,
|
|
11280
|
-
|
|
11289
|
+
Rc as o,
|
|
11281
11290
|
Kc as p,
|
|
11282
11291
|
ru as q,
|
|
11283
11292
|
fu as r,
|
|
11284
11293
|
sv as s,
|
|
11285
11294
|
rv as t,
|
|
11286
11295
|
mv as u,
|
|
11287
|
-
|
|
11296
|
+
zt as v,
|
|
11288
11297
|
Bf as w,
|
|
11289
11298
|
Cf as x,
|
|
11290
11299
|
He as y,
|