@calcom/atoms 2.2.0 → 2.3.1

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 (328) hide show
  1. package/dist/{AddressInput-6bVKck2M.js → AddressInput-Djh5W4Ld.js} +1 -1
  2. package/dist/{AlbyPriceComponent-GfOmDB_O.js → AlbyPriceComponent-BB6ImsoA.js} +106 -196
  3. package/dist/{AppCard-XVjVUT2T.js → AppCard-BGNtlTHu.js} +2 -2
  4. package/dist/{AppListCardPlatformWrapper-i7akxulv.js → AppListCardPlatformWrapper-BwKeYCbQ.js} +1 -1
  5. package/dist/AppListCardWebWrapper-DBS1RRBh.js +72 -0
  6. package/dist/{AppSettingsInterface-ZA_4mY8_.js → AppSettingsInterface-Cpm1x2iE.js} +1 -1
  7. package/dist/{AppSettingsInterface-ETQ3qMkX.js → AppSettingsInterface-Dg0WTvg9.js} +1 -1
  8. package/dist/{AppSettingsInterface-TrLEI6ni.js → AppSettingsInterface-Z9i5YfE-.js} +1 -1
  9. package/dist/{DateRangePicker-DQqNk0Jz.js → DateRangePicker-Bzd7D3OP.js} +9 -9
  10. package/dist/{EventTypeAppCardInterface-b1u3_3R0.js → EventTypeAppCardInterface-B0Eua7gH.js} +4 -4
  11. package/dist/{EventTypeAppCardInterface-tgHZw_9s.js → EventTypeAppCardInterface-B4UAawz5.js} +3 -3
  12. package/dist/{EventTypeAppCardInterface-M1n4NXFA.js → EventTypeAppCardInterface-B7tTiHDb.js} +3 -3
  13. package/dist/{EventTypeAppCardInterface-qcozX-yQ.js → EventTypeAppCardInterface-BA4qD9ba.js} +4 -4
  14. package/dist/{EventTypeAppCardInterface-pIt_xj9c.js → EventTypeAppCardInterface-BJWrSAZg.js} +3 -3
  15. package/dist/{EventTypeAppCardInterface-nL-zlXJQ.js → EventTypeAppCardInterface-BfCrgPbX.js} +4 -4
  16. package/dist/{EventTypeAppCardInterface-toMtOVtA.js → EventTypeAppCardInterface-BpVf-m1C.js} +3 -3
  17. package/dist/{EventTypeAppCardInterface-ty37Eet2.js → EventTypeAppCardInterface-ByOXQyZ9.js} +3 -3
  18. package/dist/{EventTypeAppCardInterface-ygx1fj1H.js → EventTypeAppCardInterface-C-d78Xsh.js} +3 -3
  19. package/dist/{EventTypeAppCardInterface-xhl5HR0c.js → EventTypeAppCardInterface-C-y5XQiF.js} +4 -4
  20. package/dist/{EventTypeAppCardInterface-oLxuW8Vd.js → EventTypeAppCardInterface-C53aqmJk.js} +4 -4
  21. package/dist/{EventTypeAppCardInterface-MdK8qkg-.js → EventTypeAppCardInterface-C7n2H5Ei.js} +4 -4
  22. package/dist/{EventTypeAppCardInterface-xdESsRSy.js → EventTypeAppCardInterface-CBVhImxw.js} +3 -3
  23. package/dist/{EventTypeAppCardInterface-ZHgUOsc7.js → EventTypeAppCardInterface-CRKbbOFI.js} +3 -3
  24. package/dist/{EventTypeAppCardInterface-N8wGa45M.js → EventTypeAppCardInterface-CaIYoDQe.js} +3 -3
  25. package/dist/{EventTypeAppCardInterface-y79vOxtJ.js → EventTypeAppCardInterface-Cgsepx1D.js} +4 -5
  26. package/dist/{EventTypeAppCardInterface-oZda5T7g.js → EventTypeAppCardInterface-D5-CqjoI.js} +3 -3
  27. package/dist/{EventTypeAppCardInterface-Qplt4YLq.js → EventTypeAppCardInterface-DPWI1YUC.js} +2 -2
  28. package/dist/{EventTypeAppCardInterface-FLCpeKqZ.js → EventTypeAppCardInterface-DSF6AnH4.js} +4 -4
  29. package/dist/{EventTypeAppCardInterface-eycetC2V.js → EventTypeAppCardInterface-DT-q8gRq.js} +3 -3
  30. package/dist/{EventTypeAppCardInterface-wOZWukpM.js → EventTypeAppCardInterface-DUIxFt1b.js} +6 -6
  31. package/dist/{EventTypeAppCardInterface-6sq_fBN1.js → EventTypeAppCardInterface-DXT5SK6P.js} +4 -4
  32. package/dist/{EventTypeAppCardInterface-Uga0cNx6.js → EventTypeAppCardInterface-DhpHHzRs.js} +4 -4
  33. package/dist/{EventTypeAppCardInterface-RHtdwd9a.js → EventTypeAppCardInterface-DqToNQQ_.js} +3 -3
  34. package/dist/{EventTypeAppCardInterface-CP8Elysz.js → EventTypeAppCardInterface-FQxKYHu_.js} +4 -4
  35. package/dist/{EventTypeAppCardInterface-XSG4xPHW.js → EventTypeAppCardInterface-jqmnTdzK.js} +3 -3
  36. package/dist/{EventTypeAppCardInterface-1Wyihj4E.js → EventTypeAppCardInterface-o9uqYhB3.js} +3 -3
  37. package/dist/{EventTypeAppCardInterface-cc81lVyN.js → EventTypeAppCardInterface-oE-YiQMA.js} +4 -4
  38. package/dist/{EventTypeAppSettingsInterface-VXarBLQW.js → EventTypeAppSettingsInterface-0WSFRV6D.js} +1 -1
  39. package/dist/{EventTypeAppSettingsInterface-LzkaglR0.js → EventTypeAppSettingsInterface-2LxR6LEV.js} +1 -1
  40. package/dist/{EventTypeAppSettingsInterface-4A-o9k6K.js → EventTypeAppSettingsInterface-88wuSRJD.js} +1 -1
  41. package/dist/{EventTypeAppSettingsInterface-k25b3S_w.js → EventTypeAppSettingsInterface-8xG0CTBH.js} +1 -1
  42. package/dist/{EventTypeAppSettingsInterface-iF25p2gL.js → EventTypeAppSettingsInterface-B8TkSn4O.js} +1 -1
  43. package/dist/{EventTypeAppSettingsInterface-xRSZJnRg.js → EventTypeAppSettingsInterface-B9IyGjn5.js} +4 -4
  44. package/dist/{EventTypeAppSettingsInterface-_L8Wkfpq.js → EventTypeAppSettingsInterface-BUzYcxMC.js} +1 -1
  45. package/dist/{EventTypeAppSettingsInterface-99ISmKkW.js → EventTypeAppSettingsInterface-BohjOhWH.js} +1 -1
  46. package/dist/{EventTypeAppSettingsInterface-Ocx3MqcJ.js → EventTypeAppSettingsInterface-C9w3iefE.js} +1 -1
  47. package/dist/{EventTypeAppSettingsInterface-qExeDjlG.js → EventTypeAppSettingsInterface-CVXwl2ke.js} +5 -5
  48. package/dist/{EventTypeAppSettingsInterface-EtvOWW0T.js → EventTypeAppSettingsInterface-C_w-g1FI.js} +1 -1
  49. package/dist/{EventTypeAppSettingsInterface-oyqECCFB.js → EventTypeAppSettingsInterface-D3DdO0Tu.js} +3 -3
  50. package/dist/{EventTypeAppSettingsInterface-8Ydf4Kkr.js → EventTypeAppSettingsInterface-DFsK5-wk.js} +2 -2
  51. package/dist/{EventTypeAppSettingsInterface-mxDLmxhf.js → EventTypeAppSettingsInterface-DGVuXUnf.js} +2 -3
  52. package/dist/{InstallAppButton-RTdjVmy9.js → InstallAppButton-AffySBjZ.js} +1 -1
  53. package/dist/{InstallAppButton-ZoK0cieH.js → InstallAppButton-BzYNuAA-.js} +1 -1
  54. package/dist/{InstallAppButton-jnDe70lC.js → InstallAppButton-Ce59hnm2.js} +1 -1
  55. package/dist/{PhoneInput-KPIrpgU-.js → PhoneInput-CSDTUC98.js} +551 -653
  56. package/dist/{StripePaymentForm-R4ocdPBz.js → StripePaymentForm-C-QqP0ti.js} +136 -145
  57. package/dist/cal-atoms.js +32 -31
  58. package/dist/{index-jM5C1qEC.js → index-BUotGJI2.js} +23 -23
  59. package/dist/{index-dVustuDq.js → index-BvnsFpCA.js} +76886 -76165
  60. package/dist/{index-A4odhI08.js → index-C6Pu2PBc.js} +1 -1
  61. package/dist/{index-lr8mon7V.js → index-qysYaPTt.js} +1 -1
  62. package/dist/packages/features/bookings/Booker/components/OutOfOfficeInSlots.d.ts.map +1 -1
  63. package/dist/packages/features/bookings/Booker/components/hooks/useBookerLayout.d.ts +2 -5
  64. package/dist/packages/features/bookings/Booker/components/hooks/useBookerLayout.d.ts.map +1 -1
  65. package/dist/packages/features/bookings/Booker/components/hooks/useBookingForm.d.ts +38 -68
  66. package/dist/packages/features/bookings/Booker/components/hooks/useBookingForm.d.ts.map +1 -1
  67. package/dist/packages/features/bookings/Booker/components/hooks/useBookings.d.ts +36 -63
  68. package/dist/packages/features/bookings/Booker/components/hooks/useBookings.d.ts.map +1 -1
  69. package/dist/packages/features/bookings/Booker/components/hooks/useCalendars.d.ts +3 -287
  70. package/dist/packages/features/bookings/Booker/components/hooks/useCalendars.d.ts.map +1 -1
  71. package/dist/packages/features/bookings/Booker/components/hooks/useSlots.d.ts +1 -6
  72. package/dist/packages/features/bookings/Booker/components/hooks/useSlots.d.ts.map +1 -1
  73. package/dist/packages/features/bookings/Booker/components/hooks/useVerifyEmail.d.ts +1 -1
  74. package/dist/packages/features/bookings/Booker/utils/event.d.ts +11 -1725
  75. package/dist/packages/features/bookings/Booker/utils/event.d.ts.map +1 -1
  76. package/dist/packages/features/bookings/lib/bookingCreateBodySchema.d.ts +208 -199
  77. package/dist/packages/features/bookings/lib/bookingCreateBodySchema.d.ts.map +1 -1
  78. package/dist/packages/features/bookings/lib/client/booking-event-form/booking-to-mutation-input-mapper.d.ts +2 -1
  79. package/dist/packages/features/bookings/lib/client/booking-event-form/booking-to-mutation-input-mapper.d.ts.map +1 -1
  80. package/dist/packages/features/bookings/lib/getAllUserBookings.d.ts +9 -9
  81. package/dist/packages/features/bookings/lib/getBookingDataSchema.d.ts +80 -92
  82. package/dist/packages/features/bookings/lib/getBookingDataSchema.d.ts.map +1 -1
  83. package/dist/packages/features/bookings/lib/getBookingDataSchemaForApi.d.ts +165 -184
  84. package/dist/packages/features/bookings/lib/getBookingDataSchemaForApi.d.ts.map +1 -1
  85. package/dist/packages/features/bookings/lib/getBookingFields.d.ts +18 -18
  86. package/dist/packages/features/bookings/lib/getBookingResponsesSchema.d.ts +33 -51
  87. package/dist/packages/features/bookings/lib/getBookingResponsesSchema.d.ts.map +1 -1
  88. package/dist/packages/features/bookings/lib/getBookingToDelete.d.ts +11 -11
  89. package/dist/packages/features/bookings/lib/getLuckyUser.d.ts.map +1 -1
  90. package/dist/packages/features/bookings/lib/handleBookingRequested.d.ts.map +1 -1
  91. package/dist/packages/features/bookings/lib/handleCancelBooking.d.ts.map +1 -1
  92. package/dist/packages/features/bookings/lib/handleConfirmation.d.ts.map +1 -1
  93. package/dist/packages/features/bookings/lib/handleNewBooking/checkIfBookerEmailIsBlocked.d.ts +1 -1
  94. package/dist/packages/features/bookings/lib/handleNewBooking/checkIfBookerEmailIsBlocked.d.ts.map +1 -1
  95. package/dist/packages/features/bookings/lib/handleNewBooking/ensureAvailableUsers.d.ts +50 -49
  96. package/dist/packages/features/bookings/lib/handleNewBooking/ensureAvailableUsers.d.ts.map +1 -1
  97. package/dist/packages/features/bookings/lib/handleNewBooking/getBookingData.d.ts +48 -66
  98. package/dist/packages/features/bookings/lib/handleNewBooking/getBookingData.d.ts.map +1 -1
  99. package/dist/packages/features/bookings/lib/handleNewBooking/getEventType.d.ts +318 -318
  100. package/dist/packages/features/bookings/lib/handleNewBooking/getEventTypesFromDB.d.ts +49 -49
  101. package/dist/packages/features/bookings/lib/handleNewBooking/loadUsers.d.ts +35 -35
  102. package/dist/packages/features/bookings/lib/handleNewBooking/originalRescheduledBookingUtils.d.ts +13 -13
  103. package/dist/packages/features/bookings/lib/onBookingEvents/BookingEventHandlerService.d.ts +92 -2
  104. package/dist/packages/features/bookings/lib/onBookingEvents/BookingEventHandlerService.d.ts.map +1 -1
  105. package/dist/packages/features/bookings/lib/payment/getBooking.d.ts +9 -9
  106. package/dist/packages/features/bookings/lib/service/RegularBookingService.d.ts.map +1 -1
  107. package/dist/packages/features/bookings/lib/tasker/BookingEmailAndSmsTaskService.d.ts.map +1 -1
  108. package/dist/packages/features/bookings/lib/tasker/trigger/notifications/schema.d.ts +2 -2
  109. package/dist/packages/features/bookings/lib/types/actor.d.ts +119 -33
  110. package/dist/packages/features/bookings/lib/types/actor.d.ts.map +1 -1
  111. package/dist/packages/features/bookings/lib/useFilterQuery.d.ts +4 -4
  112. package/dist/packages/features/bookings/types.d.ts +2 -2
  113. package/dist/packages/features/bookings/types.d.ts.map +1 -1
  114. package/dist/packages/features/components/timezone-select/TimezoneSelect.d.ts +1 -1
  115. package/dist/packages/features/components/timezone-select/TimezoneSelect.d.ts.map +1 -1
  116. package/dist/packages/features/data-table/components/DataTableWrapper.d.ts.map +1 -1
  117. package/dist/packages/features/data-table/components/filters/DateRangeFilter.d.ts.map +1 -1
  118. package/dist/packages/features/data-table/lib/dateRange.d.ts +3 -0
  119. package/dist/packages/features/data-table/lib/dateRange.d.ts.map +1 -1
  120. package/dist/packages/features/data-table/lib/parsers.d.ts +18 -18
  121. package/dist/packages/features/data-table/lib/parsers.d.ts.map +1 -1
  122. package/dist/packages/features/data-table/lib/serializers.d.ts +12 -12
  123. package/dist/packages/features/data-table/lib/types.d.ts +37 -37
  124. package/dist/packages/features/data-table/lib/types.d.ts.map +1 -1
  125. package/dist/packages/features/data-table/repositories/filterSegment.type.d.ts +102 -102
  126. package/dist/packages/features/ee/billing/service/billingProvider/StripeBillingService.d.ts +1 -0
  127. package/dist/packages/features/ee/billing/service/billingProvider/StripeBillingService.d.ts.map +1 -1
  128. package/dist/packages/features/ee/payments/pages/payment.d.ts +9 -9
  129. package/dist/packages/features/ee/round-robin/handleRescheduleEventManager.d.ts +1 -1
  130. package/dist/packages/features/ee/round-robin/handleRescheduleEventManager.d.ts.map +1 -1
  131. package/dist/packages/features/ee/round-robin/roundRobinManualReassignment.d.ts +13 -13
  132. package/dist/packages/features/ee/workflows/components/WorkflowListPage.d.ts +3 -32
  133. package/dist/packages/features/ee/workflows/components/WorkflowListPage.d.ts.map +1 -1
  134. package/dist/packages/features/ee/workflows/components/agent-configuration/hooks/useAgentForms.d.ts +4 -4
  135. package/dist/packages/features/ee/workflows/components/agent-configuration/hooks/usePhoneNumberActions.d.ts +1 -1
  136. package/dist/packages/features/ee/workflows/components/agent-configuration/types/schemas.d.ts +8 -8
  137. package/dist/packages/features/ee/workflows/lib/deleteRemindersOfActiveOnIds.d.ts +8 -0
  138. package/dist/packages/features/ee/workflows/lib/deleteRemindersOfActiveOnIds.d.ts.map +1 -0
  139. package/dist/packages/features/ee/workflows/lib/getAllWorkflowsFromEventType.d.ts +15 -0
  140. package/dist/packages/features/ee/workflows/lib/getAllWorkflowsFromEventType.d.ts.map +1 -0
  141. package/dist/packages/features/ee/workflows/lib/isAuthorized.d.ts +4 -0
  142. package/dist/packages/features/ee/workflows/lib/isAuthorized.d.ts.map +1 -0
  143. package/dist/packages/features/ee/workflows/lib/scheduleBookingReminders.d.ts +9 -0
  144. package/dist/packages/features/ee/workflows/lib/scheduleBookingReminders.d.ts.map +1 -0
  145. package/dist/packages/features/ee/workflows/lib/scheduleWorkflowNotifications.d.ts +103 -0
  146. package/dist/packages/features/ee/workflows/lib/scheduleWorkflowNotifications.d.ts.map +1 -0
  147. package/dist/packages/features/ee/workflows/lib/schema.d.ts +4 -4
  148. package/dist/packages/features/ee/workflows/lib/service/EmailWorkflowService.d.ts.map +1 -1
  149. package/dist/packages/features/ee/workflows/lib/service/WorkflowService.d.ts.map +1 -1
  150. package/dist/packages/features/ee/workflows/lib/types.d.ts +31 -1
  151. package/dist/packages/features/ee/workflows/lib/types.d.ts.map +1 -1
  152. package/dist/packages/features/ee/workflows/lib/verifyEmailSender.d.ts +2 -0
  153. package/dist/packages/features/ee/workflows/lib/verifyEmailSender.d.ts.map +1 -0
  154. package/dist/packages/features/ee/workflows/repositories/WorkflowRelationsRepository.d.ts +24 -0
  155. package/dist/packages/features/ee/workflows/repositories/WorkflowRelationsRepository.d.ts.map +1 -0
  156. package/dist/packages/features/ee/workflows/repositories/WorkflowRepository.d.ts +51 -1
  157. package/dist/packages/features/ee/workflows/repositories/WorkflowRepository.d.ts.map +1 -1
  158. package/dist/packages/features/ee/workflows/repositories/WorkflowStepRepository.d.ts +57 -0
  159. package/dist/packages/features/ee/workflows/repositories/WorkflowStepRepository.d.ts.map +1 -0
  160. package/dist/packages/features/eventtypes/components/ChildrenEventTypeSelect.d.ts +2 -19
  161. package/dist/packages/features/eventtypes/components/ChildrenEventTypeSelect.d.ts.map +1 -1
  162. package/dist/packages/features/eventtypes/components/tabs/advanced/EventAdvancedTab.d.ts +1 -1
  163. package/dist/packages/features/eventtypes/components/tabs/advanced/EventAdvancedTab.d.ts.map +1 -1
  164. package/dist/packages/features/eventtypes/components/tabs/assignment/EventTeamAssignmentTab.d.ts +8 -8
  165. package/dist/packages/features/eventtypes/components/tabs/instant/InstantEventController.d.ts.map +1 -1
  166. package/dist/packages/features/eventtypes/components/tabs/webhooks/EventWebhooksTab.d.ts.map +1 -1
  167. package/dist/packages/features/eventtypes/hooks/useCreateEventType.d.ts +3 -648
  168. package/dist/packages/features/eventtypes/hooks/useCreateEventType.d.ts.map +1 -1
  169. package/dist/packages/features/eventtypes/lib/childrenEventType.d.ts +20 -0
  170. package/dist/packages/features/eventtypes/lib/childrenEventType.d.ts.map +1 -0
  171. package/dist/packages/features/eventtypes/lib/defaultEvents.d.ts +873 -873
  172. package/dist/packages/features/eventtypes/lib/getEventTypeById.d.ts +271 -271
  173. package/dist/packages/features/eventtypes/lib/getEventTypesByViewer.d.ts +10 -10
  174. package/dist/packages/features/eventtypes/lib/getEventTypesPublic.d.ts +9 -9
  175. package/dist/packages/features/eventtypes/lib/getPublicEvent.d.ts +794 -793
  176. package/dist/packages/features/eventtypes/lib/getPublicEvent.d.ts.map +1 -1
  177. package/dist/packages/features/eventtypes/lib/getTeamEventType.d.ts +1 -1
  178. package/dist/packages/features/eventtypes/lib/schemas.d.ts +54 -0
  179. package/dist/packages/features/eventtypes/lib/schemas.d.ts.map +1 -0
  180. package/dist/packages/features/eventtypes/lib/types.d.ts +3 -1585
  181. package/dist/packages/features/eventtypes/lib/types.d.ts.map +1 -1
  182. package/dist/packages/features/eventtypes/repositories/EventRepository.d.ts +536 -536
  183. package/dist/packages/features/eventtypes/repositories/eventTypeRepository.d.ts +56 -56
  184. package/dist/packages/features/eventtypes/repositories/eventTypeRepository.d.ts.map +1 -1
  185. package/dist/packages/features/form-builder/schema.d.ts +68 -67
  186. package/dist/packages/features/form-builder/schema.d.ts.map +1 -1
  187. package/dist/packages/features/form-builder/testUtils.d.ts +9 -9
  188. package/dist/packages/features/form-builder/utils/variantsConfig.d.ts +2 -2
  189. package/dist/packages/features/schedules/lib/slots.d.ts +1 -0
  190. package/dist/packages/features/schedules/lib/slots.d.ts.map +1 -1
  191. package/dist/packages/features/schedules/lib/use-schedule/useSchedule.d.ts +1 -475
  192. package/dist/packages/features/schedules/lib/use-schedule/useSchedule.d.ts.map +1 -1
  193. package/dist/packages/features/schedules/lib/use-schedule/useSlotsForDate.d.ts +1 -10
  194. package/dist/packages/features/schedules/lib/use-schedule/useSlotsForDate.d.ts.map +1 -1
  195. package/dist/packages/kysely/types.d.ts +39 -0
  196. package/dist/packages/kysely/types.d.ts.map +1 -1
  197. package/dist/packages/platform/atoms/connect/conferencing-apps/hooks/useAtomsGetInstalledConferencingApps.d.ts +1 -59
  198. package/dist/packages/platform/atoms/connect/conferencing-apps/hooks/useAtomsGetInstalledConferencingApps.d.ts.map +1 -1
  199. package/dist/packages/platform/atoms/destination-calendar/DestinationCalendarSelector.d.ts.map +1 -1
  200. package/dist/packages/platform/atoms/event-types/__tests__/EventTypeListItem.test.d.ts +2 -0
  201. package/dist/packages/platform/atoms/event-types/__tests__/EventTypeListItem.test.d.ts.map +1 -0
  202. package/dist/packages/platform/atoms/event-types/__tests__/formatEventTypeDuration.test.d.ts +2 -0
  203. package/dist/packages/platform/atoms/event-types/__tests__/formatEventTypeDuration.test.d.ts.map +1 -0
  204. package/dist/packages/platform/atoms/event-types/components/EventTypeListItem.d.ts +12 -0
  205. package/dist/packages/platform/atoms/event-types/components/EventTypeListItem.d.ts.map +1 -0
  206. package/dist/packages/platform/atoms/event-types/hooks/useAtomEventTypeById.d.ts +1 -857
  207. package/dist/packages/platform/atoms/event-types/hooks/useAtomEventTypeById.d.ts.map +1 -1
  208. package/dist/packages/platform/atoms/event-types/hooks/useAtomEventTypePaymentInfo.d.ts +9 -9
  209. package/dist/packages/platform/atoms/event-types/hooks/useAtomGetAllEventTypes.d.ts +9 -0
  210. package/dist/packages/platform/atoms/event-types/hooks/useAtomGetAllEventTypes.d.ts.map +1 -0
  211. package/dist/packages/platform/atoms/event-types/hooks/useAtomUpdateEventType.d.ts +1 -403
  212. package/dist/packages/platform/atoms/event-types/hooks/useAtomUpdateEventType.d.ts.map +1 -1
  213. package/dist/packages/platform/atoms/event-types/hooks/useTeamMembersWithSegment.d.ts +1 -1
  214. package/dist/packages/platform/atoms/event-types/index.d.ts +2 -0
  215. package/dist/packages/platform/atoms/event-types/index.d.ts.map +1 -0
  216. package/dist/packages/platform/atoms/event-types/lib/formatEventTypeDuration.d.ts +13 -0
  217. package/dist/packages/platform/atoms/event-types/lib/formatEventTypeDuration.d.ts.map +1 -0
  218. package/dist/packages/platform/atoms/event-types/types.d.ts +16 -0
  219. package/dist/packages/platform/atoms/event-types/types.d.ts.map +1 -0
  220. package/dist/packages/platform/atoms/event-types/wrappers/ListEventTypesPlatformWrapper.d.ts +6 -0
  221. package/dist/packages/platform/atoms/event-types/wrappers/ListEventTypesPlatformWrapper.d.ts.map +1 -0
  222. package/dist/packages/platform/atoms/hooks/bookings/useCancelBooking.d.ts +2 -2
  223. package/dist/packages/platform/atoms/hooks/bookings/useCreateInstantBooking.d.ts +20 -20
  224. package/dist/packages/platform/atoms/hooks/event-types/public/useAtomGetPublicEvent.d.ts +536 -536
  225. package/dist/packages/platform/atoms/hooks/schedules/useAtomCreateSchedule.d.ts +2 -8
  226. package/dist/packages/platform/atoms/hooks/schedules/useAtomCreateSchedule.d.ts.map +1 -1
  227. package/dist/packages/platform/atoms/index.d.ts +1 -0
  228. package/dist/packages/platform/atoms/index.d.ts.map +1 -1
  229. package/dist/packages/platform/atoms/lib/http.d.ts +6 -6
  230. package/dist/packages/platform/libraries/bookings.d.ts +2 -1
  231. package/dist/packages/platform/libraries/bookings.d.ts.map +1 -1
  232. package/dist/packages/platform/libraries/index.d.ts +2 -0
  233. package/dist/packages/platform/libraries/index.d.ts.map +1 -1
  234. package/dist/packages/platform/libraries/repositories.d.ts +2 -1
  235. package/dist/packages/platform/libraries/repositories.d.ts.map +1 -1
  236. package/dist/packages/platform/types/me/outputs/me.d.ts +2 -2
  237. package/dist/packages/platform/types/me.d.ts +2 -2
  238. package/dist/packages/platform/types/schedules/schedules-2024-04-15/schedules.d.ts +4 -3
  239. package/dist/packages/platform/types/schedules/schedules-2024-04-15/schedules.d.ts.map +1 -1
  240. package/dist/packages/prisma/zod/inputTypeSchemas/AuditActorScalarFieldEnumSchema.d.ts +1 -1
  241. package/dist/packages/prisma/zod/inputTypeSchemas/AuditActorScalarFieldEnumSchema.d.ts.map +1 -1
  242. package/dist/packages/prisma/zod/inputTypeSchemas/AuditActorTypeSchema.d.ts +1 -1
  243. package/dist/packages/prisma/zod/inputTypeSchemas/AuditActorTypeSchema.d.ts.map +1 -1
  244. package/dist/packages/prisma/zod/inputTypeSchemas/BookingAuditActionSchema.d.ts +1 -1
  245. package/dist/packages/prisma/zod/inputTypeSchemas/BookingAuditActionSchema.d.ts.map +1 -1
  246. package/dist/packages/prisma/zod/inputTypeSchemas/BookingAuditScalarFieldEnumSchema.d.ts +1 -1
  247. package/dist/packages/prisma/zod/inputTypeSchemas/BookingAuditScalarFieldEnumSchema.d.ts.map +1 -1
  248. package/dist/packages/prisma/zod/inputTypeSchemas/BookingAuditSourceSchema.d.ts +5 -0
  249. package/dist/packages/prisma/zod/inputTypeSchemas/BookingAuditSourceSchema.d.ts.map +1 -0
  250. package/dist/packages/prisma/zod/inputTypeSchemas/HolidayCacheScalarFieldEnumSchema.d.ts +4 -0
  251. package/dist/packages/prisma/zod/inputTypeSchemas/HolidayCacheScalarFieldEnumSchema.d.ts.map +1 -0
  252. package/dist/packages/prisma/zod/inputTypeSchemas/OAuthClientScalarFieldEnumSchema.d.ts +1 -1
  253. package/dist/packages/prisma/zod/inputTypeSchemas/OAuthClientScalarFieldEnumSchema.d.ts.map +1 -1
  254. package/dist/packages/prisma/zod/inputTypeSchemas/TeamFeaturesScalarFieldEnumSchema.d.ts +1 -1
  255. package/dist/packages/prisma/zod/inputTypeSchemas/TeamFeaturesScalarFieldEnumSchema.d.ts.map +1 -1
  256. package/dist/packages/prisma/zod/inputTypeSchemas/UserFeaturesScalarFieldEnumSchema.d.ts +1 -1
  257. package/dist/packages/prisma/zod/inputTypeSchemas/UserFeaturesScalarFieldEnumSchema.d.ts.map +1 -1
  258. package/dist/packages/prisma/zod/inputTypeSchemas/UserHolidaySettingsScalarFieldEnumSchema.d.ts +4 -0
  259. package/dist/packages/prisma/zod/inputTypeSchemas/UserHolidaySettingsScalarFieldEnumSchema.d.ts.map +1 -0
  260. package/dist/packages/prisma/zod/inputTypeSchemas/WebhookScalarFieldEnumSchema.d.ts +1 -1
  261. package/dist/packages/prisma/zod/inputTypeSchemas/WebhookScalarFieldEnumSchema.d.ts.map +1 -1
  262. package/dist/packages/prisma/zod/inputTypeSchemas/index.d.ts +3 -0
  263. package/dist/packages/prisma/zod/inputTypeSchemas/index.d.ts.map +1 -1
  264. package/dist/packages/prisma/zod/modelSchema/AppSchema.d.ts +2 -2
  265. package/dist/packages/prisma/zod/modelSchema/App_RoutingForms_FormResponseSchema.d.ts +2 -2
  266. package/dist/packages/prisma/zod/modelSchema/App_RoutingForms_FormSchema.d.ts +4 -4
  267. package/dist/packages/prisma/zod/modelSchema/App_RoutingForms_IncompleteBookingActionsSchema.d.ts +2 -2
  268. package/dist/packages/prisma/zod/modelSchema/App_RoutingForms_QueuedFormResponseSchema.d.ts +2 -2
  269. package/dist/packages/prisma/zod/modelSchema/AuditActorSchema.d.ts +6 -3
  270. package/dist/packages/prisma/zod/modelSchema/AuditActorSchema.d.ts.map +1 -1
  271. package/dist/packages/prisma/zod/modelSchema/BookingAuditSchema.d.ts +11 -5
  272. package/dist/packages/prisma/zod/modelSchema/BookingAuditSchema.d.ts.map +1 -1
  273. package/dist/packages/prisma/zod/modelSchema/BookingSchema.d.ts +18 -30
  274. package/dist/packages/prisma/zod/modelSchema/BookingSchema.d.ts.map +1 -1
  275. package/dist/packages/prisma/zod/modelSchema/BookingSeatSchema.d.ts +26 -44
  276. package/dist/packages/prisma/zod/modelSchema/BookingSeatSchema.d.ts.map +1 -1
  277. package/dist/packages/prisma/zod/modelSchema/CalendarCacheSchema.d.ts +2 -2
  278. package/dist/packages/prisma/zod/modelSchema/CredentialSchema.d.ts +2 -2
  279. package/dist/packages/prisma/zod/modelSchema/EventTypeCustomInputSchema.d.ts +6 -6
  280. package/dist/packages/prisma/zod/modelSchema/EventTypeSchema.d.ts +145 -188
  281. package/dist/packages/prisma/zod/modelSchema/EventTypeSchema.d.ts.map +1 -1
  282. package/dist/packages/prisma/zod/modelSchema/FilterSegmentSchema.d.ts +8 -8
  283. package/dist/packages/prisma/zod/modelSchema/HolidayCacheSchema.d.ts +35 -0
  284. package/dist/packages/prisma/zod/modelSchema/HolidayCacheSchema.d.ts.map +1 -0
  285. package/dist/packages/prisma/zod/modelSchema/HostSchema.d.ts +2 -2
  286. package/dist/packages/prisma/zod/modelSchema/InstantMeetingTokenSchema.d.ts +2 -2
  287. package/dist/packages/prisma/zod/modelSchema/OAuthClientSchema.d.ts +3 -0
  288. package/dist/packages/prisma/zod/modelSchema/OAuthClientSchema.d.ts.map +1 -1
  289. package/dist/packages/prisma/zod/modelSchema/OrganizationOnboardingSchema.d.ts +2 -2
  290. package/dist/packages/prisma/zod/modelSchema/PaymentSchema.d.ts +2 -2
  291. package/dist/packages/prisma/zod/modelSchema/RoutingFormResponseSchema.d.ts +6 -6
  292. package/dist/packages/prisma/zod/modelSchema/TeamFeaturesSchema.d.ts +3 -0
  293. package/dist/packages/prisma/zod/modelSchema/TeamFeaturesSchema.d.ts.map +1 -1
  294. package/dist/packages/prisma/zod/modelSchema/TeamSchema.d.ts +34 -34
  295. package/dist/packages/prisma/zod/modelSchema/UserFeaturesSchema.d.ts +3 -0
  296. package/dist/packages/prisma/zod/modelSchema/UserFeaturesSchema.d.ts.map +1 -1
  297. package/dist/packages/prisma/zod/modelSchema/UserHolidaySettingsSchema.d.ts +26 -0
  298. package/dist/packages/prisma/zod/modelSchema/UserHolidaySettingsSchema.d.ts.map +1 -0
  299. package/dist/packages/prisma/zod/modelSchema/UserSchema.d.ts +4 -4
  300. package/dist/packages/prisma/zod/modelSchema/VerificationTokenSchema.d.ts +2 -2
  301. package/dist/packages/prisma/zod/modelSchema/WebhookSchema.d.ts +3 -0
  302. package/dist/packages/prisma/zod/modelSchema/WebhookSchema.d.ts.map +1 -1
  303. package/dist/packages/prisma/zod/modelSchema/index.d.ts +2 -0
  304. package/dist/packages/prisma/zod/modelSchema/index.d.ts.map +1 -1
  305. package/dist/packages/prisma/zod-utils.d.ts +476 -375
  306. package/dist/packages/prisma/zod-utils.d.ts.map +1 -1
  307. package/dist/packages/trpc/react/hooks/useEmailVerifyCheck.d.ts +1 -28
  308. package/dist/packages/trpc/react/hooks/useEmailVerifyCheck.d.ts.map +1 -1
  309. package/dist/packages/trpc/react/hooks/useMeQuery.d.ts +1 -313
  310. package/dist/packages/trpc/react/hooks/useMeQuery.d.ts.map +1 -1
  311. package/dist/packages/trpc/react/shared.d.ts +1 -1
  312. package/dist/packages/trpc/react/shared.d.ts.map +1 -1
  313. package/dist/packages/trpc/react/trpc.d.ts +1 -1
  314. package/dist/packages/trpc/react/trpc.d.ts.map +1 -1
  315. package/dist/packages/trpc/server/routers/viewer/slots/_router.d.ts +14 -14
  316. package/dist/packages/trpc/server/routers/viewer/slots/isAvailable.schema.d.ts +8 -8
  317. package/dist/packages/trpc/server/routers/viewer/slots/types.d.ts +207 -207
  318. package/dist/packages/trpc/server/routers/viewer/slots/util.d.ts +2 -1
  319. package/dist/packages/trpc/server/routers/viewer/slots/util.d.ts.map +1 -1
  320. package/dist/server.browser-CNpOyLDA.js +2536 -0
  321. package/dist/style.css +1 -1
  322. package/dist/{useIsAppEnabled-OQG85VSh.js → useIsAppEnabled-CJ4mGZvd.js} +1 -1
  323. package/globals.min.css +21 -2
  324. package/package.json +14 -11
  325. package/dist/AppListCardWebWrapper-dPeS1ok1.js +0 -74
  326. package/dist/server.browser-6clCAqw-.js +0 -2740
  327. /package/dist/{InstallAppButton-JXhBVaYJ.js → InstallAppButton-BdAHg4Ly.js} +0 -0
  328. /package/dist/{currencyOptions-kannG2hu.js → currencyOptions-r01lKGBF.js} +0 -0
