@adminide-stack/yantra-mobile 12.0.196-alpha.0 → 12.0.196-alpha.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/lib/components/CustomDrawer.js +17 -1
- package/lib/components/CustomDrawer.js.map +1 -1
- package/lib/compute.js +57 -1
- package/lib/compute.js.map +1 -1
- package/lib/config/env-config.js +11 -1
- package/lib/config/env-config.js.map +1 -1
- package/lib/features/agent-chat/NativeAgentChat.js +7 -0
- package/lib/features/agent-chat/NativeAgentChat.js.map +1 -1
- package/lib/features/canvas/extendVideo.js +5 -1
- package/lib/features/canvas/extendVideo.js.map +1 -1
- package/lib/features/canvas/workflow/StepSheet.js +18 -1
- package/lib/features/canvas/workflow/StepSheet.js.map +1 -1
- package/lib/features/canvas/workflow/workflowSteps.js +102 -31
- package/lib/features/canvas/workflow/workflowSteps.js.map +1 -1
- package/lib/features/chat/ComposerMicSend.js +35 -0
- package/lib/features/chat/ComposerMicSend.js.map +1 -0
- package/lib/features/chat/ComposerModeSwitch.js +64 -1
- package/lib/features/chat/ComposerModeSwitch.js.map +1 -1
- package/lib/features/chat/askUser.js +6 -1
- package/lib/features/chat/askUser.js.map +1 -1
- package/lib/features/connectors/ConnectorSheet.js +443 -0
- package/lib/features/connectors/ConnectorSheet.js.map +1 -0
- package/lib/features/connectors/ConnectorsPage.js +320 -0
- package/lib/features/connectors/ConnectorsPage.js.map +1 -0
- package/lib/features/connectors/connectConnector.js +278 -0
- package/lib/features/connectors/connectConnector.js.map +1 -0
- package/lib/features/connectors/connectorCatalog.js +222 -0
- package/lib/features/connectors/connectorCatalog.js.map +1 -0
- package/lib/features/connectors/useConnectorCatalog.js +153 -0
- package/lib/features/connectors/useConnectorCatalog.js.map +1 -0
- package/lib/features/home/needsYou/HomeNeedsYou.js +618 -0
- package/lib/features/home/needsYou/HomeNeedsYou.js.map +1 -0
- package/lib/features/home/needsYou/chatFollowUps.js +333 -0
- package/lib/features/home/needsYou/chatFollowUps.js.map +1 -0
- package/lib/features/home/needsYou/format.js +47 -0
- package/lib/features/home/needsYou/format.js.map +1 -0
- package/lib/features/home/needsYou/historyText.js +40 -0
- package/lib/features/home/needsYou/historyText.js.map +1 -0
- package/lib/features/home/needsYou/inboxHighlights.js +152 -0
- package/lib/features/home/needsYou/inboxHighlights.js.map +1 -0
- package/lib/features/home/needsYou/panelsSettings.js +71 -0
- package/lib/features/home/needsYou/panelsSettings.js.map +1 -0
- package/lib/features/home/needsYou/ported/commandConfirmProtocol.js +13 -0
- package/lib/features/home/needsYou/ported/commandConfirmProtocol.js.map +1 -0
- package/lib/features/home/needsYou/ported/paymentApprovalProtocol.js +91 -0
- package/lib/features/home/needsYou/ported/paymentApprovalProtocol.js.map +1 -0
- package/lib/features/home/needsYou/ported/resultCardModels.js +659 -0
- package/lib/features/home/needsYou/ported/resultCardModels.js.map +1 -0
- package/lib/features/home/needsYou/types.js +1 -0
- package/lib/features/home/needsYou/types.js.map +1 -0
- package/lib/features/home/needsYou/useChatFollowUps.js +149 -0
- package/lib/features/home/needsYou/useChatFollowUps.js.map +1 -0
- package/lib/features/home/needsYou/useHomeBriefing.js +68 -0
- package/lib/features/home/needsYou/useHomeBriefing.js.map +1 -0
- package/lib/features/home/needsYou/useInboxHighlights.js +173 -0
- package/lib/features/home/needsYou/useInboxHighlights.js.map +1 -0
- package/lib/features/home/needsYou/usePanelsSettings.js +105 -0
- package/lib/features/home/needsYou/usePanelsSettings.js.map +1 -0
- package/lib/features/shopping/DealCard.js +8 -1
- package/lib/features/shopping/DealCard.js.map +1 -1
- package/lib/features/shopping/DealRails.js +24 -7
- package/lib/features/shopping/DealRails.js.map +1 -1
- package/lib/features/shopping/DealsPanel.js +1 -1
- package/lib/features/shopping/DealsPanel.js.map +1 -1
- package/lib/features/shopping/HolidayDealsPanel.js +529 -0
- package/lib/features/shopping/HolidayDealsPanel.js.map +1 -0
- package/lib/features/shopping/HolidayDealsParts.js +954 -0
- package/lib/features/shopping/HolidayDealsParts.js.map +1 -0
- package/lib/features/shopping/HolidayOffers.js +351 -0
- package/lib/features/shopping/HolidayOffers.js.map +1 -0
- package/lib/features/shopping/ProductCard.js +80 -14
- package/lib/features/shopping/ProductCard.js.map +1 -1
- package/lib/features/shopping/ProductDetailSheet.js +22 -3
- package/lib/features/shopping/ProductDetailSheet.js.map +1 -1
- package/lib/features/shopping/SavedPanel.js +341 -5
- package/lib/features/shopping/SavedPanel.js.map +1 -1
- package/lib/features/shopping/SearchResults.js +8 -2
- package/lib/features/shopping/SearchResults.js.map +1 -1
- package/lib/features/shopping/ShoppingAgentChatPane.js +12 -0
- package/lib/features/shopping/ShoppingAgentChatPane.js.map +1 -1
- package/lib/features/shopping/ShoppingExperience.js +56 -19
- package/lib/features/shopping/ShoppingExperience.js.map +1 -1
- package/lib/features/shopping/TrendingSections.js +13 -4
- package/lib/features/shopping/TrendingSections.js.map +1 -1
- package/lib/features/shopping/WatchlistPanel.js +61 -5
- package/lib/features/shopping/WatchlistPanel.js.map +1 -1
- package/lib/features/shopping/catalog.js +41 -2
- package/lib/features/shopping/catalog.js.map +1 -1
- package/lib/features/shopping/chat/brainRouter.js +14 -0
- package/lib/features/shopping/chat/brainRouter.js.map +1 -1
- package/lib/features/shopping/chat/shoppingTurn.js +88 -16
- package/lib/features/shopping/chat/shoppingTurn.js.map +1 -1
- package/lib/features/shopping/hooks/useHolidayDeals.js +388 -0
- package/lib/features/shopping/hooks/useHolidayDeals.js.map +1 -0
- package/lib/features/shopping/hooks/useProductMedia.js +33 -6
- package/lib/features/shopping/hooks/useProductMedia.js.map +1 -1
- package/lib/features/shopping/hooks/useShoppingHistorySync.js +8 -4
- package/lib/features/shopping/hooks/useShoppingHistorySync.js.map +1 -1
- package/lib/features/shopping/hooks/useTrendingProducts.js +11 -3
- package/lib/features/shopping/hooks/useTrendingProducts.js.map +1 -1
- package/lib/features/shopping/savedProducts.js +76 -6
- package/lib/features/shopping/savedProducts.js.map +1 -1
- package/lib/features/shopping/services/aiRelevance.js +212 -0
- package/lib/features/shopping/services/aiRelevance.js.map +1 -0
- package/lib/features/shopping/services/blackFriday.js +301 -0
- package/lib/features/shopping/services/blackFriday.js.map +1 -0
- package/lib/features/shopping/services/blackFridayBrowserSites.js +137 -0
- package/lib/features/shopping/services/blackFridayBrowserSites.js.map +1 -0
- package/lib/features/shopping/services/catalogProductSearch.js +21 -3
- package/lib/features/shopping/services/catalogProductSearch.js.map +1 -1
- package/lib/features/shopping/services/holidayDeals.js +143 -0
- package/lib/features/shopping/services/holidayDeals.js.map +1 -0
- package/lib/features/shopping/services/mediaShape.js +7 -0
- package/lib/features/shopping/services/mediaShape.js.map +1 -0
- package/lib/features/shopping/services/modelStep.js +95 -0
- package/lib/features/shopping/services/modelStep.js.map +1 -0
- package/lib/features/shopping/services/modelWords.js +14 -0
- package/lib/features/shopping/services/modelWords.js.map +1 -0
- package/lib/features/shopping/services/productAvailability.js +5 -1
- package/lib/features/shopping/services/productAvailability.js.map +1 -1
- package/lib/features/shopping/services/productFilters.js +2 -2
- package/lib/features/shopping/services/productFilters.js.map +1 -1
- package/lib/features/shopping/services/productMedia.js +103 -18
- package/lib/features/shopping/services/productMedia.js.map +1 -1
- package/lib/features/shopping/services/retailerUrl.js +11 -8
- package/lib/features/shopping/services/retailerUrl.js.map +1 -1
- package/lib/features/shopping/services/salesDealsStore.js +3 -2
- package/lib/features/shopping/services/salesDealsStore.js.map +1 -1
- package/lib/features/shopping/services/savedReads.js +82 -0
- package/lib/features/shopping/services/savedReads.js.map +1 -0
- package/lib/features/shopping/services/searchCardFields.js +2 -0
- package/lib/features/shopping/services/searchCardFields.js.map +1 -1
- package/lib/features/shopping/services/searchRelevance.js +154 -24
- package/lib/features/shopping/services/searchRelevance.js.map +1 -1
- package/lib/features/shopping/services/secondHand.js +12 -0
- package/lib/features/shopping/services/secondHand.js.map +1 -0
- package/lib/features/shopping/services/shoppingProductSearch.js +82 -10
- package/lib/features/shopping/services/shoppingProductSearch.js.map +1 -1
- package/lib/features/shopping/services/shoppingSearchConnectorClient.js +14 -1
- package/lib/features/shopping/services/shoppingSearchConnectorClient.js.map +1 -1
- package/lib/features/shopping/services/shoppingSubgraph.js +2 -1
- package/lib/features/shopping/services/shoppingSubgraph.js.map +1 -1
- package/lib/features/shopping/services/storedGalleries.js +130 -0
- package/lib/features/shopping/services/storedGalleries.js.map +1 -0
- package/lib/features/shopping/services/usedSites.js +263 -0
- package/lib/features/shopping/services/usedSites.js.map +1 -0
- package/lib/features/shopping/services/verifyProducts.js +3 -3
- package/lib/features/shopping/services/verifyProducts.js.map +1 -1
- package/lib/features/shopping/services/watchDeal.js +61 -0
- package/lib/features/shopping/services/watchDeal.js.map +1 -0
- package/lib/features/shopping/shoppingRuntime.js +7 -2
- package/lib/features/shopping/shoppingRuntime.js.map +1 -1
- package/lib/features/shopping/state/accountCaches.js +20 -0
- package/lib/features/shopping/state/accountCaches.js.map +1 -0
- package/lib/features/shopping/state/holidayDealsRequest.js +22 -0
- package/lib/features/shopping/state/holidayDealsRequest.js.map +1 -0
- package/lib/features/shopping/tutorials/ShoppingTutorialDock.js +1 -1
- package/lib/features/shopping/tutorials/ShoppingTutorialDock.js.map +1 -1
- package/lib/features/shopping/tutorials/shoppingTutorials.js +2 -0
- package/lib/features/shopping/tutorials/shoppingTutorials.js.map +1 -1
- package/lib/features/shopping/useShoppingSearch.js +74 -18
- package/lib/features/shopping/useShoppingSearch.js.map +1 -1
- package/lib/features/team-chat/TeamChatExperience.js +474 -0
- package/lib/features/team-chat/TeamChatExperience.js.map +1 -0
- package/lib/features/team-chat/api/client.js +198 -0
- package/lib/features/team-chat/api/client.js.map +1 -0
- package/lib/features/team-chat/api/live.js +160 -0
- package/lib/features/team-chat/api/live.js.map +1 -0
- package/lib/features/team-chat/api/ops.js +241 -0
- package/lib/features/team-chat/api/ops.js.map +1 -0
- package/lib/features/team-chat/app.js +12 -0
- package/lib/features/team-chat/app.js.map +1 -0
- package/lib/features/team-chat/components/Avatar.js +107 -0
- package/lib/features/team-chat/components/Avatar.js.map +1 -0
- package/lib/features/team-chat/components/Composer.js +641 -0
- package/lib/features/team-chat/components/Composer.js.map +1 -0
- package/lib/features/team-chat/components/Dialogs.js +598 -0
- package/lib/features/team-chat/components/Dialogs.js.map +1 -0
- package/lib/features/team-chat/components/EmojiPicker.js +165 -0
- package/lib/features/team-chat/components/EmojiPicker.js.map +1 -0
- package/lib/features/team-chat/components/MessageItem.js +658 -0
- package/lib/features/team-chat/components/MessageItem.js.map +1 -0
- package/lib/features/team-chat/components/MessageList.js +248 -0
- package/lib/features/team-chat/components/MessageList.js.map +1 -0
- package/lib/features/team-chat/components/Mrkdwn.js +228 -0
- package/lib/features/team-chat/components/Mrkdwn.js.map +1 -0
- package/lib/features/team-chat/components/QuickSwitcher.js +215 -0
- package/lib/features/team-chat/components/QuickSwitcher.js.map +1 -0
- package/lib/features/team-chat/components/ui.js +662 -0
- package/lib/features/team-chat/components/ui.js.map +1 -0
- package/lib/features/team-chat/nativeTeamChatRegistry.js +15 -0
- package/lib/features/team-chat/nativeTeamChatRegistry.js.map +1 -0
- package/lib/features/team-chat/state/fetched.js +39 -0
- package/lib/features/team-chat/state/fetched.js.map +1 -0
- package/lib/features/team-chat/state/lists.js +230 -0
- package/lib/features/team-chat/state/lists.js.map +1 -0
- package/lib/features/team-chat/state/store.js +1108 -0
- package/lib/features/team-chat/state/store.js.map +1 -0
- package/lib/features/team-chat/state/useChannelDirectory.js +21 -0
- package/lib/features/team-chat/state/useChannelDirectory.js.map +1 -0
- package/lib/features/team-chat/theme.js +77 -0
- package/lib/features/team-chat/theme.js.map +1 -0
- package/lib/features/team-chat/utils/composeText.js +72 -0
- package/lib/features/team-chat/utils/composeText.js.map +1 -0
- package/lib/features/team-chat/utils/emoji.js +369 -0
- package/lib/features/team-chat/utils/emoji.js.map +1 -0
- package/lib/features/team-chat/utils/format.js +109 -0
- package/lib/features/team-chat/utils/format.js.map +1 -0
- package/lib/features/team-chat/utils/messageRows.js +24 -0
- package/lib/features/team-chat/utils/messageRows.js.map +1 -0
- package/lib/features/team-chat/utils/mrkdwn.js +222 -0
- package/lib/features/team-chat/utils/mrkdwn.js.map +1 -0
- package/lib/features/team-chat/utils/notify.js +47 -0
- package/lib/features/team-chat/utils/notify.js.map +1 -0
- package/lib/features/team-chat/utils/pickFiles.js +81 -0
- package/lib/features/team-chat/utils/pickFiles.js.map +1 -0
- package/lib/features/team-chat/views/ActivityView.js +235 -0
- package/lib/features/team-chat/views/ActivityView.js.map +1 -0
- package/lib/features/team-chat/views/BrowseView.js +179 -0
- package/lib/features/team-chat/views/BrowseView.js.map +1 -0
- package/lib/features/team-chat/views/ChannelView.js +475 -0
- package/lib/features/team-chat/views/ChannelView.js.map +1 -0
- package/lib/features/team-chat/views/DetailsPane.js +816 -0
- package/lib/features/team-chat/views/DetailsPane.js.map +1 -0
- package/lib/features/team-chat/views/DraftsView.js +212 -0
- package/lib/features/team-chat/views/DraftsView.js.map +1 -0
- package/lib/features/team-chat/views/FilesView.js +152 -0
- package/lib/features/team-chat/views/FilesView.js.map +1 -0
- package/lib/features/team-chat/views/NewMessageView.js +286 -0
- package/lib/features/team-chat/views/NewMessageView.js.map +1 -0
- package/lib/features/team-chat/views/PeopleView.js +118 -0
- package/lib/features/team-chat/views/PeopleView.js.map +1 -0
- package/lib/features/team-chat/views/ProfilePane.js +220 -0
- package/lib/features/team-chat/views/ProfilePane.js.map +1 -0
- package/lib/features/team-chat/views/SavedView.js +113 -0
- package/lib/features/team-chat/views/SavedView.js.map +1 -0
- package/lib/features/team-chat/views/SearchView.js +307 -0
- package/lib/features/team-chat/views/SearchView.js.map +1 -0
- package/lib/features/team-chat/views/Sidebar.js +368 -0
- package/lib/features/team-chat/views/Sidebar.js.map +1 -0
- package/lib/features/team-chat/views/ThreadPane.js +139 -0
- package/lib/features/team-chat/views/ThreadPane.js.map +1 -0
- package/lib/features/team-chat/views/ThreadsView.js +157 -0
- package/lib/features/team-chat/views/ThreadsView.js.map +1 -0
- package/lib/features/webbuilder/WebBuilderExperience.js +276 -42
- package/lib/features/webbuilder/WebBuilderExperience.js.map +1 -1
- package/lib/features/webbuilder/buildFragments.js +10 -4
- package/lib/features/webbuilder/buildFragments.js.map +1 -1
- package/lib/features/webbuilder/components/AssetChips.js +61 -0
- package/lib/features/webbuilder/components/AssetChips.js.map +1 -0
- package/lib/features/webbuilder/components/AssetSiteChooser.js +100 -0
- package/lib/features/webbuilder/components/AssetSiteChooser.js.map +1 -0
- package/lib/features/webbuilder/components/CommentsLayer.js +485 -0
- package/lib/features/webbuilder/components/CommentsLayer.js.map +1 -0
- package/lib/features/webbuilder/components/Composer.js +16 -2
- package/lib/features/webbuilder/components/Composer.js.map +1 -1
- package/lib/features/webbuilder/components/ComposerModeSwitch.js +71 -0
- package/lib/features/webbuilder/components/ComposerModeSwitch.js.map +1 -0
- package/lib/features/webbuilder/components/MyAssetsPicker.js +500 -0
- package/lib/features/webbuilder/components/MyAssetsPicker.js.map +1 -0
- package/lib/features/webbuilder/components/PlanDocument.js +165 -0
- package/lib/features/webbuilder/components/PlanDocument.js.map +1 -0
- package/lib/features/webbuilder/components/PlanDraftCard.js +205 -0
- package/lib/features/webbuilder/components/PlanDraftCard.js.map +1 -0
- package/lib/features/webbuilder/components/PlanView.js +788 -0
- package/lib/features/webbuilder/components/PlanView.js.map +1 -0
- package/lib/features/webbuilder/components/PreviewConsoleSheet.js +334 -0
- package/lib/features/webbuilder/components/PreviewConsoleSheet.js.map +1 -0
- package/lib/features/webbuilder/components/PreviewFrame.js +45 -3
- package/lib/features/webbuilder/components/PreviewFrame.js.map +1 -1
- package/lib/features/webbuilder/components/PreviewScreen.js +94 -10
- package/lib/features/webbuilder/components/PreviewScreen.js.map +1 -1
- package/lib/features/webbuilder/components/ProjectChat.js +84 -14
- package/lib/features/webbuilder/components/ProjectChat.js.map +1 -1
- package/lib/features/webbuilder/components/StudioHome.js +69 -6
- package/lib/features/webbuilder/components/StudioHome.js.map +1 -1
- package/lib/features/webbuilder/components/StyleDirectionsSheet.js +291 -0
- package/lib/features/webbuilder/components/StyleDirectionsSheet.js.map +1 -0
- package/lib/features/webbuilder/components/VersionChangesView.js +574 -0
- package/lib/features/webbuilder/components/VersionChangesView.js.map +1 -0
- package/lib/features/webbuilder/components/VersionPreviewView.js +186 -0
- package/lib/features/webbuilder/components/VersionPreviewView.js.map +1 -0
- package/lib/features/webbuilder/components/VersionsSheet.js +673 -16
- package/lib/features/webbuilder/components/VersionsSheet.js.map +1 -1
- package/lib/features/webbuilder/connectorTemplates.js +6 -1
- package/lib/features/webbuilder/connectorTemplates.js.map +1 -1
- package/lib/features/webbuilder/myAssets.js +101 -0
- package/lib/features/webbuilder/myAssets.js.map +1 -0
- package/lib/features/webbuilder/planChat.js +146 -0
- package/lib/features/webbuilder/planChat.js.map +1 -0
- package/lib/features/webbuilder/planDocument.js +89 -0
- package/lib/features/webbuilder/planDocument.js.map +1 -0
- package/lib/features/webbuilder/planStore.js +55 -0
- package/lib/features/webbuilder/planStore.js.map +1 -0
- package/lib/features/webbuilder/previewCommentsScript.js +218 -0
- package/lib/features/webbuilder/previewCommentsScript.js.map +1 -0
- package/lib/features/webbuilder/previewConsoleScript.js +39 -0
- package/lib/features/webbuilder/previewConsoleScript.js.map +1 -0
- package/lib/features/webbuilder/styleDirections.js +85 -0
- package/lib/features/webbuilder/styleDirections.js.map +1 -0
- package/lib/features/webbuilder/useCanvasComments.js +335 -0
- package/lib/features/webbuilder/useCanvasComments.js.map +1 -0
- package/lib/features/webbuilder/useCatalogTemplates.js +37 -0
- package/lib/features/webbuilder/useCatalogTemplates.js.map +1 -0
- package/lib/features/webbuilder/usePlanMode.js +145 -0
- package/lib/features/webbuilder/usePlanMode.js.map +1 -0
- package/lib/features/webbuilder/useStyleDirections.js +112 -0
- package/lib/features/webbuilder/useStyleDirections.js.map +1 -0
- package/lib/features/webbuilder/web/assets/assetsApi.js +174 -0
- package/lib/features/webbuilder/web/assets/assetsApi.js.map +1 -0
- package/lib/features/webbuilder/web/assets/assetsApi.ts +173 -0
- package/lib/features/webbuilder/web/assets/myAssets.js +341 -0
- package/lib/features/webbuilder/web/assets/myAssets.js.map +1 -0
- package/lib/features/webbuilder/web/assets/myAssets.ts +396 -0
- package/lib/features/webbuilder/web/canvas/elementName.js +46 -0
- package/lib/features/webbuilder/web/canvas/elementName.js.map +1 -0
- package/lib/features/webbuilder/web/canvas/visualEditorBridge.js +95 -0
- package/lib/features/webbuilder/web/canvas/visualEditorBridge.js.map +1 -0
- package/lib/features/webbuilder/web/chat/agentTurn.js +24 -0
- package/lib/features/webbuilder/web/chat/agentTurn.js.map +1 -0
- package/lib/features/webbuilder/web/chat/planMode.js +164 -0
- package/lib/features/webbuilder/web/chat/planMode.js.map +1 -0
- package/lib/features/webbuilder/web/chat/realPlans.js +66 -0
- package/lib/features/webbuilder/web/chat/realPlans.js.map +1 -0
- package/lib/features/webbuilder/web/comments/comments.js +336 -0
- package/lib/features/webbuilder/web/comments/comments.js.map +1 -0
- package/lib/features/webbuilder/web/comments/commentsApi.js +59 -0
- package/lib/features/webbuilder/web/comments/commentsApi.js.map +1 -0
- package/lib/features/webbuilder/web/components/planView.js +21 -0
- package/lib/features/webbuilder/web/components/planView.js.map +1 -0
- package/lib/features/webbuilder/web/console/consolePanel.js +43 -0
- package/lib/features/webbuilder/web/console/consolePanel.js.map +1 -0
- package/lib/features/webbuilder/web/console/previewConsole.js +256 -0
- package/lib/features/webbuilder/web/console/previewConsole.js.map +1 -0
- package/lib/features/webbuilder/web/console/usePreviewConsole.js +147 -0
- package/lib/features/webbuilder/web/console/usePreviewConsole.js.map +1 -0
- package/lib/features/webbuilder/web/design/directions.js +419 -1
- package/lib/features/webbuilder/web/design/directions.js.map +1 -1
- package/lib/features/webbuilder/web/history/diffActions.js +222 -0
- package/lib/features/webbuilder/web/history/diffActions.js.map +1 -0
- package/lib/features/webbuilder/web/history/diffHighlight.js +18 -0
- package/lib/features/webbuilder/web/history/diffHighlight.js.map +1 -0
- package/lib/features/webbuilder/web/history/versionActions.js +272 -0
- package/lib/features/webbuilder/web/history/versionActions.js.map +1 -0
- package/lib/features/webbuilder/web/history/versionDiff.js +338 -0
- package/lib/features/webbuilder/web/history/versionDiff.js.map +1 -0
- package/lib/features/webbuilder/web/history/versionPreview.js +83 -0
- package/lib/features/webbuilder/web/history/versionPreview.js.map +1 -0
- package/lib/features/webbuilder/web/history/versionPreviewMachine.js +150 -0
- package/lib/features/webbuilder/web/history/versionPreviewMachine.js.map +1 -0
- package/lib/features/webbuilder/web/history/versions.js +326 -1
- package/lib/features/webbuilder/web/history/versions.js.map +1 -1
- package/lib/features/webbuilder/web/hosted/hostedTurn.js +36 -0
- package/lib/features/webbuilder/web/hosted/hostedTurn.js.map +1 -0
- package/lib/features/webbuilder/web/studio/brandKit.js +25 -0
- package/lib/features/webbuilder/web/studio/brandKit.js.map +1 -0
- package/lib/features/webbuilder/web/utils/promptSafe.js +15 -0
- package/lib/features/webbuilder/web/utils/promptSafe.js.map +1 -0
- package/lib/features/webbuilder/web/webServices.js +3 -1
- package/lib/features/webbuilder/web/webServices.js.map +1 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/routes.json +55 -0
- package/lib/screens/Account/index.js +13 -5
- package/lib/screens/Account/index.js.map +1 -1
- package/lib/screens/Chat/index.js +16 -0
- package/lib/screens/Chat/index.js.map +1 -1
- package/lib/screens/Home/HomeScreen.js +202 -39
- package/lib/screens/Home/HomeScreen.js.map +1 -1
- package/lib/screens/Home/components/HomeHero.js +52 -38
- package/lib/screens/Home/components/HomeHero.js.map +1 -1
- package/lib/screens/Home/components/homeCatalog.js +8 -1
- package/lib/screens/Home/components/homeCatalog.js.map +1 -1
- package/lib/screens/TeamChat/index.js +41 -0
- package/lib/screens/TeamChat/index.js.map +1 -0
- package/lib/screens/WebBuilder/nativeWebBuilderRedirect.js +9 -2
- package/lib/screens/WebBuilder/nativeWebBuilderRedirect.js.map +1 -1
- package/lib/screens/WebBuilderNative/index.js +13 -3
- package/lib/screens/WebBuilderNative/index.js.map +1 -1
- package/lib/screens/WebBuilderNative/useConnectorTemplates.js +2 -2
- package/lib/screens/WebBuilderNative/useConnectorTemplates.js.map +1 -1
- package/package.json +3 -3
|
@@ -0,0 +1,954 @@
|
|
|
1
|
+
import {jsxs,jsx,Fragment}from'react/jsx-runtime';import {useState,useMemo,useEffect,useRef}from'react';import {StyleSheet,View,Text,Pressable,ActivityIndicator,TextInput,Linking,Clipboard}from'react-native';import {Image}from'expo-image';import {MaterialCommunityIcons}from'@expo/vector-icons';import {formatPrice}from'./catalog.js';import {HorizontalScroller}from'./HorizontalScroller.js';import {sizedImageUrl}from'./imageSizing.js';import {useDealAlerts,useSocialLinkCheck,useWatchHolidayDeal}from'./hooks/useHolidayDeals.js';import {SOURCE_LABELS}from'./services/blackFriday.js';const TEAL = "#0a6b7c";
|
|
2
|
+
const GOLD = "#e8b84a";
|
|
3
|
+
const open = (url) => {
|
|
4
|
+
if (url && /^https?:\/\//i.test(url)) void Linking.openURL(url);
|
|
5
|
+
};
|
|
6
|
+
const VERDICT_TONE = {
|
|
7
|
+
lowest: {
|
|
8
|
+
bg: "#ecfdf5",
|
|
9
|
+
fg: "#047857",
|
|
10
|
+
border: "#a7f3d0"
|
|
11
|
+
},
|
|
12
|
+
good: {
|
|
13
|
+
bg: "#f0fdfa",
|
|
14
|
+
fg: "#0f766e",
|
|
15
|
+
border: "#99f6e4"
|
|
16
|
+
},
|
|
17
|
+
usual: {
|
|
18
|
+
bg: "#fffbeb",
|
|
19
|
+
fg: "#92400e",
|
|
20
|
+
border: "#fde68a"
|
|
21
|
+
},
|
|
22
|
+
higher: {
|
|
23
|
+
bg: "#fef2f2",
|
|
24
|
+
fg: "#b91c1c",
|
|
25
|
+
border: "#fecaca"
|
|
26
|
+
},
|
|
27
|
+
"cheaper-elsewhere": {
|
|
28
|
+
bg: "#eff6ff",
|
|
29
|
+
fg: "#1d4ed8",
|
|
30
|
+
border: "#bfdbfe"
|
|
31
|
+
},
|
|
32
|
+
new: {
|
|
33
|
+
bg: "#f8fafc",
|
|
34
|
+
fg: "#64748b",
|
|
35
|
+
border: "#e2e8f0"
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
function VerdictBadge({
|
|
39
|
+
verdict
|
|
40
|
+
}) {
|
|
41
|
+
var _a;
|
|
42
|
+
if (!verdict) return null;
|
|
43
|
+
if (verdict.kind === "new") return null;
|
|
44
|
+
const tone = VERDICT_TONE[verdict.kind];
|
|
45
|
+
const icon = verdict.kind === "lowest" || verdict.kind === "good" ? "trending-down" : verdict.kind === "higher" ? "alert-outline" : null;
|
|
46
|
+
const link = verdict.kind === "cheaper-elsewhere" && ((_a = verdict.elsewhere) == null ? void 0 : _a.url) && /^https:\/\//i.test(verdict.elsewhere.url) ? verdict.elsewhere.url : void 0;
|
|
47
|
+
const body = /* @__PURE__ */ jsxs(View, { style: [styles.verdict, {
|
|
48
|
+
backgroundColor: tone.bg,
|
|
49
|
+
borderColor: tone.border
|
|
50
|
+
}], testID: `verdict-${verdict.kind}`, children: [
|
|
51
|
+
icon ? /* @__PURE__ */ jsx(MaterialCommunityIcons, { name: icon, size: 12, color: tone.fg }) : null,
|
|
52
|
+
/* @__PURE__ */ jsx(Text, { style: [styles.verdictText, {
|
|
53
|
+
color: tone.fg
|
|
54
|
+
}, link ? styles.underline : null], children: verdict.text })
|
|
55
|
+
] });
|
|
56
|
+
if (!link) return body;
|
|
57
|
+
return /* @__PURE__ */ jsx(Pressable, { onPress: () => open(link), accessibilityRole: "link", accessibilityLabel: verdict.text, children: body });
|
|
58
|
+
}
|
|
59
|
+
function CouponCode({
|
|
60
|
+
coupon,
|
|
61
|
+
ink = "#0f172a"
|
|
62
|
+
}) {
|
|
63
|
+
const [copied, setCopied] = useState(false);
|
|
64
|
+
const timer = useRef(null);
|
|
65
|
+
useEffect(() => () => {
|
|
66
|
+
if (timer.current) clearTimeout(timer.current);
|
|
67
|
+
}, []);
|
|
68
|
+
const code = coupon.replace(/^code\s+/i, "");
|
|
69
|
+
const copy = () => {
|
|
70
|
+
try {
|
|
71
|
+
Clipboard.setString(code);
|
|
72
|
+
setCopied(true);
|
|
73
|
+
if (timer.current) clearTimeout(timer.current);
|
|
74
|
+
timer.current = setTimeout(() => setCopied(false), 1500);
|
|
75
|
+
} catch (e) {
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
return /* @__PURE__ */ jsxs(View, { style: styles.coupon, children: [
|
|
79
|
+
/* @__PURE__ */ jsx(MaterialCommunityIcons, { name: "ticket-outline", size: 12, color: TEAL }),
|
|
80
|
+
/* @__PURE__ */ jsxs(Text, { style: [styles.couponText, {
|
|
81
|
+
color: ink
|
|
82
|
+
}], numberOfLines: 1, children: [
|
|
83
|
+
"Code ",
|
|
84
|
+
/* @__PURE__ */ jsx(Text, { style: styles.couponCode, children: code })
|
|
85
|
+
] }),
|
|
86
|
+
/* @__PURE__ */ jsx(Pressable, { onPress: copy, accessibilityRole: "button", accessibilityLabel: `Copy code ${code}`, hitSlop: 8, style: styles.couponCopy, children: /* @__PURE__ */ jsx(MaterialCommunityIcons, { name: copied ? "check" : "content-copy", size: 12, color: "#64748b" }) })
|
|
87
|
+
] });
|
|
88
|
+
}
|
|
89
|
+
function memberLine(label) {
|
|
90
|
+
const clean = (label != null ? label : "").trim();
|
|
91
|
+
if (!clean || /^members?\s*only$/i.test(clean)) return "Members only";
|
|
92
|
+
return /member/i.test(clean) ? `For ${clean}` : `Members only \xB7 ${clean}`;
|
|
93
|
+
}
|
|
94
|
+
function WatchButton({
|
|
95
|
+
deal,
|
|
96
|
+
theme
|
|
97
|
+
}) {
|
|
98
|
+
var _a;
|
|
99
|
+
const watch = useWatchHolidayDeal(deal);
|
|
100
|
+
if (!watch.path) return null;
|
|
101
|
+
if (watch.status === "done") {
|
|
102
|
+
return /* @__PURE__ */ jsxs(View, { style: styles.watchDone, accessibilityRole: "text", children: [
|
|
103
|
+
/* @__PURE__ */ jsx(MaterialCommunityIcons, { name: "bell-ring-outline", size: 12, color: "#047857" }),
|
|
104
|
+
/* @__PURE__ */ jsx(Text, { style: styles.watchDoneText, children: watch.message })
|
|
105
|
+
] });
|
|
106
|
+
}
|
|
107
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
108
|
+
/* @__PURE__ */ jsxs(Pressable, { onPress: watch.watch, disabled: watch.status === "pending", accessibilityRole: "button", accessibilityLabel: `Watch the price of ${deal.title}`, style: [styles.watchBtn, {
|
|
109
|
+
borderColor: theme.border,
|
|
110
|
+
backgroundColor: theme.card
|
|
111
|
+
}, watch.status === "pending" && {
|
|
112
|
+
opacity: 0.6
|
|
113
|
+
}], children: [
|
|
114
|
+
watch.status === "pending" ? /* @__PURE__ */ jsx(ActivityIndicator, { size: "small", color: TEAL }) : /* @__PURE__ */ jsx(MaterialCommunityIcons, { name: "bell-outline", size: 12, color: theme.ink }),
|
|
115
|
+
/* @__PURE__ */ jsx(Text, { style: [styles.watchBtnText, {
|
|
116
|
+
color: theme.ink
|
|
117
|
+
}], children: "Watch" })
|
|
118
|
+
] }),
|
|
119
|
+
watch.status === "failed" ? /* @__PURE__ */ jsxs(Text, { style: styles.warnText, accessibilityRole: "alert", children: [
|
|
120
|
+
"Could not watch it: ",
|
|
121
|
+
(_a = watch.message) != null ? _a : "try again",
|
|
122
|
+
"."
|
|
123
|
+
] }) : null
|
|
124
|
+
] });
|
|
125
|
+
}
|
|
126
|
+
function DealPhoto({
|
|
127
|
+
deal,
|
|
128
|
+
height,
|
|
129
|
+
isDark
|
|
130
|
+
}) {
|
|
131
|
+
const candidates = useMemo(() => {
|
|
132
|
+
if (!deal.imageUrl) return [];
|
|
133
|
+
const sized = sizedImageUrl(deal.imageUrl, 600);
|
|
134
|
+
return sized && sized !== deal.imageUrl ? [sized, deal.imageUrl] : [deal.imageUrl];
|
|
135
|
+
}, [deal.imageUrl]);
|
|
136
|
+
const [index, setIndex] = useState(0);
|
|
137
|
+
useEffect(() => setIndex(0), [candidates]);
|
|
138
|
+
const uri = candidates[index];
|
|
139
|
+
if (!uri) {
|
|
140
|
+
return /* @__PURE__ */ jsx(View, { style: [styles.photoFallback, {
|
|
141
|
+
height,
|
|
142
|
+
backgroundColor: isDark ? "#1e293b" : "#f8fafc"
|
|
143
|
+
}], children: /* @__PURE__ */ jsx(MaterialCommunityIcons, { name: "fire", size: 30, color: "#cbd5e1" }) });
|
|
144
|
+
}
|
|
145
|
+
return /* @__PURE__ */ jsx(Image, { source: {
|
|
146
|
+
uri
|
|
147
|
+
}, style: {
|
|
148
|
+
width: "100%",
|
|
149
|
+
height
|
|
150
|
+
}, contentFit: "contain", onError: () => setIndex((i) => i + 1), accessibilityLabel: deal.title });
|
|
151
|
+
}
|
|
152
|
+
function HolidayDealCard({
|
|
153
|
+
deal,
|
|
154
|
+
width,
|
|
155
|
+
theme
|
|
156
|
+
}) {
|
|
157
|
+
var _a, _b, _c, _d;
|
|
158
|
+
const {
|
|
159
|
+
isDark,
|
|
160
|
+
card,
|
|
161
|
+
border,
|
|
162
|
+
ink,
|
|
163
|
+
muted
|
|
164
|
+
} = theme;
|
|
165
|
+
const foundOn = (_a = deal.foundOn) != null ? _a : SOURCE_LABELS[deal.source];
|
|
166
|
+
const storeIsSite = !!foundOn && deal.store === foundOn;
|
|
167
|
+
const photoHeight = Math.round((width != null ? width : 180) * 3 / 4);
|
|
168
|
+
return /* @__PURE__ */ jsxs(View, { style: [styles.dealCard, {
|
|
169
|
+
backgroundColor: card,
|
|
170
|
+
borderColor: border
|
|
171
|
+
}, width ? {
|
|
172
|
+
width
|
|
173
|
+
} : null], testID: `holiday-deal-${deal.id}`, children: [
|
|
174
|
+
/* @__PURE__ */ jsxs(Pressable, { onPress: () => open(deal.url), accessibilityRole: "link", accessibilityLabel: deal.store ? `${deal.title} at ${deal.store}` : deal.title, style: [styles.photo, {
|
|
175
|
+
backgroundColor: isDark ? "#1e293b" : "#f8fafc"
|
|
176
|
+
}], children: [
|
|
177
|
+
/* @__PURE__ */ jsx(DealPhoto, { deal, height: photoHeight, isDark }),
|
|
178
|
+
/* @__PURE__ */ jsxs(Text, { style: styles.percent, children: [
|
|
179
|
+
"-",
|
|
180
|
+
deal.discountPercent,
|
|
181
|
+
"%"
|
|
182
|
+
] }),
|
|
183
|
+
deal.hot ? /* @__PURE__ */ jsxs(View, { style: styles.hot, children: [
|
|
184
|
+
/* @__PURE__ */ jsx(MaterialCommunityIcons, { name: "fire", size: 11, color: GOLD }),
|
|
185
|
+
/* @__PURE__ */ jsx(Text, { style: styles.hotText, children: "Hot" })
|
|
186
|
+
] }) : null
|
|
187
|
+
] }),
|
|
188
|
+
/* @__PURE__ */ jsxs(View, { style: styles.dealBody, children: [
|
|
189
|
+
deal.store ? /* @__PURE__ */ jsxs(View, { style: styles.storeRow, children: [
|
|
190
|
+
/* @__PURE__ */ jsx(Text, { style: styles.store, numberOfLines: 1, children: (storeIsSite ? `Found on ${deal.store}` : deal.store).toUpperCase() }),
|
|
191
|
+
deal.trust === "known" && !storeIsSite ? /* @__PURE__ */ jsx(MaterialCommunityIcons, { name: "check-decagram", size: 12, color: TEAL, accessibilityLabel: "A store we know" }) : null
|
|
192
|
+
] }) : null,
|
|
193
|
+
/* @__PURE__ */ jsx(Text, { style: [styles.dealTitle, {
|
|
194
|
+
color: ink
|
|
195
|
+
}], numberOfLines: 2, children: deal.title }),
|
|
196
|
+
/* @__PURE__ */ jsxs(View, { style: styles.priceRow, children: [
|
|
197
|
+
/* @__PURE__ */ jsx(Text, { style: [styles.price, {
|
|
198
|
+
color: ink
|
|
199
|
+
}], children: formatPrice(deal.price) }),
|
|
200
|
+
/* @__PURE__ */ jsx(Text, { style: styles.strike, children: formatPrice(deal.originalPrice) })
|
|
201
|
+
] }),
|
|
202
|
+
/* @__PURE__ */ jsx(VerdictBadge, { verdict: deal.verdict }),
|
|
203
|
+
deal.member ? /* @__PURE__ */ jsx(Text, { style: styles.member, children: memberLine(deal.memberLabel) }) : null,
|
|
204
|
+
deal.coupon ? /* @__PURE__ */ jsx(CouponCode, { coupon: deal.coupon, ink }) : null,
|
|
205
|
+
deal.trust === "unverified" ? /* @__PURE__ */ jsxs(View, { style: styles.trustNote, accessibilityRole: "text", testID: "deal-trust-note", children: [
|
|
206
|
+
/* @__PURE__ */ jsx(MaterialCommunityIcons, { name: "alert-outline", size: 12, color: "#92400e" }),
|
|
207
|
+
/* @__PURE__ */ jsx(Text, { style: styles.trustNoteText, children: (_b = deal.trustNote) != null ? _b : "A store we do not know - check it before you pay." })
|
|
208
|
+
] }) : null,
|
|
209
|
+
foundOn && !storeIsSite || deal.posted || ((_c = deal.votes) != null ? _c : 0) > 0 || ((_d = deal.comments) != null ? _d : 0) > 0 ? /* @__PURE__ */ jsxs(View, { style: styles.metaRow, children: [
|
|
210
|
+
foundOn && !storeIsSite ? deal.dealUrl ? /* @__PURE__ */ jsx(Pressable, { onPress: () => open(deal.dealUrl), accessibilityRole: "link", children: /* @__PURE__ */ jsxs(Text, { style: [styles.meta, styles.underline, {
|
|
211
|
+
color: muted
|
|
212
|
+
}], numberOfLines: 1, children: [
|
|
213
|
+
"Found on ",
|
|
214
|
+
foundOn
|
|
215
|
+
] }) }) : /* @__PURE__ */ jsxs(Text, { style: [styles.meta, {
|
|
216
|
+
color: muted
|
|
217
|
+
}], numberOfLines: 1, children: [
|
|
218
|
+
"Found on ",
|
|
219
|
+
foundOn
|
|
220
|
+
] }) : null,
|
|
221
|
+
deal.votes !== void 0 && deal.votes > 0 ? /* @__PURE__ */ jsxs(View, { style: styles.metaItem, accessibilityLabel: `${deal.votes} community votes`, children: [
|
|
222
|
+
/* @__PURE__ */ jsx(MaterialCommunityIcons, { name: "thumb-up-outline", size: 11, color: muted }),
|
|
223
|
+
/* @__PURE__ */ jsx(Text, { style: [styles.meta, {
|
|
224
|
+
color: muted
|
|
225
|
+
}], children: deal.votes })
|
|
226
|
+
] }) : null,
|
|
227
|
+
deal.comments !== void 0 && deal.comments > 0 ? /* @__PURE__ */ jsxs(View, { style: styles.metaItem, accessibilityLabel: `${deal.comments} comments`, children: [
|
|
228
|
+
/* @__PURE__ */ jsx(MaterialCommunityIcons, { name: "message-text-outline", size: 11, color: muted }),
|
|
229
|
+
/* @__PURE__ */ jsx(Text, { style: [styles.meta, {
|
|
230
|
+
color: muted
|
|
231
|
+
}], children: deal.comments })
|
|
232
|
+
] }) : null,
|
|
233
|
+
deal.posted ? /* @__PURE__ */ jsx(Text, { style: [styles.meta, {
|
|
234
|
+
color: muted
|
|
235
|
+
}], numberOfLines: 1, children: deal.posted }) : null
|
|
236
|
+
] }) : null,
|
|
237
|
+
/* @__PURE__ */ jsxs(View, { style: styles.dealActions, children: [
|
|
238
|
+
/* @__PURE__ */ jsxs(Pressable, { onPress: () => open(deal.url), accessibilityRole: "link", accessibilityLabel: `View deal: ${deal.title}`, style: styles.viewDeal, children: [
|
|
239
|
+
/* @__PURE__ */ jsx(Text, { style: styles.viewDealText, children: "View deal" }),
|
|
240
|
+
/* @__PURE__ */ jsx(MaterialCommunityIcons, { name: "open-in-new", size: 12, color: "#0f172a" })
|
|
241
|
+
] }),
|
|
242
|
+
/* @__PURE__ */ jsx(WatchButton, { deal, theme })
|
|
243
|
+
] })
|
|
244
|
+
] })
|
|
245
|
+
] });
|
|
246
|
+
}
|
|
247
|
+
const shortDay = (day) => (/* @__PURE__ */ new Date(`${day}T12:00:00Z`)).toLocaleDateString("en-US", {
|
|
248
|
+
weekday: "short",
|
|
249
|
+
month: "short",
|
|
250
|
+
day: "numeric",
|
|
251
|
+
timeZone: "UTC"
|
|
252
|
+
});
|
|
253
|
+
function whenLine(entry) {
|
|
254
|
+
if (entry.status === "live") return entry.ends ? `On now, until ${shortDay(entry.ends)}` : "On now";
|
|
255
|
+
if (entry.inDays === 1) return "Tomorrow";
|
|
256
|
+
return shortDay(entry.starts);
|
|
257
|
+
}
|
|
258
|
+
function HolidayCalendar({
|
|
259
|
+
schedule,
|
|
260
|
+
enabled = true,
|
|
261
|
+
theme
|
|
262
|
+
}) {
|
|
263
|
+
const alerts = useDealAlerts(enabled && schedule.length > 0);
|
|
264
|
+
const [said, setSaid] = useState(null);
|
|
265
|
+
const [pending, setPending] = useState(null);
|
|
266
|
+
const [failed, setFailed] = useState(null);
|
|
267
|
+
if (!schedule.length) return null;
|
|
268
|
+
const remind = (eventId) => {
|
|
269
|
+
setPending(eventId);
|
|
270
|
+
setFailed(null);
|
|
271
|
+
alerts.remind(eventId).then((state) => {
|
|
272
|
+
var _a;
|
|
273
|
+
return setSaid((_a = state.said[0]) != null ? _a : null);
|
|
274
|
+
}).catch((err) => setFailed(err instanceof Error ? err.message : "try again")).finally(() => setPending(null));
|
|
275
|
+
};
|
|
276
|
+
return /* @__PURE__ */ jsxs(View, { style: [styles.section, {
|
|
277
|
+
borderColor: theme.border
|
|
278
|
+
}], accessibilityLabel: "Sale calendar", children: [
|
|
279
|
+
/* @__PURE__ */ jsxs(View, { style: styles.sectionHead, children: [
|
|
280
|
+
/* @__PURE__ */ jsx(MaterialCommunityIcons, { name: "calendar-month-outline", size: 16, color: TEAL }),
|
|
281
|
+
/* @__PURE__ */ jsx(Text, { style: [styles.sectionTitle, {
|
|
282
|
+
color: theme.ink
|
|
283
|
+
}], children: "When each store's sale starts" })
|
|
284
|
+
] }),
|
|
285
|
+
/* @__PURE__ */ jsx(HorizontalScroller, { fadeColor: theme.isDark ? "#111827" : "#ffffff", tone: theme.isDark ? "dark" : "light", label: "sale calendar", showsHorizontalScrollIndicator: false, contentContainerStyle: styles.calendarRow, children: schedule.map((entry) => {
|
|
286
|
+
const isSet = alerts.reminded(entry.id);
|
|
287
|
+
const busy = pending === entry.id;
|
|
288
|
+
const live = entry.status === "live";
|
|
289
|
+
return /* @__PURE__ */ jsxs(View, { testID: `event-${entry.id}`, style: [styles.event, live ? {
|
|
290
|
+
borderColor: "#a7f3d0",
|
|
291
|
+
backgroundColor: theme.isDark ? "#052e1f" : "#f0fdf4"
|
|
292
|
+
} : {
|
|
293
|
+
borderColor: theme.border,
|
|
294
|
+
backgroundColor: theme.card
|
|
295
|
+
}], children: [
|
|
296
|
+
/* @__PURE__ */ jsx(Text, { style: styles.eventStore, children: entry.store.toUpperCase() }),
|
|
297
|
+
/* @__PURE__ */ jsx(Text, { style: [styles.eventLabel, {
|
|
298
|
+
color: theme.ink
|
|
299
|
+
}], numberOfLines: 2, children: entry.label }),
|
|
300
|
+
/* @__PURE__ */ jsx(Text, { style: [styles.eventWhen, live ? styles.eventLive : {
|
|
301
|
+
color: theme.muted
|
|
302
|
+
}], children: whenLine(entry) }),
|
|
303
|
+
entry.membership ? /* @__PURE__ */ jsxs(Text, { style: styles.eventMember, children: [
|
|
304
|
+
entry.membership.name,
|
|
305
|
+
" \xB7 ",
|
|
306
|
+
entry.membership.free ? "free to join" : "paid"
|
|
307
|
+
] }) : null,
|
|
308
|
+
entry.kind === "drop" ? /* @__PURE__ */ jsx(Text, { style: styles.eventDrop, children: "Sells out fast" }) : null,
|
|
309
|
+
!live ? /* @__PURE__ */ jsxs(Pressable, { onPress: () => remind(entry.id), disabled: isSet || busy, accessibilityRole: "button", accessibilityLabel: isSet ? `Reminder set for ${entry.store} ${entry.label}` : `Remind me when ${entry.store} ${entry.label} starts`, style: [styles.remind, isSet ? {
|
|
310
|
+
borderColor: "#a7f3d0",
|
|
311
|
+
backgroundColor: "#ecfdf5"
|
|
312
|
+
} : {
|
|
313
|
+
borderColor: theme.border,
|
|
314
|
+
backgroundColor: theme.card
|
|
315
|
+
}], children: [
|
|
316
|
+
busy ? /* @__PURE__ */ jsx(ActivityIndicator, { size: "small", color: TEAL }) : /* @__PURE__ */ jsx(MaterialCommunityIcons, { name: isSet ? "check" : "bell-outline", size: 12, color: isSet ? "#047857" : theme.ink }),
|
|
317
|
+
/* @__PURE__ */ jsx(Text, { style: [styles.remindText, {
|
|
318
|
+
color: isSet ? "#047857" : theme.ink
|
|
319
|
+
}], children: isSet ? "Reminder set" : "Remind me" })
|
|
320
|
+
] }) : null
|
|
321
|
+
] }, entry.id);
|
|
322
|
+
}) }),
|
|
323
|
+
said || failed ? /* @__PURE__ */ jsx(Text, { style: [styles.statusLine, {
|
|
324
|
+
color: failed ? "#b45309" : "#047857"
|
|
325
|
+
}], accessibilityRole: "text", children: failed ? `The reminder could not be set: ${failed}.` : said }) : null
|
|
326
|
+
] });
|
|
327
|
+
}
|
|
328
|
+
function hourLabel(h) {
|
|
329
|
+
return h === 0 ? "12 am" : h < 12 ? `${h} am` : h === 12 ? "12 pm" : `${h - 12} pm`;
|
|
330
|
+
}
|
|
331
|
+
function DailyDealText({
|
|
332
|
+
term,
|
|
333
|
+
enabled = true,
|
|
334
|
+
theme
|
|
335
|
+
}) {
|
|
336
|
+
var _a;
|
|
337
|
+
const alerts = useDealAlerts(enabled);
|
|
338
|
+
const [hour, setHour] = useState(9);
|
|
339
|
+
const [busy, setBusy] = useState(false);
|
|
340
|
+
const [failed, setFailed] = useState(null);
|
|
341
|
+
const digest = (_a = alerts.state) == null ? void 0 : _a.digest;
|
|
342
|
+
const change = (on) => {
|
|
343
|
+
setBusy(true);
|
|
344
|
+
setFailed(null);
|
|
345
|
+
alerts.setDigest(on ? {
|
|
346
|
+
on: true,
|
|
347
|
+
hour,
|
|
348
|
+
term
|
|
349
|
+
} : {
|
|
350
|
+
on: false
|
|
351
|
+
}).catch((err) => setFailed(err instanceof Error ? err.message : "That did not work - try again.")).finally(() => setBusy(false));
|
|
352
|
+
};
|
|
353
|
+
return /* @__PURE__ */ jsxs(View, { style: styles.daily, accessibilityLabel: "Daily deal text", testID: "daily-deal-text", children: [
|
|
354
|
+
/* @__PURE__ */ jsx(MaterialCommunityIcons, { name: "message-text-outline", size: 14, color: TEAL }),
|
|
355
|
+
(digest == null ? void 0 : digest.on) === true ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
356
|
+
/* @__PURE__ */ jsxs(Text, { style: [styles.dailyText, {
|
|
357
|
+
color: theme.ink
|
|
358
|
+
}], children: [
|
|
359
|
+
"A deal text every day at ",
|
|
360
|
+
digest.hour,
|
|
361
|
+
":00",
|
|
362
|
+
digest.queries.length ? ` for ${digest.queries.join(", ")}` : "",
|
|
363
|
+
"."
|
|
364
|
+
] }),
|
|
365
|
+
/* @__PURE__ */ jsx(Pressable, { onPress: () => change(false), disabled: busy, accessibilityRole: "button", accessibilityLabel: "Stop", children: /* @__PURE__ */ jsx(Text, { style: [styles.link, {
|
|
366
|
+
color: TEAL
|
|
367
|
+
}], children: "Stop" }) })
|
|
368
|
+
] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
369
|
+
/* @__PURE__ */ jsxs(Text, { style: [styles.dailyText, {
|
|
370
|
+
color: theme.ink
|
|
371
|
+
}], children: [
|
|
372
|
+
"Text me the best real deals",
|
|
373
|
+
term ? ` for \u201C${term}\u201D` : "",
|
|
374
|
+
" every day at"
|
|
375
|
+
] }),
|
|
376
|
+
/* @__PURE__ */ jsxs(View, { style: [styles.stepper, {
|
|
377
|
+
borderColor: theme.border
|
|
378
|
+
}], children: [
|
|
379
|
+
/* @__PURE__ */ jsx(Pressable, { onPress: () => setHour((h) => (h + 23) % 24), accessibilityRole: "button", accessibilityLabel: "Earlier hour", hitSlop: 6, style: styles.stepBtn, children: /* @__PURE__ */ jsx(MaterialCommunityIcons, { name: "minus", size: 12, color: theme.ink }) }),
|
|
380
|
+
/* @__PURE__ */ jsx(Text, { style: [styles.stepValue, {
|
|
381
|
+
color: theme.ink
|
|
382
|
+
}], accessibilityLabel: "Hour of the daily deal text", children: hourLabel(hour) }),
|
|
383
|
+
/* @__PURE__ */ jsx(Pressable, { onPress: () => setHour((h) => (h + 1) % 24), accessibilityRole: "button", accessibilityLabel: "Later hour", hitSlop: 6, style: styles.stepBtn, children: /* @__PURE__ */ jsx(MaterialCommunityIcons, { name: "plus", size: 12, color: theme.ink }) })
|
|
384
|
+
] }),
|
|
385
|
+
/* @__PURE__ */ jsxs(Pressable, { onPress: () => change(true), disabled: busy, accessibilityRole: "button", accessibilityLabel: "Turn on", style: [styles.smallBtn, {
|
|
386
|
+
borderColor: theme.border,
|
|
387
|
+
backgroundColor: theme.card
|
|
388
|
+
}, busy && {
|
|
389
|
+
opacity: 0.6
|
|
390
|
+
}], children: [
|
|
391
|
+
busy ? /* @__PURE__ */ jsx(ActivityIndicator, { size: "small", color: TEAL }) : null,
|
|
392
|
+
/* @__PURE__ */ jsx(Text, { style: [styles.smallBtnText, {
|
|
393
|
+
color: theme.ink
|
|
394
|
+
}], children: "Turn on" })
|
|
395
|
+
] })
|
|
396
|
+
] }),
|
|
397
|
+
failed ? /* @__PURE__ */ jsx(Text, { style: styles.warnText, accessibilityRole: "alert", children: failed }) : null
|
|
398
|
+
] });
|
|
399
|
+
}
|
|
400
|
+
const PLATFORM_NAMES = {
|
|
401
|
+
tiktok: "TikTok",
|
|
402
|
+
instagram: "Instagram",
|
|
403
|
+
youtube: "YouTube",
|
|
404
|
+
pinterest: "Pinterest",
|
|
405
|
+
facebook: "Facebook",
|
|
406
|
+
reddit: "Reddit",
|
|
407
|
+
x: "X",
|
|
408
|
+
threads: "Threads",
|
|
409
|
+
web: "the page"
|
|
410
|
+
};
|
|
411
|
+
function SocialLinkBox({
|
|
412
|
+
onSearchDeals,
|
|
413
|
+
onSearchStores,
|
|
414
|
+
theme
|
|
415
|
+
}) {
|
|
416
|
+
var _a, _b;
|
|
417
|
+
const [draft, setDraft] = useState("");
|
|
418
|
+
const check = useSocialLinkCheck();
|
|
419
|
+
const submit = () => {
|
|
420
|
+
if (draft.trim()) check.check(draft.trim());
|
|
421
|
+
};
|
|
422
|
+
const result = check.result;
|
|
423
|
+
const query = (_a = result == null ? void 0 : result.productName) != null ? _a : result == null ? void 0 : result.query;
|
|
424
|
+
return /* @__PURE__ */ jsxs(View, { style: [styles.section, {
|
|
425
|
+
borderColor: theme.border
|
|
426
|
+
}], accessibilityLabel: "Saw it on social", children: [
|
|
427
|
+
/* @__PURE__ */ jsxs(View, { style: [styles.socialForm, {
|
|
428
|
+
borderColor: theme.border
|
|
429
|
+
}], children: [
|
|
430
|
+
/* @__PURE__ */ jsx(View, { style: [styles.socialIcon, {
|
|
431
|
+
backgroundColor: theme.isDark ? "#1e293b" : "#f8fafc"
|
|
432
|
+
}], children: /* @__PURE__ */ jsx(MaterialCommunityIcons, { name: "link-variant", size: 16, color: "#64748b" }) }),
|
|
433
|
+
/* @__PURE__ */ jsx(TextInput, { value: draft, onChangeText: setDraft, placeholder: "Saw it on TikTok? Paste the link", placeholderTextColor: "#94a3b8", accessibilityLabel: "Paste a social post link or caption", autoCapitalize: "none", autoCorrect: false, returnKeyType: "search", onSubmitEditing: submit, style: [styles.socialInput, {
|
|
434
|
+
color: theme.ink
|
|
435
|
+
}] }),
|
|
436
|
+
/* @__PURE__ */ jsxs(Pressable, { onPress: submit, disabled: check.pending || !draft.trim(), accessibilityRole: "button", accessibilityLabel: "Find it", style: [styles.findBtn, (check.pending || !draft.trim()) && {
|
|
437
|
+
opacity: 0.6
|
|
438
|
+
}], children: [
|
|
439
|
+
check.pending ? /* @__PURE__ */ jsx(ActivityIndicator, { size: "small", color: "#fff" }) : null,
|
|
440
|
+
/* @__PURE__ */ jsx(Text, { style: styles.findBtnText, children: "Find it" })
|
|
441
|
+
] })
|
|
442
|
+
] }),
|
|
443
|
+
check.error ? /* @__PURE__ */ jsx(Text, { style: styles.warnText, accessibilityRole: "alert", children: check.error }) : null,
|
|
444
|
+
result ? /* @__PURE__ */ jsxs(View, { style: [styles.socialResult, {
|
|
445
|
+
borderColor: theme.border,
|
|
446
|
+
backgroundColor: theme.isDark ? "#0f172a" : "#f8fafc"
|
|
447
|
+
}], testID: `social-${result.platform}`, children: [
|
|
448
|
+
/* @__PURE__ */ jsx(Text, { style: [styles.socialFrom, {
|
|
449
|
+
color: theme.muted
|
|
450
|
+
}], children: `From ${(_b = PLATFORM_NAMES[result.platform]) != null ? _b : result.platform}${result.author ? ` \xB7 ${result.author}` : ""}`.toUpperCase() }),
|
|
451
|
+
result.caption ? /* @__PURE__ */ jsx(Text, { style: [styles.socialCaption, {
|
|
452
|
+
color: theme.ink
|
|
453
|
+
}], numberOfLines: 3, children: result.caption }) : null,
|
|
454
|
+
result.prices.length > 0 ? /* @__PURE__ */ jsxs(Text, { style: [styles.socialCaption, {
|
|
455
|
+
color: theme.ink
|
|
456
|
+
}], children: [
|
|
457
|
+
"The post says",
|
|
458
|
+
" ",
|
|
459
|
+
result.prices.slice(0, 3).map((p) => formatPrice(p)).join(", "),
|
|
460
|
+
" ",
|
|
461
|
+
"- compare it with the deals below."
|
|
462
|
+
] }) : null,
|
|
463
|
+
result.shopLinks.map((link) => /* @__PURE__ */ jsxs(View, { style: styles.shopLink, children: [
|
|
464
|
+
/* @__PURE__ */ jsx(MaterialCommunityIcons, { name: link.known ? "shield-check-outline" : "alert-outline", size: 13, color: link.known ? "#047857" : "#b45309" }),
|
|
465
|
+
/* @__PURE__ */ jsx(Pressable, { onPress: () => open(link.url), accessibilityRole: "link", style: {
|
|
466
|
+
flexShrink: 1
|
|
467
|
+
}, children: /* @__PURE__ */ jsx(Text, { style: [styles.meta, styles.underline, {
|
|
468
|
+
color: theme.ink
|
|
469
|
+
}], numberOfLines: 1, children: link.host }) }),
|
|
470
|
+
!link.known ? /* @__PURE__ */ jsx(Text, { style: [styles.meta, {
|
|
471
|
+
color: "#b45309",
|
|
472
|
+
flexShrink: 1
|
|
473
|
+
}], children: "a store we do not know - check it before you pay" }) : null
|
|
474
|
+
] }, link.url)),
|
|
475
|
+
result.note ? /* @__PURE__ */ jsx(Text, { style: [styles.meta, {
|
|
476
|
+
color: theme.muted
|
|
477
|
+
}], children: result.note }) : null,
|
|
478
|
+
query ? /* @__PURE__ */ jsxs(View, { style: styles.socialActions, children: [
|
|
479
|
+
/* @__PURE__ */ jsx(Pressable, { onPress: () => onSearchDeals(query), accessibilityRole: "button", accessibilityLabel: `Deals on \u201C${query}\u201D`, style: styles.goldBtn, children: /* @__PURE__ */ jsxs(Text, { style: styles.goldBtnText, children: [
|
|
480
|
+
"Deals on \u201C",
|
|
481
|
+
query,
|
|
482
|
+
"\u201D"
|
|
483
|
+
] }) }),
|
|
484
|
+
onSearchStores ? /* @__PURE__ */ jsx(Pressable, { onPress: () => onSearchStores(query), accessibilityRole: "button", accessibilityLabel: "Find it at every store", style: [styles.smallBtn, {
|
|
485
|
+
borderColor: theme.border,
|
|
486
|
+
backgroundColor: theme.card
|
|
487
|
+
}], children: /* @__PURE__ */ jsx(Text, { style: [styles.smallBtnText, {
|
|
488
|
+
color: theme.ink
|
|
489
|
+
}], children: "Find it at every store" }) }) : null
|
|
490
|
+
] }) : /* @__PURE__ */ jsx(Text, { style: [styles.meta, {
|
|
491
|
+
color: theme.muted
|
|
492
|
+
}], children: "The post does not say what it is selling. Type the product's name in the search above." })
|
|
493
|
+
] }) : null
|
|
494
|
+
] });
|
|
495
|
+
}
|
|
496
|
+
function AfterYouBuy({
|
|
497
|
+
policies,
|
|
498
|
+
theme
|
|
499
|
+
}) {
|
|
500
|
+
const [openList, setOpenList] = useState(false);
|
|
501
|
+
if (!policies.length) return null;
|
|
502
|
+
return /* @__PURE__ */ jsxs(View, { style: [styles.section, styles.sectionTop, {
|
|
503
|
+
borderColor: theme.border
|
|
504
|
+
}], children: [
|
|
505
|
+
/* @__PURE__ */ jsxs(Pressable, { onPress: () => setOpenList((v) => !v), accessibilityRole: "button", accessibilityState: {
|
|
506
|
+
expanded: openList
|
|
507
|
+
}, accessibilityLabel: "After you buy: price matching and holiday returns", style: styles.summary, children: [
|
|
508
|
+
/* @__PURE__ */ jsx(MaterialCommunityIcons, { name: openList ? "chevron-down" : "chevron-right", size: 16, color: theme.ink }),
|
|
509
|
+
/* @__PURE__ */ jsx(Text, { style: [styles.sectionTitle, {
|
|
510
|
+
color: theme.ink,
|
|
511
|
+
flexShrink: 1
|
|
512
|
+
}], children: "After you buy: price matching and holiday returns" })
|
|
513
|
+
] }),
|
|
514
|
+
openList ? policies.map((policy) => /* @__PURE__ */ jsxs(View, { style: styles.policy, children: [
|
|
515
|
+
/* @__PURE__ */ jsx(Text, { style: [styles.policyStore, {
|
|
516
|
+
color: theme.ink
|
|
517
|
+
}], children: policy.store }),
|
|
518
|
+
/* @__PURE__ */ jsx(Text, { style: [styles.policyText, {
|
|
519
|
+
color: theme.ink
|
|
520
|
+
}], children: policy.priceMatch }),
|
|
521
|
+
policy.returns ? /* @__PURE__ */ jsx(Text, { style: [styles.policyText, {
|
|
522
|
+
color: theme.muted
|
|
523
|
+
}], children: policy.returns }) : null,
|
|
524
|
+
/* @__PURE__ */ jsx(Pressable, { onPress: () => open(policy.source), accessibilityRole: "link", children: /* @__PURE__ */ jsxs(Text, { style: [styles.meta, styles.underline, {
|
|
525
|
+
color: theme.muted
|
|
526
|
+
}], children: [
|
|
527
|
+
"Reported ",
|
|
528
|
+
policy.checked,
|
|
529
|
+
" - the store's own page decides"
|
|
530
|
+
] }) })
|
|
531
|
+
] }, policy.store)) : null
|
|
532
|
+
] });
|
|
533
|
+
}
|
|
534
|
+
const styles = StyleSheet.create({
|
|
535
|
+
underline: {
|
|
536
|
+
textDecorationLine: "underline"
|
|
537
|
+
},
|
|
538
|
+
link: {
|
|
539
|
+
fontSize: 12,
|
|
540
|
+
fontWeight: "700",
|
|
541
|
+
textDecorationLine: "underline"
|
|
542
|
+
},
|
|
543
|
+
verdict: {
|
|
544
|
+
flexDirection: "row",
|
|
545
|
+
alignItems: "flex-start",
|
|
546
|
+
alignSelf: "flex-start",
|
|
547
|
+
gap: 3,
|
|
548
|
+
borderWidth: 1,
|
|
549
|
+
borderRadius: 6,
|
|
550
|
+
paddingHorizontal: 5,
|
|
551
|
+
paddingVertical: 2,
|
|
552
|
+
maxWidth: "100%"
|
|
553
|
+
},
|
|
554
|
+
verdictText: {
|
|
555
|
+
fontSize: 11,
|
|
556
|
+
fontWeight: "700",
|
|
557
|
+
lineHeight: 14,
|
|
558
|
+
flexShrink: 1
|
|
559
|
+
},
|
|
560
|
+
coupon: {
|
|
561
|
+
flexDirection: "row",
|
|
562
|
+
alignItems: "center",
|
|
563
|
+
gap: 4
|
|
564
|
+
},
|
|
565
|
+
couponText: {
|
|
566
|
+
fontSize: 11,
|
|
567
|
+
flexShrink: 1
|
|
568
|
+
},
|
|
569
|
+
couponCode: {
|
|
570
|
+
fontWeight: "700",
|
|
571
|
+
fontFamily: "Menlo"
|
|
572
|
+
},
|
|
573
|
+
couponCopy: {
|
|
574
|
+
padding: 2
|
|
575
|
+
},
|
|
576
|
+
dealCard: {
|
|
577
|
+
borderWidth: 1,
|
|
578
|
+
borderRadius: 12,
|
|
579
|
+
overflow: "hidden"
|
|
580
|
+
},
|
|
581
|
+
photo: {
|
|
582
|
+
position: "relative"
|
|
583
|
+
},
|
|
584
|
+
photoFallback: {
|
|
585
|
+
width: "100%",
|
|
586
|
+
alignItems: "center",
|
|
587
|
+
justifyContent: "center"
|
|
588
|
+
},
|
|
589
|
+
percent: {
|
|
590
|
+
position: "absolute",
|
|
591
|
+
left: 8,
|
|
592
|
+
top: 8,
|
|
593
|
+
backgroundColor: "#b91c1c",
|
|
594
|
+
color: "#fff",
|
|
595
|
+
fontSize: 11,
|
|
596
|
+
fontWeight: "800",
|
|
597
|
+
borderRadius: 6,
|
|
598
|
+
overflow: "hidden",
|
|
599
|
+
paddingHorizontal: 5,
|
|
600
|
+
paddingVertical: 2
|
|
601
|
+
},
|
|
602
|
+
hot: {
|
|
603
|
+
position: "absolute",
|
|
604
|
+
right: 8,
|
|
605
|
+
top: 8,
|
|
606
|
+
flexDirection: "row",
|
|
607
|
+
alignItems: "center",
|
|
608
|
+
gap: 2,
|
|
609
|
+
backgroundColor: "#0f172a",
|
|
610
|
+
borderRadius: 6,
|
|
611
|
+
paddingHorizontal: 5,
|
|
612
|
+
paddingVertical: 2
|
|
613
|
+
},
|
|
614
|
+
hotText: {
|
|
615
|
+
color: GOLD,
|
|
616
|
+
fontSize: 10,
|
|
617
|
+
fontWeight: "700"
|
|
618
|
+
},
|
|
619
|
+
dealBody: {
|
|
620
|
+
padding: 9,
|
|
621
|
+
gap: 4,
|
|
622
|
+
flexGrow: 1
|
|
623
|
+
},
|
|
624
|
+
storeRow: {
|
|
625
|
+
flexDirection: "row",
|
|
626
|
+
alignItems: "center",
|
|
627
|
+
gap: 3
|
|
628
|
+
},
|
|
629
|
+
store: {
|
|
630
|
+
color: TEAL,
|
|
631
|
+
fontSize: 10,
|
|
632
|
+
fontWeight: "700",
|
|
633
|
+
letterSpacing: 0.4,
|
|
634
|
+
flexShrink: 1
|
|
635
|
+
},
|
|
636
|
+
dealTitle: {
|
|
637
|
+
fontSize: 13,
|
|
638
|
+
fontWeight: "600",
|
|
639
|
+
lineHeight: 17
|
|
640
|
+
},
|
|
641
|
+
priceRow: {
|
|
642
|
+
flexDirection: "row",
|
|
643
|
+
alignItems: "baseline",
|
|
644
|
+
flexWrap: "wrap",
|
|
645
|
+
columnGap: 6,
|
|
646
|
+
marginTop: "auto"
|
|
647
|
+
},
|
|
648
|
+
price: {
|
|
649
|
+
fontSize: 16,
|
|
650
|
+
fontWeight: "800"
|
|
651
|
+
},
|
|
652
|
+
strike: {
|
|
653
|
+
fontSize: 12,
|
|
654
|
+
color: "#94a3b8",
|
|
655
|
+
textDecorationLine: "line-through"
|
|
656
|
+
},
|
|
657
|
+
member: {
|
|
658
|
+
alignSelf: "flex-start",
|
|
659
|
+
backgroundColor: "#f5f3ff",
|
|
660
|
+
color: "#6d28d9",
|
|
661
|
+
fontSize: 10,
|
|
662
|
+
fontWeight: "700",
|
|
663
|
+
borderRadius: 6,
|
|
664
|
+
overflow: "hidden",
|
|
665
|
+
paddingHorizontal: 5,
|
|
666
|
+
paddingVertical: 2
|
|
667
|
+
},
|
|
668
|
+
trustNote: {
|
|
669
|
+
flexDirection: "row",
|
|
670
|
+
alignItems: "flex-start",
|
|
671
|
+
gap: 3,
|
|
672
|
+
backgroundColor: "#fffbeb",
|
|
673
|
+
borderRadius: 6,
|
|
674
|
+
paddingHorizontal: 5,
|
|
675
|
+
paddingVertical: 4
|
|
676
|
+
},
|
|
677
|
+
trustNoteText: {
|
|
678
|
+
color: "#92400e",
|
|
679
|
+
fontSize: 10,
|
|
680
|
+
lineHeight: 13,
|
|
681
|
+
flexShrink: 1
|
|
682
|
+
},
|
|
683
|
+
metaRow: {
|
|
684
|
+
flexDirection: "row",
|
|
685
|
+
flexWrap: "wrap",
|
|
686
|
+
alignItems: "center",
|
|
687
|
+
columnGap: 6,
|
|
688
|
+
rowGap: 2
|
|
689
|
+
},
|
|
690
|
+
metaItem: {
|
|
691
|
+
flexDirection: "row",
|
|
692
|
+
alignItems: "center",
|
|
693
|
+
gap: 2
|
|
694
|
+
},
|
|
695
|
+
meta: {
|
|
696
|
+
fontSize: 11
|
|
697
|
+
},
|
|
698
|
+
dealActions: {
|
|
699
|
+
gap: 4,
|
|
700
|
+
marginTop: 4
|
|
701
|
+
},
|
|
702
|
+
viewDeal: {
|
|
703
|
+
flexDirection: "row",
|
|
704
|
+
alignItems: "center",
|
|
705
|
+
justifyContent: "center",
|
|
706
|
+
gap: 4,
|
|
707
|
+
backgroundColor: GOLD,
|
|
708
|
+
borderRadius: 8,
|
|
709
|
+
paddingVertical: 7
|
|
710
|
+
},
|
|
711
|
+
viewDealText: {
|
|
712
|
+
color: "#0f172a",
|
|
713
|
+
fontSize: 13,
|
|
714
|
+
fontWeight: "700"
|
|
715
|
+
},
|
|
716
|
+
watchBtn: {
|
|
717
|
+
flexDirection: "row",
|
|
718
|
+
alignItems: "center",
|
|
719
|
+
justifyContent: "center",
|
|
720
|
+
gap: 4,
|
|
721
|
+
borderWidth: 1,
|
|
722
|
+
borderRadius: 8,
|
|
723
|
+
paddingVertical: 6
|
|
724
|
+
},
|
|
725
|
+
watchBtnText: {
|
|
726
|
+
fontSize: 12,
|
|
727
|
+
fontWeight: "700"
|
|
728
|
+
},
|
|
729
|
+
watchDone: {
|
|
730
|
+
flexDirection: "row",
|
|
731
|
+
alignItems: "flex-start",
|
|
732
|
+
gap: 3
|
|
733
|
+
},
|
|
734
|
+
watchDoneText: {
|
|
735
|
+
color: "#047857",
|
|
736
|
+
fontSize: 11,
|
|
737
|
+
lineHeight: 14,
|
|
738
|
+
flexShrink: 1
|
|
739
|
+
},
|
|
740
|
+
warnText: {
|
|
741
|
+
color: "#b45309",
|
|
742
|
+
fontSize: 11
|
|
743
|
+
},
|
|
744
|
+
section: {
|
|
745
|
+
borderBottomWidth: 1,
|
|
746
|
+
paddingVertical: 12,
|
|
747
|
+
gap: 8
|
|
748
|
+
},
|
|
749
|
+
sectionTop: {
|
|
750
|
+
borderBottomWidth: 0,
|
|
751
|
+
borderTopWidth: 1
|
|
752
|
+
},
|
|
753
|
+
sectionHead: {
|
|
754
|
+
flexDirection: "row",
|
|
755
|
+
alignItems: "center",
|
|
756
|
+
gap: 6
|
|
757
|
+
},
|
|
758
|
+
sectionTitle: {
|
|
759
|
+
fontSize: 13,
|
|
760
|
+
fontWeight: "800"
|
|
761
|
+
},
|
|
762
|
+
calendarRow: {
|
|
763
|
+
gap: 8,
|
|
764
|
+
paddingRight: 8,
|
|
765
|
+
alignItems: "stretch"
|
|
766
|
+
},
|
|
767
|
+
event: {
|
|
768
|
+
width: 168,
|
|
769
|
+
borderWidth: 1,
|
|
770
|
+
borderRadius: 12,
|
|
771
|
+
padding: 9,
|
|
772
|
+
gap: 3
|
|
773
|
+
},
|
|
774
|
+
eventStore: {
|
|
775
|
+
color: TEAL,
|
|
776
|
+
fontSize: 10,
|
|
777
|
+
fontWeight: "700",
|
|
778
|
+
letterSpacing: 0.4
|
|
779
|
+
},
|
|
780
|
+
eventLabel: {
|
|
781
|
+
fontSize: 12.5,
|
|
782
|
+
fontWeight: "700",
|
|
783
|
+
lineHeight: 16
|
|
784
|
+
},
|
|
785
|
+
eventWhen: {
|
|
786
|
+
fontSize: 11.5
|
|
787
|
+
},
|
|
788
|
+
eventLive: {
|
|
789
|
+
color: "#047857",
|
|
790
|
+
fontWeight: "700"
|
|
791
|
+
},
|
|
792
|
+
eventMember: {
|
|
793
|
+
alignSelf: "flex-start",
|
|
794
|
+
backgroundColor: "#f5f3ff",
|
|
795
|
+
color: "#6d28d9",
|
|
796
|
+
fontSize: 10,
|
|
797
|
+
fontWeight: "700",
|
|
798
|
+
borderRadius: 4,
|
|
799
|
+
overflow: "hidden",
|
|
800
|
+
paddingHorizontal: 5,
|
|
801
|
+
paddingVertical: 2
|
|
802
|
+
},
|
|
803
|
+
eventDrop: {
|
|
804
|
+
alignSelf: "flex-start",
|
|
805
|
+
backgroundColor: "#fef3c7",
|
|
806
|
+
color: "#92400e",
|
|
807
|
+
fontSize: 10,
|
|
808
|
+
fontWeight: "700",
|
|
809
|
+
borderRadius: 4,
|
|
810
|
+
overflow: "hidden",
|
|
811
|
+
paddingHorizontal: 5,
|
|
812
|
+
paddingVertical: 2
|
|
813
|
+
},
|
|
814
|
+
remind: {
|
|
815
|
+
marginTop: "auto",
|
|
816
|
+
flexDirection: "row",
|
|
817
|
+
alignItems: "center",
|
|
818
|
+
justifyContent: "center",
|
|
819
|
+
gap: 4,
|
|
820
|
+
borderWidth: 1,
|
|
821
|
+
borderRadius: 8,
|
|
822
|
+
paddingVertical: 5
|
|
823
|
+
},
|
|
824
|
+
remindText: {
|
|
825
|
+
fontSize: 11.5,
|
|
826
|
+
fontWeight: "700"
|
|
827
|
+
},
|
|
828
|
+
statusLine: {
|
|
829
|
+
fontSize: 11.5
|
|
830
|
+
},
|
|
831
|
+
daily: {
|
|
832
|
+
flexDirection: "row",
|
|
833
|
+
flexWrap: "wrap",
|
|
834
|
+
alignItems: "center",
|
|
835
|
+
gap: 6
|
|
836
|
+
},
|
|
837
|
+
dailyText: {
|
|
838
|
+
fontSize: 12,
|
|
839
|
+
flexShrink: 1
|
|
840
|
+
},
|
|
841
|
+
stepper: {
|
|
842
|
+
flexDirection: "row",
|
|
843
|
+
alignItems: "center",
|
|
844
|
+
borderWidth: 1,
|
|
845
|
+
borderRadius: 8
|
|
846
|
+
},
|
|
847
|
+
stepBtn: {
|
|
848
|
+
paddingHorizontal: 7,
|
|
849
|
+
paddingVertical: 5
|
|
850
|
+
},
|
|
851
|
+
stepValue: {
|
|
852
|
+
fontSize: 12,
|
|
853
|
+
fontWeight: "700",
|
|
854
|
+
minWidth: 42,
|
|
855
|
+
textAlign: "center"
|
|
856
|
+
},
|
|
857
|
+
smallBtn: {
|
|
858
|
+
flexDirection: "row",
|
|
859
|
+
alignItems: "center",
|
|
860
|
+
gap: 4,
|
|
861
|
+
borderWidth: 1,
|
|
862
|
+
borderRadius: 8,
|
|
863
|
+
paddingHorizontal: 9,
|
|
864
|
+
paddingVertical: 5
|
|
865
|
+
},
|
|
866
|
+
smallBtnText: {
|
|
867
|
+
fontSize: 12,
|
|
868
|
+
fontWeight: "700"
|
|
869
|
+
},
|
|
870
|
+
socialForm: {
|
|
871
|
+
flexDirection: "row",
|
|
872
|
+
alignItems: "stretch",
|
|
873
|
+
borderWidth: 1,
|
|
874
|
+
borderRadius: 10,
|
|
875
|
+
overflow: "hidden"
|
|
876
|
+
},
|
|
877
|
+
socialIcon: {
|
|
878
|
+
paddingHorizontal: 10,
|
|
879
|
+
alignItems: "center",
|
|
880
|
+
justifyContent: "center"
|
|
881
|
+
},
|
|
882
|
+
socialInput: {
|
|
883
|
+
flex: 1,
|
|
884
|
+
fontSize: 14,
|
|
885
|
+
paddingHorizontal: 10,
|
|
886
|
+
paddingVertical: 9
|
|
887
|
+
},
|
|
888
|
+
findBtn: {
|
|
889
|
+
flexDirection: "row",
|
|
890
|
+
alignItems: "center",
|
|
891
|
+
gap: 4,
|
|
892
|
+
backgroundColor: "#0f172a",
|
|
893
|
+
paddingHorizontal: 12
|
|
894
|
+
},
|
|
895
|
+
findBtnText: {
|
|
896
|
+
color: "#fff",
|
|
897
|
+
fontSize: 13,
|
|
898
|
+
fontWeight: "700"
|
|
899
|
+
},
|
|
900
|
+
socialResult: {
|
|
901
|
+
borderWidth: 1,
|
|
902
|
+
borderRadius: 12,
|
|
903
|
+
padding: 10,
|
|
904
|
+
gap: 6
|
|
905
|
+
},
|
|
906
|
+
socialFrom: {
|
|
907
|
+
fontSize: 10.5,
|
|
908
|
+
fontWeight: "700",
|
|
909
|
+
letterSpacing: 0.4
|
|
910
|
+
},
|
|
911
|
+
socialCaption: {
|
|
912
|
+
fontSize: 12.5,
|
|
913
|
+
lineHeight: 17
|
|
914
|
+
},
|
|
915
|
+
shopLink: {
|
|
916
|
+
flexDirection: "row",
|
|
917
|
+
alignItems: "center",
|
|
918
|
+
flexWrap: "wrap",
|
|
919
|
+
gap: 4
|
|
920
|
+
},
|
|
921
|
+
socialActions: {
|
|
922
|
+
flexDirection: "row",
|
|
923
|
+
flexWrap: "wrap",
|
|
924
|
+
gap: 6
|
|
925
|
+
},
|
|
926
|
+
goldBtn: {
|
|
927
|
+
backgroundColor: GOLD,
|
|
928
|
+
borderRadius: 8,
|
|
929
|
+
paddingHorizontal: 10,
|
|
930
|
+
paddingVertical: 6
|
|
931
|
+
},
|
|
932
|
+
goldBtnText: {
|
|
933
|
+
color: "#0f172a",
|
|
934
|
+
fontSize: 12.5,
|
|
935
|
+
fontWeight: "700"
|
|
936
|
+
},
|
|
937
|
+
summary: {
|
|
938
|
+
flexDirection: "row",
|
|
939
|
+
alignItems: "center",
|
|
940
|
+
gap: 4
|
|
941
|
+
},
|
|
942
|
+
policy: {
|
|
943
|
+
gap: 2,
|
|
944
|
+
paddingLeft: 20
|
|
945
|
+
},
|
|
946
|
+
policyStore: {
|
|
947
|
+
fontSize: 12.5,
|
|
948
|
+
fontWeight: "700"
|
|
949
|
+
},
|
|
950
|
+
policyText: {
|
|
951
|
+
fontSize: 12,
|
|
952
|
+
lineHeight: 16
|
|
953
|
+
}
|
|
954
|
+
});export{AfterYouBuy,CouponCode,DailyDealText,HolidayCalendar,HolidayDealCard,SocialLinkBox,VerdictBadge,hourLabel,memberLine,whenLine};//# sourceMappingURL=HolidayDealsParts.js.map
|