@adminide-stack/yantra-mobile 12.0.69-alpha.9 → 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,824 @@
|
|
|
1
|
+
import {jsxs,jsx}from'react/jsx-runtime';import {useState,useCallback,useMemo}from'react';import {StyleSheet,View,Pressable,Text,ActivityIndicator,ScrollView,TextInput}from'react-native';import {MaterialCommunityIcons}from'@expo/vector-icons';import {resultUrl,friendlyMediaError}from'./videoEditor/mediaActions.js';import {VIDEO_EDIT_CATEGORIES,VIDEO_EDIT_ACTIONS,resultKind,INSTANT_HINT}from'./videoEditor/videoEditOps.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
|
+
function VideoEditExperience({
|
|
21
|
+
src,
|
|
22
|
+
name,
|
|
23
|
+
items = [],
|
|
24
|
+
runAction,
|
|
25
|
+
onClose,
|
|
26
|
+
onApplied
|
|
27
|
+
}) {
|
|
28
|
+
var _a, _b;
|
|
29
|
+
const [history, setHistory] = useState([src]);
|
|
30
|
+
const [appliedKind, setAppliedKind] = useState("video");
|
|
31
|
+
const [busy, setBusy] = useState(null);
|
|
32
|
+
const [notice, setNotice] = useState(null);
|
|
33
|
+
const [probe, setProbe] = useState(null);
|
|
34
|
+
const [playing, setPlaying] = useState(false);
|
|
35
|
+
const [category, setCategory] = useState("basic");
|
|
36
|
+
const [op, setOp] = useState("trim");
|
|
37
|
+
const [form, setForm] = useState(defaultForm);
|
|
38
|
+
const current = history[history.length - 1];
|
|
39
|
+
const edited = history.length > 1;
|
|
40
|
+
const ops = (_b = (_a = VIDEO_EDIT_CATEGORIES.find((c) => c.id === category)) == null ? void 0 : _a.ops) != null ? _b : [];
|
|
41
|
+
const patch = useCallback((key, value) => {
|
|
42
|
+
setForm((prev) => __spreadProps(__spreadValues({}, prev), {
|
|
43
|
+
[key]: value
|
|
44
|
+
}));
|
|
45
|
+
}, []);
|
|
46
|
+
const apply = useCallback(() => {
|
|
47
|
+
if (!runAction) {
|
|
48
|
+
setNotice("Editing needs the host connector \u2014 not wired in this host.");
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
if (busy) return;
|
|
52
|
+
const action = VIDEO_EDIT_ACTIONS[op];
|
|
53
|
+
const params = paramsFor(op, form);
|
|
54
|
+
setBusy(opLabel(op));
|
|
55
|
+
setPlaying(false);
|
|
56
|
+
setProbe(null);
|
|
57
|
+
runAction("yantra-video-editing", action, __spreadValues({
|
|
58
|
+
input_url: current
|
|
59
|
+
}, params)).then((result) => {
|
|
60
|
+
var _a2;
|
|
61
|
+
if (op === "probe") {
|
|
62
|
+
setProbe(JSON.stringify((_a2 = result.data) != null ? _a2 : result, null, 2));
|
|
63
|
+
return;
|
|
64
|
+
}
|
|
65
|
+
setHistory((h) => [...h, resultUrl(result, action)]);
|
|
66
|
+
setAppliedKind(resultKind(op));
|
|
67
|
+
setNotice(null);
|
|
68
|
+
}).catch((err) => setNotice(friendlyMediaError(err, "video edit"))).finally(() => setBusy(null));
|
|
69
|
+
}, [busy, current, form, op, runAction]);
|
|
70
|
+
const done = () => {
|
|
71
|
+
if (edited) onApplied(current, appliedKind);
|
|
72
|
+
else onClose();
|
|
73
|
+
};
|
|
74
|
+
const videos = useMemo(() => items.filter((i) => i.type === "video" && i.src !== current), [items, current]);
|
|
75
|
+
const images = useMemo(() => items.filter((i) => i.type === "image"), [items]);
|
|
76
|
+
const audios = useMemo(() => items.filter((i) => i.type === "audio"), [items]);
|
|
77
|
+
return /* @__PURE__ */ jsxs(View, { style: styles.root, testID: "video-editor", children: [
|
|
78
|
+
/* @__PURE__ */ jsxs(View, { style: styles.header, children: [
|
|
79
|
+
/* @__PURE__ */ jsx(Pressable, { onPress: onClose, hitSlop: 10, accessibilityRole: "button", accessibilityLabel: "Close editor", children: /* @__PURE__ */ jsx(MaterialCommunityIcons, { name: "close", size: 22, color: "#F7F7FA" }) }),
|
|
80
|
+
/* @__PURE__ */ jsx(Text, { style: styles.headerTitle, numberOfLines: 1, children: (name == null ? void 0 : name.trim()) || "Edit video" }),
|
|
81
|
+
/* @__PURE__ */ jsxs(View, { style: styles.headerActions, children: [
|
|
82
|
+
/* @__PURE__ */ jsx(Pressable, { onPress: () => setHistory((h) => h.length > 1 ? h.slice(0, -1) : h), hitSlop: 10, disabled: !edited || busy !== null, accessibilityRole: "button", accessibilityLabel: "Undo", style: !edited || busy ? styles.disabled : null, children: /* @__PURE__ */ jsx(MaterialCommunityIcons, { name: "undo-variant", size: 21, color: "#F7F7FA" }) }),
|
|
83
|
+
/* @__PURE__ */ jsx(Pressable, { onPress: done, hitSlop: 10, accessibilityRole: "button", accessibilityLabel: "Done", children: /* @__PURE__ */ jsx(Text, { style: styles.done, children: edited ? "Done" : "Close" }) })
|
|
84
|
+
] })
|
|
85
|
+
] }),
|
|
86
|
+
/* @__PURE__ */ jsxs(View, { style: styles.stage, children: [
|
|
87
|
+
/* @__PURE__ */ jsx(MaterialCommunityIcons, { name: "video-outline", size: 56, color: "#2A2440" }),
|
|
88
|
+
/* @__PURE__ */ jsx(Pressable, { onPress: () => setPlaying((p) => !p), style: styles.playBtn, accessibilityRole: "button", accessibilityLabel: playing ? "Pause" : "Play", disabled: true, children: /* @__PURE__ */ jsx(MaterialCommunityIcons, { name: playing ? "pause" : "play", size: 26, color: "#0A0A0C" }) }),
|
|
89
|
+
busy ? /* @__PURE__ */ jsxs(View, { style: styles.busyVeil, children: [
|
|
90
|
+
/* @__PURE__ */ jsx(ActivityIndicator, { color: "#F7F7FA" }),
|
|
91
|
+
/* @__PURE__ */ jsxs(Text, { style: styles.busyLabel, children: [
|
|
92
|
+
busy,
|
|
93
|
+
"\u2026"
|
|
94
|
+
] })
|
|
95
|
+
] }) : null
|
|
96
|
+
] }),
|
|
97
|
+
/* @__PURE__ */ jsxs(View, { style: styles.panel, children: [
|
|
98
|
+
/* @__PURE__ */ jsx(ScrollView, { horizontal: true, showsHorizontalScrollIndicator: false, contentContainerStyle: styles.chipRow, style: styles.chipScroll, children: VIDEO_EDIT_CATEGORIES.map((cat) => {
|
|
99
|
+
const active = category === cat.id;
|
|
100
|
+
return /* @__PURE__ */ jsx(Pressable, { onPress: () => {
|
|
101
|
+
setCategory(cat.id);
|
|
102
|
+
setOp(cat.ops[0].op);
|
|
103
|
+
setProbe(null);
|
|
104
|
+
}, style: [styles.catChip, active && styles.catChipOn], children: /* @__PURE__ */ jsx(Text, { style: [styles.catLabel, active && styles.catLabelOn], children: cat.label }) }, cat.id);
|
|
105
|
+
}) }),
|
|
106
|
+
/* @__PURE__ */ jsx(ScrollView, { horizontal: true, showsHorizontalScrollIndicator: false, contentContainerStyle: styles.chipRow, style: styles.chipScroll, children: ops.map((entry) => {
|
|
107
|
+
const active = op === entry.op;
|
|
108
|
+
return /* @__PURE__ */ jsx(Pressable, { onPress: () => {
|
|
109
|
+
setOp(entry.op);
|
|
110
|
+
setProbe(null);
|
|
111
|
+
}, style: [styles.opChip, active && styles.opChipOn], children: /* @__PURE__ */ jsx(Text, { style: [styles.opLabel, active && styles.opLabelOn], children: entry.label }) }, entry.op);
|
|
112
|
+
}) }),
|
|
113
|
+
/* @__PURE__ */ jsxs(ScrollView, { style: styles.controls, contentContainerStyle: styles.controlsInner, children: [
|
|
114
|
+
/* @__PURE__ */ jsx(OpControls, { op, form, patch, videos, images, audios }),
|
|
115
|
+
probe ? /* @__PURE__ */ jsx(Text, { style: styles.probe, children: probe }) : null
|
|
116
|
+
] }),
|
|
117
|
+
/* @__PURE__ */ jsx(Pressable, { onPress: apply, disabled: busy !== null, style: [styles.apply, busy && styles.disabled], accessibilityRole: "button", accessibilityLabel: "Apply edit", children: /* @__PURE__ */ jsxs(Text, { style: styles.applyLabel, children: [
|
|
118
|
+
"Apply ",
|
|
119
|
+
opLabel(op)
|
|
120
|
+
] }) })
|
|
121
|
+
] }),
|
|
122
|
+
notice ? /* @__PURE__ */ jsxs(View, { style: styles.notice, children: [
|
|
123
|
+
/* @__PURE__ */ jsx(Text, { style: styles.noticeText, children: notice }),
|
|
124
|
+
/* @__PURE__ */ jsx(Pressable, { onPress: () => setNotice(null), hitSlop: 8, children: /* @__PURE__ */ jsx(Text, { style: styles.noticeDismiss, children: "OK" }) })
|
|
125
|
+
] }) : null
|
|
126
|
+
] });
|
|
127
|
+
}
|
|
128
|
+
const defaultForm = () => ({
|
|
129
|
+
trimStart: 0,
|
|
130
|
+
trimEnd: 10,
|
|
131
|
+
speed: 1.5,
|
|
132
|
+
codec: "h264",
|
|
133
|
+
resolution: "720p",
|
|
134
|
+
gifFps: 10,
|
|
135
|
+
gifWidth: 360,
|
|
136
|
+
thumbTime: 0,
|
|
137
|
+
fps: 30,
|
|
138
|
+
cropX: "0",
|
|
139
|
+
cropY: "0",
|
|
140
|
+
cropW: "iw",
|
|
141
|
+
cropH: "ih",
|
|
142
|
+
padW: "1280",
|
|
143
|
+
padH: "720",
|
|
144
|
+
padColor: "black",
|
|
145
|
+
rotateDeg: 90,
|
|
146
|
+
flipH: false,
|
|
147
|
+
flipV: false,
|
|
148
|
+
fadeInMs: 500,
|
|
149
|
+
fadeOutMs: 500,
|
|
150
|
+
blur: 5,
|
|
151
|
+
denoise: "medium",
|
|
152
|
+
stabilize: 30,
|
|
153
|
+
delogoX: 0,
|
|
154
|
+
delogoY: 0,
|
|
155
|
+
delogoW: 100,
|
|
156
|
+
delogoH: 50,
|
|
157
|
+
brightness: 0,
|
|
158
|
+
contrast: 1,
|
|
159
|
+
saturation: 1,
|
|
160
|
+
volume: 1,
|
|
161
|
+
lufs: -16,
|
|
162
|
+
delayMs: 0,
|
|
163
|
+
overlayText: "",
|
|
164
|
+
overlayX: "10",
|
|
165
|
+
overlayY: "10",
|
|
166
|
+
overlaySize: 24,
|
|
167
|
+
overlayImage: "",
|
|
168
|
+
pipUrl: "",
|
|
169
|
+
subtitleUrl: "",
|
|
170
|
+
chroma: "#00ff00",
|
|
171
|
+
chromaSim: 0.1,
|
|
172
|
+
loop: 2,
|
|
173
|
+
tags: "title=My Video",
|
|
174
|
+
extraUrls: [],
|
|
175
|
+
stackDir: "h",
|
|
176
|
+
transitionUrl: "",
|
|
177
|
+
transitionFx: "fade",
|
|
178
|
+
transitionMs: 1e3,
|
|
179
|
+
addAudioUrl: "",
|
|
180
|
+
extractFps: 1,
|
|
181
|
+
slideSec: 2,
|
|
182
|
+
sheetCols: 5,
|
|
183
|
+
sheetRows: 5
|
|
184
|
+
});
|
|
185
|
+
function paramsFor(op, f) {
|
|
186
|
+
switch (op) {
|
|
187
|
+
case "trim":
|
|
188
|
+
return {
|
|
189
|
+
start_secs: f.trimStart,
|
|
190
|
+
end_secs: f.trimEnd
|
|
191
|
+
};
|
|
192
|
+
case "speed":
|
|
193
|
+
return {
|
|
194
|
+
factor: f.speed
|
|
195
|
+
};
|
|
196
|
+
case "transcode":
|
|
197
|
+
return {
|
|
198
|
+
codec: f.codec,
|
|
199
|
+
resolution: f.resolution
|
|
200
|
+
};
|
|
201
|
+
case "gif":
|
|
202
|
+
return {
|
|
203
|
+
fps: f.gifFps,
|
|
204
|
+
width: f.gifWidth
|
|
205
|
+
};
|
|
206
|
+
case "thumbnail":
|
|
207
|
+
return {
|
|
208
|
+
time_secs: f.thumbTime
|
|
209
|
+
};
|
|
210
|
+
case "fps":
|
|
211
|
+
return {
|
|
212
|
+
fps: f.fps
|
|
213
|
+
};
|
|
214
|
+
case "crop":
|
|
215
|
+
return {
|
|
216
|
+
x: f.cropX,
|
|
217
|
+
y: f.cropY,
|
|
218
|
+
width: f.cropW,
|
|
219
|
+
height: f.cropH
|
|
220
|
+
};
|
|
221
|
+
case "pad":
|
|
222
|
+
return {
|
|
223
|
+
width: f.padW,
|
|
224
|
+
height: f.padH,
|
|
225
|
+
color: f.padColor
|
|
226
|
+
};
|
|
227
|
+
case "rotate":
|
|
228
|
+
return {
|
|
229
|
+
degrees: f.rotateDeg,
|
|
230
|
+
flip_h: f.flipH,
|
|
231
|
+
flip_v: f.flipV
|
|
232
|
+
};
|
|
233
|
+
case "fade":
|
|
234
|
+
return {
|
|
235
|
+
fade_in_ms: f.fadeInMs,
|
|
236
|
+
fade_out_ms: f.fadeOutMs
|
|
237
|
+
};
|
|
238
|
+
case "blur":
|
|
239
|
+
return {
|
|
240
|
+
radius: f.blur
|
|
241
|
+
};
|
|
242
|
+
case "denoise":
|
|
243
|
+
return {
|
|
244
|
+
strength: f.denoise
|
|
245
|
+
};
|
|
246
|
+
case "stabilize":
|
|
247
|
+
return {
|
|
248
|
+
smoothing: f.stabilize
|
|
249
|
+
};
|
|
250
|
+
case "delogo":
|
|
251
|
+
return {
|
|
252
|
+
x: f.delogoX,
|
|
253
|
+
y: f.delogoY,
|
|
254
|
+
width: f.delogoW,
|
|
255
|
+
height: f.delogoH
|
|
256
|
+
};
|
|
257
|
+
case "color_adjust":
|
|
258
|
+
return {
|
|
259
|
+
brightness: f.brightness,
|
|
260
|
+
contrast: f.contrast,
|
|
261
|
+
saturation: f.saturation
|
|
262
|
+
};
|
|
263
|
+
case "volume":
|
|
264
|
+
return {
|
|
265
|
+
level: f.volume
|
|
266
|
+
};
|
|
267
|
+
case "audio_normalize":
|
|
268
|
+
return {
|
|
269
|
+
i: f.lufs
|
|
270
|
+
};
|
|
271
|
+
case "audio_delay":
|
|
272
|
+
return {
|
|
273
|
+
delay_ms: f.delayMs
|
|
274
|
+
};
|
|
275
|
+
case "overlay_text":
|
|
276
|
+
return {
|
|
277
|
+
text: f.overlayText,
|
|
278
|
+
x: f.overlayX,
|
|
279
|
+
y: f.overlayY,
|
|
280
|
+
font_size: f.overlaySize
|
|
281
|
+
};
|
|
282
|
+
case "overlay_image":
|
|
283
|
+
return {
|
|
284
|
+
overlay_image: f.overlayImage
|
|
285
|
+
};
|
|
286
|
+
case "picture_in_picture":
|
|
287
|
+
return {
|
|
288
|
+
overlay: f.pipUrl
|
|
289
|
+
};
|
|
290
|
+
case "burn_subtitles":
|
|
291
|
+
return {
|
|
292
|
+
subtitle_file: f.subtitleUrl
|
|
293
|
+
};
|
|
294
|
+
case "chroma_key":
|
|
295
|
+
return {
|
|
296
|
+
color: f.chroma,
|
|
297
|
+
similarity: f.chromaSim
|
|
298
|
+
};
|
|
299
|
+
case "loop":
|
|
300
|
+
return {
|
|
301
|
+
count: f.loop
|
|
302
|
+
};
|
|
303
|
+
case "metadata": {
|
|
304
|
+
const tags = {};
|
|
305
|
+
f.tags.split("\n").forEach((line) => {
|
|
306
|
+
const eq = line.indexOf("=");
|
|
307
|
+
if (eq > 0) tags[line.slice(0, eq).trim()] = line.slice(eq + 1).trim();
|
|
308
|
+
});
|
|
309
|
+
return {
|
|
310
|
+
tags
|
|
311
|
+
};
|
|
312
|
+
}
|
|
313
|
+
case "concat":
|
|
314
|
+
return {
|
|
315
|
+
input_urls: f.extraUrls
|
|
316
|
+
};
|
|
317
|
+
case "stack":
|
|
318
|
+
return {
|
|
319
|
+
input_urls: f.extraUrls,
|
|
320
|
+
direction: f.stackDir
|
|
321
|
+
};
|
|
322
|
+
case "transition":
|
|
323
|
+
return {
|
|
324
|
+
input2_url: f.transitionUrl,
|
|
325
|
+
effect: f.transitionFx,
|
|
326
|
+
duration_ms: f.transitionMs
|
|
327
|
+
};
|
|
328
|
+
case "add_audio":
|
|
329
|
+
return {
|
|
330
|
+
audio_input_url: f.addAudioUrl
|
|
331
|
+
};
|
|
332
|
+
case "extract_frames":
|
|
333
|
+
return {
|
|
334
|
+
fps: f.extractFps
|
|
335
|
+
};
|
|
336
|
+
case "slideshow":
|
|
337
|
+
return {
|
|
338
|
+
duration_per_image: f.slideSec
|
|
339
|
+
};
|
|
340
|
+
case "contact_sheet":
|
|
341
|
+
return {
|
|
342
|
+
cols: f.sheetCols,
|
|
343
|
+
rows: f.sheetRows
|
|
344
|
+
};
|
|
345
|
+
default:
|
|
346
|
+
return {};
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
function opLabel(op) {
|
|
350
|
+
for (const cat of VIDEO_EDIT_CATEGORIES) {
|
|
351
|
+
const hit = cat.ops.find((o) => o.op === op);
|
|
352
|
+
if (hit) return hit.label;
|
|
353
|
+
}
|
|
354
|
+
return op;
|
|
355
|
+
}
|
|
356
|
+
function OpControls({
|
|
357
|
+
op,
|
|
358
|
+
form,
|
|
359
|
+
patch,
|
|
360
|
+
videos,
|
|
361
|
+
images,
|
|
362
|
+
audios
|
|
363
|
+
}) {
|
|
364
|
+
const hint = INSTANT_HINT[op];
|
|
365
|
+
if (hint) return /* @__PURE__ */ jsx(Text, { style: styles.hint, children: hint });
|
|
366
|
+
if (op === "trim") {
|
|
367
|
+
return /* @__PURE__ */ jsxs(View, { style: styles.row, children: [
|
|
368
|
+
/* @__PURE__ */ jsx(Stepper, { label: "Start", value: `${form.trimStart.toFixed(1)}s`, onLess: () => patch("trimStart", Math.max(0, form.trimStart - 0.5)), onMore: () => patch("trimStart", Math.min(form.trimEnd - 0.5, form.trimStart + 0.5)) }),
|
|
369
|
+
/* @__PURE__ */ jsx(Stepper, { label: "End", value: `${form.trimEnd.toFixed(1)}s`, onLess: () => patch("trimEnd", Math.max(form.trimStart + 0.5, form.trimEnd - 0.5)), onMore: () => patch("trimEnd", form.trimEnd + 0.5) })
|
|
370
|
+
] });
|
|
371
|
+
}
|
|
372
|
+
if (op === "speed") {
|
|
373
|
+
return /* @__PURE__ */ jsx(View, { style: styles.row, children: [0.25, 0.5, 1.5, 2, 4].map((factor) => /* @__PURE__ */ jsx(Pressable, { onPress: () => patch("speed", factor), style: [styles.choice, form.speed === factor && styles.choiceOn], children: /* @__PURE__ */ jsxs(Text, { style: [styles.choiceLabel, form.speed === factor && styles.choiceLabelOn], children: [
|
|
374
|
+
factor,
|
|
375
|
+
"\xD7"
|
|
376
|
+
] }) }, factor)) });
|
|
377
|
+
}
|
|
378
|
+
if (op === "transcode") {
|
|
379
|
+
return /* @__PURE__ */ jsxs(View, { style: styles.row, children: [
|
|
380
|
+
["h264", "h265", "av1"].map((codec) => /* @__PURE__ */ jsx(Pressable, { onPress: () => patch("codec", codec), style: [styles.choice, form.codec === codec && styles.choiceOn], children: /* @__PURE__ */ jsx(Text, { style: [styles.choiceLabel, form.codec === codec && styles.choiceLabelOn], children: codec.toUpperCase() }) }, codec)),
|
|
381
|
+
["720p", "1080p", "4k"].map((res) => /* @__PURE__ */ jsx(Pressable, { onPress: () => patch("resolution", res), style: [styles.choice, form.resolution === res && styles.choiceOn], children: /* @__PURE__ */ jsx(Text, { style: [styles.choiceLabel, form.resolution === res && styles.choiceLabelOn], children: res }) }, res))
|
|
382
|
+
] });
|
|
383
|
+
}
|
|
384
|
+
if (op === "gif") {
|
|
385
|
+
return /* @__PURE__ */ jsxs(View, { style: styles.row, children: [
|
|
386
|
+
/* @__PURE__ */ jsx(Stepper, { label: "FPS", value: `${form.gifFps}`, onLess: () => patch("gifFps", Math.max(5, form.gifFps - 1)), onMore: () => patch("gifFps", Math.min(24, form.gifFps + 1)) }),
|
|
387
|
+
[360, 480, 640].map((w) => /* @__PURE__ */ jsx(Pressable, { onPress: () => patch("gifWidth", w), style: [styles.choice, form.gifWidth === w && styles.choiceOn], children: /* @__PURE__ */ jsxs(Text, { style: [styles.choiceLabel, form.gifWidth === w && styles.choiceLabelOn], children: [
|
|
388
|
+
w,
|
|
389
|
+
"px"
|
|
390
|
+
] }) }, w))
|
|
391
|
+
] });
|
|
392
|
+
}
|
|
393
|
+
if (op === "thumbnail") {
|
|
394
|
+
return /* @__PURE__ */ jsx(Stepper, { label: "At", value: `${form.thumbTime.toFixed(1)}s`, onLess: () => patch("thumbTime", Math.max(0, form.thumbTime - 0.5)), onMore: () => patch("thumbTime", form.thumbTime + 0.5) });
|
|
395
|
+
}
|
|
396
|
+
if (op === "fps") {
|
|
397
|
+
return /* @__PURE__ */ jsx(View, { style: styles.row, children: [24, 30, 60].map((n) => /* @__PURE__ */ jsx(Pressable, { onPress: () => patch("fps", n), style: [styles.choice, form.fps === n && styles.choiceOn], children: /* @__PURE__ */ jsxs(Text, { style: [styles.choiceLabel, form.fps === n && styles.choiceLabelOn], children: [
|
|
398
|
+
n,
|
|
399
|
+
" fps"
|
|
400
|
+
] }) }, n)) });
|
|
401
|
+
}
|
|
402
|
+
if (op === "crop") {
|
|
403
|
+
return /* @__PURE__ */ jsxs(View, { style: styles.grid, children: [
|
|
404
|
+
/* @__PURE__ */ jsx(Field, { label: "X", value: form.cropX, onChange: (v) => patch("cropX", v) }),
|
|
405
|
+
/* @__PURE__ */ jsx(Field, { label: "Y", value: form.cropY, onChange: (v) => patch("cropY", v) }),
|
|
406
|
+
/* @__PURE__ */ jsx(Field, { label: "Width", value: form.cropW, onChange: (v) => patch("cropW", v) }),
|
|
407
|
+
/* @__PURE__ */ jsx(Field, { label: "Height", value: form.cropH, onChange: (v) => patch("cropH", v) })
|
|
408
|
+
] });
|
|
409
|
+
}
|
|
410
|
+
if (op === "pad") {
|
|
411
|
+
return /* @__PURE__ */ jsxs(View, { style: styles.grid, children: [
|
|
412
|
+
/* @__PURE__ */ jsx(Field, { label: "Width", value: form.padW, onChange: (v) => patch("padW", v) }),
|
|
413
|
+
/* @__PURE__ */ jsx(Field, { label: "Height", value: form.padH, onChange: (v) => patch("padH", v) }),
|
|
414
|
+
/* @__PURE__ */ jsx(Field, { label: "Color", value: form.padColor, onChange: (v) => patch("padColor", v) })
|
|
415
|
+
] });
|
|
416
|
+
}
|
|
417
|
+
if (op === "rotate") {
|
|
418
|
+
return /* @__PURE__ */ jsxs(View, { style: styles.row, children: [
|
|
419
|
+
[90, 180, 270].map((deg) => /* @__PURE__ */ jsx(Pressable, { onPress: () => patch("rotateDeg", deg), style: [styles.choice, form.rotateDeg === deg && styles.choiceOn], children: /* @__PURE__ */ jsxs(Text, { style: [styles.choiceLabel, form.rotateDeg === deg && styles.choiceLabelOn], children: [
|
|
420
|
+
deg,
|
|
421
|
+
"\xB0"
|
|
422
|
+
] }) }, deg)),
|
|
423
|
+
/* @__PURE__ */ jsx(Pressable, { onPress: () => patch("flipH", !form.flipH), style: [styles.choice, form.flipH && styles.choiceOn], children: /* @__PURE__ */ jsx(Text, { style: [styles.choiceLabel, form.flipH && styles.choiceLabelOn], children: "Flip H" }) }),
|
|
424
|
+
/* @__PURE__ */ jsx(Pressable, { onPress: () => patch("flipV", !form.flipV), style: [styles.choice, form.flipV && styles.choiceOn], children: /* @__PURE__ */ jsx(Text, { style: [styles.choiceLabel, form.flipV && styles.choiceLabelOn], children: "Flip V" }) })
|
|
425
|
+
] });
|
|
426
|
+
}
|
|
427
|
+
if (op === "fade") {
|
|
428
|
+
return /* @__PURE__ */ jsxs(View, { style: styles.row, children: [
|
|
429
|
+
/* @__PURE__ */ jsx(Stepper, { label: "In", value: `${form.fadeInMs}ms`, onLess: () => patch("fadeInMs", Math.max(0, form.fadeInMs - 100)), onMore: () => patch("fadeInMs", form.fadeInMs + 100) }),
|
|
430
|
+
/* @__PURE__ */ jsx(Stepper, { label: "Out", value: `${form.fadeOutMs}ms`, onLess: () => patch("fadeOutMs", Math.max(0, form.fadeOutMs - 100)), onMore: () => patch("fadeOutMs", form.fadeOutMs + 100) })
|
|
431
|
+
] });
|
|
432
|
+
}
|
|
433
|
+
if (op === "blur") {
|
|
434
|
+
return /* @__PURE__ */ jsx(Stepper, { label: "Radius", value: `${form.blur}`, onLess: () => patch("blur", Math.max(1, form.blur - 1)), onMore: () => patch("blur", form.blur + 1) });
|
|
435
|
+
}
|
|
436
|
+
if (op === "denoise") {
|
|
437
|
+
return /* @__PURE__ */ jsx(View, { style: styles.row, children: ["light", "medium", "strong"].map((level) => /* @__PURE__ */ jsx(Pressable, { onPress: () => patch("denoise", level), style: [styles.choice, form.denoise === level && styles.choiceOn], children: /* @__PURE__ */ jsx(Text, { style: [styles.choiceLabel, form.denoise === level && styles.choiceLabelOn], children: level }) }, level)) });
|
|
438
|
+
}
|
|
439
|
+
if (op === "stabilize") {
|
|
440
|
+
return /* @__PURE__ */ jsx(Stepper, { label: "Smooth", value: `${form.stabilize}`, onLess: () => patch("stabilize", Math.max(1, form.stabilize - 5)), onMore: () => patch("stabilize", Math.min(60, form.stabilize + 5)) });
|
|
441
|
+
}
|
|
442
|
+
if (op === "delogo") {
|
|
443
|
+
return /* @__PURE__ */ jsxs(View, { style: styles.grid, children: [
|
|
444
|
+
/* @__PURE__ */ jsx(Stepper, { label: "X", value: `${form.delogoX}`, onLess: () => patch("delogoX", Math.max(0, form.delogoX - 8)), onMore: () => patch("delogoX", form.delogoX + 8) }),
|
|
445
|
+
/* @__PURE__ */ jsx(Stepper, { label: "Y", value: `${form.delogoY}`, onLess: () => patch("delogoY", Math.max(0, form.delogoY - 8)), onMore: () => patch("delogoY", form.delogoY + 8) }),
|
|
446
|
+
/* @__PURE__ */ jsx(Stepper, { label: "W", value: `${form.delogoW}`, onLess: () => patch("delogoW", Math.max(8, form.delogoW - 8)), onMore: () => patch("delogoW", form.delogoW + 8) }),
|
|
447
|
+
/* @__PURE__ */ jsx(Stepper, { label: "H", value: `${form.delogoH}`, onLess: () => patch("delogoH", Math.max(8, form.delogoH - 8)), onMore: () => patch("delogoH", form.delogoH + 8) })
|
|
448
|
+
] });
|
|
449
|
+
}
|
|
450
|
+
if (op === "color_adjust") {
|
|
451
|
+
return /* @__PURE__ */ jsxs(View, { style: styles.row, children: [
|
|
452
|
+
/* @__PURE__ */ jsx(Stepper, { label: "Bright", value: form.brightness.toFixed(1), onLess: () => patch("brightness", Math.round((form.brightness - 0.1) * 10) / 10), onMore: () => patch("brightness", Math.round((form.brightness + 0.1) * 10) / 10) }),
|
|
453
|
+
/* @__PURE__ */ jsx(Stepper, { label: "Contrast", value: form.contrast.toFixed(1), onLess: () => patch("contrast", Math.max(0, Math.round((form.contrast - 0.1) * 10) / 10)), onMore: () => patch("contrast", Math.round((form.contrast + 0.1) * 10) / 10) }),
|
|
454
|
+
/* @__PURE__ */ jsx(Stepper, { label: "Sat", value: form.saturation.toFixed(1), onLess: () => patch("saturation", Math.max(0, Math.round((form.saturation - 0.1) * 10) / 10)), onMore: () => patch("saturation", Math.round((form.saturation + 0.1) * 10) / 10) })
|
|
455
|
+
] });
|
|
456
|
+
}
|
|
457
|
+
if (op === "volume") {
|
|
458
|
+
return /* @__PURE__ */ jsx(View, { style: styles.row, children: [0.25, 0.5, 1, 1.5, 2].map((level) => /* @__PURE__ */ jsx(Pressable, { onPress: () => patch("volume", level), style: [styles.choice, form.volume === level && styles.choiceOn], children: /* @__PURE__ */ jsxs(Text, { style: [styles.choiceLabel, form.volume === level && styles.choiceLabelOn], children: [
|
|
459
|
+
Math.round(level * 100),
|
|
460
|
+
"%"
|
|
461
|
+
] }) }, level)) });
|
|
462
|
+
}
|
|
463
|
+
if (op === "audio_normalize") {
|
|
464
|
+
return /* @__PURE__ */ jsx(Stepper, { label: "LUFS", value: `${form.lufs}`, onLess: () => patch("lufs", form.lufs - 1), onMore: () => patch("lufs", form.lufs + 1) });
|
|
465
|
+
}
|
|
466
|
+
if (op === "audio_delay") {
|
|
467
|
+
return /* @__PURE__ */ jsx(Stepper, { label: "Delay", value: `${form.delayMs}ms`, onLess: () => patch("delayMs", Math.max(0, form.delayMs - 50)), onMore: () => patch("delayMs", form.delayMs + 50) });
|
|
468
|
+
}
|
|
469
|
+
if (op === "overlay_text") {
|
|
470
|
+
return /* @__PURE__ */ jsxs(View, { children: [
|
|
471
|
+
/* @__PURE__ */ jsx(Field, { label: "Text", value: form.overlayText, onChange: (v) => patch("overlayText", v) }),
|
|
472
|
+
/* @__PURE__ */ jsxs(View, { style: styles.row, children: [
|
|
473
|
+
/* @__PURE__ */ jsx(Field, { label: "X", value: form.overlayX, onChange: (v) => patch("overlayX", v) }),
|
|
474
|
+
/* @__PURE__ */ jsx(Field, { label: "Y", value: form.overlayY, onChange: (v) => patch("overlayY", v) }),
|
|
475
|
+
/* @__PURE__ */ jsx(Stepper, { label: "Size", value: `${form.overlaySize}`, onLess: () => patch("overlaySize", Math.max(10, form.overlaySize - 2)), onMore: () => patch("overlaySize", form.overlaySize + 2) })
|
|
476
|
+
] })
|
|
477
|
+
] });
|
|
478
|
+
}
|
|
479
|
+
if (op === "overlay_image") {
|
|
480
|
+
return /* @__PURE__ */ jsx(PickRow, { label: "Overlay image", items: images, selected: form.overlayImage, onSelect: (url) => patch("overlayImage", url), empty: "Add an image to the board first." });
|
|
481
|
+
}
|
|
482
|
+
if (op === "picture_in_picture") {
|
|
483
|
+
return /* @__PURE__ */ jsx(PickRow, { label: "PiP clip", items: [...videos, ...images], selected: form.pipUrl, onSelect: (url) => patch("pipUrl", url), empty: "Add another clip or image to the board." });
|
|
484
|
+
}
|
|
485
|
+
if (op === "burn_subtitles") {
|
|
486
|
+
return /* @__PURE__ */ jsx(Field, { label: "Subtitle URL", value: form.subtitleUrl, onChange: (v) => patch("subtitleUrl", v) });
|
|
487
|
+
}
|
|
488
|
+
if (op === "chroma_key") {
|
|
489
|
+
return /* @__PURE__ */ jsxs(View, { style: styles.row, children: [
|
|
490
|
+
/* @__PURE__ */ jsx(Field, { label: "Color", value: form.chroma, onChange: (v) => patch("chroma", v) }),
|
|
491
|
+
/* @__PURE__ */ jsx(Stepper, { label: "Sim", value: form.chromaSim.toFixed(2), onLess: () => patch("chromaSim", Math.max(0, Math.round((form.chromaSim - 0.05) * 100) / 100)), onMore: () => patch("chromaSim", Math.round((form.chromaSim + 0.05) * 100) / 100) })
|
|
492
|
+
] });
|
|
493
|
+
}
|
|
494
|
+
if (op === "loop") {
|
|
495
|
+
return /* @__PURE__ */ jsx(Stepper, { label: "Count", value: `${form.loop}`, onLess: () => patch("loop", Math.max(1, form.loop - 1)), onMore: () => patch("loop", form.loop + 1) });
|
|
496
|
+
}
|
|
497
|
+
if (op === "metadata") {
|
|
498
|
+
return /* @__PURE__ */ jsx(Field, { label: "Tags (key=value)", value: form.tags, onChange: (v) => patch("tags", v), multiline: true });
|
|
499
|
+
}
|
|
500
|
+
if (op === "concat" || op === "stack") {
|
|
501
|
+
return /* @__PURE__ */ jsxs(View, { children: [
|
|
502
|
+
op === "stack" ? /* @__PURE__ */ jsxs(View, { style: styles.row, children: [
|
|
503
|
+
/* @__PURE__ */ jsx(Pressable, { onPress: () => patch("stackDir", "h"), style: [styles.choice, form.stackDir === "h" && styles.choiceOn], children: /* @__PURE__ */ jsx(Text, { style: [styles.choiceLabel, form.stackDir === "h" && styles.choiceLabelOn], children: "Horizontal" }) }),
|
|
504
|
+
/* @__PURE__ */ jsx(Pressable, { onPress: () => patch("stackDir", "v"), style: [styles.choice, form.stackDir === "v" && styles.choiceOn], children: /* @__PURE__ */ jsx(Text, { style: [styles.choiceLabel, form.stackDir === "v" && styles.choiceLabelOn], children: "Vertical" }) })
|
|
505
|
+
] }) : null,
|
|
506
|
+
/* @__PURE__ */ jsx(PickMulti, { items: videos, selected: form.extraUrls, onChange: (urls) => patch("extraUrls", urls), empty: "Add more videos to the board." })
|
|
507
|
+
] });
|
|
508
|
+
}
|
|
509
|
+
if (op === "slideshow") {
|
|
510
|
+
return /* @__PURE__ */ jsx(Stepper, { label: "Each", value: `${form.slideSec}s`, onLess: () => patch("slideSec", Math.max(0.5, form.slideSec - 0.5)), onMore: () => patch("slideSec", form.slideSec + 0.5) });
|
|
511
|
+
}
|
|
512
|
+
if (op === "transition") {
|
|
513
|
+
return /* @__PURE__ */ jsxs(View, { children: [
|
|
514
|
+
/* @__PURE__ */ jsx(PickRow, { label: "Second clip", items: videos, selected: form.transitionUrl, onSelect: (url) => patch("transitionUrl", url), empty: "Add another video to the board." }),
|
|
515
|
+
/* @__PURE__ */ jsx(View, { style: styles.row, children: ["fade", "wipeleft", "slideright", "circlecrop"].map((fx) => /* @__PURE__ */ jsx(Pressable, { onPress: () => patch("transitionFx", fx), style: [styles.choice, form.transitionFx === fx && styles.choiceOn], children: /* @__PURE__ */ jsx(Text, { style: [styles.choiceLabel, form.transitionFx === fx && styles.choiceLabelOn], children: fx }) }, fx)) }),
|
|
516
|
+
/* @__PURE__ */ jsx(Stepper, { label: "Ms", value: `${form.transitionMs}`, onLess: () => patch("transitionMs", Math.max(200, form.transitionMs - 200)), onMore: () => patch("transitionMs", form.transitionMs + 200) })
|
|
517
|
+
] });
|
|
518
|
+
}
|
|
519
|
+
if (op === "add_audio") {
|
|
520
|
+
return /* @__PURE__ */ jsx(PickRow, { label: "Audio", items: audios, selected: form.addAudioUrl, onSelect: (url) => patch("addAudioUrl", url), empty: "Add an audio item to the board." });
|
|
521
|
+
}
|
|
522
|
+
if (op === "extract_frames") {
|
|
523
|
+
return /* @__PURE__ */ jsx(Stepper, { label: "FPS", value: `${form.extractFps}`, onLess: () => patch("extractFps", Math.max(1, form.extractFps - 1)), onMore: () => patch("extractFps", form.extractFps + 1) });
|
|
524
|
+
}
|
|
525
|
+
if (op === "contact_sheet") {
|
|
526
|
+
return /* @__PURE__ */ jsxs(View, { style: styles.row, children: [
|
|
527
|
+
/* @__PURE__ */ jsx(Stepper, { label: "Cols", value: `${form.sheetCols}`, onLess: () => patch("sheetCols", Math.max(1, form.sheetCols - 1)), onMore: () => patch("sheetCols", form.sheetCols + 1) }),
|
|
528
|
+
/* @__PURE__ */ jsx(Stepper, { label: "Rows", value: `${form.sheetRows}`, onLess: () => patch("sheetRows", Math.max(1, form.sheetRows - 1)), onMore: () => patch("sheetRows", form.sheetRows + 1) })
|
|
529
|
+
] });
|
|
530
|
+
}
|
|
531
|
+
return /* @__PURE__ */ jsx(Text, { style: styles.hint, children: "Apply to run this edit." });
|
|
532
|
+
}
|
|
533
|
+
function Field({
|
|
534
|
+
label,
|
|
535
|
+
value,
|
|
536
|
+
onChange,
|
|
537
|
+
multiline
|
|
538
|
+
}) {
|
|
539
|
+
return /* @__PURE__ */ jsxs(View, { style: styles.field, children: [
|
|
540
|
+
/* @__PURE__ */ jsx(Text, { style: styles.fieldLabel, children: label }),
|
|
541
|
+
/* @__PURE__ */ jsx(TextInput, { value, onChangeText: onChange, style: [styles.fieldInput, multiline && styles.fieldMulti], placeholderTextColor: "#5A5A66", autoCapitalize: "none", autoCorrect: false, multiline })
|
|
542
|
+
] });
|
|
543
|
+
}
|
|
544
|
+
function Stepper({
|
|
545
|
+
label,
|
|
546
|
+
value,
|
|
547
|
+
onLess,
|
|
548
|
+
onMore
|
|
549
|
+
}) {
|
|
550
|
+
return /* @__PURE__ */ jsxs(View, { style: styles.stepper, children: [
|
|
551
|
+
/* @__PURE__ */ jsx(Text, { style: styles.stepperLabel, children: label }),
|
|
552
|
+
/* @__PURE__ */ jsx(Pressable, { onPress: onLess, hitSlop: 8, accessibilityRole: "button", accessibilityLabel: `${label} less`, children: /* @__PURE__ */ jsx(MaterialCommunityIcons, { name: "minus", size: 15, color: "#F7F7FA" }) }),
|
|
553
|
+
/* @__PURE__ */ jsx(Text, { style: styles.stepperValue, children: value }),
|
|
554
|
+
/* @__PURE__ */ jsx(Pressable, { onPress: onMore, hitSlop: 8, accessibilityRole: "button", accessibilityLabel: `${label} more`, children: /* @__PURE__ */ jsx(MaterialCommunityIcons, { name: "plus", size: 15, color: "#F7F7FA" }) })
|
|
555
|
+
] });
|
|
556
|
+
}
|
|
557
|
+
function PickRow({
|
|
558
|
+
label,
|
|
559
|
+
items,
|
|
560
|
+
selected,
|
|
561
|
+
onSelect,
|
|
562
|
+
empty
|
|
563
|
+
}) {
|
|
564
|
+
if (items.length === 0) return /* @__PURE__ */ jsx(Text, { style: styles.hint, children: empty });
|
|
565
|
+
return /* @__PURE__ */ jsxs(View, { children: [
|
|
566
|
+
/* @__PURE__ */ jsx(Text, { style: styles.fieldLabel, children: label }),
|
|
567
|
+
/* @__PURE__ */ jsx(ScrollView, { horizontal: true, showsHorizontalScrollIndicator: false, contentContainerStyle: styles.row, children: items.map((item) => {
|
|
568
|
+
const on = item.src === selected;
|
|
569
|
+
return /* @__PURE__ */ jsx(Pressable, { onPress: () => onSelect(item.src), style: [styles.choice, on && styles.choiceOn], children: /* @__PURE__ */ jsx(Text, { style: [styles.choiceLabel, on && styles.choiceLabelOn], numberOfLines: 1, children: item.generatedAssetName || item.type }) }, item.id);
|
|
570
|
+
}) })
|
|
571
|
+
] });
|
|
572
|
+
}
|
|
573
|
+
function PickMulti({
|
|
574
|
+
items,
|
|
575
|
+
selected,
|
|
576
|
+
onChange,
|
|
577
|
+
empty
|
|
578
|
+
}) {
|
|
579
|
+
if (items.length === 0) return /* @__PURE__ */ jsx(Text, { style: styles.hint, children: empty });
|
|
580
|
+
return /* @__PURE__ */ jsx(ScrollView, { horizontal: true, showsHorizontalScrollIndicator: false, contentContainerStyle: styles.row, children: items.map((item) => {
|
|
581
|
+
const on = selected.includes(item.src);
|
|
582
|
+
return /* @__PURE__ */ jsx(Pressable, { onPress: () => onChange(on ? selected.filter((u) => u !== item.src) : [...selected, item.src]), style: [styles.choice, on && styles.choiceOn], children: /* @__PURE__ */ jsx(Text, { style: [styles.choiceLabel, on && styles.choiceLabelOn], numberOfLines: 1, children: item.generatedAssetName || item.type }) }, item.id);
|
|
583
|
+
}) });
|
|
584
|
+
}
|
|
585
|
+
const styles = StyleSheet.create({
|
|
586
|
+
root: {
|
|
587
|
+
flex: 1,
|
|
588
|
+
backgroundColor: "#0A0A0C"
|
|
589
|
+
},
|
|
590
|
+
header: {
|
|
591
|
+
flexDirection: "row",
|
|
592
|
+
alignItems: "center",
|
|
593
|
+
justifyContent: "space-between",
|
|
594
|
+
paddingHorizontal: 16,
|
|
595
|
+
paddingVertical: 12,
|
|
596
|
+
gap: 12
|
|
597
|
+
},
|
|
598
|
+
headerTitle: {
|
|
599
|
+
flex: 1,
|
|
600
|
+
color: "#F7F7FA",
|
|
601
|
+
fontSize: 15,
|
|
602
|
+
fontWeight: "600",
|
|
603
|
+
textAlign: "center"
|
|
604
|
+
},
|
|
605
|
+
headerActions: {
|
|
606
|
+
flexDirection: "row",
|
|
607
|
+
alignItems: "center",
|
|
608
|
+
gap: 16
|
|
609
|
+
},
|
|
610
|
+
done: {
|
|
611
|
+
color: "#8B7CFF",
|
|
612
|
+
fontSize: 15,
|
|
613
|
+
fontWeight: "600"
|
|
614
|
+
},
|
|
615
|
+
disabled: {
|
|
616
|
+
opacity: 0.35
|
|
617
|
+
},
|
|
618
|
+
stage: {
|
|
619
|
+
flex: 1,
|
|
620
|
+
marginHorizontal: 14,
|
|
621
|
+
borderRadius: 18,
|
|
622
|
+
backgroundColor: "#0F0F14",
|
|
623
|
+
overflow: "hidden",
|
|
624
|
+
alignItems: "center",
|
|
625
|
+
justifyContent: "center"
|
|
626
|
+
},
|
|
627
|
+
playBtn: {
|
|
628
|
+
position: "absolute",
|
|
629
|
+
width: 52,
|
|
630
|
+
height: 52,
|
|
631
|
+
borderRadius: 26,
|
|
632
|
+
backgroundColor: "#F7F7FA",
|
|
633
|
+
alignItems: "center",
|
|
634
|
+
justifyContent: "center"
|
|
635
|
+
},
|
|
636
|
+
busyVeil: __spreadProps(__spreadValues({}, StyleSheet.absoluteFillObject), {
|
|
637
|
+
borderRadius: 18,
|
|
638
|
+
alignItems: "center",
|
|
639
|
+
justifyContent: "center",
|
|
640
|
+
gap: 10,
|
|
641
|
+
backgroundColor: "rgba(10, 10, 12, 0.55)"
|
|
642
|
+
}),
|
|
643
|
+
busyLabel: {
|
|
644
|
+
color: "#E8E8EE",
|
|
645
|
+
fontSize: 12.5
|
|
646
|
+
},
|
|
647
|
+
panel: {
|
|
648
|
+
maxHeight: "48%",
|
|
649
|
+
borderTopWidth: StyleSheet.hairlineWidth,
|
|
650
|
+
borderTopColor: "rgba(255,255,255,0.08)",
|
|
651
|
+
paddingBottom: 10
|
|
652
|
+
},
|
|
653
|
+
chipScroll: {
|
|
654
|
+
flexGrow: 0
|
|
655
|
+
},
|
|
656
|
+
chipRow: {
|
|
657
|
+
paddingHorizontal: 12,
|
|
658
|
+
paddingTop: 8,
|
|
659
|
+
gap: 6,
|
|
660
|
+
flexDirection: "row"
|
|
661
|
+
},
|
|
662
|
+
catChip: {
|
|
663
|
+
paddingHorizontal: 10,
|
|
664
|
+
paddingVertical: 6,
|
|
665
|
+
borderRadius: 999,
|
|
666
|
+
backgroundColor: "#1F1F24"
|
|
667
|
+
},
|
|
668
|
+
catChipOn: {
|
|
669
|
+
backgroundColor: "#F7F7FA"
|
|
670
|
+
},
|
|
671
|
+
catLabel: {
|
|
672
|
+
color: "#9A9AA5",
|
|
673
|
+
fontSize: 11,
|
|
674
|
+
fontWeight: "600"
|
|
675
|
+
},
|
|
676
|
+
catLabelOn: {
|
|
677
|
+
color: "#0A0A0C"
|
|
678
|
+
},
|
|
679
|
+
opChip: {
|
|
680
|
+
paddingHorizontal: 10,
|
|
681
|
+
paddingVertical: 5,
|
|
682
|
+
borderRadius: 999,
|
|
683
|
+
backgroundColor: "#16161A"
|
|
684
|
+
},
|
|
685
|
+
opChipOn: {
|
|
686
|
+
backgroundColor: "#8B7CFF"
|
|
687
|
+
},
|
|
688
|
+
opLabel: {
|
|
689
|
+
color: "#C8C8D0",
|
|
690
|
+
fontSize: 12,
|
|
691
|
+
fontWeight: "500"
|
|
692
|
+
},
|
|
693
|
+
opLabelOn: {
|
|
694
|
+
color: "#0A0A0C"
|
|
695
|
+
},
|
|
696
|
+
controls: {
|
|
697
|
+
maxHeight: 140,
|
|
698
|
+
marginTop: 6
|
|
699
|
+
},
|
|
700
|
+
controlsInner: {
|
|
701
|
+
paddingHorizontal: 14,
|
|
702
|
+
paddingBottom: 8,
|
|
703
|
+
gap: 8
|
|
704
|
+
},
|
|
705
|
+
apply: {
|
|
706
|
+
marginHorizontal: 14,
|
|
707
|
+
marginTop: 4,
|
|
708
|
+
height: 40,
|
|
709
|
+
borderRadius: 10,
|
|
710
|
+
backgroundColor: "#8B7CFF",
|
|
711
|
+
alignItems: "center",
|
|
712
|
+
justifyContent: "center"
|
|
713
|
+
},
|
|
714
|
+
applyLabel: {
|
|
715
|
+
color: "#0A0A0C",
|
|
716
|
+
fontSize: 14,
|
|
717
|
+
fontWeight: "700"
|
|
718
|
+
},
|
|
719
|
+
row: {
|
|
720
|
+
flexDirection: "row",
|
|
721
|
+
alignItems: "center",
|
|
722
|
+
gap: 8,
|
|
723
|
+
flexWrap: "wrap",
|
|
724
|
+
paddingVertical: 4
|
|
725
|
+
},
|
|
726
|
+
grid: {
|
|
727
|
+
flexDirection: "row",
|
|
728
|
+
flexWrap: "wrap",
|
|
729
|
+
gap: 8
|
|
730
|
+
},
|
|
731
|
+
hint: {
|
|
732
|
+
color: "#9A9AA5",
|
|
733
|
+
fontSize: 13,
|
|
734
|
+
lineHeight: 18
|
|
735
|
+
},
|
|
736
|
+
probe: {
|
|
737
|
+
color: "#C8C8D0",
|
|
738
|
+
fontSize: 11,
|
|
739
|
+
fontFamily: "Menlo",
|
|
740
|
+
marginTop: 6
|
|
741
|
+
},
|
|
742
|
+
choice: {
|
|
743
|
+
paddingHorizontal: 12,
|
|
744
|
+
paddingVertical: 8,
|
|
745
|
+
borderRadius: 9,
|
|
746
|
+
backgroundColor: "#1F1F24",
|
|
747
|
+
maxWidth: 140
|
|
748
|
+
},
|
|
749
|
+
choiceOn: {
|
|
750
|
+
backgroundColor: "#8B7CFF"
|
|
751
|
+
},
|
|
752
|
+
choiceLabel: {
|
|
753
|
+
color: "#F7F7FA",
|
|
754
|
+
fontSize: 12.5,
|
|
755
|
+
fontWeight: "500"
|
|
756
|
+
},
|
|
757
|
+
choiceLabelOn: {
|
|
758
|
+
color: "#0A0A0C"
|
|
759
|
+
},
|
|
760
|
+
field: {
|
|
761
|
+
minWidth: 88,
|
|
762
|
+
flexGrow: 1
|
|
763
|
+
},
|
|
764
|
+
fieldLabel: {
|
|
765
|
+
color: "#9A9AA5",
|
|
766
|
+
fontSize: 11,
|
|
767
|
+
marginBottom: 4
|
|
768
|
+
},
|
|
769
|
+
fieldInput: {
|
|
770
|
+
color: "#F7F7FA",
|
|
771
|
+
fontSize: 13,
|
|
772
|
+
paddingHorizontal: 10,
|
|
773
|
+
paddingVertical: 8,
|
|
774
|
+
borderRadius: 9,
|
|
775
|
+
backgroundColor: "#1F1F24"
|
|
776
|
+
},
|
|
777
|
+
fieldMulti: {
|
|
778
|
+
minHeight: 56,
|
|
779
|
+
textAlignVertical: "top"
|
|
780
|
+
},
|
|
781
|
+
stepper: {
|
|
782
|
+
flexDirection: "row",
|
|
783
|
+
alignItems: "center",
|
|
784
|
+
gap: 9,
|
|
785
|
+
paddingHorizontal: 12,
|
|
786
|
+
paddingVertical: 8,
|
|
787
|
+
borderRadius: 9,
|
|
788
|
+
backgroundColor: "#1F1F24"
|
|
789
|
+
},
|
|
790
|
+
stepperLabel: {
|
|
791
|
+
color: "#9A9AA5",
|
|
792
|
+
fontSize: 11.5
|
|
793
|
+
},
|
|
794
|
+
stepperValue: {
|
|
795
|
+
color: "#F7F7FA",
|
|
796
|
+
fontSize: 12.5,
|
|
797
|
+
fontVariant: ["tabular-nums"],
|
|
798
|
+
minWidth: 44,
|
|
799
|
+
textAlign: "center"
|
|
800
|
+
},
|
|
801
|
+
notice: {
|
|
802
|
+
position: "absolute",
|
|
803
|
+
left: 20,
|
|
804
|
+
right: 20,
|
|
805
|
+
bottom: 24,
|
|
806
|
+
flexDirection: "row",
|
|
807
|
+
alignItems: "center",
|
|
808
|
+
gap: 12,
|
|
809
|
+
paddingHorizontal: 14,
|
|
810
|
+
paddingVertical: 11,
|
|
811
|
+
borderRadius: 12,
|
|
812
|
+
backgroundColor: "rgba(248, 250, 252, 0.96)"
|
|
813
|
+
},
|
|
814
|
+
noticeText: {
|
|
815
|
+
flex: 1,
|
|
816
|
+
color: "#0f172a",
|
|
817
|
+
fontSize: 13
|
|
818
|
+
},
|
|
819
|
+
noticeDismiss: {
|
|
820
|
+
color: "#6C5CE7",
|
|
821
|
+
fontSize: 13,
|
|
822
|
+
fontWeight: "600"
|
|
823
|
+
}
|
|
824
|
+
});export{VideoEditExperience};//# sourceMappingURL=VideoEditExperience.js.map
|