@orchidui/core 1.23.1-9 → 1.23.2
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/Skeleton/OcSkeleton.js +1 -1
- 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/MediaAndIcons/Avatar/OcAvatar.js +1 -1
- package/dist/{OcAccountSetupProgress-Dk4CZ8Oq.js → OcAccountSetupProgress-C4jeRWbp.js} +1 -1
- package/dist/{OcAvatar-WGEX8Wio.js → OcAvatar-DA33kM1x.js} +1 -1
- package/dist/{OcComplexCalendar-CXahpisC.js → OcComplexCalendar-DMoulu4b.js} +9 -9
- package/dist/{OcComplexDatePicker-B1p9TCy_.js → OcComplexDatePicker-MRZHgxNo.js} +1 -1
- package/dist/{OcCropper-yjwY46h7.js → OcCropper-wkmuIXne.js} +3 -3
- package/dist/{OcDataTable-C5PPTXfj.js → OcDataTable-Be4PKvHr.js} +1 -1
- package/dist/{OcDraggableList-DWh-mxqX.js → OcDraggableList-DDqSjANg.js} +1 -1
- package/dist/{OcEmojiPicker-Cj7-nsGQ.js → OcEmojiPicker-Csiq2RqM.js} +18 -20
- package/dist/{OcFilterForm-DHg04hqW.js → OcFilterForm-BCcb2f-L.js} +1 -1
- package/dist/{OcFilterSearch-Wu5xZcLz.js → OcFilterSearch-Ce7AjfUn.js} +1 -1
- package/dist/{OcFilterSearchFor-CuClRNos.js → OcFilterSearchFor-DhHzGVrf.js} +1 -1
- package/dist/{OcModalCropper-DVzLBWYj.js → OcModalCropper-LAhvHlGJ.js} +2 -2
- package/dist/{OcSkeleton-Czw65X0i.js → OcSkeleton-BACPFrH2.js} +2 -2
- package/dist/{OcTimePicker-DSFHsPtK.js → OcTimePicker-Bup_IRX6.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-DyZVDKeG.js → SubPlanCard-D5BjVgdU.js} +3 -3
- package/dist/{ThumbnailSection-B_WqtZpH.js → ThumbnailSection-BXPnhy0e.js} +1 -1
- package/dist/{ThumbnailTheme-H4UE9Ma2.js → ThumbnailTheme-Dl5y2DPn.js} +14 -17
- package/dist/core.css +1 -1
- package/dist/{index-DR0mR_Gx.js → index-DzsGjGXQ.js} +894 -887
- package/dist/index.js +3 -3
- package/package.json +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { computed as V, ref as J, onMounted as ke, createElementBlock as i, openBlock as t, normalizeClass as p, createCommentVNode as u, renderSlot as k, createElementVNode as n, createBlock as g, unref as o, Fragment as Y, renderList as T, withCtx as I, createTextVNode as F, toDisplayString as x, createVNode as A, resolveDynamicComponent as ot, normalizeProps as ye, mergeProps as G, guardReactiveProps as Ve, withModifiers as pe, normalizeStyle as me, createSlots as ne, watch as fe, withDirectives as We, vShow as De, onBeforeUnmount as Yt, useSlots as Zt, defineComponent as Et, nextTick as Te, resolveComponent as Tt, onUnmounted as st, onUpdated as Ht, reactive as Gt, Transition as Ee, useAttrs as Dt, withKeys as $e, Teleport as Pt, defineAsyncComponent as Ae } from "vue";
|
|
2
|
-
import { S as oe } from "./OcSkeleton-
|
|
2
|
+
import { S as oe } from "./OcSkeleton-BACPFrH2.js";
|
|
3
3
|
import { _ as we } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
4
|
import { _ as L } from "./OcIcon-BedshzZm.js";
|
|
5
5
|
import { clickOutside as rt } from "./directives/clickOutside.js";
|
|
6
6
|
import { _ as Ot } from "./OcPopper-BSfMaOoF.js";
|
|
7
7
|
import _ from "dayjs";
|
|
8
|
-
import { _ as ut } from "./OcAvatar-
|
|
8
|
+
import { _ as ut } from "./OcAvatar-DA33kM1x.js";
|
|
9
9
|
import "./OcProgressBar-lyqE5LZd.js";
|
|
10
10
|
import "./OcHorizontalProgressbar-DapCdBDF.js";
|
|
11
11
|
import "./OcSwitchTabs-B7LfmG3z.js";
|
|
@@ -65,31 +65,31 @@ const $t = {
|
|
|
65
65
|
"hover:cell": []
|
|
66
66
|
},
|
|
67
67
|
setup(e, { emit: r }) {
|
|
68
|
-
const
|
|
69
|
-
() => typeof
|
|
68
|
+
const a = e, l = r, s = V(() => a.options.isSelectable), d = V(() => a.options.isCursorPointer ?? !0), c = V(() => a.options.fields), m = V(() => a.options.headers), f = V(
|
|
69
|
+
() => typeof a.rowKey == "function" ? a.rowKey : (K) => K[a.rowKey]
|
|
70
70
|
), v = V({
|
|
71
71
|
get() {
|
|
72
|
-
return
|
|
72
|
+
return a.selected || [];
|
|
73
73
|
},
|
|
74
|
-
set(
|
|
75
|
-
|
|
74
|
+
set(K) {
|
|
75
|
+
l("update:selected", K);
|
|
76
76
|
}
|
|
77
|
-
}), y = (
|
|
78
|
-
v.value.find((
|
|
79
|
-
(
|
|
80
|
-
) : v.value = [...v.value,
|
|
77
|
+
}), y = (K) => {
|
|
78
|
+
v.value.find((O) => f.value(O) === f.value(K)) ? v.value = v.value.filter(
|
|
79
|
+
(O) => f.value(O) !== f.value(K)
|
|
80
|
+
) : v.value = [...v.value, K];
|
|
81
81
|
}, b = () => {
|
|
82
|
-
const
|
|
83
|
-
v.value =
|
|
84
|
-
}, j = V(() => typeof
|
|
85
|
-
!w.disableClickRow && w.key !== "actions" &&
|
|
86
|
-
field:
|
|
82
|
+
const K = v.value.length === c.value.length;
|
|
83
|
+
v.value = K ? [] : [...c.value];
|
|
84
|
+
}, j = V(() => typeof a.rowClass == "function" ? (K, w) => a.rowClass(K, w) : () => a.rowClass), z = (K, w) => {
|
|
85
|
+
!w.disableClickRow && w.key !== "actions" && l("click:row", {
|
|
86
|
+
field: K,
|
|
87
87
|
header: w
|
|
88
88
|
});
|
|
89
89
|
}, Z = J(!0), C = J(!0), h = J(), S = () => {
|
|
90
|
-
|
|
90
|
+
a.isSticky && h.value && (Z.value = h.value.scrollLeft === 0, C.value = h.value.scrollLeft + h.value.clientWidth === h.value.scrollWidth);
|
|
91
91
|
};
|
|
92
|
-
return ke(() => S()), (
|
|
92
|
+
return ke(() => S()), (K, w) => (t(), i("div", {
|
|
93
93
|
ref_key: "scrollTable",
|
|
94
94
|
ref: h,
|
|
95
95
|
class: p(["flex text-oc-text flex-col border-oc-gray-200 isolate z-10", [
|
|
@@ -99,15 +99,15 @@ const $t = {
|
|
|
99
99
|
]]),
|
|
100
100
|
onScroll: S
|
|
101
101
|
}, [
|
|
102
|
-
|
|
102
|
+
K.$slots.before ? (t(), i("div", {
|
|
103
103
|
key: 0,
|
|
104
104
|
class: p(["border-b border-oc-gray-200", {
|
|
105
105
|
"sticky left-0": e.isSticky
|
|
106
106
|
}])
|
|
107
107
|
}, [
|
|
108
|
-
k(
|
|
108
|
+
k(K.$slots, "before")
|
|
109
109
|
], 2)) : u("", !0),
|
|
110
|
-
k(
|
|
110
|
+
k(K.$slots, "table-header", {
|
|
111
111
|
fields: c.value,
|
|
112
112
|
headers: m.value,
|
|
113
113
|
isSelectable: s.value,
|
|
@@ -126,34 +126,34 @@ const $t = {
|
|
|
126
126
|
"is-checked": v.value.length === c.value.length && v.value.length > 0,
|
|
127
127
|
onSelectAll: b
|
|
128
128
|
}, null, 8, ["is-sticky", "class", "is-partial", "is-checked"])) : u("", !0),
|
|
129
|
-
(t(!0), i(Y, null, T(m.value, (
|
|
130
|
-
key:
|
|
131
|
-
text:
|
|
129
|
+
(t(!0), i(Y, null, T(m.value, (O) => (t(), g(o(mt), {
|
|
130
|
+
key: O.key,
|
|
131
|
+
text: O.label,
|
|
132
132
|
"is-loading": e.isLoading,
|
|
133
|
-
variant:
|
|
133
|
+
variant: O.headerVariant,
|
|
134
134
|
"is-sticky": e.isSticky,
|
|
135
135
|
class: p([[
|
|
136
136
|
e.isSticky || e.isResponsive ? "flex md:min-h-auto" : "hidden md:flex",
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
typeof
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
137
|
+
O.stickyLeft && s.value ? "left-[40px] md:left-[32px]" : "left-0",
|
|
138
|
+
O.stickyRight ? "right-0" : "",
|
|
139
|
+
typeof O.class == "function" ? O.class() : O.class,
|
|
140
|
+
O.stickyLeft || O.stickyRight ? "sticky shrink-0 z-10" : "",
|
|
141
|
+
O.stickyLeft && !Z.value ? "shadow-right-sticky" : "",
|
|
142
|
+
O.stickyRight && !C.value ? "shadow-left-sticky" : ""
|
|
143
143
|
], "md:border-b border-oc-gray-200"]),
|
|
144
|
-
"is-sortable":
|
|
145
|
-
"sort-by": e.sortBy[
|
|
146
|
-
"onUpdate:sortBy": (N) =>
|
|
144
|
+
"is-sortable": O.isSortable,
|
|
145
|
+
"sort-by": e.sortBy[O.key],
|
|
146
|
+
"onUpdate:sortBy": (N) => K.$emit("update:sort-by", { key: O.key, value: N })
|
|
147
147
|
}, {
|
|
148
148
|
default: I(() => [
|
|
149
|
-
k(
|
|
149
|
+
k(K.$slots, `header-${O.key}`)
|
|
150
150
|
]),
|
|
151
151
|
_: 2
|
|
152
152
|
}, 1032, ["text", "is-loading", "variant", "is-sticky", "class", "is-sortable", "sort-by", "onUpdate:sortBy"]))), 128))
|
|
153
153
|
], 2)
|
|
154
154
|
]),
|
|
155
|
-
e.isLoading ? (t(!0), i(Y, { key: 1 }, T(e.loadingRows, (
|
|
156
|
-
key:
|
|
155
|
+
e.isLoading ? (t(!0), i(Y, { key: 1 }, T(e.loadingRows, (O) => (t(), i("div", {
|
|
156
|
+
key: O,
|
|
157
157
|
class: p(["flex flex-wrap md:flex-nowrap group/row border-oc-gray-200 md:p-0 py-3", {
|
|
158
158
|
"pl-[40px]": s.value,
|
|
159
159
|
"border-b": e.isBorderless
|
|
@@ -164,13 +164,13 @@ const $t = {
|
|
|
164
164
|
class: "opacity-0 flex justify-center absolute left-0 md:relative w-[5%]"
|
|
165
165
|
})) : u("", !0),
|
|
166
166
|
(t(!0), i(Y, null, T(m.value, (N, q) => (t(), g(o(Re), {
|
|
167
|
-
key: `${q}-${
|
|
167
|
+
key: `${q}-${O}`,
|
|
168
168
|
class: p(N.class),
|
|
169
169
|
"is-loading": "",
|
|
170
|
-
"is-last":
|
|
170
|
+
"is-last": O === e.loadingRows
|
|
171
171
|
}, null, 8, ["class", "is-last"]))), 128))
|
|
172
172
|
], 2))), 128)) : (t(), i(Y, { key: 2 }, [
|
|
173
|
-
k(
|
|
173
|
+
k(K.$slots, "table-body", {
|
|
174
174
|
fields: c.value,
|
|
175
175
|
headers: m.value,
|
|
176
176
|
isScrollOnEnd: C.value,
|
|
@@ -182,8 +182,8 @@ const $t = {
|
|
|
182
182
|
rowLink: e.rowLink,
|
|
183
183
|
calculateRowClass: j.value
|
|
184
184
|
}, () => [
|
|
185
|
-
(t(!0), i(Y, null, T(c.value, (
|
|
186
|
-
key: `${f.value(
|
|
185
|
+
(t(!0), i(Y, null, T(c.value, (O, N) => (t(), i("div", {
|
|
186
|
+
key: `${f.value(O)}-${N}`,
|
|
187
187
|
class: p({
|
|
188
188
|
"border-b": c.value.length !== N + 1,
|
|
189
189
|
"w-max": e.isSticky
|
|
@@ -196,7 +196,7 @@ const $t = {
|
|
|
196
196
|
"cursor-pointer": d.value
|
|
197
197
|
},
|
|
198
198
|
e.isResponsive ? "w-full" : e.isSticky ? "w-max !p-0" : "flex-wrap md:flex-nowrap",
|
|
199
|
-
j.value(
|
|
199
|
+
j.value(O, N)
|
|
200
200
|
]])
|
|
201
201
|
}, [
|
|
202
202
|
s.value ? (t(), g(o(Re), {
|
|
@@ -205,15 +205,15 @@ const $t = {
|
|
|
205
205
|
e.isSticky ? "shrink-0 z-10 left-0 sticky" : "md:relative absolute w-[40px] md:w-[5%]"
|
|
206
206
|
]]),
|
|
207
207
|
"is-last": c.value.length === N + 1,
|
|
208
|
-
"is-selected": v.value.some((q) => f.value(q) === f.value(
|
|
208
|
+
"is-selected": v.value.some((q) => f.value(q) === f.value(O)),
|
|
209
209
|
variant: "checkbox",
|
|
210
|
-
onSelected: (q) => y(
|
|
211
|
-
"onHover:field": w[0] || (w[0] = (q) =>
|
|
210
|
+
onSelected: (q) => y(O),
|
|
211
|
+
"onHover:field": w[0] || (w[0] = (q) => K.$emit("hover:cell", q))
|
|
212
212
|
}, null, 8, ["is-last", "is-selected", "class", "onSelected"])) : u("", !0),
|
|
213
213
|
(t(!0), i(Y, null, T(m.value, (q, W) => (t(), g(o(Re), {
|
|
214
214
|
key: `${W}-${N}`,
|
|
215
215
|
class: p(["flex border-oc-gray-200", [
|
|
216
|
-
typeof q.class == "function" ? q.class(
|
|
216
|
+
typeof q.class == "function" ? q.class(O) : q.class,
|
|
217
217
|
q.stickyLeft && s.value ? "left-[40px] md:left-[32px]" : "left-0",
|
|
218
218
|
q.stickyRight ? "right-0" : "",
|
|
219
219
|
q.stickyLeft || q.stickyRight ? "shrink-0 sticky z-10" : "",
|
|
@@ -224,41 +224,41 @@ const $t = {
|
|
|
224
224
|
variant: q.variant,
|
|
225
225
|
"is-copy": q.isCopy,
|
|
226
226
|
"add-description-to-copy-clipboard": q.addDescriptionToCopyClipboard ?? !0,
|
|
227
|
-
data:
|
|
227
|
+
data: O[`${q.key}`] ?? "",
|
|
228
228
|
content: {
|
|
229
229
|
important: q.important ?? !1,
|
|
230
|
-
title:
|
|
231
|
-
description:
|
|
232
|
-
href:
|
|
230
|
+
title: O[`${q.title}`],
|
|
231
|
+
description: O[`${q.description}`],
|
|
232
|
+
href: O[`${q.href}`]
|
|
233
233
|
},
|
|
234
234
|
"chip-options": q.chipOptions,
|
|
235
235
|
"image-class": q.imageClass,
|
|
236
|
-
link: e.rowLink &&
|
|
237
|
-
onClick: (B) => z(
|
|
238
|
-
"onHover:field": w[1] || (w[1] = (B) =>
|
|
236
|
+
link: e.rowLink && O[e.rowLink] && q.key !== "actions" ? O[e.rowLink] : "",
|
|
237
|
+
onClick: (B) => z(O, q),
|
|
238
|
+
"onHover:field": w[1] || (w[1] = (B) => K.$emit("hover:cell", B))
|
|
239
239
|
}, {
|
|
240
240
|
default: I(() => [
|
|
241
|
-
|
|
241
|
+
K.$slots[q.key] ? k(K.$slots, q.key, {
|
|
242
242
|
key: 0,
|
|
243
|
-
item:
|
|
244
|
-
data:
|
|
243
|
+
item: O,
|
|
244
|
+
data: O[q.key],
|
|
245
245
|
index: N
|
|
246
246
|
}) : u("", !0)
|
|
247
247
|
]),
|
|
248
248
|
_: 2
|
|
249
249
|
}, 1032, ["is-last", "variant", "is-copy", "add-description-to-copy-clipboard", "data", "content", "chip-options", "class", "image-class", "link", "onClick"]))), 128))
|
|
250
250
|
], 2),
|
|
251
|
-
|
|
252
|
-
k(
|
|
253
|
-
item:
|
|
251
|
+
K.$slots.extra ? (t(), i("div", $t, [
|
|
252
|
+
k(K.$slots, "extra", {
|
|
253
|
+
item: O,
|
|
254
254
|
index: N
|
|
255
255
|
})
|
|
256
256
|
])) : u("", !0)
|
|
257
257
|
], 2))), 128))
|
|
258
258
|
]),
|
|
259
|
-
c.value.length ? u("", !0) : k(
|
|
259
|
+
c.value.length ? u("", !0) : k(K.$slots, "empty", { key: 0 })
|
|
260
260
|
], 64)),
|
|
261
|
-
k(
|
|
261
|
+
k(K.$slots, "after")
|
|
262
262
|
], 34));
|
|
263
263
|
}
|
|
264
264
|
}, _t = { class: "mx-auto" }, mt = {
|
|
@@ -290,25 +290,25 @@ const $t = {
|
|
|
290
290
|
setup(e) {
|
|
291
291
|
const r = {
|
|
292
292
|
TEXT: "text"
|
|
293
|
-
},
|
|
293
|
+
}, a = V(() => ({
|
|
294
294
|
text: "px-4 py-3",
|
|
295
295
|
checkbox: "p-4 md:p-3"
|
|
296
296
|
}));
|
|
297
|
-
return (
|
|
298
|
-
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",
|
|
297
|
+
return (l, s) => (t(), i("div", {
|
|
298
|
+
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", a.value[e.variant]])
|
|
299
299
|
}, [
|
|
300
300
|
e.isLoading ? (t(), g(o(oe), {
|
|
301
301
|
key: 0,
|
|
302
302
|
class: "rounded-full w-full overflow-hidden h-6"
|
|
303
303
|
})) : (t(), i(Y, { key: 1 }, [
|
|
304
|
-
e.variant === r.TEXT ? k(
|
|
304
|
+
e.variant === r.TEXT ? k(l.$slots, "default", { key: 0 }, () => [
|
|
305
305
|
F(x(e.text), 1)
|
|
306
|
-
]) : k(
|
|
306
|
+
]) : k(l.$slots, "default", { key: 1 }, () => [
|
|
307
307
|
n("div", _t, [
|
|
308
308
|
A(o(Ne), {
|
|
309
309
|
"model-value": e.isChecked,
|
|
310
310
|
"is-partial": e.isPartial,
|
|
311
|
-
"onUpdate:modelValue": s[0] || (s[0] = (d) =>
|
|
311
|
+
"onUpdate:modelValue": s[0] || (s[0] = (d) => l.$emit("selectAll", d))
|
|
312
312
|
}, null, 8, ["model-value", "is-partial"])
|
|
313
313
|
]),
|
|
314
314
|
n("span", {
|
|
@@ -319,7 +319,7 @@ const $t = {
|
|
|
319
319
|
!e.isLoading && e.isSortable ? (t(), i("div", {
|
|
320
320
|
key: 2,
|
|
321
321
|
class: p(["cursor-pointer ml-auto", e.sortBy ? "" : " hidden group-hover/table-header:block"]),
|
|
322
|
-
onClick: s[1] || (s[1] = (d) =>
|
|
322
|
+
onClick: s[1] || (s[1] = (d) => l.$emit("update:sort-by", e.sortBy === "asc" ? "desc" : e.sortBy === "desc" ? null : "asc"))
|
|
323
323
|
}, [
|
|
324
324
|
e.sortBy === "asc" ? (t(), g(o(L), {
|
|
325
325
|
key: 0,
|
|
@@ -393,13 +393,13 @@ const $t = {
|
|
|
393
393
|
IMAGE: "image",
|
|
394
394
|
EMPTY: "empty",
|
|
395
395
|
DEFAULT: "default"
|
|
396
|
-
},
|
|
397
|
-
const m =
|
|
396
|
+
}, a = e, l = V(() => a.data || a.content.title || a.content.description), s = V(() => {
|
|
397
|
+
const m = a.chipOptions[a.data];
|
|
398
398
|
return typeof m == "object" ? {
|
|
399
|
-
label: m.label ||
|
|
399
|
+
label: m.label || a.data,
|
|
400
400
|
...m
|
|
401
401
|
} : {
|
|
402
|
-
label:
|
|
402
|
+
label: a.data,
|
|
403
403
|
variant: m
|
|
404
404
|
};
|
|
405
405
|
}), d = V(() => ({
|
|
@@ -412,7 +412,7 @@ const $t = {
|
|
|
412
412
|
[r.EMPTY]: "px-4 min-w-[48px]",
|
|
413
413
|
[r.DEFAULT]: "px-4"
|
|
414
414
|
})), c = (m) => {
|
|
415
|
-
|
|
415
|
+
a.link && m.preventDefault();
|
|
416
416
|
};
|
|
417
417
|
return (m, f) => (t(), g(ot(e.link ? "a" : "div"), {
|
|
418
418
|
href: e.link,
|
|
@@ -434,7 +434,7 @@ const $t = {
|
|
|
434
434
|
})) : (t(), i("div", {
|
|
435
435
|
key: 1,
|
|
436
436
|
class: p(["w-full flex", e.isCopy ? "justify-between" : "justify-start"]),
|
|
437
|
-
onMouseover: f[2] || (f[2] = (y) => m.$emit("hover:field",
|
|
437
|
+
onMouseover: f[2] || (f[2] = (y) => m.$emit("hover:field", a))
|
|
438
438
|
}, [
|
|
439
439
|
k(m.$slots, "default", {}, () => [
|
|
440
440
|
e.variant === r.CHECKBOX ? (t(), g(o(Ne), {
|
|
@@ -475,9 +475,9 @@ const $t = {
|
|
|
475
475
|
class: "w-full h-full"
|
|
476
476
|
}, "-", 8, oa))
|
|
477
477
|
]),
|
|
478
|
-
e.isCopy &&
|
|
478
|
+
e.isCopy && l.value ? (t(), g(o(Me), {
|
|
479
479
|
key: 0,
|
|
480
|
-
value: (v = e.content) != null && v.title ? `${e.content.title}${e.content.description &&
|
|
480
|
+
value: (v = e.content) != null && v.title ? `${e.content.title}${e.content.description && a.addDescriptionToCopyClipboard ? `,${e.content.description}` : ""}` : e.data,
|
|
481
481
|
"tooltip-options": {
|
|
482
482
|
transitionName: "copy"
|
|
483
483
|
}
|
|
@@ -508,7 +508,7 @@ const $t = {
|
|
|
508
508
|
link: String
|
|
509
509
|
},
|
|
510
510
|
setup(e) {
|
|
511
|
-
return (r,
|
|
511
|
+
return (r, a) => (t(), g(o(fa), {
|
|
512
512
|
link: e.href ? "" : e.link,
|
|
513
513
|
class: "flex flex-col gap-y-1 whitespace-nowrap overflow-hidden w-full"
|
|
514
514
|
}, {
|
|
@@ -542,11 +542,11 @@ const $t = {
|
|
|
542
542
|
link: String
|
|
543
543
|
},
|
|
544
544
|
setup(e) {
|
|
545
|
-
return (r,
|
|
545
|
+
return (r, a) => e.link ? (t(), i("a", {
|
|
546
546
|
key: 1,
|
|
547
547
|
href: e.link,
|
|
548
548
|
style: { "'pointer-events": "none'" },
|
|
549
|
-
onClick:
|
|
549
|
+
onClick: a[0] || (a[0] = pe(() => {
|
|
550
550
|
}, ["prevent"]))
|
|
551
551
|
}, [
|
|
552
552
|
k(r.$slots, "default")
|
|
@@ -596,7 +596,7 @@ const $t = {
|
|
|
596
596
|
}
|
|
597
597
|
},
|
|
598
598
|
setup(e) {
|
|
599
|
-
const r = J(!1),
|
|
599
|
+
const r = J(!1), a = J("0"), l = J(), s = J();
|
|
600
600
|
V(
|
|
601
601
|
() => {
|
|
602
602
|
var c;
|
|
@@ -604,7 +604,7 @@ const $t = {
|
|
|
604
604
|
}
|
|
605
605
|
);
|
|
606
606
|
const d = () => {
|
|
607
|
-
r.value = !r.value, r.value ?
|
|
607
|
+
r.value = !r.value, r.value ? a.value = `${l.value.scrollHeight}px` : a.value = "0";
|
|
608
608
|
};
|
|
609
609
|
return (c, m) => {
|
|
610
610
|
var f, v;
|
|
@@ -685,9 +685,9 @@ const $t = {
|
|
|
685
685
|
(v = e.row.children) != null && v.length ? (t(), i("div", {
|
|
686
686
|
key: 0,
|
|
687
687
|
ref_key: "childrenWrapper",
|
|
688
|
-
ref:
|
|
688
|
+
ref: l,
|
|
689
689
|
class: "transition-all overflow-hidden duration-500",
|
|
690
|
-
style: me({ maxHeight:
|
|
690
|
+
style: me({ maxHeight: a.value })
|
|
691
691
|
}, [
|
|
692
692
|
(t(!0), i(Y, null, T(e.row.children, (y, b) => (t(), g(o(Ge), {
|
|
693
693
|
key: b,
|
|
@@ -728,7 +728,7 @@ const $t = {
|
|
|
728
728
|
}
|
|
729
729
|
},
|
|
730
730
|
setup(e) {
|
|
731
|
-
return (r,
|
|
731
|
+
return (r, a) => (t(), i("div", {
|
|
732
732
|
class: "grid bg-oc-gray-50 h-[35px] min-w-max relative",
|
|
733
733
|
style: me({
|
|
734
734
|
gridTemplateColumns: e.gridTemplateColumns
|
|
@@ -737,14 +737,14 @@ const $t = {
|
|
|
737
737
|
n("div", {
|
|
738
738
|
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" : ""])
|
|
739
739
|
}, null, 2),
|
|
740
|
-
(t(!0), i(Y, null, T(e.headers, (
|
|
741
|
-
key:
|
|
740
|
+
(t(!0), i(Y, null, T(e.headers, (l, s) => (t(), i("div", {
|
|
741
|
+
key: l.key,
|
|
742
742
|
class: p(["py-3 px-4 text-xs text-oc-text-400 border-b border-oc-text-200 font-medium whitespace-nowrap", [
|
|
743
|
-
|
|
743
|
+
l.class,
|
|
744
744
|
e.isSticky && s === 0 ? "sticky left-9 z-10 bg-oc-gray-50 border-oc-gray-200" : ""
|
|
745
745
|
]])
|
|
746
|
-
}, x(
|
|
747
|
-
|
|
746
|
+
}, x(l.label), 3))), 128)),
|
|
747
|
+
a[0] || (a[0] = n("div", { class: "w-9 border-b border-oc-text-200" }, null, -1))
|
|
748
748
|
], 4));
|
|
749
749
|
}
|
|
750
750
|
}, Aa = { class: "flex flex-col border rounded w-full border-oc-gray-200 overflow-auto" }, gf = {
|
|
@@ -784,8 +784,8 @@ const $t = {
|
|
|
784
784
|
}
|
|
785
785
|
},
|
|
786
786
|
setup(e) {
|
|
787
|
-
const r = e,
|
|
788
|
-
return (
|
|
787
|
+
const r = e, a = V(() => Object.fromEntries(r.headers.map((l) => [l.key, ""])));
|
|
788
|
+
return (l, s) => (t(), i("div", Aa, [
|
|
789
789
|
e.isAlternative ? (t(), i(Y, { key: 0 }, [
|
|
790
790
|
A(ga, {
|
|
791
791
|
headers: e.headers,
|
|
@@ -796,7 +796,7 @@ const $t = {
|
|
|
796
796
|
key: d,
|
|
797
797
|
"is-loading": "",
|
|
798
798
|
"is-alternative": e.isAlternative,
|
|
799
|
-
row:
|
|
799
|
+
row: a.value,
|
|
800
800
|
headers: e.headers,
|
|
801
801
|
"is-sticky": e.isSticky,
|
|
802
802
|
"grid-template-columns": e.gridTemplateColumns
|
|
@@ -810,10 +810,10 @@ const $t = {
|
|
|
810
810
|
important: d.important,
|
|
811
811
|
"grid-template-columns": e.gridTemplateColumns
|
|
812
812
|
}, ne({ _: 2 }, [
|
|
813
|
-
T(
|
|
813
|
+
T(l.$slots, (m, f) => ({
|
|
814
814
|
name: f,
|
|
815
815
|
fn: I((v) => [
|
|
816
|
-
k(
|
|
816
|
+
k(l.$slots, f, G({ ref_for: !0 }, v))
|
|
817
817
|
])
|
|
818
818
|
}))
|
|
819
819
|
]), 1032, ["row", "headers", "is-loading", "is-alternative", "is-sticky", "important", "grid-template-columns"]))), 128))
|
|
@@ -828,14 +828,14 @@ const $t = {
|
|
|
828
828
|
important: d.important,
|
|
829
829
|
"grid-template-columns": e.gridTemplateColumns
|
|
830
830
|
}, ne({ _: 2 }, [
|
|
831
|
-
T(
|
|
831
|
+
T(l.$slots, (m, f) => ({
|
|
832
832
|
name: f,
|
|
833
833
|
fn: I((v) => [
|
|
834
|
-
k(
|
|
834
|
+
k(l.$slots, f, G({ ref_for: !0 }, v))
|
|
835
835
|
])
|
|
836
836
|
}))
|
|
837
837
|
]), 1032, ["row", "headers", "is-loading", "is-alternative", "value", "is-sticky", "important", "grid-template-columns"]))), 128)),
|
|
838
|
-
k(
|
|
838
|
+
k(l.$slots, "total", {}, () => [
|
|
839
839
|
A(Ge, {
|
|
840
840
|
"is-total": "",
|
|
841
841
|
headers: e.headers,
|
|
@@ -870,48 +870,48 @@ const $t = {
|
|
|
870
870
|
"update:modelValue": []
|
|
871
871
|
},
|
|
872
872
|
setup(e) {
|
|
873
|
-
const r = e,
|
|
874
|
-
let
|
|
875
|
-
if (
|
|
873
|
+
const r = e, a = V(() => {
|
|
874
|
+
let l = Number(r.totalVisible);
|
|
875
|
+
if (l <= 3 && r.maxPage > l && (l = 3), r.maxPage <= l)
|
|
876
876
|
return Array.from({ length: r.maxPage }, (d, c) => 1 + c);
|
|
877
|
-
if (r.modelValue <=
|
|
877
|
+
if (r.modelValue <= l - 1)
|
|
878
878
|
return [
|
|
879
|
-
...Array.from({ length: Math.min(
|
|
879
|
+
...Array.from({ length: Math.min(l - 1, r.maxPage) }, (d, c) => c + 1),
|
|
880
880
|
"...",
|
|
881
881
|
r.maxPage
|
|
882
882
|
];
|
|
883
|
-
if (r.modelValue >= r.maxPage - (
|
|
883
|
+
if (r.modelValue >= r.maxPage - (l - 2))
|
|
884
884
|
return [
|
|
885
885
|
1,
|
|
886
886
|
"...",
|
|
887
887
|
...Array.from(
|
|
888
|
-
{ length:
|
|
889
|
-
(d, c) => r.maxPage - (
|
|
888
|
+
{ length: l - 1 },
|
|
889
|
+
(d, c) => r.maxPage - (l - 2) + c
|
|
890
890
|
)
|
|
891
891
|
];
|
|
892
|
-
const s = r.modelValue - Math.floor((
|
|
892
|
+
const s = r.modelValue - Math.floor((l - 2) / 2);
|
|
893
893
|
return [
|
|
894
894
|
1,
|
|
895
895
|
"...",
|
|
896
|
-
...Array.from({ length:
|
|
896
|
+
...Array.from({ length: l - 2 }, (d, c) => s + c),
|
|
897
897
|
"...",
|
|
898
898
|
r.maxPage
|
|
899
899
|
];
|
|
900
900
|
});
|
|
901
|
-
return (
|
|
901
|
+
return (l, s) => (t(), i("div", ha, [
|
|
902
902
|
n("div", ya, [
|
|
903
903
|
A(o(pt), {
|
|
904
904
|
disabled: e.modelValue <= 1,
|
|
905
905
|
size: e.size,
|
|
906
|
-
onClick: s[0] || (s[0] = (d) => e.modelValue > 1 ?
|
|
906
|
+
onClick: s[0] || (s[0] = (d) => e.modelValue > 1 ? l.$emit("update:modelValue", e.modelValue > 1 ? e.modelValue - 1 : e.modelValue) : "")
|
|
907
907
|
}, null, 8, ["disabled", "size"]),
|
|
908
908
|
n("div", ba, [
|
|
909
|
-
(t(!0), i(Y, null, T(
|
|
909
|
+
(t(!0), i(Y, null, T(a.value, (d) => (t(), g(o(vt), {
|
|
910
910
|
key: d,
|
|
911
911
|
size: e.size,
|
|
912
912
|
"is-rounded": e.isRounded,
|
|
913
913
|
active: d === e.modelValue,
|
|
914
|
-
onClick: (c) =>
|
|
914
|
+
onClick: (c) => l.$emit("update:modelValue", d === "..." ? e.modelValue : d)
|
|
915
915
|
}, {
|
|
916
916
|
default: I(() => [
|
|
917
917
|
F(x(d), 1)
|
|
@@ -935,7 +935,7 @@ const $t = {
|
|
|
935
935
|
"is-next": "",
|
|
936
936
|
size: e.size,
|
|
937
937
|
disabled: e.modelValue >= e.maxPage,
|
|
938
|
-
onClick: s[1] || (s[1] = (d) => e.modelValue < e.maxPage ?
|
|
938
|
+
onClick: s[1] || (s[1] = (d) => e.modelValue < e.maxPage ? l.$emit(
|
|
939
939
|
"update:modelValue",
|
|
940
940
|
e.modelValue < Number(e.maxPage) ? e.modelValue + 1 : Number(e.maxPage)
|
|
941
941
|
) : "")
|
|
@@ -959,7 +959,7 @@ const $t = {
|
|
|
959
959
|
small: "py-2 text-sm",
|
|
960
960
|
big: "px-2 py-4 text-lg"
|
|
961
961
|
}));
|
|
962
|
-
return (
|
|
962
|
+
return (a, l) => (t(), i("div", {
|
|
963
963
|
class: p(["flex text-oc-text-400 items-center gap-x-1", [
|
|
964
964
|
r.value[e.size],
|
|
965
965
|
e.disabled ? "cursor-not-allowed opacity-60" : "hover:text-oc-text cursor-pointer",
|
|
@@ -991,14 +991,14 @@ const $t = {
|
|
|
991
991
|
small: "w-[32px] text-sm h-[32px]",
|
|
992
992
|
big: "w-[40px] text-lg h-[40px]"
|
|
993
993
|
}));
|
|
994
|
-
return (
|
|
994
|
+
return (a, l) => (t(), i("div", {
|
|
995
995
|
class: p(["flex items-center justify-center cursor-pointer py-3 px-1", [
|
|
996
996
|
r.value[e.size],
|
|
997
997
|
e.active ? "bg-oc-gray-100 text-oc-text" : "text-oc-text-400 hover:text-oc-text hover:bg-oc-gray-50",
|
|
998
998
|
e.isRounded ? "rounded-full" : "rounded-sm"
|
|
999
999
|
]])
|
|
1000
1000
|
}, [
|
|
1001
|
-
k(
|
|
1001
|
+
k(a.$slots, "default")
|
|
1002
1002
|
], 2));
|
|
1003
1003
|
}
|
|
1004
1004
|
}, ka = { class: "flex gap-y-3 flex-col text-lg font-medium" }, wa = { key: 0 }, Ca = {
|
|
@@ -1010,25 +1010,25 @@ const $t = {
|
|
|
1010
1010
|
isLoading: Boolean
|
|
1011
1011
|
},
|
|
1012
1012
|
setup(e) {
|
|
1013
|
-
return (r,
|
|
1013
|
+
return (r, a) => (t(), i("div", ka, [
|
|
1014
1014
|
e.title ? (t(), i("span", wa, x(e.title), 1)) : u("", !0),
|
|
1015
1015
|
n("div", {
|
|
1016
1016
|
class: p(["flex gap-x-5 items-start md:flex-row flex-col gap-y-3 md:gap-y-0", e.containerClass])
|
|
1017
1017
|
}, [
|
|
1018
|
-
(t(!0), i(Y, null, T(e.items, (
|
|
1018
|
+
(t(!0), i(Y, null, T(e.items, (l, s) => (t(), g(o(_e), {
|
|
1019
1019
|
key: s,
|
|
1020
|
-
title:
|
|
1021
|
-
class: p(["flex-1",
|
|
1022
|
-
variant:
|
|
1023
|
-
tooltip:
|
|
1024
|
-
icon:
|
|
1020
|
+
title: l.title,
|
|
1021
|
+
class: p(["flex-1", l.class]),
|
|
1022
|
+
variant: l.variant,
|
|
1023
|
+
tooltip: l.tooltip,
|
|
1024
|
+
icon: l.icon,
|
|
1025
1025
|
"is-loading": e.isLoading,
|
|
1026
|
-
content:
|
|
1027
|
-
info:
|
|
1028
|
-
"icon-height":
|
|
1029
|
-
"icon-width":
|
|
1026
|
+
content: l.content,
|
|
1027
|
+
info: l.info,
|
|
1028
|
+
"icon-height": l.iconHeight,
|
|
1029
|
+
"icon-width": l.iconWidth
|
|
1030
1030
|
}, ne({ _: 2 }, [
|
|
1031
|
-
|
|
1031
|
+
l.isWarning ? {
|
|
1032
1032
|
name: "warning",
|
|
1033
1033
|
fn: I(() => [
|
|
1034
1034
|
k(r.$slots, "warning")
|
|
@@ -1068,7 +1068,7 @@ const $t = {
|
|
|
1068
1068
|
accent: "bg-oc-accent-1-50-tr text-oc-accent-1",
|
|
1069
1069
|
blue: "bg-oc-primary-50-tr text-oc-primary"
|
|
1070
1070
|
}));
|
|
1071
|
-
return (
|
|
1071
|
+
return (a, l) => (t(), i("div", {
|
|
1072
1072
|
class: p(["rounded-full p-3 flex items-center justify-center aspect-square", r.value[e.variant]])
|
|
1073
1073
|
}, [
|
|
1074
1074
|
A(o(L), {
|
|
@@ -1110,7 +1110,7 @@ const $t = {
|
|
|
1110
1110
|
}
|
|
1111
1111
|
},
|
|
1112
1112
|
setup(e) {
|
|
1113
|
-
return (r,
|
|
1113
|
+
return (r, a) => (t(), i("div", {
|
|
1114
1114
|
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"])
|
|
1115
1115
|
}, [
|
|
1116
1116
|
e.isLoading ? (t(), i("div", Sa, [
|
|
@@ -1242,9 +1242,13 @@ const $t = {
|
|
|
1242
1242
|
},
|
|
1243
1243
|
emits: ["addCustomer", "editCustomer", "closeCustomer"],
|
|
1244
1244
|
setup(e, { emit: r }) {
|
|
1245
|
-
const l = r
|
|
1246
|
-
|
|
1247
|
-
|
|
1245
|
+
const a = e, l = r, s = V(() => {
|
|
1246
|
+
if (!a.customer) return "-";
|
|
1247
|
+
const { phone_number_country_code: d, phone_number: c } = a.customer;
|
|
1248
|
+
return d && c && !c.includes("+") ? `+${d} ${c}` : c || "-";
|
|
1249
|
+
});
|
|
1250
|
+
return (d, c) => {
|
|
1251
|
+
var m, f, v, y, b, j, z, Z, C, h, S, K, w;
|
|
1248
1252
|
return t(), i("div", {
|
|
1249
1253
|
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 }])
|
|
1250
1254
|
}, [
|
|
@@ -1258,14 +1262,14 @@ const $t = {
|
|
|
1258
1262
|
variant: "secondary",
|
|
1259
1263
|
size: "small",
|
|
1260
1264
|
class: "*:!px-[6px]",
|
|
1261
|
-
onClick:
|
|
1265
|
+
onClick: c[0] || (c[0] = (O) => d.$emit("editCustomer", e.customer))
|
|
1262
1266
|
})
|
|
1263
1267
|
], 2)) : u("", !0),
|
|
1264
1268
|
e.isClosable ? (t(), g(o(L), {
|
|
1265
1269
|
key: 1,
|
|
1266
1270
|
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",
|
|
1267
1271
|
name: "filled-x-circle",
|
|
1268
|
-
onClick:
|
|
1272
|
+
onClick: c[1] || (c[1] = (O) => l("closeCustomer"))
|
|
1269
1273
|
})) : u("", !0),
|
|
1270
1274
|
e.customer ? (t(), i(Y, { key: 2 }, [
|
|
1271
1275
|
n("div", qa, [
|
|
@@ -1274,29 +1278,29 @@ const $t = {
|
|
|
1274
1278
|
size: 32
|
|
1275
1279
|
}, {
|
|
1276
1280
|
default: I(() => {
|
|
1277
|
-
var
|
|
1281
|
+
var O, N;
|
|
1278
1282
|
return [
|
|
1279
|
-
F(x(((
|
|
1283
|
+
F(x(((N = (O = e.customer) == null ? void 0 : O.name) == null ? void 0 : N[0]) || "J"), 1)
|
|
1280
1284
|
];
|
|
1281
1285
|
}),
|
|
1282
1286
|
_: 1
|
|
1283
1287
|
}),
|
|
1284
1288
|
n("div", Va, [
|
|
1285
1289
|
n("div", Ma, [
|
|
1286
|
-
n("span", Ya, x(((
|
|
1287
|
-
e.isBeneficiary ? (t(), i("span", Ea, x((
|
|
1290
|
+
n("span", Ya, x(((m = e.customer) == null ? void 0 : m.name) || "-"), 1),
|
|
1291
|
+
e.isBeneficiary ? (t(), i("span", Ea, x((f = e.customer.currency) == null ? void 0 : f.toUpperCase()), 1)) : u("", !0)
|
|
1288
1292
|
]),
|
|
1289
1293
|
e.isBeneficiary ? (t(), i("span", Ta, [
|
|
1290
1294
|
F(x(e.customer.bank_name) + " ", 1),
|
|
1291
1295
|
e.customer.bank_account_number ? (t(), i("span", Ha, " / " + x(e.customer.bank_account_number), 1)) : u("", !0)
|
|
1292
|
-
])) : (t(), i("span", Ga, x(((
|
|
1296
|
+
])) : (t(), i("span", Ga, x(((v = e.customer) == null ? void 0 : v.email) || s.value), 1))
|
|
1293
1297
|
])
|
|
1294
1298
|
]),
|
|
1295
1299
|
e.variant !== "small" ? (t(), i("div", Da, [
|
|
1296
1300
|
e.isBeneficiary ? u("", !0) : (t(), g(o(Ye), {
|
|
1297
1301
|
key: 0,
|
|
1298
1302
|
label: "Phone",
|
|
1299
|
-
content:
|
|
1303
|
+
content: s.value
|
|
1300
1304
|
}, null, 8, ["content"])),
|
|
1301
1305
|
e.isBeneficiary ? (t(), g(o(Ye), {
|
|
1302
1306
|
key: 1,
|
|
@@ -1306,11 +1310,11 @@ const $t = {
|
|
|
1306
1310
|
key: 2,
|
|
1307
1311
|
label: "Address",
|
|
1308
1312
|
content: [
|
|
1309
|
-
((
|
|
1310
|
-
((
|
|
1311
|
-
((
|
|
1312
|
-
((
|
|
1313
|
-
((
|
|
1313
|
+
((b = (y = e.customer) == null ? void 0 : y.address) == null ? void 0 : b.street) || "",
|
|
1314
|
+
((z = (j = e.customer) == null ? void 0 : j.address) == null ? void 0 : z.city) || "",
|
|
1315
|
+
((C = (Z = e.customer) == null ? void 0 : Z.address) == null ? void 0 : C.state) || "",
|
|
1316
|
+
((S = (h = e.customer) == null ? void 0 : h.address) == null ? void 0 : S.postal_code) || "",
|
|
1317
|
+
((w = (K = e.customer) == null ? void 0 : K.address) == null ? void 0 : w.country) || ""
|
|
1314
1318
|
].join(" ").trim() || "-"
|
|
1315
1319
|
}, null, 8, ["content"]))
|
|
1316
1320
|
])) : u("", !0)
|
|
@@ -1326,7 +1330,7 @@ const $t = {
|
|
|
1326
1330
|
]),
|
|
1327
1331
|
_: 1
|
|
1328
1332
|
}),
|
|
1329
|
-
|
|
1333
|
+
c[3] || (c[3] = n("div", { class: "flex flex-col font-medium text-center" }, [
|
|
1330
1334
|
n("span", null, "No customer attached"),
|
|
1331
1335
|
n("span", { class: "text-sm text-oc-text-400" }, " Add customer detail to this transaction ")
|
|
1332
1336
|
], -1))
|
|
@@ -1336,23 +1340,23 @@ const $t = {
|
|
|
1336
1340
|
size: "small",
|
|
1337
1341
|
class: "w-full",
|
|
1338
1342
|
label: "Add customer",
|
|
1339
|
-
onClick:
|
|
1343
|
+
onClick: c[2] || (c[2] = (O) => d.$emit("addCustomer"))
|
|
1340
1344
|
})
|
|
1341
1345
|
], 64)),
|
|
1342
|
-
|
|
1346
|
+
d.$slots.bottom ? (t(), i("div", {
|
|
1343
1347
|
key: 4,
|
|
1344
1348
|
class: p({ "opacity-0 group-hover:opacity-100": e.isHover })
|
|
1345
1349
|
}, [
|
|
1346
|
-
k(
|
|
1350
|
+
k(d.$slots, "bottom", {}, void 0, !0)
|
|
1347
1351
|
], 2)) : u("", !0)
|
|
1348
1352
|
]),
|
|
1349
|
-
|
|
1350
|
-
k(
|
|
1353
|
+
d.$slots.leading ? (t(), i("div", Ra, [
|
|
1354
|
+
k(d.$slots, "leading", {}, void 0, !0)
|
|
1351
1355
|
])) : u("", !0)
|
|
1352
1356
|
], 2);
|
|
1353
1357
|
};
|
|
1354
1358
|
}
|
|
1355
|
-
}, jt = /* @__PURE__ */ we(Qa, [["__scopeId", "data-v-
|
|
1359
|
+
}, jt = /* @__PURE__ */ we(Qa, [["__scopeId", "data-v-78669018"]]), Xa = { class: "bg-oc-bg-dark flex flex-col gap-3 p-4 rounded" }, Fa = { key: 0 }, hf = {
|
|
1356
1360
|
__name: "OcTransferSummary",
|
|
1357
1361
|
props: {
|
|
1358
1362
|
transfer: {
|
|
@@ -1362,10 +1366,10 @@ const $t = {
|
|
|
1362
1366
|
hasFxData: Boolean
|
|
1363
1367
|
},
|
|
1364
1368
|
setup(e) {
|
|
1365
|
-
const r = e,
|
|
1369
|
+
const r = e, a = V(() => {
|
|
1366
1370
|
var c;
|
|
1367
1371
|
return (c = r.transfer.source_currency) == null ? void 0 : c.toUpperCase();
|
|
1368
|
-
}),
|
|
1372
|
+
}), l = V(() => {
|
|
1369
1373
|
var c;
|
|
1370
1374
|
return (c = r.transfer.payment_currency) == null ? void 0 : c.toUpperCase();
|
|
1371
1375
|
}), s = V(() => {
|
|
@@ -1380,7 +1384,7 @@ const $t = {
|
|
|
1380
1384
|
A(o(Ye), {
|
|
1381
1385
|
class: "justify-between font-medium [&>span]:text-base",
|
|
1382
1386
|
label: "FX Rate",
|
|
1383
|
-
content: `${
|
|
1387
|
+
content: `${a.value} 1 = ${l.value} ${e.transfer.exchange_rate}`,
|
|
1384
1388
|
variant: "big",
|
|
1385
1389
|
"show-copy-tooltip": !1
|
|
1386
1390
|
}, null, 8, ["content"])
|
|
@@ -1442,11 +1446,11 @@ const $t = {
|
|
|
1442
1446
|
isOpenDefault: Boolean
|
|
1443
1447
|
},
|
|
1444
1448
|
emits: ["update:modelValue", "edit", "delete"],
|
|
1445
|
-
setup(e, { expose: r, emit:
|
|
1446
|
-
const
|
|
1447
|
-
|
|
1449
|
+
setup(e, { expose: r, emit: a }) {
|
|
1450
|
+
const l = e, s = a, d = J(l.isOpenDefault), c = () => {
|
|
1451
|
+
l.isNoToggleForced || l.isDisabled || (d.value = !d.value, s("update:modelValue", d.value));
|
|
1448
1452
|
};
|
|
1449
|
-
return fe(() =>
|
|
1453
|
+
return fe(() => l.modelValue, (m) => {
|
|
1450
1454
|
d.value = m;
|
|
1451
1455
|
}), r({ toggleAccordion: c }), (m, f) => (t(), i("div", {
|
|
1452
1456
|
class: p(["rounded border border-gray-200 group overflow-hidden", {
|
|
@@ -1561,15 +1565,15 @@ const $t = {
|
|
|
1561
1565
|
},
|
|
1562
1566
|
emits: ["more"],
|
|
1563
1567
|
setup(e, { emit: r }) {
|
|
1564
|
-
const
|
|
1565
|
-
|
|
1568
|
+
const a = r, l = J(!1), s = () => {
|
|
1569
|
+
l.value = !l.value, a("more");
|
|
1566
1570
|
};
|
|
1567
1571
|
return (d, c) => (t(), i("div", {
|
|
1568
1572
|
class: p(["px-5 py-4 rounded border border-gray-200 group", {
|
|
1569
1573
|
"hover:shadow-normal": !e.isDisabled && !e.isTransparent,
|
|
1570
1574
|
"border-none !p-0": e.isTransparent
|
|
1571
1575
|
}]),
|
|
1572
|
-
onMouseleave: c[1] || (c[1] = (m) =>
|
|
1576
|
+
onMouseleave: c[1] || (c[1] = (m) => l.value = !1)
|
|
1573
1577
|
}, [
|
|
1574
1578
|
n("div", cl, [
|
|
1575
1579
|
k(d.$slots, "logo"),
|
|
@@ -1594,8 +1598,8 @@ const $t = {
|
|
|
1594
1598
|
k(d.$slots, "actions", {}, () => [
|
|
1595
1599
|
e.isDropdownActionsVisible && !e.isDisabled ? (t(), g(o(ve), {
|
|
1596
1600
|
key: 0,
|
|
1597
|
-
modelValue:
|
|
1598
|
-
"onUpdate:modelValue": c[0] || (c[0] = (m) =>
|
|
1601
|
+
modelValue: l.value,
|
|
1602
|
+
"onUpdate:modelValue": c[0] || (c[0] = (m) => l.value = m),
|
|
1599
1603
|
placement: "bottom-end"
|
|
1600
1604
|
}, {
|
|
1601
1605
|
menu: I(() => [
|
|
@@ -1657,7 +1661,7 @@ const $t = {
|
|
|
1657
1661
|
imageClass: String
|
|
1658
1662
|
},
|
|
1659
1663
|
setup(e) {
|
|
1660
|
-
return (r,
|
|
1664
|
+
return (r, a) => (t(), i("div", xl, [
|
|
1661
1665
|
n("img", {
|
|
1662
1666
|
src: e.image,
|
|
1663
1667
|
class: p([e.imageClass, "object-contain"]),
|
|
@@ -1676,10 +1680,10 @@ const $t = {
|
|
|
1676
1680
|
page: Object
|
|
1677
1681
|
},
|
|
1678
1682
|
setup(e) {
|
|
1679
|
-
const r = J(!1),
|
|
1683
|
+
const r = J(!1), a = (s) => {
|
|
1680
1684
|
let d = document.createElement("DIV");
|
|
1681
1685
|
return d.innerHTML = s, d.textContent || d.innerText || "";
|
|
1682
|
-
},
|
|
1686
|
+
}, l = (s) => s == null ? void 0 : s.replace("generics/medium/", "generics/thumbnail/");
|
|
1683
1687
|
return (s, d) => (t(), i("div", {
|
|
1684
1688
|
class: "w-full p-5 flex",
|
|
1685
1689
|
onMouseleave: d[1] || (d[1] = (c) => r.value = !1)
|
|
@@ -1687,7 +1691,7 @@ const $t = {
|
|
|
1687
1691
|
e.page.page_cover_url ? (t(), i("div", Sl, [
|
|
1688
1692
|
n("div", {
|
|
1689
1693
|
class: "w-[100px] h-[100px] rounded !bg-cover",
|
|
1690
|
-
style: me(`background:url(${
|
|
1694
|
+
style: me(`background:url(${l(e.page.page_cover_url)})`)
|
|
1691
1695
|
}, null, 4)
|
|
1692
1696
|
])) : u("", !0),
|
|
1693
1697
|
n("div", Il, [
|
|
@@ -1714,7 +1718,7 @@ const $t = {
|
|
|
1714
1718
|
}, 8, ["modelValue"])
|
|
1715
1719
|
])
|
|
1716
1720
|
]),
|
|
1717
|
-
n("div", Ll, x(
|
|
1721
|
+
n("div", Ll, x(a(e.page.description)), 1),
|
|
1718
1722
|
n("div", jl, [
|
|
1719
1723
|
n("span", Bl, [
|
|
1720
1724
|
d[2] || (d[2] = n("span", { class: "text-oc-text-300" }, "Last updated : ", -1)),
|
|
@@ -1762,10 +1766,10 @@ const $t = {
|
|
|
1762
1766
|
emits: ["edit", "delete"],
|
|
1763
1767
|
setup(e) {
|
|
1764
1768
|
var m;
|
|
1765
|
-
const r = e,
|
|
1769
|
+
const r = e, a = V(() => {
|
|
1766
1770
|
var f;
|
|
1767
1771
|
return ((f = r.paymentMethods) == null ? void 0 : f.length) > d.value;
|
|
1768
|
-
}),
|
|
1772
|
+
}), l = V(
|
|
1769
1773
|
() => {
|
|
1770
1774
|
var f, v;
|
|
1771
1775
|
return (v = r.paymentMethods) == null ? void 0 : v.slice(d.value, (f = r.paymentMethods) == null ? void 0 : f.length);
|
|
@@ -1827,7 +1831,7 @@ const $t = {
|
|
|
1827
1831
|
alt: b.method,
|
|
1828
1832
|
src: b.svg
|
|
1829
1833
|
}, null, 8, Dl))), 128)),
|
|
1830
|
-
|
|
1834
|
+
a.value ? (t(), g(o(se), {
|
|
1831
1835
|
key: 0,
|
|
1832
1836
|
position: "top-end",
|
|
1833
1837
|
"popper-options": { strategy: "fixed" }
|
|
@@ -1839,7 +1843,7 @@ const $t = {
|
|
|
1839
1843
|
]),
|
|
1840
1844
|
popper: I(() => [
|
|
1841
1845
|
n("div", Pl, [
|
|
1842
|
-
(t(!0), i(Y, null, T(
|
|
1846
|
+
(t(!0), i(Y, null, T(l.value, (b) => (t(), i("img", {
|
|
1843
1847
|
key: b.method,
|
|
1844
1848
|
width: "35",
|
|
1845
1849
|
height: "24",
|
|
@@ -1887,7 +1891,7 @@ const $t = {
|
|
|
1887
1891
|
medium: "w-[56px]",
|
|
1888
1892
|
large: "w-16"
|
|
1889
1893
|
};
|
|
1890
|
-
return (
|
|
1894
|
+
return (a, l) => (t(), i("div", {
|
|
1891
1895
|
class: p(["p-4 flex gap-x-4 rounded items-center border border-gray-200 group", { "hover:shadow-normal": !e.isDisabled }])
|
|
1892
1896
|
}, [
|
|
1893
1897
|
n("div", {
|
|
@@ -1936,7 +1940,7 @@ const $t = {
|
|
|
1936
1940
|
iconTextClass: String
|
|
1937
1941
|
},
|
|
1938
1942
|
setup(e) {
|
|
1939
|
-
return Zt(), (r,
|
|
1943
|
+
return Zt(), (r, a) => (t(), i("div", nn, [
|
|
1940
1944
|
n("div", null, [
|
|
1941
1945
|
n("div", {
|
|
1942
1946
|
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"])
|
|
@@ -1991,31 +1995,31 @@ const $t = {
|
|
|
1991
1995
|
emits: ["more"],
|
|
1992
1996
|
setup(e) {
|
|
1993
1997
|
const r = J(!1);
|
|
1994
|
-
return (
|
|
1998
|
+
return (a, l) => {
|
|
1995
1999
|
var s;
|
|
1996
2000
|
return t(), i("div", cn, [
|
|
1997
2001
|
n("div", un, [
|
|
1998
2002
|
n("div", mn, [
|
|
1999
2003
|
e.title ? (t(), i("span", fn, x(e.title), 1)) : u("", !0),
|
|
2000
|
-
|
|
2004
|
+
l[3] || (l[3] = F(" - ", -1)),
|
|
2001
2005
|
e.date ? (t(), i("span", pn, x(e.date), 1)) : u("", !0)
|
|
2002
2006
|
]),
|
|
2003
2007
|
A(o(ve), {
|
|
2004
2008
|
modelValue: r.value,
|
|
2005
|
-
"onUpdate:modelValue":
|
|
2009
|
+
"onUpdate:modelValue": l[2] || (l[2] = (d) => r.value = d)
|
|
2006
2010
|
}, {
|
|
2007
2011
|
menu: I(() => [
|
|
2008
2012
|
n("div", {
|
|
2009
|
-
onMouseleave:
|
|
2013
|
+
onMouseleave: l[1] || (l[1] = (d) => r.value = !1)
|
|
2010
2014
|
}, [
|
|
2011
|
-
k(
|
|
2015
|
+
k(a.$slots, "menu")
|
|
2012
2016
|
], 32)
|
|
2013
2017
|
]),
|
|
2014
2018
|
default: I(() => [
|
|
2015
2019
|
A(o(L), {
|
|
2016
2020
|
name: "dots-vertical",
|
|
2017
2021
|
class: "opacity-0 p-2 group-hover:opacity-100 cursor-pointer active:bg-oc-gray-100 rounded",
|
|
2018
|
-
onClick:
|
|
2022
|
+
onClick: l[0] || (l[0] = (d) => a.$emit("more"))
|
|
2019
2023
|
})
|
|
2020
2024
|
]),
|
|
2021
2025
|
_: 3
|
|
@@ -2076,8 +2080,8 @@ const $t = {
|
|
|
2076
2080
|
"update:modelValue"
|
|
2077
2081
|
],
|
|
2078
2082
|
setup(e, { emit: r }) {
|
|
2079
|
-
const
|
|
2080
|
-
switch (
|
|
2083
|
+
const a = e, l = V(() => {
|
|
2084
|
+
switch (a.type) {
|
|
2081
2085
|
case "timeLine":
|
|
2082
2086
|
return gt;
|
|
2083
2087
|
case "webhook":
|
|
@@ -2098,7 +2102,7 @@ const $t = {
|
|
|
2098
2102
|
return gt;
|
|
2099
2103
|
}
|
|
2100
2104
|
});
|
|
2101
|
-
return (s, d) => (t(), g(ot(
|
|
2105
|
+
return (s, d) => (t(), g(ot(l.value), G(a, {
|
|
2102
2106
|
onMore: d[0] || (d[0] = (c) => s.$emit("more")),
|
|
2103
2107
|
onEdit: d[1] || (d[1] = (c) => s.$emit("edit")),
|
|
2104
2108
|
onDelete: d[2] || (d[2] = (c) => s.$emit("delete")),
|
|
@@ -2124,18 +2128,18 @@ const $t = {
|
|
|
2124
2128
|
}
|
|
2125
2129
|
},
|
|
2126
2130
|
setup(e) {
|
|
2127
|
-
return (r,
|
|
2131
|
+
return (r, a) => (t(), i("div", An, [
|
|
2128
2132
|
n("span", hn, x(e.title) + ":", 1),
|
|
2129
2133
|
n("span", yn, x(e.url), 1),
|
|
2130
2134
|
e.isCopy ? (t(), g(o(Me), {
|
|
2131
2135
|
key: 0,
|
|
2132
2136
|
value: e.url
|
|
2133
2137
|
}, {
|
|
2134
|
-
default: I(({ isShow:
|
|
2138
|
+
default: I(({ isShow: l }) => [
|
|
2135
2139
|
A(o(L), {
|
|
2136
2140
|
width: "14",
|
|
2137
2141
|
height: "14",
|
|
2138
|
-
class: p(["cursor-pointer transition-all duration-500 group-hover/url:opacity-100",
|
|
2142
|
+
class: p(["cursor-pointer transition-all duration-500 group-hover/url:opacity-100", l ? "opacity-100" : "md:opacity-0"]),
|
|
2139
2143
|
name: "copy"
|
|
2140
2144
|
}, null, 8, ["class"])
|
|
2141
2145
|
]),
|
|
@@ -2170,12 +2174,12 @@ const $t = {
|
|
|
2170
2174
|
}
|
|
2171
2175
|
},
|
|
2172
2176
|
setup(e) {
|
|
2173
|
-
const r = e,
|
|
2174
|
-
return (
|
|
2175
|
-
class: p(["flex gap-x-5 text-sm group", { "flex-col":
|
|
2177
|
+
const r = e, a = V(() => r.alignment === "vertical");
|
|
2178
|
+
return (l, s) => (t(), i("div", {
|
|
2179
|
+
class: p(["flex gap-x-5 text-sm group", { "flex-col": a.value }])
|
|
2176
2180
|
}, [
|
|
2177
2181
|
n("div", {
|
|
2178
|
-
class: p(["flex gap-x-2 items-center shrink-0 text-oc-text-400", { "w-[80px]": e.variant === "small" && !
|
|
2182
|
+
class: p(["flex gap-x-2 items-center shrink-0 text-oc-text-400", { "w-[80px]": e.variant === "small" && !a.value }])
|
|
2179
2183
|
}, [
|
|
2180
2184
|
F(x(e.label) + " ", 1),
|
|
2181
2185
|
e.showCopyTooltip ? (t(), g(o(Me), {
|
|
@@ -2194,9 +2198,9 @@ const $t = {
|
|
|
2194
2198
|
}, 8, ["value"])) : u("", !0)
|
|
2195
2199
|
], 2),
|
|
2196
2200
|
n("div", {
|
|
2197
|
-
class: p({ "text-base font-medium":
|
|
2201
|
+
class: p({ "text-base font-medium": a.value })
|
|
2198
2202
|
}, [
|
|
2199
|
-
k(
|
|
2203
|
+
k(l.$slots, "content", {}, () => [
|
|
2200
2204
|
n("span", null, x(e.content), 1)
|
|
2201
2205
|
])
|
|
2202
2206
|
], 2)
|
|
@@ -2220,15 +2224,15 @@ const $t = {
|
|
|
2220
2224
|
noDataDescription: String
|
|
2221
2225
|
},
|
|
2222
2226
|
setup(e) {
|
|
2223
|
-
const r = Zt(),
|
|
2224
|
-
return (
|
|
2227
|
+
const r = Zt(), a = (l) => !!r[l];
|
|
2228
|
+
return (l, s) => (t(), i("div", {
|
|
2225
2229
|
class: p(["border border-gray-200 rounded p-5 flex flex-col grow transition relative", {
|
|
2226
2230
|
"border-transparent": e.transparent,
|
|
2227
2231
|
"hover:shadow": e.hover,
|
|
2228
2232
|
shadow: e.shadow
|
|
2229
2233
|
}])
|
|
2230
2234
|
}, [
|
|
2231
|
-
e.title && !
|
|
2235
|
+
e.title && !a("header") ? (t(), i("div", {
|
|
2232
2236
|
key: 0,
|
|
2233
2237
|
class: p(["flex items-start text-oc-text-400 font-medium text-[10px]", e.titleClass])
|
|
2234
2238
|
}, [
|
|
@@ -2252,11 +2256,11 @@ const $t = {
|
|
|
2252
2256
|
_: 1
|
|
2253
2257
|
})) : u("", !0)
|
|
2254
2258
|
], 2)) : u("", !0),
|
|
2255
|
-
k(
|
|
2259
|
+
k(l.$slots, "header"),
|
|
2256
2260
|
n("div", wn, [
|
|
2257
|
-
k(
|
|
2261
|
+
k(l.$slots, "default")
|
|
2258
2262
|
]),
|
|
2259
|
-
k(
|
|
2263
|
+
k(l.$slots, "footer"),
|
|
2260
2264
|
e.isLoading ? (t(), i("div", Cn, [
|
|
2261
2265
|
A(o(L), {
|
|
2262
2266
|
name: "loading-2",
|
|
@@ -2301,8 +2305,8 @@ const $t = {
|
|
|
2301
2305
|
},
|
|
2302
2306
|
emits: ["update:model-value"],
|
|
2303
2307
|
setup(e, { emit: r }) {
|
|
2304
|
-
const
|
|
2305
|
-
return (
|
|
2308
|
+
const a = J(!1);
|
|
2309
|
+
return (l, s) => (t(), i("div", {
|
|
2306
2310
|
class: p(["fixed top-0 bottom-0 shadow-xl bg-oc-bg-light transition-all h-full z-50 overflow-y-auto", {
|
|
2307
2311
|
"right-0": e.modelValue && e.position === "right",
|
|
2308
2312
|
"right-[-999px] w-0": !e.modelValue && e.position === "right",
|
|
@@ -2312,14 +2316,14 @@ const $t = {
|
|
|
2312
2316
|
}, [
|
|
2313
2317
|
e.modelValue ? (t(), i("div", Sn, [
|
|
2314
2318
|
n("div", In, [
|
|
2315
|
-
k(
|
|
2319
|
+
k(l.$slots, "header", {}, () => [
|
|
2316
2320
|
n("div", Zn, [
|
|
2317
2321
|
n("span", On, [
|
|
2318
|
-
k(
|
|
2322
|
+
k(l.$slots, "title", {}, () => [
|
|
2319
2323
|
F(x(e.title), 1)
|
|
2320
2324
|
])
|
|
2321
2325
|
]),
|
|
2322
|
-
k(
|
|
2326
|
+
k(l.$slots, "description", {}, () => [
|
|
2323
2327
|
n("div", Kn, [
|
|
2324
2328
|
e.description ? (t(), i("span", zn, x(e.description), 1)) : u("", !0),
|
|
2325
2329
|
A(o(Me), {
|
|
@@ -2342,8 +2346,8 @@ const $t = {
|
|
|
2342
2346
|
n("div", Ln, [
|
|
2343
2347
|
e.dropdownOptions ? (t(), g(o(ve), G({
|
|
2344
2348
|
key: 0,
|
|
2345
|
-
modelValue:
|
|
2346
|
-
"onUpdate:modelValue": s[0] || (s[0] = (d) =>
|
|
2349
|
+
modelValue: a.value,
|
|
2350
|
+
"onUpdate:modelValue": s[0] || (s[0] = (d) => a.value = d),
|
|
2347
2351
|
"popper-options": { strategy: "fixed" },
|
|
2348
2352
|
placement: "bottom",
|
|
2349
2353
|
class: "text-sm"
|
|
@@ -2370,7 +2374,7 @@ const $t = {
|
|
|
2370
2374
|
e.isClose ? (t(), i("div", {
|
|
2371
2375
|
key: 1,
|
|
2372
2376
|
class: "p-[6px] rounded cursor-pointer text-oc-gray-500 hover:bg-gray-100 hover:text-oc-text",
|
|
2373
|
-
onClick: s[1] || (s[1] = (d) =>
|
|
2377
|
+
onClick: s[1] || (s[1] = (d) => l.$emit("update:model-value", !1))
|
|
2374
2378
|
}, [
|
|
2375
2379
|
A(o(L), {
|
|
2376
2380
|
name: "x",
|
|
@@ -2381,7 +2385,7 @@ const $t = {
|
|
|
2381
2385
|
])
|
|
2382
2386
|
])
|
|
2383
2387
|
]),
|
|
2384
|
-
k(
|
|
2388
|
+
k(l.$slots, "bottom")
|
|
2385
2389
|
])) : u("", !0)
|
|
2386
2390
|
], 2));
|
|
2387
2391
|
}
|
|
@@ -2423,7 +2427,7 @@ const $t = {
|
|
|
2423
2427
|
}
|
|
2424
2428
|
},
|
|
2425
2429
|
setup(e) {
|
|
2426
|
-
return (r,
|
|
2430
|
+
return (r, a) => (t(), i("div", Nn, [
|
|
2427
2431
|
n("div", Wn, [
|
|
2428
2432
|
e.status === "completed" ? (t(), i("div", qn, [
|
|
2429
2433
|
A(o(L), {
|
|
@@ -2463,10 +2467,10 @@ const $t = {
|
|
|
2463
2467
|
}
|
|
2464
2468
|
},
|
|
2465
2469
|
setup(e) {
|
|
2466
|
-
const r = e,
|
|
2470
|
+
const r = e, a = J(!1), l = J(), s = (d) => d ? window.getComputedStyle(d).whiteSpace === "nowrap" ? d.scrollWidth > d.clientWidth : d.scrollHeight > d.clientHeight : !1;
|
|
2467
2471
|
return ke(async () => {
|
|
2468
|
-
r.header.variant === "tooltip" && (await Te(),
|
|
2469
|
-
}), (d, c) =>
|
|
2472
|
+
r.header.variant === "tooltip" && (await Te(), a.value = s(l.value));
|
|
2473
|
+
}), (d, c) => a.value ? (t(), g(o(se), {
|
|
2470
2474
|
key: 0,
|
|
2471
2475
|
"popper-options": { strategy: "fixed" },
|
|
2472
2476
|
position: "top",
|
|
@@ -2486,7 +2490,7 @@ const $t = {
|
|
|
2486
2490
|
})) : (t(), i("div", {
|
|
2487
2491
|
key: 1,
|
|
2488
2492
|
ref_key: "textEl",
|
|
2489
|
-
ref:
|
|
2493
|
+
ref: l,
|
|
2490
2494
|
class: "truncate"
|
|
2491
2495
|
}, x(e.row[e.header.key] || "N/A"), 513));
|
|
2492
2496
|
}
|
|
@@ -2551,12 +2555,12 @@ const $t = {
|
|
|
2551
2555
|
},
|
|
2552
2556
|
emits: ["toggleChildren", "click", "click:col"],
|
|
2553
2557
|
setup(e, { emit: r }) {
|
|
2554
|
-
const
|
|
2558
|
+
const a = r, l = (c) => ({
|
|
2555
2559
|
"font-reddit-mono": c.variant === "date",
|
|
2556
2560
|
"font-reddit-mono font-semibold": c.variant === "amount",
|
|
2557
2561
|
"text-oc-text-400": c.variant === "secondary"
|
|
2558
2562
|
}), s = J(!1), d = () => {
|
|
2559
|
-
s.value = !s.value,
|
|
2563
|
+
s.value = !s.value, a("toggleChildren");
|
|
2560
2564
|
};
|
|
2561
2565
|
return (c, m) => {
|
|
2562
2566
|
var v, y, b, j;
|
|
@@ -2612,7 +2616,7 @@ const $t = {
|
|
|
2612
2616
|
onClick: (C) => c.$emit("click:col", e.row, z)
|
|
2613
2617
|
}, [
|
|
2614
2618
|
n("div", {
|
|
2615
|
-
class: p(["px-5 py-3 text-[13px] flex gap-2 items-center justify-between w-full", [z.class,
|
|
2619
|
+
class: p(["px-5 py-3 text-[13px] flex gap-2 items-center justify-between w-full", [z.class, l(z)]])
|
|
2616
2620
|
}, [
|
|
2617
2621
|
k(c.$slots, z.key, {
|
|
2618
2622
|
item: e.row,
|
|
@@ -2690,26 +2694,26 @@ const $t = {
|
|
|
2690
2694
|
},
|
|
2691
2695
|
emits: ["update:selected", "click:row"],
|
|
2692
2696
|
setup(e, { emit: r }) {
|
|
2693
|
-
const
|
|
2697
|
+
const a = e, l = r, s = V(() => {
|
|
2694
2698
|
var M;
|
|
2695
|
-
return
|
|
2699
|
+
return a.isLoading ? [] : ((M = a.options) == null ? void 0 : M.fields) ?? [];
|
|
2696
2700
|
}), d = V(() => {
|
|
2697
2701
|
var M;
|
|
2698
|
-
return ((M =
|
|
2702
|
+
return ((M = a.options) == null ? void 0 : M.headers) ?? [];
|
|
2699
2703
|
}), c = V(() => {
|
|
2700
2704
|
var M;
|
|
2701
|
-
return
|
|
2705
|
+
return a.isLoading ? !1 : (M = a.options) == null ? void 0 : M.isSelectable;
|
|
2702
2706
|
}), m = V(() => {
|
|
2703
2707
|
var M;
|
|
2704
|
-
return (((M =
|
|
2708
|
+
return (((M = a.options) == null ? void 0 : M.isExpand) && !(a != null && a.isLoading)) ?? !1;
|
|
2705
2709
|
}), f = V(
|
|
2706
|
-
() => typeof
|
|
2710
|
+
() => typeof a.rowKey == "function" ? a.rowKey : (M) => M[a.rowKey]
|
|
2707
2711
|
), v = V({
|
|
2708
2712
|
get() {
|
|
2709
|
-
return
|
|
2713
|
+
return a.selected || [];
|
|
2710
2714
|
},
|
|
2711
2715
|
set(M) {
|
|
2712
|
-
|
|
2716
|
+
l("update:selected", M);
|
|
2713
2717
|
}
|
|
2714
2718
|
}), y = J(null), b = J("desc"), j = V(() => y.value ? [...s.value].sort((E, D) => {
|
|
2715
2719
|
const Q = E[y.value], X = D[y.value];
|
|
@@ -2727,15 +2731,15 @@ const $t = {
|
|
|
2727
2731
|
C = !1;
|
|
2728
2732
|
return;
|
|
2729
2733
|
}
|
|
2730
|
-
}, S = J(null),
|
|
2731
|
-
let w = null,
|
|
2734
|
+
}, S = J(null), K = J(null);
|
|
2735
|
+
let w = null, O = null, N = null, q = null;
|
|
2732
2736
|
const W = J(!0), B = J(!1);
|
|
2733
2737
|
let H = null;
|
|
2734
2738
|
fe(
|
|
2735
|
-
() =>
|
|
2739
|
+
() => a.isLoading,
|
|
2736
2740
|
(M) => {
|
|
2737
2741
|
M ? (B.value = !1, H && clearTimeout(H), H = setTimeout(() => {
|
|
2738
|
-
|
|
2742
|
+
a.isLoading && (B.value = !0);
|
|
2739
2743
|
}, 3e3)) : (B.value = !1, H && (clearTimeout(H), H = null));
|
|
2740
2744
|
}
|
|
2741
2745
|
);
|
|
@@ -2751,11 +2755,11 @@ const $t = {
|
|
|
2751
2755
|
return parseInt(E) + parseInt(D);
|
|
2752
2756
|
}, te = (M, E) => window.getComputedStyle(M, null).getPropertyValue(E), le = (M) => {
|
|
2753
2757
|
M.addEventListener("mousedown", function(E) {
|
|
2754
|
-
E.preventDefault(), E.stopPropagation(), w = E.target.parentElement,
|
|
2758
|
+
E.preventDefault(), E.stopPropagation(), w = E.target.parentElement, O = w.nextElementSibling;
|
|
2755
2759
|
const D = S.value, Q = D ? D.scrollLeft : 0;
|
|
2756
2760
|
N = E.pageX + Q;
|
|
2757
2761
|
const X = $(w);
|
|
2758
|
-
q = w.offsetWidth - X,
|
|
2762
|
+
q = w.offsetWidth - X, O && O.offsetWidth - X;
|
|
2759
2763
|
}), M.addEventListener("click", function(E) {
|
|
2760
2764
|
E.preventDefault(), E.stopPropagation();
|
|
2761
2765
|
}), M.addEventListener("mouseover", function(E) {
|
|
@@ -2778,7 +2782,7 @@ const $t = {
|
|
|
2778
2782
|
}, ce = () => {
|
|
2779
2783
|
Z && (C = !0, setTimeout(() => {
|
|
2780
2784
|
C = !1;
|
|
2781
|
-
}, 0)), Z = !1, w = void 0,
|
|
2785
|
+
}, 0)), Z = !1, w = void 0, O = void 0, N = void 0, q = void 0;
|
|
2782
2786
|
}, ge = (M) => {
|
|
2783
2787
|
if (!M) return;
|
|
2784
2788
|
const E = M.getElementsByTagName("tr")[0], D = E ? E.children : void 0;
|
|
@@ -2810,7 +2814,7 @@ const $t = {
|
|
|
2810
2814
|
}
|
|
2811
2815
|
}, he = () => {
|
|
2812
2816
|
var M;
|
|
2813
|
-
((M =
|
|
2817
|
+
((M = K.value) == null ? void 0 : M.scrollLeft) > 0 ? W.value = !0 : W.value = !1;
|
|
2814
2818
|
};
|
|
2815
2819
|
let ae = null;
|
|
2816
2820
|
function ze(M, E) {
|
|
@@ -2826,7 +2830,7 @@ const $t = {
|
|
|
2826
2830
|
}, Le = ze(re, 50);
|
|
2827
2831
|
ke(async () => {
|
|
2828
2832
|
await Te(), setTimeout(() => {
|
|
2829
|
-
S.value && (be(S.value),
|
|
2833
|
+
S.value && (be(S.value), K.value.addEventListener("scroll", he), he(), ae = new MutationObserver(() => {
|
|
2830
2834
|
Le();
|
|
2831
2835
|
}), ae.observe(S.value, { childList: !0, subtree: !0 }));
|
|
2832
2836
|
}, 100), document.addEventListener("mousemove", ie), document.addEventListener("mouseup", ce);
|
|
@@ -2838,7 +2842,7 @@ const $t = {
|
|
|
2838
2842
|
if (d.value.findIndex((ue) => ue.key === E) === 0) {
|
|
2839
2843
|
let ue = "left-0";
|
|
2840
2844
|
m.value && c.value ? ue = "left-[62px]" : (m.value || c.value) && (ue = "left-[31px]"), Q.push(
|
|
2841
|
-
`!sticky ${ue} ${
|
|
2845
|
+
`!sticky ${ue} ${a.isLoading ? "z-[0]" : D ? "z-30" : "z-20"}`
|
|
2842
2846
|
);
|
|
2843
2847
|
}
|
|
2844
2848
|
return Q.join(" ");
|
|
@@ -2850,7 +2854,7 @@ const $t = {
|
|
|
2850
2854
|
const M = v.value.length === s.value.length;
|
|
2851
2855
|
v.value = M ? [] : [...s.value];
|
|
2852
2856
|
}, P = (M, E) => {
|
|
2853
|
-
!E.disableClickRow && E.key !== "actions" &&
|
|
2857
|
+
!E.disableClickRow && E.key !== "actions" && l("click:row", {
|
|
2854
2858
|
field: M,
|
|
2855
2859
|
header: E
|
|
2856
2860
|
});
|
|
@@ -2864,7 +2868,7 @@ const $t = {
|
|
|
2864
2868
|
])) : u("", !0),
|
|
2865
2869
|
n("div", {
|
|
2866
2870
|
ref_key: "scrollContainerRef",
|
|
2867
|
-
ref:
|
|
2871
|
+
ref: K,
|
|
2868
2872
|
class: p(["w-full", { "overflow-auto": !e.isLoading }])
|
|
2869
2873
|
}, [
|
|
2870
2874
|
n("table", {
|
|
@@ -2875,9 +2879,9 @@ const $t = {
|
|
|
2875
2879
|
}, [
|
|
2876
2880
|
n("thead", null, [
|
|
2877
2881
|
n("tr", null, [
|
|
2878
|
-
m.value ? (t(), i("th", ti, E[0] || (E[0] = [
|
|
2882
|
+
m.value ? (t(), i("th", ti, [...E[0] || (E[0] = [
|
|
2879
2883
|
n("div", { class: "flex p-3 items-center min-h-[35px] border-b border-oc-text-200" }, null, -1)
|
|
2880
|
-
]))) : u("", !0),
|
|
2884
|
+
])])) : u("", !0),
|
|
2881
2885
|
c.value ? (t(), i("th", {
|
|
2882
2886
|
key: 1,
|
|
2883
2887
|
class: p(["p-0 bg-oc-gray-50 border-r border-oc-gray-200 sticky z-30", m.value ? "left-[31px]" : "left-0"]),
|
|
@@ -2912,7 +2916,7 @@ const $t = {
|
|
|
2912
2916
|
n("tr", null, [
|
|
2913
2917
|
n("td", null, [
|
|
2914
2918
|
n("div", {
|
|
2915
|
-
style: me({ width: ((D =
|
|
2919
|
+
style: me({ width: ((D = K.value) == null ? void 0 : D.offsetWidth) + "px" }),
|
|
2916
2920
|
class: "flex flex-col justify-center items-center py-10 gap-y-4 bg-white relative z-100"
|
|
2917
2921
|
}, [
|
|
2918
2922
|
E[2] || (E[2] = n("img", {
|
|
@@ -2920,10 +2924,10 @@ const $t = {
|
|
|
2920
2924
|
alt: "loading",
|
|
2921
2925
|
class: "w-7 h-7"
|
|
2922
2926
|
}, null, -1)),
|
|
2923
|
-
B.value ? (t(), i("div", oi, E[1] || (E[1] = [
|
|
2927
|
+
B.value ? (t(), i("div", oi, [...E[1] || (E[1] = [
|
|
2924
2928
|
n("span", { class: "font-medium" }, "Fetching data", -1),
|
|
2925
2929
|
n("span", { class: "text-oc-text-400 text-sm" }, "Loading data, this may take a few moments..", -1)
|
|
2926
|
-
]))) : u("", !0)
|
|
2930
|
+
])])) : u("", !0)
|
|
2927
2931
|
], 4)
|
|
2928
2932
|
])
|
|
2929
2933
|
])
|
|
@@ -3004,11 +3008,11 @@ const $t = {
|
|
|
3004
3008
|
"update:isExpandable": []
|
|
3005
3009
|
},
|
|
3006
3010
|
setup(e) {
|
|
3007
|
-
const r = J(),
|
|
3011
|
+
const r = J(), a = e, l = async (s) => {
|
|
3008
3012
|
await Te(), r.value && (r.value.style.maxHeight = s ? "max-content" : "0");
|
|
3009
3013
|
};
|
|
3010
|
-
return fe(() =>
|
|
3011
|
-
a
|
|
3014
|
+
return fe(() => a.isExpandable, l), Ht(() => {
|
|
3015
|
+
l(a.isExpandable);
|
|
3012
3016
|
}), (s, d) => (t(), i("div", {
|
|
3013
3017
|
class: p(e.isDisabled && "opacity-60")
|
|
3014
3018
|
}, [
|
|
@@ -3018,7 +3022,7 @@ const $t = {
|
|
|
3018
3022
|
e.isExpandable ? "rounded-t border-oc-gray-200" : "rounded border-transparent",
|
|
3019
3023
|
e.headerStyle
|
|
3020
3024
|
]]),
|
|
3021
|
-
onClick: d[0] || (d[0] = (c) =>
|
|
3025
|
+
onClick: d[0] || (d[0] = (c) => a.isDisabled ? null : s.$emit("update:isExpandable", !a.isExpandable))
|
|
3022
3026
|
}, [
|
|
3023
3027
|
k(s.$slots, "header", {}, () => [
|
|
3024
3028
|
F(x(e.header), 1)
|
|
@@ -3057,7 +3061,7 @@ const $t = {
|
|
|
3057
3061
|
}
|
|
3058
3062
|
},
|
|
3059
3063
|
setup(e) {
|
|
3060
|
-
const r = e,
|
|
3064
|
+
const r = e, a = V(() => !["completed", "error", "pending"].includes(r.variant)), l = {
|
|
3061
3065
|
completed: "check-2",
|
|
3062
3066
|
pending: "time",
|
|
3063
3067
|
error: "filled-x-circle"
|
|
@@ -3076,11 +3080,11 @@ const $t = {
|
|
|
3076
3080
|
return (c, m) => (t(), i("div", {
|
|
3077
3081
|
class: p(["rounded-full w-7 h-7 flex items-center justify-center", s[e.variant]])
|
|
3078
3082
|
}, [
|
|
3079
|
-
|
|
3083
|
+
a.value ? k(c.$slots, "default", { key: 0 }) : (t(), g(o(L), {
|
|
3080
3084
|
key: 1,
|
|
3081
3085
|
width: d[e.variant],
|
|
3082
3086
|
height: d[e.variant],
|
|
3083
|
-
name:
|
|
3087
|
+
name: l[e.variant]
|
|
3084
3088
|
}, null, 8, ["width", "height", "name"]))
|
|
3085
3089
|
], 2));
|
|
3086
3090
|
}
|
|
@@ -3108,12 +3112,12 @@ const $t = {
|
|
|
3108
3112
|
}
|
|
3109
3113
|
},
|
|
3110
3114
|
setup(e) {
|
|
3111
|
-
const r = J(),
|
|
3112
|
-
r.value && (r.value.style.height =
|
|
3115
|
+
const r = J(), a = J(!1), l = () => {
|
|
3116
|
+
r.value && (r.value.style.height = a.value ? `${r.value.scrollHeight}px` : "0px");
|
|
3113
3117
|
}, s = () => {
|
|
3114
|
-
|
|
3118
|
+
a.value = !a.value, l();
|
|
3115
3119
|
};
|
|
3116
|
-
return fe(() => r.value,
|
|
3120
|
+
return fe(() => r.value, l), (d, c) => (t(), i("div", {
|
|
3117
3121
|
class: p(["hover:bg-oc-gray-50 border overflow-hidden", e.isBorder ? "border-oc-gray-200 rounded" : "border-transparent"])
|
|
3118
3122
|
}, [
|
|
3119
3123
|
n("div", {
|
|
@@ -3130,7 +3134,7 @@ const $t = {
|
|
|
3130
3134
|
k(d.$slots, "button-group"),
|
|
3131
3135
|
A(o(L), {
|
|
3132
3136
|
name: "chevron-down",
|
|
3133
|
-
class: p(["text-oc-text-400 transition duration-300",
|
|
3137
|
+
class: p(["text-oc-text-400 transition duration-300", a.value ? "rotate-180" : ""])
|
|
3134
3138
|
}, null, 8, ["class"])
|
|
3135
3139
|
]),
|
|
3136
3140
|
n("div", {
|
|
@@ -3170,17 +3174,17 @@ const $t = {
|
|
|
3170
3174
|
"update:modelValue": []
|
|
3171
3175
|
},
|
|
3172
3176
|
setup(e, { emit: r }) {
|
|
3173
|
-
const
|
|
3177
|
+
const a = e, l = J(0), s = J(0), d = J(), c = r, m = V(() => a.tabs.findIndex((Z) => Z.value === a.modelValue)), f = V(() => a.variant === "pills"), v = V(() => a.direction === "vertical"), y = () => {
|
|
3174
3178
|
v.value ? s.value = Math.round(d.value.clientHeight / ht) : s.value = Math.round(d.value.clientWidth / At);
|
|
3175
3179
|
}, b = (Z) => {
|
|
3176
3180
|
var S;
|
|
3177
|
-
const C = Z === "left" ? --m.value : ++m.value, h = (S =
|
|
3181
|
+
const C = Z === "left" ? --m.value : ++m.value, h = (S = a.tabs[C]) == null ? void 0 : S.value;
|
|
3178
3182
|
h !== void 0 && c("update:modelValue", h);
|
|
3179
3183
|
}, j = () => {
|
|
3180
|
-
const Z =
|
|
3184
|
+
const Z = a.tabs.findIndex((C) => C.value === a.modelValue);
|
|
3181
3185
|
Z > -1 && Te(() => {
|
|
3182
3186
|
var h;
|
|
3183
|
-
y(),
|
|
3187
|
+
y(), l.value = Z;
|
|
3184
3188
|
const C = {};
|
|
3185
3189
|
v.value ? C.top = Z * ht : C.left = Z * At, (h = d.value) == null || h.scroll({
|
|
3186
3190
|
...C,
|
|
@@ -3188,12 +3192,12 @@ const $t = {
|
|
|
3188
3192
|
});
|
|
3189
3193
|
});
|
|
3190
3194
|
}, z = (Z) => {
|
|
3191
|
-
|
|
3195
|
+
a.isDisabled || c("update:modelValue", Z);
|
|
3192
3196
|
};
|
|
3193
3197
|
return ke(() => {
|
|
3194
|
-
y(),
|
|
3198
|
+
y(), a.isArrows && j();
|
|
3195
3199
|
}), fe(
|
|
3196
|
-
() =>
|
|
3200
|
+
() => a.tabs,
|
|
3197
3201
|
() => {
|
|
3198
3202
|
y();
|
|
3199
3203
|
},
|
|
@@ -3201,7 +3205,7 @@ const $t = {
|
|
|
3201
3205
|
deep: !0
|
|
3202
3206
|
}
|
|
3203
3207
|
), fe(
|
|
3204
|
-
() =>
|
|
3208
|
+
() => a.modelValue,
|
|
3205
3209
|
() => {
|
|
3206
3210
|
j();
|
|
3207
3211
|
}
|
|
@@ -3218,7 +3222,7 @@ const $t = {
|
|
|
3218
3222
|
"w-full": e.isFullWidth
|
|
3219
3223
|
}])
|
|
3220
3224
|
}, [
|
|
3221
|
-
|
|
3225
|
+
l.value > 0 && e.isArrows ? (t(), i("div", {
|
|
3222
3226
|
key: 0,
|
|
3223
3227
|
class: p(["sticky top-0 bottom-0 left-0 z-[1] flex items-center bg-white", { "pb-4": !f.value, "justify-center": v.value }])
|
|
3224
3228
|
}, [
|
|
@@ -3234,13 +3238,13 @@ const $t = {
|
|
|
3234
3238
|
class: p(["flex items-center", { "flex-col": v.value, "w-full": e.isFullWidth }])
|
|
3235
3239
|
}, [
|
|
3236
3240
|
(t(!0), i(Y, null, T(e.tabs, (h) => {
|
|
3237
|
-
var S,
|
|
3241
|
+
var S, K;
|
|
3238
3242
|
return t(), i("div", {
|
|
3239
3243
|
key: h.value,
|
|
3240
3244
|
class: p(["relative cursor-pointer min-w-[48px] gap-x-3 items-center flex justify-center", [
|
|
3241
3245
|
h.class,
|
|
3242
3246
|
f.value ? "py-2 px-3 rounded" : "px-4 pb-3 border-b-2 -mb-[1px]",
|
|
3243
|
-
((S = e.modelValue) == null ? void 0 : S.toString()) === ((
|
|
3247
|
+
((S = e.modelValue) == null ? void 0 : S.toString()) === ((K = h.value) == null ? void 0 : K.toString()) ? f.value ? "bg-oc-gray-200 text-oc-text-500" : "border-oc-primary-500 font-medium text-oc-text-500" : f.value ? "text-oc-text-400" : "border-transparent text-oc-text-400",
|
|
3244
3248
|
e.isArrows ? "!justify-normal !min-w-[100px]" : "",
|
|
3245
3249
|
v.value ? "!justify-start w-full py-3 px-5" : "",
|
|
3246
3250
|
v.value && e.isArrows ? "!min-h-[35px]" : "",
|
|
@@ -3265,7 +3269,7 @@ const $t = {
|
|
|
3265
3269
|
], 10, mi);
|
|
3266
3270
|
}), 128))
|
|
3267
3271
|
], 2),
|
|
3268
|
-
s.value +
|
|
3272
|
+
s.value + l.value < e.tabs.length && e.isArrows ? (t(), i("div", {
|
|
3269
3273
|
key: 1,
|
|
3270
3274
|
class: p(["sticky top-0 bottom-0 right-0 flex items-center bg-white", {
|
|
3271
3275
|
"pb-4": !f.value,
|
|
@@ -3296,9 +3300,9 @@ const $t = {
|
|
|
3296
3300
|
},
|
|
3297
3301
|
emits: ["update:modelValue"],
|
|
3298
3302
|
setup(e) {
|
|
3299
|
-
return (r,
|
|
3303
|
+
return (r, a) => (t(), i("div", {
|
|
3300
3304
|
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 }]),
|
|
3301
|
-
onClick:
|
|
3305
|
+
onClick: a[0] || (a[0] = (l) => r.$emit("update:modelValue", e.tab.value))
|
|
3302
3306
|
}, [
|
|
3303
3307
|
k(r.$slots, "logo", {}, () => [
|
|
3304
3308
|
e.tab.logo ? (t(), i("img", {
|
|
@@ -3331,7 +3335,7 @@ const $t = {
|
|
|
3331
3335
|
}
|
|
3332
3336
|
},
|
|
3333
3337
|
setup(e) {
|
|
3334
|
-
return (r,
|
|
3338
|
+
return (r, a) => (t(), i("div", {
|
|
3335
3339
|
class: p(["flex flex-col gap-y-3 text-sm cursor-pointer", e.isCurrent || e.isCompleted ? "text-oc-text-500" : "text-oc-text-300"])
|
|
3336
3340
|
}, [
|
|
3337
3341
|
n("div", {
|
|
@@ -3366,11 +3370,11 @@ const $t = {
|
|
|
3366
3370
|
},
|
|
3367
3371
|
emits: ["update:model-value"],
|
|
3368
3372
|
setup(e) {
|
|
3369
|
-
return (r,
|
|
3373
|
+
return (r, a) => (t(), i("div", hi, [
|
|
3370
3374
|
k(r.$slots, "default", {}, () => [
|
|
3371
|
-
(t(!0), i(Y, null, T(e.steps, (
|
|
3375
|
+
(t(!0), i(Y, null, T(e.steps, (l, s) => (t(), g(Ai, {
|
|
3372
3376
|
key: s,
|
|
3373
|
-
title:
|
|
3377
|
+
title: l.title,
|
|
3374
3378
|
value: s + 1,
|
|
3375
3379
|
"is-current": s === e.modelValue,
|
|
3376
3380
|
"is-completed": s < e.modelValue,
|
|
@@ -3394,12 +3398,12 @@ const $t = {
|
|
|
3394
3398
|
},
|
|
3395
3399
|
emits: ["update:modelValue"],
|
|
3396
3400
|
setup(e) {
|
|
3397
|
-
return (r,
|
|
3398
|
-
(t(!0), i(Y, null, T(e.variants, (
|
|
3399
|
-
key:
|
|
3400
|
-
"is-active":
|
|
3401
|
-
}, { ref_for: !0 },
|
|
3402
|
-
onClick: (s) => r.$emit("update:modelValue",
|
|
3401
|
+
return (r, a) => (t(), i("div", yi, [
|
|
3402
|
+
(t(!0), i(Y, null, T(e.variants, (l) => (t(), g(o(xi), G({
|
|
3403
|
+
key: l.value,
|
|
3404
|
+
"is-active": l.value === e.modelValue
|
|
3405
|
+
}, { ref_for: !0 }, l, {
|
|
3406
|
+
onClick: (s) => r.$emit("update:modelValue", l.isDisabled ? e.modelValue : l.value)
|
|
3403
3407
|
}), ne({ _: 2 }, [
|
|
3404
3408
|
T(r.$slots, (s, d) => ({
|
|
3405
3409
|
name: d,
|
|
@@ -3439,7 +3443,7 @@ const $t = {
|
|
|
3439
3443
|
}
|
|
3440
3444
|
},
|
|
3441
3445
|
setup(e) {
|
|
3442
|
-
return (r,
|
|
3446
|
+
return (r, a) => (t(), i("div", {
|
|
3443
3447
|
class: p([
|
|
3444
3448
|
"md:w-fit w-full py-3 px-4 border flex flex-col gap-y-2 rounded",
|
|
3445
3449
|
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"
|
|
@@ -3489,19 +3493,19 @@ const jf = /* @__PURE__ */ we(Oi, [["render", zi]]), Li = { class: "flex items-c
|
|
|
3489
3493
|
},
|
|
3490
3494
|
emits: ["back"],
|
|
3491
3495
|
setup(e) {
|
|
3492
|
-
return (r,
|
|
3496
|
+
return (r, a) => (t(), i("div", Li, [
|
|
3493
3497
|
k(r.$slots, "default", {}, () => [
|
|
3494
3498
|
k(r.$slots, "before"),
|
|
3495
3499
|
e.isSaved ? (t(), i("span", {
|
|
3496
3500
|
key: 0,
|
|
3497
3501
|
class: "text-oc-text-100 flex items-center cursor-pointer",
|
|
3498
|
-
onClick:
|
|
3502
|
+
onClick: a[0] || (a[0] = (l) => r.$emit("back"))
|
|
3499
3503
|
}, [
|
|
3500
3504
|
A(o(L), {
|
|
3501
3505
|
name: "chevron-down",
|
|
3502
3506
|
class: "rotate-90"
|
|
3503
3507
|
}),
|
|
3504
|
-
|
|
3508
|
+
a[1] || (a[1] = F(" Back ", -1))
|
|
3505
3509
|
])) : (t(), i("span", ji, " Unsaved changes ")),
|
|
3506
3510
|
k(r.$slots, "after")
|
|
3507
3511
|
])
|
|
@@ -3523,9 +3527,9 @@ const jf = /* @__PURE__ */ we(Oi, [["render", zi]]), Li = { class: "flex items-c
|
|
|
3523
3527
|
},
|
|
3524
3528
|
emits: ["save", "cancel", "addition-click", "dropdown-action"],
|
|
3525
3529
|
setup(e, { emit: r }) {
|
|
3526
|
-
return (
|
|
3527
|
-
k(
|
|
3528
|
-
k(
|
|
3530
|
+
return (a, l) => (t(), i("div", Bi, [
|
|
3531
|
+
k(a.$slots, "default", {}, () => [
|
|
3532
|
+
k(a.$slots, "before"),
|
|
3529
3533
|
n("div", Ji, [
|
|
3530
3534
|
e.isSecondaryButtonVisible ? (t(), g(o(U), G({
|
|
3531
3535
|
key: 0,
|
|
@@ -3533,18 +3537,18 @@ const jf = /* @__PURE__ */ we(Oi, [["render", zi]]), Li = { class: "flex items-c
|
|
|
3533
3537
|
variant: "secondary",
|
|
3534
3538
|
label: "Cancel"
|
|
3535
3539
|
}, e.secondaryProps, {
|
|
3536
|
-
onClick:
|
|
3540
|
+
onClick: l[0] || (l[0] = (s) => a.$emit("cancel"))
|
|
3537
3541
|
}), null, 16)) : u("", !0),
|
|
3538
|
-
k(
|
|
3542
|
+
k(a.$slots, "primary-button", {}, () => [
|
|
3539
3543
|
A(o(U), G({
|
|
3540
3544
|
class: "min-w-[100px]",
|
|
3541
3545
|
label: "Save"
|
|
3542
3546
|
}, e.primaryProps, {
|
|
3543
|
-
onClick:
|
|
3547
|
+
onClick: l[1] || (l[1] = (s) => a.$emit("save"))
|
|
3544
3548
|
}), null, 16)
|
|
3545
3549
|
])
|
|
3546
3550
|
]),
|
|
3547
|
-
k(
|
|
3551
|
+
k(a.$slots, "after")
|
|
3548
3552
|
])
|
|
3549
3553
|
]));
|
|
3550
3554
|
}
|
|
@@ -3559,9 +3563,9 @@ const jf = /* @__PURE__ */ we(Oi, [["render", zi]]), Li = { class: "flex items-c
|
|
|
3559
3563
|
"update:modelValue": []
|
|
3560
3564
|
},
|
|
3561
3565
|
setup(e) {
|
|
3562
|
-
const r = e,
|
|
3566
|
+
const r = e, a = J(!1), l = V(() => r.menus.find((m) => m.value === r.modelValue)), s = J(), d = J([]), c = (m) => {
|
|
3563
3567
|
if (!s.value) return;
|
|
3564
|
-
const f = (m == null ? void 0 : m.target) || d.value[r.menus.indexOf(
|
|
3568
|
+
const f = (m == null ? void 0 : m.target) || d.value[r.menus.indexOf(l.value)];
|
|
3565
3569
|
s.value.style.width = `${f.offsetWidth}px`, s.value.style.left = `${f.offsetLeft}px`;
|
|
3566
3570
|
};
|
|
3567
3571
|
return fe(
|
|
@@ -3596,12 +3600,12 @@ const jf = /* @__PURE__ */ we(Oi, [["render", zi]]), Li = { class: "flex items-c
|
|
|
3596
3600
|
n("div", {
|
|
3597
3601
|
ref_key: "currentRef",
|
|
3598
3602
|
ref: s,
|
|
3599
|
-
class: p([
|
|
3603
|
+
class: p([l.value.sidebarClass, "absolute transition-all duration-300 h-9 rounded min-w-[100px] bg-[rgba(0,_0,_0,_0.05)]"])
|
|
3600
3604
|
}, null, 2)
|
|
3601
3605
|
]),
|
|
3602
3606
|
A(o(ve), {
|
|
3603
|
-
modelValue:
|
|
3604
|
-
"onUpdate:modelValue": f[0] || (f[0] = (v) =>
|
|
3607
|
+
modelValue: a.value,
|
|
3608
|
+
"onUpdate:modelValue": f[0] || (f[0] = (v) => a.value = v),
|
|
3605
3609
|
class: "flex md:hidden"
|
|
3606
3610
|
}, {
|
|
3607
3611
|
menu: I(() => [
|
|
@@ -3613,17 +3617,17 @@ const jf = /* @__PURE__ */ we(Oi, [["render", zi]]), Li = { class: "flex items-c
|
|
|
3613
3617
|
]]),
|
|
3614
3618
|
text: v.label,
|
|
3615
3619
|
style: me({
|
|
3616
|
-
borderColor:
|
|
3620
|
+
borderColor: l.value.color
|
|
3617
3621
|
}),
|
|
3618
3622
|
onClick: () => {
|
|
3619
|
-
|
|
3623
|
+
a.value = !1, m.$emit("changePath", v.path), m.$emit("update:modelValue", v.value);
|
|
3620
3624
|
}
|
|
3621
3625
|
}, null, 8, ["text", "style", "class", "onClick"]))), 128))
|
|
3622
3626
|
])
|
|
3623
3627
|
]),
|
|
3624
3628
|
default: I(() => [
|
|
3625
3629
|
n("div", qi, [
|
|
3626
|
-
F(x(
|
|
3630
|
+
F(x(l.value.label) + " ", 1),
|
|
3627
3631
|
A(o(L), {
|
|
3628
3632
|
name: "chevron-down",
|
|
3629
3633
|
width: "20",
|
|
@@ -3656,7 +3660,7 @@ const jf = /* @__PURE__ */ we(Oi, [["render", zi]]), Li = { class: "flex items-c
|
|
|
3656
3660
|
isLoading: { type: Boolean, default: !1 }
|
|
3657
3661
|
},
|
|
3658
3662
|
setup(e) {
|
|
3659
|
-
return (r,
|
|
3663
|
+
return (r, a) => (t(), i("div", Mi, [
|
|
3660
3664
|
n("div", Yi, [
|
|
3661
3665
|
k(r.$slots, "title", {}, () => [
|
|
3662
3666
|
e.isLoading ? (t(), g(o(oe), {
|
|
@@ -3678,11 +3682,11 @@ const jf = /* @__PURE__ */ we(Oi, [["render", zi]]), Li = { class: "flex items-c
|
|
|
3678
3682
|
value: e.copyValue,
|
|
3679
3683
|
"tooltip-options": e.tooltipOptions
|
|
3680
3684
|
}, {
|
|
3681
|
-
default: I(({ isShow:
|
|
3685
|
+
default: I(({ isShow: l }) => [
|
|
3682
3686
|
A(o(L), {
|
|
3683
3687
|
width: "16",
|
|
3684
3688
|
height: "16",
|
|
3685
|
-
class: p(["cursor-pointer transition-all duration-500 group-hover:opacity-100",
|
|
3689
|
+
class: p(["cursor-pointer transition-all duration-500 group-hover:opacity-100", l ? "opacity-100" : "opacity-0"]),
|
|
3686
3690
|
name: "copy"
|
|
3687
3691
|
}, null, 8, ["class"])
|
|
3688
3692
|
]),
|
|
@@ -3705,7 +3709,7 @@ const jf = /* @__PURE__ */ we(Oi, [["render", zi]]), Li = { class: "flex items-c
|
|
|
3705
3709
|
},
|
|
3706
3710
|
setup(e) {
|
|
3707
3711
|
const r = J(!1);
|
|
3708
|
-
return (
|
|
3712
|
+
return (a, l) => (t(), i("div", Gi, [
|
|
3709
3713
|
n("div", Di, [
|
|
3710
3714
|
n("span", Pi, x(e.title), 1),
|
|
3711
3715
|
e.primaryButtonProps || e.secondaryButtonProps ? (t(), g(o(U), G({
|
|
@@ -3715,8 +3719,8 @@ const jf = /* @__PURE__ */ we(Oi, [["render", zi]]), Li = { class: "flex items-c
|
|
|
3715
3719
|
"additional-content": I(() => [
|
|
3716
3720
|
A(o(ve), {
|
|
3717
3721
|
modelValue: r.value,
|
|
3718
|
-
"onUpdate:modelValue":
|
|
3719
|
-
onClick:
|
|
3722
|
+
"onUpdate:modelValue": l[0] || (l[0] = (s) => r.value = s),
|
|
3723
|
+
onClick: l[1] || (l[1] = pe(() => {
|
|
3720
3724
|
}, ["stop"]))
|
|
3721
3725
|
}, {
|
|
3722
3726
|
menu: I(() => {
|
|
@@ -3764,7 +3768,7 @@ const jf = /* @__PURE__ */ we(Oi, [["render", zi]]), Li = { class: "flex items-c
|
|
|
3764
3768
|
_: 1
|
|
3765
3769
|
}, 8, ["value"])
|
|
3766
3770
|
])) : u("", !0),
|
|
3767
|
-
k(
|
|
3771
|
+
k(a.$slots, "mobile-amount"),
|
|
3768
3772
|
e.chipProps ? (t(), g(o(de), G({ key: 1 }, e.chipProps, { class: "self-start" }), null, 16)) : u("", !0)
|
|
3769
3773
|
]));
|
|
3770
3774
|
}
|
|
@@ -3789,7 +3793,7 @@ const jf = /* @__PURE__ */ we(Oi, [["render", zi]]), Li = { class: "flex items-c
|
|
|
3789
3793
|
back: []
|
|
3790
3794
|
},
|
|
3791
3795
|
setup(e) {
|
|
3792
|
-
return (r,
|
|
3796
|
+
return (r, a) => (t(), i("div", Fi, [
|
|
3793
3797
|
n("div", Ui, [
|
|
3794
3798
|
e.isBack ? (t(), g(o(U), {
|
|
3795
3799
|
key: 0,
|
|
@@ -3800,7 +3804,7 @@ const jf = /* @__PURE__ */ we(Oi, [["render", zi]]), Li = { class: "flex items-c
|
|
|
3800
3804
|
label: "Back",
|
|
3801
3805
|
"left-icon": "chevron-down",
|
|
3802
3806
|
class: "self-start",
|
|
3803
|
-
onClick:
|
|
3807
|
+
onClick: a[0] || (a[0] = (l) => r.$emit("back"))
|
|
3804
3808
|
})) : u("", !0),
|
|
3805
3809
|
n("div", {
|
|
3806
3810
|
class: p(["w-full gap-5 min-h-[36px]", [e.isMobileCombineButtons ? "hidden md:flex" : "flex", e.titleClass]])
|
|
@@ -3873,20 +3877,20 @@ const jf = /* @__PURE__ */ we(Oi, [["render", zi]]), Li = { class: "flex items-c
|
|
|
3873
3877
|
},
|
|
3874
3878
|
setup(e, { emit: r }) {
|
|
3875
3879
|
var y;
|
|
3876
|
-
const
|
|
3880
|
+
const a = e, l = r, s = J(!1), d = V(() => {
|
|
3877
3881
|
var b;
|
|
3878
|
-
return (b =
|
|
3882
|
+
return (b = a.primaryActions) == null ? void 0 : b.dropdownOptions;
|
|
3879
3883
|
}), c = J(((y = d.value) == null ? void 0 : y.isDropdownOpened) ?? !1), m = () => {
|
|
3880
|
-
s.value = !0,
|
|
3884
|
+
s.value = !0, l("copy"), setTimeout(() => s.value = !1, 1500);
|
|
3881
3885
|
}, f = V(
|
|
3882
3886
|
() => {
|
|
3883
3887
|
var b;
|
|
3884
|
-
return ((b =
|
|
3888
|
+
return ((b = a.primaryActions) == null ? void 0 : b.copyTooltipContent) ?? "Copy link";
|
|
3885
3889
|
}
|
|
3886
3890
|
), v = V(
|
|
3887
3891
|
() => {
|
|
3888
3892
|
var b;
|
|
3889
|
-
return ((b =
|
|
3893
|
+
return ((b = a.primaryActions) == null ? void 0 : b.copiedTooltipContent) ?? "Link copied!";
|
|
3890
3894
|
}
|
|
3891
3895
|
);
|
|
3892
3896
|
return (b, j) => {
|
|
@@ -3966,7 +3970,7 @@ const jf = /* @__PURE__ */ we(Oi, [["render", zi]]), Li = { class: "flex items-c
|
|
|
3966
3970
|
return [
|
|
3967
3971
|
n("div", ao, [
|
|
3968
3972
|
n("div", lo, [
|
|
3969
|
-
(t(!0), i(Y, null, T((Z = e.primaryActions.dropdownOptions) == null ? void 0 : Z.top, (S,
|
|
3973
|
+
(t(!0), i(Y, null, T((Z = e.primaryActions.dropdownOptions) == null ? void 0 : Z.top, (S, K) => (t(), i(Y, { key: K }, [
|
|
3970
3974
|
S != null && S.isCopyButton ? (t(), g(o(Ke), {
|
|
3971
3975
|
key: 0,
|
|
3972
3976
|
icon: s.value ? "check" : "copy",
|
|
@@ -3982,7 +3986,7 @@ const jf = /* @__PURE__ */ we(Oi, [["render", zi]]), Li = { class: "flex items-c
|
|
|
3982
3986
|
], 64))), 128))
|
|
3983
3987
|
]),
|
|
3984
3988
|
(C = e.primaryActions.dropdownOptions) != null && C.bottom ? (t(), i("div", no, [
|
|
3985
|
-
(t(!0), i(Y, null, T((h = e.primaryActions.dropdownOptions) == null ? void 0 : h.bottom, (S,
|
|
3989
|
+
(t(!0), i(Y, null, T((h = e.primaryActions.dropdownOptions) == null ? void 0 : h.bottom, (S, K) => (t(), i("div", { key: K }, [
|
|
3986
3990
|
S != null && S.tooltipText ? (t(), g(o(se), {
|
|
3987
3991
|
key: 0,
|
|
3988
3992
|
position: "bottom",
|
|
@@ -4015,9 +4019,9 @@ const jf = /* @__PURE__ */ we(Oi, [["render", zi]]), Li = { class: "flex items-c
|
|
|
4015
4019
|
"arrow-hidden": "",
|
|
4016
4020
|
distance: 7
|
|
4017
4021
|
}, {
|
|
4018
|
-
popper: I(() => j[4] || (j[4] = [
|
|
4022
|
+
popper: I(() => [...j[4] || (j[4] = [
|
|
4019
4023
|
n("div", { class: "py-2 px-3 whitespace-nowrap text-sm font-medium text-oc-text-400" }, " More actions ", -1)
|
|
4020
|
-
])),
|
|
4024
|
+
])]),
|
|
4021
4025
|
default: I(() => [
|
|
4022
4026
|
A(o(L), {
|
|
4023
4027
|
class: "p-2 cursor-pointer rounded-sm hover:bg-oc-accent-1-50-tr",
|
|
@@ -4050,15 +4054,15 @@ const jf = /* @__PURE__ */ we(Oi, [["render", zi]]), Li = { class: "flex items-c
|
|
|
4050
4054
|
},
|
|
4051
4055
|
setup(e) {
|
|
4052
4056
|
var s;
|
|
4053
|
-
const
|
|
4057
|
+
const a = J(((s = e.secondaryButtonProps) == null ? void 0 : s.isDropdownOpened) ?? !1), { isMobile: l } = Rt();
|
|
4054
4058
|
return (d, c) => e.isLoading ? (t(), i("div", uo, [
|
|
4055
4059
|
A(o(oe), { class: "w-[100px] h-[36px] rounded" }),
|
|
4056
4060
|
A(o(oe), { class: "w-[100px] h-[36px] rounded" })
|
|
4057
4061
|
])) : (t(), i("div", so, [
|
|
4058
4062
|
e.secondaryButtonProps ? (t(), g(o(ve), {
|
|
4059
4063
|
key: 0,
|
|
4060
|
-
modelValue:
|
|
4061
|
-
"onUpdate:modelValue": c[0] || (c[0] = (m) =>
|
|
4064
|
+
modelValue: a.value,
|
|
4065
|
+
"onUpdate:modelValue": c[0] || (c[0] = (m) => a.value = m),
|
|
4062
4066
|
distance: 10
|
|
4063
4067
|
}, {
|
|
4064
4068
|
menu: I(() => {
|
|
@@ -4071,7 +4075,7 @@ const jf = /* @__PURE__ */ we(Oi, [["render", zi]]), Li = { class: "flex items-c
|
|
|
4071
4075
|
}),
|
|
4072
4076
|
default: I(() => [
|
|
4073
4077
|
A(o(U), G({
|
|
4074
|
-
size: o(
|
|
4078
|
+
size: o(l) ? "small" : "default"
|
|
4075
4079
|
}, e.secondaryButtonProps), null, 16, ["size"])
|
|
4076
4080
|
]),
|
|
4077
4081
|
_: 1
|
|
@@ -4087,13 +4091,13 @@ const jf = /* @__PURE__ */ we(Oi, [["render", zi]]), Li = { class: "flex items-c
|
|
|
4087
4091
|
]),
|
|
4088
4092
|
default: I(() => [
|
|
4089
4093
|
A(o(U), G({
|
|
4090
|
-
size: o(
|
|
4094
|
+
size: o(l) ? "small" : "default"
|
|
4091
4095
|
}, e.primaryButtonProps), null, 16, ["size"])
|
|
4092
4096
|
]),
|
|
4093
4097
|
_: 1
|
|
4094
4098
|
})) : e.primaryButtonProps ? (t(), g(o(U), G({
|
|
4095
4099
|
key: 2,
|
|
4096
|
-
size: o(
|
|
4100
|
+
size: o(l) ? "small" : "default"
|
|
4097
4101
|
}, e.primaryButtonProps), null, 16, ["size"])) : u("", !0)
|
|
4098
4102
|
]));
|
|
4099
4103
|
}
|
|
@@ -4126,17 +4130,17 @@ const jf = /* @__PURE__ */ we(Oi, [["render", zi]]), Li = { class: "flex items-c
|
|
|
4126
4130
|
"support-click"
|
|
4127
4131
|
],
|
|
4128
4132
|
setup(e, { emit: r }) {
|
|
4129
|
-
const
|
|
4133
|
+
const a = r, l = e, s = Gt({
|
|
4130
4134
|
loading: !0,
|
|
4131
4135
|
expanded: []
|
|
4132
4136
|
}), d = (f) => {
|
|
4133
|
-
s.expanded.includes(f) ? s.expanded = s.expanded.filter((v) => v !== f) : s.expanded.push(f),
|
|
4137
|
+
s.expanded.includes(f) ? s.expanded = s.expanded.filter((v) => v !== f) : s.expanded.push(f), a("changeExpandedMenus", s.expanded);
|
|
4134
4138
|
}, c = (f) => {
|
|
4135
4139
|
var v;
|
|
4136
|
-
(v = f.children) != null && v.length ? d(f.name) :
|
|
4137
|
-
}, m = V(() => (
|
|
4140
|
+
(v = f.children) != null && v.length ? d(f.name) : a("redirect", f);
|
|
4141
|
+
}, m = V(() => (l.isExpanded ? "w-[300px] " : "w-[76px] ") + l.class);
|
|
4138
4142
|
return ke(() => {
|
|
4139
|
-
|
|
4143
|
+
l.sidebarMenu.forEach((f) => {
|
|
4140
4144
|
f.items.forEach((v) => {
|
|
4141
4145
|
v.children && v.children.forEach((y) => {
|
|
4142
4146
|
y.active && d(v.name);
|
|
@@ -4223,13 +4227,13 @@ const jf = /* @__PURE__ */ we(Oi, [["render", zi]]), Li = { class: "flex items-c
|
|
|
4223
4227
|
}
|
|
4224
4228
|
},
|
|
4225
4229
|
setup(e) {
|
|
4226
|
-
return (r,
|
|
4230
|
+
return (r, a) => (t(), i("div", {
|
|
4227
4231
|
class: p(["grid gap-3 transition-all duration-500 overflow-hidden", e.isExpanded ? "max-h-screen" : "max-h-0"])
|
|
4228
4232
|
}, [
|
|
4229
|
-
(t(!0), i(Y, null, T(e.menu.children, (
|
|
4233
|
+
(t(!0), i(Y, null, T(e.menu.children, (l, s) => (t(), i("div", {
|
|
4230
4234
|
key: s,
|
|
4231
4235
|
class: p(["text-oc-text-400 flex items-center rounded hover:bg-[var(--oc-sidebar-menu-hover)]", {
|
|
4232
|
-
"font-medium bg-[var(--oc-sidebar-menu-active)] text-[var(--oc-sidebar-menu-active-text)]":
|
|
4236
|
+
"font-medium bg-[var(--oc-sidebar-menu-active)] text-[var(--oc-sidebar-menu-active-text)]": l.active
|
|
4233
4237
|
}])
|
|
4234
4238
|
}, [
|
|
4235
4239
|
e.isExpandedSidebar ? (t(), g(o(L), {
|
|
@@ -4237,14 +4241,14 @@ const jf = /* @__PURE__ */ we(Oi, [["render", zi]]), Li = { class: "flex items-c
|
|
|
4237
4241
|
width: "22",
|
|
4238
4242
|
height: "22",
|
|
4239
4243
|
class: p(["flex z-[1] ml-[17.5px]", {
|
|
4240
|
-
"text-[var(--oc-sidebar-menu-active-icon)]": !
|
|
4241
|
-
"text-[var(--oc-sidebar-menu-active-icon-active)]":
|
|
4244
|
+
"text-[var(--oc-sidebar-menu-active-icon)]": !l.active,
|
|
4245
|
+
"text-[var(--oc-sidebar-menu-active-icon-active)]": l.active
|
|
4242
4246
|
}]),
|
|
4243
4247
|
name: "sidebar-submenu-icon"
|
|
4244
4248
|
}, null, 8, ["class"])) : u("", !0),
|
|
4245
4249
|
k(r.$slots, "label", {
|
|
4246
4250
|
menu: e.menu,
|
|
4247
|
-
submenu:
|
|
4251
|
+
submenu: l
|
|
4248
4252
|
})
|
|
4249
4253
|
], 2))), 128))
|
|
4250
4254
|
], 2));
|
|
@@ -4268,7 +4272,7 @@ const jf = /* @__PURE__ */ we(Oi, [["render", zi]]), Li = { class: "flex items-c
|
|
|
4268
4272
|
remove: []
|
|
4269
4273
|
},
|
|
4270
4274
|
setup(e) {
|
|
4271
|
-
const r = e,
|
|
4275
|
+
const r = e, a = V(() => {
|
|
4272
4276
|
let s = "";
|
|
4273
4277
|
switch (r.variant) {
|
|
4274
4278
|
case "accent-1":
|
|
@@ -4303,7 +4307,7 @@ const jf = /* @__PURE__ */ we(Oi, [["render", zi]]), Li = { class: "flex items-c
|
|
|
4303
4307
|
break;
|
|
4304
4308
|
}
|
|
4305
4309
|
return s;
|
|
4306
|
-
}),
|
|
4310
|
+
}), l = V(() => {
|
|
4307
4311
|
let s = "";
|
|
4308
4312
|
switch (r.variant) {
|
|
4309
4313
|
case "accent-1":
|
|
@@ -4340,7 +4344,7 @@ const jf = /* @__PURE__ */ we(Oi, [["render", zi]]), Li = { class: "flex items-c
|
|
|
4340
4344
|
return s;
|
|
4341
4345
|
});
|
|
4342
4346
|
return (s, d) => (t(), i("span", {
|
|
4343
|
-
class: p(["rounded-full flex items-center gap-x-3 py-1 px-3 text-sm leading-[18px]",
|
|
4347
|
+
class: p(["rounded-full flex items-center gap-x-3 py-1 px-3 text-sm leading-[18px]", a.value])
|
|
4344
4348
|
}, [
|
|
4345
4349
|
k(s.$slots, "default", {}, () => [
|
|
4346
4350
|
n("div", go, [
|
|
@@ -4377,7 +4381,7 @@ const jf = /* @__PURE__ */ we(Oi, [["render", zi]]), Li = { class: "flex items-c
|
|
|
4377
4381
|
key: 0,
|
|
4378
4382
|
width: "18",
|
|
4379
4383
|
height: "18",
|
|
4380
|
-
class: p([
|
|
4384
|
+
class: p([l.value, "cursor-pointer"]),
|
|
4381
4385
|
name: "filled-x-circle",
|
|
4382
4386
|
onClick: d[0] || (d[0] = pe((c) => s.$emit("remove"), ["stop"]))
|
|
4383
4387
|
}, null, 8, ["class"])) : u("", !0)
|
|
@@ -4414,7 +4418,7 @@ const jf = /* @__PURE__ */ we(Oi, [["render", zi]]), Li = { class: "flex items-c
|
|
|
4414
4418
|
payoutStatus: Object
|
|
4415
4419
|
},
|
|
4416
4420
|
setup(e) {
|
|
4417
|
-
return (r,
|
|
4421
|
+
return (r, a) => (t(), i("div", {
|
|
4418
4422
|
class: p(["p-1 flex items-center justify-center mb-5", [
|
|
4419
4423
|
e.isExpanded ? "rounded" : "w-fit rounded-full",
|
|
4420
4424
|
e.isPending ? "bg-oc-warning-500" : "account-setup-bg"
|
|
@@ -4431,16 +4435,16 @@ const jf = /* @__PURE__ */ we(Oi, [["render", zi]]), Li = { class: "flex items-c
|
|
|
4431
4435
|
class: "text-oc-warning-500"
|
|
4432
4436
|
})
|
|
4433
4437
|
]),
|
|
4434
|
-
|
|
4438
|
+
a[0] || (a[0] = n("div", { class: "text-oc-text-500 text-sm" }, "We’re currently reviewing your account.", -1))
|
|
4435
4439
|
]),
|
|
4436
4440
|
n("div", xo, [
|
|
4437
4441
|
n("div", ko, [
|
|
4438
4442
|
e.paymentStatus ? (t(), i("div", wo, [
|
|
4439
|
-
|
|
4443
|
+
a[1] || (a[1] = n("span", { class: "flex-1" }, "Payment", -1)),
|
|
4440
4444
|
A(de, ye(Ve(e.paymentStatus)), null, 16)
|
|
4441
4445
|
])) : u("", !0),
|
|
4442
4446
|
e.paymentStatus ? (t(), i("div", Co, [
|
|
4443
|
-
|
|
4447
|
+
a[2] || (a[2] = n("span", { class: "flex-1" }, "Payout", -1)),
|
|
4444
4448
|
A(de, ye(Ve(e.payoutStatus)), null, 16)
|
|
4445
4449
|
])) : u("", !0)
|
|
4446
4450
|
])
|
|
@@ -4448,7 +4452,7 @@ const jf = /* @__PURE__ */ we(Oi, [["render", zi]]), Li = { class: "flex items-c
|
|
|
4448
4452
|
], 64)) : (t(), i(Y, { key: 1 }, [
|
|
4449
4453
|
n("div", So, [
|
|
4450
4454
|
n("div", Io, [
|
|
4451
|
-
|
|
4455
|
+
a[3] || (a[3] = n("span", { class: "font-medium" }, "Account setup", -1)),
|
|
4452
4456
|
n("span", Zo, x(e.progress) + "%", 1)
|
|
4453
4457
|
]),
|
|
4454
4458
|
n("div", Oo, [
|
|
@@ -4458,7 +4462,7 @@ const jf = /* @__PURE__ */ we(Oi, [["render", zi]]), Li = { class: "flex items-c
|
|
|
4458
4462
|
}, null, 4)
|
|
4459
4463
|
])
|
|
4460
4464
|
]),
|
|
4461
|
-
|
|
4465
|
+
a[4] || (a[4] = n("div", { class: "text-sm font-bold text-[var(--oc-sidebar-menu-active-text)] text-center" }, " COMPLETE NOW -> ", -1))
|
|
4462
4466
|
], 64))
|
|
4463
4467
|
])) : (t(), i("div", Ko, [
|
|
4464
4468
|
e.isPending ? (t(), i("div", zo, [
|
|
@@ -4498,7 +4502,7 @@ const jf = /* @__PURE__ */ we(Oi, [["render", zi]]), Li = { class: "flex items-c
|
|
|
4498
4502
|
isSidebarExpanded: Boolean
|
|
4499
4503
|
},
|
|
4500
4504
|
setup(e) {
|
|
4501
|
-
return (r,
|
|
4505
|
+
return (r, a) => (t(), i("div", null, [
|
|
4502
4506
|
n("div", Jo, [
|
|
4503
4507
|
e.isSidebarExpanded && e.label ? (t(), i("div", No, [
|
|
4504
4508
|
n("span", null, x(e.label), 1)
|
|
@@ -4541,11 +4545,11 @@ const jf = /* @__PURE__ */ we(Oi, [["render", zi]]), Li = { class: "flex items-c
|
|
|
4541
4545
|
},
|
|
4542
4546
|
emits: ["close-menu"],
|
|
4543
4547
|
setup(e, { emit: r }) {
|
|
4544
|
-
const
|
|
4545
|
-
|
|
4548
|
+
const a = e, l = J(null), s = J(null), d = r, c = () => {
|
|
4549
|
+
a.isExpanded || !a.isMenuExpanded || d("close-menu");
|
|
4546
4550
|
};
|
|
4547
|
-
return fe(() => [
|
|
4548
|
-
!
|
|
4551
|
+
return fe(() => [a.isExpanded, s.value, l.value], () => {
|
|
4552
|
+
!l.value || !s.value || a.isExpanded || Qt(l.value, s.value, {
|
|
4549
4553
|
placement: "right-start",
|
|
4550
4554
|
strategy: "fixed"
|
|
4551
4555
|
});
|
|
@@ -4560,7 +4564,7 @@ const jf = /* @__PURE__ */ we(Oi, [["render", zi]]), Li = { class: "flex items-c
|
|
|
4560
4564
|
default: I(() => [
|
|
4561
4565
|
n("div", {
|
|
4562
4566
|
ref_key: "menuItemRef",
|
|
4563
|
-
ref:
|
|
4567
|
+
ref: l,
|
|
4564
4568
|
class: p(["py-2 px-3 gap-x-4 flex items-center rounded hover:bg-[var(--oc-sidebar-menu-active)]", {
|
|
4565
4569
|
"bg-[var(--oc-sidebar-menu-active)]": e.isActive,
|
|
4566
4570
|
"w-full": e.isExpanded
|
|
@@ -4652,7 +4656,7 @@ const jf = /* @__PURE__ */ we(Oi, [["render", zi]]), Li = { class: "flex items-c
|
|
|
4652
4656
|
isExpanded: Boolean
|
|
4653
4657
|
},
|
|
4654
4658
|
setup(e) {
|
|
4655
|
-
return (r,
|
|
4659
|
+
return (r, a) => (t(), i("div", {
|
|
4656
4660
|
class: p(["flex items-center gap-x-4 px-3 hover:text-[var(--oc-sidebar-menu-active-icon-active)] py-2 leading-[21px]", {
|
|
4657
4661
|
"font-medium text-oc-text": e.isActive,
|
|
4658
4662
|
"rounded-sm p-3 h-[34px] text-sm": !e.isExpanded
|
|
@@ -4660,9 +4664,9 @@ const jf = /* @__PURE__ */ we(Oi, [["render", zi]]), Li = { class: "flex items-c
|
|
|
4660
4664
|
}, [
|
|
4661
4665
|
n("div", {
|
|
4662
4666
|
class: p(["w-[18px] h-[18px] flex items-center justify-center", { "opacity-0": !e.isActive }])
|
|
4663
|
-
},
|
|
4667
|
+
}, [...a[0] || (a[0] = [
|
|
4664
4668
|
n("div", { class: "w-[6px] h-[6px] rounded-full bg-[var(--oc-sidebar-menu-active-icon-active)]" }, null, -1)
|
|
4665
|
-
]), 2),
|
|
4669
|
+
])], 2),
|
|
4666
4670
|
n("div", Do, x(e.label), 1),
|
|
4667
4671
|
e.isBeta ? (t(), i("div", Po, " BETA ")) : u("", !0),
|
|
4668
4672
|
e.isNew ? (t(), i("div", Ro, " NEW ")) : u("", !0),
|
|
@@ -4675,7 +4679,7 @@ const jf = /* @__PURE__ */ we(Oi, [["render", zi]]), Li = { class: "flex items-c
|
|
|
4675
4679
|
isExpanded: Boolean
|
|
4676
4680
|
},
|
|
4677
4681
|
setup(e) {
|
|
4678
|
-
return (r,
|
|
4682
|
+
return (r, a) => (t(), i("div", Fo, [
|
|
4679
4683
|
n("div", Uo, [
|
|
4680
4684
|
e.isExpanded ? k(r.$slots, "default", { key: 0 }) : u("", !0)
|
|
4681
4685
|
])
|
|
@@ -4698,8 +4702,8 @@ const jf = /* @__PURE__ */ we(Oi, [["render", zi]]), Li = { class: "flex items-c
|
|
|
4698
4702
|
}
|
|
4699
4703
|
},
|
|
4700
4704
|
setup(e) {
|
|
4701
|
-
return (r,
|
|
4702
|
-
|
|
4705
|
+
return (r, a) => (t(), i("div", _o, [
|
|
4706
|
+
a[2] || (a[2] = n("div", { class: "border absolute top-2 left-0 w-full h-[calc(100%-4px)] border-oc-gray-200 rounded pt-2" }, null, -1)),
|
|
4703
4707
|
n("div", es, [
|
|
4704
4708
|
n("div", ts, [
|
|
4705
4709
|
A(o(L), {
|
|
@@ -4713,14 +4717,14 @@ const jf = /* @__PURE__ */ we(Oi, [["render", zi]]), Li = { class: "flex items-c
|
|
|
4713
4717
|
class: "text-oc-text-300 hover:text-oc-text",
|
|
4714
4718
|
width: "14",
|
|
4715
4719
|
height: "14",
|
|
4716
|
-
onClick:
|
|
4720
|
+
onClick: a[0] || (a[0] = (l) => r.$emit("close"))
|
|
4717
4721
|
}),
|
|
4718
4722
|
A(o(L), {
|
|
4719
4723
|
name: "arrow-top-right",
|
|
4720
4724
|
class: "text-oc-text-300 hover:text-oc-text",
|
|
4721
4725
|
width: "14",
|
|
4722
4726
|
height: "14",
|
|
4723
|
-
onClick:
|
|
4727
|
+
onClick: a[1] || (a[1] = (l) => r.$emit("redirect"))
|
|
4724
4728
|
})
|
|
4725
4729
|
])
|
|
4726
4730
|
]),
|
|
@@ -4746,11 +4750,11 @@ const jf = /* @__PURE__ */ we(Oi, [["render", zi]]), Li = { class: "flex items-c
|
|
|
4746
4750
|
},
|
|
4747
4751
|
emits: ["titleClick", "update:modelValue"],
|
|
4748
4752
|
setup(e) {
|
|
4749
|
-
return (r,
|
|
4753
|
+
return (r, a) => (t(), i("div", is, [
|
|
4750
4754
|
e.title ? (t(), i("div", {
|
|
4751
4755
|
key: 0,
|
|
4752
4756
|
class: "py-4 gap-x-3 whitespace-nowrap cursor-pointer flex font-medium items-center",
|
|
4753
|
-
onClick:
|
|
4757
|
+
onClick: a[0] || (a[0] = (l) => r.$emit("titleClick"))
|
|
4754
4758
|
}, [
|
|
4755
4759
|
A(o(L), {
|
|
4756
4760
|
name: "chevron-down",
|
|
@@ -4761,14 +4765,14 @@ const jf = /* @__PURE__ */ we(Oi, [["render", zi]]), Li = { class: "flex items-c
|
|
|
4761
4765
|
F(" " + x(e.title), 1)
|
|
4762
4766
|
])) : u("", !0),
|
|
4763
4767
|
n("div", os, [
|
|
4764
|
-
(t(!0), i(Y, null, T(e.menu, (
|
|
4768
|
+
(t(!0), i(Y, null, T(e.menu, (l, s) => (t(), i("div", {
|
|
4765
4769
|
key: s,
|
|
4766
4770
|
class: p([
|
|
4767
4771
|
"py-3 whitespace-nowrap rounded cursor-pointer font-medium hover:bg-oc-accent-2-50-tr px-5",
|
|
4768
|
-
e.modelValue ===
|
|
4772
|
+
e.modelValue === l.value ? "bg-oc-accent-2-50-tr text-oc-accent-1" : "text-oc-text-400"
|
|
4769
4773
|
]),
|
|
4770
|
-
onClick: (d) => r.$emit("update:modelValue",
|
|
4771
|
-
}, x(
|
|
4774
|
+
onClick: (d) => r.$emit("update:modelValue", l.value)
|
|
4775
|
+
}, x(l.label), 11, ss))), 128))
|
|
4772
4776
|
])
|
|
4773
4777
|
]));
|
|
4774
4778
|
}
|
|
@@ -4874,10 +4878,10 @@ const jf = /* @__PURE__ */ we(Oi, [["render", zi]]), Li = { class: "flex items-c
|
|
|
4874
4878
|
description: "text-[12px]"
|
|
4875
4879
|
}
|
|
4876
4880
|
}));
|
|
4877
|
-
return (
|
|
4881
|
+
return (a, l) => (t(), i("div", {
|
|
4878
4882
|
class: p(["flex flex-col items-center", r.value[e.size].box])
|
|
4879
4883
|
}, [
|
|
4880
|
-
k(
|
|
4884
|
+
k(a.$slots, "icon", {}, () => [
|
|
4881
4885
|
n("div", rs, [
|
|
4882
4886
|
n("div", {
|
|
4883
4887
|
class: p(["flex justify-center border rounded-full items-center aspect-square", [
|
|
@@ -4906,7 +4910,7 @@ const jf = /* @__PURE__ */ we(Oi, [["render", zi]]), Li = { class: "flex items-c
|
|
|
4906
4910
|
n("span", {
|
|
4907
4911
|
class: p([r.value[e.size].title, "font-medium"])
|
|
4908
4912
|
}, x(e.title), 3),
|
|
4909
|
-
k(
|
|
4913
|
+
k(a.$slots, "description", {}, () => [
|
|
4910
4914
|
n("span", {
|
|
4911
4915
|
class: p([r.value[e.size].description, "text-oc-text-400 text-center"])
|
|
4912
4916
|
}, x(e.description), 3)
|
|
@@ -4923,7 +4927,7 @@ const jf = /* @__PURE__ */ we(Oi, [["render", zi]]), Li = { class: "flex items-c
|
|
|
4923
4927
|
label: e.isUpgrade ? e.upgradeLabel : e.addButtonLabel,
|
|
4924
4928
|
"left-icon": e.isUpgrade ? "" : e.addButtonIcon,
|
|
4925
4929
|
size: "small",
|
|
4926
|
-
onClick:
|
|
4930
|
+
onClick: l[0] || (l[0] = (s) => a.$emit("click:button"))
|
|
4927
4931
|
}, null, 8, ["label", "left-icon"])
|
|
4928
4932
|
])) : u("", !0)
|
|
4929
4933
|
], 2));
|
|
@@ -4950,7 +4954,7 @@ const jf = /* @__PURE__ */ we(Oi, [["render", zi]]), Li = { class: "flex items-c
|
|
|
4950
4954
|
countryIso: String
|
|
4951
4955
|
},
|
|
4952
4956
|
setup(e) {
|
|
4953
|
-
return (r,
|
|
4957
|
+
return (r, a) => (t(), i("div", {
|
|
4954
4958
|
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", [
|
|
4955
4959
|
e.isActive && !e.isLoading ? "border-b-[3px] border-oc-primary" : "border-oc-accent-1-100",
|
|
4956
4960
|
e.isLoading ? "p-3" : "px-5 py-4 min-h-[62px] max-h-[76px]"
|
|
@@ -4990,15 +4994,15 @@ const jf = /* @__PURE__ */ we(Oi, [["render", zi]]), Li = { class: "flex items-c
|
|
|
4990
4994
|
}
|
|
4991
4995
|
},
|
|
4992
4996
|
setup(e) {
|
|
4993
|
-
return (r,
|
|
4994
|
-
|
|
4997
|
+
return (r, a) => (t(), i("div", As, [
|
|
4998
|
+
a[0] || (a[0] = n("span", { class: "text-xs shrink-0 font-medium text-oc-text-300 uppercase" }, " Payment methods ", -1)),
|
|
4995
4999
|
n("div", hs, [
|
|
4996
|
-
(t(!0), i(Y, null, T(e.methods, (
|
|
4997
|
-
key:
|
|
5000
|
+
(t(!0), i(Y, null, T(e.methods, (l) => (t(), i("img", {
|
|
5001
|
+
key: l,
|
|
4998
5002
|
width: "35",
|
|
4999
|
-
alt:
|
|
5003
|
+
alt: l,
|
|
5000
5004
|
height: "24",
|
|
5001
|
-
src:
|
|
5005
|
+
src: l
|
|
5002
5006
|
}, null, 8, ys))), 128))
|
|
5003
5007
|
])
|
|
5004
5008
|
]));
|
|
@@ -5027,7 +5031,7 @@ const jf = /* @__PURE__ */ we(Oi, [["render", zi]]), Li = { class: "flex items-c
|
|
|
5027
5031
|
},
|
|
5028
5032
|
setup(e) {
|
|
5029
5033
|
const r = J(!1);
|
|
5030
|
-
return (
|
|
5034
|
+
return (a, l) => {
|
|
5031
5035
|
var s;
|
|
5032
5036
|
return t(), i("div", xs, [
|
|
5033
5037
|
e.isLoading ? (t(), g(o(oe), {
|
|
@@ -5044,7 +5048,7 @@ const jf = /* @__PURE__ */ we(Oi, [["render", zi]]), Li = { class: "flex items-c
|
|
|
5044
5048
|
})) : (t(), i("div", ws, [
|
|
5045
5049
|
A(o(ve), G({
|
|
5046
5050
|
modelValue: r.value,
|
|
5047
|
-
"onUpdate:modelValue":
|
|
5051
|
+
"onUpdate:modelValue": l[0] || (l[0] = (d) => r.value = d),
|
|
5048
5052
|
"popper-options": { strategy: "fixed" },
|
|
5049
5053
|
placement: "bottom",
|
|
5050
5054
|
class: "text-sm"
|
|
@@ -5120,24 +5124,24 @@ const jf = /* @__PURE__ */ we(Oi, [["render", zi]]), Li = { class: "flex items-c
|
|
|
5120
5124
|
changeTab: []
|
|
5121
5125
|
},
|
|
5122
5126
|
setup(e) {
|
|
5123
|
-
return (r,
|
|
5127
|
+
return (r, a) => (t(), i("div", Ss, [
|
|
5124
5128
|
n("div", Is, [
|
|
5125
|
-
(t(!0), i(Y, null, T(e.isLoading ? 2 : e.overviewTabs, (
|
|
5129
|
+
(t(!0), i(Y, null, T(e.isLoading ? 2 : e.overviewTabs, (l) => k(r.$slots, l.value, { tab: l }, () => [
|
|
5126
5130
|
(t(), g(gs, {
|
|
5127
|
-
key:
|
|
5128
|
-
title:
|
|
5131
|
+
key: l.value,
|
|
5132
|
+
title: l.title,
|
|
5129
5133
|
"is-loading": e.isLoading,
|
|
5130
|
-
content:
|
|
5131
|
-
"chip-options":
|
|
5132
|
-
"is-dropdown":
|
|
5133
|
-
"dropdown-options":
|
|
5134
|
-
"is-active":
|
|
5135
|
-
"country-iso":
|
|
5136
|
-
onClick: (s) => r.$emit("changeTab",
|
|
5134
|
+
content: l.content,
|
|
5135
|
+
"chip-options": l.chipOptions,
|
|
5136
|
+
"is-dropdown": l.isDropdown,
|
|
5137
|
+
"dropdown-options": l.dropdownOptions,
|
|
5138
|
+
"is-active": l.value === e.overviewActiveTab,
|
|
5139
|
+
"country-iso": l.countryIso,
|
|
5140
|
+
onClick: (s) => r.$emit("changeTab", l.value)
|
|
5137
5141
|
}, null, 8, ["title", "is-loading", "content", "chip-options", "is-dropdown", "dropdown-options", "is-active", "country-iso", "onClick"]))
|
|
5138
5142
|
])), 256))
|
|
5139
5143
|
]),
|
|
5140
|
-
|
|
5144
|
+
a[0] || (a[0] = n("div", { class: "border-t border-oc-gray-200" }, null, -1)),
|
|
5141
5145
|
A(Cs, {
|
|
5142
5146
|
"is-loading": e.isLoading,
|
|
5143
5147
|
"more-button-props": e.moreButtonProps,
|
|
@@ -5182,7 +5186,7 @@ const nt = /* @__PURE__ */ we(Os, [["render", zs]]), Ls = { class: "flex" }, js
|
|
|
5182
5186
|
emits: ["addCustomer"],
|
|
5183
5187
|
setup(e) {
|
|
5184
5188
|
const r = J(!1);
|
|
5185
|
-
return (
|
|
5189
|
+
return (a, l) => (t(), i("div", null, [
|
|
5186
5190
|
A(nt, { class: "!flex-nowrap flex-col w-full" }, {
|
|
5187
5191
|
default: I(() => {
|
|
5188
5192
|
var s, d;
|
|
@@ -5196,10 +5200,10 @@ const nt = /* @__PURE__ */ we(Os, [["render", zs]]), Ls = { class: "flex" }, js
|
|
|
5196
5200
|
class: c.class,
|
|
5197
5201
|
"is-loading": c.isLoading
|
|
5198
5202
|
}, { ref_for: !0 }, c), ne({ _: 2 }, [
|
|
5199
|
-
c.slot &&
|
|
5203
|
+
c.slot && a.$slots[c.slot] ? {
|
|
5200
5204
|
name: "content",
|
|
5201
5205
|
fn: I(() => [
|
|
5202
|
-
k(
|
|
5206
|
+
k(a.$slots, c.slot, {
|
|
5203
5207
|
data: c.content
|
|
5204
5208
|
})
|
|
5205
5209
|
]),
|
|
@@ -5231,7 +5235,7 @@ const nt = /* @__PURE__ */ we(Os, [["render", zs]]), Ls = { class: "flex" }, js
|
|
|
5231
5235
|
label: "See details ->",
|
|
5232
5236
|
size: "small",
|
|
5233
5237
|
"is-transparent": "",
|
|
5234
|
-
onClick:
|
|
5238
|
+
onClick: l[0] || (l[0] = (c) => r.value = !0)
|
|
5235
5239
|
})
|
|
5236
5240
|
];
|
|
5237
5241
|
}),
|
|
@@ -5242,7 +5246,7 @@ const nt = /* @__PURE__ */ we(Os, [["render", zs]]), Ls = { class: "flex" }, js
|
|
|
5242
5246
|
r.value ? (t(), i("div", {
|
|
5243
5247
|
key: 0,
|
|
5244
5248
|
class: "fixed z-[1005] top-0 left-0 w-screen flex justify-end h-screen bg-black/[.45]",
|
|
5245
|
-
onClick:
|
|
5249
|
+
onClick: l[1] || (l[1] = (s) => r.value = !1)
|
|
5246
5250
|
})) : u("", !0)
|
|
5247
5251
|
]),
|
|
5248
5252
|
_: 1
|
|
@@ -5251,7 +5255,7 @@ const nt = /* @__PURE__ */ we(Os, [["render", zs]]), Ls = { class: "flex" }, js
|
|
|
5251
5255
|
default: I(() => [
|
|
5252
5256
|
r.value ? (t(), i("div", Js, [
|
|
5253
5257
|
n("div", Ns, [
|
|
5254
|
-
|
|
5258
|
+
l[4] || (l[4] = n("span", { class: "font-medium" }, "Details", -1)),
|
|
5255
5259
|
A(o(U), {
|
|
5256
5260
|
size: "small",
|
|
5257
5261
|
"left-icon": "x",
|
|
@@ -5259,7 +5263,7 @@ const nt = /* @__PURE__ */ we(Os, [["render", zs]]), Ls = { class: "flex" }, js
|
|
|
5259
5263
|
"is-transparent": "",
|
|
5260
5264
|
class: "px-3",
|
|
5261
5265
|
variant: "secondary",
|
|
5262
|
-
onClick:
|
|
5266
|
+
onClick: l[2] || (l[2] = (s) => r.value = !1)
|
|
5263
5267
|
})
|
|
5264
5268
|
]),
|
|
5265
5269
|
n("div", Ws, [
|
|
@@ -5273,10 +5277,10 @@ const nt = /* @__PURE__ */ we(Os, [["render", zs]]), Ls = { class: "flex" }, js
|
|
|
5273
5277
|
class: c.class,
|
|
5274
5278
|
"is-loading": c.isLoading
|
|
5275
5279
|
}, { ref_for: !0 }, c), ne({ _: 2 }, [
|
|
5276
|
-
c.slot &&
|
|
5280
|
+
c.slot && a.$slots[c.slot] ? {
|
|
5277
5281
|
name: "content",
|
|
5278
5282
|
fn: I(() => [
|
|
5279
|
-
k(
|
|
5283
|
+
k(a.$slots, c.slot, {
|
|
5280
5284
|
data: c.content
|
|
5281
5285
|
})
|
|
5282
5286
|
]),
|
|
@@ -5290,7 +5294,7 @@ const nt = /* @__PURE__ */ we(Os, [["render", zs]]), Ls = { class: "flex" }, js
|
|
|
5290
5294
|
key: 0,
|
|
5291
5295
|
variant: e.customerCardVariant,
|
|
5292
5296
|
customer: e.customer,
|
|
5293
|
-
onAddCustomer:
|
|
5297
|
+
onAddCustomer: l[3] || (l[3] = (s) => a.$emit("addCustomer"))
|
|
5294
5298
|
}, null, 8, ["variant", "customer"])) : u("", !0)
|
|
5295
5299
|
])
|
|
5296
5300
|
])) : u("", !0)
|
|
@@ -5311,19 +5315,19 @@ const nt = /* @__PURE__ */ we(Os, [["render", zs]]), Ls = { class: "flex" }, js
|
|
|
5311
5315
|
},
|
|
5312
5316
|
emits: ["addCustomer", "editCustomer"],
|
|
5313
5317
|
setup(e) {
|
|
5314
|
-
return (r,
|
|
5318
|
+
return (r, a) => (t(), i(Y, null, [
|
|
5315
5319
|
n("div", Vs, [
|
|
5316
|
-
(t(!0), i(Y, null, T(e.boxes, (
|
|
5320
|
+
(t(!0), i(Y, null, T(e.boxes, (l, s) => (t(), g(nt, {
|
|
5317
5321
|
key: s,
|
|
5318
5322
|
class: p(
|
|
5319
|
-
(e.isCustomer ? "!grid grid-cols-4 grid-rows-2 gap-y-4 w-full !py-4 " : " ") + (
|
|
5323
|
+
(e.isCustomer ? "!grid grid-cols-4 grid-rows-2 gap-y-4 w-full !py-4 " : " ") + (l == null ? void 0 : l.style)
|
|
5320
5324
|
)
|
|
5321
5325
|
}, {
|
|
5322
5326
|
default: I(() => [
|
|
5323
|
-
|
|
5327
|
+
l.slot && r.$slots[l.slot] ? k(r.$slots, l.slot, {
|
|
5324
5328
|
key: 0,
|
|
5325
|
-
data: { ...
|
|
5326
|
-
}) : (t(!0), i(Y, { key: 1 }, T(
|
|
5329
|
+
data: { ...l, key: s }
|
|
5330
|
+
}) : (t(!0), i(Y, { key: 1 }, T(l.items, (d, c) => (t(), g(o(_e), G({
|
|
5327
5331
|
key: `${s}-${c}`,
|
|
5328
5332
|
"is-transparent": "",
|
|
5329
5333
|
title: d.title,
|
|
@@ -5341,14 +5345,14 @@ const nt = /* @__PURE__ */ we(Os, [["render", zs]]), Ls = { class: "flex" }, js
|
|
|
5341
5345
|
key: "0"
|
|
5342
5346
|
} : void 0
|
|
5343
5347
|
]), 1040, ["title", "class", "is-loading", "content"]))), 128)),
|
|
5344
|
-
|
|
5348
|
+
l.showInfo ? (t(), i("div", {
|
|
5345
5349
|
key: 2,
|
|
5346
|
-
class: p(["p-2",
|
|
5350
|
+
class: p(["p-2", l.infoTooltipStyle])
|
|
5347
5351
|
}, [
|
|
5348
5352
|
A(o(se), { "popper-options": { strategy: "fixed" } }, {
|
|
5349
5353
|
popper: I(() => [
|
|
5350
|
-
k(r.$slots,
|
|
5351
|
-
n("div", Ms, x(
|
|
5354
|
+
k(r.$slots, l.infoTooltipSlot, {}, () => [
|
|
5355
|
+
n("div", Ms, x(l.infoTooltip), 1)
|
|
5352
5356
|
])
|
|
5353
5357
|
]),
|
|
5354
5358
|
default: I(() => [
|
|
@@ -5372,8 +5376,8 @@ const nt = /* @__PURE__ */ we(Os, [["render", zs]]), Ls = { class: "flex" }, js
|
|
|
5372
5376
|
"is-hover": e.customerIsHover,
|
|
5373
5377
|
"is-edit": e.customerIsEdit,
|
|
5374
5378
|
class: "max-w-[300px]",
|
|
5375
|
-
onAddCustomer:
|
|
5376
|
-
onEditCustomer:
|
|
5379
|
+
onAddCustomer: a[0] || (a[0] = (l) => r.$emit("addCustomer")),
|
|
5380
|
+
onEditCustomer: a[1] || (a[1] = (l) => r.$emit("editCustomer", l))
|
|
5377
5381
|
}, ne({ _: 2 }, [
|
|
5378
5382
|
r.$slots["customer-leading"] ? {
|
|
5379
5383
|
name: "leading",
|
|
@@ -5397,9 +5401,9 @@ const nt = /* @__PURE__ */ we(Os, [["render", zs]]), Ls = { class: "flex" }, js
|
|
|
5397
5401
|
"is-customer": e.isCustomer,
|
|
5398
5402
|
"customer-card-variant": e.customerCardVariant,
|
|
5399
5403
|
customer: e.customer,
|
|
5400
|
-
onAddCustomer:
|
|
5404
|
+
onAddCustomer: a[2] || (a[2] = (l) => r.$emit("addCustomer"))
|
|
5401
5405
|
}, ne({ _: 2 }, [
|
|
5402
|
-
T(r.$slots, (
|
|
5406
|
+
T(r.$slots, (l, s) => ({
|
|
5403
5407
|
name: s,
|
|
5404
5408
|
fn: I((d) => [
|
|
5405
5409
|
k(r.$slots, s, ye(Ve(d)))
|
|
@@ -5462,14 +5466,14 @@ const nt = /* @__PURE__ */ we(Os, [["render", zs]]), Ls = { class: "flex" }, js
|
|
|
5462
5466
|
editCustomer: []
|
|
5463
5467
|
},
|
|
5464
5468
|
setup(e) {
|
|
5465
|
-
const r = e,
|
|
5469
|
+
const r = e, a = async () => {
|
|
5466
5470
|
try {
|
|
5467
5471
|
await navigator.clipboard.writeText(r.mainLink + r.userId);
|
|
5468
|
-
} catch (
|
|
5469
|
-
console.error("Unable to copy text to clipboard. Error: ",
|
|
5472
|
+
} catch (l) {
|
|
5473
|
+
console.error("Unable to copy text to clipboard. Error: ", l);
|
|
5470
5474
|
}
|
|
5471
5475
|
};
|
|
5472
|
-
return (
|
|
5476
|
+
return (l, s) => (t(), i("div", Es, [
|
|
5473
5477
|
e.variant === "default" ? (t(), g(Bt, {
|
|
5474
5478
|
key: 0,
|
|
5475
5479
|
description: e.mainLink,
|
|
@@ -5510,7 +5514,7 @@ const nt = /* @__PURE__ */ we(Os, [["render", zs]]), Ls = { class: "flex" }, js
|
|
|
5510
5514
|
], 8, Ps),
|
|
5511
5515
|
A(o(oo), {
|
|
5512
5516
|
"primary-actions": e.primaryActions,
|
|
5513
|
-
onCopy:
|
|
5517
|
+
onCopy: a
|
|
5514
5518
|
}, null, 8, ["primary-actions"])
|
|
5515
5519
|
]))
|
|
5516
5520
|
]),
|
|
@@ -5524,13 +5528,13 @@ const nt = /* @__PURE__ */ we(Os, [["render", zs]]), Ls = { class: "flex" }, js
|
|
|
5524
5528
|
"customer-is-hover": e.customerIsHover,
|
|
5525
5529
|
"customer-is-edit": e.customerIsEdit,
|
|
5526
5530
|
class: p(e.additionalStyling),
|
|
5527
|
-
onAddCustomer: s[0] || (s[0] = (d) =>
|
|
5528
|
-
onEditCustomer: s[1] || (s[1] = (d) =>
|
|
5531
|
+
onAddCustomer: s[0] || (s[0] = (d) => l.$emit("addCustomer")),
|
|
5532
|
+
onEditCustomer: s[1] || (s[1] = (d) => l.$emit("editCustomer", d))
|
|
5529
5533
|
}, ne({ _: 2 }, [
|
|
5530
|
-
T(
|
|
5534
|
+
T(l.$slots, (d, c) => ({
|
|
5531
5535
|
name: c,
|
|
5532
5536
|
fn: I((m) => [
|
|
5533
|
-
k(
|
|
5537
|
+
k(l.$slots, c, ye(Ve(m)))
|
|
5534
5538
|
])
|
|
5535
5539
|
}))
|
|
5536
5540
|
]), 1032, ["boxes", "customer-card-variant", "customer", "is-customer", "customer-is-hover", "customer-is-edit", "class"])) : e.variant === "balance" ? (t(), g(Zs, {
|
|
@@ -5546,12 +5550,12 @@ const nt = /* @__PURE__ */ we(Os, [["render", zs]]), Ls = { class: "flex" }, js
|
|
|
5546
5550
|
"dropdown-props": e.dropdownProps,
|
|
5547
5551
|
class: p(e.additionalStyling),
|
|
5548
5552
|
"is-loading": e.isLoading,
|
|
5549
|
-
onChangeTab: s[2] || (s[2] = (d) =>
|
|
5553
|
+
onChangeTab: s[2] || (s[2] = (d) => l.$emit("changeTab", d))
|
|
5550
5554
|
}, ne({ _: 2 }, [
|
|
5551
|
-
T(
|
|
5555
|
+
T(l.$slots, (d, c) => ({
|
|
5552
5556
|
name: c,
|
|
5553
5557
|
fn: I((m) => [
|
|
5554
|
-
k(
|
|
5558
|
+
k(l.$slots, c, ye(Ve(m)))
|
|
5555
5559
|
])
|
|
5556
5560
|
}))
|
|
5557
5561
|
]), 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)
|
|
@@ -5581,13 +5585,13 @@ const nt = /* @__PURE__ */ we(Os, [["render", zs]]), Ls = { class: "flex" }, js
|
|
|
5581
5585
|
}
|
|
5582
5586
|
},
|
|
5583
5587
|
setup(e) {
|
|
5584
|
-
return (r,
|
|
5585
|
-
var
|
|
5588
|
+
return (r, a) => {
|
|
5589
|
+
var l;
|
|
5586
5590
|
return t(), i("div", Fs, [
|
|
5587
5591
|
n("div", Us, [
|
|
5588
5592
|
n("h2", $s, x(e.title), 1),
|
|
5589
5593
|
e.description ? (t(), i("p", _s, x(e.description), 1)) : u("", !0),
|
|
5590
|
-
(
|
|
5594
|
+
(l = e.features) != null && l.length ? (t(), i("div", er, [
|
|
5591
5595
|
(t(!0), i(Y, null, T(e.features, (s) => (t(), i("div", {
|
|
5592
5596
|
key: s.title,
|
|
5593
5597
|
class: "rounded bg-white flex flex-col gap-2 p-6 items-center justify-center relative"
|
|
@@ -5627,7 +5631,7 @@ const nt = /* @__PURE__ */ we(Os, [["render", zs]]), Ls = { class: "flex" }, js
|
|
|
5627
5631
|
}
|
|
5628
5632
|
},
|
|
5629
5633
|
setup(e) {
|
|
5630
|
-
return (r,
|
|
5634
|
+
return (r, a) => (t(), i("div", lr, [
|
|
5631
5635
|
n("span", nr, x(e.title), 1),
|
|
5632
5636
|
e.chipProps ? (t(), g(o(de), G({
|
|
5633
5637
|
key: 0,
|
|
@@ -5650,14 +5654,14 @@ const nt = /* @__PURE__ */ we(Os, [["render", zs]]), Ls = { class: "flex" }, js
|
|
|
5650
5654
|
},
|
|
5651
5655
|
emits: ["click:button"],
|
|
5652
5656
|
setup(e) {
|
|
5653
|
-
return (r,
|
|
5657
|
+
return (r, a) => (t(), i("div", ir, [
|
|
5654
5658
|
n("span", or, x(e.title), 1),
|
|
5655
5659
|
e.buttonLabel ? (t(), g(o(U), {
|
|
5656
5660
|
key: 0,
|
|
5657
5661
|
class: "absolute right-9",
|
|
5658
5662
|
size: "small",
|
|
5659
5663
|
"is-transparent": "",
|
|
5660
|
-
onClick:
|
|
5664
|
+
onClick: a[0] || (a[0] = (l) => r.$emit("click:button"))
|
|
5661
5665
|
}, {
|
|
5662
5666
|
default: I(() => [
|
|
5663
5667
|
n("span", sr, [
|
|
@@ -5685,7 +5689,7 @@ const nt = /* @__PURE__ */ we(Os, [["render", zs]]), Ls = { class: "flex" }, js
|
|
|
5685
5689
|
isActive: Boolean
|
|
5686
5690
|
},
|
|
5687
5691
|
setup(e) {
|
|
5688
|
-
return (r,
|
|
5692
|
+
return (r, a) => (t(), i("div", {
|
|
5689
5693
|
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"])
|
|
5690
5694
|
}, [
|
|
5691
5695
|
A(o(Lt), {
|
|
@@ -5712,7 +5716,7 @@ const nt = /* @__PURE__ */ we(Os, [["render", zs]]), Ls = { class: "flex" }, js
|
|
|
5712
5716
|
chipProps: Object
|
|
5713
5717
|
},
|
|
5714
5718
|
setup(e) {
|
|
5715
|
-
return (r,
|
|
5719
|
+
return (r, a) => (t(), i("div", {
|
|
5716
5720
|
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"])
|
|
5717
5721
|
}, [
|
|
5718
5722
|
e.icon ? (t(), g(o(L), {
|
|
@@ -5747,7 +5751,7 @@ const nt = /* @__PURE__ */ we(Os, [["render", zs]]), Ls = { class: "flex" }, js
|
|
|
5747
5751
|
}
|
|
5748
5752
|
},
|
|
5749
5753
|
setup(e) {
|
|
5750
|
-
return (r,
|
|
5754
|
+
return (r, a) => (t(), i("div", {
|
|
5751
5755
|
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"])
|
|
5752
5756
|
}, [
|
|
5753
5757
|
n("div", ur, [
|
|
@@ -5841,13 +5845,13 @@ const nt = /* @__PURE__ */ we(Os, [["render", zs]]), Ls = { class: "flex" }, js
|
|
|
5841
5845
|
},
|
|
5842
5846
|
emits: ["update:modelValue"],
|
|
5843
5847
|
setup(e) {
|
|
5844
|
-
const r = e,
|
|
5848
|
+
const r = e, a = Object.freeze({
|
|
5845
5849
|
default: "border-oc-success-200 bg-oc-success-50 text-oc-success-500",
|
|
5846
5850
|
primary: "border-oc-primary-200 bg-oc-primary-50 text-oc-primary-500",
|
|
5847
5851
|
error: "border-oc-error-200 bg-oc-error-50 text-oc-error-500",
|
|
5848
5852
|
warning: "border-oc-warning-200 bg-oc-warning-50 text-oc-warning-500",
|
|
5849
5853
|
gray: "border-oc-gray-300 bg-oc-gray-100 text-oc-gray-700"
|
|
5850
|
-
}),
|
|
5854
|
+
}), l = {
|
|
5851
5855
|
"top-center": "top-4",
|
|
5852
5856
|
"top-left": "top-4 left-4",
|
|
5853
5857
|
"top-right": "top-4 right-4",
|
|
@@ -5879,8 +5883,8 @@ const nt = /* @__PURE__ */ we(Os, [["render", zs]]), Ls = { class: "flex" }, js
|
|
|
5879
5883
|
ref_key: "snackBar",
|
|
5880
5884
|
ref: d,
|
|
5881
5885
|
class: p([[
|
|
5882
|
-
o(
|
|
5883
|
-
e.isFloating &&
|
|
5886
|
+
o(a)[e.color],
|
|
5887
|
+
e.isFloating && l[e.position],
|
|
5884
5888
|
{
|
|
5885
5889
|
"!fixed z-[1004] -translate-x-1/2": e.isFloating,
|
|
5886
5890
|
"gap-x-2 py-3 px-4 items-center": m.value,
|
|
@@ -5999,17 +6003,17 @@ const nt = /* @__PURE__ */ we(Os, [["render", zs]]), Ls = { class: "flex" }, js
|
|
|
5999
6003
|
error: "bg-oc-error-50 text-oc-error-500",
|
|
6000
6004
|
warning: "bg-oc-warning-50 text-oc-warning-500",
|
|
6001
6005
|
gray: "bg-oc-gray-100 text-oc-gray-700"
|
|
6002
|
-
}),
|
|
6006
|
+
}), a = Object.freeze({
|
|
6003
6007
|
default: "border-oc-success-200",
|
|
6004
6008
|
primary: "border-oc-primary-200",
|
|
6005
6009
|
error: "border-oc-error-200",
|
|
6006
6010
|
warning: "border-oc-warning-200",
|
|
6007
6011
|
gray: "border-oc-gray-300"
|
|
6008
6012
|
});
|
|
6009
|
-
return (
|
|
6013
|
+
return (l, s) => (t(), g(Ee, { name: e.transitionName }, {
|
|
6010
6014
|
default: I(() => [
|
|
6011
6015
|
We(n("div", {
|
|
6012
|
-
class: p([o(
|
|
6016
|
+
class: p([o(a)[e.color], "border rounded-lg banner relative overflow-hidden"])
|
|
6013
6017
|
}, [
|
|
6014
6018
|
n("div", {
|
|
6015
6019
|
class: p(["flex flex-1 items-center justify-between gap-3 min-h-[34px] px-4 text-sm", o(r)[e.color]])
|
|
@@ -6022,7 +6026,7 @@ const nt = /* @__PURE__ */ we(Os, [["render", zs]]), Ls = { class: "flex" }, js
|
|
|
6022
6026
|
width: "16",
|
|
6023
6027
|
height: "16"
|
|
6024
6028
|
}, null, 8, ["name"])) : u("", !0),
|
|
6025
|
-
k(
|
|
6029
|
+
k(l.$slots, "title", {}, () => [
|
|
6026
6030
|
n("div", kr, x(e.title), 1)
|
|
6027
6031
|
], !0)
|
|
6028
6032
|
]),
|
|
@@ -6031,11 +6035,11 @@ const nt = /* @__PURE__ */ we(Os, [["render", zs]]), Ls = { class: "flex" }, js
|
|
|
6031
6035
|
variant: "secondary",
|
|
6032
6036
|
"is-transparent": "",
|
|
6033
6037
|
label: "Close",
|
|
6034
|
-
onClick: s[0] || (s[0] = (d) =>
|
|
6038
|
+
onClick: s[0] || (s[0] = (d) => l.$emit("update:modelValue", !1))
|
|
6035
6039
|
})) : u("", !0)
|
|
6036
6040
|
], 2),
|
|
6037
6041
|
n("div", wr, [
|
|
6038
|
-
k(
|
|
6042
|
+
k(l.$slots, "default", {}, () => [
|
|
6039
6043
|
F(x(e.content), 1)
|
|
6040
6044
|
], !0)
|
|
6041
6045
|
])
|
|
@@ -6060,7 +6064,7 @@ const nt = /* @__PURE__ */ we(Os, [["render", zs]]), Ls = { class: "flex" }, js
|
|
|
6060
6064
|
}
|
|
6061
6065
|
},
|
|
6062
6066
|
setup(e) {
|
|
6063
|
-
return (r,
|
|
6067
|
+
return (r, a) => e.isOnlyIcon ? (t(), g(o(se), ye(G({ key: 0 }, e.tooltipOptions)), {
|
|
6064
6068
|
popper: I(() => [
|
|
6065
6069
|
n("div", Ir, x(e.text), 1)
|
|
6066
6070
|
]),
|
|
@@ -6108,7 +6112,7 @@ const nt = /* @__PURE__ */ we(Os, [["render", zs]]), Ls = { class: "flex" }, js
|
|
|
6108
6112
|
labelClass: String
|
|
6109
6113
|
},
|
|
6110
6114
|
setup(e) {
|
|
6111
|
-
return (r,
|
|
6115
|
+
return (r, a) => (t(), i("div", Kr, [
|
|
6112
6116
|
e.label ? (t(), i("label", {
|
|
6113
6117
|
key: 0,
|
|
6114
6118
|
class: p(["flex items-center text-sm font-medium gap-x-3 text-oc-text-400", e.labelClass])
|
|
@@ -6170,7 +6174,7 @@ const nt = /* @__PURE__ */ we(Os, [["render", zs]]), Ls = { class: "flex" }, js
|
|
|
6170
6174
|
},
|
|
6171
6175
|
emits: ["addition-click"],
|
|
6172
6176
|
setup(e) {
|
|
6173
|
-
const r = e,
|
|
6177
|
+
const r = e, a = J(!1), l = V(() => (r.leftIcon || r.rightIcon) && !r.label), s = V(() => ({
|
|
6174
6178
|
default: "w-10",
|
|
6175
6179
|
small: "w-9 h-8",
|
|
6176
6180
|
big: "w-[48px]"
|
|
@@ -6183,15 +6187,15 @@ const nt = /* @__PURE__ */ we(Os, [["render", zs]]), Ls = { class: "flex" }, js
|
|
|
6183
6187
|
small: "w-5 h-5",
|
|
6184
6188
|
big: "w-6 h-6"
|
|
6185
6189
|
})), m = V(
|
|
6186
|
-
() => !
|
|
6190
|
+
() => !a.value && !r.isTransparent && !r.isDisabled && !r.isLoading && !r.isActive && d.value[r.variant]
|
|
6187
6191
|
), f = V(() => ({
|
|
6188
6192
|
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",
|
|
6189
6193
|
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",
|
|
6190
6194
|
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"
|
|
6191
6195
|
})), v = V(() => ({
|
|
6192
|
-
default: r.isTransparent ? "py-3" :
|
|
6193
|
-
small: (r.isTransparent ? "" :
|
|
6194
|
-
big: (r.isTransparent ? "py-3 " :
|
|
6196
|
+
default: r.isTransparent ? "py-3" : l.value ? "p-3" : "px-4 py-3",
|
|
6197
|
+
small: (r.isTransparent ? "" : l.value ? "w-8 p-3" : "p-3") + " h-8 text-sm",
|
|
6198
|
+
big: (r.isTransparent ? "py-3 " : l.value ? "py-3 px-4" : "py-3 px-[14px]") + " text-lg h-[44px]"
|
|
6195
6199
|
})), y = V(() => r.isRoundedFull ? "rounded-full" : "rounded"), b = V(() => ({
|
|
6196
6200
|
default: "18",
|
|
6197
6201
|
small: "16",
|
|
@@ -6208,9 +6212,9 @@ const nt = /* @__PURE__ */ we(Os, [["render", zs]]), Ls = { class: "flex" }, js
|
|
|
6208
6212
|
e.isAdditionalArea ? "rounded-l-[inherit]" : "rounded-[inherit]"
|
|
6209
6213
|
]]),
|
|
6210
6214
|
disabled: e.isDisabled || e.isLoading,
|
|
6211
|
-
onMousedown: z[0] || (z[0] = (Z) =>
|
|
6212
|
-
onMouseup: z[1] || (z[1] = (Z) =>
|
|
6213
|
-
onMouseleave: z[2] || (z[2] = (Z) =>
|
|
6215
|
+
onMousedown: z[0] || (z[0] = (Z) => a.value = !0),
|
|
6216
|
+
onMouseup: z[1] || (z[1] = (Z) => a.value = !1),
|
|
6217
|
+
onMouseleave: z[2] || (z[2] = (Z) => a.value = !1)
|
|
6214
6218
|
}, [
|
|
6215
6219
|
e.isLoading ? (t(), g(o(L), {
|
|
6216
6220
|
key: 0,
|
|
@@ -6281,7 +6285,7 @@ const nt = /* @__PURE__ */ we(Os, [["render", zs]]), Ls = { class: "flex" }, js
|
|
|
6281
6285
|
"update:modelValue": []
|
|
6282
6286
|
},
|
|
6283
6287
|
setup(e) {
|
|
6284
|
-
return (r,
|
|
6288
|
+
return (r, a) => (t(), g(o(Se), {
|
|
6285
6289
|
placeholder: e.placeholder,
|
|
6286
6290
|
label: e.label,
|
|
6287
6291
|
"error-message": e.errorMessage,
|
|
@@ -6293,7 +6297,7 @@ const nt = /* @__PURE__ */ we(Os, [["render", zs]]), Ls = { class: "flex" }, js
|
|
|
6293
6297
|
"label-icon": e.labelIcon,
|
|
6294
6298
|
"tooltip-text": e.tooltipText,
|
|
6295
6299
|
"tooltip-options": e.tooltipOptions,
|
|
6296
|
-
"onUpdate:modelValue":
|
|
6300
|
+
"onUpdate:modelValue": a[0] || (a[0] = (l) => r.$emit("update:modelValue", l))
|
|
6297
6301
|
}, {
|
|
6298
6302
|
icon: I(() => [
|
|
6299
6303
|
n("div", Vr, [
|
|
@@ -6323,12 +6327,12 @@ const nt = /* @__PURE__ */ we(Os, [["render", zs]]), Ls = { class: "flex" }, js
|
|
|
6323
6327
|
"update:modelValue": []
|
|
6324
6328
|
},
|
|
6325
6329
|
setup(e, { emit: r }) {
|
|
6326
|
-
const
|
|
6327
|
-
|
|
6328
|
-
|
|
6329
|
-
|
|
6330
|
-
|
|
6331
|
-
]), d = () =>
|
|
6330
|
+
const a = e, l = r, s = V(() => [
|
|
6331
|
+
a.modelValue ? a.isDisabled ? "border-oc-primary-100 bg-oc-primary-100 checkbox-init-shadow" : "bg-oc-primary" : a.errorMessage ? "checkbox-error-shadow" : a.isDisabled ? "bg-oc-gray-50 border-oc-gray-200 checkbox-init-shadow" : "border-oc-accent-1-200 checkbox-focus-shadow checkbox-init-shadow",
|
|
6332
|
+
a.errorMessage && a.modelValue && !a.isDisabled ? "!bg-oc-error checkbox-error-shadow" : "",
|
|
6333
|
+
a.errorMessage && !a.isDisabled ? "!border-oc-error checkbox-error-shadow" : "",
|
|
6334
|
+
a.isPartial ? a.isDisabled ? "!border-oc-gray-200 !bg-oc-gray-50 checkbox-init-shadow" : "!bg-oc-primary-100 checkbox-init-shadow checkbox-focus-shadow" : ""
|
|
6335
|
+
]), d = () => l("update:modelValue", a.isDisabled ? "" : !a.modelValue);
|
|
6332
6336
|
return (c, m) => (t(), g(o(Ie), {
|
|
6333
6337
|
class: "w-fit",
|
|
6334
6338
|
label: e.topLabel,
|
|
@@ -6396,27 +6400,27 @@ const nt = /* @__PURE__ */ we(Os, [["render", zs]]), Ls = { class: "flex" }, js
|
|
|
6396
6400
|
"update:modelValue": []
|
|
6397
6401
|
},
|
|
6398
6402
|
setup(e, { emit: r }) {
|
|
6399
|
-
const
|
|
6403
|
+
const a = e, l = r, s = V(() => ({
|
|
6400
6404
|
horizontal: "gap-x-5 flex-wrap",
|
|
6401
6405
|
vertical: "flex-col gap-y-3"
|
|
6402
6406
|
})), d = (y) => {
|
|
6403
6407
|
var b;
|
|
6404
|
-
return (b =
|
|
6408
|
+
return (b = a.modelValue) == null ? void 0 : b.includes(y);
|
|
6405
6409
|
}, c = (y) => {
|
|
6406
|
-
|
|
6410
|
+
l(
|
|
6407
6411
|
"update:modelValue",
|
|
6408
|
-
d(y) ?
|
|
6412
|
+
d(y) ? a.modelValue.filter((b) => b !== y) : [...a.modelValue, y]
|
|
6409
6413
|
);
|
|
6410
6414
|
}, m = V(
|
|
6411
6415
|
() => {
|
|
6412
6416
|
var y;
|
|
6413
|
-
return (y =
|
|
6417
|
+
return (y = a.checkboxes) == null ? void 0 : y.every((b) => d(b == null ? void 0 : b.value));
|
|
6414
6418
|
}
|
|
6415
6419
|
), f = V(() => {
|
|
6416
6420
|
var y;
|
|
6417
|
-
return (y =
|
|
6421
|
+
return (y = a.checkboxes) == null ? void 0 : y.map((b) => b == null ? void 0 : b.value);
|
|
6418
6422
|
}), v = () => {
|
|
6419
|
-
m.value ?
|
|
6423
|
+
m.value ? l("update:modelValue", []) : l("update:modelValue", f.value);
|
|
6420
6424
|
};
|
|
6421
6425
|
return (y, b) => (t(), g(o(Ie), {
|
|
6422
6426
|
label: e.label,
|
|
@@ -6459,7 +6463,7 @@ const nt = /* @__PURE__ */ we(Os, [["render", zs]]), Ls = { class: "flex" }, js
|
|
|
6459
6463
|
label: String
|
|
6460
6464
|
},
|
|
6461
6465
|
setup(e) {
|
|
6462
|
-
return (r,
|
|
6466
|
+
return (r, a) => (t(), i("div", Hr, [
|
|
6463
6467
|
n("div", {
|
|
6464
6468
|
class: p([
|
|
6465
6469
|
"w-5 h-5 flex items-center justify-center rounded-full border transition-all duration-300",
|
|
@@ -6594,21 +6598,21 @@ const nt = /* @__PURE__ */ we(Os, [["render", zs]]), Ls = { class: "flex" }, js
|
|
|
6594
6598
|
},
|
|
6595
6599
|
emits: ["update:modelValue", "blur", "focus", "paste"],
|
|
6596
6600
|
setup(e, { expose: r }) {
|
|
6597
|
-
const
|
|
6601
|
+
const a = e, l = Dt(), s = J(), d = J(!1);
|
|
6598
6602
|
r({
|
|
6599
6603
|
focus: () => s.value.focus()
|
|
6600
6604
|
});
|
|
6601
6605
|
const c = J(!1), m = V(() => [
|
|
6602
6606
|
{
|
|
6603
|
-
"focused-shadow": c.value && !
|
|
6607
|
+
"focused-shadow": c.value && !a.isReadonly
|
|
6604
6608
|
},
|
|
6605
|
-
!
|
|
6606
|
-
|
|
6607
|
-
|
|
6609
|
+
!a.disabled && (a.errorMessage || a.hasError) ? "error-shadow" : "border-oc-gray-200 shadow-oc-gray-200",
|
|
6610
|
+
a.disabled ? "bg-oc-bg-dark pointer-events-none" : "bg-oc-bg-light",
|
|
6611
|
+
a.inputClass
|
|
6608
6612
|
]), f = V(() => {
|
|
6609
|
-
const { class: y, ...b } =
|
|
6610
|
-
return
|
|
6611
|
-
}), v = V(() =>
|
|
6613
|
+
const { class: y, ...b } = l, j = {};
|
|
6614
|
+
return a.pattern && (j.pattern = a.pattern), { ...j, ...b };
|
|
6615
|
+
}), v = V(() => a.inputType === "password");
|
|
6612
6616
|
return (y, b) => (t(), g(o(Ie), {
|
|
6613
6617
|
label: e.isInlineLabel ? "" : e.label,
|
|
6614
6618
|
"label-class": e.labelClass,
|
|
@@ -6744,8 +6748,8 @@ const nt = /* @__PURE__ */ we(Os, [["render", zs]]), Ls = { class: "flex" }, js
|
|
|
6744
6748
|
"option-removed": [],
|
|
6745
6749
|
blur: []
|
|
6746
6750
|
},
|
|
6747
|
-
setup(e, { expose: r, emit:
|
|
6748
|
-
const
|
|
6751
|
+
setup(e, { expose: r, emit: a }) {
|
|
6752
|
+
const l = e, s = a, d = J([]), c = J(), m = J(""), f = J(!1), v = J(!1), y = V(() => f.value ? d.value : d.value.slice(0, l.maxVisibleOptions)), b = (z) => {
|
|
6749
6753
|
d.value = d.value.filter((Z) => Z !== z), s("option-removed", z), s("update:modelValue", d.value);
|
|
6750
6754
|
}, j = (z) => {
|
|
6751
6755
|
if (!(z != null && z.trim()))
|
|
@@ -6753,13 +6757,13 @@ const nt = /* @__PURE__ */ we(Os, [["render", zs]]), Ls = { class: "flex" }, js
|
|
|
6753
6757
|
const Z = (z == null ? void 0 : z.split(",")) || [];
|
|
6754
6758
|
Z.forEach((C) => {
|
|
6755
6759
|
var h;
|
|
6756
|
-
C != null && C.trim() && (!
|
|
6760
|
+
C != null && C.trim() && (!l.allowDuplicated && ((h = d.value) != null && h.includes(C)) || (d.value.push(C), s("option-added", C)));
|
|
6757
6761
|
}), Z.length && (m.value = "", s("update:modelValue", d.value));
|
|
6758
6762
|
};
|
|
6759
6763
|
return fe(
|
|
6760
|
-
() =>
|
|
6764
|
+
() => l.modelValue,
|
|
6761
6765
|
() => {
|
|
6762
|
-
d.value = [...
|
|
6766
|
+
d.value = [...l.modelValue || []];
|
|
6763
6767
|
},
|
|
6764
6768
|
{
|
|
6765
6769
|
immediate: !0,
|
|
@@ -6796,8 +6800,8 @@ const nt = /* @__PURE__ */ we(Os, [["render", zs]]), Ls = { class: "flex" }, js
|
|
|
6796
6800
|
options: y.value,
|
|
6797
6801
|
areAllOptionsVisible: f.value
|
|
6798
6802
|
}, () => [
|
|
6799
|
-
(t(!0), i(Y, null, T(y.value, (S,
|
|
6800
|
-
key: `${S}-${
|
|
6803
|
+
(t(!0), i(Y, null, T(y.value, (S, K) => (t(), g(o(de), {
|
|
6804
|
+
key: `${S}-${K}`,
|
|
6801
6805
|
closable: "",
|
|
6802
6806
|
label: S,
|
|
6803
6807
|
onRemove: (w) => b(S)
|
|
@@ -6882,50 +6886,50 @@ const nt = /* @__PURE__ */ we(Os, [["render", zs]]), Ls = { class: "flex" }, js
|
|
|
6882
6886
|
"update:modelValue": []
|
|
6883
6887
|
},
|
|
6884
6888
|
setup(e, { emit: r }) {
|
|
6885
|
-
const
|
|
6886
|
-
let s =
|
|
6887
|
-
if (
|
|
6888
|
-
const S =
|
|
6889
|
+
const a = e, l = r;
|
|
6890
|
+
let s = a.initialCountryCode;
|
|
6891
|
+
if (a.modelValue && a.modelValue[0]) {
|
|
6892
|
+
const S = a.countryCodes.find((K) => K.code === a.modelValue[0].toString());
|
|
6889
6893
|
S && (s = S.iso.toLowerCase());
|
|
6890
6894
|
}
|
|
6891
6895
|
const d = J(s), c = J(!1), m = J(""), f = V(
|
|
6892
|
-
() =>
|
|
6893
|
-
), v = (S) =>
|
|
6894
|
-
var O;
|
|
6895
|
-
return ((O = v(S)) == null ? void 0 : O.code) || "";
|
|
6896
|
-
}, b = (S) => {
|
|
6897
|
-
a("update:modelValue", [y(d.value), S]);
|
|
6898
|
-
}, j = (S, O, w = null) => {
|
|
6896
|
+
() => a.countryCodes.filter((S) => S.country.toLowerCase().includes(m.value.toLowerCase())).sort((S, K) => S.country.localeCompare(K.country))
|
|
6897
|
+
), v = (S) => a.countryCodes.find((K) => K.iso.toLowerCase() === S.toLowerCase()) || null, y = (S) => {
|
|
6899
6898
|
var K;
|
|
6900
|
-
|
|
6899
|
+
return ((K = v(S)) == null ? void 0 : K.code) || "";
|
|
6900
|
+
}, b = (S) => {
|
|
6901
|
+
l("update:modelValue", [y(d.value), S]);
|
|
6902
|
+
}, j = (S, K, w = null) => {
|
|
6903
|
+
var O;
|
|
6904
|
+
d.value = S.toLowerCase(), l("update:modelValue", [K, w || ((O = a.modelValue) == null ? void 0 : O[1]) || ""]), c.value = !1;
|
|
6901
6905
|
}, z = J(null), Z = J([]), C = () => {
|
|
6902
6906
|
setTimeout(() => {
|
|
6903
6907
|
const S = f.value.indexOf(
|
|
6904
6908
|
v(d.value)
|
|
6905
|
-
),
|
|
6906
|
-
if (
|
|
6907
|
-
const w =
|
|
6909
|
+
), K = Z.value[S];
|
|
6910
|
+
if (K) {
|
|
6911
|
+
const w = K.offsetTop;
|
|
6908
6912
|
z.value.scrollTo(0, w - 60, { behavior: "smooth" });
|
|
6909
6913
|
}
|
|
6910
6914
|
}, 10);
|
|
6911
6915
|
}, h = (S) => {
|
|
6912
6916
|
var w;
|
|
6913
|
-
let
|
|
6917
|
+
let K = ((w = S == null ? void 0 : S.clipboardData) == null ? void 0 : w.getData("Text")) || "";
|
|
6914
6918
|
try {
|
|
6915
|
-
if (/^[+]?[0-9]+$/.test(
|
|
6916
|
-
if (
|
|
6917
|
-
const { nationalNumber:
|
|
6918
|
-
"+" +
|
|
6919
|
+
if (/^[+]?[0-9]+$/.test(K))
|
|
6920
|
+
if (K = K.slice(0, 19), K.length > 5 && (a.shouldParseCountryCode || K.startsWith("+"))) {
|
|
6921
|
+
const { nationalNumber: O, countryCallingCode: N, country: q } = Ut(
|
|
6922
|
+
"+" + K.replace("+", "")
|
|
6919
6923
|
);
|
|
6920
|
-
N && q ? j(q, N,
|
|
6924
|
+
N && q ? j(q, N, O) : l("update:modelValue", [y(d.value), O]);
|
|
6921
6925
|
} else
|
|
6922
|
-
|
|
6926
|
+
l("update:modelValue", [y(d.value), K]);
|
|
6923
6927
|
} catch {
|
|
6924
|
-
|
|
6928
|
+
l("update:modelValue", [y(d.value), K]);
|
|
6925
6929
|
}
|
|
6926
6930
|
S == null || S.preventDefault();
|
|
6927
6931
|
};
|
|
6928
|
-
return (S,
|
|
6932
|
+
return (S, K) => {
|
|
6929
6933
|
var w;
|
|
6930
6934
|
return t(), g(o(Se), {
|
|
6931
6935
|
"error-message": e.errorMessage,
|
|
@@ -6947,7 +6951,7 @@ const nt = /* @__PURE__ */ we(Os, [["render", zs]]), Ls = { class: "flex" }, js
|
|
|
6947
6951
|
A(o(ve), {
|
|
6948
6952
|
modelValue: c.value,
|
|
6949
6953
|
"onUpdate:modelValue": [
|
|
6950
|
-
|
|
6954
|
+
K[3] || (K[3] = (O) => c.value = O),
|
|
6951
6955
|
C
|
|
6952
6956
|
],
|
|
6953
6957
|
distance: 10,
|
|
@@ -6962,12 +6966,12 @@ const nt = /* @__PURE__ */ we(Os, [["render", zs]]), Ls = { class: "flex" }, js
|
|
|
6962
6966
|
n("div", ld, [
|
|
6963
6967
|
A(o(Se), {
|
|
6964
6968
|
modelValue: m.value,
|
|
6965
|
-
"onUpdate:modelValue":
|
|
6969
|
+
"onUpdate:modelValue": K[0] || (K[0] = (O) => m.value = O),
|
|
6966
6970
|
icon: "search",
|
|
6967
6971
|
placeholder: "Search",
|
|
6968
|
-
onKeydown:
|
|
6972
|
+
onKeydown: K[1] || (K[1] = pe(() => {
|
|
6969
6973
|
}, ["stop"])),
|
|
6970
|
-
onClick:
|
|
6974
|
+
onClick: K[2] || (K[2] = pe(() => {
|
|
6971
6975
|
}, ["stop"]))
|
|
6972
6976
|
}, {
|
|
6973
6977
|
icon: I(() => [
|
|
@@ -6979,22 +6983,22 @@ const nt = /* @__PURE__ */ we(Os, [["render", zs]]), Ls = { class: "flex" }, js
|
|
|
6979
6983
|
_: 1
|
|
6980
6984
|
}, 8, ["modelValue"])
|
|
6981
6985
|
]),
|
|
6982
|
-
(t(!0), i(Y, null, T(f.value, (
|
|
6986
|
+
(t(!0), i(Y, null, T(f.value, (O, N) => (t(), i("div", {
|
|
6983
6987
|
ref_for: !0,
|
|
6984
6988
|
ref_key: "countryListItemRef",
|
|
6985
6989
|
ref: Z,
|
|
6986
6990
|
key: N,
|
|
6987
6991
|
class: p([
|
|
6988
6992
|
"py-3 px-4 flex gap-x-4 items-center hover:bg-oc-gray-50 cursor-pointer",
|
|
6989
|
-
d.value ===
|
|
6993
|
+
d.value === O.iso.toLowerCase() ? "bg-oc-gray-50 font-medium" : ""
|
|
6990
6994
|
]),
|
|
6991
|
-
onClick: (q) => j(
|
|
6995
|
+
onClick: (q) => j(O.iso, O.code)
|
|
6992
6996
|
}, [
|
|
6993
6997
|
n("div", {
|
|
6994
|
-
class: p(["fi !w-[20px] !h-[15px] !rounded-[2px] shadow-md", `fi-${
|
|
6998
|
+
class: p(["fi !w-[20px] !h-[15px] !rounded-[2px] shadow-md", `fi-${O.iso.toLowerCase()}`])
|
|
6995
6999
|
}, null, 2),
|
|
6996
|
-
n("span", id, "+" + x(
|
|
6997
|
-
n("span", od, x(
|
|
7000
|
+
n("span", id, "+" + x(O.code), 1),
|
|
7001
|
+
n("span", od, x(O.country), 1)
|
|
6998
7002
|
], 10, nd))), 128))
|
|
6999
7003
|
], 512)
|
|
7000
7004
|
]),
|
|
@@ -7044,7 +7048,7 @@ const nt = /* @__PURE__ */ we(Os, [["render", zs]]), Ls = { class: "flex" }, js
|
|
|
7044
7048
|
"update:modelValue": []
|
|
7045
7049
|
},
|
|
7046
7050
|
setup(e) {
|
|
7047
|
-
return (r,
|
|
7051
|
+
return (r, a) => (t(), g(o(Ie), {
|
|
7048
7052
|
class: p(["radio-button inline-block relative cursor-pointer", e.isDisabled ? "disabled" : ""]),
|
|
7049
7053
|
label: "",
|
|
7050
7054
|
"error-message": e.errorMessage,
|
|
@@ -7059,7 +7063,7 @@ const nt = /* @__PURE__ */ we(Os, [["render", zs]]), Ls = { class: "flex" }, js
|
|
|
7059
7063
|
disabled: e.isDisabled,
|
|
7060
7064
|
class: "radio-button__input absolute opacity-0 w-0 h-0",
|
|
7061
7065
|
type: "radio",
|
|
7062
|
-
onInput:
|
|
7066
|
+
onInput: a[0] || (a[0] = (l) => r.$emit("update:modelValue", l.target.value))
|
|
7063
7067
|
}, null, 40, rd),
|
|
7064
7068
|
n("label", {
|
|
7065
7069
|
for: e.groupName + e.id,
|
|
@@ -7134,11 +7138,11 @@ const nt = /* @__PURE__ */ we(Os, [["render", zs]]), Ls = { class: "flex" }, js
|
|
|
7134
7138
|
"update:modelValue": []
|
|
7135
7139
|
},
|
|
7136
7140
|
setup(e, { emit: r }) {
|
|
7137
|
-
const
|
|
7141
|
+
const a = r, l = V(() => ({
|
|
7138
7142
|
horizontal: "gap-x-5 flex-wrap",
|
|
7139
7143
|
vertical: "flex-col gap-y-3"
|
|
7140
7144
|
})), s = (d) => {
|
|
7141
|
-
|
|
7145
|
+
a("update:modelValue", d);
|
|
7142
7146
|
};
|
|
7143
7147
|
return (d, c) => (t(), g(o(Ie), {
|
|
7144
7148
|
label: e.label,
|
|
@@ -7147,7 +7151,7 @@ const nt = /* @__PURE__ */ we(Os, [["render", zs]]), Ls = { class: "flex" }, js
|
|
|
7147
7151
|
}, {
|
|
7148
7152
|
default: I(() => [
|
|
7149
7153
|
n("div", {
|
|
7150
|
-
class: p(["flex", [
|
|
7154
|
+
class: p(["flex", [l.value[e.alignment], e.wrapperClass]])
|
|
7151
7155
|
}, [
|
|
7152
7156
|
(t(!0), i(Y, null, T(e.radio, (m, f) => (t(), g(o(ud), {
|
|
7153
7157
|
id: m.value,
|
|
@@ -7212,13 +7216,13 @@ const nt = /* @__PURE__ */ we(Os, [["render", zs]]), Ls = { class: "flex" }, js
|
|
|
7212
7216
|
},
|
|
7213
7217
|
setup(e, { emit: r }) {
|
|
7214
7218
|
var v, y;
|
|
7215
|
-
const
|
|
7216
|
-
isNaN(b) || (j === 1 ? d.value = Number(b) : s.value = Number(b),
|
|
7219
|
+
const a = e, l = r, s = J(((v = a.modelValue) == null ? void 0 : v[0]) ?? ""), d = J(((y = a.modelValue) == null ? void 0 : y[1]) ?? ""), c = J(), m = (b, j) => {
|
|
7220
|
+
isNaN(b) || (j === 1 ? d.value = Number(b) : s.value = Number(b), a.onlyInput ? (s.value > d.value && (d.value = s.value), d.value < s.value && (s.value = d.value), l("update:modelValue", [s.value, d.value])) : c.value.updateSlider([s.value, d.value]));
|
|
7217
7221
|
}, f = (b) => {
|
|
7218
|
-
isNaN(b[0]) || isNaN(b[1]) || (s.value = Number(b[0]), d.value = Number(b[1]),
|
|
7222
|
+
isNaN(b[0]) || isNaN(b[1]) || (s.value = Number(b[0]), d.value = Number(b[1]), l("update:modelValue", [Number(s.value), Number(d.value)]));
|
|
7219
7223
|
};
|
|
7220
7224
|
return ke(() => {
|
|
7221
|
-
|
|
7225
|
+
a.onlyInput || c.value.updateSlider();
|
|
7222
7226
|
}), (b, j) => (t(), i("div", fd, [
|
|
7223
7227
|
A(o(Ie), {
|
|
7224
7228
|
label: e.label,
|
|
@@ -7357,14 +7361,14 @@ const nt = /* @__PURE__ */ we(Os, [["render", zs]]), Ls = { class: "flex" }, js
|
|
|
7357
7361
|
cleared: [],
|
|
7358
7362
|
loadMore: []
|
|
7359
7363
|
},
|
|
7360
|
-
setup(e, { expose: r, emit:
|
|
7361
|
-
const
|
|
7364
|
+
setup(e, { expose: r, emit: a }) {
|
|
7365
|
+
const l = e, s = a, d = J(l.searchKeywords ?? ""), c = J(!1), m = J(), f = J(), v = J([]), y = J(), b = J((/* @__PURE__ */ new Date()).toISOString()), j = V(() => {
|
|
7362
7366
|
var W, B;
|
|
7363
|
-
return
|
|
7367
|
+
return l.multiple ? ((W = l.modelValue) == null ? void 0 : W.length) && ((B = l.modelValue) == null ? void 0 : B.length) === z.value.length : !1;
|
|
7364
7368
|
}), z = V(() => {
|
|
7365
7369
|
var B, H;
|
|
7366
7370
|
const W = [];
|
|
7367
|
-
for (const R of
|
|
7371
|
+
for (const R of l.options)
|
|
7368
7372
|
if (R.values) {
|
|
7369
7373
|
const $ = R.values.filter(
|
|
7370
7374
|
(te) => {
|
|
@@ -7380,43 +7384,43 @@ const nt = /* @__PURE__ */ we(Os, [["render", zs]]), Ls = { class: "flex" }, js
|
|
|
7380
7384
|
((B = R.label) != null && B.toLowerCase().includes(d.value.toLowerCase()) || (H = R.subLabel) != null && H.toLowerCase().includes(d.value.toLowerCase())) && W.push(R);
|
|
7381
7385
|
return W;
|
|
7382
7386
|
}), Z = V(() => {
|
|
7383
|
-
if (
|
|
7387
|
+
if (l.multiple) {
|
|
7384
7388
|
let W = [];
|
|
7385
|
-
if (
|
|
7386
|
-
for (const B of
|
|
7387
|
-
for (const H of
|
|
7389
|
+
if (l.modelValue)
|
|
7390
|
+
for (const B of l.modelValue)
|
|
7391
|
+
for (const H of l.options)
|
|
7388
7392
|
H.values ? H.values.forEach((R) => {
|
|
7389
7393
|
Je(R.value, B) && W.push(R);
|
|
7390
7394
|
}) : Je(H.value, B) && W.push(H);
|
|
7391
7395
|
return W;
|
|
7392
7396
|
} else
|
|
7393
|
-
return
|
|
7397
|
+
return l.options.find((W) => Je(W.value, l.modelValue));
|
|
7394
7398
|
}), C = (W) => {
|
|
7395
7399
|
var H;
|
|
7396
7400
|
if (W.isDisabled)
|
|
7397
7401
|
return;
|
|
7398
7402
|
let B;
|
|
7399
|
-
if (
|
|
7400
|
-
const R = (
|
|
7401
|
-
if (!R &&
|
|
7403
|
+
if (l.multiple) {
|
|
7404
|
+
const R = (l.modelValue || []).find(($) => Je($, W.value));
|
|
7405
|
+
if (!R && l.maxOptionAllowed && ((H = Z.value) == null ? void 0 : H.length) >= Number(l.maxOptionAllowed)) {
|
|
7402
7406
|
s("max-option-allowed-set");
|
|
7403
7407
|
return;
|
|
7404
7408
|
}
|
|
7405
|
-
B = R ? (
|
|
7409
|
+
B = R ? (l.modelValue || []).filter(($) => !Je($, W.value)) : [...l.modelValue || [], W.value];
|
|
7406
7410
|
} else
|
|
7407
7411
|
B = W.value, c.value = !1;
|
|
7408
7412
|
s("update:modelValue", B);
|
|
7409
7413
|
}, h = (W) => {
|
|
7410
7414
|
s(
|
|
7411
7415
|
"update:modelValue",
|
|
7412
|
-
(
|
|
7416
|
+
(l.modelValue || []).filter((B) => !Je(B, W))
|
|
7413
7417
|
);
|
|
7414
7418
|
}, S = () => {
|
|
7415
|
-
|
|
7419
|
+
l.isAsynchronousSearch || (j.value ? s("update:modelValue", null) : s(
|
|
7416
7420
|
"update:modelValue",
|
|
7417
7421
|
z.value.map((W) => W.value)
|
|
7418
7422
|
));
|
|
7419
|
-
},
|
|
7423
|
+
}, K = J();
|
|
7420
7424
|
fe(z, () => {
|
|
7421
7425
|
b.value = (/* @__PURE__ */ new Date()).toISOString();
|
|
7422
7426
|
}), fe(c, (W) => {
|
|
@@ -7429,12 +7433,12 @@ const nt = /* @__PURE__ */ we(Os, [["render", zs]]), Ls = { class: "flex" }, js
|
|
|
7429
7433
|
(B = m.value) == null || B.focus();
|
|
7430
7434
|
});
|
|
7431
7435
|
});
|
|
7432
|
-
const w = J("100%"),
|
|
7436
|
+
const w = J("100%"), O = V(() => ({ maxWidth: w.value })), N = () => {
|
|
7433
7437
|
var W, B, H, R;
|
|
7434
|
-
s("toggle"), w.value = (B = (W =
|
|
7438
|
+
s("toggle"), w.value = (B = (W = K.value) == null ? void 0 : W.$el) != null && B.offsetWidth ? `${(R = (H = K.value) == null ? void 0 : H.$el) == null ? void 0 : R.offsetWidth}px` : "100%", setTimeout(() => {
|
|
7435
7439
|
var ce, ge, be;
|
|
7436
7440
|
let $, te;
|
|
7437
|
-
if (Array.isArray(
|
|
7441
|
+
if (Array.isArray(l.modelValue) ? $ = l.modelValue[0] ?? null : $ = l.modelValue, !$) return;
|
|
7438
7442
|
z.value.find((he, ae) => {
|
|
7439
7443
|
if (Je(he.value, $))
|
|
7440
7444
|
return te = ae, !0;
|
|
@@ -7444,7 +7448,7 @@ const nt = /* @__PURE__ */ we(Os, [["render", zs]]), Ls = { class: "flex" }, js
|
|
|
7444
7448
|
}, 10);
|
|
7445
7449
|
}, q = (W) => {
|
|
7446
7450
|
var H, R, $;
|
|
7447
|
-
if (
|
|
7451
|
+
if (l.isLoading)
|
|
7448
7452
|
return;
|
|
7449
7453
|
((H = W.target) == null ? void 0 : H.scrollHeight) - Math.round((R = W.target) == null ? void 0 : R.scrollTop) <= (($ = W.target) == null ? void 0 : $.clientHeight) && s("loadMore");
|
|
7450
7454
|
};
|
|
@@ -7452,7 +7456,7 @@ const nt = /* @__PURE__ */ we(Os, [["render", zs]]), Ls = { class: "flex" }, js
|
|
|
7452
7456
|
dropdownRef: f
|
|
7453
7457
|
}), (W, B) => (t(), g(o(Ie), {
|
|
7454
7458
|
ref_key: "baseInput",
|
|
7455
|
-
ref:
|
|
7459
|
+
ref: K,
|
|
7456
7460
|
class: "relative rounded",
|
|
7457
7461
|
label: e.isInlineLabel ? "" : e.label,
|
|
7458
7462
|
hint: e.hint,
|
|
@@ -7484,7 +7488,7 @@ const nt = /* @__PURE__ */ we(Os, [["render", zs]]), Ls = { class: "flex" }, js
|
|
|
7484
7488
|
distance: 4,
|
|
7485
7489
|
"popper-class": "w-full",
|
|
7486
7490
|
placement: "bottom-end",
|
|
7487
|
-
"popper-style":
|
|
7491
|
+
"popper-style": O.value,
|
|
7488
7492
|
"popper-options": e.popperOptions,
|
|
7489
7493
|
"is-disabled": e.isDisabled || e.isReadonly,
|
|
7490
7494
|
"menu-classes": e.menuClasses,
|
|
@@ -7571,10 +7575,9 @@ const nt = /* @__PURE__ */ we(Os, [["render", zs]]), Ls = { class: "flex" }, js
|
|
|
7571
7575
|
class: "w-5 h-5",
|
|
7572
7576
|
name: "plus"
|
|
7573
7577
|
}),
|
|
7574
|
-
B[8] || (B[8] = F(" Add new "))
|
|
7578
|
+
B[8] || (B[8] = F(" Add new ", -1))
|
|
7575
7579
|
]),
|
|
7576
|
-
_: 1
|
|
7577
|
-
__: [8]
|
|
7580
|
+
_: 1
|
|
7578
7581
|
})) : u("", !0)
|
|
7579
7582
|
], 512)
|
|
7580
7583
|
];
|
|
@@ -7698,12 +7701,12 @@ const nt = /* @__PURE__ */ we(Os, [["render", zs]]), Ls = { class: "flex" }, js
|
|
|
7698
7701
|
},
|
|
7699
7702
|
emits: ["select", "show:children", "hide:children"],
|
|
7700
7703
|
setup(e, { expose: r }) {
|
|
7701
|
-
const
|
|
7704
|
+
const a = J();
|
|
7702
7705
|
return r({
|
|
7703
|
-
optionItemRef:
|
|
7704
|
-
}), (
|
|
7706
|
+
optionItemRef: a
|
|
7707
|
+
}), (l, s) => (t(), i("div", {
|
|
7705
7708
|
ref_key: "optionItemRef",
|
|
7706
|
-
ref:
|
|
7709
|
+
ref: a,
|
|
7707
7710
|
class: "w-full flex flex-wrap relative hover:bg-oc-accent-1-50 rounded-sm"
|
|
7708
7711
|
}, [
|
|
7709
7712
|
n("div", {
|
|
@@ -7711,7 +7714,7 @@ const nt = /* @__PURE__ */ we(Os, [["render", zs]]), Ls = { class: "flex" }, js
|
|
|
7711
7714
|
"bg-oc-accent-1-50": e.isSelected && !e.isCheckboxes,
|
|
7712
7715
|
"opacity-50 hover:bg-white !cursor-default": e.isDisabled
|
|
7713
7716
|
}]),
|
|
7714
|
-
onClick: s[0] || (s[0] = (d) =>
|
|
7717
|
+
onClick: s[0] || (s[0] = (d) => l.$emit("select"))
|
|
7715
7718
|
}, [
|
|
7716
7719
|
e.isCheckboxes ? (t(), g(o(Ne), {
|
|
7717
7720
|
key: 0,
|
|
@@ -7720,16 +7723,16 @@ const nt = /* @__PURE__ */ we(Os, [["render", zs]]), Ls = { class: "flex" }, js
|
|
|
7720
7723
|
class: "!w-fit pointer-events-none"
|
|
7721
7724
|
}, null, 8, ["model-value", "is-partial"])) : u("", !0),
|
|
7722
7725
|
n("div", Sd, [
|
|
7723
|
-
k(
|
|
7726
|
+
k(l.$slots, "trailing"),
|
|
7724
7727
|
n("div", {
|
|
7725
7728
|
class: p(["flex flex-col gap-3 overflow-hidden", { "flex-1": e.isCheckboxes }])
|
|
7726
7729
|
}, [
|
|
7727
7730
|
n("span", Id, x(e.label), 1),
|
|
7728
|
-
k(
|
|
7731
|
+
k(l.$slots, "sub-label", {}, () => [
|
|
7729
7732
|
e.subLabel ? (t(), i("span", Zd, x(e.subLabel), 1)) : u("", !0)
|
|
7730
7733
|
])
|
|
7731
7734
|
], 2),
|
|
7732
|
-
k(
|
|
7735
|
+
k(l.$slots, "leading")
|
|
7733
7736
|
]),
|
|
7734
7737
|
e.isSelected && !e.isCheckboxes ? (t(), g(o(L), {
|
|
7735
7738
|
key: 1,
|
|
@@ -7741,9 +7744,9 @@ const nt = /* @__PURE__ */ we(Os, [["render", zs]]), Ls = { class: "flex" }, js
|
|
|
7741
7744
|
key: 0,
|
|
7742
7745
|
class: p(["w-6 h-6 absolute right-[10px] top-[8px] cursor-pointer", e.showChildren ? "rotate-180" : ""]),
|
|
7743
7746
|
name: "chevron-down",
|
|
7744
|
-
onClick: s[1] || (s[1] = (d) => e.showChildren ?
|
|
7747
|
+
onClick: s[1] || (s[1] = (d) => e.showChildren ? l.$emit("hide:children") : l.$emit("show:children"))
|
|
7745
7748
|
}, null, 8, ["class"])) : u("", !0),
|
|
7746
|
-
k(
|
|
7749
|
+
k(l.$slots, "after")
|
|
7747
7750
|
], 512));
|
|
7748
7751
|
}
|
|
7749
7752
|
}, Od = { class: "flex flex-col" }, Kd = { class: "px-3 pt-3 pb-2 border-y border-white text-oc-text uppercase text-xs font-medium" }, tp = {
|
|
@@ -7752,7 +7755,7 @@ const nt = /* @__PURE__ */ we(Os, [["render", zs]]), Ls = { class: "flex" }, js
|
|
|
7752
7755
|
label: String
|
|
7753
7756
|
},
|
|
7754
7757
|
setup(e) {
|
|
7755
|
-
return (r,
|
|
7758
|
+
return (r, a) => (t(), i("div", Od, [
|
|
7756
7759
|
n("div", Kd, x(e.label), 1),
|
|
7757
7760
|
k(r.$slots, "default")
|
|
7758
7761
|
]));
|
|
@@ -7807,22 +7810,22 @@ const nt = /* @__PURE__ */ we(Os, [["render", zs]]), Ls = { class: "flex" }, js
|
|
|
7807
7810
|
},
|
|
7808
7811
|
setup(e, { emit: r }) {
|
|
7809
7812
|
var Z, C;
|
|
7810
|
-
const
|
|
7811
|
-
() =>
|
|
7812
|
-
), f = V(() => m.value.preFill ?? ""), v = J(
|
|
7813
|
-
var
|
|
7814
|
-
const S = (
|
|
7815
|
-
|
|
7813
|
+
const a = e, l = r, s = J(!1), d = J(a.type ?? ((C = (Z = a.links) == null ? void 0 : Z[0]) == null ? void 0 : C.value)), c = J(a.title ?? ""), m = V(
|
|
7814
|
+
() => a.links.find((h) => h.value === d.value) ?? {}
|
|
7815
|
+
), f = V(() => m.value.preFill ?? ""), v = J(a.modelValue ? a.modelValue.replace(f.value, "") : ""), y = (h) => {
|
|
7816
|
+
var K;
|
|
7817
|
+
const S = (K = a.links.find((w) => w.value === h)) == null ? void 0 : K.preFill;
|
|
7818
|
+
l("update:modelValue", a.modelValue.replace(f.value, S)), d.value = h, l("update:type", h), s.value = !1;
|
|
7816
7819
|
}, b = (h) => {
|
|
7817
|
-
v.value = h,
|
|
7820
|
+
v.value = h, l("update:modelValue", f.value + h), !a.isEdit && d.value !== "link" && l("update:title", h);
|
|
7818
7821
|
}, j = V(() => m.value.placeholder ?? ""), z = V(() => d.value === "link");
|
|
7819
7822
|
return (h, S) => (t(), i("div", null, [
|
|
7820
7823
|
z.value || e.isEdit ? (t(), g(o(Se), {
|
|
7821
7824
|
key: 0,
|
|
7822
7825
|
modelValue: c.value,
|
|
7823
7826
|
"onUpdate:modelValue": [
|
|
7824
|
-
S[0] || (S[0] = (
|
|
7825
|
-
S[1] || (S[1] = (
|
|
7827
|
+
S[0] || (S[0] = (K) => c.value = K),
|
|
7828
|
+
S[1] || (S[1] = (K) => h.$emit("update:title", K))
|
|
7826
7829
|
],
|
|
7827
7830
|
class: "mb-3",
|
|
7828
7831
|
label: "Title",
|
|
@@ -7847,22 +7850,22 @@ const nt = /* @__PURE__ */ we(Os, [["render", zs]]), Ls = { class: "flex" }, js
|
|
|
7847
7850
|
trailing: I(() => [
|
|
7848
7851
|
A(o(ve), {
|
|
7849
7852
|
modelValue: s.value,
|
|
7850
|
-
"onUpdate:modelValue": S[2] || (S[2] = (
|
|
7853
|
+
"onUpdate:modelValue": S[2] || (S[2] = (K) => s.value = K),
|
|
7851
7854
|
distance: 10
|
|
7852
7855
|
}, {
|
|
7853
7856
|
menu: I(() => [
|
|
7854
7857
|
e.isEdit ? u("", !0) : (t(), i("div", Ld, [
|
|
7855
|
-
(t(!0), i(Y, null, T(e.links, (
|
|
7856
|
-
key:
|
|
7858
|
+
(t(!0), i(Y, null, T(e.links, (K) => (t(), i("div", {
|
|
7859
|
+
key: K.value,
|
|
7857
7860
|
class: "flex items-center px-3 py-2 rounded-sm cursor-pointer gap-x-3 text-oc-text-400 hover:bg-gray-50",
|
|
7858
|
-
onClick: (w) => y(
|
|
7861
|
+
onClick: (w) => y(K.value)
|
|
7859
7862
|
}, [
|
|
7860
7863
|
A(o(L), {
|
|
7861
7864
|
width: "20",
|
|
7862
7865
|
height: "20",
|
|
7863
|
-
name:
|
|
7866
|
+
name: K.icon
|
|
7864
7867
|
}, null, 8, ["name"]),
|
|
7865
|
-
F(" " + x(
|
|
7868
|
+
F(" " + x(K.label), 1)
|
|
7866
7869
|
], 8, jd))), 128))
|
|
7867
7870
|
]))
|
|
7868
7871
|
]),
|
|
@@ -7898,7 +7901,10 @@ const nt = /* @__PURE__ */ we(Os, [["render", zs]]), Ls = { class: "flex" }, js
|
|
|
7898
7901
|
hint: String,
|
|
7899
7902
|
modelValue: String,
|
|
7900
7903
|
rows: Number,
|
|
7901
|
-
autoResize:
|
|
7904
|
+
autoResize: {
|
|
7905
|
+
type: Boolean,
|
|
7906
|
+
default: !1
|
|
7907
|
+
},
|
|
7902
7908
|
isDisabled: Boolean,
|
|
7903
7909
|
isRequired: {
|
|
7904
7910
|
type: Boolean,
|
|
@@ -7921,9 +7927,9 @@ const nt = /* @__PURE__ */ we(Os, [["render", zs]]), Ls = { class: "flex" }, js
|
|
|
7921
7927
|
"update:modelValue": []
|
|
7922
7928
|
},
|
|
7923
7929
|
setup(e, { emit: r }) {
|
|
7924
|
-
const
|
|
7930
|
+
const a = r, l = J(!1), s = (d) => {
|
|
7925
7931
|
const c = d.target;
|
|
7926
|
-
c && (c.style.height = Nd, c.style.height = c.scrollHeight + "px",
|
|
7932
|
+
c && (c.style.height = Nd, c.style.height = c.scrollHeight + "px", a("update:modelValue", c.value));
|
|
7927
7933
|
};
|
|
7928
7934
|
return (d, c) => (t(), g(o(Ie), {
|
|
7929
7935
|
label: e.label,
|
|
@@ -7936,17 +7942,18 @@ const nt = /* @__PURE__ */ we(Os, [["render", zs]]), Ls = { class: "flex" }, js
|
|
|
7936
7942
|
}, {
|
|
7937
7943
|
default: I(() => [
|
|
7938
7944
|
n("textarea", {
|
|
7939
|
-
class: p(["outline-none p-3 min-h-[120px] rounded border
|
|
7940
|
-
|
|
7941
|
-
e.errorMessage ? "error-shadow" : "input-shadow"
|
|
7945
|
+
class: p(["outline-none p-3 min-h-[120px] rounded border disabled:bg-oc-bg-dark", [
|
|
7946
|
+
l.value ? "focused-shadow" : "",
|
|
7947
|
+
e.errorMessage ? "error-shadow" : "input-shadow",
|
|
7948
|
+
e.autoResize ? "resize-y" : "resize-none"
|
|
7942
7949
|
]]),
|
|
7943
7950
|
disabled: e.isDisabled,
|
|
7944
7951
|
value: e.modelValue,
|
|
7945
7952
|
rows: e.rows,
|
|
7946
7953
|
placeholder: e.placeholder,
|
|
7947
7954
|
onInput: s,
|
|
7948
|
-
onFocus: c[0] || (c[0] = (m) =>
|
|
7949
|
-
onBlur: c[1] || (c[1] = (m) =>
|
|
7955
|
+
onFocus: c[0] || (c[0] = (m) => l.value = !0),
|
|
7956
|
+
onBlur: c[1] || (c[1] = (m) => l.value = !1)
|
|
7950
7957
|
}, null, 42, Jd)
|
|
7951
7958
|
]),
|
|
7952
7959
|
_: 1
|
|
@@ -7958,83 +7965,83 @@ function tt(e) {
|
|
|
7958
7965
|
}
|
|
7959
7966
|
var Qe = { exports: {} }, qd = Qe.exports, bt;
|
|
7960
7967
|
function Vd() {
|
|
7961
|
-
return bt || (bt = 1, function(e, r) {
|
|
7962
|
-
(function(
|
|
7963
|
-
e.exports =
|
|
7964
|
-
})(qd, function() {
|
|
7965
|
-
return function(
|
|
7966
|
-
|
|
7968
|
+
return bt || (bt = 1, (function(e, r) {
|
|
7969
|
+
(function(a, l) {
|
|
7970
|
+
e.exports = l();
|
|
7971
|
+
})(qd, (function() {
|
|
7972
|
+
return function(a, l, s) {
|
|
7973
|
+
l.prototype.isBetween = function(d, c, m, f) {
|
|
7967
7974
|
var v = s(d), y = s(c), b = (f = f || "()")[0] === "(", j = f[1] === ")";
|
|
7968
7975
|
return (b ? this.isAfter(v, m) : !this.isBefore(v, m)) && (j ? this.isBefore(y, m) : !this.isAfter(y, m)) || (b ? this.isBefore(v, m) : !this.isAfter(v, m)) && (j ? this.isAfter(y, m) : !this.isBefore(y, m));
|
|
7969
7976
|
};
|
|
7970
7977
|
};
|
|
7971
|
-
});
|
|
7972
|
-
}(Qe)), Qe.exports;
|
|
7978
|
+
}));
|
|
7979
|
+
})(Qe)), Qe.exports;
|
|
7973
7980
|
}
|
|
7974
7981
|
var Md = Vd();
|
|
7975
7982
|
const Jt = /* @__PURE__ */ tt(Md);
|
|
7976
7983
|
var Xe = { exports: {} }, Yd = Xe.exports, xt;
|
|
7977
7984
|
function Ed() {
|
|
7978
|
-
return xt || (xt = 1, function(e, r) {
|
|
7979
|
-
(function(
|
|
7980
|
-
e.exports =
|
|
7981
|
-
})(Yd, function() {
|
|
7982
|
-
return function(
|
|
7983
|
-
|
|
7985
|
+
return xt || (xt = 1, (function(e, r) {
|
|
7986
|
+
(function(a, l) {
|
|
7987
|
+
e.exports = l();
|
|
7988
|
+
})(Yd, (function() {
|
|
7989
|
+
return function(a, l) {
|
|
7990
|
+
l.prototype.isSameOrBefore = function(s, d) {
|
|
7984
7991
|
return this.isSame(s, d) || this.isBefore(s, d);
|
|
7985
7992
|
};
|
|
7986
7993
|
};
|
|
7987
|
-
});
|
|
7988
|
-
}(Xe)), Xe.exports;
|
|
7994
|
+
}));
|
|
7995
|
+
})(Xe)), Xe.exports;
|
|
7989
7996
|
}
|
|
7990
7997
|
var Td = Ed();
|
|
7991
7998
|
const Nt = /* @__PURE__ */ tt(Td);
|
|
7992
7999
|
var Fe = { exports: {} }, Hd = Fe.exports, kt;
|
|
7993
8000
|
function Gd() {
|
|
7994
|
-
return kt || (kt = 1, function(e, r) {
|
|
7995
|
-
(function(
|
|
7996
|
-
e.exports =
|
|
7997
|
-
})(Hd, function() {
|
|
7998
|
-
return function(
|
|
7999
|
-
|
|
8001
|
+
return kt || (kt = 1, (function(e, r) {
|
|
8002
|
+
(function(a, l) {
|
|
8003
|
+
e.exports = l();
|
|
8004
|
+
})(Hd, (function() {
|
|
8005
|
+
return function(a, l) {
|
|
8006
|
+
l.prototype.isSameOrAfter = function(s, d) {
|
|
8000
8007
|
return this.isSame(s, d) || this.isAfter(s, d);
|
|
8001
8008
|
};
|
|
8002
8009
|
};
|
|
8003
|
-
});
|
|
8004
|
-
}(Fe)), Fe.exports;
|
|
8010
|
+
}));
|
|
8011
|
+
})(Fe)), Fe.exports;
|
|
8005
8012
|
}
|
|
8006
8013
|
var Dd = Gd();
|
|
8007
8014
|
const Wt = /* @__PURE__ */ tt(Dd);
|
|
8008
8015
|
var Ue = { exports: {} }, Pd = Ue.exports, wt;
|
|
8009
8016
|
function Rd() {
|
|
8010
|
-
return wt || (wt = 1, function(e, r) {
|
|
8011
|
-
(function(
|
|
8012
|
-
e.exports =
|
|
8013
|
-
})(Pd, function() {
|
|
8014
|
-
var
|
|
8017
|
+
return wt || (wt = 1, (function(e, r) {
|
|
8018
|
+
(function(a, l) {
|
|
8019
|
+
e.exports = l();
|
|
8020
|
+
})(Pd, (function() {
|
|
8021
|
+
var a = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" }, l = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, s = /\d/, d = /\d\d/, c = /\d\d?/, m = /\d*[^-_:/,()\s\d]+/, f = {}, v = function(h) {
|
|
8015
8022
|
return (h = +h) + (h > 68 ? 1900 : 2e3);
|
|
8016
8023
|
}, y = function(h) {
|
|
8017
8024
|
return function(S) {
|
|
8018
8025
|
this[h] = +S;
|
|
8019
8026
|
};
|
|
8020
8027
|
}, b = [/[+-]\d\d:?(\d\d)?|Z/, function(h) {
|
|
8021
|
-
(this.zone || (this.zone = {})).offset = function(S) {
|
|
8028
|
+
(this.zone || (this.zone = {})).offset = (function(S) {
|
|
8022
8029
|
if (!S || S === "Z") return 0;
|
|
8023
|
-
var
|
|
8024
|
-
return w === 0 ? 0 :
|
|
8025
|
-
}(h);
|
|
8030
|
+
var K = S.match(/([+-]|\d\d)/g), w = 60 * K[1] + (+K[2] || 0);
|
|
8031
|
+
return w === 0 ? 0 : K[0] === "+" ? -w : w;
|
|
8032
|
+
})(h);
|
|
8026
8033
|
}], j = function(h) {
|
|
8027
8034
|
var S = f[h];
|
|
8028
8035
|
return S && (S.indexOf ? S : S.s.concat(S.f));
|
|
8029
8036
|
}, z = function(h, S) {
|
|
8030
|
-
var
|
|
8037
|
+
var K, w = f.meridiem;
|
|
8031
8038
|
if (w) {
|
|
8032
|
-
for (var
|
|
8033
|
-
|
|
8039
|
+
for (var O = 1; O <= 24; O += 1) if (h.indexOf(w(O, 0, S)) > -1) {
|
|
8040
|
+
K = O > 12;
|
|
8034
8041
|
break;
|
|
8035
8042
|
}
|
|
8036
|
-
} else
|
|
8037
|
-
return
|
|
8043
|
+
} else K = h === (S ? "pm" : "PM");
|
|
8044
|
+
return K;
|
|
8038
8045
|
}, Z = { A: [m, function(h) {
|
|
8039
8046
|
this.afternoon = z(h, !1);
|
|
8040
8047
|
}], a: [m, function(h) {
|
|
@@ -8048,14 +8055,14 @@ function Rd() {
|
|
|
8048
8055
|
}], SSS: [/\d{3}/, function(h) {
|
|
8049
8056
|
this.milliseconds = +h;
|
|
8050
8057
|
}], s: [c, y("seconds")], ss: [c, y("seconds")], m: [c, y("minutes")], mm: [c, y("minutes")], H: [c, y("hours")], h: [c, y("hours")], HH: [c, y("hours")], hh: [c, y("hours")], D: [c, y("day")], DD: [d, y("day")], Do: [m, function(h) {
|
|
8051
|
-
var S = f.ordinal,
|
|
8052
|
-
if (this.day =
|
|
8058
|
+
var S = f.ordinal, K = h.match(/\d+/);
|
|
8059
|
+
if (this.day = K[0], S) for (var w = 1; w <= 31; w += 1) S(w).replace(/\[|\]/g, "") === h && (this.day = w);
|
|
8053
8060
|
}], w: [c, y("week")], ww: [d, y("week")], M: [c, y("month")], MM: [d, y("month")], MMM: [m, function(h) {
|
|
8054
|
-
var S = j("months"),
|
|
8061
|
+
var S = j("months"), K = (j("monthsShort") || S.map((function(w) {
|
|
8055
8062
|
return w.slice(0, 3);
|
|
8056
|
-
})).indexOf(h) + 1;
|
|
8057
|
-
if (
|
|
8058
|
-
this.month =
|
|
8063
|
+
}))).indexOf(h) + 1;
|
|
8064
|
+
if (K < 1) throw new Error();
|
|
8065
|
+
this.month = K % 12 || K;
|
|
8059
8066
|
}], MMMM: [m, function(h) {
|
|
8060
8067
|
var S = j("months").indexOf(h) + 1;
|
|
8061
8068
|
if (S < 1) throw new Error();
|
|
@@ -8064,19 +8071,19 @@ function Rd() {
|
|
|
8064
8071
|
this.year = v(h);
|
|
8065
8072
|
}], YYYY: [/\d{4}/, y("year")], Z: b, ZZ: b };
|
|
8066
8073
|
function C(h) {
|
|
8067
|
-
var S,
|
|
8068
|
-
S = h,
|
|
8069
|
-
for (var w = (h = S.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(R, $, te) {
|
|
8074
|
+
var S, K;
|
|
8075
|
+
S = h, K = f && f.formats;
|
|
8076
|
+
for (var w = (h = S.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (function(R, $, te) {
|
|
8070
8077
|
var le = te && te.toUpperCase();
|
|
8071
|
-
return $ ||
|
|
8078
|
+
return $ || K[te] || a[te] || K[le].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (function(ie, ce, ge) {
|
|
8072
8079
|
return ce || ge.slice(1);
|
|
8073
|
-
});
|
|
8074
|
-
})).match(
|
|
8080
|
+
}));
|
|
8081
|
+
}))).match(l), O = w.length, N = 0; N < O; N += 1) {
|
|
8075
8082
|
var q = w[N], W = Z[q], B = W && W[0], H = W && W[1];
|
|
8076
8083
|
w[N] = H ? { regex: B, parser: H } : q.replace(/^\[|\]$/g, "");
|
|
8077
8084
|
}
|
|
8078
8085
|
return function(R) {
|
|
8079
|
-
for (var $ = {}, te = 0, le = 0; te <
|
|
8086
|
+
for (var $ = {}, te = 0, le = 0; te < O; te += 1) {
|
|
8080
8087
|
var ie = w[te];
|
|
8081
8088
|
if (typeof ie == "string") le += ie.length;
|
|
8082
8089
|
else {
|
|
@@ -8084,25 +8091,25 @@ function Rd() {
|
|
|
8084
8091
|
ge.call($, he), R = R.replace(he, "");
|
|
8085
8092
|
}
|
|
8086
8093
|
}
|
|
8087
|
-
return function(ae) {
|
|
8094
|
+
return (function(ae) {
|
|
8088
8095
|
var ze = ae.afternoon;
|
|
8089
8096
|
if (ze !== void 0) {
|
|
8090
8097
|
var re = ae.hours;
|
|
8091
8098
|
ze ? re < 12 && (ae.hours += 12) : re === 12 && (ae.hours = 0), delete ae.afternoon;
|
|
8092
8099
|
}
|
|
8093
|
-
}($), $;
|
|
8100
|
+
})($), $;
|
|
8094
8101
|
};
|
|
8095
8102
|
}
|
|
8096
|
-
return function(h, S,
|
|
8097
|
-
|
|
8098
|
-
var w = S.prototype,
|
|
8103
|
+
return function(h, S, K) {
|
|
8104
|
+
K.p.customParseFormat = !0, h && h.parseTwoDigitYear && (v = h.parseTwoDigitYear);
|
|
8105
|
+
var w = S.prototype, O = w.parse;
|
|
8099
8106
|
w.parse = function(N) {
|
|
8100
8107
|
var q = N.date, W = N.utc, B = N.args;
|
|
8101
8108
|
this.$u = W;
|
|
8102
8109
|
var H = B[1];
|
|
8103
8110
|
if (typeof H == "string") {
|
|
8104
8111
|
var R = B[2] === !0, $ = B[3] === !0, te = R || $, le = B[2];
|
|
8105
|
-
$ && (le = B[2]), f = this.$locale(), !R && le && (f =
|
|
8112
|
+
$ && (le = B[2]), f = this.$locale(), !R && le && (f = K.Ls[le]), this.$d = (function(be, he, ae, ze) {
|
|
8106
8113
|
try {
|
|
8107
8114
|
if (["x", "X"].indexOf(he) > -1) return new Date((he === "X" ? 1e3 : 1) * be);
|
|
8108
8115
|
var re = C(he)(be), Le = re.year, Ze = re.month, ee = re.day, je = re.hours, P = re.minutes, M = re.seconds, E = re.milliseconds, D = re.zone, Q = re.week, X = /* @__PURE__ */ new Date(), ue = ee || (Le || Ze ? 1 : X.getDate()), Ce = Le || X.getFullYear(), Oe = 0;
|
|
@@ -8112,34 +8119,34 @@ function Rd() {
|
|
|
8112
8119
|
} catch {
|
|
8113
8120
|
return /* @__PURE__ */ new Date("");
|
|
8114
8121
|
}
|
|
8115
|
-
}(q, H, W,
|
|
8122
|
+
})(q, H, W, K), this.init(), le && le !== !0 && (this.$L = this.locale(le).$L), te && q != this.format(H) && (this.$d = /* @__PURE__ */ new Date("")), f = {};
|
|
8116
8123
|
} else if (H instanceof Array) for (var ie = H.length, ce = 1; ce <= ie; ce += 1) {
|
|
8117
8124
|
B[1] = H[ce - 1];
|
|
8118
|
-
var ge =
|
|
8125
|
+
var ge = K.apply(this, B);
|
|
8119
8126
|
if (ge.isValid()) {
|
|
8120
8127
|
this.$d = ge.$d, this.$L = ge.$L, this.init();
|
|
8121
8128
|
break;
|
|
8122
8129
|
}
|
|
8123
8130
|
ce === ie && (this.$d = /* @__PURE__ */ new Date(""));
|
|
8124
8131
|
}
|
|
8125
|
-
else
|
|
8132
|
+
else O.call(this, N);
|
|
8126
8133
|
};
|
|
8127
8134
|
};
|
|
8128
|
-
});
|
|
8129
|
-
}(Ue)), Ue.exports;
|
|
8135
|
+
}));
|
|
8136
|
+
})(Ue)), Ue.exports;
|
|
8130
8137
|
}
|
|
8131
8138
|
var Qd = Rd();
|
|
8132
8139
|
const dt = /* @__PURE__ */ tt(Qd);
|
|
8133
8140
|
var Xd = typeof global == "object" && global && global.Object === Object && global, Fd = typeof self == "object" && self && self.Object === Object && self, qt = Xd || Fd || Function("return this")(), et = qt.Symbol, Vt = Object.prototype, Ud = Vt.hasOwnProperty, $d = Vt.toString, He = et ? et.toStringTag : void 0;
|
|
8134
8141
|
function _d(e) {
|
|
8135
|
-
var r = Ud.call(e, He),
|
|
8142
|
+
var r = Ud.call(e, He), a = e[He];
|
|
8136
8143
|
try {
|
|
8137
8144
|
e[He] = void 0;
|
|
8138
|
-
var
|
|
8145
|
+
var l = !0;
|
|
8139
8146
|
} catch {
|
|
8140
8147
|
}
|
|
8141
8148
|
var s = $d.call(e);
|
|
8142
|
-
return
|
|
8149
|
+
return l && (r ? e[He] = a : delete e[He]), s;
|
|
8143
8150
|
}
|
|
8144
8151
|
var ec = Object.prototype, tc = ec.toString;
|
|
8145
8152
|
function ac(e) {
|
|
@@ -8183,20 +8190,20 @@ function It(e) {
|
|
|
8183
8190
|
if (typeof e != "string")
|
|
8184
8191
|
return e === 0 ? e : +e;
|
|
8185
8192
|
e = mc(e);
|
|
8186
|
-
var
|
|
8187
|
-
return
|
|
8193
|
+
var a = pc.test(e);
|
|
8194
|
+
return a || vc.test(e) ? gc(e.slice(2), a ? 2 : 8) : fc.test(e) ? St : +e;
|
|
8188
8195
|
}
|
|
8189
8196
|
var lt = function() {
|
|
8190
8197
|
return qt.Date.now();
|
|
8191
8198
|
}, Ac = "Expected a function", hc = Math.max, yc = Math.min;
|
|
8192
|
-
function bc(e, r,
|
|
8193
|
-
var
|
|
8199
|
+
function bc(e, r, a) {
|
|
8200
|
+
var l, s, d, c, m, f, v = 0, y = !1, b = !1, j = !0;
|
|
8194
8201
|
if (typeof e != "function")
|
|
8195
8202
|
throw new TypeError(Ac);
|
|
8196
|
-
r = It(r) || 0, it(
|
|
8203
|
+
r = It(r) || 0, it(a) && (y = !!a.leading, b = "maxWait" in a, d = b ? hc(It(a.maxWait) || 0, r) : d, j = "trailing" in a ? !!a.trailing : j);
|
|
8197
8204
|
function z(q) {
|
|
8198
|
-
var W =
|
|
8199
|
-
return
|
|
8205
|
+
var W = l, B = s;
|
|
8206
|
+
return l = s = void 0, v = q, c = e.apply(B, W), c;
|
|
8200
8207
|
}
|
|
8201
8208
|
function Z(q) {
|
|
8202
8209
|
return v = q, m = setTimeout(S, r), y ? z(q) : c;
|
|
@@ -8212,21 +8219,21 @@ function bc(e, r, l) {
|
|
|
8212
8219
|
function S() {
|
|
8213
8220
|
var q = lt();
|
|
8214
8221
|
if (h(q))
|
|
8215
|
-
return
|
|
8222
|
+
return K(q);
|
|
8216
8223
|
m = setTimeout(S, C(q));
|
|
8217
8224
|
}
|
|
8218
|
-
function
|
|
8219
|
-
return m = void 0, j &&
|
|
8225
|
+
function K(q) {
|
|
8226
|
+
return m = void 0, j && l ? z(q) : (l = s = void 0, c);
|
|
8220
8227
|
}
|
|
8221
8228
|
function w() {
|
|
8222
|
-
m !== void 0 && clearTimeout(m), v = 0,
|
|
8229
|
+
m !== void 0 && clearTimeout(m), v = 0, l = f = s = m = void 0;
|
|
8223
8230
|
}
|
|
8224
|
-
function
|
|
8225
|
-
return m === void 0 ? c :
|
|
8231
|
+
function O() {
|
|
8232
|
+
return m === void 0 ? c : K(lt());
|
|
8226
8233
|
}
|
|
8227
8234
|
function N() {
|
|
8228
8235
|
var q = lt(), W = h(q);
|
|
8229
|
-
if (
|
|
8236
|
+
if (l = arguments, s = this, f = q, W) {
|
|
8230
8237
|
if (m === void 0)
|
|
8231
8238
|
return Z(f);
|
|
8232
8239
|
if (b)
|
|
@@ -8234,7 +8241,7 @@ function bc(e, r, l) {
|
|
|
8234
8241
|
}
|
|
8235
8242
|
return m === void 0 && (m = setTimeout(S, r)), c;
|
|
8236
8243
|
}
|
|
8237
|
-
return N.cancel = w, N.flush =
|
|
8244
|
+
return N.cancel = w, N.flush = O, N;
|
|
8238
8245
|
}
|
|
8239
8246
|
const xc = { class: "flex items-center justify-between" }, kc = { class: "flex flex-col gap-2 p-3" }, wc = { class: "flex justify-between items-center" }, Cc = { key: 0 }, Sc = { key: 1 }, Ic = {
|
|
8240
8247
|
key: 0,
|
|
@@ -8282,12 +8289,12 @@ const xc = { class: "flex items-center justify-between" }, kc = { class: "flex f
|
|
|
8282
8289
|
emits: ["update:modelValue", "reset-calendar", "update:isIndefinite"],
|
|
8283
8290
|
setup(e, { emit: r }) {
|
|
8284
8291
|
_.extend(Jt), _.extend(Nt), _.extend(Wt), _.extend(dt);
|
|
8285
|
-
const
|
|
8292
|
+
const a = e, l = r, s = J(), d = J(), c = J(), m = J(), f = J(), v = J(), y = J(), b = J(!1), j = J(!1), z = J(!1), Z = J(!1), C = V(() => a.type === "range"), h = V(() => {
|
|
8286
8293
|
const M = s.value.endOf("month").date();
|
|
8287
8294
|
return Array.from({ length: M }, (E, D) => D + 1);
|
|
8288
|
-
}), S = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
|
|
8295
|
+
}), S = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], K = V(() => s.value.format("MMMM YYYY")), w = V(
|
|
8289
8296
|
() => z.value ? v.value.format("YYYY") : s.value.format("YYYY")
|
|
8290
|
-
),
|
|
8297
|
+
), O = V(() => s.value.format("MMM")), N = V(() => {
|
|
8291
8298
|
const P = d.value, M = c.value ?? y.value, E = [P, M];
|
|
8292
8299
|
return M && (P != null && P.isAfter(M)) && E.reverse(), {
|
|
8293
8300
|
from: E[0],
|
|
@@ -8329,17 +8336,17 @@ const xc = { class: "flex items-center justify-between" }, kc = { class: "flex f
|
|
|
8329
8336
|
"[]"
|
|
8330
8337
|
) : !1 : m.value && f.value && m.value <= P && f.value >= P, ae = (P) => {
|
|
8331
8338
|
const M = s.value.date(P);
|
|
8332
|
-
return
|
|
8339
|
+
return a.disabledDate(M.toDate()) || a.minDate && M.isBefore(_(a.minDate), "day") || a.maxDate && M.isAfter(_(a.maxDate), "day");
|
|
8333
8340
|
}, ze = () => {
|
|
8334
|
-
C.value && (ae(d.value.toDate()) || ae(c.value.toDate())) || (j.value = !1,
|
|
8341
|
+
C.value && (ae(d.value.toDate()) || ae(c.value.toDate())) || (j.value = !1, l(
|
|
8335
8342
|
"update:modelValue",
|
|
8336
8343
|
C.value ? [N.value.from, N.value.to].map((P) => P.toDate()) : d.value.toDate()
|
|
8337
8344
|
));
|
|
8338
8345
|
}, re = (P) => {
|
|
8339
|
-
|
|
8346
|
+
l("update:isIndefinite", P);
|
|
8340
8347
|
}, Le = (P, M = !0) => {
|
|
8341
8348
|
if (!C.value) {
|
|
8342
|
-
let D = _(
|
|
8349
|
+
let D = _(K.value, "MMMM YYYY").date(P);
|
|
8343
8350
|
m.value = P, d.value = D, f.value = null, c.value = null, ze();
|
|
8344
8351
|
return;
|
|
8345
8352
|
}
|
|
@@ -8353,8 +8360,8 @@ const xc = { class: "flex items-center justify-between" }, kc = { class: "flex f
|
|
|
8353
8360
|
j.value && Le(P, !1);
|
|
8354
8361
|
}, 50), ee = () => {
|
|
8355
8362
|
var M, E, D;
|
|
8356
|
-
const P = C.value ? (M =
|
|
8357
|
-
s.value = _(P), v.value = _(P), d.value = P && s.value, m.value = P && d.value.date(), !(!C.value || !P) && (c.value = _((E =
|
|
8363
|
+
const P = C.value ? (M = a.modelValue) == null ? void 0 : M[0] : a.modelValue;
|
|
8364
|
+
s.value = _(P), v.value = _(P), d.value = P && s.value, m.value = P && d.value.date(), !(!C.value || !P) && (c.value = _((E = a.modelValue) == null ? void 0 : E[1]), f.value = ((D = c.value) == null ? void 0 : D.month()) === s.value.month() ? c.value.date() : void 0);
|
|
8358
8365
|
}, je = (P) => {
|
|
8359
8366
|
const M = P + 11, E = [];
|
|
8360
8367
|
for (; P <= M; )
|
|
@@ -8406,7 +8413,7 @@ const xc = { class: "flex items-center justify-between" }, kc = { class: "flex f
|
|
|
8406
8413
|
(t(), i(Y, null, T(S, (E, D) => n("div", {
|
|
8407
8414
|
key: E,
|
|
8408
8415
|
class: p(["px-4 py-2 hover:border-oc-gray-200 border-2 border-transparent transition text-center rounded cursor-pointer", {
|
|
8409
|
-
"!border-oc-primary bg-oc-primary text-white":
|
|
8416
|
+
"!border-oc-primary bg-oc-primary text-white": O.value === E
|
|
8410
8417
|
}]),
|
|
8411
8418
|
onClick: (Q) => te(D)
|
|
8412
8419
|
}, x(E), 11, Kc)), 64))
|
|
@@ -8417,7 +8424,7 @@ const xc = { class: "flex items-center justify-between" }, kc = { class: "flex f
|
|
|
8417
8424
|
n("span", {
|
|
8418
8425
|
class: p([[b.value ? "pointer-events-none opacity-[.35]" : ""], "cursor-pointer hover:opacity-50 transition"]),
|
|
8419
8426
|
onClick: pe(ge, ["stop"])
|
|
8420
|
-
}, x(
|
|
8427
|
+
}, x(K.value), 3)
|
|
8421
8428
|
]),
|
|
8422
8429
|
_: 1
|
|
8423
8430
|
}, 8, ["modelValue"]),
|
|
@@ -8478,7 +8485,7 @@ const xc = { class: "flex items-center justify-between" }, kc = { class: "flex f
|
|
|
8478
8485
|
label: "Reset",
|
|
8479
8486
|
class: "w-[72px]",
|
|
8480
8487
|
"is-disabled": b.value,
|
|
8481
|
-
onClick: M[4] || (M[4] = (E) =>
|
|
8488
|
+
onClick: M[4] || (M[4] = (E) => l("reset-calendar"))
|
|
8482
8489
|
}, null, 8, ["is-disabled"])
|
|
8483
8490
|
])
|
|
8484
8491
|
], 2));
|
|
@@ -8584,60 +8591,60 @@ const Jc = { class: "flex flex-col gap-y-2 w-full" }, Nc = {
|
|
|
8584
8591
|
emits: ["update:modelValue", "resetCalendar", "error"],
|
|
8585
8592
|
setup(e, { emit: r }) {
|
|
8586
8593
|
_.extend(dt);
|
|
8587
|
-
const
|
|
8588
|
-
_(
|
|
8589
|
-
_(
|
|
8590
|
-
] : ["", ""] :
|
|
8591
|
-
|
|
8594
|
+
const a = r, l = e, s = J(!1), d = J(!1), c = J(!1), m = J([]), f = V(() => l.type === "range"), v = V(() => f.value ? l.modelValue && l.modelValue[0] ? [
|
|
8595
|
+
_(l.modelValue[0], l.dateFormat),
|
|
8596
|
+
_(l.modelValue[1], l.dateFormat)
|
|
8597
|
+
] : ["", ""] : l.modelValue ? _(l.modelValue, l.dateFormat) : ""), y = (h) => {
|
|
8598
|
+
l.type === "range" ? a(
|
|
8592
8599
|
"update:modelValue",
|
|
8593
8600
|
h ? [
|
|
8594
|
-
_(h.start).format(
|
|
8595
|
-
_(h.end).format(
|
|
8601
|
+
_(h.start).format(l.dateFormat),
|
|
8602
|
+
_(h.end).format(l.dateFormat)
|
|
8596
8603
|
] : []
|
|
8597
|
-
) :
|
|
8604
|
+
) : a("update:modelValue", _(h).format(l.dateFormat)), s.value = !1;
|
|
8598
8605
|
}, b = () => {
|
|
8599
|
-
|
|
8606
|
+
a("resetCalendar"), a("update:modelValue", f.value ? [] : null), s.value = !1;
|
|
8600
8607
|
}, j = (h) => {
|
|
8601
8608
|
const S = _(h);
|
|
8602
8609
|
return ((w) => w.get("month") === _().get("month"))(S);
|
|
8603
8610
|
}, z = (h) => {
|
|
8604
|
-
d.value = h,
|
|
8611
|
+
d.value = h, a("update:modelValue", h ? "Indefinite" : null);
|
|
8605
8612
|
}, Z = (h, S) => {
|
|
8606
8613
|
var w;
|
|
8607
|
-
const
|
|
8608
|
-
m.value[S] =
|
|
8614
|
+
const K = _(h, l.dateFormat, !0);
|
|
8615
|
+
m.value[S] = K.format(l.dateFormat), m.value[S ? 0 : 1] = ((w = l.modelValue) == null ? void 0 : w[S ? 0 : 1]) || _().format(l.dateFormat);
|
|
8609
8616
|
}, C = () => {
|
|
8610
8617
|
if (m.value.length) {
|
|
8611
|
-
if (c.value = !1, m.value.some((h) => !_(h,
|
|
8618
|
+
if (c.value = !1, m.value.some((h) => !_(h, l.dateFormat).isValid())) {
|
|
8612
8619
|
c.value = !0, m.value = [];
|
|
8613
8620
|
return;
|
|
8614
8621
|
}
|
|
8615
|
-
|
|
8616
|
-
(h) => _(h,
|
|
8617
|
-
)),
|
|
8622
|
+
l.maxDate && (m.value = m.value.map(
|
|
8623
|
+
(h) => _(h, l.dateFormat).isSameOrBefore(_(l.maxDate)) ? h : _(l.maxDate).format(l.dateFormat)
|
|
8624
|
+
)), a("update:modelValue", m.value), m.value = [];
|
|
8618
8625
|
}
|
|
8619
8626
|
};
|
|
8620
8627
|
return (h, S) => (t(), g(o(ve), {
|
|
8621
8628
|
modelValue: s.value,
|
|
8622
|
-
"onUpdate:modelValue": S[3] || (S[3] = (
|
|
8629
|
+
"onUpdate:modelValue": S[3] || (S[3] = (K) => s.value = K),
|
|
8623
8630
|
"is-disabled": e.disabled,
|
|
8624
8631
|
placement: e.placement,
|
|
8625
8632
|
distance: 10,
|
|
8626
8633
|
class: "w-full"
|
|
8627
8634
|
}, {
|
|
8628
|
-
menu: I(({ isPopoverOpen:
|
|
8635
|
+
menu: I(({ isPopoverOpen: K }) => [
|
|
8629
8636
|
k(h.$slots, "menu", {
|
|
8630
|
-
isPopoverOpen:
|
|
8637
|
+
isPopoverOpen: K,
|
|
8631
8638
|
updateCalendar: y,
|
|
8632
8639
|
resetCalendar: b
|
|
8633
8640
|
}, () => {
|
|
8634
|
-
var w,
|
|
8641
|
+
var w, O;
|
|
8635
8642
|
return [
|
|
8636
8643
|
f.value ? (t(), g(o(Hm), {
|
|
8637
8644
|
key: 0,
|
|
8638
8645
|
"model-value": {
|
|
8639
8646
|
start: (w = e.modelValue) == null ? void 0 : w[0],
|
|
8640
|
-
end: (
|
|
8647
|
+
end: (O = e.modelValue) == null ? void 0 : O[1]
|
|
8641
8648
|
},
|
|
8642
8649
|
shortcuts: e.shortcuts,
|
|
8643
8650
|
"count-calendars": e.countCalendars,
|
|
@@ -8647,7 +8654,7 @@ const Jc = { class: "flex flex-col gap-y-2 w-full" }, Nc = {
|
|
|
8647
8654
|
"max-date": e.maxDate,
|
|
8648
8655
|
masks: { modelValue: e.dateFormat },
|
|
8649
8656
|
"onUpdate:modelValue": y
|
|
8650
|
-
}, null, 8, ["model-value", "shortcuts", "count-calendars", "min-date", "max-date", "masks"])) : !e.disabled &&
|
|
8657
|
+
}, null, 8, ["model-value", "shortcuts", "count-calendars", "min-date", "max-date", "masks"])) : !e.disabled && K ? (t(), g(o(Bc), {
|
|
8651
8658
|
key: 1,
|
|
8652
8659
|
"model-value": v.value ? v.value.toDate() : /* @__PURE__ */ new Date(),
|
|
8653
8660
|
"disabled-date": d.value ? j : e.disabledDate,
|
|
@@ -8692,7 +8699,7 @@ const Jc = { class: "flex flex-col gap-y-2 w-full" }, Nc = {
|
|
|
8692
8699
|
"focused-shadow": s.value && !e.disabled
|
|
8693
8700
|
}
|
|
8694
8701
|
]]),
|
|
8695
|
-
onClick: S[2] || (S[2] = (
|
|
8702
|
+
onClick: S[2] || (S[2] = (K) => s.value ? K.stopPropagation : null)
|
|
8696
8703
|
}, [
|
|
8697
8704
|
n("div", qc, [
|
|
8698
8705
|
A(o(L), {
|
|
@@ -8703,7 +8710,7 @@ const Jc = { class: "flex flex-col gap-y-2 w-full" }, Nc = {
|
|
|
8703
8710
|
placeholder: "Start date",
|
|
8704
8711
|
value: v.value[0] ? v.value[0].format(e.dateFormat) : "",
|
|
8705
8712
|
class: "text-center bg-transparent outline-0 w-full placeholder:text-oc-text-300",
|
|
8706
|
-
onInput: S[0] || (S[0] = (
|
|
8713
|
+
onInput: S[0] || (S[0] = (K) => Z(K.target.value, 0)),
|
|
8707
8714
|
onKeydown: $e(C, ["enter"]),
|
|
8708
8715
|
onBlur: C
|
|
8709
8716
|
}, null, 40, Vc)
|
|
@@ -8714,7 +8721,7 @@ const Jc = { class: "flex flex-col gap-y-2 w-full" }, Nc = {
|
|
|
8714
8721
|
placeholder: "End date",
|
|
8715
8722
|
value: v.value[1] ? v.value[1].format(e.dateFormat) : "",
|
|
8716
8723
|
class: "text-center bg-transparent outline-0 w-full placeholder:text-oc-text-300",
|
|
8717
|
-
onInput: S[1] || (S[1] = (
|
|
8724
|
+
onInput: S[1] || (S[1] = (K) => Z(K.target.value, 1)),
|
|
8718
8725
|
onKeydown: $e(C, ["enter"]),
|
|
8719
8726
|
onBlur: C
|
|
8720
8727
|
}, null, 40, Yc),
|
|
@@ -8771,28 +8778,28 @@ const Jc = { class: "flex flex-col gap-y-2 w-full" }, Nc = {
|
|
|
8771
8778
|
emits: {
|
|
8772
8779
|
"update:modelValue": []
|
|
8773
8780
|
},
|
|
8774
|
-
setup(e, { expose: r, emit:
|
|
8775
|
-
const
|
|
8781
|
+
setup(e, { expose: r, emit: a }) {
|
|
8782
|
+
const l = e, s = a, d = J(), c = J(), m = J(), f = J(0), v = J(0), y = () => {
|
|
8776
8783
|
var C, h;
|
|
8777
|
-
|
|
8784
|
+
l.type === "range" && parseInt((C = c.value) == null ? void 0 : C.value) - parseInt((h = d.value) == null ? void 0 : h.value) <= l.minGap && (d.value.value = parseInt(c.value.value) - l.minGap), j();
|
|
8778
8785
|
}, b = () => {
|
|
8779
8786
|
var C, h, S;
|
|
8780
|
-
parseInt((C = c.value) == null ? void 0 : C.value) - parseInt((h = d.value) == null ? void 0 : h.value) <=
|
|
8787
|
+
parseInt((C = c.value) == null ? void 0 : C.value) - parseInt((h = d.value) == null ? void 0 : h.value) <= l.minGap && (c.value.value = parseInt((S = d.value) == null ? void 0 : S.value) + l.minGap), j();
|
|
8781
8788
|
}, j = (C = !1) => {
|
|
8782
|
-
var h, S,
|
|
8783
|
-
f.value = (((h = d.value) == null ? void 0 : h.value) -
|
|
8789
|
+
var h, S, K, w;
|
|
8790
|
+
f.value = (((h = d.value) == null ? void 0 : h.value) - l.minLimit) / (l.maxLimit - l.minLimit) * 100, v.value = l.type === "range" ? (((S = c.value) == null ? void 0 : S.value) - l.minLimit) / (l.maxLimit - l.minLimit) * 100 : 0, m.value.style.background = l.type === "range" ? `linear-gradient(to right, var(--oc-gray-100) ${f.value}% , var(--oc-primary-500) ${f.value}% , var(--oc-primary-500) ${v.value}%, var(--oc-gray-100) ${v.value}%)` : `linear-gradient(to right, var(--oc-primary-500) ${f.value}%, var(--oc-gray-100) ${f.value}%)`, C || s(
|
|
8784
8791
|
"update:modelValue",
|
|
8785
|
-
|
|
8792
|
+
l.type === "range" ? [(K = d.value) == null ? void 0 : K.value, (w = c.value) == null ? void 0 : w.value] : d.value.value
|
|
8786
8793
|
);
|
|
8787
8794
|
}, z = (C) => {
|
|
8788
8795
|
C.key >= "0" && C.key <= "9" || C.key === "Backspace" || C.preventDefault();
|
|
8789
8796
|
}, Z = (C) => {
|
|
8790
|
-
C && C[0] && C[1] &&
|
|
8797
|
+
C && C[0] && C[1] && l.type === "range" ? (d.value.value = Number(C[0]), c.value.value = Number(C[1]), y(), l.type === "range" && b()) : C && l.type === "default" ? C <= l.maxLimit && C >= l.minLimit && (d.value.value = Number(C), y()) : j(!0);
|
|
8791
8798
|
};
|
|
8792
8799
|
return r({
|
|
8793
8800
|
updateSlider: Z
|
|
8794
8801
|
}), ke(() => Z()), (C, h) => {
|
|
8795
|
-
var S,
|
|
8802
|
+
var S, K, w, O;
|
|
8796
8803
|
return t(), i("div", Tc, [
|
|
8797
8804
|
e.label ? (t(), i("label", Hc, [
|
|
8798
8805
|
n("span", Gc, x(e.label), 1)
|
|
@@ -8824,7 +8831,7 @@ const Jc = { class: "flex flex-col gap-y-2 w-full" }, Nc = {
|
|
|
8824
8831
|
type: "range",
|
|
8825
8832
|
min: e.minLimit,
|
|
8826
8833
|
max: e.maxLimit,
|
|
8827
|
-
value: (
|
|
8834
|
+
value: (K = e.modelValue) == null ? void 0 : K[1],
|
|
8828
8835
|
onInput: b
|
|
8829
8836
|
}, null, 40, Pc)) : u("", !0),
|
|
8830
8837
|
e.variant === "default" ? (t(), i("div", {
|
|
@@ -8836,7 +8843,7 @@ const Jc = { class: "flex flex-col gap-y-2 w-full" }, Nc = {
|
|
|
8836
8843
|
key: 2,
|
|
8837
8844
|
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]",
|
|
8838
8845
|
style: me(`right: ${100 - v.value}%`)
|
|
8839
|
-
}, x((
|
|
8846
|
+
}, x((O = e.modelValue) == null ? void 0 : O[1]), 5)) : u("", !0),
|
|
8840
8847
|
n("span", Rc, [
|
|
8841
8848
|
k(C.$slots, "min-limit-label", {}, () => [
|
|
8842
8849
|
F(x(e.minLimit), 1)
|
|
@@ -8888,8 +8895,8 @@ const Jc = { class: "flex flex-col gap-y-2 w-full" }, Nc = {
|
|
|
8888
8895
|
},
|
|
8889
8896
|
emits: ["update:modelValue"],
|
|
8890
8897
|
setup(e, { emit: r }) {
|
|
8891
|
-
const
|
|
8892
|
-
return
|
|
8898
|
+
const a = e, l = r;
|
|
8899
|
+
return a.defaultValue === !0 && (a.modelValue === null || a.modelValue === void 0) && l("update:modelValue", !0), (s, d) => (t(), i("div", Uc, [
|
|
8893
8900
|
n("div", $c, [
|
|
8894
8901
|
n("div", _c, [
|
|
8895
8902
|
F(x(e.title) + " ", 1),
|
|
@@ -8977,9 +8984,9 @@ const Jc = { class: "flex flex-col gap-y-2 w-full" }, Nc = {
|
|
|
8977
8984
|
"update:modelValue": []
|
|
8978
8985
|
},
|
|
8979
8986
|
setup(e, { emit: r }) {
|
|
8980
|
-
const
|
|
8981
|
-
|
|
8982
|
-
}, d = V(() =>
|
|
8987
|
+
const a = e, l = r, s = (c) => {
|
|
8988
|
+
l("update:modelValue", c);
|
|
8989
|
+
}, d = V(() => a.variant === "grid");
|
|
8983
8990
|
return (c, m) => (t(), g(o(Ie), {
|
|
8984
8991
|
label: e.label,
|
|
8985
8992
|
hint: e.hint,
|
|
@@ -8992,7 +8999,7 @@ const Jc = { class: "flex flex-col gap-y-2 w-full" }, Nc = {
|
|
|
8992
8999
|
default: I(() => [
|
|
8993
9000
|
n("div", {
|
|
8994
9001
|
class: p(["gap-3", [
|
|
8995
|
-
|
|
9002
|
+
a.class,
|
|
8996
9003
|
d.value ? "grid-cols-3" : e.variant === "list2" ? "grid-cols-2" : "",
|
|
8997
9004
|
{
|
|
8998
9005
|
"w-full grid": e.optionType !== "icon",
|
|
@@ -9085,11 +9092,11 @@ const Jc = { class: "flex flex-col gap-y-2 w-full" }, Nc = {
|
|
|
9085
9092
|
},
|
|
9086
9093
|
emits: ["change", "update:uploadedImage", "onOpenEditImage", "delete"],
|
|
9087
9094
|
setup(e, { emit: r }) {
|
|
9088
|
-
const
|
|
9089
|
-
const j =
|
|
9090
|
-
j.fileUrl = y, j.fileName = Date.now(), j.cropper = b, j.isEdit = !0, d.value = !1, c.value = "",
|
|
9095
|
+
const a = e, l = r, s = J(!1), d = J(!1), c = J(""), m = J(!1), f = ({ url: y, cropper: b }) => {
|
|
9096
|
+
const j = a.uploadedImage;
|
|
9097
|
+
j.fileUrl = y, j.fileName = Date.now(), j.cropper = b, j.isEdit = !0, d.value = !1, c.value = "", l("update:uploadedImage", j);
|
|
9091
9098
|
}, v = () => {
|
|
9092
|
-
c.value =
|
|
9099
|
+
c.value = a.uploadedImage.fileUrl, s.value = !1, d.value = !0, l("onOpenEditImage", a.uploadedImage);
|
|
9093
9100
|
};
|
|
9094
9101
|
return (y, b) => {
|
|
9095
9102
|
var j, z;
|
|
@@ -9237,42 +9244,42 @@ const Jc = { class: "flex flex-col gap-y-2 w-full" }, Nc = {
|
|
|
9237
9244
|
"onImageError"
|
|
9238
9245
|
],
|
|
9239
9246
|
setup(e, { emit: r }) {
|
|
9240
|
-
const
|
|
9241
|
-
v.value = !0, y.value =
|
|
9247
|
+
const a = e, l = r, s = J([]), d = J(!1), c = J(""), m = J({}), f = V(() => a.uploadedImages[c.value].fileUrl), v = J(!1), y = J(""), b = (O) => {
|
|
9248
|
+
v.value = !0, y.value = O;
|
|
9242
9249
|
}, j = J(!1), z = () => {
|
|
9243
|
-
const
|
|
9244
|
-
|
|
9250
|
+
const O = a.uploadedImages.find((N, q) => q === y.value);
|
|
9251
|
+
O.current ? l("onRemoveImage", O) : (l("delete", y.value), j.value = !0, setTimeout(() => {
|
|
9245
9252
|
j.value = !1;
|
|
9246
|
-
}, 1e3)),
|
|
9253
|
+
}, 1e3)), l(
|
|
9247
9254
|
"update:uploadedImages",
|
|
9248
|
-
|
|
9255
|
+
a.uploadedImages.filter((N, q) => q !== y.value)
|
|
9249
9256
|
), v.value = !1;
|
|
9250
|
-
}, Z = ({ url:
|
|
9251
|
-
const q =
|
|
9252
|
-
q.fileUrl =
|
|
9253
|
-
}, C = (
|
|
9254
|
-
let N =
|
|
9255
|
-
Object.keys(
|
|
9256
|
-
N[q] =
|
|
9257
|
-
}),
|
|
9258
|
-
}, h = (
|
|
9259
|
-
let N =
|
|
9260
|
-
if (
|
|
9261
|
-
|
|
9257
|
+
}, Z = ({ url: O, cropper: N }) => {
|
|
9258
|
+
const q = a.uploadedImages[c.value];
|
|
9259
|
+
q.fileUrl = O, q.fileName = Date.now(), l("onEditImage", { ...q, index: c.value, cropper: N }), d.value = !1, c.value = "", m.value = {};
|
|
9260
|
+
}, C = (O) => {
|
|
9261
|
+
let N = a.uploadedImages[c.value];
|
|
9262
|
+
Object.keys(O).forEach((q) => {
|
|
9263
|
+
N[q] = O[q];
|
|
9264
|
+
}), l("update:uploadedImages", a.uploadedImages);
|
|
9265
|
+
}, h = (O) => {
|
|
9266
|
+
let N = a.uploadedImages.length + O.target.files.length > a.maxImages;
|
|
9267
|
+
if (a.maxImages && N) {
|
|
9268
|
+
l("onMaxFileExceed", N);
|
|
9262
9269
|
return;
|
|
9263
9270
|
}
|
|
9264
|
-
|
|
9271
|
+
l("change", O);
|
|
9265
9272
|
}, S = V(
|
|
9266
|
-
() =>
|
|
9267
|
-
),
|
|
9273
|
+
() => a.maxImages == null || a.maxImages && a.uploadedImages.length < a.maxImages
|
|
9274
|
+
), K = (O, N) => {
|
|
9268
9275
|
var q;
|
|
9269
|
-
c.value =
|
|
9276
|
+
c.value = O, (q = a.inputOptions) == null || q.forEach((W) => {
|
|
9270
9277
|
m.value[W] = N[W], W === "caption" && (m.value.caption_variant = N.caption_variant);
|
|
9271
|
-
}), s[
|
|
9272
|
-
}, w = (
|
|
9273
|
-
|
|
9278
|
+
}), s[O] = !1, d.value = !0, l("onOpenEditImage", N);
|
|
9279
|
+
}, w = (O) => {
|
|
9280
|
+
l("onImageError", O.fileUrl);
|
|
9274
9281
|
};
|
|
9275
|
-
return (
|
|
9282
|
+
return (O, N) => (t(), i("div", pu, [
|
|
9276
9283
|
S.value ? (t(), i("label", vu, [
|
|
9277
9284
|
n("div", gu, [
|
|
9278
9285
|
A(o(L), { name: "plus" })
|
|
@@ -9281,7 +9288,7 @@ const Jc = { class: "flex flex-col gap-y-2 w-full" }, Nc = {
|
|
|
9281
9288
|
class: "hidden",
|
|
9282
9289
|
type: "file",
|
|
9283
9290
|
accept: e.accept || "image/png, image/jpeg",
|
|
9284
|
-
multiple:
|
|
9291
|
+
multiple: a.maxImages !== 1,
|
|
9285
9292
|
disabled: e.isDisabled || j.value,
|
|
9286
9293
|
onChange: h
|
|
9287
9294
|
}, null, 40, Au)
|
|
@@ -9293,7 +9300,7 @@ const Jc = { class: "flex flex-col gap-y-2 w-full" }, Nc = {
|
|
|
9293
9300
|
filter: "filtered-el",
|
|
9294
9301
|
class: "grid w-fit grid-cols-3 gap-3",
|
|
9295
9302
|
style: me(`grid-template-columns: repeat(${e.columnsCount}, 1fr)`),
|
|
9296
|
-
"onUpdate:modelValue": N[0] || (N[0] = (q) => e.isDisabled ? null :
|
|
9303
|
+
"onUpdate:modelValue": N[0] || (N[0] = (q) => e.isDisabled ? null : O.$emit("update:uploadedImages", q))
|
|
9297
9304
|
}, {
|
|
9298
9305
|
default: I(({ list: q }) => [
|
|
9299
9306
|
(t(!0), i(Y, null, T(q, (W, B) => (t(), i("div", {
|
|
@@ -9302,7 +9309,7 @@ const Jc = { class: "flex flex-col gap-y-2 w-full" }, Nc = {
|
|
|
9302
9309
|
"border-oc-primary": e.selectedImage.fileName === W.fileName,
|
|
9303
9310
|
"col-start-2": B === 0 && S.value
|
|
9304
9311
|
}]),
|
|
9305
|
-
onClick: (H) =>
|
|
9312
|
+
onClick: (H) => O.$emit("update:selectedImage", W)
|
|
9306
9313
|
}, [
|
|
9307
9314
|
n("img", {
|
|
9308
9315
|
src: W.fileUrl,
|
|
@@ -9318,7 +9325,7 @@ const Jc = { class: "flex flex-col gap-y-2 w-full" }, Nc = {
|
|
|
9318
9325
|
class: "absolute top-2 right-2 z-[1010] hidden group-hover:flex"
|
|
9319
9326
|
}, {
|
|
9320
9327
|
menu: I(() => [
|
|
9321
|
-
k(
|
|
9328
|
+
k(O.$slots, "action", {
|
|
9322
9329
|
item: W,
|
|
9323
9330
|
removeItem: b,
|
|
9324
9331
|
fileIndex: B
|
|
@@ -9329,7 +9336,7 @@ const Jc = { class: "flex flex-col gap-y-2 w-full" }, Nc = {
|
|
|
9329
9336
|
((H = W == null ? void 0 : W.current) == null ? void 0 : H.id) !== "sample" ? (t(), i("div", {
|
|
9330
9337
|
key: 0,
|
|
9331
9338
|
class: "flex p-3 cursor-pointer items-center gap-x-3",
|
|
9332
|
-
onClick: (R) =>
|
|
9339
|
+
onClick: (R) => K(B, W)
|
|
9333
9340
|
}, [
|
|
9334
9341
|
A(o(L), {
|
|
9335
9342
|
width: "16",
|
|
@@ -9376,7 +9383,7 @@ const Jc = { class: "flex flex-col gap-y-2 w-full" }, Nc = {
|
|
|
9376
9383
|
], 2)
|
|
9377
9384
|
], 2),
|
|
9378
9385
|
e.isDisabled ? u("", !0) : (t(), i("div", wu, [
|
|
9379
|
-
|
|
9386
|
+
a.maxImages !== 1 ? (t(), i("span", Cu, [
|
|
9380
9387
|
A(o(L), {
|
|
9381
9388
|
name: "arrows",
|
|
9382
9389
|
class: "text-oc-accent-1-50"
|
|
@@ -9468,11 +9475,11 @@ const Jc = { class: "flex flex-col gap-y-2 w-full" }, Nc = {
|
|
|
9468
9475
|
"onOpenEditImage"
|
|
9469
9476
|
],
|
|
9470
9477
|
setup(e, { emit: r }) {
|
|
9471
|
-
const
|
|
9472
|
-
|
|
9473
|
-
|
|
9474
|
-
|
|
9475
|
-
|
|
9478
|
+
const a = e, l = r, s = J(), d = J(""), c = J(""), m = J(!0), f = J(!1), v = J(!1), y = J(!1), b = J(""), { currentFiles: j, onChangeFile: z, onDeleteFile: Z } = zt(
|
|
9479
|
+
a.maxSize,
|
|
9480
|
+
l,
|
|
9481
|
+
a.accept,
|
|
9482
|
+
a.validateAcceptFileType
|
|
9476
9483
|
), C = V(() => {
|
|
9477
9484
|
var W;
|
|
9478
9485
|
return URL.createObjectURL((W = j.value) == null ? void 0 : W[0].file);
|
|
@@ -9481,17 +9488,17 @@ const Jc = { class: "flex flex-col gap-y-2 w-full" }, Nc = {
|
|
|
9481
9488
|
return (W = j.value) == null ? void 0 : W[0];
|
|
9482
9489
|
});
|
|
9483
9490
|
ke(() => {
|
|
9484
|
-
if (
|
|
9491
|
+
if (a.modelValue && a.modelValue.current) {
|
|
9485
9492
|
const W = [
|
|
9486
9493
|
{
|
|
9487
|
-
current:
|
|
9494
|
+
current: a.modelValue.current,
|
|
9488
9495
|
file: null,
|
|
9489
|
-
fileName:
|
|
9496
|
+
fileName: a.modelValue.current.caption ?? "",
|
|
9490
9497
|
progress: 100,
|
|
9491
|
-
fileUrl:
|
|
9492
|
-
totalSize:
|
|
9498
|
+
fileUrl: a.modelValue.current.path,
|
|
9499
|
+
totalSize: a.modelValue.current.file_size ?? 0,
|
|
9493
9500
|
isLoaded: !0,
|
|
9494
|
-
extension:
|
|
9501
|
+
extension: a.modelValue.current.extension ?? "png"
|
|
9495
9502
|
}
|
|
9496
9503
|
];
|
|
9497
9504
|
j.value = W;
|
|
@@ -9500,12 +9507,12 @@ const Jc = { class: "flex flex-col gap-y-2 w-full" }, Nc = {
|
|
|
9500
9507
|
const S = (W) => {
|
|
9501
9508
|
W.preventDefault();
|
|
9502
9509
|
const B = W.dataTransfer.files;
|
|
9503
|
-
z({ target: { files: B } },
|
|
9504
|
-
},
|
|
9505
|
-
!d.value || !c.value ||
|
|
9510
|
+
z({ target: { files: B } }, a.format === "object");
|
|
9511
|
+
}, K = () => {
|
|
9512
|
+
!d.value || !c.value || l("update:modelValue", { fileName: c, fileLink: d });
|
|
9506
9513
|
}, w = (W) => {
|
|
9507
|
-
h.value.fileUrl = W, h.value.fileName = Date.now(), y.value = !1, b.value = "",
|
|
9508
|
-
},
|
|
9514
|
+
h.value.fileUrl = W, h.value.fileName = Date.now(), y.value = !1, b.value = "", l("update:modelValue", a.format === "object" ? h.value : [h.value]);
|
|
9515
|
+
}, O = async (W) => {
|
|
9509
9516
|
if (W)
|
|
9510
9517
|
try {
|
|
9511
9518
|
const B = await fetch(W, { method: "HEAD" });
|
|
@@ -9516,7 +9523,7 @@ const Jc = { class: "flex flex-col gap-y-2 w-full" }, Nc = {
|
|
|
9516
9523
|
}, N = () => {
|
|
9517
9524
|
b.value = h.value.fileUrl, v.value = !1, y.value = !0;
|
|
9518
9525
|
}, q = (W) => {
|
|
9519
|
-
|
|
9526
|
+
l("update:modelValue", W);
|
|
9520
9527
|
};
|
|
9521
9528
|
return (W, B) => (t(), g(o(Ie), {
|
|
9522
9529
|
label: e.label,
|
|
@@ -9537,7 +9544,7 @@ const Jc = { class: "flex flex-col gap-y-2 w-full" }, Nc = {
|
|
|
9537
9544
|
"image-classes": e.imageClasses,
|
|
9538
9545
|
"show-upload-image-area": e.showUploadImageArea,
|
|
9539
9546
|
"onUpdate:uploadedImage": q,
|
|
9540
|
-
onChange: B[0] || (B[0] = (ee) => o(z)(ee,
|
|
9547
|
+
onChange: B[0] || (B[0] = (ee) => o(z)(ee, a.format === "object")),
|
|
9541
9548
|
onDelete: B[1] || (B[1] = (ee) => o(Z)(0)),
|
|
9542
9549
|
onOnOpenEditImage: B[2] || (B[2] = (ee) => W.$emit("onOpenEditImage", ee))
|
|
9543
9550
|
}, null, 8, ["accept", "uploaded-image", "image-classes", "show-upload-image-area"])) : e.isButtonOnly ? (t(), i(Y, { key: 1 }, [
|
|
@@ -9553,7 +9560,7 @@ const Jc = { class: "flex flex-col gap-y-2 w-full" }, Nc = {
|
|
|
9553
9560
|
class: "hidden",
|
|
9554
9561
|
type: "file",
|
|
9555
9562
|
accept: e.accept,
|
|
9556
|
-
onChange: B[4] || (B[4] = (ee) => o(z)(ee,
|
|
9563
|
+
onChange: B[4] || (B[4] = (ee) => o(z)(ee, a.format === "object"))
|
|
9557
9564
|
}, null, 40, Iu)
|
|
9558
9565
|
], 64)) : (t(), i(Y, { key: 2 }, [
|
|
9559
9566
|
o(j).length ? (t(), i("div", {
|
|
@@ -9675,7 +9682,7 @@ const Jc = { class: "flex flex-col gap-y-2 w-full" }, Nc = {
|
|
|
9675
9682
|
"onUpdate:modelValue": B[5] || (B[5] = (ee) => d.value = ee),
|
|
9676
9683
|
"error-message": d.value && !m.value ? "Invalid link" : "",
|
|
9677
9684
|
placeholder: "https://website.com",
|
|
9678
|
-
onBlur: B[6] || (B[6] = (ee) =>
|
|
9685
|
+
onBlur: B[6] || (B[6] = (ee) => O(d.value))
|
|
9679
9686
|
}, null, 8, ["modelValue", "error-message"]),
|
|
9680
9687
|
A(o(Se), {
|
|
9681
9688
|
modelValue: c.value,
|
|
@@ -9686,7 +9693,7 @@ const Jc = { class: "flex flex-col gap-y-2 w-full" }, Nc = {
|
|
|
9686
9693
|
class: "flex-shrink-0",
|
|
9687
9694
|
label: "OK",
|
|
9688
9695
|
disabled: "",
|
|
9689
|
-
onClick:
|
|
9696
|
+
onClick: K
|
|
9690
9697
|
})
|
|
9691
9698
|
], 64)) : u("", !0),
|
|
9692
9699
|
n("div", {
|
|
@@ -9718,7 +9725,7 @@ const Jc = { class: "flex flex-col gap-y-2 w-full" }, Nc = {
|
|
|
9718
9725
|
class: "hidden",
|
|
9719
9726
|
type: "file",
|
|
9720
9727
|
accept: e.accept,
|
|
9721
|
-
onChange: B[12] || (B[12] = (ee) => o(z)(ee,
|
|
9728
|
+
onChange: B[12] || (B[12] = (ee) => o(z)(ee, a.format === "object"))
|
|
9722
9729
|
}, null, 40, zu)
|
|
9723
9730
|
])
|
|
9724
9731
|
]))
|
|
@@ -9785,15 +9792,15 @@ const Jc = { class: "flex flex-col gap-y-2 w-full" }, Nc = {
|
|
|
9785
9792
|
"onImageError"
|
|
9786
9793
|
],
|
|
9787
9794
|
setup(e, { emit: r }) {
|
|
9788
|
-
const
|
|
9789
|
-
|
|
9790
|
-
|
|
9791
|
-
|
|
9792
|
-
|
|
9795
|
+
const a = r, l = e, s = J(), d = J(!1), c = J(!1), { isErrorMaxSize: m, currentFiles: f, onChangeFile: v, onDeleteFile: y } = zt(
|
|
9796
|
+
l.maxSize,
|
|
9797
|
+
a,
|
|
9798
|
+
l.accept,
|
|
9799
|
+
l.validateAcceptFileType
|
|
9793
9800
|
);
|
|
9794
9801
|
ke(() => {
|
|
9795
9802
|
const Z = [];
|
|
9796
|
-
|
|
9803
|
+
l.modelValue.length > 0 && (l.modelValue.forEach((C) => {
|
|
9797
9804
|
C.current && Z.push({
|
|
9798
9805
|
current: C.current,
|
|
9799
9806
|
file: null,
|
|
@@ -9918,7 +9925,7 @@ const Jc = { class: "flex flex-col gap-y-2 w-full" }, Nc = {
|
|
|
9918
9925
|
"on-enable-delete": h.progress === 100 && c.value,
|
|
9919
9926
|
"opacity-100": !c.value
|
|
9920
9927
|
}]),
|
|
9921
|
-
onClick: (
|
|
9928
|
+
onClick: (K) => j(S)
|
|
9922
9929
|
}, null, 8, ["class", "onClick"]))
|
|
9923
9930
|
]))), 128))
|
|
9924
9931
|
]),
|
|
@@ -9945,9 +9952,9 @@ const Jc = { class: "flex flex-col gap-y-2 w-full" }, Nc = {
|
|
|
9945
9952
|
onDrop: C[9] || (C[9] = (h) => d.value = !1),
|
|
9946
9953
|
onChange: b
|
|
9947
9954
|
}, null, 40, Xu)),
|
|
9948
|
-
o(f).length ? e.isDisabled ? u("", !0) : (t(), i("div", em, C[11] || (C[11] = [
|
|
9955
|
+
o(f).length ? e.isDisabled ? u("", !0) : (t(), i("div", em, [...C[11] || (C[11] = [
|
|
9949
9956
|
n("span", { class: "text-oc-accent-1 text-sm" }, "+ Add more", -1)
|
|
9950
|
-
]))) : (t(), i("div", Fu, [
|
|
9957
|
+
])])) : (t(), i("div", Fu, [
|
|
9951
9958
|
A(o(L), {
|
|
9952
9959
|
name: "upload",
|
|
9953
9960
|
class: p(e.isDisabled ? "text-oc-accent-1-200" : "text-oc-accent-1")
|
|
@@ -9987,8 +9994,8 @@ const Jc = { class: "flex flex-col gap-y-2 w-full" }, Nc = {
|
|
|
9987
9994
|
},
|
|
9988
9995
|
emits: ["update:modelValue"],
|
|
9989
9996
|
setup(e, { emit: r }) {
|
|
9990
|
-
const
|
|
9991
|
-
Number(
|
|
9997
|
+
const a = e, l = r, s = () => l("update:modelValue", Number(a.modelValue) + 1), d = () => {
|
|
9998
|
+
Number(a.modelValue) > a.minValue && l("update:modelValue", Number(a.modelValue) - 1);
|
|
9992
9999
|
}, c = (m) => {
|
|
9993
10000
|
m.key >= "0" && m.key <= "9" || m.key === "Backspace" || m.preventDefault();
|
|
9994
10001
|
};
|
|
@@ -10072,19 +10079,19 @@ const Jc = { class: "flex flex-col gap-y-2 w-full" }, Nc = {
|
|
|
10072
10079
|
"update:modelValue": [],
|
|
10073
10080
|
scroll: []
|
|
10074
10081
|
},
|
|
10075
|
-
setup(e, { expose: r, emit:
|
|
10076
|
-
const
|
|
10082
|
+
setup(e, { expose: r, emit: a }) {
|
|
10083
|
+
const l = a, s = e, d = J(), c = J(), m = async (z) => {
|
|
10077
10084
|
z != null && z.target && (s.isDisabled || setTimeout(() => {
|
|
10078
10085
|
var Z, C;
|
|
10079
|
-
(C = (Z = d.value) == null ? void 0 : Z.popperInstance) == null || C.update(),
|
|
10086
|
+
(C = (Z = d.value) == null ? void 0 : Z.popperInstance) == null || C.update(), l("update:modelValue", !s.modelValue);
|
|
10080
10087
|
}, 30));
|
|
10081
10088
|
}, f = (z) => {
|
|
10082
|
-
s.isAttachToBody && !s.preventClickOutside && d.value.checkElementIsInsidePopper(z.target) || s.modelValue && !s.preventClickOutside &&
|
|
10089
|
+
s.isAttachToBody && !s.preventClickOutside && d.value.checkElementIsInsidePopper(z.target) || s.modelValue && !s.preventClickOutside && l("update:modelValue", !1);
|
|
10083
10090
|
}, v = J(), y = J(0);
|
|
10084
10091
|
fe(() => s.modelValue, async () => {
|
|
10085
|
-
var w,
|
|
10086
|
-
const z = window.innerHeight || document.documentElement.clientHeight, Z = v.value.getBoundingClientRect().top, C = z - v.value.getBoundingClientRect().bottom, h = Math.max(Z, C),
|
|
10087
|
-
y.value =
|
|
10092
|
+
var w, O;
|
|
10093
|
+
const z = window.innerHeight || document.documentElement.clientHeight, Z = v.value.getBoundingClientRect().top, C = z - v.value.getBoundingClientRect().bottom, h = Math.max(Z, C), K = h - (2 + (h === Z ? 2.5 : 0)) * 16;
|
|
10094
|
+
y.value = K > 0 ? K : 0, (O = (w = d.value) == null ? void 0 : w.popperInstance) == null || O.update();
|
|
10088
10095
|
}), r({
|
|
10089
10096
|
dropdownScroll: c,
|
|
10090
10097
|
toggleDropdown: m,
|
|
@@ -10179,7 +10186,7 @@ const Jc = { class: "flex flex-col gap-y-2 w-full" }, Nc = {
|
|
|
10179
10186
|
default: "text-oc-text",
|
|
10180
10187
|
destructive: "text-oc-error"
|
|
10181
10188
|
}));
|
|
10182
|
-
return (
|
|
10189
|
+
return (a, l) => (t(), i("div", {
|
|
10183
10190
|
class: p(["flex flex-col cursor-pointer rounded-sm hover:bg-oc-accent-1-50", r.value[e.variant]])
|
|
10184
10191
|
}, [
|
|
10185
10192
|
n("div", im, [
|
|
@@ -10190,7 +10197,7 @@ const Jc = { class: "flex flex-col gap-y-2 w-full" }, Nc = {
|
|
|
10190
10197
|
name: e.icon
|
|
10191
10198
|
}, e.iconProps, { class: e.iconClasses }), null, 16, ["name", "class"])) : u("", !0),
|
|
10192
10199
|
n("span", null, x(e.text), 1),
|
|
10193
|
-
k(
|
|
10200
|
+
k(a.$slots, "badge")
|
|
10194
10201
|
]),
|
|
10195
10202
|
e.isBeta ? (t(), i("div", sm, " BETA ")) : e.isNew ? (t(), i("div", rm, " NEW ")) : e.isTryIt ? (t(), i("div", dm, " TRY IT ")) : u("", !0)
|
|
10196
10203
|
]),
|
|
@@ -10257,27 +10264,27 @@ const Jc = { class: "flex flex-col gap-y-2 w-full" }, Nc = {
|
|
|
10257
10264
|
}
|
|
10258
10265
|
},
|
|
10259
10266
|
setup(e) {
|
|
10260
|
-
const r = e,
|
|
10267
|
+
const r = e, a = J(!1), l = J(), s = J(), d = J(), c = () => {
|
|
10261
10268
|
var v, y;
|
|
10262
|
-
|
|
10263
|
-
}, m = () =>
|
|
10269
|
+
a.value = !0, (y = (v = d.value) == null ? void 0 : v.popperInstance) == null || y.update(), r.hideAfter && setTimeout(() => m(), r.hideAfter);
|
|
10270
|
+
}, m = () => a.value = !1;
|
|
10264
10271
|
ke(() => {
|
|
10265
10272
|
if (r.trigger === "hover") {
|
|
10266
10273
|
const v = ["mouseenter", "focus"], y = ["mouseleave", "blur"];
|
|
10267
10274
|
v.forEach((b) => {
|
|
10268
|
-
|
|
10275
|
+
l.value.addEventListener(b, c);
|
|
10269
10276
|
}), y.forEach((b) => {
|
|
10270
|
-
|
|
10277
|
+
l.value.addEventListener(b, m);
|
|
10271
10278
|
}), r.isPopover && (v.forEach((b) => {
|
|
10272
10279
|
s.value.addEventListener(b, c);
|
|
10273
10280
|
}), y.forEach((b) => {
|
|
10274
10281
|
s.value.addEventListener(b, m);
|
|
10275
10282
|
}));
|
|
10276
10283
|
} else
|
|
10277
|
-
|
|
10284
|
+
l.value.addEventListener("click", () => a.value ? m() : c());
|
|
10278
10285
|
});
|
|
10279
10286
|
const f = () => {
|
|
10280
|
-
|
|
10287
|
+
a.value && m();
|
|
10281
10288
|
};
|
|
10282
10289
|
return (v, y) => We((t(), i("span", um, [
|
|
10283
10290
|
A(o(Ot), {
|
|
@@ -10307,7 +10314,7 @@ const Jc = { class: "flex flex-col gap-y-2 w-full" }, Nc = {
|
|
|
10307
10314
|
"data-popper-arrow": ""
|
|
10308
10315
|
}, null, 2))
|
|
10309
10316
|
], 2), [
|
|
10310
|
-
[De,
|
|
10317
|
+
[De, a.value]
|
|
10311
10318
|
])
|
|
10312
10319
|
]),
|
|
10313
10320
|
_: 3
|
|
@@ -10316,7 +10323,7 @@ const Jc = { class: "flex flex-col gap-y-2 w-full" }, Nc = {
|
|
|
10316
10323
|
default: I(() => [
|
|
10317
10324
|
n("div", {
|
|
10318
10325
|
ref_key: "triggerEl",
|
|
10319
|
-
ref:
|
|
10326
|
+
ref: l,
|
|
10320
10327
|
class: "w-[inherit] relative"
|
|
10321
10328
|
}, [
|
|
10322
10329
|
k(v.$slots, "default", {}, void 0, !0)
|
|
@@ -10407,12 +10414,12 @@ const Jc = { class: "flex flex-col gap-y-2 w-full" }, Nc = {
|
|
|
10407
10414
|
"content-scroll"
|
|
10408
10415
|
],
|
|
10409
10416
|
setup(e, { emit: r }) {
|
|
10410
|
-
const
|
|
10411
|
-
|
|
10417
|
+
const a = e, l = r, s = () => {
|
|
10418
|
+
a.preventClose || l("update:modelValue", !1);
|
|
10412
10419
|
}, d = async () => {
|
|
10413
|
-
|
|
10420
|
+
l("click:outside"), !a.persistent && a.modelValue && s();
|
|
10414
10421
|
}, c = () => {
|
|
10415
|
-
|
|
10422
|
+
l("cancel"), s();
|
|
10416
10423
|
}, m = V(() => ({
|
|
10417
10424
|
default: "max-w-[640px]",
|
|
10418
10425
|
medium: "max-w-[480px]",
|
|
@@ -10422,7 +10429,7 @@ const Jc = { class: "flex flex-col gap-y-2 w-full" }, Nc = {
|
|
|
10422
10429
|
(b = f.value) == null || b.click();
|
|
10423
10430
|
};
|
|
10424
10431
|
return fe(
|
|
10425
|
-
() =>
|
|
10432
|
+
() => a.modelValue,
|
|
10426
10433
|
() => {
|
|
10427
10434
|
setTimeout(() => {
|
|
10428
10435
|
var y;
|
|
@@ -10469,7 +10476,7 @@ const Jc = { class: "flex flex-col gap-y-2 w-full" }, Nc = {
|
|
|
10469
10476
|
ref_key: "scrollArea",
|
|
10470
10477
|
ref: f,
|
|
10471
10478
|
class: p(["overflow-y-auto", [e.size === "small" ? "p-5" : "p-7", e.isBorderless ? "py-0" : ""]]),
|
|
10472
|
-
onScroll: b[1] || (b[1] = (j) =>
|
|
10479
|
+
onScroll: b[1] || (b[1] = (j) => l("content-scroll", j))
|
|
10473
10480
|
}, [
|
|
10474
10481
|
k(y.$slots, "default")
|
|
10475
10482
|
], 42, Am),
|
|
@@ -10532,17 +10539,17 @@ const Jc = { class: "flex flex-col gap-y-2 w-full" }, Nc = {
|
|
|
10532
10539
|
},
|
|
10533
10540
|
emits: ["update:modelValue", "back", "click:outside"],
|
|
10534
10541
|
setup(e, { emit: r }) {
|
|
10535
|
-
const
|
|
10536
|
-
return (
|
|
10542
|
+
const a = r;
|
|
10543
|
+
return (l, s) => e.modelValue ? (t(), i("div", ym, [
|
|
10537
10544
|
n("div", bm, [
|
|
10538
|
-
k(
|
|
10545
|
+
k(l.$slots, "top"),
|
|
10539
10546
|
n("div", {
|
|
10540
10547
|
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])
|
|
10541
10548
|
}, [
|
|
10542
10549
|
e.isBackButtonVisible ? (t(), i("div", {
|
|
10543
10550
|
key: 0,
|
|
10544
10551
|
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",
|
|
10545
|
-
onClick: s[0] || (s[0] = (d) =>
|
|
10552
|
+
onClick: s[0] || (s[0] = (d) => a("back"))
|
|
10546
10553
|
}, [
|
|
10547
10554
|
A(o(U), {
|
|
10548
10555
|
variant: "secondary",
|
|
@@ -10553,7 +10560,7 @@ const Jc = { class: "flex flex-col gap-y-2 w-full" }, Nc = {
|
|
|
10553
10560
|
])) : u("", !0),
|
|
10554
10561
|
n("div", {
|
|
10555
10562
|
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",
|
|
10556
|
-
onClick: s[1] || (s[1] = (d) =>
|
|
10563
|
+
onClick: s[1] || (s[1] = (d) => a("update:model-value", !1))
|
|
10557
10564
|
}, [
|
|
10558
10565
|
A(o(L), {
|
|
10559
10566
|
name: "x",
|
|
@@ -10563,7 +10570,7 @@ const Jc = { class: "flex flex-col gap-y-2 w-full" }, Nc = {
|
|
|
10563
10570
|
s[2] || (s[2] = n("span", null, "Close", -1))
|
|
10564
10571
|
]),
|
|
10565
10572
|
n("div", xm, [
|
|
10566
|
-
k(
|
|
10573
|
+
k(l.$slots, "default")
|
|
10567
10574
|
])
|
|
10568
10575
|
], 2)
|
|
10569
10576
|
])
|
|
@@ -10591,25 +10598,25 @@ const Jc = { class: "flex flex-col gap-y-2 w-full" }, Nc = {
|
|
|
10591
10598
|
warning: "alert",
|
|
10592
10599
|
success: "check-2",
|
|
10593
10600
|
question: "question-mark"
|
|
10594
|
-
},
|
|
10601
|
+
}, a = {
|
|
10595
10602
|
delete: "text-oc-error bg-oc-error-50-tr",
|
|
10596
10603
|
warning: "text-oc-warning-600 bg-oc-warning-50-tr",
|
|
10597
10604
|
success: "text-oc-success bg-oc-success-50-tr",
|
|
10598
10605
|
question: "text-oc-accent-1 bg-oc-accent-1-50-tr"
|
|
10599
10606
|
};
|
|
10600
|
-
return (
|
|
10607
|
+
return (l, s) => (t(), i("div", {
|
|
10601
10608
|
class: p(["flex flex-col gap-y-4 items-center", e.contentClass])
|
|
10602
10609
|
}, [
|
|
10603
10610
|
e.hideIcon ? u("", !0) : (t(), i("div", {
|
|
10604
10611
|
key: 0,
|
|
10605
|
-
class: p(["w-[48px] aspect-square rounded-full flex items-center justify-center", [
|
|
10612
|
+
class: p(["w-[48px] aspect-square rounded-full flex items-center justify-center", [a[e.variant], e.iconClass]])
|
|
10606
10613
|
}, [
|
|
10607
10614
|
A(o(L), {
|
|
10608
10615
|
name: e.icon ?? r[e.variant]
|
|
10609
10616
|
}, null, 8, ["name"])
|
|
10610
10617
|
], 2)),
|
|
10611
10618
|
n("div", km, [
|
|
10612
|
-
k(
|
|
10619
|
+
k(l.$slots, "description", {}, () => [
|
|
10613
10620
|
n("span", { innerHTML: e.description }, null, 8, wm)
|
|
10614
10621
|
])
|
|
10615
10622
|
])
|
|
@@ -10658,7 +10665,7 @@ const Jc = { class: "flex flex-col gap-y-2 w-full" }, Nc = {
|
|
|
10658
10665
|
},
|
|
10659
10666
|
emits: ["confirm", "cancel", "update:model-value"],
|
|
10660
10667
|
setup(e, { emit: r }) {
|
|
10661
|
-
const
|
|
10668
|
+
const a = e, l = r, s = V(() => ({
|
|
10662
10669
|
delete: {},
|
|
10663
10670
|
warning: {},
|
|
10664
10671
|
success: {
|
|
@@ -10671,22 +10678,22 @@ const Jc = { class: "flex flex-col gap-y-2 w-full" }, Nc = {
|
|
|
10671
10678
|
delete: {
|
|
10672
10679
|
label: "Delete",
|
|
10673
10680
|
variant: "destructive",
|
|
10674
|
-
isLoading:
|
|
10681
|
+
isLoading: a.isLoading ?? !1
|
|
10675
10682
|
},
|
|
10676
10683
|
warning: {
|
|
10677
10684
|
label: "Delete",
|
|
10678
10685
|
variant: "destructive",
|
|
10679
|
-
isLoading:
|
|
10686
|
+
isLoading: a.isLoading ?? !1
|
|
10680
10687
|
},
|
|
10681
10688
|
success: {
|
|
10682
|
-
isLoading:
|
|
10689
|
+
isLoading: a.isLoading ?? !1
|
|
10683
10690
|
},
|
|
10684
10691
|
question: {
|
|
10685
10692
|
label: "Yes",
|
|
10686
|
-
isLoading:
|
|
10693
|
+
isLoading: a.isLoading ?? !1
|
|
10687
10694
|
}
|
|
10688
10695
|
})), c = (m) => {
|
|
10689
|
-
|
|
10696
|
+
l("update:model-value", m), l("cancel");
|
|
10690
10697
|
};
|
|
10691
10698
|
return (m, f) => (t(), g(o(hm), {
|
|
10692
10699
|
size: "small",
|
|
@@ -10772,13 +10779,13 @@ const Jc = { class: "flex flex-col gap-y-2 w-full" }, Nc = {
|
|
|
10772
10779
|
const r = {
|
|
10773
10780
|
arrowHidden: !0
|
|
10774
10781
|
};
|
|
10775
|
-
return (
|
|
10782
|
+
return (a, l) => (t(), i("div", Im, [
|
|
10776
10783
|
A(o(ve), {
|
|
10777
10784
|
"model-value": e.modelValue,
|
|
10778
10785
|
"popper-options": r,
|
|
10779
10786
|
placement: "top-end",
|
|
10780
10787
|
distance: 8,
|
|
10781
|
-
"onUpdate:modelValue":
|
|
10788
|
+
"onUpdate:modelValue": l[0] || (l[0] = (s) => a.$emit("update:modelValue", s))
|
|
10782
10789
|
}, {
|
|
10783
10790
|
menu: I(() => [
|
|
10784
10791
|
n("div", zm, [
|
|
@@ -10791,7 +10798,7 @@ const Jc = { class: "flex flex-col gap-y-2 w-full" }, Nc = {
|
|
|
10791
10798
|
class: "text-sm"
|
|
10792
10799
|
}, { ref_for: !0 }, c), {
|
|
10793
10800
|
badge: I(() => [
|
|
10794
|
-
k(
|
|
10801
|
+
k(a.$slots, "badge", { item: c }),
|
|
10795
10802
|
c.isLoading ? (t(), g(o(L), {
|
|
10796
10803
|
key: 0,
|
|
10797
10804
|
width: "16",
|
|
@@ -10803,13 +10810,13 @@ const Jc = { class: "flex flex-col gap-y-2 w-full" }, Nc = {
|
|
|
10803
10810
|
_: 2
|
|
10804
10811
|
}, 1040))), 128))
|
|
10805
10812
|
], 64))), 128)),
|
|
10806
|
-
|
|
10813
|
+
l[2] || (l[2] = n("div", { class: "w-full border-t border-gray-200" }, null, -1)),
|
|
10807
10814
|
(t(!0), i(Y, null, T(e.bottomMenu, (s, d) => (t(), g(o(Ke), G({
|
|
10808
10815
|
key: d,
|
|
10809
10816
|
class: "text-sm"
|
|
10810
10817
|
}, { ref_for: !0 }, s), {
|
|
10811
10818
|
badge: I(() => [
|
|
10812
|
-
k(
|
|
10819
|
+
k(a.$slots, "badge", { item: s }),
|
|
10813
10820
|
s.isLoading ? (t(), g(o(L), {
|
|
10814
10821
|
key: 0,
|
|
10815
10822
|
width: "16",
|
|
@@ -10824,9 +10831,9 @@ const Jc = { class: "flex flex-col gap-y-2 w-full" }, Nc = {
|
|
|
10824
10831
|
]),
|
|
10825
10832
|
default: I(() => [
|
|
10826
10833
|
n("div", Zm, [
|
|
10827
|
-
e.isPointed ? (t(), i("div", Om,
|
|
10834
|
+
e.isPointed ? (t(), i("div", Om, [...l[1] || (l[1] = [
|
|
10828
10835
|
n("div", { class: "w-[6px] aspect-square rounded-full bg-oc-error" }, null, -1)
|
|
10829
|
-
]))) : u("", !0),
|
|
10836
|
+
])])) : u("", !0),
|
|
10830
10837
|
n("div", Km, [
|
|
10831
10838
|
A(o(L), {
|
|
10832
10839
|
name: "question",
|
|
@@ -10851,18 +10858,18 @@ const Jc = { class: "flex flex-col gap-y-2 w-full" }, Nc = {
|
|
|
10851
10858
|
tooltipOptions: Object
|
|
10852
10859
|
},
|
|
10853
10860
|
setup(e) {
|
|
10854
|
-
const r = async (
|
|
10861
|
+
const r = async (a) => {
|
|
10855
10862
|
try {
|
|
10856
|
-
|
|
10863
|
+
a instanceof Blob ? await navigator.clipboard.write([
|
|
10857
10864
|
new ClipboardItem({
|
|
10858
|
-
[
|
|
10865
|
+
[a.type]: a
|
|
10859
10866
|
})
|
|
10860
|
-
]) : await navigator.clipboard.writeText(
|
|
10861
|
-
} catch (
|
|
10862
|
-
console.error("Unable to copy text to clipboard. Error: ",
|
|
10867
|
+
]) : await navigator.clipboard.writeText(a);
|
|
10868
|
+
} catch (l) {
|
|
10869
|
+
console.error("Unable to copy text to clipboard. Error: ", l);
|
|
10863
10870
|
}
|
|
10864
10871
|
};
|
|
10865
|
-
return (
|
|
10872
|
+
return (a, l) => (t(), g(o(se), G({
|
|
10866
10873
|
position: "top",
|
|
10867
10874
|
"hide-after": 1500,
|
|
10868
10875
|
"arrow-hidden": "",
|
|
@@ -10874,9 +10881,9 @@ const Jc = { class: "flex flex-col gap-y-2 w-full" }, Nc = {
|
|
|
10874
10881
|
]),
|
|
10875
10882
|
default: I(({ isShow: s }) => [
|
|
10876
10883
|
n("div", {
|
|
10877
|
-
onClick:
|
|
10884
|
+
onClick: l[0] || (l[0] = (d) => r(e.value))
|
|
10878
10885
|
}, [
|
|
10879
|
-
k(
|
|
10886
|
+
k(a.$slots, "default", { isShow: s }, () => [
|
|
10880
10887
|
A(o(L), {
|
|
10881
10888
|
width: "14",
|
|
10882
10889
|
height: "14",
|
|
@@ -10905,8 +10912,8 @@ const Jc = { class: "flex flex-col gap-y-2 w-full" }, Nc = {
|
|
|
10905
10912
|
description: String
|
|
10906
10913
|
},
|
|
10907
10914
|
setup(e) {
|
|
10908
|
-
return (r,
|
|
10909
|
-
|
|
10915
|
+
return (r, a) => (t(), i("div", Jm, [
|
|
10916
|
+
a[0] || (a[0] = n("div", { class: "absolute w-full h-full top-0 left-0 bg-oc-gray-50 opacity-80" }, null, -1)),
|
|
10910
10917
|
n("div", Nm, [
|
|
10911
10918
|
n("div", Wm, [
|
|
10912
10919
|
k(r.$slots, "logo", {}, () => [
|
|
@@ -10977,8 +10984,8 @@ const Jc = { class: "flex flex-col gap-y-2 w-full" }, Nc = {
|
|
|
10977
10984
|
},
|
|
10978
10985
|
emits: ["onUpdate"],
|
|
10979
10986
|
setup(e, { emit: r }) {
|
|
10980
|
-
const
|
|
10981
|
-
|
|
10987
|
+
const a = e, l = r, s = (w, O) => {
|
|
10988
|
+
l("onUpdate", w, O);
|
|
10982
10989
|
}, d = {
|
|
10983
10990
|
CardInput: Mr,
|
|
10984
10991
|
CheckboxesGroup: Tr,
|
|
@@ -10999,39 +11006,39 @@ const Jc = { class: "flex flex-col gap-y-2 w-full" }, Nc = {
|
|
|
10999
11006
|
SelectOptions: su
|
|
11000
11007
|
}, c = (w) => d[w] ? d[w] : null, m = V(() => {
|
|
11001
11008
|
const w = (N) => N.split(`
|
|
11002
|
-
`).map((q) => q.trim()).filter(Boolean).map((q) => `"${q}"`).join(" "),
|
|
11003
|
-
return Object.entries(
|
|
11009
|
+
`).map((q) => q.trim()).filter(Boolean).map((q) => `"${q}"`).join(" "), O = {};
|
|
11010
|
+
return Object.entries(a.grid).forEach(([N, q]) => {
|
|
11004
11011
|
Object.entries(q).forEach(([W, B]) => {
|
|
11005
|
-
|
|
11012
|
+
O[`--grid-${N}-${W}`] = W === "area" ? w(B) : B;
|
|
11006
11013
|
});
|
|
11007
|
-
}),
|
|
11008
|
-
}), f = (w) => typeof w == "object" ? w[0].key : w, v = (w) => `grid-area: ${f(w)}`, y = V(() =>
|
|
11009
|
-
|
|
11014
|
+
}), O;
|
|
11015
|
+
}), f = (w) => typeof w == "object" ? w[0].key : w, v = (w) => `grid-area: ${f(w)}`, y = V(() => a.class), b = J({}), j = J({}), z = J({}), Z = (w) => typeof w == "object" ? w[0].key : w, C = (w) => {
|
|
11016
|
+
a.jsonForm.forEach((O) => {
|
|
11010
11017
|
var N;
|
|
11011
|
-
if (typeof
|
|
11018
|
+
if (typeof O.name == "object") {
|
|
11012
11019
|
let q = null;
|
|
11013
|
-
|
|
11020
|
+
O.name.forEach((W) => {
|
|
11014
11021
|
w[W.key] && (q ? q.push(w[W.key]) : q = [w[W.key]]);
|
|
11015
|
-
}), b.value[Z(
|
|
11022
|
+
}), b.value[Z(O.name)] = q, K(O);
|
|
11016
11023
|
} else
|
|
11017
|
-
(N =
|
|
11024
|
+
(N = O.props) != null && N.parentKey ? (b.value[O.props.parentKey] = w[O.props.parentKey] ?? {}, b.value[O.props.parentKey][O.name] = w[O.props.parentKey][O.name] ?? "") : b.value[O.name] = w[O.name] ?? "", K(O);
|
|
11018
11025
|
});
|
|
11019
11026
|
}, h = () => {
|
|
11020
|
-
|
|
11027
|
+
a.jsonForm.forEach((w) => {
|
|
11021
11028
|
if (typeof w.name == "object") {
|
|
11022
|
-
let
|
|
11029
|
+
let O = [];
|
|
11023
11030
|
w.name.forEach((N) => {
|
|
11024
|
-
|
|
11025
|
-
}), j.value[Z(w.name)] =
|
|
11031
|
+
a.errors[N.key] && O.push(a.errors[N.key]);
|
|
11032
|
+
}), j.value[Z(w.name)] = O.join(",");
|
|
11026
11033
|
} else
|
|
11027
|
-
j.value[w.name] =
|
|
11034
|
+
j.value[w.name] = a.errors[w.name] ?? "";
|
|
11028
11035
|
});
|
|
11029
11036
|
}, S = V(() => ({
|
|
11030
|
-
...
|
|
11037
|
+
...a.logicValues,
|
|
11031
11038
|
...b.value
|
|
11032
|
-
})),
|
|
11039
|
+
})), K = (w) => {
|
|
11033
11040
|
if (w.show_if || w.show_if_preview) {
|
|
11034
|
-
let
|
|
11041
|
+
let O = w.class ? w.class : "";
|
|
11035
11042
|
if (w.show_if)
|
|
11036
11043
|
if (w.show_if_value !== void 0)
|
|
11037
11044
|
if (Array.isArray(w.show_if_value)) {
|
|
@@ -11039,16 +11046,16 @@ const Jc = { class: "flex flex-col gap-y-2 w-full" }, Nc = {
|
|
|
11039
11046
|
w.show_if.forEach((q, W) => {
|
|
11040
11047
|
var B;
|
|
11041
11048
|
w.show_if_value[W] === "arrayExist" ? (B = S.value[w.show_if[W]]) != null && B.length && (N = N + 1) : w.show_if_value[W] === S.value[w.show_if[W]] && (N = N + 1);
|
|
11042
|
-
}), (w.show_if_one && N < 1 || !w.show_if_one && N < w.show_if.length) && (
|
|
11043
|
-
} else w.show_if_value !== S.value[w.show_if] && (
|
|
11044
|
-
else w.show_if_not !== void 0 ? w.show_if_not === S.value[w.show_if] && (
|
|
11045
|
-
else w.show_if_preview && (w.show_if_preview_only !== void 0 ? w.show_if_preview_only !==
|
|
11046
|
-
typeof w.name == "object" ? z.value[Z(w.name)] =
|
|
11049
|
+
}), (w.show_if_one && N < 1 || !w.show_if_one && N < w.show_if.length) && (O = O + " hidden");
|
|
11050
|
+
} else w.show_if_value !== S.value[w.show_if] && (O = O + " hidden");
|
|
11051
|
+
else w.show_if_not !== void 0 ? w.show_if_not === S.value[w.show_if] && (O = O + " hidden") : w.show_if_min !== void 0 && (isNaN(parseInt(S.value[w.show_if])) ? 1 : parseInt(S.value[w.show_if])) < parseInt(w.show_if_min) && (O = O + " hidden");
|
|
11052
|
+
else w.show_if_preview && (w.show_if_preview_only !== void 0 ? w.show_if_preview_only !== a.previewMode && (O = O + " hidden") : w.show_if_preview_not !== void 0 && w.show_if_preview_not === a.previewMode && (O = O + " hidden"));
|
|
11053
|
+
typeof w.name == "object" ? z.value[Z(w.name)] = O : z.value[w.name] = O;
|
|
11047
11054
|
} else
|
|
11048
11055
|
z.value[w.name] = w.class ? w.class : "";
|
|
11049
11056
|
};
|
|
11050
11057
|
return fe(
|
|
11051
|
-
() =>
|
|
11058
|
+
() => a.values,
|
|
11052
11059
|
(w) => {
|
|
11053
11060
|
C(w);
|
|
11054
11061
|
},
|
|
@@ -11056,15 +11063,15 @@ const Jc = { class: "flex flex-col gap-y-2 w-full" }, Nc = {
|
|
|
11056
11063
|
deep: !0
|
|
11057
11064
|
}
|
|
11058
11065
|
), fe(
|
|
11059
|
-
() =>
|
|
11066
|
+
() => a.logicValues,
|
|
11060
11067
|
() => {
|
|
11061
|
-
C(
|
|
11068
|
+
C(a.values);
|
|
11062
11069
|
},
|
|
11063
11070
|
{
|
|
11064
11071
|
deep: !0
|
|
11065
11072
|
}
|
|
11066
11073
|
), fe(
|
|
11067
|
-
() =>
|
|
11074
|
+
() => a.errors,
|
|
11068
11075
|
(w) => {
|
|
11069
11076
|
h();
|
|
11070
11077
|
},
|
|
@@ -11072,13 +11079,13 @@ const Jc = { class: "flex flex-col gap-y-2 w-full" }, Nc = {
|
|
|
11072
11079
|
deep: !0
|
|
11073
11080
|
}
|
|
11074
11081
|
), fe(
|
|
11075
|
-
() =>
|
|
11082
|
+
() => a.previewMode,
|
|
11076
11083
|
() => {
|
|
11077
|
-
C(
|
|
11084
|
+
C(a.values);
|
|
11078
11085
|
}
|
|
11079
11086
|
), ke(() => {
|
|
11080
|
-
C(
|
|
11081
|
-
}), (w,
|
|
11087
|
+
C(a.values), h(a.errors);
|
|
11088
|
+
}), (w, O) => Object.values(b.value).length > 0 ? (t(), i("div", {
|
|
11082
11089
|
key: 0,
|
|
11083
11090
|
class: p(e.grid ? `responsive-smart-form-grid ${y.value}` : y.value),
|
|
11084
11091
|
style: me(e.grid ? m.value : "")
|
|
@@ -11112,16 +11119,16 @@ const Jc = { class: "flex flex-col gap-y-2 w-full" }, Nc = {
|
|
|
11112
11119
|
}), 128))
|
|
11113
11120
|
], 6)) : u("", !0);
|
|
11114
11121
|
}
|
|
11115
|
-
}, rp = Ae(() => import("./OcDataTable-
|
|
11116
|
-
() => import("./OcComplexCalendar-
|
|
11122
|
+
}, rp = Ae(() => import("./OcDataTable-Be4PKvHr.js")), dp = Ae(() => import("./OcFilterSearch-Ce7AjfUn.js")), cp = Ae(() => import("./OcFilterSearchFor-DhHzGVrf.js")), up = Ae(() => import("./OcFilterForm-BCcb2f-L.js")), Hm = Ae(
|
|
11123
|
+
() => import("./OcComplexCalendar-DMoulu4b.js")
|
|
11117
11124
|
), mp = Ae(
|
|
11118
|
-
() => import("./OcComplexDatePicker-
|
|
11119
|
-
), ct = Ae(() => import("./OcModalCropper-
|
|
11120
|
-
() => import("./ThumbnailTheme-
|
|
11125
|
+
() => import("./OcComplexDatePicker-MRZHgxNo.js")
|
|
11126
|
+
), ct = Ae(() => import("./OcModalCropper-LAhvHlGJ.js")), fp = Ae(() => import("./OcCropper-wkmuIXne.js")), Gm = Ae(() => import("./OcDraggable-DRsp4j4e.js")), pp = Ae(() => import("./OcDraggableList-DDqSjANg.js")), vp = Ae(() => import("./OcEmojiPicker-Csiq2RqM.js")), gp = Ae(
|
|
11127
|
+
() => import("./ThumbnailTheme-Dl5y2DPn.js")
|
|
11121
11128
|
), Ap = Ae(
|
|
11122
|
-
() => import("./ThumbnailSection-
|
|
11123
|
-
), hp = Ae(() => import("./SubPlanCard-
|
|
11124
|
-
() => import("./OcAccountSetupProgress-
|
|
11129
|
+
() => import("./ThumbnailSection-BXPnhy0e.js")
|
|
11130
|
+
), hp = Ae(() => import("./SubPlanCard-D5BjVgdU.js")), yp = Ae(() => import("./OcTimePopup-CrwbZ_Nx.js")), Dm = Ae(() => import("./OcTimePicker-Bup_IRX6.js")), bp = Ae(
|
|
11131
|
+
() => import("./OcAccountSetupProgress-C4jeRWbp.js")
|
|
11125
11132
|
);
|
|
11126
11133
|
export {
|
|
11127
11134
|
If as $,
|