@buildcores/render-client 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.esm.js","sources":["../src/hooks/useVideoScrubbing.ts","../node_modules/framer-motion/dist/es/context/MotionConfigContext.mjs","../node_modules/motion-utils/dist/es/noop.mjs","../node_modules/motion-utils/dist/es/errors.mjs","../node_modules/framer-motion/dist/es/frameloop/render-step.mjs","../node_modules/framer-motion/dist/es/frameloop/batcher.mjs","../node_modules/framer-motion/dist/es/frameloop/frame.mjs","../node_modules/framer-motion/dist/es/utils/use-animation-frame.mjs","../src/hooks/useProgressOneSecond.ts","../src/types.ts","../src/api.ts","../src/hooks/useBuildRender.ts","../src/components/LoadingErrorOverlay.tsx","../src/components/DragIcon.tsx","../src/components/InstructionTooltip.tsx","../src/BuildRender.tsx"],"sourcesContent":["import {\n useState,\n useRef,\n useEffect,\n useCallback,\n type RefObject,\n} from \"react\";\n\n// Helper to extract clientX from mouse or touch events\nconst getClientX = (e: MouseEvent | TouchEvent): number => {\n return \"touches\" in e ? e.touches[0].clientX : e.clientX;\n};\n\n// Helper to calculate new video time with circular wrapping\nexport const calculateCircularTime = (\n startTime: number,\n deltaX: number,\n sensitivity: number,\n duration: number\n): number => {\n const timeDelta = deltaX * sensitivity;\n let newTime = startTime + timeDelta;\n\n // Make it circular - wrap around when going past boundaries\n newTime = newTime % duration;\n if (newTime < 0) {\n newTime += duration;\n }\n\n return newTime;\n};\n\ninterface UseVideoScrubbingOptions {\n mouseSensitivity?: number;\n touchSensitivity?: number;\n progressSensitivity?: number;\n useProgressScrubbing?: boolean;\n}\n\nexport const useVideoScrubbing = (\n videoRef: RefObject<HTMLVideoElement | null>,\n options: UseVideoScrubbingOptions = {}\n) => {\n const { mouseSensitivity = 0.01, touchSensitivity = 0.01 } = options;\n\n const [isDragging, setIsDragging] = useState(false);\n const [dragStartX, setDragStartX] = useState(0);\n const [dragStartTime, setDragStartTime] = useState(0);\n const hasDragged = useRef(false);\n\n // Helper to start dragging (common logic for mouse and touch)\n const startDrag = useCallback(\n (clientX: number, event: Event) => {\n if (!videoRef.current) return;\n\n setIsDragging(true);\n setDragStartX(clientX);\n setDragStartTime(videoRef.current.currentTime);\n hasDragged.current = true;\n event.preventDefault();\n },\n [videoRef]\n );\n\n // Helper to handle drag movement (common logic for mouse and touch)\n const handleDragMove = useCallback(\n (clientX: number, sensitivity: number) => {\n if (!isDragging || !videoRef.current) return;\n\n const deltaX = clientX - dragStartX;\n const duration = videoRef.current.duration || 0;\n\n if (duration > 0) {\n const newTime = calculateCircularTime(\n dragStartTime,\n deltaX,\n sensitivity,\n duration\n );\n videoRef.current.currentTime = newTime;\n }\n },\n [isDragging, dragStartX, dragStartTime, videoRef]\n );\n\n // Helper to end dragging (common logic for mouse and touch)\n const endDrag = useCallback(() => {\n setIsDragging(false);\n }, []);\n\n const handleMouseDown = useCallback(\n (e: React.MouseEvent) => {\n startDrag(e.clientX, e.nativeEvent);\n },\n [startDrag]\n );\n\n const handleTouchStart = useCallback(\n (e: React.TouchEvent) => {\n startDrag(e.touches[0].clientX, e.nativeEvent);\n },\n [startDrag]\n );\n\n const handleDocumentMouseMove = useCallback(\n (e: MouseEvent) => {\n handleDragMove(getClientX(e), mouseSensitivity);\n },\n [handleDragMove, mouseSensitivity]\n );\n\n const handleDocumentTouchMove = useCallback(\n (e: TouchEvent) => {\n handleDragMove(getClientX(e), touchSensitivity);\n },\n [handleDragMove, touchSensitivity]\n );\n\n const handleDocumentMouseUp = useCallback(() => {\n endDrag();\n }, [endDrag]);\n\n const handleDocumentTouchEnd = useCallback(() => {\n endDrag();\n }, [endDrag]);\n\n // Add document-level event listeners when dragging starts\n useEffect(() => {\n if (isDragging) {\n document.addEventListener(\"mousemove\", handleDocumentMouseMove);\n document.addEventListener(\"mouseup\", handleDocumentMouseUp);\n document.addEventListener(\"touchmove\", handleDocumentTouchMove);\n document.addEventListener(\"touchend\", handleDocumentTouchEnd);\n\n return () => {\n document.removeEventListener(\"mousemove\", handleDocumentMouseMove);\n document.removeEventListener(\"mouseup\", handleDocumentMouseUp);\n document.removeEventListener(\"touchmove\", handleDocumentTouchMove);\n document.removeEventListener(\"touchend\", handleDocumentTouchEnd);\n };\n }\n }, [\n isDragging,\n handleDocumentMouseMove,\n handleDocumentMouseUp,\n handleDocumentTouchMove,\n handleDocumentTouchEnd,\n ]);\n\n return {\n isDragging,\n handleMouseDown,\n handleTouchStart,\n hasDragged,\n };\n};\n","\"use client\";\nimport { createContext } from 'react';\n\n/**\n * @public\n */\nconst MotionConfigContext = createContext({\n transformPagePoint: (p) => p,\n isStatic: false,\n reducedMotion: \"never\",\n});\n\nexport { MotionConfigContext };\n","/*#__NO_SIDE_EFFECTS__*/\nconst noop = (any) => any;\n\nexport { noop };\n","import { noop } from './noop.mjs';\n\nlet warning = noop;\nlet invariant = noop;\nif (process.env.NODE_ENV !== \"production\") {\n warning = (check, message) => {\n if (!check && typeof console !== \"undefined\") {\n console.warn(message);\n }\n };\n invariant = (check, message) => {\n if (!check) {\n throw new Error(message);\n }\n };\n}\n\nexport { invariant, warning };\n","function createRenderStep(runNextFrame) {\n /**\n * We create and reuse two queues, one to queue jobs for the current frame\n * and one for the next. We reuse to avoid triggering GC after x frames.\n */\n let thisFrame = new Set();\n let nextFrame = new Set();\n /**\n * Track whether we're currently processing jobs in this step. This way\n * we can decide whether to schedule new jobs for this frame or next.\n */\n let isProcessing = false;\n let flushNextFrame = false;\n /**\n * A set of processes which were marked keepAlive when scheduled.\n */\n const toKeepAlive = new WeakSet();\n let latestFrameData = {\n delta: 0.0,\n timestamp: 0.0,\n isProcessing: false,\n };\n function triggerCallback(callback) {\n if (toKeepAlive.has(callback)) {\n step.schedule(callback);\n runNextFrame();\n }\n callback(latestFrameData);\n }\n const step = {\n /**\n * Schedule a process to run on the next frame.\n */\n schedule: (callback, keepAlive = false, immediate = false) => {\n const addToCurrentFrame = immediate && isProcessing;\n const queue = addToCurrentFrame ? thisFrame : nextFrame;\n if (keepAlive)\n toKeepAlive.add(callback);\n if (!queue.has(callback))\n queue.add(callback);\n return callback;\n },\n /**\n * Cancel the provided callback from running on the next frame.\n */\n cancel: (callback) => {\n nextFrame.delete(callback);\n toKeepAlive.delete(callback);\n },\n /**\n * Execute all schedule callbacks.\n */\n process: (frameData) => {\n latestFrameData = frameData;\n /**\n * If we're already processing we've probably been triggered by a flushSync\n * inside an existing process. Instead of executing, mark flushNextFrame\n * as true and ensure we flush the following frame at the end of this one.\n */\n if (isProcessing) {\n flushNextFrame = true;\n return;\n }\n isProcessing = true;\n [thisFrame, nextFrame] = [nextFrame, thisFrame];\n // Execute this frame\n thisFrame.forEach(triggerCallback);\n // Clear the frame so no callbacks remain. This is to avoid\n // memory leaks should this render step not run for a while.\n thisFrame.clear();\n isProcessing = false;\n if (flushNextFrame) {\n flushNextFrame = false;\n step.process(frameData);\n }\n },\n };\n return step;\n}\n\nexport { createRenderStep };\n","import { MotionGlobalConfig } from '../utils/GlobalConfig.mjs';\nimport { createRenderStep } from './render-step.mjs';\n\nconst stepsOrder = [\n \"read\", // Read\n \"resolveKeyframes\", // Write/Read/Write/Read\n \"update\", // Compute\n \"preRender\", // Compute\n \"render\", // Write\n \"postRender\", // Compute\n];\nconst maxElapsed = 40;\nfunction createRenderBatcher(scheduleNextBatch, allowKeepAlive) {\n let runNextFrame = false;\n let useDefaultElapsed = true;\n const state = {\n delta: 0.0,\n timestamp: 0.0,\n isProcessing: false,\n };\n const flagRunNextFrame = () => (runNextFrame = true);\n const steps = stepsOrder.reduce((acc, key) => {\n acc[key] = createRenderStep(flagRunNextFrame);\n return acc;\n }, {});\n const { read, resolveKeyframes, update, preRender, render, postRender } = steps;\n const processBatch = () => {\n const timestamp = MotionGlobalConfig.useManualTiming\n ? state.timestamp\n : performance.now();\n runNextFrame = false;\n state.delta = useDefaultElapsed\n ? 1000 / 60\n : Math.max(Math.min(timestamp - state.timestamp, maxElapsed), 1);\n state.timestamp = timestamp;\n state.isProcessing = true;\n // Unrolled render loop for better per-frame performance\n read.process(state);\n resolveKeyframes.process(state);\n update.process(state);\n preRender.process(state);\n render.process(state);\n postRender.process(state);\n state.isProcessing = false;\n if (runNextFrame && allowKeepAlive) {\n useDefaultElapsed = false;\n scheduleNextBatch(processBatch);\n }\n };\n const wake = () => {\n runNextFrame = true;\n useDefaultElapsed = true;\n if (!state.isProcessing) {\n scheduleNextBatch(processBatch);\n }\n };\n const schedule = stepsOrder.reduce((acc, key) => {\n const step = steps[key];\n acc[key] = (process, keepAlive = false, immediate = false) => {\n if (!runNextFrame)\n wake();\n return step.schedule(process, keepAlive, immediate);\n };\n return acc;\n }, {});\n const cancel = (process) => {\n for (let i = 0; i < stepsOrder.length; i++) {\n steps[stepsOrder[i]].cancel(process);\n }\n };\n return { schedule, cancel, state, steps };\n}\n\nexport { createRenderBatcher, stepsOrder };\n","import { noop } from 'motion-utils';\nimport { createRenderBatcher } from './batcher.mjs';\n\nconst { schedule: frame, cancel: cancelFrame, state: frameData, steps: frameSteps, } = createRenderBatcher(typeof requestAnimationFrame !== \"undefined\" ? requestAnimationFrame : noop, true);\n\nexport { cancelFrame, frame, frameData, frameSteps };\n","import { useRef, useContext, useEffect } from 'react';\nimport { MotionConfigContext } from '../context/MotionConfigContext.mjs';\nimport { frame, cancelFrame } from '../frameloop/frame.mjs';\n\nfunction useAnimationFrame(callback) {\n const initialTimestamp = useRef(0);\n const { isStatic } = useContext(MotionConfigContext);\n useEffect(() => {\n if (isStatic)\n return;\n const provideTimeSinceStart = ({ timestamp, delta }) => {\n if (!initialTimestamp.current)\n initialTimestamp.current = timestamp;\n callback(timestamp - initialTimestamp.current, delta);\n };\n frame.update(provideTimeSinceStart, true);\n return () => cancelFrame(provideTimeSinceStart);\n }, [callback]);\n}\n\nexport { useAnimationFrame };\n","import { useAnimationFrame } from \"framer-motion\";\nimport { useRef, useState } from \"react\";\n\nexport function useBouncePatternProgress(enabled = true) {\n const [value, setValue] = useState(0);\n const [isBouncing, setIsBouncing] = useState(false);\n const start = useRef<number | null>(null);\n\n useAnimationFrame((t) => {\n if (!enabled) {\n // Reset animation when disabled\n if (start.current !== null) {\n start.current = null;\n setValue(0);\n setIsBouncing(false);\n }\n return;\n }\n\n if (start.current === null) start.current = t;\n\n const elapsed = (t - start.current) % 3000; // 3s full cycle\n\n let progress = 0;\n const bouncing = elapsed < 1000; // Bouncing during first 1 second\n\n if (elapsed < 500) {\n // 0 → 1\n progress = elapsed / 500;\n } else if (elapsed < 1000) {\n // 1 → 0\n progress = 1 - (elapsed - 500) / 500;\n } else {\n // Pause at 0 for 2 seconds\n progress = 0;\n }\n\n setValue(progress);\n setIsBouncing(bouncing);\n });\n\n return { value, isBouncing };\n}\n","export interface BuildRenderProps {\n /**\n * Parts configuration for the build render.\n *\n * This object defines which PC components should be included in the 3D render.\n * Each part category contains an array with a single part ID that will be rendered.\n *\n * **Current Limitation**: Only 1 part per category is supported. Arrays must contain\n * exactly one part ID per category. Future versions will support multiple parts per category.\n *\n * @example\n * ```tsx\n * const parts = {\n * parts: {\n * CPU: [\"7xjqsomhr\"], // AMD Ryzen 7 9800X3D\n * GPU: [\"z7pyphm9k\"], // ASUS GeForce RTX 5080 ASTRAL\n * RAM: [\"dpl1iyvb5\"], // PNY DDR5\n * Motherboard: [\"iwin2u9vx\"], // Asus ROG STRIX X870E-E GAMING WIFI\n * PSU: [\"m4kilv190\"], // LIAN LI 1300W\n * Storage: [\"0bkvs17po\"], // SAMSUNG 990 EVO\n * PCCase: [\"qq9jamk7c\"], // MONTECH KING 95 PRO\n * CPUCooler: [\"62d8zelr5\"], // ARCTIC LIQUID FREEZER 360\n * }\n * };\n *\n * <BuildRender parts={parts} size={300} />\n * ```\n *\n * @example Minimal build (only required components)\n * ```tsx\n * const parts = {\n * parts: {\n * CPU: [\"7xjqsomhr\"], // Single CPU required\n * Motherboard: [\"iwin2u9vx\"], // Single motherboard required\n * PCCase: [\"qq9jamk7c\"], // Single case required\n * }\n * };\n * ```\n *\n * Note: Part IDs must correspond to valid components in the BuildCores database.\n * Use the available parts API to get valid part IDs for each category.\n */\n parts: RenderBuildRequest;\n\n /**\n * Video size in pixels (width and height will be the same).\n *\n * This determines the resolution of the rendered 3D video. Higher values\n * provide better quality but may impact performance.\n *\n * @example\n * ```tsx\n * <BuildRender parts={parts} size={300} /> // 300x300px\n * <BuildRender parts={parts} size={500} /> // 500x500px\n * <BuildRender parts={parts} size={800} /> // 800x800px - high quality\n * ```\n *\n * Recommended sizes:\n * - 300px: Good for thumbnails or small previews\n * - 500px: Standard size for most use cases\n * - 800px+: High quality for detailed viewing\n */\n size: number;\n\n /**\n * Optional mouse sensitivity for dragging (default: 0.005).\n *\n * Controls how responsive the 3D model rotation is to mouse movements.\n * Lower values make rotation slower and more precise, higher values make it faster.\n *\n * @example\n * ```tsx\n * <BuildRender\n * parts={parts}\n * size={300}\n * mouseSensitivity={0.003} // Slower, more precise\n * />\n *\n * <BuildRender\n * parts={parts}\n * size={300}\n * mouseSensitivity={0.01} // Faster rotation\n * />\n * ```\n *\n * @default 0.005\n */\n mouseSensitivity?: number;\n\n /**\n * Optional touch sensitivity for dragging (default: 0.01).\n *\n * Controls how responsive the 3D model rotation is to touch gestures on mobile devices.\n * Generally set higher than mouseSensitivity for better touch experience.\n *\n * @example\n * ```tsx\n * <BuildRender\n * parts={parts}\n * size={300}\n * touchSensitivity={0.008} // Slower touch rotation\n * />\n *\n * <BuildRender\n * parts={parts}\n * size={300}\n * touchSensitivity={0.015} // Faster touch rotation\n * />\n * ```\n *\n * @default 0.01\n */\n touchSensitivity?: number;\n}\n\n// API Types\n\n/**\n * Enum defining all available PC part categories that can be rendered.\n *\n * Each category represents a different type of computer component that can be\n * included in the 3D build visualization.\n *\n * @example\n * ```tsx\n * // All available categories\n * const categories = [\n * PartCategory.CPU, // \"CPU\"\n * PartCategory.GPU, // \"GPU\"\n * PartCategory.RAM, // \"RAM\"\n * PartCategory.Motherboard,// \"Motherboard\"\n * PartCategory.PSU, // \"PSU\"\n * PartCategory.Storage, // \"Storage\"\n * PartCategory.PCCase, // \"PCCase\"\n * PartCategory.CPUCooler, // \"CPUCooler\"\n * ];\n * ```\n */\nexport enum PartCategory {\n /** Central Processing Unit - The main processor */\n CPU = \"CPU\",\n /** Graphics Processing Unit - Video card for rendering */\n GPU = \"GPU\",\n /** Random Access Memory - System memory modules */\n RAM = \"RAM\",\n /** Main circuit board that connects all components */\n Motherboard = \"Motherboard\",\n /** Power Supply Unit - Provides power to all components */\n PSU = \"PSU\",\n /** Storage devices like SSDs, HDDs, NVMe drives */\n Storage = \"Storage\",\n /** PC Case - The enclosure that houses all components */\n PCCase = \"PCCase\",\n /** CPU Cooler - Air or liquid cooling for the processor */\n CPUCooler = \"CPUCooler\",\n}\n\n/**\n * Request structure for rendering a PC build.\n *\n * This interface defines the parts configuration that will be sent to the\n * rendering service to generate a 3D visualization of a PC build.\n *\n * **Current Limitation**: Only one part per category is supported. Each category\n * array must contain exactly one part ID. Future versions will support multiple\n * parts per category for comparison views.\n *\n * @example Basic build configuration\n * ```tsx\n * const buildRequest: RenderBuildRequest = {\n * parts: {\n * CPU: [\"7xjqsomhr\"], // AMD Ryzen 7 9800X3D\n * GPU: [\"z7pyphm9k\"], // ASUS GeForce RTX 5080 ASTRAL\n * RAM: [\"dpl1iyvb5\"], // PNY DDR5\n * Motherboard: [\"iwin2u9vx\"], // Asus ROG STRIX X870E-E GAMING WIFI\n * PSU: [\"m4kilv190\"], // LIAN LI 1300W\n * Storage: [\"0bkvs17po\"], // SAMSUNG 990 EVO\n * PCCase: [\"qq9jamk7c\"], // MONTECH KING 95 PRO\n * CPUCooler: [\"62d8zelr5\"], // ARCTIC LIQUID FREEZER 360\n * }\n * };\n * ```\n *\n * @example Minimal build (only required components)\n * ```tsx\n * const minimalBuild: RenderBuildRequest = {\n * parts: {\n * CPU: [\"7xjqsomhr\"], // Single CPU\n * Motherboard: [\"iwin2u9vx\"], // Single motherboard\n * PCCase: [\"qq9jamk7c\"], // Single case\n * }\n * };\n * ```\n *\n * @example Gaming build configuration\n * ```tsx\n * const gamingBuild: RenderBuildRequest = {\n * parts: {\n * CPU: [\"x2thvstj3\"], // AMD Ryzen 7 9700X\n * GPU: [\"4a0mjb360\"], // PNY GeForce RTX 5060 Ti 16GB\n * RAM: [\"46rwpop35\"], // G.SKILL NEO RGB DDR5\n * Motherboard: [\"xy81tonxw\"], // Asus ROG STRIX B850-A GAMING WIFI\n * PSU: [\"v0qv6k9dp\"], // MSI 850W\n * Storage: [\"0bs8cxv4c\"], // CORSAIR T500\n * PCCase: [\"kb76dp9aw\"], // LIAN LI O11 VISION\n * CPUCooler: [\"0vajcxkzq\"], // BE QUIET PURE ROCK 2 AIR\n * }\n * };\n * ```\n */\nexport interface RenderBuildRequest {\n /**\n * Object mapping part categories to arrays of part IDs.\n *\n * **Current Requirements**:\n * - Keys are part categories (CPU, GPU, RAM, etc.)\n * - Values are arrays containing exactly one part ID string\n * - All categories are optional - include only the parts you want to render\n * - Part IDs must be valid identifiers from the BuildCores parts database\n *\n * **Future Enhancement**: Multiple parts per category will be supported for comparison views.\n *\n * @see PartCategory for all available categories\n * @see AvailablePartsResponse for getting valid part IDs\n */\n parts: {\n [K in PartCategory]?: string[];\n };\n}\n\n/**\n * Response structure containing all available parts for each category.\n *\n * This type represents the response from the available parts API endpoint,\n * providing arrays of valid part IDs for each component category.\n *\n * @example Using available parts response\n * ```tsx\n * const availableParts: AvailablePartsResponse = {\n * CPU: [\n * { id: \"7xjqsomhr\", name: \"AMD Ryzen 7 9800X3D\", image: \"https://...\" },\n * { id: \"x2thvstj3\", name: \"AMD Ryzen 7 9700X\", image: \"https://...\" },\n * ],\n * GPU: [\n * { id: \"z7pyphm9k\", name: \"ASUS GeForce RTX 5080 ASTRAL\", image: \"https://...\" },\n * { id: \"4a0mjb360\", name: \"PNY GeForce RTX 5060 Ti 16GB\", image: \"https://...\" },\n * ],\n * // ... all other categories\n * };\n *\n * // Select one part per category for current build request\n * const buildRequest: RenderBuildRequest = {\n * parts: {\n * CPU: [availableParts.CPU[0].id], // Select first available CPU ID\n * GPU: [availableParts.GPU[1].id], // Select second available GPU ID\n * RAM: [availableParts.RAM[0].id], // Select first available RAM ID\n * }\n * };\n * ```\n *\n * @example Dynamic part selection\n * ```tsx\n * // Function to create build with user-selected parts\n * const createBuild = (selectedPartIds: Record<string, string>) => {\n * const buildRequest: RenderBuildRequest = {\n * parts: {\n * CPU: [selectedPartIds.cpu], // Single selected CPU ID\n * GPU: [selectedPartIds.gpu], // Single selected GPU ID\n * RAM: [selectedPartIds.ram], // Single selected RAM ID\n * // ... other single selections\n * }\n * };\n * return buildRequest;\n * };\n * ```\n */\n/**\n * Individual part information with details\n */\nexport interface PartDetails {\n /** Unique part identifier */\n id: string;\n /** Human-readable part name */\n name: string;\n /** URL to part image */\n image: string;\n}\n\nexport type AvailablePartsResponse = {\n [K in PartCategory]: PartDetails[];\n};\n","import { RenderBuildRequest, AvailablePartsResponse } from \"./types\";\n\n// API Configuration\nconst API_BASE_URL = \"https://squid-app-7aeyk.ondigitalocean.app\";\n\n// API Endpoints\nexport const API_ENDPOINTS = {\n RENDER_BUILD_EXPERIMENTAL: \"/render-build-experimental\",\n AVAILABLE_PARTS: \"/available-parts\",\n} as const;\n\n// API Response Types\nexport interface RenderBuildResponse {\n /**\n * The rendered MP4 video as a Blob\n */\n video: Blob;\n /**\n * Optional metadata about the render\n */\n metadata?: {\n duration?: number;\n size?: number;\n format?: string;\n };\n}\n\n// API Functions (definitions only - not implemented yet)\nexport interface RenderAPIService {\n /**\n * Submit a render build request\n * @param parts - The parts configuration for the build\n * @returns Promise with the rendered MP4 video\n */\n renderBuildExperimental(\n parts: RenderBuildRequest\n ): Promise<RenderBuildResponse>;\n\n /**\n * Get available parts for building\n * @returns Promise with available parts by category\n */\n getAvailableParts(): Promise<AvailablePartsResponse>;\n}\n\n// API URL helpers\nexport const buildApiUrl = (endpoint: string): string => {\n return `${API_BASE_URL}${endpoint}`;\n};\n\n// API Implementation\nexport const renderBuildExperimental = async (\n request: RenderBuildRequest\n): Promise<RenderBuildResponse> => {\n const response = await fetch(\n buildApiUrl(API_ENDPOINTS.RENDER_BUILD_EXPERIMENTAL),\n {\n method: \"POST\",\n headers: {\n \"Content-Type\": \"application/json\",\n },\n body: JSON.stringify(request),\n }\n );\n\n if (!response.ok) {\n throw new Error(\n `Render build failed: ${response.status} ${response.statusText}`\n );\n }\n\n const video = await response.blob();\n\n return {\n video,\n metadata: {\n size: video.size,\n format: \"video/mp4\",\n },\n };\n};\n\nexport const getAvailableParts = async (): Promise<AvailablePartsResponse> => {\n const response = await fetch(buildApiUrl(API_ENDPOINTS.AVAILABLE_PARTS), {\n method: \"GET\",\n headers: {\n \"Content-Type\": \"application/json\",\n },\n });\n\n if (!response.ok) {\n throw new Error(\n `Get available parts failed: ${response.status} ${response.statusText}`\n );\n }\n\n return response.json();\n};\n\n// Export the base URL for external use\nexport { API_BASE_URL };\n","import { useState, useEffect, useCallback, useRef } from \"react\";\nimport { RenderBuildRequest, PartCategory } from \"../types\";\nimport { renderBuildExperimental } from \"../api\";\n\n/**\n * Compares two RenderBuildRequest objects for equality by checking if the same IDs\n * are present in each category array, regardless of order.\n */\nexport const arePartsEqual = (\n parts1: RenderBuildRequest,\n parts2: RenderBuildRequest\n): boolean => {\n const categories = Object.values(PartCategory);\n\n for (const category of categories) {\n const arr1 = parts1.parts[category] || [];\n const arr2 = parts2.parts[category] || [];\n\n // Check if arrays have the same length\n if (arr1.length !== arr2.length) {\n return false;\n }\n\n // Check if arrays contain the same elements (order doesn't matter)\n const set1 = new Set(arr1);\n const set2 = new Set(arr2);\n\n if (set1.size !== set2.size) {\n return false;\n }\n\n for (const id of set1) {\n if (!set2.has(id)) {\n return false;\n }\n }\n }\n\n return true;\n};\n\nexport interface UseBuildRenderReturn {\n videoSrc: string | null;\n isRenderingBuild: boolean;\n renderError: string | null;\n}\n\nexport const useBuildRender = (\n parts: RenderBuildRequest,\n onLoadStart?: () => void\n): UseBuildRenderReturn => {\n const [videoSrc, setVideoSrc] = useState<string | null>(null);\n const [isRenderingBuild, setIsRenderingBuild] = useState(false);\n const [renderError, setRenderError] = useState<string | null>(null);\n const previousPartsRef = useRef<RenderBuildRequest | null>(null);\n\n const fetchRenderBuild = useCallback(\n async (currentParts: RenderBuildRequest) => {\n try {\n setIsRenderingBuild(true);\n setRenderError(null);\n onLoadStart?.();\n\n const response = await renderBuildExperimental(currentParts);\n const objectUrl = URL.createObjectURL(response.video);\n\n // Clean up previous video URL before setting new one\n setVideoSrc((prevSrc) => {\n if (prevSrc) {\n URL.revokeObjectURL(prevSrc);\n }\n return objectUrl;\n });\n } catch (error) {\n setRenderError(\n error instanceof Error ? error.message : \"Failed to render build\"\n );\n } finally {\n setIsRenderingBuild(false);\n }\n },\n [onLoadStart]\n );\n\n // Effect to call API when parts content changes (using custom equality check)\n useEffect(() => {\n const shouldFetch =\n previousPartsRef.current === null ||\n !arePartsEqual(previousPartsRef.current, parts);\n\n if (shouldFetch) {\n previousPartsRef.current = parts;\n fetchRenderBuild(parts);\n }\n }, [parts, fetchRenderBuild]);\n\n // Cleanup effect for component unmount\n useEffect(() => {\n return () => {\n if (videoSrc) {\n URL.revokeObjectURL(videoSrc);\n }\n };\n }, [videoSrc]);\n\n return {\n videoSrc,\n isRenderingBuild,\n renderError,\n };\n};\n","import React from \"react\";\n\ninterface LoadingErrorOverlayProps {\n isVisible: boolean;\n renderError?: string;\n size: number;\n}\n\nexport const LoadingErrorOverlay: React.FC<LoadingErrorOverlayProps> = ({\n isVisible,\n renderError,\n size,\n}) => {\n if (!isVisible) return null;\n\n return (\n <div\n style={{\n position: \"absolute\",\n top: 0,\n left: 0,\n right: 0,\n bottom: 0,\n backgroundColor: \"rgba(0, 0, 0, 0.7)\",\n display: \"flex\",\n flexDirection: \"column\",\n alignItems: \"center\",\n justifyContent: \"center\",\n color: \"white\",\n zIndex: 10,\n }}\n >\n {renderError ? (\n <>\n <div style={{ marginBottom: \"20px\", fontSize: \"18px\" }}>\n Render Failed\n </div>\n <div\n style={{\n fontSize: \"14px\",\n textAlign: \"center\",\n maxWidth: size * 0.8,\n }}\n >\n {renderError}\n </div>\n </>\n ) : (\n <>\n <div style={{ marginBottom: \"20px\", fontSize: \"18px\" }}>\n {\"Loading Build...\"}\n </div>\n </>\n )}\n </div>\n );\n};\n","import React from \"react\";\n\ninterface DragIconProps {\n width?: number;\n height?: number;\n className?: string;\n style?: React.CSSProperties;\n}\n\nexport const DragIcon: React.FC<DragIconProps> = ({\n width = 24,\n height = 24,\n className,\n style,\n ...props\n}) => {\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n id=\"Layer_1\"\n width={width}\n height={height}\n data-name=\"Layer 1\"\n viewBox=\"0 0 24 24\"\n className={className}\n style={style}\n {...props}\n >\n <defs>\n <style>\n {\n \".cls-1{fill:none;stroke:currentColor;stroke-miterlimit:10;stroke-width:1.91px}\"\n }\n </style>\n </defs>\n <path\n d=\"m11.05 22.5-5.14-5.14a2 2 0 0 1-.59-1.43 2 2 0 0 1 2-2 2 2 0 0 1 1.43.59l1.32 1.32V6.38a2 2 0 0 1 1.74-2 1.89 1.89 0 0 1 1.52.56 1.87 1.87 0 0 1 .56 1.34V12l5 .72a1.91 1.91 0 0 1 1.64 1.89 17.18 17.18 0 0 1-1.82 7.71l-.09.18M19.64 7.23l2.86-2.87-2.86-2.86M15.82 4.36h6.68M4.36 7.23 1.5 4.36 4.36 1.5M8.18 4.36H1.5\"\n className=\"cls-1\"\n />\n </svg>\n );\n};\n","import React from \"react\";\nimport { DragIcon } from \"./DragIcon\";\n\ninterface InstructionTooltipProps {\n isVisible: boolean;\n progressValue: number;\n instructionIcon?: string;\n}\n\nexport const InstructionTooltip: React.FC<InstructionTooltipProps> = ({\n isVisible,\n progressValue,\n instructionIcon,\n}) => {\n if (!isVisible) {\n return null;\n }\n\n return (\n <div\n style={{\n position: \"absolute\",\n top: \"50%\",\n left: \"50%\",\n transform: `translate(-50%, -50%) translateX(${progressValue * 100}px)`,\n backgroundColor: \"rgba(0, 0, 0, 0.8)\",\n color: \"white\",\n padding: \"12px\",\n borderRadius: \"8px\",\n pointerEvents: \"none\",\n zIndex: 5,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n }}\n >\n {instructionIcon ? (\n <img\n src={instructionIcon}\n alt=\"drag to view 360\"\n style={{\n width: \"24px\",\n height: \"24px\",\n filter: \"invert(1)\", // Makes the icon white\n }}\n />\n ) : (\n <DragIcon\n width={24}\n height={24}\n style={{\n color: \"white\",\n }}\n />\n )}\n </div>\n );\n};\n","import { useRef, useState, useCallback, useEffect } from \"react\";\nimport {\n calculateCircularTime,\n useVideoScrubbing,\n} from \"./hooks/useVideoScrubbing\";\nimport { useBouncePatternProgress } from \"./hooks/useProgressOneSecond\";\nimport { useBuildRender } from \"./hooks/useBuildRender\";\nimport { BuildRenderProps } from \"./types\";\nimport { LoadingErrorOverlay } from \"./components/LoadingErrorOverlay\";\nimport { InstructionTooltip } from \"./components/InstructionTooltip\";\n\nexport const BuildRender: React.FC<BuildRenderProps> = ({\n parts,\n size,\n mouseSensitivity = 0.01,\n touchSensitivity = 0.01,\n}) => {\n const videoRef = useRef<HTMLVideoElement | null>(null);\n const [isLoading, setIsLoading] = useState(true);\n const [bouncingAllowed, setBouncingAllowed] = useState(false);\n\n // Use custom hook for build rendering\n const { videoSrc, isRenderingBuild, renderError } = useBuildRender(parts);\n\n const { value: progressValue, isBouncing } =\n useBouncePatternProgress(bouncingAllowed);\n\n const { isDragging, handleMouseDown, handleTouchStart, hasDragged } =\n useVideoScrubbing(videoRef, {\n mouseSensitivity,\n touchSensitivity,\n });\n\n const handleLoadStartInternal = useCallback(() => {\n setIsLoading(true);\n setBouncingAllowed(false);\n }, []);\n\n const handleCanPlayInternal = useCallback(() => {\n setIsLoading(false);\n // Start bouncing animation after delay\n setTimeout(() => {\n setBouncingAllowed(true);\n }, 2000);\n }, []);\n\n useEffect(() => {\n if (hasDragged.current || !videoRef.current) return;\n\n const duration = videoRef.current.duration;\n if (!isFinite(duration)) return;\n\n const time = calculateCircularTime(0, progressValue, 0.5, duration);\n\n if (isFinite(time)) {\n videoRef.current.currentTime = time;\n }\n }, [progressValue, hasDragged]);\n\n return (\n <div style={{ position: \"relative\", width: size, height: size }}>\n {videoSrc && (\n <video\n key={videoSrc} // Force React to recreate video element when src changes\n ref={videoRef}\n src={videoSrc} // Set src directly on video element\n width={size}\n height={size}\n autoPlay={true}\n preload=\"metadata\"\n muted\n playsInline\n onMouseDown={handleMouseDown}\n onTouchStart={handleTouchStart}\n onLoadStart={handleLoadStartInternal}\n onCanPlay={handleCanPlayInternal}\n onLoadedData={() => {\n if (videoRef.current) {\n videoRef.current.pause();\n }\n }}\n style={{\n cursor: isDragging ? \"grabbing\" : \"grab\",\n touchAction: \"none\", // Prevents default touch behaviors like scrolling\n display: \"block\",\n }}\n >\n Your browser does not support the video tag.\n </video>\n )}\n\n <LoadingErrorOverlay\n isVisible={isLoading || isRenderingBuild || !!renderError}\n renderError={renderError || undefined}\n size={size}\n />\n\n <InstructionTooltip\n isVisible={\n !isLoading &&\n !isRenderingBuild &&\n !renderError &&\n isBouncing &&\n !hasDragged.current\n }\n progressValue={progressValue}\n />\n </div>\n );\n};\n"],"names":["_jsx","_jsxs","_Fragment"],"mappings":";;;AAQA;AACA,MAAM,UAAU,GAAG,CAAC,CAA0B,KAAY;IACxD,OAAO,SAAS,IAAI,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,GAAG,CAAC,CAAC,OAAO;AAC1D,CAAC;AAED;AACO,MAAM,qBAAqB,GAAG,CACnC,SAAiB,EACjB,MAAc,EACd,WAAmB,EACnB,QAAgB,KACN;AACV,IAAA,MAAM,SAAS,GAAG,MAAM,GAAG,WAAW;AACtC,IAAA,IAAI,OAAO,GAAG,SAAS,GAAG,SAAS;;AAGnC,IAAA,OAAO,GAAG,OAAO,GAAG,QAAQ;A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