@adminide-stack/yantra-mobile 12.0.69-alpha.8 → 12.0.69
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/GatewayConnector/GatewayConnector.js +2 -2
- package/lib/components/GatewayConnector/GatewayConnector.js.map +1 -1
- package/lib/components/KeyboardComposerDock.js +8 -1
- package/lib/components/KeyboardComposerDock.js.map +1 -1
- package/lib/components/NavigationHeader/NavigationHeader.js +2 -2
- package/lib/components/NavigationHeader/NavigationHeader.js.map +1 -1
- package/lib/config/env-config.js +4 -0
- package/lib/config/env-config.js.map +1 -1
- package/lib/contexts/ChatLiveStreamContext.js +4 -1
- package/lib/contexts/ChatLiveStreamContext.js.map +1 -1
- package/lib/features/agent-chat/NativeAgentChat.js +2 -0
- package/lib/features/agent-chat/NativeAgentChat.js.map +1 -1
- package/lib/features/apps/AppsCatalog.js +2 -2
- package/lib/features/apps/AppsCatalog.js.map +1 -1
- package/lib/features/audio-input/MicErrorBoundary.js +2 -2
- package/lib/features/audio-input/MicErrorBoundary.js.map +1 -1
- package/lib/features/canvas/AudioEditorExperience.js +308 -0
- package/lib/features/canvas/AudioEditorExperience.js.map +1 -0
- package/lib/features/canvas/CanvasAgentChatPane.js +310 -0
- package/lib/features/canvas/CanvasAgentChatPane.js.map +1 -0
- package/lib/features/canvas/CanvasBoardsGrid.js +414 -0
- package/lib/features/canvas/CanvasBoardsGrid.js.map +1 -0
- package/lib/features/canvas/CanvasChatResultCard.js +113 -0
- package/lib/features/canvas/CanvasChatResultCard.js.map +1 -0
- package/lib/features/canvas/CanvasEditToolsPanel.js +179 -0
- package/lib/features/canvas/CanvasEditToolsPanel.js.map +1 -0
- package/lib/features/canvas/CanvasExperience.js +859 -0
- package/lib/features/canvas/CanvasExperience.js.map +1 -0
- package/lib/features/canvas/CanvasGeneratePanel.js +514 -0
- package/lib/features/canvas/CanvasGeneratePanel.js.map +1 -0
- package/lib/features/canvas/CanvasLibrarySheet.js +355 -0
- package/lib/features/canvas/CanvasLibrarySheet.js.map +1 -0
- package/lib/features/canvas/CanvasLooksPanel.js +184 -0
- package/lib/features/canvas/CanvasLooksPanel.js.map +1 -0
- package/lib/features/canvas/CanvasTasksPanel.js +138 -0
- package/lib/features/canvas/CanvasTasksPanel.js.map +1 -0
- package/lib/features/canvas/CanvasTemplatesPanel.js +226 -0
- package/lib/features/canvas/CanvasTemplatesPanel.js.map +1 -0
- package/lib/features/canvas/CanvasToolDock.js +423 -0
- package/lib/features/canvas/CanvasToolDock.js.map +1 -0
- package/lib/features/canvas/FrameExtractorExperience.js +242 -0
- package/lib/features/canvas/FrameExtractorExperience.js.map +1 -0
- package/lib/features/canvas/ImageEditorExperience.js +491 -0
- package/lib/features/canvas/ImageEditorExperience.js.map +1 -0
- package/lib/features/canvas/InfluencerStudioExperience.js +288 -0
- package/lib/features/canvas/InfluencerStudioExperience.js.map +1 -0
- package/lib/features/canvas/MoodboardExperience.js +205 -0
- package/lib/features/canvas/MoodboardExperience.js.map +1 -0
- package/lib/features/canvas/NativeCanvasViewer.js +929 -0
- package/lib/features/canvas/NativeCanvasViewer.js.map +1 -0
- package/lib/features/canvas/PromoContextFields.js +150 -0
- package/lib/features/canvas/PromoContextFields.js.map +1 -0
- package/lib/features/canvas/SetStudioExperience.js +323 -0
- package/lib/features/canvas/SetStudioExperience.js.map +1 -0
- package/lib/features/canvas/VideoClipsExperience.js +175 -0
- package/lib/features/canvas/VideoClipsExperience.js.map +1 -0
- package/lib/features/canvas/VideoEditExperience.js +824 -0
- package/lib/features/canvas/VideoEditExperience.js.map +1 -0
- package/lib/features/canvas/VideoEditorExperience.js +3050 -0
- package/lib/features/canvas/VideoEditorExperience.js.map +1 -0
- package/lib/features/canvas/VideoGeneratorExperience.js +415 -0
- package/lib/features/canvas/VideoGeneratorExperience.js.map +1 -0
- package/lib/features/canvas/aiEdit.js +53 -0
- package/lib/features/canvas/aiEdit.js.map +1 -0
- package/lib/features/canvas/canvasAgentChat.js +76 -0
- package/lib/features/canvas/canvasAgentChat.js.map +1 -0
- package/lib/features/canvas/canvasBoardsCatalog.js +59 -0
- package/lib/features/canvas/canvasBoardsCatalog.js.map +1 -0
- package/lib/features/canvas/canvasBoardsSnapshot.js +14 -1
- package/lib/features/canvas/canvasBoardsSnapshot.js.map +1 -1
- package/lib/features/canvas/canvasChatDisplay.js +38 -0
- package/lib/features/canvas/canvasChatDisplay.js.map +1 -0
- package/lib/features/canvas/canvasChatTemplates.js +219 -0
- package/lib/features/canvas/canvasChatTemplates.js.map +1 -0
- package/lib/features/canvas/canvasCore.js +138 -1
- package/lib/features/canvas/canvasCore.js.map +1 -1
- package/lib/features/canvas/canvasEditOps.js +224 -0
- package/lib/features/canvas/canvasEditOps.js.map +1 -0
- package/lib/features/canvas/canvasTasks.js +187 -0
- package/lib/features/canvas/canvasTasks.js.map +1 -0
- package/lib/features/canvas/designPromptTemplates.js +3084 -0
- package/lib/features/canvas/designPromptTemplates.js.map +1 -0
- package/lib/features/canvas/editTools.js +54 -0
- package/lib/features/canvas/editTools.js.map +1 -0
- package/lib/features/canvas/extendVideo.js +5 -0
- package/lib/features/canvas/extendVideo.js.map +1 -0
- package/lib/features/canvas/frameExtract.js +33 -0
- package/lib/features/canvas/frameExtract.js.map +1 -0
- package/lib/features/canvas/generationModels.js +201 -0
- package/lib/features/canvas/generationModels.js.map +1 -0
- package/lib/features/canvas/influencer/influencerPipeline.js +170 -0
- package/lib/features/canvas/influencer/influencerPipeline.js.map +1 -0
- package/lib/features/canvas/influencer/productReel.js +72 -0
- package/lib/features/canvas/influencer/productReel.js.map +1 -0
- package/lib/features/canvas/influencer/reelPlan.js +159 -0
- package/lib/features/canvas/influencer/reelPlan.js.map +1 -0
- package/lib/features/canvas/moodboardCore.js +13 -0
- package/lib/features/canvas/moodboardCore.js.map +1 -0
- package/lib/features/canvas/promoProjectImport.js +99 -0
- package/lib/features/canvas/promoProjectImport.js.map +1 -0
- package/lib/features/canvas/promoVideo.js +312 -0
- package/lib/features/canvas/promoVideo.js.map +1 -0
- package/lib/features/canvas/recorder/CameraRecorderExperience.js +109 -0
- package/lib/features/canvas/recorder/CameraRecorderExperience.js.map +1 -0
- package/lib/features/canvas/sessionIdentity.js +28 -1
- package/lib/features/canvas/sessionIdentity.js.map +1 -1
- package/lib/features/canvas/set/SetViewportWebView.js +133 -0
- package/lib/features/canvas/set/SetViewportWebView.js.map +1 -0
- package/lib/features/canvas/set/cameraPath.js +194 -0
- package/lib/features/canvas/set/cameraPath.js.map +1 -0
- package/lib/features/canvas/set/setProject.js +24 -0
- package/lib/features/canvas/set/setProject.js.map +1 -0
- package/lib/features/canvas/storageLibrary.js +184 -0
- package/lib/features/canvas/storageLibrary.js.map +1 -0
- package/lib/features/canvas/studioCatalog.js +129 -0
- package/lib/features/canvas/studioCatalog.js.map +1 -0
- package/lib/features/canvas/studioLooks.js +189 -0
- package/lib/features/canvas/studioLooks.js.map +1 -0
- package/lib/features/canvas/surfaceIndex.js +63 -1
- package/lib/features/canvas/surfaceIndex.js.map +1 -1
- package/lib/features/canvas/templateImport/invideoNative.js +221 -0
- package/lib/features/canvas/templateImport/invideoNative.js.map +1 -0
- package/lib/features/canvas/templateImport/loadTemplate.js +43 -0
- package/lib/features/canvas/templateImport/loadTemplate.js.map +1 -0
- package/lib/features/canvas/templateImport/renderConfig.js +93 -0
- package/lib/features/canvas/templateImport/renderConfig.js.map +1 -0
- package/lib/features/canvas/useStudioCatalogTemplates.js +134 -0
- package/lib/features/canvas/useStudioCatalogTemplates.js.map +1 -0
- package/lib/features/canvas/video3d.js +109 -0
- package/lib/features/canvas/video3d.js.map +1 -0
- package/lib/features/canvas/videoClips.js +42 -0
- package/lib/features/canvas/videoClips.js.map +1 -0
- package/lib/features/canvas/videoEditor/agent/AgentCutPane.js +120 -0
- package/lib/features/canvas/videoEditor/agent/AgentCutPane.js.map +1 -0
- package/lib/features/canvas/videoEditor/agent/agentLoop.js +69 -0
- package/lib/features/canvas/videoEditor/agent/agentLoop.js.map +1 -0
- package/lib/features/canvas/videoEditor/agent/brainClient.js +45 -0
- package/lib/features/canvas/videoEditor/agent/brainClient.js.map +1 -0
- package/lib/features/canvas/videoEditor/agent/cutTools.js +129 -0
- package/lib/features/canvas/videoEditor/agent/cutTools.js.map +1 -0
- package/lib/features/canvas/videoEditor/editorModel.js +346 -0
- package/lib/features/canvas/videoEditor/editorModel.js.map +1 -0
- package/lib/features/canvas/videoEditor/exportRenderer.js +214 -0
- package/lib/features/canvas/videoEditor/exportRenderer.js.map +1 -0
- package/lib/features/canvas/videoEditor/filters.js +41 -0
- package/lib/features/canvas/videoEditor/filters.js.map +1 -0
- package/lib/features/canvas/videoEditor/mediaActions.js +57 -0
- package/lib/features/canvas/videoEditor/mediaActions.js.map +1 -0
- package/lib/features/canvas/videoEditor/remoteMediaClient.js +129 -0
- package/lib/features/canvas/videoEditor/remoteMediaClient.js.map +1 -0
- package/lib/features/canvas/videoEditor/solidColorPng.js +115 -0
- package/lib/features/canvas/videoEditor/solidColorPng.js.map +1 -0
- package/lib/features/canvas/videoEditor/videoEditOps.js +191 -0
- package/lib/features/canvas/videoEditor/videoEditOps.js.map +1 -0
- package/lib/features/canvas/videoEditor/videoProjectsStore.js +82 -0
- package/lib/features/canvas/videoEditor/videoProjectsStore.js.map +1 -0
- package/lib/features/canvas/videoRenderer.js +8 -0
- package/lib/features/canvas/videoRenderer.js.map +1 -0
- package/lib/features/canvas/withRemoteSafeArea.js +2 -2
- package/lib/features/canvas/withRemoteSafeArea.js.map +1 -1
- package/lib/features/characters/characterStudioProps.js +14 -0
- package/lib/features/characters/characterStudioProps.js.map +1 -0
- package/lib/features/chat/ChatCodeBlock.js +7 -3
- package/lib/features/chat/ChatCodeBlock.js.map +1 -1
- package/lib/features/chat/ChatTranscript.js +7 -3
- package/lib/features/chat/ChatTranscript.js.map +1 -1
- package/lib/features/chat/ChatWidgetCard.js +13 -0
- package/lib/features/chat/ChatWidgetCard.js.map +1 -0
- package/lib/features/chat/ConnectorConnectCard.js +164 -0
- package/lib/features/chat/ConnectorConnectCard.js.map +1 -0
- package/lib/features/chat/ConnectorConnectPrompt.js +254 -0
- package/lib/features/chat/ConnectorConnectPrompt.js.map +1 -0
- package/lib/features/chat/MessageActionBar.js.map +1 -1
- package/lib/features/chat/QueuedFollowUps.js +71 -0
- package/lib/features/chat/QueuedFollowUps.js.map +1 -0
- package/lib/features/chat/chatWidgets.js +37 -0
- package/lib/features/chat/chatWidgets.js.map +1 -0
- package/lib/features/chat/connectorConnect.js +179 -0
- package/lib/features/chat/connectorConnect.js.map +1 -0
- package/lib/features/chat/connectorConnectHandbacks.js +55 -0
- package/lib/features/chat/connectorConnectHandbacks.js.map +1 -0
- package/lib/features/design/DesignEditorExperience.js +643 -0
- package/lib/features/design/DesignEditorExperience.js.map +1 -0
- package/lib/features/design/DesignExperience.js +444 -0
- package/lib/features/design/DesignExperience.js.map +1 -0
- package/lib/features/design/designCore.js +298 -0
- package/lib/features/design/designCore.js.map +1 -0
- package/lib/features/design/designIndex.js +150 -0
- package/lib/features/design/designIndex.js.map +1 -0
- package/lib/features/design/exportDesign.js +133 -0
- package/lib/features/design/exportDesign.js.map +1 -0
- package/lib/features/job-search/ApplicationsPanel.js +907 -0
- package/lib/features/job-search/ApplicationsPanel.js.map +1 -0
- package/lib/features/job-search/ContactsPanel.js +627 -0
- package/lib/features/job-search/ContactsPanel.js.map +1 -0
- package/lib/features/job-search/InsightsPanel.js +299 -0
- package/lib/features/job-search/InsightsPanel.js.map +1 -0
- package/lib/features/job-search/InterviewPanel.js +637 -0
- package/lib/features/job-search/InterviewPanel.js.map +1 -0
- package/lib/features/job-search/JdPastePrompt.js +130 -0
- package/lib/features/job-search/JdPastePrompt.js.map +1 -0
- package/lib/features/job-search/JobCard.js +199 -0
- package/lib/features/job-search/JobCard.js.map +1 -0
- package/lib/features/job-search/JobDetailSheet.js +255 -0
- package/lib/features/job-search/JobDetailSheet.js.map +1 -0
- package/lib/features/job-search/JobSearchAgentChatPane.js +377 -0
- package/lib/features/job-search/JobSearchAgentChatPane.js.map +1 -0
- package/lib/features/job-search/JobSearchExperience.js +1324 -0
- package/lib/features/job-search/JobSearchExperience.js.map +1 -0
- package/lib/features/job-search/JobSearchLocationField.js +231 -0
- package/lib/features/job-search/JobSearchLocationField.js.map +1 -0
- package/lib/features/job-search/ProfilePanel.js +679 -0
- package/lib/features/job-search/ProfilePanel.js.map +1 -0
- package/lib/features/job-search/RepliesPanel.js +344 -0
- package/lib/features/job-search/RepliesPanel.js.map +1 -0
- package/lib/features/job-search/SavedPanel.js +297 -0
- package/lib/features/job-search/SavedPanel.js.map +1 -0
- package/lib/features/job-search/chat/widgetContent.js +29 -0
- package/lib/features/job-search/chat/widgetContent.js.map +1 -0
- package/lib/features/job-search/cvText.js +91 -0
- package/lib/features/job-search/cvText.js.map +1 -0
- package/lib/features/job-search/jobAgentSwipe.js +7 -0
- package/lib/features/job-search/jobAgentSwipe.js.map +1 -0
- package/lib/features/job-search/jobSearchClient.js +184 -0
- package/lib/features/job-search/jobSearchClient.js.map +1 -0
- package/lib/features/job-search/jobSearchExec.js +14 -0
- package/lib/features/job-search/jobSearchExec.js.map +1 -0
- package/lib/features/job-search/jobSearchRuntime.js +50 -0
- package/lib/features/job-search/jobSearchRuntime.js.map +1 -0
- package/lib/features/job-search/jobSearchTheme.js +44 -0
- package/lib/features/job-search/jobSearchTheme.js.map +1 -0
- package/lib/features/job-search/savedJobs.js +85 -0
- package/lib/features/job-search/savedJobs.js.map +1 -0
- package/lib/features/job-search/searchHistory.js +117 -0
- package/lib/features/job-search/searchHistory.js.map +1 -0
- package/lib/features/job-search/types.js +36 -0
- package/lib/features/job-search/types.js.map +1 -0
- package/lib/features/job-search/useJobSearchSession.js +558 -0
- package/lib/features/job-search/useJobSearchSession.js.map +1 -0
- package/lib/features/messaging/ChatComponents.js +529 -0
- package/lib/features/messaging/ChatComponents.js.map +1 -0
- package/lib/features/messaging/ChatInviteDeepLink.js +116 -0
- package/lib/features/messaging/ChatInviteDeepLink.js.map +1 -0
- package/lib/features/messaging/ContactsScreen.js +288 -0
- package/lib/features/messaging/ContactsScreen.js.map +1 -0
- package/lib/features/messaging/ConversationListScreen.js +147 -0
- package/lib/features/messaging/ConversationListScreen.js.map +1 -0
- package/lib/features/messaging/MessageActions.js +290 -0
- package/lib/features/messaging/MessageActions.js.map +1 -0
- package/lib/features/messaging/NativeChatExperience.js +189 -0
- package/lib/features/messaging/NativeChatExperience.js.map +1 -0
- package/lib/features/messaging/RegistrationScreen.js +11 -14
- package/lib/features/messaging/RegistrationScreen.js.map +1 -1
- package/lib/features/messaging/ThreadScreen.js +215 -0
- package/lib/features/messaging/ThreadScreen.js.map +1 -0
- package/lib/features/messaging/chatInviteLink.js +52 -0
- package/lib/features/messaging/chatInviteLink.js.map +1 -0
- package/lib/features/messaging/chatModel.js +278 -0
- package/lib/features/messaging/chatModel.js.map +1 -0
- package/lib/features/messaging/chatOperations.js +106 -1
- package/lib/features/messaging/chatOperations.js.map +1 -1
- package/lib/features/messaging/emojiCatalog.js +60 -0
- package/lib/features/messaging/emojiCatalog.js.map +1 -0
- package/lib/features/messaging/emojiKeywords.js +1592 -0
- package/lib/features/messaging/emojiKeywords.js.map +1 -0
- package/lib/features/messaging/nativeChatChannelQuery.js +27 -0
- package/lib/features/messaging/nativeChatChannelQuery.js.map +1 -0
- package/lib/features/messaging/phoneNumbers.js +52 -1
- package/lib/features/messaging/phoneNumbers.js.map +1 -1
- package/lib/features/messaging/sha256.js +68 -0
- package/lib/features/messaging/sha256.js.map +1 -0
- package/lib/features/messaging/useChatData.js +421 -0
- package/lib/features/messaging/useChatData.js.map +1 -0
- package/lib/features/messaging/useContactMatches.js +191 -0
- package/lib/features/messaging/useContactMatches.js.map +1 -0
- package/lib/features/messaging/usePhoneVerification.js +12 -12
- package/lib/features/messaging/usePhoneVerification.js.map +1 -1
- package/lib/features/messaging/yantraChatOrg.js +8 -3
- package/lib/features/messaging/yantraChatOrg.js.map +1 -1
- package/lib/features/resume/AnnotateModal.js +100 -0
- package/lib/features/resume/AnnotateModal.js.map +1 -0
- package/lib/features/resume/AnnotationBar.js +69 -0
- package/lib/features/resume/AnnotationBar.js.map +1 -0
- package/lib/features/resume/ExportSheet.js +105 -0
- package/lib/features/resume/ExportSheet.js.map +1 -0
- package/lib/features/resume/ResumeAgentChatPane.js +95 -0
- package/lib/features/resume/ResumeAgentChatPane.js.map +1 -0
- package/lib/features/resume/ResumeEditor.js +676 -0
- package/lib/features/resume/ResumeEditor.js.map +1 -0
- package/lib/features/resume/ResumeExperience.js +235 -0
- package/lib/features/resume/ResumeExperience.js.map +1 -0
- package/lib/features/resume/ResumeListPanel.js +262 -0
- package/lib/features/resume/ResumeListPanel.js.map +1 -0
- package/lib/features/resume/ResumeToolbar.js +236 -0
- package/lib/features/resume/ResumeToolbar.js.map +1 -0
- package/lib/features/resume/annotations.js +17 -0
- package/lib/features/resume/annotations.js.map +1 -0
- package/lib/features/resume/documentCss.js +52 -0
- package/lib/features/resume/documentCss.js.map +1 -0
- package/lib/features/resume/draft.js +89 -0
- package/lib/features/resume/draft.js.map +1 -0
- package/lib/features/resume/exportResume.js +43 -0
- package/lib/features/resume/exportResume.js.map +1 -0
- package/lib/features/resume/pickResumePhoto.js +22 -0
- package/lib/features/resume/pickResumePhoto.js.map +1 -0
- package/lib/features/resume/renderResume.js +121 -0
- package/lib/features/resume/renderResume.js.map +1 -0
- package/lib/features/resume/resumeClient.js +69 -0
- package/lib/features/resume/resumeClient.js.map +1 -0
- package/lib/features/resume/resumeExec.js +14 -0
- package/lib/features/resume/resumeExec.js.map +1 -0
- package/lib/features/resume/resumeIndex.js +244 -0
- package/lib/features/resume/resumeIndex.js.map +1 -0
- package/lib/features/resume/resumeRuntime.js +50 -0
- package/lib/features/resume/resumeRuntime.js.map +1 -0
- package/lib/features/resume/resumeTheme.js +34 -0
- package/lib/features/resume/resumeTheme.js.map +1 -0
- package/lib/features/resume/resumeToolbox.js +49 -0
- package/lib/features/resume/resumeToolbox.js.map +1 -0
- package/lib/features/resume/templates.js +90 -0
- package/lib/features/resume/templates.js.map +1 -0
- package/lib/features/resume/types.js +10 -0
- package/lib/features/resume/types.js.map +1 -0
- package/lib/features/resume/useResumeSession.js +183 -0
- package/lib/features/resume/useResumeSession.js.map +1 -0
- package/lib/features/shopping/DealsPanel.js +254 -0
- package/lib/features/shopping/DealsPanel.js.map +1 -0
- package/lib/features/shopping/HistoryPanel.js +147 -0
- package/lib/features/shopping/HistoryPanel.js.map +1 -0
- package/lib/features/shopping/OrdersPanel.js +157 -0
- package/lib/features/shopping/OrdersPanel.js.map +1 -0
- package/lib/features/shopping/ProductCard.js +326 -0
- package/lib/features/shopping/ProductCard.js.map +1 -0
- package/lib/features/shopping/ProductDetailSheet.js +313 -0
- package/lib/features/shopping/ProductDetailSheet.js.map +1 -0
- package/lib/features/shopping/ProductFilterBar.js +153 -0
- package/lib/features/shopping/ProductFilterBar.js.map +1 -0
- package/lib/features/shopping/ProductPhoto.js +27 -0
- package/lib/features/shopping/ProductPhoto.js.map +1 -0
- package/lib/features/shopping/SavedPanel.js +139 -0
- package/lib/features/shopping/SavedPanel.js.map +1 -0
- package/lib/features/shopping/ShoppingAgentChatPane.js +436 -0
- package/lib/features/shopping/ShoppingAgentChatPane.js.map +1 -0
- package/lib/features/shopping/ShoppingExperience.js +888 -0
- package/lib/features/shopping/ShoppingExperience.js.map +1 -0
- package/lib/features/shopping/TrendingSections.js +199 -0
- package/lib/features/shopping/TrendingSections.js.map +1 -0
- package/lib/features/shopping/WatchlistPanel.js +148 -0
- package/lib/features/shopping/WatchlistPanel.js.map +1 -0
- package/lib/features/shopping/catalog.js +238 -0
- package/lib/features/shopping/catalog.js.map +1 -0
- package/lib/features/shopping/chat/ShoppingChatResultCard.js +175 -0
- package/lib/features/shopping/chat/ShoppingChatResultCard.js.map +1 -0
- package/lib/features/shopping/chat/streamAssistantReply.js +34 -0
- package/lib/features/shopping/chat/streamAssistantReply.js.map +1 -0
- package/lib/features/shopping/chat/widgetContent.js +233 -0
- package/lib/features/shopping/chat/widgetContent.js.map +1 -0
- package/lib/features/shopping/hooks/useTrendingProducts.js +162 -0
- package/lib/features/shopping/hooks/useTrendingProducts.js.map +1 -0
- package/lib/features/shopping/productImage.js +42 -0
- package/lib/features/shopping/productImage.js.map +1 -0
- package/lib/features/shopping/savedProducts.js +84 -0
- package/lib/features/shopping/savedProducts.js.map +1 -0
- package/lib/features/shopping/services/catalogActions.js +166 -0
- package/lib/features/shopping/services/catalogActions.js.map +1 -0
- package/lib/features/shopping/services/parsePriceCheckIntent.js +58 -0
- package/lib/features/shopping/services/parsePriceCheckIntent.js.map +1 -0
- package/lib/features/shopping/services/parseShoppingIntent.js +67 -0
- package/lib/features/shopping/services/parseShoppingIntent.js.map +1 -0
- package/lib/features/shopping/services/productAvailability.js +25 -0
- package/lib/features/shopping/services/productAvailability.js.map +1 -0
- package/lib/features/shopping/services/productFilters.js +72 -0
- package/lib/features/shopping/services/productFilters.js.map +1 -0
- package/lib/features/shopping/services/retailerUrl.js +75 -0
- package/lib/features/shopping/services/retailerUrl.js.map +1 -0
- package/lib/features/shopping/services/shoppingChatReply.js +46 -0
- package/lib/features/shopping/services/shoppingChatReply.js.map +1 -0
- package/lib/features/shopping/services/shoppingProductSearch.js +336 -0
- package/lib/features/shopping/services/shoppingProductSearch.js.map +1 -0
- package/lib/features/shopping/services/shoppingSearchConnectorClient.js +41 -0
- package/lib/features/shopping/services/shoppingSearchConnectorClient.js.map +1 -0
- package/lib/features/shopping/shopAgentSwipe.js +7 -0
- package/lib/features/shopping/shopAgentSwipe.js.map +1 -0
- package/lib/features/shopping/shoppingCart.js +116 -0
- package/lib/features/shopping/shoppingCart.js.map +1 -0
- package/lib/features/shopping/shoppingExec.js +14 -0
- package/lib/features/shopping/shoppingExec.js.map +1 -0
- package/lib/features/shopping/shoppingHistoryStore.js +176 -0
- package/lib/features/shopping/shoppingHistoryStore.js.map +1 -0
- package/lib/features/shopping/shoppingRuntime.js +63 -0
- package/lib/features/shopping/shoppingRuntime.js.map +1 -0
- package/lib/features/shopping/timeAgo.js +14 -0
- package/lib/features/shopping/timeAgo.js.map +1 -0
- package/lib/features/shopping/useShoppingSearch.js +262 -0
- package/lib/features/shopping/useShoppingSearch.js.map +1 -0
- package/lib/features/travel/BookHeaderGlow.js +48 -0
- package/lib/features/travel/BookHeaderGlow.js.map +1 -0
- package/lib/features/travel/BookingsPanel.js +29 -0
- package/lib/features/travel/BookingsPanel.js.map +1 -0
- package/lib/features/travel/DiscoverPanel.js +155 -0
- package/lib/features/travel/DiscoverPanel.js.map +1 -0
- package/lib/features/travel/FlightCompareBar.js +86 -0
- package/lib/features/travel/FlightCompareBar.js.map +1 -0
- package/lib/features/travel/FlightDealsBoard.js +100 -0
- package/lib/features/travel/FlightDealsBoard.js.map +1 -0
- package/lib/features/travel/HistoryPanel.js +82 -0
- package/lib/features/travel/HistoryPanel.js.map +1 -0
- package/lib/features/travel/PopularDestinations.js +144 -0
- package/lib/features/travel/PopularDestinations.js.map +1 -0
- package/lib/features/travel/SavedPanel.js +27 -0
- package/lib/features/travel/SavedPanel.js.map +1 -0
- package/lib/features/travel/TravelAgentChatPane.js +303 -0
- package/lib/features/travel/TravelAgentChatPane.js.map +1 -0
- package/lib/features/travel/TravelBookHero.js +425 -0
- package/lib/features/travel/TravelBookHero.js.map +1 -0
- package/lib/features/travel/TravelDatesField.js +234 -0
- package/lib/features/travel/TravelDatesField.js.map +1 -0
- package/lib/features/travel/TravelDetailSheet.js +106 -0
- package/lib/features/travel/TravelDetailSheet.js.map +1 -0
- package/lib/features/travel/TravelExperience.js +624 -0
- package/lib/features/travel/TravelExperience.js.map +1 -0
- package/lib/features/travel/TravelGuestsField.js +85 -0
- package/lib/features/travel/TravelGuestsField.js.map +1 -0
- package/lib/features/travel/TravelLanding.js +318 -0
- package/lib/features/travel/TravelLanding.js.map +1 -0
- package/lib/features/travel/TravelLocationField.js +179 -0
- package/lib/features/travel/TravelLocationField.js.map +1 -0
- package/lib/features/travel/TravelPropertyCard.js +266 -0
- package/lib/features/travel/TravelPropertyCard.js.map +1 -0
- package/lib/features/travel/TravelPropertyPhoto.js +22 -0
- package/lib/features/travel/TravelPropertyPhoto.js.map +1 -0
- package/lib/features/travel/TravelRailFlyout.js +79 -0
- package/lib/features/travel/TravelRailFlyout.js.map +1 -0
- package/lib/features/travel/TravelResultsMap.js +126 -0
- package/lib/features/travel/TravelResultsMap.js.map +1 -0
- package/lib/features/travel/WorkspacePanel.js +148 -0
- package/lib/features/travel/WorkspacePanel.js.map +1 -0
- package/lib/features/travel/appNav.js +244 -0
- package/lib/features/travel/appNav.js.map +1 -0
- package/lib/features/travel/calendarDays.js +50 -0
- package/lib/features/travel/calendarDays.js.map +1 -0
- package/lib/features/travel/catalog.js +72 -0
- package/lib/features/travel/catalog.js.map +1 -0
- package/lib/features/travel/chat/TravelChatResultCard.js +107 -0
- package/lib/features/travel/chat/TravelChatResultCard.js.map +1 -0
- package/lib/features/travel/chat/widgetContent.js +107 -0
- package/lib/features/travel/chat/widgetContent.js.map +1 -0
- package/lib/features/travel/flightDeals.js +65 -0
- package/lib/features/travel/flightDeals.js.map +1 -0
- package/lib/features/travel/mapCoordinates.js +36 -0
- package/lib/features/travel/mapCoordinates.js.map +1 -0
- package/lib/features/travel/parseTravelIntent.js +303 -0
- package/lib/features/travel/parseTravelIntent.js.map +1 -0
- package/lib/features/travel/savedStays.js +66 -0
- package/lib/features/travel/savedStays.js.map +1 -0
- package/lib/features/travel/services/flightDealsBoard.js +111 -0
- package/lib/features/travel/services/flightDealsBoard.js.map +1 -0
- package/lib/features/travel/services/flightSearchConnectorClient.js +42 -0
- package/lib/features/travel/services/flightSearchConnectorClient.js.map +1 -0
- package/lib/features/travel/services/geocodeLocation.js +79 -0
- package/lib/features/travel/services/geocodeLocation.js.map +1 -0
- package/lib/features/travel/services/placePredictions.js +113 -0
- package/lib/features/travel/services/placePredictions.js.map +1 -0
- package/lib/features/travel/services/resolveOriginCity.js +27 -0
- package/lib/features/travel/services/resolveOriginCity.js.map +1 -0
- package/lib/features/travel/services/resortifiConnectorClient.js +76 -0
- package/lib/features/travel/services/resortifiConnectorClient.js.map +1 -0
- package/lib/features/travel/services/travelFlightSearch.js +289 -0
- package/lib/features/travel/services/travelFlightSearch.js.map +1 -0
- package/lib/features/travel/services/travelPropertySearch.js +377 -0
- package/lib/features/travel/services/travelPropertySearch.js.map +1 -0
- package/lib/features/travel/travelAgentSwipe.js +7 -0
- package/lib/features/travel/travelAgentSwipe.js.map +1 -0
- package/lib/features/travel/travelExec.js +14 -0
- package/lib/features/travel/travelExec.js.map +1 -0
- package/lib/features/travel/travelHistoryStore.js +108 -0
- package/lib/features/travel/travelHistoryStore.js.map +1 -0
- package/lib/features/travel/travelRuntime.js +62 -0
- package/lib/features/travel/travelRuntime.js.map +1 -0
- package/lib/features/travel/types.js +9 -0
- package/lib/features/travel/types.js.map +1 -0
- package/lib/features/travel/useTravelSearch.js +330 -0
- package/lib/features/travel/useTravelSearch.js.map +1 -0
- package/lib/features/travel/workspaceContent.js +548 -0
- package/lib/features/travel/workspaceContent.js.map +1 -0
- package/lib/hooks/useCdecliChannel.js +128 -6
- package/lib/hooks/useCdecliChannel.js.map +1 -1
- package/lib/hooks/useChatApi.js +4 -2
- package/lib/hooks/useChatApi.js.map +1 -1
- package/lib/hooks/useChatStream.js +77 -63
- package/lib/hooks/useChatStream.js.map +1 -1
- package/lib/hooks/useHostConnectorCard.js +24 -0
- package/lib/hooks/useHostConnectorCard.js.map +1 -0
- package/lib/hooks/useObtainSystemToken.js +23 -5
- package/lib/hooks/useObtainSystemToken.js.map +1 -1
- package/lib/hooks/webViewRetentionPolicy.js +1 -0
- package/lib/hooks/webViewRetentionPolicy.js.map +1 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/screens/Chat/index.js +51 -22
- package/lib/screens/Chat/index.js.map +1 -1
- package/lib/screens/ChatNative/index.js +13 -2
- package/lib/screens/ChatNative/index.js.map +1 -1
- package/lib/screens/Home/HomeScreen.js +3 -3
- package/lib/screens/Home/HomeScreen.js.map +1 -1
- package/lib/screens/Home/components/ChatHistoryLanding.js +32 -32
- package/lib/screens/Home/components/ChatHistoryLanding.js.map +1 -1
- package/lib/screens/JobSearchNative/useJobSearchHostChat.js +12 -6
- package/lib/screens/JobSearchNative/useJobSearchHostChat.js.map +1 -1
- package/lib/screens/ResumeNative/useResumeHostChat.js +12 -6
- package/lib/screens/ResumeNative/useResumeHostChat.js.map +1 -1
- package/lib/screens/ShoppingNative/useShoppingHostChat.js +12 -6
- package/lib/screens/ShoppingNative/useShoppingHostChat.js.map +1 -1
- package/lib/screens/TravelNative/useTravelHostChat.js +12 -6
- package/lib/screens/TravelNative/useTravelHostChat.js.map +1 -1
- package/lib/screens/WebBuilder/WebViewWithNavigation.js +2 -2
- package/lib/screens/WebBuilder/WebViewWithNavigation.js.map +1 -1
- package/lib/services/brainQuickReply.js +38 -1
- package/lib/services/brainQuickReply.js.map +1 -1
- package/lib/state/chatThreadMerge.js +6 -1
- package/lib/state/chatThreadMerge.js.map +1 -1
- package/package.json +6 -4
|
@@ -0,0 +1,888 @@
|
|
|
1
|
+
import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {useEffect,useRef,useState,useMemo,useCallback}from'react';import {StyleSheet,useColorScheme,PanResponder,View,Text,ActivityIndicator,Pressable,ScrollView,TextInput,Modal,Linking}from'react-native';import {useFocusEffect}from'@react-navigation/native';import {MaterialCommunityIcons}from'@expo/vector-icons';import {useSafeInsets}from'../canvas/withRemoteSafeArea.js';import {SOURCE_ORDER,productSource,DEPARTMENTS,SOURCE_LABELS,PRODUCT_SOURCES,SOURCE_SECTION,formatPrice}from'./catalog.js';import {hydrateCart,useCart,setQty,removeFromCart,clearCart}from'./shoppingCart.js';import {createShoppingExec}from'./shoppingExec.js';import {setShoppingRuntime}from'./shoppingRuntime.js';import {useShoppingSearch}from'./useShoppingSearch.js';import {ProductPhoto}from'./ProductPhoto.js';import {ProductDetailSheet}from'./ProductDetailSheet.js';import {ProductCard}from'./ProductCard.js';import {ProductFilterBar}from'./ProductFilterBar.js';import {DealsPanel}from'./DealsPanel.js';import {TrendingSections}from'./TrendingSections.js';import {DEFAULT_PRODUCT_FILTERS,applyProductFilters}from'./services/productFilters.js';import {WatchlistPanel}from'./WatchlistPanel.js';import {SavedPanel}from'./SavedPanel.js';import {HistoryPanel}from'./HistoryPanel.js';import {OrdersPanel}from'./OrdersPanel.js';import {hydrateSaved}from'./savedProducts.js';import {hydrateShoppingHistory,recordProductView,recordOrder}from'./shoppingHistoryStore.js';import {ShoppingAgentChatPane}from'./ShoppingAgentChatPane.js';import {shouldClaimOpenAgentMove,isOpenAgentSwipe}from'./shopAgentSwipe.js';var __defProp = Object.defineProperty;
|
|
2
|
+
var __defProps = Object.defineProperties;
|
|
3
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __spreadValues = (a, b) => {
|
|
9
|
+
for (var prop in b || (b = {}))
|
|
10
|
+
if (__hasOwnProp.call(b, prop))
|
|
11
|
+
__defNormalProp(a, prop, b[prop]);
|
|
12
|
+
if (__getOwnPropSymbols)
|
|
13
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
+
if (__propIsEnum.call(b, prop))
|
|
15
|
+
__defNormalProp(a, prop, b[prop]);
|
|
16
|
+
}
|
|
17
|
+
return a;
|
|
18
|
+
};
|
|
19
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
+
const TABS = [{
|
|
21
|
+
id: "shop",
|
|
22
|
+
label: "Shop",
|
|
23
|
+
icon: "magnify"
|
|
24
|
+
}, {
|
|
25
|
+
id: "deals",
|
|
26
|
+
label: "Deals",
|
|
27
|
+
icon: "tag-outline"
|
|
28
|
+
}, {
|
|
29
|
+
id: "watchlist",
|
|
30
|
+
label: "Watchlist",
|
|
31
|
+
icon: "bell-outline"
|
|
32
|
+
}, {
|
|
33
|
+
id: "saved",
|
|
34
|
+
label: "Saved",
|
|
35
|
+
icon: "heart-outline"
|
|
36
|
+
}, {
|
|
37
|
+
id: "history",
|
|
38
|
+
label: "History",
|
|
39
|
+
icon: "history"
|
|
40
|
+
}, {
|
|
41
|
+
id: "orders",
|
|
42
|
+
label: "Purchases",
|
|
43
|
+
icon: "package-variant-closed"
|
|
44
|
+
}];
|
|
45
|
+
function ShoppingExperience({
|
|
46
|
+
token,
|
|
47
|
+
indexUrl,
|
|
48
|
+
sessionError,
|
|
49
|
+
hostChat,
|
|
50
|
+
onAgentVisibleChange,
|
|
51
|
+
initialAgentSeed = null
|
|
52
|
+
}) {
|
|
53
|
+
var _a;
|
|
54
|
+
const isDark = useColorScheme() === "dark";
|
|
55
|
+
const ink = isDark ? "#f8fafc" : "#0f172a";
|
|
56
|
+
const muted = isDark ? "#94a3b8" : "#64748b";
|
|
57
|
+
const screen = isDark ? "#0f172a" : "#f4f6f9";
|
|
58
|
+
const card = isDark ? "#111827" : "#ffffff";
|
|
59
|
+
const border = isDark ? "rgba(148,163,184,0.22)" : "#e8ecf1";
|
|
60
|
+
useEffect(() => {
|
|
61
|
+
void hydrateCart();
|
|
62
|
+
void hydrateSaved();
|
|
63
|
+
void hydrateShoppingHistory();
|
|
64
|
+
}, []);
|
|
65
|
+
const shoppingRuntimeKeyRef = useRef(null);
|
|
66
|
+
const shoppingRuntimeKey = token ? `${token}::${indexUrl}` : null;
|
|
67
|
+
if (shoppingRuntimeKey && shoppingRuntimeKeyRef.current !== shoppingRuntimeKey) {
|
|
68
|
+
shoppingRuntimeKeyRef.current = shoppingRuntimeKey;
|
|
69
|
+
setShoppingRuntime({
|
|
70
|
+
exec: createShoppingExec(token, indexUrl),
|
|
71
|
+
config: {
|
|
72
|
+
shoppingSearch: {
|
|
73
|
+
catalogEnabled: true
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
const insets = useSafeInsets();
|
|
79
|
+
const searchState = useShoppingSearch();
|
|
80
|
+
const cart = useCart();
|
|
81
|
+
const [query, setQuery] = useState("");
|
|
82
|
+
const [activeDept, setActiveDept] = useState(null);
|
|
83
|
+
const [cartOpen, setCartOpen] = useState(false);
|
|
84
|
+
const [detail, setDetail] = useState(null);
|
|
85
|
+
const [view, setView] = useState("shop");
|
|
86
|
+
const [chatOpen, setChatOpen] = useState(Boolean(initialAgentSeed));
|
|
87
|
+
const [filters, setFilters] = useState(DEFAULT_PRODUCT_FILTERS);
|
|
88
|
+
const chatOpenRef = useRef(chatOpen);
|
|
89
|
+
chatOpenRef.current = chatOpen;
|
|
90
|
+
const shopSwipeBlockedRef = useRef(false);
|
|
91
|
+
shopSwipeBlockedRef.current = Boolean(cartOpen || detail);
|
|
92
|
+
const shopSwipe = useMemo(() => PanResponder.create({
|
|
93
|
+
onMoveShouldSetPanResponder: (_e, g) => !chatOpenRef.current && !shopSwipeBlockedRef.current && shouldClaimOpenAgentMove(g),
|
|
94
|
+
onPanResponderRelease: (_e, g) => {
|
|
95
|
+
if (!chatOpenRef.current && !shopSwipeBlockedRef.current && isOpenAgentSwipe(g)) {
|
|
96
|
+
setChatOpen(true);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}), []);
|
|
100
|
+
useFocusEffect(useCallback(() => {
|
|
101
|
+
return () => {
|
|
102
|
+
setCartOpen(false);
|
|
103
|
+
setDetail(null);
|
|
104
|
+
setChatOpen(false);
|
|
105
|
+
};
|
|
106
|
+
}, []));
|
|
107
|
+
useEffect(() => {
|
|
108
|
+
onAgentVisibleChange == null ? void 0 : onAgentVisibleChange(chatOpen);
|
|
109
|
+
}, [chatOpen, onAgentVisibleChange]);
|
|
110
|
+
useEffect(() => {
|
|
111
|
+
if (searchState.lastQuery) setQuery(searchState.lastQuery);
|
|
112
|
+
}, [searchState.lastQuery]);
|
|
113
|
+
const runSearchNow = (nextQuery = query, dept = activeDept) => {
|
|
114
|
+
if (!nextQuery.trim() && !dept) return;
|
|
115
|
+
if (nextQuery.trim()) setChatOpen(true);
|
|
116
|
+
searchState.search(nextQuery, dept, searchState.lastBudget);
|
|
117
|
+
};
|
|
118
|
+
const handleDepartmentSelect = (deptId) => {
|
|
119
|
+
setActiveDept(deptId);
|
|
120
|
+
if (view === "shop" && !searchState.hasSearched && !searchState.isLoading) return;
|
|
121
|
+
if (query.trim() || deptId) {
|
|
122
|
+
searchState.search(query, deptId, searchState.lastBudget);
|
|
123
|
+
}
|
|
124
|
+
};
|
|
125
|
+
const selectTrendingDepartment = (departmentId) => {
|
|
126
|
+
setActiveDept(departmentId);
|
|
127
|
+
};
|
|
128
|
+
const backToLanding = () => {
|
|
129
|
+
searchState.clearSearch();
|
|
130
|
+
setQuery("");
|
|
131
|
+
setActiveDept(null);
|
|
132
|
+
setFilters(DEFAULT_PRODUCT_FILTERS);
|
|
133
|
+
};
|
|
134
|
+
const openDetails = useCallback((product) => {
|
|
135
|
+
setDetail(product);
|
|
136
|
+
recordProductView(product);
|
|
137
|
+
}, []);
|
|
138
|
+
const rerunSearch = useCallback((entry) => {
|
|
139
|
+
var _a2;
|
|
140
|
+
const dept = (_a2 = entry.departmentId) != null ? _a2 : null;
|
|
141
|
+
setView("shop");
|
|
142
|
+
setQuery(entry.query);
|
|
143
|
+
setActiveDept(dept);
|
|
144
|
+
searchState.search(entry.query, dept, entry.budget);
|
|
145
|
+
}, [searchState]);
|
|
146
|
+
const filteredProducts = useMemo(() => applyProductFilters(searchState.products, filters), [searchState.products, filters]);
|
|
147
|
+
const productsBySource = useMemo(() => SOURCE_ORDER.map((source) => ({
|
|
148
|
+
source,
|
|
149
|
+
products: filteredProducts.filter((p) => productSource(p) === source)
|
|
150
|
+
})).filter((row) => row.products.length > 0), [filteredProducts]);
|
|
151
|
+
const resultLabel = query.trim() || (activeDept ? (_a = DEPARTMENTS.find((d) => d.id === activeDept)) == null ? void 0 : _a.title : "") || "";
|
|
152
|
+
const sourceCountSummary = productsBySource.map(({
|
|
153
|
+
source,
|
|
154
|
+
products
|
|
155
|
+
}) => `${products.length} ${SOURCE_LABELS[source]}`).join(" \xB7 ");
|
|
156
|
+
const showLanding = view === "shop" && !searchState.hasSearched && !searchState.isLoading;
|
|
157
|
+
const showResults = view === "shop" && (searchState.hasSearched || searchState.isLoading);
|
|
158
|
+
if (sessionError) {
|
|
159
|
+
return /* @__PURE__ */ jsx(View, { style: [styles.fill, {
|
|
160
|
+
backgroundColor: screen
|
|
161
|
+
}], children: /* @__PURE__ */ jsxs(View, { style: styles.center, children: [
|
|
162
|
+
/* @__PURE__ */ jsx(Text, { style: [styles.title, {
|
|
163
|
+
color: ink
|
|
164
|
+
}], children: "Shop unavailable" }),
|
|
165
|
+
/* @__PURE__ */ jsx(Text, { style: [styles.detail, {
|
|
166
|
+
color: muted
|
|
167
|
+
}], children: sessionError })
|
|
168
|
+
] }) });
|
|
169
|
+
}
|
|
170
|
+
if (!token) {
|
|
171
|
+
return /* @__PURE__ */ jsx(View, { style: [styles.fill, {
|
|
172
|
+
backgroundColor: screen,
|
|
173
|
+
alignItems: "center",
|
|
174
|
+
justifyContent: "center"
|
|
175
|
+
}], children: /* @__PURE__ */ jsx(ActivityIndicator, {}) });
|
|
176
|
+
}
|
|
177
|
+
const checkoutUrls = [...new Set(cart.lines.map(({
|
|
178
|
+
product
|
|
179
|
+
}) => {
|
|
180
|
+
var _a2;
|
|
181
|
+
return (_a2 = product.url) == null ? void 0 : _a2.trim();
|
|
182
|
+
}).filter((url) => Boolean(url)))];
|
|
183
|
+
const panelTheme = {
|
|
184
|
+
isDark,
|
|
185
|
+
card,
|
|
186
|
+
border,
|
|
187
|
+
ink,
|
|
188
|
+
muted
|
|
189
|
+
};
|
|
190
|
+
return /* @__PURE__ */ jsxs(View, { style: [styles.fill, {
|
|
191
|
+
backgroundColor: screen
|
|
192
|
+
}], testID: "shopping-panel", children: [
|
|
193
|
+
/* @__PURE__ */ jsxs(View, { style: styles.header, children: [
|
|
194
|
+
/* @__PURE__ */ jsxs(View, { style: styles.brandRow, children: [
|
|
195
|
+
/* @__PURE__ */ jsx(Text, { style: styles.brandShop, children: "Shop" }),
|
|
196
|
+
/* @__PURE__ */ jsx(Text, { style: styles.brandDot, children: "." }),
|
|
197
|
+
/* @__PURE__ */ jsx(Text, { style: styles.brandYantra, children: "Yantra" }),
|
|
198
|
+
/* @__PURE__ */ jsxs(Pressable, { onPress: () => setChatOpen(true), accessibilityRole: "button", accessibilityLabel: "Open shopping agent", style: styles.agentBtn, children: [
|
|
199
|
+
/* @__PURE__ */ jsx(MaterialCommunityIcons, { name: "creation", size: 16, color: "#fff" }),
|
|
200
|
+
/* @__PURE__ */ jsx(Text, { style: styles.agentBtnLabel, children: "Agent" })
|
|
201
|
+
] }),
|
|
202
|
+
/* @__PURE__ */ jsxs(Pressable, { onPress: () => setCartOpen(true), accessibilityRole: "button", accessibilityLabel: cart.count > 0 ? `Open cart, ${cart.count} items` : "Open cart", style: styles.cartBtn, children: [
|
|
203
|
+
/* @__PURE__ */ jsx(MaterialCommunityIcons, { name: "cart-outline", size: 18, color: "#fff" }),
|
|
204
|
+
/* @__PURE__ */ jsx(Text, { style: styles.cartBtnLabel, children: "Cart" }),
|
|
205
|
+
cart.count > 0 ? /* @__PURE__ */ jsx(Text, { style: styles.cartBadge, children: cart.count }) : null
|
|
206
|
+
] })
|
|
207
|
+
] }),
|
|
208
|
+
/* @__PURE__ */ jsx(ScrollView, { horizontal: true, showsHorizontalScrollIndicator: false, contentContainerStyle: styles.tabRow, accessibilityRole: "tablist", children: TABS.map((tab) => {
|
|
209
|
+
const on = view === tab.id;
|
|
210
|
+
return /* @__PURE__ */ jsxs(Pressable, { onPress: () => setView(tab.id), accessibilityRole: "tab", accessibilityState: {
|
|
211
|
+
selected: on
|
|
212
|
+
}, style: [styles.tab, on && styles.tabOn], children: [
|
|
213
|
+
/* @__PURE__ */ jsx(MaterialCommunityIcons, { name: tab.icon, size: 14, color: on ? "#0f172a" : "#94a3b8" }),
|
|
214
|
+
/* @__PURE__ */ jsx(Text, { style: [styles.tabLabel, on && styles.tabLabelOn], children: tab.label })
|
|
215
|
+
] }, tab.id);
|
|
216
|
+
}) }),
|
|
217
|
+
view === "shop" && !showLanding ? /* @__PURE__ */ jsxs(View, { style: styles.searchRow, children: [
|
|
218
|
+
/* @__PURE__ */ jsx(TextInput, { value: query, onChangeText: setQuery, placeholder: "Search products across retailers\u2026", placeholderTextColor: "#94a3b8", returnKeyType: "search", onSubmitEditing: () => runSearchNow(), style: styles.searchInput, accessibilityLabel: "Search Yantra products" }),
|
|
219
|
+
/* @__PURE__ */ jsx(Pressable, { onPress: () => runSearchNow(), style: styles.searchGo, accessibilityRole: "button", accessibilityLabel: "Search", children: /* @__PURE__ */ jsx(MaterialCommunityIcons, { name: "magnify", size: 20, color: "#1a1408" }) })
|
|
220
|
+
] }) : null,
|
|
221
|
+
view === "shop" && !showLanding ? /* @__PURE__ */ jsxs(ScrollView, { horizontal: true, showsHorizontalScrollIndicator: false, style: styles.deptStrip, contentContainerStyle: styles.deptRow, children: [
|
|
222
|
+
/* @__PURE__ */ jsx(Pressable, { onPress: () => handleDepartmentSelect(null), style: [styles.deptChip, !activeDept && styles.deptChipOn], children: /* @__PURE__ */ jsx(Text, { style: [styles.deptChipText, !activeDept && styles.deptChipTextOn], children: "All" }) }),
|
|
223
|
+
DEPARTMENTS.map((dept) => {
|
|
224
|
+
const on = activeDept === dept.id;
|
|
225
|
+
return /* @__PURE__ */ jsx(Pressable, { onPress: () => handleDepartmentSelect(dept.id), style: [styles.deptChip, on && styles.deptChipOn], children: /* @__PURE__ */ jsx(Text, { style: [styles.deptChipText, on && styles.deptChipTextOn], children: dept.title }) }, dept.id);
|
|
226
|
+
})
|
|
227
|
+
] }) : null
|
|
228
|
+
] }),
|
|
229
|
+
view === "deals" ? /* @__PURE__ */ jsx(DealsPanel, __spreadValues({ onOpenDetails: openDetails, departmentId: activeDept, beginUiSearchTurn: searchState.beginUiSearchTurn, completeUiSearchTurn: (args) => {
|
|
230
|
+
searchState.completeUiSearchTurn(args);
|
|
231
|
+
if (args.query.trim()) setChatOpen(true);
|
|
232
|
+
} }, panelTheme)) : null,
|
|
233
|
+
view === "watchlist" ? /* @__PURE__ */ jsx(WatchlistPanel, { card, border, ink, muted }) : null,
|
|
234
|
+
view === "saved" ? /* @__PURE__ */ jsx(SavedPanel, __spreadValues({ onOpenDetails: openDetails }, panelTheme)) : null,
|
|
235
|
+
view === "history" ? /* @__PURE__ */ jsx(HistoryPanel, { onRerunSearch: rerunSearch, onOpenDetails: openDetails, card, border, ink, muted }) : null,
|
|
236
|
+
view === "orders" ? /* @__PURE__ */ jsx(OrdersPanel, { card, border, ink, muted }) : null,
|
|
237
|
+
view === "shop" ? /* @__PURE__ */ jsxs(ScrollView, { style: styles.fill, contentContainerStyle: styles.list, keyboardShouldPersistTaps: "handled", children: [
|
|
238
|
+
showLanding ? /* @__PURE__ */ jsxs(View, { style: {
|
|
239
|
+
gap: 12
|
|
240
|
+
}, children: [
|
|
241
|
+
/* @__PURE__ */ jsxs(View, { style: [styles.hero, {
|
|
242
|
+
backgroundColor: "#0b1220",
|
|
243
|
+
borderColor: "#1e293b"
|
|
244
|
+
}], children: [
|
|
245
|
+
/* @__PURE__ */ jsxs(View, { style: styles.heroBadge, children: [
|
|
246
|
+
/* @__PURE__ */ jsx(MaterialCommunityIcons, { name: "creation", size: 12, color: "#e8b84a" }),
|
|
247
|
+
/* @__PURE__ */ jsx(Text, { style: styles.heroBadgeText, children: "Price watch" })
|
|
248
|
+
] }),
|
|
249
|
+
/* @__PURE__ */ jsxs(Text, { style: styles.heroTitleDark, children: [
|
|
250
|
+
"Found it but not at that price?",
|
|
251
|
+
" ",
|
|
252
|
+
/* @__PURE__ */ jsx(Text, { style: styles.heroTitleAccent, children: "Watch it. We tell you when it drops." })
|
|
253
|
+
] }),
|
|
254
|
+
/* @__PURE__ */ jsx(Text, { style: styles.heroCopyDark, children: "Amazon, Walmart, eBay, Target, Shopify, Google Shopping, and Yantra research in a single grid." }),
|
|
255
|
+
/* @__PURE__ */ jsxs(View, { style: styles.heroSearchRow, children: [
|
|
256
|
+
/* @__PURE__ */ jsx(TextInput, { value: query, onChangeText: setQuery, placeholder: "What are you shopping for? e.g. 'noise-cancelling headphones'", placeholderTextColor: "#94a3b8", returnKeyType: "search", onSubmitEditing: () => runSearchNow(), style: styles.heroSearchInput, accessibilityLabel: "Search Yantra products" }),
|
|
257
|
+
/* @__PURE__ */ jsx(Pressable, { onPress: () => runSearchNow(), style: styles.heroSearchGo, accessibilityRole: "button", accessibilityLabel: "Search", children: /* @__PURE__ */ jsx(Text, { style: styles.heroSearchGoText, children: "Search" }) })
|
|
258
|
+
] }),
|
|
259
|
+
/* @__PURE__ */ jsx(Text, { style: styles.heroFoot, children: "Pair the Yantra browser extension on Computer to also read Costco, Home Depot, Lowe's and Newegg." }),
|
|
260
|
+
/* @__PURE__ */ jsx(ScrollView, { horizontal: true, showsHorizontalScrollIndicator: false, contentContainerStyle: styles.retailerStrip, children: PRODUCT_SOURCES.filter((s) => s !== "catalog" && s !== "yantra").map((source) => /* @__PURE__ */ jsx(Text, { style: styles.retailerChip, children: SOURCE_LABELS[source] }, source)) })
|
|
261
|
+
] }),
|
|
262
|
+
/* @__PURE__ */ jsx(ScrollView, { horizontal: true, showsHorizontalScrollIndicator: false, contentContainerStyle: styles.marquee, children: DEPARTMENTS.map((dept) => /* @__PURE__ */ jsxs(Pressable, { onPress: () => selectTrendingDepartment(dept.id), style: [styles.marqueeChip, {
|
|
263
|
+
borderColor: border,
|
|
264
|
+
backgroundColor: card,
|
|
265
|
+
borderLeftColor: dept.accent,
|
|
266
|
+
borderLeftWidth: 3
|
|
267
|
+
}], children: [
|
|
268
|
+
/* @__PURE__ */ jsx(Text, { style: styles.deptTileIcon, children: dept.icon }),
|
|
269
|
+
/* @__PURE__ */ jsxs(View, { children: [
|
|
270
|
+
/* @__PURE__ */ jsx(Text, { style: [styles.marqueeLabel, {
|
|
271
|
+
color: ink
|
|
272
|
+
}], children: dept.title }),
|
|
273
|
+
/* @__PURE__ */ jsx(Text, { style: [styles.deptTileTag, {
|
|
274
|
+
color: muted
|
|
275
|
+
}], numberOfLines: 1, children: dept.tagline })
|
|
276
|
+
] })
|
|
277
|
+
] }, dept.id)) }),
|
|
278
|
+
/* @__PURE__ */ jsx(TrendingSections, { selectedDepartmentId: activeDept, onOpenProduct: openDetails, onSeeAllDepartment: selectTrendingDepartment, ink, muted, border, card, isDark })
|
|
279
|
+
] }) : null,
|
|
280
|
+
showResults ? /* @__PURE__ */ jsxs(View, { style: [styles.resultsCard, {
|
|
281
|
+
backgroundColor: card,
|
|
282
|
+
borderColor: border
|
|
283
|
+
}], children: [
|
|
284
|
+
/* @__PURE__ */ jsx(ProductFilterBar, { products: searchState.products, filters, onChange: setFilters, shownCount: filteredProducts.length }),
|
|
285
|
+
/* @__PURE__ */ jsxs(View, { style: [styles.resultsHead, {
|
|
286
|
+
borderColor: border
|
|
287
|
+
}], children: [
|
|
288
|
+
/* @__PURE__ */ jsx(Pressable, { onPress: backToLanding, accessibilityRole: "button", style: styles.backLink, children: /* @__PURE__ */ jsx(Text, { style: styles.backLinkText, children: "\u2190 Shop home" }) }),
|
|
289
|
+
searchState.isLoading && searchState.products.length === 0 ? /* @__PURE__ */ jsx(Text, { style: {
|
|
290
|
+
color: muted,
|
|
291
|
+
fontWeight: "600"
|
|
292
|
+
}, children: "Searching Amazon, Walmart, eBay, Target, Shopify, Google + Yantra\u2026" }) : /* @__PURE__ */ jsxs(Text, { style: {
|
|
293
|
+
color: ink
|
|
294
|
+
}, children: [
|
|
295
|
+
/* @__PURE__ */ jsx(Text, { style: styles.resultCount, children: filteredProducts.length.toLocaleString() }),
|
|
296
|
+
resultLabel ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
297
|
+
/* @__PURE__ */ jsx(Text, { style: {
|
|
298
|
+
color: muted
|
|
299
|
+
}, children: " results for " }),
|
|
300
|
+
/* @__PURE__ */ jsxs(Text, { style: {
|
|
301
|
+
fontWeight: "700"
|
|
302
|
+
}, children: [
|
|
303
|
+
"\u201C",
|
|
304
|
+
resultLabel,
|
|
305
|
+
"\u201D"
|
|
306
|
+
] })
|
|
307
|
+
] }) : /* @__PURE__ */ jsx(Text, { style: {
|
|
308
|
+
color: muted
|
|
309
|
+
}, children: " results" })
|
|
310
|
+
] }),
|
|
311
|
+
!searchState.isLoading && searchState.products.length > 0 && sourceCountSummary ? /* @__PURE__ */ jsx(Text, { style: [styles.sourceSummary, {
|
|
312
|
+
color: muted
|
|
313
|
+
}], children: sourceCountSummary }) : null,
|
|
314
|
+
searchState.isEnriching ? /* @__PURE__ */ jsx(Text, { style: [styles.enrich, {
|
|
315
|
+
color: muted
|
|
316
|
+
}], children: "Finding more across Walmart, eBay, Target, Shopify, Google + Yantra\u2026" }) : null
|
|
317
|
+
] }),
|
|
318
|
+
searchState.isLoading && searchState.products.length === 0 ? /* @__PURE__ */ jsxs(View, { style: styles.center, children: [
|
|
319
|
+
/* @__PURE__ */ jsx(ActivityIndicator, {}),
|
|
320
|
+
/* @__PURE__ */ jsx(Text, { style: [styles.detail, {
|
|
321
|
+
color: muted,
|
|
322
|
+
marginTop: 10
|
|
323
|
+
}], children: "Searching retailers and Yantra picks\u2026" })
|
|
324
|
+
] }) : null,
|
|
325
|
+
searchState.error && searchState.products.length === 0 && !searchState.isLoading ? /* @__PURE__ */ jsx(Text, { style: styles.error, children: searchState.error }) : null,
|
|
326
|
+
searchState.error && searchState.products.length > 0 ? /* @__PURE__ */ jsx(Text, { style: [styles.enrich, {
|
|
327
|
+
color: muted
|
|
328
|
+
}], children: searchState.error }) : null,
|
|
329
|
+
searchState.affiliateDisclosure ? /* @__PURE__ */ jsx(Text, { style: [styles.disclosure, {
|
|
330
|
+
color: muted
|
|
331
|
+
}], children: searchState.affiliateDisclosure }) : null,
|
|
332
|
+
productsBySource.map((section) => /* @__PURE__ */ jsxs(View, { style: [styles.section, {
|
|
333
|
+
borderColor: border
|
|
334
|
+
}], children: [
|
|
335
|
+
/* @__PURE__ */ jsxs(View, { style: styles.sectionHead, children: [
|
|
336
|
+
/* @__PURE__ */ jsxs(View, { style: {
|
|
337
|
+
flex: 1
|
|
338
|
+
}, children: [
|
|
339
|
+
/* @__PURE__ */ jsx(Text, { style: [styles.sectionTitle, {
|
|
340
|
+
color: ink
|
|
341
|
+
}], children: SOURCE_SECTION[section.source].title }),
|
|
342
|
+
/* @__PURE__ */ jsx(Text, { style: [styles.sectionSub, {
|
|
343
|
+
color: muted
|
|
344
|
+
}], children: SOURCE_SECTION[section.source].subtitle })
|
|
345
|
+
] }),
|
|
346
|
+
/* @__PURE__ */ jsx(Text, { style: [styles.countPill, {
|
|
347
|
+
color: muted,
|
|
348
|
+
backgroundColor: isDark ? "#1e293b" : "#f1f5f9"
|
|
349
|
+
}], children: section.products.length })
|
|
350
|
+
] }),
|
|
351
|
+
section.products.map((product) => /* @__PURE__ */ jsx(ProductCard, __spreadProps(__spreadValues({ product }, panelTheme), { onOpen: () => openDetails(product) }), product.id))
|
|
352
|
+
] }, section.source))
|
|
353
|
+
] }) : null
|
|
354
|
+
] }) : null,
|
|
355
|
+
/* @__PURE__ */ jsx(Modal, { visible: cartOpen, animationType: "slide", onRequestClose: () => setCartOpen(false), children: /* @__PURE__ */ jsxs(View, { style: [styles.fill, {
|
|
356
|
+
backgroundColor: screen,
|
|
357
|
+
paddingTop: Math.max(insets.top, 12),
|
|
358
|
+
paddingBottom: Math.max(insets.bottom, 8)
|
|
359
|
+
}], children: [
|
|
360
|
+
/* @__PURE__ */ jsxs(View, { style: styles.modalHead, children: [
|
|
361
|
+
/* @__PURE__ */ jsx(Text, { style: [styles.title, {
|
|
362
|
+
color: ink
|
|
363
|
+
}], children: "Cart" }),
|
|
364
|
+
/* @__PURE__ */ jsx(Pressable, { onPress: () => setCartOpen(false), accessibilityLabel: "Close cart", children: /* @__PURE__ */ jsx(MaterialCommunityIcons, { name: "close", size: 22, color: muted }) })
|
|
365
|
+
] }),
|
|
366
|
+
/* @__PURE__ */ jsx(ScrollView, { contentContainerStyle: styles.list, children: cart.lines.length === 0 ? /* @__PURE__ */ jsx(Text, { style: [styles.detail, {
|
|
367
|
+
color: muted
|
|
368
|
+
}], children: "Your cart is empty." }) : cart.lines.map((line) => /* @__PURE__ */ jsxs(View, { style: [styles.cartLine, {
|
|
369
|
+
borderColor: border,
|
|
370
|
+
backgroundColor: card
|
|
371
|
+
}], children: [
|
|
372
|
+
/* @__PURE__ */ jsx(ProductPhoto, { product: line.product, style: styles.cartThumb, contentFit: "cover" }),
|
|
373
|
+
/* @__PURE__ */ jsxs(View, { style: {
|
|
374
|
+
flex: 1,
|
|
375
|
+
gap: 6
|
|
376
|
+
}, children: [
|
|
377
|
+
/* @__PURE__ */ jsx(Text, { style: [styles.cardName, {
|
|
378
|
+
color: ink
|
|
379
|
+
}], numberOfLines: 2, children: line.product.name }),
|
|
380
|
+
/* @__PURE__ */ jsxs(Text, { style: [styles.price, {
|
|
381
|
+
color: ink
|
|
382
|
+
}], children: [
|
|
383
|
+
formatPrice(line.product.price, line.product.currency),
|
|
384
|
+
" \xD7 ",
|
|
385
|
+
line.qty
|
|
386
|
+
] }),
|
|
387
|
+
/* @__PURE__ */ jsxs(View, { style: styles.qtyRow, children: [
|
|
388
|
+
/* @__PURE__ */ jsx(Pressable, { onPress: () => setQty(line.product.id, line.qty - 1), style: styles.qtyBtn, children: /* @__PURE__ */ jsx(Text, { style: styles.qtyBtnText, children: "\u2212" }) }),
|
|
389
|
+
/* @__PURE__ */ jsx(Text, { style: {
|
|
390
|
+
color: ink
|
|
391
|
+
}, children: line.qty }),
|
|
392
|
+
/* @__PURE__ */ jsx(Pressable, { onPress: () => setQty(line.product.id, line.qty + 1), style: styles.qtyBtn, children: /* @__PURE__ */ jsx(Text, { style: styles.qtyBtnText, children: "+" }) }),
|
|
393
|
+
/* @__PURE__ */ jsx(Pressable, { onPress: () => removeFromCart(line.product.id), children: /* @__PURE__ */ jsx(Text, { style: {
|
|
394
|
+
color: "#b91c1c",
|
|
395
|
+
fontWeight: "600"
|
|
396
|
+
}, children: "Remove" }) })
|
|
397
|
+
] })
|
|
398
|
+
] })
|
|
399
|
+
] }, line.product.id)) }),
|
|
400
|
+
/* @__PURE__ */ jsxs(View, { style: [styles.checkoutBar, {
|
|
401
|
+
borderColor: border
|
|
402
|
+
}], children: [
|
|
403
|
+
/* @__PURE__ */ jsx(Text, { style: [styles.title, {
|
|
404
|
+
color: ink
|
|
405
|
+
}], children: formatPrice(cart.subtotal) }),
|
|
406
|
+
/* @__PURE__ */ jsxs(View, { style: {
|
|
407
|
+
flexDirection: "row",
|
|
408
|
+
gap: 8
|
|
409
|
+
}, children: [
|
|
410
|
+
cart.lines.length > 0 ? /* @__PURE__ */ jsx(Pressable, { onPress: clearCart, style: styles.secondaryBtn, children: /* @__PURE__ */ jsx(Text, { style: {
|
|
411
|
+
color: ink,
|
|
412
|
+
fontWeight: "600"
|
|
413
|
+
}, children: "Clear" }) }) : null,
|
|
414
|
+
/* @__PURE__ */ jsx(Pressable, { disabled: checkoutUrls.length === 0, onPress: () => {
|
|
415
|
+
if (checkoutUrls.length === 0) return;
|
|
416
|
+
recordOrder(cart.lines);
|
|
417
|
+
checkoutUrls.forEach((url) => {
|
|
418
|
+
void Linking.openURL(url);
|
|
419
|
+
});
|
|
420
|
+
setCartOpen(false);
|
|
421
|
+
}, style: [styles.goldCheckout, checkoutUrls.length === 0 && {
|
|
422
|
+
opacity: 0.4
|
|
423
|
+
}], children: /* @__PURE__ */ jsx(Text, { style: styles.goldCheckoutText, children: "Checkout" }) })
|
|
424
|
+
] })
|
|
425
|
+
] })
|
|
426
|
+
] }) }),
|
|
427
|
+
detail ? /* @__PURE__ */ jsx(ProductDetailSheet, { product: detail, onClose: () => setDetail(null), isDark, ink, muted, screen, border }) : null,
|
|
428
|
+
chatOpen || cartOpen || detail ? null : /* @__PURE__ */ jsx(View, __spreadProps(__spreadValues({ style: styles.agentSwipeEdge }, shopSwipe.panHandlers), { accessibilityLabel: "Swipe left from here to open the shopping agent" })),
|
|
429
|
+
chatOpen ? null : /* @__PURE__ */ jsx(Pressable, { onPress: () => setChatOpen(true), style: [styles.agentFab, {
|
|
430
|
+
bottom: Math.max(insets.bottom, 16) + 8
|
|
431
|
+
}], accessibilityRole: "button", accessibilityLabel: "Open shopping agent", children: /* @__PURE__ */ jsx(MaterialCommunityIcons, { name: "creation", size: 22, color: "#1a1408" }) }),
|
|
432
|
+
/* @__PURE__ */ jsx(ShoppingAgentChatPane, { visible: chatOpen, onClose: () => setChatOpen(false), hostChat, applyFromChat: searchState.applyFromChat, products: searchState.products, onViewProducts: () => {
|
|
433
|
+
var _a2;
|
|
434
|
+
setView(((_a2 = searchState.uiSearchTurn) == null ? void 0 : _a2.kind) === "deals" ? "deals" : "shop");
|
|
435
|
+
setChatOpen(false);
|
|
436
|
+
}, onOpenProduct: (product) => {
|
|
437
|
+
setChatOpen(false);
|
|
438
|
+
openDetails(product);
|
|
439
|
+
}, seedTurn: initialAgentSeed, uiSearchTurn: searchState.uiSearchTurn, isDark, ink, muted, screen, border, card })
|
|
440
|
+
] });
|
|
441
|
+
}
|
|
442
|
+
const styles = StyleSheet.create({
|
|
443
|
+
fill: {
|
|
444
|
+
flex: 1
|
|
445
|
+
},
|
|
446
|
+
center: {
|
|
447
|
+
alignItems: "center",
|
|
448
|
+
justifyContent: "center",
|
|
449
|
+
padding: 24
|
|
450
|
+
},
|
|
451
|
+
title: {
|
|
452
|
+
fontSize: 17,
|
|
453
|
+
fontWeight: "700"
|
|
454
|
+
},
|
|
455
|
+
detail: {
|
|
456
|
+
fontSize: 13,
|
|
457
|
+
textAlign: "center"
|
|
458
|
+
},
|
|
459
|
+
header: {
|
|
460
|
+
backgroundColor: "#0b1220",
|
|
461
|
+
paddingHorizontal: 16,
|
|
462
|
+
paddingTop: 10,
|
|
463
|
+
paddingBottom: 12,
|
|
464
|
+
gap: 10
|
|
465
|
+
},
|
|
466
|
+
brandRow: {
|
|
467
|
+
flexDirection: "row",
|
|
468
|
+
alignItems: "baseline",
|
|
469
|
+
gap: 4
|
|
470
|
+
},
|
|
471
|
+
brandShop: {
|
|
472
|
+
fontSize: 20,
|
|
473
|
+
fontWeight: "800",
|
|
474
|
+
color: "#fff",
|
|
475
|
+
letterSpacing: -0.4
|
|
476
|
+
},
|
|
477
|
+
brandDot: {
|
|
478
|
+
fontSize: 18,
|
|
479
|
+
fontWeight: "700",
|
|
480
|
+
color: "#e8b84a"
|
|
481
|
+
},
|
|
482
|
+
brandYantra: {
|
|
483
|
+
fontSize: 13,
|
|
484
|
+
fontWeight: "600",
|
|
485
|
+
color: "#94a3b8",
|
|
486
|
+
letterSpacing: 0.4
|
|
487
|
+
},
|
|
488
|
+
agentBtn: {
|
|
489
|
+
marginLeft: "auto",
|
|
490
|
+
flexDirection: "row",
|
|
491
|
+
alignItems: "center",
|
|
492
|
+
gap: 6,
|
|
493
|
+
borderWidth: 1,
|
|
494
|
+
borderColor: "rgba(255,255,255,0.12)",
|
|
495
|
+
backgroundColor: "rgba(255,255,255,0.06)",
|
|
496
|
+
borderRadius: 10,
|
|
497
|
+
paddingHorizontal: 10,
|
|
498
|
+
paddingVertical: 7
|
|
499
|
+
},
|
|
500
|
+
agentBtnLabel: {
|
|
501
|
+
color: "#fff",
|
|
502
|
+
fontSize: 13,
|
|
503
|
+
fontWeight: "600"
|
|
504
|
+
},
|
|
505
|
+
cartBtn: {
|
|
506
|
+
flexDirection: "row",
|
|
507
|
+
alignItems: "center",
|
|
508
|
+
gap: 6,
|
|
509
|
+
borderWidth: 1,
|
|
510
|
+
borderColor: "rgba(255,255,255,0.12)",
|
|
511
|
+
backgroundColor: "rgba(255,255,255,0.06)",
|
|
512
|
+
borderRadius: 10,
|
|
513
|
+
paddingHorizontal: 10,
|
|
514
|
+
paddingVertical: 7
|
|
515
|
+
},
|
|
516
|
+
cartBtnLabel: {
|
|
517
|
+
color: "#fff",
|
|
518
|
+
fontSize: 13,
|
|
519
|
+
fontWeight: "600"
|
|
520
|
+
},
|
|
521
|
+
cartBadge: {
|
|
522
|
+
backgroundColor: "#e8b84a",
|
|
523
|
+
color: "#1a1408",
|
|
524
|
+
fontSize: 11,
|
|
525
|
+
fontWeight: "800",
|
|
526
|
+
overflow: "hidden",
|
|
527
|
+
borderRadius: 6,
|
|
528
|
+
paddingHorizontal: 6,
|
|
529
|
+
paddingVertical: 1
|
|
530
|
+
},
|
|
531
|
+
tabRow: {
|
|
532
|
+
gap: 4,
|
|
533
|
+
alignItems: "center",
|
|
534
|
+
paddingRight: 8
|
|
535
|
+
},
|
|
536
|
+
tab: {
|
|
537
|
+
flexDirection: "row",
|
|
538
|
+
alignItems: "center",
|
|
539
|
+
gap: 6,
|
|
540
|
+
borderRadius: 8,
|
|
541
|
+
paddingHorizontal: 12,
|
|
542
|
+
paddingVertical: 7
|
|
543
|
+
},
|
|
544
|
+
tabOn: {
|
|
545
|
+
backgroundColor: "#fff"
|
|
546
|
+
},
|
|
547
|
+
tabLabel: {
|
|
548
|
+
color: "#94a3b8",
|
|
549
|
+
fontSize: 12,
|
|
550
|
+
fontWeight: "600"
|
|
551
|
+
},
|
|
552
|
+
tabLabelOn: {
|
|
553
|
+
color: "#0f172a",
|
|
554
|
+
fontWeight: "700"
|
|
555
|
+
},
|
|
556
|
+
searchRow: {
|
|
557
|
+
flexDirection: "row",
|
|
558
|
+
alignItems: "stretch",
|
|
559
|
+
overflow: "hidden",
|
|
560
|
+
borderRadius: 12,
|
|
561
|
+
backgroundColor: "#fff",
|
|
562
|
+
minHeight: 44
|
|
563
|
+
},
|
|
564
|
+
searchInput: {
|
|
565
|
+
flex: 1,
|
|
566
|
+
color: "#0f172a",
|
|
567
|
+
fontSize: 15,
|
|
568
|
+
paddingHorizontal: 14,
|
|
569
|
+
paddingVertical: 10
|
|
570
|
+
},
|
|
571
|
+
searchGo: {
|
|
572
|
+
backgroundColor: "#e8b84a",
|
|
573
|
+
paddingHorizontal: 14,
|
|
574
|
+
alignItems: "center",
|
|
575
|
+
justifyContent: "center"
|
|
576
|
+
},
|
|
577
|
+
deptStrip: {
|
|
578
|
+
flexGrow: 0,
|
|
579
|
+
flexShrink: 0,
|
|
580
|
+
minHeight: 40,
|
|
581
|
+
marginHorizontal: -4,
|
|
582
|
+
borderRadius: 10,
|
|
583
|
+
backgroundColor: "#152238"
|
|
584
|
+
},
|
|
585
|
+
deptRow: {
|
|
586
|
+
paddingHorizontal: 8,
|
|
587
|
+
paddingVertical: 8,
|
|
588
|
+
gap: 6,
|
|
589
|
+
alignItems: "center",
|
|
590
|
+
minHeight: 40
|
|
591
|
+
},
|
|
592
|
+
deptChip: {
|
|
593
|
+
borderRadius: 8,
|
|
594
|
+
paddingHorizontal: 10,
|
|
595
|
+
paddingVertical: 6
|
|
596
|
+
},
|
|
597
|
+
deptChipOn: {
|
|
598
|
+
backgroundColor: "rgba(232,184,74,0.15)"
|
|
599
|
+
},
|
|
600
|
+
deptChipText: {
|
|
601
|
+
fontSize: 12,
|
|
602
|
+
fontWeight: "600",
|
|
603
|
+
color: "#cbd5e1"
|
|
604
|
+
},
|
|
605
|
+
deptChipTextOn: {
|
|
606
|
+
color: "#e8b84a",
|
|
607
|
+
fontWeight: "700"
|
|
608
|
+
},
|
|
609
|
+
list: {
|
|
610
|
+
padding: 16,
|
|
611
|
+
gap: 12,
|
|
612
|
+
paddingBottom: 32
|
|
613
|
+
},
|
|
614
|
+
hero: {
|
|
615
|
+
borderWidth: 1,
|
|
616
|
+
borderRadius: 16,
|
|
617
|
+
padding: 18,
|
|
618
|
+
gap: 10
|
|
619
|
+
},
|
|
620
|
+
heroBadge: {
|
|
621
|
+
alignSelf: "flex-start",
|
|
622
|
+
flexDirection: "row",
|
|
623
|
+
alignItems: "center",
|
|
624
|
+
gap: 6,
|
|
625
|
+
borderRadius: 999,
|
|
626
|
+
backgroundColor: "rgba(232,184,74,0.12)",
|
|
627
|
+
borderWidth: 1,
|
|
628
|
+
borderColor: "rgba(232,184,74,0.35)",
|
|
629
|
+
paddingHorizontal: 10,
|
|
630
|
+
paddingVertical: 5
|
|
631
|
+
},
|
|
632
|
+
heroBadgeText: {
|
|
633
|
+
color: "#e8b84a",
|
|
634
|
+
fontSize: 11,
|
|
635
|
+
fontWeight: "800",
|
|
636
|
+
letterSpacing: 1.2,
|
|
637
|
+
textTransform: "uppercase"
|
|
638
|
+
},
|
|
639
|
+
heroTitleDark: {
|
|
640
|
+
fontSize: 22,
|
|
641
|
+
fontWeight: "800",
|
|
642
|
+
letterSpacing: -0.4,
|
|
643
|
+
color: "#fff",
|
|
644
|
+
lineHeight: 28
|
|
645
|
+
},
|
|
646
|
+
heroTitleAccent: {
|
|
647
|
+
color: "#e8b84a"
|
|
648
|
+
},
|
|
649
|
+
heroCopyDark: {
|
|
650
|
+
fontSize: 14,
|
|
651
|
+
lineHeight: 20,
|
|
652
|
+
color: "#94a3b8"
|
|
653
|
+
},
|
|
654
|
+
heroSearchRow: {
|
|
655
|
+
flexDirection: "row",
|
|
656
|
+
alignItems: "stretch",
|
|
657
|
+
borderRadius: 12,
|
|
658
|
+
overflow: "hidden",
|
|
659
|
+
backgroundColor: "#fff",
|
|
660
|
+
minHeight: 48
|
|
661
|
+
},
|
|
662
|
+
heroSearchInput: {
|
|
663
|
+
flex: 1,
|
|
664
|
+
color: "#0f172a",
|
|
665
|
+
fontSize: 15,
|
|
666
|
+
paddingHorizontal: 14,
|
|
667
|
+
paddingVertical: 12
|
|
668
|
+
},
|
|
669
|
+
heroSearchGo: {
|
|
670
|
+
backgroundColor: "#e8b84a",
|
|
671
|
+
paddingHorizontal: 16,
|
|
672
|
+
alignItems: "center",
|
|
673
|
+
justifyContent: "center"
|
|
674
|
+
},
|
|
675
|
+
heroSearchGoText: {
|
|
676
|
+
color: "#1a1408",
|
|
677
|
+
fontWeight: "800",
|
|
678
|
+
fontSize: 14
|
|
679
|
+
},
|
|
680
|
+
heroFoot: {
|
|
681
|
+
fontSize: 11,
|
|
682
|
+
lineHeight: 15,
|
|
683
|
+
color: "rgba(148,163,184,0.9)"
|
|
684
|
+
},
|
|
685
|
+
retailerStrip: {
|
|
686
|
+
gap: 8,
|
|
687
|
+
paddingVertical: 4
|
|
688
|
+
},
|
|
689
|
+
retailerChip: {
|
|
690
|
+
color: "rgba(255,255,255,0.55)",
|
|
691
|
+
fontSize: 11,
|
|
692
|
+
fontWeight: "700",
|
|
693
|
+
letterSpacing: 0.8,
|
|
694
|
+
textTransform: "uppercase"
|
|
695
|
+
},
|
|
696
|
+
marquee: {
|
|
697
|
+
gap: 8,
|
|
698
|
+
paddingVertical: 4
|
|
699
|
+
},
|
|
700
|
+
marqueeChip: {
|
|
701
|
+
flexDirection: "row",
|
|
702
|
+
alignItems: "center",
|
|
703
|
+
gap: 8,
|
|
704
|
+
borderWidth: 1,
|
|
705
|
+
borderRadius: 14,
|
|
706
|
+
paddingHorizontal: 12,
|
|
707
|
+
paddingVertical: 10,
|
|
708
|
+
maxWidth: 220
|
|
709
|
+
},
|
|
710
|
+
marqueeLabel: {
|
|
711
|
+
fontSize: 13,
|
|
712
|
+
fontWeight: "700"
|
|
713
|
+
},
|
|
714
|
+
deptTileIcon: {
|
|
715
|
+
fontSize: 22
|
|
716
|
+
},
|
|
717
|
+
deptTileTag: {
|
|
718
|
+
fontSize: 11,
|
|
719
|
+
maxWidth: 140
|
|
720
|
+
},
|
|
721
|
+
resultsCard: {
|
|
722
|
+
borderWidth: 1,
|
|
723
|
+
borderRadius: 16,
|
|
724
|
+
overflow: "hidden"
|
|
725
|
+
},
|
|
726
|
+
resultsHead: {
|
|
727
|
+
padding: 14,
|
|
728
|
+
borderBottomWidth: StyleSheet.hairlineWidth,
|
|
729
|
+
gap: 6
|
|
730
|
+
},
|
|
731
|
+
backLink: {
|
|
732
|
+
alignSelf: "flex-start",
|
|
733
|
+
marginBottom: 2
|
|
734
|
+
},
|
|
735
|
+
backLinkText: {
|
|
736
|
+
color: "#0a6b7c",
|
|
737
|
+
fontSize: 13,
|
|
738
|
+
fontWeight: "600"
|
|
739
|
+
},
|
|
740
|
+
resultCount: {
|
|
741
|
+
fontSize: 16,
|
|
742
|
+
fontWeight: "800"
|
|
743
|
+
},
|
|
744
|
+
sourceSummary: {
|
|
745
|
+
fontSize: 12
|
|
746
|
+
},
|
|
747
|
+
enrich: {
|
|
748
|
+
fontSize: 12,
|
|
749
|
+
paddingHorizontal: 14,
|
|
750
|
+
paddingBottom: 8
|
|
751
|
+
},
|
|
752
|
+
error: {
|
|
753
|
+
fontSize: 13,
|
|
754
|
+
padding: 14,
|
|
755
|
+
color: "#b91c1c"
|
|
756
|
+
},
|
|
757
|
+
disclosure: {
|
|
758
|
+
fontSize: 11,
|
|
759
|
+
paddingHorizontal: 14,
|
|
760
|
+
paddingBottom: 8
|
|
761
|
+
},
|
|
762
|
+
section: {
|
|
763
|
+
borderBottomWidth: StyleSheet.hairlineWidth,
|
|
764
|
+
padding: 12,
|
|
765
|
+
gap: 8
|
|
766
|
+
},
|
|
767
|
+
sectionHead: {
|
|
768
|
+
flexDirection: "row",
|
|
769
|
+
alignItems: "flex-end",
|
|
770
|
+
gap: 8
|
|
771
|
+
},
|
|
772
|
+
sectionTitle: {
|
|
773
|
+
fontSize: 15,
|
|
774
|
+
fontWeight: "700",
|
|
775
|
+
letterSpacing: -0.2
|
|
776
|
+
},
|
|
777
|
+
sectionSub: {
|
|
778
|
+
fontSize: 12,
|
|
779
|
+
marginTop: 2
|
|
780
|
+
},
|
|
781
|
+
countPill: {
|
|
782
|
+
borderRadius: 999,
|
|
783
|
+
paddingHorizontal: 8,
|
|
784
|
+
paddingVertical: 2,
|
|
785
|
+
fontSize: 11,
|
|
786
|
+
fontWeight: "700",
|
|
787
|
+
overflow: "hidden"
|
|
788
|
+
},
|
|
789
|
+
cardName: {
|
|
790
|
+
fontSize: 14,
|
|
791
|
+
fontWeight: "600",
|
|
792
|
+
lineHeight: 18
|
|
793
|
+
},
|
|
794
|
+
price: {
|
|
795
|
+
fontSize: 15,
|
|
796
|
+
fontWeight: "800"
|
|
797
|
+
},
|
|
798
|
+
modalHead: {
|
|
799
|
+
flexDirection: "row",
|
|
800
|
+
alignItems: "center",
|
|
801
|
+
justifyContent: "space-between",
|
|
802
|
+
paddingHorizontal: 16,
|
|
803
|
+
paddingBottom: 8,
|
|
804
|
+
gap: 12
|
|
805
|
+
},
|
|
806
|
+
cartLine: {
|
|
807
|
+
flexDirection: "row",
|
|
808
|
+
gap: 10,
|
|
809
|
+
borderWidth: 1,
|
|
810
|
+
borderRadius: 12,
|
|
811
|
+
padding: 12
|
|
812
|
+
},
|
|
813
|
+
cartThumb: {
|
|
814
|
+
width: 56,
|
|
815
|
+
height: 56,
|
|
816
|
+
borderRadius: 8
|
|
817
|
+
},
|
|
818
|
+
qtyRow: {
|
|
819
|
+
flexDirection: "row",
|
|
820
|
+
alignItems: "center",
|
|
821
|
+
gap: 10
|
|
822
|
+
},
|
|
823
|
+
qtyBtn: {
|
|
824
|
+
width: 28,
|
|
825
|
+
height: 28,
|
|
826
|
+
borderRadius: 8,
|
|
827
|
+
backgroundColor: "#e2e8f0",
|
|
828
|
+
alignItems: "center",
|
|
829
|
+
justifyContent: "center"
|
|
830
|
+
},
|
|
831
|
+
qtyBtnText: {
|
|
832
|
+
fontSize: 16,
|
|
833
|
+
fontWeight: "700"
|
|
834
|
+
},
|
|
835
|
+
checkoutBar: {
|
|
836
|
+
flexDirection: "row",
|
|
837
|
+
alignItems: "center",
|
|
838
|
+
justifyContent: "space-between",
|
|
839
|
+
padding: 16,
|
|
840
|
+
borderTopWidth: 1,
|
|
841
|
+
gap: 12
|
|
842
|
+
},
|
|
843
|
+
goldCheckout: {
|
|
844
|
+
backgroundColor: "#e8b84a",
|
|
845
|
+
borderRadius: 10,
|
|
846
|
+
paddingHorizontal: 14,
|
|
847
|
+
paddingVertical: 10,
|
|
848
|
+
alignItems: "center"
|
|
849
|
+
},
|
|
850
|
+
goldCheckoutText: {
|
|
851
|
+
color: "#1a1408",
|
|
852
|
+
fontWeight: "800"
|
|
853
|
+
},
|
|
854
|
+
secondaryBtn: {
|
|
855
|
+
borderRadius: 10,
|
|
856
|
+
paddingHorizontal: 14,
|
|
857
|
+
paddingVertical: 10,
|
|
858
|
+
backgroundColor: "#e2e8f0",
|
|
859
|
+
alignItems: "center"
|
|
860
|
+
},
|
|
861
|
+
agentSwipeEdge: {
|
|
862
|
+
position: "absolute",
|
|
863
|
+
top: 0,
|
|
864
|
+
right: 0,
|
|
865
|
+
bottom: 0,
|
|
866
|
+
width: 44,
|
|
867
|
+
zIndex: 9
|
|
868
|
+
},
|
|
869
|
+
agentFab: {
|
|
870
|
+
position: "absolute",
|
|
871
|
+
right: 16,
|
|
872
|
+
width: 52,
|
|
873
|
+
height: 52,
|
|
874
|
+
borderRadius: 26,
|
|
875
|
+
backgroundColor: "#e8b84a",
|
|
876
|
+
alignItems: "center",
|
|
877
|
+
justifyContent: "center",
|
|
878
|
+
zIndex: 20,
|
|
879
|
+
shadowColor: "#0f172a",
|
|
880
|
+
shadowOpacity: 0.25,
|
|
881
|
+
shadowRadius: 10,
|
|
882
|
+
shadowOffset: {
|
|
883
|
+
width: 0,
|
|
884
|
+
height: 4
|
|
885
|
+
},
|
|
886
|
+
elevation: 6
|
|
887
|
+
}
|
|
888
|
+
});export{ShoppingExperience,ShoppingExperience as default};//# sourceMappingURL=ShoppingExperience.js.map
|