@stokr/components-library 3.0.65 → 3.0.67
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 +16 -3
- package/dist/_virtual/Collapse.js +4 -0
- package/dist/_virtual/Component.js +4 -0
- package/dist/_virtual/Range.js +4 -0
- package/dist/_virtual/ResizeObserver.es.js +6 -0
- package/dist/_virtual/UnmountClosed.js +4 -0
- package/dist/_virtual/_commonjsHelpers.js +38 -0
- package/dist/_virtual/arrows.js +4 -0
- package/dist/_virtual/attributes-to-props.js +4 -0
- package/dist/_virtual/constants.js +4 -0
- package/dist/_virtual/default-props.js +4 -0
- package/dist/_virtual/defaultRenderElements.js +4 -0
- package/dist/_virtual/dom-to-react.js +4 -0
- package/dist/_virtual/domparser.js +4 -0
- package/dist/_virtual/dots.js +4 -0
- package/dist/_virtual/getInnerHeight.js +4 -0
- package/dist/_virtual/getInnerWidth.js +4 -0
- package/dist/_virtual/getScrollbarWidth.js +4 -0
- package/dist/_virtual/hoist-non-react-statics.cjs.js +2 -0
- package/dist/_virtual/html-to-dom.js +4 -0
- package/dist/_virtual/index.js +5 -0
- package/dist/_virtual/index10.js +5 -0
- package/dist/_virtual/index11.js +7 -0
- package/dist/_virtual/index12.js +7 -0
- package/dist/_virtual/index13.js +7 -0
- package/dist/_virtual/index14.js +4 -0
- package/dist/_virtual/index15.js +7 -0
- package/dist/_virtual/index16.js +7 -0
- package/dist/_virtual/index17.js +7 -0
- package/dist/_virtual/index18.js +4 -0
- package/dist/_virtual/index19.js +4 -0
- package/dist/_virtual/index2.js +7 -0
- package/dist/_virtual/index20.js +4 -0
- package/dist/_virtual/index21.js +4 -0
- package/dist/_virtual/index22.js +4 -0
- package/dist/_virtual/index23.js +4 -0
- package/dist/_virtual/index24.js +4 -0
- package/dist/_virtual/index25.js +4 -0
- package/dist/_virtual/index26.js +4 -0
- package/dist/_virtual/index27.js +4 -0
- package/dist/_virtual/index28.js +4 -0
- package/dist/_virtual/index29.js +4 -0
- package/dist/_virtual/index3.js +5 -0
- package/dist/_virtual/index30.js +4 -0
- package/dist/_virtual/index31.js +4 -0
- package/dist/_virtual/index4.js +5 -0
- package/dist/_virtual/index5.js +5 -0
- package/dist/_virtual/index6.js +5 -0
- package/dist/_virtual/index7.js +7 -0
- package/dist/_virtual/index8.js +4 -0
- package/dist/_virtual/index9.js +5 -0
- package/dist/_virtual/initial-state.js +4 -0
- package/dist/_virtual/inner-slider.js +4 -0
- package/dist/_virtual/innerSliderUtils.js +4 -0
- package/dist/_virtual/isString.js +4 -0
- package/dist/_virtual/node.js +4 -0
- package/dist/_virtual/performance-now.js +4 -0
- package/dist/_virtual/popper.js +6 -0
- package/dist/_virtual/possibleStandardNamesOptimized.js +4 -0
- package/dist/_virtual/react-is.development.js +4 -0
- package/dist/_virtual/react-is.production.min.js +4 -0
- package/dist/_virtual/react-table.development.js +4 -0
- package/dist/_virtual/react-table.production.min.js +4 -0
- package/dist/_virtual/react-tippy.js +5 -0
- package/dist/_virtual/react-tippy2.js +4 -0
- package/dist/_virtual/returnFalse.js +4 -0
- package/dist/_virtual/slider.js +4 -0
- package/dist/_virtual/styles.js +4 -0
- package/dist/_virtual/track.js +4 -0
- package/dist/_virtual/types.js +4 -0
- package/dist/_virtual/utilities.js +4 -0
- package/dist/_virtual/utilities2.js +4 -0
- package/dist/_virtual/utilities3.js +4 -0
- package/dist/_virtual/utils.js +4 -0
- package/dist/analytics/index.js +1 -1
- package/dist/api/fetchData.js +2 -2
- package/dist/components/2FA/Connect2FA.js +1 -1
- package/dist/components/2FA/EnterCode.js +1 -1
- package/dist/components/2FA/Sucess2FA.js +1 -1
- package/dist/components/2FA/login-with-otp-flow.js +47 -12
- package/dist/components/2FA/main-flow.js +29 -5
- package/dist/components/AccountBalance/AccountBalance.js +1 -1
- package/dist/components/AdminDashboard/Table/ReactTable.js +5 -5
- package/dist/components/AdminDashboard/Table/ReactTableWrapper.js +1 -1
- package/dist/components/AdminDashboard/Table/Table.js +1 -1
- package/dist/components/AgreementItem/AgreementItem.js +1 -1
- package/dist/components/BackButton/BackButton.js +1 -1
- package/dist/components/Background/Background.js +1 -1
- package/dist/components/BasicTable/BasicTable.js +1 -1
- package/dist/components/BlogPost/BlogPost.js +1 -1
- package/dist/components/Button/Button.styles.js +1 -1
- package/dist/components/Button/GlareButton.js +2 -2
- package/dist/components/ChartLegend/ChartLegend.js +3 -3
- package/dist/components/Checkbox/Checkbox.js +1 -1
- package/dist/components/Checklist/ChecklistCard.js +1 -1
- package/dist/components/Chips/Chip.js +1 -1
- package/dist/components/Chips/ChipWrapper.js +1 -1
- package/dist/components/ComponentScroll/ComponentScroll.js +3 -3
- package/dist/components/Country/CountrySelect.js +4 -4
- package/dist/components/CryptoAddress/ComponentWrap.js +1 -1
- package/dist/components/CryptoAddress/CryptoAddress.js +7 -7
- package/dist/components/CryptoAddress/RadioWrap.js +1 -1
- package/dist/components/CryptoAddressDetails/CryptoAddressDetails.js +1 -1
- package/dist/components/CryptoAddressWrapper/CryptoAddressWrapper.js +1 -1
- package/dist/components/FAQ/FAQ.js +1 -1
- package/dist/components/FAQ/FAQ.styles.js +2 -2
- package/dist/components/Footer/Footer.js +1 -1
- package/dist/components/Footer/FooterLayout.js +1 -1
- package/dist/components/Footer/FooterMenu.js +3 -3
- package/dist/components/ForgotPasswordModal/ForgotPasswordModal.js +5 -5
- package/dist/components/Form/Form.js +2 -2
- package/dist/components/Form/Form.styles.js +1 -1
- package/dist/components/Header/Header.js +3 -3
- package/dist/components/HeroBlock/HeroVideoBlock.js +1 -1
- package/dist/components/IdentityInfo/IdentityInfo.js +1 -1
- package/dist/components/InfoIcon/InfoIcon.js +6 -6
- package/dist/components/Input/DatePickerInput.js +5 -3
- package/dist/components/Input/Input.js +1 -1
- package/dist/components/Input/InputPassword.js +1 -1
- package/dist/components/Input/InputUsername.js +1 -1
- package/dist/components/Input/InputWithButton.js +1 -1
- package/dist/components/Input/MultiSelect.js +4 -3
- package/dist/components/Input/OtpInput.js +2 -2
- package/dist/components/Input/RangeInput.js +4 -4
- package/dist/components/Input/Select.js +5 -4
- package/dist/components/Input/TableFilterDropdown.js +1 -1
- package/dist/components/InvestmentStat/InvestmentStat.js +1 -1
- package/dist/components/LatestUpdate/LatestUpdate.js +1 -1
- package/dist/components/Layout/Layout.js +1 -1
- package/dist/components/LoginModal/LoginModal.js +6 -6
- package/dist/components/MainMenu/DynamicMainMenu.js +3 -3
- package/dist/components/MainMenu/MainMenu.js +6 -6
- package/dist/components/Modal/Modal.js +2 -2
- package/dist/components/Modal/NewVentureModal/NewVentureModal.js +9 -9
- package/dist/components/Modal/PaymentModal.js +2 -2
- package/dist/components/Modal/SuccessModal/SuccessModal.js +3 -3
- package/dist/components/MultiProgressBar/MultiProgressBar.js +1 -1
- package/dist/components/Number/Number.js +1 -1
- package/dist/components/PageTransition/PageTransition.js +1 -1
- package/dist/components/Pagination/Pagination.js +1 -1
- package/dist/components/Pagination/PaginationControls.js +1 -1
- package/dist/components/Payment/PaymentDisplay.js +4 -4
- package/dist/components/Payment/TimerComponent.js +1 -1
- package/dist/components/ProfileBadge/ProfileBadge.js +1 -1
- package/dist/components/ProfileBox/ProfileBox.js +1 -1
- package/dist/components/ProfileStat/ProfileStat.js +1 -1
- package/dist/components/QRCode/QRCode.js +2 -2
- package/dist/components/Radio/Radio.js +1 -1
- package/dist/components/RefreshButton/RefreshButton.js +1 -1
- package/dist/components/RegisterConfirmModal/RegisterConfirmModal.js +1 -1
- package/dist/components/RegisterModal/RegisterModal.js +8 -8
- package/dist/components/RequestDataBox/RequestDataBox.js +1 -1
- package/dist/components/ResetConfirmModal/ResetConfirmModal.js +1 -1
- package/dist/components/ResetPasswordModal/ResetPasswordModal.js +6 -6
- package/dist/components/SEO/SEO.js +3 -3
- package/dist/components/Slider/Slider.js +4 -4
- package/dist/components/SmartLink/SmartLink.js +1 -1
- package/dist/components/Snackbar/Snackbar.js +1 -1
- package/dist/components/Snackbar/SnackbarProvider.js +1 -1
- package/dist/components/StepController/StepController.js +1 -1
- package/dist/components/StepController/StepControllerContext.js +1 -1
- package/dist/components/StepController/StepControllerProgress.js +1 -1
- package/dist/components/StepsProgress/StepIndicator.js +1 -1
- package/dist/components/StepsProgress/StepsProgress.js +1 -1
- package/dist/components/Switch/Switch.js +1 -1
- package/dist/components/Tabs/Tabs.js +1 -1
- package/dist/components/TabsNav/TabNav.js +1 -1
- package/dist/components/TabsNav/TabsNav.js +1 -1
- package/dist/components/TaxResidenceCard/TaxResidenceCard.js +1 -1
- package/dist/components/TaxResidenceCard/TaxResidenceCard.styles.js +2 -2
- package/dist/components/TeamOverview/TeamOverview.js +1 -1
- package/dist/components/TermsModal/TermsModal.js +5 -5
- package/dist/components/Timeline/TimelineStep.js +1 -1
- package/dist/components/ToDoList/ToDoList.js +3 -3
- package/dist/components/ToDoList/ToDoListTask.js +4 -4
- package/dist/components/TransactionDetails/TransactionDetails.js +1 -1
- package/dist/components/TransactionDetails/TransactionDetails.styles.js +2 -2
- package/dist/components/TransactionInfo/TransactionInfo.js +1 -1
- package/dist/components/VerifyEmailModal/VerifyEmailModal.js +5 -5
- package/dist/components/headerHo/HeaderHo.js +3 -1
- package/dist/components/logo/Logo.js +1 -1
- package/dist/components/taxId/register-taxid.js +4 -4
- package/dist/components-library.css +781 -0
- package/dist/context/Auth.js +15 -12
- package/dist/context/AuthContext.js +89 -16
- package/dist/firebase-config.js +4 -2
- package/dist/hooks/useNewVentureForm.js +1 -1
- package/dist/index.js +5 -4
- package/dist/model/axios.js +2 -1
- package/dist/model/axiosPublic.js +2 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +8 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +6 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js +7 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +7 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +6 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/createClass.js +15 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/createSuper.js +17 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/defineProperty.js +12 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/extends.js +12 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +8 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/inherits.js +16 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +13 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/iterableToArray.js +6 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +24 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +6 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js +6 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +25 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +13 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +12 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +10 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +8 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +10 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js +10 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js +10 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +14 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +9 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/typeof.js +11 -0
- package/dist/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +11 -0
- package/dist/node_modules/@date-fns/tz/date/index.js +66 -0
- package/dist/node_modules/@date-fns/tz/date/mini.js +124 -0
- package/dist/node_modules/@date-fns/tz/tzName/index.js +11 -0
- package/dist/node_modules/@date-fns/tz/tzOffset/index.js +28 -0
- package/dist/node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js +345 -0
- package/dist/node_modules/@emotion/hash/dist/emotion-hash.esm.js +31 -0
- package/dist/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js +10 -0
- package/dist/node_modules/@emotion/react/dist/emotion-element-f0de968e.browser.esm.js +84 -0
- package/dist/node_modules/@emotion/react/dist/emotion-react.browser.esm.js +50 -0
- package/dist/node_modules/@emotion/serialize/dist/emotion-serialize.esm.js +169 -0
- package/dist/node_modules/@emotion/sheet/dist/emotion-sheet.esm.js +83 -0
- package/dist/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js +53 -0
- package/dist/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.browser.esm.js +9 -0
- package/dist/node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js +45 -0
- package/dist/node_modules/@firebase/app/dist/esm/index.esm.js +609 -0
- package/dist/node_modules/@firebase/auth/dist/esm/index-36fcbc82.js +5751 -0
- package/dist/node_modules/@firebase/component/dist/esm/index.esm.js +291 -0
- package/dist/node_modules/@firebase/logger/dist/esm/index.esm.js +106 -0
- package/dist/node_modules/@firebase/util/dist/index.esm.js +828 -0
- package/dist/node_modules/@firebase/util/dist/postinstall.js +4 -0
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +257 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +122 -0
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +34 -0
- package/dist/node_modules/@lottiefiles/dotlottie-react/dist/index.js +53 -0
- package/dist/node_modules/@lottiefiles/dotlottie-web/dist/index.js +1973 -0
- package/dist/node_modules/add-px-to-style/index.js +48 -0
- package/dist/node_modules/axios/index.js +38 -0
- package/dist/node_modules/axios/lib/adapters/adapters.js +71 -0
- package/dist/node_modules/axios/lib/adapters/fetch.js +219 -0
- package/dist/node_modules/axios/lib/adapters/xhr.js +141 -0
- package/dist/node_modules/axios/lib/axios.js +50 -0
- package/dist/node_modules/axios/lib/cancel/CancelToken.js +99 -0
- package/dist/node_modules/axios/lib/cancel/CanceledError.js +20 -0
- package/dist/node_modules/axios/lib/cancel/isCancel.js +6 -0
- package/dist/node_modules/axios/lib/core/Axios.js +188 -0
- package/dist/node_modules/axios/lib/core/AxiosError.js +67 -0
- package/dist/node_modules/axios/lib/core/AxiosHeaders.js +231 -0
- package/dist/node_modules/axios/lib/core/InterceptorManager.js +66 -0
- package/dist/node_modules/axios/lib/core/buildFullPath.js +12 -0
- package/dist/node_modules/axios/lib/core/dispatchRequest.js +52 -0
- package/dist/node_modules/axios/lib/core/mergeConfig.js +88 -0
- package/dist/node_modules/axios/lib/core/settle.js +18 -0
- package/dist/node_modules/axios/lib/core/transformData.js +17 -0
- package/dist/node_modules/axios/lib/defaults/index.js +116 -0
- package/dist/node_modules/axios/lib/defaults/transitional.js +9 -0
- package/dist/node_modules/axios/lib/env/data.js +4 -0
- package/dist/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +34 -0
- package/dist/node_modules/axios/lib/helpers/HttpStatusCode.js +77 -0
- package/dist/node_modules/axios/lib/helpers/bind.js +8 -0
- package/dist/node_modules/axios/lib/helpers/buildURL.js +32 -0
- package/dist/node_modules/axios/lib/helpers/combineURLs.js +6 -0
- package/dist/node_modules/axios/lib/helpers/composeSignals.js +39 -0
- package/dist/node_modules/axios/lib/helpers/cookies.js +49 -0
- package/dist/node_modules/axios/lib/helpers/formDataToJSON.js +54 -0
- package/dist/node_modules/axios/lib/helpers/isAbsoluteURL.js +9 -0
- package/dist/node_modules/axios/lib/helpers/isAxiosError.js +7 -0
- package/dist/node_modules/axios/lib/helpers/isURLSameOrigin.js +11 -0
- package/dist/node_modules/axios/lib/helpers/null.js +4 -0
- package/dist/node_modules/axios/lib/helpers/parseHeaders.js +47 -0
- package/dist/node_modules/axios/lib/helpers/parseProtocol.js +7 -0
- package/dist/node_modules/axios/lib/helpers/progressEventReducer.js +41 -0
- package/dist/node_modules/axios/lib/helpers/resolveConfig.js +46 -0
- package/dist/node_modules/axios/lib/helpers/speedometer.js +36 -0
- package/dist/node_modules/axios/lib/helpers/spread.js +8 -0
- package/dist/node_modules/axios/lib/helpers/throttle.js +35 -0
- package/dist/node_modules/axios/lib/helpers/toFormData.js +117 -0
- package/dist/node_modules/axios/lib/helpers/toURLEncodedForm.js +18 -0
- package/dist/node_modules/axios/lib/helpers/trackStream.js +80 -0
- package/dist/node_modules/axios/lib/helpers/validator.js +67 -0
- package/dist/node_modules/axios/lib/platform/browser/classes/Blob.js +4 -0
- package/dist/node_modules/axios/lib/platform/browser/classes/FormData.js +4 -0
- package/dist/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +5 -0
- package/dist/node_modules/axios/lib/platform/browser/index.js +15 -0
- package/dist/node_modules/axios/lib/platform/common/utils.js +15 -0
- package/dist/node_modules/axios/lib/platform/index.js +9 -0
- package/dist/node_modules/axios/lib/utils.js +415 -0
- package/dist/node_modules/classnames/index.js +61 -0
- package/dist/node_modules/copy-to-clipboard/index.js +101 -0
- package/dist/node_modules/country-flag-icons/modules/react/3x2/index.js +6570 -0
- package/dist/node_modules/country-flag-icons/react/3x2/index.js +269 -0
- package/dist/node_modules/date-fns/_lib/addLeadingZeros.js +8 -0
- package/dist/node_modules/date-fns/_lib/defaultOptions.js +7 -0
- package/dist/node_modules/date-fns/_lib/format/formatters.js +652 -0
- package/dist/node_modules/date-fns/_lib/format/lightFormatters.js +62 -0
- package/dist/node_modules/date-fns/_lib/format/longFormatters.js +58 -0
- package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +20 -0
- package/dist/node_modules/date-fns/_lib/normalizeDates.js +11 -0
- package/dist/node_modules/date-fns/_lib/normalizeInterval.js +8 -0
- package/dist/node_modules/date-fns/_lib/protectedTokens.js +23 -0
- package/dist/node_modules/date-fns/addDays.js +12 -0
- package/dist/node_modules/date-fns/addMonths.js +26 -0
- package/dist/node_modules/date-fns/addWeeks.js +7 -0
- package/dist/node_modules/date-fns/addYears.js +7 -0
- package/dist/node_modules/date-fns/constants.js +14 -0
- package/dist/node_modules/date-fns/constructFrom.js +11 -0
- package/dist/node_modules/date-fns/differenceInCalendarDays.js +19 -0
- package/dist/node_modules/date-fns/differenceInCalendarMonths.js +14 -0
- package/dist/node_modules/date-fns/eachMonthOfInterval.js +20 -0
- package/dist/node_modules/date-fns/eachYearOfInterval.js +20 -0
- package/dist/node_modules/date-fns/endOfISOWeek.js +7 -0
- package/dist/node_modules/date-fns/endOfMonth.js +11 -0
- package/dist/node_modules/date-fns/endOfWeek.js +15 -0
- package/dist/node_modules/date-fns/endOfYear.js +11 -0
- package/dist/node_modules/date-fns/format.js +77 -0
- package/dist/node_modules/date-fns/getDayOfYear.js +12 -0
- package/dist/node_modules/date-fns/getDaysInMonth.js +14 -0
- package/dist/node_modules/date-fns/getDefaultOptions.js +7 -0
- package/dist/node_modules/date-fns/getISODay.js +8 -0
- package/dist/node_modules/date-fns/getISOWeek.js +12 -0
- package/dist/node_modules/date-fns/getISOWeekYear.js +25 -0
- package/dist/node_modules/date-fns/getMonth.js +7 -0
- package/dist/node_modules/date-fns/getWeek.js +12 -0
- package/dist/node_modules/date-fns/getWeekYear.js +28 -0
- package/dist/node_modules/date-fns/getYear.js +7 -0
- package/dist/node_modules/date-fns/isAfter.js +7 -0
- package/dist/node_modules/date-fns/isBefore.js +7 -0
- package/dist/node_modules/date-fns/isDate.js +6 -0
- package/dist/node_modules/date-fns/isSameDay.js +13 -0
- package/dist/node_modules/date-fns/isSameMonth.js +12 -0
- package/dist/node_modules/date-fns/isSameYear.js +12 -0
- package/dist/node_modules/date-fns/isValid.js +8 -0
- package/dist/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +10 -0
- package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +20 -0
- package/dist/node_modules/date-fns/locale/_lib/buildMatchFn.js +43 -0
- package/dist/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +16 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +85 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.js +36 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +12 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/localize.js +164 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/match.js +122 -0
- package/dist/node_modules/date-fns/locale/en-US.js +20 -0
- package/dist/node_modules/date-fns/max.js +16 -0
- package/dist/node_modules/date-fns/min.js +16 -0
- package/dist/node_modules/date-fns/parse/_lib/Parser.js +25 -0
- package/dist/node_modules/date-fns/parse/_lib/Setter.js +44 -0
- package/dist/node_modules/date-fns/parse/_lib/constants.js +50 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/AMPMMidnightParser.js +44 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/AMPMParser.js +44 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/DateParser.js +64 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/DayOfYearParser.js +52 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/DayParser.js +45 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/DayPeriodParser.js +44 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/EraParser.js +30 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/ExtendedYearParser.js +20 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/FractionOfSecondParser.js +17 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/Hour0To11Parser.js +32 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/Hour0to23Parser.js +27 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/Hour1To24Parser.js +28 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/Hour1to12Parser.js +34 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/ISODayParser.js +106 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneParser.js +43 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneWithZParser.js +43 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/ISOWeekParser.js +43 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/ISOWeekYearParser.js +39 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/LocalDayParser.js +76 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/LocalWeekParser.js +42 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/LocalWeekYearParser.js +67 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/MinuteParser.js +27 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/MonthParser.js +73 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/QuarterParser.js +71 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/SecondParser.js +27 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/StandAloneLocalDayParser.js +76 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/StandAloneMonthParser.js +73 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/StandAloneQuarterParser.js +71 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/TimestampMillisecondsParser.js +16 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/TimestampSecondsParser.js +16 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers/YearParser.js +47 -0
- package/dist/node_modules/date-fns/parse/_lib/parsers.js +67 -0
- package/dist/node_modules/date-fns/parse/_lib/utils.js +117 -0
- package/dist/node_modules/date-fns/parse.js +123 -0
- package/dist/node_modules/date-fns/setDay.js +17 -0
- package/dist/node_modules/date-fns/setISODay.js +12 -0
- package/dist/node_modules/date-fns/setISOWeek.js +11 -0
- package/dist/node_modules/date-fns/setMonth.js +17 -0
- package/dist/node_modules/date-fns/setWeek.js +11 -0
- package/dist/node_modules/date-fns/setYear.js +11 -0
- package/dist/node_modules/date-fns/startOfDay.js +9 -0
- package/dist/node_modules/date-fns/startOfISOWeek.js +7 -0
- package/dist/node_modules/date-fns/startOfISOWeekYear.js +13 -0
- package/dist/node_modules/date-fns/startOfMonth.js +10 -0
- package/dist/node_modules/date-fns/startOfWeek.js +15 -0
- package/dist/node_modules/date-fns/startOfWeekYear.js +17 -0
- package/dist/node_modules/date-fns/startOfYear.js +10 -0
- package/dist/node_modules/date-fns/toDate.js +7 -0
- package/dist/node_modules/date-fns/transpose.js +18 -0
- package/dist/node_modules/date-fns-tz/dist/esm/_lib/getTimezoneOffsetInMilliseconds/index.js +8 -0
- package/dist/node_modules/date-fns-tz/dist/esm/_lib/newDateUTC/index.js +9 -0
- package/dist/node_modules/date-fns-tz/dist/esm/_lib/tzIntlTimeZoneName/index.js +29 -0
- package/dist/node_modules/date-fns-tz/dist/esm/_lib/tzParseTimezone/index.js +89 -0
- package/dist/node_modules/date-fns-tz/dist/esm/_lib/tzPattern/index.js +4 -0
- package/dist/node_modules/date-fns-tz/dist/esm/_lib/tzTokenizeDate/index.js +81 -0
- package/dist/node_modules/date-fns-tz/dist/esm/format/formatters/index.js +125 -0
- package/dist/node_modules/date-fns-tz/dist/esm/format/index.js +24 -0
- package/dist/node_modules/date-fns-tz/dist/esm/formatInTimeZone/index.js +13 -0
- package/dist/node_modules/date-fns-tz/dist/esm/toDate/index.js +305 -0
- package/dist/node_modules/date-fns-tz/dist/esm/toZonedTime/index.js +14 -0
- package/dist/node_modules/deepmerge/dist/es.js +69 -0
- package/dist/node_modules/dom-css/index.js +65 -0
- package/dist/node_modules/domelementtype/lib/index.js +39 -0
- package/dist/node_modules/domhandler/lib/index.js +166 -0
- package/dist/node_modules/domhandler/lib/node.js +438 -0
- package/dist/node_modules/dompurify/dist/purify.es.js +1020 -0
- package/dist/node_modules/firebase/app/dist/esm/index.esm.js +20 -0
- package/dist/node_modules/firebase/auth/dist/esm/index.esm.js +44 -0
- package/dist/node_modules/formik/dist/formik.esm.js +969 -0
- package/dist/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js +92 -0
- package/dist/node_modules/html-dom-parser/lib/client/constants.js +55 -0
- package/dist/node_modules/html-dom-parser/lib/client/domparser.js +96 -0
- package/dist/node_modules/html-dom-parser/lib/client/html-to-dom.js +31 -0
- package/dist/node_modules/html-dom-parser/lib/client/utilities.js +96 -0
- package/dist/node_modules/html-react-parser/esm/index.js +5 -0
- package/dist/node_modules/html-react-parser/lib/attributes-to-props.js +64 -0
- package/dist/node_modules/html-react-parser/lib/dom-to-react.js +99 -0
- package/dist/node_modules/html-react-parser/lib/index.js +51 -0
- package/dist/node_modules/html-react-parser/lib/utilities.js +79 -0
- package/dist/node_modules/idb/build/index.js +69 -0
- package/dist/node_modules/idb/build/wrap-idb-value.js +148 -0
- package/dist/node_modules/inline-style-parser/cjs/index.js +142 -0
- package/dist/node_modules/js-cookie/dist/js.cookie.js +99 -0
- package/dist/node_modules/json2mq/index.js +55 -0
- package/dist/node_modules/lodash-es/_DataView.js +6 -0
- package/dist/node_modules/lodash-es/_Hash.js +21 -0
- package/dist/node_modules/lodash-es/_ListCache.js +21 -0
- package/dist/node_modules/lodash-es/_Map.js +6 -0
- package/dist/node_modules/lodash-es/_MapCache.js +21 -0
- package/dist/node_modules/lodash-es/_Promise.js +6 -0
- package/dist/node_modules/lodash-es/_Set.js +6 -0
- package/dist/node_modules/lodash-es/_Stack.js +18 -0
- package/dist/node_modules/lodash-es/_Symbol.js +5 -0
- package/dist/node_modules/lodash-es/_Uint8Array.js +5 -0
- package/dist/node_modules/lodash-es/_WeakMap.js +6 -0
- package/dist/node_modules/lodash-es/_arrayEach.js +12 -0
- package/dist/node_modules/lodash-es/_arrayFilter.js +13 -0
- package/dist/node_modules/lodash-es/_arrayLikeKeys.js +24 -0
- package/dist/node_modules/lodash-es/_arrayMap.js +10 -0
- package/dist/node_modules/lodash-es/_arrayPush.js +10 -0
- package/dist/node_modules/lodash-es/_assignValue.js +13 -0
- package/dist/node_modules/lodash-es/_assocIndexOf.js +13 -0
- package/dist/node_modules/lodash-es/_baseAssign.js +8 -0
- package/dist/node_modules/lodash-es/_baseAssignIn.js +8 -0
- package/dist/node_modules/lodash-es/_baseAssignValue.js +16 -0
- package/dist/node_modules/lodash-es/_baseClone.js +88 -0
- package/dist/node_modules/lodash-es/_baseCreate.js +21 -0
- package/dist/node_modules/lodash-es/_baseGetAllKeys.js +9 -0
- package/dist/node_modules/lodash-es/_baseGetTag.js +14 -0
- package/dist/node_modules/lodash-es/_baseIsArguments.js +9 -0
- package/dist/node_modules/lodash-es/_baseIsMap.js +9 -0
- package/dist/node_modules/lodash-es/_baseIsNative.js +22 -0
- package/dist/node_modules/lodash-es/_baseIsSet.js +9 -0
- package/dist/node_modules/lodash-es/_baseIsTypedArray.js +14 -0
- package/dist/node_modules/lodash-es/_baseKeys.js +19 -0
- package/dist/node_modules/lodash-es/_baseKeysIn.js +20 -0
- package/dist/node_modules/lodash-es/_baseTimes.js +10 -0
- package/dist/node_modules/lodash-es/_baseToString.js +21 -0
- package/dist/node_modules/lodash-es/_baseUnary.js +8 -0
- package/dist/node_modules/lodash-es/_cloneArrayBuffer.js +9 -0
- package/dist/node_modules/lodash-es/_cloneBuffer.js +16 -0
- package/dist/node_modules/lodash-es/_cloneDataView.js +8 -0
- package/dist/node_modules/lodash-es/_cloneRegExp.js +9 -0
- package/dist/node_modules/lodash-es/_cloneSymbol.js +8 -0
- package/dist/node_modules/lodash-es/_cloneTypedArray.js +8 -0
- package/dist/node_modules/lodash-es/_copyArray.js +11 -0
- package/dist/node_modules/lodash-es/_copyObject.js +23 -0
- package/dist/node_modules/lodash-es/_copySymbols.js +8 -0
- package/dist/node_modules/lodash-es/_copySymbolsIn.js +8 -0
- package/dist/node_modules/lodash-es/_coreJsData.js +5 -0
- package/dist/node_modules/lodash-es/_defineProperty.js +12 -0
- package/dist/node_modules/lodash-es/_freeGlobal.js +4 -0
- package/dist/node_modules/lodash-es/_getAllKeys.js +9 -0
- package/dist/node_modules/lodash-es/_getAllKeysIn.js +9 -0
- package/dist/node_modules/lodash-es/_getMapData.js +8 -0
- package/dist/node_modules/lodash-es/_getNative.js +9 -0
- package/dist/node_modules/lodash-es/_getPrototype.js +5 -0
- package/dist/node_modules/lodash-es/_getRawTag.js +25 -0
- package/dist/node_modules/lodash-es/_getSymbols.js +17 -0
- package/dist/node_modules/lodash-es/_getSymbolsIn.js +16 -0
- package/dist/node_modules/lodash-es/_getTag.js +34 -0
- package/dist/node_modules/lodash-es/_getValue.js +6 -0
- package/dist/node_modules/lodash-es/_hashClear.js +8 -0
- package/dist/node_modules/lodash-es/_hashDelete.js +8 -0
- package/dist/node_modules/lodash-es/_hashGet.js +15 -0
- package/dist/node_modules/lodash-es/_hashHas.js +10 -0
- package/dist/node_modules/lodash-es/_hashSet.js +11 -0
- package/dist/node_modules/lodash-es/_initCloneArray.js +13 -0
- package/dist/node_modules/lodash-es/_initCloneByTag.js +43 -0
- package/dist/node_modules/lodash-es/_initCloneObject.js +9 -0
- package/dist/node_modules/lodash-es/_isIndex.js +10 -0
- package/dist/node_modules/lodash-es/_isKeyable.js +7 -0
- package/dist/node_modules/lodash-es/_isMasked.js +11 -0
- package/dist/node_modules/lodash-es/_isPrototype.js +8 -0
- package/dist/node_modules/lodash-es/_listCacheClear.js +7 -0
- package/dist/node_modules/lodash-es/_listCacheDelete.js +20 -0
- package/dist/node_modules/lodash-es/_listCacheGet.js +8 -0
- package/dist/node_modules/lodash-es/_listCacheHas.js +7 -0
- package/dist/node_modules/lodash-es/_listCacheSet.js +14 -0
- package/dist/node_modules/lodash-es/_mapCacheClear.js +14 -0
- package/dist/node_modules/lodash-es/_mapCacheDelete.js +9 -0
- package/dist/node_modules/lodash-es/_mapCacheGet.js +7 -0
- package/dist/node_modules/lodash-es/_mapCacheHas.js +7 -0
- package/dist/node_modules/lodash-es/_mapCacheSet.js +10 -0
- package/dist/node_modules/lodash-es/_memoizeCapped.js +15 -0
- package/dist/node_modules/lodash-es/_nativeCreate.js +5 -0
- package/dist/node_modules/lodash-es/_nativeKeys.js +5 -0
- package/dist/node_modules/lodash-es/_nativeKeysIn.js +12 -0
- package/dist/node_modules/lodash-es/_nodeUtil.js +18 -0
- package/dist/node_modules/lodash-es/_objectToString.js +8 -0
- package/dist/node_modules/lodash-es/_overArg.js +8 -0
- package/dist/node_modules/lodash-es/_root.js +6 -0
- package/dist/node_modules/lodash-es/_stackClear.js +8 -0
- package/dist/node_modules/lodash-es/_stackDelete.js +8 -0
- package/dist/node_modules/lodash-es/_stackGet.js +6 -0
- package/dist/node_modules/lodash-es/_stackHas.js +6 -0
- package/dist/node_modules/lodash-es/_stackSet.js +22 -0
- package/dist/node_modules/lodash-es/_stringToPath.js +16 -0
- package/dist/node_modules/lodash-es/_toKey.js +11 -0
- package/dist/node_modules/lodash-es/_toSource.js +18 -0
- package/dist/node_modules/lodash-es/clone.js +8 -0
- package/dist/node_modules/lodash-es/cloneDeep.js +8 -0
- package/dist/node_modules/lodash-es/eq.js +6 -0
- package/dist/node_modules/lodash-es/isArguments.js +13 -0
- package/dist/node_modules/lodash-es/isArray.js +4 -0
- package/dist/node_modules/lodash-es/isArrayLike.js +8 -0
- package/dist/node_modules/lodash-es/isBuffer.js +11 -0
- package/dist/node_modules/lodash-es/isFunction.js +13 -0
- package/dist/node_modules/lodash-es/isLength.js +7 -0
- package/dist/node_modules/lodash-es/isMap.js +8 -0
- package/dist/node_modules/lodash-es/isObject.js +7 -0
- package/dist/node_modules/lodash-es/isObjectLike.js +6 -0
- package/dist/node_modules/lodash-es/isPlainObject.js +22 -0
- package/dist/node_modules/lodash-es/isSet.js +8 -0
- package/dist/node_modules/lodash-es/isSymbol.js +9 -0
- package/dist/node_modules/lodash-es/isTypedArray.js +8 -0
- package/dist/node_modules/lodash-es/keys.js +9 -0
- package/dist/node_modules/lodash-es/keysIn.js +9 -0
- package/dist/node_modules/lodash-es/memoize.js +22 -0
- package/dist/node_modules/lodash-es/stubArray.js +6 -0
- package/dist/node_modules/lodash-es/stubFalse.js +6 -0
- package/dist/node_modules/lodash-es/toPath.js +16 -0
- package/dist/node_modules/lodash-es/toString.js +7 -0
- package/dist/node_modules/lodash.debounce/index.js +137 -0
- package/dist/node_modules/memoize-one/dist/memoize-one.esm.js +52 -0
- package/dist/node_modules/mixpanel-browser/dist/mixpanel.module.js +25533 -0
- package/dist/node_modules/object-assign/index.js +73 -0
- package/dist/node_modules/performance-now/lib/performance-now.js +42 -0
- package/dist/node_modules/popper.js/dist/esm/popper.js +1516 -0
- package/dist/node_modules/prefix-style/index.js +29 -0
- package/dist/node_modules/prop-types/checkPropTypes.js +68 -0
- package/dist/node_modules/prop-types/factoryWithThrowingShims.js +58 -0
- package/dist/node_modules/prop-types/factoryWithTypeCheckers.js +451 -0
- package/dist/node_modules/prop-types/index.js +20 -0
- package/dist/node_modules/prop-types/lib/ReactPropTypesSecret.js +12 -0
- package/dist/node_modules/prop-types/lib/has.js +11 -0
- package/dist/node_modules/property-expr/index.js +105 -0
- package/dist/node_modules/qrcode.react/lib/esm/index.js +1099 -0
- package/dist/node_modules/raf/index.js +67 -0
- package/dist/node_modules/react-collapse/lib/Collapse.js +285 -0
- package/dist/node_modules/react-collapse/lib/UnmountClosed.js +278 -0
- package/dist/node_modules/react-collapse/lib/index.js +17 -0
- package/dist/node_modules/react-copy-to-clipboard/lib/Component.js +209 -0
- package/dist/node_modules/react-copy-to-clipboard/lib/index.js +14 -0
- package/dist/node_modules/react-custom-scrollbars-4/lib/Scrollbars/defaultRenderElements.js +85 -0
- package/dist/node_modules/react-custom-scrollbars-4/lib/Scrollbars/index.js +706 -0
- package/dist/node_modules/react-custom-scrollbars-4/lib/Scrollbars/styles.js +67 -0
- package/dist/node_modules/react-custom-scrollbars-4/lib/index.js +24 -0
- package/dist/node_modules/react-custom-scrollbars-4/lib/utils/getInnerHeight.js +21 -0
- package/dist/node_modules/react-custom-scrollbars-4/lib/utils/getInnerWidth.js +21 -0
- package/dist/node_modules/react-custom-scrollbars-4/lib/utils/getScrollbarWidth.js +44 -0
- package/dist/node_modules/react-custom-scrollbars-4/lib/utils/isString.js +19 -0
- package/dist/node_modules/react-custom-scrollbars-4/lib/utils/returnFalse.js +19 -0
- package/dist/node_modules/react-day-picker/dist/esm/DayPicker.js +325 -0
- package/dist/node_modules/react-day-picker/dist/esm/UI.js +59 -0
- package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarDay.js +25 -0
- package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarMonth.js +9 -0
- package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarWeek.js +9 -0
- package/dist/node_modules/react-day-picker/dist/esm/classes/DateLib.js +282 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Button.js +7 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/CaptionLabel.js +7 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Chevron.js +18 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Day.js +8 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/DayButton.js +13 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Dropdown.js +21 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/DropdownNav.js +7 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Footer.js +7 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Month.js +8 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/MonthCaption.js +8 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/MonthGrid.js +7 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Months.js +7 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/MonthsDropdown.js +9 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Nav.js +34 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/NextMonthButton.js +9 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Option.js +7 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/PreviousMonthButton.js +9 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Root.js +8 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Select.js +7 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Week.js +8 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/WeekNumber.js +8 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/WeekNumberHeader.js +7 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Weekday.js +7 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Weekdays.js +11 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Weeks.js +7 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/YearsDropdown.js +9 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/custom-components.js +54 -0
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatCaption.js +10 -0
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatDay.js +7 -0
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatMonthDropdown.js +7 -0
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumber.js +10 -0
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumberHeader.js +6 -0
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekdayName.js +7 -0
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatYearDropdown.js +9 -0
- package/dist/node_modules/react-day-picker/dist/esm/formatters/index.js +18 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/calculateFocusTarget.js +40 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/createGetModifiers.js +72 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/endOfBroadcastWeek.js +11 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getBroadcastWeeksInMonth.js +13 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getClassNamesForModifiers.js +17 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getComponents.js +10 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getDataAttributes.js +19 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getDates.js +30 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getDays.js +12 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getDefaultClassNames.js +20 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getDisplayMonths.js +15 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getFocusableDate.js +22 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getFormatters.js +16 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.js +16 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getLabels.js +41 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getMonthOptions.js +17 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getMonths.js +43 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getNavMonth.js +39 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getNextFocus.js +20 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getNextMonth.js +20 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getPreviousMonth.js +20 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getStyleForModifiers.js +14 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeekdays.js +13 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeeks.js +9 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.js +23 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.js +14 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/useControlledValue.js +9 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/index.js +26 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelDayButton.js +14 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelGrid.js +10 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelGridcell.js +11 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelMonthDropdown.js +6 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelNav.js +6 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelNext.js +7 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelPrevious.js +6 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekNumber.js +6 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekNumberHeader.js +6 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekday.js +7 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelYearDropdown.js +6 -0
- package/dist/node_modules/react-day-picker/dist/esm/locale/en-US.js +62 -0
- package/dist/node_modules/react-day-picker/dist/esm/noonDateLib.js +145 -0
- package/dist/node_modules/react-day-picker/dist/esm/selection/useMulti.js +42 -0
- package/dist/node_modules/react-day-picker/dist/esm/selection/useRange.js +33 -0
- package/dist/node_modules/react-day-picker/dist/esm/selection/useSingle.js +33 -0
- package/dist/node_modules/react-day-picker/dist/esm/useAnimation.js +128 -0
- package/dist/node_modules/react-day-picker/dist/esm/useCalendar.js +100 -0
- package/dist/node_modules/react-day-picker/dist/esm/useDayPicker.js +13 -0
- package/dist/node_modules/react-day-picker/dist/esm/useFocus.js +42 -0
- package/dist/node_modules/react-day-picker/dist/esm/useSelection.js +21 -0
- package/dist/node_modules/react-day-picker/dist/esm/utils/addToRange.js +55 -0
- package/dist/node_modules/react-day-picker/dist/esm/utils/convertMatchersToTimeZone.js +53 -0
- package/dist/node_modules/react-day-picker/dist/esm/utils/dateMatchModifiers.js +52 -0
- package/dist/node_modules/react-day-picker/dist/esm/utils/rangeContainsDayOfWeek.js +17 -0
- package/dist/node_modules/react-day-picker/dist/esm/utils/rangeContainsModifiers.js +61 -0
- package/dist/node_modules/react-day-picker/dist/esm/utils/rangeIncludesDate.js +23 -0
- package/dist/node_modules/react-day-picker/dist/esm/utils/rangeOverlaps.js +8 -0
- package/dist/node_modules/react-day-picker/dist/esm/utils/toTimeZone.js +11 -0
- package/dist/node_modules/react-day-picker/dist/esm/utils/typeguards.js +26 -0
- package/dist/node_modules/react-fast-compare/index.js +63 -0
- package/dist/node_modules/react-helmet/es/Helmet.js +717 -0
- package/dist/node_modules/react-helmet/node_modules/react-fast-compare/index.js +81 -0
- package/dist/node_modules/react-intersection-observer/dist/index.js +178 -0
- package/dist/node_modules/react-is/cjs/react-is.development.js +157 -0
- package/dist/node_modules/react-is/cjs/react-is.production.min.js +98 -0
- package/dist/node_modules/react-is/index.js +17 -0
- package/dist/node_modules/react-otp-input/lib/index.esm.js +168 -0
- package/dist/node_modules/react-portal/es/LegacyPortal.js +91 -0
- package/dist/node_modules/react-portal/es/Portal.js +74 -0
- package/dist/node_modules/react-portal/es/PortalCompat.js +12 -0
- package/dist/node_modules/react-portal/es/utils.js +4 -0
- package/dist/node_modules/react-property/lib/index.js +471 -0
- package/dist/node_modules/react-property/lib/possibleStandardNamesOptimized.js +499 -0
- package/dist/node_modules/react-range/lib/Range.js +592 -0
- package/dist/node_modules/react-range/lib/index.js +39 -0
- package/dist/node_modules/react-range/lib/types.js +19 -0
- package/dist/node_modules/react-range/lib/utils.js +318 -0
- package/dist/node_modules/react-select/creatable/dist/react-select-creatable.esm.js +19 -0
- package/dist/node_modules/react-select/dist/Select-ef7c0426.esm.js +2317 -0
- package/dist/node_modules/react-select/dist/index-641ee5b8.esm.js +1071 -0
- package/dist/node_modules/react-select/dist/react-select.esm.js +20 -0
- package/dist/node_modules/react-select/dist/useCreatable-09aaeb9a.esm.js +75 -0
- package/dist/node_modules/react-select/dist/useStateManager-7e1e8489.esm.js +51 -0
- package/dist/node_modules/react-side-effect/lib/index.js +105 -0
- package/dist/node_modules/react-slick/lib/arrows.js +248 -0
- package/dist/node_modules/react-slick/lib/default-props.js +85 -0
- package/dist/node_modules/react-slick/lib/dots.js +192 -0
- package/dist/node_modules/react-slick/lib/index.js +22 -0
- package/dist/node_modules/react-slick/lib/initial-state.js +48 -0
- package/dist/node_modules/react-slick/lib/inner-slider.js +810 -0
- package/dist/node_modules/react-slick/lib/slider.js +333 -0
- package/dist/node_modules/react-slick/lib/track.js +330 -0
- package/dist/node_modules/react-slick/lib/utils/innerSliderUtils.js +730 -0
- package/dist/node_modules/react-table/dist/react-table.development.js +3684 -0
- package/dist/node_modules/react-table/dist/react-table.production.min.js +1637 -0
- package/dist/node_modules/react-table/index.js +17 -0
- package/dist/node_modules/react-tippy/dist/react-tippy.js +1981 -0
- package/dist/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js +495 -0
- package/dist/node_modules/string-convert/camel2hyphen.js +16 -0
- package/dist/node_modules/style-to-js/cjs/index.js +31 -0
- package/dist/node_modules/style-to-js/cjs/utilities.js +42 -0
- package/dist/node_modules/style-to-object/cjs/index.js +38 -0
- package/dist/node_modules/stylis/src/Enum.js +20 -0
- package/dist/node_modules/stylis/src/Middleware.js +22 -0
- package/dist/node_modules/stylis/src/Parser.js +157 -0
- package/dist/node_modules/stylis/src/Serializer.js +29 -0
- package/dist/node_modules/stylis/src/Tokenizer.js +160 -0
- package/dist/node_modules/stylis/src/Utility.js +52 -0
- package/dist/node_modules/tiny-case/index.js +33 -0
- package/dist/node_modules/tiny-warning/dist/tiny-warning.esm.js +16 -0
- package/dist/node_modules/to-camel-case/index.js +18 -0
- package/dist/node_modules/to-no-case/index.js +32 -0
- package/dist/node_modules/to-space-case/index.js +18 -0
- package/dist/node_modules/toggle-selection/index.js +42 -0
- package/dist/node_modules/toposort/index.js +79 -0
- package/dist/node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.browser.esm.js +5 -0
- package/dist/node_modules/yup/index.esm.js +1921 -0
- package/dist/routing/RouterWrapper.js +1 -1
- package/dist/styles/global.js +2 -2
- package/dist/utils/copyToClipboard.js +7 -7
- package/dist/utils/delete-redirect-cookie-and-navigate.js +3 -3
- package/dist/utils/moment.js +2 -3
- package/dist/utils/redirect-url.js +2 -2
- package/dist/utils/set-redirect-cookie.js +2 -2
- package/dist/utils/transition.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,609 @@
|
|
|
1
|
+
import { ComponentContainer, Component } from "../../../component/dist/esm/index.esm.js";
|
|
2
|
+
import { Logger } from "../../../logger/dist/esm/index.esm.js";
|
|
3
|
+
import { getDefaultAppConfig, ErrorFactory, deepEqual, base64urlEncodeWithoutPadding, isIndexedDBAvailable, validateIndexedDBOpenable, FirebaseError } from "../../../util/dist/index.esm.js";
|
|
4
|
+
import { openDB } from "../../../../idb/build/index.js";
|
|
5
|
+
class PlatformLoggerServiceImpl {
|
|
6
|
+
constructor(container) {
|
|
7
|
+
this.container = container;
|
|
8
|
+
}
|
|
9
|
+
// In initial implementation, this will be called by installations on
|
|
10
|
+
// auth token refresh, and installations will send this string.
|
|
11
|
+
getPlatformInfoString() {
|
|
12
|
+
const providers = this.container.getProviders();
|
|
13
|
+
return providers.map((provider) => {
|
|
14
|
+
if (isVersionServiceProvider(provider)) {
|
|
15
|
+
const service = provider.getImmediate();
|
|
16
|
+
return `${service.library}/${service.version}`;
|
|
17
|
+
} else {
|
|
18
|
+
return null;
|
|
19
|
+
}
|
|
20
|
+
}).filter((logString) => logString).join(" ");
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
function isVersionServiceProvider(provider) {
|
|
24
|
+
const component = provider.getComponent();
|
|
25
|
+
return component?.type === "VERSION";
|
|
26
|
+
}
|
|
27
|
+
const name$q = "@firebase/app";
|
|
28
|
+
const version$1 = "0.14.7";
|
|
29
|
+
const logger = new Logger("@firebase/app");
|
|
30
|
+
const name$p = "@firebase/app-compat";
|
|
31
|
+
const name$o = "@firebase/analytics-compat";
|
|
32
|
+
const name$n = "@firebase/analytics";
|
|
33
|
+
const name$m = "@firebase/app-check-compat";
|
|
34
|
+
const name$l = "@firebase/app-check";
|
|
35
|
+
const name$k = "@firebase/auth";
|
|
36
|
+
const name$j = "@firebase/auth-compat";
|
|
37
|
+
const name$i = "@firebase/database";
|
|
38
|
+
const name$h = "@firebase/data-connect";
|
|
39
|
+
const name$g = "@firebase/database-compat";
|
|
40
|
+
const name$f = "@firebase/functions";
|
|
41
|
+
const name$e = "@firebase/functions-compat";
|
|
42
|
+
const name$d = "@firebase/installations";
|
|
43
|
+
const name$c = "@firebase/installations-compat";
|
|
44
|
+
const name$b = "@firebase/messaging";
|
|
45
|
+
const name$a = "@firebase/messaging-compat";
|
|
46
|
+
const name$9 = "@firebase/performance";
|
|
47
|
+
const name$8 = "@firebase/performance-compat";
|
|
48
|
+
const name$7 = "@firebase/remote-config";
|
|
49
|
+
const name$6 = "@firebase/remote-config-compat";
|
|
50
|
+
const name$5 = "@firebase/storage";
|
|
51
|
+
const name$4 = "@firebase/storage-compat";
|
|
52
|
+
const name$3 = "@firebase/firestore";
|
|
53
|
+
const name$2 = "@firebase/ai";
|
|
54
|
+
const name$1 = "@firebase/firestore-compat";
|
|
55
|
+
const name = "firebase";
|
|
56
|
+
const version = "12.8.0";
|
|
57
|
+
const DEFAULT_ENTRY_NAME = "[DEFAULT]";
|
|
58
|
+
const PLATFORM_LOG_STRING = {
|
|
59
|
+
[name$q]: "fire-core",
|
|
60
|
+
[name$p]: "fire-core-compat",
|
|
61
|
+
[name$n]: "fire-analytics",
|
|
62
|
+
[name$o]: "fire-analytics-compat",
|
|
63
|
+
[name$l]: "fire-app-check",
|
|
64
|
+
[name$m]: "fire-app-check-compat",
|
|
65
|
+
[name$k]: "fire-auth",
|
|
66
|
+
[name$j]: "fire-auth-compat",
|
|
67
|
+
[name$i]: "fire-rtdb",
|
|
68
|
+
[name$h]: "fire-data-connect",
|
|
69
|
+
[name$g]: "fire-rtdb-compat",
|
|
70
|
+
[name$f]: "fire-fn",
|
|
71
|
+
[name$e]: "fire-fn-compat",
|
|
72
|
+
[name$d]: "fire-iid",
|
|
73
|
+
[name$c]: "fire-iid-compat",
|
|
74
|
+
[name$b]: "fire-fcm",
|
|
75
|
+
[name$a]: "fire-fcm-compat",
|
|
76
|
+
[name$9]: "fire-perf",
|
|
77
|
+
[name$8]: "fire-perf-compat",
|
|
78
|
+
[name$7]: "fire-rc",
|
|
79
|
+
[name$6]: "fire-rc-compat",
|
|
80
|
+
[name$5]: "fire-gcs",
|
|
81
|
+
[name$4]: "fire-gcs-compat",
|
|
82
|
+
[name$3]: "fire-fst",
|
|
83
|
+
[name$1]: "fire-fst-compat",
|
|
84
|
+
[name$2]: "fire-vertex",
|
|
85
|
+
"fire-js": "fire-js",
|
|
86
|
+
// Platform identifier for JS SDK.
|
|
87
|
+
[name]: "fire-js-all"
|
|
88
|
+
};
|
|
89
|
+
const _apps = /* @__PURE__ */ new Map();
|
|
90
|
+
const _serverApps = /* @__PURE__ */ new Map();
|
|
91
|
+
const _components = /* @__PURE__ */ new Map();
|
|
92
|
+
function _addComponent(app, component) {
|
|
93
|
+
try {
|
|
94
|
+
app.container.addComponent(component);
|
|
95
|
+
} catch (e) {
|
|
96
|
+
logger.debug(`Component ${component.name} failed to register with FirebaseApp ${app.name}`, e);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
function _registerComponent(component) {
|
|
100
|
+
const componentName = component.name;
|
|
101
|
+
if (_components.has(componentName)) {
|
|
102
|
+
logger.debug(`There were multiple attempts to register component ${componentName}.`);
|
|
103
|
+
return false;
|
|
104
|
+
}
|
|
105
|
+
_components.set(componentName, component);
|
|
106
|
+
for (const app of _apps.values()) {
|
|
107
|
+
_addComponent(app, component);
|
|
108
|
+
}
|
|
109
|
+
for (const serverApp of _serverApps.values()) {
|
|
110
|
+
_addComponent(serverApp, component);
|
|
111
|
+
}
|
|
112
|
+
return true;
|
|
113
|
+
}
|
|
114
|
+
function _getProvider(app, name2) {
|
|
115
|
+
const heartbeatController = app.container.getProvider("heartbeat").getImmediate({ optional: true });
|
|
116
|
+
if (heartbeatController) {
|
|
117
|
+
void heartbeatController.triggerHeartbeat();
|
|
118
|
+
}
|
|
119
|
+
return app.container.getProvider(name2);
|
|
120
|
+
}
|
|
121
|
+
function _isFirebaseServerApp(obj) {
|
|
122
|
+
if (obj === null || obj === void 0) {
|
|
123
|
+
return false;
|
|
124
|
+
}
|
|
125
|
+
return obj.settings !== void 0;
|
|
126
|
+
}
|
|
127
|
+
const ERRORS = {
|
|
128
|
+
[
|
|
129
|
+
"no-app"
|
|
130
|
+
/* AppError.NO_APP */
|
|
131
|
+
]: "No Firebase App '{$appName}' has been created - call initializeApp() first",
|
|
132
|
+
[
|
|
133
|
+
"bad-app-name"
|
|
134
|
+
/* AppError.BAD_APP_NAME */
|
|
135
|
+
]: "Illegal App name: '{$appName}'",
|
|
136
|
+
[
|
|
137
|
+
"duplicate-app"
|
|
138
|
+
/* AppError.DUPLICATE_APP */
|
|
139
|
+
]: "Firebase App named '{$appName}' already exists with different options or config",
|
|
140
|
+
[
|
|
141
|
+
"app-deleted"
|
|
142
|
+
/* AppError.APP_DELETED */
|
|
143
|
+
]: "Firebase App named '{$appName}' already deleted",
|
|
144
|
+
[
|
|
145
|
+
"server-app-deleted"
|
|
146
|
+
/* AppError.SERVER_APP_DELETED */
|
|
147
|
+
]: "Firebase Server App has been deleted",
|
|
148
|
+
[
|
|
149
|
+
"no-options"
|
|
150
|
+
/* AppError.NO_OPTIONS */
|
|
151
|
+
]: "Need to provide options, when not being deployed to hosting via source.",
|
|
152
|
+
[
|
|
153
|
+
"invalid-app-argument"
|
|
154
|
+
/* AppError.INVALID_APP_ARGUMENT */
|
|
155
|
+
]: "firebase.{$appName}() takes either no argument or a Firebase App instance.",
|
|
156
|
+
[
|
|
157
|
+
"invalid-log-argument"
|
|
158
|
+
/* AppError.INVALID_LOG_ARGUMENT */
|
|
159
|
+
]: "First argument to `onLog` must be null or a function.",
|
|
160
|
+
[
|
|
161
|
+
"idb-open"
|
|
162
|
+
/* AppError.IDB_OPEN */
|
|
163
|
+
]: "Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.",
|
|
164
|
+
[
|
|
165
|
+
"idb-get"
|
|
166
|
+
/* AppError.IDB_GET */
|
|
167
|
+
]: "Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.",
|
|
168
|
+
[
|
|
169
|
+
"idb-set"
|
|
170
|
+
/* AppError.IDB_WRITE */
|
|
171
|
+
]: "Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.",
|
|
172
|
+
[
|
|
173
|
+
"idb-delete"
|
|
174
|
+
/* AppError.IDB_DELETE */
|
|
175
|
+
]: "Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.",
|
|
176
|
+
[
|
|
177
|
+
"finalization-registry-not-supported"
|
|
178
|
+
/* AppError.FINALIZATION_REGISTRY_NOT_SUPPORTED */
|
|
179
|
+
]: "FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.",
|
|
180
|
+
[
|
|
181
|
+
"invalid-server-app-environment"
|
|
182
|
+
/* AppError.INVALID_SERVER_APP_ENVIRONMENT */
|
|
183
|
+
]: "FirebaseServerApp is not for use in browser environments."
|
|
184
|
+
};
|
|
185
|
+
const ERROR_FACTORY = new ErrorFactory("app", "Firebase", ERRORS);
|
|
186
|
+
class FirebaseAppImpl {
|
|
187
|
+
constructor(options, config, container) {
|
|
188
|
+
this._isDeleted = false;
|
|
189
|
+
this._options = { ...options };
|
|
190
|
+
this._config = { ...config };
|
|
191
|
+
this._name = config.name;
|
|
192
|
+
this._automaticDataCollectionEnabled = config.automaticDataCollectionEnabled;
|
|
193
|
+
this._container = container;
|
|
194
|
+
this.container.addComponent(new Component(
|
|
195
|
+
"app",
|
|
196
|
+
() => this,
|
|
197
|
+
"PUBLIC"
|
|
198
|
+
/* ComponentType.PUBLIC */
|
|
199
|
+
));
|
|
200
|
+
}
|
|
201
|
+
get automaticDataCollectionEnabled() {
|
|
202
|
+
this.checkDestroyed();
|
|
203
|
+
return this._automaticDataCollectionEnabled;
|
|
204
|
+
}
|
|
205
|
+
set automaticDataCollectionEnabled(val) {
|
|
206
|
+
this.checkDestroyed();
|
|
207
|
+
this._automaticDataCollectionEnabled = val;
|
|
208
|
+
}
|
|
209
|
+
get name() {
|
|
210
|
+
this.checkDestroyed();
|
|
211
|
+
return this._name;
|
|
212
|
+
}
|
|
213
|
+
get options() {
|
|
214
|
+
this.checkDestroyed();
|
|
215
|
+
return this._options;
|
|
216
|
+
}
|
|
217
|
+
get config() {
|
|
218
|
+
this.checkDestroyed();
|
|
219
|
+
return this._config;
|
|
220
|
+
}
|
|
221
|
+
get container() {
|
|
222
|
+
return this._container;
|
|
223
|
+
}
|
|
224
|
+
get isDeleted() {
|
|
225
|
+
return this._isDeleted;
|
|
226
|
+
}
|
|
227
|
+
set isDeleted(val) {
|
|
228
|
+
this._isDeleted = val;
|
|
229
|
+
}
|
|
230
|
+
/**
|
|
231
|
+
* This function will throw an Error if the App has already been deleted -
|
|
232
|
+
* use before performing API actions on the App.
|
|
233
|
+
*/
|
|
234
|
+
checkDestroyed() {
|
|
235
|
+
if (this.isDeleted) {
|
|
236
|
+
throw ERROR_FACTORY.create("app-deleted", { appName: this._name });
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
const SDK_VERSION = version;
|
|
241
|
+
function initializeApp(_options, rawConfig = {}) {
|
|
242
|
+
let options = _options;
|
|
243
|
+
if (typeof rawConfig !== "object") {
|
|
244
|
+
const name3 = rawConfig;
|
|
245
|
+
rawConfig = { name: name3 };
|
|
246
|
+
}
|
|
247
|
+
const config = {
|
|
248
|
+
name: DEFAULT_ENTRY_NAME,
|
|
249
|
+
automaticDataCollectionEnabled: true,
|
|
250
|
+
...rawConfig
|
|
251
|
+
};
|
|
252
|
+
const name2 = config.name;
|
|
253
|
+
if (typeof name2 !== "string" || !name2) {
|
|
254
|
+
throw ERROR_FACTORY.create("bad-app-name", {
|
|
255
|
+
appName: String(name2)
|
|
256
|
+
});
|
|
257
|
+
}
|
|
258
|
+
options || (options = getDefaultAppConfig());
|
|
259
|
+
if (!options) {
|
|
260
|
+
throw ERROR_FACTORY.create(
|
|
261
|
+
"no-options"
|
|
262
|
+
/* AppError.NO_OPTIONS */
|
|
263
|
+
);
|
|
264
|
+
}
|
|
265
|
+
const existingApp = _apps.get(name2);
|
|
266
|
+
if (existingApp) {
|
|
267
|
+
if (deepEqual(options, existingApp.options) && deepEqual(config, existingApp.config)) {
|
|
268
|
+
return existingApp;
|
|
269
|
+
} else {
|
|
270
|
+
throw ERROR_FACTORY.create("duplicate-app", { appName: name2 });
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
const container = new ComponentContainer(name2);
|
|
274
|
+
for (const component of _components.values()) {
|
|
275
|
+
container.addComponent(component);
|
|
276
|
+
}
|
|
277
|
+
const newApp = new FirebaseAppImpl(options, config, container);
|
|
278
|
+
_apps.set(name2, newApp);
|
|
279
|
+
return newApp;
|
|
280
|
+
}
|
|
281
|
+
function getApp(name2 = DEFAULT_ENTRY_NAME) {
|
|
282
|
+
const app = _apps.get(name2);
|
|
283
|
+
if (!app && name2 === DEFAULT_ENTRY_NAME && getDefaultAppConfig()) {
|
|
284
|
+
return initializeApp();
|
|
285
|
+
}
|
|
286
|
+
if (!app) {
|
|
287
|
+
throw ERROR_FACTORY.create("no-app", { appName: name2 });
|
|
288
|
+
}
|
|
289
|
+
return app;
|
|
290
|
+
}
|
|
291
|
+
function getApps() {
|
|
292
|
+
return Array.from(_apps.values());
|
|
293
|
+
}
|
|
294
|
+
function registerVersion(libraryKeyOrName, version2, variant) {
|
|
295
|
+
let library = PLATFORM_LOG_STRING[libraryKeyOrName] ?? libraryKeyOrName;
|
|
296
|
+
if (variant) {
|
|
297
|
+
library += `-${variant}`;
|
|
298
|
+
}
|
|
299
|
+
const libraryMismatch = library.match(/\s|\//);
|
|
300
|
+
const versionMismatch = version2.match(/\s|\//);
|
|
301
|
+
if (libraryMismatch || versionMismatch) {
|
|
302
|
+
const warning = [
|
|
303
|
+
`Unable to register library "${library}" with version "${version2}":`
|
|
304
|
+
];
|
|
305
|
+
if (libraryMismatch) {
|
|
306
|
+
warning.push(`library name "${library}" contains illegal characters (whitespace or "/")`);
|
|
307
|
+
}
|
|
308
|
+
if (libraryMismatch && versionMismatch) {
|
|
309
|
+
warning.push("and");
|
|
310
|
+
}
|
|
311
|
+
if (versionMismatch) {
|
|
312
|
+
warning.push(`version name "${version2}" contains illegal characters (whitespace or "/")`);
|
|
313
|
+
}
|
|
314
|
+
logger.warn(warning.join(" "));
|
|
315
|
+
return;
|
|
316
|
+
}
|
|
317
|
+
_registerComponent(new Component(
|
|
318
|
+
`${library}-version`,
|
|
319
|
+
() => ({ library, version: version2 }),
|
|
320
|
+
"VERSION"
|
|
321
|
+
/* ComponentType.VERSION */
|
|
322
|
+
));
|
|
323
|
+
}
|
|
324
|
+
const DB_NAME = "firebase-heartbeat-database";
|
|
325
|
+
const DB_VERSION = 1;
|
|
326
|
+
const STORE_NAME = "firebase-heartbeat-store";
|
|
327
|
+
let dbPromise = null;
|
|
328
|
+
function getDbPromise() {
|
|
329
|
+
if (!dbPromise) {
|
|
330
|
+
dbPromise = openDB(DB_NAME, DB_VERSION, {
|
|
331
|
+
upgrade: (db, oldVersion) => {
|
|
332
|
+
switch (oldVersion) {
|
|
333
|
+
case 0:
|
|
334
|
+
try {
|
|
335
|
+
db.createObjectStore(STORE_NAME);
|
|
336
|
+
} catch (e) {
|
|
337
|
+
console.warn(e);
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
}).catch((e) => {
|
|
342
|
+
throw ERROR_FACTORY.create("idb-open", {
|
|
343
|
+
originalErrorMessage: e.message
|
|
344
|
+
});
|
|
345
|
+
});
|
|
346
|
+
}
|
|
347
|
+
return dbPromise;
|
|
348
|
+
}
|
|
349
|
+
async function readHeartbeatsFromIndexedDB(app) {
|
|
350
|
+
try {
|
|
351
|
+
const db = await getDbPromise();
|
|
352
|
+
const tx = db.transaction(STORE_NAME);
|
|
353
|
+
const result = await tx.objectStore(STORE_NAME).get(computeKey(app));
|
|
354
|
+
await tx.done;
|
|
355
|
+
return result;
|
|
356
|
+
} catch (e) {
|
|
357
|
+
if (e instanceof FirebaseError) {
|
|
358
|
+
logger.warn(e.message);
|
|
359
|
+
} else {
|
|
360
|
+
const idbGetError = ERROR_FACTORY.create("idb-get", {
|
|
361
|
+
originalErrorMessage: e?.message
|
|
362
|
+
});
|
|
363
|
+
logger.warn(idbGetError.message);
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
async function writeHeartbeatsToIndexedDB(app, heartbeatObject) {
|
|
368
|
+
try {
|
|
369
|
+
const db = await getDbPromise();
|
|
370
|
+
const tx = db.transaction(STORE_NAME, "readwrite");
|
|
371
|
+
const objectStore = tx.objectStore(STORE_NAME);
|
|
372
|
+
await objectStore.put(heartbeatObject, computeKey(app));
|
|
373
|
+
await tx.done;
|
|
374
|
+
} catch (e) {
|
|
375
|
+
if (e instanceof FirebaseError) {
|
|
376
|
+
logger.warn(e.message);
|
|
377
|
+
} else {
|
|
378
|
+
const idbGetError = ERROR_FACTORY.create("idb-set", {
|
|
379
|
+
originalErrorMessage: e?.message
|
|
380
|
+
});
|
|
381
|
+
logger.warn(idbGetError.message);
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
function computeKey(app) {
|
|
386
|
+
return `${app.name}!${app.options.appId}`;
|
|
387
|
+
}
|
|
388
|
+
const MAX_HEADER_BYTES = 1024;
|
|
389
|
+
const MAX_NUM_STORED_HEARTBEATS = 30;
|
|
390
|
+
class HeartbeatServiceImpl {
|
|
391
|
+
constructor(container) {
|
|
392
|
+
this.container = container;
|
|
393
|
+
this._heartbeatsCache = null;
|
|
394
|
+
const app = this.container.getProvider("app").getImmediate();
|
|
395
|
+
this._storage = new HeartbeatStorageImpl(app);
|
|
396
|
+
this._heartbeatsCachePromise = this._storage.read().then((result) => {
|
|
397
|
+
this._heartbeatsCache = result;
|
|
398
|
+
return result;
|
|
399
|
+
});
|
|
400
|
+
}
|
|
401
|
+
/**
|
|
402
|
+
* Called to report a heartbeat. The function will generate
|
|
403
|
+
* a HeartbeatsByUserAgent object, update heartbeatsCache, and persist it
|
|
404
|
+
* to IndexedDB.
|
|
405
|
+
* Note that we only store one heartbeat per day. So if a heartbeat for today is
|
|
406
|
+
* already logged, subsequent calls to this function in the same day will be ignored.
|
|
407
|
+
*/
|
|
408
|
+
async triggerHeartbeat() {
|
|
409
|
+
try {
|
|
410
|
+
const platformLogger = this.container.getProvider("platform-logger").getImmediate();
|
|
411
|
+
const agent = platformLogger.getPlatformInfoString();
|
|
412
|
+
const date = getUTCDateString();
|
|
413
|
+
if (this._heartbeatsCache?.heartbeats == null) {
|
|
414
|
+
this._heartbeatsCache = await this._heartbeatsCachePromise;
|
|
415
|
+
if (this._heartbeatsCache?.heartbeats == null) {
|
|
416
|
+
return;
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
if (this._heartbeatsCache.lastSentHeartbeatDate === date || this._heartbeatsCache.heartbeats.some((singleDateHeartbeat) => singleDateHeartbeat.date === date)) {
|
|
420
|
+
return;
|
|
421
|
+
} else {
|
|
422
|
+
this._heartbeatsCache.heartbeats.push({ date, agent });
|
|
423
|
+
if (this._heartbeatsCache.heartbeats.length > MAX_NUM_STORED_HEARTBEATS) {
|
|
424
|
+
const earliestHeartbeatIdx = getEarliestHeartbeatIdx(this._heartbeatsCache.heartbeats);
|
|
425
|
+
this._heartbeatsCache.heartbeats.splice(earliestHeartbeatIdx, 1);
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
return this._storage.overwrite(this._heartbeatsCache);
|
|
429
|
+
} catch (e) {
|
|
430
|
+
logger.warn(e);
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
/**
|
|
434
|
+
* Returns a base64 encoded string which can be attached to the heartbeat-specific header directly.
|
|
435
|
+
* It also clears all heartbeats from memory as well as in IndexedDB.
|
|
436
|
+
*
|
|
437
|
+
* NOTE: Consuming product SDKs should not send the header if this method
|
|
438
|
+
* returns an empty string.
|
|
439
|
+
*/
|
|
440
|
+
async getHeartbeatsHeader() {
|
|
441
|
+
try {
|
|
442
|
+
if (this._heartbeatsCache === null) {
|
|
443
|
+
await this._heartbeatsCachePromise;
|
|
444
|
+
}
|
|
445
|
+
if (this._heartbeatsCache?.heartbeats == null || this._heartbeatsCache.heartbeats.length === 0) {
|
|
446
|
+
return "";
|
|
447
|
+
}
|
|
448
|
+
const date = getUTCDateString();
|
|
449
|
+
const { heartbeatsToSend, unsentEntries } = extractHeartbeatsForHeader(this._heartbeatsCache.heartbeats);
|
|
450
|
+
const headerString = base64urlEncodeWithoutPadding(JSON.stringify({ version: 2, heartbeats: heartbeatsToSend }));
|
|
451
|
+
this._heartbeatsCache.lastSentHeartbeatDate = date;
|
|
452
|
+
if (unsentEntries.length > 0) {
|
|
453
|
+
this._heartbeatsCache.heartbeats = unsentEntries;
|
|
454
|
+
await this._storage.overwrite(this._heartbeatsCache);
|
|
455
|
+
} else {
|
|
456
|
+
this._heartbeatsCache.heartbeats = [];
|
|
457
|
+
void this._storage.overwrite(this._heartbeatsCache);
|
|
458
|
+
}
|
|
459
|
+
return headerString;
|
|
460
|
+
} catch (e) {
|
|
461
|
+
logger.warn(e);
|
|
462
|
+
return "";
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
}
|
|
466
|
+
function getUTCDateString() {
|
|
467
|
+
const today = /* @__PURE__ */ new Date();
|
|
468
|
+
return today.toISOString().substring(0, 10);
|
|
469
|
+
}
|
|
470
|
+
function extractHeartbeatsForHeader(heartbeatsCache, maxSize = MAX_HEADER_BYTES) {
|
|
471
|
+
const heartbeatsToSend = [];
|
|
472
|
+
let unsentEntries = heartbeatsCache.slice();
|
|
473
|
+
for (const singleDateHeartbeat of heartbeatsCache) {
|
|
474
|
+
const heartbeatEntry = heartbeatsToSend.find((hb) => hb.agent === singleDateHeartbeat.agent);
|
|
475
|
+
if (!heartbeatEntry) {
|
|
476
|
+
heartbeatsToSend.push({
|
|
477
|
+
agent: singleDateHeartbeat.agent,
|
|
478
|
+
dates: [singleDateHeartbeat.date]
|
|
479
|
+
});
|
|
480
|
+
if (countBytes(heartbeatsToSend) > maxSize) {
|
|
481
|
+
heartbeatsToSend.pop();
|
|
482
|
+
break;
|
|
483
|
+
}
|
|
484
|
+
} else {
|
|
485
|
+
heartbeatEntry.dates.push(singleDateHeartbeat.date);
|
|
486
|
+
if (countBytes(heartbeatsToSend) > maxSize) {
|
|
487
|
+
heartbeatEntry.dates.pop();
|
|
488
|
+
break;
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
unsentEntries = unsentEntries.slice(1);
|
|
492
|
+
}
|
|
493
|
+
return {
|
|
494
|
+
heartbeatsToSend,
|
|
495
|
+
unsentEntries
|
|
496
|
+
};
|
|
497
|
+
}
|
|
498
|
+
class HeartbeatStorageImpl {
|
|
499
|
+
constructor(app) {
|
|
500
|
+
this.app = app;
|
|
501
|
+
this._canUseIndexedDBPromise = this.runIndexedDBEnvironmentCheck();
|
|
502
|
+
}
|
|
503
|
+
async runIndexedDBEnvironmentCheck() {
|
|
504
|
+
if (!isIndexedDBAvailable()) {
|
|
505
|
+
return false;
|
|
506
|
+
} else {
|
|
507
|
+
return validateIndexedDBOpenable().then(() => true).catch(() => false);
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
/**
|
|
511
|
+
* Read all heartbeats.
|
|
512
|
+
*/
|
|
513
|
+
async read() {
|
|
514
|
+
const canUseIndexedDB = await this._canUseIndexedDBPromise;
|
|
515
|
+
if (!canUseIndexedDB) {
|
|
516
|
+
return { heartbeats: [] };
|
|
517
|
+
} else {
|
|
518
|
+
const idbHeartbeatObject = await readHeartbeatsFromIndexedDB(this.app);
|
|
519
|
+
if (idbHeartbeatObject?.heartbeats) {
|
|
520
|
+
return idbHeartbeatObject;
|
|
521
|
+
} else {
|
|
522
|
+
return { heartbeats: [] };
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
}
|
|
526
|
+
// overwrite the storage with the provided heartbeats
|
|
527
|
+
async overwrite(heartbeatsObject) {
|
|
528
|
+
const canUseIndexedDB = await this._canUseIndexedDBPromise;
|
|
529
|
+
if (!canUseIndexedDB) {
|
|
530
|
+
return;
|
|
531
|
+
} else {
|
|
532
|
+
const existingHeartbeatsObject = await this.read();
|
|
533
|
+
return writeHeartbeatsToIndexedDB(this.app, {
|
|
534
|
+
lastSentHeartbeatDate: heartbeatsObject.lastSentHeartbeatDate ?? existingHeartbeatsObject.lastSentHeartbeatDate,
|
|
535
|
+
heartbeats: heartbeatsObject.heartbeats
|
|
536
|
+
});
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
// add heartbeats
|
|
540
|
+
async add(heartbeatsObject) {
|
|
541
|
+
const canUseIndexedDB = await this._canUseIndexedDBPromise;
|
|
542
|
+
if (!canUseIndexedDB) {
|
|
543
|
+
return;
|
|
544
|
+
} else {
|
|
545
|
+
const existingHeartbeatsObject = await this.read();
|
|
546
|
+
return writeHeartbeatsToIndexedDB(this.app, {
|
|
547
|
+
lastSentHeartbeatDate: heartbeatsObject.lastSentHeartbeatDate ?? existingHeartbeatsObject.lastSentHeartbeatDate,
|
|
548
|
+
heartbeats: [
|
|
549
|
+
...existingHeartbeatsObject.heartbeats,
|
|
550
|
+
...heartbeatsObject.heartbeats
|
|
551
|
+
]
|
|
552
|
+
});
|
|
553
|
+
}
|
|
554
|
+
}
|
|
555
|
+
}
|
|
556
|
+
function countBytes(heartbeatsCache) {
|
|
557
|
+
return base64urlEncodeWithoutPadding(
|
|
558
|
+
// heartbeatsCache wrapper properties
|
|
559
|
+
JSON.stringify({ version: 2, heartbeats: heartbeatsCache })
|
|
560
|
+
).length;
|
|
561
|
+
}
|
|
562
|
+
function getEarliestHeartbeatIdx(heartbeats) {
|
|
563
|
+
if (heartbeats.length === 0) {
|
|
564
|
+
return -1;
|
|
565
|
+
}
|
|
566
|
+
let earliestHeartbeatIdx = 0;
|
|
567
|
+
let earliestHeartbeatDate = heartbeats[0].date;
|
|
568
|
+
for (let i = 1; i < heartbeats.length; i++) {
|
|
569
|
+
if (heartbeats[i].date < earliestHeartbeatDate) {
|
|
570
|
+
earliestHeartbeatDate = heartbeats[i].date;
|
|
571
|
+
earliestHeartbeatIdx = i;
|
|
572
|
+
}
|
|
573
|
+
}
|
|
574
|
+
return earliestHeartbeatIdx;
|
|
575
|
+
}
|
|
576
|
+
function registerCoreComponents(variant) {
|
|
577
|
+
_registerComponent(new Component(
|
|
578
|
+
"platform-logger",
|
|
579
|
+
(container) => new PlatformLoggerServiceImpl(container),
|
|
580
|
+
"PRIVATE"
|
|
581
|
+
/* ComponentType.PRIVATE */
|
|
582
|
+
));
|
|
583
|
+
_registerComponent(new Component(
|
|
584
|
+
"heartbeat",
|
|
585
|
+
(container) => new HeartbeatServiceImpl(container),
|
|
586
|
+
"PRIVATE"
|
|
587
|
+
/* ComponentType.PRIVATE */
|
|
588
|
+
));
|
|
589
|
+
registerVersion(name$q, version$1, variant);
|
|
590
|
+
registerVersion(name$q, version$1, "esm2020");
|
|
591
|
+
registerVersion("fire-js", "");
|
|
592
|
+
}
|
|
593
|
+
registerCoreComponents("");
|
|
594
|
+
export {
|
|
595
|
+
FirebaseError,
|
|
596
|
+
SDK_VERSION,
|
|
597
|
+
DEFAULT_ENTRY_NAME as _DEFAULT_ENTRY_NAME,
|
|
598
|
+
_addComponent,
|
|
599
|
+
_apps,
|
|
600
|
+
_components,
|
|
601
|
+
_getProvider,
|
|
602
|
+
_isFirebaseServerApp,
|
|
603
|
+
_registerComponent,
|
|
604
|
+
_serverApps,
|
|
605
|
+
getApp,
|
|
606
|
+
getApps,
|
|
607
|
+
initializeApp,
|
|
608
|
+
registerVersion
|
|
609
|
+
};
|