@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,301 @@
|
|
|
1
|
+
import { createApi } from "@reduxjs/toolkit/query/react";
|
|
2
|
+
import { auth } from "./initialize-firebase.js";
|
|
3
|
+
import { editEvent, createEvent, updateQuestionsOrder, deleteQuestionFromEventForm, editQuestionInEventForm, addQuestionToEventForm, submitEventForApproval } from "../lib/actions.js";
|
|
4
|
+
import baseQuery from "../redux/baseQuery.js";
|
|
5
|
+
import { BASE_URL } from "./remote-config.js";
|
|
6
|
+
import { transformApiDataToFormState } from "./helpers.js";
|
|
7
|
+
const singleEventApi = createApi({
|
|
8
|
+
reducerPath: "singleEventApi",
|
|
9
|
+
baseQuery,
|
|
10
|
+
tagTypes: ["SingleEvent"],
|
|
11
|
+
endpoints: (builder) => ({
|
|
12
|
+
submitEventForApproval: builder.mutation({
|
|
13
|
+
queryFn: async (eventId) => {
|
|
14
|
+
var _a;
|
|
15
|
+
const token = await ((_a = auth.currentUser) == null ? void 0 : _a.getIdToken()) || "";
|
|
16
|
+
const { data, error } = await submitEventForApproval({ event_id: eventId }, token);
|
|
17
|
+
if (data) {
|
|
18
|
+
return { data };
|
|
19
|
+
}
|
|
20
|
+
return { error };
|
|
21
|
+
},
|
|
22
|
+
invalidatesTags: [{ type: "SingleEvent", id: "LIST" }]
|
|
23
|
+
}),
|
|
24
|
+
getEventDetailsById: builder.query({
|
|
25
|
+
query: (id) => `api/v1/vendor-app/get-event-by-id?event_id=${id}`,
|
|
26
|
+
// Apply transformation here
|
|
27
|
+
transformResponse: (response) => {
|
|
28
|
+
const rawData = response.data;
|
|
29
|
+
return transformApiDataToFormState(rawData);
|
|
30
|
+
},
|
|
31
|
+
providesTags: (result, error, id) => [{ type: "SingleEvent", id }]
|
|
32
|
+
}),
|
|
33
|
+
addQuestionToEventForm: builder.mutation({
|
|
34
|
+
queryFn: async (requestData) => {
|
|
35
|
+
var _a;
|
|
36
|
+
const token = await ((_a = auth.currentUser) == null ? void 0 : _a.getIdToken()) || "";
|
|
37
|
+
const { data, error } = await addQuestionToEventForm(requestData, token);
|
|
38
|
+
if (data) {
|
|
39
|
+
return { data };
|
|
40
|
+
}
|
|
41
|
+
return { error };
|
|
42
|
+
},
|
|
43
|
+
invalidatesTags: (result, error, arg) => [{ type: "SingleEvent", id: arg.event_id }]
|
|
44
|
+
}),
|
|
45
|
+
editQuestionInEventForm: builder.mutation({
|
|
46
|
+
queryFn: async (requestData) => {
|
|
47
|
+
var _a;
|
|
48
|
+
const token = await ((_a = auth.currentUser) == null ? void 0 : _a.getIdToken()) || "";
|
|
49
|
+
const { data, error } = await editQuestionInEventForm(requestData, token);
|
|
50
|
+
if (data) {
|
|
51
|
+
return { data };
|
|
52
|
+
}
|
|
53
|
+
return { error };
|
|
54
|
+
}
|
|
55
|
+
// invalidatesTags: (result, error, arg) => [{ type: 'SingleEvent', id: arg.event_id }]
|
|
56
|
+
}),
|
|
57
|
+
deleteQuestionFromEventForm: builder.mutation({
|
|
58
|
+
queryFn: async (requestData) => {
|
|
59
|
+
var _a;
|
|
60
|
+
const token = await ((_a = auth.currentUser) == null ? void 0 : _a.getIdToken()) || "";
|
|
61
|
+
const { data, error } = await deleteQuestionFromEventForm(requestData, token);
|
|
62
|
+
if (data) {
|
|
63
|
+
return { data };
|
|
64
|
+
}
|
|
65
|
+
return { error };
|
|
66
|
+
}
|
|
67
|
+
// invalidatesTags: (result, error, arg) => [{ type: 'SingleEvent', id: arg.event_id }]
|
|
68
|
+
}),
|
|
69
|
+
updateQuestionsOrder: builder.mutation({
|
|
70
|
+
queryFn: async (requestData) => {
|
|
71
|
+
var _a;
|
|
72
|
+
const token = await ((_a = auth.currentUser) == null ? void 0 : _a.getIdToken()) || "";
|
|
73
|
+
const { data, error } = await updateQuestionsOrder(requestData, token);
|
|
74
|
+
if (data) {
|
|
75
|
+
return { data: data == null ? void 0 : data.data };
|
|
76
|
+
}
|
|
77
|
+
return { error };
|
|
78
|
+
},
|
|
79
|
+
onQueryStarted: async (requestData, { dispatch, queryFulfilled }) => {
|
|
80
|
+
const patchResult = dispatch(
|
|
81
|
+
singleEventApi.util.updateQueryData("getEventDetailsById", requestData.event_id, (draft) => {
|
|
82
|
+
var _a;
|
|
83
|
+
if ((_a = draft == null ? void 0 : draft.event_form_schema) == null ? void 0 : _a.fields) {
|
|
84
|
+
const fieldMap = new Map(draft.event_form_schema.fields.map((f) => [f.question, f]));
|
|
85
|
+
const sortedRequestQuestions = [...requestData.questions].sort((a, b) => a.order - b.order);
|
|
86
|
+
const newFields = sortedRequestQuestions.map((q) => fieldMap.get(q.question)).filter((f) => f !== void 0);
|
|
87
|
+
if (newFields.length === draft.event_form_schema.fields.length) {
|
|
88
|
+
draft.event_form_schema.fields = newFields;
|
|
89
|
+
} else {
|
|
90
|
+
console.warn("Optimistic update aborted: Length mismatch");
|
|
91
|
+
}
|
|
92
|
+
} else {
|
|
93
|
+
console.warn("Optimistic update aborted: Draft fields not found");
|
|
94
|
+
}
|
|
95
|
+
})
|
|
96
|
+
);
|
|
97
|
+
try {
|
|
98
|
+
await queryFulfilled;
|
|
99
|
+
} catch {
|
|
100
|
+
patchResult.undo();
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}),
|
|
104
|
+
addEvent: builder.mutation({
|
|
105
|
+
queryFn: async (requestData) => {
|
|
106
|
+
var _a;
|
|
107
|
+
const token = await ((_a = auth.currentUser) == null ? void 0 : _a.getIdToken()) || "";
|
|
108
|
+
const { data, error } = await createEvent(requestData, token);
|
|
109
|
+
if (data) {
|
|
110
|
+
return { data };
|
|
111
|
+
}
|
|
112
|
+
return { error };
|
|
113
|
+
}
|
|
114
|
+
// invalidatesTags: ['Events']
|
|
115
|
+
}),
|
|
116
|
+
updateEvent: builder.mutation({
|
|
117
|
+
queryFn: async (requestData) => {
|
|
118
|
+
var _a;
|
|
119
|
+
const token = await ((_a = auth.currentUser) == null ? void 0 : _a.getIdToken()) || "";
|
|
120
|
+
const { data, error } = await editEvent(requestData, token);
|
|
121
|
+
if (data) {
|
|
122
|
+
return { data };
|
|
123
|
+
}
|
|
124
|
+
return { error };
|
|
125
|
+
}
|
|
126
|
+
// invalidatesTags: (result, error, arg) => [{ type: "SingleEvent", id: "LIST" }, { type: "SingleEvent", id: arg.event_id }]
|
|
127
|
+
}),
|
|
128
|
+
updateEventSocialProfiles: builder.mutation({
|
|
129
|
+
query: (data) => ({ url: "/api/v1/vendor-app/update-event-social-profiles", method: "POST", body: data }),
|
|
130
|
+
transformResponse: (response) => response == null ? void 0 : response.data,
|
|
131
|
+
invalidatesTags: (result, error, arg) => [{ type: "SingleEvent", id: arg.event_id }]
|
|
132
|
+
}),
|
|
133
|
+
getAllSocietyRegistrations: builder.infiniteQuery({
|
|
134
|
+
infiniteQueryOptions: {
|
|
135
|
+
initialPageParam: 1,
|
|
136
|
+
getNextPageParam: (lastPage, allPages, lastPageParam) => {
|
|
137
|
+
return lastPage.external_registrations.length == 20 || lastPage.draft_registrations.length == 20 ? lastPageParam + 1 : void 0;
|
|
138
|
+
},
|
|
139
|
+
getPreviousPageParam: (firstPage, allPages, firstPageParam) => {
|
|
140
|
+
return firstPageParam > 0 ? firstPageParam - 1 : void 0;
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
query: (arg) => {
|
|
144
|
+
const { queryArg, pageParam } = arg;
|
|
145
|
+
return `/get-society-registrations?event_id=${queryArg}&page=${pageParam}&limit=20`;
|
|
146
|
+
},
|
|
147
|
+
transformResponse: (response) => response == null ? void 0 : response.data,
|
|
148
|
+
providesTags: (result, error, id) => [{ type: "SingleEvent", id: `registrations-${id}` }]
|
|
149
|
+
}),
|
|
150
|
+
getEventAnalytics: builder.query({
|
|
151
|
+
query: (eventId) => `/get-event-analytics?event_id=${eventId}`,
|
|
152
|
+
transformResponse: (response) => response == null ? void 0 : response.data
|
|
153
|
+
}),
|
|
154
|
+
generateEventTransactionsReport: builder.mutation({
|
|
155
|
+
queryFn: async ({ eventId, emails }) => {
|
|
156
|
+
var _a;
|
|
157
|
+
const token = await ((_a = auth.currentUser) == null ? void 0 : _a.getIdToken()) || "";
|
|
158
|
+
const response = await fetch(`${BASE_URL}/generate-event-transactions-report`, {
|
|
159
|
+
method: "POST",
|
|
160
|
+
mode: "cors",
|
|
161
|
+
headers: {
|
|
162
|
+
"Content-Type": "application/json",
|
|
163
|
+
Authorization: `Bearer ${token}`
|
|
164
|
+
},
|
|
165
|
+
body: JSON.stringify({ event_id: eventId, emails })
|
|
166
|
+
});
|
|
167
|
+
const data = await response.json();
|
|
168
|
+
if (response.ok) return { data };
|
|
169
|
+
return { error: { data, status: response.status } };
|
|
170
|
+
}
|
|
171
|
+
}),
|
|
172
|
+
getRecentReportEmail: builder.query({
|
|
173
|
+
query: () => `/get-recent-report-email`,
|
|
174
|
+
transformResponse: (response) => {
|
|
175
|
+
var _a;
|
|
176
|
+
return (_a = response == null ? void 0 : response.data) == null ? void 0 : _a.email;
|
|
177
|
+
}
|
|
178
|
+
}),
|
|
179
|
+
getEventReportMetadata: builder.query({
|
|
180
|
+
query: (eventId) => `/get-event-report-metadata?event_id=${eventId}`,
|
|
181
|
+
transformResponse: (response) => response == null ? void 0 : response.data
|
|
182
|
+
}),
|
|
183
|
+
getRegisteredEvents: builder.query({
|
|
184
|
+
query: () => `/get-registered-events`,
|
|
185
|
+
transformResponse: (response) => response == null ? void 0 : response.data
|
|
186
|
+
}),
|
|
187
|
+
changeRegistrationApprovalStatus: builder.mutation({
|
|
188
|
+
queryFn: async ({ qrId, status }) => {
|
|
189
|
+
var _a;
|
|
190
|
+
const token = await ((_a = auth.currentUser) == null ? void 0 : _a.getIdToken()) || "";
|
|
191
|
+
const response = await fetch(`${BASE_URL}/change-registration-approval-status`, {
|
|
192
|
+
method: "POST",
|
|
193
|
+
mode: "cors",
|
|
194
|
+
headers: {
|
|
195
|
+
"Content-Type": "application/json",
|
|
196
|
+
Authorization: `Bearer ${token}`
|
|
197
|
+
},
|
|
198
|
+
body: JSON.stringify({ qr_id: qrId, status })
|
|
199
|
+
});
|
|
200
|
+
const data = await response.json();
|
|
201
|
+
if (response.ok) return { data };
|
|
202
|
+
return { error: { data, status: response.status } };
|
|
203
|
+
}
|
|
204
|
+
}),
|
|
205
|
+
getTitle: builder.mutation({
|
|
206
|
+
query: () => ({
|
|
207
|
+
url: "/api/bop/v1/title-fetch-reconcile-vendor",
|
|
208
|
+
method: "GET"
|
|
209
|
+
}),
|
|
210
|
+
transformResponse: (response) => response == null ? void 0 : response.data
|
|
211
|
+
}),
|
|
212
|
+
reconcileVendor: builder.mutation({
|
|
213
|
+
queryFn: async ({ event_id, amount, account_branch, initial_amount_without_cut }) => {
|
|
214
|
+
var _a;
|
|
215
|
+
const token = await ((_a = auth.currentUser) == null ? void 0 : _a.getIdToken()) || "";
|
|
216
|
+
const response = await fetch(`${BASE_URL}/api/bop/v1/reconcile-event-organizer`, {
|
|
217
|
+
method: "POST",
|
|
218
|
+
mode: "cors",
|
|
219
|
+
headers: {
|
|
220
|
+
"Content-Type": "application/json",
|
|
221
|
+
Authorization: `Bearer ${token}`
|
|
222
|
+
},
|
|
223
|
+
body: JSON.stringify({
|
|
224
|
+
event_id,
|
|
225
|
+
amount,
|
|
226
|
+
account_branch,
|
|
227
|
+
initial_amount_without_cut
|
|
228
|
+
})
|
|
229
|
+
});
|
|
230
|
+
const data = await response.json();
|
|
231
|
+
if (response.ok) return { data };
|
|
232
|
+
return { error: { data, status: response.status } };
|
|
233
|
+
}
|
|
234
|
+
}),
|
|
235
|
+
saveWithdrawal: builder.mutation({
|
|
236
|
+
query: (data) => ({
|
|
237
|
+
url: "api/v1/vendor-app/save-withdrawal",
|
|
238
|
+
method: "POST",
|
|
239
|
+
body: data
|
|
240
|
+
})
|
|
241
|
+
}),
|
|
242
|
+
getWithdrawalHistory: builder.query({
|
|
243
|
+
query: (userId) => ({
|
|
244
|
+
url: `api/v1/vendor-app/withdrawal-history`,
|
|
245
|
+
method: "GET"
|
|
246
|
+
})
|
|
247
|
+
}),
|
|
248
|
+
getEventCategories: builder.query({
|
|
249
|
+
query: () => "api/v1/vendor-app/get-event-categories",
|
|
250
|
+
transformResponse: (response) => response == null ? void 0 : response.data
|
|
251
|
+
})
|
|
252
|
+
})
|
|
253
|
+
});
|
|
254
|
+
const {
|
|
255
|
+
useSubmitEventForApprovalMutation,
|
|
256
|
+
useGetEventDetailsByIdQuery,
|
|
257
|
+
useAddQuestionToEventFormMutation,
|
|
258
|
+
useEditQuestionInEventFormMutation,
|
|
259
|
+
useDeleteQuestionFromEventFormMutation,
|
|
260
|
+
useUpdateQuestionsOrderMutation,
|
|
261
|
+
useAddEventMutation,
|
|
262
|
+
useUpdateEventMutation,
|
|
263
|
+
useGetAllSocietyRegistrationsInfiniteQuery,
|
|
264
|
+
useGetEventAnalyticsQuery,
|
|
265
|
+
useGenerateEventTransactionsReportMutation,
|
|
266
|
+
useGetRecentReportEmailQuery,
|
|
267
|
+
useGetEventReportMetadataQuery,
|
|
268
|
+
useGetRegisteredEventsQuery,
|
|
269
|
+
useChangeRegistrationApprovalStatusMutation,
|
|
270
|
+
useGetTitleMutation,
|
|
271
|
+
useReconcileVendorMutation,
|
|
272
|
+
useGetWithdrawalHistoryQuery,
|
|
273
|
+
useSaveWithdrawalMutation,
|
|
274
|
+
useGetEventCategoriesQuery,
|
|
275
|
+
useUpdateEventSocialProfilesMutation
|
|
276
|
+
} = singleEventApi;
|
|
277
|
+
export {
|
|
278
|
+
singleEventApi,
|
|
279
|
+
useAddEventMutation,
|
|
280
|
+
useAddQuestionToEventFormMutation,
|
|
281
|
+
useChangeRegistrationApprovalStatusMutation,
|
|
282
|
+
useDeleteQuestionFromEventFormMutation,
|
|
283
|
+
useEditQuestionInEventFormMutation,
|
|
284
|
+
useGenerateEventTransactionsReportMutation,
|
|
285
|
+
useGetAllSocietyRegistrationsInfiniteQuery,
|
|
286
|
+
useGetEventAnalyticsQuery,
|
|
287
|
+
useGetEventCategoriesQuery,
|
|
288
|
+
useGetEventDetailsByIdQuery,
|
|
289
|
+
useGetEventReportMetadataQuery,
|
|
290
|
+
useGetRecentReportEmailQuery,
|
|
291
|
+
useGetRegisteredEventsQuery,
|
|
292
|
+
useGetTitleMutation,
|
|
293
|
+
useGetWithdrawalHistoryQuery,
|
|
294
|
+
useReconcileVendorMutation,
|
|
295
|
+
useSaveWithdrawalMutation,
|
|
296
|
+
useSubmitEventForApprovalMutation,
|
|
297
|
+
useUpdateEventMutation,
|
|
298
|
+
useUpdateEventSocialProfilesMutation,
|
|
299
|
+
useUpdateQuestionsOrderMutation
|
|
300
|
+
};
|
|
301
|
+
//# sourceMappingURL=single-event-api.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"single-event-api.js","sources":["../../src/services/single-event-api.ts"],"sourcesContent":["import { createApi } from '@reduxjs/toolkit/query/react';\r\nimport { auth } from \"../services/initialize-firebase\"\r\nimport { addQuestionToEventForm, deleteQuestionFromEventForm, editQuestionInEventForm, submitEventForApproval, updateQuestionsOrder, editEvent, createEvent, updateEventSocialProfiles } from \"../lib/actions\";\r\nimport baseQuery from \"@/redux/baseQuery\";\r\nimport { BASE_URL } from \"../services/remote-config\";\r\nimport { ApprovalStatus } from \"../types/types\";\r\nimport { transformApiDataToFormState } from \"@/services/helpers\";\r\n\r\nexport const singleEventApi = createApi({\r\n reducerPath: 'singleEventApi',\r\n baseQuery,\r\n tagTypes: [\"SingleEvent\"],\r\n endpoints: (builder) => ({\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 invalidatesTags: [{ type: \"SingleEvent\", id: \"LIST\" }]\r\n }),\r\n getEventDetailsById: builder.query<any, string>({\r\n query: (id: string) => `api/v1/vendor-app/get-event-by-id?event_id=${id}`,\r\n // Apply transformation here\r\n transformResponse: (response: any) => {\r\n const rawData = response.data;\r\n return transformApiDataToFormState(rawData);\r\n },\r\n providesTags: (result, error, id) => [{ type: 'SingleEvent', 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 invalidatesTags: (result, error, arg) => [{ type: 'SingleEvent', id: arg.event_id }]\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 // invalidatesTags: (result, error, arg) => [{ type: 'SingleEvent', id: arg.event_id }]\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 // invalidatesTags: (result, error, arg) => [{ type: 'SingleEvent', id: arg.event_id }]\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 singleEventApi.util.updateQueryData('getEventDetailsById', (requestData.event_id as any), (draft: any) => {\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 // invalidatesTags: ['Events']\r\n }),\r\n updateEvent: builder.mutation<any, any>({\r\n queryFn: async (requestData: any) => {\r\n const token = await auth.currentUser?.getIdToken() || \"\";\r\n const { data, error } = await editEvent(requestData, token);\r\n if (data) {\r\n return { data: data };\r\n }\r\n return { error }\r\n },\r\n // invalidatesTags: (result, error, arg) => [{ type: \"SingleEvent\", id: \"LIST\" }, { type: \"SingleEvent\", id: arg.event_id }]\r\n }),\r\n updateEventSocialProfiles: builder.mutation<any, any>({\r\n query: (data) => ({ url: \"/api/v1/vendor-app/update-event-social-profiles\", method: \"POST\", body: data }),\r\n transformResponse: (response: any) => response?.data,\r\n invalidatesTags: (result, error, arg) => [{ type: 'SingleEvent', id: arg.event_id }]\r\n }),\r\n getAllSocietyRegistrations: builder.infiniteQuery<any, string, number>({\r\n infiniteQueryOptions: {\r\n initialPageParam: 1,\r\n getNextPageParam: (lastPage, allPages, lastPageParam) => {\r\n return lastPage.external_registrations.length == 20 || lastPage.draft_registrations.length == 20 ? lastPageParam + 1 : undefined;\r\n },\r\n getPreviousPageParam: (firstPage, allPages, firstPageParam) => {\r\n return firstPageParam > 0 ? firstPageParam - 1 : undefined\r\n },\r\n },\r\n query: (arg: any) => {\r\n const { queryArg, pageParam } = arg;\r\n return `/get-society-registrations?event_id=${queryArg}&page=${pageParam}&limit=20`\r\n },\r\n transformResponse: (response: any) => response?.data,\r\n providesTags: (result, error, id) => [{ type: 'SingleEvent', id: `registrations-${id}` }],\r\n }),\r\n getEventAnalytics: builder.query<any, string>({\r\n query: (eventId: string) => `/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}/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 if (response.ok) return { data };\r\n return { error: { data, status: response.status } }\r\n }\r\n }),\r\n getRecentReportEmail: builder.query<any, void>({\r\n query: () => `/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) => `/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: () => `/get-registered-events`,\r\n transformResponse: (response: any) => response?.data\r\n }),\r\n changeRegistrationApprovalStatus: builder.mutation<any, { qrId: string, status: ApprovalStatus }>({\r\n queryFn: async ({ qrId, status }) => {\r\n const token = await auth.currentUser?.getIdToken() || \"\";\r\n const response = await fetch(`${BASE_URL}/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({ qr_id: qrId, status })\r\n });\r\n const data = await response.json();\r\n if (response.ok) return { data };\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/bop/v1/title-fetch-reconcile-vendor',\r\n method: 'GET',\r\n }),\r\n transformResponse: (response: any) => response?.data,\r\n }),\r\n reconcileVendor: builder.mutation<any, { event_id: string; amount: number; account_branch: string; initial_amount_without_cut: number; }>({\r\n queryFn: async ({ event_id, amount, account_branch, initial_amount_without_cut }) => {\r\n const token = await auth.currentUser?.getIdToken() || \"\";\r\n const response = await fetch(`${BASE_URL}/api/bop/v1/reconcile-event-organizer`, {\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 event_id,\r\n amount,\r\n account_branch,\r\n initial_amount_without_cut\r\n }),\r\n });\r\n const data = await response.json();\r\n if (response.ok) return { data };\r\n return { error: { data, status: response.status } };\r\n },\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 getWithdrawalHistory: builder.query({\r\n query: (userId) => ({\r\n url: `api/v1/vendor-app/withdrawal-history`,\r\n method: 'GET',\r\n }),\r\n }),\r\n getEventCategories: builder.query<any, void>({\r\n query: () => \"api/v1/vendor-app/get-event-categories\",\r\n transformResponse: (response: any) => response?.data,\r\n }),\r\n }),\r\n});\r\n\r\nexport const {\r\n useSubmitEventForApprovalMutation,\r\n useGetEventDetailsByIdQuery,\r\n useAddQuestionToEventFormMutation,\r\n useEditQuestionInEventFormMutation,\r\n useDeleteQuestionFromEventFormMutation,\r\n useUpdateQuestionsOrderMutation,\r\n useAddEventMutation,\r\n useUpdateEventMutation,\r\n useGetAllSocietyRegistrationsInfiniteQuery,\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 useGetWithdrawalHistoryQuery,\r\n useSaveWithdrawalMutation,\r\n useGetEventCategoriesQuery,\r\n useUpdateEventSocialProfilesMutation\r\n} = singleEventApi;\r\n"],"names":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question';
|
|
2
|
+
import { TicketTierState } from '../types/events';
|
|
3
|
+
|
|
4
|
+
export declare function generateAvatar(username: string): string;
|
|
5
|
+
export declare function isConditionalValid(conditional: any, questionType: string, allowedOptions: Set<any>): any;
|
|
6
|
+
export declare function hasNonExistentQuestionDependency(conditions: any, questions: Question[]): boolean;
|
|
7
|
+
export declare function hasNonExistentOptionDependency(conditions: Record<string, any> | null, questions: Question[]): boolean;
|
|
8
|
+
export declare function encrypt(text: string, hexKey: string): Promise<string>;
|
|
9
|
+
export declare function decrypt(encryptedText: string, hexKey: string): Promise<string>;
|
|
10
|
+
export declare function fetchWrapper(url: string, options?: any, enableHMAC?: boolean, headerKey?: string, bodyKey?: string): Promise<{
|
|
11
|
+
error: {
|
|
12
|
+
data: any;
|
|
13
|
+
status: number;
|
|
14
|
+
};
|
|
15
|
+
status?: undefined;
|
|
16
|
+
data?: undefined;
|
|
17
|
+
} | {
|
|
18
|
+
status: number;
|
|
19
|
+
data: any;
|
|
20
|
+
error?: undefined;
|
|
21
|
+
}>;
|
|
22
|
+
export declare function convertDateFormat(inputDate: string): string;
|
|
23
|
+
export declare function formatGMTAsPKT(date: Date): string;
|
|
24
|
+
export declare function processImageOnServer(file: File, width: number, token: string): Promise<File>;
|
|
25
|
+
export declare function getCurrentTierAndMember(tiers: TicketTierState[], currentStep: number): {
|
|
26
|
+
tier: TicketTierState;
|
|
27
|
+
memberInGroup: number;
|
|
28
|
+
};
|
|
29
|
+
export declare function getDateRange(startDate: Date, endDate: Date): any[];
|
|
30
|
+
export declare const extractDateAndTime: (timestamp: string) => {
|
|
31
|
+
date: string;
|
|
32
|
+
time: string;
|
|
33
|
+
};
|
|
34
|
+
export declare const formatDateTime: (date: string, time: string) => string;
|
|
35
|
+
export declare const extractSocialHandle: (url: string | null | undefined) => string | null;
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { BASE_URL } from "./remote-config.js";
|
|
2
|
+
import "moment";
|
|
3
|
+
function generateAvatar(username) {
|
|
4
|
+
const initial = (username == null ? void 0 : username.match(/[a-zA-Z]/)) ? username == null ? void 0 : username.match(/[a-zA-Z]/)[0].toUpperCase() : "#";
|
|
5
|
+
const hue = (username == null ? void 0 : username.split("").reduce((acc, char) => acc + char.charCodeAt(0), 0)) % 360;
|
|
6
|
+
const color = `hsl(${hue}, 70%, 60%)`;
|
|
7
|
+
const svg = `
|
|
8
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" width="100" height="100">
|
|
9
|
+
<circle cx="50" cy="50" r="50" fill="${color}" />
|
|
10
|
+
<text x="50" y="50" font-size="50" fill="white" text-anchor="middle" dominant-baseline="central" font-family="Arial, sans-serif">
|
|
11
|
+
${initial}
|
|
12
|
+
</text>
|
|
13
|
+
</svg>
|
|
14
|
+
`;
|
|
15
|
+
return `data:image/svg+xml;charset=utf-8,${encodeURIComponent(svg)}`;
|
|
16
|
+
}
|
|
17
|
+
const TEXT_ENCODER = new TextEncoder();
|
|
18
|
+
const TEXT_DECODER = new TextDecoder();
|
|
19
|
+
async function getKey(key) {
|
|
20
|
+
return crypto.subtle.importKey(
|
|
21
|
+
"raw",
|
|
22
|
+
key,
|
|
23
|
+
{ name: "AES-CBC" },
|
|
24
|
+
false,
|
|
25
|
+
["encrypt", "decrypt"]
|
|
26
|
+
);
|
|
27
|
+
}
|
|
28
|
+
function bufferToHex(buffer) {
|
|
29
|
+
return Array.from(new Uint8Array(buffer)).map((byte) => byte.toString(16).padStart(2, "0")).join("");
|
|
30
|
+
}
|
|
31
|
+
function hexToBuffer(hex) {
|
|
32
|
+
return new Uint8Array(
|
|
33
|
+
hex.match(/.{1,2}/g).map((byte) => parseInt(byte, 16))
|
|
34
|
+
);
|
|
35
|
+
}
|
|
36
|
+
async function encrypt(text, hexKey) {
|
|
37
|
+
const key = await getKey(hexToBuffer(hexKey));
|
|
38
|
+
const iv = crypto.getRandomValues(new Uint8Array(16));
|
|
39
|
+
const encrypted = await crypto.subtle.encrypt(
|
|
40
|
+
{ name: "AES-CBC", iv },
|
|
41
|
+
key,
|
|
42
|
+
TEXT_ENCODER.encode(text)
|
|
43
|
+
);
|
|
44
|
+
return bufferToHex(encrypted) + bufferToHex(iv);
|
|
45
|
+
}
|
|
46
|
+
async function decrypt(encryptedText, hexKey) {
|
|
47
|
+
const key = await getKey(hexToBuffer(hexKey));
|
|
48
|
+
const iv = hexToBuffer(encryptedText.slice(-32));
|
|
49
|
+
const encrypted = hexToBuffer(encryptedText.slice(0, -32));
|
|
50
|
+
const decrypted = await crypto.subtle.decrypt(
|
|
51
|
+
{ name: "AES-CBC", iv },
|
|
52
|
+
key,
|
|
53
|
+
encrypted
|
|
54
|
+
);
|
|
55
|
+
return TEXT_DECODER.decode(decrypted);
|
|
56
|
+
}
|
|
57
|
+
const VENDOR_API_SECRET = process.env.VENDOR_API_SECRET;
|
|
58
|
+
async function fetchWrapper(url, options, enableHMAC = false, headerKey = process.env.HEADER_KEY, bodyKey = process.env.BODY_KEY) {
|
|
59
|
+
const headers = (options == null ? void 0 : options.headers) ? { ...options.headers } : {};
|
|
60
|
+
if (enableHMAC) {
|
|
61
|
+
const timestamp = Math.floor(Date.now() / 1e3).toString();
|
|
62
|
+
const message = (options == null ? void 0 : options.body) instanceof FormData ? "" : (options == null ? void 0 : options.body) || "";
|
|
63
|
+
const enc = new TextEncoder();
|
|
64
|
+
const key = await crypto.subtle.importKey(
|
|
65
|
+
"raw",
|
|
66
|
+
enc.encode(VENDOR_API_SECRET || ""),
|
|
67
|
+
{ name: "HMAC", hash: "SHA-256" },
|
|
68
|
+
false,
|
|
69
|
+
["sign"]
|
|
70
|
+
);
|
|
71
|
+
const signatureBuffer = await crypto.subtle.sign(
|
|
72
|
+
"HMAC",
|
|
73
|
+
key,
|
|
74
|
+
enc.encode(`${timestamp}.${message}`)
|
|
75
|
+
);
|
|
76
|
+
const signature = Array.from(new Uint8Array(signatureBuffer)).map((b) => b.toString(16).padStart(2, "0")).join("");
|
|
77
|
+
headers["X-TIMESTAMP"] = timestamp;
|
|
78
|
+
headers["X-SIGNATURE"] = signature;
|
|
79
|
+
headers["X-API-KEY"] = process.env.VENDOR_API_KEY;
|
|
80
|
+
headers["X-API-SECRET"] = process.env.VENDOR_API_SECRET;
|
|
81
|
+
}
|
|
82
|
+
if (headers == null ? void 0 : headers.Authorization) {
|
|
83
|
+
headers.Authorization = await encrypt(headers.Authorization, headerKey);
|
|
84
|
+
}
|
|
85
|
+
const modifiedOptions = {
|
|
86
|
+
...options,
|
|
87
|
+
body: (options == null ? void 0 : options.body) ? options.body instanceof FormData ? options.body : await encrypt(options.body, bodyKey) : void 0,
|
|
88
|
+
headers
|
|
89
|
+
};
|
|
90
|
+
const response = await fetch(`${BASE_URL}${url}`, modifiedOptions);
|
|
91
|
+
const responseData = await response.text();
|
|
92
|
+
console.log("url: ", `${BASE_URL}${url}`);
|
|
93
|
+
console.log("response: ", response);
|
|
94
|
+
const data = JSON.parse(await decrypt(responseData, bodyKey));
|
|
95
|
+
console.log("data: ", data);
|
|
96
|
+
if (!response.ok) {
|
|
97
|
+
return { error: { data, status: response.status } };
|
|
98
|
+
}
|
|
99
|
+
return { status: response.status, data };
|
|
100
|
+
}
|
|
101
|
+
export {
|
|
102
|
+
decrypt,
|
|
103
|
+
encrypt,
|
|
104
|
+
fetchWrapper,
|
|
105
|
+
generateAvatar
|
|
106
|
+
};
|
|
107
|
+
//# sourceMappingURL=utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.js","sources":["../../src/services/utils.ts"],"sourcesContent":["import { allowedOperations, ConditionalOperation, DATE_RANGE_REGEX, DATE_REGEX, QuestionType } from \"@/lib/constants\";\r\nimport { Question } from \"@/types/question\";\r\nimport { BASE_URL } from \"./remote-config\";\r\nimport moment from \"moment\";\r\nimport { TicketTierState } from \"@/types/events\";\r\n\r\nexport function generateAvatar(username: string): string {\r\n // Handle empty username or username starting with non-letter\r\n const initial = username?.match(/[a-zA-Z]/) ? username?.match(/[a-zA-Z]/)![0].toUpperCase() : '#';\r\n\r\n // Generate a consistent color based on the username\r\n const hue = username?.split('').reduce((acc, char) => acc + char.charCodeAt(0), 0) % 360;\r\n const color = `hsl(${hue}, 70%, 60%)`;\r\n\r\n // Create SVG element\r\n const svg = `\r\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 100 100\" width=\"100\" height=\"100\">\r\n <circle cx=\"50\" cy=\"50\" r=\"50\" fill=\"${color}\" />\r\n <text x=\"50\" y=\"50\" font-size=\"50\" fill=\"white\" text-anchor=\"middle\" dominant-baseline=\"central\" font-family=\"Arial, sans-serif\">\r\n ${initial}\r\n </text>\r\n </svg>\r\n `;\r\n\r\n // Convert SVG to a data URL\r\n return `data:image/svg+xml;charset=utf-8,${encodeURIComponent(svg)}`;\r\n}\r\n\r\nexport function isConditionalValid(conditional: any, questionType: string, allowedOptions: Set<any>) {\r\n if (conditional.operator === ConditionalOperation.IS_EMPTY || conditional.operator === ConditionalOperation.IS_FILLED) {\r\n return true;\r\n }\r\n\r\n let isValid = allowedOperations[questionType as keyof typeof allowedOperations].includes(conditional.operator);\r\n switch (questionType) {\r\n case \"DATE\":\r\n if (conditional.operator === ConditionalOperation.IS_TODAY) {\r\n return true;\r\n }\r\n else if (conditional.operator === ConditionalOperation.IS_BETWEEN) {\r\n isValid &&= DATE_RANGE_REGEX.test(conditional.value);\r\n }\r\n else {\r\n isValid &&= DATE_REGEX.test(conditional.value);\r\n }\r\n return isValid;\r\n case \"INPUT_INT\":\r\n case \"INPUT_FLOAT\":\r\n case \"TEAM_SIZE\":\r\n if ([ConditionalOperation.IS_POSITIVE, ConditionalOperation.IS_NEGATIVE, ConditionalOperation.IS_POSITIVE_OR_ZERO].includes(conditional.operator)) {\r\n return true;\r\n }\r\n return isValid && !isNaN(conditional.value);\r\n case \"CHECKBOX\":\r\n case \"PAYMENT_CHECKBOX\":\r\n return isValid && Array.isArray(conditional.value) && conditional.value.every((val: string) => (allowedOptions as any).has(val));\r\n case \"MULTIPLE_CHOICE\":\r\n case \"DROPDOWN\":\r\n case \"PAYMENT\":\r\n return isValid && conditional.value && typeof conditional.value === \"string\" && (allowedOptions as any).has(conditional.value);\r\n case \"INPUT_STR\":\r\n case \"CNIC\":\r\n case \"PHONE\":\r\n case \"EMAIL\":\r\n case \"NAME_ON_TICKET\":\r\n return isValid && conditional.value && typeof conditional.value === \"string\";\r\n }\r\n}\r\n\r\nexport function hasNonExistentQuestionDependency(conditions: any, questions: Question[]) {\r\n if (!conditions) return false;\r\n\r\n return Object.values(conditions).some((conditionGroup) =>\r\n (conditionGroup as any[]).some((condition) => {\r\n const selectedQuestion = questions.find(question => question.question === condition.operand);\r\n const allowedOptions = selectedQuestion?.options?.length !== 0 ? new Set(selectedQuestion?.options?.map(option => option.value || (option as unknown as string))) : new Set(selectedQuestion?.Categories?.map(category => category.name))\r\n\r\n return !(selectedQuestion && isConditionalValid(condition, QuestionType[selectedQuestion.type as keyof typeof QuestionType], (allowedOptions as any)));\r\n })\r\n );\r\n}\r\n\r\nexport function hasNonExistentOptionDependency(conditions: Record<string, any> | null, questions: Question[]): boolean {\r\n if (!conditions) return false;\r\n\r\n const questionOptionsMap = new Map(\r\n questions.map(q => {\r\n const questionType = QuestionType[q.type as keyof typeof QuestionType];\r\n\r\n if (q.options && q.options.length > 0) {\r\n return [\r\n q.question,\r\n {\r\n type: questionType,\r\n options: new Set(q.options.map(option => option.value || (option as unknown as string))),\r\n },\r\n ];\r\n } else if (q.Categories && q.Categories.length > 0) {\r\n return [\r\n q.question,\r\n {\r\n type: questionType,\r\n options: new Set(q.Categories.map(category => category.name)),\r\n },\r\n ];\r\n }\r\n return [\r\n q.question,\r\n {\r\n type: questionType,\r\n options: new Set([]),\r\n },\r\n ];\r\n })\r\n );\r\n\r\n for (const conditionGroup of Object.values(conditions)) {\r\n for (const condition of conditionGroup) {\r\n const selectedQuestion = questionOptionsMap.get(condition.operand);\r\n const availableOptions = selectedQuestion?.options;\r\n const selectedQuestionType = selectedQuestion?.type;\r\n\r\n if (availableOptions) {\r\n const conditionValue = condition.value;\r\n\r\n const values = Array.isArray(conditionValue) ? conditionValue : [conditionValue];\r\n\r\n return values.some(v => !availableOptions.has(v)) || !isConditionalValid(condition, selectedQuestionType as string, availableOptions);\r\n }\r\n }\r\n }\r\n\r\n return false;\r\n}\r\n\r\nconst TEXT_ENCODER = new TextEncoder();\r\nconst TEXT_DECODER = new TextDecoder();\r\n\r\nasync function getKey(key: BufferSource): Promise<CryptoKey> {\r\n return crypto.subtle.importKey(\r\n \"raw\",\r\n key,\r\n { name: \"AES-CBC\" },\r\n false,\r\n [\"encrypt\", \"decrypt\"]\r\n );\r\n}\r\n\r\nfunction bufferToHex(buffer: ArrayBuffer): string {\r\n return Array.from(new Uint8Array(buffer))\r\n .map((byte) => byte.toString(16).padStart(2, \"0\"))\r\n .join(\"\");\r\n}\r\n\r\nfunction hexToBuffer(hex: string): Uint8Array {\r\n return new Uint8Array(\r\n hex.match(/.{1,2}/g)!.map((byte) => parseInt(byte, 16))\r\n );\r\n}\r\n\r\nexport async function encrypt(text: string, hexKey: string): Promise<string> {\r\n const key = await getKey((hexToBuffer(hexKey) as any));\r\n const iv = crypto.getRandomValues(new Uint8Array(16));\r\n\r\n const encrypted = await crypto.subtle.encrypt(\r\n { name: \"AES-CBC\", iv },\r\n key,\r\n TEXT_ENCODER.encode(text)\r\n );\r\n\r\n return bufferToHex(encrypted) + bufferToHex(iv as any); // Concatenate Encrypted Data + IV\r\n}\r\n\r\nexport async function decrypt(encryptedText: string, hexKey: string): Promise<string> {\r\n const key = await getKey((hexToBuffer(hexKey) as any));\r\n\r\n const iv: any = hexToBuffer(encryptedText.slice(-32)); // Extract IV\r\n const encrypted: any = hexToBuffer(encryptedText.slice(0, -32)); // Extract Encrypted Data\r\n\r\n const decrypted = await crypto.subtle.decrypt(\r\n { name: \"AES-CBC\", iv },\r\n key,\r\n encrypted\r\n );\r\n\r\n return TEXT_DECODER.decode(decrypted);\r\n}\r\n\r\n\r\nconst VENDOR_API_SECRET = process.env.VENDOR_API_SECRET;\r\nexport async function fetchWrapper(\r\n url: string,\r\n options?: any,\r\n enableHMAC: boolean = false,\r\n headerKey: string = process.env.HEADER_KEY as string,\r\n bodyKey: string = process.env.BODY_KEY as string,\r\n) {\r\n const headers = options?.headers ? { ...options.headers } : {};\r\n\r\n if (enableHMAC) {\r\n\r\n const timestamp: string = Math.floor(Date.now() / 1000).toString();\r\n const message = (options?.body instanceof FormData) ? '' : (options?.body || '');\r\n\r\n const enc = new TextEncoder();\r\n const key = await crypto.subtle.importKey(\r\n \"raw\",\r\n enc.encode(VENDOR_API_SECRET || ''),\r\n { name: \"HMAC\", hash: \"SHA-256\" },\r\n false,\r\n [\"sign\"]\r\n );\r\n\r\n const signatureBuffer = await crypto.subtle.sign(\r\n \"HMAC\",\r\n key,\r\n enc.encode(`${timestamp}.${message}`)\r\n );\r\n\r\n const signature = Array.from(new Uint8Array(signatureBuffer))\r\n .map(b => b.toString(16).padStart(2, '0'))\r\n .join('');\r\n\r\n headers['X-TIMESTAMP'] = timestamp;\r\n headers['X-SIGNATURE'] = signature;\r\n headers['X-API-KEY'] = process.env.VENDOR_API_KEY;\r\n headers['X-API-SECRET'] = process.env.VENDOR_API_SECRET;\r\n }\r\n\r\n if (headers?.Authorization) {\r\n headers.Authorization = await encrypt(headers.Authorization as string, headerKey);\r\n }\r\n\r\n const modifiedOptions = {\r\n ...options,\r\n body: options?.body ? (options.body instanceof FormData ? options.body : await encrypt(options.body, bodyKey)) : undefined,\r\n headers,\r\n };\r\n\r\n const response = await fetch(`${BASE_URL}${url}`, modifiedOptions);\r\n const responseData = await response.text();\r\n\r\n console.log(\"url: \", `${BASE_URL}${url}`);\r\n console.log(\"response: \", response);\r\n const data = JSON.parse(await decrypt(responseData, bodyKey));\r\n console.log(\"data: \", data);\r\n\r\n if (!response.ok) {\r\n return { error: { data, status: response.status } };\r\n }\r\n\r\n return { status: response.status, data };\r\n}\r\n\r\nexport function convertDateFormat(inputDate: string): string {\r\n // if input date contain GMT, remove it\r\n if (inputDate.includes('GMT')) {\r\n inputDate = inputDate.split('GMT')[0].trim();\r\n }\r\n let formatted_date = moment(inputDate).format('YYYY-MM-DD HH:mm:ss.SSS');\r\n return formatted_date\r\n}\r\n\r\n\r\nexport function formatGMTAsPKT(date: Date) {\r\n return Intl?.DateTimeFormat(\"en-PK\", { weekday: \"short\", day: \"2-digit\", month: \"short\", year: \"numeric\", hour: \"numeric\", minute: \"2-digit\", hour12: true, timeZone: \"UTC\", }).format(date).replace(\"at\", \"\").replace(/(am|pm)$/, (match) => match.toUpperCase())\r\n}\r\n\r\nexport async function processImageOnServer(file: File, width: number, token: string) {\r\n const formData = new FormData();\r\n formData.append('file', file);\r\n formData.append('width', `${width}`);\r\n\r\n const res = await fetch('/api/optimize-image', {\r\n method: 'POST',\r\n body: formData,\r\n headers: {\r\n Authorization: `Bearer ${token}`\r\n }\r\n });\r\n\r\n if (!res.ok) throw new Error('Processing failed');\r\n\r\n const blob = await res.blob();\r\n return new File([blob], file.name, { type: 'image/webp' });\r\n};\r\n\r\nexport function getCurrentTierAndMember(tiers: TicketTierState[], currentStep: number) {\r\n let cumulativeSteps = 0;\r\n\r\n for (let i = 0; i < tiers.length; i++) {\r\n const tier = tiers[i];\r\n\r\n // Iterate through each quantity (group) of this tier\r\n for (let q = 0; q < tier.quantity; q++) {\r\n const groupStart = cumulativeSteps + 1;\r\n const groupEnd = cumulativeSteps + tier.members;\r\n\r\n // Check if currentStep falls within this specific group\r\n if (currentStep >= groupStart && currentStep <= groupEnd) {\r\n return {\r\n tier: tier,\r\n memberInGroup: currentStep - cumulativeSteps, // Position within this group (1-indexed)\r\n };\r\n }\r\n\r\n cumulativeSteps += tier.members;\r\n }\r\n }\r\n\r\n return null;\r\n}\r\n\r\nexport function getDateRange(startDate: Date, endDate: Date) {\r\n const dates = [];\r\n let currentDate = new Date(startDate);\r\n\r\n while (currentDate <= endDate) {\r\n dates.push(new Date(currentDate));\r\n currentDate.setDate(currentDate.getDate() + 1);\r\n }\r\n\r\n return dates;\r\n}\r\n\r\nexport const extractDateAndTime = (timestamp: string) => {\r\n const date = new Date(timestamp);\r\n\r\n const yyyy = date.getUTCFullYear();\r\n const mm = String(date.getUTCMonth() + 1).padStart(2, '0');\r\n const dd = String(date.getUTCDate()).padStart(2, '0');\r\n const hh = String(date.getUTCHours()).padStart(2, '0');\r\n const min = String(date.getUTCMinutes()).padStart(2, '0');\r\n\r\n return {\r\n date: `${yyyy}-${mm}-${dd}`,\r\n time: `${hh}:${min}`,\r\n };\r\n}\r\n\r\nexport const formatDateTime = (date: string, time: string): string => {\r\n // Create a UTC date from the input\r\n if (date && time) {\r\n const [year, month, day] = date.split('-').map(Number);\r\n const [hours, minutes] = time.split(':').map(Number);\r\n\r\n const utcDate = new Date(Date.UTC(year, month - 1, day, hours, minutes));\r\n return utcDate.toUTCString();\r\n }\r\n return \"\"\r\n}\r\n\r\nexport const extractSocialHandle = (url: string | null | undefined): string | null => {\r\n if (!url) return null;\r\n // Remove trailing slash and split by / to get the last segment\r\n const handle = url.replace(/\\/$/, '').split('/').pop();\r\n return handle || null;\r\n};\r\n"],"names":[],"mappings":";;AAMO,SAAS,eAAe,UAA0B;AAEvD,QAAM,WAAU,qCAAU,MAAM,eAAc,qCAAU,MAAM,YAAa,GAAG,gBAAgB;AAG9F,QAAM,OAAM,qCAAU,MAAM,IAAI,OAAO,CAAC,KAAK,SAAS,MAAM,KAAK,WAAW,CAAC,GAAG,MAAK;AACrF,QAAM,QAAQ,OAAO,GAAG;AAGxB,QAAM,MAAM;AAAA;AAAA,+CAEiC,KAAK;AAAA;AAAA,YAExC,OAAO;AAAA;AAAA;AAAA;AAMjB,SAAO,oCAAoC,mBAAmB,GAAG,CAAC;AACpE;AA6GA,MAAM,eAAe,IAAI,YAAA;AACzB,MAAM,eAAe,IAAI,YAAA;AAEzB,eAAe,OAAO,KAAuC;AAC3D,SAAO,OAAO,OAAO;AAAA,IACnB;AAAA,IACA;A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