@123usmanhaider321/ui 0.1.8 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +416 -31
- package/dist/images/icon/1LINK.svg +50 -0
- package/dist/images/icon/CreditCard.svg +83 -0
- package/dist/images/icon/Easypaisa.png +0 -0
- package/dist/images/icon/MobileWallet.png +0 -0
- package/dist/images/icon/Raast-Logo.png +0 -0
- package/dist/images/icon/VISA.png +0 -0
- package/dist/images/icon/add-circle-1.svg +5 -0
- package/dist/images/icon/check-circle-broken.svg +3 -0
- package/dist/images/icon/close-circle.svg +5 -0
- package/dist/images/icon/jazzcash.png +0 -0
- package/dist/images/icon/loading_icon.json +3347 -0
- package/dist/images/icon/mastercard-logo.webp +0 -0
- package/dist/images/icon/paymo.jpeg +0 -0
- package/dist/images/icon/preview-svgrepo-com.svg +36 -0
- package/dist/images/icon/trash.svg +7 -0
- package/dist/images/icon/unionpay-logo.svg +9 -0
- package/dist/index-BLoegwT6.js +60476 -0
- package/dist/index-BLoegwT6.js.map +1 -0
- package/dist/index-CPnu5V8f.js +11119 -0
- package/dist/index-CPnu5V8f.js.map +1 -0
- package/dist/index.d.ts +1 -10
- package/dist/index.es-C5pDhGOr.js +16734 -0
- package/dist/index.es-C5pDhGOr.js.map +1 -0
- package/dist/index.js +40 -12
- package/dist/index.js.map +1 -1
- package/dist/loading_icon-n5H5dQBl.js +3375 -0
- package/dist/loading_icon-n5H5dQBl.js.map +1 -0
- package/dist/src/components/Alert/ErrorAlert.d.ts +6 -0
- package/dist/src/components/Alert/SuccessAlert.d.ts +6 -0
- package/dist/{components → src/components}/FormBuilder/DiscountInput.d.ts +3 -6
- package/dist/{components → src/components}/FormBuilder/FormBuilder.d.ts +2 -11
- package/dist/{components → src/components}/FormBuilder/QuestionCard.d.ts +0 -5
- package/dist/{components → src/components}/FormBuilder/QuestionEditor.d.ts +0 -5
- package/dist/{components → src/components}/FormBuilder/SortableQuestionList.d.ts +0 -5
- package/dist/src/components/FormBuilder/questionIcons.d.ts +5 -0
- package/dist/{components/EventAddForm → src/components/NewAddEvent}/AddEventLayout.d.ts +2 -1
- package/dist/{components/EventAddForm → src/components/NewAddEvent}/AddEventStepper.d.ts +2 -2
- package/dist/{components/EventAddForm → src/components/NewAddEvent}/common/ConfirmationModal.d.ts +1 -1
- package/dist/src/components/NewAddEvent/components/EventSubmissionConfirmationModal.d.ts +14 -0
- package/dist/{components/EventAddForm → src/components/NewAddEvent}/components/StepTwo/TicketTierSection.d.ts +1 -1
- package/dist/{components/EventAddForm → src/components/NewAddEvent}/components/TicketTierForm.d.ts +1 -1
- package/dist/{components/EventAddForm → src/components/NewAddEvent}/hooks/useStepperForm.d.ts +22 -22
- package/dist/{components/EventAddForm → src/components/NewAddEvent}/hooks/useTicketTierForm.d.ts +63 -15
- package/dist/src/components/NewAddEvent/schemas/step1.d.ts +211 -0
- package/dist/src/components/NewAddEvent/schemas/step2.d.ts +411 -0
- package/dist/{components/EventAddForm → src/components/NewAddEvent}/schemas/utils.d.ts +8 -2
- package/dist/{components/EventAddForm → src/components/NewAddEvent}/steps/IndividualFormStep.d.ts +1 -1
- package/dist/{components/EventAddForm → src/components/NewAddEvent}/steps/SocialProfilesStep.d.ts +1 -1
- package/dist/{components/EventAddForm → src/components/NewAddEvent}/steps/TeamFormStep.d.ts +1 -1
- package/dist/src/components/Spinner/spinner.d.ts +4 -0
- package/dist/src/components/TicketlyUIProvider.d.ts +35 -0
- package/dist/src/components/common/Loader/index.d.ts +8 -0
- package/dist/src/components/common/Modals/ConfirmationModal.d.ts +7 -0
- package/dist/{components/FormInput → src/components/ui}/FormInput.d.ts +1 -1
- package/dist/src/components/ui/Loader.d.ts +4 -0
- package/dist/{components/Button/Button.d.ts → src/components/ui/button.d.ts} +1 -1
- package/dist/src/index.d.ts +10 -0
- package/dist/{lib → src/lib}/actions.d.ts +0 -126
- package/dist/src/lib/dom-utils.d.ts +2 -0
- package/dist/src/lib/storage-utils.d.ts +5 -0
- package/dist/src/lib/types.d.ts +258 -0
- package/dist/src/redux/baseQuery.d.ts +16 -0
- package/dist/{services → src/redux/features}/eventApi.d.ts +1053 -1745
- package/dist/src/redux/features/globalSlice.d.ts +17 -0
- package/dist/{services → src/redux/features/single-event}/single-event-api.d.ts +856 -1190
- package/dist/src/redux/types.d.ts +2 -0
- package/dist/src/services/library-services.d.ts +15 -0
- package/dist/src/services/remote-config.d.ts +27 -0
- package/dist/{services → src/services}/utils.d.ts +1 -1
- package/dist/src/theme/colors.d.ts +127 -0
- package/dist/src/theme/typography.d.ts +13 -0
- package/dist/src/types/api.d.ts +18 -0
- package/dist/style.css +2984 -0
- package/dist/styles.css +3760 -4014
- package/package.json +78 -68
- package/dist/_virtual/_commonjsHelpers.js +0 -9
- package/dist/_virtual/_commonjsHelpers.js.map +0 -1
- package/dist/_virtual/customParseFormat.js +0 -5
- package/dist/_virtual/customParseFormat.js.map +0 -1
- package/dist/_virtual/dayjs.min.js +0 -5
- package/dist/_virtual/dayjs.min.js.map +0 -1
- package/dist/_virtual/duration.js +0 -5
- package/dist/_virtual/duration.js.map +0 -1
- package/dist/_virtual/index.js +0 -5
- package/dist/_virtual/index.js.map +0 -1
- package/dist/_virtual/isBetween.js +0 -5
- package/dist/_virtual/isBetween.js.map +0 -1
- package/dist/_virtual/relativeTime.js +0 -5
- package/dist/_virtual/relativeTime.js.map +0 -1
- package/dist/_virtual/use-sync-external-store-shim.development.js +0 -5
- package/dist/_virtual/use-sync-external-store-shim.development.js.map +0 -1
- package/dist/_virtual/use-sync-external-store-shim.production.js +0 -5
- package/dist/_virtual/use-sync-external-store-shim.production.js.map +0 -1
- package/dist/_virtual/with-selector.development.js +0 -5
- package/dist/_virtual/with-selector.development.js.map +0 -1
- package/dist/_virtual/with-selector.js +0 -5
- package/dist/_virtual/with-selector.js.map +0 -1
- package/dist/_virtual/with-selector.production.js +0 -5
- package/dist/_virtual/with-selector.production.js.map +0 -1
- package/dist/components/Alert/Alert.js +0 -51
- package/dist/components/Alert/Alert.js.map +0 -1
- package/dist/components/Button/Button.js +0 -52
- package/dist/components/Button/Button.js.map +0 -1
- package/dist/components/Button/Button.test.d.ts +0 -1
- package/dist/components/Button/index.d.ts +0 -1
- package/dist/components/Checkbox/Checkbox.js +0 -50
- package/dist/components/Checkbox/Checkbox.js.map +0 -1
- package/dist/components/Checkbox/Checkbox.test.d.ts +0 -1
- package/dist/components/Checkbox/index.d.ts +0 -1
- package/dist/components/CheckboxGroup/CheckboxGroup.d.ts +0 -25
- package/dist/components/CheckboxGroup/CheckboxGroup.js +0 -99
- package/dist/components/CheckboxGroup/CheckboxGroup.js.map +0 -1
- package/dist/components/ConfirmationModal/ConfirmationModal.d.ts +0 -15
- package/dist/components/ConfirmationModal/ConfirmationModal.js +0 -136
- package/dist/components/ConfirmationModal/ConfirmationModal.js.map +0 -1
- package/dist/components/ConfirmationModal/index.d.ts +0 -2
- package/dist/components/CustomSelect/CustomSelect.js +0 -259
- package/dist/components/CustomSelect/CustomSelect.js.map +0 -1
- package/dist/components/EventAddForm/AddEventLayout.js +0 -227
- package/dist/components/EventAddForm/AddEventLayout.js.map +0 -1
- package/dist/components/EventAddForm/AddEventStepper.js +0 -719
- package/dist/components/EventAddForm/AddEventStepper.js.map +0 -1
- package/dist/components/EventAddForm/common/ConfirmationModal.js +0 -136
- package/dist/components/EventAddForm/common/ConfirmationModal.js.map +0 -1
- package/dist/components/EventAddForm/common/DescriptionModal.js +0 -70
- package/dist/components/EventAddForm/common/DescriptionModal.js.map +0 -1
- package/dist/components/EventAddForm/components/AnimatedBackground.d.ts +0 -8
- package/dist/components/EventAddForm/components/ApprovalConfirmationModal.d.ts +0 -7
- package/dist/components/EventAddForm/components/CheckboxGroup.js +0 -92
- package/dist/components/EventAddForm/components/CheckboxGroup.js.map +0 -1
- package/dist/components/EventAddForm/components/CustomMeetingForm.js +0 -237
- package/dist/components/EventAddForm/components/CustomMeetingForm.js.map +0 -1
- package/dist/components/EventAddForm/components/DateTimeField.js +0 -173
- package/dist/components/EventAddForm/components/DateTimeField.js.map +0 -1
- package/dist/components/EventAddForm/components/EventSubmissionConfirmationModal.d.ts +0 -33
- package/dist/components/EventAddForm/components/EventSubmissionConfirmationModal.js +0 -366
- package/dist/components/EventAddForm/components/EventSubmissionConfirmationModal.js.map +0 -1
- package/dist/components/EventAddForm/components/FileUpload.js +0 -412
- package/dist/components/EventAddForm/components/FileUpload.js.map +0 -1
- package/dist/components/EventAddForm/components/FormBuilderProceedModal.js +0 -197
- package/dist/components/EventAddForm/components/FormBuilderProceedModal.js.map +0 -1
- package/dist/components/EventAddForm/components/GoogleMapsAutocompleteInput.js +0 -1179
- package/dist/components/EventAddForm/components/GoogleMapsAutocompleteInput.js.map +0 -1
- package/dist/components/EventAddForm/components/InputField.d.ts +0 -15
- package/dist/components/EventAddForm/components/RadioGroupButton.d.ts +0 -14
- package/dist/components/EventAddForm/components/SelectField.d.ts +0 -19
- package/dist/components/EventAddForm/components/SingleDateTimeInput.js +0 -102
- package/dist/components/EventAddForm/components/SingleDateTimeInput.js.map +0 -1
- package/dist/components/EventAddForm/components/StepTwo/CustomFormSection.js +0 -277
- package/dist/components/EventAddForm/components/StepTwo/CustomFormSection.js.map +0 -1
- package/dist/components/EventAddForm/components/StepTwo/TicketTierSection.js +0 -148
- package/dist/components/EventAddForm/components/StepTwo/TicketTierSection.js.map +0 -1
- package/dist/components/EventAddForm/components/TicketTierForm.js +0 -418
- package/dist/components/EventAddForm/components/TicketTierForm.js.map +0 -1
- package/dist/components/EventAddForm/components/TicketTypeSelection.js +0 -93
- package/dist/components/EventAddForm/components/TicketTypeSelection.js.map +0 -1
- package/dist/components/EventAddForm/hooks/useStepperForm.js +0 -371
- package/dist/components/EventAddForm/hooks/useStepperForm.js.map +0 -1
- package/dist/components/EventAddForm/hooks/useTicketTierForm.js +0 -237
- package/dist/components/EventAddForm/hooks/useTicketTierForm.js.map +0 -1
- package/dist/components/EventAddForm/index.d.ts +0 -3
- package/dist/components/EventAddForm/index.js +0 -41
- package/dist/components/EventAddForm/index.js.map +0 -1
- package/dist/components/EventAddForm/schemas/index.d.ts +0 -2
- package/dist/components/EventAddForm/schemas/step1.d.ts +0 -47
- package/dist/components/EventAddForm/schemas/step1.js +0 -135
- package/dist/components/EventAddForm/schemas/step1.js.map +0 -1
- package/dist/components/EventAddForm/schemas/step2.d.ts +0 -138
- package/dist/components/EventAddForm/schemas/step2.js +0 -94
- package/dist/components/EventAddForm/schemas/step2.js.map +0 -1
- package/dist/components/EventAddForm/schemas/utils.js +0 -28
- package/dist/components/EventAddForm/schemas/utils.js.map +0 -1
- package/dist/components/EventAddForm/steps/IndividualFormStep.js +0 -85
- package/dist/components/EventAddForm/steps/IndividualFormStep.js.map +0 -1
- package/dist/components/EventAddForm/steps/SocialProfilesStep.js +0 -123
- package/dist/components/EventAddForm/steps/SocialProfilesStep.js.map +0 -1
- package/dist/components/EventAddForm/steps/StepOne.js +0 -462
- package/dist/components/EventAddForm/steps/StepOne.js.map +0 -1
- package/dist/components/EventAddForm/steps/StepTwo.js +0 -173
- package/dist/components/EventAddForm/steps/StepTwo.js.map +0 -1
- package/dist/components/EventAddForm/steps/TeamFormStep.js +0 -13
- package/dist/components/EventAddForm/steps/TeamFormStep.js.map +0 -1
- package/dist/components/FormBuilder/CategoryList.js +0 -242
- package/dist/components/FormBuilder/CategoryList.js.map +0 -1
- package/dist/components/FormBuilder/DiscountInput.js +0 -366
- package/dist/components/FormBuilder/DiscountInput.js.map +0 -1
- package/dist/components/FormBuilder/FormBuilder.js +0 -918
- package/dist/components/FormBuilder/FormBuilder.js.map +0 -1
- package/dist/components/FormBuilder/OptionList.js +0 -120
- package/dist/components/FormBuilder/OptionList.js.map +0 -1
- package/dist/components/FormBuilder/PaymentPreview.d.ts +0 -12
- package/dist/components/FormBuilder/PaymentPreview.js +0 -70
- package/dist/components/FormBuilder/PaymentPreview.js.map +0 -1
- package/dist/components/FormBuilder/PreviewInput.d.ts +0 -10
- package/dist/components/FormBuilder/PreviewInput.js +0 -143
- package/dist/components/FormBuilder/PreviewInput.js.map +0 -1
- package/dist/components/FormBuilder/QuestionCard.js +0 -252
- package/dist/components/FormBuilder/QuestionCard.js.map +0 -1
- package/dist/components/FormBuilder/QuestionEditor.js +0 -166
- package/dist/components/FormBuilder/QuestionEditor.js.map +0 -1
- package/dist/components/FormBuilder/RequiredToggle.js +0 -43
- package/dist/components/FormBuilder/RequiredToggle.js.map +0 -1
- package/dist/components/FormBuilder/SortableQuestionList.js +0 -137
- package/dist/components/FormBuilder/SortableQuestionList.js.map +0 -1
- package/dist/components/FormBuilder/index.d.ts +0 -4
- package/dist/components/FormBuilder/utils.js +0 -229
- package/dist/components/FormBuilder/utils.js.map +0 -1
- package/dist/components/FormInput/FormInput.js +0 -126
- package/dist/components/FormInput/FormInput.js.map +0 -1
- package/dist/components/FormInput/FormInput.test.d.ts +0 -1
- package/dist/components/FormInput/index.d.ts +0 -2
- package/dist/components/ImageCropModal/index.js +0 -464
- package/dist/components/ImageCropModal/index.js.map +0 -1
- package/dist/components/InformationPopover/InformationPopover.d.ts +0 -7
- package/dist/components/InformationPopover/InformationPopover.js +0 -19
- package/dist/components/InformationPopover/InformationPopover.js.map +0 -1
- package/dist/components/InformationPopover.js +0 -19
- package/dist/components/InformationPopover.js.map +0 -1
- package/dist/components/InputErrorMessage/InputErrorMessage.js +0 -21
- package/dist/components/InputErrorMessage/InputErrorMessage.js.map +0 -1
- package/dist/components/Modal/Modal.d.ts +0 -15
- package/dist/components/Modal/Modal.js +0 -73
- package/dist/components/Modal/Modal.js.map +0 -1
- package/dist/components/Radio/Radio.js +0 -35
- package/dist/components/Radio/Radio.js.map +0 -1
- package/dist/components/Spinner/spinner.d.ts +0 -2
- package/dist/components/Spinner/spinner.js +0 -22
- package/dist/components/Spinner/spinner.js.map +0 -1
- package/dist/components/Toggle/Toggle.d.ts +0 -16
- package/dist/components/Toggle/index.d.ts +0 -2
- package/dist/components/Tooltip/Tooltip.d.ts +0 -12
- package/dist/components/Tooltip/Tooltip.js +0 -134
- package/dist/components/Tooltip/Tooltip.js.map +0 -1
- package/dist/components/common/FallbackImage.js +0 -47
- package/dist/components/common/FallbackImage.js.map +0 -1
- package/dist/components/ui/Calendar/calendar-utils.js +0 -51
- package/dist/components/ui/Calendar/calendar-utils.js.map +0 -1
- package/dist/components/ui/Calendar/index.js +0 -142
- package/dist/components/ui/Calendar/index.js.map +0 -1
- package/dist/components/ui/Checkbox.d.ts +0 -9
- package/dist/components/ui/Checkbox.js +0 -50
- package/dist/components/ui/Checkbox.js.map +0 -1
- package/dist/components/ui/DatePicker/index.js +0 -188
- package/dist/components/ui/DatePicker/index.js.map +0 -1
- package/dist/components/ui/FormInput.js +0 -129
- package/dist/components/ui/FormInput.js.map +0 -1
- package/dist/components/ui/InputErrorMessage.d.ts +0 -7
- package/dist/components/ui/InputErrorMessage.js +0 -21
- package/dist/components/ui/InputErrorMessage.js.map +0 -1
- package/dist/components/ui/Modal/index.js +0 -73
- package/dist/components/ui/Modal/index.js.map +0 -1
- package/dist/components/ui/Radio.d.ts +0 -6
- package/dist/components/ui/Radio.js +0 -35
- package/dist/components/ui/Radio.js.map +0 -1
- package/dist/components/ui/RichTextEditor.js +0 -242
- package/dist/components/ui/RichTextEditor.js.map +0 -1
- package/dist/components/ui/TimePicker/index.js +0 -215
- package/dist/components/ui/TimePicker/index.js.map +0 -1
- package/dist/components/ui/TimeSelector/index.js +0 -138
- package/dist/components/ui/TimeSelector/index.js.map +0 -1
- package/dist/components/ui/Tooltip.d.ts +0 -12
- package/dist/components/ui/Tooltip.js +0 -136
- package/dist/components/ui/Tooltip.js.map +0 -1
- package/dist/hooks/useDropdownPosition.d.ts +0 -11
- package/dist/hooks/useFirebaseAuthState.d.ts +0 -6
- package/dist/hooks/useFirebaseAuthState.js +0 -23
- package/dist/hooks/useFirebaseAuthState.js.map +0 -1
- package/dist/hooks/useTicketTierForm.d.ts +0 -61
- package/dist/lib/actions.js +0 -32
- package/dist/lib/actions.js.map +0 -1
- package/dist/lib/cropImage.js +0 -113
- package/dist/lib/cropImage.js.map +0 -1
- package/dist/lib/imageAnalysis.js +0 -58
- package/dist/lib/imageAnalysis.js.map +0 -1
- package/dist/lib/utils.js +0 -9
- package/dist/lib/utils.js.map +0 -1
- package/dist/node_modules/@dnd-kit/accessibility/dist/accessibility.esm.js +0 -60
- package/dist/node_modules/@dnd-kit/accessibility/dist/accessibility.esm.js.map +0 -1
- package/dist/node_modules/@dnd-kit/core/dist/core.esm.js +0 -3458
- package/dist/node_modules/@dnd-kit/core/dist/core.esm.js.map +0 -1
- package/dist/node_modules/@dnd-kit/sortable/dist/sortable.esm.js +0 -593
- package/dist/node_modules/@dnd-kit/sortable/dist/sortable.esm.js.map +0 -1
- package/dist/node_modules/@dnd-kit/utilities/dist/utilities.esm.js +0 -302
- package/dist/node_modules/@dnd-kit/utilities/dist/utilities.esm.js.map +0 -1
- package/dist/node_modules/@firebase/app/dist/esm/index.esm.js +0 -768
- package/dist/node_modules/@firebase/app/dist/esm/index.esm.js.map +0 -1
- package/dist/node_modules/@firebase/component/dist/esm/index.esm.js +0 -340
- package/dist/node_modules/@firebase/component/dist/esm/index.esm.js.map +0 -1
- package/dist/node_modules/@firebase/logger/dist/esm/index.esm.js +0 -123
- package/dist/node_modules/@firebase/logger/dist/esm/index.esm.js.map +0 -1
- package/dist/node_modules/@firebase/storage/dist/index.esm.js +0 -2623
- package/dist/node_modules/@firebase/storage/dist/index.esm.js.map +0 -1
- package/dist/node_modules/@firebase/util/dist/index.esm.js +0 -658
- package/dist/node_modules/@firebase/util/dist/index.esm.js.map +0 -1
- package/dist/node_modules/@firebase/util/dist/postinstall.js +0 -5
- package/dist/node_modules/@firebase/util/dist/postinstall.js.map +0 -1
- package/dist/node_modules/@fortawesome/fontawesome-svg-core/index.js +0 -3179
- package/dist/node_modules/@fortawesome/fontawesome-svg-core/index.js.map +0 -1
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/index.js +0 -60
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/index.js.map +0 -1
- package/dist/node_modules/@fortawesome/react-fontawesome/dist/index.js +0 -400
- package/dist/node_modules/@fortawesome/react-fontawesome/dist/index.js.map +0 -1
- package/dist/node_modules/@heroicons/react/20/solid/esm/CheckIcon.js +0 -27
- package/dist/node_modules/@heroicons/react/20/solid/esm/CheckIcon.js.map +0 -1
- package/dist/node_modules/@heroicons/react/20/solid/esm/ChevronDownIcon.js +0 -27
- package/dist/node_modules/@heroicons/react/20/solid/esm/ChevronDownIcon.js.map +0 -1
- package/dist/node_modules/@heroicons/react/24/outline/esm/ArrowRightIcon.js +0 -29
- package/dist/node_modules/@heroicons/react/24/outline/esm/ArrowRightIcon.js.map +0 -1
- package/dist/node_modules/@heroicons/react/24/outline/esm/ClockIcon.js +0 -29
- package/dist/node_modules/@heroicons/react/24/outline/esm/ClockIcon.js.map +0 -1
- package/dist/node_modules/@heroicons/react/24/outline/esm/DocumentDuplicateIcon.js +0 -29
- package/dist/node_modules/@heroicons/react/24/outline/esm/DocumentDuplicateIcon.js.map +0 -1
- package/dist/node_modules/@heroicons/react/24/outline/esm/InformationCircleIcon.js +0 -29
- package/dist/node_modules/@heroicons/react/24/outline/esm/InformationCircleIcon.js.map +0 -1
- package/dist/node_modules/@heroicons/react/24/outline/esm/LinkIcon.js +0 -29
- package/dist/node_modules/@heroicons/react/24/outline/esm/LinkIcon.js.map +0 -1
- package/dist/node_modules/@heroicons/react/24/outline/esm/MagnifyingGlassIcon.js +0 -29
- package/dist/node_modules/@heroicons/react/24/outline/esm/MagnifyingGlassIcon.js.map +0 -1
- package/dist/node_modules/@heroicons/react/24/outline/esm/MapPinIcon.js +0 -33
- package/dist/node_modules/@heroicons/react/24/outline/esm/MapPinIcon.js.map +0 -1
- package/dist/node_modules/@heroicons/react/24/outline/esm/VideoCameraIcon.js +0 -29
- package/dist/node_modules/@heroicons/react/24/outline/esm/VideoCameraIcon.js.map +0 -1
- package/dist/node_modules/@heroicons/react/24/outline/esm/XMarkIcon.js +0 -29
- package/dist/node_modules/@heroicons/react/24/outline/esm/XMarkIcon.js.map +0 -1
- package/dist/node_modules/@tiptap/core/dist/index.js +0 -5446
- package/dist/node_modules/@tiptap/core/dist/index.js.map +0 -1
- package/dist/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.js +0 -21
- package/dist/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.js.map +0 -1
- package/dist/node_modules/@tiptap/extension-blockquote/dist/index.js +0 -78
- package/dist/node_modules/@tiptap/extension-blockquote/dist/index.js.map +0 -1
- package/dist/node_modules/@tiptap/extension-bold/dist/index.js +0 -100
- package/dist/node_modules/@tiptap/extension-bold/dist/index.js.map +0 -1
- package/dist/node_modules/@tiptap/extension-code/dist/index.js +0 -70
- package/dist/node_modules/@tiptap/extension-code/dist/index.js.map +0 -1
- package/dist/node_modules/@tiptap/extension-code-block/dist/index.js +0 -317
- package/dist/node_modules/@tiptap/extension-code-block/dist/index.js.map +0 -1
- package/dist/node_modules/@tiptap/extension-document/dist/index.js +0 -16
- package/dist/node_modules/@tiptap/extension-document/dist/index.js.map +0 -1
- package/dist/node_modules/@tiptap/extension-hard-break/dist/index.js +0 -66
- package/dist/node_modules/@tiptap/extension-hard-break/dist/index.js.map +0 -1
- package/dist/node_modules/@tiptap/extension-heading/dist/index.js +0 -86
- package/dist/node_modules/@tiptap/extension-heading/dist/index.js.map +0 -1
- package/dist/node_modules/@tiptap/extension-horizontal-rule/dist/index.js +0 -80
- package/dist/node_modules/@tiptap/extension-horizontal-rule/dist/index.js.map +0 -1
- package/dist/node_modules/@tiptap/extension-italic/dist/index.js +0 -98
- package/dist/node_modules/@tiptap/extension-italic/dist/index.js.map +0 -1
- package/dist/node_modules/@tiptap/extension-link/dist/index.js +0 -423
- package/dist/node_modules/@tiptap/extension-link/dist/index.js.map +0 -1
- package/dist/node_modules/@tiptap/extension-list/dist/index.js +0 -1039
- package/dist/node_modules/@tiptap/extension-list/dist/index.js.map +0 -1
- package/dist/node_modules/@tiptap/extension-paragraph/dist/index.js +0 -61
- package/dist/node_modules/@tiptap/extension-paragraph/dist/index.js.map +0 -1
- package/dist/node_modules/@tiptap/extension-placeholder/dist/index.js +0 -7
- package/dist/node_modules/@tiptap/extension-placeholder/dist/index.js.map +0 -1
- package/dist/node_modules/@tiptap/extension-strike/dist/index.js +0 -79
- package/dist/node_modules/@tiptap/extension-strike/dist/index.js.map +0 -1
- package/dist/node_modules/@tiptap/extension-text/dist/index.js +0 -16
- package/dist/node_modules/@tiptap/extension-text/dist/index.js.map +0 -1
- package/dist/node_modules/@tiptap/extension-underline/dist/index.js +0 -76
- package/dist/node_modules/@tiptap/extension-underline/dist/index.js.map +0 -1
- package/dist/node_modules/@tiptap/extensions/dist/index.js +0 -376
- package/dist/node_modules/@tiptap/extensions/dist/index.js.map +0 -1
- package/dist/node_modules/@tiptap/react/dist/index.js +0 -650
- package/dist/node_modules/@tiptap/react/dist/index.js.map +0 -1
- package/dist/node_modules/@tiptap/starter-kit/dist/index.js +0 -97
- package/dist/node_modules/@tiptap/starter-kit/dist/index.js.map +0 -1
- package/dist/node_modules/dayjs/dayjs.min.js +0 -283
- package/dist/node_modules/dayjs/dayjs.min.js.map +0 -1
- package/dist/node_modules/dayjs/plugin/customParseFormat.js +0 -130
- package/dist/node_modules/dayjs/plugin/customParseFormat.js.map +0 -1
- package/dist/node_modules/dayjs/plugin/duration.js +0 -137
- package/dist/node_modules/dayjs/plugin/duration.js.map +0 -1
- package/dist/node_modules/dayjs/plugin/isBetween.js +0 -20
- package/dist/node_modules/dayjs/plugin/isBetween.js.map +0 -1
- package/dist/node_modules/dayjs/plugin/relativeTime.js +0 -49
- package/dist/node_modules/dayjs/plugin/relativeTime.js.map +0 -1
- package/dist/node_modules/fast-equals/dist/es/index.js +0 -442
- package/dist/node_modules/fast-equals/dist/es/index.js.map +0 -1
- package/dist/node_modules/idb/build/index.js +0 -70
- package/dist/node_modules/idb/build/index.js.map +0 -1
- package/dist/node_modules/idb/build/wrap-idb-value.js +0 -149
- package/dist/node_modules/idb/build/wrap-idb-value.js.map +0 -1
- package/dist/node_modules/linkifyjs/dist/linkify.js +0 -1159
- package/dist/node_modules/linkifyjs/dist/linkify.js.map +0 -1
- package/dist/node_modules/orderedmap/dist/index.js +0 -120
- package/dist/node_modules/orderedmap/dist/index.js.map +0 -1
- package/dist/node_modules/prosemirror-commands/dist/index.js +0 -527
- package/dist/node_modules/prosemirror-commands/dist/index.js.map +0 -1
- package/dist/node_modules/prosemirror-dropcursor/dist/index.js +0 -137
- package/dist/node_modules/prosemirror-dropcursor/dist/index.js.map +0 -1
- package/dist/node_modules/prosemirror-gapcursor/dist/index.js +0 -221
- package/dist/node_modules/prosemirror-gapcursor/dist/index.js.map +0 -1
- package/dist/node_modules/prosemirror-history/dist/index.js +0 -357
- package/dist/node_modules/prosemirror-history/dist/index.js.map +0 -1
- package/dist/node_modules/prosemirror-keymap/dist/index.js +0 -84
- package/dist/node_modules/prosemirror-keymap/dist/index.js.map +0 -1
- package/dist/node_modules/prosemirror-model/dist/index.js +0 -3209
- package/dist/node_modules/prosemirror-model/dist/index.js.map +0 -1
- package/dist/node_modules/prosemirror-schema-list/dist/index.js +0 -131
- package/dist/node_modules/prosemirror-schema-list/dist/index.js.map +0 -1
- package/dist/node_modules/prosemirror-state/dist/index.js +0 -936
- package/dist/node_modules/prosemirror-state/dist/index.js.map +0 -1
- package/dist/node_modules/prosemirror-transform/dist/index.js +0 -1881
- package/dist/node_modules/prosemirror-transform/dist/index.js.map +0 -1
- package/dist/node_modules/prosemirror-view/dist/index.js +0 -5232
- package/dist/node_modules/prosemirror-view/dist/index.js.map +0 -1
- package/dist/node_modules/rope-sequence/dist/index.js +0 -184
- package/dist/node_modules/rope-sequence/dist/index.js.map +0 -1
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js +0 -82
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js.map +0 -1
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js +0 -78
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js.map +0 -1
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js +0 -78
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js.map +0 -1
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js +0 -63
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js.map +0 -1
- package/dist/node_modules/use-sync-external-store/shim/index.js +0 -13
- package/dist/node_modules/use-sync-external-store/shim/index.js.map +0 -1
- package/dist/node_modules/use-sync-external-store/shim/with-selector.js +0 -13
- package/dist/node_modules/use-sync-external-store/shim/with-selector.js.map +0 -1
- package/dist/node_modules/w3c-keyname/index.js +0 -106
- package/dist/node_modules/w3c-keyname/index.js.map +0 -1
- package/dist/node_modules/zod/v4/classic/coerce.js +0 -10
- package/dist/node_modules/zod/v4/classic/coerce.js.map +0 -1
- package/dist/node_modules/zod/v4/classic/compat.js +0 -8
- package/dist/node_modules/zod/v4/classic/compat.js.map +0 -1
- package/dist/node_modules/zod/v4/classic/errors.js +0 -45
- package/dist/node_modules/zod/v4/classic/errors.js.map +0 -1
- package/dist/node_modules/zod/v4/classic/iso.js +0 -44
- package/dist/node_modules/zod/v4/classic/iso.js.map +0 -1
- package/dist/node_modules/zod/v4/classic/parse.js +0 -30
- package/dist/node_modules/zod/v4/classic/parse.js.map +0 -1
- package/dist/node_modules/zod/v4/classic/schemas.js +0 -711
- package/dist/node_modules/zod/v4/classic/schemas.js.map +0 -1
- package/dist/node_modules/zod/v4/core/api.js +0 -588
- package/dist/node_modules/zod/v4/core/api.js.map +0 -1
- package/dist/node_modules/zod/v4/core/checks.js +0 -411
- package/dist/node_modules/zod/v4/core/checks.js.map +0 -1
- package/dist/node_modules/zod/v4/core/core.js +0 -75
- package/dist/node_modules/zod/v4/core/core.js.map +0 -1
- package/dist/node_modules/zod/v4/core/doc.js +0 -38
- package/dist/node_modules/zod/v4/core/doc.js.map +0 -1
- package/dist/node_modules/zod/v4/core/errors.js +0 -73
- package/dist/node_modules/zod/v4/core/errors.js.map +0 -1
- package/dist/node_modules/zod/v4/core/json-schema-processors.js +0 -359
- package/dist/node_modules/zod/v4/core/json-schema-processors.js.map +0 -1
- package/dist/node_modules/zod/v4/core/parse.js +0 -96
- package/dist/node_modules/zod/v4/core/parse.js.map +0 -1
- package/dist/node_modules/zod/v4/core/regexes.js +0 -84
- package/dist/node_modules/zod/v4/core/regexes.js.map +0 -1
- package/dist/node_modules/zod/v4/core/registries.js +0 -52
- package/dist/node_modules/zod/v4/core/registries.js.map +0 -1
- package/dist/node_modules/zod/v4/core/schemas.js +0 -1391
- package/dist/node_modules/zod/v4/core/schemas.js.map +0 -1
- package/dist/node_modules/zod/v4/core/to-json-schema.js +0 -363
- package/dist/node_modules/zod/v4/core/to-json-schema.js.map +0 -1
- package/dist/node_modules/zod/v4/core/util.js +0 -431
- package/dist/node_modules/zod/v4/core/util.js.map +0 -1
- package/dist/node_modules/zod/v4/core/versions.js +0 -9
- package/dist/node_modules/zod/v4/core/versions.js.map +0 -1
- package/dist/redux/baseQuery.d.ts +0 -1
- package/dist/redux/baseQuery.js +0 -24
- package/dist/redux/baseQuery.js.map +0 -1
- package/dist/services/eventApi.js +0 -411
- package/dist/services/eventApi.js.map +0 -1
- package/dist/services/helpers.js +0 -115
- package/dist/services/helpers.js.map +0 -1
- package/dist/services/initialize-firebase.d.ts +0 -2
- package/dist/services/initialize-firebase.js +0 -20
- package/dist/services/initialize-firebase.js.map +0 -1
- package/dist/services/process-image-on-server.js +0 -30
- package/dist/services/process-image-on-server.js.map +0 -1
- package/dist/services/remote-config.d.ts +0 -5
- package/dist/services/remote-config.js +0 -9
- package/dist/services/remote-config.js.map +0 -1
- package/dist/services/single-event-api.js +0 -301
- package/dist/services/single-event-api.js.map +0 -1
- package/dist/services/utils.js +0 -107
- package/dist/services/utils.js.map +0 -1
- package/dist/setupTests.d.ts +0 -1
- package/dist/stories/Alert.stories.d.ts +0 -10
- package/dist/stories/Button.stories.d.ts +0 -13
- package/dist/types/redux-types.d.ts +0 -15
- package/dist/types/types.d.ts +0 -60
- package/dist/types/types.js +0 -10
- package/dist/types/types.js.map +0 -1
- package/dist/utils/cn.d.ts +0 -6
- package/dist/utils/cn.js +0 -9
- package/dist/utils/cn.js.map +0 -1
- package/dist/utils/date-range.d.ts +0 -4
- package/dist/utils/date-range.js +0 -13
- package/dist/utils/date-range.js.map +0 -1
- package/dist/utils/single-event-helpers.d.ts +0 -50
- package/dist/utils/single-event-helpers.js +0 -18
- package/dist/utils/single-event-helpers.js.map +0 -1
- package/dist/utils/social-validation.js +0 -42
- package/dist/utils/social-validation.js.map +0 -1
- package/dist/utils/utils.js +0 -20
- package/dist/utils/utils.js.map +0 -1
- /package/dist/{components/Alert/Alert.d.ts → src/components/Alert/index.d.ts} +0 -0
- /package/dist/{components → src/components}/FormBuilder/CategoryList.d.ts +0 -0
- /package/dist/{components → src/components}/FormBuilder/OptionList.d.ts +0 -0
- /package/dist/{components → src/components}/FormBuilder/RequiredToggle.d.ts +0 -0
- /package/dist/{components → src/components}/FormBuilder/types.d.ts +0 -0
- /package/dist/{components → src/components}/FormBuilder/utils.d.ts +0 -0
- /package/dist/{components → src/components}/ImageCropModal/index.d.ts +0 -0
- /package/dist/{components → src/components}/InformationPopover.d.ts +0 -0
- /package/dist/{components/EventAddForm → src/components/NewAddEvent}/common/DescriptionModal.d.ts +0 -0
- /package/dist/{components/ui/FormInput.d.ts → src/components/NewAddEvent/components/AddEventFormInput.d.ts} +0 -0
- /package/dist/{components/EventAddForm → src/components/NewAddEvent}/components/CheckboxGroup.d.ts +0 -0
- /package/dist/{components/EventAddForm → src/components/NewAddEvent}/components/CustomMeetingForm.d.ts +0 -0
- /package/dist/{components/EventAddForm → src/components/NewAddEvent}/components/DateTimeField.d.ts +0 -0
- /package/dist/{components/EventAddForm → src/components/NewAddEvent}/components/FileUpload.d.ts +0 -0
- /package/dist/{components/EventAddForm → src/components/NewAddEvent}/components/FormBuilderProceedModal.d.ts +0 -0
- /package/dist/{components/EventAddForm → src/components/NewAddEvent}/components/GoogleMapsAutocompleteInput.d.ts +0 -0
- /package/dist/{components/EventAddForm → src/components/NewAddEvent}/components/SingleDateTimeInput.d.ts +0 -0
- /package/dist/{components/EventAddForm → src/components/NewAddEvent}/components/StepTwo/CustomFormSection.d.ts +0 -0
- /package/dist/{components/EventAddForm → src/components/NewAddEvent}/components/TicketTypeSelection.d.ts +0 -0
- /package/dist/{components/EventAddForm → src/components/NewAddEvent}/steps/StepOne.d.ts +0 -0
- /package/dist/{components/EventAddForm → src/components/NewAddEvent}/steps/StepTwo.d.ts +0 -0
- /package/dist/{components/EventAddForm → src/components/NewAddEvent}/types.d.ts +0 -0
- /package/dist/{components → src/components}/common/FallbackImage.d.ts +0 -0
- /package/dist/{components → src/components}/ui/Calendar/calendar-utils.d.ts +0 -0
- /package/dist/{components → src/components}/ui/Calendar/index.d.ts +0 -0
- /package/dist/{components/Checkbox → src/components/ui}/Checkbox.d.ts +0 -0
- /package/dist/{components/CustomSelect → src/components/ui}/CustomSelect.d.ts +0 -0
- /package/dist/{components → src/components}/ui/DatePicker/index.d.ts +0 -0
- /package/dist/{components/InputErrorMessage → src/components/ui}/InputErrorMessage.d.ts +0 -0
- /package/dist/{components → src/components}/ui/Modal/index.d.ts +0 -0
- /package/dist/{components/Radio → src/components/ui}/Radio.d.ts +0 -0
- /package/dist/{components → src/components}/ui/RichTextEditor.d.ts +0 -0
- /package/dist/{components → src/components}/ui/TimePicker/index.d.ts +0 -0
- /package/dist/{components → src/components}/ui/TimeSelector/index.d.ts +0 -0
- /package/dist/{components → src/components}/ui/Tooltip/index.d.ts +0 -0
- /package/dist/{lib → src/lib}/constants.d.ts +0 -0
- /package/dist/{lib → src/lib}/cropImage.d.ts +0 -0
- /package/dist/{lib → src/lib}/imageAnalysis.d.ts +0 -0
- /package/dist/{utils → src/lib}/social-validation.d.ts +0 -0
- /package/dist/{lib/utils.d.ts → src/lib/tailwind-merge.d.ts} +0 -0
- /package/dist/{utils → src/lib}/utils.d.ts +0 -0
- /package/dist/{services → src/redux/features/single-event}/helpers.d.ts +0 -0
- /package/dist/{services → src/services}/process-image-on-server.d.ts +0 -0
- /package/dist/{types → src/types}/events.d.ts +0 -0
- /package/dist/{types → src/types}/question.d.ts +0 -0
package/dist/types/types.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
var TicketTierAvailabilityType = /* @__PURE__ */ ((TicketTierAvailabilityType2) => {
|
|
2
|
-
TicketTierAvailabilityType2["GLOBAL"] = "GLOBAL";
|
|
3
|
-
TicketTierAvailabilityType2["INDIVIDUAL"] = "INDIVIDUAL";
|
|
4
|
-
TicketTierAvailabilityType2["CUSTOM"] = "CUSTOM";
|
|
5
|
-
return TicketTierAvailabilityType2;
|
|
6
|
-
})(TicketTierAvailabilityType || {});
|
|
7
|
-
export {
|
|
8
|
-
TicketTierAvailabilityType
|
|
9
|
-
};
|
|
10
|
-
//# sourceMappingURL=types.js.map
|
package/dist/types/types.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sources":["../../src/types/types.ts"],"sourcesContent":["export interface BankInfo {\r\n bankName: string;\r\n accountTitle: string;\r\n accountNumber: string;\r\n iban: string;\r\n}\r\n\r\nexport interface Event {\r\n event_end_timestamp: string;\r\n event_start_timestamp: string;\r\n id: string;\r\n image_url: string;\r\n name: string;\r\n organizer_name: string;\r\n organizer_id: string;\r\n form: boolean;\r\n status: \"APPROVED\" | \"DRAFT\" | \"CANCELLED\" | string;\r\n bank_info?: BankInfo;\r\n withholding_tax?: number;\r\n ticketly_cut?: number;\r\n gst_tax?: number;\r\n is_registration_open?: boolean;\r\n}\r\n\r\nexport interface Registration {\r\n form_data: {\r\n answer: string;\r\n question: string;\r\n question_type: string;\r\n }[],\r\n amount: number,\r\n id: string,\r\n status: \"PAID\" | \"UNPAID\" | \"CANCELLED\" | string,\r\n user_email: string,\r\n user_full_name: string\r\n created_at: string;\r\n}\r\n\r\nexport interface TicketTier {\r\n id: string;\r\n name: string;\r\n description: string;\r\n price: number;\r\n capacity: number;\r\n members: number;\r\n availability_type: TicketTierAvailabilityType;\r\n availability_schedule: string[];\r\n has_discount: boolean;\r\n discounted_price?: number;\r\n discount_valid_till?: string;\r\n}\r\n\r\nexport enum TicketTierAvailabilityType {\r\n GLOBAL = \"GLOBAL\",\r\n INDIVIDUAL = \"INDIVIDUAL\",\r\n CUSTOM = \"CUSTOM\",\r\n};\r\n\r\nexport type ApprovalStatus = \"PENDING\" | \"APPROVED\" | \"REJECTED\";\r\n\r\nexport type EventType = \"INTERNAL\" | \"INCLUSIVE\" | \"EXCLUSIVE\" | \"UN_LISTED\" | \"INVITE_ONLY\";\r\n\r\nexport interface TicketTierState extends Omit<Omit<TicketTier, \"availability_schedule\">, \"availability_type\"> {\r\n quantity: number;\r\n date: string;\r\n availability_type: TicketTierAvailabilityType;\r\n}\r\n"],"names":["TicketTierAvailabilityType"],"mappings":"AAoDO,IAAK,+CAAAA,gCAAL;AACHA,8BAAA,QAAA,IAAS;AACTA,8BAAA,YAAA,IAAa;AACbA,8BAAA,QAAA,IAAS;AAHD,SAAAA;AAAA,GAAA,8BAAA,CAAA,CAAA;"}
|
package/dist/utils/cn.d.ts
DELETED
package/dist/utils/cn.js
DELETED
package/dist/utils/cn.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cn.js","sources":["../../src/utils/cn.ts"],"sourcesContent":["import { clsx, type ClassValue } from 'clsx';\r\nimport { twMerge } from 'tailwind-merge';\r\n\r\n/**\r\n * Utility to merge tailwind classes with support for conditional classes and conflict resolution.\r\n */\r\nexport function cn(...inputs: ClassValue[]) {\r\n return twMerge(clsx(inputs));\r\n}\r\n"],"names":[],"mappings":";;AAMO,SAAS,MAAM,QAAsB;AAC1C,SAAO,QAAQ,KAAK,MAAM,CAAC;AAC7B;"}
|
package/dist/utils/date-range.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
function getDateRange(startDate, endDate) {
|
|
2
|
-
const dates = [];
|
|
3
|
-
let currentDate = new Date(startDate);
|
|
4
|
-
while (currentDate <= endDate) {
|
|
5
|
-
dates.push(new Date(currentDate));
|
|
6
|
-
currentDate.setDate(currentDate.getDate() + 1);
|
|
7
|
-
}
|
|
8
|
-
return dates;
|
|
9
|
-
}
|
|
10
|
-
export {
|
|
11
|
-
getDateRange
|
|
12
|
-
};
|
|
13
|
-
//# sourceMappingURL=date-range.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"date-range.js","sources":["../../src/utils/date-range.ts"],"sourcesContent":["import { TicketTier } from \"../types/types\";\r\n\r\n/**\r\n * Generates an array of Date objects between two given dates (inclusive).\r\n */\r\nexport function getDateRange(startDate: Date, endDate: Date) {\r\n const dates = [];\r\n let currentDate = new Date(startDate);\r\n\r\n while (currentDate <= endDate) {\r\n dates.push(new Date(currentDate));\r\n currentDate.setDate(currentDate.getDate() + 1);\r\n }\r\n\r\n return dates;\r\n}\r\n"],"names":[],"mappings":"AAKO,SAAS,aAAa,WAAiB,SAAe;AACzD,QAAM,QAAQ,CAAA;AACd,MAAI,cAAc,IAAI,KAAK,SAAS;AAEpC,SAAO,eAAe,SAAS;AAC3B,UAAM,KAAK,IAAI,KAAK,WAAW,CAAC;AAChC,gBAAY,QAAQ,YAAY,QAAA,IAAY,CAAC;AAAA,EACjD;AAEA,SAAO;AACX;"}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
export interface EventFormState {
|
|
2
|
-
name: string;
|
|
3
|
-
description: string;
|
|
4
|
-
venue: string;
|
|
5
|
-
venue_place_id: string;
|
|
6
|
-
image_url: string;
|
|
7
|
-
thumbnail_url: string;
|
|
8
|
-
event_start_timestamp: {
|
|
9
|
-
date: string;
|
|
10
|
-
time: string;
|
|
11
|
-
};
|
|
12
|
-
event_end_timestamp: {
|
|
13
|
-
date: string;
|
|
14
|
-
time: string;
|
|
15
|
-
};
|
|
16
|
-
event_type: string[];
|
|
17
|
-
event_categories: string[];
|
|
18
|
-
custom_category?: string;
|
|
19
|
-
location_data: {
|
|
20
|
-
type: string;
|
|
21
|
-
displayName: string;
|
|
22
|
-
address: string;
|
|
23
|
-
placeId: string;
|
|
24
|
-
};
|
|
25
|
-
location_type: string;
|
|
26
|
-
ticket_type: string;
|
|
27
|
-
ticket_tiers: Record<string, any>;
|
|
28
|
-
participation_type: string;
|
|
29
|
-
participants_type?: string;
|
|
30
|
-
individual_price?: number;
|
|
31
|
-
individual_capacity?: number;
|
|
32
|
-
team_price?: number;
|
|
33
|
-
team_capacity?: number;
|
|
34
|
-
min_members?: number;
|
|
35
|
-
max_members?: number;
|
|
36
|
-
per_member_fee?: number;
|
|
37
|
-
charge_per_delegate_fee: string;
|
|
38
|
-
charge_team_price: string;
|
|
39
|
-
event_id?: string;
|
|
40
|
-
event_form_schema: any;
|
|
41
|
-
}
|
|
42
|
-
export declare const splitDate: (isoString: string) => {
|
|
43
|
-
date: string;
|
|
44
|
-
time: string;
|
|
45
|
-
};
|
|
46
|
-
export declare const splitDateToLocal: (isoString: string) => {
|
|
47
|
-
date: string;
|
|
48
|
-
time: string;
|
|
49
|
-
};
|
|
50
|
-
export declare const transformApiDataToFormState: (apiData: any) => EventFormState | object;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
const splitDateToLocal = (isoString) => {
|
|
2
|
-
if (!isoString) return { date: "", time: "" };
|
|
3
|
-
const dateObj = new Date(isoString);
|
|
4
|
-
if (isNaN(dateObj.getTime())) return { date: "", time: "" };
|
|
5
|
-
const year = dateObj.getFullYear();
|
|
6
|
-
const month = String(dateObj.getMonth() + 1).padStart(2, "0");
|
|
7
|
-
const day = String(dateObj.getDate()).padStart(2, "0");
|
|
8
|
-
const hours = String(dateObj.getHours()).padStart(2, "0");
|
|
9
|
-
const minutes = String(dateObj.getMinutes()).padStart(2, "0");
|
|
10
|
-
return {
|
|
11
|
-
date: `${year}-${month}-${day}`,
|
|
12
|
-
time: `${hours}:${minutes}`
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
export {
|
|
16
|
-
splitDateToLocal
|
|
17
|
-
};
|
|
18
|
-
//# sourceMappingURL=single-event-helpers.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"single-event-helpers.js","sources":["../../src/utils/single-event-helpers.ts"],"sourcesContent":["\r\nexport interface EventFormState {\r\n name: string;\r\n description: string;\r\n venue: string;\r\n venue_place_id: string;\r\n image_url: string;\r\n thumbnail_url: string;\r\n event_start_timestamp: { date: string; time: string };\r\n event_end_timestamp: { date: string; time: string };\r\n event_type: string[];\r\n event_categories: string[];\r\n custom_category?: string;\r\n location_data: {\r\n type: string;\r\n displayName: string;\r\n address: string;\r\n placeId: string;\r\n };\r\n location_type: string;\r\n ticket_type: string;\r\n ticket_tiers: Record<string, any>;\r\n participation_type: string;\r\n participants_type?: string;\r\n individual_price?: number;\r\n individual_capacity?: number;\r\n team_price?: number;\r\n team_capacity?: number;\r\n min_members?: number;\r\n max_members?: number;\r\n per_member_fee?: number;\r\n charge_per_delegate_fee: string;\r\n charge_team_price: string;\r\n event_id?: string;\r\n event_form_schema: any;\r\n}\r\n\r\n// --- Helper: Transform API Data to Form State ---\r\n\r\nexport const splitDate = (isoString: string) => {\r\n if (!isoString) return { date: '', time: '' };\r\n const dateObj = new Date(isoString);\r\n // Ensure valid date\r\n if (isNaN(dateObj.getTime())) return { date: '', time: '' };\r\n\r\n const year = dateObj.getUTCFullYear();\r\n const month = String(dateObj.getUTCMonth() + 1).padStart(2, '0');\r\n const day = String(dateObj.getUTCDate()).padStart(2, '0');\r\n\r\n // Format to HH:MM\r\n const hours = String(dateObj.getUTCHours()).padStart(2, '0');\r\n const minutes = String(dateObj.getUTCMinutes()).padStart(2, '0');\r\n\r\n return {\r\n date: `${year}-${month}-${day}`,\r\n time: `${hours}:${minutes}`\r\n };\r\n};\r\n\r\nexport const splitDateToLocal = (isoString: string) => {\r\n if (!isoString) return { date: '', time: '' };\r\n const dateObj = new Date(isoString);\r\n // Ensure valid date\r\n if (isNaN(dateObj.getTime())) return { date: '', time: '' };\r\n\r\n const year = dateObj.getFullYear();\r\n const month = String(dateObj.getMonth() + 1).padStart(2, '0');\r\n const day = String(dateObj.getDate()).padStart(2, '0');\r\n\r\n // Format to HH:MM\r\n const hours = String(dateObj.getHours()).padStart(2, '0');\r\n const minutes = String(dateObj.getMinutes()).padStart(2, '0');\r\n\r\n return {\r\n date: `${year}-${month}-${day}`,\r\n time: `${hours}:${minutes}`\r\n };\r\n};\r\n\r\nexport const transformApiDataToFormState = (apiData: any): EventFormState | object => {\r\n if (!apiData) return {};\r\n\r\n // Transform Ticket Tiers array to Record Object\r\n const ticketTiersRecord: Record<string, any> = {};\r\n if (Array.isArray(apiData?.ticket_tiers)) {\r\n apiData?.ticket_tiers.forEach((tier: any) => {\r\n // Use existing ID or generate one if missing (fallback for safety)\r\n const id = tier.id || tier._id || Math.random().toString(36).substr(2, 9);\r\n\r\n // Format discount_valid_till to YYYY-MM-DD and HH:MM\r\n let discountDate = undefined;\r\n let discountTime = undefined;\r\n\r\n if (tier.discount_valid_till_time && tier.discount_valid_till_date) {\r\n discountDate = tier.discount_valid_till_date;\r\n discountTime = tier.discount_valid_till_time;\r\n } else if (tier.discount_valid_till) {\r\n const dateObj = splitDate(tier.discount_valid_till);\r\n\r\n discountDate = dateObj.date;\r\n discountTime = dateObj.time;\r\n }\r\n\r\n ticketTiersRecord[id] = {\r\n ...tier,\r\n has_discount: !!tier.discount_valid_till || (tier.discounted_price !== undefined && tier.discounted_price !== null && tier.discounted_price > 0),\r\n discount_valid_till_date: discountDate,\r\n discount_valid_till_time: discountTime,\r\n discounted_price: tier.discounted_price ?? tier.discount_price,\r\n };\r\n });\r\n }\r\n\r\n // Determine Ticket Type\r\n const ticketType = Object.values(apiData?.ticket_tiers)?.length === 0 ? 'CUSTOM_FORM' : 'TICKET_TIER';\r\n\r\n // Map Participation Type (Handle string numbers \"1\", \"2\", \"3\" if legacy API sends them)\r\n const participation_type = apiData?.participation_type || apiData?.participants_type;\r\n let participants_type;\r\n if (String(participation_type) === '1') participants_type = 'INDIVIDUAL';\r\n else if (String(participation_type) === '2') participants_type = 'TEAM';\r\n else if (String(participation_type) === '3') participants_type = 'BOTH';\r\n\r\n // let participants_type = 'BOTH'; // hard coded\r\n\r\n // Map Fees based on type\r\n // If it's a team event, registration_fee usually maps to the Team Price in the old API\r\n const isTeam = participation_type === '2' || participation_type === '3';\r\n const isIndividual = participation_type === '1';\r\n\r\n // question fields\r\n const existingFields = apiData?.event_form_schema?.fields || [];\r\n const mergedFields = existingFields;\r\n\r\n // event_categories\r\n const event_categories = Array.isArray(apiData?.categories)\r\n ? apiData?.categories.map((cat: { category_id: string, id?: string; name: string }) => {\r\n return cat?.category_id || cat?.id;\r\n })\r\n : [];\r\n\r\n return {\r\n name: apiData?.name || apiData?.event_name, // API sample uses 'name'\r\n description: apiData?.description,\r\n venue: apiData?.venue,\r\n venue_place_id: apiData?.venue_place_id,\r\n image_url: apiData?.image_url,\r\n thumbnail_url: apiData?.thumbnail_url,\r\n\r\n // Handle both standard keys and legacy keys if they differ\r\n event_start_timestamp: splitDate(apiData?.event_start_timestamp),\r\n event_end_timestamp: splitDate(apiData?.event_end_timestamp),\r\n registration_start_timestamp: splitDate(apiData?.registration_start_timestamp),\r\n registration_end_timestamp: splitDate(apiData?.registration_end_timestamp),\r\n\r\n\r\n event_type: Array.isArray(apiData?.event_types || apiData?.event_type) ? (apiData?.event_types || apiData?.event_type) : [(apiData?.event_types || apiData?.event_type)],\r\n institution_name: apiData?.institution_name || \"\",\r\n event_categories,\r\n custom_category: apiData?.custom_category || \"\",\r\n\r\n location_data: Object.keys(apiData?.location_data).length > 0 ? apiData?.location_data : {\r\n type: (apiData?.location_type || \"in-person\").toLowerCase() === \"physical\" ? \"in-person\" : (apiData?.location_type || \"in-person\").toLowerCase(),\r\n displayName: apiData?.venue,\r\n address: apiData?.venue,\r\n placeId: apiData?.venue_place_id,\r\n },\r\n location_type: (apiData?.location_type || \"in-person\").toLowerCase() === \"physical\" ? \"in-person\" : (apiData?.location_type || \"in-person\").toLowerCase(),\r\n\r\n // Step 2 Fields\r\n ticket_type: ticketType,\r\n\r\n // Ticket Tier specific\r\n ticket_tiers: ticketTiersRecord,\r\n\r\n // Custom Form specific\r\n participation_type,\r\n participants_type,\r\n\r\n // Individual\r\n individual_price: isIndividual ? apiData?.registration_fee : apiData?.individual_registration_fee,\r\n individual_capacity: isIndividual ? apiData?.capacity : apiData?.individual_capacity,\r\n\r\n // Team\r\n // If 'team_price' is explicitly in API use it, otherwise fallback to registration_fee if type is TEAM\r\n team_price: apiData?.team_price ?? (isTeam ? apiData?.registration_fee : undefined),\r\n team_capacity: isTeam ? (apiData?.team_capacity || apiData?.capacity) : undefined,\r\n\r\n min_members: apiData?.min_members,\r\n max_members: apiData?.max_members,\r\n\r\n // Handle plural 'fees' from legacy API sample\r\n per_member_fee: apiData?.individual_additional_fee ?? apiData?.individual_additional_fees,\r\n charge_per_delegate_fee: ((apiData?.individual_additional_fee || apiData?.individual_additional_fees) > 0) ? 'YES' : 'NO',\r\n charge_team_price: ((apiData?.registration_fee || apiData?.registration_fees) > 0) ? 'YES' : 'NO',\r\n\r\n // Pass through ID for updates\r\n event_id: apiData?.id,\r\n\r\n // Social Profiles\r\n social_profiles: apiData?.social_profiles,\r\n\r\n // Pass through event_form_schema for Step 3 with injected dummy questions\r\n event_form_schema: {\r\n ...apiData?.event_form_schema,\r\n fields: mergedFields\r\n },\r\n discount_file_path: apiData?.discount_file_path,\r\n individual_discount_file_path: apiData?.individual_discount_file_path,\r\n };\r\n};\r\n"],"names":[],"mappings":"AA2DO,MAAM,mBAAmB,CAAC,cAAsB;AACnD,MAAI,CAAC,UAAW,QAAO,EAAE,MAAM,IAAI,MAAM,GAAA;AACzC,QAAM,UAAU,IAAI,KAAK,SAAS;AAElC,MAAI,MAAM,QAAQ,SAAS,UAAU,EAAE,MAAM,IAAI,MAAM,GAAA;AAEvD,QAAM,OAAO,QAAQ,YAAA;AACrB,QAAM,QAAQ,OAAO,QAAQ,SAAA,IAAa,CAAC,EAAE,SAAS,GAAG,GAAG;AAC5D,QAAM,MAAM,OAAO,QAAQ,QAAA,CAAS,EAAE,SAAS,GAAG,GAAG;AAGrD,QAAM,QAAQ,OAAO,QAAQ,SAAA,CAAU,EAAE,SAAS,GAAG,GAAG;AACxD,QAAM,UAAU,OAAO,QAAQ,WAAA,CAAY,EAAE,SAAS,GAAG,GAAG;AAE5D,SAAO;AAAA,IACH,MAAM,GAAG,IAAI,IAAI,KAAK,IAAI,GAAG;AAAA,IAC7B,MAAM,GAAG,KAAK,IAAI,OAAO;AAAA,EAAA;AAEjC;"}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
const SOCIAL_PLATFORMS = {
|
|
2
|
-
FACEBOOK: "facebook",
|
|
3
|
-
INSTAGRAM: "instagram",
|
|
4
|
-
TWITTER: "twitter",
|
|
5
|
-
LINKEDIN: "linkedin",
|
|
6
|
-
WEBSITE: "website"
|
|
7
|
-
};
|
|
8
|
-
const PATTERNS = {
|
|
9
|
-
[SOCIAL_PLATFORMS.FACEBOOK]: /^(https?:\/\/)?(www\.)?facebook\.com\/.+/i,
|
|
10
|
-
[SOCIAL_PLATFORMS.INSTAGRAM]: /^(https?:\/\/)?(www\.)?instagram\.com\/.+/i,
|
|
11
|
-
[SOCIAL_PLATFORMS.TWITTER]: /^(https?:\/\/)?(www\.)?(twitter\.com|x\.com)\/.+/i,
|
|
12
|
-
[SOCIAL_PLATFORMS.LINKEDIN]: /^(https?:\/\/)?(www\.)?linkedin\.com\/.+/i,
|
|
13
|
-
[SOCIAL_PLATFORMS.WEBSITE]: /^(https?:\/\/)?([\da-z.-]+)\.([a-z.]{2,6})([/\w .-]*)*\/?$/i
|
|
14
|
-
};
|
|
15
|
-
const validateSocialUrl = (platform, url) => {
|
|
16
|
-
if (!url) return true;
|
|
17
|
-
const pattern = PATTERNS[platform];
|
|
18
|
-
if (!pattern) return true;
|
|
19
|
-
return pattern.test(url);
|
|
20
|
-
};
|
|
21
|
-
const getPlatformErrorMessage = (platform) => {
|
|
22
|
-
switch (platform) {
|
|
23
|
-
case SOCIAL_PLATFORMS.FACEBOOK:
|
|
24
|
-
return "Please enter a valid Facebook URL";
|
|
25
|
-
case SOCIAL_PLATFORMS.INSTAGRAM:
|
|
26
|
-
return "Please enter a valid Instagram URL";
|
|
27
|
-
case SOCIAL_PLATFORMS.TWITTER:
|
|
28
|
-
return "Please enter a valid X (Twitter) URL";
|
|
29
|
-
case SOCIAL_PLATFORMS.LINKEDIN:
|
|
30
|
-
return "Please enter a valid LinkedIn URL";
|
|
31
|
-
case SOCIAL_PLATFORMS.WEBSITE:
|
|
32
|
-
return "Please enter a valid Website URL";
|
|
33
|
-
default:
|
|
34
|
-
return "Please enter a valid URL";
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
export {
|
|
38
|
-
SOCIAL_PLATFORMS,
|
|
39
|
-
getPlatformErrorMessage,
|
|
40
|
-
validateSocialUrl
|
|
41
|
-
};
|
|
42
|
-
//# sourceMappingURL=social-validation.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"social-validation.js","sources":["../../src/utils/social-validation.ts"],"sourcesContent":["export const SOCIAL_PLATFORMS = {\r\n FACEBOOK: 'facebook',\r\n INSTAGRAM: 'instagram',\r\n TWITTER: 'twitter',\r\n LINKEDIN: 'linkedin',\r\n WEBSITE: 'website'\r\n} as const;\r\n\r\nexport type SocialPlatform = typeof SOCIAL_PLATFORMS[keyof typeof SOCIAL_PLATFORMS];\r\n\r\nconst PATTERNS: Record<SocialPlatform, RegExp> = {\r\n [SOCIAL_PLATFORMS.FACEBOOK]: /^(https?:\\/\\/)?(www\\.)?facebook\\.com\\/.+/i,\r\n [SOCIAL_PLATFORMS.INSTAGRAM]: /^(https?:\\/\\/)?(www\\.)?instagram\\.com\\/.+/i,\r\n [SOCIAL_PLATFORMS.TWITTER]: /^(https?:\\/\\/)?(www\\.)?(twitter\\.com|x\\.com)\\/.+/i,\r\n [SOCIAL_PLATFORMS.LINKEDIN]: /^(https?:\\/\\/)?(www\\.)?linkedin\\.com\\/.+/i,\r\n [SOCIAL_PLATFORMS.WEBSITE]: /^(https?:\\/\\/)?([\\da-z.-]+)\\.([a-z.]{2,6})([/\\w .-]*)*\\/?$/i\r\n};\r\n\r\nexport const validateSocialUrl = (platform: SocialPlatform, url: string): boolean => {\r\n if (!url) return true;\r\n const pattern = PATTERNS[platform];\r\n if (!pattern) return true;\r\n return pattern.test(url);\r\n};\r\n\r\nexport const getPlatformErrorMessage = (platform: SocialPlatform): string => {\r\n switch (platform) {\r\n case SOCIAL_PLATFORMS.FACEBOOK:\r\n return \"Please enter a valid Facebook URL\";\r\n case SOCIAL_PLATFORMS.INSTAGRAM:\r\n return \"Please enter a valid Instagram URL\";\r\n case SOCIAL_PLATFORMS.TWITTER:\r\n return \"Please enter a valid X (Twitter) URL\";\r\n case SOCIAL_PLATFORMS.LINKEDIN:\r\n return \"Please enter a valid LinkedIn URL\";\r\n case SOCIAL_PLATFORMS.WEBSITE:\r\n return \"Please enter a valid Website URL\";\r\n default:\r\n return \"Please enter a valid URL\";\r\n }\r\n};\r\n"],"names":[],"mappings":"AAAO,MAAM,mBAAmB;AAAA,EAC5B,UAAU;AAAA,EACV,WAAW;AAAA,EACX,SAAS;AAAA,EACT,UAAU;AAAA,EACV,SAAS;AACb;AAIA,MAAM,WAA2C;AAAA,EAC7C,CAAC,iBAAiB,QAAQ,GAAG;AAAA,EAC7B,CAAC,iBAAiB,SAAS,GAAG;AAAA,EAC9B,CAAC,iBAAiB,OAAO,GAAG;AAAA,EAC5B,CAAC,iBAAiB,QAAQ,GAAG;AAAA,EAC7B,CAAC,iBAAiB,OAAO,GAAG;AAChC;AAEO,MAAM,oBAAoB,CAAC,UAA0B,QAAyB;AACjF,MAAI,CAAC,IAAK,QAAO;AACjB,QAAM,UAAU,SAAS,QAAQ;AACjC,MAAI,CAAC,QAAS,QAAO;AACrB,SAAO,QAAQ,KAAK,GAAG;AAC3B;AAEO,MAAM,0BAA0B,CAAC,aAAqC;AACzE,UAAQ,UAAA;AAAA,IACJ,KAAK,iBAAiB;AAClB,aAAO;AAAA,IACX,KAAK,iBAAiB;AAClB,aAAO;AAAA,IACX,KAAK,iBAAiB;AAClB,aAAO;AAAA,IACX,KAAK,iBAAiB;AAClB,aAAO;AAAA,IACX,KAAK,iBAAiB;AAClB,aAAO;AAAA,IACX;AACI,aAAO;AAAA,EAAA;AAEnB;"}
|
package/dist/utils/utils.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { clsx } from "clsx";
|
|
2
|
-
import { twMerge } from "tailwind-merge";
|
|
3
|
-
import moment from "moment";
|
|
4
|
-
function cn(...inputs) {
|
|
5
|
-
return twMerge(clsx(inputs));
|
|
6
|
-
}
|
|
7
|
-
function convertDateFormat(inputDate) {
|
|
8
|
-
if (inputDate.includes("GMT")) {
|
|
9
|
-
inputDate = inputDate.split("GMT")[0].trim();
|
|
10
|
-
}
|
|
11
|
-
let formatted_date = moment(inputDate).format("YYYY-MM-DD HH:mm:ss.SSS");
|
|
12
|
-
return formatted_date;
|
|
13
|
-
}
|
|
14
|
-
new TextEncoder();
|
|
15
|
-
new TextDecoder();
|
|
16
|
-
export {
|
|
17
|
-
cn,
|
|
18
|
-
convertDateFormat
|
|
19
|
-
};
|
|
20
|
-
//# sourceMappingURL=utils.js.map
|
package/dist/utils/utils.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sources":["../../src/utils/utils.ts"],"sourcesContent":["import { BASE_URL } from \"../services/remote-config\";\r\nimport { type ClassValue, clsx } from \"clsx\";\r\nimport { twMerge } from \"tailwind-merge\";\r\nimport moment from \"moment\";\r\n\r\nexport enum TicketTierAvailabilityType {\r\n GLOBAL = \"GLOBAL\",\r\n INDIVIDUAL = \"INDIVIDUAL\",\r\n CUSTOM = \"CUSTOM\",\r\n};\r\n\r\nexport interface TicketTier {\r\n id: string;\r\n name: string;\r\n description: string;\r\n price: number;\r\n capacity: number;\r\n members: number;\r\n availability_type: TicketTierAvailabilityType;\r\n availability_schedule: string[];\r\n has_discount: boolean;\r\n discounted_price?: number;\r\n discount_valid_till?: string;\r\n}\r\n\r\nexport interface TicketTierState extends Omit<Omit<TicketTier, \"availability_schedule\">, \"availability_type\"> {\r\n quantity: number;\r\n date: string;\r\n availability_type: TicketTierAvailabilityType;\r\n}\r\n\r\nexport function cn(...inputs: ClassValue[]) {\r\n return twMerge(clsx(inputs));\r\n}\r\n\r\nexport function formatDateForApi(date: Date | null): string | undefined {\r\n if (!date) return undefined;\r\n // Use local time to avoid UTC shifting issues\r\n const year = date.getFullYear();\r\n const month = String(date.getMonth() + 1).padStart(2, '0');\r\n const day = String(date.getDate()).padStart(2, '0');\r\n return `${year}-${month}-${day}`;\r\n}\r\n\r\nexport function isSameDay(d1: Date | null, d2: Date | null): boolean {\r\n if (!d1 || !d2) return d1 === d2;\r\n return d1.getDate() === d2.getDate() &&\r\n d1.getMonth() === d2.getMonth() &&\r\n d1.getFullYear() === d2.getFullYear();\r\n}\r\n\r\nexport function isDefaultDateRange(\r\n range: { start: Date | null; end: Date | null },\r\n defaultStart?: Date,\r\n defaultEnd?: Date\r\n): boolean {\r\n const targetStart = defaultStart || new Date(new Date().setDate(new Date().getDate() - 1));\r\n const targetEnd = defaultEnd || new Date();\r\n return isSameDay(range.start, targetStart) && isSameDay(range.end, targetEnd);\r\n}\r\n\r\n\r\nexport const toDate = (value?: string | Date) => {\r\n if (!value) return null;\r\n return value instanceof Date ? value : new Date(value);\r\n};\r\n\r\nexport const formatDate = (value?: string | Date) => {\r\n const date = toDate(value);\r\n return date ? date.toLocaleDateString() : \"—\";\r\n};\r\n\r\nexport const formatDateTime = (value?: string | Date) => {\r\n const date = toDate(value);\r\n if (!date) return \"—\";\r\n const adjustedDate = new Date(date.getTime() - 5 * 60 * 60 * 1000);\r\n return `${adjustedDate.toLocaleDateString()} ${adjustedDate.toLocaleTimeString([], { hour: \"2-digit\", minute: \"2-digit\" })}`;\r\n};\r\n\r\n\r\nexport const extractDateAndTime = (timestamp: string) => {\r\n const date = new Date(timestamp);\r\n\r\n const yyyy = date.getUTCFullYear();\r\n const mm = String(date.getUTCMonth() + 1).padStart(2, '0');\r\n const dd = String(date.getUTCDate()).padStart(2, '0');\r\n const hh = String(date.getUTCHours()).padStart(2, '0');\r\n const min = String(date.getUTCMinutes()).padStart(2, '0');\r\n\r\n return {\r\n date: `${yyyy}-${mm}-${dd}`,\r\n time: `${hh}:${min}`,\r\n };\r\n}\r\n\r\nexport function convertDateFormat(inputDate: string): string {\r\n // if input date contain GMT, remove it\r\n if (inputDate.includes('GMT')) {\r\n inputDate = inputDate.split('GMT')[0].trim();\r\n }\r\n let formatted_date = moment(inputDate).format('YYYY-MM-DD HH:mm:ss.SSS');\r\n return formatted_date\r\n}\r\n\r\nexport function getDateRange(startDate: Date, endDate: Date) {\r\n const dates = [];\r\n let currentDate = new Date(startDate);\r\n\r\n while (currentDate <= endDate) {\r\n dates.push(new Date(currentDate));\r\n currentDate.setDate(currentDate.getDate() + 1);\r\n }\r\n\r\n return dates;\r\n}\r\n\r\n\r\nexport function getCurrentTierAndMember(tiers: TicketTierState[], currentStep: number) {\r\n let cumulativeSteps = 0;\r\n\r\n for (let i = 0; i < tiers.length; i++) {\r\n const tier = tiers[i];\r\n\r\n // Iterate through each quantity (group) of this tier\r\n for (let q = 0; q < tier.quantity; q++) {\r\n const groupStart = cumulativeSteps + 1;\r\n const groupEnd = cumulativeSteps + tier.members;\r\n\r\n // Check if currentStep falls within this specific group\r\n if (currentStep >= groupStart && currentStep <= groupEnd) {\r\n return {\r\n tier: tier,\r\n memberInGroup: currentStep - cumulativeSteps, // Position within this group (1-indexed)\r\n };\r\n }\r\n\r\n cumulativeSteps += tier.members;\r\n }\r\n }\r\n\r\n return null;\r\n}\r\n\r\n// create and edit event mutation wrapper\r\nconst TEXT_ENCODER = new TextEncoder();\r\nconst TEXT_DECODER = new TextDecoder();\r\n\r\nasync function getKey(key: BufferSource): Promise<CryptoKey> {\r\n return crypto.subtle.importKey(\r\n \"raw\",\r\n key,\r\n { name: \"AES-CBC\" },\r\n false,\r\n [\"encrypt\", \"decrypt\"]\r\n );\r\n}\r\n\r\nfunction bufferToHex(buffer: ArrayBuffer): string {\r\n return Array.from(new Uint8Array(buffer))\r\n .map((byte) => byte.toString(16).padStart(2, \"0\"))\r\n .join(\"\");\r\n}\r\n\r\nfunction hexToBuffer(hex: string): Uint8Array {\r\n return new Uint8Array(\r\n hex?.match(/.{1,2}/g)!.map((byte) => parseInt(byte, 16))\r\n );\r\n}\r\n\r\nexport async function encrypt(text: string, hexKey: string): Promise<string> {\r\n const key = await getKey(hexToBuffer(hexKey as any) as any);\r\n const iv = crypto.getRandomValues(new Uint8Array(16));\r\n\r\n const encrypted = await crypto.subtle.encrypt(\r\n { name: \"AES-CBC\", iv },\r\n key,\r\n TEXT_ENCODER.encode(text)\r\n );\r\n\r\n return bufferToHex(encrypted) + bufferToHex(iv as any); // Concatenate Encrypted Data + IV\r\n}\r\n\r\nexport async function decrypt(encryptedText: string, hexKey: string): Promise<string> {\r\n const key = await getKey(hexToBuffer(hexKey as any) as any);\r\n\r\n const iv = hexToBuffer(encryptedText.slice(-32)) as any; // Extract IV\r\n const encrypted = hexToBuffer(encryptedText.slice(0, -32)) as any; // Extract Encrypted Data\r\n\r\n const decrypted = await crypto.subtle.decrypt(\r\n { name: \"AES-CBC\", iv },\r\n key,\r\n encrypted\r\n );\r\n\r\n return TEXT_DECODER.decode(decrypted);\r\n}\r\n\r\nexport async function fetchWrapper(\r\n url: string,\r\n options?: any,\r\n headerKey: string = process.env.HEADER_KEY as string,\r\n bodyKey: string = process.env.BODY_KEY as string\r\n) {\r\n const headers = {\r\n \"Content-Type\": \"application/json\", // ✅ REQUIRED\r\n ...(options?.headers || {}),\r\n };\r\n\r\n const modifiedOptions = {\r\n ...options,\r\n body: options?.body ? options.body : undefined,\r\n headers,\r\n };\r\n\r\n console.log(\"formData 6.5 ${BASE_URL}${url}: \", BASE_URL, url);\r\n const response = await fetch(`${BASE_URL}${url}`, modifiedOptions);\r\n // console.log(\"formData 7: \", response);\r\n const responseData = await response.text();\r\n // console.log(\"formData 8: \", responseData);\r\n const data = JSON?.parse(await responseData);\r\n // console.log(\"formData 9: \", data);\r\n\r\n if (!response.ok) {\r\n return { error: { data, status: response.status } };\r\n }\r\n\r\n return { status: response.status, data };\r\n}\r\n"],"names":[],"mappings":";;;AA+BO,SAAS,MAAM,QAAsB;AACxC,SAAO,QAAQ,KAAK,MAAM,CAAC;AAC/B;AA8DO,SAAS,kBAAkB,WAA2B;AAEzD,MAAI,UAAU,SAAS,KAAK,GAAG;AAC3B,gBAAY,UAAU,MAAM,KAAK,EAAE,CAAC,EAAE,KAAA;AAAA,EAC1C;AACA,MAAI,iBAAiB,OAAO,SAAS,EAAE,OAAO,yBAAyB;AACvE,SAAO;AACX;AA0CqB,IAAI,YAAA;AACJ,IAAI,YAAA;"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/{components/EventAddForm → src/components/NewAddEvent}/common/DescriptionModal.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
/package/dist/{components/EventAddForm → src/components/NewAddEvent}/components/CheckboxGroup.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
/package/dist/{components/EventAddForm → src/components/NewAddEvent}/components/DateTimeField.d.ts
RENAMED
|
File without changes
|
/package/dist/{components/EventAddForm → src/components/NewAddEvent}/components/FileUpload.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|