@orchidui/core 0.0.1 → 0.3.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.
Files changed (169) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +1 -0
  3. package/dist/Calendar.js +103 -0
  4. package/dist/Cropper.js +6 -0
  5. package/dist/DataDisplay/CustomerCard/OcCustomerCard.js +4 -0
  6. package/dist/DataDisplay/FloatContent/OcFloatContent.js +4 -0
  7. package/dist/DataDisplay/HorizontalProgressbar/OcHorizontalProgressbar.js +4 -0
  8. package/dist/DataDisplay/InfoCard/OcInfoCard.js +4 -0
  9. package/dist/DataDisplay/ListDetail/OcListDetail.js +4 -0
  10. package/dist/DataDisplay/ListItem/OcListItem.js +5 -0
  11. package/dist/DataDisplay/OnboardingListItem/OcOnboardingListItem.js +4 -0
  12. package/dist/DataDisplay/Overview/OcOverview.js +7 -0
  13. package/dist/DataDisplay/Pagination/OcPagination.js +6 -0
  14. package/dist/DataDisplay/ProgressBar/OcProgressBar.js +4 -0
  15. package/dist/DataDisplay/Table/OcTable.js +11 -0
  16. package/dist/DataDisplay/TransferSummary/OcTransferSummary.js +4 -0
  17. package/dist/DatePicker-D3w435Ml.js +263 -0
  18. package/dist/Disclosure/Accordion/OcAccordion.js +4 -0
  19. package/dist/Disclosure/OnboardingAccordion/OnboardingAccordion.js +4 -0
  20. package/dist/Disclosure/Steps/OcSteps.js +5 -0
  21. package/dist/Disclosure/SwitchTabs/OcSwitchTabs.js +4 -0
  22. package/dist/Disclosure/Tabs/Tabs.js +5 -0
  23. package/dist/Disclosure/Variants/OcVariants.js +5 -0
  24. package/dist/Draggable.js +168 -0
  25. package/dist/Elements/AdditionalContent/OcAdditionalContent.js +5 -0
  26. package/dist/Elements/AuthenticationOption/AuthenticationOption.js +4 -0
  27. package/dist/Elements/Box/OcBox.js +4 -0
  28. package/dist/Elements/EmptyPage/OcEmptyPage.js +4 -0
  29. package/dist/Elements/FeatureOverviewCard/OcFeatureOverviewCard.js +4 -0
  30. package/dist/Elements/Header/OcHeader.js +9 -0
  31. package/dist/Elements/PageTitle/OcPageTitle.js +7 -0
  32. package/dist/Elements/SandboxBanner/OcSandboxBanner.js +4 -0
  33. package/dist/Elements/Sidebar/OcSidebar.js +6 -0
  34. package/dist/Elements/Skeleton/OcSkeleton.js +4 -0
  35. package/dist/Elements/SubSidebar/OcSubSidebar.js +4 -0
  36. package/dist/Elements/VerificationOption/OcVerificationOption.js +4 -0
  37. package/dist/EmojiPicker.js +4 -0
  38. package/dist/Feedback/Banner/OcBanner.js +4 -0
  39. package/dist/Feedback/Chip/OcChip.js +4 -0
  40. package/dist/Feedback/ShareIcon/OcShareIcon.js +4 -0
  41. package/dist/Feedback/Snackbar/OcSnackbar.js +4 -0
  42. package/dist/Feedback/Tag/OcTag.js +4 -0
  43. package/dist/Form/BaseInput/OcBaseInput.js +4 -0
  44. package/dist/Form/Button/OcButton.js +4 -0
  45. package/dist/Form/Calendar/OcCalendar.js +5 -0
  46. package/dist/Form/CardInput/OcCardInput.js +4 -0
  47. package/dist/Form/Checkbox/OcCheckbox.js +4 -0
  48. package/dist/Form/CheckboxesGroup/OcCheckboxesGroup.js +4 -0
  49. package/dist/Form/Criteria/OcCriteria.js +4 -0
  50. package/dist/Form/Cropper/OcCropper.js +4 -0
  51. package/dist/Form/DatePicker/OcDatePicker.js +4 -0
  52. package/dist/Form/EmojiPicker/OcEmojiPicker.js +4 -0
  53. package/dist/Form/EmojiPicker/conts/emoji.js +1030 -0
  54. package/dist/Form/Input/OcInput.js +6 -0
  55. package/dist/Form/LinkInput/OcLinkInput.js +4 -0
  56. package/dist/Form/MultipleUploadFile/OcMultipleUploadFile.js +4 -0
  57. package/dist/Form/NumberInput/OcNumberInput.js +4 -0
  58. package/dist/Form/PhoneInput/OcPhoneInput.js +4 -0
  59. package/dist/Form/Radio/OcRadio.js +4 -0
  60. package/dist/Form/RadioGroup/OcRadioGroup.js +4 -0
  61. package/dist/Form/RangeInput/OcRangeInput.js +4 -0
  62. package/dist/Form/SectionItem/OcSectionItem.js +4 -0
  63. package/dist/Form/Select/OcSelect.js +7 -0
  64. package/dist/Form/SelectOptions/OcSelectOptions.js +4 -0
  65. package/dist/Form/SingleFileUpload/OcSingleFileUpload.js +4 -0
  66. package/dist/Form/Slider/OcSlider.js +4 -0
  67. package/dist/Form/TextArea/OcTextArea.js +4 -0
  68. package/dist/Form/TimePicker/OcTimePicker.js +6 -0
  69. package/dist/Form/Toggle/OcToggle.js +4 -0
  70. package/dist/Form/index.js +54 -0
  71. package/dist/FormBuilder/OcFormBuilder.js +4 -0
  72. package/dist/MediaAndIcons/Avatar/OcAvatar.js +4 -0
  73. package/dist/MediaAndIcons/Icon/OcIcon.js +4 -0
  74. package/dist/OcAccordion-DdkNsXvN.js +101 -0
  75. package/dist/OcAccountSetup-BXDjf48o.js +324 -0
  76. package/dist/OcAdditionalContent-BMSysCXu.js +612 -0
  77. package/dist/OcAuthenticationOption.vue_vue_type_script_setup_true_lang-w5Y0ymGN.js +43 -0
  78. package/dist/OcAvatar-NDXQiZvz.js +41 -0
  79. package/dist/OcBanner-Cg2WJV6e.js +108 -0
  80. package/dist/OcBox.vue_vue_type_script_setup_true_lang-aB397QRg.js +43 -0
  81. package/dist/OcCardInput-BFE4Xu-S.js +75 -0
  82. package/dist/OcCheckboxesGroup-CLbquUO2.js +94 -0
  83. package/dist/OcChip-B1hm2Qni.js +144 -0
  84. package/dist/OcComplexCalendar-x-_kg9Yk.js +108 -0
  85. package/dist/OcComplexCalendar.vue_vue_type_style_index_0_lang-CIQPD-6N.js +1006 -0
  86. package/dist/OcConfirmationModal-BfCrRV9r.js +179 -0
  87. package/dist/OcCopyTooltip.vue_vue_type_script_setup_true_lang-S2RAfV_g.js +65 -0
  88. package/dist/OcCriteria-CpIohheZ.js +42 -0
  89. package/dist/OcCropper-31Y_S1Ne.js +240 -0
  90. package/dist/OcCustomerCard-DbDOBO03.js +160 -0
  91. package/dist/OcDraggable-BjhGJmpM.js +35 -0
  92. package/dist/OcDropdownItem-DAElmzEu.js +57 -0
  93. package/dist/OcEmojiPicker-BXm-_OGK.js +157 -0
  94. package/dist/OcEmptyPage-CTwgMzRp.js +155 -0
  95. package/dist/OcExpadingTable.vue_vue_type_script_setup_true_lang-B4HOMDBK.js +815 -0
  96. package/dist/OcFeatureOverviewCard-RVyrWLVW.js +71 -0
  97. package/dist/OcFloatContent-BIKQOxSw.js +142 -0
  98. package/dist/OcFormBuilder-CRXWtt8I.js +177 -0
  99. package/dist/OcGroupOptions-ChGJvTXl.js +16 -0
  100. package/dist/OcHorizontalProgressbar.vue_vue_type_script_setup_true_lang-4eVgPDi5.js +32 -0
  101. package/dist/OcIcon-CJgBICxh.js +63 -0
  102. package/dist/OcInfoCard-DpYUZOMZ.js +81 -0
  103. package/dist/OcInput-tcRxG3Y2.js +227 -0
  104. package/dist/OcInputOption-CncASfNt.js +160 -0
  105. package/dist/OcLinkInput-C2ixk-gk.js +143 -0
  106. package/dist/OcListDetail-6XeME6ko.js +76 -0
  107. package/dist/OcListUrl.vue_vue_type_script_setup_true_lang-BEJafLuT.js +749 -0
  108. package/dist/OcModal-DdD5VFEN.js +187 -0
  109. package/dist/OcModalCropper-D2OI2iun.js +56 -0
  110. package/dist/OcModalPage-BLVa-kcB.js +86 -0
  111. package/dist/OcMultipleUploadFile-B8Wl9Fuq.js +446 -0
  112. package/dist/OcNumberInput.vue_vue_type_script_setup_true_lang-C4EXUIUe.js +90 -0
  113. package/dist/OcOnboardingListItem.vue_vue_type_script_setup_true_lang-Cr80xmnz.js +81 -0
  114. package/dist/OcOption-DK2FBGq7.js +485 -0
  115. package/dist/OcOverviewIcon-D702Ujka.js +55 -0
  116. package/dist/OcOverviewItem-DNr5tWnt.js +186 -0
  117. package/dist/OcPageTitleRight-DMtJ1qmZ.js +243 -0
  118. package/dist/OcPaginationNumber-IKPorX26.js +172 -0
  119. package/dist/OcPaymentTab-Cna1IAhO.js +170 -0
  120. package/dist/OcPhoneInput-AC6BgQhN.js +432 -0
  121. package/dist/OcPopper-C11OgQAj.js +97 -0
  122. package/dist/OcPrimaryActions-D5IprKsQ.js +222 -0
  123. package/dist/OcProgressBar-hiyC5XSc.js +33 -0
  124. package/dist/OcRadio-CRYfNwV9.js +107 -0
  125. package/dist/OcRadioGroup-DgfdWJos.js +76 -0
  126. package/dist/OcRangeInput-C-hoHFhr.js +103 -0
  127. package/dist/OcSandboxBanner.vue_vue_type_script_setup_true_lang-BD0k_8xa.js +37 -0
  128. package/dist/OcSectionItem-BFgxO3se.js +84 -0
  129. package/dist/OcSelectOptions-BQlG_EUA.js +148 -0
  130. package/dist/OcShareIcon-BB-NPq0r.js +53 -0
  131. package/dist/OcSingleFileUpload-B8-e1H5t.js +464 -0
  132. package/dist/OcSkeleton-BdPTmGh0.js +13 -0
  133. package/dist/OcSlider-Bsi-ckbP.js +124 -0
  134. package/dist/OcSnackbar-CKxY1-ej.js +196 -0
  135. package/dist/OcSteps.vue_vue_type_script_setup_true_lang-CXGy8ma_.js +87 -0
  136. package/dist/OcSubSidebar.vue_vue_type_script_setup_true_lang-CNxgU07N.js +60 -0
  137. package/dist/OcSupportMenu.vue_vue_type_script_setup_true_lang-DrjZsWti.js +114 -0
  138. package/dist/OcSwitchTabs-CYp676bj.js +31 -0
  139. package/dist/OcTabToSelect-BHAz1Niv.js +183 -0
  140. package/dist/OcTag.vue_vue_type_script_setup_true_lang-D19lw-8Y.js +26 -0
  141. package/dist/OcTextArea-BpV1Bnj_.js +78 -0
  142. package/dist/OcTheme-CWgrJh5Q.js +25 -0
  143. package/dist/OcTimePicker-B61MCi0D.js +110 -0
  144. package/dist/OcTimePopup-zQFKCZLk.js +131 -0
  145. package/dist/OcToggle-C0wTjM_Y.js +54 -0
  146. package/dist/OcTransferSummary-Bk2GXhrT.js +67 -0
  147. package/dist/OcVariant.vue_vue_type_script_setup_true_lang-CY_82DLc.js +99 -0
  148. package/dist/OcVerificationOption.vue_vue_type_script_setup_true_lang-ChqvNoDe.js +59 -0
  149. package/dist/OcWhiteList.vue_vue_type_script_setup_true_lang-DI9pYU3w.js +64 -0
  150. package/dist/OnboardingAccordion.vue_vue_type_script_setup_true_lang-B0Z7ETmj.js +113 -0
  151. package/dist/Overlay/ConfirmationModal/OcConfirmationModal.js +4 -0
  152. package/dist/Overlay/CopyTooltip/OcCopyTooltip.js +4 -0
  153. package/dist/Overlay/Dropdown/OcDropdown.js +6 -0
  154. package/dist/Overlay/Modal/OcModal.js +6 -0
  155. package/dist/Overlay/Popper/OcPopper.js +4 -0
  156. package/dist/Overlay/SupportMenu/OcSupportMenu.js +4 -0
  157. package/dist/Overlay/Tooltip/OcTooltip.js +4 -0
  158. package/dist/Overlay/Whitelist/OcWhiteList.js +4 -0
  159. package/dist/StoreDesign.js +240 -0
  160. package/dist/Theme/OcTheme.js +4 -0
  161. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
  162. package/dist/composables/helpers.js +48 -0
  163. package/dist/composables/uploadFileProgress.js +62 -0
  164. package/dist/composables/useWindowWidth.js +10 -0
  165. package/dist/data/Validator.js +5 -0
  166. package/dist/directives/clickOutside.js +13 -0
  167. package/dist/index.js +177 -1
  168. package/dist/style.css +1 -0
  169. package/package.json +23 -5
