@orchidui/core 0.5.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/DataDisplay/CustomerCard/OcCustomerCard.js +1 -1
- package/dist/DataDisplay/FloatContent/OcFloatContent.js +1 -1
- package/dist/DataDisplay/InfoCard/OcInfoCard.js +1 -1
- package/dist/DataDisplay/ListDetail/OcListDetail.js +1 -1
- package/dist/DataDisplay/ListItem/OcListItem.js +3 -3
- package/dist/DataDisplay/OnboardingListItem/OcOnboardingListItem.js +1 -1
- package/dist/DataDisplay/Overview/OcOverview.js +4 -5
- package/dist/DataDisplay/Pagination/OcPagination.js +1 -1
- package/dist/DataDisplay/Table/OcTable.js +4 -4
- 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 +3 -3
- package/dist/Disclosure/Tabs/Tabs.js +1 -1
- package/dist/Disclosure/Variants/OcVariants.js +1 -1
- package/dist/Elements/AdditionalContent/OcAdditionalContent.js +2 -2
- package/dist/Elements/AuthenticationOption/AuthenticationOption.js +2 -2
- package/dist/Elements/Box/OcBox.js +2 -2
- package/dist/Elements/EmptyPage/OcEmptyPage.js +1 -1
- package/dist/Elements/FeatureOverviewCard/OcFeatureOverviewCard.js +1 -1
- package/dist/Elements/Header/OcHeader.js +3 -3
- package/dist/Elements/PageTitle/OcPageTitle.js +3 -4
- package/dist/Elements/SandboxBanner/OcSandboxBanner.js +1 -1
- package/dist/Elements/Sidebar/OcSidebar.js +1 -1
- package/dist/Elements/Skeleton/OcSkeleton.js +1 -1
- package/dist/Elements/SubSidebar/OcSubSidebar.js +1 -1
- package/dist/Elements/VerificationOption/OcVerificationOption.js +2 -2
- package/dist/Feedback/Banner/OcBanner.js +1 -1
- package/dist/Feedback/Chip/OcChip.js +2 -2
- package/dist/Feedback/ShareIcon/OcShareIcon.js +2 -2
- 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 +2 -2
- 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 +2 -2
- package/dist/Form/Input/OcInput.js +3 -4
- 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 +2 -2
- package/dist/Form/Select/OcSelect.js +4 -5
- package/dist/Form/SelectOptions/OcSelectOptions.js +2 -2
- package/dist/Form/SingleFileUpload/OcSingleFileUpload.js +1 -1
- package/dist/Form/Slider/OcSlider.js +1 -1
- package/dist/Form/TextArea/OcTextArea.js +2 -2
- package/dist/Form/Toggle/OcToggle.js +1 -1
- package/dist/Form/index.js +24 -47
- package/dist/FormBuilder/OcFormBuilder.js +1 -1
- package/dist/{OcComplexCalendar-DXl0ecZ-.js → OcComplexCalendar-Boa7mNFU.js} +18 -25
- package/dist/OcComplexDatePicker-BydI4VSR.js +93 -0
- package/dist/{OcCropper-31Y_S1Ne.js → OcCropper-7E2i6ayU.js} +38 -49
- package/dist/OcDataTable-CsCGrRx7.js +561 -0
- package/dist/{OcDraggable-BjhGJmpM.js → OcDraggable-CA_BCbpl.js} +7 -8
- package/dist/{Draggable.js → OcDraggableList-BUu5SgoA.js} +39 -50
- package/dist/{OcEmojiPicker-BXm-_OGK.js → OcEmojiPicker-DYYK7OB3.js} +28 -38
- package/dist/OcFilterForm-7ehuJUMp.js +83 -0
- package/dist/OcFilterSearch-B4AZsLBn.js +69 -0
- package/dist/OcFilterSearchFor-DfwJG-5N.js +67 -0
- package/dist/OcModalCropper-Z4jlnFc5.js +46 -0
- package/dist/{OcSkeleton-BdPTmGh0.js → OcSkeleton-CvdpGSQR.js} +2 -3
- package/dist/{OcSlider-Bsi-ckbP.js → OcSlider-DW9x8eas.js} +10 -11
- package/dist/{OcTimePicker-B61MCi0D.js → OcTimePicker-D9fPU8_m.js} +22 -33
- package/dist/{OcTimePopup-zQFKCZLk.js → OcTimePopup-CXGhaOev.js} +2 -3
- package/dist/{OcToggle-C0wTjM_Y.js → OcToggle-bIJaLDMZ.js} +5 -6
- package/dist/Overlay/ConfirmationModal/OcConfirmationModal.js +1 -1
- package/dist/Overlay/CopyTooltip/OcCopyTooltip.js +1 -1
- package/dist/Overlay/Dropdown/OcDropdown.js +3 -4
- package/dist/Overlay/Modal/OcModal.js +3 -4
- package/dist/Overlay/SupportMenu/OcSupportMenu.js +1 -1
- package/dist/Overlay/Tooltip/OcTooltip.js +2 -2
- package/dist/Overlay/Whitelist/OcWhiteList.js +2 -2
- package/dist/SubPlanCard-DHj4RHJZ.js +81 -0
- package/dist/ThumbnailSection-CJBS0QXp.js +41 -0
- package/dist/ThumbnailTheme-hey6se0g.js +119 -0
- package/dist/index-DyVteXE3.js +10028 -0
- package/dist/index.js +129 -948
- package/dist/style.css +1 -1
- package/package.json +1 -16
- package/dist/Calendar.js +0 -103
- package/dist/Cropper.js +0 -6
- package/dist/DatePicker-BLK16hYl.js +0 -263
- package/dist/EmojiPicker.js +0 -4
- package/dist/Form/TimePicker/OcTimePicker.js +0 -6
- package/dist/OcAccordion-DdkNsXvN.js +0 -101
- package/dist/OcAccountSetup-BXDjf48o.js +0 -324
- package/dist/OcAdditionalContent-BMSysCXu.js +0 -612
- package/dist/OcAuthenticationOption.vue_vue_type_script_setup_true_lang-w5Y0ymGN.js +0 -43
- package/dist/OcBanner-Cg2WJV6e.js +0 -108
- package/dist/OcBox.vue_vue_type_script_setup_true_lang-aB397QRg.js +0 -43
- package/dist/OcCardInput-BFE4Xu-S.js +0 -75
- package/dist/OcCheckboxesGroup-CLbquUO2.js +0 -94
- package/dist/OcChip-B1hm2Qni.js +0 -144
- package/dist/OcComplexCalendar.vue_vue_type_style_index_0_lang-CIQPD-6N.js +0 -1006
- package/dist/OcConfirmationModal-BfCrRV9r.js +0 -179
- package/dist/OcCopyTooltip.vue_vue_type_script_setup_true_lang-S2RAfV_g.js +0 -65
- package/dist/OcCriteria-CpIohheZ.js +0 -42
- package/dist/OcCustomerCard-DbDOBO03.js +0 -160
- package/dist/OcDropdownItem-DAElmzEu.js +0 -57
- package/dist/OcEmptyPage-CTwgMzRp.js +0 -155
- package/dist/OcExpadingTable.vue_vue_type_script_setup_true_lang-B4HOMDBK.js +0 -815
- package/dist/OcFeatureOverviewCard-RVyrWLVW.js +0 -71
- package/dist/OcFloatContent-BIKQOxSw.js +0 -142
- package/dist/OcFormBuilder-BUpEpDsU.js +0 -177
- package/dist/OcGroupOptions-ChGJvTXl.js +0 -16
- package/dist/OcInfoCard-DpYUZOMZ.js +0 -81
- package/dist/OcInput-tcRxG3Y2.js +0 -227
- package/dist/OcInputOption-CncASfNt.js +0 -160
- package/dist/OcLinkInput-C2ixk-gk.js +0 -143
- package/dist/OcListDetail-6XeME6ko.js +0 -76
- package/dist/OcListUrl.vue_vue_type_script_setup_true_lang-7zZdFM8K.js +0 -750
- package/dist/OcModal-DdD5VFEN.js +0 -187
- package/dist/OcModalCropper-D2OI2iun.js +0 -56
- package/dist/OcModalPage-BLVa-kcB.js +0 -86
- package/dist/OcMultipleUploadFile-BAmQHshA.js +0 -447
- package/dist/OcNumberInput.vue_vue_type_script_setup_true_lang-C4EXUIUe.js +0 -90
- package/dist/OcOnboardingListItem.vue_vue_type_script_setup_true_lang-Cr80xmnz.js +0 -81
- package/dist/OcOption-DK2FBGq7.js +0 -485
- package/dist/OcOverviewIcon-D702Ujka.js +0 -55
- package/dist/OcOverviewItem-DNr5tWnt.js +0 -186
- package/dist/OcPageTitleRight-DMtJ1qmZ.js +0 -243
- package/dist/OcPaginationNumber-IKPorX26.js +0 -172
- package/dist/OcPaymentTab-Cna1IAhO.js +0 -170
- package/dist/OcPhoneInput-AC6BgQhN.js +0 -432
- package/dist/OcPrimaryActions-D5IprKsQ.js +0 -222
- package/dist/OcRadio-CRYfNwV9.js +0 -107
- package/dist/OcRadioGroup-DgfdWJos.js +0 -76
- package/dist/OcRangeInput-C-hoHFhr.js +0 -103
- package/dist/OcSandboxBanner.vue_vue_type_script_setup_true_lang-BD0k_8xa.js +0 -37
- package/dist/OcSectionItem-BFgxO3se.js +0 -84
- package/dist/OcSelectOptions-BQlG_EUA.js +0 -148
- package/dist/OcShareIcon-BB-NPq0r.js +0 -53
- package/dist/OcSingleFileUpload-B8-e1H5t.js +0 -464
- package/dist/OcSnackbar-CKxY1-ej.js +0 -196
- package/dist/OcSteps.vue_vue_type_script_setup_true_lang-CXGy8ma_.js +0 -87
- package/dist/OcSubSidebar.vue_vue_type_script_setup_true_lang-CNxgU07N.js +0 -60
- package/dist/OcSupportMenu.vue_vue_type_script_setup_true_lang-DrjZsWti.js +0 -114
- package/dist/OcTabToSelect-BHAz1Niv.js +0 -183
- package/dist/OcTextArea-BpV1Bnj_.js +0 -78
- package/dist/OcTransferSummary-Bk2GXhrT.js +0 -67
- package/dist/OcVariant.vue_vue_type_script_setup_true_lang-CY_82DLc.js +0 -99
- package/dist/OcVerificationOption.vue_vue_type_script_setup_true_lang-ChqvNoDe.js +0 -59
- package/dist/OcWhiteList.vue_vue_type_script_setup_true_lang-DI9pYU3w.js +0 -64
- package/dist/OnboardingAccordion.vue_vue_type_script_setup_true_lang-B0Z7ETmj.js +0 -113
- package/dist/StoreDesign.js +0 -240
@@ -1,324 +0,0 @@
|
|
1
|
-
import { ref as z, reactive as A, computed as D, onMounted as L, openBlock as t, createElementBlock as i, normalizeClass as l, createElementVNode as s, renderSlot as x, Fragment as b, renderList as S, toDisplayString as O, createCommentVNode as o, createBlock as h, unref as p, withCtx as w, createVNode as g, normalizeProps as B, guardReactiveProps as M, normalizeStyle as $ } from "vue";
|
2
|
-
import "dayjs";
|
3
|
-
import { D as U } from "./OcComplexCalendar.vue_vue_type_style_index_0_lang-CIQPD-6N.js";
|
4
|
-
import { _ as y } from "./OcIcon-CJgBICxh.js";
|
5
|
-
/* empty css */
|
6
|
-
import "libphonenumber-js";
|
7
|
-
/* empty css */
|
8
|
-
import "v-calendar";
|
9
|
-
/* empty css */
|
10
|
-
import "./Cropper.js";
|
11
|
-
import "vue-draggable-next";
|
12
|
-
import "@popperjs/core";
|
13
|
-
import { _ as N } from "./OcChip-B1hm2Qni.js";
|
14
|
-
import { _ as W } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
15
|
-
const F = { class: "grid py-7 w-full max-h-[inherit] overflow-y-auto overflow-x-hidden gap-3 px-8" }, R = {
|
16
|
-
key: 0,
|
17
|
-
class: "text-sm uppercase text-[var(--oc-sidebar-menu-title)] my-3"
|
18
|
-
}, T = ["onClick"], q = {
|
19
|
-
key: 0,
|
20
|
-
class: "p-3 gap-4 bg-oc-bg shadow-sm rounded w-[200px]"
|
21
|
-
}, G = {
|
22
|
-
key: 0,
|
23
|
-
class: "relative flex flex-col"
|
24
|
-
}, Ee = {
|
25
|
-
__name: "OcSidebar",
|
26
|
-
props: {
|
27
|
-
class: {
|
28
|
-
type: String
|
29
|
-
},
|
30
|
-
isExpanded: {
|
31
|
-
type: Boolean,
|
32
|
-
default: !0
|
33
|
-
},
|
34
|
-
sidebarMenu: {
|
35
|
-
type: Array
|
36
|
-
}
|
37
|
-
},
|
38
|
-
emits: ["changeExpanded", "click:sidebar-icon", "changeExpandedMenus"],
|
39
|
-
setup(e, { emit: E }) {
|
40
|
-
const d = E, c = e, f = z([]), u = A({
|
41
|
-
loading: !0,
|
42
|
-
expanded: []
|
43
|
-
}), C = (n) => {
|
44
|
-
u.expanded.includes(n) ? u.expanded = u.expanded.filter((r) => r !== n) : u.expanded.push(n), d("changeExpandedMenus", u.expanded);
|
45
|
-
}, j = D(() => (c.isExpanded ? "w-[300px] " : "w-[102px] ") + c.class);
|
46
|
-
return L(() => {
|
47
|
-
c.sidebarMenu.forEach((n) => {
|
48
|
-
n.items.forEach((r) => {
|
49
|
-
r.children && r.children.forEach((v) => {
|
50
|
-
v.active && C(r.name);
|
51
|
-
});
|
52
|
-
});
|
53
|
-
}), u.loading = !1;
|
54
|
-
}), (n, r) => (t(), i("div", {
|
55
|
-
class: l(["cursor-pointer max-h-[inherit] transition-all duration-300 ease-in-out relative bg-[var(--oc-sidebar-background)]", j.value])
|
56
|
-
}, [
|
57
|
-
s("div", F, [
|
58
|
-
x(n.$slots, "before", { isExpanded: e.isExpanded }),
|
59
|
-
(t(!0), i(b, null, S(e.sidebarMenu, (v, P) => (t(), i(b, { key: P }, [
|
60
|
-
e.isExpanded && v.label ? (t(), i("h2", R, O(v.label), 1)) : o("", !0),
|
61
|
-
(!v.label || !e.isExpanded) && P !== 0 ? (t(), i("div", {
|
62
|
-
key: 1,
|
63
|
-
class: l(["my-3", e.isExpanded ? "px-0" : "px-3"])
|
64
|
-
}, r[0] || (r[0] = [
|
65
|
-
s("div", { class: "w-full border-b border-[var(--oc-sidebar-menu-title)] opacity-50" }, null, -1)
|
66
|
-
]), 2)) : o("", !0),
|
67
|
-
(t(!0), i(b, null, S(v.items, (a, k) => (t(), i("div", {
|
68
|
-
key: k,
|
69
|
-
class: "flex flex-col"
|
70
|
-
}, [
|
71
|
-
s("div", {
|
72
|
-
class: l(["flex items-center rounded transition-all duration-500 hover:bg-[var(--oc-sidebar-menu-hover)]", {
|
73
|
-
"px-5 py-3": e.isExpanded,
|
74
|
-
"font-medium bg-[var(--oc-sidebar-menu-active)] text-[var(--oc-sidebar-menu-active-text)]": a.active
|
75
|
-
}]),
|
76
|
-
onClick: (m) => C(a.name)
|
77
|
-
}, [
|
78
|
-
e.isExpanded ? (t(), h(p(y), {
|
79
|
-
key: 0,
|
80
|
-
width: "22",
|
81
|
-
height: "22",
|
82
|
-
class: l(["z-[1] relative", {
|
83
|
-
"text-[var(--oc-sidebar-menu-active-icon)]": !a.active,
|
84
|
-
"text-[var(--oc-sidebar-menu-active-icon-active)]": a.active
|
85
|
-
}]),
|
86
|
-
name: a.icon
|
87
|
-
}, null, 8, ["class", "name"])) : (t(), h(p(U), {
|
88
|
-
key: 1,
|
89
|
-
modelValue: f.value[a.name + "-" + k],
|
90
|
-
"onUpdate:modelValue": (m) => f.value[a.name + "-" + k] = m,
|
91
|
-
placement: "right-start"
|
92
|
-
}, {
|
93
|
-
menu: w(() => [
|
94
|
-
f.value[a.name + "-" + k] ? (t(), i("div", q, [
|
95
|
-
a.children ? o("", !0) : (t(), i("div", {
|
96
|
-
key: 0,
|
97
|
-
class: l(["flex items-center rounded hover:bg-[var(--oc-sidebar-menu-hover)]", {
|
98
|
-
"font-medium bg-[var(--oc-sidebar-menu-active)] text-[var(--oc-sidebar-menu-active-text)]": a.active
|
99
|
-
}])
|
100
|
-
}, [
|
101
|
-
e.isExpanded ? o("", !0) : x(n.$slots, "label", {
|
102
|
-
key: 0,
|
103
|
-
menu: a
|
104
|
-
})
|
105
|
-
], 2)),
|
106
|
-
a.children ? (t(), h(p(V), {
|
107
|
-
key: 1,
|
108
|
-
menu: a,
|
109
|
-
"is-expanded": ""
|
110
|
-
}, {
|
111
|
-
label: w(({ submenu: m }) => [
|
112
|
-
x(n.$slots, "submenu_label", {
|
113
|
-
menu: a,
|
114
|
-
submenu: m
|
115
|
-
})
|
116
|
-
]),
|
117
|
-
_: 2
|
118
|
-
}, 1032, ["menu"])) : o("", !0)
|
119
|
-
])) : o("", !0)
|
120
|
-
]),
|
121
|
-
default: w(() => [
|
122
|
-
s("button", {
|
123
|
-
type: "button",
|
124
|
-
class: l({
|
125
|
-
"p-4": !e.isExpanded
|
126
|
-
})
|
127
|
-
}, [
|
128
|
-
g(p(y), {
|
129
|
-
width: "22",
|
130
|
-
height: "22",
|
131
|
-
class: l({
|
132
|
-
"text-[var(--oc-sidebar-menu-active-icon)]": !a.active,
|
133
|
-
"text-[var(--oc-sidebar-menu-active-icon-active)]": a.active
|
134
|
-
}),
|
135
|
-
name: a.icon,
|
136
|
-
onClick: (m) => n.$emit("click:sidebar-icon", a)
|
137
|
-
}, null, 8, ["class", "name", "onClick"])
|
138
|
-
], 2)
|
139
|
-
]),
|
140
|
-
_: 2
|
141
|
-
}, 1032, ["modelValue", "onUpdate:modelValue"])),
|
142
|
-
e.isExpanded ? x(n.$slots, "label", {
|
143
|
-
key: 2,
|
144
|
-
menu: a
|
145
|
-
}) : o("", !0)
|
146
|
-
], 10, T),
|
147
|
-
e.isExpanded ? (t(), i("div", G, [
|
148
|
-
r[1] || (r[1] = s("div", { class: "absolute border-l left-[27px] bottom-[17px] h-full" }, null, -1)),
|
149
|
-
a.children ? (t(), h(p(V), {
|
150
|
-
key: 0,
|
151
|
-
menu: a,
|
152
|
-
class: l(u.expanded.includes(a.name) && "mt-3"),
|
153
|
-
"is-expanded-sidebar": e.isExpanded,
|
154
|
-
"is-expanded": u.expanded.includes(a.name)
|
155
|
-
}, {
|
156
|
-
label: w(({ submenu: m }) => [
|
157
|
-
x(n.$slots, "submenu_label", {
|
158
|
-
menu: a,
|
159
|
-
submenu: m,
|
160
|
-
isExpanded: e.isExpanded
|
161
|
-
})
|
162
|
-
]),
|
163
|
-
_: 2
|
164
|
-
}, 1032, ["menu", "class", "is-expanded-sidebar", "is-expanded"])) : o("", !0)
|
165
|
-
])) : o("", !0)
|
166
|
-
]))), 128))
|
167
|
-
], 64))), 128)),
|
168
|
-
x(n.$slots, "after", { isExpanded: e.isExpanded })
|
169
|
-
])
|
170
|
-
], 2));
|
171
|
-
}
|
172
|
-
}, V = {
|
173
|
-
__name: "OcSidebarSubmenu",
|
174
|
-
props: {
|
175
|
-
isExpanded: {
|
176
|
-
type: Boolean,
|
177
|
-
default: !0
|
178
|
-
},
|
179
|
-
isExpandedSidebar: {
|
180
|
-
type: Boolean,
|
181
|
-
default: !1
|
182
|
-
},
|
183
|
-
menu: {
|
184
|
-
type: Object
|
185
|
-
}
|
186
|
-
},
|
187
|
-
setup(e) {
|
188
|
-
return (E, d) => (t(), i("div", {
|
189
|
-
class: l(["grid gap-3 transition-all duration-500 overflow-hidden", e.isExpanded ? "max-h-screen" : "max-h-0"])
|
190
|
-
}, [
|
191
|
-
(t(!0), i(b, null, S(e.menu.children, (c, f) => (t(), i("div", {
|
192
|
-
key: f,
|
193
|
-
class: l(["text-oc-text-400 flex items-center rounded hover:bg-[var(--oc-sidebar-menu-hover)]", {
|
194
|
-
"font-medium bg-[var(--oc-sidebar-menu-active)] text-[var(--oc-sidebar-menu-active-text)]": c.active
|
195
|
-
}])
|
196
|
-
}, [
|
197
|
-
e.isExpandedSidebar ? (t(), h(p(y), {
|
198
|
-
key: 0,
|
199
|
-
width: "22",
|
200
|
-
height: "22",
|
201
|
-
class: l(["flex z-[1] ml-[17.5px]", {
|
202
|
-
"text-[var(--oc-sidebar-menu-active-icon)]": !c.active,
|
203
|
-
"text-[var(--oc-sidebar-menu-active-icon-active)]": c.active
|
204
|
-
}]),
|
205
|
-
name: "sidebar-submenu-icon"
|
206
|
-
}, null, 8, ["class"])) : o("", !0),
|
207
|
-
x(E.$slots, "label", {
|
208
|
-
menu: e.menu,
|
209
|
-
submenu: c
|
210
|
-
})
|
211
|
-
], 2))), 128))
|
212
|
-
], 2));
|
213
|
-
}
|
214
|
-
}, H = {
|
215
|
-
key: 0,
|
216
|
-
class: "p-3 bg-white rounded-[6px] w-full flex flex-col gap-y-5"
|
217
|
-
}, J = { class: "p-2 flex gap-3" }, K = { class: "p-3 rounded-full border border-oc-warning-500" }, Q = { class: "mx-[-8px] mb-[-8px] rounded-b-[6px] border-t border-gray-200 bg-oc-gray-50" }, X = { class: "py-4 px-5 text-oc-text-400 font-medium" }, Y = {
|
218
|
-
key: 0,
|
219
|
-
class: "flex items-center"
|
220
|
-
}, Z = {
|
221
|
-
key: 1,
|
222
|
-
class: "flex items-center mt-3"
|
223
|
-
}, I = { class: "flex flex-col gap-y-3" }, _ = { class: "flex items-center text-[var(--oc-sidebar-menu-active-text)] justify-between" }, ee = { class: "font-bold" }, te = { class: "h-[12px] w-full rounded-full bg-oc-gray-100 shadow" }, ae = {
|
224
|
-
key: 1,
|
225
|
-
class: "bg-white rounded-full p-1"
|
226
|
-
}, se = {
|
227
|
-
key: 0,
|
228
|
-
class: "p-3 rounded-full"
|
229
|
-
}, ie = {
|
230
|
-
key: 1,
|
231
|
-
class: "pie-wrapper progress style-2"
|
232
|
-
}, ne = { class: "label" }, de = {
|
233
|
-
__name: "OcAccountSetup",
|
234
|
-
props: {
|
235
|
-
isExpanded: Boolean,
|
236
|
-
progress: {
|
237
|
-
type: Number,
|
238
|
-
default: 0
|
239
|
-
},
|
240
|
-
isPending: Boolean,
|
241
|
-
paymentStatus: Object,
|
242
|
-
payoutStatus: Object
|
243
|
-
},
|
244
|
-
setup(e) {
|
245
|
-
return (E, d) => (t(), i("div", {
|
246
|
-
class: l(["p-1 flex items-center justify-center mb-5", [
|
247
|
-
e.isExpanded ? "rounded" : "w-fit rounded-full",
|
248
|
-
e.isPending ? "bg-oc-warning-500" : "account-setup-bg"
|
249
|
-
]])
|
250
|
-
}, [
|
251
|
-
e.isExpanded ? (t(), i("div", H, [
|
252
|
-
e.isPending ? (t(), i(b, { key: 0 }, [
|
253
|
-
s("div", J, [
|
254
|
-
s("div", K, [
|
255
|
-
g(y, {
|
256
|
-
name: "alert",
|
257
|
-
width: "20",
|
258
|
-
height: "20",
|
259
|
-
class: "text-oc-warning-500"
|
260
|
-
})
|
261
|
-
]),
|
262
|
-
d[0] || (d[0] = s("div", { class: "text-oc-text-500 text-sm" }, "We’re currently reviewing your account.", -1))
|
263
|
-
]),
|
264
|
-
s("div", Q, [
|
265
|
-
s("div", X, [
|
266
|
-
e.paymentStatus ? (t(), i("div", Y, [
|
267
|
-
d[1] || (d[1] = s("span", { class: "flex-1" }, "Payment", -1)),
|
268
|
-
g(N, B(M(e.paymentStatus)), null, 16)
|
269
|
-
])) : o("", !0),
|
270
|
-
e.paymentStatus ? (t(), i("div", Z, [
|
271
|
-
d[2] || (d[2] = s("span", { class: "flex-1" }, "Payout", -1)),
|
272
|
-
g(N, B(M(e.payoutStatus)), null, 16)
|
273
|
-
])) : o("", !0)
|
274
|
-
])
|
275
|
-
])
|
276
|
-
], 64)) : (t(), i(b, { key: 1 }, [
|
277
|
-
s("div", I, [
|
278
|
-
s("div", _, [
|
279
|
-
d[3] || (d[3] = s("span", { class: "font-medium" }, "Account setup", -1)),
|
280
|
-
s("span", ee, O(e.progress) + "%", 1)
|
281
|
-
]),
|
282
|
-
s("div", te, [
|
283
|
-
s("div", {
|
284
|
-
class: "h-[12px] rounded-full bg-[var(--oc-sidebar-menu-active-icon-active)]",
|
285
|
-
style: $({ width: `${e.progress}%` })
|
286
|
-
}, null, 4)
|
287
|
-
])
|
288
|
-
]),
|
289
|
-
d[4] || (d[4] = s("div", { class: "text-sm font-bold text-[var(--oc-sidebar-menu-active-text)] text-center" }, " COMPLETE NOW -> ", -1))
|
290
|
-
], 64))
|
291
|
-
])) : (t(), i("div", ae, [
|
292
|
-
e.isPending ? (t(), i("div", se, [
|
293
|
-
g(y, {
|
294
|
-
name: "alert",
|
295
|
-
width: "20",
|
296
|
-
height: "20",
|
297
|
-
class: "text-oc-warning-500"
|
298
|
-
})
|
299
|
-
])) : (t(), i("div", ie, [
|
300
|
-
s("span", ne, O(e.progress), 1),
|
301
|
-
s("div", {
|
302
|
-
class: "pie",
|
303
|
-
style: $({
|
304
|
-
clip: e.progress > 50 ? "rect(auto, auto, auto, auto)" : ""
|
305
|
-
})
|
306
|
-
}, [
|
307
|
-
s("div", {
|
308
|
-
class: "left-side half-circle transition-all duration-500",
|
309
|
-
style: $({ transform: `rotate(calc(${e.progress}*3.6deg))` })
|
310
|
-
}, null, 4),
|
311
|
-
s("div", {
|
312
|
-
class: l(["right-side half-circle transition-all duration-500", e.progress <= 50 ? "hidden" : "rotate-180"])
|
313
|
-
}, null, 2)
|
314
|
-
], 4)
|
315
|
-
]))
|
316
|
-
]))
|
317
|
-
], 2));
|
318
|
-
}
|
319
|
-
}, ke = /* @__PURE__ */ W(de, [["__scopeId", "data-v-98a72f05"]]);
|
320
|
-
export {
|
321
|
-
ke as O,
|
322
|
-
Ee as _,
|
323
|
-
V as a
|
324
|
-
};
|