@orbit-software/sdk 1.75.0 → 1.80.1
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/esm/assets/icons/IconBalanceCoins.d.ts +3 -0
- package/dist/esm/{app/ui/components/IconBalanceCoin.d.ts → assets/icons/IconBalanceGems.d.ts} +1 -1
- package/dist/esm/assets/icons/IconUsdt.d.ts +3 -0
- package/dist/esm/components/BuyAdsFreeButton.d.ts +1 -0
- package/dist/esm/{features/profile/components → components}/OverlayProfile.d.ts +2 -2
- package/dist/esm/components/layout/BottomSentinel.d.ts +2 -0
- package/dist/esm/components/modals/BoxOpeningModal/AnimatedFullscreen.d.ts +14 -0
- package/dist/esm/components/modals/BoxOpeningModal/BoxOpeningModal.d.ts +2 -0
- package/dist/esm/{launcherSrc/features/profile/components → components/modals/BoxOpeningModal}/PrizeCarousel.d.ts +4 -3
- package/dist/esm/components/modals/BoxOpeningModal/RewardBoxRareBadge.d.ts +5 -0
- package/dist/esm/{launcherSrc/features/profile/components → components/modals/BoxOpeningModal}/RewardTypeBadge.d.ts +2 -2
- package/dist/esm/{launcherSrc/features/profile/components → components/modals/BoxOpeningModal}/RewardTypeImage.d.ts +3 -3
- package/dist/esm/{launcherSrc/features/profile → components/modals/BoxOpeningModal}/utils/findPrizeIndex.d.ts +1 -1
- package/dist/esm/components/modals/BoxOpeningModal/utils/generateExcitingPrizes.d.ts +9 -0
- package/dist/esm/components/modals/BoxOpeningModal/utils/sortPrizesDistributed.d.ts +2 -0
- package/dist/esm/components/modals/LevelInfoModal.d.ts +2 -0
- package/dist/esm/components/modals/ProfileInventoryModal.d.ts +2 -0
- package/dist/esm/components/modals/PurchaseAdsFreeModal.d.ts +2 -0
- package/dist/esm/components/modals/TopUpModal/TopUpModal.d.ts +2 -0
- package/dist/esm/components/{AnimatedBalance.d.ts → ui/AnimatedBalance.d.ts} +2 -1
- package/dist/esm/components/ui/BalanceHeader.d.ts +4 -0
- package/dist/esm/components/ui/Drawer.d.ts +9 -0
- package/dist/esm/components/ui/EventsStack.d.ts +6 -0
- package/dist/esm/components/ui/FormattedXP.d.ts +4 -0
- package/dist/esm/components/ui/Icon.d.ts +27 -0
- package/dist/esm/{launcherSrc/app/ui/components → components/ui}/XpProgress.d.ts +2 -4
- package/dist/esm/{launcherSrc/app/contexts → components/ui/snackbar}/SnackbarContext.d.ts +4 -2
- package/dist/esm/confirm/confirm.d.ts +2 -0
- package/dist/esm/constants/animations.d.ts +2 -0
- package/dist/esm/hooks/useAnimateNumber.d.ts +1 -0
- package/dist/esm/hooks/useLottie.d.ts +12 -0
- package/dist/esm/hooks/useThrottle.d.ts +1 -0
- package/dist/esm/i18n/generate-types.d.ts +1 -0
- package/dist/esm/i18n/generated-translation-type.d.ts +112 -0
- package/dist/esm/i18n/languages.d.ts +7 -0
- package/dist/esm/i18n/locales/en.json.d.ts +137 -0
- package/dist/esm/i18n/locales/es.json.d.ts +136 -0
- package/dist/esm/i18n/locales/hi.json.d.ts +137 -0
- package/dist/esm/i18n/locales/pt.json.d.ts +136 -0
- package/dist/esm/i18n/locales/ru.json.d.ts +137 -0
- package/dist/esm/i18n/types.d.ts +9 -0
- package/dist/esm/i18n/useTranslation.d.ts +6 -0
- package/dist/esm/lib/BannerManager.d.ts +36 -0
- package/dist/esm/lib/WebSocketManager.d.ts +3 -3
- package/dist/esm/lib/activity-detector.d.ts +1 -1
- package/dist/esm/lib/tma-network.d.ts +1 -1
- package/dist/esm/providers/BoxOpeningProvider.d.ts +21 -0
- package/dist/esm/providers/ConfettiProvider.d.ts +3 -0
- package/dist/esm/providers/I18nBackendLanguageProvider.d.ts +3 -0
- package/dist/esm/queries/box/useBoxRewards.d.ts +13 -0
- package/dist/esm/queries/box/useRevealReward.d.ts +10 -0
- package/dist/esm/queries/user/useCancelNoAds.d.ts +2 -0
- package/dist/esm/queries/user/useCreateInvoiceBuyNoAds.d.ts +3 -0
- package/dist/esm/queries/user/usePrices.d.ts +3 -0
- package/dist/esm/queries/user/useProfile.d.ts +4 -0
- package/dist/esm/queryClient.d.ts +2 -0
- package/dist/esm/sdk.d.ts +56 -31
- package/dist/esm/sdk.mjs +44640 -43919
- package/dist/esm/sdk.umd.js +134 -198
- package/dist/esm/stores/confettiStore.d.ts +8 -0
- package/dist/esm/stores/inventroryModalStore.d.ts +6 -0
- package/dist/esm/stores/topUpModalStore.d.ts +6 -0
- package/dist/esm/types/api.d.ts +39 -0
- package/dist/esm/utils/cn.d.ts +2 -0
- package/dist/esm/utils/formatter.d.ts +5 -0
- package/dist/esm/utils/price.d.ts +2 -0
- package/dist/esm/utils/shuffleArray.d.ts +1 -0
- package/dist/esm/utils/telegramLanguageCodeToFlagEmoji.d.ts +11 -0
- package/dist/stats-confirm.html +1 -1
- package/dist/stats-esm.html +1 -1
- package/dist/stats-umd-react.html +1 -1
- package/dist/stats-umd.html +1 -1
- package/dist/umd/sdk.umd.js +134 -198
- package/dist/umd_react/sdk_react.umd.js +191 -255
- package/package.json +28 -30
- package/dist/confirm/index.html +0 -24
- package/dist/esm/app/helpers.d.ts +0 -2
- package/dist/esm/app/ui/assets/IconBack.d.ts +0 -1
- package/dist/esm/app/ui/components/AvatarProgress.d.ts +0 -13
- package/dist/esm/app/ui/components/ClosableModal.d.ts +0 -12
- package/dist/esm/app/ui/components/IconBalanceDiamond.d.ts +0 -3
- package/dist/esm/app/ui/components/InputSwitch.d.ts +0 -9
- package/dist/esm/app/ui/components/Inventory/Inventory.d.ts +0 -2
- package/dist/esm/app/ui/components/Inventory/context.d.ts +0 -10
- package/dist/esm/app/ui/components/XsButton.d.ts +0 -6
- package/dist/esm/app/ui/hooks/useAnimateNumber.d.ts +0 -1
- package/dist/esm/app/utils.d.ts +0 -2
- package/dist/esm/components/AppContent/AppContent.d.ts +0 -10
- package/dist/esm/components/AppContent/BottomSentinel.d.ts +0 -2
- package/dist/esm/components/BuyShopItem.d.ts +0 -1
- package/dist/esm/components/ModalCardContent.d.ts +0 -5
- package/dist/esm/features/profile/assets/IconAd.d.ts +0 -1
- package/dist/esm/features/profile/assets/IconAddCircle.d.ts +0 -1
- package/dist/esm/features/profile/assets/IconChevronRight.d.ts +0 -2
- package/dist/esm/features/profile/assets/IconDrag.d.ts +0 -2
- package/dist/esm/features/profile/assets/IconEdit.d.ts +0 -2
- package/dist/esm/features/profile/assets/IconGame.d.ts +0 -2
- package/dist/esm/features/profile/assets/IconNoSign.d.ts +0 -1
- package/dist/esm/features/profile/assets/IconProfile.d.ts +0 -1
- package/dist/esm/features/profile/assets/profileBgGradients.d.ts +0 -6
- package/dist/esm/features/profile/components/BalanceConfetti.d.ts +0 -6
- package/dist/esm/features/profile/components/BuyMenu.d.ts +0 -8
- package/dist/esm/features/profile/components/CircleParticles.d.ts +0 -10
- package/dist/esm/features/profile/components/FormattedXP.d.ts +0 -8
- package/dist/esm/features/profile/components/LevelInfoModal.d.ts +0 -9
- package/dist/esm/features/profile/components/ModalContainer.d.ts +0 -6
- package/dist/esm/features/profile/components/PurchaseConfirm.d.ts +0 -9
- package/dist/esm/features/profile/components/TaskCard.d.ts +0 -21
- package/dist/esm/features/profile/components/XpProgress.d.ts +0 -14
- package/dist/esm/features/profile/components/adsFree/BuyAdsFreeButton.d.ts +0 -3
- package/dist/esm/features/profile/components/adsFree/PurchaseAdsFree.d.ts +0 -11
- package/dist/esm/features/profile/hooks/useAnimatedProfile.d.ts +0 -5
- package/dist/esm/features/profile/utils/getFormattedDate.d.ts +0 -1
- package/dist/esm/features/wages/components/ModalContainer.d.ts +0 -6
- package/dist/esm/features/wages/components/WageCollapsedOverlay.d.ts +0 -6
- package/dist/esm/features/wages/components/WageExpandedOverlay.d.ts +0 -7
- package/dist/esm/features/wages/components/WageMenu.d.ts +0 -4
- package/dist/esm/features/wages/index.d.ts +0 -3
- package/dist/esm/features/wages/utils/formatTime.d.ts +0 -1
- package/dist/esm/features/wages/utils/formatTimeWageItem.d.ts +0 -1
- package/dist/esm/features/wages/utils/getSecondsPassed.d.ts +0 -1
- package/dist/esm/i18n/locales/translations/en.json.d.ts +0 -300
- package/dist/esm/i18n/locales/translations/hi.json.d.ts +0 -300
- package/dist/esm/i18n/locales/translations/ru.json.d.ts +0 -300
- package/dist/esm/launcherSrc/App.d.ts +0 -2
- package/dist/esm/launcherSrc/api/types.d.ts +0 -211
- package/dist/esm/launcherSrc/api/userApi.d.ts +0 -24
- package/dist/esm/launcherSrc/app/components/DebugConsole.d.ts +0 -2
- package/dist/esm/launcherSrc/app/helpers.d.ts +0 -3
- package/dist/esm/launcherSrc/app/hooks/forceRerender.d.ts +0 -1
- package/dist/esm/launcherSrc/app/hooks/useMainButtonControl.d.ts +0 -7
- package/dist/esm/launcherSrc/app/hooks/useMiniApp.d.ts +0 -3
- package/dist/esm/launcherSrc/app/hooks.d.ts +0 -10
- package/dist/esm/launcherSrc/app/store.d.ts +0 -17
- package/dist/esm/launcherSrc/app/ui/assets/IconBack.d.ts +0 -1
- package/dist/esm/launcherSrc/app/ui/assets/IconCheck.d.ts +0 -2
- package/dist/esm/launcherSrc/app/ui/assets/IconCheckThin.d.ts +0 -2
- package/dist/esm/launcherSrc/app/ui/assets/IconCross.d.ts +0 -2
- package/dist/esm/launcherSrc/app/ui/assets/IconSearch.d.ts +0 -2
- package/dist/esm/launcherSrc/app/ui/components/AvatarProgress.d.ts +0 -13
- package/dist/esm/launcherSrc/app/ui/components/ClosableModal.d.ts +0 -10
- package/dist/esm/launcherSrc/app/ui/components/FormattedXP.d.ts +0 -8
- package/dist/esm/launcherSrc/app/ui/components/IconBalance.d.ts +0 -3
- package/dist/esm/launcherSrc/app/ui/components/InputSwitch.d.ts +0 -9
- package/dist/esm/launcherSrc/app/ui/components/Twemoji.d.ts +0 -8
- package/dist/esm/launcherSrc/app/ui/components/UICell.d.ts +0 -16
- package/dist/esm/launcherSrc/app/ui/components/UIDateInput.d.ts +0 -21
- package/dist/esm/launcherSrc/app/ui/components/UIDivider.d.ts +0 -4
- package/dist/esm/launcherSrc/app/ui/components/UIEmoji.d.ts +0 -8
- package/dist/esm/launcherSrc/app/ui/components/UIHero.d.ts +0 -10
- package/dist/esm/launcherSrc/app/ui/components/UISection.d.ts +0 -9
- package/dist/esm/launcherSrc/app/ui/components/UITextarea.d.ts +0 -7
- package/dist/esm/launcherSrc/app/ui/hooks/useAnimateNumber.d.ts +0 -1
- package/dist/esm/launcherSrc/app/utils.d.ts +0 -13
- package/dist/esm/launcherSrc/assets/Icon28Edit.d.ts +0 -2
- package/dist/esm/launcherSrc/assets/Icon28Game.d.ts +0 -1
- package/dist/esm/launcherSrc/assets/Icon28Link.d.ts +0 -1
- package/dist/esm/launcherSrc/features/games/assets/IconFilter.d.ts +0 -1
- package/dist/esm/launcherSrc/features/games/assets/IconPlayers.d.ts +0 -2
- package/dist/esm/launcherSrc/features/games/assets/IconQuestion.d.ts +0 -2
- package/dist/esm/launcherSrc/features/games/assets/IconQuestionCircle.d.ts +0 -2
- package/dist/esm/launcherSrc/features/games/assets/IconStar.d.ts +0 -4
- package/dist/esm/launcherSrc/features/games/assets/IconThumbsDownFilled.d.ts +0 -2
- package/dist/esm/launcherSrc/features/games/assets/IconThumbsDownOutlined.d.ts +0 -2
- package/dist/esm/launcherSrc/features/games/assets/IconThumbsUpFilled.d.ts +0 -2
- package/dist/esm/launcherSrc/features/games/assets/IconThumbsUpOutlined.d.ts +0 -2
- package/dist/esm/launcherSrc/features/games/components/GameItem.d.ts +0 -10
- package/dist/esm/launcherSrc/features/games/components/ResetStorageButton.d.ts +0 -3
- package/dist/esm/launcherSrc/features/games/components/ReviewModal.d.ts +0 -10
- package/dist/esm/launcherSrc/features/games/hooks/useGamesData.d.ts +0 -13
- package/dist/esm/launcherSrc/features/games/redux/gamesSlice.d.ts +0 -34
- package/dist/esm/launcherSrc/features/games/service/gamesService.d.ts +0 -3
- package/dist/esm/launcherSrc/features/leaderboard/components/Rating.d.ts +0 -1
- package/dist/esm/launcherSrc/features/leaderboard/components/RatingCard/RatingCard.d.ts +0 -10
- package/dist/esm/launcherSrc/features/leaderboard/components/RatingInfo/RatingInfo.d.ts +0 -1
- package/dist/esm/launcherSrc/features/leaderboard/components/RatingLevel/IconWreaths.d.ts +0 -3
- package/dist/esm/launcherSrc/features/leaderboard/components/RatingLevel/RatingLevel.d.ts +0 -6
- package/dist/esm/launcherSrc/features/leaderboard/components/RatingLevel/lock.d.ts +0 -3
- package/dist/esm/launcherSrc/features/leaderboard/hooks/useLeaderboardData.d.ts +0 -10
- package/dist/esm/launcherSrc/features/leaderboard/index.d.ts +0 -1
- package/dist/esm/launcherSrc/features/leaderboard/redux/leaderboardSlice.d.ts +0 -18
- package/dist/esm/launcherSrc/features/leaderboard/services/leaderboardService.d.ts +0 -2
- package/dist/esm/launcherSrc/features/navigation/assets/IconGame.d.ts +0 -1
- package/dist/esm/launcherSrc/features/navigation/assets/IconProfile.d.ts +0 -1
- package/dist/esm/launcherSrc/features/navigation/assets/IconSmile.d.ts +0 -2
- package/dist/esm/launcherSrc/features/navigation/components/FloatingProfile.d.ts +0 -2
- package/dist/esm/launcherSrc/features/navigation/components/IconWithCounter.d.ts +0 -7
- package/dist/esm/launcherSrc/features/navigation/redux/navigationSlice.d.ts +0 -15
- package/dist/esm/launcherSrc/features/navigation/redux/tabsSlice.d.ts +0 -12
- package/dist/esm/launcherSrc/features/profile/assets/IconAd.d.ts +0 -1
- package/dist/esm/launcherSrc/features/profile/assets/IconAddCircle.d.ts +0 -1
- package/dist/esm/launcherSrc/features/profile/assets/IconChevronRight.d.ts +0 -2
- package/dist/esm/launcherSrc/features/profile/assets/IconColorPicker.d.ts +0 -1
- package/dist/esm/launcherSrc/features/profile/assets/IconCurrencyStar.d.ts +0 -3
- package/dist/esm/launcherSrc/features/profile/assets/IconGlobe.d.ts +0 -2
- package/dist/esm/launcherSrc/features/profile/assets/IconLock.d.ts +0 -2
- package/dist/esm/launcherSrc/features/profile/assets/IconNoSign.d.ts +0 -1
- package/dist/esm/launcherSrc/features/profile/assets/IconSignature.d.ts +0 -5
- package/dist/esm/launcherSrc/features/profile/assets/profileBgGradients.d.ts +0 -50
- package/dist/esm/launcherSrc/features/profile/components/AdsFree/BuyAdsFreeButton.d.ts +0 -0
- package/dist/esm/launcherSrc/features/profile/components/AdsFree/PurchaseAdsFree.d.ts +0 -9
- package/dist/esm/launcherSrc/features/profile/components/Balance/ProfileBalance.d.ts +0 -6
- package/dist/esm/launcherSrc/features/profile/components/Balance/TopUpModal/BuyMenu.d.ts +0 -8
- package/dist/esm/launcherSrc/features/profile/components/Balance/TopUpModal/Ribbon.d.ts +0 -6
- package/dist/esm/launcherSrc/features/profile/components/BoxOpeningModal.d.ts +0 -3
- package/dist/esm/launcherSrc/features/profile/components/LevelInfoModal.d.ts +0 -9
- package/dist/esm/launcherSrc/features/profile/components/ProfileInventory.d.ts +0 -1
- package/dist/esm/launcherSrc/features/profile/components/ProfileLeaderboard.d.ts +0 -6
- package/dist/esm/launcherSrc/features/profile/components/ProfileReviews.d.ts +0 -6
- package/dist/esm/launcherSrc/features/profile/components/RewardBoxRareBadge.d.ts +0 -4
- package/dist/esm/launcherSrc/features/profile/components/particles/BalanceConfetti.d.ts +0 -6
- package/dist/esm/launcherSrc/features/profile/components/particles/CircleParticles.d.ts +0 -10
- package/dist/esm/launcherSrc/features/profile/components/particles/StarParticles.d.ts +0 -10
- package/dist/esm/launcherSrc/features/profile/contexts/BoxOpeningContext.d.ts +0 -12
- package/dist/esm/launcherSrc/features/profile/data/countries.d.ts +0 -10
- package/dist/esm/launcherSrc/features/profile/hooks/useProfileData.d.ts +0 -24
- package/dist/esm/launcherSrc/features/profile/redux/profileSlice.d.ts +0 -130
- package/dist/esm/launcherSrc/features/profile/services/buyMenuService.d.ts +0 -3
- package/dist/esm/launcherSrc/features/profile/services/profileService.d.ts +0 -12
- package/dist/esm/launcherSrc/i18n/index.d.ts +0 -2
- package/dist/esm/launcherSrc/index.d.ts +0 -0
- package/dist/esm/launcherSrc/setupTests.d.ts +0 -0
- package/dist/esm/launcherSrc/utils/openTelegramLinkFixed.d.ts +0 -1
- package/dist/esm/lib/init-sentry.d.ts +0 -5
- package/dist/esm/stores/buyShopModalStore.d.ts +0 -8
- package/dist/esm/stores/profileStore.d.ts +0 -17
- package/dist/esm/stores/wageStore.d.ts +0 -12
- package/dist/esm/{app/ui/assets → assets/icons}/IconClosePlain.d.ts +0 -0
- package/dist/esm/{features/profile/assets → assets/icons}/IconCurrencyStar.d.ts +0 -0
- package/dist/esm/{features/profile/assets → assets/icons}/IconTelegramStar.d.ts +0 -0
- package/dist/esm/{features/profile/assets → assets/lottie}/moneyTongue.json.d.ts +0 -0
- package/dist/esm/{features/profile/assets → assets/lottie}/newspaper.json.d.ts +0 -0
- package/dist/esm/{launcherSrc/features/profile/components/Balance → components/modals}/TopUpModal/BuyOption.d.ts +0 -0
- package/dist/esm/{features/profile/components → components/modals/TopUpModal}/Ribbon.d.ts +0 -0
- package/dist/esm/{launcherSrc/app/ui/components → components/ui/XsButton}/XsButton.d.ts +1 -1
- /package/dist/esm/{launcherSrc/features/profile/components → components/ui}/particles/ConfettiParticles.d.ts +0 -0
- /package/dist/esm/{features/profile/components → components/ui/particles}/StarParticles.d.ts +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orbit-software/sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.80.1",
|
|
4
4
|
"main": "dist/esm/sdk.mjs",
|
|
5
5
|
"types": "dist/esm/sdk.d.ts",
|
|
6
6
|
"exports": {
|
|
@@ -29,68 +29,59 @@
|
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@biomejs/biome": "1.9.4",
|
|
31
31
|
"@emotion/is-prop-valid": "^1.3.1",
|
|
32
|
+
"@preact/preset-vite": "^2.10.0",
|
|
33
|
+
"@tailwindcss/vite": "^4.0.0",
|
|
32
34
|
"@testing-library/jest-dom": "^6.6.2",
|
|
33
35
|
"@testing-library/react": "^16.0.1",
|
|
36
|
+
"@types/es6-promisify": "^6.0.4",
|
|
34
37
|
"@types/jest": "^29.5.14",
|
|
35
38
|
"@types/mixpanel-browser": "^2.60.0",
|
|
36
39
|
"@types/node": "^22.10.5",
|
|
40
|
+
"@types/react": "^18.3.12",
|
|
41
|
+
"@types/react-dom": "^18.3.1",
|
|
42
|
+
"@types/telegram-web-app": "9.0.0",
|
|
37
43
|
"@vitejs/plugin-react": "^4.3.4",
|
|
38
44
|
"biome": "^0.3.3",
|
|
39
|
-
"css-loader": "^7.1.2",
|
|
40
45
|
"jest": "^29.7.0",
|
|
41
46
|
"jest-environment-jsdom": "^29.7.0",
|
|
42
|
-
"
|
|
47
|
+
"rollup-plugin-cleanup": "^3.2.1",
|
|
43
48
|
"rollup-plugin-visualizer": "6.0.3",
|
|
44
|
-
"
|
|
49
|
+
"tailwindcss": "^4.0.0",
|
|
45
50
|
"ts-jest": "^29.2.5",
|
|
46
|
-
"
|
|
51
|
+
"tsx": "4.20.6",
|
|
47
52
|
"typescript": "^5.6.3",
|
|
53
|
+
"vite": "^6.0.6",
|
|
48
54
|
"vite-plugin-css-injected-by-js": "^3.5.2",
|
|
49
|
-
"
|
|
50
|
-
"
|
|
55
|
+
"vite-plugin-dts": "^4.4.0",
|
|
56
|
+
"vite-plugin-singlefile": "^2.1.0"
|
|
51
57
|
},
|
|
52
58
|
"peerDependencies": {
|
|
53
59
|
"react": "^18.3.1",
|
|
54
60
|
"react-dom": "^18.3.1"
|
|
55
61
|
},
|
|
56
62
|
"dependencies": {
|
|
57
|
-
"@
|
|
58
|
-
"@
|
|
59
|
-
"@reduxjs/toolkit": "^1.9.7",
|
|
60
|
-
"@sentry/react": "^7.120.3",
|
|
61
|
-
"@splinetool/react-spline": "^4.0.0",
|
|
62
|
-
"@tailwindcss/vite": "^4.0.0",
|
|
63
|
+
"@sentry/react": "^10.18.0",
|
|
64
|
+
"@tanstack/react-query": "5.90.2",
|
|
63
65
|
"@telegram-apps/telegram-ui": "^2.1.8",
|
|
64
66
|
"@twa-dev/sdk": "^8.0.1",
|
|
65
67
|
"@twa-dev/types": "^8.0.1",
|
|
66
|
-
"@types/es6-promisify": "^6.0.4",
|
|
67
|
-
"@types/react": "^18.3.12",
|
|
68
|
-
"@types/react-dom": "^18.3.1",
|
|
69
|
-
"@uidotdev/usehooks": "^2.4.1",
|
|
70
|
-
"axios": "^1.7.7",
|
|
71
68
|
"centrifuge": "^5.4.0",
|
|
72
69
|
"clsx": "^2.1.1",
|
|
73
70
|
"embla-carousel-autoplay": "^8.6.0",
|
|
74
71
|
"embla-carousel-react": "^8.6.0",
|
|
75
72
|
"es-toolkit": "^1.38.0",
|
|
76
73
|
"es6-promisify": "^7.0.0",
|
|
77
|
-
"framer-motion": "^
|
|
78
|
-
"i18next": "^
|
|
74
|
+
"framer-motion": "^12.23.22",
|
|
75
|
+
"i18next": "^25.5.3",
|
|
79
76
|
"lottie-react": "^2.4.0",
|
|
80
77
|
"mixpanel-browser": "^2.65.0",
|
|
81
78
|
"preact": "^10.25.4",
|
|
82
|
-
"process": "0.11.10",
|
|
83
79
|
"react-confetti": "^6.1.0",
|
|
84
80
|
"react-device-detect": "^2.2.3",
|
|
85
81
|
"react-ga4": "^2.1.0",
|
|
86
|
-
"react-i18next": "^
|
|
87
|
-
"
|
|
88
|
-
"
|
|
89
|
-
"tailwindcss": "^4.0.0",
|
|
90
|
-
"util": "^0.12.5",
|
|
91
|
-
"vite": "^6.0.6",
|
|
92
|
-
"vite-plugin-dts": "^4.4.0",
|
|
93
|
-
"vite-plugin-singlefile": "^2.1.0",
|
|
82
|
+
"react-i18next": "^16.0.0",
|
|
83
|
+
"sonner": "2.0.7",
|
|
84
|
+
"tailwind-merge": "3.3.1",
|
|
94
85
|
"zustand": "^5.0.2"
|
|
95
86
|
},
|
|
96
87
|
"scripts": {
|
|
@@ -101,6 +92,13 @@
|
|
|
101
92
|
"build:umd": "vite build --config vite.config.umd.mts",
|
|
102
93
|
"build:umd_react": "vite build --config vite.config.umd.react.mts",
|
|
103
94
|
"build:confirm": "vite build --config vite.config.confirm.mts",
|
|
104
|
-
"build": "npm run build:esm && npm run build:umd && npm run build:umd_react && npm run build:confirm"
|
|
95
|
+
"build": "npm run build:esm && npm run build:umd && npm run build:umd_react && npm run build:confirm",
|
|
96
|
+
"typecheck": "tsc --noEmit",
|
|
97
|
+
"format": "biome format .",
|
|
98
|
+
"format:fix": "biome format --write .",
|
|
99
|
+
"lint": "biome check .",
|
|
100
|
+
"lint:fix": "biome check --write .",
|
|
101
|
+
"generate-types": "tsx src/i18n/generate-types.ts",
|
|
102
|
+
"validate-translations": "tsx src/i18n/generate-types.ts"
|
|
105
103
|
}
|
|
106
104
|
}
|
package/dist/confirm/index.html
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
<!doctype html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
|
|
4
|
-
<head>
|
|
5
|
-
<meta charset="UTF-8" />
|
|
6
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
|
-
<title>Confirm</title>
|
|
8
|
-
<script type="module" crossorigin>(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const a of s.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();var ne,d,tt,F,Pe,nt,ue,rt,be,fe,pe,X={},it=[],kt=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,re=Array.isArray;function O(t,e){for(var n in e)t[n]=e[n];return t}function xe(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function de(t,e,n){var r,i,s,a={};for(s in e)s=="key"?r=e[s]:s=="ref"?i=e[s]:a[s]=e[s];if(arguments.length>2&&(a.children=arguments.length>3?ne.call(arguments,2):n),typeof t=="function"&&t.defaultProps!=null)for(s in t.defaultProps)a[s]===void 0&&(a[s]=t.defaultProps[s]);return J(t,a,r,i,null)}function J(t,e,n,r,i){var s={type:t,props:e,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:i??++tt,__i:-1,__u:0};return i==null&&d.vnode!=null&&d.vnode(s),s}function L(t){return t.children}function k(t,e){this.props=t,this.context=e}function U(t,e){if(e==null)return t.__?U(t.__,t.__i+1):null;for(var n;e<t.__k.length;e++)if((n=t.__k[e])!=null&&n.__e!=null)return n.__e;return typeof t.type=="function"?U(t):null}function st(t){var e,n;if((t=t.__)!=null&&t.__c!=null){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if((n=t.__k[e])!=null&&n.__e!=null){t.__e=t.__c.base=n.__e;break}return st(t)}}function Te(t){(!t.__d&&(t.__d=!0)&&F.push(t)&&!Q.__r++||Pe!==d.debounceRendering)&&((Pe=d.debounceRendering)||nt)(Q)}function Q(){var t,e,n,r,i,s,a,c;for(F.sort(ue);t=F.shift();)t.__d&&(e=F.length,r=void 0,s=(i=(n=t).__v).__e,a=[],c=[],n.__P&&((r=O({},i)).__v=i.__v+1,d.vnode&&d.vnode(r),Ee(n.__P,r,i,n.__n,n.__P.namespaceURI,32&i.__u?[s]:null,a,s??U(i),!!(32&i.__u),c),r.__v=i.__v,r.__.__k[r.__i]=r,ct(a,r,c),r.__e!=s&&st(r)),F.length>e&&F.sort(ue));Q.__r=0}function ot(t,e,n,r,i,s,a,c,_,l,u){var o,f,p,S,x,b,g=r&&r.__k||it,m=e.length;for(_=Pt(n,e,g,_,m),o=0;o<m;o++)(p=n.__k[o])!=null&&(f=p.__i===-1?X:g[p.__i]||X,p.__i=o,b=Ee(t,p,f,i,s,a,c,_,l,u),S=p.__e,p.ref&&f.ref!=p.ref&&(f.ref&&Ne(f.ref,null,p),u.push(p.ref,p.__c||S,p)),x==null&&S!=null&&(x=S),4&p.__u||f.__k===p.__k?_=at(p,_,t):typeof p.type=="function"&&b!==void 0?_=b:S&&(_=S.nextSibling),p.__u&=-7);return n.__e=x,_}function Pt(t,e,n,r,i){var s,a,c,_,l,u=n.length,o=u,f=0;for(t.__k=new Array(i),s=0;s<i;s++)(a=e[s])!=null&&typeof a!="boolean"&&typeof a!="function"?(_=s+f,(a=t.__k[s]=typeof a=="string"||typeof a=="number"||typeof a=="bigint"||a.constructor==String?J(null,a,null,null,null):re(a)?J(L,{children:a},null,null,null):a.constructor===void 0&&a.__b>0?J(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):a).__=t,a.__b=t.__b+1,c=null,(l=a.__i=Tt(a,n,_,o))!==-1&&(o--,(c=n[l])&&(c.__u|=2)),c==null||c.__v===null?(l==-1&&f--,typeof a.type!="function"&&(a.__u|=4)):l!=_&&(l==_-1?f--:l==_+1?f++:(l>_?f--:f++,a.__u|=4))):t.__k[s]=null;if(o)for(s=0;s<u;s++)(c=n[s])!=null&&!(2&c.__u)&&(c.__e==r&&(r=U(c)),_t(c,c));return r}function at(t,e,n){var r,i;if(typeof t.type=="function"){for(r=t.__k,i=0;r&&i<r.length;i++)r[i]&&(r[i].__=t,e=at(r[i],e,n));return e}t.__e!=e&&(e&&t.type&&!n.contains(e)&&(e=U(t)),n.insertBefore(t.__e,e||null),e=t.__e);do e=e&&e.nextSibling;while(e!=null&&e.nodeType==8);return e}function $(t,e){return e=e||[],t==null||typeof t=="boolean"||(re(t)?t.some(function(n){$(n,e)}):e.push(t)),e}function Tt(t,e,n,r){var i,s,a=t.key,c=t.type,_=e[n];if(_===null||_&&a==_.key&&c===_.type&&!(2&_.__u))return n;if(r>(_!=null&&!(2&_.__u)?1:0))for(i=n-1,s=n+1;i>=0||s<e.length;){if(i>=0){if((_=e[i])&&!(2&_.__u)&&a==_.key&&c===_.type)return i;i--}if(s<e.length){if((_=e[s])&&!(2&_.__u)&&a==_.key&&c===_.type)return s;s++}}return-1}function Oe(t,e,n){e[0]=="-"?t.setProperty(e,n??""):t[e]=n==null?"":typeof n!="number"||kt.test(e)?n:n+"px"}function W(t,e,n,r,i){var s;e:if(e=="style")if(typeof n=="string")t.style.cssText=n;else{if(typeof r=="string"&&(t.style.cssText=r=""),r)for(e in r)n&&e in n||Oe(t.style,e,"");if(n)for(e in n)r&&n[e]===r[e]||Oe(t.style,e,n[e])}else if(e[0]=="o"&&e[1]=="n")s=e!=(e=e.replace(rt,"$1")),e=e.toLowerCase()in t||e=="onFocusOut"||e=="onFocusIn"?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+s]=n,n?r?n.u=r.u:(n.u=be,t.addEventListener(e,s?pe:fe,s)):t.removeEventListener(e,s?pe:fe,s);else{if(i=="http://www.w3.org/2000/svg")e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(e!="width"&&e!="height"&&e!="href"&&e!="list"&&e!="form"&&e!="tabIndex"&&e!="download"&&e!="rowSpan"&&e!="colSpan"&&e!="role"&&e!="popover"&&e in t)try{t[e]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&e[4]!="-"?t.removeAttribute(e):t.setAttribute(e,e=="popover"&&n==1?"":n))}}function Ie(t){return function(e){if(this.l){var n=this.l[e.type+t];if(e.t==null)e.t=be++;else if(e.t<n.u)return;return n(d.event?d.event(e):e)}}}function Ee(t,e,n,r,i,s,a,c,_,l){var u,o,f,p,S,x,b,g,m,V,P,H,D,ke,q,ae,ce,N=e.type;if(e.constructor!==void 0)return null;128&n.__u&&(_=!!(32&n.__u),s=[c=e.__e=n.__e]),(u=d.__b)&&u(e);e:if(typeof N=="function")try{if(g=e.props,m="prototype"in N&&N.prototype.render,V=(u=N.contextType)&&r[u.__c],P=u?V?V.props.value:u.__:r,n.__c?b=(o=e.__c=n.__c).__=o.__E:(m?e.__c=o=new N(g,P):(e.__c=o=new k(g,P),o.constructor=N,o.render=It),V&&V.sub(o),o.props=g,o.state||(o.state={}),o.context=P,o.__n=r,f=o.__d=!0,o.__h=[],o._sb=[]),m&&o.__s==null&&(o.__s=o.state),m&&N.getDerivedStateFromProps!=null&&(o.__s==o.state&&(o.__s=O({},o.__s)),O(o.__s,N.getDerivedStateFromProps(g,o.__s))),p=o.props,S=o.state,o.__v=e,f)m&&N.getDerivedStateFromProps==null&&o.componentWillMount!=null&&o.componentWillMount(),m&&o.componentDidMount!=null&&o.__h.push(o.componentDidMount);else{if(m&&N.getDerivedStateFromProps==null&&g!==p&&o.componentWillReceiveProps!=null&&o.componentWillReceiveProps(g,P),!o.__e&&(o.shouldComponentUpdate!=null&&o.shouldComponentUpdate(g,o.__s,P)===!1||e.__v==n.__v)){for(e.__v!=n.__v&&(o.props=g,o.state=o.__s,o.__d=!1),e.__e=n.__e,e.__k=n.__k,e.__k.some(function(j){j&&(j.__=e)}),H=0;H<o._sb.length;H++)o.__h.push(o._sb[H]);o._sb=[],o.__h.length&&a.push(o);break e}o.componentWillUpdate!=null&&o.componentWillUpdate(g,o.__s,P),m&&o.componentDidUpdate!=null&&o.__h.push(function(){o.componentDidUpdate(p,S,x)})}if(o.context=P,o.props=g,o.__P=t,o.__e=!1,D=d.__r,ke=0,m){for(o.state=o.__s,o.__d=!1,D&&D(e),u=o.render(o.props,o.state,o.context),q=0;q<o._sb.length;q++)o.__h.push(o._sb[q]);o._sb=[]}else do o.__d=!1,D&&D(e),u=o.render(o.props,o.state,o.context),o.state=o.__s;while(o.__d&&++ke<25);o.state=o.__s,o.getChildContext!=null&&(r=O(O({},r),o.getChildContext())),m&&!f&&o.getSnapshotBeforeUpdate!=null&&(x=o.getSnapshotBeforeUpdate(p,S)),c=ot(t,re(ae=u!=null&&u.type===L&&u.key==null?u.props.children:u)?ae:[ae],e,n,r,i,s,a,c,_,l),o.base=e.__e,e.__u&=-161,o.__h.length&&a.push(o),b&&(o.__E=o.__=null)}catch(j){if(e.__v=null,_||s!=null)if(j.then){for(e.__u|=_?160:128;c&&c.nodeType==8&&c.nextSibling;)c=c.nextSibling;s[s.indexOf(c)]=null,e.__e=c}else for(ce=s.length;ce--;)xe(s[ce]);else e.__e=n.__e,e.__k=n.__k;d.__e(j,e,n)}else s==null&&e.__v==n.__v?(e.__k=n.__k,e.__e=n.__e):c=e.__e=Ot(n.__e,e,n,r,i,s,a,_,l);return(u=d.diffed)&&u(e),128&e.__u?void 0:c}function ct(t,e,n){for(var r=0;r<n.length;r++)Ne(n[r],n[++r],n[++r]);d.__c&&d.__c(e,t),t.some(function(i){try{t=i.__h,i.__h=[],t.some(function(s){s.call(i)})}catch(s){d.__e(s,i.__v)}})}function Ot(t,e,n,r,i,s,a,c,_){var l,u,o,f,p,S,x,b=n.props,g=e.props,m=e.type;if(m=="svg"?i="http://www.w3.org/2000/svg":m=="math"?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),s!=null){for(l=0;l<s.length;l++)if((p=s[l])&&"setAttribute"in p==!!m&&(m?p.localName==m:p.nodeType==3)){t=p,s[l]=null;break}}if(t==null){if(m==null)return document.createTextNode(g);t=document.createElementNS(i,m,g.is&&g),c&&(d.__m&&d.__m(e,s),c=!1),s=null}if(m===null)b===g||c&&t.data===g||(t.data=g);else{if(s=s&&ne.call(t.childNodes),b=n.props||X,!c&&s!=null)for(b={},l=0;l<t.attributes.length;l++)b[(p=t.attributes[l]).name]=p.value;for(l in b)if(p=b[l],l!="children"){if(l=="dangerouslySetInnerHTML")o=p;else if(!(l in g)){if(l=="value"&&"defaultValue"in g||l=="checked"&&"defaultChecked"in g)continue;W(t,l,null,p,i)}}for(l in g)p=g[l],l=="children"?f=p:l=="dangerouslySetInnerHTML"?u=p:l=="value"?S=p:l=="checked"?x=p:c&&typeof p!="function"||b[l]===p||W(t,l,p,b[l],i);if(u)c||o&&(u.__html===o.__html||u.__html===t.innerHTML)||(t.innerHTML=u.__html),e.__k=[];else if(o&&(t.innerHTML=""),ot(t,re(f)?f:[f],e,n,r,m=="foreignObject"?"http://www.w3.org/1999/xhtml":i,s,a,s?s[0]:n.__k&&U(n,0),c,_),s!=null)for(l=s.length;l--;)xe(s[l]);c||(l="value",m=="progress"&&S==null?t.removeAttribute("value"):S!==void 0&&(S!==t[l]||m=="progress"&&!S||m=="option"&&S!==b[l])&&W(t,l,S,b[l],i),l="checked",x!==void 0&&x!==t[l]&&W(t,l,x,b[l],i))}return t}function Ne(t,e,n){try{if(typeof t=="function"){var r=typeof t.__u=="function";r&&t.__u(),r&&e==null||(t.__u=t(e))}else t.current=e}catch(i){d.__e(i,n)}}function _t(t,e,n){var r,i;if(d.unmount&&d.unmount(t),(r=t.ref)&&(r.current&&r.current!==t.__e||Ne(r,null,e)),(r=t.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(s){d.__e(s,e)}r.base=r.__P=null}if(r=t.__k)for(i=0;i<r.length;i++)r[i]&&_t(r[i],e,n||typeof t.type!="function");n||xe(t.__e),t.__c=t.__=t.__e=void 0}function It(t,e,n){return this.constructor(t,n)}function Ft(t,e,n){var r,i,s,a;e==document&&(e=document.documentElement),d.__&&d.__(t,e),i=(r=typeof n=="function")?null:e.__k,s=[],a=[],Ee(e,t=e.__k=de(L,null,[t]),i||X,X,e.namespaceURI,i?null:e.firstChild?ne.call(e.childNodes):null,s,i?i.__e:e.firstChild,r,a),ct(s,t,a)}ne=it.slice,d={__e:function(t,e,n,r){for(var i,s,a;e=e.__;)if((i=e.__c)&&!i.__)try{if((s=i.constructor)&&s.getDerivedStateFromError!=null&&(i.setState(s.getDerivedStateFromError(t)),a=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(t,r||{}),a=i.__d),a)return i.__E=i}catch(c){t=c}throw t}},tt=0,k.prototype.setState=function(t,e){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=O({},this.state),typeof t=="function"&&(t=t(O({},n),this.props)),t&&O(n,t),t!=null&&this.__v&&(e&&this._sb.push(e),Te(this))},k.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),Te(this))},k.prototype.render=L,F=[],nt=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,ue=function(t,e){return t.__v.__b-e.__v.__b},Q.__r=0,rt=/(PointerCapture)$|Capture$/i,be=0,fe=Ie(!1),pe=Ie(!0);var Rt=0;function h(t,e,n,r,i,s){e||(e={});var a,c,_=e;if("ref"in _)for(c in _={},e)c=="ref"?a=e[c]:_[c]=e[c];var l={type:t,props:_,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--Rt,__i:-1,__u:0,__source:i,__self:s};if(typeof t=="function"&&(a=t.defaultProps))for(c in a)_[c]===void 0&&(_[c]=a[c]);return d.vnode&&d.vnode(l),l}const Mt=Object.prototype.toString;function Lt(t,e){return Mt.call(t)===`[object ${e}]`}function lt(t){return Lt(t,"Object")}function we(t){return!!(t&&t.then&&typeof t.then=="function")}function Y(t){return t&&t.Math==Math?t:void 0}const E=typeof globalThis=="object"&&Y(globalThis)||typeof window=="object"&&Y(window)||typeof self=="object"&&Y(self)||typeof global=="object"&&Y(global)||function(){return this}()||{};function ut(t,e,n){const r=n||E,i=r.__SENTRY__=r.__SENTRY__||{};return i[t]||(i[t]=e())}const At=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Ut="Sentry Logger ",Fe=["debug","info","warn","error","log","assert","trace"],Re={};function ft(t){if(!("console"in E))return t();const e=E.console,n={},r=Object.keys(Re);r.forEach(i=>{const s=Re[i];n[i]=e[i],e[i]=s});try{return t()}finally{r.forEach(i=>{e[i]=n[i]})}}function Vt(){let t=!1;const e={enable:()=>{t=!0},disable:()=>{t=!1},isEnabled:()=>t};return At?Fe.forEach(n=>{e[n]=(...r)=>{t&&ft(()=>{E.console[n](`${Ut}[${n}]:`,...r)})}}):Fe.forEach(n=>{e[n]=()=>{}}),e}const I=Vt();function R(t){return he(t,new Map)}function he(t,e){if(Dt(t)){const n=e.get(t);if(n!==void 0)return n;const r={};e.set(t,r);for(const i of Object.keys(t))typeof t[i]<"u"&&(r[i]=he(t[i],e));return r}if(Array.isArray(t)){const n=e.get(t);if(n!==void 0)return n;const r=[];return e.set(t,r),t.forEach(i=>{r.push(he(i,e))}),r}return t}function Dt(t){if(!lt(t))return!1;try{const e=Object.getPrototypeOf(t).constructor.name;return!e||e==="Object"}catch{return!0}}function w(){const t=E,e=t.crypto||t.msCrypto;let n=()=>Math.random()*16;try{if(e&&e.randomUUID)return e.randomUUID().replace(/-/g,"");e&&e.getRandomValues&&(n=()=>{const r=new Uint8Array(1);return e.getRandomValues(r),r[0]})}catch{}return("10000000100040008000"+1e11).replace(/[018]/g,r=>(r^(n()&15)>>r/4).toString(16))}function jt(t){return Array.isArray(t)?t:[t]}var C;(function(t){t[t.PENDING=0]="PENDING";const n=1;t[t.RESOLVED=n]="RESOLVED";const r=2;t[t.REJECTED=r]="REJECTED"})(C||(C={}));class T{constructor(e){T.prototype.__init.call(this),T.prototype.__init2.call(this),T.prototype.__init3.call(this),T.prototype.__init4.call(this),this._state=C.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(n){this._reject(n)}}then(e,n){return new T((r,i)=>{this._handlers.push([!1,s=>{if(!e)r(s);else try{r(e(s))}catch(a){i(a)}},s=>{if(!n)i(s);else try{r(n(s))}catch(a){i(a)}}]),this._executeHandlers()})}catch(e){return this.then(n=>n,e)}finally(e){return new T((n,r)=>{let i,s;return this.then(a=>{s=!1,i=a,e&&e()},a=>{s=!0,i=a,e&&e()}).then(()=>{if(s){r(i);return}n(i)})})}__init(){this._resolve=e=>{this._setResult(C.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(C.REJECTED,e)}}__init3(){this._setResult=(e,n)=>{if(this._state===C.PENDING){if(we(n)){n.then(this._resolve,this._reject);return}this._state=e,this._value=n,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===C.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach(n=>{n[0]||(this._state===C.RESOLVED&&n[1](this._value),this._state===C.REJECTED&&n[2](this._value),n[0]=!0)})}}}const pt=1e3;function Ce(){return Date.now()/pt}function Bt(){const{performance:t}=E;if(!t||!t.now)return Ce;const e=Date.now()-t.now(),n=t.timeOrigin==null?e:t.timeOrigin;return()=>(n+t.now())/pt}const dt=Bt();(()=>{const{performance:t}=E;if(!t||!t.now)return;const e=3600*1e3,n=t.now(),r=Date.now(),i=t.timeOrigin?Math.abs(t.timeOrigin+n-r):e,s=i<e,a=t.timing&&t.timing.navigationStart,_=typeof a=="number"?Math.abs(a+n-r):e,l=_<e;return s||l?i<=_?t.timeOrigin:a:r})();const K=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,ht="production";function Xt(){return ut("globalEventProcessors",()=>[])}function ge(t,e,n,r=0){return new T((i,s)=>{const a=t[r];if(e===null||typeof a!="function")i(e);else{const c=a({...e},n);K&&a.id&&c===null&&I.log(`Event processor "${a.id}" dropped event`),we(c)?c.then(_=>ge(t,_,n,r+1).then(i)).then(null,s):ge(t,c,n,r+1).then(i).then(null,s)}})}function Ht(t){const e=dt(),n={sid:w(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>Wt(n)};return ie(n,t),n}function ie(t,e={}){if(e.user&&(!t.ipAddress&&e.user.ip_address&&(t.ipAddress=e.user.ip_address),!t.did&&!e.did&&(t.did=e.user.id||e.user.email||e.user.username)),t.timestamp=e.timestamp||dt(),e.abnormal_mechanism&&(t.abnormal_mechanism=e.abnormal_mechanism),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=e.sid.length===32?e.sid:w()),e.init!==void 0&&(t.init=e.init),!t.did&&e.did&&(t.did=`${e.did}`),typeof e.started=="number"&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if(typeof e.duration=="number")t.duration=e.duration;else{const n=t.timestamp-t.started;t.duration=n>=0?n:0}e.release&&(t.release=e.release),e.environment&&(t.environment=e.environment),!t.ipAddress&&e.ipAddress&&(t.ipAddress=e.ipAddress),!t.userAgent&&e.userAgent&&(t.userAgent=e.userAgent),typeof e.errors=="number"&&(t.errors=e.errors),e.status&&(t.status=e.status)}function qt(t,e){let n={};t.status==="ok"&&(n={status:"exited"}),ie(t,n)}function Wt(t){return R({sid:`${t.sid}`,init:t.init,started:new Date(t.started*1e3).toISOString(),timestamp:new Date(t.timestamp*1e3).toISOString(),status:t.status,errors:t.errors,did:typeof t.did=="number"||typeof t.did=="string"?`${t.did}`:void 0,duration:t.duration,abnormal_mechanism:t.abnormal_mechanism,attrs:{release:t.release,environment:t.environment,ip_address:t.ipAddress,user_agent:t.userAgent}})}const Yt=1;function zt(t){const{spanId:e,traceId:n}=t.spanContext(),{data:r,op:i,parent_span_id:s,status:a,tags:c,origin:_}=ee(t);return R({data:r,op:i,parent_span_id:s,span_id:e,status:a,tags:c,trace_id:n,origin:_})}function ee(t){return Jt(t)?t.getSpanJSON():typeof t.toJSON=="function"?t.toJSON():{}}function Jt(t){return typeof t.getSpanJSON=="function"}function Kt(t){const{traceFlags:e}=t.spanContext();return!!(e&Yt)}function Zt(t){if(t)return Gt(t)?{captureContext:t}:$t(t)?{captureContext:t}:t}function Gt(t){return t instanceof M||typeof t=="function"}const Qt=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function $t(t){return Object.keys(t).some(e=>Qt.includes(e))}function me(t,e){return oe().captureException(t,Zt(e))}function A(t,e){const n=typeof e=="string"?e:void 0,r=typeof e!="string"?{captureContext:e}:void 0;return oe().captureMessage(t,n,r)}function en(){return oe().getClient()}function tn(){return oe().getScope()}function gt(t){return t.transaction}function nn(t,e,n){const r=e.getOptions(),{publicKey:i}=e.getDsn()||{},{segment:s}=n&&n.getUser()||{},a=R({environment:r.environment||ht,release:r.release,user_segment:s,public_key:i,trace_id:t});return e.emit&&e.emit("createDsc",a),a}function rn(t){const e=en();if(!e)return{};const n=nn(ee(t).trace_id||"",e,tn()),r=gt(t);if(!r)return n;const i=r&&r._frozenDynamicSamplingContext;if(i)return i;const{sampleRate:s,source:a}=r.metadata;s!=null&&(n.sample_rate=`${s}`);const c=ee(r);return a&&a!=="url"&&(n.transaction=c.description),n.sampled=String(Kt(r)),e.emit&&e.emit("createDsc",n),n}function sn(t,e){const{fingerprint:n,span:r,breadcrumbs:i,sdkProcessingMetadata:s}=e;on(t,e),r&&_n(t,r),ln(t,n),an(t,i),cn(t,s)}function on(t,e){const{extra:n,tags:r,user:i,contexts:s,level:a,transactionName:c}=e,_=R(n);_&&Object.keys(_).length&&(t.extra={..._,...t.extra});const l=R(r);l&&Object.keys(l).length&&(t.tags={...l,...t.tags});const u=R(i);u&&Object.keys(u).length&&(t.user={...u,...t.user});const o=R(s);o&&Object.keys(o).length&&(t.contexts={...o,...t.contexts}),a&&(t.level=a),c&&(t.transaction=c)}function an(t,e){const n=[...t.breadcrumbs||[],...e];t.breadcrumbs=n.length?n:void 0}function cn(t,e){t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...e}}function _n(t,e){t.contexts={trace:zt(e),...t.contexts};const n=gt(e);if(n){t.sdkProcessingMetadata={dynamicSamplingContext:rn(e),...t.sdkProcessingMetadata};const r=ee(n).description;r&&(t.tags={transaction:r,...t.tags})}}function ln(t,e){t.fingerprint=t.fingerprint?jt(t.fingerprint):[],e&&(t.fingerprint=t.fingerprint.concat(e)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint}const un=100;class M{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=Me()}static clone(e){return e?e.clone():new M}clone(){const e=new M;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},e._user=this._user,e._level=this._level,e._span=this._span,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e}setClient(e){this._client=e}getClient(){return this._client}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,segment:void 0,username:void 0},this._session&&ie(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,n){return this._tags={...this._tags,[e]:n},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,n){return this._extra={...this._extra,[e]:n},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,n){return n===null?delete this._contexts[e]:this._contexts[e]=n,this._notifyScopeListeners(),this}setSpan(e){return this._span=e,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const e=this._span;return e&&e.transaction}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;const n=typeof e=="function"?e(this):e;if(n instanceof M){const r=n.getScopeData();this._tags={...this._tags,...r.tags},this._extra={...this._extra,...r.extra},this._contexts={...this._contexts,...r.contexts},r.user&&Object.keys(r.user).length&&(this._user=r.user),r.level&&(this._level=r.level),r.fingerprint.length&&(this._fingerprint=r.fingerprint),n.getRequestSession()&&(this._requestSession=n.getRequestSession()),r.propagationContext&&(this._propagationContext=r.propagationContext)}else if(lt(n)){const r=e;this._tags={...this._tags,...r.tags},this._extra={...this._extra,...r.extra},this._contexts={...this._contexts,...r.contexts},r.user&&(this._user=r.user),r.level&&(this._level=r.level),r.fingerprint&&(this._fingerprint=r.fingerprint),r.requestSession&&(this._requestSession=r.requestSession),r.propagationContext&&(this._propagationContext=r.propagationContext)}return this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=Me(),this}addBreadcrumb(e,n){const r=typeof n=="number"?n:un;if(r<=0)return this;const i={timestamp:Ce(),...e},s=this._breadcrumbs;return s.push(i),this._breadcrumbs=s.length>r?s.slice(-r):s,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){const{_breadcrumbs:e,_attachments:n,_contexts:r,_tags:i,_extra:s,_user:a,_level:c,_fingerprint:_,_eventProcessors:l,_propagationContext:u,_sdkProcessingMetadata:o,_transactionName:f,_span:p}=this;return{breadcrumbs:e,attachments:n,contexts:r,tags:i,extra:s,user:a,level:c,fingerprint:_||[],eventProcessors:l,propagationContext:u,sdkProcessingMetadata:o,transactionName:f,span:p}}applyToEvent(e,n={},r=[]){sn(e,this.getScopeData());const i=[...r,...Xt(),...this._eventProcessors];return ge(i,e,n)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,n){const r=n&&n.event_id?n.event_id:w();if(!this._client)return I.warn("No client configured on scope - will not capture exception!"),r;const i=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:i,...n,event_id:r},this),r}captureMessage(e,n,r){const i=r&&r.event_id?r.event_id:w();if(!this._client)return I.warn("No client configured on scope - will not capture message!"),i;const s=new Error(e);return this._client.captureMessage(e,n,{originalException:e,syntheticException:s,...r,event_id:i},this),i}captureEvent(e,n){const r=n&&n.event_id?n.event_id:w();return this._client?(this._client.captureEvent(e,{...n,event_id:r},this),r):(I.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}}function Me(){return{traceId:w(),spanId:w().substring(16)}}const fn="7.120.3",mt=parseFloat(fn),pn=100;class vt{constructor(e,n,r,i=mt){this._version=i;let s;n?s=n:(s=new M,s.setClient(e));let a;r?a=r:(a=new M,a.setClient(e)),this._stack=[{scope:s}],e&&this.bindClient(e),this._isolationScope=a}isOlderThan(e){return this._version<e}bindClient(e){const n=this.getStackTop();n.client=e,n.scope.setClient(e),e&&e.setupIntegrations&&e.setupIntegrations()}pushScope(){const e=this.getScope().clone();return this.getStack().push({client:this.getClient(),scope:e}),e}popScope(){return this.getStack().length<=1?!1:!!this.getStack().pop()}withScope(e){const n=this.pushScope();let r;try{r=e(n)}catch(i){throw this.popScope(),i}return we(r)?r.then(i=>(this.popScope(),i),i=>{throw this.popScope(),i}):(this.popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(e,n){const r=this._lastEventId=n&&n.event_id?n.event_id:w(),i=new Error("Sentry syntheticException");return this.getScope().captureException(e,{originalException:e,syntheticException:i,...n,event_id:r}),r}captureMessage(e,n,r){const i=this._lastEventId=r&&r.event_id?r.event_id:w(),s=new Error(e);return this.getScope().captureMessage(e,n,{originalException:e,syntheticException:s,...r,event_id:i}),i}captureEvent(e,n){const r=n&&n.event_id?n.event_id:w();return e.type||(this._lastEventId=r),this.getScope().captureEvent(e,{...n,event_id:r}),r}lastEventId(){return this._lastEventId}addBreadcrumb(e,n){const{scope:r,client:i}=this.getStackTop();if(!i)return;const{beforeBreadcrumb:s=null,maxBreadcrumbs:a=pn}=i.getOptions&&i.getOptions()||{};if(a<=0)return;const _={timestamp:Ce(),...e},l=s?ft(()=>s(_,n)):_;l!==null&&(i.emit&&i.emit("beforeAddBreadcrumb",l,n),r.addBreadcrumb(l,a))}setUser(e){this.getScope().setUser(e),this.getIsolationScope().setUser(e)}setTags(e){this.getScope().setTags(e),this.getIsolationScope().setTags(e)}setExtras(e){this.getScope().setExtras(e),this.getIsolationScope().setExtras(e)}setTag(e,n){this.getScope().setTag(e,n),this.getIsolationScope().setTag(e,n)}setExtra(e,n){this.getScope().setExtra(e,n),this.getIsolationScope().setExtra(e,n)}setContext(e,n){this.getScope().setContext(e,n),this.getIsolationScope().setContext(e,n)}configureScope(e){const{scope:n,client:r}=this.getStackTop();r&&e(n)}run(e){const n=Le(this);try{e(this)}finally{Le(n)}}getIntegration(e){const n=this.getClient();if(!n)return null;try{return n.getIntegration(e)}catch{return K&&I.warn(`Cannot retrieve integration ${e.id} from the current Hub`),null}}startTransaction(e,n){const r=this._callExtensionMethod("startTransaction",e,n);return K&&!r&&(this.getClient()?I.warn(`Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':
|
|
9
|
-
Sentry.addTracingExtensions();
|
|
10
|
-
Sentry.init({...});
|
|
11
|
-
`):I.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")),r}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(e=!1){if(e)return this.endSession();this._sendSessionUpdate()}endSession(){const n=this.getStackTop().scope,r=n.getSession();r&&qt(r),this._sendSessionUpdate(),n.setSession()}startSession(e){const{scope:n,client:r}=this.getStackTop(),{release:i,environment:s=ht}=r&&r.getOptions()||{},{userAgent:a}=E.navigator||{},c=Ht({release:i,environment:s,user:n.getUser(),...a&&{userAgent:a},...e}),_=n.getSession&&n.getSession();return _&&_.status==="ok"&&ie(_,{status:"exited"}),this.endSession(),n.setSession(c),c}shouldSendDefaultPii(){const e=this.getClient(),n=e&&e.getOptions();return!!(n&&n.sendDefaultPii)}_sendSessionUpdate(){const{scope:e,client:n}=this.getStackTop(),r=e.getSession();r&&n&&n.captureSession&&n.captureSession(r)}_callExtensionMethod(e,...n){const i=se().__SENTRY__;if(i&&i.extensions&&typeof i.extensions[e]=="function")return i.extensions[e].apply(this,n);K&&I.warn(`Extension method ${e} couldn't be found, doing nothing.`)}}function se(){return E.__SENTRY__=E.__SENTRY__||{extensions:{},hub:void 0},E}function Le(t){const e=se(),n=ve(e);return yt(e,t),n}function oe(){const t=se();if(t.__SENTRY__&&t.__SENTRY__.acs){const e=t.__SENTRY__.acs.getCurrentHub();if(e)return e}return dn(t)}function dn(t=se()){return(!hn(t)||ve(t).isOlderThan(mt))&&yt(t,new vt),ve(t)}function hn(t){return!!(t&&t.__SENTRY__&&t.__SENTRY__.hub)}function ve(t){return ut("hub",()=>new vt,t)}function yt(t,e){if(!t)return!1;const n=t.__SENTRY__=t.__SENTRY__||{};return n.hub=e,!0}var te,v,_e,Ae,ye=0,St=[],y=d,Ue=y.__b,Ve=y.__r,De=y.diffed,je=y.__c,Be=y.unmount,Xe=y.__;function bt(t,e){y.__h&&y.__h(v,t,ye||e),ye=0;var n=v.__H||(v.__H={__:[],__h:[]});return t>=n.__.length&&n.__.push({}),n.__[t]}function Z(t){return ye=1,gn(xt,t)}function gn(t,e,n){var r=bt(te++,2);if(r.t=t,!r.__c&&(r.__=[n?n(e):xt(void 0,e),function(c){var _=r.__N?r.__N[0]:r.__[0],l=r.t(_,c);_!==l&&(r.__N=[l,r.__[1]],r.__c.setState({}))}],r.__c=v,!v.u)){var i=function(c,_,l){if(!r.__c.__H)return!0;var u=r.__c.__H.__.filter(function(f){return!!f.__c});if(u.every(function(f){return!f.__N}))return!s||s.call(this,c,_,l);var o=r.__c.props!==c;return u.forEach(function(f){if(f.__N){var p=f.__[0];f.__=f.__N,f.__N=void 0,p!==f.__[0]&&(o=!0)}}),s&&s.call(this,c,_,l)||o};v.u=!0;var s=v.shouldComponentUpdate,a=v.componentWillUpdate;v.componentWillUpdate=function(c,_,l){if(this.__e){var u=s;s=void 0,i(c,_,l),s=u}a&&a.call(this,c,_,l)},v.shouldComponentUpdate=i}return r.__N||r.__}function mn(t,e){var n=bt(te++,3);!y.__s&&Sn(n.__H,e)&&(n.__=t,n.i=e,v.__H.__h.push(n))}function vn(){for(var t;t=St.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(G),t.__H.__h.forEach(Se),t.__H.__h=[]}catch(e){t.__H.__h=[],y.__e(e,t.__v)}}y.__b=function(t){v=null,Ue&&Ue(t)},y.__=function(t,e){t&&e.__k&&e.__k.__m&&(t.__m=e.__k.__m),Xe&&Xe(t,e)},y.__r=function(t){Ve&&Ve(t),te=0;var e=(v=t.__c).__H;e&&(_e===v?(e.__h=[],v.__h=[],e.__.forEach(function(n){n.__N&&(n.__=n.__N),n.i=n.__N=void 0})):(e.__h.forEach(G),e.__h.forEach(Se),e.__h=[],te=0)),_e=v},y.diffed=function(t){De&&De(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(St.push(e)!==1&&Ae===y.requestAnimationFrame||((Ae=y.requestAnimationFrame)||yn)(vn)),e.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.i=void 0})),_e=v=null},y.__c=function(t,e){e.some(function(n){try{n.__h.forEach(G),n.__h=n.__h.filter(function(r){return!r.__||Se(r)})}catch(r){e.some(function(i){i.__h&&(i.__h=[])}),e=[],y.__e(r,n.__v)}}),je&&je(t,e)},y.unmount=function(t){Be&&Be(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{G(r)}catch(i){e=i}}),n.__H=void 0,e&&y.__e(e,n.__v))};var He=typeof requestAnimationFrame=="function";function yn(t){var e,n=function(){clearTimeout(r),He&&cancelAnimationFrame(e),setTimeout(t)},r=setTimeout(n,100);He&&(e=requestAnimationFrame(n))}function G(t){var e=v,n=t.__c;typeof n=="function"&&(t.__c=void 0,n()),v=e}function Se(t){var e=v;t.__c=t.__(),v=e}function Sn(t,e){return!t||t.length!==e.length||e.some(function(n,r){return n!==t[r]})}function xt(t,e){return typeof e=="function"?e(t):e}function bn(t,e){for(var n in e)t[n]=e[n];return t}function qe(t,e){for(var n in t)if(n!=="__source"&&!(n in e))return!0;for(var r in e)if(r!=="__source"&&t[r]!==e[r])return!0;return!1}function We(t,e){this.props=t,this.context=e}(We.prototype=new k).isPureReactComponent=!0,We.prototype.shouldComponentUpdate=function(t,e){return qe(this.props,t)||qe(this.state,e)};var Ye=d.__b;d.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),Ye&&Ye(t)};var xn=d.__e;d.__e=function(t,e,n,r){if(t.then){for(var i,s=e;s=s.__;)if((i=s.__c)&&i.__c)return e.__e==null&&(e.__e=n.__e,e.__k=n.__k),i.__c(t,e)}xn(t,e,n,r)};var ze=d.unmount;function Et(t,e,n){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),t.__c.__H=null),(t=bn({},t)).__c!=null&&(t.__c.__P===n&&(t.__c.__P=e),t.__c=null),t.__k=t.__k&&t.__k.map(function(r){return Et(r,e,n)})),t}function Nt(t,e,n){return t&&n&&(t.__v=null,t.__k=t.__k&&t.__k.map(function(r){return Nt(r,e,n)}),t.__c&&t.__c.__P===e&&(t.__e&&n.appendChild(t.__e),t.__c.__e=!0,t.__c.__P=n)),t}function le(){this.__u=0,this.o=null,this.__b=null}function wt(t){var e=t.__.__c;return e&&e.__a&&e.__a(t)}function z(){this.i=null,this.l=null}d.unmount=function(t){var e=t.__c;e&&e.__R&&e.__R(),e&&32&t.__u&&(t.type=null),ze&&ze(t)},(le.prototype=new k).__c=function(t,e){var n=e.__c,r=this;r.o==null&&(r.o=[]),r.o.push(n);var i=wt(r.__v),s=!1,a=function(){s||(s=!0,n.__R=null,i?i(c):c())};n.__R=a;var c=function(){if(!--r.__u){if(r.state.__a){var _=r.state.__a;r.__v.__k[0]=Nt(_,_.__c.__P,_.__c.__O)}var l;for(r.setState({__a:r.__b=null});l=r.o.pop();)l.forceUpdate()}};r.__u++||32&e.__u||r.setState({__a:r.__b=r.__v.__k[0]}),t.then(a,a)},le.prototype.componentWillUnmount=function(){this.o=[]},le.prototype.render=function(t,e){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=Et(this.__b,n,r.__O=r.__P)}this.__b=null}var i=e.__a&&de(L,null,t.fallback);return i&&(i.__u&=-33),[de(L,null,e.__a?null:t.children),i]};var Je=function(t,e,n){if(++n[1]===n[0]&&t.l.delete(e),t.props.revealOrder&&(t.props.revealOrder[0]!=="t"||!t.l.size))for(n=t.i;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;t.i=n=n[2]}};(z.prototype=new k).__a=function(t){var e=this,n=wt(e.__v),r=e.l.get(t);return r[0]++,function(i){var s=function(){e.props.revealOrder?(r.push(i),Je(e,t,r)):i()};n?n(s):s()}},z.prototype.render=function(t){this.i=null,this.l=new Map;var e=$(t.children);t.revealOrder&&t.revealOrder[0]==="b"&&e.reverse();for(var n=e.length;n--;)this.l.set(e[n],this.i=[1,0,this.i]);return t.children},z.prototype.componentDidUpdate=z.prototype.componentDidMount=function(){var t=this;this.l.forEach(function(e,n){Je(t,n,e)})};var En=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Nn=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,wn=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Cn=/[A-Z0-9]/g,kn=typeof document<"u",Pn=function(t){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(t)};k.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(k.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})});var Ke=d.event;function Tn(){}function On(){return this.cancelBubble}function In(){return this.defaultPrevented}d.event=function(t){return Ke&&(t=Ke(t)),t.persist=Tn,t.isPropagationStopped=On,t.isDefaultPrevented=In,t.nativeEvent=t};var Fn={enumerable:!1,configurable:!0,get:function(){return this.class}},Ze=d.vnode;d.vnode=function(t){typeof t.type=="string"&&function(e){var n=e.props,r=e.type,i={},s=r.indexOf("-")===-1;for(var a in n){var c=n[a];if(!(a==="value"&&"defaultValue"in n&&c==null||kn&&a==="children"&&r==="noscript"||a==="class"||a==="className")){var _=a.toLowerCase();a==="defaultValue"&&"value"in n&&n.value==null?a="value":a==="download"&&c===!0?c="":_==="translate"&&c==="no"?c=!1:_[0]==="o"&&_[1]==="n"?_==="ondoubleclick"?a="ondblclick":_!=="onchange"||r!=="input"&&r!=="textarea"||Pn(n.type)?_==="onfocus"?a="onfocusin":_==="onblur"?a="onfocusout":wn.test(a)&&(a=_):_=a="oninput":s&&Nn.test(a)?a=a.replace(Cn,"-$&").toLowerCase():c===null&&(c=void 0),_==="oninput"&&i[a=_]&&(a="oninputCapture"),i[a]=c}}r=="select"&&i.multiple&&Array.isArray(i.value)&&(i.value=$(n.children).forEach(function(l){l.props.selected=i.value.indexOf(l.props.value)!=-1})),r=="select"&&i.defaultValue!=null&&(i.value=$(n.children).forEach(function(l){l.props.selected=i.multiple?i.defaultValue.indexOf(l.props.value)!=-1:i.defaultValue==l.props.value})),n.class&&!n.className?(i.class=n.class,Object.defineProperty(i,"className",Fn)):(n.className&&!n.class||n.class&&n.className)&&(i.class=i.className=n.className),e.props=i}(t),t.$$typeof=En,Ze&&Ze(t)};var Ge=d.__r;d.__r=function(t){Ge&&Ge(t),t.__c};var Qe=d.diffed;d.diffed=function(t){Qe&&Qe(t);var e=t.props,n=t.__e;n!=null&&t.type==="textarea"&&"value"in e&&e.value!==n.value&&(n.value=e.value==null?"":e.value)};function Ct(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(n=Ct(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function B(){for(var t,e,n=0,r="",i=arguments.length;n<i;n++)(t=arguments[n])&&(e=Ct(t))&&(r&&(r+=" "),r+=e);return r}const Rn="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE8AAABOCAYAAABhaEsjAAAACXBIWXMAACE4AAAhOAFFljFgAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAACSXSURBVHgB7XwJlJxXeeX9t6q/9urqfVe3tpZai7VYko2NkbANHgL2YGIwGAgZ8NgBwswZMjMwGUcsQxi2zCSBIQSOIc5hWAyEzQ7CtrzIi7Aky9ZmLd0tqfet9v3f5r73t4whOEi2ZPvM0TunVN1VXf9y3/fud7/7vRJwcVwcF8fFcXFcHBfHxXFx/P84FLzKhud5v/eaFEXx8CoYLyt4Aph7T5wIbF6ypNm2sULxnA4XWtJV3Khju9G6p8ZrlhctWV64bCPoOprqeA4cDzbhclR4dV5xCXBLtqfk6lat5CCQ1xRlPqCrkwnDHq22mWNbFcXGyzAuKHgCrK/thd4TyXZ2tIZWR4PGdWENryMYvY7nhVyGkMtLsEB0eLu2rcB2IMDiw+Pn+Rr/EQ9X/MxjugxMVzzzH0/egAOV/2pQ3JTh1ZpC7mnN0O51KvhF1tD3/OxLSG/frri4AOOCgLdzxDMbIvZGuPYVhbL9Bt0MrAmFtAZd9xRGCFSetaooKBCNCoFxeGsqQWFkgYFG5Pjga+L1OpGs8VdLwKT4ANp803H9yzd5nJAGGPyswQOLZ5NhGlQVR685E7GA8khN836aMwIP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XFxXByvlvH/ADD4qBjhIJkNAAAAAElFTkSuQmCC",Mn={openInvoice:(t,e)=>{var n,r;(r=(n=window.Telegram)==null?void 0:n.WebApp)!=null&&r.openInvoice?window.Telegram.WebApp.openInvoice(t,e):(console.error("Telegram WebApp not available"),e("failed"))}},Ln=async()=>{try{const t=await fetch("/sdk/prices",{method:"GET",credentials:"include"});if(!t.ok)throw new Error(`HTTP error! status: ${t.status}`);return await t.json()}catch(t){return console.error("Failed to fetch prices:",t),{items:[{gems:100,stars:10,discount:0,invoice_url:"https://t.me/invoice/100"},{gems:500,stars:45,discount:0,invoice_url:"https://t.me/invoice/500"},{gems:1e3,stars:85,discount:0,invoice_url:"https://t.me/invoice/1000"},{gems:2500,stars:200,discount:5,invoice_url:"https://t.me/invoice/2500"},{gems:5e3,stars:380,discount:10,invoice_url:"https://t.me/invoice/5000"},{gems:1e4,stars:750,discount:15,invoice_url:"https://t.me/invoice/10000"}]}}},$e=B("flex justify-center items-center","w-full","h-full","font-medium","text-[15px] leading-[20px]");let et=!1;function An({isOpen:t,onClose:e,children:n}){return t?h("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50",children:h("div",{className:"bg-white p-6 rounded-lg max-w-sm w-full mx-4 relative",children:[h("button",{onClick:e,className:"absolute top-2 right-2 text-gray-500 hover:text-gray-700 text-xl font-bold",children:"×"}),n]})}):null}function Un({onClose:t,onSuccess:e}){const[n,r]=Z([]),[i,s]=Z(!0),[a,c]=Z(null);mn(()=>{(async()=>{try{const o=await Ln();r(o.items||[])}catch(o){console.error("Failed to load prices:",o),me(o)}finally{s(!1)}})()},[]);const _=async(u,o)=>{if(!u.invoice_url){console.error("No invoice URL provided for option:",u);return}c(o);try{Mn.openInvoice(u.invoice_url,f=>{c(null),f==="paid"?(console.log("Payment successful!"),A("Top-up payment successful",{level:"info",extra:{gems:u.gems,stars:u.stars}}),e==null||e(),t()):console.log("Payment cancelled or failed:",f)})}catch(f){c(null),console.error("Failed to open invoice:",f),me(f)}},l=u=>new Intl.NumberFormat("en-US").format(u);return h("div",{className:"text-center",children:[h("div",{className:"mb-4",children:[h("div",{className:"text-2xl mb-2",children:"💰"}),h("h2",{className:"text-lg font-bold mb-2",children:"Top Up Balance"}),h("p",{className:"text-sm text-gray-600",children:"Choose an amount to purchase:"})]}),i?h("div",{className:"py-8",children:h("div",{className:"text-sm text-gray-500",children:"Loading options..."})}):h("div",{className:"grid grid-cols-2 gap-3 mb-4",children:n.map((u,o)=>h("button",{onClick:()=>_(u,o),disabled:a===o,className:"border rounded-lg p-3 hover:bg-gray-50 transition-colors disabled:opacity-50 relative",children:[u.discount>0&&h("div",{className:"absolute -top-2 -right-2 bg-red-500 text-white text-xs px-2 py-1 rounded-full",children:["-",u.discount,"%"]}),h("div",{className:"font-bold",children:l(u.gems)}),h("div",{className:"text-xs text-gray-600",children:"gems"}),h("div",{className:"text-sm text-orange-600 mt-1",children:["⭐ ",l(u.stars)]}),a===o&&h("div",{className:"absolute inset-0 bg-white bg-opacity-75 flex items-center justify-center rounded-lg",children:h("div",{className:"text-xs",children:"Opening..."})})]},o))}),h("button",{onClick:t,className:"w-full px-4 py-2 bg-gray-200 text-gray-800 rounded-lg hover:bg-gray-300 transition-colors",children:"Cancel"})]})}function Vn(){const t=new URLSearchParams(window.location.search),[e,n]=Z(!1),r=t.get("itemId"),i=t.get("price"),s=t.get("__tg_x_auth"),a=JSON.parse(t.get("translations")||`{
|
|
12
|
-
"confirm": {
|
|
13
|
-
"pay": "Pay",
|
|
14
|
-
"cancel": "Cancel"
|
|
15
|
-
}
|
|
16
|
-
}`),c=()=>{if(et)return;if(et=!0,!r||!i){const o="No itemId provided";A(o,{level:"error",extra:{shopItemId:r,price:i}}),console.error(o),window.parent.postMessage({type:"error",message:o},"*");return}if(!s){const o="No auth data provided";A(o,{level:"error",extra:{initData:s}}),console.error(o),window.parent.postMessage({type:"error",message:o},"*");return}document.cookie=`X-Auth=${s}; path=/; SameSite=None; Secure`;const u=new URLSearchParams;u.set("__tg_x_auth",s),u.set("referrer",document.referrer),fetch(`/sdk/shop/items/${r}/buy?${u.toString()}`,{method:"POST",referrerPolicy:"no-referrer"}).then(o=>{if(o.ok)A("Purchase confirmed",{level:"info",extra:{shopItemId:r,price:i,initData:s,referrer:document.referrer}}),window.parent.postMessage({type:"confirm"},"*");else{const f="Failed to confirm purchase";A(f,{level:"error",extra:{shopItemId:r,price:i,initData:s,referrer:document.referrer,status:o.status}}),console.error(f,o),window.parent.postMessage({type:"error",message:f},"*")}}).catch(o=>{var f,p;if(me(o,{extra:{shopItemId:r,price:i,initData:s,referrer:document.referrer}}),o==="insufficient funds"||(o==null?void 0:o.message)==="insufficient funds"||(o==null?void 0:o.error)==="insufficient funds"||((p=(f=o==null?void 0:o.response)==null?void 0:f.data)==null?void 0:p.message)==="insufficient funds"){n(!0);return}console.error("Failed to confirm purchase",o),window.parent.postMessage({type:"error",message:"Failed to confirm purchase"},"*")})},_=()=>{A("Purchase cancelled by user",{level:"info",extra:{shopItemId:r,price:i,initData:s,referrer:document.referrer}}),console.log("Cancelled by user"),window.parent.postMessage({type:"cancel"},"*")},l=()=>{console.log("Top-up successful, user can retry purchase")};return h(L,{children:[h("div",{className:B("cssdk-confirm-modal","bg-white","w-screen","h-screen","flex flex-col","items-center","justify-betweens","p-[10px]","cursor-pointer"),children:[h("div",{className:B($e),onClick:c,children:h("div",{className:B("bg-green-500","w-full","h-full","rounded-full","flex justify-center items-center","text-white","font-medium text-[15px]"),children:[a.confirm.pay," ",i," ",h("img",{src:Rn,width:16,height:16,alt:"coin",className:"ml-[2px]"})]})}),h("div",{className:B($e,"text-[#007AFF]"),onClick:_,children:a.confirm.cancel})]}),h(An,{isOpen:e,onClose:()=>n(!1),children:h(Un,{onClose:()=>n(!1),onSuccess:l})})]})}function Dn(){let t=document.getElementById("root");t||(t=document.createElement("div"),t.id="root",document.body.appendChild(t)),Ft(h(Vn,{}),t)}Dn();</script>
|
|
17
|
-
<style rel="stylesheet" crossorigin>/*! tailwindcss v4.0.0 | MIT License | https://tailwindcss.com */@tailwind base;@tailwind components;.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.sticky{position:sticky}.isolate{isolation:isolate}.z-50{z-index:50}.container{width:100%}.ml-\[2px\]{margin-left:2px}.block{display:block}.contents{display:contents}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-flex{display:inline-flex}.table{display:table}.h-full{height:100%}.h-screen{height:100vh}.w-full{width:100%}.w-screen{width:100vw}.grow{flex-grow:1}.transform{transform:var(--tw-rotate-x)var(--tw-rotate-y)var(--tw-rotate-z)var(--tw-skew-x)var(--tw-skew-y)}.cursor-pointer{cursor:pointer}.resize{resize:both}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.rounded-full{border-radius:3.40282e38px}.border{border-style:var(--tw-border-style);border-width:1px}.p-\[10px\]{padding:10px}.text-center{text-align:center}.text-\[15px\]{font-size:15px}.leading-\[20px\]{--tw-leading:20px;line-height:20px}.text-\[\#007AFF\]{color:#007aff}.uppercase{text-transform:uppercase}.overline{text-decoration-line:overline}.underline{text-decoration-line:underline}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.filter{filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter;transition-timing-function:var(--tw-ease,ease);transition-duration:var(--tw-duration,0s)}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,ease);transition-duration:var(--tw-duration,0s)}.disabled\:opacity-50:disabled{opacity:.5}@property --tw-rotate-x{syntax:"*";inherits:false;initial-value:rotateX(0)}@property --tw-rotate-y{syntax:"*";inherits:false;initial-value:rotateY(0)}@property --tw-rotate-z{syntax:"*";inherits:false;initial-value:rotateZ(0)}@property --tw-skew-x{syntax:"*";inherits:false;initial-value:skewX(0)}@property --tw-skew-y{syntax:"*";inherits:false;initial-value:skewY(0)}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}</style>
|
|
18
|
-
</head>
|
|
19
|
-
|
|
20
|
-
<body>
|
|
21
|
-
<div id="root"></div>
|
|
22
|
-
</body>
|
|
23
|
-
|
|
24
|
-
</html>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const IconBack: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
interface AvatarProgressProps {
|
|
3
|
-
avatar?: string;
|
|
4
|
-
name?: string;
|
|
5
|
-
progress: number;
|
|
6
|
-
animateFromZero?: boolean;
|
|
7
|
-
level?: number;
|
|
8
|
-
size?: number;
|
|
9
|
-
gap?: number;
|
|
10
|
-
strokeWidth?: number;
|
|
11
|
-
}
|
|
12
|
-
export declare const AvatarProgress: React.FC<AvatarProgressProps>;
|
|
13
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { default as React, CSSProperties } from 'react';
|
|
2
|
-
interface ClosableModalProps {
|
|
3
|
-
isOpen: boolean;
|
|
4
|
-
onOpenChange: (isOpen: boolean) => void;
|
|
5
|
-
children: React.ReactNode;
|
|
6
|
-
className?: string;
|
|
7
|
-
closeBtnProps?: React.HTMLAttributes<SVGSVGElement>;
|
|
8
|
-
textAreaFix?: boolean;
|
|
9
|
-
style?: CSSProperties;
|
|
10
|
-
}
|
|
11
|
-
export declare const ClosableModal: React.FC<ClosableModalProps>;
|
|
12
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
interface InventoryContextType {
|
|
3
|
-
isInventoryModalOpen: boolean;
|
|
4
|
-
setIsInventoryModalOpen: (isOpen: boolean) => void;
|
|
5
|
-
}
|
|
6
|
-
export declare const InventoryProvider: ({ children }: {
|
|
7
|
-
children: ReactNode;
|
|
8
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export declare const useInventory: () => InventoryContextType;
|
|
10
|
-
export {};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { Button } from '@telegram-apps/telegram-ui';
|
|
3
|
-
interface XsButtonProps extends Omit<React.ComponentProps<typeof Button>, 'size'> {
|
|
4
|
-
}
|
|
5
|
-
export declare const XsButton: React.ForwardRefExoticComponent<Omit<XsButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
6
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const useAnimateNumber: (num: number, fromZero?: boolean) => [number, (newNumber: number) => void];
|
package/dist/esm/app/utils.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
export declare const AppContent: import('react').ForwardRefExoticComponent<{
|
|
3
|
-
children: ReactNode;
|
|
4
|
-
className?: string;
|
|
5
|
-
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
6
|
-
export declare function AppContentLoader(): import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export declare const ModalAppContent: import('react').ForwardRefExoticComponent<{
|
|
8
|
-
children: ReactNode;
|
|
9
|
-
className?: string;
|
|
10
|
-
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const BuyShopItems: () => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const IconAd: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const IconAddCircle: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const IconNoSign: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const IconProfile: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
interface CircleParticlesProps {
|
|
3
|
-
count?: number;
|
|
4
|
-
width: number;
|
|
5
|
-
height: number;
|
|
6
|
-
style?: React.CSSProperties;
|
|
7
|
-
delay?: number;
|
|
8
|
-
}
|
|
9
|
-
export declare const CircleParticles: React.FC<CircleParticlesProps>;
|
|
10
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { CryptoSteamSDKShopItem } from '../../../sdk';
|
|
3
|
-
interface PurchaseConfirmProps {
|
|
4
|
-
shopItem: CryptoSteamSDKShopItem;
|
|
5
|
-
balance: number;
|
|
6
|
-
onClose?: () => void;
|
|
7
|
-
}
|
|
8
|
-
declare const PurchaseConfirm: React.FC<PurchaseConfirmProps>;
|
|
9
|
-
export default PurchaseConfirm;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
interface TaskCardProps {
|
|
3
|
-
icon?: React.ReactNode;
|
|
4
|
-
title: string;
|
|
5
|
-
description?: string;
|
|
6
|
-
reward: number;
|
|
7
|
-
isClaimable: boolean;
|
|
8
|
-
isDone: boolean;
|
|
9
|
-
loading?: boolean;
|
|
10
|
-
taskId?: number;
|
|
11
|
-
taskActionText?: string;
|
|
12
|
-
taskCompletedText?: string;
|
|
13
|
-
handleClaim: (taskId?: number) => void;
|
|
14
|
-
getUpTo?: boolean;
|
|
15
|
-
playConfetti?: boolean;
|
|
16
|
-
isNavigationAction?: boolean;
|
|
17
|
-
isGameTask?: boolean;
|
|
18
|
-
taskType?: "invite" | "fill_profile" | "game" | "default";
|
|
19
|
-
}
|
|
20
|
-
export declare const TaskCard: React.FC<TaskCardProps>;
|
|
21
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
interface XpProgressProps {
|
|
3
|
-
level: number;
|
|
4
|
-
xp: number;
|
|
5
|
-
xpNeeded: number;
|
|
6
|
-
compact?: boolean;
|
|
7
|
-
variant?: "square" | "row";
|
|
8
|
-
style?: React.CSSProperties;
|
|
9
|
-
size?: number;
|
|
10
|
-
levelFontSize?: number;
|
|
11
|
-
onClick?: () => void;
|
|
12
|
-
}
|
|
13
|
-
export declare const XpProgress: React.FC<XpProgressProps>;
|
|
14
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { User } from '../../../../launcherSrc/api/types';
|
|
3
|
-
interface PurchaseAdsFreeProps {
|
|
4
|
-
onBuyNoAds: () => void;
|
|
5
|
-
onCancelNoAds: () => void;
|
|
6
|
-
onFetchProfile: () => void;
|
|
7
|
-
profile: User;
|
|
8
|
-
onClose: () => void;
|
|
9
|
-
}
|
|
10
|
-
declare const PurchaseAdsFree: React.FC<PurchaseAdsFreeProps>;
|
|
11
|
-
export default PurchaseAdsFree;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const getFormattedDate: (date: string, months: string[]) => string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const formatTime: (secs: number) => string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const formatTimeWageItem: (secs: number) => string;
|