@@ -0,0 +1,6 @@
1
+ import { _ as t } from "../../OcInput-tcRxG3Y2.js";
2
+ import { _ as n } from "../../OcInputOption-CncASfNt.js";
3
+ export {
4
+ t as Input,
5
+ n as InputOption
6
+ };
@@ -0,0 +1,4 @@
1
+ import { _ as p } from "../../OcLinkInput-C2ixk-gk.js";
2
+ export {
3
+ p as LinkInput
4
+ };
@@ -0,0 +1,4 @@
1
+ import { _ as o } from "../../OcMultipleUploadFile-B8Wl9Fuq.js";
2
+ export {
3
+ o as MultipleUploadFile
4
+ };
@@ -0,0 +1,4 @@
1
+ import { _ as m } from "../../OcNumberInput.vue_vue_type_script_setup_true_lang-C4EXUIUe.js";
2
+ export {
3
+ m as NumberInput
4
+ };
@@ -0,0 +1,4 @@
1
+ import { _ as n } from "../../OcPhoneInput-AC6BgQhN.js";
2
+ export {
3
+ n as PhoneInput
4
+ };
@@ -0,0 +1,4 @@
1
+ import { _ as r } from "../../OcRadio-CRYfNwV9.js";
2
+ export {
3
+ r as Radio
4
+ };
@@ -0,0 +1,4 @@
1
+ import { _ as a } from "../../OcRadioGroup-DgfdWJos.js";
2
+ export {
3
+ a as RadioGroup
4
+ };
@@ -0,0 +1,4 @@
1
+ import { _ as n } from "../../OcRangeInput-C-hoHFhr.js";
2
+ export {
3
+ n as RangeInput
4
+ };
@@ -0,0 +1,4 @@
1
+ import { _ as t } from "../../OcSectionItem-BFgxO3se.js";
2
+ export {
3
+ t as SectionItem
4
+ };
@@ -0,0 +1,7 @@
1
+ import { a as r, _ as t } from "../../OcOption-DK2FBGq7.js";
2
+ import { _ as e } from "../../OcGroupOptions-ChGJvTXl.js";
3
+ export {
4
+ e as GroupOptions,
5
+ r as Option,
6
+ t as Select
7
+ };
@@ -0,0 +1,4 @@
1
+ import { _ as t } from "../../OcSelectOptions-BQlG_EUA.js";
2
+ export {
3
+ t as SelectOptions
4
+ };
@@ -0,0 +1,4 @@
1
+ import { _ as o } from "../../OcSingleFileUpload-B8-e1H5t.js";
2
+ export {
3
+ o as SingleFileUpload
4
+ };
@@ -0,0 +1,4 @@
1
+ import { S as o } from "../../OcSlider-Bsi-ckbP.js";
2
+ export {
3
+ o as Slider
4
+ };
@@ -0,0 +1,4 @@
1
+ import { _ as a } from "../../OcTextArea-BpV1Bnj_.js";
2
+ export {
3
+ a as TextArea
4
+ };
@@ -0,0 +1,6 @@
1
+ import { default as r } from "../../OcTimePopup-zQFKCZLk.js";
2
+ import { _ as p } from "../../OcTimePicker-B61MCi0D.js";
3
+ export {
4
+ p as TimePicker,
5
+ r as TimePopup
6
+ };
@@ -0,0 +1,4 @@
1
+ import { T as g } from "../../OcToggle-C0wTjM_Y.js";
2
+ export {
3
+ g as Toggle
4
+ };
@@ -0,0 +1,54 @@
1
+ import { _ as e, B as t, b as p, a } from "../OcComplexCalendar.vue_vue_type_style_index_0_lang-CIQPD-6N.js";
2
+ import { _ as m } from "../OcCardInput-BFE4Xu-S.js";
3
+ import { _ as f } from "../OcCheckboxesGroup-CLbquUO2.js";
4
+ import { _ as i } from "../OcCriteria-CpIohheZ.js";
5
+ import { _ as u } from "../OcInput-tcRxG3Y2.js";
6
+ import { _ as I } from "../OcInputOption-CncASfNt.js";
7
+ import { _ as c } from "../OcPhoneInput-AC6BgQhN.js";
8
+ import { _ as k } from "../OcRadio-CRYfNwV9.js";
9
+ import { _ as T } from "../OcRadioGroup-DgfdWJos.js";
10
+ import { _ as g } from "../OcRangeInput-C-hoHFhr.js";
11
+ import { a as P, _ as h } from "../OcOption-DK2FBGq7.js";
12
+ import { _ as G } from "../OcGroupOptions-ChGJvTXl.js";
13
+ import { T as F } from "../OcToggle-C0wTjM_Y.js";
14
+ import { _ as A } from "../OcLinkInput-C2ixk-gk.js";
15
+ import { _ as L } from "../OcTextArea-BpV1Bnj_.js";
16
+ import { _ as N } from "../DatePicker-D3w435Ml.js";
17
+ import { default as q } from "../OcTimePopup-zQFKCZLk.js";
18
+ import { _ as w } from "../OcTimePicker-B61MCi0D.js";
19
+ import { S as z } from "../OcSlider-Bsi-ckbP.js";
20
+ import { _ as H } from "../OcSectionItem-BFgxO3se.js";
21
+ import { _ as K } from "../OcSelectOptions-BQlG_EUA.js";
22
+ import { _ as V } from "../OcSingleFileUpload-B8-e1H5t.js";
23
+ import { _ as X } from "../OcMultipleUploadFile-B8Wl9Fuq.js";
24
+ import { _ as Z } from "../OcNumberInput.vue_vue_type_script_setup_true_lang-C4EXUIUe.js";
25
+ export {
26
+ e as BaseInput,
27
+ t as Button,
28
+ p as Calendar,
29
+ m as CardInput,
30
+ a as Checkbox,
31
+ f as CheckboxesGroup,
32
+ i as Criteria,
33
+ N as DatePicker,
34
+ G as GroupOptions,
35
+ u as Input,
36
+ I as InputOption,
37
+ A as LinkInput,
38
+ X as MultipleUploadFile,
39
+ Z as NumberInput,
40
+ P as Option,
41
+ c as PhoneInput,
42
+ k as Radio,
43
+ T as RadioGroup,
44
+ g as RangeInput,
45
+ H as SectionItem,
46
+ h as Select,
47
+ K as SelectOptions,
48
+ V as SingleFileUpload,
49
+ z as Slider,
50
+ L as TextArea,
51
+ w as TimePicker,
52
+ q as TimePopup,
53
+ F as Toggle
54
+ };
@@ -0,0 +1,4 @@
1
+ import { _ as e } from "../OcFormBuilder-CRXWtt8I.js";
2
+ export {
3
+ e as FormBuilder
4
+ };
@@ -0,0 +1,4 @@
1
+ import { _ as o } from "../../OcAvatar-NDXQiZvz.js";
2
+ export {
3
+ o as Avatar
4
+ };
@@ -0,0 +1,4 @@
1
+ import { _ as a } from "../../OcIcon-CJgBICxh.js";
2
+ export {
3
+ a as Icon
4
+ };
@@ -0,0 +1,101 @@
1
+ import { ref as u, watch as b, onUpdated as y, openBlock as l, createElementBlock as x, normalizeClass as a, createElementVNode as n, renderSlot as s, createTextVNode as c, toDisplayString as m, createBlock as p, unref as f, createCommentVNode as h, nextTick as g } from "vue";
2
+ import "dayjs";
3
+ import "./OcComplexCalendar.vue_vue_type_style_index_0_lang-CIQPD-6N.js";
4
+ import { _ as E } 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
+ const I = {
14
+ __name: "OcAccordion",
15
+ props: {
16
+ header: {
17
+ type: String,
18
+ default: ""
19
+ },
20
+ headerStyle: {
21
+ type: String,
22
+ default: ""
23
+ },
24
+ body: {
25
+ type: String,
26
+ default: ""
27
+ },
28
+ bodyStyle: {
29
+ type: String,
30
+ default: ""
31
+ },
32
+ icon: {
33
+ type: String,
34
+ default: "chevron-down"
35
+ },
36
+ showIcon: {
37
+ type: Boolean,
38
+ default: !0
39
+ },
40
+ isAnimated: {
41
+ type: Boolean,
42
+ default: !0
43
+ },
44
+ isExpandable: {
45
+ type: Boolean,
46
+ default: !1
47
+ },
48
+ isDisabled: {
49
+ type: Boolean,
50
+ default: !1
51
+ }
52
+ },
53
+ emits: {
54
+ "update:isExpandable": []
55
+ },
56
+ setup(e) {
57
+ const i = u(), o = e, r = async (t) => {
58
+ await g(), i.value && (i.value.style.maxHeight = t ? "max-content" : "0");
59
+ };
60
+ return b(() => o.isExpandable, r), y(() => {
61
+ r(o.isExpandable);
62
+ }), (t, d) => (l(), x("div", {
63
+ class: a(e.isDisabled && "opacity-60")
64
+ }, [
65
+ n("div", null, [
66
+ n("div", {
67
+ class: a(["border-oc-accent-1-50 py-3 text-sm border z-10 justify-between px-4 gap-x-3 flex hover:border-oc-gray-200 items-center w-full text-oc-text", [
68
+ e.isExpandable ? "rounded-t border-oc-gray-200" : "rounded border-transparent",
69
+ e.headerStyle
70
+ ]]),
71
+ onClick: d[0] || (d[0] = (v) => o.isDisabled ? null : t.$emit("update:isExpandable", !o.isExpandable))
72
+ }, [
73
+ s(t.$slots, "header", {}, () => [
74
+ c(m(e.header), 1)
75
+ ]),
76
+ e.showIcon ? (l(), p(f(E), {
77
+ key: 0,
78
+ name: e.icon,
79
+ class: a(["text-oc-text-400 w-4 h-4 shrink-0", [e.isExpandable && "-rotate-180", e.isAnimated && "transition-all duration-300"]])
80
+ }, null, 8, ["name", "class"])) : h("", !0)
81
+ ], 2),
82
+ n("div", {
83
+ ref_key: "upcomingAccordion",
84
+ ref: i,
85
+ class: a(["max-h-0", [e.isAnimated && "transition-all duration-300", !e.isExpandable && "overflow-hidden"]])
86
+ }, [
87
+ n("div", {
88
+ class: a(["text-oc-text text-sm p-4 rounded-b z-0 border-x border-b", [e.isExpandable ? "border-oc-gray-200" : " border-transparent", e.bodyStyle]])
89
+ }, [
90
+ s(t.$slots, "body", {}, () => [
91
+ c(m(e.body), 1)
92
+ ])
93
+ ], 2)
94
+ ], 2)
95
+ ])
96
+ ], 2));
97
+ }
98
+ };
99
+ export {
100
+ I as _
101
+ };
@@ -0,0 +1,324 @@
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
+ };