@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,612 @@
1
+ import { openBlock as o, createElementBlock as n, normalizeClass as w, createVNode as m, unref as i, createElementVNode as c, toDisplayString as h, createBlock as f, normalizeProps as C, mergeProps as x, createCommentVNode as y, createTextVNode as L, Fragment as g, renderList as v, ref as P, withCtx as l, createSlots as $, renderSlot as p, defineComponent as E, Transition as I, guardReactiveProps as T } from "vue";
2
+ import "dayjs";
3
+ import { B as k, D as M, T as A } from "./OcComplexCalendar.vue_vue_type_style_index_0_lang-CIQPD-6N.js";
4
+ import { a as z, _ as H } from "./OcPrimaryActions-D5IprKsQ.js";
5
+ import { _ as j } from "./OcChip-B1hm2Qni.js";
6
+ import { S as B } from "./OcSkeleton-BdPTmGh0.js";
7
+ import "libphonenumber-js";
8
+ /* empty css */
9
+ import "v-calendar";
10
+ /* empty css */
11
+ import "./Cropper.js";
12
+ import "vue-draggable-next";
13
+ import "@popperjs/core";
14
+ import { _ as N } from "./OcDropdownItem-DAElmzEu.js";
15
+ import { _ as U, a as O } from "./OcOverviewItem-DNr5tWnt.js";
16
+ /* empty css */
17
+ import { C as V } from "./OcCustomerCard-DbDOBO03.js";
18
+ import { _ as D } from "./OcIcon-CJgBICxh.js";
19
+ import { _ as F } from "./_plugin-vue_export-helper-CHgC5LLL.js";
20
+ const R = {
21
+ key: 0,
22
+ class: "min-w-[138px] flex flex-col gap-y-3"
23
+ }, q = {
24
+ key: 1,
25
+ class: "flex gap-x-4 items-center"
26
+ }, G = { class: "flex flex-col gap-y-2" }, J = { class: "flex items-center gap-x-2" }, K = { class: "text-oc-text-400 text-sm" }, Q = {
27
+ key: 0,
28
+ class: "flex justify-center items-center w-[38px] h-[38px] shrink-0 rounded-full bg-oc-gray-100"
29
+ }, W = {
30
+ __name: "OcInfoCardButton",
31
+ props: {
32
+ isActive: Boolean,
33
+ isLoading: Boolean,
34
+ title: String,
35
+ content: String,
36
+ isDropdown: Boolean,
37
+ chipOptions: Object,
38
+ dropdownOptions: Object,
39
+ countryIso: String
40
+ },
41
+ setup(e) {
42
+ return (s, d) => (o(), n("div", {
43
+ class: w(["cursor-pointer rounded group font-medium justify-center border gap-y-2 md:w-fit w-full flex flex-col hover:shadow-normal", [
44
+ e.isActive && !e.isLoading ? "border-b-[3px] border-oc-primary" : "border-oc-accent-1-100",
45
+ e.isLoading ? "p-3" : "px-5 py-4 min-h-[62px] max-h-[76px]"
46
+ ]])
47
+ }, [
48
+ e.isLoading ? (o(), n("div", R, [
49
+ m(i(B), { class: "h-[14px] w-[80%] rounded-sm" }),
50
+ m(i(B), { class: "h-[20px] w-full rounded-sm" })
51
+ ])) : (o(), n("div", q, [
52
+ c("div", G, [
53
+ c("div", J, [
54
+ c("span", K, h(e.title), 1),
55
+ e.chipOptions ? (o(), f(i(j), C(x({ key: 0 }, e.chipOptions)), null, 16)) : y("", !0)
56
+ ]),
57
+ c("span", {
58
+ class: w(["flex gap-x-4 items-center text-xl group-hover:text-oc-text", e.isActive ? "text-oc-text" : "text-oc-text-400"])
59
+ }, [
60
+ e.countryIso ? (o(), n("div", Q, [
61
+ c("div", {
62
+ class: w(["fi !w-[24px] !h-[16px] !rounded-[1px]", `fi-${e.countryIso}`])
63
+ }, null, 2)
64
+ ])) : y("", !0),
65
+ L(" " + h(e.content), 1)
66
+ ], 2)
67
+ ]),
68
+ e.isDropdown ? (o(), f(i(k), C(x({ key: 0 }, e.dropdownOptions)), null, 16)) : y("", !0)
69
+ ]))
70
+ ], 2));
71
+ }
72
+ }, X = { class: "flex items-center gap-x-4 overflow-hidden" }, Y = { class: "flex gap-x-2 overflow-auto" }, Z = ["alt", "src"], _ = {
73
+ __name: "OcPaymentMethods",
74
+ props: {
75
+ methods: {
76
+ type: Array,
77
+ default: () => []
78
+ }
79
+ },
80
+ setup(e) {
81
+ return (s, d) => (o(), n("div", X, [
82
+ d[0] || (d[0] = c("span", { class: "text-xs shrink-0 font-medium text-oc-text-300 uppercase" }, " Payment methods ", -1)),
83
+ c("div", Y, [
84
+ (o(!0), n(g, null, v(e.methods, (t) => (o(), n("img", {
85
+ key: t,
86
+ width: "35",
87
+ alt: t,
88
+ height: "24",
89
+ src: t
90
+ }, null, 8, Z))), 128))
91
+ ])
92
+ ]));
93
+ }
94
+ }, ee = { class: "flex justify-between md:flex-row flex-col gap-y-3 gap-x-4 md:gap-y-0" }, te = { key: 2 }, oe = {
95
+ key: 4,
96
+ class: "flex shrink-0 gap-x-3"
97
+ }, se = {
98
+ __name: "OcTopActions",
99
+ props: {
100
+ moreButtonProps: Object,
101
+ paymentMethods: {
102
+ type: Array,
103
+ default: () => []
104
+ },
105
+ secondaryButtonProps: Object,
106
+ isLoading: Boolean,
107
+ dropdownItems: {
108
+ type: Array,
109
+ default: () => []
110
+ },
111
+ dropdownProps: {
112
+ type: Object,
113
+ default: () => ({})
114
+ }
115
+ },
116
+ setup(e) {
117
+ const s = P(!1);
118
+ return (d, t) => {
119
+ var r;
120
+ return o(), n("div", ee, [
121
+ e.isLoading ? (o(), f(i(B), {
122
+ key: 0,
123
+ class: "h-[20px] w-[322px] rounded-sm"
124
+ })) : y("", !0),
125
+ !e.isLoading && e.paymentMethods.length ? (o(), f(_, {
126
+ key: 1,
127
+ methods: e.paymentMethods
128
+ }, null, 8, ["methods"])) : (o(), n("div", te)),
129
+ e.isLoading ? (o(), f(i(B), {
130
+ key: 3,
131
+ class: "h-[20px] w-[168px] rounded-sm"
132
+ })) : (o(), n("div", oe, [
133
+ m(i(M), x({
134
+ modelValue: s.value,
135
+ "onUpdate:modelValue": t[0] || (t[0] = (a) => s.value = a),
136
+ "popper-options": { strategy: "fixed" },
137
+ placement: "bottom",
138
+ class: "text-sm"
139
+ }, e.dropdownProps), {
140
+ menu: l(() => [
141
+ (o(!0), n(g, null, v(e.dropdownItems, (a, u) => (o(), f(i(N), x({
142
+ key: u,
143
+ ref_for: !0
144
+ }, a), null, 16))), 128))
145
+ ]),
146
+ default: l(() => [
147
+ m(i(k), x({
148
+ "left-icon": "dots-vertical",
149
+ variant: "secondary"
150
+ }, e.moreButtonProps), null, 16)
151
+ ]),
152
+ _: 1
153
+ }, 16, ["modelValue"]),
154
+ m(i(A), {
155
+ "popper-options": { strategy: "fixed" },
156
+ position: "top"
157
+ }, $({
158
+ default: l(() => [
159
+ m(i(k), x({
160
+ variant: "secondary",
161
+ label: "Top up balance"
162
+ }, e.secondaryButtonProps), null, 16)
163
+ ]),
164
+ _: 2
165
+ }, [
166
+ (r = e.secondaryButtonProps) != null && r.tooltip ? {
167
+ name: "popper",
168
+ fn: l(() => [
169
+ L(h(e.secondaryButtonProps.tooltip), 1)
170
+ ]),
171
+ key: "0"
172
+ } : void 0
173
+ ]), 1024)
174
+ ]))
175
+ ]);
176
+ };
177
+ }
178
+ }, ne = { class: "flex flex-col gap-y-5" }, ae = { class: "flex gap-x-5 overflow-x-auto" }, ie = {
179
+ __name: "OcBalanceOverview",
180
+ props: {
181
+ overviewItems: {
182
+ type: Array,
183
+ default: () => []
184
+ },
185
+ overviewTabs: {
186
+ type: Array,
187
+ default: () => []
188
+ },
189
+ overviewActiveTab: {
190
+ type: String,
191
+ default: ""
192
+ },
193
+ secondaryButtonProps: Object,
194
+ moreButtonProps: Object,
195
+ containerClass: String,
196
+ dropdownItems: {
197
+ type: Array,
198
+ default: () => []
199
+ },
200
+ paymentMethods: {
201
+ type: Array,
202
+ default: () => []
203
+ },
204
+ isLoading: Boolean,
205
+ dropdownProps: {
206
+ type: Object,
207
+ default: () => ({})
208
+ }
209
+ },
210
+ emits: {
211
+ changeTab: []
212
+ },
213
+ setup(e) {
214
+ return (s, d) => (o(), n("div", ne, [
215
+ c("div", ae, [
216
+ (o(!0), n(g, null, v(e.isLoading ? 2 : e.overviewTabs, (t) => p(s.$slots, t.value, { tab: t }, () => [
217
+ (o(), f(W, {
218
+ key: t.value,
219
+ title: t.title,
220
+ "is-loading": e.isLoading,
221
+ content: t.content,
222
+ "chip-options": t.chipOptions,
223
+ "is-dropdown": t.isDropdown,
224
+ "dropdown-options": t.dropdownOptions,
225
+ "is-active": t.value === e.overviewActiveTab,
226
+ "country-iso": t.countryIso,
227
+ onClick: (r) => s.$emit("changeTab", t.value)
228
+ }, null, 8, ["title", "is-loading", "content", "chip-options", "is-dropdown", "dropdown-options", "is-active", "country-iso", "onClick"]))
229
+ ])), 256))
230
+ ]),
231
+ d[0] || (d[0] = c("div", { class: "border-t border-oc-gray-200" }, null, -1)),
232
+ m(se, {
233
+ "is-loading": e.isLoading,
234
+ "more-button-props": e.moreButtonProps,
235
+ "secondary-button-props": e.secondaryButtonProps,
236
+ "payment-methods": e.paymentMethods,
237
+ "dropdown-items": e.dropdownItems,
238
+ "dropdown-props": e.dropdownProps
239
+ }, null, 8, ["is-loading", "more-button-props", "secondary-button-props", "payment-methods", "dropdown-items", "dropdown-props"]),
240
+ m(i(U), {
241
+ "is-loading": e.isLoading,
242
+ title: "",
243
+ items: e.overviewItems,
244
+ "container-class": e.containerClass
245
+ }, {
246
+ warning: l(() => [
247
+ p(s.$slots, "warning")
248
+ ]),
249
+ _: 3
250
+ }, 8, ["is-loading", "items", "container-class"])
251
+ ]));
252
+ }
253
+ }, re = {}, le = { class: "flex gap-x-5 md:flex-nowrap flex-wrap p-3 md:items-center bg-oc-gray-50 border border-oc-gray-200 rounded overflow-hidden" };
254
+ function de(e, s) {
255
+ return o(), n("div", le, [
256
+ p(e.$slots, "default")
257
+ ]);
258
+ }
259
+ const S = /* @__PURE__ */ F(re, [["render", de]]), ce = { class: "flex" }, ue = {
260
+ key: 0,
261
+ class: "p-2"
262
+ }, me = { class: "py-2 px-3" }, fe = {
263
+ key: 0,
264
+ class: "max-w-[250px] fixed z-[1006] top-0 right-0 transition-all duration-500 flex flex-col gap-y-2 w-full bg-white h-screen overflow-y-auto"
265
+ }, ye = { class: "p-5 flex items-center justify-between" }, pe = { class: "px-5 flex-1 flex flex-col gap-y-5" }, ve = /* @__PURE__ */ E({
266
+ __name: "MobileDynamicType",
267
+ props: {
268
+ boxes: { type: Array, default: () => [] },
269
+ isCustomer: { type: Boolean, default: !1 },
270
+ customerCardVariant: { type: String, default: "big" },
271
+ customer: { type: Object, default: null }
272
+ },
273
+ emits: ["addCustomer"],
274
+ setup(e) {
275
+ const s = P(!1);
276
+ return (d, t) => (o(), n("div", null, [
277
+ m(S, { class: "!flex-nowrap flex-col w-full" }, {
278
+ default: l(() => [
279
+ c("div", ce, [
280
+ (o(!0), n(g, null, v(e.boxes[0].items.slice(0, 2), (r, a) => (o(), f(i(O), {
281
+ key: a,
282
+ "is-transparent": "",
283
+ title: r.title,
284
+ content: r.content
285
+ }, {
286
+ default: l(() => [
287
+ d.box.showInfo ? (o(), n("div", ue, [
288
+ m(i(A), null, {
289
+ popper: l(() => [
290
+ c("div", me, h(d.box.infoTooltip), 1)
291
+ ]),
292
+ default: l(() => [
293
+ m(i(D), {
294
+ width: "16",
295
+ height: "16",
296
+ class: "!w-[20px] !h-[20px] text-oc-text-300",
297
+ name: "information"
298
+ })
299
+ ]),
300
+ _: 1
301
+ })
302
+ ])) : y("", !0)
303
+ ]),
304
+ _: 2
305
+ }, 1032, ["title", "content"]))), 128))
306
+ ]),
307
+ m(i(k), {
308
+ class: "self-start px-3",
309
+ label: "See details ->",
310
+ size: "small",
311
+ "is-transparent": "",
312
+ onClick: t[0] || (t[0] = (r) => s.value = !0)
313
+ })
314
+ ]),
315
+ _: 1
316
+ }),
317
+ m(I, { name: "slow-fade" }, {
318
+ default: l(() => [
319
+ s.value ? (o(), n("div", {
320
+ key: 0,
321
+ class: "fixed z-[1005] top-0 left-0 w-screen flex justify-end h-screen bg-black/[.45]",
322
+ onClick: t[1] || (t[1] = (r) => s.value = !1)
323
+ })) : y("", !0)
324
+ ]),
325
+ _: 1
326
+ }),
327
+ m(I, { name: "slide-from-right" }, {
328
+ default: l(() => [
329
+ s.value ? (o(), n("div", fe, [
330
+ c("div", ye, [
331
+ t[4] || (t[4] = c("span", { class: "font-medium" }, "Details", -1)),
332
+ m(i(k), {
333
+ size: "small",
334
+ "left-icon": "x",
335
+ label: "Close",
336
+ "is-transparent": "",
337
+ class: "px-3",
338
+ variant: "secondary",
339
+ onClick: t[2] || (t[2] = (r) => s.value = !1)
340
+ })
341
+ ]),
342
+ c("div", pe, [
343
+ (o(!0), n(g, null, v(e.boxes, (r, a) => (o(), f(S, { key: a }, {
344
+ default: l(() => [
345
+ (o(!0), n(g, null, v(r.items, (u, b) => (o(), f(i(O), x({
346
+ key: `${a}-${b}`,
347
+ "is-transparent": "",
348
+ title: u.title,
349
+ content: u.content,
350
+ class: u.class,
351
+ "is-loading": u.isLoading,
352
+ ref_for: !0
353
+ }, u), $({ _: 2 }, [
354
+ u.slot && d.$slots[u.slot] ? {
355
+ name: "content",
356
+ fn: l(() => [
357
+ p(d.$slots, u.slot, {
358
+ data: u.content
359
+ })
360
+ ]),
361
+ key: "0"
362
+ } : void 0
363
+ ]), 1040, ["title", "content", "class", "is-loading"]))), 128))
364
+ ]),
365
+ _: 2
366
+ }, 1024))), 128)),
367
+ e.isCustomer ? (o(), f(i(V), {
368
+ key: 0,
369
+ variant: e.customerCardVariant,
370
+ customer: e.customer,
371
+ onAddCustomer: t[3] || (t[3] = (r) => d.$emit("addCustomer"))
372
+ }, null, 8, ["variant", "customer"])) : y("", !0)
373
+ ])
374
+ ])) : y("", !0)
375
+ ]),
376
+ _: 3
377
+ })
378
+ ]));
379
+ }
380
+ }), ge = { class: "hidden md:flex md:gap-5 gap-3 md:flex-row flex-col" }, xe = { class: "py-2 px-3" }, we = {
381
+ __name: "OcDynamicType",
382
+ props: {
383
+ boxes: { type: Array, default: () => [] },
384
+ isCustomer: { type: Boolean, default: !1 },
385
+ customerCardVariant: { type: String, default: "big" },
386
+ customer: { type: Object, default: null },
387
+ customerIsHover: { type: Boolean, default: !1 },
388
+ customerIsEdit: { type: Boolean, default: !1 }
389
+ },
390
+ emits: ["addCustomer", "editCustomer"],
391
+ setup(e) {
392
+ return (s, d) => (o(), n(g, null, [
393
+ c("div", ge, [
394
+ (o(!0), n(g, null, v(e.boxes, (t, r) => (o(), f(S, {
395
+ key: r,
396
+ class: w(
397
+ (e.isCustomer ? "!grid grid-cols-4 grid-rows-2 gap-y-4 w-full !py-4 " : " ") + (t == null ? void 0 : t.style)
398
+ )
399
+ }, {
400
+ default: l(() => [
401
+ t.slot && s.$slots[t.slot] ? p(s.$slots, t.slot, {
402
+ key: 0,
403
+ data: { ...t, key: r }
404
+ }) : (o(!0), n(g, { key: 1 }, v(t.items, (a, u) => (o(), f(i(O), x({
405
+ key: `${r}-${u}`,
406
+ "is-transparent": "",
407
+ title: a.title,
408
+ class: a.class,
409
+ "is-loading": a.isLoading,
410
+ content: a.content,
411
+ ref_for: !0
412
+ }, a), $({ _: 2 }, [
413
+ a.slot && s.$slots[a.slot] ? {
414
+ name: "content",
415
+ fn: l(() => [
416
+ p(s.$slots, a.slot, {
417
+ data: a.content
418
+ })
419
+ ]),
420
+ key: "0"
421
+ } : void 0
422
+ ]), 1040, ["title", "class", "is-loading", "content"]))), 128)),
423
+ t.showInfo ? (o(), n("div", {
424
+ key: 2,
425
+ class: w(["p-2", t.infoTooltipStyle])
426
+ }, [
427
+ m(i(A), { "popper-options": { strategy: "fixed" } }, {
428
+ popper: l(() => [
429
+ p(s.$slots, t.infoTooltipSlot, {}, () => [
430
+ c("div", xe, h(t.infoTooltip), 1)
431
+ ])
432
+ ]),
433
+ default: l(() => [
434
+ m(i(D), {
435
+ width: "16",
436
+ height: "16",
437
+ class: "!w-[20px] !h-[20px] text-oc-text-300",
438
+ name: "information"
439
+ })
440
+ ]),
441
+ _: 2
442
+ }, 1024)
443
+ ], 2)) : y("", !0)
444
+ ]),
445
+ _: 2
446
+ }, 1032, ["class"]))), 128)),
447
+ e.isCustomer ? (o(), f(i(V), {
448
+ key: 0,
449
+ variant: e.customerCardVariant,
450
+ customer: e.customer,
451
+ "is-hover": e.customerIsHover,
452
+ "is-edit": e.customerIsEdit,
453
+ class: "max-w-[300px]",
454
+ onAddCustomer: d[0] || (d[0] = (t) => s.$emit("addCustomer")),
455
+ onEditCustomer: d[1] || (d[1] = (t) => s.$emit("editCustomer", t))
456
+ }, $({ _: 2 }, [
457
+ s.$slots["customer-leading"] ? {
458
+ name: "leading",
459
+ fn: l(() => [
460
+ p(s.$slots, "customer-leading")
461
+ ]),
462
+ key: "0"
463
+ } : void 0,
464
+ s.$slots["customer-bottom"] ? {
465
+ name: "bottom",
466
+ fn: l(() => [
467
+ p(s.$slots, "customer-bottom")
468
+ ]),
469
+ key: "1"
470
+ } : void 0
471
+ ]), 1032, ["variant", "customer", "is-hover", "is-edit"])) : y("", !0)
472
+ ]),
473
+ m(ve, {
474
+ class: "flex md:hidden",
475
+ boxes: e.boxes,
476
+ "is-customer": e.isCustomer,
477
+ "customer-card-variant": e.customerCardVariant,
478
+ customer: e.customer,
479
+ onAddCustomer: d[2] || (d[2] = (t) => s.$emit("addCustomer"))
480
+ }, null, 8, ["boxes", "is-customer", "customer-card-variant", "customer"])
481
+ ], 64));
482
+ }
483
+ }, he = { class: "md:pt-5 pt-0 md:px-10 px-5" }, $e = { class: "flex items-center gap-x-3" }, be = { class: "font-medium" }, ke = { class: "flex items-center gap-x-2 max-w-full" }, Ce = ["href"], Be = { class: "truncate" }, Oe = { class: "text-oc-text whitespace-nowrap" }, Je = {
484
+ __name: "OcAdditionalContent",
485
+ props: {
486
+ mainLink: { type: String, default: "" },
487
+ balanceContainerClass: { type: String, default: "" },
488
+ userId: { type: String, default: "" },
489
+ chipVariant: { type: String, default: "" },
490
+ chipLabel: { type: String, default: "" },
491
+ additionalTitle: { type: String, default: "" },
492
+ primaryActions: { type: Object, default: null },
493
+ overviewActiveTab: { type: String, default: "" },
494
+ customerCardVariant: { type: String, default: "" },
495
+ customer: { type: Object, default: null },
496
+ customerIsHover: { type: Boolean, default: !1 },
497
+ customerIsEdit: { type: Boolean, default: !1 },
498
+ variant: {
499
+ type: String,
500
+ default: "default",
501
+ validator: (e) => ["default", "dynamic", "balance"].includes(e)
502
+ },
503
+ boxes: { type: Array, default: () => [] },
504
+ isCustomer: { type: Boolean, default: !1 },
505
+ isLoading: { type: Boolean, default: !1 },
506
+ overviewItems: { type: Array, default: () => [] },
507
+ overviewTabs: { type: Array, default: () => [] },
508
+ secondaryButtonProps: { type: Object, default: null },
509
+ moreButtonProps: { type: Object, default: null },
510
+ dropdownProps: {
511
+ type: Object,
512
+ default: () => ({})
513
+ },
514
+ dropdownItems: { type: Array, default: () => [] },
515
+ paymentMethods: { type: Array, default: () => [] },
516
+ additionalStyling: { type: String, default: "" },
517
+ href: { type: String, default: "" }
518
+ },
519
+ emits: {
520
+ changeTab: [],
521
+ addCustomer: [],
522
+ editCustomer: []
523
+ },
524
+ setup(e) {
525
+ const s = e, d = async () => {
526
+ try {
527
+ await navigator.clipboard.writeText(s.mainLink + s.userId);
528
+ } catch (t) {
529
+ console.error("Unable to copy text to clipboard. Error: ", t);
530
+ }
531
+ };
532
+ return (t, r) => (o(), n("div", he, [
533
+ e.variant === "default" ? (o(), f(z, {
534
+ key: 0,
535
+ description: e.mainLink,
536
+ title: e.additionalTitle,
537
+ class: w(["border rounded md:py-4 py-3 md:px-5 px-4 border-oc-gray-200 bg-oc-gray-50 flex flex-col gap-y-2", e.additionalStyling])
538
+ }, {
539
+ title: l(() => [
540
+ c("div", $e, [
541
+ c("span", be, h(e.additionalTitle), 1),
542
+ e.chipVariant ? (o(), f(i(j), {
543
+ key: 0,
544
+ variant: e.chipVariant,
545
+ label: e.chipLabel
546
+ }, null, 8, ["variant", "label"])) : y("", !0)
547
+ ])
548
+ ]),
549
+ description: l(() => [
550
+ c("div", ke, [
551
+ c("a", {
552
+ href: e.href || `${e.mainLink}${e.userId}`,
553
+ target: "_blank",
554
+ class: "text-oc-text-400 flex items-center overflow-hidden cursor-pointer"
555
+ }, [
556
+ c("div", Be, h(e.mainLink), 1),
557
+ c("div", Oe, h(e.userId), 1)
558
+ ], 8, Ce),
559
+ m(i(H), {
560
+ "primary-actions": e.primaryActions,
561
+ onCopy: d
562
+ }, null, 8, ["primary-actions"])
563
+ ])
564
+ ]),
565
+ _: 1
566
+ }, 8, ["description", "title", "class"])) : e.variant === "dynamic" ? (o(), f(we, {
567
+ key: 1,
568
+ boxes: e.boxes,
569
+ "customer-card-variant": e.customerCardVariant,
570
+ customer: e.customer,
571
+ "is-customer": e.isCustomer,
572
+ "customer-is-hover": e.customerIsHover,
573
+ "customer-is-edit": e.customerIsEdit,
574
+ class: w(e.additionalStyling),
575
+ onAddCustomer: r[0] || (r[0] = (a) => t.$emit("addCustomer")),
576
+ onEditCustomer: r[1] || (r[1] = (a) => t.$emit("editCustomer", a))
577
+ }, $({ _: 2 }, [
578
+ v(t.$slots, (a, u) => ({
579
+ name: u,
580
+ fn: l((b) => [
581
+ p(t.$slots, u, C(T(b)))
582
+ ])
583
+ }))
584
+ ]), 1032, ["boxes", "customer-card-variant", "customer", "is-customer", "customer-is-hover", "customer-is-edit", "class"])) : e.variant === "balance" ? (o(), f(ie, {
585
+ key: 2,
586
+ "overview-items": e.overviewItems,
587
+ "overview-tabs": e.overviewTabs,
588
+ "secondary-button-props": e.secondaryButtonProps,
589
+ "more-button-props": e.moreButtonProps,
590
+ "overview-active-tab": e.overviewActiveTab,
591
+ "container-class": e.balanceContainerClass,
592
+ "payment-methods": e.paymentMethods,
593
+ "dropdown-items": e.dropdownItems,
594
+ "dropdown-props": e.dropdownProps,
595
+ class: w(e.additionalStyling),
596
+ "is-loading": e.isLoading,
597
+ onChangeTab: r[2] || (r[2] = (a) => t.$emit("changeTab", a))
598
+ }, $({ _: 2 }, [
599
+ v(t.$slots, (a, u) => ({
600
+ name: u,
601
+ fn: l((b) => [
602
+ p(t.$slots, u, C(T(b)))
603
+ ])
604
+ }))
605
+ ]), 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"])) : y("", !0)
606
+ ]));
607
+ }
608
+ };
609
+ export {
610
+ Je as _,
611
+ W as a
612
+ };
@@ -0,0 +1,43 @@
1
+ import { defineComponent as c, openBlock as e, createElementBlock as a, normalizeClass as i, createBlock as r, unref as o, createCommentVNode as n, createElementVNode as m, toDisplayString as s, mergeProps as l } from "vue";
2
+ import "dayjs";
3
+ import "./OcComplexCalendar.vue_vue_type_style_index_0_lang-CIQPD-6N.js";
4
+ import { _ as h } from "./OcIcon-CJgBICxh.js";
5
+ import { _ as p } from "./OcChip-B1hm2Qni.js";
6
+ /* empty css */
7
+ import "libphonenumber-js";
8
+ /* empty css */
9
+ import "v-calendar";
10
+ /* empty css */
11
+ import "./Cropper.js";
12
+ import "vue-draggable-next";
13
+ import "@popperjs/core";
14
+ const O = /* @__PURE__ */ c({
15
+ __name: "OcAuthenticationOption",
16
+ props: {
17
+ icon: String,
18
+ width: String,
19
+ height: String,
20
+ iconClass: String,
21
+ title: String,
22
+ isActive: Boolean,
23
+ chipProps: Object
24
+ },
25
+ setup(t) {
26
+ return (g, d) => (e(), a("div", {
27
+ class: i(["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", t.isActive ? "border-oc-primary" : "border-oc-gray-200"])
28
+ }, [
29
+ t.icon ? (e(), r(o(h), {
30
+ key: 0,
31
+ name: t.icon,
32
+ width: t.width,
33
+ height: t.height,
34
+ class: i(t.iconClass)
35
+ }, null, 8, ["name", "width", "height", "class"])) : n("", !0),
36
+ m("span", null, s(t.title), 1),
37
+ t.chipProps ? (e(), r(o(p), l({ key: 1 }, t.chipProps, { class: "absolute top-0 -translate-y-1/2 sm:right-9" }), null, 16)) : n("", !0)
38
+ ], 2));
39
+ }
40
+ });
41
+ export {
42
+ O as _
43
+ };
@@ -0,0 +1,41 @@
1
+ import { computed as s, openBlock as r, createElementBlock as i, normalizeClass as n, normalizeStyle as c, renderSlot as d, createTextVNode as u } from "vue";
2
+ const f = {
3
+ __name: "OcAvatar",
4
+ props: {
5
+ size: {
6
+ type: Number,
7
+ validator: (e) => [64, 48, 40, 32, 24].includes(e),
8
+ default: 32
9
+ },
10
+ type: {
11
+ type: String,
12
+ default: "default",
13
+ validator: (e) => ["business", "default", "image"].includes(e)
14
+ }
15
+ },
16
+ setup(e) {
17
+ const a = s(() => ({
18
+ business: "bg-oc-accent-1 text-oc-text-100",
19
+ default: "bg-oc-gray-800 text-oc-text-100",
20
+ image: "text-oc-text-500",
21
+ icon: "border-oc-gray-100"
22
+ })), l = s(() => ({
23
+ 64: "text-[30px]",
24
+ 48: "text-xl",
25
+ 40: "text-lg",
26
+ 32: "text-base",
27
+ 24: "text-xs"
28
+ }));
29
+ return (o, t) => (r(), i("div", {
30
+ class: n(["rounded-full border border-oc-gray-300 flex items-center font-bold justify-center", [a.value[e.type], l.value[e.size]]]),
31
+ style: c({ width: `${e.size}px`, height: `${e.size}px` })
32
+ }, [
33
+ d(o.$slots, "default", {}, () => [
34
+ t[0] || (t[0] = u("H"))
35
+ ])
36
+ ], 6));
37
+ }
38
+ };
39
+ export {
40
+ f as _
41
+ };