@@ -1,5 +1,5 @@
1
1
  import { jsxs as m, jsx as e } from "react/jsx-runtime";
2
- import { K as n, e as o, J as p } from "./index-dVustuDq.js";
2
+ import { K as n, e as o, J as p } from "./index-BvnsFpCA.js";
3
3
  function r({ value: s, onChange: t, ...a }) {
4
4
  return /* @__PURE__ */ m("div", { className: "relative flex items-center", children: [
5
5
  /* @__PURE__ */ e(
@@ -1,22 +1,17 @@
1
1
  import { jsx as z, jsxs as er } from "react/jsx-runtime";
2
2
  import J from "react";
3
- import { G as tr, M as nr } from "./index-dVustuDq.js";
3
+ import { G as tr, M as nr } from "./index-BvnsFpCA.js";
4
4
  const K = function(s, r = !0) {
5
- if (s.destroyed)
6
- throw new Error("Hash instance has been destroyed");
7
- if (r && s.finished)
8
- throw new Error("Hash#digest() has already been called");
9
- }, or = (s) => s instanceof Uint8Array, N = (s) => new DataView(s.buffer, s.byteOffset, s.byteLength), L = (s, r) => s << 32 - r | s >>> r;
10
- if (new Uint8Array(new Uint32Array([287454020]).buffer)[0] !== 68)
11
- throw new Error("Non little-endian hardware is not supported");
5
+ if (s.destroyed) throw new Error("Hash instance has been destroyed");
6
+ if (r && s.finished) throw new Error("Hash#digest() has already been called");
7
+ }, or = (s) => s instanceof Uint8Array, j = (s) => new DataView(s.buffer, s.byteOffset, s.byteLength), L = (s, r) => s << 32 - r | s >>> r;
8
+ if (new Uint8Array(new Uint32Array([287454020]).buffer)[0] !== 68) throw new Error("Non little-endian hardware is not supported");
12
9
  Array.from({ length: 256 }, (s, r) => r.toString(16).padStart(2, "0"));
13
10
  function Z(s) {
14
11
  if (typeof s == "string" && (s = function(r) {
15
- if (typeof r != "string")
16
- throw new Error("utf8ToBytes expected string, got " + typeof r);
12
+ if (typeof r != "string") throw new Error("utf8ToBytes expected string, got " + typeof r);
17
13
  return new Uint8Array(new TextEncoder().encode(r));
18
- }(s)), !or(s))
19
- throw new Error("expected Uint8Array, got " + typeof s);
14
+ }(s)), !or(s)) throw new Error("expected Uint8Array, got " + typeof s);
20
15
  return s;
21
16
  }
22
17
  class sr {
@@ -30,19 +25,17 @@ function q(s) {
30
25
  }
31
26
  class ir extends sr {
32
27
  constructor(r, i, c, f) {
33
- super(), this.blockLen = r, this.outputLen = i, this.padOffset = c, this.isLE = f, this.finished = !1, this.length = 0, this.pos = 0, this.destroyed = !1, this.buffer = new Uint8Array(r), this.view = N(this.buffer);
28
+ super(), this.blockLen = r, this.outputLen = i, this.padOffset = c, this.isLE = f, this.finished = !1, this.length = 0, this.pos = 0, this.destroyed = !1, this.buffer = new Uint8Array(r), this.view = j(this.buffer);
34
29
  }
35
30
  update(r) {
36
31
  K(this);
37
32
  const { view: i, buffer: c, blockLen: f } = this, u = (r = Z(r)).length;
38
33
  for (let l = 0; l < u; ) {
39
34
  const g = Math.min(f - this.pos, u - l);
40
- if (g !== f)
41
- c.set(r.subarray(l, l + g), this.pos), this.pos += g, l += g, this.pos === f && (this.process(i, 0), this.pos = 0);
35
+ if (g !== f) c.set(r.subarray(l, l + g), this.pos), this.pos += g, l += g, this.pos === f && (this.process(i, 0), this.pos = 0);
42
36
  else {
43
- const m = N(r);
44
- for (; f <= u - l; l += f)
45
- this.process(m, l);
37
+ const m = j(r);
38
+ for (; f <= u - l; l += f) this.process(m, l);
46
39
  }
47
40
  }
48
41
  return this.length += r.length, this.roundClean(), this;
@@ -50,34 +43,26 @@ class ir extends sr {
50
43
  digestInto(r) {
51
44
  K(this), function(b, y) {
52
45
  (function(x, ...B) {
53
- if (!(x instanceof Uint8Array))
54
- throw new Error("Expected Uint8Array");
55
- if (B.length > 0 && !B.includes(x.length))
56
- throw new Error(`Expected Uint8Array of length ${B}, not of length=${x.length}`);
46
+ if (!(x instanceof Uint8Array)) throw new Error("Expected Uint8Array");
47
+ if (B.length > 0 && !B.includes(x.length)) throw new Error(`Expected Uint8Array of length ${B}, not of length=${x.length}`);
57
48
  })(b);
58
49
  const E = y.outputLen;
59
- if (b.length < E)
60
- throw new Error(`digestInto() expects output buffer of length at least ${E}`);
50
+ if (b.length < E) throw new Error(`digestInto() expects output buffer of length at least ${E}`);
61
51
  }(r, this), this.finished = !0;
62
52
  const { buffer: i, view: c, blockLen: f, isLE: u } = this;
63
53
  let { pos: l } = this;
64
54
  i[l++] = 128, this.buffer.subarray(l).fill(0), this.padOffset > f - l && (this.process(c, 0), l = 0);
65
- for (let b = l; b < f; b++)
66
- i[b] = 0;
55
+ for (let b = l; b < f; b++) i[b] = 0;
67
56
  (function(b, y, E, x) {
68
- if (typeof b.setBigUint64 == "function")
69
- return b.setBigUint64(y, E, x);
70
- const B = BigInt(32), k = BigInt(4294967295), _ = Number(E >> B & k), C = Number(E & k), j = x ? 0 : 4;
71
- b.setUint32(y + (x ? 4 : 0), _, x), b.setUint32(y + j, C, x);
57
+ if (typeof b.setBigUint64 == "function") return b.setBigUint64(y, E, x);
58
+ const B = BigInt(32), k = BigInt(4294967295), _ = Number(E >> B & k), S = Number(E & k), N = x ? 0 : 4;
59
+ b.setUint32(y + (x ? 4 : 0), _, x), b.setUint32(y + N, S, x);
72
60
  })(c, f - 8, BigInt(8 * this.length), u), this.process(c, 0);
73
- const g = N(r), m = this.outputLen;
74
- if (m % 4)
75
- throw new Error("_sha2: outputLen should be aligned to 32bit");
61
+ const g = j(r), m = this.outputLen;
62
+ if (m % 4) throw new Error("_sha2: outputLen should be aligned to 32bit");
76
63
  const U = m / 4, A = this.get();
77
- if (U > A.length)
78
- throw new Error("_sha2: outputLen bigger than state");
79
- for (let b = 0; b < U; b++)
80
- g.setUint32(4 * b, A[b], u);
64
+ if (U > A.length) throw new Error("_sha2: outputLen bigger than state");
65
+ for (let b = 0; b < U; b++) g.setUint32(4 * b, A[b], u);
81
66
  }
82
67
  digest() {
83
68
  const { buffer: r, outputLen: i } = this;
@@ -104,8 +89,7 @@ class rr extends ir {
104
89
  this.A = 0 | r, this.B = 0 | i, this.C = 0 | c, this.D = 0 | f, this.E = 0 | u, this.F = 0 | l, this.G = 0 | g, this.H = 0 | m;
105
90
  }
106
91
  process(r, i) {
107
- for (let y = 0; y < 16; y++, i += 4)
108
- T[y] = r.getUint32(i, !1);
92
+ for (let y = 0; y < 16; y++, i += 4) T[y] = r.getUint32(i, !1);
109
93
  for (let y = 16; y < 64; y++) {
110
94
  const E = T[y - 15], x = T[y - 2], B = L(E, 7) ^ L(E, 18) ^ E >>> 3, k = L(x, 17) ^ L(x, 19) ^ x >>> 10;
111
95
  T[y] = k + T[y - 7] + B + T[y - 16] | 0;
@@ -132,11 +116,9 @@ class hr extends rr {
132
116
  }
133
117
  q(() => new rr());
134
118
  q(() => new hr());
135
- var Q, R;
136
- Q = function(s, r) {
119
+ var Q, D, fr = (Q = function(s, r) {
137
120
  function i(e) {
138
- if (!Number.isSafeInteger(e))
139
- throw new Error(`Wrong integer: ${e}`);
121
+ if (!Number.isSafeInteger(e)) throw new Error(`Wrong integer: ${e}`);
140
122
  }
141
123
  function c(...e) {
142
124
  const t = (n, o) => (a) => n(o(a));
@@ -144,162 +126,115 @@ Q = function(s, r) {
144
126
  }
145
127
  function f(e) {
146
128
  return { encode: (t) => {
147
- if (!Array.isArray(t) || t.length && typeof t[0] != "number")
148
- throw new Error("alphabet.encode input should be an array of numbers");
129
+ if (!Array.isArray(t) || t.length && typeof t[0] != "number") throw new Error("alphabet.encode input should be an array of numbers");
149
130
  return t.map((n) => {
150
- if (i(n), n < 0 || n >= e.length)
151
- throw new Error(`Digit index outside alphabet: ${n} (alphabet: ${e.length})`);
131
+ if (i(n), n < 0 || n >= e.length) throw new Error(`Digit index outside alphabet: ${n} (alphabet: ${e.length})`);
152
132
  return e[n];
153
133
  });
154
134
  }, decode: (t) => {
155
- if (!Array.isArray(t) || t.length && typeof t[0] != "string")
156
- throw new Error("alphabet.decode input should be array of strings");
135
+ if (!Array.isArray(t) || t.length && typeof t[0] != "string") throw new Error("alphabet.decode input should be array of strings");
157
136
  return t.map((n) => {
158
- if (typeof n != "string")
159
- throw new Error(`alphabet.decode: not string element=${n}`);
137
+ if (typeof n != "string") throw new Error(`alphabet.decode: not string element=${n}`);
160
138
  const o = e.indexOf(n);
161
- if (o === -1)
162
- throw new Error(`Unknown letter: "${n}". Allowed: ${e}`);
139
+ if (o === -1) throw new Error(`Unknown letter: "${n}". Allowed: ${e}`);
163
140
  return o;
164
141
  });
165
142
  } };
166
143
  }
167
144
  function u(e = "") {
168
- if (typeof e != "string")
169
- throw new Error("join separator should be string");
145
+ if (typeof e != "string") throw new Error("join separator should be string");
170
146
  return { encode: (t) => {
171
- if (!Array.isArray(t) || t.length && typeof t[0] != "string")
172
- throw new Error("join.encode input should be array of strings");
173
- for (let n of t)
174
- if (typeof n != "string")
175
- throw new Error(`join.encode: non-string input=${n}`);
147
+ if (!Array.isArray(t) || t.length && typeof t[0] != "string") throw new Error("join.encode input should be array of strings");
148
+ for (let n of t) if (typeof n != "string") throw new Error(`join.encode: non-string input=${n}`);
176
149
  return t.join(e);
177
150
  }, decode: (t) => {
178
- if (typeof t != "string")
179
- throw new Error("join.decode input should be string");
151
+ if (typeof t != "string") throw new Error("join.decode input should be string");
180
152
  return t.split(e);
181
153
  } };
182
154
  }
183
155
  function l(e, t = "=") {
184
- if (i(e), typeof t != "string")
185
- throw new Error("padding chr should be string");
156
+ if (i(e), typeof t != "string") throw new Error("padding chr should be string");
186
157
  return { encode(n) {
187
- if (!Array.isArray(n) || n.length && typeof n[0] != "string")
188
- throw new Error("padding.encode input should be array of strings");
189
- for (let o of n)
190
- if (typeof o != "string")
191
- throw new Error(`padding.encode: non-string input=${o}`);
192
- for (; n.length * e % 8; )
193
- n.push(t);
158
+ if (!Array.isArray(n) || n.length && typeof n[0] != "string") throw new Error("padding.encode input should be array of strings");
159
+ for (let o of n) if (typeof o != "string") throw new Error(`padding.encode: non-string input=${o}`);
160
+ for (; n.length * e % 8; ) n.push(t);
194
161
  return n;
195
162
  }, decode(n) {
196
- if (!Array.isArray(n) || n.length && typeof n[0] != "string")
197
- throw new Error("padding.encode input should be array of strings");
198
- for (let a of n)
199
- if (typeof a != "string")
200
- throw new Error(`padding.decode: non-string input=${a}`);
163
+ if (!Array.isArray(n) || n.length && typeof n[0] != "string") throw new Error("padding.encode input should be array of strings");
164
+ for (let a of n) if (typeof a != "string") throw new Error(`padding.decode: non-string input=${a}`);
201
165
  let o = n.length;
202
- if (o * e % 8)
203
- throw new Error("Invalid padding: string should have whole number of bytes");
204
- for (; o > 0 && n[o - 1] === t; o--)
205
- if (!((o - 1) * e % 8))
206
- throw new Error("Invalid padding: string has too much padding");
166
+ if (o * e % 8) throw new Error("Invalid padding: string should have whole number of bytes");
167
+ for (; o > 0 && n[o - 1] === t; o--) if (!((o - 1) * e % 8)) throw new Error("Invalid padding: string has too much padding");
207
168
  return n.slice(0, o);
208
169
  } };
209
170
  }
210
171
  function g(e) {
211
- if (typeof e != "function")
212
- throw new Error("normalize fn should be function");
172
+ if (typeof e != "function") throw new Error("normalize fn should be function");
213
173
  return { encode: (t) => t, decode: (t) => e(t) };
214
174
  }
215
175
  function m(e, t, n) {
216
- if (t < 2)
217
- throw new Error(`convertRadix: wrong from=${t}, base cannot be less than 2`);
218
- if (n < 2)
219
- throw new Error(`convertRadix: wrong to=${n}, base cannot be less than 2`);
220
- if (!Array.isArray(e))
221
- throw new Error("convertRadix: data should be array");
222
- if (!e.length)
223
- return [];
176
+ if (t < 2) throw new Error(`convertRadix: wrong from=${t}, base cannot be less than 2`);
177
+ if (n < 2) throw new Error(`convertRadix: wrong to=${n}, base cannot be less than 2`);
178
+ if (!Array.isArray(e)) throw new Error("convertRadix: data should be array");
179
+ if (!e.length) return [];
224
180
  let o = 0;
225
181
  const a = [], h = Array.from(e);
226
182
  for (h.forEach((d) => {
227
- if (i(d), d < 0 || d >= t)
228
- throw new Error(`Wrong integer: ${d}`);
183
+ if (i(d), d < 0 || d >= t) throw new Error(`Wrong integer: ${d}`);
229
184
  }); ; ) {
230
185
  let d = 0, w = !0;
231
186
  for (let p = o; p < h.length; p++) {
232
187
  const $ = h[p], v = t * d + $;
233
- if (!Number.isSafeInteger(v) || t * d / t !== d || v - $ != t * d)
234
- throw new Error("convertRadix: carry overflow");
235
- if (d = v % n, h[p] = Math.floor(v / n), !Number.isSafeInteger(h[p]) || h[p] * n + d !== v)
236
- throw new Error("convertRadix: carry overflow");
188
+ if (!Number.isSafeInteger(v) || t * d / t !== d || v - $ != t * d) throw new Error("convertRadix: carry overflow");
189
+ if (d = v % n, h[p] = Math.floor(v / n), !Number.isSafeInteger(h[p]) || h[p] * n + d !== v) throw new Error("convertRadix: carry overflow");
237
190
  w && (h[p] ? w = !1 : o = p);
238
191
  }
239
- if (a.push(d), w)
240
- break;
192
+ if (a.push(d), w) break;
241
193
  }
242
- for (let d = 0; d < e.length - 1 && e[d] === 0; d++)
243
- a.push(0);
194
+ for (let d = 0; d < e.length - 1 && e[d] === 0; d++) a.push(0);
244
195
  return a.reverse();
245
196
  }
246
197
  Object.defineProperty(r, "__esModule", { value: !0 }), r.bytes = r.stringToBytes = r.str = r.bytesToString = r.hex = r.utf8 = r.bech32m = r.bech32 = r.base58check = r.base58xmr = r.base58xrp = r.base58flickr = r.base58 = r.base64url = r.base64 = r.base32crockford = r.base32hex = r.base32 = r.base16 = r.utils = r.assertNumber = void 0, r.assertNumber = i;
247
198
  const U = (e, t) => t ? U(t, e % t) : e, A = (e, t) => e + (t - U(e, t));
248
199
  function b(e, t, n, o) {
249
- if (!Array.isArray(e))
250
- throw new Error("convertRadix2: data should be array");
251
- if (t <= 0 || t > 32)
252
- throw new Error(`convertRadix2: wrong from=${t}`);
253
- if (n <= 0 || n > 32)
254
- throw new Error(`convertRadix2: wrong to=${n}`);
255
- if (A(t, n) > 32)
256
- throw new Error(`convertRadix2: carry overflow from=${t} to=${n} carryBits=${A(t, n)}`);
200
+ if (!Array.isArray(e)) throw new Error("convertRadix2: data should be array");
201
+ if (t <= 0 || t > 32) throw new Error(`convertRadix2: wrong from=${t}`);
202
+ if (n <= 0 || n > 32) throw new Error(`convertRadix2: wrong to=${n}`);
203
+ if (A(t, n) > 32) throw new Error(`convertRadix2: carry overflow from=${t} to=${n} carryBits=${A(t, n)}`);
257
204
  let a = 0, h = 0;
258
205
  const d = 2 ** n - 1, w = [];
259
206
  for (const p of e) {
260
- if (i(p), p >= 2 ** t)
261
- throw new Error(`convertRadix2: invalid data word=${p} from=${t}`);
262
- if (a = a << t | p, h + t > 32)
263
- throw new Error(`convertRadix2: carry overflow pos=${h} from=${t}`);
264
- for (h += t; h >= n; h -= n)
265
- w.push((a >> h - n & d) >>> 0);
207
+ if (i(p), p >= 2 ** t) throw new Error(`convertRadix2: invalid data word=${p} from=${t}`);
208
+ if (a = a << t | p, h + t > 32) throw new Error(`convertRadix2: carry overflow pos=${h} from=${t}`);
209
+ for (h += t; h >= n; h -= n) w.push((a >> h - n & d) >>> 0);
266
210
  a &= 2 ** h - 1;
267
211
  }
268
- if (a = a << n - h & d, !o && h >= t)
269
- throw new Error("Excess padding");
270
- if (!o && a)
271
- throw new Error(`Non-zero padding: ${a}`);
212
+ if (a = a << n - h & d, !o && h >= t) throw new Error("Excess padding");
213
+ if (!o && a) throw new Error(`Non-zero padding: ${a}`);
272
214
  return o && h > 0 && w.push(a >>> 0), w;
273
215
  }
274
216
  function y(e) {
275
217
  return i(e), { encode: (t) => {
276
- if (!(t instanceof Uint8Array))
277
- throw new Error("radix.encode input should be Uint8Array");
218
+ if (!(t instanceof Uint8Array)) throw new Error("radix.encode input should be Uint8Array");
278
219
  return m(Array.from(t), 256, e);
279
220
  }, decode: (t) => {
280
- if (!Array.isArray(t) || t.length && typeof t[0] != "number")
281
- throw new Error("radix.decode input should be array of strings");
221
+ if (!Array.isArray(t) || t.length && typeof t[0] != "number") throw new Error("radix.decode input should be array of strings");
282
222
  return Uint8Array.from(m(t, e, 256));
283
223
  } };
284
224
  }
285
225
  function E(e, t = !1) {
286
- if (i(e), e <= 0 || e > 32)
287
- throw new Error("radix2: bits should be in (0..32]");
288
- if (A(8, e) > 32 || A(e, 8) > 32)
289
- throw new Error("radix2: carry overflow");
226
+ if (i(e), e <= 0 || e > 32) throw new Error("radix2: bits should be in (0..32]");
227
+ if (A(8, e) > 32 || A(e, 8) > 32) throw new Error("radix2: carry overflow");
290
228
  return { encode: (n) => {
291
- if (!(n instanceof Uint8Array))
292
- throw new Error("radix2.encode input should be Uint8Array");
229
+ if (!(n instanceof Uint8Array)) throw new Error("radix2.encode input should be Uint8Array");
293
230
  return b(Array.from(n), 8, e, !t);
294
231
  }, decode: (n) => {
295
- if (!Array.isArray(n) || n.length && typeof n[0] != "number")
296
- throw new Error("radix2.decode input should be array of strings");
232
+ if (!Array.isArray(n) || n.length && typeof n[0] != "number") throw new Error("radix2.decode input should be array of strings");
297
233
  return Uint8Array.from(b(n, e, 8, t));
298
234
  } };
299
235
  }
300
236
  function x(e) {
301
- if (typeof e != "function")
302
- throw new Error("unsafeWrapper fn should be function");
237
+ if (typeof e != "function") throw new Error("unsafeWrapper fn should be function");
303
238
  return function(...t) {
304
239
  try {
305
240
  return e.apply(null, t);
@@ -308,20 +243,15 @@ Q = function(s, r) {
308
243
  };
309
244
  }
310
245
  function B(e, t) {
311
- if (i(e), typeof t != "function")
312
- throw new Error("checksum fn should be function");
246
+ if (i(e), typeof t != "function") throw new Error("checksum fn should be function");
313
247
  return { encode(n) {
314
- if (!(n instanceof Uint8Array))
315
- throw new Error("checksum.encode: input should be Uint8Array");
248
+ if (!(n instanceof Uint8Array)) throw new Error("checksum.encode: input should be Uint8Array");
316
249
  const o = t(n).slice(0, e), a = new Uint8Array(n.length + e);
317
250
  return a.set(n), a.set(o, n.length), a;
318
251
  }, decode(n) {
319
- if (!(n instanceof Uint8Array))
320
- throw new Error("checksum.decode: input should be Uint8Array");
252
+ if (!(n instanceof Uint8Array)) throw new Error("checksum.decode: input should be Uint8Array");
321
253
  const o = n.slice(0, -e), a = t(o).slice(0, e), h = n.slice(-e);
322
- for (let d = 0; d < e; d++)
323
- if (a[d] !== h[d])
324
- throw new Error("Invalid checksum");
254
+ for (let d = 0; d < e; d++) if (a[d] !== h[d]) throw new Error("Invalid checksum");
325
255
  return o;
326
256
  } };
327
257
  }
@@ -340,19 +270,16 @@ Q = function(s, r) {
340
270
  let t = [];
341
271
  for (let n = 0; n < e.length; n += 11) {
342
272
  const o = e.slice(n, n + 11), a = _.indexOf(o.length), h = r.base58.decode(o);
343
- for (let d = 0; d < h.length - a; d++)
344
- if (h[d] !== 0)
345
- throw new Error("base58xmr: wrong padding");
273
+ for (let d = 0; d < h.length - a; d++) if (h[d] !== 0) throw new Error("base58xmr: wrong padding");
346
274
  t = t.concat(Array.from(h.slice(h.length - a)));
347
275
  }
348
276
  return Uint8Array.from(t);
349
277
  } }, r.base58check = (e) => c(B(4, (t) => e(e(t))), r.base58);
350
- const C = c(f("qpzry9x8gf2tvdw0s3jn54khce6mua7l"), u("")), j = [996825010, 642813549, 513874426, 1027748829, 705979059];
351
- function S(e) {
278
+ const S = c(f("qpzry9x8gf2tvdw0s3jn54khce6mua7l"), u("")), N = [996825010, 642813549, 513874426, 1027748829, 705979059];
279
+ function C(e) {
352
280
  const t = e >> 25;
353
281
  let n = (33554431 & e) << 5;
354
- for (let o = 0; o < j.length; o++)
355
- (t >> o & 1) == 1 && (n ^= j[o]);
282
+ for (let o = 0; o < N.length; o++) (t >> o & 1) == 1 && (n ^= N[o]);
356
283
  return n;
357
284
  }
358
285
  function H(e, t, n = 1) {
@@ -360,74 +287,57 @@ Q = function(s, r) {
360
287
  let a = 1;
361
288
  for (let h = 0; h < o; h++) {
362
289
  const d = e.charCodeAt(h);
363
- if (d < 33 || d > 126)
364
- throw new Error(`Invalid prefix (${e})`);
365
- a = S(a) ^ d >> 5;
290
+ if (d < 33 || d > 126) throw new Error(`Invalid prefix (${e})`);
291
+ a = C(a) ^ d >> 5;
366
292
  }
367
- a = S(a);
368
- for (let h = 0; h < o; h++)
369
- a = S(a) ^ 31 & e.charCodeAt(h);
370
- for (let h of t)
371
- a = S(a) ^ h;
372
- for (let h = 0; h < 6; h++)
373
- a = S(a);
374
- return a ^= n, C.encode(b([a % 2 ** 30], 30, 5, !1));
293
+ a = C(a);
294
+ for (let h = 0; h < o; h++) a = C(a) ^ 31 & e.charCodeAt(h);
295
+ for (let h of t) a = C(a) ^ h;
296
+ for (let h = 0; h < 6; h++) a = C(a);
297
+ return a ^= n, S.encode(b([a % 2 ** 30], 30, 5, !1));
375
298
  }
376
299
  function O(e) {
377
300
  const t = e === "bech32" ? 1 : 734539939, n = E(5), o = n.decode, a = n.encode, h = x(o);
378
301
  function d(w, p = 90) {
379
- if (typeof w != "string")
380
- throw new Error("bech32.decode input should be string, not " + typeof w);
381
- if (w.length < 8 || p !== !1 && w.length > p)
382
- throw new TypeError(`Wrong string length: ${w.length} (${w}). Expected (8..${p})`);
302
+ if (typeof w != "string") throw new Error("bech32.decode input should be string, not " + typeof w);
303
+ if (w.length < 8 || p !== !1 && w.length > p) throw new TypeError(`Wrong string length: ${w.length} (${w}). Expected (8..${p})`);
383
304
  const $ = w.toLowerCase();
384
- if (w !== $ && w !== w.toUpperCase())
385
- throw new Error("String must be lowercase or uppercase");
305
+ if (w !== $ && w !== w.toUpperCase()) throw new Error("String must be lowercase or uppercase");
386
306
  const v = (w = $).lastIndexOf("1");
387
- if (v === 0 || v === -1)
388
- throw new Error('Letter "1" must be present between prefix and data only');
389
- const W = w.slice(0, v), D = w.slice(v + 1);
390
- if (D.length < 6)
391
- throw new Error("Data must be at least 6 characters long");
392
- const M = C.decode(D).slice(0, -6), P = H(W, M, t);
393
- if (!D.endsWith(P))
394
- throw new Error(`Invalid checksum in ${w}: expected "${P}"`);
307
+ if (v === 0 || v === -1) throw new Error('Letter "1" must be present between prefix and data only');
308
+ const W = w.slice(0, v), R = w.slice(v + 1);
309
+ if (R.length < 6) throw new Error("Data must be at least 6 characters long");
310
+ const M = S.decode(R).slice(0, -6), P = H(W, M, t);
311
+ if (!R.endsWith(P)) throw new Error(`Invalid checksum in ${w}: expected "${P}"`);
395
312
  return { prefix: W, words: M };
396
313
  }
397
314
  return { encode: function(w, p, $ = 90) {
398
- if (typeof w != "string")
399
- throw new Error("bech32.encode prefix should be string, not " + typeof w);
400
- if (!Array.isArray(p) || p.length && typeof p[0] != "number")
401
- throw new Error("bech32.encode words should be array of numbers, not " + typeof p);
315
+ if (typeof w != "string") throw new Error("bech32.encode prefix should be string, not " + typeof w);
316
+ if (!Array.isArray(p) || p.length && typeof p[0] != "number") throw new Error("bech32.encode words should be array of numbers, not " + typeof p);
402
317
  const v = w.length + 7 + p.length;
403
- if ($ !== !1 && v > $)
404
- throw new TypeError(`Length ${v} exceeds limit ${$}`);
405
- return `${w = w.toLowerCase()}1${C.encode(p)}${H(w, p, t)}`;
318
+ if ($ !== !1 && v > $) throw new TypeError(`Length ${v} exceeds limit ${$}`);
319
+ return `${w = w.toLowerCase()}1${S.encode(p)}${H(w, p, t)}`;
406
320
  }, decode: d, decodeToBytes: function(w) {
407
321
  const { prefix: p, words: $ } = d(w, !1);
408
322
  return { prefix: p, words: $, bytes: o($) };
409
323
  }, decodeUnsafe: x(d), fromWords: o, fromWordsUnsafe: h, toWords: a };
410
324
  }
411
325
  r.bech32 = O("bech32"), r.bech32m = O("bech32m"), r.utf8 = { encode: (e) => new TextDecoder().decode(e), decode: (e) => new TextEncoder().encode(e) }, r.hex = c(E(4), f("0123456789abcdef"), u(""), g((e) => {
412
- if (typeof e != "string" || e.length % 2)
413
- throw new TypeError(`hex.decode: expected string, got ${typeof e} with length ${e.length}`);
326
+ if (typeof e != "string" || e.length % 2) throw new TypeError(`hex.decode: expected string, got ${typeof e} with length ${e.length}`);
414
327
  return e.toLowerCase();
415
328
  }));
416
329
  const F = { utf8: r.utf8, hex: r.hex, base16: r.base16, base32: r.base32, base64: r.base64, base64url: r.base64url, base58: r.base58, base58xmr: r.base58xmr }, G = `Invalid encoding type. Available types: ${Object.keys(F).join(", ")}`;
417
330
  r.bytesToString = (e, t) => {
418
- if (typeof e != "string" || !F.hasOwnProperty(e))
419
- throw new TypeError(G);
420
- if (!(t instanceof Uint8Array))
421
- throw new TypeError("bytesToString() expects Uint8Array");
331
+ if (typeof e != "string" || !F.hasOwnProperty(e)) throw new TypeError(G);
332
+ if (!(t instanceof Uint8Array)) throw new TypeError("bytesToString() expects Uint8Array");
422
333
  return F[e].encode(t);
423
334
  }, r.str = r.bytesToString, r.stringToBytes = (e, t) => {
424
- if (!F.hasOwnProperty(e))
425
- throw new TypeError(G);
426
- if (typeof t != "string")
427
- throw new TypeError("stringToBytes() expects string");
335
+ if (!F.hasOwnProperty(e)) throw new TypeError(G);
336
+ if (typeof t != "string") throw new TypeError("stringToBytes() expects string");
428
337
  return F[e].decode(t);
429
338
  }, r.bytes = r.stringToBytes;
430
- }, Q(R = { exports: {} }, R.exports), R.exports;
339
+ }, Q(D = { exports: {} }, D.exports), D.exports);
340
+ const { bech32: pr, hex: gr, utf8: yr } = fr;
431
341
  BigInt(1e3), BigInt(1e6), BigInt(1e9), BigInt(1e12);
432
342
  BigInt("2100000000000000000");
433
343
  BigInt(1e11);
@@ -441,15 +351,15 @@ const V = async (s) => {
441
351
  const i = await V(r);
442
352
  return Number(s) * i;
443
353
  };
444
- var fr = { __proto__: null, getFiatBtcRate: V, getFiatValue: Y, getSatoshiValue: async ({ amount: s, currency: r }) => {
354
+ var dr = { __proto__: null, getFiatBtcRate: V, getFiatValue: Y, getSatoshiValue: async ({ amount: s, currency: r }) => {
445
355
  const i = await V(r);
446
356
  return Math.floor(Number(s) / i);
447
357
  }, getFormattedFiatValue: async ({ satoshi: s, currency: r, locale: i }) => (i || (i = "en"), (await Y({ satoshi: s, currency: r })).toLocaleString(i, { style: "currency", currency: r })) };
448
- function wr({ displaySymbol: s, price: r, formattedPrice: i }) {
358
+ function br({ displaySymbol: s, price: r, formattedPrice: i }) {
449
359
  const [c, f] = J.useState("loading...");
450
360
  return J.useEffect(() => {
451
361
  (async () => {
452
- const u = await fr.getFiatValue({ satoshi: r, currency: "USD" });
362
+ const u = await dr.getFiatValue({ satoshi: r, currency: "USD" });
453
363
  f(`$${u.toFixed(2)}`);
454
364
  })();
455
365
  }, [r]), /* @__PURE__ */ z(tr, { content: c, children: /* @__PURE__ */ er("div", { className: "inline-flex items-center justify-center", children: [
@@ -458,5 +368,5 @@ function wr({ displaySymbol: s, price: r, formattedPrice: i }) {
458
368
  ] }) });
459
369
  }
460
370
  export {
461
- wr as AlbyPriceComponent
371
+ br as AlbyPriceComponent
462
372
  };
@@ -1,5 +1,5 @@
1
1
  import { jsx as t, jsxs as o } from "react/jsx-runtime";
2
- import { ak as b, J as a, al as y, K as _, am as q, an as D, q as S, u as H, ao as L, B as N, a6 as w, s as T, ap as E, aq as x, p as O, ar as J } from "./index-dVustuDq.js";
2
+ import { ao as b, J as a, ap as y, K as _, aq as q, ar as D, q as S, u as H, as as L, B as N, aa as w, s as T, at as E, p as O, au as J, av as x } from "./index-BvnsFpCA.js";
3
3
  const K = ({
4
4
  children: e,
5
5
  ref: s,
@@ -227,7 +227,7 @@ function z({
227
227
  }
228
228
  ),
229
229
  u ? null : (e == null ? void 0 : e.isInstalled) && n && /* @__PURE__ */ t("div", { ref: j, children: e.isSetupAlready === void 0 || e.isSetupAlready ? /* @__PURE__ */ o("div", { className: "relative text-sm [&_input]:mb-0 [&_input]:leading-4", children: [
230
- !c && !B && /* @__PURE__ */ t(x, { href: `/apps/${e.slug}/setup`, className: "absolute right-4 top-4", children: /* @__PURE__ */ t(_, { name: "settings", className: "text-default h-4 w-4", "aria-hidden": "true" }) }),
230
+ !c && !B && /* @__PURE__ */ t(x, { href: `/apps/${e.slug}/setup`, className: "absolute right-0 top-0 ", children: /* @__PURE__ */ t(_, { name: "settings", className: "text-default h-4 w-4", "aria-hidden": "true" }) }),
231
231
  l
232
232
  ] }) : /* @__PURE__ */ o("div", { className: "flex h-64 w-full flex-col items-center justify-center gap-4 ", children: [
233
233
  /* @__PURE__ */ t("p", { children: v("this_app_is_not_setup_already") }),
@@ -1,5 +1,5 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
- import { A as p } from "./index-dVustuDq.js";
2
+ import { A as p } from "./index-BvnsFpCA.js";
3
3
  function s(o) {
4
4
  const t = `https://app.cal.com${o.logo}`;
5
5
  return /* @__PURE__ */ r(p, { ...o, logo: t });
@@ -0,0 +1,72 @@
1
+ import { jsx as A } from "react/jsx-runtime";
2
+ import { r as y, O as R, Q as h, R as d, U as Q, V as T, X as $, A as b, Y as L } from "./index-BvnsFpCA.js";
3
+ import { useMemo as w, useEffect as S, useCallback as U, useState as V, useRef as x } from "react";
4
+ h().or(d()).or(Q(d())).transform((r) => typeof r == "string" ? r.split(",").map((o) => Number(o)) : Array.isArray(r) ? r : [r]);
5
+ T((r) => h().parse(r).split(","), h().array()).or(h().array());
6
+ function C(r) {
7
+ const o = y.useRouter(), u = R(), c = y.usePathname(), n = r.safeParse(u);
8
+ let s = w(() => ({}), []);
9
+ S(() => {
10
+ n.success && n.data && Object.entries(n.data).forEach(([e, t]) => {
11
+ if (e in u || !t) return;
12
+ const a = new URLSearchParams(s);
13
+ a.set(String(e), String(t)), o.replace(`${c}?${a.toString()}`);
14
+ });
15
+ }, [n, r, o, c, u, s]), n.success ? s = n.data : n.success || console.error(n.error);
16
+ const l = U(
17
+ function(t, a) {
18
+ const g = new URLSearchParams(s);
19
+ g.set(String(t), String(a)), o.replace(`${c}?${g.toString()}`);
20
+ },
21
+ // eslint-disable-next-line react-hooks/exhaustive-deps
22
+ [s, o]
23
+ );
24
+ function i(e) {
25
+ const t = new URLSearchParams(s);
26
+ t.delete(String(e)), o.replace(`${c}?${t.toString()}`);
27
+ }
28
+ function f(e, t) {
29
+ const a = s[e];
30
+ if (Array.isArray(a)) {
31
+ if (a.includes(t)) return;
32
+ l(e, [...a, t]);
33
+ } else
34
+ l(e, [t]);
35
+ }
36
+ function m(e, t) {
37
+ const a = s[e];
38
+ if (Array.isArray(a) && a.length > 1) {
39
+ const g = a.filter((P) => P !== t);
40
+ l(e, g);
41
+ } else
42
+ i(e);
43
+ }
44
+ function p() {
45
+ c !== null && o.replace(c);
46
+ }
47
+ return {
48
+ data: s,
49
+ setQuery: l,
50
+ removeByKey: i,
51
+ pushItemToKey: f,
52
+ removeItemByKeyAndValue: m,
53
+ removeAllQueryParams: p
54
+ };
55
+ }
56
+ const j = L({ hl: h().optional() });
57
+ function H(r) {
58
+ const { slug: o, shouldHighlight: u } = r, {
59
+ data: { hl: c }
60
+ } = C(j), n = y.useRouter(), [s, l] = V(u && c === o), i = x(null), f = $(), m = y.usePathname();
61
+ return S(() => (u && s && f !== null && m !== null && (i.current = setTimeout(() => {
62
+ const p = new URLSearchParams(f.toString());
63
+ p.delete("hl"), p.delete("category"), l(!1);
64
+ const e = p.toString();
65
+ n.replace(`${m}${e !== "" ? `?${e}` : ""}`);
66
+ }, 3e3)), () => {
67
+ i.current && (clearTimeout(i.current), i.current = null);
68
+ }), [s, m, n, f, u]), /* @__PURE__ */ A(b, { ...r });
69
+ }
70
+ export {
71
+ H as default
72
+ };
@@ -1,6 +1,6 @@
1
1
  import { jsxs as o, jsx as t } from "react/jsx-runtime";
2
2
  import { useState as p } from "react";
3
- import { q as r, f as u, B as i } from "./index-dVustuDq.js";
3
+ import { q as r, f as u, B as i } from "./index-BvnsFpCA.js";
4
4
  function d() {
5
5
  const { t: e } = r(), [s, n] = p("");
6
6
  return /* @__PURE__ */ o("div", { className: "stack-y-4 px-4 pb-4 pt-4 text-sm", children: [
@@ -1,5 +1,5 @@
1
1
  import { jsxs as a, jsx as e, Fragment as r } from "react/jsx-runtime";
2
- import { B as i, q as o } from "./index-dVustuDq.js";
2
+ import { B as i, q as o } from "./index-BvnsFpCA.js";
3
3
  function d({ template: t }) {
4
4
  return /* @__PURE__ */ a("div", { className: "min-h-16 bg-default border-subtle sticky flex flex-col justify-between gap-4 rounded-md border p-5", children: [
5
5
  /* @__PURE__ */ a("div", { className: "flex items-start justify-start", children: [
@@ -1,6 +1,6 @@
1
1
  import { jsxs as o, jsx as e } from "react/jsx-runtime";
2
2
  import { useState as s } from "react";
3
- import { q as i, f as l, B as m } from "./index-dVustuDq.js";
3
+ import { q as i, f as l, B as m } from "./index-BvnsFpCA.js";
4
4
  function h() {
5
5
  const { t: a } = i(), n = "metric", [t, c] = s("");
6
6
  return /* @__PURE__ */ o("div", { className: "stack-y-4 text-sm", children: [