@123usmanhaider321/ui 0.1.8 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +416 -31
- package/dist/images/icon/1LINK.svg +50 -0
- package/dist/images/icon/CreditCard.svg +83 -0
- package/dist/images/icon/Easypaisa.png +0 -0
- package/dist/images/icon/MobileWallet.png +0 -0
- package/dist/images/icon/Raast-Logo.png +0 -0
- package/dist/images/icon/VISA.png +0 -0
- package/dist/images/icon/add-circle-1.svg +5 -0
- package/dist/images/icon/check-circle-broken.svg +3 -0
- package/dist/images/icon/close-circle.svg +5 -0
- package/dist/images/icon/jazzcash.png +0 -0
- package/dist/images/icon/loading_icon.json +3347 -0
- package/dist/images/icon/mastercard-logo.webp +0 -0
- package/dist/images/icon/paymo.jpeg +0 -0
- package/dist/images/icon/preview-svgrepo-com.svg +36 -0
- package/dist/images/icon/trash.svg +7 -0
- package/dist/images/icon/unionpay-logo.svg +9 -0
- package/dist/index-BLoegwT6.js +60476 -0
- package/dist/index-BLoegwT6.js.map +1 -0
- package/dist/index-CPnu5V8f.js +11119 -0
- package/dist/index-CPnu5V8f.js.map +1 -0
- package/dist/index.d.ts +1 -10
- package/dist/index.es-C5pDhGOr.js +16734 -0
- package/dist/index.es-C5pDhGOr.js.map +1 -0
- package/dist/index.js +40 -12
- package/dist/index.js.map +1 -1
- package/dist/loading_icon-n5H5dQBl.js +3375 -0
- package/dist/loading_icon-n5H5dQBl.js.map +1 -0
- package/dist/src/components/Alert/ErrorAlert.d.ts +6 -0
- package/dist/src/components/Alert/SuccessAlert.d.ts +6 -0
- package/dist/{components → src/components}/FormBuilder/DiscountInput.d.ts +3 -6
- package/dist/{components → src/components}/FormBuilder/FormBuilder.d.ts +2 -11
- package/dist/{components → src/components}/FormBuilder/QuestionCard.d.ts +0 -5
- package/dist/{components → src/components}/FormBuilder/QuestionEditor.d.ts +0 -5
- package/dist/{components → src/components}/FormBuilder/SortableQuestionList.d.ts +0 -5
- package/dist/src/components/FormBuilder/questionIcons.d.ts +5 -0
- package/dist/{components/EventAddForm → src/components/NewAddEvent}/AddEventLayout.d.ts +2 -1
- package/dist/{components/EventAddForm → src/components/NewAddEvent}/AddEventStepper.d.ts +2 -2
- package/dist/{components/EventAddForm → src/components/NewAddEvent}/common/ConfirmationModal.d.ts +1 -1
- package/dist/src/components/NewAddEvent/components/EventSubmissionConfirmationModal.d.ts +14 -0
- package/dist/{components/EventAddForm → src/components/NewAddEvent}/components/StepTwo/TicketTierSection.d.ts +1 -1
- package/dist/{components/EventAddForm → src/components/NewAddEvent}/components/TicketTierForm.d.ts +1 -1
- package/dist/{components/EventAddForm → src/components/NewAddEvent}/hooks/useStepperForm.d.ts +22 -22
- package/dist/{components/EventAddForm → src/components/NewAddEvent}/hooks/useTicketTierForm.d.ts +63 -15
- package/dist/src/components/NewAddEvent/schemas/step1.d.ts +211 -0
- package/dist/src/components/NewAddEvent/schemas/step2.d.ts +411 -0
- package/dist/{components/EventAddForm → src/components/NewAddEvent}/schemas/utils.d.ts +8 -2
- package/dist/{components/EventAddForm → src/components/NewAddEvent}/steps/IndividualFormStep.d.ts +1 -1
- package/dist/{components/EventAddForm → src/components/NewAddEvent}/steps/SocialProfilesStep.d.ts +1 -1
- package/dist/{components/EventAddForm → src/components/NewAddEvent}/steps/TeamFormStep.d.ts +1 -1
- package/dist/src/components/Spinner/spinner.d.ts +4 -0
- package/dist/src/components/TicketlyUIProvider.d.ts +35 -0
- package/dist/src/components/common/Loader/index.d.ts +8 -0
- package/dist/src/components/common/Modals/ConfirmationModal.d.ts +7 -0
- package/dist/{components/FormInput → src/components/ui}/FormInput.d.ts +1 -1
- package/dist/src/components/ui/Loader.d.ts +4 -0
- package/dist/{components/Button/Button.d.ts → src/components/ui/button.d.ts} +1 -1
- package/dist/src/index.d.ts +10 -0
- package/dist/{lib → src/lib}/actions.d.ts +0 -126
- package/dist/src/lib/dom-utils.d.ts +2 -0
- package/dist/src/lib/storage-utils.d.ts +5 -0
- package/dist/src/lib/types.d.ts +258 -0
- package/dist/src/redux/baseQuery.d.ts +16 -0
- package/dist/{services → src/redux/features}/eventApi.d.ts +1053 -1745
- package/dist/src/redux/features/globalSlice.d.ts +17 -0
- package/dist/{services → src/redux/features/single-event}/single-event-api.d.ts +856 -1190
- package/dist/src/redux/types.d.ts +2 -0
- package/dist/src/services/library-services.d.ts +15 -0
- package/dist/src/services/remote-config.d.ts +27 -0
- package/dist/{services → src/services}/utils.d.ts +1 -1
- package/dist/src/theme/colors.d.ts +127 -0
- package/dist/src/theme/typography.d.ts +13 -0
- package/dist/src/types/api.d.ts +18 -0
- package/dist/style.css +2984 -0
- package/dist/styles.css +3760 -4014
- package/package.json +78 -68
- package/dist/_virtual/_commonjsHelpers.js +0 -9
- package/dist/_virtual/_commonjsHelpers.js.map +0 -1
- package/dist/_virtual/customParseFormat.js +0 -5
- package/dist/_virtual/customParseFormat.js.map +0 -1
- package/dist/_virtual/dayjs.min.js +0 -5
- package/dist/_virtual/dayjs.min.js.map +0 -1
- package/dist/_virtual/duration.js +0 -5
- package/dist/_virtual/duration.js.map +0 -1
- package/dist/_virtual/index.js +0 -5
- package/dist/_virtual/index.js.map +0 -1
- package/dist/_virtual/isBetween.js +0 -5
- package/dist/_virtual/isBetween.js.map +0 -1
- package/dist/_virtual/relativeTime.js +0 -5
- package/dist/_virtual/relativeTime.js.map +0 -1
- package/dist/_virtual/use-sync-external-store-shim.development.js +0 -5
- package/dist/_virtual/use-sync-external-store-shim.development.js.map +0 -1
- package/dist/_virtual/use-sync-external-store-shim.production.js +0 -5
- package/dist/_virtual/use-sync-external-store-shim.production.js.map +0 -1
- package/dist/_virtual/with-selector.development.js +0 -5
- package/dist/_virtual/with-selector.development.js.map +0 -1
- package/dist/_virtual/with-selector.js +0 -5
- package/dist/_virtual/with-selector.js.map +0 -1
- package/dist/_virtual/with-selector.production.js +0 -5
- package/dist/_virtual/with-selector.production.js.map +0 -1
- package/dist/components/Alert/Alert.js +0 -51
- package/dist/components/Alert/Alert.js.map +0 -1
- package/dist/components/Button/Button.js +0 -52
- package/dist/components/Button/Button.js.map +0 -1
- package/dist/components/Button/Button.test.d.ts +0 -1
- package/dist/components/Button/index.d.ts +0 -1
- package/dist/components/Checkbox/Checkbox.js +0 -50
- package/dist/components/Checkbox/Checkbox.js.map +0 -1
- package/dist/components/Checkbox/Checkbox.test.d.ts +0 -1
- package/dist/components/Checkbox/index.d.ts +0 -1
- package/dist/components/CheckboxGroup/CheckboxGroup.d.ts +0 -25
- package/dist/components/CheckboxGroup/CheckboxGroup.js +0 -99
- package/dist/components/CheckboxGroup/CheckboxGroup.js.map +0 -1
- package/dist/components/ConfirmationModal/ConfirmationModal.d.ts +0 -15
- package/dist/components/ConfirmationModal/ConfirmationModal.js +0 -136
- package/dist/components/ConfirmationModal/ConfirmationModal.js.map +0 -1
- package/dist/components/ConfirmationModal/index.d.ts +0 -2
- package/dist/components/CustomSelect/CustomSelect.js +0 -259
- package/dist/components/CustomSelect/CustomSelect.js.map +0 -1
- package/dist/components/EventAddForm/AddEventLayout.js +0 -227
- package/dist/components/EventAddForm/AddEventLayout.js.map +0 -1
- package/dist/components/EventAddForm/AddEventStepper.js +0 -719
- package/dist/components/EventAddForm/AddEventStepper.js.map +0 -1
- package/dist/components/EventAddForm/common/ConfirmationModal.js +0 -136
- package/dist/components/EventAddForm/common/ConfirmationModal.js.map +0 -1
- package/dist/components/EventAddForm/common/DescriptionModal.js +0 -70
- package/dist/components/EventAddForm/common/DescriptionModal.js.map +0 -1
- package/dist/components/EventAddForm/components/AnimatedBackground.d.ts +0 -8
- package/dist/components/EventAddForm/components/ApprovalConfirmationModal.d.ts +0 -7
- package/dist/components/EventAddForm/components/CheckboxGroup.js +0 -92
- package/dist/components/EventAddForm/components/CheckboxGroup.js.map +0 -1
- package/dist/components/EventAddForm/components/CustomMeetingForm.js +0 -237
- package/dist/components/EventAddForm/components/CustomMeetingForm.js.map +0 -1
- package/dist/components/EventAddForm/components/DateTimeField.js +0 -173
- package/dist/components/EventAddForm/components/DateTimeField.js.map +0 -1
- package/dist/components/EventAddForm/components/EventSubmissionConfirmationModal.d.ts +0 -33
- package/dist/components/EventAddForm/components/EventSubmissionConfirmationModal.js +0 -366
- package/dist/components/EventAddForm/components/EventSubmissionConfirmationModal.js.map +0 -1
- package/dist/components/EventAddForm/components/FileUpload.js +0 -412
- package/dist/components/EventAddForm/components/FileUpload.js.map +0 -1
- package/dist/components/EventAddForm/components/FormBuilderProceedModal.js +0 -197
- package/dist/components/EventAddForm/components/FormBuilderProceedModal.js.map +0 -1
- package/dist/components/EventAddForm/components/GoogleMapsAutocompleteInput.js +0 -1179
- package/dist/components/EventAddForm/components/GoogleMapsAutocompleteInput.js.map +0 -1
- package/dist/components/EventAddForm/components/InputField.d.ts +0 -15
- package/dist/components/EventAddForm/components/RadioGroupButton.d.ts +0 -14
- package/dist/components/EventAddForm/components/SelectField.d.ts +0 -19
- package/dist/components/EventAddForm/components/SingleDateTimeInput.js +0 -102
- package/dist/components/EventAddForm/components/SingleDateTimeInput.js.map +0 -1
- package/dist/components/EventAddForm/components/StepTwo/CustomFormSection.js +0 -277
- package/dist/components/EventAddForm/components/StepTwo/CustomFormSection.js.map +0 -1
- package/dist/components/EventAddForm/components/StepTwo/TicketTierSection.js +0 -148
- package/dist/components/EventAddForm/components/StepTwo/TicketTierSection.js.map +0 -1
- package/dist/components/EventAddForm/components/TicketTierForm.js +0 -418
- package/dist/components/EventAddForm/components/TicketTierForm.js.map +0 -1
- package/dist/components/EventAddForm/components/TicketTypeSelection.js +0 -93
- package/dist/components/EventAddForm/components/TicketTypeSelection.js.map +0 -1
- package/dist/components/EventAddForm/hooks/useStepperForm.js +0 -371
- package/dist/components/EventAddForm/hooks/useStepperForm.js.map +0 -1
- package/dist/components/EventAddForm/hooks/useTicketTierForm.js +0 -237
- package/dist/components/EventAddForm/hooks/useTicketTierForm.js.map +0 -1
- package/dist/components/EventAddForm/index.d.ts +0 -3
- package/dist/components/EventAddForm/index.js +0 -41
- package/dist/components/EventAddForm/index.js.map +0 -1
- package/dist/components/EventAddForm/schemas/index.d.ts +0 -2
- package/dist/components/EventAddForm/schemas/step1.d.ts +0 -47
- package/dist/components/EventAddForm/schemas/step1.js +0 -135
- package/dist/components/EventAddForm/schemas/step1.js.map +0 -1
- package/dist/components/EventAddForm/schemas/step2.d.ts +0 -138
- package/dist/components/EventAddForm/schemas/step2.js +0 -94
- package/dist/components/EventAddForm/schemas/step2.js.map +0 -1
- package/dist/components/EventAddForm/schemas/utils.js +0 -28
- package/dist/components/EventAddForm/schemas/utils.js.map +0 -1
- package/dist/components/EventAddForm/steps/IndividualFormStep.js +0 -85
- package/dist/components/EventAddForm/steps/IndividualFormStep.js.map +0 -1
- package/dist/components/EventAddForm/steps/SocialProfilesStep.js +0 -123
- package/dist/components/EventAddForm/steps/SocialProfilesStep.js.map +0 -1
- package/dist/components/EventAddForm/steps/StepOne.js +0 -462
- package/dist/components/EventAddForm/steps/StepOne.js.map +0 -1
- package/dist/components/EventAddForm/steps/StepTwo.js +0 -173
- package/dist/components/EventAddForm/steps/StepTwo.js.map +0 -1
- package/dist/components/EventAddForm/steps/TeamFormStep.js +0 -13
- package/dist/components/EventAddForm/steps/TeamFormStep.js.map +0 -1
- package/dist/components/FormBuilder/CategoryList.js +0 -242
- package/dist/components/FormBuilder/CategoryList.js.map +0 -1
- package/dist/components/FormBuilder/DiscountInput.js +0 -366
- package/dist/components/FormBuilder/DiscountInput.js.map +0 -1
- package/dist/components/FormBuilder/FormBuilder.js +0 -918
- package/dist/components/FormBuilder/FormBuilder.js.map +0 -1
- package/dist/components/FormBuilder/OptionList.js +0 -120
- package/dist/components/FormBuilder/OptionList.js.map +0 -1
- package/dist/components/FormBuilder/PaymentPreview.d.ts +0 -12
- package/dist/components/FormBuilder/PaymentPreview.js +0 -70
- package/dist/components/FormBuilder/PaymentPreview.js.map +0 -1
- package/dist/components/FormBuilder/PreviewInput.d.ts +0 -10
- package/dist/components/FormBuilder/PreviewInput.js +0 -143
- package/dist/components/FormBuilder/PreviewInput.js.map +0 -1
- package/dist/components/FormBuilder/QuestionCard.js +0 -252
- package/dist/components/FormBuilder/QuestionCard.js.map +0 -1
- package/dist/components/FormBuilder/QuestionEditor.js +0 -166
- package/dist/components/FormBuilder/QuestionEditor.js.map +0 -1
- package/dist/components/FormBuilder/RequiredToggle.js +0 -43
- package/dist/components/FormBuilder/RequiredToggle.js.map +0 -1
- package/dist/components/FormBuilder/SortableQuestionList.js +0 -137
- package/dist/components/FormBuilder/SortableQuestionList.js.map +0 -1
- package/dist/components/FormBuilder/index.d.ts +0 -4
- package/dist/components/FormBuilder/utils.js +0 -229
- package/dist/components/FormBuilder/utils.js.map +0 -1
- package/dist/components/FormInput/FormInput.js +0 -126
- package/dist/components/FormInput/FormInput.js.map +0 -1
- package/dist/components/FormInput/FormInput.test.d.ts +0 -1
- package/dist/components/FormInput/index.d.ts +0 -2
- package/dist/components/ImageCropModal/index.js +0 -464
- package/dist/components/ImageCropModal/index.js.map +0 -1
- package/dist/components/InformationPopover/InformationPopover.d.ts +0 -7
- package/dist/components/InformationPopover/InformationPopover.js +0 -19
- package/dist/components/InformationPopover/InformationPopover.js.map +0 -1
- package/dist/components/InformationPopover.js +0 -19
- package/dist/components/InformationPopover.js.map +0 -1
- package/dist/components/InputErrorMessage/InputErrorMessage.js +0 -21
- package/dist/components/InputErrorMessage/InputErrorMessage.js.map +0 -1
- package/dist/components/Modal/Modal.d.ts +0 -15
- package/dist/components/Modal/Modal.js +0 -73
- package/dist/components/Modal/Modal.js.map +0 -1
- package/dist/components/Radio/Radio.js +0 -35
- package/dist/components/Radio/Radio.js.map +0 -1
- package/dist/components/Spinner/spinner.d.ts +0 -2
- package/dist/components/Spinner/spinner.js +0 -22
- package/dist/components/Spinner/spinner.js.map +0 -1
- package/dist/components/Toggle/Toggle.d.ts +0 -16
- package/dist/components/Toggle/index.d.ts +0 -2
- package/dist/components/Tooltip/Tooltip.d.ts +0 -12
- package/dist/components/Tooltip/Tooltip.js +0 -134
- package/dist/components/Tooltip/Tooltip.js.map +0 -1
- package/dist/components/common/FallbackImage.js +0 -47
- package/dist/components/common/FallbackImage.js.map +0 -1
- package/dist/components/ui/Calendar/calendar-utils.js +0 -51
- package/dist/components/ui/Calendar/calendar-utils.js.map +0 -1
- package/dist/components/ui/Calendar/index.js +0 -142
- package/dist/components/ui/Calendar/index.js.map +0 -1
- package/dist/components/ui/Checkbox.d.ts +0 -9
- package/dist/components/ui/Checkbox.js +0 -50
- package/dist/components/ui/Checkbox.js.map +0 -1
- package/dist/components/ui/DatePicker/index.js +0 -188
- package/dist/components/ui/DatePicker/index.js.map +0 -1
- package/dist/components/ui/FormInput.js +0 -129
- package/dist/components/ui/FormInput.js.map +0 -1
- package/dist/components/ui/InputErrorMessage.d.ts +0 -7
- package/dist/components/ui/InputErrorMessage.js +0 -21
- package/dist/components/ui/InputErrorMessage.js.map +0 -1
- package/dist/components/ui/Modal/index.js +0 -73
- package/dist/components/ui/Modal/index.js.map +0 -1
- package/dist/components/ui/Radio.d.ts +0 -6
- package/dist/components/ui/Radio.js +0 -35
- package/dist/components/ui/Radio.js.map +0 -1
- package/dist/components/ui/RichTextEditor.js +0 -242
- package/dist/components/ui/RichTextEditor.js.map +0 -1
- package/dist/components/ui/TimePicker/index.js +0 -215
- package/dist/components/ui/TimePicker/index.js.map +0 -1
- package/dist/components/ui/TimeSelector/index.js +0 -138
- package/dist/components/ui/TimeSelector/index.js.map +0 -1
- package/dist/components/ui/Tooltip.d.ts +0 -12
- package/dist/components/ui/Tooltip.js +0 -136
- package/dist/components/ui/Tooltip.js.map +0 -1
- package/dist/hooks/useDropdownPosition.d.ts +0 -11
- package/dist/hooks/useFirebaseAuthState.d.ts +0 -6
- package/dist/hooks/useFirebaseAuthState.js +0 -23
- package/dist/hooks/useFirebaseAuthState.js.map +0 -1
- package/dist/hooks/useTicketTierForm.d.ts +0 -61
- package/dist/lib/actions.js +0 -32
- package/dist/lib/actions.js.map +0 -1
- package/dist/lib/cropImage.js +0 -113
- package/dist/lib/cropImage.js.map +0 -1
- package/dist/lib/imageAnalysis.js +0 -58
- package/dist/lib/imageAnalysis.js.map +0 -1
- package/dist/lib/utils.js +0 -9
- package/dist/lib/utils.js.map +0 -1
- package/dist/node_modules/@dnd-kit/accessibility/dist/accessibility.esm.js +0 -60
- package/dist/node_modules/@dnd-kit/accessibility/dist/accessibility.esm.js.map +0 -1
- package/dist/node_modules/@dnd-kit/core/dist/core.esm.js +0 -3458
- package/dist/node_modules/@dnd-kit/core/dist/core.esm.js.map +0 -1
- package/dist/node_modules/@dnd-kit/sortable/dist/sortable.esm.js +0 -593
- package/dist/node_modules/@dnd-kit/sortable/dist/sortable.esm.js.map +0 -1
- package/dist/node_modules/@dnd-kit/utilities/dist/utilities.esm.js +0 -302
- package/dist/node_modules/@dnd-kit/utilities/dist/utilities.esm.js.map +0 -1
- package/dist/node_modules/@firebase/app/dist/esm/index.esm.js +0 -768
- package/dist/node_modules/@firebase/app/dist/esm/index.esm.js.map +0 -1
- package/dist/node_modules/@firebase/component/dist/esm/index.esm.js +0 -340
- package/dist/node_modules/@firebase/component/dist/esm/index.esm.js.map +0 -1
- package/dist/node_modules/@firebase/logger/dist/esm/index.esm.js +0 -123
- package/dist/node_modules/@firebase/logger/dist/esm/index.esm.js.map +0 -1
- package/dist/node_modules/@firebase/storage/dist/index.esm.js +0 -2623
- package/dist/node_modules/@firebase/storage/dist/index.esm.js.map +0 -1
- package/dist/node_modules/@firebase/util/dist/index.esm.js +0 -658
- package/dist/node_modules/@firebase/util/dist/index.esm.js.map +0 -1
- package/dist/node_modules/@firebase/util/dist/postinstall.js +0 -5
- package/dist/node_modules/@firebase/util/dist/postinstall.js.map +0 -1
- package/dist/node_modules/@fortawesome/fontawesome-svg-core/index.js +0 -3179
- package/dist/node_modules/@fortawesome/fontawesome-svg-core/index.js.map +0 -1
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/index.js +0 -60
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/index.js.map +0 -1
- package/dist/node_modules/@fortawesome/react-fontawesome/dist/index.js +0 -400
- package/dist/node_modules/@fortawesome/react-fontawesome/dist/index.js.map +0 -1
- package/dist/node_modules/@heroicons/react/20/solid/esm/CheckIcon.js +0 -27
- package/dist/node_modules/@heroicons/react/20/solid/esm/CheckIcon.js.map +0 -1
- package/dist/node_modules/@heroicons/react/20/solid/esm/ChevronDownIcon.js +0 -27
- package/dist/node_modules/@heroicons/react/20/solid/esm/ChevronDownIcon.js.map +0 -1
- package/dist/node_modules/@heroicons/react/24/outline/esm/ArrowRightIcon.js +0 -29
- package/dist/node_modules/@heroicons/react/24/outline/esm/ArrowRightIcon.js.map +0 -1
- package/dist/node_modules/@heroicons/react/24/outline/esm/ClockIcon.js +0 -29
- package/dist/node_modules/@heroicons/react/24/outline/esm/ClockIcon.js.map +0 -1
- package/dist/node_modules/@heroicons/react/24/outline/esm/DocumentDuplicateIcon.js +0 -29
- package/dist/node_modules/@heroicons/react/24/outline/esm/DocumentDuplicateIcon.js.map +0 -1
- package/dist/node_modules/@heroicons/react/24/outline/esm/InformationCircleIcon.js +0 -29
- package/dist/node_modules/@heroicons/react/24/outline/esm/InformationCircleIcon.js.map +0 -1
- package/dist/node_modules/@heroicons/react/24/outline/esm/LinkIcon.js +0 -29
- package/dist/node_modules/@heroicons/react/24/outline/esm/LinkIcon.js.map +0 -1
- package/dist/node_modules/@heroicons/react/24/outline/esm/MagnifyingGlassIcon.js +0 -29
- package/dist/node_modules/@heroicons/react/24/outline/esm/MagnifyingGlassIcon.js.map +0 -1
- package/dist/node_modules/@heroicons/react/24/outline/esm/MapPinIcon.js +0 -33
- package/dist/node_modules/@heroicons/react/24/outline/esm/MapPinIcon.js.map +0 -1
- package/dist/node_modules/@heroicons/react/24/outline/esm/VideoCameraIcon.js +0 -29
- package/dist/node_modules/@heroicons/react/24/outline/esm/VideoCameraIcon.js.map +0 -1
- package/dist/node_modules/@heroicons/react/24/outline/esm/XMarkIcon.js +0 -29
- package/dist/node_modules/@heroicons/react/24/outline/esm/XMarkIcon.js.map +0 -1
- package/dist/node_modules/@tiptap/core/dist/index.js +0 -5446
- package/dist/node_modules/@tiptap/core/dist/index.js.map +0 -1
- package/dist/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.js +0 -21
- package/dist/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.js.map +0 -1
- package/dist/node_modules/@tiptap/extension-blockquote/dist/index.js +0 -78
- package/dist/node_modules/@tiptap/extension-blockquote/dist/index.js.map +0 -1
- package/dist/node_modules/@tiptap/extension-bold/dist/index.js +0 -100
- package/dist/node_modules/@tiptap/extension-bold/dist/index.js.map +0 -1
- package/dist/node_modules/@tiptap/extension-code/dist/index.js +0 -70
- package/dist/node_modules/@tiptap/extension-code/dist/index.js.map +0 -1
- package/dist/node_modules/@tiptap/extension-code-block/dist/index.js +0 -317
- package/dist/node_modules/@tiptap/extension-code-block/dist/index.js.map +0 -1
- package/dist/node_modules/@tiptap/extension-document/dist/index.js +0 -16
- package/dist/node_modules/@tiptap/extension-document/dist/index.js.map +0 -1
- package/dist/node_modules/@tiptap/extension-hard-break/dist/index.js +0 -66
- package/dist/node_modules/@tiptap/extension-hard-break/dist/index.js.map +0 -1
- package/dist/node_modules/@tiptap/extension-heading/dist/index.js +0 -86
- package/dist/node_modules/@tiptap/extension-heading/dist/index.js.map +0 -1
- package/dist/node_modules/@tiptap/extension-horizontal-rule/dist/index.js +0 -80
- package/dist/node_modules/@tiptap/extension-horizontal-rule/dist/index.js.map +0 -1
- package/dist/node_modules/@tiptap/extension-italic/dist/index.js +0 -98
- package/dist/node_modules/@tiptap/extension-italic/dist/index.js.map +0 -1
- package/dist/node_modules/@tiptap/extension-link/dist/index.js +0 -423
- package/dist/node_modules/@tiptap/extension-link/dist/index.js.map +0 -1
- package/dist/node_modules/@tiptap/extension-list/dist/index.js +0 -1039
- package/dist/node_modules/@tiptap/extension-list/dist/index.js.map +0 -1
- package/dist/node_modules/@tiptap/extension-paragraph/dist/index.js +0 -61
- package/dist/node_modules/@tiptap/extension-paragraph/dist/index.js.map +0 -1
- package/dist/node_modules/@tiptap/extension-placeholder/dist/index.js +0 -7
- package/dist/node_modules/@tiptap/extension-placeholder/dist/index.js.map +0 -1
- package/dist/node_modules/@tiptap/extension-strike/dist/index.js +0 -79
- package/dist/node_modules/@tiptap/extension-strike/dist/index.js.map +0 -1
- package/dist/node_modules/@tiptap/extension-text/dist/index.js +0 -16
- package/dist/node_modules/@tiptap/extension-text/dist/index.js.map +0 -1
- package/dist/node_modules/@tiptap/extension-underline/dist/index.js +0 -76
- package/dist/node_modules/@tiptap/extension-underline/dist/index.js.map +0 -1
- package/dist/node_modules/@tiptap/extensions/dist/index.js +0 -376
- package/dist/node_modules/@tiptap/extensions/dist/index.js.map +0 -1
- package/dist/node_modules/@tiptap/react/dist/index.js +0 -650
- package/dist/node_modules/@tiptap/react/dist/index.js.map +0 -1
- package/dist/node_modules/@tiptap/starter-kit/dist/index.js +0 -97
- package/dist/node_modules/@tiptap/starter-kit/dist/index.js.map +0 -1
- package/dist/node_modules/dayjs/dayjs.min.js +0 -283
- package/dist/node_modules/dayjs/dayjs.min.js.map +0 -1
- package/dist/node_modules/dayjs/plugin/customParseFormat.js +0 -130
- package/dist/node_modules/dayjs/plugin/customParseFormat.js.map +0 -1
- package/dist/node_modules/dayjs/plugin/duration.js +0 -137
- package/dist/node_modules/dayjs/plugin/duration.js.map +0 -1
- package/dist/node_modules/dayjs/plugin/isBetween.js +0 -20
- package/dist/node_modules/dayjs/plugin/isBetween.js.map +0 -1
- package/dist/node_modules/dayjs/plugin/relativeTime.js +0 -49
- package/dist/node_modules/dayjs/plugin/relativeTime.js.map +0 -1
- package/dist/node_modules/fast-equals/dist/es/index.js +0 -442
- package/dist/node_modules/fast-equals/dist/es/index.js.map +0 -1
- package/dist/node_modules/idb/build/index.js +0 -70
- package/dist/node_modules/idb/build/index.js.map +0 -1
- package/dist/node_modules/idb/build/wrap-idb-value.js +0 -149
- package/dist/node_modules/idb/build/wrap-idb-value.js.map +0 -1
- package/dist/node_modules/linkifyjs/dist/linkify.js +0 -1159
- package/dist/node_modules/linkifyjs/dist/linkify.js.map +0 -1
- package/dist/node_modules/orderedmap/dist/index.js +0 -120
- package/dist/node_modules/orderedmap/dist/index.js.map +0 -1
- package/dist/node_modules/prosemirror-commands/dist/index.js +0 -527
- package/dist/node_modules/prosemirror-commands/dist/index.js.map +0 -1
- package/dist/node_modules/prosemirror-dropcursor/dist/index.js +0 -137
- package/dist/node_modules/prosemirror-dropcursor/dist/index.js.map +0 -1
- package/dist/node_modules/prosemirror-gapcursor/dist/index.js +0 -221
- package/dist/node_modules/prosemirror-gapcursor/dist/index.js.map +0 -1
- package/dist/node_modules/prosemirror-history/dist/index.js +0 -357
- package/dist/node_modules/prosemirror-history/dist/index.js.map +0 -1
- package/dist/node_modules/prosemirror-keymap/dist/index.js +0 -84
- package/dist/node_modules/prosemirror-keymap/dist/index.js.map +0 -1
- package/dist/node_modules/prosemirror-model/dist/index.js +0 -3209
- package/dist/node_modules/prosemirror-model/dist/index.js.map +0 -1
- package/dist/node_modules/prosemirror-schema-list/dist/index.js +0 -131
- package/dist/node_modules/prosemirror-schema-list/dist/index.js.map +0 -1
- package/dist/node_modules/prosemirror-state/dist/index.js +0 -936
- package/dist/node_modules/prosemirror-state/dist/index.js.map +0 -1
- package/dist/node_modules/prosemirror-transform/dist/index.js +0 -1881
- package/dist/node_modules/prosemirror-transform/dist/index.js.map +0 -1
- package/dist/node_modules/prosemirror-view/dist/index.js +0 -5232
- package/dist/node_modules/prosemirror-view/dist/index.js.map +0 -1
- package/dist/node_modules/rope-sequence/dist/index.js +0 -184
- package/dist/node_modules/rope-sequence/dist/index.js.map +0 -1
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js +0 -82
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js.map +0 -1
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js +0 -78
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js.map +0 -1
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js +0 -78
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js.map +0 -1
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js +0 -63
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js.map +0 -1
- package/dist/node_modules/use-sync-external-store/shim/index.js +0 -13
- package/dist/node_modules/use-sync-external-store/shim/index.js.map +0 -1
- package/dist/node_modules/use-sync-external-store/shim/with-selector.js +0 -13
- package/dist/node_modules/use-sync-external-store/shim/with-selector.js.map +0 -1
- package/dist/node_modules/w3c-keyname/index.js +0 -106
- package/dist/node_modules/w3c-keyname/index.js.map +0 -1
- package/dist/node_modules/zod/v4/classic/coerce.js +0 -10
- package/dist/node_modules/zod/v4/classic/coerce.js.map +0 -1
- package/dist/node_modules/zod/v4/classic/compat.js +0 -8
- package/dist/node_modules/zod/v4/classic/compat.js.map +0 -1
- package/dist/node_modules/zod/v4/classic/errors.js +0 -45
- package/dist/node_modules/zod/v4/classic/errors.js.map +0 -1
- package/dist/node_modules/zod/v4/classic/iso.js +0 -44
- package/dist/node_modules/zod/v4/classic/iso.js.map +0 -1
- package/dist/node_modules/zod/v4/classic/parse.js +0 -30
- package/dist/node_modules/zod/v4/classic/parse.js.map +0 -1
- package/dist/node_modules/zod/v4/classic/schemas.js +0 -711
- package/dist/node_modules/zod/v4/classic/schemas.js.map +0 -1
- package/dist/node_modules/zod/v4/core/api.js +0 -588
- package/dist/node_modules/zod/v4/core/api.js.map +0 -1
- package/dist/node_modules/zod/v4/core/checks.js +0 -411
- package/dist/node_modules/zod/v4/core/checks.js.map +0 -1
- package/dist/node_modules/zod/v4/core/core.js +0 -75
- package/dist/node_modules/zod/v4/core/core.js.map +0 -1
- package/dist/node_modules/zod/v4/core/doc.js +0 -38
- package/dist/node_modules/zod/v4/core/doc.js.map +0 -1
- package/dist/node_modules/zod/v4/core/errors.js +0 -73
- package/dist/node_modules/zod/v4/core/errors.js.map +0 -1
- package/dist/node_modules/zod/v4/core/json-schema-processors.js +0 -359
- package/dist/node_modules/zod/v4/core/json-schema-processors.js.map +0 -1
- package/dist/node_modules/zod/v4/core/parse.js +0 -96
- package/dist/node_modules/zod/v4/core/parse.js.map +0 -1
- package/dist/node_modules/zod/v4/core/regexes.js +0 -84
- package/dist/node_modules/zod/v4/core/regexes.js.map +0 -1
- package/dist/node_modules/zod/v4/core/registries.js +0 -52
- package/dist/node_modules/zod/v4/core/registries.js.map +0 -1
- package/dist/node_modules/zod/v4/core/schemas.js +0 -1391
- package/dist/node_modules/zod/v4/core/schemas.js.map +0 -1
- package/dist/node_modules/zod/v4/core/to-json-schema.js +0 -363
- package/dist/node_modules/zod/v4/core/to-json-schema.js.map +0 -1
- package/dist/node_modules/zod/v4/core/util.js +0 -431
- package/dist/node_modules/zod/v4/core/util.js.map +0 -1
- package/dist/node_modules/zod/v4/core/versions.js +0 -9
- package/dist/node_modules/zod/v4/core/versions.js.map +0 -1
- package/dist/redux/baseQuery.d.ts +0 -1
- package/dist/redux/baseQuery.js +0 -24
- package/dist/redux/baseQuery.js.map +0 -1
- package/dist/services/eventApi.js +0 -411
- package/dist/services/eventApi.js.map +0 -1
- package/dist/services/helpers.js +0 -115
- package/dist/services/helpers.js.map +0 -1
- package/dist/services/initialize-firebase.d.ts +0 -2
- package/dist/services/initialize-firebase.js +0 -20
- package/dist/services/initialize-firebase.js.map +0 -1
- package/dist/services/process-image-on-server.js +0 -30
- package/dist/services/process-image-on-server.js.map +0 -1
- package/dist/services/remote-config.d.ts +0 -5
- package/dist/services/remote-config.js +0 -9
- package/dist/services/remote-config.js.map +0 -1
- package/dist/services/single-event-api.js +0 -301
- package/dist/services/single-event-api.js.map +0 -1
- package/dist/services/utils.js +0 -107
- package/dist/services/utils.js.map +0 -1
- package/dist/setupTests.d.ts +0 -1
- package/dist/stories/Alert.stories.d.ts +0 -10
- package/dist/stories/Button.stories.d.ts +0 -13
- package/dist/types/redux-types.d.ts +0 -15
- package/dist/types/types.d.ts +0 -60
- package/dist/types/types.js +0 -10
- package/dist/types/types.js.map +0 -1
- package/dist/utils/cn.d.ts +0 -6
- package/dist/utils/cn.js +0 -9
- package/dist/utils/cn.js.map +0 -1
- package/dist/utils/date-range.d.ts +0 -4
- package/dist/utils/date-range.js +0 -13
- package/dist/utils/date-range.js.map +0 -1
- package/dist/utils/single-event-helpers.d.ts +0 -50
- package/dist/utils/single-event-helpers.js +0 -18
- package/dist/utils/single-event-helpers.js.map +0 -1
- package/dist/utils/social-validation.js +0 -42
- package/dist/utils/social-validation.js.map +0 -1
- package/dist/utils/utils.js +0 -20
- package/dist/utils/utils.js.map +0 -1
- /package/dist/{components/Alert/Alert.d.ts → src/components/Alert/index.d.ts} +0 -0
- /package/dist/{components → src/components}/FormBuilder/CategoryList.d.ts +0 -0
- /package/dist/{components → src/components}/FormBuilder/OptionList.d.ts +0 -0
- /package/dist/{components → src/components}/FormBuilder/RequiredToggle.d.ts +0 -0
- /package/dist/{components → src/components}/FormBuilder/types.d.ts +0 -0
- /package/dist/{components → src/components}/FormBuilder/utils.d.ts +0 -0
- /package/dist/{components → src/components}/ImageCropModal/index.d.ts +0 -0
- /package/dist/{components → src/components}/InformationPopover.d.ts +0 -0
- /package/dist/{components/EventAddForm → src/components/NewAddEvent}/common/DescriptionModal.d.ts +0 -0
- /package/dist/{components/ui/FormInput.d.ts → src/components/NewAddEvent/components/AddEventFormInput.d.ts} +0 -0
- /package/dist/{components/EventAddForm → src/components/NewAddEvent}/components/CheckboxGroup.d.ts +0 -0
- /package/dist/{components/EventAddForm → src/components/NewAddEvent}/components/CustomMeetingForm.d.ts +0 -0
- /package/dist/{components/EventAddForm → src/components/NewAddEvent}/components/DateTimeField.d.ts +0 -0
- /package/dist/{components/EventAddForm → src/components/NewAddEvent}/components/FileUpload.d.ts +0 -0
- /package/dist/{components/EventAddForm → src/components/NewAddEvent}/components/FormBuilderProceedModal.d.ts +0 -0
- /package/dist/{components/EventAddForm → src/components/NewAddEvent}/components/GoogleMapsAutocompleteInput.d.ts +0 -0
- /package/dist/{components/EventAddForm → src/components/NewAddEvent}/components/SingleDateTimeInput.d.ts +0 -0
- /package/dist/{components/EventAddForm → src/components/NewAddEvent}/components/StepTwo/CustomFormSection.d.ts +0 -0
- /package/dist/{components/EventAddForm → src/components/NewAddEvent}/components/TicketTypeSelection.d.ts +0 -0
- /package/dist/{components/EventAddForm → src/components/NewAddEvent}/steps/StepOne.d.ts +0 -0
- /package/dist/{components/EventAddForm → src/components/NewAddEvent}/steps/StepTwo.d.ts +0 -0
- /package/dist/{components/EventAddForm → src/components/NewAddEvent}/types.d.ts +0 -0
- /package/dist/{components → src/components}/common/FallbackImage.d.ts +0 -0
- /package/dist/{components → src/components}/ui/Calendar/calendar-utils.d.ts +0 -0
- /package/dist/{components → src/components}/ui/Calendar/index.d.ts +0 -0
- /package/dist/{components/Checkbox → src/components/ui}/Checkbox.d.ts +0 -0
- /package/dist/{components/CustomSelect → src/components/ui}/CustomSelect.d.ts +0 -0
- /package/dist/{components → src/components}/ui/DatePicker/index.d.ts +0 -0
- /package/dist/{components/InputErrorMessage → src/components/ui}/InputErrorMessage.d.ts +0 -0
- /package/dist/{components → src/components}/ui/Modal/index.d.ts +0 -0
- /package/dist/{components/Radio → src/components/ui}/Radio.d.ts +0 -0
- /package/dist/{components → src/components}/ui/RichTextEditor.d.ts +0 -0
- /package/dist/{components → src/components}/ui/TimePicker/index.d.ts +0 -0
- /package/dist/{components → src/components}/ui/TimeSelector/index.d.ts +0 -0
- /package/dist/{components → src/components}/ui/Tooltip/index.d.ts +0 -0
- /package/dist/{lib → src/lib}/constants.d.ts +0 -0
- /package/dist/{lib → src/lib}/cropImage.d.ts +0 -0
- /package/dist/{lib → src/lib}/imageAnalysis.d.ts +0 -0
- /package/dist/{utils → src/lib}/social-validation.d.ts +0 -0
- /package/dist/{lib/utils.d.ts → src/lib/tailwind-merge.d.ts} +0 -0
- /package/dist/{utils → src/lib}/utils.d.ts +0 -0
- /package/dist/{services → src/redux/features/single-event}/helpers.d.ts +0 -0
- /package/dist/{services → src/services}/process-image-on-server.d.ts +0 -0
- /package/dist/{types → src/types}/events.d.ts +0 -0
- /package/dist/{types → src/types}/question.d.ts +0 -0
|
@@ -1,658 +0,0 @@
|
|
|
1
|
-
import { getDefaultsFromPostinstall } from "./postinstall.js";
|
|
2
|
-
/**
|
|
3
|
-
* @license
|
|
4
|
-
* Copyright 2017 Google LLC
|
|
5
|
-
*
|
|
6
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
-
* you may not use this file except in compliance with the License.
|
|
8
|
-
* You may obtain a copy of the License at
|
|
9
|
-
*
|
|
10
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
-
*
|
|
12
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
13
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
-
* See the License for the specific language governing permissions and
|
|
16
|
-
* limitations under the License.
|
|
17
|
-
*/
|
|
18
|
-
const stringToByteArray$1 = function(str) {
|
|
19
|
-
const out = [];
|
|
20
|
-
let p = 0;
|
|
21
|
-
for (let i = 0; i < str.length; i++) {
|
|
22
|
-
let c = str.charCodeAt(i);
|
|
23
|
-
if (c < 128) {
|
|
24
|
-
out[p++] = c;
|
|
25
|
-
} else if (c < 2048) {
|
|
26
|
-
out[p++] = c >> 6 | 192;
|
|
27
|
-
out[p++] = c & 63 | 128;
|
|
28
|
-
} else if ((c & 64512) === 55296 && i + 1 < str.length && (str.charCodeAt(i + 1) & 64512) === 56320) {
|
|
29
|
-
c = 65536 + ((c & 1023) << 10) + (str.charCodeAt(++i) & 1023);
|
|
30
|
-
out[p++] = c >> 18 | 240;
|
|
31
|
-
out[p++] = c >> 12 & 63 | 128;
|
|
32
|
-
out[p++] = c >> 6 & 63 | 128;
|
|
33
|
-
out[p++] = c & 63 | 128;
|
|
34
|
-
} else {
|
|
35
|
-
out[p++] = c >> 12 | 224;
|
|
36
|
-
out[p++] = c >> 6 & 63 | 128;
|
|
37
|
-
out[p++] = c & 63 | 128;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
return out;
|
|
41
|
-
};
|
|
42
|
-
const byteArrayToString = function(bytes) {
|
|
43
|
-
const out = [];
|
|
44
|
-
let pos = 0, c = 0;
|
|
45
|
-
while (pos < bytes.length) {
|
|
46
|
-
const c1 = bytes[pos++];
|
|
47
|
-
if (c1 < 128) {
|
|
48
|
-
out[c++] = String.fromCharCode(c1);
|
|
49
|
-
} else if (c1 > 191 && c1 < 224) {
|
|
50
|
-
const c2 = bytes[pos++];
|
|
51
|
-
out[c++] = String.fromCharCode((c1 & 31) << 6 | c2 & 63);
|
|
52
|
-
} else if (c1 > 239 && c1 < 365) {
|
|
53
|
-
const c2 = bytes[pos++];
|
|
54
|
-
const c3 = bytes[pos++];
|
|
55
|
-
const c4 = bytes[pos++];
|
|
56
|
-
const u = ((c1 & 7) << 18 | (c2 & 63) << 12 | (c3 & 63) << 6 | c4 & 63) - 65536;
|
|
57
|
-
out[c++] = String.fromCharCode(55296 + (u >> 10));
|
|
58
|
-
out[c++] = String.fromCharCode(56320 + (u & 1023));
|
|
59
|
-
} else {
|
|
60
|
-
const c2 = bytes[pos++];
|
|
61
|
-
const c3 = bytes[pos++];
|
|
62
|
-
out[c++] = String.fromCharCode((c1 & 15) << 12 | (c2 & 63) << 6 | c3 & 63);
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
return out.join("");
|
|
66
|
-
};
|
|
67
|
-
const base64 = {
|
|
68
|
-
/**
|
|
69
|
-
* Maps bytes to characters.
|
|
70
|
-
*/
|
|
71
|
-
byteToCharMap_: null,
|
|
72
|
-
/**
|
|
73
|
-
* Maps characters to bytes.
|
|
74
|
-
*/
|
|
75
|
-
charToByteMap_: null,
|
|
76
|
-
/**
|
|
77
|
-
* Maps bytes to websafe characters.
|
|
78
|
-
* @private
|
|
79
|
-
*/
|
|
80
|
-
byteToCharMapWebSafe_: null,
|
|
81
|
-
/**
|
|
82
|
-
* Maps websafe characters to bytes.
|
|
83
|
-
* @private
|
|
84
|
-
*/
|
|
85
|
-
charToByteMapWebSafe_: null,
|
|
86
|
-
/**
|
|
87
|
-
* Our default alphabet, shared between
|
|
88
|
-
* ENCODED_VALS and ENCODED_VALS_WEBSAFE
|
|
89
|
-
*/
|
|
90
|
-
ENCODED_VALS_BASE: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",
|
|
91
|
-
/**
|
|
92
|
-
* Our default alphabet. Value 64 (=) is special; it means "nothing."
|
|
93
|
-
*/
|
|
94
|
-
get ENCODED_VALS() {
|
|
95
|
-
return this.ENCODED_VALS_BASE + "+/=";
|
|
96
|
-
},
|
|
97
|
-
/**
|
|
98
|
-
* Our websafe alphabet.
|
|
99
|
-
*/
|
|
100
|
-
get ENCODED_VALS_WEBSAFE() {
|
|
101
|
-
return this.ENCODED_VALS_BASE + "-_.";
|
|
102
|
-
},
|
|
103
|
-
/**
|
|
104
|
-
* Whether this browser supports the atob and btoa functions. This extension
|
|
105
|
-
* started at Mozilla but is now implemented by many browsers. We use the
|
|
106
|
-
* ASSUME_* variables to avoid pulling in the full useragent detection library
|
|
107
|
-
* but still allowing the standard per-browser compilations.
|
|
108
|
-
*
|
|
109
|
-
*/
|
|
110
|
-
HAS_NATIVE_SUPPORT: typeof atob === "function",
|
|
111
|
-
/**
|
|
112
|
-
* Base64-encode an array of bytes.
|
|
113
|
-
*
|
|
114
|
-
* @param input An array of bytes (numbers with
|
|
115
|
-
* value in [0, 255]) to encode.
|
|
116
|
-
* @param webSafe Boolean indicating we should use the
|
|
117
|
-
* alternative alphabet.
|
|
118
|
-
* @return The base64 encoded string.
|
|
119
|
-
*/
|
|
120
|
-
encodeByteArray(input, webSafe) {
|
|
121
|
-
if (!Array.isArray(input)) {
|
|
122
|
-
throw Error("encodeByteArray takes an array as a parameter");
|
|
123
|
-
}
|
|
124
|
-
this.init_();
|
|
125
|
-
const byteToCharMap = webSafe ? this.byteToCharMapWebSafe_ : this.byteToCharMap_;
|
|
126
|
-
const output = [];
|
|
127
|
-
for (let i = 0; i < input.length; i += 3) {
|
|
128
|
-
const byte1 = input[i];
|
|
129
|
-
const haveByte2 = i + 1 < input.length;
|
|
130
|
-
const byte2 = haveByte2 ? input[i + 1] : 0;
|
|
131
|
-
const haveByte3 = i + 2 < input.length;
|
|
132
|
-
const byte3 = haveByte3 ? input[i + 2] : 0;
|
|
133
|
-
const outByte1 = byte1 >> 2;
|
|
134
|
-
const outByte2 = (byte1 & 3) << 4 | byte2 >> 4;
|
|
135
|
-
let outByte3 = (byte2 & 15) << 2 | byte3 >> 6;
|
|
136
|
-
let outByte4 = byte3 & 63;
|
|
137
|
-
if (!haveByte3) {
|
|
138
|
-
outByte4 = 64;
|
|
139
|
-
if (!haveByte2) {
|
|
140
|
-
outByte3 = 64;
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
output.push(byteToCharMap[outByte1], byteToCharMap[outByte2], byteToCharMap[outByte3], byteToCharMap[outByte4]);
|
|
144
|
-
}
|
|
145
|
-
return output.join("");
|
|
146
|
-
},
|
|
147
|
-
/**
|
|
148
|
-
* Base64-encode a string.
|
|
149
|
-
*
|
|
150
|
-
* @param input A string to encode.
|
|
151
|
-
* @param webSafe If true, we should use the
|
|
152
|
-
* alternative alphabet.
|
|
153
|
-
* @return The base64 encoded string.
|
|
154
|
-
*/
|
|
155
|
-
encodeString(input, webSafe) {
|
|
156
|
-
if (this.HAS_NATIVE_SUPPORT && !webSafe) {
|
|
157
|
-
return btoa(input);
|
|
158
|
-
}
|
|
159
|
-
return this.encodeByteArray(stringToByteArray$1(input), webSafe);
|
|
160
|
-
},
|
|
161
|
-
/**
|
|
162
|
-
* Base64-decode a string.
|
|
163
|
-
*
|
|
164
|
-
* @param input to decode.
|
|
165
|
-
* @param webSafe True if we should use the
|
|
166
|
-
* alternative alphabet.
|
|
167
|
-
* @return string representing the decoded value.
|
|
168
|
-
*/
|
|
169
|
-
decodeString(input, webSafe) {
|
|
170
|
-
if (this.HAS_NATIVE_SUPPORT && !webSafe) {
|
|
171
|
-
return atob(input);
|
|
172
|
-
}
|
|
173
|
-
return byteArrayToString(this.decodeStringToByteArray(input, webSafe));
|
|
174
|
-
},
|
|
175
|
-
/**
|
|
176
|
-
* Base64-decode a string.
|
|
177
|
-
*
|
|
178
|
-
* In base-64 decoding, groups of four characters are converted into three
|
|
179
|
-
* bytes. If the encoder did not apply padding, the input length may not
|
|
180
|
-
* be a multiple of 4.
|
|
181
|
-
*
|
|
182
|
-
* In this case, the last group will have fewer than 4 characters, and
|
|
183
|
-
* padding will be inferred. If the group has one or two characters, it decodes
|
|
184
|
-
* to one byte. If the group has three characters, it decodes to two bytes.
|
|
185
|
-
*
|
|
186
|
-
* @param input Input to decode.
|
|
187
|
-
* @param webSafe True if we should use the web-safe alphabet.
|
|
188
|
-
* @return bytes representing the decoded value.
|
|
189
|
-
*/
|
|
190
|
-
decodeStringToByteArray(input, webSafe) {
|
|
191
|
-
this.init_();
|
|
192
|
-
const charToByteMap = webSafe ? this.charToByteMapWebSafe_ : this.charToByteMap_;
|
|
193
|
-
const output = [];
|
|
194
|
-
for (let i = 0; i < input.length; ) {
|
|
195
|
-
const byte1 = charToByteMap[input.charAt(i++)];
|
|
196
|
-
const haveByte2 = i < input.length;
|
|
197
|
-
const byte2 = haveByte2 ? charToByteMap[input.charAt(i)] : 0;
|
|
198
|
-
++i;
|
|
199
|
-
const haveByte3 = i < input.length;
|
|
200
|
-
const byte3 = haveByte3 ? charToByteMap[input.charAt(i)] : 64;
|
|
201
|
-
++i;
|
|
202
|
-
const haveByte4 = i < input.length;
|
|
203
|
-
const byte4 = haveByte4 ? charToByteMap[input.charAt(i)] : 64;
|
|
204
|
-
++i;
|
|
205
|
-
if (byte1 == null || byte2 == null || byte3 == null || byte4 == null) {
|
|
206
|
-
throw new DecodeBase64StringError();
|
|
207
|
-
}
|
|
208
|
-
const outByte1 = byte1 << 2 | byte2 >> 4;
|
|
209
|
-
output.push(outByte1);
|
|
210
|
-
if (byte3 !== 64) {
|
|
211
|
-
const outByte2 = byte2 << 4 & 240 | byte3 >> 2;
|
|
212
|
-
output.push(outByte2);
|
|
213
|
-
if (byte4 !== 64) {
|
|
214
|
-
const outByte3 = byte3 << 6 & 192 | byte4;
|
|
215
|
-
output.push(outByte3);
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
return output;
|
|
220
|
-
},
|
|
221
|
-
/**
|
|
222
|
-
* Lazy static initialization function. Called before
|
|
223
|
-
* accessing any of the static map variables.
|
|
224
|
-
* @private
|
|
225
|
-
*/
|
|
226
|
-
init_() {
|
|
227
|
-
if (!this.byteToCharMap_) {
|
|
228
|
-
this.byteToCharMap_ = {};
|
|
229
|
-
this.charToByteMap_ = {};
|
|
230
|
-
this.byteToCharMapWebSafe_ = {};
|
|
231
|
-
this.charToByteMapWebSafe_ = {};
|
|
232
|
-
for (let i = 0; i < this.ENCODED_VALS.length; i++) {
|
|
233
|
-
this.byteToCharMap_[i] = this.ENCODED_VALS.charAt(i);
|
|
234
|
-
this.charToByteMap_[this.byteToCharMap_[i]] = i;
|
|
235
|
-
this.byteToCharMapWebSafe_[i] = this.ENCODED_VALS_WEBSAFE.charAt(i);
|
|
236
|
-
this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[i]] = i;
|
|
237
|
-
if (i >= this.ENCODED_VALS_BASE.length) {
|
|
238
|
-
this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(i)] = i;
|
|
239
|
-
this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(i)] = i;
|
|
240
|
-
}
|
|
241
|
-
}
|
|
242
|
-
}
|
|
243
|
-
}
|
|
244
|
-
};
|
|
245
|
-
class DecodeBase64StringError extends Error {
|
|
246
|
-
constructor() {
|
|
247
|
-
super(...arguments);
|
|
248
|
-
this.name = "DecodeBase64StringError";
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
const base64Encode = function(str) {
|
|
252
|
-
const utf8Bytes = stringToByteArray$1(str);
|
|
253
|
-
return base64.encodeByteArray(utf8Bytes, true);
|
|
254
|
-
};
|
|
255
|
-
const base64urlEncodeWithoutPadding = function(str) {
|
|
256
|
-
return base64Encode(str).replace(/\./g, "");
|
|
257
|
-
};
|
|
258
|
-
const base64Decode = function(str) {
|
|
259
|
-
try {
|
|
260
|
-
return base64.decodeString(str, true);
|
|
261
|
-
} catch (e) {
|
|
262
|
-
console.error("base64Decode failed: ", e);
|
|
263
|
-
}
|
|
264
|
-
return null;
|
|
265
|
-
};
|
|
266
|
-
/**
|
|
267
|
-
* @license
|
|
268
|
-
* Copyright 2022 Google LLC
|
|
269
|
-
*
|
|
270
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
271
|
-
* you may not use this file except in compliance with the License.
|
|
272
|
-
* You may obtain a copy of the License at
|
|
273
|
-
*
|
|
274
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
275
|
-
*
|
|
276
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
277
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
278
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
279
|
-
* See the License for the specific language governing permissions and
|
|
280
|
-
* limitations under the License.
|
|
281
|
-
*/
|
|
282
|
-
function getGlobal() {
|
|
283
|
-
if (typeof self !== "undefined") {
|
|
284
|
-
return self;
|
|
285
|
-
}
|
|
286
|
-
if (typeof window !== "undefined") {
|
|
287
|
-
return window;
|
|
288
|
-
}
|
|
289
|
-
if (typeof global !== "undefined") {
|
|
290
|
-
return global;
|
|
291
|
-
}
|
|
292
|
-
throw new Error("Unable to locate global object.");
|
|
293
|
-
}
|
|
294
|
-
/**
|
|
295
|
-
* @license
|
|
296
|
-
* Copyright 2022 Google LLC
|
|
297
|
-
*
|
|
298
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
299
|
-
* you may not use this file except in compliance with the License.
|
|
300
|
-
* You may obtain a copy of the License at
|
|
301
|
-
*
|
|
302
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
303
|
-
*
|
|
304
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
305
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
306
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
307
|
-
* See the License for the specific language governing permissions and
|
|
308
|
-
* limitations under the License.
|
|
309
|
-
*/
|
|
310
|
-
const getDefaultsFromGlobal = () => getGlobal().__FIREBASE_DEFAULTS__;
|
|
311
|
-
const getDefaultsFromEnvVariable = () => {
|
|
312
|
-
if (typeof process === "undefined" || typeof process.env === "undefined") {
|
|
313
|
-
return;
|
|
314
|
-
}
|
|
315
|
-
const defaultsJsonString = process.env.__FIREBASE_DEFAULTS__;
|
|
316
|
-
if (defaultsJsonString) {
|
|
317
|
-
return JSON.parse(defaultsJsonString);
|
|
318
|
-
}
|
|
319
|
-
};
|
|
320
|
-
const getDefaultsFromCookie = () => {
|
|
321
|
-
if (typeof document === "undefined") {
|
|
322
|
-
return;
|
|
323
|
-
}
|
|
324
|
-
let match;
|
|
325
|
-
try {
|
|
326
|
-
match = document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/);
|
|
327
|
-
} catch (e) {
|
|
328
|
-
return;
|
|
329
|
-
}
|
|
330
|
-
const decoded = match && base64Decode(match[1]);
|
|
331
|
-
return decoded && JSON.parse(decoded);
|
|
332
|
-
};
|
|
333
|
-
const getDefaults = () => {
|
|
334
|
-
try {
|
|
335
|
-
return getDefaultsFromPostinstall() || getDefaultsFromGlobal() || getDefaultsFromEnvVariable() || getDefaultsFromCookie();
|
|
336
|
-
} catch (e) {
|
|
337
|
-
console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${e}`);
|
|
338
|
-
return;
|
|
339
|
-
}
|
|
340
|
-
};
|
|
341
|
-
const getDefaultEmulatorHost = (productName) => {
|
|
342
|
-
var _a, _b;
|
|
343
|
-
return (_b = (_a = getDefaults()) == null ? void 0 : _a.emulatorHosts) == null ? void 0 : _b[productName];
|
|
344
|
-
};
|
|
345
|
-
const getDefaultEmulatorHostnameAndPort = (productName) => {
|
|
346
|
-
const host = getDefaultEmulatorHost(productName);
|
|
347
|
-
if (!host) {
|
|
348
|
-
return void 0;
|
|
349
|
-
}
|
|
350
|
-
const separatorIndex = host.lastIndexOf(":");
|
|
351
|
-
if (separatorIndex <= 0 || separatorIndex + 1 === host.length) {
|
|
352
|
-
throw new Error(`Invalid host ${host} with no separate hostname and port!`);
|
|
353
|
-
}
|
|
354
|
-
const port = parseInt(host.substring(separatorIndex + 1), 10);
|
|
355
|
-
if (host[0] === "[") {
|
|
356
|
-
return [host.substring(1, separatorIndex - 1), port];
|
|
357
|
-
} else {
|
|
358
|
-
return [host.substring(0, separatorIndex), port];
|
|
359
|
-
}
|
|
360
|
-
};
|
|
361
|
-
const getDefaultAppConfig = () => {
|
|
362
|
-
var _a;
|
|
363
|
-
return (_a = getDefaults()) == null ? void 0 : _a.config;
|
|
364
|
-
};
|
|
365
|
-
/**
|
|
366
|
-
* @license
|
|
367
|
-
* Copyright 2017 Google LLC
|
|
368
|
-
*
|
|
369
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
370
|
-
* you may not use this file except in compliance with the License.
|
|
371
|
-
* You may obtain a copy of the License at
|
|
372
|
-
*
|
|
373
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
374
|
-
*
|
|
375
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
376
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
377
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
378
|
-
* See the License for the specific language governing permissions and
|
|
379
|
-
* limitations under the License.
|
|
380
|
-
*/
|
|
381
|
-
class Deferred {
|
|
382
|
-
constructor() {
|
|
383
|
-
this.reject = () => {
|
|
384
|
-
};
|
|
385
|
-
this.resolve = () => {
|
|
386
|
-
};
|
|
387
|
-
this.promise = new Promise((resolve, reject) => {
|
|
388
|
-
this.resolve = resolve;
|
|
389
|
-
this.reject = reject;
|
|
390
|
-
});
|
|
391
|
-
}
|
|
392
|
-
/**
|
|
393
|
-
* Our API internals are not promisified and cannot because our callback APIs have subtle expectations around
|
|
394
|
-
* invoking promises inline, which Promises are forbidden to do. This method accepts an optional node-style callback
|
|
395
|
-
* and returns a node-style callback which will resolve or reject the Deferred's promise.
|
|
396
|
-
*/
|
|
397
|
-
wrapCallback(callback) {
|
|
398
|
-
return (error, value) => {
|
|
399
|
-
if (error) {
|
|
400
|
-
this.reject(error);
|
|
401
|
-
} else {
|
|
402
|
-
this.resolve(value);
|
|
403
|
-
}
|
|
404
|
-
if (typeof callback === "function") {
|
|
405
|
-
this.promise.catch(() => {
|
|
406
|
-
});
|
|
407
|
-
if (callback.length === 1) {
|
|
408
|
-
callback(error);
|
|
409
|
-
} else {
|
|
410
|
-
callback(error, value);
|
|
411
|
-
}
|
|
412
|
-
}
|
|
413
|
-
};
|
|
414
|
-
}
|
|
415
|
-
}
|
|
416
|
-
/**
|
|
417
|
-
* @license
|
|
418
|
-
* Copyright 2021 Google LLC
|
|
419
|
-
*
|
|
420
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
421
|
-
* you may not use this file except in compliance with the License.
|
|
422
|
-
* You may obtain a copy of the License at
|
|
423
|
-
*
|
|
424
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
425
|
-
*
|
|
426
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
427
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
428
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
429
|
-
* See the License for the specific language governing permissions and
|
|
430
|
-
* limitations under the License.
|
|
431
|
-
*/
|
|
432
|
-
function createMockUserToken(token, projectId) {
|
|
433
|
-
if (token.uid) {
|
|
434
|
-
throw new Error('The "uid" field is no longer supported by mockUserToken. Please use "sub" instead for Firebase Auth User ID.');
|
|
435
|
-
}
|
|
436
|
-
const header = {
|
|
437
|
-
alg: "none",
|
|
438
|
-
type: "JWT"
|
|
439
|
-
};
|
|
440
|
-
const project = projectId || "demo-project";
|
|
441
|
-
const iat = token.iat || 0;
|
|
442
|
-
const sub = token.sub || token.user_id;
|
|
443
|
-
if (!sub) {
|
|
444
|
-
throw new Error("mockUserToken must contain 'sub' or 'user_id' field!");
|
|
445
|
-
}
|
|
446
|
-
const payload = {
|
|
447
|
-
// Set all required fields to decent defaults
|
|
448
|
-
iss: `https://securetoken.google.com/${project}`,
|
|
449
|
-
aud: project,
|
|
450
|
-
iat,
|
|
451
|
-
exp: iat + 3600,
|
|
452
|
-
auth_time: iat,
|
|
453
|
-
sub,
|
|
454
|
-
user_id: sub,
|
|
455
|
-
firebase: {
|
|
456
|
-
sign_in_provider: "custom",
|
|
457
|
-
identities: {}
|
|
458
|
-
},
|
|
459
|
-
// Override with user options
|
|
460
|
-
...token
|
|
461
|
-
};
|
|
462
|
-
const signature = "";
|
|
463
|
-
return [
|
|
464
|
-
base64urlEncodeWithoutPadding(JSON.stringify(header)),
|
|
465
|
-
base64urlEncodeWithoutPadding(JSON.stringify(payload)),
|
|
466
|
-
signature
|
|
467
|
-
].join(".");
|
|
468
|
-
}
|
|
469
|
-
function isIndexedDBAvailable() {
|
|
470
|
-
try {
|
|
471
|
-
return typeof indexedDB === "object";
|
|
472
|
-
} catch (e) {
|
|
473
|
-
return false;
|
|
474
|
-
}
|
|
475
|
-
}
|
|
476
|
-
function validateIndexedDBOpenable() {
|
|
477
|
-
return new Promise((resolve, reject) => {
|
|
478
|
-
try {
|
|
479
|
-
let preExist = true;
|
|
480
|
-
const DB_CHECK_NAME = "validate-browser-context-for-indexeddb-analytics-module";
|
|
481
|
-
const request = self.indexedDB.open(DB_CHECK_NAME);
|
|
482
|
-
request.onsuccess = () => {
|
|
483
|
-
request.result.close();
|
|
484
|
-
if (!preExist) {
|
|
485
|
-
self.indexedDB.deleteDatabase(DB_CHECK_NAME);
|
|
486
|
-
}
|
|
487
|
-
resolve(true);
|
|
488
|
-
};
|
|
489
|
-
request.onupgradeneeded = () => {
|
|
490
|
-
preExist = false;
|
|
491
|
-
};
|
|
492
|
-
request.onerror = () => {
|
|
493
|
-
var _a;
|
|
494
|
-
reject(((_a = request.error) == null ? void 0 : _a.message) || "");
|
|
495
|
-
};
|
|
496
|
-
} catch (error) {
|
|
497
|
-
reject(error);
|
|
498
|
-
}
|
|
499
|
-
});
|
|
500
|
-
}
|
|
501
|
-
/**
|
|
502
|
-
* @license
|
|
503
|
-
* Copyright 2017 Google LLC
|
|
504
|
-
*
|
|
505
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
506
|
-
* you may not use this file except in compliance with the License.
|
|
507
|
-
* You may obtain a copy of the License at
|
|
508
|
-
*
|
|
509
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
510
|
-
*
|
|
511
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
512
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
513
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
514
|
-
* See the License for the specific language governing permissions and
|
|
515
|
-
* limitations under the License.
|
|
516
|
-
*/
|
|
517
|
-
const ERROR_NAME = "FirebaseError";
|
|
518
|
-
class FirebaseError extends Error {
|
|
519
|
-
constructor(code, message, customData) {
|
|
520
|
-
super(message);
|
|
521
|
-
this.code = code;
|
|
522
|
-
this.customData = customData;
|
|
523
|
-
this.name = ERROR_NAME;
|
|
524
|
-
Object.setPrototypeOf(this, FirebaseError.prototype);
|
|
525
|
-
if (Error.captureStackTrace) {
|
|
526
|
-
Error.captureStackTrace(this, ErrorFactory.prototype.create);
|
|
527
|
-
}
|
|
528
|
-
}
|
|
529
|
-
}
|
|
530
|
-
class ErrorFactory {
|
|
531
|
-
constructor(service, serviceName, errors) {
|
|
532
|
-
this.service = service;
|
|
533
|
-
this.serviceName = serviceName;
|
|
534
|
-
this.errors = errors;
|
|
535
|
-
}
|
|
536
|
-
create(code, ...data) {
|
|
537
|
-
const customData = data[0] || {};
|
|
538
|
-
const fullCode = `${this.service}/${code}`;
|
|
539
|
-
const template = this.errors[code];
|
|
540
|
-
const message = template ? replaceTemplate(template, customData) : "Error";
|
|
541
|
-
const fullMessage = `${this.serviceName}: ${message} (${fullCode}).`;
|
|
542
|
-
const error = new FirebaseError(fullCode, fullMessage, customData);
|
|
543
|
-
return error;
|
|
544
|
-
}
|
|
545
|
-
}
|
|
546
|
-
function replaceTemplate(template, data) {
|
|
547
|
-
return template.replace(PATTERN, (_, key) => {
|
|
548
|
-
const value = data[key];
|
|
549
|
-
return value != null ? String(value) : `<${key}?>`;
|
|
550
|
-
});
|
|
551
|
-
}
|
|
552
|
-
const PATTERN = /\{\$([^}]+)}/g;
|
|
553
|
-
function deepEqual(a, b) {
|
|
554
|
-
if (a === b) {
|
|
555
|
-
return true;
|
|
556
|
-
}
|
|
557
|
-
const aKeys = Object.keys(a);
|
|
558
|
-
const bKeys = Object.keys(b);
|
|
559
|
-
for (const k of aKeys) {
|
|
560
|
-
if (!bKeys.includes(k)) {
|
|
561
|
-
return false;
|
|
562
|
-
}
|
|
563
|
-
const aProp = a[k];
|
|
564
|
-
const bProp = b[k];
|
|
565
|
-
if (isObject(aProp) && isObject(bProp)) {
|
|
566
|
-
if (!deepEqual(aProp, bProp)) {
|
|
567
|
-
return false;
|
|
568
|
-
}
|
|
569
|
-
} else if (aProp !== bProp) {
|
|
570
|
-
return false;
|
|
571
|
-
}
|
|
572
|
-
}
|
|
573
|
-
for (const k of bKeys) {
|
|
574
|
-
if (!aKeys.includes(k)) {
|
|
575
|
-
return false;
|
|
576
|
-
}
|
|
577
|
-
}
|
|
578
|
-
return true;
|
|
579
|
-
}
|
|
580
|
-
function isObject(thing) {
|
|
581
|
-
return thing !== null && typeof thing === "object";
|
|
582
|
-
}
|
|
583
|
-
/**
|
|
584
|
-
* @license
|
|
585
|
-
* Copyright 2021 Google LLC
|
|
586
|
-
*
|
|
587
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
588
|
-
* you may not use this file except in compliance with the License.
|
|
589
|
-
* You may obtain a copy of the License at
|
|
590
|
-
*
|
|
591
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
592
|
-
*
|
|
593
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
594
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
595
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
596
|
-
* See the License for the specific language governing permissions and
|
|
597
|
-
* limitations under the License.
|
|
598
|
-
*/
|
|
599
|
-
function getModularInstance(service) {
|
|
600
|
-
if (service && service._delegate) {
|
|
601
|
-
return service._delegate;
|
|
602
|
-
} else {
|
|
603
|
-
return service;
|
|
604
|
-
}
|
|
605
|
-
}
|
|
606
|
-
/**
|
|
607
|
-
* @license
|
|
608
|
-
* Copyright 2025 Google LLC
|
|
609
|
-
*
|
|
610
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
611
|
-
* you may not use this file except in compliance with the License.
|
|
612
|
-
* You may obtain a copy of the License at
|
|
613
|
-
*
|
|
614
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
615
|
-
*
|
|
616
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
617
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
618
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
619
|
-
* See the License for the specific language governing permissions and
|
|
620
|
-
* limitations under the License.
|
|
621
|
-
*/
|
|
622
|
-
function isCloudWorkstation(url) {
|
|
623
|
-
try {
|
|
624
|
-
const host = url.startsWith("http://") || url.startsWith("https://") ? new URL(url).hostname : url;
|
|
625
|
-
return host.endsWith(".cloudworkstations.dev");
|
|
626
|
-
} catch {
|
|
627
|
-
return false;
|
|
628
|
-
}
|
|
629
|
-
}
|
|
630
|
-
async function pingServer(endpoint) {
|
|
631
|
-
const result = await fetch(endpoint, {
|
|
632
|
-
credentials: "include"
|
|
633
|
-
});
|
|
634
|
-
return result.ok;
|
|
635
|
-
}
|
|
636
|
-
export {
|
|
637
|
-
DecodeBase64StringError,
|
|
638
|
-
Deferred,
|
|
639
|
-
ErrorFactory,
|
|
640
|
-
FirebaseError,
|
|
641
|
-
base64,
|
|
642
|
-
base64Decode,
|
|
643
|
-
base64Encode,
|
|
644
|
-
base64urlEncodeWithoutPadding,
|
|
645
|
-
createMockUserToken,
|
|
646
|
-
deepEqual,
|
|
647
|
-
getDefaultAppConfig,
|
|
648
|
-
getDefaultEmulatorHost,
|
|
649
|
-
getDefaultEmulatorHostnameAndPort,
|
|
650
|
-
getDefaults,
|
|
651
|
-
getGlobal,
|
|
652
|
-
getModularInstance,
|
|
653
|
-
isCloudWorkstation,
|
|
654
|
-
isIndexedDBAvailable,
|
|
655
|
-
pingServer,
|
|
656
|
-
validateIndexedDBOpenable
|
|
657
|
-
};
|
|
658
|
-
//# sourceMappingURL=index.esm.js.map
|