@orchidui/core 0.0.1 → 0.2.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,749 @@
1
+ import { defineComponent as T, useSlots as L, openBlock as s, createElementBlock as i, createElementVNode as t, normalizeClass as v, toDisplayString as g, renderSlot as p, createTextVNode as B, createBlock as h, unref as c, createCommentVNode as d, ref as C, createVNode as b, withCtx as w, Fragment as S, renderList as k, computed as A, onMounted as j, onBeforeUnmount as _, mergeProps as O, withModifiers as N, normalizeStyle as I, withDirectives as E, vShow as F, resolveDynamicComponent as U, createSlots as W, normalizeProps as Y, guardReactiveProps as H } from "vue";
2
+ import q from "dayjs";
3
+ import { D as V, T as G, B as R } from "./OcComplexCalendar.vue_vue_type_style_index_0_lang-CIQPD-6N.js";
4
+ import { _ as $ } 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 J } from "./OcCopyTooltip.vue_vue_type_script_setup_true_lang-S2RAfV_g.js";
14
+ import { _ as M } from "./OcChip-B1hm2Qni.js";
15
+ const K = { class: "flex w-full relative gap-x-5 py-4 before:top-[20px] last:before:top-0 before:h-full before:left-[10px] before:absolute before:border-l" }, Q = { class: "flex gap-x-7 w-full items-center" }, X = { class: "flex flex-1 flex-col gap-y-2" }, Z = { class: "text-sm text-oc-text-400" }, ee = { class: "flex items-end gap-x-2" }, z = /* @__PURE__ */ T({
16
+ __name: "OcTimeLine",
17
+ props: {
18
+ isActive: Boolean,
19
+ title: String,
20
+ description: String,
21
+ icon: String,
22
+ iconClass: String,
23
+ iconText: String,
24
+ iconTextClass: String
25
+ },
26
+ setup(e) {
27
+ return L(), (a, f) => (s(), i("div", K, [
28
+ t("div", null, [
29
+ t("div", {
30
+ class: v(["w-6 h-6 flex z-[1] relative items-center rounded-full justify-center", e.isActive ? "bg-oc-accent-1-50 shadow" : " bg-transparent"])
31
+ }, [
32
+ t("div", {
33
+ class: v(["w-3 h-3 rounded-full", e.isActive ? "bg-oc-primary-500" : " bg-oc-gray-500"])
34
+ }, null, 2)
35
+ ], 2)
36
+ ]),
37
+ t("div", Q, [
38
+ t("div", X, [
39
+ t("span", null, g(e.title), 1),
40
+ t("span", Z, [
41
+ p(a.$slots, "description", {}, () => [
42
+ B(g(e.description), 1)
43
+ ])
44
+ ])
45
+ ]),
46
+ t("div", ee, [
47
+ e.icon ? (s(), h(c($), {
48
+ key: 0,
49
+ name: e.icon,
50
+ class: v(e.iconClass)
51
+ }, null, 8, ["name", "class"])) : d("", !0),
52
+ t("span", {
53
+ class: v(["text-lg font-medium", e.iconTextClass])
54
+ }, [
55
+ p(a.$slots, "iconText", {}, () => [
56
+ B(g(e.iconText), 1)
57
+ ])
58
+ ], 2)
59
+ ])
60
+ ])
61
+ ]));
62
+ }
63
+ }), te = { class: "px-5 py-4 flex flex-col gap-y-5 rounded border border-gray-200 group hover:shadow-normal" }, se = { class: "flex items-center justify-between" }, ne = { class: "flex text-sm text-oc-text-400 items-center gap-x-2" }, ie = {
64
+ key: 0,
65
+ class: "text-base text-oc-text font-medium"
66
+ }, oe = { key: 1 }, le = {
67
+ key: 0,
68
+ class: "flex flex-col gap-y-3"
69
+ }, ae = /* @__PURE__ */ T({
70
+ __name: "OcWebhook",
71
+ props: {
72
+ urls: {
73
+ type: Array,
74
+ default: () => []
75
+ },
76
+ title: String,
77
+ date: String
78
+ },
79
+ emits: ["more"],
80
+ setup(e) {
81
+ const a = C(!1);
82
+ return (f, l) => {
83
+ var o;
84
+ return s(), i("div", te, [
85
+ t("div", se, [
86
+ t("div", ne, [
87
+ e.title ? (s(), i("span", ie, g(e.title), 1)) : d("", !0),
88
+ l[3] || (l[3] = B(" - ")),
89
+ e.date ? (s(), i("span", oe, g(e.date), 1)) : d("", !0)
90
+ ]),
91
+ b(c(V), {
92
+ modelValue: a.value,
93
+ "onUpdate:modelValue": l[2] || (l[2] = (n) => a.value = n)
94
+ }, {
95
+ menu: w(() => [
96
+ t("div", {
97
+ onMouseleave: l[1] || (l[1] = (n) => a.value = !1)
98
+ }, [
99
+ p(f.$slots, "menu")
100
+ ], 32)
101
+ ]),
102
+ default: w(() => [
103
+ b(c($), {
104
+ name: "dots-vertical",
105
+ class: "opacity-0 p-2 group-hover:opacity-100 cursor-pointer active:bg-oc-gray-100 rounded",
106
+ onClick: l[0] || (l[0] = (n) => f.$emit("more"))
107
+ })
108
+ ]),
109
+ _: 3
110
+ }, 8, ["modelValue"])
111
+ ]),
112
+ (o = e.urls) != null && o.length ? (s(), i("div", le, [
113
+ (s(!0), i(S, null, k(e.urls, (n, m) => (s(), h(c(vt), {
114
+ key: m,
115
+ title: n.title,
116
+ url: n.url
117
+ }, null, 8, ["title", "url"]))), 128))
118
+ ])) : d("", !0)
119
+ ]);
120
+ };
121
+ }
122
+ }), re = { class: "p-5 rounded border border-gray-200 max-w-[156px]" }, ce = ["src", "alt"], de = { class: "text-oc-text-400 mt-4" }, ue = /* @__PURE__ */ T({
123
+ __name: "OcLogo",
124
+ props: {
125
+ title: String,
126
+ image: String,
127
+ imageClass: String
128
+ },
129
+ setup(e) {
130
+ return (a, f) => (s(), i("div", re, [
131
+ t("img", {
132
+ src: e.image,
133
+ class: v([e.imageClass, "object-contain"]),
134
+ alt: e.title
135
+ }, null, 10, ce),
136
+ t("div", de, g(e.title), 1),
137
+ p(a.$slots, "default")
138
+ ]));
139
+ }
140
+ }), me = { class: "flex items-center gap-x-5" }, ge = { class: "flex-1 flex items-center gap-x-3 font-medium capitalize" }, pe = { class: "flex flex-col gap-2" }, fe = { class: "flex items-center gap-x-3 overflow-hidden" }, xe = { class: "truncate" }, ve = {
141
+ key: 0,
142
+ class: "flex gap-3"
143
+ }, he = {
144
+ key: 0,
145
+ class: "text-oc-text-400 flex gap-x-2 items-center text-sm font-normal normal-case"
146
+ }, ye = { class: "border opacity-0 group-hover:opacity-100 border-oc-accent-1-100 rounded-sm p-1 flex gap-x-1" }, $e = {
147
+ key: 0,
148
+ class: "flex items-center gap-x-2"
149
+ }, be = ["alt", "src"], we = { class: "py-2 px-3 flex gap-x-2 w-full z-10 relative" }, ke = ["alt", "src"], Se = {
150
+ __name: "OcPayment",
151
+ props: {
152
+ title: {
153
+ type: String,
154
+ default: "Title"
155
+ },
156
+ paymentMethods: {
157
+ type: Array,
158
+ default: () => []
159
+ },
160
+ chips: {
161
+ type: Array,
162
+ default: () => []
163
+ },
164
+ description: String
165
+ },
166
+ emits: ["edit", "delete"],
167
+ setup(e) {
168
+ var r;
169
+ const a = e, f = A(() => {
170
+ var u;
171
+ return ((u = a.paymentMethods) == null ? void 0 : u.length) > n.value;
172
+ }), l = A(
173
+ () => {
174
+ var u, x;
175
+ return (x = a.paymentMethods) == null ? void 0 : x.slice(n.value, (u = a.paymentMethods) == null ? void 0 : u.length);
176
+ }
177
+ ), o = C(), n = C((r = a.paymentMethods) == null ? void 0 : r.length), m = () => {
178
+ var D;
179
+ const u = o.value.clientWidth - 105 - 32 - 4 * ((D = a.paymentMethods) == null ? void 0 : D.length) - 35, x = 35;
180
+ n.value = Math.floor(u / x);
181
+ };
182
+ return j(() => {
183
+ m(), window.addEventListener("resize", m);
184
+ }), _(() => {
185
+ window.removeEventListener("resize", m);
186
+ }), (u, x) => {
187
+ var D;
188
+ return s(), i("div", {
189
+ ref_key: "cardContainer",
190
+ ref: o,
191
+ class: "md:px-5 px-3 md:py-4 py-3 flex flex-col gap-y-4 rounded border border-gray-200 group hover:shadow-normal"
192
+ }, [
193
+ t("div", me, [
194
+ t("div", ge, [
195
+ p(u.$slots, "logo"),
196
+ t("div", pe, [
197
+ t("div", fe, [
198
+ t("span", xe, g(e.title), 1),
199
+ e.chips.length ? (s(), i("div", ve, [
200
+ (s(!0), i(S, null, k(e.chips, (y, P) => (s(), h(c(M), O({
201
+ key: P,
202
+ class: "font-medium",
203
+ ref_for: !0
204
+ }, y), null, 16))), 128))
205
+ ])) : d("", !0)
206
+ ]),
207
+ e.description ? (s(), i("div", he, g(e.description), 1)) : d("", !0)
208
+ ])
209
+ ]),
210
+ p(u.$slots, "right", {}, () => [
211
+ t("div", ye, [
212
+ b(c($), {
213
+ name: "pencil",
214
+ class: "cursor-pointer text-oc-text-400 p-2",
215
+ onClick: x[0] || (x[0] = (y) => u.$emit("edit"))
216
+ }),
217
+ x[2] || (x[2] = t("div", { class: "border-r border-gray-200" }, null, -1)),
218
+ b(c($), {
219
+ name: "bin",
220
+ class: "cursor-pointer text-oc-error p-2",
221
+ onClick: x[1] || (x[1] = (y) => u.$emit("delete"))
222
+ })
223
+ ])
224
+ ])
225
+ ]),
226
+ (D = e.paymentMethods) != null && D.length ? (s(), i("div", $e, [
227
+ x[3] || (x[3] = t("span", { class: "text-sm font-medium text-oc-text-300 whitespace-nowrap" }, "Payment methods", -1)),
228
+ (s(!0), i(S, null, k(e.paymentMethods.slice(0, n.value), (y) => (s(), i("img", {
229
+ key: y.method,
230
+ width: "35",
231
+ height: "24",
232
+ alt: y.method,
233
+ src: y.svg
234
+ }, null, 8, be))), 128)),
235
+ f.value ? (s(), h(c(G), {
236
+ key: 0,
237
+ position: "top-end",
238
+ "popper-options": { strategy: "fixed" }
239
+ }, {
240
+ default: w(({ isShow: y }) => [
241
+ t("div", {
242
+ class: v(["text-sm w-[35px] h-[24px] flex items-center justify-center border rounded-sm font-medium whitespace-nowrap", y ? " bg-white" : "bg-oc-bg-dark"])
243
+ }, " + " + g(e.paymentMethods.length - n.value), 3)
244
+ ]),
245
+ popper: w(() => [
246
+ t("div", we, [
247
+ (s(!0), i(S, null, k(l.value, (y) => (s(), i("img", {
248
+ key: y.method,
249
+ width: "35",
250
+ height: "24",
251
+ alt: y.method,
252
+ src: y.svg
253
+ }, null, 8, ke))), 128))
254
+ ])
255
+ ]),
256
+ _: 1
257
+ })) : d("", !0)
258
+ ])) : d("", !0)
259
+ ], 512);
260
+ };
261
+ }
262
+ }, Te = { class: "flex items-center gap-x-4 w-full" }, Ce = { class: "flex flex-col flex-1 gap-y-3 overflow-hidden" }, De = { class: "flex items-center justify-between" }, Be = { class: "flex text-sm text-oc-text-400 items-center gap-x-3 overflow-hidden" }, Me = {
263
+ key: 0,
264
+ class: "text-base text-oc-text font-medium truncate"
265
+ }, Ae = {
266
+ key: 0,
267
+ class: "flex gap-3 shrink-0"
268
+ }, Oe = {
269
+ key: 0,
270
+ class: "flex flex-col gap-3"
271
+ }, Ve = { class: "text-oc-text-400 flex gap-x-2 items-center text-sm" }, ze = {
272
+ key: 0,
273
+ class: "flex gap-5"
274
+ }, Pe = { class: "font-medium whitespace-nowrap text-oc-text-500 text-sm" }, Le = /* @__PURE__ */ T({
275
+ __name: "OcGeneral",
276
+ props: {
277
+ title: String,
278
+ description: String,
279
+ descriptionIcon: String,
280
+ chips: {
281
+ type: Array,
282
+ default: () => []
283
+ },
284
+ details: {
285
+ type: Array,
286
+ default: () => []
287
+ },
288
+ isDisabled: Boolean,
289
+ isDropdownActionsVisible: {
290
+ type: Boolean,
291
+ default: !0
292
+ },
293
+ isTransparent: Boolean
294
+ },
295
+ emits: ["more"],
296
+ setup(e, { emit: a }) {
297
+ const f = a, l = C(!1), o = () => {
298
+ l.value = !l.value, f("more");
299
+ };
300
+ return (n, m) => (s(), i("div", {
301
+ class: v(["px-5 py-4 rounded border border-gray-200 group", {
302
+ "hover:shadow-normal": !e.isDisabled && !e.isTransparent,
303
+ "border-none !p-0": e.isTransparent
304
+ }]),
305
+ onMouseleave: m[1] || (m[1] = (r) => l.value = !1)
306
+ }, [
307
+ t("div", Te, [
308
+ p(n.$slots, "logo"),
309
+ t("div", Ce, [
310
+ t("div", De, [
311
+ t("div", Be, [
312
+ p(n.$slots, "title", {}, () => [
313
+ e.title ? (s(), i("span", Me, g(e.title), 1)) : d("", !0)
314
+ ]),
315
+ e.chips.length ? (s(), i("div", Ae, [
316
+ (s(!0), i(S, null, k(e.chips, (r, u) => (s(), h(c(M), {
317
+ key: u,
318
+ label: r.label,
319
+ variant: r.variant,
320
+ icon: r.icon,
321
+ "icon-size": r.iconSize,
322
+ "icon-tooltip": r.iconTooltip,
323
+ class: v([r.class, "font-medium shrink-0"])
324
+ }, null, 8, ["label", "variant", "icon", "icon-size", "icon-tooltip", "class"]))), 128))
325
+ ])) : d("", !0)
326
+ ]),
327
+ p(n.$slots, "actions", {}, () => [
328
+ e.isDropdownActionsVisible && !e.isDisabled ? (s(), h(c(V), {
329
+ key: 0,
330
+ modelValue: l.value,
331
+ "onUpdate:modelValue": m[0] || (m[0] = (r) => l.value = r),
332
+ placement: "bottom-end"
333
+ }, {
334
+ menu: w(() => [
335
+ p(n.$slots, "menu")
336
+ ]),
337
+ default: w(() => [
338
+ b(c($), {
339
+ name: "dots-vertical",
340
+ class: "opacity-0 p-2 group-hover:opacity-100 cursor-pointer active:bg-oc-gray-100 rounded",
341
+ onClick: N(o, ["stop"])
342
+ })
343
+ ]),
344
+ _: 3
345
+ }, 8, ["modelValue"])) : d("", !0)
346
+ ])
347
+ ]),
348
+ p(n.$slots, "default", {}, () => [
349
+ e.descriptionIcon || e.description || e.details.length ? (s(), i("div", Oe, [
350
+ t("div", Ve, [
351
+ e.descriptionIcon ? (s(), h(c($), {
352
+ key: 0,
353
+ name: e.descriptionIcon,
354
+ width: "16",
355
+ height: "16",
356
+ class: "text-oc-text-400"
357
+ }, null, 8, ["name"])) : d("", !0),
358
+ B(" " + g(e.description), 1)
359
+ ]),
360
+ e.details.length ? (s(), i("div", ze, [
361
+ (s(!0), i(S, null, k(e.details, (r, u) => (s(), i("div", {
362
+ key: u,
363
+ class: "flex items-center gap-2"
364
+ }, [
365
+ r.country ? (s(), i("div", {
366
+ key: 0,
367
+ class: v(["fi w-[15px] h-[15px] shadow", "fi-" + r.country])
368
+ }, null, 2)) : (s(), h(c($), {
369
+ key: 1,
370
+ name: r.icon,
371
+ width: "16",
372
+ height: "16",
373
+ class: "text-oc-text-400 shrink-0"
374
+ }, null, 8, ["name"])),
375
+ t("div", Pe, g(r.label), 1)
376
+ ]))), 128))
377
+ ])) : d("", !0)
378
+ ])) : d("", !0)
379
+ ])
380
+ ]),
381
+ p(n.$slots, "append")
382
+ ])
383
+ ], 34));
384
+ }
385
+ }), je = ["src"], _e = { class: "flex flex-col gap-y-1 overflow-hidden" }, Ne = { class: "flex items-center justify-between" }, Ie = { class: "flex text-sm text-oc-text-400 items-center gap-x-3" }, Ee = {
386
+ key: 0,
387
+ class: "text-base text-oc-text font-medium"
388
+ }, Fe = {
389
+ key: 1,
390
+ class: "flex gap-3"
391
+ }, Ue = { class: "flex flex-col gap-4" }, We = { class: "text-xs whitespace-nowrap uppercase text-oc-text-300 overflow-hidden text-ellipsis" }, Ye = /* @__PURE__ */ T({
392
+ __name: "OcTerminal",
393
+ props: {
394
+ title: String,
395
+ image: String,
396
+ imageClass: String,
397
+ imageSize: {
398
+ type: String,
399
+ default: "medium"
400
+ },
401
+ description: String,
402
+ chips: {
403
+ type: Array,
404
+ default: () => []
405
+ },
406
+ buttonProps: {
407
+ type: Object,
408
+ default: () => null
409
+ },
410
+ isDisabled: Boolean
411
+ },
412
+ setup(e) {
413
+ const a = {
414
+ small: "w-10",
415
+ medium: "w-[56px]",
416
+ large: "w-16"
417
+ };
418
+ return (f, l) => (s(), i("div", {
419
+ class: v(["p-4 flex gap-x-4 rounded items-center border border-gray-200 group", { "hover:shadow-normal": !e.isDisabled }])
420
+ }, [
421
+ t("div", {
422
+ class: v(["shrink-0 aspect-square flex items-center justify-center bg-oc-bg-dark rounded overflow-hidden", a[e.imageSize]])
423
+ }, [
424
+ t("img", {
425
+ src: e.image,
426
+ class: v([e.imageClass, "object-contain h-full w-full"]),
427
+ alt: "terminal"
428
+ }, null, 10, je)
429
+ ], 2),
430
+ t("div", _e, [
431
+ t("div", Ne, [
432
+ t("div", Ie, [
433
+ e.title ? (s(), i("span", Ee, g(e.title), 1)) : d("", !0),
434
+ e.chips.length ? (s(), i("div", Fe, [
435
+ (s(!0), i(S, null, k(e.chips, (o, n) => (s(), h(c(M), {
436
+ key: n,
437
+ label: o.label,
438
+ variant: o.variant,
439
+ class: "font-medium"
440
+ }, null, 8, ["label", "variant"]))), 128))
441
+ ])) : d("", !0)
442
+ ])
443
+ ]),
444
+ t("div", Ue, [
445
+ t("div", We, g(e.description), 1)
446
+ ])
447
+ ]),
448
+ e.buttonProps ? (s(), h(c(R), O({
449
+ key: 0,
450
+ class: "shrink-0",
451
+ size: "small"
452
+ }, e.buttonProps), null, 16)) : d("", !0)
453
+ ], 2));
454
+ }
455
+ }), He = {
456
+ key: 0,
457
+ class: "min-w-[100px]"
458
+ }, qe = { class: "grow pl-3" }, Ge = { class: "flex w-full" }, Re = { class: "text-lg font-medium" }, Je = { class: "ml-auto" }, Ke = { class: "cursor-pointer flex hover:bg-oc-gray-200 items-center rounded p-2" }, Qe = { class: "line-clamp-2 mb-3 max-w-[80%] text-oc-text-400" }, Xe = { class: "w-full text-sm lg:mt-4 flex flex-wrap items-center" }, Ze = { class: "mr-3" }, et = { class: "text-oc-text-400 font-medium" }, tt = {
459
+ __name: "OcPage",
460
+ props: {
461
+ page: Object
462
+ },
463
+ setup(e) {
464
+ const a = C(!1), f = (o) => {
465
+ let n = document.createElement("DIV");
466
+ return n.innerHTML = o, n.textContent || n.innerText || "";
467
+ }, l = (o) => o == null ? void 0 : o.replace("generics/medium/", "generics/thumbnail/");
468
+ return (o, n) => (s(), i("div", {
469
+ class: "w-full p-5 flex",
470
+ onMouseleave: n[1] || (n[1] = (m) => a.value = !1)
471
+ }, [
472
+ e.page.page_cover_url ? (s(), i("div", He, [
473
+ t("div", {
474
+ class: "w-[100px] h-[100px] rounded !bg-cover",
475
+ style: I(`background:url(${l(e.page.page_cover_url)})`)
476
+ }, null, 4)
477
+ ])) : d("", !0),
478
+ t("div", qe, [
479
+ t("div", Ge, [
480
+ t("div", Re, g(e.page.title), 1),
481
+ t("div", Je, [
482
+ b(c(V), {
483
+ modelValue: a.value,
484
+ "onUpdate:modelValue": n[0] || (n[0] = (m) => a.value = m),
485
+ placement: "bottom-end"
486
+ }, {
487
+ menu: w(() => [
488
+ p(o.$slots, "menu")
489
+ ]),
490
+ default: w(() => [
491
+ t("div", Ke, [
492
+ b(c($), {
493
+ class: "text-oc-text-400",
494
+ name: "dots-vertical"
495
+ })
496
+ ])
497
+ ]),
498
+ _: 3
499
+ }, 8, ["modelValue"])
500
+ ])
501
+ ]),
502
+ t("div", Qe, g(f(e.page.description)), 1),
503
+ t("div", Xe, [
504
+ t("span", Ze, [
505
+ n[2] || (n[2] = t("span", { class: "text-oc-text-300" }, "Last updated : ", -1)),
506
+ t("span", et, g(c(q)(e.page.updated_at).format("DD MMM YYYY")), 1)
507
+ ]),
508
+ b(c(M), {
509
+ class: "ml-auto md:ml-0",
510
+ variant: e.page.enabled ? "primary" : "gray"
511
+ }, {
512
+ default: w(() => [
513
+ B(g(e.page.enabled ? "Published" : "Draft"), 1)
514
+ ]),
515
+ _: 1
516
+ }, 8, ["variant"])
517
+ ])
518
+ ])
519
+ ], 32));
520
+ }
521
+ }, st = { class: "flex items-center gap-x-4 w-full p-5 pl-0" }, nt = { class: "flex flex-col flex-1 gap-y-3" }, it = { class: "flex items-center justify-between" }, ot = { class: "flex text-sm text-oc-text-400 items-center gap-x-3 overflow-hidden" }, lt = {
522
+ key: 0,
523
+ class: "text-base text-oc-text font-medium truncate"
524
+ }, at = {
525
+ key: 1,
526
+ class: "flex gap-3 shrink-0"
527
+ }, rt = {
528
+ key: 0,
529
+ class: "flex flex-col gap-3"
530
+ }, ct = { class: "text-oc-text-400 flex gap-x-2 items-center text-sm" }, dt = {
531
+ key: 0,
532
+ class: "flex items-center gap-4 opacity-0 group-hover:opacity-100"
533
+ }, ut = { class: "border border-oc-accent-1-100 rounded-sm p-1 flex gap-x-1" }, mt = { class: "py-5 px-7" }, gt = /* @__PURE__ */ T({
534
+ __name: "OcAccordion",
535
+ props: {
536
+ title: String,
537
+ description: String,
538
+ chips: {
539
+ type: Array,
540
+ default: () => []
541
+ },
542
+ isDisabled: Boolean,
543
+ hasActions: {
544
+ type: Boolean,
545
+ default: !0
546
+ },
547
+ isTransparent: Boolean,
548
+ isDraggable: Boolean,
549
+ isNoToggleForced: Boolean
550
+ },
551
+ emits: ["edit", "delete"],
552
+ setup(e, { expose: a, emit: f }) {
553
+ const l = e, o = C(!1), n = () => {
554
+ l.isNoToggleForced || (o.value = !o.value);
555
+ };
556
+ return a({
557
+ toggleAccordion: n
558
+ }), (m, r) => (s(), i("div", {
559
+ class: v(["rounded border border-gray-200 group overflow-hidden", {
560
+ "hover:shadow-normal": !e.isDisabled && !e.isTransparent,
561
+ "border-none !p-0": e.isTransparent
562
+ }])
563
+ }, [
564
+ t("div", {
565
+ class: v(["flex gap-4 items-stretch", {
566
+ "border-b": o.value,
567
+ "pl-5": e.isNoToggleForced
568
+ }])
569
+ }, [
570
+ e.isNoToggleForced ? d("", !0) : (s(), i("div", {
571
+ key: 0,
572
+ class: "flex items-center p-3 border-r bg-gray-50 cursor-pointer",
573
+ onClick: n
574
+ }, [
575
+ b(c($), {
576
+ name: o.value ? "chevron-up" : "chevron-down",
577
+ width: "20",
578
+ height: "20",
579
+ class: "text-oc-text-400"
580
+ }, null, 8, ["name"])
581
+ ])),
582
+ t("div", st, [
583
+ t("div", nt, [
584
+ t("div", it, [
585
+ t("div", ot, [
586
+ e.title ? (s(), i("span", lt, g(e.title), 1)) : d("", !0),
587
+ e.chips.length ? (s(), i("div", at, [
588
+ (s(!0), i(S, null, k(e.chips, (u, x) => (s(), h(c(M), {
589
+ key: x,
590
+ label: u.label,
591
+ variant: u.variant,
592
+ icon: u.icon,
593
+ "icon-tooltip": u.iconTooltip,
594
+ class: "font-medium shrink-0"
595
+ }, null, 8, ["label", "variant", "icon", "icon-tooltip"]))), 128))
596
+ ])) : d("", !0)
597
+ ])
598
+ ]),
599
+ p(m.$slots, "default", {}, () => [
600
+ e.description ? (s(), i("div", rt, [
601
+ t("div", ct, g(e.description), 1)
602
+ ])) : d("", !0)
603
+ ])
604
+ ]),
605
+ p(m.$slots, "right", {
606
+ isOpen: o.value,
607
+ toggleAccordion: n
608
+ }, () => [
609
+ e.hasActions ? (s(), i("div", dt, [
610
+ t("div", ut, [
611
+ b(c($), {
612
+ name: "pencil",
613
+ class: "cursor-pointer text-oc-text-400 p-2",
614
+ onClick: r[0] || (r[0] = (u) => m.$emit("edit"))
615
+ }),
616
+ r[2] || (r[2] = t("div", { class: "border-r border-gray-200" }, null, -1)),
617
+ b(c($), {
618
+ name: "bin",
619
+ class: "cursor-pointer text-oc-error p-2",
620
+ onClick: r[1] || (r[1] = (u) => m.$emit("delete"))
621
+ })
622
+ ]),
623
+ e.isDraggable ? (s(), h(c($), {
624
+ key: 0,
625
+ name: "draggable",
626
+ class: "cursor-grab text-oc-text-400",
627
+ width: "24",
628
+ height: "24"
629
+ })) : d("", !0)
630
+ ])) : d("", !0)
631
+ ])
632
+ ])
633
+ ], 2),
634
+ E(t("div", mt, [
635
+ p(m.$slots, "content")
636
+ ], 512), [
637
+ [F, o.value]
638
+ ])
639
+ ], 2));
640
+ }
641
+ }), Vt = {
642
+ __name: "OcListItem",
643
+ props: {
644
+ isActive: Boolean,
645
+ title: String,
646
+ description: String,
647
+ descriptionIcon: String,
648
+ icon: String,
649
+ iconClass: String,
650
+ iconText: String,
651
+ date: String,
652
+ type: {
653
+ type: String,
654
+ default: "timeLine"
655
+ },
656
+ urls: {
657
+ type: Array,
658
+ default: () => []
659
+ },
660
+ paymentMethods: {
661
+ type: Array,
662
+ default: () => []
663
+ },
664
+ chips: {
665
+ type: Array,
666
+ default: () => []
667
+ },
668
+ details: {
669
+ type: Array,
670
+ default: () => []
671
+ },
672
+ isDisabled: Boolean,
673
+ isTransparent: Boolean,
674
+ isDraggable: Boolean
675
+ },
676
+ emits: ["more", "edit", "delete", "click:item"],
677
+ setup(e) {
678
+ const a = e, f = A(() => {
679
+ switch (a.type) {
680
+ case "timeLine":
681
+ return z;
682
+ case "webhook":
683
+ return ae;
684
+ case "payment":
685
+ return Se;
686
+ case "general":
687
+ return Le;
688
+ case "terminal":
689
+ return Ye;
690
+ case "logo":
691
+ return ue;
692
+ case "page":
693
+ return tt;
694
+ case "accordion":
695
+ return gt;
696
+ default:
697
+ return z;
698
+ }
699
+ });
700
+ return (l, o) => (s(), h(U(f.value), O(a, {
701
+ class: { "opacity-50": e.isDisabled },
702
+ onMore: o[0] || (o[0] = (n) => l.$emit("more")),
703
+ onEdit: o[1] || (o[1] = (n) => l.$emit("edit")),
704
+ onDelete: o[2] || (o[2] = (n) => l.$emit("delete")),
705
+ onClick: o[3] || (o[3] = (n) => l.$emit("click:item"))
706
+ }), W({ _: 2 }, [
707
+ k(l.$slots, (n, m) => ({
708
+ name: m,
709
+ fn: w((r) => [
710
+ p(l.$slots, m, Y(H(r)))
711
+ ])
712
+ }))
713
+ ]), 1040, ["class"]));
714
+ }
715
+ }, pt = { class: "flex gap-x-3 text-sm items-center group/url" }, ft = { class: "text-oc-text-400 font-medium shrink-0" }, xt = { class: "break-all" }, vt = /* @__PURE__ */ T({
716
+ __name: "OcListUrl",
717
+ props: {
718
+ title: String,
719
+ url: String,
720
+ isCopy: {
721
+ type: Boolean,
722
+ default: !0
723
+ }
724
+ },
725
+ setup(e) {
726
+ return (a, f) => (s(), i("div", pt, [
727
+ t("span", ft, g(e.title) + ":", 1),
728
+ t("span", xt, g(e.url), 1),
729
+ e.isCopy ? (s(), h(c(J), {
730
+ key: 0,
731
+ value: e.url
732
+ }, {
733
+ default: w(({ isShow: l }) => [
734
+ b(c($), {
735
+ width: "14",
736
+ height: "14",
737
+ class: v(["cursor-pointer transition-all duration-500 group-hover/url:opacity-100", l ? "opacity-100" : "md:opacity-0"]),
738
+ name: "copy"
739
+ }, null, 8, ["class"])
740
+ ]),
741
+ _: 1
742
+ }, 8, ["value"])) : d("", !0)
743
+ ]));
744
+ }
745
+ });
746
+ export {
747
+ Vt as _,
748
+ vt as a
749
+ };