@calcom/atoms 1.0.99 → 1.0.101-booker

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 (220) hide show
  1. package/dist/{AddressInput-WBfvWGkL.js → AddressInput-juYkbZV2.js} +3 -3
  2. package/dist/{AlbyPriceComponent-eW8bnLtO.js → AlbyPriceComponent-zPblWsmO.js} +28 -28
  3. package/dist/{PhoneInput-LeK3XZ0X.js → PhoneInput-lzIUvvEp.js} +1 -1
  4. package/dist/cal-atoms.js +3 -34
  5. package/dist/index-1iD3RAuF.js +83360 -0
  6. package/dist/index-4eiX6cBE.js +1957 -0
  7. package/dist/{index-mhIxRvCU.js → index-pxPagOVY.js} +1 -1
  8. package/dist/packages/features/bookings/Booker/Booker.d.ts.map +1 -1
  9. package/dist/packages/features/bookings/Booker/components/DatePicker.d.ts +6 -0
  10. package/dist/packages/features/bookings/Booker/components/DatePicker.d.ts.map +1 -1
  11. package/dist/packages/features/bookings/Booker/components/OverlayCalendar/OverlayCalendar.d.ts +1 -1
  12. package/dist/packages/features/bookings/Booker/components/OverlayCalendar/OverlayCalendar.d.ts.map +1 -1
  13. package/dist/packages/features/bookings/Booker/utils/event.d.ts +17 -0
  14. package/dist/packages/features/bookings/Booker/utils/event.d.ts.map +1 -1
  15. package/dist/packages/features/bookings/lib/get-booking.d.ts +3 -0
  16. package/dist/packages/features/bookings/lib/get-booking.d.ts.map +1 -1
  17. package/dist/packages/features/bookings/lib/getBookingInfo.d.ts +2 -0
  18. package/dist/packages/features/bookings/lib/getBookingInfo.d.ts.map +1 -1
  19. package/dist/packages/features/bookings/lib/getBookingToDelete.d.ts +2 -0
  20. package/dist/packages/features/bookings/lib/getBookingToDelete.d.ts.map +1 -1
  21. package/dist/packages/features/bookings/lib/getUserBooking.d.ts +1 -0
  22. package/dist/packages/features/bookings/lib/getUserBooking.d.ts.map +1 -1
  23. package/dist/packages/features/bookings/lib/handleCancelBooking.d.ts.map +1 -1
  24. package/dist/packages/features/bookings/lib/handleNewBooking/loadUsers.d.ts.map +1 -1
  25. package/dist/packages/features/bookings/lib/handleNewBooking/originalRescheduledBookingUtils.d.ts +1 -0
  26. package/dist/packages/features/bookings/lib/handleNewBooking/originalRescheduledBookingUtils.d.ts.map +1 -1
  27. package/dist/packages/features/bookings/lib/handleNewBooking.d.ts.map +1 -1
  28. package/dist/packages/features/data-table/DataTableProvider.d.ts +4 -2
  29. package/dist/packages/features/data-table/DataTableProvider.d.ts.map +1 -1
  30. package/dist/packages/features/data-table/components/DataTableToolbar.d.ts.map +1 -1
  31. package/dist/packages/features/data-table/components/filters/DateRangeFilter.d.ts.map +1 -1
  32. package/dist/packages/features/data-table/components/segment/FilterSegmentSelect.d.ts.map +1 -1
  33. package/dist/packages/features/data-table/components/segment/SaveFilterSegmentButton.d.ts.map +1 -1
  34. package/dist/packages/features/data-table/hooks/useColumnResizing.d.ts +9 -0
  35. package/dist/packages/features/data-table/hooks/useColumnResizing.d.ts.map +1 -0
  36. package/dist/packages/features/data-table/hooks/useSegments.d.ts +3 -0
  37. package/dist/packages/features/data-table/hooks/useSegments.d.ts.map +1 -0
  38. package/dist/packages/features/data-table/hooks/useSegmentsNoop.d.ts +3 -0
  39. package/dist/packages/features/data-table/hooks/useSegmentsNoop.d.ts.map +1 -0
  40. package/dist/packages/features/data-table/index.d.ts +1 -1
  41. package/dist/packages/features/data-table/index.d.ts.map +1 -1
  42. package/dist/packages/features/data-table/lib/dateRange.d.ts +7 -0
  43. package/dist/packages/features/data-table/lib/dateRange.d.ts.map +1 -1
  44. package/dist/packages/features/data-table/lib/dateRange.test.d.ts +2 -0
  45. package/dist/packages/features/data-table/lib/dateRange.test.d.ts.map +1 -0
  46. package/dist/packages/features/data-table/lib/types.d.ts +31 -6
  47. package/dist/packages/features/data-table/lib/types.d.ts.map +1 -1
  48. package/dist/packages/features/ee/round-robin/roundRobinManualReassignment.d.ts +1 -0
  49. package/dist/packages/features/ee/round-robin/roundRobinManualReassignment.d.ts.map +1 -1
  50. package/dist/packages/features/ee/workflows/api/scheduleEmailReminders.d.ts +3 -0
  51. package/dist/packages/features/ee/workflows/api/scheduleEmailReminders.d.ts.map +1 -1
  52. package/dist/packages/features/ee/workflows/components/WorkflowStepContainer.d.ts.map +1 -1
  53. package/dist/packages/features/ee/workflows/lib/actionHelperFunctions.d.ts +3 -1
  54. package/dist/packages/features/ee/workflows/lib/actionHelperFunctions.d.ts.map +1 -1
  55. package/dist/packages/features/ee/workflows/lib/reminders/emailReminderManager.d.ts +2 -3
  56. package/dist/packages/features/ee/workflows/lib/reminders/emailReminderManager.d.ts.map +1 -1
  57. package/dist/packages/features/ee/workflows/lib/reminders/providers/emailProvider.d.ts +11 -0
  58. package/dist/packages/features/ee/workflows/lib/reminders/providers/emailProvider.d.ts.map +1 -0
  59. package/dist/packages/features/ee/workflows/lib/reminders/providers/sendgridProvider.d.ts +1 -1
  60. package/dist/packages/features/ee/workflows/lib/reminders/providers/sendgridProvider.d.ts.map +1 -1
  61. package/dist/packages/features/ee/workflows/lib/reminders/templates/customTemplate.d.ts.map +1 -1
  62. package/dist/packages/features/ee/workflows/lib/reminders/templates/emailRatingTemplate.d.ts +4 -2
  63. package/dist/packages/features/ee/workflows/lib/reminders/templates/emailRatingTemplate.d.ts.map +1 -1
  64. package/dist/packages/features/ee/workflows/lib/reminders/templates/emailReminderTemplate.d.ts +3 -1
  65. package/dist/packages/features/ee/workflows/lib/reminders/templates/emailReminderTemplate.d.ts.map +1 -1
  66. package/dist/packages/features/eventtypes/components/EditWeightsForAllTeamMembers.d.ts.map +1 -1
  67. package/dist/packages/features/eventtypes/components/tabs/advanced/EventAdvancedTab.d.ts +1 -1
  68. package/dist/packages/features/eventtypes/components/tabs/advanced/EventAdvancedTab.d.ts.map +1 -1
  69. package/dist/packages/features/eventtypes/components/tabs/limits/EventLimitsTab.d.ts.map +1 -1
  70. package/dist/packages/features/eventtypes/components/tabs/recurring/RecurringEventController.d.ts.map +1 -1
  71. package/dist/packages/features/eventtypes/lib/getPublicEvent.d.ts +17 -0
  72. package/dist/packages/features/eventtypes/lib/getPublicEvent.d.ts.map +1 -1
  73. package/dist/packages/features/form-builder/FormBuilderField.d.ts.map +1 -1
  74. package/dist/packages/platform/atoms/availability/wrappers/AvailabilitySettingsPlatformWrapper.d.ts +2 -1
  75. package/dist/packages/platform/atoms/availability/wrappers/AvailabilitySettingsPlatformWrapper.d.ts.map +1 -1
  76. package/dist/packages/platform/atoms/calendar-settings/wrappers/CalendarSettingsPlatformWrapper.d.ts +2 -1
  77. package/dist/packages/platform/atoms/calendar-settings/wrappers/CalendarSettingsPlatformWrapper.d.ts.map +1 -1
  78. package/dist/packages/platform/atoms/connect/OAuthConnect.d.ts +1 -0
  79. package/dist/packages/platform/atoms/connect/OAuthConnect.d.ts.map +1 -1
  80. package/dist/packages/platform/atoms/connect/apple/AppleConnect.d.ts.map +1 -1
  81. package/dist/packages/platform/atoms/connect/google/GcalConnect.d.ts.map +1 -1
  82. package/dist/packages/platform/atoms/connect/outlook/OutlookConnect.d.ts.map +1 -1
  83. package/dist/packages/platform/atoms/connect/stripe/StripeConnect.d.ts.map +1 -1
  84. package/dist/packages/platform/atoms/destination-calendar/wrappers/DestinationCalendarSettingsPlatformWrapper.d.ts +2 -1
  85. package/dist/packages/platform/atoms/destination-calendar/wrappers/DestinationCalendarSettingsPlatformWrapper.d.ts.map +1 -1
  86. package/dist/packages/platform/atoms/event-types/hooks/useAtomEventTypeById.d.ts +12 -0
  87. package/dist/packages/platform/atoms/event-types/hooks/useAtomEventTypeById.d.ts.map +1 -1
  88. package/dist/packages/platform/atoms/event-types/hooks/useEventTypeForm.d.ts.map +1 -1
  89. package/dist/packages/platform/atoms/event-types/hooks/useTeamMembersWithSegment.d.ts +32 -0
  90. package/dist/packages/platform/atoms/event-types/hooks/useTeamMembersWithSegment.d.ts.map +1 -0
  91. package/dist/packages/platform/atoms/event-types/wrappers/CreateEventTypePlatformWrapper.d.ts +2 -1
  92. package/dist/packages/platform/atoms/event-types/wrappers/CreateEventTypePlatformWrapper.d.ts.map +1 -1
  93. package/dist/packages/platform/atoms/event-types/wrappers/EventPaymentsTabPlatformWrapper.d.ts.map +1 -1
  94. package/dist/packages/platform/atoms/event-types/wrappers/EventTypePlatformWrapper.d.ts +2 -1
  95. package/dist/packages/platform/atoms/event-types/wrappers/EventTypePlatformWrapper.d.ts.map +1 -1
  96. package/dist/packages/platform/atoms/hooks/bookings/useBookings.d.ts +1 -0
  97. package/dist/packages/platform/atoms/hooks/bookings/useBookings.d.ts.map +1 -1
  98. package/dist/packages/platform/atoms/hooks/bookings/useGetBookingForReschedule.d.ts +1 -0
  99. package/dist/packages/platform/atoms/hooks/bookings/useGetBookingForReschedule.d.ts.map +1 -1
  100. package/dist/packages/platform/atoms/hooks/connect/useConnect.d.ts +2 -2
  101. package/dist/packages/platform/atoms/hooks/connect/useConnect.d.ts.map +1 -1
  102. package/dist/packages/platform/atoms/hooks/event-types/public/useTeamEventType.d.ts.map +1 -1
  103. package/dist/packages/platform/atoms/hooks/organizations/bookings/useOrganizationBookings.d.ts +4 -0
  104. package/dist/packages/platform/atoms/hooks/organizations/bookings/useOrganizationBookings.d.ts.map +1 -0
  105. package/dist/packages/platform/atoms/hooks/organizations/bookings/useOrganizationUserBookings.d.ts +4 -0
  106. package/dist/packages/platform/atoms/hooks/organizations/bookings/useOrganizationUserBookings.d.ts.map +1 -0
  107. package/dist/packages/platform/atoms/hooks/stripe/useCheck.d.ts +3 -10
  108. package/dist/packages/platform/atoms/hooks/stripe/useCheck.d.ts.map +1 -1
  109. package/dist/packages/platform/atoms/hooks/stripe/useConnect.d.ts +2 -2
  110. package/dist/packages/platform/atoms/hooks/stripe/useConnect.d.ts.map +1 -1
  111. package/dist/packages/platform/atoms/hooks/usePublicEvent.d.ts +17 -0
  112. package/dist/packages/platform/atoms/hooks/usePublicEvent.d.ts.map +1 -1
  113. package/dist/packages/platform/atoms/index.d.ts +0 -32
  114. package/dist/packages/platform/atoms/index.d.ts.map +1 -1
  115. package/dist/packages/platform/atoms/selected-calendars/wrappers/SelectedCalendarsSettingsPlatformWrapper.d.ts +2 -1
  116. package/dist/packages/platform/atoms/selected-calendars/wrappers/SelectedCalendarsSettingsPlatformWrapper.d.ts.map +1 -1
  117. package/dist/packages/platform/atoms/src/components/ui/dialog.d.ts +2 -4
  118. package/dist/packages/platform/atoms/src/components/ui/dialog.d.ts.map +1 -1
  119. package/dist/packages/platform/libraries/index.d.ts +2 -0
  120. package/dist/packages/platform/libraries/index.d.ts.map +1 -1
  121. package/dist/packages/platform/types/bookings/2024-08-13/inputs/create-booking.input.d.ts +2 -0
  122. package/dist/packages/platform/types/bookings/2024-08-13/inputs/create-booking.input.d.ts.map +1 -1
  123. package/dist/packages/platform/types/bookings/2024-08-13/inputs/get-bookings.input.d.ts.map +1 -1
  124. package/dist/packages/platform/types/organizations/bookings/get-org-bookings.input.d.ts +5 -0
  125. package/dist/packages/platform/types/organizations/bookings/get-org-bookings.input.d.ts.map +1 -0
  126. package/dist/packages/platform/types/organizations/bookings/index.d.ts +2 -0
  127. package/dist/packages/platform/types/organizations/bookings/index.d.ts.map +1 -0
  128. package/dist/packages/platform/types/organizations/index.d.ts +1 -0
  129. package/dist/packages/platform/types/organizations/index.d.ts.map +1 -1
  130. package/dist/packages/platform/types/slots/slots-2024-09-04/inputs/get-slots-input.pipe.d.ts +6 -4
  131. package/dist/packages/platform/types/slots/slots-2024-09-04/inputs/get-slots-input.pipe.d.ts.map +1 -1
  132. package/dist/packages/platform/types/slots/slots-2024-09-04/inputs/get-slots.input.d.ts +15 -3
  133. package/dist/packages/platform/types/slots/slots-2024-09-04/inputs/get-slots.input.d.ts.map +1 -1
  134. package/dist/packages/platform/types/teams/outputs/index.d.ts +1 -0
  135. package/dist/packages/platform/types/teams/outputs/index.d.ts.map +1 -1
  136. package/dist/packages/platform/types/teams/outputs/team-members-attributes.output.d.ts +9 -0
  137. package/dist/packages/platform/types/teams/outputs/team-members-attributes.output.d.ts.map +1 -0
  138. package/dist/packages/prisma/zod/app_routingforms_formresponse.d.ts +3 -0
  139. package/dist/packages/prisma/zod/app_routingforms_formresponse.d.ts.map +1 -1
  140. package/dist/packages/prisma/zod/calendarcache.d.ts +3 -0
  141. package/dist/packages/prisma/zod/calendarcache.d.ts.map +1 -1
  142. package/dist/packages/prisma/zod/filtersegment.d.ts +3 -0
  143. package/dist/packages/prisma/zod/filtersegment.d.ts.map +1 -1
  144. package/dist/packages/prisma/zod/task.d.ts +3 -0
  145. package/dist/packages/prisma/zod/task.d.ts.map +1 -1
  146. package/dist/packages/prisma/zod/user.d.ts +3 -0
  147. package/dist/packages/prisma/zod/user.d.ts.map +1 -1
  148. package/dist/packages/prisma/zod/workflowreminder.d.ts +3 -0
  149. package/dist/packages/prisma/zod/workflowreminder.d.ts.map +1 -1
  150. package/dist/packages/prisma/zod-utils.d.ts +126 -3
  151. package/dist/packages/prisma/zod-utils.d.ts.map +1 -1
  152. package/dist/packages/prisma-client/index.d.ts +408 -5
  153. package/dist/packages/trpc/react/shared.d.ts +1 -1
  154. package/dist/packages/trpc/react/shared.d.ts.map +1 -1
  155. package/dist/packages/trpc/server/routers/viewer/slots/_router.d.ts.map +1 -1
  156. package/dist/packages/trpc/server/routers/viewer/slots/util.d.ts +6 -0
  157. package/dist/packages/trpc/server/routers/viewer/slots/util.d.ts.map +1 -1
  158. package/dist/style.css +1 -1
  159. package/globals.min.css +2 -14
  160. package/package.json +2 -2
  161. package/dist/AppCard-a2VNbyLx.js +0 -162
  162. package/dist/AppListCardPlatformWrapper-C8hnPpP4.js +0 -9
  163. package/dist/AppListCardWebWrapper-DvvSERyw.js +0 -74
  164. package/dist/AppSettingsInterface-277vkITp.js +0 -75
  165. package/dist/AppSettingsInterface-cKTul9l1.js +0 -29
  166. package/dist/AppSettingsInterface-cRYupPyd.js +0 -23
  167. package/dist/DateRangePicker-vgjaMql7.js +0 -2418
  168. package/dist/EventTypeAppCardInterface-5SmitGNV.js +0 -24
  169. package/dist/EventTypeAppCardInterface-5oCKHCnt.js +0 -24
  170. package/dist/EventTypeAppCardInterface-DCGeU2Nt.js +0 -32
  171. package/dist/EventTypeAppCardInterface-E0Qss22P.js +0 -39
  172. package/dist/EventTypeAppCardInterface-EjBlklYZ.js +0 -32
  173. package/dist/EventTypeAppCardInterface-J-7B6Xjo.js +0 -34
  174. package/dist/EventTypeAppCardInterface-KduqlFNa.js +0 -34
  175. package/dist/EventTypeAppCardInterface-MS4ucwo6.js +0 -49
  176. package/dist/EventTypeAppCardInterface-PTb9KLMK.js +0 -31
  177. package/dist/EventTypeAppCardInterface-Sy_wEWq8.js +0 -493
  178. package/dist/EventTypeAppCardInterface-UnxmvFiF.js +0 -42
  179. package/dist/EventTypeAppCardInterface-Y4hW3FSd.js +0 -24
  180. package/dist/EventTypeAppCardInterface-ax3KRlWb.js +0 -41
  181. package/dist/EventTypeAppCardInterface-gWjvfWM8.js +0 -34
  182. package/dist/EventTypeAppCardInterface-hdSBbtYi.js +0 -34
  183. package/dist/EventTypeAppCardInterface-i0iSNHI5.js +0 -51
  184. package/dist/EventTypeAppCardInterface-iRFQuaNc.js +0 -24
  185. package/dist/EventTypeAppCardInterface-iye41eH9.js +0 -34
  186. package/dist/EventTypeAppCardInterface-jPx0Q4vg.js +0 -42
  187. package/dist/EventTypeAppCardInterface-jsVu8y8O.js +0 -24
  188. package/dist/EventTypeAppCardInterface-k6-pyXdz.js +0 -51
  189. package/dist/EventTypeAppCardInterface-rV9JaOnf.js +0 -86
  190. package/dist/EventTypeAppCardInterface-tRwK3uo8.js +0 -34
  191. package/dist/EventTypeAppCardInterface-u3dNHTwX.js +0 -33
  192. package/dist/EventTypeAppCardInterface-urvIbTUy.js +0 -41
  193. package/dist/EventTypeAppCardInterface-yEwxGABY.js +0 -34
  194. package/dist/EventTypeAppSettingsInterface-H0Y7R_6K.js +0 -48
  195. package/dist/EventTypeAppSettingsInterface-HjjrUG-6.js +0 -120
  196. package/dist/EventTypeAppSettingsInterface-IlX26-MP.js +0 -78
  197. package/dist/EventTypeAppSettingsInterface-UEd9lbfG.js +0 -23
  198. package/dist/EventTypeAppSettingsInterface-VctSrf5M.js +0 -43
  199. package/dist/EventTypeAppSettingsInterface-VdsSNh9p.js +0 -25
  200. package/dist/EventTypeAppSettingsInterface-XljkqZTl.js +0 -23
  201. package/dist/EventTypeAppSettingsInterface-YGCAMT_H.js +0 -72
  202. package/dist/EventTypeAppSettingsInterface-cZcfyfGn.js +0 -24
  203. package/dist/EventTypeAppSettingsInterface-mb6aW1Vk.js +0 -221
  204. package/dist/EventTypeAppSettingsInterface-t9OOHsGu.js +0 -42
  205. package/dist/EventTypeAppSettingsInterface-zpEk1DKo.js +0 -298
  206. package/dist/InstallAppButton-0rF_k2oO.js +0 -14
  207. package/dist/InstallAppButton-JXhBVaYJ.js +0 -29
  208. package/dist/InstallAppButton-LAgGkMR5.js +0 -14
  209. package/dist/InstallAppButton-mCwpgGMb.js +0 -58
  210. package/dist/StripePaymentForm-7wEfBhaI.js +0 -493
  211. package/dist/currencyOptions-kannG2hu.js +0 -61
  212. package/dist/framer-features-OfBOvlO4.js +0 -443
  213. package/dist/index-61yVVkPy.js +0 -28
  214. package/dist/index-E1a1GKmY.js +0 -155405
  215. package/dist/index-NLytQWtD.js +0 -511
  216. package/dist/packages/features/data-table/lib/resizing.d.ts +0 -9
  217. package/dist/packages/features/data-table/lib/resizing.d.ts.map +0 -1
  218. package/dist/packages/features/data-table/lib/segments.d.ts +0 -27
  219. package/dist/packages/features/data-table/lib/segments.d.ts.map +0 -1
  220. package/dist/useIsAppEnabled-bcfIdtzp.js +0 -18
