@calcom/atoms 1.1.1-debug-dont-use → 1.1.2

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 (180) hide show
  1. package/dist/{AddressInput-CVMPei2D.js → AddressInput-cAznNQd3.js} +1 -1
  2. package/dist/{AlbyPriceComponent-E6ULoDL6.js → AlbyPriceComponent-oZ0IVf6c.js} +24 -24
  3. package/dist/{AppCard-cTGNOAHy.js → AppCard-vSAp__lv.js} +24 -24
  4. package/dist/{AppListCardPlatformWrapper-NSThSuXk.js → AppListCardPlatformWrapper-gpEo1mhs.js} +1 -1
  5. package/dist/{AppListCardWebWrapper-XwKnQn63.js → AppListCardWebWrapper-2mtvbrZI.js} +7 -7
  6. package/dist/{AppSettingsInterface-x5iDZUBe.js → AppSettingsInterface-76krfbgC.js} +4 -4
  7. package/dist/{AppSettingsInterface-YBMLeXt4.js → AppSettingsInterface-U3J8XNfT.js} +1 -1
  8. package/dist/{AppSettingsInterface-ZH3XhiYG.js → AppSettingsInterface-qR8wrA8Z.js} +1 -1
  9. package/dist/DateRangePicker-S8PasnBw.js +74 -0
  10. package/dist/{EventTypeAppCardInterface-cZjp0yNN.js → EventTypeAppCardInterface--cvud7p5.js} +4 -4
  11. package/dist/{EventTypeAppCardInterface--fNkLgYH.js → EventTypeAppCardInterface-3WyRAq4g.js} +40 -40
  12. package/dist/{EventTypeAppCardInterface-TSa1z_cz.js → EventTypeAppCardInterface-5GqOLlXa.js} +3 -3
  13. package/dist/{EventTypeAppCardInterface-ugSSelEX.js → EventTypeAppCardInterface-7BjnHZSW.js} +8 -8
  14. package/dist/{EventTypeAppCardInterface-_mJKoptx.js → EventTypeAppCardInterface-9RRfsmxD.js} +15 -15
  15. package/dist/{EventTypeAppCardInterface-ix9-eOy7.js → EventTypeAppCardInterface-AqVT1BoP.js} +4 -4
  16. package/dist/{EventTypeAppCardInterface-NMuTJqnR.js → EventTypeAppCardInterface-AzUqjRAw.js} +4 -4
  17. package/dist/{EventTypeAppCardInterface-9C3Wfgpy.js → EventTypeAppCardInterface-CWeqREZU.js} +3 -3
  18. package/dist/{EventTypeAppCardInterface-V2CVt-gp.js → EventTypeAppCardInterface-FoNtZTXA.js} +3 -3
  19. package/dist/{EventTypeAppCardInterface-VxD1hz61.js → EventTypeAppCardInterface-GC7AOQgo.js} +4 -4
  20. package/dist/{EventTypeAppCardInterface-qaVZIE5N.js → EventTypeAppCardInterface-HQMqzp7c.js} +3 -3
  21. package/dist/{EventTypeAppCardInterface-_2yZa06r.js → EventTypeAppCardInterface-N7WcmdT4.js} +3 -3
  22. package/dist/{EventTypeAppCardInterface-0gSJQJit.js → EventTypeAppCardInterface-R0X4nckV.js} +2 -2
  23. package/dist/{EventTypeAppCardInterface-L_OQx-GG.js → EventTypeAppCardInterface-Uu3O27xa.js} +4 -4
  24. package/dist/{EventTypeAppCardInterface-0cii-lHS.js → EventTypeAppCardInterface-V8atUcK-.js} +4 -4
  25. package/dist/{EventTypeAppCardInterface-JCEQYUtS.js → EventTypeAppCardInterface-Y07gIvmX.js} +4 -4
  26. package/dist/{EventTypeAppCardInterface-VdYfOsab.js → EventTypeAppCardInterface-Z-LBRQAn.js} +3 -3
  27. package/dist/{EventTypeAppCardInterface-F5At064k.js → EventTypeAppCardInterface-aYTZV5EF.js} +8 -8
  28. package/dist/{EventTypeAppCardInterface-C6ns7UmL.js → EventTypeAppCardInterface-bEYxRxeM.js} +3 -3
  29. package/dist/{EventTypeAppCardInterface-x8x6_qO2.js → EventTypeAppCardInterface-dKaaMNor.js} +26 -26
  30. package/dist/{EventTypeAppCardInterface-omHgFR_2.js → EventTypeAppCardInterface-lguZWNvV.js} +3 -3
  31. package/dist/{EventTypeAppCardInterface-Q8BoN8IR.js → EventTypeAppCardInterface-p0blDTaQ.js} +3 -3
  32. package/dist/{EventTypeAppCardInterface-2TR5xhf8.js → EventTypeAppCardInterface-rppYuGVz.js} +4 -4
  33. package/dist/EventTypeAppCardInterface-tkKsbhWo.js +39 -0
  34. package/dist/{EventTypeAppCardInterface-Zei_gfk9.js → EventTypeAppCardInterface-utvbMc02.js} +10 -10
  35. package/dist/{EventTypeAppCardInterface-pS7YojCs.js → EventTypeAppCardInterface-wXpCgFPS.js} +3 -3
  36. package/dist/EventTypeAppCardInterface-zGyldaa9.js +24 -0
  37. package/dist/{EventTypeAppSettingsInterface-Mw0nUm2I.js → EventTypeAppSettingsInterface-7hS6GTO2.js} +3 -3
  38. package/dist/{EventTypeAppSettingsInterface-_jGTLesb.js → EventTypeAppSettingsInterface-FQeyEBxu.js} +5 -5
  39. package/dist/{EventTypeAppSettingsInterface-aGQavYPZ.js → EventTypeAppSettingsInterface-HK0lsJ28.js} +1 -1
  40. package/dist/{EventTypeAppSettingsInterface-xfI4WyE9.js → EventTypeAppSettingsInterface-MG2xFbSG.js} +1 -1
  41. package/dist/{EventTypeAppSettingsInterface-mf5L8PKf.js → EventTypeAppSettingsInterface-Ra9cL5JB.js} +1 -1
  42. package/dist/{EventTypeAppSettingsInterface-USUuP18O.js → EventTypeAppSettingsInterface-XL4D2Dyv.js} +1 -1
  43. package/dist/{EventTypeAppSettingsInterface-TxRlEgaM.js → EventTypeAppSettingsInterface-ZIUpW8te.js} +10 -10
  44. package/dist/EventTypeAppSettingsInterface-afhCdPkJ.js +79 -0
  45. package/dist/{EventTypeAppSettingsInterface-A-zPsqPN.js → EventTypeAppSettingsInterface-bA-Dmxj2.js} +8 -8
  46. package/dist/{EventTypeAppSettingsInterface-SrOLSflD.js → EventTypeAppSettingsInterface-g5jo9GKH.js} +1 -1
  47. package/dist/{EventTypeAppSettingsInterface-N-387tFo.js → EventTypeAppSettingsInterface-sazwK3zk.js} +7 -7
  48. package/dist/{EventTypeAppSettingsInterface-uJw6TEuG.js → EventTypeAppSettingsInterface-sbAmbLiK.js} +8 -8
  49. package/dist/{EventTypeAppSettingsInterface-wRyNHA8Z.js → EventTypeAppSettingsInterface-ycOpDd2-.js} +1 -1
  50. package/dist/{InstallAppButton-3pRRFAeS.js → InstallAppButton-0Gg9ocXb.js} +3 -3
  51. package/dist/{InstallAppButton-sMIEaIrB.js → InstallAppButton-JHaJ7T7H.js} +1 -1
  52. package/dist/{InstallAppButton-xME8ESsW.js → InstallAppButton-JN6i4iBH.js} +3 -3
  53. package/dist/{PhoneInput-_96ULuJw.js → PhoneInput-eRYuhuju.js} +1 -1
  54. package/dist/{StripePaymentForm-1ANfOJyB.js → StripePaymentForm-B1BkBzO9.js} +6 -6
  55. package/dist/cal-atoms.js +17 -17
  56. package/dist/{index-qcnOr3S-.js → index-D-baW2SF.js} +1 -1
  57. package/dist/{index-ZQlxzdt5.js → index-GkJhe-oj.js} +68967 -65349
  58. package/dist/{index-me6CfU0W.js → index-V8Hhry6U.js} +18 -18
  59. package/dist/index-l2YMCxIx.js +30 -0
  60. package/dist/packages/features/bookings/Booker/Booker.d.ts.map +1 -1
  61. package/dist/packages/features/bookings/Booker/components/DatePicker.d.ts.map +1 -1
  62. package/dist/packages/features/bookings/Booker/components/EventMeta.d.ts +1 -1
  63. package/dist/packages/features/bookings/Booker/components/EventMeta.d.ts.map +1 -1
  64. package/dist/packages/features/bookings/Booker/store.d.ts +5 -1
  65. package/dist/packages/features/bookings/Booker/store.d.ts.map +1 -1
  66. package/dist/packages/features/bookings/Booker/utils/event.d.ts +21 -1
  67. package/dist/packages/features/bookings/Booker/utils/event.d.ts.map +1 -1
  68. package/dist/packages/features/bookings/lib/getBookingToDelete.d.ts +1 -1
  69. package/dist/packages/features/bookings/lib/handleNewBooking/checkBookingAndDurationLimits.d.ts +10 -1
  70. package/dist/packages/features/bookings/lib/handleNewBooking/checkBookingAndDurationLimits.d.ts.map +1 -1
  71. package/dist/packages/features/bookings/lib/handleNewBooking/ensureAvailableUsers.d.ts +4 -0
  72. package/dist/packages/features/bookings/lib/handleNewBooking/ensureAvailableUsers.d.ts.map +1 -1
  73. package/dist/packages/features/bookings/lib/handleNewBooking/getEventType.d.ts +14 -0
  74. package/dist/packages/features/bookings/lib/handleNewBooking/getEventType.d.ts.map +1 -1
  75. package/dist/packages/features/bookings/lib/handleNewBooking/getEventTypesFromDB.d.ts +4 -0
  76. package/dist/packages/features/bookings/lib/handleNewBooking/getEventTypesFromDB.d.ts.map +1 -1
  77. package/dist/packages/features/bookings/lib/handleNewBooking/loadUsers.d.ts.map +1 -1
  78. package/dist/packages/features/bookings/lib/handleNewBooking/originalRescheduledBookingUtils.d.ts +1 -1
  79. package/dist/packages/features/bookings/lib/handleNewBooking/types.d.ts +2 -0
  80. package/dist/packages/features/bookings/lib/handleNewBooking/types.d.ts.map +1 -1
  81. package/dist/packages/features/bookings/lib/handleNewBooking.d.ts.map +1 -1
  82. package/dist/packages/features/bookings/types.d.ts +1 -1
  83. package/dist/packages/features/bookings/types.d.ts.map +1 -1
  84. package/dist/packages/features/components/timezone-select/TimezoneSelect.d.ts.map +1 -1
  85. package/dist/packages/features/data-table/components/filters/index.d.ts.map +1 -1
  86. package/dist/packages/features/ee/payments/components/PaymentPage.d.ts.map +1 -1
  87. package/dist/packages/features/ee/payments/pages/payment.d.ts +1 -0
  88. package/dist/packages/features/ee/payments/pages/payment.d.ts.map +1 -1
  89. package/dist/packages/features/ee/round-robin/handleRescheduleEventManager.d.ts +2 -0
  90. package/dist/packages/features/ee/round-robin/handleRescheduleEventManager.d.ts.map +1 -1
  91. package/dist/packages/features/ee/workflows/api/scheduleEmailReminders.d.ts.map +1 -1
  92. package/dist/packages/features/ee/workflows/api/scheduleSMSReminders.d.ts.map +1 -1
  93. package/dist/packages/features/ee/workflows/lib/getWorkflowReminders.d.ts +6 -0
  94. package/dist/packages/features/ee/workflows/lib/getWorkflowReminders.d.ts.map +1 -1
  95. package/dist/packages/features/ee/workflows/lib/reminders/emailReminderManager.d.ts.map +1 -1
  96. package/dist/packages/features/ee/workflows/lib/reminders/utils.d.ts.map +1 -1
  97. package/dist/packages/features/ee/workflows/lib/repository/workflowReminder.d.ts +1 -1
  98. package/dist/packages/features/ee/workflows/lib/schema.d.ts +4 -4
  99. package/dist/packages/features/eventtypes/components/EventType.d.ts +2 -1
  100. package/dist/packages/features/eventtypes/components/EventType.d.ts.map +1 -1
  101. package/dist/packages/features/eventtypes/components/EventTypeLayout.d.ts +2 -1
  102. package/dist/packages/features/eventtypes/components/EventTypeLayout.d.ts.map +1 -1
  103. package/dist/packages/features/eventtypes/components/MultiplePrivateLinksController.d.ts +4 -1
  104. package/dist/packages/features/eventtypes/components/MultiplePrivateLinksController.d.ts.map +1 -1
  105. package/dist/packages/features/eventtypes/components/tabs/advanced/EventAdvancedTab.d.ts +1 -1
  106. package/dist/packages/features/eventtypes/components/tabs/advanced/EventAdvancedTab.d.ts.map +1 -1
  107. package/dist/packages/features/eventtypes/lib/getPublicEvent.d.ts +33 -1
  108. package/dist/packages/features/eventtypes/lib/getPublicEvent.d.ts.map +1 -1
  109. package/dist/packages/features/eventtypes/lib/getTeamEventType.d.ts +2 -1
  110. package/dist/packages/features/eventtypes/lib/getTeamEventType.d.ts.map +1 -1
  111. package/dist/packages/features/eventtypes/lib/types.d.ts +16 -1
  112. package/dist/packages/features/eventtypes/lib/types.d.ts.map +1 -1
  113. package/dist/packages/features/form-builder/FormBuilder.d.ts.map +1 -1
  114. package/dist/packages/features/form-builder/FormBuilderField.d.ts.map +1 -1
  115. package/dist/packages/features/form-builder/fieldsThatSupportLabelAsSafeHtml.d.ts.map +1 -1
  116. package/dist/packages/features/instant-meeting/handleInstantMeeting.d.ts.map +1 -1
  117. package/dist/packages/features/instant-meeting/handleInstantMeeting.test.d.ts +2 -0
  118. package/dist/packages/features/instant-meeting/handleInstantMeeting.test.d.ts.map +1 -0
  119. package/dist/packages/features/schedules/components/DateOverrideList.d.ts.map +1 -1
  120. package/dist/packages/platform/atoms/availability/AvailabilitySettings.d.ts +3 -2
  121. package/dist/packages/platform/atoms/availability/AvailabilitySettings.d.ts.map +1 -1
  122. package/dist/packages/platform/atoms/availability/types.d.ts +8 -0
  123. package/dist/packages/platform/atoms/availability/types.d.ts.map +1 -1
  124. package/dist/packages/platform/atoms/availability/wrappers/AvailabilitySettingsPlatformWrapper.d.ts +1 -1
  125. package/dist/packages/platform/atoms/availability/wrappers/AvailabilitySettingsPlatformWrapper.d.ts.map +1 -1
  126. package/dist/packages/platform/atoms/booker/BookerPlatformWrapper.d.ts.map +1 -1
  127. package/dist/packages/platform/atoms/booker/types.d.ts +1 -0
  128. package/dist/packages/platform/atoms/booker/types.d.ts.map +1 -1
  129. package/dist/packages/platform/atoms/cal-provider/BaseCalProvider.d.ts.map +1 -1
  130. package/dist/packages/platform/atoms/connect/conferencing-apps/hooks/useAtomBulkUpdateEventTypesToDefaultLocation.d.ts +1 -0
  131. package/dist/packages/platform/atoms/connect/conferencing-apps/hooks/useAtomBulkUpdateEventTypesToDefaultLocation.d.ts.map +1 -1
  132. package/dist/packages/platform/atoms/event-types/hooks/useAtomEventTypeById.d.ts +24 -2
  133. package/dist/packages/platform/atoms/event-types/hooks/useAtomEventTypeById.d.ts.map +1 -1
  134. package/dist/packages/platform/atoms/event-types/hooks/useAtomEventTypePaymentInfo.d.ts +1 -0
  135. package/dist/packages/platform/atoms/event-types/hooks/useAtomEventTypePaymentInfo.d.ts.map +1 -1
  136. package/dist/packages/platform/atoms/event-types/hooks/useAtomUpdateEventType.d.ts +9 -1
  137. package/dist/packages/platform/atoms/event-types/hooks/useAtomUpdateEventType.d.ts.map +1 -1
  138. package/dist/packages/platform/atoms/event-types/hooks/useEventTypeForm.d.ts.map +1 -1
  139. package/dist/packages/platform/atoms/event-types/wrappers/EventTypePlatformWrapper.d.ts +2 -2
  140. package/dist/packages/platform/atoms/event-types/wrappers/EventTypePlatformWrapper.d.ts.map +1 -1
  141. package/dist/packages/platform/atoms/event-types/wrappers/types.d.ts +2 -0
  142. package/dist/packages/platform/atoms/event-types/wrappers/types.d.ts.map +1 -1
  143. package/dist/packages/platform/atoms/hooks/connect/useConnect.d.ts.map +1 -1
  144. package/dist/packages/platform/atoms/hooks/event-types/private/useCreateEventType.d.ts +1 -0
  145. package/dist/packages/platform/atoms/hooks/event-types/private/useCreateEventType.d.ts.map +1 -1
  146. package/dist/packages/platform/atoms/hooks/event-types/private/useCreateTeamEventType.d.ts +1 -0
  147. package/dist/packages/platform/atoms/hooks/event-types/private/useCreateTeamEventType.d.ts.map +1 -1
  148. package/dist/packages/platform/atoms/hooks/event-types/private/useDeleteEventTypeById.d.ts +1 -0
  149. package/dist/packages/platform/atoms/hooks/event-types/private/useDeleteEventTypeById.d.ts.map +1 -1
  150. package/dist/packages/platform/atoms/hooks/event-types/public/useAtomGetPublicEvent.d.ts +21 -1
  151. package/dist/packages/platform/atoms/hooks/event-types/public/useAtomGetPublicEvent.d.ts.map +1 -1
  152. package/dist/packages/platform/atoms/hooks/schedules/useAtomSchedule.d.ts.map +1 -1
  153. package/dist/packages/platform/atoms/index.d.ts +2 -0
  154. package/dist/packages/platform/atoms/index.d.ts.map +1 -1
  155. package/dist/packages/platform/libraries/bookings.d.ts +3 -0
  156. package/dist/packages/platform/libraries/bookings.d.ts.map +1 -0
  157. package/dist/packages/platform/libraries/index.d.ts +1 -0
  158. package/dist/packages/platform/libraries/index.d.ts.map +1 -1
  159. package/dist/packages/platform/libraries/repositories.d.ts +2 -1
  160. package/dist/packages/platform/libraries/repositories.d.ts.map +1 -1
  161. package/dist/packages/platform/types/event-types/event-types_2024_06_14/inputs/create-event-type.input.d.ts +1 -0
  162. package/dist/packages/platform/types/event-types/event-types_2024_06_14/inputs/create-event-type.input.d.ts.map +1 -1
  163. package/dist/packages/prisma/zod/custom/eventtype.d.ts +41 -3
  164. package/dist/packages/prisma/zod/custom/eventtype.d.ts.map +1 -1
  165. package/dist/packages/prisma/zod/eventtype.d.ts +11 -0
  166. package/dist/packages/prisma/zod/eventtype.d.ts.map +1 -1
  167. package/dist/packages/prisma/zod/hashedlink.d.ts +9 -0
  168. package/dist/packages/prisma/zod/hashedlink.d.ts.map +1 -1
  169. package/dist/packages/prisma/zod/workflowstep.d.ts +2 -2
  170. package/dist/packages/prisma/zod-utils.d.ts +154 -0
  171. package/dist/packages/prisma/zod-utils.d.ts.map +1 -1
  172. package/dist/packages/prisma-client/index.d.ts +248 -1
  173. package/dist/packages/trpc/server/routers/viewer/slots/util.d.ts +7 -3
  174. package/dist/packages/trpc/server/routers/viewer/slots/util.d.ts.map +1 -1
  175. package/dist/{useIsAppEnabled-V8Jl9FX-.js → useIsAppEnabled-oIf6wORY.js} +1 -1
  176. package/globals.min.css +16 -3
  177. package/package.json +3 -4
  178. package/dist/DateRangePicker-f_B5u4e9.js +0 -2405
  179. package/dist/EventTypeAppCardInterface-wPiG1Uab.js +0 -24
  180. package/dist/index-VZRHTsae.js +0 -28
