@ape.swap/bonds-sdk 5.1.0 → 5.1.1-test.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/_commonjsHelpers.js +33 -0
- package/dist/_virtual/_commonjsHelpers.js.map +1 -0
- package/dist/_virtual/_nodeUtil.js +4 -0
- package/dist/_virtual/_nodeUtil.js.map +1 -0
- package/dist/_virtual/bn.js +4 -0
- package/dist/_virtual/bn.js.map +1 -0
- package/dist/_virtual/common.js +4 -0
- package/dist/_virtual/common.js.map +1 -0
- package/dist/_virtual/common2.js +4 -0
- package/dist/_virtual/common2.js.map +1 -0
- package/dist/_virtual/dom-to-image.js +4 -0
- package/dist/_virtual/dom-to-image.js.map +1 -0
- package/dist/_virtual/hash.js +4 -0
- package/dist/_virtual/hash.js.map +1 -0
- package/dist/_virtual/index.js +4 -0
- package/dist/_virtual/index.js.map +1 -0
- package/dist/_virtual/index2.js +4 -0
- package/dist/_virtual/index2.js.map +1 -0
- package/dist/_virtual/index3.js +4 -0
- package/dist/_virtual/index3.js.map +1 -0
- package/dist/_virtual/index4.js +4 -0
- package/dist/_virtual/index4.js.map +1 -0
- package/dist/_virtual/index5.js +4 -0
- package/dist/_virtual/index5.js.map +1 -0
- package/dist/_virtual/index6.js +4 -0
- package/dist/_virtual/index6.js.map +1 -0
- package/dist/_virtual/inherits.js +4 -0
- package/dist/_virtual/inherits.js.map +1 -0
- package/dist/_virtual/inherits_browser.js +4 -0
- package/dist/_virtual/inherits_browser.js.map +1 -0
- package/dist/_virtual/isBuffer.js +4 -0
- package/dist/_virtual/isBuffer.js.map +1 -0
- package/dist/_virtual/jsx-runtime.js +4 -0
- package/dist/_virtual/jsx-runtime.js.map +1 -0
- package/dist/_virtual/main.js +4 -0
- package/dist/_virtual/main.js.map +1 -0
- package/dist/_virtual/react-is.development.js +4 -0
- package/dist/_virtual/react-is.development.js.map +1 -0
- package/dist/_virtual/react-is.production.min.js +4 -0
- package/dist/_virtual/react-is.production.min.js.map +1 -0
- package/dist/_virtual/react-jsx-runtime.development.js +4 -0
- package/dist/_virtual/react-jsx-runtime.development.js.map +1 -0
- package/dist/_virtual/react-jsx-runtime.production.min.js +4 -0
- package/dist/_virtual/react-jsx-runtime.production.min.js.map +1 -0
- package/dist/_virtual/ripemd.js +4 -0
- package/dist/_virtual/ripemd.js.map +1 -0
- package/dist/_virtual/sha.js +4 -0
- package/dist/_virtual/sha.js.map +1 -0
- package/dist/_virtual/sha3.js +4 -0
- package/dist/_virtual/sha3.js.map +1 -0
- package/dist/_virtual/tslib.es6.js +7 -0
- package/dist/_virtual/tslib.es6.js.map +1 -0
- package/dist/_virtual/types.js +4 -0
- package/dist/_virtual/types.js.map +1 -0
- package/dist/_virtual/util.js +4 -0
- package/dist/_virtual/util.js.map +1 -0
- package/dist/_virtual/utils.js +4 -0
- package/dist/_virtual/utils.js.map +1 -0
- package/dist/_virtual/zapTokens.js +4 -0
- package/dist/_virtual/zapTokens.js.map +1 -0
- package/dist/components/BondFilters/BondFilters.js +41 -0
- package/dist/components/BondFilters/BondFilters.js.map +1 -0
- package/dist/components/ChainOptionList/ChainOptionsButtons.js +32 -0
- package/dist/components/ChainOptionList/ChainOptionsButtons.js.map +1 -0
- package/dist/components/ChainOptionList/ChainOptionsList.js +41 -0
- package/dist/components/ChainOptionList/ChainOptionsList.js.map +1 -0
- package/dist/components/ChainOptionList/constants.js +11 -0
- package/dist/components/ChainOptionList/constants.js.map +1 -0
- package/dist/components/ChainOptionList/styles.js +54 -0
- package/dist/components/ChainOptionList/styles.js.map +1 -0
- package/dist/components/ConnectButton/AppKitButton.js +23 -0
- package/dist/components/ConnectButton/AppKitButton.js.map +1 -0
- package/dist/components/ConnectButton/RainbowKitButton.js +36 -0
- package/dist/components/ConnectButton/RainbowKitButton.js.map +1 -0
- package/dist/components/ConnectButton/index.js +27 -0
- package/dist/components/ConnectButton/index.js.map +1 -0
- package/dist/components/ConnectSolanaWalletButton/ConnectSolanaWalletButton.js +42 -0
- package/dist/components/ConnectSolanaWalletButton/ConnectSolanaWalletButton.js.map +1 -0
- package/dist/components/ConnectoToVmBanners/ConnectToEvmBanner.js +67 -0
- package/dist/components/ConnectoToVmBanners/ConnectToEvmBanner.js.map +1 -0
- package/dist/components/ConnectoToVmBanners/ConnectToSolanaBanner.js +64 -0
- package/dist/components/ConnectoToVmBanners/ConnectToSolanaBanner.js.map +1 -0
- package/dist/components/CustomClaimModals/AbondModal.js +28 -0
- package/dist/components/CustomClaimModals/AbondModal.js.map +1 -0
- package/dist/components/CustomClaimModals/OabondModal.js +28 -0
- package/dist/components/CustomClaimModals/OabondModal.js.map +1 -0
- package/dist/components/CustomClaimModals/PmusdModal.js +31 -0
- package/dist/components/CustomClaimModals/PmusdModal.js.map +1 -0
- package/dist/components/FavIcons/AddFavToken.js +37 -0
- package/dist/components/FavIcons/AddFavToken.js.map +1 -0
- package/dist/components/FavIcons/FavFilter.js +32 -0
- package/dist/components/FavIcons/FavFilter.js.map +1 -0
- package/dist/components/LoadingSpinner/index.js +51 -0
- package/dist/components/LoadingSpinner/index.js.map +1 -0
- package/dist/components/MenuSelect/MenuSelect.js +32 -0
- package/dist/components/MenuSelect/MenuSelect.js.map +1 -0
- package/dist/components/MenuSelect/RecommendationSelector.js +58 -0
- package/dist/components/MenuSelect/RecommendationSelector.js.map +1 -0
- package/dist/components/NetworkFilter/index.js +113 -0
- package/dist/components/NetworkFilter/index.js.map +1 -0
- package/dist/components/PlaceholderMonkey/index.js +29 -0
- package/dist/components/PlaceholderMonkey/index.js.map +1 -0
- package/dist/components/ProgressBar/ProgressBar.js +11 -0
- package/dist/components/ProgressBar/ProgressBar.js.map +1 -0
- package/dist/components/ProgressBar/ProgressBarWrapper.js +24 -0
- package/dist/components/ProgressBar/ProgressBarWrapper.js.map +1 -0
- package/dist/components/ProgressBar/styles.js +15 -0
- package/dist/components/ProgressBar/styles.js.map +1 -0
- package/dist/components/ProgressiveImage/index.js +44 -0
- package/dist/components/ProgressiveImage/index.js.map +1 -0
- package/dist/components/SafeHTMLComponent/index.js +31 -0
- package/dist/components/SafeHTMLComponent/index.js.map +1 -0
- package/dist/components/SlippageModal/index.js +73 -0
- package/dist/components/SlippageModal/index.js.map +1 -0
- package/dist/components/StepBubble/index.js +65 -0
- package/dist/components/StepBubble/index.js.map +1 -0
- package/dist/components/Toast/index.js +65 -0
- package/dist/components/Toast/index.js.map +1 -0
- package/dist/components/Toast/styles.js +30 -0
- package/dist/components/Toast/styles.js.map +1 -0
- package/dist/components/TokenInfoAndName/index.js +72 -0
- package/dist/components/TokenInfoAndName/index.js.map +1 -0
- package/dist/components/TokenSelectorModal/TokenRow.js +39 -0
- package/dist/components/TokenSelectorModal/TokenRow.js.map +1 -0
- package/dist/components/TokenSelectorModal/index.js +66 -0
- package/dist/components/TokenSelectorModal/index.js.map +1 -0
- package/dist/components/TokenSelectorPanel/index.js +67 -0
- package/dist/components/TokenSelectorPanel/index.js.map +1 -0
- package/dist/components/Tooltip/ButtonsRow.js +28 -0
- package/dist/components/Tooltip/ButtonsRow.js.map +1 -0
- package/dist/components/Tooltip/Tooltip.js +51 -0
- package/dist/components/Tooltip/Tooltip.js.map +1 -0
- package/dist/components/Tooltip/styles.js +32 -0
- package/dist/components/Tooltip/styles.js.map +1 -0
- package/dist/components/YouTooltip/YouTooltip.js +45 -0
- package/dist/components/YouTooltip/YouTooltip.js.map +1 -0
- package/dist/components/uikit-sdk/Button/Button.js +73 -0
- package/dist/components/uikit-sdk/Button/Button.js.map +1 -0
- package/dist/components/uikit-sdk/Button/IconButton.js +15 -0
- package/dist/components/uikit-sdk/Button/IconButton.js.map +1 -0
- package/dist/components/uikit-sdk/Button/styles.js +21 -0
- package/dist/components/uikit-sdk/Button/styles.js.map +1 -0
- package/dist/components/uikit-sdk/Button/types.js +39 -0
- package/dist/components/uikit-sdk/Button/types.js.map +1 -0
- package/dist/components/uikit-sdk/Checkbox/index.js +27 -0
- package/dist/components/uikit-sdk/Checkbox/index.js.map +1 -0
- package/dist/components/uikit-sdk/Checkbox/types.js +8 -0
- package/dist/components/uikit-sdk/Checkbox/types.js.map +1 -0
- package/dist/components/uikit-sdk/Flex/index.js +11 -0
- package/dist/components/uikit-sdk/Flex/index.js.map +1 -0
- package/dist/components/uikit-sdk/Input/Input.js +55 -0
- package/dist/components/uikit-sdk/Input/Input.js.map +1 -0
- package/dist/components/uikit-sdk/LoadingDots/index.js +42 -0
- package/dist/components/uikit-sdk/LoadingDots/index.js.map +1 -0
- package/dist/components/uikit-sdk/Modal/ModalHeader.js +15 -0
- package/dist/components/uikit-sdk/Modal/ModalHeader.js.map +1 -0
- package/dist/components/uikit-sdk/Modal/index.js +29 -0
- package/dist/components/uikit-sdk/Modal/index.js.map +1 -0
- package/dist/components/uikit-sdk/Modal/styles.js +47 -0
- package/dist/components/uikit-sdk/Modal/styles.js.map +1 -0
- package/dist/components/uikit-sdk/Select/Select.js +44 -0
- package/dist/components/uikit-sdk/Select/Select.js.map +1 -0
- package/dist/components/uikit-sdk/Select/SelectItem.js +22 -0
- package/dist/components/uikit-sdk/Select/SelectItem.js.map +1 -0
- package/dist/components/uikit-sdk/Select/styles.js +50 -0
- package/dist/components/uikit-sdk/Select/styles.js.map +1 -0
- package/dist/components/uikit-sdk/Select/types.js +39 -0
- package/dist/components/uikit-sdk/Select/types.js.map +1 -0
- package/dist/components/uikit-sdk/Skeleton/index.js +13 -0
- package/dist/components/uikit-sdk/Skeleton/index.js.map +1 -0
- package/dist/components/uikit-sdk/Skeleton/styles.js +43 -0
- package/dist/components/uikit-sdk/Skeleton/styles.js.map +1 -0
- package/dist/components/uikit-sdk/Skeleton/types.js +13 -0
- package/dist/components/uikit-sdk/Skeleton/types.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/AllChains.js +8 -0
- package/dist/components/uikit-sdk/Svg/Icons/AllChains.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/Arrow.js +18 -0
- package/dist/components/uikit-sdk/Svg/Icons/Arrow.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/Audit.js +18 -0
- package/dist/components/uikit-sdk/Svg/Icons/Audit.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/Caret.js +18 -0
- package/dist/components/uikit-sdk/Svg/Icons/Caret.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/Close.js +11 -0
- package/dist/components/uikit-sdk/Svg/Icons/Close.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/Cog.js +18 -0
- package/dist/components/uikit-sdk/Svg/Icons/Cog.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/CoinGecko.js +18 -0
- package/dist/components/uikit-sdk/Svg/Icons/CoinGecko.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/DexScreener.js +18 -0
- package/dist/components/uikit-sdk/Svg/Icons/DexScreener.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/Discord.js +18 -0
- package/dist/components/uikit-sdk/Svg/Icons/Discord.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/Error.js +18 -0
- package/dist/components/uikit-sdk/Svg/Icons/Error.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/Expand.js +18 -0
- package/dist/components/uikit-sdk/Svg/Icons/Expand.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/External.js +18 -0
- package/dist/components/uikit-sdk/Svg/Icons/External.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/Fire.js +8 -0
- package/dist/components/uikit-sdk/Svg/Icons/Fire.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/FirePink.js +8 -0
- package/dist/components/uikit-sdk/Svg/Icons/FirePink.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/Hamburger.js +18 -0
- package/dist/components/uikit-sdk/Svg/Icons/Hamburger.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/Insight.js +18 -0
- package/dist/components/uikit-sdk/Svg/Icons/Insight.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/Instagram.js +18 -0
- package/dist/components/uikit-sdk/Svg/Icons/Instagram.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/LineChart.js +8 -0
- package/dist/components/uikit-sdk/Svg/Icons/LineChart.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/Medium.js +18 -0
- package/dist/components/uikit-sdk/Svg/Icons/Medium.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/More.js +18 -0
- package/dist/components/uikit-sdk/Svg/Icons/More.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/PlaceholderMonkey.js +18 -0
- package/dist/components/uikit-sdk/Svg/Icons/PlaceholderMonkey.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/Question.js +8 -0
- package/dist/components/uikit-sdk/Svg/Icons/Question.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/QuestionCircle.js +18 -0
- package/dist/components/uikit-sdk/Svg/Icons/QuestionCircle.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/Reddit.js +18 -0
- package/dist/components/uikit-sdk/Svg/Icons/Reddit.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/Search.js +18 -0
- package/dist/components/uikit-sdk/Svg/Icons/Search.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/Sort.js +18 -0
- package/dist/components/uikit-sdk/Svg/Icons/Sort.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/Star.js +8 -0
- package/dist/components/uikit-sdk/Svg/Icons/Star.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/StarFilled.js +8 -0
- package/dist/components/uikit-sdk/Svg/Icons/StarFilled.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/Success.js +18 -0
- package/dist/components/uikit-sdk/Svg/Icons/Success.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/Tag.js +8 -0
- package/dist/components/uikit-sdk/Svg/Icons/Tag.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/Telegram.js +18 -0
- package/dist/components/uikit-sdk/Svg/Icons/Telegram.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/Tick.js +18 -0
- package/dist/components/uikit-sdk/Svg/Icons/Tick.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/Timer.js +8 -0
- package/dist/components/uikit-sdk/Svg/Icons/Timer.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/TurnArrow.js +8 -0
- package/dist/components/uikit-sdk/Svg/Icons/TurnArrow.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/Twitter.js +18 -0
- package/dist/components/uikit-sdk/Svg/Icons/Twitter.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/URL.js +18 -0
- package/dist/components/uikit-sdk/Svg/Icons/URL.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/Website.js +18 -0
- package/dist/components/uikit-sdk/Svg/Icons/Website.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/ZapArrow.js +18 -0
- package/dist/components/uikit-sdk/Svg/Icons/ZapArrow.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/Icons/ZapIcon.js +18 -0
- package/dist/components/uikit-sdk/Svg/Icons/ZapIcon.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/index.js +229 -0
- package/dist/components/uikit-sdk/Svg/index.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/styles.js +14 -0
- package/dist/components/uikit-sdk/Svg/styles.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/tokens/ARBITRUM.js +8 -0
- package/dist/components/uikit-sdk/Svg/tokens/ARBITRUM.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/tokens/AVAX.js +8 -0
- package/dist/components/uikit-sdk/Svg/tokens/AVAX.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/tokens/BASE.js +8 -0
- package/dist/components/uikit-sdk/Svg/tokens/BASE.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/tokens/BERA.js +8 -0
- package/dist/components/uikit-sdk/Svg/tokens/BERA.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/tokens/BLAST.js +8 -0
- package/dist/components/uikit-sdk/Svg/tokens/BLAST.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/tokens/BNB.js +8 -0
- package/dist/components/uikit-sdk/Svg/tokens/BNB.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/tokens/BSC.js +8 -0
- package/dist/components/uikit-sdk/Svg/tokens/BSC.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/tokens/CELO.js +8 -0
- package/dist/components/uikit-sdk/Svg/tokens/CELO.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/tokens/CRONOS.js +8 -0
- package/dist/components/uikit-sdk/Svg/tokens/CRONOS.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/tokens/CROSSFI.js +8 -0
- package/dist/components/uikit-sdk/Svg/tokens/CROSSFI.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/tokens/ETH.js +8 -0
- package/dist/components/uikit-sdk/Svg/tokens/ETH.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/tokens/FANTOM.js +8 -0
- package/dist/components/uikit-sdk/Svg/tokens/FANTOM.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/tokens/GNOSIS.js +8 -0
- package/dist/components/uikit-sdk/Svg/tokens/GNOSIS.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/tokens/GraphLinq.js +8 -0
- package/dist/components/uikit-sdk/Svg/tokens/GraphLinq.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/tokens/HYPEREVM.js +8 -0
- package/dist/components/uikit-sdk/Svg/tokens/HYPEREVM.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/tokens/INEVM.js +8 -0
- package/dist/components/uikit-sdk/Svg/tokens/INEVM.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/tokens/IOTA.js +8 -0
- package/dist/components/uikit-sdk/Svg/tokens/IOTA.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/tokens/KATANA.js +8 -0
- package/dist/components/uikit-sdk/Svg/tokens/KATANA.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/tokens/LIGHTLINK.js +8 -0
- package/dist/components/uikit-sdk/Svg/tokens/LIGHTLINK.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/tokens/LINEA.js +8 -0
- package/dist/components/uikit-sdk/Svg/tokens/LINEA.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/tokens/MEGAETH.js +8 -0
- package/dist/components/uikit-sdk/Svg/tokens/MEGAETH.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/tokens/MONAD.js +8 -0
- package/dist/components/uikit-sdk/Svg/tokens/MONAD.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/tokens/OKX.js +8 -0
- package/dist/components/uikit-sdk/Svg/tokens/OKX.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/tokens/OPTIMISM.js +10 -0
- package/dist/components/uikit-sdk/Svg/tokens/OPTIMISM.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/tokens/POLYGON.js +8 -0
- package/dist/components/uikit-sdk/Svg/tokens/POLYGON.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/tokens/POLYGONZK.js +8 -0
- package/dist/components/uikit-sdk/Svg/tokens/POLYGONZK.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/tokens/SOL.js +8 -0
- package/dist/components/uikit-sdk/Svg/tokens/SOL.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/tokens/SONIC.js +8 -0
- package/dist/components/uikit-sdk/Svg/tokens/SONIC.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/tokens/TLOS.js +8 -0
- package/dist/components/uikit-sdk/Svg/tokens/TLOS.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/tokens/UNICHAIN.js +8 -0
- package/dist/components/uikit-sdk/Svg/tokens/UNICHAIN.js.map +1 -0
- package/dist/components/uikit-sdk/Svg/types.js +86 -0
- package/dist/components/uikit-sdk/Svg/types.js.map +1 -0
- package/dist/components/uikit-sdk/SwiperDots/index.js +16 -0
- package/dist/components/uikit-sdk/SwiperDots/index.js.map +1 -0
- package/dist/components/uikit-sdk/TabNav/index.js +42 -0
- package/dist/components/uikit-sdk/TabNav/index.js.map +1 -0
- package/dist/components/uikit-sdk/Tag/ListTag.js +10 -0
- package/dist/components/uikit-sdk/Tag/ListTag.js.map +1 -0
- package/dist/components/uikit-sdk/Text/index.js +17 -0
- package/dist/components/uikit-sdk/Text/index.js.map +1 -0
- package/dist/components/uikit-sdk/Text/types.js +16 -0
- package/dist/components/uikit-sdk/Text/types.js.map +1 -0
- package/dist/components/uikit-sdk/Toggle/index.js +15 -0
- package/dist/components/uikit-sdk/Toggle/index.js.map +1 -0
- package/dist/components/uikit-sdk/Toggle/styles.js +22 -0
- package/dist/components/uikit-sdk/Toggle/styles.js.map +1 -0
- package/dist/components/uikit-sdk/TokenImage/index.js +73 -0
- package/dist/components/uikit-sdk/TokenImage/index.js.map +1 -0
- package/dist/components/uikit-sdk/TooltipBubble/index.js +57 -0
- package/dist/components/uikit-sdk/TooltipBubble/index.js.map +1 -0
- package/dist/components/uikit-sdk/TooltipBubble/styles.js +55 -0
- package/dist/components/uikit-sdk/TooltipBubble/styles.js.map +1 -0
- package/dist/components/uikit-sdk/TooltipBubble/types.js +12 -0
- package/dist/components/uikit-sdk/TooltipBubble/types.js.map +1 -0
- package/dist/config/abi/BOND_2_0_0.json.js +1079 -0
- package/dist/config/abi/BOND_2_0_0.json.js.map +1 -0
- package/dist/config/abi/BOND_2_4_0.json.js +2409 -0
- package/dist/config/abi/BOND_2_4_0.json.js.map +1 -0
- package/dist/config/abi/bondNft.json.js +959 -0
- package/dist/config/abi/bondNft.json.js.map +1 -0
- package/dist/config/abi/deposit.json.js +29 -0
- package/dist/config/abi/deposit.json.js.map +1 -0
- package/dist/config/abi/depositSig.json.js +39 -0
- package/dist/config/abi/depositSig.json.js.map +1 -0
- package/dist/config/abi/erc20.json.js +229 -0
- package/dist/config/abi/erc20.json.js.map +1 -0
- package/dist/config/abi/launchBond_v2_4_1.json.js +2358 -0
- package/dist/config/abi/launchBond_v2_4_1.json.js.map +1 -0
- package/dist/config/abi/lensContract.json.js +338 -0
- package/dist/config/abi/lensContract.json.js.map +1 -0
- package/dist/config/abi/multicallv2.json.js +151 -0
- package/dist/config/abi/multicallv2.json.js.map +1 -0
- package/dist/config/abi/usdtETH.json.js +704 -0
- package/dist/config/abi/usdtETH.json.js.map +1 -0
- package/dist/config/constants/addresses.js +50 -0
- package/dist/config/constants/addresses.js.map +1 -0
- package/dist/config/constants/chains.js +139 -0
- package/dist/config/constants/chains.js.map +1 -0
- package/dist/config/constants/networks.js +89 -0
- package/dist/config/constants/networks.js.map +1 -0
- package/dist/config/constants/queryKeys.js +29 -0
- package/dist/config/constants/queryKeys.js.map +1 -0
- package/dist/config/constants/tooltips.js +20 -0
- package/dist/config/constants/tooltips.js.map +1 -0
- package/dist/config/constants/variables.js +42 -0
- package/dist/config/constants/variables.js.map +1 -0
- package/dist/config/idl/solanaProgramIdl.json.js +6 -0
- package/dist/config/idl/solanaProgramIdl.json.js.map +1 -0
- package/dist/constants/solanaConstants.js +41 -0
- package/dist/constants/solanaConstants.js.map +1 -0
- package/dist/contexts/ModalContext.js +72 -0
- package/dist/contexts/ModalContext.js.map +1 -0
- package/dist/contexts/Popups.js +29 -0
- package/dist/contexts/Popups.js.map +1 -0
- package/dist/contexts/SwiperProvider.js +21 -0
- package/dist/contexts/SwiperProvider.js.map +1 -0
- package/dist/hooks/accounts/useEVMAccount.js +13 -0
- package/dist/hooks/accounts/useEVMAccount.js.map +1 -0
- package/dist/hooks/accounts/useSOLAccount.js +17 -0
- package/dist/hooks/accounts/useSOLAccount.js.map +1 -0
- package/dist/hooks/useDebounce.js +21 -0
- package/dist/hooks/useDebounce.js.map +1 -0
- package/dist/hooks/useIsMobile.js +22 -0
- package/dist/hooks/useIsMobile.js.map +1 -0
- package/dist/hooks/useModal.js +34 -0
- package/dist/hooks/useModal.js.map +1 -0
- package/dist/hooks/useMonitorTx.js +26 -0
- package/dist/hooks/useMonitorTx.js.map +1 -0
- package/dist/hooks/useSendReferenceId.js +22 -0
- package/dist/hooks/useSendReferenceId.js.map +1 -0
- package/dist/hooks/useSortedZapList.js +56 -0
- package/dist/hooks/useSortedZapList.js.map +1 -0
- package/dist/hooks/useSwiper.js +13 -0
- package/dist/hooks/useSwiper.js.map +1 -0
- package/dist/hooks/useTokenFromZapList.js +15 -0
- package/dist/hooks/useTokenFromZapList.js.map +1 -0
- package/dist/hooks/useTopTags.js +47 -0
- package/dist/hooks/useTopTags.js.map +1 -0
- package/dist/main.d.ts +23 -0
- package/dist/main.js +18 -89923
- package/dist/main.js.map +1 -0
- package/dist/node_modules/@ape.swap/apeswap-lists/lib/constants/zapTokens.js +698 -0
- package/dist/node_modules/@ape.swap/apeswap-lists/lib/constants/zapTokens.js.map +1 -0
- package/dist/node_modules/@ape.swap/apeswap-lists/lib/main.js +27 -0
- package/dist/node_modules/@ape.swap/apeswap-lists/lib/main.js.map +1 -0
- package/dist/node_modules/@ape.swap/apeswap-lists/lib/types/index.js +1078 -0
- package/dist/node_modules/@ape.swap/apeswap-lists/lib/types/index.js.map +1 -0
- package/dist/node_modules/@emotion/cache/dist/emotion-cache.esm.js +500 -0
- package/dist/node_modules/@emotion/cache/dist/emotion-cache.esm.js.map +1 -0
- package/dist/node_modules/@emotion/hash/dist/emotion-hash.esm.js +56 -0
- package/dist/node_modules/@emotion/hash/dist/emotion-hash.esm.js.map +1 -0
- package/dist/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js +10 -0
- package/dist/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js.map +1 -0
- package/dist/node_modules/@emotion/react/dist/emotion-element-d59e098f.esm.js +152 -0
- package/dist/node_modules/@emotion/react/dist/emotion-element-d59e098f.esm.js.map +1 -0
- package/dist/node_modules/@emotion/react/dist/emotion-react.esm.js +153 -0
- package/dist/node_modules/@emotion/react/dist/emotion-react.esm.js.map +1 -0
- package/dist/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.esm.js +22 -0
- package/dist/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.esm.js.map +1 -0
- package/dist/node_modules/@emotion/react/package.json.js +6 -0
- package/dist/node_modules/@emotion/react/package.json.js.map +1 -0
- package/dist/node_modules/@emotion/serialize/dist/emotion-serialize.esm.js +225 -0
- package/dist/node_modules/@emotion/serialize/dist/emotion-serialize.esm.js.map +1 -0
- package/dist/node_modules/@emotion/sheet/dist/emotion-sheet.esm.js +139 -0
- package/dist/node_modules/@emotion/sheet/dist/emotion-sheet.esm.js.map +1 -0
- package/dist/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js +53 -0
- package/dist/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js.map +1 -0
- package/dist/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.esm.js +14 -0
- package/dist/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.esm.js.map +1 -0
- package/dist/node_modules/@emotion/utils/dist/emotion-utils.esm.js +55 -0
- package/dist/node_modules/@emotion/utils/dist/emotion-utils.esm.js.map +1 -0
- package/dist/node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.js +17 -0
- package/dist/node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.js.map +1 -0
- package/dist/node_modules/@ethersproject/abi/lib.esm/_version.js +4 -0
- package/dist/node_modules/@ethersproject/abi/lib.esm/_version.js.map +1 -0
- package/dist/node_modules/@ethersproject/abi/lib.esm/abi-coder.js +97 -0
- package/dist/node_modules/@ethersproject/abi/lib.esm/abi-coder.js.map +1 -0
- package/dist/node_modules/@ethersproject/abi/lib.esm/coders/abstract-coder.js +149 -0
- package/dist/node_modules/@ethersproject/abi/lib.esm/coders/abstract-coder.js.map +1 -0
- package/dist/node_modules/@ethersproject/abi/lib.esm/coders/address.js +27 -0
- package/dist/node_modules/@ethersproject/abi/lib.esm/coders/address.js.map +1 -0
- package/dist/node_modules/@ethersproject/abi/lib.esm/coders/anonymous.js +21 -0
- package/dist/node_modules/@ethersproject/abi/lib.esm/coders/anonymous.js.map +1 -0
- package/dist/node_modules/@ethersproject/abi/lib.esm/coders/array.js +211 -0
- package/dist/node_modules/@ethersproject/abi/lib.esm/coders/array.js.map +1 -0
- package/dist/node_modules/@ethersproject/abi/lib.esm/coders/boolean.js +19 -0
- package/dist/node_modules/@ethersproject/abi/lib.esm/coders/boolean.js.map +1 -0
- package/dist/node_modules/@ethersproject/abi/lib.esm/coders/bytes.js +31 -0
- package/dist/node_modules/@ethersproject/abi/lib.esm/coders/bytes.js.map +1 -0
- package/dist/node_modules/@ethersproject/abi/lib.esm/coders/fixed-bytes.js +27 -0
- package/dist/node_modules/@ethersproject/abi/lib.esm/coders/fixed-bytes.js.map +1 -0
- package/dist/node_modules/@ethersproject/abi/lib.esm/coders/null.js +23 -0
- package/dist/node_modules/@ethersproject/abi/lib.esm/coders/null.js.map +1 -0
- package/dist/node_modules/@ethersproject/abi/lib.esm/coders/number.js +44 -0
- package/dist/node_modules/@ethersproject/abi/lib.esm/coders/number.js.map +1 -0
- package/dist/node_modules/@ethersproject/abi/lib.esm/coders/string.js +20 -0
- package/dist/node_modules/@ethersproject/abi/lib.esm/coders/string.js.map +1 -0
- package/dist/node_modules/@ethersproject/abi/lib.esm/coders/tuple.js +59 -0
- package/dist/node_modules/@ethersproject/abi/lib.esm/coders/tuple.js.map +1 -0
- package/dist/node_modules/@ethersproject/abi/lib.esm/fragments.js +855 -0
- package/dist/node_modules/@ethersproject/abi/lib.esm/fragments.js.map +1 -0
- package/dist/node_modules/@ethersproject/abi/lib.esm/interface.js +610 -0
- package/dist/node_modules/@ethersproject/abi/lib.esm/interface.js.map +1 -0
- package/dist/node_modules/@ethersproject/abstract-provider/lib.esm/_version.js +4 -0
- package/dist/node_modules/@ethersproject/abstract-provider/lib.esm/_version.js.map +1 -0
- package/dist/node_modules/@ethersproject/abstract-provider/lib.esm/index.js +67 -0
- package/dist/node_modules/@ethersproject/abstract-provider/lib.esm/index.js.map +1 -0
- package/dist/node_modules/@ethersproject/abstract-signer/lib.esm/_version.js +4 -0
- package/dist/node_modules/@ethersproject/abstract-signer/lib.esm/_version.js.map +1 -0
- package/dist/node_modules/@ethersproject/abstract-signer/lib.esm/index.js +303 -0
- package/dist/node_modules/@ethersproject/abstract-signer/lib.esm/index.js.map +1 -0
- package/dist/node_modules/@ethersproject/address/lib.esm/_version.js +4 -0
- package/dist/node_modules/@ethersproject/address/lib.esm/_version.js.map +1 -0
- package/dist/node_modules/@ethersproject/address/lib.esm/index.js +111 -0
- package/dist/node_modules/@ethersproject/address/lib.esm/index.js.map +1 -0
- package/dist/node_modules/@ethersproject/base64/lib.esm/base64.js +21 -0
- package/dist/node_modules/@ethersproject/base64/lib.esm/base64.js.map +1 -0
- package/dist/node_modules/@ethersproject/basex/lib.esm/index.js +121 -0
- package/dist/node_modules/@ethersproject/basex/lib.esm/index.js.map +1 -0
- package/dist/node_modules/@ethersproject/bignumber/lib.esm/_version.js +4 -0
- package/dist/node_modules/@ethersproject/bignumber/lib.esm/_version.js.map +1 -0
- package/dist/node_modules/@ethersproject/bignumber/lib.esm/bignumber.js +296 -0
- package/dist/node_modules/@ethersproject/bignumber/lib.esm/bignumber.js.map +1 -0
- package/dist/node_modules/@ethersproject/bignumber/lib.esm/fixednumber.js +361 -0
- package/dist/node_modules/@ethersproject/bignumber/lib.esm/fixednumber.js.map +1 -0
- package/dist/node_modules/@ethersproject/bytes/lib.esm/_version.js +4 -0
- package/dist/node_modules/@ethersproject/bytes/lib.esm/_version.js.map +1 -0
- package/dist/node_modules/@ethersproject/bytes/lib.esm/index.js +403 -0
- package/dist/node_modules/@ethersproject/bytes/lib.esm/index.js.map +1 -0
- package/dist/node_modules/@ethersproject/constants/lib.esm/addresses.js +4 -0
- package/dist/node_modules/@ethersproject/constants/lib.esm/addresses.js.map +1 -0
- package/dist/node_modules/@ethersproject/constants/lib.esm/bignumbers.js +9 -0
- package/dist/node_modules/@ethersproject/constants/lib.esm/bignumbers.js.map +1 -0
- package/dist/node_modules/@ethersproject/constants/lib.esm/hashes.js +4 -0
- package/dist/node_modules/@ethersproject/constants/lib.esm/hashes.js.map +1 -0
- package/dist/node_modules/@ethersproject/contracts/lib.esm/_version.js +4 -0
- package/dist/node_modules/@ethersproject/contracts/lib.esm/_version.js.map +1 -0
- package/dist/node_modules/@ethersproject/contracts/lib.esm/index.js +894 -0
- package/dist/node_modules/@ethersproject/contracts/lib.esm/index.js.map +1 -0
- package/dist/node_modules/@ethersproject/hash/lib.esm/_version.js +4 -0
- package/dist/node_modules/@ethersproject/hash/lib.esm/_version.js.map +1 -0
- package/dist/node_modules/@ethersproject/hash/lib.esm/ens-normalize/decoder.js +257 -0
- package/dist/node_modules/@ethersproject/hash/lib.esm/ens-normalize/decoder.js.map +1 -0
- package/dist/node_modules/@ethersproject/hash/lib.esm/ens-normalize/include.js +37 -0
- package/dist/node_modules/@ethersproject/hash/lib.esm/ens-normalize/include.js.map +1 -0
- package/dist/node_modules/@ethersproject/hash/lib.esm/ens-normalize/lib.js +136 -0
- package/dist/node_modules/@ethersproject/hash/lib.esm/ens-normalize/lib.js.map +1 -0
- package/dist/node_modules/@ethersproject/hash/lib.esm/id.js +9 -0
- package/dist/node_modules/@ethersproject/hash/lib.esm/id.js.map +1 -0
- package/dist/node_modules/@ethersproject/hash/lib.esm/namehash.js +65 -0
- package/dist/node_modules/@ethersproject/hash/lib.esm/namehash.js.map +1 -0
- package/dist/node_modules/@ethersproject/hash/lib.esm/typed-data.js +444 -0
- package/dist/node_modules/@ethersproject/hash/lib.esm/typed-data.js.map +1 -0
- package/dist/node_modules/@ethersproject/keccak256/lib.esm/index.js +9 -0
- package/dist/node_modules/@ethersproject/keccak256/lib.esm/index.js.map +1 -0
- package/dist/node_modules/@ethersproject/logger/lib.esm/_version.js +4 -0
- package/dist/node_modules/@ethersproject/logger/lib.esm/_version.js.map +1 -0
- package/dist/node_modules/@ethersproject/logger/lib.esm/index.js +353 -0
- package/dist/node_modules/@ethersproject/logger/lib.esm/index.js.map +1 -0
- package/dist/node_modules/@ethersproject/networks/lib.esm/_version.js +4 -0
- package/dist/node_modules/@ethersproject/networks/lib.esm/_version.js.map +1 -0
- package/dist/node_modules/@ethersproject/networks/lib.esm/index.js +267 -0
- package/dist/node_modules/@ethersproject/networks/lib.esm/index.js.map +1 -0
- package/dist/node_modules/@ethersproject/properties/lib.esm/_version.js +4 -0
- package/dist/node_modules/@ethersproject/properties/lib.esm/_version.js.map +1 -0
- package/dist/node_modules/@ethersproject/properties/lib.esm/index.js +128 -0
- package/dist/node_modules/@ethersproject/properties/lib.esm/index.js.map +1 -0
- package/dist/node_modules/@ethersproject/providers/lib.esm/_version.js +4 -0
- package/dist/node_modules/@ethersproject/providers/lib.esm/_version.js.map +1 -0
- package/dist/node_modules/@ethersproject/providers/lib.esm/base-provider.js +2008 -0
- package/dist/node_modules/@ethersproject/providers/lib.esm/base-provider.js.map +1 -0
- package/dist/node_modules/@ethersproject/providers/lib.esm/formatter.js +423 -0
- package/dist/node_modules/@ethersproject/providers/lib.esm/formatter.js.map +1 -0
- package/dist/node_modules/@ethersproject/providers/lib.esm/json-rpc-provider.js +675 -0
- package/dist/node_modules/@ethersproject/providers/lib.esm/json-rpc-provider.js.map +1 -0
- package/dist/node_modules/@ethersproject/providers/node_modules/bech32/index.js +188 -0
- package/dist/node_modules/@ethersproject/providers/node_modules/bech32/index.js.map +1 -0
- package/dist/node_modules/@ethersproject/rlp/lib.esm/_version.js +4 -0
- package/dist/node_modules/@ethersproject/rlp/lib.esm/_version.js.map +1 -0
- package/dist/node_modules/@ethersproject/rlp/lib.esm/index.js +121 -0
- package/dist/node_modules/@ethersproject/rlp/lib.esm/index.js.map +1 -0
- package/dist/node_modules/@ethersproject/sha2/lib.esm/sha2.js +9 -0
- package/dist/node_modules/@ethersproject/sha2/lib.esm/sha2.js.map +1 -0
- package/dist/node_modules/@ethersproject/signing-key/lib.esm/_version.js +4 -0
- package/dist/node_modules/@ethersproject/signing-key/lib.esm/_version.js.map +1 -0
- package/dist/node_modules/@ethersproject/signing-key/lib.esm/elliptic.js +2479 -0
- package/dist/node_modules/@ethersproject/signing-key/lib.esm/elliptic.js.map +1 -0
- package/dist/node_modules/@ethersproject/signing-key/lib.esm/index.js +77 -0
- package/dist/node_modules/@ethersproject/signing-key/lib.esm/index.js.map +1 -0
- package/dist/node_modules/@ethersproject/strings/lib.esm/_version.js +4 -0
- package/dist/node_modules/@ethersproject/strings/lib.esm/_version.js.map +1 -0
- package/dist/node_modules/@ethersproject/strings/lib.esm/utf8.js +220 -0
- package/dist/node_modules/@ethersproject/strings/lib.esm/utf8.js.map +1 -0
- package/dist/node_modules/@ethersproject/transactions/lib.esm/_version.js +4 -0
- package/dist/node_modules/@ethersproject/transactions/lib.esm/_version.js.map +1 -0
- package/dist/node_modules/@ethersproject/transactions/lib.esm/index.js +280 -0
- package/dist/node_modules/@ethersproject/transactions/lib.esm/index.js.map +1 -0
- package/dist/node_modules/@ethersproject/units/lib.esm/_version.js +4 -0
- package/dist/node_modules/@ethersproject/units/lib.esm/_version.js.map +1 -0
- package/dist/node_modules/@ethersproject/units/lib.esm/index.js +29 -0
- package/dist/node_modules/@ethersproject/units/lib.esm/index.js.map +1 -0
- package/dist/node_modules/@ethersproject/web/lib.esm/_version.js +4 -0
- package/dist/node_modules/@ethersproject/web/lib.esm/_version.js.map +1 -0
- package/dist/node_modules/@ethersproject/web/lib.esm/geturl.js +70 -0
- package/dist/node_modules/@ethersproject/web/lib.esm/geturl.js.map +1 -0
- package/dist/node_modules/@ethersproject/web/lib.esm/index.js +405 -0
- package/dist/node_modules/@ethersproject/web/lib.esm/index.js.map +1 -0
- package/dist/node_modules/@jup-ag/api/dist/index.js +792 -0
- package/dist/node_modules/@jup-ag/api/dist/index.js.map +1 -0
- package/dist/node_modules/@kurkle/color/dist/color.esm.js +583 -0
- package/dist/node_modules/@kurkle/color/dist/color.esm.js.map +1 -0
- package/dist/node_modules/@theme-ui/color-modes/dist/theme-ui-color-modes.esm.js +382 -0
- package/dist/node_modules/@theme-ui/color-modes/dist/theme-ui-color-modes.esm.js.map +1 -0
- package/dist/node_modules/@theme-ui/components/dist/theme-ui-components.esm.js +322 -0
- package/dist/node_modules/@theme-ui/components/dist/theme-ui-components.esm.js.map +1 -0
- package/dist/node_modules/@theme-ui/core/dist/parseProps-eab0b26e.esm.js +20 -0
- package/dist/node_modules/@theme-ui/core/dist/parseProps-eab0b26e.esm.js.map +1 -0
- package/dist/node_modules/@theme-ui/core/dist/theme-ui-core.esm.js +76 -0
- package/dist/node_modules/@theme-ui/core/dist/theme-ui-core.esm.js.map +1 -0
- package/dist/node_modules/@theme-ui/core/jsx-runtime/dist/theme-ui-core-jsx-runtime.esm.js +9 -0
- package/dist/node_modules/@theme-ui/core/jsx-runtime/dist/theme-ui-core-jsx-runtime.esm.js.map +1 -0
- package/dist/node_modules/@theme-ui/css/dist/theme-ui-css.esm.js +331 -0
- package/dist/node_modules/@theme-ui/css/dist/theme-ui-css.esm.js.map +1 -0
- package/dist/node_modules/@theme-ui/theme-provider/dist/theme-ui-theme-provider.esm.js +46 -0
- package/dist/node_modules/@theme-ui/theme-provider/dist/theme-ui-theme-provider.esm.js.map +1 -0
- package/dist/node_modules/available-typed-arrays/index.js +30 -0
- package/dist/node_modules/available-typed-arrays/index.js.map +1 -0
- package/dist/node_modules/base64-js/index.js +153 -0
- package/dist/node_modules/base64-js/index.js.map +1 -0
- package/dist/node_modules/bignumber.js/bignumber.js +2908 -0
- package/dist/node_modules/bignumber.js/bignumber.js.map +1 -0
- package/dist/node_modules/bn.js/lib/bn.js +3364 -0
- package/dist/node_modules/bn.js/lib/bn.js.map +1 -0
- package/dist/node_modules/buffer/index.js +2111 -0
- package/dist/node_modules/buffer/index.js.map +1 -0
- package/dist/node_modules/call-bind/index.js +41 -0
- package/dist/node_modules/call-bind/index.js.map +1 -0
- package/dist/node_modules/call-bind-apply-helpers/actualApply.js +25 -0
- package/dist/node_modules/call-bind-apply-helpers/actualApply.js.map +1 -0
- package/dist/node_modules/call-bind-apply-helpers/applyBind.js +24 -0
- package/dist/node_modules/call-bind-apply-helpers/applyBind.js.map +1 -0
- package/dist/node_modules/call-bind-apply-helpers/functionApply.js +14 -0
- package/dist/node_modules/call-bind-apply-helpers/functionApply.js.map +1 -0
- package/dist/node_modules/call-bind-apply-helpers/functionCall.js +14 -0
- package/dist/node_modules/call-bind-apply-helpers/functionCall.js.map +1 -0
- package/dist/node_modules/call-bind-apply-helpers/index.js +30 -0
- package/dist/node_modules/call-bind-apply-helpers/index.js.map +1 -0
- package/dist/node_modules/call-bind-apply-helpers/reflectApply.js +14 -0
- package/dist/node_modules/call-bind-apply-helpers/reflectApply.js.map +1 -0
- package/dist/node_modules/call-bound/index.js +32 -0
- package/dist/node_modules/call-bound/index.js.map +1 -0
- package/dist/node_modules/chart.js/dist/chart.js +8079 -0
- package/dist/node_modules/chart.js/dist/chart.js.map +1 -0
- package/dist/node_modules/chart.js/dist/chunks/helpers.dataset.js +2685 -0
- package/dist/node_modules/chart.js/dist/chunks/helpers.dataset.js.map +1 -0
- package/dist/node_modules/deepmerge/dist/cjs.js +138 -0
- package/dist/node_modules/deepmerge/dist/cjs.js.map +1 -0
- package/dist/node_modules/define-data-property/index.js +71 -0
- package/dist/node_modules/define-data-property/index.js.map +1 -0
- package/dist/node_modules/dom-to-image/src/dom-to-image.js +776 -0
- package/dist/node_modules/dom-to-image/src/dom-to-image.js.map +1 -0
- package/dist/node_modules/dunder-proto/get.js +43 -0
- package/dist/node_modules/dunder-proto/get.js.map +1 -0
- package/dist/node_modules/es-define-property/index.js +24 -0
- package/dist/node_modules/es-define-property/index.js.map +1 -0
- package/dist/node_modules/es-errors/eval.js +14 -0
- package/dist/node_modules/es-errors/eval.js.map +1 -0
- package/dist/node_modules/es-errors/index.js +14 -0
- package/dist/node_modules/es-errors/index.js.map +1 -0
- package/dist/node_modules/es-errors/range.js +14 -0
- package/dist/node_modules/es-errors/range.js.map +1 -0
- package/dist/node_modules/es-errors/ref.js +14 -0
- package/dist/node_modules/es-errors/ref.js.map +1 -0
- package/dist/node_modules/es-errors/syntax.js +14 -0
- package/dist/node_modules/es-errors/syntax.js.map +1 -0
- package/dist/node_modules/es-errors/type.js +14 -0
- package/dist/node_modules/es-errors/type.js.map +1 -0
- package/dist/node_modules/es-errors/uri.js +14 -0
- package/dist/node_modules/es-errors/uri.js.map +1 -0
- package/dist/node_modules/es-object-atoms/index.js +14 -0
- package/dist/node_modules/es-object-atoms/index.js.map +1 -0
- package/dist/node_modules/fancy-canvas/canvas-element-bitmap-size.js +239 -0
- package/dist/node_modules/fancy-canvas/canvas-element-bitmap-size.js.map +1 -0
- package/dist/node_modules/fancy-canvas/canvas-rendering-target.js +85 -0
- package/dist/node_modules/fancy-canvas/canvas-rendering-target.js.map +1 -0
- package/dist/node_modules/fancy-canvas/device-pixel-ratio.js +63 -0
- package/dist/node_modules/fancy-canvas/device-pixel-ratio.js.map +1 -0
- package/dist/node_modules/fancy-canvas/size.js +20 -0
- package/dist/node_modules/fancy-canvas/size.js.map +1 -0
- package/dist/node_modules/for-each/index.js +81 -0
- package/dist/node_modules/for-each/index.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/animation/animate/single-value.js +12 -0
- package/dist/node_modules/framer-motion/dist/es/animation/animate/single-value.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/animation/animators/AcceleratedAnimation.js +323 -0
- package/dist/node_modules/framer-motion/dist/es/animation/animators/AcceleratedAnimation.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/animation/animators/BaseAnimation.js +118 -0
- package/dist/node_modules/framer-motion/dist/es/animation/animators/BaseAnimation.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/animation/animators/MainThreadAnimation.js +388 -0
- package/dist/node_modules/framer-motion/dist/es/animation/animators/MainThreadAnimation.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/animation/animators/drivers/driver-frameloop.js +18 -0
- package/dist/node_modules/framer-motion/dist/es/animation/animators/drivers/driver-frameloop.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/animation/animators/utils/accelerated-values.js +15 -0
- package/dist/node_modules/framer-motion/dist/es/animation/animators/utils/accelerated-values.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/animation/animators/utils/can-animate.js +43 -0
- package/dist/node_modules/framer-motion/dist/es/animation/animators/utils/can-animate.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/animation/animators/waapi/index.js +25 -0
- package/dist/node_modules/framer-motion/dist/es/animation/animators/waapi/index.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/animation/animators/waapi/utils/get-final-keyframe.js +13 -0
- package/dist/node_modules/framer-motion/dist/es/animation/animators/waapi/utils/get-final-keyframe.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/animation/animators/waapi/utils/supports-waapi.js +7 -0
- package/dist/node_modules/framer-motion/dist/es/animation/animators/waapi/utils/supports-waapi.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/animation/generators/inertia.js +88 -0
- package/dist/node_modules/framer-motion/dist/es/animation/generators/inertia.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/animation/generators/keyframes.js +52 -0
- package/dist/node_modules/framer-motion/dist/es/animation/generators/keyframes.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/animation/generators/spring/defaults.js +28 -0
- package/dist/node_modules/framer-motion/dist/es/animation/generators/spring/defaults.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/animation/generators/spring/find.js +87 -0
- package/dist/node_modules/framer-motion/dist/es/animation/generators/spring/find.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/animation/generators/spring/index.js +169 -0
- package/dist/node_modules/framer-motion/dist/es/animation/generators/spring/index.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/animation/generators/utils/velocity.js +10 -0
- package/dist/node_modules/framer-motion/dist/es/animation/generators/utils/velocity.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/animation/hooks/animation-controls.js +81 -0
- package/dist/node_modules/framer-motion/dist/es/animation/hooks/animation-controls.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/animation/hooks/use-animation.js +42 -0
- package/dist/node_modules/framer-motion/dist/es/animation/hooks/use-animation.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/animation/interfaces/motion-value.js +107 -0
- package/dist/node_modules/framer-motion/dist/es/animation/interfaces/motion-value.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element-target.js +77 -0
- package/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element-target.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element-variant.js +67 -0
- package/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element-variant.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element.js +27 -0
- package/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/animation/optimized-appear/data-id.js +7 -0
- package/dist/node_modules/framer-motion/dist/es/animation/optimized-appear/data-id.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/animation/optimized-appear/get-appear-id.js +8 -0
- package/dist/node_modules/framer-motion/dist/es/animation/optimized-appear/get-appear-id.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/animation/utils/default-transitions.js +41 -0
- package/dist/node_modules/framer-motion/dist/es/animation/utils/default-transitions.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/animation/utils/is-animatable.js +31 -0
- package/dist/node_modules/framer-motion/dist/es/animation/utils/is-animatable.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/animation/utils/is-animation-controls.js +8 -0
- package/dist/node_modules/framer-motion/dist/es/animation/utils/is-animation-controls.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/animation/utils/is-keyframes-target.js +6 -0
- package/dist/node_modules/framer-motion/dist/es/animation/utils/is-keyframes-target.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/animation/utils/is-none.js +16 -0
- package/dist/node_modules/framer-motion/dist/es/animation/utils/is-none.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/animation/utils/is-transition-defined.js +11 -0
- package/dist/node_modules/framer-motion/dist/es/animation/utils/is-transition-defined.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.js +77 -0
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.js +61 -0
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/index.js +166 -0
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/index.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.js +44 -0
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/utils.js +15 -0
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/utils.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/context/LayoutGroupContext.js +6 -0
- package/dist/node_modules/framer-motion/dist/es/context/LayoutGroupContext.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/context/LazyContext.js +6 -0
- package/dist/node_modules/framer-motion/dist/es/context/LazyContext.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/context/MotionConfigContext.js +13 -0
- package/dist/node_modules/framer-motion/dist/es/context/MotionConfigContext.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/create.js +14 -0
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/create.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/index.js +6 -0
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/index.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/utils.js +18 -0
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/utils.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/context/PresenceContext.js +9 -0
- package/dist/node_modules/framer-motion/dist/es/context/PresenceContext.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.js +9 -0
- package/dist/node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/easing/anticipate.js +6 -0
- package/dist/node_modules/framer-motion/dist/es/easing/anticipate.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/easing/back.js +10 -0
- package/dist/node_modules/framer-motion/dist/es/easing/back.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/easing/circ.js +9 -0
- package/dist/node_modules/framer-motion/dist/es/easing/circ.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/easing/cubic-bezier.js +53 -0
- package/dist/node_modules/framer-motion/dist/es/easing/cubic-bezier.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/easing/ease.js +8 -0
- package/dist/node_modules/framer-motion/dist/es/easing/ease.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/easing/modifiers/mirror.js +6 -0
- package/dist/node_modules/framer-motion/dist/es/easing/modifiers/mirror.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/easing/modifiers/reverse.js +6 -0
- package/dist/node_modules/framer-motion/dist/es/easing/modifiers/reverse.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/easing/utils/is-easing-array.js +6 -0
- package/dist/node_modules/framer-motion/dist/es/easing/utils/is-easing-array.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/easing/utils/map.js +39 -0
- package/dist/node_modules/framer-motion/dist/es/easing/utils/map.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/events/add-dom-event.js +7 -0
- package/dist/node_modules/framer-motion/dist/es/events/add-dom-event.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/events/add-pointer-event.js +9 -0
- package/dist/node_modules/framer-motion/dist/es/events/add-pointer-event.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/events/event-info.js +17 -0
- package/dist/node_modules/framer-motion/dist/es/events/event-info.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/frameloop/batcher.js +72 -0
- package/dist/node_modules/framer-motion/dist/es/frameloop/batcher.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/frameloop/frame.js +8 -0
- package/dist/node_modules/framer-motion/dist/es/frameloop/frame.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/frameloop/microtask.js +6 -0
- package/dist/node_modules/framer-motion/dist/es/frameloop/microtask.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/frameloop/render-step.js +82 -0
- package/dist/node_modules/framer-motion/dist/es/frameloop/render-step.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/frameloop/sync-time.js +32 -0
- package/dist/node_modules/framer-motion/dist/es/frameloop/sync-time.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.js +485 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/index.js +29 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/index.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.js +131 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/focus.js +42 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/focus.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/hover.js +32 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/hover.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/pan/PanSession.js +158 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/pan/PanSession.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/pan/index.js +52 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/pan/index.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/press.js +32 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/press.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/Feature.js +10 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/Feature.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/animation/exit.js +32 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/animation/exit.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/animation/index.js +42 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/animation/index.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/animations.js +14 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/animations.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/definitions.js +29 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/definitions.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/drag.js +18 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/drag.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/gestures.js +22 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/gestures.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.js +134 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/layout.js +12 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/layout.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/load-features.js +13 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/load-features.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/index.js +73 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/index.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/observers.js +50 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/observers.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/index.js +102 -0
- package/dist/node_modules/framer-motion/dist/es/motion/index.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/utils/is-forced-motion-value.js +12 -0
- package/dist/node_modules/framer-motion/dist/es/motion/utils/is-forced-motion-value.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/utils/symbol.js +4 -0
- package/dist/node_modules/framer-motion/dist/es/motion/utils/symbol.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.js +39 -0
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.js +135 -0
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.js +89 -0
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/utils/valid-prop.js +58 -0
- package/dist/node_modules/framer-motion/dist/es/motion/utils/valid-prop.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/projection/animation/mix-values.js +95 -0
- package/dist/node_modules/framer-motion/dist/es/projection/animation/mix-values.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/conversion.js +34 -0
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/conversion.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/copy.js +32 -0
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/copy.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-apply.js +120 -0
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-apply.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-calc.js +53 -0
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-calc.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-remove.js +55 -0
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-remove.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/models.js +18 -0
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/models.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/utils.js +32 -0
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/utils.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/projection/node/DocumentProjectionNode.js +14 -0
- package/dist/node_modules/framer-motion/dist/es/projection/node/DocumentProjectionNode.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/projection/node/HTMLProjectionNode.js +28 -0
- package/dist/node_modules/framer-motion/dist/es/projection/node/HTMLProjectionNode.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/projection/node/create-projection-node.js +1585 -0
- package/dist/node_modules/framer-motion/dist/es/projection/node/create-projection-node.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/projection/node/state.js +20 -0
- package/dist/node_modules/framer-motion/dist/es/projection/node/state.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/projection/shared/stack.js +113 -0
- package/dist/node_modules/framer-motion/dist/es/projection/shared/stack.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/projection/styles/scale-border-radius.js +42 -0
- package/dist/node_modules/framer-motion/dist/es/projection/styles/scale-border-radius.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/projection/styles/scale-box-shadow.js +36 -0
- package/dist/node_modules/framer-motion/dist/es/projection/styles/scale-box-shadow.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/projection/styles/scale-correction.js +7 -0
- package/dist/node_modules/framer-motion/dist/es/projection/styles/scale-correction.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/projection/styles/transform.js +50 -0
- package/dist/node_modules/framer-motion/dist/es/projection/styles/transform.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/projection/utils/each-axis.js +6 -0
- package/dist/node_modules/framer-motion/dist/es/projection/utils/each-axis.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/projection/utils/has-transform.js +27 -0
- package/dist/node_modules/framer-motion/dist/es/projection/utils/has-transform.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/projection/utils/measure.js +18 -0
- package/dist/node_modules/framer-motion/dist/es/projection/utils/measure.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/VisualElement.js +480 -0
- package/dist/node_modules/framer-motion/dist/es/render/VisualElement.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/components/create-factory.js +24 -0
- package/dist/node_modules/framer-motion/dist/es/render/components/create-factory.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/components/create-proxy.js +39 -0
- package/dist/node_modules/framer-motion/dist/es/render/components/create-proxy.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/components/motion/create.js +16 -0
- package/dist/node_modules/framer-motion/dist/es/render/components/motion/create.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/components/motion/proxy.js +7 -0
- package/dist/node_modules/framer-motion/dist/es/render/components/motion/proxy.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/DOMKeyframesResolver.js +132 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/DOMKeyframesResolver.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/DOMVisualElement.js +44 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/DOMVisualElement.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/create-visual-element.js +15 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/create-visual-element.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/use-render.js +34 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/use-render.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/camel-to-dash.js +7 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/camel-to-dash.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/css-variables-conversion.js +43 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/css-variables-conversion.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/filter-props.js +60 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/filter-props.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-css-variable.js +16 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-css-variable.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.js +31 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-element.js +6 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-element.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/unit-conversion.js +54 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/unit-conversion.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/animatable-none.js +16 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/animatable-none.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/defaults.js +31 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/defaults.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/dimensions.js +16 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/dimensions.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/find.js +16 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/find.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/get-as-type.js +11 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/get-as-type.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/number-browser.js +42 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/number-browser.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/number.js +19 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/number.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/test.js +7 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/test.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/transform.js +32 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/transform.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/type-auto.js +10 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/type-auto.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/type-int.js +9 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/type-int.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/HTMLVisualElement.js +44 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/HTMLVisualElement.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/config-motion.js +13 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/config-motion.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/use-props.js +58 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/use-props.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/build-styles.js +66 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/build-styles.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/build-transform.js +63 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/build-transform.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/create-render-state.js +9 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/create-render-state.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/keys-position.js +14 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/keys-position.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/keys-transform.js +29 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/keys-transform.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/make-none-animatable.js +31 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/make-none-animatable.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/render.js +10 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/render.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/scrape-motion-values.js +21 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/scrape-motion-values.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/store.js +4 -0
- package/dist/node_modules/framer-motion/dist/es/render/store.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/SVGVisualElement.js +46 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/SVGVisualElement.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/config-motion.js +74 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/config-motion.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/lowercase-elements.js +34 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/lowercase-elements.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/use-props.js +25 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/use-props.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/build-attrs.js +53 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/build-attrs.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/camel-case-attrs.js +31 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/camel-case-attrs.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.js +9 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/is-svg-tag.js +4 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/is-svg-tag.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/path.js +33 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/path.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/render.js +13 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/render.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/scrape-motion-values.js +20 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/scrape-motion-values.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/transform-origin.js +19 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/transform-origin.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/utils/KeyframesResolver.js +165 -0
- package/dist/node_modules/framer-motion/dist/es/render/utils/KeyframesResolver.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/utils/animation-state.js +333 -0
- package/dist/node_modules/framer-motion/dist/es/render/utils/animation-state.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/utils/compare-by-depth.js +4 -0
- package/dist/node_modules/framer-motion/dist/es/render/utils/compare-by-depth.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/utils/flat-tree.js +25 -0
- package/dist/node_modules/framer-motion/dist/es/render/utils/flat-tree.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/utils/get-variant-context.js +29 -0
- package/dist/node_modules/framer-motion/dist/es/render/utils/get-variant-context.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/utils/is-controlling-variants.js +14 -0
- package/dist/node_modules/framer-motion/dist/es/render/utils/is-controlling-variants.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/utils/is-variant-label.js +9 -0
- package/dist/node_modules/framer-motion/dist/es/render/utils/is-variant-label.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/utils/motion-values.js +60 -0
- package/dist/node_modules/framer-motion/dist/es/render/utils/motion-values.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/utils/resolve-dynamic-variants.js +9 -0
- package/dist/node_modules/framer-motion/dist/es/render/utils/resolve-dynamic-variants.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/utils/resolve-variants.js +37 -0
- package/dist/node_modules/framer-motion/dist/es/render/utils/resolve-variants.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/utils/setters.js +28 -0
- package/dist/node_modules/framer-motion/dist/es/render/utils/setters.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/utils/variant-props.js +13 -0
- package/dist/node_modules/framer-motion/dist/es/render/utils/variant-props.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/GlobalConfig.js +6 -0
- package/dist/node_modules/framer-motion/dist/es/utils/GlobalConfig.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/array.js +12 -0
- package/dist/node_modules/framer-motion/dist/es/utils/array.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/clamp.js +10 -0
- package/dist/node_modules/framer-motion/dist/es/utils/clamp.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/delay.js +22 -0
- package/dist/node_modules/framer-motion/dist/es/utils/delay.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/distance.js +10 -0
- package/dist/node_modules/framer-motion/dist/es/utils/distance.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/get-context-window.js +7 -0
- package/dist/node_modules/framer-motion/dist/es/utils/get-context-window.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/hsla-to-rgba.js +43 -0
- package/dist/node_modules/framer-motion/dist/es/utils/hsla-to-rgba.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/interpolate.js +79 -0
- package/dist/node_modules/framer-motion/dist/es/utils/interpolate.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/is-browser.js +4 -0
- package/dist/node_modules/framer-motion/dist/es/utils/is-browser.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/is-numerical-string.js +7 -0
- package/dist/node_modules/framer-motion/dist/es/utils/is-numerical-string.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/is-ref-object.js +8 -0
- package/dist/node_modules/framer-motion/dist/es/utils/is-ref-object.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/is-zero-value-string.js +7 -0
- package/dist/node_modules/framer-motion/dist/es/utils/is-zero-value-string.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/mix/color.js +48 -0
- package/dist/node_modules/framer-motion/dist/es/utils/mix/color.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/mix/complex.js +95 -0
- package/dist/node_modules/framer-motion/dist/es/utils/mix/complex.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/mix/immediate.js +6 -0
- package/dist/node_modules/framer-motion/dist/es/utils/mix/immediate.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/mix/index.js +15 -0
- package/dist/node_modules/framer-motion/dist/es/utils/mix/index.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/mix/number.js +27 -0
- package/dist/node_modules/framer-motion/dist/es/utils/mix/number.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/mix/visibility.js +17 -0
- package/dist/node_modules/framer-motion/dist/es/utils/mix/visibility.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/offsets/default.js +10 -0
- package/dist/node_modules/framer-motion/dist/es/utils/offsets/default.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/offsets/fill.js +14 -0
- package/dist/node_modules/framer-motion/dist/es/utils/offsets/fill.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/offsets/time.js +6 -0
- package/dist/node_modules/framer-motion/dist/es/utils/offsets/time.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/pipe.js +12 -0
- package/dist/node_modules/framer-motion/dist/es/utils/pipe.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/index.js +20 -0
- package/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/index.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/state.js +6 -0
- package/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/state.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/resolve-value.js +12 -0
- package/dist/node_modules/framer-motion/dist/es/utils/resolve-value.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/shallow-compare.js +15 -0
- package/dist/node_modules/framer-motion/dist/es/utils/shallow-compare.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/subscription-manager.js +41 -0
- package/dist/node_modules/framer-motion/dist/es/utils/subscription-manager.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/use-constant.js +19 -0
- package/dist/node_modules/framer-motion/dist/es/utils/use-constant.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.js +7 -0
- package/dist/node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/velocity-per-second.js +12 -0
- package/dist/node_modules/framer-motion/dist/es/utils/velocity-per-second.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/warn-once.js +10 -0
- package/dist/node_modules/framer-motion/dist/es/utils/warn-once.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/value/index.js +314 -0
- package/dist/node_modules/framer-motion/dist/es/value/index.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/value/types/color/hex.js +41 -0
- package/dist/node_modules/framer-motion/dist/es/value/types/color/hex.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/value/types/color/hsla.js +23 -0
- package/dist/node_modules/framer-motion/dist/es/value/types/color/hsla.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/value/types/color/index.js +28 -0
- package/dist/node_modules/framer-motion/dist/es/value/types/color/index.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/value/types/color/rgba.js +26 -0
- package/dist/node_modules/framer-motion/dist/es/value/types/color/rgba.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/value/types/color/utils.js +30 -0
- package/dist/node_modules/framer-motion/dist/es/value/types/color/utils.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/value/types/complex/filter.js +31 -0
- package/dist/node_modules/framer-motion/dist/es/value/types/complex/filter.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/value/types/complex/index.js +93 -0
- package/dist/node_modules/framer-motion/dist/es/value/types/complex/index.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/value/types/numbers/index.js +18 -0
- package/dist/node_modules/framer-motion/dist/es/value/types/numbers/index.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/value/types/numbers/units.js +18 -0
- package/dist/node_modules/framer-motion/dist/es/value/types/numbers/units.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/value/types/utils/color-regex.js +4 -0
- package/dist/node_modules/framer-motion/dist/es/value/types/utils/color-regex.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/value/types/utils/float-regex.js +4 -0
- package/dist/node_modules/framer-motion/dist/es/value/types/utils/float-regex.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/value/types/utils/is-nullish.js +6 -0
- package/dist/node_modules/framer-motion/dist/es/value/types/utils/is-nullish.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/value/types/utils/sanitize.js +6 -0
- package/dist/node_modules/framer-motion/dist/es/value/types/utils/sanitize.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/value/types/utils/single-color-regex.js +4 -0
- package/dist/node_modules/framer-motion/dist/es/value/types/utils/single-color-regex.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/value/use-will-change/add-will-change.js +15 -0
- package/dist/node_modules/framer-motion/dist/es/value/use-will-change/add-will-change.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/value/use-will-change/is.js +8 -0
- package/dist/node_modules/framer-motion/dist/es/value/use-will-change/is.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/value/utils/is-motion-value.js +4 -0
- package/dist/node_modules/framer-motion/dist/es/value/utils/is-motion-value.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/value/utils/resolve-motion-value.js +17 -0
- package/dist/node_modules/framer-motion/dist/es/value/utils/resolve-motion-value.js.map +1 -0
- package/dist/node_modules/function-bind/implementation.js +94 -0
- package/dist/node_modules/function-bind/implementation.js.map +1 -0
- package/dist/node_modules/function-bind/index.js +17 -0
- package/dist/node_modules/function-bind/index.js.map +1 -0
- package/dist/node_modules/generator-function/index.js +17 -0
- package/dist/node_modules/generator-function/index.js.map +1 -0
- package/dist/node_modules/get-intrinsic/index.js +414 -0
- package/dist/node_modules/get-intrinsic/index.js.map +1 -0
- package/dist/node_modules/get-proto/Object.getPrototypeOf.js +18 -0
- package/dist/node_modules/get-proto/Object.getPrototypeOf.js.map +1 -0
- package/dist/node_modules/get-proto/Reflect.getPrototypeOf.js +14 -0
- package/dist/node_modules/get-proto/Reflect.getPrototypeOf.js.map +1 -0
- package/dist/node_modules/get-proto/index.js +41 -0
- package/dist/node_modules/get-proto/index.js.map +1 -0
- package/dist/node_modules/gopd/gOPD.js +14 -0
- package/dist/node_modules/gopd/gOPD.js.map +1 -0
- package/dist/node_modules/gopd/index.js +27 -0
- package/dist/node_modules/gopd/index.js.map +1 -0
- package/dist/node_modules/has-property-descriptors/index.js +34 -0
- package/dist/node_modules/has-property-descriptors/index.js.map +1 -0
- package/dist/node_modules/has-symbols/index.js +26 -0
- package/dist/node_modules/has-symbols/index.js.map +1 -0
- package/dist/node_modules/has-symbols/shams.js +55 -0
- package/dist/node_modules/has-symbols/shams.js.map +1 -0
- package/dist/node_modules/has-tostringtag/shams.js +20 -0
- package/dist/node_modules/has-tostringtag/shams.js.map +1 -0
- package/dist/node_modules/hash.js/lib/hash/common.js +98 -0
- package/dist/node_modules/hash.js/lib/hash/common.js.map +1 -0
- package/dist/node_modules/hash.js/lib/hash/hmac.js +52 -0
- package/dist/node_modules/hash.js/lib/hash/hmac.js.map +1 -0
- package/dist/node_modules/hash.js/lib/hash/ripemd.js +153 -0
- package/dist/node_modules/hash.js/lib/hash/ripemd.js.map +1 -0
- package/dist/node_modules/hash.js/lib/hash/sha/1.js +82 -0
- package/dist/node_modules/hash.js/lib/hash/sha/1.js.map +1 -0
- package/dist/node_modules/hash.js/lib/hash/sha/224.js +34 -0
- package/dist/node_modules/hash.js/lib/hash/sha/224.js.map +1 -0
- package/dist/node_modules/hash.js/lib/hash/sha/256.js +114 -0
- package/dist/node_modules/hash.js/lib/hash/sha/256.js.map +1 -0
- package/dist/node_modules/hash.js/lib/hash/sha/384.js +40 -0
- package/dist/node_modules/hash.js/lib/hash/sha/384.js.map +1 -0
- package/dist/node_modules/hash.js/lib/hash/sha/512.js +337 -0
- package/dist/node_modules/hash.js/lib/hash/sha/512.js.map +1 -0
- package/dist/node_modules/hash.js/lib/hash/sha/common.js +54 -0
- package/dist/node_modules/hash.js/lib/hash/sha/common.js.map +1 -0
- package/dist/node_modules/hash.js/lib/hash/sha.js +15 -0
- package/dist/node_modules/hash.js/lib/hash/sha.js.map +1 -0
- package/dist/node_modules/hash.js/lib/hash/utils.js +283 -0
- package/dist/node_modules/hash.js/lib/hash/utils.js.map +1 -0
- package/dist/node_modules/hash.js/lib/hash.js +34 -0
- package/dist/node_modules/hash.js/lib/hash.js.map +1 -0
- package/dist/node_modules/hasown/index.js +20 -0
- package/dist/node_modules/hasown/index.js.map +1 -0
- package/dist/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js +22 -0
- package/dist/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js.map +1 -0
- package/dist/node_modules/ieee754/index.js +91 -0
- package/dist/node_modules/ieee754/index.js.map +1 -0
- package/dist/node_modules/inherits/inherits.js +23 -0
- package/dist/node_modules/inherits/inherits.js.map +1 -0
- package/dist/node_modules/inherits/inherits_browser.js +39 -0
- package/dist/node_modules/inherits/inherits_browser.js.map +1 -0
- package/dist/node_modules/is-arguments/index.js +57 -0
- package/dist/node_modules/is-arguments/index.js.map +1 -0
- package/dist/node_modules/is-callable/index.js +111 -0
- package/dist/node_modules/is-callable/index.js.map +1 -0
- package/dist/node_modules/is-generator-function/index.js +47 -0
- package/dist/node_modules/is-generator-function/index.js.map +1 -0
- package/dist/node_modules/is-regex/index.js +84 -0
- package/dist/node_modules/is-regex/index.js.map +1 -0
- package/dist/node_modules/is-typed-array/index.js +20 -0
- package/dist/node_modules/is-typed-array/index.js.map +1 -0
- package/dist/node_modules/js-sha3/src/sha3.js +661 -0
- package/dist/node_modules/js-sha3/src/sha3.js.map +1 -0
- package/dist/node_modules/lightweight-charts/dist/lightweight-charts.production.js +14 -0
- package/dist/node_modules/lightweight-charts/dist/lightweight-charts.production.js.map +1 -0
- package/dist/node_modules/lodash/_DataView.js +13 -0
- package/dist/node_modules/lodash/_DataView.js.map +1 -0
- package/dist/node_modules/lodash/_Hash.js +41 -0
- package/dist/node_modules/lodash/_Hash.js.map +1 -0
- package/dist/node_modules/lodash/_ListCache.js +41 -0
- package/dist/node_modules/lodash/_ListCache.js.map +1 -0
- package/dist/node_modules/lodash/_Map.js +13 -0
- package/dist/node_modules/lodash/_Map.js.map +1 -0
- package/dist/node_modules/lodash/_MapCache.js +41 -0
- package/dist/node_modules/lodash/_MapCache.js.map +1 -0
- package/dist/node_modules/lodash/_Promise.js +13 -0
- package/dist/node_modules/lodash/_Promise.js.map +1 -0
- package/dist/node_modules/lodash/_Set.js +13 -0
- package/dist/node_modules/lodash/_Set.js.map +1 -0
- package/dist/node_modules/lodash/_SetCache.js +34 -0
- package/dist/node_modules/lodash/_SetCache.js.map +1 -0
- package/dist/node_modules/lodash/_Stack.js +37 -0
- package/dist/node_modules/lodash/_Stack.js.map +1 -0
- package/dist/node_modules/lodash/_Symbol.js +11 -0
- package/dist/node_modules/lodash/_Symbol.js.map +1 -0
- package/dist/node_modules/lodash/_Uint8Array.js +11 -0
- package/dist/node_modules/lodash/_Uint8Array.js.map +1 -0
- package/dist/node_modules/lodash/_WeakMap.js +13 -0
- package/dist/node_modules/lodash/_WeakMap.js.map +1 -0
- package/dist/node_modules/lodash/_arrayFilter.js +29 -0
- package/dist/node_modules/lodash/_arrayFilter.js.map +1 -0
- package/dist/node_modules/lodash/_arrayIncludes.js +22 -0
- package/dist/node_modules/lodash/_arrayIncludes.js.map +1 -0
- package/dist/node_modules/lodash/_arrayIncludesWith.js +26 -0
- package/dist/node_modules/lodash/_arrayIncludesWith.js.map +1 -0
- package/dist/node_modules/lodash/_arrayLikeKeys.js +59 -0
- package/dist/node_modules/lodash/_arrayLikeKeys.js.map +1 -0
- package/dist/node_modules/lodash/_arrayMap.js +25 -0
- package/dist/node_modules/lodash/_arrayMap.js.map +1 -0
- package/dist/node_modules/lodash/_arrayPush.js +24 -0
- package/dist/node_modules/lodash/_arrayPush.js.map +1 -0
- package/dist/node_modules/lodash/_arraySome.js +27 -0
- package/dist/node_modules/lodash/_arraySome.js.map +1 -0
- package/dist/node_modules/lodash/_assocIndexOf.js +26 -0
- package/dist/node_modules/lodash/_assocIndexOf.js.map +1 -0
- package/dist/node_modules/lodash/_baseFindIndex.js +28 -0
- package/dist/node_modules/lodash/_baseFindIndex.js.map +1 -0
- package/dist/node_modules/lodash/_baseFlatten.js +44 -0
- package/dist/node_modules/lodash/_baseFlatten.js.map +1 -0
- package/dist/node_modules/lodash/_baseGet.js +30 -0
- package/dist/node_modules/lodash/_baseGet.js.map +1 -0
- package/dist/node_modules/lodash/_baseGetAllKeys.js +26 -0
- package/dist/node_modules/lodash/_baseGetAllKeys.js.map +1 -0
- package/dist/node_modules/lodash/_baseGetTag.js +35 -0
- package/dist/node_modules/lodash/_baseGetTag.js.map +1 -0
- package/dist/node_modules/lodash/_baseHasIn.js +17 -0
- package/dist/node_modules/lodash/_baseHasIn.js.map +1 -0
- package/dist/node_modules/lodash/_baseIndexOf.js +27 -0
- package/dist/node_modules/lodash/_baseIndexOf.js.map +1 -0
- package/dist/node_modules/lodash/_baseIsArguments.js +24 -0
- package/dist/node_modules/lodash/_baseIsArguments.js.map +1 -0
- package/dist/node_modules/lodash/_baseIsEqual.js +34 -0
- package/dist/node_modules/lodash/_baseIsEqual.js.map +1 -0
- package/dist/node_modules/lodash/_baseIsEqualDeep.js +95 -0
- package/dist/node_modules/lodash/_baseIsEqualDeep.js.map +1 -0
- package/dist/node_modules/lodash/_baseIsMatch.js +68 -0
- package/dist/node_modules/lodash/_baseIsMatch.js.map +1 -0
- package/dist/node_modules/lodash/_baseIsNaN.js +16 -0
- package/dist/node_modules/lodash/_baseIsNaN.js.map +1 -0
- package/dist/node_modules/lodash/_baseIsNative.js +55 -0
- package/dist/node_modules/lodash/_baseIsNative.js.map +1 -0
- package/dist/node_modules/lodash/_baseIsTypedArray.js +67 -0
- package/dist/node_modules/lodash/_baseIsTypedArray.js.map +1 -0
- package/dist/node_modules/lodash/_baseIteratee.js +40 -0
- package/dist/node_modules/lodash/_baseIteratee.js.map +1 -0
- package/dist/node_modules/lodash/_baseKeys.js +36 -0
- package/dist/node_modules/lodash/_baseKeys.js.map +1 -0
- package/dist/node_modules/lodash/_baseMatches.js +29 -0
- package/dist/node_modules/lodash/_baseMatches.js.map +1 -0
- package/dist/node_modules/lodash/_baseMatchesProperty.js +44 -0
- package/dist/node_modules/lodash/_baseMatchesProperty.js.map +1 -0
- package/dist/node_modules/lodash/_baseProperty.js +18 -0
- package/dist/node_modules/lodash/_baseProperty.js.map +1 -0
- package/dist/node_modules/lodash/_basePropertyDeep.js +21 -0
- package/dist/node_modules/lodash/_basePropertyDeep.js.map +1 -0
- package/dist/node_modules/lodash/_baseSlice.js +35 -0
- package/dist/node_modules/lodash/_baseSlice.js.map +1 -0
- package/dist/node_modules/lodash/_baseTimes.js +24 -0
- package/dist/node_modules/lodash/_baseTimes.js.map +1 -0
- package/dist/node_modules/lodash/_baseToString.js +42 -0
- package/dist/node_modules/lodash/_baseToString.js.map +1 -0
- package/dist/node_modules/lodash/_baseTrim.js +24 -0
- package/dist/node_modules/lodash/_baseTrim.js.map +1 -0
- package/dist/node_modules/lodash/_baseUnary.js +18 -0
- package/dist/node_modules/lodash/_baseUnary.js.map +1 -0
- package/dist/node_modules/lodash/_baseUniq.js +82 -0
- package/dist/node_modules/lodash/_baseUniq.js.map +1 -0
- package/dist/node_modules/lodash/_cacheHas.js +17 -0
- package/dist/node_modules/lodash/_cacheHas.js.map +1 -0
- package/dist/node_modules/lodash/_castPath.js +29 -0
- package/dist/node_modules/lodash/_castPath.js.map +1 -0
- package/dist/node_modules/lodash/_coreJsData.js +11 -0
- package/dist/node_modules/lodash/_coreJsData.js.map +1 -0
- package/dist/node_modules/lodash/_createSet.js +26 -0
- package/dist/node_modules/lodash/_createSet.js.map +1 -0
- package/dist/node_modules/lodash/_equalArrays.js +91 -0
- package/dist/node_modules/lodash/_equalArrays.js.map +1 -0
- package/dist/node_modules/lodash/_equalByTag.js +122 -0
- package/dist/node_modules/lodash/_equalByTag.js.map +1 -0
- package/dist/node_modules/lodash/_equalObjects.js +95 -0
- package/dist/node_modules/lodash/_equalObjects.js.map +1 -0
- package/dist/node_modules/lodash/_freeGlobal.js +10 -0
- package/dist/node_modules/lodash/_freeGlobal.js.map +1 -0
- package/dist/node_modules/lodash/_getAllKeys.js +23 -0
- package/dist/node_modules/lodash/_getAllKeys.js.map +1 -0
- package/dist/node_modules/lodash/_getMapData.js +23 -0
- package/dist/node_modules/lodash/_getMapData.js.map +1 -0
- package/dist/node_modules/lodash/_getMatchData.js +30 -0
- package/dist/node_modules/lodash/_getMatchData.js.map +1 -0
- package/dist/node_modules/lodash/_getNative.js +23 -0
- package/dist/node_modules/lodash/_getNative.js.map +1 -0
- package/dist/node_modules/lodash/_getRawTag.js +51 -0
- package/dist/node_modules/lodash/_getRawTag.js.map +1 -0
- package/dist/node_modules/lodash/_getSymbols.js +36 -0
- package/dist/node_modules/lodash/_getSymbols.js.map +1 -0
- package/dist/node_modules/lodash/_getTag.js +69 -0
- package/dist/node_modules/lodash/_getTag.js.map +1 -0
- package/dist/node_modules/lodash/_getValue.js +17 -0
- package/dist/node_modules/lodash/_getValue.js.map +1 -0
- package/dist/node_modules/lodash/_hasPath.js +49 -0
- package/dist/node_modules/lodash/_hasPath.js.map +1 -0
- package/dist/node_modules/lodash/_hashClear.js +20 -0
- package/dist/node_modules/lodash/_hashClear.js.map +1 -0
- package/dist/node_modules/lodash/_hashDelete.js +21 -0
- package/dist/node_modules/lodash/_hashDelete.js.map +1 -0
- package/dist/node_modules/lodash/_hashGet.js +35 -0
- package/dist/node_modules/lodash/_hashGet.js.map +1 -0
- package/dist/node_modules/lodash/_hashHas.js +28 -0
- package/dist/node_modules/lodash/_hashHas.js.map +1 -0
- package/dist/node_modules/lodash/_hashSet.js +28 -0
- package/dist/node_modules/lodash/_hashSet.js.map +1 -0
- package/dist/node_modules/lodash/_isFlattenable.js +27 -0
- package/dist/node_modules/lodash/_isFlattenable.js.map +1 -0
- package/dist/node_modules/lodash/_isIndex.js +29 -0
- package/dist/node_modules/lodash/_isIndex.js.map +1 -0
- package/dist/node_modules/lodash/_isIterateeCall.js +38 -0
- package/dist/node_modules/lodash/_isIterateeCall.js.map +1 -0
- package/dist/node_modules/lodash/_isKey.js +35 -0
- package/dist/node_modules/lodash/_isKey.js.map +1 -0
- package/dist/node_modules/lodash/_isKeyable.js +19 -0
- package/dist/node_modules/lodash/_isKeyable.js.map +1 -0
- package/dist/node_modules/lodash/_isMasked.js +25 -0
- package/dist/node_modules/lodash/_isMasked.js.map +1 -0
- package/dist/node_modules/lodash/_isPrototype.js +22 -0
- package/dist/node_modules/lodash/_isPrototype.js.map +1 -0
- package/dist/node_modules/lodash/_isStrictComparable.js +20 -0
- package/dist/node_modules/lodash/_isStrictComparable.js.map +1 -0
- package/dist/node_modules/lodash/_listCacheClear.js +17 -0
- package/dist/node_modules/lodash/_listCacheClear.js.map +1 -0
- package/dist/node_modules/lodash/_listCacheDelete.js +40 -0
- package/dist/node_modules/lodash/_listCacheDelete.js.map +1 -0
- package/dist/node_modules/lodash/_listCacheGet.js +24 -0
- package/dist/node_modules/lodash/_listCacheGet.js.map +1 -0
- package/dist/node_modules/lodash/_listCacheHas.js +21 -0
- package/dist/node_modules/lodash/_listCacheHas.js.map +1 -0
- package/dist/node_modules/lodash/_listCacheSet.js +31 -0
- package/dist/node_modules/lodash/_listCacheSet.js.map +1 -0
- package/dist/node_modules/lodash/_mapCacheClear.js +28 -0
- package/dist/node_modules/lodash/_mapCacheClear.js.map +1 -0
- package/dist/node_modules/lodash/_mapCacheDelete.js +23 -0
- package/dist/node_modules/lodash/_mapCacheDelete.js.map +1 -0
- package/dist/node_modules/lodash/_mapCacheGet.js +21 -0
- package/dist/node_modules/lodash/_mapCacheGet.js.map +1 -0
- package/dist/node_modules/lodash/_mapCacheHas.js +21 -0
- package/dist/node_modules/lodash/_mapCacheHas.js.map +1 -0
- package/dist/node_modules/lodash/_mapCacheSet.js +27 -0
- package/dist/node_modules/lodash/_mapCacheSet.js.map +1 -0
- package/dist/node_modules/lodash/_mapToArray.js +22 -0
- package/dist/node_modules/lodash/_mapToArray.js.map +1 -0
- package/dist/node_modules/lodash/_matchesStrictComparable.js +24 -0
- package/dist/node_modules/lodash/_matchesStrictComparable.js.map +1 -0
- package/dist/node_modules/lodash/_memoizeCapped.js +31 -0
- package/dist/node_modules/lodash/_memoizeCapped.js.map +1 -0
- package/dist/node_modules/lodash/_nativeCreate.js +11 -0
- package/dist/node_modules/lodash/_nativeCreate.js.map +1 -0
- package/dist/node_modules/lodash/_nativeKeys.js +11 -0
- package/dist/node_modules/lodash/_nativeKeys.js.map +1 -0
- package/dist/node_modules/lodash/_nodeUtil.js +42 -0
- package/dist/node_modules/lodash/_nodeUtil.js.map +1 -0
- package/dist/node_modules/lodash/_objectToString.js +26 -0
- package/dist/node_modules/lodash/_objectToString.js.map +1 -0
- package/dist/node_modules/lodash/_overArg.js +19 -0
- package/dist/node_modules/lodash/_overArg.js.map +1 -0
- package/dist/node_modules/lodash/_root.js +14 -0
- package/dist/node_modules/lodash/_root.js.map +1 -0
- package/dist/node_modules/lodash/_setCacheAdd.js +23 -0
- package/dist/node_modules/lodash/_setCacheAdd.js.map +1 -0
- package/dist/node_modules/lodash/_setCacheHas.js +18 -0
- package/dist/node_modules/lodash/_setCacheHas.js.map +1 -0
- package/dist/node_modules/lodash/_setToArray.js +22 -0
- package/dist/node_modules/lodash/_setToArray.js.map +1 -0
- package/dist/node_modules/lodash/_stackClear.js +20 -0
- package/dist/node_modules/lodash/_stackClear.js.map +1 -0
- package/dist/node_modules/lodash/_stackDelete.js +22 -0
- package/dist/node_modules/lodash/_stackDelete.js.map +1 -0
- package/dist/node_modules/lodash/_stackGet.js +18 -0
- package/dist/node_modules/lodash/_stackGet.js.map +1 -0
- package/dist/node_modules/lodash/_stackHas.js +18 -0
- package/dist/node_modules/lodash/_stackHas.js.map +1 -0
- package/dist/node_modules/lodash/_stackSet.js +41 -0
- package/dist/node_modules/lodash/_stackSet.js.map +1 -0
- package/dist/node_modules/lodash/_strictIndexOf.js +27 -0
- package/dist/node_modules/lodash/_strictIndexOf.js.map +1 -0
- package/dist/node_modules/lodash/_stringToPath.js +32 -0
- package/dist/node_modules/lodash/_stringToPath.js.map +1 -0
- package/dist/node_modules/lodash/_toKey.js +23 -0
- package/dist/node_modules/lodash/_toKey.js.map +1 -0
- package/dist/node_modules/lodash/_toSource.js +30 -0
- package/dist/node_modules/lodash/_toSource.js.map +1 -0
- package/dist/node_modules/lodash/_trimmedEndIndex.js +23 -0
- package/dist/node_modules/lodash/_trimmedEndIndex.js.map +1 -0
- package/dist/node_modules/lodash/chunk.js +60 -0
- package/dist/node_modules/lodash/chunk.js.map +1 -0
- package/dist/node_modules/lodash/eq.js +41 -0
- package/dist/node_modules/lodash/eq.js.map +1 -0
- package/dist/node_modules/lodash/flatten.js +30 -0
- package/dist/node_modules/lodash/flatten.js.map +1 -0
- package/dist/node_modules/lodash/get.js +41 -0
- package/dist/node_modules/lodash/get.js.map +1 -0
- package/dist/node_modules/lodash/hasIn.js +40 -0
- package/dist/node_modules/lodash/hasIn.js.map +1 -0
- package/dist/node_modules/lodash/identity.js +25 -0
- package/dist/node_modules/lodash/identity.js.map +1 -0
- package/dist/node_modules/lodash/isArguments.js +42 -0
- package/dist/node_modules/lodash/isArguments.js.map +1 -0
- package/dist/node_modules/lodash/isArray.js +34 -0
- package/dist/node_modules/lodash/isArray.js.map +1 -0
- package/dist/node_modules/lodash/isArrayLike.js +39 -0
- package/dist/node_modules/lodash/isArrayLike.js.map +1 -0
- package/dist/node_modules/lodash/isBuffer.js +51 -0
- package/dist/node_modules/lodash/isBuffer.js.map +1 -0
- package/dist/node_modules/lodash/isFunction.js +43 -0
- package/dist/node_modules/lodash/isFunction.js.map +1 -0
- package/dist/node_modules/lodash/isLength.js +39 -0
- package/dist/node_modules/lodash/isLength.js.map +1 -0
- package/dist/node_modules/lodash/isObject.js +35 -0
- package/dist/node_modules/lodash/isObject.js.map +1 -0
- package/dist/node_modules/lodash/isObjectLike.js +33 -0
- package/dist/node_modules/lodash/isObjectLike.js.map +1 -0
- package/dist/node_modules/lodash/isSymbol.js +35 -0
- package/dist/node_modules/lodash/isSymbol.js.map +1 -0
- package/dist/node_modules/lodash/isTypedArray.js +34 -0
- package/dist/node_modules/lodash/isTypedArray.js.map +1 -0
- package/dist/node_modules/lodash/keys.js +44 -0
- package/dist/node_modules/lodash/keys.js.map +1 -0
- package/dist/node_modules/lodash/memoize.js +78 -0
- package/dist/node_modules/lodash/memoize.js.map +1 -0
- package/dist/node_modules/lodash/noop.js +21 -0
- package/dist/node_modules/lodash/noop.js.map +1 -0
- package/dist/node_modules/lodash/property.js +40 -0
- package/dist/node_modules/lodash/property.js.map +1 -0
- package/dist/node_modules/lodash/stubArray.js +27 -0
- package/dist/node_modules/lodash/stubArray.js.map +1 -0
- package/dist/node_modules/lodash/stubFalse.js +22 -0
- package/dist/node_modules/lodash/stubFalse.js.map +1 -0
- package/dist/node_modules/lodash/toFinite.js +47 -0
- package/dist/node_modules/lodash/toFinite.js.map +1 -0
- package/dist/node_modules/lodash/toInteger.js +41 -0
- package/dist/node_modules/lodash/toInteger.js.map +1 -0
- package/dist/node_modules/lodash/toNumber.js +71 -0
- package/dist/node_modules/lodash/toNumber.js.map +1 -0
- package/dist/node_modules/lodash/toString.js +33 -0
- package/dist/node_modules/lodash/toString.js.map +1 -0
- package/dist/node_modules/lodash/uniqBy.js +40 -0
- package/dist/node_modules/lodash/uniqBy.js.map +1 -0
- package/dist/node_modules/math-intrinsics/abs.js +14 -0
- package/dist/node_modules/math-intrinsics/abs.js.map +1 -0
- package/dist/node_modules/math-intrinsics/floor.js +14 -0
- package/dist/node_modules/math-intrinsics/floor.js.map +1 -0
- package/dist/node_modules/math-intrinsics/isNaN.js +16 -0
- package/dist/node_modules/math-intrinsics/isNaN.js.map +1 -0
- package/dist/node_modules/math-intrinsics/max.js +14 -0
- package/dist/node_modules/math-intrinsics/max.js.map +1 -0
- package/dist/node_modules/math-intrinsics/min.js +14 -0
- package/dist/node_modules/math-intrinsics/min.js.map +1 -0
- package/dist/node_modules/math-intrinsics/pow.js +14 -0
- package/dist/node_modules/math-intrinsics/pow.js.map +1 -0
- package/dist/node_modules/math-intrinsics/round.js +14 -0
- package/dist/node_modules/math-intrinsics/round.js.map +1 -0
- package/dist/node_modules/math-intrinsics/sign.js +23 -0
- package/dist/node_modules/math-intrinsics/sign.js.map +1 -0
- package/dist/node_modules/minimalistic-assert/index.js +14 -0
- package/dist/node_modules/minimalistic-assert/index.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/controls/BaseGroup.js +83 -0
- package/dist/node_modules/motion-dom/dist/es/animation/controls/BaseGroup.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/controls/Group.js +14 -0
- package/dist/node_modules/motion-dom/dist/es/animation/controls/Group.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/calc-duration.js +18 -0
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/calc-duration.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/get-value-transition.js +10 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/get-value-transition.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/attach-timeline.js +7 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/attach-timeline.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/easing.js +45 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/easing.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/linear.js +16 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/linear.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/is-active.js +10 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/is-active.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/set-active.js +29 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/set-active.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/hover.js +42 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/hover.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/press/index.js +77 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/press/index.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.js +14 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.js +39 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/state.js +4 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/state.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.js +21 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-primary-pointer.js +19 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-primary-pointer.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/setup.js +16 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/setup.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/utils/is-bezier-definition.js +4 -0
- package/dist/node_modules/motion-dom/dist/es/utils/is-bezier-definition.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/utils/resolve-elements.js +15 -0
- package/dist/node_modules/motion-dom/dist/es/utils/resolve-elements.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/utils/supports/flags.js +10 -0
- package/dist/node_modules/motion-dom/dist/es/utils/supports/flags.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/utils/supports/linear-easing.js +16 -0
- package/dist/node_modules/motion-dom/dist/es/utils/supports/linear-easing.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/utils/supports/memo.js +11 -0
- package/dist/node_modules/motion-dom/dist/es/utils/supports/memo.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.js +7 -0
- package/dist/node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/errors.js +19 -0
- package/dist/node_modules/motion-utils/dist/es/errors.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/memo.js +12 -0
- package/dist/node_modules/motion-utils/dist/es/memo.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/noop.js +5 -0
- package/dist/node_modules/motion-utils/dist/es/noop.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/progress.js +20 -0
- package/dist/node_modules/motion-utils/dist/es/progress.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/time-conversion.js +13 -0
- package/dist/node_modules/motion-utils/dist/es/time-conversion.js.map +1 -0
- package/dist/node_modules/possible-typed-array-names/index.js +27 -0
- package/dist/node_modules/possible-typed-array-names/index.js.map +1 -0
- package/dist/node_modules/primereact/api/api.esm.js +120 -0
- package/dist/node_modules/primereact/api/api.esm.js.map +1 -0
- package/dist/node_modules/primereact/componentbase/componentbase.esm.js +357 -0
- package/dist/node_modules/primereact/componentbase/componentbase.esm.js.map +1 -0
- package/dist/node_modules/primereact/hooks/hooks.esm.js +276 -0
- package/dist/node_modules/primereact/hooks/hooks.esm.js.map +1 -0
- package/dist/node_modules/primereact/knob/knob.esm.js +388 -0
- package/dist/node_modules/primereact/knob/knob.esm.js.map +1 -0
- package/dist/node_modules/primereact/utils/utils.esm.js +2155 -0
- package/dist/node_modules/primereact/utils/utils.esm.js.map +1 -0
- package/dist/node_modules/react/cjs/react-jsx-runtime.development.js +1326 -0
- package/dist/node_modules/react/cjs/react-jsx-runtime.development.js.map +1 -0
- package/dist/node_modules/react/cjs/react-jsx-runtime.production.min.js +25 -0
- package/dist/node_modules/react/cjs/react-jsx-runtime.production.min.js.map +1 -0
- package/dist/node_modules/react/jsx-runtime.js +14 -0
- package/dist/node_modules/react/jsx-runtime.js.map +1 -0
- package/dist/node_modules/react-chartjs-2/dist/index.js +143 -0
- package/dist/node_modules/react-chartjs-2/dist/index.js.map +1 -0
- package/dist/node_modules/react-is/cjs/react-is.development.js +191 -0
- package/dist/node_modules/react-is/cjs/react-is.development.js.map +1 -0
- package/dist/node_modules/react-is/cjs/react-is.production.min.js +27 -0
- package/dist/node_modules/react-is/cjs/react-is.production.min.js.map +1 -0
- package/dist/node_modules/react-is/index.js +14 -0
- package/dist/node_modules/react-is/index.js.map +1 -0
- package/dist/node_modules/safe-regex-test/index.js +31 -0
- package/dist/node_modules/safe-regex-test/index.js.map +1 -0
- package/dist/node_modules/set-function-length/index.js +58 -0
- package/dist/node_modules/set-function-length/index.js.map +1 -0
- package/dist/node_modules/stylis/src/Enum.js +13 -0
- package/dist/node_modules/stylis/src/Enum.js.map +1 -0
- package/dist/node_modules/stylis/src/Middleware.js +33 -0
- package/dist/node_modules/stylis/src/Middleware.js.map +1 -0
- package/dist/node_modules/stylis/src/Parser.js +194 -0
- package/dist/node_modules/stylis/src/Parser.js.map +1 -0
- package/dist/node_modules/stylis/src/Serializer.js +39 -0
- package/dist/node_modules/stylis/src/Serializer.js.map +1 -0
- package/dist/node_modules/stylis/src/Tokenizer.js +224 -0
- package/dist/node_modules/stylis/src/Tokenizer.js.map +1 -0
- package/dist/node_modules/stylis/src/Utility.js +118 -0
- package/dist/node_modules/stylis/src/Utility.js.map +1 -0
- package/dist/node_modules/swiper/shared/ssr-window.esm.js +147 -0
- package/dist/node_modules/swiper/shared/ssr-window.esm.js.map +1 -0
- package/dist/node_modules/swiper/shared/swiper-core.js +3952 -0
- package/dist/node_modules/swiper/shared/swiper-core.js.map +1 -0
- package/dist/node_modules/swiper/shared/update-on-virtual-data.js +132 -0
- package/dist/node_modules/swiper/shared/update-on-virtual-data.js.map +1 -0
- package/dist/node_modules/swiper/shared/update-swiper.js +233 -0
- package/dist/node_modules/swiper/shared/update-swiper.js.map +1 -0
- package/dist/node_modules/swiper/shared/utils.js +303 -0
- package/dist/node_modules/swiper/shared/utils.js.map +1 -0
- package/dist/node_modules/swiper/swiper-react.js +390 -0
- package/dist/node_modules/swiper/swiper-react.js.map +1 -0
- package/dist/node_modules/tslib/tslib.es6.js +400 -0
- package/dist/node_modules/tslib/tslib.es6.js.map +1 -0
- package/dist/node_modules/util/support/isBuffer.js +14 -0
- package/dist/node_modules/util/support/isBuffer.js.map +1 -0
- package/dist/node_modules/util/support/types.js +348 -0
- package/dist/node_modules/util/support/types.js.map +1 -0
- package/dist/node_modules/util/util.js +730 -0
- package/dist/node_modules/util/util.js.map +1 -0
- package/dist/node_modules/viem/_esm/constants/unit.js +7 -0
- package/dist/node_modules/viem/_esm/constants/unit.js.map +1 -0
- package/dist/node_modules/viem/_esm/errors/base.js +92 -0
- package/dist/node_modules/viem/_esm/errors/base.js.map +1 -0
- package/dist/node_modules/viem/_esm/errors/unit.js +12 -0
- package/dist/node_modules/viem/_esm/errors/unit.js.map +1 -0
- package/dist/node_modules/viem/_esm/errors/version.js +4 -0
- package/dist/node_modules/viem/_esm/errors/version.js.map +1 -0
- package/dist/node_modules/viem/_esm/utils/unit/parseEther.js +20 -0
- package/dist/node_modules/viem/_esm/utils/unit/parseEther.js.map +1 -0
- package/dist/node_modules/viem/_esm/utils/unit/parseUnits.js +53 -0
- package/dist/node_modules/viem/_esm/utils/unit/parseUnits.js.map +1 -0
- package/dist/node_modules/which-typed-array/index.js +136 -0
- package/dist/node_modules/which-typed-array/index.js.map +1 -0
- package/dist/providers/index.js +63 -0
- package/dist/providers/index.js.map +1 -0
- package/dist/state/abtesting/useCookie.js +40 -0
- package/dist/state/abtesting/useCookie.js.map +1 -0
- package/dist/state/activeView/index.js +40 -0
- package/dist/state/activeView/index.js.map +1 -0
- package/dist/state/allowance/useAllowance.js +139 -0
- package/dist/state/allowance/useAllowance.js.map +1 -0
- package/dist/state/balance/useCurrencyBalance.js +40 -0
- package/dist/state/balance/useCurrencyBalance.js.map +1 -0
- package/dist/state/balance/useCurrencyBalanceSolana.js +43 -0
- package/dist/state/balance/useCurrencyBalanceSolana.js.map +1 -0
- package/dist/state/balance/useUserTokensBalance.js +100 -0
- package/dist/state/balance/useUserTokensBalance.js.map +1 -0
- package/dist/state/bondApiStats/useGetBondApiStats.js +21 -0
- package/dist/state/bondApiStats/useGetBondApiStats.js.map +1 -0
- package/dist/state/bonds/fetchBillsUser.js +157 -0
- package/dist/state/bonds/fetchBillsUser.js.map +1 -0
- package/dist/state/bonds/fetchBillsUserSolana.js +167 -0
- package/dist/state/bonds/fetchBillsUserSolana.js.map +1 -0
- package/dist/state/bonds/useBondsData.js +84 -0
- package/dist/state/bonds/useBondsData.js.map +1 -0
- package/dist/state/bonds/useBondsList.js +35 -0
- package/dist/state/bonds/useBondsList.js.map +1 -0
- package/dist/state/bonds/useBondsListPreTGE.js +36 -0
- package/dist/state/bonds/useBondsListPreTGE.js.map +1 -0
- package/dist/state/bonds/useTierProofSignature.js +46 -0
- package/dist/state/bonds/useTierProofSignature.js.map +1 -0
- package/dist/state/bonds/useUserBonds.js +131 -0
- package/dist/state/bonds/useUserBonds.js.map +1 -0
- package/dist/state/bonds/useUserBondsPreTGE.js +151 -0
- package/dist/state/bonds/useUserBondsPreTGE.js.map +1 -0
- package/dist/state/bonds/utils.js +330 -0
- package/dist/state/bonds/utils.js.map +1 -0
- package/dist/state/chainFilterOption/useChainFilterOption.js +35 -0
- package/dist/state/chainFilterOption/useChainFilterOption.js.map +1 -0
- package/dist/state/favoriteTokens/useFavoriteTokens.js +47 -0
- package/dist/state/favoriteTokens/useFavoriteTokens.js.map +1 -0
- package/dist/state/historicalPrice/useHistoricalPrice.js +26 -0
- package/dist/state/historicalPrice/useHistoricalPrice.js.map +1 -0
- package/dist/state/hotBonds/useHotBonds.js +51 -0
- package/dist/state/hotBonds/useHotBonds.js.map +1 -0
- package/dist/state/popups/usePopups.js +57 -0
- package/dist/state/popups/usePopups.js.map +1 -0
- package/dist/state/price/useCurrencyPrice.js +22 -0
- package/dist/state/price/useCurrencyPrice.js.map +1 -0
- package/dist/state/recommendations/useGetBondRecommendations.js +23 -0
- package/dist/state/recommendations/useGetBondRecommendations.js.map +1 -0
- package/dist/state/slippage/useSlippage.js +40 -0
- package/dist/state/slippage/useSlippage.js.map +1 -0
- package/dist/state/tiers/useTierPoints.js +102 -0
- package/dist/state/tiers/useTierPoints.js.map +1 -0
- package/dist/state/tokenPrices/useTokenPrices.js +36 -0
- package/dist/state/tokenPrices/useTokenPrices.js.map +1 -0
- package/dist/state/useSDKConfig.js +39 -0
- package/dist/state/useSDKConfig.js.map +1 -0
- package/dist/state/zap/getChainParam.js +58 -0
- package/dist/state/zap/getChainParam.js.map +1 -0
- package/dist/state/zap/useJupiterSolanaQuote.js +128 -0
- package/dist/state/zap/useJupiterSolanaQuote.js.map +1 -0
- package/dist/state/zap/useSoulZapBondQuote.js +168 -0
- package/dist/state/zap/useSoulZapBondQuote.js.map +1 -0
- package/dist/theme/base.js +125 -0
- package/dist/theme/base.js.map +1 -0
- package/dist/theme/colors.js +25 -0
- package/dist/theme/colors.js.map +1 -0
- package/dist/theme/components.js +321 -0
- package/dist/theme/components.js.map +1 -0
- package/dist/theme/index.js +8 -0
- package/dist/theme/index.js.map +1 -0
- package/dist/types/bondCodec.js +24 -0
- package/dist/types/bondCodec.js.map +1 -0
- package/dist/types/bondIssuanceCodec.js +32 -0
- package/dist/types/bondIssuanceCodec.js.map +1 -0
- package/dist/types/bondPricingCodec.js +22 -0
- package/dist/types/bondPricingCodec.js.map +1 -0
- package/dist/types/bondTermCodec.js +24 -0
- package/dist/types/bondTermCodec.js.map +1 -0
- package/dist/utils/calculateSolanaTrueBillPrice.js +71 -0
- package/dist/utils/calculateSolanaTrueBillPrice.js.map +1 -0
- package/dist/utils/campaignStyles.js +54 -0
- package/dist/utils/campaignStyles.js.map +1 -0
- package/dist/utils/convertToTokenValue.js +27 -0
- package/dist/utils/convertToTokenValue.js.map +1 -0
- package/dist/utils/dates/formatDate.js +16 -0
- package/dist/utils/dates/formatDate.js.map +1 -0
- package/dist/utils/derivePda.js +9 -0
- package/dist/utils/derivePda.js.map +1 -0
- package/dist/utils/displayHelpers.js +238 -0
- package/dist/utils/displayHelpers.js.map +1 -0
- package/dist/utils/formatNumber.js +52 -0
- package/dist/utils/formatNumber.js.map +1 -0
- package/dist/utils/getBalanceNumber.js +11 -0
- package/dist/utils/getBalanceNumber.js.map +1 -0
- package/dist/utils/getDotPos.js +12 -0
- package/dist/utils/getDotPos.js.map +1 -0
- package/dist/utils/getNativeTicker.js +21 -0
- package/dist/utils/getNativeTicker.js.map +1 -0
- package/dist/utils/getSolanaAccount.js +116 -0
- package/dist/utils/getSolanaAccount.js.map +1 -0
- package/dist/utils/getTimePeriods.js +67 -0
- package/dist/utils/getTimePeriods.js.map +1 -0
- package/dist/utils/index.js +16 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/multicall.js +49 -0
- package/dist/utils/multicall.js.map +1 -0
- package/dist/utils/numbers.js +7 -0
- package/dist/utils/numbers.js.map +1 -0
- package/dist/utils/remove0xPrefix.js +9 -0
- package/dist/utils/remove0xPrefix.js.map +1 -0
- package/dist/utils/reportError.js +31 -0
- package/dist/utils/reportError.js.map +1 -0
- package/dist/utils/roundNumber.js +16 -0
- package/dist/utils/roundNumber.js.map +1 -0
- package/dist/utils/solanaAtaHelper.js +40 -0
- package/dist/utils/solanaAtaHelper.js.map +1 -0
- package/dist/utils/solanaMulticall.js +44 -0
- package/dist/utils/solanaMulticall.js.map +1 -0
- package/dist/utils/solanaRpc.js +13 -0
- package/dist/utils/solanaRpc.js.map +1 -0
- package/dist/utils/track.js +7 -0
- package/dist/utils/track.js.map +1 -0
- package/dist/views/Bonds/Bonds.js +196 -0
- package/dist/views/Bonds/Bonds.js.map +1 -0
- package/dist/views/Bonds/components/BondRows/ActiveBondRows.js +66 -0
- package/dist/views/Bonds/components/BondRows/ActiveBondRows.js.map +1 -0
- package/dist/views/Bonds/components/BondRows/BondRow.js +70 -0
- package/dist/views/Bonds/components/BondRows/BondRow.js.map +1 -0
- package/dist/views/Bonds/components/BondRows/ChainTitle.js +39 -0
- package/dist/views/Bonds/components/BondRows/ChainTitle.js.map +1 -0
- package/dist/views/Bonds/components/BondRows/ModalHandler.js +104 -0
- package/dist/views/Bonds/components/BondRows/ModalHandler.js.map +1 -0
- package/dist/views/Bonds/components/BondRows/ModalHandlerPreTGE.js +39 -0
- package/dist/views/Bonds/components/BondRows/ModalHandlerPreTGE.js.map +1 -0
- package/dist/views/Bonds/components/BondRows/SoldOutRows.js +43 -0
- package/dist/views/Bonds/components/BondRows/SoldOutRows.js.map +1 -0
- package/dist/views/Bonds/components/BondsMenu/BondsMenu.js +36 -0
- package/dist/views/Bonds/components/BondsMenu/BondsMenu.js.map +1 -0
- package/dist/views/Bonds/components/BonusComponents/BonusComponent.js +59 -0
- package/dist/views/Bonds/components/BonusComponents/BonusComponent.js.map +1 -0
- package/dist/views/Bonds/components/BonusComponents/BonusContainer.js +11 -0
- package/dist/views/Bonds/components/BonusComponents/BonusContainer.js.map +1 -0
- package/dist/views/Bonds/components/BonusComponents/BonusTable.js +57 -0
- package/dist/views/Bonds/components/BonusComponents/BonusTable.js.map +1 -0
- package/dist/views/Bonds/components/BuyAgainRow/index.js +83 -0
- package/dist/views/Bonds/components/BuyAgainRow/index.js.map +1 -0
- package/dist/views/Bonds/components/ChainBanner/ChainBanner.js +84 -0
- package/dist/views/Bonds/components/ChainBanner/ChainBanner.js.map +1 -0
- package/dist/views/Bonds/components/CheckURL/index.js +44 -0
- package/dist/views/Bonds/components/CheckURL/index.js.map +1 -0
- package/dist/views/Bonds/components/HotBondCards/HotBondCard.js +54 -0
- package/dist/views/Bonds/components/HotBondCards/HotBondCard.js.map +1 -0
- package/dist/views/Bonds/components/HotBondCards/index.js +78 -0
- package/dist/views/Bonds/components/HotBondCards/index.js.map +1 -0
- package/dist/views/Bonds/components/HotBondCards/styles.js +47 -0
- package/dist/views/Bonds/components/HotBondCards/styles.js.map +1 -0
- package/dist/views/Bonds/components/LoadingSkeleton/LoadingSkeleton.js +37 -0
- package/dist/views/Bonds/components/LoadingSkeleton/LoadingSkeleton.js.map +1 -0
- package/dist/views/Bonds/components/RecommendationCards/SmallRecommendationCard.js +27 -0
- package/dist/views/Bonds/components/RecommendationCards/SmallRecommendationCard.js.map +1 -0
- package/dist/views/Bonds/components/RecommendationCards/index.js +84 -0
- package/dist/views/Bonds/components/RecommendationCards/index.js.map +1 -0
- package/dist/views/Bonds/components/RecommendationCards/styles.js +24 -0
- package/dist/views/Bonds/components/RecommendationCards/styles.js.map +1 -0
- package/dist/views/Bonds/index.js +12 -0
- package/dist/views/Bonds/index.js.map +1 -0
- package/dist/views/Bonds/utils.js +149 -0
- package/dist/views/Bonds/utils.js.map +1 -0
- package/dist/views/BuyBond/BuyBondModal.js +26 -0
- package/dist/views/BuyBond/BuyBondModal.js.map +1 -0
- package/dist/views/BuyBond/BuyComponent.js +425 -0
- package/dist/views/BuyBond/BuyComponent.js.map +1 -0
- package/dist/views/BuyBond/BuyComponentPreTGE.js +154 -0
- package/dist/views/BuyBond/BuyComponentPreTGE.js.map +1 -0
- package/dist/views/BuyBond/BuyComponentSolana.js +641 -0
- package/dist/views/BuyBond/BuyComponentSolana.js.map +1 -0
- package/dist/views/BuyBond/ParticipationSuccessful.js +78 -0
- package/dist/views/BuyBond/ParticipationSuccessful.js.map +1 -0
- package/dist/views/BuyBond/components/BondCards/BondCards.js +92 -0
- package/dist/views/BuyBond/components/BondCards/BondCards.js.map +1 -0
- package/dist/views/BuyBond/components/BondCards/BondCardsPreTGE.js +74 -0
- package/dist/views/BuyBond/components/BondCards/BondCardsPreTGE.js.map +1 -0
- package/dist/views/BuyBond/components/BondModalHeader.js +95 -0
- package/dist/views/BuyBond/components/BondModalHeader.js.map +1 -0
- package/dist/views/BuyBond/components/BondModalMinTierHeader.js +35 -0
- package/dist/views/BuyBond/components/BondModalMinTierHeader.js.map +1 -0
- package/dist/views/BuyBond/components/Estimations.js +68 -0
- package/dist/views/BuyBond/components/Estimations.js.map +1 -0
- package/dist/views/BuyBond/components/ExpandedViewButton.js +37 -0
- package/dist/views/BuyBond/components/ExpandedViewButton.js.map +1 -0
- package/dist/views/BuyBond/components/GetUpToComponent/GetUpToComponent.js +71 -0
- package/dist/views/BuyBond/components/GetUpToComponent/GetUpToComponent.js.map +1 -0
- package/dist/views/BuyBond/components/NewRateModal/NewRateModal.js +55 -0
- package/dist/views/BuyBond/components/NewRateModal/NewRateModal.js.map +1 -0
- package/dist/views/BuyBond/components/NoBonusModal/NoBonusModal.js +36 -0
- package/dist/views/BuyBond/components/NoBonusModal/NoBonusModal.js.map +1 -0
- package/dist/views/BuyBond/components/ProjectDescription.js +38 -0
- package/dist/views/BuyBond/components/ProjectDescription.js.map +1 -0
- package/dist/views/BuyBond/index.js +12 -0
- package/dist/views/BuyBond/index.js.map +1 -0
- package/dist/views/BuyBond/styles.js +33 -0
- package/dist/views/BuyBond/styles.js.map +1 -0
- package/dist/views/FullBondsView/FullBondsView.js +34 -0
- package/dist/views/FullBondsView/FullBondsView.js.map +1 -0
- package/dist/views/FullBondsView/index.js +12 -0
- package/dist/views/FullBondsView/index.js.map +1 -0
- package/dist/views/LifiModal/LifiModal.js +79 -0
- package/dist/views/LifiModal/LifiModal.js.map +1 -0
- package/dist/views/ProjectView/ProjectView.js +72 -0
- package/dist/views/ProjectView/ProjectView.js.map +1 -0
- package/dist/views/ProjectView/components/BondLeaderboard/components/SalesTable.js +56 -0
- package/dist/views/ProjectView/components/BondLeaderboard/components/SalesTable.js.map +1 -0
- package/dist/views/ProjectView/components/BondLeaderboard/components/TopSaleCard.js +46 -0
- package/dist/views/ProjectView/components/BondLeaderboard/components/TopSaleCard.js.map +1 -0
- package/dist/views/ProjectView/components/BondLeaderboard/components/TopThreeSalesCards.js +24 -0
- package/dist/views/ProjectView/components/BondLeaderboard/components/TopThreeSalesCards.js.map +1 -0
- package/dist/views/ProjectView/components/BondLeaderboard/components/styles.js +51 -0
- package/dist/views/ProjectView/components/BondLeaderboard/components/styles.js.map +1 -0
- package/dist/views/ProjectView/components/BondLeaderboard/index.js +45 -0
- package/dist/views/ProjectView/components/BondLeaderboard/index.js.map +1 -0
- package/dist/views/ProjectView/components/BondStats/index.js +97 -0
- package/dist/views/ProjectView/components/BondStats/index.js.map +1 -0
- package/dist/views/ProjectView/components/BondStats/styles.js +49 -0
- package/dist/views/ProjectView/components/BondStats/styles.js.map +1 -0
- package/dist/views/ProjectView/components/BondStats/types.js +40 -0
- package/dist/views/ProjectView/components/BondStats/types.js.map +1 -0
- package/dist/views/ProjectView/components/BondStats/utils.js +10 -0
- package/dist/views/ProjectView/components/BondStats/utils.js.map +1 -0
- package/dist/views/ProjectView/components/NavPanel/index.js +32 -0
- package/dist/views/ProjectView/components/NavPanel/index.js.map +1 -0
- package/dist/views/ProjectView/components/PriceChart/components/CandleStickChart.js +112 -0
- package/dist/views/ProjectView/components/PriceChart/components/CandleStickChart.js.map +1 -0
- package/dist/views/ProjectView/components/PriceChart/components/LineChart.js +100 -0
- package/dist/views/ProjectView/components/PriceChart/components/LineChart.js.map +1 -0
- package/dist/views/ProjectView/components/PriceChart/components/utils.js +20 -0
- package/dist/views/ProjectView/components/PriceChart/components/utils.js.map +1 -0
- package/dist/views/ProjectView/components/PriceChart/index.js +53 -0
- package/dist/views/ProjectView/components/PriceChart/index.js.map +1 -0
- package/dist/views/ProjectView/components/PriceChart/styles.js +44 -0
- package/dist/views/ProjectView/components/PriceChart/styles.js.map +1 -0
- package/dist/views/ProjectView/components/ProjectInfo/index.js +34 -0
- package/dist/views/ProjectView/components/ProjectInfo/index.js.map +1 -0
- package/dist/views/ProjectView/components/ProjectInfo/styles.js +44 -0
- package/dist/views/ProjectView/components/ProjectInfo/styles.js.map +1 -0
- package/dist/views/ProjectView/components/RecommendationCards/index.js +112 -0
- package/dist/views/ProjectView/components/RecommendationCards/index.js.map +1 -0
- package/dist/views/ProjectView/index.js +12 -0
- package/dist/views/ProjectView/index.js.map +1 -0
- package/dist/views/ProjectView/styles.js +9 -0
- package/dist/views/ProjectView/styles.js.map +1 -0
- package/dist/views/SingleBond/SingleBond.js +50 -0
- package/dist/views/SingleBond/SingleBond.js.map +1 -0
- package/dist/views/SingleBond/SoldOutBuyBondPlaceholder.js +85 -0
- package/dist/views/SingleBond/SoldOutBuyBondPlaceholder.js.map +1 -0
- package/dist/views/SingleBond/index.js +12 -0
- package/dist/views/SingleBond/index.js.map +1 -0
- package/dist/views/TransactionModal/TransactionModal.js +194 -0
- package/dist/views/TransactionModal/TransactionModal.js.map +1 -0
- package/dist/views/YourBonds/YourBonds.js +158 -0
- package/dist/views/YourBonds/YourBonds.js.map +1 -0
- package/dist/views/YourBonds/components/ClaimAll/ClaimAllModal.js +133 -0
- package/dist/views/YourBonds/components/ClaimAll/ClaimAllModal.js.map +1 -0
- package/dist/views/YourBonds/components/ClaimAll/index.js +36 -0
- package/dist/views/YourBonds/components/ClaimAll/index.js.map +1 -0
- package/dist/views/YourBonds/components/ProfitCard/ProfitCard.js +29 -0
- package/dist/views/YourBonds/components/ProfitCard/ProfitCard.js.map +1 -0
- package/dist/views/YourBonds/components/UserBondRow/PreTGEActions.js +118 -0
- package/dist/views/YourBonds/components/UserBondRow/PreTGEActions.js.map +1 -0
- package/dist/views/YourBonds/components/UserBondRow/UserBondRow.js +151 -0
- package/dist/views/YourBonds/components/UserBondRow/UserBondRow.js.map +1 -0
- package/dist/views/YourBonds/components/UserBondRow/UserBondRowPreTGE.js +58 -0
- package/dist/views/YourBonds/components/UserBondRow/UserBondRowPreTGE.js.map +1 -0
- package/dist/views/YourBonds/components/UserBondRow/UserBondRowSolana.js +183 -0
- package/dist/views/YourBonds/components/UserBondRow/UserBondRowSolana.js.map +1 -0
- package/dist/views/YourBonds/components/YourBondsMenu/YourBondsMenu.js +29 -0
- package/dist/views/YourBonds/components/YourBondsMenu/YourBondsMenu.js.map +1 -0
- package/dist/views/YourBonds/index.js +12 -0
- package/dist/views/YourBonds/index.js.map +1 -0
- package/dist/views/YourBondsModal/YourBondsModal.js +154 -0
- package/dist/views/YourBondsModal/YourBondsModal.js.map +1 -0
- package/dist/views/YourBondsModal/components/Actions/Actions.js +146 -0
- package/dist/views/YourBondsModal/components/Actions/Actions.js.map +1 -0
- package/dist/views/YourBondsModal/components/Actions/ActionsSolana.js +166 -0
- package/dist/views/YourBondsModal/components/Actions/ActionsSolana.js.map +1 -0
- package/dist/views/YourBondsModal/components/LinkShare/LinkShare.js +73 -0
- package/dist/views/YourBondsModal/components/LinkShare/LinkShare.js.map +1 -0
- package/dist/views/YourBondsModal/components/LinkShare/templateImageShare.js +94 -0
- package/dist/views/YourBondsModal/components/LinkShare/templateImageShare.js.map +1 -0
- package/dist/views/YourBondsModal/components/LinkShare/utils.js +57 -0
- package/dist/views/YourBondsModal/components/LinkShare/utils.js.map +1 -0
- package/dist/views/YourBondsModal/components/NFTImage/NFTImage.js +153 -0
- package/dist/views/YourBondsModal/components/NFTImage/NFTImage.js.map +1 -0
- package/dist/views/YourBondsModal/components/Recommendations/CardRecommendation.js +39 -0
- package/dist/views/YourBondsModal/components/Recommendations/CardRecommendation.js.map +1 -0
- package/dist/views/YourBondsModal/components/Recommendations/RecSkeleton.js +32 -0
- package/dist/views/YourBondsModal/components/Recommendations/RecSkeleton.js.map +1 -0
- package/dist/views/YourBondsModal/components/Recommendations/Recommendations.js +47 -0
- package/dist/views/YourBondsModal/components/Recommendations/Recommendations.js.map +1 -0
- package/dist/views/YourBondsModal/components/TransferBondModal/TransferAction.js +88 -0
- package/dist/views/YourBondsModal/components/TransferBondModal/TransferAction.js.map +1 -0
- package/dist/views/YourBondsModal/components/TransferBondModal/TransferActionSolana.js +103 -0
- package/dist/views/YourBondsModal/components/TransferBondModal/TransferActionSolana.js.map +1 -0
- package/dist/views/YourBondsModal/components/TransferBondModal/index.js +45 -0
- package/dist/views/YourBondsModal/components/TransferBondModal/index.js.map +1 -0
- package/dist/views/YourBondsModal/components/YourBondModalHeader/YourBondModalHeader.js +58 -0
- package/dist/views/YourBondsModal/components/YourBondModalHeader/YourBondModalHeader.js.map +1 -0
- package/package.json +70 -1
|
@@ -0,0 +1,2155 @@
|
|
|
1
|
+
import 'react';
|
|
2
|
+
|
|
3
|
+
function _arrayWithHoles(r) {
|
|
4
|
+
if (Array.isArray(r)) return r;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
function _iterableToArrayLimit(r, l) {
|
|
8
|
+
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
9
|
+
if (null != t) {
|
|
10
|
+
var e,
|
|
11
|
+
n,
|
|
12
|
+
i,
|
|
13
|
+
u,
|
|
14
|
+
a = [],
|
|
15
|
+
f = true,
|
|
16
|
+
o = false;
|
|
17
|
+
try {
|
|
18
|
+
if (i = (t = t.call(r)).next, 0 === l) ; else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
|
|
19
|
+
} catch (r) {
|
|
20
|
+
o = true, n = r;
|
|
21
|
+
} finally {
|
|
22
|
+
try {
|
|
23
|
+
if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
|
|
24
|
+
} finally {
|
|
25
|
+
if (o) throw n;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
return a;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
function _arrayLikeToArray$2(r, a) {
|
|
33
|
+
(null == a || a > r.length) && (a = r.length);
|
|
34
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
35
|
+
return n;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
function _unsupportedIterableToArray$2(r, a) {
|
|
39
|
+
if (r) {
|
|
40
|
+
if ("string" == typeof r) return _arrayLikeToArray$2(r, a);
|
|
41
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
42
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$2(r, a) : void 0;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
function _nonIterableRest() {
|
|
47
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
function _slicedToArray(r, e) {
|
|
51
|
+
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray$2(r, e) || _nonIterableRest();
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
function _typeof(o) {
|
|
55
|
+
"@babel/helpers - typeof";
|
|
56
|
+
|
|
57
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
58
|
+
return typeof o;
|
|
59
|
+
} : function (o) {
|
|
60
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
61
|
+
}, _typeof(o);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
function classNames() {
|
|
65
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
66
|
+
args[_key] = arguments[_key];
|
|
67
|
+
}
|
|
68
|
+
if (args) {
|
|
69
|
+
var classes = [];
|
|
70
|
+
for (var i = 0; i < args.length; i++) {
|
|
71
|
+
var className = args[i];
|
|
72
|
+
if (!className) {
|
|
73
|
+
continue;
|
|
74
|
+
}
|
|
75
|
+
var type = _typeof(className);
|
|
76
|
+
if (type === 'string' || type === 'number') {
|
|
77
|
+
classes.push(className);
|
|
78
|
+
} else if (type === 'object') {
|
|
79
|
+
var _classes = Array.isArray(className) ? className : Object.entries(className).map(function (_ref) {
|
|
80
|
+
var _ref2 = _slicedToArray(_ref, 2),
|
|
81
|
+
key = _ref2[0],
|
|
82
|
+
value = _ref2[1];
|
|
83
|
+
return value ? key : null;
|
|
84
|
+
});
|
|
85
|
+
classes = _classes.length ? classes.concat(_classes.filter(function (c) {
|
|
86
|
+
return !!c;
|
|
87
|
+
})) : classes;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
return classes.join(' ').trim();
|
|
91
|
+
}
|
|
92
|
+
return undefined;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
function _arrayWithoutHoles(r) {
|
|
96
|
+
if (Array.isArray(r)) return _arrayLikeToArray$2(r);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
function _iterableToArray(r) {
|
|
100
|
+
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
function _nonIterableSpread() {
|
|
104
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
function _toConsumableArray(r) {
|
|
108
|
+
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray$2(r) || _nonIterableSpread();
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
function _classCallCheck(a, n) {
|
|
112
|
+
if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
function toPrimitive(t, r) {
|
|
116
|
+
if ("object" != _typeof(t) || !t) return t;
|
|
117
|
+
var e = t[Symbol.toPrimitive];
|
|
118
|
+
if (void 0 !== e) {
|
|
119
|
+
var i = e.call(t, r);
|
|
120
|
+
if ("object" != _typeof(i)) return i;
|
|
121
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
122
|
+
}
|
|
123
|
+
return ("string" === r ? String : Number)(t);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
function toPropertyKey(t) {
|
|
127
|
+
var i = toPrimitive(t, "string");
|
|
128
|
+
return "symbol" == _typeof(i) ? i : i + "";
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
function _defineProperties(e, r) {
|
|
132
|
+
for (var t = 0; t < r.length; t++) {
|
|
133
|
+
var o = r[t];
|
|
134
|
+
o.enumerable = o.enumerable || false, o.configurable = true, "value" in o && (o.writable = true), Object.defineProperty(e, toPropertyKey(o.key), o);
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
function _createClass(e, r, t) {
|
|
138
|
+
return t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
|
|
139
|
+
writable: false
|
|
140
|
+
}), e;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
function _defineProperty(e, r, t) {
|
|
144
|
+
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
145
|
+
value: t,
|
|
146
|
+
enumerable: true,
|
|
147
|
+
configurable: true,
|
|
148
|
+
writable: true
|
|
149
|
+
}) : e[r] = t, e;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
function _createForOfIteratorHelper$1(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray$1(r)) || e) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: true } : { done: false, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = true, u = false; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = true, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
153
|
+
function _unsupportedIterableToArray$1(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray$1(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$1(r, a) : void 0; } }
|
|
154
|
+
function _arrayLikeToArray$1(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
155
|
+
var DomHandler = /*#__PURE__*/function () {
|
|
156
|
+
function DomHandler() {
|
|
157
|
+
_classCallCheck(this, DomHandler);
|
|
158
|
+
}
|
|
159
|
+
return _createClass(DomHandler, null, [{
|
|
160
|
+
key: "innerWidth",
|
|
161
|
+
value: function innerWidth(el) {
|
|
162
|
+
if (el) {
|
|
163
|
+
var width = el.offsetWidth;
|
|
164
|
+
var style = getComputedStyle(el);
|
|
165
|
+
width = width + (parseFloat(style.paddingLeft) + parseFloat(style.paddingRight));
|
|
166
|
+
return width;
|
|
167
|
+
}
|
|
168
|
+
return 0;
|
|
169
|
+
}
|
|
170
|
+
}, {
|
|
171
|
+
key: "width",
|
|
172
|
+
value: function width(el) {
|
|
173
|
+
if (el) {
|
|
174
|
+
var _width = el.offsetWidth;
|
|
175
|
+
var style = getComputedStyle(el);
|
|
176
|
+
_width = _width - (parseFloat(style.paddingLeft) + parseFloat(style.paddingRight));
|
|
177
|
+
return _width;
|
|
178
|
+
}
|
|
179
|
+
return 0;
|
|
180
|
+
}
|
|
181
|
+
}, {
|
|
182
|
+
key: "getBrowserLanguage",
|
|
183
|
+
value: function getBrowserLanguage() {
|
|
184
|
+
return navigator.userLanguage || navigator.languages && navigator.languages.length && navigator.languages[0] || navigator.language || navigator.browserLanguage || navigator.systemLanguage || 'en';
|
|
185
|
+
}
|
|
186
|
+
}, {
|
|
187
|
+
key: "getWindowScrollTop",
|
|
188
|
+
value: function getWindowScrollTop() {
|
|
189
|
+
var doc = document.documentElement;
|
|
190
|
+
return (window.pageYOffset || doc.scrollTop) - (doc.clientTop || 0);
|
|
191
|
+
}
|
|
192
|
+
}, {
|
|
193
|
+
key: "getWindowScrollLeft",
|
|
194
|
+
value: function getWindowScrollLeft() {
|
|
195
|
+
var doc = document.documentElement;
|
|
196
|
+
return (window.pageXOffset || doc.scrollLeft) - (doc.clientLeft || 0);
|
|
197
|
+
}
|
|
198
|
+
}, {
|
|
199
|
+
key: "getOuterWidth",
|
|
200
|
+
value: function getOuterWidth(el, margin) {
|
|
201
|
+
if (el) {
|
|
202
|
+
var width = el.getBoundingClientRect().width || el.offsetWidth;
|
|
203
|
+
if (margin) {
|
|
204
|
+
var style = getComputedStyle(el);
|
|
205
|
+
width = width + (parseFloat(style.marginLeft) + parseFloat(style.marginRight));
|
|
206
|
+
}
|
|
207
|
+
return width;
|
|
208
|
+
}
|
|
209
|
+
return 0;
|
|
210
|
+
}
|
|
211
|
+
}, {
|
|
212
|
+
key: "getOuterHeight",
|
|
213
|
+
value: function getOuterHeight(el, margin) {
|
|
214
|
+
if (el) {
|
|
215
|
+
var height = el.getBoundingClientRect().height || el.offsetHeight;
|
|
216
|
+
if (margin) {
|
|
217
|
+
var style = getComputedStyle(el);
|
|
218
|
+
height = height + (parseFloat(style.marginTop) + parseFloat(style.marginBottom));
|
|
219
|
+
}
|
|
220
|
+
return height;
|
|
221
|
+
}
|
|
222
|
+
return 0;
|
|
223
|
+
}
|
|
224
|
+
}, {
|
|
225
|
+
key: "getClientHeight",
|
|
226
|
+
value: function getClientHeight(el, margin) {
|
|
227
|
+
if (el) {
|
|
228
|
+
var height = el.clientHeight;
|
|
229
|
+
if (margin) {
|
|
230
|
+
var style = getComputedStyle(el);
|
|
231
|
+
height = height + (parseFloat(style.marginTop) + parseFloat(style.marginBottom));
|
|
232
|
+
}
|
|
233
|
+
return height;
|
|
234
|
+
}
|
|
235
|
+
return 0;
|
|
236
|
+
}
|
|
237
|
+
}, {
|
|
238
|
+
key: "getClientWidth",
|
|
239
|
+
value: function getClientWidth(el, margin) {
|
|
240
|
+
if (el) {
|
|
241
|
+
var width = el.clientWidth;
|
|
242
|
+
if (margin) {
|
|
243
|
+
var style = getComputedStyle(el);
|
|
244
|
+
width = width + (parseFloat(style.marginLeft) + parseFloat(style.marginRight));
|
|
245
|
+
}
|
|
246
|
+
return width;
|
|
247
|
+
}
|
|
248
|
+
return 0;
|
|
249
|
+
}
|
|
250
|
+
}, {
|
|
251
|
+
key: "getViewport",
|
|
252
|
+
value: function getViewport() {
|
|
253
|
+
var win = window;
|
|
254
|
+
var d = document;
|
|
255
|
+
var e = d.documentElement;
|
|
256
|
+
var g = d.getElementsByTagName('body')[0];
|
|
257
|
+
var w = win.innerWidth || e.clientWidth || g.clientWidth;
|
|
258
|
+
var h = win.innerHeight || e.clientHeight || g.clientHeight;
|
|
259
|
+
return {
|
|
260
|
+
width: w,
|
|
261
|
+
height: h
|
|
262
|
+
};
|
|
263
|
+
}
|
|
264
|
+
}, {
|
|
265
|
+
key: "getOffset",
|
|
266
|
+
value: function getOffset(el) {
|
|
267
|
+
if (el) {
|
|
268
|
+
var rect = el.getBoundingClientRect();
|
|
269
|
+
return {
|
|
270
|
+
top: rect.top + (window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0),
|
|
271
|
+
left: rect.left + (window.pageXOffset || document.documentElement.scrollLeft || document.body.scrollLeft || 0)
|
|
272
|
+
};
|
|
273
|
+
}
|
|
274
|
+
return {
|
|
275
|
+
top: 'auto',
|
|
276
|
+
left: 'auto'
|
|
277
|
+
};
|
|
278
|
+
}
|
|
279
|
+
}, {
|
|
280
|
+
key: "index",
|
|
281
|
+
value: function index(element) {
|
|
282
|
+
if (element) {
|
|
283
|
+
var children = element.parentNode.childNodes;
|
|
284
|
+
var num = 0;
|
|
285
|
+
for (var i = 0; i < children.length; i++) {
|
|
286
|
+
if (children[i] === element) {
|
|
287
|
+
return num;
|
|
288
|
+
}
|
|
289
|
+
if (children[i].nodeType === 1) {
|
|
290
|
+
num++;
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
return -1;
|
|
295
|
+
}
|
|
296
|
+
}, {
|
|
297
|
+
key: "addMultipleClasses",
|
|
298
|
+
value: function addMultipleClasses(element, className) {
|
|
299
|
+
if (element && className) {
|
|
300
|
+
if (element.classList) {
|
|
301
|
+
var styles = className.split(' ');
|
|
302
|
+
for (var i = 0; i < styles.length; i++) {
|
|
303
|
+
element.classList.add(styles[i]);
|
|
304
|
+
}
|
|
305
|
+
} else {
|
|
306
|
+
var _styles = className.split(' ');
|
|
307
|
+
for (var _i = 0; _i < _styles.length; _i++) {
|
|
308
|
+
element.className = element.className + (' ' + _styles[_i]);
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
}, {
|
|
314
|
+
key: "removeMultipleClasses",
|
|
315
|
+
value: function removeMultipleClasses(element, className) {
|
|
316
|
+
if (element && className) {
|
|
317
|
+
if (element.classList) {
|
|
318
|
+
var styles = className.split(' ');
|
|
319
|
+
for (var i = 0; i < styles.length; i++) {
|
|
320
|
+
element.classList.remove(styles[i]);
|
|
321
|
+
}
|
|
322
|
+
} else {
|
|
323
|
+
var _styles2 = className.split(' ');
|
|
324
|
+
for (var _i2 = 0; _i2 < _styles2.length; _i2++) {
|
|
325
|
+
element.className = element.className.replace(new RegExp('(^|\\b)' + _styles2[_i2].split(' ').join('|') + '(\\b|$)', 'gi'), ' ');
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
}, {
|
|
331
|
+
key: "addClass",
|
|
332
|
+
value: function addClass(element, className) {
|
|
333
|
+
if (element && className) {
|
|
334
|
+
if (element.classList) {
|
|
335
|
+
element.classList.add(className);
|
|
336
|
+
} else {
|
|
337
|
+
element.className = element.className + (' ' + className);
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
}, {
|
|
342
|
+
key: "removeClass",
|
|
343
|
+
value: function removeClass(element, className) {
|
|
344
|
+
if (element && className) {
|
|
345
|
+
if (element.classList) {
|
|
346
|
+
element.classList.remove(className);
|
|
347
|
+
} else {
|
|
348
|
+
element.className = element.className.replace(new RegExp('(^|\\b)' + className.split(' ').join('|') + '(\\b|$)', 'gi'), ' ');
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
}, {
|
|
353
|
+
key: "hasClass",
|
|
354
|
+
value: function hasClass(element, className) {
|
|
355
|
+
if (element) {
|
|
356
|
+
if (element.classList) {
|
|
357
|
+
return element.classList.contains(className);
|
|
358
|
+
}
|
|
359
|
+
return new RegExp('(^| )' + className + '( |$)', 'gi').test(element.className);
|
|
360
|
+
}
|
|
361
|
+
return false;
|
|
362
|
+
}
|
|
363
|
+
}, {
|
|
364
|
+
key: "addStyles",
|
|
365
|
+
value: function addStyles(element) {
|
|
366
|
+
var styles = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
367
|
+
if (element) {
|
|
368
|
+
Object.entries(styles).forEach(function (_ref) {
|
|
369
|
+
var _ref2 = _slicedToArray(_ref, 2),
|
|
370
|
+
key = _ref2[0],
|
|
371
|
+
value = _ref2[1];
|
|
372
|
+
return element.style[key] = value;
|
|
373
|
+
});
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
}, {
|
|
377
|
+
key: "find",
|
|
378
|
+
value: function find(element, selector) {
|
|
379
|
+
return element ? Array.from(element.querySelectorAll(selector)) : [];
|
|
380
|
+
}
|
|
381
|
+
}, {
|
|
382
|
+
key: "findSingle",
|
|
383
|
+
value: function findSingle(element, selector) {
|
|
384
|
+
if (element) {
|
|
385
|
+
return element.querySelector(selector);
|
|
386
|
+
}
|
|
387
|
+
return null;
|
|
388
|
+
}
|
|
389
|
+
}, {
|
|
390
|
+
key: "setAttributes",
|
|
391
|
+
value: function setAttributes(element) {
|
|
392
|
+
var _this = this;
|
|
393
|
+
var attributes = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
394
|
+
if (element) {
|
|
395
|
+
var _computedStyles = function computedStyles(rule, value) {
|
|
396
|
+
var _element$$attrs, _element$$attrs2;
|
|
397
|
+
var styles = element !== null && element !== void 0 && (_element$$attrs = element.$attrs) !== null && _element$$attrs !== void 0 && _element$$attrs[rule] ? [element === null || element === void 0 || (_element$$attrs2 = element.$attrs) === null || _element$$attrs2 === void 0 ? void 0 : _element$$attrs2[rule]] : [];
|
|
398
|
+
return [value].flat().reduce(function (cv, v) {
|
|
399
|
+
if (v !== null && v !== undefined) {
|
|
400
|
+
var type = _typeof(v);
|
|
401
|
+
if (type === 'string' || type === 'number') {
|
|
402
|
+
cv.push(v);
|
|
403
|
+
} else if (type === 'object') {
|
|
404
|
+
var _cv = Array.isArray(v) ? _computedStyles(rule, v) : Object.entries(v).map(function (_ref3) {
|
|
405
|
+
var _ref4 = _slicedToArray(_ref3, 2),
|
|
406
|
+
_k = _ref4[0],
|
|
407
|
+
_v = _ref4[1];
|
|
408
|
+
return rule === 'style' && (!!_v || _v === 0) ? "".concat(_k.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase(), ":").concat(_v) : _v ? _k : undefined;
|
|
409
|
+
});
|
|
410
|
+
cv = _cv.length ? cv.concat(_cv.filter(function (c) {
|
|
411
|
+
return !!c;
|
|
412
|
+
})) : cv;
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
return cv;
|
|
416
|
+
}, styles);
|
|
417
|
+
};
|
|
418
|
+
Object.entries(attributes).forEach(function (_ref5) {
|
|
419
|
+
var _ref6 = _slicedToArray(_ref5, 2),
|
|
420
|
+
key = _ref6[0],
|
|
421
|
+
value = _ref6[1];
|
|
422
|
+
if (value !== undefined && value !== null) {
|
|
423
|
+
var matchedEvent = key.match(/^on(.+)/);
|
|
424
|
+
if (matchedEvent) {
|
|
425
|
+
element.addEventListener(matchedEvent[1].toLowerCase(), value);
|
|
426
|
+
} else if (key === 'p-bind') {
|
|
427
|
+
_this.setAttributes(element, value);
|
|
428
|
+
} else {
|
|
429
|
+
value = key === 'class' ? _toConsumableArray(new Set(_computedStyles('class', value))).join(' ').trim() : key === 'style' ? _computedStyles('style', value).join(';').trim() : value;
|
|
430
|
+
(element.$attrs = element.$attrs || {}) && (element.$attrs[key] = value);
|
|
431
|
+
element.setAttribute(key, value);
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
});
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
}, {
|
|
438
|
+
key: "getAttribute",
|
|
439
|
+
value: function getAttribute(element, name) {
|
|
440
|
+
if (element) {
|
|
441
|
+
var value = element.getAttribute(name);
|
|
442
|
+
if (!isNaN(value)) {
|
|
443
|
+
return +value;
|
|
444
|
+
}
|
|
445
|
+
if (value === 'true' || value === 'false') {
|
|
446
|
+
return value === 'true';
|
|
447
|
+
}
|
|
448
|
+
return value;
|
|
449
|
+
}
|
|
450
|
+
return undefined;
|
|
451
|
+
}
|
|
452
|
+
}, {
|
|
453
|
+
key: "isAttributeEquals",
|
|
454
|
+
value: function isAttributeEquals(element, name, value) {
|
|
455
|
+
return element ? this.getAttribute(element, name) === value : false;
|
|
456
|
+
}
|
|
457
|
+
}, {
|
|
458
|
+
key: "isAttributeNotEquals",
|
|
459
|
+
value: function isAttributeNotEquals(element, name, value) {
|
|
460
|
+
return !this.isAttributeEquals(element, name, value);
|
|
461
|
+
}
|
|
462
|
+
}, {
|
|
463
|
+
key: "getHeight",
|
|
464
|
+
value: function getHeight(el) {
|
|
465
|
+
if (el) {
|
|
466
|
+
var height = el.offsetHeight;
|
|
467
|
+
var style = getComputedStyle(el);
|
|
468
|
+
height = height - (parseFloat(style.paddingTop) + parseFloat(style.paddingBottom) + parseFloat(style.borderTopWidth) + parseFloat(style.borderBottomWidth));
|
|
469
|
+
return height;
|
|
470
|
+
}
|
|
471
|
+
return 0;
|
|
472
|
+
}
|
|
473
|
+
}, {
|
|
474
|
+
key: "getWidth",
|
|
475
|
+
value: function getWidth(el) {
|
|
476
|
+
if (el) {
|
|
477
|
+
var width = el.offsetWidth;
|
|
478
|
+
var style = getComputedStyle(el);
|
|
479
|
+
width = width - (parseFloat(style.paddingLeft) + parseFloat(style.paddingRight) + parseFloat(style.borderLeftWidth) + parseFloat(style.borderRightWidth));
|
|
480
|
+
return width;
|
|
481
|
+
}
|
|
482
|
+
return 0;
|
|
483
|
+
}
|
|
484
|
+
}, {
|
|
485
|
+
key: "alignOverlay",
|
|
486
|
+
value: function alignOverlay(overlay, target, appendTo) {
|
|
487
|
+
var calculateMinWidth = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : true;
|
|
488
|
+
if (overlay && target) {
|
|
489
|
+
if (appendTo === 'self') {
|
|
490
|
+
this.relativePosition(overlay, target);
|
|
491
|
+
} else {
|
|
492
|
+
calculateMinWidth && (overlay.style.minWidth = DomHandler.getOuterWidth(target) + 'px');
|
|
493
|
+
this.absolutePosition(overlay, target);
|
|
494
|
+
}
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
}, {
|
|
498
|
+
key: "absolutePosition",
|
|
499
|
+
value: function absolutePosition(element, target) {
|
|
500
|
+
var align = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'left';
|
|
501
|
+
if (element && target) {
|
|
502
|
+
var elementDimensions = element.offsetParent ? {
|
|
503
|
+
width: element.offsetWidth,
|
|
504
|
+
height: element.offsetHeight
|
|
505
|
+
} : this.getHiddenElementDimensions(element);
|
|
506
|
+
var elementOuterHeight = elementDimensions.height;
|
|
507
|
+
var elementOuterWidth = elementDimensions.width;
|
|
508
|
+
var targetOuterHeight = target.offsetHeight;
|
|
509
|
+
var targetOuterWidth = target.offsetWidth;
|
|
510
|
+
var targetOffset = target.getBoundingClientRect();
|
|
511
|
+
var windowScrollTop = this.getWindowScrollTop();
|
|
512
|
+
var windowScrollLeft = this.getWindowScrollLeft();
|
|
513
|
+
var viewport = this.getViewport();
|
|
514
|
+
var top;
|
|
515
|
+
var left;
|
|
516
|
+
if (targetOffset.top + targetOuterHeight + elementOuterHeight > viewport.height) {
|
|
517
|
+
top = targetOffset.top + windowScrollTop - elementOuterHeight;
|
|
518
|
+
if (top < 0) {
|
|
519
|
+
top = windowScrollTop;
|
|
520
|
+
}
|
|
521
|
+
element.style.transformOrigin = 'bottom';
|
|
522
|
+
} else {
|
|
523
|
+
top = targetOuterHeight + targetOffset.top + windowScrollTop;
|
|
524
|
+
element.style.transformOrigin = 'top';
|
|
525
|
+
}
|
|
526
|
+
var targetOffsetPx = targetOffset.left;
|
|
527
|
+
if (align === 'left') {
|
|
528
|
+
if (targetOffsetPx + elementOuterWidth > viewport.width) {
|
|
529
|
+
left = Math.max(0, targetOffsetPx + windowScrollLeft + targetOuterWidth - elementOuterWidth);
|
|
530
|
+
} else {
|
|
531
|
+
left = targetOffsetPx + windowScrollLeft;
|
|
532
|
+
}
|
|
533
|
+
} else {
|
|
534
|
+
if (targetOffsetPx + targetOuterWidth - elementOuterWidth < 0) {
|
|
535
|
+
left = windowScrollLeft;
|
|
536
|
+
} else {
|
|
537
|
+
left = targetOffsetPx + targetOuterWidth - elementOuterWidth + windowScrollLeft;
|
|
538
|
+
}
|
|
539
|
+
}
|
|
540
|
+
element.style.top = top + 'px';
|
|
541
|
+
element.style.left = left + 'px';
|
|
542
|
+
}
|
|
543
|
+
}
|
|
544
|
+
}, {
|
|
545
|
+
key: "relativePosition",
|
|
546
|
+
value: function relativePosition(element, target) {
|
|
547
|
+
if (element && target) {
|
|
548
|
+
var elementDimensions = element.offsetParent ? {
|
|
549
|
+
width: element.offsetWidth,
|
|
550
|
+
height: element.offsetHeight
|
|
551
|
+
} : this.getHiddenElementDimensions(element);
|
|
552
|
+
var targetHeight = target.offsetHeight;
|
|
553
|
+
var targetOffset = target.getBoundingClientRect();
|
|
554
|
+
var viewport = this.getViewport();
|
|
555
|
+
var top;
|
|
556
|
+
var left;
|
|
557
|
+
if (targetOffset.top + targetHeight + elementDimensions.height > viewport.height) {
|
|
558
|
+
top = -1 * elementDimensions.height;
|
|
559
|
+
if (targetOffset.top + top < 0) {
|
|
560
|
+
top = -1 * targetOffset.top;
|
|
561
|
+
}
|
|
562
|
+
element.style.transformOrigin = 'bottom';
|
|
563
|
+
} else {
|
|
564
|
+
top = targetHeight;
|
|
565
|
+
element.style.transformOrigin = 'top';
|
|
566
|
+
}
|
|
567
|
+
if (elementDimensions.width > viewport.width) {
|
|
568
|
+
// element wider then viewport and cannot fit on screen (align at left side of viewport)
|
|
569
|
+
left = targetOffset.left * -1;
|
|
570
|
+
} else if (targetOffset.left + elementDimensions.width > viewport.width) {
|
|
571
|
+
// element wider then viewport but can be fit on screen (align at right side of viewport)
|
|
572
|
+
left = (targetOffset.left + elementDimensions.width - viewport.width) * -1;
|
|
573
|
+
} else {
|
|
574
|
+
// element fits on screen (align with target)
|
|
575
|
+
left = 0;
|
|
576
|
+
}
|
|
577
|
+
element.style.top = top + 'px';
|
|
578
|
+
element.style.left = left + 'px';
|
|
579
|
+
}
|
|
580
|
+
}
|
|
581
|
+
}, {
|
|
582
|
+
key: "flipfitCollision",
|
|
583
|
+
value: function flipfitCollision(element, target) {
|
|
584
|
+
var _this2 = this;
|
|
585
|
+
var my = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'left top';
|
|
586
|
+
var at = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 'left bottom';
|
|
587
|
+
var callback = arguments.length > 4 ? arguments[4] : undefined;
|
|
588
|
+
if (element && target) {
|
|
589
|
+
var targetOffset = target.getBoundingClientRect();
|
|
590
|
+
var viewport = this.getViewport();
|
|
591
|
+
var myArr = my.split(' ');
|
|
592
|
+
var atArr = at.split(' ');
|
|
593
|
+
var getPositionValue = function getPositionValue(arr, isOffset) {
|
|
594
|
+
return isOffset ? +arr.substring(arr.search(/(\+|-)/g)) || 0 : arr.substring(0, arr.search(/(\+|-)/g)) || arr;
|
|
595
|
+
};
|
|
596
|
+
var position = {
|
|
597
|
+
my: {
|
|
598
|
+
x: getPositionValue(myArr[0]),
|
|
599
|
+
y: getPositionValue(myArr[1] || myArr[0]),
|
|
600
|
+
offsetX: getPositionValue(myArr[0], true),
|
|
601
|
+
offsetY: getPositionValue(myArr[1] || myArr[0], true)
|
|
602
|
+
},
|
|
603
|
+
at: {
|
|
604
|
+
x: getPositionValue(atArr[0]),
|
|
605
|
+
y: getPositionValue(atArr[1] || atArr[0]),
|
|
606
|
+
offsetX: getPositionValue(atArr[0], true),
|
|
607
|
+
offsetY: getPositionValue(atArr[1] || atArr[0], true)
|
|
608
|
+
}
|
|
609
|
+
};
|
|
610
|
+
var myOffset = {
|
|
611
|
+
left: function left() {
|
|
612
|
+
var totalOffset = position.my.offsetX + position.at.offsetX;
|
|
613
|
+
return totalOffset + targetOffset.left + (position.my.x === 'left' ? 0 : -1 * (position.my.x === 'center' ? _this2.getOuterWidth(element) / 2 : _this2.getOuterWidth(element)));
|
|
614
|
+
},
|
|
615
|
+
top: function top() {
|
|
616
|
+
var totalOffset = position.my.offsetY + position.at.offsetY;
|
|
617
|
+
return totalOffset + targetOffset.top + (position.my.y === 'top' ? 0 : -1 * (position.my.y === 'center' ? _this2.getOuterHeight(element) / 2 : _this2.getOuterHeight(element)));
|
|
618
|
+
}
|
|
619
|
+
};
|
|
620
|
+
var alignWithAt = {
|
|
621
|
+
count: {
|
|
622
|
+
x: 0,
|
|
623
|
+
y: 0
|
|
624
|
+
},
|
|
625
|
+
left: function left() {
|
|
626
|
+
var left = myOffset.left();
|
|
627
|
+
var scrollLeft = DomHandler.getWindowScrollLeft();
|
|
628
|
+
element.style.left = left + scrollLeft + 'px';
|
|
629
|
+
if (this.count.x === 2) {
|
|
630
|
+
element.style.left = scrollLeft + 'px';
|
|
631
|
+
this.count.x = 0;
|
|
632
|
+
} else if (left < 0) {
|
|
633
|
+
this.count.x++;
|
|
634
|
+
position.my.x = 'left';
|
|
635
|
+
position.at.x = 'right';
|
|
636
|
+
position.my.offsetX *= -1;
|
|
637
|
+
position.at.offsetX *= -1;
|
|
638
|
+
this.right();
|
|
639
|
+
}
|
|
640
|
+
},
|
|
641
|
+
right: function right() {
|
|
642
|
+
var left = myOffset.left() + DomHandler.getOuterWidth(target);
|
|
643
|
+
var scrollLeft = DomHandler.getWindowScrollLeft();
|
|
644
|
+
element.style.left = left + scrollLeft + 'px';
|
|
645
|
+
if (this.count.x === 2) {
|
|
646
|
+
element.style.left = viewport.width - DomHandler.getOuterWidth(element) + scrollLeft + 'px';
|
|
647
|
+
this.count.x = 0;
|
|
648
|
+
} else if (left + DomHandler.getOuterWidth(element) > viewport.width) {
|
|
649
|
+
this.count.x++;
|
|
650
|
+
position.my.x = 'right';
|
|
651
|
+
position.at.x = 'left';
|
|
652
|
+
position.my.offsetX *= -1;
|
|
653
|
+
position.at.offsetX *= -1;
|
|
654
|
+
this.left();
|
|
655
|
+
}
|
|
656
|
+
},
|
|
657
|
+
top: function top() {
|
|
658
|
+
var top = myOffset.top();
|
|
659
|
+
var scrollTop = DomHandler.getWindowScrollTop();
|
|
660
|
+
element.style.top = top + scrollTop + 'px';
|
|
661
|
+
if (this.count.y === 2) {
|
|
662
|
+
element.style.left = scrollTop + 'px';
|
|
663
|
+
this.count.y = 0;
|
|
664
|
+
} else if (top < 0) {
|
|
665
|
+
this.count.y++;
|
|
666
|
+
position.my.y = 'top';
|
|
667
|
+
position.at.y = 'bottom';
|
|
668
|
+
position.my.offsetY *= -1;
|
|
669
|
+
position.at.offsetY *= -1;
|
|
670
|
+
this.bottom();
|
|
671
|
+
}
|
|
672
|
+
},
|
|
673
|
+
bottom: function bottom() {
|
|
674
|
+
var top = myOffset.top() + DomHandler.getOuterHeight(target);
|
|
675
|
+
var scrollTop = DomHandler.getWindowScrollTop();
|
|
676
|
+
element.style.top = top + scrollTop + 'px';
|
|
677
|
+
if (this.count.y === 2) {
|
|
678
|
+
element.style.left = viewport.height - DomHandler.getOuterHeight(element) + scrollTop + 'px';
|
|
679
|
+
this.count.y = 0;
|
|
680
|
+
} else if (top + DomHandler.getOuterHeight(target) > viewport.height) {
|
|
681
|
+
this.count.y++;
|
|
682
|
+
position.my.y = 'bottom';
|
|
683
|
+
position.at.y = 'top';
|
|
684
|
+
position.my.offsetY *= -1;
|
|
685
|
+
position.at.offsetY *= -1;
|
|
686
|
+
this.top();
|
|
687
|
+
}
|
|
688
|
+
},
|
|
689
|
+
center: function center(axis) {
|
|
690
|
+
if (axis === 'y') {
|
|
691
|
+
var top = myOffset.top() + DomHandler.getOuterHeight(target) / 2;
|
|
692
|
+
element.style.top = top + DomHandler.getWindowScrollTop() + 'px';
|
|
693
|
+
if (top < 0) {
|
|
694
|
+
this.bottom();
|
|
695
|
+
} else if (top + DomHandler.getOuterHeight(target) > viewport.height) {
|
|
696
|
+
this.top();
|
|
697
|
+
}
|
|
698
|
+
} else {
|
|
699
|
+
var left = myOffset.left() + DomHandler.getOuterWidth(target) / 2;
|
|
700
|
+
element.style.left = left + DomHandler.getWindowScrollLeft() + 'px';
|
|
701
|
+
if (left < 0) {
|
|
702
|
+
this.left();
|
|
703
|
+
} else if (left + DomHandler.getOuterWidth(element) > viewport.width) {
|
|
704
|
+
this.right();
|
|
705
|
+
}
|
|
706
|
+
}
|
|
707
|
+
}
|
|
708
|
+
};
|
|
709
|
+
alignWithAt[position.at.x]('x');
|
|
710
|
+
alignWithAt[position.at.y]('y');
|
|
711
|
+
if (this.isFunction(callback)) {
|
|
712
|
+
callback(position);
|
|
713
|
+
}
|
|
714
|
+
}
|
|
715
|
+
}
|
|
716
|
+
}, {
|
|
717
|
+
key: "findCollisionPosition",
|
|
718
|
+
value: function findCollisionPosition(position) {
|
|
719
|
+
if (position) {
|
|
720
|
+
var isAxisY = position === 'top' || position === 'bottom';
|
|
721
|
+
var myXPosition = position === 'left' ? 'right' : 'left';
|
|
722
|
+
var myYPosition = position === 'top' ? 'bottom' : 'top';
|
|
723
|
+
if (isAxisY) {
|
|
724
|
+
return {
|
|
725
|
+
axis: 'y',
|
|
726
|
+
my: "center ".concat(myYPosition),
|
|
727
|
+
at: "center ".concat(position)
|
|
728
|
+
};
|
|
729
|
+
}
|
|
730
|
+
return {
|
|
731
|
+
axis: 'x',
|
|
732
|
+
my: "".concat(myXPosition, " center"),
|
|
733
|
+
at: "".concat(position, " center")
|
|
734
|
+
};
|
|
735
|
+
}
|
|
736
|
+
}
|
|
737
|
+
}, {
|
|
738
|
+
key: "getParents",
|
|
739
|
+
value: function getParents(element) {
|
|
740
|
+
var parents = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
|
|
741
|
+
return element.parentNode === null ? parents : this.getParents(element.parentNode, parents.concat([element.parentNode]));
|
|
742
|
+
}
|
|
743
|
+
|
|
744
|
+
/**
|
|
745
|
+
* Gets all scrollable parent elements of a given element
|
|
746
|
+
* @param {HTMLElement} element - The element to find scrollable parents for
|
|
747
|
+
* @returns {Array} Array of scrollable parent elements
|
|
748
|
+
*/
|
|
749
|
+
}, {
|
|
750
|
+
key: "getScrollableParents",
|
|
751
|
+
value: function getScrollableParents(element) {
|
|
752
|
+
var _this3 = this;
|
|
753
|
+
var scrollableParents = [];
|
|
754
|
+
if (element) {
|
|
755
|
+
// Get all parent elements
|
|
756
|
+
var parents = this.getParents(element);
|
|
757
|
+
// Regex to match auto or scroll overflow values
|
|
758
|
+
var overflowRegex = /(auto|scroll)/;
|
|
759
|
+
|
|
760
|
+
/**
|
|
761
|
+
* Checks if an element has overflow scroll/auto in any direction
|
|
762
|
+
* @param {HTMLElement} node - Element to check
|
|
763
|
+
* @returns {boolean} True if element has overflow scroll/auto
|
|
764
|
+
*/
|
|
765
|
+
var overflowCheck = function overflowCheck(node) {
|
|
766
|
+
var styleDeclaration = node ? getComputedStyle(node) : null;
|
|
767
|
+
return styleDeclaration && (overflowRegex.test(styleDeclaration.getPropertyValue('overflow')) || overflowRegex.test(styleDeclaration.getPropertyValue('overflow-x')) || overflowRegex.test(styleDeclaration.getPropertyValue('overflow-y')));
|
|
768
|
+
};
|
|
769
|
+
|
|
770
|
+
/**
|
|
771
|
+
* Adds a scrollable parent element to the collection
|
|
772
|
+
* @param {HTMLElement} node - Element to add
|
|
773
|
+
*/
|
|
774
|
+
var addScrollableParent = function addScrollableParent(node) {
|
|
775
|
+
// For document/body/html elements, add window instead
|
|
776
|
+
scrollableParents.push(node.nodeName === 'BODY' || node.nodeName === 'HTML' || _this3.isDocument(node) ? window : node);
|
|
777
|
+
};
|
|
778
|
+
|
|
779
|
+
// Iterate through all parent elements
|
|
780
|
+
var _iterator = _createForOfIteratorHelper$1(parents),
|
|
781
|
+
_step;
|
|
782
|
+
try {
|
|
783
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
784
|
+
var _parent$dataset;
|
|
785
|
+
var parent = _step.value;
|
|
786
|
+
// Check for custom scroll selectors in data attribute
|
|
787
|
+
var scrollSelectors = parent.nodeType === 1 && ((_parent$dataset = parent.dataset) === null || _parent$dataset === void 0 ? void 0 : _parent$dataset.scrollselectors);
|
|
788
|
+
if (scrollSelectors) {
|
|
789
|
+
var selectors = scrollSelectors.split(',');
|
|
790
|
+
|
|
791
|
+
// Check each selector
|
|
792
|
+
var _iterator2 = _createForOfIteratorHelper$1(selectors),
|
|
793
|
+
_step2;
|
|
794
|
+
try {
|
|
795
|
+
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
796
|
+
var selector = _step2.value;
|
|
797
|
+
var el = this.findSingle(parent, selector);
|
|
798
|
+
if (el && overflowCheck(el)) {
|
|
799
|
+
addScrollableParent(el);
|
|
800
|
+
}
|
|
801
|
+
}
|
|
802
|
+
} catch (err) {
|
|
803
|
+
_iterator2.e(err);
|
|
804
|
+
} finally {
|
|
805
|
+
_iterator2.f();
|
|
806
|
+
}
|
|
807
|
+
}
|
|
808
|
+
|
|
809
|
+
// Check if the parent itself is scrollable
|
|
810
|
+
if (parent.nodeType === 1 && overflowCheck(parent)) {
|
|
811
|
+
addScrollableParent(parent);
|
|
812
|
+
}
|
|
813
|
+
}
|
|
814
|
+
} catch (err) {
|
|
815
|
+
_iterator.e(err);
|
|
816
|
+
} finally {
|
|
817
|
+
_iterator.f();
|
|
818
|
+
}
|
|
819
|
+
}
|
|
820
|
+
return scrollableParents;
|
|
821
|
+
}
|
|
822
|
+
}, {
|
|
823
|
+
key: "getHiddenElementOuterHeight",
|
|
824
|
+
value: function getHiddenElementOuterHeight(element) {
|
|
825
|
+
if (element) {
|
|
826
|
+
element.style.visibility = 'hidden';
|
|
827
|
+
element.style.display = 'block';
|
|
828
|
+
var elementHeight = element.offsetHeight;
|
|
829
|
+
element.style.display = 'none';
|
|
830
|
+
element.style.visibility = 'visible';
|
|
831
|
+
return elementHeight;
|
|
832
|
+
}
|
|
833
|
+
return 0;
|
|
834
|
+
}
|
|
835
|
+
}, {
|
|
836
|
+
key: "getHiddenElementOuterWidth",
|
|
837
|
+
value: function getHiddenElementOuterWidth(element) {
|
|
838
|
+
if (element) {
|
|
839
|
+
element.style.visibility = 'hidden';
|
|
840
|
+
element.style.display = 'block';
|
|
841
|
+
var elementWidth = element.offsetWidth;
|
|
842
|
+
element.style.display = 'none';
|
|
843
|
+
element.style.visibility = 'visible';
|
|
844
|
+
return elementWidth;
|
|
845
|
+
}
|
|
846
|
+
return 0;
|
|
847
|
+
}
|
|
848
|
+
}, {
|
|
849
|
+
key: "getHiddenElementDimensions",
|
|
850
|
+
value: function getHiddenElementDimensions(element) {
|
|
851
|
+
var dimensions = {};
|
|
852
|
+
if (element) {
|
|
853
|
+
element.style.visibility = 'hidden';
|
|
854
|
+
element.style.display = 'block';
|
|
855
|
+
dimensions.width = element.offsetWidth;
|
|
856
|
+
dimensions.height = element.offsetHeight;
|
|
857
|
+
element.style.display = 'none';
|
|
858
|
+
element.style.visibility = 'visible';
|
|
859
|
+
}
|
|
860
|
+
return dimensions;
|
|
861
|
+
}
|
|
862
|
+
}, {
|
|
863
|
+
key: "fadeIn",
|
|
864
|
+
value: function fadeIn(element, duration) {
|
|
865
|
+
if (element) {
|
|
866
|
+
element.style.opacity = 0;
|
|
867
|
+
var last = +new Date();
|
|
868
|
+
var opacity = 0;
|
|
869
|
+
var _tick = function tick() {
|
|
870
|
+
opacity = +element.style.opacity + (new Date().getTime() - last) / duration;
|
|
871
|
+
element.style.opacity = opacity;
|
|
872
|
+
last = +new Date();
|
|
873
|
+
if (+opacity < 1) {
|
|
874
|
+
window.requestAnimationFrame && requestAnimationFrame(_tick) || setTimeout(_tick, 16);
|
|
875
|
+
}
|
|
876
|
+
};
|
|
877
|
+
_tick();
|
|
878
|
+
}
|
|
879
|
+
}
|
|
880
|
+
}, {
|
|
881
|
+
key: "fadeOut",
|
|
882
|
+
value: function fadeOut(element, duration) {
|
|
883
|
+
if (element) {
|
|
884
|
+
var opacity = 1;
|
|
885
|
+
var interval = 50;
|
|
886
|
+
var gap = interval / duration;
|
|
887
|
+
var fading = setInterval(function () {
|
|
888
|
+
opacity = opacity - gap;
|
|
889
|
+
if (opacity <= 0) {
|
|
890
|
+
opacity = 0;
|
|
891
|
+
clearInterval(fading);
|
|
892
|
+
}
|
|
893
|
+
element.style.opacity = opacity;
|
|
894
|
+
}, interval);
|
|
895
|
+
}
|
|
896
|
+
}
|
|
897
|
+
}, {
|
|
898
|
+
key: "getUserAgent",
|
|
899
|
+
value: function getUserAgent() {
|
|
900
|
+
return navigator.userAgent;
|
|
901
|
+
}
|
|
902
|
+
}, {
|
|
903
|
+
key: "isIOS",
|
|
904
|
+
value: function isIOS() {
|
|
905
|
+
return /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
|
|
906
|
+
}
|
|
907
|
+
}, {
|
|
908
|
+
key: "isAndroid",
|
|
909
|
+
value: function isAndroid() {
|
|
910
|
+
return /(android)/i.test(navigator.userAgent);
|
|
911
|
+
}
|
|
912
|
+
}, {
|
|
913
|
+
key: "isChrome",
|
|
914
|
+
value: function isChrome() {
|
|
915
|
+
return /(chrome)/i.test(navigator.userAgent);
|
|
916
|
+
}
|
|
917
|
+
}, {
|
|
918
|
+
key: "isClient",
|
|
919
|
+
value: function isClient() {
|
|
920
|
+
return !!(typeof window !== 'undefined' && window.document && window.document.createElement);
|
|
921
|
+
}
|
|
922
|
+
}, {
|
|
923
|
+
key: "isTouchDevice",
|
|
924
|
+
value: function isTouchDevice() {
|
|
925
|
+
return 'ontouchstart' in window || navigator.maxTouchPoints > 0 || navigator.msMaxTouchPoints > 0;
|
|
926
|
+
}
|
|
927
|
+
}, {
|
|
928
|
+
key: "isFunction",
|
|
929
|
+
value: function isFunction(obj) {
|
|
930
|
+
return !!(obj && obj.constructor && obj.call && obj.apply);
|
|
931
|
+
}
|
|
932
|
+
}, {
|
|
933
|
+
key: "appendChild",
|
|
934
|
+
value: function appendChild(element, target) {
|
|
935
|
+
if (this.isElement(target)) {
|
|
936
|
+
target.appendChild(element);
|
|
937
|
+
} else if (target.el && target.el.nativeElement) {
|
|
938
|
+
target.el.nativeElement.appendChild(element);
|
|
939
|
+
} else {
|
|
940
|
+
throw new Error('Cannot append ' + target + ' to ' + element);
|
|
941
|
+
}
|
|
942
|
+
}
|
|
943
|
+
}, {
|
|
944
|
+
key: "removeChild",
|
|
945
|
+
value: function removeChild(element, target) {
|
|
946
|
+
if (this.isElement(target)) {
|
|
947
|
+
target.removeChild(element);
|
|
948
|
+
} else if (target.el && target.el.nativeElement) {
|
|
949
|
+
target.el.nativeElement.removeChild(element);
|
|
950
|
+
} else {
|
|
951
|
+
throw new Error('Cannot remove ' + element + ' from ' + target);
|
|
952
|
+
}
|
|
953
|
+
}
|
|
954
|
+
}, {
|
|
955
|
+
key: "isElement",
|
|
956
|
+
value: function isElement(obj) {
|
|
957
|
+
return (typeof HTMLElement === "undefined" ? "undefined" : _typeof(HTMLElement)) === 'object' ? obj instanceof HTMLElement : obj && _typeof(obj) === 'object' && obj !== null && obj.nodeType === 1 && typeof obj.nodeName === 'string';
|
|
958
|
+
}
|
|
959
|
+
}, {
|
|
960
|
+
key: "isDocument",
|
|
961
|
+
value: function isDocument(obj) {
|
|
962
|
+
return (typeof Document === "undefined" ? "undefined" : _typeof(Document)) === 'object' ? obj instanceof Document : obj && _typeof(obj) === 'object' && obj !== null && obj.nodeType === 9;
|
|
963
|
+
}
|
|
964
|
+
}, {
|
|
965
|
+
key: "scrollInView",
|
|
966
|
+
value: function scrollInView(container, item) {
|
|
967
|
+
var borderTopValue = getComputedStyle(container).getPropertyValue('border-top-width');
|
|
968
|
+
var borderTop = borderTopValue ? parseFloat(borderTopValue) : 0;
|
|
969
|
+
var paddingTopValue = getComputedStyle(container).getPropertyValue('padding-top');
|
|
970
|
+
var paddingTop = paddingTopValue ? parseFloat(paddingTopValue) : 0;
|
|
971
|
+
var containerRect = container.getBoundingClientRect();
|
|
972
|
+
var itemRect = item.getBoundingClientRect();
|
|
973
|
+
var offset = itemRect.top + document.body.scrollTop - (containerRect.top + document.body.scrollTop) - borderTop - paddingTop;
|
|
974
|
+
var scroll = container.scrollTop;
|
|
975
|
+
var elementHeight = container.clientHeight;
|
|
976
|
+
var itemHeight = this.getOuterHeight(item);
|
|
977
|
+
if (offset < 0) {
|
|
978
|
+
container.scrollTop = scroll + offset;
|
|
979
|
+
} else if (offset + itemHeight > elementHeight) {
|
|
980
|
+
container.scrollTop = scroll + offset - elementHeight + itemHeight;
|
|
981
|
+
}
|
|
982
|
+
}
|
|
983
|
+
}, {
|
|
984
|
+
key: "clearSelection",
|
|
985
|
+
value: function clearSelection() {
|
|
986
|
+
if (window.getSelection) {
|
|
987
|
+
if (window.getSelection().empty) {
|
|
988
|
+
window.getSelection().empty();
|
|
989
|
+
} else if (window.getSelection().removeAllRanges && window.getSelection().rangeCount > 0 && window.getSelection().getRangeAt(0).getClientRects().length > 0) {
|
|
990
|
+
window.getSelection().removeAllRanges();
|
|
991
|
+
}
|
|
992
|
+
} else if (document.selection && document.selection.empty) {
|
|
993
|
+
try {
|
|
994
|
+
document.selection.empty();
|
|
995
|
+
} catch (error) {
|
|
996
|
+
//ignore IE bug
|
|
997
|
+
}
|
|
998
|
+
}
|
|
999
|
+
}
|
|
1000
|
+
}, {
|
|
1001
|
+
key: "calculateScrollbarWidth",
|
|
1002
|
+
value: function calculateScrollbarWidth(el) {
|
|
1003
|
+
if (el) {
|
|
1004
|
+
var style = getComputedStyle(el);
|
|
1005
|
+
return el.offsetWidth - el.clientWidth - parseFloat(style.borderLeftWidth) - parseFloat(style.borderRightWidth);
|
|
1006
|
+
}
|
|
1007
|
+
if (this.calculatedScrollbarWidth != null) {
|
|
1008
|
+
return this.calculatedScrollbarWidth;
|
|
1009
|
+
}
|
|
1010
|
+
var scrollDiv = document.createElement('div');
|
|
1011
|
+
scrollDiv.className = 'p-scrollbar-measure';
|
|
1012
|
+
document.body.appendChild(scrollDiv);
|
|
1013
|
+
var scrollbarWidth = scrollDiv.offsetWidth - scrollDiv.clientWidth;
|
|
1014
|
+
document.body.removeChild(scrollDiv);
|
|
1015
|
+
this.calculatedScrollbarWidth = scrollbarWidth;
|
|
1016
|
+
return scrollbarWidth;
|
|
1017
|
+
}
|
|
1018
|
+
}, {
|
|
1019
|
+
key: "calculateBodyScrollbarWidth",
|
|
1020
|
+
value: function calculateBodyScrollbarWidth() {
|
|
1021
|
+
return window.innerWidth - document.documentElement.offsetWidth;
|
|
1022
|
+
}
|
|
1023
|
+
}, {
|
|
1024
|
+
key: "getBrowser",
|
|
1025
|
+
value: function getBrowser() {
|
|
1026
|
+
if (!this.browser) {
|
|
1027
|
+
var matched = this.resolveUserAgent();
|
|
1028
|
+
this.browser = {};
|
|
1029
|
+
if (matched.browser) {
|
|
1030
|
+
this.browser[matched.browser] = true;
|
|
1031
|
+
this.browser.version = matched.version;
|
|
1032
|
+
}
|
|
1033
|
+
if (this.browser.chrome) {
|
|
1034
|
+
this.browser.webkit = true;
|
|
1035
|
+
} else if (this.browser.webkit) {
|
|
1036
|
+
this.browser.safari = true;
|
|
1037
|
+
}
|
|
1038
|
+
}
|
|
1039
|
+
return this.browser;
|
|
1040
|
+
}
|
|
1041
|
+
}, {
|
|
1042
|
+
key: "resolveUserAgent",
|
|
1043
|
+
value: function resolveUserAgent() {
|
|
1044
|
+
var ua = navigator.userAgent.toLowerCase();
|
|
1045
|
+
var match = /(chrome)[ ]([\w.]+)/.exec(ua) || /(webkit)[ ]([\w.]+)/.exec(ua) || /(opera)(?:.*version|)[ ]([\w.]+)/.exec(ua) || /(msie) ([\w.]+)/.exec(ua) || ua.indexOf('compatible') < 0 && /(mozilla)(?:.*? rv:([\w.]+)|)/.exec(ua) || [];
|
|
1046
|
+
return {
|
|
1047
|
+
browser: match[1] || '',
|
|
1048
|
+
version: match[2] || '0'
|
|
1049
|
+
};
|
|
1050
|
+
}
|
|
1051
|
+
}, {
|
|
1052
|
+
key: "blockBodyScroll",
|
|
1053
|
+
value: function blockBodyScroll() {
|
|
1054
|
+
var className = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'p-overflow-hidden';
|
|
1055
|
+
/* PR Ref: https://github.com/primefaces/primereact/pull/4976
|
|
1056
|
+
* @todo This method is called several times after this PR. Refactors will be made to prevent this in future releases.
|
|
1057
|
+
*/
|
|
1058
|
+
var hasScrollbarWidth = !!document.body.style.getPropertyValue('--scrollbar-width');
|
|
1059
|
+
!hasScrollbarWidth && document.body.style.setProperty('--scrollbar-width', this.calculateBodyScrollbarWidth() + 'px');
|
|
1060
|
+
this.addClass(document.body, className);
|
|
1061
|
+
}
|
|
1062
|
+
}, {
|
|
1063
|
+
key: "unblockBodyScroll",
|
|
1064
|
+
value: function unblockBodyScroll() {
|
|
1065
|
+
var className = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'p-overflow-hidden';
|
|
1066
|
+
document.body.style.removeProperty('--scrollbar-width');
|
|
1067
|
+
this.removeClass(document.body, className);
|
|
1068
|
+
}
|
|
1069
|
+
}, {
|
|
1070
|
+
key: "isVisible",
|
|
1071
|
+
value: function isVisible(element) {
|
|
1072
|
+
// https://stackoverflow.com/a/59096915/502366 (in future use IntersectionObserver)
|
|
1073
|
+
return element && (element.clientHeight !== 0 || element.getClientRects().length !== 0 || getComputedStyle(element).display !== 'none');
|
|
1074
|
+
}
|
|
1075
|
+
}, {
|
|
1076
|
+
key: "isExist",
|
|
1077
|
+
value: function isExist(element) {
|
|
1078
|
+
return !!(element !== null && typeof element !== 'undefined' && element.nodeName && element.parentNode);
|
|
1079
|
+
}
|
|
1080
|
+
}, {
|
|
1081
|
+
key: "getFocusableElements",
|
|
1082
|
+
value: function getFocusableElements(element) {
|
|
1083
|
+
var selector = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
|
1084
|
+
var focusableElements = DomHandler.find(element, "button:not([tabindex = \"-1\"]):not([disabled]):not([style*=\"display:none\"]):not([hidden])".concat(selector, ",\n [href][clientHeight][clientWidth]:not([tabindex = \"-1\"]):not([disabled]):not([style*=\"display:none\"]):not([hidden])").concat(selector, ",\n input:not([tabindex = \"-1\"]):not([disabled]):not([style*=\"display:none\"]):not([hidden])").concat(selector, ",\n select:not([tabindex = \"-1\"]):not([disabled]):not([style*=\"display:none\"]):not([hidden])").concat(selector, ",\n textarea:not([tabindex = \"-1\"]):not([disabled]):not([style*=\"display:none\"]):not([hidden])").concat(selector, ",\n [tabIndex]:not([tabIndex = \"-1\"]):not([disabled]):not([style*=\"display:none\"]):not([hidden])").concat(selector, ",\n [contenteditable]:not([tabIndex = \"-1\"]):not([disabled]):not([style*=\"display:none\"]):not([hidden])").concat(selector));
|
|
1085
|
+
var visibleFocusableElements = [];
|
|
1086
|
+
var _iterator3 = _createForOfIteratorHelper$1(focusableElements),
|
|
1087
|
+
_step3;
|
|
1088
|
+
try {
|
|
1089
|
+
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
1090
|
+
var focusableElement = _step3.value;
|
|
1091
|
+
if (getComputedStyle(focusableElement).display !== 'none' && getComputedStyle(focusableElement).visibility !== 'hidden') {
|
|
1092
|
+
visibleFocusableElements.push(focusableElement);
|
|
1093
|
+
}
|
|
1094
|
+
}
|
|
1095
|
+
} catch (err) {
|
|
1096
|
+
_iterator3.e(err);
|
|
1097
|
+
} finally {
|
|
1098
|
+
_iterator3.f();
|
|
1099
|
+
}
|
|
1100
|
+
return visibleFocusableElements;
|
|
1101
|
+
}
|
|
1102
|
+
}, {
|
|
1103
|
+
key: "getFirstFocusableElement",
|
|
1104
|
+
value: function getFirstFocusableElement(element, selector) {
|
|
1105
|
+
var focusableElements = DomHandler.getFocusableElements(element, selector);
|
|
1106
|
+
return focusableElements.length > 0 ? focusableElements[0] : null;
|
|
1107
|
+
}
|
|
1108
|
+
}, {
|
|
1109
|
+
key: "getLastFocusableElement",
|
|
1110
|
+
value: function getLastFocusableElement(element, selector) {
|
|
1111
|
+
var focusableElements = DomHandler.getFocusableElements(element, selector);
|
|
1112
|
+
return focusableElements.length > 0 ? focusableElements[focusableElements.length - 1] : null;
|
|
1113
|
+
}
|
|
1114
|
+
|
|
1115
|
+
/**
|
|
1116
|
+
* Focus an input element if it does not already have focus.
|
|
1117
|
+
*
|
|
1118
|
+
* @param {HTMLElement} el a HTML element
|
|
1119
|
+
* @param {boolean} scrollTo flag to control whether to scroll to the element, false by default
|
|
1120
|
+
*/
|
|
1121
|
+
}, {
|
|
1122
|
+
key: "focus",
|
|
1123
|
+
value: function focus(el, scrollTo) {
|
|
1124
|
+
var preventScroll = scrollTo === undefined ? true : !scrollTo;
|
|
1125
|
+
el && document.activeElement !== el && el.focus({
|
|
1126
|
+
preventScroll: preventScroll
|
|
1127
|
+
});
|
|
1128
|
+
}
|
|
1129
|
+
|
|
1130
|
+
/**
|
|
1131
|
+
* Focus the first focusable element if it does not already have focus.
|
|
1132
|
+
*
|
|
1133
|
+
* @param {HTMLElement} el a HTML element
|
|
1134
|
+
* @param {boolean} scrollTo flag to control whether to scroll to the element, false by default
|
|
1135
|
+
* @return {HTMLElement | undefined} the first focusable HTML element found
|
|
1136
|
+
*/
|
|
1137
|
+
}, {
|
|
1138
|
+
key: "focusFirstElement",
|
|
1139
|
+
value: function focusFirstElement(el, scrollTo) {
|
|
1140
|
+
if (!el) {
|
|
1141
|
+
return;
|
|
1142
|
+
}
|
|
1143
|
+
var firstFocusableElement = DomHandler.getFirstFocusableElement(el);
|
|
1144
|
+
firstFocusableElement && DomHandler.focus(firstFocusableElement, scrollTo);
|
|
1145
|
+
return firstFocusableElement;
|
|
1146
|
+
}
|
|
1147
|
+
}, {
|
|
1148
|
+
key: "getCursorOffset",
|
|
1149
|
+
value: function getCursorOffset(el, prevText, nextText, currentText) {
|
|
1150
|
+
if (el) {
|
|
1151
|
+
var style = getComputedStyle(el);
|
|
1152
|
+
var ghostDiv = document.createElement('div');
|
|
1153
|
+
ghostDiv.style.position = 'absolute';
|
|
1154
|
+
ghostDiv.style.top = '0px';
|
|
1155
|
+
ghostDiv.style.left = '0px';
|
|
1156
|
+
ghostDiv.style.visibility = 'hidden';
|
|
1157
|
+
ghostDiv.style.pointerEvents = 'none';
|
|
1158
|
+
ghostDiv.style.overflow = style.overflow;
|
|
1159
|
+
ghostDiv.style.width = style.width;
|
|
1160
|
+
ghostDiv.style.height = style.height;
|
|
1161
|
+
ghostDiv.style.padding = style.padding;
|
|
1162
|
+
ghostDiv.style.border = style.border;
|
|
1163
|
+
ghostDiv.style.overflowWrap = style.overflowWrap;
|
|
1164
|
+
ghostDiv.style.whiteSpace = style.whiteSpace;
|
|
1165
|
+
ghostDiv.style.lineHeight = style.lineHeight;
|
|
1166
|
+
ghostDiv.innerHTML = prevText.replace(/\r\n|\r|\n/g, '<br />');
|
|
1167
|
+
var ghostSpan = document.createElement('span');
|
|
1168
|
+
ghostSpan.textContent = currentText;
|
|
1169
|
+
ghostDiv.appendChild(ghostSpan);
|
|
1170
|
+
var text = document.createTextNode(nextText);
|
|
1171
|
+
ghostDiv.appendChild(text);
|
|
1172
|
+
document.body.appendChild(ghostDiv);
|
|
1173
|
+
var offsetLeft = ghostSpan.offsetLeft,
|
|
1174
|
+
offsetTop = ghostSpan.offsetTop,
|
|
1175
|
+
clientHeight = ghostSpan.clientHeight;
|
|
1176
|
+
document.body.removeChild(ghostDiv);
|
|
1177
|
+
return {
|
|
1178
|
+
left: Math.abs(offsetLeft - el.scrollLeft),
|
|
1179
|
+
top: Math.abs(offsetTop - el.scrollTop) + clientHeight
|
|
1180
|
+
};
|
|
1181
|
+
}
|
|
1182
|
+
return {
|
|
1183
|
+
top: 'auto',
|
|
1184
|
+
left: 'auto'
|
|
1185
|
+
};
|
|
1186
|
+
}
|
|
1187
|
+
}, {
|
|
1188
|
+
key: "invokeElementMethod",
|
|
1189
|
+
value: function invokeElementMethod(element, methodName, args) {
|
|
1190
|
+
element[methodName].apply(element, args);
|
|
1191
|
+
}
|
|
1192
|
+
}, {
|
|
1193
|
+
key: "isClickable",
|
|
1194
|
+
value: function isClickable(element) {
|
|
1195
|
+
var targetNode = element.nodeName;
|
|
1196
|
+
var parentNode = element.parentElement && element.parentElement.nodeName;
|
|
1197
|
+
return targetNode === 'INPUT' || targetNode === 'TEXTAREA' || targetNode === 'BUTTON' || targetNode === 'A' || parentNode === 'INPUT' || parentNode === 'TEXTAREA' || parentNode === 'BUTTON' || parentNode === 'A' || this.hasClass(element, 'p-button') || this.hasClass(element.parentElement, 'p-button') || this.hasClass(element.parentElement, 'p-checkbox') || this.hasClass(element.parentElement, 'p-radiobutton');
|
|
1198
|
+
}
|
|
1199
|
+
}, {
|
|
1200
|
+
key: "applyStyle",
|
|
1201
|
+
value: function applyStyle(element, style) {
|
|
1202
|
+
if (typeof style === 'string') {
|
|
1203
|
+
element.style.cssText = style;
|
|
1204
|
+
} else {
|
|
1205
|
+
for (var prop in style) {
|
|
1206
|
+
element.style[prop] = style[prop];
|
|
1207
|
+
}
|
|
1208
|
+
}
|
|
1209
|
+
}
|
|
1210
|
+
}, {
|
|
1211
|
+
key: "exportCSV",
|
|
1212
|
+
value: function exportCSV(csv, filename) {
|
|
1213
|
+
var blob = new Blob([csv], {
|
|
1214
|
+
type: 'application/csv;charset=utf-8;'
|
|
1215
|
+
});
|
|
1216
|
+
if (window.navigator.msSaveOrOpenBlob) {
|
|
1217
|
+
navigator.msSaveOrOpenBlob(blob, filename + '.csv');
|
|
1218
|
+
} else {
|
|
1219
|
+
var isDownloaded = DomHandler.saveAs({
|
|
1220
|
+
name: filename + '.csv',
|
|
1221
|
+
src: URL.createObjectURL(blob)
|
|
1222
|
+
});
|
|
1223
|
+
if (!isDownloaded) {
|
|
1224
|
+
csv = 'data:text/csv;charset=utf-8,' + csv;
|
|
1225
|
+
window.open(encodeURI(csv));
|
|
1226
|
+
}
|
|
1227
|
+
}
|
|
1228
|
+
}
|
|
1229
|
+
}, {
|
|
1230
|
+
key: "saveAs",
|
|
1231
|
+
value: function saveAs(file) {
|
|
1232
|
+
if (file) {
|
|
1233
|
+
var link = document.createElement('a');
|
|
1234
|
+
if (link.download !== undefined) {
|
|
1235
|
+
var name = file.name,
|
|
1236
|
+
src = file.src;
|
|
1237
|
+
link.setAttribute('href', src);
|
|
1238
|
+
link.setAttribute('download', name);
|
|
1239
|
+
link.style.display = 'none';
|
|
1240
|
+
document.body.appendChild(link);
|
|
1241
|
+
link.click();
|
|
1242
|
+
document.body.removeChild(link);
|
|
1243
|
+
return true;
|
|
1244
|
+
}
|
|
1245
|
+
}
|
|
1246
|
+
return false;
|
|
1247
|
+
}
|
|
1248
|
+
}, {
|
|
1249
|
+
key: "createInlineStyle",
|
|
1250
|
+
value: function createInlineStyle(nonce, styleContainer) {
|
|
1251
|
+
var styleElement = document.createElement('style');
|
|
1252
|
+
DomHandler.addNonce(styleElement, nonce);
|
|
1253
|
+
if (!styleContainer) {
|
|
1254
|
+
styleContainer = document.head;
|
|
1255
|
+
}
|
|
1256
|
+
styleContainer.appendChild(styleElement);
|
|
1257
|
+
return styleElement;
|
|
1258
|
+
}
|
|
1259
|
+
}, {
|
|
1260
|
+
key: "removeInlineStyle",
|
|
1261
|
+
value: function removeInlineStyle(styleElement) {
|
|
1262
|
+
if (this.isExist(styleElement)) {
|
|
1263
|
+
try {
|
|
1264
|
+
styleElement.parentNode.removeChild(styleElement);
|
|
1265
|
+
} catch (error) {
|
|
1266
|
+
// style element may have already been removed in a fast refresh
|
|
1267
|
+
}
|
|
1268
|
+
styleElement = null;
|
|
1269
|
+
}
|
|
1270
|
+
return styleElement;
|
|
1271
|
+
}
|
|
1272
|
+
}, {
|
|
1273
|
+
key: "addNonce",
|
|
1274
|
+
value: function addNonce(styleElement, nonce) {
|
|
1275
|
+
try {
|
|
1276
|
+
if (!nonce) {
|
|
1277
|
+
nonce = process.env.REACT_APP_CSS_NONCE;
|
|
1278
|
+
}
|
|
1279
|
+
} catch (error) {
|
|
1280
|
+
// NOOP
|
|
1281
|
+
}
|
|
1282
|
+
nonce && styleElement.setAttribute('nonce', nonce);
|
|
1283
|
+
}
|
|
1284
|
+
}, {
|
|
1285
|
+
key: "getTargetElement",
|
|
1286
|
+
value: function getTargetElement(target) {
|
|
1287
|
+
if (!target) {
|
|
1288
|
+
return null;
|
|
1289
|
+
}
|
|
1290
|
+
if (target === 'document') {
|
|
1291
|
+
return document;
|
|
1292
|
+
} else if (target === 'window') {
|
|
1293
|
+
return window;
|
|
1294
|
+
} else if (_typeof(target) === 'object' && target.hasOwnProperty('current')) {
|
|
1295
|
+
return this.isExist(target.current) ? target.current : null;
|
|
1296
|
+
}
|
|
1297
|
+
var isFunction = function isFunction(obj) {
|
|
1298
|
+
return !!(obj && obj.constructor && obj.call && obj.apply);
|
|
1299
|
+
};
|
|
1300
|
+
var element = isFunction(target) ? target() : target;
|
|
1301
|
+
return this.isDocument(element) || this.isExist(element) ? element : null;
|
|
1302
|
+
}
|
|
1303
|
+
|
|
1304
|
+
/**
|
|
1305
|
+
* Get the attribute names for an element and sorts them alpha for comparison
|
|
1306
|
+
*/
|
|
1307
|
+
}, {
|
|
1308
|
+
key: "getAttributeNames",
|
|
1309
|
+
value: function getAttributeNames(node) {
|
|
1310
|
+
var index;
|
|
1311
|
+
var rv;
|
|
1312
|
+
var attrs;
|
|
1313
|
+
rv = [];
|
|
1314
|
+
attrs = node.attributes;
|
|
1315
|
+
for (index = 0; index < attrs.length; ++index) {
|
|
1316
|
+
rv.push(attrs[index].nodeName);
|
|
1317
|
+
}
|
|
1318
|
+
rv.sort();
|
|
1319
|
+
return rv;
|
|
1320
|
+
}
|
|
1321
|
+
|
|
1322
|
+
/**
|
|
1323
|
+
* Compare two elements for equality. Even will compare if the style element
|
|
1324
|
+
* is out of order for example:
|
|
1325
|
+
*
|
|
1326
|
+
* elem1 = style="color: red; font-size: 28px"
|
|
1327
|
+
* elem2 = style="font-size: 28px; color: red"
|
|
1328
|
+
*/
|
|
1329
|
+
}, {
|
|
1330
|
+
key: "isEqualElement",
|
|
1331
|
+
value: function isEqualElement(elm1, elm2) {
|
|
1332
|
+
var attrs1;
|
|
1333
|
+
var attrs2;
|
|
1334
|
+
var name;
|
|
1335
|
+
var node1;
|
|
1336
|
+
var node2;
|
|
1337
|
+
|
|
1338
|
+
// Compare attributes without order sensitivity
|
|
1339
|
+
attrs1 = DomHandler.getAttributeNames(elm1);
|
|
1340
|
+
attrs2 = DomHandler.getAttributeNames(elm2);
|
|
1341
|
+
if (attrs1.join(',') !== attrs2.join(',')) {
|
|
1342
|
+
// console.log("Found nodes with different sets of attributes; not equiv");
|
|
1343
|
+
return false;
|
|
1344
|
+
}
|
|
1345
|
+
|
|
1346
|
+
// ...and values
|
|
1347
|
+
// unless you want to compare DOM0 event handlers
|
|
1348
|
+
// (onclick="...")
|
|
1349
|
+
for (var index = 0; index < attrs1.length; ++index) {
|
|
1350
|
+
name = attrs1[index];
|
|
1351
|
+
if (name === 'style') {
|
|
1352
|
+
var astyle = elm1.style;
|
|
1353
|
+
var bstyle = elm2.style;
|
|
1354
|
+
var rexDigitsOnly = /^\d+$/;
|
|
1355
|
+
for (var _i3 = 0, _Object$keys = Object.keys(astyle); _i3 < _Object$keys.length; _i3++) {
|
|
1356
|
+
var key = _Object$keys[_i3];
|
|
1357
|
+
if (!rexDigitsOnly.test(key) && astyle[key] !== bstyle[key]) {
|
|
1358
|
+
// Not equivalent, stop
|
|
1359
|
+
//console.log("Found nodes with mis-matched values for attribute '" + name + "'; not equiv");
|
|
1360
|
+
return false;
|
|
1361
|
+
}
|
|
1362
|
+
}
|
|
1363
|
+
} else if (elm1.getAttribute(name) !== elm2.getAttribute(name)) {
|
|
1364
|
+
// console.log("Found nodes with mis-matched values for attribute '" + name + "'; not equiv");
|
|
1365
|
+
return false;
|
|
1366
|
+
}
|
|
1367
|
+
}
|
|
1368
|
+
|
|
1369
|
+
// Walk the children
|
|
1370
|
+
for (node1 = elm1.firstChild, node2 = elm2.firstChild; node1 && node2; node1 = node1.nextSibling, node2 = node2.nextSibling) {
|
|
1371
|
+
if (node1.nodeType !== node2.nodeType) {
|
|
1372
|
+
// display("Found nodes of different types; not equiv");
|
|
1373
|
+
return false;
|
|
1374
|
+
}
|
|
1375
|
+
if (node1.nodeType === 1) {
|
|
1376
|
+
// Element
|
|
1377
|
+
if (!DomHandler.isEqualElement(node1, node2)) {
|
|
1378
|
+
return false;
|
|
1379
|
+
}
|
|
1380
|
+
} else if (node1.nodeValue !== node2.nodeValue) {
|
|
1381
|
+
// console.log("Found nodes with mis-matched nodeValues; not equiv");
|
|
1382
|
+
return false;
|
|
1383
|
+
}
|
|
1384
|
+
}
|
|
1385
|
+
if (node1 || node2) {
|
|
1386
|
+
// One of the elements had more nodes than the other
|
|
1387
|
+
// console.log("Found more children of one element than the other; not equivalent");
|
|
1388
|
+
return false;
|
|
1389
|
+
}
|
|
1390
|
+
|
|
1391
|
+
// Seem the same
|
|
1392
|
+
return true;
|
|
1393
|
+
}
|
|
1394
|
+
}, {
|
|
1395
|
+
key: "hasCSSAnimation",
|
|
1396
|
+
value: function hasCSSAnimation(element) {
|
|
1397
|
+
if (element) {
|
|
1398
|
+
var style = getComputedStyle(element);
|
|
1399
|
+
var animationDuration = parseFloat(style.getPropertyValue('animation-duration') || '0');
|
|
1400
|
+
return animationDuration > 0;
|
|
1401
|
+
}
|
|
1402
|
+
return false;
|
|
1403
|
+
}
|
|
1404
|
+
}, {
|
|
1405
|
+
key: "hasCSSTransition",
|
|
1406
|
+
value: function hasCSSTransition(element) {
|
|
1407
|
+
if (element) {
|
|
1408
|
+
var style = getComputedStyle(element);
|
|
1409
|
+
var transitionDuration = parseFloat(style.getPropertyValue('transition-duration') || '0');
|
|
1410
|
+
return transitionDuration > 0;
|
|
1411
|
+
}
|
|
1412
|
+
return false;
|
|
1413
|
+
}
|
|
1414
|
+
}]);
|
|
1415
|
+
}();
|
|
1416
|
+
/**
|
|
1417
|
+
* All data- properties like data-test-id
|
|
1418
|
+
*/
|
|
1419
|
+
_defineProperty(DomHandler, "DATA_PROPS", ['data-']);
|
|
1420
|
+
/**
|
|
1421
|
+
* All ARIA properties like aria-label and focus-target for https://www.npmjs.com/package/@q42/floating-focus-a11y
|
|
1422
|
+
*/
|
|
1423
|
+
_defineProperty(DomHandler, "ARIA_PROPS", ['aria', 'focus-target']);
|
|
1424
|
+
|
|
1425
|
+
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: true } : { done: false, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = true, u = false; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = true, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
1426
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
1427
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
1428
|
+
var ObjectUtils = /*#__PURE__*/function () {
|
|
1429
|
+
function ObjectUtils() {
|
|
1430
|
+
_classCallCheck(this, ObjectUtils);
|
|
1431
|
+
}
|
|
1432
|
+
return _createClass(ObjectUtils, null, [{
|
|
1433
|
+
key: "equals",
|
|
1434
|
+
value: function equals(obj1, obj2, field) {
|
|
1435
|
+
if (field && obj1 && _typeof(obj1) === 'object' && obj2 && _typeof(obj2) === 'object') {
|
|
1436
|
+
return this.deepEquals(this.resolveFieldData(obj1, field), this.resolveFieldData(obj2, field));
|
|
1437
|
+
}
|
|
1438
|
+
return this.deepEquals(obj1, obj2);
|
|
1439
|
+
}
|
|
1440
|
+
|
|
1441
|
+
/**
|
|
1442
|
+
* Compares two JSON objects for deep equality recursively comparing both objects.
|
|
1443
|
+
* @param {*} a the first JSON object
|
|
1444
|
+
* @param {*} b the second JSON object
|
|
1445
|
+
* @returns true if equals, false it not
|
|
1446
|
+
*/
|
|
1447
|
+
}, {
|
|
1448
|
+
key: "deepEquals",
|
|
1449
|
+
value: function deepEquals(a, b) {
|
|
1450
|
+
if (a === b) {
|
|
1451
|
+
return true;
|
|
1452
|
+
}
|
|
1453
|
+
if (a && b && _typeof(a) === 'object' && _typeof(b) === 'object') {
|
|
1454
|
+
var arrA = Array.isArray(a);
|
|
1455
|
+
var arrB = Array.isArray(b);
|
|
1456
|
+
var i;
|
|
1457
|
+
var length;
|
|
1458
|
+
var key;
|
|
1459
|
+
if (arrA && arrB) {
|
|
1460
|
+
length = a.length;
|
|
1461
|
+
if (length !== b.length) {
|
|
1462
|
+
return false;
|
|
1463
|
+
}
|
|
1464
|
+
for (i = length; i-- !== 0;) {
|
|
1465
|
+
if (!this.deepEquals(a[i], b[i])) {
|
|
1466
|
+
return false;
|
|
1467
|
+
}
|
|
1468
|
+
}
|
|
1469
|
+
return true;
|
|
1470
|
+
}
|
|
1471
|
+
if (arrA !== arrB) {
|
|
1472
|
+
return false;
|
|
1473
|
+
}
|
|
1474
|
+
var dateA = a instanceof Date;
|
|
1475
|
+
var dateB = b instanceof Date;
|
|
1476
|
+
if (dateA !== dateB) {
|
|
1477
|
+
return false;
|
|
1478
|
+
}
|
|
1479
|
+
if (dateA && dateB) {
|
|
1480
|
+
return a.getTime() === b.getTime();
|
|
1481
|
+
}
|
|
1482
|
+
var regexpA = a instanceof RegExp;
|
|
1483
|
+
var regexpB = b instanceof RegExp;
|
|
1484
|
+
if (regexpA !== regexpB) {
|
|
1485
|
+
return false;
|
|
1486
|
+
}
|
|
1487
|
+
if (regexpA && regexpB) {
|
|
1488
|
+
return a.toString() === b.toString();
|
|
1489
|
+
}
|
|
1490
|
+
var keys = Object.keys(a);
|
|
1491
|
+
length = keys.length;
|
|
1492
|
+
if (length !== Object.keys(b).length) {
|
|
1493
|
+
return false;
|
|
1494
|
+
}
|
|
1495
|
+
for (i = length; i-- !== 0;) {
|
|
1496
|
+
if (!Object.prototype.hasOwnProperty.call(b, keys[i])) {
|
|
1497
|
+
return false;
|
|
1498
|
+
}
|
|
1499
|
+
}
|
|
1500
|
+
for (i = length; i-- !== 0;) {
|
|
1501
|
+
key = keys[i];
|
|
1502
|
+
if (!this.deepEquals(a[key], b[key])) {
|
|
1503
|
+
return false;
|
|
1504
|
+
}
|
|
1505
|
+
}
|
|
1506
|
+
return true;
|
|
1507
|
+
}
|
|
1508
|
+
|
|
1509
|
+
/*eslint no-self-compare: "off"*/
|
|
1510
|
+
return a !== a && b !== b;
|
|
1511
|
+
}
|
|
1512
|
+
}, {
|
|
1513
|
+
key: "resolveFieldData",
|
|
1514
|
+
value: function resolveFieldData(data, field) {
|
|
1515
|
+
if (!data || !field) {
|
|
1516
|
+
// short circuit if there is nothing to resolve
|
|
1517
|
+
return null;
|
|
1518
|
+
}
|
|
1519
|
+
try {
|
|
1520
|
+
var value = data[field];
|
|
1521
|
+
if (this.isNotEmpty(value)) {
|
|
1522
|
+
return value;
|
|
1523
|
+
}
|
|
1524
|
+
} catch (_unused) {
|
|
1525
|
+
// Performance optimization: https://github.com/primefaces/primereact/issues/4797
|
|
1526
|
+
// do nothing and continue to other methods to resolve field data
|
|
1527
|
+
}
|
|
1528
|
+
if (Object.keys(data).length) {
|
|
1529
|
+
if (this.isFunction(field)) {
|
|
1530
|
+
return field(data);
|
|
1531
|
+
} else if (this.isNotEmpty(data[field])) {
|
|
1532
|
+
return data[field];
|
|
1533
|
+
} else if (field.indexOf('.') === -1) {
|
|
1534
|
+
return data[field];
|
|
1535
|
+
}
|
|
1536
|
+
var fields = field.split('.');
|
|
1537
|
+
var _value = data;
|
|
1538
|
+
for (var i = 0, len = fields.length; i < len; ++i) {
|
|
1539
|
+
if (_value == null) {
|
|
1540
|
+
return null;
|
|
1541
|
+
}
|
|
1542
|
+
_value = _value[fields[i]];
|
|
1543
|
+
}
|
|
1544
|
+
return _value;
|
|
1545
|
+
}
|
|
1546
|
+
return null;
|
|
1547
|
+
}
|
|
1548
|
+
}, {
|
|
1549
|
+
key: "findDiffKeys",
|
|
1550
|
+
value: function findDiffKeys(obj1, obj2) {
|
|
1551
|
+
if (!obj1 || !obj2) {
|
|
1552
|
+
return {};
|
|
1553
|
+
}
|
|
1554
|
+
return Object.keys(obj1).filter(function (key) {
|
|
1555
|
+
return !obj2.hasOwnProperty(key);
|
|
1556
|
+
}).reduce(function (result, current) {
|
|
1557
|
+
result[current] = obj1[current];
|
|
1558
|
+
return result;
|
|
1559
|
+
}, {});
|
|
1560
|
+
}
|
|
1561
|
+
|
|
1562
|
+
/**
|
|
1563
|
+
* Removes keys from a JSON object that start with a string such as "data" to get all "data-id" type properties.
|
|
1564
|
+
*
|
|
1565
|
+
* @param {any} obj the JSON object to reduce
|
|
1566
|
+
* @param {string[]} startsWiths the string(s) to check if the property starts with this key
|
|
1567
|
+
* @returns the JSON object containing only the key/values that match the startsWith string
|
|
1568
|
+
*/
|
|
1569
|
+
}, {
|
|
1570
|
+
key: "reduceKeys",
|
|
1571
|
+
value: function reduceKeys(obj, startsWiths) {
|
|
1572
|
+
var result = {};
|
|
1573
|
+
if (!obj || !startsWiths || startsWiths.length === 0) {
|
|
1574
|
+
return result;
|
|
1575
|
+
}
|
|
1576
|
+
Object.keys(obj).filter(function (key) {
|
|
1577
|
+
return startsWiths.some(function (value) {
|
|
1578
|
+
return key.startsWith(value);
|
|
1579
|
+
});
|
|
1580
|
+
}).forEach(function (key) {
|
|
1581
|
+
result[key] = obj[key];
|
|
1582
|
+
delete obj[key];
|
|
1583
|
+
});
|
|
1584
|
+
return result;
|
|
1585
|
+
}
|
|
1586
|
+
}, {
|
|
1587
|
+
key: "reorderArray",
|
|
1588
|
+
value: function reorderArray(value, from, to) {
|
|
1589
|
+
if (value && from !== to) {
|
|
1590
|
+
if (to >= value.length) {
|
|
1591
|
+
to = to % value.length;
|
|
1592
|
+
from = from % value.length;
|
|
1593
|
+
}
|
|
1594
|
+
value.splice(to, 0, value.splice(from, 1)[0]);
|
|
1595
|
+
}
|
|
1596
|
+
}
|
|
1597
|
+
}, {
|
|
1598
|
+
key: "findIndexInList",
|
|
1599
|
+
value: function findIndexInList(value, list, dataKey) {
|
|
1600
|
+
var _this = this;
|
|
1601
|
+
if (list) {
|
|
1602
|
+
return dataKey ? list.findIndex(function (item) {
|
|
1603
|
+
return _this.equals(item, value, dataKey);
|
|
1604
|
+
}) : list.findIndex(function (item) {
|
|
1605
|
+
return item === value;
|
|
1606
|
+
});
|
|
1607
|
+
}
|
|
1608
|
+
return -1;
|
|
1609
|
+
}
|
|
1610
|
+
}, {
|
|
1611
|
+
key: "getJSXElement",
|
|
1612
|
+
value: function getJSXElement(obj) {
|
|
1613
|
+
for (var _len = arguments.length, params = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
1614
|
+
params[_key - 1] = arguments[_key];
|
|
1615
|
+
}
|
|
1616
|
+
return this.isFunction(obj) ? obj.apply(void 0, params) : obj;
|
|
1617
|
+
}
|
|
1618
|
+
}, {
|
|
1619
|
+
key: "getItemValue",
|
|
1620
|
+
value: function getItemValue(obj) {
|
|
1621
|
+
for (var _len2 = arguments.length, params = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
1622
|
+
params[_key2 - 1] = arguments[_key2];
|
|
1623
|
+
}
|
|
1624
|
+
return this.isFunction(obj) ? obj.apply(void 0, params) : obj;
|
|
1625
|
+
}
|
|
1626
|
+
}, {
|
|
1627
|
+
key: "getProp",
|
|
1628
|
+
value: function getProp(props) {
|
|
1629
|
+
var prop = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
|
1630
|
+
var defaultProps = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
1631
|
+
var value = props ? props[prop] : undefined;
|
|
1632
|
+
return value === undefined ? defaultProps[prop] : value;
|
|
1633
|
+
}
|
|
1634
|
+
}, {
|
|
1635
|
+
key: "getPropCaseInsensitive",
|
|
1636
|
+
value: function getPropCaseInsensitive(props, prop) {
|
|
1637
|
+
var defaultProps = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
1638
|
+
var fkey = this.toFlatCase(prop);
|
|
1639
|
+
for (var key in props) {
|
|
1640
|
+
if (props.hasOwnProperty(key) && this.toFlatCase(key) === fkey) {
|
|
1641
|
+
return props[key];
|
|
1642
|
+
}
|
|
1643
|
+
}
|
|
1644
|
+
for (var _key3 in defaultProps) {
|
|
1645
|
+
if (defaultProps.hasOwnProperty(_key3) && this.toFlatCase(_key3) === fkey) {
|
|
1646
|
+
return defaultProps[_key3];
|
|
1647
|
+
}
|
|
1648
|
+
}
|
|
1649
|
+
return undefined; // Property not found
|
|
1650
|
+
}
|
|
1651
|
+
}, {
|
|
1652
|
+
key: "getMergedProps",
|
|
1653
|
+
value: function getMergedProps(props, defaultProps) {
|
|
1654
|
+
return Object.assign({}, defaultProps, props);
|
|
1655
|
+
}
|
|
1656
|
+
}, {
|
|
1657
|
+
key: "getDiffProps",
|
|
1658
|
+
value: function getDiffProps(props, defaultProps) {
|
|
1659
|
+
return this.findDiffKeys(props, defaultProps);
|
|
1660
|
+
}
|
|
1661
|
+
|
|
1662
|
+
/**
|
|
1663
|
+
* Gets the value of a property which can be a function or a direct value.
|
|
1664
|
+
* If the property is a function, it will be invoked with the provided parameters.
|
|
1665
|
+
* @param {*} obj - The object to get the value from
|
|
1666
|
+
* @param {...*} params - Parameters to pass to the function if obj is a function
|
|
1667
|
+
* @returns {*} The resolved value
|
|
1668
|
+
*/
|
|
1669
|
+
}, {
|
|
1670
|
+
key: "getPropValue",
|
|
1671
|
+
value: function getPropValue(obj) {
|
|
1672
|
+
// If obj is not a function, return it directly
|
|
1673
|
+
if (!this.isFunction(obj)) {
|
|
1674
|
+
return obj;
|
|
1675
|
+
}
|
|
1676
|
+
|
|
1677
|
+
// Handle function invocation
|
|
1678
|
+
for (var _len3 = arguments.length, params = new Array(_len3 > 1 ? _len3 - 1 : 0), _key4 = 1; _key4 < _len3; _key4++) {
|
|
1679
|
+
params[_key4 - 1] = arguments[_key4];
|
|
1680
|
+
}
|
|
1681
|
+
if (params.length === 1) {
|
|
1682
|
+
// For single parameter case, unwrap array if needed to avoid extra nesting
|
|
1683
|
+
var param = params[0];
|
|
1684
|
+
return obj(Array.isArray(param) ? param[0] : param);
|
|
1685
|
+
}
|
|
1686
|
+
|
|
1687
|
+
// Pass all parameters to function
|
|
1688
|
+
return obj.apply(void 0, params);
|
|
1689
|
+
}
|
|
1690
|
+
}, {
|
|
1691
|
+
key: "getComponentProp",
|
|
1692
|
+
value: function getComponentProp(component) {
|
|
1693
|
+
var prop = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
|
1694
|
+
var defaultProps = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
1695
|
+
return this.isNotEmpty(component) ? this.getProp(component.props, prop, defaultProps) : undefined;
|
|
1696
|
+
}
|
|
1697
|
+
}, {
|
|
1698
|
+
key: "getComponentProps",
|
|
1699
|
+
value: function getComponentProps(component, defaultProps) {
|
|
1700
|
+
return this.isNotEmpty(component) ? this.getMergedProps(component.props, defaultProps) : undefined;
|
|
1701
|
+
}
|
|
1702
|
+
}, {
|
|
1703
|
+
key: "getComponentDiffProps",
|
|
1704
|
+
value: function getComponentDiffProps(component, defaultProps) {
|
|
1705
|
+
return this.isNotEmpty(component) ? this.getDiffProps(component.props, defaultProps) : undefined;
|
|
1706
|
+
}
|
|
1707
|
+
}, {
|
|
1708
|
+
key: "isValidChild",
|
|
1709
|
+
value: function isValidChild(child, type, validTypes) {
|
|
1710
|
+
/* eslint-disable */
|
|
1711
|
+
if (child) {
|
|
1712
|
+
var _child$type;
|
|
1713
|
+
var childType = this.getComponentProp(child, '__TYPE') || (child.type ? child.type.displayName : undefined);
|
|
1714
|
+
|
|
1715
|
+
// for App Router in Next.js ^14,
|
|
1716
|
+
if (!childType && child !== null && child !== void 0 && (_child$type = child.type) !== null && _child$type !== void 0 && (_child$type = _child$type._payload) !== null && _child$type !== void 0 && _child$type.value) {
|
|
1717
|
+
childType = child.type._payload.value.find(function (v) {
|
|
1718
|
+
return v === type;
|
|
1719
|
+
});
|
|
1720
|
+
}
|
|
1721
|
+
var isValid = childType === type;
|
|
1722
|
+
try {
|
|
1723
|
+
var messageTypes; if ("production" !== 'production' && !isValid) ;
|
|
1724
|
+
} catch (error) {
|
|
1725
|
+
// NOOP
|
|
1726
|
+
}
|
|
1727
|
+
return isValid;
|
|
1728
|
+
}
|
|
1729
|
+
return false;
|
|
1730
|
+
/* eslint-enable */
|
|
1731
|
+
}
|
|
1732
|
+
}, {
|
|
1733
|
+
key: "getRefElement",
|
|
1734
|
+
value: function getRefElement(ref) {
|
|
1735
|
+
if (ref) {
|
|
1736
|
+
return _typeof(ref) === 'object' && ref.hasOwnProperty('current') ? ref.current : ref;
|
|
1737
|
+
}
|
|
1738
|
+
return null;
|
|
1739
|
+
}
|
|
1740
|
+
}, {
|
|
1741
|
+
key: "combinedRefs",
|
|
1742
|
+
value: function combinedRefs(innerRef, forwardRef) {
|
|
1743
|
+
if (innerRef && forwardRef) {
|
|
1744
|
+
if (typeof forwardRef === 'function') {
|
|
1745
|
+
forwardRef(innerRef.current);
|
|
1746
|
+
} else {
|
|
1747
|
+
forwardRef.current = innerRef.current;
|
|
1748
|
+
}
|
|
1749
|
+
}
|
|
1750
|
+
}
|
|
1751
|
+
}, {
|
|
1752
|
+
key: "removeAccents",
|
|
1753
|
+
value: function removeAccents(str) {
|
|
1754
|
+
if (str && str.search(/[\xC0-\xFF]/g) > -1) {
|
|
1755
|
+
str = str.replace(/[\xC0-\xC5]/g, 'A').replace(/[\xC6]/g, 'AE').replace(/[\xC7]/g, 'C').replace(/[\xC8-\xCB]/g, 'E').replace(/[\xCC-\xCF]/g, 'I').replace(/[\xD0]/g, 'D').replace(/[\xD1]/g, 'N').replace(/[\xD2-\xD6\xD8]/g, 'O').replace(/[\xD9-\xDC]/g, 'U').replace(/[\xDD]/g, 'Y').replace(/[\xDE]/g, 'P').replace(/[\xE0-\xE5]/g, 'a').replace(/[\xE6]/g, 'ae').replace(/[\xE7]/g, 'c').replace(/[\xE8-\xEB]/g, 'e').replace(/[\xEC-\xEF]/g, 'i').replace(/[\xF1]/g, 'n').replace(/[\xF2-\xF6\xF8]/g, 'o').replace(/[\xF9-\xFC]/g, 'u').replace(/[\xFE]/g, 'p').replace(/[\xFD\xFF]/g, 'y');
|
|
1756
|
+
}
|
|
1757
|
+
return str;
|
|
1758
|
+
}
|
|
1759
|
+
}, {
|
|
1760
|
+
key: "toFlatCase",
|
|
1761
|
+
value: function toFlatCase(str) {
|
|
1762
|
+
// convert snake, kebab, camel and pascal cases to flat case
|
|
1763
|
+
return this.isNotEmpty(str) && this.isString(str) ? str.replace(/(-|_)/g, '').toLowerCase() : str;
|
|
1764
|
+
}
|
|
1765
|
+
}, {
|
|
1766
|
+
key: "toCapitalCase",
|
|
1767
|
+
value: function toCapitalCase(str) {
|
|
1768
|
+
return this.isNotEmpty(str) && this.isString(str) ? str[0].toUpperCase() + str.slice(1) : str;
|
|
1769
|
+
}
|
|
1770
|
+
}, {
|
|
1771
|
+
key: "trim",
|
|
1772
|
+
value: function trim(value) {
|
|
1773
|
+
// trim only if the value is actually a string
|
|
1774
|
+
return this.isNotEmpty(value) && this.isString(value) ? value.trim() : value;
|
|
1775
|
+
}
|
|
1776
|
+
}, {
|
|
1777
|
+
key: "isEmpty",
|
|
1778
|
+
value: function isEmpty(value) {
|
|
1779
|
+
return value === null || value === undefined || value === '' || Array.isArray(value) && value.length === 0 || !(value instanceof Date) && _typeof(value) === 'object' && Object.keys(value).length === 0;
|
|
1780
|
+
}
|
|
1781
|
+
}, {
|
|
1782
|
+
key: "isNotEmpty",
|
|
1783
|
+
value: function isNotEmpty(value) {
|
|
1784
|
+
return !this.isEmpty(value);
|
|
1785
|
+
}
|
|
1786
|
+
}, {
|
|
1787
|
+
key: "isFunction",
|
|
1788
|
+
value: function isFunction(value) {
|
|
1789
|
+
return !!(value && value.constructor && value.call && value.apply);
|
|
1790
|
+
}
|
|
1791
|
+
}, {
|
|
1792
|
+
key: "isObject",
|
|
1793
|
+
value: function isObject(value) {
|
|
1794
|
+
return value !== null && value instanceof Object && value.constructor === Object;
|
|
1795
|
+
}
|
|
1796
|
+
}, {
|
|
1797
|
+
key: "isDate",
|
|
1798
|
+
value: function isDate(value) {
|
|
1799
|
+
return value !== null && value instanceof Date && value.constructor === Date;
|
|
1800
|
+
}
|
|
1801
|
+
}, {
|
|
1802
|
+
key: "isArray",
|
|
1803
|
+
value: function isArray(value) {
|
|
1804
|
+
return value !== null && Array.isArray(value);
|
|
1805
|
+
}
|
|
1806
|
+
}, {
|
|
1807
|
+
key: "isString",
|
|
1808
|
+
value: function isString(value) {
|
|
1809
|
+
return value !== null && typeof value === 'string';
|
|
1810
|
+
}
|
|
1811
|
+
}, {
|
|
1812
|
+
key: "isPrintableCharacter",
|
|
1813
|
+
value: function isPrintableCharacter() {
|
|
1814
|
+
var _char = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
1815
|
+
return this.isNotEmpty(_char) && _char.length === 1 && _char.match(/\S| /);
|
|
1816
|
+
}
|
|
1817
|
+
}, {
|
|
1818
|
+
key: "isLetter",
|
|
1819
|
+
value: function isLetter(_char2) {
|
|
1820
|
+
return /^[a-zA-Z\u00C0-\u017F]$/.test(_char2);
|
|
1821
|
+
}
|
|
1822
|
+
}, {
|
|
1823
|
+
key: "isScalar",
|
|
1824
|
+
value: function isScalar(value) {
|
|
1825
|
+
return value != null && (typeof value === 'string' || typeof value === 'number' || typeof value === 'bigint' || typeof value === 'boolean');
|
|
1826
|
+
}
|
|
1827
|
+
|
|
1828
|
+
/**
|
|
1829
|
+
* Firefox-v103 does not currently support the "findLast" method. It is stated that this method will be supported with Firefox-v104.
|
|
1830
|
+
* https://caniuse.com/mdn-javascript_builtins_array_findlast
|
|
1831
|
+
*/
|
|
1832
|
+
}, {
|
|
1833
|
+
key: "findLast",
|
|
1834
|
+
value: function findLast(arr, callback) {
|
|
1835
|
+
var item;
|
|
1836
|
+
if (this.isNotEmpty(arr)) {
|
|
1837
|
+
try {
|
|
1838
|
+
item = arr.findLast(callback);
|
|
1839
|
+
} catch (_unused2) {
|
|
1840
|
+
item = _toConsumableArray(arr).reverse().find(callback);
|
|
1841
|
+
}
|
|
1842
|
+
}
|
|
1843
|
+
return item;
|
|
1844
|
+
}
|
|
1845
|
+
|
|
1846
|
+
/**
|
|
1847
|
+
* Firefox-v103 does not currently support the "findLastIndex" method. It is stated that this method will be supported with Firefox-v104.
|
|
1848
|
+
* https://caniuse.com/mdn-javascript_builtins_array_findlastindex
|
|
1849
|
+
*/
|
|
1850
|
+
}, {
|
|
1851
|
+
key: "findLastIndex",
|
|
1852
|
+
value: function findLastIndex(arr, callback) {
|
|
1853
|
+
var index = -1;
|
|
1854
|
+
if (this.isNotEmpty(arr)) {
|
|
1855
|
+
try {
|
|
1856
|
+
index = arr.findLastIndex(callback);
|
|
1857
|
+
} catch (_unused3) {
|
|
1858
|
+
index = arr.lastIndexOf(_toConsumableArray(arr).reverse().find(callback));
|
|
1859
|
+
}
|
|
1860
|
+
}
|
|
1861
|
+
return index;
|
|
1862
|
+
}
|
|
1863
|
+
}, {
|
|
1864
|
+
key: "sort",
|
|
1865
|
+
value: function sort(value1, value2) {
|
|
1866
|
+
var order = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;
|
|
1867
|
+
var comparator = arguments.length > 3 ? arguments[3] : undefined;
|
|
1868
|
+
var nullSortOrder = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 1;
|
|
1869
|
+
var result = this.compare(value1, value2, comparator, order);
|
|
1870
|
+
var finalSortOrder = order;
|
|
1871
|
+
|
|
1872
|
+
// nullSortOrder == 1 means Excel like sort nulls at bottom
|
|
1873
|
+
if (this.isEmpty(value1) || this.isEmpty(value2)) {
|
|
1874
|
+
finalSortOrder = nullSortOrder === 1 ? order : nullSortOrder;
|
|
1875
|
+
}
|
|
1876
|
+
return finalSortOrder * result;
|
|
1877
|
+
}
|
|
1878
|
+
}, {
|
|
1879
|
+
key: "compare",
|
|
1880
|
+
value: function compare(value1, value2, comparator) {
|
|
1881
|
+
var order = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 1;
|
|
1882
|
+
var result = -1;
|
|
1883
|
+
var emptyValue1 = this.isEmpty(value1);
|
|
1884
|
+
var emptyValue2 = this.isEmpty(value2);
|
|
1885
|
+
if (emptyValue1 && emptyValue2) {
|
|
1886
|
+
result = 0;
|
|
1887
|
+
} else if (emptyValue1) {
|
|
1888
|
+
result = order;
|
|
1889
|
+
} else if (emptyValue2) {
|
|
1890
|
+
result = -order;
|
|
1891
|
+
} else if (typeof value1 === 'string' && typeof value2 === 'string') {
|
|
1892
|
+
result = comparator(value1, value2);
|
|
1893
|
+
} else {
|
|
1894
|
+
result = value1 < value2 ? -1 : value1 > value2 ? 1 : 0;
|
|
1895
|
+
}
|
|
1896
|
+
return result;
|
|
1897
|
+
}
|
|
1898
|
+
}, {
|
|
1899
|
+
key: "localeComparator",
|
|
1900
|
+
value: function localeComparator(locale) {
|
|
1901
|
+
//performance gain using Int.Collator. It is not recommended to use localeCompare against large arrays.
|
|
1902
|
+
return new Intl.Collator(locale, {
|
|
1903
|
+
numeric: true
|
|
1904
|
+
}).compare;
|
|
1905
|
+
}
|
|
1906
|
+
}, {
|
|
1907
|
+
key: "findChildrenByKey",
|
|
1908
|
+
value: function findChildrenByKey(data, key) {
|
|
1909
|
+
var _iterator = _createForOfIteratorHelper(data),
|
|
1910
|
+
_step;
|
|
1911
|
+
try {
|
|
1912
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
1913
|
+
var item = _step.value;
|
|
1914
|
+
if (item.key === key) {
|
|
1915
|
+
return item.children || [];
|
|
1916
|
+
} else if (item.children) {
|
|
1917
|
+
var result = this.findChildrenByKey(item.children, key);
|
|
1918
|
+
if (result.length > 0) {
|
|
1919
|
+
return result;
|
|
1920
|
+
}
|
|
1921
|
+
}
|
|
1922
|
+
}
|
|
1923
|
+
} catch (err) {
|
|
1924
|
+
_iterator.e(err);
|
|
1925
|
+
} finally {
|
|
1926
|
+
_iterator.f();
|
|
1927
|
+
}
|
|
1928
|
+
return [];
|
|
1929
|
+
}
|
|
1930
|
+
|
|
1931
|
+
/**
|
|
1932
|
+
* This function takes mutates and object with a new value given
|
|
1933
|
+
* a specific field. This will handle deeply nested fields that
|
|
1934
|
+
* need to be modified or created.
|
|
1935
|
+
*
|
|
1936
|
+
* e.g:
|
|
1937
|
+
* data = {
|
|
1938
|
+
* nested: {
|
|
1939
|
+
* foo: "bar"
|
|
1940
|
+
* }
|
|
1941
|
+
* }
|
|
1942
|
+
*
|
|
1943
|
+
* field = "nested.foo"
|
|
1944
|
+
* value = "baz"
|
|
1945
|
+
*
|
|
1946
|
+
* The function will mutate data to be
|
|
1947
|
+
* e.g:
|
|
1948
|
+
* data = {
|
|
1949
|
+
* nested: {
|
|
1950
|
+
* foo: "baz"
|
|
1951
|
+
* }
|
|
1952
|
+
* }
|
|
1953
|
+
*
|
|
1954
|
+
* @param {object} data the object to be modified
|
|
1955
|
+
* @param {string} field the field in the object to replace
|
|
1956
|
+
* @param {any} value the value to have replaced in the field
|
|
1957
|
+
*/
|
|
1958
|
+
}, {
|
|
1959
|
+
key: "mutateFieldData",
|
|
1960
|
+
value: function mutateFieldData(data, field, value) {
|
|
1961
|
+
if (_typeof(data) !== 'object' || typeof field !== 'string') {
|
|
1962
|
+
// short circuit if there is nothing to resolve
|
|
1963
|
+
return;
|
|
1964
|
+
}
|
|
1965
|
+
var fields = field.split('.');
|
|
1966
|
+
var obj = data;
|
|
1967
|
+
for (var i = 0, len = fields.length; i < len; ++i) {
|
|
1968
|
+
// Check if we are on the last field
|
|
1969
|
+
if (i + 1 - len === 0) {
|
|
1970
|
+
obj[fields[i]] = value;
|
|
1971
|
+
break;
|
|
1972
|
+
}
|
|
1973
|
+
if (!obj[fields[i]]) {
|
|
1974
|
+
obj[fields[i]] = {};
|
|
1975
|
+
}
|
|
1976
|
+
obj = obj[fields[i]];
|
|
1977
|
+
}
|
|
1978
|
+
}
|
|
1979
|
+
|
|
1980
|
+
/**
|
|
1981
|
+
* This helper function takes an object and a dot-separated key path. It traverses the object based on the path,
|
|
1982
|
+
* returning the value at the specified depth. If any part of the path is missing or undefined, it returns undefined.
|
|
1983
|
+
*
|
|
1984
|
+
* Example:
|
|
1985
|
+
* const obj = { name: 'Alice', address: { city: 'Wonderland', zip: 12345 } };
|
|
1986
|
+
* const path = 'address.city';
|
|
1987
|
+
* const result = ObjectUtils.getNestedValue(obj, path);
|
|
1988
|
+
* console.log(result); // Output: "Wonderland"
|
|
1989
|
+
*
|
|
1990
|
+
* @param {object} obj - The object to traverse.
|
|
1991
|
+
* @param {string} path - The dot-separated key path.
|
|
1992
|
+
* @returns {*} The value at the specified depth, or undefined if any part of the path is missing or undefined.
|
|
1993
|
+
*/
|
|
1994
|
+
}, {
|
|
1995
|
+
key: "getNestedValue",
|
|
1996
|
+
value: function getNestedValue(obj, path) {
|
|
1997
|
+
return path.split('.').reduce(function (acc, part) {
|
|
1998
|
+
return acc && acc[part] !== undefined ? acc[part] : undefined;
|
|
1999
|
+
}, obj);
|
|
2000
|
+
}
|
|
2001
|
+
|
|
2002
|
+
/**
|
|
2003
|
+
* This function takes an object and a dot-separated key path. It traverses the object based on the path,
|
|
2004
|
+
* returning the value at the specified depth. If any part of the path is missing or undefined, it returns undefined.
|
|
2005
|
+
*
|
|
2006
|
+
* Example:
|
|
2007
|
+
* const objA = { name: 'Alice', address: { city: 'Wonderland', zip: 12345 } };
|
|
2008
|
+
* const objB = { name: 'Alice', address: { city: 'Wonderland', zip: 12345 } };
|
|
2009
|
+
* const result = ObjectUtils.absoluteCompare(objA, objB);
|
|
2010
|
+
* console.log(result); // Output: true
|
|
2011
|
+
*
|
|
2012
|
+
* const objC = { name: 'Alice', address: { city: 'Wonderland', zip: 12346 } };
|
|
2013
|
+
* const result2 = ObjectUtils.absoluteCompare(objA, objC);
|
|
2014
|
+
* console.log(result2); // Output: false
|
|
2015
|
+
*
|
|
2016
|
+
* @param {object} objA - The first object to compare.
|
|
2017
|
+
* @param {object} objB - The second object to compare.
|
|
2018
|
+
* @param {number} [maxDepth=1] - The maximum depth to compare.
|
|
2019
|
+
* @param {number} [currentDepth=0] - The current depth (used internally for recursion).
|
|
2020
|
+
* @returns {boolean} True if the objects are equal within the specified depth, false otherwise.
|
|
2021
|
+
*
|
|
2022
|
+
*/
|
|
2023
|
+
}, {
|
|
2024
|
+
key: "absoluteCompare",
|
|
2025
|
+
value: function absoluteCompare(objA, objB) {
|
|
2026
|
+
var maxDepth = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;
|
|
2027
|
+
var currentDepth = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 0;
|
|
2028
|
+
if (!objA || !objB) return true;
|
|
2029
|
+
if (currentDepth > maxDepth) return true;
|
|
2030
|
+
if (_typeof(objA) !== _typeof(objB)) return false;
|
|
2031
|
+
var aKeys = Object.keys(objA);
|
|
2032
|
+
var bKeys = Object.keys(objB);
|
|
2033
|
+
if (aKeys.length !== bKeys.length) return false;
|
|
2034
|
+
for (var _i = 0, _aKeys = aKeys; _i < _aKeys.length; _i++) {
|
|
2035
|
+
var key = _aKeys[_i];
|
|
2036
|
+
var aValue = objA[key];
|
|
2037
|
+
var bValue = objB[key];
|
|
2038
|
+
|
|
2039
|
+
// Skip comparison if values are objects
|
|
2040
|
+
var isObject = ObjectUtils.isObject(aValue) && ObjectUtils.isObject(bValue);
|
|
2041
|
+
var isFunction = ObjectUtils.isFunction(aValue) && ObjectUtils.isFunction(bValue);
|
|
2042
|
+
if ((isObject || isFunction) && !this.absoluteCompare(aValue, bValue, maxDepth, currentDepth + 1)) return false;
|
|
2043
|
+
if (!isObject && aValue !== bValue) return false;
|
|
2044
|
+
}
|
|
2045
|
+
return true;
|
|
2046
|
+
}
|
|
2047
|
+
|
|
2048
|
+
/**
|
|
2049
|
+
* This helper function takes two objects and a list of keys to compare. It compares the values of the specified keys
|
|
2050
|
+
* in both objects. If any comparison fails, it returns false. If all specified properties are equal, it returns true.
|
|
2051
|
+
* It performs a shallow comparison using absoluteCompare if no keys are provided.
|
|
2052
|
+
*
|
|
2053
|
+
* Example:
|
|
2054
|
+
* const objA = { name: 'Alice', address: { city: 'Wonderland', zip: 12345 } };
|
|
2055
|
+
* const objB = { name: 'Alice', address: { city: 'Wonderland', zip: 12345 } };
|
|
2056
|
+
* const keysToCompare = ['name', 'address.city', 'address.zip'];
|
|
2057
|
+
* const result = ObjectUtils.selectiveCompare(objA, objB, keysToCompare);
|
|
2058
|
+
* console.log(result); // Output: true
|
|
2059
|
+
*
|
|
2060
|
+
* const objC = { name: 'Alice', address: { city: 'Wonderland', zip: 12346 } };
|
|
2061
|
+
* const result2 = ObjectUtils.selectiveCompare(objA, objC, keysToCompare);
|
|
2062
|
+
* console.log(result2); // Output: false
|
|
2063
|
+
*
|
|
2064
|
+
* @param {object} a - The first object to compare.
|
|
2065
|
+
* @param {object} b - The second object to compare.
|
|
2066
|
+
* @param {string[]} [keysToCompare] - The keys to compare. If not provided, performs a shallow comparison using absoluteCompare.
|
|
2067
|
+
* @param {number} [maxDepth=1] - The maximum depth to compare if the variables are objects.
|
|
2068
|
+
* @returns {boolean} True if all specified properties are equal, false otherwise.
|
|
2069
|
+
*/
|
|
2070
|
+
}, {
|
|
2071
|
+
key: "selectiveCompare",
|
|
2072
|
+
value: function selectiveCompare(a, b, keysToCompare) {
|
|
2073
|
+
var maxDepth = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 1;
|
|
2074
|
+
if (a === b) return true;
|
|
2075
|
+
if (!a || !b || _typeof(a) !== 'object' || _typeof(b) !== 'object') return false;
|
|
2076
|
+
if (!keysToCompare) return this.absoluteCompare(a, b, 1); // If no keys are provided, the comparison is limited to one depth level.
|
|
2077
|
+
var _iterator2 = _createForOfIteratorHelper(keysToCompare),
|
|
2078
|
+
_step2;
|
|
2079
|
+
try {
|
|
2080
|
+
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
2081
|
+
var key = _step2.value;
|
|
2082
|
+
var aValue = this.getNestedValue(a, key);
|
|
2083
|
+
var bValue = this.getNestedValue(b, key);
|
|
2084
|
+
var isObject = _typeof(aValue) === 'object' && aValue !== null && _typeof(bValue) === 'object' && bValue !== null;
|
|
2085
|
+
|
|
2086
|
+
// If the current key is an object, they are compared in one further level only.
|
|
2087
|
+
if (isObject && !this.absoluteCompare(aValue, bValue, maxDepth)) return false;
|
|
2088
|
+
if (!isObject && aValue !== bValue) return false;
|
|
2089
|
+
}
|
|
2090
|
+
} catch (err) {
|
|
2091
|
+
_iterator2.e(err);
|
|
2092
|
+
} finally {
|
|
2093
|
+
_iterator2.f();
|
|
2094
|
+
}
|
|
2095
|
+
return true;
|
|
2096
|
+
}
|
|
2097
|
+
}]);
|
|
2098
|
+
}();
|
|
2099
|
+
|
|
2100
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
2101
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
2102
|
+
/**
|
|
2103
|
+
* Merges properties together taking an Array of props and merging into one single set of
|
|
2104
|
+
* properties. The options can contain a "classNameMergeFunction" which can be something
|
|
2105
|
+
* like Tailwind Merge for properly merging Tailwind classes.
|
|
2106
|
+
*
|
|
2107
|
+
* @param {object[]} props the array of object properties to merge
|
|
2108
|
+
* @param {*} options either empty or could contain a custom merge function like TailwindMerge
|
|
2109
|
+
* @returns the single properties value after merging
|
|
2110
|
+
*/
|
|
2111
|
+
function mergeProps(props) {
|
|
2112
|
+
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
2113
|
+
if (!props) {
|
|
2114
|
+
return undefined;
|
|
2115
|
+
}
|
|
2116
|
+
var isFunction = function isFunction(obj) {
|
|
2117
|
+
return typeof obj === 'function';
|
|
2118
|
+
};
|
|
2119
|
+
var classNameMergeFunction = options.classNameMergeFunction;
|
|
2120
|
+
var hasMergeFunction = isFunction(classNameMergeFunction);
|
|
2121
|
+
return props.reduce(function (merged, ps) {
|
|
2122
|
+
if (!ps) {
|
|
2123
|
+
return merged;
|
|
2124
|
+
}
|
|
2125
|
+
var _loop = function _loop() {
|
|
2126
|
+
var value = ps[key];
|
|
2127
|
+
if (key === 'style') {
|
|
2128
|
+
merged.style = _objectSpread(_objectSpread({}, merged.style), ps.style);
|
|
2129
|
+
} else if (key === 'className') {
|
|
2130
|
+
var newClassName = '';
|
|
2131
|
+
if (hasMergeFunction) {
|
|
2132
|
+
newClassName = classNameMergeFunction(merged.className, ps.className);
|
|
2133
|
+
} else {
|
|
2134
|
+
newClassName = [merged.className, ps.className].join(' ').trim();
|
|
2135
|
+
}
|
|
2136
|
+
merged.className = newClassName || undefined;
|
|
2137
|
+
} else if (isFunction(value)) {
|
|
2138
|
+
var existingFn = merged[key];
|
|
2139
|
+
merged[key] = existingFn ? function () {
|
|
2140
|
+
existingFn.apply(void 0, arguments);
|
|
2141
|
+
value.apply(void 0, arguments);
|
|
2142
|
+
} : value;
|
|
2143
|
+
} else {
|
|
2144
|
+
merged[key] = value;
|
|
2145
|
+
}
|
|
2146
|
+
};
|
|
2147
|
+
for (var key in ps) {
|
|
2148
|
+
_loop();
|
|
2149
|
+
}
|
|
2150
|
+
return merged;
|
|
2151
|
+
}, {});
|
|
2152
|
+
}
|
|
2153
|
+
|
|
2154
|
+
export { DomHandler, ObjectUtils, classNames, mergeProps };
|
|
2155
|
+
//# sourceMappingURL=utils.esm.js.map
|