@calcom/atoms 1.0.101-booker → 1.0.102-framer
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.
- package/dist/{AddressInput-juYkbZV2.js → AddressInput-HHWre7wa.js} +3 -3
- package/dist/{AlbyPriceComponent-zPblWsmO.js → AlbyPriceComponent-PiAQRyyF.js} +29 -29
- package/dist/AppCard-sZ0O4rSq.js +269 -0
- package/dist/AppListCardPlatformWrapper-3MnkMx3x.js +9 -0
- package/dist/AppListCardWebWrapper-k80VJ3AR.js +74 -0
- package/dist/AppSettingsInterface--tKm6fGn.js +75 -0
- package/dist/AppSettingsInterface-WX_BLXDA.js +23 -0
- package/dist/AppSettingsInterface-XM13ce3E.js +29 -0
- package/dist/DateRangePicker-Fh_dsIdj.js +2418 -0
- package/dist/EventTypeAppCardInterface-0Jaxf6Yz.js +686 -0
- package/dist/EventTypeAppCardInterface-17vlTbvX.js +24 -0
- package/dist/EventTypeAppCardInterface-1wRC7oyo.js +24 -0
- package/dist/EventTypeAppCardInterface-2BSSOgqQ.js +34 -0
- package/dist/EventTypeAppCardInterface-3Z4hJuXU.js +24 -0
- package/dist/EventTypeAppCardInterface-6yy2mWL4.js +49 -0
- package/dist/EventTypeAppCardInterface-77QzFk7h.js +41 -0
- package/dist/EventTypeAppCardInterface-9knMJyHl.js +34 -0
- package/dist/EventTypeAppCardInterface-B0o2UQlj.js +34 -0
- package/dist/EventTypeAppCardInterface-Cz53nZwO.js +42 -0
- package/dist/EventTypeAppCardInterface-JUes7Gej.js +32 -0
- package/dist/EventTypeAppCardInterface-KHTT8wJl.js +24 -0
- package/dist/EventTypeAppCardInterface-Serbjt3a.js +41 -0
- package/dist/EventTypeAppCardInterface-VM43qaV4.js +51 -0
- package/dist/EventTypeAppCardInterface-WAgtkJTr.js +24 -0
- package/dist/EventTypeAppCardInterface-bE8PXNkn.js +51 -0
- package/dist/EventTypeAppCardInterface-eRfD8up8.js +31 -0
- package/dist/EventTypeAppCardInterface-fb10ijkP.js +34 -0
- package/dist/EventTypeAppCardInterface-mdMn_7JM.js +39 -0
- package/dist/EventTypeAppCardInterface-n9yqPo1B.js +33 -0
- package/dist/EventTypeAppCardInterface-oVYKJdV6.js +42 -0
- package/dist/EventTypeAppCardInterface-of1RhX-E.js +34 -0
- package/dist/EventTypeAppCardInterface-pTMF-k4A.js +32 -0
- package/dist/EventTypeAppCardInterface-qmB5vAlZ.js +86 -0
- package/dist/EventTypeAppCardInterface-rmXPvya0.js +34 -0
- package/dist/EventTypeAppCardInterface-vwIFMiKz.js +34 -0
- package/dist/EventTypeAppSettingsInterface-1Vh5bTl5.js +43 -0
- package/dist/EventTypeAppSettingsInterface-2Qwj1n4F.js +23 -0
- package/dist/EventTypeAppSettingsInterface-4Xqm5uVF.js +78 -0
- package/dist/EventTypeAppSettingsInterface-FV_o-vj_.js +120 -0
- package/dist/EventTypeAppSettingsInterface-HU1G4DbI.js +23 -0
- package/dist/EventTypeAppSettingsInterface-N3HkZEfB.js +25 -0
- package/dist/EventTypeAppSettingsInterface-coxZW4Hf.js +48 -0
- package/dist/EventTypeAppSettingsInterface-d-r4ksUA.js +298 -0
- package/dist/EventTypeAppSettingsInterface-hTxsbtaU.js +42 -0
- package/dist/EventTypeAppSettingsInterface-nE6EDu1s.js +24 -0
- package/dist/EventTypeAppSettingsInterface-nyRy26Mb.js +221 -0
- package/dist/EventTypeAppSettingsInterface-yVNFEGsi.js +72 -0
- package/dist/InstallAppButton-3IKq2MmS.js +14 -0
- package/dist/InstallAppButton-5g7VZ1ro.js +14 -0
- package/dist/InstallAppButton-JXhBVaYJ.js +29 -0
- package/dist/InstallAppButton-TcCIETs3.js +58 -0
- package/dist/{PhoneInput-lzIUvvEp.js → PhoneInput-sIw_kpf_.js} +1 -1
- package/dist/StripePaymentForm-RyrxioJN.js +493 -0
- package/dist/cal-atoms.js +37 -3
- package/dist/currencyOptions-kannG2hu.js +61 -0
- package/dist/index-AZ6i1wpi.js +518 -0
- package/dist/index-K90Yu3PC.js +28 -0
- package/dist/index-LRugxdBo.js +158496 -0
- package/dist/{index-pxPagOVY.js → index-fMTiPIwd.js} +1 -1
- package/dist/packages/features/bookings/Booker/Booker.d.ts.map +1 -1
- package/dist/packages/features/bookings/Booker/components/AvailableTimeSlots.d.ts.map +1 -1
- package/dist/packages/features/bookings/Booker/components/hooks/useBookerLayout.d.ts +1 -1
- package/dist/packages/features/bookings/Booker/components/hooks/useBookingForm.d.ts +9 -9
- package/dist/packages/features/bookings/Booker/components/hooks/useBookings.d.ts +9 -9
- package/dist/packages/features/bookings/Booker/components/hooks/useCalendars.d.ts +86 -8
- package/dist/packages/features/bookings/Booker/components/hooks/useCalendars.d.ts.map +1 -1
- package/dist/packages/features/bookings/Booker/types.d.ts +1 -0
- package/dist/packages/features/bookings/Booker/types.d.ts.map +1 -1
- package/dist/packages/features/bookings/Booker/utils/event.d.ts +151 -133
- package/dist/packages/features/bookings/Booker/utils/event.d.ts.map +1 -1
- package/dist/packages/features/bookings/Booker/utils/lastBookingResponse.d.ts +1 -1
- package/dist/packages/features/bookings/Booker/utils/lastBookingResponse.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/create-booking.d.ts +75 -75
- package/dist/packages/features/bookings/lib/create-recurring-booking.d.ts +75 -75
- package/dist/packages/features/bookings/lib/get-booking.d.ts +40 -40
- package/dist/packages/features/bookings/lib/get-booking.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/getAllCredentialsForUsersOnEvent/refreshCredentials.d.ts +1 -6
- package/dist/packages/features/bookings/lib/getAllCredentialsForUsersOnEvent/refreshCredentials.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/getBookingDataSchema.d.ts +56 -56
- package/dist/packages/features/bookings/lib/getBookingDataSchemaForApi.d.ts +129 -129
- package/dist/packages/features/bookings/lib/getBookingFields.d.ts +20 -20
- package/dist/packages/features/bookings/lib/getBookingInfo.d.ts +68 -52
- package/dist/packages/features/bookings/lib/getBookingInfo.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/getBookingResponsesSchema.d.ts +6 -6
- package/dist/packages/features/bookings/lib/getBookingToDelete.d.ts +95 -92
- package/dist/packages/features/bookings/lib/getBookingToDelete.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/getUserBooking.d.ts +34 -26
- package/dist/packages/features/bookings/lib/getUserBooking.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleCancelBooking.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleInternalNote.d.ts +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking/checkBookingAndDurationLimits.d.ts +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking/checkBookingAndDurationLimits.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking/createBooking.d.ts +33 -34
- package/dist/packages/features/bookings/lib/handleNewBooking/createBooking.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking/ensureAvailableUsers.d.ts +610 -3
- package/dist/packages/features/bookings/lib/handleNewBooking/ensureAvailableUsers.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking/findBookingQuery.d.ts +14 -14
- package/dist/packages/features/bookings/lib/handleNewBooking/findBookingQuery.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking/getBookingData.d.ts +209 -32
- package/dist/packages/features/bookings/lib/handleNewBooking/getBookingData.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking/getEventType.d.ts +1189 -0
- package/dist/packages/features/bookings/lib/handleNewBooking/getEventType.d.ts.map +1 -0
- package/dist/packages/features/bookings/lib/handleNewBooking/getEventTypesFromDB.d.ts +162 -154
- package/dist/packages/features/bookings/lib/handleNewBooking/getEventTypesFromDB.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking/getLocationValuesForDb.d.ts +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking/getLocationValuesForDb.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking/getRequiresConfirmationFlags.d.ts +1 -0
- package/dist/packages/features/bookings/lib/handleNewBooking/getRequiresConfirmationFlags.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking/loadAndValidateUsers.d.ts +2 -2
- package/dist/packages/features/bookings/lib/handleNewBooking/loadAndValidateUsers.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking/loadUsers.d.ts +76 -74
- package/dist/packages/features/bookings/lib/handleNewBooking/loadUsers.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking/originalRescheduledBookingUtils.d.ts +59 -59
- package/dist/packages/features/bookings/lib/handleNewBooking/scheduleNoShowTriggers.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking/test/buildDryRunBooking.test.d.ts +2 -0
- package/dist/packages/features/bookings/lib/handleNewBooking/test/buildDryRunBooking.test.d.ts.map +1 -0
- package/dist/packages/features/bookings/lib/handleNewBooking/validateBookingTimeIsNotOutOfBounds.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking/validateEventLength.d.ts +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking/validateEventLength.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleNewBooking.d.ts +155 -75
- package/dist/packages/features/bookings/lib/handleNewBooking.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/handleSeats/create/createNewSeat.d.ts +31 -31
- package/dist/packages/features/bookings/lib/handleSeats/reschedule/attendee/attendeeRescheduleSeatedBooking.d.ts +14 -14
- package/dist/packages/features/bookings/lib/handleSeats/reschedule/owner/combineTwoSeatedBookings.d.ts +14 -14
- package/dist/packages/features/bookings/lib/handleSeats/reschedule/owner/moveSeatedBookingToNewTimeSlot.d.ts +14 -14
- package/dist/packages/features/bookings/lib/handleSeats/reschedule/owner/ownerRescheduleSeatedBooking.d.ts +31 -31
- package/dist/packages/features/bookings/lib/handleWebhookTrigger.d.ts +2 -2
- package/dist/packages/features/bookings/lib/handleWebhookTrigger.d.ts.map +1 -1
- package/dist/packages/features/bookings/lib/requiresConfirmation/getBookingRequest.d.ts +122 -0
- package/dist/packages/features/bookings/lib/requiresConfirmation/getBookingRequest.d.ts.map +1 -0
- package/dist/packages/features/bookings/lib/useFilterQuery.d.ts +4 -4
- package/dist/packages/features/data-table/DataTableProvider.d.ts +1 -0
- package/dist/packages/features/data-table/DataTableProvider.d.ts.map +1 -1
- package/dist/packages/features/data-table/components/DataTable.d.ts +2 -1
- package/dist/packages/features/data-table/components/DataTable.d.ts.map +1 -1
- package/dist/packages/features/data-table/components/DataTableWrapper.d.ts +3 -1
- package/dist/packages/features/data-table/components/DataTableWrapper.d.ts.map +1 -1
- package/dist/packages/features/data-table/components/filters/ActiveFilters.d.ts.map +1 -1
- package/dist/packages/features/data-table/components/filters/DateRangeFilter.d.ts +2 -1
- package/dist/packages/features/data-table/components/filters/DateRangeFilter.d.ts.map +1 -1
- package/dist/packages/features/data-table/components/filters/FilterPopover.d.ts.map +1 -1
- package/dist/packages/features/data-table/components/filters/useFilterPopoverOpen.d.ts +5 -0
- package/dist/packages/features/data-table/components/filters/useFilterPopoverOpen.d.ts.map +1 -0
- package/dist/packages/features/data-table/components/segment/DeleteSegmentDialog.d.ts.map +1 -1
- package/dist/packages/features/data-table/components/segment/FilterSegmentSelect.d.ts.map +1 -1
- package/dist/packages/features/data-table/components/segment/SaveFilterSegmentButton.d.ts.map +1 -1
- package/dist/packages/features/data-table/index.d.ts +1 -0
- package/dist/packages/features/data-table/index.d.ts.map +1 -1
- package/dist/packages/features/data-table/lib/parsers.d.ts +127 -0
- package/dist/packages/features/data-table/lib/parsers.d.ts.map +1 -0
- package/dist/packages/features/data-table/lib/serializers.d.ts +90 -0
- package/dist/packages/features/data-table/lib/serializers.d.ts.map +1 -0
- package/dist/packages/features/data-table/lib/server.d.ts +12 -1
- package/dist/packages/features/data-table/lib/server.d.ts.map +1 -1
- package/dist/packages/features/data-table/lib/types.d.ts +158 -157
- package/dist/packages/features/data-table/lib/types.d.ts.map +1 -1
- package/dist/packages/features/ee/billing/api/webhook/_checkout.session.completed.d.ts +6 -0
- package/dist/packages/features/ee/billing/api/webhook/_checkout.session.completed.d.ts.map +1 -0
- package/dist/packages/features/ee/billing/api/webhook/_invoice.paid.org.d.ts +2 -2
- package/dist/packages/features/ee/billing/api/webhook/_invoice.paid.org.d.ts.map +1 -1
- package/dist/packages/features/ee/billing/api/webhook/index.d.ts.map +1 -1
- package/dist/packages/features/ee/billing/billing-service.d.ts +1 -0
- package/dist/packages/features/ee/billing/billing-service.d.ts.map +1 -1
- package/dist/packages/features/ee/billing/credit-service.d.ts +45 -0
- package/dist/packages/features/ee/billing/credit-service.d.ts.map +1 -0
- package/dist/packages/features/ee/billing/credit-service.test.d.ts +2 -0
- package/dist/packages/features/ee/billing/credit-service.test.d.ts.map +1 -0
- package/dist/packages/features/ee/billing/organizations/organization-billing.repository.d.ts +1 -1
- package/dist/packages/features/ee/billing/stripe-billling-service.d.ts +11 -0
- package/dist/packages/features/ee/billing/stripe-billling-service.d.ts.map +1 -1
- package/dist/packages/features/ee/billing/teams/internal-team-billing.d.ts +5 -0
- package/dist/packages/features/ee/billing/teams/internal-team-billing.d.ts.map +1 -1
- package/dist/packages/features/ee/payments/pages/payment.d.ts +49 -46
- package/dist/packages/features/ee/payments/pages/payment.d.ts.map +1 -1
- package/dist/packages/features/ee/round-robin/assignmentReason/AssignmentReasonRecorder.d.ts +27 -3
- package/dist/packages/features/ee/round-robin/assignmentReason/AssignmentReasonRecorder.d.ts.map +1 -1
- package/dist/packages/features/ee/round-robin/handleRescheduleEventManager.d.ts +2 -0
- package/dist/packages/features/ee/round-robin/handleRescheduleEventManager.d.ts.map +1 -1
- package/dist/packages/features/ee/round-robin/roundRobinManualReassignment.d.ts +33 -33
- package/dist/packages/features/ee/round-robin/roundRobinManualReassignment.d.ts.map +1 -1
- package/dist/packages/features/ee/round-robin/roundRobinReassignment.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/api/handleSMSResponse.d.ts +7 -0
- package/dist/packages/features/ee/workflows/api/handleSMSResponse.d.ts.map +1 -0
- package/dist/packages/features/ee/workflows/api/scheduleEmailReminders.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/api/scheduleSMSReminders.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/api/scheduleWhatsappReminders.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/lib/getWorkflowReminders.d.ts +4 -1
- package/dist/packages/features/ee/workflows/lib/getWorkflowReminders.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/lib/reminders/emailReminderManager.d.ts +2 -0
- package/dist/packages/features/ee/workflows/lib/reminders/emailReminderManager.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/lib/reminders/messageDispatcher.d.ts +42 -0
- package/dist/packages/features/ee/workflows/lib/reminders/messageDispatcher.d.ts.map +1 -0
- package/dist/packages/features/ee/workflows/lib/reminders/providers/twilioProvider.d.ts +35 -2
- package/dist/packages/features/ee/workflows/lib/reminders/providers/twilioProvider.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/lib/reminders/reminderScheduler.d.ts +2 -1
- package/dist/packages/features/ee/workflows/lib/reminders/reminderScheduler.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/lib/reminders/reminderScheduler.test.d.ts +2 -0
- package/dist/packages/features/ee/workflows/lib/reminders/reminderScheduler.test.d.ts.map +1 -0
- package/dist/packages/features/ee/workflows/lib/reminders/scheduleMandatoryReminder.d.ts +2 -2
- package/dist/packages/features/ee/workflows/lib/reminders/scheduleMandatoryReminder.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/lib/reminders/smsReminderManager.d.ts +2 -0
- package/dist/packages/features/ee/workflows/lib/reminders/smsReminderManager.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/lib/reminders/utils.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/lib/reminders/whatsappReminderManager.d.ts.map +1 -1
- package/dist/packages/features/ee/workflows/lib/repository/workflowOptOutContact.d.ts +6 -0
- package/dist/packages/features/ee/workflows/lib/repository/workflowOptOutContact.d.ts.map +1 -0
- package/dist/packages/features/ee/workflows/lib/repository/workflowReminder.d.ts +18 -0
- package/dist/packages/features/ee/workflows/lib/repository/workflowReminder.d.ts.map +1 -0
- package/dist/packages/features/ee/workflows/lib/schema.d.ts +8 -8
- package/dist/packages/features/ee/workflows/lib/service/workflowOptOutService.d.ts +5 -0
- package/dist/packages/features/ee/workflows/lib/service/workflowOptOutService.d.ts.map +1 -0
- package/dist/packages/features/eventtypes/components/SkeletonLoader.d.ts +0 -1
- package/dist/packages/features/eventtypes/components/SkeletonLoader.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/components/tabs/advanced/EventAdvancedTab.d.ts +4 -1
- package/dist/packages/features/eventtypes/components/tabs/advanced/EventAdvancedTab.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/components/tabs/apps/EventAppsTab.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/components/tabs/assignment/EventTeamAssignmentTab.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/components/tabs/webhooks/EventWebhooksTab.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/components/tabs/workflows/EventWorkfowsTab.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/lib/getPublicEvent.d.ts +147 -130
- package/dist/packages/features/eventtypes/lib/getPublicEvent.d.ts.map +1 -1
- package/dist/packages/features/eventtypes/lib/types.d.ts +1 -0
- package/dist/packages/features/eventtypes/lib/types.d.ts.map +1 -1
- package/dist/packages/features/form-builder/Components.d.ts.map +1 -1
- package/dist/packages/features/form-builder/schema.d.ts +162 -162
- package/dist/packages/features/form-builder/schema.d.ts.map +1 -1
- package/dist/packages/features/form-builder/testUtils.d.ts +10 -10
- package/dist/packages/features/form-builder/utils/variantsConfig.d.ts +6 -6
- package/dist/packages/features/schedules/components/ScheduleListItem.d.ts.map +1 -1
- package/dist/packages/features/schedules/lib/use-schedule/useApiV2AvailableSlots.d.ts +6 -0
- package/dist/packages/features/schedules/lib/use-schedule/useApiV2AvailableSlots.d.ts.map +1 -0
- package/dist/packages/features/schedules/lib/use-schedule/useSchedule.d.ts +218 -70
- package/dist/packages/features/schedules/lib/use-schedule/useSchedule.d.ts.map +1 -1
- package/dist/packages/features/shell/useBottomNavItems.d.ts.map +1 -1
- package/dist/packages/platform/atoms/availability/AvailabilitySettings.d.ts.map +1 -1
- package/dist/packages/platform/atoms/booker/BookerPlatformWrapper.d.ts.map +1 -1
- package/dist/packages/platform/atoms/booker/types.d.ts +1 -0
- package/dist/packages/platform/atoms/booker/types.d.ts.map +1 -1
- package/dist/packages/platform/atoms/booker-embed/BookerEmbed.d.ts +1 -0
- package/dist/packages/platform/atoms/booker-embed/BookerEmbed.d.ts.map +1 -1
- package/dist/packages/platform/atoms/connect/conferencing-apps/hooks/useAtomBulkUpdateEventTypesToDefaultLocation.d.ts +3 -0
- package/dist/packages/platform/atoms/connect/conferencing-apps/hooks/useAtomBulkUpdateEventTypesToDefaultLocation.d.ts.map +1 -1
- package/dist/packages/platform/atoms/connect/conferencing-apps/hooks/useConnect.d.ts +1 -1
- package/dist/packages/platform/atoms/event-types/atom-api-transformers/transformApiEventTypeForAtom.d.ts +146 -130
- package/dist/packages/platform/atoms/event-types/atom-api-transformers/transformApiEventTypeForAtom.d.ts.map +1 -1
- package/dist/packages/platform/atoms/event-types/hooks/useAtomEventTypeById.d.ts +99 -91
- package/dist/packages/platform/atoms/event-types/hooks/useAtomEventTypeById.d.ts.map +1 -1
- package/dist/packages/platform/atoms/event-types/hooks/useAtomEventTypePaymentInfo.d.ts +47 -44
- package/dist/packages/platform/atoms/event-types/hooks/useAtomEventTypePaymentInfo.d.ts.map +1 -1
- package/dist/packages/platform/atoms/event-types/hooks/useAtomUpdateEventType.d.ts +79 -70
- package/dist/packages/platform/atoms/event-types/hooks/useAtomUpdateEventType.d.ts.map +1 -1
- package/dist/packages/platform/atoms/event-types/hooks/useEventTypeForm.d.ts.map +1 -1
- package/dist/packages/platform/atoms/event-types/hooks/usePlatformTabsNavigations.d.ts +1 -1
- package/dist/packages/platform/atoms/hooks/bookings/useCancelBooking.d.ts +2 -2
- package/dist/packages/platform/atoms/hooks/bookings/useCreateBooking.d.ts +75 -75
- package/dist/packages/platform/atoms/hooks/bookings/useCreateInstantBooking.d.ts +78 -78
- package/dist/packages/platform/atoms/hooks/bookings/useCreateRecurringBooking.d.ts +75 -75
- package/dist/packages/platform/atoms/hooks/bookings/useGetBookingForReschedule.d.ts +12 -12
- package/dist/packages/platform/atoms/hooks/connect/useConnect.d.ts +2 -4
- package/dist/packages/platform/atoms/hooks/connect/useConnect.d.ts.map +1 -1
- package/dist/packages/platform/atoms/hooks/event-types/private/useCreateEventType.d.ts +3 -0
- package/dist/packages/platform/atoms/hooks/event-types/private/useCreateEventType.d.ts.map +1 -1
- package/dist/packages/platform/atoms/hooks/event-types/private/useCreateTeamEventType.d.ts +3 -0
- package/dist/packages/platform/atoms/hooks/event-types/private/useCreateTeamEventType.d.ts.map +1 -1
- package/dist/packages/platform/atoms/hooks/event-types/private/useDeleteEventTypeById.d.ts +3 -0
- package/dist/packages/platform/atoms/hooks/event-types/private/useDeleteEventTypeById.d.ts.map +1 -1
- package/dist/packages/platform/atoms/hooks/schedules/useDeleteSchedule.d.ts +1 -1
- package/dist/packages/platform/atoms/hooks/useAvailableSlots.d.ts +0 -2
- package/dist/packages/platform/atoms/hooks/useAvailableSlots.d.ts.map +1 -1
- package/dist/packages/platform/atoms/hooks/useConnectedCalendars.d.ts +87 -9
- package/dist/packages/platform/atoms/hooks/useConnectedCalendars.d.ts.map +1 -1
- package/dist/packages/platform/atoms/hooks/useDeleteSelectedSlot.d.ts +1 -1
- package/dist/packages/platform/atoms/hooks/usePublicEvent.d.ts +147 -130
- package/dist/packages/platform/atoms/hooks/usePublicEvent.d.ts.map +1 -1
- package/dist/packages/platform/atoms/hooks/useSlots.d.ts +2 -1
- package/dist/packages/platform/atoms/hooks/useSlots.d.ts.map +1 -1
- package/dist/packages/platform/atoms/router/Router.d.ts +1 -1
- package/dist/packages/platform/atoms/router/Router.d.ts.map +1 -1
- package/dist/packages/platform/atoms/src/components/ui/dialog.d.ts +4 -4
- package/dist/packages/platform/atoms/src/components/ui/switch.d.ts +1 -1
- package/dist/packages/platform/atoms/src/components/ui/toast.d.ts +5 -5
- package/dist/packages/platform/libraries/emails.d.ts +6 -0
- package/dist/packages/platform/libraries/emails.d.ts.map +1 -1
- package/dist/packages/platform/libraries/index.d.ts +4 -0
- package/dist/packages/platform/libraries/index.d.ts.map +1 -1
- package/dist/packages/platform/types/bookings/2024-08-13/inputs/create-booking.input.d.ts +3 -3
- package/dist/packages/platform/types/bookings/2024-08-13/inputs/create-booking.input.d.ts.map +1 -1
- package/dist/packages/platform/types/bookings/2024-08-13/inputs/location.input.d.ts +1 -1
- package/dist/packages/platform/types/bookings/2024-08-13/inputs/location.input.d.ts.map +1 -1
- package/dist/packages/platform/types/bookings/2024-08-13/outputs/get-bookings.output.d.ts +10 -0
- package/dist/packages/platform/types/bookings/2024-08-13/outputs/get-bookings.output.d.ts.map +1 -1
- package/dist/packages/platform/types/calendars/index.d.ts +2 -0
- package/dist/packages/platform/types/calendars/index.d.ts.map +1 -0
- package/dist/packages/platform/types/{calendars.d.ts → calendars/inputs/busy-times.input.d.ts} +1 -1
- package/dist/packages/platform/types/calendars/inputs/busy-times.input.d.ts.map +1 -0
- package/dist/packages/platform/types/calendars/inputs/create-calendar-credentials.input.d.ts +5 -0
- package/dist/packages/platform/types/calendars/inputs/create-calendar-credentials.input.d.ts.map +1 -0
- package/dist/packages/platform/types/calendars/inputs/index.d.ts +3 -0
- package/dist/packages/platform/types/calendars/inputs/index.d.ts.map +1 -0
- package/dist/packages/platform/types/event-types/event-types_2024_06_14/inputs/booker-layouts.input.d.ts +5 -1
- package/dist/packages/platform/types/event-types/event-types_2024_06_14/inputs/booker-layouts.input.d.ts.map +1 -1
- package/dist/packages/platform/types/event-types/event-types_2024_06_14/inputs/create-event-type.input.d.ts +1 -0
- package/dist/packages/platform/types/event-types/event-types_2024_06_14/inputs/create-event-type.input.d.ts.map +1 -1
- package/dist/packages/platform/types/event-types/event-types_2024_06_14/inputs/update-event-type.input.d.ts +1 -0
- package/dist/packages/platform/types/event-types/event-types_2024_06_14/inputs/update-event-type.input.d.ts.map +1 -1
- package/dist/packages/platform/types/event-types/event-types_2024_06_14/outputs/event-type.output.d.ts +1 -0
- package/dist/packages/platform/types/event-types/event-types_2024_06_14/outputs/event-type.output.d.ts.map +1 -1
- package/dist/packages/platform/types/event-types/event-types_2024_06_14/outputs/locations.output.d.ts +1 -1
- package/dist/packages/platform/types/event-types/event-types_2024_06_14/outputs/locations.output.d.ts.map +1 -1
- package/dist/packages/platform/types/routing-forms/responses/routing-form-response.output.d.ts +1 -1
- package/dist/packages/platform/types/schedules/schedules-2024-04-15/schedules.d.ts +9 -9
- package/dist/packages/platform/types/slots/slots-2024-04-15/inputs/index.d.ts +7 -0
- package/dist/packages/platform/types/slots/slots-2024-04-15/inputs/index.d.ts.map +1 -1
- package/dist/packages/prisma/zod/accesscode.d.ts +2 -2
- package/dist/packages/prisma/zod/accesstoken.d.ts +2 -2
- package/dist/packages/prisma/zod/account.d.ts +2 -2
- package/dist/packages/prisma/zod/aiphonecallconfiguration.d.ts +2 -2
- package/dist/packages/prisma/zod/app.d.ts +4 -4
- package/dist/packages/prisma/zod/app_routingforms_form.d.ts +14 -14
- package/dist/packages/prisma/zod/app_routingforms_formresponse.d.ts +4 -4
- package/dist/packages/prisma/zod/app_routingforms_incompletebookingactions.d.ts +2 -2
- package/dist/packages/prisma/zod/assignmentreason.d.ts +2 -2
- package/dist/packages/prisma/zod/attendee.d.ts +2 -2
- package/dist/packages/prisma/zod/attribute.d.ts +6 -6
- package/dist/packages/prisma/zod/attributeoption.d.ts +2 -2
- package/dist/packages/prisma/zod/availability.d.ts +2 -2
- package/dist/packages/prisma/zod/avatar.d.ts +2 -2
- package/dist/packages/prisma/zod/booking.d.ts +16 -15
- package/dist/packages/prisma/zod/booking.d.ts.map +1 -1
- package/dist/packages/prisma/zod/bookingdenormalized.d.ts +84 -0
- package/dist/packages/prisma/zod/bookingdenormalized.d.ts.map +1 -0
- package/dist/packages/prisma/zod/bookinginternalnote.d.ts +2 -2
- package/dist/packages/prisma/zod/bookingseat.d.ts +8 -8
- package/dist/packages/prisma/zod/bookingtimestatusdenormalized.d.ts +87 -0
- package/dist/packages/prisma/zod/bookingtimestatusdenormalized.d.ts.map +1 -0
- package/dist/packages/prisma/zod/calendarcache.d.ts +5 -2
- package/dist/packages/prisma/zod/calendarcache.d.ts.map +1 -1
- package/dist/packages/prisma/zod/credential.d.ts +7 -3
- package/dist/packages/prisma/zod/credential.d.ts.map +1 -1
- package/dist/packages/prisma/zod/creditbalance.d.ts +36 -0
- package/dist/packages/prisma/zod/creditbalance.d.ts.map +1 -0
- package/dist/packages/prisma/zod/creditexpenselog.d.ts +41 -0
- package/dist/packages/prisma/zod/creditexpenselog.d.ts.map +1 -0
- package/dist/packages/prisma/zod/custom/booking.d.ts +100 -100
- package/dist/packages/prisma/zod/custom/eventtype.d.ts +265 -235
- package/dist/packages/prisma/zod/custom/eventtype.d.ts.map +1 -1
- package/dist/packages/prisma/zod/delegationcredential.d.ts +2 -1
- package/dist/packages/prisma/zod/delegationcredential.d.ts.map +1 -1
- package/dist/packages/prisma/zod/eventtype.d.ts +292 -259
- package/dist/packages/prisma/zod/eventtype.d.ts.map +1 -1
- package/dist/packages/prisma/zod/eventtypecustominput.d.ts +10 -10
- package/dist/packages/prisma/zod/eventtypetranslation.d.ts +4 -4
- package/dist/packages/prisma/zod/feedback.d.ts +4 -4
- package/dist/packages/prisma/zod/filtersegment.d.ts +2 -2
- package/dist/packages/prisma/zod/hashedlink.d.ts +2 -2
- package/dist/packages/prisma/zod/index.d.ts +5 -0
- package/dist/packages/prisma/zod/index.d.ts.map +1 -1
- package/dist/packages/prisma/zod/instantmeetingtoken.d.ts +4 -4
- package/dist/packages/prisma/zod/internalnotepreset.d.ts +4 -4
- package/dist/packages/prisma/zod/membership.d.ts +8 -2
- package/dist/packages/prisma/zod/membership.d.ts.map +1 -1
- package/dist/packages/prisma/zod/oauthclient.d.ts +2 -2
- package/dist/packages/prisma/zod/organizationonboarding.d.ts +8 -8
- package/dist/packages/prisma/zod/organizationsettings.d.ts +11 -8
- package/dist/packages/prisma/zod/organizationsettings.d.ts.map +1 -1
- package/dist/packages/prisma/zod/outofofficeentry.d.ts +4 -4
- package/dist/packages/prisma/zod/payment.d.ts +6 -6
- package/dist/packages/prisma/zod/platformbilling.d.ts +3 -0
- package/dist/packages/prisma/zod/platformbilling.d.ts.map +1 -1
- package/dist/packages/prisma/zod/platformoauthclient.d.ts +2 -2
- package/dist/packages/prisma/zod/profile.d.ts +2 -2
- package/dist/packages/prisma/zod/ratelimit.d.ts +4 -4
- package/dist/packages/prisma/zod/refreshtoken.d.ts +2 -2
- package/dist/packages/prisma/zod/routingformresponse.d.ts +4 -4
- package/dist/packages/prisma/zod/schedule.d.ts +2 -2
- package/dist/packages/prisma/zod/secondaryemail.d.ts +2 -2
- package/dist/packages/prisma/zod/selectedslots.d.ts +2 -2
- package/dist/packages/prisma/zod/session.d.ts +2 -2
- package/dist/packages/prisma/zod/team.d.ts +11 -10
- package/dist/packages/prisma/zod/team.d.ts.map +1 -1
- package/dist/packages/prisma/zod/teamfeatures.d.ts +4 -4
- package/dist/packages/prisma/zod/temporgredirect.d.ts +4 -4
- package/dist/packages/prisma/zod/user.d.ts +16 -15
- package/dist/packages/prisma/zod/user.d.ts.map +1 -1
- package/dist/packages/prisma/zod/userfeatures.d.ts +2 -2
- package/dist/packages/prisma/zod/verificationtoken.d.ts +2 -2
- package/dist/packages/prisma/zod/workflow.d.ts +2 -2
- package/dist/packages/prisma/zod/workflowoptoutcontact.d.ts +27 -0
- package/dist/packages/prisma/zod/workflowoptoutcontact.d.ts.map +1 -0
- package/dist/packages/prisma/zod/workflowreminder.d.ts +2 -2
- package/dist/packages/prisma/zod/workflowstep.d.ts +4 -4
- package/dist/packages/prisma/zod/workspaceplatform.d.ts +2 -2
- package/dist/packages/prisma/zod-utils.d.ts +637 -565
- package/dist/packages/prisma/zod-utils.d.ts.map +1 -1
- package/dist/packages/prisma-client/index.d.ts +41048 -30825
- package/dist/packages/trpc/react/hooks/useEmailVerifyCheck.d.ts +10 -1
- package/dist/packages/trpc/react/hooks/useEmailVerifyCheck.d.ts.map +1 -1
- package/dist/packages/trpc/react/hooks/useMeQuery.d.ts +30 -21
- package/dist/packages/trpc/react/hooks/useMeQuery.d.ts.map +1 -1
- package/dist/packages/trpc/react/shared.d.ts +1 -1
- package/dist/packages/trpc/react/shared.d.ts.map +1 -1
- package/dist/packages/trpc/server/routers/viewer/slots/_router.d.ts +10 -1
- package/dist/packages/trpc/server/routers/viewer/slots/_router.d.ts.map +1 -1
- package/dist/packages/trpc/server/routers/viewer/slots/types.d.ts +2 -2
- package/dist/packages/trpc/server/routers/viewer/slots/types.d.ts.map +1 -1
- package/dist/packages/trpc/server/routers/viewer/slots/util.d.ts +606 -321
- package/dist/packages/trpc/server/routers/viewer/slots/util.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/useIsAppEnabled-hrstotzg.js +18 -0
- package/package.json +1 -1
- package/dist/index-1iD3RAuF.js +0 -83360
- package/dist/index-4eiX6cBE.js +0 -1957
- package/dist/packages/features/schedules/components/index.d.ts +0 -7
- package/dist/packages/features/schedules/components/index.d.ts.map +0 -1
- package/dist/packages/features/schedules/index.d.ts +0 -4
- package/dist/packages/features/schedules/index.d.ts.map +0 -1
- package/dist/packages/features/schedules/lib/use-schedule/index.d.ts +0 -5
- package/dist/packages/features/schedules/lib/use-schedule/index.d.ts.map +0 -1
- package/dist/packages/platform/atoms/index.d.ts +0 -3
- package/dist/packages/platform/atoms/index.d.ts.map +0 -1
- package/dist/packages/platform/types/calendars.d.ts.map +0 -1
|
@@ -0,0 +1,298 @@
|
|
|
1
|
+
import { jsxs as u, Fragment as f, jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import { a1 as d, q as L, a2 as i, x as P, f as w, G as T, J as O, S as y, a3 as E, a4 as x, M as B, a5 as F, a6 as G } from "./index-LRugxdBo.js";
|
|
3
|
+
import { useState as K, useEffect as z } from "react";
|
|
4
|
+
const s = [
|
|
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
|
+
], V = ({
|
|
140
|
+
getAppData: r,
|
|
141
|
+
setAppData: e,
|
|
142
|
+
disabled: b,
|
|
143
|
+
eventType: h
|
|
144
|
+
}) => {
|
|
145
|
+
var k;
|
|
146
|
+
const g = r("price"), o = r("currency") || s[0].value, [t, D] = K(
|
|
147
|
+
s.find((a) => a.value === o) || {
|
|
148
|
+
label: s[0].label,
|
|
149
|
+
value: s[0].value
|
|
150
|
+
}
|
|
151
|
+
), v = r("paymentOption"), c = d.find((a) => v === a.value), m = r("enabled"), p = () => C.find((a) => a.value === (r("refundCountCalendarDays") === !0 ? 1 : 0)), { t: n } = L(), N = ((k = h.recurringEvent) == null ? void 0 : k.count) !== void 0, S = !!h.seatsPerTimeSlot, M = (a, R) => 0 .toLocaleString(a, {
|
|
152
|
+
style: "currency",
|
|
153
|
+
currency: R,
|
|
154
|
+
minimumFractionDigits: 0,
|
|
155
|
+
maximumFractionDigits: 0
|
|
156
|
+
}).replace(/\d/g, "").trim();
|
|
157
|
+
z(() => {
|
|
158
|
+
m && (r("currency") || e("currency", s[0].value), r("paymentOption") || e("paymentOption", d[0].value)), r("refundPolicy") || e("refundPolicy", i.NEVER);
|
|
159
|
+
}, [m, r, e]);
|
|
160
|
+
const C = [
|
|
161
|
+
{ value: 0, label: n("business_days") },
|
|
162
|
+
{ value: 1, label: n("calendar_days") }
|
|
163
|
+
];
|
|
164
|
+
return /* @__PURE__ */ u(f, { children: [
|
|
165
|
+
N && /* @__PURE__ */ l(P, { className: "mt-2", severity: "warning", title: n("warning_recurring_event_payment") }),
|
|
166
|
+
!N && m && /* @__PURE__ */ u(f, { children: [
|
|
167
|
+
/* @__PURE__ */ l("div", { className: "mt-4 block items-center justify-start sm:flex sm:space-x-2", children: /* @__PURE__ */ l(
|
|
168
|
+
w,
|
|
169
|
+
{
|
|
170
|
+
"data-testid": "stripe-price-input",
|
|
171
|
+
label: n("price"),
|
|
172
|
+
className: "h-[38px]",
|
|
173
|
+
addOnLeading: /* @__PURE__ */ l(f, { children: t.value ? M("en", t.value) : "" }),
|
|
174
|
+
addOnSuffix: o.toUpperCase(),
|
|
175
|
+
addOnClassname: "h-[38px]",
|
|
176
|
+
step: "0.01",
|
|
177
|
+
min: "0.5",
|
|
178
|
+
type: "number",
|
|
179
|
+
required: !0,
|
|
180
|
+
placeholder: "Price",
|
|
181
|
+
disabled: b,
|
|
182
|
+
onChange: (a) => {
|
|
183
|
+
e("price", T(Number(a.target.value), o));
|
|
184
|
+
},
|
|
185
|
+
value: g > 0 ? O(g, o) : void 0
|
|
186
|
+
}
|
|
187
|
+
) }),
|
|
188
|
+
/* @__PURE__ */ u("div", { className: "mt-5 w-60", children: [
|
|
189
|
+
/* @__PURE__ */ l("label", { className: "text-default mb-1 block text-sm font-medium", htmlFor: "currency", children: n("currency") }),
|
|
190
|
+
/* @__PURE__ */ l(
|
|
191
|
+
y,
|
|
192
|
+
{
|
|
193
|
+
"data-testid": "stripe-currency-select",
|
|
194
|
+
variant: "default",
|
|
195
|
+
options: s,
|
|
196
|
+
innerClassNames: {
|
|
197
|
+
input: "stripe-currency-input"
|
|
198
|
+
},
|
|
199
|
+
value: t,
|
|
200
|
+
className: "text-black",
|
|
201
|
+
defaultValue: t,
|
|
202
|
+
onChange: (a) => {
|
|
203
|
+
a && (D(a), e("currency", a.value));
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
)
|
|
207
|
+
] }),
|
|
208
|
+
/* @__PURE__ */ u("div", { className: "mt-4 w-60", children: [
|
|
209
|
+
/* @__PURE__ */ l("label", { className: "text-default mb-1 block text-sm font-medium", htmlFor: "currency", children: n("payment_option") }),
|
|
210
|
+
/* @__PURE__ */ l(
|
|
211
|
+
y,
|
|
212
|
+
{
|
|
213
|
+
"data-testid": "stripe-payment-option-select",
|
|
214
|
+
defaultValue: c ? { ...c, label: n(c.label) } : { ...d[0], label: n(d[0].label) },
|
|
215
|
+
options: d.map((a) => ({ ...a, label: n(a.label) || a.label })),
|
|
216
|
+
onChange: (a) => {
|
|
217
|
+
a && (e("paymentOption", a.value), a.value === "HOLD" && (e("refundPolicy", i.NEVER), e("refundDaysCount", void 0), e("refundCountCalendarDays", void 0)));
|
|
218
|
+
},
|
|
219
|
+
className: "mb-1 h-[38px] w-full",
|
|
220
|
+
isDisabled: S || b
|
|
221
|
+
}
|
|
222
|
+
)
|
|
223
|
+
] }),
|
|
224
|
+
S && v === "HOLD" && /* @__PURE__ */ l(P, { className: "mt-2", severity: "warning", title: n("seats_and_no_show_fee_error") }),
|
|
225
|
+
v !== "HOLD" && /* @__PURE__ */ u("div", { className: "mt-4 w-full", children: [
|
|
226
|
+
/* @__PURE__ */ l("label", { className: "text-default mb-1 block text-sm font-medium", children: n("refund_policy") }),
|
|
227
|
+
/* @__PURE__ */ u(
|
|
228
|
+
E,
|
|
229
|
+
{
|
|
230
|
+
disabled: b || v === "HOLD",
|
|
231
|
+
defaultValue: "never",
|
|
232
|
+
className: "flex flex-col space-y-2",
|
|
233
|
+
value: r("refundPolicy"),
|
|
234
|
+
onValueChange: (a) => {
|
|
235
|
+
e("refundPolicy", a), a !== i.DAYS && (e("refundDaysCount", void 0), e("refundCountCalendarDays", void 0));
|
|
236
|
+
},
|
|
237
|
+
children: [
|
|
238
|
+
/* @__PURE__ */ l(x, { className: "w-fit", value: i.ALWAYS, label: n("always"), id: "always" }),
|
|
239
|
+
/* @__PURE__ */ l(x, { className: "w-fit", value: i.NEVER, label: n("never"), id: "never" }),
|
|
240
|
+
/* @__PURE__ */ u("div", { className: B("text-default mb-2 flex flex-wrap items-center text-sm"), children: [
|
|
241
|
+
/* @__PURE__ */ l(
|
|
242
|
+
F,
|
|
243
|
+
{
|
|
244
|
+
className: "min-w-4 bg-default border-default flex h-4 w-4 cursor-pointer items-center rounded-full border focus:border-2 focus:outline-none ltr:mr-2 rtl:ml-2",
|
|
245
|
+
value: "days",
|
|
246
|
+
id: "days",
|
|
247
|
+
children: /* @__PURE__ */ l(G, { className: "after:bg-inverted relative flex h-4 w-4 items-center justify-center after:block after:h-2 after:w-2 after:rounded-full" })
|
|
248
|
+
}
|
|
249
|
+
),
|
|
250
|
+
/* @__PURE__ */ u("div", { className: "flex items-center", children: [
|
|
251
|
+
/* @__PURE__ */ u("span", { className: "me-2 ms-2", children: [
|
|
252
|
+
" ",
|
|
253
|
+
n("if_cancelled")
|
|
254
|
+
] }),
|
|
255
|
+
/* @__PURE__ */ l(
|
|
256
|
+
w,
|
|
257
|
+
{
|
|
258
|
+
labelSrOnly: !0,
|
|
259
|
+
type: "number",
|
|
260
|
+
className: B(
|
|
261
|
+
"border-default my-0 block w-16 text-sm [appearance:textfield] ltr:mr-2 rtl:ml-2"
|
|
262
|
+
),
|
|
263
|
+
placeholder: "2",
|
|
264
|
+
disabled: b,
|
|
265
|
+
min: 0,
|
|
266
|
+
defaultValue: r("refundDaysCount"),
|
|
267
|
+
required: r("refundPolicy") === i.DAYS,
|
|
268
|
+
value: r("refundDaysCount") ?? "",
|
|
269
|
+
onChange: (a) => e("refundDaysCount", parseInt(a.currentTarget.value))
|
|
270
|
+
}
|
|
271
|
+
),
|
|
272
|
+
/* @__PURE__ */ l(
|
|
273
|
+
y,
|
|
274
|
+
{
|
|
275
|
+
options: C,
|
|
276
|
+
isSearchable: !1,
|
|
277
|
+
isDisabled: b,
|
|
278
|
+
onChange: (a) => e("refundCountCalendarDays", (a == null ? void 0 : a.value) === 1),
|
|
279
|
+
value: p(),
|
|
280
|
+
defaultValue: p()
|
|
281
|
+
}
|
|
282
|
+
),
|
|
283
|
+
/* @__PURE__ */ u("span", { className: "me-2 ms-2", children: [
|
|
284
|
+
" ",
|
|
285
|
+
n("before")
|
|
286
|
+
] })
|
|
287
|
+
] })
|
|
288
|
+
] })
|
|
289
|
+
]
|
|
290
|
+
}
|
|
291
|
+
)
|
|
292
|
+
] })
|
|
293
|
+
] })
|
|
294
|
+
] });
|
|
295
|
+
};
|
|
296
|
+
export {
|
|
297
|
+
V as default
|
|
298
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { jsxs as c, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { f as s } from "./index-LRugxdBo.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
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { f as g } from "./index-LRugxdBo.js";
|
|
3
|
+
const o = ({
|
|
4
|
+
getAppData: t,
|
|
5
|
+
setAppData: a,
|
|
6
|
+
disabled: e
|
|
7
|
+
}) => {
|
|
8
|
+
const n = t("trackingId");
|
|
9
|
+
return /* @__PURE__ */ i(
|
|
10
|
+
g,
|
|
11
|
+
{
|
|
12
|
+
name: "Tracking ID",
|
|
13
|
+
"data-testid": "gtm-tracking-id-input",
|
|
14
|
+
value: n,
|
|
15
|
+
disabled: e,
|
|
16
|
+
onChange: (r) => {
|
|
17
|
+
a("trackingId", r.target.value);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
);
|
|
21
|
+
};
|
|
22
|
+
export {
|
|
23
|
+
o as default
|
|
24
|
+
};
|
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
import { jsx as e, jsxs as o } from "react/jsx-runtime";
|
|
2
|
+
import { useState as d } from "react";
|
|
3
|
+
import { q as I, a7 as P, a8 as j, e as T, r as g, M as C, x as A, a9 as E, aa as R, N as z } from "./index-LRugxdBo.js";
|
|
4
|
+
const y = "search", k = "url", B = (s) => {
|
|
5
|
+
const { t: a } = I(), [i, l] = d(""), [p, m] = d(0), [c, v] = d(""), { isOpenDialog: D, setIsOpenDialog: O } = s, [u, b] = d(!1), [N, h] = d(""), [x, _] = d(y), w = async (n, f) => {
|
|
6
|
+
if (u)
|
|
7
|
+
return;
|
|
8
|
+
b(!0), h("");
|
|
9
|
+
const t = await fetch("/api/integrations/giphy/search", {
|
|
10
|
+
method: "POST",
|
|
11
|
+
headers: {
|
|
12
|
+
"Content-Type": "application/json"
|
|
13
|
+
},
|
|
14
|
+
body: JSON.stringify({
|
|
15
|
+
keyword: n,
|
|
16
|
+
offset: f
|
|
17
|
+
})
|
|
18
|
+
}), r = await t.json();
|
|
19
|
+
return t.ok ? (l(r.image || ""), m(r.nextOffset), r.image || h("No Result found")) : h((r == null ? void 0 : r.message) || "Something went wrong"), b(!1), null;
|
|
20
|
+
}, G = async (n) => {
|
|
21
|
+
var r;
|
|
22
|
+
if (u)
|
|
23
|
+
return;
|
|
24
|
+
b(!0), h("");
|
|
25
|
+
const f = await fetch("/api/integrations/giphy/get", {
|
|
26
|
+
method: "POST",
|
|
27
|
+
headers: {
|
|
28
|
+
"Content-Type": "application/json"
|
|
29
|
+
},
|
|
30
|
+
body: JSON.stringify({
|
|
31
|
+
url: n
|
|
32
|
+
})
|
|
33
|
+
}), t = await f.json();
|
|
34
|
+
return f.ok ? (l(t.image || ""), t.image || h("No Result found")) : h((t == null ? void 0 : t.message) || ((r = t == null ? void 0 : t[0]) == null ? void 0 : r.message) || "Something went wrong"), b(!1), null;
|
|
35
|
+
}, S = (n, f, t) => /* @__PURE__ */ o(
|
|
36
|
+
"div",
|
|
37
|
+
{
|
|
38
|
+
className: C(
|
|
39
|
+
"flex cursor-pointer items-center border-b-2 p-2 text-sm ",
|
|
40
|
+
x === t ? "text-default border-emphasis" : "text-subtle border-transparent"
|
|
41
|
+
),
|
|
42
|
+
onClick: () => {
|
|
43
|
+
v(""), l(""), _(t);
|
|
44
|
+
},
|
|
45
|
+
children: [
|
|
46
|
+
/* @__PURE__ */ e(z, { name: n, className: "h-4 w-4 ltr:mr-2 rtl:ml-2" }),
|
|
47
|
+
f
|
|
48
|
+
]
|
|
49
|
+
}
|
|
50
|
+
), M = async (n) => {
|
|
51
|
+
n.stopPropagation(), n.preventDefault(), x === y ? w(c, 0) : x === k && G(c);
|
|
52
|
+
};
|
|
53
|
+
return /* @__PURE__ */ e(P, { open: D, onOpenChange: O, children: /* @__PURE__ */ o(j, { children: [
|
|
54
|
+
/* @__PURE__ */ e("h3", { className: "leading-16 font-cal text-emphasis text-xl", id: "modal-title", children: a("add_gif_to_confirmation") }),
|
|
55
|
+
/* @__PURE__ */ e("p", { className: "text-subtle mb-3 text-sm font-light", children: a("find_gif_spice_confirmation") }),
|
|
56
|
+
/* @__PURE__ */ o("div", { className: "border-emphasis flex items-center border-b border-solid", children: [
|
|
57
|
+
S("search", a("search_giphy"), y),
|
|
58
|
+
S("link", a("add_link_from_giphy"), k)
|
|
59
|
+
] }),
|
|
60
|
+
/* @__PURE__ */ o(
|
|
61
|
+
"form",
|
|
62
|
+
{
|
|
63
|
+
className: "flex w-full justify-center space-x-2 space-y-2 rtl:space-x-reverse",
|
|
64
|
+
onSubmit: M,
|
|
65
|
+
children: [
|
|
66
|
+
/* @__PURE__ */ e("div", { className: "relative block w-full pt-2", children: /* @__PURE__ */ e(
|
|
67
|
+
T,
|
|
68
|
+
{
|
|
69
|
+
type: "text",
|
|
70
|
+
placeholder: x === y ? a("search_giphy") : "https://media.giphy.com/media/some-id/giphy.gif",
|
|
71
|
+
value: c,
|
|
72
|
+
onChange: (n) => {
|
|
73
|
+
v(n.target.value);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
) }),
|
|
77
|
+
/* @__PURE__ */ e(g, { type: "submit", tabIndex: -1, color: "secondary", loading: u, children: a("search") })
|
|
78
|
+
]
|
|
79
|
+
}
|
|
80
|
+
),
|
|
81
|
+
i && /* @__PURE__ */ e("div", { className: "flex flex-col items-center space-x-2 space-y-2 pt-3 rtl:space-x-reverse", children: /* @__PURE__ */ e("div", { className: "bg-subtle flex w-full items-center justify-center", children: u ? /* @__PURE__ */ e("div", { className: "flex h-[200px] w-full items-center justify-center bg-gray-400 pb-3 pt-3", children: /* @__PURE__ */ o(
|
|
82
|
+
"svg",
|
|
83
|
+
{
|
|
84
|
+
className: C("mx-4 h-5 w-5 animate-spin", "text-inverted dark:text-emphasis"),
|
|
85
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
86
|
+
fill: "none",
|
|
87
|
+
viewBox: "0 0 24 24",
|
|
88
|
+
children: [
|
|
89
|
+
/* @__PURE__ */ e(
|
|
90
|
+
"circle",
|
|
91
|
+
{
|
|
92
|
+
className: "opacity-25",
|
|
93
|
+
cx: "12",
|
|
94
|
+
cy: "12",
|
|
95
|
+
r: "10",
|
|
96
|
+
stroke: "currentColor",
|
|
97
|
+
strokeWidth: "4"
|
|
98
|
+
}
|
|
99
|
+
),
|
|
100
|
+
/* @__PURE__ */ e(
|
|
101
|
+
"path",
|
|
102
|
+
{
|
|
103
|
+
className: "opacity-75",
|
|
104
|
+
fill: "currentColor",
|
|
105
|
+
d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"
|
|
106
|
+
}
|
|
107
|
+
)
|
|
108
|
+
]
|
|
109
|
+
}
|
|
110
|
+
) }) : /* @__PURE__ */ e("img", { className: "h-[200px] pb-3 pt-3", src: i, alt: `Gif from Giphy for ${c}` }) }) }),
|
|
111
|
+
N && /* @__PURE__ */ e(A, { severity: "error", title: N, className: "my-4" }),
|
|
112
|
+
i && x === y && /* @__PURE__ */ o("div", { className: "mt-4 flex items-center justify-between space-x-2 rtl:space-x-reverse", children: [
|
|
113
|
+
/* @__PURE__ */ e("div", { className: "text-subtle text-sm font-light", children: "Not the perfect GIF?" }),
|
|
114
|
+
/* @__PURE__ */ e(
|
|
115
|
+
g,
|
|
116
|
+
{
|
|
117
|
+
size: "sm",
|
|
118
|
+
color: "secondary",
|
|
119
|
+
type: "button",
|
|
120
|
+
loading: u,
|
|
121
|
+
onClick: () => w(c, p),
|
|
122
|
+
children: "Shuffle"
|
|
123
|
+
}
|
|
124
|
+
)
|
|
125
|
+
] }),
|
|
126
|
+
/* @__PURE__ */ o(E, { children: [
|
|
127
|
+
/* @__PURE__ */ e(
|
|
128
|
+
R,
|
|
129
|
+
{
|
|
130
|
+
color: "minimal",
|
|
131
|
+
tabIndex: -1,
|
|
132
|
+
onClick: () => {
|
|
133
|
+
s.setIsOpenDialog(!1);
|
|
134
|
+
},
|
|
135
|
+
children: a("cancel")
|
|
136
|
+
}
|
|
137
|
+
),
|
|
138
|
+
/* @__PURE__ */ e(
|
|
139
|
+
g,
|
|
140
|
+
{
|
|
141
|
+
type: "button",
|
|
142
|
+
disabled: !i,
|
|
143
|
+
onClick: () => (s.setIsOpenDialog(!1), s.onSave(i), m(0), l(""), v(""), !1),
|
|
144
|
+
children: a("add_gif")
|
|
145
|
+
}
|
|
146
|
+
)
|
|
147
|
+
] })
|
|
148
|
+
] }) });
|
|
149
|
+
};
|
|
150
|
+
function F(s) {
|
|
151
|
+
const { t: a } = I(), [i, l] = d(s.defaultValue), [p, m] = d(!1);
|
|
152
|
+
return /* @__PURE__ */ o("div", { className: "flex flex-col items-start space-x-2 space-y-2 rtl:space-x-reverse", children: [
|
|
153
|
+
i && /* @__PURE__ */ e("div", { className: "min-h-[200px]", children: /* @__PURE__ */ e("img", { alt: "Selected Gif Image", src: i }) }),
|
|
154
|
+
/* @__PURE__ */ o("div", { className: "flex", children: [
|
|
155
|
+
i ? /* @__PURE__ */ e(
|
|
156
|
+
g,
|
|
157
|
+
{
|
|
158
|
+
color: "minimal",
|
|
159
|
+
type: "button",
|
|
160
|
+
StartIcon: "pencil",
|
|
161
|
+
onClick: () => m(!0),
|
|
162
|
+
disabled: s.disabled,
|
|
163
|
+
children: "Change"
|
|
164
|
+
}
|
|
165
|
+
) : /* @__PURE__ */ e(
|
|
166
|
+
g,
|
|
167
|
+
{
|
|
168
|
+
color: "minimal",
|
|
169
|
+
type: "button",
|
|
170
|
+
StartIcon: "plus",
|
|
171
|
+
onClick: () => m(!0),
|
|
172
|
+
disabled: s.disabled,
|
|
173
|
+
children: "Add from Giphy"
|
|
174
|
+
}
|
|
175
|
+
),
|
|
176
|
+
i && /* @__PURE__ */ e(
|
|
177
|
+
g,
|
|
178
|
+
{
|
|
179
|
+
color: "destructive",
|
|
180
|
+
type: "button",
|
|
181
|
+
StartIcon: "x",
|
|
182
|
+
onClick: () => {
|
|
183
|
+
l(""), s.onChange("");
|
|
184
|
+
},
|
|
185
|
+
disabled: s.disabled,
|
|
186
|
+
children: a("remove")
|
|
187
|
+
}
|
|
188
|
+
)
|
|
189
|
+
] }),
|
|
190
|
+
/* @__PURE__ */ e(
|
|
191
|
+
B,
|
|
192
|
+
{
|
|
193
|
+
isOpenDialog: p,
|
|
194
|
+
setIsOpenDialog: m,
|
|
195
|
+
onSave: (c) => {
|
|
196
|
+
l(c), s.onChange(c);
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
)
|
|
200
|
+
] });
|
|
201
|
+
}
|
|
202
|
+
const J = ({
|
|
203
|
+
getAppData: s,
|
|
204
|
+
setAppData: a,
|
|
205
|
+
disabled: i
|
|
206
|
+
}) => {
|
|
207
|
+
const l = s("thankYouPage");
|
|
208
|
+
return /* @__PURE__ */ e(
|
|
209
|
+
F,
|
|
210
|
+
{
|
|
211
|
+
defaultValue: l,
|
|
212
|
+
disabled: i,
|
|
213
|
+
onChange: (p) => {
|
|
214
|
+
a("thankYouPage", p);
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
);
|
|
218
|
+
};
|
|
219
|
+
export {
|
|
220
|
+
J as default
|
|
221
|
+
};
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { jsx as l, Fragment as x, jsxs as o } from "react/jsx-runtime";
|
|
2
|
+
import { useState as N, useEffect as w } from "react";
|
|
3
|
+
import { q as _, a0 as t, x as g, f as C, O as P, S as p } from "./index-LRugxdBo.js";
|
|
4
|
+
const d = [{ label: "BTC", value: "BTC", unit: "sats" }], T = ({
|
|
5
|
+
eventType: f,
|
|
6
|
+
getAppData: s,
|
|
7
|
+
setAppData: a
|
|
8
|
+
}) => {
|
|
9
|
+
var v, h;
|
|
10
|
+
const { t: n } = _(), i = s("price"), c = s("currency"), [r, O] = N(
|
|
11
|
+
d.find((e) => e.value === c) || d[0]
|
|
12
|
+
), b = s("paymentOption"), u = ((v = t) == null ? void 0 : v.find((e) => b === e.value)) || {
|
|
13
|
+
label: t[0].label,
|
|
14
|
+
value: t[0].value
|
|
15
|
+
}, y = !!f.seatsPerTimeSlot, [m] = N(s("enabled")), S = ((h = f.recurringEvent) == null ? void 0 : h.count) !== void 0;
|
|
16
|
+
return w(() => {
|
|
17
|
+
!c && m && a("currency", r.value);
|
|
18
|
+
}, [c, r, a, m]), /* @__PURE__ */ l(x, { children: S ? /* @__PURE__ */ l(g, { className: "mt-2", severity: "warning", title: n("warning_recurring_event_payment") }) : m && /* @__PURE__ */ o(x, { children: [
|
|
19
|
+
/* @__PURE__ */ l("div", { className: "mt-2 block items-center sm:flex", children: /* @__PURE__ */ l(
|
|
20
|
+
C,
|
|
21
|
+
{
|
|
22
|
+
label: "Price",
|
|
23
|
+
labelSrOnly: !0,
|
|
24
|
+
addOnLeading: /* @__PURE__ */ l(P, { className: "h-4 w-4" }),
|
|
25
|
+
addOnSuffix: r.unit || r.value,
|
|
26
|
+
type: "number",
|
|
27
|
+
required: !0,
|
|
28
|
+
className: "block w-full rounded-sm border-gray-300 pl-2 pr-12 text-sm",
|
|
29
|
+
placeholder: "Price",
|
|
30
|
+
onChange: (e) => {
|
|
31
|
+
a("price", Number(e.target.value)), c && a("currency", c);
|
|
32
|
+
},
|
|
33
|
+
value: i && i > 0 ? i : void 0
|
|
34
|
+
}
|
|
35
|
+
) }),
|
|
36
|
+
/* @__PURE__ */ o("div", { className: "mt-5 w-60", children: [
|
|
37
|
+
/* @__PURE__ */ l("label", { className: "text-default block text-sm font-medium", htmlFor: "currency", children: n("currency") }),
|
|
38
|
+
/* @__PURE__ */ l(
|
|
39
|
+
p,
|
|
40
|
+
{
|
|
41
|
+
variant: "default",
|
|
42
|
+
options: d,
|
|
43
|
+
value: r,
|
|
44
|
+
className: "text-black",
|
|
45
|
+
defaultValue: r,
|
|
46
|
+
onChange: (e) => {
|
|
47
|
+
e && (O(e), a("currency", e.value));
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
)
|
|
51
|
+
] }),
|
|
52
|
+
/* @__PURE__ */ o("div", { className: "mt-2 w-60", children: [
|
|
53
|
+
/* @__PURE__ */ l("label", { className: "text-default block text-sm font-medium", htmlFor: "currency", children: "Payment option" }),
|
|
54
|
+
/* @__PURE__ */ l(
|
|
55
|
+
p,
|
|
56
|
+
{
|
|
57
|
+
defaultValue: u ? { ...u, label: n(u.label) } : { ...t[0], label: n(t[0].label) },
|
|
58
|
+
options: t.map((e) => ({ ...e, label: n(e.label) || e.label })),
|
|
59
|
+
onChange: (e) => {
|
|
60
|
+
e && a("paymentOption", e.value);
|
|
61
|
+
},
|
|
62
|
+
className: "mb-1 h-[38px] w-full",
|
|
63
|
+
isDisabled: y
|
|
64
|
+
}
|
|
65
|
+
)
|
|
66
|
+
] }),
|
|
67
|
+
y && b === "HOLD" && /* @__PURE__ */ l(g, { className: "mt-2", severity: "warning", title: n("seats_and_no_show_fee_error") })
|
|
68
|
+
] }) });
|
|
69
|
+
};
|
|
70
|
+
export {
|
|
71
|
+
T as default
|
|
72
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { jsx as e, Fragment as a } from "react/jsx-runtime";
|
|
2
|
+
import { u as o } from "./index-LRugxdBo.js";
|
|
3
|
+
function u(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
|
+
u as default
|
|
14
|
+
};
|