@orchidui/core 0.4.0 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (155) hide show
  1. package/dist/DataDisplay/CustomerCard/OcCustomerCard.js +1 -1
  2. package/dist/DataDisplay/FloatContent/OcFloatContent.js +1 -1
  3. package/dist/DataDisplay/InfoCard/OcInfoCard.js +1 -1
  4. package/dist/DataDisplay/ListDetail/OcListDetail.js +1 -1
  5. package/dist/DataDisplay/ListItem/OcListItem.js +3 -3
  6. package/dist/DataDisplay/OnboardingListItem/OcOnboardingListItem.js +1 -1
  7. package/dist/DataDisplay/Overview/OcOverview.js +4 -5
  8. package/dist/DataDisplay/Pagination/OcPagination.js +1 -1
  9. package/dist/DataDisplay/Table/OcTable.js +4 -4
  10. package/dist/DataDisplay/TransferSummary/OcTransferSummary.js +1 -1
  11. package/dist/DataTable/utils/editColumnsUtils.js +29 -0
  12. package/dist/Disclosure/Accordion/OcAccordion.js +1 -1
  13. package/dist/Disclosure/OnboardingAccordion/OnboardingAccordion.js +1 -1
  14. package/dist/Disclosure/Steps/OcSteps.js +3 -3
  15. package/dist/Disclosure/Tabs/Tabs.js +1 -1
  16. package/dist/Disclosure/Variants/OcVariants.js +1 -1
  17. package/dist/Elements/AdditionalContent/OcAdditionalContent.js +2 -2
  18. package/dist/Elements/AuthenticationOption/AuthenticationOption.js +2 -2
  19. package/dist/Elements/Box/OcBox.js +2 -2
  20. package/dist/Elements/EmptyPage/OcEmptyPage.js +1 -1
  21. package/dist/Elements/FeatureOverviewCard/OcFeatureOverviewCard.js +1 -1
  22. package/dist/Elements/Header/OcHeader.js +3 -3
  23. package/dist/Elements/PageTitle/OcPageTitle.js +3 -4
  24. package/dist/Elements/SandboxBanner/OcSandboxBanner.js +1 -1
  25. package/dist/Elements/Sidebar/OcSidebar.js +1 -1
  26. package/dist/Elements/Skeleton/OcSkeleton.js +1 -1
  27. package/dist/Elements/SubSidebar/OcSubSidebar.js +1 -1
  28. package/dist/Elements/VerificationOption/OcVerificationOption.js +2 -2
  29. package/dist/Feedback/Banner/OcBanner.js +1 -1
  30. package/dist/Feedback/Chip/OcChip.js +2 -2
  31. package/dist/Feedback/ShareIcon/OcShareIcon.js +2 -2
  32. package/dist/Feedback/Snackbar/OcSnackbar.js +1 -1
  33. package/dist/Form/BaseInput/OcBaseInput.js +1 -1
  34. package/dist/Form/Button/OcButton.js +1 -1
  35. package/dist/Form/Calendar/OcCalendar.js +2 -2
  36. package/dist/Form/CardInput/OcCardInput.js +1 -1
  37. package/dist/Form/Checkbox/OcCheckbox.js +1 -1
  38. package/dist/Form/CheckboxesGroup/OcCheckboxesGroup.js +1 -1
  39. package/dist/Form/Criteria/OcCriteria.js +1 -1
  40. package/dist/Form/Cropper/OcCropper.js +1 -1
  41. package/dist/Form/DatePicker/OcDatePicker.js +1 -1
  42. package/dist/Form/EmojiPicker/OcEmojiPicker.js +2 -2
  43. package/dist/Form/Input/OcInput.js +3 -4
  44. package/dist/Form/LinkInput/OcLinkInput.js +1 -1
  45. package/dist/Form/MultipleUploadFile/OcMultipleUploadFile.js +1 -1
  46. package/dist/Form/NumberInput/OcNumberInput.js +1 -1
  47. package/dist/Form/PhoneInput/OcPhoneInput.js +1 -1
  48. package/dist/Form/Radio/OcRadio.js +1 -1
  49. package/dist/Form/RadioGroup/OcRadioGroup.js +1 -1
  50. package/dist/Form/RangeInput/OcRangeInput.js +1 -1
  51. package/dist/Form/SectionItem/OcSectionItem.js +2 -2
  52. package/dist/Form/Select/OcSelect.js +4 -5
  53. package/dist/Form/SelectOptions/OcSelectOptions.js +2 -2
  54. package/dist/Form/SingleFileUpload/OcSingleFileUpload.js +1 -1
  55. package/dist/Form/Slider/OcSlider.js +1 -1
  56. package/dist/Form/TextArea/OcTextArea.js +2 -2
  57. package/dist/Form/Toggle/OcToggle.js +1 -1
  58. package/dist/Form/index.js +24 -47
  59. package/dist/FormBuilder/OcFormBuilder.js +1 -1
  60. package/dist/{OcComplexCalendar-x-_kg9Yk.js → OcComplexCalendar-Boa7mNFU.js} +18 -25
  61. package/dist/OcComplexDatePicker-BydI4VSR.js +93 -0
  62. package/dist/{OcCropper-31Y_S1Ne.js → OcCropper-7E2i6ayU.js} +38 -49
  63. package/dist/OcDataTable-CsCGrRx7.js +561 -0
  64. package/dist/{OcDraggable-BjhGJmpM.js → OcDraggable-CA_BCbpl.js} +7 -8
  65. package/dist/{Draggable.js → OcDraggableList-BUu5SgoA.js} +40 -50
  66. package/dist/{OcEmojiPicker-BXm-_OGK.js → OcEmojiPicker-DYYK7OB3.js} +28 -38
  67. package/dist/OcFilterForm-7ehuJUMp.js +83 -0
  68. package/dist/OcFilterSearch-B4AZsLBn.js +69 -0
  69. package/dist/OcFilterSearchFor-DfwJG-5N.js +67 -0
  70. package/dist/OcModalCropper-Z4jlnFc5.js +46 -0
  71. package/dist/{OcSkeleton-BdPTmGh0.js → OcSkeleton-CvdpGSQR.js} +2 -3
  72. package/dist/{OcSlider-Bsi-ckbP.js → OcSlider-DW9x8eas.js} +10 -11
  73. package/dist/{OcTimePicker-B61MCi0D.js → OcTimePicker-D9fPU8_m.js} +22 -33
  74. package/dist/{OcTimePopup-zQFKCZLk.js → OcTimePopup-CXGhaOev.js} +2 -3
  75. package/dist/{OcToggle-C0wTjM_Y.js → OcToggle-bIJaLDMZ.js} +5 -6
  76. package/dist/Overlay/ConfirmationModal/OcConfirmationModal.js +1 -1
  77. package/dist/Overlay/CopyTooltip/OcCopyTooltip.js +1 -1
  78. package/dist/Overlay/Dropdown/OcDropdown.js +3 -4
  79. package/dist/Overlay/Modal/OcModal.js +3 -4
  80. package/dist/Overlay/SupportMenu/OcSupportMenu.js +1 -1
  81. package/dist/Overlay/Tooltip/OcTooltip.js +2 -2
  82. package/dist/Overlay/Whitelist/OcWhiteList.js +2 -2
  83. package/dist/SubPlanCard-DHj4RHJZ.js +81 -0
  84. package/dist/ThumbnailSection-CJBS0QXp.js +41 -0
  85. package/dist/ThumbnailTheme-hey6se0g.js +119 -0
  86. package/dist/index-DyVteXE3.js +10028 -0
  87. package/dist/index.js +129 -175
  88. package/dist/style.css +1 -1
  89. package/package.json +1 -16
  90. package/dist/Calendar.js +0 -103
  91. package/dist/Cropper.js +0 -6
  92. package/dist/DatePicker-D3w435Ml.js +0 -263
  93. package/dist/EmojiPicker.js +0 -4
  94. package/dist/Form/TimePicker/OcTimePicker.js +0 -6
  95. package/dist/OcAccordion-DdkNsXvN.js +0 -101
  96. package/dist/OcAccountSetup-BXDjf48o.js +0 -324
  97. package/dist/OcAdditionalContent-BMSysCXu.js +0 -612
  98. package/dist/OcAuthenticationOption.vue_vue_type_script_setup_true_lang-w5Y0ymGN.js +0 -43
  99. package/dist/OcBanner-Cg2WJV6e.js +0 -108
  100. package/dist/OcBox.vue_vue_type_script_setup_true_lang-aB397QRg.js +0 -43
  101. package/dist/OcCardInput-BFE4Xu-S.js +0 -75
  102. package/dist/OcCheckboxesGroup-CLbquUO2.js +0 -94
  103. package/dist/OcChip-B1hm2Qni.js +0 -144
  104. package/dist/OcComplexCalendar.vue_vue_type_style_index_0_lang-CIQPD-6N.js +0 -1006
  105. package/dist/OcConfirmationModal-BfCrRV9r.js +0 -179
  106. package/dist/OcCopyTooltip.vue_vue_type_script_setup_true_lang-S2RAfV_g.js +0 -65
  107. package/dist/OcCriteria-CpIohheZ.js +0 -42
  108. package/dist/OcCustomerCard-DbDOBO03.js +0 -160
  109. package/dist/OcDropdownItem-DAElmzEu.js +0 -57
  110. package/dist/OcEmptyPage-CTwgMzRp.js +0 -155
  111. package/dist/OcExpadingTable.vue_vue_type_script_setup_true_lang-B4HOMDBK.js +0 -815
  112. package/dist/OcFeatureOverviewCard-RVyrWLVW.js +0 -71
  113. package/dist/OcFloatContent-BIKQOxSw.js +0 -142
  114. package/dist/OcFormBuilder-CRXWtt8I.js +0 -177
  115. package/dist/OcGroupOptions-ChGJvTXl.js +0 -16
  116. package/dist/OcInfoCard-DpYUZOMZ.js +0 -81
  117. package/dist/OcInput-tcRxG3Y2.js +0 -227
  118. package/dist/OcInputOption-CncASfNt.js +0 -160
  119. package/dist/OcLinkInput-C2ixk-gk.js +0 -143
  120. package/dist/OcListDetail-6XeME6ko.js +0 -76
  121. package/dist/OcListUrl.vue_vue_type_script_setup_true_lang-7zZdFM8K.js +0 -750
  122. package/dist/OcModal-DdD5VFEN.js +0 -187
  123. package/dist/OcModalCropper-D2OI2iun.js +0 -56
  124. package/dist/OcModalPage-BLVa-kcB.js +0 -86
  125. package/dist/OcMultipleUploadFile-B8Wl9Fuq.js +0 -446
  126. package/dist/OcNumberInput.vue_vue_type_script_setup_true_lang-C4EXUIUe.js +0 -90
  127. package/dist/OcOnboardingListItem.vue_vue_type_script_setup_true_lang-Cr80xmnz.js +0 -81
  128. package/dist/OcOption-DK2FBGq7.js +0 -485
  129. package/dist/OcOverviewIcon-D702Ujka.js +0 -55
  130. package/dist/OcOverviewItem-DNr5tWnt.js +0 -186
  131. package/dist/OcPageTitleRight-DMtJ1qmZ.js +0 -243
  132. package/dist/OcPaginationNumber-IKPorX26.js +0 -172
  133. package/dist/OcPaymentTab-Cna1IAhO.js +0 -170
  134. package/dist/OcPhoneInput-AC6BgQhN.js +0 -432
  135. package/dist/OcPrimaryActions-D5IprKsQ.js +0 -222
  136. package/dist/OcRadio-CRYfNwV9.js +0 -107
  137. package/dist/OcRadioGroup-DgfdWJos.js +0 -76
  138. package/dist/OcRangeInput-C-hoHFhr.js +0 -103
  139. package/dist/OcSandboxBanner.vue_vue_type_script_setup_true_lang-BD0k_8xa.js +0 -37
  140. package/dist/OcSectionItem-BFgxO3se.js +0 -84
  141. package/dist/OcSelectOptions-BQlG_EUA.js +0 -148
  142. package/dist/OcShareIcon-BB-NPq0r.js +0 -53
  143. package/dist/OcSingleFileUpload-B8-e1H5t.js +0 -464
  144. package/dist/OcSnackbar-CKxY1-ej.js +0 -196
  145. package/dist/OcSteps.vue_vue_type_script_setup_true_lang-CXGy8ma_.js +0 -87
  146. package/dist/OcSubSidebar.vue_vue_type_script_setup_true_lang-CNxgU07N.js +0 -60
  147. package/dist/OcSupportMenu.vue_vue_type_script_setup_true_lang-DrjZsWti.js +0 -114
  148. package/dist/OcTabToSelect-BHAz1Niv.js +0 -183
  149. package/dist/OcTextArea-BpV1Bnj_.js +0 -78
  150. package/dist/OcTransferSummary-Bk2GXhrT.js +0 -67
  151. package/dist/OcVariant.vue_vue_type_script_setup_true_lang-CY_82DLc.js +0 -99
  152. package/dist/OcVerificationOption.vue_vue_type_script_setup_true_lang-ChqvNoDe.js +0 -59
  153. package/dist/OcWhiteList.vue_vue_type_script_setup_true_lang-DI9pYU3w.js +0 -64
  154. package/dist/OnboardingAccordion.vue_vue_type_script_setup_true_lang-B0Z7ETmj.js +0 -113
  155. package/dist/StoreDesign.js +0 -240
