@calcom/atoms 1.7.1 → 1.8.0-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 (167) hide show
  1. package/dist/{AddressInput-DR3jIl7N.js → AddressInput-E1ARKDg7.js} +5 -5
  2. package/dist/{AlbyPriceComponent-2k8JXx0O.js → AlbyPriceComponent-jBcuDvZa.js} +24 -24
  3. package/dist/{PhoneInput-Nhiv23jS.js → PhoneInput-qXboae9k.js} +62 -62
  4. package/dist/cal-atoms.js +5 -36
  5. package/dist/index-GQl0OyJB.js +88695 -0
  6. package/dist/index-QBpbC_ZD.js +1957 -0
  7. package/dist/{index-QG3p1fzr.js → index-bGbS5CRI.js} +1 -1
  8. package/dist/packages/features/bookings/Booker/components/BookEventForm/BookEventForm.d.ts.map +1 -1
  9. package/dist/packages/features/bookings/Booker/components/EventMeta.d.ts.map +1 -1
  10. package/dist/packages/features/bookings/Booker/components/Header.d.ts.map +1 -1
  11. package/dist/packages/features/bookings/Booker/components/OverlayCalendar/OverlayCalendar.d.ts.map +1 -1
  12. package/dist/packages/features/bookings/Booker/components/hooks/useBookings.d.ts +1 -1
  13. package/dist/packages/features/bookings/Booker/utils/event.d.ts +33 -33
  14. package/dist/packages/features/bookings/lib/BookingEmailSmsHandler.d.ts +1 -1
  15. package/dist/packages/features/bookings/lib/BookingEmailSmsHandler.d.ts.map +1 -1
  16. package/dist/packages/features/bookings/lib/create-booking.d.ts +91 -91
  17. package/dist/packages/features/bookings/lib/create-recurring-booking.d.ts +91 -91
  18. package/dist/packages/features/bookings/lib/get-booking.d.ts +9 -9
  19. package/dist/packages/features/bookings/lib/getBookingToDelete.d.ts +38 -38
  20. package/dist/packages/features/bookings/lib/getCalendarLinks.d.ts +41 -0
  21. package/dist/packages/features/bookings/lib/getCalendarLinks.d.ts.map +1 -0
  22. package/dist/packages/features/bookings/lib/getCalendarLinks.test.d.ts +2 -0
  23. package/dist/packages/features/bookings/lib/getCalendarLinks.test.d.ts.map +1 -0
  24. package/dist/packages/features/bookings/lib/handleInternalNote.d.ts +2 -2
  25. package/dist/packages/features/bookings/lib/handleNewBooking/createBooking.d.ts +33 -33
  26. package/dist/packages/features/bookings/lib/handleNewBooking/ensureAvailableUsers.d.ts +57 -57
  27. package/dist/packages/features/bookings/lib/handleNewBooking/getEventType.d.ts +57 -57
  28. package/dist/packages/features/bookings/lib/handleNewBooking/getEventTypesFromDB.d.ts +57 -57
  29. package/dist/packages/features/bookings/lib/handleNewBooking/loadUsers.d.ts +46 -46
  30. package/dist/packages/features/bookings/lib/handleNewBooking/originalRescheduledBookingUtils.d.ts +45 -45
  31. package/dist/packages/features/bookings/lib/handleNewBooking.d.ts +364 -364
  32. package/dist/packages/features/bookings/lib/handleNewBooking.d.ts.map +1 -1
  33. package/dist/packages/features/bookings/lib/handlePayment.d.ts +49 -0
  34. package/dist/packages/features/bookings/lib/handlePayment.d.ts.map +1 -0
  35. package/dist/packages/features/bookings/lib/handleSeats/create/createNewSeat.d.ts +33 -33
  36. package/dist/packages/features/bookings/lib/handleSeats/create/createNewSeat.d.ts.map +1 -1
  37. package/dist/packages/features/bookings/lib/handleSeats/reschedule/owner/ownerRescheduleSeatedBooking.d.ts +33 -33
  38. package/dist/packages/features/bookings/lib/requiresConfirmation/getBookingRequest.d.ts +39 -39
  39. package/dist/packages/features/components/controlled-dialog/index.d.ts.map +1 -1
  40. package/dist/packages/features/components/phone-input/PhoneInput.d.ts.map +1 -1
  41. package/dist/packages/features/ee/billing/organizations/index.d.ts +1 -2
  42. package/dist/packages/features/ee/billing/organizations/index.d.ts.map +1 -1
  43. package/dist/packages/features/ee/billing/organizations/internal-organization-billing.d.ts +2 -2
  44. package/dist/packages/features/ee/billing/organizations/organization-billing.repository.d.ts +32 -4
  45. package/dist/packages/features/ee/billing/organizations/organization-billing.repository.d.ts.map +1 -1
  46. package/dist/packages/features/ee/payments/server/stripe-service.d.ts +23 -0
  47. package/dist/packages/features/ee/payments/server/stripe-service.d.ts.map +1 -0
  48. package/dist/packages/features/ee/round-robin/lib/bookingLocationService.d.ts +125 -0
  49. package/dist/packages/features/ee/round-robin/lib/bookingLocationService.d.ts.map +1 -0
  50. package/dist/packages/features/ee/round-robin/lib/bookingLocationService.test.d.ts +2 -0
  51. package/dist/packages/features/ee/round-robin/lib/bookingLocationService.test.d.ts.map +1 -0
  52. package/dist/packages/features/ee/round-robin/roundRobinManualReassignment.d.ts +30 -30
  53. package/dist/packages/features/ee/round-robin/roundRobinManualReassignment.d.ts.map +1 -1
  54. package/dist/packages/features/ee/round-robin/roundRobinReassignment.d.ts.map +1 -1
  55. package/dist/packages/features/ee/workflows/api/scheduleEmailReminders.d.ts.map +1 -1
  56. package/dist/packages/features/ee/workflows/lib/reminders/emailReminderManager.d.ts.map +1 -1
  57. package/dist/packages/features/ee/workflows/lib/repository/workflowReminder.d.ts +6 -6
  58. package/dist/packages/features/eventtypes/components/AddVerifiedEmail.d.ts +7 -0
  59. package/dist/packages/features/eventtypes/components/AddVerifiedEmail.d.ts.map +1 -0
  60. package/dist/packages/features/eventtypes/components/tabs/advanced/CustomEventTypeModal.d.ts +1 -1
  61. package/dist/packages/features/eventtypes/components/tabs/advanced/CustomEventTypeModal.d.ts.map +1 -1
  62. package/dist/packages/features/eventtypes/components/tabs/advanced/EventAdvancedTab.d.ts.map +1 -1
  63. package/dist/packages/features/eventtypes/lib/eventNaming.d.ts +28 -0
  64. package/dist/packages/features/eventtypes/lib/eventNaming.d.ts.map +1 -0
  65. package/dist/packages/features/eventtypes/lib/eventNaming.test.d.ts +2 -0
  66. package/dist/packages/features/eventtypes/lib/eventNaming.test.d.ts.map +1 -0
  67. package/dist/packages/features/eventtypes/lib/getPublicEvent.d.ts +33 -33
  68. package/dist/packages/features/eventtypes/lib/getTeamEventType.d.ts +12 -12
  69. package/dist/packages/features/eventtypes/lib/types.d.ts +1 -1
  70. package/dist/packages/features/eventtypes/lib/types.d.ts.map +1 -1
  71. package/dist/packages/features/shell/user-dropdown/UserDropdown.d.ts +2 -2
  72. package/dist/packages/features/shell/user-dropdown/UserDropdown.d.ts.map +1 -1
  73. package/dist/packages/platform/atoms/event-types/hooks/useAddVerifiedEmail.d.ts +15 -0
  74. package/dist/packages/platform/atoms/event-types/hooks/useAddVerifiedEmail.d.ts.map +1 -0
  75. package/dist/packages/platform/atoms/event-types/hooks/useAtomEventTypeById.d.ts +17 -17
  76. package/dist/packages/platform/atoms/event-types/hooks/useEventTypeForm.d.ts.map +1 -1
  77. package/dist/packages/platform/atoms/event-types/hooks/useGetVerifiedEmails.d.ts +3 -0
  78. package/dist/packages/platform/atoms/event-types/hooks/useGetVerifiedEmails.d.ts.map +1 -0
  79. package/dist/packages/platform/atoms/event-types/wrappers/EventAdvancedPlatformWrapper.d.ts.map +1 -1
  80. package/dist/packages/platform/atoms/hooks/bookings/useCreateBooking.d.ts +91 -91
  81. package/dist/packages/platform/atoms/hooks/bookings/useCreateInstantBooking.d.ts +91 -91
  82. package/dist/packages/platform/atoms/hooks/bookings/useCreateRecurringBooking.d.ts +91 -91
  83. package/dist/packages/platform/atoms/hooks/bookings/useGetBookingForReschedule.d.ts +3 -3
  84. package/dist/packages/platform/atoms/hooks/bookings/useHandleBookEvent.d.ts.map +1 -1
  85. package/dist/packages/platform/atoms/hooks/event-types/public/useAtomGetPublicEvent.d.ts +33 -33
  86. package/dist/packages/platform/atoms/hooks/schedules/useAtomSchedule.d.ts +3 -3
  87. package/dist/packages/platform/atoms/hooks/schedules/useAtomUpdateSchedule.d.ts +3 -3
  88. package/dist/packages/platform/atoms/hooks/useConnectedCalendars.d.ts.map +1 -1
  89. package/dist/packages/platform/atoms/index.d.ts +0 -36
  90. package/dist/packages/platform/atoms/index.d.ts.map +1 -1
  91. package/dist/packages/platform/atoms/lib/appendClientIdToEmail.d.ts +2 -0
  92. package/dist/packages/platform/atoms/lib/appendClientIdToEmail.d.ts.map +1 -0
  93. package/dist/packages/platform/libraries/event-types.d.ts +5 -5
  94. package/dist/packages/platform/libraries/event-types.d.ts.map +1 -1
  95. package/dist/packages/platform/libraries/index.d.ts +3 -3
  96. package/dist/packages/platform/libraries/index.d.ts.map +1 -1
  97. package/dist/packages/prisma/zod/impersonations.d.ts +2 -2
  98. package/dist/packages/prisma/zod/ratelimit.d.ts +2 -2
  99. package/dist/packages/prisma/zod/task.d.ts +2 -2
  100. package/dist/packages/prisma/zod/teamfeatures.d.ts +2 -2
  101. package/dist/packages/prisma/zod/userfeatures.d.ts +2 -2
  102. package/dist/packages/prisma/zod/webhookscheduledtriggers.d.ts +2 -2
  103. package/dist/packages/prisma/zod-utils.d.ts +1 -0
  104. package/dist/packages/prisma/zod-utils.d.ts.map +1 -1
  105. package/dist/packages/trpc/react/hooks/useMeQuery.d.ts +2 -2
  106. package/dist/packages/trpc/react/shared.d.ts +1 -1
  107. package/dist/packages/trpc/react/shared.d.ts.map +1 -1
  108. package/dist/packages/trpc/react/trpc.d.ts.map +1 -1
  109. package/dist/style.css +1 -1
  110. package/package.json +1 -1
  111. package/dist/AppCard-bt7zv8gh.js +0 -281
  112. package/dist/AppListCardPlatformWrapper-VhYhJs_R.js +0 -9
  113. package/dist/AppListCardWebWrapper-NUv3j3xt.js +0 -74
  114. package/dist/AppSettingsInterface-buo7m9T8.js +0 -75
  115. package/dist/AppSettingsInterface-pSKkGg41.js +0 -23
  116. package/dist/AppSettingsInterface-zXTKl0m5.js +0 -29
  117. package/dist/DateRangePicker-bTMo0QHP.js +0 -74
  118. package/dist/EventTypeAppCardInterface-09iYOcZc.js +0 -39
  119. package/dist/EventTypeAppCardInterface-22oySUhU.js +0 -42
  120. package/dist/EventTypeAppCardInterface-4J2r0kDm.js +0 -34
  121. package/dist/EventTypeAppCardInterface-6ARDh1hB.js +0 -34
  122. package/dist/EventTypeAppCardInterface-6N-ocotc.js +0 -34
  123. package/dist/EventTypeAppCardInterface-ALjgH4W_.js +0 -34
  124. package/dist/EventTypeAppCardInterface-Ayfx5tRN.js +0 -39
  125. package/dist/EventTypeAppCardInterface-DcTMtSbr.js +0 -24
  126. package/dist/EventTypeAppCardInterface-DqaD8qmA.js +0 -34
  127. package/dist/EventTypeAppCardInterface-KjJnnhe2.js +0 -51
  128. package/dist/EventTypeAppCardInterface-SS33HaLT.js +0 -24
  129. package/dist/EventTypeAppCardInterface-TIEM8D8u.js +0 -41
  130. package/dist/EventTypeAppCardInterface-UIXAwi3z.js +0 -32
  131. package/dist/EventTypeAppCardInterface-UhZiYpC_.js +0 -858
  132. package/dist/EventTypeAppCardInterface-Uv0b0YwY.js +0 -34
  133. package/dist/EventTypeAppCardInterface-WvWtKyzR.js +0 -32
  134. package/dist/EventTypeAppCardInterface-ZTWUUx-j.js +0 -31
  135. package/dist/EventTypeAppCardInterface-Zce0NZR5.js +0 -33
  136. package/dist/EventTypeAppCardInterface-bj9lQhmN.js +0 -24
  137. package/dist/EventTypeAppCardInterface-cWLQDtAR.js +0 -86
  138. package/dist/EventTypeAppCardInterface-fwF9ZNE1.js +0 -42
  139. package/dist/EventTypeAppCardInterface-lLtnjlZW.js +0 -34
  140. package/dist/EventTypeAppCardInterface-oHgBXT0z.js +0 -24
  141. package/dist/EventTypeAppCardInterface-uSw2xD2a.js +0 -41
  142. package/dist/EventTypeAppCardInterface-uaT7p9un.js +0 -24
  143. package/dist/EventTypeAppCardInterface-vmdHhgZV.js +0 -51
  144. package/dist/EventTypeAppCardInterface-zkJKrgZb.js +0 -49
  145. package/dist/EventTypeAppSettingsInterface-108_BODL.js +0 -78
  146. package/dist/EventTypeAppSettingsInterface-Q0ZDtoUj.js +0 -25
  147. package/dist/EventTypeAppSettingsInterface-Qnr0HCO0.js +0 -43
  148. package/dist/EventTypeAppSettingsInterface-VeVCHNBB.js +0 -24
  149. package/dist/EventTypeAppSettingsInterface-_Yc814Cl.js +0 -221
  150. package/dist/EventTypeAppSettingsInterface-gg2Ef5DU.js +0 -48
  151. package/dist/EventTypeAppSettingsInterface-gkHBitj8.js +0 -106
  152. package/dist/EventTypeAppSettingsInterface-jJT8-1ML.js +0 -120
  153. package/dist/EventTypeAppSettingsInterface-lUvYXuGl.js +0 -72
  154. package/dist/EventTypeAppSettingsInterface-mfeygayG.js +0 -343
  155. package/dist/EventTypeAppSettingsInterface-siyUmyxC.js +0 -23
  156. package/dist/EventTypeAppSettingsInterface-u1frTGTk.js +0 -23
  157. package/dist/EventTypeAppSettingsInterface-ykuyZiXU.js +0 -42
  158. package/dist/InstallAppButton-JXhBVaYJ.js +0 -29
  159. package/dist/InstallAppButton-UL42QGKr.js +0 -14
  160. package/dist/InstallAppButton-c2chNE6g.js +0 -14
  161. package/dist/InstallAppButton-rvYPqvGJ.js +0 -58
  162. package/dist/StripePaymentForm-1yTkAicU.js +0 -493
  163. package/dist/currencyOptions-kannG2hu.js +0 -61
  164. package/dist/index-6aqrxRA8.js +0 -166397
  165. package/dist/index-heZJ0K97.js +0 -28
  166. package/dist/index-miF5qVsp.js +0 -518
  167. package/dist/useIsAppEnabled-aAe8QNQ3.js +0 -18