@@ -1,31 +1,31 @@
1
- import { jsx as t, Fragment as o, jsxs as u } from "react/jsx-runtime";
2
- import { s as v, q as F, t as T, w as a, W as _, x as L, f as V, S as x } from "./index-ZQlxzdt5.js";
1
+ import { jsx as a, Fragment as o, jsxs as u } from "react/jsx-runtime";
2
+ import { z as v, y as T, G as _, K as t, W as q, M as L, f as V, S as g } from "./index-GkJhe-oj.js";
3
3
  import { useMemo as W, useState as p } from "react";
4
- import { A as $ } from "./AppCard-cTGNOAHy.js";
5
- import { c as g, i as j, a as C } from "./currencyOptions-kannG2hu.js";
6
- const H = function({ app: S, eventType: A }) {
4
+ import { A as $ } from "./AppCard-vSAp__lv.js";
5
+ import { c as x, i as j, a as C } from "./currencyOptions-kannG2hu.js";
6
+ const U = function({ app: S, eventType: A }) {
7
7
  var f, h;
8
8
  const i = v.useSearchParams(), d = v.usePathname(), P = W(
9
9
  () => `${d}${i ? `?${i.toString()}` : ""}`,
10
10
  [d, i]
11
- ), { t: n } = F(), { getAppData: r, setAppData: c } = T(), y = r("price"), l = r("currency"), k = r("paymentOption"), N = r("enabled"), [s, O] = p(g.find((e) => e.value === l)), [w, E] = p(
11
+ ), { t: n } = T(), { getAppData: r, setAppData: c } = _(), y = r("price"), l = r("currency"), k = r("paymentOption"), N = r("enabled"), [s, O] = p(x.find((e) => e.value === l)), [w, E] = p(
12
12
  j(l) ? C[l] : ""
13
- ), [b, q] = p(N), m = ((f = a) == null ? void 0 : f.find((e) => k === e.value)) || {
14
- label: a[0].label,
15
- value: a[0].value
16
- }, D = ((h = A.recurringEvent) == null ? void 0 : h.count) !== void 0;
17
- return /* @__PURE__ */ t(
13
+ ), [b, D] = p(N), m = ((f = t) == null ? void 0 : f.find((e) => k === e.value)) || {
14
+ label: t[0].label,
15
+ value: t[0].value
16
+ }, F = ((h = A.recurringEvent) == null ? void 0 : h.count) !== void 0;
17
+ return /* @__PURE__ */ a(
18
18
  $,
19
19
  {
20
- returnTo: _ + P,
20
+ returnTo: q + P,
21
21
  app: S,
22
22
  switchChecked: b,
23
23
  switchOnClick: (e) => {
24
- q(e);
24
+ D(e);
25
25
  },
26
- description: /* @__PURE__ */ t(o, { children: "Add a mock payment to your events" }),
27
- children: /* @__PURE__ */ t(o, { children: D ? /* @__PURE__ */ t(L, { className: "mt-2", severity: "warning", title: n("warning_recurring_event_payment") }) : b && /* @__PURE__ */ u(o, { children: [
28
- /* @__PURE__ */ t("div", { className: "mt-2 block items-center sm:flex", children: /* @__PURE__ */ t(
26
+ description: /* @__PURE__ */ a(o, { children: "Add a mock payment to your events" }),
27
+ children: /* @__PURE__ */ a(o, { children: F ? /* @__PURE__ */ a(L, { className: "mt-2", severity: "warning", title: n("warning_recurring_event_payment") }) : b && /* @__PURE__ */ u(o, { children: [
28
+ /* @__PURE__ */ a("div", { className: "mt-2 block items-center sm:flex", children: /* @__PURE__ */ a(
29
29
  V,
30
30
  {
31
31
  id: "test-mock-payment-app-price",
@@ -46,13 +46,13 @@ const H = function({ app: S, eventType: A }) {
46
46
  }
47
47
  ) }),
48
48
  /* @__PURE__ */ u("div", { className: "mt-5 w-60", children: [
49
- /* @__PURE__ */ t("label", { className: "text-default mb-1 block text-sm font-medium", htmlFor: "currency", children: n("currency") }),
50
- /* @__PURE__ */ t(
51
- x,
49
+ /* @__PURE__ */ a("label", { className: "text-default mb-1 block text-sm font-medium", htmlFor: "currency", children: n("currency") }),
50
+ /* @__PURE__ */ a(
51
+ g,
52
52
  {
53
53
  id: "test-mock-payment-app-currency-id",
54
54
  variant: "default",
55
- options: g,
55
+ options: x,
56
56
  value: s,
57
57
  className: "text-black",
58
58
  defaultValue: s,
@@ -63,12 +63,12 @@ const H = function({ app: S, eventType: A }) {
63
63
  )
64
64
  ] }),
65
65
  /* @__PURE__ */ u("div", { className: "mt-4 w-60", children: [
66
- /* @__PURE__ */ t("label", { className: "text-default mb-1 block text-sm font-medium", htmlFor: "currency", children: "Payment option" }),
67
- /* @__PURE__ */ t(
68
- x,
66
+ /* @__PURE__ */ a("label", { className: "text-default mb-1 block text-sm font-medium", htmlFor: "currency", children: "Payment option" }),
67
+ /* @__PURE__ */ a(
68
+ g,
69
69
  {
70
- defaultValue: m ? { ...m, label: n(m.label) } : { ...a[0], label: n(a[0].label) },
71
- options: a.map((e) => ({ ...e, label: n(e.label) || e.label })),
70
+ defaultValue: m ? { ...m, label: n(m.label) } : { ...t[0], label: n(t[0].label) },
71
+ options: t.map((e) => ({ ...e, label: n(e.label) || e.label })),
72
72
  onChange: (e) => {
73
73
  e && c("paymentOption", e.value);
74
74
  },
@@ -82,5 +82,5 @@ const H = function({ app: S, eventType: A }) {
82
82
  );
83
83
  };
84
84
  export {
85
- H as default
85
+ U as default
86
86
  };
@@ -1,7 +1,7 @@
1
1
  import { jsx as s } from "react/jsx-runtime";
2
- import { s as d, W as i } from "./index-ZQlxzdt5.js";
3
- import { A as m } from "./AppCard-cTGNOAHy.js";
4
- import { u } from "./useIsAppEnabled-V8Jl9FX-.js";
2
+ import { z as d, W as i } from "./index-GkJhe-oj.js";
3
+ import { A as m } from "./AppCard-vSAp__lv.js";
4
+ import { u } from "./useIsAppEnabled-oIf6wORY.js";
5
5
  const l = function({ app: t, eventType: e }) {
6
6
  var a;
7
7
  const p = d.usePathname(), { enabled: n, updateEnabled: r } = u(t);
@@ -1,7 +1,7 @@
1
1
  import { jsx as s } from "react/jsx-runtime";
2
- import { s as d, W as i } from "./index-ZQlxzdt5.js";
3
- import { A as m } from "./AppCard-cTGNOAHy.js";
4
- import { u } from "./useIsAppEnabled-V8Jl9FX-.js";
2
+ import { z as d, W as i } from "./index-GkJhe-oj.js";
3
+ import { A as m } from "./AppCard-vSAp__lv.js";
4
+ import { u } from "./useIsAppEnabled-oIf6wORY.js";
5
5
  const l = function({ app: t, eventType: e }) {
6
6
  var a;
7
7
  const p = d.usePathname(), { enabled: n, updateEnabled: r } = u(t);
@@ -1,8 +1,8 @@
1
1
  import { jsx as a } from "react/jsx-runtime";
2
- import { t as m } from "./index-ZQlxzdt5.js";
3
- import { A as c } from "./AppCard-cTGNOAHy.js";
4
- import { u as l } from "./useIsAppEnabled-V8Jl9FX-.js";
5
- import u from "./EventTypeAppSettingsInterface-SrOLSflD.js";
2
+ import { G as m } from "./index-GkJhe-oj.js";
3
+ import { A as c } from "./AppCard-vSAp__lv.js";
4
+ import { u as l } from "./useIsAppEnabled-oIf6wORY.js";
5
+ import u from "./EventTypeAppSettingsInterface-g5jo9GKH.js";
6
6
  const g = function({ eventType: e, app: t }) {
7
7
  var p;
8
8
  const { enabled: r, updateEnabled: s } = l(t), { disabled: o, getAppData: n, setAppData: d } = m();
@@ -0,0 +1,39 @@
1
+ import { jsx as t, Fragment as u } from "react/jsx-runtime";
2
+ import { y as A, z as y, G as g, J as b, W as f } from "./index-GkJhe-oj.js";
3
+ import { useState as P } from "react";
4
+ import { A as v } from "./AppCard-vSAp__lv.js";
5
+ import C from "./EventTypeAppSettingsInterface-afhCdPkJ.js";
6
+ const x = function({
7
+ eventType: o,
8
+ app: e,
9
+ eventTypeFormMetadata: p
10
+ }) {
11
+ const { t: i } = A(), r = y.usePathname(), { getAppData: a, setAppData: c, disabled: m } = g(), [n, d] = P(a("enabled")), l = b(p), s = !n && l;
12
+ return /* @__PURE__ */ t(
13
+ v,
14
+ {
15
+ returnTo: `${f}${r}?tabName=apps`,
16
+ app: e,
17
+ switchChecked: n,
18
+ switchOnClick: (h) => {
19
+ d(h);
20
+ },
21
+ description: /* @__PURE__ */ t(u, { children: "Add lightning payments to your events and booking" }),
22
+ disableSwitch: s,
23
+ switchTooltip: s ? i("other_payment_app_enabled") : void 0,
24
+ children: /* @__PURE__ */ t(
25
+ C,
26
+ {
27
+ eventType: o,
28
+ slug: e.slug,
29
+ disabled: m,
30
+ getAppData: a,
31
+ setAppData: c
32
+ }
33
+ )
34
+ }
35
+ );
36
+ };
37
+ export {
38
+ x as default
39
+ };
@@ -1,21 +1,21 @@
1
1
  import { jsx as e, Fragment as p } from "react/jsx-runtime";
2
- import { s as i, t as f, v as g, q as v, W as S } from "./index-ZQlxzdt5.js";
3
- import { useMemo as b, useState as C } from "react";
4
- import { A as w } from "./AppCard-cTGNOAHy.js";
5
- import E from "./EventTypeAppSettingsInterface-TxRlEgaM.js";
6
- const W = function({
2
+ import { z as i, G as f, J as g, y as S, W as b } from "./index-GkJhe-oj.js";
3
+ import { useMemo as v, useState as C } from "react";
4
+ import { A as w } from "./AppCard-vSAp__lv.js";
5
+ import E from "./EventTypeAppSettingsInterface-ZIUpW8te.js";
6
+ const $ = function({
7
7
  app: a,
8
8
  eventType: c,
9
9
  eventTypeFormMetadata: m
10
10
  }) {
11
- const t = i.useSearchParams(), s = i.usePathname(), h = b(
11
+ const t = i.useSearchParams(), s = i.usePathname(), h = v(
12
12
  () => `${s}${t ? `?${t.toString()}` : ""}`,
13
13
  [s, t]
14
- ), { getAppData: n, setAppData: d, disabled: l } = f(), [o, u] = C(n("enabled")), A = g(m), { t: y } = v(), r = !o && A;
14
+ ), { getAppData: n, setAppData: d, disabled: l } = f(), [o, u] = C(n("enabled")), y = g(m), { t: A } = S(), r = !o && y;
15
15
  return /* @__PURE__ */ e(
16
16
  w,
17
17
  {
18
- returnTo: S + h,
18
+ returnTo: b + h,
19
19
  app: a,
20
20
  switchChecked: o,
21
21
  switchOnClick: (P) => {
@@ -23,7 +23,7 @@ const W = function({
23
23
  },
24
24
  description: /* @__PURE__ */ e(p, { children: "Add Paypal payment to your events" }),
25
25
  disableSwitch: r,
26
- switchTooltip: r ? y("other_payment_app_enabled") : void 0,
26
+ switchTooltip: r ? A("other_payment_app_enabled") : void 0,
27
27
  children: /* @__PURE__ */ e(p, { children: /* @__PURE__ */ e(
28
28
  E,
29
29
  {
@@ -38,5 +38,5 @@ const W = function({
38
38
  );
39
39
  };
40
40
  export {
41
- W as default
41
+ $ as default
42
42
  };
@@ -1,7 +1,7 @@
1
1
  import { jsx as p } from "react/jsx-runtime";
2
- import { t as l, f as m } from "./index-ZQlxzdt5.js";
3
- import { A as u } from "./AppCard-cTGNOAHy.js";
4
- import { u as I } from "./useIsAppEnabled-V8Jl9FX-.js";
2
+ import { G as l, f as m } from "./index-GkJhe-oj.js";
3
+ import { A as u } from "./AppCard-vSAp__lv.js";
4
+ import { u as I } from "./useIsAppEnabled-oIf6wORY.js";
5
5
  const D = function({ app: t, eventType: n }) {
6
6
  var a;
7
7
  const { getAppData: o, setAppData: r, disabled: d } = l(), s = o("SITE_ID"), { enabled: i, updateEnabled: c } = I(t);
@@ -0,0 +1,24 @@
1
+ import { jsx as s } from "react/jsx-runtime";
2
+ import { z as d, W as i } from "./index-GkJhe-oj.js";
3
+ import { A as m } from "./AppCard-vSAp__lv.js";
4
+ import { u } from "./useIsAppEnabled-oIf6wORY.js";
5
+ const l = function({ app: t, eventType: e }) {
6
+ var a;
7
+ const p = d.usePathname(), { enabled: n, updateEnabled: r } = u(t);
8
+ return /* @__PURE__ */ s(
9
+ m,
10
+ {
11
+ returnTo: `${i}${p}?tabName=apps`,
12
+ app: t,
13
+ teamId: ((a = e.team) == null ? void 0 : a.id) || void 0,
14
+ switchOnClick: (o) => {
15
+ r(o);
16
+ },
17
+ switchChecked: n,
18
+ hideAppCardOptions: !0
19
+ }
20
+ );
21
+ };
22
+ export {
23
+ l as default
24
+ };
@@ -1,7 +1,7 @@
1
1
  import { jsxs as o, jsx as c } from "react/jsx-runtime";
2
2
  import { useState as m, useEffect as v } from "react";
3
- import { y as p, S as h } from "./index-ZQlxzdt5.js";
4
- const P = ({}) => {
3
+ import { O as p, S as h } from "./index-GkJhe-oj.js";
4
+ const S = ({}) => {
5
5
  const [n, u] = m(), [f, r] = m(), { data: e } = p.viewer.appBasecamp3.projects.useQuery(), d = p.viewer.appBasecamp3.projectMutation.useMutation();
6
6
  return v(
7
7
  function() {
@@ -44,5 +44,5 @@ const P = ({}) => {
44
44
  ] });
45
45
  };
46
46
  export {
47
- P as default
47
+ S as default
48
48
  };
@@ -1,21 +1,21 @@
1
1
  import { jsx as l, Fragment as x, jsxs as o } from "react/jsx-runtime";
2
2
  import { useState as N, useEffect as w } from "react";
3
- import { q as _, V as t, x as g, f as C, O as P, S as p } from "./index-ZQlxzdt5.js";
3
+ import { y as _, a1 as t, M as g, f as C, Y as P, S as p } from "./index-GkJhe-oj.js";
4
4
  const d = [{ label: "BTC", value: "BTC", unit: "sats" }], T = ({
5
5
  eventType: f,
6
6
  getAppData: s,
7
7
  setAppData: a
8
8
  }) => {
9
9
  var v, h;
10
- const { t: n } = _(), i = s("price"), c = s("currency"), [r, O] = N(
10
+ const { t: n } = _(), i = s("price"), c = s("currency"), [r, S] = N(
11
11
  d.find((e) => e.value === c) || d[0]
12
12
  ), b = s("paymentOption"), u = ((v = t) == null ? void 0 : v.find((e) => b === e.value)) || {
13
13
  label: t[0].label,
14
14
  value: t[0].value
15
- }, y = !!f.seatsPerTimeSlot, [m] = N(s("enabled")), S = ((h = f.recurringEvent) == null ? void 0 : h.count) !== void 0;
15
+ }, y = !!f.seatsPerTimeSlot, [m] = N(s("enabled")), O = ((h = f.recurringEvent) == null ? void 0 : h.count) !== void 0;
16
16
  return w(() => {
17
17
  !c && m && a("currency", r.value);
18
- }, [c, r, a, m]), /* @__PURE__ */ l(x, { children: S ? /* @__PURE__ */ l(g, { className: "mt-2", severity: "warning", title: n("warning_recurring_event_payment") }) : m && /* @__PURE__ */ o(x, { children: [
18
+ }, [c, r, a, m]), /* @__PURE__ */ l(x, { children: O ? /* @__PURE__ */ l(g, { className: "mt-2", severity: "warning", title: n("warning_recurring_event_payment") }) : m && /* @__PURE__ */ o(x, { children: [
19
19
  /* @__PURE__ */ l("div", { className: "mt-2 block items-center sm:flex", children: /* @__PURE__ */ l(
20
20
  C,
21
21
  {
@@ -44,7 +44,7 @@ const d = [{ label: "BTC", value: "BTC", unit: "sats" }], T = ({
44
44
  className: "text-black",
45
45
  defaultValue: r,
46
46
  onChange: (e) => {
47
- e && (O(e), a("currency", e.value));
47
+ e && (S(e), a("currency", e.value));
48
48
  }
49
49
  }
50
50
  )
@@ -1,5 +1,5 @@
1
1
  import { jsxs as c, jsx as i } from "react/jsx-runtime";
2
- import { f as s } from "./index-ZQlxzdt5.js";
2
+ import { f as s } from "./index-GkJhe-oj.js";
3
3
  const p = ({
4
4
  getAppData: a,
5
5
  setAppData: t,
@@ -1,5 +1,5 @@
1
1
  import { jsx as i } from "react/jsx-runtime";
2
- import { f as o } from "./index-ZQlxzdt5.js";
2
+ import { f as o } from "./index-GkJhe-oj.js";
3
3
  const p = ({
4
4
  getAppData: t,
5
5
  setAppData: e,
@@ -1,5 +1,5 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
- import { f as c } from "./index-ZQlxzdt5.js";
2
+ import { f as c } from "./index-GkJhe-oj.js";
3
3
  const s = ({
4
4
  getAppData: t,
5
5
  setAppData: e,
@@ -1,5 +1,5 @@
1
1
  import { jsx as i } from "react/jsx-runtime";
2
- import { f as g } from "./index-ZQlxzdt5.js";
2
+ import { f as g } from "./index-GkJhe-oj.js";
3
3
  const o = ({
4
4
  getAppData: t,
5
5
  setAppData: a,
@@ -1,22 +1,22 @@
1
1
  import { jsx as l, jsxs as m, Fragment as w } from "react/jsx-runtime";
2
2
  import { useState as o, useEffect as _ } from "react";
3
- import { c as i, i as k, a as x } from "./currencyOptions-kannG2hu.js";
4
- import { z as r, q as E, x as S, f as F, G as q, J as T, S as O } from "./index-ZQlxzdt5.js";
5
- const G = ({
3
+ import { c as i, i as k, a as S } from "./currencyOptions-kannG2hu.js";
4
+ import { Q as r, y as E, M as x, f as F, R as T, U as q, S as O } from "./index-GkJhe-oj.js";
5
+ const H = ({
6
6
  getAppData: n,
7
7
  setAppData: t,
8
8
  eventType: d
9
9
  }) => {
10
10
  var p, h;
11
11
  const y = n("price"), a = n("currency") || i[0].value, [s, N] = o(i.find((e) => e.value === a)), [C, P] = o(
12
- k(a) ? x[a] : ""
12
+ k(a) ? S[a] : ""
13
13
  ), f = n("paymentOption"), u = ((p = r) == null ? void 0 : p.find((e) => f === e.value)) || {
14
14
  label: r[0].label,
15
15
  value: r[0].value
16
16
  }, b = !!d.seatsPerTimeSlot, [v, L] = o(n("enabled")), { t: c } = E(), g = ((h = d.recurringEvent) == null ? void 0 : h.count) !== void 0;
17
17
  return _(() => {
18
18
  v && (n("currency") || t("currency", i[0].value), n("paymentOption") || t("paymentOption", r[0].value));
19
- }, []), g ? /* @__PURE__ */ l(S, { className: "mt-2", severity: "warning", title: c("warning_recurring_event_payment") }) : v ? /* @__PURE__ */ m(w, { children: [
19
+ }, []), g ? /* @__PURE__ */ l(x, { className: "mt-2", severity: "warning", title: c("warning_recurring_event_payment") }) : v ? /* @__PURE__ */ m(w, { children: [
20
20
  /* @__PURE__ */ l("div", { className: "mt-2 block items-center sm:flex", children: /* @__PURE__ */ l(
21
21
  F,
22
22
  {
@@ -32,9 +32,9 @@ const G = ({
32
32
  placeholder: "Price",
33
33
  "data-testid": "paypal-price-input",
34
34
  onChange: (e) => {
35
- t("price", q(Number(e.target.value), a)), s && t("currency", s.value);
35
+ t("price", T(Number(e.target.value), a)), s && t("currency", s.value);
36
36
  },
37
- value: y > 0 ? T(y, a) : void 0
37
+ value: y > 0 ? q(y, a) : void 0
38
38
  }
39
39
  ) }),
40
40
  /* @__PURE__ */ m("div", { className: "mt-5 w-60", children: [
@@ -49,7 +49,7 @@ const G = ({
49
49
  className: "text-black",
50
50
  defaultValue: s,
51
51
  onChange: (e) => {
52
- e && (N(e), P(x[e.value]), t("currency", e.value));
52
+ e && (N(e), P(S[e.value]), t("currency", e.value));
53
53
  }
54
54
  }
55
55
  )
@@ -70,9 +70,9 @@ const G = ({
70
70
  }
71
71
  )
72
72
  ] }),
73
- b && f === "HOLD" && /* @__PURE__ */ l(S, { className: "mt-2", severity: "warning", title: c("seats_and_no_show_fee_error") })
73
+ b && f === "HOLD" && /* @__PURE__ */ l(x, { className: "mt-2", severity: "warning", title: c("seats_and_no_show_fee_error") })
74
74
  ] }) : null;
75
75
  };
76
76
  export {
77
- G as default
77
+ H as default
78
78
  };
@@ -0,0 +1,79 @@
1
+ import { jsx as n, Fragment as S, jsxs as d } from "react/jsx-runtime";
2
+ import { useState as p, useEffect as _ } from "react";
3
+ import { y as P, a2 as t, M as x, f as w, S as C } from "./index-GkJhe-oj.js";
4
+ const c = [
5
+ { label: "SATS", value: "BTC", unit: "SATS" },
6
+ { label: "USD", value: "USD", unit: "USD" }
7
+ ], g = ["SATS", "BTC"], U = (r, l) => g.includes(l.toUpperCase()) ? r : Math.round(r * 100), k = (r, l) => g.includes(l.toUpperCase()) ? r : r / 100, B = ({
8
+ eventType: r,
9
+ getAppData: l,
10
+ setAppData: s
11
+ }) => {
12
+ var y, h;
13
+ const { t: a } = P(), i = l("price"), u = l("currency") || (c.length > 0 ? c[0].value : ""), [b, N] = p(
14
+ c.find((e) => e.value === u) || (c.length > 0 ? {
15
+ label: c[0].label,
16
+ value: c[0].value
17
+ } : null)
18
+ ), v = l("paymentOption"), o = ((y = t) == null ? void 0 : y.find((e) => v === e.value)) || {
19
+ label: t.length > 0 ? t[0].label : "",
20
+ value: t.length > 0 ? t[0].value : ""
21
+ }, f = !!r.seatsPerTimeSlot, [m, E] = p(l("enabled")), T = ((h = r.recurringEvent) == null ? void 0 : h.count) !== void 0;
22
+ _(() => {
23
+ m && !l("currency") && s("currency", c[0].value);
24
+ }, [m, l, s]);
25
+ const O = (e) => Math.floor(e);
26
+ return /* @__PURE__ */ n(S, { children: T ? /* @__PURE__ */ n(x, { className: "mt-2", severity: "warning", title: a("warning_recurring_event_payment") }) : m && /* @__PURE__ */ d(S, { children: [
27
+ /* @__PURE__ */ n("div", { className: "mt-4 block items-center justify-start sm:flex sm:space-x-2", children: /* @__PURE__ */ n(
28
+ w,
29
+ {
30
+ label: a("price"),
31
+ className: "text-black",
32
+ addOnClassname: "h-[38px]",
33
+ min: "1",
34
+ type: "number",
35
+ required: !0,
36
+ placeholder: "Price",
37
+ onChange: (e) => {
38
+ s("price", U(Number(e.target.value), u));
39
+ },
40
+ value: i && i > 0 ? O(k(i, u)) : void 0
41
+ }
42
+ ) }),
43
+ /* @__PURE__ */ d("div", { className: "mt-5 w-60", children: [
44
+ /* @__PURE__ */ n("label", { className: "text-default block text-sm font-medium", htmlFor: "currency", children: a("currency") }),
45
+ /* @__PURE__ */ n(
46
+ C,
47
+ {
48
+ variant: "default",
49
+ options: c,
50
+ value: b,
51
+ className: "text-black",
52
+ defaultValue: b,
53
+ onChange: (e) => {
54
+ e && (N(e), s("currency", e.value));
55
+ }
56
+ }
57
+ )
58
+ ] }),
59
+ /* @__PURE__ */ d("div", { className: "mt-2 w-60", children: [
60
+ /* @__PURE__ */ n("label", { className: "text-default block text-sm font-medium", htmlFor: "paymentOption", children: a("payment_option") }),
61
+ /* @__PURE__ */ n(
62
+ C,
63
+ {
64
+ defaultValue: o ? { ...o, label: a(o.label) } : t.length > 0 ? { ...t[0], label: a(t[0].label) } : void 0,
65
+ options: t.map((e) => ({ ...e, label: a(e.label) || e.label })),
66
+ onChange: (e) => {
67
+ e && s("paymentOption", e.value);
68
+ },
69
+ className: "mb-1 h-[38px] w-full",
70
+ isDisabled: f
71
+ }
72
+ )
73
+ ] }),
74
+ f && v === "HOLD" && /* @__PURE__ */ n(x, { className: "mt-2", severity: "warning", title: a("seats_and_no_show_fee_error") })
75
+ ] }) });
76
+ };
77
+ export {
78
+ B as default
79
+ };
@@ -1,6 +1,6 @@
1
1
  import { jsxs as u, Fragment as f, jsx as l } from "react/jsx-runtime";
2
- import { a1 as d, q as L, a2 as i, x as P, f as w, G as T, J as O, S as y, a3 as E, a4 as x, M as B, a5 as F, a6 as G } from "./index-ZQlxzdt5.js";
3
- import { useState as K, useEffect as z } from "react";
2
+ import { a9 as d, y as L, aa as i, M as P, f as w, R as T, U as O, S as y, ab as E, ac as x, s as B, ad as F, ae as K } from "./index-GkJhe-oj.js";
3
+ import { useState as z, useEffect as G } from "react";
4
4
  const s = [
5
5
  { label: "United States dollar (USD)", value: "usd" },
6
6
  { label: "United Arab Emirates dirham (AED)", value: "aed" },
@@ -143,18 +143,18 @@ const s = [
143
143
  eventType: h
144
144
  }) => {
145
145
  var k;
146
- const g = r("price"), o = r("currency") || s[0].value, [t, D] = K(
146
+ const g = r("price"), o = r("currency") || s[0].value, [t, D] = z(
147
147
  s.find((a) => a.value === o) || {
148
148
  label: s[0].label,
149
149
  value: s[0].value
150
150
  }
151
- ), v = r("paymentOption"), c = d.find((a) => v === a.value), m = r("enabled"), p = () => C.find((a) => a.value === (r("refundCountCalendarDays") === !0 ? 1 : 0)), { t: n } = L(), N = ((k = h.recurringEvent) == null ? void 0 : k.count) !== void 0, S = !!h.seatsPerTimeSlot, M = (a, R) => 0 .toLocaleString(a, {
151
+ ), v = r("paymentOption"), c = d.find((a) => v === a.value), m = r("enabled"), p = () => C.find((a) => a.value === (r("refundCountCalendarDays") === !0 ? 1 : 0)), { t: n } = L(), N = ((k = h.recurringEvent) == null ? void 0 : k.count) !== void 0, S = !!h.seatsPerTimeSlot, R = (a, M) => 0 .toLocaleString(a, {
152
152
  style: "currency",
153
- currency: R,
153
+ currency: M,
154
154
  minimumFractionDigits: 0,
155
155
  maximumFractionDigits: 0
156
156
  }).replace(/\d/g, "").trim();
157
- z(() => {
157
+ G(() => {
158
158
  m && (r("currency") || e("currency", s[0].value), r("paymentOption") || e("paymentOption", d[0].value)), r("refundPolicy") || e("refundPolicy", i.NEVER);
159
159
  }, [m, r, e]);
160
160
  const C = [
@@ -170,7 +170,7 @@ const s = [
170
170
  "data-testid": "stripe-price-input",
171
171
  label: n("price"),
172
172
  className: "h-[38px]",
173
- addOnLeading: /* @__PURE__ */ l(f, { children: t.value ? M("en", t.value) : "" }),
173
+ addOnLeading: /* @__PURE__ */ l(f, { children: t.value ? R("en", t.value) : "" }),
174
174
  addOnSuffix: o.toUpperCase(),
175
175
  addOnClassname: "h-[38px]",
176
176
  step: "0.01",
@@ -244,7 +244,7 @@ const s = [
244
244
  className: "min-w-4 bg-default border-default flex h-4 w-4 cursor-pointer items-center rounded-full border focus:border-2 focus:outline-none ltr:mr-2 rtl:ml-2",
245
245
  value: "days",
246
246
  id: "days",
247
- children: /* @__PURE__ */ l(G, { className: "after:bg-inverted relative flex h-4 w-4 items-center justify-center after:block after:h-2 after:w-2 after:rounded-full" })
247
+ children: /* @__PURE__ */ l(K, { className: "after:bg-inverted relative flex h-4 w-4 items-center justify-center after:block after:h-2 after:w-2 after:rounded-full" })
248
248
  }
249
249
  ),
250
250
  /* @__PURE__ */ u("div", { className: "flex items-center", children: [
@@ -1,6 +1,6 @@
1
1
  import { jsxs as o, jsx as e } from "react/jsx-runtime";
2
2
  import { useState as u } from "react";
3
- import { q as p, f as h, K as v, M as x } from "./index-ZQlxzdt5.js";
3
+ import { y as p, f as h, V as v, s as x } from "./index-GkJhe-oj.js";
4
4
  const N = ({ eventType: n, disabled: d }) => {
5
5
  const { t: i } = p(), [r, c] = u(""), m = r !== "" ? `?${r}` : "", t = n.URL + m;
6
6
  function s({ size: a, data: f }) {
@@ -1,6 +1,6 @@
1
1
  import { jsxs as u, Fragment as o, jsx as n } from "react/jsx-runtime";
2
- import { useState as x, useEffect as P } from "react";
3
- import { q as k, x as p, f as w, S as K } from "./index-ZQlxzdt5.js";
2
+ import { useState as P, useEffect as k } from "react";
3
+ import { y as x, M as p, f as w, S as K } from "./index-GkJhe-oj.js";
4
4
  const f = [
5
5
  "BIF",
6
6
  "CLP",
@@ -45,25 +45,25 @@ const f = [
45
45
  { label: "Vietnamese đồng (VND)", value: "vnd" },
46
46
  { label: "Canadian dollar (CAD)", value: "cad" },
47
47
  { label: "South Korean won (KRW)", value: "krw" }
48
- ], R = ({
48
+ ], M = ({
49
49
  getAppData: e,
50
50
  setAppData: a,
51
51
  disabled: h,
52
52
  eventType: d
53
53
  }) => {
54
54
  var b;
55
- const m = e("price"), t = e("currency") || r[0].value, [i, g] = x(
55
+ const m = e("price"), t = e("currency") || r[0].value, [i, g] = P(
56
56
  r.find((l) => l.value === t) || {
57
57
  label: r[0].label,
58
58
  value: r[0].value
59
59
  }
60
- ), S = e("paymentOption"), c = e("enabled"), { t: s } = k(), v = ((b = d.recurringEvent) == null ? void 0 : b.count) !== void 0, N = !!d.seatsPerTimeSlot, C = (l, y) => 0 .toLocaleString(l, {
60
+ ), S = e("paymentOption"), c = e("enabled"), { t: s } = x(), v = ((b = d.recurringEvent) == null ? void 0 : b.count) !== void 0, N = !!d.seatsPerTimeSlot, C = (l, y) => 0 .toLocaleString(l, {
61
61
  style: "currency",
62
62
  currency: y,
63
63
  minimumFractionDigits: 0,
64
64
  maximumFractionDigits: 0
65
65
  }).replace(/\d/g, "").trim();
66
- P(() => {
66
+ k(() => {
67
67
  c && (e("currency") || a("currency", r[0].value), e("paymentOption") || a("paymentOption", V[0].value));
68
68
  }, [c, e, a]);
69
69
  const F = (l) => {
@@ -116,5 +116,5 @@ const f = [
116
116
  ] });
117
117
  };
118
118
  export {
119
- R as default
119
+ M as default
120
120
  };