@123usmanhaider321/ui 0.1.0 → 0.1.8
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/_virtual/duration.js +5 -0
- package/dist/_virtual/duration.js.map +1 -0
- package/dist/_virtual/index.js +2 -2
- package/dist/_virtual/isBetween.js +5 -0
- package/dist/_virtual/isBetween.js.map +1 -0
- package/dist/_virtual/relativeTime.js +5 -0
- package/dist/_virtual/relativeTime.js.map +1 -0
- package/dist/_virtual/use-sync-external-store-shim.development.js +5 -0
- package/dist/_virtual/use-sync-external-store-shim.development.js.map +1 -0
- package/dist/_virtual/use-sync-external-store-shim.production.js +5 -0
- package/dist/_virtual/use-sync-external-store-shim.production.js.map +1 -0
- package/dist/_virtual/with-selector.development.js +5 -0
- package/dist/_virtual/with-selector.development.js.map +1 -0
- package/dist/_virtual/with-selector.production.js +5 -0
- package/dist/_virtual/with-selector.production.js.map +1 -0
- package/dist/components/Alert/Alert.d.ts +2 -2
- package/dist/components/Alert/Alert.js +18 -21
- package/dist/components/Alert/Alert.js.map +1 -1
- package/dist/components/Button/Button.js +14 -14
- package/dist/components/Button/Button.js.map +1 -1
- package/dist/components/Checkbox/Checkbox.js +12 -12
- package/dist/components/Checkbox/Checkbox.js.map +1 -1
- package/dist/components/CheckboxGroup/CheckboxGroup.js +22 -22
- package/dist/components/CheckboxGroup/CheckboxGroup.js.map +1 -1
- package/dist/components/ConfirmationModal/ConfirmationModal.js +37 -39
- package/dist/components/ConfirmationModal/ConfirmationModal.js.map +1 -1
- package/dist/components/CustomSelect/CustomSelect.js +35 -37
- package/dist/components/CustomSelect/CustomSelect.js.map +1 -1
- package/dist/components/EventAddForm/AddEventLayout.d.ts +58 -0
- package/dist/components/EventAddForm/AddEventLayout.js +227 -0
- package/dist/components/EventAddForm/AddEventLayout.js.map +1 -0
- package/dist/components/EventAddForm/AddEventStepper.d.ts +15 -0
- package/dist/components/EventAddForm/AddEventStepper.js +719 -0
- package/dist/components/EventAddForm/AddEventStepper.js.map +1 -0
- package/dist/components/EventAddForm/common/ConfirmationModal.d.ts +14 -0
- package/dist/components/EventAddForm/common/ConfirmationModal.js +136 -0
- package/dist/components/EventAddForm/common/ConfirmationModal.js.map +1 -0
- package/dist/components/EventAddForm/common/DescriptionModal.d.ts +8 -0
- package/dist/components/EventAddForm/common/DescriptionModal.js +70 -0
- package/dist/components/EventAddForm/common/DescriptionModal.js.map +1 -0
- package/dist/components/EventAddForm/components/AnimatedBackground.d.ts +8 -0
- package/dist/components/EventAddForm/components/ApprovalConfirmationModal.d.ts +7 -0
- package/dist/components/EventAddForm/components/CheckboxGroup.d.ts +23 -0
- package/dist/components/EventAddForm/components/CheckboxGroup.js +92 -0
- package/dist/components/EventAddForm/components/CheckboxGroup.js.map +1 -0
- package/dist/components/EventAddForm/components/CustomMeetingForm.d.ts +18 -0
- package/dist/components/EventAddForm/components/CustomMeetingForm.js +237 -0
- package/dist/components/EventAddForm/components/CustomMeetingForm.js.map +1 -0
- package/dist/components/EventAddForm/components/DateTimeField.d.ts +23 -0
- package/dist/components/EventAddForm/components/DateTimeField.js +173 -0
- package/dist/components/EventAddForm/components/DateTimeField.js.map +1 -0
- package/dist/components/EventAddForm/components/EventSubmissionConfirmationModal.d.ts +33 -0
- package/dist/components/EventAddForm/components/EventSubmissionConfirmationModal.js +366 -0
- package/dist/components/EventAddForm/components/EventSubmissionConfirmationModal.js.map +1 -0
- package/dist/components/EventAddForm/components/FileUpload.d.ts +14 -0
- package/dist/components/EventAddForm/components/FileUpload.js +412 -0
- package/dist/components/EventAddForm/components/FileUpload.js.map +1 -0
- package/dist/components/EventAddForm/components/FormBuilderProceedModal.d.ts +10 -0
- package/dist/components/EventAddForm/components/FormBuilderProceedModal.js +197 -0
- package/dist/components/EventAddForm/components/FormBuilderProceedModal.js.map +1 -0
- package/dist/components/EventAddForm/components/GoogleMapsAutocompleteInput.d.ts +38 -0
- package/dist/components/EventAddForm/components/GoogleMapsAutocompleteInput.js +1179 -0
- package/dist/components/EventAddForm/components/GoogleMapsAutocompleteInput.js.map +1 -0
- package/dist/components/EventAddForm/components/InputField.d.ts +15 -0
- package/dist/components/EventAddForm/components/RadioGroupButton.d.ts +14 -0
- package/dist/components/EventAddForm/components/SelectField.d.ts +19 -0
- package/dist/components/EventAddForm/components/SingleDateTimeInput.d.ts +27 -0
- package/dist/components/EventAddForm/components/SingleDateTimeInput.js +102 -0
- package/dist/components/EventAddForm/components/SingleDateTimeInput.js.map +1 -0
- package/dist/components/EventAddForm/components/StepTwo/CustomFormSection.d.ts +10 -0
- package/dist/components/EventAddForm/components/StepTwo/CustomFormSection.js +277 -0
- package/dist/components/EventAddForm/components/StepTwo/CustomFormSection.js.map +1 -0
- package/dist/components/EventAddForm/components/StepTwo/TicketTierSection.d.ts +37 -0
- package/dist/components/EventAddForm/components/StepTwo/TicketTierSection.js +148 -0
- package/dist/components/EventAddForm/components/StepTwo/TicketTierSection.js.map +1 -0
- package/dist/components/EventAddForm/components/TicketTierForm.d.ts +29 -0
- package/dist/components/EventAddForm/components/TicketTierForm.js +418 -0
- package/dist/components/EventAddForm/components/TicketTierForm.js.map +1 -0
- package/dist/components/EventAddForm/components/TicketTypeSelection.d.ts +7 -0
- package/dist/components/EventAddForm/components/TicketTypeSelection.js +93 -0
- package/dist/components/EventAddForm/components/TicketTypeSelection.js.map +1 -0
- package/dist/components/EventAddForm/hooks/useStepperForm.d.ts +81 -0
- package/dist/components/EventAddForm/hooks/useStepperForm.js +371 -0
- package/dist/components/EventAddForm/hooks/useStepperForm.js.map +1 -0
- package/dist/components/EventAddForm/hooks/useTicketTierForm.d.ts +87 -0
- package/dist/components/EventAddForm/hooks/useTicketTierForm.js +237 -0
- package/dist/components/EventAddForm/hooks/useTicketTierForm.js.map +1 -0
- package/dist/components/EventAddForm/index.d.ts +3 -0
- package/dist/components/EventAddForm/index.js +41 -0
- package/dist/components/EventAddForm/index.js.map +1 -0
- package/dist/components/EventAddForm/schemas/index.d.ts +2 -0
- package/dist/components/EventAddForm/schemas/step1.js +135 -0
- package/dist/components/EventAddForm/schemas/step1.js.map +1 -0
- package/dist/components/EventAddForm/schemas/step2.d.ts +138 -0
- package/dist/components/EventAddForm/schemas/step2.js +94 -0
- package/dist/components/EventAddForm/schemas/step2.js.map +1 -0
- package/dist/components/EventAddForm/schemas/utils.js.map +1 -0
- package/dist/components/EventAddForm/steps/IndividualFormStep.d.ts +26 -0
- package/dist/components/EventAddForm/steps/IndividualFormStep.js +85 -0
- package/dist/components/EventAddForm/steps/IndividualFormStep.js.map +1 -0
- package/dist/components/EventAddForm/steps/SocialProfilesStep.d.ts +18 -0
- package/dist/components/EventAddForm/steps/SocialProfilesStep.js +123 -0
- package/dist/components/EventAddForm/steps/SocialProfilesStep.js.map +1 -0
- package/dist/components/EventAddForm/steps/StepOne.d.ts +18 -0
- package/dist/components/EventAddForm/steps/StepOne.js +462 -0
- package/dist/components/EventAddForm/steps/StepOne.js.map +1 -0
- package/dist/components/EventAddForm/steps/StepTwo.d.ts +17 -0
- package/dist/components/EventAddForm/steps/StepTwo.js +173 -0
- package/dist/components/EventAddForm/steps/StepTwo.js.map +1 -0
- package/dist/components/EventAddForm/steps/TeamFormStep.d.ts +19 -0
- package/dist/components/EventAddForm/steps/TeamFormStep.js +13 -0
- package/dist/components/EventAddForm/steps/TeamFormStep.js.map +1 -0
- package/dist/components/FormBuilder/CategoryList.js +26 -26
- package/dist/components/FormBuilder/CategoryList.js.map +1 -1
- package/dist/components/FormBuilder/DiscountInput.js +38 -39
- package/dist/components/FormBuilder/DiscountInput.js.map +1 -1
- package/dist/components/FormBuilder/FormBuilder.js +71 -74
- package/dist/components/FormBuilder/FormBuilder.js.map +1 -1
- package/dist/components/FormBuilder/OptionList.js +19 -19
- package/dist/components/FormBuilder/OptionList.js.map +1 -1
- package/dist/components/FormBuilder/PaymentPreview.js +19 -19
- package/dist/components/FormBuilder/PaymentPreview.js.map +1 -1
- package/dist/components/FormBuilder/PreviewInput.js +18 -29
- package/dist/components/FormBuilder/PreviewInput.js.map +1 -1
- package/dist/components/FormBuilder/QuestionCard.js +66 -67
- package/dist/components/FormBuilder/QuestionCard.js.map +1 -1
- package/dist/components/FormBuilder/QuestionEditor.js +16 -16
- package/dist/components/FormBuilder/QuestionEditor.js.map +1 -1
- package/dist/components/FormBuilder/RequiredToggle.js +14 -14
- package/dist/components/FormBuilder/RequiredToggle.js.map +1 -1
- package/dist/components/FormBuilder/SortableQuestionList.js +4 -4
- package/dist/components/FormBuilder/SortableQuestionList.js.map +1 -1
- package/dist/components/FormBuilder/utils.js.map +1 -1
- package/dist/components/FormInput/FormInput.js +28 -28
- package/dist/components/FormInput/FormInput.js.map +1 -1
- package/dist/components/ImageCropModal/index.d.ts +14 -0
- package/dist/components/ImageCropModal/index.js +464 -0
- package/dist/components/ImageCropModal/index.js.map +1 -0
- package/dist/components/InformationPopover/InformationPopover.js +4 -4
- package/dist/components/InformationPopover/InformationPopover.js.map +1 -1
- package/dist/components/InformationPopover.d.ts +7 -0
- package/dist/components/InformationPopover.js +19 -0
- package/dist/components/InformationPopover.js.map +1 -0
- package/dist/components/InputErrorMessage/InputErrorMessage.js +5 -6
- package/dist/components/InputErrorMessage/InputErrorMessage.js.map +1 -1
- package/dist/components/Modal/Modal.js +24 -25
- package/dist/components/Modal/Modal.js.map +1 -1
- package/dist/components/Radio/Radio.js +9 -9
- package/dist/components/Radio/Radio.js.map +1 -1
- package/dist/components/Spinner/spinner.d.ts +2 -0
- package/dist/components/Spinner/spinner.js +22 -0
- package/dist/components/Spinner/spinner.js.map +1 -0
- package/dist/components/Tooltip/Tooltip.js +13 -14
- package/dist/components/Tooltip/Tooltip.js.map +1 -1
- package/dist/components/common/FallbackImage.d.ts +9 -0
- package/dist/components/common/FallbackImage.js +47 -0
- package/dist/components/common/FallbackImage.js.map +1 -0
- package/dist/components/ui/Calendar/calendar-utils.d.ts +3 -0
- package/dist/components/ui/Calendar/calendar-utils.js +51 -0
- package/dist/components/ui/Calendar/calendar-utils.js.map +1 -0
- package/dist/components/ui/Calendar/index.d.ts +14 -0
- package/dist/components/ui/Calendar/index.js +142 -0
- package/dist/components/ui/Calendar/index.js.map +1 -0
- package/dist/components/ui/Checkbox.d.ts +9 -0
- package/dist/components/ui/Checkbox.js +50 -0
- package/dist/components/ui/Checkbox.js.map +1 -0
- package/dist/components/ui/DatePicker/index.d.ts +15 -0
- package/dist/components/ui/DatePicker/index.js +188 -0
- package/dist/components/ui/DatePicker/index.js.map +1 -0
- package/dist/components/ui/FormInput.d.ts +28 -0
- package/dist/components/ui/FormInput.js +129 -0
- package/dist/components/ui/FormInput.js.map +1 -0
- package/dist/components/ui/InputErrorMessage.d.ts +7 -0
- package/dist/components/ui/InputErrorMessage.js +21 -0
- package/dist/components/ui/InputErrorMessage.js.map +1 -0
- package/dist/components/ui/Modal/index.d.ts +14 -0
- package/dist/components/ui/Modal/index.js +73 -0
- package/dist/components/ui/Modal/index.js.map +1 -0
- package/dist/components/ui/Radio.d.ts +6 -0
- package/dist/components/ui/Radio.js +35 -0
- package/dist/components/ui/Radio.js.map +1 -0
- package/dist/components/ui/RichTextEditor.d.ts +13 -0
- package/dist/components/ui/RichTextEditor.js +242 -0
- package/dist/components/ui/RichTextEditor.js.map +1 -0
- package/dist/components/ui/TimePicker/index.d.ts +19 -0
- package/dist/components/ui/TimePicker/index.js +215 -0
- package/dist/components/ui/TimePicker/index.js.map +1 -0
- package/dist/components/ui/TimeSelector/index.d.ts +11 -0
- package/dist/components/ui/TimeSelector/index.js +138 -0
- package/dist/components/ui/TimeSelector/index.js.map +1 -0
- package/dist/components/ui/Tooltip/index.d.ts +12 -0
- package/dist/components/ui/Tooltip.d.ts +12 -0
- package/dist/components/ui/Tooltip.js +136 -0
- package/dist/components/ui/Tooltip.js.map +1 -0
- package/dist/hooks/useDropdownPosition.d.ts +11 -0
- package/dist/hooks/useFirebaseAuthState.d.ts +6 -0
- package/dist/hooks/useFirebaseAuthState.js +23 -0
- package/dist/hooks/useFirebaseAuthState.js.map +1 -0
- package/dist/hooks/useTicketTierForm.d.ts +61 -0
- package/dist/index.d.ts +8 -15
- package/dist/index.js +9 -49
- package/dist/index.js.map +1 -1
- package/dist/lib/actions.d.ts +318 -0
- package/dist/lib/actions.js +32 -0
- package/dist/lib/actions.js.map +1 -0
- package/dist/lib/constants.d.ts +72 -0
- package/dist/lib/cropImage.d.ts +28 -0
- package/dist/lib/cropImage.js +113 -0
- package/dist/lib/cropImage.js.map +1 -0
- package/dist/lib/imageAnalysis.d.ts +16 -0
- package/dist/lib/imageAnalysis.js +58 -0
- package/dist/lib/imageAnalysis.js.map +1 -0
- package/dist/lib/utils.d.ts +3 -0
- package/dist/lib/utils.js +9 -0
- package/dist/lib/utils.js.map +1 -0
- package/dist/node_modules/@dnd-kit/core/dist/core.esm.js +2 -2
- package/dist/node_modules/@dnd-kit/sortable/dist/sortable.esm.js +2 -2
- package/dist/node_modules/@firebase/app/dist/esm/index.esm.js +768 -0
- package/dist/node_modules/@firebase/app/dist/esm/index.esm.js.map +1 -0
- package/dist/node_modules/@firebase/component/dist/esm/index.esm.js +340 -0
- package/dist/node_modules/@firebase/component/dist/esm/index.esm.js.map +1 -0
- package/dist/node_modules/@firebase/logger/dist/esm/index.esm.js +123 -0
- package/dist/node_modules/@firebase/logger/dist/esm/index.esm.js.map +1 -0
- package/dist/node_modules/@firebase/storage/dist/index.esm.js +2623 -0
- package/dist/node_modules/@firebase/storage/dist/index.esm.js.map +1 -0
- package/dist/node_modules/@firebase/util/dist/index.esm.js +658 -0
- package/dist/node_modules/@firebase/util/dist/index.esm.js.map +1 -0
- package/dist/node_modules/@firebase/util/dist/postinstall.js +5 -0
- package/dist/node_modules/@firebase/util/dist/postinstall.js.map +1 -0
- package/dist/node_modules/@fortawesome/react-fontawesome/dist/index.js +2 -2
- package/dist/node_modules/@heroicons/react/20/solid/esm/CheckIcon.js +27 -0
- package/dist/node_modules/@heroicons/react/20/solid/esm/CheckIcon.js.map +1 -0
- package/dist/node_modules/@heroicons/react/20/solid/esm/ChevronDownIcon.js +27 -0
- package/dist/node_modules/@heroicons/react/20/solid/esm/ChevronDownIcon.js.map +1 -0
- package/dist/node_modules/@heroicons/react/24/outline/esm/ArrowRightIcon.js +29 -0
- package/dist/node_modules/@heroicons/react/24/outline/esm/ArrowRightIcon.js.map +1 -0
- package/dist/node_modules/@heroicons/react/24/outline/esm/ClockIcon.js +29 -0
- package/dist/node_modules/@heroicons/react/24/outline/esm/ClockIcon.js.map +1 -0
- package/dist/node_modules/@heroicons/react/24/outline/esm/DocumentDuplicateIcon.js +29 -0
- package/dist/node_modules/@heroicons/react/24/outline/esm/DocumentDuplicateIcon.js.map +1 -0
- package/dist/node_modules/@heroicons/react/24/outline/esm/LinkIcon.js +29 -0
- package/dist/node_modules/@heroicons/react/24/outline/esm/LinkIcon.js.map +1 -0
- package/dist/node_modules/@heroicons/react/24/outline/esm/MagnifyingGlassIcon.js +29 -0
- package/dist/node_modules/@heroicons/react/24/outline/esm/MagnifyingGlassIcon.js.map +1 -0
- package/dist/node_modules/@heroicons/react/24/outline/esm/MapPinIcon.js +33 -0
- package/dist/node_modules/@heroicons/react/24/outline/esm/MapPinIcon.js.map +1 -0
- package/dist/node_modules/@heroicons/react/24/outline/esm/VideoCameraIcon.js +29 -0
- package/dist/node_modules/@heroicons/react/24/outline/esm/VideoCameraIcon.js.map +1 -0
- package/dist/node_modules/@heroicons/react/24/outline/esm/XMarkIcon.js +29 -0
- package/dist/node_modules/@heroicons/react/24/outline/esm/XMarkIcon.js.map +1 -0
- package/dist/node_modules/@tiptap/core/dist/index.js +5446 -0
- package/dist/node_modules/@tiptap/core/dist/index.js.map +1 -0
- package/dist/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.js +21 -0
- package/dist/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.js.map +1 -0
- package/dist/node_modules/@tiptap/extension-blockquote/dist/index.js +78 -0
- package/dist/node_modules/@tiptap/extension-blockquote/dist/index.js.map +1 -0
- package/dist/node_modules/@tiptap/extension-bold/dist/index.js +100 -0
- package/dist/node_modules/@tiptap/extension-bold/dist/index.js.map +1 -0
- package/dist/node_modules/@tiptap/extension-code/dist/index.js +70 -0
- package/dist/node_modules/@tiptap/extension-code/dist/index.js.map +1 -0
- package/dist/node_modules/@tiptap/extension-code-block/dist/index.js +317 -0
- package/dist/node_modules/@tiptap/extension-code-block/dist/index.js.map +1 -0
- package/dist/node_modules/@tiptap/extension-document/dist/index.js +16 -0
- package/dist/node_modules/@tiptap/extension-document/dist/index.js.map +1 -0
- package/dist/node_modules/@tiptap/extension-hard-break/dist/index.js +66 -0
- package/dist/node_modules/@tiptap/extension-hard-break/dist/index.js.map +1 -0
- package/dist/node_modules/@tiptap/extension-heading/dist/index.js +86 -0
- package/dist/node_modules/@tiptap/extension-heading/dist/index.js.map +1 -0
- package/dist/node_modules/@tiptap/extension-horizontal-rule/dist/index.js +80 -0
- package/dist/node_modules/@tiptap/extension-horizontal-rule/dist/index.js.map +1 -0
- package/dist/node_modules/@tiptap/extension-italic/dist/index.js +98 -0
- package/dist/node_modules/@tiptap/extension-italic/dist/index.js.map +1 -0
- package/dist/node_modules/@tiptap/extension-link/dist/index.js +423 -0
- package/dist/node_modules/@tiptap/extension-link/dist/index.js.map +1 -0
- package/dist/node_modules/@tiptap/extension-list/dist/index.js +1039 -0
- package/dist/node_modules/@tiptap/extension-list/dist/index.js.map +1 -0
- package/dist/node_modules/@tiptap/extension-paragraph/dist/index.js +61 -0
- package/dist/node_modules/@tiptap/extension-paragraph/dist/index.js.map +1 -0
- package/dist/node_modules/@tiptap/extension-placeholder/dist/index.js +7 -0
- package/dist/node_modules/@tiptap/extension-placeholder/dist/index.js.map +1 -0
- package/dist/node_modules/@tiptap/extension-strike/dist/index.js +79 -0
- package/dist/node_modules/@tiptap/extension-strike/dist/index.js.map +1 -0
- package/dist/node_modules/@tiptap/extension-text/dist/index.js +16 -0
- package/dist/node_modules/@tiptap/extension-text/dist/index.js.map +1 -0
- package/dist/node_modules/@tiptap/extension-underline/dist/index.js +76 -0
- package/dist/node_modules/@tiptap/extension-underline/dist/index.js.map +1 -0
- package/dist/node_modules/@tiptap/extensions/dist/index.js +376 -0
- package/dist/node_modules/@tiptap/extensions/dist/index.js.map +1 -0
- package/dist/node_modules/@tiptap/react/dist/index.js +650 -0
- package/dist/node_modules/@tiptap/react/dist/index.js.map +1 -0
- package/dist/node_modules/@tiptap/starter-kit/dist/index.js +97 -0
- package/dist/node_modules/@tiptap/starter-kit/dist/index.js.map +1 -0
- package/dist/node_modules/dayjs/dayjs.min.js +1 -1
- package/dist/node_modules/dayjs/plugin/duration.js +137 -0
- package/dist/node_modules/dayjs/plugin/duration.js.map +1 -0
- package/dist/node_modules/dayjs/plugin/isBetween.js +20 -0
- package/dist/node_modules/dayjs/plugin/isBetween.js.map +1 -0
- package/dist/node_modules/dayjs/plugin/relativeTime.js +49 -0
- package/dist/node_modules/dayjs/plugin/relativeTime.js.map +1 -0
- package/dist/node_modules/fast-equals/dist/es/index.js +442 -0
- package/dist/node_modules/fast-equals/dist/es/index.js.map +1 -0
- package/dist/node_modules/idb/build/index.js +70 -0
- package/dist/node_modules/idb/build/index.js.map +1 -0
- package/dist/node_modules/idb/build/wrap-idb-value.js +149 -0
- package/dist/node_modules/idb/build/wrap-idb-value.js.map +1 -0
- package/dist/node_modules/linkifyjs/dist/linkify.js +1159 -0
- package/dist/node_modules/linkifyjs/dist/linkify.js.map +1 -0
- package/dist/node_modules/orderedmap/dist/index.js +120 -0
- package/dist/node_modules/orderedmap/dist/index.js.map +1 -0
- package/dist/node_modules/prosemirror-commands/dist/index.js +527 -0
- package/dist/node_modules/prosemirror-commands/dist/index.js.map +1 -0
- package/dist/node_modules/prosemirror-dropcursor/dist/index.js +137 -0
- package/dist/node_modules/prosemirror-dropcursor/dist/index.js.map +1 -0
- package/dist/node_modules/prosemirror-gapcursor/dist/index.js +221 -0
- package/dist/node_modules/prosemirror-gapcursor/dist/index.js.map +1 -0
- package/dist/node_modules/prosemirror-history/dist/index.js +357 -0
- package/dist/node_modules/prosemirror-history/dist/index.js.map +1 -0
- package/dist/node_modules/prosemirror-keymap/dist/index.js +84 -0
- package/dist/node_modules/prosemirror-keymap/dist/index.js.map +1 -0
- package/dist/node_modules/prosemirror-model/dist/index.js +3209 -0
- package/dist/node_modules/prosemirror-model/dist/index.js.map +1 -0
- package/dist/node_modules/prosemirror-schema-list/dist/index.js +131 -0
- package/dist/node_modules/prosemirror-schema-list/dist/index.js.map +1 -0
- package/dist/node_modules/prosemirror-state/dist/index.js +936 -0
- package/dist/node_modules/prosemirror-state/dist/index.js.map +1 -0
- package/dist/node_modules/prosemirror-transform/dist/index.js +1881 -0
- package/dist/node_modules/prosemirror-transform/dist/index.js.map +1 -0
- package/dist/node_modules/prosemirror-view/dist/index.js +5232 -0
- package/dist/node_modules/prosemirror-view/dist/index.js.map +1 -0
- package/dist/node_modules/rope-sequence/dist/index.js +184 -0
- package/dist/node_modules/rope-sequence/dist/index.js.map +1 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js +82 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js.map +1 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js +78 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js.map +1 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js +78 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js.map +1 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js +63 -0
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js.map +1 -0
- package/dist/node_modules/use-sync-external-store/shim/index.js +13 -0
- package/dist/node_modules/use-sync-external-store/shim/index.js.map +1 -0
- package/dist/node_modules/use-sync-external-store/shim/with-selector.js +13 -0
- package/dist/node_modules/use-sync-external-store/shim/with-selector.js.map +1 -0
- package/dist/node_modules/w3c-keyname/index.js +106 -0
- package/dist/node_modules/w3c-keyname/index.js.map +1 -0
- package/dist/node_modules/zod/v4/classic/coerce.js +10 -0
- package/dist/node_modules/zod/v4/classic/coerce.js.map +1 -0
- package/dist/node_modules/zod/v4/classic/schemas.js +22 -4
- package/dist/node_modules/zod/v4/classic/schemas.js.map +1 -1
- package/dist/node_modules/zod/v4/core/api.js +18 -0
- package/dist/node_modules/zod/v4/core/api.js.map +1 -1
- package/dist/node_modules/zod/v4/core/json-schema-processors.js +4 -0
- package/dist/node_modules/zod/v4/core/json-schema-processors.js.map +1 -1
- package/dist/node_modules/zod/v4/core/regexes.js +2 -0
- package/dist/node_modules/zod/v4/core/regexes.js.map +1 -1
- package/dist/node_modules/zod/v4/core/schemas.js +25 -3
- package/dist/node_modules/zod/v4/core/schemas.js.map +1 -1
- package/dist/redux/baseQuery.d.ts +1 -0
- package/dist/redux/baseQuery.js +24 -0
- package/dist/redux/baseQuery.js.map +1 -0
- package/dist/services/eventApi.d.ts +4383 -0
- package/dist/services/eventApi.js +411 -0
- package/dist/services/eventApi.js.map +1 -0
- package/dist/services/helpers.d.ts +50 -0
- package/dist/services/helpers.js +115 -0
- package/dist/services/helpers.js.map +1 -0
- package/dist/services/initialize-firebase.d.ts +2 -0
- package/dist/services/initialize-firebase.js +20 -0
- package/dist/services/initialize-firebase.js.map +1 -0
- package/dist/services/process-image-on-server.d.ts +1 -0
- package/dist/services/process-image-on-server.js +30 -0
- package/dist/services/process-image-on-server.js.map +1 -0
- package/dist/services/remote-config.d.ts +5 -0
- package/dist/services/remote-config.js +9 -0
- package/dist/services/remote-config.js.map +1 -0
- package/dist/services/single-event-api.d.ts +4287 -0
- package/dist/services/single-event-api.js +301 -0
- package/dist/services/single-event-api.js.map +1 -0
- package/dist/services/utils.d.ts +35 -0
- package/dist/services/utils.js +107 -0
- package/dist/services/utils.js.map +1 -0
- package/dist/stories/Alert.stories.d.ts +1 -1
- package/dist/styles.css +3531 -96
- package/dist/types/events.d.ts +60 -0
- package/dist/types/question.d.ts +37 -0
- package/dist/types/redux-types.d.ts +15 -0
- package/dist/types/types.d.ts +60 -0
- package/dist/types/types.js +10 -0
- package/dist/types/types.js.map +1 -0
- package/dist/utils/cn.js +2 -2
- package/dist/utils/cn.js.map +1 -1
- package/dist/utils/date-range.d.ts +4 -0
- package/dist/utils/date-range.js +13 -0
- package/dist/utils/date-range.js.map +1 -0
- package/dist/utils/single-event-helpers.d.ts +50 -0
- package/dist/utils/single-event-helpers.js +18 -0
- package/dist/utils/single-event-helpers.js.map +1 -0
- package/dist/utils/social-validation.d.ts +10 -0
- package/dist/utils/social-validation.js +42 -0
- package/dist/utils/social-validation.js.map +1 -0
- package/dist/utils/utils.d.ts +59 -0
- package/dist/utils/utils.js +20 -0
- package/dist/utils/utils.js.map +1 -0
- package/package.json +18 -2
- package/dist/_virtual/index2.js +0 -5
- package/dist/_virtual/index2.js.map +0 -1
- package/dist/_virtual/jsx-runtime.js +0 -5
- package/dist/_virtual/jsx-runtime.js.map +0 -1
- package/dist/_virtual/react-is.development.js +0 -5
- package/dist/_virtual/react-is.development.js.map +0 -1
- package/dist/_virtual/react-is.production.min.js +0 -5
- package/dist/_virtual/react-is.production.min.js.map +0 -1
- package/dist/_virtual/react-jsx-runtime.development.js +0 -5
- package/dist/_virtual/react-jsx-runtime.development.js.map +0 -1
- package/dist/_virtual/react-jsx-runtime.production.js +0 -5
- package/dist/_virtual/react-jsx-runtime.production.js.map +0 -1
- package/dist/_virtual/use-sync-external-store-with-selector.development.js +0 -5
- package/dist/_virtual/use-sync-external-store-with-selector.development.js.map +0 -1
- package/dist/_virtual/use-sync-external-store-with-selector.production.js +0 -5
- package/dist/_virtual/use-sync-external-store-with-selector.production.js.map +0 -1
- package/dist/components/StepperForm/AddEventLayout.d.ts +0 -66
- package/dist/components/StepperForm/AddEventLayout.js +0 -220
- package/dist/components/StepperForm/AddEventLayout.js.map +0 -1
- package/dist/components/StepperForm/EventSubmissionConfirmationModal.d.ts +0 -19
- package/dist/components/StepperForm/EventSubmissionConfirmationModal.js +0 -296
- package/dist/components/StepperForm/EventSubmissionConfirmationModal.js.map +0 -1
- package/dist/components/StepperForm/index.d.ts +0 -8
- package/dist/components/StepperForm/schemas/step1.js +0 -130
- package/dist/components/StepperForm/schemas/step1.js.map +0 -1
- package/dist/components/StepperForm/schemas/step2.d.ts +0 -138
- package/dist/components/StepperForm/schemas/step2.js +0 -95
- package/dist/components/StepperForm/schemas/step2.js.map +0 -1
- package/dist/components/StepperForm/schemas/utils.js.map +0 -1
- package/dist/components/StepperForm/useStepperForm.d.ts +0 -81
- package/dist/components/StepperForm/useStepperForm.js +0 -366
- package/dist/components/StepperForm/useStepperForm.js.map +0 -1
- package/dist/components/Toggle/Toggle.js +0 -67
- package/dist/components/Toggle/Toggle.js.map +0 -1
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +0 -538
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js.map +0 -1
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +0 -626
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js.map +0 -1
- package/dist/node_modules/@floating-ui/react/dist/floating-ui.react.js +0 -510
- package/dist/node_modules/@floating-ui/react/dist/floating-ui.react.js.map +0 -1
- package/dist/node_modules/@floating-ui/react/dist/floating-ui.react.utils.js +0 -17
- package/dist/node_modules/@floating-ui/react/dist/floating-ui.react.utils.js.map +0 -1
- package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +0 -269
- package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js.map +0 -1
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +0 -177
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js.map +0 -1
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +0 -150
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/components/description/description.js +0 -40
- package/dist/node_modules/@headlessui/react/dist/components/description/description.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/components/dialog/dialog.js +0 -111
- package/dist/node_modules/@headlessui/react/dist/components/dialog/dialog.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/components/focus-trap/focus-trap.js +0 -133
- package/dist/node_modules/@headlessui/react/dist/components/focus-trap/focus-trap.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/components/keyboard.js +0 -5
- package/dist/node_modules/@headlessui/react/dist/components/keyboard.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/components/label/label.js +0 -62
- package/dist/node_modules/@headlessui/react/dist/components/label/label.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/components/menu/menu-machine-glue.js +0 -22
- package/dist/node_modules/@headlessui/react/dist/components/menu/menu-machine-glue.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/components/menu/menu-machine.js +0 -127
- package/dist/node_modules/@headlessui/react/dist/components/menu/menu-machine.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/components/menu/menu.js +0 -206
- package/dist/node_modules/@headlessui/react/dist/components/menu/menu.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/components/mouse.js +0 -5
- package/dist/node_modules/@headlessui/react/dist/components/mouse.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/components/portal/portal.js +0 -65
- package/dist/node_modules/@headlessui/react/dist/components/portal/portal.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/components/transition/transition.js +0 -136
- package/dist/node_modules/@headlessui/react/dist/components/transition/transition.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/adjust-scrollbar-padding.js +0 -15
- package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/adjust-scrollbar-padding.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/handle-ios-locking.js +0 -53
- package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/handle-ios-locking.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/overflow-store.js +0 -39
- package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/overflow-store.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/prevent-scroll.js +0 -9
- package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/prevent-scroll.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/use-document-overflow.js +0 -13
- package/dist/node_modules/@headlessui/react/dist/hooks/document-overflow/use-document-overflow.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-active-press.js +0 -34
- package/dist/node_modules/@headlessui/react/dist/hooks/use-active-press.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-disposables.js +0 -10
- package/dist/node_modules/@headlessui/react/dist/hooks/use-disposables.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-document-event.js +0 -16
- package/dist/node_modules/@headlessui/react/dist/hooks/use-document-event.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-element-size.js +0 -27
- package/dist/node_modules/@headlessui/react/dist/hooks/use-element-size.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-escape.js +0 -13
- package/dist/node_modules/@headlessui/react/dist/hooks/use-escape.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-event-listener.js +0 -16
- package/dist/node_modules/@headlessui/react/dist/hooks/use-event-listener.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-event.js +0 -10
- package/dist/node_modules/@headlessui/react/dist/hooks/use-event.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-flags.js +0 -9
- package/dist/node_modules/@headlessui/react/dist/hooks/use-flags.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-handle-toggle.js +0 -16
- package/dist/node_modules/@headlessui/react/dist/hooks/use-handle-toggle.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-inert-others.js +0 -42
- package/dist/node_modules/@headlessui/react/dist/hooks/use-inert-others.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-is-mounted.js +0 -12
- package/dist/node_modules/@headlessui/react/dist/hooks/use-is-mounted.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-is-top-layer.js +0 -14
- package/dist/node_modules/@headlessui/react/dist/hooks/use-is-top-layer.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-is-touch-device.js +0 -17
- package/dist/node_modules/@headlessui/react/dist/hooks/use-is-touch-device.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-iso-morphic-effect.js +0 -9
- package/dist/node_modules/@headlessui/react/dist/hooks/use-iso-morphic-effect.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-latest-value.js +0 -12
- package/dist/node_modules/@headlessui/react/dist/hooks/use-latest-value.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-on-disappear.js +0 -29
- package/dist/node_modules/@headlessui/react/dist/hooks/use-on-disappear.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-on-unmount.js +0 -15
- package/dist/node_modules/@headlessui/react/dist/hooks/use-on-unmount.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-outside-click.js +0 -39
- package/dist/node_modules/@headlessui/react/dist/hooks/use-outside-click.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-owner.js +0 -9
- package/dist/node_modules/@headlessui/react/dist/hooks/use-owner.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-quick-release.js +0 -33
- package/dist/node_modules/@headlessui/react/dist/hooks/use-quick-release.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-resolve-button-type.js +0 -13
- package/dist/node_modules/@headlessui/react/dist/hooks/use-resolve-button-type.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-root-containers.js +0 -39
- package/dist/node_modules/@headlessui/react/dist/hooks/use-root-containers.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-scroll-lock.js +0 -13
- package/dist/node_modules/@headlessui/react/dist/hooks/use-scroll-lock.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-server-handoff-complete.js +0 -17
- package/dist/node_modules/@headlessui/react/dist/hooks/use-server-handoff-complete.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-slot.js +0 -8
- package/dist/node_modules/@headlessui/react/dist/hooks/use-slot.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-store.js +0 -8
- package/dist/node_modules/@headlessui/react/dist/hooks/use-store.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-sync-refs.js +0 -21
- package/dist/node_modules/@headlessui/react/dist/hooks/use-sync-refs.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-tab-direction.js +0 -14
- package/dist/node_modules/@headlessui/react/dist/hooks/use-tab-direction.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-text-value.js +0 -18
- package/dist/node_modules/@headlessui/react/dist/hooks/use-text-value.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-tracked-pointer.js +0 -17
- package/dist/node_modules/@headlessui/react/dist/hooks/use-tracked-pointer.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-transition.js +0 -74
- package/dist/node_modules/@headlessui/react/dist/hooks/use-transition.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-tree-walker.js +0 -19
- package/dist/node_modules/@headlessui/react/dist/hooks/use-tree-walker.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-watch.js +0 -16
- package/dist/node_modules/@headlessui/react/dist/hooks/use-watch.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/hooks/use-window-event.js +0 -16
- package/dist/node_modules/@headlessui/react/dist/hooks/use-window-event.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/internal/close-provider.js +0 -10
- package/dist/node_modules/@headlessui/react/dist/internal/close-provider.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/internal/disabled.js +0 -9
- package/dist/node_modules/@headlessui/react/dist/internal/disabled.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/internal/floating.js +0 -155
- package/dist/node_modules/@headlessui/react/dist/internal/floating.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/internal/hidden.js +0 -14
- package/dist/node_modules/@headlessui/react/dist/internal/hidden.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/internal/id.js +0 -9
- package/dist/node_modules/@headlessui/react/dist/internal/id.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/internal/open-closed.js +0 -20
- package/dist/node_modules/@headlessui/react/dist/internal/open-closed.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/internal/portal-force-root.js +0 -13
- package/dist/node_modules/@headlessui/react/dist/internal/portal-force-root.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/machine.js +0 -83
- package/dist/node_modules/@headlessui/react/dist/machine.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/machines/stack-machine.js +0 -39
- package/dist/node_modules/@headlessui/react/dist/machines/stack-machine.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/react-glue.js +0 -13
- package/dist/node_modules/@headlessui/react/dist/react-glue.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/utils/active-element-history.js +0 -16
- package/dist/node_modules/@headlessui/react/dist/utils/active-element-history.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/utils/bugs.js +0 -20
- package/dist/node_modules/@headlessui/react/dist/utils/bugs.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/utils/calculate-active-index.js +0 -41
- package/dist/node_modules/@headlessui/react/dist/utils/calculate-active-index.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/utils/class-names.js +0 -7
- package/dist/node_modules/@headlessui/react/dist/utils/class-names.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/utils/default-map.js +0 -14
- package/dist/node_modules/@headlessui/react/dist/utils/default-map.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/utils/disposables.js +0 -41
- package/dist/node_modules/@headlessui/react/dist/utils/disposables.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/utils/document-ready.js +0 -10
- package/dist/node_modules/@headlessui/react/dist/utils/document-ready.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/utils/dom.js +0 -47
- package/dist/node_modules/@headlessui/react/dist/utils/dom.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/utils/element-movement.js +0 -23
- package/dist/node_modules/@headlessui/react/dist/utils/element-movement.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/utils/env.js +0 -39
- package/dist/node_modules/@headlessui/react/dist/utils/env.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/utils/focus-management.js +0 -98
- package/dist/node_modules/@headlessui/react/dist/utils/focus-management.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/utils/get-text-value.js +0 -32
- package/dist/node_modules/@headlessui/react/dist/utils/get-text-value.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/utils/match.js +0 -12
- package/dist/node_modules/@headlessui/react/dist/utils/match.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/utils/micro-task.js +0 -9
- package/dist/node_modules/@headlessui/react/dist/utils/micro-task.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/utils/owner.js +0 -23
- package/dist/node_modules/@headlessui/react/dist/utils/owner.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/utils/platform.js +0 -15
- package/dist/node_modules/@headlessui/react/dist/utils/platform.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/utils/render.js +0 -134
- package/dist/node_modules/@headlessui/react/dist/utils/render.js.map +0 -1
- package/dist/node_modules/@headlessui/react/dist/utils/store.js +0 -15
- package/dist/node_modules/@headlessui/react/dist/utils/store.js.map +0 -1
- package/dist/node_modules/@react-aria/focus/dist/useFocusRing.js +0 -49
- package/dist/node_modules/@react-aria/focus/dist/useFocusRing.js.map +0 -1
- package/dist/node_modules/@react-aria/interactions/dist/useFocus.js +0 -42
- package/dist/node_modules/@react-aria/interactions/dist/useFocus.js.map +0 -1
- package/dist/node_modules/@react-aria/interactions/dist/useFocusVisible.js +0 -170
- package/dist/node_modules/@react-aria/interactions/dist/useFocusVisible.js.map +0 -1
- package/dist/node_modules/@react-aria/interactions/dist/useFocusWithin.js +0 -76
- package/dist/node_modules/@react-aria/interactions/dist/useFocusWithin.js.map +0 -1
- package/dist/node_modules/@react-aria/interactions/dist/useHover.js +0 -125
- package/dist/node_modules/@react-aria/interactions/dist/useHover.js.map +0 -1
- package/dist/node_modules/@react-aria/interactions/dist/utils.js +0 -86
- package/dist/node_modules/@react-aria/interactions/dist/utils.js.map +0 -1
- package/dist/node_modules/@react-aria/utils/dist/DOMFunctions.js +0 -37
- package/dist/node_modules/@react-aria/utils/dist/DOMFunctions.js.map +0 -1
- package/dist/node_modules/@react-aria/utils/dist/domHelpers.js +0 -21
- package/dist/node_modules/@react-aria/utils/dist/domHelpers.js.map +0 -1
- package/dist/node_modules/@react-aria/utils/dist/focusWithoutScrolling.js +0 -56
- package/dist/node_modules/@react-aria/utils/dist/focusWithoutScrolling.js.map +0 -1
- package/dist/node_modules/@react-aria/utils/dist/isVirtualEvent.js +0 -10
- package/dist/node_modules/@react-aria/utils/dist/isVirtualEvent.js.map +0 -1
- package/dist/node_modules/@react-aria/utils/dist/openLink.js +0 -35
- package/dist/node_modules/@react-aria/utils/dist/openLink.js.map +0 -1
- package/dist/node_modules/@react-aria/utils/dist/platform.js +0 -57
- package/dist/node_modules/@react-aria/utils/dist/platform.js.map +0 -1
- package/dist/node_modules/@react-aria/utils/dist/useGlobalListeners.js +0 -44
- package/dist/node_modules/@react-aria/utils/dist/useGlobalListeners.js.map +0 -1
- package/dist/node_modules/@react-aria/utils/dist/useLayoutEffect.js +0 -7
- package/dist/node_modules/@react-aria/utils/dist/useLayoutEffect.js.map +0 -1
- package/dist/node_modules/@react-stately/flags/dist/import.js +0 -8
- package/dist/node_modules/@react-stately/flags/dist/import.js.map +0 -1
- package/dist/node_modules/clsx/dist/clsx.js +0 -17
- package/dist/node_modules/clsx/dist/clsx.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.js +0 -85
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.js +0 -50
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/index.js +0 -87
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/index.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.js +0 -20
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/utils.js +0 -15
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/utils.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/context/LayoutGroupContext.js +0 -6
- package/dist/node_modules/framer-motion/dist/es/context/LayoutGroupContext.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/context/LazyContext.js +0 -6
- package/dist/node_modules/framer-motion/dist/es/context/LazyContext.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/context/MotionConfigContext.js +0 -10
- package/dist/node_modules/framer-motion/dist/es/context/MotionConfigContext.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/create.js +0 -14
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/create.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/index.js +0 -6
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/index.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/utils.js +0 -16
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/utils.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/context/PresenceContext.js +0 -6
- package/dist/node_modules/framer-motion/dist/es/context/PresenceContext.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.js +0 -6
- package/dist/node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/events/add-pointer-event.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/events/add-pointer-event.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/events/event-info.js +0 -15
- package/dist/node_modules/framer-motion/dist/es/events/event-info.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.js +0 -430
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/index.js +0 -39
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/index.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.js +0 -94
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/gestures/focus.js +0 -36
- package/dist/node_modules/framer-motion/dist/es/gestures/focus.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/gestures/hover.js +0 -32
- package/dist/node_modules/framer-motion/dist/es/gestures/hover.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/gestures/pan/PanSession.js +0 -216
- package/dist/node_modules/framer-motion/dist/es/gestures/pan/PanSession.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/gestures/pan/index.js +0 -51
- package/dist/node_modules/framer-motion/dist/es/gestures/pan/index.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/gestures/press.js +0 -39
- package/dist/node_modules/framer-motion/dist/es/gestures/press.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/motion/features/animation/exit.js +0 -62
- package/dist/node_modules/framer-motion/dist/es/motion/features/animation/exit.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/motion/features/animation/index.js +0 -42
- package/dist/node_modules/framer-motion/dist/es/motion/features/animation/index.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/motion/features/animations.js +0 -14
- package/dist/node_modules/framer-motion/dist/es/motion/features/animations.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/motion/features/definitions.js +0 -43
- package/dist/node_modules/framer-motion/dist/es/motion/features/definitions.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/motion/features/drag.js +0 -18
- package/dist/node_modules/framer-motion/dist/es/motion/features/drag.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/motion/features/gestures.js +0 -22
- package/dist/node_modules/framer-motion/dist/es/motion/features/gestures.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.js +0 -112
- package/dist/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/motion/features/layout.js +0 -12
- package/dist/node_modules/framer-motion/dist/es/motion/features/layout.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/motion/features/load-features.js +0 -16
- package/dist/node_modules/framer-motion/dist/es/motion/features/load-features.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/index.js +0 -67
- package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/index.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/observers.js +0 -34
- package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/observers.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/motion/index.js +0 -70
- package/dist/node_modules/framer-motion/dist/es/motion/index.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/motion/utils/symbol.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/motion/utils/symbol.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.js +0 -37
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.js +0 -109
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.js +0 -67
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/motion/utils/valid-prop.js +0 -40
- package/dist/node_modules/framer-motion/dist/es/motion/utils/valid-prop.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/render/components/create-proxy.js +0 -36
- package/dist/node_modules/framer-motion/dist/es/render/components/create-proxy.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/render/components/motion/feature-bundle.js +0 -14
- package/dist/node_modules/framer-motion/dist/es/render/components/motion/feature-bundle.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/render/components/motion/proxy.js +0 -8
- package/dist/node_modules/framer-motion/dist/es/render/components/motion/proxy.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/render/dom/create-visual-element.js +0 -14
- package/dist/node_modules/framer-motion/dist/es/render/dom/create-visual-element.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/render/dom/use-render.js +0 -22
- package/dist/node_modules/framer-motion/dist/es/render/dom/use-render.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/filter-props.js +0 -32
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/filter-props.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.js +0 -30
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/render/html/use-html-visual-state.js +0 -11
- package/dist/node_modules/framer-motion/dist/es/render/html/use-html-visual-state.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/render/html/use-props.js +0 -45
- package/dist/node_modules/framer-motion/dist/es/render/html/use-props.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/create-render-state.js +0 -10
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/create-render-state.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/render/svg/lowercase-elements.js +0 -31
- package/dist/node_modules/framer-motion/dist/es/render/svg/lowercase-elements.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/render/svg/use-props.js +0 -25
- package/dist/node_modules/framer-motion/dist/es/render/svg/use-props.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/render/svg/use-svg-visual-state.js +0 -11
- package/dist/node_modules/framer-motion/dist/es/render/svg/use-svg-visual-state.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/utils/distance.js +0 -11
- package/dist/node_modules/framer-motion/dist/es/utils/distance.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/utils/get-context-window.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/utils/get-context-window.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/utils/is-browser.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/utils/is-browser.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/utils/is-ref-object.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/utils/is-ref-object.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/utils/use-composed-ref.js +0 -39
- package/dist/node_modules/framer-motion/dist/es/utils/use-composed-ref.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/utils/use-constant.js +0 -12
- package/dist/node_modules/framer-motion/dist/es/utils/use-constant.js.map +0 -1
- package/dist/node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.js.map +0 -1
- package/dist/node_modules/imask/esm/controls/html-contenteditable-mask-element.js +0 -52
- package/dist/node_modules/imask/esm/controls/html-contenteditable-mask-element.js.map +0 -1
- package/dist/node_modules/imask/esm/controls/html-input-mask-element.js +0 -33
- package/dist/node_modules/imask/esm/controls/html-input-mask-element.js.map +0 -1
- package/dist/node_modules/imask/esm/controls/html-mask-element.js +0 -79
- package/dist/node_modules/imask/esm/controls/html-mask-element.js.map +0 -1
- package/dist/node_modules/imask/esm/controls/input-history.js +0 -37
- package/dist/node_modules/imask/esm/controls/input-history.js.map +0 -1
- package/dist/node_modules/imask/esm/controls/input.js +0 -309
- package/dist/node_modules/imask/esm/controls/input.js.map +0 -1
- package/dist/node_modules/imask/esm/controls/mask-element.js +0 -44
- package/dist/node_modules/imask/esm/controls/mask-element.js.map +0 -1
- package/dist/node_modules/imask/esm/core/action-details.js +0 -58
- package/dist/node_modules/imask/esm/core/action-details.js.map +0 -1
- package/dist/node_modules/imask/esm/core/change-details.js +0 -41
- package/dist/node_modules/imask/esm/core/change-details.js.map +0 -1
- package/dist/node_modules/imask/esm/core/continuous-tail-details.js +0 -53
- package/dist/node_modules/imask/esm/core/continuous-tail-details.js.map +0 -1
- package/dist/node_modules/imask/esm/core/holder.js +0 -7
- package/dist/node_modules/imask/esm/core/holder.js.map +0 -1
- package/dist/node_modules/imask/esm/core/utils.js +0 -71
- package/dist/node_modules/imask/esm/core/utils.js.map +0 -1
- package/dist/node_modules/imask/esm/index.js +0 -51
- package/dist/node_modules/imask/esm/index.js.map +0 -1
- package/dist/node_modules/imask/esm/masked/base.js +0 -359
- package/dist/node_modules/imask/esm/masked/base.js.map +0 -1
- package/dist/node_modules/imask/esm/masked/date.js +0 -132
- package/dist/node_modules/imask/esm/masked/date.js.map +0 -1
- package/dist/node_modules/imask/esm/masked/dynamic.js +0 -318
- package/dist/node_modules/imask/esm/masked/dynamic.js.map +0 -1
- package/dist/node_modules/imask/esm/masked/enum.js +0 -99
- package/dist/node_modules/imask/esm/masked/enum.js.map +0 -1
- package/dist/node_modules/imask/esm/masked/factory.js +0 -63
- package/dist/node_modules/imask/esm/masked/factory.js.map +0 -1
- package/dist/node_modules/imask/esm/masked/function.js +0 -24
- package/dist/node_modules/imask/esm/masked/function.js.map +0 -1
- package/dist/node_modules/imask/esm/masked/number.js +0 -287
- package/dist/node_modules/imask/esm/masked/number.js.map +0 -1
- package/dist/node_modules/imask/esm/masked/pattern/chunk-tail-details.js +0 -139
- package/dist/node_modules/imask/esm/masked/pattern/chunk-tail-details.js.map +0 -1
- package/dist/node_modules/imask/esm/masked/pattern/cursor.js +0 -122
- package/dist/node_modules/imask/esm/masked/pattern/cursor.js.map +0 -1
- package/dist/node_modules/imask/esm/masked/pattern/fixed-definition.js +0 -147
- package/dist/node_modules/imask/esm/masked/pattern/fixed-definition.js.map +0 -1
- package/dist/node_modules/imask/esm/masked/pattern/input-definition.js +0 -177
- package/dist/node_modules/imask/esm/masked/pattern/input-definition.js.map +0 -1
- package/dist/node_modules/imask/esm/masked/pattern.js +0 -432
- package/dist/node_modules/imask/esm/masked/pattern.js.map +0 -1
- package/dist/node_modules/imask/esm/masked/pipe.js +0 -32
- package/dist/node_modules/imask/esm/masked/pipe.js.map +0 -1
- package/dist/node_modules/imask/esm/masked/range.js +0 -110
- package/dist/node_modules/imask/esm/masked/range.js.map +0 -1
- package/dist/node_modules/imask/esm/masked/regexp.js +0 -23
- package/dist/node_modules/imask/esm/masked/regexp.js.map +0 -1
- package/dist/node_modules/imask/esm/masked/repeat.js +0 -133
- package/dist/node_modules/imask/esm/masked/repeat.js.map +0 -1
- package/dist/node_modules/lucide-react/dist/esm/Icon.js +0 -39
- package/dist/node_modules/lucide-react/dist/esm/Icon.js.map +0 -1
- package/dist/node_modules/lucide-react/dist/esm/context.js +0 -7
- package/dist/node_modules/lucide-react/dist/esm/context.js.map +0 -1
- package/dist/node_modules/lucide-react/dist/esm/createLucideIcon.js +0 -31
- package/dist/node_modules/lucide-react/dist/esm/createLucideIcon.js.map +0 -1
- package/dist/node_modules/lucide-react/dist/esm/defaultAttributes.js +0 -21
- package/dist/node_modules/lucide-react/dist/esm/defaultAttributes.js.map +0 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/calendar.js +0 -19
- package/dist/node_modules/lucide-react/dist/esm/icons/calendar.js.map +0 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/check.js +0 -14
- package/dist/node_modules/lucide-react/dist/esm/icons/check.js.map +0 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/chevron-down.js +0 -14
- package/dist/node_modules/lucide-react/dist/esm/icons/chevron-down.js.map +0 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/chevron-left.js +0 -14
- package/dist/node_modules/lucide-react/dist/esm/icons/chevron-left.js.map +0 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/clipboard-list.js +0 -27
- package/dist/node_modules/lucide-react/dist/esm/icons/clipboard-list.js.map +0 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/copy.js +0 -17
- package/dist/node_modules/lucide-react/dist/esm/icons/copy.js.map +0 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/eye.js +0 -23
- package/dist/node_modules/lucide-react/dist/esm/icons/eye.js.map +0 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/info.js +0 -18
- package/dist/node_modules/lucide-react/dist/esm/icons/info.js.map +0 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/loader-circle.js +0 -14
- package/dist/node_modules/lucide-react/dist/esm/icons/loader-circle.js.map +0 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/plus.js +0 -17
- package/dist/node_modules/lucide-react/dist/esm/icons/plus.js.map +0 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/trash-2.js +0 -20
- package/dist/node_modules/lucide-react/dist/esm/icons/trash-2.js.map +0 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/triangle-alert.js +0 -24
- package/dist/node_modules/lucide-react/dist/esm/icons/triangle-alert.js.map +0 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/user.js +0 -17
- package/dist/node_modules/lucide-react/dist/esm/icons/user.js.map +0 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/users.js +0 -19
- package/dist/node_modules/lucide-react/dist/esm/icons/users.js.map +0 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/x.js +0 -17
- package/dist/node_modules/lucide-react/dist/esm/icons/x.js.map +0 -1
- package/dist/node_modules/lucide-react/dist/esm/shared/src/utils/hasA11yProp.js +0 -18
- package/dist/node_modules/lucide-react/dist/esm/shared/src/utils/hasA11yProp.js.map +0 -1
- package/dist/node_modules/lucide-react/dist/esm/shared/src/utils/mergeClasses.js +0 -13
- package/dist/node_modules/lucide-react/dist/esm/shared/src/utils/mergeClasses.js.map +0 -1
- package/dist/node_modules/lucide-react/dist/esm/shared/src/utils/toCamelCase.js +0 -14
- package/dist/node_modules/lucide-react/dist/esm/shared/src/utils/toCamelCase.js.map +0 -1
- package/dist/node_modules/lucide-react/dist/esm/shared/src/utils/toKebabCase.js +0 -11
- package/dist/node_modules/lucide-react/dist/esm/shared/src/utils/toKebabCase.js.map +0 -1
- package/dist/node_modules/lucide-react/dist/esm/shared/src/utils/toPascalCase.js +0 -15
- package/dist/node_modules/lucide-react/dist/esm/shared/src/utils/toPascalCase.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.js +0 -159
- package/dist/node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/animation/JSAnimation.js +0 -300
- package/dist/node_modules/motion-dom/dist/es/animation/JSAnimation.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimation.js +0 -165
- package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimation.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimationExtended.js +0 -52
- package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimationExtended.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/animation/animate/single-value.js +0 -12
- package/dist/node_modules/motion-dom/dist/es/animation/animate/single-value.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/animation/drivers/frame.js +0 -18
- package/dist/node_modules/motion-dom/dist/es/animation/drivers/frame.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/animation/generators/inertia.js +0 -68
- package/dist/node_modules/motion-dom/dist/es/animation/generators/inertia.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/animation/generators/keyframes.js +0 -38
- package/dist/node_modules/motion-dom/dist/es/animation/generators/keyframes.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/animation/generators/spring.js +0 -247
- package/dist/node_modules/motion-dom/dist/es/animation/generators/spring.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/calc-duration.js +0 -16
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/calc-duration.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/create-generator-easing.js +0 -17
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/create-generator-easing.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/velocity.js +0 -10
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/velocity.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/animation/interfaces/motion-value.js +0 -70
- package/dist/node_modules/motion-dom/dist/es/animation/interfaces/motion-value.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-target.js +0 -72
- package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-target.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-variant.js +0 -38
- package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-variant.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element.js +0 -23
- package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.js +0 -109
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/KeyframesResolver.js +0 -133
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/KeyframesResolver.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/get-final.js +0 -11
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/get-final.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/default.js +0 -10
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/default.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/fill.js +0 -13
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/fill.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/time.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/time.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/fill-wildcards.js +0 -9
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/fill-wildcards.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/is-none.js +0 -14
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/is-none.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/make-none-animatable.js +0 -23
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/make-none-animatable.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/unit-conversion.js +0 -44
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/unit-conversion.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/animation/optimized-appear/data-id.js +0 -8
- package/dist/node_modules/motion-dom/dist/es/animation/optimized-appear/data-id.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/animation/optimized-appear/get-appear-id.js +0 -8
- package/dist/node_modules/motion-dom/dist/es/animation/optimized-appear/get-appear-id.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/animation/utils/WithPromise.js +0 -28
- package/dist/node_modules/motion-dom/dist/es/animation/utils/WithPromise.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/animation/utils/calc-child-stagger.js +0 -11
- package/dist/node_modules/motion-dom/dist/es/animation/utils/calc-child-stagger.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/animation/utils/can-animate.js +0 -32
- package/dist/node_modules/motion-dom/dist/es/animation/utils/can-animate.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/animation/utils/css-variables-conversion.js +0 -32
- package/dist/node_modules/motion-dom/dist/es/animation/utils/css-variables-conversion.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/animation/utils/default-transitions.js +0 -34
- package/dist/node_modules/motion-dom/dist/es/animation/utils/default-transitions.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/animation/utils/get-value-transition.js +0 -12
- package/dist/node_modules/motion-dom/dist/es/animation/utils/get-value-transition.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/animation/utils/is-animatable.js +0 -17
- package/dist/node_modules/motion-dom/dist/es/animation/utils/is-animatable.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/animation/utils/is-css-variable.js +0 -21
- package/dist/node_modules/motion-dom/dist/es/animation/utils/is-css-variable.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/animation/utils/is-transition-defined.js +0 -23
- package/dist/node_modules/motion-dom/dist/es/animation/utils/is-transition-defined.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/animation/utils/make-animation-instant.js +0 -8
- package/dist/node_modules/motion-dom/dist/es/animation/utils/make-animation-instant.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/animation/utils/replace-transition-type.js +0 -19
- package/dist/node_modules/motion-dom/dist/es/animation/utils/replace-transition-type.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/animation/utils/resolve-transition.js +0 -11
- package/dist/node_modules/motion-dom/dist/es/animation/utils/resolve-transition.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/cubic-bezier.js +0 -5
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/cubic-bezier.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/map-easing.js +0 -22
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/map-easing.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/supported.js +0 -16
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/supported.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/start-waapi-animation.js +0 -27
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/start-waapi-animation.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/supports/waapi.js +0 -38
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/supports/waapi.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/accelerated-values.js +0 -13
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/accelerated-values.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/apply-generator.js +0 -15
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/apply-generator.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/is-browser-color.js +0 -13
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/is-browser-color.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/linear.js +0 -12
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/linear.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/unsupported-easing.js +0 -20
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/unsupported-easing.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/events/add-dom-event.js +0 -8
- package/dist/node_modules/motion-dom/dist/es/events/add-dom-event.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/frameloop/batcher.js +0 -68
- package/dist/node_modules/motion-dom/dist/es/frameloop/batcher.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/frameloop/frame.js +0 -10
- package/dist/node_modules/motion-dom/dist/es/frameloop/frame.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/frameloop/microtask.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/frameloop/microtask.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/frameloop/order.js +0 -22
- package/dist/node_modules/motion-dom/dist/es/frameloop/order.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/frameloop/render-step.js +0 -65
- package/dist/node_modules/motion-dom/dist/es/frameloop/render-step.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/frameloop/sync-time.js +0 -22
- package/dist/node_modules/motion-dom/dist/es/frameloop/sync-time.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/is-active.js +0 -12
- package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/is-active.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/set-active.js +0 -26
- package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/set-active.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/gestures/hover.js +0 -63
- package/dist/node_modules/motion-dom/dist/es/gestures/hover.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/gestures/press/index.js +0 -63
- package/dist/node_modules/motion-dom/dist/es/gestures/press/index.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.js +0 -19
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.js +0 -33
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/state.js +0 -5
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/state.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.js +0 -13
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-primary-pointer.js +0 -11
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-primary-pointer.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/setup.js +0 -16
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/setup.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/projection/animation/mix-values.js +0 -61
- package/dist/node_modules/motion-dom/dist/es/projection/animation/mix-values.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/conversion.js +0 -27
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/conversion.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/copy.js +0 -20
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/copy.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-apply.js +0 -88
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-apply.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-calc.js +0 -58
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-calc.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-remove.js +0 -41
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-remove.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/models.js +0 -22
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/models.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/utils.js +0 -35
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/utils.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/projection/node/DocumentProjectionNode.js +0 -17
- package/dist/node_modules/motion-dom/dist/es/projection/node/DocumentProjectionNode.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/projection/node/HTMLProjectionNode.js +0 -29
- package/dist/node_modules/motion-dom/dist/es/projection/node/HTMLProjectionNode.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/projection/node/create-projection-node.js +0 -1123
- package/dist/node_modules/motion-dom/dist/es/projection/node/create-projection-node.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/projection/node/state.js +0 -16
- package/dist/node_modules/motion-dom/dist/es/projection/node/state.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/projection/shared/stack.js +0 -88
- package/dist/node_modules/motion-dom/dist/es/projection/shared/stack.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-border-radius.js +0 -27
- package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-border-radius.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-box-shadow.js +0 -26
- package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-box-shadow.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-correction.js +0 -22
- package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-correction.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/projection/styles/transform.js +0 -37
- package/dist/node_modules/motion-dom/dist/es/projection/styles/transform.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/projection/utils/compare-by-depth.js +0 -5
- package/dist/node_modules/motion-dom/dist/es/projection/utils/compare-by-depth.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/projection/utils/each-axis.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/projection/utils/each-axis.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/projection/utils/flat-tree.js +0 -25
- package/dist/node_modules/motion-dom/dist/es/projection/utils/flat-tree.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/projection/utils/has-transform.js +0 -21
- package/dist/node_modules/motion-dom/dist/es/projection/utils/has-transform.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/projection/utils/measure.js +0 -19
- package/dist/node_modules/motion-dom/dist/es/projection/utils/measure.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/render/Feature.js +0 -12
- package/dist/node_modules/motion-dom/dist/es/render/Feature.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/render/VisualElement.js +0 -432
- package/dist/node_modules/motion-dom/dist/es/render/VisualElement.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/render/dom/DOMVisualElement.js +0 -38
- package/dist/node_modules/motion-dom/dist/es/render/dom/DOMVisualElement.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/render/dom/is-css-var.js +0 -5
- package/dist/node_modules/motion-dom/dist/es/render/dom/is-css-var.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/render/dom/parse-transform.js +0 -84
- package/dist/node_modules/motion-dom/dist/es/render/dom/parse-transform.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/render/dom/style-set.js +0 -8
- package/dist/node_modules/motion-dom/dist/es/render/dom/style-set.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/render/dom/utils/camel-to-dash.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/render/dom/utils/camel-to-dash.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/render/html/HTMLVisualElement.js +0 -42
- package/dist/node_modules/motion-dom/dist/es/render/html/HTMLVisualElement.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-styles.js +0 -43
- package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-styles.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-transform.js +0 -49
- package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-transform.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/render/html/utils/render.js +0 -15
- package/dist/node_modules/motion-dom/dist/es/render/html/utils/render.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/render/html/utils/scrape-motion-values.js +0 -20
- package/dist/node_modules/motion-dom/dist/es/render/html/utils/scrape-motion-values.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/render/store.js +0 -5
- package/dist/node_modules/motion-dom/dist/es/render/store.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/render/svg/SVGVisualElement.js +0 -46
- package/dist/node_modules/motion-dom/dist/es/render/svg/SVGVisualElement.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/build-attrs.js +0 -60
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/build-attrs.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/camel-case-attrs.js +0 -29
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/camel-case-attrs.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/is-svg-tag.js +0 -5
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/is-svg-tag.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/path.js +0 -18
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/path.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/render.js +0 -13
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/render.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/scrape-motion-values.js +0 -17
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/scrape-motion-values.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/render/utils/animation-state.js +0 -229
- package/dist/node_modules/motion-dom/dist/es/render/utils/animation-state.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/render/utils/get-variant-context.js +0 -27
- package/dist/node_modules/motion-dom/dist/es/render/utils/get-variant-context.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-animation-controls.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-animation-controls.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-controlling-variants.js +0 -14
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-controlling-variants.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-forced-motion-value.js +0 -10
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-forced-motion-value.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-keyframes-target.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-keyframes-target.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-variant-label.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-variant-label.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/render/utils/keys-position.js +0 -14
- package/dist/node_modules/motion-dom/dist/es/render/utils/keys-position.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/render/utils/keys-transform.js +0 -25
- package/dist/node_modules/motion-dom/dist/es/render/utils/keys-transform.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/render/utils/motion-values.js +0 -34
- package/dist/node_modules/motion-dom/dist/es/render/utils/motion-values.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/index.js +0 -21
- package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/index.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/state.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/state.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/render/utils/resolve-dynamic-variants.js +0 -9
- package/dist/node_modules/motion-dom/dist/es/render/utils/resolve-dynamic-variants.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/render/utils/resolve-variants.js +0 -26
- package/dist/node_modules/motion-dom/dist/es/render/utils/resolve-variants.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/render/utils/setters.js +0 -26
- package/dist/node_modules/motion-dom/dist/es/render/utils/setters.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/render/utils/shallow-compare.js +0 -16
- package/dist/node_modules/motion-dom/dist/es/render/utils/shallow-compare.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/render/utils/variant-props.js +0 -15
- package/dist/node_modules/motion-dom/dist/es/render/utils/variant-props.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/resize/handle-element.js +0 -63
- package/dist/node_modules/motion-dom/dist/es/resize/handle-element.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/resize/handle-window.js +0 -32
- package/dist/node_modules/motion-dom/dist/es/resize/handle-window.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/resize/index.js +0 -9
- package/dist/node_modules/motion-dom/dist/es/resize/index.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/utils/delay.js +0 -18
- package/dist/node_modules/motion-dom/dist/es/utils/delay.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/utils/interpolate.js +0 -54
- package/dist/node_modules/motion-dom/dist/es/utils/interpolate.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/utils/is-html-element.js +0 -8
- package/dist/node_modules/motion-dom/dist/es/utils/is-html-element.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/utils/is-svg-element.js +0 -8
- package/dist/node_modules/motion-dom/dist/es/utils/is-svg-element.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/utils/is-svg-svg-element.js +0 -8
- package/dist/node_modules/motion-dom/dist/es/utils/is-svg-svg-element.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/utils/mix/color.js +0 -45
- package/dist/node_modules/motion-dom/dist/es/utils/mix/color.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/utils/mix/complex.js +0 -84
- package/dist/node_modules/motion-dom/dist/es/utils/mix/complex.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/utils/mix/immediate.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/utils/mix/immediate.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/utils/mix/index.js +0 -13
- package/dist/node_modules/motion-dom/dist/es/utils/mix/index.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/utils/mix/number.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/utils/mix/number.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/utils/mix/visibility.js +0 -13
- package/dist/node_modules/motion-dom/dist/es/utils/mix/visibility.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/utils/resolve-elements.js +0 -17
- package/dist/node_modules/motion-dom/dist/es/utils/resolve-elements.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/utils/supports/flags.js +0 -5
- package/dist/node_modules/motion-dom/dist/es/utils/supports/flags.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/utils/supports/linear-easing.js +0 -13
- package/dist/node_modules/motion-dom/dist/es/utils/supports/linear-easing.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/utils/supports/memo.js +0 -10
- package/dist/node_modules/motion-dom/dist/es/utils/supports/memo.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/value/index.js +0 -290
- package/dist/node_modules/motion-dom/dist/es/value/index.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/value/types/auto.js +0 -8
- package/dist/node_modules/motion-dom/dist/es/value/types/auto.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/value/types/color/hex.js +0 -38
- package/dist/node_modules/motion-dom/dist/es/value/types/color/hex.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla-to-rgba.js +0 -40
- package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla-to-rgba.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla.js +0 -15
- package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/value/types/color/index.js +0 -27
- package/dist/node_modules/motion-dom/dist/es/value/types/color/index.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/value/types/color/rgba.js +0 -19
- package/dist/node_modules/motion-dom/dist/es/value/types/color/rgba.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/value/types/color/utils.js +0 -22
- package/dist/node_modules/motion-dom/dist/es/value/types/color/utils.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/value/types/complex/filter.js +0 -28
- package/dist/node_modules/motion-dom/dist/es/value/types/complex/filter.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/value/types/complex/index.js +0 -93
- package/dist/node_modules/motion-dom/dist/es/value/types/complex/index.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/value/types/complex/mask.js +0 -13
- package/dist/node_modules/motion-dom/dist/es/value/types/complex/mask.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/value/types/dimensions.js +0 -11
- package/dist/node_modules/motion-dom/dist/es/value/types/dimensions.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/value/types/int.js +0 -9
- package/dist/node_modules/motion-dom/dist/es/value/types/int.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/value/types/maps/defaults.js +0 -29
- package/dist/node_modules/motion-dom/dist/es/value/types/maps/defaults.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/value/types/maps/number.js +0 -71
- package/dist/node_modules/motion-dom/dist/es/value/types/maps/number.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/value/types/maps/transform.js +0 -32
- package/dist/node_modules/motion-dom/dist/es/value/types/maps/transform.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/value/types/numbers/index.js +0 -20
- package/dist/node_modules/motion-dom/dist/es/value/types/numbers/index.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/value/types/numbers/units.js +0 -24
- package/dist/node_modules/motion-dom/dist/es/value/types/numbers/units.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/value/types/test.js +0 -5
- package/dist/node_modules/motion-dom/dist/es/value/types/test.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/animatable-none.js +0 -15
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/animatable-none.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/color-regex.js +0 -5
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/color-regex.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/find.js +0 -10
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/find.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/float-regex.js +0 -5
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/float-regex.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/get-as-type.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/get-as-type.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/is-nullish.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/is-nullish.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/sanitize.js +0 -5
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/sanitize.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/single-color-regex.js +0 -5
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/single-color-regex.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/value/utils/is-motion-value.js +0 -5
- package/dist/node_modules/motion-dom/dist/es/value/utils/is-motion-value.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/value/utils/resolve-motion-value.js +0 -8
- package/dist/node_modules/motion-dom/dist/es/value/utils/resolve-motion-value.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/value/will-change/add-will-change.js +0 -16
- package/dist/node_modules/motion-dom/dist/es/value/will-change/add-will-change.js.map +0 -1
- package/dist/node_modules/motion-dom/dist/es/value/will-change/is.js +0 -8
- package/dist/node_modules/motion-dom/dist/es/value/will-change/is.js.map +0 -1
- package/dist/node_modules/motion-utils/dist/es/array.js +0 -14
- package/dist/node_modules/motion-utils/dist/es/array.js.map +0 -1
- package/dist/node_modules/motion-utils/dist/es/clamp.js +0 -11
- package/dist/node_modules/motion-utils/dist/es/clamp.js.map +0 -1
- package/dist/node_modules/motion-utils/dist/es/easing/anticipate.js +0 -6
- package/dist/node_modules/motion-utils/dist/es/easing/anticipate.js.map +0 -1
- package/dist/node_modules/motion-utils/dist/es/easing/back.js +0 -12
- package/dist/node_modules/motion-utils/dist/es/easing/back.js.map +0 -1
- package/dist/node_modules/motion-utils/dist/es/easing/circ.js +0 -11
- package/dist/node_modules/motion-utils/dist/es/easing/circ.js.map +0 -1
- package/dist/node_modules/motion-utils/dist/es/easing/cubic-bezier.js +0 -29
- package/dist/node_modules/motion-utils/dist/es/easing/cubic-bezier.js.map +0 -1
- package/dist/node_modules/motion-utils/dist/es/easing/ease.js +0 -10
- package/dist/node_modules/motion-utils/dist/es/easing/ease.js.map +0 -1
- package/dist/node_modules/motion-utils/dist/es/easing/modifiers/mirror.js +0 -5
- package/dist/node_modules/motion-utils/dist/es/easing/modifiers/mirror.js.map +0 -1
- package/dist/node_modules/motion-utils/dist/es/easing/modifiers/reverse.js +0 -5
- package/dist/node_modules/motion-utils/dist/es/easing/modifiers/reverse.js.map +0 -1
- package/dist/node_modules/motion-utils/dist/es/easing/utils/is-bezier-definition.js +0 -5
- package/dist/node_modules/motion-utils/dist/es/easing/utils/is-bezier-definition.js.map +0 -1
- package/dist/node_modules/motion-utils/dist/es/easing/utils/is-easing-array.js +0 -7
- package/dist/node_modules/motion-utils/dist/es/easing/utils/is-easing-array.js.map +0 -1
- package/dist/node_modules/motion-utils/dist/es/easing/utils/map.js +0 -39
- package/dist/node_modules/motion-utils/dist/es/easing/utils/map.js.map +0 -1
- package/dist/node_modules/motion-utils/dist/es/errors.js +0 -23
- package/dist/node_modules/motion-utils/dist/es/errors.js.map +0 -1
- package/dist/node_modules/motion-utils/dist/es/format-error-message.js +0 -7
- package/dist/node_modules/motion-utils/dist/es/format-error-message.js.map +0 -1
- package/dist/node_modules/motion-utils/dist/es/global-config.js +0 -5
- package/dist/node_modules/motion-utils/dist/es/global-config.js.map +0 -1
- package/dist/node_modules/motion-utils/dist/es/is-numerical-string.js +0 -5
- package/dist/node_modules/motion-utils/dist/es/is-numerical-string.js.map +0 -1
- package/dist/node_modules/motion-utils/dist/es/is-object.js +0 -7
- package/dist/node_modules/motion-utils/dist/es/is-object.js.map +0 -1
- package/dist/node_modules/motion-utils/dist/es/is-zero-value-string.js +0 -5
- package/dist/node_modules/motion-utils/dist/es/is-zero-value-string.js.map +0 -1
- package/dist/node_modules/motion-utils/dist/es/memo.js +0 -13
- package/dist/node_modules/motion-utils/dist/es/memo.js.map +0 -1
- package/dist/node_modules/motion-utils/dist/es/noop.js +0 -5
- package/dist/node_modules/motion-utils/dist/es/noop.js.map +0 -1
- package/dist/node_modules/motion-utils/dist/es/pipe.js +0 -6
- package/dist/node_modules/motion-utils/dist/es/pipe.js.map +0 -1
- package/dist/node_modules/motion-utils/dist/es/progress.js +0 -8
- package/dist/node_modules/motion-utils/dist/es/progress.js.map +0 -1
- package/dist/node_modules/motion-utils/dist/es/subscription-manager.js +0 -33
- package/dist/node_modules/motion-utils/dist/es/subscription-manager.js.map +0 -1
- package/dist/node_modules/motion-utils/dist/es/time-conversion.js +0 -7
- package/dist/node_modules/motion-utils/dist/es/time-conversion.js.map +0 -1
- package/dist/node_modules/motion-utils/dist/es/velocity-per-second.js +0 -7
- package/dist/node_modules/motion-utils/dist/es/velocity-per-second.js.map +0 -1
- package/dist/node_modules/motion-utils/dist/es/warn-once.js +0 -12
- package/dist/node_modules/motion-utils/dist/es/warn-once.js.map +0 -1
- package/dist/node_modules/object-assign/index.js +0 -79
- package/dist/node_modules/object-assign/index.js.map +0 -1
- package/dist/node_modules/prop-types/checkPropTypes.js +0 -69
- package/dist/node_modules/prop-types/checkPropTypes.js.map +0 -1
- package/dist/node_modules/prop-types/factoryWithThrowingShims.js +0 -59
- package/dist/node_modules/prop-types/factoryWithThrowingShims.js.map +0 -1
- package/dist/node_modules/prop-types/factoryWithTypeCheckers.js +0 -452
- package/dist/node_modules/prop-types/factoryWithTypeCheckers.js.map +0 -1
- package/dist/node_modules/prop-types/index.js +0 -18
- package/dist/node_modules/prop-types/index.js.map +0 -1
- package/dist/node_modules/prop-types/lib/ReactPropTypesSecret.js +0 -13
- package/dist/node_modules/prop-types/lib/ReactPropTypesSecret.js.map +0 -1
- package/dist/node_modules/prop-types/lib/has.js +0 -12
- package/dist/node_modules/prop-types/lib/has.js.map +0 -1
- package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +0 -166
- package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js.map +0 -1
- package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +0 -107
- package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js.map +0 -1
- package/dist/node_modules/prop-types/node_modules/react-is/index.js +0 -18
- package/dist/node_modules/prop-types/node_modules/react-is/index.js.map +0 -1
- package/dist/node_modules/react/cjs/react-jsx-runtime.development.js +0 -271
- package/dist/node_modules/react/cjs/react-jsx-runtime.development.js.map +0 -1
- package/dist/node_modules/react/cjs/react-jsx-runtime.production.js +0 -42
- package/dist/node_modules/react/cjs/react-jsx-runtime.production.js.map +0 -1
- package/dist/node_modules/react/jsx-runtime.js +0 -13
- package/dist/node_modules/react/jsx-runtime.js.map +0 -1
- package/dist/node_modules/react-icons/fa/index.js +0 -9
- package/dist/node_modules/react-icons/fa/index.js.map +0 -1
- package/dist/node_modules/react-icons/fi/index.js +0 -9
- package/dist/node_modules/react-icons/fi/index.js.map +0 -1
- package/dist/node_modules/react-icons/lib/iconBase.js +0 -110
- package/dist/node_modules/react-icons/lib/iconBase.js.map +0 -1
- package/dist/node_modules/react-icons/lib/iconContext.js +0 -14
- package/dist/node_modules/react-icons/lib/iconContext.js.map +0 -1
- package/dist/node_modules/react-imask/esm/input.js +0 -28
- package/dist/node_modules/react-imask/esm/input.js.map +0 -1
- package/dist/node_modules/react-imask/esm/mixin.js +0 -172
- package/dist/node_modules/react-imask/esm/mixin.js.map +0 -1
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +0 -2467
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js.map +0 -1
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.development.js +0 -81
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.development.js.map +0 -1
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.production.js +0 -77
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.production.js.map +0 -1
- package/dist/node_modules/use-sync-external-store/with-selector.js +0 -13
- package/dist/node_modules/use-sync-external-store/with-selector.js.map +0 -1
- /package/dist/components/{StepperForm → EventAddForm}/schemas/step1.d.ts +0 -0
- /package/dist/components/{StepperForm → EventAddForm}/schemas/utils.d.ts +0 -0
- /package/dist/components/{StepperForm → EventAddForm}/schemas/utils.js +0 -0
- /package/dist/components/{StepperForm → EventAddForm}/types.d.ts +0 -0
|
@@ -0,0 +1,411 @@
|
|
|
1
|
+
import { createApi } from "@reduxjs/toolkit/query/react";
|
|
2
|
+
import baseQuery from "../redux/baseQuery.js";
|
|
3
|
+
import { createEvent, updateQuestionsOrder, deleteQuestionFromEventForm, editQuestionInEventForm, addQuestionToEventForm, submitEventForApproval } from "../lib/actions.js";
|
|
4
|
+
import { auth } from "./initialize-firebase.js";
|
|
5
|
+
import { BASE_URL } from "./remote-config.js";
|
|
6
|
+
const eventApi = createApi({
|
|
7
|
+
reducerPath: "eventApi",
|
|
8
|
+
baseQuery,
|
|
9
|
+
tagTypes: ["Events"],
|
|
10
|
+
endpoints: (builder) => ({
|
|
11
|
+
getAllEvents: builder.query({
|
|
12
|
+
query: () => "/api/v1/vendor-app/get-all-events",
|
|
13
|
+
transformResponse: (response) => response == null ? void 0 : response.data,
|
|
14
|
+
providesTags: [{ type: "Events", id: "LIST" }]
|
|
15
|
+
}),
|
|
16
|
+
getArchivedEvents: builder.query({
|
|
17
|
+
query: () => "/api/v1/vendor-app/get-archived-events",
|
|
18
|
+
transformResponse: (response) => response == null ? void 0 : response.data,
|
|
19
|
+
providesTags: [{ type: "Events", id: "ARCHIVED_LIST" }]
|
|
20
|
+
}),
|
|
21
|
+
submitEventForApproval: builder.mutation({
|
|
22
|
+
queryFn: async (eventId) => {
|
|
23
|
+
var _a;
|
|
24
|
+
const token = await ((_a = auth.currentUser) == null ? void 0 : _a.getIdToken()) || "";
|
|
25
|
+
const { data, error } = await submitEventForApproval({ event_id: eventId }, token);
|
|
26
|
+
if (data) {
|
|
27
|
+
return { data };
|
|
28
|
+
}
|
|
29
|
+
return { error };
|
|
30
|
+
},
|
|
31
|
+
onQueryStarted: async (eventId, { dispatch, queryFulfilled }) => {
|
|
32
|
+
const patchResult = dispatch(
|
|
33
|
+
eventApi.util.updateQueryData("getAllEvents", void 0, (draft) => {
|
|
34
|
+
const event = draft == null ? void 0 : draft.find((e) => e.id === eventId);
|
|
35
|
+
if (event) {
|
|
36
|
+
event.status = 3;
|
|
37
|
+
}
|
|
38
|
+
})
|
|
39
|
+
);
|
|
40
|
+
try {
|
|
41
|
+
await queryFulfilled;
|
|
42
|
+
} catch {
|
|
43
|
+
patchResult.undo();
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
invalidatesTags: [{ type: "Events", id: "LIST" }]
|
|
47
|
+
}),
|
|
48
|
+
getEventById: builder.query({
|
|
49
|
+
query: (id) => `/api/v1/vendor-app/get-event?event_id=${id}`,
|
|
50
|
+
transformResponse: (response) => response == null ? void 0 : response.data,
|
|
51
|
+
providesTags: (result, error, id) => [{ type: "Events", id }]
|
|
52
|
+
}),
|
|
53
|
+
addQuestionToEventForm: builder.mutation({
|
|
54
|
+
queryFn: async (requestData) => {
|
|
55
|
+
var _a;
|
|
56
|
+
const token = await ((_a = auth.currentUser) == null ? void 0 : _a.getIdToken()) || "";
|
|
57
|
+
const { data, error } = await addQuestionToEventForm(requestData, token);
|
|
58
|
+
if (data) {
|
|
59
|
+
return { data };
|
|
60
|
+
}
|
|
61
|
+
return { error };
|
|
62
|
+
}
|
|
63
|
+
}),
|
|
64
|
+
editQuestionInEventForm: builder.mutation({
|
|
65
|
+
queryFn: async (requestData) => {
|
|
66
|
+
var _a;
|
|
67
|
+
const token = await ((_a = auth.currentUser) == null ? void 0 : _a.getIdToken()) || "";
|
|
68
|
+
const { data, error } = await editQuestionInEventForm(requestData, token);
|
|
69
|
+
if (data) {
|
|
70
|
+
return { data };
|
|
71
|
+
}
|
|
72
|
+
return { error };
|
|
73
|
+
}
|
|
74
|
+
}),
|
|
75
|
+
deleteQuestionFromEventForm: builder.mutation({
|
|
76
|
+
queryFn: async (requestData) => {
|
|
77
|
+
var _a;
|
|
78
|
+
const token = await ((_a = auth.currentUser) == null ? void 0 : _a.getIdToken()) || "";
|
|
79
|
+
const { data, error } = await deleteQuestionFromEventForm(requestData, token);
|
|
80
|
+
if (data) {
|
|
81
|
+
return { data };
|
|
82
|
+
}
|
|
83
|
+
return { error };
|
|
84
|
+
}
|
|
85
|
+
}),
|
|
86
|
+
updateQuestionsOrder: builder.mutation({
|
|
87
|
+
queryFn: async (requestData) => {
|
|
88
|
+
var _a;
|
|
89
|
+
const token = await ((_a = auth.currentUser) == null ? void 0 : _a.getIdToken()) || "";
|
|
90
|
+
const { data, error } = await updateQuestionsOrder(requestData, token);
|
|
91
|
+
if (data) {
|
|
92
|
+
return { data: data == null ? void 0 : data.data };
|
|
93
|
+
}
|
|
94
|
+
return { error };
|
|
95
|
+
},
|
|
96
|
+
onQueryStarted: async (requestData, { dispatch, queryFulfilled }) => {
|
|
97
|
+
const patchResult = dispatch(
|
|
98
|
+
eventApi.util.updateQueryData("getEventById", requestData.event_id, (draft) => {
|
|
99
|
+
var _a;
|
|
100
|
+
if ((_a = draft == null ? void 0 : draft.event_form_schema) == null ? void 0 : _a.fields) {
|
|
101
|
+
const fieldMap = new Map(draft.event_form_schema.fields.map((f) => [f.question, f]));
|
|
102
|
+
const sortedRequestQuestions = [...requestData.questions].sort((a, b) => a.order - b.order);
|
|
103
|
+
const newFields = sortedRequestQuestions.map((q) => fieldMap.get(q.question)).filter((f) => f !== void 0);
|
|
104
|
+
if (newFields.length === draft.event_form_schema.fields.length) {
|
|
105
|
+
draft.event_form_schema.fields = newFields;
|
|
106
|
+
} else {
|
|
107
|
+
console.warn("Optimistic update aborted: Length mismatch");
|
|
108
|
+
}
|
|
109
|
+
} else {
|
|
110
|
+
console.warn("Optimistic update aborted: Draft fields not found");
|
|
111
|
+
}
|
|
112
|
+
})
|
|
113
|
+
);
|
|
114
|
+
try {
|
|
115
|
+
await queryFulfilled;
|
|
116
|
+
} catch {
|
|
117
|
+
patchResult.undo();
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}),
|
|
121
|
+
addEvent: builder.mutation({
|
|
122
|
+
queryFn: async (requestData) => {
|
|
123
|
+
var _a;
|
|
124
|
+
const token = await ((_a = auth.currentUser) == null ? void 0 : _a.getIdToken()) || "";
|
|
125
|
+
const { data, error } = await createEvent(requestData, token);
|
|
126
|
+
if (data) {
|
|
127
|
+
return { data };
|
|
128
|
+
}
|
|
129
|
+
return { error };
|
|
130
|
+
}
|
|
131
|
+
}),
|
|
132
|
+
getAllSocietyRegistrations: builder.query({
|
|
133
|
+
query: ({ eventId, page, limit = 20 }) => `/api/v1/vendor-app/get-society-registrations?event_id=${eventId}&page=${page}&limit=${limit}`,
|
|
134
|
+
transformResponse: (response) => response == null ? void 0 : response.data,
|
|
135
|
+
providesTags: (result, error, arg) => [
|
|
136
|
+
{ type: "Events", id: `registrations-${arg.eventId}` }
|
|
137
|
+
]
|
|
138
|
+
}),
|
|
139
|
+
getEventAnalytics: builder.query({
|
|
140
|
+
query: (eventId) => `/api/v1/vendor-app/get-event-analytics?event_id=${eventId}`,
|
|
141
|
+
transformResponse: (response) => response == null ? void 0 : response.data
|
|
142
|
+
}),
|
|
143
|
+
generateEventTransactionsReport: builder.mutation({
|
|
144
|
+
queryFn: async ({ eventId, emails }) => {
|
|
145
|
+
var _a;
|
|
146
|
+
const token = await ((_a = auth.currentUser) == null ? void 0 : _a.getIdToken()) || "";
|
|
147
|
+
const response = await fetch(`${BASE_URL}/api/v1/vendor-app/generate-event-transactions-report`, {
|
|
148
|
+
method: "POST",
|
|
149
|
+
mode: "cors",
|
|
150
|
+
headers: {
|
|
151
|
+
"Content-Type": "application/json",
|
|
152
|
+
Authorization: `Bearer ${token}`
|
|
153
|
+
},
|
|
154
|
+
body: JSON.stringify({ event_id: eventId, emails })
|
|
155
|
+
});
|
|
156
|
+
const data = await response.json();
|
|
157
|
+
if (response.ok) {
|
|
158
|
+
return { data };
|
|
159
|
+
}
|
|
160
|
+
return { error: { data, status: response.status } };
|
|
161
|
+
}
|
|
162
|
+
}),
|
|
163
|
+
getRecentReportEmail: builder.query({
|
|
164
|
+
query: () => `/api/v1/vendor-app/get-recent-report-email`,
|
|
165
|
+
transformResponse: (response) => {
|
|
166
|
+
var _a;
|
|
167
|
+
return (_a = response == null ? void 0 : response.data) == null ? void 0 : _a.email;
|
|
168
|
+
}
|
|
169
|
+
}),
|
|
170
|
+
getEventReportMetadata: builder.query({
|
|
171
|
+
query: (eventId) => `/api/v1/vendor-app/get-event-report-metadata?event_id=${eventId}`,
|
|
172
|
+
transformResponse: (response) => response == null ? void 0 : response.data
|
|
173
|
+
}),
|
|
174
|
+
getRegisteredEvents: builder.query({
|
|
175
|
+
query: () => `/api/v1/vendor-app/get-registered-events`,
|
|
176
|
+
transformResponse: (response) => response == null ? void 0 : response.data
|
|
177
|
+
}),
|
|
178
|
+
changeRegistrationApprovalStatus: builder.mutation({
|
|
179
|
+
queryFn: async ({ txId, status }) => {
|
|
180
|
+
var _a;
|
|
181
|
+
const token = await ((_a = auth.currentUser) == null ? void 0 : _a.getIdToken()) || "";
|
|
182
|
+
const response = await fetch(`${BASE_URL}/api/v1/vendor-app/change-registration-approval-status`, {
|
|
183
|
+
method: "POST",
|
|
184
|
+
mode: "cors",
|
|
185
|
+
headers: {
|
|
186
|
+
"Content-Type": "application/json",
|
|
187
|
+
Authorization: `Bearer ${token}`
|
|
188
|
+
},
|
|
189
|
+
body: JSON.stringify({ tx_id: txId, status })
|
|
190
|
+
});
|
|
191
|
+
const data = await response.json();
|
|
192
|
+
if (response.ok) {
|
|
193
|
+
return { data };
|
|
194
|
+
}
|
|
195
|
+
return { error: { data, status: response.status } };
|
|
196
|
+
}
|
|
197
|
+
}),
|
|
198
|
+
getTitle: builder.mutation({
|
|
199
|
+
query: () => ({
|
|
200
|
+
url: "/api/v1/vendor-app/title-fetch",
|
|
201
|
+
method: "GET"
|
|
202
|
+
}),
|
|
203
|
+
transformResponse: (response) => response == null ? void 0 : response.data
|
|
204
|
+
}),
|
|
205
|
+
reconcileVendor: builder.mutation({
|
|
206
|
+
queryFn: async ({ amount, account_title, account_branch, otp }) => {
|
|
207
|
+
var _a;
|
|
208
|
+
const token = await ((_a = auth.currentUser) == null ? void 0 : _a.getIdToken()) || "";
|
|
209
|
+
const response = await fetch(`${BASE_URL}/api/v1/vendor-app/reconcile`, {
|
|
210
|
+
method: "POST",
|
|
211
|
+
mode: "cors",
|
|
212
|
+
headers: {
|
|
213
|
+
"Content-Type": "application/json",
|
|
214
|
+
Authorization: `Bearer ${token}`
|
|
215
|
+
},
|
|
216
|
+
body: JSON.stringify({
|
|
217
|
+
amount,
|
|
218
|
+
account_title,
|
|
219
|
+
account_branch,
|
|
220
|
+
otp
|
|
221
|
+
})
|
|
222
|
+
});
|
|
223
|
+
const data = await response.json();
|
|
224
|
+
if (response.ok) {
|
|
225
|
+
return { data };
|
|
226
|
+
}
|
|
227
|
+
return { error: { data, status: response.status } };
|
|
228
|
+
},
|
|
229
|
+
invalidatesTags: [{ type: "Events", id: "withdrawal-history" }]
|
|
230
|
+
}),
|
|
231
|
+
saveWithdrawal: builder.mutation({
|
|
232
|
+
query: (data) => ({
|
|
233
|
+
url: "api/v1/vendor-app/save-withdrawal",
|
|
234
|
+
method: "POST",
|
|
235
|
+
body: data
|
|
236
|
+
})
|
|
237
|
+
}),
|
|
238
|
+
initiateWithdrawFunds: builder.mutation({
|
|
239
|
+
query: () => ({
|
|
240
|
+
url: "/api/v1/vendor-app/initiate-withdraw-funds",
|
|
241
|
+
method: "POST"
|
|
242
|
+
})
|
|
243
|
+
}),
|
|
244
|
+
getWithdrawalHistory: builder.query({
|
|
245
|
+
query: (userId) => ({
|
|
246
|
+
url: `api/v1/vendor-app/withdrawal-history`,
|
|
247
|
+
method: "GET"
|
|
248
|
+
}),
|
|
249
|
+
keepUnusedDataFor: 0,
|
|
250
|
+
providesTags: (result, error, userId) => [{ type: "Events", id: `withdrawal-history` }]
|
|
251
|
+
}),
|
|
252
|
+
getWithdrawalCharges: builder.query({
|
|
253
|
+
query: () => ({
|
|
254
|
+
url: `api/v1/vendor-app/get-withdrawal-charges`,
|
|
255
|
+
method: "GET"
|
|
256
|
+
}),
|
|
257
|
+
transformResponse: (response) => response == null ? void 0 : response.data,
|
|
258
|
+
keepUnusedDataFor: 0
|
|
259
|
+
}),
|
|
260
|
+
archiveEvent: builder.mutation({
|
|
261
|
+
query: (eventId) => ({
|
|
262
|
+
url: "/api/v1/vendor-app/archive-event",
|
|
263
|
+
method: "POST",
|
|
264
|
+
body: { event_id: eventId }
|
|
265
|
+
}),
|
|
266
|
+
onQueryStarted: async (eventId, { dispatch, getState, queryFulfilled }) => {
|
|
267
|
+
const state = getState();
|
|
268
|
+
const allEvents = eventApi.endpoints.getAllEvents.select()(state).data;
|
|
269
|
+
const eventToMove = allEvents == null ? void 0 : allEvents.find((e) => e.id === eventId);
|
|
270
|
+
const patchActive = dispatch(
|
|
271
|
+
eventApi.util.updateQueryData("getAllEvents", void 0, (draft) => {
|
|
272
|
+
return draft.filter((event) => event.id !== eventId);
|
|
273
|
+
})
|
|
274
|
+
);
|
|
275
|
+
let patchArchived;
|
|
276
|
+
if (eventToMove) {
|
|
277
|
+
patchArchived = dispatch(
|
|
278
|
+
eventApi.util.updateQueryData("getArchivedEvents", void 0, (draft) => {
|
|
279
|
+
if (!draft.find((e) => e.id === eventId)) {
|
|
280
|
+
draft.unshift({ ...eventToMove, is_archived: true, status: 1 });
|
|
281
|
+
}
|
|
282
|
+
})
|
|
283
|
+
);
|
|
284
|
+
}
|
|
285
|
+
try {
|
|
286
|
+
await queryFulfilled;
|
|
287
|
+
} catch {
|
|
288
|
+
patchActive.undo();
|
|
289
|
+
patchArchived == null ? void 0 : patchArchived.undo();
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
// invalidatesTags: [{ type: "Events", id: "LIST" }, { type: "Events", id: "ARCHIVED_LIST" }]
|
|
293
|
+
}),
|
|
294
|
+
deleteEvent: builder.mutation({
|
|
295
|
+
query: (eventId) => ({
|
|
296
|
+
url: "/api/v1/vendor-app/delete-event",
|
|
297
|
+
method: "DELETE",
|
|
298
|
+
body: { event_id: eventId }
|
|
299
|
+
}),
|
|
300
|
+
onQueryStarted: async (eventId, { dispatch, queryFulfilled }) => {
|
|
301
|
+
const patchResultAll = dispatch(
|
|
302
|
+
eventApi.util.updateQueryData("getAllEvents", void 0, (draft) => {
|
|
303
|
+
return draft.filter((event) => event.id !== eventId);
|
|
304
|
+
})
|
|
305
|
+
);
|
|
306
|
+
const patchResultArchived = dispatch(
|
|
307
|
+
eventApi.util.updateQueryData("getArchivedEvents", void 0, (draft) => {
|
|
308
|
+
return draft.filter((event) => event.id !== eventId);
|
|
309
|
+
})
|
|
310
|
+
);
|
|
311
|
+
try {
|
|
312
|
+
await queryFulfilled;
|
|
313
|
+
} catch {
|
|
314
|
+
patchResultAll.undo();
|
|
315
|
+
patchResultArchived.undo();
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
// invalidatesTags: [{ type: "Events", id: "LIST" }, { type: "Events", id: "ARCHIVED_LIST" }]
|
|
319
|
+
}),
|
|
320
|
+
restoreEvent: builder.mutation({
|
|
321
|
+
query: (eventId) => ({
|
|
322
|
+
url: "/api/v1/vendor-app/restore-archived-event",
|
|
323
|
+
method: "POST",
|
|
324
|
+
body: { event_id: eventId }
|
|
325
|
+
}),
|
|
326
|
+
onQueryStarted: async (eventId, { dispatch, getState, queryFulfilled }) => {
|
|
327
|
+
const state = getState();
|
|
328
|
+
const archivedEvents = eventApi.endpoints.getArchivedEvents.select()(state).data;
|
|
329
|
+
const eventToRestore = archivedEvents == null ? void 0 : archivedEvents.find((e) => e.id === eventId);
|
|
330
|
+
const patchArchived = dispatch(
|
|
331
|
+
eventApi.util.updateQueryData("getArchivedEvents", void 0, (draft) => {
|
|
332
|
+
return draft.filter((event) => event.id !== eventId);
|
|
333
|
+
})
|
|
334
|
+
);
|
|
335
|
+
let patchActive;
|
|
336
|
+
if (eventToRestore) {
|
|
337
|
+
patchActive = dispatch(
|
|
338
|
+
eventApi.util.updateQueryData("getAllEvents", void 0, (draft) => {
|
|
339
|
+
if (!draft.find((e) => e.id === eventId)) {
|
|
340
|
+
draft.unshift({ ...eventToRestore, is_archived: false });
|
|
341
|
+
}
|
|
342
|
+
})
|
|
343
|
+
);
|
|
344
|
+
}
|
|
345
|
+
try {
|
|
346
|
+
await queryFulfilled;
|
|
347
|
+
} catch {
|
|
348
|
+
patchArchived.undo();
|
|
349
|
+
patchActive == null ? void 0 : patchActive.undo();
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
// invalidatesTags: [{ type: "Events", id: "LIST" }, { type: "Events", id: "ARCHIVED_LIST" }]
|
|
353
|
+
})
|
|
354
|
+
})
|
|
355
|
+
});
|
|
356
|
+
const {
|
|
357
|
+
useGetAllEventsQuery,
|
|
358
|
+
useSubmitEventForApprovalMutation,
|
|
359
|
+
useGetEventByIdQuery,
|
|
360
|
+
useAddQuestionToEventFormMutation,
|
|
361
|
+
useEditQuestionInEventFormMutation,
|
|
362
|
+
useDeleteQuestionFromEventFormMutation,
|
|
363
|
+
useUpdateQuestionsOrderMutation,
|
|
364
|
+
useAddEventMutation,
|
|
365
|
+
useGetAllSocietyRegistrationsQuery,
|
|
366
|
+
useGetEventAnalyticsQuery,
|
|
367
|
+
useGenerateEventTransactionsReportMutation,
|
|
368
|
+
useGetRecentReportEmailQuery,
|
|
369
|
+
useGetEventReportMetadataQuery,
|
|
370
|
+
useGetRegisteredEventsQuery,
|
|
371
|
+
useChangeRegistrationApprovalStatusMutation,
|
|
372
|
+
useGetTitleMutation,
|
|
373
|
+
useReconcileVendorMutation,
|
|
374
|
+
useInitiateWithdrawFundsMutation,
|
|
375
|
+
useGetWithdrawalHistoryQuery,
|
|
376
|
+
useSaveWithdrawalMutation,
|
|
377
|
+
useGetWithdrawalChargesQuery,
|
|
378
|
+
useGetArchivedEventsQuery,
|
|
379
|
+
useArchiveEventMutation,
|
|
380
|
+
useDeleteEventMutation,
|
|
381
|
+
useRestoreEventMutation
|
|
382
|
+
} = eventApi;
|
|
383
|
+
export {
|
|
384
|
+
eventApi,
|
|
385
|
+
useAddEventMutation,
|
|
386
|
+
useAddQuestionToEventFormMutation,
|
|
387
|
+
useArchiveEventMutation,
|
|
388
|
+
useChangeRegistrationApprovalStatusMutation,
|
|
389
|
+
useDeleteEventMutation,
|
|
390
|
+
useDeleteQuestionFromEventFormMutation,
|
|
391
|
+
useEditQuestionInEventFormMutation,
|
|
392
|
+
useGenerateEventTransactionsReportMutation,
|
|
393
|
+
useGetAllEventsQuery,
|
|
394
|
+
useGetAllSocietyRegistrationsQuery,
|
|
395
|
+
useGetArchivedEventsQuery,
|
|
396
|
+
useGetEventAnalyticsQuery,
|
|
397
|
+
useGetEventByIdQuery,
|
|
398
|
+
useGetEventReportMetadataQuery,
|
|
399
|
+
useGetRecentReportEmailQuery,
|
|
400
|
+
useGetRegisteredEventsQuery,
|
|
401
|
+
useGetTitleMutation,
|
|
402
|
+
useGetWithdrawalChargesQuery,
|
|
403
|
+
useGetWithdrawalHistoryQuery,
|
|
404
|
+
useInitiateWithdrawFundsMutation,
|
|
405
|
+
useReconcileVendorMutation,
|
|
406
|
+
useRestoreEventMutation,
|
|
407
|
+
useSaveWithdrawalMutation,
|
|
408
|
+
useSubmitEventForApprovalMutation,
|
|
409
|
+
useUpdateQuestionsOrderMutation
|
|
410
|
+
};
|
|
411
|
+
//# sourceMappingURL=eventApi.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eventApi.js","sources":["../../src/services/eventApi.ts"],"sourcesContent":["import { createApi } from '@reduxjs/toolkit/query/react';\r\nimport baseQuery from \"@/redux/baseQuery\";\r\nimport { addQuestionToEventForm, createEvent, deleteQuestionFromEventForm, editQuestionInEventForm, submitEventForApproval, updateQuestionsOrder, archiveEvent, deleteEvent, restoreEvent } from '../lib/actions';\r\nimport { auth } from '../services/initialize-firebase';\r\nimport { BASE_URL } from '../services/remote-config';\r\nimport { ApprovalStatus } from '@/types/events';\r\n\r\nexport const eventApi = createApi({\r\n reducerPath: 'eventApi',\r\n baseQuery,\r\n tagTypes: [\"Events\"],\r\n endpoints: (builder) => ({\r\n getAllEvents: builder.query<any, void>({\r\n query: () => \"/api/v1/vendor-app/get-all-events\",\r\n transformResponse: (response: any) => response?.data,\r\n providesTags: [{ type: \"Events\", id: \"LIST\" }],\r\n }),\r\n getArchivedEvents: builder.query<any, void>({\r\n query: () => \"/api/v1/vendor-app/get-archived-events\",\r\n transformResponse: (response: any) => response?.data,\r\n providesTags: [{ type: \"Events\", id: \"ARCHIVED_LIST\" }],\r\n }),\r\n submitEventForApproval: builder.mutation<any, string>({\r\n queryFn: async (eventId: string) => {\r\n const token = await auth.currentUser?.getIdToken() || \"\";\r\n const { data, error } = await submitEventForApproval({ event_id: eventId }, token);\r\n if (data) {\r\n return { data };\r\n }\r\n return { error }\r\n\r\n },\r\n onQueryStarted: async (eventId, { dispatch, queryFulfilled }) => {\r\n const patchResult = dispatch(\r\n (eventApi.util.updateQueryData as any)('getAllEvents', (undefined as any), (draft: any) => {\r\n const event = draft?.find((e: any) => e.id === eventId);\r\n if (event) {\r\n event.status = 3; // PENDING APPROVAL\r\n }\r\n })\r\n );\r\n try {\r\n await queryFulfilled;\r\n } catch {\r\n patchResult.undo();\r\n }\r\n },\r\n invalidatesTags: [{ type: \"Events\", id: \"LIST\" }]\r\n }),\r\n getEventById: builder.query<any, string>({\r\n query: (id: string) => `/api/v1/vendor-app/get-event?event_id=${id}`,\r\n transformResponse: (response: any) => response?.data,\r\n providesTags: (result, error, id) => [{ type: 'Events', id }],\r\n }),\r\n addQuestionToEventForm: builder.mutation<any, any>({\r\n queryFn: async (requestData: any) => {\r\n const token = await auth.currentUser?.getIdToken() || \"\";\r\n const { data, error } = await addQuestionToEventForm(requestData, token);\r\n if (data) {\r\n return { data };\r\n }\r\n return { error }\r\n\r\n },\r\n }),\r\n editQuestionInEventForm: builder.mutation<any, any>({\r\n queryFn: async (requestData: any) => {\r\n const token = await auth.currentUser?.getIdToken() || \"\";\r\n const { data, error } = await editQuestionInEventForm(requestData, token);\r\n if (data) {\r\n return { data };\r\n }\r\n return { error }\r\n\r\n },\r\n }),\r\n deleteQuestionFromEventForm: builder.mutation<any, any>({\r\n queryFn: async (requestData: any) => {\r\n const token = await auth.currentUser?.getIdToken() || \"\";\r\n const { data, error } = await deleteQuestionFromEventForm(requestData, token);\r\n if (data) {\r\n return { data };\r\n }\r\n return { error }\r\n\r\n },\r\n }),\r\n updateQuestionsOrder: builder.mutation<any, any>({\r\n queryFn: async (requestData: any) => {\r\n const token = await auth.currentUser?.getIdToken() || \"\";\r\n const { data, error } = await updateQuestionsOrder(requestData, token);\r\n if (data) {\r\n return { data: data?.data };\r\n }\r\n return { error }\r\n\r\n },\r\n onQueryStarted: async (requestData, { dispatch, queryFulfilled }) => {\r\n const patchResult = dispatch(\r\n (eventApi.util.updateQueryData as any)('getEventById', requestData.event_id, (draft) => {\r\n if (draft?.event_form_schema?.fields) {\r\n const fieldMap = new Map(draft.event_form_schema.fields.map((f: any) => [f.question, f]));\r\n\r\n const sortedRequestQuestions = [...requestData.questions].sort((a: any, b: any) => a.order - b.order);\r\n\r\n const newFields = sortedRequestQuestions\r\n .map((q: any) => fieldMap.get(q.question))\r\n .filter((f: any) => f !== undefined);\r\n\r\n\r\n // Only update if we successfully reconstructed the list (sanity check)\r\n if (newFields.length === draft.event_form_schema.fields.length) {\r\n draft.event_form_schema.fields = newFields;\r\n } else {\r\n console.warn(\"Optimistic update aborted: Length mismatch\");\r\n }\r\n } else {\r\n console.warn(\"Optimistic update aborted: Draft fields not found\");\r\n }\r\n })\r\n );\r\n try {\r\n await queryFulfilled;\r\n } catch {\r\n patchResult.undo();\r\n }\r\n },\r\n }),\r\n addEvent: builder.mutation<any, any>({\r\n queryFn: async (requestData: any) => {\r\n const token = await auth.currentUser?.getIdToken() || \"\";\r\n const { data, error } = await createEvent(requestData, token);\r\n if (data) {\r\n return { data: data };\r\n }\r\n return { error }\r\n },\r\n }),\r\n getAllSocietyRegistrations: builder.query<any, { eventId: string; page: number; limit: number; }>({\r\n query: ({ eventId, page, limit = 20 }) =>\r\n `/api/v1/vendor-app/get-society-registrations?event_id=${eventId}&page=${page}&limit=${limit}`,\r\n transformResponse: (response: any) => response?.data,\r\n providesTags: (result, error, arg) => [\r\n { type: 'Events', id: `registrations-${arg.eventId}` },\r\n ],\r\n }),\r\n getEventAnalytics: builder.query<any, string>({\r\n query: (eventId: string) => `/api/v1/vendor-app/get-event-analytics?event_id=${eventId}`,\r\n transformResponse: (response: any) => response?.data,\r\n }),\r\n generateEventTransactionsReport: builder.mutation<any, { eventId: string, emails: string[] }>({\r\n queryFn: async ({ eventId, emails }) => {\r\n const token = await auth.currentUser?.getIdToken() || \"\";\r\n const response = await fetch(`${BASE_URL}/api/v1/vendor-app/generate-event-transactions-report`, {\r\n method: \"POST\",\r\n mode: \"cors\",\r\n headers: {\r\n \"Content-Type\": \"application/json\",\r\n Authorization: `Bearer ${token}`,\r\n },\r\n body: JSON.stringify({ event_id: eventId, emails })\r\n });\r\n\r\n const data = await response.json();\r\n\r\n if (response.ok) {\r\n return { data };\r\n }\r\n\r\n return { error: { data, status: response.status } }\r\n }\r\n }),\r\n getRecentReportEmail: builder.query<any, void>({\r\n query: () => `/api/v1/vendor-app/get-recent-report-email`,\r\n transformResponse: (response: any) => response?.data?.email\r\n }),\r\n getEventReportMetadata: builder.query<any, string>({\r\n query: (eventId: string) => `/api/v1/vendor-app/get-event-report-metadata?event_id=${eventId}`,\r\n transformResponse: (response: any) => response?.data\r\n }),\r\n getRegisteredEvents: builder.query<any, void>({\r\n query: () => `/api/v1/vendor-app/get-registered-events`,\r\n transformResponse: (response: any) => response?.data\r\n }),\r\n changeRegistrationApprovalStatus: builder.mutation<any, { txId: string, status: ApprovalStatus }>({\r\n queryFn: async ({ txId, status }) => {\r\n const token = await auth.currentUser?.getIdToken() || \"\";\r\n const response = await fetch(`${BASE_URL}/api/v1/vendor-app/change-registration-approval-status`, {\r\n method: \"POST\",\r\n mode: \"cors\",\r\n headers: {\r\n \"Content-Type\": \"application/json\",\r\n Authorization: `Bearer ${token}`,\r\n },\r\n body: JSON.stringify({ tx_id: txId, status })\r\n });\r\n\r\n const data = await response.json();\r\n\r\n if (response.ok) {\r\n return { data };\r\n }\r\n\r\n return { error: { data, status: response.status } }\r\n }\r\n }),\r\n getTitle: builder.mutation<any, any>({\r\n query: () => ({\r\n url: '/api/v1/vendor-app/title-fetch',\r\n method: 'GET',\r\n }),\r\n transformResponse: (response: any) => response?.data,\r\n }),\r\n reconcileVendor: builder.mutation<any, { amount: number; account_title: string; account_branch: string; otp: string; }>({\r\n queryFn: async ({ amount, account_title, account_branch, otp }) => {\r\n const token = await auth.currentUser?.getIdToken() || \"\";\r\n\r\n const response = await fetch(`${BASE_URL}/api/v1/vendor-app/reconcile`, {\r\n method: \"POST\",\r\n mode: \"cors\",\r\n headers: {\r\n \"Content-Type\": \"application/json\",\r\n Authorization: `Bearer ${token}`,\r\n },\r\n body: JSON.stringify({\r\n amount,\r\n account_title,\r\n account_branch,\r\n otp\r\n }),\r\n });\r\n\r\n const data = await response.json();\r\n\r\n if (response.ok) {\r\n return { data };\r\n }\r\n\r\n return { error: { data, status: response.status } };\r\n },\r\n invalidatesTags: [{ type: 'Events', id: 'withdrawal-history' }],\r\n }),\r\n saveWithdrawal: builder.mutation({\r\n query: (data) => ({\r\n url: 'api/v1/vendor-app/save-withdrawal',\r\n method: 'POST',\r\n body: data,\r\n }),\r\n }),\r\n\r\n initiateWithdrawFunds: builder.mutation<any, void>({\r\n query: () => ({\r\n url: '/api/v1/vendor-app/initiate-withdraw-funds',\r\n method: 'POST',\r\n }),\r\n }),\r\n\r\n getWithdrawalHistory: builder.query({\r\n query: (userId) => ({\r\n url: `api/v1/vendor-app/withdrawal-history`,\r\n method: 'GET',\r\n }),\r\n keepUnusedDataFor: 0,\r\n providesTags: (result, error, userId) => [{ type: 'Events', id: `withdrawal-history` }],\r\n }),\r\n getWithdrawalCharges: builder.query<any, void>({\r\n query: () => ({\r\n url: `api/v1/vendor-app/get-withdrawal-charges`,\r\n method: 'GET',\r\n }),\r\n transformResponse: (response: any) => response?.data,\r\n keepUnusedDataFor: 0,\r\n }),\r\n archiveEvent: builder.mutation<any, string>({\r\n query: (eventId: string) => ({\r\n url: \"/api/v1/vendor-app/archive-event\",\r\n method: \"POST\",\r\n body: { event_id: eventId },\r\n }),\r\n onQueryStarted: async (eventId, { dispatch, getState, queryFulfilled }) => {\r\n const state: any = getState();\r\n const allEvents = eventApi.endpoints.getAllEvents.select()(state).data;\r\n const eventToMove = allEvents?.find((e: any) => e.id === eventId);\r\n\r\n const patchActive = dispatch(\r\n (eventApi.util.updateQueryData as any)('getAllEvents', (undefined as any), (draft: any) => {\r\n return (draft as any).filter((event: any) => event.id !== eventId);\r\n })\r\n );\r\n\r\n let patchArchived;\r\n if (eventToMove) {\r\n patchArchived = dispatch(\r\n (eventApi.util.updateQueryData as any)('getArchivedEvents', (undefined as any), (draft: any) => {\r\n if (!(draft as any).find((e: any) => e.id === eventId)) {\r\n (draft as any).unshift({ ...eventToMove, is_archived: true, status: 1 });\r\n }\r\n })\r\n );\r\n }\r\n\r\n try {\r\n await queryFulfilled;\r\n } catch {\r\n patchActive.undo();\r\n patchArchived?.undo();\r\n }\r\n },\r\n // invalidatesTags: [{ type: \"Events\", id: \"LIST\" }, { type: \"Events\", id: \"ARCHIVED_LIST\" }]\r\n }),\r\n deleteEvent: builder.mutation<any, string>({\r\n query: (eventId: string) => ({\r\n url: \"/api/v1/vendor-app/delete-event\",\r\n method: \"DELETE\",\r\n body: { event_id: eventId },\r\n }),\r\n onQueryStarted: async (eventId, { dispatch, queryFulfilled }) => {\r\n const patchResultAll = dispatch(\r\n (eventApi.util.updateQueryData as any)('getAllEvents', (undefined as any), (draft: any) => {\r\n return (draft as any).filter((event: any) => event.id !== eventId);\r\n })\r\n );\r\n const patchResultArchived = dispatch(\r\n (eventApi.util.updateQueryData as any)('getArchivedEvents', (undefined as any), (draft: any) => {\r\n return (draft as any).filter((event: any) => event.id !== eventId);\r\n })\r\n );\r\n try {\r\n await queryFulfilled;\r\n } catch {\r\n patchResultAll.undo();\r\n patchResultArchived.undo();\r\n }\r\n },\r\n // invalidatesTags: [{ type: \"Events\", id: \"LIST\" }, { type: \"Events\", id: \"ARCHIVED_LIST\" }]\r\n }),\r\n restoreEvent: builder.mutation<any, string>({\r\n query: (eventId: string) => ({\r\n url: \"/api/v1/vendor-app/restore-archived-event\",\r\n method: \"POST\",\r\n body: { event_id: eventId },\r\n }),\r\n onQueryStarted: async (eventId, { dispatch, getState, queryFulfilled }) => {\r\n const state: any = getState();\r\n const archivedEvents = eventApi.endpoints.getArchivedEvents.select()(state).data;\r\n const eventToRestore = archivedEvents?.find((e: any) => e.id === eventId);\r\n\r\n const patchArchived = dispatch(\r\n (eventApi.util.updateQueryData as any)('getArchivedEvents', (undefined as any), (draft: any) => {\r\n return (draft as any).filter((event: any) => event.id !== eventId);\r\n })\r\n );\r\n\r\n let patchActive;\r\n if (eventToRestore) {\r\n patchActive = dispatch(\r\n (eventApi.util.updateQueryData as any)('getAllEvents', (undefined as any), (draft: any) => {\r\n if (!(draft as any).find((e: any) => e.id === eventId)) {\r\n (draft as any).unshift({ ...eventToRestore, is_archived: false });\r\n }\r\n })\r\n );\r\n }\r\n\r\n try {\r\n await queryFulfilled;\r\n } catch {\r\n patchArchived.undo();\r\n patchActive?.undo();\r\n }\r\n },\r\n // invalidatesTags: [{ type: \"Events\", id: \"LIST\" }, { type: \"Events\", id: \"ARCHIVED_LIST\" }]\r\n })\r\n }),\r\n});\r\n\r\nexport const {\r\n useGetAllEventsQuery,\r\n useSubmitEventForApprovalMutation,\r\n useGetEventByIdQuery,\r\n useAddQuestionToEventFormMutation,\r\n useEditQuestionInEventFormMutation,\r\n useDeleteQuestionFromEventFormMutation,\r\n useUpdateQuestionsOrderMutation,\r\n useAddEventMutation,\r\n useGetAllSocietyRegistrationsQuery,\r\n useGetEventAnalyticsQuery,\r\n useGenerateEventTransactionsReportMutation,\r\n useGetRecentReportEmailQuery,\r\n useGetEventReportMetadataQuery,\r\n useGetRegisteredEventsQuery,\r\n useChangeRegistrationApprovalStatusMutation,\r\n useGetTitleMutation,\r\n useReconcileVendorMutation,\r\n useInitiateWithdrawFundsMutation,\r\n useGetWithdrawalHistoryQuery,\r\n useSaveWithdrawalMutation,\r\n useGetWithdrawalChargesQuery,\r\n useGetArchivedEventsQuery,\r\n useArchiveEventMutation,\r\n useDe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AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACJ,IAAI;"}
|
|
@@ -0,0 +1,50 @@
|
|
|
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;
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
const splitDate = (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.getUTCFullYear();
|
|
6
|
+
const month = String(dateObj.getUTCMonth() + 1).padStart(2, "0");
|
|
7
|
+
const day = String(dateObj.getUTCDate()).padStart(2, "0");
|
|
8
|
+
const hours = String(dateObj.getUTCHours()).padStart(2, "0");
|
|
9
|
+
const minutes = String(dateObj.getUTCMinutes()).padStart(2, "0");
|
|
10
|
+
return {
|
|
11
|
+
date: `${year}-${month}-${day}`,
|
|
12
|
+
time: `${hours}:${minutes}`
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
const transformApiDataToFormState = (apiData) => {
|
|
16
|
+
var _a, _b;
|
|
17
|
+
if (!apiData) return {};
|
|
18
|
+
const ticketTiersRecord = {};
|
|
19
|
+
if (Array.isArray(apiData == null ? void 0 : apiData.ticket_tiers)) {
|
|
20
|
+
apiData == null ? void 0 : apiData.ticket_tiers.forEach((tier) => {
|
|
21
|
+
const id = tier.id || tier._id || Math.random().toString(36).substr(2, 9);
|
|
22
|
+
let discountDate = void 0;
|
|
23
|
+
let discountTime = void 0;
|
|
24
|
+
if (tier.discount_valid_till_time && tier.discount_valid_till_date) {
|
|
25
|
+
discountDate = tier.discount_valid_till_date;
|
|
26
|
+
discountTime = tier.discount_valid_till_time;
|
|
27
|
+
} else if (tier.discount_valid_till) {
|
|
28
|
+
const dateObj = splitDate(tier.discount_valid_till);
|
|
29
|
+
discountDate = dateObj.date;
|
|
30
|
+
discountTime = dateObj.time;
|
|
31
|
+
}
|
|
32
|
+
ticketTiersRecord[id] = {
|
|
33
|
+
...tier,
|
|
34
|
+
has_discount: !!tier.discount_valid_till || tier.discounted_price !== void 0 && tier.discounted_price !== null && tier.discounted_price > 0,
|
|
35
|
+
discount_valid_till_date: discountDate,
|
|
36
|
+
discount_valid_till_time: discountTime,
|
|
37
|
+
discounted_price: tier.discounted_price ?? tier.discount_price
|
|
38
|
+
};
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
const ticketType = ((_a = Object.values(apiData == null ? void 0 : apiData.ticket_tiers)) == null ? void 0 : _a.length) === 0 ? "CUSTOM_FORM" : "TICKET_TIER";
|
|
42
|
+
const participation_type = (apiData == null ? void 0 : apiData.participation_type) || (apiData == null ? void 0 : apiData.participants_type);
|
|
43
|
+
let participants_type;
|
|
44
|
+
if (String(participation_type) === "1") participants_type = "INDIVIDUAL";
|
|
45
|
+
else if (String(participation_type) === "2") participants_type = "TEAM";
|
|
46
|
+
else if (String(participation_type) === "3") participants_type = "BOTH";
|
|
47
|
+
const isTeam = participation_type === "2" || participation_type === "3";
|
|
48
|
+
const isIndividual = participation_type === "1";
|
|
49
|
+
const existingFields = ((_b = apiData == null ? void 0 : apiData.event_form_schema) == null ? void 0 : _b.fields) || [];
|
|
50
|
+
const mergedFields = existingFields;
|
|
51
|
+
const event_categories = Array.isArray(apiData == null ? void 0 : apiData.categories) ? apiData == null ? void 0 : apiData.categories.map((cat) => {
|
|
52
|
+
return (cat == null ? void 0 : cat.category_id) || (cat == null ? void 0 : cat.id);
|
|
53
|
+
}) : [];
|
|
54
|
+
return {
|
|
55
|
+
name: (apiData == null ? void 0 : apiData.name) || (apiData == null ? void 0 : apiData.event_name),
|
|
56
|
+
// API sample uses 'name'
|
|
57
|
+
description: apiData == null ? void 0 : apiData.description,
|
|
58
|
+
venue: apiData == null ? void 0 : apiData.venue,
|
|
59
|
+
venue_place_id: apiData == null ? void 0 : apiData.venue_place_id,
|
|
60
|
+
image_url: apiData == null ? void 0 : apiData.image_url,
|
|
61
|
+
thumbnail_url: apiData == null ? void 0 : apiData.thumbnail_url,
|
|
62
|
+
// Handle both standard keys and legacy keys if they differ
|
|
63
|
+
event_start_timestamp: splitDate(apiData == null ? void 0 : apiData.event_start_timestamp),
|
|
64
|
+
event_end_timestamp: splitDate(apiData == null ? void 0 : apiData.event_end_timestamp),
|
|
65
|
+
registration_start_timestamp: splitDate(apiData == null ? void 0 : apiData.registration_start_timestamp),
|
|
66
|
+
registration_end_timestamp: splitDate(apiData == null ? void 0 : apiData.registration_end_timestamp),
|
|
67
|
+
event_type: Array.isArray((apiData == null ? void 0 : apiData.event_types) || (apiData == null ? void 0 : apiData.event_type)) ? (apiData == null ? void 0 : apiData.event_types) || (apiData == null ? void 0 : apiData.event_type) : [(apiData == null ? void 0 : apiData.event_types) || (apiData == null ? void 0 : apiData.event_type)],
|
|
68
|
+
institution_name: (apiData == null ? void 0 : apiData.institution_name) || "",
|
|
69
|
+
event_categories,
|
|
70
|
+
custom_category: (apiData == null ? void 0 : apiData.custom_category) || "",
|
|
71
|
+
location_data: Object.keys(apiData == null ? void 0 : apiData.location_data).length > 0 ? apiData == null ? void 0 : apiData.location_data : {
|
|
72
|
+
type: ((apiData == null ? void 0 : apiData.location_type) || "in-person").toLowerCase() === "physical" ? "in-person" : ((apiData == null ? void 0 : apiData.location_type) || "in-person").toLowerCase(),
|
|
73
|
+
displayName: apiData == null ? void 0 : apiData.venue,
|
|
74
|
+
address: apiData == null ? void 0 : apiData.venue,
|
|
75
|
+
placeId: apiData == null ? void 0 : apiData.venue_place_id
|
|
76
|
+
},
|
|
77
|
+
location_type: ((apiData == null ? void 0 : apiData.location_type) || "in-person").toLowerCase() === "physical" ? "in-person" : ((apiData == null ? void 0 : apiData.location_type) || "in-person").toLowerCase(),
|
|
78
|
+
// Step 2 Fields
|
|
79
|
+
ticket_type: ticketType,
|
|
80
|
+
// Ticket Tier specific
|
|
81
|
+
ticket_tiers: ticketTiersRecord,
|
|
82
|
+
// Custom Form specific
|
|
83
|
+
participation_type,
|
|
84
|
+
participants_type,
|
|
85
|
+
// Individual
|
|
86
|
+
individual_price: isIndividual ? apiData == null ? void 0 : apiData.registration_fee : apiData == null ? void 0 : apiData.individual_registration_fee,
|
|
87
|
+
individual_capacity: isIndividual ? apiData == null ? void 0 : apiData.capacity : apiData == null ? void 0 : apiData.individual_capacity,
|
|
88
|
+
// Team
|
|
89
|
+
// If 'team_price' is explicitly in API use it, otherwise fallback to registration_fee if type is TEAM
|
|
90
|
+
team_price: (apiData == null ? void 0 : apiData.team_price) ?? (isTeam ? apiData == null ? void 0 : apiData.registration_fee : void 0),
|
|
91
|
+
team_capacity: isTeam ? (apiData == null ? void 0 : apiData.team_capacity) || (apiData == null ? void 0 : apiData.capacity) : void 0,
|
|
92
|
+
min_members: apiData == null ? void 0 : apiData.min_members,
|
|
93
|
+
max_members: apiData == null ? void 0 : apiData.max_members,
|
|
94
|
+
// Handle plural 'fees' from legacy API sample
|
|
95
|
+
per_member_fee: (apiData == null ? void 0 : apiData.individual_additional_fee) ?? (apiData == null ? void 0 : apiData.individual_additional_fees),
|
|
96
|
+
charge_per_delegate_fee: ((apiData == null ? void 0 : apiData.individual_additional_fee) || (apiData == null ? void 0 : apiData.individual_additional_fees)) > 0 ? "YES" : "NO",
|
|
97
|
+
charge_team_price: ((apiData == null ? void 0 : apiData.registration_fee) || (apiData == null ? void 0 : apiData.registration_fees)) > 0 ? "YES" : "NO",
|
|
98
|
+
// Pass through ID for updates
|
|
99
|
+
event_id: apiData == null ? void 0 : apiData.id,
|
|
100
|
+
// Social Profiles
|
|
101
|
+
social_profiles: apiData == null ? void 0 : apiData.social_profiles,
|
|
102
|
+
// Pass through event_form_schema for Step 3 with injected dummy questions
|
|
103
|
+
event_form_schema: {
|
|
104
|
+
...apiData == null ? void 0 : apiData.event_form_schema,
|
|
105
|
+
fields: mergedFields
|
|
106
|
+
},
|
|
107
|
+
discount_file_path: apiData == null ? void 0 : apiData.discount_file_path,
|
|
108
|
+
individual_discount_file_path: apiData == null ? void 0 : apiData.individual_discount_file_path
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
export {
|
|
112
|
+
splitDate,
|
|
113
|
+
transformApiDataToFormState
|
|
114
|
+
};
|
|
115
|
+
//# sourceMappingURL=helpers.js.map
|