@@ -1,343 +0,0 @@
1
- import { jsxs as u, Fragment as g, jsx as a } from "react/jsx-runtime";
2
- import { a7 as b, w as K, a8 as s, a9 as N, J as M, f as C, O as z, Q as G, S as m, aa as U, ab as D, r as S, ac as V, ad as H, b as _ } from "./index-6aqrxRA8.js";
3
- import { useState as I, useEffect as Y } from "react";
4
- const o = [
5
- { label: "United States dollar (USD)", value: "usd" },
6
- { label: "United Arab Emirates dirham (AED)", value: "aed" },
7
- { label: "Afghan afghani (AFN)", value: "afn" },
8
- { label: "Albanian lek (ALL)", value: "all" },
9
- { label: "Armenian dram (AMD)", value: "amd" },
10
- { label: "Netherlands Antillean guilder (ANG)", value: "ang" },
11
- { label: "Angolan kwanza (AOA)", value: "aoa" },
12
- { label: "Argentine peso (ARS)", value: "ars" },
13
- { label: "Australian dollar (AUD)", value: "aud" },
14
- { label: "Aruban florin (AWG)", value: "awg" },
15
- { label: "Azerbaijani manat (AZN)", value: "azn" },
16
- { label: "Bosnia and Herzegovina convertible mark (BAM)", value: "bam" },
17
- { label: "Barbadian dollar (BBD)", value: "bbd" },
18
- { label: "Bangladeshi taka (BDT)", value: "bdt" },
19
- { label: "Bulgarian lev (BGN)", value: "bgn" },
20
- { label: "Burundian franc (BIF)", value: "bif" },
21
- { label: "Bermudian dollar (BMD)", value: "bmd" },
22
- { label: "Brunei dollar (BND)", value: "bnd" },
23
- { label: "Bolivian boliviano (BOB)", value: "bob" },
24
- { label: "Brazilian real (BRL)", value: "brl" },
25
- { label: "Bahamian dollar (BSD)", value: "bsd" },
26
- { label: "Botswana pula (BWP)", value: "bwp" },
27
- { label: "Belarusian ruble (BYN)", value: "byn" },
28
- { label: "Belize dollar (BZD)", value: "bzd" },
29
- { label: "Canadian dollar (CAD)", value: "cad" },
30
- { label: "Congolese franc (CDF)", value: "cdf" },
31
- { label: "Swiss franc (CHF)", value: "chf" },
32
- { label: "Chilean peso (CLP)", value: "clp" },
33
- { label: "Chinese yuan (CNY)", value: "cny" },
34
- { label: "Colombian peso (COP)", value: "cop" },
35
- { label: "Costa Rican colón (CRC)", value: "crc" },
36
- { label: "Cape Verdean escudo (CVE)", value: "cve" },
37
- { label: "Czech koruna (CZK)", value: "czk" },
38
- { label: "Djiboutian franc (DJF)", value: "djf" },
39
- { label: "Danish krone (DKK)", value: "dkk" },
40
- { label: "Dominican peso (DOP)", value: "dop" },
41
- { label: "Algerian dinar (DZD)", value: "dzd" },
42
- { label: "Egyptian pound (EGP)", value: "egp" },
43
- { label: "Ethiopian birr (ETB)", value: "etb" },
44
- { label: "Euro (EUR)", value: "eur" },
45
- { label: "Fijian dollar (FJD)", value: "fjd" },
46
- { label: "Falkland Islands pound (FKP)", value: "fkp" },
47
- { label: "British pound sterling (GBP)", value: "gbp" },
48
- { label: "Georgian lari (GEL)", value: "gel" },
49
- { label: "Gibraltar pound (GIP)", value: "gip" },
50
- { label: "Gambian dalasi (GMD)", value: "gmd" },
51
- { label: "Guinean franc (GNF)", value: "gnf" },
52
- { label: "Guatemalan quetzal (GTQ)", value: "gtq" },
53
- { label: "Guyanese dollar (GYD)", value: "gyd" },
54
- { label: "Hong Kong dollar (HKD)", value: "hkd" },
55
- { label: "Honduran lempira (HNL)", value: "hnl" },
56
- { label: "Haitian gourde (HTG)", value: "htg" },
57
- { label: "Hungarian forint (HUF)", value: "huf" },
58
- { label: "Indonesian rupiah (IDR)", value: "idr" },
59
- { label: "Israeli new shekel (ILS)", value: "ils" },
60
- { label: "Indian rupee (INR)", value: "inr" },
61
- { label: "Icelandic króna (ISK)", value: "isk" },
62
- { label: "Jamaican dollar (JMD)", value: "jmd" },
63
- { label: "Japanese yen (JPY)", value: "jpy" },
64
- { label: "Kenyan shilling (KES)", value: "kes" },
65
- { label: "Kyrgyzstani som (KGS)", value: "kgs" },
66
- { label: "Cambodian riel (KHR)", value: "khr" },
67
- { label: "Comorian franc (KMF)", value: "kmf" },
68
- { label: "South Korean won (KRW)", value: "krw" },
69
- { label: "Cayman Islands dollar (KYD)", value: "kyd" },
70
- { label: "Kazakhstani tenge (KZT)", value: "kzt" },
71
- { label: "Laotian kip (LAK)", value: "lak" },
72
- { label: "Lebanese pound (LBP)", value: "lbp" },
73
- { label: "Sri Lankan rupee (LKR)", value: "lkr" },
74
- { label: "Liberian dollar (LRD)", value: "lrd" },
75
- { label: "Lesotho loti (LSL)", value: "lsl" },
76
- { label: "Moroccan dirham (MAD)", value: "mad" },
77
- { label: "Moldovan leu (MDL)", value: "mdl" },
78
- { label: "Malagasy ariary (MGA)", value: "mga" },
79
- { label: "Macedonian denar (MKD)", value: "mkd" },
80
- { label: "Myanmar kyat (MMK)", value: "mmk" },
81
- { label: "Mongolian tögrög (MNT)", value: "mnt" },
82
- { label: "Macanese pataca (MOP)", value: "mop" },
83
- { label: "Mauritian rupee (MUR)", value: "mur" },
84
- { label: "Maldivian rufiyaa (MVR)", value: "mvr" },
85
- { label: "Malawian kwacha (MWK)", value: "mwk" },
86
- { label: "Mexican peso (MXN)", value: "mxn" },
87
- { label: "Malaysian ringgit (MYR)", value: "myr" },
88
- { label: "Mozambican metical (MZN)", value: "mzn" },
89
- { label: "Namibian dollar (NAD)", value: "nad" },
90
- { label: "Nigerian naira (NGN)", value: "ngn" },
91
- { label: "Nicaraguan córdoba (NIO)", value: "nio" },
92
- { label: "Norwegian krone (NOK)", value: "nok" },
93
- { label: "Nepalese rupee (NPR)", value: "npr" },
94
- { label: "New Zealand dollar (NZD)", value: "nzd" },
95
- { label: "Panamanian balboa (PAB)", value: "pab" },
96
- { label: "Peruvian sol (PEN)", value: "pen" },
97
- { label: "Papua New Guinean kina (PGK)", value: "pgk" },
98
- { label: "Philippine peso (PHP)", value: "php" },
99
- { label: "Pakistani rupee (PKR)", value: "pkr" },
100
- { label: "Polish złoty (PLN)", value: "pln" },
101
- { label: "Paraguayan guaraní (PYG)", value: "pyg" },
102
- { label: "Qatari riyal (QAR)", value: "qar" },
103
- { label: "Romanian leu (RON)", value: "ron" },
104
- { label: "Serbian dinar (RSD)", value: "rsd" },
105
- { label: "Russian ruble (RUB)", value: "rub" },
106
- { label: "Rwandan franc (RWF)", value: "rwf" },
107
- { label: "Saudi riyal (SAR)", value: "sar" },
108
- { label: "Solomon Islands dollar (SBD)", value: "sbd" },
109
- { label: "Seychellois rupee (SCR)", value: "scr" },
110
- { label: "Swedish krona (SEK)", value: "sek" },
111
- { label: "Singapore dollar (SGD)", value: "sgd" },
112
- { label: "Saint Helena pound (SHP)", value: "shp" },
113
- { label: "Sierra Leonean leone (SLE)", value: "sle" },
114
- { label: "Somali shilling (SOS)", value: "sos" },
115
- { label: "Surinamese dollar (SRD)", value: "srd" },
116
- { label: "São Tomé and Príncipe dobra (STD)", value: "std" },
117
- { label: "Swazi lilangeni (SZL)", value: "szl" },
118
- { label: "Thai baht (THB)", value: "thb" },
119
- { label: "Tajikistani somoni (TJS)", value: "tjs" },
120
- { label: "Tongan paʻanga (TOP)", value: "top" },
121
- { label: "Turkish lira (TRY)", value: "try" },
122
- { label: "Trinidad and Tobago dollar (TTD)", value: "ttd" },
123
- { label: "New Taiwan dollar (TWD)", value: "twd" },
124
- { label: "Tanzanian shilling (TZS)", value: "tzs" },
125
- { label: "Ukrainian hryvnia (UAH)", value: "uah" },
126
- { label: "Ugandan shilling (UGX)", value: "ugx" },
127
- { label: "Uruguayan peso (UYU)", value: "uyu" },
128
- { label: "Uzbekistan som (UZS)", value: "uzs" },
129
- { label: "Vietnamese đồng (VND)", value: "vnd" },
130
- { label: "Vanuatu vatu (VUV)", value: "vuv" },
131
- { label: "Samoan tala (WST)", value: "wst" },
132
- { label: "Central African CFA franc (XAF)", value: "xaf" },
133
- { label: "East Caribbean dollar (XCD)", value: "xcd" },
134
- { label: "West African CFA franc (XOF)", value: "xof" },
135
- { label: "CFP franc (XPF)", value: "xpf" },
136
- { label: "Yemeni rial (YER)", value: "yer" },
137
- { label: "South African rand (ZAR)", value: "zar" },
138
- { label: "Zambian kwacha (ZMW)", value: "zmw" }
139
- ], W = ({
140
- getAppData: r,
141
- setAppData: n,
142
- disabled: i,
143
- eventType: p
144
- }) => {
145
- var R;
146
- const k = r("price"), c = r("currency") || o[0].value, [v, L] = I(
147
- o.find((e) => e.value === c) || {
148
- label: o[0].label,
149
- value: o[0].value
150
- }
151
- ), t = r("paymentOption"), f = b.find((e) => t === e.value), h = r("enabled"), w = () => B.find((e) => e.value === (r("refundCountCalendarDays") === !0 ? 1 : 0)), y = r("autoChargeNoShowFeeIfCancelled"), x = r("autoChargeNoShowFeeTimeUnit"), P = r("autoChargeNoShowFeeTimeValue"), { t: l } = K(), T = ((R = p.recurringEvent) == null ? void 0 : R.count) !== void 0, F = !!p.seatsPerTimeSlot, O = (e, E) => 0 .toLocaleString(e, {
152
- style: "currency",
153
- currency: E,
154
- minimumFractionDigits: 0,
155
- maximumFractionDigits: 0
156
- }).replace(/\d/g, "").trim();
157
- Y(() => {
158
- h && (r("currency") || n("currency", o[0].value), r("paymentOption") || n("paymentOption", b[0].value)), r("refundPolicy") || n("refundPolicy", s.NEVER);
159
- }, [h, r, n]);
160
- const B = [
161
- { value: 0, label: l("business_days") },
162
- { value: 1, label: l("calendar_days") }
163
- ], d = [
164
- { value: N.enum.minutes, label: l("minutes") },
165
- { value: N.enum.hours, label: l("hours") },
166
- { value: N.enum.days, label: l("days") }
167
- ];
168
- return /* @__PURE__ */ u(g, { children: [
169
- T && /* @__PURE__ */ a(M, { className: "mt-2", severity: "warning", title: l("warning_recurring_event_payment") }),
170
- !T && h && /* @__PURE__ */ u(g, { children: [
171
- /* @__PURE__ */ a("div", { className: "mt-4 block items-center justify-start sm:flex sm:space-x-2", children: /* @__PURE__ */ a(
172
- C,
173
- {
174
- "data-testid": "stripe-price-input",
175
- label: l("price"),
176
- className: "h-[38px]",
177
- addOnLeading: /* @__PURE__ */ a(g, { children: v.value ? O("en", v.value) : "" }),
178
- addOnSuffix: c.toUpperCase(),
179
- addOnClassname: "h-[38px]",
180
- step: "0.01",
181
- min: "0.5",
182
- type: "number",
183
- required: !0,
184
- placeholder: "Price",
185
- disabled: i,
186
- onChange: (e) => {
187
- n("price", z(Number(e.target.value), c));
188
- },
189
- value: k > 0 ? G(k, c) : void 0
190
- }
191
- ) }),
192
- /* @__PURE__ */ u("div", { className: "mt-5 w-60", children: [
193
- /* @__PURE__ */ a("label", { className: "text-default mb-1 block text-sm font-medium", htmlFor: "currency", children: l("currency") }),
194
- /* @__PURE__ */ a(
195
- m,
196
- {
197
- "data-testid": "stripe-currency-select",
198
- variant: "default",
199
- options: o,
200
- innerClassNames: {
201
- input: "stripe-currency-input"
202
- },
203
- value: v,
204
- className: "text-black",
205
- defaultValue: v,
206
- onChange: (e) => {
207
- e && (L(e), n("currency", e.value));
208
- }
209
- }
210
- )
211
- ] }),
212
- /* @__PURE__ */ u("div", { className: "mt-4 w-60", children: [
213
- /* @__PURE__ */ a("label", { className: "text-default mb-1 block text-sm font-medium", htmlFor: "currency", children: l("payment_option") }),
214
- /* @__PURE__ */ a(
215
- m,
216
- {
217
- "data-testid": "stripe-payment-option-select",
218
- defaultValue: f ? { ...f, label: l(f.label) } : { ...b[0], label: l(b[0].label) },
219
- options: b.map((e) => ({ ...e, label: l(e.label) || e.label })),
220
- onChange: (e) => {
221
- e && (n("paymentOption", e.value), e.value === "HOLD" && (n("refundPolicy", s.NEVER), n("refundDaysCount", void 0), n("refundCountCalendarDays", void 0)));
222
- },
223
- className: "mb-1 h-[38px] w-full",
224
- isDisabled: F || i
225
- }
226
- )
227
- ] }),
228
- F && t === "HOLD" && /* @__PURE__ */ a(M, { className: "mt-2", severity: "warning", title: l("seats_and_no_show_fee_error") }),
229
- t !== "HOLD" && /* @__PURE__ */ u("div", { className: "mt-4 w-full", children: [
230
- /* @__PURE__ */ a("label", { className: "text-default mb-1 block text-sm font-medium", children: l("refund_policy") }),
231
- /* @__PURE__ */ u(
232
- U,
233
- {
234
- disabled: i || t === "HOLD",
235
- defaultValue: "never",
236
- className: "flex flex-col space-y-2",
237
- value: r("refundPolicy"),
238
- onValueChange: (e) => {
239
- n("refundPolicy", e), e !== s.DAYS && (n("refundDaysCount", void 0), n("refundCountCalendarDays", void 0));
240
- },
241
- children: [
242
- /* @__PURE__ */ a(D, { className: "w-fit", value: s.ALWAYS, label: l("always"), id: "always" }),
243
- /* @__PURE__ */ a(D, { className: "w-fit", value: s.NEVER, label: l("never"), id: "never" }),
244
- /* @__PURE__ */ u("div", { className: S("text-default mb-2 flex flex-wrap items-center text-sm"), children: [
245
- /* @__PURE__ */ a(
246
- V,
247
- {
248
- 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",
249
- value: "days",
250
- id: "days",
251
- children: /* @__PURE__ */ a(H, { 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" })
252
- }
253
- ),
254
- /* @__PURE__ */ u("div", { className: "flex items-center", children: [
255
- /* @__PURE__ */ u("span", { className: "me-2 ms-2", children: [
256
- " ",
257
- l("if_cancelled")
258
- ] }),
259
- /* @__PURE__ */ a(
260
- C,
261
- {
262
- labelSrOnly: !0,
263
- type: "number",
264
- className: S(
265
- "border-default my-0 block w-16 text-sm [appearance:textfield] ltr:mr-2 rtl:ml-2"
266
- ),
267
- placeholder: "2",
268
- disabled: i,
269
- min: 0,
270
- defaultValue: r("refundDaysCount"),
271
- required: r("refundPolicy") === s.DAYS,
272
- value: r("refundDaysCount") ?? "",
273
- onChange: (e) => n("refundDaysCount", parseInt(e.currentTarget.value))
274
- }
275
- ),
276
- /* @__PURE__ */ a(
277
- m,
278
- {
279
- options: B,
280
- isSearchable: !1,
281
- isDisabled: i,
282
- onChange: (e) => n("refundCountCalendarDays", (e == null ? void 0 : e.value) === 1),
283
- value: w(),
284
- defaultValue: w()
285
- }
286
- ),
287
- /* @__PURE__ */ u("span", { className: "me-2 ms-2", children: [
288
- " ",
289
- l("before")
290
- ] })
291
- ] })
292
- ] })
293
- ]
294
- }
295
- )
296
- ] }),
297
- t === "HOLD" && /* @__PURE__ */ u("div", { className: "mt-4", children: [
298
- /* @__PURE__ */ a("div", { children: /* @__PURE__ */ a(
299
- _,
300
- {
301
- checked: y,
302
- onChange: (e) => n("autoChargeNoShowFeeIfCancelled", e.target.checked),
303
- description: l("auto_charge_for_last_minute_cancellation")
304
- }
305
- ) }),
306
- y && /* @__PURE__ */ a("div", { children: /* @__PURE__ */ u("div", { className: "mt-2 flex items-center", children: [
307
- /* @__PURE__ */ a(
308
- C,
309
- {
310
- labelSrOnly: !0,
311
- type: "number",
312
- className: S(
313
- "border-default my-0 block w-16 text-sm [appearance:textfield] ltr:mr-2 rtl:ml-2"
314
- ),
315
- placeholder: "2",
316
- disabled: i,
317
- min: 0,
318
- defaultValue: P,
319
- required: y,
320
- value: P ?? "",
321
- onChange: (e) => n("autoChargeNoShowFeeTimeValue", parseInt(e.currentTarget.value))
322
- }
323
- ),
324
- /* @__PURE__ */ a(
325
- m,
326
- {
327
- options: d,
328
- isSearchable: !1,
329
- isDisabled: i,
330
- onChange: (e) => n("autoChargeNoShowFeeTimeUnit", e == null ? void 0 : e.value),
331
- value: d.find((e) => e.value === x) || d[0],
332
- defaultValue: d.find((e) => e.value === x) || d[0]
333
- }
334
- ),
335
- /* @__PURE__ */ a("span", { className: "me-2 ms-2", children: l("before_scheduled_start_time") })
336
- ] }) })
337
- ] })
338
- ] })
339
- ] });
340
- };
341
- export {
342
- W as default
343
- };
@@ -1,23 +0,0 @@
1
- import { jsx as i } from "react/jsx-runtime";
2
- import { f as o } from "./index-6aqrxRA8.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,23 +0,0 @@
1
- import { jsx as i } from "react/jsx-runtime";
2
- import { f as o } from "./index-6aqrxRA8.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,42 +0,0 @@
1
- import { jsxs as c, jsx as i } from "react/jsx-runtime";
2
- import { f as s } from "./index-6aqrxRA8.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
- };
@@ -1,29 +0,0 @@
1
- import { jsx as i, Fragment as a } from "react/jsx-runtime";
2
- import { useState as s } from "react";
3
- function f(n) {
4
- const o = async () => {
5
- const t = await fetch("/api/integrations/vital/token", {
6
- method: "POST",
7
- body: JSON.stringify({}),
8
- headers: {
9
- "Content-Type": "application/json"
10
- }
11
- });
12
- if (!t.ok)
13
- throw new Error("Failed to get link token");
14
- return await t.json();
15
- }, [r, e] = s(!1);
16
- return /* @__PURE__ */ i(a, { children: n.render({
17
- onClick() {
18
- e(!0), o().then((t) => {
19
- e(!1), window.open(`${t.url}&token=${t.token}`, "_self");
20
- }).catch((t) => {
21
- e(!1), console.error(t);
22
- });
23
- },
24
- loading: r
25
- }) });
26
- }
27
- export {
28
- f as default
29
- };
@@ -1,14 +0,0 @@
1
- import { jsx as e, Fragment as a } from "react/jsx-runtime";
2
- import { v as o } from "./index-6aqrxRA8.js";
3
- function d(t) {
4
- const n = o("exchange2016_calendar");
5
- return /* @__PURE__ */ e(a, { children: t.render({
6
- onClick() {
7
- n.mutate("");
8
- },
9
- loading: n.isPending
10
- }) });
11
- }
12
- export {
13
- d as default
14
- };
@@ -1,14 +0,0 @@
1
- import { jsx as e, Fragment as a } from "react/jsx-runtime";
2
- import { v as o } from "./index-6aqrxRA8.js";
3
- function d(t) {
4
- const n = o("exchange2013_calendar");
5
- return /* @__PURE__ */ e(a, { children: t.render({
6
- onClick() {
7
- n.mutate("");
8
- },
9
- loading: n.isPending
10
- }) });
11
- }
12
- export {
13
- d as default
14
- };
@@ -1,58 +0,0 @@
1
- import { jsxs as f, Fragment as l, jsx as m } from "react/jsx-runtime";
2
- import { useState as p } from "react";
3
- import { v as d, am as E, W as g } from "./index-6aqrxRA8.js";
4
- var s = /* @__PURE__ */ ((n) => (n.ACCOUNTS_STEP = "accounts", n.EVENT_TYPES_STEP = "event-types", n.CONFIGURE_STEP = "configure", n))(s || {}), i = function(n) {
5
- switch (typeof n) {
6
- case "string":
7
- return n;
8
- case "boolean":
9
- return n ? "true" : "false";
10
- case "number":
11
- return isFinite(n) ? n : "";
12
- default:
13
- return "";
14
- }
15
- }, y = function(n, t, e, o) {
16
- return t = t || "&", e = e || "=", n === null && (n = void 0), typeof n == "object" ? Object.keys(n).map(function(r) {
17
- var a = encodeURIComponent(i(r)) + e;
18
- return Array.isArray(n[r]) ? n[r].map(function(c) {
19
- return a + encodeURIComponent(i(c));
20
- }).join(t) : a + encodeURIComponent(i(n[r]));
21
- }).filter(Boolean).join(t) : o ? encodeURIComponent(i(o)) + e + encodeURIComponent(i(n)) : "";
22
- }, u;
23
- u = y;
24
- const C = ({
25
- slug: n,
26
- step: t,
27
- teamId: e
28
- }) => {
29
- const o = { slug: n };
30
- e && (o.teamId = e);
31
- const r = u(o);
32
- return `/apps/installation/${t}?${r}`;
33
- };
34
- function I(n) {
35
- const [t, e] = p(!1), o = d(null), r = () => {
36
- o.mutate({
37
- type: "office365_video",
38
- variant: "conferencing",
39
- slug: "msteams",
40
- returnTo: g + C({
41
- slug: "msteams",
42
- step: s.EVENT_TYPES_STEP
43
- })
44
- });
45
- };
46
- return /* @__PURE__ */ f(l, { children: [
47
- n.render({
48
- onClick() {
49
- e(!0);
50
- },
51
- disabled: t
52
- }),
53
- /* @__PURE__ */ m(E, { open: t, onOpenChange: e, handleSubmit: r })
54
- ] });
55
- }
56
- export {
57
- I as default
58
- };