@123usmanhaider321/ui 0.1.6 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +416 -31
- package/dist/images/icon/1LINK.svg +50 -0
- package/dist/images/icon/CreditCard.svg +83 -0
- package/dist/images/icon/Easypaisa.png +0 -0
- package/dist/images/icon/MobileWallet.png +0 -0
- package/dist/images/icon/Raast-Logo.png +0 -0
- package/dist/images/icon/VISA.png +0 -0
- package/dist/images/icon/add-circle-1.svg +5 -0
- package/dist/images/icon/check-circle-broken.svg +3 -0
- package/dist/images/icon/close-circle.svg +5 -0
- package/dist/images/icon/jazzcash.png +0 -0
- package/dist/images/icon/loading_icon.json +3347 -0
- package/dist/images/icon/mastercard-logo.webp +0 -0
- package/dist/images/icon/paymo.jpeg +0 -0
- package/dist/images/icon/preview-svgrepo-com.svg +36 -0
- package/dist/images/icon/trash.svg +7 -0
- package/dist/images/icon/unionpay-logo.svg +9 -0
- package/dist/index-87FQZHOs.js +11119 -0
- package/dist/index-87FQZHOs.js.map +1 -0
- package/dist/index-Tl9g213f.js +60475 -0
- package/dist/index-Tl9g213f.js.map +1 -0
- package/dist/index.d.ts +1 -10
- package/dist/index.es-CpgTaa1Y.js +16734 -0
- package/dist/index.es-CpgTaa1Y.js.map +1 -0
- package/dist/index.js +40 -12
- package/dist/index.js.map +1 -1
- package/dist/loading_icon-n5H5dQBl.js +3375 -0
- package/dist/loading_icon-n5H5dQBl.js.map +1 -0
- package/dist/src/components/Alert/ErrorAlert.d.ts +6 -0
- package/dist/src/components/Alert/SuccessAlert.d.ts +6 -0
- package/dist/{components → src/components}/FormBuilder/DiscountInput.d.ts +3 -6
- package/dist/{components → src/components}/FormBuilder/FormBuilder.d.ts +2 -11
- package/dist/{components → src/components}/FormBuilder/QuestionCard.d.ts +0 -5
- package/dist/{components → src/components}/FormBuilder/QuestionEditor.d.ts +0 -5
- package/dist/{components → src/components}/FormBuilder/SortableQuestionList.d.ts +0 -5
- package/dist/src/components/FormBuilder/questionIcons.d.ts +5 -0
- package/dist/{components/EventAddForm → src/components/NewAddEvent}/AddEventLayout.d.ts +2 -1
- package/dist/{components/EventAddForm → src/components/NewAddEvent}/AddEventStepper.d.ts +2 -2
- package/dist/{components/EventAddForm → src/components/NewAddEvent}/common/ConfirmationModal.d.ts +1 -1
- package/dist/src/components/NewAddEvent/components/EventSubmissionConfirmationModal.d.ts +14 -0
- package/dist/{components/EventAddForm → src/components/NewAddEvent}/components/StepTwo/TicketTierSection.d.ts +1 -1
- package/dist/{components/EventAddForm → src/components/NewAddEvent}/components/TicketTierForm.d.ts +1 -1
- package/dist/{components/EventAddForm → src/components/NewAddEvent}/hooks/useStepperForm.d.ts +22 -22
- package/dist/{components/EventAddForm → src/components/NewAddEvent}/hooks/useTicketTierForm.d.ts +63 -15
- package/dist/src/components/NewAddEvent/schemas/step1.d.ts +211 -0
- package/dist/src/components/NewAddEvent/schemas/step2.d.ts +411 -0
- package/dist/{components/EventAddForm → src/components/NewAddEvent}/schemas/utils.d.ts +8 -2
- package/dist/{components/EventAddForm → src/components/NewAddEvent}/steps/IndividualFormStep.d.ts +1 -1
- package/dist/{components/EventAddForm → src/components/NewAddEvent}/steps/SocialProfilesStep.d.ts +1 -1
- package/dist/{components/EventAddForm → src/components/NewAddEvent}/steps/TeamFormStep.d.ts +1 -1
- package/dist/src/components/Spinner/spinner.d.ts +4 -0
- package/dist/src/components/TicketlyUIProvider.d.ts +35 -0
- package/dist/src/components/common/Loader/index.d.ts +8 -0
- package/dist/src/components/common/Modals/ConfirmationModal.d.ts +7 -0
- package/dist/{components/FormInput → src/components/ui}/FormInput.d.ts +1 -1
- package/dist/src/components/ui/Loader.d.ts +4 -0
- package/dist/{components/Button/Button.d.ts → src/components/ui/button.d.ts} +1 -1
- package/dist/src/index.d.ts +10 -0
- package/dist/{lib → src/lib}/actions.d.ts +0 -126
- package/dist/src/lib/dom-utils.d.ts +2 -0
- package/dist/src/lib/storage-utils.d.ts +5 -0
- package/dist/src/lib/types.d.ts +258 -0
- package/dist/src/redux/baseQuery.d.ts +16 -0
- package/dist/{services → src/redux/features}/eventApi.d.ts +1053 -1745
- package/dist/src/redux/features/globalSlice.d.ts +17 -0
- package/dist/{services → src/redux/features/single-event}/single-event-api.d.ts +856 -1190
- package/dist/src/redux/types.d.ts +2 -0
- package/dist/src/services/library-services.d.ts +15 -0
- package/dist/src/services/remote-config.d.ts +27 -0
- package/dist/{services → src/services}/utils.d.ts +1 -1
- package/dist/src/theme/colors.d.ts +127 -0
- package/dist/src/theme/typography.d.ts +13 -0
- package/dist/src/types/api.d.ts +18 -0
- package/dist/style.css +2984 -0
- package/dist/styles.css +3758 -3636
- package/package.json +78 -68
- package/dist/_virtual/_commonjsHelpers.js +0 -9
- package/dist/_virtual/_commonjsHelpers.js.map +0 -1
- package/dist/_virtual/customParseFormat.js +0 -5
- package/dist/_virtual/customParseFormat.js.map +0 -1
- package/dist/_virtual/dayjs.min.js +0 -5
- package/dist/_virtual/dayjs.min.js.map +0 -1
- package/dist/_virtual/duration.js +0 -5
- package/dist/_virtual/duration.js.map +0 -1
- package/dist/_virtual/index.js +0 -5
- package/dist/_virtual/index.js.map +0 -1
- package/dist/_virtual/isBetween.js +0 -5
- package/dist/_virtual/isBetween.js.map +0 -1
- package/dist/_virtual/relativeTime.js +0 -5
- package/dist/_virtual/relativeTime.js.map +0 -1
- package/dist/_virtual/use-sync-external-store-shim.development.js +0 -5
- package/dist/_virtual/use-sync-external-store-shim.development.js.map +0 -1
- package/dist/_virtual/use-sync-external-store-shim.production.js +0 -5
- package/dist/_virtual/use-sync-external-store-shim.production.js.map +0 -1
- package/dist/_virtual/with-selector.development.js +0 -5
- package/dist/_virtual/with-selector.development.js.map +0 -1
- package/dist/_virtual/with-selector.js +0 -5
- package/dist/_virtual/with-selector.js.map +0 -1
- package/dist/_virtual/with-selector.production.js +0 -5
- package/dist/_virtual/with-selector.production.js.map +0 -1
- package/dist/components/Alert/Alert.js +0 -51
- package/dist/components/Alert/Alert.js.map +0 -1
- package/dist/components/Button/Button.js +0 -52
- package/dist/components/Button/Button.js.map +0 -1
- package/dist/components/Button/Button.test.d.ts +0 -1
- package/dist/components/Button/index.d.ts +0 -1
- package/dist/components/Checkbox/Checkbox.js +0 -50
- package/dist/components/Checkbox/Checkbox.js.map +0 -1
- package/dist/components/Checkbox/Checkbox.test.d.ts +0 -1
- package/dist/components/Checkbox/index.d.ts +0 -1
- package/dist/components/CheckboxGroup/CheckboxGroup.d.ts +0 -25
- package/dist/components/CheckboxGroup/CheckboxGroup.js +0 -99
- package/dist/components/CheckboxGroup/CheckboxGroup.js.map +0 -1
- package/dist/components/ConfirmationModal/ConfirmationModal.d.ts +0 -15
- package/dist/components/ConfirmationModal/ConfirmationModal.js +0 -136
- package/dist/components/ConfirmationModal/ConfirmationModal.js.map +0 -1
- package/dist/components/ConfirmationModal/index.d.ts +0 -2
- package/dist/components/CustomSelect/CustomSelect.js +0 -259
- package/dist/components/CustomSelect/CustomSelect.js.map +0 -1
- package/dist/components/EventAddForm/AddEventLayout.js +0 -227
- package/dist/components/EventAddForm/AddEventLayout.js.map +0 -1
- package/dist/components/EventAddForm/AddEventStepper.js +0 -719
- package/dist/components/EventAddForm/AddEventStepper.js.map +0 -1
- package/dist/components/EventAddForm/common/ConfirmationModal.js +0 -136
- package/dist/components/EventAddForm/common/ConfirmationModal.js.map +0 -1
- package/dist/components/EventAddForm/common/DescriptionModal.js +0 -70
- package/dist/components/EventAddForm/common/DescriptionModal.js.map +0 -1
- package/dist/components/EventAddForm/components/AnimatedBackground.d.ts +0 -8
- package/dist/components/EventAddForm/components/ApprovalConfirmationModal.d.ts +0 -7
- package/dist/components/EventAddForm/components/CheckboxGroup.js +0 -92
- package/dist/components/EventAddForm/components/CheckboxGroup.js.map +0 -1
- package/dist/components/EventAddForm/components/CustomMeetingForm.js +0 -237
- package/dist/components/EventAddForm/components/CustomMeetingForm.js.map +0 -1
- package/dist/components/EventAddForm/components/DateTimeField.js +0 -173
- package/dist/components/EventAddForm/components/DateTimeField.js.map +0 -1
- package/dist/components/EventAddForm/components/EventSubmissionConfirmationModal.d.ts +0 -33
- package/dist/components/EventAddForm/components/EventSubmissionConfirmationModal.js +0 -366
- package/dist/components/EventAddForm/components/EventSubmissionConfirmationModal.js.map +0 -1
- package/dist/components/EventAddForm/components/FileUpload.js +0 -412
- package/dist/components/EventAddForm/components/FileUpload.js.map +0 -1
- package/dist/components/EventAddForm/components/FormBuilderProceedModal.js +0 -197
- package/dist/components/EventAddForm/components/FormBuilderProceedModal.js.map +0 -1
- package/dist/components/EventAddForm/components/GoogleMapsAutocompleteInput.js +0 -1179
- package/dist/components/EventAddForm/components/GoogleMapsAutocompleteInput.js.map +0 -1
- package/dist/components/EventAddForm/components/InputField.d.ts +0 -15
- package/dist/components/EventAddForm/components/RadioGroupButton.d.ts +0 -14
- package/dist/components/EventAddForm/components/SelectField.d.ts +0 -19
- package/dist/components/EventAddForm/components/SingleDateTimeInput.js +0 -102
- package/dist/components/EventAddForm/components/SingleDateTimeInput.js.map +0 -1
- package/dist/components/EventAddForm/components/StepTwo/CustomFormSection.js +0 -277
- package/dist/components/EventAddForm/components/StepTwo/CustomFormSection.js.map +0 -1
- package/dist/components/EventAddForm/components/StepTwo/TicketTierSection.js +0 -148
- package/dist/components/EventAddForm/components/StepTwo/TicketTierSection.js.map +0 -1
- package/dist/components/EventAddForm/components/TicketTierForm.js +0 -418
- package/dist/components/EventAddForm/components/TicketTierForm.js.map +0 -1
- package/dist/components/EventAddForm/components/TicketTypeSelection.js +0 -93
- package/dist/components/EventAddForm/components/TicketTypeSelection.js.map +0 -1
- package/dist/components/EventAddForm/hooks/useStepperForm.js +0 -371
- package/dist/components/EventAddForm/hooks/useStepperForm.js.map +0 -1
- package/dist/components/EventAddForm/hooks/useTicketTierForm.js +0 -237
- package/dist/components/EventAddForm/hooks/useTicketTierForm.js.map +0 -1
- package/dist/components/EventAddForm/index.d.ts +0 -3
- package/dist/components/EventAddForm/index.js +0 -41
- package/dist/components/EventAddForm/index.js.map +0 -1
- package/dist/components/EventAddForm/schemas/index.d.ts +0 -2
- package/dist/components/EventAddForm/schemas/step1.d.ts +0 -47
- package/dist/components/EventAddForm/schemas/step1.js +0 -135
- package/dist/components/EventAddForm/schemas/step1.js.map +0 -1
- package/dist/components/EventAddForm/schemas/step2.d.ts +0 -138
- package/dist/components/EventAddForm/schemas/step2.js +0 -94
- package/dist/components/EventAddForm/schemas/step2.js.map +0 -1
- package/dist/components/EventAddForm/schemas/utils.js +0 -28
- package/dist/components/EventAddForm/schemas/utils.js.map +0 -1
- package/dist/components/EventAddForm/steps/IndividualFormStep.js +0 -85
- package/dist/components/EventAddForm/steps/IndividualFormStep.js.map +0 -1
- package/dist/components/EventAddForm/steps/SocialProfilesStep.js +0 -123
- package/dist/components/EventAddForm/steps/SocialProfilesStep.js.map +0 -1
- package/dist/components/EventAddForm/steps/StepOne.js +0 -462
- package/dist/components/EventAddForm/steps/StepOne.js.map +0 -1
- package/dist/components/EventAddForm/steps/StepTwo.js +0 -173
- package/dist/components/EventAddForm/steps/StepTwo.js.map +0 -1
- package/dist/components/EventAddForm/steps/TeamFormStep.js +0 -13
- package/dist/components/EventAddForm/steps/TeamFormStep.js.map +0 -1
- package/dist/components/FormBuilder/CategoryList.js +0 -242
- package/dist/components/FormBuilder/CategoryList.js.map +0 -1
- package/dist/components/FormBuilder/DiscountInput.js +0 -366
- package/dist/components/FormBuilder/DiscountInput.js.map +0 -1
- package/dist/components/FormBuilder/FormBuilder.js +0 -918
- package/dist/components/FormBuilder/FormBuilder.js.map +0 -1
- package/dist/components/FormBuilder/OptionList.js +0 -120
- package/dist/components/FormBuilder/OptionList.js.map +0 -1
- package/dist/components/FormBuilder/PaymentPreview.d.ts +0 -12
- package/dist/components/FormBuilder/PaymentPreview.js +0 -70
- package/dist/components/FormBuilder/PaymentPreview.js.map +0 -1
- package/dist/components/FormBuilder/PreviewInput.d.ts +0 -10
- package/dist/components/FormBuilder/PreviewInput.js +0 -143
- package/dist/components/FormBuilder/PreviewInput.js.map +0 -1
- package/dist/components/FormBuilder/QuestionCard.js +0 -252
- package/dist/components/FormBuilder/QuestionCard.js.map +0 -1
- package/dist/components/FormBuilder/QuestionEditor.js +0 -166
- package/dist/components/FormBuilder/QuestionEditor.js.map +0 -1
- package/dist/components/FormBuilder/RequiredToggle.js +0 -43
- package/dist/components/FormBuilder/RequiredToggle.js.map +0 -1
- package/dist/components/FormBuilder/SortableQuestionList.js +0 -137
- package/dist/components/FormBuilder/SortableQuestionList.js.map +0 -1
- package/dist/components/FormBuilder/index.d.ts +0 -4
- package/dist/components/FormBuilder/utils.js +0 -229
- package/dist/components/FormBuilder/utils.js.map +0 -1
- package/dist/components/FormInput/FormInput.js +0 -126
- package/dist/components/FormInput/FormInput.js.map +0 -1
- package/dist/components/FormInput/FormInput.test.d.ts +0 -1
- package/dist/components/FormInput/index.d.ts +0 -2
- package/dist/components/ImageCropModal/index.js +0 -464
- package/dist/components/ImageCropModal/index.js.map +0 -1
- package/dist/components/InformationPopover/InformationPopover.d.ts +0 -7
- package/dist/components/InformationPopover/InformationPopover.js +0 -19
- package/dist/components/InformationPopover/InformationPopover.js.map +0 -1
- package/dist/components/InformationPopover.js +0 -19
- package/dist/components/InformationPopover.js.map +0 -1
- package/dist/components/InputErrorMessage/InputErrorMessage.js +0 -21
- package/dist/components/InputErrorMessage/InputErrorMessage.js.map +0 -1
- package/dist/components/Modal/Modal.d.ts +0 -15
- package/dist/components/Modal/Modal.js +0 -73
- package/dist/components/Modal/Modal.js.map +0 -1
- package/dist/components/Radio/Radio.js +0 -35
- package/dist/components/Radio/Radio.js.map +0 -1
- package/dist/components/Spinner/spinner.d.ts +0 -2
- package/dist/components/Spinner/spinner.js +0 -22
- package/dist/components/Spinner/spinner.js.map +0 -1
- package/dist/components/Toggle/Toggle.d.ts +0 -16
- package/dist/components/Toggle/index.d.ts +0 -2
- package/dist/components/Tooltip/Tooltip.d.ts +0 -12
- package/dist/components/Tooltip/Tooltip.js +0 -134
- package/dist/components/Tooltip/Tooltip.js.map +0 -1
- package/dist/components/common/FallbackImage.js +0 -47
- package/dist/components/common/FallbackImage.js.map +0 -1
- package/dist/components/ui/Calendar/calendar-utils.js +0 -51
- package/dist/components/ui/Calendar/calendar-utils.js.map +0 -1
- package/dist/components/ui/Calendar/index.js +0 -142
- package/dist/components/ui/Calendar/index.js.map +0 -1
- package/dist/components/ui/Checkbox.d.ts +0 -9
- package/dist/components/ui/Checkbox.js +0 -50
- package/dist/components/ui/Checkbox.js.map +0 -1
- package/dist/components/ui/DatePicker/index.js +0 -188
- package/dist/components/ui/DatePicker/index.js.map +0 -1
- package/dist/components/ui/FormInput.js +0 -129
- package/dist/components/ui/FormInput.js.map +0 -1
- package/dist/components/ui/InputErrorMessage.d.ts +0 -7
- package/dist/components/ui/InputErrorMessage.js +0 -21
- package/dist/components/ui/InputErrorMessage.js.map +0 -1
- package/dist/components/ui/Modal/index.js +0 -73
- package/dist/components/ui/Modal/index.js.map +0 -1
- package/dist/components/ui/Radio.d.ts +0 -6
- package/dist/components/ui/Radio.js +0 -35
- package/dist/components/ui/Radio.js.map +0 -1
- package/dist/components/ui/RichTextEditor.js +0 -242
- package/dist/components/ui/RichTextEditor.js.map +0 -1
- package/dist/components/ui/TimePicker/index.js +0 -215
- package/dist/components/ui/TimePicker/index.js.map +0 -1
- package/dist/components/ui/TimeSelector/index.js +0 -138
- package/dist/components/ui/TimeSelector/index.js.map +0 -1
- package/dist/components/ui/Tooltip.d.ts +0 -12
- package/dist/components/ui/Tooltip.js +0 -136
- package/dist/components/ui/Tooltip.js.map +0 -1
- package/dist/hooks/useDropdownPosition.d.ts +0 -11
- package/dist/hooks/useFirebaseAuthState.d.ts +0 -6
- package/dist/hooks/useFirebaseAuthState.js +0 -23
- package/dist/hooks/useFirebaseAuthState.js.map +0 -1
- package/dist/hooks/useTicketTierForm.d.ts +0 -61
- package/dist/lib/actions.js +0 -32
- package/dist/lib/actions.js.map +0 -1
- package/dist/lib/cropImage.js +0 -113
- package/dist/lib/cropImage.js.map +0 -1
- package/dist/lib/imageAnalysis.js +0 -58
- package/dist/lib/imageAnalysis.js.map +0 -1
- package/dist/lib/utils.js +0 -9
- package/dist/lib/utils.js.map +0 -1
- package/dist/node_modules/@dnd-kit/accessibility/dist/accessibility.esm.js +0 -60
- package/dist/node_modules/@dnd-kit/accessibility/dist/accessibility.esm.js.map +0 -1
- package/dist/node_modules/@dnd-kit/core/dist/core.esm.js +0 -3458
- package/dist/node_modules/@dnd-kit/core/dist/core.esm.js.map +0 -1
- package/dist/node_modules/@dnd-kit/sortable/dist/sortable.esm.js +0 -593
- package/dist/node_modules/@dnd-kit/sortable/dist/sortable.esm.js.map +0 -1
- package/dist/node_modules/@dnd-kit/utilities/dist/utilities.esm.js +0 -302
- package/dist/node_modules/@dnd-kit/utilities/dist/utilities.esm.js.map +0 -1
- package/dist/node_modules/@firebase/app/dist/esm/index.esm.js +0 -768
- package/dist/node_modules/@firebase/app/dist/esm/index.esm.js.map +0 -1
- package/dist/node_modules/@firebase/component/dist/esm/index.esm.js +0 -340
- package/dist/node_modules/@firebase/component/dist/esm/index.esm.js.map +0 -1
- package/dist/node_modules/@firebase/logger/dist/esm/index.esm.js +0 -123
- package/dist/node_modules/@firebase/logger/dist/esm/index.esm.js.map +0 -1
- package/dist/node_modules/@firebase/storage/dist/index.esm.js +0 -2623
- package/dist/node_modules/@firebase/storage/dist/index.esm.js.map +0 -1
- package/dist/node_modules/@firebase/util/dist/index.esm.js +0 -658
- package/dist/node_modules/@firebase/util/dist/index.esm.js.map +0 -1
- package/dist/node_modules/@firebase/util/dist/postinstall.js +0 -5
- package/dist/node_modules/@firebase/util/dist/postinstall.js.map +0 -1
- package/dist/node_modules/@fortawesome/fontawesome-svg-core/index.js +0 -3179
- package/dist/node_modules/@fortawesome/fontawesome-svg-core/index.js.map +0 -1
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/index.js +0 -60
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/index.js.map +0 -1
- package/dist/node_modules/@fortawesome/react-fontawesome/dist/index.js +0 -400
- package/dist/node_modules/@fortawesome/react-fontawesome/dist/index.js.map +0 -1
- package/dist/node_modules/@heroicons/react/20/solid/esm/CheckIcon.js +0 -27
- package/dist/node_modules/@heroicons/react/20/solid/esm/CheckIcon.js.map +0 -1
- package/dist/node_modules/@heroicons/react/20/solid/esm/ChevronDownIcon.js +0 -27
- package/dist/node_modules/@heroicons/react/20/solid/esm/ChevronDownIcon.js.map +0 -1
- package/dist/node_modules/@heroicons/react/24/outline/esm/ArrowRightIcon.js +0 -29
- package/dist/node_modules/@heroicons/react/24/outline/esm/ArrowRightIcon.js.map +0 -1
- package/dist/node_modules/@heroicons/react/24/outline/esm/ClockIcon.js +0 -29
- package/dist/node_modules/@heroicons/react/24/outline/esm/ClockIcon.js.map +0 -1
- package/dist/node_modules/@heroicons/react/24/outline/esm/DocumentDuplicateIcon.js +0 -29
- package/dist/node_modules/@heroicons/react/24/outline/esm/DocumentDuplicateIcon.js.map +0 -1
- package/dist/node_modules/@heroicons/react/24/outline/esm/InformationCircleIcon.js +0 -29
- package/dist/node_modules/@heroicons/react/24/outline/esm/InformationCircleIcon.js.map +0 -1
- package/dist/node_modules/@heroicons/react/24/outline/esm/LinkIcon.js +0 -29
- package/dist/node_modules/@heroicons/react/24/outline/esm/LinkIcon.js.map +0 -1
- package/dist/node_modules/@heroicons/react/24/outline/esm/MagnifyingGlassIcon.js +0 -29
- package/dist/node_modules/@heroicons/react/24/outline/esm/MagnifyingGlassIcon.js.map +0 -1
- package/dist/node_modules/@heroicons/react/24/outline/esm/MapPinIcon.js +0 -33
- package/dist/node_modules/@heroicons/react/24/outline/esm/MapPinIcon.js.map +0 -1
- package/dist/node_modules/@heroicons/react/24/outline/esm/VideoCameraIcon.js +0 -29
- package/dist/node_modules/@heroicons/react/24/outline/esm/VideoCameraIcon.js.map +0 -1
- package/dist/node_modules/@heroicons/react/24/outline/esm/XMarkIcon.js +0 -29
- package/dist/node_modules/@heroicons/react/24/outline/esm/XMarkIcon.js.map +0 -1
- package/dist/node_modules/@tiptap/core/dist/index.js +0 -5446
- package/dist/node_modules/@tiptap/core/dist/index.js.map +0 -1
- package/dist/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.js +0 -21
- package/dist/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.js.map +0 -1
- package/dist/node_modules/@tiptap/extension-blockquote/dist/index.js +0 -78
- package/dist/node_modules/@tiptap/extension-blockquote/dist/index.js.map +0 -1
- package/dist/node_modules/@tiptap/extension-bold/dist/index.js +0 -100
- package/dist/node_modules/@tiptap/extension-bold/dist/index.js.map +0 -1
- package/dist/node_modules/@tiptap/extension-code/dist/index.js +0 -70
- package/dist/node_modules/@tiptap/extension-code/dist/index.js.map +0 -1
- package/dist/node_modules/@tiptap/extension-code-block/dist/index.js +0 -317
- package/dist/node_modules/@tiptap/extension-code-block/dist/index.js.map +0 -1
- package/dist/node_modules/@tiptap/extension-document/dist/index.js +0 -16
- package/dist/node_modules/@tiptap/extension-document/dist/index.js.map +0 -1
- package/dist/node_modules/@tiptap/extension-hard-break/dist/index.js +0 -66
- package/dist/node_modules/@tiptap/extension-hard-break/dist/index.js.map +0 -1
- package/dist/node_modules/@tiptap/extension-heading/dist/index.js +0 -86
- package/dist/node_modules/@tiptap/extension-heading/dist/index.js.map +0 -1
- package/dist/node_modules/@tiptap/extension-horizontal-rule/dist/index.js +0 -80
- package/dist/node_modules/@tiptap/extension-horizontal-rule/dist/index.js.map +0 -1
- package/dist/node_modules/@tiptap/extension-italic/dist/index.js +0 -98
- package/dist/node_modules/@tiptap/extension-italic/dist/index.js.map +0 -1
- package/dist/node_modules/@tiptap/extension-link/dist/index.js +0 -423
- package/dist/node_modules/@tiptap/extension-link/dist/index.js.map +0 -1
- package/dist/node_modules/@tiptap/extension-list/dist/index.js +0 -1039
- package/dist/node_modules/@tiptap/extension-list/dist/index.js.map +0 -1
- package/dist/node_modules/@tiptap/extension-paragraph/dist/index.js +0 -61
- package/dist/node_modules/@tiptap/extension-paragraph/dist/index.js.map +0 -1
- package/dist/node_modules/@tiptap/extension-placeholder/dist/index.js +0 -7
- package/dist/node_modules/@tiptap/extension-placeholder/dist/index.js.map +0 -1
- package/dist/node_modules/@tiptap/extension-strike/dist/index.js +0 -79
- package/dist/node_modules/@tiptap/extension-strike/dist/index.js.map +0 -1
- package/dist/node_modules/@tiptap/extension-text/dist/index.js +0 -16
- package/dist/node_modules/@tiptap/extension-text/dist/index.js.map +0 -1
- package/dist/node_modules/@tiptap/extension-underline/dist/index.js +0 -76
- package/dist/node_modules/@tiptap/extension-underline/dist/index.js.map +0 -1
- package/dist/node_modules/@tiptap/extensions/dist/index.js +0 -376
- package/dist/node_modules/@tiptap/extensions/dist/index.js.map +0 -1
- package/dist/node_modules/@tiptap/react/dist/index.js +0 -650
- package/dist/node_modules/@tiptap/react/dist/index.js.map +0 -1
- package/dist/node_modules/@tiptap/starter-kit/dist/index.js +0 -97
- package/dist/node_modules/@tiptap/starter-kit/dist/index.js.map +0 -1
- package/dist/node_modules/dayjs/dayjs.min.js +0 -283
- package/dist/node_modules/dayjs/dayjs.min.js.map +0 -1
- package/dist/node_modules/dayjs/plugin/customParseFormat.js +0 -130
- package/dist/node_modules/dayjs/plugin/customParseFormat.js.map +0 -1
- package/dist/node_modules/dayjs/plugin/duration.js +0 -137
- package/dist/node_modules/dayjs/plugin/duration.js.map +0 -1
- package/dist/node_modules/dayjs/plugin/isBetween.js +0 -20
- package/dist/node_modules/dayjs/plugin/isBetween.js.map +0 -1
- package/dist/node_modules/dayjs/plugin/relativeTime.js +0 -49
- package/dist/node_modules/dayjs/plugin/relativeTime.js.map +0 -1
- package/dist/node_modules/fast-equals/dist/es/index.js +0 -442
- package/dist/node_modules/fast-equals/dist/es/index.js.map +0 -1
- package/dist/node_modules/idb/build/index.js +0 -70
- package/dist/node_modules/idb/build/index.js.map +0 -1
- package/dist/node_modules/idb/build/wrap-idb-value.js +0 -149
- package/dist/node_modules/idb/build/wrap-idb-value.js.map +0 -1
- package/dist/node_modules/linkifyjs/dist/linkify.js +0 -1159
- package/dist/node_modules/linkifyjs/dist/linkify.js.map +0 -1
- package/dist/node_modules/orderedmap/dist/index.js +0 -120
- package/dist/node_modules/orderedmap/dist/index.js.map +0 -1
- package/dist/node_modules/prosemirror-commands/dist/index.js +0 -527
- package/dist/node_modules/prosemirror-commands/dist/index.js.map +0 -1
- package/dist/node_modules/prosemirror-dropcursor/dist/index.js +0 -137
- package/dist/node_modules/prosemirror-dropcursor/dist/index.js.map +0 -1
- package/dist/node_modules/prosemirror-gapcursor/dist/index.js +0 -221
- package/dist/node_modules/prosemirror-gapcursor/dist/index.js.map +0 -1
- package/dist/node_modules/prosemirror-history/dist/index.js +0 -357
- package/dist/node_modules/prosemirror-history/dist/index.js.map +0 -1
- package/dist/node_modules/prosemirror-keymap/dist/index.js +0 -84
- package/dist/node_modules/prosemirror-keymap/dist/index.js.map +0 -1
- package/dist/node_modules/prosemirror-model/dist/index.js +0 -3209
- package/dist/node_modules/prosemirror-model/dist/index.js.map +0 -1
- package/dist/node_modules/prosemirror-schema-list/dist/index.js +0 -131
- package/dist/node_modules/prosemirror-schema-list/dist/index.js.map +0 -1
- package/dist/node_modules/prosemirror-state/dist/index.js +0 -936
- package/dist/node_modules/prosemirror-state/dist/index.js.map +0 -1
- package/dist/node_modules/prosemirror-transform/dist/index.js +0 -1881
- package/dist/node_modules/prosemirror-transform/dist/index.js.map +0 -1
- package/dist/node_modules/prosemirror-view/dist/index.js +0 -5232
- package/dist/node_modules/prosemirror-view/dist/index.js.map +0 -1
- package/dist/node_modules/rope-sequence/dist/index.js +0 -184
- package/dist/node_modules/rope-sequence/dist/index.js.map +0 -1
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js +0 -82
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js.map +0 -1
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js +0 -78
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js.map +0 -1
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js +0 -78
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js.map +0 -1
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js +0 -63
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js.map +0 -1
- package/dist/node_modules/use-sync-external-store/shim/index.js +0 -13
- package/dist/node_modules/use-sync-external-store/shim/index.js.map +0 -1
- package/dist/node_modules/use-sync-external-store/shim/with-selector.js +0 -13
- package/dist/node_modules/use-sync-external-store/shim/with-selector.js.map +0 -1
- package/dist/node_modules/w3c-keyname/index.js +0 -106
- package/dist/node_modules/w3c-keyname/index.js.map +0 -1
- package/dist/node_modules/zod/v4/classic/coerce.js +0 -10
- package/dist/node_modules/zod/v4/classic/coerce.js.map +0 -1
- package/dist/node_modules/zod/v4/classic/compat.js +0 -8
- package/dist/node_modules/zod/v4/classic/compat.js.map +0 -1
- package/dist/node_modules/zod/v4/classic/errors.js +0 -45
- package/dist/node_modules/zod/v4/classic/errors.js.map +0 -1
- package/dist/node_modules/zod/v4/classic/iso.js +0 -44
- package/dist/node_modules/zod/v4/classic/iso.js.map +0 -1
- package/dist/node_modules/zod/v4/classic/parse.js +0 -30
- package/dist/node_modules/zod/v4/classic/parse.js.map +0 -1
- package/dist/node_modules/zod/v4/classic/schemas.js +0 -711
- package/dist/node_modules/zod/v4/classic/schemas.js.map +0 -1
- package/dist/node_modules/zod/v4/core/api.js +0 -588
- package/dist/node_modules/zod/v4/core/api.js.map +0 -1
- package/dist/node_modules/zod/v4/core/checks.js +0 -411
- package/dist/node_modules/zod/v4/core/checks.js.map +0 -1
- package/dist/node_modules/zod/v4/core/core.js +0 -75
- package/dist/node_modules/zod/v4/core/core.js.map +0 -1
- package/dist/node_modules/zod/v4/core/doc.js +0 -38
- package/dist/node_modules/zod/v4/core/doc.js.map +0 -1
- package/dist/node_modules/zod/v4/core/errors.js +0 -73
- package/dist/node_modules/zod/v4/core/errors.js.map +0 -1
- package/dist/node_modules/zod/v4/core/json-schema-processors.js +0 -359
- package/dist/node_modules/zod/v4/core/json-schema-processors.js.map +0 -1
- package/dist/node_modules/zod/v4/core/parse.js +0 -96
- package/dist/node_modules/zod/v4/core/parse.js.map +0 -1
- package/dist/node_modules/zod/v4/core/regexes.js +0 -84
- package/dist/node_modules/zod/v4/core/regexes.js.map +0 -1
- package/dist/node_modules/zod/v4/core/registries.js +0 -52
- package/dist/node_modules/zod/v4/core/registries.js.map +0 -1
- package/dist/node_modules/zod/v4/core/schemas.js +0 -1391
- package/dist/node_modules/zod/v4/core/schemas.js.map +0 -1
- package/dist/node_modules/zod/v4/core/to-json-schema.js +0 -363
- package/dist/node_modules/zod/v4/core/to-json-schema.js.map +0 -1
- package/dist/node_modules/zod/v4/core/util.js +0 -431
- package/dist/node_modules/zod/v4/core/util.js.map +0 -1
- package/dist/node_modules/zod/v4/core/versions.js +0 -9
- package/dist/node_modules/zod/v4/core/versions.js.map +0 -1
- package/dist/redux/baseQuery.d.ts +0 -1
- package/dist/redux/baseQuery.js +0 -24
- package/dist/redux/baseQuery.js.map +0 -1
- package/dist/services/eventApi.js +0 -411
- package/dist/services/eventApi.js.map +0 -1
- package/dist/services/helpers.js +0 -115
- package/dist/services/helpers.js.map +0 -1
- package/dist/services/initialize-firebase.d.ts +0 -2
- package/dist/services/initialize-firebase.js +0 -20
- package/dist/services/initialize-firebase.js.map +0 -1
- package/dist/services/process-image-on-server.js +0 -30
- package/dist/services/process-image-on-server.js.map +0 -1
- package/dist/services/remote-config.d.ts +0 -5
- package/dist/services/remote-config.js +0 -9
- package/dist/services/remote-config.js.map +0 -1
- package/dist/services/single-event-api.js +0 -301
- package/dist/services/single-event-api.js.map +0 -1
- package/dist/services/utils.js +0 -107
- package/dist/services/utils.js.map +0 -1
- package/dist/setupTests.d.ts +0 -1
- package/dist/stories/Alert.stories.d.ts +0 -10
- package/dist/stories/Button.stories.d.ts +0 -13
- package/dist/types/redux-types.d.ts +0 -15
- package/dist/types/types.d.ts +0 -60
- package/dist/types/types.js +0 -10
- package/dist/types/types.js.map +0 -1
- package/dist/utils/cn.d.ts +0 -6
- package/dist/utils/cn.js +0 -9
- package/dist/utils/cn.js.map +0 -1
- package/dist/utils/date-range.d.ts +0 -4
- package/dist/utils/date-range.js +0 -13
- package/dist/utils/date-range.js.map +0 -1
- package/dist/utils/single-event-helpers.d.ts +0 -50
- package/dist/utils/single-event-helpers.js +0 -18
- package/dist/utils/single-event-helpers.js.map +0 -1
- package/dist/utils/social-validation.js +0 -42
- package/dist/utils/social-validation.js.map +0 -1
- package/dist/utils/utils.js +0 -20
- package/dist/utils/utils.js.map +0 -1
- /package/dist/{components/Alert/Alert.d.ts → src/components/Alert/index.d.ts} +0 -0
- /package/dist/{components → src/components}/FormBuilder/CategoryList.d.ts +0 -0
- /package/dist/{components → src/components}/FormBuilder/OptionList.d.ts +0 -0
- /package/dist/{components → src/components}/FormBuilder/RequiredToggle.d.ts +0 -0
- /package/dist/{components → src/components}/FormBuilder/types.d.ts +0 -0
- /package/dist/{components → src/components}/FormBuilder/utils.d.ts +0 -0
- /package/dist/{components → src/components}/ImageCropModal/index.d.ts +0 -0
- /package/dist/{components → src/components}/InformationPopover.d.ts +0 -0
- /package/dist/{components/EventAddForm → src/components/NewAddEvent}/common/DescriptionModal.d.ts +0 -0
- /package/dist/{components/ui/FormInput.d.ts → src/components/NewAddEvent/components/AddEventFormInput.d.ts} +0 -0
- /package/dist/{components/EventAddForm → src/components/NewAddEvent}/components/CheckboxGroup.d.ts +0 -0
- /package/dist/{components/EventAddForm → src/components/NewAddEvent}/components/CustomMeetingForm.d.ts +0 -0
- /package/dist/{components/EventAddForm → src/components/NewAddEvent}/components/DateTimeField.d.ts +0 -0
- /package/dist/{components/EventAddForm → src/components/NewAddEvent}/components/FileUpload.d.ts +0 -0
- /package/dist/{components/EventAddForm → src/components/NewAddEvent}/components/FormBuilderProceedModal.d.ts +0 -0
- /package/dist/{components/EventAddForm → src/components/NewAddEvent}/components/GoogleMapsAutocompleteInput.d.ts +0 -0
- /package/dist/{components/EventAddForm → src/components/NewAddEvent}/components/SingleDateTimeInput.d.ts +0 -0
- /package/dist/{components/EventAddForm → src/components/NewAddEvent}/components/StepTwo/CustomFormSection.d.ts +0 -0
- /package/dist/{components/EventAddForm → src/components/NewAddEvent}/components/TicketTypeSelection.d.ts +0 -0
- /package/dist/{components/EventAddForm → src/components/NewAddEvent}/steps/StepOne.d.ts +0 -0
- /package/dist/{components/EventAddForm → src/components/NewAddEvent}/steps/StepTwo.d.ts +0 -0
- /package/dist/{components/EventAddForm → src/components/NewAddEvent}/types.d.ts +0 -0
- /package/dist/{components → src/components}/common/FallbackImage.d.ts +0 -0
- /package/dist/{components → src/components}/ui/Calendar/calendar-utils.d.ts +0 -0
- /package/dist/{components → src/components}/ui/Calendar/index.d.ts +0 -0
- /package/dist/{components/Checkbox → src/components/ui}/Checkbox.d.ts +0 -0
- /package/dist/{components/CustomSelect → src/components/ui}/CustomSelect.d.ts +0 -0
- /package/dist/{components → src/components}/ui/DatePicker/index.d.ts +0 -0
- /package/dist/{components/InputErrorMessage → src/components/ui}/InputErrorMessage.d.ts +0 -0
- /package/dist/{components → src/components}/ui/Modal/index.d.ts +0 -0
- /package/dist/{components/Radio → src/components/ui}/Radio.d.ts +0 -0
- /package/dist/{components → src/components}/ui/RichTextEditor.d.ts +0 -0
- /package/dist/{components → src/components}/ui/TimePicker/index.d.ts +0 -0
- /package/dist/{components → src/components}/ui/TimeSelector/index.d.ts +0 -0
- /package/dist/{components → src/components}/ui/Tooltip/index.d.ts +0 -0
- /package/dist/{lib → src/lib}/constants.d.ts +0 -0
- /package/dist/{lib → src/lib}/cropImage.d.ts +0 -0
- /package/dist/{lib → src/lib}/imageAnalysis.d.ts +0 -0
- /package/dist/{utils → src/lib}/social-validation.d.ts +0 -0
- /package/dist/{lib/utils.d.ts → src/lib/tailwind-merge.d.ts} +0 -0
- /package/dist/{utils → src/lib}/utils.d.ts +0 -0
- /package/dist/{services → src/redux/features/single-event}/helpers.d.ts +0 -0
- /package/dist/{services → src/services}/process-image-on-server.d.ts +0 -0
- /package/dist/{types → src/types}/events.d.ts +0 -0
- /package/dist/{types → src/types}/question.d.ts +0 -0
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { memo, forwardRef, useRef, useImperativeHandle } from "react";
|
|
3
|
-
import FormBuilder from "../../FormBuilder/FormBuilder.js";
|
|
4
|
-
import Link from "next/link";
|
|
5
|
-
import { Eye } from "lucide-react";
|
|
6
|
-
import { Button } from "../../Button/Button.js";
|
|
7
|
-
const IndividualFormStep = forwardRef((props, ref) => {
|
|
8
|
-
var _a, _b, _c, _d, _e;
|
|
9
|
-
const { eventId, scopeOverride, participationTypeOverride, formState, eventData, isSameQuestionTitleAllowed, allowedDiscountQuestions = 1, onBusyStateChange, onPolluted } = props;
|
|
10
|
-
const formBuilderRef = useRef(null);
|
|
11
|
-
useImperativeHandle(ref, () => ({
|
|
12
|
-
saveForm: async () => {
|
|
13
|
-
if (formBuilderRef.current) {
|
|
14
|
-
await formBuilderRef.current.save();
|
|
15
|
-
}
|
|
16
|
-
},
|
|
17
|
-
validateNavigation: () => {
|
|
18
|
-
if (formBuilderRef.current) {
|
|
19
|
-
return formBuilderRef.current.validateNavigation();
|
|
20
|
-
}
|
|
21
|
-
return true;
|
|
22
|
-
},
|
|
23
|
-
isBusy: () => {
|
|
24
|
-
if (formBuilderRef.current) {
|
|
25
|
-
return formBuilderRef.current.isSaving() || formBuilderRef.current.isDirty();
|
|
26
|
-
}
|
|
27
|
-
return false;
|
|
28
|
-
}
|
|
29
|
-
}));
|
|
30
|
-
const participationType = participationTypeOverride || formState.participants_type;
|
|
31
|
-
const scope = scopeOverride !== void 0 ? scopeOverride : participationType === "BOTH" ? "INDIVIDUAL" : void 0;
|
|
32
|
-
return /* @__PURE__ */ jsx("div", { className: "w-full max-w-4xl mx-auto", children: /* @__PURE__ */ jsx("div", { className: "rounded-2xl", children: /* @__PURE__ */ jsxs("div", { className: "sm:p-8 p-4", children: [
|
|
33
|
-
/* @__PURE__ */ jsxs("div", { className: "flex flex-wrap gap-2 justify-between items-center mb-8", children: [
|
|
34
|
-
/* @__PURE__ */ jsxs("div", { children: [
|
|
35
|
-
/* @__PURE__ */ jsx("h2", { className: "text-xl font-semibold text-gray-800", children: scope === "INDIVIDUAL" ? "Individual form setup" : scope === "TEAM" ? "Team form setup" : participationType === "2" ? "Team form setup" : "Questions" }),
|
|
36
|
-
/* @__PURE__ */ jsx("p", { className: "text-sm text-grey-500", children: "Customize the questions asked during registration." })
|
|
37
|
-
] }),
|
|
38
|
-
/* @__PURE__ */ jsx(
|
|
39
|
-
Link,
|
|
40
|
-
{
|
|
41
|
-
href: `/form-preview?eventId=${eventId}&eventName=${eventData == null ? void 0 : eventData.name}${scope ? `®istration_type=${scope}` : ""}`,
|
|
42
|
-
target: ((_b = (_a = eventData == null ? void 0 : eventData.event_form_schema) == null ? void 0 : _a.fields) == null ? void 0 : _b.length) > 0 ? "_blank" : "_self",
|
|
43
|
-
"aria-disabled": ((_d = (_c = eventData == null ? void 0 : eventData.event_form_schema) == null ? void 0 : _c.fields) == null ? void 0 : _d.length) === 0,
|
|
44
|
-
children: /* @__PURE__ */ jsxs(Button, { className: "flex space-x-2 h-10", children: [
|
|
45
|
-
/* @__PURE__ */ jsx(Eye, { className: "text-white size-4" }),
|
|
46
|
-
/* @__PURE__ */ jsx("span", { children: "Preview form" })
|
|
47
|
-
] })
|
|
48
|
-
}
|
|
49
|
-
)
|
|
50
|
-
] }),
|
|
51
|
-
/* @__PURE__ */ jsx(
|
|
52
|
-
FormBuilder,
|
|
53
|
-
{
|
|
54
|
-
ref: formBuilderRef,
|
|
55
|
-
eventId,
|
|
56
|
-
initialFields: (_e = formState == null ? void 0 : formState.event_form_schema) == null ? void 0 : _e.fields,
|
|
57
|
-
discountFilePath: eventData == null ? void 0 : eventData.discount_file_path,
|
|
58
|
-
individualDiscountFilePath: eventData == null ? void 0 : eventData.individual_discount_file_path,
|
|
59
|
-
participationType,
|
|
60
|
-
scope,
|
|
61
|
-
isSameQuestionTitleAllowed,
|
|
62
|
-
allowedDiscountQuestions,
|
|
63
|
-
onBusyStateChange,
|
|
64
|
-
onPolluted,
|
|
65
|
-
onQuestionsChange: (questions) => {
|
|
66
|
-
if (props.setMultipleFields) {
|
|
67
|
-
props.setMultipleFields((prev) => ({
|
|
68
|
-
...prev,
|
|
69
|
-
event_form_schema: {
|
|
70
|
-
...prev.event_form_schema,
|
|
71
|
-
fields: questions
|
|
72
|
-
}
|
|
73
|
-
}));
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
)
|
|
78
|
-
] }) }) });
|
|
79
|
-
});
|
|
80
|
-
IndividualFormStep.displayName = "IndividualFormStep";
|
|
81
|
-
const IndividualFormStep$1 = memo(IndividualFormStep);
|
|
82
|
-
export {
|
|
83
|
-
IndividualFormStep$1 as default
|
|
84
|
-
};
|
|
85
|
-
//# sourceMappingURL=IndividualFormStep.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IndividualFormStep.js","sources":["../../../../src/components/EventAddForm/steps/IndividualFormStep.tsx"],"sourcesContent":["import { memo, useRef, useImperativeHandle, forwardRef } from \"react\";\r\n\r\nimport { StepperFormState } from \"../types\";\r\nimport FormBuilder, { FormBuilderRef } from \"../../FormBuilder/FormBuilder\";\r\nimport Link from \"next/link\";\r\nimport Image from \"next/image\";\r\nimport { Eye } from \"lucide-react\";\r\nimport { Button } from \"../../Button\";\r\n\r\ninterface IndividualFormStepProps {\r\n formState: StepperFormState;\r\n setField: (field: keyof StepperFormState, value: any) => void;\r\n setMultipleFields: (fields: Partial<StepperFormState> | ((prev: StepperFormState) => Partial<StepperFormState>)) => void;\r\n errors: Record<string, string>;\r\n validateField: (field: keyof StepperFormState, data?: StepperFormState) => void;\r\n setErrors: React.Dispatch<React.SetStateAction<Record<string, string>>>;\r\n eventId: string;\r\n eventData: any;\r\n onMountSave?: (saveFn: () => Promise<void>) => void;\r\n scopeOverride?: 'INDIVIDUAL' | 'TEAM';\r\n participationTypeOverride?: string;\r\n isSameQuestionTitleAllowed?: boolean;\r\n allowedDiscountQuestions?: number;\r\n onBusyStateChange?: (isBusy: boolean) => void;\r\n onPolluted?: () => void;\r\n}\r\n\r\nexport interface IndividualFormStepRef {\r\n saveForm: () => Promise<void>;\r\n validateNavigation: () => boolean;\r\n isBusy: () => boolean;\r\n}\r\n\r\nconst IndividualFormStep = forwardRef<IndividualFormStepRef, IndividualFormStepProps>((props, ref) => {\r\n const { eventId, scopeOverride, participationTypeOverride, formState, eventData, isSameQuestionTitleAllowed, allowedDiscountQuestions = 1, onBusyStateChange, onPolluted } = props;\r\n const formBuilderRef = useRef<FormBuilderRef>(null);\r\n\r\n useImperativeHandle(ref, () => ({\r\n saveForm: async () => {\r\n if (formBuilderRef.current) {\r\n await formBuilderRef.current.save();\r\n }\r\n },\r\n validateNavigation: () => {\r\n if (formBuilderRef.current) {\r\n return formBuilderRef.current.validateNavigation();\r\n }\r\n return true;\r\n },\r\n isBusy: () => {\r\n if (formBuilderRef.current) {\r\n return formBuilderRef.current.isSaving() || formBuilderRef.current.isDirty();\r\n }\r\n return false;\r\n }\r\n }));\r\n\r\n // Logic for Participation Type (Allow override for Step 4)\r\n const participationType = participationTypeOverride || formState.participants_type;\r\n\r\n // Logic for Scope:\r\n // 1. Explicit Override\r\n // 2. If BOTH (and not overridden to '2'/'TEAM'): Default to INDIVIDUAL (Step 3 behavior)\r\n // 3. Otherwise undefined (Let FormBuilder decide based on type)\r\n const scope = scopeOverride !== undefined\r\n ? scopeOverride\r\n : (participationType === 'BOTH' ? 'INDIVIDUAL' : undefined);\r\n\r\n return (\r\n <div className=\"w-full max-w-4xl mx-auto\">\r\n <div className=\"rounded-2xl\">\r\n <div className=\"sm:p-8 p-4\">\r\n <div className=\"flex flex-wrap gap-2 justify-between items-center mb-8\">\r\n <div>\r\n <h2 className=\"text-xl font-semibold text-gray-800\">\r\n {scope === 'INDIVIDUAL' ? 'Individual form setup' :\r\n scope === 'TEAM' ? 'Team form setup' :\r\n participationType === '2' ? 'Team form setup' :\r\n 'Questions'}\r\n </h2>\r\n <p className=\"text-sm text-grey-500\">\r\n Customize the questions asked during registration.\r\n </p>\r\n </div>\r\n <Link\r\n href={`/form-preview?eventId=${eventId}&eventName=${eventData?.name}${scope ? `®istration_type=${scope}` : \"\"}`}\r\n target={eventData?.event_form_schema?.fields?.length > 0 ? \"_blank\" : \"_self\"}\r\n aria-disabled={eventData?.event_form_schema?.fields?.length === 0}\r\n >\r\n <Button className=\"flex space-x-2 h-10\">\r\n <Eye className=\"text-white size-4\" />\r\n <span>Preview form</span>\r\n </Button>\r\n </Link>\r\n </div>\r\n <FormBuilder\r\n ref={formBuilderRef}\r\n eventId={eventId}\r\n initialFields={formState?.event_form_schema?.fields}\r\n discountFilePath={eventData?.discount_file_path}\r\n individualDiscountFilePath={eventData?.individual_discount_file_path}\r\n participationType={participationType}\r\n scope={scope}\r\n isSameQuestionTitleAllowed={isSameQuestionTitleAllowed}\r\n allowedDiscountQuestions={allowedDiscountQuestions}\r\n onBusyStateChange={onBusyStateChange}\r\n onPolluted={onPolluted}\r\n onQuestionsChange={(questions) => {\r\n // Sync back to parent state\r\n if (props.setMultipleFields) {\r\n props.setMultipleFields((prev) => ({\r\n ...prev,\r\n event_form_schema: {\r\n ...prev.event_form_schema,\r\n fields: questions\r\n }\r\n }));\r\n }\r\n }}\r\n />\r\n\r\n {/* Navigation handled by parent layout mostly, but Button here if needed */}\r\n {/* <div className=\"flex justify-end pt-6 mt-6 border-t border-grey-100\">\r\n </div> */}\r\n </div>\r\n </div>\r\n </div>\r\n );\r\n});\r\n\r\nIndividualFormStep.displayName = \"IndividualFormStep\";\r\n \r\nexport default memo(IndividualFormStep);\r\n"],"names":[],"mappings":";;;;;;AAiCA,MAAM,qBAAqB,WAA2D,CAAC,OAAO,QAAQ;;AAClG,QAAM,EAAE,SAAS,eAAe,2BAA2B,WAAW,WAAW,4BAA4B,2BAA2B,GAAG,mBAAmB,WAAA,IAAe;AAC7K,QAAM,iBAAiB,OAAuB,IAAI;AAElD,sBAAoB,KAAK,OAAO;AAAA,IAC5B,UAAU,YAAY;AAClB,UAAI,eAAe,SAAS;AACxB,cAAM,eAAe,QAAQ,KAAA;AAAA,MACjC;AAAA,IACJ;AAAA,IACA,oBAAoB,MAAM;AACtB,UAAI,eAAe,SAAS;AACxB,eAAO,eAAe,QAAQ,mBAAA;AAAA,MAClC;AACA,aAAO;AAAA,IACX;AAAA,IACA,QAAQ,MAAM;AACV,UAAI,eAAe,SAAS;AACxB,eAAO,eAAe,QAAQ,SAAA,KAAc,eAAe,QAAQ,QAAA;AAAA,MACvE;AACA,aAAO;AAAA,IACX;AAAA,EAAA,EACF;AAGF,QAAM,oBAAoB,6BAA6B,UAAU;AAMjE,QAAM,QAAQ,kBAAkB,SAC1B,gBACC,sBAAsB,SAAS,eAAe;AAErD,SACI,oBAAC,OAAA,EAAI,WAAU,4BACX,UAAA,oBAAC,OAAA,EAAI,WAAU,eACX,UAAA,qBAAC,OAAA,EAAI,WAAU,cACX,UAAA;AAAA,IAAA,qBAAC,OAAA,EAAI,WAAU,0DACX,UAAA;AAAA,MAAA,qBAAC,OAAA,EACG,UAAA;AAAA,QAAA,oBAAC,MAAA,EAAG,WAAU,uCACT,UAAA,UAAU,eAAe,0BACtB,UAAU,SAAS,oBACf,sBAAsB,MAAM,oBACxB,aAChB;AAAA,QACA,oBAAC,KAAA,EAAE,WAAU,yBAAwB,UAAA,qDAAA,CAErC;AAAA,MAAA,GACJ;AAAA,MACA;AAAA,QAAC;AAAA,QAAA;AAAA,UACG,MAAM,yBAAyB,OAAO,cAAc,uCAAW,IAAI,GAAG,QAAQ,sBAAsB,KAAK,KAAK,EAAE;AAAA,UAChH,UAAQ,kDAAW,sBAAX,mBAA8B,WAA9B,mBAAsC,UAAS,IAAI,WAAW;AAAA,UACtE,mBAAe,kDAAW,sBAAX,mBAA8B,WAA9B,mBAAsC,YAAW;AAAA,UAEhE,UAAA,qBAAC,QAAA,EAAO,WAAU,uBACd,UAAA;AAAA,YAAA,oBAAC,KAAA,EAAI,WAAU,oBAAA,CAAoB;AAAA,YACnC,oBAAC,UAAK,UAAA,eAAA,CAAY;AAAA,UAAA,EAAA,CACtB;AAAA,QAAA;AAAA,MAAA;AAAA,IACJ,GACJ;AAAA,IACA;AAAA,MAAC;AAAA,MAAA;AAAA,QACG,KAAK;AAAA,QACL;AAAA,QACA,gBAAe,4CAAW,sBAAX,mBAA8B;AAAA,QAC7C,kBAAkB,uCAAW;AAAA,QAC7B,4BAA4B,uCAAW;AAAA,QACvC;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA,mBAAmB,CAAC,cAAc;AAE9B,cAAI,MAAM,mBAAmB;AACzB,kBAAM,kBAAkB,CAAC,UAAU;AAAA,cAC/B,GAAG;AAAA,cACH,mBAAmB;AAAA,gBACf,GAAG,KAAK;AAAA,gBACR,QAAQ;AAAA,cAAA;AAAA,YACZ,EACF;AAAA,UACN;AAAA,QACJ;AAAA,MAAA;AAAA,IAAA;AAAA,EACJ,EAAA,CAKJ,GACJ,GACJ;AAER,CAAC;AAED,mBAAmB,cAAc;AAEjC,MAAA,uBAAe,KAAK,kBAAkB;"}
|
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { memo, forwardRef, useState, useImperativeHandle } from "react";
|
|
3
|
-
import { motion } from "framer-motion";
|
|
4
|
-
import FormInput from "../../ui/FormInput.js";
|
|
5
|
-
import { cn } from "../../../utils/utils.js";
|
|
6
|
-
import { getPlatformErrorMessage, validateSocialUrl } from "../../../utils/social-validation.js";
|
|
7
|
-
import { FaInstagram, FaFacebook } from "react-icons/fa";
|
|
8
|
-
const Twitter = (props) => /* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", "aria-hidden": "true", ...props, className: cn("h-5 w-5 fill-current", props.className), children: /* @__PURE__ */ jsx("path", { d: "M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932L18.901 1.153zM17.61 20.644h2.039L6.486 3.24H4.298L17.61 20.644z" }) });
|
|
9
|
-
const SOCIAL_CONFIG = [
|
|
10
|
-
{ key: "instagram", label: "Instagram Profile Link", icon: FaInstagram, placeholder: "https://instagram.com/yourprofile" },
|
|
11
|
-
{ key: "facebook", label: "Facebook Profile Link", icon: FaFacebook, placeholder: "https://facebook.com/yourprofile" },
|
|
12
|
-
{ key: "twitter", label: "X (Twitter) Profile Link", icon: Twitter, placeholder: "https://x.com/yourprofile" }
|
|
13
|
-
];
|
|
14
|
-
const SocialProfilesStep = forwardRef((props, ref) => {
|
|
15
|
-
const { formState, setField, onPolluted } = props;
|
|
16
|
-
const [localErrors, setLocalErrors] = useState({});
|
|
17
|
-
const validateFieldUrl = (platform, url) => {
|
|
18
|
-
if (!url) return true;
|
|
19
|
-
return validateSocialUrl(platform, url);
|
|
20
|
-
};
|
|
21
|
-
useImperativeHandle(ref, () => ({
|
|
22
|
-
saveForm: async () => {
|
|
23
|
-
return Promise.resolve();
|
|
24
|
-
},
|
|
25
|
-
validateNavigation: () => {
|
|
26
|
-
const errors = {};
|
|
27
|
-
let isValid = true;
|
|
28
|
-
SOCIAL_CONFIG.forEach((config) => {
|
|
29
|
-
var _a;
|
|
30
|
-
const value = (_a = formState.social_profiles) == null ? void 0 : _a[config.key];
|
|
31
|
-
if (value && !validateFieldUrl(config.key, value)) {
|
|
32
|
-
errors[config.key] = getPlatformErrorMessage(config.key);
|
|
33
|
-
isValid = false;
|
|
34
|
-
}
|
|
35
|
-
});
|
|
36
|
-
setLocalErrors(errors);
|
|
37
|
-
return isValid;
|
|
38
|
-
}
|
|
39
|
-
}));
|
|
40
|
-
const handleSocialChange = (key, value) => {
|
|
41
|
-
setField("social_profiles", {
|
|
42
|
-
instagram: "",
|
|
43
|
-
facebook: "",
|
|
44
|
-
twitter: "",
|
|
45
|
-
...formState.social_profiles,
|
|
46
|
-
[key]: value
|
|
47
|
-
});
|
|
48
|
-
if (localErrors[key]) {
|
|
49
|
-
const isValid = validateFieldUrl(key, value);
|
|
50
|
-
if (isValid) {
|
|
51
|
-
setLocalErrors((prev) => {
|
|
52
|
-
const newErrors = { ...prev };
|
|
53
|
-
delete newErrors[key];
|
|
54
|
-
return newErrors;
|
|
55
|
-
});
|
|
56
|
-
} else {
|
|
57
|
-
setLocalErrors((prev) => ({
|
|
58
|
-
...prev,
|
|
59
|
-
[key]: getPlatformErrorMessage(key)
|
|
60
|
-
}));
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
};
|
|
64
|
-
const handleSocialBlur = (key) => {
|
|
65
|
-
var _a;
|
|
66
|
-
const value = (_a = formState.social_profiles) == null ? void 0 : _a[key];
|
|
67
|
-
if (value && !validateFieldUrl(key, value)) {
|
|
68
|
-
setLocalErrors((prev) => ({
|
|
69
|
-
...prev,
|
|
70
|
-
[key]: getPlatformErrorMessage(key)
|
|
71
|
-
}));
|
|
72
|
-
}
|
|
73
|
-
};
|
|
74
|
-
return /* @__PURE__ */ jsx("div", { className: "max-w-[734px] mx-auto space-y-6 animate-in fade-in slide-in-from-bottom-4 duration-500", children: /* @__PURE__ */ jsxs("div", { className: "py-6 space-y-4 rounded-lg", children: [
|
|
75
|
-
/* @__PURE__ */ jsx("h2", { className: "text-lg font-semibold text-grey-900 px-4", children: "Social Profiles" }),
|
|
76
|
-
/* @__PURE__ */ jsxs("div", { className: "space-y-4 px-4", children: [
|
|
77
|
-
SOCIAL_CONFIG.map((config) => {
|
|
78
|
-
var _a;
|
|
79
|
-
return /* @__PURE__ */ jsx(
|
|
80
|
-
FormInput,
|
|
81
|
-
{
|
|
82
|
-
label: config.label,
|
|
83
|
-
icon: config.icon,
|
|
84
|
-
type: "text",
|
|
85
|
-
placeholder: config.placeholder,
|
|
86
|
-
value: ((_a = formState.social_profiles) == null ? void 0 : _a[config.key]) || "",
|
|
87
|
-
onChange: (e) => handleSocialChange(config.key, e.target ? e.target.value : e),
|
|
88
|
-
onBlur: () => handleSocialBlur(config.key),
|
|
89
|
-
error: localErrors[config.key]
|
|
90
|
-
},
|
|
91
|
-
config.key
|
|
92
|
-
);
|
|
93
|
-
}),
|
|
94
|
-
/* @__PURE__ */ jsxs(
|
|
95
|
-
motion.div,
|
|
96
|
-
{
|
|
97
|
-
initial: { opacity: 0, y: 10 },
|
|
98
|
-
animate: { opacity: 1, y: 0 },
|
|
99
|
-
transition: { delay: 0.2 },
|
|
100
|
-
className: "p-4 mt-6 rounded-xl bg-gradient-to-br from-purple-50 to-white border border-purple-100 flex items-start gap-4 shadow-sm",
|
|
101
|
-
children: [
|
|
102
|
-
/* @__PURE__ */ jsx("div", { className: "w-10 h-10 rounded-full bg-purple-100 flex items-center justify-center flex-shrink-0", children: /* @__PURE__ */ jsx(FaInstagram, { className: "w-5 h-5 text-purple-600" }) }),
|
|
103
|
-
/* @__PURE__ */ jsxs("div", { className: "space-y-1", children: [
|
|
104
|
-
/* @__PURE__ */ jsx("h4", { className: "text-sm font-semibold text-purple-900", children: "Get Featured!" }),
|
|
105
|
-
/* @__PURE__ */ jsxs("p", { className: "text-[13px] text-purple-700 leading-relaxed", children: [
|
|
106
|
-
"Share your event updates on Instagram and tag ",
|
|
107
|
-
/* @__PURE__ */ jsx("a", { href: process.env.NEXT_PUBLIC_INSTAGRAM_URL, target: "_blank", rel: "noopener noreferrer", className: "cursor-pointer font-semibold text-purple-800", children: "@ticketly.pk" }),
|
|
108
|
-
". We'll re-share your stories to help you reach a larger audience and boost ticket sales!"
|
|
109
|
-
] })
|
|
110
|
-
] })
|
|
111
|
-
]
|
|
112
|
-
}
|
|
113
|
-
)
|
|
114
|
-
] })
|
|
115
|
-
] }) });
|
|
116
|
-
});
|
|
117
|
-
SocialProfilesStep.displayName = "SocialProfilesStep";
|
|
118
|
-
const SocialProfilesStep$1 = memo(SocialProfilesStep);
|
|
119
|
-
export {
|
|
120
|
-
Twitter,
|
|
121
|
-
SocialProfilesStep$1 as default
|
|
122
|
-
};
|
|
123
|
-
//# sourceMappingURL=SocialProfilesStep.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SocialProfilesStep.js","sources":["../../../../src/components/EventAddForm/steps/SocialProfilesStep.tsx"],"sourcesContent":["import { memo, useImperativeHandle, forwardRef, useState } from \"react\";\r\nimport { motion } from \"framer-motion\";\r\nimport { StepperFormState } from \"../types\";\r\nimport FormInput from \"@/components/ui/FormInput\";\r\nimport { cn } from \"@/utils/utils\";\r\nimport { validateSocialUrl, getPlatformErrorMessage, SocialPlatform } from \"@/utils/social-validation\";\r\nimport { FaFacebook, FaInstagram } from \"react-icons/fa\";\r\n\r\ninterface SocialProfilesStepProps {\r\n formState: StepperFormState;\r\n setField: (field: keyof StepperFormState, value: any) => void;\r\n setMultipleFields: (fields: Partial<StepperFormState> | ((prev: StepperFormState) => Partial<StepperFormState>)) => void;\r\n errors: Record<string, string>;\r\n validateField: (field: keyof StepperFormState, data?: StepperFormState) => void;\r\n setErrors: React.Dispatch<React.SetStateAction<Record<string, string>>>;\r\n onPolluted?: () => void;\r\n}\r\n\r\nexport interface SocialProfilesStepRef {\r\n saveForm: () => Promise<void>;\r\n validateNavigation: () => boolean;\r\n}\r\n\r\nexport const Twitter: any = (props: any) => (\r\n <svg viewBox=\"0 0 24 24\" aria-hidden=\"true\" {...props} className={cn(\"h-5 w-5 fill-current\", props.className)}>\r\n <path d=\"M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932L18.901 1.153zM17.61 20.644h2.039L6.486 3.24H4.298L17.61 20.644z\" />\r\n </svg>\r\n)\r\n\r\nconst SOCIAL_CONFIG = [\r\n { key: 'instagram', label: 'Instagram Profile Link', icon: FaInstagram, placeholder: 'https://instagram.com/yourprofile' },\r\n { key: 'facebook', label: 'Facebook Profile Link', icon: FaFacebook, placeholder: 'https://facebook.com/yourprofile' },\r\n { key: 'twitter', label: 'X (Twitter) Profile Link', icon: Twitter, placeholder: 'https://x.com/yourprofile' },\r\n];\r\n\r\nconst SocialProfilesStep = forwardRef<SocialProfilesStepRef, SocialProfilesStepProps>((props, ref) => {\r\n const { formState, setField, onPolluted } = props;\r\n const [localErrors, setLocalErrors] = useState<Record<string, string>>({});\r\n\r\n const validateFieldUrl = (platform: SocialPlatform, url: string) => {\r\n if (!url) return true;\r\n return validateSocialUrl(platform, url);\r\n };\r\n\r\n useImperativeHandle(ref, () => ({\r\n saveForm: async () => {\r\n return Promise.resolve();\r\n },\r\n validateNavigation: () => {\r\n const errors: Record<string, string> = {};\r\n let isValid = true;\r\n\r\n SOCIAL_CONFIG.forEach(config => {\r\n const value = formState.social_profiles?.[config.key as keyof typeof formState.social_profiles];\r\n if (value && !validateFieldUrl(config.key as SocialPlatform, value)) {\r\n errors[config.key] = getPlatformErrorMessage(config.key as SocialPlatform);\r\n isValid = false;\r\n }\r\n });\r\n\r\n setLocalErrors(errors);\r\n return isValid;\r\n }\r\n }));\r\n\r\n const handleSocialChange = (key: string, value: string) => {\r\n setField('social_profiles', {\r\n instagram: \"\",\r\n facebook: \"\",\r\n twitter: \"\",\r\n ...formState.social_profiles,\r\n [key]: value\r\n });\r\n\r\n // If there is an existing error, validate on every change\r\n if (localErrors[key]) {\r\n const isValid = validateFieldUrl(key as SocialPlatform, value);\r\n if (isValid) {\r\n setLocalErrors(prev => {\r\n const newErrors = { ...prev };\r\n delete newErrors[key];\r\n return newErrors;\r\n });\r\n } else {\r\n setLocalErrors(prev => ({\r\n ...prev,\r\n [key]: getPlatformErrorMessage(key as SocialPlatform)\r\n }));\r\n }\r\n }\r\n };\r\n\r\n const handleSocialBlur = (key: string) => {\r\n const value = formState.social_profiles?.[key as keyof typeof formState.social_profiles];\r\n if (value && !validateFieldUrl(key as SocialPlatform, value)) {\r\n setLocalErrors(prev => ({\r\n ...prev,\r\n [key]: getPlatformErrorMessage(key as SocialPlatform)\r\n }));\r\n }\r\n };\r\n\r\n return (\r\n <div className=\"max-w-[734px] mx-auto space-y-6 animate-in fade-in slide-in-from-bottom-4 duration-500\">\r\n <div className=\"py-6 space-y-4 rounded-lg\">\r\n <h2 className=\"text-lg font-semibold text-grey-900 px-4\">\r\n Social Profiles\r\n </h2>\r\n <div className=\"space-y-4 px-4\">\r\n {SOCIAL_CONFIG.map((config) => (\r\n <FormInput\r\n key={config.key}\r\n label={config.label}\r\n icon={config.icon}\r\n type=\"text\"\r\n placeholder={config.placeholder}\r\n value={formState.social_profiles?.[config.key as keyof typeof formState.social_profiles] || \"\"}\r\n onChange={(e) => handleSocialChange(config.key, (e as any).target ? (e as any).target.value : e)}\r\n onBlur={() => handleSocialBlur(config.key)}\r\n error={localErrors[config.key]}\r\n />\r\n ))}\r\n\r\n {/* Ticketly Instagram Promotion */}\r\n <motion.div\r\n initial={{ opacity: 0, y: 10 }}\r\n animate={{ opacity: 1, y: 0 }}\r\n transition={{ delay: 0.2 }}\r\n className=\"p-4 mt-6 rounded-xl bg-gradient-to-br from-purple-50 to-white border border-purple-100 flex items-start gap-4 shadow-sm\"\r\n >\r\n <div className=\"w-10 h-10 rounded-full bg-purple-100 flex items-center justify-center flex-shrink-0\">\r\n <FaInstagram className=\"w-5 h-5 text-purple-600\" />\r\n </div>\r\n <div className=\"space-y-1\">\r\n <h4 className=\"text-sm font-semibold text-purple-900\">Get Featured!</h4>\r\n <p className=\"text-[13px] text-purple-700 leading-relaxed\">\r\n Share your event updates on Instagram and tag <a href={process.env.NEXT_PUBLIC_INSTAGRAM_URL} target=\"_blank\" rel=\"noopener noreferrer\" className=\"cursor-pointer font-semibold text-purple-800\">@ticketly.pk</a>. We'll re-share your stories to help you reach a larger audience and boost ticket sales!\r\n </p>\r\n </div>\r\n </motion.div>\r\n </div>\r\n </div>\r\n </div>\r\n );\r\n});\r\n\r\nSocialProfilesStep.displayName = \"SocialProfilesStep\";\r\n\r\nexport default memo(SocialProfilesStep);\r\n"],"names":[],"mappings":"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"}
|