@orchidui/core 1.21.1-30 → 1.21.1-31
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-C0_XuiLz.js → OcAccountSetupProgress-B6khTLVN.js} +1 -1
- package/dist/{OcComplexCalendar-0xPeCY55.js → OcComplexCalendar-B-tV_d2A.js} +1 -1
- package/dist/{OcComplexDatePicker-DviFyop1.js → OcComplexDatePicker-CktSadtH.js} +1 -1
- package/dist/{OcCropper-CE_xVqI6.js → OcCropper-CtllLxWI.js} +1 -1
- package/dist/{OcDataTable-31UVQp2M.js → OcDataTable-aJ9BFBjO.js} +1 -1
- package/dist/{OcDraggableList-C_g-js0g.js → OcDraggableList-D7GdYvd5.js} +1 -1
- package/dist/{OcEmojiPicker-DX6UcoJn.js → OcEmojiPicker-Dbilw37G.js} +1 -1
- package/dist/{OcFilterForm-BwPjibJ-.js → OcFilterForm-DMRO2lil.js} +1 -1
- package/dist/{OcFilterSearch-BnHMAMzw.js → OcFilterSearch-D2Lmzky6.js} +1 -1
- package/dist/{OcFilterSearchFor-1o3MjSIm.js → OcFilterSearchFor-Du5tv3SB.js} +1 -1
- package/dist/{OcModalCropper-BCnlenrt.js → OcModalCropper-BQXulygW.js} +2 -2
- package/dist/{OcTimePicker-LevOorK3.js → OcTimePicker-CLK6RXPS.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-cHWAKW8G.js → SubPlanCard-B4aaUhH4.js} +1 -1
- package/dist/{ThumbnailSection-BSbwGA6G.js → ThumbnailSection-ycA9A8bA.js} +1 -1
- package/dist/{ThumbnailTheme-CuTT21M2.js → ThumbnailTheme-BNbHHFd-.js} +1 -1
- package/dist/{index-DfX_u_LS.js → index-AU4evCE2.js} +733 -731
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { computed as V, ref as J, onMounted as Se, createElementBlock as i, openBlock as t, normalizeClass as p, createCommentVNode as u, renderSlot as w, createElementVNode as n, createBlock as A, unref as s, Fragment as Y, renderList as H, withCtx as C, createTextVNode as X, toDisplayString as x, createVNode as h, resolveDynamicComponent as it, normalizeProps as he, mergeProps as D, guardReactiveProps as Be, withModifiers as fe, normalizeStyle as
|
|
1
|
+
import { computed as V, ref as J, onMounted as Se, createElementBlock as i, openBlock as t, normalizeClass as p, createCommentVNode as u, renderSlot as w, createElementVNode as n, createBlock as A, unref as s, Fragment as Y, renderList as H, withCtx as C, createTextVNode as X, toDisplayString as x, createVNode as h, resolveDynamicComponent as it, normalizeProps as he, mergeProps as D, guardReactiveProps as Be, withModifiers as fe, normalizeStyle as re, createSlots as le, watch as me, withDirectives as ze, vShow as Te, onBeforeUnmount as Yt, useSlots as St, resolveComponent as Mt, nextTick as qe, onUnmounted as It, onUpdated as Gt, reactive as Ht, Transition as Ve, useAttrs as Tt, withKeys as Fe, Teleport as Et, defineAsyncComponent as ge } from "vue";
|
|
2
2
|
import { S as ie } from "./OcSkeleton-Czw65X0i.js";
|
|
3
3
|
import { _ as be } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
4
|
import { _ as L } from "./OcIcon-BedshzZm.js";
|
|
@@ -64,14 +64,14 @@ const Ft = {
|
|
|
64
64
|
"hover:cell": []
|
|
65
65
|
},
|
|
66
66
|
setup(e, { emit: r }) {
|
|
67
|
-
const
|
|
68
|
-
() => typeof
|
|
67
|
+
const l = e, a = r, o = V(() => l.options.isSelectable), d = V(() => l.options.isCursorPointer ?? !0), c = V(() => l.options.fields), m = V(() => l.options.headers), f = V(
|
|
68
|
+
() => typeof l.rowKey == "function" ? l.rowKey : (O) => O[l.rowKey]
|
|
69
69
|
), g = V({
|
|
70
70
|
get() {
|
|
71
|
-
return
|
|
71
|
+
return l.selected || [];
|
|
72
72
|
},
|
|
73
73
|
set(O) {
|
|
74
|
-
|
|
74
|
+
a("update:selected", O);
|
|
75
75
|
}
|
|
76
76
|
}), v = (O) => {
|
|
77
77
|
g.value.find((Z) => f.value(Z) === f.value(O)) ? g.value = g.value.filter(
|
|
@@ -80,13 +80,13 @@ const Ft = {
|
|
|
80
80
|
}, k = () => {
|
|
81
81
|
const O = g.value.length === c.value.length;
|
|
82
82
|
g.value = O ? [] : [...c.value];
|
|
83
|
-
}, B = V(() => typeof
|
|
84
|
-
!b.disableClickRow && b.key !== "actions" &&
|
|
83
|
+
}, B = V(() => typeof l.rowClass == "function" ? (O, b) => l.rowClass(O, b) : () => l.rowClass), z = (O, b) => {
|
|
84
|
+
!b.disableClickRow && b.key !== "actions" && a("click:row", {
|
|
85
85
|
field: O,
|
|
86
86
|
header: b
|
|
87
87
|
});
|
|
88
88
|
}, K = J(!0), S = J(!0), y = J(), I = () => {
|
|
89
|
-
|
|
89
|
+
l.isSticky && (K.value = y.value.scrollLeft === 0, S.value = y.value.scrollLeft + y.value.clientWidth === y.value.scrollWidth);
|
|
90
90
|
};
|
|
91
91
|
return Se(() => I()), (O, b) => (t(), i("div", {
|
|
92
92
|
ref_key: "scrollTable",
|
|
@@ -289,25 +289,25 @@ const Ft = {
|
|
|
289
289
|
setup(e) {
|
|
290
290
|
const r = {
|
|
291
291
|
TEXT: "text"
|
|
292
|
-
},
|
|
292
|
+
}, l = V(() => ({
|
|
293
293
|
text: "px-4 py-3",
|
|
294
294
|
checkbox: "p-4 md:p-3"
|
|
295
295
|
}));
|
|
296
|
-
return (
|
|
297
|
-
class: p(["whitespace-nowrap text-start uppercase text-oc-text-400 leading-[18px] text-xs font-medium bg-oc-gray-50 flex items-center gap-3 group/table-header",
|
|
296
|
+
return (a, o) => (t(), i("div", {
|
|
297
|
+
class: p(["whitespace-nowrap text-start uppercase text-oc-text-400 leading-[18px] text-xs font-medium bg-oc-gray-50 flex items-center gap-3 group/table-header", l.value[e.variant]])
|
|
298
298
|
}, [
|
|
299
299
|
e.isLoading ? (t(), A(s(ie), {
|
|
300
300
|
key: 0,
|
|
301
301
|
class: "rounded-full w-full overflow-hidden h-6"
|
|
302
302
|
})) : (t(), i(Y, { key: 1 }, [
|
|
303
|
-
e.variant === r.TEXT ? w(
|
|
303
|
+
e.variant === r.TEXT ? w(a.$slots, "default", { key: 0 }, () => [
|
|
304
304
|
X(x(e.text), 1)
|
|
305
|
-
]) : w(
|
|
305
|
+
]) : w(a.$slots, "default", { key: 1 }, () => [
|
|
306
306
|
n("div", Ut, [
|
|
307
307
|
h(s(Ke), {
|
|
308
308
|
"model-value": e.isChecked,
|
|
309
309
|
"is-partial": e.isPartial,
|
|
310
|
-
"onUpdate:modelValue": o[0] || (o[0] = (d) =>
|
|
310
|
+
"onUpdate:modelValue": o[0] || (o[0] = (d) => a.$emit("selectAll", d))
|
|
311
311
|
}, null, 8, ["model-value", "is-partial"])
|
|
312
312
|
]),
|
|
313
313
|
n("span", {
|
|
@@ -318,7 +318,7 @@ const Ft = {
|
|
|
318
318
|
!e.isLoading && e.isSortable ? (t(), i("div", {
|
|
319
319
|
key: 2,
|
|
320
320
|
class: p(["cursor-pointer ml-auto", e.sortBy ? "" : " hidden group-hover/table-header:block"]),
|
|
321
|
-
onClick: o[1] || (o[1] = (d) =>
|
|
321
|
+
onClick: o[1] || (o[1] = (d) => a.$emit("update:sort-by", e.sortBy === "asc" ? "desc" : e.sortBy === "desc" ? null : "asc"))
|
|
322
322
|
}, [
|
|
323
323
|
e.sortBy === "asc" ? (t(), A(s(L), {
|
|
324
324
|
key: 0,
|
|
@@ -392,13 +392,13 @@ const Ft = {
|
|
|
392
392
|
IMAGE: "image",
|
|
393
393
|
EMPTY: "empty",
|
|
394
394
|
DEFAULT: "default"
|
|
395
|
-
},
|
|
396
|
-
const m =
|
|
395
|
+
}, l = e, a = V(() => l.data || l.content.title || l.content.description), o = V(() => {
|
|
396
|
+
const m = l.chipOptions[l.data];
|
|
397
397
|
return typeof m == "object" ? {
|
|
398
|
-
label: m.label ||
|
|
398
|
+
label: m.label || l.data,
|
|
399
399
|
...m
|
|
400
400
|
} : {
|
|
401
|
-
label:
|
|
401
|
+
label: l.data,
|
|
402
402
|
variant: m
|
|
403
403
|
};
|
|
404
404
|
}), d = V(() => ({
|
|
@@ -411,7 +411,7 @@ const Ft = {
|
|
|
411
411
|
[r.EMPTY]: "px-4 min-w-[48px]",
|
|
412
412
|
[r.DEFAULT]: "px-4"
|
|
413
413
|
})), c = (m) => {
|
|
414
|
-
|
|
414
|
+
l.link && m.preventDefault();
|
|
415
415
|
};
|
|
416
416
|
return (m, f) => (t(), A(it(e.link ? "a" : "div"), {
|
|
417
417
|
href: e.link,
|
|
@@ -433,7 +433,7 @@ const Ft = {
|
|
|
433
433
|
})) : (t(), i("div", {
|
|
434
434
|
key: 1,
|
|
435
435
|
class: p(["w-full flex", e.isCopy ? "justify-between" : "justify-start"]),
|
|
436
|
-
onMouseover: f[2] || (f[2] = (v) => m.$emit("hover:field",
|
|
436
|
+
onMouseover: f[2] || (f[2] = (v) => m.$emit("hover:field", l))
|
|
437
437
|
}, [
|
|
438
438
|
w(m.$slots, "default", {}, () => [
|
|
439
439
|
e.variant === r.CHECKBOX ? (t(), A(s(Ke), {
|
|
@@ -467,16 +467,16 @@ const Ft = {
|
|
|
467
467
|
key: 6,
|
|
468
468
|
link: e.link
|
|
469
469
|
}, [
|
|
470
|
-
h(s(
|
|
470
|
+
h(s(de), he(Be(o.value)), null, 16)
|
|
471
471
|
], 8, aa)) : e.variant === r.DEFAULT ? (t(), i("div", la, x(e.data), 1)) : (t(), i("div", {
|
|
472
472
|
key: 8,
|
|
473
473
|
link: e.link,
|
|
474
474
|
class: "w-full h-full"
|
|
475
475
|
}, "-", 8, na))
|
|
476
476
|
]),
|
|
477
|
-
e.isCopy &&
|
|
477
|
+
e.isCopy && a.value ? (t(), A(s(Je), {
|
|
478
478
|
key: 0,
|
|
479
|
-
value: (g = e.content) != null && g.title ? `${e.content.title}${e.content.description &&
|
|
479
|
+
value: (g = e.content) != null && g.title ? `${e.content.title}${e.content.description && l.addDescriptionToCopyClipboard ? `,${e.content.description}` : ""}` : e.data,
|
|
480
480
|
"tooltip-options": {
|
|
481
481
|
transitionName: "copy"
|
|
482
482
|
}
|
|
@@ -507,7 +507,7 @@ const Ft = {
|
|
|
507
507
|
link: String
|
|
508
508
|
},
|
|
509
509
|
setup(e) {
|
|
510
|
-
return (r,
|
|
510
|
+
return (r, l) => (t(), A(s(ua), {
|
|
511
511
|
link: e.href ? "" : e.link,
|
|
512
512
|
class: "flex flex-col gap-y-1 whitespace-nowrap overflow-hidden w-full"
|
|
513
513
|
}, {
|
|
@@ -541,11 +541,11 @@ const Ft = {
|
|
|
541
541
|
link: String
|
|
542
542
|
},
|
|
543
543
|
setup(e) {
|
|
544
|
-
return (r,
|
|
544
|
+
return (r, l) => e.link ? (t(), i("a", {
|
|
545
545
|
key: 1,
|
|
546
546
|
href: e.link,
|
|
547
547
|
style: { "'pointer-events": "none'" },
|
|
548
|
-
onClick:
|
|
548
|
+
onClick: l[0] || (l[0] = fe(() => {
|
|
549
549
|
}, ["prevent"]))
|
|
550
550
|
}, [
|
|
551
551
|
w(r.$slots, "default")
|
|
@@ -595,7 +595,7 @@ const Ft = {
|
|
|
595
595
|
}
|
|
596
596
|
},
|
|
597
597
|
setup(e) {
|
|
598
|
-
const r = J(!1),
|
|
598
|
+
const r = J(!1), l = J("0"), a = J(), o = J();
|
|
599
599
|
V(
|
|
600
600
|
() => {
|
|
601
601
|
var c;
|
|
@@ -603,7 +603,7 @@ const Ft = {
|
|
|
603
603
|
}
|
|
604
604
|
);
|
|
605
605
|
const d = () => {
|
|
606
|
-
r.value = !r.value, r.value ?
|
|
606
|
+
r.value = !r.value, r.value ? l.value = `${a.value.scrollHeight}px` : l.value = "0";
|
|
607
607
|
};
|
|
608
608
|
return (c, m) => {
|
|
609
609
|
var f, g;
|
|
@@ -614,7 +614,7 @@ const Ft = {
|
|
|
614
614
|
"bg-oc-gray-900 text-white": e.isTotal,
|
|
615
615
|
"bg-oc-bg-dark": e.depth
|
|
616
616
|
}]),
|
|
617
|
-
style:
|
|
617
|
+
style: re({
|
|
618
618
|
gridTemplateColumns: e.gridTemplateColumns
|
|
619
619
|
})
|
|
620
620
|
}, [
|
|
@@ -658,7 +658,7 @@ const Ft = {
|
|
|
658
658
|
class: p(["px-4 py-3 whitespace-nowrap flex items-center gap-2", e.isSticky ? "sticky left-9 z-10 bg-white border-oc-gray-200" : ""])
|
|
659
659
|
}, [
|
|
660
660
|
X(x(e.row.label) + " ", 1),
|
|
661
|
-
h(s(
|
|
661
|
+
h(s(se), null, {
|
|
662
662
|
popper: C(() => [
|
|
663
663
|
n("div", ma, x(e.row.infoText), 1)
|
|
664
664
|
]),
|
|
@@ -684,9 +684,9 @@ const Ft = {
|
|
|
684
684
|
(g = e.row.children) != null && g.length ? (t(), i("div", {
|
|
685
685
|
key: 0,
|
|
686
686
|
ref_key: "childrenWrapper",
|
|
687
|
-
ref:
|
|
687
|
+
ref: a,
|
|
688
688
|
class: "transition-all overflow-hidden duration-500",
|
|
689
|
-
style:
|
|
689
|
+
style: re({ maxHeight: l.value })
|
|
690
690
|
}, [
|
|
691
691
|
(t(!0), i(Y, null, H(e.row.children, (v, k) => (t(), A(s(He), {
|
|
692
692
|
key: k,
|
|
@@ -727,23 +727,23 @@ const Ft = {
|
|
|
727
727
|
}
|
|
728
728
|
},
|
|
729
729
|
setup(e) {
|
|
730
|
-
return (r,
|
|
730
|
+
return (r, l) => (t(), i("div", {
|
|
731
731
|
class: "grid bg-oc-gray-50 h-[35px] min-w-max relative",
|
|
732
|
-
style:
|
|
732
|
+
style: re({
|
|
733
733
|
gridTemplateColumns: e.gridTemplateColumns
|
|
734
734
|
})
|
|
735
735
|
}, [
|
|
736
736
|
n("div", {
|
|
737
737
|
class: p(["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" : ""])
|
|
738
738
|
}, null, 2),
|
|
739
|
-
(t(!0), i(Y, null, H(e.headers, (
|
|
740
|
-
key:
|
|
739
|
+
(t(!0), i(Y, null, H(e.headers, (a, o) => (t(), i("div", {
|
|
740
|
+
key: a.key,
|
|
741
741
|
class: p(["py-3 px-4 text-xs text-oc-text-400 border-b border-oc-text-200 font-medium whitespace-nowrap", [
|
|
742
|
-
|
|
742
|
+
a.class,
|
|
743
743
|
e.isSticky && o === 0 ? "sticky left-9 z-10 bg-oc-gray-50 border-oc-gray-200" : ""
|
|
744
744
|
]])
|
|
745
|
-
}, x(
|
|
746
|
-
|
|
745
|
+
}, x(a.label), 3))), 128)),
|
|
746
|
+
l[0] || (l[0] = n("div", { class: "w-9 border-b border-oc-text-200" }, null, -1))
|
|
747
747
|
], 4));
|
|
748
748
|
}
|
|
749
749
|
}, va = { class: "flex flex-col border rounded w-full border-oc-gray-200 overflow-auto" }, cf = {
|
|
@@ -783,8 +783,8 @@ const Ft = {
|
|
|
783
783
|
}
|
|
784
784
|
},
|
|
785
785
|
setup(e) {
|
|
786
|
-
const r = e,
|
|
787
|
-
return (
|
|
786
|
+
const r = e, l = V(() => Object.fromEntries(r.headers.map((a) => [a.key, ""])));
|
|
787
|
+
return (a, o) => (t(), i("div", va, [
|
|
788
788
|
e.isAlternative ? (t(), i(Y, { key: 0 }, [
|
|
789
789
|
h(pa, {
|
|
790
790
|
headers: e.headers,
|
|
@@ -795,7 +795,7 @@ const Ft = {
|
|
|
795
795
|
key: d,
|
|
796
796
|
"is-loading": "",
|
|
797
797
|
"is-alternative": e.isAlternative,
|
|
798
|
-
row:
|
|
798
|
+
row: l.value,
|
|
799
799
|
headers: e.headers,
|
|
800
800
|
"is-sticky": e.isSticky,
|
|
801
801
|
"grid-template-columns": e.gridTemplateColumns
|
|
@@ -809,10 +809,10 @@ const Ft = {
|
|
|
809
809
|
important: d.important,
|
|
810
810
|
"grid-template-columns": e.gridTemplateColumns
|
|
811
811
|
}, le({ _: 2 }, [
|
|
812
|
-
H(
|
|
812
|
+
H(a.$slots, (m, f) => ({
|
|
813
813
|
name: f,
|
|
814
814
|
fn: C((g) => [
|
|
815
|
-
w(
|
|
815
|
+
w(a.$slots, f, D({ ref_for: !0 }, g))
|
|
816
816
|
])
|
|
817
817
|
}))
|
|
818
818
|
]), 1032, ["row", "headers", "is-loading", "is-alternative", "is-sticky", "important", "grid-template-columns"]))), 128))
|
|
@@ -827,14 +827,14 @@ const Ft = {
|
|
|
827
827
|
important: d.important,
|
|
828
828
|
"grid-template-columns": e.gridTemplateColumns
|
|
829
829
|
}, le({ _: 2 }, [
|
|
830
|
-
H(
|
|
830
|
+
H(a.$slots, (m, f) => ({
|
|
831
831
|
name: f,
|
|
832
832
|
fn: C((g) => [
|
|
833
|
-
w(
|
|
833
|
+
w(a.$slots, f, D({ ref_for: !0 }, g))
|
|
834
834
|
])
|
|
835
835
|
}))
|
|
836
836
|
]), 1032, ["row", "headers", "is-loading", "is-alternative", "value", "is-sticky", "important", "grid-template-columns"]))), 128)),
|
|
837
|
-
w(
|
|
837
|
+
w(a.$slots, "total", {}, () => [
|
|
838
838
|
h(He, {
|
|
839
839
|
"is-total": "",
|
|
840
840
|
headers: e.headers,
|
|
@@ -869,48 +869,48 @@ const Ft = {
|
|
|
869
869
|
"update:modelValue": []
|
|
870
870
|
},
|
|
871
871
|
setup(e) {
|
|
872
|
-
const r = e,
|
|
873
|
-
let
|
|
874
|
-
if (
|
|
872
|
+
const r = e, l = V(() => {
|
|
873
|
+
let a = Number(r.totalVisible);
|
|
874
|
+
if (a <= 3 && r.maxPage > a && (a = 3), r.maxPage <= a)
|
|
875
875
|
return Array.from({ length: r.maxPage }, (d, c) => 1 + c);
|
|
876
|
-
if (r.modelValue <=
|
|
876
|
+
if (r.modelValue <= a - 1)
|
|
877
877
|
return [
|
|
878
|
-
...Array.from({ length: Math.min(
|
|
878
|
+
...Array.from({ length: Math.min(a - 1, r.maxPage) }, (d, c) => c + 1),
|
|
879
879
|
"...",
|
|
880
880
|
r.maxPage
|
|
881
881
|
];
|
|
882
|
-
if (r.modelValue >= r.maxPage - (
|
|
882
|
+
if (r.modelValue >= r.maxPage - (a - 2))
|
|
883
883
|
return [
|
|
884
884
|
1,
|
|
885
885
|
"...",
|
|
886
886
|
...Array.from(
|
|
887
|
-
{ length:
|
|
888
|
-
(d, c) => r.maxPage - (
|
|
887
|
+
{ length: a - 1 },
|
|
888
|
+
(d, c) => r.maxPage - (a - 2) + c
|
|
889
889
|
)
|
|
890
890
|
];
|
|
891
|
-
const o = r.modelValue - Math.floor((
|
|
891
|
+
const o = r.modelValue - Math.floor((a - 2) / 2);
|
|
892
892
|
return [
|
|
893
893
|
1,
|
|
894
894
|
"...",
|
|
895
|
-
...Array.from({ length:
|
|
895
|
+
...Array.from({ length: a - 2 }, (d, c) => o + c),
|
|
896
896
|
"...",
|
|
897
897
|
r.maxPage
|
|
898
898
|
];
|
|
899
899
|
});
|
|
900
|
-
return (
|
|
900
|
+
return (a, o) => (t(), i("div", ga, [
|
|
901
901
|
n("div", Aa, [
|
|
902
902
|
h(s(mt), {
|
|
903
903
|
disabled: e.modelValue <= 1,
|
|
904
904
|
size: e.size,
|
|
905
|
-
onClick: o[0] || (o[0] = (d) => e.modelValue > 1 ?
|
|
905
|
+
onClick: o[0] || (o[0] = (d) => e.modelValue > 1 ? a.$emit("update:modelValue", e.modelValue > 1 ? e.modelValue - 1 : e.modelValue) : "")
|
|
906
906
|
}, null, 8, ["disabled", "size"]),
|
|
907
907
|
n("div", ha, [
|
|
908
|
-
(t(!0), i(Y, null, H(
|
|
908
|
+
(t(!0), i(Y, null, H(l.value, (d) => (t(), A(s(ft), {
|
|
909
909
|
key: d,
|
|
910
910
|
size: e.size,
|
|
911
911
|
"is-rounded": e.isRounded,
|
|
912
912
|
active: d === e.modelValue,
|
|
913
|
-
onClick: (c) =>
|
|
913
|
+
onClick: (c) => a.$emit("update:modelValue", d === "..." ? e.modelValue : d)
|
|
914
914
|
}, {
|
|
915
915
|
default: C(() => [
|
|
916
916
|
X(x(d), 1)
|
|
@@ -934,7 +934,7 @@ const Ft = {
|
|
|
934
934
|
"is-next": "",
|
|
935
935
|
size: e.size,
|
|
936
936
|
disabled: e.modelValue >= e.maxPage,
|
|
937
|
-
onClick: o[1] || (o[1] = (d) => e.modelValue < e.maxPage ?
|
|
937
|
+
onClick: o[1] || (o[1] = (d) => e.modelValue < e.maxPage ? a.$emit(
|
|
938
938
|
"update:modelValue",
|
|
939
939
|
e.modelValue < Number(e.maxPage) ? e.modelValue + 1 : Number(e.maxPage)
|
|
940
940
|
) : "")
|
|
@@ -958,7 +958,7 @@ const Ft = {
|
|
|
958
958
|
small: "py-2 text-sm",
|
|
959
959
|
big: "px-2 py-4 text-lg"
|
|
960
960
|
}));
|
|
961
|
-
return (
|
|
961
|
+
return (l, a) => (t(), i("div", {
|
|
962
962
|
class: p(["flex text-oc-text-400 items-center gap-x-1", [
|
|
963
963
|
r.value[e.size],
|
|
964
964
|
e.disabled ? "cursor-not-allowed opacity-60" : "hover:text-oc-text cursor-pointer",
|
|
@@ -990,14 +990,14 @@ const Ft = {
|
|
|
990
990
|
small: "w-[32px] text-sm h-[32px]",
|
|
991
991
|
big: "w-[40px] text-lg h-[40px]"
|
|
992
992
|
}));
|
|
993
|
-
return (
|
|
993
|
+
return (l, a) => (t(), i("div", {
|
|
994
994
|
class: p(["flex items-center justify-center cursor-pointer py-3 px-1", [
|
|
995
995
|
r.value[e.size],
|
|
996
996
|
e.active ? "bg-oc-gray-100 text-oc-text" : "text-oc-text-400 hover:text-oc-text hover:bg-oc-gray-50",
|
|
997
997
|
e.isRounded ? "rounded-full" : "rounded-sm"
|
|
998
998
|
]])
|
|
999
999
|
}, [
|
|
1000
|
-
w(
|
|
1000
|
+
w(l.$slots, "default")
|
|
1001
1001
|
], 2));
|
|
1002
1002
|
}
|
|
1003
1003
|
}, ba = { class: "flex gap-y-3 flex-col text-lg font-medium" }, xa = { key: 0 }, ka = {
|
|
@@ -1009,25 +1009,25 @@ const Ft = {
|
|
|
1009
1009
|
isLoading: Boolean
|
|
1010
1010
|
},
|
|
1011
1011
|
setup(e) {
|
|
1012
|
-
return (r,
|
|
1012
|
+
return (r, l) => (t(), i("div", ba, [
|
|
1013
1013
|
e.title ? (t(), i("span", xa, x(e.title), 1)) : u("", !0),
|
|
1014
1014
|
n("div", {
|
|
1015
1015
|
class: p(["flex gap-x-5 items-start md:flex-row flex-col gap-y-3 md:gap-y-0", e.containerClass])
|
|
1016
1016
|
}, [
|
|
1017
|
-
(t(!0), i(Y, null, H(e.items, (
|
|
1017
|
+
(t(!0), i(Y, null, H(e.items, (a, o) => (t(), A(s(Ue), {
|
|
1018
1018
|
key: o,
|
|
1019
|
-
title:
|
|
1020
|
-
class: p(["flex-1",
|
|
1021
|
-
variant:
|
|
1022
|
-
tooltip:
|
|
1023
|
-
icon:
|
|
1019
|
+
title: a.title,
|
|
1020
|
+
class: p(["flex-1", a.class]),
|
|
1021
|
+
variant: a.variant,
|
|
1022
|
+
tooltip: a.tooltip,
|
|
1023
|
+
icon: a.icon,
|
|
1024
1024
|
"is-loading": e.isLoading,
|
|
1025
|
-
content:
|
|
1026
|
-
info:
|
|
1027
|
-
"icon-height":
|
|
1028
|
-
"icon-width":
|
|
1025
|
+
content: a.content,
|
|
1026
|
+
info: a.info,
|
|
1027
|
+
"icon-height": a.iconHeight,
|
|
1028
|
+
"icon-width": a.iconWidth
|
|
1029
1029
|
}, le({ _: 2 }, [
|
|
1030
|
-
|
|
1030
|
+
a.isWarning ? {
|
|
1031
1031
|
name: "warning",
|
|
1032
1032
|
fn: C(() => [
|
|
1033
1033
|
w(r.$slots, "warning")
|
|
@@ -1067,7 +1067,7 @@ const Ft = {
|
|
|
1067
1067
|
accent: "bg-oc-accent-1-50-tr text-oc-accent-1",
|
|
1068
1068
|
blue: "bg-oc-primary-50-tr text-oc-primary"
|
|
1069
1069
|
}));
|
|
1070
|
-
return (
|
|
1070
|
+
return (l, a) => (t(), i("div", {
|
|
1071
1071
|
class: p(["rounded-full p-3 flex items-center justify-center aspect-square", r.value[e.variant]])
|
|
1072
1072
|
}, [
|
|
1073
1073
|
h(s(L), {
|
|
@@ -1109,7 +1109,7 @@ const Ft = {
|
|
|
1109
1109
|
}
|
|
1110
1110
|
},
|
|
1111
1111
|
setup(e) {
|
|
1112
|
-
return (r,
|
|
1112
|
+
return (r, l) => (t(), i("div", {
|
|
1113
1113
|
class: p([e.isTransparent ? "p-3" : "border p-4 bg-oc-bg-light border-oc-gray-200 ", "flex flex-col gap-y-4 md:overflow-hidden w-full md:w-auto rounded"])
|
|
1114
1114
|
}, [
|
|
1115
1115
|
e.isLoading ? (t(), i("div", wa, [
|
|
@@ -1131,7 +1131,7 @@ const Ft = {
|
|
|
1131
1131
|
w(r.$slots, "title", {}, () => [
|
|
1132
1132
|
n("span", Ia, x(e.title), 1)
|
|
1133
1133
|
]),
|
|
1134
|
-
h(s(
|
|
1134
|
+
h(s(se), D({
|
|
1135
1135
|
position: "top",
|
|
1136
1136
|
"popper-options": { strategy: "fixed" },
|
|
1137
1137
|
"popper-class": "rounded-sm"
|
|
@@ -1170,7 +1170,7 @@ const Ft = {
|
|
|
1170
1170
|
X(x(e.content), 1)
|
|
1171
1171
|
], 64)) : (t(), i("div", Ka, [
|
|
1172
1172
|
n("div", za, x(e.content), 1),
|
|
1173
|
-
h(s(
|
|
1173
|
+
h(s(se), {
|
|
1174
1174
|
position: "top",
|
|
1175
1175
|
"popper-class": "rounded-sm",
|
|
1176
1176
|
"popper-options": { strategy: "fixed" }
|
|
@@ -1241,8 +1241,8 @@ const Ft = {
|
|
|
1241
1241
|
},
|
|
1242
1242
|
emits: ["addCustomer", "editCustomer", "closeCustomer"],
|
|
1243
1243
|
setup(e, { emit: r }) {
|
|
1244
|
-
const
|
|
1245
|
-
return (
|
|
1244
|
+
const l = r;
|
|
1245
|
+
return (a, o) => {
|
|
1246
1246
|
var d, c, m, f, g, v, k, B, z, K, S, y, I, O, b, Z, N, q, W;
|
|
1247
1247
|
return t(), i("div", {
|
|
1248
1248
|
class: p(["rounded shrink-0 border border-oc-gray-200 bg-oc-bg-light flex items-center justify-between gap-4 px-4 py-5 customer-card relative group", { [e.variant]: !0, "hover:shadow-normal transition": e.isHover }])
|
|
@@ -1257,14 +1257,14 @@ const Ft = {
|
|
|
1257
1257
|
variant: "secondary",
|
|
1258
1258
|
size: "small",
|
|
1259
1259
|
class: "*:!px-[6px]",
|
|
1260
|
-
onClick: o[0] || (o[0] = (j) =>
|
|
1260
|
+
onClick: o[0] || (o[0] = (j) => a.$emit("editCustomer", e.customer))
|
|
1261
1261
|
})
|
|
1262
1262
|
], 2)) : u("", !0),
|
|
1263
1263
|
e.isClosable ? (t(), A(s(L), {
|
|
1264
1264
|
key: 1,
|
|
1265
1265
|
class: "absolute -right-1.5 -top-1.5 border-1 border-white rounded-full text-gray-500 cursor-pointer transition-all duration-300 hover:text-oc-error",
|
|
1266
1266
|
name: "filled-x-circle",
|
|
1267
|
-
onClick: o[1] || (o[1] = (j) =>
|
|
1267
|
+
onClick: o[1] || (o[1] = (j) => l("closeCustomer"))
|
|
1268
1268
|
})) : u("", !0),
|
|
1269
1269
|
e.customer ? (t(), i(Y, { key: 2 }, [
|
|
1270
1270
|
n("div", Na, [
|
|
@@ -1335,18 +1335,18 @@ const Ft = {
|
|
|
1335
1335
|
size: "small",
|
|
1336
1336
|
class: "w-full",
|
|
1337
1337
|
label: "Add customer",
|
|
1338
|
-
onClick: o[2] || (o[2] = (j) =>
|
|
1338
|
+
onClick: o[2] || (o[2] = (j) => a.$emit("addCustomer"))
|
|
1339
1339
|
})
|
|
1340
1340
|
], 64)),
|
|
1341
|
-
|
|
1341
|
+
a.$slots.bottom ? (t(), i("div", {
|
|
1342
1342
|
key: 4,
|
|
1343
1343
|
class: p({ "opacity-0 group-hover:opacity-100": e.isHover })
|
|
1344
1344
|
}, [
|
|
1345
|
-
w(
|
|
1345
|
+
w(a.$slots, "bottom", {}, void 0, !0)
|
|
1346
1346
|
], 2)) : u("", !0)
|
|
1347
1347
|
]),
|
|
1348
|
-
|
|
1349
|
-
w(
|
|
1348
|
+
a.$slots.leading ? (t(), i("div", Da, [
|
|
1349
|
+
w(a.$slots, "leading", {}, void 0, !0)
|
|
1350
1350
|
])) : u("", !0)
|
|
1351
1351
|
], 2);
|
|
1352
1352
|
};
|
|
@@ -1361,10 +1361,10 @@ const Ft = {
|
|
|
1361
1361
|
hasFxData: Boolean
|
|
1362
1362
|
},
|
|
1363
1363
|
setup(e) {
|
|
1364
|
-
const r = e,
|
|
1364
|
+
const r = e, l = V(() => {
|
|
1365
1365
|
var c;
|
|
1366
1366
|
return (c = r.transfer.source_currency) == null ? void 0 : c.toUpperCase();
|
|
1367
|
-
}),
|
|
1367
|
+
}), a = V(() => {
|
|
1368
1368
|
var c;
|
|
1369
1369
|
return (c = r.transfer.payment_currency) == null ? void 0 : c.toUpperCase();
|
|
1370
1370
|
}), o = V(() => {
|
|
@@ -1379,7 +1379,7 @@ const Ft = {
|
|
|
1379
1379
|
h(s(We), {
|
|
1380
1380
|
class: "justify-between font-medium [&>span]:text-base",
|
|
1381
1381
|
label: "FX Rate",
|
|
1382
|
-
content: `${
|
|
1382
|
+
content: `${l.value} 1 = ${a.value} ${e.transfer.exchange_rate}`,
|
|
1383
1383
|
variant: "big",
|
|
1384
1384
|
"show-copy-tooltip": !1
|
|
1385
1385
|
}, null, 8, ["content"])
|
|
@@ -1441,11 +1441,11 @@ const Ft = {
|
|
|
1441
1441
|
isOpenDefault: Boolean
|
|
1442
1442
|
},
|
|
1443
1443
|
emits: ["update:modelValue", "edit", "delete"],
|
|
1444
|
-
setup(e, { expose: r, emit:
|
|
1445
|
-
const
|
|
1446
|
-
|
|
1444
|
+
setup(e, { expose: r, emit: l }) {
|
|
1445
|
+
const a = e, o = l, d = J(a.isOpenDefault), c = () => {
|
|
1446
|
+
a.isNoToggleForced || a.isDisabled || (d.value = !d.value, o("update:modelValue", d.value));
|
|
1447
1447
|
};
|
|
1448
|
-
return me(() =>
|
|
1448
|
+
return me(() => a.modelValue, (m) => {
|
|
1449
1449
|
d.value = m;
|
|
1450
1450
|
}), r({ toggleAccordion: c }), (m, f) => (t(), i("div", {
|
|
1451
1451
|
class: p(["rounded border border-gray-200 group overflow-hidden", {
|
|
@@ -1472,7 +1472,7 @@ const Ft = {
|
|
|
1472
1472
|
n("div", _a, [
|
|
1473
1473
|
e.title ? (t(), i("span", el, x(e.title), 1)) : u("", !0),
|
|
1474
1474
|
e.chips.length ? (t(), i("div", tl, [
|
|
1475
|
-
(t(!0), i(Y, null, H(e.chips, (g, v) => (t(), A(s(
|
|
1475
|
+
(t(!0), i(Y, null, H(e.chips, (g, v) => (t(), A(s(de), {
|
|
1476
1476
|
key: v,
|
|
1477
1477
|
label: g.label,
|
|
1478
1478
|
variant: g.variant,
|
|
@@ -1560,15 +1560,15 @@ const Ft = {
|
|
|
1560
1560
|
},
|
|
1561
1561
|
emits: ["more"],
|
|
1562
1562
|
setup(e, { emit: r }) {
|
|
1563
|
-
const
|
|
1564
|
-
|
|
1563
|
+
const l = r, a = J(!1), o = () => {
|
|
1564
|
+
a.value = !a.value, l("more");
|
|
1565
1565
|
};
|
|
1566
1566
|
return (d, c) => (t(), i("div", {
|
|
1567
1567
|
class: p(["px-5 py-4 rounded border border-gray-200 group", {
|
|
1568
1568
|
"hover:shadow-normal": !e.isDisabled && !e.isTransparent,
|
|
1569
1569
|
"border-none !p-0": e.isTransparent
|
|
1570
1570
|
}]),
|
|
1571
|
-
onMouseleave: c[1] || (c[1] = (m) =>
|
|
1571
|
+
onMouseleave: c[1] || (c[1] = (m) => a.value = !1)
|
|
1572
1572
|
}, [
|
|
1573
1573
|
n("div", rl, [
|
|
1574
1574
|
w(d.$slots, "logo"),
|
|
@@ -1579,7 +1579,7 @@ const Ft = {
|
|
|
1579
1579
|
e.title ? (t(), i("span", ml, x(e.title), 1)) : u("", !0)
|
|
1580
1580
|
]),
|
|
1581
1581
|
e.chips.length ? (t(), i("div", fl, [
|
|
1582
|
-
(t(!0), i(Y, null, H(e.chips, (m, f) => (t(), A(s(
|
|
1582
|
+
(t(!0), i(Y, null, H(e.chips, (m, f) => (t(), A(s(de), {
|
|
1583
1583
|
key: f,
|
|
1584
1584
|
label: m.label,
|
|
1585
1585
|
variant: m.variant,
|
|
@@ -1593,8 +1593,8 @@ const Ft = {
|
|
|
1593
1593
|
w(d.$slots, "actions", {}, () => [
|
|
1594
1594
|
e.isDropdownActionsVisible && !e.isDisabled ? (t(), A(s(pe), {
|
|
1595
1595
|
key: 0,
|
|
1596
|
-
modelValue:
|
|
1597
|
-
"onUpdate:modelValue": c[0] || (c[0] = (m) =>
|
|
1596
|
+
modelValue: a.value,
|
|
1597
|
+
"onUpdate:modelValue": c[0] || (c[0] = (m) => a.value = m),
|
|
1598
1598
|
placement: "bottom-end"
|
|
1599
1599
|
}, {
|
|
1600
1600
|
menu: C(() => [
|
|
@@ -1656,7 +1656,7 @@ const Ft = {
|
|
|
1656
1656
|
imageClass: String
|
|
1657
1657
|
},
|
|
1658
1658
|
setup(e) {
|
|
1659
|
-
return (r,
|
|
1659
|
+
return (r, l) => (t(), i("div", yl, [
|
|
1660
1660
|
n("img", {
|
|
1661
1661
|
src: e.image,
|
|
1662
1662
|
class: p([e.imageClass, "object-contain"]),
|
|
@@ -1675,10 +1675,10 @@ const Ft = {
|
|
|
1675
1675
|
page: Object
|
|
1676
1676
|
},
|
|
1677
1677
|
setup(e) {
|
|
1678
|
-
const r = J(!1),
|
|
1678
|
+
const r = J(!1), l = (o) => {
|
|
1679
1679
|
let d = document.createElement("DIV");
|
|
1680
1680
|
return d.innerHTML = o, d.textContent || d.innerText || "";
|
|
1681
|
-
},
|
|
1681
|
+
}, a = (o) => o == null ? void 0 : o.replace("generics/medium/", "generics/thumbnail/");
|
|
1682
1682
|
return (o, d) => (t(), i("div", {
|
|
1683
1683
|
class: "w-full p-5 flex",
|
|
1684
1684
|
onMouseleave: d[1] || (d[1] = (c) => r.value = !1)
|
|
@@ -1686,7 +1686,7 @@ const Ft = {
|
|
|
1686
1686
|
e.page.page_cover_url ? (t(), i("div", wl, [
|
|
1687
1687
|
n("div", {
|
|
1688
1688
|
class: "w-[100px] h-[100px] rounded !bg-cover",
|
|
1689
|
-
style:
|
|
1689
|
+
style: re(`background:url(${a(e.page.page_cover_url)})`)
|
|
1690
1690
|
}, null, 4)
|
|
1691
1691
|
])) : u("", !0),
|
|
1692
1692
|
n("div", Cl, [
|
|
@@ -1713,13 +1713,13 @@ const Ft = {
|
|
|
1713
1713
|
}, 8, ["modelValue"])
|
|
1714
1714
|
])
|
|
1715
1715
|
]),
|
|
1716
|
-
n("div", Kl, x(
|
|
1716
|
+
n("div", Kl, x(l(e.page.description)), 1),
|
|
1717
1717
|
n("div", zl, [
|
|
1718
1718
|
n("span", Ll, [
|
|
1719
1719
|
d[2] || (d[2] = n("span", { class: "text-oc-text-300" }, "Last updated : ", -1)),
|
|
1720
1720
|
n("span", jl, x(s($)(e.page.updated_at).format("DD MMM YYYY")), 1)
|
|
1721
1721
|
]),
|
|
1722
|
-
h(s(
|
|
1722
|
+
h(s(de), {
|
|
1723
1723
|
class: "ml-auto md:ml-0",
|
|
1724
1724
|
variant: e.page.enabled ? "primary" : "gray"
|
|
1725
1725
|
}, {
|
|
@@ -1761,10 +1761,10 @@ const Ft = {
|
|
|
1761
1761
|
emits: ["edit", "delete"],
|
|
1762
1762
|
setup(e) {
|
|
1763
1763
|
var m;
|
|
1764
|
-
const r = e,
|
|
1764
|
+
const r = e, l = V(() => {
|
|
1765
1765
|
var f;
|
|
1766
1766
|
return ((f = r.paymentMethods) == null ? void 0 : f.length) > d.value;
|
|
1767
|
-
}),
|
|
1767
|
+
}), a = V(
|
|
1768
1768
|
() => {
|
|
1769
1769
|
var f, g;
|
|
1770
1770
|
return (g = r.paymentMethods) == null ? void 0 : g.slice(d.value, (f = r.paymentMethods) == null ? void 0 : f.length);
|
|
@@ -1792,7 +1792,7 @@ const Ft = {
|
|
|
1792
1792
|
n("div", ql, [
|
|
1793
1793
|
n("span", Vl, x(e.title), 1),
|
|
1794
1794
|
e.chips.length ? (t(), i("div", Yl, [
|
|
1795
|
-
(t(!0), i(Y, null, H(e.chips, (k, B) => (t(), A(s(
|
|
1795
|
+
(t(!0), i(Y, null, H(e.chips, (k, B) => (t(), A(s(de), D({
|
|
1796
1796
|
key: B,
|
|
1797
1797
|
class: "font-medium"
|
|
1798
1798
|
}, { ref_for: !0 }, k), null, 16))), 128))
|
|
@@ -1826,7 +1826,7 @@ const Ft = {
|
|
|
1826
1826
|
alt: k.method,
|
|
1827
1827
|
src: k.svg
|
|
1828
1828
|
}, null, 8, Tl))), 128)),
|
|
1829
|
-
|
|
1829
|
+
l.value ? (t(), A(s(se), {
|
|
1830
1830
|
key: 0,
|
|
1831
1831
|
position: "top-end",
|
|
1832
1832
|
"popper-options": { strategy: "fixed" }
|
|
@@ -1838,7 +1838,7 @@ const Ft = {
|
|
|
1838
1838
|
]),
|
|
1839
1839
|
popper: C(() => [
|
|
1840
1840
|
n("div", El, [
|
|
1841
|
-
(t(!0), i(Y, null, H(
|
|
1841
|
+
(t(!0), i(Y, null, H(a.value, (k) => (t(), i("img", {
|
|
1842
1842
|
key: k.method,
|
|
1843
1843
|
width: "35",
|
|
1844
1844
|
height: "24",
|
|
@@ -1886,7 +1886,7 @@ const Ft = {
|
|
|
1886
1886
|
medium: "w-[56px]",
|
|
1887
1887
|
large: "w-16"
|
|
1888
1888
|
};
|
|
1889
|
-
return (
|
|
1889
|
+
return (l, a) => (t(), i("div", {
|
|
1890
1890
|
class: p(["p-4 flex gap-x-4 rounded items-center border border-gray-200 group", { "hover:shadow-normal": !e.isDisabled }])
|
|
1891
1891
|
}, [
|
|
1892
1892
|
n("div", {
|
|
@@ -1903,7 +1903,7 @@ const Ft = {
|
|
|
1903
1903
|
n("div", Fl, [
|
|
1904
1904
|
e.title ? (t(), i("span", Ul, x(e.title), 1)) : u("", !0),
|
|
1905
1905
|
e.chips.length ? (t(), i("div", $l, [
|
|
1906
|
-
(t(!0), i(Y, null, H(e.chips, (o, d) => (t(), A(s(
|
|
1906
|
+
(t(!0), i(Y, null, H(e.chips, (o, d) => (t(), A(s(de), {
|
|
1907
1907
|
key: d,
|
|
1908
1908
|
label: o.label,
|
|
1909
1909
|
variant: o.variant,
|
|
@@ -1935,7 +1935,7 @@ const Ft = {
|
|
|
1935
1935
|
iconTextClass: String
|
|
1936
1936
|
},
|
|
1937
1937
|
setup(e) {
|
|
1938
|
-
return St(), (r,
|
|
1938
|
+
return St(), (r, l) => (t(), i("div", an, [
|
|
1939
1939
|
n("div", null, [
|
|
1940
1940
|
n("div", {
|
|
1941
1941
|
class: p(["w-6 h-6 flex z-[1] relative items-center rounded-full justify-center", e.isActive ? "bg-oc-accent-1-50 shadow" : " bg-transparent"])
|
|
@@ -1990,31 +1990,31 @@ const Ft = {
|
|
|
1990
1990
|
emits: ["more"],
|
|
1991
1991
|
setup(e) {
|
|
1992
1992
|
const r = J(!1);
|
|
1993
|
-
return (
|
|
1993
|
+
return (l, a) => {
|
|
1994
1994
|
var o;
|
|
1995
1995
|
return t(), i("div", rn, [
|
|
1996
1996
|
n("div", dn, [
|
|
1997
1997
|
n("div", cn, [
|
|
1998
1998
|
e.title ? (t(), i("span", un, x(e.title), 1)) : u("", !0),
|
|
1999
|
-
|
|
1999
|
+
a[3] || (a[3] = X(" - ")),
|
|
2000
2000
|
e.date ? (t(), i("span", mn, x(e.date), 1)) : u("", !0)
|
|
2001
2001
|
]),
|
|
2002
2002
|
h(s(pe), {
|
|
2003
2003
|
modelValue: r.value,
|
|
2004
|
-
"onUpdate:modelValue":
|
|
2004
|
+
"onUpdate:modelValue": a[2] || (a[2] = (d) => r.value = d)
|
|
2005
2005
|
}, {
|
|
2006
2006
|
menu: C(() => [
|
|
2007
2007
|
n("div", {
|
|
2008
|
-
onMouseleave:
|
|
2008
|
+
onMouseleave: a[1] || (a[1] = (d) => r.value = !1)
|
|
2009
2009
|
}, [
|
|
2010
|
-
w(
|
|
2010
|
+
w(l.$slots, "menu")
|
|
2011
2011
|
], 32)
|
|
2012
2012
|
]),
|
|
2013
2013
|
default: C(() => [
|
|
2014
2014
|
h(s(L), {
|
|
2015
2015
|
name: "dots-vertical",
|
|
2016
2016
|
class: "opacity-0 p-2 group-hover:opacity-100 cursor-pointer active:bg-oc-gray-100 rounded",
|
|
2017
|
-
onClick:
|
|
2017
|
+
onClick: a[0] || (a[0] = (d) => l.$emit("more"))
|
|
2018
2018
|
})
|
|
2019
2019
|
]),
|
|
2020
2020
|
_: 3
|
|
@@ -2075,8 +2075,8 @@ const Ft = {
|
|
|
2075
2075
|
"update:modelValue"
|
|
2076
2076
|
],
|
|
2077
2077
|
setup(e, { emit: r }) {
|
|
2078
|
-
const
|
|
2079
|
-
switch (
|
|
2078
|
+
const l = e, a = V(() => {
|
|
2079
|
+
switch (l.type) {
|
|
2080
2080
|
case "timeLine":
|
|
2081
2081
|
return pt;
|
|
2082
2082
|
case "webhook":
|
|
@@ -2097,7 +2097,7 @@ const Ft = {
|
|
|
2097
2097
|
return pt;
|
|
2098
2098
|
}
|
|
2099
2099
|
});
|
|
2100
|
-
return (o, d) => (t(), A(it(
|
|
2100
|
+
return (o, d) => (t(), A(it(a.value), D(l, {
|
|
2101
2101
|
onMore: d[0] || (d[0] = (c) => o.$emit("more")),
|
|
2102
2102
|
onEdit: d[1] || (d[1] = (c) => o.$emit("edit")),
|
|
2103
2103
|
onDelete: d[2] || (d[2] = (c) => o.$emit("delete")),
|
|
@@ -2123,18 +2123,18 @@ const Ft = {
|
|
|
2123
2123
|
}
|
|
2124
2124
|
},
|
|
2125
2125
|
setup(e) {
|
|
2126
|
-
return (r,
|
|
2126
|
+
return (r, l) => (t(), i("div", vn, [
|
|
2127
2127
|
n("span", gn, x(e.title) + ":", 1),
|
|
2128
2128
|
n("span", An, x(e.url), 1),
|
|
2129
2129
|
e.isCopy ? (t(), A(s(Je), {
|
|
2130
2130
|
key: 0,
|
|
2131
2131
|
value: e.url
|
|
2132
2132
|
}, {
|
|
2133
|
-
default: C(({ isShow:
|
|
2133
|
+
default: C(({ isShow: a }) => [
|
|
2134
2134
|
h(s(L), {
|
|
2135
2135
|
width: "14",
|
|
2136
2136
|
height: "14",
|
|
2137
|
-
class: p(["cursor-pointer transition-all duration-500 group-hover/url:opacity-100",
|
|
2137
|
+
class: p(["cursor-pointer transition-all duration-500 group-hover/url:opacity-100", a ? "opacity-100" : "md:opacity-0"]),
|
|
2138
2138
|
name: "copy"
|
|
2139
2139
|
}, null, 8, ["class"])
|
|
2140
2140
|
]),
|
|
@@ -2169,12 +2169,12 @@ const Ft = {
|
|
|
2169
2169
|
}
|
|
2170
2170
|
},
|
|
2171
2171
|
setup(e) {
|
|
2172
|
-
const r = e,
|
|
2173
|
-
return (
|
|
2174
|
-
class: p(["flex gap-x-5 text-sm group", { "flex-col":
|
|
2172
|
+
const r = e, l = V(() => r.alignment === "vertical");
|
|
2173
|
+
return (a, o) => (t(), i("div", {
|
|
2174
|
+
class: p(["flex gap-x-5 text-sm group", { "flex-col": l.value }])
|
|
2175
2175
|
}, [
|
|
2176
2176
|
n("div", {
|
|
2177
|
-
class: p(["flex gap-x-2 items-center shrink-0 text-oc-text-400", { "w-[80px]": e.variant === "small" && !
|
|
2177
|
+
class: p(["flex gap-x-2 items-center shrink-0 text-oc-text-400", { "w-[80px]": e.variant === "small" && !l.value }])
|
|
2178
2178
|
}, [
|
|
2179
2179
|
X(x(e.label) + " ", 1),
|
|
2180
2180
|
e.showCopyTooltip ? (t(), A(s(Je), {
|
|
@@ -2193,9 +2193,9 @@ const Ft = {
|
|
|
2193
2193
|
}, 8, ["value"])) : u("", !0)
|
|
2194
2194
|
], 2),
|
|
2195
2195
|
n("div", {
|
|
2196
|
-
class: p({ "text-base font-medium":
|
|
2196
|
+
class: p({ "text-base font-medium": l.value })
|
|
2197
2197
|
}, [
|
|
2198
|
-
w(
|
|
2198
|
+
w(a.$slots, "content", {}, () => [
|
|
2199
2199
|
n("span", null, x(e.content), 1)
|
|
2200
2200
|
])
|
|
2201
2201
|
], 2)
|
|
@@ -2219,20 +2219,20 @@ const Ft = {
|
|
|
2219
2219
|
noDataDescription: String
|
|
2220
2220
|
},
|
|
2221
2221
|
setup(e) {
|
|
2222
|
-
const r = St(),
|
|
2223
|
-
return (
|
|
2222
|
+
const r = St(), l = (a) => !!r[a];
|
|
2223
|
+
return (a, o) => (t(), i("div", {
|
|
2224
2224
|
class: p(["border border-gray-200 rounded p-5 flex flex-col grow transition relative", {
|
|
2225
2225
|
"border-transparent": e.transparent,
|
|
2226
2226
|
"hover:shadow": e.hover,
|
|
2227
2227
|
shadow: e.shadow
|
|
2228
2228
|
}])
|
|
2229
2229
|
}, [
|
|
2230
|
-
e.title && !
|
|
2230
|
+
e.title && !l("header") ? (t(), i("div", {
|
|
2231
2231
|
key: 0,
|
|
2232
2232
|
class: p(["flex items-start text-oc-text-400 font-medium text-[10px]", e.titleClass])
|
|
2233
2233
|
}, [
|
|
2234
2234
|
n("div", yn, x(e.title), 1),
|
|
2235
|
-
e.titleIconTooltip ? (t(), A(s(
|
|
2235
|
+
e.titleIconTooltip ? (t(), A(s(se), {
|
|
2236
2236
|
key: 0,
|
|
2237
2237
|
"popper-class": "w-max bg-oc-bg",
|
|
2238
2238
|
position: "top-start"
|
|
@@ -2251,11 +2251,11 @@ const Ft = {
|
|
|
2251
2251
|
_: 1
|
|
2252
2252
|
})) : u("", !0)
|
|
2253
2253
|
], 2)) : u("", !0),
|
|
2254
|
-
w(
|
|
2254
|
+
w(a.$slots, "header"),
|
|
2255
2255
|
n("div", xn, [
|
|
2256
|
-
w(
|
|
2256
|
+
w(a.$slots, "default")
|
|
2257
2257
|
]),
|
|
2258
|
-
w(
|
|
2258
|
+
w(a.$slots, "footer"),
|
|
2259
2259
|
e.isLoading ? (t(), i("div", kn, [
|
|
2260
2260
|
h(s(L), {
|
|
2261
2261
|
name: "loading-2",
|
|
@@ -2300,8 +2300,8 @@ const Ft = {
|
|
|
2300
2300
|
},
|
|
2301
2301
|
emits: ["update:model-value"],
|
|
2302
2302
|
setup(e, { emit: r }) {
|
|
2303
|
-
const
|
|
2304
|
-
return (
|
|
2303
|
+
const l = J(!1);
|
|
2304
|
+
return (a, o) => (t(), i("div", {
|
|
2305
2305
|
class: p(["fixed top-0 bottom-0 shadow-xl bg-oc-bg-light transition-all h-full z-50 overflow-y-auto", {
|
|
2306
2306
|
"right-0": e.modelValue && e.position === "right",
|
|
2307
2307
|
"right-[-999px] w-0": !e.modelValue && e.position === "right",
|
|
@@ -2311,14 +2311,14 @@ const Ft = {
|
|
|
2311
2311
|
}, [
|
|
2312
2312
|
e.modelValue ? (t(), i("div", wn, [
|
|
2313
2313
|
n("div", Cn, [
|
|
2314
|
-
w(
|
|
2314
|
+
w(a.$slots, "header", {}, () => [
|
|
2315
2315
|
n("div", Sn, [
|
|
2316
2316
|
n("span", In, [
|
|
2317
|
-
w(
|
|
2317
|
+
w(a.$slots, "title", {}, () => [
|
|
2318
2318
|
X(x(e.title), 1)
|
|
2319
2319
|
])
|
|
2320
2320
|
]),
|
|
2321
|
-
w(
|
|
2321
|
+
w(a.$slots, "description", {}, () => [
|
|
2322
2322
|
n("div", Zn, [
|
|
2323
2323
|
e.description ? (t(), i("span", On, x(e.description), 1)) : u("", !0),
|
|
2324
2324
|
h(s(Je), {
|
|
@@ -2341,8 +2341,8 @@ const Ft = {
|
|
|
2341
2341
|
n("div", Kn, [
|
|
2342
2342
|
e.dropdownOptions ? (t(), A(s(pe), D({
|
|
2343
2343
|
key: 0,
|
|
2344
|
-
modelValue:
|
|
2345
|
-
"onUpdate:modelValue": o[0] || (o[0] = (d) =>
|
|
2344
|
+
modelValue: l.value,
|
|
2345
|
+
"onUpdate:modelValue": o[0] || (o[0] = (d) => l.value = d),
|
|
2346
2346
|
"popper-options": { strategy: "fixed" },
|
|
2347
2347
|
placement: "bottom",
|
|
2348
2348
|
class: "text-sm"
|
|
@@ -2369,7 +2369,7 @@ const Ft = {
|
|
|
2369
2369
|
e.isClose ? (t(), i("div", {
|
|
2370
2370
|
key: 1,
|
|
2371
2371
|
class: "p-[6px] rounded cursor-pointer text-oc-gray-500 hover:bg-gray-100 hover:text-oc-text",
|
|
2372
|
-
onClick: o[1] || (o[1] = (d) =>
|
|
2372
|
+
onClick: o[1] || (o[1] = (d) => a.$emit("update:model-value", !1))
|
|
2373
2373
|
}, [
|
|
2374
2374
|
h(s(L), {
|
|
2375
2375
|
name: "x",
|
|
@@ -2380,7 +2380,7 @@ const Ft = {
|
|
|
2380
2380
|
])
|
|
2381
2381
|
])
|
|
2382
2382
|
]),
|
|
2383
|
-
w(
|
|
2383
|
+
w(a.$slots, "bottom")
|
|
2384
2384
|
])) : u("", !0)
|
|
2385
2385
|
], 2));
|
|
2386
2386
|
}
|
|
@@ -2422,7 +2422,7 @@ const Ft = {
|
|
|
2422
2422
|
}
|
|
2423
2423
|
},
|
|
2424
2424
|
setup(e) {
|
|
2425
|
-
return (r,
|
|
2425
|
+
return (r, l) => (t(), i("div", Bn, [
|
|
2426
2426
|
n("div", Jn, [
|
|
2427
2427
|
e.status === "completed" ? (t(), i("div", Nn, [
|
|
2428
2428
|
h(s(L), {
|
|
@@ -2504,12 +2504,12 @@ const Ft = {
|
|
|
2504
2504
|
},
|
|
2505
2505
|
emits: ["toggleChildren", "click", "click:col"],
|
|
2506
2506
|
setup(e, { emit: r }) {
|
|
2507
|
-
const
|
|
2507
|
+
const l = r, a = (c) => ({
|
|
2508
2508
|
"font-reddit-mono": c.variant === "date",
|
|
2509
2509
|
"font-reddit-mono font-semibold": c.variant === "amount",
|
|
2510
2510
|
"text-oc-text-400": c.variant === "secondary"
|
|
2511
2511
|
}), o = J(!1), d = () => {
|
|
2512
|
-
o.value = !o.value,
|
|
2512
|
+
o.value = !o.value, l("toggleChildren");
|
|
2513
2513
|
};
|
|
2514
2514
|
return (c, m) => {
|
|
2515
2515
|
var g, v, k, B;
|
|
@@ -2565,7 +2565,7 @@ const Ft = {
|
|
|
2565
2565
|
onClick: (S) => c.$emit("click:col", e.row, z)
|
|
2566
2566
|
}, [
|
|
2567
2567
|
n("div", {
|
|
2568
|
-
class: p(["px-5 py-3 text-[13px] flex gap-2 items-center justify-between w-full", [z.class,
|
|
2568
|
+
class: p(["px-5 py-3 text-[13px] flex gap-2 items-center justify-between w-full", [z.class, a(z)]])
|
|
2569
2569
|
}, [
|
|
2570
2570
|
w(c.$slots, z.key, {
|
|
2571
2571
|
item: e.row,
|
|
@@ -2631,26 +2631,26 @@ const Ft = {
|
|
|
2631
2631
|
},
|
|
2632
2632
|
emits: ["update:selected", "click:row"],
|
|
2633
2633
|
setup(e, { emit: r }) {
|
|
2634
|
-
const
|
|
2634
|
+
const l = e, a = r, o = V(() => {
|
|
2635
2635
|
var G;
|
|
2636
|
-
return
|
|
2636
|
+
return l.isLoading ? [] : (G = l.options) == null ? void 0 : G.fields;
|
|
2637
2637
|
}), d = V(() => {
|
|
2638
2638
|
var G;
|
|
2639
|
-
return ((G =
|
|
2639
|
+
return ((G = l.options) == null ? void 0 : G.headers) ?? [];
|
|
2640
2640
|
}), c = V(() => {
|
|
2641
2641
|
var G;
|
|
2642
|
-
return
|
|
2642
|
+
return l.isLoading ? !1 : (G = l.options) == null ? void 0 : G.isSelectable;
|
|
2643
2643
|
}), m = V(() => {
|
|
2644
2644
|
var G;
|
|
2645
|
-
return (((G =
|
|
2645
|
+
return (((G = l.options) == null ? void 0 : G.isExpand) && !(l != null && l.isLoading)) ?? !1;
|
|
2646
2646
|
}), f = V(
|
|
2647
|
-
() => typeof
|
|
2647
|
+
() => typeof l.rowKey == "function" ? l.rowKey : (G) => G[l.rowKey]
|
|
2648
2648
|
), g = V({
|
|
2649
2649
|
get() {
|
|
2650
|
-
return
|
|
2650
|
+
return l.selected || [];
|
|
2651
2651
|
},
|
|
2652
2652
|
set(G) {
|
|
2653
|
-
|
|
2653
|
+
a("update:selected", G);
|
|
2654
2654
|
}
|
|
2655
2655
|
}), v = J(null), k = J("desc"), B = V(() => v.value ? [...o.value].sort((R, M) => {
|
|
2656
2656
|
const T = R[v.value], P = M[v.value];
|
|
@@ -2673,11 +2673,11 @@ const Ft = {
|
|
|
2673
2673
|
const W = J(!0), j = J(!1);
|
|
2674
2674
|
let E = null;
|
|
2675
2675
|
me(
|
|
2676
|
-
() =>
|
|
2676
|
+
() => l.isLoading,
|
|
2677
2677
|
(G) => {
|
|
2678
2678
|
G ? (j.value = !1, E && clearTimeout(E), E = setTimeout(() => {
|
|
2679
|
-
|
|
2680
|
-
}, 3e3)) : (j.value = !1, E && (clearTimeout(E), E = null));
|
|
2679
|
+
l.isLoading && (j.value = !0);
|
|
2680
|
+
}, 3e3)) : (j.value = !1, E && (clearTimeout(E), E = null), oe());
|
|
2681
2681
|
}
|
|
2682
2682
|
);
|
|
2683
2683
|
const Q = (G, R) => {
|
|
@@ -2710,7 +2710,7 @@ const Ft = {
|
|
|
2710
2710
|
const R = I.value, M = R ? R.scrollLeft : 0, P = G.pageX + M - N, _ = Math.max(125, q + P);
|
|
2711
2711
|
b.style.width = _ + "px", b.style.minWidth = _ + "px";
|
|
2712
2712
|
}
|
|
2713
|
-
},
|
|
2713
|
+
}, ce = () => {
|
|
2714
2714
|
K && (S = !0, setTimeout(() => {
|
|
2715
2715
|
S = !1;
|
|
2716
2716
|
}, 0)), K = !1, b = void 0, Z = void 0, N = void 0, q = void 0;
|
|
@@ -2743,27 +2743,29 @@ const Ft = {
|
|
|
2743
2743
|
}
|
|
2744
2744
|
}, Ae = () => {
|
|
2745
2745
|
O.value.scrollLeft > 0 ? W.value = !0 : W.value = !1;
|
|
2746
|
-
},
|
|
2746
|
+
}, oe = async () => {
|
|
2747
2747
|
await qe(), I.value && (ve(I.value), ye(I.value));
|
|
2748
2748
|
};
|
|
2749
2749
|
Se(async () => {
|
|
2750
2750
|
await qe(), setTimeout(() => {
|
|
2751
2751
|
I.value && (ye(I.value), O.value.addEventListener("scroll", Ae), Ae());
|
|
2752
|
-
}, 100), document.addEventListener("mousemove", ne), document.addEventListener("mouseup",
|
|
2752
|
+
}, 100), document.addEventListener("mousemove", ne), document.addEventListener("mouseup", ce);
|
|
2753
2753
|
}), It(() => {
|
|
2754
|
-
document.removeEventListener("mousemove", ne), document.removeEventListener("mouseup",
|
|
2754
|
+
document.removeEventListener("mousemove", ne), document.removeEventListener("mouseup", ce);
|
|
2755
2755
|
}), me(
|
|
2756
|
-
() => [d.value, o.value, a.isLoading],
|
|
2757
2756
|
() => {
|
|
2758
|
-
|
|
2757
|
+
var G, R;
|
|
2758
|
+
return [(G = d.value) == null ? void 0 : G.length, (R = o.value) == null ? void 0 : R.length];
|
|
2759
2759
|
},
|
|
2760
|
-
|
|
2760
|
+
() => {
|
|
2761
|
+
oe();
|
|
2762
|
+
}
|
|
2761
2763
|
);
|
|
2762
2764
|
const we = (G, R, M = !1) => {
|
|
2763
2765
|
const T = [];
|
|
2764
2766
|
if (d.value.findIndex((_) => _.key === R) === 0) {
|
|
2765
2767
|
let _ = "left-0";
|
|
2766
|
-
m.value && c.value ? _ = "left-[62px]" : (m.value || c.value) && (_ = "left-[31px]"), T.push(`!sticky ${_} ${
|
|
2768
|
+
m.value && c.value ? _ = "left-[62px]" : (m.value || c.value) && (_ = "left-[31px]"), T.push(`!sticky ${_} ${l.isLoading ? "z-[0]" : M ? "z-30" : "z-20"}`);
|
|
2767
2769
|
}
|
|
2768
2770
|
return T.join(" ");
|
|
2769
2771
|
}, ue = (G) => {
|
|
@@ -2774,7 +2776,7 @@ const Ft = {
|
|
|
2774
2776
|
const G = g.value.length === o.value.length;
|
|
2775
2777
|
g.value = G ? [] : [...o.value];
|
|
2776
2778
|
}, Ie = (G, R) => {
|
|
2777
|
-
!R.disableClickRow && R.key !== "actions" &&
|
|
2779
|
+
!R.disableClickRow && R.key !== "actions" && a("click:row", {
|
|
2778
2780
|
field: G,
|
|
2779
2781
|
header: R
|
|
2780
2782
|
});
|
|
@@ -2836,7 +2838,7 @@ const Ft = {
|
|
|
2836
2838
|
n("tr", null, [
|
|
2837
2839
|
n("td", null, [
|
|
2838
2840
|
n("div", {
|
|
2839
|
-
style:
|
|
2841
|
+
style: re({ width: ((M = O.value) == null ? void 0 : M.offsetWidth) + "px" }),
|
|
2840
2842
|
class: "flex flex-col justify-center items-center py-10 gap-y-4 bg-white relative z-100"
|
|
2841
2843
|
}, [
|
|
2842
2844
|
R[2] || (R[2] = n("img", {
|
|
@@ -2864,7 +2866,7 @@ const Ft = {
|
|
|
2864
2866
|
"select-row": ue,
|
|
2865
2867
|
"get-row-key": f.value,
|
|
2866
2868
|
"get-sticky-classes": we,
|
|
2867
|
-
onToggleChildren:
|
|
2869
|
+
onToggleChildren: oe,
|
|
2868
2870
|
"onClick:col": Ie
|
|
2869
2871
|
}, le({ _: 2 }, [
|
|
2870
2872
|
H(Object.keys(G.$slots), (_) => ({
|
|
@@ -2927,11 +2929,11 @@ const Ft = {
|
|
|
2927
2929
|
"update:isExpandable": []
|
|
2928
2930
|
},
|
|
2929
2931
|
setup(e) {
|
|
2930
|
-
const r = J(),
|
|
2932
|
+
const r = J(), l = e, a = async (o) => {
|
|
2931
2933
|
await qe(), r.value && (r.value.style.maxHeight = o ? "max-content" : "0");
|
|
2932
2934
|
};
|
|
2933
|
-
return me(() =>
|
|
2934
|
-
l
|
|
2935
|
+
return me(() => l.isExpandable, a), Gt(() => {
|
|
2936
|
+
a(l.isExpandable);
|
|
2935
2937
|
}), (o, d) => (t(), i("div", {
|
|
2936
2938
|
class: p(e.isDisabled && "opacity-60")
|
|
2937
2939
|
}, [
|
|
@@ -2941,7 +2943,7 @@ const Ft = {
|
|
|
2941
2943
|
e.isExpandable ? "rounded-t border-oc-gray-200" : "rounded border-transparent",
|
|
2942
2944
|
e.headerStyle
|
|
2943
2945
|
]]),
|
|
2944
|
-
onClick: d[0] || (d[0] = (c) =>
|
|
2946
|
+
onClick: d[0] || (d[0] = (c) => l.isDisabled ? null : o.$emit("update:isExpandable", !l.isExpandable))
|
|
2945
2947
|
}, [
|
|
2946
2948
|
w(o.$slots, "header", {}, () => [
|
|
2947
2949
|
X(x(e.header), 1)
|
|
@@ -2980,7 +2982,7 @@ const Ft = {
|
|
|
2980
2982
|
}
|
|
2981
2983
|
},
|
|
2982
2984
|
setup(e) {
|
|
2983
|
-
const r = e,
|
|
2985
|
+
const r = e, l = V(() => !["completed", "error", "pending"].includes(r.variant)), a = {
|
|
2984
2986
|
completed: "check-2",
|
|
2985
2987
|
pending: "time",
|
|
2986
2988
|
error: "filled-x-circle"
|
|
@@ -2999,11 +3001,11 @@ const Ft = {
|
|
|
2999
3001
|
return (c, m) => (t(), i("div", {
|
|
3000
3002
|
class: p(["rounded-full w-7 h-7 flex items-center justify-center", o[e.variant]])
|
|
3001
3003
|
}, [
|
|
3002
|
-
|
|
3004
|
+
l.value ? w(c.$slots, "default", { key: 0 }) : (t(), A(s(L), {
|
|
3003
3005
|
key: 1,
|
|
3004
3006
|
width: d[e.variant],
|
|
3005
3007
|
height: d[e.variant],
|
|
3006
|
-
name:
|
|
3008
|
+
name: a[e.variant]
|
|
3007
3009
|
}, null, 8, ["width", "height", "name"]))
|
|
3008
3010
|
], 2));
|
|
3009
3011
|
}
|
|
@@ -3031,12 +3033,12 @@ const Ft = {
|
|
|
3031
3033
|
}
|
|
3032
3034
|
},
|
|
3033
3035
|
setup(e) {
|
|
3034
|
-
const r = J(),
|
|
3035
|
-
r.value && (r.value.style.height =
|
|
3036
|
+
const r = J(), l = J(!1), a = () => {
|
|
3037
|
+
r.value && (r.value.style.height = l.value ? `${r.value.scrollHeight}px` : "0px");
|
|
3036
3038
|
}, o = () => {
|
|
3037
|
-
|
|
3039
|
+
l.value = !l.value, a();
|
|
3038
3040
|
};
|
|
3039
|
-
return me(() => r.value,
|
|
3041
|
+
return me(() => r.value, a), (d, c) => (t(), i("div", {
|
|
3040
3042
|
class: p(["hover:bg-oc-gray-50 border overflow-hidden", e.isBorder ? "border-oc-gray-200 rounded" : "border-transparent"])
|
|
3041
3043
|
}, [
|
|
3042
3044
|
n("div", {
|
|
@@ -3053,7 +3055,7 @@ const Ft = {
|
|
|
3053
3055
|
w(d.$slots, "button-group"),
|
|
3054
3056
|
h(s(L), {
|
|
3055
3057
|
name: "chevron-down",
|
|
3056
|
-
class: p(["text-oc-text-400 transition duration-300",
|
|
3058
|
+
class: p(["text-oc-text-400 transition duration-300", l.value ? "rotate-180" : ""])
|
|
3057
3059
|
}, null, 8, ["class"])
|
|
3058
3060
|
]),
|
|
3059
3061
|
n("div", {
|
|
@@ -3093,17 +3095,17 @@ const Ft = {
|
|
|
3093
3095
|
"update:modelValue": []
|
|
3094
3096
|
},
|
|
3095
3097
|
setup(e, { emit: r }) {
|
|
3096
|
-
const
|
|
3098
|
+
const l = e, a = J(0), o = J(0), d = J(), c = r, m = V(() => l.tabs.findIndex((K) => K.value === l.modelValue)), f = V(() => l.variant === "pills"), g = V(() => l.direction === "vertical"), v = () => {
|
|
3097
3099
|
g.value ? o.value = Math.round(d.value.clientHeight / gt) : o.value = Math.round(d.value.clientWidth / vt);
|
|
3098
3100
|
}, k = (K) => {
|
|
3099
3101
|
var I;
|
|
3100
|
-
const S = K === "left" ? --m.value : ++m.value, y = (I =
|
|
3102
|
+
const S = K === "left" ? --m.value : ++m.value, y = (I = l.tabs[S]) == null ? void 0 : I.value;
|
|
3101
3103
|
y !== void 0 && c("update:modelValue", y);
|
|
3102
3104
|
}, B = () => {
|
|
3103
|
-
const K =
|
|
3105
|
+
const K = l.tabs.findIndex((S) => S.value === l.modelValue);
|
|
3104
3106
|
K > -1 && qe(() => {
|
|
3105
3107
|
var y;
|
|
3106
|
-
v(),
|
|
3108
|
+
v(), a.value = K;
|
|
3107
3109
|
const S = {};
|
|
3108
3110
|
g.value ? S.top = K * gt : S.left = K * vt, (y = d.value) == null || y.scroll({
|
|
3109
3111
|
...S,
|
|
@@ -3111,12 +3113,12 @@ const Ft = {
|
|
|
3111
3113
|
});
|
|
3112
3114
|
});
|
|
3113
3115
|
}, z = (K) => {
|
|
3114
|
-
|
|
3116
|
+
l.isDisabled || c("update:modelValue", K);
|
|
3115
3117
|
};
|
|
3116
3118
|
return Se(() => {
|
|
3117
|
-
v(),
|
|
3119
|
+
v(), l.isArrows && B();
|
|
3118
3120
|
}), me(
|
|
3119
|
-
() =>
|
|
3121
|
+
() => l.tabs,
|
|
3120
3122
|
() => {
|
|
3121
3123
|
v();
|
|
3122
3124
|
},
|
|
@@ -3124,7 +3126,7 @@ const Ft = {
|
|
|
3124
3126
|
deep: !0
|
|
3125
3127
|
}
|
|
3126
3128
|
), me(
|
|
3127
|
-
() =>
|
|
3129
|
+
() => l.modelValue,
|
|
3128
3130
|
() => {
|
|
3129
3131
|
B();
|
|
3130
3132
|
}
|
|
@@ -3141,7 +3143,7 @@ const Ft = {
|
|
|
3141
3143
|
"w-full": e.isFullWidth
|
|
3142
3144
|
}])
|
|
3143
3145
|
}, [
|
|
3144
|
-
|
|
3146
|
+
a.value > 0 && e.isArrows ? (t(), i("div", {
|
|
3145
3147
|
key: 0,
|
|
3146
3148
|
class: p(["sticky top-0 bottom-0 left-0 z-[1] flex items-center bg-white", { "pb-4": !f.value, "justify-center": g.value }])
|
|
3147
3149
|
}, [
|
|
@@ -3188,7 +3190,7 @@ const Ft = {
|
|
|
3188
3190
|
], 10, oi);
|
|
3189
3191
|
}), 128))
|
|
3190
3192
|
], 2),
|
|
3191
|
-
o.value +
|
|
3193
|
+
o.value + a.value < e.tabs.length && e.isArrows ? (t(), i("div", {
|
|
3192
3194
|
key: 1,
|
|
3193
3195
|
class: p(["sticky top-0 bottom-0 right-0 flex items-center bg-white", {
|
|
3194
3196
|
"pb-4": !f.value,
|
|
@@ -3219,9 +3221,9 @@ const Ft = {
|
|
|
3219
3221
|
},
|
|
3220
3222
|
emits: ["update:modelValue"],
|
|
3221
3223
|
setup(e) {
|
|
3222
|
-
return (r,
|
|
3224
|
+
return (r, l) => (t(), i("div", {
|
|
3223
3225
|
class: p(["flex items-center rounded-sm cursor-pointer text-sm p-3 gap-x-3 border h-[40px] border-oc-gray-200", { "border-oc-primary border-2 font-medium": e.modelValue === e.tab.value }]),
|
|
3224
|
-
onClick:
|
|
3226
|
+
onClick: l[0] || (l[0] = (a) => r.$emit("update:modelValue", e.tab.value))
|
|
3225
3227
|
}, [
|
|
3226
3228
|
w(r.$slots, "logo", {}, () => [
|
|
3227
3229
|
e.tab.logo ? (t(), i("img", {
|
|
@@ -3254,7 +3256,7 @@ const Ft = {
|
|
|
3254
3256
|
}
|
|
3255
3257
|
},
|
|
3256
3258
|
setup(e) {
|
|
3257
|
-
return (r,
|
|
3259
|
+
return (r, l) => (t(), i("div", {
|
|
3258
3260
|
class: p(["flex flex-col gap-y-3 text-sm cursor-pointer", e.isCurrent || e.isCompleted ? "text-oc-text-500" : "text-oc-text-300"])
|
|
3259
3261
|
}, [
|
|
3260
3262
|
n("div", {
|
|
@@ -3289,11 +3291,11 @@ const Ft = {
|
|
|
3289
3291
|
},
|
|
3290
3292
|
emits: ["update:model-value"],
|
|
3291
3293
|
setup(e) {
|
|
3292
|
-
return (r,
|
|
3294
|
+
return (r, l) => (t(), i("div", mi, [
|
|
3293
3295
|
w(r.$slots, "default", {}, () => [
|
|
3294
|
-
(t(!0), i(Y, null, H(e.steps, (
|
|
3296
|
+
(t(!0), i(Y, null, H(e.steps, (a, o) => (t(), A(ui, {
|
|
3295
3297
|
key: o,
|
|
3296
|
-
title:
|
|
3298
|
+
title: a.title,
|
|
3297
3299
|
value: o + 1,
|
|
3298
3300
|
"is-current": o === e.modelValue,
|
|
3299
3301
|
"is-completed": o < e.modelValue,
|
|
@@ -3317,12 +3319,12 @@ const Ft = {
|
|
|
3317
3319
|
},
|
|
3318
3320
|
emits: ["update:modelValue"],
|
|
3319
3321
|
setup(e) {
|
|
3320
|
-
return (r,
|
|
3321
|
-
(t(!0), i(Y, null, H(e.variants, (
|
|
3322
|
-
key:
|
|
3323
|
-
"is-active":
|
|
3324
|
-
}, { ref_for: !0 },
|
|
3325
|
-
onClick: (o) => r.$emit("update:modelValue",
|
|
3322
|
+
return (r, l) => (t(), i("div", fi, [
|
|
3323
|
+
(t(!0), i(Y, null, H(e.variants, (a) => (t(), A(s(vi), D({
|
|
3324
|
+
key: a.value,
|
|
3325
|
+
"is-active": a.value === e.modelValue
|
|
3326
|
+
}, { ref_for: !0 }, a, {
|
|
3327
|
+
onClick: (o) => r.$emit("update:modelValue", a.isDisabled ? e.modelValue : a.value)
|
|
3326
3328
|
}), le({ _: 2 }, [
|
|
3327
3329
|
H(r.$slots, (o, d) => ({
|
|
3328
3330
|
name: d,
|
|
@@ -3362,7 +3364,7 @@ const Ft = {
|
|
|
3362
3364
|
}
|
|
3363
3365
|
},
|
|
3364
3366
|
setup(e) {
|
|
3365
|
-
return (r,
|
|
3367
|
+
return (r, l) => (t(), i("div", {
|
|
3366
3368
|
class: p([
|
|
3367
3369
|
"md:w-fit w-full py-3 px-4 border flex flex-col gap-y-2 rounded",
|
|
3368
3370
|
e.isDisabled ? "bg-oc-gray-50 border-oc-gray-200" : e.isActive ? "border-oc-primary bg-oc-bg-light cursor-pointer" : "border-oc-gray-200 bg-oc-bg-light cursor-pointer"
|
|
@@ -3412,19 +3414,19 @@ const If = /* @__PURE__ */ be(ki, [["render", Ci]]), Si = { class: "flex items-c
|
|
|
3412
3414
|
},
|
|
3413
3415
|
emits: ["back"],
|
|
3414
3416
|
setup(e) {
|
|
3415
|
-
return (r,
|
|
3417
|
+
return (r, l) => (t(), i("div", Si, [
|
|
3416
3418
|
w(r.$slots, "default", {}, () => [
|
|
3417
3419
|
w(r.$slots, "before"),
|
|
3418
3420
|
e.isSaved ? (t(), i("span", {
|
|
3419
3421
|
key: 0,
|
|
3420
3422
|
class: "text-oc-text-100 flex items-center cursor-pointer",
|
|
3421
|
-
onClick:
|
|
3423
|
+
onClick: l[0] || (l[0] = (a) => r.$emit("back"))
|
|
3422
3424
|
}, [
|
|
3423
3425
|
h(s(L), {
|
|
3424
3426
|
name: "chevron-down",
|
|
3425
3427
|
class: "rotate-90"
|
|
3426
3428
|
}),
|
|
3427
|
-
|
|
3429
|
+
l[1] || (l[1] = X(" Back "))
|
|
3428
3430
|
])) : (t(), i("span", Ii, " Unsaved changes ")),
|
|
3429
3431
|
w(r.$slots, "after")
|
|
3430
3432
|
])
|
|
@@ -3446,9 +3448,9 @@ const If = /* @__PURE__ */ be(ki, [["render", Ci]]), Si = { class: "flex items-c
|
|
|
3446
3448
|
},
|
|
3447
3449
|
emits: ["save", "cancel", "addition-click", "dropdown-action"],
|
|
3448
3450
|
setup(e, { emit: r }) {
|
|
3449
|
-
return (
|
|
3450
|
-
w(
|
|
3451
|
-
w(
|
|
3451
|
+
return (l, a) => (t(), i("div", Zi, [
|
|
3452
|
+
w(l.$slots, "default", {}, () => [
|
|
3453
|
+
w(l.$slots, "before"),
|
|
3452
3454
|
n("div", Oi, [
|
|
3453
3455
|
e.isSecondaryButtonVisible ? (t(), A(s(F), D({
|
|
3454
3456
|
key: 0,
|
|
@@ -3456,18 +3458,18 @@ const If = /* @__PURE__ */ be(ki, [["render", Ci]]), Si = { class: "flex items-c
|
|
|
3456
3458
|
variant: "secondary",
|
|
3457
3459
|
label: "Cancel"
|
|
3458
3460
|
}, e.secondaryProps, {
|
|
3459
|
-
onClick:
|
|
3461
|
+
onClick: a[0] || (a[0] = (o) => l.$emit("cancel"))
|
|
3460
3462
|
}), null, 16)) : u("", !0),
|
|
3461
|
-
w(
|
|
3463
|
+
w(l.$slots, "primary-button", {}, () => [
|
|
3462
3464
|
h(s(F), D({
|
|
3463
3465
|
class: "min-w-[100px]",
|
|
3464
3466
|
label: "Save"
|
|
3465
3467
|
}, e.primaryProps, {
|
|
3466
|
-
onClick:
|
|
3468
|
+
onClick: a[1] || (a[1] = (o) => l.$emit("save"))
|
|
3467
3469
|
}), null, 16)
|
|
3468
3470
|
])
|
|
3469
3471
|
]),
|
|
3470
|
-
w(
|
|
3472
|
+
w(l.$slots, "after")
|
|
3471
3473
|
])
|
|
3472
3474
|
]));
|
|
3473
3475
|
}
|
|
@@ -3482,9 +3484,9 @@ const If = /* @__PURE__ */ be(ki, [["render", Ci]]), Si = { class: "flex items-c
|
|
|
3482
3484
|
"update:modelValue": []
|
|
3483
3485
|
},
|
|
3484
3486
|
setup(e) {
|
|
3485
|
-
const r = e,
|
|
3487
|
+
const r = e, l = J(!1), a = V(() => r.menus.find((m) => m.value === r.modelValue)), o = J(), d = J([]), c = (m) => {
|
|
3486
3488
|
if (!o.value) return;
|
|
3487
|
-
const f = (m == null ? void 0 : m.target) || d.value[r.menus.indexOf(
|
|
3489
|
+
const f = (m == null ? void 0 : m.target) || d.value[r.menus.indexOf(a.value)];
|
|
3488
3490
|
o.value.style.width = `${f.offsetWidth}px`, o.value.style.left = `${f.offsetLeft}px`;
|
|
3489
3491
|
};
|
|
3490
3492
|
return me(
|
|
@@ -3519,12 +3521,12 @@ const If = /* @__PURE__ */ be(ki, [["render", Ci]]), Si = { class: "flex items-c
|
|
|
3519
3521
|
n("div", {
|
|
3520
3522
|
ref_key: "currentRef",
|
|
3521
3523
|
ref: o,
|
|
3522
|
-
class: p([
|
|
3524
|
+
class: p([a.value.sidebarClass, "absolute transition-all duration-300 h-9 rounded min-w-[100px] bg-[rgba(0,_0,_0,_0.05)]"])
|
|
3523
3525
|
}, null, 2)
|
|
3524
3526
|
]),
|
|
3525
3527
|
h(s(pe), {
|
|
3526
|
-
modelValue:
|
|
3527
|
-
"onUpdate:modelValue": f[0] || (f[0] = (g) =>
|
|
3528
|
+
modelValue: l.value,
|
|
3529
|
+
"onUpdate:modelValue": f[0] || (f[0] = (g) => l.value = g),
|
|
3528
3530
|
class: "flex md:hidden"
|
|
3529
3531
|
}, {
|
|
3530
3532
|
menu: C(() => [
|
|
@@ -3535,18 +3537,18 @@ const If = /* @__PURE__ */ be(ki, [["render", Ci]]), Si = { class: "flex items-c
|
|
|
3535
3537
|
g.value === e.modelValue ? "!text-oc-accent-1 font-medium bg-oc-accent-1-50-tr" : "!text-oc-text-400"
|
|
3536
3538
|
]]),
|
|
3537
3539
|
text: g.label,
|
|
3538
|
-
style:
|
|
3539
|
-
borderColor:
|
|
3540
|
+
style: re({
|
|
3541
|
+
borderColor: a.value.color
|
|
3540
3542
|
}),
|
|
3541
3543
|
onClick: () => {
|
|
3542
|
-
|
|
3544
|
+
l.value = !1, m.$emit("changePath", g.path), m.$emit("update:modelValue", g.value);
|
|
3543
3545
|
}
|
|
3544
3546
|
}, null, 8, ["text", "style", "class", "onClick"]))), 128))
|
|
3545
3547
|
])
|
|
3546
3548
|
]),
|
|
3547
3549
|
default: C(() => [
|
|
3548
3550
|
n("div", Li, [
|
|
3549
|
-
X(x(
|
|
3551
|
+
X(x(a.value.label) + " ", 1),
|
|
3550
3552
|
h(s(L), {
|
|
3551
3553
|
name: "chevron-down",
|
|
3552
3554
|
width: "20",
|
|
@@ -3579,7 +3581,7 @@ const If = /* @__PURE__ */ be(ki, [["render", Ci]]), Si = { class: "flex items-c
|
|
|
3579
3581
|
isLoading: { type: Boolean, default: !1 }
|
|
3580
3582
|
},
|
|
3581
3583
|
setup(e) {
|
|
3582
|
-
return (r,
|
|
3584
|
+
return (r, l) => (t(), i("div", Bi, [
|
|
3583
3585
|
n("div", Ji, [
|
|
3584
3586
|
w(r.$slots, "title", {}, () => [
|
|
3585
3587
|
e.isLoading ? (t(), A(s(ie), {
|
|
@@ -3587,7 +3589,7 @@ const If = /* @__PURE__ */ be(ki, [["render", Ci]]), Si = { class: "flex items-c
|
|
|
3587
3589
|
class: "w-1/2 h-[20px] rounded"
|
|
3588
3590
|
})) : (t(), i("span", Ni, x(e.title), 1))
|
|
3589
3591
|
]),
|
|
3590
|
-
e.chipProps ? (t(), A(s(
|
|
3592
|
+
e.chipProps ? (t(), A(s(de), he(D({ key: 0 }, e.chipProps)), null, 16)) : u("", !0)
|
|
3591
3593
|
]),
|
|
3592
3594
|
e.description || r.$slots.description ? (t(), i("div", Wi, [
|
|
3593
3595
|
w(r.$slots, "description", {}, () => [
|
|
@@ -3601,11 +3603,11 @@ const If = /* @__PURE__ */ be(ki, [["render", Ci]]), Si = { class: "flex items-c
|
|
|
3601
3603
|
value: e.copyValue,
|
|
3602
3604
|
"tooltip-options": e.tooltipOptions
|
|
3603
3605
|
}, {
|
|
3604
|
-
default: C(({ isShow:
|
|
3606
|
+
default: C(({ isShow: a }) => [
|
|
3605
3607
|
h(s(L), {
|
|
3606
3608
|
width: "16",
|
|
3607
3609
|
height: "16",
|
|
3608
|
-
class: p(["cursor-pointer transition-all duration-500 group-hover:opacity-100",
|
|
3610
|
+
class: p(["cursor-pointer transition-all duration-500 group-hover:opacity-100", a ? "opacity-100" : "opacity-0"]),
|
|
3609
3611
|
name: "copy"
|
|
3610
3612
|
}, null, 8, ["class"])
|
|
3611
3613
|
]),
|
|
@@ -3628,7 +3630,7 @@ const If = /* @__PURE__ */ be(ki, [["render", Ci]]), Si = { class: "flex items-c
|
|
|
3628
3630
|
},
|
|
3629
3631
|
setup(e) {
|
|
3630
3632
|
const r = J(!1);
|
|
3631
|
-
return (
|
|
3633
|
+
return (l, a) => (t(), i("div", Vi, [
|
|
3632
3634
|
n("div", Yi, [
|
|
3633
3635
|
n("span", Mi, x(e.title), 1),
|
|
3634
3636
|
e.primaryButtonProps || e.secondaryButtonProps ? (t(), A(s(F), D({
|
|
@@ -3638,8 +3640,8 @@ const If = /* @__PURE__ */ be(ki, [["render", Ci]]), Si = { class: "flex items-c
|
|
|
3638
3640
|
"additional-content": C(() => [
|
|
3639
3641
|
h(s(pe), {
|
|
3640
3642
|
modelValue: r.value,
|
|
3641
|
-
"onUpdate:modelValue":
|
|
3642
|
-
onClick:
|
|
3643
|
+
"onUpdate:modelValue": a[0] || (a[0] = (o) => r.value = o),
|
|
3644
|
+
onClick: a[1] || (a[1] = fe(() => {
|
|
3643
3645
|
}, ["stop"]))
|
|
3644
3646
|
}, {
|
|
3645
3647
|
menu: C(() => {
|
|
@@ -3687,8 +3689,8 @@ const If = /* @__PURE__ */ be(ki, [["render", Ci]]), Si = { class: "flex items-c
|
|
|
3687
3689
|
_: 1
|
|
3688
3690
|
}, 8, ["value"])
|
|
3689
3691
|
])) : u("", !0),
|
|
3690
|
-
w(
|
|
3691
|
-
e.chipProps ? (t(), A(s(
|
|
3692
|
+
w(l.$slots, "mobile-amount"),
|
|
3693
|
+
e.chipProps ? (t(), A(s(de), D({ key: 1 }, e.chipProps, { class: "self-start" }), null, 16)) : u("", !0)
|
|
3692
3694
|
]));
|
|
3693
3695
|
}
|
|
3694
3696
|
}, Ei = { class: "pb-4 flex flex-col" }, Di = { class: "flex flex-col gap-y-3 pt-4 px-5 md:px-7" }, zf = {
|
|
@@ -3712,7 +3714,7 @@ const If = /* @__PURE__ */ be(ki, [["render", Ci]]), Si = { class: "flex items-c
|
|
|
3712
3714
|
back: []
|
|
3713
3715
|
},
|
|
3714
3716
|
setup(e) {
|
|
3715
|
-
return (r,
|
|
3717
|
+
return (r, l) => (t(), i("div", Ei, [
|
|
3716
3718
|
n("div", Di, [
|
|
3717
3719
|
e.isBack ? (t(), A(s(F), {
|
|
3718
3720
|
key: 0,
|
|
@@ -3723,7 +3725,7 @@ const If = /* @__PURE__ */ be(ki, [["render", Ci]]), Si = { class: "flex items-c
|
|
|
3723
3725
|
label: "Back",
|
|
3724
3726
|
"left-icon": "chevron-down",
|
|
3725
3727
|
class: "self-start",
|
|
3726
|
-
onClick:
|
|
3728
|
+
onClick: l[0] || (l[0] = (a) => r.$emit("back"))
|
|
3727
3729
|
})) : u("", !0),
|
|
3728
3730
|
n("div", {
|
|
3729
3731
|
class: p(["w-full gap-5 min-h-[36px]", [e.isMobileCombineButtons ? "hidden md:flex" : "flex", e.titleClass]])
|
|
@@ -3796,20 +3798,20 @@ const If = /* @__PURE__ */ be(ki, [["render", Ci]]), Si = { class: "flex items-c
|
|
|
3796
3798
|
},
|
|
3797
3799
|
setup(e, { emit: r }) {
|
|
3798
3800
|
var v;
|
|
3799
|
-
const
|
|
3801
|
+
const l = e, a = r, o = J(!1), d = V(() => {
|
|
3800
3802
|
var k;
|
|
3801
|
-
return (k =
|
|
3803
|
+
return (k = l.primaryActions) == null ? void 0 : k.dropdownOptions;
|
|
3802
3804
|
}), c = J(((v = d.value) == null ? void 0 : v.isDropdownOpened) ?? !1), m = () => {
|
|
3803
|
-
o.value = !0,
|
|
3805
|
+
o.value = !0, a("copy"), setTimeout(() => o.value = !1, 1500);
|
|
3804
3806
|
}, f = V(
|
|
3805
3807
|
() => {
|
|
3806
3808
|
var k;
|
|
3807
|
-
return ((k =
|
|
3809
|
+
return ((k = l.primaryActions) == null ? void 0 : k.copyTooltipContent) ?? "Copy link";
|
|
3808
3810
|
}
|
|
3809
3811
|
), g = V(
|
|
3810
3812
|
() => {
|
|
3811
3813
|
var k;
|
|
3812
|
-
return ((k =
|
|
3814
|
+
return ((k = l.primaryActions) == null ? void 0 : k.copiedTooltipContent) ?? "Link copied!";
|
|
3813
3815
|
}
|
|
3814
3816
|
);
|
|
3815
3817
|
return (k, B) => {
|
|
@@ -3817,7 +3819,7 @@ const If = /* @__PURE__ */ be(ki, [["render", Ci]]), Si = { class: "flex items-c
|
|
|
3817
3819
|
return t(), i("div", {
|
|
3818
3820
|
class: p(["p-1 gap-x-1 rounded-sm border text-oc-text-400 flex hover:bg-oc-bg group hover:border-oc-accent-1-100", c.value ? "bg-oc-bg border-oc-accent-1-100" : "border-transparent"])
|
|
3819
3821
|
}, [
|
|
3820
|
-
(z = e.primaryActions) != null && z.mainLinkAction ? (t(), A(s(
|
|
3822
|
+
(z = e.primaryActions) != null && z.mainLinkAction ? (t(), A(s(se), {
|
|
3821
3823
|
key: 0,
|
|
3822
3824
|
position: "top",
|
|
3823
3825
|
"arrow-hidden": "",
|
|
@@ -3849,7 +3851,7 @@ const If = /* @__PURE__ */ be(ki, [["render", Ci]]), Si = { class: "flex items-c
|
|
|
3849
3851
|
var y;
|
|
3850
3852
|
return t(), i(Y, { key: S }, [
|
|
3851
3853
|
(y = e.primaryActions) != null && y.mainLinkAction || S > 0 ? (t(), i("div", Qi)) : u("", !0),
|
|
3852
|
-
h(s(
|
|
3854
|
+
h(s(se), {
|
|
3853
3855
|
position: "top",
|
|
3854
3856
|
"arrow-hidden": "",
|
|
3855
3857
|
distance: 7
|
|
@@ -3906,7 +3908,7 @@ const If = /* @__PURE__ */ be(ki, [["render", Ci]]), Si = { class: "flex items-c
|
|
|
3906
3908
|
]),
|
|
3907
3909
|
(S = e.primaryActions.dropdownOptions) != null && S.bottom ? (t(), i("div", $i, [
|
|
3908
3910
|
(t(!0), i(Y, null, H((y = e.primaryActions.dropdownOptions) == null ? void 0 : y.bottom, (I, O) => (t(), i("div", { key: O }, [
|
|
3909
|
-
I != null && I.tooltipText ? (t(), A(s(
|
|
3911
|
+
I != null && I.tooltipText ? (t(), A(s(se), {
|
|
3910
3912
|
key: 0,
|
|
3911
3913
|
position: "bottom",
|
|
3912
3914
|
distance: 14,
|
|
@@ -3933,7 +3935,7 @@ const If = /* @__PURE__ */ be(ki, [["render", Ci]]), Si = { class: "flex items-c
|
|
|
3933
3935
|
];
|
|
3934
3936
|
}),
|
|
3935
3937
|
default: C(() => [
|
|
3936
|
-
h(s(
|
|
3938
|
+
h(s(se), {
|
|
3937
3939
|
position: "top",
|
|
3938
3940
|
"arrow-hidden": "",
|
|
3939
3941
|
distance: 7
|
|
@@ -3973,15 +3975,15 @@ const If = /* @__PURE__ */ be(ki, [["render", Ci]]), Si = { class: "flex items-c
|
|
|
3973
3975
|
},
|
|
3974
3976
|
setup(e) {
|
|
3975
3977
|
var o;
|
|
3976
|
-
const
|
|
3978
|
+
const l = J(((o = e.secondaryButtonProps) == null ? void 0 : o.isDropdownOpened) ?? !1), { isMobile: a } = Dt();
|
|
3977
3979
|
return (d, c) => e.isLoading ? (t(), i("div", no, [
|
|
3978
3980
|
h(s(ie), { class: "w-[100px] h-[36px] rounded" }),
|
|
3979
3981
|
h(s(ie), { class: "w-[100px] h-[36px] rounded" })
|
|
3980
3982
|
])) : (t(), i("div", to, [
|
|
3981
3983
|
e.secondaryButtonProps ? (t(), A(s(pe), {
|
|
3982
3984
|
key: 0,
|
|
3983
|
-
modelValue:
|
|
3984
|
-
"onUpdate:modelValue": c[0] || (c[0] = (m) =>
|
|
3985
|
+
modelValue: l.value,
|
|
3986
|
+
"onUpdate:modelValue": c[0] || (c[0] = (m) => l.value = m),
|
|
3985
3987
|
distance: 10
|
|
3986
3988
|
}, {
|
|
3987
3989
|
menu: C(() => {
|
|
@@ -3994,12 +3996,12 @@ const If = /* @__PURE__ */ be(ki, [["render", Ci]]), Si = { class: "flex items-c
|
|
|
3994
3996
|
}),
|
|
3995
3997
|
default: C(() => [
|
|
3996
3998
|
h(s(F), D({
|
|
3997
|
-
size: s(
|
|
3999
|
+
size: s(a) ? "small" : "default"
|
|
3998
4000
|
}, e.secondaryButtonProps), null, 16, ["size"])
|
|
3999
4001
|
]),
|
|
4000
4002
|
_: 1
|
|
4001
4003
|
}, 8, ["modelValue"])) : u("", !0),
|
|
4002
|
-
e.primaryButtonProps && e.primaryButtonProps.tooltip ? (t(), A(s(
|
|
4004
|
+
e.primaryButtonProps && e.primaryButtonProps.tooltip ? (t(), A(s(se), {
|
|
4003
4005
|
key: 1,
|
|
4004
4006
|
position: "top",
|
|
4005
4007
|
distance: 4,
|
|
@@ -4010,13 +4012,13 @@ const If = /* @__PURE__ */ be(ki, [["render", Ci]]), Si = { class: "flex items-c
|
|
|
4010
4012
|
]),
|
|
4011
4013
|
default: C(() => [
|
|
4012
4014
|
h(s(F), D({
|
|
4013
|
-
size: s(
|
|
4015
|
+
size: s(a) ? "small" : "default"
|
|
4014
4016
|
}, e.primaryButtonProps), null, 16, ["size"])
|
|
4015
4017
|
]),
|
|
4016
4018
|
_: 1
|
|
4017
4019
|
})) : e.primaryButtonProps ? (t(), A(s(F), D({
|
|
4018
4020
|
key: 2,
|
|
4019
|
-
size: s(
|
|
4021
|
+
size: s(a) ? "small" : "default"
|
|
4020
4022
|
}, e.primaryButtonProps), null, 16, ["size"])) : u("", !0)
|
|
4021
4023
|
]));
|
|
4022
4024
|
}
|
|
@@ -4049,17 +4051,17 @@ const If = /* @__PURE__ */ be(ki, [["render", Ci]]), Si = { class: "flex items-c
|
|
|
4049
4051
|
"support-click"
|
|
4050
4052
|
],
|
|
4051
4053
|
setup(e, { emit: r }) {
|
|
4052
|
-
const
|
|
4054
|
+
const l = r, a = e, o = Ht({
|
|
4053
4055
|
loading: !0,
|
|
4054
4056
|
expanded: []
|
|
4055
4057
|
}), d = (f) => {
|
|
4056
|
-
o.expanded.includes(f) ? o.expanded = o.expanded.filter((g) => g !== f) : o.expanded.push(f),
|
|
4058
|
+
o.expanded.includes(f) ? o.expanded = o.expanded.filter((g) => g !== f) : o.expanded.push(f), l("changeExpandedMenus", o.expanded);
|
|
4057
4059
|
}, c = (f) => {
|
|
4058
4060
|
var g;
|
|
4059
|
-
(g = f.children) != null && g.length ? d(f.name) :
|
|
4060
|
-
}, m = V(() => (
|
|
4061
|
+
(g = f.children) != null && g.length ? d(f.name) : l("redirect", f);
|
|
4062
|
+
}, m = V(() => (a.isExpanded ? "w-[300px] " : "w-[76px] ") + a.class);
|
|
4061
4063
|
return Se(() => {
|
|
4062
|
-
|
|
4064
|
+
a.sidebarMenu.forEach((f) => {
|
|
4063
4065
|
f.items.forEach((g) => {
|
|
4064
4066
|
g.children && g.children.forEach((v) => {
|
|
4065
4067
|
v.active && d(g.name);
|
|
@@ -4146,13 +4148,13 @@ const If = /* @__PURE__ */ be(ki, [["render", Ci]]), Si = { class: "flex items-c
|
|
|
4146
4148
|
}
|
|
4147
4149
|
},
|
|
4148
4150
|
setup(e) {
|
|
4149
|
-
return (r,
|
|
4151
|
+
return (r, l) => (t(), i("div", {
|
|
4150
4152
|
class: p(["grid gap-3 transition-all duration-500 overflow-hidden", e.isExpanded ? "max-h-screen" : "max-h-0"])
|
|
4151
4153
|
}, [
|
|
4152
|
-
(t(!0), i(Y, null, H(e.menu.children, (
|
|
4154
|
+
(t(!0), i(Y, null, H(e.menu.children, (a, o) => (t(), i("div", {
|
|
4153
4155
|
key: o,
|
|
4154
4156
|
class: p(["text-oc-text-400 flex items-center rounded hover:bg-[var(--oc-sidebar-menu-hover)]", {
|
|
4155
|
-
"font-medium bg-[var(--oc-sidebar-menu-active)] text-[var(--oc-sidebar-menu-active-text)]":
|
|
4157
|
+
"font-medium bg-[var(--oc-sidebar-menu-active)] text-[var(--oc-sidebar-menu-active-text)]": a.active
|
|
4156
4158
|
}])
|
|
4157
4159
|
}, [
|
|
4158
4160
|
e.isExpandedSidebar ? (t(), A(s(L), {
|
|
@@ -4160,19 +4162,19 @@ const If = /* @__PURE__ */ be(ki, [["render", Ci]]), Si = { class: "flex items-c
|
|
|
4160
4162
|
width: "22",
|
|
4161
4163
|
height: "22",
|
|
4162
4164
|
class: p(["flex z-[1] ml-[17.5px]", {
|
|
4163
|
-
"text-[var(--oc-sidebar-menu-active-icon)]": !
|
|
4164
|
-
"text-[var(--oc-sidebar-menu-active-icon-active)]":
|
|
4165
|
+
"text-[var(--oc-sidebar-menu-active-icon)]": !a.active,
|
|
4166
|
+
"text-[var(--oc-sidebar-menu-active-icon-active)]": a.active
|
|
4165
4167
|
}]),
|
|
4166
4168
|
name: "sidebar-submenu-icon"
|
|
4167
4169
|
}, null, 8, ["class"])) : u("", !0),
|
|
4168
4170
|
w(r.$slots, "label", {
|
|
4169
4171
|
menu: e.menu,
|
|
4170
|
-
submenu:
|
|
4172
|
+
submenu: a
|
|
4171
4173
|
})
|
|
4172
4174
|
], 2))), 128))
|
|
4173
4175
|
], 2));
|
|
4174
4176
|
}
|
|
4175
|
-
}, co = { class: "flex gap-3 items-center" }, uo = { class: "px-3 py-2 text-oc-text-400 text-sm font-medium" },
|
|
4177
|
+
}, co = { class: "flex gap-3 items-center" }, uo = { class: "px-3 py-2 text-oc-text-400 text-sm font-medium" }, de = {
|
|
4176
4178
|
__name: "OcChip",
|
|
4177
4179
|
props: {
|
|
4178
4180
|
variant: {
|
|
@@ -4191,7 +4193,7 @@ const If = /* @__PURE__ */ be(ki, [["render", Ci]]), Si = { class: "flex items-c
|
|
|
4191
4193
|
remove: []
|
|
4192
4194
|
},
|
|
4193
4195
|
setup(e) {
|
|
4194
|
-
const r = e,
|
|
4196
|
+
const r = e, l = V(() => {
|
|
4195
4197
|
let o = "";
|
|
4196
4198
|
switch (r.variant) {
|
|
4197
4199
|
case "accent-1":
|
|
@@ -4226,7 +4228,7 @@ const If = /* @__PURE__ */ be(ki, [["render", Ci]]), Si = { class: "flex items-c
|
|
|
4226
4228
|
break;
|
|
4227
4229
|
}
|
|
4228
4230
|
return o;
|
|
4229
|
-
}),
|
|
4231
|
+
}), a = V(() => {
|
|
4230
4232
|
let o = "";
|
|
4231
4233
|
switch (r.variant) {
|
|
4232
4234
|
case "accent-1":
|
|
@@ -4263,11 +4265,11 @@ const If = /* @__PURE__ */ be(ki, [["render", Ci]]), Si = { class: "flex items-c
|
|
|
4263
4265
|
return o;
|
|
4264
4266
|
});
|
|
4265
4267
|
return (o, d) => (t(), i("span", {
|
|
4266
|
-
class: p(["rounded-full flex items-center gap-x-3 py-1 px-3 text-sm leading-[18px]",
|
|
4268
|
+
class: p(["rounded-full flex items-center gap-x-3 py-1 px-3 text-sm leading-[18px]", l.value])
|
|
4267
4269
|
}, [
|
|
4268
4270
|
w(o.$slots, "default", {}, () => [
|
|
4269
4271
|
n("div", co, [
|
|
4270
|
-
e.iconTooltip && e.icon ? (t(), A(s(
|
|
4272
|
+
e.iconTooltip && e.icon ? (t(), A(s(se), {
|
|
4271
4273
|
key: 0,
|
|
4272
4274
|
position: "top",
|
|
4273
4275
|
distance: 10
|
|
@@ -4300,7 +4302,7 @@ const If = /* @__PURE__ */ be(ki, [["render", Ci]]), Si = { class: "flex items-c
|
|
|
4300
4302
|
key: 0,
|
|
4301
4303
|
width: "18",
|
|
4302
4304
|
height: "18",
|
|
4303
|
-
class: p([
|
|
4305
|
+
class: p([a.value, "cursor-pointer"]),
|
|
4304
4306
|
name: "filled-x-circle",
|
|
4305
4307
|
onClick: d[0] || (d[0] = fe((c) => o.$emit("remove"), ["stop"]))
|
|
4306
4308
|
}, null, 8, ["class"])) : u("", !0)
|
|
@@ -4337,7 +4339,7 @@ const If = /* @__PURE__ */ be(ki, [["render", Ci]]), Si = { class: "flex items-c
|
|
|
4337
4339
|
payoutStatus: Object
|
|
4338
4340
|
},
|
|
4339
4341
|
setup(e) {
|
|
4340
|
-
return (r,
|
|
4342
|
+
return (r, l) => (t(), i("div", {
|
|
4341
4343
|
class: p(["p-1 flex items-center justify-center mb-5", [
|
|
4342
4344
|
e.isExpanded ? "rounded" : "w-fit rounded-full",
|
|
4343
4345
|
e.isPending ? "bg-oc-warning-500" : "account-setup-bg"
|
|
@@ -4354,34 +4356,34 @@ const If = /* @__PURE__ */ be(ki, [["render", Ci]]), Si = { class: "flex items-c
|
|
|
4354
4356
|
class: "text-oc-warning-500"
|
|
4355
4357
|
})
|
|
4356
4358
|
]),
|
|
4357
|
-
|
|
4359
|
+
l[0] || (l[0] = n("div", { class: "text-oc-text-500 text-sm" }, "We’re currently reviewing your account.", -1))
|
|
4358
4360
|
]),
|
|
4359
4361
|
n("div", vo, [
|
|
4360
4362
|
n("div", go, [
|
|
4361
4363
|
e.paymentStatus ? (t(), i("div", Ao, [
|
|
4362
|
-
|
|
4363
|
-
h(
|
|
4364
|
+
l[1] || (l[1] = n("span", { class: "flex-1" }, "Payment", -1)),
|
|
4365
|
+
h(de, he(Be(e.paymentStatus)), null, 16)
|
|
4364
4366
|
])) : u("", !0),
|
|
4365
4367
|
e.paymentStatus ? (t(), i("div", ho, [
|
|
4366
|
-
|
|
4367
|
-
h(
|
|
4368
|
+
l[2] || (l[2] = n("span", { class: "flex-1" }, "Payout", -1)),
|
|
4369
|
+
h(de, he(Be(e.payoutStatus)), null, 16)
|
|
4368
4370
|
])) : u("", !0)
|
|
4369
4371
|
])
|
|
4370
4372
|
])
|
|
4371
4373
|
], 64)) : (t(), i(Y, { key: 1 }, [
|
|
4372
4374
|
n("div", yo, [
|
|
4373
4375
|
n("div", bo, [
|
|
4374
|
-
|
|
4376
|
+
l[3] || (l[3] = n("span", { class: "font-medium" }, "Account setup", -1)),
|
|
4375
4377
|
n("span", xo, x(e.progress) + "%", 1)
|
|
4376
4378
|
]),
|
|
4377
4379
|
n("div", ko, [
|
|
4378
4380
|
n("div", {
|
|
4379
4381
|
class: "h-[12px] rounded-full bg-[var(--oc-sidebar-menu-active-icon-active)]",
|
|
4380
|
-
style:
|
|
4382
|
+
style: re({ width: `${e.progress}%` })
|
|
4381
4383
|
}, null, 4)
|
|
4382
4384
|
])
|
|
4383
4385
|
]),
|
|
4384
|
-
|
|
4386
|
+
l[4] || (l[4] = n("div", { class: "text-sm font-bold text-[var(--oc-sidebar-menu-active-text)] text-center" }, " COMPLETE NOW -> ", -1))
|
|
4385
4387
|
], 64))
|
|
4386
4388
|
])) : (t(), i("div", wo, [
|
|
4387
4389
|
e.isPending ? (t(), i("div", Co, [
|
|
@@ -4395,13 +4397,13 @@ const If = /* @__PURE__ */ be(ki, [["render", Ci]]), Si = { class: "flex items-c
|
|
|
4395
4397
|
n("span", Io, x(e.progress), 1),
|
|
4396
4398
|
n("div", {
|
|
4397
4399
|
class: "pie",
|
|
4398
|
-
style:
|
|
4400
|
+
style: re({
|
|
4399
4401
|
clip: e.progress > 50 ? "rect(auto, auto, auto, auto)" : ""
|
|
4400
4402
|
})
|
|
4401
4403
|
}, [
|
|
4402
4404
|
n("div", {
|
|
4403
4405
|
class: "left-side half-circle transition-all duration-500",
|
|
4404
|
-
style:
|
|
4406
|
+
style: re({ transform: `rotate(calc(${e.progress}*3.6deg))` })
|
|
4405
4407
|
}, null, 4),
|
|
4406
4408
|
n("div", {
|
|
4407
4409
|
class: p(["right-side half-circle transition-all duration-500", e.progress <= 50 ? "hidden" : "rotate-180"])
|
|
@@ -4421,7 +4423,7 @@ const If = /* @__PURE__ */ be(ki, [["render", Ci]]), Si = { class: "flex items-c
|
|
|
4421
4423
|
isSidebarExpanded: Boolean
|
|
4422
4424
|
},
|
|
4423
4425
|
setup(e) {
|
|
4424
|
-
return (r,
|
|
4426
|
+
return (r, l) => (t(), i("div", null, [
|
|
4425
4427
|
n("div", Oo, [
|
|
4426
4428
|
e.isSidebarExpanded && e.label ? (t(), i("div", Ko, [
|
|
4427
4429
|
n("span", null, x(e.label), 1)
|
|
@@ -4464,16 +4466,16 @@ const If = /* @__PURE__ */ be(ki, [["render", Ci]]), Si = { class: "flex items-c
|
|
|
4464
4466
|
},
|
|
4465
4467
|
emits: ["close-menu"],
|
|
4466
4468
|
setup(e, { emit: r }) {
|
|
4467
|
-
const
|
|
4468
|
-
|
|
4469
|
+
const l = e, a = J(null), o = J(null), d = r, c = () => {
|
|
4470
|
+
l.isExpanded || !l.isMenuExpanded || d("close-menu");
|
|
4469
4471
|
};
|
|
4470
|
-
return me(() => [
|
|
4471
|
-
!
|
|
4472
|
+
return me(() => [l.isExpanded, o.value, a.value], () => {
|
|
4473
|
+
!a.value || !o.value || l.isExpanded || Pt(a.value, o.value, {
|
|
4472
4474
|
placement: "right-start",
|
|
4473
4475
|
strategy: "fixed"
|
|
4474
4476
|
});
|
|
4475
4477
|
}), (m, f) => ze((t(), i("div", Lo, [
|
|
4476
|
-
h(s(
|
|
4478
|
+
h(s(se), {
|
|
4477
4479
|
position: "right",
|
|
4478
4480
|
"arrow-hidden": "",
|
|
4479
4481
|
distance: 10,
|
|
@@ -4483,7 +4485,7 @@ const If = /* @__PURE__ */ be(ki, [["render", Ci]]), Si = { class: "flex items-c
|
|
|
4483
4485
|
default: C(() => [
|
|
4484
4486
|
n("div", {
|
|
4485
4487
|
ref_key: "menuItemRef",
|
|
4486
|
-
ref:
|
|
4488
|
+
ref: a,
|
|
4487
4489
|
class: p(["py-2 px-3 gap-x-4 flex items-center rounded hover:bg-[var(--oc-sidebar-menu-active)]", {
|
|
4488
4490
|
"bg-[var(--oc-sidebar-menu-active)]": e.isActive,
|
|
4489
4491
|
"w-full": e.isExpanded
|
|
@@ -4575,7 +4577,7 @@ const If = /* @__PURE__ */ be(ki, [["render", Ci]]), Si = { class: "flex items-c
|
|
|
4575
4577
|
isExpanded: Boolean
|
|
4576
4578
|
},
|
|
4577
4579
|
setup(e) {
|
|
4578
|
-
return (r,
|
|
4580
|
+
return (r, l) => (t(), i("div", {
|
|
4579
4581
|
class: p(["flex items-center gap-x-4 px-3 hover:text-[var(--oc-sidebar-menu-active-icon-active)] py-2 leading-[21px]", {
|
|
4580
4582
|
"font-medium text-oc-text": e.isActive,
|
|
4581
4583
|
"rounded-sm p-3 h-[34px] text-sm": !e.isExpanded
|
|
@@ -4583,7 +4585,7 @@ const If = /* @__PURE__ */ be(ki, [["render", Ci]]), Si = { class: "flex items-c
|
|
|
4583
4585
|
}, [
|
|
4584
4586
|
n("div", {
|
|
4585
4587
|
class: p(["w-[18px] h-[18px] flex items-center justify-center", { "opacity-0": !e.isActive }])
|
|
4586
|
-
},
|
|
4588
|
+
}, l[0] || (l[0] = [
|
|
4587
4589
|
n("div", { class: "w-[6px] h-[6px] rounded-full bg-[var(--oc-sidebar-menu-active-icon-active)]" }, null, -1)
|
|
4588
4590
|
]), 2),
|
|
4589
4591
|
n("div", Yo, x(e.label), 1),
|
|
@@ -4598,7 +4600,7 @@ const If = /* @__PURE__ */ be(ki, [["render", Ci]]), Si = { class: "flex items-c
|
|
|
4598
4600
|
isExpanded: Boolean
|
|
4599
4601
|
},
|
|
4600
4602
|
setup(e) {
|
|
4601
|
-
return (r,
|
|
4603
|
+
return (r, l) => (t(), i("div", Eo, [
|
|
4602
4604
|
n("div", Do, [
|
|
4603
4605
|
e.isExpanded ? w(r.$slots, "default", { key: 0 }) : u("", !0)
|
|
4604
4606
|
])
|
|
@@ -4621,8 +4623,8 @@ const If = /* @__PURE__ */ be(ki, [["render", Ci]]), Si = { class: "flex items-c
|
|
|
4621
4623
|
}
|
|
4622
4624
|
},
|
|
4623
4625
|
setup(e) {
|
|
4624
|
-
return (r,
|
|
4625
|
-
|
|
4626
|
+
return (r, l) => (t(), i("div", Ro, [
|
|
4627
|
+
l[2] || (l[2] = n("div", { class: "border absolute top-2 left-0 w-full h-[calc(100%-4px)] border-oc-gray-200 rounded pt-2" }, null, -1)),
|
|
4626
4628
|
n("div", Qo, [
|
|
4627
4629
|
n("div", Xo, [
|
|
4628
4630
|
h(s(L), {
|
|
@@ -4636,14 +4638,14 @@ const If = /* @__PURE__ */ be(ki, [["render", Ci]]), Si = { class: "flex items-c
|
|
|
4636
4638
|
class: "text-oc-text-300 hover:text-oc-text",
|
|
4637
4639
|
width: "14",
|
|
4638
4640
|
height: "14",
|
|
4639
|
-
onClick:
|
|
4641
|
+
onClick: l[0] || (l[0] = (a) => r.$emit("close"))
|
|
4640
4642
|
}),
|
|
4641
4643
|
h(s(L), {
|
|
4642
4644
|
name: "arrow-top-right",
|
|
4643
4645
|
class: "text-oc-text-300 hover:text-oc-text",
|
|
4644
4646
|
width: "14",
|
|
4645
4647
|
height: "14",
|
|
4646
|
-
onClick:
|
|
4648
|
+
onClick: l[1] || (l[1] = (a) => r.$emit("redirect"))
|
|
4647
4649
|
})
|
|
4648
4650
|
])
|
|
4649
4651
|
]),
|
|
@@ -4669,11 +4671,11 @@ const If = /* @__PURE__ */ be(ki, [["render", Ci]]), Si = { class: "flex items-c
|
|
|
4669
4671
|
},
|
|
4670
4672
|
emits: ["titleClick", "update:modelValue"],
|
|
4671
4673
|
setup(e) {
|
|
4672
|
-
return (r,
|
|
4674
|
+
return (r, l) => (t(), i("div", _o, [
|
|
4673
4675
|
e.title ? (t(), i("div", {
|
|
4674
4676
|
key: 0,
|
|
4675
4677
|
class: "py-4 gap-x-3 whitespace-nowrap cursor-pointer flex font-medium items-center",
|
|
4676
|
-
onClick:
|
|
4678
|
+
onClick: l[0] || (l[0] = (a) => r.$emit("titleClick"))
|
|
4677
4679
|
}, [
|
|
4678
4680
|
h(s(L), {
|
|
4679
4681
|
name: "chevron-down",
|
|
@@ -4684,14 +4686,14 @@ const If = /* @__PURE__ */ be(ki, [["render", Ci]]), Si = { class: "flex items-c
|
|
|
4684
4686
|
X(" " + x(e.title), 1)
|
|
4685
4687
|
])) : u("", !0),
|
|
4686
4688
|
n("div", es, [
|
|
4687
|
-
(t(!0), i(Y, null, H(e.menu, (
|
|
4689
|
+
(t(!0), i(Y, null, H(e.menu, (a, o) => (t(), i("div", {
|
|
4688
4690
|
key: o,
|
|
4689
4691
|
class: p([
|
|
4690
4692
|
"py-3 whitespace-nowrap rounded cursor-pointer font-medium hover:bg-oc-accent-2-50-tr px-5",
|
|
4691
|
-
e.modelValue ===
|
|
4693
|
+
e.modelValue === a.value ? "bg-oc-accent-2-50-tr text-oc-accent-1" : "text-oc-text-400"
|
|
4692
4694
|
]),
|
|
4693
|
-
onClick: (d) => r.$emit("update:modelValue",
|
|
4694
|
-
}, x(
|
|
4695
|
+
onClick: (d) => r.$emit("update:modelValue", a.value)
|
|
4696
|
+
}, x(a.label), 11, ts))), 128))
|
|
4695
4697
|
])
|
|
4696
4698
|
]));
|
|
4697
4699
|
}
|
|
@@ -4797,10 +4799,10 @@ const If = /* @__PURE__ */ be(ki, [["render", Ci]]), Si = { class: "flex items-c
|
|
|
4797
4799
|
description: "text-[12px]"
|
|
4798
4800
|
}
|
|
4799
4801
|
}));
|
|
4800
|
-
return (
|
|
4802
|
+
return (l, a) => (t(), i("div", {
|
|
4801
4803
|
class: p(["flex flex-col items-center", r.value[e.size].box])
|
|
4802
4804
|
}, [
|
|
4803
|
-
w(
|
|
4805
|
+
w(l.$slots, "icon", {}, () => [
|
|
4804
4806
|
n("div", as, [
|
|
4805
4807
|
n("div", {
|
|
4806
4808
|
class: p(["flex justify-center border rounded-full items-center aspect-square", [
|
|
@@ -4829,7 +4831,7 @@ const If = /* @__PURE__ */ be(ki, [["render", Ci]]), Si = { class: "flex items-c
|
|
|
4829
4831
|
n("span", {
|
|
4830
4832
|
class: p([r.value[e.size].title, "font-medium"])
|
|
4831
4833
|
}, x(e.title), 3),
|
|
4832
|
-
w(
|
|
4834
|
+
w(l.$slots, "description", {}, () => [
|
|
4833
4835
|
n("span", {
|
|
4834
4836
|
class: p([r.value[e.size].description, "text-oc-text-400 text-center"])
|
|
4835
4837
|
}, x(e.description), 3)
|
|
@@ -4846,7 +4848,7 @@ const If = /* @__PURE__ */ be(ki, [["render", Ci]]), Si = { class: "flex items-c
|
|
|
4846
4848
|
label: e.isUpgrade ? e.upgradeLabel : e.addButtonLabel,
|
|
4847
4849
|
"left-icon": e.isUpgrade ? "" : e.addButtonIcon,
|
|
4848
4850
|
size: "small",
|
|
4849
|
-
onClick:
|
|
4851
|
+
onClick: a[0] || (a[0] = (o) => l.$emit("click:button"))
|
|
4850
4852
|
}, null, 8, ["label", "left-icon"])
|
|
4851
4853
|
])) : u("", !0)
|
|
4852
4854
|
], 2));
|
|
@@ -4873,7 +4875,7 @@ const If = /* @__PURE__ */ be(ki, [["render", Ci]]), Si = { class: "flex items-c
|
|
|
4873
4875
|
countryIso: String
|
|
4874
4876
|
},
|
|
4875
4877
|
setup(e) {
|
|
4876
|
-
return (r,
|
|
4878
|
+
return (r, l) => (t(), i("div", {
|
|
4877
4879
|
class: p(["cursor-pointer rounded group font-medium justify-center border gap-y-2 md:w-fit w-full flex flex-col hover:shadow-normal", [
|
|
4878
4880
|
e.isActive && !e.isLoading ? "border-b-[3px] border-oc-primary" : "border-oc-accent-1-100",
|
|
4879
4881
|
e.isLoading ? "p-3" : "px-5 py-4 min-h-[62px] max-h-[76px]"
|
|
@@ -4886,7 +4888,7 @@ const If = /* @__PURE__ */ be(ki, [["render", Ci]]), Si = { class: "flex items-c
|
|
|
4886
4888
|
n("div", os, [
|
|
4887
4889
|
n("div", ss, [
|
|
4888
4890
|
n("span", rs, x(e.title), 1),
|
|
4889
|
-
e.chipOptions ? (t(), A(s(
|
|
4891
|
+
e.chipOptions ? (t(), A(s(de), he(D({ key: 0 }, e.chipOptions)), null, 16)) : u("", !0)
|
|
4890
4892
|
]),
|
|
4891
4893
|
n("span", {
|
|
4892
4894
|
class: p(["flex gap-x-4 items-center text-xl group-hover:text-oc-text", e.isActive ? "text-oc-text" : "text-oc-text-400"])
|
|
@@ -4913,15 +4915,15 @@ const If = /* @__PURE__ */ be(ki, [["render", Ci]]), Si = { class: "flex items-c
|
|
|
4913
4915
|
}
|
|
4914
4916
|
},
|
|
4915
4917
|
setup(e) {
|
|
4916
|
-
return (r,
|
|
4917
|
-
|
|
4918
|
+
return (r, l) => (t(), i("div", us, [
|
|
4919
|
+
l[0] || (l[0] = n("span", { class: "text-xs shrink-0 font-medium text-oc-text-300 uppercase" }, " Payment methods ", -1)),
|
|
4918
4920
|
n("div", ms, [
|
|
4919
|
-
(t(!0), i(Y, null, H(e.methods, (
|
|
4920
|
-
key:
|
|
4921
|
+
(t(!0), i(Y, null, H(e.methods, (a) => (t(), i("img", {
|
|
4922
|
+
key: a,
|
|
4921
4923
|
width: "35",
|
|
4922
|
-
alt:
|
|
4924
|
+
alt: a,
|
|
4923
4925
|
height: "24",
|
|
4924
|
-
src:
|
|
4926
|
+
src: a
|
|
4925
4927
|
}, null, 8, fs))), 128))
|
|
4926
4928
|
])
|
|
4927
4929
|
]));
|
|
@@ -4950,7 +4952,7 @@ const If = /* @__PURE__ */ be(ki, [["render", Ci]]), Si = { class: "flex items-c
|
|
|
4950
4952
|
},
|
|
4951
4953
|
setup(e) {
|
|
4952
4954
|
const r = J(!1);
|
|
4953
|
-
return (
|
|
4955
|
+
return (l, a) => {
|
|
4954
4956
|
var o;
|
|
4955
4957
|
return t(), i("div", vs, [
|
|
4956
4958
|
e.isLoading ? (t(), A(s(ie), {
|
|
@@ -4967,7 +4969,7 @@ const If = /* @__PURE__ */ be(ki, [["render", Ci]]), Si = { class: "flex items-c
|
|
|
4967
4969
|
})) : (t(), i("div", As, [
|
|
4968
4970
|
h(s(pe), D({
|
|
4969
4971
|
modelValue: r.value,
|
|
4970
|
-
"onUpdate:modelValue":
|
|
4972
|
+
"onUpdate:modelValue": a[0] || (a[0] = (d) => r.value = d),
|
|
4971
4973
|
"popper-options": { strategy: "fixed" },
|
|
4972
4974
|
placement: "bottom",
|
|
4973
4975
|
class: "text-sm"
|
|
@@ -4983,7 +4985,7 @@ const If = /* @__PURE__ */ be(ki, [["render", Ci]]), Si = { class: "flex items-c
|
|
|
4983
4985
|
]),
|
|
4984
4986
|
_: 1
|
|
4985
4987
|
}, 16, ["modelValue"]),
|
|
4986
|
-
h(s(
|
|
4988
|
+
h(s(se), {
|
|
4987
4989
|
"popper-options": { strategy: "fixed" },
|
|
4988
4990
|
position: "top"
|
|
4989
4991
|
}, le({
|
|
@@ -5043,24 +5045,24 @@ const If = /* @__PURE__ */ be(ki, [["render", Ci]]), Si = { class: "flex items-c
|
|
|
5043
5045
|
changeTab: []
|
|
5044
5046
|
},
|
|
5045
5047
|
setup(e) {
|
|
5046
|
-
return (r,
|
|
5048
|
+
return (r, l) => (t(), i("div", ys, [
|
|
5047
5049
|
n("div", bs, [
|
|
5048
|
-
(t(!0), i(Y, null, H(e.isLoading ? 2 : e.overviewTabs, (
|
|
5050
|
+
(t(!0), i(Y, null, H(e.isLoading ? 2 : e.overviewTabs, (a) => w(r.$slots, a.value, { tab: a }, () => [
|
|
5049
5051
|
(t(), A(cs, {
|
|
5050
|
-
key:
|
|
5051
|
-
title:
|
|
5052
|
+
key: a.value,
|
|
5053
|
+
title: a.title,
|
|
5052
5054
|
"is-loading": e.isLoading,
|
|
5053
|
-
content:
|
|
5054
|
-
"chip-options":
|
|
5055
|
-
"is-dropdown":
|
|
5056
|
-
"dropdown-options":
|
|
5057
|
-
"is-active":
|
|
5058
|
-
"country-iso":
|
|
5059
|
-
onClick: (o) => r.$emit("changeTab",
|
|
5055
|
+
content: a.content,
|
|
5056
|
+
"chip-options": a.chipOptions,
|
|
5057
|
+
"is-dropdown": a.isDropdown,
|
|
5058
|
+
"dropdown-options": a.dropdownOptions,
|
|
5059
|
+
"is-active": a.value === e.overviewActiveTab,
|
|
5060
|
+
"country-iso": a.countryIso,
|
|
5061
|
+
onClick: (o) => r.$emit("changeTab", a.value)
|
|
5060
5062
|
}, null, 8, ["title", "is-loading", "content", "chip-options", "is-dropdown", "dropdown-options", "is-active", "country-iso", "onClick"]))
|
|
5061
5063
|
])), 256))
|
|
5062
5064
|
]),
|
|
5063
|
-
|
|
5065
|
+
l[0] || (l[0] = n("div", { class: "border-t border-oc-gray-200" }, null, -1)),
|
|
5064
5066
|
h(hs, {
|
|
5065
5067
|
"is-loading": e.isLoading,
|
|
5066
5068
|
"more-button-props": e.moreButtonProps,
|
|
@@ -5105,7 +5107,7 @@ const lt = /* @__PURE__ */ be(ks, [["render", Cs]]), Ss = { class: "flex" }, Is
|
|
|
5105
5107
|
emits: ["addCustomer"],
|
|
5106
5108
|
setup(e) {
|
|
5107
5109
|
const r = J(!1);
|
|
5108
|
-
return (
|
|
5110
|
+
return (l, a) => (t(), i("div", null, [
|
|
5109
5111
|
h(lt, { class: "!flex-nowrap flex-col w-full" }, {
|
|
5110
5112
|
default: C(() => {
|
|
5111
5113
|
var o, d;
|
|
@@ -5119,10 +5121,10 @@ const lt = /* @__PURE__ */ be(ks, [["render", Cs]]), Ss = { class: "flex" }, Is
|
|
|
5119
5121
|
class: c.class,
|
|
5120
5122
|
"is-loading": c.isLoading
|
|
5121
5123
|
}, { ref_for: !0 }, c), le({ _: 2 }, [
|
|
5122
|
-
c.slot &&
|
|
5124
|
+
c.slot && l.$slots[c.slot] ? {
|
|
5123
5125
|
name: "content",
|
|
5124
5126
|
fn: C(() => [
|
|
5125
|
-
w(
|
|
5127
|
+
w(l.$slots, c.slot, {
|
|
5126
5128
|
data: c.content
|
|
5127
5129
|
})
|
|
5128
5130
|
]),
|
|
@@ -5130,7 +5132,7 @@ const lt = /* @__PURE__ */ be(ks, [["render", Cs]]), Ss = { class: "flex" }, Is
|
|
|
5130
5132
|
} : void 0
|
|
5131
5133
|
]), 1040, ["title", "content", "class", "is-loading"]))), 128)),
|
|
5132
5134
|
(d = e.boxes[0]) != null && d.showInfo ? (t(), i("div", Is, [
|
|
5133
|
-
h(s(
|
|
5135
|
+
h(s(se), null, {
|
|
5134
5136
|
popper: C(() => {
|
|
5135
5137
|
var c;
|
|
5136
5138
|
return [
|
|
@@ -5154,7 +5156,7 @@ const lt = /* @__PURE__ */ be(ks, [["render", Cs]]), Ss = { class: "flex" }, Is
|
|
|
5154
5156
|
label: "See details ->",
|
|
5155
5157
|
size: "small",
|
|
5156
5158
|
"is-transparent": "",
|
|
5157
|
-
onClick:
|
|
5159
|
+
onClick: a[0] || (a[0] = (c) => r.value = !0)
|
|
5158
5160
|
})
|
|
5159
5161
|
];
|
|
5160
5162
|
}),
|
|
@@ -5165,7 +5167,7 @@ const lt = /* @__PURE__ */ be(ks, [["render", Cs]]), Ss = { class: "flex" }, Is
|
|
|
5165
5167
|
r.value ? (t(), i("div", {
|
|
5166
5168
|
key: 0,
|
|
5167
5169
|
class: "fixed z-[1005] top-0 left-0 w-screen flex justify-end h-screen bg-black/[.45]",
|
|
5168
|
-
onClick:
|
|
5170
|
+
onClick: a[1] || (a[1] = (o) => r.value = !1)
|
|
5169
5171
|
})) : u("", !0)
|
|
5170
5172
|
]),
|
|
5171
5173
|
_: 1
|
|
@@ -5174,7 +5176,7 @@ const lt = /* @__PURE__ */ be(ks, [["render", Cs]]), Ss = { class: "flex" }, Is
|
|
|
5174
5176
|
default: C(() => [
|
|
5175
5177
|
r.value ? (t(), i("div", Os, [
|
|
5176
5178
|
n("div", Ks, [
|
|
5177
|
-
|
|
5179
|
+
a[4] || (a[4] = n("span", { class: "font-medium" }, "Details", -1)),
|
|
5178
5180
|
h(s(F), {
|
|
5179
5181
|
size: "small",
|
|
5180
5182
|
"left-icon": "x",
|
|
@@ -5182,7 +5184,7 @@ const lt = /* @__PURE__ */ be(ks, [["render", Cs]]), Ss = { class: "flex" }, Is
|
|
|
5182
5184
|
"is-transparent": "",
|
|
5183
5185
|
class: "px-3",
|
|
5184
5186
|
variant: "secondary",
|
|
5185
|
-
onClick:
|
|
5187
|
+
onClick: a[2] || (a[2] = (o) => r.value = !1)
|
|
5186
5188
|
})
|
|
5187
5189
|
]),
|
|
5188
5190
|
n("div", zs, [
|
|
@@ -5196,10 +5198,10 @@ const lt = /* @__PURE__ */ be(ks, [["render", Cs]]), Ss = { class: "flex" }, Is
|
|
|
5196
5198
|
class: c.class,
|
|
5197
5199
|
"is-loading": c.isLoading
|
|
5198
5200
|
}, { ref_for: !0 }, c), le({ _: 2 }, [
|
|
5199
|
-
c.slot &&
|
|
5201
|
+
c.slot && l.$slots[c.slot] ? {
|
|
5200
5202
|
name: "content",
|
|
5201
5203
|
fn: C(() => [
|
|
5202
|
-
w(
|
|
5204
|
+
w(l.$slots, c.slot, {
|
|
5203
5205
|
data: c.content
|
|
5204
5206
|
})
|
|
5205
5207
|
]),
|
|
@@ -5213,7 +5215,7 @@ const lt = /* @__PURE__ */ be(ks, [["render", Cs]]), Ss = { class: "flex" }, Is
|
|
|
5213
5215
|
key: 0,
|
|
5214
5216
|
variant: e.customerCardVariant,
|
|
5215
5217
|
customer: e.customer,
|
|
5216
|
-
onAddCustomer:
|
|
5218
|
+
onAddCustomer: a[3] || (a[3] = (o) => l.$emit("addCustomer"))
|
|
5217
5219
|
}, null, 8, ["variant", "customer"])) : u("", !0)
|
|
5218
5220
|
])
|
|
5219
5221
|
])) : u("", !0)
|
|
@@ -5234,19 +5236,19 @@ const lt = /* @__PURE__ */ be(ks, [["render", Cs]]), Ss = { class: "flex" }, Is
|
|
|
5234
5236
|
},
|
|
5235
5237
|
emits: ["addCustomer", "editCustomer"],
|
|
5236
5238
|
setup(e) {
|
|
5237
|
-
return (r,
|
|
5239
|
+
return (r, l) => (t(), i(Y, null, [
|
|
5238
5240
|
n("div", js, [
|
|
5239
|
-
(t(!0), i(Y, null, H(e.boxes, (
|
|
5241
|
+
(t(!0), i(Y, null, H(e.boxes, (a, o) => (t(), A(lt, {
|
|
5240
5242
|
key: o,
|
|
5241
5243
|
class: p(
|
|
5242
|
-
(e.isCustomer ? "!grid grid-cols-4 grid-rows-2 gap-y-4 w-full !py-4 " : " ") + (
|
|
5244
|
+
(e.isCustomer ? "!grid grid-cols-4 grid-rows-2 gap-y-4 w-full !py-4 " : " ") + (a == null ? void 0 : a.style)
|
|
5243
5245
|
)
|
|
5244
5246
|
}, {
|
|
5245
5247
|
default: C(() => [
|
|
5246
|
-
|
|
5248
|
+
a.slot && r.$slots[a.slot] ? w(r.$slots, a.slot, {
|
|
5247
5249
|
key: 0,
|
|
5248
|
-
data: { ...
|
|
5249
|
-
}) : (t(!0), i(Y, { key: 1 }, H(
|
|
5250
|
+
data: { ...a, key: o }
|
|
5251
|
+
}) : (t(!0), i(Y, { key: 1 }, H(a.items, (d, c) => (t(), A(s(Ue), D({
|
|
5250
5252
|
key: `${o}-${c}`,
|
|
5251
5253
|
"is-transparent": "",
|
|
5252
5254
|
title: d.title,
|
|
@@ -5264,14 +5266,14 @@ const lt = /* @__PURE__ */ be(ks, [["render", Cs]]), Ss = { class: "flex" }, Is
|
|
|
5264
5266
|
key: "0"
|
|
5265
5267
|
} : void 0
|
|
5266
5268
|
]), 1040, ["title", "class", "is-loading", "content"]))), 128)),
|
|
5267
|
-
|
|
5269
|
+
a.showInfo ? (t(), i("div", {
|
|
5268
5270
|
key: 2,
|
|
5269
|
-
class: p(["p-2",
|
|
5271
|
+
class: p(["p-2", a.infoTooltipStyle])
|
|
5270
5272
|
}, [
|
|
5271
|
-
h(s(
|
|
5273
|
+
h(s(se), { "popper-options": { strategy: "fixed" } }, {
|
|
5272
5274
|
popper: C(() => [
|
|
5273
|
-
w(r.$slots,
|
|
5274
|
-
n("div", Bs, x(
|
|
5275
|
+
w(r.$slots, a.infoTooltipSlot, {}, () => [
|
|
5276
|
+
n("div", Bs, x(a.infoTooltip), 1)
|
|
5275
5277
|
])
|
|
5276
5278
|
]),
|
|
5277
5279
|
default: C(() => [
|
|
@@ -5295,8 +5297,8 @@ const lt = /* @__PURE__ */ be(ks, [["render", Cs]]), Ss = { class: "flex" }, Is
|
|
|
5295
5297
|
"is-hover": e.customerIsHover,
|
|
5296
5298
|
"is-edit": e.customerIsEdit,
|
|
5297
5299
|
class: "max-w-[300px]",
|
|
5298
|
-
onAddCustomer:
|
|
5299
|
-
onEditCustomer:
|
|
5300
|
+
onAddCustomer: l[0] || (l[0] = (a) => r.$emit("addCustomer")),
|
|
5301
|
+
onEditCustomer: l[1] || (l[1] = (a) => r.$emit("editCustomer", a))
|
|
5300
5302
|
}, le({ _: 2 }, [
|
|
5301
5303
|
r.$slots["customer-leading"] ? {
|
|
5302
5304
|
name: "leading",
|
|
@@ -5320,9 +5322,9 @@ const lt = /* @__PURE__ */ be(ks, [["render", Cs]]), Ss = { class: "flex" }, Is
|
|
|
5320
5322
|
"is-customer": e.isCustomer,
|
|
5321
5323
|
"customer-card-variant": e.customerCardVariant,
|
|
5322
5324
|
customer: e.customer,
|
|
5323
|
-
onAddCustomer:
|
|
5325
|
+
onAddCustomer: l[2] || (l[2] = (a) => r.$emit("addCustomer"))
|
|
5324
5326
|
}, le({ _: 2 }, [
|
|
5325
|
-
H(r.$slots, (
|
|
5327
|
+
H(r.$slots, (a, o) => ({
|
|
5326
5328
|
name: o,
|
|
5327
5329
|
fn: C((d) => [
|
|
5328
5330
|
w(r.$slots, o, he(Be(d)))
|
|
@@ -5385,14 +5387,14 @@ const lt = /* @__PURE__ */ be(ks, [["render", Cs]]), Ss = { class: "flex" }, Is
|
|
|
5385
5387
|
editCustomer: []
|
|
5386
5388
|
},
|
|
5387
5389
|
setup(e) {
|
|
5388
|
-
const r = e,
|
|
5390
|
+
const r = e, l = async () => {
|
|
5389
5391
|
try {
|
|
5390
5392
|
await navigator.clipboard.writeText(r.mainLink + r.userId);
|
|
5391
|
-
} catch (
|
|
5392
|
-
console.error("Unable to copy text to clipboard. Error: ",
|
|
5393
|
+
} catch (a) {
|
|
5394
|
+
console.error("Unable to copy text to clipboard. Error: ", a);
|
|
5393
5395
|
}
|
|
5394
5396
|
};
|
|
5395
|
-
return (
|
|
5397
|
+
return (a, o) => (t(), i("div", Ns, [
|
|
5396
5398
|
e.variant === "default" ? (t(), A(jt, {
|
|
5397
5399
|
key: 0,
|
|
5398
5400
|
description: e.mainLink,
|
|
@@ -5408,7 +5410,7 @@ const lt = /* @__PURE__ */ be(ks, [["render", Cs]]), Ss = { class: "flex" }, Is
|
|
|
5408
5410
|
})) : u("", !0)
|
|
5409
5411
|
])) : (t(), i("div", Ws, [
|
|
5410
5412
|
n("span", qs, x(e.additionalTitle), 1),
|
|
5411
|
-
e.chipVariant ? (t(), A(s(
|
|
5413
|
+
e.chipVariant ? (t(), A(s(de), {
|
|
5412
5414
|
key: 0,
|
|
5413
5415
|
variant: e.chipVariant,
|
|
5414
5416
|
label: e.chipLabel
|
|
@@ -5433,7 +5435,7 @@ const lt = /* @__PURE__ */ be(ks, [["render", Cs]]), Ss = { class: "flex" }, Is
|
|
|
5433
5435
|
], 8, Ms),
|
|
5434
5436
|
h(s(eo), {
|
|
5435
5437
|
"primary-actions": e.primaryActions,
|
|
5436
|
-
onCopy:
|
|
5438
|
+
onCopy: l
|
|
5437
5439
|
}, null, 8, ["primary-actions"])
|
|
5438
5440
|
]))
|
|
5439
5441
|
]),
|
|
@@ -5447,13 +5449,13 @@ const lt = /* @__PURE__ */ be(ks, [["render", Cs]]), Ss = { class: "flex" }, Is
|
|
|
5447
5449
|
"customer-is-hover": e.customerIsHover,
|
|
5448
5450
|
"customer-is-edit": e.customerIsEdit,
|
|
5449
5451
|
class: p(e.additionalStyling),
|
|
5450
|
-
onAddCustomer: o[0] || (o[0] = (d) =>
|
|
5451
|
-
onEditCustomer: o[1] || (o[1] = (d) =>
|
|
5452
|
+
onAddCustomer: o[0] || (o[0] = (d) => a.$emit("addCustomer")),
|
|
5453
|
+
onEditCustomer: o[1] || (o[1] = (d) => a.$emit("editCustomer", d))
|
|
5452
5454
|
}, le({ _: 2 }, [
|
|
5453
|
-
H(
|
|
5455
|
+
H(a.$slots, (d, c) => ({
|
|
5454
5456
|
name: c,
|
|
5455
5457
|
fn: C((m) => [
|
|
5456
|
-
w(
|
|
5458
|
+
w(a.$slots, c, he(Be(m)))
|
|
5457
5459
|
])
|
|
5458
5460
|
}))
|
|
5459
5461
|
]), 1032, ["boxes", "customer-card-variant", "customer", "is-customer", "customer-is-hover", "customer-is-edit", "class"])) : e.variant === "balance" ? (t(), A(xs, {
|
|
@@ -5469,12 +5471,12 @@ const lt = /* @__PURE__ */ be(ks, [["render", Cs]]), Ss = { class: "flex" }, Is
|
|
|
5469
5471
|
"dropdown-props": e.dropdownProps,
|
|
5470
5472
|
class: p(e.additionalStyling),
|
|
5471
5473
|
"is-loading": e.isLoading,
|
|
5472
|
-
onChangeTab: o[2] || (o[2] = (d) =>
|
|
5474
|
+
onChangeTab: o[2] || (o[2] = (d) => a.$emit("changeTab", d))
|
|
5473
5475
|
}, le({ _: 2 }, [
|
|
5474
|
-
H(
|
|
5476
|
+
H(a.$slots, (d, c) => ({
|
|
5475
5477
|
name: c,
|
|
5476
5478
|
fn: C((m) => [
|
|
5477
|
-
w(
|
|
5479
|
+
w(a.$slots, c, he(Be(m)))
|
|
5478
5480
|
])
|
|
5479
5481
|
}))
|
|
5480
5482
|
]), 1032, ["overview-items", "overview-tabs", "secondary-button-props", "more-button-props", "overview-active-tab", "container-class", "payment-methods", "dropdown-items", "dropdown-props", "class", "is-loading"])) : u("", !0)
|
|
@@ -5504,18 +5506,18 @@ const lt = /* @__PURE__ */ be(ks, [["render", Cs]]), Ss = { class: "flex" }, Is
|
|
|
5504
5506
|
}
|
|
5505
5507
|
},
|
|
5506
5508
|
setup(e) {
|
|
5507
|
-
return (r,
|
|
5508
|
-
var
|
|
5509
|
+
return (r, l) => {
|
|
5510
|
+
var a;
|
|
5509
5511
|
return t(), i("div", Es, [
|
|
5510
5512
|
n("div", Ds, [
|
|
5511
5513
|
n("h2", Ps, x(e.title), 1),
|
|
5512
5514
|
e.description ? (t(), i("p", Rs, x(e.description), 1)) : u("", !0),
|
|
5513
|
-
(
|
|
5515
|
+
(a = e.features) != null && a.length ? (t(), i("div", Qs, [
|
|
5514
5516
|
(t(!0), i(Y, null, H(e.features, (o) => (t(), i("div", {
|
|
5515
5517
|
key: o.title,
|
|
5516
5518
|
class: "rounded bg-white flex flex-col gap-2 p-6 items-center justify-center relative"
|
|
5517
5519
|
}, [
|
|
5518
|
-
o.comingSoon ? (t(), A(s(
|
|
5520
|
+
o.comingSoon ? (t(), A(s(de), {
|
|
5519
5521
|
key: 0,
|
|
5520
5522
|
variant: "accent-2",
|
|
5521
5523
|
label: "Coming soon",
|
|
@@ -5550,9 +5552,9 @@ const lt = /* @__PURE__ */ be(ks, [["render", Cs]]), Ss = { class: "flex" }, Is
|
|
|
5550
5552
|
}
|
|
5551
5553
|
},
|
|
5552
5554
|
setup(e) {
|
|
5553
|
-
return (r,
|
|
5555
|
+
return (r, l) => (t(), i("div", Us, [
|
|
5554
5556
|
n("span", $s, x(e.title), 1),
|
|
5555
|
-
e.chipProps ? (t(), A(s(
|
|
5557
|
+
e.chipProps ? (t(), A(s(de), D({
|
|
5556
5558
|
key: 0,
|
|
5557
5559
|
class: "absolute left-[40px]"
|
|
5558
5560
|
}, e.chipProps), null, 16)) : u("", !0),
|
|
@@ -5573,14 +5575,14 @@ const lt = /* @__PURE__ */ be(ks, [["render", Cs]]), Ss = { class: "flex" }, Is
|
|
|
5573
5575
|
},
|
|
5574
5576
|
emits: ["click:button"],
|
|
5575
5577
|
setup(e) {
|
|
5576
|
-
return (r,
|
|
5578
|
+
return (r, l) => (t(), i("div", _s, [
|
|
5577
5579
|
n("span", er, x(e.title), 1),
|
|
5578
5580
|
e.buttonLabel ? (t(), A(s(F), {
|
|
5579
5581
|
key: 0,
|
|
5580
5582
|
class: "absolute right-9",
|
|
5581
5583
|
size: "small",
|
|
5582
5584
|
"is-transparent": "",
|
|
5583
|
-
onClick:
|
|
5585
|
+
onClick: l[0] || (l[0] = (a) => r.$emit("click:button"))
|
|
5584
5586
|
}, {
|
|
5585
5587
|
default: C(() => [
|
|
5586
5588
|
n("span", tr, [
|
|
@@ -5608,7 +5610,7 @@ const lt = /* @__PURE__ */ be(ks, [["render", Cs]]), Ss = { class: "flex" }, Is
|
|
|
5608
5610
|
isActive: Boolean
|
|
5609
5611
|
},
|
|
5610
5612
|
setup(e) {
|
|
5611
|
-
return (r,
|
|
5613
|
+
return (r, l) => (t(), i("div", {
|
|
5612
5614
|
class: p(["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"])
|
|
5613
5615
|
}, [
|
|
5614
5616
|
h(s(zt), {
|
|
@@ -5635,7 +5637,7 @@ const lt = /* @__PURE__ */ be(ks, [["render", Cs]]), Ss = { class: "flex" }, Is
|
|
|
5635
5637
|
chipProps: Object
|
|
5636
5638
|
},
|
|
5637
5639
|
setup(e) {
|
|
5638
|
-
return (r,
|
|
5640
|
+
return (r, l) => (t(), i("div", {
|
|
5639
5641
|
class: p(["relative border rounded gap-x-3 flex justify-center items-center py-6 px-5 bg-oc-bg-light shadow-sm cursor-pointer hover:border-oc-primary duration-500", e.isActive ? "border-oc-primary" : "border-oc-gray-200"])
|
|
5640
5642
|
}, [
|
|
5641
5643
|
e.icon ? (t(), A(s(L), {
|
|
@@ -5646,7 +5648,7 @@ const lt = /* @__PURE__ */ be(ks, [["render", Cs]]), Ss = { class: "flex" }, Is
|
|
|
5646
5648
|
class: p(e.iconClass)
|
|
5647
5649
|
}, null, 8, ["name", "width", "height", "class"])) : u("", !0),
|
|
5648
5650
|
n("span", null, x(e.title), 1),
|
|
5649
|
-
e.chipProps ? (t(), A(s(
|
|
5651
|
+
e.chipProps ? (t(), A(s(de), D({ key: 1 }, e.chipProps, { class: "absolute top-0 -translate-y-1/2 sm:right-9" }), null, 16)) : u("", !0)
|
|
5650
5652
|
], 2));
|
|
5651
5653
|
}
|
|
5652
5654
|
}, ir = { class: "flex items-center" }, or = { class: "flex flex-1 items-center gap-x-3" }, sr = { class: "font-medium text-lg" }, Tf = {
|
|
@@ -5670,7 +5672,7 @@ const lt = /* @__PURE__ */ be(ks, [["render", Cs]]), Ss = { class: "flex" }, Is
|
|
|
5670
5672
|
}
|
|
5671
5673
|
},
|
|
5672
5674
|
setup(e) {
|
|
5673
|
-
return (r,
|
|
5675
|
+
return (r, l) => (t(), i("div", {
|
|
5674
5676
|
class: p(["rounded hover:bg-oc-gray-50 p-5 flex flex-col gap-y-3", e.isActive ? "border-2 border-oc-primary" : "border border-oc-gray-200"])
|
|
5675
5677
|
}, [
|
|
5676
5678
|
n("div", ir, [
|
|
@@ -5678,7 +5680,7 @@ const lt = /* @__PURE__ */ be(ks, [["render", Cs]]), Ss = { class: "flex" }, Is
|
|
|
5678
5680
|
w(r.$slots, "title", {}, () => [
|
|
5679
5681
|
n("span", sr, x(e.title), 1)
|
|
5680
5682
|
]),
|
|
5681
|
-
e.chipOptions ? (t(), A(s(
|
|
5683
|
+
e.chipOptions ? (t(), A(s(de), he(D({ key: 0 }, e.chipOptions)), null, 16)) : u("", !0)
|
|
5682
5684
|
]),
|
|
5683
5685
|
e.isActive ? (t(), A(s(L), {
|
|
5684
5686
|
key: 0,
|
|
@@ -5764,13 +5766,13 @@ const lt = /* @__PURE__ */ be(ks, [["render", Cs]]), Ss = { class: "flex" }, Is
|
|
|
5764
5766
|
},
|
|
5765
5767
|
emits: ["update:modelValue"],
|
|
5766
5768
|
setup(e) {
|
|
5767
|
-
const r = e,
|
|
5769
|
+
const r = e, l = Object.freeze({
|
|
5768
5770
|
default: "border-oc-success-200 bg-oc-success-50 text-oc-success-500",
|
|
5769
5771
|
primary: "border-oc-primary-200 bg-oc-primary-50 text-oc-primary-500",
|
|
5770
5772
|
error: "border-oc-error-200 bg-oc-error-50 text-oc-error-500",
|
|
5771
5773
|
warning: "border-oc-warning-200 bg-oc-warning-50 text-oc-warning-500",
|
|
5772
5774
|
gray: "border-oc-gray-300 bg-oc-gray-100 text-oc-gray-700"
|
|
5773
|
-
}),
|
|
5775
|
+
}), a = {
|
|
5774
5776
|
"top-center": "top-4",
|
|
5775
5777
|
"top-left": "top-4 left-4",
|
|
5776
5778
|
"top-right": "top-4 right-4",
|
|
@@ -5795,8 +5797,8 @@ const lt = /* @__PURE__ */ be(ks, [["render", Cs]]), Ss = { class: "flex" }, Is
|
|
|
5795
5797
|
ref_key: "snackBar",
|
|
5796
5798
|
ref: d,
|
|
5797
5799
|
class: p([[
|
|
5798
|
-
s(
|
|
5799
|
-
e.isFloating &&
|
|
5800
|
+
s(l)[e.color],
|
|
5801
|
+
e.isFloating && a[e.position],
|
|
5800
5802
|
{
|
|
5801
5803
|
"!fixed z-[1004]": e.isFloating,
|
|
5802
5804
|
"gap-x-2 py-3 px-4 items-center": m.value,
|
|
@@ -5805,7 +5807,7 @@ const lt = /* @__PURE__ */ be(ks, [["render", Cs]]), Ss = { class: "flex" }, Is
|
|
|
5805
5807
|
"!pr-10": e.dismissible
|
|
5806
5808
|
}
|
|
5807
5809
|
], "border rounded-lg flex shadow-sm snackbar relative"]),
|
|
5808
|
-
style:
|
|
5810
|
+
style: re(e.isFloating && e.position.includes("center") ? { left: c.value + "px" } : "")
|
|
5809
5811
|
}, [
|
|
5810
5812
|
e.showIcon ? (t(), i(Y, { key: 0 }, [
|
|
5811
5813
|
f.value ? (t(), i("div", {
|
|
@@ -5915,17 +5917,17 @@ const lt = /* @__PURE__ */ be(ks, [["render", Cs]]), Ss = { class: "flex" }, Is
|
|
|
5915
5917
|
error: "bg-oc-error-50 text-oc-error-500",
|
|
5916
5918
|
warning: "bg-oc-warning-50 text-oc-warning-500",
|
|
5917
5919
|
gray: "bg-oc-gray-100 text-oc-gray-700"
|
|
5918
|
-
}),
|
|
5920
|
+
}), l = Object.freeze({
|
|
5919
5921
|
default: "border-oc-success-200",
|
|
5920
5922
|
primary: "border-oc-primary-200",
|
|
5921
5923
|
error: "border-oc-error-200",
|
|
5922
5924
|
warning: "border-oc-warning-200",
|
|
5923
5925
|
gray: "border-oc-gray-300"
|
|
5924
5926
|
});
|
|
5925
|
-
return (
|
|
5927
|
+
return (a, o) => (t(), A(Ve, { name: e.transitionName }, {
|
|
5926
5928
|
default: C(() => [
|
|
5927
5929
|
ze(n("div", {
|
|
5928
|
-
class: p([s(
|
|
5930
|
+
class: p([s(l)[e.color], "border rounded-lg banner relative overflow-hidden"])
|
|
5929
5931
|
}, [
|
|
5930
5932
|
n("div", {
|
|
5931
5933
|
class: p(["flex flex-1 items-center justify-between gap-3 min-h-[34px] px-4 text-sm", s(r)[e.color]])
|
|
@@ -5938,7 +5940,7 @@ const lt = /* @__PURE__ */ be(ks, [["render", Cs]]), Ss = { class: "flex" }, Is
|
|
|
5938
5940
|
width: "16",
|
|
5939
5941
|
height: "16"
|
|
5940
5942
|
}, null, 8, ["name"])) : u("", !0),
|
|
5941
|
-
w(
|
|
5943
|
+
w(a.$slots, "title", {}, () => [
|
|
5942
5944
|
n("div", gr, x(e.title), 1)
|
|
5943
5945
|
], !0)
|
|
5944
5946
|
]),
|
|
@@ -5947,11 +5949,11 @@ const lt = /* @__PURE__ */ be(ks, [["render", Cs]]), Ss = { class: "flex" }, Is
|
|
|
5947
5949
|
variant: "secondary",
|
|
5948
5950
|
"is-transparent": "",
|
|
5949
5951
|
label: "Close",
|
|
5950
|
-
onClick: o[0] || (o[0] = (d) =>
|
|
5952
|
+
onClick: o[0] || (o[0] = (d) => a.$emit("update:modelValue", !1))
|
|
5951
5953
|
})) : u("", !0)
|
|
5952
5954
|
], 2),
|
|
5953
5955
|
n("div", Ar, [
|
|
5954
|
-
w(
|
|
5956
|
+
w(a.$slots, "default", {}, () => [
|
|
5955
5957
|
X(x(e.content), 1)
|
|
5956
5958
|
], !0)
|
|
5957
5959
|
])
|
|
@@ -5976,7 +5978,7 @@ const lt = /* @__PURE__ */ be(ks, [["render", Cs]]), Ss = { class: "flex" }, Is
|
|
|
5976
5978
|
}
|
|
5977
5979
|
},
|
|
5978
5980
|
setup(e) {
|
|
5979
|
-
return (r,
|
|
5981
|
+
return (r, l) => e.isOnlyIcon ? (t(), A(s(se), he(D({ key: 0 }, e.tooltipOptions)), {
|
|
5980
5982
|
popper: C(() => [
|
|
5981
5983
|
n("div", br, x(e.text), 1)
|
|
5982
5984
|
]),
|
|
@@ -6024,7 +6026,7 @@ const lt = /* @__PURE__ */ be(ks, [["render", Cs]]), Ss = { class: "flex" }, Is
|
|
|
6024
6026
|
labelClass: String
|
|
6025
6027
|
},
|
|
6026
6028
|
setup(e) {
|
|
6027
|
-
return (r,
|
|
6029
|
+
return (r, l) => (t(), i("div", wr, [
|
|
6028
6030
|
e.label ? (t(), i("label", {
|
|
6029
6031
|
key: 0,
|
|
6030
6032
|
class: p(["flex items-center text-sm font-medium gap-x-3 text-oc-text-400", e.labelClass])
|
|
@@ -6033,7 +6035,7 @@ const lt = /* @__PURE__ */ be(ks, [["render", Cs]]), Ss = { class: "flex" }, Is
|
|
|
6033
6035
|
X(x(e.label) + " ", 1),
|
|
6034
6036
|
e.isRequired ? (t(), i("span", Sr, "*")) : u("", !0)
|
|
6035
6037
|
]),
|
|
6036
|
-
e.labelIcon ? (t(), A(s(
|
|
6038
|
+
e.labelIcon ? (t(), A(s(se), he(D({ key: 0 }, e.tooltipOptions)), {
|
|
6037
6039
|
popper: C(() => [
|
|
6038
6040
|
w(r.$slots, "tooltipText", {}, () => [
|
|
6039
6041
|
e.tooltipText ? (t(), i("div", Ir, x(e.tooltipText), 1)) : u("", !0)
|
|
@@ -6086,7 +6088,7 @@ const lt = /* @__PURE__ */ be(ks, [["render", Cs]]), Ss = { class: "flex" }, Is
|
|
|
6086
6088
|
},
|
|
6087
6089
|
emits: ["addition-click"],
|
|
6088
6090
|
setup(e) {
|
|
6089
|
-
const r = e,
|
|
6091
|
+
const r = e, l = J(!1), a = V(() => (r.leftIcon || r.rightIcon) && !r.label), o = V(() => ({
|
|
6090
6092
|
default: "w-10",
|
|
6091
6093
|
small: "w-9 h-8",
|
|
6092
6094
|
big: "w-[48px]"
|
|
@@ -6099,15 +6101,15 @@ const lt = /* @__PURE__ */ be(ks, [["render", Cs]]), Ss = { class: "flex" }, Is
|
|
|
6099
6101
|
small: "w-5 h-5",
|
|
6100
6102
|
big: "w-6 h-6"
|
|
6101
6103
|
})), m = V(
|
|
6102
|
-
() => !
|
|
6104
|
+
() => !l.value && !r.isTransparent && !r.isDisabled && !r.isLoading && !r.isActive && d.value[r.variant]
|
|
6103
6105
|
), f = V(() => ({
|
|
6104
6106
|
primary: r.isTransparent ? "text-oc-primary hover:text-oc-primary-400 active:text-oc-primary" : "border border-oc-primary oc-btn-primary text-oc-text-100 dark:text-oc-text-500",
|
|
6105
6107
|
secondary: r.isTransparent ? "text-oc-text-400 hover:text-oc-text-300 active:text-oc-text-400" : "border border-oc-gray text-oc-text-400 dark:text-oc-text-100 oc-btn-secondary",
|
|
6106
6108
|
destructive: r.isTransparent ? "text-oc-error hover:text-oc-error-300 active:text-oc-error" : "border border-oc-error oc-btn-error text-oc-text-100 dark:text-oc-text-500"
|
|
6107
6109
|
})), g = V(() => ({
|
|
6108
|
-
default: r.isTransparent ? "py-3" :
|
|
6109
|
-
small: (r.isTransparent ? "" :
|
|
6110
|
-
big: (r.isTransparent ? "py-3 " :
|
|
6110
|
+
default: r.isTransparent ? "py-3" : a.value ? "p-3" : "px-4 py-3",
|
|
6111
|
+
small: (r.isTransparent ? "" : a.value ? "w-8 p-3" : "p-3") + " h-8 text-sm",
|
|
6112
|
+
big: (r.isTransparent ? "py-3 " : a.value ? "py-3 px-4" : "py-3 px-[14px]") + " text-lg h-[44px]"
|
|
6111
6113
|
})), v = V(() => r.isRoundedFull ? "rounded-full" : "rounded"), k = V(() => ({
|
|
6112
6114
|
default: "18",
|
|
6113
6115
|
small: "16",
|
|
@@ -6124,9 +6126,9 @@ const lt = /* @__PURE__ */ be(ks, [["render", Cs]]), Ss = { class: "flex" }, Is
|
|
|
6124
6126
|
e.isAdditionalArea ? "rounded-l-[inherit]" : "rounded-[inherit]"
|
|
6125
6127
|
]]),
|
|
6126
6128
|
disabled: e.isDisabled || e.isLoading,
|
|
6127
|
-
onMousedown: z[0] || (z[0] = (K) =>
|
|
6128
|
-
onMouseup: z[1] || (z[1] = (K) =>
|
|
6129
|
-
onMouseleave: z[2] || (z[2] = (K) =>
|
|
6129
|
+
onMousedown: z[0] || (z[0] = (K) => l.value = !0),
|
|
6130
|
+
onMouseup: z[1] || (z[1] = (K) => l.value = !1),
|
|
6131
|
+
onMouseleave: z[2] || (z[2] = (K) => l.value = !1)
|
|
6130
6132
|
}, [
|
|
6131
6133
|
e.isLoading ? (t(), A(s(L), {
|
|
6132
6134
|
key: 0,
|
|
@@ -6197,7 +6199,7 @@ const lt = /* @__PURE__ */ be(ks, [["render", Cs]]), Ss = { class: "flex" }, Is
|
|
|
6197
6199
|
"update:modelValue": []
|
|
6198
6200
|
},
|
|
6199
6201
|
setup(e) {
|
|
6200
|
-
return (r,
|
|
6202
|
+
return (r, l) => (t(), A(s(xe), {
|
|
6201
6203
|
placeholder: e.placeholder,
|
|
6202
6204
|
label: e.label,
|
|
6203
6205
|
"error-message": e.errorMessage,
|
|
@@ -6209,7 +6211,7 @@ const lt = /* @__PURE__ */ be(ks, [["render", Cs]]), Ss = { class: "flex" }, Is
|
|
|
6209
6211
|
"label-icon": e.labelIcon,
|
|
6210
6212
|
"tooltip-text": e.tooltipText,
|
|
6211
6213
|
"tooltip-options": e.tooltipOptions,
|
|
6212
|
-
"onUpdate:modelValue":
|
|
6214
|
+
"onUpdate:modelValue": l[0] || (l[0] = (a) => r.$emit("update:modelValue", a))
|
|
6213
6215
|
}, {
|
|
6214
6216
|
icon: C(() => [
|
|
6215
6217
|
n("div", jr, [
|
|
@@ -6239,12 +6241,12 @@ const lt = /* @__PURE__ */ be(ks, [["render", Cs]]), Ss = { class: "flex" }, Is
|
|
|
6239
6241
|
"update:modelValue": []
|
|
6240
6242
|
},
|
|
6241
6243
|
setup(e, { emit: r }) {
|
|
6242
|
-
const
|
|
6243
|
-
|
|
6244
|
-
|
|
6245
|
-
|
|
6246
|
-
|
|
6247
|
-
]), d = () =>
|
|
6244
|
+
const l = e, a = r, o = V(() => [
|
|
6245
|
+
l.modelValue ? l.isDisabled ? "border-oc-primary-100 bg-oc-primary-100 checkbox-init-shadow" : "bg-oc-primary" : l.errorMessage ? "checkbox-error-shadow" : l.isDisabled ? "bg-oc-gray-50 border-oc-gray-200 checkbox-init-shadow" : "border-oc-accent-1-200 checkbox-focus-shadow checkbox-init-shadow",
|
|
6246
|
+
l.errorMessage && l.modelValue && !l.isDisabled ? "!bg-oc-error checkbox-error-shadow" : "",
|
|
6247
|
+
l.errorMessage && !l.isDisabled ? "!border-oc-error checkbox-error-shadow" : "",
|
|
6248
|
+
l.isPartial ? l.isDisabled ? "!border-oc-gray-200 !bg-oc-gray-50 checkbox-init-shadow" : "!bg-oc-primary-100 checkbox-init-shadow checkbox-focus-shadow" : ""
|
|
6249
|
+
]), d = () => a("update:modelValue", l.isDisabled ? "" : !l.modelValue);
|
|
6248
6250
|
return (c, m) => (t(), A(s(ke), {
|
|
6249
6251
|
class: "w-fit",
|
|
6250
6252
|
label: e.topLabel,
|
|
@@ -6312,27 +6314,27 @@ const lt = /* @__PURE__ */ be(ks, [["render", Cs]]), Ss = { class: "flex" }, Is
|
|
|
6312
6314
|
"update:modelValue": []
|
|
6313
6315
|
},
|
|
6314
6316
|
setup(e, { emit: r }) {
|
|
6315
|
-
const
|
|
6317
|
+
const l = e, a = r, o = V(() => ({
|
|
6316
6318
|
horizontal: "gap-x-5 flex-wrap",
|
|
6317
6319
|
vertical: "flex-col gap-y-3"
|
|
6318
6320
|
})), d = (v) => {
|
|
6319
6321
|
var k;
|
|
6320
|
-
return (k =
|
|
6322
|
+
return (k = l.modelValue) == null ? void 0 : k.includes(v);
|
|
6321
6323
|
}, c = (v) => {
|
|
6322
|
-
|
|
6324
|
+
a(
|
|
6323
6325
|
"update:modelValue",
|
|
6324
|
-
d(v) ?
|
|
6326
|
+
d(v) ? l.modelValue.filter((k) => k !== v) : [...l.modelValue, v]
|
|
6325
6327
|
);
|
|
6326
6328
|
}, m = V(
|
|
6327
6329
|
() => {
|
|
6328
6330
|
var v;
|
|
6329
|
-
return (v =
|
|
6331
|
+
return (v = l.checkboxes) == null ? void 0 : v.every((k) => d(k == null ? void 0 : k.value));
|
|
6330
6332
|
}
|
|
6331
6333
|
), f = V(() => {
|
|
6332
6334
|
var v;
|
|
6333
|
-
return (v =
|
|
6335
|
+
return (v = l.checkboxes) == null ? void 0 : v.map((k) => k == null ? void 0 : k.value);
|
|
6334
6336
|
}), g = () => {
|
|
6335
|
-
m.value ?
|
|
6337
|
+
m.value ? a("update:modelValue", []) : a("update:modelValue", f.value);
|
|
6336
6338
|
};
|
|
6337
6339
|
return (v, k) => (t(), A(s(ke), {
|
|
6338
6340
|
label: e.label,
|
|
@@ -6375,7 +6377,7 @@ const lt = /* @__PURE__ */ be(ks, [["render", Cs]]), Ss = { class: "flex" }, Is
|
|
|
6375
6377
|
label: String
|
|
6376
6378
|
},
|
|
6377
6379
|
setup(e) {
|
|
6378
|
-
return (r,
|
|
6380
|
+
return (r, l) => (t(), i("div", qr, [
|
|
6379
6381
|
n("div", {
|
|
6380
6382
|
class: p([
|
|
6381
6383
|
"w-5 h-5 flex items-center justify-center rounded-full border transition-all duration-300",
|
|
@@ -6509,21 +6511,21 @@ const lt = /* @__PURE__ */ be(ks, [["render", Cs]]), Ss = { class: "flex" }, Is
|
|
|
6509
6511
|
},
|
|
6510
6512
|
emits: ["update:modelValue", "blur", "focus", "paste"],
|
|
6511
6513
|
setup(e, { expose: r }) {
|
|
6512
|
-
const
|
|
6514
|
+
const l = e, a = Tt(), o = J(), d = J(!1);
|
|
6513
6515
|
r({
|
|
6514
6516
|
focus: () => o.value.focus()
|
|
6515
6517
|
});
|
|
6516
6518
|
const c = J(!1), m = V(() => [
|
|
6517
6519
|
{
|
|
6518
|
-
"focused-shadow": c.value && !
|
|
6520
|
+
"focused-shadow": c.value && !l.isReadonly
|
|
6519
6521
|
},
|
|
6520
|
-
!
|
|
6521
|
-
|
|
6522
|
-
|
|
6522
|
+
!l.disabled && (l.errorMessage || l.hasError) ? "error-shadow" : "border-oc-gray-200 shadow-oc-gray-200",
|
|
6523
|
+
l.disabled ? "bg-oc-bg-dark pointer-events-none" : "bg-oc-bg-light",
|
|
6524
|
+
l.inputClass
|
|
6523
6525
|
]), f = V(() => {
|
|
6524
|
-
const { class: v, ...k } =
|
|
6525
|
-
return
|
|
6526
|
-
}), g = V(() =>
|
|
6526
|
+
const { class: v, ...k } = a, B = {};
|
|
6527
|
+
return l.pattern && (B.pattern = l.pattern), { ...B, ...k };
|
|
6528
|
+
}), g = V(() => l.inputType === "password");
|
|
6527
6529
|
return (v, k) => (t(), A(s(ke), {
|
|
6528
6530
|
label: e.isInlineLabel ? "" : e.label,
|
|
6529
6531
|
"label-class": e.labelClass,
|
|
@@ -6656,8 +6658,8 @@ const lt = /* @__PURE__ */ be(ks, [["render", Cs]]), Ss = { class: "flex" }, Is
|
|
|
6656
6658
|
"option-removed": [],
|
|
6657
6659
|
blur: []
|
|
6658
6660
|
},
|
|
6659
|
-
setup(e, { expose: r, emit:
|
|
6660
|
-
const
|
|
6661
|
+
setup(e, { expose: r, emit: l }) {
|
|
6662
|
+
const a = e, o = l, d = J([]), c = J(), m = J(""), f = J(!1), g = J(!1), v = V(() => f.value ? d.value : d.value.slice(0, a.maxVisibleOptions)), k = (z) => {
|
|
6661
6663
|
d.value = d.value.filter((K) => K !== z), o("option-removed", z), o("update:modelValue", d.value);
|
|
6662
6664
|
}, B = (z) => {
|
|
6663
6665
|
if (!(z != null && z.trim()))
|
|
@@ -6665,13 +6667,13 @@ const lt = /* @__PURE__ */ be(ks, [["render", Cs]]), Ss = { class: "flex" }, Is
|
|
|
6665
6667
|
const K = (z == null ? void 0 : z.split(",")) || [];
|
|
6666
6668
|
K.forEach((S) => {
|
|
6667
6669
|
var y;
|
|
6668
|
-
S != null && S.trim() && (!
|
|
6670
|
+
S != null && S.trim() && (!a.allowDuplicated && ((y = d.value) != null && y.includes(S)) || (d.value.push(S), o("option-added", S)));
|
|
6669
6671
|
}), K.length && (m.value = "", o("update:modelValue", d.value));
|
|
6670
6672
|
};
|
|
6671
6673
|
return me(
|
|
6672
|
-
() =>
|
|
6674
|
+
() => a.modelValue,
|
|
6673
6675
|
() => {
|
|
6674
|
-
d.value = [...
|
|
6676
|
+
d.value = [...a.modelValue || []];
|
|
6675
6677
|
},
|
|
6676
6678
|
{
|
|
6677
6679
|
immediate: !0,
|
|
@@ -6708,13 +6710,13 @@ const lt = /* @__PURE__ */ be(ks, [["render", Cs]]), Ss = { class: "flex" }, Is
|
|
|
6708
6710
|
options: v.value,
|
|
6709
6711
|
areAllOptionsVisible: f.value
|
|
6710
6712
|
}, () => [
|
|
6711
|
-
(t(!0), i(Y, null, H(v.value, (I, O) => (t(), A(s(
|
|
6713
|
+
(t(!0), i(Y, null, H(v.value, (I, O) => (t(), A(s(de), {
|
|
6712
6714
|
key: `${I}-${O}`,
|
|
6713
6715
|
closable: "",
|
|
6714
6716
|
label: I,
|
|
6715
6717
|
onRemove: (b) => k(I)
|
|
6716
6718
|
}, null, 8, ["label", "onRemove"]))), 128)),
|
|
6717
|
-
d.value.length > e.maxVisibleOptions ? (t(), A(s(
|
|
6719
|
+
d.value.length > e.maxVisibleOptions ? (t(), A(s(de), {
|
|
6718
6720
|
key: 0,
|
|
6719
6721
|
variant: "gray",
|
|
6720
6722
|
onClick: K[0] || (K[0] = (I) => f.value = !f.value)
|
|
@@ -6794,22 +6796,22 @@ const lt = /* @__PURE__ */ be(ks, [["render", Cs]]), Ss = { class: "flex" }, Is
|
|
|
6794
6796
|
"update:modelValue": []
|
|
6795
6797
|
},
|
|
6796
6798
|
setup(e, { emit: r }) {
|
|
6797
|
-
const
|
|
6798
|
-
let o =
|
|
6799
|
-
if (
|
|
6800
|
-
const I =
|
|
6799
|
+
const l = e, a = r;
|
|
6800
|
+
let o = l.initialCountryCode;
|
|
6801
|
+
if (l.modelValue && l.modelValue[0]) {
|
|
6802
|
+
const I = l.countryCodes.find((O) => O.code === l.modelValue[0].toString());
|
|
6801
6803
|
I && (o = I.iso.toLowerCase());
|
|
6802
6804
|
}
|
|
6803
6805
|
const d = J(o), c = J(!1), m = J(""), f = V(
|
|
6804
|
-
() =>
|
|
6805
|
-
), g = (I) =>
|
|
6806
|
+
() => l.countryCodes.filter((I) => I.country.toLowerCase().includes(m.value.toLowerCase())).sort((I, O) => I.country.localeCompare(O.country))
|
|
6807
|
+
), g = (I) => l.countryCodes.find((O) => O.iso.toLowerCase() === I.toLowerCase()) || null, v = (I) => {
|
|
6806
6808
|
var O;
|
|
6807
6809
|
return ((O = g(I)) == null ? void 0 : O.code) || "";
|
|
6808
6810
|
}, k = (I) => {
|
|
6809
|
-
|
|
6811
|
+
a("update:modelValue", [v(d.value), I]);
|
|
6810
6812
|
}, B = (I, O, b = null) => {
|
|
6811
6813
|
var Z;
|
|
6812
|
-
d.value = I.toLowerCase(),
|
|
6814
|
+
d.value = I.toLowerCase(), a("update:modelValue", [O, b || ((Z = l.modelValue) == null ? void 0 : Z[1]) || ""]), c.value = !1;
|
|
6813
6815
|
}, z = J(null), K = J([]), S = () => {
|
|
6814
6816
|
setTimeout(() => {
|
|
6815
6817
|
const I = f.value.indexOf(
|
|
@@ -6825,15 +6827,15 @@ const lt = /* @__PURE__ */ be(ks, [["render", Cs]]), Ss = { class: "flex" }, Is
|
|
|
6825
6827
|
let O = ((b = I == null ? void 0 : I.clipboardData) == null ? void 0 : b.getData("Text")) || "";
|
|
6826
6828
|
try {
|
|
6827
6829
|
if (/^[+]?[0-9]+$/.test(O))
|
|
6828
|
-
if (O = O.slice(0, 19), O.length > 5 && (
|
|
6830
|
+
if (O = O.slice(0, 19), O.length > 5 && (l.shouldParseCountryCode || O.startsWith("+"))) {
|
|
6829
6831
|
const { nationalNumber: Z, countryCallingCode: N, country: q } = Xt(
|
|
6830
6832
|
"+" + O.replace("+", "")
|
|
6831
6833
|
);
|
|
6832
|
-
N && q ? B(q, N, Z) :
|
|
6834
|
+
N && q ? B(q, N, Z) : a("update:modelValue", [v(d.value), Z]);
|
|
6833
6835
|
} else
|
|
6834
|
-
|
|
6836
|
+
a("update:modelValue", [v(d.value), O]);
|
|
6835
6837
|
} catch {
|
|
6836
|
-
|
|
6838
|
+
a("update:modelValue", [v(d.value), O]);
|
|
6837
6839
|
}
|
|
6838
6840
|
I == null || I.preventDefault();
|
|
6839
6841
|
};
|
|
@@ -6956,7 +6958,7 @@ const lt = /* @__PURE__ */ be(ks, [["render", Cs]]), Ss = { class: "flex" }, Is
|
|
|
6956
6958
|
"update:modelValue": []
|
|
6957
6959
|
},
|
|
6958
6960
|
setup(e) {
|
|
6959
|
-
return (r,
|
|
6961
|
+
return (r, l) => (t(), A(s(ke), {
|
|
6960
6962
|
class: p(["radio-button inline-block relative cursor-pointer", e.isDisabled ? "disabled" : ""]),
|
|
6961
6963
|
label: "",
|
|
6962
6964
|
"error-message": e.errorMessage,
|
|
@@ -6971,7 +6973,7 @@ const lt = /* @__PURE__ */ be(ks, [["render", Cs]]), Ss = { class: "flex" }, Is
|
|
|
6971
6973
|
disabled: e.isDisabled,
|
|
6972
6974
|
class: "radio-button__input absolute opacity-0 w-0 h-0",
|
|
6973
6975
|
type: "radio",
|
|
6974
|
-
onInput:
|
|
6976
|
+
onInput: l[0] || (l[0] = (a) => r.$emit("update:modelValue", a.target.value))
|
|
6975
6977
|
}, null, 40, ld),
|
|
6976
6978
|
n("label", {
|
|
6977
6979
|
for: e.groupName + e.id,
|
|
@@ -7003,7 +7005,7 @@ const lt = /* @__PURE__ */ be(ks, [["render", Cs]]), Ss = { class: "flex" }, Is
|
|
|
7003
7005
|
class: p({ "text-sm": !e.isButtonVariantWithRadio })
|
|
7004
7006
|
}, x(e.label), 3)) : u("", !0)
|
|
7005
7007
|
]),
|
|
7006
|
-
e.labelIcon ? (t(), A(s(
|
|
7008
|
+
e.labelIcon ? (t(), A(s(se), he(D({ key: 2 }, e.tooltipOptions)), {
|
|
7007
7009
|
popper: C(() => [
|
|
7008
7010
|
w(r.$slots, "tooltipText", {}, () => [
|
|
7009
7011
|
e.tooltipText ? (t(), i("div", id, x(e.tooltipText), 1)) : u("", !0)
|
|
@@ -7046,11 +7048,11 @@ const lt = /* @__PURE__ */ be(ks, [["render", Cs]]), Ss = { class: "flex" }, Is
|
|
|
7046
7048
|
"update:modelValue": []
|
|
7047
7049
|
},
|
|
7048
7050
|
setup(e, { emit: r }) {
|
|
7049
|
-
const
|
|
7051
|
+
const l = r, a = V(() => ({
|
|
7050
7052
|
horizontal: "gap-x-5 flex-wrap",
|
|
7051
7053
|
vertical: "flex-col gap-y-3"
|
|
7052
7054
|
})), o = (d) => {
|
|
7053
|
-
|
|
7055
|
+
l("update:modelValue", d);
|
|
7054
7056
|
};
|
|
7055
7057
|
return (d, c) => (t(), A(s(ke), {
|
|
7056
7058
|
label: e.label,
|
|
@@ -7059,7 +7061,7 @@ const lt = /* @__PURE__ */ be(ks, [["render", Cs]]), Ss = { class: "flex" }, Is
|
|
|
7059
7061
|
}, {
|
|
7060
7062
|
default: C(() => [
|
|
7061
7063
|
n("div", {
|
|
7062
|
-
class: p(["flex", [
|
|
7064
|
+
class: p(["flex", [a.value[e.alignment], e.wrapperClass]])
|
|
7063
7065
|
}, [
|
|
7064
7066
|
(t(!0), i(Y, null, H(e.radio, (m, f) => (t(), A(s(od), {
|
|
7065
7067
|
id: m.value,
|
|
@@ -7124,13 +7126,13 @@ const lt = /* @__PURE__ */ be(ks, [["render", Cs]]), Ss = { class: "flex" }, Is
|
|
|
7124
7126
|
},
|
|
7125
7127
|
setup(e, { emit: r }) {
|
|
7126
7128
|
var g, v;
|
|
7127
|
-
const
|
|
7128
|
-
isNaN(k) || (B === 1 ? d.value = Number(k) : o.value = Number(k),
|
|
7129
|
+
const l = e, a = r, o = J(((g = l.modelValue) == null ? void 0 : g[0]) ?? ""), d = J(((v = l.modelValue) == null ? void 0 : v[1]) ?? ""), c = J(), m = (k, B) => {
|
|
7130
|
+
isNaN(k) || (B === 1 ? d.value = Number(k) : o.value = Number(k), l.onlyInput ? (o.value > d.value && (d.value = o.value), d.value < o.value && (o.value = d.value), a("update:modelValue", [o.value, d.value])) : c.value.updateSlider([o.value, d.value]));
|
|
7129
7131
|
}, f = (k) => {
|
|
7130
|
-
isNaN(k[0]) || isNaN(k[1]) || (o.value = Number(k[0]), d.value = Number(k[1]),
|
|
7132
|
+
isNaN(k[0]) || isNaN(k[1]) || (o.value = Number(k[0]), d.value = Number(k[1]), a("update:modelValue", [Number(o.value), Number(d.value)]));
|
|
7131
7133
|
};
|
|
7132
7134
|
return Se(() => {
|
|
7133
|
-
|
|
7135
|
+
l.onlyInput || c.value.updateSlider();
|
|
7134
7136
|
}), (k, B) => (t(), i("div", rd, [
|
|
7135
7137
|
h(s(ke), {
|
|
7136
7138
|
label: e.label,
|
|
@@ -7269,14 +7271,14 @@ const lt = /* @__PURE__ */ be(ks, [["render", Cs]]), Ss = { class: "flex" }, Is
|
|
|
7269
7271
|
cleared: [],
|
|
7270
7272
|
loadMore: []
|
|
7271
7273
|
},
|
|
7272
|
-
setup(e, { expose: r, emit:
|
|
7273
|
-
const
|
|
7274
|
+
setup(e, { expose: r, emit: l }) {
|
|
7275
|
+
const a = e, o = l, d = J(a.searchKeywords ?? ""), c = J(!1), m = J(), f = J(), g = J([]), v = J(), k = J((/* @__PURE__ */ new Date()).toISOString()), B = V(() => {
|
|
7274
7276
|
var W, j;
|
|
7275
|
-
return
|
|
7277
|
+
return a.multiple ? ((W = a.modelValue) == null ? void 0 : W.length) && ((j = a.modelValue) == null ? void 0 : j.length) === z.value.length : !1;
|
|
7276
7278
|
}), z = V(() => {
|
|
7277
7279
|
var j, E;
|
|
7278
7280
|
const W = [];
|
|
7279
|
-
for (const Q of
|
|
7281
|
+
for (const Q of a.options)
|
|
7280
7282
|
if (Q.values) {
|
|
7281
7283
|
const U = Q.values.filter(
|
|
7282
7284
|
(ee) => {
|
|
@@ -7292,42 +7294,42 @@ const lt = /* @__PURE__ */ be(ks, [["render", Cs]]), Ss = { class: "flex" }, Is
|
|
|
7292
7294
|
((j = Q.label) != null && j.toLowerCase().includes(d.value.toLowerCase()) || (E = Q.subLabel) != null && E.toLowerCase().includes(d.value.toLowerCase())) && W.push(Q);
|
|
7293
7295
|
return W;
|
|
7294
7296
|
}), K = V(() => {
|
|
7295
|
-
if (
|
|
7297
|
+
if (a.multiple) {
|
|
7296
7298
|
let W = [];
|
|
7297
|
-
if (
|
|
7298
|
-
for (const j of
|
|
7299
|
-
for (const E of
|
|
7299
|
+
if (a.modelValue)
|
|
7300
|
+
for (const j of a.modelValue)
|
|
7301
|
+
for (const E of a.options)
|
|
7300
7302
|
E.values ? E.values.forEach((Q) => {
|
|
7301
7303
|
Q.value === j && W.push(Q);
|
|
7302
7304
|
}) : E.value === j && W.push(E);
|
|
7303
7305
|
return W;
|
|
7304
7306
|
} else
|
|
7305
|
-
return
|
|
7307
|
+
return a.options.find((W) => {
|
|
7306
7308
|
var j, E;
|
|
7307
|
-
return ((j = W.value) == null ? void 0 : j.toString()) === ((E =
|
|
7309
|
+
return ((j = W.value) == null ? void 0 : j.toString()) === ((E = a.modelValue) == null ? void 0 : E.toString());
|
|
7308
7310
|
});
|
|
7309
7311
|
}), S = (W) => {
|
|
7310
7312
|
var E;
|
|
7311
7313
|
if (W.isDisabled)
|
|
7312
7314
|
return;
|
|
7313
7315
|
let j;
|
|
7314
|
-
if (
|
|
7315
|
-
const Q = (
|
|
7316
|
-
if (!Q &&
|
|
7316
|
+
if (a.multiple) {
|
|
7317
|
+
const Q = (a.modelValue || []).find((U) => U === W.value);
|
|
7318
|
+
if (!Q && a.maxOptionAllowed && ((E = K.value) == null ? void 0 : E.length) >= Number(a.maxOptionAllowed)) {
|
|
7317
7319
|
o("max-option-allowed-set");
|
|
7318
7320
|
return;
|
|
7319
7321
|
}
|
|
7320
|
-
j = Q ? (
|
|
7322
|
+
j = Q ? (a.modelValue || []).filter((U) => U !== W.value) : [...a.modelValue || [], W.value];
|
|
7321
7323
|
} else
|
|
7322
7324
|
j = W.value, c.value = !1;
|
|
7323
7325
|
o("update:modelValue", j);
|
|
7324
7326
|
}, y = (W) => {
|
|
7325
7327
|
o(
|
|
7326
7328
|
"update:modelValue",
|
|
7327
|
-
(
|
|
7329
|
+
(a.modelValue || []).filter((j) => j !== W)
|
|
7328
7330
|
);
|
|
7329
7331
|
}, I = () => {
|
|
7330
|
-
|
|
7332
|
+
a.isAsynchronousSearch || (B.value ? o("update:modelValue", null) : o(
|
|
7331
7333
|
"update:modelValue",
|
|
7332
7334
|
z.value.map((W) => W.value)
|
|
7333
7335
|
));
|
|
@@ -7347,19 +7349,19 @@ const lt = /* @__PURE__ */ be(ks, [["render", Cs]]), Ss = { class: "flex" }, Is
|
|
|
7347
7349
|
const b = J("100%"), Z = V(() => ({ maxWidth: b.value })), N = () => {
|
|
7348
7350
|
var W, j, E, Q;
|
|
7349
7351
|
o("toggle"), b.value = (j = (W = O.value) == null ? void 0 : W.$el) != null && j.offsetWidth ? `${(Q = (E = O.value) == null ? void 0 : E.$el) == null ? void 0 : Q.offsetWidth}px` : "100%", setTimeout(() => {
|
|
7350
|
-
var
|
|
7352
|
+
var ce, ve, ye;
|
|
7351
7353
|
let U, ee;
|
|
7352
|
-
if (Array.isArray(
|
|
7353
|
-
z.value.find((Ae,
|
|
7354
|
+
if (Array.isArray(a.modelValue) ? U = a.modelValue[0] ?? null : U = a.modelValue, !U) return;
|
|
7355
|
+
z.value.find((Ae, oe) => {
|
|
7354
7356
|
if (Ae.value === U)
|
|
7355
|
-
return ee =
|
|
7357
|
+
return ee = oe, !0;
|
|
7356
7358
|
});
|
|
7357
|
-
const ae = g.value[ee], ne = (
|
|
7359
|
+
const ae = g.value[ee], ne = (ce = ae == null ? void 0 : ae.optionItemRef) == null ? void 0 : ce.offsetTop;
|
|
7358
7360
|
(ye = (ve = v.value) == null ? void 0 : ve.parentNode) == null || ye.scrollTo(0, ne - 60, { behavior: "smooth" });
|
|
7359
7361
|
}, 10);
|
|
7360
7362
|
}, q = (W) => {
|
|
7361
7363
|
var E, Q, U;
|
|
7362
|
-
if (
|
|
7364
|
+
if (a.isLoading)
|
|
7363
7365
|
return;
|
|
7364
7366
|
((E = W.target) == null ? void 0 : E.scrollHeight) - Math.round((Q = W.target) == null ? void 0 : Q.scrollTop) <= ((U = W.target) == null ? void 0 : U.clientHeight) && o("loadMore");
|
|
7365
7367
|
};
|
|
@@ -7510,7 +7512,7 @@ const lt = /* @__PURE__ */ be(ks, [["render", Cs]]), Ss = { class: "flex" }, Is
|
|
|
7510
7512
|
}, [
|
|
7511
7513
|
e.multiple ? (t(), i("div", md, [
|
|
7512
7514
|
w(W.$slots, "selection", {}, () => [
|
|
7513
|
-
(t(!0), i(Y, null, H(e.maxVisibleOptions ? K.value.slice(0, e.maxVisibleOptions) : K.value, (E) => (t(), A(s(
|
|
7515
|
+
(t(!0), i(Y, null, H(e.maxVisibleOptions ? K.value.slice(0, e.maxVisibleOptions) : K.value, (E) => (t(), A(s(de), D({
|
|
7514
7516
|
key: E.value,
|
|
7515
7517
|
closable: "",
|
|
7516
7518
|
variant: E.variant,
|
|
@@ -7519,7 +7521,7 @@ const lt = /* @__PURE__ */ be(ks, [["render", Cs]]), Ss = { class: "flex" }, Is
|
|
|
7519
7521
|
"should-truncate-chip": "",
|
|
7520
7522
|
onRemove: (Q) => y(E.value)
|
|
7521
7523
|
}), null, 16, ["variant", "label", "onRemove"]))), 128)),
|
|
7522
|
-
e.maxVisibleOptions && K.value.length > e.maxVisibleOptions ? (t(), A(s(
|
|
7524
|
+
e.maxVisibleOptions && K.value.length > e.maxVisibleOptions ? (t(), A(s(de), {
|
|
7523
7525
|
key: 0,
|
|
7524
7526
|
label: `+${K.value.length - e.maxVisibleOptions}`
|
|
7525
7527
|
}, null, 8, ["label"])) : u("", !0)
|
|
@@ -7613,12 +7615,12 @@ const lt = /* @__PURE__ */ be(ks, [["render", Cs]]), Ss = { class: "flex" }, Is
|
|
|
7613
7615
|
},
|
|
7614
7616
|
emits: ["select", "show:children", "hide:children"],
|
|
7615
7617
|
setup(e, { expose: r }) {
|
|
7616
|
-
const
|
|
7618
|
+
const l = J();
|
|
7617
7619
|
return r({
|
|
7618
|
-
optionItemRef:
|
|
7619
|
-
}), (
|
|
7620
|
+
optionItemRef: l
|
|
7621
|
+
}), (a, o) => (t(), i("div", {
|
|
7620
7622
|
ref_key: "optionItemRef",
|
|
7621
|
-
ref:
|
|
7623
|
+
ref: l,
|
|
7622
7624
|
class: "w-full flex flex-wrap relative hover:bg-oc-accent-1-50 rounded-sm"
|
|
7623
7625
|
}, [
|
|
7624
7626
|
n("div", {
|
|
@@ -7626,7 +7628,7 @@ const lt = /* @__PURE__ */ be(ks, [["render", Cs]]), Ss = { class: "flex" }, Is
|
|
|
7626
7628
|
"bg-oc-accent-1-50": e.isSelected && !e.isCheckboxes,
|
|
7627
7629
|
"opacity-50 hover:bg-white !cursor-default": e.isDisabled
|
|
7628
7630
|
}]),
|
|
7629
|
-
onClick: o[0] || (o[0] = (d) =>
|
|
7631
|
+
onClick: o[0] || (o[0] = (d) => a.$emit("select"))
|
|
7630
7632
|
}, [
|
|
7631
7633
|
e.isCheckboxes ? (t(), A(s(Ke), {
|
|
7632
7634
|
key: 0,
|
|
@@ -7635,16 +7637,16 @@ const lt = /* @__PURE__ */ be(ks, [["render", Cs]]), Ss = { class: "flex" }, Is
|
|
|
7635
7637
|
class: "!w-fit pointer-events-none"
|
|
7636
7638
|
}, null, 8, ["model-value", "is-partial"])) : u("", !0),
|
|
7637
7639
|
n("div", bd, [
|
|
7638
|
-
w(
|
|
7640
|
+
w(a.$slots, "trailing"),
|
|
7639
7641
|
n("div", {
|
|
7640
7642
|
class: p(["flex flex-col gap-3 overflow-hidden", { "flex-1": e.isCheckboxes }])
|
|
7641
7643
|
}, [
|
|
7642
7644
|
n("span", xd, x(e.label), 1),
|
|
7643
|
-
w(
|
|
7645
|
+
w(a.$slots, "sub-label", {}, () => [
|
|
7644
7646
|
e.subLabel ? (t(), i("span", kd, x(e.subLabel), 1)) : u("", !0)
|
|
7645
7647
|
])
|
|
7646
7648
|
], 2),
|
|
7647
|
-
w(
|
|
7649
|
+
w(a.$slots, "leading")
|
|
7648
7650
|
]),
|
|
7649
7651
|
e.isSelected && !e.isCheckboxes ? (t(), A(s(L), {
|
|
7650
7652
|
key: 1,
|
|
@@ -7656,9 +7658,9 @@ const lt = /* @__PURE__ */ be(ks, [["render", Cs]]), Ss = { class: "flex" }, Is
|
|
|
7656
7658
|
key: 0,
|
|
7657
7659
|
class: p(["w-6 h-6 absolute right-[10px] top-[8px] cursor-pointer", e.showChildren ? "rotate-180" : ""]),
|
|
7658
7660
|
name: "chevron-down",
|
|
7659
|
-
onClick: o[1] || (o[1] = (d) => e.showChildren ?
|
|
7661
|
+
onClick: o[1] || (o[1] = (d) => e.showChildren ? a.$emit("hide:children") : a.$emit("show:children"))
|
|
7660
7662
|
}, null, 8, ["class"])) : u("", !0),
|
|
7661
|
-
w(
|
|
7663
|
+
w(a.$slots, "after")
|
|
7662
7664
|
], 512));
|
|
7663
7665
|
}
|
|
7664
7666
|
}, wd = { class: "flex flex-col" }, Cd = { class: "px-3 pt-3 pb-2 border-y border-white text-oc-text uppercase text-xs font-medium" }, Xf = {
|
|
@@ -7667,7 +7669,7 @@ const lt = /* @__PURE__ */ be(ks, [["render", Cs]]), Ss = { class: "flex" }, Is
|
|
|
7667
7669
|
label: String
|
|
7668
7670
|
},
|
|
7669
7671
|
setup(e) {
|
|
7670
|
-
return (r,
|
|
7672
|
+
return (r, l) => (t(), i("div", wd, [
|
|
7671
7673
|
n("div", Cd, x(e.label), 1),
|
|
7672
7674
|
w(r.$slots, "default")
|
|
7673
7675
|
]));
|
|
@@ -7722,14 +7724,14 @@ const lt = /* @__PURE__ */ be(ks, [["render", Cs]]), Ss = { class: "flex" }, Is
|
|
|
7722
7724
|
},
|
|
7723
7725
|
setup(e, { emit: r }) {
|
|
7724
7726
|
var K, S;
|
|
7725
|
-
const
|
|
7726
|
-
() =>
|
|
7727
|
-
), f = V(() => m.value.preFill ?? ""), g = J(
|
|
7727
|
+
const l = e, a = r, o = J(!1), d = J(l.type ?? ((S = (K = l.links) == null ? void 0 : K[0]) == null ? void 0 : S.value)), c = J(l.title ?? ""), m = V(
|
|
7728
|
+
() => l.links.find((y) => y.value === d.value) ?? {}
|
|
7729
|
+
), f = V(() => m.value.preFill ?? ""), g = J(l.modelValue ? l.modelValue.replace(f.value, "") : ""), v = (y) => {
|
|
7728
7730
|
var O;
|
|
7729
|
-
const I = (O =
|
|
7730
|
-
|
|
7731
|
+
const I = (O = l.links.find((b) => b.value === y)) == null ? void 0 : O.preFill;
|
|
7732
|
+
a("update:modelValue", l.modelValue.replace(f.value, I)), d.value = y, a("update:type", y), o.value = !1;
|
|
7731
7733
|
}, k = (y) => {
|
|
7732
|
-
g.value = y,
|
|
7734
|
+
g.value = y, a("update:modelValue", f.value + y), !l.isEdit && d.value !== "link" && a("update:title", y);
|
|
7733
7735
|
}, B = V(() => m.value.placeholder ?? ""), z = V(() => d.value === "link");
|
|
7734
7736
|
return (y, I) => (t(), i("div", null, [
|
|
7735
7737
|
z.value || e.isEdit ? (t(), A(s(xe), {
|
|
@@ -7836,9 +7838,9 @@ const lt = /* @__PURE__ */ be(ks, [["render", Cs]]), Ss = { class: "flex" }, Is
|
|
|
7836
7838
|
"update:modelValue": []
|
|
7837
7839
|
},
|
|
7838
7840
|
setup(e, { emit: r }) {
|
|
7839
|
-
const
|
|
7841
|
+
const l = r, a = J(!1), o = (d) => {
|
|
7840
7842
|
const c = d.target;
|
|
7841
|
-
c && (c.style.height = zd, c.style.height = c.scrollHeight + "px",
|
|
7843
|
+
c && (c.style.height = zd, c.style.height = c.scrollHeight + "px", l("update:modelValue", c.value));
|
|
7842
7844
|
};
|
|
7843
7845
|
return (d, c) => (t(), A(s(ke), {
|
|
7844
7846
|
label: e.label,
|
|
@@ -7852,7 +7854,7 @@ const lt = /* @__PURE__ */ be(ks, [["render", Cs]]), Ss = { class: "flex" }, Is
|
|
|
7852
7854
|
default: C(() => [
|
|
7853
7855
|
n("textarea", {
|
|
7854
7856
|
class: p(["outline-none p-3 min-h-[120px] rounded border resize-none disabled:bg-oc-bg-dark", [
|
|
7855
|
-
|
|
7857
|
+
a.value ? "focused-shadow" : "",
|
|
7856
7858
|
e.errorMessage ? "error-shadow" : "input-shadow"
|
|
7857
7859
|
]]),
|
|
7858
7860
|
disabled: e.isDisabled,
|
|
@@ -7860,8 +7862,8 @@ const lt = /* @__PURE__ */ be(ks, [["render", Cs]]), Ss = { class: "flex" }, Is
|
|
|
7860
7862
|
rows: e.rows,
|
|
7861
7863
|
placeholder: e.placeholder,
|
|
7862
7864
|
onInput: o,
|
|
7863
|
-
onFocus: c[0] || (c[0] = (m) =>
|
|
7864
|
-
onBlur: c[1] || (c[1] = (m) =>
|
|
7865
|
+
onFocus: c[0] || (c[0] = (m) => a.value = !0),
|
|
7866
|
+
onBlur: c[1] || (c[1] = (m) => a.value = !1)
|
|
7865
7867
|
}, null, 42, Kd)
|
|
7866
7868
|
]),
|
|
7867
7869
|
_: 1
|
|
@@ -7874,11 +7876,11 @@ function _e(e) {
|
|
|
7874
7876
|
var Pe = { exports: {} }, jd = Pe.exports, ht;
|
|
7875
7877
|
function Bd() {
|
|
7876
7878
|
return ht || (ht = 1, function(e, r) {
|
|
7877
|
-
(function(
|
|
7878
|
-
e.exports =
|
|
7879
|
+
(function(l, a) {
|
|
7880
|
+
e.exports = a();
|
|
7879
7881
|
})(jd, function() {
|
|
7880
|
-
return function(
|
|
7881
|
-
|
|
7882
|
+
return function(l, a, o) {
|
|
7883
|
+
a.prototype.isBetween = function(d, c, m, f) {
|
|
7882
7884
|
var g = o(d), v = o(c), k = (f = f || "()")[0] === "(", B = f[1] === ")";
|
|
7883
7885
|
return (k ? this.isAfter(g, m) : !this.isBefore(g, m)) && (B ? this.isBefore(v, m) : !this.isAfter(v, m)) || (k ? this.isBefore(g, m) : !this.isAfter(g, m)) && (B ? this.isAfter(v, m) : !this.isBefore(v, m));
|
|
7884
7886
|
};
|
|
@@ -7891,11 +7893,11 @@ const Bt = /* @__PURE__ */ _e(Jd);
|
|
|
7891
7893
|
var Re = { exports: {} }, Nd = Re.exports, yt;
|
|
7892
7894
|
function Wd() {
|
|
7893
7895
|
return yt || (yt = 1, function(e, r) {
|
|
7894
|
-
(function(
|
|
7895
|
-
e.exports =
|
|
7896
|
+
(function(l, a) {
|
|
7897
|
+
e.exports = a();
|
|
7896
7898
|
})(Nd, function() {
|
|
7897
|
-
return function(
|
|
7898
|
-
|
|
7899
|
+
return function(l, a) {
|
|
7900
|
+
a.prototype.isSameOrBefore = function(o, d) {
|
|
7899
7901
|
return this.isSame(o, d) || this.isBefore(o, d);
|
|
7900
7902
|
};
|
|
7901
7903
|
};
|
|
@@ -7907,11 +7909,11 @@ const Jt = /* @__PURE__ */ _e(qd);
|
|
|
7907
7909
|
var Qe = { exports: {} }, Vd = Qe.exports, bt;
|
|
7908
7910
|
function Yd() {
|
|
7909
7911
|
return bt || (bt = 1, function(e, r) {
|
|
7910
|
-
(function(
|
|
7911
|
-
e.exports =
|
|
7912
|
+
(function(l, a) {
|
|
7913
|
+
e.exports = a();
|
|
7912
7914
|
})(Vd, function() {
|
|
7913
|
-
return function(
|
|
7914
|
-
|
|
7915
|
+
return function(l, a) {
|
|
7916
|
+
a.prototype.isSameOrAfter = function(o, d) {
|
|
7915
7917
|
return this.isSame(o, d) || this.isAfter(o, d);
|
|
7916
7918
|
};
|
|
7917
7919
|
};
|
|
@@ -7923,10 +7925,10 @@ const Nt = /* @__PURE__ */ _e(Md);
|
|
|
7923
7925
|
var Xe = { exports: {} }, Gd = Xe.exports, xt;
|
|
7924
7926
|
function Hd() {
|
|
7925
7927
|
return xt || (xt = 1, function(e, r) {
|
|
7926
|
-
(function(
|
|
7927
|
-
e.exports =
|
|
7928
|
+
(function(l, a) {
|
|
7929
|
+
e.exports = a();
|
|
7928
7930
|
})(Gd, function() {
|
|
7929
|
-
var
|
|
7931
|
+
var l = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" }, a = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, o = /\d/, d = /\d\d/, c = /\d\d?/, m = /\d*[^-_:/,()\s\d]+/, f = {}, g = function(y) {
|
|
7930
7932
|
return (y = +y) + (y > 68 ? 1900 : 2e3);
|
|
7931
7933
|
}, v = function(y) {
|
|
7932
7934
|
return function(I) {
|
|
@@ -7983,10 +7985,10 @@ function Hd() {
|
|
|
7983
7985
|
I = y, O = f && f.formats;
|
|
7984
7986
|
for (var b = (y = I.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(Q, U, ee) {
|
|
7985
7987
|
var ae = ee && ee.toUpperCase();
|
|
7986
|
-
return U || O[ee] ||
|
|
7987
|
-
return
|
|
7988
|
+
return U || O[ee] || l[ee] || O[ae].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(ne, ce, ve) {
|
|
7989
|
+
return ce || ve.slice(1);
|
|
7988
7990
|
});
|
|
7989
|
-
})).match(
|
|
7991
|
+
})).match(a), Z = b.length, N = 0; N < Z; N += 1) {
|
|
7990
7992
|
var q = b[N], W = K[q], j = W && W[0], E = W && W[1];
|
|
7991
7993
|
b[N] = E ? { regex: j, parser: E } : q.replace(/^\[|\]$/g, "");
|
|
7992
7994
|
}
|
|
@@ -7995,15 +7997,15 @@ function Hd() {
|
|
|
7995
7997
|
var ne = b[ee];
|
|
7996
7998
|
if (typeof ne == "string") ae += ne.length;
|
|
7997
7999
|
else {
|
|
7998
|
-
var
|
|
8000
|
+
var ce = ne.regex, ve = ne.parser, ye = Q.slice(ae), Ae = ce.exec(ye)[0];
|
|
7999
8001
|
ve.call(U, Ae), Q = Q.replace(Ae, "");
|
|
8000
8002
|
}
|
|
8001
8003
|
}
|
|
8002
|
-
return function(
|
|
8003
|
-
var we =
|
|
8004
|
+
return function(oe) {
|
|
8005
|
+
var we = oe.afternoon;
|
|
8004
8006
|
if (we !== void 0) {
|
|
8005
|
-
var ue =
|
|
8006
|
-
we ? ue < 12 && (
|
|
8007
|
+
var ue = oe.hours;
|
|
8008
|
+
we ? ue < 12 && (oe.hours += 12) : ue === 12 && (oe.hours = 0), delete oe.afternoon;
|
|
8007
8009
|
}
|
|
8008
8010
|
}(U), U;
|
|
8009
8011
|
};
|
|
@@ -8017,25 +8019,25 @@ function Hd() {
|
|
|
8017
8019
|
var E = j[1];
|
|
8018
8020
|
if (typeof E == "string") {
|
|
8019
8021
|
var Q = j[2] === !0, U = j[3] === !0, ee = Q || U, ae = j[2];
|
|
8020
|
-
U && (ae = j[2]), f = this.$locale(), !Q && ae && (f = O.Ls[ae]), this.$d = function(ye, Ae,
|
|
8022
|
+
U && (ae = j[2]), f = this.$locale(), !Q && ae && (f = O.Ls[ae]), this.$d = function(ye, Ae, oe, we) {
|
|
8021
8023
|
try {
|
|
8022
8024
|
if (["x", "X"].indexOf(Ae) > -1) return new Date((Ae === "X" ? 1e3 : 1) * ye);
|
|
8023
8025
|
var ue = S(Ae)(ye), Ze = ue.year, Ie = ue.month, G = ue.day, R = ue.hours, M = ue.minutes, T = ue.seconds, P = ue.milliseconds, _ = ue.zone, te = ue.week, Ye = /* @__PURE__ */ new Date(), Me = G || (Ze || Ie ? 1 : Ye.getDate()), Le = Ze || Ye.getFullYear(), Oe = 0;
|
|
8024
8026
|
Ze && !Ie || (Oe = Ie > 0 ? Ie - 1 : Ye.getMonth());
|
|
8025
8027
|
var Ne, je = R || 0, Ee = M || 0, et = T || 0, tt = P || 0;
|
|
8026
|
-
return _ ? new Date(Date.UTC(Le, Oe, Me, je, Ee, et, tt + 60 * _.offset * 1e3)) :
|
|
8028
|
+
return _ ? new Date(Date.UTC(Le, Oe, Me, je, Ee, et, tt + 60 * _.offset * 1e3)) : oe ? new Date(Date.UTC(Le, Oe, Me, je, Ee, et, tt)) : (Ne = new Date(Le, Oe, Me, je, Ee, et, tt), te && (Ne = we(Ne).week(te).toDate()), Ne);
|
|
8027
8029
|
} catch {
|
|
8028
8030
|
return /* @__PURE__ */ new Date("");
|
|
8029
8031
|
}
|
|
8030
8032
|
}(q, E, W, O), this.init(), ae && ae !== !0 && (this.$L = this.locale(ae).$L), ee && q != this.format(E) && (this.$d = /* @__PURE__ */ new Date("")), f = {};
|
|
8031
|
-
} else if (E instanceof Array) for (var ne = E.length,
|
|
8032
|
-
j[1] = E[
|
|
8033
|
+
} else if (E instanceof Array) for (var ne = E.length, ce = 1; ce <= ne; ce += 1) {
|
|
8034
|
+
j[1] = E[ce - 1];
|
|
8033
8035
|
var ve = O.apply(this, j);
|
|
8034
8036
|
if (ve.isValid()) {
|
|
8035
8037
|
this.$d = ve.$d, this.$L = ve.$L, this.init();
|
|
8036
8038
|
break;
|
|
8037
8039
|
}
|
|
8038
|
-
|
|
8040
|
+
ce === ne && (this.$d = /* @__PURE__ */ new Date(""));
|
|
8039
8041
|
}
|
|
8040
8042
|
else Z.call(this, N);
|
|
8041
8043
|
};
|
|
@@ -8047,14 +8049,14 @@ var Td = Hd();
|
|
|
8047
8049
|
const st = /* @__PURE__ */ _e(Td);
|
|
8048
8050
|
var Ed = typeof global == "object" && global && global.Object === Object && global, Dd = typeof self == "object" && self && self.Object === Object && self, Wt = Ed || Dd || Function("return this")(), $e = Wt.Symbol, qt = Object.prototype, Pd = qt.hasOwnProperty, Rd = qt.toString, Ge = $e ? $e.toStringTag : void 0;
|
|
8049
8051
|
function Qd(e) {
|
|
8050
|
-
var r = Pd.call(e, Ge),
|
|
8052
|
+
var r = Pd.call(e, Ge), l = e[Ge];
|
|
8051
8053
|
try {
|
|
8052
8054
|
e[Ge] = void 0;
|
|
8053
|
-
var
|
|
8055
|
+
var a = !0;
|
|
8054
8056
|
} catch {
|
|
8055
8057
|
}
|
|
8056
8058
|
var o = Rd.call(e);
|
|
8057
|
-
return
|
|
8059
|
+
return a && (r ? e[Ge] = l : delete e[Ge]), o;
|
|
8058
8060
|
}
|
|
8059
8061
|
var Xd = Object.prototype, Fd = Xd.toString;
|
|
8060
8062
|
function Ud(e) {
|
|
@@ -8098,20 +8100,20 @@ function Ct(e) {
|
|
|
8098
8100
|
if (typeof e != "string")
|
|
8099
8101
|
return e === 0 ? e : +e;
|
|
8100
8102
|
e = sc(e);
|
|
8101
|
-
var
|
|
8102
|
-
return
|
|
8103
|
+
var l = dc.test(e);
|
|
8104
|
+
return l || cc.test(e) ? uc(e.slice(2), l ? 2 : 8) : rc.test(e) ? wt : +e;
|
|
8103
8105
|
}
|
|
8104
8106
|
var at = function() {
|
|
8105
8107
|
return Wt.Date.now();
|
|
8106
8108
|
}, mc = "Expected a function", fc = Math.max, pc = Math.min;
|
|
8107
|
-
function vc(e, r,
|
|
8108
|
-
var
|
|
8109
|
+
function vc(e, r, l) {
|
|
8110
|
+
var a, o, d, c, m, f, g = 0, v = !1, k = !1, B = !0;
|
|
8109
8111
|
if (typeof e != "function")
|
|
8110
8112
|
throw new TypeError(mc);
|
|
8111
|
-
r = Ct(r) || 0, nt(
|
|
8113
|
+
r = Ct(r) || 0, nt(l) && (v = !!l.leading, k = "maxWait" in l, d = k ? fc(Ct(l.maxWait) || 0, r) : d, B = "trailing" in l ? !!l.trailing : B);
|
|
8112
8114
|
function z(q) {
|
|
8113
|
-
var W =
|
|
8114
|
-
return
|
|
8115
|
+
var W = a, j = o;
|
|
8116
|
+
return a = o = void 0, g = q, c = e.apply(j, W), c;
|
|
8115
8117
|
}
|
|
8116
8118
|
function K(q) {
|
|
8117
8119
|
return g = q, m = setTimeout(I, r), v ? z(q) : c;
|
|
@@ -8131,17 +8133,17 @@ function vc(e, r, a) {
|
|
|
8131
8133
|
m = setTimeout(I, S(q));
|
|
8132
8134
|
}
|
|
8133
8135
|
function O(q) {
|
|
8134
|
-
return m = void 0, B &&
|
|
8136
|
+
return m = void 0, B && a ? z(q) : (a = o = void 0, c);
|
|
8135
8137
|
}
|
|
8136
8138
|
function b() {
|
|
8137
|
-
m !== void 0 && clearTimeout(m), g = 0,
|
|
8139
|
+
m !== void 0 && clearTimeout(m), g = 0, a = f = o = m = void 0;
|
|
8138
8140
|
}
|
|
8139
8141
|
function Z() {
|
|
8140
8142
|
return m === void 0 ? c : O(at());
|
|
8141
8143
|
}
|
|
8142
8144
|
function N() {
|
|
8143
8145
|
var q = at(), W = y(q);
|
|
8144
|
-
if (
|
|
8146
|
+
if (a = arguments, o = this, f = q, W) {
|
|
8145
8147
|
if (m === void 0)
|
|
8146
8148
|
return K(f);
|
|
8147
8149
|
if (k)
|
|
@@ -8197,7 +8199,7 @@ const gc = { class: "flex items-center justify-between" }, Ac = { class: "flex f
|
|
|
8197
8199
|
emits: ["update:modelValue", "reset-calendar", "update:isIndefinite"],
|
|
8198
8200
|
setup(e, { emit: r }) {
|
|
8199
8201
|
$.extend(Bt), $.extend(Jt), $.extend(Nt), $.extend(st);
|
|
8200
|
-
const
|
|
8202
|
+
const l = e, a = r, o = J(), d = J(), c = J(), m = J(), f = J(), g = J(), v = J(), k = J(!1), B = J(!1), z = J(!1), K = J(!1), S = V(() => l.type === "range"), y = V(() => {
|
|
8201
8203
|
const T = o.value.endOf("month").date();
|
|
8202
8204
|
return Array.from({ length: T }, (P, _) => _ + 1);
|
|
8203
8205
|
}), I = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], O = V(() => o.value.format("MMMM YYYY")), b = V(
|
|
@@ -8230,7 +8232,7 @@ const gc = { class: "flex items-center justify-between" }, Ac = { class: "flex f
|
|
|
8230
8232
|
v.value = null, o.value = o.value.set("year", M), z.value = !1;
|
|
8231
8233
|
}, ne = () => {
|
|
8232
8234
|
v.value = null, z.value ? g.value = g.value.subtract(11, "year") : o.value = o.value.subtract(1, "year");
|
|
8233
|
-
},
|
|
8235
|
+
}, ce = () => {
|
|
8234
8236
|
v.value = null, z.value ? g.value = g.value.add(11, "year") : o.value = o.value.add(1, "year");
|
|
8235
8237
|
}, ve = () => {
|
|
8236
8238
|
z.value = !1, K.value = !K.value;
|
|
@@ -8242,16 +8244,16 @@ const gc = { class: "flex items-center justify-between" }, Ac = { class: "flex f
|
|
|
8242
8244
|
N.value.to,
|
|
8243
8245
|
null,
|
|
8244
8246
|
"[]"
|
|
8245
|
-
) : !1 : m.value && f.value && m.value <= M && f.value >= M,
|
|
8247
|
+
) : !1 : m.value && f.value && m.value <= M && f.value >= M, oe = (M) => {
|
|
8246
8248
|
const T = o.value.date(M);
|
|
8247
|
-
return
|
|
8249
|
+
return l.disabledDate(T.toDate()) || l.minDate && T.isBefore($(l.minDate), "day") || l.maxDate && T.isAfter($(l.maxDate), "day");
|
|
8248
8250
|
}, we = () => {
|
|
8249
|
-
S.value && (
|
|
8251
|
+
S.value && (oe(d.value.toDate()) || oe(c.value.toDate())) || (B.value = !1, a(
|
|
8250
8252
|
"update:modelValue",
|
|
8251
8253
|
S.value ? [N.value.from, N.value.to].map((M) => M.toDate()) : d.value.toDate()
|
|
8252
8254
|
));
|
|
8253
8255
|
}, ue = (M) => {
|
|
8254
|
-
|
|
8256
|
+
a("update:isIndefinite", M);
|
|
8255
8257
|
}, Ze = (M, T = !0) => {
|
|
8256
8258
|
if (!S.value) {
|
|
8257
8259
|
let _ = $(O.value, "MMMM YYYY").date(M);
|
|
@@ -8268,8 +8270,8 @@ const gc = { class: "flex items-center justify-between" }, Ac = { class: "flex f
|
|
|
8268
8270
|
B.value && Ze(M, !1);
|
|
8269
8271
|
}, 50), G = () => {
|
|
8270
8272
|
var T, P, _;
|
|
8271
|
-
const M = S.value ? (T =
|
|
8272
|
-
o.value = $(M), g.value = $(M), d.value = M && o.value, m.value = M && d.value.date(), !(!S.value || !M) && (c.value = $((P =
|
|
8273
|
+
const M = S.value ? (T = l.modelValue) == null ? void 0 : T[0] : l.modelValue;
|
|
8274
|
+
o.value = $(M), g.value = $(M), d.value = M && o.value, m.value = M && d.value.date(), !(!S.value || !M) && (c.value = $((P = l.modelValue) == null ? void 0 : P[1]), f.value = ((_ = c.value) == null ? void 0 : _.month()) === o.value.month() ? c.value.date() : void 0);
|
|
8273
8275
|
}, R = (M) => {
|
|
8274
8276
|
const T = M + 11, P = [];
|
|
8275
8277
|
for (; M <= T; )
|
|
@@ -8306,7 +8308,7 @@ const gc = { class: "flex items-center justify-between" }, Ac = { class: "flex f
|
|
|
8306
8308
|
h(s(F), {
|
|
8307
8309
|
"left-icon": "chevron-right",
|
|
8308
8310
|
"is-transparent": "",
|
|
8309
|
-
onClick:
|
|
8311
|
+
onClick: ce
|
|
8310
8312
|
})
|
|
8311
8313
|
]),
|
|
8312
8314
|
z.value ? (t(), i("div", xc, [
|
|
@@ -8361,7 +8363,7 @@ const gc = { class: "flex items-center justify-between" }, Ac = { class: "flex f
|
|
|
8361
8363
|
key: P,
|
|
8362
8364
|
class: p(["w-9 rounded-full flex cursor-pointer items-center relative justify-center h-9", [
|
|
8363
8365
|
ye(P) ? "bg-oc-primary text-white" : "hover:bg-oc-primary-50-tr",
|
|
8364
|
-
|
|
8366
|
+
oe(P) ? "pointer-events-none opacity-[.35]" : "",
|
|
8365
8367
|
S.value ? {
|
|
8366
8368
|
...Ae(P) && {
|
|
8367
8369
|
"before:bg-oc-primary-50-tr before:px-3 before:w-[calc(100%+0.5rem)] before:h-full before:absolute": !0,
|
|
@@ -8393,7 +8395,7 @@ const gc = { class: "flex items-center justify-between" }, Ac = { class: "flex f
|
|
|
8393
8395
|
label: "Reset",
|
|
8394
8396
|
class: "w-[72px]",
|
|
8395
8397
|
"is-disabled": k.value,
|
|
8396
|
-
onClick: T[4] || (T[4] = (P) =>
|
|
8398
|
+
onClick: T[4] || (T[4] = (P) => a("reset-calendar"))
|
|
8397
8399
|
}, null, 8, ["is-disabled"])
|
|
8398
8400
|
])
|
|
8399
8401
|
], 2));
|
|
@@ -8499,37 +8501,37 @@ const Kc = { class: "flex flex-col gap-y-2 w-full" }, zc = {
|
|
|
8499
8501
|
emits: ["update:modelValue", "resetCalendar", "error"],
|
|
8500
8502
|
setup(e, { emit: r }) {
|
|
8501
8503
|
$.extend(st);
|
|
8502
|
-
const
|
|
8503
|
-
$(
|
|
8504
|
-
$(
|
|
8505
|
-
] : ["", ""] :
|
|
8506
|
-
|
|
8504
|
+
const l = r, a = e, o = J(!1), d = J(!1), c = J(!1), m = J([]), f = V(() => a.type === "range"), g = V(() => f.value ? a.modelValue && a.modelValue[0] ? [
|
|
8505
|
+
$(a.modelValue[0], a.dateFormat),
|
|
8506
|
+
$(a.modelValue[1], a.dateFormat)
|
|
8507
|
+
] : ["", ""] : a.modelValue ? $(a.modelValue, a.dateFormat) : ""), v = (y) => {
|
|
8508
|
+
a.type === "range" ? l(
|
|
8507
8509
|
"update:modelValue",
|
|
8508
8510
|
y ? [
|
|
8509
|
-
$(y.start).format(
|
|
8510
|
-
$(y.end).format(
|
|
8511
|
+
$(y.start).format(a.dateFormat),
|
|
8512
|
+
$(y.end).format(a.dateFormat)
|
|
8511
8513
|
] : []
|
|
8512
|
-
) :
|
|
8514
|
+
) : l("update:modelValue", $(y).format(a.dateFormat)), o.value = !1;
|
|
8513
8515
|
}, k = () => {
|
|
8514
|
-
|
|
8516
|
+
l("resetCalendar"), l("update:modelValue", f.value ? [] : null), o.value = !1;
|
|
8515
8517
|
}, B = (y) => {
|
|
8516
8518
|
const I = $(y);
|
|
8517
8519
|
return ((b) => b.get("month") === $().get("month"))(I);
|
|
8518
8520
|
}, z = (y) => {
|
|
8519
|
-
d.value = y,
|
|
8521
|
+
d.value = y, l("update:modelValue", y ? "Indefinite" : null);
|
|
8520
8522
|
}, K = (y, I) => {
|
|
8521
8523
|
var b;
|
|
8522
|
-
const O = $(y,
|
|
8523
|
-
m.value[I] = O.format(
|
|
8524
|
+
const O = $(y, a.dateFormat, !0);
|
|
8525
|
+
m.value[I] = O.format(a.dateFormat), m.value[I ? 0 : 1] = ((b = a.modelValue) == null ? void 0 : b[I ? 0 : 1]) || $().format(a.dateFormat);
|
|
8524
8526
|
}, S = () => {
|
|
8525
8527
|
if (m.value.length) {
|
|
8526
|
-
if (c.value = !1, m.value.some((y) => !$(y,
|
|
8528
|
+
if (c.value = !1, m.value.some((y) => !$(y, a.dateFormat).isValid())) {
|
|
8527
8529
|
c.value = !0, m.value = [];
|
|
8528
8530
|
return;
|
|
8529
8531
|
}
|
|
8530
|
-
|
|
8531
|
-
(y) => $(y,
|
|
8532
|
-
)),
|
|
8532
|
+
a.maxDate && (m.value = m.value.map(
|
|
8533
|
+
(y) => $(y, a.dateFormat).isSameOrBefore($(a.maxDate)) ? y : $(a.maxDate).format(a.dateFormat)
|
|
8534
|
+
)), l("update:modelValue", m.value), m.value = [];
|
|
8533
8535
|
}
|
|
8534
8536
|
};
|
|
8535
8537
|
return (y, I) => (t(), A(s(pe), {
|
|
@@ -8686,23 +8688,23 @@ const Kc = { class: "flex flex-col gap-y-2 w-full" }, zc = {
|
|
|
8686
8688
|
emits: {
|
|
8687
8689
|
"update:modelValue": []
|
|
8688
8690
|
},
|
|
8689
|
-
setup(e, { expose: r, emit:
|
|
8690
|
-
const
|
|
8691
|
+
setup(e, { expose: r, emit: l }) {
|
|
8692
|
+
const a = e, o = l, d = J(), c = J(), m = J(), f = J(0), g = J(0), v = () => {
|
|
8691
8693
|
var S, y;
|
|
8692
|
-
|
|
8694
|
+
a.type === "range" && parseInt((S = c.value) == null ? void 0 : S.value) - parseInt((y = d.value) == null ? void 0 : y.value) <= a.minGap && (d.value.value = parseInt(c.value.value) - a.minGap), B();
|
|
8693
8695
|
}, k = () => {
|
|
8694
8696
|
var S, y, I;
|
|
8695
|
-
parseInt((S = c.value) == null ? void 0 : S.value) - parseInt((y = d.value) == null ? void 0 : y.value) <=
|
|
8697
|
+
parseInt((S = c.value) == null ? void 0 : S.value) - parseInt((y = d.value) == null ? void 0 : y.value) <= a.minGap && (c.value.value = parseInt((I = d.value) == null ? void 0 : I.value) + a.minGap), B();
|
|
8696
8698
|
}, B = (S = !1) => {
|
|
8697
8699
|
var y, I, O, b;
|
|
8698
|
-
f.value = (((y = d.value) == null ? void 0 : y.value) -
|
|
8700
|
+
f.value = (((y = d.value) == null ? void 0 : y.value) - a.minLimit) / (a.maxLimit - a.minLimit) * 100, g.value = a.type === "range" ? (((I = c.value) == null ? void 0 : I.value) - a.minLimit) / (a.maxLimit - a.minLimit) * 100 : 0, m.value.style.background = a.type === "range" ? `linear-gradient(to right, var(--oc-gray-100) ${f.value}% , var(--oc-primary-500) ${f.value}% , var(--oc-primary-500) ${g.value}%, var(--oc-gray-100) ${g.value}%)` : `linear-gradient(to right, var(--oc-primary-500) ${f.value}%, var(--oc-gray-100) ${f.value}%)`, S || o(
|
|
8699
8701
|
"update:modelValue",
|
|
8700
|
-
|
|
8702
|
+
a.type === "range" ? [(O = d.value) == null ? void 0 : O.value, (b = c.value) == null ? void 0 : b.value] : d.value.value
|
|
8701
8703
|
);
|
|
8702
8704
|
}, z = (S) => {
|
|
8703
8705
|
S.key >= "0" && S.key <= "9" || S.key === "Backspace" || S.preventDefault();
|
|
8704
8706
|
}, K = (S) => {
|
|
8705
|
-
S && S[0] && S[1] &&
|
|
8707
|
+
S && S[0] && S[1] && a.type === "range" ? (d.value.value = Number(S[0]), c.value.value = Number(S[1]), v(), a.type === "range" && k()) : S && a.type === "default" ? S <= a.maxLimit && S >= a.minLimit && (d.value.value = Number(S), v()) : B(!0);
|
|
8706
8708
|
};
|
|
8707
8709
|
return r({
|
|
8708
8710
|
updateSlider: K
|
|
@@ -8745,12 +8747,12 @@ const Kc = { class: "flex flex-col gap-y-2 w-full" }, zc = {
|
|
|
8745
8747
|
e.variant === "default" ? (t(), i("div", {
|
|
8746
8748
|
key: 1,
|
|
8747
8749
|
class: "group-hover:block absolute top-[1rem] z-[1] -translate-x-1/2 rounded-sm py-[3px] px-[6px] min-w-[28px] bg-oc-text-500 text-center text-white text-sm font-medium leading-[20px]",
|
|
8748
|
-
style:
|
|
8750
|
+
style: re(`left: ${f.value}%`)
|
|
8749
8751
|
}, x(e.type === "range" ? (b = e.modelValue) == null ? void 0 : b[0] : e.modelValue), 5)) : u("", !0),
|
|
8750
8752
|
e.type === "range" ? (t(), i("div", {
|
|
8751
8753
|
key: 2,
|
|
8752
8754
|
class: "group-hover:block absolute top-[1rem] z-[1] translate-x-1/2 rounded-sm py-[3px] px-[6px] min-w-[28px] bg-oc-text-500 text-center text-white text-sm font-medium leading-[20px]",
|
|
8753
|
-
style:
|
|
8755
|
+
style: re(`right: ${100 - g.value}%`)
|
|
8754
8756
|
}, x((Z = e.modelValue) == null ? void 0 : Z[1]), 5)) : u("", !0),
|
|
8755
8757
|
n("span", Hc, [
|
|
8756
8758
|
w(S.$slots, "min-limit-label", {}, () => [
|
|
@@ -8803,12 +8805,12 @@ const Kc = { class: "flex flex-col gap-y-2 w-full" }, zc = {
|
|
|
8803
8805
|
},
|
|
8804
8806
|
emits: ["update:modelValue"],
|
|
8805
8807
|
setup(e, { emit: r }) {
|
|
8806
|
-
const
|
|
8807
|
-
return
|
|
8808
|
+
const l = e, a = r;
|
|
8809
|
+
return l.defaultValue === !0 && (l.modelValue === null || l.modelValue === void 0) && a("update:modelValue", !0), (o, d) => (t(), i("div", Pc, [
|
|
8808
8810
|
n("div", Rc, [
|
|
8809
8811
|
n("div", Qc, [
|
|
8810
8812
|
X(x(e.title) + " ", 1),
|
|
8811
|
-
h(s(
|
|
8813
|
+
h(s(se), {
|
|
8812
8814
|
position: "top",
|
|
8813
8815
|
distance: 4
|
|
8814
8816
|
}, {
|
|
@@ -8892,9 +8894,9 @@ const Kc = { class: "flex flex-col gap-y-2 w-full" }, zc = {
|
|
|
8892
8894
|
"update:modelValue": []
|
|
8893
8895
|
},
|
|
8894
8896
|
setup(e, { emit: r }) {
|
|
8895
|
-
const
|
|
8896
|
-
|
|
8897
|
-
}, d = V(() =>
|
|
8897
|
+
const l = e, a = r, o = (c) => {
|
|
8898
|
+
a("update:modelValue", c);
|
|
8899
|
+
}, d = V(() => l.variant === "grid");
|
|
8898
8900
|
return (c, m) => (t(), A(s(ke), {
|
|
8899
8901
|
label: e.label,
|
|
8900
8902
|
hint: e.hint,
|
|
@@ -8907,7 +8909,7 @@ const Kc = { class: "flex flex-col gap-y-2 w-full" }, zc = {
|
|
|
8907
8909
|
default: C(() => [
|
|
8908
8910
|
n("div", {
|
|
8909
8911
|
class: p(["gap-3", [
|
|
8910
|
-
|
|
8912
|
+
l.class,
|
|
8911
8913
|
d.value ? "grid-cols-3" : e.variant === "list2" ? "grid-cols-2" : "",
|
|
8912
8914
|
{
|
|
8913
8915
|
"w-full grid": e.optionType !== "icon",
|
|
@@ -9000,9 +9002,9 @@ const Kc = { class: "flex flex-col gap-y-2 w-full" }, zc = {
|
|
|
9000
9002
|
},
|
|
9001
9003
|
emits: ["change", "update:uploadedImage", "delete"],
|
|
9002
9004
|
setup(e, { emit: r }) {
|
|
9003
|
-
const
|
|
9004
|
-
const k =
|
|
9005
|
-
k.fileUrl = g, k.fileName = Date.now(), k.cropper = v, k.isEdit = !0, d.value = !1, c.value = "",
|
|
9005
|
+
const l = e, a = r, o = J(!1), d = J(!1), c = J(""), m = J(!1), f = ({ url: g, cropper: v }) => {
|
|
9006
|
+
const k = l.uploadedImage;
|
|
9007
|
+
k.fileUrl = g, k.fileName = Date.now(), k.cropper = v, k.isEdit = !0, d.value = !1, c.value = "", a("update:uploadedImage", k);
|
|
9006
9008
|
};
|
|
9007
9009
|
return (g, v) => {
|
|
9008
9010
|
var k, B;
|
|
@@ -9165,11 +9167,11 @@ const Kc = { class: "flex flex-col gap-y-2 w-full" }, zc = {
|
|
|
9165
9167
|
"invalidFileType"
|
|
9166
9168
|
],
|
|
9167
9169
|
setup(e, { emit: r }) {
|
|
9168
|
-
const
|
|
9169
|
-
|
|
9170
|
-
|
|
9171
|
-
|
|
9172
|
-
|
|
9170
|
+
const l = e, a = r, o = J(), d = J(""), c = J(""), m = J(!0), f = J(!1), g = J(!1), v = J(!1), k = J(""), { currentFiles: B, onChangeFile: z, onDeleteFile: K } = Kt(
|
|
9171
|
+
l.maxSize,
|
|
9172
|
+
a,
|
|
9173
|
+
l.accept,
|
|
9174
|
+
l.validateAcceptFileType
|
|
9173
9175
|
), S = V(() => {
|
|
9174
9176
|
var W;
|
|
9175
9177
|
return URL.createObjectURL((W = B.value) == null ? void 0 : W[0].file);
|
|
@@ -9178,17 +9180,17 @@ const Kc = { class: "flex flex-col gap-y-2 w-full" }, zc = {
|
|
|
9178
9180
|
return (W = B.value) == null ? void 0 : W[0];
|
|
9179
9181
|
});
|
|
9180
9182
|
Se(() => {
|
|
9181
|
-
if (
|
|
9183
|
+
if (l.modelValue && l.modelValue.current) {
|
|
9182
9184
|
const W = [
|
|
9183
9185
|
{
|
|
9184
|
-
current:
|
|
9186
|
+
current: l.modelValue.current,
|
|
9185
9187
|
file: null,
|
|
9186
|
-
fileName:
|
|
9188
|
+
fileName: l.modelValue.current.caption ?? "",
|
|
9187
9189
|
progress: 100,
|
|
9188
|
-
fileUrl:
|
|
9189
|
-
totalSize:
|
|
9190
|
+
fileUrl: l.modelValue.current.path,
|
|
9191
|
+
totalSize: l.modelValue.current.file_size ?? 0,
|
|
9190
9192
|
isLoaded: !0,
|
|
9191
|
-
extension:
|
|
9193
|
+
extension: l.modelValue.current.extension ?? "png"
|
|
9192
9194
|
}
|
|
9193
9195
|
];
|
|
9194
9196
|
B.value = W;
|
|
@@ -9197,11 +9199,11 @@ const Kc = { class: "flex flex-col gap-y-2 w-full" }, zc = {
|
|
|
9197
9199
|
const I = (W) => {
|
|
9198
9200
|
W.preventDefault();
|
|
9199
9201
|
const j = W.dataTransfer.files;
|
|
9200
|
-
z({ target: { files: j } },
|
|
9202
|
+
z({ target: { files: j } }, l.format === "object");
|
|
9201
9203
|
}, O = () => {
|
|
9202
|
-
!d.value || !c.value ||
|
|
9204
|
+
!d.value || !c.value || a("update:modelValue", { fileName: c, fileLink: d });
|
|
9203
9205
|
}, b = (W) => {
|
|
9204
|
-
y.value.fileUrl = W, y.value.fileName = Date.now(), v.value = !1, k.value = "",
|
|
9206
|
+
y.value.fileUrl = W, y.value.fileName = Date.now(), v.value = !1, k.value = "", a("update:modelValue", l.format === "object" ? y.value : [y.value]);
|
|
9205
9207
|
}, Z = async (W) => {
|
|
9206
9208
|
if (W)
|
|
9207
9209
|
try {
|
|
@@ -9213,7 +9215,7 @@ const Kc = { class: "flex flex-col gap-y-2 w-full" }, zc = {
|
|
|
9213
9215
|
}, N = () => {
|
|
9214
9216
|
k.value = y.value.fileUrl, g.value = !1, v.value = !0;
|
|
9215
9217
|
}, q = (W) => {
|
|
9216
|
-
|
|
9218
|
+
a("update:modelValue", W);
|
|
9217
9219
|
};
|
|
9218
9220
|
return (W, j) => (t(), A(s(ke), {
|
|
9219
9221
|
label: e.label,
|
|
@@ -9225,7 +9227,7 @@ const Kc = { class: "flex flex-col gap-y-2 w-full" }, zc = {
|
|
|
9225
9227
|
w(W.$slots, "hint")
|
|
9226
9228
|
]),
|
|
9227
9229
|
default: C(() => {
|
|
9228
|
-
var E, Q, U, ee, ae, ne,
|
|
9230
|
+
var E, Q, U, ee, ae, ne, ce, ve, ye, Ae, oe, we, ue, Ze, Ie;
|
|
9229
9231
|
return [
|
|
9230
9232
|
e.isImageOnly ? (t(), A(ru, {
|
|
9231
9233
|
key: 0,
|
|
@@ -9234,7 +9236,7 @@ const Kc = { class: "flex flex-col gap-y-2 w-full" }, zc = {
|
|
|
9234
9236
|
"image-classes": e.imageClasses,
|
|
9235
9237
|
"show-upload-image-area": e.showUploadImageArea,
|
|
9236
9238
|
"onUpdate:uploadedImage": q,
|
|
9237
|
-
onChange: j[0] || (j[0] = (G) => s(z)(G,
|
|
9239
|
+
onChange: j[0] || (j[0] = (G) => s(z)(G, l.format === "object")),
|
|
9238
9240
|
onDelete: j[1] || (j[1] = (G) => s(K)(0))
|
|
9239
9241
|
}, null, 8, ["accept", "uploaded-image", "image-classes", "show-upload-image-area"])) : e.isButtonOnly ? (t(), i(Y, { key: 1 }, [
|
|
9240
9242
|
h(s(F), D(e.buttonUploadProps, {
|
|
@@ -9249,7 +9251,7 @@ const Kc = { class: "flex flex-col gap-y-2 w-full" }, zc = {
|
|
|
9249
9251
|
class: "hidden",
|
|
9250
9252
|
type: "file",
|
|
9251
9253
|
accept: e.accept,
|
|
9252
|
-
onChange: j[3] || (j[3] = (G) => s(z)(G,
|
|
9254
|
+
onChange: j[3] || (j[3] = (G) => s(z)(G, l.format === "object"))
|
|
9253
9255
|
}, null, 40, du)
|
|
9254
9256
|
], 64)) : (t(), i(Y, { key: 2 }, [
|
|
9255
9257
|
s(B).length ? (t(), i("div", {
|
|
@@ -9267,7 +9269,7 @@ const Kc = { class: "flex flex-col gap-y-2 w-full" }, zc = {
|
|
|
9267
9269
|
src: S.value
|
|
9268
9270
|
}, null, 8, vu)) : (t(), i("img", {
|
|
9269
9271
|
key: 1,
|
|
9270
|
-
src: (
|
|
9272
|
+
src: (ce = y.value) == null ? void 0 : ce.fileUrl
|
|
9271
9273
|
}, null, 8, gu)),
|
|
9272
9274
|
h(s(pe), {
|
|
9273
9275
|
modelValue: g.value,
|
|
@@ -9336,7 +9338,7 @@ const Kc = { class: "flex flex-col gap-y-2 w-full" }, zc = {
|
|
|
9336
9338
|
]),
|
|
9337
9339
|
n("div", {
|
|
9338
9340
|
class: p([e.shouldTruncateFileName ? "truncate max-w-[250px]" : ""])
|
|
9339
|
-
}, x((
|
|
9341
|
+
}, x((oe = y.value) == null ? void 0 : oe.fileName), 3)
|
|
9340
9342
|
]),
|
|
9341
9343
|
n("div", xu, [
|
|
9342
9344
|
n("div", {
|
|
@@ -9346,7 +9348,7 @@ const Kc = { class: "flex flex-col gap-y-2 w-full" }, zc = {
|
|
|
9346
9348
|
n("div", wu, [
|
|
9347
9349
|
n("div", {
|
|
9348
9350
|
class: "h-2 bg-oc-primary transition-all duration-100",
|
|
9349
|
-
style:
|
|
9351
|
+
style: re({ width: `${((Ze = y.value) == null ? void 0 : Ze.progress) || 0}%` })
|
|
9350
9352
|
}, null, 4)
|
|
9351
9353
|
])
|
|
9352
9354
|
], 2),
|
|
@@ -9414,7 +9416,7 @@ const Kc = { class: "flex flex-col gap-y-2 w-full" }, zc = {
|
|
|
9414
9416
|
class: "hidden",
|
|
9415
9417
|
type: "file",
|
|
9416
9418
|
accept: e.accept,
|
|
9417
|
-
onChange: j[11] || (j[11] = (G) => s(z)(G,
|
|
9419
|
+
onChange: j[11] || (j[11] = (G) => s(z)(G, l.format === "object"))
|
|
9418
9420
|
}, null, 40, fu)
|
|
9419
9421
|
])
|
|
9420
9422
|
]))
|
|
@@ -9468,36 +9470,36 @@ const Kc = { class: "flex flex-col gap-y-2 w-full" }, zc = {
|
|
|
9468
9470
|
"invalidFileType"
|
|
9469
9471
|
],
|
|
9470
9472
|
setup(e, { emit: r }) {
|
|
9471
|
-
const
|
|
9473
|
+
const l = e, a = r, o = J([]), d = J(!1), c = J(""), m = J({}), f = V(() => l.uploadedImages[c.value].fileUrl), g = J(!1), v = J(""), k = (b) => {
|
|
9472
9474
|
g.value = !0, v.value = b;
|
|
9473
9475
|
}, B = J(!1), z = () => {
|
|
9474
|
-
const b =
|
|
9475
|
-
b.current ?
|
|
9476
|
+
const b = l.uploadedImages.find((Z, N) => N === v.value);
|
|
9477
|
+
b.current ? a("onRemoveImage", b) : (a("delete", v.value), B.value = !0, setTimeout(() => {
|
|
9476
9478
|
B.value = !1;
|
|
9477
|
-
}, 1e3)),
|
|
9479
|
+
}, 1e3)), a(
|
|
9478
9480
|
"update:uploadedImages",
|
|
9479
|
-
|
|
9481
|
+
l.uploadedImages.filter((Z, N) => N !== v.value)
|
|
9480
9482
|
), g.value = !1;
|
|
9481
9483
|
}, K = ({ url: b, cropper: Z }) => {
|
|
9482
|
-
const N =
|
|
9483
|
-
N.fileUrl = b, N.fileName = Date.now(),
|
|
9484
|
+
const N = l.uploadedImages[c.value];
|
|
9485
|
+
N.fileUrl = b, N.fileName = Date.now(), a("onEditImage", { ...N, index: c.value, cropper: Z }), d.value = !1, c.value = "", m.value = {};
|
|
9484
9486
|
}, S = (b) => {
|
|
9485
|
-
let Z =
|
|
9487
|
+
let Z = l.uploadedImages[c.value];
|
|
9486
9488
|
Object.keys(b).forEach((N) => {
|
|
9487
9489
|
Z[N] = b[N];
|
|
9488
|
-
}),
|
|
9490
|
+
}), a("update:uploadedImages", l.uploadedImages);
|
|
9489
9491
|
}, y = (b) => {
|
|
9490
|
-
let Z =
|
|
9491
|
-
if (
|
|
9492
|
-
|
|
9492
|
+
let Z = l.uploadedImages.length + b.target.files.length > l.maxImages;
|
|
9493
|
+
if (l.maxImages && Z) {
|
|
9494
|
+
a("onMaxFileExceed", Z);
|
|
9493
9495
|
return;
|
|
9494
9496
|
}
|
|
9495
|
-
|
|
9497
|
+
a("change", b);
|
|
9496
9498
|
}, I = V(
|
|
9497
|
-
() =>
|
|
9499
|
+
() => l.maxImages == null || l.maxImages && l.uploadedImages.length < l.maxImages
|
|
9498
9500
|
), O = (b, Z) => {
|
|
9499
9501
|
var N;
|
|
9500
|
-
c.value = b, (N =
|
|
9502
|
+
c.value = b, (N = l.inputOptions) == null || N.forEach((q) => {
|
|
9501
9503
|
m.value[q] = Z[q], q === "caption" && (m.value.caption_variant = Z.caption_variant);
|
|
9502
9504
|
}), o[b] = !1, d.value = !0;
|
|
9503
9505
|
};
|
|
@@ -9510,7 +9512,7 @@ const Kc = { class: "flex flex-col gap-y-2 w-full" }, zc = {
|
|
|
9510
9512
|
class: "hidden",
|
|
9511
9513
|
type: "file",
|
|
9512
9514
|
accept: e.accept || "image/png, image/jpeg",
|
|
9513
|
-
multiple:
|
|
9515
|
+
multiple: l.maxImages !== 1,
|
|
9514
9516
|
disabled: e.isDisabled || B.value,
|
|
9515
9517
|
onChange: y
|
|
9516
9518
|
}, null, 40, Zu)
|
|
@@ -9521,7 +9523,7 @@ const Kc = { class: "flex flex-col gap-y-2 w-full" }, zc = {
|
|
|
9521
9523
|
disabled: e.isDisabled,
|
|
9522
9524
|
filter: "filtered-el",
|
|
9523
9525
|
class: "grid w-fit grid-cols-3 gap-3",
|
|
9524
|
-
style:
|
|
9526
|
+
style: re(`grid-template-columns: repeat(${e.columnsCount}, 1fr)`),
|
|
9525
9527
|
"onUpdate:modelValue": Z[0] || (Z[0] = (N) => e.isDisabled ? null : b.$emit("update:uploadedImages", N))
|
|
9526
9528
|
}, {
|
|
9527
9529
|
default: C(({ list: N }) => [
|
|
@@ -9531,7 +9533,7 @@ const Kc = { class: "flex flex-col gap-y-2 w-full" }, zc = {
|
|
|
9531
9533
|
"border-oc-primary": e.selectedImage.fileName === q.fileName,
|
|
9532
9534
|
"col-start-2": W === 0 && I.value
|
|
9533
9535
|
}]),
|
|
9534
|
-
style:
|
|
9536
|
+
style: re(`background-image: url(${q.fileUrl})`),
|
|
9535
9537
|
onClick: (j) => b.$emit("update:selectedImage", q)
|
|
9536
9538
|
}, [
|
|
9537
9539
|
e.isDisabled ? u("", !0) : (t(), A(s(pe), {
|
|
@@ -9591,12 +9593,12 @@ const Kc = { class: "flex flex-col gap-y-2 w-full" }, zc = {
|
|
|
9591
9593
|
}, [
|
|
9592
9594
|
n("div", {
|
|
9593
9595
|
class: "h-full bg-oc-primary rounded-full w-0 transition-all duration-500",
|
|
9594
|
-
style:
|
|
9596
|
+
style: re({ width: `${q.progress || 0}%` })
|
|
9595
9597
|
}, null, 4)
|
|
9596
9598
|
], 2)
|
|
9597
9599
|
], 2),
|
|
9598
9600
|
e.isDisabled ? u("", !0) : (t(), i("div", ju, [
|
|
9599
|
-
|
|
9601
|
+
l.maxImages !== 1 ? (t(), i("span", Bu, [
|
|
9600
9602
|
h(s(L), {
|
|
9601
9603
|
name: "arrows",
|
|
9602
9604
|
class: "text-oc-accent-1-50"
|
|
@@ -9683,15 +9685,15 @@ const Kc = { class: "flex flex-col gap-y-2 w-full" }, zc = {
|
|
|
9683
9685
|
"onMaxFileExceed"
|
|
9684
9686
|
],
|
|
9685
9687
|
setup(e, { emit: r }) {
|
|
9686
|
-
const
|
|
9687
|
-
|
|
9688
|
-
|
|
9689
|
-
|
|
9690
|
-
|
|
9688
|
+
const l = r, a = e, o = J(), d = J(!1), c = J(!1), { isErrorMaxSize: m, currentFiles: f, onChangeFile: g, onDeleteFile: v } = Kt(
|
|
9689
|
+
a.maxSize,
|
|
9690
|
+
l,
|
|
9691
|
+
a.accept,
|
|
9692
|
+
a.validateAcceptFileType
|
|
9691
9693
|
);
|
|
9692
9694
|
Se(() => {
|
|
9693
9695
|
const K = [];
|
|
9694
|
-
|
|
9696
|
+
a.modelValue.length > 0 && (a.modelValue.forEach((S) => {
|
|
9695
9697
|
S.current && K.push({
|
|
9696
9698
|
current: S.current,
|
|
9697
9699
|
file: null,
|
|
@@ -9800,7 +9802,7 @@ const Kc = { class: "flex flex-col gap-y-2 w-full" }, zc = {
|
|
|
9800
9802
|
}, [
|
|
9801
9803
|
n("div", Hu, [
|
|
9802
9804
|
n("div", {
|
|
9803
|
-
style:
|
|
9805
|
+
style: re({ width: `${y.progress}%` }),
|
|
9804
9806
|
class: "block transition-all duration-1000 h-[6px] rounded-full bg-oc-primary"
|
|
9805
9807
|
}, null, 4)
|
|
9806
9808
|
])
|
|
@@ -9883,8 +9885,8 @@ const Kc = { class: "flex flex-col gap-y-2 w-full" }, zc = {
|
|
|
9883
9885
|
},
|
|
9884
9886
|
emits: ["update:modelValue"],
|
|
9885
9887
|
setup(e, { emit: r }) {
|
|
9886
|
-
const
|
|
9887
|
-
Number(
|
|
9888
|
+
const l = e, a = r, o = () => a("update:modelValue", Number(l.modelValue) + 1), d = () => {
|
|
9889
|
+
Number(l.modelValue) > l.minValue && a("update:modelValue", Number(l.modelValue) - 1);
|
|
9888
9890
|
}, c = (m) => {
|
|
9889
9891
|
m.key >= "0" && m.key <= "9" || m.key === "Backspace" || m.preventDefault();
|
|
9890
9892
|
};
|
|
@@ -9968,14 +9970,14 @@ const Kc = { class: "flex flex-col gap-y-2 w-full" }, zc = {
|
|
|
9968
9970
|
"update:modelValue": [],
|
|
9969
9971
|
scroll: []
|
|
9970
9972
|
},
|
|
9971
|
-
setup(e, { expose: r, emit:
|
|
9972
|
-
const
|
|
9973
|
+
setup(e, { expose: r, emit: l }) {
|
|
9974
|
+
const a = l, o = e, d = J(), c = J(), m = async (z) => {
|
|
9973
9975
|
z != null && z.target && (o.isDisabled || setTimeout(() => {
|
|
9974
9976
|
var K, S;
|
|
9975
|
-
(S = (K = d.value) == null ? void 0 : K.popperInstance) == null || S.update(),
|
|
9977
|
+
(S = (K = d.value) == null ? void 0 : K.popperInstance) == null || S.update(), a("update:modelValue", !o.modelValue);
|
|
9976
9978
|
}, 30));
|
|
9977
9979
|
}, f = (z) => {
|
|
9978
|
-
o.isAttachToBody && !o.preventClickOutside && d.value.checkElementIsInsidePopper(z.target) || o.modelValue && !o.preventClickOutside &&
|
|
9980
|
+
o.isAttachToBody && !o.preventClickOutside && d.value.checkElementIsInsidePopper(z.target) || o.modelValue && !o.preventClickOutside && a("update:modelValue", !1);
|
|
9979
9981
|
}, g = J(), v = J(0);
|
|
9980
9982
|
me(() => o.modelValue, async () => {
|
|
9981
9983
|
var b, Z;
|
|
@@ -10015,7 +10017,7 @@ const Kc = { class: "flex flex-col gap-y-2 w-full" }, zc = {
|
|
|
10015
10017
|
ref_key: "dropdownScroll",
|
|
10016
10018
|
ref: c,
|
|
10017
10019
|
class: p([e.menuClasses, "rounded bg-oc-bg-light shadow min-w-[162px] overflow-y-auto"]),
|
|
10018
|
-
style:
|
|
10020
|
+
style: re({
|
|
10019
10021
|
maxHeight: (e.maxMenuHeight || v.value) - 68 + "px"
|
|
10020
10022
|
}),
|
|
10021
10023
|
onScroll: K[0] || (K[0] = (S) => z.$emit("scroll", S))
|
|
@@ -10075,7 +10077,7 @@ const Kc = { class: "flex flex-col gap-y-2 w-full" }, zc = {
|
|
|
10075
10077
|
default: "text-oc-text",
|
|
10076
10078
|
destructive: "text-oc-error"
|
|
10077
10079
|
}));
|
|
10078
|
-
return (
|
|
10080
|
+
return (l, a) => (t(), i("div", {
|
|
10079
10081
|
class: p(["flex flex-col cursor-pointer rounded-sm hover:bg-oc-accent-1-50", r.value[e.variant]])
|
|
10080
10082
|
}, [
|
|
10081
10083
|
n("div", _u, [
|
|
@@ -10086,7 +10088,7 @@ const Kc = { class: "flex flex-col gap-y-2 w-full" }, zc = {
|
|
|
10086
10088
|
name: e.icon
|
|
10087
10089
|
}, e.iconProps, { class: e.iconClasses }), null, 16, ["name", "class"])) : u("", !0),
|
|
10088
10090
|
n("span", null, x(e.text), 1),
|
|
10089
|
-
w(
|
|
10091
|
+
w(l.$slots, "badge")
|
|
10090
10092
|
]),
|
|
10091
10093
|
e.isBeta ? (t(), i("div", tm, " BETA ")) : e.isNew ? (t(), i("div", am, " NEW ")) : e.isTryIt ? (t(), i("div", lm, " TRY IT ")) : u("", !0)
|
|
10092
10094
|
]),
|
|
@@ -10153,27 +10155,27 @@ const Kc = { class: "flex flex-col gap-y-2 w-full" }, zc = {
|
|
|
10153
10155
|
}
|
|
10154
10156
|
},
|
|
10155
10157
|
setup(e) {
|
|
10156
|
-
const r = e,
|
|
10158
|
+
const r = e, l = J(!1), a = J(), o = J(), d = J(), c = () => {
|
|
10157
10159
|
var g, v;
|
|
10158
|
-
|
|
10159
|
-
}, m = () =>
|
|
10160
|
+
l.value = !0, (v = (g = d.value) == null ? void 0 : g.popperInstance) == null || v.update(), r.hideAfter && setTimeout(() => m(), r.hideAfter);
|
|
10161
|
+
}, m = () => l.value = !1;
|
|
10160
10162
|
Se(() => {
|
|
10161
10163
|
if (r.trigger === "hover") {
|
|
10162
10164
|
const g = ["mouseenter", "focus"], v = ["mouseleave", "blur"];
|
|
10163
10165
|
g.forEach((k) => {
|
|
10164
|
-
|
|
10166
|
+
a.value.addEventListener(k, c);
|
|
10165
10167
|
}), v.forEach((k) => {
|
|
10166
|
-
|
|
10168
|
+
a.value.addEventListener(k, m);
|
|
10167
10169
|
}), r.isPopover && (g.forEach((k) => {
|
|
10168
10170
|
o.value.addEventListener(k, c);
|
|
10169
10171
|
}), v.forEach((k) => {
|
|
10170
10172
|
o.value.addEventListener(k, m);
|
|
10171
10173
|
}));
|
|
10172
10174
|
} else
|
|
10173
|
-
|
|
10175
|
+
a.value.addEventListener("click", () => l.value ? m() : c());
|
|
10174
10176
|
});
|
|
10175
10177
|
const f = () => {
|
|
10176
|
-
|
|
10178
|
+
l.value && m();
|
|
10177
10179
|
};
|
|
10178
10180
|
return (g, v) => ze((t(), i("span", im, [
|
|
10179
10181
|
h(s(Zt), {
|
|
@@ -10196,7 +10198,7 @@ const Kc = { class: "flex flex-col gap-y-2 w-full" }, zc = {
|
|
|
10196
10198
|
w(g.$slots, "popper", {}, void 0, !0),
|
|
10197
10199
|
e.arrowHidden ? u("", !0) : (t(), i("div", om))
|
|
10198
10200
|
], 2), [
|
|
10199
|
-
[Te,
|
|
10201
|
+
[Te, l.value]
|
|
10200
10202
|
])
|
|
10201
10203
|
]),
|
|
10202
10204
|
_: 3
|
|
@@ -10205,7 +10207,7 @@ const Kc = { class: "flex flex-col gap-y-2 w-full" }, zc = {
|
|
|
10205
10207
|
default: C(() => [
|
|
10206
10208
|
n("div", {
|
|
10207
10209
|
ref_key: "triggerEl",
|
|
10208
|
-
ref:
|
|
10210
|
+
ref: a,
|
|
10209
10211
|
class: "w-[inherit] relative"
|
|
10210
10212
|
}, [
|
|
10211
10213
|
w(g.$slots, "default", {}, void 0, !0)
|
|
@@ -10217,7 +10219,7 @@ const Kc = { class: "flex flex-col gap-y-2 w-full" }, zc = {
|
|
|
10217
10219
|
[s(ot), f]
|
|
10218
10220
|
]);
|
|
10219
10221
|
}
|
|
10220
|
-
},
|
|
10222
|
+
}, se = /* @__PURE__ */ be(sm, [["__scopeId", "data-v-554a2980"]]), rm = {
|
|
10221
10223
|
key: 0,
|
|
10222
10224
|
id: "modal-overlay-wrapper",
|
|
10223
10225
|
class: "fixed w-screen z-[1008] top-0 left-0 h-full min-h-screen bg-black/[.45] flex items-center justify-center"
|
|
@@ -10296,12 +10298,12 @@ const Kc = { class: "flex flex-col gap-y-2 w-full" }, zc = {
|
|
|
10296
10298
|
"content-scroll"
|
|
10297
10299
|
],
|
|
10298
10300
|
setup(e, { emit: r }) {
|
|
10299
|
-
const
|
|
10300
|
-
|
|
10301
|
+
const l = e, a = r, o = () => {
|
|
10302
|
+
l.preventClose || a("update:modelValue", !1);
|
|
10301
10303
|
}, d = async () => {
|
|
10302
|
-
|
|
10304
|
+
a("click:outside"), !l.persistent && l.modelValue && o();
|
|
10303
10305
|
}, c = () => {
|
|
10304
|
-
|
|
10306
|
+
a("cancel"), o();
|
|
10305
10307
|
}, m = V(() => ({
|
|
10306
10308
|
default: "max-w-[640px]",
|
|
10307
10309
|
medium: "max-w-[480px]",
|
|
@@ -10311,7 +10313,7 @@ const Kc = { class: "flex flex-col gap-y-2 w-full" }, zc = {
|
|
|
10311
10313
|
(k = f.value) == null || k.click();
|
|
10312
10314
|
};
|
|
10313
10315
|
return me(
|
|
10314
|
-
() =>
|
|
10316
|
+
() => l.modelValue,
|
|
10315
10317
|
() => {
|
|
10316
10318
|
setTimeout(() => {
|
|
10317
10319
|
var v;
|
|
@@ -10358,7 +10360,7 @@ const Kc = { class: "flex flex-col gap-y-2 w-full" }, zc = {
|
|
|
10358
10360
|
ref_key: "scrollArea",
|
|
10359
10361
|
ref: f,
|
|
10360
10362
|
class: p(["overflow-y-auto", [e.size === "small" ? "p-5" : "p-7", e.isBorderless ? "py-0" : ""]]),
|
|
10361
|
-
onScroll: k[1] || (k[1] = (B) =>
|
|
10363
|
+
onScroll: k[1] || (k[1] = (B) => a("content-scroll", B))
|
|
10362
10364
|
}, [
|
|
10363
10365
|
w(v.$slots, "default")
|
|
10364
10366
|
], 42, mm),
|
|
@@ -10421,17 +10423,17 @@ const Kc = { class: "flex flex-col gap-y-2 w-full" }, zc = {
|
|
|
10421
10423
|
},
|
|
10422
10424
|
emits: ["update:modelValue", "back", "click:outside"],
|
|
10423
10425
|
setup(e, { emit: r }) {
|
|
10424
|
-
const
|
|
10425
|
-
return (
|
|
10426
|
+
const l = r;
|
|
10427
|
+
return (a, o) => e.modelValue ? (t(), i("div", pm, [
|
|
10426
10428
|
n("div", vm, [
|
|
10427
|
-
w(
|
|
10429
|
+
w(a.$slots, "top"),
|
|
10428
10430
|
n("div", {
|
|
10429
10431
|
class: p(["relative z-[1008] shadow-normal max-w-[1440px] bg-[linear-gradient(180deg,_rgba(229,_238,_255,_0.5)_0%,_rgba(229,_238,_255,_0)_77.75%)] rounded-xl flex flex-col overflow-y-auto mx-auto", e.contentClass])
|
|
10430
10432
|
}, [
|
|
10431
10433
|
e.isBackButtonVisible ? (t(), i("div", {
|
|
10432
10434
|
key: 0,
|
|
10433
10435
|
class: "py-3 px-4 rounded cursor-pointer text-oc-gray-400 hover:bg-gray-100 hover:text-oc-text absolute top-5 left-5",
|
|
10434
|
-
onClick: o[0] || (o[0] = (d) =>
|
|
10436
|
+
onClick: o[0] || (o[0] = (d) => l("back"))
|
|
10435
10437
|
}, [
|
|
10436
10438
|
h(s(F), {
|
|
10437
10439
|
variant: "secondary",
|
|
@@ -10442,7 +10444,7 @@ const Kc = { class: "flex flex-col gap-y-2 w-full" }, zc = {
|
|
|
10442
10444
|
])) : u("", !0),
|
|
10443
10445
|
n("div", {
|
|
10444
10446
|
class: "flex gap-3 py-3 px-4 rounded cursor-pointer text-oc-gray-400 hover:bg-gray-100 hover:text-oc-text absolute top-5 right-5",
|
|
10445
|
-
onClick: o[1] || (o[1] = (d) =>
|
|
10447
|
+
onClick: o[1] || (o[1] = (d) => l("update:model-value", !1))
|
|
10446
10448
|
}, [
|
|
10447
10449
|
h(s(L), {
|
|
10448
10450
|
name: "x",
|
|
@@ -10452,7 +10454,7 @@ const Kc = { class: "flex flex-col gap-y-2 w-full" }, zc = {
|
|
|
10452
10454
|
o[2] || (o[2] = n("span", null, "Close", -1))
|
|
10453
10455
|
]),
|
|
10454
10456
|
n("div", gm, [
|
|
10455
|
-
w(
|
|
10457
|
+
w(a.$slots, "default")
|
|
10456
10458
|
])
|
|
10457
10459
|
], 2)
|
|
10458
10460
|
])
|
|
@@ -10480,25 +10482,25 @@ const Kc = { class: "flex flex-col gap-y-2 w-full" }, zc = {
|
|
|
10480
10482
|
warning: "alert",
|
|
10481
10483
|
success: "check-2",
|
|
10482
10484
|
question: "question-mark"
|
|
10483
|
-
},
|
|
10485
|
+
}, l = {
|
|
10484
10486
|
delete: "text-oc-error bg-oc-error-50-tr",
|
|
10485
10487
|
warning: "text-oc-warning-600 bg-oc-warning-50-tr",
|
|
10486
10488
|
success: "text-oc-success bg-oc-success-50-tr",
|
|
10487
10489
|
question: "text-oc-accent-1 bg-oc-accent-1-50-tr"
|
|
10488
10490
|
};
|
|
10489
|
-
return (
|
|
10491
|
+
return (a, o) => (t(), i("div", {
|
|
10490
10492
|
class: p(["flex flex-col gap-y-4 items-center", e.contentClass])
|
|
10491
10493
|
}, [
|
|
10492
10494
|
e.hideIcon ? u("", !0) : (t(), i("div", {
|
|
10493
10495
|
key: 0,
|
|
10494
|
-
class: p(["w-[48px] aspect-square rounded-full flex items-center justify-center", [
|
|
10496
|
+
class: p(["w-[48px] aspect-square rounded-full flex items-center justify-center", [l[e.variant], e.iconClass]])
|
|
10495
10497
|
}, [
|
|
10496
10498
|
h(s(L), {
|
|
10497
10499
|
name: e.icon ?? r[e.variant]
|
|
10498
10500
|
}, null, 8, ["name"])
|
|
10499
10501
|
], 2)),
|
|
10500
10502
|
n("div", Am, [
|
|
10501
|
-
w(
|
|
10503
|
+
w(a.$slots, "description", {}, () => [
|
|
10502
10504
|
n("span", { innerHTML: e.description }, null, 8, hm)
|
|
10503
10505
|
])
|
|
10504
10506
|
])
|
|
@@ -10547,7 +10549,7 @@ const Kc = { class: "flex flex-col gap-y-2 w-full" }, zc = {
|
|
|
10547
10549
|
},
|
|
10548
10550
|
emits: ["confirm", "cancel", "update:model-value"],
|
|
10549
10551
|
setup(e, { emit: r }) {
|
|
10550
|
-
const
|
|
10552
|
+
const l = e, a = r, o = V(() => ({
|
|
10551
10553
|
delete: {},
|
|
10552
10554
|
warning: {},
|
|
10553
10555
|
success: {
|
|
@@ -10560,22 +10562,22 @@ const Kc = { class: "flex flex-col gap-y-2 w-full" }, zc = {
|
|
|
10560
10562
|
delete: {
|
|
10561
10563
|
label: "Delete",
|
|
10562
10564
|
variant: "destructive",
|
|
10563
|
-
isLoading:
|
|
10565
|
+
isLoading: l.isLoading ?? !1
|
|
10564
10566
|
},
|
|
10565
10567
|
warning: {
|
|
10566
10568
|
label: "Delete",
|
|
10567
10569
|
variant: "destructive",
|
|
10568
|
-
isLoading:
|
|
10570
|
+
isLoading: l.isLoading ?? !1
|
|
10569
10571
|
},
|
|
10570
10572
|
success: {
|
|
10571
|
-
isLoading:
|
|
10573
|
+
isLoading: l.isLoading ?? !1
|
|
10572
10574
|
},
|
|
10573
10575
|
question: {
|
|
10574
10576
|
label: "Yes",
|
|
10575
|
-
isLoading:
|
|
10577
|
+
isLoading: l.isLoading ?? !1
|
|
10576
10578
|
}
|
|
10577
10579
|
})), c = (m) => {
|
|
10578
|
-
|
|
10580
|
+
a("update:model-value", m), a("cancel");
|
|
10579
10581
|
};
|
|
10580
10582
|
return (m, f) => (t(), A(s(fm), {
|
|
10581
10583
|
size: "small",
|
|
@@ -10661,13 +10663,13 @@ const Kc = { class: "flex flex-col gap-y-2 w-full" }, zc = {
|
|
|
10661
10663
|
const r = {
|
|
10662
10664
|
arrowHidden: !0
|
|
10663
10665
|
};
|
|
10664
|
-
return (
|
|
10666
|
+
return (l, a) => (t(), i("div", xm, [
|
|
10665
10667
|
h(s(pe), {
|
|
10666
10668
|
"model-value": e.modelValue,
|
|
10667
10669
|
"popper-options": r,
|
|
10668
10670
|
placement: "top-end",
|
|
10669
10671
|
distance: 8,
|
|
10670
|
-
"onUpdate:modelValue":
|
|
10672
|
+
"onUpdate:modelValue": a[0] || (a[0] = (o) => l.$emit("update:modelValue", o))
|
|
10671
10673
|
}, {
|
|
10672
10674
|
menu: C(() => [
|
|
10673
10675
|
n("div", Sm, [
|
|
@@ -10680,7 +10682,7 @@ const Kc = { class: "flex flex-col gap-y-2 w-full" }, zc = {
|
|
|
10680
10682
|
class: "text-sm"
|
|
10681
10683
|
}, { ref_for: !0 }, c), {
|
|
10682
10684
|
badge: C(() => [
|
|
10683
|
-
w(
|
|
10685
|
+
w(l.$slots, "badge", { item: c }),
|
|
10684
10686
|
c.isLoading ? (t(), A(s(L), {
|
|
10685
10687
|
key: 0,
|
|
10686
10688
|
width: "16",
|
|
@@ -10692,13 +10694,13 @@ const Kc = { class: "flex flex-col gap-y-2 w-full" }, zc = {
|
|
|
10692
10694
|
_: 2
|
|
10693
10695
|
}, 1040))), 128))
|
|
10694
10696
|
], 64))), 128)),
|
|
10695
|
-
|
|
10697
|
+
a[2] || (a[2] = n("div", { class: "w-full border-t border-gray-200" }, null, -1)),
|
|
10696
10698
|
(t(!0), i(Y, null, H(e.bottomMenu, (o, d) => (t(), A(s(Ce), D({
|
|
10697
10699
|
key: d,
|
|
10698
10700
|
class: "text-sm"
|
|
10699
10701
|
}, { ref_for: !0 }, o), {
|
|
10700
10702
|
badge: C(() => [
|
|
10701
|
-
w(
|
|
10703
|
+
w(l.$slots, "badge", { item: o }),
|
|
10702
10704
|
o.isLoading ? (t(), A(s(L), {
|
|
10703
10705
|
key: 0,
|
|
10704
10706
|
width: "16",
|
|
@@ -10713,7 +10715,7 @@ const Kc = { class: "flex flex-col gap-y-2 w-full" }, zc = {
|
|
|
10713
10715
|
]),
|
|
10714
10716
|
default: C(() => [
|
|
10715
10717
|
n("div", km, [
|
|
10716
|
-
e.isPointed ? (t(), i("div", wm,
|
|
10718
|
+
e.isPointed ? (t(), i("div", wm, a[1] || (a[1] = [
|
|
10717
10719
|
n("div", { class: "w-[6px] aspect-square rounded-full bg-oc-error" }, null, -1)
|
|
10718
10720
|
]))) : u("", !0),
|
|
10719
10721
|
n("div", Cm, [
|
|
@@ -10740,18 +10742,18 @@ const Kc = { class: "flex flex-col gap-y-2 w-full" }, zc = {
|
|
|
10740
10742
|
tooltipOptions: Object
|
|
10741
10743
|
},
|
|
10742
10744
|
setup(e) {
|
|
10743
|
-
const r = async (
|
|
10745
|
+
const r = async (l) => {
|
|
10744
10746
|
try {
|
|
10745
|
-
|
|
10747
|
+
l instanceof Blob ? await navigator.clipboard.write([
|
|
10746
10748
|
new ClipboardItem({
|
|
10747
|
-
[
|
|
10749
|
+
[l.type]: l
|
|
10748
10750
|
})
|
|
10749
|
-
]) : await navigator.clipboard.writeText(
|
|
10750
|
-
} catch (
|
|
10751
|
-
console.error("Unable to copy text to clipboard. Error: ",
|
|
10751
|
+
]) : await navigator.clipboard.writeText(l);
|
|
10752
|
+
} catch (a) {
|
|
10753
|
+
console.error("Unable to copy text to clipboard. Error: ", a);
|
|
10752
10754
|
}
|
|
10753
10755
|
};
|
|
10754
|
-
return (
|
|
10756
|
+
return (l, a) => (t(), A(s(se), D({
|
|
10755
10757
|
position: "top",
|
|
10756
10758
|
"hide-after": 1500,
|
|
10757
10759
|
"arrow-hidden": "",
|
|
@@ -10763,9 +10765,9 @@ const Kc = { class: "flex flex-col gap-y-2 w-full" }, zc = {
|
|
|
10763
10765
|
]),
|
|
10764
10766
|
default: C(({ isShow: o }) => [
|
|
10765
10767
|
n("div", {
|
|
10766
|
-
onClick:
|
|
10768
|
+
onClick: a[0] || (a[0] = (d) => r(e.value))
|
|
10767
10769
|
}, [
|
|
10768
|
-
w(
|
|
10770
|
+
w(l.$slots, "default", { isShow: o }, () => [
|
|
10769
10771
|
h(s(L), {
|
|
10770
10772
|
width: "14",
|
|
10771
10773
|
height: "14",
|
|
@@ -10794,8 +10796,8 @@ const Kc = { class: "flex flex-col gap-y-2 w-full" }, zc = {
|
|
|
10794
10796
|
description: String
|
|
10795
10797
|
},
|
|
10796
10798
|
setup(e) {
|
|
10797
|
-
return (r,
|
|
10798
|
-
|
|
10799
|
+
return (r, l) => (t(), i("div", Km, [
|
|
10800
|
+
l[0] || (l[0] = n("div", { class: "absolute w-full h-full top-0 left-0 bg-oc-gray-50 opacity-80" }, null, -1)),
|
|
10799
10801
|
n("div", zm, [
|
|
10800
10802
|
n("div", Lm, [
|
|
10801
10803
|
w(r.$slots, "logo", {}, () => [
|
|
@@ -10866,8 +10868,8 @@ const Kc = { class: "flex flex-col gap-y-2 w-full" }, zc = {
|
|
|
10866
10868
|
},
|
|
10867
10869
|
emits: ["onUpdate"],
|
|
10868
10870
|
setup(e, { emit: r }) {
|
|
10869
|
-
const
|
|
10870
|
-
|
|
10871
|
+
const l = e, a = r, o = (b, Z) => {
|
|
10872
|
+
a("onUpdate", b, Z);
|
|
10871
10873
|
}, d = {
|
|
10872
10874
|
CardInput: Br,
|
|
10873
10875
|
CheckboxesGroup: Wr,
|
|
@@ -10889,13 +10891,13 @@ const Kc = { class: "flex flex-col gap-y-2 w-full" }, zc = {
|
|
|
10889
10891
|
}, c = (b) => d[b] ? d[b] : null, m = V(() => {
|
|
10890
10892
|
const b = (N) => N.split(`
|
|
10891
10893
|
`).map((q) => q.trim()).filter(Boolean).map((q) => `"${q}"`).join(" "), Z = {};
|
|
10892
|
-
return Object.entries(
|
|
10894
|
+
return Object.entries(l.grid).forEach(([N, q]) => {
|
|
10893
10895
|
Object.entries(q).forEach(([W, j]) => {
|
|
10894
10896
|
Z[`--grid-${N}-${W}`] = W === "area" ? b(j) : j;
|
|
10895
10897
|
});
|
|
10896
10898
|
}), Z;
|
|
10897
|
-
}), f = (b) => typeof b == "object" ? b[0].key : b, g = (b) => `grid-area: ${f(b)}`, v = V(() =>
|
|
10898
|
-
|
|
10899
|
+
}), f = (b) => typeof b == "object" ? b[0].key : b, g = (b) => `grid-area: ${f(b)}`, v = V(() => l.class), k = J({}), B = J({}), z = J({}), K = (b) => typeof b == "object" ? b[0].key : b, S = (b) => {
|
|
10900
|
+
l.jsonForm.forEach((Z) => {
|
|
10899
10901
|
var N;
|
|
10900
10902
|
if (typeof Z.name == "object") {
|
|
10901
10903
|
let q = null;
|
|
@@ -10906,17 +10908,17 @@ const Kc = { class: "flex flex-col gap-y-2 w-full" }, zc = {
|
|
|
10906
10908
|
(N = Z.props) != null && N.parentKey ? (k.value[Z.props.parentKey] = b[Z.props.parentKey] ?? {}, k.value[Z.props.parentKey][Z.name] = b[Z.props.parentKey][Z.name] ?? "") : k.value[Z.name] = b[Z.name] ?? "", O(Z);
|
|
10907
10909
|
});
|
|
10908
10910
|
}, y = () => {
|
|
10909
|
-
|
|
10911
|
+
l.jsonForm.forEach((b) => {
|
|
10910
10912
|
if (typeof b.name == "object") {
|
|
10911
10913
|
let Z = [];
|
|
10912
10914
|
b.name.forEach((N) => {
|
|
10913
|
-
|
|
10915
|
+
l.errors[N.key] && Z.push(l.errors[N.key]);
|
|
10914
10916
|
}), B.value[K(b.name)] = Z.join(",");
|
|
10915
10917
|
} else
|
|
10916
|
-
B.value[b.name] =
|
|
10918
|
+
B.value[b.name] = l.errors[b.name] ?? "";
|
|
10917
10919
|
});
|
|
10918
10920
|
}, I = V(() => ({
|
|
10919
|
-
...
|
|
10921
|
+
...l.logicValues,
|
|
10920
10922
|
...k.value
|
|
10921
10923
|
})), O = (b) => {
|
|
10922
10924
|
if (b.show_if || b.show_if_preview) {
|
|
@@ -10931,13 +10933,13 @@ const Kc = { class: "flex flex-col gap-y-2 w-full" }, zc = {
|
|
|
10931
10933
|
}), (b.show_if_one && N < 1 || !b.show_if_one && N < b.show_if.length) && (Z = Z + " hidden");
|
|
10932
10934
|
} else b.show_if_value !== I.value[b.show_if] && (Z = Z + " hidden");
|
|
10933
10935
|
else b.show_if_not !== void 0 ? b.show_if_not === I.value[b.show_if] && (Z = Z + " hidden") : b.show_if_min !== void 0 && (isNaN(parseInt(I.value[b.show_if])) ? 1 : parseInt(I.value[b.show_if])) < parseInt(b.show_if_min) && (Z = Z + " hidden");
|
|
10934
|
-
else b.show_if_preview && (b.show_if_preview_only !== void 0 ? b.show_if_preview_only !==
|
|
10936
|
+
else b.show_if_preview && (b.show_if_preview_only !== void 0 ? b.show_if_preview_only !== l.previewMode && (Z = Z + " hidden") : b.show_if_preview_not !== void 0 && b.show_if_preview_not === l.previewMode && (Z = Z + " hidden"));
|
|
10935
10937
|
typeof b.name == "object" ? z.value[K(b.name)] = Z : z.value[b.name] = Z;
|
|
10936
10938
|
} else
|
|
10937
10939
|
z.value[b.name] = b.class ? b.class : "";
|
|
10938
10940
|
};
|
|
10939
10941
|
return me(
|
|
10940
|
-
() =>
|
|
10942
|
+
() => l.values,
|
|
10941
10943
|
(b) => {
|
|
10942
10944
|
S(b);
|
|
10943
10945
|
},
|
|
@@ -10945,15 +10947,15 @@ const Kc = { class: "flex flex-col gap-y-2 w-full" }, zc = {
|
|
|
10945
10947
|
deep: !0
|
|
10946
10948
|
}
|
|
10947
10949
|
), me(
|
|
10948
|
-
() =>
|
|
10950
|
+
() => l.logicValues,
|
|
10949
10951
|
() => {
|
|
10950
|
-
S(
|
|
10952
|
+
S(l.values);
|
|
10951
10953
|
},
|
|
10952
10954
|
{
|
|
10953
10955
|
deep: !0
|
|
10954
10956
|
}
|
|
10955
10957
|
), me(
|
|
10956
|
-
() =>
|
|
10958
|
+
() => l.errors,
|
|
10957
10959
|
(b) => {
|
|
10958
10960
|
y();
|
|
10959
10961
|
},
|
|
@@ -10961,22 +10963,22 @@ const Kc = { class: "flex flex-col gap-y-2 w-full" }, zc = {
|
|
|
10961
10963
|
deep: !0
|
|
10962
10964
|
}
|
|
10963
10965
|
), me(
|
|
10964
|
-
() =>
|
|
10966
|
+
() => l.previewMode,
|
|
10965
10967
|
() => {
|
|
10966
|
-
S(
|
|
10968
|
+
S(l.values);
|
|
10967
10969
|
}
|
|
10968
10970
|
), Se(() => {
|
|
10969
|
-
S(
|
|
10971
|
+
S(l.values), y(l.errors);
|
|
10970
10972
|
}), (b, Z) => Object.values(k.value).length > 0 ? (t(), i("div", {
|
|
10971
10973
|
key: 0,
|
|
10972
10974
|
class: p(e.grid ? `responsive-smart-form-grid ${v.value}` : v.value),
|
|
10973
|
-
style:
|
|
10975
|
+
style: re(e.grid ? m.value : "")
|
|
10974
10976
|
}, [
|
|
10975
10977
|
(t(!0), i(Y, null, H(e.jsonForm, (N) => {
|
|
10976
10978
|
var q, W, j, E, Q, U;
|
|
10977
10979
|
return t(), i("div", {
|
|
10978
10980
|
key: f(N.name),
|
|
10979
|
-
style:
|
|
10981
|
+
style: re(e.grid ? g(N.name) : ""),
|
|
10980
10982
|
class: p([
|
|
10981
10983
|
N.type !== "Children" ? z.value[typeof N.name == "object" ? K(N.name) : N.name] : "",
|
|
10982
10984
|
N.class
|
|
@@ -11001,16 +11003,16 @@ const Kc = { class: "flex flex-col gap-y-2 w-full" }, zc = {
|
|
|
11001
11003
|
}), 128))
|
|
11002
11004
|
], 6)) : u("", !0);
|
|
11003
11005
|
}
|
|
11004
|
-
}, ap = ge(() => import("./OcDataTable-
|
|
11005
|
-
() => import("./OcComplexCalendar-
|
|
11006
|
+
}, ap = ge(() => import("./OcDataTable-aJ9BFBjO.js")), lp = ge(() => import("./OcFilterSearch-D2Lmzky6.js")), np = ge(() => import("./OcFilterSearchFor-Du5tv3SB.js")), ip = ge(() => import("./OcFilterForm-DMRO2lil.js")), Vm = ge(
|
|
11007
|
+
() => import("./OcComplexCalendar-B-tV_d2A.js")
|
|
11006
11008
|
), op = ge(
|
|
11007
|
-
() => import("./OcComplexDatePicker-
|
|
11008
|
-
), rt = ge(() => import("./OcModalCropper-
|
|
11009
|
-
() => import("./ThumbnailTheme-
|
|
11009
|
+
() => import("./OcComplexDatePicker-CktSadtH.js")
|
|
11010
|
+
), rt = ge(() => import("./OcModalCropper-BQXulygW.js")), sp = ge(() => import("./OcCropper-CtllLxWI.js")), Ym = ge(() => import("./OcDraggable-DRsp4j4e.js")), rp = ge(() => import("./OcDraggableList-D7GdYvd5.js")), dp = ge(() => import("./OcEmojiPicker-Dbilw37G.js")), cp = ge(
|
|
11011
|
+
() => import("./ThumbnailTheme-BNbHHFd-.js")
|
|
11010
11012
|
), up = ge(
|
|
11011
|
-
() => import("./ThumbnailSection-
|
|
11012
|
-
), mp = ge(() => import("./SubPlanCard-
|
|
11013
|
-
() => import("./OcAccountSetupProgress-
|
|
11013
|
+
() => import("./ThumbnailSection-ycA9A8bA.js")
|
|
11014
|
+
), mp = ge(() => import("./SubPlanCard-B4aaUhH4.js")), fp = ge(() => import("./OcTimePopup-CrwbZ_Nx.js")), Mm = ge(() => import("./OcTimePicker-CLK6RXPS.js")), pp = ge(
|
|
11015
|
+
() => import("./OcAccountSetupProgress-B6khTLVN.js")
|
|
11014
11016
|
);
|
|
11015
11017
|
export {
|
|
11016
11018
|
bf as $,
|
|
@@ -11057,7 +11059,7 @@ export {
|
|
|
11057
11059
|
fm as aC,
|
|
11058
11060
|
$f as aD,
|
|
11059
11061
|
_f as aE,
|
|
11060
|
-
|
|
11062
|
+
se as aF,
|
|
11061
11063
|
ep as aG,
|
|
11062
11064
|
st as aH,
|
|
11063
11065
|
Vm as aI,
|
|
@@ -11098,7 +11100,7 @@ export {
|
|
|
11098
11100
|
Mf as as,
|
|
11099
11101
|
Tf as at,
|
|
11100
11102
|
Df as au,
|
|
11101
|
-
|
|
11103
|
+
de as av,
|
|
11102
11104
|
Pf as aw,
|
|
11103
11105
|
Ef as ax,
|
|
11104
11106
|
bm as ay,
|