@@ -1,78 +0,0 @@
1
- import { jsx as l, jsxs as m, Fragment as w } from "react/jsx-runtime";
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-E1a1GKmY.js";
5
- const G = ({
6
- getAppData: n,
7
- setAppData: t,
8
- eventType: d
9
- }) => {
10
- var p, h;
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] : ""
13
- ), f = n("paymentOption"), u = ((p = r) == null ? void 0 : p.find((e) => f === e.value)) || {
14
- label: r[0].label,
15
- value: r[0].value
16
- }, b = !!d.seatsPerTimeSlot, [v, L] = o(n("enabled")), { t: c } = E(), g = ((h = d.recurringEvent) == null ? void 0 : h.count) !== void 0;
17
- return _(() => {
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: [
20
- /* @__PURE__ */ l("div", { className: "mt-2 block items-center sm:flex", children: /* @__PURE__ */ l(
21
- F,
22
- {
23
- label: "Price",
24
- labelSrOnly: !0,
25
- addOnLeading: C,
26
- addOnSuffix: a,
27
- step: "0.01",
28
- min: "0.5",
29
- type: "number",
30
- required: !0,
31
- className: "block w-full rounded-sm pl-2 text-sm",
32
- placeholder: "Price",
33
- "data-testid": "paypal-price-input",
34
- onChange: (e) => {
35
- t("price", q(Number(e.target.value), a)), s && t("currency", s.value);
36
- },
37
- value: y > 0 ? T(y, a) : void 0
38
- }
39
- ) }),
40
- /* @__PURE__ */ m("div", { className: "mt-5 w-60", children: [
41
- /* @__PURE__ */ l("label", { className: "text-default mb-1 block text-sm font-medium", htmlFor: "currency", children: c("currency") }),
42
- /* @__PURE__ */ l(
43
- O,
44
- {
45
- variant: "default",
46
- "data-testid": "paypal-currency-select",
47
- options: i,
48
- value: s,
49
- className: "text-black",
50
- defaultValue: s,
51
- onChange: (e) => {
52
- e && (N(e), P(x[e.value]), t("currency", e.value));
53
- }
54
- }
55
- )
56
- ] }),
57
- /* @__PURE__ */ m("div", { className: "mt-4 w-60", children: [
58
- /* @__PURE__ */ l("label", { className: "text-default mb-1 block text-sm font-medium", htmlFor: "currency", children: "Payment option" }),
59
- /* @__PURE__ */ l(
60
- O,
61
- {
62
- "data-testid": "paypal-payment-option-select",
63
- defaultValue: u ? { ...u, label: c(u.label) } : { ...r[0], label: c(r[0].label) },
64
- options: r.map((e) => ({ ...e, label: c(e.label) || e.label })),
65
- onChange: (e) => {
66
- e && t("paymentOption", e.value);
67
- },
68
- className: "mb-1 h-[38px] w-full",
69
- isDisabled: b
70
- }
71
- )
72
- ] }),
73
- b && f === "HOLD" && /* @__PURE__ */ l(S, { className: "mt-2", severity: "warning", title: c("seats_and_no_show_fee_error") })
74
- ] }) : null;
75
- };
76
- export {
77
- G as default
78
- };
@@ -1,23 +0,0 @@
1
- import { jsx as i } from "react/jsx-runtime";
2
- import { f as o } from "./index-E1a1GKmY.js";
3
- const p = ({
4
- getAppData: t,
5
- setAppData: e,
6
- disabled: a
7
- }) => {
8
- const n = t("trackingId");
9
- return /* @__PURE__ */ i(
10
- o,
11
- {
12
- name: "Pixel ID",
13
- value: n,
14
- disabled: a,
15
- onChange: (r) => {
16
- e("trackingId", r.target.value);
17
- }
18
- }
19
- );
20
- };
21
- export {
22
- p as default
23
- };
@@ -1,43 +0,0 @@
1
- import { jsxs as o, jsx as e } from "react/jsx-runtime";
2
- import { useState as u } from "react";
3
- import { q as p, f as h, K as v, M as x } from "./index-E1a1GKmY.js";
4
- const N = ({ eventType: n, disabled: d }) => {
5
- const { t: i } = p(), [r, c] = u(""), m = r !== "" ? `?${r}` : "", t = n.URL + m;
6
- function s({ size: a, data: f }) {
7
- const l = `https://api.qrserver.com/v1/create-qr-code/?size=${a}&data=${f}`;
8
- return /* @__PURE__ */ e(v, { content: t, children: /* @__PURE__ */ e("a", { download: !0, href: l, target: "_blank", rel: "noreferrer", children: /* @__PURE__ */ e(
9
- "img",
10
- {
11
- className: x(
12
- "hover:bg-muted border-default border transition hover:shadow-sm",
13
- a >= 256 && "min-h-32"
14
- ),
15
- style: { padding: a / 16, borderRadius: a / 20 },
16
- width: a,
17
- src: l,
18
- alt: t
19
- }
20
- ) }) });
21
- }
22
- return /* @__PURE__ */ o("div", { className: "flex w-full flex-col gap-5 text-sm", children: [
23
- /* @__PURE__ */ e("div", { className: "flex w-full", children: /* @__PURE__ */ e(
24
- h,
25
- {
26
- name: "hello",
27
- disabled: d,
28
- value: r,
29
- onChange: (a) => c(a.target.value),
30
- label: i("additional_url_parameters"),
31
- containerClassName: "w-full"
32
- }
33
- ) }),
34
- /* @__PURE__ */ o("div", { className: "max-w-60 flex items-baseline gap-2", children: [
35
- /* @__PURE__ */ e(s, { size: 256, data: t }),
36
- /* @__PURE__ */ e(s, { size: 128, data: t }),
37
- /* @__PURE__ */ e(s, { size: 64, data: t })
38
- ] })
39
- ] });
40
- };
41
- export {
42
- N as default
43
- };
@@ -1,25 +0,0 @@
1
- import { jsx as o } from "react/jsx-runtime";
2
- import { f as c } from "./index-E1a1GKmY.js";
3
- const s = ({
4
- getAppData: t,
5
- setAppData: e,
6
- disabled: a,
7
- slug: n
8
- }) => {
9
- const r = t("trackingId");
10
- return /* @__PURE__ */ o(
11
- c,
12
- {
13
- dataTestid: n,
14
- name: "Tracking ID",
15
- value: r,
16
- disabled: a,
17
- onChange: (i) => {
18
- e("trackingId", i.target.value);
19
- }
20
- }
21
- );
22
- };
23
- export {
24
- s as default
25
- };
@@ -1,23 +0,0 @@
1
- import { jsx as i } from "react/jsx-runtime";
2
- import { f as o } from "./index-E1a1GKmY.js";
3
- const p = ({
4
- getAppData: t,
5
- setAppData: e,
6
- disabled: a
7
- }) => {
8
- const n = t("trackingId");
9
- return /* @__PURE__ */ i(
10
- o,
11
- {
12
- name: "Tracking ID",
13
- value: n,
14
- disabled: a,
15
- onChange: (r) => {
16
- e("trackingId", r.target.value);
17
- }
18
- }
19
- );
20
- };
21
- export {
22
- p as default
23
- };
@@ -1,72 +0,0 @@
1
- import { jsx as l, Fragment as x, jsxs as o } from "react/jsx-runtime";
2
- import { useState as N, useEffect as w } from "react";
3
- import { q as _, a0 as t, x as g, f as C, Y as P, S as p } from "./index-E1a1GKmY.js";
4
- const d = [{ label: "BTC", value: "BTC", unit: "sats" }], T = ({
5
- eventType: f,
6
- getAppData: s,
7
- setAppData: a
8
- }) => {
9
- var v, h;
10
- const { t: n } = _(), i = s("price"), c = s("currency"), [r, S] = N(
11
- d.find((e) => e.value === c) || d[0]
12
- ), b = s("paymentOption"), u = ((v = t) == null ? void 0 : v.find((e) => b === e.value)) || {
13
- label: t[0].label,
14
- value: t[0].value
15
- }, y = !!f.seatsPerTimeSlot, [m] = N(s("enabled")), O = ((h = f.recurringEvent) == null ? void 0 : h.count) !== void 0;
16
- return w(() => {
17
- !c && m && a("currency", r.value);
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
- /* @__PURE__ */ l("div", { className: "mt-2 block items-center sm:flex", children: /* @__PURE__ */ l(
20
- C,
21
- {
22
- label: "Price",
23
- labelSrOnly: !0,
24
- addOnLeading: /* @__PURE__ */ l(P, { className: "h-4 w-4" }),
25
- addOnSuffix: r.unit || r.value,
26
- type: "number",
27
- required: !0,
28
- className: "block w-full rounded-sm border-gray-300 pl-2 pr-12 text-sm",
29
- placeholder: "Price",
30
- onChange: (e) => {
31
- a("price", Number(e.target.value)), c && a("currency", c);
32
- },
33
- value: i && i > 0 ? i : void 0
34
- }
35
- ) }),
36
- /* @__PURE__ */ o("div", { className: "mt-5 w-60", children: [
37
- /* @__PURE__ */ l("label", { className: "text-default block text-sm font-medium", htmlFor: "currency", children: n("currency") }),
38
- /* @__PURE__ */ l(
39
- p,
40
- {
41
- variant: "default",
42
- options: d,
43
- value: r,
44
- className: "text-black",
45
- defaultValue: r,
46
- onChange: (e) => {
47
- e && (S(e), a("currency", e.value));
48
- }
49
- }
50
- )
51
- ] }),
52
- /* @__PURE__ */ o("div", { className: "mt-2 w-60", children: [
53
- /* @__PURE__ */ l("label", { className: "text-default block text-sm font-medium", htmlFor: "currency", children: "Payment option" }),
54
- /* @__PURE__ */ l(
55
- p,
56
- {
57
- defaultValue: u ? { ...u, label: n(u.label) } : { ...t[0], label: n(t[0].label) },
58
- options: t.map((e) => ({ ...e, label: n(e.label) || e.label })),
59
- onChange: (e) => {
60
- e && a("paymentOption", e.value);
61
- },
62
- className: "mb-1 h-[38px] w-full",
63
- isDisabled: y
64
- }
65
- )
66
- ] }),
67
- y && b === "HOLD" && /* @__PURE__ */ l(g, { className: "mt-2", severity: "warning", title: n("seats_and_no_show_fee_error") })
68
- ] }) });
69
- };
70
- export {
71
- T as default
72
- };
@@ -1,24 +0,0 @@
1
- import { jsx as i } from "react/jsx-runtime";
2
- import { f as g } from "./index-E1a1GKmY.js";
3
- const o = ({
4
- getAppData: t,
5
- setAppData: a,
6
- disabled: e
7
- }) => {
8
- const n = t("trackingId");
9
- return /* @__PURE__ */ i(
10
- g,
11
- {
12
- name: "Tracking ID",
13
- "data-testid": "gtm-tracking-id-input",
14
- value: n,
15
- disabled: e,
16
- onChange: (r) => {
17
- a("trackingId", r.target.value);
18
- }
19
- }
20
- );
21
- };
22
- export {
23
- o as default
24
- };
@@ -1,221 +0,0 @@
1
- import { jsx as e, jsxs as o } from "react/jsx-runtime";
2
- import { useState as d } from "react";
3
- import { q as I, af as P, ag as j, e as T, r as g, M as C, x as A, ah as E, ai as R, X as z } from "./index-E1a1GKmY.js";
4
- const y = "search", k = "url", B = (s) => {
5
- const { t: a } = I(), [i, l] = d(""), [p, m] = d(0), [c, v] = d(""), { isOpenDialog: D, setIsOpenDialog: O } = s, [u, b] = d(!1), [N, h] = d(""), [x, _] = d(y), w = async (n, f) => {
6
- if (u)
7
- return;
8
- b(!0), h("");
9
- const t = await fetch("/api/integrations/giphy/search", {
10
- method: "POST",
11
- headers: {
12
- "Content-Type": "application/json"
13
- },
14
- body: JSON.stringify({
15
- keyword: n,
16
- offset: f
17
- })
18
- }), r = await t.json();
19
- return t.ok ? (l(r.image || ""), m(r.nextOffset), r.image || h("No Result found")) : h((r == null ? void 0 : r.message) || "Something went wrong"), b(!1), null;
20
- }, G = async (n) => {
21
- var r;
22
- if (u)
23
- return;
24
- b(!0), h("");
25
- const f = await fetch("/api/integrations/giphy/get", {
26
- method: "POST",
27
- headers: {
28
- "Content-Type": "application/json"
29
- },
30
- body: JSON.stringify({
31
- url: n
32
- })
33
- }), t = await f.json();
34
- return f.ok ? (l(t.image || ""), t.image || h("No Result found")) : h((t == null ? void 0 : t.message) || ((r = t == null ? void 0 : t[0]) == null ? void 0 : r.message) || "Something went wrong"), b(!1), null;
35
- }, S = (n, f, t) => /* @__PURE__ */ o(
36
- "div",
37
- {
38
- className: C(
39
- "flex cursor-pointer items-center border-b-2 p-2 text-sm ",
40
- x === t ? "text-default border-emphasis" : "text-subtle border-transparent"
41
- ),
42
- onClick: () => {
43
- v(""), l(""), _(t);
44
- },
45
- children: [
46
- /* @__PURE__ */ e(z, { name: n, className: "h-4 w-4 ltr:mr-2 rtl:ml-2" }),
47
- f
48
- ]
49
- }
50
- ), M = async (n) => {
51
- n.stopPropagation(), n.preventDefault(), x === y ? w(c, 0) : x === k && G(c);
52
- };
53
- return /* @__PURE__ */ e(P, { open: D, onOpenChange: O, children: /* @__PURE__ */ o(j, { children: [
54
- /* @__PURE__ */ e("h3", { className: "leading-16 font-cal text-emphasis text-xl", id: "modal-title", children: a("add_gif_to_confirmation") }),
55
- /* @__PURE__ */ e("p", { className: "text-subtle mb-3 text-sm font-light", children: a("find_gif_spice_confirmation") }),
56
- /* @__PURE__ */ o("div", { className: "border-emphasis flex items-center border-b border-solid", children: [
57
- S("search", a("search_giphy"), y),
58
- S("link", a("add_link_from_giphy"), k)
59
- ] }),
60
- /* @__PURE__ */ o(
61
- "form",
62
- {
63
- className: "flex w-full justify-center space-x-2 space-y-2 rtl:space-x-reverse",
64
- onSubmit: M,
65
- children: [
66
- /* @__PURE__ */ e("div", { className: "relative block w-full pt-2", children: /* @__PURE__ */ e(
67
- T,
68
- {
69
- type: "text",
70
- placeholder: x === y ? a("search_giphy") : "https://media.giphy.com/media/some-id/giphy.gif",
71
- value: c,
72
- onChange: (n) => {
73
- v(n.target.value);
74
- }
75
- }
76
- ) }),
77
- /* @__PURE__ */ e(g, { type: "submit", tabIndex: -1, color: "secondary", loading: u, children: a("search") })
78
- ]
79
- }
80
- ),
81
- i && /* @__PURE__ */ e("div", { className: "flex flex-col items-center space-x-2 space-y-2 pt-3 rtl:space-x-reverse", children: /* @__PURE__ */ e("div", { className: "bg-subtle flex w-full items-center justify-center", children: u ? /* @__PURE__ */ e("div", { className: "flex h-[200px] w-full items-center justify-center bg-gray-400 pb-3 pt-3", children: /* @__PURE__ */ o(
82
- "svg",
83
- {
84
- className: C("mx-4 h-5 w-5 animate-spin", "text-inverted dark:text-emphasis"),
85
- xmlns: "http://www.w3.org/2000/svg",
86
- fill: "none",
87
- viewBox: "0 0 24 24",
88
- children: [
89
- /* @__PURE__ */ e(
90
- "circle",
91
- {
92
- className: "opacity-25",
93
- cx: "12",
94
- cy: "12",
95
- r: "10",
96
- stroke: "currentColor",
97
- strokeWidth: "4"
98
- }
99
- ),
100
- /* @__PURE__ */ e(
101
- "path",
102
- {
103
- className: "opacity-75",
104
- fill: "currentColor",
105
- d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"
106
- }
107
- )
108
- ]
109
- }
110
- ) }) : /* @__PURE__ */ e("img", { className: "h-[200px] pb-3 pt-3", src: i, alt: `Gif from Giphy for ${c}` }) }) }),
111
- N && /* @__PURE__ */ e(A, { severity: "error", title: N, className: "my-4" }),
112
- i && x === y && /* @__PURE__ */ o("div", { className: "mt-4 flex items-center justify-between space-x-2 rtl:space-x-reverse", children: [
113
- /* @__PURE__ */ e("div", { className: "text-subtle text-sm font-light", children: "Not the perfect GIF?" }),
114
- /* @__PURE__ */ e(
115
- g,
116
- {
117
- size: "sm",
118
- color: "secondary",
119
- type: "button",
120
- loading: u,
121
- onClick: () => w(c, p),
122
- children: "Shuffle"
123
- }
124
- )
125
- ] }),
126
- /* @__PURE__ */ o(E, { children: [
127
- /* @__PURE__ */ e(
128
- R,
129
- {
130
- color: "minimal",
131
- tabIndex: -1,
132
- onClick: () => {
133
- s.setIsOpenDialog(!1);
134
- },
135
- children: a("cancel")
136
- }
137
- ),
138
- /* @__PURE__ */ e(
139
- g,
140
- {
141
- type: "button",
142
- disabled: !i,
143
- onClick: () => (s.setIsOpenDialog(!1), s.onSave(i), m(0), l(""), v(""), !1),
144
- children: a("add_gif")
145
- }
146
- )
147
- ] })
148
- ] }) });
149
- };
150
- function F(s) {
151
- const { t: a } = I(), [i, l] = d(s.defaultValue), [p, m] = d(!1);
152
- return /* @__PURE__ */ o("div", { className: "flex flex-col items-start space-x-2 space-y-2 rtl:space-x-reverse", children: [
153
- i && /* @__PURE__ */ e("div", { className: "min-h-[200px]", children: /* @__PURE__ */ e("img", { alt: "Selected Gif Image", src: i }) }),
154
- /* @__PURE__ */ o("div", { className: "flex", children: [
155
- i ? /* @__PURE__ */ e(
156
- g,
157
- {
158
- color: "minimal",
159
- type: "button",
160
- StartIcon: "pencil",
161
- onClick: () => m(!0),
162
- disabled: s.disabled,
163
- children: "Change"
164
- }
165
- ) : /* @__PURE__ */ e(
166
- g,
167
- {
168
- color: "minimal",
169
- type: "button",
170
- StartIcon: "plus",
171
- onClick: () => m(!0),
172
- disabled: s.disabled,
173
- children: "Add from Giphy"
174
- }
175
- ),
176
- i && /* @__PURE__ */ e(
177
- g,
178
- {
179
- color: "destructive",
180
- type: "button",
181
- StartIcon: "x",
182
- onClick: () => {
183
- l(""), s.onChange("");
184
- },
185
- disabled: s.disabled,
186
- children: a("remove")
187
- }
188
- )
189
- ] }),
190
- /* @__PURE__ */ e(
191
- B,
192
- {
193
- isOpenDialog: p,
194
- setIsOpenDialog: m,
195
- onSave: (c) => {
196
- l(c), s.onChange(c);
197
- }
198
- }
199
- )
200
- ] });
201
- }
202
- const J = ({
203
- getAppData: s,
204
- setAppData: a,
205
- disabled: i
206
- }) => {
207
- const l = s("thankYouPage");
208
- return /* @__PURE__ */ e(
209
- F,
210
- {
211
- defaultValue: l,
212
- disabled: i,
213
- onChange: (p) => {
214
- a("thankYouPage", p);
215
- }
216
- }
217
- );
218
- };
219
- export {
220
- J as default
221
- };
@@ -1,42 +0,0 @@
1
- import { jsxs as c, jsx as i } from "react/jsx-runtime";
2
- import { f as s } from "./index-E1a1GKmY.js";
3
- const p = ({
4
- getAppData: a,
5
- setAppData: t,
6
- disabled: l,
7
- slug: r
8
- }) => {
9
- const n = a("PLAUSIBLE_URL"), o = a("trackingId");
10
- return /* @__PURE__ */ c("div", { className: "flex flex-col gap-2", children: [
11
- /* @__PURE__ */ i(
12
- s,
13
- {
14
- dataTestid: `${r}-url`,
15
- name: "Plausible URL",
16
- defaultValue: "https://plausible.io/js/script.js",
17
- placeholder: "https://plausible.io/js/script.js",
18
- value: n,
19
- disabled: l,
20
- onChange: (e) => {
21
- t("PLAUSIBLE_URL", e.target.value);
22
- }
23
- }
24
- ),
25
- /* @__PURE__ */ i(
26
- s,
27
- {
28
- dataTestid: `${r}-tracking-id`,
29
- disabled: l,
30
- name: "Tracked Domain",
31
- placeholder: "yourdomain.com",
32
- value: o,
33
- onChange: (e) => {
34
- t("trackingId", e.target.value);
35
- }
36
- }
37
- )
38
- ] });
39
- };
40
- export {
41
- p as default
42
- };