@@ -1,21 +1,14 @@
1
- import { ref as x, openBlock as o, createElementBlock as n, createElementVNode as p, Fragment as b, renderList as V, normalizeClass as v, unref as a, toDisplayString as k, createCommentVNode as u, createVNode as m, mergeProps as d } from "vue";
1
+ import { ref as x, openBlock as o, createElementBlock as n, createElementVNode as b, Fragment as V, renderList as v, normalizeClass as k, unref as a, toDisplayString as p, createCommentVNode as i, createVNode as d, mergeProps as m } from "vue";
2
2
  import { DatePicker as B } from "v-calendar";
3
- import { B as f } from "./OcComplexCalendar.vue_vue_type_style_index_0_lang-CIQPD-6N.js";
4
3
  import r from "dayjs";
5
- /* empty css */
6
- import "libphonenumber-js";
7
- /* empty css */
8
- /* empty css */
9
- import "./Cropper.js";
10
- import "vue-draggable-next";
11
- import "@popperjs/core";
4
+ import { B as f } from "./index-DyVteXE3.js";
12
5
  const C = { class: "flex flex-col p-6 gap-y-7 w-fit shadow-normal rounded" }, h = { class: "flex gap-x-7" }, M = {
13
6
  key: 0,
14
7
  class: "flex flex-col py-2 gap-y-4"
15
8
  }, w = ["onClick"], P = {
16
9
  key: 0,
17
10
  class: "flex justify-end gap-x-3"
18
- }, U = {
11
+ }, F = {
19
12
  __name: "OcComplexCalendar",
20
13
  props: {
21
14
  shortcuts: Array,
@@ -51,26 +44,26 @@ const C = { class: "flex flex-col p-6 gap-y-7 w-fit shadow-normal rounded" }, h
51
44
  "update:modelValue": []
52
45
  },
53
46
  setup(e, { emit: y }) {
54
- const D = y, i = x(), g = (l) => {
55
- D("update:modelValue", l), i.value.calendarRef.focusDate(r(l.start).toDate());
47
+ const D = y, s = x(), g = (l) => {
48
+ D("update:modelValue", l), s.value.calendarRef.focusDate(r(l.start).toDate());
56
49
  };
57
- return (l, s) => {
50
+ return (l, u) => {
58
51
  var c;
59
52
  return o(), n("div", C, [
60
- p("div", h, [
53
+ b("div", h, [
61
54
  (c = e.shortcuts) != null && c.length ? (o(), n("div", M, [
62
- (o(!0), n(b, null, V(e.shortcuts, (t) => (o(), n("div", {
55
+ (o(!0), n(V, null, v(e.shortcuts, (t) => (o(), n("div", {
63
56
  key: t,
64
- class: v([
57
+ class: k([
65
58
  "rounded text-center px-4 font-medium py-2 cursor-pointer",
66
59
  a(r)(t.value.start).format("YY-MM-DD") === a(r)(e.modelValue.start).format("YY-MM-DD") && a(r)(t.value.end).format("YY-MM-DD") === a(r)(e.modelValue.end).format("YY-MM-DD") && e.modelValue.end && e.modelValue.start ? "bg-oc-primary-50" : "hover:bg-oc-accent-1-50"
67
60
  ]),
68
61
  onClick: (Y) => g(t.value)
69
- }, k(t.label), 11, w))), 128))
70
- ])) : u("", !0),
71
- m(a(B), d({
62
+ }, p(t.label), 11, w))), 128))
63
+ ])) : i("", !0),
64
+ d(a(B), m({
72
65
  ref_key: "datePicker",
73
- ref: i,
66
+ ref: s,
74
67
  "model-value": e.modelValue,
75
68
  "model-modifiers": {
76
69
  range: e.isRange
@@ -85,24 +78,24 @@ const C = { class: "flex flex-col p-6 gap-y-7 w-fit shadow-normal rounded" }, h
85
78
  }, l.$attrs, {
86
79
  "min-date": e.minDate,
87
80
  "max-date": e.maxDate,
88
- "onUpdate:modelValue": s[0] || (s[0] = (t) => l.$emit("update:modelValue", t))
81
+ "onUpdate:modelValue": u[0] || (u[0] = (t) => l.$emit("update:modelValue", t))
89
82
  }), null, 16, ["model-value", "model-modifiers", "class", "columns", "min-date", "max-date"])
90
83
  ]),
91
84
  e.withFooter ? (o(), n("div", P, [
92
- m(a(f), d({
85
+ d(a(f), m({
93
86
  class: "min-w-[72px]",
94
87
  label: "Clear",
95
88
  variant: "secondary"
96
89
  }, e.cancelButtonProps), null, 16),
97
- m(a(f), d({
90
+ d(a(f), m({
98
91
  class: "min-w-[72px]",
99
92
  label: "Done"
100
93
  }, e.submitButtonProps), null, 16)
101
- ])) : u("", !0)
94
+ ])) : i("", !0)
102
95
  ]);
103
96
  };
104
97
  }
105
98
  };
106
99
  export {
107
- U as _
100
+ F as default
108
101
  };
@@ -0,0 +1,93 @@
1
+ import { ref as s, openBlock as d, createBlock as m, unref as t, withCtx as l, createVNode as n } from "vue";
2
+ import { az as c, _ as f, as as b, aA as p, e as V } from "./index-DyVteXE3.js";
3
+ import r from "dayjs";
4
+ const x = {
5
+ __name: "OcComplexDatePicker",
6
+ props: {
7
+ shortcuts: Array,
8
+ cancelButtonProps: Object,
9
+ submitButtonProps: Object,
10
+ /**
11
+ * Props to pass to the calendar component from https://vcalendar.io/
12
+ */
13
+ calendarProps: Object,
14
+ modelValue: {
15
+ type: Object,
16
+ default: () => ({
17
+ start: /* @__PURE__ */ new Date(),
18
+ end: /* @__PURE__ */ new Date()
19
+ })
20
+ },
21
+ formatDate: {
22
+ type: String,
23
+ default: "DD/MM/YYYY"
24
+ },
25
+ countCalendars: {
26
+ type: Number,
27
+ default: 2
28
+ },
29
+ withFooter: {
30
+ type: Boolean,
31
+ default: !0
32
+ },
33
+ label: String,
34
+ hint: String,
35
+ isRequired: Boolean,
36
+ errorMessage: String,
37
+ labelIcon: String,
38
+ tooltipText: String,
39
+ tooltipOptions: Object
40
+ },
41
+ emits: {
42
+ "update:modelValue": []
43
+ },
44
+ setup(e) {
45
+ r.extend(c);
46
+ const u = s(!1);
47
+ return (i, o) => (d(), m(t(f), {
48
+ label: e.label,
49
+ hint: e.hint,
50
+ "error-message": e.errorMessage,
51
+ "is-required": e.isRequired,
52
+ "tooltip-options": e.tooltipOptions,
53
+ "label-icon": e.labelIcon,
54
+ "tooltip-text": e.tooltipText
55
+ }, {
56
+ default: l(() => [
57
+ n(t(b), {
58
+ modelValue: u.value,
59
+ "onUpdate:modelValue": o[1] || (o[1] = (a) => u.value = a),
60
+ position: "bottom",
61
+ class: "w-full"
62
+ }, {
63
+ menu: l(() => [
64
+ n(t(p), {
65
+ "model-value": e.modelValue,
66
+ shortcuts: e.shortcuts,
67
+ "cancel-button-props": e.cancelButtonProps,
68
+ "submit-button-props": e.submitButtonProps,
69
+ "calendar-props": e.calendarProps,
70
+ "count-calendars": e.countCalendars,
71
+ "with-footer": e.withFooter,
72
+ "onUpdate:modelValue": o[0] || (o[0] = (a) => i.$emit("update:modelValue", a))
73
+ }, null, 8, ["model-value", "shortcuts", "cancel-button-props", "submit-button-props", "calendar-props", "count-calendars", "with-footer"])
74
+ ]),
75
+ default: l(() => [
76
+ n(t(V), {
77
+ "model-value": `${t(r)(e.modelValue.start).format(e.formatDate)} - ${t(r)(
78
+ e.modelValue.end
79
+ ).format(e.formatDate)}`,
80
+ icon: "calendar",
81
+ readonly: ""
82
+ }, null, 8, ["model-value"])
83
+ ]),
84
+ _: 1
85
+ }, 8, ["modelValue"])
86
+ ]),
87
+ _: 1
88
+ }, 8, ["label", "hint", "error-message", "is-required", "tooltip-options", "label-icon", "tooltip-text"]));
89
+ }
90
+ };
91
+ export {
92
+ x as default
93
+ };
@@ -1,19 +1,8 @@
1
- import { ref as p, watch as S, nextTick as F, openBlock as i, createElementBlock as y, createElementVNode as d, createBlock as u, unref as o, Fragment as A, createVNode as c, createCommentVNode as r, withCtx as V } from "vue";
2
- import "dayjs";
3
- import { B as g, a as D, T as G } from "./OcComplexCalendar.vue_vue_type_style_index_0_lang-CIQPD-6N.js";
4
- import { _ as H } from "./OcIcon-CJgBICxh.js";
5
- /* empty css */
6
- import { _ as x } from "./OcInput-tcRxG3Y2.js";
7
- import "libphonenumber-js";
8
- import { _ as J } from "./OcRadioGroup-DgfdWJos.js";
9
- /* empty css */
10
- import "v-calendar";
11
- /* empty css */
12
- import "./Cropper.js";
13
- import "vue-draggable-next";
14
- import "@popperjs/core";
15
- import { Cropper as K } from "vue-advanced-cropper";
16
- const M = { class: "flex flex-col gap-y-5" }, P = ["src"], Q = { class: "flex gap-x-1 justify-center relative" }, W = { class: "grid grid-cols-2 gap-4" }, me = {
1
+ import { ref as p, watch as S, nextTick as F, openBlock as n, createElementBlock as x, createElementVNode as c, createBlock as u, unref as o, Fragment as A, createVNode as m, createCommentVNode as r, withCtx as y } from "vue";
2
+ import { B as g, e as V, b as D, i as G, ax as H } from "./index-DyVteXE3.js";
3
+ import { Cropper as J } from "vue-advanced-cropper";
4
+ import { _ as K } from "./OcIcon-CJgBICxh.js";
5
+ const M = { class: "flex flex-col gap-y-5" }, P = ["src"], Q = { class: "flex gap-x-1 justify-center relative" }, W = { class: "grid grid-cols-2 gap-4" }, ee = {
17
6
  __name: "OcCropper",
18
7
  props: {
19
8
  inputOptions: Array,
@@ -26,8 +15,8 @@ const M = { class: "flex flex-col gap-y-5" }, P = ["src"], Q = { class: "flex ga
26
15
  }
27
16
  },
28
17
  emits: ["changeImage", "update:input-options"],
29
- setup(n, { emit: E }) {
30
- const v = n, h = E, k = p(), w = p(), s = p(""), C = p(!1), a = p(v.inputOptionValues ?? {});
18
+ setup(i, { emit: E }) {
19
+ const v = i, h = E, k = p(), w = p(), s = p(""), C = p(!1), a = p(v.inputOptionValues ?? {});
31
20
  S(
32
21
  () => v.inputOptionValues,
33
22
  () => {
@@ -72,13 +61,13 @@ const M = { class: "flex flex-col gap-y-5" }, P = ["src"], Q = { class: "flex ga
72
61
  width: (e || l).width,
73
62
  height: (e || l).height
74
63
  }), f = (l, e) => {
75
- let m = a.value;
76
- m[l] = e, h("update:input-options", m);
64
+ let d = a.value;
65
+ d[l] = e, h("update:input-options", d);
77
66
  }, b = p(!!a.value.caption), U = p(!!a.value.lightbox);
78
67
  return (l, e) => {
79
- var m, $, L, I, R, B;
80
- return i(), y("div", M, [
81
- d("input", {
68
+ var d, $, L, I, R, B;
69
+ return n(), x("div", M, [
70
+ c("input", {
82
71
  id: "cropper-file-input",
83
72
  ref_key: "fileUploadEl",
84
73
  ref: w,
@@ -87,7 +76,7 @@ const M = { class: "flex flex-col gap-y-5" }, P = ["src"], Q = { class: "flex ga
87
76
  class: "hidden",
88
77
  onChange: T
89
78
  }, null, 544),
90
- s.value ? (i(), u(o(K), {
79
+ s.value ? (n(), u(o(J), {
91
80
  key: 0,
92
81
  ref_key: "cropper",
93
82
  ref: k,
@@ -97,39 +86,39 @@ const M = { class: "flex flex-col gap-y-5" }, P = ["src"], Q = { class: "flex ga
97
86
  "background-class": "cropper-background",
98
87
  "default-size": q,
99
88
  onChange: N
100
- }, null, 8, ["src"])) : (i(), y("img", {
89
+ }, null, 8, ["src"])) : (n(), x("img", {
101
90
  key: 1,
102
91
  class: "w-full",
103
- src: n.img
92
+ src: i.img
104
93
  }, null, 8, P)),
105
- d("div", Q, [
106
- s.value ? (i(), y(A, { key: 0 }, [
107
- c(o(g), {
94
+ c("div", Q, [
95
+ s.value ? (n(), x(A, { key: 0 }, [
96
+ m(o(g), {
108
97
  variant: "secondary",
109
98
  size: "small",
110
99
  "left-icon": "backward",
111
100
  onClick: e[0] || (e[0] = (t) => O(-90))
112
101
  }),
113
- c(o(g), {
102
+ m(o(g), {
114
103
  variant: "secondary",
115
104
  size: "small",
116
105
  "left-icon": "zoom-out",
117
106
  onClick: e[1] || (e[1] = (t) => z(0.8))
118
107
  }),
119
- c(o(g), {
108
+ m(o(g), {
120
109
  variant: "secondary",
121
110
  size: "small",
122
111
  "left-icon": "zoom-in",
123
112
  onClick: e[2] || (e[2] = (t) => z(1.2))
124
113
  }),
125
- c(o(g), {
114
+ m(o(g), {
126
115
  variant: "secondary",
127
116
  size: "small",
128
117
  "left-icon": "forward",
129
118
  onClick: e[3] || (e[3] = (t) => O(90))
130
119
  })
131
120
  ], 64)) : r("", !0),
132
- n.isReplaceImage ? (i(), u(o(g), {
121
+ i.isReplaceImage ? (n(), u(o(g), {
133
122
  key: 1,
134
123
  class: "absolute right-0",
135
124
  variant: "secondary",
@@ -139,8 +128,8 @@ const M = { class: "flex flex-col gap-y-5" }, P = ["src"], Q = { class: "flex ga
139
128
  onClick: j
140
129
  })) : r("", !0)
141
130
  ]),
142
- d("div", W, [
143
- (m = n.inputOptions) != null && m.includes("description") ? (i(), u(o(x), {
131
+ c("div", W, [
132
+ (d = i.inputOptions) != null && d.includes("description") ? (n(), u(o(V), {
144
133
  key: 0,
145
134
  modelValue: a.value.description,
146
135
  "onUpdate:modelValue": [
@@ -150,7 +139,7 @@ const M = { class: "flex flex-col gap-y-5" }, P = ["src"], Q = { class: "flex ga
150
139
  label: "Describe Image",
151
140
  placeholder: ""
152
141
  }, null, 8, ["modelValue"])) : r("", !0),
153
- ($ = n.inputOptions) != null && $.includes("link") ? (i(), u(o(x), {
142
+ ($ = i.inputOptions) != null && $.includes("link") ? (n(), u(o(V), {
154
143
  key: 1,
155
144
  modelValue: a.value.link,
156
145
  "onUpdate:modelValue": [
@@ -160,15 +149,15 @@ const M = { class: "flex flex-col gap-y-5" }, P = ["src"], Q = { class: "flex ga
160
149
  placeholder: "https://hitpayapp.com",
161
150
  label: "Link to"
162
151
  }, null, 8, ["modelValue"])) : r("", !0),
163
- d("div", null, [
164
- (L = n.inputOptions) != null && L.includes("caption") ? (i(), u(o(D), {
152
+ c("div", null, [
153
+ (L = i.inputOptions) != null && L.includes("caption") ? (n(), u(o(D), {
165
154
  key: 0,
166
155
  modelValue: b.value,
167
156
  "onUpdate:modelValue": e[8] || (e[8] = (t) => b.value = t),
168
157
  label: "Caption",
169
158
  class: "mb-4"
170
159
  }, null, 8, ["modelValue"])) : r("", !0),
171
- (I = n.inputOptions) != null && I.includes("caption") && b.value ? (i(), u(o(x), {
160
+ (I = i.inputOptions) != null && I.includes("caption") && b.value ? (n(), u(o(V), {
172
161
  key: 1,
173
162
  modelValue: a.value.caption,
174
163
  "onUpdate:modelValue": [
@@ -178,7 +167,7 @@ const M = { class: "flex flex-col gap-y-5" }, P = ["src"], Q = { class: "flex ga
178
167
  class: "mb-4",
179
168
  placeholder: ""
180
169
  }, null, 8, ["modelValue"])) : r("", !0),
181
- (R = n.inputOptions) != null && R.includes("caption") && b.value ? (i(), u(o(J), {
170
+ (R = i.inputOptions) != null && R.includes("caption") && b.value ? (n(), u(o(G), {
182
171
  key: 2,
183
172
  "model-value": a.value.caption_variant,
184
173
  "group-name": "caption_variant",
@@ -197,8 +186,8 @@ const M = { class: "flex flex-col gap-y-5" }, P = ["src"], Q = { class: "flex ga
197
186
  "onUpdate:modelValue": e[11] || (e[11] = (t) => f("caption_variant", t))
198
187
  }, null, 8, ["model-value"])) : r("", !0)
199
188
  ]),
200
- d("div", null, [
201
- (B = n.inputOptions) != null && B.includes("lightbox") ? (i(), u(o(D), {
189
+ c("div", null, [
190
+ (B = i.inputOptions) != null && B.includes("lightbox") ? (n(), u(o(D), {
202
191
  key: 0,
203
192
  modelValue: U.value,
204
193
  "onUpdate:modelValue": [
@@ -207,17 +196,17 @@ const M = { class: "flex flex-col gap-y-5" }, P = ["src"], Q = { class: "flex ga
207
196
  ],
208
197
  label: "Lightbox"
209
198
  }, {
210
- after: V(() => [
211
- c(o(G), {
199
+ after: y(() => [
200
+ m(o(H), {
212
201
  position: "bottom",
213
202
  distance: 10,
214
203
  "popper-class": "bg-oc-bg-light min-w-[125px]"
215
204
  }, {
216
- popper: V(() => e[14] || (e[14] = [
217
- d("div", { class: "text-oc-text-400 text-sm px-3 py-2 font-medium text-center" }, " Show lightbox when click the image ", -1)
205
+ popper: y(() => e[14] || (e[14] = [
206
+ c("div", { class: "text-oc-text-400 text-sm px-3 py-2 font-medium text-center" }, " Show lightbox when click the image ", -1)
218
207
  ])),
219
- default: V(() => [
220
- c(o(H), {
208
+ default: y(() => [
209
+ m(o(K), {
221
210
  name: "question-mark",
222
211
  width: "16",
223
212
  height: "16",
@@ -236,5 +225,5 @@ const M = { class: "flex flex-col gap-y-5" }, P = ["src"], Q = { class: "flex ga
236
225
  }
237
226
  };
238
227
  export {
239
- me as default
228
+ ee as default
240
229
  };