Skip to content

Create professional demos and 3D mockups in seconds, directly in your browser

Guardando mi trabajo local antes de fusionar con GitHub

CristianOlivera1c3bad3d1e620
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..5ef6a52
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,41 @@
+# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
+
+# dependencies
+/node_modules
+/.pnp
+.pnp.*
+.yarn/*
+!.yarn/patches
+!.yarn/plugins
+!.yarn/releases
+!.yarn/versions
+
+# testing
+/coverage
+
+# next.js
+/.next/
+/out/
+
+# production
+/build
+
+# misc
+.DS_Store
+*.pem
+
+# debug
+npm-debug.log*
+yarn-debug.log*
+yarn-error.log*
+.pnpm-debug.log*
+
+# env files (can opt-in for committing if needed)
+.env*
+
+# vercel
+.vercel
+
+# typescript
+*.tsbuildinfo
+next-env.d.ts
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..e215bc4
--- /dev/null
+++ b/README.md
@@ -0,0 +1,36 @@
+This is a [Next.js](https://nextjs.org) project bootstrapped with [`create-next-app`](https://nextjs.org/docs/app/api-reference/cli/create-next-app).
+
+## Getting Started
+
+First, run the development server:
+
+```bash
+npm run dev
+# or
+yarn dev
+# or
+pnpm dev
+# or
+bun dev
+```
+
+Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
+
+You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.
+
+This project uses [`next/font`](https://nextjs.org/docs/app/building-your-application/optimizing/fonts) to automatically optimize and load [Geist](https://vercel.com/font), a new font family for Vercel.
+
+## Learn More
+
+To learn more about Next.js, take a look at the following resources:
+
+- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
+- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
+
+You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js) - your feedback and contributions are welcome!
+
+## Deploy on Vercel
+
+The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
+
+Check out our [Next.js deployment documentation](https://nextjs.org/docs/app/building-your-application/deploying) for more details.
diff --git a/app/(auth)/layout.tsx b/app/(auth)/layout.tsx
new file mode 100644
index 0000000..47f4c14
--- /dev/null
+++ b/app/(auth)/layout.tsx
@@ -0,0 +1,7 @@
+export default function AuthLayout({ children }: { children: React.ReactNode }) {
+ return (
+ <div className="min-h-screen bg-neutral-950">
+ {children}
+ </div>
+ );
+}
diff --git a/app/(auth)/login/page.tsx b/app/(auth)/login/page.tsx
new file mode 100644
index 0000000..c2e1f29
--- /dev/null
+++ b/app/(auth)/login/page.tsx
@@ -0,0 +1,91 @@
+"use client";
+import "../../globals.css";
+import { Button } from "@/components/ui/button";
+import { Icon } from "@iconify/react";
+import Image from "next/image";
+import Link from "next/link";
+
+export default function Login() {
+ return (
+ <div className="min-h-screen w-full bg-[#030303] grid lg:grid-cols-2 text-white selection:bg-white/30">
+ <div className="relative flex flex-col justify-center px-8 sm:px-16 lg:px-24 xl:px-32">
+
+ <div className="absolute top-8 left-8 sm:left-12 lg:left-16">
+ <Button
+ variant="ghost"
+ size="sm"
+ className="text-neutral-500 hover:text-white hover:bg-white/5 tracking-wide text-xs uppercase"
+ asChild
+ >
+ <Link href="/">
+ <Icon icon="solar:arrow-left-linear" className="mr-2" width="16" />
+ Volver
+ </Link>
+ </Button>
+ </div>
+
+ <div className="w-full max-w-sm mx-auto mt-16 lg:mt-0">
+ <div className="mb-10">
+ <Image src="/svg/logo-freeshot.svg" alt="Logo" width={60} height={60} className="mb-4" />
+ <h1 className="text-3xl sm:text-4xl font-light tracking-tighter text-white mb-3">
+ Bienvenido
+ </h1>
+ <p className="text-neutral-300 text-md font-light tracking-wide">
+ Inicia sesión para empezar a crear tomas cinemáticas.
+ </p>
+ </div>
+
+ <div className="space-y-4">
+ <Button
+ variant="outline"
+ size="lg"
+ className="w-full h-12 gap-3 text-white border-white/10 bg-transparent hover:bg-white/5 transition-all font-light rounded-none"
+ >
+ <Icon icon="logos:google-icon" width="18" />
+ Continuar con Google
+ </Button>
+
+ <Button
+ variant="outline"
+ size="lg"
+ className="w-full h-12 gap-3 text-white border-white/10 bg-transparent hover:bg-white/5 transition-all font-light rounded-none"
+ >
+ <Icon icon="mdi:github" className="text-white size-5" />
+ Continuar con GitHub
+ </Button>
+ </div>
+
+ <p className="mt-12 text-md text-neutral-300 leading-relaxed font-light">
+ Al continuar, aceptas nuestros: <br />
+ <Link href="/terms" className="text-neutral-300 hover:text-white underline decoration-white/30 underline-offset-4 transition-colors">Términos de Servicio</Link> y{" "}
+ <Link href="/privacy" className="text-neutral-300 hover:text-white underline decoration-white/30 underline-offset-4 transition-colors">Política de Privacidad</Link>.
+ </p>
+ </div>
+ </div>
+ <div className="hidden lg:block relative w-full h-full border-l border-white/10 bg-black overflow-hidden group">
+ <Image
+ src="https://images.unsplash.com/photo-1526512340740-9217d0159da9?fm=jpg&q=60&w=3000&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxzZWFyY2h8Mnx8dmVydGljYWx8ZW58MHx8MHx8fDA%3D"
+ alt="Cinematic Shot"
+ fill
+ className="object-cover opacity-70 mix-blend-luminosity group-hover:mix-blend-normal transition-all duration-700 ease-in-out"
+ priority
+ />
+
+ <div className="absolute inset-0 bg-[radial-gradient(#ffffff22_1px,transparent_1px)] [background-size:24px_24px] opacity-20 pointer-events-none"></div>
+ <div className="absolute inset-0 bg-gradient-to-t from-black/80 via-black/20 to-transparent pointer-events-none"></div>
+
+ <div className="absolute top-1/2 left-0 w-full h-[1px] bg-white/10 pointer-events-none"></div>
+ <div className="absolute top-0 left-1/2 w-[1px] h-full bg-white/10 pointer-events-none"></div>
+
+ <div className="absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-64 h-64 border border-white/20 pointer-events-none flex items-center justify-center">
+ <div className="w-2 h-2 bg-white/50 rounded-full"></div>
+ </div>
+
+ <div className="absolute top-8 left-8 w-4 h-4 border-t border-l border-white/40 pointer-events-none"></div>
+ <div className="absolute bottom-8 left-8 w-4 h-4 border-b border-l border-white/40 pointer-events-none"></div>
+ <div className="absolute top-8 right-8 w-4 h-4 border-t border-r border-white/40 pointer-events-none"></div>
+
+ </div>
+ </div>
+ );
+}
\ No newline at end of file
diff --git a/app/(editor)/editor/page.tsx b/app/(editor)/editor/page.tsx
new file mode 100644
index 0000000..9cd48a8
--- /dev/null
+++ b/app/(editor)/editor/page.tsx
@@ -0,0 +1,839 @@
+"use client";
+
+import { useState, useRef, useEffect, useCallback, lazy, Suspense, useMemo } from "react";
+import { Icon } from "@iconify/react";
+import { motion, AnimatePresence } from "framer-motion";
+import { loadVideoFromIndexedDB, deleteRecordedVideo } from "@/hooks/useScreenRecording";
+import { useVideoUpload } from "@/hooks/useVideoUpload";
+import { useVideoExport } from "@/hooks/useVideoExport";
+import { useVideoThumbnails } from "@/hooks/useVideoThumbnails";
+import { clearAllThumbnailCache } from "@/lib/thumbnail-cache";
+import type { ExportQuality, Tool, BackgroundTab, VideoCanvasHandle, BackgroundColorConfig, AspectRatio, CropArea, ZoomFragment } from "@/types";
+import type { TrimRange } from "@/types/timeline.types";
+import type { MockupConfig } from "@/types/mockup.types";
+import { DEFAULT_MOCKUP_CONFIG, getMockupDefaultConfig } from "@/types/mockup.types";
+import type { CanvasElement } from "@/types/canvas-elements.types";
+import { MOCKUPS } from "@/lib/mockup-data";
+import { gradientToCss, generateDefaultZoomFragments, createZoomFragment } from "@/types";
+import "../../globals.css";
+import { ToolsSidebar } from "@/app/components/ui/editor/ToolsSidebar";
+import { EditorTopBar } from "@/app/components/ui/editor/EditorTopBar";
+import { VideoCanvas } from "@/app/components/ui/editor/VideoCanvas";
+import { PlayerControls } from "@/app/components/ui/editor/PlayerControls";
+import { findValidFragmentPosition } from "@/app/components/ui/editor/ZoomFragmentTrackItem";
+import { LoadingSpinner } from "@/app/components/ui/LoadingSpinner";
+
+// Lazy load heavy components
+const ControlPanel = lazy(() => import("@/app/components/ui/editor/ControlPanel").then(mod => ({ default: mod.ControlPanel })));
+const Timeline = lazy(() => import("@/app/components/ui/editor/Timeline").then(mod => ({ default: mod.Timeline })));
+const ExportOverlay = lazy(() => import("@/app/components/ui/ExportOverlay").then(mod => ({ default: mod.ExportOverlay })));
+const VideoCropperModal = lazy(() => import("@/app/components/ui/editor/VideoCropperModal").then(mod => ({ default: mod.VideoCropperModal })));
+
+export default function Editor() {
+ const [activeTool, setActiveTool] = useState<Tool>("screenshot");
+ const [backgroundTab, setBackgroundTab] = useState<BackgroundTab>("wallpaper");
+ const [selectedWallpaper, setSelectedWallpaper] = useState(0);
+ const [backgroundBlur, setBackgroundBlur] = useState(0);
+ const [padding, setPadding] = useState(10);
+ const [roundedCorners, setRoundedCorners] = useState(10);
+ const [shadows, setShadows] = useState(10);
+ const [isControlPanelOpen, setIsControlPanelOpen] = useState(true);
+
+ // Video transform state (rotation and position)
+ const [videoTransform, setVideoTransform] = useState<{ rotation: number; translateX: number; translateY: number }>({
+ rotation: 0,
+ translateX: 0,
+ translateY: 0,
+ });
+
+ // Custom background images
+ const [uploadedImages, setUploadedImages] = useState<string[]>(() => {
+ if (typeof window !== 'undefined') {
+ const stored = localStorage.getItem("freeshot-uploaded-images");
+ if (stored) {
+ try {
+ const parsed = JSON.parse(stored);
+ if (Array.isArray(parsed)) {
+ return parsed;
+ }
+ } catch (error) {
+ console.error("Error loading uploaded images:", error);
+ }
+ }
+ }
+ return [];
+ });
+ const [selectedImageUrl, setSelectedImageUrl] = useState<string>("");
+
+ // Background color/gradient state
+ const [backgroundColorConfig, setBackgroundColorConfig] = useState<BackgroundColorConfig | null>(null);
+
+ // Aspect ratio, fullscreen, and cropper state
+ const [aspectRatio, setAspectRatio] = useState<AspectRatio>("auto");
+ const [videoDimensions, setVideoDimensions] = useState<{ width: number; height: number } | null>(null);
+ const [customDimensions, setCustomDimensions] = useState<{ width: number; height: number } | null>(null);
+ const [isFullscreen, setIsFullscreen] = useState(false);
+ const [isCropperOpen, setIsCropperOpen] = useState(false);
+ const [cropArea, setCropArea] = useState<CropArea | undefined>(undefined);
+
+ // Computed: which dimensions to use for the canvas
+ const customAspectRatio = aspectRatio === "auto" ? videoDimensions : (aspectRatio === "custom" ? customDimensions : null);
+
+ // Refs for fullscreen
+ const editorAreaRef = useRef<HTMLDivElement>(null);
+
+ // Video state
+ const [videoUrl, setVideoUrl] = useState<string | null>(null);
+ const [videoId, setVideoId] = useState<string | null>(null);
+ const [videoDuration, setVideoDuration] = useState<number>(0);
+ const [currentTime, setCurrentTime] = useState<number>(0);
+ const [isPlaying, setIsPlaying] = useState<boolean>(false);
+ const videoRef = useRef<HTMLVideoElement>(null);
+ const canvasRef = useRef<VideoCanvasHandle>(null);
+
+ // Timeline state
+ const [timelineZoom, setTimelineZoom] = useState<number>(1);
+ const [isDraggingPlayhead, setIsDraggingPlayhead] = useState<boolean>(false);
+ const [trimRange, setTrimRange] = useState<TrimRange>({ start: 0, end: 0 });
+ const animationFrameRef = useRef<number | null>(null);
+ const justEndedRef = useRef<boolean>(false);
+ const wasPlayingBeforeDragRef = useRef<boolean>(false);
+
+ const [scrubTime, setScrubTime] = useState<number>(0);
+
+ // Zoom fragments state
+ const [zoomFragments, setZoomFragments] = useState<ZoomFragment[]>([]);
+ const [selectedZoomFragmentId, setSelectedZoomFragmentId] = useState<string | null>(null);
+
+ // Ref to always have the latest zoomFragments value (prevents stale closures)
+ const zoomFragmentsRef = useRef<ZoomFragment[]>([]);
+ useEffect(() => {
+ zoomFragmentsRef.current = zoomFragments;
+ }, [zoomFragments]);
+
+ // Mockup state
+ const [mockupId, setMockupId] = useState<string>("none");
+ const [mockupConfig, setMockupConfig] = useState<MockupConfig>(DEFAULT_MOCKUP_CONFIG);
+
+ // Canvas elements state
+ const [canvasElements, setCanvasElements] = useState<CanvasElement[]>([]);
+ const [selectedElementId, setSelectedElementId] = useState<string | null>(null);
+
+ // Handler para cambiar el mockup
+ const handleMockupChange = useCallback((newMockupId: string) => {
+ setMockupId(newMockupId);
+ // Establecer la config por defecto del nuevo mockup
+ const newMockup = MOCKUPS.find(m => m.id === newMockupId);
+ setMockupConfig(getMockupDefaultConfig(newMockup));
+ }, []);
+
+ // Handler para cambiar la configuración del mockup
+ const handleMockupConfigChange = useCallback((updates: Partial<MockupConfig>) => {
+ setMockupConfig(prev => ({ ...prev, ...updates }));
+ }, []);
+
+ // Handler para cambiar las esquinas redondeadas (sincroniza ambos valores)
+ const handleRoundedCornersChange = useCallback((value: number) => {
+ setRoundedCorners(value); // Para NoneMockup y canvas general
+ setMockupConfig(prev => ({ ...prev, cornerRadius: value })); // Para mockups que usan config
+ }, []);
+
+ // Canvas elements handlers
+ const addCanvasElement = useCallback((element: CanvasElement) => {
+ setCanvasElements(prev => [...prev, element]);
+ setSelectedElementId(element.id);
+ }, []);
+
+ const updateCanvasElement = useCallback((id: string, updates: Partial<CanvasElement>) => {
+ setCanvasElements(prev => prev.map(el =>
+ el.id === id ? { ...el, ...updates } as CanvasElement : el
+ ));
+ }, []);
+
+ const deleteCanvasElement = useCallback((id: string) => {
+ setCanvasElements(prev => prev.filter(el => el.id !== id));
+ setSelectedElementId(prev => prev === id ? null : prev);
+ }, []);
+
+ const selectCanvasElement = useCallback((id: string | null) => {
+ setSelectedElementId(id);
+ }, []);
+
+ const duplicateCanvasElement = useCallback((id: string) => {
+ const element = canvasElements.find(el => el.id === id);
+ if (!element) return;
+
+ const newElement = {
+ ...element,
+ id: `${element.type}-${Date.now()}-${Math.random().toString(36).substring(2, 9)}`,
+ x: element.x + 5, // Offset slightly
+ y: element.y + 5,
+ zIndex: Date.now(),
+ } as CanvasElement;
+
+ setCanvasElements(prev => [...prev, newElement]);
+ setSelectedElementId(newElement.id);
+ }, [canvasElements]);
+
+ const bringToFront = useCallback((id: string) => {
+ const maxZIndex = Math.max(...canvasElements.map(el => el.zIndex), 0);
+ updateCanvasElement(id, { zIndex: maxZIndex + 1 });
+ }, [canvasElements, updateCanvasElement]);
+
+ const sendToBack = useCallback((id: string) => {
+ const minZIndex = Math.min(...canvasElements.map(el => el.zIndex), Date.now());
+ updateCanvasElement(id, { zIndex: minZIndex - 1 });
+ }, [canvasElements, updateCanvasElement]);
+
+ // Genere Thumbnails de alta calidad y su generacion de intervalo corto para que el scrubbing se sienta instantáneo
+ const { getThumbnailForTime } = useVideoThumbnails(
+ videoUrl,
+ videoDuration,
+ {
+ interval: 0.1,
+ quality: "high",
+ videoId: videoId || undefined,
+ }
+ );
+
+ const { exportVideo, cancelExport, exportProgress } = useVideoExport(videoRef, canvasRef);
+ const { uploadVideo, loadUploadedVideo, isUploading } = useVideoUpload();
+
+ const handleExport = (quality: ExportQuality) => {
+ exportVideo({
+ quality,
+ trim: trimRange.end > trimRange.start ? { start: trimRange.start, end: trimRange.end } : undefined
+ });
+ };
+
+ // Handler para subir video
+ const handleVideoUpload = useCallback(async (file: File) => {
+ try {
+ // Clear any existing recorded video and thumbnails
+ await deleteRecordedVideo();
+ await clearAllThumbnailCache();
+ } catch (error) {
+ console.warn("Failed to clear previous video:", error);
+ }
+
+ const uploadedData = await uploadVideo(file);
+ if (uploadedData) {
+ setVideoUrl(uploadedData.url);
+ setVideoId(uploadedData.videoId);
+ setVideoDuration(uploadedData.duration);
+ setTrimRange({ start: 0, end: uploadedData.duration });
+ setAspectRatio(uploadedData.aspectRatio);
+
+ // Always store the actual video dimensions
+ setVideoDimensions({ width: uploadedData.width, height: uploadedData.height });
+
+ const defaultFragments = generateDefaultZoomFragments(uploadedData.duration);
+ setZoomFragments(defaultFragments);
+
+ // Reset playback state
+ setCurrentTime(0);
+ setIsPlaying(false);
+ }
+ }, [uploadVideo]);
+
+ useEffect(() => {
+ const loadVideo = async () => {
+ try {
+ // Try loading recorded video first
+ let videoData = await loadVideoFromIndexedDB();
+
+ // If no recorded video, try loading uploaded video
+ if (!videoData) {
+ const uploadedData = await loadUploadedVideo();
+ if (uploadedData) {
+ videoData = {
+ url: uploadedData.url,
+ videoId: uploadedData.videoId,
+ duration: uploadedData.duration,
+ blob: new Blob(), // Not needed for display
+ };
+ setAspectRatio(uploadedData.aspectRatio);
+
+ // Always store the actual video dimensions
+ setVideoDimensions({ width: uploadedData.width, height: uploadedData.height });
+ }
+ }
+
+ if (videoData) {
+ setVideoUrl(videoData.url);
+ setVideoId(videoData.videoId);
+ setVideoDuration(videoData.duration);
+ setTrimRange({ start: 0, end: videoData.duration });
+ const defaultFragments = generateDefaultZoomFragments(videoData.duration);
+ setZoomFragments(defaultFragments);
+ }
+ } catch (error) {
+ console.error("Error loading video:", error);
+ }
+ };
+
+ loadVideo();
+ }, [loadUploadedVideo]);
+
+ useEffect(() => {
+ if (uploadedImages.length > 0) {
+ localStorage.setItem("freeshot-uploaded-images", JSON.stringify(uploadedImages));
+ }
+ }, [uploadedImages]);
+
+ const togglePlayPause = useCallback(() => {
+ if (videoRef.current) {
+ if (isPlaying) {
+ videoRef.current.pause();
+ } else {
+ // When playing, ensure we start from within trim range
+ if (trimRange.end > 0) {
+ const currentVideoTime = videoRef.current.currentTime;
+ // If outside trim range or at the end, jump to trim start
+ if (currentVideoTime < trimRange.start || currentVideoTime >= trimRange.end) {
+ videoRef.current.currentTime = trimRange.start;
+ setCurrentTime(trimRange.start);
+ }
+ }
+ videoRef.current.play();
+ }
+ setIsPlaying(!isPlaying);
+ }
+ }, [isPlaying, trimRange.start, trimRange.end]);
+
+ // Smooth time update using requestAnimationFrame
+ const updateTimeSmoothRef = useRef<() => void>(() => { });
+
+ useEffect(() => {
+ updateTimeSmoothRef.current = () => {
+ // Skip update if video just ended (prevents jump to 0)
+ if (justEndedRef.current) return;
+
+ if (videoRef.current && !isDraggingPlayhead) {
+ const currentVideoTime = videoRef.current.currentTime;
+
+ // Check if we've reached the trim end point
+ if (trimRange.end > 0 && currentVideoTime >= trimRange.end) {
+ videoRef.current.pause();
+ setIsPlaying(false);
+ justEndedRef.current = true;
+ setCurrentTime(trimRange.end);
+ // Don't modify videoRef.currentTime to avoid visual jump
+ setTimeout(() => { justEndedRef.current = false; }, 300);
+ return;
+ }
+
+ setCurrentTime(currentVideoTime);
+ }
+ if (isPlaying && !isDraggingPlayhead) {
+ animationFrameRef.current = requestAnimationFrame(updateTimeSmoothRef.current);
+ }
+ };
+ }, [isPlaying, isDraggingPlayhead, trimRange.end]);
+
+ // Start/stop animation frame loop based on playing state
+ useEffect(() => {
+ if (isPlaying && !isDraggingPlayhead) {
+ animationFrameRef.current = requestAnimationFrame(updateTimeSmoothRef.current);
+ } else {
+ if (animationFrameRef.current) {
+ cancelAnimationFrame(animationFrameRef.current);
+ animationFrameRef.current = null;
+ }
+ }
+
+ return () => {
+ if (animationFrameRef.current) {
+ cancelAnimationFrame(animationFrameRef.current);
+ }
+ };
+ }, [isPlaying, isDraggingPlayhead]);
+
+ const handleTimeUpdate = () => {
+ // Only update if not using animation frame (fallback for paused state)
+ // Ignore updates right after video ended to prevent reset to 0
+ if (videoRef.current && !isPlaying && !justEndedRef.current) {
+ setCurrentTime(videoRef.current.currentTime);
+ }
+ };
+
+ const handlePlayheadDragStart = useCallback(() => {
+ setIsDraggingPlayhead(true);
+ // Pause video during scrubbing for smoother experience
+ if (videoRef.current && !videoRef.current.paused) {
+ wasPlayingBeforeDragRef.current = true;
+ videoRef.current.pause();
+ } else {
+ wasPlayingBeforeDragRef.current = false;
+ }
+ }, []);
+
+ const handlePlayheadDragEnd = useCallback(() => {
+ setIsDraggingPlayhead(false);
+
+ if (videoRef.current) {
+ videoRef.current.currentTime = scrubTime;
+ }
+
+ if (wasPlayingBeforeDragRef.current && videoRef.current) {
+ videoRef.current.play();
+ setIsPlaying(true);
+ }
+ }, [scrubTime]);
+
+ const handleZoomChange = useCallback((zoom: number) => {
+ setTimelineZoom(zoom);
+ }, []);
+
+ const handleLoadedMetadata = () => {
+ if (videoRef.current) {
+ const duration = videoRef.current.duration;
+ if (isFinite(duration) && duration > 0) {
+ setVideoDuration(duration);
+ setTrimRange(prev => prev.end === 0 ? { start: 0, end: duration } : prev);
+ }
+ }
+ };
+
+ const skipBackward = () => {
+ if (videoRef.current) {
+ videoRef.current.currentTime = Math.max(0, videoRef.current.currentTime - 5);
+ }
+ };
+
+ const skipForward = () => {
+ if (videoRef.current) {
+ videoRef.current.currentTime = Math.min(videoDuration, videoRef.current.currentTime + 5);
+ }
+ };
+
+ const handleSeek = useCallback((time: number) => {
+ setScrubTime(time);
+ setCurrentTime(time);
+
+ if (videoRef.current && !isDraggingPlayhead) {
+ if ('fastSeek' in videoRef.current && typeof videoRef.current.fastSeek === 'function') {
+ videoRef.current.fastSeek(time);
+ } else {
+ videoRef.current.currentTime = time;
+ }
+ }
+ }, [isDraggingPlayhead]);
+
+ const handleImageUpload = (file: File) => {
+ const reader = new FileReader();
+ reader.onload = (e) => {
+ const dataUrl = e.target?.result as string;
+ if (dataUrl) {
+ setUploadedImages(prev => [dataUrl, ...prev]);
+ setSelectedImageUrl(dataUrl);
+ }
+ };
+ reader.readAsDataURL(file);
+ };
+
+ const handleImageSelect = (url: string) => {
+ setSelectedImageUrl(url);
+ };
+
+ const handleImageRemove = (url: string) => {
+ setUploadedImages(prev => prev.filter(img => img !== url));
+ if (selectedImageUrl === url) {
+ setSelectedImageUrl("");
+ }
+ };
+
+ // Background tab change handler
+ const handleBackgroundTabChange = (tab: BackgroundTab) => {
+ setBackgroundTab(tab);
+ };
+
+ // Handler para cambio de color/gradiente
+ const handleBackgroundColorChange = (config: BackgroundColorConfig) => {
+ setBackgroundColorConfig(config);
+ };
+
+ // Zoom fragment handlers
+ const handleSelectZoomFragment = useCallback((fragmentId: string | null) => {
+ setSelectedZoomFragmentId(fragmentId);
+ }, []);
+
+ const handleActivateZoomTool = useCallback(() => {
+ setActiveTool("zoom");
+ }, []);
+
+ // Default duration for new zoom fragments
+ const DEFAULT_ZOOM_FRAGMENT_DURATION = 2;
+
+ const handleAddZoomFragment = useCallback((startTime: number) => {
+ // Find valid position avoiding overlaps - use ref to get latest fragments
+ const validPosition = findValidFragmentPosition(
+ startTime,
+ DEFAULT_ZOOM_FRAGMENT_DURATION,
+ zoomFragmentsRef.current,
+ videoDuration
+ );
+
+ if (!validPosition) {
+ // No space available - could show a toast/notification
+ console.warn("No space available for new zoom fragment");
+ return;
+ }
+
+ const newFragment = createZoomFragment(validPosition.startTime, validPosition.endTime);
+ setZoomFragments(prev => [...prev, newFragment].sort((a, b) => a.startTime - b.startTime));
+ setSelectedZoomFragmentId(newFragment.id);
+ setActiveTool("zoom"); // Switch to zoom tool when adding
+ }, [videoDuration]);
+
+ const handleUpdateZoomFragment = useCallback((fragmentId: string, updates: Partial<ZoomFragment>) => {
+ setZoomFragments(prev => prev.map(f =>
+ f.id === fragmentId ? { ...f, ...updates } : f
+ ).sort((a, b) => a.startTime - b.startTime));
+ }, []);
+
+ const handleDeleteZoomFragment = useCallback((fragmentId: string) => {
+ setZoomFragments(prev => prev.filter(f => f.id !== fragmentId));
+ if (selectedZoomFragmentId === fragmentId) {
+ setSelectedZoomFragmentId(null);
+ }
+ }, [selectedZoomFragmentId]);
+
+ // Get currently selected zoom fragment - memoized
+ const selectedZoomFragment = useMemo(() =>
+ zoomFragments.find(f => f.id === selectedZoomFragmentId) || null,
+ [zoomFragments, selectedZoomFragmentId]
+ );
+
+ // Calcular el CSS del background actual - memoized
+ const backgroundColorCss = useMemo((): string | undefined => {
+ if (backgroundTab === "color" && backgroundColorConfig) {
+ if (backgroundColorConfig.type === "solid") {
+ return backgroundColorConfig.config.color;
+ } else {
+ return gradientToCss(backgroundColorConfig.config);
+ }
+ }
+ return undefined;
+ }, [backgroundTab, backgroundColorConfig]);
+
+ // Fullscreen toggle handler
+ const toggleFullscreen = useCallback(async () => {
+ if (!editorAreaRef.current) return;
+
+ try {
+ if (!document.fullscreenElement) {
+ await editorAreaRef.current.requestFullscreen();
+ setIsFullscreen(true);
+ } else {
+ await document.exitFullscreen();
+ setIsFullscreen(false);
+ }
+ } catch (error) {
+ console.error("Error toggling fullscreen:", error);
+ }
+ }, []);
+
+ // Listen for fullscreen changes (e.g., pressing Escape)
+ useEffect(() => {
+ const handleFullscreenChange = () => {
+ setIsFullscreen(!!document.fullscreenElement);
+ };
+
+ document.addEventListener("fullscreenchange", handleFullscreenChange);
+ return () => document.removeEventListener("fullscreenchange", handleFullscreenChange);
+ }, []);
+
+ // Keyboard shortcuts for zoom fragments
+ useEffect(() => {
+ const handleKeyDown = (e: KeyboardEvent) => {
+ // Don't trigger if user is typing in an input
+ if (e.target instanceof HTMLInputElement || e.target instanceof HTMLTextAreaElement) {
+ return;
+ }
+
+ // Delete selected canvas element with Delete or Backspace
+ if ((e.key === "Delete" || e.key === "Backspace") && selectedElementId) {
+ e.preventDefault();
+ deleteCanvasElement(selectedElementId);
+ return; // Prevent zoom fragment deletion if element is selected
+ }
+
+ // Delete selected zoom fragment with Delete or Backspace
+ if ((e.key === "Delete" || e.key === "Backspace") && selectedZoomFragmentId) {
+ e.preventDefault();
+ handleDeleteZoomFragment(selectedZoomFragmentId);
+ }
+
+ // Escape to deselect canvas element or zoom fragment
+ if (e.key === "Escape") {
+ e.preventDefault();
+ if (selectedElementId) {
+ setSelectedElementId(null);
+ } else if (selectedZoomFragmentId) {
+ setSelectedZoomFragmentId(null);
+ }
+ }
+
+ // Don't handle spacebar here - let PlayerControls handle it to avoid conflicts
+ };
+
+ document.addEventListener("keydown", handleKeyDown);
+ return () => document.removeEventListener("keydown", handleKeyDown);
+ }, [selectedElementId, selectedZoomFragmentId, deleteCanvasElement, handleDeleteZoomFragment]);
+
+ useEffect(() => {
+ const checkMobile = () => {
+ if (window.innerWidth < 768) {
+ setIsControlPanelOpen(false);
+ }
+ };
+ checkMobile();
+ window.addEventListener("resize", checkMobile);
+ return () => window.removeEventListener("resize", checkMobile);
+ }, []);
+
+ const handleAspectRatioChange = useCallback((ratio: AspectRatio) => {
+ setAspectRatio(ratio);
+ }, []);
+
+ const handleCustomDimensionsChange = useCallback((dimensions: { width: number; height: number }) => {
+ setCustomDimensions(dimensions);
+ }, []);
+
+ const handleOpenCropper = useCallback(() => {
+ setIsCropperOpen(true);
+ }, []);
+
+ const handleCloseCropper = useCallback(() => {
+ setIsCropperOpen(false);
+ }, []);
+
+ const handleCropApply = useCallback((crop: CropArea) => {
+ setCropArea(crop);
+ }, []);
+
+ return (
+ <div className="flex flex-col h-screen w-full bg-[#0E0E12] text-white/60 font-sans overflow-hidden select-none">
+ <div className="flex flex-1 overflow-hidden">
+ {/* Tools Sidebar */}
+ <ToolsSidebar
+ activeTool={activeTool}
+ onToolChange={setActiveTool}
+ onVideoUpload={handleVideoUpload}
+ isUploading={isUploading}
+ />
+
+ {/* Control Panel */}
+ <AnimatePresence mode="wait">
+ {isControlPanelOpen && (
+ <motion.div
+ key="control-panel"
+ initial={{ x: -320, opacity: 0 }}
+ animate={{ x: 0, opacity: 1 }}
+ exit={{ x: -320, opacity: 0 }}
+ transition={{ duration: 0.3, ease: "easeInOut" }}
+ >
+ <Suspense fallback={
+ <div className="w-[320px] h-screen bg-[#141417] border-r border-white/10 flex items-center justify-center">
+ <LoadingSpinner message="Cargando panel..." />
+ </div>
+ }>
+ <ControlPanel
+ activeTool={activeTool}
+ backgroundTab={backgroundTab}
+ onBackgroundTabChange={handleBackgroundTabChange}
+ selectedWallpaper={selectedWallpaper}
+ onWallpaperSelect={setSelectedWallpaper}
+ backgroundBlur={backgroundBlur}
+ onBackgroundBlurChange={setBackgroundBlur}
+ padding={padding}
+ onPaddingChange={setPadding}
+ roundedCorners={roundedCorners}
+ onRoundedCornersChange={handleRoundedCornersChange}
+ shadows={shadows}
+ onShadowsChange={setShadows}
+ uploadedImages={uploadedImages}
+ selectedImageUrl={selectedImageUrl}
+ onImageUpload={handleImageUpload}
+ onImageSelect={handleImageSelect}
+ onImageRemove={handleImageRemove}
+ backgroundColorConfig={backgroundColorConfig}
+ onBackgroundColorChange={handleBackgroundColorChange}
+ onTogglePanel={() => setIsControlPanelOpen(!isControlPanelOpen)}
+ isOpen={isControlPanelOpen}
+ // Zoom props
+ zoomFragments={zoomFragments}
+ selectedZoomFragment={selectedZoomFragment}
+ onSelectZoomFragment={handleSelectZoomFragment}
+ onAddZoomFragment={() => handleAddZoomFragment(currentTime)}
+ onUpdateZoomFragment={handleUpdateZoomFragment}
+ onDeleteZoomFragment={handleDeleteZoomFragment}
+ videoUrl={videoUrl}
+ videoThumbnail={selectedZoomFragment ? getThumbnailForTime(selectedZoomFragment.startTime)?.dataUrl ?? null : null}
+ currentTime={currentTime}
+ getThumbnailForTime={getThumbnailForTime}
+ videoDimensions={customAspectRatio}
+ // Mockup props
+ mockupId={mockupId}
+ mockupConfig={mockupConfig}
+ onMockupChange={handleMockupChange}
+ onMockupConfigChange={handleMockupConfigChange}
+ // Canvas elements props
+ onAddCanvasElement={addCanvasElement}
+ selectedCanvasElement={canvasElements.find(el => el.id === selectedElementId) || null}
+ onUpdateCanvasElement={updateCanvasElement}
+ onDeleteCanvasElement={deleteCanvasElement}
+ onDuplicateCanvasElement={duplicateCanvasElement}
+ onBringToFront={bringToFront}
+ onSendToBack={sendToBack}
+ />
+ </Suspense>
+ </motion.div>
+ )}
+ </AnimatePresence>
+
+ {/* Main Editor Area */}
+ <div
+ ref={editorAreaRef}
+ className="flex-1 bg-[#09090B] flex flex-col relative overflow-hidden"
+ >
+ <AnimatePresence>
+ {!isControlPanelOpen && (
+ <motion.button
+ initial={{ x: -100, opacity: 0 }}
+ animate={{ x: 0, opacity: 1 }}
+ exit={{ x: -100, opacity: 0 }}
+ transition={{ duration: 0.3, ease: "easeInOut", delay: 0.15 }}
+ whileHover={{ scale: 1.1 }}
+ whileTap={{ scale: 0.9 }}
+ onClick={() => setIsControlPanelOpen(true)}
+ className="absolute top-2 left-4 z-50 p-2 squircle-element bg-[#18181b] border border-white/10 text-white hover:bg-[#252529] transition-all duration-200 shadow-lg"
+ title="Abrir panel de control"
+ >
+ <Icon icon="lucide:sidebar-open" width="20" />
+ </motion.button>
+ )}
+ </AnimatePresence>
+
+ <EditorTopBar
+ onExport={handleExport}
+ exportProgress={exportProgress}
+ />
+
+ {/* Video Canvas */}
+ <VideoCanvas
+ ref={canvasRef}
+ videoUrl={videoUrl}
+ videoRef={videoRef}
+ padding={padding}
+ roundedCorners={roundedCorners}
+ shadows={shadows}
+ aspectRatio={aspectRatio}
+ customAspectRatio={customAspectRatio}
+ cropArea={cropArea}
+ backgroundTab={backgroundTab}
+ selectedWallpaper={selectedWallpaper}
+ backgroundBlur={backgroundBlur}
+ selectedImageUrl={selectedImageUrl}
+ backgroundColorCss={backgroundColorCss}
+ onTimeUpdate={handleTimeUpdate}
+ onLoadedMetadata={handleLoadedMetadata}
+ // Scrubbing props for instant thumbnail preview
+ isScrubbing={isDraggingPlayhead}
+ scrubTime={scrubTime}
+ getThumbnailForTime={getThumbnailForTime}
+ // Zoom props
+ zoomFragments={zoomFragments}
+ currentTime={currentTime}
+ // Mockup props
+ mockupId={mockupId}
+ mockupConfig={mockupConfig ?? DEFAULT_MOCKUP_CONFIG}
+ // Video upload props
+ onVideoUpload={handleVideoUpload}
+ isUploading={isUploading}
+ // Transform props
+ videoTransform={videoTransform}
+ onVideoTransformChange={setVideoTransform}
+ // Canvas elements props
+ canvasElements={canvasElements}
+ selectedElementId={selectedElementId}
+ onElementUpdate={updateCanvasElement}
+ onElementSelect={selectCanvasElement}
+ onEnded={() => {
+ setIsPlaying(false);
+ justEndedRef.current = true;
+ const endTime = trimRange.end > 0 ? trimRange.end : videoDuration;
+ setCurrentTime(endTime);
+ setTimeout(() => {
+ justEndedRef.current = false;
+ }, 300);
+ }}
+ />
+
+ {/* Player Controls */}
+ <PlayerControls
+ isPlaying={isPlaying}
+ currentTime={currentTime}
+ videoDuration={videoDuration}
+ aspectRatio={aspectRatio}
+ customAspectRatio={aspectRatio === "custom" ? customDimensions : videoDimensions}
+ isFullscreen={isFullscreen}
+ zoomLevel={timelineZoom}
+ onTogglePlayPause={togglePlayPause}
+ onSkipBackward={skipBackward}
+ onSkipForward={skipForward}
+ onToggleFullscreen={toggleFullscreen}
+ onAspectRatioChange={handleAspectRatioChange}
+ onCustomAspectRatioChange={handleCustomDimensionsChange}
+ onOpenCropper={handleOpenCropper}
+ onZoomChange={handleZoomChange}
+ />
+
+ <Suspense fallback={
+ <div className="h-[160px] bg-[#141417] border-t border-white/10 flex items-center justify-center">
+ <LoadingSpinner size="sm" message="Cargando timeline..." />
+ </div>
+ }>
+ <Timeline
+ videoDuration={videoDuration}
+ currentTime={currentTime}
+ onSeek={handleSeek}
+ videoUrl={videoUrl}
+ zoomLevel={timelineZoom}
+ isDraggingPlayhead={isDraggingPlayhead}
+ onDragStart={handlePlayheadDragStart}
+ onDragEnd={handlePlayheadDragEnd}
+ trimRange={trimRange}
+ onTrimChange={setTrimRange}
+ // Zoom props
+ zoomFragments={zoomFragments}
+ selectedZoomFragmentId={selectedZoomFragmentId}
+ onSelectZoomFragment={handleSelectZoomFragment}
+ onAddZoomFragment={handleAddZoomFragment}
+ onUpdateZoomFragment={handleUpdateZoomFragment}
+ onActivateZoomTool={handleActivateZoomTool}
+ />
+ </Suspense>
+
+ </div>
+
+ </div>
+ <Suspense fallback={null}>
+ <ExportOverlay
+ exportProgress={exportProgress}
+ onCancel={cancelExport}
+ />
+ </Suspense>
+ <Suspense fallback={null}>
+ <VideoCropperModal
+ isOpen={isCropperOpen}
+ onClose={handleCloseCropper}
+ videoUrl={videoUrl}
+ onCropApply={handleCropApply}
+ initialCrop={cropArea}
+ />
+ </Suspense>
+ </div>
+ );
+}
\ No newline at end of file
diff --git a/app/(editor)/layout.tsx b/app/(editor)/layout.tsx
new file mode 100644
index 0000000..a64f4a0
--- /dev/null
+++ b/app/(editor)/layout.tsx
@@ -0,0 +1,7 @@
+export default function EditorLayout({ children }: { children: React.ReactNode }) {
+ return (
+ <div className="min-h-screen bg-neutral-950">
+ {children}
+ </div>
+ );
+}
diff --git a/app/(home)/layout.tsx b/app/(home)/layout.tsx
new file mode 100644
index 0000000..aff5733
--- /dev/null
+++ b/app/(home)/layout.tsx
@@ -0,0 +1,22 @@
+"use client";
+
+import "../globals.css";
+import Header from "../components/common/header";
+import Footer from "../components/common/footer";
+import { RecordingProvider } from "@/hooks/RecordingContext";
+import RecordingOverlay from "../components/ui/RecordingOverlay";
+
+export default function HomeLayout({ children }: { children: React.ReactNode }) {
+ return (
+ <RecordingProvider>
+ <div className="flex min-h-screen flex-col text-neutral-300 bg-neutral-950">
+ <Header />
+ <main className="flex-1 w-full">
+ {children}
+ </main>
+ <Footer />
+ </div>
+ <RecordingOverlay />
+ </RecordingProvider>
+ );
+}
diff --git a/app/(home)/page.tsx b/app/(home)/page.tsx
new file mode 100644
index 0000000..274a6a0
--- /dev/null
+++ b/app/(home)/page.tsx
@@ -0,0 +1,23 @@
+import EditorPreview from "../components/ui/EditorPreview";
+import Hero from "../components/ui/Hero";
+import InteractiveRecordingSteps from "../components/ui/RecordingSteps";
+export default function Home() {
+ return (
+ <div className="flex flex-col">
+ <section className="relative pt-32 pb-20 overflow-hidden bg-gradient-radial-primary w-full">
+ <div className="absolute top-0 left-1/2 -translate-x-1/2 w-[1000px] h-[500px] rounded-[100%] blur-3xl pointer-events-none -z-10"></div>
+
+ <div className="max-w-6xl mx-auto px-6 text-center relative z-10">
+ <Hero />
+ <EditorPreview />
+ </div>
+ </section>
+
+ <section className="w-full py-16">
+ <div className="max-w-6xl mx-auto px-6">
+ <InteractiveRecordingSteps />
+ </div>
+ </section>
+ </div>
+ );
+}
\ No newline at end of file
diff --git a/app/_not-found/page.tsx b/app/_not-found/page.tsx
new file mode 100644
index 0000000..a7ee783
--- /dev/null
+++ b/app/_not-found/page.tsx
@@ -0,0 +1,10 @@
+export default function NotFound() {
+ return (
+ <div className="flex h-screen items-center justify-center bg-black">
+ <div className="text-center">
+ <h1 className="text-4xl font-bold text-white mb-4">404</h1>
+ <p className="text-xl text-gray-400">Página no encontrada</p>
+ </div>
+ </div>
+ );
+}
\ No newline at end of file
diff --git a/app/components/common/footer.tsx b/app/components/common/footer.tsx
new file mode 100644
index 0000000..0905456
--- /dev/null
+++ b/app/components/common/footer.tsx
@@ -0,0 +1,56 @@
+import { Icon } from "@iconify/react";
+
+export default function Footer() {
+ return (
+ <footer className="border-t border-white/10 bg-[#050505] pt-16 pb-8">
+ <div className="max-w-7xl mx-auto px-6 flex flex-col md:flex-row justify-between gap-12 mb-16">
+ <div className="w-full md:w-1/3">
+ <div className="flex items-center gap-2 mb-4">
+ <div className="w-5 h-5 rounded bg-neutral-200 flex items-center justify-center text-black">
+ <Icon icon="solar:record-circle-linear" width="14"></Icon>
+ </div>
+ <span className="text-white font-medium tracking-tight">FreeShot</span>
+ </div>
+ <p className="text-neutral-500 text-sm leading-relaxed">
+ The modern standard for screen recording and video editing. Built for the web.
+ </p>
+ </div>
+
+ <div className="flex gap-12 md:gap-24">
+ <div>
+ <h4 className="text-white font-medium text-sm mb-4">Product</h4>
+ <ul className="space-y-3 text-sm text-neutral-500">
+ <li><a href="#" className="hover:text-white transition-colors">Features</a></li>
+ <li><a href="#" className="hover:text-white transition-colors">Changelog</a></li>
+ <li><a href="#" className="hover:text-white transition-colors">Pricing</a></li>
+ </ul>
+ </div>
+ <div>
+ <h4 className="text-white font-medium text-sm mb-4">Company</h4>
+ <ul className="space-y-3 text-sm text-neutral-500">
+ <li><a href="#" className="hover:text-white transition-colors">About</a></li>
+ <li><a href="#" className="hover:text-white transition-colors">Blog</a></li>
+ <li><a href="#" className="hover:text-white transition-colors">Careers</a></li>
+ </ul>
+ </div>
+ <div>
+ <h4 className="text-white font-medium text-sm mb-4">Legal</h4>
+ <ul className="space-y-3 text-sm text-neutral-500">
+ <li><a href="#" className="hover:text-white transition-colors">Privacy</a></li>
+ <li><a href="#" className="hover:text-white transition-colors">Terms</a></li>
+ </ul>
+ </div>
+ </div>
+ </div>
+
+ <div className="max-w-7xl mx-auto px-6 pt-8 border-t border-white/10 flex flex-col md:flex-row justify-between items-center gap-4">
+ <span className="text-xs text-neutral-600">© 2023 FreeShot Inc. All rights reserved.</span>
+ <div className="flex gap-4 text-neutral-600">
+ <a href="#" className="hover:text-white transition-colors"><Icon icon="solar:brand-twitter-linear" width="18"></Icon></a>
+ <a href="#" className="hover:text-white transition-colors"><Icon icon="solar:brand-github-linear" width="18"></Icon></a>
+ <a href="#" className="hover:text-white transition-colors"><Icon icon="solar:brand-discord-linear" width="18"></Icon></a>
+ </div>
+ </div>
+ </footer>
+ );
+}
\ No newline at end of file
diff --git a/app/components/common/header.tsx b/app/components/common/header.tsx
new file mode 100644
index 0000000..9067a1d
--- /dev/null
+++ b/app/components/common/header.tsx
@@ -0,0 +1,64 @@
+"use client";
+
+import { useState, useEffect } from "react";
+import { Button } from "@/components/ui/button";
+import { Icon } from "@iconify/react";
+import Image from "next/image";
+import { cn } from "@/lib/utils";
+import Link from "next/link";
+
+export default function Header() {
+ const [isScrolled, setIsScrolled] = useState(false);
+
+ useEffect(() => {
+ const handleScroll = () => {
+ setIsScrolled(window.scrollY > 20);
+ };
+
+ window.addEventListener("scroll", handleScroll);
+ return () => window.removeEventListener("scroll", handleScroll);
+ }, []);
+
+ return (
+ <header
+ className={cn(
+ "fixed top-0 w-full z-50 transition-all duration-300",
+ isScrolled
+ ? "border-b border-white/10 bg-[#050505]/80 backdrop-blur-xl py-0"
+ : "bg-transparent border-transparent py-2"
+ )}
+ >
+ <div className="max-w-6xl mx-auto px-3 sm:px-6 h-16 flex items-center justify-between">
+ <Link href="/" className="flex items-center gap-2 group">
+ <Image src="/svg/logo-freeshot.svg" alt="Logo" width={50} height={50} />
+ <span className="hidden sm:flex text-white font-semibold text-lg transition-colors group-hover:text-neutral-200">
+ Free
+ <span className="relative inline-block px-1 ml-0.5">
+ <span className="absolute inset-0 bg-blue-500/20 border border-dashed border-blue-400/50 rounded-sm -rotate-1" />
+
+ <span className="relative">Shot</span>
+
+ <div className="absolute -bottom-1 -right-1 size-2 bg-sky-500 border border-white rounded-full shadow-lg" />
+ </span>
+ </span>
+ </Link>
+ <div className="hidden md:flex items-center gap-8 text-sm font-medium text-neutral-400">
+ <a href="#docs" className="hover:text-white transition-colors">Documentación</a>
+ <a href="#workflow" className="hover:text-white transition-colors">Workflow</a>
+ <a href="#pricing" className="hover:text-white transition-colors">Pricing</a>
+ </div>
+
+ <div className="flex items-center gap-2 sm:gap-4">
+ <Button asChild variant="outline">
+ <Link href="/login">Iniciar sesión</Link>
+ </Button>
+ <Button asChild variant="primary">
+ <Link href="/editor">Empezar a grabar
+ <Icon icon="solar:arrow-right-linear" width="16" className="hidden sm:flex" />
+ </Link>
+ </Button>
+ </div>
+ </div>
+ </header>
+ );
+}
diff --git a/app/components/ui/AspectRatioSelect.tsx b/app/components/ui/AspectRatioSelect.tsx
new file mode 100644
index 0000000..a243fbe
--- /dev/null
+++ b/app/components/ui/AspectRatioSelect.tsx
@@ -0,0 +1,157 @@
+import { useState } from "react";
+import {
+ Popover,
+ PopoverContent,
+ PopoverTrigger,
+} from "@/components/ui/popover";
+import { Icon } from "@iconify/react";
+import type { AspectRatio } from "@/types";
+
+interface AspectRatioSelectProps {
+ value: AspectRatio;
+ onChange: (value: AspectRatio) => void;
+ customDimensions?: { width: number; height: number } | null;
+ onCustomDimensionsChange?: (dimensions: { width: number; height: number }) => void;
+}
+
+// Separé "custom" de la lista principal para manejarlo en su propia sección
+const STANDARD_RATIOS: Partial<Record<AspectRatio, string>> = {
+ "auto": "Auto",
+ "16:9": "16:9 YouTube",
+ "9:16": "9:16 TikTok",
+ "1:1": "1:1 Instagram",
+ "4:3": "4:3",
+ "3:4": "3:4",
+};
+
+export function AspectRatioSelect({ value, onChange, customDimensions, onCustomDimensionsChange }: AspectRatioSelectProps) {
+ const [isOpen, setIsOpen] = useState(false);
+
+ // Use current dimensions or defaults when opening the popover
+ const [tempWidth, setTempWidth] = useState("");
+ const [tempHeight, setTempHeight] = useState("");
+
+ const handleOpenChange = (open: boolean) => {
+ if (open) {
+ // Initialize with current dimensions when opening
+ setTempWidth(customDimensions?.width?.toString() || "1920");
+ setTempHeight(customDimensions?.height?.toString() || "1080");
+ }
+ setIsOpen(open);
+ };
+
+ const handleStandardRatioClick = (ratio: AspectRatio) => {
+ onChange(ratio);
+ setIsOpen(false);
+ };
+
+ const handleCustomApply = () => {
+ const width = parseInt(tempWidth);
+ const height = parseInt(tempHeight);
+
+ if (width > 0 && height > 0 && onCustomDimensionsChange) {
+ onCustomDimensionsChange({ width, height });
+ onChange("custom");
+ setIsOpen(false);
+ }
+ };
+
+ // Obtenemos la etiqueta a mostrar en el botón principal
+ const displayLabel = (() => {
+ if (value === "custom" && customDimensions) {
+ return `${customDimensions.width}x${customDimensions.height}`;
+ }
+ if (value === "auto") {
+ return "Auto";
+ }
+ return STANDARD_RATIOS[value as keyof typeof STANDARD_RATIOS] || "Personalizado";
+ })();
+
+ return (
+ <Popover open={isOpen} onOpenChange={handleOpenChange}>
+ <PopoverTrigger asChild>
+ <button
+ className="flex items-center gap-2 h-8 px-3 text-xs font-medium border border-input bg-background rounded-md hover:bg-accent hover:text-accent-foreground transition-colors w-full sm:w-auto"
+ title="Seleccionar proporción de aspecto"
+ >
+ <Icon icon="mynaui:layout" width="16" className="shrink-0" />
+ <span className="truncate">{displayLabel}</span>
+ <Icon icon="lucide:chevron-down" width="14" className="ml-auto opacity-50 shrink-0" />
+ </button>
+ </PopoverTrigger>
+
+ {/* Hice el Popover un poco más ancho (w-64) para que los inputs quepan bien uno al lado del otro */}
+ <PopoverContent className="w-64 p-2" align="start">
+ <div className="flex flex-col gap-1">
+
+ {/* SECCIÓN 1: Opciones Predefinidas */}
+ <div className="flex flex-col">
+ {(Object.keys(STANDARD_RATIOS) as AspectRatio[]).map((ratio) => (
+ <button
+ key={ratio}
+ onClick={() => handleStandardRatioClick(ratio)}
+ className={`flex items-center w-full px-2 py-1.5 text-sm rounded-sm transition-colors
+ ${value === ratio
+ ? "bg-accent text-accent-foreground font-medium"
+ : "hover:bg-accent hover:text-accent-foreground text-muted-foreground"
+ }
+ `}
+ >
+ <span className="flex-1 text-left">{STANDARD_RATIOS[ratio]}</span>
+ {value === ratio && (
+ <Icon icon="lucide:check" width="16" className="shrink-0" />
+ )}
+ </button>
+ ))}
+ </div>
+
+ <div className="h-px bg-border my-2 mx-1" />
+
+ {/* SECCIÓN 2: Formulario Personalizado */}
+ <div className="px-2 pb-1">
+ <div className="flex items-center justify-between mb-2">
+ <span className="text-xs font-medium text-foreground">Personalizado</span>
+ {value === "custom" && (
+ <Icon icon="lucide:check" width="14" className="text-accent-foreground" />
+ )}
+ </div>
+
+ <div className="flex items-center gap-2 mb-3">
+ <div className="flex-1">
+ <input
+ type="number"
+ min="1"
+ max="7680"
+ value={tempWidth}
+ onChange={(e) => setTempWidth(e.target.value)}
+ placeholder="Ancho"
+ className="w-full h-8 px-2 text-xs border border-input bg-background rounded-md focus:outline-none focus:ring-1 focus:ring-ring"
+ />
+ </div>
+ <span className="text-muted-foreground text-xs">x</span>
+ <div className="flex-1">
+ <input
+ type="number"
+ min="1"
+ max="4320"
+ value={tempHeight}
+ onChange={(e) => setTempHeight(e.target.value)}
+ placeholder="Alto"
+ className="w-full h-8 px-2 text-xs border border-input bg-background rounded-md focus:outline-none focus:ring-1 focus:ring-ring"
+ />
+ </div>
+ </div>
+
+ <button
+ onClick={handleCustomApply}
+ className="w-full h-8 text-xs font-medium bg-primary text-primary-foreground hover:bg-primary/90 rounded-md transition-colors"
+ >
+ Aplicar medidas
+ </button>
+ </div>
+
+ </div>
+ </PopoverContent>
+ </Popover>
+ );
+}
\ No newline at end of file
diff --git a/app/components/ui/BackgroundColorEditor.tsx b/app/components/ui/BackgroundColorEditor.tsx
new file mode 100644
index 0000000..af6c186
--- /dev/null
+++ b/app/components/ui/BackgroundColorEditor.tsx
@@ -0,0 +1,620 @@
+"use client";
+
+import { Icon } from "@iconify/react";
+import { useState, useRef, useMemo, useEffect, useCallback } from "react";
+import type {
+ BackgroundColorConfig,
+ GradientConfig,
+ ColorStop,
+ GradientType
+} from "@/types";
+import { gradientToCss, PRESET_SOLID_COLORS, PRESET_LINEAR_GRADIENTS, PRESET_RADIAL_GRADIENTS, PRESET_CONIC_GRADIENTS } from "@/types";
+import { Popover, PopoverContent, PopoverTrigger } from "@/components/ui/popover";
+
+interface BackgroundColorEditorProps {
+ value: BackgroundColorConfig | null;
+ onChange: (config: BackgroundColorConfig) => void;
+}
+
+let stopIdCounter = 0;
+function generateStopId() {
+ return `stop-${Date.now()}-${stopIdCounter++}`;
+}
+
+function ensureStopIds(stops: ColorStop[]): ColorStop[] {
+ return stops.map(stop => ({
+ ...stop,
+ id: stop.id || generateStopId()
+ }));
+}
+
+// ── Native Drag & Drop — zero re-renders, original-position hit testing ──
+
+interface SortableStopListProps {
+ stops: ColorStop[];
+ onReorder: (newStops: ColorStop[]) => void;
+ onColorChange: (index: number, color: string) => void;
+ onPositionChange: (index: number, position: number) => void;
+ onRemove: (index: number) => void;
+}
+
+function SortableStopList({ stops, onReorder, onColorChange, onPositionChange, onRemove }: SortableStopListProps) {
+ const listRef = useRef<HTMLDivElement>(null);
+ const ghostRef = useRef<HTMLDivElement | null>(null);
+ const indicatorRef = useRef<HTMLDivElement | null>(null);
+ const dragIdxRef = useRef<number>(-1);
+ const overIdxRef = useRef<number>(-1);
+ // Snapshot of each item's original top/bottom in the viewport, taken at drag start
+ // before any transforms are applied. Used for hit-testing throughout the drag.
+ const originalRectsRef = useRef<{ top: number; bottom: number; mid: number }[]>([]);
+ const offsetRef = useRef({ x: 0, y: 0 });
+ const itemHeightRef = useRef(0); // height + gap, measured once
+
+ const stopsRef = useRef(stops);
+ useEffect(() => { stopsRef.current = stops; }, [stops]);
+ const onReorderRef = useRef(onReorder);
+ useEffect(() => { onReorderRef.current = onReorder; }, [onReorder]);
+
+ const getItemEls = () =>
+ listRef.current
+ ? Array.from(listRef.current.querySelectorAll<HTMLElement>("[data-drag-row]"))
+ : [];
+
+ /** Apply CSS transforms directly to DOM — no React state touched */
+ const applyVisuals = (dragIdx: number, overIdx: number) => {
+ const items = getItemEls();
+ const h = itemHeightRef.current;
+
+ items.forEach((el, i) => {
+ if (i === dragIdx) {
+ el.style.opacity = "0.2";
+ el.style.transform = "none";
+ return;
+ }
+ // Which items need to slide to make room for the dragged item?
+ let shift = 0;
+ if (dragIdx < overIdx) {
+ // moving down → items between [dragIdx+1 .. overIdx] slide UP by h
+ if (i > dragIdx && i <= overIdx) shift = -h;
+ } else if (dragIdx > overIdx) {
+ // moving up → items between [overIdx .. dragIdx-1] slide DOWN by h
+ if (i >= overIdx && i < dragIdx) shift = h;
+ }
+ el.style.transform = shift !== 0 ? `translateY(${shift}px)` : "none";
+ el.style.opacity = "1";
+ });
+
+ // Indicator line — positioned using original rects (untransformed)
+ if (indicatorRef.current && originalRectsRef.current[overIdx]) {
+ const orig = originalRectsRef.current[overIdx];
+ const listTop = listRef.current!.getBoundingClientRect().top;
+ // Line goes BELOW target when dragging down, ABOVE when dragging up
+ const lineY = dragIdx <= overIdx
+ ? orig.bottom - listTop
+ : orig.top - listTop;
+ indicatorRef.current.style.top = `${lineY}px`;
+ indicatorRef.current.style.opacity = "1";
+ }
+ };
+
+ const resetVisuals = () => {
+ getItemEls().forEach(el => {
+ el.style.transform = "";
+ el.style.opacity = "";
+ el.style.transition = "";
+ });
+ if (indicatorRef.current) indicatorRef.current.style.opacity = "0";
+ };
+
+ const handlePointerDown = useCallback((e: React.PointerEvent<HTMLElement>, index: number) => {
+ if (e.pointerType === "mouse" && e.button !== 0) return;
+ e.preventDefault();
+
+ const rowEl = (e.currentTarget as HTMLElement).closest<HTMLElement>("[data-drag-row]");
+ if (!rowEl) return;
+
+ // ── Snapshot original positions BEFORE any transforms ──────────────
+ const items = getItemEls();
+ originalRectsRef.current = items.map(el => {
+ const r = el.getBoundingClientRect();
+ return { top: r.top, bottom: r.bottom, mid: r.top + r.height / 2 };
+ });
+
+ const rect = rowEl.getBoundingClientRect();
+ // height + the actual gap between rows (space-y-1 = 4px)
+ itemHeightRef.current = rect.height + 4;
+ offsetRef.current = { x: e.clientX - rect.left, y: e.clientY - rect.top };
+ dragIdxRef.current = index;
+ overIdxRef.current = index;
+
+ // ── Ghost element ────────────────────────────────────────────────────
+ const ghost = rowEl.cloneNode(true) as HTMLDivElement;
+ Object.assign(ghost.style, {
+ position: "fixed",
+ pointerEvents: "none",
+ zIndex: "9999",
+ width: `${rect.width}px`,
+ height: `${rect.height}px`,
+ left: `${rect.left}px`,
+ top: `${rect.top}px`,
+ opacity: "0.93",
+ transform: "scale(1.02) rotate(0.5deg)",
+ boxShadow: "0 16px 48px rgba(0,0,0,0.8), 0 2px 8px rgba(0,0,0,0.5)",
+ borderRadius: "8px",
+ background: "#1c1c1f",
+ border: "1px solid rgba(255,255,255,0.13)",
+ willChange: "left,top",
+ });
+ document.body.appendChild(ghost);
+ ghostRef.current = ghost;
+
+ // ── Indicator line ───────────────────────────────────────────────────
+ const indicator = document.createElement("div");
+ Object.assign(indicator.style, {
+ position: "absolute",
+ left: "0",
+ right: "0",
+ height: "2px",
+ background: "linear-gradient(90deg,transparent 0%,#6366f1 20%,#818cf8 80%,transparent 100%)",
+ borderRadius: "2px",
+ opacity: "0",
+ transition: "top 80ms cubic-bezier(0.25,0.46,0.45,0.94), opacity 60ms ease",
+ zIndex: "10",
+ pointerEvents: "none",
+ marginTop: "-1px",
+ });
+ if (listRef.current) {
+ listRef.current.style.position = "relative";
+ listRef.current.appendChild(indicator);
+ }
+ indicatorRef.current = indicator;
+
+ // Enable transitions on all rows now that drag has started
+ items.forEach(el => {
+ el.style.transition =
+ "transform 160ms cubic-bezier(0.25,0.46,0.45,0.94), opacity 120ms ease";
+ });
+
+ applyVisuals(index, index);
+
+ // ── Pointer move ─────────────────────────────────────────────────────
+ const onMove = (mv: PointerEvent) => {
+ ghost.style.left = `${mv.clientX - offsetRef.current.x}px`;
+ ghost.style.top = `${mv.clientY - offsetRef.current.y}px`;
+
+ // Hit-test against ORIGINAL (pre-transform) midpoints — no jitter
+ const origs = originalRectsRef.current;
+ let newOver = 0;
+ for (let i = 0; i < origs.length; i++) {
+ if (mv.clientY > origs[i].mid) newOver = i;
+ }
+ newOver = Math.max(0, Math.min(stopsRef.current.length - 1, newOver));
+
+ if (newOver !== overIdxRef.current) {
+ overIdxRef.current = newOver;
+ applyVisuals(dragIdxRef.current, newOver);
+ }
+ };
+
+ // ── Pointer up ───────────────────────────────────────────────────────
+ const onUp = () => {
+ document.removeEventListener("pointermove", onMove);
+ document.removeEventListener("pointerup", onUp);
+
+ ghost.remove();
+ ghostRef.current = null;
+ indicator.remove();
+ indicatorRef.current = null;
+
+ const from = dragIdxRef.current;
+ const to = overIdxRef.current;
+
+ // Snap items to final positions instantly before React re-renders
+ // so there's no visual jump when state updates
+ if (from !== to) {
+ const items2 = getItemEls();
+ items2.forEach(el => {
+ el.style.transition = "none";
+ el.style.transform = "";
+ el.style.opacity = "";
+ });
+ } else {
+ resetVisuals();
+ }
+
+ if (from !== to) {
+ const cur = stopsRef.current;
+ const next = [...cur];
+ const [moved] = next.splice(from, 1);
+ next.splice(to, 0, moved);
+
+ const sortedPositions = [...cur].map(s => s.position).sort((a, b) => a - b);
+ const reordered = next.map((stop, i) => ({ ...stop, position: sortedPositions[i] }));
+ onReorderRef.current(reordered);
+ }
+
+ dragIdxRef.current = -1;
+ overIdxRef.current = -1;
+ };
+
+ document.addEventListener("pointermove", onMove);
+ document.addEventListener("pointerup", onUp);
+ // eslint-disable-next-line react-hooks/exhaustive-deps
+ }, []);
+
+ return (
+ <>
+ <style>{`
+ [data-drag-row] { will-change: transform; }
+ `}</style>
+ <div ref={listRef} className="space-y-1">
+ {stops.map((stop, index) => (
+ <div key={stop.id} data-drag-row>
+ <div className="flex items-center gap-2 px-2 py-1.5 rounded-lg bg-white/[0.03] hover:bg-white/[0.05] group/row" style={{ transition: "background 150ms" }}>
+ {/* Drag handle */}
+ <div
+ onPointerDown={(e) => handlePointerDown(e, index)}
+ className="cursor-grab active:cursor-grabbing p-1 text-white/25 hover:text-white/60 transition-colors touch-none select-none flex-shrink-0"
+ >
+ <Icon icon="icon-park-outline:drag" width="14" />
+ </div>
+
+ {/* Color swatch */}
+ <div className="group/sw w-7 h-7 rounded-md border border-white/20 shrink-0 relative overflow-hidden">
+ <div className="w-full h-full" style={{ backgroundColor: stop.color }} />
+ <input
+ type="color"
+ value={stop.color}
+ onChange={(e) => onColorChange(index, e.target.value)}
+ className="absolute inset-0 opacity-0 cursor-pointer z-10 w-full h-full"
+ />
+ <div className="absolute inset-0 flex items-center justify-center pointer-events-none bg-black/0 group-hover/sw:bg-black/20 transition-colors">
+ <Icon icon="mdi:eyedropper" className="text-white opacity-0 group-hover/sw:opacity-70 transition-opacity" width="11" />
+ </div>
+ </div>
+
+ {/* Slider + hex */}
+ <div className="flex-1 min-w-0 space-y-0.5">
+ <div className="text-[9px] font-mono text-white/35 uppercase">{stop.color}</div>
+ <input
+ type="range" min="0" max="100" value={stop.position}
+ onChange={(e) => onPositionChange(index, parseInt(e.target.value))}
+ className="w-full h-1 bg-white/10 rounded-full appearance-none cursor-pointer [&::-webkit-slider-thumb]:appearance-none [&::-webkit-slider-thumb]:w-2 [&::-webkit-slider-thumb]:h-2 [&::-webkit-slider-thumb]:rounded-full [&::-webkit-slider-thumb]:bg-white/70"
+ />
+ </div>
+
+ <div className="text-[9px] font-mono text-white/35 w-7 text-right flex-shrink-0">{stop.position}%</div>
+
+ {stops.length > 2 && (
+ <button
+ onClick={() => onRemove(index)}
+ className="text-white/20 hover:text-red-400/80 transition-colors flex-shrink-0 p-0.5 rounded"
+ >
+ <Icon icon="mdi:close" width="13" />
+ </button>
+ )}
+ </div>
+ </div>
+ ))}
+ </div>
+ </>
+ );
+}
+
+// ── Main component ────────────────────────────────────────────────────────
+
+export function BackgroundColorEditor({ value, onChange }: BackgroundColorEditorProps) {
+ const [mode, setMode] = useState<"solid" | "gradient">(
+ value?.type === "solid" ? "solid" : "gradient"
+ );
+ const [copied, setCopied] = useState(false);
+
+ const currentSolidColor = value?.type === "solid"
+ ? value.config.color
+ : PRESET_SOLID_COLORS[0];
+
+ const currentGradient: GradientConfig = useMemo(() => {
+ if (value?.type === "gradient") {
+ return { ...value.config, stops: ensureStopIds(value.config.stops) };
+ }
+ return { ...PRESET_LINEAR_GRADIENTS[0], stops: ensureStopIds(PRESET_LINEAR_GRADIENTS[0].stops) };
+ }, [value]);
+
+ const currentPresetGradients = useMemo(() => {
+ switch (currentGradient.type) {
+ case "radial": return PRESET_RADIAL_GRADIENTS;
+ case "conic": return PRESET_CONIC_GRADIENTS;
+ default: return PRESET_LINEAR_GRADIENTS;
+ }
+ }, [currentGradient.type]);
+
+ useEffect(() => {
+ if (!value) onChange({ type: "gradient", config: PRESET_LINEAR_GRADIENTS[0] });
+ // eslint-disable-next-line react-hooks/exhaustive-deps
+ }, []);
+
+ const handleSolidColorSelect = (color: string) => onChange({ type: "solid", config: { color } });
+ const handleSolidColorChange = (color: string) => onChange({ type: "solid", config: { color } });
+
+ const handleCopy = () => {
+ navigator.clipboard.writeText(currentSolidColor);
+ setCopied(true);
+ setTimeout(() => setCopied(false), 2000);
+ };
+
+ const handleGradientSelect = (gradient: GradientConfig) => {
+ onChange({
+ type: "gradient",
+ config: {
+ ...gradient,
+ type: currentGradient.type,
+ angle: currentGradient.type === "linear" ? (gradient.angle ?? 135) :
+ currentGradient.type === "conic" ? (gradient.angle ?? 0) : undefined,
+ stops: ensureStopIds(gradient.stops),
+ },
+ });
+ };
+
+ const handleGradientTypeChange = (type: GradientType) => {
+ const newConfig = { ...currentGradient, type };
+ if (type === "linear") newConfig.angle = currentGradient.angle ?? 135;
+ else if (type === "conic") {
+ newConfig.angle = currentGradient.angle ?? 180;
+ newConfig.originX = currentGradient.originX ?? 0;
+ newConfig.originY = currentGradient.originY ?? 53;
+ } else {
+ delete newConfig.angle;
+ delete newConfig.originX;
+ delete newConfig.originY;
+ }
+ onChange({ type: "gradient", config: newConfig });
+ };
+
+ const handleStopColorChange = (index: number, color: string) => {
+ const newStops = [...currentGradient.stops];
+ newStops[index] = { ...newStops[index], color };
+ onChange({ type: "gradient", config: { ...currentGradient, stops: newStops } });
+ };
+
+ const handleStopPositionChange = (index: number, position: number) => {
+ const newStops = [...currentGradient.stops];
+ newStops[index] = { ...newStops[index], position };
+ onChange({ type: "gradient", config: { ...currentGradient, stops: newStops } });
+ };
+
+ const handleAddStop = () => {
+ if (currentGradient.stops.length >= 5) return;
+ const newStop: ColorStop = { id: generateStopId(), color: "#ffffff", position: 50 };
+ const newStops = [...currentGradient.stops, newStop].sort((a, b) => a.position - b.position);
+ onChange({ type: "gradient", config: { ...currentGradient, stops: newStops } });
+ };
+
+ const handleRemoveStop = (index: number) => {
+ if (currentGradient.stops.length <= 2) return;
+ const newStops = currentGradient.stops.filter((_, i) => i !== index);
+ onChange({ type: "gradient", config: { ...currentGradient, stops: newStops } });
+ };
+
+ const handleReorder = (newStops: ColorStop[]) => {
+ onChange({ type: "gradient", config: { ...currentGradient, stops: newStops } });
+ };
+
+ return (
+ <div className="space-y-6">
+ {/* Mode toggle */}
+ <div className="flex bg-[#09090B] squircle-element p-1 text-xs font-medium">
+ <button
+ className={`flex-1 py-1.5 rounded transition ${mode === "gradient" ? "bg-white/10 text-white" : "text-white/60 hover:text-white"}`}
+ onClick={() => { setMode("gradient"); onChange({ type: "gradient", config: currentGradient }); }}
+ >
+ Gradiente
+ </button>
+ <button
+ className={`flex-1 py-1.5 rounded transition ${mode === "solid" ? "bg-white/10 text-white" : "text-white/60 hover:text-white"}`}
+ onClick={() => { setMode("solid"); onChange({ type: "solid", config: { color: currentSolidColor } }); }}
+ >
+ Sólido
+ </button>
+ </div>
+
+ {/* ── Solid mode ── */}
+ {mode === "solid" && (
+ <div className="space-y-4">
+ <div>
+ <div className="text-[10px] uppercase tracking-widest text-white/60 font-bold mb-3">Predefinidos</div>
+ <div className="grid grid-cols-6 gap-2">
+ {PRESET_SOLID_COLORS.slice(0, 23).map((color) => (
+ <button
+ key={color}
+ className={`aspect-square squircle-element cursor-pointer hover:ring-2 transition border shadow-sm ${value?.type === "solid" && value.config.color === color ? "ring-2 ring-white/90 shadow-lg shadow-white" : "border-white/10 ring-white/60"}`}
+ style={{ backgroundColor: color }}
+ onClick={() => handleSolidColorSelect(color)}
+ />
+ ))}
+ <Popover>
+ <PopoverTrigger asChild>
+ <button className="aspect-square squircle-element border border-dashed border-white/30 bg-white/5 flex items-center justify-center hover:bg-white/10 transition group" title="Ver más">
+ <Icon icon="lucide:plus" className="text-white/60 group-hover:text-white" width="14" />
+ </button>
+ </PopoverTrigger>
+ <PopoverContent side="right" align="start" sideOffset={12} className="w-72 p-0 border-0 shadow-2xl">
+ <div className="flex flex-col bg-[#111113] border border-white/10 rounded-xl overflow-hidden shadow-2xl">
+ <div className="flex items-center gap-2 px-4 py-3 border-b border-white/10 bg-white/2">
+ <Icon icon="mdi:palette" width="14" className="text-white/50" />
+ <span className="text-[10px] font-medium uppercase tracking-[0.15em] text-white/50">Más colores</span>
+ <span className="ml-auto text-[10px] text-white/60">{PRESET_SOLID_COLORS.length} total</span>
+ </div>
+ <div className="p-3 grid grid-cols-5 gap-2 max-h-80 overflow-y-auto custom-scrollbar">
+ {PRESET_SOLID_COLORS.slice(23).map((color, idx) => (
+ <button
+ key={`extra-${idx}-${color}`}
+ className={`aspect-square rounded-lg cursor-pointer hover:ring-2 transition border shadow-sm ${value?.type === "solid" && value.config.color === color ? "ring-2 ring-white/90 shadow-lg shadow-white" : "border-white/10 ring-white/60"}`}
+ style={{ backgroundColor: color }}
+ onClick={() => handleSolidColorSelect(color)}
+ />
+ ))}
+ </div>
+ </div>
+ </PopoverContent>
+ </Popover>
+ </div>
+ </div>
+ <div className="bg-[#09090B] rounded-xl border border-white/10 p-3 space-y-3">
+ <div className="text-[10px] uppercase tracking-widest text-white/60 font-bold">Personalizar</div>
+ <div className="flex items-center gap-3">
+ <div className="w-12 h-12 squircle-element border border-white/20 shadow-lg shrink-0 relative overflow-hidden group">
+ <div className="w-full h-full" style={{ backgroundColor: currentSolidColor }} />
+ <input type="color" value={currentSolidColor} onChange={(e) => handleSolidColorChange(e.target.value)} className="absolute inset-0 cursor-pointer opacity-0" />
+ <Icon icon="mdi:eyedropper" className="absolute inset-0 m-auto text-white/0 group-hover:text-white/60 transition-opacity pointer-events-none" width="20" />
+ </div>
+ <div className="flex-1 bg-white/5 border border-white/10 squircle-element px-3 py-2.5 flex items-center justify-between transition-colors hover:border-white/20">
+ <span className="text-sm font-mono text-white/80 uppercase tracking-tight">{currentSolidColor}</span>
+ <button onClick={handleCopy} className={`transition-all duration-200 ${copied ? "text-green-400" : "text-white/20 hover:text-white/50"}`}>
+ {copied ? <Icon icon="line-md:check-all" width="14" /> : <Icon icon="mdi:content-copy" width="14" />}
+ </button>
+ </div>
+ </div>
+ </div>
+ </div>
+ )}
+
+ {/* ── Gradient mode ── */}
+ {mode === "gradient" && (
+ <div className="space-y-4">
+ <div>
+ <div className="text-[10px] uppercase tracking-widest text-white/60 font-bold mb-3">Predefinidos</div>
+ <div className="grid grid-cols-6 gap-2">
+ {currentPresetGradients.slice(0, 23).map((gradient, i) => {
+ const gradientCss = gradientToCss(gradient);
+ const isSelected = value?.type === "gradient" && gradientCss === gradientToCss(value.config);
+ return (
+ <button
+ key={i}
+ onClick={() => handleGradientSelect(gradient)}
+ style={{ background: gradientCss }}
+ className={`aspect-square squircle-element cursor-pointer transition-all duration-200 border shadow-sm hover:scale-105 active:scale-95 ${isSelected ? "ring-2 ring-white/90 shadow-lg shadow-white" : "border-white/10 ring-white/60"}`}
+ />
+ );
+ })}
+ <Popover>
+ <PopoverTrigger asChild>
+ <button className="aspect-square squircle-element border border-dashed border-white/30 bg-white/5 flex items-center justify-center hover:bg-white/10 transition group" title="Ver más">
+ <Icon icon="lucide:plus" className="text-white/60 group-hover:text-white" width="14" />
+ </button>
+ </PopoverTrigger>
+ <PopoverContent side="right" align="start" sideOffset={12} className="w-72 p-0 border-0 shadow-2xl">
+ <div className="flex flex-col bg-[#111113] border border-white/10 rounded-xl overflow-hidden shadow-2xl">
+ <div className="flex items-center gap-2 px-4 py-3 border-b border-white/10 bg-white/2">
+ <Icon icon="mdi:gradient-horizontal" width="14" className="text-white/50" />
+ <span className="text-[10px] font-medium uppercase tracking-[0.15em] text-white/50">Más gradientes {currentGradient.type}</span>
+ <span className="ml-auto text-[10px] text-white/60">{currentPresetGradients.length} total</span>
+ </div>
+ <div className="p-3 grid grid-cols-4 gap-2 max-h-80 overflow-y-auto custom-scrollbar">
+ {currentPresetGradients.slice(23).map((gradient, i) => {
+ const gradientCss = gradientToCss(gradient);
+ const isSelected = value?.type === "gradient" && gradientCss === gradientToCss(value.config);
+ return (
+ <button
+ key={`extra-gradient-${i}`}
+ onClick={() => handleGradientSelect(gradient)}
+ style={{ background: gradientCss }}
+ className={`aspect-square rounded-lg cursor-pointer transition-all duration-200 border shadow-sm hover:scale-105 active:scale-95 ${isSelected ? "ring-2 ring-white/90 shadow-lg shadow-white" : "border-white/10 ring-white/60"}`}
+ />
+ );
+ })}
+ </div>
+ </div>
+ </PopoverContent>
+ </Popover>
+ </div>
+ </div>
+
+ <div className="space-y-4">
+ <div className="text-[10px] uppercase tracking-widest text-white/60 font-bold">Personalizar</div>
+
+ {/* Gradient type */}
+ <div className="space-y-2">
+ <div className="text-[10px] text-white/60 font-medium">Tipo</div>
+ <div className="flex gap-2">
+ {(["linear", "radial", "conic"] as GradientType[]).map((type) => (
+ <button
+ key={type}
+ className={`flex-1 py-2 flex items-center justify-center gap-1.5 squircle-element text-xs font-medium transition ${currentGradient.type === type ? "bg-white/10 text-white border border-white/20" : "bg-white/10 text-white/60 hover:bg-white/10"}`}
+ onClick={() => handleGradientTypeChange(type)}
+ >
+ <Icon icon={type === "linear" ? "mdi:gradient-horizontal" : type === "radial" ? "mdi:blur-radial" : "solar:pie-chart-bold"} width="16" />
+ <span className="capitalize">{type}</span>
+ </button>
+ ))}
+ </div>
+ </div>
+
+ {/* Angle */}
+ {(currentGradient.type === "linear" || currentGradient.type === "conic") && (
+ <div className="space-y-2">
+ <div className="flex justify-between items-center text-[10px] text-white/60 font-medium">
+ <div className="flex items-center gap-1.5"><Icon icon="mdi:rotate-right" width="14" /><span>Ángulo</span></div>
+ <span className="font-mono text-white/50 px-2 py-0.5 rounded">{currentGradient.angle ?? (currentGradient.type === "conic" ? 0 : 135)}°</span>
+ </div>
+ <input type="range" min="0" max="360" value={currentGradient.angle ?? (currentGradient.type === "conic" ? 0 : 135)}
+ onChange={(e) => onChange({ type: "gradient", config: { ...currentGradient, angle: parseInt(e.target.value) } })}
+ className="w-full h-1.5 bg-white/10 rounded-full appearance-none cursor-pointer [&::-webkit-slider-thumb]:appearance-none [&::-webkit-slider-thumb]:w-3 [&::-webkit-slider-thumb]:h-3 [&::-webkit-slider-thumb]:rounded-full [&::-webkit-slider-thumb]:bg-[linear-gradient(90deg,#00A3EE,#003780)]"
+ />
+ </div>
+ )}
+
+ {/* Conic origin */}
+ {currentGradient.type === "conic" && (
+ <div className="space-y-3">
+ {(["X", "Y"] as const).map((axis) => {
+ const key = axis === "X" ? "originX" : "originY";
+ const val = currentGradient[key] ?? 50;
+ return (
+ <div key={axis} className="space-y-2">
+ <div className="flex justify-between items-center text-[10px] text-white/60 font-medium">
+ <div className="flex items-center gap-1.5">
+ <Icon icon={axis === "X" ? "mdi:arrow-left-right" : "mdi:arrow-up-down"} width="14" />
+ <span>Origen {axis}</span>
+ </div>
+ <span className="font-mono text-white/50 px-2 py-0.5 rounded">{val}%</span>
+ </div>
+ <input type="range" min="0" max="100" value={val}
+ onChange={(e) => onChange({ type: "gradient", config: { ...currentGradient, [key]: parseInt(e.target.value) } })}
+ className="w-full h-1.5 bg-white/10 rounded-full appearance-none cursor-pointer [&::-webkit-slider-thumb]:appearance-none [&::-webkit-slider-thumb]:w-3 [&::-webkit-slider-thumb]:h-3 [&::-webkit-slider-thumb]:rounded-full [&::-webkit-slider-thumb]:bg-[linear-gradient(90deg,#00A3EE,#003780)]"
+ />
+ </div>
+ );
+ })}
+ </div>
+ )}
+
+ {/* Color stops */}
+ <div className="space-y-2">
+ <div className="flex justify-between items-center">
+ <div className="text-[10px] text-white/60 font-medium">Colores ({currentGradient.stops.length})</div>
+ {currentGradient.stops.length < 5 && (
+ <button onClick={handleAddStop} className="text-[10px] text-white/50 hover:text-white flex items-center gap-1 transition-colors">
+ <Icon icon="mdi:plus" width="12" />Agregar
+ </button>
+ )}
+ </div>
+
+ <SortableStopList
+ stops={currentGradient.stops}
+ onReorder={handleReorder}
+ onColorChange={handleStopColorChange}
+ onPositionChange={handleStopPositionChange}
+ onRemove={handleRemoveStop}
+ />
+ </div>
+
+ {/* Preview */}
+ <div className="pt-2">
+ <div className="w-full h-20 squircle-element border border-white/10" style={{ background: gradientToCss(currentGradient) }} />
+ </div>
+ </div>
+ </div>
+ )}
+ </div>
+ );
+}
\ No newline at end of file
diff --git a/app/components/ui/EditorPreview.tsx b/app/components/ui/EditorPreview.tsx
new file mode 100644
index 0000000..8d452e3
--- /dev/null
+++ b/app/components/ui/EditorPreview.tsx
@@ -0,0 +1,174 @@
+import {Icon} from "@iconify/react";
+
+export default function EditorPreview() {
+ return (
+ <div className="relative max-w-6xl mx-auto">
+ <div className="absolute -inset-1 bg-gradient-to-b from-neutral-700/20 to-transparent rounded-2xl blur-sm -z-10"></div>
+ <div className="bg-[#0A0A0A] border border-white/10 rounded-xl overflow-hidden shadow-2xl shadow-black/50 flex flex-col md:flex-row h-[600px] text-left">
+
+ <div className="w-full md:w-64 bg-[#0F0F0F] border-r border-white/10 flex flex-col shrink-0">
+ <div className="p-4 border-b border-white/10 flex items-center justify-between">
+ <span className="text-xs font-medium text-neutral-400 uppercase tracking-wider">Properties</span>
+ <Icon icon="solar:settings-linear" className="text-neutral-500" />
+ </div>
+
+ <div className="p-5 space-y-6 overflow-y-auto editor-scroll">
+ <div className="space-y-3">
+ <label className="text-sm text-neutral-300 font-medium flex items-center gap-2">
+ <Icon icon="solar:gallery-wide-linear" width="16" />
+ Background
+ </label>
+ <div className="grid grid-cols-4 gap-2">
+ <div className="aspect-square rounded border border-white/20 bg-gradient-to-br from-purple-900 to-indigo-900 cursor-pointer ring-2 ring-white/20"></div>
+ <div className="aspect-square rounded border border-white/10 bg-gradient-to-br from-neutral-800 to-neutral-900 cursor-pointer hover:border-white/20"></div>
+ <div className="aspect-square rounded border border-white/10 bg-[#1a1a1a] cursor-pointer hover:border-white/20"></div>
+ <div className="aspect-square rounded border border-white/10 relative overflow-hidden cursor-pointer hover:border-white/20 group">
+ <div className="absolute inset-0 flex items-center justify-center bg-neutral-800 text-white/50 group-hover:text-white transition-colors">
+ <Icon icon="solar:add-circle-linear" width="20" />
+ </div>
+ </div>
+ </div>
+ </div>
+
+ <div className="space-y-3">
+ <div className="flex justify-between">
+ <label className="text-sm text-neutral-300 font-medium">Padding</label>
+ <span className="text-xs text-neutral-500">64px</span>
+ </div>
+ <input type="range" min="0" max="100" defaultValue="64" className="w-full" />
+ </div>
+
+ <div className="space-y-3">
+ <div className="flex justify-between">
+ <label className="text-sm text-neutral-300 font-medium">Roundness</label>
+ <span className="text-xs text-neutral-500">12px</span>
+ </div>
+ <input type="range" min="0" max="24" defaultValue="12" className="w-full" />
+ </div>
+
+ <div className="h-px bg-white/5 my-2"></div>
+
+ <div className="space-y-4">
+ <label className="flex items-center justify-between cursor-pointer group">
+ <span className="text-sm text-neutral-300 group-hover:text-white transition-colors flex items-center gap-2">
+ <Icon icon="solar:cursor-square-linear" className="text-neutral-500" />
+ Show Cursor
+ </span>
+ <div className="relative inline-flex items-center cursor-pointer">
+ <input type="checkbox" defaultValue="" className="sr-only peer" />
+ <div className="w-9 h-5 bg-neutral-800 peer-focus:outline-none rounded-full peer peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-4 after:w-4 after:transition-all peer-checked:bg-neutral-200"></div>
+ </div>
+ </label>
+ <label className="flex items-center justify-between cursor-pointer group">
+ <span className="text-sm text-neutral-300 group-hover:text-white transition-colors flex items-center gap-2">
+ <Icon icon="solar:box-minimalistic-linear" className="text-neutral-500" />
+ Shadow
+ </span>
+ <div className="relative inline-flex items-center cursor-pointer">
+ <input type="checkbox" defaultValue="" className="sr-only peer" />
+ <div className="w-9 h-5 bg-neutral-800 peer-focus:outline-none rounded-full peer peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-4 after:w-4 after:transition-all peer-checked:bg-neutral-200"></div>
+ </div>
+ </label>
+ </div>
+ </div>
+
+ <div className="mt-auto p-4 border-t border-white/10">
+ <button className="w-full py-2 bg-neutral-100 hover:bg-white text-black text-sm font-medium rounded transition-colors flex items-center justify-center gap-2">
+ Export Video
+ <Icon icon="solar:export-linear" width="16" />
+ </button>
+ </div>
+ </div>
+
+ <div className="flex-1 bg-[#141414] relative flex flex-col">
+ <div className="h-12 border-b border-white/10 flex items-center justify-center gap-1 px-4">
+ <button className="p-2 hover:bg-white/5 rounded text-neutral-400 hover:text-white transition-colors">
+ <Icon icon="solar:scissors-linear" width="18" />
+ </button>
+ <button className="p-2 hover:bg-white/5 rounded text-neutral-400 hover:text-white transition-colors">
+ <Icon icon="solar:magnifier-zoom-in-linear" width="18" />
+ </button>
+ <div className="w-px h-4 bg-white/10 mx-2"></div>
+ <span className="text-xs font-mono text-neutral-500">00:04 / 00:15</span>
+ </div>
+
+ <div className="flex-1 flex items-center justify-center p-8 overflow-hidden relative">
+ <div className="absolute inset-0 bg-gradient-to-br from-purple-900/40 to-indigo-900/40 backdrop-blur-3xl"></div>
+ <div className="w-full h-full absolute inset-0 opacity-20" style={{
+ backgroundImage: "radial-gradient(#ffffff 1px, transparent 1px)",
+ backgroundSize: "20px 20px",
+ }}
+ ></div>
+
+ <div className="relative w-[80%] aspect-video bg-[#1a1a1a] rounded-lg shadow-2xl border border-white/10 overflow-hidden transform transition-transform duration-700 hover:scale-[1.02]">
+ <div className="h-8 bg-[#252525] flex items-center px-3 border-b border-white/10">
+ <div className="flex gap-1.5">
+ <div className="w-2.5 h-2.5 rounded-full bg-[#FF5F57]"></div>
+ <div className="w-2.5 h-2.5 rounded-full bg-[#FEBC2E]"></div>
+ <div className="w-2.5 h-2.5 rounded-full bg-[#28C840]"></div>
+ </div>
+ <div className="flex-1 text-center">
+ <div className="inline-block px-3 py-0.5 rounded bg-black/20 text-[10px] text-neutral-500 font-mono">freeshot.app</div>
+ </div>
+ </div>
+ <div className="p-6 relative h-full">
+ <div className="flex gap-4">
+ <div className="w-16 h-16 rounded-full bg-neutral-800 animate-pulse"></div>
+ <div className="flex-1 space-y-3 py-2">
+ <div className="h-2 bg-neutral-800 rounded w-1/4"></div>
+ <div className="h-2 bg-neutral-800 rounded w-3/4"></div>
+ <div className="h-2 bg-neutral-800 rounded w-1/2"></div>
+ </div>
+ </div>
+ <div className="absolute top-1/2 left-1/3 w-32 h-32 border-2 border-indigo-500 rounded-lg shadow-[0_0_30px_rgba(99,102,241,0.3)] pointer-events-none flex items-start justify-start">
+ <div className="bg-indigo-500 text-white text-[9px] px-1.5 py-0.5 rounded-tl-sm font-bold">ZOOM 2x</div>
+ </div>
+ <div className="absolute top-[60%] left-[40%] text-white drop-shadow-md">
+ <Icon icon="solar:cursor-bold" width="24" />
+ </div>
+ </div>
+ </div>
+ </div>
+
+ <div className="h-32 bg-[#0F0F0F] border-t border-white/10 flex flex-col">
+ <div className="h-6 border-b border-white/10 flex items-end px-2">
+ <div className="flex w-full justify-between text-[10px] text-neutral-600 font-mono pb-1">
+ <span>00:00</span>
+ <span>00:05</span>
+ <span>00:10</span>
+ <span>00:15</span>
+ </div>
+ </div>
+ <div className="flex-1 p-3 relative overflow-hidden">
+ <div className="space-y-2">
+ <div className="h-8 bg-neutral-800/50 rounded flex items-center overflow-hidden border border-white/10 relative">
+ <div className="absolute left-0 w-[40%] h-full bg-indigo-500/20 border-r border-indigo-500/50"></div>
+ <div className="flex gap-1 w-full px-1 opacity-20">
+ <div className="h-full w-8 bg-neutral-600 rounded-sm"></div>
+ <div className="h-full w-8 bg-neutral-600 rounded-sm"></div>
+ <div className="h-full w-8 bg-neutral-600 rounded-sm"></div>
+ <div className="h-full w-8 bg-neutral-600 rounded-sm"></div>
+ </div>
+ </div>
+ <div className="h-6 bg-neutral-800/30 rounded flex items-center px-2 overflow-hidden border border-white/10">
+ <div className="flex items-center gap-0.5 w-full">
+ <div className="w-1 h-2 bg-neutral-600 rounded-full"></div>
+ <div className="w-1 h-3 bg-neutral-600 rounded-full"></div>
+ <div className="w-1 h-4 bg-neutral-600 rounded-full"></div>
+ <div className="w-1 h-2 bg-neutral-600 rounded-full"></div>
+ <div className="w-1 h-3 bg-neutral-600 rounded-full"></div>
+ </div>
+ </div>
+ </div>
+ <div className="absolute top-0 left-[40%] h-full w-px bg-red-500 z-10">
+ <div className="absolute -top-1 -left-[5px] text-red-500">
+ <Icon icon="solar:polygon-down-bold" width="12" />
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ );
+}
\ No newline at end of file
diff --git a/app/components/ui/ExportDropdown.tsx b/app/components/ui/ExportDropdown.tsx
new file mode 100644
index 0000000..e7eabc8
--- /dev/null
+++ b/app/components/ui/ExportDropdown.tsx
@@ -0,0 +1,125 @@
+import { Button } from "@/components/ui/button";
+import { Icon } from "@iconify/react";
+import {
+ Popover,
+ PopoverContent,
+ PopoverTrigger,
+} from "@/components/ui/popover";
+import type { ExportQuality } from "@/hooks/useVideoExport";
+import { useState } from "react";
+
+interface ExportProgress {
+ status: "idle" | "preparing" | "encoding" | "finalizing" | "complete" | "error";
+ progress: number;
+ message: string;
+}
+
+interface ExportDropdownProps {
+ onExport: (quality: ExportQuality) => void;
+ exportProgress: ExportProgress;
+}
+
+export function ExportDropdown({ onExport, exportProgress }: ExportDropdownProps) {
+ const [isOpen, setIsOpen] = useState(false);
+ const isExporting = exportProgress.status !== "idle" &&
+ exportProgress.status !== "complete" &&
+ exportProgress.status !== "error";
+
+ const handleExport = (quality: ExportQuality) => {
+ setIsOpen(false);
+ onExport(quality);
+ };
+
+ return (
+ <Popover open={isOpen} onOpenChange={setIsOpen}>
+ <PopoverTrigger asChild>
+ <Button
+ variant="primary"
+ className="px-3 py-2 text-sm gap-2 min-w-[110px]"
+ size="sm"
+ disabled={isExporting}
+ >
+ <Icon icon="icon-park-outline:export" width="18" />
+ Exportar
+ <Icon icon="mdi:chevron-down" width="16" className="opacity-50" />
+ </Button>
+ </PopoverTrigger>
+
+ <PopoverContent
+ align="end"
+ className="w-64 bg-[#1C1C1F] border-white/10 text-white shadow-2xl p-0 overflow-hidden"
+ >
+ <div className="flex flex-col bg-black border border-white/10 rounded-xl overflow-hidden shadow-2xl">
+ <div className="px-4 py-3 border-b border-white/10 bg-white/[0.02]">
+ <span className="text-[10px] font-medium uppercase tracking-[0.15em] text-white/50">
+ Calidad de exportación
+ </span>
+ </div>
+
+ <div className="flex flex-col max-h-[380px] overflow-y-auto custom-scrollbar">
+ <button
+ className="group flex flex-col items-start gap-1.5 p-4 hover:bg-white/[0.03] transition-all text-left border-b border-white/10"
+ onClick={() => handleExport("4k")}
+ >
+ <div className="flex items-center justify-between w-full">
+ <span className="text-sm font-medium text-white group-hover:text-blue-400 transition-colors">4K Ultra HD</span>
+ <span className="border border-blue-500/30 text-blue-400 text-[9px] px-2 py-0.5 rounded-full font-bold tracking-tight">
+ RECOMENDADO
+ </span>
+ </div>
+ <span className="text-[11px] text-white/50 font-mono">3840 × 2160 • Máxima fidelidad</span>
+ </button>
+
+ <button
+ className="group flex flex-col items-start gap-1.5 p-4 hover:bg-white/[0.03] transition-all text-left border-b border-white/10"
+ onClick={() => handleExport("2k")}
+ >
+ <div className="flex items-center justify-between w-full">
+ <span className="text-sm font-medium text-white group-hover:text-white/80 transition-colors">2K Quad HD</span>
+ <span className="border border-white/10 text-white/50 text-[9px] px-2 py-0.5 rounded-full font-bold">
+ PREMIUM
+ </span>
+ </div>
+ <span className="text-[11px] text-white/50 font-mono">2560 × 1440 • Balance ideal</span>
+ </button>
+
+ <button
+ className="group flex flex-col items-start gap-1.5 p-4 hover:bg-white/[0.03] transition-all text-left border-b border-white/10"
+ onClick={() => handleExport("1080p")}
+ >
+ <span className="text-sm font-medium text-white group-hover:text-white/80 transition-colors">1080p Full HD</span>
+ <span className="text-[11px] text-white/50 font-mono">1920 × 1080 • Estándar web</span>
+ </button>
+
+ <button
+ className="group flex flex-col items-start gap-1.5 p-4 hover:bg-white/[0.03] transition-all text-left border-b border-white/10"
+ onClick={() => handleExport("720p")}
+ >
+ <span className="text-sm font-medium text-white group-hover:text-white/80 transition-colors">720p HD</span>
+ <span className="text-[11px] text-white/50 font-mono">1280 × 720 • Archivo ligero</span>
+ </button>
+
+ <button
+ className="group flex flex-col items-start gap-1.5 p-4 hover:bg-white/[0.03] transition-all text-left border-b border-white/10"
+ onClick={() => handleExport("480p")}
+ >
+ <span className="text-sm font-medium text-white group-hover:text-white/80 transition-colors">480p SD</span>
+ <span className="text-[11px] text-white/50 font-mono">854 × 480 • Calidad borrador</span>
+ </button>
+
+ <button
+ className="group flex flex-col items-start gap-1.5 p-4 hover:bg-orange-500/[0.04] transition-all text-left"
+ onClick={() => handleExport("gif")}
+ >
+ <div className="flex items-center gap-2">
+ <span className="text-sm font-medium text-orange-400 group-hover:text-orange-300 transition-colors">GIF Animado</span>
+ <div className="h-1 w-1 rounded-full bg-orange-500/50"></div>
+ </div>
+ <span className="text-[11px] text-orange-400/70 font-mono">Loop sin audio • Redes sociales</span>
+ </button>
+ </div>
+ </div>
+ </PopoverContent>
+ </Popover>
+ );
+}
\ No newline at end of file
diff --git a/app/components/ui/ExportOverlay.tsx b/app/components/ui/ExportOverlay.tsx
new file mode 100644
index 0000000..799823a
--- /dev/null
+++ b/app/components/ui/ExportOverlay.tsx
@@ -0,0 +1,91 @@
+"use client";
+
+import { Button } from "@/components/ui/button";
+import { Icon } from "@iconify/react";
+
+interface ExportProgress {
+ status: "idle" | "preparing" | "encoding" | "finalizing" | "complete" | "error";
+ progress: number;
+ message: string;
+}
+
+interface ExportOverlayProps {
+ exportProgress: ExportProgress;
+ onCancel: () => void;
+}
+
+export function ExportOverlay({ exportProgress, onCancel }: ExportOverlayProps) {
+ const isExporting = exportProgress.status !== "idle" &&
+ exportProgress.status !== "complete" &&
+ exportProgress.status !== "error";
+
+ if (!isExporting) return null;
+
+ return (
+ <div className="fixed inset-0 z-50 flex items-center justify-center bg-black/20 backdrop-blur-md transition-all duration-500">
+ <div className="p-10 bg-black border border-white/10 rounded-2xl shadow-[0_0_80px_-15px_rgba(0,0,0,1)] w-full max-w-lg mx-4">
+ <div className="flex justify-center mb-8">
+ <div className="flex items-center gap-2.5 px-3 py-1 bg-white/3 border border-white/10 rounded-full">
+ <div className="relative flex h-2 w-2">
+ <span className="animate-ping absolute inline-flex h-full w-full rounded-full bg-blue-400 opacity-75"></span>
+ <span className="relative inline-flex rounded-full h-2 w-2 bg-blue-500"></span>
+ </div>
+ <span className="text-[10px] font-bold uppercase tracking-[0.3em] text-white/50">
+ Procesando Video
+ </span>
+ </div>
+ </div>
+
+ <div className="text-center mb-8">
+ <h2 className="text-7xl font-bold tracking-tighter text-white tabular-nums">
+ {exportProgress.progress}<span className="text-2xl text-white/60 ml-1">%</span>
+ </h2>
+ </div>
+
+ <div className="relative w-full h-1.5 bg-white/15 rounded-full overflow-hidden mb-10">
+ <div
+ className="absolute left-0 top-0 h-full bg-white transition-all duration-700 ease-in-out shadow-[0_0_15px_rgba(255,255,255,0.5)]"
+ style={{ width: `${exportProgress.progress}%` }}
+ />
+ </div>
+
+ <div className="space-y-4 mb-10">
+ <div className="flex flex-col gap-1.5 border-l-2 border-white/10 pl-4">
+ <p className="text-lg text-white font-medium tracking-tight leading-none">
+ {exportProgress.status === "preparing" && "Preparando entorno de renderizado"}
+ {exportProgress.status === "encoding" && "Codificando secuencia de video"}
+ {exportProgress.status === "finalizing" && "Empaquetando archivos finales"}
+ </p>
+ <p className="text-sm text-white/50 font-mono italic">
+ {exportProgress.message}
+ </p>
+ </div>
+
+ <div className="flex items-start gap-3 p-4 bg-white/5 border border-white/10 rounded-xl">
+ <Icon icon="lucide:alert-circle" className="text-blue-500 shrink-0 mt-0.5" width="18" />
+ <p className="text-md text-white/60 leading-relaxed">
+ Para optimizar los recursos de la GPU y CPU,{" "}
+ <span className="relative font-bold text-white px-1">
+ evita minimizar esta ventana
+ <svg className="absolute -bottom-1 left-0 w-full h-2 text-blue-500/90" viewBox="0 0 100 10" preserveAspectRatio="none">
+ <path d="M0 5 Q 25 0, 50 5 T 100 5" stroke="currentColor" strokeWidth="2" fill="transparent" strokeLinecap="round" />
+ </svg>
+ </span>
+ . El proceso es intensivo y requiere prioridad del sistema.
+ </p>
+ </div>
+
+ </div>
+
+ <Button
+ variant="outline"
+ onClick={onCancel}
+ className="w-full h-12 bg-transparent hover:bg-red-500/5 border border-white/10 hover:border-red-500/20 text-white/60 hover:text-red-400 text-sm font-medium transition-all duration-300 rounded-xl"
+ >
+ <Icon icon="iconoir:cancel" width="16" className="mr-2" />
+ Detener exportación
+ </Button>
+ </div>
+ </div>
+ );
+}
diff --git a/app/components/ui/Hero.tsx b/app/components/ui/Hero.tsx
new file mode 100644
index 0000000..52e4ff9
--- /dev/null
+++ b/app/components/ui/Hero.tsx
@@ -0,0 +1,43 @@
+import { Button } from "@/components/ui/button";
+import { Icon } from "@iconify/react";
+import Link from "next/link";
+
+export default function Hero() {
+ return (
+ <>
+ <h1 className="text-5xl md:text-7xl font-semibold text-white tracking-tight mb-6 leading-[1.1] drop-shadow-[1.2px_1.2px_100.2px_rgba(183,203,248,1)]">
+ Grabación de{" "}
+ <span className="relative inline-flex items-center">
+ <img
+ src="/svg/pantalla.svg"
+ alt="Pantalla"
+ className="inline-block h-[1.6em] w-auto align-middle translate-y-[0.1em] sm:translate-y-[0.3em]"
+ />
+
+ <img
+ src="/svg/cursor-animate.svg"
+ className="absolute -top-30 -right-30 h-[4em] w-auto"
+ alt="Decoración"
+ />
+ </span>
+ <br />
+ <span className="text-transparent bg-clip-text bg-linear-to-r from-neutral-200 via-neutral-400 to-[#003780]">
+ edición rápida
+ </span>
+ </h1>
+
+ <p className="text-lg md:text-xl text-neutral-400 max-w-2xl mx-auto mb-10 font-light leading-relaxed">
+ Graba tu navegador, añade zooms suaves y personaliza fondos en segundos. Crea demos profesionales sin el editor de video complejo.
+ </p>
+
+ <div className="flex flex-col sm:flex-row items-center justify-center gap-4 mb-20">
+ <Button asChild variant="primary" size="xl" className="text-xl">
+ <Link href="/editor"><div className="size-9 rounded-full bg-white flex items-center justify-center">
+ <Icon icon="fluent:screenshot-record-16-regular" className="size-7 text-red-500" />
+ </div>
+ Empezar a grabar</Link>
+ </Button>
+ </div>
+ </>
+ );
+}
\ No newline at end of file
diff --git a/app/components/ui/ImageRecentBackgroundGrid.tsx b/app/components/ui/ImageRecentBackgroundGrid.tsx
new file mode 100644
index 0000000..143683b
--- /dev/null
+++ b/app/components/ui/ImageRecentBackgroundGrid.tsx
@@ -0,0 +1,101 @@
+import { Icon } from "@iconify/react";
+import { useRef } from "react";
+import Image from "next/image";
+
+interface ImageRecentBackgroundGridProps {
+ images: string[];
+ onSelect: (url: string) => void;
+ onRemove: (url: string) => void;
+ onUpload: (file: File) => void;
+ selectedUrl?: string;
+}
+
+export function ImageRecentBackgroundGrid({ images, onSelect, onRemove, onUpload, selectedUrl }: ImageRecentBackgroundGridProps) {
+ const fileInputRef = useRef<HTMLInputElement>(null);
+
+ const handleFileSelect = (e: React.ChangeEvent<HTMLInputElement>) => {
+ const file = e.target.files?.[0];
+ if (file && file.type.startsWith('image/')) {
+ onUpload(file);
+ }
+ };
+
+ const handleDragOver = (e: React.DragEvent) => {
+ e.preventDefault();
+ e.stopPropagation();
+ };
+
+ const handleDrop = (e: React.DragEvent) => {
+ e.preventDefault();
+ e.stopPropagation();
+ const file = e.dataTransfer.files?.[0];
+ if (file && file.type.startsWith('image/')) {
+ onUpload(file);
+ }
+ };
+
+ return (
+ <div className="space-y-6">
+ <input
+ ref={fileInputRef}
+ type="file"
+ accept="image/*"
+ className="hidden"
+ onChange={handleFileSelect}
+ />
+ <div
+ className="border-2 border-dashed border-white/10 rounded-lg p-6 text-center hover:border-white/20 transition cursor-pointer group bg-white/2"
+ onClick={() => fileInputRef.current?.click()}
+ onDragOver={handleDragOver}
+ onDrop={handleDrop}
+ >
+ <Icon icon="mdi:cloud-upload" className="text-3xl mx-auto mb-2 text-white/50 group-hover:text-white/70 transition-colors" />
+ <p className="text-xs text-white/60">
+ Arrastra una imagen aquí o <span className="text-white">sube un archivo</span>
+ </p>
+ </div>
+
+ {images.length > 0 && (
+ <div>
+ <div className="text-[10px] uppercase tracking-widest text-white/60 font-bold mb-3 flex items-center gap-2">
+ <Icon icon="mdi:history" width="14" />
+ <span>Recientes</span>
+ </div>
+
+ <div className="grid grid-cols-4 gap-2">
+ {images.map((url, i) => (
+ <div
+ key={i}
+ onClick={() => onSelect(url)}
+ className={`aspect-square squircle-element cursor-pointer hover:ring-2 ring-white/60 transition relative overflow-hidden group border border-white/10 ${selectedUrl === url ? "ring-2 ring-white-500" : ""
+ }`}
+ >
+ <div className={`absolute inset-0 bg-white-500/20 transition-opacity z-10 flex items-center justify-center ${selectedUrl === url ? "opacity-100" : "opacity-0 group-hover:opacity-100"
+ }`}>
+ <Icon icon="mdi:check" className="text-white" width="14" />
+ </div>
+
+ <button
+ className="absolute top-1 right-1 z-20 p-1 rounded-md bg-black/40 text-white/70 hover:bg-red-500 hover:text-white opacity-0 group-hover:opacity-100 transition-all backdrop-blur-sm"
+ onClick={(e) => {
+ e.stopPropagation();
+ onRemove(url);
+ }}
+ >
+ <Icon icon="lucide:trash-2" width="12" />
+ </button>
+
+ <Image
+ src={url}
+ alt={`Reciente ${i}`}
+ fill
+ className="object-cover grayscale-[0.5] group-hover:grayscale-0 transition-all"
+ />
+ </div>
+ ))}
+ </div>
+ </div>
+ )}
+ </div>
+ );
+}
diff --git a/app/components/ui/LoadingSpinner.tsx b/app/components/ui/LoadingSpinner.tsx
new file mode 100644
index 0000000..36ce496
--- /dev/null
+++ b/app/components/ui/LoadingSpinner.tsx
@@ -0,0 +1,26 @@
+import { Icon } from "@iconify/react";
+
+interface LoadingSpinnerProps {
+ size?: "sm" | "md" | "lg";
+ message?: string;
+}
+
+export function LoadingSpinner({ size = "md", message }: LoadingSpinnerProps) {
+ const sizeClasses = {
+ sm: "w-4 h-4",
+ md: "w-6 h-6",
+ lg: "w-8 h-8",
+ };
+
+ return (
+ <div className="flex flex-col items-center justify-center gap-3 py-8">
+ <Icon
+ icon="svg-spinners:ring-resize"
+ className={`${sizeClasses[size]} text-blue-500`}
+ />
+ {message && (
+ <p className="text-xs text-white/40 animate-pulse">{message}</p>
+ )}
+ </div>
+ );
+}
diff --git a/app/components/ui/PlaceholderEditor.tsx b/app/components/ui/PlaceholderEditor.tsx
new file mode 100644
index 0000000..73d6c7f
--- /dev/null
+++ b/app/components/ui/PlaceholderEditor.tsx
@@ -0,0 +1,83 @@
+import { Icon } from "@iconify/react";
+import { useRef } from "react";
+
+interface PlaceholderEditorProps {
+ onVideoUpload?: (file: File) => void;
+ isUploading?: boolean;
+}
+
+export default function PlaceholderEditor({ onVideoUpload, isUploading = false }: PlaceholderEditorProps) {
+ const fileInputRef = useRef<HTMLInputElement>(null);
+
+ const handleFileChange = (e: React.ChangeEvent<HTMLInputElement>) => {
+ const file = e.target.files?.[0];
+ if (file && onVideoUpload) {
+ onVideoUpload(file);
+ // Reset input para permitir subir el mismo archivo nuevamente
+ e.target.value = '';
+ }
+ };
+
+ const handleUploadClick = () => {
+ fileInputRef.current?.click();
+ };
+ return (
+ <>
+ <div className="bg-[#2D2D2D] flex flex-col justify-center items-center px-6 shrink-0 w-3xl h-16 rounded-t-2xl border-b border-white/5">
+ <div className="flex items-center w-full gap-4">
+ <div className="flex gap-2.5">
+ <div className="w-4 h-4 rounded-full bg-[#FF5F56]"></div>
+ <div className="w-4 h-4 rounded-full bg-[#FFBD2E]"></div>
+ <div className="w-4 h-4 rounded-full bg-[#27C93F]"></div>
+ </div>
+
+ <div className="flex-1 max-w-xl mx-auto bg-[#1C1C1C] py-3 rounded-xl border border-white/10 flex items-center justify-center">
+ <span className="text-sm tracking-wide text-gray-400 font-medium">
+ https://freeshotshot.dev
+ </span>
+ </div>
+
+ <div className="w-20"></div>
+ </div>
+ </div>
+
+ <div className="flex-1 flex items-center justify-center bg-[#121212]/50 p-12">
+ <div className="text-center text-neutral-500 max-w-lg">
+ <Icon icon="mdi:video-off-outline" className="text-8xl mb-6 mx-auto opacity-20" />
+ <h3 className="text-2xl font-semibold mb-2 text-neutral-300">No hay video cargado</h3>
+ <p className="text-lg opacity-60 mb-8">
+ Para empezar a editar, graba tu pantalla desde la página principal o sube un video.
+ </p>
+
+ {onVideoUpload && (
+ <button
+ onClick={handleUploadClick}
+ disabled={isUploading}
+ className="inline-flex items-center gap-3 px-6 py-4 bg-blue-600 hover:bg-blue-700 text-white font-semibold rounded-xl transition-all duration-200 shadow-lg hover:shadow-xl hover:scale-105 disabled:opacity-50 disabled:cursor-not-allowed disabled:hover:scale-100"
+ >
+ {isUploading ? (
+ <>
+ <Icon icon="svg-spinners:ring-resize" width="24" height="24" />
+ <span>Subiendo video...</span>
+ </>
+ ) : (
+ <>
+ <Icon icon="mage:video-upload" width="24" height="24" />
+ <span>Subir Video</span>
+ </>
+ )}
+ </button>
+ )}
+
+ <input
+ ref={fileInputRef}
+ type="file"
+ accept="video/mp4,video/webm,video/quicktime,video/x-matroska"
+ className="hidden"
+ onChange={handleFileChange}
+ />
+ </div>
+ </div>
+ </>
+ );
+}
\ No newline at end of file
diff --git a/app/components/ui/RecordingOverlay.tsx b/app/components/ui/RecordingOverlay.tsx
new file mode 100644
index 0000000..495dc32
--- /dev/null
+++ b/app/components/ui/RecordingOverlay.tsx
@@ -0,0 +1,92 @@
+"use client";
+
+import { useRecording } from "@/hooks/RecordingContext";
+
+export default function RecordingOverlay() {
+ const { state, countdown, recordingTime, stopRecording, isCountdown, isRecording, isProcessing } = useRecording();
+
+ if (state === "idle") return null;
+
+ const formatTime = (seconds: number) => {
+ return seconds.toString().padStart(2, '0');
+ };
+
+ return (
+ <div className="fixed inset-0 z-50 pointer-events-none">
+ {isCountdown && (
+ <div className="absolute inset-0 bg-[#000B13]/95 backdrop-blur-md flex items-center justify-center z-50">
+ <div className="flex flex-col items-center scale-110">
+
+ <div className="relative w-44 h-44 flex items-center justify-center">
+
+ <div className="absolute inset-0 rounded-full bg-[#00A3FF]/30 animate-ping" />
+ <div className="absolute inset-2 rounded-full bg-[#00A3FF]/20 animate-[ping_2s_linear_infinite]" />
+
+ <div className="relative w-40 h-40 rounded-full bg-gradient-primary p-1 shadow-[0_0_50px_rgba(0,163,255,0.3)]">
+
+ <div className="w-full h-full rounded-full bg-[#0E0E12] flex items-center justify-center">
+ <span className="text-8xl font-bold text-white tabular-nums tracking-tighter">
+ {countdown}
+ </span>
+ </div>
+ </div>
+ </div>
+
+ <div className="text-center mt-12 space-y-3">
+ <h2 className="text-3xl font-bold text-white animate-pulse tracking-tight">
+ ¡Cambia de pestaña ahora!
+ </h2>
+ <p className="text-lg text-neutral-400 max-w-sm mx-auto px-4">
+ La grabación iniciará en la pantalla que seleccionaste.
+ </p>
+ </div>
+ </div>
+ </div>
+ )}
+
+ {isRecording && (
+ <div className="absolute top-20 left-1/2 -translate-x-1/2 pointer-events-auto">
+ <div className="flex items-center gap-4 bg-[#1E1E20] border border-white/10 rounded-full px-5 py-3 shadow-2xl">
+ <div className="flex items-center gap-3">
+ <div className="w-3 h-3 rounded-full bg-red-500 animate-pulse" />
+ <span className="text-sm text-white font-medium">Grabando</span>
+ <span className="text-sm text-red-400 font-mono font-bold">
+ {formatTime(recordingTime)}
+ </span>
+ </div>
+ <button
+ onClick={stopRecording}
+ className="flex items-center gap-2 px-4 py-1.5 bg-red-500/20 hover:bg-red-500/30 border border-red-500/50 rounded-full text-red-400 text-sm font-medium transition-colors"
+ >
+ <div className="w-3 h-3 bg-red-500 rounded-sm" />
+ Detener
+ </button>
+ </div>
+ </div>
+ )}
+
+ {isProcessing && (
+ <div className="absolute inset-0 bg-[#000B13]/95 backdrop-blur-md flex items-center justify-center pointer-events-auto z-50">
+ <div className="text-center">
+ <div className="relative w-20 h-20 mb-8 mx-auto">
+ <div className="absolute inset-0 rounded-full border-4 border-white/10" />
+
+ <div className="absolute inset-0 rounded-full border-4 border-transparent border-t-[#00A3FF] border-r-[#00A3FF]/30 animate-spin shadow-[0_0_20px_rgba(0,163,255,0.2)]" />
+
+ <div className="absolute inset-0 rounded-full bg-[#00A3FF]/5 blur-xl" />
+ </div>
+
+ <div className="space-y-2">
+ <p className="text-2xl font-semibold text-white tracking-tight">
+ Procesando video...
+ </p>
+ <p className="text-neutral-400 font-medium">
+ Preparando el editor
+ </p>
+ </div>
+ </div>
+ </div>
+ )}
+ </div>
+ );
+}
diff --git a/app/components/ui/RecordingSteps.tsx b/app/components/ui/RecordingSteps.tsx
new file mode 100644
index 0000000..c58d831
--- /dev/null
+++ b/app/components/ui/RecordingSteps.tsx
@@ -0,0 +1,200 @@
+"use client";
+
+import { Button } from "@/components/ui/button";
+import { Icon } from "@iconify/react";
+import StepRow from "./StepRow";
+import { useRecording } from "@/hooks/RecordingContext";
+
+export default function InteractiveRecordingSteps() {
+ const { startCountdown, stopRecording, isIdle, isRecording, isCountdown, isProcessing } = useRecording();
+
+ const getStartButtonContent = () => {
+ if (isCountdown) {
+ return (
+ <>
+ <div className="w-5 h-5 border-2 border-white/30 border-t-white rounded-full animate-spin mr-2" />
+ Preparando...
+ </>
+ );
+ }
+ if (isRecording) {
+ return (
+ <>
+ <div className="w-3 h-3 rounded-full bg-red-500 animate-pulse mr-2" />
+ Grabando...
+ </>
+ );
+ }
+ if (isProcessing) {
+ return (
+ <>
+ <div className="w-5 h-5 border-2 border-white/30 border-t-white rounded-full animate-spin mr-2" />
+ Procesando...
+ </>
+ );
+ }
+ return (
+ <>
+ <Icon icon="material-symbols:cast-outline-rounded" className="size-6 mr-2" />
+ Compartir pantalla
+ </>
+ );
+ };
+
+ const stepsData = [
+ {
+ id: 1,
+ title: "Inicia la captura",
+ description: (
+ <p>
+ Haz clic en el botón de abajo. Tu navegador te pedirá qué deseas compartir. Para un rendimiento óptimo y tomas más limpias, te recomendamos seleccionar una <strong>Pestaña</strong> o <strong>Ventana específica</strong>.
+ </p>
+ ),
+ isReversed: true,
+ actionButton: (
+ <Button
+ variant="outline"
+ size="xl"
+ className={`text-lg ${isRecording ? 'border-red-500/50 text-red-400' : ''} ${!isIdle ? 'opacity-70 cursor-not-allowed' : ''}`}
+ onClick={startCountdown}
+ disabled={!isIdle}
+ >
+ {getStartButtonContent()}
+ </Button>
+ ),
+ visual: (
+ <div className="aspect-video bg-[#0A0A0A] border border-white/10 rounded-xl overflow-hidden flex items-center justify-center relative group shadow-2xl">
+ <div className="absolute inset-0 bg-[radial-gradient(#ffffff22_1px,transparent_1px)] [bg-size:16px_16px] opacity-10"></div>
+ <div className="bg-[#141414] border border-white/10 rounded-lg p-5 w-3/4 shadow-2xl relative z-10 flex flex-col">
+ <div className="flex gap-6 mb-4 border-b border-white/10 pb-3 text-sm text-neutral-500 font-medium">
+ <span className="text-white border-b border-white pb-3 -mb-3.25">Pestaña de Chrome</span>
+ <span>Ventana</span>
+ <span>Pantalla Completa</span>
+ </div>
+ <div className="h-28 bg-white/5 rounded border border-white/10 flex items-center justify-center mb-4">
+ <Icon icon="solar:browser-minimalistic-linear" className="text-neutral-500 text-4xl" />
+ </div>
+ <div className="flex justify-end gap-3 mt-auto">
+ <div className="px-4 py-1.5 border border-white/10 text-neutral-400 rounded text-sm">Cancelar</div>
+ <div className="px-4 py-1.5 bg-blue-600 text-white rounded text-sm">Compartir</div>
+ </div>
+ </div>
+ </div>
+ ),
+ },
+ {
+ id: 2,
+ title: "Oculta las distracciones",
+ description: (
+ <p>
+ Si decides compartir toda tu pantalla, tu navegador mostrará automáticamente una barra flotante avisando que la captura está activa. Haz clic en <strong>&quot;Ocultar&quot;</strong> para asegurarte de que no aparezca en tu video final.
+ </p>
+ ),
+ isReversed: false,
+ actionButton: null,
+ visual: (
+ <div className="aspect-video bg-[#0A0A0A] border border-white/10 rounded-xl overflow-hidden flex items-center justify-center relative group shadow-2xl">
+ <div className="absolute top-0 left-1/2 -translate-x-1/2 w-[300px] h-[150px] bg-blue-500/10 rounded-[100%] blur-3xl"></div>
+ <div className="bg-[#1E1E20] border border-white/10 rounded-full px-5 py-3 flex items-center gap-6 shadow-2xl z-10">
+ <div className="flex items-center gap-3">
+ <Icon icon="logos:chrome" className="text-xl" />
+ <span className="text-sm text-neutral-200">app.freeshot.com está compartiendo tu pantalla.</span>
+ </div>
+ <div className="flex gap-4 border-l border-white/10 pl-4">
+ <span className="text-sm text-blue-400 font-medium cursor-pointer hover:text-blue-300">Dejar de compartir</span>
+ <span className="text-sm text-blue-400 font-medium cursor-pointer hover:text-white transition-colors relative group/btn">
+ Ocultar
+ <Icon icon="solar:cursor-default-bold" className="absolute -bottom-4 -right-2 text-white text-xl drop-shadow-md" />
+ </span>
+ </div>
+ </div>
+ </div>
+ ),
+ },
+ {
+ id: 3,
+ title: "Prepárate para la acción",
+ description: (
+ <p>
+ No hay prisa. Una vez que apruebes los permisos en el paso 1, iniciaremos una cuenta regresiva de 4 segundos. Verás el indicador en la pestaña del navegador para que sepas exactamente cuándo empezar a hablar o mover el mouse.
+ </p>
+ ),
+ isReversed: true,
+ actionButton: null,
+ visual: (
+ <div className="aspect-video bg-[#0A0A0A] border border-white/10 rounded-xl overflow-hidden flex flex-col items-center justify-center relative group shadow-2xl">
+ <div className="absolute inset-0 bg-linear-to-t from-red-500/5 via-transparent to-transparent"></div>
+ <div className="absolute top-6 left-6 right-6 h-10 bg-[#141414] border border-white/10 rounded-md flex items-center px-4 gap-3 shadow-lg">
+ <div className="w-2.5 h-2.5 rounded-full bg-red-500 animate-pulse"></div>
+ <span className="text-sm text-neutral-400 font-mono">🔴 Grabando en 4...</span>
+ </div>
+ <span className="text-[120px] font-light text-white tracking-tighter mt-12">
+ 4
+ </span>
+ </div>
+ ),
+ },
+ {
+ id: 4,
+ title: "Corte y al editor",
+ description: (
+ <p>
+ Cuando termines tu explicación, simplemente detén la grabación. El archivo no se descargará de inmediato; pasará mágicamente a nuestro editor web para que apliques zooms, fondos y recortes.
+ </p>
+ ),
+ isReversed: false,
+ actionButton: (
+ <Button
+ variant="outline"
+ size="xl"
+ className={`text-lg ${isRecording ? 'text-red-500 border-red-500/50 hover:bg-red-500/10' : 'text-neutral-500 border-neutral-500/50 cursor-not-allowed opacity-50'}`}
+ onClick={stopRecording}
+ disabled={!isRecording}
+ >
+ <div className={`w-4 h-4 rounded-sm mr-2 ${isRecording ? 'bg-red-500' : 'bg-neutral-500'}`}></div>
+ Detener grabación
+ </Button>
+ ),
+ visual: (
+ <div className="aspect-video bg-[#0A0A0A] border border-white/10 rounded-xl overflow-hidden flex items-center justify-center relative group shadow-2xl">
+ <div className="absolute top-1/2 left-0 w-full h-[1px] bg-white/5"></div>
+ <div className="absolute top-0 left-1/2 w-[1px] h-full bg-white/5"></div>
+ <div className="w-20 h-20 bg-red-500/10 border border-red-500/30 rounded-full flex items-center justify-center backdrop-blur-sm relative shadow-[0_0_40px_rgba(239,68,68,0.15)] z-10 group-hover:bg-red-500/20 transition-all duration-500">
+ <div className="absolute inset-0 rounded-full border border-red-500/50 animate-ping opacity-20"></div>
+ <div className="w-6 h-6 bg-red-500 rounded-sm"></div>
+ </div>
+ </div>
+ ),
+ },
+ ];
+
+ return (
+ <div id="docs" className="w-full max-w-7xl mx-auto px-6 py-24 text-left">
+ <div className="max-w-3xl mx-auto text-center mb-32">
+ <h2 className="text-4xl md:text-6xl font-bold tracking-tighter text-white mb-6 leading-tight drop-shadow-[1.2px_1.2px_100.2px_rgba(183,203,248,1)]">
+ Crea tu toma en <br />
+ <span className="bg-linear-to-r from-[#003780] to-white bg-clip-text text-transparent">
+ cuatro sencillos pasos
+ </span>
+ </h2>
+ <p className="text-lg md:text-xl text-neutral-400 font-light leading-relaxed">
+ Sigue estas instrucciones para capturar tu pantalla. Todo el proceso ocurre en tu navegador, sin necesidad de instalar nada.
+ </p>
+ </div>
+
+ <div className="space-y-32">
+ {stepsData.map((step) => (
+ <StepRow
+ key={step.id}
+ number={step.id}
+ title={step.title}
+ description={step.description}
+ visual={step.visual}
+ actionButton={step.actionButton}
+ isReversed={step.isReversed}
+ />
+ ))}
+ </div>
+ </div>
+ );
+}
\ No newline at end of file
diff --git a/app/components/ui/SidebarTool.tsx b/app/components/ui/SidebarTool.tsx
new file mode 100644
index 0000000..af56ace
--- /dev/null
+++ b/app/components/ui/SidebarTool.tsx
@@ -0,0 +1,53 @@
+"use client";
+
+import { Icon } from "@iconify/react";
+import { ReactNode } from "react";
+
+interface SidebarToolProps {
+ icon: string | ReactNode;
+ label?: string;
+ isActive?: boolean;
+ onClick?: () => void;
+}
+
+export function SidebarTool({ icon, label, isActive, onClick }: SidebarToolProps) {
+ return (
+ <button
+ onClick={onClick}
+ className={`relative flex flex-col items-center gap-1.5 transition-all duration-200 group w-full ${isActive ? "text-white" : "text-white/60 hover:text-white"
+ }`}
+ >
+ {isActive && (
+ <div className="absolute inset-x-0 top-0 h-px bg-linear-to-r from-transparent via-white/20 to-transparent mx-2" />
+ )}
+
+ <span
+ className="flex items-center justify-center p-3 squircle-element transition-all duration-200 group relative"
+ style={isActive ? {
+ background: 'radial-gradient(circle at 50% 0%, #555555 0%, #454545 64%)',
+ boxShadow: 'inset 0 1.01rem 0.2rem -1rem #fff, 0 0 0 1px #fff4, 0 4px 4px 0 #0004, 0 0 0 1px #333',
+ } : {}}
+ >
+ <div className={`transition-transform duration-300 ${isActive ? "scale-110" : "group-hover:scale-105"}`}>
+ {typeof icon === "string" ? (
+ <Icon icon={icon} width="20" />
+ ) : (
+ <div className="w-5 h-5 flex items-center justify-center">
+ {icon}
+ </div>
+ )}
+ </div>
+
+ {isActive && (
+ <div className="absolute left-1 w-8 h-2 top-1/5 -translate-y-1/2 size-3 bg-white rounded-full blur-[5px] rotate-45 opacity-50" />
+ )}
+ </span>
+
+ {label && (
+ <label className="text-xs font-medium cursor-pointer whitespace-nowrap overflow-hidden text-ellipsis max-w-full">
+ {label}
+ </label>
+ )}
+ </button>
+ );
+}
\ No newline at end of file
diff --git a/app/components/ui/SliderControl.tsx b/app/components/ui/SliderControl.tsx
new file mode 100644
index 0000000..1befc8e
--- /dev/null
+++ b/app/components/ui/SliderControl.tsx
@@ -0,0 +1,91 @@
+"use client";
+
+import { Icon } from "@iconify/react";
+import { useRef, useState, useEffect } from "react";
+
+interface SliderControlProps {
+ icon?: string;
+ label: string;
+ value: number;
+ min?: number;
+ max?: number;
+ step?: number; // Step for decimal values (default: 1)
+ onChange?: (value: number) => void;
+}
+
+export function SliderControl({ icon, label, value, min = 0, max = 100, step = 1, onChange }: SliderControlProps) {
+ const [isDragging, setIsDragging] = useState(false);
+ const sliderRef = useRef<HTMLDivElement>(null);
+
+ const handleMouseDown = () => {
+ setIsDragging(true);
+ };
+
+ const handleClick = (e: React.MouseEvent<HTMLDivElement>) => {
+ if (!sliderRef.current || !onChange) return;
+
+ const rect = sliderRef.current.getBoundingClientRect();
+ const percentage = Math.max(0, Math.min(100, ((e.clientX - rect.left) / rect.width) * 100));
+ const rawValue = (percentage / 100) * (max - min) + min;
+ const newValue = Math.round(rawValue / step) * step;
+ onChange(Math.max(min, Math.min(max, parseFloat(newValue.toFixed(1)))));
+ };
+
+ useEffect(() => {
+ if (!isDragging) return;
+
+ const handleMouseMove = (e: MouseEvent) => {
+ if (!sliderRef.current || !onChange) return;
+
+ const rect = sliderRef.current.getBoundingClientRect();
+ const percentage = Math.max(0, Math.min(100, ((e.clientX - rect.left) / rect.width) * 100));
+ const rawValue = (percentage / 100) * (max - min) + min;
+ const newValue = Math.round(rawValue / step) * step;
+ onChange(Math.max(min, Math.min(max, parseFloat(newValue.toFixed(1)))));
+ };
+
+ const handleMouseUp = () => {
+ setIsDragging(false);
+ };
+
+ document.addEventListener('mousemove', handleMouseMove);
+ document.addEventListener('mouseup', handleMouseUp);
+
+ return () => {
+ document.removeEventListener('mousemove', handleMouseMove);
+ document.removeEventListener('mouseup', handleMouseUp);
+ };
+ }, [isDragging, min, max, step, onChange]);
+
+ const displayPercentage = Math.round(((value - min) / (max - min)) * 100);
+
+ return (
+ <div>
+ <div className="flex items-center gap-2 text-xs mb-2 text-white/60">
+ {icon && <Icon icon={icon} width="16" />}
+ <span>{label}</span>
+ </div>
+ <div className="flex items-center gap-3">
+ <div
+ ref={sliderRef}
+ className="flex-1 h-1 bg-[#27272A] rounded-full relative cursor-pointer"
+ onClick={handleClick}
+ onMouseDown={handleMouseDown}
+ >
+ <div
+ className="absolute left-0 top-0 h-full bg-gradient-primary rounded-full"
+ style={{ width: `${displayPercentage}%` }}
+ ></div>
+ <div
+ className="absolute top-1/2 -translate-y-1/2 size-3 bg-white/70 rounded-full border border-white shadow"
+ style={{ left: `calc(${displayPercentage}% - 7px)` }}
+ ></div>
+
+ </div>
+ <span className="text-[11px] font-mono text-white/50 rounded text-center">
+ {step < 1 ? value.toFixed(1) : value}
+ </span>
+ </div>
+ </div>
+ );
+}
diff --git a/app/components/ui/StepRow.tsx b/app/components/ui/StepRow.tsx
new file mode 100644
index 0000000..0d49197
--- /dev/null
+++ b/app/components/ui/StepRow.tsx
@@ -0,0 +1,58 @@
+"use client";
+import { ReactNode } from "react";
+
+interface StepRowProps {
+ number: number;
+ title: string;
+ description: ReactNode;
+ visual: ReactNode;
+ actionButton?: ReactNode;
+ isReversed: boolean;
+}
+
+export default function StepRow({
+ number,
+ title,
+ description,
+ visual,
+ actionButton,
+ isReversed
+}: StepRowProps) {
+ return (
+ <div className="grid grid-cols-1 lg:grid-cols-2 gap-16 lg:gap-24 items-center">
+
+ <div className={`order-1 ${isReversed ? "lg:order-2" : "lg:order-1"}`}>
+ <div className="flex items-center gap-5 mb-6 drop-shadow-[1.2px_1.2px_100.2px_rgba(183,203,248,1)]">
+ <span className="relative flex items-center justify-center w-14 h-14 rounded-full bg-[#0E0E12] border border-white/10 text-white font-light text-2xl shrink-0 overflow-hidden group">
+
+ <div
+ className="absolute inset-0 opacity-40 transition-opacity group-hover:opacity-60"
+ style={{
+ backgroundImage: `repeating-linear-gradient(45deg, rgba(255,255,255,0.2) 0px, rgba(255,255,255,0.2) 1px, transparent 1px, transparent 10px)`,
+ maskImage: 'radial-gradient(circle, black 40%, transparent 100%)',
+ WebkitMaskImage: 'radial-gradient(circle, black 40%, transparent 100%)'
+ }}
+ />
+
+ <div className="absolute inset-0 rounded-full bg-gradient-to-tr from-white/5 to-transparent pointer-events-none" />
+
+ <span className="relative z-10">{number}</span>
+ </span>
+
+ <h3 className="text-3xl md:text-4xl font-light tracking-tight text-white drop-shadow-[1.2px_1.2px_100.2px_rgba(183,203,248,1)]">
+ {title}
+ </h3>
+ </div>
+ <div className="text-lg text-neutral-400 mb-10 leading-relaxed font-light">
+ {description}
+ </div>
+ {actionButton && <div>{actionButton}</div>}
+ </div>
+
+ <div className={`order-2 ${isReversed ? "lg:order-1" : "lg:order-2"}`}>
+ {visual}
+ </div>
+
+ </div>
+ );
+}
\ No newline at end of file
diff --git a/app/components/ui/TabButton.tsx b/app/components/ui/TabButton.tsx
new file mode 100644
index 0000000..cdc4cd3
--- /dev/null
+++ b/app/components/ui/TabButton.tsx
@@ -0,0 +1,22 @@
+"use client";
+
+interface TabButtonProps {
+ label: string;
+ isActive?: boolean;
+ onClick?: () => void;
+}
+
+export function TabButton({ label, isActive, onClick }: TabButtonProps) {
+ return (
+ <button
+ onClick={onClick}
+ className={`flex-1 py-1.5 rounded-md transition ${
+ isActive
+ ? "bg-white/10 text-white"
+ : "hover:text-white text-white/60"
+ }`}
+ >
+ {label}
+ </button>
+ );
+}
diff --git a/app/components/ui/WalpaperSections.tsx b/app/components/ui/WalpaperSections.tsx
new file mode 100644
index 0000000..abebfd2
--- /dev/null
+++ b/app/components/ui/WalpaperSections.tsx
@@ -0,0 +1,213 @@
+"use client";
+
+import { useState } from "react";
+import { Icon } from "@iconify/react";
+import { motion, AnimatePresence } from "framer-motion";
+import { WALLPAPER_CATEGORIES, type WallpaperCategory, type WallpaperItem } from "@/lib/wallpaper.catalog";
+import { Popover, PopoverContent, PopoverTrigger } from "@/components/ui/popover";
+
+const PREVIEW_LIMIT = 11;
+
+interface WallpaperGridProps {
+ selectedIndex?: number;
+ onSelect?: (index: number) => void;
+}
+
+export function OptionsGrid({ selectedIndex = -1, onSelect }: WallpaperGridProps) {
+ return (
+ <div className="grid grid-cols-6 gap-2">
+ <button
+ onClick={() => onSelect?.(-1)}
+ title="Sin fondo"
+ className={`aspect-square squircle-element cursor-pointer transition-all flex items-center justify-center relative overflow-hidden ${
+ selectedIndex === -1
+ ? "ring-2 ring-white/90 shadow-lg shadow-black/40"
+ : "hover:ring-2 ring-white/60"
+ }`}
+ style={{
+ backgroundImage:
+ "linear-gradient(45deg,#444 25%,transparent 25%),linear-gradient(-45deg,#444 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#444 75%),linear-gradient(-45deg,transparent 75%,#444 75%)",
+ backgroundSize: "12px 12px",
+ backgroundPosition: "0 0,0 6px,6px -6px,-6px 0",
+ backgroundColor: "#888",
+ }}
+ >
+ <div className="absolute w-[140%] h-0.5 bg-red-400/80 rotate-45" />
+ </button>
+
+ <button
+ title="Buscar en Unsplash"
+ className="aspect-square squircle-element border border-white/10 bg-white flex items-center justify-center hover:bg-white/80 transition group"
+ onClick={() => { /* TODO: abrir buscador Unsplash */ }}
+ >
+ <Icon icon="ri:unsplash-fill" className="text-black" width="18" />
+ </button>
+ </div>
+ );
+}
+
+function WallpaperThumb({
+ item,
+ isSelected,
+ onSelect,
+}: {
+ item: WallpaperItem;
+ isSelected: boolean;
+ onSelect?: (index: number) => void;
+}) {
+ return (
+ <button
+ onClick={() => onSelect?.(item.index)}
+ className={`aspect-square squircle-element cursor-pointer transition-all bg-cover bg-center border border-white/10 ${
+ isSelected
+ ? "ring-2 ring-white/90 border-white/40 shadow-md shadow-black/50"
+ : "border-white/10 hover:border-white/30 hover:ring-1 ring-white/20"
+ }`}
+ style={{ backgroundImage: `url('${item.previewUrl}')` }}
+ />
+ );
+}
+
+function CategoryPopover({
+ category,
+ selectedIndex,
+ onSelect,
+}: {
+ category: WallpaperCategory;
+ selectedIndex: number;
+ onSelect?: (index: number) => void;
+}) {
+ const [open, setOpen] = useState(false);
+
+ return (
+ <Popover open={open} onOpenChange={setOpen}>
+ <PopoverTrigger asChild>
+ <button
+ className="aspect-square rounded-lg border border-white/10 bg-white/5 flex items-center justify-center hover:bg-white/10 transition group"
+ title={`Ver más de ${category.label}`}
+ >
+ <Icon icon="lucide:plus" className="text-white/60 group-hover:text-white" width="14" />
+ </button>
+ </PopoverTrigger>
+
+ <PopoverContent
+ side="right"
+ align="start"
+ sideOffset={12}
+ className="w-72 p-0 border-0 shadow-2xl"
+ >
+ <div className="flex flex-col bg-[#111113] border border-white/10 rounded-xl overflow-hidden shadow-2xl">
+ <div className="flex items-center gap-2 px-4 py-3 border-b border-white/10 bg-white/2">
+ <Icon icon={category.icon} width="14" className="text-white/50" />
+ <span className="text-[10px] font-medium uppercase tracking-[0.15em] text-white/50">
+ {category.label}
+ </span>
+ <span className="ml-auto text-[10px] text-white/60">
+ +{category.items.length - PREVIEW_LIMIT} más
+ </span>
+ </div>
+
+ <div className="p-3 grid grid-cols-4 gap-2 max-h-80 overflow-y-auto custom-scrollbar">
+ {category.items.slice(PREVIEW_LIMIT).map((item) => (
+ <button
+ key={item.index}
+ onClick={() => { onSelect?.(item.index); setOpen(false); }}
+ title={item.filename}
+ className={`aspect-square rounded-lg cursor-pointer transition-all bg-cover bg-center border ${
+ selectedIndex === item.index
+ ? "ring-2 ring-white/90 border-white/40 shadow-md shadow-black/50"
+ : "border-white/10 hover:border-white/30 hover:ring-1 ring-white/20"
+ }`}
+ style={{ backgroundImage: `url('${item.previewUrl}')` }}
+ />
+ ))}
+ </div>
+ </div>
+ </PopoverContent>
+ </Popover>
+ );
+}
+
+function PrimaryCategoryGrid({
+ category, selectedIndex, onSelect,
+}: { category: WallpaperCategory; selectedIndex: number; onSelect?: (index: number) => void; }) {
+ const visible = category.items.slice(0, PREVIEW_LIMIT);
+ return (
+ <div className="flex flex-col gap-2">
+ <div className="flex items-center gap-1.5 text-[10px] uppercase tracking-widesttext-white/60 font-bold">
+ <Icon icon={category.icon} width="12" />
+ <span>{category.label}</span>
+ </div>
+ <div className="grid grid-cols-6 gap-2">
+ {visible.map((item) => (
+ <WallpaperThumb key={item.index} item={item} isSelected={selectedIndex === item.index} onSelect={onSelect} />
+ ))}
+ <CategoryPopover category={category} selectedIndex={selectedIndex} onSelect={onSelect} />
+ </div>
+ </div>
+ );
+}
+
+function SecondaryCategoryGrid({
+ category, selectedIndex, onSelect,
+}: { category: WallpaperCategory; selectedIndex: number; onSelect?: (index: number) => void; }) {
+ return (
+ <motion.div
+ initial={{ opacity: 0, height: 0, marginTop: 0 }}
+ animate={{ opacity: 1, height: "auto", marginTop: 20 }}
+ exit={{ opacity: 0, height: 0, marginTop: 0 }}
+ transition={{ duration: 0.3, ease: "easeInOut" }}
+ className="flex flex-col gap-2 overflow-hidden"
+ >
+ <div className="flex items-center gap-1.5 text-[10px] uppercase tracking-widesttext-white/60 font-bold">
+ <Icon icon={category.icon} width="12" />
+ <span>{category.label}</span>
+ </div>
+ <div className="grid grid-cols-6 gap-2">
+ {category.items.map((item) => (
+ <WallpaperThumb key={item.index} item={item} isSelected={selectedIndex === item.index} onSelect={onSelect} />
+ ))}
+ </div>
+ </motion.div>
+ );
+}
+
+export function WallpaperCatalogGrid({ selectedIndex = -1, onSelect }: WallpaperGridProps) {
+ const [showAll, setShowAll] = useState(false);
+ const primary = WALLPAPER_CATEGORIES.filter((c) => c.primary);
+ const secondary = WALLPAPER_CATEGORIES.filter((c) => !c.primary);
+
+ return (
+ <div className="flex flex-col gap-5">
+ {primary.map((cat) => (
+ <PrimaryCategoryGrid key={cat.id} category={cat} selectedIndex={selectedIndex} onSelect={onSelect} />
+ ))}
+
+ {secondary.length > 0 && (
+ <motion.button
+ onClick={() => setShowAll((v) => !v)}
+ className="flex items-center justify-center gap-1.5 text-[10px] uppercase tracking-widest text-white/60 hover:text-white font-bold transition-colors"
+ whileHover={{ scale: 1.05 }}
+ whileTap={{ scale: 0.95 }}
+ >
+ <motion.div
+ animate={{ rotate: showAll ? 180 : 0 }}
+ transition={{ duration: 0.3, ease: "easeInOut" }}
+ >
+ <Icon icon="lucide:chevron-down" width="12" />
+ </motion.div>
+ <span>{showAll ? "Mostrar menos" : `Mostrar más`}</span>
+ </motion.button>
+ )}
+
+ <AnimatePresence mode="sync">
+ {showAll && secondary.map((cat) => (
+ <SecondaryCategoryGrid key={cat.id} category={cat} selectedIndex={selectedIndex} onSelect={onSelect} />
+ ))}
+ </AnimatePresence>
+ </div>
+ );
+}
+
+export { WallpaperCatalogGrid as DesktopGrid };
+
diff --git a/app/components/ui/editor/ControlPanel.tsx b/app/components/ui/editor/ControlPanel.tsx
new file mode 100644
index 0000000..79406d3
--- /dev/null
+++ b/app/components/ui/editor/ControlPanel.tsx
@@ -0,0 +1,276 @@
+"use client";
+
+import { Icon } from "@iconify/react";
+import { motion } from "framer-motion";
+import { SliderControl } from "../SliderControl";
+import { TabButton } from "../TabButton";
+import type { ControlPanelProps } from "@/types/control-panel.types";
+import Link from "next/link";
+import Image from "next/image";
+import { lazy, Suspense } from "react";
+import { LoadingSpinner } from "../LoadingSpinner";
+import { ElementsMenu } from "./ElementsMenu";
+
+// Lazy load heavy components - only load when needed
+const ImageRecentBackgroundGrid = lazy(() => import("../ImageRecentBackgroundGrid").then(mod => ({ default: mod.ImageRecentBackgroundGrid })));
+const BackgroundColorEditor = lazy(() => import("../BackgroundColorEditor").then(mod => ({ default: mod.BackgroundColorEditor })));
+const ZoomFragmentEditor = lazy(() => import("./ZoomFragmentEditor").then(mod => ({ default: mod.ZoomFragmentEditor })));
+const ZoomGlobalConfig = lazy(() => import("./ZoomGlobalConfig").then(mod => ({ default: mod.ZoomGlobalConfig })));
+const OptionsGrid = lazy(() => import("../WalpaperSections").then(mod => ({ default: mod.OptionsGrid })));
+const WallpaperCatalogGrid = lazy(() => import("../WalpaperSections").then(mod => ({ default: mod.WallpaperCatalogGrid })));
+const MockupMenu = lazy(() => import("./MockupMenu").then(mod => ({ default: mod.MockupMenu })));
+
+interface ExtendedControlPanelProps extends ControlPanelProps {
+ onTogglePanel?: () => void;
+ isOpen?: boolean;
+}
+
+export function ControlPanel({
+ activeTool,
+ backgroundTab,
+ selectedWallpaper,
+ backgroundBlur,
+ padding,
+ roundedCorners,
+ shadows,
+ uploadedImages,
+ selectedImageUrl,
+ backgroundColorConfig,
+ onBackgroundTabChange,
+ onWallpaperSelect,
+ onBackgroundBlurChange,
+ onPaddingChange,
+ onRoundedCornersChange,
+ onShadowsChange,
+ onImageUpload,
+ onImageSelect,
+ onImageRemove,
+ onBackgroundColorChange,
+ onTogglePanel,
+ isOpen = true,
+ // Zoom props
+ zoomFragments = [],
+ selectedZoomFragment,
+ onSelectZoomFragment,
+ onAddZoomFragment,
+ onUpdateZoomFragment,
+ onDeleteZoomFragment,
+ videoUrl,
+ videoThumbnail,
+ currentTime = 0,
+ getThumbnailForTime, videoDimensions, // Mockup props
+ mockupId,
+ mockupConfig,
+ onMockupChange,
+ onMockupConfigChange,
+ // Canvas elements props
+ onAddCanvasElement,
+ selectedCanvasElement,
+ onUpdateCanvasElement,
+ onDeleteCanvasElement,
+ onDuplicateCanvasElement,
+ onBringToFront,
+ onSendToBack,
+}: ExtendedControlPanelProps) {
+ return (
+ <div className="relative w-[320px] h-screen bg-[#141417] border-r border-white/10 flex flex-col shrink-0">
+ <header className="flex items-center justify-between h-13 p-2 border-b border-white/10 shrink-0">
+ <Link href="/" className="flex items-center gap-2 group">
+ <Image src="/svg/logo-freeshot.svg" alt="Logo" width={30} height={30} />
+ <span className="hidden sm:flex text-white font-semibold text-sm transition-colors group-hover:text-neutral-200">
+ Free
+ <span className="relative inline-block px-1 ml-0.5">
+ <span className="absolute inset-0 bg-blue-500/20 border border-dashed border-blue-400/50 rounded-sm -rotate-1" />
+
+ <span className="relative">Shot</span>
+
+ <div className="absolute -bottom-1 -right-1 size-2 bg-sky-500 border border-white rounded-full shadow-lg" />
+ </span>
+ </span>
+ </Link>
+ <motion.button
+ onClick={onTogglePanel}
+ className="p-2 rounded-lg text-white/60 hover:text-white hover:bg-white/5 transition-all duration-200" title="Cerrar panel de control"
+ whileHover={{ scale: 1.1 }}
+ whileTap={{ scale: 0.9 }}
+ >
+ <motion.div
+ animate={{ rotate: isOpen ? 0 : 180 }}
+ transition={{ duration: 0.3, ease: "easeInOut" }}
+ >
+ <Icon icon="lucide:sidebar-close" width="20" />
+ </motion.div>
+ </motion.button>
+ </header>
+
+ <div className="flex-1 overflow-y-auto custom-scrollbar">
+ {activeTool === "screenshot" && (
+ <>
+ <div className="p-4 border-b border-white/10">
+ <div className="flex items-center gap-2 text-white font-medium mb-4">
+ <Icon icon="gravity-ui:picture" width="20" />
+ <span>Fondo</span>
+ </div>
+
+ <div className="flex bg-[#09090B] rounded-lg p-1 text-xs font-medium">
+ <TabButton
+ label="Wallpaper"
+ isActive={backgroundTab === "wallpaper"}
+ onClick={() => onBackgroundTabChange("wallpaper")}
+ />
+ <TabButton
+ label="Color"
+ isActive={backgroundTab === "color"}
+ onClick={() => onBackgroundTabChange("color")}
+ />
+ <TabButton
+ label="Imagen"
+ isActive={backgroundTab === "image"}
+ onClick={() => onBackgroundTabChange("image")}
+ />
+ </div>
+ </div>
+
+ <div className="p-4 flex flex-col gap-6 pb-12">
+ {backgroundTab === "wallpaper" && (
+ <Suspense fallback={<LoadingSpinner message="Cargando wallpapers..." />}>
+ <div className="flex flex-col gap-5">
+ <div>
+ <div className="text-[10px] uppercase tracking-widesttext-white/60 font-bold mb-2 flex items-center gap-1.5">
+ <span>Opciones</span>
+ </div>
+ <OptionsGrid
+ selectedIndex={selectedWallpaper}
+ onSelect={onWallpaperSelect}
+ />
+ </div>
+
+ <WallpaperCatalogGrid
+ selectedIndex={selectedWallpaper}
+ onSelect={onWallpaperSelect}
+ />
+ </div>
+ </Suspense>
+ )}
+
+ {backgroundTab === "image" && (
+ <Suspense fallback={<LoadingSpinner message="Cargando editor de imágenes..." />}>
+ <ImageRecentBackgroundGrid
+ images={uploadedImages}
+ selectedUrl={selectedImageUrl}
+ onSelect={onImageSelect}
+ onRemove={onImageRemove}
+ onUpload={onImageUpload}
+ />
+ </Suspense>
+ )}
+
+ {backgroundTab === "color" && (
+ <Suspense fallback={<LoadingSpinner message="Cargando editor de color..." />}>
+ <BackgroundColorEditor
+ value={backgroundColorConfig}
+ onChange={onBackgroundColorChange}
+ />
+ </Suspense>
+ )}
+
+ <SliderControl
+ icon="mdi:blur"
+ label="Desenfoque del fondo"
+ value={backgroundBlur}
+ min={0}
+ max={20}
+ onChange={onBackgroundBlurChange}
+ />
+
+ <SliderControl
+ icon="mdi:arrow-expand-all"
+ label="Padding"
+ value={padding}
+ min={0}
+ max={20}
+ onChange={onPaddingChange}
+ />
+
+ <SliderControl
+ icon="mdi:border-radius"
+ label="Esquinas redondeadas"
+ value={roundedCorners}
+ min={0}
+ max={20}
+ onChange={onRoundedCornersChange}
+ />
+
+ <SliderControl
+ icon="material-symbols:shadow"
+ label="Sombras"
+ value={shadows}
+ min={0}
+ max={20}
+ onChange={onShadowsChange}
+ />
+ </div>
+ </>
+ )}
+
+ {activeTool === "elements" && (
+ <ElementsMenu
+ onAddElement={onAddCanvasElement || (() => {})}
+ selectedElement={selectedCanvasElement}
+ onUpdateElement={onUpdateCanvasElement}
+ onDeleteElement={onDeleteCanvasElement}
+ onDuplicateElement={onDuplicateCanvasElement}
+ onBringToFront={onBringToFront}
+ onSendToBack={onSendToBack}
+ />
+ )}
+
+ {activeTool === "audio" && (
+ <div className="p-4 flex flex-col gap-6">
+ <div className="flex items-center gap-2 text-white font-medium">
+ <Icon icon="mdi:volume-high" width="20" />
+ <span>Audio</span>
+ </div>
+ <SliderControl icon="mdi:volume-medium" label="Volumen" value={80} />
+ <SliderControl icon="mdi:tune" label="Amplificación de graves" value={30} />
+ </div>
+ )}
+
+ {activeTool === "zoom" && (
+ <Suspense fallback={<LoadingSpinner message="Cargando editor de zoom..." />}>
+ {selectedZoomFragment ? (
+ <ZoomFragmentEditor
+ fragment={selectedZoomFragment}
+ videoUrl={videoUrl ?? null}
+ videoThumbnail={videoThumbnail}
+ currentTime={currentTime}
+ getThumbnailForTime={getThumbnailForTime}
+ videoDimensions={videoDimensions}
+ onBack={() => onSelectZoomFragment?.(null)}
+ onDelete={() => onDeleteZoomFragment?.(selectedZoomFragment.id)}
+ onUpdate={(updates) => onUpdateZoomFragment?.(selectedZoomFragment.id, updates)}
+ />
+ ) : (
+ <ZoomGlobalConfig
+ fragments={zoomFragments}
+ onSelectFragment={(id) => onSelectZoomFragment?.(id)}
+ onAddFragment={() => onAddZoomFragment?.()}
+ />
+ )}
+ </Suspense>
+ )}
+
+ {activeTool === "mockup" && (
+ <Suspense fallback={<LoadingSpinner message="Cargando mockups..." />}>
+ <MockupMenu
+ mockupId={mockupId}
+ mockupConfig={mockupConfig}
+ onMockupChange={onMockupChange}
+ onMockupConfigChange={onMockupConfigChange}
+ />
+ </Suspense>
+ )}
+ </div>
+ </div>
+ );
+}
diff --git a/app/components/ui/editor/EditorTopBar.tsx b/app/components/ui/editor/EditorTopBar.tsx
new file mode 100644
index 0000000..7d9d837
--- /dev/null
+++ b/app/components/ui/editor/EditorTopBar.tsx
@@ -0,0 +1,83 @@
+"use client";
+
+import { Icon } from "@iconify/react";
+import { ExportDropdown } from "../ExportDropdown";
+import type { ExportQuality, ExportProgress } from "@/types";
+import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert";
+import { useEffect, useState } from "react";
+
+interface EditorTopBarProps {
+ onExport: (quality: ExportQuality) => void;
+ exportProgress: ExportProgress;
+}
+
+export function EditorTopBar({ onExport, exportProgress }: EditorTopBarProps) {
+ const [showAlert, setShowAlert] = useState(false);
+ const [prevStatus, setPrevStatus] = useState<string>(exportProgress.status);
+
+ if (exportProgress.status !== prevStatus) {
+ setPrevStatus(exportProgress.status);
+ if (exportProgress.status === "error") {
+ setShowAlert(true);
+ } else {
+ setShowAlert(false);
+ }
+ }
+
+ useEffect(() => {
+ if (showAlert) {
+ const timer = setTimeout(() => {
+ setShowAlert(false);
+ }, 10000);
+ return () => clearTimeout(timer);
+ }
+ }, [showAlert]);
+
+ return (
+ <div className="h-13 border-b border-white/10 flex items-center justify-between px-4 shrink-0 relative">
+
+ {showAlert && (
+ <div className="fixed top-6 left-1/2 -translate-x-1/2 w-full max-w-md z-200 px-4 animate-in fade-in zoom-in slide-in-from-top-4 duration-300">
+ <Alert variant="info" className="relative border-red-500/50 bg-red-950/95 backdrop-blur-lg shadow-2xl overflow-hidden">
+ <button
+ onClick={() => setShowAlert(false)}
+ className="absolute top-3 right-3 p-1 rounded-md text-white hover:text-red-100 hover:bg-white/10 transition-all duration-200 group"
+ aria-label="Cerrar alerta"
+ >
+ <Icon icon="lucide:x" className="h-4 w-4" />
+ </button>
+
+ <Icon icon="lucide:alert-circle" className="h-4 w-4 text-red-400" />
+
+ <div className="pr-6">
+ <AlertTitle className="text-red-100 font-medium">Error al exportar</AlertTitle>
+ <AlertDescription className="flex flex-col gap-2 mt-1">
+ <span className="text-red-200/90 text-xs">
+ {exportProgress.message}
+ </span>
+ <span className="text-xs leading-tight text-white/90">
+ Intenta reproducir toda la duración del video antes de exportar.
+ </span>
+ </AlertDescription>
+ </div>
+ </Alert>
+ </div>
+
+ )}
+
+ <div className="flex-1"></div>
+
+ <div className="flex items-center gap-3 ml-auto">
+ <div className="flex items-center gap-2 border-r border-white/10 pr-3">
+ <button className="hover:text-white transition-colors">
+ <Icon icon="mdi:undo" width="20" />
+ </button>
+ <button className="hover:text-white transition-colors opacity-50 cursor-not-allowed">
+ <Icon icon="mdi:redo" width="20" />
+ </button>
+ </div>
+ <ExportDropdown onExport={onExport} exportProgress={exportProgress} />
+ </div>
+ </div>
+ );
+}
\ No newline at end of file
diff --git a/app/components/ui/editor/ElementsMenu.tsx b/app/components/ui/editor/ElementsMenu.tsx
new file mode 100644
index 0000000..81e7632
--- /dev/null
+++ b/app/components/ui/editor/ElementsMenu.tsx
@@ -0,0 +1,774 @@
+"use client";
+
+import { Icon } from "@iconify/react";
+import { useState, useEffect, useRef, startTransition, useCallback } from "react";
+import { SliderControl } from "../SliderControl";
+import { SVG_CATEGORIES, IMAGE_CATEGORIES, PINNED_SVG_ITEMS, PINNED_IMAGE_ITEMS } from "@/lib/canvas-elements.config";
+import type { SvgElement, TextElement, ImageElement, CanvasElement } from "@/types/canvas-elements.types";
+import { Popover, PopoverContent, PopoverTrigger } from "@/components/ui/popover";
+import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select";
+
+interface ElementsMenuProps {
+ onAddElement: (element: CanvasElement) => void;
+ selectedElement?: CanvasElement | null;
+ onUpdateElement?: (id: string, updates: Partial<CanvasElement>) => void;
+ onDeleteElement?: (id: string) => void;
+ onDuplicateElement?: (id: string) => void;
+ onBringToFront?: (id: string) => void;
+ onSendToBack?: (id: string) => void;
+}
+
+const PRESET_COLORS = [
+ "#FFFFFF", "#000000", "#FF0000", "#00FF00", "#0000FF",
+];
+
+const TEXT_PRESETS: Array<{ label: string; fontSize: number; weight: "normal" | "medium" | "bold"; sample: string }> = [
+ { label: "Título", fontSize: 48, weight: "bold", sample: "Título" },
+ { label: "Subtítulo", fontSize: 32, weight: "medium", sample: "Subtítulo" },
+ { label: "Cuerpo", fontSize: 24, weight: "normal", sample: "Texto de cuerpo" },
+ { label: "Caption", fontSize: 18, weight: "normal", sample: "Caption" },
+];
+
+const FONT_FAMILIES = [
+ "Inter", "Roboto", "Arial", "Georgia", "Courier New", "Comic Sans MS"
+];
+
+const FONT_WEIGHTS: Array<{ key: "normal" | "medium" | "bold"; label: string }> = [
+ { key: "normal", label: "Regular" },
+ { key: "medium", label: "Medium" },
+ { key: "bold", label: "Bold" },
+];
+
+export function ElementsMenu({
+ onAddElement,
+ selectedElement,
+ onUpdateElement,
+ onDeleteElement,
+ onDuplicateElement,
+ onBringToFront,
+ onSendToBack
+}: ElementsMenuProps) {
+ const [mode, setMode] = useState<"text" | "elements">("elements");
+
+ // SVG/Shape settings
+ const [shapeSize, setShapeSize] = useState(15);
+ const [shapeColor, setShapeColor] = useState("#FFFFFF");
+ const [shapeOpacity, setShapeOpacity] = useState(100);
+
+ // Text settings
+ const [textContent, setTextContent] = useState("Texto");
+ const [textFontSize, setTextFontSize] = useState(32);
+ const [textColor, setTextColor] = useState("#FFFFFF");
+ const [textOpacity, setTextOpacity] = useState(100);
+ const [textFontFamily, setTextFontFamily] = useState("Inter");
+ const [textFontWeight, setTextFontWeight] = useState<"normal" | "medium" | "bold">("normal");
+
+ // Image settings
+ const [imageOpacity, setImageOpacity] = useState(100);
+ const [imageSize, setImageSize] = useState(25);
+
+ // Popover states
+ const [selectedSvgCategory, setSelectedSvgCategory] = useState<string>("all");
+ const [selectedImageCategory, setSelectedImageCategory] = useState<string>("all");
+
+ // Track if we're syncing to avoid infinite loops
+ const isSyncing = useRef(false);
+ const lastSelectedId = useRef<string | null>(null);
+
+ // Sync form FROM selected element (auto-fill when clicking element)
+ useEffect(() => {
+ // Only sync if the selected element ID has changed
+ const currentId = selectedElement?.id || null;
+ if (lastSelectedId.current === currentId) return;
+
+ lastSelectedId.current = currentId;
+ isSyncing.current = true;
+
+ // Use startTransition to batch state updates
+ startTransition(() => {
+ if (selectedElement) {
+ if (selectedElement.type === "svg") {
+ setShapeSize(selectedElement.width);
+ setShapeColor(selectedElement.color || "#FFFFFF");
+ setShapeOpacity(Math.round(selectedElement.opacity * 100));
+ setMode("elements");
+ } else if (selectedElement.type === "image") {
+ setImageSize(selectedElement.width);
+ setImageOpacity(Math.round(selectedElement.opacity * 100));
+ setMode("elements");
+ } else if (selectedElement.type === "text") {
+ setTextContent(selectedElement.content);
+ setTextFontSize(selectedElement.fontSize);
+ setTextColor(selectedElement.color);
+ setTextOpacity(Math.round(selectedElement.opacity * 100));
+ setTextFontFamily(selectedElement.fontFamily);
+ setTextFontWeight(selectedElement.fontWeight);
+ setMode("text");
+ }
+ } else {
+ // Reset to defaults when no selection
+ setShapeSize(15);
+ setShapeColor("#FFFFFF");
+ setShapeOpacity(100);
+ setImageSize(25);
+ setImageOpacity(100);
+ setTextContent("Texto");
+ setTextFontSize(32);
+ setTextColor("#FFFFFF");
+ setTextOpacity(100);
+ setTextFontFamily("Inter");
+ setTextFontWeight("normal");
+ }
+
+ setTimeout(() => { isSyncing.current = false; }, 0);
+ });
+ }, [selectedElement]);
+
+ // Sync element FROM form changes (real-time preview for SVG)
+ useEffect(() => {
+ if (!isSyncing.current && selectedElement?.type === "svg" && onUpdateElement) {
+ onUpdateElement(selectedElement.id, {
+ width: shapeSize,
+ height: shapeSize,
+ color: shapeColor,
+ opacity: shapeOpacity / 100,
+ });
+ }
+ }, [shapeSize, shapeColor, shapeOpacity, selectedElement?.id, selectedElement?.type, onUpdateElement]);
+
+ // Sync element FROM form changes (real-time preview for image)
+ useEffect(() => {
+ if (!isSyncing.current && selectedElement?.type === "image" && onUpdateElement) {
+ onUpdateElement(selectedElement.id, {
+ width: imageSize,
+ height: imageSize,
+ opacity: imageOpacity / 100,
+ });
+ }
+ }, [imageSize, imageOpacity, selectedElement?.id, selectedElement?.type, onUpdateElement]);
+
+ // Sync element FROM form changes (real-time preview for text)
+ useEffect(() => {
+ if (!isSyncing.current && selectedElement?.type === "text" && onUpdateElement) {
+ onUpdateElement(selectedElement.id, {
+ content: textContent,
+ fontSize: textFontSize,
+ color: textColor,
+ opacity: textOpacity / 100,
+ fontFamily: textFontFamily,
+ fontWeight: textFontWeight,
+ });
+ }
+ }, [textContent, textFontSize, textColor, textOpacity, textFontFamily, textFontWeight, selectedElement?.id, selectedElement?.type, onUpdateElement]);
+
+ // Filter SVG items by category
+ const filteredSvgItems = selectedSvgCategory === "all"
+ ? SVG_CATEGORIES.flatMap(cat => cat.items.map(item => ({ ...item, category: cat.id })))
+ : SVG_CATEGORIES.find(cat => cat.id === selectedSvgCategory)?.items.map(item => ({ ...item, category: selectedSvgCategory })) || [];
+
+ // Filter image items by category
+ const filteredImageItems = selectedImageCategory === "all"
+ ? IMAGE_CATEGORIES.flatMap(cat => cat.items.map(item => ({ ...item, category: cat.id })))
+ : IMAGE_CATEGORIES.find(cat => cat.id === selectedImageCategory)?.items.map(item => ({ ...item, category: selectedImageCategory })) || [];
+
+ // Handler to add SVG element
+ const handleAddSvg = useCallback((item: { id: string; name: string; icon: string }, categoryId?: string) => {
+ const timestamp = Date.now();
+ const newElement: SvgElement = {
+ id: `svg-${timestamp}-${Math.random().toString(36).substring(2, 9)}`,
+ type: "svg",
+ category: categoryId || "shapes",
+ x: 50,
+ y: 50,
+ width: shapeSize,
+ height: shapeSize,
+ rotation: 0,
+ opacity: shapeOpacity / 100,
+ zIndex: timestamp,
+ svgId: item.id,
+ color: shapeColor,
+ };
+ onAddElement(newElement);
+ }, [shapeSize, shapeOpacity, shapeColor, onAddElement]);
+
+ const handleAddImage = useCallback((item: { id: string; name: string; imagePath: string }, categoryId?: string) => {
+ const timestamp = Date.now();
+ const newElement: ImageElement = {
+ id: `image-${timestamp}-${Math.random().toString(36).substring(2, 9)}`,
+ type: "image",
+ category: categoryId || "overlays",
+ x: 50,
+ y: 50,
+ width: imageSize,
+ height: imageSize,
+ rotation: 0,
+ opacity: imageOpacity / 100,
+ zIndex: timestamp,
+ imagePath: item.imagePath,
+ };
+ onAddElement(newElement);
+ }, [imageSize, imageOpacity, onAddElement]);
+
+ return (
+ <div className="p-4 flex flex-col gap-5">
+
+ {/* Header */}
+ <div className="flex items-center gap-2 text-white font-medium">
+ <Icon icon="iconoir:shapes" width="18" />
+ <span className="text-sm">Elementos</span>
+ </div>
+
+ {/* Toggle: Elementos / Texto */}
+ <div className="grid grid-cols-2 bg-[#09090B] squircle-element p-1 text-xs font-medium border border-white/5">
+ <button
+ className={`flex justify-center items-center gap-1.5 py-1.5 rounded transition ${mode === "elements" ? "bg-white/10 text-white" : "text-white/50 hover:text-white/80"}`}
+ onClick={() => setMode("elements")}
+ >
+ <Icon icon="iconoir:hexagon" width="14" />
+ Elementos
+ </button>
+ <button
+ className={`flex justify-center items-center gap-1.5 py-1.5 rounded transition ${mode === "text" ? "bg-white/10 text-white" : "text-white/50 hover:text-white/80"}`}
+ onClick={() => setMode("text")}
+ >
+ <Icon icon="iconoir:text-size" width="14" />
+ Texto
+ </button>
+ </div>
+
+ {/* ── ELEMENTOS (FIGURAS + IMÁGENES) ── */}
+ {mode === "elements" && (
+ <div className="flex flex-col gap-5 animate-in fade-in duration-150">
+
+ {/* Figuras destacadas (11 + botón "+") */}
+ <div className="space-y-2">
+ <div className="text-[10px] uppercase tracking-widest text-white/40 font-semibold">
+ Figuras
+ </div>
+ <div className="grid grid-cols-6 gap-1.5">
+ {/* 11 elementos destacados */}
+ {PINNED_SVG_ITEMS.map((item) => (
+ <button
+ key={item.id}
+ title={item.name}
+ onClick={() => handleAddSvg(item)}
+ className="aspect-square bg-white/3 hover:bg-white/8 border border-white/[0.07] hover:border-white/20 squircle-element flex items-center justify-center transition-all active:scale-90 group"
+ >
+ <Icon
+ icon={item.icon}
+ width="18"
+ className="text-white/50 group-hover:text-white transition-colors"
+ />
+ </button>
+ ))}
+
+ {/* Botón "+" para abrir popover */}
+ <Popover>
+ <PopoverTrigger asChild>
+ <button
+ className="aspect-square bg-blue-500/10 hover:bg-blue-500/20 border border-blue-500/40 hover:border-blue-500/60 squircle-element flex items-center justify-center transition-all active:scale-90 group"
+ title="Ver todas las figuras"
+ >
+ <Icon
+ icon="ph:plus-bold"
+ width="20"
+ className="text-blue-400 group-hover:text-blue-300 transition-colors"
+ />
+ </button>
+ </PopoverTrigger>
+
+ <PopoverContent
+ side="right"
+ align="start"
+ sideOffset={12}
+ className="w-[400px] p-0 border-0 shadow-2xl"
+ >
+ <div className="flex flex-col bg-[#111113] border border-white/10 rounded-xl overflow-hidden shadow-2xl max-h-[500px]">
+ {/* Header con categorías */}
+ <div className="flex items-center gap-2 px-4 py-3 border-b border-white/10 bg-white/2 flex-wrap">
+ <button
+ onClick={() => setSelectedSvgCategory("all")}
+ className={`flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-[10px] font-medium uppercase tracking-wider transition-all ${selectedSvgCategory === "all"
+ ? "bg-blue-500/20 text-blue-400 border border-blue-500/40"
+ : "bg-white/5 text-white/50 hover:text-white/70 border border-transparent hover:border-white/10"
+ }`}
+ >
+ <Icon icon="ph:grid-four-bold" width="12" />
+ <span>Todos</span>
+ </button>
+ {SVG_CATEGORIES.map((cat) => (
+ <button
+ key={cat.id}
+ onClick={() => setSelectedSvgCategory(cat.id)}
+ className={`flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-[10px] font-medium uppercase tracking-wider transition-all ${selectedSvgCategory === cat.id
+ ? "bg-blue-500/20 text-blue-400 border border-blue-500/40"
+ : "bg-white/5 text-white/50 hover:text-white/70 border border-transparent hover:border-white/10"
+ }`}
+ >
+ <span>{cat.title}</span>
+ </button>
+ ))}
+ <span className="ml-auto text-[10px] text-white/60">
+ {filteredSvgItems.length} figuras
+ </span>
+ </div>
+
+ {/* Grid de figuras */}
+ <div className="p-3 grid grid-cols-6 gap-2 overflow-y-auto custom-scrollbar">
+ {filteredSvgItems.map((item) => (
+ <button
+ key={`${item.category}-${item.id}`}
+ title={item.name}
+ onClick={() => handleAddSvg(item, item.category)}
+ className="aspect-square bg-white/3 hover:bg-white/8 border border-white/[0.07] hover:border-white/20 squircle-element flex items-center justify-center transition-all active:scale-90 group"
+ >
+ <Icon
+ icon={item.icon}
+ width="18"
+ className="text-white/50 group-hover:text-white transition-colors"
+ />
+ </button>
+ ))}
+ </div>
+ </div>
+ </PopoverContent>
+ </Popover>
+ </div>
+ </div>
+
+ {/* Imágenes destacadas (11 + botón "+") */}
+ <div className="space-y-2">
+ <div className="text-[10px] uppercase tracking-widest text-white/40 font-semibold">
+ Imágenes
+ </div>
+ <div className="grid grid-cols-6 gap-1.5">
+ {/* Elementos de imagen destacados */}
+ {PINNED_IMAGE_ITEMS.map((item) => (
+ <button
+ key={item.id}
+ title={item.name}
+ onClick={() => handleAddImage(item)}
+ className="aspect-square bg-white/3 hover:bg-white/8 border border-white/[0.07] hover:border-white/20 squircle-element flex items-center justify-center transition-all active:scale-90 overflow-hidden group"
+ >
+ <img
+ src={item.imagePath}
+ alt={item.name}
+ className="w-full h-full object-cover group-hover:scale-110 transition-transform"
+ />
+ </button>
+ ))}
+
+ {/* Relleno vacío para mantener grid de 6 columnas */}
+ {Array.from({ length: Math.max(0, 11 - PINNED_IMAGE_ITEMS.length) }).map((_, i) => (
+ <div key={`empty-${i}`} className="aspect-square" />
+ ))}
+
+ {/* Botón "+" para abrir popover de imágenes */}
+ <Popover>
+ <PopoverTrigger asChild>
+ <button
+ className="aspect-square bg-blue-500/10 hover:bg-blue-500/20 border border-blue-500/40 hover:border-blue-500/60 squircle-element flex items-center justify-center transition-all active:scale-90 group"
+ title="Ver todas las imágenes"
+ >
+ <Icon
+ icon="ph:plus-bold"
+ width="20"
+ className="text-blue-400 group-hover:text-blue-300 transition-colors"
+ />
+ </button>
+ </PopoverTrigger>
+
+ <PopoverContent
+ side="right"
+ align="start"
+ sideOffset={12}
+ className="w-[400px] p-0 border-0 shadow-2xl"
+ >
+ <div className="flex flex-col bg-[#111113] border border-white/10 rounded-xl overflow-hidden shadow-2xl max-h-[500px]">
+ {/* Header con categorías */}
+ <div className="flex items-center gap-2 px-4 py-3 border-b border-white/10 bg-white/2 flex-wrap">
+ <button
+ onClick={() => setSelectedImageCategory("all")}
+ className={`flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-[10px] font-medium uppercase tracking-wider transition-all ${selectedImageCategory === "all"
+ ? "bg-blue-500/20 text-blue-400 border border-blue-500/40"
+ : "bg-white/5 text-white/50 hover:text-white/70 border border-transparent hover:border-white/10"
+ }`}
+ >
+ <Icon icon="ph:grid-four-bold" width="12" />
+ <span>Todos</span>
+ </button>
+ {IMAGE_CATEGORIES.map((cat) => (
+ <button
+ key={cat.id}
+ onClick={() => setSelectedImageCategory(cat.id)}
+ className={`flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-[10px] font-medium uppercase tracking-wider transition-all ${selectedImageCategory === cat.id
+ ? "bg-blue-500/20 text-blue-400 border border-blue-500/40"
+ : "bg-white/5 text-white/50 hover:text-white/70 border border-transparent hover:border-white/10"
+ }`}
+ >
+ <span>{cat.title}</span>
+ </button>
+ ))}
+ <span className="ml-auto text-[10px] text-white/60">
+ {filteredImageItems.length} imágenes
+ </span>
+ </div>
+
+ {/* Grid de imágenes */}
+ <div className="p-3 grid grid-cols-4 gap-2 overflow-y-auto custom-scrollbar">
+ {filteredImageItems.length === 0 ? (
+ <div className="col-span-4 text-xs text-white/30 italic py-8 text-center">
+ No hay imágenes disponibles
+ </div>
+ ) : (
+ filteredImageItems.map((item) => (
+ <button
+ key={`${item.category}-${item.id}`}
+ title={item.name}
+ onClick={() => handleAddImage(item, item.category)}
+ className="aspect-square bg-white/3 hover:bg-white/8 border border-white/[0.07] hover:border-white/20 squircle-element flex items-center justify-center transition-all active:scale-90 overflow-hidden group"
+ >
+ <img
+ src={item.imagePath}
+ alt={item.name}
+ className="w-full h-full object-cover group-hover:scale-110 transition-transform"
+ />
+ </button>
+ ))
+ )}
+ </div>
+ </div>
+ </PopoverContent>
+ </Popover>
+ </div>
+ </div>
+
+ {/* Controles para elementos seleccionados */}
+ {selectedElement && (selectedElement.type === "svg" || selectedElement.type === "image") && (
+ <>
+ {/* Color Picker (solo para SVG) */}
+ {selectedElement.type === "svg" && (
+ <div className="space-y-2">
+ <div className="text-[10px] uppercase tracking-widest text-white/40 font-semibold">Color</div>
+ <div className="flex gap-2">
+ <div className="grid grid-cols-5 gap-1.5 flex-1">
+ {PRESET_COLORS.map((color) => (
+ <button
+ key={color}
+ onClick={() => setShapeColor(color)}
+ className={`aspect-square rounded border-2 transition-all ${shapeColor === color ? "border-white scale-110" : "border-white/20 hover:border-white/40"
+ }`}
+ style={{ backgroundColor: color }}
+ title={color}
+ />
+ ))}
+ </div>
+ <label className="relative cursor-pointer">
+ <input
+ type="color"
+ value={shapeColor}
+ onChange={(e) => setShapeColor(e.target.value)}
+ className="absolute inset-0 opacity-0 cursor-pointer"
+ />
+ <div
+ className="w-10 h-10 rounded border-2 border-white/20 hover:border-white/40 transition flex items-center justify-center"
+ style={{ backgroundColor: shapeColor }}
+ >
+ <Icon icon="mdi:eyedropper" width="18" className="text-white mix-blend-difference" />
+ </div>
+ </label>
+ </div>
+ </div>
+ )}
+
+ <div className="space-y-3">
+ <SliderControl
+ icon="mdi:resize"
+ label="Tamaño"
+ value={selectedElement.type === "svg" ? shapeSize : imageSize}
+ onChange={selectedElement.type === "svg" ? setShapeSize : setImageSize}
+ min={5}
+ max={60}
+ />
+ <SliderControl
+ icon="mdi:opacity"
+ label="Opacidad"
+ value={selectedElement.type === "svg" ? shapeOpacity : imageOpacity}
+ onChange={selectedElement.type === "svg" ? setShapeOpacity : setImageOpacity}
+ />
+ </div>
+
+ {/* Controles de jerarquía */}
+ <div className="space-y-2">
+ <div className="text-[10px] uppercase tracking-widest text-white/40 font-semibold">Jerarquía</div>
+ <div className="grid grid-cols-2 gap-2">
+ <button
+ onClick={() => onBringToFront?.(selectedElement.id)}
+ className="flex items-center justify-center gap-2 px-3 py-2 bg-white/5 hover:bg-white/10 border border-white/10 rounded-lg text-xs text-white/70 hover:text-white transition-all"
+ >
+ <Icon icon="ph:bring-to-front-bold" width="16" />
+ Traer al frente
+ </button>
+ <button
+ onClick={() => onSendToBack?.(selectedElement.id)}
+ className="flex items-center justify-center gap-2 px-3 py-2 bg-white/5 hover:bg-white/10 border border-white/10 rounded-lg text-xs text-white/70 hover:text-white transition-all"
+ >
+ <Icon icon="ph:send-to-back-bold" width="16" />
+ Enviar atrás
+ </button>
+ </div>
+ </div>
+
+ {/* Acciones del elemento */}
+ <div className="space-y-2">
+ <div className="text-[10px] uppercase tracking-widest text-white/40 font-semibold">Acciones</div>
+ <div className="grid grid-cols-2 gap-2">
+ <button
+ onClick={() => onDuplicateElement?.(selectedElement.id)}
+ className="flex items-center justify-center gap-2 px-3 py-2 bg-white/5 hover:bg-white/10 border border-white/10 rounded-lg text-xs text-white/70 hover:text-white transition-all"
+ >
+ <Icon icon="ph:copy-bold" width="16" />
+ Duplicar
+ </button>
+ <button
+ onClick={() => onDeleteElement?.(selectedElement.id)}
+ className="flex items-center justify-center gap-2 px-3 py-2 bg-red-500/10 hover:bg-red-500/20 border border-red-500/30 rounded-lg text-xs text-red-400 hover:text-red-300 transition-all"
+ >
+ <Icon icon="ph:trash-bold" width="16" />
+ Eliminar
+ </button>
+ </div>
+ </div>
+ </>
+ )}
+ </div>
+ )}
+
+ {/* ── TEXTO ── */}
+ {mode === "text" && (
+ <div className="flex flex-col gap-5 animate-in fade-in duration-150">
+ {/* Texto content */}
+ <div className="space-y-2">
+ <div className="text-[10px] uppercase tracking-widest text-white/40 font-semibold">Contenido</div>
+ <input
+ type="text"
+ value={textContent}
+ onChange={(e) => setTextContent(e.target.value)}
+ className="w-full bg-white/4 hover:bg-white/[0.07] transition border border-white/8 squircle-element px-3 py-2 text-sm text-white placeholder:text-white/30 outline-none focus:border-white/20"
+ placeholder="Escribe tu texto..."
+ />
+ </div>
+
+ {/* Presets para texto */}
+ <div className="space-y-2">
+ <div className="text-[10px] uppercase tracking-widest text-white/40 font-semibold">Presets</div>
+ <div className="grid grid-cols-2 gap-2">
+ {TEXT_PRESETS.map((p) => (
+ <button
+ key={p.label}
+ onClick={() => {
+ setTextFontSize(p.fontSize);
+ setTextFontWeight(p.weight);
+ }}
+ className="bg-white/3 hover:bg-white/[0.07] border border-white/[0.07] squircle-element px-3 py-2.5 text-left transition-all active:scale-[.98]"
+ >
+ <div className="text-[9px] text-white/40 font-semibold uppercase tracking-wider mb-1.5">
+ {p.label}
+ </div>
+ <div className={`text-white leading-none truncate`} style={{ fontSize: `${p.fontSize / 3}px`, fontWeight: p.weight }}>
+ {p.sample}
+ </div>
+ </button>
+ ))}
+ </div>
+ </div>
+
+ {/* Tamaño */}
+ <div className="flex flex-row justify-between gap-2 space-y-2">
+ <div className="space-y-2">
+ <div className="text-[10px] uppercase tracking-widest text-white/40 font-semibold">Tamaño</div>
+ <div className="flex items-center gap-2">
+ <input
+ type="number"
+ value={textFontSize || ""}
+ onChange={(e) => {
+ const val = e.target.value;
+ if (val === "") {
+ setTextFontSize(0);
+ return;
+ }
+ const num = parseInt(val, 10);
+ if (!isNaN(num)) {
+ setTextFontSize(Math.min(200, num));
+ }
+ }}
+ onBlur={() => {
+ setTextFontSize((prev) => Math.max(8, Math.min(200, prev || 32)));
+ }}
+ className="flex-1 bg-white/4 hover:bg-white/[0.07] transition border border-white/8 squircle-element px-3 py-2 text-sm text-white outline-none focus:border-white/20"
+ min={8}
+ max={200}
+ />
+ <span className="text-xs text-white/50 w-6">px</span>
+ </div>
+ </div>
+
+ <div className="space-y-2">
+ <div className="text-[10px] uppercase tracking-widest text-white/40 font-semibold">Fuente</div>
+ <Select value={textFontFamily} onValueChange={setTextFontFamily}>
+ <SelectTrigger
+ className="w-full bg-white/4 hover:bg-white/[0.07] transition border-white/8 squircle-element text-white/80"
+ style={{ fontFamily: textFontFamily }}
+ >
+ <SelectValue />
+ </SelectTrigger>
+ <SelectContent className="bg-[#1a1a1e] border-white/10">
+ {FONT_FAMILIES.map((f) => (
+ <SelectItem
+ key={f}
+ value={f}
+ className="text-white/80 hover:bg-white/10 cursor-pointer"
+ style={{ fontFamily: f }}
+ >
+ {f}
+ </SelectItem>
+ ))}
+ </SelectContent>
+ </Select>
+ </div>
+ </div>
+
+ {/* Color */}
+ <div className="space-y-2">
+ <div className="text-[10px] uppercase tracking-widest text-white/40 font-semibold">Color</div>
+ <div className="flex gap-2">
+ <div className="grid grid-cols-5 gap-1.5 flex-1">
+ {PRESET_COLORS.map((color) => (
+ <button
+ key={color}
+ onClick={() => setTextColor(color)}
+ className={`aspect-square rounded border-2 transition-all ${textColor === color ? "border-white scale-110" : "border-white/20 hover:border-white/40"
+ }`}
+ style={{ backgroundColor: color }}
+ title={color}
+ />
+ ))}
+ </div>
+ <label className="relative cursor-pointer">
+ <input
+ type="color"
+ value={textColor}
+ onChange={(e) => setTextColor(e.target.value)}
+ className="absolute inset-0 opacity-0 cursor-pointer"
+ />
+ <div
+ className="w-10 h-10 rounded border-2 border-white/20 hover:border-white/40 transition flex items-center justify-center"
+ style={{ backgroundColor: textColor }}
+ >
+ <Icon icon="mdi:eyedropper" width="18" className="text-white mix-blend-difference" />
+ </div>
+ </label>
+ </div>
+ </div>
+
+ {/* Peso */}
+ <div className="space-y-2">
+ <div className="text-[10px] uppercase tracking-widest text-white/40 font-semibold">Peso</div>
+ <div className="grid grid-cols-3 gap-2">
+ {FONT_WEIGHTS.map((w) => (
+ <button
+ key={w.key}
+ onClick={() => setTextFontWeight(w.key)}
+ className={`px-3 py-2 rounded-lg text-[10px] font-bold uppercase tracking-widest transition-all squircle-element ${textFontWeight === w.key ? "bg-white/10 text-white border border-white/15" : "bg-white/3 text-white/35 hover:text-white/70 border border-white/6"
+ }`}
+ >
+ {w.label}
+ </button>
+ ))}
+ </div>
+ </div>
+
+ {/* Opacidad */}
+ <div className="space-y-3">
+ <SliderControl icon="mdi:opacity" label="Opacidad" value={textOpacity} onChange={setTextOpacity} />
+ </div>
+
+ {/* Botón para agregar texto */}
+ <button
+ onClick={() => {
+ const timestamp = Date.now();
+ const newElement: TextElement = {
+ id: `text-${timestamp}-${Math.random().toString(36).substring(2, 9)}`,
+ type: "text",
+ x: 50,
+ y: 50,
+ width: 0, // Auto-width for text
+ height: 0, // Auto-height for text
+ rotation: 0,
+ opacity: textOpacity / 100,
+ zIndex: timestamp,
+ content: textContent,
+ fontSize: textFontSize,
+ color: textColor,
+ fontFamily: textFontFamily,
+ fontWeight: textFontWeight,
+ };
+ onAddElement(newElement);
+ }}
+ className="w-full flex items-center justify-center gap-2 py-3 bg-blue-500/20 hover:bg-blue-500/30 border border-blue-500/40 rounded-lg text-sm font-medium text-blue-300 transition-all active:scale-95"
+ >
+ <Icon icon="ph:plus-bold" width="16" />
+ Agregar texto
+ </button>
+
+ {/* Controles para texto seleccionado */}
+ {selectedElement && selectedElement.type === "text" && (
+ <>
+ {/* Controles de jerarquía */}
+ <div className="space-y-2">
+ <div className="text-[10px] uppercase tracking-widest text-white/40 font-semibold">Jerarquía</div>
+ <div className="grid grid-cols-2 gap-2">
+ <button
+ onClick={() => onBringToFront?.(selectedElement.id)}
+ className="flex items-center justify-center gap-2 px-3 py-2 bg-white/5 hover:bg-white/10 border border-white/10 rounded-lg text-xs text-white/70 hover:text-white transition-all"
+ >
+ <Icon icon="ph:bring-to-front-bold" width="16" />
+ Traer al frente
+ </button>
+ <button
+ onClick={() => onSendToBack?.(selectedElement.id)}
+ className="flex items-center justify-center gap-2 px-3 py-2 bg-white/5 hover:bg-white/10 border border-white/10 rounded-lg text-xs text-white/70 hover:text-white transition-all"
+ >
+ <Icon icon="ph:send-to-back-bold" width="16" />
+ Enviar atrás
+ </button>
+ </div>
+ </div>
+
+ {/* Acciones del elemento */}
+ <div className="space-y-2">
+ <div className="text-[10px] uppercase tracking-widest text-white/40 font-semibold">Acciones</div>
+ <div className="grid grid-cols-2 gap-2">
+ <button
+ onClick={() => onDuplicateElement?.(selectedElement.id)}
+ className="flex items-center justify-center gap-2 px-3 py-2 bg-white/5 hover:bg-white/10 border border-white/10 rounded-lg text-xs text-white/70 hover:text-white transition-all"
+ >
+ <Icon icon="ph:copy-bold" width="16" />
+ Duplicar
+ </button>
+ <button
+ onClick={() => onDeleteElement?.(selectedElement.id)}
+ className="flex items-center justify-center gap-2 px-3 py-2 bg-red-500/10 hover:bg-red-500/20 border border-red-500/30 rounded-lg text-xs text-red-400 hover:text-red-300 transition-all"
+ >
+ <Icon icon="ph:trash-bold" width="16" />
+ Eliminar
+ </button>
+ </div>
+ </div>
+ </>
+ )}
+ </div>
+ )}
+ </div>
+ );
+}
diff --git a/app/components/ui/editor/LabelSidebar.tsx b/app/components/ui/editor/LabelSidebar.tsx
new file mode 100644
index 0000000..02a93fe
--- /dev/null
+++ b/app/components/ui/editor/LabelSidebar.tsx
@@ -0,0 +1,13 @@
+export default function LabelSidebar() {
+ return (
+ <div className="absolute left-0 top-0 bottom-0 w-16 shrink-0 border-r border-white/5 flex flex-col bg-[#0D0D11] z-30">
+ <div className="h-7 border-b border-white/5" />
+ <div className="flex-1 flex items-center px-3">
+ <span className="text-[9px] uppercase font-semibold tracking-wider text-zinc-500">Video</span>
+ </div>
+ <div className="flex-1 flex items-center px-3 border-t border-white/5">
+ <span className="text-[9px] uppercase font-semibold tracking-wider text-zinc-500">Zoom</span>
+ </div>
+ </div>
+ );
+}
\ No newline at end of file
diff --git a/app/components/ui/editor/MockupMenu.tsx b/app/components/ui/editor/MockupMenu.tsx
new file mode 100644
index 0000000..e110093
--- /dev/null
+++ b/app/components/ui/editor/MockupMenu.tsx
@@ -0,0 +1,324 @@
+"use client";
+
+import { useState } from "react";
+import { Icon } from "@iconify/react";
+import { SliderControl } from "../SliderControl";
+import { Popover, PopoverContent, PopoverTrigger } from "@/components/ui/popover";
+import { MOCKUPS, MOCKUP_CATEGORIES } from "@/lib/mockup-data";
+import type { MockupCategory, MockupConfig, MockupFeatures } from "@/types/mockup.types";
+import { getMockupFeatures } from "@/types/mockup.types";
+
+const FRAME_COLORS_DARK = ["#1e1e1e", "#181818", "#252526", "#0d1117", "#1a1b26", "#282a36"];
+const FRAME_COLORS_LIGHT = ["#ffffff", "#f3f3f3", "#f6f8fa", "#fafafa", "#e8e8e8"];
+const FRAME_COLORS = [...FRAME_COLORS_DARK, ...FRAME_COLORS_LIGHT];
+
+interface MockupMenuProps {
+ mockupId?: string;
+ mockupConfig?: MockupConfig;
+ onMockupChange?: (mockupId: string) => void;
+ onMockupConfigChange?: (config: Partial<MockupConfig>) => void;
+}
+
+export function MockupMenu({
+ mockupId = "none",
+ mockupConfig,
+ onMockupChange,
+ onMockupConfigChange,
+}: MockupMenuProps) {
+ const [selectedCategory, setSelectedCategory] = useState<MockupCategory>("all");
+
+ const filteredMockups = selectedCategory === "all"
+ ? MOCKUPS
+ : MOCKUPS.filter(m => m.category === selectedCategory);
+
+ // Obtener el mockup actual y sus features
+ const currentMockup = MOCKUPS.find(m => m.id === mockupId);
+ const features: MockupFeatures = getMockupFeatures(currentMockup);
+
+ const handleMockupSelect = (id: string) => {
+ onMockupChange?.(id);
+
+ // Reset opacity to default when changing mockup to ensure slider works immediately
+ if (id !== mockupId) {
+ setTimeout(() => {
+ onMockupConfigChange?.({ headerOpacity: 100 });
+ }, 0);
+ }
+ };
+
+ const handleDarkModeChange = (isDark: boolean) => {
+ // Determinar si el color actual es claro u oscuro
+ const currentFrameColor = (mockupConfig?.frameColor || "#f6f6f6").toLowerCase();
+ const isCurrentColorDark = FRAME_COLORS_DARK.includes(currentFrameColor);
+
+ // Si el modo cambia, actualizar el frameColor a uno apropiado
+ let newFrameColor = currentFrameColor;
+ if (isDark && !isCurrentColorDark) {
+ // Cambiar a dark mode pero el color es claro -> usar color oscuro
+ newFrameColor = "#1e1e1e";
+ } else if (!isDark && isCurrentColorDark) {
+ // Cambiar a light mode pero el color es oscuro -> usar color claro
+ newFrameColor = "#f6f6f6";
+ }
+
+ onMockupConfigChange?.({ darkMode: isDark, frameColor: newFrameColor });
+ };
+
+ const handleFrameColorChange = (color: string) => {
+ onMockupConfigChange?.({ frameColor: color.toLowerCase() });
+ };
+
+ const handleUrlChange = (url: string) => {
+ onMockupConfigChange?.({ url });
+ };
+
+ const handleHeaderScaleChange = (headerScale: number) => {
+ onMockupConfigChange?.({ headerScale });
+ };
+
+ const handleHeaderOpacityChange = (headerOpacity: number) => {
+ onMockupConfigChange?.({ headerOpacity });
+ };
+
+ return (
+ <div className="p-4 flex flex-col gap-6">
+ <div className="flex items-center gap-2 text-white font-medium">
+ <Icon icon="hugeicons:browser" width="20" />
+ <span>Mockup</span>
+ </div>
+
+ <div className="space-y-2">
+ <p className="text-[10px] uppercase tracking-widest text-white/40 font-bold">Tipo de ventana</p>
+ <Popover>
+ <PopoverTrigger asChild>
+ <button
+ type="button"
+ className="group relative flex items-center gap-3 p-2 squircle-element border transition-all w-full h-[140px] bg-blue-500/10 border-blue-500/40 text-blue-300"
+ >
+ <div className="flex-1 flex flex-col gap-2 h-full justify-center overflow-hidden">
+ <div className="w-full squircle-element overflow-hidden bg-neutral-900 relative h-full">
+ {(() => {
+ const categoryConfig = MOCKUP_CATEGORIES.find(c => c.id === currentMockup?.category);
+ const bgUrl = categoryConfig?.bgUrl || "https://i.ibb.co/r2JQ3Gcy/minimal-02.jpg";
+
+ return (
+ <div
+ className="absolute inset-0 bg-cover bg-center bg-no-repeat transition-transform duration-500 group-hover:scale-110"
+ style={{ backgroundImage: `url('${bgUrl}')` }}
+ />
+ );
+ })()}
+
+ <div className="absolute inset-0 flex items-center justify-center pointer-events-none scale-95">
+ {currentMockup?.preview}
+ </div>
+ </div>
+
+ <div className="flex items-center gap-1.5">
+ <span className="text-[10px] font-bold tracking-wider">
+ {currentMockup?.name || "None"}
+ </span>
+ </div>
+ </div>
+
+ <div className="flex items-center justify-center px-2 border-l border-white/5 h-full group-hover:text-white transition-colors">
+ <Icon icon="uil:sort" />
+ </div>
+ </button>
+ </PopoverTrigger>
+
+ <PopoverContent
+ side="right"
+ align="start"
+ sideOffset={12}
+ className="w-[500px] p-0 border-0 shadow-2xl"
+ >
+ <div className="flex flex-col bg-[#111113] border border-white/10 rounded-xl overflow-hidden shadow-2xl max-h-[600px]">
+ {/* Header con categorías */}
+ <div className="flex items-center gap-2 px-4 py-3 border-b border-white/10 bg-white/2 flex-wrap">
+ {MOCKUP_CATEGORIES.map((cat) => (
+ <button
+ key={cat.id}
+ onClick={() => setSelectedCategory(cat.id)}
+ className={`flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-[10px] font-medium uppercase tracking-wider transition-all ${selectedCategory === cat.id
+ ? "bg-blue-500/20 text-blue-400 border border-blue-500/40"
+ : "bg-white/5 text-white/50 hover:text-white/70 border border-transparent hover:border-white/10"
+ }`}
+ >
+ <Icon icon={cat.icon} width="12" />
+ <span>{cat.label}</span>
+ </button>
+ ))}
+ <span className="ml-auto text-[10px] text-white/60">
+ {filteredMockups.length} mockups
+ </span>
+ </div>
+
+ {/* Grid de mockups */}
+ <div className="p-3 grid grid-cols-3 gap-2 overflow-y-auto custom-scrollbar">
+ {filteredMockups.map((mockup) => {
+ const categoryConfig = MOCKUP_CATEGORIES.find(c => c.id === mockup.category);
+ const isActive = mockupId === mockup.id;
+
+ return (
+ <button
+ key={mockup.id}
+ onClick={() => handleMockupSelect(mockup.id)}
+ className={`group relative w-full h-28 squircle-element border-2 overflow-hidden shadow-lg transition-all active:scale-95 ${isActive
+ ? "border-blue-500 ring-2 ring-blue-500/50"
+ : "border-neutral-800 hover:border-white/20"
+ }`}
+ >
+ <div
+ className="absolute inset-0 bg-cover bg-center bg-no-repeat transition-transform duration-500 group-hover:scale-105"
+ style={{
+ backgroundImage: `url('${categoryConfig?.bgUrl || "https://i.ibb.co/r2JQ3Gcy/minimal-02.jpg"}')`
+ }}
+ >
+ <div className="absolute inset-0 flex items-center justify-center pointer-events-none">
+ {mockup.preview}
+ </div>
+ </div>
+
+ <div className="absolute inset-0 group-hover:bg-black/5 transition-colors pointer-events-none" />
+
+ <div className="absolute bottom-0 left-0 bg-black/60 backdrop-blur-md border-t border-r border-white/10 px-2 py-1 text-[9px] text-white/80 font-bold tracking-tighter rounded-tr-md rounded-bl-lg z-30">
+ {mockup.name}
+ </div>
+
+ {isActive && (
+ <div className="absolute top-2 right-2 rounded-full shadow-[0_0_10px_rgba(96,165,250,0.8)] z-30">
+ <Icon icon="icon-park-solid:check-one" width="20" className="text-blue-500" />
+ </div>
+
+ )}
+ </button>
+
+ );
+ })}
+ </div>
+ </div>
+ </PopoverContent>
+ </Popover>
+ </div>
+
+ {/* Controles condicionales basados en features del mockup */}
+ {features.hasDarkMode && (
+ <div className="flex items-center justify-between">
+ <div className="flex items-center gap-2 text-[11px] text-white/55">
+ <Icon icon="ph:moon-bold" width="14" />
+ <span>Modo oscuro</span>
+ </div>
+ <div className="flex items-center gap-1 p-0.5 rounded-lg bg-white/[0.06] border border-white/[0.07]">
+ <button
+ onClick={() => handleDarkModeChange(true)}
+ className={`flex items-center gap-1 px-2 py-1 rounded-md text-[10px] transition-colors ${mockupConfig?.darkMode
+ ? "bg-[#09090B] border border-white/10 text-white/70"
+ : "text-white/30 hover:text-white/50"
+ }`}
+ >
+ <Icon icon="ph:moon-bold" width="10" />
+ Dark
+ </button>
+ <button
+ onClick={() => handleDarkModeChange(false)}
+ className={`flex items-center gap-1 px-2 py-1 rounded-md text-[10px] transition-colors ${!mockupConfig?.darkMode
+ ? "bg-[#09090B] border border-white/10 text-white/70"
+ : "text-white/30 hover:text-white/50"
+ }`}
+ >
+ <Icon icon="ph:sun-bold" width="10" />
+ Light
+ </button>
+ </div>
+ </div>
+ )}
+
+ {/* Color del marco */}
+ {features.hasFrameColor && (
+ <div className="space-y-2.5">
+ <p className="text-[10px] uppercase tracking-widest text-white/40 font-bold">
+ Color del marco
+ </p>
+
+ <div className="grid grid-cols-6 gap-2">
+ {FRAME_COLORS.map((color) => (
+ <button
+ key={color}
+ onClick={() => handleFrameColorChange(color)}
+ className={`aspect-square squircle-element cursor-pointer hover:ring-2 transition shadow-sm ring-white/60 border border-white/10 ${mockupConfig?.frameColor?.toLowerCase() === color.toLowerCase()
+ ? "ring-2 ring-white/90 shadow-lg shadow-white"
+ : "border-white/10 border-transparent hover:border-white/30"
+ }`}
+ style={{ backgroundColor: color }}
+ aria-label={`Seleccionar color ${color}`}
+ />
+ ))}
+
+ <label className="aspect-square squircle-element border border-dashed border-white/30 bg-white/5 flex items-center justify-center hover:bg-white/10 transition group cursor-pointer relative">
+ <Icon icon="mingcute:color-picker-fill" width="20" className="text-white/30" />
+ <input
+ type="color"
+ className="absolute inset-0 opacity-0 cursor-pointer w-full h-full"
+ onChange={(e) => handleFrameColorChange(e.target.value)}
+ value={mockupConfig?.frameColor || "#ffffff"}
+ />
+ </label>
+ </div>
+ </div>
+ )}
+
+ {/* URL de página */}
+ {features.hasUrl && (
+ <div className="space-y-2">
+ <p className="text-[10px] uppercase tracking-widest text-white/40 font-bold">URL de página</p>
+ <div className="flex items-center gap-2 px-3 py-2 rounded-lg bg-[#09090B] border border-white/[0.07] focus-within:border-blue-500/40 transition-colors">
+ <Icon icon="ph:globe-bold" width="13" className="text-white/25 shrink-0" />
+ <input
+ type="text"
+ value={mockupConfig?.url || ""}
+ onChange={(e) => handleUrlChange(e.target.value)}
+ placeholder="https://freeshot.dev"
+ className="flex-1 bg-transparent text-[11px] text-white/70 placeholder:text-white/20 outline-none font-mono"
+ />
+ </div>
+ </div>
+ )}
+
+ {/* Sliders */}
+ {(features.hasHeaderScale || features.hasHeaderOpacity) && (
+ <div className="space-y-3">
+ {features.hasHeaderScale && (
+ <SliderControl
+ label="Escala del encabezado"
+ value={mockupConfig?.headerScale ?? 70}
+ min={50}
+ max={100}
+ onChange={handleHeaderScaleChange}
+ />
+ )}
+ {features.hasHeaderOpacity && (
+ <SliderControl
+ label="Transparencia del encabezado"
+ value={mockupConfig?.headerOpacity ?? 100}
+ min={0}
+ max={100}
+ onChange={handleHeaderOpacityChange}
+ />
+ )}
+ </div>
+ )}
+
+ {/* Quitar mockup - solo mostrar si no es "none" */}
+ {mockupId !== "none" && (
+ <button
+ onClick={() => handleMockupSelect("none")}
+ className="w-full flex items-center justify-center gap-2 py-2 rounded-lg border border-white/[0.07] bg-white/[0.03] hover:bg-red-500/10 hover:border-red-500/30 text-white/40 hover:text-red-400 text-[11px] transition-all"
+ >
+ <Icon icon="ph:trash-bold" width="13" />
+ Quitar mockup
+ </button>
+ )}
+ </div>
+ );
+}
\ No newline at end of file
diff --git a/app/components/ui/editor/PlayerControls.tsx b/app/components/ui/editor/PlayerControls.tsx
new file mode 100644
index 0000000..f7ea1bc
--- /dev/null
+++ b/app/components/ui/editor/PlayerControls.tsx
@@ -0,0 +1,238 @@
+"use client";
+
+import { useCallback, useMemo, useEffect } from "react";
+import { Icon } from "@iconify/react";
+import { Button } from "@/components/ui/button";
+import { AspectRatioSelect } from "../AspectRatioSelect";
+import { formatTime } from "@/lib/video.utils";
+import type { PlayerControlsProps } from "@/types/player-control.types";
+
+const MIN_ZOOM = 1;
+const MAX_ZOOM = 10;
+const ZOOM_STEP = 1;
+
+// ─── Keyboard shortcuts ───────────────────────────────────────────────────────
+// Space / K → play / pause
+// ArrowLeft / J → skip backward 5s
+// ArrowRight / L → skip forward 5s
+// ArrowUp → zoom in timeline
+// ArrowDown → zoom out timeline
+// F → toggle fullscreen
+
+export function PlayerControls({
+ isPlaying,
+ currentTime,
+ videoDuration,
+ aspectRatio,
+ isFullscreen,
+ zoomLevel,
+ customAspectRatio,
+ onTogglePlayPause,
+ onSkipBackward,
+ onSkipForward,
+ onToggleFullscreen,
+ onAspectRatioChange,
+ onCustomAspectRatioChange,
+ onOpenCropper,
+ onZoomChange,
+}: PlayerControlsProps) {
+
+ const zoomPercentage = useMemo(() => {
+ return ((zoomLevel - MIN_ZOOM) / (MAX_ZOOM - MIN_ZOOM)) * 100;
+ }, [zoomLevel]);
+
+ const handleZoomIn = useCallback(() => {
+ onZoomChange(Math.min(MAX_ZOOM, Math.round(zoomLevel) + ZOOM_STEP));
+ }, [zoomLevel, onZoomChange]);
+
+ const handleZoomOut = useCallback(() => {
+ onZoomChange(Math.max(MIN_ZOOM, Math.round(zoomLevel) - ZOOM_STEP));
+ }, [zoomLevel, onZoomChange]);
+
+ const handleSliderChange = useCallback((e: React.ChangeEvent<HTMLInputElement>) => {
+ onZoomChange(Math.round(parseFloat(e.target.value)));
+ }, [onZoomChange]);
+
+ useEffect(() => {
+ const handleKeyDown = (e: KeyboardEvent) => {
+ const tag = (e.target as HTMLElement).tagName;
+ if (tag === "INPUT" || tag === "TEXTAREA" || tag === "SELECT") return;
+ if ((e.target as HTMLElement).isContentEditable) return;
+
+ switch (e.key) {
+ case " ":
+ case "k":
+ case "K":
+ e.preventDefault();
+ onTogglePlayPause();
+ break;
+ case "ArrowLeft":
+ case "j":
+ case "J":
+ e.preventDefault();
+ onSkipBackward();
+ break;
+ case "ArrowRight":
+ case "l":
+ case "L":
+ e.preventDefault();
+ onSkipForward();
+ break;
+ case "ArrowUp":
+ e.preventDefault();
+ onZoomChange(Math.min(MAX_ZOOM, Math.round(zoomLevel) + ZOOM_STEP));
+ break;
+ case "ArrowDown":
+ e.preventDefault();
+ onZoomChange(Math.max(MIN_ZOOM, Math.round(zoomLevel) - ZOOM_STEP));
+ break;
+ case "f":
+ case "F":
+ e.preventDefault();
+ onToggleFullscreen();
+ break;
+ }
+ };
+
+ window.addEventListener("keydown", handleKeyDown);
+ return () => window.removeEventListener("keydown", handleKeyDown);
+ }, [onTogglePlayPause, onSkipBackward, onSkipForward, onToggleFullscreen, onZoomChange, zoomLevel]);
+
+ return (
+ <div
+ className="h-13 shrink-0 border-t border-white/10 flex items-center justify-between px-5 bg-[#0D0D11]"
+ role="toolbar"
+ aria-label="Controles de reproducción"
+ >
+ {/* ── Left: fullscreen + zoom ── */}
+ <div className="flex items-center gap-3 text-xs">
+ <button
+ onClick={onToggleFullscreen}
+ className="text-zinc-500 hover:text-white transition-colors"
+ title={`${isFullscreen ? "Salir de pantalla completa" : "Pantalla completa"} (F)`}
+ aria-label={isFullscreen ? "Salir de pantalla completa" : "Pantalla completa"}
+ aria-pressed={isFullscreen}
+ >
+ <Icon icon={isFullscreen ? "typcn:arrow-minimise" : "typcn:arrow-maximise"} width="17" />
+ </button>
+
+ <div className="h-4 w-px bg-white/10" />
+
+ <div className="flex items-center gap-2" role="group" aria-label="Zoom del timeline">
+ <button
+ onClick={handleZoomOut}
+ disabled={zoomLevel <= MIN_ZOOM}
+ className="text-zinc-500 hover:text-white transition-colors disabled:opacity-50 disabled:cursor-not-allowed"
+ title="Alejar timeline (↓)"
+ aria-label="Reducir zoom del timeline"
+ >
+ <Icon icon="mdi:magnify-minus-outline" width="16" />
+ </button>
+
+ <div className="w-16 h-[3px] bg-white/10 rounded-full relative group cursor-pointer">
+ <div
+ className="absolute top-0 left-0 h-full bg-zinc-500 rounded-full transition-[width] duration-75"
+ style={{ width: `${zoomPercentage}%` }}
+ />
+ <div
+ className="absolute top-1/2 -translate-y-1/2 w-2.5 h-2.5 bg-white rounded-full shadow-md transition-[left] duration-75 group-hover:scale-110"
+ style={{ left: `calc(${zoomPercentage}% - 5px)` }}
+ />
+ <input
+ type="range"
+ min={MIN_ZOOM}
+ max={MAX_ZOOM}
+ step={1}
+ value={Math.round(zoomLevel)}
+ onChange={handleSliderChange}
+ className="absolute inset-0 w-full h-full opacity-0 cursor-pointer appearance-none"
+ aria-label={`Zoom del timeline: ${Math.round(zoomLevel)}×`}
+ aria-valuemin={MIN_ZOOM}
+ aria-valuemax={MAX_ZOOM}
+ aria-valuenow={Math.round(zoomLevel)}
+ />
+ </div>
+
+ <button
+ onClick={handleZoomIn}
+ disabled={zoomLevel >= MAX_ZOOM}
+ className="text-zinc-500 hover:text-white transition-colors disabled:opacity-50 disabled:cursor-not-allowed"
+ title="Acercar timeline (↑)"
+ aria-label="Aumentar zoom del timeline"
+ >
+ <Icon icon="mdi:magnify-plus-outline" width="16" />
+ </button>
+
+ <span className="text-[10px] font-mono text-zinc-500 min-w-[20px]" aria-live="polite" aria-atomic="true">
+ {Math.round(zoomLevel)}×
+ </span>
+ </div>
+ </div>
+
+ <div className="flex items-center gap-4" role="group" aria-label="Controles de transporte">
+ <span
+ className="text-[11px] font-mono text-zinc-500"
+ aria-label={`Tiempo actual: ${formatTime(currentTime)}`}
+ >
+ {formatTime(currentTime)}
+ </span>
+
+ <div className="flex items-center gap-2.5">
+ <button
+ className="text-zinc-500 hover:text-white transition-colors"
+ onClick={onSkipBackward}
+ title="Retroceder 5s (← o J)"
+ aria-label="Retroceder 5 segundos"
+ >
+ <Icon icon="mdi:rewind-5" width="20" />
+ </button>
+
+ <button
+ onClick={onTogglePlayPause}
+ className="w-9 h-9 flex items-center justify-center rounded-full bg-white/10 hover:bg-white/10 text-white transition border border-white/10"
+ title={`${isPlaying ? "Pausar" : "Reproducir"} (Espacio o K)`}
+ aria-label={isPlaying ? "Pausar" : "Reproducir"}
+ aria-pressed={isPlaying}
+ >
+ <Icon icon={isPlaying ? "mdi:pause" : "mdi:play"} width="20" />
+ </button>
+
+ <button
+ className="text-zinc-500 hover:text-white transition-colors"
+ onClick={onSkipForward}
+ title="Avanzar 5s (→ o L)"
+ aria-label="Avanzar 5 segundos"
+ >
+ <Icon icon="mdi:fast-forward-5" width="20" />
+ </button>
+ </div>
+
+ <span
+ className="text-[11px] font-mono text-zinc-500"
+ aria-label={`Duración total: ${formatTime(videoDuration)}`}
+ >
+ {formatTime(videoDuration)}
+ </span>
+ </div>
+
+ <div className="flex items-center gap-2">
+ <Button
+ variant="outline"
+ size="sm"
+ className="gap-1.5 px-3 py-1.5 text-xs"
+ onClick={onOpenCropper}
+ aria-label="Abrir recortador de video"
+ title="Abrir recortador de video"
+ >
+ <Icon icon="mdi:crop" width="14" /> Recortar
+ </Button>
+ <AspectRatioSelect
+ value={aspectRatio}
+ onChange={onAspectRatioChange}
+ customDimensions={customAspectRatio}
+ onCustomDimensionsChange={onCustomAspectRatioChange}
+ />
+ </div>
+ </div>
+ );
+}
\ No newline at end of file
diff --git a/app/components/ui/editor/Timeline.tsx b/app/components/ui/editor/Timeline.tsx
new file mode 100644
index 0000000..7c2f801
--- /dev/null
+++ b/app/components/ui/editor/Timeline.tsx
@@ -0,0 +1,516 @@
+"use client";
+
+import { useRef, useMemo, useCallback, useEffect, useState } from "react";
+import { motion, useMotionValue, useTransform, animate, PanInfo } from "framer-motion";
+import { formatTime, getZoomMultiplier } from "@/lib/video.utils";
+import { TIMELINE_LABEL_WIDTH, MIN_TRIM_DURATION } from "@/lib/constants";
+import type { TimelineProps } from "@/types/timeline.types";
+import LabelSidebar from "./LabelSidebar";
+import { ZoomFragmentTrackItem, findValidFragmentPosition } from "./ZoomFragmentTrackItem";
+import { Icon } from "@iconify/react";
+
+// Default duration for new zoom fragments (in seconds)
+const DEFAULT_ZOOM_FRAGMENT_DURATION = 2;
+
+export function Timeline({
+ videoDuration,
+ currentTime,
+ onSeek,
+ videoUrl = null,
+ zoomLevel,
+ isDraggingPlayhead = false,
+ onDragStart,
+ onDragEnd,
+ trimRange,
+ onTrimChange,
+ // Zoom props
+ zoomFragments = [],
+ selectedZoomFragmentId,
+ onSelectZoomFragment,
+ onAddZoomFragment,
+ onUpdateZoomFragment,
+ onActivateZoomTool,
+}: TimelineProps) {
+ const trackRef = useRef<HTMLDivElement>(null);
+ const containerRef = useRef<HTMLDivElement>(null);
+ const [trackWidth, setTrackWidth] = useState(0);
+ const [isDragging, setIsDragging] = useState(false);
+ const [isDraggingTrim, setIsDraggingTrim] = useState<'start' | 'end' | null>(null);
+ const [isDraggingZoomFragment, setIsDraggingZoomFragment] = useState(false);
+ const [isOverFragment, setIsOverFragment] = useState(false);
+
+ // Use requestAnimationFrame for smooth scrubbing synced with display refresh
+ const pendingSeekRef = useRef<number | null>(null);
+ const rafIdRef = useRef<number | null>(null);
+ const isSeekingRef = useRef<boolean>(false);
+ const [isHoveringZoomRow, setIsHoveringZoomRow] = useState(false);
+ const [ghostX, setGhostX] = useState(0);
+ const validDuration = Number.isFinite(videoDuration) && videoDuration > 0 ? videoDuration : 0;
+ // Trimmed duration for display
+ const trimmedDuration = useMemo(() => {
+ return trimRange.end - trimRange.start;
+ }, [trimRange]);
+
+ const TRACK_PADDING = 16;
+
+ const contentWidth = useMemo(() => {
+ if (trackWidth === 0) return 0;
+ const availableWidth = trackWidth - TRACK_PADDING;
+ return availableWidth * getZoomMultiplier(zoomLevel);
+ }, [trackWidth, zoomLevel]);
+
+ const playheadX = useMotionValue(0);
+ const trimStartX = useMotionValue(0);
+ const trimEndX = useMotionValue(0);
+
+ // Calculate trim handle positions
+ const trimStartPosition = useMemo(() => {
+ if (validDuration === 0 || contentWidth === 0) return 0;
+ return (trimRange.start / validDuration) * contentWidth;
+ }, [trimRange.start, validDuration, contentWidth]);
+
+ const trimEndPosition = useMemo(() => {
+ if (validDuration === 0 || contentWidth === 0) return contentWidth;
+ return (trimRange.end / validDuration) * contentWidth;
+ }, [trimRange.end, validDuration, contentWidth]);
+
+ // Update trim motion values when positions change
+ useEffect(() => {
+ if (!isDraggingTrim) {
+ trimStartX.set(trimStartPosition);
+ trimEndX.set(trimEndPosition);
+ }
+ }, [trimStartPosition, trimEndPosition, isDraggingTrim, trimStartX, trimEndX]);
+
+ const playheadPosition = useMemo(() => {
+ if (validDuration === 0 || contentWidth === 0) return 0;
+ return (currentTime / validDuration) * contentWidth;
+ }, [currentTime, validDuration, contentWidth]);
+
+ useEffect(() => {
+ const updateTrackWidth = () => {
+ if (containerRef.current) {
+ setTrackWidth(containerRef.current.clientWidth - TIMELINE_LABEL_WIDTH);
+ }
+ };
+ updateTrackWidth();
+ window.addEventListener("resize", updateTrackWidth);
+ return () => window.removeEventListener("resize", updateTrackWidth);
+ }, []);
+
+ useEffect(() => {
+ if (!isDragging && !isDraggingPlayhead) {
+ animate(playheadX, playheadPosition, {
+ type: "tween",
+ duration: 0.05,
+ ease: "linear"
+ });
+ }
+ }, [playheadPosition, isDragging, isDraggingPlayhead, playheadX]);
+
+ // Cleanup RAF on unmount
+ useEffect(() => {
+ return () => {
+ if (rafIdRef.current) {
+ cancelAnimationFrame(rafIdRef.current);
+ }
+ };
+ }, []);
+
+ const timeMarkers = useMemo(() => {
+ if (validDuration === 0) return [];
+ const baseInterval = validDuration / 6;
+ const adjustedInterval = baseInterval / Math.sqrt(getZoomMultiplier(zoomLevel));
+ const markerCount = Math.ceil(validDuration / adjustedInterval) + 1;
+ return Array.from({ length: Math.min(markerCount, 50) }, (_, i) => ({
+ time: adjustedInterval * i,
+ position: (adjustedInterval * i / validDuration) * contentWidth
+ })).filter(m => m.time <= validDuration);
+ }, [validDuration, zoomLevel, contentWidth]);
+
+ const handleTrackClick = useCallback((e: React.MouseEvent<HTMLDivElement>) => {
+ if (isDragging || isDraggingTrim) return;
+ const rect = e.currentTarget.getBoundingClientRect();
+ const scrollLeft = e.currentTarget.scrollLeft;
+ const clickX = e.clientX - rect.left + scrollLeft;
+ if (clickX >= 0 && contentWidth > 0) {
+ const percentage = Math.max(0, Math.min(1, clickX / contentWidth));
+ const newTime = percentage * validDuration;
+ // Clamp to trim range
+ const clampedTime = Math.max(trimRange.start, Math.min(trimRange.end, newTime));
+ onSeek(clampedTime);
+ }
+ }, [contentWidth, validDuration, onSeek, isDragging, isDraggingTrim, trimRange]);
+
+ const handleDrag = useCallback((_: MouseEvent | TouchEvent | PointerEvent, info: PanInfo) => {
+ if (contentWidth === 0 || validDuration === 0) return;
+ const newX = Math.max(trimStartPosition, Math.min(trimEndPosition, playheadX.get() + info.delta.x));
+ playheadX.set(newX);
+
+ const newTime = (newX / contentWidth) * validDuration;
+
+ // Store latest position for seek
+ pendingSeekRef.current = newTime;
+
+ // Use requestAnimationFrame for smooth, display-synced seeking
+ if (!isSeekingRef.current) {
+ isSeekingRef.current = true;
+ rafIdRef.current = requestAnimationFrame(() => {
+ if (pendingSeekRef.current !== null) {
+ onSeek(pendingSeekRef.current);
+ }
+ isSeekingRef.current = false;
+ });
+ }
+ }, [contentWidth, validDuration, onSeek, playheadX, trimStartPosition, trimEndPosition]);
+
+ const handleDragStart = useCallback(() => {
+ setIsDragging(true);
+ pendingSeekRef.current = null;
+ isSeekingRef.current = false;
+ onDragStart?.();
+ }, [onDragStart]);
+
+ const handleDragEnd = useCallback(() => {
+ // Cancel any pending RAF
+ if (rafIdRef.current) {
+ cancelAnimationFrame(rafIdRef.current);
+ rafIdRef.current = null;
+ }
+ // Always seek to final position on drag end (precise seek)
+ if (pendingSeekRef.current !== null) {
+ onSeek(pendingSeekRef.current);
+ pendingSeekRef.current = null;
+ }
+ isSeekingRef.current = false;
+ setIsDragging(false);
+ onDragEnd?.();
+ }, [onDragEnd, onSeek]);
+
+ // Trim handle drag handlers
+ const handleTrimStartDrag = useCallback((_: MouseEvent | TouchEvent | PointerEvent, info: PanInfo) => {
+ if (contentWidth === 0 || validDuration === 0) return;
+
+ const newX = Math.max(0, Math.min(trimEndX.get() - (MIN_TRIM_DURATION / validDuration) * contentWidth, trimStartX.get() + info.delta.x));
+ trimStartX.set(newX);
+
+ const newStartTime = (newX / contentWidth) * validDuration;
+ onTrimChange({ ...trimRange, start: Math.max(0, newStartTime) });
+
+ // If playhead is before new start, move it
+ if (currentTime < newStartTime) {
+ onSeek(newStartTime);
+ }
+ }, [contentWidth, validDuration, trimStartX, trimEndX, trimRange, onTrimChange, currentTime, onSeek]);
+
+ const handleTrimEndDrag = useCallback((_: MouseEvent | TouchEvent | PointerEvent, info: PanInfo) => {
+ if (contentWidth === 0 || validDuration === 0) return;
+
+ const newX = Math.min(contentWidth, Math.max(trimStartX.get() + (MIN_TRIM_DURATION / validDuration) * contentWidth, trimEndX.get() + info.delta.x));
+ trimEndX.set(newX);
+
+ const newEndTime = (newX / contentWidth) * validDuration;
+ onTrimChange({ ...trimRange, end: Math.min(validDuration, newEndTime) });
+
+ // If playhead is after new end, move it
+ if (currentTime > newEndTime) {
+ onSeek(newEndTime);
+ }
+ }, [contentWidth, validDuration, trimStartX, trimEndX, trimRange, onTrimChange, currentTime, onSeek]);
+
+ const handleTrimDragStart = useCallback((handle: 'start' | 'end') => {
+ setIsDraggingTrim(handle);
+ }, []);
+
+ const handleTrimDragEnd = useCallback(() => {
+ setIsDraggingTrim(null);
+ }, []);
+
+ // Auto-scroll when playhead near edge
+ useEffect(() => {
+ if (!containerRef.current || isDragging) return;
+ const scrollableArea = containerRef.current.querySelector('[data-scrollable]') as HTMLDivElement;
+ if (!scrollableArea) return;
+ const visibleWidth = scrollableArea.clientWidth;
+ const scrollLeft = scrollableArea.scrollLeft;
+ const margin = 100;
+ if (playheadPosition < scrollLeft + margin) {
+ scrollableArea.scrollTo({ left: Math.max(0, playheadPosition - margin), behavior: 'smooth' });
+ } else if (playheadPosition > scrollLeft + visibleWidth - margin) {
+ scrollableArea.scrollTo({ left: playheadPosition - visibleWidth + margin, behavior: 'smooth' });
+ }
+ }, [playheadPosition, isDragging]);
+
+ const clipLeft = trimStartPosition;
+ const clipWidth = trimEndPosition - trimStartPosition;
+
+ // Derive progress width directly from playheadX motion value for perfect sync
+ const progressWidth = useTransform(
+ playheadX,
+ (x) => {
+ if (clipWidth <= 0) return 0;
+ const clampedX = Math.max(trimStartPosition, Math.min(x, trimEndPosition));
+ return Math.max(0, clampedX - trimStartPosition);
+ }
+ );
+
+ return (
+ <div ref={containerRef} className="flex flex-col w-full">
+ <div className="h-38 shrink-0 bg-[#0D0D11] border-t border-white/10 flex flex-col font-mono text-[10px]">
+ <div className="flex-1 flex flex-col relative overflow-hidden">
+
+ {/* Label sidebar */}
+ <LabelSidebar />
+ {/* Scrollable content */}
+ <div
+ ref={trackRef}
+ data-scrollable
+ className="flex-1 flex flex-col overflow-x-auto overflow-y-hidden custom-scrollbar pl-18"
+ style={{ scrollBehavior: 'smooth' }}
+ >
+ <div style={{ width: contentWidth > 0 ? contentWidth : '100%' }} className="relative flex flex-col h-full">
+
+
+ {/* Playhead */}
+ <motion.div
+ className="absolute top-0 bottom-0 z-20 flex flex-col items-center cursor-ew-resize group select-none"
+ style={{ x: playheadX, translateX: "-50%" }}
+ drag="x"
+ dragConstraints={{ left: trimStartPosition, right: trimEndPosition }}
+ dragElastic={0}
+ dragMomentum={false}
+ onDrag={handleDrag}
+ onDragStart={handleDragStart}
+ onDragEnd={handleDragEnd}
+ >
+ <div className={`w-2.5 h-2.5 bg-blue-400 rotate-45 rounded-[2px] mt-[3px] shrink-0 shadow-[0_0_8px_rgba(96,165,250,0.6)] transition-colors ${isDragging ? 'bg-blue-300 scale-110' : 'group-hover:bg-blue-300'}`} />
+ <div className={`w-px flex-1 transition-colors ${isDragging ? 'bg-blue-300 w-0.5' : 'bg-blue-400 group-hover:bg-blue-300'}`} />
+ </motion.div>
+
+ {/* Ruler */}
+ <div
+ className="h-7 border-b border-white/10 relative shrink-0 cursor-pointer bg-zinc-900/40 select-none"
+ onClick={handleTrackClick}
+ >
+ <div
+ className="absolute inset-0 opacity-20 pointer-events-none"
+ style={{
+ backgroundImage: `linear-gradient(to right, #ccc 1px, transparent 1px)`,
+ backgroundSize: `${10 * zoomLevel}px 4px`,
+ backgroundRepeat: 'repeat-x'
+ }}
+ />
+
+ <div className="absolute inset-0 pointer-events-none">
+ {validDuration > 0 && timeMarkers.map((marker, i) => (
+ <div
+ key={i}
+ className="absolute top-0 h-full flex flex-col items-start"
+ style={{ left: marker.position }}
+ >
+ <div className="w-px h-3 bg-zinc-500/60" />
+
+ <span className={`text-[9px] font-mono text-zinc-500 mt-1 tabular-nums ${i === 0 ? 'ml-1' : i === timeMarkers.length - 1 ? '-ml-7' : '-ml-3'
+ }`}>
+ {formatTime(marker.time)}
+ </span>
+ </div>
+ ))}
+ </div>
+ </div>
+
+ {/* Tracks */}
+ <div className="flex-1 flex flex-col" onClick={handleTrackClick}>
+
+ {/* Video track */}
+ <div className="flex-1 flex items-center py-1.5 relative">
+ <div
+ className="h-full rounded-md flex items-center relative bg-[#0a1510] border border-white/5"
+ style={{ width: contentWidth > 0 ? contentWidth : '100%' }}
+ >
+ {trimRange.start > 0 && (
+ <div
+ className="absolute left-0 top-0 bottom-0 bg-black/60 rounded-l-md z-10"
+ style={{ width: trimStartPosition }}
+ />
+ )}
+ {trimRange.end < validDuration && (
+ <div
+ className="absolute right-0 top-0 bottom-0 bg-black/60 rounded-r-md z-10"
+ style={{ width: contentWidth - trimEndPosition }}
+ />
+ )}
+
+ {/* Active clip region */}
+ <div
+ className="absolute top-0 bottom-0 rounded-md border border-[#34A853]/40 bg-[#182e20] overflow-hidden"
+ style={{ left: clipLeft, width: Math.max(clipWidth, 20) }}
+ >
+ <div className="absolute inset-0 flex items-center overflow-hidden">
+ <div className="flex h-full w-full">
+ {videoUrl && Array.from({ length: Math.max(1, Math.ceil(getZoomMultiplier(zoomLevel) * 3)) }).map((_, i) => (
+ <div key={i} className="h-full flex-1 border-r border-[#34A853]/10 last:border-r-0 bg-linear-to-b from-[#34A853]/5 to-transparent" />
+ ))}
+ </div>
+ </div>
+
+ <motion.div
+ className="absolute top-0 bottom-0 -left-px border-r-2 border-[#4ade80]"
+ style={{
+ width: progressWidth,
+ background: `linear-gradient(to bottom, rgba(52, 168, 83, 0.9) 0%, rgba(34, 139, 34, 1) 50%, rgba(20, 80, 40, 1) 100%)`,
+ boxShadow: 'inset 0 1px 0 rgba(255,255,255,0.2)'
+ }}
+ />
+ <span className="flex items-center justify-center gap-2 text-emerald-400 text-[11px] font-medium ml-3 relative z-10 drop-shadow-sm h-full">
+ {videoUrl ? 'Media Clip' : 'No Media'} · {formatTime(trimmedDuration)}
+ </span>
+ </div>
+
+ {/* Trim Start Handle */}
+ <motion.div
+ className="absolute top-0 bottom-0 w-3 cursor-ew-resize z-20 group/trim flex items-center justify-center"
+ style={{ x: trimStartX, translateX: "-50%" }}
+ drag="x"
+ dragConstraints={{ left: 0, right: contentWidth }}
+ dragElastic={0}
+ dragMomentum={false}
+ onDrag={handleTrimStartDrag}
+ onDragStart={() => handleTrimDragStart('start')}
+ onDragEnd={handleTrimDragEnd}
+ >
+ <div className={`w-1.5 h-8 rounded-full transition-all ${isDraggingTrim === 'start' ? 'bg-[#4ade80] scale-110' : 'bg-[#34A853] group-hover/trim:bg-[#4ade80]'}`} />
+ </motion.div>
+
+ {/* Trim End Handle */}
+ <motion.div
+ className="absolute top-0 bottom-0 w-3 cursor-ew-resize z-20 group/trim flex items-center justify-center"
+ style={{ x: trimEndX, translateX: "-50%" }}
+ drag="x"
+ dragConstraints={{ left: 0, right: contentWidth }}
+ dragElastic={0}
+ dragMomentum={false}
+ onDrag={handleTrimEndDrag}
+ onDragStart={() => handleTrimDragStart('end')}
+ onDragEnd={handleTrimDragEnd}
+ >
+ <div className={`w-1.5 h-8 rounded-full transition-all ${isDraggingTrim === 'end' ? 'bg-[#4ade80] scale-110' : 'bg-[#34A853] group-hover/trim:bg-[#4ade80]'}`} />
+ </motion.div>
+ </div>
+ </div>
+
+ {/* Zoom track */}
+ <div
+ className="flex-1 flex items-center border-t border-white/5 relative"
+ onMouseMove={(e) => {
+ if (isDraggingZoomFragment) return;
+ const rect = e.currentTarget.getBoundingClientRect();
+ setGhostX(e.clientX - rect.left);
+ setIsHoveringZoomRow(true);
+ }}
+ onMouseLeave={() => setIsHoveringZoomRow(false)}
+ onClick={(e) => {
+ // Don't add if dragging or clicking on a fragment
+ if (isOverFragment || isDraggingZoomFragment || !onAddZoomFragment || validDuration === 0 || contentWidth === 0) return;
+ const rect = e.currentTarget.getBoundingClientRect();
+ const clickX = e.clientX - rect.left;
+ const clickTime = (clickX / contentWidth) * validDuration;
+
+ // Find valid position (avoiding overlaps)
+ const validPosition = findValidFragmentPosition(
+ clickTime,
+ DEFAULT_ZOOM_FRAGMENT_DURATION,
+ zoomFragments,
+ validDuration
+ );
+
+ if (validPosition) {
+ onAddZoomFragment(validPosition.startTime);
+ }
+ }}
+ >
+ <div
+ className="h-full flex items-center relative"
+ style={{ width: contentWidth > 0 ? contentWidth : '100%' }}
+ >
+ {/* Dynamic zoom fragments with drag/resize */}
+ {zoomFragments.map((fragment) => (
+ <ZoomFragmentTrackItem
+ key={fragment.id}
+ fragment={fragment}
+ isSelected={fragment.id === selectedZoomFragmentId}
+ contentWidth={contentWidth}
+ videoDuration={validDuration}
+ otherFragments={zoomFragments.filter(f => f.id !== fragment.id)}
+ onSelect={() => {
+ onSelectZoomFragment?.(fragment.id);
+ onActivateZoomTool?.();
+ }}
+ onUpdate={(updates) => onUpdateZoomFragment?.(fragment.id, updates)}
+ onDragStateChange={(dragging) => {
+ setIsDraggingZoomFragment(dragging);
+ if (dragging) {
+ setIsOverFragment(true);
+ setIsHoveringZoomRow(false);
+ }
+ }}
+ onMouseEnter={() => setIsOverFragment(true)}
+ onMouseLeave={() => setIsOverFragment(false)}
+ />
+ ))}
+
+ {/* Ghost fragment — follows cursor on hover (shows nearest valid position) */}
+ {isHoveringZoomRow && !isDraggingZoomFragment && !isOverFragment && (() => {
+ const hoverTime = (ghostX / contentWidth) * validDuration;
+ const validPosition = findValidFragmentPosition(
+ hoverTime,
+ DEFAULT_ZOOM_FRAGMENT_DURATION,
+ zoomFragments,
+ validDuration
+ );
+
+ if (!validPosition) {
+ // No space available at all
+ return (
+ <div
+ className="absolute top-[10%] h-[80%] w-32 pointer-events-none"
+ style={{ left: ghostX - 64 }}
+ >
+ <div className="w-full h-full rounded border border-dashed border-red-400/50 bg-red-500/10 flex flex-col items-center justify-center gap-0.5">
+ <span className="text-[8px] font-mono text-red-400/60">No espacio</span>
+ </div>
+ </div>
+ );
+ }
+
+ // Calculate ghost position based on valid position
+ const ghostLeft = (validPosition.startTime / validDuration) * contentWidth;
+ const ghostWidth = ((validPosition.endTime - validPosition.startTime) / validDuration) * contentWidth;
+
+ return (
+ <motion.div
+ className="absolute top-[10%] h-[80%] pointer-events-none"
+ initial={false}
+ animate={{
+ left: ghostLeft,
+ width: ghostWidth,
+ }}
+ transition={{ type: "spring", stiffness: 500, damping: 40 }}
+ >
+ <div className="w-full h-full rounded border border-dashed border-blue-400/50 bg-blue-500/10 flex flex-col items-center justify-center gap-0.5">
+ <Icon icon="qlementine-icons:zoom-12" width="12" height="12" className="text-blue-400"/>
+ <span className="text-[8px] font-mono text-blue-400/60">+ Zoom</span>
+ </div>
+ </motion.div>
+ );
+ })()}
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ );
+}
\ No newline at end of file
diff --git a/app/components/ui/editor/ToolsSidebar.tsx b/app/components/ui/editor/ToolsSidebar.tsx
new file mode 100644
index 0000000..5e9efb1
--- /dev/null
+++ b/app/components/ui/editor/ToolsSidebar.tsx
@@ -0,0 +1,125 @@
+"use client";
+
+import { Icon } from "@iconify/react";
+import { SidebarTool } from "../SidebarTool";
+import type { ToolsSidebarProps } from "@/types/tool-sidebar.types";
+import { useRef } from "react";
+
+interface ExtendedToolsSidebarProps extends ToolsSidebarProps {
+ onVideoUpload?: (file: File) => void;
+ isUploading?: boolean;
+}
+
+export function ToolsSidebar({
+ activeTool,
+ onToolChange,
+ onVideoUpload,
+ isUploading = false
+}: ExtendedToolsSidebarProps) {
+ const fileInputRef = useRef<HTMLInputElement>(null);
+
+ const handleFileChange = (e: React.ChangeEvent<HTMLInputElement>) => {
+ const file = e.target.files?.[0];
+ if (file && onVideoUpload) {
+ onVideoUpload(file);
+ // Reset input para permitir subir el mismo archivo nuevamente
+ e.target.value = '';
+ }
+ };
+
+ const handleUploadClick = () => {
+ fileInputRef.current?.click();
+ };
+ return (
+ <div className="relative shrink-0 bg-[#141417]" style={{ width: '90px' }}>
+ <aside
+ className="h-full absolute top-1/2 left-12 -translate-x-1/2 -translate-y-1/2 flex flex-col items-center justify-center gap-4 squircle-element border shadow-md shadow-white/20 border-white/10 z-40"
+ style={{
+ height: 'calc(100% - 2rem)',
+ maxHeight: '600px',
+ minWidth: '70px',
+ background: 'radial-gradient(circle at 50% 30%, #2a2a2a 0%, #131313 64%)',
+ }}
+ >
+ <div className="flex flex-col gap-4 w-full overflow-y-auto p-2">
+ <SidebarTool
+ icon="gravity-ui:picture"
+ label="Fondo"
+ isActive={activeTool === "screenshot"}
+ onClick={() => onToolChange("screenshot")}
+ />
+ <SidebarTool
+ label="Elementos"
+ isActive={activeTool === "elements"}
+ onClick={() => onToolChange("elements")}
+ icon={
+ <svg
+ width="24"
+ height="24"
+ viewBox="0 0 24 24"
+ fill="none"
+ xmlns="http://www.w3.org/2000/svg"
+ className="transition-colors duration-200"
+ >
+ <path
+ d="M11 13.5V21.5H3V13.5H11ZM9 15.5H5V19.5H9V15.5ZM12 2L17.5 11H6.5L12 2ZM12 5.86L10.08 9H13.92L12 5.86Z"
+ fill="currentColor"
+ stroke="currentColor"
+ strokeWidth="0.2"
+ />
+ <path fillRule="evenodd" clipRule="evenodd" d="M13.7667 13.8246C13.7667 13.6323 13.8431 13.4479 13.9791 13.312C14.115 13.176 14.2994 13.0996 14.4917 13.0996H20.2917C20.484 13.0996 20.6684 13.176 20.8044 13.312C20.9403 13.4479 21.0167 13.6323 21.0167 13.8246V14.7913C21.0167 14.9836 20.9403 15.168 20.8044 15.3039C20.6684 15.4399 20.484 15.5163 20.2917 15.5163C20.0994 15.5163 19.915 15.4399 19.7791 15.3039C19.6431 15.168 19.5667 14.9836 19.5667 14.7913V14.5496H18.1167V20.3496H18.3584C18.5507 20.3496 18.7351 20.426 18.871 20.562C19.007 20.6979 19.0834 20.8823 19.0834 21.0746C19.0834 21.2669 19.007 21.4513 18.871 21.5873C18.7351 21.7232 18.5507 21.7996 18.3584 21.7996H16.4251C16.2328 21.7996 16.0484 21.7232 15.9124 21.5873C15.7764 21.4513 15.7001 21.2669 15.7001 21.0746C15.7001 20.8823 15.7764 20.6979 15.9124 20.562C16.0484 20.426 16.2328 20.3496 16.4251 20.3496H16.6667V14.5496H15.2167V14.7913C15.2167 14.9836 15.1403 15.168 15.0044 15.3039C14.8684 15.4399 14.684 15.5163 14.4917 15.5163C14.2994 15.5163 14.115 15.4399 13.9791 15.3039C13.8431 15.168 13.7667 14.9836 13.7667 14.7913V13.8246Z" fill="currentColor" stroke="currentColor" strokeWidth="0.5"/>
+ </svg>
+ }
+ />
+ <SidebarTool
+ icon="mdi:volume-high"
+ label="Audio"
+ isActive={activeTool === "audio"}
+ onClick={() => onToolChange("audio")}
+ />
+ <SidebarTool
+ icon="iconamoon:zoom-in-bold"
+ label="Zoom"
+ isActive={activeTool === "zoom"}
+ onClick={() => onToolChange("zoom")}
+ />
+
+ <SidebarTool
+ icon="hugeicons:browser"
+ label="Mockup"
+ isActive={activeTool === "mockup"}
+ onClick={() => onToolChange("mockup")}
+ />
+
+ </div>
+ <div className="w-full p-2 border-t border-white/10 flex flex-col items-center shrink-0 group">
+ <button
+ onClick={handleUploadClick}
+ disabled={isUploading}
+ className="w-full flex flex-col items-center text-center justify-center gap-1.5 p-2 rounded-xl cursor-pointer hover:bg-blue-500/20 text-white/60 hover:text-blue-400 transition-all group disabled:opacity-50 disabled:cursor-not-allowed"
+ title={isUploading ? "Subiendo video..." : "Subir video personalizado"}
+ >
+ {isUploading ? (
+ <>
+ <Icon icon="svg-spinners:ring-resize" className="transition-transform duration-300" width="24" height="24" />
+ <span className="text-xs font-medium">Subiendo...</span>
+ </>
+ ) : (
+ <>
+ <Icon icon="mage:video-upload" className="transition-transform duration-300 group-hover:scale-105" width="24" height="24" />
+ <span className="text-xs font-medium">Subir video</span>
+ </>
+ )}
+ </button>
+ <input
+ ref={fileInputRef}
+ type="file"
+ accept="video/mp4,video/webm,video/quicktime,video/x-matroska"
+ className="hidden"
+ onChange={handleFileChange}
+ />
+ </div>
+ </aside>
+ </div>
+ );
+}
diff --git a/app/components/ui/editor/VideoCanvas.tsx b/app/components/ui/editor/VideoCanvas.tsx
new file mode 100644
index 0000000..23b13de
--- /dev/null
+++ b/app/components/ui/editor/VideoCanvas.tsx
@@ -0,0 +1,1062 @@
+"use client";
+
+import { useRef, useEffect, useImperativeHandle, forwardRef, useMemo, useState } from "react";
+import type { VideoCanvasHandle, VideoCanvasProps, VideoThumbnail } from "@/types";
+import type { ImageElement, SvgElement } from "@/types/canvas-elements.types";
+import { ASPECT_RATIO_DIMENSIONS } from "@/types";
+import { getWallpaperUrl } from "@/lib/wallpaper.utils";
+import { drawRoundedRect, drawRoundedRectBottomOnly, calculateScaledPadding, applyCanvasBackground, getAspectRatioStyle, getMaxWidth } from "@/lib/canvas.utils";
+import { drawMockupToCanvas } from "@/lib/mockup-canvas.utils";
+import { zoomLevelToFactor, speedToTransitionMs, ZOOM_EASING } from "@/types/zoom.types";
+import type { ZoomFragment } from "@/types/zoom.types";
+import PlaceholderEditor from "../PlaceholderEditor";
+import { MockupWrapper } from "./mockups/MockupWrapper";
+import { DEFAULT_MOCKUP_CONFIG } from "@/types/mockup.types";
+import { calculateSmoothZoom } from "@/lib/canvas.utils";
+import { SVG_COMPONENTS, getSvgDataUrl } from "@/components/canvas-svg";
+export type { VideoCanvasHandle, VideoCanvasProps };
+
+// Mockups con header → solo esquinas INFERIORES del video redondeadas
+const BOTTOM_ONLY_RADIUS_MOCKUPS = ["macos", "macos-glass", "macos-ghost", "macos-ghost-glass", "vscode", "macos-dark-ide", "macos-ghost-ide", "brave", "brave-glass", "browser-tab-glass", "chrome", "chrome-glass"];
+
+// Mockups glass → manejan su propia sombra, no necesitan el rect sólido previo
+const SELF_SHADOWING_MOCKUPS = ["macos-glass", "macos-ghost-glass", "glass-ui-container", "macos-container-glass", "brave-glass", "browser-tab-glass", "chrome-glass"];
+
+export const VideoCanvas = forwardRef<VideoCanvasHandle, VideoCanvasProps>(function VideoCanvas({
+ videoRef,
+ videoUrl,
+ padding,
+ roundedCorners,
+ shadows,
+ aspectRatio = "auto",
+ customAspectRatio,
+ cropArea,
+ backgroundTab = "wallpaper",
+ selectedWallpaper = -1,
+ backgroundBlur = 0,
+ selectedImageUrl = "",
+ backgroundColorCss,
+ onTimeUpdate,
+ onLoadedMetadata,
+ onEnded,
+ isScrubbing = false,
+ scrubTime = 0,
+ getThumbnailForTime,
+ zoomFragments = [],
+ currentTime = 0,
+ mockupId = "none",
+ mockupConfig,
+ onVideoUpload,
+ isUploading = false,
+ videoTransform = { rotation: 0, translateX: 0, translateY: 0 },
+ onVideoTransformChange,
+ canvasElements = [],
+ selectedElementId = null,
+ onElementUpdate,
+ onElementSelect,
+}, ref) {
+ const wallpaperUrl = getWallpaperUrl(selectedWallpaper);
+
+ // Get current thumbnail for scrubbing preview
+ const currentThumbnail = useMemo<VideoThumbnail | null>(() => {
+ if (!isScrubbing || !getThumbnailForTime) return null;
+ return getThumbnailForTime(scrubTime);
+ }, [isScrubbing, scrubTime, getThumbnailForTime]);
+
+ // Find active zoom fragment based on current time
+ const activeZoomFragment = useMemo<ZoomFragment | null>(() => {
+ if (!zoomFragments.length) return null;
+ return zoomFragments.find(f => currentTime >= f.startTime && currentTime <= f.endTime) || null;
+ }, [zoomFragments, currentTime]);
+
+ // Calculate zoom transform for visual preview
+ // Uses fragment's speed for entry, and a smooth default for exit
+ const zoomTransform = useMemo(() => {
+ // Default smooth exit transition (speed 3 = ~1.4s for nice smooth exit)
+ if (!activeZoomFragment) {
+ // Usar la velocidad del último fragmento que terminó
+ const lastFragment = zoomFragments
+ .filter(f => f.endTime < currentTime)
+ .sort((a, b) => b.endTime - a.endTime)[0];
+ const exitMs = lastFragment ? speedToTransitionMs(lastFragment.speed) : speedToTransitionMs(3);
+ return { scale: 1, translateX: 0, translateY: 0, transitionMs: exitMs };
+ }
+
+ const scale = zoomLevelToFactor(activeZoomFragment.zoomLevel);
+ // Calculate translation to keep focus point centered
+ const translateX = (50 - activeZoomFragment.focusX) * (scale - 1) * 2;
+ const translateY = (50 - activeZoomFragment.focusY) * (scale - 1) * 2;
+ const transitionMs = speedToTransitionMs(activeZoomFragment.speed);
+
+ return { scale, translateX, translateY, transitionMs };
+ }, [activeZoomFragment, zoomFragments, currentTime]);
+
+ // Determinar qué background mostrar basado en el tab activo
+ const shouldShowWallpaper = backgroundTab === "wallpaper" && selectedWallpaper >= 0;
+ const shouldShowCustomImage = backgroundTab === "image" && selectedImageUrl !== "";
+ const shouldShowCustomColor = backgroundTab === "color" && !!backgroundColorCss;
+
+ // Canvas para exportación (no visible, solo para renderizado)
+ const exportCanvasRef = useRef<HTMLCanvasElement>(null);
+ const wallpaperImageRef = useRef<HTMLImageElement | null>(null);
+ const customImageRef = useRef<HTMLImageElement | null>(null);
+
+ // Calcular dimensiones de exportación según aspect ratio
+ const exportDimensions = useMemo(() => {
+ // For auto and custom, use the actual video dimensions if available
+ if ((aspectRatio === "auto" || aspectRatio === "custom") && customAspectRatio) {
+ return { width: customAspectRatio.width, height: customAspectRatio.height };
+ }
+ // Otherwise use standard dimensions
+ const dims = ASPECT_RATIO_DIMENSIONS[aspectRatio];
+ return dims || { width: 1920, height: 1080 };
+ }, [aspectRatio, customAspectRatio]);
+
+ // On-canvas controls state
+ const [isVideoHovered, setIsVideoHovered] = useState(false);
+ const [isDraggingVideo, setIsDraggingVideo] = useState(false);
+ const [isDraggingRotation, setIsDraggingRotation] = useState(false);
+ const dragStartPos = useRef({ x: 0, y: 0, initialRotation: 0, initialTranslateX: 0, initialTranslateY: 0 });
+ const lastAngleRef = useRef<number | null>(null);
+ const videoContainerRef = useRef<HTMLDivElement>(null);
+
+ // Canvas elements controls state
+ const [hoveredElementId, setHoveredElementId] = useState<string | null>(null);
+ const [isDraggingElement, setIsDraggingElement] = useState(false);
+ const [isDraggingElementRotation, setIsDraggingElementRotation] = useState(false);
+ const elementDragStart = useRef({ x: 0, y: 0, initialX: 0, initialY: 0, initialRotation: 0 });
+ const canvasContainerRef = useRef<HTMLDivElement>(null);
+
+ // Canvas element images cache (only for actual images, not SVGs)
+ const elementImagesRef = useRef<Map<string, HTMLImageElement>>(new Map());
+
+ // Actualizar canvas dimensions cuando cambia el aspect ratio
+ useEffect(() => {
+ const canvas = exportCanvasRef.current;
+ if (canvas) {
+ canvas.width = exportDimensions.width;
+ canvas.height = exportDimensions.height;
+ }
+ }, [exportDimensions]);
+
+ // Precargar imagen de wallpaper para el canvas
+ useEffect(() => {
+ if (shouldShowWallpaper && wallpaperUrl) {
+ const img = new Image();
+ img.crossOrigin = "anonymous";
+ img.src = wallpaperUrl;
+ img.onload = () => {
+ wallpaperImageRef.current = img;
+ };
+ } else {
+ wallpaperImageRef.current = null;
+ }
+ }, [shouldShowWallpaper, wallpaperUrl]);
+
+ // Precargar imagen custom para el canvas
+ useEffect(() => {
+ if (shouldShowCustomImage && selectedImageUrl) {
+ const img = new Image();
+ img.src = selectedImageUrl;
+ img.onload = () => {
+ customImageRef.current = img;
+ };
+ } else {
+ customImageRef.current = null;
+ }
+ }, [shouldShowCustomImage, selectedImageUrl]);
+
+ // Preload canvas element images (only for image elements, not SVGs)
+ useEffect(() => {
+ const cache = elementImagesRef.current;
+ const loadedPaths = new Set(cache.keys());
+ const currentPaths = new Set(
+ canvasElements
+ .filter((el): el is ImageElement => el.type === "image")
+ .map(el => el.imagePath)
+ );
+
+ // Remove images not in use anymore
+ for (const path of loadedPaths) {
+ if (!currentPaths.has(path)) {
+ cache.delete(path);
+ }
+ }
+
+ // Load new images
+ for (const element of canvasElements) {
+ if (element.type === "image") {
+ const imageElement = element as ImageElement;
+ if (!cache.has(imageElement.imagePath)) {
+ const img = new Image();
+ img.src = imageElement.imagePath;
+ img.onload = () => cache.set(imageElement.imagePath, img);
+ }
+ }
+ }
+ }, [canvasElements]);
+
+ useEffect(() => {
+ if (!isDraggingVideo && !isDraggingRotation) return;
+
+ const handleMouseMove = (e: MouseEvent) => {
+ if (!onVideoTransformChange) return;
+
+ if (isDraggingRotation) {
+ const container = videoContainerRef.current;
+ if (!container) return;
+
+ const rect = container.getBoundingClientRect();
+ const centerX = rect.left + rect.width / 2;
+ const centerY = rect.top + rect.height / 2;
+
+ const rawAngle = Math.atan2(e.clientY - centerY, e.clientX - centerX) * (180 / Math.PI) + 90;
+
+ if (lastAngleRef.current === null) {
+ lastAngleRef.current = rawAngle;
+ }
+ let delta = rawAngle - lastAngleRef.current;
+ if (delta > 180) delta -= 360;
+ if (delta < -180) delta += 360;
+ lastAngleRef.current = rawAngle;
+
+ onVideoTransformChange({
+ ...videoTransform,
+ rotation: videoTransform.rotation + delta,
+ });
+ } else if (isDraggingVideo) {
+ const deltaX = e.clientX - dragStartPos.current.x;
+ const deltaY = e.clientY - dragStartPos.current.y;
+
+ const container = videoContainerRef.current;
+ if (!container) return;
+
+ const rect = container.getBoundingClientRect();
+ const percentX = (deltaX / rect.width) * 100;
+ const percentY = (deltaY / rect.height) * 100;
+
+ onVideoTransformChange({
+ ...videoTransform,
+ translateX: dragStartPos.current.initialTranslateX + percentX,
+ translateY: dragStartPos.current.initialTranslateY + percentY,
+ });
+ }
+ };
+
+ const handleMouseUp = () => {
+ setIsDraggingVideo(false);
+ setIsDraggingRotation(false);
+ lastAngleRef.current = null;
+ };
+
+ window.addEventListener("mousemove", handleMouseMove);
+ window.addEventListener("mouseup", handleMouseUp);
+
+ return () => {
+ window.removeEventListener("mousemove", handleMouseMove);
+ window.removeEventListener("mouseup", handleMouseUp);
+ };
+ }, [isDraggingVideo, isDraggingRotation, videoTransform, onVideoTransformChange]);
+
+ // Canvas elements drag & drop handlers
+ useEffect(() => {
+ if (!isDraggingElement && !isDraggingElementRotation) return;
+
+ const handleMouseMove = (e: MouseEvent) => {
+ if (!selectedElementId || !onElementUpdate) return;
+
+ const selectedElement = canvasElements.find(el => el.id === selectedElementId);
+ if (!selectedElement) return;
+
+ if (isDraggingElementRotation) {
+ const container = canvasContainerRef.current;
+ if (!container) return;
+
+ const rect = container.getBoundingClientRect();
+ const centerX = rect.left + rect.width * (selectedElement.x / 100);
+ const centerY = rect.top + rect.height * (selectedElement.y / 100);
+
+ const currentAngle = Math.atan2(e.clientY - centerY, e.clientX - centerX) * (180 / Math.PI);
+ const startAngle = Math.atan2(
+ elementDragStart.current.y - centerY,
+ elementDragStart.current.x - centerX
+ ) * (180 / Math.PI);
+
+ const deltaAngle = currentAngle - startAngle;
+ const newRotation = elementDragStart.current.initialRotation + deltaAngle;
+
+ onElementUpdate(selectedElementId, { rotation: newRotation });
+ } else if (isDraggingElement) {
+ const container = canvasContainerRef.current;
+ if (!container) return;
+
+ const rect = container.getBoundingClientRect();
+ const deltaX = e.clientX - elementDragStart.current.x;
+ const deltaY = e.clientY - elementDragStart.current.y;
+
+ const percentX = (deltaX / rect.width) * 100;
+ const percentY = (deltaY / rect.height) * 100;
+
+ onElementUpdate(selectedElementId, {
+ x: Math.max(0, Math.min(100, elementDragStart.current.initialX + percentX)),
+ y: Math.max(0, Math.min(100, elementDragStart.current.initialY + percentY)),
+ });
+ }
+ };
+
+ const handleMouseUp = () => {
+ setIsDraggingElement(false);
+ setIsDraggingElementRotation(false);
+ };
+
+ window.addEventListener("mousemove", handleMouseMove);
+ window.addEventListener("mouseup", handleMouseUp);
+
+ return () => {
+ window.removeEventListener("mousemove", handleMouseMove);
+ window.removeEventListener("mouseup", handleMouseUp);
+ };
+ }, [isDraggingElement, isDraggingElementRotation, selectedElementId, canvasElements, onElementUpdate]);
+
+ // Función para dibujar un frame en el canvas de exportación
+ const drawFrame = async () => {
+ const canvas = exportCanvasRef.current;
+ const ctx = canvas?.getContext('2d');
+ const video = videoRef.current;
+
+ if (!canvas || !ctx || !video) return;
+
+ const canvasWidth = canvas.width;
+ const canvasHeight = canvas.height;
+
+ // Calcular propiedades escaladas
+ const paddingPercent = padding * 0.5 / 100;
+ const scaledPaddingX = calculateScaledPadding(canvasWidth, paddingPercent);
+ const scaledPaddingY = calculateScaledPadding(canvasHeight, paddingPercent);
+ const scaledRadius = roundedCorners * (canvasWidth / 896);
+ const scaledShadowBlur = shadows * (canvasWidth / 896) * 0.8;
+
+ // Reset canvas transformation matrix and clear
+ ctx.setTransform(1, 0, 0, 1, 0, 0);
+ ctx.clearRect(0, 0, canvasWidth, canvasHeight);
+
+ const frameTime = video.currentTime;
+ const zoomState = calculateSmoothZoom(frameTime, zoomFragments);
+
+ ctx.save();
+
+ // Apply zoom transform to entire canvas (affects everything including background)
+ if (zoomState.scale !== 1) {
+ const centerX = canvasWidth / 2;
+ const centerY = canvasHeight / 2;
+
+ // Calculate focus point offset (relative to entire canvas)
+ const focusOffsetX = (50 - zoomState.focusX) / 100 * canvasWidth * (zoomState.scale - 1) * 2;
+ const focusOffsetY = (50 - zoomState.focusY) / 100 * canvasHeight * (zoomState.scale - 1) * 2;
+
+ ctx.translate(centerX + focusOffsetX, centerY + focusOffsetY);
+ ctx.scale(zoomState.scale, zoomState.scale);
+ ctx.translate(-centerX, -centerY);
+ }
+
+ const backgroundImage = shouldShowCustomImage ? customImageRef.current : (shouldShowWallpaper ? wallpaperImageRef.current : null);
+
+ // 1. Dibujar fondo
+ if (shouldShowCustomColor && backgroundColorCss) {
+ applyCanvasBackground(ctx, backgroundColorCss, canvasWidth, canvasHeight);
+ } else if (backgroundImage) {
+ ctx.save();
+
+ if (backgroundBlur > 0) {
+ ctx.filter = `blur(${backgroundBlur * 0.8}px)`;
+ const overflow = backgroundBlur * 2;
+ ctx.drawImage(
+ backgroundImage,
+ -overflow,
+ -overflow,
+ canvasWidth + overflow * 2,
+ canvasHeight + overflow * 2
+ );
+ } else {
+ ctx.drawImage(backgroundImage, 0, 0, canvasWidth, canvasHeight);
+ }
+
+ ctx.restore();
+ }
+
+ // 2. Calcular área disponible para el mockup/video
+ const availableWidth = canvasWidth - scaledPaddingX * 2;
+ const availableHeight = canvasHeight - scaledPaddingY * 2;
+
+ // Obtener las dimensiones reales del video (considerando crop si existe)
+ let videoSourceWidth = video.videoWidth;
+ let videoSourceHeight = video.videoHeight;
+
+ if (cropArea && (cropArea.width < 100 || cropArea.height < 100)) {
+ videoSourceWidth = (cropArea.width / 100) * video.videoWidth;
+ videoSourceHeight = (cropArea.height / 100) * video.videoHeight;
+ }
+
+ // Calcular aspect ratio del video fuente
+ const videoAspectRatio = videoSourceWidth / videoSourceHeight;
+ const availableAspectRatio = availableWidth / availableHeight;
+
+ // Calcular dimensiones del contenedor (mockup o video directo)
+ let containerWidth: number;
+ let containerHeight: number;
+
+ if (videoAspectRatio > availableAspectRatio) {
+ containerWidth = availableWidth;
+ containerHeight = availableWidth / videoAspectRatio;
+ } else {
+ containerHeight = availableHeight;
+ containerWidth = availableHeight * videoAspectRatio;
+ }
+
+ // Centrar el contenedor en el área disponible
+ const containerX = scaledPaddingX + (availableWidth - containerWidth) / 2;
+ const containerY = scaledPaddingY + (availableHeight - containerHeight) / 2;
+
+ ctx.save();
+
+ // Determinar el centro real del contenedor para rotar sobre su propio eje
+ const centerX = containerX + containerWidth / 2;
+ const centerY = containerY + containerHeight / 2;
+
+ // Calcular traslación en píxeles basada en el tamaño del contenedor
+ const translateXPx = (videoTransform.translateX / 100) * containerWidth;
+ const translateYPx = (videoTransform.translateY / 100) * containerHeight;
+
+ // Mover el origen al centro, trasladar, rotar, y devolver el origen a la esquina
+ ctx.translate(centerX + translateXPx, centerY + translateYPx);
+ ctx.rotate((videoTransform.rotation * Math.PI) / 180);
+ ctx.translate(-centerX, -centerY);
+
+ // 3. Dibujar sombra del contenedor (ahora rotará y se moverá con todo lo demás)
+ if (shadows > 0 && !SELF_SHADOWING_MOCKUPS.includes(mockupId)) {
+ ctx.save();
+ ctx.shadowColor = 'rgba(0, 0, 0, 0.5)';
+ ctx.shadowBlur = scaledShadowBlur;
+ ctx.shadowOffsetY = scaledShadowBlur * 0.3;
+
+ ctx.fillStyle = 'black';
+ drawRoundedRect(ctx, containerX, containerY, containerWidth, containerHeight, scaledRadius);
+ ctx.fill();
+ ctx.restore();
+ }
+
+ // 4. Determinar si hay mockup activo y dibujarlo
+ const hasMockup = mockupId && mockupId !== "none";
+ const currentMockupConfig = mockupConfig || DEFAULT_MOCKUP_CONFIG;
+
+ let videoX = containerX;
+ let videoY = containerY;
+ let videoWidth = containerWidth;
+ let videoHeight = containerHeight;
+ let videoRadius = scaledRadius;
+
+ if (hasMockup) {
+ const mockupShadowBlur = SELF_SHADOWING_MOCKUPS.includes(mockupId) ? scaledShadowBlur : 0;
+ const mockupResult = drawMockupToCanvas(
+ ctx,
+ mockupId,
+ currentMockupConfig,
+ containerX,
+ containerY,
+ containerWidth,
+ containerHeight,
+ scaledRadius,
+ mockupShadowBlur
+ );
+
+ videoX = mockupResult.contentX;
+ videoY = mockupResult.contentY;
+ videoWidth = mockupResult.contentWidth;
+ videoHeight = mockupResult.contentHeight;
+ videoRadius = mockupId === "iphone-slim" ? scaledRadius * 1.8 : scaledRadius;
+ }
+
+ // 5. Dibujar video con esquinas redondeadas
+ ctx.save();
+ const needsBottomOnlyRadius = hasMockup && BOTTOM_ONLY_RADIUS_MOCKUPS.includes(mockupId);
+
+ if (videoRadius > 0) {
+ if (needsBottomOnlyRadius) {
+ drawRoundedRectBottomOnly(ctx, videoX, videoY, videoWidth, videoHeight, videoRadius);
+ } else {
+ drawRoundedRect(ctx, videoX, videoY, videoWidth, videoHeight, videoRadius);
+ }
+ ctx.clip();
+ } else {
+ ctx.beginPath();
+ ctx.rect(videoX, videoY, videoWidth, videoHeight);
+ ctx.clip();
+ }
+
+ // Aplicar crop si existe
+ if (cropArea && (cropArea.width < 100 || cropArea.height < 100 || cropArea.x > 0 || cropArea.y > 0)) {
+ const sourceX = (cropArea.x / 100) * video.videoWidth;
+ const sourceY = (cropArea.y / 100) * video.videoHeight;
+ const sourceWidth = (cropArea.width / 100) * video.videoWidth;
+ const sourceHeight = (cropArea.height / 100) * video.videoHeight;
+
+ ctx.drawImage(video, sourceX, sourceY, sourceWidth, sourceHeight, videoX, videoY, videoWidth, videoHeight);
+ } else {
+ ctx.drawImage(video, videoX, videoY, videoWidth, videoHeight);
+ }
+
+ ctx.restore();
+ ctx.restore();
+
+ // 6. Render canvas elements (SVG, images, text)
+ // Elements are rendered after video but before zoom restore, so they're affected by zoom
+ const sortedElements = [...canvasElements].sort((a, b) => a.zIndex - b.zIndex);
+
+ for (const element of sortedElements) {
+ if (element.type === "svg") {
+ const svgElement = element as SvgElement;
+ // Get SVG as data URL
+ const svgDataUrl = getSvgDataUrl(svgElement.svgId, svgElement.color || "#FFFFFF");
+ if (!svgDataUrl) continue;
+
+ // Create image from SVG data URL
+ const svgImage = new Image();
+ svgImage.src = svgDataUrl;
+
+ // Wait for image to load
+ await new Promise<void>((resolve) => {
+ if (svgImage.complete) {
+ resolve();
+ } else {
+ svgImage.onload = () => resolve();
+ svgImage.onerror = () => resolve(); // Continue even if load fails
+ }
+ });
+
+ ctx.save();
+
+ // Calculate element position and size in pixels (width and height are stored as percentage of canvas width for aspect ratio)
+ const elemX = (svgElement.x / 100) * canvasWidth;
+ const elemY = (svgElement.y / 100) * canvasHeight;
+ const elemWidth = (svgElement.width / 100) * canvasWidth;
+ const elemHeight = (svgElement.height / 100) * canvasWidth; // Use canvasWidth for square aspect ratio
+
+ // Apply transform: translate to center, rotate, translate back
+ ctx.translate(elemX, elemY);
+ ctx.rotate((svgElement.rotation * Math.PI) / 180);
+ ctx.globalAlpha = svgElement.opacity;
+
+ // Draw the SVG
+ ctx.drawImage(
+ svgImage,
+ -elemWidth / 2,
+ -elemHeight / 2,
+ elemWidth,
+ elemHeight
+ );
+
+ ctx.restore();
+ } else if (element.type === "image") {
+ const img = elementImagesRef.current.get(element.imagePath);
+ if (!img) continue;
+
+ ctx.save();
+
+ // Calculate element position and size in pixels (width and height are stored as percentage of canvas width for aspect ratio)
+ const elemX = (element.x / 100) * canvasWidth;
+ const elemY = (element.y / 100) * canvasHeight;
+ const elemWidth = (element.width / 100) * canvasWidth;
+ const elemHeight = (element.height / 100) * canvasWidth; // Use canvasWidth for square aspect ratio
+
+ ctx.translate(elemX, elemY);
+ ctx.rotate((element.rotation * Math.PI) / 180);
+ ctx.globalAlpha = element.opacity;
+
+ ctx.drawImage(
+ img,
+ -elemWidth / 2,
+ -elemHeight / 2,
+ elemWidth,
+ elemHeight
+ );
+
+ ctx.restore();
+ } else if (element.type === "text") {
+ ctx.save();
+
+ const elemX = (element.x / 100) * canvasWidth;
+ const elemY = (element.y / 100) * canvasHeight;
+
+ ctx.translate(elemX, elemY);
+ ctx.rotate((element.rotation * Math.PI) / 180);
+ ctx.globalAlpha = element.opacity;
+
+ // Configure text style with scaled fontSize
+ // Scale fontSize proportionally to canvas width (reference: 1080px)
+ const scaledFontSize = element.fontSize * (canvasWidth / 1080);
+ const fontWeight = element.fontWeight === 'normal' ? '400' : element.fontWeight === 'medium' ? '500' : '700';
+ ctx.font = `${fontWeight} ${scaledFontSize}px ${element.fontFamily}`;
+ ctx.fillStyle = element.color;
+ ctx.textAlign = 'center';
+ ctx.textBaseline = 'middle';
+
+ // Draw text
+ ctx.fillText(element.content, 0, 0);
+
+ ctx.restore();
+ }
+ }
+
+ ctx.restore();
+ };
+
+ // Exponer métodos para exportación
+ useImperativeHandle(ref, () => ({
+ getExportCanvas: () => exportCanvasRef.current,
+ drawFrame,
+ }));
+
+ return (
+ <div className="flex-1 flex items-center justify-center min-h-0 min-w-0 overflow-hidden bg-[#09090B] p-4 sm:p-1">
+ {/* Canvas oculto para exportación */}
+ <canvas
+ ref={exportCanvasRef}
+ width={exportDimensions.width}
+ height={exportDimensions.height}
+ className="hidden"
+ />
+
+ {/* Preview visual - contenedor con tamaño dinámico según aspect ratio */}
+ <div
+ className="relative h-full max-h-full max-w-full shrink-0 overflow-hidden border border-white/20 rounded-xl transition-all duration-300"
+ style={{
+ aspectRatio: getAspectRatioStyle(aspectRatio, customAspectRatio ?? undefined),
+ maxWidth: getMaxWidth(aspectRatio, customAspectRatio ?? undefined),
+ }}
+ >
+ {/* Zoom container - applies zoom to entire composition (background + video) */}
+ <div
+ className="absolute inset-0 origin-center"
+ style={{
+ transform: `scale(${zoomTransform.scale}) translate(${zoomTransform.translateX}%, ${zoomTransform.translateY}%)`,
+ transition: `transform ${zoomTransform.transitionMs}ms ${ZOOM_EASING}`,
+ }}
+ >
+ {/* Capa 1: Fondo (siempre llena todo el contenedor) */}
+ <div
+ className="absolute inset-0 overflow-hidden"
+ >
+ <div
+ className="absolute transition-all duration-200"
+ style={{
+ inset: backgroundBlur > 0 ? `-${backgroundBlur}px` : '0',
+ ...(shouldShowCustomColor && backgroundColorCss
+ ? // Color sólido o gradiente CSS
+ backgroundColorCss.startsWith('#') || backgroundColorCss.startsWith('rgb')
+ ? { backgroundColor: backgroundColorCss }
+ : { backgroundImage: backgroundColorCss }
+ : shouldShowCustomImage
+ ? // Imagen personalizada
+ {
+ backgroundImage: `url('${selectedImageUrl}')`,
+ backgroundSize: 'cover',
+ backgroundPosition: 'center',
+ }
+ : shouldShowWallpaper
+ ? // Wallpaper
+ {
+ backgroundImage: `url('${wallpaperUrl}')`,
+ backgroundSize: 'cover',
+ backgroundPosition: 'center',
+ }
+ :
+ { backgroundColor: 'transparent' }
+ ),
+ filter: backgroundBlur > 0 ? `blur(${backgroundBlur * 0.4}px)` : 'none',
+ }}
+ />
+ </div>
+
+ {/* Capa 2: Video con padding, esquinas redondeadas y sombras */}
+ <div
+ className="absolute inset-0 flex items-center justify-center transition-all duration-200"
+ style={{ padding: `${padding * 0.5}%` }}
+ >
+ <div
+ ref={videoContainerRef}
+ className="relative flex w-full h-full items-center justify-center max-w-full max-h-full"
+ style={{
+ transform: `translate(${videoTransform.translateX}%, ${videoTransform.translateY}%) rotate(${videoTransform.rotation}deg)`,
+ cursor: isDraggingVideo ? 'move' : (isVideoHovered && videoUrl ? 'move' : 'default'),
+ transition: isDraggingVideo || isDraggingRotation ? 'none' : 'transform 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94)',
+ }}
+ onMouseEnter={() => videoUrl && setIsVideoHovered(true)}
+ onMouseLeave={() => setIsVideoHovered(false)}
+ onMouseDown={(e) => {
+ if (!videoUrl || !onVideoTransformChange) return;
+ // Only start dragging if not clicking on rotation handle
+ if ((e.target as HTMLElement).closest('[data-rotation-handle]')) return;
+
+ e.preventDefault();
+ setIsDraggingVideo(true);
+ dragStartPos.current = {
+ x: e.clientX,
+ y: e.clientY,
+ initialRotation: videoTransform.rotation,
+ initialTranslateX: videoTransform.translateX,
+ initialTranslateY: videoTransform.translateY,
+ };
+ }}
+ >
+ <div className="relative">
+ {/* Rotation handle */}
+ {isVideoHovered && videoUrl && onVideoTransformChange && (
+ <div
+ data-rotation-handle
+ className="absolute -top-5 left-1/2 -translate-x-1/2 z-20 cursor-default active:cursor-default"
+ onMouseDown={(e) => {
+ e.preventDefault();
+ e.stopPropagation();
+ lastAngleRef.current = null;
+ setIsDraggingRotation(true);
+ dragStartPos.current = {
+ x: e.clientX,
+ y: e.clientY,
+ initialRotation: videoTransform.rotation,
+ initialTranslateX: videoTransform.translateX,
+ initialTranslateY: videoTransform.translateY,
+ };
+ }}
+ >
+ <div className="p-0.5 border border-white hover:border-white/80 rounded shadow-sm bg-[#111]">
+ <svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" className="text-gray-200">
+ <path fill="currentColor" d="M17.707 3.293a1 1 0 1 0-1.414 1.414l2.294 2.294H11.5a4.5 4.5 0 0 0-4.5 4.5v7.086l-2.293-2.293a1 1 0 1 0-1.414 1.415l4 4a1 1 0 0 0 1.415 0l4-4a1 1 0 0 0-1.415-1.415L9 18.587v-7.086a2.5 2.5 0 0 1 2.5-2.5h7.086l-2.293 2.293a1 1 0 1 0 1.414 1.414l4-4a1 1 0 0 0 0-1.414z" />
+ </svg>
+ </div>
+ <div className="absolute top-full left-1/2 -translate-x-1/2 flex flex-col items-center">
+ <div className="w-px h-1 bg-white" />
+ <div className="w-1 h-1 rounded-full bg-white" />
+ </div>
+ </div>
+ )}
+ {isVideoHovered && videoUrl && !isDraggingVideo && !isDraggingRotation && (
+ <div
+ className="absolute -inset-px border border-white pointer-events-none z-10 opacity-80"
+ style={{ borderRadius: `${roundedCorners + 1}px` }}
+ />
+ )}
+ <MockupWrapper
+ mockupId={mockupId}
+ config={mockupConfig ?? DEFAULT_MOCKUP_CONFIG}
+ roundedCorners={roundedCorners}
+ shadows={shadows}
+ >
+ {videoUrl ? (
+ <div className="relative flex items-center justify-center overflow-hidden max-w-full max-h-full rounded-[inherit]"> {/* Video element */}
+ <video
+ ref={videoRef}
+ src={videoUrl}
+ preload="auto"
+ playsInline
+ className="max-w-full max-h-full object-contain"
+ style={{
+ // Aplicar crop usando object-view-box (CSS nativo)
+ ...(cropArea && (cropArea.width < 100 || cropArea.height < 100 || cropArea.x > 0 || cropArea.y > 0) ? {
+ objectViewBox: `inset(${cropArea.y}% ${100 - cropArea.x - cropArea.width}% ${100 - cropArea.y - cropArea.height}% ${cropArea.x}%)`,
+ } : {}),
+ opacity: currentThumbnail ? 0 : 1,
+ }}
+ onTimeUpdate={onTimeUpdate}
+ onLoadedMetadata={onLoadedMetadata}
+ onEnded={onEnded}
+ />
+
+ {currentThumbnail && (
+ <img
+ src={currentThumbnail.dataUrl}
+ alt="Preview"
+ className="absolute inset-0 w-full h-full object-contain"
+ />
+ )}
+ </div>
+ ) : (
+ <div className="w-full h-full aspect-video min-w-75 bg-[#1E1E1E] border border-white/10 flex flex-col overflow-hidden"> <PlaceholderEditor
+ onVideoUpload={onVideoUpload}
+ isUploading={isUploading}
+ />
+ </div>
+ )}
+ </MockupWrapper>
+ </div>
+ </div>
+
+ {/* Capa 3: Canvas elements overlay */}
+ <div
+ ref={canvasContainerRef}
+ className="absolute inset-0 pointer-events-none"
+ >
+ {/* Sort elements by zIndex for proper layering */}
+ {[...canvasElements].sort((a, b) => a.zIndex - b.zIndex).map((element) => {
+ const isSelected = selectedElementId === element.id;
+ const isHovered = hoveredElementId === element.id;
+
+ if (element.type === "svg") {
+ return (
+ <div
+ key={element.id}
+ className="absolute pointer-events-auto cursor-move"
+ style={{
+ left: `${element.x}%`,
+ top: `${element.y}%`,
+ width: `${element.width}%`,
+ height: `${element.height}%`,
+ transform: `translate(-50%, -50%) rotate(${element.rotation}deg)`,
+ opacity: element.opacity,
+ zIndex: element.zIndex,
+ transition: isDraggingElement ? 'none' : 'transform 0.1s ease-out',
+ }}
+ onMouseEnter={() => setHoveredElementId(element.id)}
+ onMouseLeave={() => setHoveredElementId(null)}
+ onMouseDown={(e) => {
+ if (!onElementSelect) return;
+ // Only start dragging if not clicking on rotation handle
+ if ((e.target as HTMLElement).closest('[data-element-rotation]')) return;
+
+ e.preventDefault();
+ e.stopPropagation();
+ onElementSelect(element.id);
+ setIsDraggingElement(true);
+ elementDragStart.current = {
+ x: e.clientX,
+ y: e.clientY,
+ initialX: element.x,
+ initialY: element.y,
+ initialRotation: element.rotation,
+ };
+ }}
+ >
+ {/* SVG element - render inline with color */}
+ {(() => {
+ const SvgComponent = SVG_COMPONENTS[element.svgId];
+ if (!SvgComponent) return null;
+ return <SvgComponent color={element.color} className="w-full h-full" />;
+ })()}
+
+ {/* Selection border and rotation handle */}
+ {(isSelected || isHovered) && (
+ <>
+ <div
+ className={`absolute -inset-px border pointer-events-none ${isSelected ? 'border-blue-500' : 'border-white/50'}`}
+ style={{ borderRadius: '2px' }}
+ />
+ {isSelected && onElementUpdate && (
+ <div
+ data-element-rotation
+ className="absolute -top-5 left-1/2 -translate-x-1/2 z-20 cursor-default"
+ onMouseDown={(e) => {
+ e.preventDefault();
+ e.stopPropagation();
+ setIsDraggingElementRotation(true);
+ elementDragStart.current = {
+ x: e.clientX,
+ y: e.clientY,
+ initialX: element.x,
+ initialY: element.y,
+ initialRotation: element.rotation,
+ };
+ }}
+ >
+ <div className="p-0.5 border border-blue-500 hover:border-blue-400 rounded shadow-sm bg-[#111]">
+ <svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" className="text-blue-500">
+ <path fill="currentColor" d="M17.707 3.293a1 1 0 1 0-1.414 1.414l2.294 2.294H11.5a4.5 4.5 0 0 0-4.5 4.5v7.086l-2.293-2.293a1 1 0 1 0-1.414 1.415l4 4a1 1 0 0 0 1.415 0l4-4a1 1 0 0 0-1.415-1.415L9 18.587v-7.086a2.5 2.5 0 0 1 2.5-2.5h7.086l-2.293 2.293a1 1 0 1 0 1.414 1.414l4-4a1 1 0 0 0 0-1.414z" />
+ </svg>
+ </div>
+ <div className="absolute top-full left-1/2 -translate-x-1/2 flex flex-col items-center">
+ <div className="w-px h-1 bg-blue-500" />
+ <div className="w-1 h-1 rounded-full bg-blue-500" />
+ </div>
+ </div>
+ )}
+ </>
+ )}
+ </div>
+ );
+ }
+
+ if (element.type === "image") {
+ return (
+ <div
+ key={element.id}
+ className="absolute pointer-events-auto cursor-move"
+ style={{
+ left: `${element.x}%`,
+ top: `${element.y}%`,
+ width: `${element.width}%`,
+ height: `${element.height}%`,
+ transform: `translate(-50%, -50%) rotate(${element.rotation}deg)`,
+ opacity: element.opacity,
+ zIndex: element.zIndex,
+ transition: isDraggingElement ? 'none' : 'transform 0.1s ease-out',
+ }}
+ onMouseEnter={() => setHoveredElementId(element.id)}
+ onMouseLeave={() => setHoveredElementId(null)}
+ onMouseDown={(e) => {
+ if (!onElementSelect) return;
+ if ((e.target as HTMLElement).closest('[data-element-rotation]')) return;
+
+ e.preventDefault();
+ e.stopPropagation();
+ onElementSelect(element.id);
+ setIsDraggingElement(true);
+ elementDragStart.current = {
+ x: e.clientX,
+ y: e.clientY,
+ initialX: element.x,
+ initialY: element.y,
+ initialRotation: element.rotation,
+ };
+ }}
+ >
+ <img
+ src={element.imagePath}
+ alt="Image element"
+ className="w-full h-full object-cover rounded"
+ style={{ pointerEvents: 'none' }}
+ />
+
+ {(isSelected || isHovered) && (
+ <>
+ <div
+ className={`absolute -inset-px border pointer-events-none ${isSelected ? 'border-blue-500' : 'border-white/50'}`}
+ style={{ borderRadius: '2px' }}
+ />
+ {isSelected && onElementUpdate && (
+ <div
+ data-element-rotation
+ className="absolute -top-5 left-1/2 -translate-x-1/2 z-20 cursor-default"
+ onMouseDown={(e) => {
+ e.preventDefault();
+ e.stopPropagation();
+ setIsDraggingElementRotation(true);
+ elementDragStart.current = {
+ x: e.clientX,
+ y: e.clientY,
+ initialX: element.x,
+ initialY: element.y,
+ initialRotation: element.rotation,
+ };
+ }}
+ >
+ <div className="p-0.5 border border-blue-500 hover:border-blue-400 rounded shadow-sm bg-[#111]">
+ <svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" className="text-blue-500">
+ <path fill="currentColor" d="M17.707 3.293a1 1 0 1 0-1.414 1.414l2.294 2.294H11.5a4.5 4.5 0 0 0-4.5 4.5v7.086l-2.293-2.293a1 1 0 1 0-1.414 1.415l4 4a1 1 0 0 0 1.415 0l4-4a1 1 0 0 0-1.415-1.415L9 18.587v-7.086a2.5 2.5 0 0 1 2.5-2.5h7.086l-2.293 2.293a1 1 0 1 0 1.414 1.414l4-4a1 1 0 0 0 0-1.414z" />
+ </svg>
+ </div>
+ <div className="absolute top-full left-1/2 -translate-x-1/2 flex flex-col items-center">
+ <div className="w-px h-1 bg-blue-500" />
+ <div className="w-1 h-1 rounded-full bg-blue-500" />
+ </div>
+ </div>
+ )}
+ </>
+ )}
+ </div>
+ );
+ }
+
+ if (element.type === "text") {
+ return (
+ <div
+ key={element.id}
+ className="absolute pointer-events-auto cursor-move select-none"
+ style={{
+ left: `${element.x}%`,
+ top: `${element.y}%`,
+ transform: `translate(-50%, -50%) rotate(${element.rotation}deg)`,
+ opacity: element.opacity,
+ zIndex: element.zIndex,
+ transition: isDraggingElement ? 'none' : 'transform 0.1s ease-out',
+ }}
+ onMouseEnter={() => setHoveredElementId(element.id)}
+ onMouseLeave={() => setHoveredElementId(null)}
+ onMouseDown={(e) => {
+ if (!onElementSelect) return;
+ if ((e.target as HTMLElement).closest('[data-element-rotation]')) return;
+
+ e.preventDefault();
+ e.stopPropagation();
+ onElementSelect(element.id);
+ setIsDraggingElement(true);
+ elementDragStart.current = {
+ x: e.clientX,
+ y: e.clientY,
+ initialX: element.x,
+ initialY: element.y,
+ initialRotation: element.rotation,
+ };
+ }}
+ >
+ <div
+ className="whitespace-nowrap"
+ style={{
+ fontSize: `${element.fontSize}px`,
+ fontFamily: element.fontFamily,
+ fontWeight: element.fontWeight === 'normal' ? 400 : element.fontWeight === 'medium' ? 500 : 700,
+ textAlign: 'center',
+ color: element.color,
+ pointerEvents: 'none',
+ }}
+ >
+ {element.content}
+ </div>
+
+ {(isSelected || isHovered) && (
+ <>
+ <div
+ className={`absolute -inset-x-2 -inset-y-1 border pointer-events-none ${isSelected ? 'border-blue-500' : 'border-white/50'}`}
+ style={{ borderRadius: '2px' }}
+ />
+ {isSelected && onElementUpdate && (
+ <div
+ data-element-rotation
+ className="absolute -top-5 left-1/2 -translate-x-1/2 z-20 cursor-default"
+ onMouseDown={(e) => {
+ e.preventDefault();
+ e.stopPropagation();
+ setIsDraggingElementRotation(true);
+ elementDragStart.current = {
+ x: e.clientX,
+ y: e.clientY,
+ initialX: element.x,
+ initialY: element.y,
+ initialRotation: element.rotation,
+ };
+ }}
+ >
+ <div className="p-0.5 border border-blue-500 hover:border-blue-400 rounded shadow-sm bg-[#111]">
+ <svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" className="text-blue-500">
+ <path fill="currentColor" d="M17.707 3.293a1 1 0 1 0-1.414 1.414l2.294 2.294H11.5a4.5 4.5 0 0 0-4.5 4.5v7.086l-2.293-2.293a1 1 0 1 0-1.414 1.415l4 4a1 1 0 0 0 1.415 0l4-4a1 1 0 0 0-1.415-1.415L9 18.587v-7.086a2.5 2.5 0 0 1 2.5-2.5h7.086l-2.293 2.293a1 1 0 1 0 1.414 1.414l4-4a1 1 0 0 0 0-1.414z" />
+ </svg>
+ </div>
+ <div className="absolute top-full left-1/2 -translate-x-1/2 flex flex-col items-center">
+ <div className="w-px h-1 bg-blue-500" />
+ <div className="w-1 h-1 rounded-full bg-blue-500" />
+ </div>
+ </div>
+ )}
+ </>
+ )}
+ </div>
+ );
+ }
+
+ return null;
+ return null;
+ })}
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ );
+});
diff --git a/app/components/ui/editor/VideoCropperModal.tsx b/app/components/ui/editor/VideoCropperModal.tsx
new file mode 100644
index 0000000..da8c41e
--- /dev/null
+++ b/app/components/ui/editor/VideoCropperModal.tsx
@@ -0,0 +1,458 @@
+"use client";
+
+import { useState, useRef, useEffect, useCallback } from "react";
+import { motion, AnimatePresence } from "framer-motion";
+import { Icon } from "@iconify/react";
+import { Button } from "@/components/ui/button";
+import type { CropArea } from "@/types";
+
+interface VideoCropperModalProps {
+ isOpen: boolean;
+ onClose: () => void;
+ videoUrl: string | null;
+ onCropApply: (crop: CropArea) => void;
+ initialCrop?: CropArea;
+}
+
+const CROP_ASPECT_RATIOS = [
+ { label: "Libre", value: null },
+ { label: "16:9", value: 16 / 9 },
+ { label: "9:16", value: 9 / 16 },
+ { label: "1:1", value: 1 },
+ { label: "4:3", value: 4 / 3 },
+ { label: "3:4", value: 3 / 4 },
+] as const;
+
+export function VideoCropperModal({
+ isOpen,
+ onClose,
+ videoUrl,
+ onCropApply,
+ initialCrop,
+}: VideoCropperModalProps) {
+ const containerRef = useRef<HTMLDivElement>(null);
+ const videoRef = useRef<HTMLVideoElement>(null);
+
+ const [cropArea, setCropArea] = useState<CropArea>(initialCrop ?? { x: 0, y: 0, width: 100, height: 100 });
+ const [selectedAspectRatio, setSelectedAspectRatio] = useState<number | null>(null);
+ const [isDragging, setIsDragging] = useState(false);
+ const [dragType, setDragType] = useState<"move" | "resize" | null>(null);
+ const [dragHandle, setDragHandle] = useState<string | null>(null);
+ const [videoDimensions, setVideoDimensions] = useState({ width: 0, height: 0 });
+ const [wasOpen, setWasOpen] = useState(false);
+
+ const dragStartPos = useRef({ x: 0, y: 0 });
+ const initialCropRef = useRef<CropArea>({ x: 0, y: 0, width: 100, height: 100 });
+
+ // Resetear cuando se abre el modal (detectando transición de cerrado a abierto)
+ if (isOpen && !wasOpen) {
+ setCropArea(initialCrop ?? { x: 0, y: 0, width: 100, height: 100 });
+ setSelectedAspectRatio(null);
+ setWasOpen(true);
+ } else if (!isOpen && wasOpen) {
+ setWasOpen(false);
+ }
+
+ // Obtener dimensiones del video
+ const handleVideoLoad = useCallback(() => {
+ if (videoRef.current) {
+ setVideoDimensions({
+ width: videoRef.current.videoWidth,
+ height: videoRef.current.videoHeight,
+ });
+ }
+ }, []);
+
+ // Aplicar aspect ratio cuando se selecciona
+ const handleAspectRatioSelect = useCallback((ratio: number | null) => {
+ setSelectedAspectRatio(ratio);
+
+ if (ratio === null || videoDimensions.width === 0) return;
+
+ // Calcular el nuevo tamaño manteniendo el aspect ratio
+ const videoAspect = videoDimensions.width / videoDimensions.height;
+ const targetAspect = ratio;
+
+ let newWidth: number;
+ let newHeight: number;
+
+ // Calcular tamaño máximo que cabe en el video
+ if (targetAspect > videoAspect) {
+ // El crop es más ancho que el video, limitamos por ancho
+ newWidth = 100;
+ newHeight = (100 * videoAspect) / targetAspect;
+ } else {
+ // El crop es más alto que el video, limitamos por alto
+ newHeight = 100;
+ newWidth = (100 * targetAspect) / videoAspect;
+ }
+
+ // Centrar el crop
+ const newX = (100 - newWidth) / 2;
+ const newY = (100 - newHeight) / 2;
+
+ setCropArea({
+ x: Math.max(0, newX),
+ y: Math.max(0, newY),
+ width: Math.min(100, newWidth),
+ height: Math.min(100, newHeight),
+ });
+ }, [videoDimensions]);
+
+ // Manejo del inicio de arrastre
+ const handleMouseDown = (e: React.MouseEvent, type: "move" | "resize", handle?: string) => {
+ e.preventDefault();
+ e.stopPropagation();
+ setIsDragging(true);
+ setDragType(type);
+ setDragHandle(handle ?? null);
+ dragStartPos.current = { x: e.clientX, y: e.clientY };
+ initialCropRef.current = { ...cropArea };
+ };
+
+ // Manejo del movimiento
+ useEffect(() => {
+ if (!isDragging || !containerRef.current) return;
+
+ const handleMouseMove = (e: MouseEvent) => {
+ const container = containerRef.current;
+ if (!container) return;
+
+ const rect = container.getBoundingClientRect();
+ const deltaX = ((e.clientX - dragStartPos.current.x) / rect.width) * 100;
+ const deltaY = ((e.clientY - dragStartPos.current.y) / rect.height) * 100;
+
+ if (dragType === "move") {
+ const newX = Math.max(0, Math.min(100 - cropArea.width, initialCropRef.current.x + deltaX));
+ const newY = Math.max(0, Math.min(100 - cropArea.height, initialCropRef.current.y + deltaY));
+ setCropArea(prev => ({ ...prev, x: newX, y: newY }));
+ } else if (dragType === "resize" && dragHandle) {
+ const newCrop = { ...initialCropRef.current };
+ const minSize = 10;
+
+ switch (dragHandle) {
+ case "nw": {
+ const maxDx = initialCropRef.current.width - minSize;
+ const maxDy = initialCropRef.current.height - minSize;
+ const clampedDx = Math.max(-initialCropRef.current.x, Math.min(maxDx, deltaX));
+ const clampedDy = Math.max(-initialCropRef.current.y, Math.min(maxDy, deltaY));
+ newCrop.x = initialCropRef.current.x + clampedDx;
+ newCrop.y = initialCropRef.current.y + clampedDy;
+ newCrop.width = initialCropRef.current.width - clampedDx;
+ newCrop.height = initialCropRef.current.height - clampedDy;
+ break;
+ }
+ case "ne": {
+ const maxDx = 100 - initialCropRef.current.x - initialCropRef.current.width;
+ const maxDy = initialCropRef.current.height - minSize;
+ const clampedDx = Math.max(-(initialCropRef.current.width - minSize), Math.min(maxDx, deltaX));
+ const clampedDy = Math.max(-initialCropRef.current.y, Math.min(maxDy, deltaY));
+ newCrop.y = initialCropRef.current.y + clampedDy;
+ newCrop.width = initialCropRef.current.width + clampedDx;
+ newCrop.height = initialCropRef.current.height - clampedDy;
+ break;
+ }
+ case "sw": {
+ const maxDx = initialCropRef.current.width - minSize;
+ const maxDy = 100 - initialCropRef.current.y - initialCropRef.current.height;
+ const clampedDx = Math.max(-initialCropRef.current.x, Math.min(maxDx, deltaX));
+ const clampedDy = Math.max(-(initialCropRef.current.height - minSize), Math.min(maxDy, deltaY));
+ newCrop.x = initialCropRef.current.x + clampedDx;
+ newCrop.width = initialCropRef.current.width - clampedDx;
+ newCrop.height = initialCropRef.current.height + clampedDy;
+ break;
+ }
+ case "se": {
+ const maxDx = 100 - initialCropRef.current.x - initialCropRef.current.width;
+ const maxDy = 100 - initialCropRef.current.y - initialCropRef.current.height;
+ const clampedDx = Math.max(-(initialCropRef.current.width - minSize), Math.min(maxDx, deltaX));
+ const clampedDy = Math.max(-(initialCropRef.current.height - minSize), Math.min(maxDy, deltaY));
+ newCrop.width = initialCropRef.current.width + clampedDx;
+ newCrop.height = initialCropRef.current.height + clampedDy;
+ break;
+ }
+ case "n": {
+ const maxDy = initialCropRef.current.height - minSize;
+ const clampedDy = Math.max(-initialCropRef.current.y, Math.min(maxDy, deltaY));
+ newCrop.y = initialCropRef.current.y + clampedDy;
+ newCrop.height = initialCropRef.current.height - clampedDy;
+ break;
+ }
+ case "s": {
+ const maxDy = 100 - initialCropRef.current.y - initialCropRef.current.height;
+ const clampedDy = Math.max(-(initialCropRef.current.height - minSize), Math.min(maxDy, deltaY));
+ newCrop.height = initialCropRef.current.height + clampedDy;
+ break;
+ }
+ case "w": {
+ const maxDx = initialCropRef.current.width - minSize;
+ const clampedDx = Math.max(-initialCropRef.current.x, Math.min(maxDx, deltaX));
+ newCrop.x = initialCropRef.current.x + clampedDx;
+ newCrop.width = initialCropRef.current.width - clampedDx;
+ break;
+ }
+ case "e": {
+ const maxDx = 100 - initialCropRef.current.x - initialCropRef.current.width;
+ const clampedDx = Math.max(-(initialCropRef.current.width - minSize), Math.min(maxDx, deltaX));
+ newCrop.width = initialCropRef.current.width + clampedDx;
+ break;
+ }
+ }
+
+ // Asegurar límites
+ newCrop.x = Math.max(0, Math.min(100 - minSize, newCrop.x));
+ newCrop.y = Math.max(0, Math.min(100 - minSize, newCrop.y));
+ newCrop.width = Math.max(minSize, Math.min(100 - newCrop.x, newCrop.width));
+ newCrop.height = Math.max(minSize, Math.min(100 - newCrop.y, newCrop.height));
+
+ setCropArea(newCrop);
+ }
+ };
+
+ const handleMouseUp = () => {
+ setIsDragging(false);
+ setDragType(null);
+ setDragHandle(null);
+ };
+
+ window.addEventListener("mousemove", handleMouseMove);
+ window.addEventListener("mouseup", handleMouseUp);
+
+ return () => {
+ window.removeEventListener("mousemove", handleMouseMove);
+ window.removeEventListener("mouseup", handleMouseUp);
+ };
+ }, [isDragging, dragType, dragHandle, cropArea.width, cropArea.height]);
+
+ const handleReset = () => {
+ setCropArea({ x: 0, y: 0, width: 100, height: 100 });
+ setSelectedAspectRatio(null);
+ };
+
+ const handleApply = () => {
+ onCropApply(cropArea);
+ onClose();
+ };
+
+ if (!isOpen) return null;
+
+ return (
+ <AnimatePresence>
+ <motion.div
+ initial={{ opacity: 0 }}
+ animate={{ opacity: 1 }}
+ exit={{ opacity: 0 }}
+ className="fixed inset-0 z-50 bg-black/60 backdrop-blur-sm flex items-center justify-center"
+ >
+ <motion.div
+ initial={{ scale: 0.96, opacity: 0, y: 8 }}
+ animate={{ scale: 1, opacity: 1, y: 0 }}
+ exit={{ scale: 0.96, opacity: 0, y: 8 }}
+ transition={{ duration: 0.18, ease: [0.16, 1, 0.3, 1] }}
+ className="bg-[#0a0a0b] rounded-2xl border border-white/10 w-[92vw] max-w-5xl max-h-[88vh] flex flex-col overflow-hidden shadow-2xl"
+ >
+ {/* ── Header ── */}
+ <div className="flex items-center justify-between px-5 py-3.5 border-b border-white/10">
+ <div className="flex items-center gap-2.5">
+ <div className="w-6 h-6 rounded-md bg-white/10 flex items-center justify-center">
+ <Icon icon="mdi:crop" className="text-sm text-white/70" />
+ </div>
+ <span className="text-sm font-medium text-white">Recortar video</span>
+ {videoDimensions.width > 0 && (
+ <span className="text-[11px] font-mono text-white/60 bg-white/[0.04] px-2 py-0.5 rounded-md border border-white/10">
+ {videoDimensions.width} × {videoDimensions.height}
+ </span>
+ )}
+ </div>
+ <button
+ onClick={onClose}
+ className="w-7 h-7 flex items-center justify-center rounded-lg hover:bg-white/10 transition-colors text-white/40 hover:text-white/70"
+ >
+ <Icon icon="mdi:close" className="text-base" />
+ </button>
+ </div>
+
+ {/* ── Body ── */}
+ <div className="flex-1 flex overflow-hidden min-h-0">
+
+ {/* Video canvas */}
+ <div className="flex-1 p-6 flex items-center justify-center bg-black/50 overflow-hidden">
+ <div
+ ref={containerRef}
+ className="relative w-full h-full max-w-full max-h-full flex items-center justify-center"
+ >
+ <div
+ className="relative"
+ style={{
+ width: "100%",
+ height: "100%",
+ maxWidth: "100%",
+ maxHeight: "100%",
+ aspectRatio: videoDimensions.width && videoDimensions.height
+ ? `${videoDimensions.width}/${videoDimensions.height}`
+ : "16/9",
+ }}
+ >
+ {videoUrl ? (
+ <video
+ ref={videoRef}
+ src={videoUrl}
+ className="absolute inset-0 w-full h-full object-contain bg-black"
+ onLoadedMetadata={handleVideoLoad}
+ muted loop autoPlay
+ />
+ ) : (
+ <div className="absolute inset-0 bg-white/[0.02] rounded-lg flex items-center justify-center text-white/20 text-sm">
+ Sin video
+ </div>
+ )}
+
+ {/* Dark overlay outside crop */}
+ <div className="absolute inset-0 pointer-events-none">
+ <div className="absolute bg-black/75 left-0 right-0 top-0" style={{ height: `${cropArea.y}%` }} />
+ <div className="absolute bg-black/75 left-0 right-0 bottom-0" style={{ height: `${Math.max(0, 100 - cropArea.y - cropArea.height)}%` }} />
+ <div className="absolute bg-black/75 left-0" style={{ top: `${cropArea.y}%`, width: `${cropArea.x}%`, height: `${cropArea.height}%` }} />
+ <div className="absolute bg-black/75 right-0" style={{ top: `${cropArea.y}%`, width: `${Math.max(0, 100 - cropArea.x - cropArea.width)}%`, height: `${cropArea.height}%` }} />
+ </div>
+
+ {/* Crop selection box */}
+ <div
+ className="absolute border border-white/80 cursor-move"
+ style={{
+ left: `${cropArea.x}%`,
+ top: `${cropArea.y}%`,
+ width: `${cropArea.width}%`,
+ height: `${cropArea.height}%`,
+ }}
+ onMouseDown={(e) => handleMouseDown(e, "move")}
+ >
+ {/* Rule-of-thirds grid */}
+ <div className="absolute inset-0 grid grid-cols-3 grid-rows-3 pointer-events-none">
+ {[...Array(9)].map((_, i) => (
+ <div key={i} className="border border-white/[0.15]" />
+ ))}
+ </div>
+
+ {/* Dimension badge — centered top */}
+ {videoDimensions.width > 0 && (
+ <div className="absolute -top-6 left-1/2 -translate-x-1/2 bg-black/80 backdrop-blur-sm border border-white/[0.12] text-white/60 text-[10px] font-mono px-2 py-0.5 rounded-md whitespace-nowrap pointer-events-none">
+ {Math.round((videoDimensions.width * cropArea.width) / 100)} × {Math.round((videoDimensions.height * cropArea.height) / 100)}
+ </div>
+ )}
+
+ {/* Corner handles */}
+ {["nw", "ne", "sw", "se"].map((handle) => {
+ const positions: Record<string, string> = {
+ nw: "-top-1.5 -left-1.5 cursor-nwse-resize",
+ ne: "-top-1.5 -right-1.5 cursor-nesw-resize",
+ sw: "-bottom-1.5 -left-1.5 cursor-nesw-resize",
+ se: "-bottom-1.5 -right-1.5 cursor-nwse-resize",
+ };
+ return (
+ <div
+ key={handle}
+ className={`absolute w-3 h-3 bg-white rounded-sm shadow-lg ${positions[handle]}`}
+ onMouseDown={(e) => { e.stopPropagation(); handleMouseDown(e, "resize", handle); }}
+ />
+ );
+ })}
+
+ {/* Edge handles */}
+ {["n", "s", "w", "e"].map((handle) => {
+ const isVertical = handle === "n" || handle === "s";
+ const positions: Record<string, string> = {
+ n: "left-1/2 -translate-x-1/2 -top-[3px] cursor-ns-resize",
+ s: "left-1/2 -translate-x-1/2 -bottom-[3px] cursor-ns-resize",
+ w: "top-1/2 -translate-y-1/2 -left-[3px] cursor-ew-resize",
+ e: "top-1/2 -translate-y-1/2 -right-[3px] cursor-ew-resize",
+ };
+ return (
+ <div
+ key={handle}
+ className={`absolute bg-white rounded-sm ${positions[handle]}`}
+ style={{ width: isVertical ? "28px" : "5px", height: isVertical ? "5px" : "28px" }}
+ onMouseDown={(e) => { e.stopPropagation(); handleMouseDown(e, "resize", handle); }}
+ />
+ );
+ })}
+ </div>
+ </div>
+ </div>
+ </div>
+
+ {/* ── Right sidebar ── */}
+ <div className="w-56 shrink-0 border-l border-white/10 flex flex-col bg-[#0d0d0f]">
+
+ {/* Aspect ratio */}
+ <div className="p-4 border-b border-white/10">
+ <p className="text-[10px] uppercase tracking-widest font-semibold text-white/60 mb-3">Proporción</p>
+ <div className="grid grid-cols-3 gap-1">
+ {CROP_ASPECT_RATIOS.map((ratio) => (
+ <div key={ratio.label} className="relative">
+ <button
+ onClick={() => handleAspectRatioSelect(ratio.value)}
+ className={`w-full py-1.5 text-[11px] font-medium rounded-lg transition-all ${selectedAspectRatio === ratio.value
+ ? "text-white border-transparent"
+ : "bg-white/[0.04] text-white/40 hover:bg-white/[0.08] hover:text-white/70 border border-white/10"
+ }`}
+ style={
+ selectedAspectRatio === ratio.value
+ ? {
+ background: 'radial-gradient(circle at 50% 0%, #555555 0%, #252525 64%)',
+ boxShadow: 'inset 0 1.01rem 0.2rem -1rem #fff0, inset 0 -1.01rem 0.2rem -1rem #0000, 0 -1.02rem 0.2rem -1rem #fff0, 0 1rem 0.2rem -1rem #0000, 0 0 0 1px #fff3, 0 4px 4px 0 #0004, 0 0 0 1px #333',
+ }
+ : {}
+ }
+ >
+ {ratio.label}
+ </button>
+ {selectedAspectRatio === ratio.value && (
+ <div className="absolute left-1 top-1/5 -translate-y-1/2 size-3 bg-white rounded-full blur-[5px]" />
+ )}
+ </div>
+ ))}
+ </div>
+ </div>
+
+ {/* Crop coordinates */}
+ <div className="p-4 border-b border-white/10">
+ <p className="text-[10px] uppercase tracking-widest font-semibold text-white/60 mb-3">Área</p>
+ <div className="space-y-2">
+ {[
+ { label: "X", value: cropArea.x },
+ { label: "Y", value: cropArea.y },
+ { label: "W", value: cropArea.width },
+ { label: "H", value: cropArea.height },
+ ].map(({ label, value }) => (
+ <div key={label} className="flex items-center justify-between">
+ <span className="text-[11px] text-white/25 font-mono w-4">{label}</span>
+ <div className="flex-1 mx-3 h-px bg-white/[0.04]" />
+ <span className="text-[11px] font-mono text-white/50">{value.toFixed(1)}%</span>
+ </div>
+ ))}
+ </div>
+ </div>
+
+ <div className="flex-1" />
+
+ <div className="p-4 flex flex-col gap-2">
+ <Button
+ variant="outline"
+ onClick={handleReset}
+ >
+ Restablecer
+ </Button>
+ <Button
+ variant="primary"
+ onClick={handleApply}
+ >
+ Aplicar recorte
+ </Button>
+ </div>
+ </div>
+ </div>
+ </motion.div>
+ </motion.div>
+ </AnimatePresence >
+ );
+}
diff --git a/app/components/ui/editor/ZoomFragmentEditor.tsx b/app/components/ui/editor/ZoomFragmentEditor.tsx
new file mode 100644
index 0000000..1fbf20d
--- /dev/null
+++ b/app/components/ui/editor/ZoomFragmentEditor.tsx
@@ -0,0 +1,213 @@
+"use client";
+
+import { useRef, useMemo } from "react";
+import { Icon } from "@iconify/react";
+import { SliderControl } from "../SliderControl";
+import type { ZoomFragment } from "@/types/zoom.types";
+import { formatZoomTime, zoomLevelToFactor, speedToTransitionMs } from "@/types/zoom.types";
+import type { VideoThumbnail } from "@/types/editor.types";
+
+interface ZoomFragmentEditorProps {
+ fragment: ZoomFragment;
+ videoUrl: string | null;
+ videoThumbnail?: string | null;
+ currentTime?: number;
+ getThumbnailForTime?: (time: number) => VideoThumbnail | null;
+ videoDimensions?: { width: number; height: number } | null;
+ onBack: () => void;
+ onDelete: () => void;
+ onUpdate: (updates: Partial<ZoomFragment>) => void;
+}
+
+export function ZoomFragmentEditor({
+ fragment,
+ videoUrl,
+ videoThumbnail,
+ currentTime = 0,
+ getThumbnailForTime,
+ videoDimensions,
+ onBack,
+ onDelete,
+ onUpdate,
+}: ZoomFragmentEditorProps) {
+ const focusPreviewRef = useRef<HTMLDivElement>(null);
+
+ const dynamicThumbnail = useMemo(() => {
+ if (!getThumbnailForTime) return videoThumbnail || null;
+
+ const thumb = getThumbnailForTime(currentTime);
+ return thumb?.dataUrl || videoThumbnail || null;
+ }, [getThumbnailForTime, currentTime, videoThumbnail]);
+
+ const handlePointerDown = (e: React.PointerEvent<HTMLDivElement>) => {
+ e.preventDefault();
+ e.currentTarget.setPointerCapture(e.pointerId);
+
+ const move = (ev: PointerEvent) => {
+ if (!focusPreviewRef.current) return;
+ const rect = focusPreviewRef.current.getBoundingClientRect();
+ const x = Math.max(0, Math.min(100, ((ev.clientX - rect.left) / rect.width) * 100));
+ const y = Math.max(0, Math.min(100, ((ev.clientY - rect.top) / rect.height) * 100));
+ onUpdate({ focusX: x, focusY: y });
+ };
+
+ const up = () => {
+ window.removeEventListener("pointermove", move);
+ window.removeEventListener("pointerup", up);
+ };
+
+ window.addEventListener("pointermove", move);
+ window.addEventListener("pointerup", up);
+ };
+
+ // Handle click to set focus point instantly
+ const handlePreviewClick = (e: React.MouseEvent<HTMLDivElement>) => {
+ if ((e.target as HTMLElement).closest('[data-drag-handle]')) return;
+ if (!focusPreviewRef.current) return;
+
+ const rect = focusPreviewRef.current.getBoundingClientRect();
+ const x = Math.max(0, Math.min(100, ((e.clientX - rect.left) / rect.width) * 100));
+ const y = Math.max(0, Math.min(100, ((e.clientY - rect.top) / rect.height) * 100));
+
+ onUpdate({ focusX: x, focusY: y });
+ };
+
+ return (
+ <div className="flex flex-col h-full text-white">
+ {/* Header with back button */}
+ <div className="flex items-center gap-2 p-3 border-b border-white/6 shrink-0">
+ <button
+ onClick={onBack}
+ className="flex items-center justify-center size-7 rounded-md hover:bg-white/6 text-white/50 transition-colors"
+ >
+ <Icon icon="ph:arrow-left-bold" width="14" />
+ </button>
+ <div className="flex items-center gap-2 min-w-0">
+ <span className="text-md font-medium text-white truncate">Fragmento de zoom</span>
+ </div>
+ <button
+ onClick={onDelete}
+ className="ml-auto flex items-center gap-1.5 text-[10px] text-red-400/70 hover:text-red-400 px-2 py-1 rounded-md transition-colors shrink-0"
+ title="Eliminar fragmento (Delete)"
+ >
+ <Icon icon="ph:trash-bold" width="12" />
+ Eliminar
+ </button>
+ </div>
+
+ <div className="flex-1 overflow-y-auto custom-scrollbar px-4 py-4 space-y-5">
+ <div>
+ <div className="flex items-center gap-2 text-xs mb-2 text-white/60">
+ <Icon icon="material-symbols:center-focus-strong-outline" width="16" />
+ <span>Punto de enfoque</span>
+ <span className="ml-auto font-mono text-[10px] text-white/25">
+ {Math.round(fragment.focusX)}% · {Math.round(fragment.focusY)}%
+ </span>
+ </div>
+ {/* Video preview with draggable focus point using Framer Motion */}
+ <div
+ ref={focusPreviewRef}
+ className="relative w-full squircle-element overflow-hidden bg-[#0a0a0e] border border-white/10"
+ style={{ aspectRatio: videoDimensions ? `${videoDimensions.width}/${videoDimensions.height}` : "16/9" }}
+ onClick={handlePreviewClick}
+ >
+ {/* Dynamic thumbnail - shows full video at current playback time */}
+ {dynamicThumbnail ? (
+ <img
+ src={dynamicThumbnail}
+ alt="Video preview"
+ className="absolute inset-0 w-full h-full object-cover opacity-60"
+ />
+ ) : videoUrl ? (
+ <video
+ src={videoUrl}
+ className="absolute inset-0 w-full h-full object-cover opacity-60"
+ muted
+ />
+ ) : null}
+
+ {/* Zoom area preview */}
+ <div
+ className="absolute border border-dashed border-blue-500/50 bg-gradient-to-b from-blue-500/30 to-transparent squircle-element pointer-events-none"
+ style={{
+ width: `${100 / zoomLevelToFactor(fragment.zoomLevel)}%`,
+ height: `${100 / zoomLevelToFactor(fragment.zoomLevel)}%`,
+ left: `${fragment.focusX}%`,
+ top: `${fragment.focusY}%`,
+ transform: 'translate(-50%, -50%)',
+ }}
+ />
+
+ <div
+ data-drag-handle
+ className="absolute z-10 cursor-grab active:cursor-grabbing"
+ style={{
+ left: `${fragment.focusX}%`,
+ top: `${fragment.focusY}%`,
+ transform: "translate(-50%, -50%)",
+ }}
+ onPointerDown={handlePointerDown}
+ >
+ <div className="size-8 rounded-full bg-white shadow-lg border-2 border-white/10 hover:scale-110 transition-transform" />
+ </div>
+
+ <div className="absolute bottom-2 left-0 right-0 flex justify-center pointer-events-none">
+ <span className="text-[7px] text-white/20 font-mono uppercase tracking-[0.3em]">
+ Arrastra o click
+ </span>
+ </div>
+ </div>
+ </div>
+
+ <SliderControl
+ icon="mdi:magnify-plus-outline"
+ label="Nivel de zoom"
+ value={fragment.zoomLevel}
+ min={1}
+ max={10}
+ step={0.1}
+ onChange={(value) => onUpdate({ zoomLevel: value })}
+ />
+
+ <SliderControl
+ icon="mdi:speedometer"
+ label="Velocidad de transición"
+ value={fragment.speed}
+ min={1}
+ max={10}
+ step={0.1}
+ onChange={(value) => onUpdate({ speed: value })}
+ />
+
+ <div className="h-px bg-white/10" />
+
+ <div className="space-y-2">
+ <div className="flex items-center justify-between text-[10px]">
+ <span className="text-white/35">Duración del fragmento</span>
+ <span className="font-mono text-white/55 bg-white/10 px-2 py-0.5 rounded">
+ {formatZoomTime(fragment.startTime)} - {formatZoomTime(fragment.endTime)}
+ </span>
+ </div>
+ <div className="flex items-center justify-between text-[10px]">
+ <span className="text-white/35">Área de enfoque</span>
+ <span className="font-mono text-white/55 bg-white/10 px-2 py-0.5 rounded">
+ {Math.round(fragment.focusX)}% · {Math.round(fragment.focusY)}%
+ </span>
+ </div>
+ <div className="flex items-center justify-between text-[10px]">
+ <span className="text-white/35">Factor de zoom</span>
+ <span className="font-mono text-white/55 bg-white/10 px-2 py-0.5 rounded">
+ {zoomLevelToFactor(fragment.zoomLevel).toFixed(1)}×
+ </span>
+ </div>
+ <div className="flex items-center justify-between text-[10px]">
+ <span className="text-white/35">Duración de transición</span>
+ <span className="font-mono text-white/55 bg-white/10 px-2 py-0.5 rounded">
+ {(speedToTransitionMs(fragment.speed) / 1000).toFixed(1)}s
+ </span>
+ </div>
+ </div>
+ </div>
+ </div>
+ );
+}
diff --git a/app/components/ui/editor/ZoomFragmentTrackItem.tsx b/app/components/ui/editor/ZoomFragmentTrackItem.tsx
new file mode 100644
index 0000000..046778c
--- /dev/null
+++ b/app/components/ui/editor/ZoomFragmentTrackItem.tsx
@@ -0,0 +1,402 @@
+"use client";
+
+import { useState, useRef, useCallback, useMemo, useEffect } from "react";
+import { motion, useMotionValue } from "framer-motion";
+import type { ZoomFragment } from "@/types/zoom.types";
+import { zoomLevelToFactor } from "@/types/zoom.types";
+
+// Minimum fragment duration in seconds
+const MIN_FRAGMENT_DURATION = 0.5;
+
+interface ZoomFragmentTrackItemProps {
+ fragment: ZoomFragment;
+ isSelected: boolean;
+ contentWidth: number;
+ videoDuration: number;
+ otherFragments: ZoomFragment[];
+ onSelect: () => void;
+ onUpdate: (updates: Partial<ZoomFragment>) => void;
+ onDragStateChange?: (isDragging: boolean) => void;
+ onMouseEnter?: () => void;
+ onMouseLeave?: () => void;
+}
+
+export function ZoomFragmentTrackItem({
+ fragment,
+ isSelected,
+ contentWidth,
+ videoDuration,
+ otherFragments,
+ onSelect,
+ onUpdate,
+ onDragStateChange,
+ onMouseEnter,
+ onMouseLeave,
+}: ZoomFragmentTrackItemProps) {
+ const [isDragging, setIsDragging] = useState(false);
+ const [isResizing, setIsResizing] = useState<'start' | 'end' | null>(null);
+ const containerRef = useRef<HTMLDivElement>(null);
+
+ // Motion values for smooth animations
+ const fragmentX = useMotionValue(0);
+ const fragmentWidth = useMotionValue(0);
+
+ const timeToPixels = useCallback((time: number) => {
+ return (time / videoDuration) * contentWidth;
+ }, [videoDuration, contentWidth]);
+
+ const pixelsToTime = useCallback((pixels: number) => {
+ return (pixels / contentWidth) * videoDuration;
+ }, [contentWidth, videoDuration]);
+
+ const initialLeft = timeToPixels(fragment.startTime);
+ const initialWidth = timeToPixels(fragment.endTime - fragment.startTime);
+
+ useEffect(() => {
+ if (!isDragging && !isResizing) {
+ fragmentX.set(initialLeft);
+ fragmentWidth.set(initialWidth);
+ }
+ }, [initialLeft, initialWidth, isDragging, isResizing, fragmentX, fragmentWidth]);
+
+ // Find boundaries - can't overlap with other fragments
+ const boundaries = useMemo(() => {
+ const sorted = [...otherFragments].sort((a, b) => a.startTime - b.startTime);
+
+ let minStart = 0;
+ let maxEnd = videoDuration;
+
+ for (const other of sorted) {
+ if (other.endTime <= fragment.startTime) {
+ minStart = Math.max(minStart, other.endTime);
+ }
+ if (other.startTime >= fragment.endTime) {
+ maxEnd = Math.min(maxEnd, other.startTime);
+ break;
+ }
+ }
+
+ return { minStart, maxEnd };
+ }, [otherFragments, fragment.startTime, fragment.endTime, videoDuration]);
+
+ // Handle drag (move entire fragment)
+ const handleDrag = useCallback((e: MouseEvent | TouchEvent | PointerEvent, info: { delta: { x: number } }) => {
+ if (contentWidth === 0 || videoDuration === 0) return;
+
+ const currentX = fragmentX.get();
+ const duration = fragment.endTime - fragment.startTime;
+
+ let newX = currentX + info.delta.x;
+
+ const minX = timeToPixels(boundaries.minStart);
+ const maxX = timeToPixels(boundaries.maxEnd - duration);
+ newX = Math.max(minX, Math.min(maxX, newX));
+
+ fragmentX.set(newX);
+ }, [contentWidth, videoDuration, fragmentX, fragment, boundaries, timeToPixels]);
+
+ const handleDragStart = useCallback(() => {
+ setIsDragging(true);
+ onDragStateChange?.(true);
+ }, [onDragStateChange]);
+
+ const handleDragEnd = useCallback(() => {
+ setIsDragging(false);
+ onDragStateChange?.(false);
+
+ const newStartTime = pixelsToTime(fragmentX.get());
+ const duration = fragment.endTime - fragment.startTime;
+
+ onUpdate({
+ startTime: Math.max(0, newStartTime),
+ endTime: Math.min(videoDuration, newStartTime + duration),
+ });
+ }, [fragmentX, pixelsToTime, fragment, videoDuration, onUpdate, onDragStateChange]);
+
+ // Handle resize from start
+ const handleResizeStartDrag = useCallback((e: MouseEvent | TouchEvent | PointerEvent, info: { delta: { x: number } }) => {
+ if (contentWidth === 0 || videoDuration === 0) return;
+
+ const currentX = fragmentX.get();
+ const currentWidth = fragmentWidth.get();
+
+ let newX = currentX + info.delta.x;
+ let newWidth = currentWidth - info.delta.x;
+
+ const minWidth = timeToPixels(MIN_FRAGMENT_DURATION);
+ if (newWidth < minWidth) {
+ newWidth = minWidth;
+ newX = currentX + currentWidth - minWidth;
+ }
+
+ // Clamp to boundaries (can't go before minStart)
+ const minX = timeToPixels(boundaries.minStart);
+ if (newX < minX) {
+ const diff = minX - newX;
+ newX = minX;
+ newWidth = currentWidth - diff;
+ }
+
+ fragmentX.set(newX);
+ fragmentWidth.set(newWidth);
+ }, [contentWidth, videoDuration, fragmentX, fragmentWidth, boundaries, timeToPixels]);
+
+ // Handle resize from end
+ const handleResizeEndDrag = useCallback((e: MouseEvent | TouchEvent | PointerEvent, info: { delta: { x: number } }) => {
+ if (contentWidth === 0 || videoDuration === 0) return;
+
+ const currentWidth = fragmentWidth.get();
+
+ // Calculate new width
+ let newWidth = currentWidth + info.delta.x;
+
+ // Enforce minimum duration
+ const minWidth = timeToPixels(MIN_FRAGMENT_DURATION);
+ newWidth = Math.max(minWidth, newWidth);
+
+ // Clamp to boundaries (can't go past maxEnd)
+ const currentX = fragmentX.get();
+ const maxWidth = timeToPixels(boundaries.maxEnd) - currentX;
+ newWidth = Math.min(newWidth, maxWidth);
+
+ fragmentWidth.set(newWidth);
+ }, [contentWidth, videoDuration, fragmentWidth, fragmentX, boundaries, timeToPixels]);
+
+ const handleResizeStart = useCallback((handle: 'start' | 'end') => {
+ setIsResizing(handle);
+ onDragStateChange?.(true);
+ }, [onDragStateChange]);
+
+ const handleResizeEnd = useCallback(() => {
+ setIsResizing(null);
+ onDragStateChange?.(false);
+
+ // Update fragment with new bounds
+ const newStartTime = pixelsToTime(fragmentX.get());
+ const newEndTime = pixelsToTime(fragmentX.get() + fragmentWidth.get());
+
+ onUpdate({
+ startTime: Math.max(0, newStartTime),
+ endTime: Math.min(videoDuration, newEndTime),
+ });
+ }, [fragmentX, fragmentWidth, pixelsToTime, videoDuration, onUpdate, onDragStateChange]);
+
+ const duration = fragment.endTime - fragment.startTime;
+ const isInteracting = isDragging || isResizing !== null;
+
+ return (
+ <motion.div
+ ref={containerRef}
+ className={`absolute h-[80%] top-[10%] rounded-md flex items-center border transition-shadow select-none ${isSelected || isInteracting
+ ? 'bg-blue-500/30 border-blue-400/70 shadow-[0_0_10px_rgba(59,130,246,0.3)] z-10'
+ : 'bg-blue-600/20 border-blue-500/35 hover:border-blue-500/60'
+ } ${isDragging ? 'cursor-grabbing' : 'cursor-grab'}`}
+ style={{
+ x: fragmentX,
+ width: fragmentWidth,
+ background: isSelected || isInteracting
+ ? 'linear-gradient(180deg, rgba(59, 130, 246, 0.5) 0%, rgba(29, 78, 216, 0.4) 100%)'
+ : 'linear-gradient(180deg, rgba(37, 99, 235, 0.2) 0%, rgba(30, 58, 138, 0.15) 100%)',
+ boxShadow: isSelected || isInteracting
+ ? 'inset 0 1px 0 rgba(255,255,255,0.3), 0 0 10px rgba(59,130,246,0.3)'
+ : 'inset 0 1px 0 rgba(255,255,255,0.1)'
+ }}
+ drag="x"
+ dragConstraints={{ left: 0, right: contentWidth }}
+ dragElastic={0}
+ dragMomentum={false}
+ onDrag={handleDrag}
+ onDragStart={handleDragStart}
+ onDragEnd={handleDragEnd}
+ onClick={(e) => {
+ e.stopPropagation();
+ onSelect();
+ }}
+ onMouseEnter={onMouseEnter}
+ onMouseLeave={onMouseLeave}
+ whileTap={{ scale: 0.98 }}
+ >
+ {/* Resize handle - Start */}
+ <motion.div
+ className="absolute left-0 top-0 bottom-0 w-2 cursor-ew-resize z-20 group/resize flex items-center justify-center"
+ drag="x"
+ dragConstraints={{ left: 0, right: 0 }}
+ dragElastic={0}
+ dragMomentum={false}
+ onDrag={handleResizeStartDrag}
+ onDragStart={() => handleResizeStart('start')}
+ onDragEnd={handleResizeEnd}
+ onClick={(e) => e.stopPropagation()}
+ >
+ <div className={`w-1 h-6 rounded rounded-md-full transition-all ${isResizing === 'start'
+ ? 'bg-blue-300 scale-110'
+ : 'bg-blue-400/60 group-hover/resize:bg-blue-300'
+ }`} />
+ </motion.div>
+
+ {/* Content */}
+ <div className="flex-1 flex flex-col items-center justify-center pointer-events-none overflow-hidden px-2">
+ <span className={`text-[10px] truncate ${isSelected || isInteracting ? 'text-blue-200' : 'text-blue-300/70'}`}>
+ Zoom
+ </span>
+ <span className={`text-[9px] truncate ${isSelected || isInteracting ? 'text-blue-300/70' : 'text-blue-400/45'}`}>
+ {zoomLevelToFactor(fragment.zoomLevel).toFixed(1)}× · {duration.toFixed(1)}s
+ </span>
+ </div>
+
+ {/* Resize handle - End */}
+ <motion.div
+ className="absolute right-0 top-0 bottom-0 w-2 cursor-ew-resize z-20 group/resize flex items-center justify-center"
+ drag="x"
+ dragConstraints={{ left: 0, right: 0 }}
+ dragElastic={0}
+ dragMomentum={false}
+ onDrag={handleResizeEndDrag}
+ onDragStart={() => handleResizeStart('end')}
+ onDragEnd={handleResizeEnd}
+ onClick={(e) => e.stopPropagation()}
+ >
+ <div className={`w-1 h-6 rounded rounded-md-full transition-all ${isResizing === 'end'
+ ? 'bg-blue-300 scale-110'
+ : 'bg-blue-400/60 group-hover/resize:bg-blue-300'
+ }`} />
+ </motion.div>
+ </motion.div>
+ );
+}
+
+// Helper function to check if a time range overlaps with existing fragments
+export function canAddFragmentAt(
+ startTime: number,
+ endTime: number,
+ existingFragments: ZoomFragment[],
+ excludeFragmentId?: string
+): boolean {
+ for (const fragment of existingFragments) {
+ if (excludeFragmentId && fragment.id === excludeFragmentId) continue;
+
+ // Check for overlap
+ const overlaps = startTime < fragment.endTime && endTime > fragment.startTime;
+ if (overlaps) return false;
+ }
+ return true;
+}
+
+// Find all available gaps in the timeline
+function findAllGaps(
+ existingFragments: ZoomFragment[],
+ videoDuration: number,
+ minDuration: number
+): Array<{ start: number; end: number }> {
+ const gaps: Array<{ start: number; end: number }> = [];
+ const sorted = [...existingFragments].sort((a, b) => a.startTime - b.startTime);
+
+ if (sorted.length === 0) {
+ // No fragments, entire video is available
+ if (videoDuration >= minDuration) {
+ gaps.push({ start: 0, end: videoDuration });
+ }
+ return gaps;
+ }
+
+ // Gap before first fragment
+ if (sorted[0].startTime >= minDuration) {
+ gaps.push({ start: 0, end: sorted[0].startTime });
+ }
+
+ // Gaps between fragments
+ for (let i = 0; i < sorted.length - 1; i++) {
+ const gapStart = sorted[i].endTime;
+ const gapEnd = sorted[i + 1].startTime;
+ if (gapEnd - gapStart >= minDuration) {
+ gaps.push({ start: gapStart, end: gapEnd });
+ }
+ }
+
+ // Gap after last fragment
+ const lastEnd = sorted[sorted.length - 1].endTime;
+ if (videoDuration - lastEnd >= minDuration) {
+ gaps.push({ start: lastEnd, end: videoDuration });
+ }
+
+ return gaps;
+}
+
+// Find valid position for new fragment (avoiding overlaps)
+export function findValidFragmentPosition(
+ clickTime: number,
+ defaultDuration: number,
+ existingFragments: ZoomFragment[],
+ videoDuration: number
+): { startTime: number; endTime: number } | null {
+ // Find all available gaps
+ const gaps = findAllGaps(existingFragments, videoDuration, defaultDuration);
+
+ if (gaps.length === 0) {
+ return null; // No space available
+ }
+
+ // First, check if click position is inside any gap
+ for (const gap of gaps) {
+ if (clickTime >= gap.start && clickTime <= gap.end) {
+ // Click is in this gap - place fragment centered on click (or adjusted to fit)
+ const halfDuration = defaultDuration / 2;
+ let startTime = clickTime - halfDuration;
+ let endTime = clickTime + halfDuration;
+
+ // Adjust to fit within gap
+ if (startTime < gap.start) {
+ startTime = gap.start;
+ endTime = startTime + defaultDuration;
+ }
+ if (endTime > gap.end) {
+ endTime = gap.end;
+ startTime = endTime - defaultDuration;
+ }
+
+ return { startTime, endTime };
+ }
+ }
+
+ // Click is not in any gap (probably on a fragment) - find closest gap
+ let closestGap = gaps[0];
+ let closestDistance = Infinity;
+
+ for (const gap of gaps) {
+ // Distance to gap start
+ const distToStart = Math.abs(clickTime - gap.start);
+ // Distance to gap end
+ const distToEnd = Math.abs(clickTime - gap.end);
+ // Distance to gap center
+ const gapCenter = (gap.start + gap.end) / 2;
+ const distToCenter = Math.abs(clickTime - gapCenter);
+
+ const minDist = Math.min(distToStart, distToEnd, distToCenter);
+
+ if (minDist < closestDistance) {
+ closestDistance = minDist;
+ closestGap = gap;
+ }
+ }
+
+ // Place fragment at the edge closest to click
+ if (clickTime <= closestGap.start) {
+ // Click is before gap - place at start of gap
+ return {
+ startTime: closestGap.start,
+ endTime: closestGap.start + defaultDuration,
+ };
+ } else if (clickTime >= closestGap.end) {
+ // Click is after gap - place at end of gap
+ return {
+ startTime: closestGap.end - defaultDuration,
+ endTime: closestGap.end,
+ };
+ } else {
+ return {
+ startTime: closestGap.start,
+ endTime: closestGap.start + defaultDuration,
+ };
+ }
+}
+
diff --git a/app/components/ui/editor/ZoomGlobalConfig.tsx b/app/components/ui/editor/ZoomGlobalConfig.tsx
new file mode 100644
index 0000000..d1612d4
--- /dev/null
+++ b/app/components/ui/editor/ZoomGlobalConfig.tsx
@@ -0,0 +1,86 @@
+"use client";
+
+import { Icon } from "@iconify/react";
+import { Button } from "@/components/ui/button";
+import type { ZoomFragment } from "@/types/zoom.types";
+import { formatZoomTime, zoomLevelToFactor } from "@/types/zoom.types";
+
+interface ZoomGlobalConfigProps {
+ fragments: ZoomFragment[];
+ onSelectFragment: (fragmentId: string) => void;
+ onAddFragment: () => void;
+}
+
+export function ZoomGlobalConfig({
+ fragments,
+ onSelectFragment,
+ onAddFragment,
+}: ZoomGlobalConfigProps) {
+ return (
+ <div className="p-4 flex flex-col gap-6">
+ <div className="flex items-center">
+ <div className="flex items-center gap-2 text-white font-medium">
+ <Icon icon="iconamoon:zoom-in-bold" width="20" />
+ <span>Zoom</span>
+ </div>
+ </div>
+
+ {/* Fragment list */}
+ {fragments.length > 0 && (
+ <div className="space-y-2">
+ <div className="text-[10px] uppercase tracking-widest text-white/60 font-bold">
+ Fragmentos ({fragments.length})
+ </div>
+ <div className="space-y-1.5">
+ {fragments.map((fragment, index) => (
+ <button
+ key={fragment.id}
+ onClick={() => onSelectFragment(fragment.id)}
+ className="w-full flex items-center gap-3 p-2.5 rounded-lg bg-[#09090B] border border-white/10 hover:border-blue-500/30 hover:bg-blue-500/5 transition-all group"
+ >
+ <div className="size-8 rounded-md bg-blue-500/20 flex items-center justify-center">
+ <Icon icon="iconamoon:zoom-in-bold" width="14" className="text-blue-400" />
+ </div>
+ <div className="flex flex-col items-start flex-1 min-w-0">
+ <span className="text-xs text-white/80 font-medium">Zoom {index + 1}</span>
+ <span className="text-[10px] text-white/40 font-mono">
+ {formatZoomTime(fragment.startTime)} - {formatZoomTime(fragment.endTime)}
+ </span>
+ </div>
+ <div className="text-[10px] text-white/30 font-mono">
+ {zoomLevelToFactor(fragment.zoomLevel).toFixed(1)}×
+ </div>
+ <Icon icon="ph:caret-right" width="14" className="text-white/20 group-hover:text-white/40" />
+ </button>
+ ))}
+ </div>
+ </div>
+ )}
+
+ <Button
+ variant="outline"
+ className="w-full text-xs"
+ onClick={onAddFragment}
+ >
+ <Icon icon="ph:plus-bold" width="14" />
+ Añadir fragmento
+ </Button>
+
+ {/* Keyboard shortcuts tip */}
+ <div className="text-[10px] text-white/50 space-y-1 pt-2 border-t border-white/10">
+ <div className="flex items-center gap-2">
+ <kbd className="px-1.5 py-0.5 bg-white/5 rounded text-[10px] font-mono">Delete</kbd>
+ <span>Eliminar fragmento seleccionado</span>
+ </div>
+ <div className="flex items-center gap-2">
+ <kbd className="px-1.5 py-0.5 bg-white/5 rounded text-[10px] font-mono">Esc</kbd>
+ <span>Deseleccionar fragmento</span>
+ </div>
+ <div className="flex items-center gap-2">
+ <kbd className="px-1.5 py-0.5 bg-white/5 rounded text-[10px] font-mono">Click en track</kbd>
+ <span>Añadir fragmento en posición</span>
+ </div>
+ </div>
+ </div>
+ );
+}
diff --git a/app/components/ui/editor/mockups/BraveGlassMockup.tsx b/app/components/ui/editor/mockups/BraveGlassMockup.tsx
new file mode 100644
index 0000000..ff4daca
--- /dev/null
+++ b/app/components/ui/editor/mockups/BraveGlassMockup.tsx
@@ -0,0 +1,174 @@
+"use client";
+
+import type { MockupRenderProps } from "@/types/mockup.types";
+import { hexToRgba } from "@/lib/utils";
+import { deriveSearchBg } from "@/lib/color.utils";
+
+interface BraveGlassMockupProps extends MockupRenderProps {
+ shadows?: number;
+ roundedCorners?: number;
+}
+
+export function BraveGlassMockup({
+ children,
+ config,
+ className = "",
+ shadows = 20,
+ roundedCorners
+}: BraveGlassMockupProps) {
+ const isDark = config.darkMode;
+ const frameColor = config.frameColor;
+ const url = config.url;
+ const cornerRadius = roundedCorners ?? config.cornerRadius;
+ const headerOpacity = config.headerOpacity ?? 100;
+
+ const headerScale = (config.headerScale || 100) / 100;
+
+ const bgColor = isDark ? "#1e1e1e" : "#f9f9f9";
+ const borderColor = isDark ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.1)";
+ const textColor = isDark ? "#9ca3af" : "#6b7280";
+ const urlBarBorder = isDark ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.15)";
+
+ const urlBarBgBase = deriveSearchBg(frameColor);
+
+ const baseHeight = 32;
+ const basePadding = 12;
+ const baseGap = 12;
+ const baseIconSize = 14;
+ const baseUrlBarHeight = 26;
+ const baseFontSize = 11;
+
+ const headerHeight = baseHeight * headerScale;
+ const headerPadding = basePadding * headerScale;
+ const navGap = 12 * headerScale;
+ const iconSize = baseIconSize * headerScale;
+ const urlBarHeight = baseUrlBarHeight * headerScale;
+ const fontSize = baseFontSize * headerScale;
+ const urlBarPadding = 10 * headerScale;
+ const urlBarMargin = 8 * headerScale;
+ const rightGroupGap = 10 * headerScale;
+ const winBtnPadding = 12 * headerScale;
+
+ return (
+ <div
+ className={`glass-border relative w-full flex flex-col overflow-hidden ${className}`}
+ style={{
+ borderRadius: `${cornerRadius}px`,
+ boxShadow: shadows > 0
+ ? `0 ${shadows * 0.3}px ${shadows}px rgba(0,0,0,0.5)`
+ : 'none',
+ borderTop: "1px solid rgba(255,255,255,0.6)",
+ borderLeft: "1px solid rgba(255,255,255,0.6)",
+ }}
+ >
+ <div
+ className="flex items-center justify-between select-none shrink-0"
+ style={{
+ height: `${headerHeight}px`,
+ backgroundColor: hexToRgba(frameColor, headerOpacity),
+ borderBottom: `1px solid ${borderColor}`,
+ borderTopLeftRadius: `${cornerRadius}px`,
+ borderTopRightRadius: `${cornerRadius}px`,
+ }}
+ >
+ {/* Grupo izquierdo: chevrons + refresh */}
+ <div
+ className="flex items-center"
+ style={{ gap: `${navGap}px`, paddingLeft: `${headerPadding}px`, color: textColor }}
+ >
+ <svg style={{ width: `${iconSize * 0.75}px`, height: `${iconSize * 0.75}px` }} fill="none" stroke="currentColor" viewBox="0 0 24 24">
+ <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2.5} d="M15 19l-7-7 7-7" />
+ </svg>
+ <svg style={{ width: `${iconSize * 0.75}px`, height: `${iconSize * 0.75}px`, opacity: 0.35 }} fill="none" stroke="currentColor" viewBox="0 0 24 24">
+ <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2.5} d="M9 5l7 7-7 7" />
+ </svg>
+ <svg style={{ width: `${iconSize * 0.75}px`, height: `${iconSize * 0.75}px` }} fill="none" stroke="currentColor" viewBox="0 0 24 24">
+ <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15" />
+ </svg>
+ </div>
+
+ {/* Barra de URL central */}
+ <div
+ className="flex-1 max-w-xl"
+ style={{ margin: `0 ${urlBarMargin}px` }}
+ >
+ <div
+ className="rounded w-full flex items-center justify-between"
+ style={{
+ height: `${urlBarHeight}px`,
+ padding: `0 ${urlBarPadding}px`,
+ backgroundColor: hexToRgba(urlBarBgBase, headerOpacity),
+ border: `1px solid ${urlBarBorder}`,
+ color: textColor,
+ }}
+ >
+ {/* Lock */}
+ <svg style={{ width: `${iconSize * 0.65}px`, height: `${iconSize * 0.65}px`, opacity: 0.6, flexShrink: 0 }} fill="none" stroke="currentColor" viewBox="0 0 24 24">
+ <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z" />
+ </svg>
+ <span
+ className="flex-1 text-center font-medium truncate"
+ style={{ fontSize: `${fontSize}px`, padding: `0 ${urlBarPadding}px` }}
+ >
+ {url}
+ </span>
+ {/* Star */}
+ <svg style={{ width: `${iconSize * 0.75}px`, height: `${iconSize * 0.75}px`, flexShrink: 0, color: "rgba(234,179,8,0.8)" }} fill="currentColor" stroke="currentColor" viewBox="0 0 24 24">
+ <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M11.049 2.927c.3-.921 1.603-.921 1.902 0l1.519 4.674a1 1 0 00.95.69h4.915c.969 0 1.371 1.24.588 1.81l-3.976 2.888a1 1 0 00-.363 1.118l1.518 4.674c.3.922-.755 1.688-1.538 1.118l-3.976-2.888a1 1 0 00-1.176 0l-3.976 2.888c-.783.57-1.838-.197-1.538-1.118l1.518-4.674a1 1 0 00-.363-1.118l-3.976-2.888c-.784-.57-.38-1.81.588-1.81h4.914a1 1 0 00.951-.69l1.519-4.674z" />
+ </svg>
+ </div>
+ </div>
+
+ {/* Grupo derecho: download + dots + botones Windows */}
+ <div className="flex items-center h-full" style={{ color: textColor }}>
+ {/* Download + three dots */}
+ <div className="flex items-center" style={{ gap: `${rightGroupGap}px`, paddingRight: `${rightGroupGap}px` }}>
+ <svg style={{ width: `${iconSize * 0.75}px`, height: `${iconSize * 0.75}px` }} fill="none" stroke="currentColor" viewBox="0 0 24 24">
+ <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4" />
+ </svg>
+ <svg style={{ width: `${iconSize * 0.75}px`, height: `${iconSize * 0.75}px` }} fill="none" stroke="currentColor" viewBox="0 0 24 24">
+ <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M12 5v.01M12 12v.01M12 19v.01M12 6a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2z" />
+ </svg>
+ </div>
+
+ {/* Windows-style buttons */}
+ <div className="flex h-full">
+ <div className="flex items-center justify-center" style={{ padding: `0 ${winBtnPadding}px` }}>
+ <svg width={10 * headerScale} height={1 * headerScale} viewBox="0 0 10 1" fill="currentColor">
+ <rect width="10" height="1" />
+ </svg>
+ </div>
+ <div className="flex items-center justify-center" style={{ padding: `0 ${winBtnPadding}px` }}>
+ <svg width={9 * headerScale} height={9 * headerScale} viewBox="0 0 10 10" fill="none" stroke="currentColor">
+ <rect x="0.5" y="0.5" width="9" height="9" strokeWidth="1" />
+ </svg>
+ </div>
+ <div
+ className="flex items-center justify-center"
+ style={{
+ padding: `0 ${winBtnPadding}px`,
+ borderTopRightRadius: `${cornerRadius}px`,
+ }}
+ >
+ <svg width={9 * headerScale} height={9 * headerScale} viewBox="0 0 10 10" fill="none" stroke="currentColor">
+ <path d="M1 1l8 8M9 1L1 9" strokeWidth="1.2" />
+ </svg>
+ </div>
+ </div>
+ </div>
+ </div>
+
+ {/* Contenido del navegador */}
+ <div
+ className="flex-1 relative overflow-hidden"
+ style={{
+ backgroundColor: bgColor,
+ borderBottomLeftRadius: `${Math.max(0, cornerRadius - 3)}px`,
+ borderBottomRightRadius: `${Math.max(0, cornerRadius - 3)}px`,
+ }}
+ >
+ {children}
+ </div>
+ </div>
+ );
+}
\ No newline at end of file
diff --git a/app/components/ui/editor/mockups/BraveMockup.tsx b/app/components/ui/editor/mockups/BraveMockup.tsx
new file mode 100644
index 0000000..f5c9c59
--- /dev/null
+++ b/app/components/ui/editor/mockups/BraveMockup.tsx
@@ -0,0 +1,169 @@
+"use client";
+
+import { Icon } from "@iconify/react";
+import type { MockupRenderProps } from "@/types/mockup.types";
+import { hexToRgba } from "@/lib/utils";
+import { deriveSearchBg } from "@/lib/color.utils";
+
+interface BraveMockupProps extends MockupRenderProps {
+ shadows?: number;
+ roundedCorners?: number;
+}
+
+export function BraveMockup({
+ children,
+ config,
+ className = "",
+ shadows = 20,
+ roundedCorners
+}: BraveMockupProps) {
+ const isDark = config.darkMode;
+ const frameColor = config.frameColor;
+ const url = config.url;
+ const cornerRadius = roundedCorners ?? config.cornerRadius;
+ const headerOpacity = config.headerOpacity ?? 100;
+
+ const headerScale = (config.headerScale || 100) / 100;
+
+ const bgColor = isDark ? "#1e1e1e" : "#f9f9f9";
+ const borderColor = isDark ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.1)";
+ const textColor = isDark ? "#9ca3af" : "#6b7280";
+ const urlBarBorder = isDark ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.15)";
+
+ const urlBarBgBase = deriveSearchBg(frameColor);
+
+ const baseHeight = 32;
+ const basePadding = 12;
+ const baseIconSize = 14;
+ const baseUrlBarHeight = 26;
+ const baseFontSize = 11;
+
+ const headerHeight = baseHeight * headerScale;
+ const headerPadding = basePadding * headerScale;
+ const navGap = 12 * headerScale;
+ const iconSize = baseIconSize * headerScale;
+ const urlBarHeight = baseUrlBarHeight * headerScale;
+ const fontSize = baseFontSize * headerScale;
+ const urlBarPadding = 10 * headerScale;
+ const urlBarMargin = 8 * headerScale;
+ const rightGroupGap = 10 * headerScale;
+ const winBtnPadding = 12 * headerScale;
+
+ return (
+ <div
+ className={`relative w-full flex flex-col overflow-hidden ${className}`}
+ style={{
+ borderRadius: `${cornerRadius}px`,
+ boxShadow: shadows > 0
+ ? `0 ${shadows * 0.3}px ${shadows}px rgba(0,0,0,0.5)`
+ : 'none',
+ }}
+ >
+ {/* Header del navegador - usa frameColor como color de fondo */}
+ <div
+ className="flex items-center justify-between select-none shrink-0"
+ style={{
+ height: `${headerHeight}px`,
+ backgroundColor: hexToRgba(frameColor, headerOpacity),
+ borderBottom: `1px solid ${borderColor}`,
+ borderTopLeftRadius: `${cornerRadius}px`,
+ borderTopRightRadius: `${cornerRadius}px`,
+ }}
+ >
+ {/* Grupo izquierdo: chevrons + refresh */}
+ <div
+ className="flex items-center"
+ style={{ gap: `${navGap}px`, paddingLeft: `${headerPadding}px`, color: textColor }}
+ >
+ <svg style={{ width: `${iconSize * 0.75}px`, height: `${iconSize * 0.75}px` }} fill="none" stroke="currentColor" viewBox="0 0 24 24">
+ <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2.5} d="M15 19l-7-7 7-7" />
+ </svg>
+ <svg style={{ width: `${iconSize * 0.75}px`, height: `${iconSize * 0.75}px`, opacity: 0.35 }} fill="none" stroke="currentColor" viewBox="0 0 24 24">
+ <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2.5} d="M9 5l7 7-7 7" />
+ </svg>
+ <svg style={{ width: `${iconSize * 0.75}px`, height: `${iconSize * 0.75}px` }} fill="none" stroke="currentColor" viewBox="0 0 24 24">
+ <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15" />
+ </svg>
+ </div>
+
+ {/* Barra de URL central */}
+ <div
+ className="flex-1 max-w-xl"
+ style={{ margin: `0 ${urlBarMargin}px` }}
+ >
+ <div
+ className="rounded w-full flex items-center justify-between"
+ style={{
+ height: `${urlBarHeight}px`,
+ padding: `0 ${urlBarPadding}px`,
+ backgroundColor: hexToRgba(urlBarBgBase, headerOpacity),
+ border: `1px solid ${urlBarBorder}`,
+ color: textColor,
+ }}
+ >
+ {/* Lock */}
+ <svg style={{ width: `${iconSize * 0.65}px`, height: `${iconSize * 0.65}px`, opacity: 0.6, flexShrink: 0 }} fill="none" stroke="currentColor" viewBox="0 0 24 24">
+ <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z" />
+ </svg>
+ <span
+ className="flex-1 text-center font-medium truncate"
+ style={{ fontSize: `${fontSize}px`, padding: `0 ${urlBarPadding}px` }}
+ >
+ {url}
+ </span>
+ {/* Star */}
+ <svg style={{ width: `${iconSize * 0.75}px`, height: `${iconSize * 0.75}px`, flexShrink: 0, color: "rgba(234,179,8,0.8)" }} fill="currentColor" stroke="currentColor" viewBox="0 0 24 24">
+ <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M11.049 2.927c.3-.921 1.603-.921 1.902 0l1.519 4.674a1 1 0 00.95.69h4.915c.969 0 1.371 1.24.588 1.81l-3.976 2.888a1 1 0 00-.363 1.118l1.518 4.674c.3.922-.755 1.688-1.538 1.118l-3.976-2.888a1 1 0 00-1.176 0l-3.976 2.888c-.783.57-1.838-.197-1.538-1.118l1.518-4.674a1 1 0 00-.363-1.118l-3.976-2.888c-.784-.57-.38-1.81.588-1.81h4.914a1 1 0 00.951-.69l1.519-4.674z" />
+ </svg>
+ </div>
+ </div>
+
+ {/* Grupo derecho: download + dots + botones Windows */}
+ <div className="flex items-center h-full" style={{ color: textColor }}>
+ {/* Download + three dots */}
+ <div className="flex items-center" style={{ gap: `${rightGroupGap}px`, paddingRight: `${rightGroupGap}px` }}>
+ <svg style={{ width: `${iconSize * 0.75}px`, height: `${iconSize * 0.75}px` }} fill="none" stroke="currentColor" viewBox="0 0 24 24">
+ <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4" />
+ </svg>
+ <svg style={{ width: `${iconSize * 0.75}px`, height: `${iconSize * 0.75}px` }} fill="none" stroke="currentColor" viewBox="0 0 24 24">
+ <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M12 5v.01M12 12v.01M12 19v.01M12 6a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2z" />
+ </svg>
+ </div>
+
+ {/* Windows-style buttons */}
+ <div className="flex h-full">
+ <div className="flex items-center justify-center" style={{ padding: `0 ${winBtnPadding}px` }}>
+ <svg width={10 * headerScale} height={1 * headerScale} viewBox="0 0 10 1" fill="currentColor">
+ <rect width="10" height="1" />
+ </svg>
+ </div>
+ <div className="flex items-center justify-center" style={{ padding: `0 ${winBtnPadding}px` }}>
+ <svg width={9 * headerScale} height={9 * headerScale} viewBox="0 0 10 10" fill="none" stroke="currentColor">
+ <rect x="0.5" y="0.5" width="9" height="9" strokeWidth="1" />
+ </svg>
+ </div>
+ <div
+ className="flex items-center justify-center"
+ style={{
+ padding: `0 ${winBtnPadding}px`,
+ borderTopRightRadius: `${cornerRadius}px`,
+ }}
+ >
+ <svg width={9 * headerScale} height={9 * headerScale} viewBox="0 0 10 10" fill="none" stroke="currentColor">
+ <path d="M1 1l8 8M9 1L1 9" strokeWidth="1.2" />
+ </svg>
+ </div>
+ </div>
+ </div>
+ </div>
+
+ {/* Contenido del navegador - donde va el video */}
+ <div
+ className="flex-1 relative overflow-hidden"
+ style={{ backgroundColor: bgColor }}
+ >
+ {children}
+ </div>
+ </div>
+ );
+}
diff --git a/app/components/ui/editor/mockups/BrowserTabGlassMockup.tsx b/app/components/ui/editor/mockups/BrowserTabGlassMockup.tsx
new file mode 100644
index 0000000..65a8879
--- /dev/null
+++ b/app/components/ui/editor/mockups/BrowserTabGlassMockup.tsx
@@ -0,0 +1,185 @@
+"use client";
+
+import type { MockupRenderProps } from "@/types/mockup.types";
+
+interface BrowserTabGlassMockupProps extends MockupRenderProps {
+ shadows?: number;
+ roundedCorners?: number;
+}
+
+export function BrowserTabGlassMockup({
+ children,
+ config,
+ className = "",
+ shadows = 20,
+ roundedCorners
+}: BrowserTabGlassMockupProps) {
+ const isDark = config.darkMode;
+ const url = config.url;
+ const cornerRadius = roundedCorners ?? config.cornerRadius;
+
+ const headerScale = (config.headerScale || 100) / 100;
+
+ const bgColor = isDark ? "#1e1e1e" : "#f9f9f9";
+
+ // Dark/light tab styles
+ const tabBg = isDark ? "rgba(255,255,255,0.12)" : "rgba(255,255,255,0.8)";
+ const tabBorderColor = isDark ? "rgba(255,255,255,0.2)" : "rgba(255,255,255,0.9)";
+ const tabTitleColor = isDark ? "#d1d5db" : "#374151"; // gray-300 / gray-700
+ const tabCloseColor = isDark ? "rgba(209,213,219,0.6)" : "rgba(75,85,99,0.8)";
+ const tabCloseBg = isDark ? "rgba(255,255,255,0.1)" : "rgba(156,163,175,0.2)";
+
+ const tabBarH = 24 * headerScale;
+ const dotSize = 10 * headerScale;
+ const dotGap = 6 * headerScale;
+ const dotPaddingX = 4 * headerScale;
+ const tabH = 28 * headerScale;
+ const tabW = 184 * headerScale;
+ const tabPaddingX = 12 * headerScale;
+ const tabIconSize = 12 * headerScale;
+ const tabFontSize = 10 * headerScale;
+ const addBtnSize = 24 * headerScale;
+ const winIconGap = 24 * headerScale;
+ const winIconMB = 10 * headerScale;
+ const winIconMR = 4 * headerScale;
+
+ return (
+ <div
+ className={`glass-border relative w-full flex flex-col overflow-hidden ${className}`}
+ style={{
+ borderRadius: `${cornerRadius}px`,
+ boxShadow: shadows > 0
+ ? `0 ${shadows * 0.3}px ${shadows}px rgba(0,0,0,0.5)`
+ : "none",
+ borderTop: "1px solid rgba(255,255,255,0.6)",
+ borderLeft: "1px solid rgba(255,255,255,0.6)",
+ }}
+ >
+ {/* ── Tab bar ── */}
+ <div
+ className="flex items-end justify-between select-none shrink-0 relative z-10"
+ style={{
+ height: `${tabBarH}px`,
+ paddingLeft: `${16 * headerScale}px`,
+ paddingRight: `${4 * headerScale}px`,
+ borderTopLeftRadius: `${cornerRadius}px`,
+ borderTopRightRadius: `${cornerRadius}px`,
+ }}
+ >
+ {/* LEFT: dots + active tab + add button */}
+ <div className="flex items-end" style={{ gap: `${12 * headerScale}px` }}>
+ {/* Window dots */}
+ <div
+ className="flex"
+ style={{ gap: `${dotGap}px`, paddingLeft: `${dotPaddingX}px`, marginBottom: `${10 * headerScale}px` }}
+ >
+ {[0, 1, 2].map(i => (
+ <div
+ key={i}
+ className="rounded-full"
+ style={{
+ width: `${dotSize}px`,
+ height: `${dotSize}px`,
+ backgroundColor: "rgba(255,255,255,0.2)",
+ border: "1px solid rgba(255,255,255,0.3)",
+ }}
+ />
+ ))}
+ </div>
+
+ {/* Active tab */}
+ <div
+ className="flex items-center justify-between"
+ style={{
+ width: `${tabW}px`,
+ height: `${tabH}px`,
+ padding: `0 ${tabPaddingX}px`,
+ backgroundColor: tabBg,
+ backdropFilter: "blur(12px)",
+ borderTop: `1px solid ${tabBorderColor}`,
+ borderLeft: `1px solid ${tabBorderColor}`,
+ borderRight: `1px solid ${tabBorderColor}`,
+ borderRadius: `${8 * headerScale}px ${8 * headerScale}px 0 0`,
+ boxShadow: "-5px 0 15px rgba(0,0,0,0.05)",
+ }}
+ >
+ {/* Favicon dot + title */}
+ <div className="flex items-center overflow-hidden" style={{ gap: `${8 * headerScale}px` }}>
+ <div
+ style={{
+ width: `${tabIconSize}px`,
+ height: `${tabIconSize}px`,
+ borderRadius: "50%",
+ backgroundColor: "#60a5fa",
+ boxShadow: "0 0 8px rgba(96,165,250,0.8)",
+ flexShrink: 0,
+ }}
+ />
+ <span
+ className="font-medium truncate"
+ style={{ fontSize: `${tabFontSize}px`, letterSpacing: "-0.02em", color: tabTitleColor }}
+ >
+ {url ?? "Nueva pestaña"}
+ </span>
+ </div>
+ {/* Close X */}
+ <div
+ className="flex items-center justify-center relative flex-shrink-0"
+ style={{
+ width: `${8 * headerScale}px`,
+ height: `${8 * headerScale}px`,
+ borderRadius: "50%",
+ backgroundColor: tabCloseBg,
+ marginLeft: `${8 * headerScale}px`,
+ }}
+ >
+ <div style={{ position: "absolute", width: "100%", height: `${1 * headerScale}px`, backgroundColor: tabCloseColor, transform: "rotate(45deg)" }} />
+ <div style={{ position: "absolute", width: "100%", height: `${1 * headerScale}px`, backgroundColor: tabCloseColor, transform: "rotate(-45deg)" }} />
+ </div>
+ </div>
+
+ {/* Add tab button */}
+ <div
+ className="flex items-center justify-center rounded-full"
+ style={{
+ width: `${addBtnSize}px`,
+ height: `${addBtnSize}px`,
+ marginBottom: `${4 * headerScale}px`,
+ backgroundColor: "rgba(255,255,255,0.2)",
+ border: "1px solid rgba(255,255,255,0.3)",
+ color: "rgba(255,255,255,0.8)",
+ fontSize: `${14 * headerScale}px`,
+ lineHeight: 1,
+ }}
+ >
+ +
+ </div>
+ </div>
+
+ {/* RIGHT: Windows-style buttons */}
+ <div
+ className="flex items-center"
+ style={{ gap: `${winIconGap}px`, marginBottom: `${winIconMB}px`, marginRight: `${winIconMR}px` }}
+ >
+ <div style={{ width: `${12 * headerScale}px`, height: `${1.2 * headerScale}px`, backgroundColor: "rgba(255,255,255,0.5)" }} />
+ <div style={{ width: `${9 * headerScale}px`, height: `${9 * headerScale}px`, border: `${2 * headerScale}px solid rgba(255,255,255,0.5)`, borderRadius: `${1 * headerScale}px` }} />
+ <svg style={{ width: `${12 * headerScale}px`, height: `${12 * headerScale}px` }} fill="none" stroke="rgba(255,255,255,0.5)" viewBox="0 0 24 24">
+ <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2.5} d="M6 18L18 6M6 6l12 12" />
+ </svg>
+ </div>
+ </div>
+
+ {/* ── Content ── */}
+ <div
+ className="flex-1 relative overflow-hidden"
+ style={{
+ backgroundColor: bgColor,
+ borderBottomLeftRadius: `${Math.max(0, cornerRadius - 3)}px`,
+ borderBottomRightRadius: `${Math.max(0, cornerRadius - 3)}px`,
+ }}
+ >
+ {children}
+ </div>
+ </div>
+ );
+}
\ No newline at end of file
diff --git a/app/components/ui/editor/mockups/ChromeGlassMockup.tsx b/app/components/ui/editor/mockups/ChromeGlassMockup.tsx
new file mode 100644
index 0000000..0f41b54
--- /dev/null
+++ b/app/components/ui/editor/mockups/ChromeGlassMockup.tsx
@@ -0,0 +1,227 @@
+"use client";
+
+import type { MockupRenderProps } from "@/types/mockup.types";
+import { hexToRgba } from "@/lib/utils";
+import { deriveSearchBg } from "@/lib/color.utils";
+
+interface ChromeGlassMockupProps extends MockupRenderProps {
+ shadows?: number;
+ roundedCorners?: number;
+}
+
+export function ChromeGlassMockup({
+ children,
+ config,
+ className = "",
+ shadows = 20,
+ roundedCorners
+}: ChromeGlassMockupProps) {
+ const isDark = config.darkMode;
+ const frameColor = config.frameColor;
+ const url = config.url;
+ const cornerRadius = roundedCorners ?? config.cornerRadius;
+ const headerOpacity = config.headerOpacity ?? 100;
+ const headerScale = (config.headerScale || 100) / 100;
+
+ // ── Colores — idénticos a ChromeMockup ──
+ const bgColor = isDark ? "#1e1e1e" : "#ffffff";
+ const tabBarBg = frameColor;
+ const addressBg = frameColor;
+ const tabActiveBg = deriveSearchBg(frameColor);
+ const urlBarBgBase = deriveSearchBg(frameColor);
+ const addressBorder = isDark ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.12)";
+ const textColor = isDark ? "#9ca3af" : "#374151";
+ const iconColor = isDark ? "rgba(255,255,255,0.5)" : "rgba(55,65,81,0.7)";
+ const tabBorder = isDark ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.15)";
+
+ // ── Dimensiones — idénticas a ChromeMockup ──
+ const tabBarH = 32 * headerScale;
+ const tabH = 26 * headerScale;
+ const tabW = 180 * headerScale;
+ const tabPadX = 10 * headerScale;
+ const tabFontSz = 10.5 * headerScale;
+ const tabIconSz = 12 * headerScale;
+ const tabCloseS = 8 * headerScale;
+ const tabML = 8 * headerScale;
+ const tabMT = 3 * headerScale;
+ const tabRadius = 6 * headerScale;
+ const plusSize = 10 * headerScale;
+ const plusML = 6 * headerScale;
+ const winBtnW = 42 * headerScale;
+
+ const addrH = 32 * headerScale;
+ const addrPadX = 8 * headerScale;
+ const navBtnSize = 14 * headerScale;
+ const navGap = 2 * headerScale;
+ const urlH = 26 * headerScale;
+ const urlFontSz = 11 * headerScale;
+ const urlPadX = 12 * headerScale;
+ const rightGap = 2 * headerScale;
+ const iconSz = 14 * headerScale;
+
+ return (
+ <div
+ className={`glass-border relative w-full flex flex-col overflow-hidden ${className}`}
+ style={{
+ borderRadius: `${cornerRadius}px`,
+ boxShadow: shadows > 0
+ ? `0 ${shadows * 0.3}px ${shadows}px rgba(0,0,0,0.5)`
+ : "none",
+ borderTop: "1px solid rgba(255,255,255,0.6)",
+ borderLeft: "1px solid rgba(255,255,255,0.6)",
+ }}
+ >
+ {/* ── ROW 1: Tab bar ── */}
+ <div
+ className="flex items-center select-none shrink-0"
+ style={{
+ height: `${tabBarH}px`,
+ backgroundColor: hexToRgba(tabBarBg, headerOpacity),
+ borderTopLeftRadius: `${cornerRadius}px`,
+ borderTopRightRadius: `${cornerRadius}px`,
+ }}
+ >
+ {/* Active tab */}
+ <div
+ className="flex items-center shrink-0"
+ style={{
+ height: `${tabH}px`,
+ width: `${tabW}px`,
+ padding: `0 ${tabPadX}px`,
+ marginLeft: `${tabML}px`,
+ marginTop: `${tabMT}px`,
+ backgroundColor: hexToRgba(tabActiveBg, headerOpacity),
+ borderRadius: `${tabRadius}px ${tabRadius}px 0 0`,
+ borderTop: `1px solid ${tabBorder}`,
+ borderLeft: `1px solid ${tabBorder}`,
+ borderRight: `1px solid ${tabBorder}`,
+ gap: `${6 * headerScale}px`,
+ }}
+ >
+ {/* Favicon */}
+ <svg style={{ width: `${tabIconSz}px`, height: `${tabIconSz}px`, flexShrink: 0, color: "#2563eb" }} fill="currentColor" viewBox="0 0 24 24">
+ <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2z" />
+ </svg>
+ <span className="truncate flex-1" style={{ fontSize: `${tabFontSz}px`, color: textColor }}>
+ {url?.replace(/^https?:\/\//, "") ?? "Nueva pestaña"}
+ </span>
+ {/* Close X */}
+ <svg style={{ width: `${tabCloseS}px`, height: `${tabCloseS}px`, flexShrink: 0, color: iconColor, opacity: 0.7 }} fill="none" stroke="currentColor" viewBox="0 0 24 24">
+ <path d="M6 18L18 6M6 6l12 12" strokeWidth="2.5" strokeLinecap="round" />
+ </svg>
+ </div>
+
+ {/* New tab + */}
+ <div
+ className="flex items-center justify-center self-center"
+ style={{
+ marginLeft: `${plusML}px`,
+ width: `${plusSize * 2}px`,
+ height: `${plusSize * 2}px`,
+ color: iconColor,
+ opacity: 0.7,
+ }}
+ >
+ <svg style={{ width: `${plusSize}px`, height: `${plusSize}px` }} fill="none" stroke="currentColor" viewBox="0 0 24 24">
+ <path d="M12 4v16m8-8H4" strokeWidth="2.5" strokeLinecap="round" />
+ </svg>
+ </div>
+
+ {/* Windows buttons (right) */}
+ <div className="ml-auto flex h-full" style={{ color: iconColor }}>
+ <div className="flex items-center justify-center" style={{ width: `${winBtnW}px` }}>
+ <svg width={10 * headerScale} height={1 * headerScale} viewBox="0 0 10 1" fill="currentColor"><rect width="10" height="1"/></svg>
+ </div>
+ <div className="flex items-center justify-center" style={{ width: `${winBtnW}px` }}>
+ <svg width={9 * headerScale} height={9 * headerScale} viewBox="0 0 9 9" fill="none" stroke="currentColor">
+ <rect x="0.5" y="0.5" width="8" height="8" strokeWidth="1"/>
+ </svg>
+ </div>
+ <div className="flex items-center justify-center" style={{ width: `${winBtnW}px`, borderTopRightRadius: `${cornerRadius}px` }}>
+ <svg width={10 * headerScale} height={10 * headerScale} viewBox="0 0 10 10" fill="none" stroke="currentColor">
+ <path d="M1 1l8 8M9 1L1 9" strokeWidth="1.2"/>
+ </svg>
+ </div>
+ </div>
+ </div>
+
+ {/* ── ROW 2: Address bar ── */}
+ <div
+ className="flex items-center justify-between select-none shrink-0"
+ style={{
+ height: `${addrH}px`,
+ padding: `0 ${addrPadX}px`,
+ backgroundColor: hexToRgba(addressBg, headerOpacity),
+ borderBottom: `1px solid ${addressBorder}`,
+ gap: `${8 * headerScale}px`,
+ }}
+ >
+ {/* Left nav */}
+ <div className="flex items-center shrink-0" style={{ gap: `${navGap}px`, color: iconColor }}>
+ <div className="p-1.5">
+ <svg width={navBtnSize} height={navBtnSize} viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.5">
+ <path d="M19 12H5M12 19l-7-7 7-7" strokeLinecap="round" strokeLinejoin="round"/>
+ </svg>
+ </div>
+ <div className="p-1.5" style={{ opacity: 0.35 }}>
+ <svg width={navBtnSize} height={navBtnSize} viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.5">
+ <path d="M5 12h14m-7 7l7-7-7-7" strokeLinecap="round" strokeLinejoin="round"/>
+ </svg>
+ </div>
+ <div className="p-1.5">
+ <svg width={navBtnSize} height={navBtnSize} viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2">
+ <path d="M21 12a9 9 0 11-2.12-5.88L21 9m0 0V3m0 6h-6" strokeLinecap="round" strokeLinejoin="round"/>
+ </svg>
+ </div>
+ </div>
+
+ {/* URL bar */}
+ <div className="flex-1">
+ <div
+ className="rounded-full w-full flex items-center"
+ style={{
+ height: `${urlH}px`,
+ padding: `0 ${urlPadX}px`,
+ backgroundColor: hexToRgba(urlBarBgBase, headerOpacity),
+ gap: `${8 * headerScale}px`,
+ color: textColor,
+ }}
+ >
+ <svg style={{ width: `${iconSz * 0.75}px`, height: `${iconSz * 0.75}px`, flexShrink: 0, opacity: 0.6 }} fill="none" stroke="currentColor" viewBox="0 0 24 24">
+ <path d="M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z" strokeWidth="2"/>
+ </svg>
+ <span className="truncate flex-1" style={{ fontSize: `${urlFontSz}px` }}>
+ {url?.replace(/^https?:\/\//, "")}
+ </span>
+ </div>
+ </div>
+
+ {/* Right icons: star + dots */}
+ <div className="flex items-center shrink-0" style={{ gap: `${rightGap}px`, color: iconColor }}>
+ <div className="p-1.5">
+ <svg style={{ width: `${iconSz * 0.85}px`, height: `${iconSz * 0.85}px` }} fill="none" stroke="currentColor" viewBox="0 0 24 24">
+ <path d="M11.049 2.927c.3-.921 1.603-.921 1.902 0l1.519 4.674a1 1 0 00.95.69h4.915c.969 0 1.371 1.24.588 1.81l-3.976 2.888a1 1 0 00-.363 1.118l1.518 4.674c.3.922-.755 1.688-1.538 1.118l-3.976-2.888a1 1 0 00-1.176 0l-3.976 2.888c-.783.57-1.838-.197-1.538-1.118l1.518-4.674a1 1 0 00-.363-1.118l-3.976-2.888c-.784-.57-.38-1.81.588-1.81h4.914a1 1 0 00.951-.69l1.519-4.674z" strokeWidth="2"/>
+ </svg>
+ </div>
+ <div className="p-1.5">
+ <svg style={{ width: `${iconSz * 0.85}px`, height: `${iconSz * 0.85}px` }} fill="none" stroke="currentColor" viewBox="0 0 24 24">
+ <path d="M12 5v.01M12 12v.01M12 19v.01M12 6a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2z" strokeWidth="2.5"/>
+ </svg>
+ </div>
+ </div>
+ </div>
+
+ {/* Content */}
+ <div
+ className="flex-1 relative overflow-hidden"
+ style={{
+ backgroundColor: bgColor,
+ borderBottomLeftRadius: `${Math.max(0, cornerRadius - 3)}px`,
+ borderBottomRightRadius: `${Math.max(0, cornerRadius - 3)}px`,
+ }}
+ >
+ {children}
+ </div>
+ </div>
+ );
+}
\ No newline at end of file
diff --git a/app/components/ui/editor/mockups/ChromeMockup.tsx b/app/components/ui/editor/mockups/ChromeMockup.tsx
new file mode 100644
index 0000000..142942c
--- /dev/null
+++ b/app/components/ui/editor/mockups/ChromeMockup.tsx
@@ -0,0 +1,223 @@
+"use client";
+
+import type { MockupRenderProps } from "@/types/mockup.types";
+import { hexToRgba } from "@/lib/utils";
+import { deriveSearchBg } from "@/lib/color.utils";
+
+interface ChromeMockupProps extends MockupRenderProps {
+ shadows?: number;
+ roundedCorners?: number;
+}
+
+export function ChromeMockup({
+ children,
+ config,
+ className = "",
+ shadows = 20,
+ roundedCorners
+}: ChromeMockupProps) {
+ const isDark = config.darkMode;
+ const frameColor = config.frameColor;
+ const url = config.url;
+ const cornerRadius = roundedCorners ?? config.cornerRadius;
+ const headerOpacity = config.headerOpacity ?? 100;
+
+ const headerScale = (config.headerScale || 100) / 100;
+
+ const opacity = headerOpacity / 100;
+ const bgColor = isDark ? "#1e1e1e" : "#ffffff";
+ // Toda la cabecera deriva de frameColor — igual que BraveMockup
+ const tabBarBg = frameColor; // tab bar = frameColor directo
+ const addressBg = frameColor; // address bar = frameColor directo
+ const tabActiveBg = deriveSearchBg(frameColor); // tab activa = ligeramente más clara/oscura
+ const urlBarBgBase = deriveSearchBg(frameColor); // search bar = mismo derivado
+ const addressBorder = isDark ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.12)";
+ const textColor = isDark ? "#9ca3af" : "#374151";
+ const iconColor = isDark ? "rgba(255,255,255,0.5)" : "rgba(55,65,81,0.7)";
+
+ // Tab bar row
+ const tabBarH = 32 * headerScale;
+ const tabH = 28 * headerScale;
+ const tabW = 180 * headerScale;
+ const tabPadX = 12 * headerScale;
+ const tabFontSz = 10.5 * headerScale;
+ const tabIconSz = 12 * headerScale;
+ const tabML = 8 * headerScale;
+ const tabRadius = 4 * headerScale;
+ const plusSize = 14 * headerScale;
+ const plusML = 4 * headerScale;
+ const winBtnW = 42 * headerScale;
+
+ // Address bar row
+ const addrH = 32 * headerScale;
+ const addrPadX = 8 * headerScale;
+ const navBtnSize = 14 * headerScale;
+ const navGap = 2 * headerScale;
+ const urlH = 26 * headerScale;
+ const urlFontSz = 11 * headerScale;
+ const urlPadX = 12 * headerScale;
+ const rightGap = 2 * headerScale;
+ const iconSz = 14 * headerScale;
+
+ return (
+ <div
+ className={`relative w-full flex flex-col overflow-hidden ${className}`}
+ style={{
+ borderRadius: `${cornerRadius}px`,
+ boxShadow: shadows > 0
+ ? `0 ${shadows * 0.3}px ${shadows}px rgba(0,0,0,0.5)`
+ : "none",
+ }}
+ >
+ {/* ── ROW 1: Tab bar ── */}
+ <div
+ className="flex items-end select-none shrink-0"
+ style={{
+ height: `${tabBarH}px`,
+ backgroundColor: hexToRgba(tabBarBg, headerOpacity),
+ borderTopLeftRadius: `${cornerRadius}px`,
+ borderTopRightRadius: `${cornerRadius}px`,
+ }}
+ >
+ {/* Active tab */}
+ <div
+ className="flex items-center shrink-0"
+ style={{
+ height: `${tabH}px`,
+ width: `${tabW}px`,
+ padding: `0 ${tabPadX}px`,
+ marginLeft: `${tabML}px`,
+ backgroundColor: hexToRgba(tabActiveBg, headerOpacity),
+ borderRadius: `${tabRadius}px ${tabRadius}px 0 0`,
+ borderTop: `1px solid ${isDark ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.15)"}`,
+ borderLeft: `1px solid ${isDark ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.15)"}`,
+ borderRight: `1px solid ${isDark ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.15)"}`,
+ gap: `${8 * headerScale}px`,
+ }}
+ >
+ {/* Favicon */}
+ <svg style={{ width: `${tabIconSz}px`, height: `${tabIconSz}px`, flexShrink: 0, color: "#2563eb" }} fill="currentColor" viewBox="0 0 24 24">
+ <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2z" />
+ </svg>
+ <span className="truncate flex-1" style={{ fontSize: `${tabFontSz}px`, color: textColor }}>
+ {url?.replace(/^https?:\/\//, "") ?? "Nueva pestaña"}
+ </span>
+ {/* Close */}
+ <svg style={{ width: `${tabIconSz}px`, height: `${tabIconSz}px`, flexShrink: 0, color: iconColor }} fill="none" stroke="currentColor" viewBox="0 0 24 24">
+ <path d="M6 18L18 6M6 6l12 12" strokeWidth="2.5" strokeLinecap="round" />
+ </svg>
+ </div>
+
+ {/* New tab + */}
+ <div
+ className="flex items-center justify-center"
+ style={{
+ marginLeft: `${plusML}px`,
+ marginBottom:`${6 * headerScale}px`,
+ width: `${plusSize * 1.8}px`,
+ height: `${plusSize * 1.8}px`,
+ color: iconColor,
+ }}
+ >
+ <svg style={{ width: `${plusSize}px`, height: `${plusSize}px` }} fill="none" stroke="currentColor" viewBox="0 0 24 24">
+ <path d="M12 4v16m8-8H4" strokeWidth="3" strokeLinecap="round" />
+ </svg>
+ </div>
+
+ {/* Windows buttons (right) */}
+ <div className="ml-auto flex h-full" style={{ color: iconColor }}>
+ <div className="flex items-center justify-center" style={{ width: `${winBtnW}px` }}>
+ <svg width={10 * headerScale} height={1 * headerScale} viewBox="0 0 10 1" fill="currentColor"><rect width="10" height="1"/></svg>
+ </div>
+ <div className="flex items-center justify-center" style={{ width: `${winBtnW}px` }}>
+ <svg width={9 * headerScale} height={9 * headerScale} viewBox="0 0 9 9" fill="none" stroke="currentColor">
+ <rect x="0.5" y="0.5" width="8" height="8" strokeWidth="1"/>
+ </svg>
+ </div>
+ <div className="flex items-center justify-center" style={{ width: `${winBtnW}px`, borderTopRightRadius: `${cornerRadius}px` }}>
+ <svg width={10 * headerScale} height={10 * headerScale} viewBox="0 0 10 10" fill="none" stroke="currentColor">
+ <path d="M1 1l8 8M9 1L1 9" strokeWidth="1.2"/>
+ </svg>
+ </div>
+ </div>
+ </div>
+
+ {/* ── ROW 2: Address bar ── */}
+ <div
+ className="flex items-center justify-between select-none shrink-0"
+ style={{
+ height: `${addrH}px`,
+ padding: `0 ${addrPadX}px`,
+ backgroundColor: hexToRgba(addressBg, headerOpacity),
+ borderBottom: `1px solid ${addressBorder}`,
+ gap: `${8 * headerScale}px`,
+ }}
+ >
+ {/* Left nav */}
+ <div className="flex items-center shrink-0" style={{ gap: `${navGap}px`, color: iconColor }}>
+ {/* Back */}
+ <div className="p-1.5">
+ <svg width={navBtnSize} height={navBtnSize} viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.5">
+ <path d="M19 12H5M12 19l-7-7 7-7" strokeLinecap="round" strokeLinejoin="round"/>
+ </svg>
+ </div>
+ {/* Forward (dimmed) */}
+ <div className="p-1.5" style={{ opacity: 0.35 }}>
+ <svg width={navBtnSize} height={navBtnSize} viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.5">
+ <path d="M5 12h14m-7 7l7-7-7-7" strokeLinecap="round" strokeLinejoin="round"/>
+ </svg>
+ </div>
+ {/* Refresh */}
+ <div className="p-1.5">
+ <svg width={navBtnSize} height={navBtnSize} viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2">
+ <path d="M21 12a9 9 0 11-2.12-5.88L21 9m0 0V3m0 6h-6" strokeLinecap="round" strokeLinejoin="round"/>
+ </svg>
+ </div>
+ </div>
+
+ {/* URL bar */}
+ <div className="flex-1">
+ <div
+ className="rounded-full w-full flex items-center"
+ style={{
+ height: `${urlH}px`,
+ padding: `0 ${urlPadX}px`,
+ backgroundColor: hexToRgba(urlBarBgBase, headerOpacity),
+ gap: `${8 * headerScale}px`,
+ color: textColor,
+ }}
+ >
+ <svg style={{ width: `${iconSz * 0.75}px`, height: `${iconSz * 0.75}px`, flexShrink: 0, opacity: 0.6 }} fill="none" stroke="currentColor" viewBox="0 0 24 24">
+ <path d="M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z" strokeWidth="2"/>
+ </svg>
+ <span className="truncate flex-1" style={{ fontSize: `${urlFontSz}px` }}>
+ {url?.replace(/^https?:\/\//, "")}
+ </span>
+ </div>
+ </div>
+
+ {/* Right icons: star + dots */}
+ <div className="flex items-center shrink-0" style={{ gap: `${rightGap}px`, color: iconColor }}>
+ <div className="p-1.5">
+ <svg style={{ width: `${iconSz * 0.85}px`, height: `${iconSz * 0.85}px` }} fill="none" stroke="currentColor" viewBox="0 0 24 24">
+ <path d="M11.049 2.927c.3-.921 1.603-.921 1.902 0l1.519 4.674a1 1 0 00.95.69h4.915c.969 0 1.371 1.24.588 1.81l-3.976 2.888a1 1 0 00-.363 1.118l1.518 4.674c.3.922-.755 1.688-1.538 1.118l-3.976-2.888a1 1 0 00-1.176 0l-3.976 2.888c-.783.57-1.838-.197-1.538-1.118l1.518-4.674a1 1 0 00-.363-1.118l-3.976-2.888c-.784-.57-.38-1.81.588-1.81h4.914a1 1 0 00.951-.69l1.519-4.674z" strokeWidth="2"/>
+ </svg>
+ </div>
+ <div className="p-1.5">
+ <svg style={{ width: `${iconSz * 0.85}px`, height: `${iconSz * 0.85}px` }} fill="none" stroke="currentColor" viewBox="0 0 24 24">
+ <path d="M12 5v.01M12 12v.01M12 19v.01M12 6a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2z" strokeWidth="2.5"/>
+ </svg>
+ </div>
+ </div>
+ </div>
+
+ {/* Content */}
+ <div
+ className="flex-1 relative overflow-hidden"
+ style={{ backgroundColor: bgColor }}
+ >
+ {children}
+ </div>
+ </div>
+ );
+}
\ No newline at end of file
diff --git a/app/components/ui/editor/mockups/GlassUIContainerMockup.tsx b/app/components/ui/editor/mockups/GlassUIContainerMockup.tsx
new file mode 100644
index 0000000..53df07a
--- /dev/null
+++ b/app/components/ui/editor/mockups/GlassUIContainerMockup.tsx
@@ -0,0 +1,41 @@
+"use client";
+
+import type { MockupRenderProps } from "@/types/mockup.types";
+
+interface GlassUIContainerProps extends MockupRenderProps {
+ shadows?: number;
+ roundedCorners?: number;
+}
+
+export function GlassUIContainerMockup({
+ children,
+ config,
+ className = "",
+ shadows = 20,
+ roundedCorners
+}: GlassUIContainerProps) {
+ const cornerRadius = roundedCorners ?? config.cornerRadius ?? 12;
+
+ return (
+ <div
+ className={`glass-border relative w-full flex flex-col overflow-hidden ${className}`}
+ style={{
+ borderRadius: `${cornerRadius}px`,
+ boxShadow: shadows > 0
+ ? `0 ${shadows * 0.3}px ${shadows}px rgba(0,0,0,0.5)`
+ : "none",
+ borderTop: "1px solid rgba(255,255,255,0.6)",
+ borderLeft: "1px solid rgba(255,255,255,0.6)",
+ }}
+ >
+ <div
+ className="flex-1 relative overflow-hidden"
+ style={{
+ borderRadius: `${Math.max(0, cornerRadius - 3)}px`,
+ }}
+ >
+ {children}
+ </div>
+ </div>
+ );
+}
\ No newline at end of file
diff --git a/app/components/ui/editor/mockups/IPhoneSlimMockup.tsx b/app/components/ui/editor/mockups/IPhoneSlimMockup.tsx
new file mode 100644
index 0000000..4d3acd3
--- /dev/null
+++ b/app/components/ui/editor/mockups/IPhoneSlimMockup.tsx
@@ -0,0 +1,252 @@
+"use client";
+
+import { Icon } from "@iconify/react";
+import type { MockupRenderProps } from "@/types/mockup.types";
+import { hexToRgba } from "@/lib/utils";
+
+interface IPhoneSlimMockupProps extends MockupRenderProps {
+ shadows?: number;
+ roundedCorners?: number;
+}
+
+export function IPhoneSlimMockup({
+ children,
+ config,
+ className = "",
+ shadows = 30,
+ roundedCorners
+}: IPhoneSlimMockupProps) {
+ const isDark = config.darkMode;
+ const frameColor = config.frameColor;
+ const cornerRadius = roundedCorners ?? config.cornerRadius;
+ const headerOpacity = config.headerOpacity ?? 100;
+
+ // Escalado proporcional del header (status bar, dynamic island)
+ const headerScale = (config.headerScale || 100) / 100;
+
+ // Valores base para status bar y elementos que escalan
+ const statusBarHeight = 28 * headerScale;
+ const statusBarPaddingX = 24 * headerScale;
+ const timeFontSize = 10 * headerScale;
+ const signalBarWidth = 3 * headerScale;
+ const wifiSize = 14 * headerScale;
+ const batteryWidth = 20 * headerScale;
+ const batteryHeight = 10 * headerScale;
+ const iconsGap = 4 * headerScale;
+
+ // Dynamic Island escalado
+ const dynamicIslandTop = 6 * headerScale;
+ const dynamicIslandMinHeight = 18 * headerScale;
+ const dynamicIslandPaddingX = 8 * headerScale;
+ const dynamicIslandGap = 4 * headerScale;
+ const dotSize = 6 * headerScale;
+
+ // Home indicator
+ const homeIndicatorBottom = 6 * headerScale;
+ const homeIndicatorHeight = 3 * headerScale;
+
+ // Marco exterior
+ const framePadding = 6 * headerScale;
+
+ // Colores según el modo
+ const screenBg = isDark ? "#0a0a0a" : "#fafafa";
+ const statusBarText = isDark ? "#ffffff" : "#000000";
+ const borderColor = isDark ? "#404040" : "#525252";
+
+ return (
+ <div
+ className={`relative flex flex-col ${className}`}
+ >
+ {/* Marco exterior del iPhone - usa frameColor */}
+ <div
+ className="relative flex flex-col"
+ style={{
+ padding: `${framePadding}px`,
+ backgroundColor: hexToRgba(frameColor, headerOpacity),
+ borderRadius: `${cornerRadius * 2.5}px`,
+ boxShadow: shadows > 0
+ ? `0 ${shadows}px ${shadows * 2}px rgba(0,0,0,0.4)`
+ : 'none',
+ border: `1px solid ${borderColor}`,
+ }}
+ >
+ {/* Botones laterales izquierdos */}
+ <div
+ className="absolute -left-[5px] top-[15%] w-[4px] h-[6%] rounded-l-sm"
+ style={{
+ backgroundColor: hexToRgba(frameColor, headerOpacity),
+ borderLeft: `1px solid ${borderColor}`,
+ borderTop: `1px solid ${borderColor}`,
+ borderBottom: `1px solid ${borderColor}`,
+ }}
+ />
+ <div
+ className="absolute -left-[5px] top-[24%] w-[4px] h-[12%] rounded-l-sm"
+ style={{
+ backgroundColor: hexToRgba(frameColor, headerOpacity),
+ borderLeft: `1px solid ${borderColor}`,
+ borderTop: `1px solid ${borderColor}`,
+ borderBottom: `1px solid ${borderColor}`,
+ }}
+ />
+
+ {/* Botón lateral derecho (power) */}
+ <div
+ className="absolute -right-[5px] top-[28%] w-[4px] h-[14%] rounded-r-sm"
+ style={{
+ backgroundColor: hexToRgba(frameColor, headerOpacity),
+ borderRight: `1px solid ${borderColor}`,
+ borderTop: `1px solid ${borderColor}`,
+ borderBottom: `1px solid ${borderColor}`,
+ }}
+ />
+
+ {/* Pantalla interior */}
+ <div
+ className="relative w-full h-full overflow-hidden flex flex-col border border-black"
+ style={{
+ backgroundColor: '#000000',
+ borderRadius: `${cornerRadius * 2.2}px`,
+ }}
+ >
+ {/* Dynamic Island */}
+ <div
+ className="absolute left-1/2 -translate-x-1/2 w-[28%] bg-black rounded-full z-30 flex items-center justify-end"
+ style={{
+ top: `${dynamicIslandTop}px`,
+ minHeight: `${dynamicIslandMinHeight}px`,
+ height: '4%',
+ padding: `0 ${dynamicIslandPaddingX}px`,
+ gap: `${dynamicIslandGap}px`,
+ boxShadow: '0 2px 8px rgba(0,0,0,0.3)'
+ }}
+ >
+ <div
+ className="bg-indigo-500/40 rounded-full blur-[1px]"
+ style={{ width: `${dotSize}px`, height: `${dotSize}px` }}
+ />
+ <div
+ className="bg-neutral-800 rounded-full border border-white/10"
+ style={{ width: `${dotSize}px`, height: `${dotSize}px` }}
+ />
+ </div>
+
+ {/* Status Bar */}
+ <div
+ className="absolute top-0 w-full flex items-center justify-between z-20"
+ style={{
+ height: `max(${statusBarHeight}px, 7%)`,
+ padding: `0 ${statusBarPaddingX}px`,
+ }}
+ >
+ <span
+ className="font-bold tracking-tight"
+ style={{
+ fontSize: `${timeFontSize}px`,
+ color: statusBarText
+ }}
+ >
+ 9:41
+ </span>
+ <div
+ className="flex items-center opacity-90"
+ style={{ gap: `${iconsGap}px` }}
+ >
+ {/* Signal bars */}
+ <div
+ className="flex items-end"
+ style={{ gap: '1px', height: `${batteryHeight}px` }}
+ >
+ <div
+ className="rounded-full"
+ style={{
+ width: `${signalBarWidth}px`,
+ height: '40%',
+ backgroundColor: statusBarText
+ }}
+ />
+ <div
+ className="rounded-full"
+ style={{
+ width: `${signalBarWidth}px`,
+ height: '60%',
+ backgroundColor: statusBarText
+ }}
+ />
+ <div
+ className="rounded-full"
+ style={{
+ width: `${signalBarWidth}px`,
+ height: '80%',
+ backgroundColor: statusBarText
+ }}
+ />
+ <div
+ className="rounded-full"
+ style={{
+ width: `${signalBarWidth}px`,
+ height: '100%',
+ backgroundColor: statusBarText
+ }}
+ />
+ </div>
+ {/* WiFi */}
+ <Icon
+ icon="mdi:wifi"
+ style={{
+ width: `${wifiSize}px`,
+ height: `${wifiSize}px`,
+ color: statusBarText
+ }}
+ />
+ {/* Battery */}
+ <div
+ className="border rounded-[3px] p-[1px] relative"
+ style={{
+ width: `${batteryWidth}px`,
+ height: `${batteryHeight}px`,
+ borderColor: `${statusBarText}50`
+ }}
+ >
+ <div
+ className="h-full w-[90%] rounded-[1px]"
+ style={{ backgroundColor: statusBarText }}
+ />
+ </div>
+ </div>
+ </div>
+
+ {/* Contenido de pantalla - donde va el video */}
+ <div
+ className="w-full h-full relative overflow-hidden"
+ style={{
+ paddingTop: `max(${statusBarHeight}px, 8%)`,
+ }}
+ >
+ {/* Background layer only for content area below status bar */}
+ <div
+ className="absolute inset-0"
+ style={{
+ backgroundColor: screenBg,
+ top: `max(${statusBarHeight}px, 8%)`,
+ }}
+ />
+ <div className="relative z-10 w-full h-full">
+ {children}
+ </div>
+ </div>
+
+ {/* Home indicator */}
+ <div
+ className="absolute left-1/2 -translate-x-1/2 w-[35%] rounded-full z-20"
+ style={{
+ bottom: `${homeIndicatorBottom}px`,
+ height: `${homeIndicatorHeight}px`,
+ backgroundColor: `${statusBarText}15`
+ }}
+ />
+ </div>
+ </div>
+ </div>
+ );
+}
diff --git a/app/components/ui/editor/mockups/MacosContainerGlassMockup.tsx b/app/components/ui/editor/mockups/MacosContainerGlassMockup.tsx
new file mode 100644
index 0000000..5c54e82
--- /dev/null
+++ b/app/components/ui/editor/mockups/MacosContainerGlassMockup.tsx
@@ -0,0 +1,72 @@
+"use client";
+
+import type { MockupRenderProps } from "@/types/mockup.types";
+
+interface MacosContainerGlassMockupProps extends MockupRenderProps {
+ shadows?: number;
+ roundedCorners?: number;
+}
+
+export function MacosContainerGlassMockup({
+ children,
+ config,
+ className = "",
+ shadows = 20,
+ roundedCorners
+}: MacosContainerGlassMockupProps) {
+ const cornerRadius = roundedCorners ?? config.cornerRadius ?? 12;
+ const headerScale = (config.headerScale || 100) / 100;
+ const dotSize = 8 * headerScale;
+ const dotGap = 8 * headerScale;
+ const headerPaddingX = 4 * headerScale;
+ const headerPaddingB = 8 * headerScale;
+ return (
+ <div
+ className={`glass-border relative w-full flex flex-col overflow-hidden ${className}`}
+ style={{
+ borderRadius: `${cornerRadius}px`,
+ boxShadow: shadows > 0
+ ? `0 ${shadows * 0.3}px ${shadows}px rgba(0,0,0,0.5)`
+ : "none",
+ borderTop: "1px solid rgba(255,255,255,0.6)",
+ borderLeft: "1px solid rgba(255,255,255,0.6)",
+ }}
+ >
+ {/* Mini header con tres puntos escalables */}
+ <div
+ className="flex items-center shrink-0"
+ style={{
+ paddingLeft: `${headerPaddingX}px`,
+ paddingRight: `${headerPaddingX}px`,
+ paddingBottom: `${headerPaddingB}px`,
+ paddingTop: `${headerPaddingX}px`,
+ }}
+ >
+ <div className="flex" style={{ gap: `${dotGap}px` }}>
+ <div
+ className="rounded-full bg-white/80 shadow-sm"
+ style={{ width: `${dotSize}px`, height: `${dotSize}px` }}
+ />
+ <div
+ className="rounded-full bg-white/80 shadow-sm"
+ style={{ width: `${dotSize}px`, height: `${dotSize}px` }}
+ />
+ <div
+ className="rounded-full bg-white/80 shadow-sm"
+ style={{ width: `${dotSize}px`, height: `${dotSize}px` }}
+ />
+ </div>
+ </div>
+
+ {/* Contenido */}
+ <div
+ className="flex-1 relative overflow-hidden"
+ style={{
+ borderRadius: `${Math.max(0, cornerRadius - 3)}px`,
+ }}
+ >
+ {children}
+ </div>
+ </div>
+ );
+}
\ No newline at end of file
diff --git a/app/components/ui/editor/mockups/MacosDarkIdeMockup.tsx b/app/components/ui/editor/mockups/MacosDarkIdeMockup.tsx
new file mode 100644
index 0000000..35e5edd
--- /dev/null
+++ b/app/components/ui/editor/mockups/MacosDarkIdeMockup.tsx
@@ -0,0 +1,132 @@
+"use client";
+
+import type { MockupRenderProps } from "@/types/mockup.types";
+import { hexToRgba } from "@/lib/utils";
+import { deriveSearchBg } from "@/lib/color.utils";
+
+interface MacosDarkIdeMockupProps extends MockupRenderProps {
+ shadows?: number;
+ roundedCorners?: number;
+}
+
+export function MacosDarkIdeMockup({
+ children,
+ config,
+ className = "",
+ shadows = 20,
+ roundedCorners
+}: MacosDarkIdeMockupProps) {
+ const isDark = config.darkMode;
+ const frameColor = config.frameColor;
+ const url = config.url;
+ const cornerRadius = roundedCorners ?? config.cornerRadius;
+ const headerOpacity = config.headerOpacity ?? 100;
+ const headerScale = (config.headerScale || 100) / 100;
+
+ const headerHeight = 35 * headerScale;
+ const menuFontSize = 12 * headerScale;
+ const menuPaddingX = 8 * headerScale;
+ const menuPaddingY = 4 * headerScale;
+ const menuGap = 4 * headerScale;
+ const headerPaddingX = 12 * headerScale;
+ const searchHeight = 22 * headerScale;
+ const searchIconSize = 10 * headerScale;
+ const searchFontSize = 11 * headerScale;
+ const searchPaddingX = 8 * headerScale;
+ const searchGap = 6 * headerScale;
+
+ const bgColor = isDark ? "#1e1e1e" : "#f3f3f3";
+ const borderColor = isDark ? "rgba(255,255,255,0.05)" : "rgba(0,0,0,0.1)";
+ const textColor = isDark ? "#cccccc" : "#333333";
+ const searchBorder = isDark ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.15)";
+ const searchBgBase = deriveSearchBg(frameColor);
+
+ return (
+ <div
+ className={`relative w-full flex flex-col overflow-hidden ${className}`}
+ style={{
+ borderRadius: `${cornerRadius}px`,
+ boxShadow: shadows > 0
+ ? `0 ${shadows * 0.3}px ${shadows}px rgba(0,0,0,0.5)`
+ : "none",
+ }}
+ >
+ {/* Title Bar */}
+ <div
+ className="flex items-center justify-between select-none shrink-0"
+ style={{
+ height: `${headerHeight}px`,
+ paddingLeft: `${headerPaddingX}px`,
+ paddingRight: `${headerPaddingX}px`,
+ backgroundColor: hexToRgba(frameColor, headerOpacity),
+ borderBottom: `1px solid ${borderColor}`,
+ borderTopLeftRadius: `${cornerRadius}px`,
+ borderTopRightRadius: `${cornerRadius}px`,
+ color: textColor,
+ }}
+ >
+ {/* Left: macOS dots + menu items */}
+ <div className="flex items-center" style={{ gap: `${menuGap * 2}px` }}>
+ {/* Traffic lights */}
+ <div className="flex items-center" style={{ gap: `${6 * headerScale}px` }}>
+ <div style={{ width: `${10 * headerScale}px`, height: `${10 * headerScale}px`, borderRadius: "50%", backgroundColor: "#ff5f57", border: "1px solid #e0443e" }} />
+ <div style={{ width: `${10 * headerScale}px`, height: `${10 * headerScale}px`, borderRadius: "50%", backgroundColor: "#febc2e", border: "1px solid #d89f24" }} />
+ <div style={{ width: `${10 * headerScale}px`, height: `${10 * headerScale}px`, borderRadius: "50%", backgroundColor: "#28c840", border: "1px solid #1aab29" }} />
+ </div>
+
+ {/* Menu items */}
+ <div className="flex items-center" style={{ fontSize: `${menuFontSize}px`, color: isDark ? "#999999" : "#555555" }}>
+ {["File", "Edit", "Selection", "View", "Go"].map((item, i) => (
+ <span
+ key={item}
+ className={`cursor-default ${i >= 3 ? "hidden md:block" : ""}`}
+ style={{ padding: `${menuPaddingY}px ${menuPaddingX}px` }}
+ >
+ {item}
+ </span>
+ ))}
+ </div>
+ </div>
+
+ {/* Center: Search bar */}
+ <div
+ className="flex-1 flex justify-center"
+ style={{ padding: `0 ${headerPaddingX}px`, maxWidth: `${400 * headerScale}px` }}
+ >
+ <div
+ className="flex items-center justify-center w-full rounded-md cursor-text"
+ style={{
+ height: `${searchHeight}px`,
+ gap: `${searchGap}px`,
+ padding: `0 ${searchPaddingX}px`,
+ backgroundColor: hexToRgba(searchBgBase, headerOpacity),
+ border: `1px solid ${searchBorder}`,
+ }}
+ >
+ <svg style={{ width: `${searchIconSize}px`, height: `${searchIconSize}px`, opacity: 0.5, flexShrink: 0 }} fill="none" stroke="currentColor" viewBox="0 0 24 24">
+ <path strokeLinecap="round" strokeLinejoin="round" strokeWidth="2.5" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"/>
+ </svg>
+ <span className="truncate" style={{ fontSize: `${searchFontSize}px`, color: textColor }}>
+ {url || "freeshot"}
+ </span>
+ </div>
+ </div>
+
+ {/* Right: hamburger */}
+ <div className="flex items-center justify-end" style={{ width: `${80 * headerScale}px`, color: isDark ? "rgba(163,163,163,0.8)" : "rgba(100,100,100,0.8)" }}>
+ <svg style={{ width: `${14 * headerScale}px`, height: `${14 * headerScale}px` }} fill="none" stroke="currentColor" viewBox="0 0 24 24">
+ <path d="M4 6h16M4 12h16M4 18h16" strokeWidth="1.5" strokeLinecap="round"/>
+ </svg>
+ </div>
+ </div>
+
+ {/* Content */}
+ <div
+ className="flex-1 relative overflow-hidden"
+ style={{ backgroundColor: bgColor }}
+ >
+ {children}
+ </div>
+ </div>
+ );
+}
\ No newline at end of file
diff --git a/app/components/ui/editor/mockups/MacosGhostGlassMockup.tsx b/app/components/ui/editor/mockups/MacosGhostGlassMockup.tsx
new file mode 100644
index 0000000..afb9703
--- /dev/null
+++ b/app/components/ui/editor/mockups/MacosGhostGlassMockup.tsx
@@ -0,0 +1,194 @@
+"use client";
+
+import { Icon } from "@iconify/react";
+import type { MockupRenderProps } from "@/types/mockup.types";
+import { hexToRgba } from "@/lib/utils";
+import { deriveSearchBg } from "@/lib/color.utils";
+
+interface MacosGhostGlassMockupProps extends MockupRenderProps {
+ shadows?: number;
+ roundedCorners?: number;
+}
+
+export function MacosGhostGlassMockup({
+ children,
+ config,
+ className = "",
+ shadows = 20,
+ roundedCorners
+}: MacosGhostGlassMockupProps) {
+ const isDark = config.darkMode;
+ const frameColor = config.frameColor;
+ const url = config.url;
+ const cornerRadius = roundedCorners ?? config.cornerRadius;
+ const headerOpacity = config.headerOpacity ?? 100;
+
+ // Factor de escala para el header (0.5 a 1.5)
+ const headerScale = (config.headerScale || 100) / 100;
+
+ // Colores según el modo
+ const bgColor = isDark ? "#1e1e1e" : "#f9f9f9";
+ const borderColor = isDark ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.1)";
+ const textColor = isDark ? "#9ca3af" : "#6b7280";
+ const urlBarBorder = isDark ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.15)";
+
+ const urlBarBgBase = deriveSearchBg(frameColor);
+ // Valores base escalados proporcionalmente
+ const baseHeight = 36;
+ const basePadding = 12;
+ const baseGap = 12;
+ const baseButtonSize = 10;
+ const baseIconSize = 14;
+ const baseUrlBarHeight = 24;
+ const baseFontSize = 10;
+
+ // Aplicar escala
+ const headerHeight = baseHeight * headerScale;
+ const headerPadding = basePadding * headerScale;
+ const buttonGroupGap = 6 * headerScale;
+ const navGap = 6 * headerScale;
+ const buttonSize = baseButtonSize * headerScale;
+ const iconSize = baseIconSize * headerScale;
+ const urlBarHeight = baseUrlBarHeight * headerScale;
+ const fontSize = baseFontSize * headerScale;
+ const urlBarPadding = 8 * headerScale;
+ const urlBarMargin = 16 * headerScale;
+ const rightGroupGap = 10 * headerScale;
+
+ return (
+ <div
+ className={`glass-border relative w-full flex flex-col overflow-hidden ${className}`}
+ style={{
+ borderRadius: `${cornerRadius}px`,
+ boxShadow: shadows > 0
+ ? `0 ${shadows * 0.3}px ${shadows}px rgba(0,0,0,0.5)`
+ : 'none',
+ borderTop: "1px solid rgba(255,255,255,0.6)",
+ borderLeft: "1px solid rgba(255,255,255,0.6)",
+ }}
+ >
+ {/* Header del navegador - usa frameColor como color de fondo */}
+ <div
+ className="flex items-center justify-between select-none shrink-0"
+ style={{
+ height: `${headerHeight}px`,
+ padding: `0 ${headerPadding}px`,
+ backgroundColor: hexToRgba(frameColor, headerOpacity),
+ borderBottom: `1px solid ${borderColor}`,
+ borderTopLeftRadius: `${cornerRadius}px`,
+ borderTopRightRadius: `${cornerRadius}px`,
+ }}
+ >
+ {/* Grupo izquierdo: botones de ventana + navegación */}
+ <div
+ className="flex items-center"
+ style={{ gap: `${baseGap * headerScale}px` }}
+ >
+ {/* Botones de ventana macOS */}
+ <div className="flex" style={{ gap: `${buttonGroupGap}px` }}>
+ <div
+ className="rounded-full border border-gray-400"
+ style={{ width: `${buttonSize}px`, height: `${buttonSize}px` }}
+ />
+ <div
+ className="rounded-full border border-gray-400"
+ style={{ width: `${buttonSize}px`, height: `${buttonSize}px` }}
+ />
+ <div
+ className="rounded-full border border-gray-400"
+ style={{ width: `${buttonSize}px`, height: `${buttonSize}px` }}
+ />
+ </div>
+
+ {/* Controles de navegación */}
+ <div
+ className="flex items-center"
+ style={{ gap: `${navGap}px`, color: textColor }}
+ >
+ <Icon
+ icon="mdi:menu"
+ style={{ width: `${iconSize}px`, height: `${iconSize}px` }}
+ />
+ <Icon
+ icon="mdi:chevron-left"
+ style={{ width: `${iconSize}px`, height: `${iconSize}px` }}
+ />
+ <Icon
+ icon="mdi:chevron-right"
+ className="opacity-40"
+ style={{ width: `${iconSize}px`, height: `${iconSize}px` }}
+ />
+ </div>
+ </div>
+
+ {/* Barra de URL central */}
+ <div
+ className="flex-1 max-w-xl"
+ style={{ margin: `0 ${urlBarMargin}px` }}
+ >
+ <div
+ className="rounded w-full flex items-center justify-between"
+ style={{
+ height: `${urlBarHeight}px`,
+ padding: `0 ${urlBarPadding}px`,
+ backgroundColor: hexToRgba(urlBarBgBase, headerOpacity),
+ border: `1px solid ${urlBarBorder}`,
+ color: textColor,
+ }}
+ >
+ <Icon
+ icon="mdi:lock"
+ className="opacity-60"
+ style={{
+ width: `${buttonSize}px`,
+ height: `${buttonSize}px`,
+ flexShrink: 0,
+ }}
+ />
+ <span
+ className="flex-1 text-center font-medium truncate"
+ style={{
+ fontSize: `${fontSize}px`,
+ padding: `0 ${urlBarPadding}px`,
+ }}
+ >
+ {url}
+ </span>
+ <Icon
+ icon="mdi:refresh"
+ className="opacity-60"
+ style={{
+ width: `${buttonSize}px`,
+ height: `${buttonSize}px`,
+ flexShrink: 0,
+ }}
+ />
+ </div>
+ </div>
+
+ {/* Grupo derecho: acciones */}
+ <div
+ className="flex items-center"
+ style={{ gap: `${rightGroupGap}px`, color: textColor }}
+ >
+ <Icon icon="mdi:download" style={{ width: `${iconSize}px`, height: `${iconSize}px` }} />
+ <Icon icon="mdi:upload" style={{ width: `${iconSize}px`, height: `${iconSize}px` }} />
+ <Icon icon="mdi:plus" style={{ width: `${iconSize}px`, height: `${iconSize}px` }} />
+ <Icon icon="mdi:content-copy" style={{ width: `${iconSize}px`, height: `${iconSize}px` }} />
+ </div>
+ </div>
+
+ {/* Contenido del navegador - donde va el video */}
+ <div
+ className="flex-1 relative overflow-hidden"
+ style={{
+ backgroundColor: bgColor,
+ borderBottomLeftRadius: `${Math.max(0, cornerRadius - 3)}px`,
+ borderBottomRightRadius: `${Math.max(0, cornerRadius - 3)}px`,
+ }}
+ >
+ {children}
+ </div>
+ </div>
+ );
+}
diff --git a/app/components/ui/editor/mockups/MacosGhostIdeMockup.tsx b/app/components/ui/editor/mockups/MacosGhostIdeMockup.tsx
new file mode 100644
index 0000000..f2b9ef6
--- /dev/null
+++ b/app/components/ui/editor/mockups/MacosGhostIdeMockup.tsx
@@ -0,0 +1,132 @@
+"use client";
+
+import type { MockupRenderProps } from "@/types/mockup.types";
+import { hexToRgba } from "@/lib/utils";
+import { deriveSearchBg } from "@/lib/color.utils";
+
+interface MacosGhostIdeMockupProps extends MockupRenderProps {
+ shadows?: number;
+ roundedCorners?: number;
+}
+
+export function MacosGhostIdeMockup({
+ children,
+ config,
+ className = "",
+ shadows = 20,
+ roundedCorners
+}: MacosGhostIdeMockupProps) {
+ const isDark = config.darkMode;
+ const frameColor = config.frameColor;
+ const url = config.url;
+ const cornerRadius = roundedCorners ?? config.cornerRadius;
+ const headerOpacity = config.headerOpacity ?? 100;
+ const headerScale = (config.headerScale || 100) / 100;
+
+ const headerHeight = 35 * headerScale;
+ const menuFontSize = 12 * headerScale;
+ const menuPaddingX = 8 * headerScale;
+ const menuPaddingY = 4 * headerScale;
+ const menuGap = 4 * headerScale;
+ const headerPaddingX = 12 * headerScale;
+ const searchHeight = 22 * headerScale;
+ const searchIconSize = 10 * headerScale;
+ const searchFontSize = 11 * headerScale;
+ const searchPaddingX = 8 * headerScale;
+ const searchGap = 6 * headerScale;
+
+ const bgColor = isDark ? "#1e1e1e" : "#f3f3f3";
+ const borderColor = isDark ? "rgba(255,255,255,0.05)" : "rgba(0,0,0,0.1)";
+ const textColor = isDark ? "#cccccc" : "#333333";
+ const searchBorder = isDark ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.15)";
+ const searchBgBase = deriveSearchBg(frameColor);
+
+ return (
+ <div
+ className={`relative w-full flex flex-col overflow-hidden ${className}`}
+ style={{
+ borderRadius: `${cornerRadius}px`,
+ boxShadow: shadows > 0
+ ? `0 ${shadows * 0.3}px ${shadows}px rgba(0,0,0,0.5)`
+ : "none",
+ }}
+ >
+ {/* Title Bar */}
+ <div
+ className="flex items-center justify-between select-none shrink-0"
+ style={{
+ height: `${headerHeight}px`,
+ paddingLeft: `${headerPaddingX}px`,
+ paddingRight: `${headerPaddingX}px`,
+ backgroundColor: hexToRgba(frameColor, headerOpacity),
+ borderBottom: `1px solid ${borderColor}`,
+ borderTopLeftRadius: `${cornerRadius}px`,
+ borderTopRightRadius: `${cornerRadius}px`,
+ color: textColor,
+ }}
+ >
+ {/* Left: ghost dots + menu items */}
+ <div className="flex items-center" style={{ gap: `${menuGap * 2}px` }}>
+ {/* Ghost dots */}
+ <div className="flex items-center" style={{ gap: `${6 * headerScale}px` }}>
+ <div style={{ width: `${12 * headerScale}px`, height: `${12 * headerScale}px`, borderRadius: "50%", backgroundColor: "transparent", border: "1px solid rgba(255,255,255,0.2)" }} />
+ <div style={{ width: `${12 * headerScale}px`, height: `${12 * headerScale}px`, borderRadius: "50%", backgroundColor: "transparent", border: "1px solid rgba(255,255,255,0.2)" }} />
+ <div style={{ width: `${12 * headerScale}px`, height: `${12 * headerScale}px`, borderRadius: "50%", backgroundColor: "transparent", border: "1px solid rgba(255,255,255,0.2)" }} />
+ </div>
+
+ {/* Menu items */}
+ <div className="flex items-center" style={{ fontSize: `${menuFontSize}px`, color: isDark ? "#999999" : "#555555" }}>
+ {["File", "Edit", "Selection", "View", "Go"].map((item, i) => (
+ <span
+ key={item}
+ className={`cursor-default ${i >= 3 ? "hidden md:block" : ""}`}
+ style={{ padding: `${menuPaddingY}px ${menuPaddingX}px` }}
+ >
+ {item}
+ </span>
+ ))}
+ </div>
+ </div>
+
+ {/* Center: Search bar */}
+ <div
+ className="flex-1 flex justify-center"
+ style={{ padding: `0 ${headerPaddingX}px`, maxWidth: `${400 * headerScale}px` }}
+ >
+ <div
+ className="flex items-center justify-center w-full rounded-md cursor-text"
+ style={{
+ height: `${searchHeight}px`,
+ gap: `${searchGap}px`,
+ padding: `0 ${searchPaddingX}px`,
+ backgroundColor: hexToRgba(searchBgBase, headerOpacity),
+ border: `1px solid ${searchBorder}`,
+ }}
+ >
+ <svg style={{ width: `${searchIconSize}px`, height: `${searchIconSize}px`, opacity: 0.5, flexShrink: 0 }} fill="none" stroke="currentColor" viewBox="0 0 24 24">
+ <path strokeLinecap="round" strokeLinejoin="round" strokeWidth="2.5" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z" />
+ </svg>
+ <span className="truncate" style={{ fontSize: `${searchFontSize}px`, color: textColor }}>
+ {url || "freeshot"}
+ </span>
+ </div>
+ </div>
+
+ {/* Right: hamburger */}
+ <div className="flex items-center justify-end" style={{ width: `${80 * headerScale}px`, color: isDark ? "rgba(163,163,163,0.8)" : "rgba(100,100,100,0.8)" }}>
+ <svg style={{ width: `${14 * headerScale}px`, height: `${14 * headerScale}px` }} fill="none" stroke="currentColor" viewBox="0 0 24 24">
+ <path d="M4 6h16M4 12h16M4 18h16" strokeWidth="1.5" strokeLinecap="round" />
+ </svg>
+ </div>
+ </div>
+
+ {/* Content */}
+ <div
+ className="flex-1 relative overflow-hidden"
+ style={{ backgroundColor: bgColor }}
+ >
+ {children}
+ </div>
+ </div>
+ );
+}
\ No newline at end of file
diff --git a/app/components/ui/editor/mockups/MacosGhostMockup.tsx b/app/components/ui/editor/mockups/MacosGhostMockup.tsx
new file mode 100644
index 0000000..11a5434
--- /dev/null
+++ b/app/components/ui/editor/mockups/MacosGhostMockup.tsx
@@ -0,0 +1,188 @@
+"use client";
+
+import { Icon } from "@iconify/react";
+import type { MockupRenderProps } from "@/types/mockup.types";
+import { hexToRgba } from "@/lib/utils";
+import { deriveSearchBg } from "@/lib/color.utils";
+
+interface MacosGhostMockupProps extends MockupRenderProps {
+ shadows?: number;
+ roundedCorners?: number;
+}
+
+export function MacosGhostMockup({
+ children,
+ config,
+ className = "",
+ shadows = 20,
+ roundedCorners
+}: MacosGhostMockupProps) {
+ const isDark = config.darkMode;
+ const frameColor = config.frameColor;
+ const url = config.url;
+ const cornerRadius = roundedCorners ?? config.cornerRadius;
+ const headerOpacity = config.headerOpacity ?? 100;
+
+ // Factor de escala para el header (0.5 a 1.5)
+ const headerScale = (config.headerScale || 100) / 100;
+
+ // Colores según el modo
+ const bgColor = isDark ? "#1e1e1e" : "#f9f9f9";
+ const borderColor = isDark ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.1)";
+ const textColor = isDark ? "#9ca3af" : "#6b7280";
+ const urlBarBorder = isDark ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.15)";
+
+ const urlBarBgBase = deriveSearchBg(frameColor);
+ // Valores base escalados proporcionalmente
+ const baseHeight = 36;
+ const basePadding = 12;
+ const baseGap = 12;
+ const baseButtonSize = 10;
+ const baseIconSize = 14;
+ const baseUrlBarHeight = 24;
+ const baseFontSize = 10;
+
+ // Aplicar escala
+ const headerHeight = baseHeight * headerScale;
+ const headerPadding = basePadding * headerScale;
+ const buttonGroupGap = 6 * headerScale;
+ const navGap = 6 * headerScale;
+ const buttonSize = baseButtonSize * headerScale;
+ const iconSize = baseIconSize * headerScale;
+ const urlBarHeight = baseUrlBarHeight * headerScale;
+ const fontSize = baseFontSize * headerScale;
+ const urlBarPadding = 8 * headerScale;
+ const urlBarMargin = 16 * headerScale;
+ const rightGroupGap = 10 * headerScale;
+
+ return (
+ <div
+ className={`relative w-full flex flex-col overflow-hidden ${className}`}
+ style={{
+ borderRadius: `${cornerRadius}px`,
+ boxShadow: shadows > 0
+ ? `0 ${shadows * 0.3}px ${shadows}px rgba(0,0,0,0.5)`
+ : 'none',
+ }}
+ >
+ {/* Header del navegador - usa frameColor como color de fondo */}
+ <div
+ className="flex items-center justify-between select-none shrink-0"
+ style={{
+ height: `${headerHeight}px`,
+ padding: `0 ${headerPadding}px`,
+ backgroundColor: hexToRgba(frameColor, headerOpacity),
+ borderBottom: `1px solid ${borderColor}`,
+ borderTopLeftRadius: `${cornerRadius}px`,
+ borderTopRightRadius: `${cornerRadius}px`,
+ }}
+ >
+ {/* Grupo izquierdo: botones de ventana + navegación */}
+ <div
+ className="flex items-center"
+ style={{ gap: `${baseGap * headerScale}px` }}
+ >
+ {/* Botones de ventana macOS */}
+ <div className="flex" style={{ gap: `${buttonGroupGap}px` }}>
+ <div
+ className="rounded-full border border-gray-400"
+ style={{ width: `${buttonSize}px`, height: `${buttonSize}px` }}
+ />
+ <div
+ className="rounded-full border border-gray-400"
+ style={{ width: `${buttonSize}px`, height: `${buttonSize}px` }}
+ />
+ <div
+ className="rounded-full border border-gray-400"
+ style={{ width: `${buttonSize}px`, height: `${buttonSize}px` }}
+ />
+ </div>
+
+ {/* Controles de navegación */}
+ <div
+ className="flex items-center"
+ style={{ gap: `${navGap}px`, color: textColor }}
+ >
+ <Icon
+ icon="mdi:menu"
+ style={{ width: `${iconSize}px`, height: `${iconSize}px` }}
+ />
+ <Icon
+ icon="mdi:chevron-left"
+ style={{ width: `${iconSize}px`, height: `${iconSize}px` }}
+ />
+ <Icon
+ icon="mdi:chevron-right"
+ className="opacity-40"
+ style={{ width: `${iconSize}px`, height: `${iconSize}px` }}
+ />
+ </div>
+ </div>
+
+ {/* Barra de URL central */}
+ <div
+ className="flex-1 max-w-xl"
+ style={{ margin: `0 ${urlBarMargin}px` }}
+ >
+ <div
+ className="rounded w-full flex items-center justify-between"
+ style={{
+ height: `${urlBarHeight}px`,
+ padding: `0 ${urlBarPadding}px`,
+ backgroundColor: hexToRgba(urlBarBgBase, headerOpacity),
+ border: `1px solid ${urlBarBorder}`,
+ color: textColor,
+ }}
+ >
+ <Icon
+ icon="mdi:lock"
+ className="opacity-60"
+ style={{
+ width: `${buttonSize}px`,
+ height: `${buttonSize}px`,
+ flexShrink: 0,
+ }}
+ />
+ <span
+ className="flex-1 text-center font-medium truncate"
+ style={{
+ fontSize: `${fontSize}px`,
+ padding: `0 ${urlBarPadding}px`,
+ }}
+ >
+ {url}
+ </span>
+ <Icon
+ icon="mdi:refresh"
+ className="opacity-60"
+ style={{
+ width: `${buttonSize}px`,
+ height: `${buttonSize}px`,
+ flexShrink: 0,
+ }}
+ />
+ </div>
+ </div>
+
+ {/* Grupo derecho: acciones */}
+ <div
+ className="flex items-center"
+ style={{ gap: `${rightGroupGap}px`, color: textColor }}
+ >
+ <Icon icon="mdi:download" style={{ width: `${iconSize}px`, height: `${iconSize}px` }} />
+ <Icon icon="mdi:upload" style={{ width: `${iconSize}px`, height: `${iconSize}px` }} />
+ <Icon icon="mdi:plus" style={{ width: `${iconSize}px`, height: `${iconSize}px` }} />
+ <Icon icon="mdi:content-copy" style={{ width: `${iconSize}px`, height: `${iconSize}px` }} />
+ </div>
+ </div>
+
+ {/* Contenido del navegador - donde va el video */}
+ <div
+ className="flex-1 relative overflow-hidden"
+ style={{ backgroundColor: bgColor }}
+ >
+ {children}
+ </div>
+ </div>
+ );
+}
diff --git a/app/components/ui/editor/mockups/MacosGlassMockup.tsx b/app/components/ui/editor/mockups/MacosGlassMockup.tsx
new file mode 100644
index 0000000..cd24268
--- /dev/null
+++ b/app/components/ui/editor/mockups/MacosGlassMockup.tsx
@@ -0,0 +1,194 @@
+"use client";
+
+import { Icon } from "@iconify/react";
+import type { MockupRenderProps } from "@/types/mockup.types";
+import { hexToRgba } from "@/lib/utils";
+import { deriveSearchBg } from "@/lib/color.utils";
+
+interface MacosMockupProps extends MockupRenderProps {
+ shadows?: number;
+ roundedCorners?: number;
+}
+
+export function MacosGlassMockup({
+ children,
+ config,
+ className = "",
+ shadows = 20,
+ roundedCorners
+}: MacosMockupProps) {
+ const isDark = config.darkMode;
+ const frameColor = config.frameColor;
+ const url = config.url;
+ const cornerRadius = roundedCorners ?? config.cornerRadius;
+ const headerOpacity = config.headerOpacity ?? 100;
+
+ // Factor de escala para el header (0.5 a 1.5)
+ const headerScale = (config.headerScale || 100) / 100;
+
+ // Colores según el modo
+ const bgColor = isDark ? "#1e1e1e" : "#f9f9f9";
+ const borderColor = isDark ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.1)";
+ const textColor = isDark ? "#9ca3af" : "#6b7280";
+ const urlBarBorder = isDark ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.15)";
+
+ const urlBarBgBase = deriveSearchBg(frameColor);
+ // Valores base escalados proporcionalmente
+ const baseHeight = 36;
+ const basePadding = 12;
+ const baseGap = 12;
+ const baseButtonSize = 10;
+ const baseIconSize = 14;
+ const baseUrlBarHeight = 24;
+ const baseFontSize = 10;
+
+ // Aplicar escala
+ const headerHeight = baseHeight * headerScale;
+ const headerPadding = basePadding * headerScale;
+ const buttonGroupGap = 6 * headerScale;
+ const navGap = 6 * headerScale;
+ const buttonSize = baseButtonSize * headerScale;
+ const iconSize = baseIconSize * headerScale;
+ const urlBarHeight = baseUrlBarHeight * headerScale;
+ const fontSize = baseFontSize * headerScale;
+ const urlBarPadding = 8 * headerScale;
+ const urlBarMargin = 16 * headerScale;
+ const rightGroupGap = 10 * headerScale;
+
+ return (
+ <div
+ className={`glass-border relative w-full flex flex-col overflow-hidden ${className}`}
+ style={{
+ borderRadius: `${cornerRadius}px`,
+ boxShadow: shadows > 0
+ ? `0 ${shadows * 0.3}px ${shadows}px rgba(0,0,0,0.5)`
+ : 'none',
+ borderTop: "1px solid rgba(255,255,255,0.6)",
+ borderLeft: "1px solid rgba(255,255,255,0.6)",
+ }}
+ >
+ {/* Header del navegador - usa frameColor como color de fondo */}
+ <div
+ className="flex items-center justify-between select-none shrink-0"
+ style={{
+ height: `${headerHeight}px`,
+ padding: `0 ${headerPadding}px`,
+ backgroundColor: hexToRgba(frameColor, headerOpacity),
+ borderBottom: `1px solid ${borderColor}`,
+ borderTopLeftRadius: `${cornerRadius}px`,
+ borderTopRightRadius: `${cornerRadius}px`,
+ }}
+ >
+ {/* Grupo izquierdo: botones de ventana + navegación */}
+ <div
+ className="flex items-center"
+ style={{ gap: `${baseGap * headerScale}px` }}
+ >
+ {/* Botones de ventana macOS */}
+ <div className="flex" style={{ gap: `${buttonGroupGap}px` }}>
+ <div
+ className="rounded-full bg-[#FF5F56] border border-[#E0443E]"
+ style={{ width: `${buttonSize}px`, height: `${buttonSize}px` }}
+ />
+ <div
+ className="rounded-full bg-[#FFBD2E] border border-[#DEA123]"
+ style={{ width: `${buttonSize}px`, height: `${buttonSize}px` }}
+ />
+ <div
+ className="rounded-full bg-[#27C93F] border border-[#1AAB29]"
+ style={{ width: `${buttonSize}px`, height: `${buttonSize}px` }}
+ />
+ </div>
+
+ {/* Controles de navegación */}
+ <div
+ className="flex items-center"
+ style={{ gap: `${navGap}px`, color: textColor }}
+ >
+ <Icon
+ icon="mdi:menu"
+ style={{ width: `${iconSize}px`, height: `${iconSize}px` }}
+ />
+ <Icon
+ icon="mdi:chevron-left"
+ style={{ width: `${iconSize}px`, height: `${iconSize}px` }}
+ />
+ <Icon
+ icon="mdi:chevron-right"
+ className="opacity-40"
+ style={{ width: `${iconSize}px`, height: `${iconSize}px` }}
+ />
+ </div>
+ </div>
+
+ {/* Barra de URL central */}
+ <div
+ className="flex-1 max-w-xl"
+ style={{ margin: `0 ${urlBarMargin}px` }}
+ >
+ <div
+ className="rounded w-full flex items-center justify-between"
+ style={{
+ height: `${urlBarHeight}px`,
+ padding: `0 ${urlBarPadding}px`,
+ backgroundColor: hexToRgba(urlBarBgBase, headerOpacity),
+ border: `1px solid ${urlBarBorder}`,
+ color: textColor,
+ }}
+ >
+ <Icon
+ icon="mdi:lock"
+ className="opacity-60"
+ style={{
+ width: `${buttonSize}px`,
+ height: `${buttonSize}px`,
+ flexShrink: 0,
+ }}
+ />
+ <span
+ className="flex-1 text-center font-medium truncate"
+ style={{
+ fontSize: `${fontSize}px`,
+ padding: `0 ${urlBarPadding}px`,
+ }}
+ >
+ {url}
+ </span>
+ <Icon
+ icon="mdi:refresh"
+ className="opacity-60"
+ style={{
+ width: `${buttonSize}px`,
+ height: `${buttonSize}px`,
+ flexShrink: 0,
+ }}
+ />
+ </div>
+ </div>
+
+ {/* Grupo derecho: acciones */}
+ <div
+ className="flex items-center"
+ style={{ gap: `${rightGroupGap}px`, color: textColor }}
+ >
+ <Icon icon="mdi:download" style={{ width: `${iconSize}px`, height: `${iconSize}px` }} />
+ <Icon icon="mdi:upload" style={{ width: `${iconSize}px`, height: `${iconSize}px` }} />
+ <Icon icon="mdi:plus" style={{ width: `${iconSize}px`, height: `${iconSize}px` }} />
+ <Icon icon="mdi:content-copy" style={{ width: `${iconSize}px`, height: `${iconSize}px` }} />
+ </div>
+ </div>
+
+ {/* Contenido del navegador - donde va el video */}
+ <div
+ className="flex-1 relative overflow-hidden"
+ style={{
+ backgroundColor: bgColor,
+ borderBottomLeftRadius: `${Math.max(0, cornerRadius - 3)}px`,
+ borderBottomRightRadius: `${Math.max(0, cornerRadius - 3)}px`,
+ }}
+ >
+ {children}
+ </div>
+ </div>
+ );
+}
diff --git a/app/components/ui/editor/mockups/MacosMockup.tsx b/app/components/ui/editor/mockups/MacosMockup.tsx
new file mode 100644
index 0000000..b70072f
--- /dev/null
+++ b/app/components/ui/editor/mockups/MacosMockup.tsx
@@ -0,0 +1,188 @@
+"use client";
+
+import { Icon } from "@iconify/react";
+import type { MockupRenderProps } from "@/types/mockup.types";
+import { hexToRgba } from "@/lib/utils";
+import { deriveSearchBg } from "@/lib/color.utils";
+
+interface MacosMockupProps extends MockupRenderProps {
+ shadows?: number;
+ roundedCorners?: number;
+}
+
+export function MacosMockup({
+ children,
+ config,
+ className = "",
+ shadows = 20,
+ roundedCorners
+}: MacosMockupProps) {
+ const isDark = config.darkMode;
+ const frameColor = config.frameColor;
+ const url = config.url;
+ const cornerRadius = roundedCorners ?? config.cornerRadius;
+ const headerOpacity = config.headerOpacity ?? 100;
+
+ // Factor de escala para el header (0.5 a 1.5)
+ const headerScale = (config.headerScale || 100) / 100;
+
+ // Colores según el modo
+ const bgColor = isDark ? "#1e1e1e" : "#f9f9f9";
+ const borderColor = isDark ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.1)";
+ const textColor = isDark ? "#9ca3af" : "#6b7280";
+ const urlBarBorder = isDark ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.15)";
+
+ const urlBarBgBase = deriveSearchBg(frameColor);
+ // Valores base escalados proporcionalmente
+ const baseHeight = 36;
+ const basePadding = 12;
+ const baseGap = 12;
+ const baseButtonSize = 10;
+ const baseIconSize = 14;
+ const baseUrlBarHeight = 24;
+ const baseFontSize = 10;
+
+ // Aplicar escala
+ const headerHeight = baseHeight * headerScale;
+ const headerPadding = basePadding * headerScale;
+ const buttonGroupGap = 6 * headerScale;
+ const navGap = 6 * headerScale;
+ const buttonSize = baseButtonSize * headerScale;
+ const iconSize = baseIconSize * headerScale;
+ const urlBarHeight = baseUrlBarHeight * headerScale;
+ const fontSize = baseFontSize * headerScale;
+ const urlBarPadding = 8 * headerScale;
+ const urlBarMargin = 16 * headerScale;
+ const rightGroupGap = 10 * headerScale;
+
+ return (
+ <div
+ className={`relative w-full flex flex-col overflow-hidden ${className}`}
+ style={{
+ borderRadius: `${cornerRadius}px`,
+ boxShadow: shadows > 0
+ ? `0 ${shadows * 0.3}px ${shadows}px rgba(0,0,0,0.5)`
+ : 'none',
+ }}
+ >
+ {/* Header del navegador - usa frameColor como color de fondo */}
+ <div
+ className="flex items-center justify-between select-none shrink-0"
+ style={{
+ height: `${headerHeight}px`,
+ padding: `0 ${headerPadding}px`,
+ backgroundColor: hexToRgba(frameColor, headerOpacity),
+ borderBottom: `1px solid ${borderColor}`,
+ borderTopLeftRadius: `${cornerRadius}px`,
+ borderTopRightRadius: `${cornerRadius}px`,
+ }}
+ >
+ {/* Grupo izquierdo: botones de ventana + navegación */}
+ <div
+ className="flex items-center"
+ style={{ gap: `${baseGap * headerScale}px` }}
+ >
+ {/* Botones de ventana macOS */}
+ <div className="flex" style={{ gap: `${buttonGroupGap}px` }}>
+ <div
+ className="rounded-full bg-[#FF5F56] border border-[#E0443E]"
+ style={{ width: `${buttonSize}px`, height: `${buttonSize}px` }}
+ />
+ <div
+ className="rounded-full bg-[#FFBD2E] border border-[#DEA123]"
+ style={{ width: `${buttonSize}px`, height: `${buttonSize}px` }}
+ />
+ <div
+ className="rounded-full bg-[#27C93F] border border-[#1AAB29]"
+ style={{ width: `${buttonSize}px`, height: `${buttonSize}px` }}
+ />
+ </div>
+
+ {/* Controles de navegación */}
+ <div
+ className="flex items-center"
+ style={{ gap: `${navGap}px`, color: textColor }}
+ >
+ <Icon
+ icon="mdi:menu"
+ style={{ width: `${iconSize}px`, height: `${iconSize}px` }}
+ />
+ <Icon
+ icon="mdi:chevron-left"
+ style={{ width: `${iconSize}px`, height: `${iconSize}px` }}
+ />
+ <Icon
+ icon="mdi:chevron-right"
+ className="opacity-40"
+ style={{ width: `${iconSize}px`, height: `${iconSize}px` }}
+ />
+ </div>
+ </div>
+
+ {/* Barra de URL central */}
+ <div
+ className="flex-1 max-w-xl"
+ style={{ margin: `0 ${urlBarMargin}px` }}
+ >
+ <div
+ className="rounded w-full flex items-center justify-between"
+ style={{
+ height: `${urlBarHeight}px`,
+ padding: `0 ${urlBarPadding}px`,
+ backgroundColor: hexToRgba(urlBarBgBase, headerOpacity),
+ border: `1px solid ${urlBarBorder}`,
+ color: textColor,
+ }}
+ >
+ <Icon
+ icon="mdi:lock"
+ className="opacity-60"
+ style={{
+ width: `${buttonSize}px`,
+ height: `${buttonSize}px`,
+ flexShrink: 0,
+ }}
+ />
+ <span
+ className="flex-1 text-center font-medium truncate"
+ style={{
+ fontSize: `${fontSize}px`,
+ padding: `0 ${urlBarPadding}px`,
+ }}
+ >
+ {url}
+ </span>
+ <Icon
+ icon="mdi:refresh"
+ className="opacity-60"
+ style={{
+ width: `${buttonSize}px`,
+ height: `${buttonSize}px`,
+ flexShrink: 0,
+ }}
+ />
+ </div>
+ </div>
+
+ {/* Grupo derecho: acciones */}
+ <div
+ className="flex items-center"
+ style={{ gap: `${rightGroupGap}px`, color: textColor }}
+ >
+ <Icon icon="mdi:download" style={{ width: `${iconSize}px`, height: `${iconSize}px` }} />
+ <Icon icon="mdi:upload" style={{ width: `${iconSize}px`, height: `${iconSize}px` }} />
+ <Icon icon="mdi:plus" style={{ width: `${iconSize}px`, height: `${iconSize}px` }} />
+ <Icon icon="mdi:content-copy" style={{ width: `${iconSize}px`, height: `${iconSize}px` }} />
+ </div>
+ </div>
+
+ {/* Contenido del navegador - donde va el video */}
+ <div
+ className="flex-1 relative overflow-hidden"
+ style={{ backgroundColor: bgColor }}
+ >
+ {children}
+ </div>
+ </div>
+ );
+}
diff --git a/app/components/ui/editor/mockups/MockupWrapper.tsx b/app/components/ui/editor/mockups/MockupWrapper.tsx
new file mode 100644
index 0000000..aa1bb7c
--- /dev/null
+++ b/app/components/ui/editor/mockups/MockupWrapper.tsx
@@ -0,0 +1,238 @@
+"use client";
+
+import type { MockupConfig } from "@/types/mockup.types";
+import { NoneMockup } from "./NoneMockup";
+import { MacosMockup } from "./MacosMockup";
+import { IPhoneSlimMockup } from "./IPhoneSlimMockup";
+import { VSCodeMockup } from "./VSCodeMockup";
+import { MacosGlassMockup } from "./MacosGlassMockup";
+import { MacosGhostMockup } from "./MacosGhostMockup";
+import { GlassUIContainerMockup } from "./GlassUIContainerMockup";
+import { MacosGhostGlassMockup } from "./MacosGhostGlassMockup";
+import { MacosContainerGlassMockup } from "./MacosContainerGlassMockup";
+import { BraveMockup } from "./BraveMockup";
+import { BraveGlassMockup } from "./BraveGlassMockup";
+import { BrowserTabGlassMockup } from "./BrowserTabGlassMockup";
+import { ChromeMockup } from "./ChromeMockup";
+import { ChromeGlassMockup } from "./ChromeGlassMockup";
+import { MacosGhostIdeMockup } from "./MacosGhostIdeMockup";
+import { MacosDarkIdeMockup } from "./MacosDarkIdeMockup";
+
+interface MockupWrapperProps {
+ mockupId: string;
+ config: MockupConfig;
+ children: React.ReactNode;
+ roundedCorners?: number;
+ shadows?: number;
+ className?: string;
+}
+
+export function MockupWrapper({
+ mockupId,
+ config,
+ children,
+ roundedCorners = 12,
+ shadows = 20,
+ className = "",
+}: MockupWrapperProps) {
+ // Renderiza el mockup correcto según el ID
+ switch (mockupId) {
+ case "none":
+ return (
+ <NoneMockup
+ config={config}
+ roundedCorners={roundedCorners}
+ shadows={shadows}
+ className={className}
+ >
+ {children}
+ </NoneMockup>
+ );
+
+ case "macos":
+ return (
+ <MacosMockup
+ config={config}
+ roundedCorners={roundedCorners}
+ shadows={shadows}
+ className={className}
+ >
+ {children}
+ </MacosMockup>
+ );
+
+ case "macos-glass":
+ return (
+ <MacosGlassMockup
+ config={config}
+ roundedCorners={roundedCorners}
+ shadows={shadows}
+ className={className}
+ >
+ {children}
+ </MacosGlassMockup>
+ );
+
+ case "glass-ui-container":
+ return (
+ <GlassUIContainerMockup
+ config={config}
+ roundedCorners={roundedCorners}
+ shadows={shadows}
+ className={className}
+ >
+ {children}
+ </GlassUIContainerMockup>
+ );
+
+ case "macos-ghost":
+ return (
+ <MacosGhostMockup
+ config={config}
+ roundedCorners={roundedCorners}
+ shadows={shadows}
+ className={className}
+ >
+ {children}
+ </MacosGhostMockup>
+ );
+ case "macos-ghost-glass":
+ return (
+ <MacosGhostGlassMockup
+ config={config}
+ roundedCorners={roundedCorners}
+ shadows={shadows}
+ className={className}
+ >
+ {children}
+ </MacosGhostGlassMockup>
+ );
+
+ case "macos-container-glass":
+ return (
+ <MacosContainerGlassMockup
+ config={config}
+ roundedCorners={roundedCorners}
+ shadows={shadows}
+ className={className}
+ >
+ {children}
+ </MacosContainerGlassMockup>
+ );
+ case "brave":
+ return (
+ <BraveMockup
+ config={config}
+ roundedCorners={roundedCorners}
+ shadows={shadows}
+ className={className}
+ >
+ {children}
+ </BraveMockup>
+ );
+ case "brave-glass":
+ return (
+ <BraveGlassMockup
+ config={config}
+ roundedCorners={roundedCorners}
+ shadows={shadows}
+ className={className}
+ >
+ {children}
+ </BraveGlassMockup>
+ );
+ case "browser-tab-glass":
+ return (
+ <BrowserTabGlassMockup
+ config={config}
+ roundedCorners={roundedCorners}
+ shadows={shadows}
+ className={className}
+ >
+ {children}
+ </BrowserTabGlassMockup>
+ );
+ case "chrome":
+ return (
+ <ChromeMockup
+ config={config}
+ roundedCorners={roundedCorners}
+ shadows={shadows}
+ className={className}
+ >
+ {children}
+ </ChromeMockup>
+ );
+
+ case "chrome-glass":
+ return (
+ <ChromeGlassMockup
+ config={config}
+ roundedCorners={roundedCorners}
+ shadows={shadows}
+ className={className}
+ >
+ {children}
+ </ChromeGlassMockup>
+ );
+
+ case "iphone-slim":
+ return (
+ <IPhoneSlimMockup
+ config={config}
+ roundedCorners={roundedCorners}
+ shadows={shadows}
+ className={className}
+ >
+ {children}
+ </IPhoneSlimMockup>
+ );
+
+ case "vscode":
+ return (
+ <VSCodeMockup
+ config={config}
+ roundedCorners={roundedCorners}
+ shadows={shadows}
+ className={className}
+ >
+ {children}
+ </VSCodeMockup>
+ );
+ case "macos-dark-ide":
+ return (
+ <MacosDarkIdeMockup
+ config={config}
+ roundedCorners={roundedCorners}
+ shadows={shadows}
+ className={className}
+ >
+ {children}
+ </MacosDarkIdeMockup>
+ );
+ case "macos-ghost-ide":
+ return (
+ <MacosGhostIdeMockup
+ config={config}
+ roundedCorners={roundedCorners}
+ shadows={shadows}
+ className={className}
+ >
+ {children}
+ </MacosGhostIdeMockup>
+ );
+
+ // Fallback al mockup "none"
+ default:
+ return (
+ <NoneMockup
+ config={config}
+ roundedCorners={roundedCorners}
+ shadows={shadows}
+ className={className}
+ >
+ {children}
+ </NoneMockup>
+ );
+ }
+}
diff --git a/app/components/ui/editor/mockups/NoneMockup.tsx b/app/components/ui/editor/mockups/NoneMockup.tsx
new file mode 100644
index 0000000..ae9a094
--- /dev/null
+++ b/app/components/ui/editor/mockups/NoneMockup.tsx
@@ -0,0 +1,30 @@
+"use client";
+
+import type { MockupRenderProps } from "@/types/mockup.types";
+
+interface NoneMockupProps extends MockupRenderProps {
+ roundedCorners?: number;
+ shadows?: number;
+}
+
+export function NoneMockup({
+ children,
+ config,
+ className = "",
+ roundedCorners = 12,
+ shadows = 20
+}: NoneMockupProps) {
+ return (
+ <div
+ className={`relative overflow-hidden ${className}`}
+ style={{
+ borderRadius: `${roundedCorners}px`,
+ boxShadow: shadows > 0
+ ? `0 ${shadows * 0.3}px ${shadows}px rgba(0,0,0,0.5)`
+ : 'none',
+ }}
+ >
+ {children}
+ </div>
+ );
+}
diff --git a/app/components/ui/editor/mockups/VSCodeMockup.tsx b/app/components/ui/editor/mockups/VSCodeMockup.tsx
new file mode 100644
index 0000000..4ece80c
--- /dev/null
+++ b/app/components/ui/editor/mockups/VSCodeMockup.tsx
@@ -0,0 +1,154 @@
+"use client";
+
+import { Icon } from "@iconify/react";
+import type { MockupRenderProps } from "@/types/mockup.types";
+import { hexToRgba } from "@/lib/utils";
+import { deriveSearchBg } from "@/lib/color.utils";
+
+interface VSCodeMockupProps extends MockupRenderProps {
+ shadows?: number;
+ roundedCorners?: number;
+}
+
+export function VSCodeMockup({
+ children,
+ config,
+ className = "",
+ shadows = 20,
+ roundedCorners
+}: VSCodeMockupProps) {
+ const isDark = config.darkMode;
+ const frameColor = config.frameColor;
+ const url = config.url;
+ const cornerRadius = roundedCorners ?? config.cornerRadius;
+ const headerOpacity = config.headerOpacity ?? 100;
+
+ const headerScale = (config.headerScale || 100) / 100;
+
+ const headerHeight = 35 * headerScale;
+ const logoSize = 16 * headerScale;
+ const menuFontSize = 12 * headerScale;
+ const menuPaddingX = 8 * headerScale;
+ const menuPaddingY = 4 * headerScale;
+ const menuGap = 4 * headerScale;
+ const headerPaddingX = 12 * headerScale;
+ const searchHeight = 22 * headerScale;
+ const searchIconSize = 12 * headerScale;
+ const searchFontSize = 11 * headerScale;
+ const searchPaddingX = 8 * headerScale;
+ const searchGap = 8 * headerScale;
+ const controlIconSize = 12 * headerScale;
+ const controlPaddingX = 12 * headerScale;
+
+ const bgColor = isDark ? "#1e1e1e" : "#f3f3f3";
+ const borderColor = isDark ? "rgba(255,255,255,0.05)" : "rgba(0,0,0,0.1)";
+ const textColor = isDark ? "#cccccc" : "#333333";
+ const searchBorder = isDark ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.15)";
+
+ // Search bar bg always derived from the current frameColor
+ const searchBgBase = deriveSearchBg(frameColor);
+
+ return (
+ <div
+ className={`relative w-full flex flex-col overflow-hidden ${className}`}
+ style={{
+ borderRadius: `${cornerRadius}px`,
+ boxShadow: shadows > 0
+ ? `0 ${shadows * 0.3}px ${shadows}px rgba(0,0,0,0.5)`
+ : "none",
+ }}
+ >
+ {/* Title Bar */}
+ <div
+ className="flex items-center justify-between select-none shrink-0"
+ style={{
+ height: `${headerHeight}px`,
+ paddingLeft: `${headerPaddingX}px`,
+ paddingRight: 0,
+ backgroundColor: hexToRgba(frameColor, headerOpacity),
+ borderBottom: `1px solid ${borderColor}`,
+ borderTopLeftRadius: `${cornerRadius}px`,
+ borderTopRightRadius: `${cornerRadius}px`,
+ color: textColor,
+ }}
+ >
+ {/* Left: Logo + Menu */}
+ <div className="flex items-center" style={{ gap: `${menuGap}px` }}>
+ <Icon
+ icon="vscode-icons:file-type-vscode"
+ style={{ width: `${logoSize}px`, height: `${logoSize}px`, marginRight: `${menuGap}px` }}
+ />
+ <div className="flex items-center" style={{ fontSize: `${menuFontSize}px` }}>
+ {["File", "Edit", "Selection", "View", "Go", "Terminal", "Help"].map((item, i) => (
+ <span
+ key={item}
+ className={`rounded hover:bg-white/5 cursor-default ${i === 2 ? "hidden sm:block" :
+ i === 4 ? "hidden md:block" :
+ i === 5 ? "hidden lg:block" : ""
+ }`}
+ style={{ padding: `${menuPaddingY}px ${menuPaddingX}px` }}
+ >
+ {item}
+ </span>
+ ))}
+ </div>
+ </div>
+
+ {/* Center: Search bar — bg tracks frameColor */}
+ <div
+ className="flex-1 flex justify-center max-w-[400px]"
+ style={{ padding: `0 ${headerPaddingX}px` }}
+ >
+ <div
+ className="flex items-center justify-center w-full rounded-md transition-colors cursor-text"
+ style={{
+ height: `${searchHeight}px`,
+ gap: `${searchGap}px`,
+ padding: `0 ${searchPaddingX}px`,
+ // Use derived color instead of hardcoded dark/light values
+ backgroundColor: hexToRgba(searchBgBase, headerOpacity),
+ border: `1px solid ${searchBorder}`,
+ }}
+ >
+ <Icon
+ icon="mdi:magnify"
+ className="opacity-50"
+ style={{ width: `${searchIconSize}px`, height: `${searchIconSize}px` }}
+ />
+ <span
+ className="truncate"
+ style={{ fontSize: `${searchFontSize}px`, color: textColor }}
+ >
+ {url || "freeshot"}
+ </span>
+ </div>
+ </div>
+
+ {/* Right: Window controls */}
+ <div className="flex items-center h-full">
+ {[
+ { icon: "mdi:minus", extra: "" },
+ { icon: "mdi:checkbox-blank-outline", extra: "" },
+ { icon: "mdi:close", extra: "hover:bg-red-500/80 rounded-tr-lg" },
+ ].map(({ icon, extra }) => (
+ <button
+ key={icon}
+ className={`h-full hover:bg-white/5 transition-colors flex items-center justify-center ${extra}`}
+ style={{ padding: `0 ${controlPaddingX}px` }}
+ >
+ <Icon icon={icon} style={{ width: `${controlIconSize}px`, height: `${controlIconSize}px` }} />
+ </button>
+ ))}
+ </div>
+ </div>
+
+ {/* Content */}
+ <div
+ className="flex-1 relative overflow-hidden"
+ style={{ backgroundColor: bgColor }}
+ >
+ {children}
+ </div>
+ </div>
+ );
+}
\ No newline at end of file
diff --git a/app/components/ui/editor/mockups/index.ts b/app/components/ui/editor/mockups/index.ts
new file mode 100644
index 0000000..a7f8953
--- /dev/null
+++ b/app/components/ui/editor/mockups/index.ts
@@ -0,0 +1,5 @@
+export { NoneMockup } from "./NoneMockup";
+export { MacosMockup } from "./MacosMockup";
+export { IPhoneSlimMockup } from "./IPhoneSlimMockup";
+export { VSCodeMockup } from "./VSCodeMockup";
+export { MockupWrapper } from "./MockupWrapper";
diff --git a/app/favicon.ico b/app/favicon.ico
new file mode 100644
index 0000000..718d6fe
Binary files /dev/null and b/app/favicon.ico differ
diff --git a/app/globals.css b/app/globals.css
new file mode 100644
index 0000000..2bc761b
--- /dev/null
+++ b/app/globals.css
@@ -0,0 +1,203 @@
+@import "tailwindcss";
+@import "tw-animate-css";
+@import "shadcn/tailwind.css";
+
+@custom-variant dark (&:is(.dark *));
+
+@theme inline {
+ --color-background: var(--background);
+ --color-foreground: var(--foreground);
+ --font-sans: var(--font-geist-sans);
+ --font-mono: var(--font-geist-mono);
+ --color-sidebar-ring: var(--sidebar-ring);
+ --color-sidebar-border: var(--sidebar-border);
+ --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
+ --color-sidebar-accent: var(--sidebar-accent);
+ --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
+ --color-sidebar-primary: var(--sidebar-primary);
+ --color-sidebar-foreground: var(--sidebar-foreground);
+ --color-sidebar: var(--sidebar);
+ --color-chart-5: var(--chart-5);
+ --color-chart-4: var(--chart-4);
+ --color-chart-3: var(--chart-3);
+ --color-chart-2: var(--chart-2);
+ --color-chart-1: var(--chart-1);
+ --color-ring: var(--ring);
+ --color-input: var(--input);
+ --color-border: var(--border);
+ --color-destructive: var(--destructive);
+ --color-accent-foreground: var(--accent-foreground);
+ --color-accent: var(--accent);
+ --color-muted-foreground: var(--muted-foreground);
+ --color-muted: var(--muted);
+ --color-secondary-foreground: var(--secondary-foreground);
+ --color-secondary: var(--secondary);
+ --color-primary-foreground: var(--primary-foreground);
+ --color-primary: var(--primary);
+ --color-popover-foreground: var(--popover-foreground);
+ --color-popover: var(--popover);
+ --color-card-foreground: var(--card-foreground);
+ --color-card: var(--card);
+ --radius-sm: calc(var(--radius) - 4px);
+ --radius-md: calc(var(--radius) - 2px);
+ --radius-lg: var(--radius);
+ --radius-xl: calc(var(--radius) + 4px);
+ --radius-2xl: calc(var(--radius) + 8px);
+ --radius-3xl: calc(var(--radius) + 12px);
+ --radius-4xl: calc(var(--radius) + 16px);
+}
+
+:root {
+ --radius: 0.625rem;
+ --background: oklch(1 0 0);
+ --foreground: oklch(0.145 0 0);
+ --card: oklch(1 0 0);
+ --card-foreground: oklch(0.145 0 0);
+ --popover: oklch(1 0 0);
+ --popover-foreground: oklch(0.145 0 0);
+ --primary: oklch(0.205 0 0);
+ --primary-foreground: oklch(0.985 0 0);
+ --secondary: oklch(0.97 0 0);
+ --secondary-foreground: oklch(0.205 0 0);
+ --muted: oklch(0.97 0 0);
+ --muted-foreground: oklch(0.556 0 0);
+ --accent: oklch(0.97 0 0);
+ --accent-foreground: oklch(0.205 0 0);
+ --destructive: oklch(0.577 0.245 27.325);
+ --border: oklch(0.922 0 0);
+ --input: oklch(0.922 0 0);
+ --ring: oklch(0.708 0 0);
+ --chart-1: oklch(0.646 0.222 41.116);
+ --chart-2: oklch(0.6 0.118 184.704);
+ --chart-3: oklch(0.398 0.07 227.392);
+ --chart-4: oklch(0.828 0.189 84.429);
+ --chart-5: oklch(0.769 0.188 70.08);
+ --sidebar: oklch(0.985 0 0);
+ --sidebar-foreground: oklch(0.145 0 0);
+ --sidebar-primary: oklch(0.205 0 0);
+ --sidebar-primary-foreground: oklch(0.985 0 0);
+ --sidebar-accent: oklch(0.97 0 0);
+ --sidebar-accent-foreground: oklch(0.205 0 0);
+ --sidebar-border: oklch(0.922 0 0);
+ --sidebar-ring: oklch(0.708 0 0);
+ --gradient-primary: linear-gradient(90deg, #00A3EE, #00A3FF, #003780);
+ --gradient-radial-primary: radial-gradient(circle, #002940, #00131E, #000910);
+
+}
+
+.dark {
+ --background: oklch(0.145 0 0);
+ --foreground: oklch(0.985 0 0);
+ --card: oklch(0.205 0 0);
+ --card-foreground: oklch(0.985 0 0);
+ --popover: oklch(0.205 0 0);
+ --popover-foreground: oklch(0.985 0 0);
+ --primary: oklch(0.922 0 0);
+ --primary-foreground: oklch(0.205 0 0);
+ --secondary: oklch(0.269 0 0);
+ --secondary-foreground: oklch(0.985 0 0);
+ --muted: oklch(0.269 0 0);
+ --muted-foreground: oklch(0.708 0 0);
+ --accent: oklch(0.269 0 0);
+ --accent-foreground: oklch(0.985 0 0);
+ --destructive: oklch(0.704 0.191 22.216);
+ --border: oklch(1 0 0 / 10%);
+ --input: oklch(1 0 0 / 15%);
+ --ring: oklch(0.556 0 0);
+ --chart-1: oklch(0.488 0.243 264.376);
+ --chart-2: oklch(0.696 0.17 162.48);
+ --chart-3: oklch(0.769 0.188 70.08);
+ --chart-4: oklch(0.627 0.265 303.9);
+ --chart-5: oklch(0.645 0.246 16.439);
+ --sidebar: oklch(0.205 0 0);
+ --sidebar-foreground: oklch(0.985 0 0);
+ --sidebar-primary: oklch(0.488 0.243 264.376);
+ --sidebar-primary-foreground: oklch(0.985 0 0);
+ --sidebar-accent: oklch(0.269 0 0);
+ --sidebar-accent-foreground: oklch(0.985 0 0);
+ --sidebar-border: oklch(1 0 0 / 10%);
+ --sidebar-ring: oklch(0.556 0 0);
+}
+
+@layer base {
+
+ html {
+ scroll-behavior: smooth;
+ }
+
+ * {
+ @apply border-border outline-ring/50;
+ }
+
+ body {
+ @apply bg-background text-foreground;
+ }
+}
+
+@layer components {
+ .glass-border {
+ background: linear-gradient(45deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.4));
+ border-top: 0.75px solid rgba(255, 255, 255, 0.8);
+ border-left: 0.75px solid rgba(255, 255, 255, 0.8);
+ padding: 7px;
+ }
+}
+
+
+button {
+ cursor: pointer;
+}
+
+.bg-gradient-primary {
+ background-image: var(--gradient-primary);
+}
+
+.bg-gradient-radial-primary {
+ background-image: var(--gradient-radial-primary);
+}
+
+.custom-scrollbar::-webkit-scrollbar {
+ width: 10px;
+ height: 10px;
+}
+
+.custom-scrollbar::-webkit-scrollbar-track {
+ background: transparent;
+}
+
+.custom-scrollbar::-webkit-scrollbar-thumb {
+ background: #262626;
+ border-radius: 20px;
+ border: 3px solid transparent;
+ background-clip: content-box;
+}
+
+.custom-scrollbar::-webkit-scrollbar-thumb:hover {
+ background: #5e5e5e;
+ border: 2px solid transparent;
+ background-clip: content-box;
+}
+
+.custom-scrollbar {
+ scrollbar-width: thin;
+ scrollbar-color: rgb(58, 58, 58) transparent;
+}
+
+@keyframes gradient-x {
+ 0% {
+ background-position: 0% 50%;
+ }
+
+ 100% {
+ background-position: 200% 50%;
+ }
+}
+
+.animate-gradient-x {
+ animation: gradient-x 5s linear infinite;
+}
+
+.squircle-element {
+ corner-shape: squircle;
+ border-radius: 20px;
+}
\ No newline at end of file
diff --git a/app/layout.tsx b/app/layout.tsx
new file mode 100644
index 0000000..d56296e
--- /dev/null
+++ b/app/layout.tsx
@@ -0,0 +1,59 @@
+import type { Metadata } from "next";
+import { Inter, Roboto, Poppins, Montserrat, DM_Sans } from "next/font/google";
+import "./globals.css";
+
+const inter = Inter({
+ subsets: ["latin"],
+ display: "swap",
+ variable: "--font-inter",
+});
+
+const roboto = Roboto({
+ subsets: ["latin"],
+ weight: ["400", "500", "700"],
+ display: "swap",
+ variable: "--font-roboto",
+});
+
+const poppins = Poppins({
+ subsets: ["latin"],
+ weight: ["400", "500", "700"],
+ display: "swap",
+ variable: "--font-poppins",
+});
+
+const montserrat = Montserrat({
+ subsets: ["latin"],
+ weight: ["400", "500", "700"],
+ display: "swap",
+ variable: "--font-montserrat",
+});
+
+const dmSans = DM_Sans({
+ subsets: ["latin"],
+ weight: ["400", "500", "700"],
+ display: "swap",
+ variable: "--font-dm-sans",
+});
+
+export const metadata: Metadata = {
+ title: "Freeshot - Crea tomas cinemáticas",
+ description: "Genera tomas cinematográficas con facilidad",
+ icons: {
+ icon: "data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'><circle cx='16' cy='16' r='14' fill='%230E0E12' stroke='%233B82F6' stroke-width='2'/><circle cx='16' cy='16' r='6' fill='%233B82F6'/></svg>",
+ },
+};
+
+export default function RootLayout({
+ children,
+}: {
+ children: React.ReactNode;
+}) {
+ return (
+ <html lang="en">
+ <body className={`${inter.variable} ${roboto.variable} ${poppins.variable} ${montserrat.variable} ${dmSans.variable} ${inter.className} antialiased dark`}>
+ {children}
+ </body>
+ </html>
+ );
+}
\ No newline at end of file
diff --git a/components.json b/components.json
new file mode 100644
index 0000000..f87021e
--- /dev/null
+++ b/components.json
@@ -0,0 +1,23 @@
+{
+ "$schema": "https://ui.shadcn.com/schema.json",
+ "style": "new-york",
+ "rsc": true,
+ "tsx": true,
+ "tailwind": {
+ "config": "",
+ "css": "app/globals.css",
+ "baseColor": "neutral",
+ "cssVariables": true,
+ "prefix": ""
+ },
+ "iconLibrary": "lucide",
+ "rtl": false,
+ "aliases": {
+ "components": "@/components",
+ "utils": "@/lib/utils",
+ "ui": "@/components/ui",
+ "lib": "@/lib",
+ "hooks": "@/hooks"
+ },
+ "registries": {}
+}
diff --git a/components/canvas-svg/index.tsx b/components/canvas-svg/index.tsx
new file mode 100644
index 0000000..94d928f
--- /dev/null
+++ b/components/canvas-svg/index.tsx
@@ -0,0 +1,248 @@
+/**
+ * Inline SVG components for canvas elements
+ * These can be dynamically colored
+ */
+
+interface SvgProps {
+ color?: string;
+ className?: string;
+}
+
+// SHAPES
+export const RectangleSvg = ({ color = "currentColor", className }: SvgProps) => (
+ <svg className={className} viewBox="0 0 256 256" fill="none">
+ <path d="M216 36H40a20 20 0 0 0-20 20v144a20 20 0 0 0 20 20h176a20 20 0 0 0 20-20V56a20 20 0 0 0-20-20m-4 160H44V60h168Z" fill={color} stroke={color} strokeWidth="6.5" />
+ </svg>
+);
+
+export const CircleSvg = ({ color = "currentColor", className }: SvgProps) => (
+ <svg className={className} viewBox="0 0 256 256" fill="none">
+ <path d="M128 20a108 108 0 1 0 108 108A108.12 108.12 0 0 0 128 20m0 192a84 84 0 1 1 84-84a84.09 84.09 0 0 1-84 84" fill={color} stroke={color} strokeWidth="6.5" />
+ </svg>
+);
+
+export const TriangleSvg = ({ color = "currentColor", className }: SvgProps) => (
+ <svg className={className} viewBox="0 0 256 256" fill="none">
+ <path d="M240.26 186.1L152.81 34.23a28.74 28.74 0 0 0-49.62 0L15.74 186.1a27.45 27.45 0 0 0 0 27.71A28.31 28.31 0 0 0 40.55 228h174.9a28.31 28.31 0 0 0 24.79-14.19a27.45 27.45 0 0 0 .02-27.71m-20.8 15.7a4.46 4.46 0 0 1-4 2.2H40.55a4.46 4.46 0 0 1-4-2.2a3.56 3.56 0 0 1 0-3.73L124 46.2a4.75 4.75 0 0 1 8 0l87.45 151.87a3.56 3.56 0 0 1 .01 3.73" fill={color} stroke={color} strokeWidth="6.5" />
+ </svg>
+);
+
+export const HexagonSvg = ({ color = "currentColor", className }: SvgProps) => (
+ <svg className={className} viewBox="0 0 256 256" fill="none">
+ <path d="m225.6 62.64l-88-48.17a19.91 19.91 0 0 0-19.2 0l-88 48.17A20 20 0 0 0 20 80.19v95.62a20 20 0 0 0 10.4 17.55l88 48.17a19.89 19.89 0 0 0 19.2 0l88-48.17a20 20 0 0 0 10.4-17.55V80.19a20 20 0 0 0-10.4-17.55M212 173.44l-84 46l-84-46V82.56l84-46l84 46Z" fill={color} stroke={color} strokeWidth="6.5" />
+ </svg>
+);
+
+export const DiamondSvg = ({ color = "currentColor", className }: SvgProps) => (
+ <svg className={className} viewBox="0 0 256 256" fill="none">
+ <path d="M128 24L24 128l104 104l104-104L128 24zm0 171.32L56.68 128L128 60.68L199.32 128L128 195.32z" fill={color} stroke={color} strokeWidth="6.5" strokeLinejoin="round" />
+ </svg>
+);
+
+export const SquareSvg = ({ color = "currentColor", className }: SvgProps) => (
+ <svg className={className} viewBox="0 0 100 100" fill="none">
+ <rect x="15" y="15" width="70" height="70" fill={color} />
+ </svg>
+);
+
+// ARROWS
+export const ArrowLeftSvg = ({ color = "currentColor", className }: SvgProps) => (
+ <svg className={className} viewBox="0 0 24 24" fill="none">
+ <path d="M5 12h14M5 12l6 6m-6-6l6-6" stroke={color} strokeWidth="2.4" strokeLinecap="round" strokeLinejoin="round" />
+ </svg>
+);
+
+export const ArrowRightSvg = ({ color = "currentColor", className }: SvgProps) => (
+ <svg className={className} viewBox="0 0 24 24" fill="none">
+ <path d="M19 12H5m14 0l-6 6m6-6l-6-6" stroke={color} strokeWidth="2.4" strokeLinecap="round" strokeLinejoin="round" />
+ </svg>
+);
+
+export const ArrowDoubleSvg = ({ color = "currentColor", className }: SvgProps) => (
+ <svg className={className} viewBox="0 0 256 256" fill="none">
+ <path d="m216.49 184.49l-32 32a12 12 0 0 1-17-17L179 188H48a12 12 0 0 1 0-24h131l-11.52-11.51a12 12 0 0 1 17-17l32 32a12 12 0 0 1 .01 17m-145-64a12 12 0 0 0 17-17L77 92h131a12 12 0 0 0 0-24H77l11.49-11.51a12 12 0 0 0-17-17l-32 32a12 12 0 0 0 0 17Z" fill={color} stroke={color} strokeWidth="6.5" />
+ </svg>
+);
+
+export const ArrowCurveSvg = ({ color = "currentColor", className }: SvgProps) => (
+ <svg className={className} viewBox="0 0 256 256" fill="none">
+ <path d="M236 144a68.07 68.07 0 0 1-68 68H80a12 12 0 0 1 0-24h88a44 44 0 0 0 0-88H61l27.52 27.51a12 12 0 0 1-17 17l-48-48a12 12 0 0 1 0-17l48-48a12 12 0 1 1 17 17L61 76h107a68.08 68.08 0 0 1 68 68" fill={color} stroke={color} strokeWidth="6.5" />
+ </svg>
+);
+
+export const ArrowDiagonalSvg = ({ color = "currentColor", className }: SvgProps) => (
+ <svg className={className} viewBox="0 0 256 256" fill="none">
+ <path d="M204 64v104a12 12 0 0 1-24 0V93L72.49 200.49a12 12 0 0 1-17-17L163 76H88a12 12 0 0 1 0-24h104a12 12 0 0 1 12 12" fill={color} stroke={color} strokeWidth="6.5" />
+ </svg>
+);
+
+export const ArrowBendSvg = ({ color = "currentColor", className }: SvgProps) => (
+ <svg className={className} viewBox="0 0 256 256" fill="none">
+ <path d="m232.49 112.49l-48 48a12 12 0 0 1-17-17L195 116h-67a84.09 84.09 0 0 0-84 84a12 12 0 0 1-24 0A108.12 108.12 0 0 1 128 92h67l-27.49-27.52a12 12 0 0 1 17-17l48 48a12 12 0 0 1-.02 17.01" fill={color} stroke={color} strokeWidth="6.5" />
+ </svg>
+);
+
+// DECORATIVE
+export const StarSvg = ({ color = "currentColor", className }: SvgProps) => (
+ <svg className={className} viewBox="0 0 24 24" fill="none">
+ <path d="m12 2l3.104 6.728l7.358.873l-5.44 5.03l1.444 7.268L12 18.28L5.534 21.9l1.444-7.268L1.538 9.6l7.359-.873z" stroke={color} strokeWidth="2.5" strokeLinejoin="round" />
+ </svg>
+);
+
+export const HeartSvg = ({ color = "currentColor", className }: SvgProps) => (
+ <svg className={className} viewBox="0 0 24 24" fill="none">
+ <path d="M19.071 13.142L13.414 18.8a2 2 0 0 1-2.828 0l-5.657-5.657A5 5 0 1 1 12 6.072a5 5 0 0 1 7.071 7.07" stroke={color} strokeWidth="2.5" strokeLinecap="round" strokeLinejoin="round" />
+ </svg>
+);
+
+export const LightningSvg = ({ color = "currentColor", className }: SvgProps) => (
+ <svg className={className} viewBox="0 0 256 256" fill="none">
+ <path d="M219.71 117.38a12 12 0 0 0-7.25-8.52l-51.18-20.47l10.59-70.61a12 12 0 0 0-20.64-10l-112 120a12 12 0 0 0 4.31 19.33l51.18 20.47l-10.59 70.64a12 12 0 0 0 20.64 10l112-120a12 12 0 0 0 2.94-10.84M113.6 203.55l6.27-41.77a12 12 0 0 0-7.41-12.92l-43.72-17.49l73.66-78.92l-6.27 41.77a12 12 0 0 0 7.41 12.92l43.72 17.49Z" fill={color} stroke={color} strokeWidth="6.5" />
+ </svg>
+);
+
+export const ChatSvg = ({ color = "currentColor", className }: SvgProps) => (
+ <svg className={className} viewBox="0 0 256 256" fill="none">
+ <path d="M128 20a108 108 0 0 0-96.15 157.23L21 209.66A20 20 0 0 0 46.34 235l32.43-10.81A108 108 0 1 0 128 20m0 192a84 84 0 0 1-42.06-11.27a12 12 0 0 0-6-1.62a12.1 12.1 0 0 0-3.8.62l-29.79 9.93l9.93-29.79a12 12 0 0 0-1-9.81A84 84 0 1 1 128 212" fill={color} stroke={color} strokeWidth="6.5" />
+ </svg>
+);
+
+export const SealSvg = ({ color = "currentColor", className }: SvgProps) => (
+ <svg className={className} viewBox="0 0 256 256" fill="none">
+ <path d="M228.75 100.05c-3.52-3.67-7.15-7.46-8.34-10.33c-1.06-2.56-1.14-7.83-1.21-12.47c-.15-10-.34-22.44-9.18-31.27s-21.27-9-31.27-9.18c-4.64-.07-9.91-.15-12.47-1.21c-2.87-1.19-6.66-4.82-10.33-8.34C148.87 20.46 140.05 12 128 12s-20.87 8.46-27.95 15.25c-3.67 3.52-7.46 7.15-10.33 8.34c-2.56 1.06-7.83 1.14-12.47 1.21c-10 .2-22.44.34-31.25 9.2s-9 21.25-9.2 31.25c-.07 4.64-.15 9.91-1.21 12.47c-1.19 2.87-4.82 6.66-8.34 10.33C20.46 107.13 12 116 12 128s8.46 20.87 15.25 28c3.52 3.67 7.15 7.46 8.34 10.33c1.06 2.56 1.14 7.83 1.21 12.47c.15 10 .34 22.44 9.18 31.27s21.27 9 31.27 9.18c4.64.07 9.91.15 12.47 1.21c2.87 1.19 6.66 4.82 10.33 8.34C107.13 235.54 116 244 128 244s20.87-8.46 27.95-15.25c3.67-3.52 7.46-7.15 10.33-8.34c2.56-1.06 7.83-1.14 12.47-1.21c10-.15 22.44-.34 31.27-9.18s9-21.27 9.18-31.27c.07-4.64.15-9.91 1.21-12.47c1.19-2.87 4.82-6.66 8.34-10.33c6.79-7.08 15.25-15.9 15.25-27.95s-8.46-20.87-15.25-27.95m-17.32 39.29c-4.82 5-10.28 10.72-13.2 17.76c-2.81 6.8-2.92 14.16-3 21.29c-.08 5.36-.19 12.71-2.15 14.66s-9.3 2.07-14.66 2.15c-7.13.11-14.49.22-21.29 3c-7 2.91-12.74 8.37-17.76 13.19c-3.59 3.45-8.97 8.61-11.37 8.61s-7.78-5.16-11.34-8.57c-5-4.82-10.72-10.28-17.76-13.2c-6.8-2.81-14.16-2.92-21.29-3c-5.36-.08-12.71-.19-14.66-2.15s-2.07-9.3-2.15-14.66c-.11-7.13-.22-14.49-3-21.29c-2.92-7-8.38-12.73-13.2-17.76c-3.44-3.59-8.6-8.97-8.6-11.37s5.16-7.78 8.57-11.34c4.82-5 10.28-10.72 13.2-17.76c2.81-6.8 2.92-14.16 3-21.29C60.88 72.25 61 64.9 63 63s9.3-2.07 14.66-2.15c7.13-.11 14.49-.22 21.29-3c7-2.91 12.74-8.37 17.76-13.19C120.22 41.16 125.6 36 128 36s7.78 5.16 11.34 8.57c5 4.82 10.72 10.28 17.76 13.2c6.8 2.81 14.16 2.92 21.29 3c5.36.08 12.71.19 14.66 2.15s2.07 9.3 2.15 14.66c.11 7.13.22 14.49 3 21.29c2.92 7 8.38 12.73 13.2 17.76c3.41 3.56 8.57 8.94 8.57 11.34s-5.13 7.81-8.54 11.37" fill={color} stroke={color} strokeWidth="6.5" />
+ </svg>
+);
+
+export const DropSvg = ({ color = "currentColor", className }: SvgProps) => (
+ <svg className={className} viewBox="0 0 256 256" fill="none">
+ <path d="M134.88 6.17a12 12 0 0 0-13.76 0a259 259 0 0 0-42.18 39C50.85 77.43 36 111.62 36 144a92 92 0 0 0 184 0c0-77.36-81.64-135.4-85.12-137.83M128 212a68.07 68.07 0 0 1-68-68c0-33.31 20-63.37 36.7-82.71A249.4 249.4 0 0 1 128 31.11a249.4 249.4 0 0 1 31.3 30.18C176 80.63 196 110.69 196 144a68.07 68.07 0 0 1-68 68m49.62-52.4a52 52 0 0 1-34 34a12.2 12.2 0 0 1-3.6.55a12 12 0 0 1-3.6-23.45a28 28 0 0 0 18.32-18.32a12 12 0 0 1 22.9 7.2Z" fill={color} stroke={color} strokeWidth="6.5" />
+ </svg>
+);
+
+// Map of SVG components by ID
+export const SVG_COMPONENTS: Record<string, React.FC<SvgProps>> = {
+ "rectangle": RectangleSvg,
+ "circle": CircleSvg,
+ "triangle": TriangleSvg,
+ "hexagon": HexagonSvg,
+ "diamond": DiamondSvg,
+ "square": SquareSvg,
+ "arrow-right": ArrowRightSvg,
+ "arrow-left": ArrowLeftSvg,
+ "arrow-double": ArrowDoubleSvg,
+ "arrow-curve": ArrowCurveSvg,
+ "arrow-diagonal": ArrowDiagonalSvg,
+ "arrow-bend": ArrowBendSvg,
+ "star": StarSvg,
+ "heart": HeartSvg,
+ "lightning": LightningSvg,
+ "chat": ChatSvg,
+ "seal": SealSvg,
+ "drop": DropSvg,
+};
+
+// SVG data for each shape (for canvas export) - uses exact same paths as React components
+interface SvgData {
+ viewBox: string;
+ paths: string;
+}
+
+const SVG_DATA: Record<string, SvgData> = {
+ "rectangle": {
+ viewBox: "0 0 256 256",
+ paths: '<path d="M216 36H40a20 20 0 0 0-20 20v144a20 20 0 0 0 20 20h176a20 20 0 0 0 20-20V56a20 20 0 0 0-20-20m-4 160H44V60h168Z" stroke-width="6.5" />'
+ },
+ "circle": {
+ viewBox: "0 0 256 256",
+ paths: '<path d="M128 20a108 108 0 1 0 108 108A108.12 108.12 0 0 0 128 20m0 192a84 84 0 1 1 84-84a84.09 84.09 0 0 1-84 84" stroke-width="6.5" />'
+ },
+ "triangle": {
+ viewBox: "0 0 256 256",
+ paths: '<path d="M240.26 186.1L152.81 34.23a28.74 28.74 0 0 0-49.62 0L15.74 186.1a27.45 27.45 0 0 0 0 27.71A28.31 28.31 0 0 0 40.55 228h174.9a28.31 28.31 0 0 0 24.79-14.19a27.45 27.45 0 0 0 .02-27.71m-20.8 15.7a4.46 4.46 0 0 1-4 2.2H40.55a4.46 4.46 0 0 1-4-2.2a3.56 3.56 0 0 1 0-3.73L124 46.2a4.75 4.75 0 0 1 8 0l87.45 151.87a3.56 3.56 0 0 1 .01 3.73" stroke-width="6.5" />'
+ },
+ "hexagon": {
+ viewBox: "0 0 256 256",
+ paths: '<path d="m225.6 62.64l-88-48.17a19.91 19.91 0 0 0-19.2 0l-88 48.17A20 20 0 0 0 20 80.19v95.62a20 20 0 0 0 10.4 17.55l88 48.17a19.89 19.89 0 0 0 19.2 0l88-48.17a20 20 0 0 0 10.4-17.55V80.19a20 20 0 0 0-10.4-17.55M212 173.44l-84 46l-84-46V82.56l84-46l84 46Z" stroke-width="6.5" />'
+ },
+ "diamond": {
+ viewBox: "0 0 256 256",
+ paths: '<path d="M128 24L24 128l104 104l104-104L128 24zm0 171.32L56.68 128L128 60.68L199.32 128L128 195.32z" stroke-width="6.5" stroke-linejoin="round" />'
+ },
+ "square": {
+ viewBox: "0 0 100 100",
+ paths: '<rect x="15" y="15" width="70" height="70" />'
+ },
+ "arrow-right": {
+ viewBox: "0 0 24 24",
+ paths: '<path d="M19 12H5m14 0l-6 6m6-6l-6-6" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round" />'
+ },
+ "arrow-left": {
+ viewBox: "0 0 24 24",
+ paths: '<path d="M5 12h14M5 12l6 6m-6-6l6-6" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round" />'
+ },
+ "arrow-double": {
+ viewBox: "0 0 256 256",
+ paths: '<path d="m216.49 184.49l-32 32a12 12 0 0 1-17-17L179 188H48a12 12 0 0 1 0-24h131l-11.52-11.51a12 12 0 0 1 17-17l32 32a12 12 0 0 1 .01 17m-145-64a12 12 0 0 0 17-17L77 92h131a12 12 0 0 0 0-24H77l11.49-11.51a12 12 0 0 0-17-17l-32 32a12 12 0 0 0 0 17Z" stroke-width="6.5" />'
+ },
+ "arrow-curve": {
+ viewBox: "0 0 256 256",
+ paths: '<path d="M236 144a68.07 68.07 0 0 1-68 68H80a12 12 0 0 1 0-24h88a44 44 0 0 0 0-88H61l27.52 27.51a12 12 0 0 1-17 17l-48-48a12 12 0 0 1 0-17l48-48a12 12 0 1 1 17 17L61 76h107a68.08 68.08 0 0 1 68 68" stroke-width="6.5" />'
+ },
+ "arrow-diagonal": {
+ viewBox: "0 0 256 256",
+ paths: '<path d="M204 64v104a12 12 0 0 1-24 0V93L72.49 200.49a12 12 0 0 1-17-17L163 76H88a12 12 0 0 1 0-24h104a12 12 0 0 1 12 12" stroke-width="6.5" />'
+ },
+ "arrow-bend": {
+ viewBox: "0 0 256 256",
+ paths: '<path d="m232.49 112.49l-48 48a12 12 0 0 1-17-17L195 116h-67a84.09 84.09 0 0 0-84 84a12 12 0 0 1-24 0A108.12 108.12 0 0 1 128 92h67l-27.49-27.52a12 12 0 0 1 17-17l48 48a12 12 0 0 1-.02 17.01" stroke-width="6.5" />'
+ },
+ "star": {
+ viewBox: "0 0 24 24",
+ paths: '<path d="m12 2l3.104 6.728l7.358.873l-5.44 5.03l1.444 7.268L12 18.28L5.534 21.9l1.444-7.268L1.538 9.6l7.359-.873z" stroke-width="2.5" stroke-linejoin="round" />'
+ },
+ "heart": {
+ viewBox: "0 0 24 24",
+ paths: '<path d="M19.071 13.142L13.414 18.8a2 2 0 0 1-2.828 0l-5.657-5.657A5 5 0 1 1 12 6.072a5 5 0 0 1 7.071 7.07" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" />'
+ },
+ "lightning": {
+ viewBox: "0 0 256 256",
+ paths: '<path d="M219.71 117.38a12 12 0 0 0-7.25-8.52l-51.18-20.47l10.59-70.61a12 12 0 0 0-20.64-10l-112 120a12 12 0 0 0 4.31 19.33l51.18 20.47l-10.59 70.64a12 12 0 0 0 20.64 10l112-120a12 12 0 0 0 2.94-10.84M113.6 203.55l6.27-41.77a12 12 0 0 0-7.41-12.92l-43.72-17.49l73.66-78.92l-6.27 41.77a12 12 0 0 0 7.41 12.92l43.72 17.49Z" stroke-width="6.5" />'
+ },
+ "chat": {
+ viewBox: "0 0 256 256",
+ paths: '<path d="M128 20a108 108 0 0 0-96.15 157.23L21 209.66A20 20 0 0 0 46.34 235l32.43-10.81A108 108 0 1 0 128 20m0 192a84 84 0 0 1-42.06-11.27a12 12 0 0 0-6-1.62a12.1 12.1 0 0 0-3.8.62l-29.79 9.93l9.93-29.79a12 12 0 0 0-1-9.81A84 84 0 1 1 128 212" stroke-width="6.5" />'
+ },
+ "seal": {
+ viewBox: "0 0 256 256",
+ paths: '<path d="M228.75 100.05c-3.52-3.67-7.15-7.46-8.34-10.33c-1.06-2.56-1.14-7.83-1.21-12.47c-.15-10-.34-22.44-9.18-31.27s-21.27-9-31.27-9.18c-4.64-.07-9.91-.15-12.47-1.21c-2.87-1.19-6.66-4.82-10.33-8.34C148.87 20.46 140.05 12 128 12s-20.87 8.46-27.95 15.25c-3.67 3.52-7.46 7.15-10.33 8.34c-2.56 1.06-7.83 1.14-12.47 1.21c-10 .2-22.44.34-31.25 9.2s-9 21.25-9.2 31.25c-.07 4.64-.15 9.91-1.21 12.47c-1.19 2.87-4.82 6.66-8.34 10.33C20.46 107.13 12 116 12 128s8.46 20.87 15.25 28c3.52 3.67 7.15 7.46 8.34 10.33c1.06 2.56 1.14 7.83 1.21 12.47c.15 10 .34 22.44 9.18 31.27s21.27 9 31.27 9.18c4.64.07 9.91.15 12.47 1.21c2.87 1.19 6.66 4.82 10.33 8.34C107.13 235.54 116 244 128 244s20.87-8.46 27.95-15.25c3.67-3.52 7.46-7.15 10.33-8.34c2.56-1.06 7.83-1.14 12.47-1.21c10-.15 22.44-.34 31.27-9.18s9-21.27 9.18-31.27c.07-4.64.15-9.91 1.21-12.47c1.19-2.87 4.82-6.66 8.34-10.33c6.79-7.08 15.25-15.9 15.25-27.95s-8.46-20.87-15.25-27.95m-17.32 39.29c-4.82 5-10.28 10.72-13.2 17.76c-2.81 6.8-2.92 14.16-3 21.29c-.08 5.36-.19 12.71-2.15 14.66s-9.3 2.07-14.66 2.15c-7.13.11-14.49.22-21.29 3c-7 2.91-12.74 8.37-17.76 13.19c-3.59 3.45-8.97 8.61-11.37 8.61s-7.78-5.16-11.34-8.57c-5-4.82-10.72-10.28-17.76-13.2c-6.8-2.81-14.16-2.92-21.29-3c-5.36-.08-12.71-.19-14.66-2.15s-2.07-9.3-2.15-14.66c-.11-7.13-.22-14.49-3-21.29c-2.92-7-8.38-12.73-13.2-17.76c-3.44-3.59-8.6-8.97-8.6-11.37s5.16-7.78 8.57-11.34c4.82-5 10.28-10.72 13.2-17.76c2.81-6.8 2.92-14.16 3-21.29C60.88 72.25 61 64.9 63 63s9.3-2.07 14.66-2.15c7.13-.11 14.49-.22 21.29-3c7-2.91 12.74-8.37 17.76-13.19C120.22 41.16 125.6 36 128 36s7.78 5.16 11.34 8.57c5 4.82 10.72 10.28 17.76 13.2c6.8 2.81 14.16 2.92 21.29 3c5.36.08 12.71.19 14.66 2.15s2.07 9.3 2.15 14.66c.11 7.13.22 14.49 3 21.29c2.92 7 8.38 12.73 13.2 17.76c3.41 3.56 8.57 8.94 8.57 11.34s-5.13 7.81-8.54 11.37" stroke-width="6.5" />'
+ },
+ "drop": {
+ viewBox: "0 0 256 256",
+ paths: '<path d="M134.88 6.17a12 12 0 0 0-13.76 0a259 259 0 0 0-42.18 39C50.85 77.43 36 111.62 36 144a92 92 0 0 0 184 0c0-77.36-81.64-135.4-85.12-137.83M128 212a68.07 68.07 0 0 1-68-68c0-33.31 20-63.37 36.7-82.71A249.4 249.4 0 0 1 128 31.11a249.4 249.4 0 0 1 31.3 30.18C176 80.63 196 110.69 196 144a68.07 68.07 0 0 1-68 68m49.62-52.4a52 52 0 0 1-34 34a12.2 12.2 0 0 1-3.6.55a12 12 0 0 1-3.6-23.45a28 28 0 0 0 18.32-18.32a12 12 0 0 1 22.9 7.2Z" stroke-width="6.5" />'
+ }
+};
+
+/**
+ * Generate a data URL for an SVG with the specified color
+ * Uses exact same paths and viewBox as the React components for consistent rendering
+ */
+export function getSvgDataUrl(svgId: string, color: string): string {
+ const svgData = SVG_DATA[svgId];
+ if (!svgData) return '';
+
+ // Determine if this SVG uses stroke instead of fill (arrows use stroke)
+ const usesStroke = svgData.paths.includes('stroke-linecap') || svgData.paths.includes('stroke-linejoin');
+
+ // Apply color to the path
+ let styledPath: string;
+ if (usesStroke) {
+ // For stroke-based SVGs (arrows, etc.)
+ styledPath = svgData.paths.replace(/<path/g, `<path fill="none" stroke="${color}"`);
+ } else {
+ // For fill-based SVGs (shapes, decorative elements)
+ styledPath = svgData.paths.replace(/<(path|rect|circle)/g, `<$1 fill="${color}" stroke="${color}"`);
+ }
+
+ const svgString = `<svg viewBox="${svgData.viewBox}" xmlns="http://www.w3.org/2000/svg">${styledPath}</svg>`;
+ return `data:image/svg+xml;base64,${btoa(svgString)}`;
+}
diff --git a/components/ui/alert.tsx b/components/ui/alert.tsx
new file mode 100644
index 0000000..2343f2c
--- /dev/null
+++ b/components/ui/alert.tsx
@@ -0,0 +1,69 @@
+import * as React from "react"
+import { cva, type VariantProps } from "class-variance-authority"
+
+import { cn } from "@/lib/utils"
+
+const alertVariants = cva(
+ "relative grid w-full grid-cols-[0_1fr] items-start gap-y-0.5 rounded-lg border px-4 py-3 text-sm has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] has-[>svg]:gap-x-3 [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current",
+ {
+ variants: {
+ variant: {
+ default: "bg-card text-card-foreground",
+ destructive:
+ "bg-card text-destructive *:data-[slot=alert-description]:text-destructive/90 [&>svg]:text-current",
+ info: "bg-blue-50/30 text-blue-700 border-blue-200/50 dark:bg-blue-950/20 dark:text-blue-400 dark:border-blue-800/40 *:data-[slot=alert-description]:text-blue-700/80 dark:*:data-[slot=alert-description]:text-blue-400/80",
+ success: "bg-green-50/30 text-green-700 border-green-200/50 dark:bg-green-950/20 dark:text-green-400 dark:border-green-800/40 *:data-[slot=alert-description]:text-green-700/80 dark:*:data-[slot=alert-description]:text-green-400/80",
+ warning: "bg-yellow-50/30 text-yellow-700 border-yellow-200/50 dark:bg-yellow-950/20 dark:text-yellow-400 dark:border-yellow-800/40 *:data-[slot=alert-description]:text-yellow-700/80 dark:*:data-[slot=alert-description]:text-yellow-400/80",
+ },
+ },
+ defaultVariants: {
+ variant: "default",
+ },
+ }
+)
+
+function Alert({
+ className,
+ variant,
+ ...props
+}: React.ComponentProps<"div"> & VariantProps<typeof alertVariants>) {
+ return (
+ <div
+ data-slot="alert"
+ role="alert"
+ className={cn(alertVariants({ variant }), className)}
+ {...props}
+ />
+ )
+}
+
+function AlertTitle({ className, ...props }: React.ComponentProps<"div">) {
+ return (
+ <div
+ data-slot="alert-title"
+ className={cn(
+ "col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight",
+ className
+ )}
+ {...props}
+ />
+ )
+}
+
+function AlertDescription({
+ className,
+ ...props
+}: React.ComponentProps<"div">) {
+ return (
+ <div
+ data-slot="alert-description"
+ className={cn(
+ "col-start-2 grid justify-items-start gap-1 text-sm text-muted-foreground [&_p]:leading-relaxed",
+ className
+ )}
+ {...props}
+ />
+ )
+}
+
+export { Alert, AlertTitle, AlertDescription }
diff --git a/components/ui/button.tsx b/components/ui/button.tsx
new file mode 100644
index 0000000..4b58251
--- /dev/null
+++ b/components/ui/button.tsx
@@ -0,0 +1,66 @@
+import * as React from "react"
+import { cva, type VariantProps } from "class-variance-authority"
+import { Slot } from "radix-ui"
+
+import { cn } from "@/lib/utils"
+
+const buttonVariants = cva(
+ "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
+ {
+ variants: {
+ variant: {
+ default: "bg-primary text-primary-foreground hover:bg-primary/90",
+ destructive:
+ "bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",
+ outline:
+ "border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",
+ secondary:
+ "bg-secondary text-secondary-foreground hover:bg-secondary/80",
+ ghost:
+ "hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",
+ link: "text-primary underline-offset-4 hover:underline",
+ primary: "bg-gradient-primary text-primary hover:bg-bg-gradient-primary/90 dark:hover:bg-gradient-primary/50",
+ },
+ size: {
+ default: "h-9 px-4 py-2 has-[>svg]:px-3",
+ xs: "h-6 gap-1 rounded-md px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3",
+ sm: "h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",
+ lg: "h-10 rounded-md px-6 has-[>svg]:px-4",
+ xl: "h-14 rounded-md px-10 has-[>svg]:px-8",
+ icon: "size-9",
+ "icon-xs": "size-6 rounded-md [&_svg:not([class*='size-'])]:size-3",
+ "icon-sm": "size-8",
+ "icon-lg": "size-10",
+ },
+ },
+ defaultVariants: {
+ variant: "default",
+ size: "default",
+ },
+ }
+)
+
+function Button({
+ className,
+ variant = "default",
+ size = "default",
+ asChild = false,
+ ...props
+}: React.ComponentProps<"button"> &
+ VariantProps<typeof buttonVariants> & {
+ asChild?: boolean
+ }) {
+ const Comp = asChild ? Slot.Root : "button"
+
+ return (
+ <Comp
+ data-slot="button"
+ data-variant={variant}
+ data-size={size}
+ className={cn(buttonVariants({ variant, size, className }))}
+ {...props}
+ />
+ )
+}
+
+export { Button, buttonVariants }
diff --git a/components/ui/dropdown-menu.tsx b/components/ui/dropdown-menu.tsx
new file mode 100644
index 0000000..bffc327
--- /dev/null
+++ b/components/ui/dropdown-menu.tsx
@@ -0,0 +1,257 @@
+"use client"
+
+import * as React from "react"
+import { CheckIcon, ChevronRightIcon, CircleIcon } from "lucide-react"
+import { DropdownMenu as DropdownMenuPrimitive } from "radix-ui"
+
+import { cn } from "@/lib/utils"
+
+function DropdownMenu({
+ ...props
+}: React.ComponentProps<typeof DropdownMenuPrimitive.Root>) {
+ return <DropdownMenuPrimitive.Root data-slot="dropdown-menu" {...props} />
+}
+
+function DropdownMenuPortal({
+ ...props
+}: React.ComponentProps<typeof DropdownMenuPrimitive.Portal>) {
+ return (
+ <DropdownMenuPrimitive.Portal data-slot="dropdown-menu-portal" {...props} />
+ )
+}
+
+function DropdownMenuTrigger({
+ ...props
+}: React.ComponentProps<typeof DropdownMenuPrimitive.Trigger>) {
+ return (
+ <DropdownMenuPrimitive.Trigger
+ data-slot="dropdown-menu-trigger"
+ {...props}
+ />
+ )
+}
+
+function DropdownMenuContent({
+ className,
+ sideOffset = 4,
+ ...props
+}: React.ComponentProps<typeof DropdownMenuPrimitive.Content>) {
+ return (
+ <DropdownMenuPrimitive.Portal>
+ <DropdownMenuPrimitive.Content
+ data-slot="dropdown-menu-content"
+ sideOffset={sideOffset}
+ className={cn(
+ "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",
+ className
+ )}
+ {...props}
+ />
+ </DropdownMenuPrimitive.Portal>
+ )
+}
+
+function DropdownMenuGroup({
+ ...props
+}: React.ComponentProps<typeof DropdownMenuPrimitive.Group>) {
+ return (
+ <DropdownMenuPrimitive.Group data-slot="dropdown-menu-group" {...props} />
+ )
+}
+
+function DropdownMenuItem({
+ className,
+ inset,
+ variant = "default",
+ ...props
+}: React.ComponentProps<typeof DropdownMenuPrimitive.Item> & {
+ inset?: boolean
+ variant?: "default" | "destructive"
+}) {
+ return (
+ <DropdownMenuPrimitive.Item
+ data-slot="dropdown-menu-item"
+ data-inset={inset}
+ data-variant={variant}
+ className={cn(
+ "focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
+ className
+ )}
+ {...props}
+ />
+ )
+}
+
+function DropdownMenuCheckboxItem({
+ className,
+ children,
+ checked,
+ ...props
+}: React.ComponentProps<typeof DropdownMenuPrimitive.CheckboxItem>) {
+ return (
+ <DropdownMenuPrimitive.CheckboxItem
+ data-slot="dropdown-menu-checkbox-item"
+ className={cn(
+ "focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
+ className
+ )}
+ checked={checked}
+ {...props}
+ >
+ <span className="pointer-events-none absolute left-2 flex size-3.5 items-center justify-center">
+ <DropdownMenuPrimitive.ItemIndicator>
+ <CheckIcon className="size-4" />
+ </DropdownMenuPrimitive.ItemIndicator>
+ </span>
+ {children}
+ </DropdownMenuPrimitive.CheckboxItem>
+ )
+}
+
+function DropdownMenuRadioGroup({
+ ...props
+}: React.ComponentProps<typeof DropdownMenuPrimitive.RadioGroup>) {
+ return (
+ <DropdownMenuPrimitive.RadioGroup
+ data-slot="dropdown-menu-radio-group"
+ {...props}
+ />
+ )
+}
+
+function DropdownMenuRadioItem({
+ className,
+ children,
+ ...props
+}: React.ComponentProps<typeof DropdownMenuPrimitive.RadioItem>) {
+ return (
+ <DropdownMenuPrimitive.RadioItem
+ data-slot="dropdown-menu-radio-item"
+ className={cn(
+ "focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
+ className
+ )}
+ {...props}
+ >
+ <span className="pointer-events-none absolute left-2 flex size-3.5 items-center justify-center">
+ <DropdownMenuPrimitive.ItemIndicator>
+ <CircleIcon className="size-2 fill-current" />
+ </DropdownMenuPrimitive.ItemIndicator>
+ </span>
+ {children}
+ </DropdownMenuPrimitive.RadioItem>
+ )
+}
+
+function DropdownMenuLabel({
+ className,
+ inset,
+ ...props
+}: React.ComponentProps<typeof DropdownMenuPrimitive.Label> & {
+ inset?: boolean
+}) {
+ return (
+ <DropdownMenuPrimitive.Label
+ data-slot="dropdown-menu-label"
+ data-inset={inset}
+ className={cn(
+ "px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",
+ className
+ )}
+ {...props}
+ />
+ )
+}
+
+function DropdownMenuSeparator({
+ className,
+ ...props
+}: React.ComponentProps<typeof DropdownMenuPrimitive.Separator>) {
+ return (
+ <DropdownMenuPrimitive.Separator
+ data-slot="dropdown-menu-separator"
+ className={cn("bg-border -mx-1 my-1 h-px", className)}
+ {...props}
+ />
+ )
+}
+
+function DropdownMenuShortcut({
+ className,
+ ...props
+}: React.ComponentProps<"span">) {
+ return (
+ <span
+ data-slot="dropdown-menu-shortcut"
+ className={cn(
+ "text-muted-foreground ml-auto text-xs tracking-widest",
+ className
+ )}
+ {...props}
+ />
+ )
+}
+
+function DropdownMenuSub({
+ ...props
+}: React.ComponentProps<typeof DropdownMenuPrimitive.Sub>) {
+ return <DropdownMenuPrimitive.Sub data-slot="dropdown-menu-sub" {...props} />
+}
+
+function DropdownMenuSubTrigger({
+ className,
+ inset,
+ children,
+ ...props
+}: React.ComponentProps<typeof DropdownMenuPrimitive.SubTrigger> & {
+ inset?: boolean
+}) {
+ return (
+ <DropdownMenuPrimitive.SubTrigger
+ data-slot="dropdown-menu-sub-trigger"
+ data-inset={inset}
+ className={cn(
+ "focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
+ className
+ )}
+ {...props}
+ >
+ {children}
+ <ChevronRightIcon className="ml-auto size-4" />
+ </DropdownMenuPrimitive.SubTrigger>
+ )
+}
+
+function DropdownMenuSubContent({
+ className,
+ ...props
+}: React.ComponentProps<typeof DropdownMenuPrimitive.SubContent>) {
+ return (
+ <DropdownMenuPrimitive.SubContent
+ data-slot="dropdown-menu-sub-content"
+ className={cn(
+ "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",
+ className
+ )}
+ {...props}
+ />
+ )
+}
+
+export {
+ DropdownMenu,
+ DropdownMenuPortal,
+ DropdownMenuTrigger,
+ DropdownMenuContent,
+ DropdownMenuGroup,
+ DropdownMenuLabel,
+ DropdownMenuItem,
+ DropdownMenuCheckboxItem,
+ DropdownMenuRadioGroup,
+ DropdownMenuRadioItem,
+ DropdownMenuSeparator,
+ DropdownMenuShortcut,
+ DropdownMenuSub,
+ DropdownMenuSubTrigger,
+ DropdownMenuSubContent,
+}
diff --git a/components/ui/input.tsx b/components/ui/input.tsx
new file mode 100644
index 0000000..8916905
--- /dev/null
+++ b/components/ui/input.tsx
@@ -0,0 +1,21 @@
+import * as React from "react"
+
+import { cn } from "@/lib/utils"
+
+function Input({ className, type, ...props }: React.ComponentProps<"input">) {
+ return (
+ <input
+ type={type}
+ data-slot="input"
+ className={cn(
+ "file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
+ "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
+ "aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
+ className
+ )}
+ {...props}
+ />
+ )
+}
+
+export { Input }
diff --git a/components/ui/popover.tsx b/components/ui/popover.tsx
new file mode 100644
index 0000000..9519cc4
--- /dev/null
+++ b/components/ui/popover.tsx
@@ -0,0 +1,89 @@
+"use client"
+
+import * as React from "react"
+import { Popover as PopoverPrimitive } from "radix-ui"
+
+import { cn } from "@/lib/utils"
+
+function Popover({
+ ...props
+}: React.ComponentProps<typeof PopoverPrimitive.Root>) {
+ return <PopoverPrimitive.Root data-slot="popover" {...props} />
+}
+
+function PopoverTrigger({
+ ...props
+}: React.ComponentProps<typeof PopoverPrimitive.Trigger>) {
+ return <PopoverPrimitive.Trigger data-slot="popover-trigger" {...props} />
+}
+
+function PopoverContent({
+ className,
+ align = "center",
+ sideOffset = 4,
+ ...props
+}: React.ComponentProps<typeof PopoverPrimitive.Content>) {
+ return (
+ <PopoverPrimitive.Portal>
+ <PopoverPrimitive.Content
+ data-slot="popover-content"
+ align={align}
+ sideOffset={sideOffset}
+ className={cn(
+ "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",
+ className
+ )}
+ {...props}
+ />
+ </PopoverPrimitive.Portal>
+ )
+}
+
+function PopoverAnchor({
+ ...props
+}: React.ComponentProps<typeof PopoverPrimitive.Anchor>) {
+ return <PopoverPrimitive.Anchor data-slot="popover-anchor" {...props} />
+}
+
+function PopoverHeader({ className, ...props }: React.ComponentProps<"div">) {
+ return (
+ <div
+ data-slot="popover-header"
+ className={cn("flex flex-col gap-1 text-sm", className)}
+ {...props}
+ />
+ )
+}
+
+function PopoverTitle({ className, ...props }: React.ComponentProps<"h2">) {
+ return (
+ <div
+ data-slot="popover-title"
+ className={cn("font-medium", className)}
+ {...props}
+ />
+ )
+}
+
+function PopoverDescription({
+ className,
+ ...props
+}: React.ComponentProps<"p">) {
+ return (
+ <p
+ data-slot="popover-description"
+ className={cn("text-muted-foreground", className)}
+ {...props}
+ />
+ )
+}
+
+export {
+ Popover,
+ PopoverTrigger,
+ PopoverContent,
+ PopoverAnchor,
+ PopoverHeader,
+ PopoverTitle,
+ PopoverDescription,
+}
diff --git a/components/ui/select.tsx b/components/ui/select.tsx
new file mode 100644
index 0000000..fd01b74
--- /dev/null
+++ b/components/ui/select.tsx
@@ -0,0 +1,190 @@
+"use client"
+
+import * as React from "react"
+import { CheckIcon, ChevronDownIcon, ChevronUpIcon } from "lucide-react"
+import { Select as SelectPrimitive } from "radix-ui"
+
+import { cn } from "@/lib/utils"
+
+function Select({
+ ...props
+}: React.ComponentProps<typeof SelectPrimitive.Root>) {
+ return <SelectPrimitive.Root data-slot="select" {...props} />
+}
+
+function SelectGroup({
+ ...props
+}: React.ComponentProps<typeof SelectPrimitive.Group>) {
+ return <SelectPrimitive.Group data-slot="select-group" {...props} />
+}
+
+function SelectValue({
+ ...props
+}: React.ComponentProps<typeof SelectPrimitive.Value>) {
+ return <SelectPrimitive.Value data-slot="select-value" {...props} />
+}
+
+function SelectTrigger({
+ className,
+ size = "default",
+ children,
+ ...props
+}: React.ComponentProps<typeof SelectPrimitive.Trigger> & {
+ size?: "sm" | "default"
+}) {
+ return (
+ <SelectPrimitive.Trigger
+ data-slot="select-trigger"
+ data-size={size}
+ className={cn(
+ "border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
+ className
+ )}
+ {...props}
+ >
+ {children}
+ <SelectPrimitive.Icon asChild>
+ <ChevronDownIcon className="size-4 opacity-50" />
+ </SelectPrimitive.Icon>
+ </SelectPrimitive.Trigger>
+ )
+}
+
+function SelectContent({
+ className,
+ children,
+ position = "item-aligned",
+ align = "center",
+ ...props
+}: React.ComponentProps<typeof SelectPrimitive.Content>) {
+ return (
+ <SelectPrimitive.Portal>
+ <SelectPrimitive.Content
+ data-slot="select-content"
+ className={cn(
+ "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",
+ position === "popper" &&
+ "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
+ className
+ )}
+ position={position}
+ align={align}
+ {...props}
+ >
+ <SelectScrollUpButton />
+ <SelectPrimitive.Viewport
+ className={cn(
+ "p-1",
+ position === "popper" &&
+ "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"
+ )}
+ >
+ {children}
+ </SelectPrimitive.Viewport>
+ <SelectScrollDownButton />
+ </SelectPrimitive.Content>
+ </SelectPrimitive.Portal>
+ )
+}
+
+function SelectLabel({
+ className,
+ ...props
+}: React.ComponentProps<typeof SelectPrimitive.Label>) {
+ return (
+ <SelectPrimitive.Label
+ data-slot="select-label"
+ className={cn("text-muted-foreground px-2 py-1.5 text-xs", className)}
+ {...props}
+ />
+ )
+}
+
+function SelectItem({
+ className,
+ children,
+ ...props
+}: React.ComponentProps<typeof SelectPrimitive.Item>) {
+ return (
+ <SelectPrimitive.Item
+ data-slot="select-item"
+ className={cn(
+ "focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",
+ className
+ )}
+ {...props}
+ >
+ <span
+ data-slot="select-item-indicator"
+ className="absolute right-2 flex size-3.5 items-center justify-center"
+ >
+ <SelectPrimitive.ItemIndicator>
+ <CheckIcon className="size-4" />
+ </SelectPrimitive.ItemIndicator>
+ </span>
+ <SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>
+ </SelectPrimitive.Item>
+ )
+}
+
+function SelectSeparator({
+ className,
+ ...props
+}: React.ComponentProps<typeof SelectPrimitive.Separator>) {
+ return (
+ <SelectPrimitive.Separator
+ data-slot="select-separator"
+ className={cn("bg-border pointer-events-none -mx-1 my-1 h-px", className)}
+ {...props}
+ />
+ )
+}
+
+function SelectScrollUpButton({
+ className,
+ ...props
+}: React.ComponentProps<typeof SelectPrimitive.ScrollUpButton>) {
+ return (
+ <SelectPrimitive.ScrollUpButton
+ data-slot="select-scroll-up-button"
+ className={cn(
+ "flex cursor-default items-center justify-center py-1",
+ className
+ )}
+ {...props}
+ >
+ <ChevronUpIcon className="size-4" />
+ </SelectPrimitive.ScrollUpButton>
+ )
+}
+
+function SelectScrollDownButton({
+ className,
+ ...props
+}: React.ComponentProps<typeof SelectPrimitive.ScrollDownButton>) {
+ return (
+ <SelectPrimitive.ScrollDownButton
+ data-slot="select-scroll-down-button"
+ className={cn(
+ "flex cursor-default items-center justify-center py-1",
+ className
+ )}
+ {...props}
+ >
+ <ChevronDownIcon className="size-4" />
+ </SelectPrimitive.ScrollDownButton>
+ )
+}
+
+export {
+ Select,
+ SelectContent,
+ SelectGroup,
+ SelectItem,
+ SelectLabel,
+ SelectScrollDownButton,
+ SelectScrollUpButton,
+ SelectSeparator,
+ SelectTrigger,
+ SelectValue,
+}
diff --git a/eslint.config.mjs b/eslint.config.mjs
new file mode 100644
index 0000000..05e726d
--- /dev/null
+++ b/eslint.config.mjs
@@ -0,0 +1,18 @@
+import { defineConfig, globalIgnores } from "eslint/config";
+import nextVitals from "eslint-config-next/core-web-vitals";
+import nextTs from "eslint-config-next/typescript";
+
+const eslintConfig = defineConfig([
+ ...nextVitals,
+ ...nextTs,
+ // Override default ignores of eslint-config-next.
+ globalIgnores([
+ // Default ignores of eslint-config-next:
+ ".next/**",
+ "out/**",
+ "build/**",
+ "next-env.d.ts",
+ ]),
+]);
+
+export default eslintConfig;
diff --git a/hooks/RecordingContext.tsx b/hooks/RecordingContext.tsx
new file mode 100644
index 0000000..feadbdd
--- /dev/null
+++ b/hooks/RecordingContext.tsx
@@ -0,0 +1,28 @@
+"use client";
+
+import { createContext, useContext, ReactNode } from "react";
+import { useScreenRecording } from "./useScreenRecording";
+import type { RecordingState, RecordingContextType } from "@/types";
+
+// Re-export tipos para compatibilidad
+export type { RecordingState, RecordingContextType };
+
+const RecordingContext = createContext<RecordingContextType | null>(null);
+
+export function RecordingProvider({ children }: { children: ReactNode }) {
+ const recording = useScreenRecording();
+
+ return (
+ <RecordingContext.Provider value={recording}>
+ {children}
+ </RecordingContext.Provider>
+ );
+}
+
+export function useRecording() {
+ const context = useContext(RecordingContext);
+ if (!context) {
+ throw new Error("useRecording must be used within a RecordingProvider");
+ }
+ return context;
+}
diff --git a/hooks/useDebounce.ts b/hooks/useDebounce.ts
new file mode 100644
index 0000000..5747624
--- /dev/null
+++ b/hooks/useDebounce.ts
@@ -0,0 +1,21 @@
+import { useEffect, useState } from 'react';
+
+/**
+ * Hook para debouncing de valores - útil para evitar renders excesivos
+ * en sliders y otros controles que cambian rápidamente
+ */
+export function useDebounce<T>(value: T, delay: number = 300): T {
+ const [debouncedValue, setDebouncedValue] = useState<T>(value);
+
+ useEffect(() => {
+ const timer = setTimeout(() => {
+ setDebouncedValue(value);
+ }, delay);
+
+ return () => {
+ clearTimeout(timer);
+ };
+ }, [value, delay]);
+
+ return debouncedValue;
+}
diff --git a/hooks/useScreenRecording.ts b/hooks/useScreenRecording.ts
new file mode 100644
index 0000000..6666bca
--- /dev/null
+++ b/hooks/useScreenRecording.ts
@@ -0,0 +1,427 @@
+"use client";
+
+import { useState, useCallback, useRef, useEffect } from "react";
+import { useRouter } from "next/navigation";
+import type { RecordingState, RecordingResult, VideoData } from "@/types";
+import { clearAllThumbnailCache } from "@/lib/thumbnail-cache";
+
+// Re-export tipos para compatibilidad
+export type { RecordingState, RecordingResult, VideoData };
+
+/**
+ * Generate a unique video ID
+ */
+function generateVideoId(): string {
+ return `vid_${Date.now()}_${Math.random().toString(36).substring(2, 9)}`;
+}
+
+async function getDB(): Promise<IDBDatabase> {
+ return new Promise((resolve, reject) => {
+ const dbName = "FreeshotDB";
+ const storeName = "videos";
+ const version = 1;
+
+ const request = indexedDB.open(dbName, version);
+
+ request.onupgradeneeded = (event) => {
+ const db = (event.target as IDBOpenDBRequest).result;
+ if (!db.objectStoreNames.contains(storeName)) {
+ db.createObjectStore(storeName);
+ }
+ };
+
+ request.onsuccess = () => resolve(request.result);
+ request.onerror = () => reject(request.error);
+ });
+}
+async function saveVideoToIndexedDB(blob: Blob, duration: number): Promise<string> {
+ // Clear old thumbnail cache before saving new video
+ try {
+ await clearAllThumbnailCache();
+ } catch (e) {
+ console.warn("Failed to clear thumbnail cache:", e);
+ }
+
+ const videoId = generateVideoId();
+ const db = await getDB(); // Pedimos la conexión a la base de datos
+
+ return new Promise((resolve, reject) => {
+ const storeName = "videos";
+ const transaction = db.transaction([storeName], "readwrite");
+ const store = transaction.objectStore(storeName);
+
+ const videoData = {
+ blob,
+ duration,
+ videoId,
+ timestamp: Date.now(),
+ };
+
+ const putRequest = store.put(videoData, "currentVideo");
+
+ putRequest.onsuccess = () => {
+ db.close();
+ resolve(videoId);
+ };
+
+ putRequest.onerror = () => {
+ db.close();
+ reject(putRequest.error);
+ };
+ });
+}
+
+
+// 3. Refactorización de loadVideoFromIndexedDB
+export async function loadVideoFromIndexedDB(): Promise<{ blob: Blob; duration: number; url: string; videoId: string } | null> {
+ try {
+ const db = await getDB(); // Pedimos la conexión a la base de datos
+ const storeName = "videos";
+
+ // Verificación de seguridad por si acaso
+ if (!db.objectStoreNames.contains(storeName)) {
+ db.close();
+ return null;
+ }
+
+ return new Promise((resolve, reject) => {
+ const transaction = db.transaction([storeName], "readonly");
+ const store = transaction.objectStore(storeName);
+ const getRequest = store.get("currentVideo");
+
+ getRequest.onsuccess = () => {
+ db.close();
+ const data = getRequest.result;
+
+ if (data) {
+ const url = URL.createObjectURL(data.blob);
+ // Generate videoId if not exists (for backwards compatibility)
+ const videoId = data.videoId || `vid_${data.timestamp || Date.now()}`;
+ resolve({ blob: data.blob, duration: data.duration, url, videoId });
+ } else {
+ resolve(null);
+ }
+ };
+
+ getRequest.onerror = () => {
+ db.close();
+ reject(getRequest.error);
+ };
+ });
+ } catch (error) {
+ console.error("Error al cargar video desde la base de datos:", error);
+ return null; // Devolvemos null de forma segura si la DB falla al abrirse
+ }
+}
+
+// Función para eliminar el video grabado de IndexedDB
+export async function deleteRecordedVideo(): Promise<void> {
+ try {
+ const db = await getDB();
+ const storeName = "videos";
+
+ if (!db.objectStoreNames.contains(storeName)) {
+ db.close();
+ return;
+ }
+
+ return new Promise((resolve, reject) => {
+ const transaction = db.transaction([storeName], "readwrite");
+ const store = transaction.objectStore(storeName);
+ const deleteRequest = store.delete("currentVideo");
+
+ deleteRequest.onsuccess = () => {
+ db.close();
+ resolve();
+ };
+ deleteRequest.onerror = () => {
+ db.close();
+ reject(deleteRequest.error);
+ };
+ });
+ } catch (error) {
+ throw error;
+ }
+}
+
+// Favicons como data URLs para cambio dinámico
+const favicons = {
+ idle: `data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><circle cx="16" cy="16" r="14" fill="%230E0E12" stroke="%233B82F6" stroke-width="2"/><circle cx="16" cy="16" r="6" fill="%233B82F6"/></svg>`,
+ countdown: `data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><circle cx="16" cy="16" r="14" fill="%230E0E12" stroke="%23FBBF24" stroke-width="2"/><circle cx="16" cy="16" r="6" fill="%23FBBF24"/></svg>`,
+ recording: `data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><circle cx="16" cy="16" r="14" fill="%230E0E12" stroke="%23EF4444" stroke-width="2"/><circle cx="16" cy="16" r="6" fill="%23EF4444"><animate attributeName="opacity" values="1;0.4;1" dur="1s" repeatCount="indefinite"/></circle></svg>`,
+ processing: `data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><circle cx="16" cy="16" r="14" fill="%230E0E12" stroke="%2322C55E" stroke-width="2"/><circle cx="16" cy="16" r="6" fill="%2222C55E"/></svg>`,
+};
+
+const titles = {
+ idle: "Freeshot - Crea tomas cinemáticas",
+ countdown: (count: number) => `Grabando en ${count}...`,
+ recording: "Grabando...",
+ processing: "⏳ Procesando video...",
+};
+
+export function useScreenRecording() {
+ const [state, setState] = useState<RecordingState>("idle");
+ const [countdown, setCountdown] = useState<number>(0);
+ const [error, setError] = useState<string | null>(null);
+ const [recordingTime, setRecordingTime] = useState<number>(0);
+
+ const router = useRouter();
+ const mediaRecorderRef = useRef<MediaRecorder | null>(null);
+ const streamRef = useRef<MediaStream | null>(null);
+ const chunksRef = useRef<Blob[]>([]);
+ const startTimeRef = useRef<number>(0);
+ const originalTitleRef = useRef<string>("");
+ const faviconLinkRef = useRef<HTMLLinkElement | null>(null);
+ const stateRef = useRef<RecordingState>("idle");
+ const recordingTimerRef = useRef<NodeJS.Timeout | null>(null);
+
+ useEffect(() => {
+ stateRef.current = state;
+ }, [state]);
+
+ const setFavicon = useCallback((type: keyof typeof favicons) => {
+ if (typeof document === "undefined") return;
+
+ if (!faviconLinkRef.current) {
+ faviconLinkRef.current = document.querySelector('link[rel="icon"]');
+ if (!faviconLinkRef.current) {
+ faviconLinkRef.current = document.createElement("link");
+ faviconLinkRef.current.rel = "icon";
+ document.head.appendChild(faviconLinkRef.current);
+ }
+ }
+ faviconLinkRef.current.href = favicons[type];
+ }, []);
+
+ const setTitle = useCallback((title: string) => {
+ if (typeof document === "undefined") return;
+ document.title = title;
+ }, []);
+
+ const restoreOriginals = useCallback(() => {
+ setFavicon("idle");
+ setTitle(originalTitleRef.current || titles.idle);
+ }, [setFavicon, setTitle]);
+
+ useEffect(() => {
+ if (typeof document !== "undefined") {
+ originalTitleRef.current = document.title;
+ }
+ }, []);
+
+ useEffect(() => {
+ if (state === "idle") {
+ restoreOriginals();
+ } else if (state === "countdown") {
+ setFavicon("countdown");
+ setTitle(titles.countdown(countdown));
+ } else if (state === "recording") {
+ setFavicon("recording");
+ const timeStr = recordingTime.toString().padStart(2, '0');
+ setTitle(`Grabando ${timeStr}s`);
+ } else if (state === "processing") {
+ setFavicon("processing");
+ setTitle(titles.processing);
+ }
+ }, [state, countdown, recordingTime, setFavicon, setTitle, restoreOriginals]);
+
+ useEffect(() => {
+ if (state === "recording") {
+ setRecordingTime(0);
+ recordingTimerRef.current = setInterval(() => {
+ setRecordingTime((prev) => prev + 1);
+ }, 1000);
+ } else {
+ if (recordingTimerRef.current) {
+ clearInterval(recordingTimerRef.current);
+ recordingTimerRef.current = null;
+ }
+ if (state === "idle") {
+ setRecordingTime(0);
+ }
+ }
+
+ return () => {
+ if (recordingTimerRef.current) {
+ clearInterval(recordingTimerRef.current);
+ }
+ };
+ }, [state]);
+
+ const stopRecording = useCallback(() => {
+ if (mediaRecorderRef.current && mediaRecorderRef.current.state !== "inactive") {
+ mediaRecorderRef.current.stop();
+ }
+ }, []);
+
+ // Iniciar la grabación real
+ const startRecording = useCallback((stream: MediaStream) => {
+ try {
+ chunksRef.current = [];
+ startTimeRef.current = Date.now();
+
+ const codecOptions = [
+ { mimeType: "video/webm;codecs=vp9,opus" },
+ { mimeType: "video/webm;codecs=vp8,opus" },
+ { mimeType: "video/webm;codecs=vp9" },
+ { mimeType: "video/webm;codecs=vp8" },
+ { mimeType: "video/webm" },
+ ];
+
+ let mediaRecorder: MediaRecorder | null = null;
+
+ for (const options of codecOptions) {
+ try {
+ if (MediaRecorder.isTypeSupported(options.mimeType)) {
+ mediaRecorder = new MediaRecorder(stream, options);
+ console.log(`Using codec: ${options.mimeType}`);
+ break;
+ }
+ } catch (e) {
+ console.warn(`Failed to create MediaRecorder with ${options.mimeType}:`, e);
+ }
+ }
+
+ if (!mediaRecorder) {
+ try {
+ mediaRecorder = new MediaRecorder(stream);
+ console.log("Using default MediaRecorder settings");
+ } catch {
+ throw new Error("No se pudo crear MediaRecorder con ninguna configuración");
+ }
+ }
+
+ mediaRecorderRef.current = mediaRecorder;
+
+ mediaRecorder.ondataavailable = (event) => {
+ if (event.data.size > 0) {
+ chunksRef.current.push(event.data);
+ }
+ };
+
+ mediaRecorder.onerror = (event) => {
+ console.error("MediaRecorder error:", event);
+ setError("Error durante la grabación");
+ setState("idle");
+ restoreOriginals();
+ };
+
+ mediaRecorder.onstop = async () => {
+ setState("processing");
+
+ if (streamRef.current) {
+ streamRef.current.getTracks().forEach((track) => track.stop());
+ streamRef.current = null;
+ }
+
+ const blob = new Blob(chunksRef.current, { type: "video/webm" });
+ const duration = (Date.now() - startTimeRef.current) / 1000;
+
+ try {
+ await saveVideoToIndexedDB(blob, duration);
+
+ router.push("/editor");
+ } catch (error) {
+ console.error("Error al guardar video:", error);
+ setError("Error al procesar el video");
+ setState("idle");
+ restoreOriginals();
+ }
+ };
+
+ try {
+ mediaRecorder.start(1000);
+ setState("recording");
+ } catch (e) {
+ console.error("Error starting MediaRecorder:", e);
+ throw new Error("No se pudo iniciar la grabación");
+ }
+
+ } catch (err) {
+ console.error("Error al iniciar grabación:", err);
+ setError(err instanceof Error ? err.message : "No se pudo iniciar la grabación");
+ setState("idle");
+ restoreOriginals();
+ }
+ }, [router, restoreOriginals]);
+
+ const startCountdown = useCallback(async () => {
+ try {
+ setError(null);
+
+ const stream = await navigator.mediaDevices.getDisplayMedia({
+ video: {
+ displaySurface: "browser",
+ },
+ audio: {
+ echoCancellation: true,
+ noiseSuppression: true,
+ },
+ });
+
+ streamRef.current = stream;
+
+ stream.getVideoTracks()[0].onended = () => {
+ if (stateRef.current === "recording") {
+ stopRecording();
+ } else {
+ setState("idle");
+ restoreOriginals();
+ }
+ };
+
+ setState("countdown");
+ setCountdown(4);
+
+ let count = 4;
+ const countdownInterval = setInterval(() => {
+ count--;
+ setCountdown(count);
+
+ if (count <= 0) {
+ clearInterval(countdownInterval);
+ startRecording(stream);
+ }
+ }, 1000);
+
+ } catch (err) {
+ console.error("Error al iniciar captura:", err);
+ setError("No se pudo iniciar la captura de pantalla");
+ setState("idle");
+ restoreOriginals();
+ }
+ }, [restoreOriginals, stopRecording, startRecording]);
+
+ const cancelRecording = useCallback(() => {
+ if (streamRef.current) {
+ streamRef.current.getTracks().forEach((track) => track.stop());
+ streamRef.current = null;
+ }
+ if (mediaRecorderRef.current && mediaRecorderRef.current.state !== "inactive") {
+ mediaRecorderRef.current.stop();
+ }
+ chunksRef.current = [];
+ setState("idle");
+ restoreOriginals();
+ }, [restoreOriginals]);
+
+ useEffect(() => {
+ if (recordingTime >= 60 && state === "recording") {
+ stopRecording();
+ }
+ }, [recordingTime, state, stopRecording]);
+
+ return {
+ state,
+ countdown,
+ recordingTime,
+ error,
+ startCountdown,
+ stopRecording,
+ cancelRecording,
+ isIdle: state === "idle",
+ isCountdown: state === "countdown",
+ isRecording: state === "recording",
+ isProcessing: state === "processing",
+ };
+}
diff --git a/hooks/useVideoExport.ts b/hooks/useVideoExport.ts
new file mode 100644
index 0000000..cecb3d4
--- /dev/null
+++ b/hooks/useVideoExport.ts
@@ -0,0 +1,332 @@
+"use client";
+
+import { useState, useCallback, RefObject, useRef } from "react";
+import { Output, Mp4OutputFormat, BufferTarget, CanvasSource } from "mediabunny";
+import type { VideoCanvasHandle } from "@/types";
+import type { ExportQuality, ExportSettings, ExportProgress } from "@/types";
+import { QUALITY_SETTINGS, DEFAULT_EXPORT_FPS } from "@/lib/constants";
+import { ensureVideoReady, waitForVideoFrame, downloadBlob } from "@/lib/video.utils";
+
+// Re-export tipos para compatibilidad
+export type { ExportQuality, ExportSettings, ExportProgress };
+
+interface CancellationToken {
+ cancelled: boolean;
+}
+
+export function useVideoExport(
+ videoRef: RefObject<HTMLVideoElement | null>,
+ canvasRef: RefObject<VideoCanvasHandle | null>,
+) {
+ const [exportProgress, setExportProgress] = useState<ExportProgress>({
+ status: "idle",
+ progress: 0,
+ message: "",
+ });
+
+ const cancellationRef = useRef<CancellationToken>({ cancelled: false });
+ const isExportingRef = useRef(false);
+
+ const resetState = useCallback(() => {
+ cancellationRef.current = { cancelled: false };
+ isExportingRef.current = false;
+ setExportProgress({
+ status: "idle",
+ progress: 0,
+ message: "",
+ });
+ }, []);
+
+ const exportVideo = useCallback(async (settings: ExportSettings): Promise<void> => {
+ // Prevenir múltiples exportaciones simultáneas
+ if (isExportingRef.current) {
+ console.log("Export already in progress");
+ return;
+ }
+
+ // Reset completo del estado antes de empezar
+ cancellationRef.current = { cancelled: false };
+ isExportingRef.current = true;
+
+ const video = videoRef.current;
+ const canvasHandle = canvasRef.current;
+
+ if (!video || !canvasHandle) {
+ setExportProgress({
+ status: "error",
+ progress: 0,
+ message: "No hay video para exportar",
+ });
+ isExportingRef.current = false;
+ return;
+ }
+
+ // Verificar que el video tenga duración válida
+ if (!video.duration || video.duration === Infinity || isNaN(video.duration)) {
+ setExportProgress({
+ status: "error",
+ progress: 0,
+ message: "El video no está cargado correctamente",
+ });
+ isExportingRef.current = false;
+ return;
+ }
+
+ const exportCanvas = canvasHandle.getExportCanvas();
+ if (!exportCanvas) {
+ setExportProgress({
+ status: "error",
+ progress: 0,
+ message: "Error al obtener el canvas de exportación",
+ });
+ isExportingRef.current = false;
+ return;
+ }
+
+ const qualitySettings = QUALITY_SETTINGS[settings.quality];
+ const fps = settings.fps || qualitySettings.fps || DEFAULT_EXPORT_FPS;
+
+ try {
+ setExportProgress({
+ status: "preparing",
+ progress: 2,
+ message: "Preparando video...",
+ });
+
+ // Asegurar que el video esté completamente listo
+ await ensureVideoReady(video);
+
+ if (cancellationRef.current.cancelled) {
+ throw new Error("Exportación cancelada");
+ }
+
+ setExportProgress({
+ status: "preparing",
+ progress: 5,
+ message: "Configurando exportación...",
+ });
+
+ // Ajustar tamaño del canvas según calidad manteniendo aspect ratio
+ const originalWidth = exportCanvas.width;
+ const originalHeight = exportCanvas.height;
+ const originalAspectRatio = originalWidth / originalHeight;
+ const qualityAspectRatio = qualitySettings.width / qualitySettings.height;
+
+ // Escalar para mantener el aspect ratio del canvas original
+ let targetWidth: number;
+ let targetHeight: number;
+
+ if (Math.abs(originalAspectRatio - qualityAspectRatio) < 0.01) {
+ // Si los aspect ratios son similares, usar dimensiones directas
+ targetWidth = qualitySettings.width;
+ targetHeight = qualitySettings.height;
+ } else if (originalAspectRatio > qualityAspectRatio) {
+ // Canvas más ancho, escalar por ancho
+ targetWidth = qualitySettings.width;
+ targetHeight = Math.round(qualitySettings.width / originalAspectRatio);
+ } else {
+ // Canvas más alto, escalar por altura
+ targetHeight = qualitySettings.height;
+ targetWidth = Math.round(qualitySettings.height * originalAspectRatio);
+ }
+
+ // Ensure dimensions are even numbers (required by AVC codec)
+ targetWidth = Math.round(targetWidth / 2) * 2;
+ targetHeight = Math.round(targetHeight / 2) * 2;
+
+ exportCanvas.width = targetWidth;
+ exportCanvas.height = targetHeight;
+
+ // Guardar posición actual del video
+ const originalTime = video.currentTime;
+ const wasPlaying = !video.paused;
+
+ // Determine trim range (use full video if no trim specified)
+ const trimStart = settings.trim?.start ?? 0;
+ const trimEnd = settings.trim?.end ?? video.duration;
+ const exportDuration = trimEnd - trimStart;
+
+ await exportWithMediabunny(
+ video,
+ canvasHandle,
+ exportCanvas,
+ exportDuration,
+ trimStart,
+ fps,
+ qualitySettings.bitrate,
+ qualitySettings.width,
+ qualitySettings.height,
+ setExportProgress,
+ cancellationRef.current
+ );
+
+ // Restaurar canvas y video
+ exportCanvas.width = originalWidth;
+ exportCanvas.height = originalHeight;
+ video.currentTime = originalTime;
+
+ // Restaurar estado de reproducción
+ if (wasPlaying) {
+ await video.play().catch(() => {});
+ }
+
+ } catch (error) {
+ // Si fue cancelado, no mostrar error
+ if (cancellationRef.current.cancelled) {
+ setExportProgress({
+ status: "idle",
+ progress: 0,
+ message: "",
+ });
+ } else {
+ console.error("Error durante la exportación:", error);
+ setExportProgress({
+ status: "error",
+ progress: 0,
+ message: error instanceof Error ? error.message : "Error durante la exportación",
+ });
+ }
+ } finally {
+ // Siempre resetear el flag de exportación
+ isExportingRef.current = false;
+ }
+ }, [videoRef, canvasRef]);
+
+ const cancelExport = useCallback(() => {
+ // Marcar como cancelado
+ cancellationRef.current.cancelled = true;
+ // Resetear el flag de exportación inmediatamente
+ isExportingRef.current = false;
+ setExportProgress({
+ status: "idle",
+ progress: 0,
+ message: "",
+ });
+ }, []);
+
+ return {
+ exportVideo,
+ cancelExport,
+ resetState,
+ exportProgress,
+ };
+}
+
+async function exportWithMediabunny(
+ video: HTMLVideoElement,
+ canvasHandle: VideoCanvasHandle,
+ canvas: HTMLCanvasElement,
+ duration: number,
+ trimStart: number,
+ fps: number,
+ bitrate: number,
+ width: number,
+ height: number,
+ setProgress: (p: ExportProgress) => void,
+ cancellation: CancellationToken
+): Promise<void> {
+ // Verificar cancelación
+ if (cancellation.cancelled) {
+ throw new Error("Exportación cancelada");
+ }
+
+ setProgress({
+ status: "encoding",
+ progress: 10,
+ message: `Iniciando codificación a ${fps} fps...`,
+ });
+
+ const totalFrames = Math.ceil(duration * fps);
+ const frameDuration = 1 / fps;
+
+ const output = new Output({
+ format: new Mp4OutputFormat({
+ fastStart: "in-memory",
+ }),
+ target: new BufferTarget(),
+ });
+
+ const videoSource = new CanvasSource(canvas, {
+ codec: "avc",
+ bitrate: bitrate,
+ });
+
+ output.addVideoTrack(videoSource, {
+ frameRate: fps,
+ });
+
+ await output.start();
+
+ // Pausar el video y moverlo al inicio del trim
+ video.pause();
+ video.currentTime = trimStart;
+ await waitForVideoFrame(video);
+
+ // Procesar frames con verificación de cancelación
+ for (let frameIndex = 0; frameIndex < totalFrames; frameIndex++) {
+ // Verificar cancelación antes de cada frame
+ if (cancellation.cancelled) {
+ throw new Error("Exportación cancelada");
+ }
+
+ const outputTime = frameIndex / fps; // Time in the output video
+ const sourceTime = trimStart + outputTime; // Time in the source video
+
+ video.currentTime = Math.min(sourceTime, trimStart + duration - 0.001);
+
+ await waitForVideoFrame(video);
+
+ await canvasHandle.drawFrame();
+
+ await videoSource.add(outputTime, frameDuration);
+
+ // Actualizar progreso cada 5 frames para mejor rendimiento
+ if (frameIndex % 5 === 0 || frameIndex === totalFrames - 1) {
+ const progress = 10 + Math.round((frameIndex / totalFrames) * 80);
+ setProgress({
+ status: "encoding",
+ progress,
+ message: `Codificando ${frameIndex + 1}/${totalFrames} frames (${fps}fps)...`,
+ });
+ }
+ }
+
+ // Verificar cancelación antes de finalizar
+ if (cancellation.cancelled) {
+ throw new Error("Exportación cancelada");
+ }
+
+ setProgress({
+ status: "finalizing",
+ progress: 92,
+ message: "Finalizando codificación...",
+ });
+
+ await output.finalize();
+
+ // Verificar una última vez antes de descargar
+ if (cancellation.cancelled) {
+ throw new Error("Exportación cancelada");
+ }
+
+ setProgress({
+ status: "finalizing",
+ progress: 96,
+ message: "Generando archivo MP4...",
+ });
+
+ const buffer = (output.target as BufferTarget).buffer;
+
+ if (!buffer) {
+ throw new Error("No se pudo generar el archivo MP4");
+ }
+
+ const blob = new Blob([buffer], { type: "video/mp4" });
+ downloadBlob(blob, `video-export-${width}x${height}.mp4`);
+
+ setProgress({
+ status: "complete",
+ progress: 100,
+ message: "¡Exportación completada!",
+ });
+}
diff --git a/hooks/useVideoThumbnails.ts b/hooks/useVideoThumbnails.ts
new file mode 100644
index 0000000..cfda4c3
--- /dev/null
+++ b/hooks/useVideoThumbnails.ts
@@ -0,0 +1,389 @@
+import { useState, useEffect, useRef, useCallback, useMemo } from "react";
+import {
+ getCachedThumbnails,
+ saveThumbnailsToCache,
+} from "@/lib/thumbnail-cache";
+
+export interface VideoThumbnail {
+ time: number;
+ dataUrl: string;
+ quality?: "low" | "high";
+}
+
+export type ThumbnailQuality = "low" | "medium" | "high" | "native";
+
+export interface UseVideoThumbnailsOptions {
+ /** Interval between thumbnails in seconds (default: 0.1) */
+ interval?: number;
+ /**
+ * Quality preset:
+ * - "low": 480px width, fast generation
+ * - "medium": 720px width, balanced
+ * - "high": 960px width, good quality (default)
+ * - "native": Original video resolution, best quality but more memory
+ */
+ quality?: ThumbnailQuality;
+ /** Custom width override */
+ width?: number;
+ /** Enable progressive loading (low quality first, then high) - default: true */
+ progressive?: boolean;
+ /** Unique video ID for caching (required for cache to work across reloads) */
+ videoId?: string;
+}
+
+// Quality presets for thumbnail resolution
+const QUALITY_PRESETS: Record<ThumbnailQuality, number | null> = {
+ low: 480,
+ medium: 720,
+ high: 960,
+ native: null,
+};
+
+// Low quality preset for fast initial loading
+const LOW_QUALITY_WIDTH = 480;
+
+export interface UseVideoThumbnailsReturn {
+ /** Array of generated thumbnails */
+ thumbnails: VideoThumbnail[];
+ /** Whether thumbnails are being generated */
+ isGenerating: boolean;
+ /** Progress from 0 to 100 */
+ progress: number;
+ /** Get the nearest thumbnail for a given time */
+ getThumbnailForTime: (time: number) => VideoThumbnail | null;
+ /** Regenerate thumbnails (clears cache) */
+ regenerate: () => void;
+}
+
+/**
+ * Hook to generate high-quality video thumbnails for smooth scrubbing preview
+ * Features:
+ * - IndexedDB caching (doesn't regenerate if cached)
+ * - Progressive loading (low quality first, then high quality)
+ * - Background processing using requestIdleCallback
+ */
+export function useVideoThumbnails(
+ videoUrl: string | null,
+ duration: number,
+ options: UseVideoThumbnailsOptions = {}
+): UseVideoThumbnailsReturn {
+ const {
+ interval = 0.1,
+ quality = "high",
+ width: customWidth,
+ progressive = true,
+ videoId,
+ } = options;
+
+ // Separate states for low and high quality thumbnails
+ const [lowQualityThumbnails, setLowQualityThumbnails] = useState<VideoThumbnail[]>([]);
+ const [highQualityThumbnails, setHighQualityThumbnails] = useState<VideoThumbnail[]>([]);
+ const [isGenerating, setIsGenerating] = useState(false);
+ const [progress, setProgress] = useState(0);
+
+ const abortRef = useRef<boolean>(false);
+ const videoElementRef = useRef<HTMLVideoElement | null>(null);
+
+ // Merged thumbnails: prefer high quality, fallback to low quality
+ const thumbnails = useMemo(() => {
+ if (highQualityThumbnails.length > 0) {
+ return highQualityThumbnails;
+ }
+ return lowQualityThumbnails;
+ }, [lowQualityThumbnails, highQualityThumbnails]);
+
+ /**
+ * Generate thumbnails at a specific quality level
+ */
+ const generateThumbnailsAtQuality = useCallback(async (
+ video: HTMLVideoElement,
+ canvas: HTMLCanvasElement,
+ targetQuality: "low" | "high",
+ targetWidth: number,
+ videoDuration: number,
+ onProgress: (progress: number) => void,
+ onThumbnailGenerated: (thumb: VideoThumbnail) => void
+ ): Promise<VideoThumbnail[]> => {
+ const nativeWidth = video.videoWidth;
+ const nativeHeight = video.videoHeight;
+ const aspectRatio = nativeWidth / nativeHeight;
+
+ // Don't upscale
+ const thumbWidth = Math.min(targetWidth, nativeWidth);
+ const thumbHeight = Math.round(thumbWidth / aspectRatio);
+
+ canvas.width = thumbWidth;
+ canvas.height = thumbHeight;
+
+ const ctx = canvas.getContext("2d", {
+ alpha: false,
+ willReadFrequently: false,
+ });
+ if (!ctx) throw new Error("Failed to get canvas context");
+
+ ctx.imageSmoothingEnabled = true;
+ ctx.imageSmoothingQuality = targetQuality === "high" ? "high" : "medium";
+
+ const numThumbnails = Math.ceil(videoDuration / interval) + 1;
+ const newThumbnails: VideoThumbnail[] = [];
+
+ // Detect best image format
+ const supportsWebP = canvas.toDataURL("image/webp").startsWith("data:image/webp");
+ const imageFormat = supportsWebP ? "image/webp" : "image/jpeg";
+ const imageQuality = targetQuality === "high" ? 0.92 : 0.7;
+
+ for (let i = 0; i < numThumbnails; i++) {
+ if (abortRef.current) break;
+
+ const time = Math.min(i * interval, videoDuration);
+
+ // Seek to time
+ video.currentTime = time;
+
+ // Wait for seek to complete
+ await new Promise<void>((resolve) => {
+ const onSeeked = () => {
+ video.removeEventListener("seeked", onSeeked);
+ resolve();
+ };
+ video.addEventListener("seeked", onSeeked);
+ });
+
+ // Draw frame to canvas
+ ctx.drawImage(video, 0, 0, thumbWidth, thumbHeight);
+
+ // Get data URL
+ const dataUrl = canvas.toDataURL(imageFormat, imageQuality);
+
+ const thumb: VideoThumbnail = {
+ time,
+ dataUrl,
+ quality: targetQuality,
+ };
+ newThumbnails.push(thumb);
+ onThumbnailGenerated(thumb);
+ onProgress(((i + 1) / numThumbnails) * 100);
+
+ // Yield to main thread using requestIdleCallback or setTimeout
+ if (i % 3 === 0) {
+ await new Promise<void>((resolve) => {
+ if ("requestIdleCallback" in window) {
+ requestIdleCallback(() => resolve(), { timeout: 16 });
+ } else {
+ setTimeout(resolve, 0);
+ }
+ });
+ }
+ }
+
+ return newThumbnails;
+ }, [interval]);
+
+ /**
+ * Main generation function with caching and progressive loading
+ */
+ const generateThumbnails = useCallback(async (forceRegenerate = false) => {
+ if (!videoUrl || duration <= 0) return;
+
+ abortRef.current = false;
+ setIsGenerating(true);
+ setProgress(0);
+
+ // Calculate target width for high quality
+ let highQualityWidth: number;
+ if (customWidth) {
+ highQualityWidth = customWidth;
+ } else {
+ const presetWidth = QUALITY_PRESETS[quality];
+ highQualityWidth = presetWidth ?? 1920;
+ }
+
+ // Check cache for high quality thumbnails first (only if we have a stable videoId)
+ if (!forceRegenerate && videoId) {
+ try {
+ const cachedHigh = await getCachedThumbnails(
+ videoId,
+ quality,
+ interval
+ );
+ if (cachedHigh && cachedHigh.thumbnails.length > 0) {
+ // Cache hit! Use cached thumbnails
+ const highThumbs = cachedHigh.thumbnails.map((t) => ({
+ ...t,
+ quality: "high" as const,
+ }));
+ setHighQualityThumbnails(highThumbs);
+ setProgress(100);
+ setIsGenerating(false);
+ return;
+ }
+ } catch (error) {
+ console.warn("Cache check failed:", error);
+ }
+ }
+
+ // Create offscreen video element
+ const video = document.createElement("video");
+ video.src = videoUrl;
+ video.crossOrigin = "anonymous";
+ video.muted = true;
+ video.preload = "auto";
+ videoElementRef.current = video;
+
+ // Create canvases for different qualities
+ const lowCanvas = document.createElement("canvas");
+ const highCanvas = document.createElement("canvas");
+
+ try {
+ // Wait for video metadata
+ await new Promise<void>((resolve, reject) => {
+ video.onloadedmetadata = () => resolve();
+ video.onerror = () => reject(new Error("Failed to load video"));
+ video.load();
+ });
+
+ // Phase 1: Generate low quality thumbnails first (fast)
+ if (progressive) {
+ const lowThumbs: VideoThumbnail[] = [];
+ await generateThumbnailsAtQuality(
+ video,
+ lowCanvas,
+ "low",
+ LOW_QUALITY_WIDTH,
+ duration,
+ (p) => setProgress(p * 0.3), // 0-30% for low quality
+ (thumb) => {
+ lowThumbs.push(thumb);
+ // Update incrementally for immediate feedback
+ setLowQualityThumbnails([...lowThumbs]);
+ }
+ );
+ }
+
+ if (abortRef.current) return;
+
+ // Phase 2: Generate high quality thumbnails
+ const highThumbs: VideoThumbnail[] = [];
+ await generateThumbnailsAtQuality(
+ video,
+ highCanvas,
+ "high",
+ highQualityWidth,
+ duration,
+ (p) => setProgress(progressive ? 30 + p * 0.7 : p), // 30-100% or 0-100%
+ (thumb) => {
+ highThumbs.push(thumb);
+ // Update incrementally - high quality replaces low quality progressively
+ setHighQualityThumbnails([...highThumbs]);
+ }
+ );
+
+ if (!abortRef.current && highThumbs.length > 0 && videoId) {
+ // Save to cache (only high quality, only if we have a stable videoId)
+ try {
+ await saveThumbnailsToCache(
+ videoId,
+ quality,
+ interval,
+ highThumbs.map(({ time, dataUrl }) => ({ time, dataUrl }))
+ );
+ } catch (error) {
+ console.warn("Failed to cache thumbnails:", error);
+ }
+ }
+ } catch (error) {
+ console.error("Error generating thumbnails:", error);
+ } finally {
+ setIsGenerating(false);
+ video.src = "";
+ videoElementRef.current = null;
+ }
+ }, [videoUrl, duration, interval, quality, customWidth, progressive, videoId, generateThumbnailsAtQuality]);
+
+ // Generate thumbnails when video URL or videoId changes
+ useEffect(() => {
+ if (videoUrl && duration > 0) {
+ // Reset state
+ setLowQualityThumbnails([]);
+ setHighQualityThumbnails([]);
+ setProgress(0);
+
+ generateThumbnails();
+ }
+
+ return () => {
+ abortRef.current = true;
+ };
+ }, [videoUrl, duration, videoId, generateThumbnails]);
+
+ /**
+ * Get nearest thumbnail for a given time (binary search for performance)
+ * Returns high quality if available at that time, otherwise low quality
+ */
+ const getThumbnailForTime = useCallback((time: number): VideoThumbnail | null => {
+ // Helper function for binary search
+ const findNearest = (thumbs: VideoThumbnail[]): VideoThumbnail | null => {
+ if (thumbs.length === 0) return null;
+
+ let left = 0;
+ let right = thumbs.length - 1;
+
+ while (left < right) {
+ const mid = Math.floor((left + right) / 2);
+ if (thumbs[mid].time < time) {
+ left = mid + 1;
+ } else {
+ right = mid;
+ }
+ }
+
+ // Check if the previous thumbnail is closer
+ if (left > 0) {
+ const prevDiff = Math.abs(thumbs[left - 1].time - time);
+ const currDiff = Math.abs(thumbs[left].time - time);
+ if (prevDiff < currDiff) {
+ return thumbs[left - 1];
+ }
+ }
+
+ return thumbs[left];
+ };
+
+ // Try high quality first
+ const highThumb = findNearest(highQualityThumbnails);
+ if (highThumb) {
+ // Check if this high quality thumbnail is close enough to the requested time
+ const timeDiff = Math.abs(highThumb.time - time);
+ if (timeDiff <= interval * 1.5) {
+ return highThumb;
+ }
+ }
+
+ // Fall back to low quality
+ const lowThumb = findNearest(lowQualityThumbnails);
+
+ // Return whichever is closer, preferring high quality if both are equally close
+ if (highThumb && lowThumb) {
+ const highDiff = Math.abs(highThumb.time - time);
+ const lowDiff = Math.abs(lowThumb.time - time);
+ return highDiff <= lowDiff ? highThumb : lowThumb;
+ }
+
+ return highThumb || lowThumb;
+ }, [lowQualityThumbnails, highQualityThumbnails, interval]);
+
+ /**
+ * Force regenerate thumbnails (clears cache)
+ */
+ const regenerate = useCallback(() => {
+ generateThumbnails(true);
+ }, [generateThumbnails]);
+
+ return {
+ thumbnails,
+ isGenerating,
+ progress,
+ getThumbnailForTime,
+ regenerate,
+ };
+}
diff --git a/hooks/useVideoUpload.ts b/hooks/useVideoUpload.ts
new file mode 100644
index 0000000..5855e85
--- /dev/null
+++ b/hooks/useVideoUpload.ts
@@ -0,0 +1,132 @@
+/**
+ * Hook for handling video uploads
+ * Manages both file selection and video caching
+ */
+
+import { useCallback, useState } from "react";
+import { saveUploadedVideo, getUploadedVideo, deleteUploadedVideo } from "@/lib/video-upload-cache";
+import type { AspectRatio } from "@/types";
+
+interface UploadedVideoData {
+ url: string;
+ videoId: string;
+ duration: number;
+ aspectRatio: AspectRatio;
+ fileName: string;
+ width: number;
+ height: number;
+}
+
+interface UseVideoUploadReturn {
+ uploadVideo: (file: File) => Promise<UploadedVideoData | null>;
+ loadUploadedVideo: () => Promise<UploadedVideoData | null>;
+ clearUploadedVideo: () => Promise<void>;
+ isUploading: boolean;
+ uploadError: string | null;
+}
+
+const MAX_VIDEO_SIZE = 500 * 1024 * 1024; // 500MB
+const ALLOWED_VIDEO_TYPES = ["video/mp4", "video/webm", "video/quicktime", "video/x-matroska"];
+
+/**
+ * Convert aspect ratio string to AspectRatio type
+ */
+function mapAspectRatio(ratio: string): AspectRatio {
+ switch (ratio) {
+ case "16:9": return "16:9";
+ case "9:16": return "9:16";
+ case "1:1": return "1:1";
+ case "4:3": return "4:3";
+ case "3:4": return "3:4";
+ default: return "auto";
+ }
+}
+
+export function useVideoUpload(): UseVideoUploadReturn {
+ const [isUploading, setIsUploading] = useState(false);
+ const [uploadError, setUploadError] = useState<string | null>(null);
+
+ const uploadVideo = useCallback(async (file: File): Promise<UploadedVideoData | null> => {
+ setIsUploading(true);
+ setUploadError(null);
+
+ try {
+ // Validate file type
+ if (!ALLOWED_VIDEO_TYPES.includes(file.type)) {
+ throw new Error("Formato de video no soportado. Use MP4, WebM o MOV.");
+ }
+
+ // Validate file size
+ if (file.size > MAX_VIDEO_SIZE) {
+ throw new Error("El video es demasiado grande. Máximo 500MB.");
+ }
+
+ // Save to cache (this replaces any existing video)
+ const cachedVideo = await saveUploadedVideo(file);
+
+ // Create object URL for playback
+ const url = URL.createObjectURL(cachedVideo.blob);
+ const videoId = `uploaded-${Date.now()}`;
+
+ return {
+ url,
+ videoId,
+ duration: cachedVideo.duration,
+ aspectRatio: mapAspectRatio(cachedVideo.aspectRatio),
+ fileName: cachedVideo.fileName,
+ width: cachedVideo.width,
+ height: cachedVideo.height,
+ };
+ } catch (error) {
+ const errorMessage = error instanceof Error ? error.message : "Error al subir el video";
+ setUploadError(errorMessage);
+ console.error("Video upload error:", error);
+ return null;
+ } finally {
+ setIsUploading(false);
+ }
+ }, []);
+
+ const loadUploadedVideo = useCallback(async (): Promise<UploadedVideoData | null> => {
+ try {
+ const cachedVideo = await getUploadedVideo();
+
+ if (!cachedVideo) {
+ return null;
+ }
+
+ // Create object URL from cached blob
+ const url = URL.createObjectURL(cachedVideo.blob);
+ const videoId = `uploaded-${cachedVideo.uploadedAt}`;
+
+ return {
+ url,
+ videoId,
+ duration: cachedVideo.duration,
+ aspectRatio: mapAspectRatio(cachedVideo.aspectRatio),
+ fileName: cachedVideo.fileName,
+ width: cachedVideo.width,
+ height: cachedVideo.height,
+ };
+ } catch (error) {
+ console.error("Error loading uploaded video:", error);
+ return null;
+ }
+ }, []);
+
+ const clearUploadedVideo = useCallback(async (): Promise<void> => {
+ try {
+ await deleteUploadedVideo();
+ } catch (error) {
+ console.error("Error clearing uploaded video:", error);
+ }
+ }, []);
+
+ return {
+ uploadVideo,
+ loadUploadedVideo,
+ clearUploadedVideo,
+ isUploading,
+ uploadError,
+ };
+}
diff --git a/lib/canvas-elements.config.ts b/lib/canvas-elements.config.ts
new file mode 100644
index 0000000..e62e0fb
--- /dev/null
+++ b/lib/canvas-elements.config.ts
@@ -0,0 +1,92 @@
+/**
+ * Canvas Elements Configuration
+ * Defines available SVG shapes, images, and their categories
+ */
+
+import type { SvgCategory, ImageCategory } from "@/types/canvas-elements.types";
+
+// Elementos SVG destacados que se muestran directamente (11 slots)
+export const PINNED_SVG_ITEMS = [
+ { id: "rectangle", name: "Rectángulo", icon: "ph:rectangle-bold" },
+ { id: "circle", name: "Círculo", icon: "ph:circle-bold" },
+ { id: "triangle", name: "Triángulo", icon: "ph:triangle-bold" },
+ { id: "arrow-right", name: "Derecha", icon: "ph:arrow-right-bold" },
+ { id: "star", name: "Estrella", icon: "ph:star-bold" },
+ { id: "heart", name: "Corazón", icon: "ph:heart-bold" },
+ { id: "hexagon", name: "Hexágono", icon: "ph:hexagon-bold" },
+ { id: "lightning", name: "Rayo", icon: "ph:lightning-bold" },
+ { id: "arrow-left", name: "Izquierda", icon: "ph:arrow-left-bold" },
+ { id: "diamond", name: "Rombo", icon: "ph:diamond-bold" },
+ { id: "chat", name: "Bocadillo", icon: "ph:chat-circle-bold" },
+];
+
+// Elementos de imagen destacados que se muestran directamente (11 slots)
+export const PINNED_IMAGE_ITEMS = [
+ { id: "lighta-curve", name: "Lighta curve", imagePath: "/elements/images/blurred/lighta-curve.webp" },
+ // Add more pinned images here (up to 11 total)
+];
+
+export const SVG_CATEGORIES: SvgCategory[] = [
+ {
+ id: "shapes",
+ title: "Básicas",
+ items: [
+ { id: "rectangle", name: "Rectángulo", icon: "ph:rectangle-bold" },
+ { id: "circle", name: "Círculo", icon: "ph:circle-bold" },
+ { id: "triangle", name: "Triángulo", icon: "ph:triangle-bold" },
+ { id: "hexagon", name: "Hexágono", icon: "ph:hexagon-bold" },
+ { id: "diamond", name: "Rombo", icon: "ph:diamond-bold" },
+ { id: "square", name: "Cuadrado", icon: "ph:square-bold" },
+ ]
+ },
+ {
+ id: "arrows",
+ title: "Flechas",
+ items: [
+ { id: "arrow-right", name: "Derecha", icon: "ph:arrow-right-bold" },
+ { id: "arrow-left", name: "Izquierda", icon: "ph:arrow-left-bold" },
+ { id: "arrow-double", name: "Doble", icon: "ph:arrows-left-right-bold" },
+ { id: "arrow-curve", name: "Curva", icon: "ph:arrow-u-up-left-bold" },
+ { id: "arrow-diagonal", name: "Diagonal", icon: "ph:arrow-up-right-bold" },
+ { id: "arrow-bend", name: "Ángulo", icon: "ph:arrow-bend-up-right-bold" },
+ ]
+ },
+ {
+ id: "decorative",
+ title: "Decorativas",
+ items: [
+ { id: "star", name: "Estrella", icon: "ph:star-bold" },
+ { id: "heart", name: "Corazón", icon: "ph:heart-bold" },
+ { id: "lightning", name: "Rayo", icon: "ph:lightning-bold" },
+ { id: "chat", name: "Bocadillo", icon: "ph:chat-circle-bold" },
+ { id: "seal", name: "Sello", icon: "ph:seal-bold" },
+ { id: "drop", name: "Gota", icon: "ph:drop-bold" },
+ ]
+ }
+];
+
+export const IMAGE_CATEGORIES: ImageCategory[] = [
+ {
+ id: "stickers",
+ title: "Stickers",
+ items: [
+ // Add your sticker items here
+ // { id: "sticker1", name: "Emoji Fire", imagePath: "/elements/images/stickers/fire.png", thumbnail: "/elements/images/stickers/fire-thumb.png" },
+ ]
+ },
+ {
+ id: "overlays",
+ title: "Overlays",
+ items: [
+ // Add your overlay items here
+ // { id: "overlay1", name: "Light Leak", imagePath: "/elements/images/overlays/light-leak.png" },
+ ]
+ },
+ {
+ id: "blurred",
+ title: "Desenfoques",
+ items: [
+ { id: "lighta-curve", name: "Lighta curve", imagePath: "/elements/images/blurred/lighta-curve.webp" },
+ ]
+ }
+];
diff --git a/lib/canvas-icons/action-icons.ts b/lib/canvas-icons/action-icons.ts
new file mode 100644
index 0000000..e7313c4
--- /dev/null
+++ b/lib/canvas-icons/action-icons.ts
@@ -0,0 +1,243 @@
+/**
+ * Iconos de acciones para Canvas 2D
+ */
+
+/**
+ * Dibuja un icono de más (+)
+ */
+export function drawPlusIcon(ctx: CanvasRenderingContext2D, x: number, y: number, size: number, color: string) {
+ ctx.save();
+ ctx.strokeStyle = color;
+ ctx.lineWidth = size * 0.1;
+ ctx.lineCap = "round";
+ const s = size;
+
+ ctx.beginPath();
+ // Línea horizontal
+ ctx.moveTo(x + s * 0.25, y + s * 0.5);
+ ctx.lineTo(x + s * 0.75, y + s * 0.5);
+ // Línea vertical
+ ctx.moveTo(x + s * 0.5, y + s * 0.25);
+ ctx.lineTo(x + s * 0.5, y + s * 0.75);
+ ctx.stroke();
+ ctx.restore();
+}
+
+// candado
+export function drawLockIcon(ctx: CanvasRenderingContext2D, x: number, y: number, size: number, color: string) {
+ ctx.save();
+
+ ctx.globalAlpha = 0.6;
+
+ const s = size;
+ const scale = s / 24;
+ ctx.translate(x, y);
+ ctx.scale(scale, scale);
+ ctx.fillStyle = color;
+
+ const body = new Path2D("M6 22q-.825 0-1.412-.587T4 20V10q0-.825.588-1.412T6 8h1V6q0-2.075 1.463-3.537T12 1t3.538 1.463T17 6v2h1q.825 0 1.413.588T20 10v10q0 .825-.587 1.413T18 22zM9 8h6V6q0-1.25-.875-2.125T12 3t-2.125.875T9 6z");
+ ctx.fill(body);
+
+ ctx.globalCompositeOperation = 'destination-out';
+ const hole = new Path2D("M13.413 16.413Q14 15.825 14 15t-.587-1.412T12 13t-1.412.588T10 15t.588 1.413T12 17t1.413-.587");
+ ctx.fill(hole);
+
+ ctx.restore();
+}
+
+export function drawStarIcon(ctx: CanvasRenderingContext2D, x: number, y: number, size: number, color: string) {
+ const cx = x + size / 2;
+ const cy = y + size / 2;
+ const outerR = size / 2;
+ const innerR = outerR * 0.4;
+ const points = 5;
+ ctx.save();
+ ctx.beginPath();
+ for (let i = 0; i < points * 2; i++) {
+ const r = i % 2 === 0 ? outerR : innerR;
+ const angle = (i * Math.PI) / points - Math.PI / 2;
+ const px = cx + r * Math.cos(angle);
+ const py = cy + r * Math.sin(angle);
+ i === 0 ? ctx.moveTo(px, py) : ctx.lineTo(px, py);
+ }
+ ctx.closePath();
+ ctx.fillStyle = color;
+ ctx.fill();
+ ctx.restore();
+}
+
+// refresh
+export function drawRefreshIcon(ctx: CanvasRenderingContext2D, x: number, y: number, size: number, color: string) {
+ ctx.save();
+ ctx.globalAlpha = 0.6;
+ const s = size;
+ const scale = s / 24;
+ ctx.translate(x, y);
+ ctx.scale(scale, scale);
+
+ ctx.strokeStyle = color;
+ ctx.lineWidth = 2.4;
+ ctx.lineCap = "round";
+ ctx.lineJoin = "round";
+
+ ctx.beginPath();
+ ctx.stroke(new Path2D("M19.933 13.041a8 8 0 1 1-9.925-8.788c3.899-1 7.935 1.007 9.425 4.747"));
+
+ ctx.beginPath();
+ ctx.stroke(new Path2D("M20 4v5h-5"));
+
+ ctx.restore();
+}
+
+/**
+ * Dibuja un icono de descarga (download)
+ */
+export function drawDownloadIcon(ctx: CanvasRenderingContext2D, x: number, y: number, size: number, color: string) {
+ ctx.save();
+ const s = size;
+ const scale = s / 24;
+ ctx.translate(x, y);
+ ctx.scale(scale, scale);
+ ctx.fillStyle = color;
+
+ ctx.fill(new Path2D("M16.59 9H15V4c0-.55-.45-1-1-1h-4c-.55 0-1 .45-1 1v5H7.41c-.89 0-1.34 1.08-.71 1.71l4.59 4.59c.39.39 1.02.39 1.41 0l4.59-4.59c.63-.63.19-1.71-.7-1.71M5 19c0 .55.45 1 1 1h12c.55 0 1-.45 1-1s-.45-1-1-1H6c-.55 0-1 .45-1 1"));
+
+ ctx.restore();
+}
+
+/**
+ * Dibuja un icono de subida (upload)
+ */
+export function drawUploadIcon(ctx: CanvasRenderingContext2D, x: number, y: number, size: number, color: string) {
+ ctx.save();
+ const s = size;
+ const scale = s / 24;
+ ctx.translate(x, y);
+ ctx.scale(scale, scale);
+ ctx.fillStyle = color;
+
+ ctx.fill(new Path2D("M10 16h4c.55 0 1-.45 1-1v-5h1.59c.89 0 1.34-1.08.71-1.71L12.71 3.7a.996.996 0 0 0-1.41 0L6.71 8.29c-.63.63-.19 1.71.7 1.71H9v5c0 .55.45 1 1 1m-4 2h12c.55 0 1 .45 1 1s-.45 1-1 1H6c-.55 0-1-.45-1-1s.45-1 1-1"));
+
+ ctx.restore();
+}
+
+/**
+ * Dibuja un icono de copiar (content-copy)
+ */
+export function drawCopyIcon(ctx: CanvasRenderingContext2D, x: number, y: number, size: number, color: string) {
+ ctx.save();
+
+ const s = size;
+ const scale = s / 24;
+ ctx.translate(x, y);
+ ctx.scale(scale, scale);
+
+ ctx.strokeStyle = color;
+ ctx.lineWidth = 1.9;
+ ctx.lineCap = "round";
+ ctx.lineJoin = "round";
+
+ ctx.beginPath();
+ ctx.moveTo(16, 3);
+ ctx.lineTo(4, 3);
+ ctx.lineTo(4, 16);
+ ctx.stroke();
+
+ ctx.beginPath();
+ ctx.roundRect(8, 7, 12, 12, 2);
+ ctx.stroke();
+
+ ctx.restore();
+}
+
+export function drawThreeDotsIcon(ctx: CanvasRenderingContext2D, x: number, y: number, size: number, color: string) {
+ const cx = x + size / 2;
+ const r = size * 0.08;
+ const positions = [y + size * 0.2, y + size / 2, y + size * 0.8];
+ ctx.save();
+ ctx.fillStyle = color;
+ positions.forEach(py => {
+ ctx.beginPath();
+ ctx.arc(cx, py, r, 0, Math.PI * 2);
+ ctx.fill();
+ });
+ ctx.restore();
+}
+
+export function drawWinButton(
+ ctx: CanvasRenderingContext2D,
+ x: number, y: number, w: number, h: number,
+ type: "minimize" | "maximize" | "close",
+ color: string,
+ scale: number,
+ topRightRadius = 0
+) {
+ ctx.save();
+ ctx.strokeStyle = color;
+ ctx.fillStyle = color;
+
+ const cx = x + w / 2;
+ const cy = y + h / 2;
+ const iconW = 9 * scale;
+ const iconH = 9 * scale;
+
+ if (type === "minimize") {
+ ctx.lineWidth = 1;
+ ctx.beginPath();
+ ctx.rect(cx - iconW / 2, cy, iconW, 1 * scale);
+ ctx.fill();
+ } else if (type === "maximize") {
+ ctx.lineWidth = 1;
+ ctx.strokeRect(cx - iconW / 2, cy - iconH / 2, iconW, iconH);
+ } else {
+ // Close button — draw X
+ ctx.lineWidth = 1.2 * scale;
+ ctx.lineCap = "round";
+ ctx.beginPath();
+ ctx.moveTo(cx - iconW / 2, cy - iconH / 2);
+ ctx.lineTo(cx + iconW / 2, cy + iconH / 2);
+ ctx.moveTo(cx + iconW / 2, cy - iconH / 2);
+ ctx.lineTo(cx - iconW / 2, cy + iconH / 2);
+ ctx.stroke();
+ }
+ ctx.restore();
+}
+
+export function drawBackIcon(ctx: CanvasRenderingContext2D, x: number, y: number, size: number, color: string) {
+ ctx.save();
+ ctx.globalAlpha = 0.8; // Las flechas suelen ser un poco más opacas que el refresh
+ const scale = size / 24;
+ ctx.translate(x, y);
+ ctx.scale(scale, scale);
+
+ ctx.strokeStyle = color;
+ ctx.lineWidth = 1.8; // Línea un poco más fina para elegancia
+ ctx.lineCap = "round";
+ ctx.lineJoin = "round";
+
+ // Trayecto: Línea horizontal + Punta de flecha
+ ctx.beginPath();
+ ctx.stroke(new Path2D("M19 12H5M12 19l-7-7 7-7"));
+
+ ctx.restore();
+}
+
+export function drawForwardIcon(ctx: CanvasRenderingContext2D, x: number, y: number, size: number, color: string, disabled: boolean = true) {
+ ctx.save();
+ // Si está deshabilitada (por defecto), usamos un alpha muy bajo
+ ctx.globalAlpha = disabled ? 0.35 : 0.8;
+ const scale = size / 24;
+ ctx.translate(x, y);
+ ctx.scale(scale, scale);
+
+ ctx.strokeStyle = color;
+ ctx.lineWidth = 1.8;
+ ctx.lineCap = "round";
+ ctx.lineJoin = "round";
+
+ // Trayecto: Línea horizontal + Punta de flecha hacia la derecha
+ ctx.beginPath();
+ ctx.stroke(new Path2D("M5 12h14m-7 7l7-7-7-7"));
+
+ ctx.restore();
+}
diff --git a/lib/canvas-icons/editor-icons.ts b/lib/canvas-icons/editor-icons.ts
new file mode 100644
index 0000000..e181f36
--- /dev/null
+++ b/lib/canvas-icons/editor-icons.ts
@@ -0,0 +1,106 @@
+/**
+ * Iconos de editor y ventana para Canvas 2D
+ */
+
+/**
+ * Dibuja un icono de lupa (magnify/search)
+ */
+export function drawMagnifyIcon(ctx: CanvasRenderingContext2D, x: number, y: number, size: number, color: string) {
+ ctx.save();
+ ctx.strokeStyle = color;
+ ctx.lineWidth = size * 0.1;
+ ctx.lineCap = "round";
+ const s = size;
+
+ // Círculo de la lupa
+ ctx.beginPath();
+ ctx.arc(x + s * 0.42, y + s * 0.42, s * 0.25, 0, Math.PI * 2);
+ ctx.stroke();
+
+ // Mango de la lupa
+ ctx.beginPath();
+ ctx.moveTo(x + s * 0.6, y + s * 0.6);
+ ctx.lineTo(x + s * 0.8, y + s * 0.8);
+ ctx.stroke();
+ ctx.restore();
+}
+
+/**
+ * Dibuja un icono de minimizar (línea horizontal)
+ */
+export function drawMinusIcon(ctx: CanvasRenderingContext2D, x: number, y: number, size: number, color: string) {
+ ctx.save();
+ ctx.strokeStyle = color;
+ ctx.lineWidth = size * 0.1;
+ ctx.lineCap = "round";
+ const s = size;
+
+ ctx.beginPath();
+ ctx.moveTo(x + s * 0.25, y + s * 0.5);
+ ctx.lineTo(x + s * 0.75, y + s * 0.5);
+ ctx.stroke();
+ ctx.restore();
+}
+
+/**
+ * Dibuja un icono de maximizar (cuadrado)
+ */
+export function drawSquareIcon(ctx: CanvasRenderingContext2D, x: number, y: number, size: number, color: string) {
+ ctx.save();
+ ctx.strokeStyle = color;
+ ctx.lineWidth = size * 0.08;
+ const s = size;
+
+ ctx.beginPath();
+ ctx.rect(x + s * 0.25, y + s * 0.25, s * 0.5, s * 0.5);
+ ctx.stroke();
+ ctx.restore();
+}
+
+/**
+ * Dibuja un icono de cerrar (X)
+ */
+export function drawCloseIcon(ctx: CanvasRenderingContext2D, x: number, y: number, size: number, color: string) {
+ ctx.save();
+ ctx.strokeStyle = color;
+ ctx.lineWidth = size * 0.1;
+ ctx.lineCap = "round";
+ const s = size;
+
+ ctx.beginPath();
+ ctx.moveTo(x + s * 0.25, y + s * 0.25);
+ ctx.lineTo(x + s * 0.75, y + s * 0.75);
+ ctx.moveTo(x + s * 0.75, y + s * 0.25);
+ ctx.lineTo(x + s * 0.25, y + s * 0.75);
+ ctx.stroke();
+ ctx.restore();
+}
+
+/**
+ * Dibuja el icono de VS Code
+ */
+export function drawVSCodeLogo(ctx: CanvasRenderingContext2D, x: number, y: number, size: number) {
+ ctx.save();
+
+ const scale = size / 128;
+ ctx.translate(x, y);
+ ctx.scale(scale, scale);
+
+ const pathDark = new Path2D("M123.471 13.82L97.097 1.12A7.97 7.97 0 0 0 88 2.668L1.662 81.387a5.333 5.333 0 0 0 .006 7.887l7.052 6.411a5.33 5.33 0 0 0 6.811.303l103.971-78.875c3.488-2.646 8.498-.158 8.498 4.22v-.306a8 8 0 0 0-4.529-7.208Z");
+ ctx.fillStyle = "#0065a9";
+ ctx.fill(pathDark);
+
+ const pathMedium = new Path2D("m123.471 114.181l-26.374 12.698A7.97 7.97 0 0 1 88 125.333L1.662 46.613a5.333 5.333 0 0 1 .006-7.887l7.052-6.411a5.33 5.33 0 0 1 6.811-.303l103.971 78.874c3.488 2.647 8.498.159 8.498-4.219v.306a8 8 0 0 1-4.529 7.208");
+ ctx.fillStyle = "#007acc";
+ ctx.fill(pathMedium);
+
+ const pathLight = new Path2D("M97.098 126.882A7.98 7.98 0 0 1 88 125.333c2.952 2.952 8 .861 8-3.314V5.98c0-4.175-5.048-6.266-8-3.313a7.98 7.98 0 0 1 9.098-1.549L123.467 13.8A8 8 0 0 1 128 21.01v85.982a8 8 0 0 1-4.533 7.21z");
+ ctx.fillStyle = "#1f9cf0";
+ ctx.fill(pathLight);
+
+ const pathOverlay = new Path2D("M90.69 127.126a7.97 7.97 0 0 0 6.349-.244l26.353-12.681a8 8 0 0 0 4.53-7.21V21.009a8 8 0 0 0-4.53-7.21L97.039 1.12a7.97 7.97 0 0 0-9.093 1.548l-50.45 46.026l-21.974-16.68a5.33 5.33 0 0 0-6.807.302l-7.048 6.411a5.336 5.336 0 0 0-.006 7.888L20.718 64L1.662 81.386a5.335 5.335 0 0 0 .006 7.888l7.048 6.411a5.33 5.33 0 0 0 6.807.303l21.975-16.681l50.45 46.026a8 8 0 0 0 2.742 1.793m5.252-92.184L57.662 64l38.28 29.057z");
+ ctx.fillStyle = "rgba(255, 255, 255, 0.15)";
+ ctx.fill(pathOverlay);
+
+ ctx.restore();
+}
diff --git a/lib/canvas-icons/index.ts b/lib/canvas-icons/index.ts
new file mode 100644
index 0000000..2f18236
--- /dev/null
+++ b/lib/canvas-icons/index.ts
@@ -0,0 +1,40 @@
+/**
+ * Índice centralizado de todos los iconos para Canvas 2D
+ * Exporta todas las funciones de dibujo de iconos desde un solo lugar
+ */
+
+// Navigation icons
+export {
+ drawChevronLeft,
+ drawChevronRight,
+ drawMenuIcon,
+} from "./navigation-icons";
+
+// Action icons
+export {
+ drawPlusIcon,
+ drawLockIcon,
+ drawRefreshIcon,
+ drawDownloadIcon,
+ drawUploadIcon,
+ drawCopyIcon,
+ drawStarIcon,
+ drawThreeDotsIcon,
+ drawWinButton
+} from "./action-icons";
+
+// Editor icons
+export {
+ drawMagnifyIcon,
+ drawMinusIcon,
+ drawSquareIcon,
+ drawCloseIcon,
+ drawVSCodeLogo,
+} from "./editor-icons";
+
+// Status icons
+export {
+ drawWifiIcon,
+ drawSignalBars,
+ drawBattery,
+} from "./status-icons";
diff --git a/lib/canvas-icons/navigation-icons.ts b/lib/canvas-icons/navigation-icons.ts
new file mode 100644
index 0000000..fe5d561
--- /dev/null
+++ b/lib/canvas-icons/navigation-icons.ts
@@ -0,0 +1,67 @@
+/**
+ * Iconos de navegación para Canvas 2D
+ */
+
+/**
+ * Dibuja un icono de chevron izquierdo (flecha hacia atrás)
+ */
+export function drawChevronLeft(ctx: CanvasRenderingContext2D, x: number, y: number, size: number, color: string) {
+ ctx.save();
+ ctx.strokeStyle = color;
+ ctx.lineWidth = size * 0.12;
+ ctx.lineCap = "round";
+ ctx.lineJoin = "round";
+ ctx.beginPath();
+ const s = size;
+ ctx.moveTo(x + s * 0.6, y + s * 0.25);
+ ctx.lineTo(x + s * 0.35, y + s * 0.5);
+ ctx.lineTo(x + s * 0.6, y + s * 0.75);
+ ctx.stroke();
+ ctx.restore();
+}
+
+/**
+ * Dibuja un icono de chevron derecho (flecha hacia adelante)
+ */
+export function drawChevronRight(ctx: CanvasRenderingContext2D, x: number, y: number, size: number, color: string) {
+ ctx.save();
+ ctx.strokeStyle = color;
+ ctx.lineWidth = size * 0.12;
+ ctx.lineCap = "round";
+ ctx.lineJoin = "round";
+ ctx.beginPath();
+ const s = size;
+ ctx.moveTo(x + s * 0.4, y + s * 0.25);
+ ctx.lineTo(x + s * 0.65, y + s * 0.5);
+ ctx.lineTo(x + s * 0.4, y + s * 0.75);
+ ctx.stroke();
+ ctx.restore();
+}
+
+/**
+ * Dibuja un icono de menú hamburguesa (tres líneas horizontales)
+ */
+export function drawMenuIcon(ctx: CanvasRenderingContext2D, x: number, y: number, size: number, color: string) {
+ ctx.save();
+ ctx.strokeStyle = color;
+ ctx.lineWidth = size * 0.08;
+ ctx.lineCap = "round";
+ const s = size;
+
+ // Tres líneas horizontales
+ const lineY1 = y + s * 0.25;
+ const lineY2 = y + s * 0.5;
+ const lineY3 = y + s * 0.75;
+ const lineStartX = x + s * 0.2;
+ const lineEndX = x + s * 0.8;
+
+ ctx.beginPath();
+ ctx.moveTo(lineStartX, lineY1);
+ ctx.lineTo(lineEndX, lineY1);
+ ctx.moveTo(lineStartX, lineY2);
+ ctx.lineTo(lineEndX, lineY2);
+ ctx.moveTo(lineStartX, lineY3);
+ ctx.lineTo(lineEndX, lineY3);
+ ctx.stroke();
+ ctx.restore();
+}
diff --git a/lib/canvas-icons/star-icon.ts b/lib/canvas-icons/star-icon.ts
new file mode 100644
index 0000000..e69de29
diff --git a/lib/canvas-icons/status-icons.ts b/lib/canvas-icons/status-icons.ts
new file mode 100644
index 0000000..29b54da
--- /dev/null
+++ b/lib/canvas-icons/status-icons.ts
@@ -0,0 +1,114 @@
+/**
+ * Iconos de estado del sistema para Canvas 2D (WiFi, señal, batería)
+ */
+
+/**
+ * Dibuja un icono de WiFi
+ */
+export function drawWifiIcon(ctx: CanvasRenderingContext2D, x: number, y: number, size: number, color: string) {
+ ctx.save();
+ ctx.strokeStyle = color;
+ ctx.lineWidth = size * 0.1;
+ ctx.lineCap = "round";
+ const s = size;
+ const centerX = x + s * 0.5;
+ const centerY = y + s * 0.7;
+
+ // Punto central
+ ctx.beginPath();
+ ctx.arc(centerX, centerY, s * 0.06, 0, Math.PI * 2);
+ ctx.fillStyle = color;
+ ctx.fill();
+
+ // Arcos de señal
+ const arcs = [0.2, 0.35, 0.5];
+ arcs.forEach(radius => {
+ ctx.beginPath();
+ ctx.arc(centerX, centerY, s * radius, Math.PI * 1.25, Math.PI * 1.75);
+ ctx.stroke();
+ });
+
+ ctx.restore();
+}
+
+/**
+ * Dibuja barras de señal celular
+ */
+export function drawSignalBars(ctx: CanvasRenderingContext2D, x: number, y: number, size: number, color: string) {
+ ctx.save();
+ ctx.fillStyle = color;
+ const s = size;
+ const barWidth = s * 0.15;
+ const gap = s * 0.08;
+ const heights = [0.3, 0.5, 0.7, 1.0];
+
+ // Helper para dibujar rectángulos con esquinas redondeadas
+ const drawRoundedRectPath = (x: number, y: number, width: number, height: number, radius: number) => {
+ const r = Math.min(radius, width / 2, height / 2);
+ ctx.beginPath();
+ ctx.moveTo(x + r, y);
+ ctx.lineTo(x + width - r, y);
+ ctx.quadraticCurveTo(x + width, y, x + width, y + r);
+ ctx.lineTo(x + width, y + height - r);
+ ctx.quadraticCurveTo(x + width, y + height, x + width - r, y + height);
+ ctx.lineTo(x + r, y + height);
+ ctx.quadraticCurveTo(x, y + height, x, y + height - r);
+ ctx.lineTo(x, y + r);
+ ctx.quadraticCurveTo(x, y, x + r, y);
+ ctx.closePath();
+ };
+
+ heights.forEach((h, i) => {
+ const barHeight = s * h * 0.8;
+ const barX = x + i * (barWidth + gap);
+ const barY = y + s - barHeight - s * 0.1;
+ drawRoundedRectPath(barX, barY, barWidth, barHeight, 1);
+ ctx.fill();
+ });
+
+ ctx.restore();
+}
+
+/**
+ * Dibuja una batería
+ */
+export function drawBattery(ctx: CanvasRenderingContext2D, x: number, y: number, width: number, height: number, color: string, fillPercent: number = 0.9) {
+ ctx.save();
+
+ // Helper para dibujar rectángulos con esquinas redondeadas
+ const drawRoundedRectPath = (x: number, y: number, width: number, height: number, radius: number) => {
+ const r = Math.min(radius, width / 2, height / 2);
+ ctx.beginPath();
+ ctx.moveTo(x + r, y);
+ ctx.lineTo(x + width - r, y);
+ ctx.quadraticCurveTo(x + width, y, x + width, y + r);
+ ctx.lineTo(x + width, y + height - r);
+ ctx.quadraticCurveTo(x + width, y + height, x + width - r, y + height);
+ ctx.lineTo(x + r, y + height);
+ ctx.quadraticCurveTo(x, y + height, x, y + height - r);
+ ctx.lineTo(x, y + r);
+ ctx.quadraticCurveTo(x, y, x + r, y);
+ ctx.closePath();
+ };
+
+ // Borde de la batería
+ ctx.strokeStyle = color + "80";
+ ctx.lineWidth = 1;
+ drawRoundedRectPath(x, y, width, height, 2);
+ ctx.stroke();
+
+ // Relleno de la batería
+ ctx.fillStyle = color;
+ const padding = 1.5;
+ const fillWidth = (width - padding * 2) * fillPercent;
+ drawRoundedRectPath(x + padding, y + padding, fillWidth, height - padding * 2, 1);
+ ctx.fill();
+
+ // Tapa de la batería
+ ctx.fillStyle = color + "50";
+ const capWidth = 2;
+ const capHeight = height * 0.4;
+ ctx.fillRect(x + width, y + (height - capHeight) / 2, capWidth, capHeight);
+
+ ctx.restore();
+}
diff --git a/lib/canvas.utils.ts b/lib/canvas.utils.ts
new file mode 100644
index 0000000..828e77c
--- /dev/null
+++ b/lib/canvas.utils.ts
@@ -0,0 +1,298 @@
+import { AspectRatio } from "@/types/editor.types";
+import { zoomLevelToFactor, speedToTransitionMs, easeOutQuart, ZoomStateCanvas, ZoomFragment } from "@/types/zoom.types";
+/**
+ * Dibuja un rectángulo con esquinas redondeadas en el contexto del canvas
+ */
+export function drawRoundedRect(
+ ctx: CanvasRenderingContext2D,
+ x: number,
+ y: number,
+ width: number,
+ height: number,
+ radius: number
+): void {
+ ctx.beginPath();
+ ctx.moveTo(x + radius, y);
+ ctx.lineTo(x + width - radius, y);
+ ctx.quadraticCurveTo(x + width, y, x + width, y + radius);
+ ctx.lineTo(x + width, y + height - radius);
+ ctx.quadraticCurveTo(x + width, y + height, x + width - radius, y + height);
+ ctx.lineTo(x + radius, y + height);
+ ctx.quadraticCurveTo(x, y + height, x, y + height - radius);
+ ctx.lineTo(x, y + radius);
+ ctx.quadraticCurveTo(x, y, x + radius, y);
+ ctx.closePath();
+}
+
+/**
+ * Dibuja un rectángulo con esquinas redondeadas solo en la parte inferior
+ */
+export function drawRoundedRectBottomOnly(
+ ctx: CanvasRenderingContext2D,
+ x: number,
+ y: number,
+ width: number,
+ height: number,
+ radius: number
+): void {
+ ctx.beginPath();
+ ctx.moveTo(x, y);
+ ctx.lineTo(x + width, y);
+ ctx.lineTo(x + width, y + height - radius);
+ ctx.quadraticCurveTo(x + width, y + height, x + width - radius, y + height);
+ ctx.lineTo(x + radius, y + height);
+ ctx.quadraticCurveTo(x, y + height, x, y + height - radius);
+ ctx.closePath();
+}
+
+/**
+ * Calcula el padding escalado basado en tamaño de contenedor y porcentaje
+ */
+export function calculateScaledPadding(
+ containerSize: number,
+ paddingPercent: number
+): number {
+ return paddingPercent * containerSize;
+}
+
+
+// Función para obtener aspect ratio CSS string
+export function getAspectRatioStyle(ratio: AspectRatio, customDimensions?: { width: number; height: number }): string {
+ // Use custom dimensions for both "custom" and "auto" modes
+ if ((ratio === "custom" || ratio === "auto") && customDimensions) {
+ return `${customDimensions.width}/${customDimensions.height}`;
+ }
+
+ switch (ratio) {
+ case "16:9": return "16/9";
+ case "9:16": return "9/16";
+ case "1:1": return "1/1";
+ case "4:3": return "4/3";
+ case "3:4": return "3/4";
+ default: return "16/9";
+ }
+}
+
+// Función para obtener max-width basado en aspect ratio
+export function getMaxWidth(ratio: AspectRatio, customDimensions?: { width: number; height: number }): string {
+ // Use custom dimensions for both "custom" and "auto" modes
+ if ((ratio === "custom" || ratio === "auto") && customDimensions) {
+ const aspectValue = customDimensions.width / customDimensions.height;
+ if (aspectValue > 1.5) return "52rem"; // Landscape
+ if (aspectValue < 0.7) return "20rem"; // Portrait
+ return "32rem"; // Square-ish
+ }
+
+ switch (ratio) {
+ case "16:9": return "52rem";
+ case "9:16": return "20rem";
+ case "3:4": return "26rem";
+ case "4:3": return "40rem";
+ case "1:1": return "32rem";
+ default: return "52rem";
+ }
+}
+
+/**
+ * Calcula propiedades escaladas para el canvas de exportación
+ */
+export function calculateScaledProperties(
+ padding: number,
+ roundedCorners: number,
+ shadows: number,
+ canvasWidth: number,
+ canvasHeight: number
+) {
+ const paddingPercent = padding * 0.5 / 100;
+ const scaledPaddingX = paddingPercent * canvasWidth;
+ const scaledPaddingY = paddingPercent * canvasHeight;
+ const scaledRadius = roundedCorners * (canvasWidth / 896);
+ const scaledShadowBlur = shadows * (canvasWidth / 896) * 0.3;
+
+ return {
+ scaledPaddingX,
+ scaledPaddingY,
+ scaledRadius,
+ scaledShadowBlur,
+ };
+}
+
+/**
+ * Aplica un fondo CSS (color sólido o gradiente) a un canvas
+ * @param ctx Contexto del canvas
+ * @param cssBackground String CSS de background (ej: "#ff0000" o "linear-gradient(...)")
+ * @param width Ancho del área a llenar
+ * @param height Altura del área a llenar
+ */
+export function applyCanvasBackground(
+ ctx: CanvasRenderingContext2D,
+ cssBackground: string,
+ width: number,
+ height: number
+): void {
+ if (cssBackground.startsWith('#') || cssBackground.startsWith('rgb')) {
+ ctx.fillStyle = cssBackground;
+ ctx.fillRect(0, 0, width, height);
+ return;
+ }
+
+ if (cssBackground.includes('linear-gradient')) {
+ const angleMatch = cssBackground.match(/(\d+)deg/);
+ const angle = angleMatch ? parseInt(angleMatch[1]) : 135;
+
+ const colorMatches = cssBackground.matchAll(/(#[0-9a-fA-F]{6}|rgb\([^)]+\))\s+(\d+)%/g);
+ const stops: { color: string; position: number }[] = [];
+
+ for (const match of colorMatches) {
+ stops.push({
+ color: match[1],
+ position: parseInt(match[2]) / 100
+ });
+ }
+
+ if (stops.length >= 2) {
+ const angleRad = (angle - 90) * Math.PI / 180;
+ const x0 = width / 2 - Math.cos(angleRad) * width / 2;
+ const y0 = height / 2 - Math.sin(angleRad) * height / 2;
+ const x1 = width / 2 + Math.cos(angleRad) * width / 2;
+ const y1 = height / 2 + Math.sin(angleRad) * height / 2;
+
+ const gradient = ctx.createLinearGradient(x0, y0, x1, y1);
+ stops.forEach(stop => gradient.addColorStop(stop.position, stop.color));
+
+ ctx.fillStyle = gradient;
+ ctx.fillRect(0, 0, width, height);
+ return;
+ }
+ }
+
+ if (cssBackground.includes('radial-gradient')) {
+ const colorMatches = cssBackground.matchAll(/(#[0-9a-fA-F]{6}|rgb\([^)]+\))\s+(\d+)%/g);
+ const stops: { color: string; position: number }[] = [];
+
+ for (const match of colorMatches) {
+ stops.push({
+ color: match[1],
+ position: parseInt(match[2]) / 100
+ });
+ }
+
+ if (stops.length >= 2) {
+ const centerX = width / 2;
+ const centerY = height / 2;
+ const radius = Math.max(width, height) / 2;
+
+ const gradient = ctx.createRadialGradient(centerX, centerY, 0, centerX, centerY, radius);
+ stops.forEach(stop => gradient.addColorStop(stop.position, stop.color));
+
+ ctx.fillStyle = gradient;
+ ctx.fillRect(0, 0, width, height);
+ return;
+ }
+ }
+
+ if (cssBackground.includes('conic-gradient')) {
+ // Parsear: conic-gradient(from {angle}deg at {x}% {y}%, {stops})
+ const angleMatch = cssBackground.match(/from\s+(\d+)deg/);
+ const positionMatch = cssBackground.match(/at\s+(\d+)%\s+(\d+)%/);
+
+ const angle = angleMatch ? parseInt(angleMatch[1]) : 0;
+ const originX = positionMatch ? parseInt(positionMatch[1]) / 100 : 0.5;
+ const originY = positionMatch ? parseInt(positionMatch[2]) / 100 : 0.5;
+
+ const colorMatches = cssBackground.matchAll(/(#[0-9a-fA-F]{6}|rgb\([^)]+\))\s+(\d+)%/g);
+ const stops: { color: string; position: number }[] = [];
+
+ for (const match of colorMatches) {
+ stops.push({
+ color: match[1],
+ position: parseInt(match[2]) / 100
+ });
+ }
+
+ if (stops.length >= 2) {
+ const centerX = width * originX;
+ const centerY = height * originY;
+ const startAngle = (angle - 90) * Math.PI / 180; // Convertir a radianes y ajustar para que 0° sea arriba
+
+ const gradient = ctx.createConicGradient(startAngle, centerX, centerY);
+ stops.forEach(stop => gradient.addColorStop(stop.position, stop.color));
+
+ ctx.fillStyle = gradient;
+ ctx.fillRect(0, 0, width, height);
+ return;
+ }
+ }
+
+ ctx.fillStyle = '#667eea';
+ ctx.fillRect(0, 0, width, height);
+}
+
+export function calculateSmoothZoom(
+ frameTime: number,
+ zoomFragments: ZoomFragment[],
+ defaultExitSpeed: number = 3
+): ZoomStateCanvas {
+ const DEFAULT_STATE: ZoomStateCanvas = { scale: 1, focusX: 50, focusY: 50 };
+
+ if (!zoomFragments.length) return DEFAULT_STATE;
+
+ const sortedFragments = [...zoomFragments].sort((a, b) => a.startTime - b.startTime);
+
+ const activeFragment = sortedFragments.find(
+ f => frameTime >= f.startTime && frameTime <= f.endTime
+ );
+
+ // Find the previous fragment that ended before current time (for exit transition)
+ const previousFragment = sortedFragments
+ .filter(f => f.endTime < frameTime)
+ .sort((a, b) => b.endTime - a.endTime)[0];
+
+ if (activeFragment) {
+ const transitionMs = speedToTransitionMs(activeFragment.speed);
+ const transitionSec = transitionMs / 1000;
+ const targetScale = zoomLevelToFactor(activeFragment.zoomLevel);
+
+ const timeIntoFragment = frameTime - activeFragment.startTime;
+
+ let scale: number;
+
+ if (timeIntoFragment < transitionSec) {
+ const progress = Math.min(1, timeIntoFragment / transitionSec);
+ const easedProgress = easeOutQuart(progress);
+ scale = 1 + (targetScale - 1) * easedProgress;
+ } else {
+ scale = targetScale;
+ }
+
+ return {
+ scale,
+ focusX: activeFragment.focusX,
+ focusY: activeFragment.focusY,
+ };
+ }
+
+ // Not inside any fragment - check if we're in an exit transition from a previous fragment
+ if (previousFragment) {
+ const exitTransitionMs = speedToTransitionMs(previousFragment.speed);
+ const exitTransitionSec = exitTransitionMs / 1000;
+ const timeSinceEnd = frameTime - previousFragment.endTime;
+
+ if (timeSinceEnd < exitTransitionSec) {
+ // Exit transition - ease out from the zoom (mirror of entry for symmetry)
+ const progress = Math.min(1, timeSinceEnd / exitTransitionSec);
+ const easedProgress = easeOutQuart(progress); // Same easing as entry for professional feel
+ const targetScale = zoomLevelToFactor(previousFragment.zoomLevel);
+ const scale = targetScale - (targetScale - 1) * easedProgress;
+
+ return {
+ scale,
+ focusX: previousFragment.focusX,
+ focusY: previousFragment.focusY,
+ };
+ }
+ }
+
+ // Default - no zoom active
+ return DEFAULT_STATE;
+}
diff --git a/lib/color.utils.ts b/lib/color.utils.ts
new file mode 100644
index 0000000..c008af8
--- /dev/null
+++ b/lib/color.utils.ts
@@ -0,0 +1,45 @@
+// Parse a hex color into [r, g, b] (handles #rgb and #rrggbb)
+export function hexToRgb(hex: string): [number, number, number] {
+ const clean = hex.replace("#", "");
+ if (clean.length === 3) {
+ return [
+ parseInt(clean[0] + clean[0], 16),
+ parseInt(clean[1] + clean[1], 16),
+ parseInt(clean[2] + clean[2], 16),
+ ];
+ }
+ return [
+ parseInt(clean.slice(0, 2), 16),
+ parseInt(clean.slice(2, 4), 16),
+ parseInt(clean.slice(4, 6), 16),
+ ];
+}
+
+// Perceived luminance (0 = black, 1 = white)
+export function luminance(r: number, g: number, b: number): number {
+ return (0.299 * r + 0.587 * g + 0.114 * b) / 255;
+}
+
+// Shift a hex color lighter or darker by a fixed amount per channel
+export function shiftColor(hex: string, amount: number): string {
+ const [r, g, b] = hexToRgb(hex);
+ const clamp = (v: number) => Math.max(0, Math.min(255, Math.round(v)));
+ const toHex = (v: number) => clamp(v).toString(16).padStart(2, "0");
+ return `#${toHex(r + amount)}${toHex(g + amount)}${toHex(b + amount)}`;
+}
+
+// Derive a search-bar background that harmonizes with frameColor:
+// - for dark frames → slightly lighter than frame
+// - for light frames → slightly darker than frame
+export function deriveSearchBg(frameColor: string): string {
+ try {
+ const [r, g, b] = hexToRgb(frameColor);
+ const lum = luminance(r, g, b);
+ // Dark frame → lighten a bit; light frame → darken a bit
+ return lum < 0.5
+ ? shiftColor(frameColor, +28)
+ : shiftColor(frameColor, -22);
+ } catch {
+ return "#2b2b2b";
+ }
+}
\ No newline at end of file
diff --git a/lib/constants.ts b/lib/constants.ts
new file mode 100644
index 0000000..6b47638
--- /dev/null
+++ b/lib/constants.ts
@@ -0,0 +1,57 @@
+import { QualitySettings } from '@/types';
+
+/**
+ * Resolución del canvas de exportación por defecto
+ */
+export const EXPORT_WIDTH = 1920;
+export const EXPORT_HEIGHT = 1080;
+
+/**
+ * Configuración de calidad para cada opción de exportación
+ * FPS optimizado según calidad para balance rendimiento/calidad
+ */
+export const QUALITY_SETTINGS: Record<string, QualitySettings> = {
+ "4k": { width: 3840, height: 2160, bitrate: 40_000_000, fps: 30 },
+ "2k": { width: 2560, height: 1440, bitrate: 16_000_000, fps: 30 },
+ "1080p": { width: 1920, height: 1080, bitrate: 8_000_000, fps: 30 },
+ "720p": { width: 1280, height: 720, bitrate: 5_000_000, fps: 30 },
+ "480p": { width: 854, height: 480, bitrate: 2_500_000, fps: 24 },
+ "gif": { width: 640, height: 360, bitrate: 2_000_000, fps: 15 },
+};
+
+/**
+ * FPS por defecto para exportación (fallback)
+ */
+export const DEFAULT_EXPORT_FPS = 30;
+
+/**
+ * Ancho de referencia del contenedor de preview (max-w-4xl en Tailwind)
+ */
+export const PREVIEW_CONTAINER_WIDTH = 896;
+
+/**
+ * Ancho del sidebar de etiquetas en el timeline (px)
+ */
+export const TIMELINE_LABEL_WIDTH = 80;
+
+/**
+ * Duración mínima entre trim handles (segundos)
+ */
+export const MIN_TRIM_DURATION = 0.5;
+
+/**
+ * Tabla de multiplicadores de zoom para el timeline
+ * zoom 1× → 1.0 (sin estiramiento), zoom 10× → 2.5 (estiramiento moderado)
+ */
+export const TIMELINE_ZOOM_SCALE: Record<number, number> = {
+ 1: 1.0,
+ 2: 1.2,
+ 3: 1.4,
+ 4: 1.6,
+ 5: 1.8,
+ 6: 2.0,
+ 7: 2.1,
+ 8: 2.2,
+ 9: 2.35,
+ 10: 2.5,
+};
diff --git a/lib/index.ts b/lib/index.ts
new file mode 100644
index 0000000..7f05a7e
--- /dev/null
+++ b/lib/index.ts
@@ -0,0 +1,4 @@
+export * from './canvas.utils';
+export * from './video.utils';
+export * from './wallpaper.utils';
+export * from './constants';
diff --git a/lib/mockup-canvas.utils.ts b/lib/mockup-canvas.utils.ts
new file mode 100644
index 0000000..abbd247
--- /dev/null
+++ b/lib/mockup-canvas.utils.ts
@@ -0,0 +1,104 @@
+/**
+ * Utilidades para dibujar mockups en Canvas 2D
+ * Funciones principales de orquestación
+ */
+
+import type { MockupConfig } from "@/types/mockup.types";
+import {
+ type MockupDrawResult,
+ drawMacosMockup,
+ drawMacosGlassMockup,
+ drawVSCodeMockup,
+ drawIPhoneSlimMockup,
+} from "./mockup-canvas";
+import { drawMacosGhostMockup } from "./mockup-canvas/macos-ghost";
+import { drawGlassUIContainerMockup } from "./mockup-canvas/glass-ui-container";
+import { drawMacosGhostGlassMockup } from "./mockup-canvas/macos-ghost-glass";
+import { drawMacosContainerGlassMockup } from "./mockup-canvas/macos-container-glass";
+import { drawBraveMockup } from "./mockup-canvas/brave";
+import { drawBraveGlassMockup } from "./mockup-canvas/brave-glass";
+import { drawBrowserTabGlassMockup } from "./mockup-canvas/browser-tab-glass";
+import { drawChromeMockup } from "./mockup-canvas/chrome";
+import { drawChromeGlassMockup } from "./mockup-canvas/chrome-glass";
+import { drawMacosDarkIdeMockup } from "./mockup-canvas/macos-dark-ide";
+import { drawMacosGhostIdeMockup } from "./mockup-canvas/macos-ghost-ide";
+
+interface MockupCanvasContext {
+ ctx: CanvasRenderingContext2D;
+ x: number;
+ y: number;
+ width: number;
+ height: number;
+ config: MockupConfig;
+ cornerRadius: number;
+ shadowBlur: number;
+}
+
+/**
+ * Función principal que dibuja el mockup correspondiente en el canvas
+ * y devuelve el área donde debe ir el contenido del video
+ */
+export function drawMockupToCanvas(
+ ctx: CanvasRenderingContext2D,
+ mockupId: string,
+ config: MockupConfig,
+ x: number,
+ y: number,
+ width: number,
+ height: number,
+ cornerRadius: number,
+ shadowBlur: number = 0
+): MockupDrawResult {
+ const context: MockupCanvasContext = {
+ ctx,
+ x,
+ y,
+ width,
+ height,
+ config,
+ cornerRadius,
+ shadowBlur,
+ };
+
+ switch (mockupId) {
+ case "macos":
+ return drawMacosMockup(context);
+ case "macos-glass":
+ return drawMacosGlassMockup(context);
+ case "glass-ui-container":
+ return drawGlassUIContainerMockup(context);
+ case "macos-ghost":
+ return drawMacosGhostMockup(context);
+ case "macos-ghost-glass":
+ return drawMacosGhostGlassMockup(context);
+ case "macos-container-glass":
+ return drawMacosContainerGlassMockup(context);
+ case "brave":
+ return drawBraveMockup(context);
+ case "brave-glass":
+ return drawBraveGlassMockup(context);
+ case "browser-tab-glass":
+ return drawBrowserTabGlassMockup(context);
+ case "chrome":
+ return drawChromeMockup(context);
+ case "chrome-glass":
+ return drawChromeGlassMockup(context);
+ case "vscode":
+ return drawVSCodeMockup(context);
+ case "macos-dark-ide":
+ return drawMacosDarkIdeMockup(context);
+ case "macos-ghost-ide":
+ return drawMacosGhostIdeMockup(context);
+ case "iphone-slim":
+ return drawIPhoneSlimMockup(context);
+ default:
+ // Sin mockup, el contenido ocupa todo el espacio
+ return {
+ contentX: x,
+ contentY: y,
+ contentWidth: width,
+ contentHeight: height,
+ };
+ }
+}
+
diff --git a/lib/mockup-canvas/README.md b/lib/mockup-canvas/README.md
new file mode 100644
index 0000000..3605ce4
--- /dev/null
+++ b/lib/mockup-canvas/README.md
@@ -0,0 +1,89 @@
+# Mockup Canvas Rendering
+
+Esta carpeta contiene los renderizadores de mockups para exportación de video en Canvas 2D.
+
+## Estructura
+
+```
+mockup-canvas/
+├── index.ts # Exportaciones principales
+├── types.ts # Tipos compartidos (MockupCanvasContext, MockupDrawResult)
+├── shared.ts # Utilidades compartidas (drawRoundedRectPath, drawMockupShadow)
+├── macos.ts # Mockup de macOS estándar
+├── macos-glass.ts # Mockup de macOS con efecto glass border
+├── vscode.ts # Mockup de VS Code
+└── iphone-slim.ts # Mockup de iPhone Slim
+```
+
+## Agregar un nuevo mockup
+
+1. **Crear archivo** `lib/mockup-canvas/tu-mockup.ts`:
+
+```typescript
+import { hexToRgba } from "@/lib/utils";
+import type { MockupCanvasContext, MockupDrawResult } from "./types";
+import { drawRoundedRectPath, drawMockupShadow } from "./shared";
+
+export function drawTuMockup(context: MockupCanvasContext): MockupDrawResult {
+ const { ctx, x, y, width, height, config, cornerRadius, shadowBlur } = context;
+
+ // Tu lógica de renderizado aquí
+
+ return {
+ contentX: x,
+ contentY: y + headerHeight,
+ contentWidth: width,
+ contentHeight: height - headerHeight,
+ };
+}
+```
+
+2. **Exportar** en `lib/mockup-canvas/index.ts`:
+
+```typescript
+export { drawTuMockup } from './tu-mockup';
+```
+
+3. **Registrar** en `lib/mockup-canvas.utils.ts`:
+
+```typescript
+import { drawTuMockup } from "./mockup-canvas";
+
+// En la función drawMockupToCanvas:
+case "tu-mockup":
+ return drawTuMockup(context);
+```
+
+4. **Agregar datos** en `lib/mockupData.tsx`:
+
+```typescript
+{
+ id: "tu-mockup",
+ name: "Tu Mockup",
+ category: "browser",
+ features: {
+ hasDarkMode: true,
+ // ... otras features
+ },
+ preview: <TuMockupPreview />
+}
+```
+
+## Consideraciones importantes
+
+### Border Radius
+- **Mockups sin padding extra** (macos, vscode): El radio se aplica solo a esquinas superiores en el header, y esquinas inferiores en el contenido
+- **Mockups con glass border** (macos-glass): El radio exterior es el original, el radio interior se calcula restando el padding: `innerRadius = cornerRadius - glassPadding`
+- **Mockups móviles** (iphone-slim): Usan radios más grandes para simular la pantalla curva
+
+### Sombras
+- Usar `drawMockupShadow()` para dibujar sombras sin bloquear el fondo transparente
+- La sombra se dibuja con un stroke casi transparente: `rgba(0, 0, 0, 0.01)`
+
+### Transparencia del header
+- Usar `hexToRgba(frameColor, headerOpacity)` para aplicar transparencia al header
+- La barra de búsqueda/URL debe usar `deriveSearchBg(frameColor)` con la misma opacidad
+
+### Escalado proporcional
+- Todos los valores deben escalar con `headerScale = (config.headerScale || 100) / 100`
+- Mantener proporciones relativas entre elementos (botones, iconos, texto)
diff --git a/lib/mockup-canvas/brave-glass.ts b/lib/mockup-canvas/brave-glass.ts
new file mode 100644
index 0000000..9e1526c
--- /dev/null
+++ b/lib/mockup-canvas/brave-glass.ts
@@ -0,0 +1,172 @@
+/**
+ * Renderizado del mockup de Brave Glass en Canvas
+ */
+
+import { hexToRgba } from "@/lib/utils";
+import { deriveSearchBg } from "@/lib/color.utils";
+import {
+ drawChevronLeft,
+ drawChevronRight,
+ drawLockIcon,
+ drawRefreshIcon,
+ drawDownloadIcon,
+ drawStarIcon,
+ drawThreeDotsIcon,
+ drawWinButton
+} from "@/lib/canvas-icons";
+import type { MockupCanvasContext, MockupDrawResult } from "./types";
+import { drawRoundedRectPath, drawMockupShadow } from "./shared";
+
+export function drawBraveGlassMockup(context: MockupCanvasContext): MockupDrawResult {
+ const { ctx, x, y, width, height, config, cornerRadius, shadowBlur } = context;
+ const isDark = config.darkMode;
+ const frameColor = config.frameColor;
+ const url = config.url || "https://freeshot.dev";
+ const headerOpacity = config.headerOpacity ?? 100;
+
+ const headerScale = (config.headerScale || 100) / 100;
+
+ // Glass border padding (debe coincidir con el CSS: 7px)
+ const glassPadding = 7;
+ const glassCornerRadius = cornerRadius;
+
+ // Valores base escalados — igual que BraveMockup.tsx
+ const headerHeight = 32 * headerScale;
+ const iconSize = 14 * headerScale;
+ const smallIcon = iconSize * 0.75;
+ const navGap = 12 * headerScale;
+ const leftPadding = 12 * headerScale;
+ const urlBarHeight = 26 * headerScale;
+ const urlBarPadding = 10 * headerScale;
+ const fontSize = 11 * headerScale;
+ const rightGap = 10 * headerScale;
+ const winBtnW = 34 * headerScale;
+
+ const bgColor = isDark ? "#262626" : "#f9f9f9";
+ const borderColor = isDark ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.1)";
+ const textColor = isDark ? "#cccccc" : "#555555";
+ const iconColor = isDark ? "rgba(255,255,255,0.5)" : "rgba(0,0,0,0.4)";
+
+ // 0. Sombra exterior
+ drawMockupShadow(ctx, x, y, width, height, glassCornerRadius, shadowBlur);
+
+ // 1. Área interior
+ const innerX = x + glassPadding;
+ const innerY = y + glassPadding;
+ const innerWidth = width - glassPadding * 2;
+ const innerHeight = height - glassPadding * 2;
+ const innerCornerRadius = Math.max(0, glassCornerRadius + 4);
+
+ // 2. Cáscara glass (gradiente 45deg + bordes top/left)
+ ctx.save();
+ drawRoundedRectPath(ctx, x, y, width, height, glassCornerRadius);
+ const grad = ctx.createLinearGradient(x, y + height, x + width, y);
+ grad.addColorStop(0, "rgba(255,255,255,0.3)");
+ grad.addColorStop(1, "rgba(255,255,255,0.4)");
+ ctx.fillStyle = grad;
+ ctx.fill();
+
+ ctx.strokeStyle = "rgba(255,255,255,0.8)";
+ ctx.lineWidth = 0.75;
+ ctx.beginPath();
+ ctx.moveTo(x + glassCornerRadius, y + 0.375);
+ ctx.lineTo(x + width - glassCornerRadius, y + 0.375);
+ ctx.stroke();
+ ctx.beginPath();
+ ctx.moveTo(x + 0.375, y + glassCornerRadius);
+ ctx.lineTo(x + 0.375, y + height - glassCornerRadius);
+ ctx.stroke();
+ ctx.restore();
+
+ // 3. Clip al área interior
+ ctx.save();
+ drawRoundedRectPath(ctx, innerX, innerY, innerWidth, innerHeight, innerCornerRadius);
+ ctx.clip();
+
+ // 4. Fondo contenido
+ ctx.fillStyle = bgColor;
+ ctx.fillRect(innerX, innerY + headerHeight, innerWidth, innerHeight - headerHeight);
+
+ // 5. Header
+ ctx.save();
+ ctx.beginPath();
+ ctx.moveTo(innerX + innerCornerRadius, innerY);
+ ctx.lineTo(innerX + innerWidth - innerCornerRadius, innerY);
+ ctx.quadraticCurveTo(innerX + innerWidth, innerY, innerX + innerWidth, innerY + innerCornerRadius);
+ ctx.lineTo(innerX + innerWidth, innerY + headerHeight);
+ ctx.lineTo(innerX, innerY + headerHeight);
+ ctx.lineTo(innerX, innerY + innerCornerRadius);
+ ctx.quadraticCurveTo(innerX, innerY, innerX + innerCornerRadius, innerY);
+ ctx.closePath();
+ ctx.fillStyle = hexToRgba(frameColor, headerOpacity);
+ ctx.fill();
+ ctx.restore();
+
+ // 6. Línea separadora
+ ctx.save();
+ ctx.strokeStyle = borderColor;
+ ctx.lineWidth = 1;
+ ctx.beginPath();
+ ctx.moveTo(innerX, innerY + headerHeight);
+ ctx.lineTo(innerX + innerWidth, innerY + headerHeight);
+ ctx.stroke();
+ ctx.restore();
+
+ const smallIconY = innerY + (headerHeight - smallIcon) / 2;
+
+ // ── LEFT: chevron-left, chevron-right (dimmed), refresh ──
+ let curX = innerX + leftPadding;
+ drawChevronLeft(ctx, curX, smallIconY, smallIcon, iconColor);
+ curX += smallIcon + navGap;
+ drawChevronRight(ctx, curX, smallIconY, smallIcon, iconColor + "59");
+ curX += smallIcon + navGap;
+ drawRefreshIcon(ctx, curX, smallIconY, smallIcon, iconColor);
+
+ // ── CENTER: URL bar (lock + url + star) ──
+ const urlBarWidth = Math.min(innerWidth * 0.45, 576 * headerScale);
+ const urlBarX = innerX + (innerWidth - urlBarWidth) / 2;
+ const urlBarY = innerY + (headerHeight - urlBarHeight) / 2;
+ const urlBarBgBase = deriveSearchBg(frameColor);
+
+ ctx.save();
+ drawRoundedRectPath(ctx, urlBarX, urlBarY, urlBarWidth, urlBarHeight, 4 * headerScale);
+ ctx.fillStyle = hexToRgba(urlBarBgBase, headerOpacity);
+ ctx.fill();
+ ctx.restore();
+
+ const lockSize = iconSize * 0.65;
+ drawLockIcon(ctx, urlBarX + urlBarPadding, urlBarY + (urlBarHeight - lockSize) / 2, lockSize, iconColor + "99");
+
+ ctx.save();
+ ctx.font = `${fontSize}px "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif`;
+ ctx.fillStyle = textColor;
+ ctx.textAlign = "center";
+ ctx.textBaseline = "middle";
+ ctx.fillText(url.replace(/^https?:\/\//, "").substring(0, 40), urlBarX + urlBarWidth / 2, urlBarY + urlBarHeight / 2);
+ ctx.restore();
+
+ const starSize = iconSize * 0.75;
+ drawStarIcon(ctx, urlBarX + urlBarWidth - urlBarPadding - starSize, urlBarY + (urlBarHeight - starSize) / 2, starSize, "rgba(234,179,8,0.8)");
+
+ // ── RIGHT: download + three-dots + Windows buttons ──
+ const winBtnsWidth = winBtnW * 3;
+ const dotsIconX = innerX + innerWidth - winBtnsWidth - rightGap - smallIcon;
+ const downloadIconX = dotsIconX - rightGap - smallIcon;
+
+ drawDownloadIcon(ctx, downloadIconX, smallIconY, smallIcon, iconColor);
+ drawThreeDotsIcon(ctx, dotsIconX, smallIconY, smallIcon, iconColor);
+
+ drawWinButton(ctx, innerX + innerWidth - winBtnW * 3, innerY, winBtnW, headerHeight, "minimize", iconColor, headerScale);
+ drawWinButton(ctx, innerX + innerWidth - winBtnW * 2, innerY, winBtnW, headerHeight, "maximize", iconColor, headerScale);
+ drawWinButton(ctx, innerX + innerWidth - winBtnW, innerY, winBtnW, headerHeight, "close", iconColor, headerScale);
+
+ // Fin clip interior
+ ctx.restore();
+
+ return {
+ contentX: innerX,
+ contentY: innerY + headerHeight,
+ contentWidth: innerWidth,
+ contentHeight: innerHeight - headerHeight,
+ };
+}
\ No newline at end of file
diff --git a/lib/mockup-canvas/brave.ts b/lib/mockup-canvas/brave.ts
new file mode 100644
index 0000000..acf7ca0
--- /dev/null
+++ b/lib/mockup-canvas/brave.ts
@@ -0,0 +1,151 @@
+/**
+ * Renderizado del mockup de Brave en Canvas
+ */
+
+import { hexToRgba } from "@/lib/utils";
+import { deriveSearchBg } from "@/lib/color.utils";
+import {
+ drawChevronLeft,
+ drawChevronRight,
+ drawLockIcon,
+ drawRefreshIcon,
+ drawDownloadIcon,
+ drawStarIcon,
+ drawThreeDotsIcon,
+ drawWinButton
+} from "@/lib/canvas-icons";
+import type { MockupCanvasContext, MockupDrawResult } from "./types";
+import { drawRoundedRectPath, drawMockupShadow } from "./shared";
+
+export function drawBraveMockup(context: MockupCanvasContext): MockupDrawResult {
+ const { ctx, x, y, width, height, config, cornerRadius, shadowBlur } = context;
+ const isDark = config.darkMode;
+ const frameColor = config.frameColor;
+ const url = config.url || "https://freeshot.dev";
+ const headerOpacity = config.headerOpacity ?? 100;
+
+ const headerScale = (config.headerScale || 100) / 100;
+
+ const headerHeight = 32 * headerScale;
+ const iconSize = 14 * headerScale;
+ const navGap = 12 * headerScale;
+ const leftPadding = 12 * headerScale;
+ const urlBarHeight = 26 * headerScale;
+ const urlBarPadding = 10 * headerScale;
+ const fontSize = 11 * headerScale;
+ const rightGap = 10 * headerScale;
+ const winBtnW = 34 * headerScale; // px-3 * 2 + icon
+
+ const bgColor = isDark ? "#262626" : "#f9f9f9";
+ const borderColor = isDark ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.1)";
+ const textColor = isDark ? "#cccccc" : "#555555";
+ const iconColor = isDark ? "rgba(255,255,255,0.5)" : "rgba(0,0,0,0.4)";
+
+ // 0. Sombra
+ drawMockupShadow(ctx, x, y, width, height, cornerRadius, shadowBlur);
+
+ // 1. Fondo contenido
+ ctx.save();
+ ctx.beginPath();
+ ctx.moveTo(x, y + headerHeight);
+ ctx.lineTo(x + width, y + headerHeight);
+ ctx.lineTo(x + width, y + height - cornerRadius);
+ ctx.quadraticCurveTo(x + width, y + height, x + width - cornerRadius, y + height);
+ ctx.lineTo(x + cornerRadius, y + height);
+ ctx.quadraticCurveTo(x, y + height, x, y + height - cornerRadius);
+ ctx.closePath();
+ ctx.fillStyle = bgColor;
+ ctx.fill();
+ ctx.restore();
+
+ // 2. Header
+ ctx.save();
+ ctx.beginPath();
+ ctx.moveTo(x + cornerRadius, y);
+ ctx.lineTo(x + width - cornerRadius, y);
+ ctx.quadraticCurveTo(x + width, y, x + width, y + cornerRadius);
+ ctx.lineTo(x + width, y + headerHeight);
+ ctx.lineTo(x, y + headerHeight);
+ ctx.lineTo(x, y + cornerRadius);
+ ctx.quadraticCurveTo(x, y, x + cornerRadius, y);
+ ctx.closePath();
+ ctx.fillStyle = hexToRgba(frameColor, headerOpacity);
+ ctx.fill();
+ ctx.restore();
+
+ // 3. Línea separadora
+ ctx.save();
+ ctx.strokeStyle = borderColor;
+ ctx.lineWidth = 1;
+ ctx.beginPath();
+ ctx.moveTo(x, y + headerHeight);
+ ctx.lineTo(x + width, y + headerHeight);
+ ctx.stroke();
+ ctx.restore();
+
+ const smallIcon = iconSize * 0.75;
+ const smallIconY = y + (headerHeight - smallIcon) / 2;
+
+ // ── LEFT: chevron-left, chevron-right (dimmed), refresh ──
+ let curX = x + leftPadding;
+
+ drawChevronLeft(ctx, curX, smallIconY, smallIcon, iconColor + "59");
+ curX += smallIcon + navGap;
+
+ drawChevronRight(ctx, curX, smallIconY, smallIcon, iconColor); // opacity ~35%
+ curX += smallIcon + navGap;
+
+ drawRefreshIcon(ctx, curX, smallIconY, smallIcon, iconColor);
+
+ // ── CENTER: URL bar (lock + url + star) ──
+ const urlBarWidth = Math.min(width * 0.45, 576 * headerScale);
+ const urlBarX = x + (width - urlBarWidth) / 2;
+ const urlBarY = y + (headerHeight - urlBarHeight) / 2;
+ const urlBarBgBase = deriveSearchBg(frameColor);
+
+ ctx.save();
+ drawRoundedRectPath(ctx, urlBarX, urlBarY, urlBarWidth, urlBarHeight, 4 * headerScale);
+ ctx.fillStyle = hexToRgba(urlBarBgBase, headerOpacity);
+ ctx.fill();
+ ctx.restore();
+
+ const lockSize = iconSize * 0.65;
+ drawLockIcon(ctx, urlBarX + urlBarPadding, urlBarY + (urlBarHeight - lockSize) / 2, lockSize, iconColor + "99");
+
+ ctx.save();
+ ctx.font = `${fontSize}px "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif`;
+ ctx.fillStyle = textColor;
+ ctx.textAlign = "center";
+ ctx.textBaseline = "middle";
+ ctx.fillText(url.replace(/^https?:\/\//, "").substring(0, 40), urlBarX + urlBarWidth / 2, urlBarY + urlBarHeight / 2);
+ ctx.restore();
+
+ // Star icon (right of URL bar) — drawn manually as polygon
+ const starSize = iconSize * 0.75;
+ const starX = urlBarX + urlBarWidth - urlBarPadding - starSize;
+ const starY = urlBarY + (urlBarHeight - starSize) / 2;
+ drawStarIcon(ctx, starX, starY, starSize, "rgba(234,179,8,0.8)");
+
+ // ── RIGHT: download + three-dots + Windows buttons ──
+ // Windows buttons are rightmost — calculate from right edge
+ const winBtnsWidth = winBtnW * 3;
+ const dotsIconX = x + width - winBtnsWidth - rightGap - smallIcon;
+ const downloadIconX = dotsIconX - rightGap - smallIcon;
+
+ drawDownloadIcon(ctx, downloadIconX, smallIconY, smallIcon, iconColor);
+ drawThreeDotsIcon(ctx, dotsIconX, smallIconY, smallIcon, iconColor);
+
+ // Windows buttons: minimize, maximize, close
+ const winY = y;
+ const winBtnH = headerHeight;
+ drawWinButton(ctx, x + width - winBtnW * 3, winY, winBtnW, winBtnH, "minimize", iconColor, headerScale);
+ drawWinButton(ctx, x + width - winBtnW * 2, winY, winBtnW, winBtnH, "maximize", iconColor, headerScale);
+ drawWinButton(ctx, x + width - winBtnW, winY, winBtnW, winBtnH, "close", iconColor, headerScale, cornerRadius);
+
+ return {
+ contentX: x,
+ contentY: y + headerHeight,
+ contentWidth: width,
+ contentHeight: height - headerHeight,
+ };
+}
\ No newline at end of file
diff --git a/lib/mockup-canvas/browser-tab-glass.ts b/lib/mockup-canvas/browser-tab-glass.ts
new file mode 100644
index 0000000..173082e
--- /dev/null
+++ b/lib/mockup-canvas/browser-tab-glass.ts
@@ -0,0 +1,255 @@
+/**
+ * Renderizado del mockup de Browser Tab Glass en Canvas
+ */
+
+import type { MockupCanvasContext, MockupDrawResult } from "./types";
+import { drawRoundedRectPath, drawMockupShadow } from "./shared";
+
+export function drawBrowserTabGlassMockup(context: MockupCanvasContext): MockupDrawResult {
+ const { ctx, x, y, width, height, config, cornerRadius, shadowBlur } = context;
+ const isDark = config.darkMode;
+ const url = config.url || "Nueva pestaña";
+
+ const headerScale = (config.headerScale || 100) / 100;
+
+ const glassPadding = 7;
+ const glassCornerRadius = cornerRadius;
+ const innerCornerRadius = Math.max(0, glassCornerRadius + 4);
+
+ // Tab bar dimensions — igual que el React
+ const tabBarH = 32 * headerScale; // increased for top padding
+ const dotSize = 10 * headerScale;
+ const dotGap = 6 * headerScale;
+ const dotPaddingX = 4 * headerScale;
+ const tabH = 28 * headerScale;
+ const tabW = 184 * headerScale;
+ const tabPaddingX = 12 * headerScale;
+ const tabIconSize = 12 * headerScale;
+ const tabFontSize = 10 * headerScale;
+ const addBtnSize = 24 * headerScale;
+ const leftPadding = 16 * headerScale;
+ const dotsTabGap = 12 * headerScale;
+ const tabAddGap = 12 * headerScale;
+ const winIconGap = 24 * headerScale;
+ const winIconMB = 10 * headerScale;
+ const winIconMR = 4 * headerScale;
+
+ const bgColor = isDark ? "#262626" : "#f9f9f9";
+
+ // Dark/light tab styles — igual que el React
+ const tabBg = isDark ? "rgba(255,255,255,0.12)" : "rgba(255,255,255,0.8)";
+ const tabBorderColor = isDark ? "rgba(255,255,255,0.2)" : "rgba(255,255,255,0.9)";
+ const tabTitleColor = isDark ? "#d1d5db" : "#374151";
+ const tabCloseColor = isDark ? "rgba(209,213,219,0.6)" : "rgba(75,85,99,0.8)";
+ const tabCloseBg = isDark ? "rgba(255,255,255,0.1)" : "rgba(156,163,175,0.2)";
+
+ // 0. Sombra exterior
+ drawMockupShadow(ctx, x, y, width, height, glassCornerRadius, shadowBlur);
+
+ // 1. Área interior
+ const innerX = x + glassPadding;
+ const innerY = y + glassPadding;
+ const innerWidth = width - glassPadding * 2;
+ const innerHeight = height - glassPadding * 2;
+
+ // 2. Cáscara glass
+ ctx.save();
+ drawRoundedRectPath(ctx, x, y, width, height, glassCornerRadius);
+ const grad = ctx.createLinearGradient(x, y + height, x + width, y);
+ grad.addColorStop(0, "rgba(255,255,255,0.3)");
+ grad.addColorStop(1, "rgba(255,255,255,0.4)");
+ ctx.fillStyle = grad;
+ ctx.fill();
+ ctx.strokeStyle = "rgba(255,255,255,0.8)";
+ ctx.lineWidth = 0.75;
+ ctx.beginPath();
+ ctx.moveTo(x + glassCornerRadius, y + 0.375);
+ ctx.lineTo(x + width - glassCornerRadius, y + 0.375);
+ ctx.stroke();
+ ctx.beginPath();
+ ctx.moveTo(x + 0.375, y + glassCornerRadius);
+ ctx.lineTo(x + 0.375, y + height - glassCornerRadius);
+ ctx.stroke();
+ ctx.restore();
+
+ // 3. Clip al área interior
+ ctx.save();
+ drawRoundedRectPath(ctx, innerX, innerY, innerWidth, innerHeight, innerCornerRadius);
+ ctx.clip();
+
+ // 4. Fondo contenido (debajo del tab bar)
+ ctx.fillStyle = bgColor;
+ ctx.fillRect(innerX, innerY + tabBarH, innerWidth, innerHeight - tabBarH);
+
+ // ── TAB BAR ──
+ // El tab bar no tiene fondo propio (transparente sobre el glass)
+
+ // 5. Window dots (bottom-aligned, left side)
+ const dotBaseY = innerY + (tabBarH - dotSize) / 2;
+ const dotStartX = innerX + leftPadding + dotPaddingX;
+ [0, 1, 2].forEach((i) => {
+ const dotX = dotStartX + i * (dotSize + dotGap) + dotSize / 2;
+ const dotY = dotBaseY + dotSize / 2;
+ ctx.save();
+ ctx.beginPath();
+ ctx.arc(dotX, dotY, dotSize / 2, 0, Math.PI * 2);
+ ctx.fillStyle = "rgba(255,255,255,0.2)";
+ ctx.fill();
+ ctx.strokeStyle = "rgba(255,255,255,0.3)";
+ ctx.lineWidth = 1;
+ ctx.stroke();
+ ctx.restore();
+ });
+
+ // 6. Active tab (bottom-aligned, after dots)
+ const dotsBlockW = dotPaddingX + 3 * dotSize + 2 * dotGap;
+ const tabX = innerX + leftPadding + dotsBlockW + dotsTabGap;
+ const tabY = innerY + tabBarH - tabH + 2 * headerScale;
+
+ ctx.save();
+ // Tab background with top+left+right border
+ drawRoundedRectPath(ctx, tabX, tabY, tabW, tabH, 8 * headerScale);
+ ctx.fillStyle = tabBg;
+ ctx.fill();
+ // Top border
+ ctx.strokeStyle = tabBorderColor;
+ ctx.lineWidth = 1;
+ ctx.beginPath();
+ ctx.moveTo(tabX + 8 * headerScale, tabY);
+ ctx.lineTo(tabX + tabW - 8 * headerScale, tabY);
+ ctx.stroke();
+ // Left border
+ ctx.beginPath();
+ ctx.moveTo(tabX, tabY + 8 * headerScale);
+ ctx.lineTo(tabX, tabY + tabH);
+ ctx.stroke();
+ // Right border
+ ctx.beginPath();
+ ctx.moveTo(tabX + tabW, tabY + 8 * headerScale);
+ ctx.lineTo(tabX + tabW, tabY + tabH);
+ ctx.stroke();
+ ctx.restore();
+
+ // Favicon dot (blue circle)
+ const faviconX = tabX + tabPaddingX + tabIconSize / 2;
+ const faviconY = tabY + tabH / 2;
+ ctx.save();
+ ctx.beginPath();
+ ctx.arc(faviconX, faviconY, tabIconSize / 2, 0, Math.PI * 2);
+ ctx.fillStyle = "#60a5fa";
+ ctx.fill();
+ ctx.restore();
+
+ // Tab title
+ ctx.save();
+ ctx.font = `500 ${tabFontSize}px "Inter", -apple-system, BlinkMacSystemFont, sans-serif`;
+ ctx.fillStyle = tabTitleColor;
+ ctx.textAlign = "left";
+ ctx.textBaseline = "middle";
+ const maxTitleW = tabW - tabPaddingX * 2 - tabIconSize - 8 * headerScale - 8 * headerScale - 8 * headerScale;
+ const titleText = url.replace(/^https?:\/\//, "").substring(0, 30);
+ ctx.save();
+ ctx.beginPath();
+ ctx.rect(faviconX + tabIconSize / 2 + 8 * headerScale, tabY, maxTitleW, tabH);
+ ctx.clip();
+ ctx.fillText(titleText, faviconX + tabIconSize / 2 + 8 * headerScale, faviconY);
+ ctx.restore();
+ ctx.restore();
+
+ // Close X button
+ const closeSize = 8 * headerScale;
+ const closeX = tabX + tabW - tabPaddingX - closeSize;
+ const closeY = tabY + (tabH - closeSize) / 2;
+ ctx.save();
+ ctx.beginPath();
+ ctx.arc(closeX + closeSize / 2, closeY + closeSize / 2, closeSize / 2, 0, Math.PI * 2);
+ ctx.fillStyle = tabCloseBg;
+ ctx.fill();
+ // X lines
+ ctx.strokeStyle = tabCloseColor;
+ ctx.lineWidth = 1 * headerScale;
+ ctx.beginPath();
+ ctx.moveTo(closeX + 1, closeY + 1);
+ ctx.lineTo(closeX + closeSize - 1, closeY + closeSize - 1);
+ ctx.moveTo(closeX + closeSize - 1, closeY + 1);
+ ctx.lineTo(closeX + 1, closeY + closeSize - 1);
+ ctx.stroke();
+ ctx.restore();
+
+ // 7. Add tab button (+)
+ const addBtnX = tabX + tabW + tabAddGap;
+ const addBtnY = innerY + (tabBarH - addBtnSize) / 2;
+ ctx.save();
+ ctx.beginPath();
+ ctx.arc(addBtnX + addBtnSize / 2, addBtnY + addBtnSize / 2, addBtnSize / 2, 0, Math.PI * 2);
+ ctx.fillStyle = "rgba(255,255,255,0.2)";
+ ctx.fill();
+ ctx.strokeStyle = "rgba(255,255,255,0.3)";
+ ctx.lineWidth = 1;
+ ctx.stroke();
+ // + symbol
+ const plusS = 10 * headerScale;
+ const plusCX = addBtnX + addBtnSize / 2;
+ const plusCY = addBtnY + addBtnSize / 2;
+ ctx.strokeStyle = "rgba(255,255,255,0.8)";
+ ctx.lineWidth = 1.5 * headerScale;
+ ctx.lineCap = "round";
+ ctx.beginPath();
+ ctx.moveTo(plusCX - plusS / 2, plusCY);
+ ctx.lineTo(plusCX + plusS / 2, plusCY);
+ ctx.moveTo(plusCX, plusCY - plusS / 2);
+ ctx.lineTo(plusCX, plusCY + plusS / 2);
+ ctx.stroke();
+ ctx.restore();
+
+ // 8. Windows-style buttons (right side, bottom-aligned)
+ const winBaseY = innerY + tabBarH / 2;
+ const winRightX = innerX + innerWidth - winIconMR;
+
+ // Close X
+ const wCloseSize = 12 * headerScale;
+ drawWinX(ctx, winRightX - wCloseSize, winBaseY - wCloseSize / 2, wCloseSize, "rgba(255,255,255,0.5)", headerScale);
+
+ // Maximize (border box)
+ const wMaxSize = 9 * headerScale;
+ const wMaxX = winRightX - wCloseSize - winIconGap - wMaxSize;
+ const wMaxY = winBaseY - wMaxSize / 2;
+ ctx.save();
+ ctx.strokeStyle = "rgba(255,255,255,0.5)";
+ ctx.lineWidth = 2 * headerScale;
+ ctx.strokeRect(wMaxX, wMaxY, wMaxSize, wMaxSize);
+ ctx.restore();
+
+ // Minimize (line)
+ const wMinW = 12 * headerScale;
+ const wMinX = wMaxX - winIconGap - wMinW;
+ const wMinY = winBaseY - 0.6 * headerScale;
+ ctx.save();
+ ctx.fillStyle = "rgba(255,255,255,0.5)";
+ ctx.fillRect(wMinX, wMinY, wMinW, 1.2 * headerScale);
+ ctx.restore();
+
+ // Fin clip interior
+ ctx.restore();
+
+ return {
+ contentX: innerX,
+ contentY: innerY + tabBarH,
+ contentWidth: innerWidth,
+ contentHeight: innerHeight - tabBarH,
+ };
+}
+
+function drawWinX(ctx: CanvasRenderingContext2D, x: number, y: number, size: number, color: string, scale: number) {
+ ctx.save();
+ ctx.strokeStyle = color;
+ ctx.lineWidth = 2.5 * scale;
+ ctx.lineCap = "round";
+ ctx.beginPath();
+ ctx.moveTo(x, y);
+ ctx.lineTo(x + size, y + size);
+ ctx.moveTo(x + size, y);
+ ctx.lineTo(x, y + size);
+ ctx.stroke();
+ ctx.restore();
+}
\ No newline at end of file
diff --git a/lib/mockup-canvas/chrome-glass.ts b/lib/mockup-canvas/chrome-glass.ts
new file mode 100644
index 0000000..2ff3195
--- /dev/null
+++ b/lib/mockup-canvas/chrome-glass.ts
@@ -0,0 +1,279 @@
+/**
+ * Renderizado del mockup de Chrome Glass en Canvas
+ */
+
+import { hexToRgba } from "@/lib/utils";
+import { deriveSearchBg } from "@/lib/color.utils";
+import {
+ drawLockIcon,
+ drawRefreshIcon,
+ drawStarIcon,
+ drawThreeDotsIcon,
+} from "@/lib/canvas-icons";
+import type { MockupCanvasContext, MockupDrawResult } from "./types";
+import { drawRoundedRectPath, drawMockupShadow } from "./shared";
+import { drawBackIcon, drawForwardIcon } from "../canvas-icons/action-icons";
+
+export function drawChromeGlassMockup(context: MockupCanvasContext): MockupDrawResult {
+ const { ctx, x, y, width, height, config, cornerRadius, shadowBlur } = context;
+ const isDark = config.darkMode;
+ const frameColor = config.frameColor;
+ const url = config.url || "https://freeshot.dev";
+ const headerOpacity = config.headerOpacity ?? 100;
+ const headerScale = (config.headerScale || 100) / 100;
+
+ const glassPadding = 7;
+ const glassCornerRadius = cornerRadius;
+ const innerCornerRadius = Math.max(0, glassCornerRadius + 4);
+
+ // ── Dimensiones — idénticas a ChromeGlassMockup.tsx ──
+ const tabBarH = 32 * headerScale;
+ const tabH = 26 * headerScale;
+ const tabW = 180 * headerScale;
+ const tabPadX = 10 * headerScale;
+ const tabFontSz = 10.5 * headerScale;
+ const tabIconSz = 12 * headerScale;
+ const tabCloseS = 8 * headerScale;
+ const tabML = 8 * headerScale;
+ const tabMT = 3 * headerScale;
+ const tabRadius = 6 * headerScale;
+ const plusSize = 10 * headerScale;
+ const plusML = 6 * headerScale;
+ const winBtnW = 42 * headerScale;
+
+ const addrH = 32 * headerScale;
+ const addrPadX = 8 * headerScale;
+ const navBtnSz = 14 * headerScale;
+ const urlH = 26 * headerScale;
+ const urlFontSz = 11 * headerScale;
+ const urlPadX = 12 * headerScale;
+ const iconSz = 14 * headerScale;
+
+ const totalHeaderH = tabBarH + addrH;
+
+ // ── Colores — idénticos a ChromeGlassMockup.tsx ──
+ const bgColor = isDark ? "#1e1e1e" : "#ffffff";
+ const tabBarBg = frameColor;
+ const addressBg = frameColor;
+ const tabActiveBg = deriveSearchBg(frameColor);
+ const urlBarBgBase = deriveSearchBg(frameColor);
+ const addrBorder = isDark ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.12)";
+ const textColor = isDark ? "#9ca3af" : "#374151";
+ const iconColor = isDark ? "rgba(255,255,255,0.5)" : "rgba(55,65,81,0.7)";
+ const tabBorder = isDark ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.15)";
+
+ // 0. Sombra exterior
+ drawMockupShadow(ctx, x, y, width, height, glassCornerRadius, shadowBlur);
+
+ // 1. Área interior
+ const innerX = x + glassPadding;
+ const innerY = y + glassPadding;
+ const innerWidth = width - glassPadding * 2;
+ const innerHeight = height - glassPadding * 2;
+
+ // 2. Cáscara glass
+ ctx.save();
+ drawRoundedRectPath(ctx, x, y, width, height, glassCornerRadius);
+ const grad = ctx.createLinearGradient(x, y + height, x + width, y);
+ grad.addColorStop(0, "rgba(255,255,255,0.3)");
+ grad.addColorStop(1, "rgba(255,255,255,0.4)");
+ ctx.fillStyle = grad;
+ ctx.fill();
+ ctx.strokeStyle = "rgba(255,255,255,0.8)";
+ ctx.lineWidth = 0.75;
+ ctx.beginPath();
+ ctx.moveTo(x + glassCornerRadius, y + 0.375);
+ ctx.lineTo(x + width - glassCornerRadius, y + 0.375);
+ ctx.stroke();
+ ctx.beginPath();
+ ctx.moveTo(x + 0.375, y + glassCornerRadius);
+ ctx.lineTo(x + 0.375, y + height - glassCornerRadius);
+ ctx.stroke();
+ ctx.restore();
+
+ // 3. Clip al área interior
+ ctx.save();
+ drawRoundedRectPath(ctx, innerX, innerY, innerWidth, innerHeight, innerCornerRadius);
+ ctx.clip();
+
+ // ── FILA 1: Tab bar ──
+ ctx.fillStyle = hexToRgba(tabBarBg, headerOpacity);
+ ctx.fillRect(innerX, innerY, innerWidth, tabBarH);
+
+ // Tab activa
+ const tabX = innerX + tabML;
+ const tabY = innerY + tabMT;
+ ctx.save();
+ drawRoundedRectPath(ctx, tabX, tabY, tabW, tabH, tabRadius);
+ ctx.fillStyle = hexToRgba(tabActiveBg, headerOpacity);
+ ctx.fill();
+ ctx.strokeStyle = tabBorder;
+ ctx.lineWidth = 1;
+ ctx.beginPath();
+ ctx.moveTo(tabX + tabRadius, tabY);
+ ctx.lineTo(tabX + tabW - tabRadius, tabY);
+ ctx.stroke();
+ ctx.beginPath();
+ ctx.moveTo(tabX, tabY + tabRadius);
+ ctx.lineTo(tabX, tabY + tabH);
+ ctx.stroke();
+ ctx.beginPath();
+ ctx.moveTo(tabX + tabW, tabY + tabRadius);
+ ctx.lineTo(tabX + tabW, tabY + tabH);
+ ctx.stroke();
+ ctx.restore();
+
+ // Favicon
+ const favX = tabX + tabPadX + tabIconSz / 2;
+ const favY = tabY + tabH / 2;
+ ctx.save();
+ ctx.beginPath();
+ ctx.arc(favX, favY, tabIconSz / 2, 0, Math.PI * 2);
+ ctx.fillStyle = "#2563eb";
+ ctx.fill();
+ ctx.restore();
+
+ // Título tab
+ const titleX = favX + tabIconSz / 2 + 6 * headerScale;
+ const titleMaxW = tabW - tabPadX * 2 - tabIconSz - tabCloseS - 16 * headerScale;
+ ctx.save();
+ ctx.font = `${tabFontSz}px "Inter", -apple-system, BlinkMacSystemFont, sans-serif`;
+ ctx.fillStyle = textColor;
+ ctx.textAlign = "left";
+ ctx.textBaseline = "middle";
+ ctx.save();
+ ctx.beginPath();
+ ctx.rect(titleX, tabY, titleMaxW, tabH);
+ ctx.clip();
+ ctx.fillText(url.replace(/^https?:\/\//, "").substring(0, 28), titleX, favY);
+ ctx.restore();
+ ctx.restore();
+
+ // Close X (tabCloseS — más pequeño que favicon)
+ const cX = tabX + tabW - tabPadX - tabCloseS;
+ const cY = tabY + (tabH - tabCloseS) / 2;
+ ctx.save();
+ ctx.strokeStyle = iconColor;
+ ctx.globalAlpha = 0.7;
+ ctx.lineWidth = 1.5 * headerScale;
+ ctx.lineCap = "round";
+ ctx.beginPath();
+ ctx.moveTo(cX, cY); ctx.lineTo(cX + tabCloseS, cY + tabCloseS);
+ ctx.moveTo(cX + tabCloseS, cY); ctx.lineTo(cX, cY + tabCloseS);
+ ctx.stroke();
+ ctx.restore();
+
+ // New tab + (pequeño, centrado verticalmente)
+ const plusCX = tabX + tabW + plusML + plusSize;
+ const plusCY = innerY + tabBarH / 2;
+ ctx.save();
+ ctx.strokeStyle = iconColor;
+ ctx.globalAlpha = 0.7;
+ ctx.lineWidth = 2 * headerScale;
+ ctx.lineCap = "round";
+ ctx.beginPath();
+ ctx.moveTo(plusCX - plusSize / 2, plusCY);
+ ctx.lineTo(plusCX + plusSize / 2, plusCY);
+ ctx.moveTo(plusCX, plusCY - plusSize / 2);
+ ctx.lineTo(plusCX, plusCY + plusSize / 2);
+ ctx.stroke();
+ ctx.restore();
+
+ // Windows buttons — centrados en tabBarH
+ const wBaseX = innerX + innerWidth - winBtnW * 3;
+ ctx.save();
+ ctx.fillStyle = iconColor;
+ ctx.fillRect(wBaseX + (winBtnW - 10 * headerScale) / 2, innerY + tabBarH / 2 - 0.5 * headerScale, 10 * headerScale, 1 * headerScale);
+ ctx.restore();
+ const mSz = 9 * headerScale;
+ ctx.save();
+ ctx.strokeStyle = iconColor;
+ ctx.lineWidth = 1 * headerScale;
+ ctx.strokeRect(wBaseX + winBtnW + (winBtnW - mSz) / 2, innerY + (tabBarH - mSz) / 2, mSz, mSz);
+ ctx.restore();
+ const wcSz = 10 * headerScale;
+ const wcX = wBaseX + winBtnW * 2 + (winBtnW - wcSz) / 2;
+ const wcY = innerY + (tabBarH - wcSz) / 2;
+ ctx.save();
+ ctx.strokeStyle = iconColor;
+ ctx.lineWidth = 1.2 * headerScale;
+ ctx.lineCap = "round";
+ ctx.beginPath();
+ ctx.moveTo(wcX, wcY); ctx.lineTo(wcX + wcSz, wcY + wcSz);
+ ctx.moveTo(wcX + wcSz, wcY); ctx.lineTo(wcX, wcY + wcSz);
+ ctx.stroke();
+ ctx.restore();
+
+ // ── FILA 2: Address bar ──
+ const addrY = innerY + tabBarH;
+ ctx.fillStyle = hexToRgba(addressBg, headerOpacity);
+ ctx.fillRect(innerX, addrY, innerWidth, addrH);
+
+ ctx.save();
+ ctx.strokeStyle = addrBorder;
+ ctx.lineWidth = 1;
+ ctx.beginPath();
+ ctx.moveTo(innerX, addrY + addrH);
+ ctx.lineTo(innerX + innerWidth, addrY + addrH);
+ ctx.stroke();
+ ctx.restore();
+
+ // Nav: back, forward (dimmed), refresh
+ const navY = addrY + (addrH - navBtnSz) / 2;
+ let curX = innerX + addrPadX;
+ drawBackIcon(ctx, curX, navY, navBtnSz, iconColor);
+ curX += navBtnSz + 8 * headerScale;
+
+ drawForwardIcon(ctx, curX, navY, navBtnSz, iconColor, true);
+ curX += navBtnSz + 8 * headerScale;
+
+ drawRefreshIcon(ctx, curX, navY, navBtnSz, iconColor);
+ curX += navBtnSz + 12 * headerScale;
+
+ // URL bar (pill)
+ const rightIconsW = iconSz * 0.85 * 2 + 28 * headerScale;
+ const urlBarW = innerX + innerWidth - curX - rightIconsW - 8 * headerScale;
+ const urlBarX = curX;
+ const urlBarY = addrY + (addrH - urlH) / 2;
+
+ ctx.save();
+ drawRoundedRectPath(ctx, urlBarX, urlBarY, urlBarW, urlH, urlH / 2);
+ ctx.fillStyle = hexToRgba(urlBarBgBase, headerOpacity);
+ ctx.fill();
+ ctx.restore();
+
+ const lockSz = iconSz * 0.75;
+ drawLockIcon(ctx, urlBarX + urlPadX, urlBarY + (urlH - lockSz) / 2, lockSz, iconColor + "99");
+
+ ctx.save();
+ ctx.font = `${urlFontSz}px "Inter", -apple-system, BlinkMacSystemFont, sans-serif`;
+ ctx.fillStyle = textColor;
+ ctx.textAlign = "left";
+ ctx.textBaseline = "middle";
+ ctx.save();
+ ctx.beginPath();
+ ctx.rect(urlBarX + urlPadX + lockSz + 8 * headerScale, urlBarY, urlBarW - urlPadX * 2 - lockSz, urlH);
+ ctx.clip();
+ ctx.fillText(url.replace(/^https?:\/\//, "").substring(0, 50), urlBarX + urlPadX + lockSz + 8 * headerScale, urlBarY + urlH / 2);
+ ctx.restore();
+ ctx.restore();
+
+ // Star + dots
+ const rX = urlBarX + urlBarW + 8 * headerScale;
+ const rY = addrY + (addrH - iconSz * 0.85) / 2;
+ drawStarIcon(ctx, rX, rY, iconSz * 0.85, iconColor);
+ drawThreeDotsIcon(ctx, rX + iconSz * 0.85 + 8 * headerScale, rY, iconSz * 0.85, iconColor);
+
+ // ── Fondo contenido ──
+ ctx.fillStyle = bgColor;
+ ctx.fillRect(innerX, innerY + totalHeaderH, innerWidth, innerHeight - totalHeaderH);
+
+ ctx.restore(); // fin clip
+
+ return {
+ contentX: innerX,
+ contentY: innerY + totalHeaderH,
+ contentWidth: innerWidth,
+ contentHeight: innerHeight - totalHeaderH,
+ };
+}
\ No newline at end of file
diff --git a/lib/mockup-canvas/chrome.ts b/lib/mockup-canvas/chrome.ts
new file mode 100644
index 0000000..8c31a42
--- /dev/null
+++ b/lib/mockup-canvas/chrome.ts
@@ -0,0 +1,254 @@
+/**
+ * Renderizado del mockup de Chrome en Canvas
+ */
+
+import { hexToRgba } from "@/lib/utils";
+import { deriveSearchBg } from "@/lib/color.utils";
+import {
+ drawLockIcon,
+ drawRefreshIcon,
+ drawStarIcon,
+ drawThreeDotsIcon,
+} from "@/lib/canvas-icons";
+import type { MockupCanvasContext, MockupDrawResult } from "./types";
+import { drawRoundedRectPath, drawMockupShadow } from "./shared";
+import { drawBackIcon, drawForwardIcon } from "../canvas-icons/action-icons";
+
+export function drawChromeMockup(context: MockupCanvasContext): MockupDrawResult {
+ const { ctx, x, y, width, height, config, cornerRadius, shadowBlur } = context;
+ const isDark = config.darkMode;
+ const frameColor = config.frameColor;
+ const url = config.url || "https://freeshot.dev";
+ const headerOpacity = config.headerOpacity ?? 100;
+ const headerScale = (config.headerScale || 100) / 100;
+
+ // ── Dimensiones (deben coincidir con ChromeMockup.tsx) ──
+ const tabBarH = 32 * headerScale;
+ const tabH = 26 * headerScale;
+ const tabW = 180 * headerScale;
+ const tabPadX = 10 * headerScale;
+ const tabFontSz = 10.5 * headerScale;
+ const tabIconSz = 12 * headerScale;
+ const tabCloseS = 8 * headerScale; // close X — smaller
+ const tabML = 8 * headerScale;
+ const tabMT = 3 * headerScale; // top margin
+ const tabRadius = 6 * headerScale;
+ const plusSize = 10 * headerScale; // + icon — smaller
+ const plusML = 6 * headerScale;
+ const winBtnW = 42 * headerScale;
+
+ const addrH = 32 * headerScale;
+ const addrPadX = 8 * headerScale;
+ const navBtnSz = 14 * headerScale;
+ const urlH = 26 * headerScale;
+ const urlFontSz = 11 * headerScale;
+ const urlPadX = 12 * headerScale;
+ const iconSz = 14 * headerScale;
+
+ const totalHeaderH = tabBarH + addrH;
+
+ // ── Colores — todos derivan de frameColor igual que ChromeMockup.tsx ──
+ const bgColor = isDark ? "#1e1e1e" : "#ffffff";
+ const tabBarBg = frameColor;
+ const addressBg = frameColor;
+ const tabActiveBg = deriveSearchBg(frameColor);
+ const urlBarBgBase = deriveSearchBg(frameColor);
+ const addrBorder = isDark ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.12)";
+ const textColor = isDark ? "#9ca3af" : "#374151";
+ const iconColor = isDark ? "rgba(255,255,255,0.5)" : "rgba(55,65,81,0.7)";
+ const tabBorder = isDark ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.15)";
+
+ // 0. Sombra
+ drawMockupShadow(ctx, x, y, width, height, cornerRadius, shadowBlur);
+
+ // 1. Clip global con esquinas redondeadas
+ ctx.save();
+ drawRoundedRectPath(ctx, x, y, width, height, cornerRadius);
+ ctx.clip();
+
+ // ── FILA 1: Tab bar ──
+ ctx.fillStyle = hexToRgba(tabBarBg, headerOpacity);
+ ctx.fillRect(x, y, width, tabBarH);
+
+ // Tab activa (bottom-aligned)
+ const tabX = x + tabML;
+ const tabY = y + tabMT;
+ ctx.save();
+ drawRoundedRectPath(ctx, tabX, tabY, tabW, tabH, tabRadius);
+ ctx.fillStyle = hexToRgba(tabActiveBg, headerOpacity);
+ ctx.fill();
+ ctx.strokeStyle = tabBorder;
+ ctx.lineWidth = 1;
+ ctx.beginPath();
+ ctx.moveTo(tabX + tabRadius, tabY);
+ ctx.lineTo(tabX + tabW - tabRadius, tabY);
+ ctx.stroke();
+ ctx.beginPath();
+ ctx.moveTo(tabX, tabY + tabRadius);
+ ctx.lineTo(tabX, tabY + tabH);
+ ctx.stroke();
+ ctx.beginPath();
+ ctx.moveTo(tabX + tabW, tabY + tabRadius);
+ ctx.lineTo(tabX + tabW, tabY + tabH);
+ ctx.stroke();
+ ctx.restore();
+
+ // Favicon (círculo azul)
+ const favX = tabX + tabPadX + tabIconSz / 2;
+ const favY = tabY + tabH / 2;
+ ctx.save();
+ ctx.beginPath();
+ ctx.arc(favX, favY, tabIconSz / 2, 0, Math.PI * 2);
+ ctx.fillStyle = "#2563eb";
+ ctx.fill();
+ ctx.restore();
+
+ // Título tab
+ ctx.save();
+ ctx.font = `${tabFontSz}px "Inter", -apple-system, BlinkMacSystemFont, sans-serif`;
+ ctx.fillStyle = textColor;
+ ctx.textAlign = "left";
+ ctx.textBaseline = "middle";
+ const titleX = favX + tabIconSz / 2 + 8 * headerScale;
+ const titleMaxW = tabW - tabPadX * 2 - tabIconSz - 24 * headerScale;
+ ctx.save();
+ ctx.beginPath();
+ ctx.rect(titleX, tabY, titleMaxW, tabH);
+ ctx.clip();
+ ctx.fillText(url.replace(/^https?:\/\//, "").substring(0, 28), titleX, favY);
+ ctx.restore();
+ ctx.restore();
+
+ // Close X
+ const cSz = tabCloseS;
+ const cX = tabX + tabW - tabPadX - cSz;
+ const cY = tabY + (tabH - cSz) / 2;
+ ctx.save();
+ ctx.strokeStyle = iconColor;
+ ctx.lineWidth = 2.5 * headerScale;
+ ctx.lineCap = "round";
+ ctx.beginPath();
+ ctx.moveTo(cX, cY); ctx.lineTo(cX + cSz, cY + cSz);
+ ctx.moveTo(cX + cSz, cY); ctx.lineTo(cX, cY + cSz);
+ ctx.stroke();
+ ctx.restore();
+
+ // New tab +
+ const plusCX = tabX + tabW + plusML + plusSize * 0.9;
+ const plusCY = y + tabBarH / 2;
+ ctx.save();
+ ctx.strokeStyle = iconColor;
+ ctx.lineWidth = 3 * headerScale;
+ ctx.lineCap = "round";
+ ctx.beginPath();
+ ctx.moveTo(plusCX - plusSize / 2, plusCY);
+ ctx.lineTo(plusCX + plusSize / 2, plusCY);
+ ctx.moveTo(plusCX, plusCY - plusSize / 2);
+ ctx.lineTo(plusCX, plusCY + plusSize / 2);
+ ctx.stroke();
+ ctx.restore();
+
+ // Windows buttons — centrados verticalmente en tabBarH
+ const wBaseX = x + width - winBtnW * 3;
+ // Minimize
+ ctx.save();
+ ctx.fillStyle = iconColor;
+ ctx.fillRect(wBaseX + (winBtnW - 10 * headerScale) / 2, y + tabBarH / 2 - 0.5 * headerScale, 10 * headerScale, 1 * headerScale);
+ ctx.restore();
+ // Maximize
+ const mSz = 9 * headerScale;
+ ctx.save();
+ ctx.strokeStyle = iconColor;
+ ctx.lineWidth = 1 * headerScale;
+ ctx.strokeRect(wBaseX + winBtnW + (winBtnW - mSz) / 2, y + (tabBarH - mSz) / 2, mSz, mSz);
+ ctx.restore();
+ // Close X
+ const wcSz = 10 * headerScale;
+ const wcX = wBaseX + winBtnW * 2 + (winBtnW - wcSz) / 2;
+ const wcY = y + (tabBarH - wcSz) / 2;
+ ctx.save();
+ ctx.strokeStyle = iconColor;
+ ctx.lineWidth = 1.2 * headerScale;
+ ctx.lineCap = "round";
+ ctx.beginPath();
+ ctx.moveTo(wcX, wcY); ctx.lineTo(wcX + wcSz, wcY + wcSz);
+ ctx.moveTo(wcX + wcSz, wcY); ctx.lineTo(wcX, wcY + wcSz);
+ ctx.stroke();
+ ctx.restore();
+
+ // ── FILA 2: Address bar ──
+ const addrY = y + tabBarH;
+ ctx.fillStyle = hexToRgba(addressBg, headerOpacity);
+ ctx.fillRect(x, addrY, width, addrH);
+
+ // Separador inferior
+ ctx.save();
+ ctx.strokeStyle = addrBorder;
+ ctx.lineWidth = 1;
+ ctx.beginPath();
+ ctx.moveTo(x, addrY + addrH);
+ ctx.lineTo(x + width, addrY + addrH);
+ ctx.stroke();
+ ctx.restore();
+
+ // Nav: back, forward (dimmed), refresh
+ const navY = addrY + (addrH - navBtnSz) / 2;
+ let curX = x + addrPadX;
+
+ drawBackIcon(ctx, curX, navY, navBtnSz, iconColor);
+ curX += navBtnSz + 8 * headerScale;
+
+ drawForwardIcon(ctx, curX, navY, navBtnSz, iconColor, true);
+ curX += navBtnSz + 8 * headerScale;
+
+ // Refresh
+ drawRefreshIcon(ctx, curX, navY, navBtnSz, iconColor);
+ curX += navBtnSz + 12 * headerScale;
+
+ // URL bar (pill)
+ const rightIconsW = iconSz * 0.85 * 2 + 28 * headerScale;
+ const urlBarW = x + width - curX - rightIconsW - 8 * headerScale;
+ const urlBarX = curX;
+ const urlBarY = addrY + (addrH - urlH) / 2;
+
+ ctx.save();
+ drawRoundedRectPath(ctx, urlBarX, urlBarY, urlBarW, urlH, urlH / 2);
+ ctx.fillStyle = hexToRgba(urlBarBgBase, headerOpacity);
+ ctx.fill();
+ ctx.restore();
+
+ const lockSz = iconSz * 0.75;
+ drawLockIcon(ctx, urlBarX + urlPadX, urlBarY + (urlH - lockSz) / 2, lockSz, iconColor + "99");
+
+ ctx.save();
+ ctx.font = `${urlFontSz}px "Inter", -apple-system, BlinkMacSystemFont, sans-serif`;
+ ctx.fillStyle = textColor;
+ ctx.textAlign = "left";
+ ctx.textBaseline = "middle";
+ ctx.save();
+ ctx.beginPath();
+ ctx.rect(urlBarX + urlPadX + lockSz + 8 * headerScale, urlBarY, urlBarW - urlPadX * 2 - lockSz, urlH);
+ ctx.clip();
+ ctx.fillText(url.replace(/^https?:\/\//, "").substring(0, 50), urlBarX + urlPadX + lockSz + 8 * headerScale, urlBarY + urlH / 2);
+ ctx.restore();
+ ctx.restore();
+
+ // Star + dots
+ const rX = urlBarX + urlBarW + 8 * headerScale;
+ const rY = addrY + (addrH - iconSz * 0.85) / 2;
+ drawStarIcon(ctx, rX, rY, iconSz * 0.85, iconColor);
+ drawThreeDotsIcon(ctx, rX + iconSz * 0.85 + 8 * headerScale, rY, iconSz * 0.85, iconColor);
+
+ // ── Fondo contenido ──
+ ctx.fillStyle = bgColor;
+ ctx.fillRect(x, y + totalHeaderH, width, height - totalHeaderH);
+
+ ctx.restore(); // fin clip global
+
+ return {
+ contentX: x,
+ contentY: y + totalHeaderH,
+ contentWidth: width,
+ contentHeight: height - totalHeaderH,
+ };
+}
\ No newline at end of file
diff --git a/lib/mockup-canvas/glass-ui-container.ts b/lib/mockup-canvas/glass-ui-container.ts
new file mode 100644
index 0000000..96f7ee3
--- /dev/null
+++ b/lib/mockup-canvas/glass-ui-container.ts
@@ -0,0 +1,60 @@
+/**
+ * Renderizado del mockup GlassUIContainer en Canvas
+ */
+
+import type { MockupCanvasContext, MockupDrawResult } from "./types";
+import { drawRoundedRectPath, drawMockupShadow } from "./shared";
+
+export function drawGlassUIContainerMockup(context: MockupCanvasContext): MockupDrawResult {
+ const { ctx, x, y, width, height, cornerRadius, shadowBlur } = context;
+
+ const glassPadding = 12;
+ const glassCornerRadius = cornerRadius;
+ const innerCornerRadius = Math.max(0, glassCornerRadius + 4 );
+
+ // 0. Sombra exterior
+ drawMockupShadow(ctx, x, y, width, height, glassCornerRadius, shadowBlur);
+
+ // 1. Cáscara glass (gradiente 45deg como .glass-border)
+ ctx.save();
+ drawRoundedRectPath(ctx, x, y, width, height, glassCornerRadius);
+ const grad = ctx.createLinearGradient(x, y + height, x + width, y); // 45deg
+ grad.addColorStop(0, "rgba(255,255,255,0.3)");
+ grad.addColorStop(1, "rgba(255,255,255,0.4)");
+ ctx.fillStyle = grad;
+ ctx.fill();
+
+ // border-top: 0.75px solid rgba(255,255,255,0.8)
+ ctx.strokeStyle = "rgba(255,255,255)";
+ ctx.lineWidth = 0.5;
+ ctx.beginPath();
+ ctx.moveTo(x + glassCornerRadius, y + 0.375);
+ ctx.lineTo(x + width - glassCornerRadius, y + 0.375);
+ ctx.stroke();
+
+ // border-left: 0.75px)
+ ctx.beginPath();
+ ctx.moveTo(x + 0.375, y + glassCornerRadius);
+ ctx.lineTo(x + 0.375, y + height - glassCornerRadius);
+ ctx.stroke();
+
+ ctx.restore();
+
+ // 2. Área interior — clip para que el contenido (video) quede dentro
+ const innerX = x + glassPadding;
+ const innerY = y + glassPadding;
+ const innerWidth = width - glassPadding * 2;
+ const innerHeight = height - glassPadding * 2;
+
+ ctx.save();
+ drawRoundedRectPath(ctx, innerX, innerY, innerWidth, innerHeight, innerCornerRadius);
+ ctx.clip();
+ ctx.restore();
+
+ return {
+ contentX: innerX,
+ contentY: innerY,
+ contentWidth: innerWidth,
+ contentHeight: innerHeight,
+ };
+}
\ No newline at end of file
diff --git a/lib/mockup-canvas/index.ts b/lib/mockup-canvas/index.ts
new file mode 100644
index 0000000..fcfcec9
--- /dev/null
+++ b/lib/mockup-canvas/index.ts
@@ -0,0 +1,10 @@
+/**
+ * Exportaciones principales para el renderizado de mockups en Canvas
+ */
+
+export * from './types';
+export * from './shared';
+export { drawMacosMockup } from './macos';
+export { drawMacosGlassMockup } from './macos-glass';
+export { drawVSCodeMockup } from './vscode';
+export { drawIPhoneSlimMockup } from './iphone-slim';
diff --git a/lib/mockup-canvas/iphone-slim.ts b/lib/mockup-canvas/iphone-slim.ts
new file mode 100644
index 0000000..389940b
--- /dev/null
+++ b/lib/mockup-canvas/iphone-slim.ts
@@ -0,0 +1,129 @@
+/**
+ * Renderizado del mockup de iPhone Slim en Canvas
+ */
+
+import { hexToRgba } from "@/lib/utils";
+import {
+ drawWifiIcon,
+ drawSignalBars,
+ drawBattery,
+} from "@/lib/canvas-icons";
+import type { MockupCanvasContext, MockupDrawResult } from "./types";
+import { drawRoundedRectPath, drawMockupShadow } from "./shared";
+
+/**
+ * Dibuja el mockup de iPhone Slim en canvas
+ */
+export function drawIPhoneSlimMockup(context: MockupCanvasContext): MockupDrawResult {
+ const { ctx, x, y, width, height, config, cornerRadius, shadowBlur } = context;
+ const isDark = config.darkMode;
+ const frameColor = config.frameColor;
+ const headerOpacity = config.headerOpacity ?? 100;
+
+ // Escalado proporcional
+ const headerScale = (config.headerScale || 100) / 100;
+
+ // Valores base escalados
+ const framePadding = 6 * headerScale;
+ const statusBarHeight = 28 * headerScale;
+ const dynamicIslandHeight = 18 * headerScale;
+ const dynamicIslandTop = 6 * headerScale;
+ const homeIndicatorHeight = 3 * headerScale;
+ const homeIndicatorBottom = 6 * headerScale;
+
+ // Colores
+ const borderColor = isDark ? "#404040" : "#525252";
+ const statusBarText = isDark ? "#ffffff" : "#000000";
+
+ // 0. Dibujar sombra exterior del mockup (sin bloquear el fondo)
+ const outerRadius = cornerRadius * 2.5;
+ drawMockupShadow(ctx, x, y, width, height, outerRadius, shadowBlur);
+
+ // 1. Dibujar marco exterior del dispositivo
+ ctx.save();
+ drawRoundedRectPath(ctx, x, y, width, height, outerRadius);
+ ctx.fillStyle = hexToRgba(frameColor, headerOpacity);
+ ctx.fill();
+ ctx.strokeStyle = borderColor;
+ ctx.lineWidth = 1;
+ ctx.stroke();
+ ctx.restore();
+
+ // 2. Dibujar pantalla interior
+ const screenX = x + framePadding;
+ const screenY = y + framePadding;
+ const screenWidth = width - framePadding * 2;
+ const screenHeight = height - framePadding * 2;
+ const innerRadius = cornerRadius * 2.2;
+
+ ctx.save();
+ drawRoundedRectPath(ctx, screenX, screenY, screenWidth, screenHeight, innerRadius);
+ ctx.fillStyle = "#000000";
+ ctx.fill();
+ ctx.strokeStyle = "#000000";
+ ctx.lineWidth = 1;
+ ctx.stroke();
+ ctx.restore();
+
+ // 3. Dibujar Dynamic Island
+ const dynamicIslandWidth = screenWidth * 0.28;
+ const dynamicIslandX = screenX + (screenWidth - dynamicIslandWidth) / 2;
+ const dynamicIslandY = screenY + dynamicIslandTop;
+
+ ctx.save();
+ drawRoundedRectPath(ctx, dynamicIslandX, dynamicIslandY, dynamicIslandWidth, dynamicIslandHeight, dynamicIslandHeight / 2);
+ ctx.fillStyle = "#000000";
+ ctx.fill();
+ ctx.restore();
+
+ // 4. Dibujar Status Bar
+ const timeFontSize = 10 * headerScale;
+ const timeX = screenX + 24 * headerScale;
+ const timeY = screenY + statusBarHeight / 2 + 2;
+
+ ctx.save();
+ ctx.font = `bold ${timeFontSize}px "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif`;
+ ctx.fillStyle = statusBarText;
+ ctx.textBaseline = "middle";
+ ctx.fillText("9:41", timeX, timeY);
+ ctx.restore();
+
+ // Indicadores de señal, wifi, batería (derecha) con iconos reales
+ const indicatorsY = timeY - 5 * headerScale;
+ const iconStatusSize = 12 * headerScale;
+ const batteryWidth = 20 * headerScale;
+ const batteryHeight = 10 * headerScale;
+
+ // Batería (derecha)
+ const batteryX = screenX + screenWidth - 24 * headerScale - batteryWidth;
+ const batteryY = timeY - batteryHeight / 2;
+ drawBattery(ctx, batteryX, batteryY, batteryWidth, batteryHeight, statusBarText, 0.9);
+
+ // WiFi (centro-derecha)
+ const wifiX = batteryX - iconStatusSize - 6 * headerScale;
+ const wifiY = indicatorsY;
+ drawWifiIcon(ctx, wifiX, wifiY, iconStatusSize, statusBarText);
+
+ // Barras de señal (izquierda del wifi)
+ const signalX = wifiX - iconStatusSize - 4 * headerScale;
+ const signalY = indicatorsY;
+ drawSignalBars(ctx, signalX, signalY, iconStatusSize, statusBarText);
+
+ // 5. Dibujar Home Indicator
+ const homeIndicatorWidth = screenWidth * 0.35;
+ const homeIndicatorX = screenX + (screenWidth - homeIndicatorWidth) / 2;
+ const homeIndicatorY = screenY + screenHeight - homeIndicatorBottom - homeIndicatorHeight;
+
+ ctx.save();
+ drawRoundedRectPath(ctx, homeIndicatorX, homeIndicatorY, homeIndicatorWidth, homeIndicatorHeight, homeIndicatorHeight / 2);
+ ctx.fillStyle = `${statusBarText}15`;
+ ctx.fill();
+ ctx.restore();
+
+ return {
+ contentX: screenX,
+ contentY: screenY + statusBarHeight,
+ contentWidth: screenWidth,
+ contentHeight: screenHeight - statusBarHeight - homeIndicatorBottom - homeIndicatorHeight,
+ };
+}
diff --git a/lib/mockup-canvas/macos-container-glass.ts b/lib/mockup-canvas/macos-container-glass.ts
new file mode 100644
index 0000000..46c2539
--- /dev/null
+++ b/lib/mockup-canvas/macos-container-glass.ts
@@ -0,0 +1,79 @@
+/**
+ * Renderizado del mockup MacosContainerGlass en Canvas
+ */
+
+import type { MockupCanvasContext, MockupDrawResult } from "./types";
+import { drawRoundedRectPath, drawMockupShadow } from "./shared";
+
+export function drawMacosContainerGlassMockup(context: MockupCanvasContext): MockupDrawResult {
+ const { ctx, x, y, width, height, config, cornerRadius, shadowBlur } = context;
+
+ const glassPadding = 12;
+ const glassCornerRadius = cornerRadius;
+ const innerCornerRadius = Math.max(0, glassCornerRadius + 4);
+
+ // 0. Sombra exterior
+ drawMockupShadow(ctx, x, y, width, height, glassCornerRadius, shadowBlur);
+
+ // 1. Cáscara glass (gradiente 45deg como .glass-border)
+ ctx.save();
+ drawRoundedRectPath(ctx, x, y, width, height, glassCornerRadius);
+ const grad = ctx.createLinearGradient(x, y + height, x + width, y); // 45deg
+ grad.addColorStop(0, "rgba(255,255,255,0.3)");
+ grad.addColorStop(1, "rgba(255,255,255,0.4)");
+ ctx.fillStyle = grad;
+ ctx.fill();
+
+ // border-top: 0.75px solid rgba(255,255,255,0.8)
+ ctx.strokeStyle = "rgba(255,255,255)";
+ ctx.lineWidth = 0.5;
+ ctx.beginPath();
+ ctx.moveTo(x + glassCornerRadius, y + 0.375);
+ ctx.lineTo(x + width - glassCornerRadius, y + 0.375);
+ ctx.stroke();
+
+ // border-left: 0.75px)
+ ctx.beginPath();
+ ctx.moveTo(x + 0.375, y + glassCornerRadius);
+ ctx.lineTo(x + 0.375, y + height - glassCornerRadius);
+ ctx.stroke();
+
+ ctx.restore();
+
+ // 2. Área interior — clip para que el contenido (video) quede dentro
+ const innerX = x + glassPadding;
+ const innerY = y + glassPadding;
+ const innerWidth = width - glassPadding * 2;
+ const innerHeight = height - glassPadding * 2;
+
+ ctx.save();
+ drawRoundedRectPath(ctx, innerX, innerY, innerWidth, innerHeight, innerCornerRadius);
+ ctx.clip();
+ ctx.restore();
+
+ // 3. Dibujar los 3 puntos del mini-header (igual que el React)
+ const headerScale = (config.headerScale || 100) / 100;
+ const dotSize = 8 * headerScale;
+ const dotGap = 8 * headerScale;
+ const headerPaddingX = 4 * headerScale;
+ const headerPaddingB = 8 * headerScale;
+ const headerHeight = headerPaddingX + dotSize + headerPaddingB;
+
+ const dotCenterY = innerY + headerPaddingX + dotSize / 2;
+ [0, 1, 2].forEach((i) => {
+ const dotCenterX = innerX + headerPaddingX + i * (dotSize + dotGap) + dotSize / 2;
+ ctx.save();
+ ctx.beginPath();
+ ctx.arc(dotCenterX, dotCenterY, dotSize / 2, 0, Math.PI * 2);
+ ctx.fillStyle = "rgba(255,255,255,0.8)";
+ ctx.fill();
+ ctx.restore();
+ });
+
+ return {
+ contentX: innerX,
+ contentY: innerY + headerHeight,
+ contentWidth: innerWidth,
+ contentHeight: innerHeight - headerHeight,
+ };
+}
\ No newline at end of file
diff --git a/lib/mockup-canvas/macos-dark-ide.ts b/lib/mockup-canvas/macos-dark-ide.ts
new file mode 100644
index 0000000..5cb3e6f
--- /dev/null
+++ b/lib/mockup-canvas/macos-dark-ide.ts
@@ -0,0 +1,176 @@
+/**
+ * Renderizado del mockup de MacosDarkIde en Canvas
+ */
+
+import { hexToRgba } from "@/lib/utils";
+import { deriveSearchBg } from "@/lib/color.utils";
+import { drawMagnifyIcon } from "@/lib/canvas-icons";
+import type { MockupCanvasContext, MockupDrawResult } from "./types";
+import { drawRoundedRectPath, drawMockupShadow } from "./shared";
+
+export function drawMacosDarkIdeMockup(context: MockupCanvasContext): MockupDrawResult {
+ const { ctx, x, y, width, height, config, cornerRadius, shadowBlur } = context;
+ const isDark = config.darkMode;
+ const frameColor = config.frameColor;
+ const url = config.url || "freeshot";
+ const headerOpacity = config.headerOpacity ?? 100;
+ const headerScale = (config.headerScale || 100) / 100;
+
+ // ── Dimensiones — idénticas a MacosDarkIdeMockup.tsx ──
+ const headerHeight = 35 * headerScale;
+ const menuFontSize = 12 * headerScale;
+ const menuPaddingX = 8 * headerScale;
+ const menuPaddingY = 4 * headerScale;
+ const headerPaddingX = 12 * headerScale;
+ const searchHeight = 22 * headerScale;
+ const searchIconSize = 10 * headerScale;
+ const searchFontSize = 11 * headerScale;
+ const searchPaddingX = 8 * headerScale;
+ const searchGap = 6 * headerScale;
+ const dotSize = 10 * headerScale;
+ const dotGap = 6 * headerScale;
+
+ // ── Colores ──
+ const bgColor = isDark ? "#1e1e1e" : "#f3f3f3";
+ const borderColor = isDark ? "rgba(255,255,255,0.05)" : "rgba(0,0,0,0.1)";
+ const textColor = isDark ? "#cccccc" : "#333333";
+ const menuColor = isDark ? "#999999" : "#555555";
+ const searchBorder = isDark ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.15)";
+ const searchBgBase = deriveSearchBg(frameColor);
+ const hamburgerColor = isDark ? "rgba(163,163,163,0.8)" : "rgba(100,100,100,0.8)";
+
+ // 0. Sombra
+ drawMockupShadow(ctx, x, y, width, height, cornerRadius, shadowBlur);
+
+ // 1. Fondo contenido
+ ctx.save();
+ ctx.beginPath();
+ ctx.moveTo(x, y + headerHeight);
+ ctx.lineTo(x + width, y + headerHeight);
+ ctx.lineTo(x + width, y + height - cornerRadius);
+ ctx.quadraticCurveTo(x + width, y + height, x + width - cornerRadius, y + height);
+ ctx.lineTo(x + cornerRadius, y + height);
+ ctx.quadraticCurveTo(x, y + height, x, y + height - cornerRadius);
+ ctx.closePath();
+ ctx.fillStyle = bgColor;
+ ctx.fill();
+ ctx.restore();
+
+ // 2. Header
+ ctx.save();
+ ctx.beginPath();
+ ctx.moveTo(x + cornerRadius, y);
+ ctx.lineTo(x + width - cornerRadius, y);
+ ctx.quadraticCurveTo(x + width, y, x + width, y + cornerRadius);
+ ctx.lineTo(x + width, y + headerHeight);
+ ctx.lineTo(x, y + headerHeight);
+ ctx.lineTo(x, y + cornerRadius);
+ ctx.quadraticCurveTo(x, y, x + cornerRadius, y);
+ ctx.closePath();
+ ctx.fillStyle = hexToRgba(frameColor, headerOpacity);
+ ctx.fill();
+ ctx.restore();
+
+ // 3. Borde inferior header
+ ctx.save();
+ ctx.strokeStyle = borderColor;
+ ctx.lineWidth = 1;
+ ctx.beginPath();
+ ctx.moveTo(x, y + headerHeight);
+ ctx.lineTo(x + width, y + headerHeight);
+ ctx.stroke();
+ ctx.restore();
+
+ const midY = y + headerHeight / 2;
+
+ // ── LEFT: macOS dots ──
+ const dotsStartX = x + headerPaddingX;
+ const dotColors = [
+ { fill: "#ff5f57", stroke: "#e0443e" },
+ { fill: "#febc2e", stroke: "#d89f24" },
+ { fill: "#28c840", stroke: "#1aab29" },
+ ];
+ dotColors.forEach(({ fill, stroke }, i) => {
+ const cx = dotsStartX + i * (dotSize + dotGap) + dotSize / 2;
+ ctx.save();
+ ctx.beginPath();
+ ctx.arc(cx, midY, dotSize / 2, 0, Math.PI * 2);
+ ctx.fillStyle = fill;
+ ctx.fill();
+ ctx.strokeStyle = stroke;
+ ctx.lineWidth = 1;
+ ctx.stroke();
+ ctx.restore();
+ });
+
+ // ── Menu items ──
+ const menuItems = ["File", "Edit", "Selection", "View", "Go"];
+ const dotsEndX = dotsStartX + 3 * dotSize + 2 * dotGap + menuPaddingX * 2;
+ let menuX = dotsEndX;
+
+ ctx.save();
+ ctx.font = `${menuFontSize}px "Inter", -apple-system, BlinkMacSystemFont, sans-serif`;
+ ctx.fillStyle = menuColor;
+ ctx.textBaseline = "middle";
+ ctx.textAlign = "left";
+ menuItems.forEach((item) => {
+ ctx.fillText(item, menuX + menuPaddingX, midY);
+ menuX += ctx.measureText(item).width + menuPaddingX * 2;
+ });
+ ctx.restore();
+
+ // ── CENTER: Search bar ──
+ const searchWidth = Math.min(width * 0.4, 400 * headerScale);
+ const searchX = x + (width - searchWidth) / 2;
+ const searchY = y + (headerHeight - searchHeight) / 2;
+
+ ctx.save();
+ drawRoundedRectPath(ctx, searchX, searchY, searchWidth, searchHeight, 4 * headerScale);
+ ctx.fillStyle = hexToRgba(searchBgBase, headerOpacity);
+ ctx.fill();
+ ctx.strokeStyle = searchBorder;
+ ctx.lineWidth = 1;
+ ctx.stroke();
+ ctx.restore();
+
+ // Medir texto para centrar el grupo [icono + gap + texto]
+ ctx.save();
+ ctx.font = `${searchFontSize}px "Inter", -apple-system, BlinkMacSystemFont, sans-serif`;
+ const displayUrl = url.substring(0, 30);
+ const textW = ctx.measureText(displayUrl).width;
+ const groupW = searchIconSize + searchGap + textW;
+ const groupStartX = searchX + (searchWidth - groupW) / 2;
+
+ // Lupa
+ drawMagnifyIcon(ctx, groupStartX, searchY + (searchHeight - searchIconSize) / 2, searchIconSize, textColor + "80");
+
+ // Texto
+ ctx.fillStyle = textColor;
+ ctx.textAlign = "left";
+ ctx.textBaseline = "middle";
+ ctx.fillText(displayUrl, groupStartX + searchIconSize + searchGap, searchY + searchHeight / 2);
+ ctx.restore();
+
+ // ── RIGHT: hamburger ──
+ const hamW = 14 * headerScale;
+ const hamH = 1.5 * headerScale;
+ const hamGap = 3.5 * headerScale;
+ const hamX = x + width - headerPaddingX - hamW;
+ const hamY0 = midY - hamGap - hamH / 2;
+
+ ctx.save();
+ ctx.fillStyle = hamburgerColor;
+ ctx.beginPath();
+ ctx.roundRect(hamX, hamY0, hamW, hamH, hamH / 2);
+ ctx.roundRect(hamX, hamY0 + hamGap, hamW, hamH, hamH / 2);
+ ctx.roundRect(hamX, hamY0 + hamGap * 2, hamW, hamH, hamH / 2);
+ ctx.fill();
+ ctx.restore();
+
+ return {
+ contentX: x,
+ contentY: y + headerHeight,
+ contentWidth: width,
+ contentHeight: height - headerHeight,
+ };
+}
\ No newline at end of file
diff --git a/lib/mockup-canvas/macos-ghost-glass.ts b/lib/mockup-canvas/macos-ghost-glass.ts
new file mode 100644
index 0000000..f6df034
--- /dev/null
+++ b/lib/mockup-canvas/macos-ghost-glass.ts
@@ -0,0 +1,184 @@
+/**
+ * Renderizado del mockup de macOS Ghost Glass en Canvas
+ */
+
+import { hexToRgba } from "@/lib/utils";
+import { deriveSearchBg } from "@/lib/color.utils";
+import {
+ drawChevronLeft,
+ drawChevronRight,
+ drawMenuIcon,
+ drawLockIcon,
+ drawRefreshIcon,
+ drawDownloadIcon,
+ drawUploadIcon,
+ drawCopyIcon,
+ drawPlusIcon,
+} from "@/lib/canvas-icons";
+import type { MockupCanvasContext, MockupDrawResult } from "./types";
+import { drawRoundedRectPath, drawMockupShadow } from "./shared";
+
+export function drawMacosGhostGlassMockup(context: MockupCanvasContext): MockupDrawResult {
+ const { ctx, x, y, width, height, config, cornerRadius, shadowBlur } = context;
+ const isDark = config.darkMode;
+ const frameColor = config.frameColor;
+ const url = config.url || "https://freeshot.dev";
+ const headerOpacity = config.headerOpacity ?? 100;
+
+ const headerScale = (config.headerScale || 100) / 100;
+
+ const glassPadding = 12;
+ const glassCornerRadius = cornerRadius;
+
+ const headerHeight = 36 * headerScale;
+ const buttonSize = 10 * headerScale;
+ const buttonGap = 6 * headerScale;
+ const buttonLeftPadding = 12 * headerScale;
+ const urlBarHeight = 18 * headerScale;
+ const fontSize = 14 * headerScale;
+ const iconSize = 14 * headerScale;
+
+ const bgColor = isDark ? "#262626" : "#f9f9f9";
+ const borderColor = isDark ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.1)";
+ const textColor = isDark ? "#cccccc" : "#555555";
+ const iconColor = isDark ? "rgba(255,255,255,0.5)" : "rgba(0,0,0,0.4)";
+ // Ghost buttons: adapt opacity to dark/light
+ const ghostButtonStroke = isDark ? "rgba(180,180,180,0.4)" : "rgba(150,150,150,0.6)";
+
+ // 0. Sombra exterior
+ drawMockupShadow(ctx, x, y, width, height, glassCornerRadius, shadowBlur);
+
+ // 1. Cáscara glass — linear-gradient(45deg, 0.3→0.4) + bordes top/left
+ ctx.save();
+ drawRoundedRectPath(ctx, x, y, width, height, glassCornerRadius);
+ const grad = ctx.createLinearGradient(x, y + height, x + width, y);
+ grad.addColorStop(0, "rgba(255,255,255,0.3)");
+ grad.addColorStop(1, "rgba(255,255,255,0.4)");
+ ctx.fillStyle = grad;
+ ctx.fill();
+
+ ctx.strokeStyle = "rgba(255,255,255)";
+ ctx.lineWidth = 0.5;
+ ctx.beginPath();
+ ctx.moveTo(x + glassCornerRadius, y + 0.375);
+ ctx.lineTo(x + width - glassCornerRadius, y + 0.375);
+ ctx.stroke();
+ ctx.beginPath();
+ ctx.moveTo(x + 0.375, y + glassCornerRadius);
+ ctx.lineTo(x + 0.375, y + height - glassCornerRadius);
+ ctx.stroke();
+ ctx.restore();
+
+ // 2. Área interior (padding: 12px)
+ const innerX = x + glassPadding;
+ const innerY = y + glassPadding;
+ const innerWidth = width - glassPadding * 2;
+ const innerHeight = height - glassPadding * 2;
+ const innerCornerRadius = Math.max(0, glassCornerRadius + 4 );
+
+ // 3. Clip al área interior
+ ctx.save();
+ drawRoundedRectPath(ctx, innerX, innerY, innerWidth, innerHeight, innerCornerRadius);
+ ctx.clip();
+
+ // 4. Fondo del contenido
+ ctx.fillStyle = bgColor;
+ ctx.fillRect(innerX, innerY + headerHeight, innerWidth, innerHeight - headerHeight);
+
+ // 5. Header con frameColor
+ ctx.save();
+ ctx.beginPath();
+ ctx.moveTo(innerX + innerCornerRadius, innerY);
+ ctx.lineTo(innerX + innerWidth - innerCornerRadius, innerY);
+ ctx.quadraticCurveTo(innerX + innerWidth, innerY, innerX + innerWidth, innerY + innerCornerRadius);
+ ctx.lineTo(innerX + innerWidth, innerY + headerHeight);
+ ctx.lineTo(innerX, innerY + headerHeight);
+ ctx.lineTo(innerX, innerY + innerCornerRadius);
+ ctx.quadraticCurveTo(innerX, innerY, innerX + innerCornerRadius, innerY);
+ ctx.closePath();
+ ctx.fillStyle = hexToRgba(frameColor, headerOpacity);
+ ctx.fill();
+ ctx.restore();
+
+ // 6. Línea separadora
+ ctx.save();
+ ctx.strokeStyle = borderColor;
+ ctx.lineWidth = 1;
+ ctx.beginPath();
+ ctx.moveTo(innerX, innerY + headerHeight);
+ ctx.lineTo(innerX + innerWidth, innerY + headerHeight);
+ ctx.stroke();
+ ctx.restore();
+
+ // 7. Botones ghost
+ const buttonY = innerY + (headerHeight - buttonSize) / 2;
+ [0, 1, 2].forEach((i) => {
+ const btnX = innerX + buttonLeftPadding + i * (buttonSize + buttonGap);
+ ctx.save();
+ ctx.beginPath();
+ ctx.arc(btnX + buttonSize / 2, buttonY + buttonSize / 2, buttonSize / 2, 0, Math.PI * 2);
+ ctx.strokeStyle = ghostButtonStroke;
+ ctx.lineWidth = 0.75;
+ ctx.stroke();
+ ctx.restore();
+ });
+
+ // 8. Iconos navegación izquierda
+ const navStartX = innerX + buttonLeftPadding + 3 * (buttonSize + buttonGap) + buttonGap * 2;
+ const iconY = innerY + (headerHeight - iconSize) / 2;
+ const navGap = 6 * headerScale;
+
+ drawMenuIcon(ctx, navStartX, iconY, iconSize, iconColor);
+ const chevronStartX = navStartX + iconSize + navGap;
+ drawChevronLeft(ctx, chevronStartX, iconY, iconSize, iconColor);
+ drawChevronRight(ctx, chevronStartX + iconSize + 6 * headerScale, iconY, iconSize, iconColor);
+
+ // 9. URL bar centrada
+ const maxUrlBarWidth = 576 * headerScale;
+ const urlBarWidth = Math.min(innerWidth * 0.5, maxUrlBarWidth);
+ const urlBarX = innerX + (innerWidth - urlBarWidth) / 2;
+ const urlBarY = innerY + (headerHeight - urlBarHeight) / 2;
+ const urlBarPadding = 8 * headerScale;
+ const urlBarBgBase = deriveSearchBg(frameColor);
+
+ ctx.save();
+ drawRoundedRectPath(ctx, urlBarX, urlBarY, urlBarWidth, urlBarHeight, 4 * headerScale);
+ ctx.fillStyle = hexToRgba(urlBarBgBase, headerOpacity);
+ ctx.fill();
+ ctx.restore();
+
+ drawLockIcon(ctx, urlBarX + urlBarPadding, urlBarY + (urlBarHeight - buttonSize) / 2, buttonSize, iconColor + "99");
+
+ ctx.save();
+ ctx.font = `${fontSize}px "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif`;
+ ctx.fillStyle = textColor;
+ ctx.textAlign = "center";
+ ctx.textBaseline = "middle";
+ ctx.fillText(url.replace(/^https?:\/\//, "").substring(0, 40), urlBarX + urlBarWidth / 2, urlBarY + urlBarHeight / 2);
+ ctx.restore();
+
+ drawRefreshIcon(ctx, urlBarX + urlBarWidth - urlBarPadding - buttonSize, urlBarY + (urlBarHeight - buttonSize) / 2, buttonSize, iconColor + "99");
+
+ // 10. Iconos derecha
+ const iconsRightPadding = 12 * headerScale;
+ const iconGap = 10 * headerScale;
+ const copyIconX = innerX + innerWidth - iconsRightPadding - iconSize;
+ const plusIconX = copyIconX - iconSize - iconGap;
+ const uploadIconX = plusIconX - iconSize - iconGap;
+ const downloadIconX = uploadIconX - iconSize - iconGap;
+
+ drawCopyIcon(ctx, copyIconX, iconY, iconSize, iconColor);
+ drawPlusIcon(ctx, plusIconX, iconY, iconSize, iconColor);
+ drawUploadIcon(ctx, uploadIconX, iconY, iconSize, iconColor);
+ drawDownloadIcon(ctx, downloadIconX, iconY, iconSize, iconColor);
+
+ // Fin clip interior
+ ctx.restore();
+
+ return {
+ contentX: innerX,
+ contentY: innerY + headerHeight,
+ contentWidth: innerWidth,
+ contentHeight: innerHeight - headerHeight,
+ };
+}
\ No newline at end of file
diff --git a/lib/mockup-canvas/macos-ghost-ide.ts b/lib/mockup-canvas/macos-ghost-ide.ts
new file mode 100644
index 0000000..289d9d7
--- /dev/null
+++ b/lib/mockup-canvas/macos-ghost-ide.ts
@@ -0,0 +1,164 @@
+/**
+ * Renderizado del mockup de MacosGhostIde en Canvas
+ */
+
+import { hexToRgba } from "@/lib/utils";
+import { deriveSearchBg } from "@/lib/color.utils";
+import { drawMagnifyIcon } from "@/lib/canvas-icons";
+import type { MockupCanvasContext, MockupDrawResult } from "./types";
+import { drawRoundedRectPath, drawMockupShadow } from "./shared";
+
+export function drawMacosGhostIdeMockup(context: MockupCanvasContext): MockupDrawResult {
+ const { ctx, x, y, width, height, config, cornerRadius, shadowBlur } = context;
+ const isDark = config.darkMode;
+ const frameColor = config.frameColor;
+ const url = config.url || "freeshot";
+ const headerOpacity = config.headerOpacity ?? 100;
+ const headerScale = (config.headerScale || 100) / 100;
+
+ const headerHeight = 35 * headerScale;
+ const menuFontSize = 12 * headerScale;
+ const menuPaddingX = 8 * headerScale;
+ const headerPaddingX = 12 * headerScale;
+ const searchHeight = 22 * headerScale;
+ const searchIconSize = 10 * headerScale;
+ const searchFontSize = 11 * headerScale;
+ const searchGap = 6 * headerScale;
+ const searchBorder_ = "rgba(255,255,255,0.1)";
+ const dotSize = 12 * headerScale; // w-3 h-3
+ const dotGap = 6 * headerScale;
+
+ const bgColor = isDark ? "#1e1e1e" : "#f3f3f3";
+ const borderColor = isDark ? "rgba(255,255,255,0.05)" : "rgba(0,0,0,0.1)";
+ const textColor = isDark ? "#cccccc" : "#333333";
+ const menuColor = isDark ? "#999999" : "#555555";
+ const searchBorder = isDark ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.15)";
+ const searchBgBase = deriveSearchBg(frameColor);
+ const hamburgerColor = isDark ? "rgba(163,163,163,0.8)" : "rgba(100,100,100,0.8)";
+
+ // 0. Sombra
+ drawMockupShadow(ctx, x, y, width, height, cornerRadius, shadowBlur);
+
+ // 1. Fondo contenido
+ ctx.save();
+ ctx.beginPath();
+ ctx.moveTo(x, y + headerHeight);
+ ctx.lineTo(x + width, y + headerHeight);
+ ctx.lineTo(x + width, y + height - cornerRadius);
+ ctx.quadraticCurveTo(x + width, y + height, x + width - cornerRadius, y + height);
+ ctx.lineTo(x + cornerRadius, y + height);
+ ctx.quadraticCurveTo(x, y + height, x, y + height - cornerRadius);
+ ctx.closePath();
+ ctx.fillStyle = bgColor;
+ ctx.fill();
+ ctx.restore();
+
+ // 2. Header
+ ctx.save();
+ ctx.beginPath();
+ ctx.moveTo(x + cornerRadius, y);
+ ctx.lineTo(x + width - cornerRadius, y);
+ ctx.quadraticCurveTo(x + width, y, x + width, y + cornerRadius);
+ ctx.lineTo(x + width, y + headerHeight);
+ ctx.lineTo(x, y + headerHeight);
+ ctx.lineTo(x, y + cornerRadius);
+ ctx.quadraticCurveTo(x, y, x + cornerRadius, y);
+ ctx.closePath();
+ ctx.fillStyle = hexToRgba(frameColor, headerOpacity);
+ ctx.fill();
+ ctx.restore();
+
+ // 3. Borde inferior header
+ ctx.save();
+ ctx.strokeStyle = borderColor;
+ ctx.lineWidth = 1;
+ ctx.beginPath();
+ ctx.moveTo(x, y + headerHeight);
+ ctx.lineTo(x + width, y + headerHeight);
+ ctx.stroke();
+ ctx.restore();
+
+ const midY = y + headerHeight / 2;
+
+ // ── LEFT: ghost dots (transparent + rgba(255,255,255,0.2) border) ──
+ const dotsStartX = x + headerPaddingX;
+ [0, 1, 2].forEach((i) => {
+ const cx = dotsStartX + i * (dotSize + dotGap) + dotSize / 2;
+ ctx.save();
+ ctx.beginPath();
+ ctx.arc(cx, midY, dotSize / 2, 0, Math.PI * 2);
+ ctx.strokeStyle = "rgba(255,255,255,0.2)";
+ ctx.lineWidth = 1;
+ ctx.stroke();
+ ctx.restore();
+ });
+
+ // ── Menu items ──
+ const menuItems = ["File", "Edit", "Selection", "View", "Go"];
+ const dotsEndX = dotsStartX + 3 * dotSize + 2 * dotGap + menuPaddingX * 2;
+ let menuX = dotsEndX;
+
+ ctx.save();
+ ctx.font = `${menuFontSize}px "Inter", -apple-system, BlinkMacSystemFont, sans-serif`;
+ ctx.fillStyle = menuColor;
+ ctx.textBaseline = "middle";
+ ctx.textAlign = "left";
+ menuItems.forEach((item) => {
+ ctx.fillText(item, menuX + menuPaddingX, midY);
+ menuX += ctx.measureText(item).width + menuPaddingX * 2;
+ });
+ ctx.restore();
+
+ // ── CENTER: Search bar ──
+ const searchWidth = Math.min(width * 0.4, 400 * headerScale);
+ const searchX = x + (width - searchWidth) / 2;
+ const searchY = y + (headerHeight - searchHeight) / 2;
+
+ ctx.save();
+ drawRoundedRectPath(ctx, searchX, searchY, searchWidth, searchHeight, 4 * headerScale);
+ ctx.fillStyle = hexToRgba(searchBgBase, headerOpacity);
+ ctx.fill();
+ ctx.strokeStyle = searchBorder;
+ ctx.lineWidth = 1;
+ ctx.stroke();
+ ctx.restore();
+
+ // Centrar bloque [icono + gap + texto]
+ ctx.save();
+ ctx.font = `${searchFontSize}px "Inter", -apple-system, BlinkMacSystemFont, sans-serif`;
+ const displayUrl = url.substring(0, 30);
+ const textW = ctx.measureText(displayUrl).width;
+ const groupW = searchIconSize + searchGap + textW;
+ const groupStartX = searchX + (searchWidth - groupW) / 2;
+
+ drawMagnifyIcon(ctx, groupStartX, searchY + (searchHeight - searchIconSize) / 2, searchIconSize, textColor + "80");
+
+ ctx.fillStyle = textColor;
+ ctx.textAlign = "left";
+ ctx.textBaseline = "middle";
+ ctx.fillText(displayUrl, groupStartX + searchIconSize + searchGap, searchY + searchHeight / 2);
+ ctx.restore();
+
+ // ── RIGHT: hamburger ──
+ const hamW = 14 * headerScale;
+ const hamH = 1.5 * headerScale;
+ const hamGap = 3.5 * headerScale;
+ const hamX = x + width - headerPaddingX - hamW;
+ const hamY0 = midY - hamGap - hamH / 2;
+
+ ctx.save();
+ ctx.fillStyle = hamburgerColor;
+ ctx.beginPath();
+ ctx.roundRect(hamX, hamY0, hamW, hamH, hamH / 2);
+ ctx.roundRect(hamX, hamY0 + hamGap, hamW, hamH, hamH / 2);
+ ctx.roundRect(hamX, hamY0 + hamGap * 2, hamW, hamH, hamH / 2);
+ ctx.fill();
+ ctx.restore();
+
+ return {
+ contentX: x,
+ contentY: y + headerHeight,
+ contentWidth: width,
+ contentHeight: height - headerHeight,
+ };
+}
\ No newline at end of file
diff --git a/lib/mockup-canvas/macos-ghost.ts b/lib/mockup-canvas/macos-ghost.ts
new file mode 100644
index 0000000..6ec6f3e
--- /dev/null
+++ b/lib/mockup-canvas/macos-ghost.ts
@@ -0,0 +1,178 @@
+/**
+ * Renderizado del mockup de macOS en Canvas
+ */
+
+import { hexToRgba } from "@/lib/utils";
+import { deriveSearchBg } from "@/lib/color.utils";
+import {
+ drawChevronLeft,
+ drawChevronRight,
+ drawMenuIcon,
+ drawLockIcon,
+ drawRefreshIcon,
+ drawDownloadIcon,
+ drawUploadIcon,
+ drawCopyIcon,
+ drawPlusIcon,
+} from "@/lib/canvas-icons";
+import type { MockupCanvasContext, MockupDrawResult } from "./types";
+import { drawRoundedRectPath, drawMockupShadow } from "./shared";
+
+/**
+ * Dibuja el mockup de macOS en canvas
+ */
+export function drawMacosGhostMockup(context: MockupCanvasContext): MockupDrawResult {
+ const { ctx, x, y, width, height, config, cornerRadius, shadowBlur } = context;
+ const isDark = config.darkMode;
+ const frameColor = config.frameColor;
+ const url = config.url || "https://freeshot.dev";
+ const headerOpacity = config.headerOpacity ?? 100;
+
+ // Escalado proporcional del header
+ const headerScale = (config.headerScale || 100) / 100;
+
+ // Valores base escalados
+ const headerHeight = 36 * headerScale;
+ const buttonSize = 10 * headerScale;
+ const buttonGap = 6 * headerScale;
+ const buttonLeftPadding = 12 * headerScale;
+ const urlBarHeight = 18 * headerScale;
+ const fontSize = 14 * headerScale;
+ const iconSize = 14 * headerScale;
+
+ // Colores
+ const bgColor = isDark ? "#262626" : "#ffffff";
+ const borderColor = isDark ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.1)";
+ const textColor = isDark ? "#cccccc" : "#555555";
+ const iconColor = isDark ? "rgba(255,255,255,0.5)" : "rgba(0,0,0,0.4)";
+
+ // 0. Dibujar sombra exterior del mockup (sin bloquear el fondo)
+ drawMockupShadow(ctx, x, y, width, height, cornerRadius, shadowBlur);
+
+ // 1. Dibujar fondo solo en área de contenido (debajo del header)
+ ctx.save();
+ // Aplicar corner radius solo a las esquinas inferiores
+ ctx.beginPath();
+ ctx.moveTo(x, y + headerHeight);
+ ctx.lineTo(x + width, y + headerHeight);
+ ctx.lineTo(x + width, y + height - cornerRadius);
+ ctx.quadraticCurveTo(x + width, y + height, x + width - cornerRadius, y + height);
+ ctx.lineTo(x + cornerRadius, y + height);
+ ctx.quadraticCurveTo(x, y + height, x, y + height - cornerRadius);
+ ctx.closePath();
+ ctx.fillStyle = bgColor;
+ ctx.fill();
+ ctx.restore();
+
+ // 2. Dibujar header con frameColor
+ ctx.save();
+ ctx.beginPath();
+ ctx.moveTo(x + cornerRadius, y);
+ ctx.lineTo(x + width - cornerRadius, y);
+ ctx.quadraticCurveTo(x + width, y, x + width, y + cornerRadius);
+ ctx.lineTo(x + width, y + headerHeight);
+ ctx.lineTo(x, y + headerHeight);
+ ctx.lineTo(x, y + cornerRadius);
+ ctx.quadraticCurveTo(x, y, x + cornerRadius, y);
+ ctx.closePath();
+ ctx.fillStyle = hexToRgba(frameColor, headerOpacity);
+ ctx.fill();
+ ctx.restore();
+
+ // 3. Dibujar línea separadora
+ ctx.save();
+ ctx.strokeStyle = borderColor;
+ ctx.lineWidth = 1;
+ ctx.beginPath();
+ ctx.moveTo(x, y + headerHeight);
+ ctx.lineTo(x + width, y + headerHeight);
+ ctx.stroke();
+ ctx.restore();
+
+ // 4. Dibujar botones de semáforo
+ const buttonY = y + (headerHeight - buttonSize) / 2;
+ [0, 1, 2].forEach((i) => {
+ const btnX = x + buttonLeftPadding + i * (buttonSize + buttonGap);
+ ctx.save();
+ ctx.beginPath();
+ ctx.arc(btnX + buttonSize / 2, buttonY + buttonSize / 2, buttonSize / 2, 0, Math.PI * 2);
+ // Sin relleno (transparent)
+ ctx.strokeStyle = isDark ? "rgba(180,180,180,0.4)" : "rgba(150,150,150,0.6)";
+ ctx.lineWidth = 0.5;
+ ctx.stroke();
+ ctx.restore();
+ });
+
+ // 5. Dibujar iconos de navegación izquierda (menu + chevrons)
+ const navStartX = x + buttonLeftPadding + 3 * (buttonSize + buttonGap) + buttonGap * 2;
+ const iconY = y + (headerHeight - iconSize) / 2;
+ const navGap = 6 * headerScale;
+
+ // Menú hamburguesa
+ drawMenuIcon(ctx, navStartX, iconY, iconSize, iconColor);
+
+ // Chevrons de navegación
+ const chevronStartX = navStartX + iconSize + navGap;
+ drawChevronLeft(ctx, chevronStartX, iconY, iconSize, iconColor);
+ drawChevronRight(ctx, chevronStartX + iconSize + 6 * headerScale, iconY, iconSize, iconColor);
+
+ // 6. Dibujar barra de URL centrada (max-w-xl = 576px en Tailwind)
+ const maxUrlBarWidth = 576 * headerScale;
+ const urlBarWidth = Math.min(width * 0.5, maxUrlBarWidth);
+ const urlBarX = x + (width - urlBarWidth) / 2;
+ const urlBarY = y + (headerHeight - urlBarHeight) / 2;
+ const urlBarPadding = 8 * headerScale;
+
+ // Usar la misma lógica que el componente React: derivar el color del search bar
+ const urlBarBgBase = deriveSearchBg(frameColor);
+
+ ctx.save();
+ drawRoundedRectPath(ctx, urlBarX, urlBarY, urlBarWidth, urlBarHeight, 4 * headerScale);
+ ctx.fillStyle = hexToRgba(urlBarBgBase, headerOpacity);
+ ctx.fill();
+ ctx.restore();
+
+ // Icono de candado (izquierda)
+ const lockIconSize = buttonSize;
+ const lockIconX = urlBarX + urlBarPadding;
+ const lockIconY = urlBarY + (urlBarHeight - lockIconSize) / 2;
+ drawLockIcon(ctx, lockIconX, lockIconY, lockIconSize, iconColor + "99");
+
+ // Texto de URL (centro)
+ ctx.save();
+ ctx.font = `${fontSize}px "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif`;
+ ctx.fillStyle = textColor;
+ ctx.textAlign = "center";
+ ctx.textBaseline = "middle";
+ const displayUrl = url.replace(/^https?:\/\//, "").substring(0, 40);
+ ctx.fillText(displayUrl, urlBarX + urlBarWidth / 2, urlBarY + urlBarHeight / 2);
+ ctx.restore();
+
+ // Icono de refresh (derecha)
+ const refreshIconSize = buttonSize;
+ const refreshIconX = urlBarX + urlBarWidth - urlBarPadding - refreshIconSize;
+ const refreshIconY = urlBarY + (urlBarHeight - refreshIconSize) / 2;
+ drawRefreshIcon(ctx, refreshIconX, refreshIconY, refreshIconSize, iconColor + "99");
+
+ // 7. Dibujar iconos de la derecha (download, upload, plus, copy)
+ const iconsRightPadding = 12 * headerScale;
+ const iconGap = 10 * headerScale;
+
+ // Calcular posiciones de derecha a izquierda
+ const copyIconX = x + width - iconsRightPadding - iconSize;
+ const plusIconX = copyIconX - iconSize - iconGap;
+ const uploadIconX = plusIconX - iconSize - iconGap;
+ const downloadIconX = uploadIconX - iconSize - iconGap;
+
+ drawCopyIcon(ctx, copyIconX, iconY, iconSize, iconColor);
+ drawPlusIcon(ctx, plusIconX, iconY, iconSize, iconColor);
+ drawUploadIcon(ctx, uploadIconX, iconY, iconSize, iconColor);
+ drawDownloadIcon(ctx, downloadIconX, iconY, iconSize, iconColor);
+
+ return {
+ contentX: x,
+ contentY: y + headerHeight,
+ contentWidth: width,
+ contentHeight: height - headerHeight,
+ };
+}
diff --git a/lib/mockup-canvas/macos-glass.ts b/lib/mockup-canvas/macos-glass.ts
new file mode 100644
index 0000000..4443538
--- /dev/null
+++ b/lib/mockup-canvas/macos-glass.ts
@@ -0,0 +1,238 @@
+/**
+ * Renderizado del mockup de macOS Glass en Canvas
+ */
+
+import { hexToRgba } from "@/lib/utils";
+import { deriveSearchBg } from "@/lib/color.utils";
+import {
+ drawChevronLeft,
+ drawChevronRight,
+ drawMenuIcon,
+ drawLockIcon,
+ drawRefreshIcon,
+ drawDownloadIcon,
+ drawUploadIcon,
+ drawCopyIcon,
+ drawPlusIcon,
+} from "@/lib/canvas-icons";
+import type { MockupCanvasContext, MockupDrawResult } from "./types";
+import { drawRoundedRectPath, drawMockupShadow } from "./shared";
+
+/**
+ * Dibuja el mockup de macOS Glass en canvas
+ * Este mockup tiene un borde de cristal con padding de 12px
+ */
+export function drawMacosGlassMockup(context: MockupCanvasContext): MockupDrawResult {
+ const { ctx, x, y, width, height, config, cornerRadius, shadowBlur } = context;
+ const isDark = config.darkMode;
+ const frameColor = config.frameColor;
+ const url = config.url || "https://freeshot.dev";
+ const headerOpacity = config.headerOpacity ?? 100;
+
+ // Escalado proporcional del header
+ const headerScale = (config.headerScale || 100) / 100;
+
+ // Glass border padding (debe coincidir con el CSS: 12px)
+ const glassPadding = 12;
+ const glassCornerRadius = cornerRadius;
+
+ // Valores base escalados
+ const headerHeight = 36 * headerScale;
+ const buttonSize = 10 * headerScale;
+ const buttonGap = 6 * headerScale;
+ const buttonLeftPadding = 12 * headerScale;
+ const urlBarHeight = 18 * headerScale;
+ const fontSize = 14 * headerScale;
+ const iconSize = 14 * headerScale;
+
+ // Colores
+ const bgColor = isDark ? "#262626" : "#ffffff";
+ const borderColor = isDark ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.1)";
+ const textColor = isDark ? "#cccccc" : "#555555";
+ const iconColor = isDark ? "rgba(255,255,255,0.5)" : "rgba(0,0,0,0.4)";
+
+ // 0. Dibujar sombra exterior del mockup completo (incluye glass border)
+ drawMockupShadow(ctx, x, y, width, height, glassCornerRadius, shadowBlur);
+
+ // 1. Calcular área interior (dentro del glass padding)
+ const innerX = x + glassPadding;
+ const innerY = y + glassPadding;
+ const innerWidth = width - glassPadding * 2;
+ const innerHeight = height - glassPadding * 2;
+ const innerCornerRadius = Math.max(0, glassCornerRadius + 4);
+
+ // 2. Dibujar el contenedor glass border (solo el marco visible, no el interior)
+ ctx.save();
+
+ // Crear un path que dibuja el rectángulo exterior e interior en sentido inverso
+ // Esto crea un "donut" que es solo el borde glass
+ drawRoundedRectPath(ctx, x, y, width, height, glassCornerRadius);
+
+ // Dibujar rectángulo interior en sentido inverso para "recortarlo"
+ ctx.moveTo(innerX + innerCornerRadius, innerY);
+ ctx.lineTo(innerX + innerWidth - innerCornerRadius, innerY);
+ ctx.quadraticCurveTo(innerX + innerWidth, innerY, innerX + innerWidth, innerY + innerCornerRadius);
+ ctx.lineTo(innerX + innerWidth, innerY + innerHeight - innerCornerRadius);
+ ctx.quadraticCurveTo(innerX + innerWidth, innerY + innerHeight, innerX + innerWidth - innerCornerRadius, innerY + innerHeight);
+ ctx.lineTo(innerX + innerCornerRadius, innerY + innerHeight);
+ ctx.quadraticCurveTo(innerX, innerY + innerHeight, innerX, innerY + innerHeight - innerCornerRadius);
+ ctx.lineTo(innerX, innerY + innerCornerRadius);
+ ctx.quadraticCurveTo(innerX, innerY, innerX + innerCornerRadius, innerY);
+ ctx.closePath();
+
+ // Gradiente de cristal más visible en canvas
+ const gradient = ctx.createLinearGradient(x, y, x + width, y + height);
+ gradient.addColorStop(0, 'rgba(255, 255, 255, 0.35)');
+ gradient.addColorStop(1, 'rgba(255, 255, 255, 0.45)');
+ ctx.fillStyle = gradient;
+ ctx.fill('evenodd'); // Usar evenodd para crear el efecto "donut"
+
+ // Bordes superiores e izquierdos más brillantes
+ ctx.strokeStyle = 'rgba(255, 255, 255)';
+ ctx.lineWidth = 0.5;
+
+ // Dibujar solo los bordes superior e izquierdo
+ ctx.beginPath();
+ ctx.moveTo(x + glassCornerRadius, y);
+ ctx.lineTo(x + width - glassCornerRadius, y);
+ ctx.stroke();
+
+ ctx.beginPath();
+ ctx.moveTo(x, y + glassCornerRadius);
+ ctx.lineTo(x, y + height - glassCornerRadius);
+ ctx.stroke();
+ ctx.restore();
+
+ // 3. Dibujar fondo del contenido (debajo del header) con esquinas redondeadas
+ ctx.save();
+ ctx.beginPath();
+ ctx.moveTo(innerX, innerY + headerHeight);
+ ctx.lineTo(innerX + innerWidth, innerY + headerHeight);
+ ctx.lineTo(innerX + innerWidth, innerY + innerHeight - innerCornerRadius);
+ ctx.quadraticCurveTo(innerX + innerWidth, innerY + innerHeight, innerX + innerWidth - innerCornerRadius, innerY + innerHeight);
+ ctx.lineTo(innerX + innerCornerRadius, innerY + innerHeight);
+ ctx.quadraticCurveTo(innerX, innerY + innerHeight, innerX, innerY + innerHeight - innerCornerRadius);
+ ctx.closePath();
+ ctx.fillStyle = bgColor;
+ ctx.fill();
+ ctx.restore();
+
+ // 4. Dibujar header con frameColor
+ ctx.save();
+ ctx.beginPath();
+ ctx.moveTo(innerX + innerCornerRadius, innerY);
+ ctx.lineTo(innerX + innerWidth - innerCornerRadius, innerY);
+ ctx.quadraticCurveTo(innerX + innerWidth, innerY, innerX + innerWidth, innerY + innerCornerRadius);
+ ctx.lineTo(innerX + innerWidth, innerY + headerHeight);
+ ctx.lineTo(innerX, innerY + headerHeight);
+ ctx.lineTo(innerX, innerY + innerCornerRadius);
+ ctx.quadraticCurveTo(innerX, innerY, innerX + innerCornerRadius, innerY);
+ ctx.closePath();
+ ctx.fillStyle = hexToRgba(frameColor, headerOpacity);
+ ctx.fill();
+ ctx.restore();
+
+ // 5. Dibujar línea separadora
+ ctx.save();
+ ctx.strokeStyle = borderColor;
+ ctx.lineWidth = 1;
+ ctx.beginPath();
+ ctx.moveTo(innerX, innerY + headerHeight);
+ ctx.lineTo(innerX + innerWidth, innerY + headerHeight);
+ ctx.stroke();
+ ctx.restore();
+
+ // 6. Dibujar botones de semáforo
+ const buttonY = innerY + (headerHeight - buttonSize) / 2;
+ const buttons = [
+ { color: "#FF5F56", border: "#E0443E" },
+ { color: "#FFBD2E", border: "#DEA123" },
+ { color: "#27C93F", border: "#1AAB29" },
+ ];
+
+ buttons.forEach((btn, i) => {
+ const btnX = innerX + buttonLeftPadding + i * (buttonSize + buttonGap);
+ ctx.save();
+ ctx.beginPath();
+ ctx.arc(btnX + buttonSize / 2, buttonY + buttonSize / 2, buttonSize / 2, 0, Math.PI * 2);
+ ctx.fillStyle = btn.color;
+ ctx.fill();
+ ctx.strokeStyle = btn.border;
+ ctx.lineWidth = 0.5;
+ ctx.stroke();
+ ctx.restore();
+ });
+
+ // 7. Dibujar iconos de navegación izquierda (menu + chevrons)
+ const navStartX = innerX + buttonLeftPadding + 3 * (buttonSize + buttonGap) + buttonGap * 2;
+ const iconY = innerY + (headerHeight - iconSize) / 2;
+ const navGap = 6 * headerScale;
+
+ // Menú hamburguesa
+ drawMenuIcon(ctx, navStartX, iconY, iconSize, iconColor);
+
+ // Chevrons de navegación
+ const chevronStartX = navStartX + iconSize + navGap;
+ drawChevronLeft(ctx, chevronStartX, iconY, iconSize, iconColor);
+ drawChevronRight(ctx, chevronStartX + iconSize + 6 * headerScale, iconY, iconSize, iconColor);
+
+ // 8. Dibujar barra de URL centrada (max-w-xl = 576px en Tailwind)
+ const maxUrlBarWidth = 576 * headerScale;
+ const urlBarWidth = Math.min(innerWidth * 0.5, maxUrlBarWidth);
+ const urlBarX = innerX + (innerWidth - urlBarWidth) / 2;
+ const urlBarY = innerY + (headerHeight - urlBarHeight) / 2;
+ const urlBarPadding = 8 * headerScale;
+
+ // Usar la misma lógica que el componente React: derivar el color del search bar
+ const urlBarBgBase = deriveSearchBg(frameColor);
+
+ ctx.save();
+ drawRoundedRectPath(ctx, urlBarX, urlBarY, urlBarWidth, urlBarHeight, 4 * headerScale);
+ ctx.fillStyle = hexToRgba(urlBarBgBase, headerOpacity);
+ ctx.fill();
+ ctx.restore();
+
+ // Icono de candado (izquierda)
+ const lockIconSize = buttonSize;
+ const lockIconX = urlBarX + urlBarPadding;
+ const lockIconY = urlBarY + (urlBarHeight - lockIconSize) / 2;
+ drawLockIcon(ctx, lockIconX, lockIconY, lockIconSize, iconColor + "99");
+
+ // Texto de URL (centro)
+ ctx.save();
+ ctx.font = `${fontSize}px "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif`;
+ ctx.fillStyle = textColor;
+ ctx.textAlign = "center";
+ ctx.textBaseline = "middle";
+ const displayUrl = url.replace(/^https?:\/\//, "").substring(0, 40);
+ ctx.fillText(displayUrl, urlBarX + urlBarWidth / 2, urlBarY + urlBarHeight / 2);
+ ctx.restore();
+
+ // Icono de refresh (derecha)
+ const refreshIconSize = buttonSize;
+ const refreshIconX = urlBarX + urlBarWidth - urlBarPadding - refreshIconSize;
+ const refreshIconY = urlBarY + (urlBarHeight - refreshIconSize) / 2;
+ drawRefreshIcon(ctx, refreshIconX, refreshIconY, refreshIconSize, iconColor + "99");
+
+ // 9. Dibujar iconos de la derecha (download, upload, plus, copy)
+ const iconsRightPadding = 12 * headerScale;
+ const iconGap = 10 * headerScale;
+
+ // Calcular posiciones de derecha a izquierda
+ const copyIconX = innerX + innerWidth - iconsRightPadding - iconSize;
+ const plusIconX = copyIconX - iconSize - iconGap;
+ const uploadIconX = plusIconX - iconSize - iconGap;
+ const downloadIconX = uploadIconX - iconSize - iconGap;
+
+ drawCopyIcon(ctx, copyIconX, iconY, iconSize, iconColor);
+ drawPlusIcon(ctx, plusIconX, iconY, iconSize, iconColor);
+ drawUploadIcon(ctx, uploadIconX, iconY, iconSize, iconColor);
+ drawDownloadIcon(ctx, downloadIconX, iconY, iconSize, iconColor);
+
+ return {
+ contentX: innerX,
+ contentY: innerY + headerHeight,
+ contentWidth: innerWidth,
+ contentHeight: innerHeight - headerHeight,
+ };
+}
diff --git a/lib/mockup-canvas/macos.ts b/lib/mockup-canvas/macos.ts
new file mode 100644
index 0000000..c7a3278
--- /dev/null
+++ b/lib/mockup-canvas/macos.ts
@@ -0,0 +1,185 @@
+/**
+ * Renderizado del mockup de macOS en Canvas
+ */
+
+import { hexToRgba } from "@/lib/utils";
+import { deriveSearchBg } from "@/lib/color.utils";
+import {
+ drawChevronLeft,
+ drawChevronRight,
+ drawMenuIcon,
+ drawLockIcon,
+ drawRefreshIcon,
+ drawDownloadIcon,
+ drawUploadIcon,
+ drawCopyIcon,
+ drawPlusIcon,
+} from "@/lib/canvas-icons";
+import type { MockupCanvasContext, MockupDrawResult } from "./types";
+import { drawRoundedRectPath, drawMockupShadow } from "./shared";
+
+/**
+ * Dibuja el mockup de macOS en canvas
+ */
+export function drawMacosMockup(context: MockupCanvasContext): MockupDrawResult {
+ const { ctx, x, y, width, height, config, cornerRadius, shadowBlur } = context;
+ const isDark = config.darkMode;
+ const frameColor = config.frameColor;
+ const url = config.url || "https://freeshot.dev";
+ const headerOpacity = config.headerOpacity ?? 100;
+
+ // Escalado proporcional del header
+ const headerScale = (config.headerScale || 100) / 100;
+
+ // Valores base escalados
+ const headerHeight = 36 * headerScale;
+ const buttonSize = 10 * headerScale;
+ const buttonGap = 6 * headerScale;
+ const buttonLeftPadding = 12 * headerScale;
+ const urlBarHeight = 18 * headerScale;
+ const fontSize = 14 * headerScale;
+ const iconSize = 14 * headerScale;
+
+ // Colores
+ const bgColor = isDark ? "#262626" : "#ffffff";
+ const borderColor = isDark ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.1)";
+ const textColor = isDark ? "#cccccc" : "#555555";
+ const iconColor = isDark ? "rgba(255,255,255,0.5)" : "rgba(0,0,0,0.4)";
+
+ // 0. Dibujar sombra exterior del mockup (sin bloquear el fondo)
+ drawMockupShadow(ctx, x, y, width, height, cornerRadius, shadowBlur);
+
+ // 1. Dibujar fondo solo en área de contenido (debajo del header)
+ ctx.save();
+ // Aplicar corner radius solo a las esquinas inferiores
+ ctx.beginPath();
+ ctx.moveTo(x, y + headerHeight);
+ ctx.lineTo(x + width, y + headerHeight);
+ ctx.lineTo(x + width, y + height - cornerRadius);
+ ctx.quadraticCurveTo(x + width, y + height, x + width - cornerRadius, y + height);
+ ctx.lineTo(x + cornerRadius, y + height);
+ ctx.quadraticCurveTo(x, y + height, x, y + height - cornerRadius);
+ ctx.closePath();
+ ctx.fillStyle = bgColor;
+ ctx.fill();
+ ctx.restore();
+
+ // 2. Dibujar header con frameColor
+ ctx.save();
+ ctx.beginPath();
+ ctx.moveTo(x + cornerRadius, y);
+ ctx.lineTo(x + width - cornerRadius, y);
+ ctx.quadraticCurveTo(x + width, y, x + width, y + cornerRadius);
+ ctx.lineTo(x + width, y + headerHeight);
+ ctx.lineTo(x, y + headerHeight);
+ ctx.lineTo(x, y + cornerRadius);
+ ctx.quadraticCurveTo(x, y, x + cornerRadius, y);
+ ctx.closePath();
+ ctx.fillStyle = hexToRgba(frameColor, headerOpacity);
+ ctx.fill();
+ ctx.restore();
+
+ // 3. Dibujar línea separadora
+ ctx.save();
+ ctx.strokeStyle = borderColor;
+ ctx.lineWidth = 1;
+ ctx.beginPath();
+ ctx.moveTo(x, y + headerHeight);
+ ctx.lineTo(x + width, y + headerHeight);
+ ctx.stroke();
+ ctx.restore();
+
+ // 4. Dibujar botones de semáforo
+ const buttonY = y + (headerHeight - buttonSize) / 2;
+ const buttons = [
+ { color: "#FF5F56", border: "#E0443E" },
+ { color: "#FFBD2E", border: "#DEA123" },
+ { color: "#27C93F", border: "#1AAB29" },
+ ];
+
+ buttons.forEach((btn, i) => {
+ const btnX = x + buttonLeftPadding + i * (buttonSize + buttonGap);
+ ctx.save();
+ ctx.beginPath();
+ ctx.arc(btnX + buttonSize / 2, buttonY + buttonSize / 2, buttonSize / 2, 0, Math.PI * 2);
+ ctx.fillStyle = btn.color;
+ ctx.fill();
+ ctx.strokeStyle = btn.border;
+ ctx.lineWidth = 0.5;
+ ctx.stroke();
+ ctx.restore();
+ });
+
+ // 5. Dibujar iconos de navegación izquierda (menu + chevrons)
+ const navStartX = x + buttonLeftPadding + 3 * (buttonSize + buttonGap) + buttonGap * 2;
+ const iconY = y + (headerHeight - iconSize) / 2;
+ const navGap = 6 * headerScale;
+
+ // Menú hamburguesa
+ drawMenuIcon(ctx, navStartX, iconY, iconSize, iconColor);
+
+ // Chevrons de navegación
+ const chevronStartX = navStartX + iconSize + navGap;
+ drawChevronLeft(ctx, chevronStartX, iconY, iconSize, iconColor);
+ drawChevronRight(ctx, chevronStartX + iconSize + 6 * headerScale, iconY, iconSize, iconColor);
+
+ // 6. Dibujar barra de URL centrada (max-w-xl = 576px en Tailwind)
+ const maxUrlBarWidth = 576 * headerScale;
+ const urlBarWidth = Math.min(width * 0.5, maxUrlBarWidth);
+ const urlBarX = x + (width - urlBarWidth) / 2;
+ const urlBarY = y + (headerHeight - urlBarHeight) / 2;
+ const urlBarPadding = 8 * headerScale;
+
+ // Usar la misma lógica que el componente React: derivar el color del search bar
+ const urlBarBgBase = deriveSearchBg(frameColor);
+
+ ctx.save();
+ drawRoundedRectPath(ctx, urlBarX, urlBarY, urlBarWidth, urlBarHeight, 4 * headerScale);
+ ctx.fillStyle = hexToRgba(urlBarBgBase, headerOpacity);
+ ctx.fill();
+ ctx.restore();
+
+ // Icono de candado (izquierda)
+ const lockIconSize = buttonSize;
+ const lockIconX = urlBarX + urlBarPadding;
+ const lockIconY = urlBarY + (urlBarHeight - lockIconSize) / 2;
+ drawLockIcon(ctx, lockIconX, lockIconY, lockIconSize, iconColor + "99");
+
+ // Texto de URL (centro)
+ ctx.save();
+ ctx.font = `${fontSize}px "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif`;
+ ctx.fillStyle = textColor;
+ ctx.textAlign = "center";
+ ctx.textBaseline = "middle";
+ const displayUrl = url.replace(/^https?:\/\//, "").substring(0, 40);
+ ctx.fillText(displayUrl, urlBarX + urlBarWidth / 2, urlBarY + urlBarHeight / 2);
+ ctx.restore();
+
+ // Icono de refresh (derecha)
+ const refreshIconSize = buttonSize;
+ const refreshIconX = urlBarX + urlBarWidth - urlBarPadding - refreshIconSize;
+ const refreshIconY = urlBarY + (urlBarHeight - refreshIconSize) / 2;
+ drawRefreshIcon(ctx, refreshIconX, refreshIconY, refreshIconSize, iconColor + "99");
+
+ // 7. Dibujar iconos de la derecha (download, upload, plus, copy)
+ const iconsRightPadding = 12 * headerScale;
+ const iconGap = 10 * headerScale;
+
+ // Calcular posiciones de derecha a izquierda
+ const copyIconX = x + width - iconsRightPadding - iconSize;
+ const plusIconX = copyIconX - iconSize - iconGap;
+ const uploadIconX = plusIconX - iconSize - iconGap;
+ const downloadIconX = uploadIconX - iconSize - iconGap;
+
+ drawCopyIcon(ctx, copyIconX, iconY, iconSize, iconColor);
+ drawPlusIcon(ctx, plusIconX, iconY, iconSize, iconColor);
+ drawUploadIcon(ctx, uploadIconX, iconY, iconSize, iconColor);
+ drawDownloadIcon(ctx, downloadIconX, iconY, iconSize, iconColor);
+
+ return {
+ contentX: x,
+ contentY: y + headerHeight,
+ contentWidth: width,
+ contentHeight: height - headerHeight,
+ };
+}
diff --git a/lib/mockup-canvas/shared.ts b/lib/mockup-canvas/shared.ts
new file mode 100644
index 0000000..f54035e
--- /dev/null
+++ b/lib/mockup-canvas/shared.ts
@@ -0,0 +1,55 @@
+/**
+ * Utilidades compartidas para el renderizado de mockups en Canvas
+ */
+
+/**
+ * Helper para dibujar rectángulos con esquinas redondeadas
+ */
+export function drawRoundedRectPath(
+ ctx: CanvasRenderingContext2D,
+ x: number,
+ y: number,
+ width: number,
+ height: number,
+ radius: number
+) {
+ const r = Math.min(radius, width / 2, height / 2);
+ ctx.beginPath();
+ ctx.moveTo(x + r, y);
+ ctx.lineTo(x + width - r, y);
+ ctx.quadraticCurveTo(x + width, y, x + width, y + r);
+ ctx.lineTo(x + width, y + height - r);
+ ctx.quadraticCurveTo(x + width, y + height, x + width - r, y + height);
+ ctx.lineTo(x + r, y + height);
+ ctx.quadraticCurveTo(x, y + height, x, y + height - r);
+ ctx.lineTo(x, y + r);
+ ctx.quadraticCurveTo(x, y, x + r, y);
+ ctx.closePath();
+}
+
+/**
+ * Dibuja el efecto de sombra exterior sin bloquear el fondo
+ */
+export function drawMockupShadow(
+ ctx: CanvasRenderingContext2D,
+ x: number,
+ y: number,
+ width: number,
+ height: number,
+ cornerRadius: number,
+ shadowBlur: number
+) {
+ if (shadowBlur <= 0) return;
+
+ ctx.save();
+ ctx.shadowColor = 'rgba(0, 0, 0, 0.5)';
+ ctx.shadowBlur = shadowBlur;
+ ctx.shadowOffsetY = shadowBlur * 0.3;
+
+ // Dibujar solo el borde del mockup completo para crear la sombra
+ ctx.strokeStyle = 'rgba(0, 0, 0, 0.3)'; // Más visible para sombras notorias
+ ctx.lineWidth = 1;
+ drawRoundedRectPath(ctx, x, y, width, height, cornerRadius);
+ ctx.stroke();
+ ctx.restore();
+}
diff --git a/lib/mockup-canvas/types.ts b/lib/mockup-canvas/types.ts
new file mode 100644
index 0000000..c67c80d
--- /dev/null
+++ b/lib/mockup-canvas/types.ts
@@ -0,0 +1,23 @@
+/**
+ * Tipos compartidos para el renderizado de mockups en Canvas
+ */
+
+import type { MockupConfig } from "@/types/mockup.types";
+
+export interface MockupCanvasContext {
+ ctx: CanvasRenderingContext2D;
+ x: number;
+ y: number;
+ width: number;
+ height: number;
+ config: MockupConfig;
+ cornerRadius: number;
+ shadowBlur: number;
+}
+
+export interface MockupDrawResult {
+ contentX: number;
+ contentY: number;
+ contentWidth: number;
+ contentHeight: number;
+}
diff --git a/lib/mockup-canvas/vscode.ts b/lib/mockup-canvas/vscode.ts
new file mode 100644
index 0000000..7925757
--- /dev/null
+++ b/lib/mockup-canvas/vscode.ts
@@ -0,0 +1,167 @@
+/**
+ * Renderizado del mockup de VS Code en Canvas
+ */
+
+import { hexToRgba } from "@/lib/utils";
+import { deriveSearchBg } from "@/lib/color.utils";
+import {
+ drawMagnifyIcon,
+ drawMinusIcon,
+ drawSquareIcon,
+ drawCloseIcon,
+ drawVSCodeLogo,
+} from "@/lib/canvas-icons";
+import type { MockupCanvasContext, MockupDrawResult } from "./types";
+import { drawRoundedRectPath, drawMockupShadow } from "./shared";
+
+/**
+ * Dibuja el mockup de VS Code en canvas
+ */
+export function drawVSCodeMockup(context: MockupCanvasContext): MockupDrawResult {
+ const { ctx, x, y, width, height, config, cornerRadius, shadowBlur } = context;
+ const isDark = config.darkMode;
+ const frameColor = config.frameColor;
+ const url = config.url || "freeshot";
+ const headerOpacity = config.headerOpacity ?? 100;
+
+ // Escalado proporcional del header
+ const headerScale = (config.headerScale || 100) / 100;
+
+ // Valores base escalados
+ const headerHeight = 35 * headerScale;
+ const logoSize = 16 * headerScale;
+ const menuFontSize = 14 * headerScale;
+ const headerPaddingX = 12 * headerScale;
+ const searchHeight = 22 * headerScale;
+ const searchFontSize = 14 * headerScale;
+ const controlIconSize = 12 * headerScale;
+ const controlPaddingX = 12 * headerScale;
+
+ // Colores
+ const bgColor = isDark ? "#1e1e1e" : "#f3f3f3";
+ const borderColor = isDark ? "rgba(255,255,255,0.05)" : "rgba(0,0,0,0.1)";
+ const textColor = isDark ? "#cccccc" : "#333333";
+ const searchBorder = isDark ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.15)";
+
+ // 0. Dibujar sombra exterior del mockup (sin bloquear el fondo)
+ drawMockupShadow(ctx, x, y, width, height, cornerRadius, shadowBlur);
+
+ // 1. Dibujar borde del frame
+ ctx.save();
+ drawRoundedRectPath(ctx, x, y, width, height, cornerRadius);
+ ctx.strokeStyle = isDark ? '#404040' : '#d4d4d4';
+ ctx.lineWidth = 1;
+ ctx.stroke();
+ ctx.restore();
+
+ // Dibujar fondo solo en área de contenido con esquinas redondeadas
+ ctx.save();
+ ctx.beginPath();
+ ctx.moveTo(x, y + headerHeight);
+ ctx.lineTo(x + width, y + headerHeight);
+ ctx.lineTo(x + width, y + height - cornerRadius);
+ ctx.quadraticCurveTo(x + width, y + height, x + width - cornerRadius, y + height);
+ ctx.lineTo(x + cornerRadius, y + height);
+ ctx.quadraticCurveTo(x, y + height, x, y + height - cornerRadius);
+ ctx.closePath();
+ ctx.fillStyle = bgColor;
+ ctx.fill();
+ ctx.restore();
+
+ // 2. Dibujar header
+ ctx.save();
+ ctx.beginPath();
+ ctx.moveTo(x + cornerRadius, y);
+ ctx.lineTo(x + width - cornerRadius, y);
+ ctx.quadraticCurveTo(x + width, y, x + width, y + cornerRadius);
+ ctx.lineTo(x + width, y + headerHeight);
+ ctx.lineTo(x, y + headerHeight);
+ ctx.lineTo(x, y + cornerRadius);
+ ctx.quadraticCurveTo(x, y, x + cornerRadius, y);
+ ctx.closePath();
+ ctx.fillStyle = hexToRgba(frameColor, headerOpacity);
+ ctx.fill();
+ ctx.restore();
+
+ // 3. Dibujar borde inferior del header
+ ctx.save();
+ ctx.strokeStyle = borderColor;
+ ctx.lineWidth = 1;
+ ctx.beginPath();
+ ctx.moveTo(x, y + headerHeight);
+ ctx.lineTo(x + width, y + headerHeight);
+ ctx.stroke();
+ ctx.restore();
+
+ // 4. Dibujar logo de VS Code real
+ const logoY = y + (headerHeight - logoSize) / 2;
+ drawVSCodeLogo(ctx, x + headerPaddingX, logoY, logoSize);
+
+ // 5. Dibujar items de menú
+ const menuItems = ["File", "Edit", "Selection", "View", "Go", "Terminal", "Help"];
+ let menuX = x + headerPaddingX + logoSize + 8 * headerScale;
+ const menuY = y + headerHeight / 2;
+
+ ctx.save();
+ ctx.font = `${menuFontSize}px "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif`;
+ ctx.fillStyle = textColor;
+ ctx.textBaseline = "middle";
+
+ menuItems.forEach(item => {
+ const itemWidth = ctx.measureText(item).width + 16 * headerScale;
+ ctx.fillText(item, menuX + 8 * headerScale, menuY);
+ menuX += itemWidth;
+ });
+ ctx.restore();
+
+ // 6. Dibujar search bar centrada con icono de lupa
+ const maxSearchWidth = 576 * headerScale; // Equivale a max-w-xl
+ const searchWidth = Math.min(width * 0.5, maxSearchWidth);
+ const searchX = x + (width - searchWidth) / 2;
+ const searchY = y + (headerHeight - searchHeight) / 2;
+
+ // Usar la misma lógica que el componente React: derivar el color del search bar
+ const searchBgBase = deriveSearchBg(frameColor);
+
+ ctx.save();
+ drawRoundedRectPath(ctx, searchX, searchY, searchWidth, searchHeight, 4 * headerScale);
+ ctx.fillStyle = hexToRgba(searchBgBase, headerOpacity);
+ ctx.fill();
+ ctx.strokeStyle = searchBorder;
+ ctx.lineWidth = 1;
+ ctx.stroke();
+ ctx.restore();
+
+ // Icono de lupa en el search bar
+ const searchIconSize = searchHeight * 0.6;
+ const searchIconPadding = 8 * headerScale;
+ drawMagnifyIcon(ctx, searchX + searchIconPadding, searchY + (searchHeight - searchIconSize) / 2, searchIconSize, textColor + "80");
+
+ // Texto del search
+ ctx.save();
+ ctx.font = `${searchFontSize}px "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif`;
+ ctx.fillStyle = textColor;
+ ctx.textAlign = "center";
+ ctx.textBaseline = "middle";
+ ctx.fillText(url, searchX + searchWidth / 2 + searchIconSize / 2, searchY + searchHeight / 2);
+ ctx.restore();
+
+ const controlY = y + (headerHeight - controlIconSize) / 2;
+ const iconGap = controlPaddingX * 2;
+
+ const minX = x + width - 3 * (controlIconSize + iconGap);
+ drawMinusIcon(ctx, minX, controlY, controlIconSize, textColor);
+
+ const maxX = x + width - 2 * (controlIconSize + iconGap);
+ drawSquareIcon(ctx, maxX, controlY, controlIconSize, textColor);
+
+ const closeX = x + width - 1 * (controlIconSize + iconGap);
+ drawCloseIcon(ctx, closeX, controlY, controlIconSize, textColor);
+
+ return {
+ contentX: x,
+ contentY: y + headerHeight,
+ contentWidth: width,
+ contentHeight: height - headerHeight,
+ };
+}
diff --git a/lib/mockup-data.tsx b/lib/mockup-data.tsx
new file mode 100644
index 0000000..1911958
--- /dev/null
+++ b/lib/mockup-data.tsx
@@ -0,0 +1,405 @@
+import { Mockup, DEFAULT_MOCKUP_FEATURES } from "@/types/mockup.types";
+import { BraveGlassPreview, BravePreview, BrowserTabGlassPreview, ChromeGlassPreview, ChromePreview, GlassBasePreview, GlassCurvePreview, GlassFullPreview, GlassUIContainerPreview, HardShellPreview, IphoneBasePreview, IphoneSlimPreview, MacosContainerGlassPreview, MacosDarkPreview, MacosGhostGlassPreview, MacosGhostIdePreview, MacosGhostPreview, MacosGlassPreview, MacosPreview, NonePreview, S24UltraPreview, VSCodePreview } from "./mockup-previews";
+
+export const MOCKUPS: Mockup[] = [
+ {
+ id: "none",
+ name: "None",
+ category: "browser",
+ features: {
+ ...DEFAULT_MOCKUP_FEATURES,
+ // None no tiene configuraciones
+ },
+ preview: (
+ <NonePreview />
+ ),
+ },
+ {
+ id: "macos",
+ name: "Macos",
+ category: "browser",
+ features: {
+ hasDarkMode: true,
+ hasFrameColor: true,
+ hasUrl: true,
+ hasHeaderScale: true,
+ hasCornerRadius: true,
+ hasHeaderOpacity: true,
+ },
+ defaultConfig: {
+ darkMode: false,
+ frameColor: "#f6f6f6",
+ url: "https://freeshot.dev",
+ headerScale: 60,
+ cornerRadius: 12,
+ },
+ preview: (
+ <MacosPreview />
+ ),
+ },
+ {
+ id: "macos-glass",
+ name: "Macos glass",
+ category: "browser",
+ features: {
+ hasDarkMode: true,
+ hasFrameColor: true,
+ hasUrl: true,
+ hasHeaderScale: true,
+ hasCornerRadius: true,
+ hasHeaderOpacity: true,
+ },
+ defaultConfig: {
+ darkMode: false,
+ frameColor: "#f6f6f6",
+ url: "https://freeshot.dev",
+ headerScale: 60,
+ cornerRadius: 12,
+ },
+ preview: (
+ <MacosGlassPreview />
+ ),
+ },
+ {
+ id: "glass-ui-container",
+ name: "Glass UI Container",
+ category: "browser",
+ features: {
+ ...DEFAULT_MOCKUP_FEATURES,
+ hasCornerRadius: true,
+ },
+ defaultConfig: {
+ cornerRadius: 12,
+ },
+ preview: (
+ <GlassUIContainerPreview />
+ ),
+ },
+ {
+ id: "macos-ghost",
+ name: "Macos ghost",
+ category: "browser",
+ features: {
+ hasDarkMode: true,
+ hasFrameColor: true,
+ hasUrl: true,
+ hasHeaderScale: true,
+ hasCornerRadius: true,
+ hasHeaderOpacity: true,
+ },
+ defaultConfig: {
+ darkMode: false,
+ frameColor: "#f6f6f6",
+ url: "https://freeshot.dev",
+ headerScale: 60,
+ cornerRadius: 12,
+ },
+ preview: (
+ <MacosGhostPreview />
+ ),
+ },
+ {
+ id: "macos-ghost-glass",
+ name: "Macos ghost glass",
+ category: "browser",
+ features: {
+ hasDarkMode: true,
+ hasFrameColor: true,
+ hasUrl: true,
+ hasHeaderScale: true,
+ hasCornerRadius: true,
+ hasHeaderOpacity: true,
+ },
+ defaultConfig: {
+ darkMode: false,
+ frameColor: "#f6f6f6",
+ url: "https://freeshot.dev",
+ headerScale: 60,
+ cornerRadius: 12,
+ },
+ preview: (
+ <MacosGhostGlassPreview />
+ ),
+ },
+ {
+ id: "macos-container-glass",
+ name: "Macos container glass",
+ category: "browser",
+ features: {
+ ...DEFAULT_MOCKUP_FEATURES,
+ hasCornerRadius: true,
+ hasHeaderScale: true,
+ },
+ defaultConfig: {
+ cornerRadius: 12,
+ headerScale: 70,
+ },
+ preview: (
+ <MacosContainerGlassPreview />
+ ),
+ },
+ {
+ id: "brave",
+ name: "Brave",
+ category: "browser",
+ features: {
+ hasDarkMode: true,
+ hasFrameColor: true,
+ hasUrl: true,
+ hasHeaderScale: true,
+ hasCornerRadius: true,
+ hasHeaderOpacity: true,
+ },
+ defaultConfig: {
+ darkMode: false,
+ frameColor: "#f6f6f6",
+ url: "https://freeshot.dev",
+ headerScale: 60,
+ cornerRadius: 12,
+ },
+ preview: (
+ <BravePreview />
+ ),
+ },
+ {
+ id: "brave-glass",
+ name: "Brave Glass",
+ category: "browser",
+ features: {
+ hasDarkMode: true,
+ hasFrameColor: true,
+ hasUrl: true,
+ hasHeaderScale: true,
+ hasCornerRadius: true,
+ hasHeaderOpacity: true,
+ },
+ defaultConfig: {
+ darkMode: false,
+ frameColor: "#f6f6f6",
+ url: "https://freeshot.dev",
+ headerScale: 60,
+ cornerRadius: 12,
+ },
+ preview: (
+ <BraveGlassPreview />
+ ),
+ },
+ {
+ id: "browser-tab-glass",
+ name: "Browser Tab Glass",
+ category: "browser",
+ features: {
+ hasDarkMode: true,
+ hasFrameColor: false,
+ hasUrl: true,
+ hasHeaderScale: true,
+ hasCornerRadius: true,
+ hasHeaderOpacity: false,
+ },
+ defaultConfig: {
+ darkMode: false,
+ url: "https://freeshot.dev",
+ headerScale: 60,
+ cornerRadius: 12,
+ },
+ preview: (
+ <BrowserTabGlassPreview />
+ ),
+ },
+ {
+ id: "chrome",
+ name: "Chrome",
+ category: "browser",
+ features: {
+ hasDarkMode: true,
+ hasFrameColor: true,
+ hasUrl: true,
+ hasHeaderScale: true,
+ hasCornerRadius: true,
+ hasHeaderOpacity: true,
+ },
+ defaultConfig: {
+ darkMode: false,
+ frameColor: "#f6f6f6",
+ url: "https://freeshot.dev",
+ headerScale: 60,
+ cornerRadius: 12,
+ },
+ preview: (
+ <ChromePreview />
+ ),
+ },
+ {
+ id: "chrome-glass",
+ name: "Chrome Glass",
+ category: "browser",
+ features: {
+ hasDarkMode: true,
+ hasFrameColor: true,
+ hasUrl: true,
+ hasHeaderScale: true,
+ hasCornerRadius: true,
+ hasHeaderOpacity: true,
+ },
+ defaultConfig: {
+ darkMode: false,
+ frameColor: "#f6f6f6",
+ url: "https://freeshot.dev",
+ headerScale: 60,
+ cornerRadius: 12,
+ },
+ preview: (
+ <ChromeGlassPreview />
+ ),
+ },
+
+ // Mobile Mockups
+ {
+ id: "iphone-slim",
+ name: "iPhone Slim",
+ category: "mobile",
+ features: {
+ hasDarkMode: true,
+ hasFrameColor: true,
+ hasUrl: false, // No tiene URL
+ hasHeaderScale: true,
+ hasCornerRadius: true,
+ hasHeaderOpacity: true,
+ },
+ defaultConfig: {
+ darkMode: false,
+ frameColor: "#262626",
+ headerScale: 60,
+ cornerRadius: 28,
+ },
+ preview: (
+ <IphoneSlimPreview />
+ ),
+ },
+ {
+ id: "iphone-base",
+ name: "iPhone Base",
+ category: "mobile",
+ preview: (
+ <IphoneBasePreview />
+ ),
+ },
+ {
+ id: "glass-curve",
+ name: "Glass Curve",
+ category: "mobile",
+ preview: (
+ <GlassCurvePreview />
+ ),
+ },
+ {
+ id: "glass-base",
+ name: "Glass Base",
+ category: "mobile",
+ preview: (
+ <GlassBasePreview />
+ ),
+ },
+ {
+ id: "glass-full",
+ name: "Glass Full",
+ category: "mobile",
+ preview: (
+ <GlassFullPreview />
+ ),
+ },
+ {
+ id: "hard-shell",
+ name: "Hard Shell",
+ category: "mobile",
+ preview: (
+ <HardShellPreview />
+ ),
+ },
+ {
+ id: "s24-ultra",
+ name: "S24 Ultra",
+ category: "mobile",
+ preview: (
+ <S24UltraPreview />
+ ),
+ },
+
+ // IDE Mockups
+ {
+ id: "vscode",
+ name: "VS CODE",
+ category: "ide",
+ features: {
+ hasDarkMode: true,
+ hasFrameColor: true,
+ hasUrl: true,
+ hasHeaderScale: true,
+ hasCornerRadius: true,
+ hasHeaderOpacity: true,
+ },
+ defaultConfig: {
+ darkMode: true,
+ frameColor: "#1e1e1e",
+ url: "https://freeshot.dev",
+ headerScale: 60,
+ cornerRadius: 8,
+ },
+ preview: (
+ <VSCodePreview />
+ ),
+ },
+ {
+ id: "macos-dark-ide",
+ name: "Macos dark",
+ category: "ide",
+ features: {
+ hasDarkMode: true,
+ hasFrameColor: true,
+ hasUrl: true,
+ hasHeaderScale: true,
+ hasCornerRadius: true,
+ hasHeaderOpacity: true,
+ },
+ defaultConfig: {
+ darkMode: true,
+ frameColor: "#1e1e1e",
+ url: "https://freeshot.dev",
+ headerScale: 60,
+ cornerRadius: 8,
+ },
+ preview: (
+ <MacosDarkPreview />
+ ),
+ },
+ {
+ id: "macos-ghost-ide",
+ name: "Macos Ghost",
+ category: "ide",
+ features: {
+ hasDarkMode: true,
+ hasFrameColor: true,
+ hasUrl: true,
+ hasHeaderScale: true,
+ hasCornerRadius: true,
+ hasHeaderOpacity: true,
+ },
+ defaultConfig: {
+ darkMode: true,
+ frameColor: "#1e1e1e",
+ url: "https://freeshot.dev",
+ headerScale: 60,
+ cornerRadius: 8,
+ },
+ preview: (
+ <MacosGhostIdePreview />
+ ),
+ },
+];
+
+export const MOCKUP_CATEGORIES = [
+ { id: "all" as const, label: "Todos", icon: "ph:grid-four-bold" },
+ { id: "browser" as const, label: "Browser", icon: "hugeicons:browser", bgUrl: "/images/mockups/bg-browser.avif" },
+ { id: "mobile" as const, label: "Mobile", icon: "ph:device-mobile-bold", bgUrl: "/images/mockups/bg-mobile.avif" },
+ { id: "ide" as const, label: "IDE", icon: "ph:code-bold", bgUrl: "/images/mockups/bg-ide.avif" },
+];
diff --git a/lib/mockup-previews.tsx b/lib/mockup-previews.tsx
new file mode 100644
index 0000000..101b2d6
--- /dev/null
+++ b/lib/mockup-previews.tsx
@@ -0,0 +1,573 @@
+// ── Browser Previews ──────────────────────────────────────────────────────
+export function NonePreview() {
+ return (
+ <div className="absolute top-4 left-4 w-[160%] h-[160%] bg-[#f9f9f9] rounded-tl-lg shadow-[0_0_30px_rgba(0,0,0,0.5)] border-t border-l border-white/20 flex flex-col overflow-hidden">
+ <div className="flex-1 bg-[#f9f9f9]"></div>
+ </div>
+ );
+}
+
+export function MacosPreview() {
+ return (
+ <div className="absolute top-4 left-4 sm:top-5 sm:left-5 w-[160%] h-[160%] bg-[#f9f9f9] rounded-tl-lg shadow-[0_0_30px_rgba(0,0,0,0.5)] border-t border-l border-white/40 flex flex-col">
+ <div className="h-6 sm:h-7 bg-[#f6f6f6] flex items-center px-3 justify-between border-b border-gray-300 rounded-tl-lg">
+ <div className="flex items-center gap-2">
+ <div className="flex gap-1.5">
+ <div className="w-2 h-2 rounded-full bg-[#FF5F56] border-[0.5px] border-[#E0443E]"></div>
+ <div className="w-2 h-2 rounded-full bg-[#FFBD2E] border-[0.5px] border-[#DEA123]"></div>
+ <div className="w-2 h-2 rounded-full bg-[#27C93F] border-[0.5px] border-[#1AAB29]"></div>
+ </div>
+ <div className="flex gap-1">
+ <div className="w-2 h-2 bg-gray-200 rounded-sm"></div>
+ <div className="w-2 h-2 bg-gray-200 rounded-sm"></div>
+ <div className="w-2 h-2 bg-gray-200 rounded-sm"></div>
+ </div>
+ </div>
+ <div className="flex-1 max-w-[50%] mx-2">
+ <div className="bg-white rounded h-3 w-full flex items-center px-1.5 gap-1 border border-gray-300/50 shadow-sm">
+ <div className="w-1.5 h-1.5 bg-gray-300 rounded-full flex-shrink-0"></div>
+ <div className="w-full h-1 bg-gray-200 rounded"></div>
+ </div>
+ </div>
+ <div className="flex gap-1.5">
+ <div className="w-1.5 h-1.5 rounded-[1px] bg-gray-300"></div>
+ <div className="w-1.5 h-1.5 rounded-[1px] bg-gray-300"></div>
+ </div>
+ </div>
+ <div className="flex-1 bg-[#f9f9f9] relative"></div>
+ </div>
+ );
+}
+
+export function MacosGlassPreview() {
+ return (
+ <div className="absolute top-3 left-3 w-[165%] h-[165%] rounded-tl-xl flex flex-col glass-border">
+ <div className="w-full h-full rounded-tl-lg overflow-hidden flex flex-col bg-[#f9f9f9] shadow-[0_0_30px_rgba(0,0,0,0.4)]" style={{ borderTop: "1px solid rgba(255,255,255,0.6)", borderLeft: "1px solid rgba(255,255,255,0.6)" }}>
+ <div className="h-6 bg-[#f6f6f6] flex items-center px-3 justify-between border-b border-gray-300 flex-shrink-0">
+ <div className="flex items-center gap-2">
+ <div className="flex gap-1.5">
+ <div className="w-2 h-2 rounded-full bg-[#FF5F56] border-[0.5px] border-[#E0443E]"></div>
+ <div className="w-2 h-2 rounded-full bg-[#FFBD2E] border-[0.5px] border-[#DEA123]"></div>
+ <div className="w-2 h-2 rounded-full bg-[#27C93F] border-[0.5px] border-[#1AAB29]"></div>
+ </div>
+ <div className="flex gap-1">
+ <div className="w-2 h-2 bg-gray-200 rounded-sm"></div>
+ <div className="w-2 h-2 bg-gray-200 rounded-sm"></div>
+ <div className="w-2 h-2 bg-gray-200 rounded-sm"></div>
+ </div>
+ </div>
+ <div className="flex-1 max-w-[50%] mx-2">
+ <div className="bg-white rounded h-3 w-full flex items-center px-1.5 gap-1 border border-gray-300/50 shadow-sm">
+ <div className="w-1.5 h-1.5 bg-gray-300 rounded-full flex-shrink-0"></div>
+ <div className="w-full h-1 bg-gray-200 rounded"></div>
+ </div>
+ </div>
+ <div className="flex gap-1.5">
+ <div className="w-1.5 h-1.5 rounded-[1px] bg-gray-300"></div>
+ <div className="w-1.5 h-1.5 rounded-[1px] bg-gray-300"></div>
+ </div>
+ </div>
+ <div className="flex-1 bg-[#f9f9f9]"></div>
+ </div>
+ </div>
+ );
+}
+
+export function GlassUIContainerPreview() {
+ return (
+ <div className="absolute top-4 left-4 w-[160%] h-[160%] rounded-tl-2xl border-t border-l border-white/30 shadow-[0_0_30px_rgba(0,0,0,0.5)] flex flex-col p-1.5" style={{ background: "rgba(255,255,255,0.2)" }}>
+ <div className="flex-1 bg-[#f9f9f9] rounded-xl border border-white/10 shadow-inner"></div>
+ </div>
+ );
+}
+
+export function MacosGhostPreview() {
+ return (
+ <div className="absolute top-4 left-4 w-[160%] h-[160%] bg-[#f9f9f9] rounded-tl-lg shadow-[0_0_30px_rgba(0,0,0,0.5)] border-t border-l border-white/40 flex flex-col">
+ <div className="h-6 bg-[#f6f6f6] flex items-center px-3 justify-between border-b border-gray-300 rounded-tl-lg">
+ <div className="flex items-center gap-2">
+ <div className="flex gap-1.5">
+ <div className="w-2 h-2 rounded-full border border-gray-400"></div>
+ <div className="w-2 h-2 rounded-full border border-gray-400"></div>
+ <div className="w-2 h-2 rounded-full border border-gray-400"></div>
+ </div>
+ <div className="flex gap-1">
+ <div className="w-2 h-2 bg-gray-200 rounded-sm"></div>
+ <div className="w-2 h-2 bg-gray-200 rounded-sm"></div>
+ <div className="w-2 h-2 bg-gray-200 rounded-sm"></div>
+ </div>
+ </div>
+ <div className="flex-1 max-w-[50%] mx-2">
+ <div className="bg-white rounded h-3 w-full flex items-center px-1.5 gap-1 border border-gray-300/50 shadow-sm">
+ <div className="w-1.5 h-1.5 bg-gray-300 rounded-full flex-shrink-0"></div>
+ <div className="w-full h-1 bg-gray-200 rounded"></div>
+ </div>
+ </div>
+ <div className="flex gap-1">
+ <div className="w-2 h-2 bg-gray-200 rounded-sm"></div>
+ <div className="w-2 h-2 bg-gray-200 rounded-sm"></div>
+ <div className="w-2 h-2 bg-gray-200 rounded-sm"></div>
+ </div>
+ </div>
+ <div className="flex-1 bg-[#f9f9f9]"></div>
+ </div>
+ );
+}
+
+export function MacosGhostGlassPreview() {
+ return (
+ <div className="absolute top-3 left-3 w-[165%] h-[165%] rounded-tl-xl flex flex-col glass-border">
+ <div className="h-6 bg-[#f6f6f6] flex items-center px-3 justify-between border-b border-gray-300 rounded-tl-lg">
+ <div className="flex items-center gap-2">
+ <div className="flex gap-1.5">
+ <div className="w-2 h-2 rounded-full border border-gray-400"></div>
+ <div className="w-2 h-2 rounded-full border border-gray-400"></div>
+ <div className="w-2 h-2 rounded-full border border-gray-400"></div>
+ </div>
+ <div className="flex gap-1">
+ <div className="w-2 h-2 bg-gray-200 rounded-sm"></div>
+ <div className="w-2 h-2 bg-gray-200 rounded-sm"></div>
+ <div className="w-2 h-2 bg-gray-200 rounded-sm"></div>
+ </div>
+ </div>
+ <div className="flex-1 max-w-[50%] mx-2">
+ <div className="bg-white rounded h-3 w-full flex items-center px-1.5 gap-1 border border-gray-300/50 shadow-sm">
+ <div className="w-1.5 h-1.5 bg-gray-300 rounded-full flex-shrink-0"></div>
+ <div className="w-full h-1 bg-gray-200 rounded"></div>
+ </div>
+ </div>
+ <div className="flex gap-1">
+ <div className="w-2 h-2 bg-gray-200 rounded-sm"></div>
+ <div className="w-2 h-2 bg-gray-200 rounded-sm"></div>
+ <div className="w-2 h-2 bg-gray-200 rounded-sm"></div>
+ </div>
+ </div>
+ <div className="flex-1 bg-[#f9f9f9]"></div>
+ </div>
+ );
+}
+
+export function MacosContainerGlassPreview() {
+ return (
+ <div className="absolute top-3 left-3 w-[165%] h-[165%] rounded-tl-xl flex flex-col glass-border">
+ <div className="flex gap-1 mb-1 px-0.5">
+ <div className="w-1.5 h-1.5 rounded-full bg-white shadow-2xs"></div>
+ <div className="w-1.5 h-1.5 rounded-full bg-white shadow-2xs"></div>
+ <div className="w-1.5 h-1.5 rounded-full bg-white shadow-2xs"></div>
+ </div>
+ <div className="flex-1 bg-[#f9f9f9] rounded-lg border border-white/40 shadow-inner"></div>
+ </div>
+ );
+}
+
+export function BravePreview() {
+ return (
+ <div className="absolute top-4 left-4 w-[160%] h-[160%] bg-[#f9f9f9] rounded-tl-lg shadow-[0_0_30px_rgba(0,0,0,0.5)] border-t border-l border-white/40 flex flex-col">
+ <div className="h-6 bg-[#f3f3f3] flex items-center justify-between border-b border-gray-300 rounded-tl-lg">
+ <div className="flex items-center gap-1.5 px-2 text-gray-400">
+ <div className="w-2 h-2 bg-gray-300 rounded-sm"></div>
+ <div className="w-2 h-2 bg-gray-200 rounded-sm"></div>
+ <div className="w-2 h-2 bg-gray-300 rounded-sm"></div>
+ </div>
+ <div className="flex-1 max-w-[50%] mx-1.5">
+ <div className="bg-white rounded h-3 w-full flex items-center px-1.5 gap-1 border border-gray-200 shadow-sm">
+ <div className="w-1.5 h-1.5 bg-gray-300 rounded-full flex-shrink-0"></div>
+ <div className="w-full h-1 bg-gray-200 rounded"></div>
+ <div className="w-1.5 h-1.5 bg-yellow-400/70 rounded-full flex-shrink-0"></div>
+ </div>
+ </div>
+ <div className="flex items-center h-full">
+ <div className="flex gap-1 px-1.5">
+ <div className="w-1.5 h-1.5 bg-gray-300 rounded-sm"></div>
+ <div className="w-1.5 h-1.5 bg-gray-300 rounded-sm"></div>
+ </div>
+ <div className="flex h-full">
+ <div className="w-4 h-full flex items-center justify-center bg-gray-100/80">
+ <div className="w-2 h-0.5 bg-gray-400"></div>
+ </div>
+ <div className="w-4 h-full flex items-center justify-center bg-gray-100/80">
+ <div className="w-2 h-2 border border-gray-400"></div>
+ </div>
+ <div className="w-4 h-full flex items-center justify-center bg-gray-100/80">
+ <div className="text-gray-400 text-[6px] font-bold leading-none">✕</div>
+ </div>
+ </div>
+ </div>
+ </div>
+ <div className="flex-1 bg-[#f9f9f9]"></div>
+ </div>
+ );
+}
+
+export function BraveGlassPreview() {
+ return (
+ <div className="absolute top-3 left-3 w-[165%] h-[165%] rounded-tl-xl flex flex-col glass-border">
+ <div className="h-6 bg-[#f3f3f3] flex items-center justify-between border-b border-gray-300 rounded-tl-lg">
+ <div className="flex items-center gap-1.5 px-2 text-gray-400">
+ <div className="w-2 h-2 bg-gray-300 rounded-sm"></div>
+ <div className="w-2 h-2 bg-gray-200 rounded-sm"></div>
+ <div className="w-2 h-2 bg-gray-300 rounded-sm"></div>
+ </div>
+ <div className="flex-1 max-w-[50%] mx-1.5">
+ <div className="bg-white rounded h-3 w-full flex items-center px-1.5 gap-1 border border-gray-200 shadow-sm">
+ <div className="w-1.5 h-1.5 bg-gray-300 rounded-full flex-shrink-0"></div>
+ <div className="w-full h-1 bg-gray-200 rounded"></div>
+ <div className="w-1.5 h-1.5 bg-yellow-400/70 rounded-full flex-shrink-0"></div>
+ </div>
+ </div>
+ <div className="flex items-center h-full">
+ <div className="flex gap-1 px-1.5">
+ <div className="w-1.5 h-1.5 bg-gray-300 rounded-sm"></div>
+ <div className="w-1.5 h-1.5 bg-gray-300 rounded-sm"></div>
+ </div>
+ <div className="flex h-full">
+ <div className="w-4 h-full flex items-center justify-center bg-gray-100/80">
+ <div className="w-2 h-0.5 bg-gray-400"></div>
+ </div>
+ <div className="w-4 h-full flex items-center justify-center bg-gray-100/80">
+ <div className="w-2 h-2 border border-gray-400"></div>
+ </div>
+ <div className="w-4 h-full flex items-center justify-center bg-gray-100/80">
+ <div className="text-gray-400 text-[6px] font-bold leading-none">✕</div>
+ </div>
+ </div>
+ </div>
+ </div>
+ <div className="flex-1 bg-[#f9f9f9]"></div>
+ </div>
+ );
+}
+
+export function BrowserTabGlassPreview() {
+ return (
+ <div className="absolute top-4 left-4 w-[160%] h-[160%] rounded-tl-2xl border-t border-l border-white/40 shadow-[0_0_30px_rgba(0,0,0,0.4)] flex flex-col overflow-hidden">
+ <div className="h-6 flex items-end px-4 gap-1">
+ <div className="bg-white/40 border-t border-x border-white/50 rounded-t-lg h-4 w-20 flex items-center justify-between px-2 shadow-sm">
+ <div className="flex items-center gap-1.5">
+ <div className="w-1.5 h-1.5 rounded-full bg-white shadow-[0_0_5px_rgba(96,165,250,0.5)]"></div>
+ <div className="w-10 h-0.5 bg-gray-200 rounded-full"></div>
+ </div>
+ <div className="w-1 h-1 rounded-full bg-gray-50 flex items-center justify-center"></div>
+ </div>
+ <div className="mb-0.5 w-3.5 h-3.5 rounded-full bg-white/20 border border-white/30 flex items-center justify-center shadow-sm">
+ <span className="text-[10px] text-white/80 flex items-center justify-center h-full w-full -mt-[1px]">+</span>
+ </div>
+ </div>
+ <div className="flex-1 bg-[#f9f9f9] border-t border-white/30 shadow-inner"></div>
+ </div>
+ );
+}
+
+export function ChromePreview() {
+ return (
+ <div className="absolute top-4 left-4 w-[160%] h-[160%] bg-white rounded-tl-lg shadow-[0_0_30px_rgba(0,0,0,0.5)] border-t border-l border-white/40 flex flex-col overflow-hidden">
+ <div className="h-4 bg-[#dee1e6] flex items-end flex-shrink-0">
+ <div className="bg-white h-[14px] px-2 ml-1.5 rounded-t flex items-center gap-1 min-w-[50px] border-t border-x border-gray-300/50">
+ <div className="w-2 h-2 rounded-full bg-blue-500 flex-shrink-0"></div>
+ <div className="w-8 h-1 bg-gray-300 rounded"></div>
+ <div className="w-1.5 h-1.5 bg-gray-300 rounded-full flex-shrink-0"></div>
+ </div>
+ <div className="ml-auto flex h-full">
+ <div className="w-4 h-full flex items-center justify-center"><div className="w-2 h-0.5 bg-gray-500"></div></div>
+ <div className="w-4 h-full flex items-center justify-center"><div className="w-2 h-2 border border-gray-500"></div></div>
+ <div className="w-4 h-full flex items-center justify-center"><div className="text-gray-500 text-[6px] font-bold leading-none">✕</div></div>
+ </div>
+ </div>
+ <div className="h-5 bg-white flex items-center px-1.5 gap-1 border-b border-gray-200 flex-shrink-0">
+ <div className="flex gap-0.5">
+ <div className="w-2 h-2 bg-gray-400 rounded-sm"></div>
+ <div className="w-2 h-2 bg-gray-200 rounded-sm"></div>
+ <div className="w-2 h-2 bg-gray-300 rounded-sm"></div>
+ </div>
+ <div className="flex-1 mx-1">
+ <div className="bg-[#f1f3f4] rounded-full h-3 w-full flex items-center px-1.5 gap-1">
+ <div className="w-1.5 h-1.5 bg-gray-400 rounded-full flex-shrink-0"></div>
+ <div className="w-full h-1 bg-gray-300 rounded"></div>
+ </div>
+ </div>
+ <div className="flex gap-0.5">
+ <div className="w-2 h-2 bg-gray-200 rounded-sm"></div>
+ <div className="w-2 h-2 bg-gray-200 rounded-sm"></div>
+ </div>
+ </div>
+ <div className="flex-1 bg-white"></div>
+ </div>
+ );
+}
+
+export function ChromeGlassPreview() {
+ return (
+ <div className="absolute top-3 left-3 w-[165%] h-[165%] rounded-tl-xl flex flex-col glass-border">
+ <div className="h-4 bg-[#dee1e6] flex items-end flex-shrink-0 border-t border-l border-white rounded-tl-lg">
+ <div className="bg-white h-[14px] px-2 ml-1.5 rounded-t flex items-center gap-1 min-w-[50px] border-t border-x border-gray-300/50">
+ <div className="w-2 h-2 rounded-full bg-blue-500 flex-shrink-0"></div>
+ <div className="w-8 h-1 bg-gray-300 rounded"></div>
+ <div className="w-1.5 h-1.5 bg-gray-300 rounded-full flex-shrink-0"></div>
+ </div>
+ <div className="ml-auto flex h-full">
+ <div className="w-4 h-full flex items-center justify-center"><div className="w-2 h-0.5 bg-gray-500"></div></div>
+ <div className="w-4 h-full flex items-center justify-center"><div className="w-2 h-2 border border-gray-500"></div></div>
+ <div className="w-4 h-full flex items-center justify-center"><div className="text-gray-500 text-[6px] font-bold leading-none">✕</div></div>
+ </div>
+ </div>
+ <div className="h-5 bg-white flex items-center px-1.5 gap-1 border-b border-gray-200 flex-shrink-0">
+ <div className="flex gap-0.5">
+ <div className="w-2 h-2 bg-gray-400 rounded-sm"></div>
+ <div className="w-2 h-2 bg-gray-200 rounded-sm"></div>
+ <div className="w-2 h-2 bg-gray-300 rounded-sm"></div>
+ </div>
+ <div className="flex-1 mx-1">
+ <div className="bg-[#f1f3f4] rounded-full h-3 w-full flex items-center px-1.5 gap-1">
+ <div className="w-1.5 h-1.5 bg-gray-400 rounded-full flex-shrink-0"></div>
+ <div className="w-full h-1 bg-gray-300 rounded"></div>
+ </div>
+ </div>
+ <div className="flex gap-0.5">
+ <div className="w-2 h-2 bg-gray-200 rounded-sm"></div>
+ <div className="w-2 h-2 bg-gray-200 rounded-sm"></div>
+ </div>
+ </div>
+ <div className="flex-1 bg-white"></div>
+ </div>
+ );
+}
+
+// ── Mobile Previews ───────────────────────────────────────────────────────
+
+
+export function IphoneSlimPreview() {
+ return (
+ <div className="absolute top-4 left-1/2 -translate-x-1/2 w-[75px] h-[150px] bg-neutral-800 rounded-xl p-[2.5px] shadow-2xl border border-neutral-700 flex flex-col z-20">
+ <div className="absolute -left-[1px] top-6 w-[1.5px] h-3 bg-neutral-700 rounded-l-sm border-y border-l border-neutral-800 shadow-sm"></div>
+ <div className="absolute -left-[1px] top-10 w-[1.5px] h-6 bg-neutral-700 rounded-l-sm border-y border-l border-neutral-800 shadow-sm"></div>
+ <div className="absolute -right-[1px] top-12 w-[1.5px] h-8 bg-neutral-700 rounded-r-sm border-y border-r border-neutral-800 shadow-sm"></div>
+ <div className="relative w-full h-full bg-white rounded-lg overflow-hidden flex flex-col border border-black shadow-inner">
+ <div className="absolute top-1 left-1/2 -translate-x-1/2 w-6 h-1 bg-black rounded-full z-20 flex items-center justify-between px-0.5">
+ <div className="w-0.5 h-0.5 bg-neutral-500 rounded-full"></div>
+ <div className="w-0.5 h-0.5 bg-indigo-500 rounded-full blur-[0.2px]"></div>
+ </div>
+ <div className="absolute top-0 w-full h-3 flex items-center justify-between px-2 z-20">
+ <span className="text-[4px] font-bold text-black tracking-tight scale-75 origin-left">9:41</span>
+ <div className="flex items-center gap-0.5 scale-[0.4] origin-right">
+ <div className="flex items-end gap-[0.5px] h-2">
+ <div className="w-[1.5px] h-full bg-black rounded-full"></div>
+ </div>
+ <div className="w-4 h-2 border border-black rounded-[1px] relative">
+ <div className="h-full w-[80%] bg-black rounded-[0.5px]"></div>
+ </div>
+ </div>
+ </div>
+ <div className="w-full h-full bg-neutral-50 relative"></div>
+ <div className="absolute bottom-1 left-1/2 -translate-x-1/2 w-8 h-0.5 bg-black/10 rounded-full z-10"></div>
+ </div>
+ </div>
+ );
+}
+
+export function IphoneBasePreview() {
+ return (
+ <div className="absolute top-4 left-1/2 -translate-x-1/2 w-[75px] h-[150px] bg-neutral-800 rounded-xl p-[2.5px] shadow-2xl border border-neutral-700 flex flex-col z-20">
+ <div className="absolute -left-[1px] top-6 w-[1.5px] h-3 bg-neutral-700 rounded-l-sm border-y border-l border-neutral-800"></div>
+ <div className="absolute -left-[1px] top-10 w-[1.5px] h-6 bg-neutral-700 rounded-l-sm border-y border-l border-neutral-800"></div>
+ <div className="absolute -right-[1px] top-12 w-[1.5px] h-8 bg-neutral-700 rounded-r-sm border-y border-r border-neutral-800"></div>
+ <div className="relative w-full h-full bg-white rounded-lg overflow-hidden flex flex-col border border-black shadow-inner">
+ <div className="absolute top-1 left-1/2 -translate-x-1/2 w-6 h-1 bg-black rounded-full z-20 flex items-center justify-between px-0.5">
+ <div className="w-0.5 h-0.5 bg-neutral-500 rounded-full"></div>
+ <div className="w-0.5 h-0.5 bg-indigo-500 rounded-full blur-[0.2px]"></div>
+ </div>
+ <div className="w-full h-full bg-neutral-50 relative"></div>
+ <div className="absolute bottom-1 left-1/2 -translate-x-1/2 w-8 h-0.5 bg-black/10 rounded-full z-10"></div>
+ </div>
+ </div>
+ );
+}
+
+export function GlassCurvePreview() {
+ return (
+ <div className="absolute top-4 left-1/2 -translate-x-1/2 w-[75px] h-[150px] bg-white/40 backdrop-blur-xl rounded-t-xl p-[3px] shadow-2xl border border-white/70 overflow-hidden z-20">
+ <div className="absolute inset-y-0 left-0 w-2 bg-gradient-to-r from-white/20 to-transparent z-10"></div>
+ <div className="absolute inset-y-0 right-0 w-2 bg-gradient-to-l from-white/20 to-transparent z-10"></div>
+ <div className="relative w-full h-full bg-white rounded-t-lg overflow-hidden shadow-inner flex flex-col">
+ <div className="absolute top-1.5 left-1/2 -translate-x-1/2 w-4 h-0.5 bg-black/10 rounded-full z-20"></div>
+ <div className="w-full h-full bg-white"></div>
+ </div>
+ </div>
+ );
+}
+
+export function GlassBasePreview() {
+ return (
+ <div className="absolute top-4 left-1/2 -translate-x-1/2 w-[75px] h-[150px] bg-white/40 backdrop-blur-xl rounded-xl p-[2.5px] shadow-2xl border border-white/70 flex flex-col z-20">
+ <div className="absolute -left-[1px] top-6 w-[1px] h-3 bg-white/50 rounded-l-sm border-y border-l border-white/30"></div>
+ <div className="absolute -left-[1px] top-10 w-[1px] h-6 bg-white/50 rounded-l-sm border-y border-l border-white/30"></div>
+ <div className="absolute -right-[1px] top-12 w-[1px] h-8 bg-white/50 rounded-r-sm border-y border-r border-white/30"></div>
+ <div className="relative w-full h-full bg-[#f9f9f9] rounded-lg overflow-hidden shadow-inner border border-black/5 flex flex-col">
+ <div className="absolute top-1 left-1/2 -translate-x-1/2 w-6 h-1 bg-black/10 rounded-full z-20 flex items-center justify-between px-0.5">
+ <div className="w-0.5 h-0.5 bg-neutral-400 rounded-full"></div>
+ <div className="w-0.5 h-0.5 bg-indigo-400/50 rounded-full blur-[0.2px]"></div>
+ </div>
+ <div className="w-full h-full bg-neutral-50"></div>
+ <div className="absolute bottom-1 left-1/2 -translate-x-1/2 w-8 h-0.5 bg-black/5 rounded-full z-10"></div>
+ </div>
+ </div>
+ );
+}
+
+export function GlassFullPreview() {
+ return (
+ <div className="absolute top-4 left-1/2 -translate-x-1/2 w-[75px] h-[150px] bg-white/40 backdrop-blur-xl rounded-xl p-[2.5px] shadow-2xl border border-white/70 flex flex-col z-20">
+ <div className="absolute -left-[1px] top-6 w-[1px] h-3 bg-white/50 rounded-l-sm border-y border-l border-white/30 shadow-sm"></div>
+ <div className="absolute -left-[1px] top-10 w-[1px] h-6 bg-white/50 rounded-l-sm border-y border-l border-white/30 shadow-sm"></div>
+ <div className="absolute -right-[1px] top-12 w-[1px] h-8 bg-white/50 rounded-r-sm border-y border-r border-white/30 shadow-sm"></div>
+ <div className="relative w-full h-full bg-[#f9f9f9] rounded-lg overflow-hidden shadow-inner border border-black/5 flex flex-col">
+ <div className="absolute top-1 left-1/2 -translate-x-1/2 w-6 h-1.5 bg-black/5 rounded-full z-20 flex items-center justify-between px-0.5">
+ <div className="w-0.5 h-0.5 bg-neutral-400 rounded-full"></div>
+ <div className="w-0.5 h-0.5 bg-indigo-400/50 rounded-full blur-[0.2px]"></div>
+ </div>
+ <div className="absolute top-0 w-full h-3 flex items-center justify-between px-2 z-20">
+ <span className="text-[4px] font-bold text-black/40 scale-75 origin-left">9:41</span>
+ <div className="flex items-center gap-0.5 scale-[0.4] origin-right opacity-40">
+ <div className="flex items-end gap-[0.5px] h-2">
+ <div className="w-[1.5px] h-full bg-black rounded-full"></div>
+ </div>
+ <div className="w-4 h-2 border border-black rounded-[1px] relative">
+ <div className="h-full w-[80%] bg-black rounded-[0.5px]"></div>
+ </div>
+ </div>
+ </div>
+ <div className="w-full h-full bg-neutral-50"></div>
+ <div className="absolute bottom-1 left-1/2 -translate-x-1/2 w-8 h-0.5 bg-black/5 rounded-full z-10"></div>
+ </div>
+ </div>
+ );
+}
+
+export function HardShellPreview() {
+ return (
+ <div className="absolute top-4 left-1/2 -translate-x-1/2 w-[75px] h-[155px] bg-zinc-200 rounded-md p-[2.5px] shadow-2xl border border-zinc-400 flex items-center justify-center z-20">
+ <div className="absolute -right-[1px] top-6 w-[1.5px] h-3 bg-zinc-400 rounded-r-sm border border-zinc-500"></div>
+ <div className="absolute -right-[1px] top-11 w-[1.5px] h-2 bg-zinc-400 rounded-r-sm border border-zinc-500"></div>
+ <div className="relative w-full h-full bg-black rounded-[4px] p-[1.5px] overflow-hidden flex items-center justify-center">
+ <div className="relative w-full h-full bg-slate-50 rounded-[2px] flex flex-col overflow-hidden">
+ <div className="absolute top-1 left-1/2 -translate-x-1/2 size-1 bg-black rounded-full z-20"></div>
+ <div className="w-full h-4 flex items-center justify-between z-10 scale-[0.7] origin-top">
+ <span className="text-[8px] font-medium">11:43</span>
+ <div className="flex items-center gap-0.5">
+ <div className="w-2.5 h-1.5 border border-black rounded-[1px]"></div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ );
+}
+
+export function S24UltraPreview() {
+ return (
+ <div className="absolute top-4 left-1/2 -translate-x-1/2 w-[75px] h-[150px] bg-neutral-900 rounded-lg p-[2.5px] shadow-2xl border border-neutral-700 flex flex-col z-20">
+ <div className="absolute -right-[1px] top-6 w-[1px] h-3 bg-neutral-500 rounded-r-sm border border-neutral-800"></div>
+ <div className="absolute -right-[1px] top-11 w-[1px] h-5 bg-neutral-500 rounded-r-sm border border-neutral-800"></div>
+ <div className="relative w-full h-full bg-white rounded-md overflow-hidden flex flex-col border border-black shadow-inner">
+ <div className="absolute top-1 left-1/2 -translate-x-1/2 size-1 bg-black rounded-full z-20"></div>
+ <div className="w-full h-4 flex items-center justify-between z-10 scale-[0.7] origin-top">
+ <span className="text-[8px] font-medium">11:43</span>
+ <div className="flex items-center gap-0.5">
+ <div className="w-2.5 h-1.5 border border-black rounded-[1px]"></div>
+ </div>
+ </div>
+ <div className="absolute bottom-1 w-full flex items-center justify-center gap-3 opacity-20 scale-50">
+ <div className="w-2 h-2 border border-black"></div>
+ <div className="w-2 h-2 border border-black rounded-full"></div>
+ <div className="w-2 h-2 border-l border-b border-black rotate-45"></div>
+ </div>
+ </div>
+ </div>
+ );
+}
+
+// ── IDE Previews ──────────────────────────────────────────────────────────
+
+export function VSCodePreview() {
+ return (
+ <div className="absolute top-4 left-4 w-[160%] h-[160%] bg-[#1e1e1e] rounded-lg shadow-2xl border border-white/10 flex flex-col overflow-hidden">
+ <div className="flex items-center justify-between px-2 h-7 bg-[#181818] border-b border-white/5">
+ <div className="flex items-center gap-1.5 scale-75 origin-left">
+ <div className="text-blue-500">
+ <svg className="w-3.5 h-3.5" fill="currentColor" viewBox="0 0 24 24">
+ <path d="M23.15 2.587L18.21.21a1.494 1.494 0 0 0-1.705.29l-9.46 8.63-4.12-3.128a.999.999 0 0 0-1.276.057L.327 7.261A1 1 0 0 0 .326 8.74L3.899 12 .326 15.26a1 1 0 0 0 0 1.479l1.323 1.202a.999.999 0 0 0 1.277.058l4.12-3.128 9.46 8.63a1.492 1.492 0 0 0 1.704.29l4.942-2.377A1.5 1.5 0 0 0 24 20.06V3.939a1.5 1.5 0 0 0-.85-1.352zm-5.146 14.861L10.826 12l7.178-5.448v10.896z" />
+ </svg>
+ </div>
+ <div className="flex gap-2 text-[#cccccc] text-[9px]">
+ <span>File</span><span>Edit</span><span>Selection</span>
+ </div>
+ </div>
+ <div className="flex-1 flex justify-center px-4">
+ <div className="w-full max-w-[100px] h-[16px] bg-[#2b2b2b] border border-white/10 rounded flex items-center justify-center gap-1">
+ <div className="w-1.5 h-1.5 border border-neutral-500 rounded-full"></div>
+ <div className="w-8 h-0.5 bg-neutral-600 rounded-full"></div>
+ </div>
+ </div>
+ <div className="flex items-center gap-2 scale-75 origin-right pr-1">
+ <div className="w-2 h-[1px] bg-neutral-500"></div>
+ <div className="w-2 h-2 border border-neutral-500"></div>
+ <div className="w-2 h-2 flex items-center justify-center text-neutral-500">×</div>
+ </div>
+ </div>
+ <div className="flex-1 bg-[#1e1e1e]"></div>
+ </div>
+ );
+}
+
+export function MacosDarkPreview() {
+ return (
+ <div className="absolute top-4 left-4 w-[160%] h-[160%] bg-[#1e1e1e] rounded-lg shadow-2xl border border-white/10 flex flex-col overflow-hidden">
+ <div className="flex items-center justify-between px-2 h-7 bg-[#181818] border-b border-white/5">
+ <div className="flex items-center gap-2 scale-75 origin-left">
+ <div className="flex gap-1.5 px-1">
+ <div className="w-2 h-2 rounded-full bg-[#ff5f57] border border-[#e0443e]"></div>
+ <div className="w-2 h-2 rounded-full bg-[#febc2e] border border-[#d89f24]"></div>
+ <div className="w-2 h-2 rounded-full bg-[#28c840] border border-[#1aab29]"></div>
+ </div>
+ <div className="flex gap-2 text-[#999999] text-[9px] ml-1">
+ <span>File</span><span>Edit</span><span>Selection</span>
+ </div>
+ </div>
+ <div className="flex-1 flex justify-center px-4">
+ <div className="w-full max-w-[100px] h-[16px] bg-[#2b2b2b] border border-white/10 rounded flex items-center justify-center gap-1">
+ <div className="w-1.5 h-1.5 border border-neutral-500 rounded-full"></div>
+ <div className="w-8 h-0.5 bg-neutral-600 rounded-full"></div>
+ </div>
+ </div>
+ <div className="w-10"></div>
+ </div>
+ <div className="flex-1 bg-[#1e1e1e]"></div>
+ </div>
+ );
+}
+
+export function MacosGhostIdePreview() {
+ return (
+ <div className="absolute top-4 left-4 w-[160%] h-[160%] bg-[#1e1e1e] rounded-lg shadow-2xl border border-white/10 flex flex-col overflow-hidden">
+ <div className="flex items-center justify-between px-2 h-7 bg-[#181818] border-b border-white/5">
+ <div className="flex items-center gap-2 scale-75 origin-left">
+ <div className="flex gap-1.5 px-1">
+ <div className="w-2 h-2 rounded-full border border-white/40 bg-transparent"></div>
+ <div className="w-2 h-2 rounded-full border border-white/40 bg-transparent"></div>
+ <div className="w-2 h-2 rounded-full border border-white/40 bg-transparent"></div>
+ </div>
+ <div className="flex gap-2 text-[#999999] text-[9px] ml-1">
+ <span>File</span><span>Edit</span><span>Selection</span>
+ </div>
+ </div>
+ <div className="flex-1 flex justify-center px-4">
+ <div className="w-full max-w-[100px] h-[16px] bg-[#2b2b2b] border border-white/10 rounded flex items-center justify-center gap-1">
+ <div className="w-1.5 h-1.5 border border-neutral-500 rounded-full"></div>
+ <div className="w-8 h-0.5 bg-neutral-600 rounded-full"></div>
+ </div>
+ </div>
+ <div className="w-10"></div>
+ </div>
+ <div className="flex-1 bg-[#1e1e1e]"></div>
+ </div>
+ );
+}
\ No newline at end of file
diff --git a/lib/thumbnail-cache.ts b/lib/thumbnail-cache.ts
new file mode 100644
index 0000000..5bae99a
--- /dev/null
+++ b/lib/thumbnail-cache.ts
@@ -0,0 +1,188 @@
+/**
+ * IndexedDB cache for video thumbnails
+ * Prevents regenerating thumbnails for the same video
+ */
+
+const DB_NAME = "freeshot-thumbnails";
+const DB_VERSION = 1;
+const STORE_NAME = "thumbnails";
+
+export interface CachedThumbnailSet {
+ videoId: string;
+ quality: string;
+ interval: number;
+ thumbnails: { time: number; dataUrl: string }[];
+ createdAt: number;
+}
+
+let dbInstance: IDBDatabase | null = null;
+
+/**
+ * Open IndexedDB connection
+ */
+async function openDB(): Promise<IDBDatabase> {
+ if (dbInstance) return dbInstance;
+
+ return new Promise((resolve, reject) => {
+ const request = indexedDB.open(DB_NAME, DB_VERSION);
+
+ request.onerror = () => reject(request.error);
+ request.onsuccess = () => {
+ dbInstance = request.result;
+ resolve(request.result);
+ };
+
+ request.onupgradeneeded = (event) => {
+ const db = (event.target as IDBOpenDBRequest).result;
+ if (!db.objectStoreNames.contains(STORE_NAME)) {
+ const store = db.createObjectStore(STORE_NAME, { keyPath: "cacheKey" });
+ store.createIndex("videoId", "videoId", { unique: false });
+ store.createIndex("createdAt", "createdAt", { unique: false });
+ }
+ };
+ });
+}
+
+/**
+ * Get cached thumbnails for a video by videoId
+ */
+export async function getCachedThumbnails(
+ videoId: string,
+ quality: string,
+ interval: number
+): Promise<CachedThumbnailSet | null> {
+ try {
+ const db = await openDB();
+ const cacheKey = `${videoId}-${quality}-${interval}`;
+
+ return new Promise((resolve, reject) => {
+ const transaction = db.transaction(STORE_NAME, "readonly");
+ const store = transaction.objectStore(STORE_NAME);
+ const request = store.get(cacheKey);
+
+ request.onerror = () => reject(request.error);
+ request.onsuccess = () => {
+ const result = request.result;
+ if (result) {
+ // Check if cache is not too old (7 days)
+ const maxAge = 7 * 24 * 60 * 60 * 1000;
+ if (Date.now() - result.createdAt < maxAge) {
+ resolve(result);
+ } else {
+ // Cache expired, delete it
+ deleteCachedThumbnails(videoId, quality, interval);
+ resolve(null);
+ }
+ } else {
+ resolve(null);
+ }
+ };
+ });
+ } catch (error) {
+ console.warn("Failed to get cached thumbnails:", error);
+ return null;
+ }
+}
+
+/**
+ * Save thumbnails to cache
+ */
+export async function saveThumbnailsToCache(
+ videoId: string,
+ quality: string,
+ interval: number,
+ thumbnails: { time: number; dataUrl: string }[]
+): Promise<void> {
+ try {
+ const db = await openDB();
+ const cacheKey = `${videoId}-${quality}-${interval}`;
+
+ const data: CachedThumbnailSet & { cacheKey: string } = {
+ cacheKey,
+ videoId,
+ quality,
+ interval,
+ thumbnails,
+ createdAt: Date.now(),
+ };
+
+ return new Promise((resolve, reject) => {
+ const transaction = db.transaction(STORE_NAME, "readwrite");
+ const store = transaction.objectStore(STORE_NAME);
+ const request = store.put(data);
+
+ request.onerror = () => reject(request.error);
+ request.onsuccess = () => resolve();
+ });
+ } catch (error) {
+ console.warn("Failed to save thumbnails to cache:", error);
+ }
+}
+
+/**
+ * Delete cached thumbnails
+ */
+export async function deleteCachedThumbnails(
+ videoId: string,
+ quality: string,
+ interval: number
+): Promise<void> {
+ try {
+ const db = await openDB();
+ const cacheKey = `${videoId}-${quality}-${interval}`;
+
+ return new Promise((resolve, reject) => {
+ const transaction = db.transaction(STORE_NAME, "readwrite");
+ const store = transaction.objectStore(STORE_NAME);
+ const request = store.delete(cacheKey);
+
+ request.onerror = () => reject(request.error);
+ request.onsuccess = () => resolve();
+ });
+ } catch (error) {
+ console.warn("Failed to delete cached thumbnails:", error);
+ }
+}
+
+/**
+ * Clear all cached thumbnails (for cleanup)
+ */
+export async function clearAllThumbnailCache(): Promise<void> {
+ try {
+ const db = await openDB();
+ return new Promise((resolve, reject) => {
+ const transaction = db.transaction(STORE_NAME, "readwrite");
+ const store = transaction.objectStore(STORE_NAME);
+ const request = store.clear();
+
+ request.onerror = () => reject(request.error);
+ request.onsuccess = () => resolve();
+ });
+ } catch (error) {
+ console.warn("Failed to clear thumbnail cache:", error);
+ }
+}
+
+/**
+ * Get cache size info
+ */
+export async function getThumbnailCacheInfo(): Promise<{ count: number; estimatedSize: string }> {
+ try {
+ const db = await openDB();
+ return new Promise((resolve, reject) => {
+ const transaction = db.transaction(STORE_NAME, "readonly");
+ const store = transaction.objectStore(STORE_NAME);
+ const request = store.count();
+
+ request.onerror = () => reject(request.error);
+ request.onsuccess = () => {
+ resolve({
+ count: request.result,
+ estimatedSize: "Unknown", // Would need to iterate to calculate
+ });
+ };
+ });
+ } catch {
+ return { count: 0, estimatedSize: "0 B" };
+ }
+}
diff --git a/lib/utils.ts b/lib/utils.ts
new file mode 100644
index 0000000..6415e21
--- /dev/null
+++ b/lib/utils.ts
@@ -0,0 +1,32 @@
+import { clsx, type ClassValue } from "clsx"
+import { twMerge } from "tailwind-merge"
+
+export function cn(...inputs: ClassValue[]) {
+ return twMerge(clsx(inputs))
+}
+
+/**
+ * Converts a hex color to rgba with the specified opacity
+ * @param hex - The hex color (e.g., "#ffffff" or "#fff")
+ * @param opacity - The opacity value from 0-100 (default: 100)
+ * @returns The rgba color string (e.g., "rgba(255, 255, 255, 1)")
+ */
+export function hexToRgba(hex: string, opacity: number = 100): string {
+ // Remove # if present
+ hex = hex.replace("#", "");
+
+ // Convert 3-digit hex to 6-digit
+ if (hex.length === 3) {
+ hex = hex.split("").map(char => char + char).join("");
+ }
+
+ // Parse RGB values
+ const r = parseInt(hex.substring(0, 2), 16);
+ const g = parseInt(hex.substring(2, 4), 16);
+ const b = parseInt(hex.substring(4, 6), 16);
+
+ // Convert opacity from 0-100 to 0-1
+ const alpha = opacity / 100;
+
+ return `rgba(${r}, ${g}, ${b}, ${alpha})`;
+}
diff --git a/lib/video-upload-cache.ts b/lib/video-upload-cache.ts
new file mode 100644
index 0000000..f2258b6
--- /dev/null
+++ b/lib/video-upload-cache.ts
@@ -0,0 +1,204 @@
+/**
+ * IndexedDB cache for uploaded videos
+ * Stores a single uploaded video at a time (replaces previous uploads)
+ */
+
+const DB_NAME = "freeshot-uploaded-videos";
+const DB_VERSION = 1;
+const STORE_NAME = "videos";
+const SINGLE_VIDEO_KEY = "current-uploaded-video";
+
+export interface CachedUploadedVideo {
+ key: string;
+ blob: Blob;
+ fileName: string;
+ fileSize: number;
+ duration: number;
+ width: number;
+ height: number;
+ aspectRatio: string;
+ uploadedAt: number;
+}
+
+let dbInstance: IDBDatabase | null = null;
+
+/**
+ * Open IndexedDB connection
+ */
+async function openDB(): Promise<IDBDatabase> {
+ if (dbInstance) return dbInstance;
+
+ return new Promise((resolve, reject) => {
+ const request = indexedDB.open(DB_NAME, DB_VERSION);
+
+ request.onerror = () => reject(request.error);
+ request.onsuccess = () => {
+ dbInstance = request.result;
+ resolve(request.result);
+ };
+
+ request.onupgradeneeded = (event) => {
+ const db = (event.target as IDBOpenDBRequest).result;
+ if (!db.objectStoreNames.contains(STORE_NAME)) {
+ const store = db.createObjectStore(STORE_NAME, { keyPath: "key" });
+ store.createIndex("uploadedAt", "uploadedAt", { unique: false });
+ }
+ };
+ });
+}
+
+/**
+ * Calculate aspect ratio from dimensions
+ * Always returns "auto" to use the actual video dimensions
+ */
+function calculateAspectRatio(_width: number, _height: number): string {
+ // Always return "auto" so videos use their actual dimensions
+ return "auto";
+}
+
+/**
+ * Get video metadata from file
+ */
+async function getVideoMetadata(file: File): Promise<{
+ duration: number;
+ width: number;
+ height: number;
+ aspectRatio: string;
+}> {
+ return new Promise((resolve, reject) => {
+ const video = document.createElement("video");
+ video.preload = "metadata";
+
+ video.onloadedmetadata = () => {
+ const metadata = {
+ duration: video.duration,
+ width: video.videoWidth,
+ height: video.videoHeight,
+ aspectRatio: calculateAspectRatio(video.videoWidth, video.videoHeight),
+ };
+
+ // Cleanup
+ URL.revokeObjectURL(video.src);
+ resolve(metadata);
+ };
+
+ video.onerror = () => {
+ URL.revokeObjectURL(video.src);
+ reject(new Error("Failed to load video metadata"));
+ };
+
+ video.src = URL.createObjectURL(file);
+ });
+}
+
+/**
+ * Save uploaded video (replaces any existing video)
+ */
+export async function saveUploadedVideo(file: File): Promise<CachedUploadedVideo> {
+ try {
+ const db = await openDB();
+
+ // Get video metadata
+ const metadata = await getVideoMetadata(file);
+
+ const data: CachedUploadedVideo = {
+ key: SINGLE_VIDEO_KEY,
+ blob: file,
+ fileName: file.name,
+ fileSize: file.size,
+ duration: metadata.duration,
+ width: metadata.width,
+ height: metadata.height,
+ aspectRatio: metadata.aspectRatio,
+ uploadedAt: Date.now(),
+ };
+
+ return new Promise((resolve, reject) => {
+ const transaction = db.transaction(STORE_NAME, "readwrite");
+ const store = transaction.objectStore(STORE_NAME);
+
+ // Put will replace any existing video with the same key
+ const request = store.put(data);
+
+ request.onerror = () => reject(request.error);
+ request.onsuccess = () => resolve(data);
+ });
+ } catch (error) {
+ console.error("Failed to save uploaded video:", error);
+ throw error;
+ }
+}
+
+/**
+ * Get the current uploaded video
+ */
+export async function getUploadedVideo(): Promise<CachedUploadedVideo | null> {
+ try {
+ const db = await openDB();
+
+ return new Promise((resolve, reject) => {
+ const transaction = db.transaction(STORE_NAME, "readonly");
+ const store = transaction.objectStore(STORE_NAME);
+ const request = store.get(SINGLE_VIDEO_KEY);
+
+ request.onerror = () => reject(request.error);
+ request.onsuccess = () => {
+ const result = request.result;
+ resolve(result || null);
+ };
+ });
+ } catch (error) {
+ console.warn("Failed to get uploaded video:", error);
+ return null;
+ }
+}
+
+/**
+ * Delete the uploaded video
+ */
+export async function deleteUploadedVideo(): Promise<void> {
+ try {
+ const db = await openDB();
+
+ return new Promise((resolve, reject) => {
+ const transaction = db.transaction(STORE_NAME, "readwrite");
+ const store = transaction.objectStore(STORE_NAME);
+ const request = store.delete(SINGLE_VIDEO_KEY);
+
+ request.onerror = () => reject(request.error);
+ request.onsuccess = () => resolve();
+ });
+ } catch (error) {
+ console.warn("Failed to delete uploaded video:", error);
+ }
+}
+
+/**
+ * Check if an uploaded video exists
+ */
+export async function hasUploadedVideo(): Promise<boolean> {
+ const video = await getUploadedVideo();
+ return video !== null;
+}
+
+/**
+ * Get uploaded video info without loading the blob
+ */
+export async function getUploadedVideoInfo(): Promise<{
+ fileName: string;
+ fileSize: number;
+ duration: number;
+ aspectRatio: string;
+ uploadedAt: number;
+} | null> {
+ const video = await getUploadedVideo();
+ if (!video) return null;
+
+ return {
+ fileName: video.fileName,
+ fileSize: video.fileSize,
+ duration: video.duration,
+ aspectRatio: video.aspectRatio,
+ uploadedAt: video.uploadedAt,
+ };
+}
diff --git a/lib/video.utils.ts b/lib/video.utils.ts
new file mode 100644
index 0000000..c24c0b8
--- /dev/null
+++ b/lib/video.utils.ts
@@ -0,0 +1,98 @@
+import { TIMELINE_ZOOM_SCALE } from './constants';
+
+/**
+ * Espera a que un frame de video esté realmente disponible para captura
+ * Usa requestVideoFrameCallback si está disponible (Chrome/Edge)
+ */
+export function waitForVideoFrame(video: HTMLVideoElement): Promise<void> {
+ return new Promise((resolve) => {
+ let resolved = false;
+
+ const done = () => {
+ if (!resolved) {
+ resolved = true;
+ resolve();
+ }
+ };
+
+ if ('requestVideoFrameCallback' in HTMLVideoElement.prototype) {
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
+ (video as any).requestVideoFrameCallback(done);
+ // Timeout de seguridad largo para evitar bloqueo
+ setTimeout(done, 2000);
+ } else {
+ // Fallback para navegadores que no soportan requestVideoFrameCallback
+ if (video.readyState >= 2) {
+ const handleSeeked = () => {
+ video.removeEventListener('seeked', handleSeeked);
+ done();
+ };
+ video.addEventListener('seeked', handleSeeked, { once: true });
+ setTimeout(done, 100);
+ } else {
+ requestAnimationFrame(done);
+ }
+ }
+ });
+}
+
+/**
+ * Asegura que el video esté listo para exportación
+ */
+export async function ensureVideoReady(video: HTMLVideoElement): Promise<void> {
+ // Si el video no está cargado, esperar
+ if (video.readyState < 2) {
+ await new Promise<void>((resolve) => {
+ const onReady = () => {
+ video.removeEventListener('canplay', onReady);
+ resolve();
+ };
+ video.addEventListener('canplay', onReady, { once: true });
+ setTimeout(resolve, 3000); // Timeout máximo
+ });
+ }
+
+ // Pausar y mover al inicio
+ video.pause();
+ video.currentTime = 0;
+
+ // Esperar breve para que el frame esté listo
+ await new Promise<void>(resolve => setTimeout(resolve, 100));
+}
+
+/**
+ * Formatea segundos a MM:SS
+ */
+export function formatTime(time: number): string {
+ // Validar que el tiempo sea un número válido
+ if (isNaN(time) || !isFinite(time) || time < 0) {
+ return '00:00';
+ }
+ const minutes = Math.floor(time / 60);
+ const seconds = Math.floor(time % 60);
+ return `${minutes.toString().padStart(2, '0')}:${seconds.toString().padStart(2, '0')}`;
+}
+
+/**
+ * Descarga un Blob como archivo
+ */
+export function downloadBlob(blob: Blob, filename: string): void {
+ const url = URL.createObjectURL(blob);
+ const a = document.createElement("a");
+ a.href = url;
+ a.download = filename;
+ document.body.appendChild(a);
+ a.click();
+ document.body.removeChild(a);
+ URL.revokeObjectURL(url);
+}
+
+/**
+ * Calcula el multiplicador de zoom para el timeline
+ * @param zoom - Nivel de zoom (1-10)
+ * @returns Multiplicador de ancho del timeline
+ */
+export function getZoomMultiplier(zoom: number): number {
+ const rounded = Math.round(Math.max(1, Math.min(10, zoom)));
+ return TIMELINE_ZOOM_SCALE[rounded] ?? 1;
+}
diff --git a/lib/wallpaper.catalog.ts b/lib/wallpaper.catalog.ts
new file mode 100644
index 0000000..89a745d
--- /dev/null
+++ b/lib/wallpaper.catalog.ts
@@ -0,0 +1,93 @@
+export type WallpaperCategoryId =
+ | 'pattern'
+ | 'gradient'
+ | 'desktop'
+ | 'minimal';
+
+export interface WallpaperItem {
+ index: number;
+ filename: string;
+ fullUrl: string;
+ previewUrl: string;
+}
+
+export interface WallpaperCategory {
+ id: WallpaperCategoryId;
+ label: string;
+ icon: string;
+ /** Si true, se muestra por defecto en el panel. Si false, se oculta tras "Mostrar más" */
+ primary: boolean;
+ items: WallpaperItem[];
+}
+
+interface CategoryConfig {
+ id: WallpaperCategoryId;
+ label: string;
+ icon: string;
+ primary: boolean;
+ count: number;
+}
+
+const CATEGORY_CONFIGS: CategoryConfig[] = [
+ {
+ id: 'desktop',
+ label: 'Escritorio',
+ icon: 'heroicons:computer-desktop-solid',
+ primary: true,
+ count: 4,
+ },
+ {
+ id: 'gradient',
+ label: 'Gradientes',
+ icon: 'solar:mirror-left-bold',
+ primary: true,
+ count: 0,
+ },
+ {
+ id: 'pattern',
+ label: 'Patrones',
+ icon: 'solar:palette-round-bold',
+ primary: false,
+ count: 0,
+ },
+ {
+ id: 'minimal',
+ label: 'Minimal',
+ icon: 'solar:sun-2-bold',
+ primary: false,
+ count: 0,
+ },
+];
+
+let globalIndex = 0;
+export const WALLPAPER_CATEGORIES: WallpaperCategory[] = CATEGORY_CONFIGS.map(config => {
+ const items: WallpaperItem[] = [];
+
+ for (let i = 1; i <= config.count; i++) {
+ const slug = `${config.id}-${i.toString().padStart(2, '0')}`;
+ items.push({
+ index: globalIndex++,
+ filename: slug,
+ fullUrl: `/images/backgrounds/${config.id}/${slug}.jpg`,
+ previewUrl: `/images/backgrounds/${config.id}/${slug}.avif`,
+ });
+ }
+
+ return {
+ id: config.id,
+ label: config.label,
+ icon: config.icon,
+ primary: config.primary,
+ items,
+ };
+});
+
+/** Mapa plano index → WallpaperItem para búsquedas rápidas */
+export const WALLPAPER_MAP = new Map<number, WallpaperItem>(
+ WALLPAPER_CATEGORIES.flatMap(cat => cat.items).map(item => [item.index, item])
+);
+
+/** Devuelve las URLs a partir del índice global */
+export function getWallpaperByIndex(index: number): WallpaperItem | undefined {
+ return WALLPAPER_MAP.get(index);
+}
diff --git a/lib/wallpaper.utils.ts b/lib/wallpaper.utils.ts
new file mode 100644
index 0000000..19625ea
--- /dev/null
+++ b/lib/wallpaper.utils.ts
@@ -0,0 +1,19 @@
+import { getWallpaperByIndex } from './wallpaper.catalog';
+
+/**
+ * Obtiene la URL del wallpaper JPG para renderizado en canvas
+ * @param index - Índice global del wallpaper (-1 para ninguno)
+ */
+export function getWallpaperUrl(index: number): string {
+ if (index < 0) return "";
+ return getWallpaperByIndex(index)?.fullUrl ?? "";
+}
+
+/**
+ * Obtiene la URL AVIF/WEBP de previsualización del wallpaper
+ * @param index - Índice global del wallpaper
+ */
+export function getWallpaperPreviewUrl(index: number): string {
+ if (index < 0) return "";
+ return getWallpaperByIndex(index)?.previewUrl ?? "";
+}
diff --git a/mockups.html b/mockups.html
new file mode 100644
index 0000000..e991506
--- /dev/null
+++ b/mockups.html
@@ -0,0 +1,2365 @@
+<!DOCTYPE html>
+<html lang="en">
+
+<head>
+ <meta charset="UTF-8">
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <title>Document</title>
+ <script src="https://cdn.jsdelivr.net/npm/@tailwindcss/browser@4"></script>
+ <style>
+ /* efecto glass */
+ .glass-main {
+ position: relative;
+ border-radius: 1.3rem;
+ overflow: hidden;
+ }
+
+ .lg-filter {
+ position: absolute;
+ inset: 0;
+ z-index: 0;
+ backdrop-filter: blur(4px);
+ filter: url(#lensFilter) saturate(120%) brightness(1.15);
+ }
+
+ .lg-overlay {
+ position: absolute;
+ inset: 0;
+ z-index: 1;
+ background: rgba(255, 255, 255, 0.25);
+ }
+
+ .lg-specular {
+ position: absolute;
+ inset: 0;
+ z-index: 2;
+ box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.75), inset 0 0 5px rgba(255, 255, 255, 0.75);
+ border-radius: inherit;
+ }
+
+ .lg-content {
+ position: relative;
+ z-index: 3;
+ }
+
+ .glass-border {
+ background: linear-gradient(45deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.4));
+ border-top: 0.75px solid rgba(255, 255, 255, 0.8);
+ border-left: 0.75px solid rgba(255, 255, 255, 0.8);
+ padding: 7px;
+ }
+ </style>
+</head>
+
+<body>
+
+ <!-- preview browser -->
+ <div class="bg-neutral-900 p-8 flex items-center justify-center">
+
+ <ul class="grid grid-cols-1 md:grid-cols-3 gap-2 w-full max-w-md">
+
+ <li class="relative">
+ <div
+ class="relative w-full h-28 bg-cover bg-center bg-no-repeat bg-[url('https://i.ibb.co/r2JQ3Gcy/minimal-02.jpg')] rounded-lg border-2 border-neutral-800 overflow-hidden shadow-lg">
+
+ <div
+ class="absolute top-4 left-4 w-[160%] h-[160%] bg-[#f9f9f9] rounded-tl-lg shadow-[0_0_30px_rgba(0,0,0,0.5)] border-t border-l border-white/20 flex flex-col overflow-hidden">
+ <div class="flex-1 bg-[#f9f9f9]"></div>
+ </div>
+ <div
+ class="absolute bottom-0 left-0 bg-black/50 backdrop-blur-xl border-tr border-white/20 px-2 py-1 text-[9px] text-white/90 font-semibold tracking-wider uppercase rounded-tr-md z-10">
+ NONE
+ </div>
+ </div>
+ </li>
+ <li class="relative">
+ <div
+ class="relative w-full h-28 bg-cover bg-center bg-no-repeat bg-[url('https://i.ibb.co/r2JQ3Gcy/minimal-02.jpg')] rounded-lg border-2 border-neutral-800 overflow-hidden shadow-lg">
+
+ <div
+ class="absolute top-4 left-4 sm:top-5 sm:left-5 w-[160%] h-[160%] bg-[#f9f9f9] rounded-tl-lg shadow-[0_0_30px_rgba(0,0,0,0.5)] border-t border-l border-white/40 flex flex-col">
+
+ <div
+ class="h-6 sm:h-7 bg-[#f6f6f6] flex items-center px-3 justify-between border-b border-gray-300 rounded-tl-lg">
+
+ <div class="flex gap-1.5">
+ <div class="w-2 h-2 rounded-full bg-[#FF5F56] border-[0.5px] border-[#E0443E]"></div>
+ <div class="w-2 h-2 rounded-full bg-[#FFBD2E] border-[0.5px] border-[#DEA123]"></div>
+ <div class="w-2 h-2 rounded-full bg-[#27C93F] border-[0.5px] border-[#1AAB29]"></div>
+ </div>
+
+ <div class="flex-1 max-w-[50%] mx-3">
+ <div class="bg-white rounded-[3px] h-3 w-full border border-gray-300/50 shadow-sm">
+ </div>
+ </div>
+
+ <div class="flex gap-1.5">
+ <div class="w-1.5 h-1.5 rounded-[1px] bg-gray-300"></div>
+ <div class="w-1.5 h-1.5 rounded-[1px] bg-gray-300"></div>
+ </div>
+ </div>
+
+ <div class="flex-1 bg-[#f9f9f9] relative">
+ </div>
+ </div>
+
+ <div
+ class="absolute bottom-0 left-0 bg-black/50 backdrop-blur-xl border-tr border-white/20 px-2 py-1 text-[9px] text-white/90 font-semibold tracking-wider uppercase rounded-tr-md z-10">
+ MACOS
+ </div>
+ </div>
+ </li>
+ <li class="relative">
+ <div
+ class="relative w-full h-28 bg-cover bg-center bg-no-repeat bg-[url('https://i.ibb.co/r2JQ3Gcy/minimal-02.jpg')] rounded-lg border-2 border-neutral-800 overflow-hidden shadow-lg">
+
+ <div class="absolute top-3 left-3 w-[165%] h-[165%] rounded-tl-xl flex flex-col glass-border">
+
+ <div class="w-full h-full rounded-tl-lg overflow-hidden flex flex-col bg-[#f9f9f9] shadow-[0_0_30px_rgba(0,0,0,0.4)]"
+ style="border-top: 1px solid rgba(255,255,255,0.6); border-left: 1px solid rgba(255,255,255,0.6);">
+
+ <div
+ class="h-6 bg-[#f6f6f6] flex items-center px-3 justify-between border-b border-gray-300 flex-shrink-0">
+ <div class="flex gap-1.5">
+ <div class="w-2 h-2 rounded-full bg-[#FF5F56] border-[0.5px] border-[#E0443E]">
+ </div>
+ <div class="w-2 h-2 rounded-full bg-[#FFBD2E] border-[0.5px] border-[#DEA123]">
+ </div>
+ <div class="w-2 h-2 rounded-full bg-[#27C93F] border-[0.5px] border-[#1AAB29]">
+ </div>
+ </div>
+ <div class="flex-1 max-w-[50%] mx-3">
+ <div class="bg-white rounded-[3px] h-3 w-full border border-gray-300/50 shadow-sm">
+ </div>
+ </div>
+ <div class="flex gap-1.5">
+ <div class="w-1.5 h-1.5 rounded-[1px] bg-gray-300"></div>
+ <div class="w-1.5 h-1.5 rounded-[1px] bg-gray-300"></div>
+ </div>
+ </div>
+
+ <div class="flex-1 bg-[#f9f9f9]"></div>
+ </div>
+ </div>
+
+ <div
+ class="absolute bottom-0 left-0 bg-black/50 backdrop-blur-xl border-tr border-white/20 px-2 py-1 text-[9px] text-white/90 font-semibold tracking-wider uppercase rounded-tr-md z-10">
+ MACOS GLASS
+ </div>
+ </div>
+ </li>
+
+ <li class="relative">
+ <div
+ class="relative w-full h-28 bg-cover bg-center bg-no-repeat bg-[url('https://i.ibb.co/r2JQ3Gcy/minimal-02.jpg')] rounded-lg border-2 border-neutral-800 overflow-hidden shadow-lg">
+
+ <div class="absolute top-4 left-4 w-[160%] h-[160%] rounded-tl-2xl border-t border-l border-white/30 shadow-[0_0_30px_rgba(0,0,0,0.5)] flex flex-col p-1.5"
+ style="background: rgba(255,255,255,0.2); backdrop-filter: blur(12px);">
+
+ <div class="flex-1 bg-[#f9f9f9] rounded-xl border border-white/10 shadow-inner"></div>
+ </div>
+
+ <div
+ class="absolute bottom-0 left-0 bg-black/50 backdrop-blur-xl border-tr border-white/20 px-2 py-1 text-[9px] text-white/90 font-semibold tracking-wider uppercase rounded-tr-md z-10">
+ GLASS UI CONTAINER
+ </div>
+ </div>
+ </li>
+ <li class="relative">
+ <div
+ class="relative w-full h-28 bg-cover bg-center bg-no-repeat bg-[url('https://i.ibb.co/r2JQ3Gcy/minimal-02.jpg')] rounded-lg border-2 border-neutral-800 overflow-hidden shadow-lg">
+
+ <div
+ class="absolute top-4 left-4 w-[160%] h-[160%] bg-[#f9f9f9] rounded-tl-lg shadow-[0_0_30px_rgba(0,0,0,0.5)] border-t border-l border-white/40 flex flex-col">
+
+ <div
+ class="h-6 bg-[#f6f6f6] flex items-center px-3 justify-between border-b border-gray-300 rounded-tl-lg">
+ <div class="flex items-center gap-2">
+ <div class="flex gap-1.5">
+ <div class="w-2 h-2 rounded-full border border-gray-400"></div>
+ <div class="w-2 h-2 rounded-full border border-gray-400"></div>
+ <div class="w-2 h-2 rounded-full border border-gray-400"></div>
+ </div>
+ <div class="flex gap-1">
+ <div class="w-2 h-2 bg-gray-200 rounded-sm"></div>
+ <div class="w-2 h-2 bg-gray-200 rounded-sm"></div>
+ <div class="w-2 h-2 bg-gray-200 rounded-sm"></div>
+ </div>
+ </div>
+ <div class="flex-1 max-w-[50%] mx-2">
+ <div
+ class="bg-white rounded h-3 w-full flex items-center px-1.5 gap-1 border border-gray-300/50 shadow-sm">
+ <div class="w-1.5 h-1.5 bg-gray-300 rounded-full flex-shrink-0"></div>
+ <div class="w-full h-1 bg-gray-200 rounded"></div>
+ </div>
+ </div>
+ <div class="flex gap-1">
+ <div class="w-2 h-2 bg-gray-200 rounded-sm"></div>
+ <div class="w-2 h-2 bg-gray-200 rounded-sm"></div>
+ <div class="w-2 h-2 bg-gray-200 rounded-sm"></div>
+ </div>
+ </div>
+
+ <div class="flex-1 bg-[#f9f9f9]"></div>
+ </div>
+
+ <div
+ class="absolute bottom-0 left-0 bg-black/50 backdrop-blur-xl border-tr border-white/20 px-2 py-1 text-[9px] text-white/90 font-semibold tracking-wider uppercase rounded-tr-md z-10">
+ MACOS GOSTH
+ </div>
+ </div>
+ </li>
+ <li class="relative">
+ <div
+ class="relative w-full h-28 bg-cover bg-center bg-no-repeat bg-[url('https://i.ibb.co/r2JQ3Gcy/minimal-02.jpg')] rounded-lg border-2 border-neutral-800 overflow-hidden shadow-lg">
+
+ <div class="absolute top-3 left-3 w-[165%] h-[165%] rounded-tl-xl flex flex-col glass-border">
+ <div
+ class="h-6 bg-[#f6f6f6] flex items-center px-3 justify-between border-b border-gray-300 rounded-tl-lg">
+ <div class="flex items-center gap-2">
+ <div class="flex gap-1.5">
+ <div class="w-2 h-2 rounded-full border border-gray-400"></div>
+ <div class="w-2 h-2 rounded-full border border-gray-400"></div>
+ <div class="w-2 h-2 rounded-full border border-gray-400"></div>
+ </div>
+ <div class="flex gap-1">
+ <div class="w-2 h-2 bg-gray-200 rounded-sm"></div>
+ <div class="w-2 h-2 bg-gray-200 rounded-sm"></div>
+ <div class="w-2 h-2 bg-gray-200 rounded-sm"></div>
+ </div>
+ </div>
+ <div class="flex-1 max-w-[50%] mx-2">
+ <div
+ class="bg-white rounded h-3 w-full flex items-center px-1.5 gap-1 border border-gray-300/50 shadow-sm">
+ <div class="w-1.5 h-1.5 bg-gray-300 rounded-full flex-shrink-0"></div>
+ <div class="w-full h-1 bg-gray-200 rounded"></div>
+ </div>
+ </div>
+ <div class="flex gap-1">
+ <div class="w-2 h-2 bg-gray-200 rounded-sm"></div>
+ <div class="w-2 h-2 bg-gray-200 rounded-sm"></div>
+ <div class="w-2 h-2 bg-gray-200 rounded-sm"></div>
+ </div>
+ </div>
+
+ <div class="flex-1 bg-[#f9f9f9]"></div>
+ </div>
+
+ <div
+ class="absolute bottom-0 left-0 bg-black/50 backdrop-blur-xl border-tr border-white/20 px-2 py-1 text-[9px] text-white/90 font-semibold tracking-wider uppercase rounded-tr-md z-10">
+ MACOS GOSTH GLASS
+ </div>
+ </div>
+ </li>
+
+ <li class="relative">
+ <div
+ class="relative w-full h-28 bg-cover bg-center bg-no-repeat bg-[url('https://i.ibb.co/r2JQ3Gcy/minimal-02.jpg')] rounded-lg border-2 border-neutral-800 overflow-hidden shadow-lg">
+
+ <div class="absolute top-3 left-3 w-[165%] h-[165%] rounded-tl-xl flex flex-col glass-border">
+ <div class="flex gap-1 mb-1 px-0.5">
+ <div class="w-1.5 h-1.5 rounded-full bg-white shadow-2xs"></div>
+ <div class="w-1.5 h-1.5 rounded-full bg-white shadow-2xs"></div>
+ <div class="w-1.5 h-1.5 rounded-full bg-white shadow-2xs"></div>
+ </div>
+
+ <div class="flex-1 bg-[#f9f9f9] rounded-lg border border-white/40 shadow-inner"></div>
+ </div>
+
+ <div
+ class="absolute bottom-0 left-0 bg-black/50 backdrop-blur-xl border-tr border-white/20 px-2 py-1 text-[9px] text-white/90 font-semibold tracking-wider uppercase rounded-tr-md z-10">
+ mACOS CONTAINER GLASS
+ </div>
+ </div>
+ </li>
+ <li class="relative">
+ <div
+ class="relative w-full h-28 bg-cover bg-center bg-no-repeat bg-[url('https://i.ibb.co/r2JQ3Gcy/minimal-02.jpg')] rounded-lg border-2 border-neutral-800 overflow-hidden shadow-lg">
+
+ <div
+ class="absolute top-4 left-4 w-[160%] h-[160%] bg-[#f9f9f9] rounded-tl-lg shadow-[0_0_30px_rgba(0,0,0,0.5)] border-t border-l border-white/40 flex flex-col">
+
+ <div
+ class="h-6 bg-[#f3f3f3] flex items-center justify-between border-b border-gray-300 rounded-tl-lg">
+ <div class="flex items-center gap-1.5 px-2 text-gray-400">
+ <div class="w-2 h-2 bg-gray-300 rounded-sm"></div>
+ <div class="w-2 h-2 bg-gray-200 rounded-sm"></div>
+ <div class="w-2 h-2 bg-gray-300 rounded-sm"></div>
+ </div>
+ <div class="flex-1 max-w-[50%] mx-1.5">
+ <div
+ class="bg-white rounded h-3 w-full flex items-center px-1.5 gap-1 border border-gray-200 shadow-sm">
+ <div class="w-1.5 h-1.5 bg-gray-300 rounded-full flex-shrink-0"></div>
+ <div class="w-full h-1 bg-gray-200 rounded"></div>
+ <div class="w-1.5 h-1.5 bg-yellow-400/70 rounded-full flex-shrink-0"></div>
+ </div>
+ </div>
+ <div class="flex items-center h-full">
+ <div class="flex gap-1 px-1.5">
+ <div class="w-1.5 h-1.5 bg-gray-300 rounded-sm"></div>
+ <div class="w-1.5 h-1.5 bg-gray-300 rounded-sm"></div>
+ </div>
+ <div class="flex h-full">
+ <div class="w-4 h-full flex items-center justify-center bg-gray-100/80">
+ <div class="w-2 h-0.5 bg-gray-400"></div>
+ </div>
+ <div class="w-4 h-full flex items-center justify-center bg-gray-100/80">
+ <div class="w-2 h-2 border border-gray-400"></div>
+ </div>
+ <div class="w-4 h-full flex items-center justify-center bg-gray-100/80">
+ <div class="text-gray-400 text-[6px] font-bold leading-none">✕</div>
+ </div>
+ </div>
+ </div>
+ </div>
+
+ <div class="flex-1 bg-[#f9f9f9]"></div>
+ </div>
+ <div
+ class="absolute bottom-0 left-0 bg-black/50 backdrop-blur-xl border-tr border-white/20 px-2 py-1 text-[9px] text-white/90 font-semibold tracking-wider uppercase rounded-tr-md z-10">
+ BRAVE
+ </div>
+ </div>
+ </li>
+ <li class="relative">
+ <div
+ class="relative w-full h-28 bg-cover bg-center bg-no-repeat bg-[url('https://i.ibb.co/r2JQ3Gcy/minimal-02.jpg')] rounded-lg border-2 border-neutral-800 overflow-hidden shadow-lg">
+
+ <div class="absolute top-3 left-3 w-[165%] h-[165%] rounded-tl-xl flex flex-col glass-border">
+
+ <div
+ class="h-6 bg-[#f3f3f3] flex items-center justify-between border-b border-gray-300 rounded-tl-lg">
+ <div class="flex items-center gap-1.5 px-2 text-gray-400">
+ <div class="w-2 h-2 bg-gray-300 rounded-sm"></div>
+ <div class="w-2 h-2 bg-gray-200 rounded-sm"></div>
+ <div class="w-2 h-2 bg-gray-300 rounded-sm"></div>
+ </div>
+ <div class="flex-1 max-w-[50%] mx-1.5">
+ <div
+ class="bg-white rounded h-3 w-full flex items-center px-1.5 gap-1 border border-gray-200 shadow-sm">
+ <div class="w-1.5 h-1.5 bg-gray-300 rounded-full flex-shrink-0"></div>
+ <div class="w-full h-1 bg-gray-200 rounded"></div>
+ <div class="w-1.5 h-1.5 bg-yellow-400/70 rounded-full flex-shrink-0"></div>
+ </div>
+ </div>
+ <div class="flex items-center h-full">
+ <div class="flex gap-1 px-1.5">
+ <div class="w-1.5 h-1.5 bg-gray-300 rounded-sm"></div>
+ <div class="w-1.5 h-1.5 bg-gray-300 rounded-sm"></div>
+ </div>
+ <div class="flex h-full">
+ <div class="w-4 h-full flex items-center justify-center bg-gray-100/80">
+ <div class="w-2 h-0.5 bg-gray-400"></div>
+ </div>
+ <div class="w-4 h-full flex items-center justify-center bg-gray-100/80">
+ <div class="w-2 h-2 border border-gray-400"></div>
+ </div>
+ <div class="w-4 h-full flex items-center justify-center bg-gray-100/80">
+ <div class="text-gray-400 text-[6px] font-bold leading-none">✕</div>
+ </div>
+ </div>
+ </div>
+ </div>
+
+ <div class="flex-1 bg-[#f9f9f9]"></div>
+ </div>
+
+ <div
+ class="absolute bottom-0 left-0 bg-black/50 backdrop-blur-xl border-tr border-white/20 px-2 py-1 text-[9px] text-white/90 font-semibold tracking-wider uppercase rounded-tr-md z-10">
+ BRAVE GLASS
+ </div>
+ </div>
+ </li>
+ <li class="relative">
+ <div
+ class="relative w-full h-28 bg-cover bg-center bg-no-repeat bg-[url('https://i.ibb.co/r2JQ3Gcy/minimal-02.jpg')] rounded-lg border-2 border-neutral-800 overflow-hidden shadow-lg">
+
+ <div class="absolute top-4 left-4 w-[160%] h-[160%] rounded-tl-2xl border-t border-l border-white/40 shadow-[0_0_30px_rgba(0,0,0,0.4)] flex flex-col overflow-hidden"
+ style="background: rgba(255, 255, 255, 0.15); backdrop-filter: blur(12px);">
+
+ <div class="h-6 flex items-end px-4 gap-1">
+ <div
+ class="bg-white/40 backdrop-blur-md border-t border-x border-white/50 rounded-t-lg h-4 w-20 flex items-center justify-between px-2 shadow-sm">
+ <div class="flex items-center gap-1.5">
+ <div
+ class="w-1.5 h-1.5 rounded-full bg-white shadow-[0_0_5px_rgba(96,165,250,0.5)]">
+ </div>
+ <div class="w-10 h-0.5 bg-gray-200 rounded-full"></div>
+ </div>
+ <div
+ class="w-1 h-1 rounded-full bg-gray-50 hover:bg-gray-400/40 flex items-center justify-center">
+ </div>
+ </div>
+
+ <div
+ class="mb-0.5 w-3.5 h-3.5 rounded-full bg-white/20 border border-white/30 flex items-center justify-center shadow-sm">
+ <span
+ class="text-[10px] text-white/80 flex items-center justify-center h-full w-full -mt-[1px]">+</span>
+ </div>
+ </div>
+
+ <div class="flex-1 bg-[#f9f9f9] border-t border-white/30 shadow-inner">
+ </div>
+ </div>
+
+ <div
+ class="absolute bottom-0 left-0 bg-black/50 backdrop-blur-xl border-tr border-white/20 px-2 py-1 text-[9px] text-white/90 font-semibold tracking-wider uppercase rounded-tr-md z-10">
+ BROWSER TAB GLASS
+ </div>
+ </div>
+ </li>
+
+ <li class="relative">
+ <div
+ class="relative w-full h-28 bg-cover bg-center bg-no-repeat bg-[url('https://i.ibb.co/r2JQ3Gcy/minimal-02.jpg')] rounded-lg border-2 border-neutral-800 overflow-hidden shadow-lg">
+
+ <div
+ class="absolute top-4 left-4 w-[160%] h-[160%] bg-white rounded-tl-lg shadow-[0_0_30px_rgba(0,0,0,0.5)] border-t border-l border-white/40 flex flex-col overflow-hidden">
+
+ <div class="h-4 bg-[#dee1e6] flex items-end flex-shrink-0">
+ <div
+ class="bg-white h-[14px] px-2 ml-1.5 rounded-t flex items-center gap-1 min-w-[50px] border-t border-x border-gray-300/50">
+ <div class="w-2 h-2 rounded-full bg-blue-500 flex-shrink-0"></div>
+ <div class="w-8 h-1 bg-gray-300 rounded"></div>
+ <div class="w-1.5 h-1.5 bg-gray-300 rounded-full flex-shrink-0"></div>
+ </div>
+ <div class="ml-auto flex h-full">
+ <div class="w-4 h-full flex items-center justify-center">
+ <div class="w-2 h-0.5 bg-gray-500"></div>
+ </div>
+ <div class="w-4 h-full flex items-center justify-center">
+ <div class="w-2 h-2 border border-gray-500"></div>
+ </div>
+ <div class="w-4 h-full flex items-center justify-center">
+ <div class="text-gray-500 text-[6px] font-bold leading-none">✕</div>
+ </div>
+ </div>
+ </div>
+
+ <div class="h-5 bg-white flex items-center px-1.5 gap-1 border-b border-gray-200 flex-shrink-0">
+ <div class="flex gap-0.5 text-gray-300">
+ <div class="w-2 h-2 bg-gray-400 rounded-sm"></div>
+ <div class="w-2 h-2 bg-gray-200 rounded-sm"></div>
+ <div class="w-2 h-2 bg-gray-300 rounded-sm"></div>
+ </div>
+ <div class="flex-1 mx-1">
+ <div class="bg-[#f1f3f4] rounded-full h-3 w-full flex items-center px-1.5 gap-1">
+ <div class="w-1.5 h-1.5 bg-gray-400 rounded-full flex-shrink-0"></div>
+ <div class="w-full h-1 bg-gray-300 rounded"></div>
+ </div>
+ </div>
+ <div class="flex gap-0.5">
+ <div class="w-2 h-2 bg-gray-200 rounded-sm"></div>
+ <div class="w-2 h-2 bg-gray-200 rounded-sm"></div>
+ </div>
+ </div>
+
+ <div class="flex-1 bg-white"></div>
+ </div>
+
+ <div
+ class="absolute bottom-0 left-0 bg-black/50 backdrop-blur-xl border-tr border-white/20 px-2 py-1 text-[9px] text-white/90 font-semibold tracking-wider uppercase rounded-tr-md z-10">
+ WINDOWS
+ </div>
+ </div>
+ </li>
+ <li class="relative">
+ <div
+ class="relative w-full h-28 bg-cover bg-center bg-no-repeat bg-[url('https://i.ibb.co/r2JQ3Gcy/minimal-02.jpg')] rounded-lg border-2 border-neutral-800 overflow-hidden shadow-lg">
+
+ <div class="absolute top-3 left-3 w-[165%] h-[165%] rounded-tl-xl flex flex-col glass-border ">
+
+ <div
+ class="h-4 bg-[#dee1e6] flex items-end flex-shrink-0 border-t border-l border-white rounded-tl-lg">
+ <div
+ class="bg-white h-[14px] px-2 ml-1.5 rounded-t flex items-center gap-1 min-w-[50px] border-t border-x border-gray-300/50">
+ <div class="w-2 h-2 rounded-full bg-blue-500 flex-shrink-0"></div>
+ <div class="w-8 h-1 bg-gray-300 rounded"></div>
+ <div class="w-1.5 h-1.5 bg-gray-300 rounded-full flex-shrink-0"></div>
+ </div>
+ <div class="ml-auto flex h-full">
+ <div class="w-4 h-full flex items-center justify-center">
+ <div class="w-2 h-0.5 bg-gray-500"></div>
+ </div>
+ <div class="w-4 h-full flex items-center justify-center">
+ <div class="w-2 h-2 border border-gray-500"></div>
+ </div>
+ <div class="w-4 h-full flex items-center justify-center">
+ <div class="text-gray-500 text-[6px] font-bold leading-none">✕</div>
+ </div>
+ </div>
+ </div>
+
+ <div class="h-5 bg-white flex items-center px-1.5 gap-1 border-b border-gray-200 flex-shrink-0">
+ <div class="flex gap-0.5 text-gray-300">
+ <div class="w-2 h-2 bg-gray-400 rounded-sm"></div>
+ <div class="w-2 h-2 bg-gray-200 rounded-sm"></div>
+ <div class="w-2 h-2 bg-gray-300 rounded-sm"></div>
+ </div>
+ <div class="flex-1 mx-1">
+ <div class="bg-[#f1f3f4] rounded-full h-3 w-full flex items-center px-1.5 gap-1">
+ <div class="w-1.5 h-1.5 bg-gray-400 rounded-full flex-shrink-0"></div>
+ <div class="w-full h-1 bg-gray-300 rounded"></div>
+ </div>
+ </div>
+ <div class="flex gap-0.5">
+ <div class="w-2 h-2 bg-gray-200 rounded-sm"></div>
+ <div class="w-2 h-2 bg-gray-200 rounded-sm"></div>
+ </div>
+ </div>
+
+ <div class="flex-1 bg-white"></div>
+ </div>
+
+ <div
+ class="absolute bottom-0 left-0 bg-black/50 backdrop-blur-xl border-tr border-white/20 px-2 py-1 text-[9px] text-white/90 font-semibold tracking-wider uppercase rounded-tr-md z-10">
+ WINDOWS GLASS
+ </div>
+ </div>
+ </li>
+ </ul>
+ </div>
+
+ <!-- preview devices -->
+ <div class=" bg-neutral-900 p-8 flex items-center justify-center">
+ <ul class="grid grid-cols-1 md:grid-cols-3 gap-2 w-full max-w-md">
+
+ <li class="relative">
+ <div
+ class="relative w-full h-28 bg-cover bg-center bg-no-repeat bg-[url('https://i.ibb.co/8nVkzhQf/Get-Started-5.jpg')] rounded-lg border-2 border-neutral-800 overflow-hidden shadow-lg">
+
+ <div
+ class="absolute top-2 left-1/2 -translate-x-1/2 w-[75px] h-[150px] bg-neutral-900 rounded-xl shadow-2xl border border-neutral-700/50 flex flex-col z-20 top-4">
+
+ <div class="absolute -left-[1px] top-6 w-[1.5px] h-3 bg-neutral-700 rounded-l-sm"></div>
+ <div class="absolute -left-[1px] top-10 w-[1.5px] h-6 bg-neutral-700 rounded-l-sm"></div>
+ <div class="absolute -right-[1px] top-12 w-[1.5px] h-8 bg-neutral-700 rounded-r-sm"></div>
+
+ <div
+ class="relative w-full h-full bg-black rounded-lg overflow-hidden flex flex-col border border-black shadow-inner border-2">
+
+ <div
+ class="absolute top-1 left-1/2 -translate-x-1/2 w-6 h-1 bg-black rounded-full z-30 flex items-center justify-end px-1 gap-0.5">
+ <div class="w-0.5 h-0.5 bg-indigo-500/40 rounded-full blur-[0.2px]"></div>
+ <div class="w-0.5 h-0.5 bg-neutral-800 rounded-full"></div>
+ </div>
+
+ <div class="absolute top-0 w-full h-3 flex items-center justify-between px-2 z-20">
+ <span class="text-[4px] font-bold text-black/90">9:41</span>
+ <div class="flex items-center gap-1 scale-[0.5] origin-right">
+ <div class="flex items-end gap-[0.5px] h-1.5">
+ <div class="w-[1px] h-[100%] bg-black rounded-full"></div>
+ </div>
+ <div class="w-2.5 h-1.5 border border-black/30 rounded-[1px] relative">
+ <div class="h-full w-[80%] bg-black rounded-[0.5px]"></div>
+ </div>
+ </div>
+ </div>
+
+ <div class="w-full h-full bg-neutral-50 relative pt-4">
+ </div>
+
+ <div
+ class="absolute bottom-1 left-1/2 -translate-x-1/2 w-8 h-0.5 bg-black/10 rounded-full z-20">
+ </div>
+ </div>
+ </div>
+
+ <div
+ class="absolute bottom-0 left-0 bg-black/50 backdrop-blur-xl border-tr border-white/20 px-2 py-1 text-[9px] text-white/90 font-semibold tracking-wider uppercase rounded-tr-md z-30">
+ IPHONE SLIM
+ </div>
+ </div>
+ </li>
+ <li class="relative">
+ <div
+ class="relative w-full h-28 bg-cover bg-center bg-no-repeat bg-[url('https://i.ibb.co/8nVkzhQf/Get-Started-5.jpg')] rounded-lg border-2 border-neutral-800 overflow-hidden shadow-lg">
+
+ <div
+ class="absolute top-4 left-1/2 -translate-x-1/2 w-[75px] h-[150px] bg-neutral-800 rounded-xl p-[2.5px] shadow-2xl border border-neutral-700 flex flex-col z-20">
+
+ <div
+ class="absolute -left-[1px] top-6 w-[1.5px] h-3 bg-neutral-700 rounded-l-sm border-y border-l border-neutral-800">
+ </div>
+ <div
+ class="absolute -left-[1px] top-10 w-[1.5px] h-6 bg-neutral-700 rounded-l-sm border-y border-l border-neutral-800">
+ </div>
+ <div
+ class="absolute -right-[1px] top-12 w-[1.5px] h-8 bg-neutral-700 rounded-r-sm border-y border-r border-neutral-800">
+ </div>
+
+ <div
+ class="relative w-full h-full bg-white rounded-lg overflow-hidden flex flex-col border border-black shadow-inner">
+
+ <div
+ class="absolute top-1 left-1/2 -translate-x-1/2 w-6 h-1 bg-black rounded-full z-20 flex items-center justify-between px-0.5">
+ <div class="w-0.5 h-0.5 bg-neutral-500 rounded-full"></div>
+ <div class="w-0.5 h-0.5 bg-indigo-500 rounded-full blur-[0.2px]"></div>
+ </div>
+
+ <div class="w-full h-full bg-neutral-50 relative"></div>
+
+ <div
+ class="absolute bottom-1 left-1/2 -translate-x-1/2 w-8 h-0.5 bg-black/10 rounded-full z-10">
+ </div>
+ </div>
+ </div>
+
+ <div
+ class="absolute bottom-0 left-0 bg-black/50 backdrop-blur-xl border-tr border-white/20 px-2 py-1 text-[9px] text-white/90 font-semibold tracking-wider uppercase rounded-tr-md z-30">
+ IPHONE BASE
+ </div>
+ </div>
+ </li>
+ <li class="relative">
+ <div
+ class="relative w-full h-28 bg-cover bg-center bg-no-repeat bg-[url('https://i.ibb.co/8nVkzhQf/Get-Started-5.jpg')] rounded-lg border-2 border-neutral-800 overflow-hidden shadow-lg">
+
+ <div
+ class="absolute top-4 left-1/2 -translate-x-1/2 w-[75px] h-[150px] bg-neutral-800 rounded-xl p-[2.5px] shadow-2xl border border-neutral-700 flex flex-col z-20">
+
+ <div
+ class="absolute -left-[1px] top-6 w-[1.5px] h-3 bg-neutral-700 rounded-l-sm border-y border-l border-neutral-800 shadow-sm">
+ </div>
+ <div
+ class="absolute -left-[1px] top-10 w-[1.5px] h-6 bg-neutral-700 rounded-l-sm border-y border-l border-neutral-800 shadow-sm">
+ </div>
+ <div
+ class="absolute -right-[1px] top-12 w-[1.5px] h-8 bg-neutral-700 rounded-r-sm border-y border-r border-neutral-800 shadow-sm">
+ </div>
+
+ <div
+ class="relative w-full h-full bg-white rounded-lg overflow-hidden flex flex-col border border-black shadow-inner">
+
+ <div
+ class="absolute top-1 left-1/2 -translate-x-1/2 w-6 h-1 bg-black rounded-full z-20 flex items-center justify-between px-0.5">
+ <div class="w-0.5 h-0.5 bg-neutral-500 rounded-full"></div>
+ <div class="w-0.5 h-0.5 bg-indigo-500 rounded-full blur-[0.2px]"></div>
+ </div>
+
+ <div class="absolute top-0 w-full h-3 flex items-center justify-between px-2 z-20">
+ <span
+ class="text-[4px] font-bold text-black tracking-tight scale-75 origin-left">9:41</span>
+ <div class="flex items-center gap-0.5 scale-[0.4] origin-right">
+ <div class="flex items-end gap-[0.5px] h-2">
+ <div class="w-[1.5px] h-full bg-black rounded-full"></div>
+ </div>
+ <div class="w-4 h-2 border border-black rounded-[1px] relative">
+ <div class="h-full w-[80%] bg-black rounded-[0.5px]"></div>
+ </div>
+ </div>
+ </div>
+
+ <div class="w-full h-full bg-neutral-50 relative"></div>
+
+ <div
+ class="absolute bottom-1 left-1/2 -translate-x-1/2 w-8 h-0.5 bg-black/10 rounded-full z-10">
+ </div>
+ </div>
+ </div>
+
+ <div
+ class="absolute bottom-0 left-0 bg-black/50 backdrop-blur-xl border-tr border-white/20 px-2 py-1 text-[9px] text-white/90 font-semibold tracking-wider uppercase rounded-tr-md z-30">
+ IPHONE FULL
+ </div>
+ </div>
+ </li>
+
+ <li class="relative">
+ <div
+ class="relative w-full h-28 bg-cover bg-center bg-no-repeat bg-[url('https://i.ibb.co/8nVkzhQf/Get-Started-5.jpg')] rounded-lg border-2 border-neutral-800 overflow-hidden shadow-lg">
+
+ <div
+ class="absolute top-4 left-1/2 -translate-x-1/2 w-[75px] h-[150px] bg-white/40 backdrop-blur-xl rounded-t-xl p-[3px] shadow-2xl border border-white/70 overflow-hidden z-20">
+
+ <div class="absolute inset-y-0 left-0 w-2 bg-gradient-to-r from-white/20 to-transparent z-10">
+ </div>
+ <div class="absolute inset-y-0 right-0 w-2 bg-gradient-to-l from-white/20 to-transparent z-10">
+ </div>
+
+ <div
+ class="relative w-full h-full bg-white rounded-t-lg overflow-hidden shadow-inner flex flex-col">
+ <div
+ class="absolute top-1.5 left-1/2 -translate-x-1/2 w-4 h-0.5 bg-black/10 rounded-full z-20">
+ </div>
+
+ <div class="w-full h-full bg-white"></div>
+ </div>
+ </div>
+
+ <div
+ class="absolute bottom-0 left-0 bg-black/50 backdrop-blur-xl border-tr border-white/20 px-2 py-1 text-[9px] text-white/90 font-semibold tracking-wider uppercase rounded-tr-md z-30">
+ GLASS CURVE
+ </div>
+ </div>
+ </li>
+
+ <li class="relative">
+ <div
+ class="relative w-full h-28 bg-cover bg-center bg-no-repeat bg-[url('https://i.ibb.co/8nVkzhQf/Get-Started-5.jpg')] rounded-lg border-2 border-neutral-800 overflow-hidden shadow-lg">
+
+ <div
+ class="absolute top-4 left-1/2 -translate-x-1/2 w-[75px] h-[150px] bg-white/40 backdrop-blur-xl rounded-xl p-[2.5px] shadow-2xl border border-white/70 flex flex-col z-20">
+
+ <div
+ class="absolute -left-[1px] top-6 w-[1px] h-3 bg-white/50 rounded-l-sm border-y border-l border-white/30">
+ </div>
+ <div
+ class="absolute -left-[1px] top-10 w-[1px] h-6 bg-white/50 rounded-l-sm border-y border-l border-white/30">
+ </div>
+ <div
+ class="absolute -right-[1px] top-12 w-[1px] h-8 bg-white/50 rounded-r-sm border-y border-r border-white/30">
+ </div>
+
+ <div
+ class="relative w-full h-full bg-[#f9f9f9] rounded-lg overflow-hidden shadow-inner border border-black/5 flex flex-col">
+ <div
+ class="absolute top-1 left-1/2 -translate-x-1/2 w-6 h-1 bg-black/10 rounded-full z-20 flex items-center justify-between px-0.5">
+ <div class="w-0.5 h-0.5 bg-neutral-400 rounded-full"></div>
+ <div class="w-0.5 h-0.5 bg-indigo-400/50 rounded-full blur-[0.2px]"></div>
+ </div>
+
+ <div class="w-full h-full bg-neutral-50"></div>
+ <div
+ class="absolute bottom-1 left-1/2 -translate-x-1/2 w-8 h-0.5 bg-black/5 rounded-full z-10">
+ </div>
+ </div>
+ </div>
+
+ <div
+ class="absolute bottom-0 left-0 bg-black/50 backdrop-blur-xl border-tr border-white/20 px-2 py-1 text-[9px] text-white/90 font-semibold tracking-wider uppercase rounded-tr-md z-30">
+ GLASS BASE
+ </div>
+ </div>
+ </li>
+
+ <li class="relative">
+ <div
+ class="relative w-full h-28 bg-cover bg-center bg-no-repeat bg-[url('https://i.ibb.co/8nVkzhQf/Get-Started-5.jpg')] rounded-lg border-2 border-neutral-800 overflow-hidden shadow-lg">
+
+ <div
+ class="absolute top-4 left-1/2 -translate-x-1/2 w-[75px] h-[150px] bg-white/40 backdrop-blur-xl rounded-xl p-[2.5px] shadow-2xl border border-white/70 flex flex-col z-20">
+
+ <div
+ class="absolute -left-[1px] top-6 w-[1px] h-3 bg-white/50 rounded-l-sm border-y border-l border-white/30 shadow-sm">
+ </div>
+ <div
+ class="absolute -left-[1px] top-10 w-[1px] h-6 bg-white/50 rounded-l-sm border-y border-l border-white/30 shadow-sm">
+ </div>
+ <div
+ class="absolute -right-[1px] top-12 w-[1px] h-8 bg-white/50 rounded-r-sm border-y border-r border-white/30 shadow-sm">
+ </div>
+
+ <div
+ class="relative w-full h-full bg-[#f9f9f9] rounded-lg overflow-hidden shadow-inner border border-black/5 flex flex-col">
+
+ <div
+ class="absolute top-1 left-1/2 -translate-x-1/2 w-6 h-1.5 bg-black/5 rounded-full z-20 flex items-center justify-between px-0.5">
+ <div class="w-0.5 h-0.5 bg-neutral-400 rounded-full"></div>
+ <div class="w-0.5 h-0.5 bg-indigo-400/50 rounded-full blur-[0.2px]"></div>
+ </div>
+
+ <div class="absolute top-0 w-full h-3 flex items-center justify-between px-2 z-20">
+ <span class="text-[4px] font-bold text-black/40 scale-75 origin-left">9:41</span>
+ <div class="flex items-center gap-0.5 scale-[0.4] origin-right opacity-40">
+ <div class="flex items-end gap-[0.5px] h-2">
+ <div class="w-[1.5px] h-full bg-black rounded-full"></div>
+ </div>
+ <div class="w-4 h-2 border border-black rounded-[1px] relative">
+ <div class="h-full w-[80%] bg-black rounded-[0.5px]"></div>
+ </div>
+ </div>
+ </div>
+
+ <div class="w-full h-full bg-neutral-50"></div>
+
+ <div
+ class="absolute bottom-1 left-1/2 -translate-x-1/2 w-8 h-0.5 bg-black/5 rounded-full z-10">
+ </div>
+ </div>
+ </div>
+
+ <div
+ class="absolute bottom-0 left-0 bg-black/50 backdrop-blur-xl border-tr border-white/20 px-2 py-1 text-[9px] text-white/90 font-semibold tracking-wider uppercase rounded-tr-md z-30">
+ GLASS FULL
+ </div>
+ </div>
+ </li>
+
+ <li class="relative">
+ <div
+ class="relative w-full h-28 bg-cover bg-center bg-no-repeat bg-[url('https://i.ibb.co/8nVkzhQf/Get-Started-5.jpg')] rounded-lg border-2 border-neutral-800 overflow-hidden shadow-lg">
+
+ <div
+ class="absolute top-4 left-1/2 -translate-x-1/2 w-[75px] h-[155px] bg-zinc-200 rounded-md p-[2.5px] shadow-2xl border border-zinc-400 flex items-center justify-center z-20">
+ <div
+ class="absolute -right-[1px] top-6 w-[1.5px] h-3 bg-zinc-400 rounded-r-sm border border-zinc-500">
+ </div>
+ <div
+ class="absolute -right-[1px] top-11 w-[1.5px] h-2 bg-zinc-400 rounded-r-sm border border-zinc-500">
+ </div>
+
+ <div
+ class="relative w-full h-full bg-black rounded-[4px] p-[1.5px] overflow-hidden flex items-center justify-center">
+ <div class="relative w-full h-full bg-slate-50 rounded-[2px] flex flex-col overflow-hidden">
+ <div class="absolute top-1 left-1/2 -translate-x-1/2 size-1 bg-black rounded-full z-20">
+ </div>
+ <div class="w-full h-4 flex items-center justify-between z-10 scale-[0.7] origin-top">
+ <span class="text-[8px] font-medium">11:43</span>
+ <div class="flex items-center gap-0.5">
+ <div class="w-2.5 h-1.5 border border-black rounded-[1px]"></div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+
+ <div
+ class="absolute bottom-0 left-0 bg-black/50 backdrop-blur-xl border-tr border-white/20 px-2 py-1 text-[9px] text-white/90 font-semibold tracking-wider uppercase rounded-tr-md z-30">
+ HARD SHELL
+ </div>
+ </div>
+ </li>
+
+ <li class="relative">
+ <div
+ class="relative w-full h-28 bg-cover bg-center bg-no-repeat bg-[url('https://i.ibb.co/8nVkzhQf/Get-Started-5.jpg')] rounded-lg border-2 border-neutral-800 overflow-hidden shadow-lg">
+
+ <div
+ class="absolute top-4 left-1/2 -translate-x-1/2 w-[75px] h-[150px] bg-neutral-900 rounded-lg p-[2.5px] shadow-2xl border border-neutral-700 flex flex-col z-20">
+ <div
+ class="absolute -right-[1px] top-6 w-[1px] h-3 bg-neutral-500 rounded-r-sm border border-neutral-800">
+ </div>
+ <div
+ class="absolute -right-[1px] top-11 w-[1px] h-5 bg-neutral-500 rounded-r-sm border border-neutral-800">
+ </div>
+
+ <div
+ class="relative w-full h-full bg-white rounded-md overflow-hidden flex flex-col border border-black shadow-inner">
+ <div class="absolute top-1 left-1/2 -translate-x-1/2 size-1 bg-black rounded-full z-20">
+ </div>
+ <div class="w-full h-4 flex items-center justify-between z-10 scale-[0.7] origin-top">
+ <span class="text-[8px] font-medium">11:43</span>
+ <div class="flex items-center gap-0.5">
+ <div class="w-2.5 h-1.5 border border-black rounded-[1px]"></div>
+ </div>
+ </div>
+ <div
+ class="absolute bottom-1 w-full flex items-center justify-center gap-3 opacity-20 scale-50">
+ <div class="w-2 h-2 border border-black"></div>
+ <div class="w-2 h-2 border border-black rounded-full"></div>
+ <div class="w-2 h-2 border-l border-b border-black rotate-45"></div>
+ </div>
+ </div>
+ </div>
+
+ <div
+ class="absolute bottom-0 left-0 bg-black/50 backdrop-blur-xl border-tr border-white/20 px-2 py-1 text-[9px] text-white/90 font-semibold tracking-wider uppercase rounded-tr-md z-30">
+ S24 ULTRA
+ </div>
+ </div>
+ </li>
+ </ul>
+ </div>
+
+ <!-- preview editor -->
+ <div class=" bg-neutral-900 p-8 flex items-center justify-center">
+ <ul class="grid grid-cols-1 md:grid-cols-3 gap-2 w-full max-w-md">
+ <li class="relative">
+ <div
+ class="relative w-full h-28 bg-cover bg-center bg-no-repeat bg-[url('https://i.ibb.co/BHRsF6br/mockup-bg.avif/BHRsF6br/mockup-bg.avif/BHRsF6br/mockup-bg.avif/BHRsF6br/mockup-bg.avif')] rounded-lg border-2 border-neutral-800 overflow-hidden shadow-lg">
+
+ <div
+ class="absolute top-4 left-4 w-[160%] h-[160%] bg-[#1e1e1e] rounded-lg shadow-2xl border border-white/10 flex flex-col overflow-hidden">
+
+ <div class="flex items-center justify-between px-2 h-7 bg-[#181818] border-b border-white/5">
+ <div class="flex items-center gap-1.5 scale-75 origin-left">
+ <div class="text-blue-500">
+ <svg class="w-3.5 h-3.5" fill="currentColor" viewBox="0 0 24 24">
+ <path
+ d="M23.15 2.587L18.21.21a1.494 1.494 0 0 0-1.705.29l-9.46 8.63-4.12-3.128a.999.999 0 0 0-1.276.057L.327 7.261A1 1 0 0 0 .326 8.74L3.899 12 .326 15.26a1 1 0 0 0 0 1.479l1.323 1.202a.999.999 0 0 0 1.277.058l4.12-3.128 9.46 8.63a1.492 1.492 0 0 0 1.704.29l4.942-2.377A1.5 1.5 0 0 0 24 20.06V3.939a1.5 1.5 0 0 0-.85-1.352zm-5.146 14.861L10.826 12l7.178-5.448v10.896z" />
+ </svg>
+ </div>
+ <div class="flex gap-2 text-[#cccccc] text-[9px]">
+ <span>File</span>
+ <span>Edit</span>
+ <span>Selection</span>
+ </div>
+ </div>
+
+ <div class="flex-1 flex justify-center px-4">
+ <div
+ class="w-full max-w-[100px] h-[16px] bg-[#2b2b2b] border border-white/10 rounded flex items-center justify-center gap-1">
+ <div class="w-1.5 h-1.5 border border-neutral-500 rounded-full"></div>
+ <div class="w-8 h-0.5 bg-neutral-600 rounded-full"></div>
+ </div>
+ </div>
+
+ <div class="flex items-center gap-2 scale-75 origin-right pr-1">
+ <div class="w-2 h-[1px] bg-neutral-500"></div>
+ <div class="w-2 h-2 border border-neutral-500"></div>
+ <div class="w-2 h-2 flex items-center justify-center relative text-neutral-500">×</div>
+ </div>
+ </div>
+
+ <div class="flex-1 bg-[#1e1e1e]"></div>
+ </div>
+
+ <div
+ class="absolute bottom-0 left-0 bg-black/50 backdrop-blur-xl border-tr border-white/20 px-2 py-1 text-[9px] text-white/90 font-semibold tracking-wider uppercase rounded-tr-md z-10">
+ VS CODE
+ </div>
+ </div>
+ </li>
+ <li class="relative">
+ <div
+ class="relative w-full h-28 bg-cover bg-center bg-no-repeat bg-[url('https://i.ibb.co/BHRsF6br/mockup-bg.avif/BHRsF6br/mockup-bg.avif/BHRsF6br/mockup-bg.avif/BHRsF6br/mockup-bg.avif')] rounded-lg border-2 border-neutral-800 overflow-hidden shadow-lg">
+ <div
+ class="absolute top-4 left-4 w-[160%] h-[160%] bg-[#1e1e1e] rounded-lg shadow-2xl border border-white/10 flex flex-col overflow-hidden">
+ <div class="flex items-center justify-between px-2 h-7 bg-[#181818] border-b border-white/5">
+ <div class="flex items-center gap-2 scale-75 origin-left">
+ <div class="flex gap-1.5 px-1">
+ <div class="w-2 h-2 rounded-full bg-[#ff5f57] border border-[#e0443e]"></div>
+ <div class="w-2 h-2 rounded-full bg-[#febc2e] border border-[#d89f24]"></div>
+ <div class="w-2 h-2 rounded-full bg-[#28c840] border border-[#1aab29]"></div>
+ </div>
+ <div class="flex gap-2 text-[#999999] text-[9px] ml-1">
+ <span>File</span>
+ <span>Edit</span>
+ <span>Selection</span>
+ </div>
+ </div>
+ <div class="flex-1 flex justify-center px-4">
+ <div
+ class="w-full max-w-[100px] h-[16px] bg-[#2b2b2b] border border-white/10 rounded flex items-center justify-center gap-1">
+ <div class="w-1.5 h-1.5 border border-neutral-500 rounded-full"></div>
+ <div class="w-8 h-0.5 bg-neutral-600 rounded-full"></div>
+ </div>
+ </div>
+ <div class="w-10"></div>
+ </div>
+ <div class="flex-1 bg-[#1e1e1e]"></div>
+ </div>
+ <div
+ class="absolute bottom-0 left-0 bg-black/50 backdrop-blur-xl border-tr border-white/20 px-2 py-1 text-[9px] text-white/90 font-semibold tracking-wider uppercase rounded-tr-md z-10">
+ MACOS DARK
+ </div>
+ </div>
+ </li>
+
+ <li class="relative">
+ <div
+ class="relative w-full h-28 bg-cover bg-center bg-no-repeat bg-[url('https://i.ibb.co/BHRsF6br/mockup-bg.avif/BHRsF6br/mockup-bg.avif/BHRsF6br/mockup-bg.avif/BHRsF6br/mockup-bg.avif')] rounded-lg border-2 border-neutral-800 overflow-hidden shadow-lg">
+ <div
+ class="absolute top-4 left-4 w-[160%] h-[160%] bg-[#1e1e1e] rounded-lg shadow-2xl border border-white/10 flex flex-col overflow-hidden">
+ <div class="flex items-center justify-between px-2 h-7 bg-[#181818] border-b border-white/5">
+ <div class="flex items-center gap-2 scale-75 origin-left">
+ <div class="flex gap-1.5 px-1">
+ <div class="w-2 h-2 rounded-full border border-white/40 bg-transparent"></div>
+ <div class="w-2 h-2 rounded-full border border-white/40 bg-transparent"></div>
+ <div class="w-2 h-2 rounded-full border border-white/40 bg-transparent"></div>
+ </div>
+ <div class="flex gap-2 text-[#999999] text-[9px] ml-1">
+ <span>File</span>
+ <span>Edit</span>
+ <span>Selection</span>
+ </div>
+ </div>
+ <div class="flex-1 flex justify-center px-4">
+ <div
+ class="w-full max-w-[100px] h-[16px] bg-[#2b2b2b] border border-white/10 rounded flex items-center justify-center gap-1">
+ <div class="w-1.5 h-1.5 border border-neutral-500 rounded-full"></div>
+ <div class="w-8 h-0.5 bg-neutral-600 rounded-full"></div>
+ </div>
+ </div>
+ <div class="w-10"></div>
+ </div>
+ <div class="flex-1 bg-[#1e1e1e]"></div>
+ </div>
+ <div
+ class="absolute bottom-0 left-0 bg-black/50 backdrop-blur-xl border-tr border-white/20 px-2 py-1 text-[9px] text-white/90 font-semibold tracking-wider uppercase rounded-tr-md z-10">
+ MACOS GHOST
+ </div>
+ </div>
+ </li>
+
+
+ </ul>
+ </div>
+
+ <!-- ________________________________________ -->
+
+
+ <!-- None -->
+ <div
+ class="min-h-2xl bg-gradient-to-br from-fuchsia-400 via-purple-500 to-pink-400 flex items-center justify-center p-8">
+ <div class="relative w-full max-w-4xl">
+ <div class="relative w-full bg-[#f9f9f9] rounded-xl overflow-hidden shadow-inner border border-white/10">
+ <div class="w-full h-[65vh] relative">
+ </div>
+ </div>
+ </div>
+ </div>
+
+ <!-- macos -->
+ <div
+ class="min-h-2xl bg-gradient-to-br from-fuchsia-400 via-purple-500 to-pink-400 flex items-center justify-center p-8">
+
+ <div class="relative w-full max-w-5xl">
+
+ <div
+ class="relative w-full bg-[#f9f9f9] rounded-2xl overflow-hidden shadow-inner border border-white/70 flex flex-col">
+
+ <div
+ class="h-9 bg-[#f6f6f6] flex items-center px-3 justify-between select-none border-b border-gray-300">
+
+ <div class="flex items-center gap-3">
+ <div class="flex gap-1.5">
+ <div class="w-2.5 h-2.5 rounded-full bg-[#FF5F56] border border-[#E0443E]"></div>
+ <div class="w-2.5 h-2.5 rounded-full bg-[#FFBD2E] border border-[#DEA123]"></div>
+ <div class="w-2.5 h-2.5 rounded-full bg-[#27C93F] border border-[#1AAB29]"></div>
+ </div>
+
+ <div class="flex items-center gap-2 text-gray-500">
+ <svg class="w-3.5 h-3.5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
+ d="M4 6h16M4 12h16M4 18h7"></path>
+ </svg>
+ <svg class="w-3.5 h-3.5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
+ d="M15 19l-7-7 7-7"></path>
+ </svg>
+ <svg class="w-3.5 h-3.5 text-gray-300" fill="none" stroke="currentColor"
+ viewBox="0 0 24 24">
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7">
+ </path>
+ </svg>
+ </div>
+ </div>
+
+ <div class="flex-1 max-w-xl mx-4">
+ <div
+ class="bg-white rounded h-6 w-full flex items-center justify-between px-2 text-gray-500 border border-gray-300/50 shadow-sm">
+ <svg class="w-2.5 h-2.5 text-gray-400" fill="none" stroke="currentColor"
+ viewBox="0 0 24 24">
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
+ d="M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z">
+ </path>
+ </svg>
+ <span class="flex-1 text-center text-[10px] font-medium truncate px-2 text-gray-500">
+ https://freeshot.dev
+ </span>
+ <svg class="w-2.5 h-2.5 text-gray-400" fill="none" stroke="currentColor"
+ viewBox="0 0 24 24">
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
+ d="M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15">
+ </path>
+ </svg>
+ </div>
+ </div>
+
+ <div class="flex items-center gap-3 text-gray-500">
+ <svg class="w-3.5 h-3.5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
+ d="M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"></path>
+ </svg>
+ <svg class="w-3.5 h-3.5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
+ d="M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-8l-4-4m0 0L8 8m4-4v12"></path>
+ </svg>
+ <svg class="w-3.5 h-3.5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 4v16m8-8H4">
+ </path>
+ </svg>
+ <svg class="w-3.5 h-3.5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
+ d="M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z">
+ </path>
+ </svg>
+ </div>
+ </div>
+
+ <div class="w-full h-[65vh] relative">
+ </div>
+ </div>
+ </div>
+ </div>
+
+ <!-- macos glass-->
+ <div
+ class="min-h-screen bg-gradient-to-br from-fuchsia-400 via-purple-500 to-pink-400 flex items-center justify-center p-8">
+
+ <div class="glass-main w-full max-w-5xl shadow-[0_20px_50px_rgba(0,0,0,0.3)]">
+ <div class="lg-filter"></div>
+ <div class="lg-overlay"></div>
+ <div class="lg-specular"></div>
+
+ <div class="lg-content p-5">
+ <div
+ class="relative w-full bg-[#f9f9f9] rounded-xl overflow-hidden shadow-2xl border border-white/70 flex flex-col">
+
+ <div
+ class="h-9 bg-[#f6f6f6] flex items-center px-3 justify-between select-none border-b border-gray-300">
+ <div class="flex items-center gap-3">
+ <div class="flex gap-1.5">
+ <div class="w-2.5 h-2.5 rounded-full bg-[#FF5F56] border border-[#E0443E]"></div>
+ <div class="w-2.5 h-2.5 rounded-full bg-[#FFBD2E] border border-[#DEA123]"></div>
+ <div class="w-2.5 h-2.5 rounded-full bg-[#27C93F] border border-[#1AAB29]"></div>
+ </div>
+
+ <div class="flex items-center gap-2 text-gray-500">
+ <svg class="w-3.5 h-3.5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
+ d="M4 6h16M4 12h16M4 18h7"></path>
+ </svg>
+ <svg class="w-3.5 h-3.5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
+ d="M15 19l-7-7 7-7"></path>
+ </svg>
+ <svg class="w-3.5 h-3.5 text-gray-300" fill="none" stroke="currentColor"
+ viewBox="0 0 24 24">
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
+ d="M9 5l7 7-7 7"></path>
+ </svg>
+ </div>
+ </div>
+
+ <div class="flex-1 max-w-xl mx-4">
+ <div
+ class="bg-white rounded h-6 w-full flex items-center justify-between px-2 text-gray-500 border border-gray-300/50 shadow-sm">
+ <svg class="w-2.5 h-2.5 text-gray-400" fill="none" stroke="currentColor"
+ viewBox="0 0 24 24">
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
+ d="M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z">
+ </path>
+ </svg>
+ <span
+ class="flex-1 text-center text-[10px] font-medium truncate px-2 text-gray-500">https://freeshot.dev</span>
+ <svg class="w-2.5 h-2.5 text-gray-400" fill="none" stroke="currentColor"
+ viewBox="0 0 24 24">
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
+ d="M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15">
+ </path>
+ </svg>
+ </div>
+ </div>
+
+ <div class="flex items-center gap-3 text-gray-500">
+ <svg class="w-3.5 h-3.5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
+ <path d="M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"
+ stroke-width="2"></path>
+ </svg>
+ <svg class="w-3.5 h-3.5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
+ <path d="M12 4v16m8-8H4" stroke-width="2"></path>
+ </svg>
+ <svg class="w-3.5 h-3.5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
+ <path
+ d="M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"
+ stroke-width="2"></path>
+ </svg>
+ </div>
+ </div>
+
+ <div class="w-full h-[65vh] relative bg-[#f9f9f9]">
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+
+
+ <!-- macos ouline-->
+ <div
+ class="min-h-screen bg-gradient-to-br from-fuchsia-400 via-purple-500 to-pink-400 flex items-center justify-center p-8">
+
+ <div class="glass-main w-full max-w-5xl shadow-[0_20px_50px_rgba(0,0,0,0.3)]">
+ <div class="lg-filter"></div>
+ <div class="lg-overlay"></div>
+ <div class="lg-specular"></div>
+
+ <div class="lg-content p-5">
+ <div
+ class="relative w-full bg-[#f9f9f9] rounded-xl overflow-hidden shadow-2xl border border-white/70 flex flex-col">
+
+ <div
+ class="h-9 bg-[#f6f6f6] flex items-center px-3 justify-between select-none border-b border-gray-300">
+ <div class="flex items-center gap-3">
+ <div class="flex gap-1.5">
+ <div class="w-2.5 h-2.5 rounded-full border border-gray-400"></div>
+ <div class="w-2.5 h-2.5 rounded-full border border-gray-400"></div>
+ <div class="w-2.5 h-2.5 rounded-full border border-gray-400"></div>
+ </div>
+
+ <div class="flex items-center gap-2 text-gray-500">
+ <svg class="w-3.5 h-3.5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
+ d="M4 6h16M4 12h16M4 18h7"></path>
+ </svg>
+ <svg class="w-3.5 h-3.5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
+ d="M15 19l-7-7 7-7"></path>
+ </svg>
+ <svg class="w-3.5 h-3.5 text-gray-300" fill="none" stroke="currentColor"
+ viewBox="0 0 24 24">
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
+ d="M9 5l7 7-7 7"></path>
+ </svg>
+ </div>
+ </div>
+
+ <div class="flex-1 max-w-xl mx-4">
+ <div
+ class="bg-white rounded h-6 w-full flex items-center justify-between px-2 text-gray-500 border border-gray-300/50 shadow-sm">
+ <svg class="w-2.5 h-2.5 text-gray-400" fill="none" stroke="currentColor"
+ viewBox="0 0 24 24">
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
+ d="M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z">
+ </path>
+ </svg>
+ <span
+ class="flex-1 text-center text-[10px] font-medium truncate px-2 text-gray-500">https://freeshot.dev</span>
+ <svg class="w-2.5 h-2.5 text-gray-400" fill="none" stroke="currentColor"
+ viewBox="0 0 24 24">
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
+ d="M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15">
+ </path>
+ </svg>
+ </div>
+ </div>
+
+ <div class="flex items-center gap-3 text-gray-500">
+ <svg class="w-3.5 h-3.5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
+ <path d="M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"
+ stroke-width="2"></path>
+ </svg>
+ <svg class="w-3.5 h-3.5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
+ <path d="M12 4v16m8-8H4" stroke-width="2"></path>
+ </svg>
+ <svg class="w-3.5 h-3.5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
+ <path
+ d="M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"
+ stroke-width="2"></path>
+ </svg>
+ </div>
+ </div>
+
+ <div class="w-full h-[65vh] relative bg-[#f9f9f9]">
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+
+ <div
+ class="min-h-2xl bg-gradient-to-br from-fuchsia-400 via-purple-500 to-pink-400 flex items-center justify-center p-8">
+
+ <div class="relative w-full max-w-5xl">
+
+ <div
+ class="relative w-full bg-[#f9f9f9] rounded-xl overflow-hidden shadow-inner border border-white/70 flex flex-col">
+
+ <div
+ class="h-9 bg-[#f6f6f6] flex items-center px-3 justify-between select-none border-b border-gray-300">
+
+ <div class="flex items-center gap-3">
+ <div class="flex gap-1.5">
+ <div class="w-2.5 h-2.5 rounded-full border border-gray-400"></div>
+ <div class="w-2.5 h-2.5 rounded-full border border-gray-400"></div>
+ <div class="w-2.5 h-2.5 rounded-full border border-gray-400"></div>
+ </div>
+
+ <div class="flex items-center gap-2 text-gray-500">
+ <svg class="w-3.5 h-3.5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
+ d="M4 6h16M4 12h16M4 18h7"></path>
+ </svg>
+ <svg class="w-3.5 h-3.5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
+ d="M15 19l-7-7 7-7"></path>
+ </svg>
+ <svg class="w-3.5 h-3.5 text-gray-300" fill="none" stroke="currentColor"
+ viewBox="0 0 24 24">
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7">
+ </path>
+ </svg>
+ </div>
+ </div>
+
+ <div class="flex-1 max-w-xl mx-4">
+ <div
+ class="bg-white rounded h-6 w-full flex items-center justify-between px-2 text-gray-500 border border-gray-300/50 shadow-sm">
+ <svg class="w-2.5 h-2.5 text-gray-400" fill="none" stroke="currentColor"
+ viewBox="0 0 24 24">
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
+ d="M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z">
+ </path>
+ </svg>
+ <span class="flex-1 text-center text-[10px] font-medium truncate px-2 text-gray-500">
+ https://freeshot.dev
+ </span>
+ <svg class="w-2.5 h-2.5 text-gray-400" fill="none" stroke="currentColor"
+ viewBox="0 0 24 24">
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
+ d="M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15">
+ </path>
+ </svg>
+ </div>
+ </div>
+
+ <div class="flex items-center gap-3 text-gray-500">
+ <svg class="w-3.5 h-3.5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
+ d="M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"></path>
+ </svg>
+ <svg class="w-3.5 h-3.5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
+ d="M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-8l-4-4m0 0L8 8m4-4v12"></path>
+ </svg>
+ <svg class="w-3.5 h-3.5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 4v16m8-8H4">
+ </path>
+ </svg>
+ <svg class="w-3.5 h-3.5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
+ d="M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z">
+ </path>
+ </svg>
+ </div>
+ </div>
+
+ <div class="w-full h-[65vh] relative">
+ </div>
+ </div>
+ </div>
+ </div>
+
+ <!-- windows brave -->
+ <div
+ class="min-h-screen bg-gradient-to-br from-fuchsia-400 via-purple-500 to-pink-400 flex items-center justify-center p-8">
+ <div class="glass-main w-full max-w-5xl shadow-[0_20px_50px_rgba(0,0,0,0.25)]">
+ <div class="lg-filter"></div>
+ <div class="lg-overlay"></div>
+ <div class="lg-specular"></div>
+
+ <div class="lg-content p-5">
+ <div
+ class="relative w-full bg-[#f9f9f9] rounded-xl overflow-hidden shadow-inner border border-white/70 flex flex-col">
+ <div
+ class="h-8 bg-[#f3f3f3] flex items-center justify-between select-none border-b border-gray-300">
+ <div class="flex items-center gap-3 px-3 text-gray-500">
+ <svg class="w-3.5 h-3.5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2.5"
+ d="M15 19l-7-7 7-7"></path>
+ </svg>
+ <svg class="w-3.5 h-3.5 text-gray-300" fill="none" stroke="currentColor"
+ viewBox="0 0 24 24">
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2.5"
+ d="M9 5l7 7-7 7"></path>
+ </svg>
+ <svg class="w-3.5 h-3.5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
+ d="M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15">
+ </path>
+ </svg>
+ </div>
+
+ <div class="flex-1 max-w-xl mx-2">
+ <div
+ class="bg-white rounded h-[26px] w-full flex items-center justify-between px-2.5 text-gray-500 border border-gray-200 shadow-2xs">
+ <svg class="w-2.5 h-2.5 text-gray-400" fill="none" stroke="currentColor"
+ viewBox="0 0 24 24">
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
+ d="M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z">
+ </path>
+ </svg>
+ <span
+ class="flex-1 text-center text-[11px] font-medium truncate px-4 text-gray-500">https://brave.dev</span>
+ <svg class="size-3 text-yellow-500/80" fill="currentColor" viewBox="0 0 24 24">
+ <path
+ d="M11.049 2.927c.3-.921 1.603-.921 1.902 0l1.519 4.674a1 1 0 00.95.69h4.915c.969 0 1.371 1.24.588 1.81l-3.976 2.888a1 1 0 00-.363 1.118l1.518 4.674c.3.922-.755 1.688-1.538 1.118l-3.976-2.888a1 1 0 00-1.176 0l-3.976 2.888c-.783.57-1.838-.197-1.538-1.118l1.518-4.674a1 1 0 00-.363-1.118l-3.976-2.888c-.784-.57-.38-1.81.588-1.81h4.914a1 1 0 00.951-.69l1.519-4.674z">
+ </path>
+ </svg>
+ </div>
+ </div>
+
+ <div class="flex items-center h-full">
+ <div class="flex items-center gap-2.5 pr-3 text-gray-500">
+ <svg class="w-3.5 h-3.5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
+ d="M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"></path>
+ </svg>
+ <svg class="w-3.5 h-3.5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
+ d="M12 5v.01M12 12v.01M12 19v.01M12 6a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2z">
+ </path>
+ </svg>
+ </div>
+ <div class="flex h-full text-gray-500">
+ <div class="px-3 flex items-center justify-center"><svg width="10" height="1"
+ fill="currentColor">
+ <rect width="10" height="1" />
+ </svg></div>
+ <div class="px-3 flex items-center justify-center"><svg width="9" height="9" fill="none"
+ stroke="currentColor">
+ <rect x="0.5" y="0.5" width="8" height="8" stroke-width="1" />
+ </svg></div>
+ <div class="px-3 flex items-center justify-center"><svg width="9" height="9" fill="none"
+ stroke="currentColor">
+ <path d="M1 1l7 7M8 1L1 8" stroke-width="1.2" />
+ </svg></div>
+ </div>
+ </div>
+ </div>
+ <div class="w-full h-[65vh] relative bg-[#f9f9f9]"></div>
+ </div>
+ </div>
+ </div>
+ </div>
+
+ <div
+ class="min-h-2xl bg-gradient-to-br from-fuchsia-400 via-purple-500 to-pink-400 flex items-center justify-center p-8">
+
+ <div class="relative w-full max-w-5xl">
+
+ <div
+ class="relative w-full bg-[#f9f9f9] rounded-xl overflow-hidden shadow-2xl border border-white/70 flex flex-col">
+
+ <div class="h-8 bg-[#f3f3f3] flex items-center justify-between select-none border-b border-gray-300">
+ <div class="flex items-center gap-3 px-3 text-gray-500">
+ <svg class="w-3.5 h-3.5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2.5" d="M15 19l-7-7 7-7">
+ </path>
+ </svg>
+ <svg class="w-3.5 h-3.5 text-gray-300" fill="none" stroke="currentColor" viewBox="0 0 24 24">
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2.5" d="M9 5l7 7-7 7">
+ </path>
+ </svg>
+ <svg class="w-3.5 h-3.5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
+ d="M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15">
+ </path>
+ </svg>
+ </div>
+
+ <div class="flex-1 max-w-xl mx-2">
+ <div
+ class="bg-white rounded h-[26px] w-full flex items-center justify-between px-2.5 text-gray-500 border border-gray-200 shadow-2xs">
+ <svg class="w-2.5 h-2.5 text-gray-400" fill="none" stroke="currentColor"
+ viewBox="0 0 24 24">
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
+ d="M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z">
+ </path>
+ </svg>
+ <span class="flex-1 text-center text-[11px] font-medium truncate px-4 text-gray-500">
+ https://brave.dev
+ </span>
+ <svg class="size-3 text-yellow-500/80" fill="CurrentColor" stroke="currentColor"
+ viewBox="0 0 24 24">
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
+ d="M11.049 2.927c.3-.921 1.603-.921 1.902 0l1.519 4.674a1 1 0 00.95.69h4.915c.969 0 1.371 1.24.588 1.81l-3.976 2.888a1 1 0 00-.363 1.118l1.518 4.674c.3.922-.755 1.688-1.538 1.118l-3.976-2.888a1 1 0 00-1.176 0l-3.976 2.888c-.783.57-1.838-.197-1.538-1.118l1.518-4.674a1 1 0 00-.363-1.118l-3.976-2.888c-.784-.57-.38-1.81.588-1.81h4.914a1 1 0 00.951-.69l1.519-4.674z">
+ </path>
+ </svg>
+ </div>
+ </div>
+
+ <div class="flex items-center h-full">
+ <div class="flex items-center gap-2.5 pr-3 text-gray-500">
+ <svg class="w-3.5 h-3.5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
+ d="M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"></path>
+ </svg>
+ <svg class="w-3.5 h-3.5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
+ d="M12 5v.01M12 12v.01M12 19v.01M12 6a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2z">
+ </path>
+ </svg>
+ </div>
+
+ <div class="flex h-full text-gray-500">
+ <div class="px-3 flex items-center justify-center">
+ <svg width="10" height="1" viewBox="0 0 10 1" fill="currentColor">
+ <rect width="10" height="1" />
+ </svg>
+ </div>
+ <div class="px-3 flex items-center justify-center">
+ <svg width="9" height="9" viewBox="0 0 10 10" fill="none" stroke="currentColor">
+ <rect x="0.5" y="0.5" width="9" height="9" stroke-width="1" />
+ </svg>
+ </div>
+ <div class="px-3 flex items-center justify-center">
+ <svg width="9" height="9" viewBox="0 0 10 10" fill="none" stroke="currentColor">
+ <path d="M1 1l8 8M9 1L1 9" stroke-width="1.2" />
+ </svg>
+ </div>
+ </div>
+ </div>
+ </div>
+
+ <div class="w-full h-[65vh] relative bg-[#f9f9f9]">
+ </div>
+ </div>
+ </div>
+ </div>
+
+
+ <!-- chrome tab glass -->
+ <div
+ class="min-h-screen bg-gradient-to-br from-fuchsia-400 via-purple-500 to-pink-400 flex items-center justify-center p-8">
+ <div class="relative w-full max-w-5xl rounded-3xl p-4 overflow-hidden border border-white/40 shadow-[0_20px_50px_rgba(0,0,0,0.3)]"
+ style="background: rgba(255, 255, 255, 0.15); backdrop-filter: blur(20px);">
+ <div
+ class="absolute inset-0 bg-gradient-to-tr from-white/10 via-transparent to-white/5 pointer-events-none">
+ </div>
+
+ <div class="h-6 flex items-end px-4 relative z-10 justify-between">
+ <div class="flex items-end gap-3">
+ <div class="flex gap-1.5 mb-2.5 px-1">
+ <div class="w-2.5 h-2.5 rounded-full bg-white/20 border border-white/30"></div>
+ <div class="w-2.5 h-2.5 rounded-full bg-white/20 border border-white/30"></div>
+ <div class="w-2.5 h-2.5 rounded-full bg-white/20 border border-white/30"></div>
+ </div>
+
+ <div
+ class="bg-white/80 backdrop-blur-xl border-t border-x border-white/90 rounded-t-xl h-7 w-46 flex items-center justify-between px-3 shadow-[-5px_0_15px_rgba(0,0,0,0.05)]">
+ <div class="flex items-center gap-2 overflow-hidden">
+ <div
+ class="w-3 h-3 rounded-full bg-blue-400 shadow-[0_0_8px_rgba(96,165,250,0.8)] flex-shrink-0">
+ </div>
+ <span class="text-[10px] font-medium text-gray-700 truncate tracking-tight">Nueva
+ pestaña</span>
+ </div>
+ <div
+ class="w-2 h-2 rounded-full bg-gray-400/20 flex items-center justify-center relative flex-shrink-0 ml-2">
+ <div class="w-full h-[1px] bg-gray-600/80 rotate-45 absolute"></div>
+ <div class="w-full h-[1px] bg-gray-600/80 -rotate-45 absolute"></div>
+ </div>
+ </div>
+
+ <div
+ class="mb-1 w-6 h-6 rounded-full bg-white/20 border border-white/30 flex items-center justify-center shadow-sm">
+ <span
+ class="text-[14px] text-white/80 flex items-center justify-center h-full w-full -mt-[1px]">+</span>
+ </div>
+ </div>
+
+ <div class="flex items-center gap-6 mb-2.5 mr-1">
+ <div class="w-3 h-[1.2px] bg-white/50"></div>
+ <div class="w-[9px] h-[9px] border-2 border-white/50 rounded-[1px]"></div>
+ <svg class="w-3 h-3 text-white/50" fill="none" stroke="currentColor" viewBox="0 0 24 24">
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2.5"
+ d="M6 18L18 6M6 6l12 12" />
+ </svg>
+ </div>
+ </div>
+
+ <div
+ class="relative w-full bg-[#f9f9f9] rounded-2xl overflow-hidden shadow-2xl border border-white/60 flex flex-col z-10">
+ <div class="h-8 bg-white/80 border-b border-gray-200 flex items-center px-4 gap-4">
+ <div class="flex gap-3 text-gray-400">
+ <svg class="w-3 h-3" fill="none" stroke="currentColor" viewBox="0 0 24 24">
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2.5"
+ d="M15 19l-7-7 7-7" />
+ </svg>
+ <svg class="w-3 h-3 opacity-30" fill="none" stroke="currentColor" viewBox="0 0 24 24">
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2.5" d="M9 5l7 7-7 7" />
+ </svg>
+ <svg class="w-3 h-3" fill="none" stroke="currentColor" viewBox="0 0 24 24">
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2.5"
+ d="M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9" />
+ </svg>
+ </div>
+
+ <div
+ class="flex-1 bg-gray-100/50 rounded-lg h-6 border border-gray-200 flex items-center px-3 justify-center">
+ <div class="flex items-center gap-1.5 opacity-60">
+ <svg class="w-2.5 h-2.5 text-green-600" fill="currentColor" viewBox="0 0 20 20">
+ <path fill-rule="evenodd"
+ d="M5 9V7a5 5 0 0110 0v2a2 2 0 012 2v5a2 2 0 01-2 2H5a2 2 0 01-2-2v-5a2 2 0 012-2zm8-2v2H7V7a3 3 0 016 0z"
+ clip-rule="evenodd" />
+ </svg>
+ <span
+ class="text-[10px] font-medium text-gray-600 tracking-tight">https://api.codifact.dev</span>
+ </div>
+ </div>
+
+ <div class="flex items-center gap-3 text-gray-400">
+ <svg class="w-3 h-3" fill="none" stroke="currentColor" viewBox="0 0 24 24">
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
+ d="M11 4a2 2 0 114 0v1a1 1 0 001 1h3a1 1 0 011 1v3a1 1 0 01-1 1h-1a2 2 0 100 4h1a1 1 0 011 1v3a1 1 0 01-1 1h-3a1 1 0 01-1-1v-1a2 2 0 11-4 0v1a1 1 0 01-1 1H7a1 1 0 01-1-1v-3a1 1 0 011-1h1a2 2 0 100-4H7a1 1 0 01-1-1V7a1 1 0 011-1h3a1 1 0 011-1V4z" />
+ </svg>
+ <div class="w-5 h-5 rounded-full bg-gradient-to-tr from-purple-400 to-pink-300"></div>
+ <svg class="w-3 h-3" fill="none" stroke="currentColor" viewBox="0 0 24 24">
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2.5"
+ d="M12 5v.01M12 12v.01M12 19v.01" />
+ </svg>
+ </div>
+ </div>
+ <div class="w-full h-[60vh] bg-[#f9f9f9] relative"></div>
+ </div>
+ </div>
+ </div>
+
+
+ <!-- chrome windows -->
+ <div
+ class="min-h-screen bg-gradient-to-br from-fuchsia-400 via-purple-500 to-pink-400 flex items-center justify-center p-8 text-antialiased">
+ <div
+ class="w-full max-w-5xl bg-white rounded-xl overflow-hidden shadow-2xl border border-black/10 flex flex-col">
+
+ <div class="h-8 bg-[#dee1e6] flex items-end select-none">
+ <div
+ class="relative bg-white h-[28px] px-3 ml-2 rounded-t-[4px] flex items-center gap-2 text-[10.5px] text-gray-700 min-w-[180px] border-t border-x border-gray-300/50">
+ <svg class="w-3 h-3 text-blue-600" fill="currentColor" viewBox="0 0 24 24">
+ <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2z" />
+ </svg>
+ <span class="truncate flex-1">Nueva pestaña</span>
+ <svg class="w-3 h-3 text-gray-500" fill="none" stroke="currentColor" viewBox="0 0 24 24">
+ <path d="M6 18L18 6M6 6l12 12" stroke-width="2.5" />
+ </svg>
+ </div>
+
+ <div class="mb-1.5 ml-1 p-1 text-gray-500">
+ <svg class="w-3.5 h-3.5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
+ <path d="M12 4v16m8-8H4" stroke-width="3" />
+ </svg>
+ </div>
+
+ <div class="ml-auto flex h-full items-center">
+ <div class="px-4 h-full flex items-center justify-center text-gray-700">
+ <svg width="10" height="1" fill="currentColor">
+ <rect width="10" height="1" />
+ </svg>
+ </div>
+ <div class="px-4 h-full flex items-center justify-center text-gray-700">
+ <svg width="9" height="9" fill="none" stroke="currentColor">
+ <rect x="0.5" y="0.5" width="8" height="8" stroke-width="1" />
+ </svg>
+ </div>
+ <div class="px-4 h-full flex items-center justify-center text-gray-700">
+ <svg width="10" height="10" fill="none" stroke="currentColor">
+ <path d="M1 1l8 8M9 1L1 9" stroke-width="1.2" />
+ </svg>
+ </div>
+ </div>
+ </div>
+
+ <div class="h-8 bg-white flex items-center justify-between px-2 gap-2 border-b border-gray-200">
+ <div class="flex items-center gap-1 text-gray-600 px-2">
+ <div class="p-1.5 cursor-default">
+ <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor"
+ stroke-width="1.5">
+ <path d="M19 12H5M12 19l-7-7 7-7" stroke-linecap="round" stroke-linejoin="round" />
+ </svg>
+ </div>
+
+ <div class="p-1.5 text-gray-300">
+ <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor"
+ stroke-width="1.5">
+ <path d="M5 12h14m-7 7l7-7-7-7" stroke-linecap="round" stroke-linejoin="round" />
+ </svg>
+ </div>
+
+ <div class="p-1.5 cursor-default">
+ <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor"
+ stroke-width="2">
+ <path d="M21 12a9 9 0 11-2.12-5.88L21 9m0 0V3m0 6h-6" stroke-linecap="round"
+ stroke-linejoin="round" />
+ </svg>
+ </div>
+ </div>
+
+ <div class="flex-1">
+ <div
+ class="bg-[#f1f3f4] rounded-full h-[26px] w-full flex items-center px-3 text-gray-600 text-[11px] border border-transparent">
+ <svg class="w-3 h-3 mr-2 text-gray-500" fill="none" stroke="currentColor" viewBox="0 0 24 24">
+ <path
+ d="M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z"
+ stroke-width="2" />
+ </svg>
+ <span class="truncate">freeshot.dev</span>
+ </div>
+ </div>
+
+ <div class="flex items-center gap-0.5 text-gray-500 px-1">
+ <div class="p-1.5"><svg class="w-3.5 h-3.5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
+ <path
+ d="M11.049 2.927c.3-.921 1.603-.921 1.902 0l1.519 4.674a1 1 0 00.95.69h4.915c.969 0 1.371 1.24.588 1.81l-3.976 2.888a1 1 0 00-.363 1.118l1.518 4.674c.3.922-.755 1.688-1.538 1.118l-3.976-2.888a1 1 0 00-1.176 0l-3.976 2.888c-.783.57-1.838-.197-1.538-1.118l1.518-4.674a1 1 0 00-.363-1.118l-3.976-2.888c-.784-.57-.38-1.81.588-1.81h4.914a1 1 0 00.951-.69l1.519-4.674z"
+ stroke-width="2" />
+ </svg></div>
+ <div class="p-1.5"><svg class="w-3.5 h-3.5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
+ <path
+ d="M12 5v.01M12 12v.01M12 19v.01M12 6a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2z"
+ stroke-width="2.5" />
+ </svg></div>
+ </div>
+ </div>
+
+ <div class="w-full h-[60vh] relative bg-white"></div>
+ </div>
+ </div>
+
+ <!-- chrome tab glass -->
+ <div
+ class="min-h-screen bg-gradient-to-br from-fuchsia-400 via-purple-500 to-pink-400 flex items-center justify-center p-8">
+ <div class="glass-main w-full max-w-5xl shadow-2xl">
+ <div class="lg-filter"></div>
+ <div class="lg-overlay"></div>
+ <div class="lg-specular"></div>
+
+ <div class="lg-content p-4">
+ <div
+ class="relative w-full bg-white rounded-xl overflow-hidden shadow-xl border border-black/5 flex flex-col">
+
+ <div class="h-8 bg-[#dee1e6] flex items-end select-none">
+ <div
+ class="relative bg-white h-[28px] px-3 ml-2 rounded-t-[4px] flex items-center gap-2 text-[10.5px] text-gray-700 min-w-[180px] border-t border-x border-gray-300/50">
+ <svg class="w-3 h-3 text-blue-600" fill="currentColor" viewBox="0 0 24 24">
+ <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2z" />
+ </svg>
+ <span class="truncate flex-1">Nueva pestaña</span>
+ <svg class="w-3 h-3" fill="none" stroke="currentColor" viewBox="0 0 24 24">
+ <path d="M6 18L18 6M6 6l12 12" stroke-width="2.5" />
+ </svg>
+ </div>
+
+ <div class="mb-1.5 ml-1 p-1 text-gray-500">
+ <svg class="w-3.5 h-3.5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
+ <path d="M12 4v16m8-8H4" stroke-width="3" />
+ </svg>
+ </div>
+
+ <div class="ml-auto flex h-full items-center">
+ <div class="px-4 h-full flex items-center justify-center"><svg width="10" height="1"
+ fill="currentColor">
+ <rect width="10" height="1" />
+ </svg></div>
+ <div class="px-4 h-full flex items-center justify-center"><svg width="9" height="9"
+ fill="none" stroke="currentColor">
+ <rect x="0.5" y="0.5" width="8" height="8" stroke-width="1" />
+ </svg></div>
+ <div class="px-4 h-full flex items-center justify-center"><svg width="10" height="10"
+ fill="none" stroke="currentColor">
+ <path d="M1 1l8 8M9 1L1 9" stroke-width="1.2" />
+ </svg></div>
+ </div>
+ </div>
+
+ <div class="h-8 bg-white flex items-center justify-between px-2 gap-2 border-b border-gray-200">
+ <div class="flex items-center gap-1 text-gray-600 px-2">
+ <div class="p-1.5 cursor-default">
+ <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor"
+ stroke-width="1.5">
+ <path d="M19 12H5M12 19l-7-7 7-7" stroke-linecap="round" stroke-linejoin="round" />
+ </svg>
+ </div>
+
+ <div class="p-1.5 text-gray-300">
+ <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor"
+ stroke-width="1.5">
+ <path d="M5 12h14m-7 7l7-7-7-7" stroke-linecap="round" stroke-linejoin="round" />
+ </svg>
+ </div>
+
+ <div class="p-1.5 cursor-default">
+ <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor"
+ stroke-width="2">
+ <path d="M21 12a9 9 0 11-2.12-5.88L21 9m0 0V3m0 6h-6" stroke-linecap="round"
+ stroke-linejoin="round" />
+ </svg>
+ </div>
+ </div>
+
+ <div class="flex-1">
+ <div
+ class="bg-[#f1f3f4] rounded-full h-[26px] w-full flex items-center px-3 text-gray-600 text-[11px] border border-transparent">
+ <svg class="w-3 h-3 mr-2 text-gray-500" fill="none" stroke="currentColor"
+ viewBox="0 0 24 24">
+ <path
+ d="M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z"
+ stroke-width="2" />
+ </svg>
+ <span class="truncate">freeshot.dev</span>
+ </div>
+ </div>
+
+ <div class="flex items-center gap-0.5 text-gray-500 px-1">
+ <div class="p-1.5"><svg class="w-3.5 h-3.5" fill="none" stroke="currentColor"
+ viewBox="0 0 24 24">
+ <path
+ d="M11.049 2.927c.3-.921 1.603-.921 1.902 0l1.519 4.674a1 1 0 00.95.69h4.915c.969 0 1.371 1.24.588 1.81l-3.976 2.888a1 1 0 00-.363 1.118l1.518 4.674c.3.922-.755 1.688-1.538 1.118l-3.976-2.888a1 1 0 00-1.176 0l-3.976 2.888c-.783.57-1.838-.197-1.538-1.118l1.518-4.674a1 1 0 00-.363-1.118l-3.976-2.888c-.784-.57-.38-1.81.588-1.81h4.914a1 1 0 00.951-.69l1.519-4.674z"
+ stroke-width="2" />
+ </svg></div>
+ <div class="p-1.5"><svg class="w-3.5 h-3.5" fill="none" stroke="currentColor"
+ viewBox="0 0 24 24">
+ <path
+ d="M12 5v.01M12 12v.01M12 19v.01M12 6a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2z"
+ stroke-width="2.5" />
+ </svg></div>
+ </div>
+ </div>
+
+ <div class="w-full h-[60vh] relative bg-white"></div>
+ </div>
+ </div>
+ </div>
+ </div>
+
+ <!-- glass ui container -->
+ <div
+ class="min-h-2xl bg-gradient-to-br from-fuchsia-400 via-purple-500 to-pink-400 flex items-center justify-center p-8">
+
+ <div class="glass-main w-full max-w-4xl shadow-2xl">
+ <div class="lg-filter"></div>
+ <div class="lg-overlay"></div>
+ <div class="lg-specular"></div>
+ <div
+ class="relative overflow-hidden rounded-2xl bg-white/20 backdrop-blur-2xl border border-white/30 shadow-2xl p-3">
+
+ <div
+ class="absolute inset-0 bg-gradient-to-tr from-white/10 via-transparent to-white/5 pointer-events-none">
+ </div>
+
+ <div
+ class="relative w-full bg-[#f9f9f9] rounded-xl overflow-hidden shadow-inner border border-white/10">
+ <div class="w-full h-[65vh] relative">
+ </div>
+ </div>
+ </div>
+
+ </div>
+ </div>
+
+ <!-- macos container glass -->
+ <div
+ class="min-h-screen bg-gradient-to-br from-gray-500 via-purple-500 to-purple-800 flex items-center justify-center p-8">
+
+ <div class="glass-main w-full max-w-4xl shadow-2xl">
+ <div class="lg-filter"></div>
+ <div class="lg-overlay"></div>
+ <div class="lg-specular"></div>
+
+ <div class="lg-content p-3">
+ <div class="flex items-center px-2 pb-3">
+ <div class="flex gap-2">
+ <div class="w-2.5 h-2.5 rounded-full bg-white shadow-sm"></div>
+ <div class="w-2.5 h-2.5 rounded-full bg-white shadow-sm"></div>
+ <div class="w-2.5 h-2.5 rounded-full bg-white shadow-sm"></div>
+ </div>
+ </div>
+
+ <div
+ class="relative w-full rounded-xl overflow-hidden border border-white/40 shadow-inner bg-[#f9f9f9]">
+ <div class="w-full h-[65vh]">
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+
+
+ <!-- Device -->
+ <!-- iPhone Slim -->
+ <div
+ class="min-h-screen bg-gradient-to-tr from-rose-400 via-fuchsia-500 to-indigo-500 flex items-center justify-center p-8">
+ <div
+ class="relative w-[310px] h-[640px] bg-neutral-900 rounded-[3.5rem] p-[6px] shadow-[0_50px_100px_-20px_rgba(0,0,0,0.6)] border border-neutral-700/50">
+
+ <div
+ class="absolute -left-1 top-24 w-1.5 h-8 bg-neutral-800 rounded-l-sm border-y border-l border-neutral-700 shadow-sm">
+ </div>
+ <div
+ class="absolute -left-1 top-38 w-1.5 h-20 bg-neutral-800 rounded-l-sm border-y border-l border-neutral-700 shadow-sm">
+ </div>
+
+ <div
+ class="absolute -right-1 top-44 w-1.5 h-24 bg-neutral-800 rounded-r-sm border-y border-r border-neutral-700 shadow-sm">
+ </div>
+
+ <div
+ class="relative w-full h-full bg-black rounded-[3.1rem] overflow-hidden flex flex-col border border-black shadow-2xl">
+
+ <div
+ class="absolute top-3 left-1/2 -translate-x-1/2 w-24 h-6 bg-black rounded-full z-30 flex items-center justify-end px-3 gap-1 shadow-md">
+ <div class="size-1 bg-indigo-500/40 rounded-full blur-[1px]"></div>
+ <div class="size-1 bg-neutral-800 rounded-full border border-white/5"></div>
+ </div>
+
+ <div class="absolute top-0 w-full h-12 flex items-center justify-between px-8 z-20">
+ <span class="text-[10px] font-bold text-black/90 tracking-tighter">9:41</span>
+ <div class="flex items-center gap-1.5 opacity-90">
+ <div class="flex items-end gap-[1px] h-2">
+ <div class="w-[2px] h-[40%] bg-black rounded-full"></div>
+ <div class="w-[2px] h-[70%] bg-black rounded-full"></div>
+ <div class="w-[2px] h-[100%] bg-black rounded-full"></div>
+ </div>
+ <svg class="w-3 h-3 text-black" fill="currentColor" viewBox="0 0 24 24">
+ <path d="M12 21l-12-12c5.5-5.5 14.5-5.5 20 0l-8 12z" />
+ </svg>
+ <div class="w-5 h-2.5 border border-black/30 rounded-[3px] p-[1px] relative">
+ <div class="h-full w-[90%] bg-black rounded-[1px]"></div>
+ </div>
+ </div>
+ </div>
+
+ <!-- Pantalla de Contenido -->
+ <div class="w-full h-full bg-neutral-50 relative pt-10">
+ </div>
+
+ <div class="absolute bottom-2 left-1/2 -translate-x-1/2 w-28 h-1 bg-black/10 rounded-full z-20"></div>
+ </div>
+ </div>
+ </div>
+ <!-- iPhone Base -->
+ <div
+ class="min-h-screen bg-gradient-to-tr from-rose-400 via-fuchsia-500 to-indigo-500 flex items-center justify-center p-8">
+ <div
+ class="relative w-[320px] h-[650px] bg-neutral-800 rounded-[3.5rem] p-3 shadow-[0_25px_50px_-12px_rgba(0,0,0,0.5)] border border-neutral-700">
+
+ <div
+ class="absolute -left-1 top-24 w-1.5 h-8 bg-neutral-700 rounded-l-sm border-y border-l border-neutral-800">
+ </div>
+ <div
+ class="absolute -left-1 top-38 w-1.5 h-20 bg-neutral-700 rounded-l-sm border-y border-l border-neutral-800">
+ </div>
+
+ <div
+ class="absolute -right-1 top-44 w-1.5 h-24 bg-neutral-700 rounded-r-sm border-y border-r border-neutral-800">
+ </div>
+
+ <div
+ class="relative w-full h-full bg-white rounded-[2.5rem] overflow-hidden flex flex-col border border-black z-10">
+
+ <div
+ class="absolute top-2 left-1/2 -translate-x-1/2 w-26 h-6 bg-black rounded-full z-20 flex items-center justify-between px-2 shadow-sm">
+ <div class="size-2 bg-neutral-500 rounded-full border border-neutral-700"></div>
+ <div class="size-2 bg-indigo-500 rounded-full opacity-80 blur-[1px]"></div>
+ </div>
+
+ <div class="w-full h-full bg-neutral-50 relative pt-10">
+ </div>
+
+ <div class="absolute bottom-2 left-1/2 -translate-x-1/2 w-32 h-1 bg-black/10 rounded-full"></div>
+
+ </div>
+ </div>
+ </div>
+ <!-- iPhone Full Interface -->
+ <div
+ class="min-h-screen bg-gradient-to-tr from-rose-400 via-fuchsia-500 to-indigo-500 flex items-center justify-center p-8">
+ <div
+ class="relative w-[320px] h-[650px] bg-neutral-800 rounded-[3.5rem] p-3 shadow-[0_25px_50px_-12px_rgba(0,0,0,0.5)] border border-neutral-700">
+
+ <div
+ class="absolute -left-1 top-24 w-1.5 h-8 bg-neutral-700 rounded-l-sm border-y border-l border-neutral-800 shadow-sm">
+ </div>
+ <div
+ class="absolute -left-1 top-38 w-1.5 h-20 bg-neutral-700 rounded-l-sm border-y border-l border-neutral-800 shadow-sm">
+ </div>
+
+ <div
+ class="absolute -right-1 top-44 w-1.5 h-24 bg-neutral-700 rounded-r-sm border-y border-r border-neutral-800 shadow-sm">
+ </div>
+
+ <div
+ class="relative w-full h-full bg-white rounded-[2.5rem] overflow-hidden flex flex-col border border-black z-10">
+
+ <div
+ class="absolute top-2 left-1/2 -translate-x-1/2 w-26 h-6 bg-black rounded-full z-20 flex items-center justify-between px-2 shadow-sm">
+ <div class="size-2 bg-neutral-500 rounded-full border border-neutral-700"></div>
+ <div class="size-2 bg-indigo-500 rounded-full opacity-80 blur-[1px]"></div>
+ </div>
+
+ <div class="absolute top-0 w-full h-10 flex items-center justify-between px-7 z-10">
+ <span class="text-[11px] font-bold text-black tracking-tight">9:41</span>
+
+ <div class="flex items-center gap-1.5">
+ <div class="flex items-end gap-[1px] h-2.5">
+ <div class="w-[2px] h-[30%] bg-black rounded-[0.5px]"></div>
+ <div class="w-[2px] h-[50%] bg-black rounded-[0.5px]"></div>
+ <div class="w-[2px] h-[75%] bg-black rounded-[0.5px]"></div>
+ <div class="w-[2px] h-[100%] bg-black rounded-[0.5px]"></div>
+ </div>
+ <svg class="w-3 h-3 text-black" fill="currentColor" viewBox="0 0 24 24">
+ <path d="M12 21l-12-12c5.5-5.5 14.5-5.5 20 0l-8 12z" />
+ </svg>
+ <div class="relative w-5 h-2.5 border border-black/30 rounded-[3px] p-[1px] flex items-center">
+ <div class="h-full w-[80%] bg-black rounded-[1px]"></div>
+ <div class="absolute -right-[2.5px] w-[1.5px] h-1 bg-black/30 rounded-r-full"></div>
+ </div>
+ </div>
+ </div>
+
+ <!-- Área de Contenido -->
+ <div class="w-full h-full bg-neutral-50 relative pt-10">
+ </div>
+
+ <div class="absolute bottom-2 left-1/2 -translate-x-1/2 w-32 h-1 bg-black/10 rounded-full"></div>
+ </div>
+ </div>
+ </div>
+
+ <!-- Minimal Glass Curve -->
+ <div
+ class="min-h-screen bg-gradient-to-tr from-rose-400 via-fuchsia-500 to-indigo-500 flex items-center justify-center p-8">
+ <div
+ class="relative w-[310px] h-[640px] bg-white/10 backdrop-blur-2xl rounded-[3rem] p-1 shadow-2xl border border-white/40 overflow-hidden">
+
+ <div class="absolute inset-y-0 left-0 w-4 bg-gradient-to-r from-white/20 to-transparent z-10"></div>
+ <div class="absolute inset-y-0 right-0 w-4 bg-gradient-to-l from-white/20 to-transparent z-10"></div>
+
+ <div class="relative w-full h-full bg-white rounded-[2.8rem] overflow-hidden shadow-inner">
+
+ <div class="absolute top-4 left-1/2 -translate-x-1/2 w-10 h-1 bg-black/5 rounded-full z-20"></div>
+
+ <div class="w-full h-full bg-white pt-8">
+ <!-- Contenido UI -->
+ </div>
+ </div>
+ </div>
+ </div>
+ <!-- iPhone Glass Base -->
+ <div
+ class="min-h-screen bg-gradient-to-tr from-rose-400 via-fuchsia-500 to-indigo-500 flex items-center justify-center p-8">
+ <div class="relative w-[310px] h-[630px] rounded-[3.5rem] p-3 shadow-2xl border border-white/30 backdrop-blur-2xl"
+ style="background: rgba(255, 255, 255, 0.1);">
+
+ <div
+ class="absolute -left-1 top-24 w-1 h-8 bg-white/40 backdrop-blur-md rounded-l-sm border-y border-l border-white/30">
+ </div>
+ <div
+ class="absolute -left-1 top-40 w-1 h-20 bg-white/40 backdrop-blur-md rounded-l-sm border-y border-l border-white/30">
+ </div>
+
+ <div
+ class="absolute -right-1 top-44 w-1 h-24 bg-white/40 backdrop-blur-md rounded-r-sm border-y border-r border-white/30">
+ </div>
+ <div
+ class="relative w-full h-full bg-[#f9f9f9] rounded-[2.8rem] overflow-hidden shadow-inner border border-black/5">
+ <div
+ class="absolute top-2 left-1/2 -translate-x-1/2 w-26 h-6 bg-black/5 rounded-full z-20 flex items-center justify-between px-2 shadow-sm">
+ <div class="size-2 bg-neutral-500 rounded-full border border-neutral-700"></div>
+ <div class="size-2 bg-indigo-500 rounded-full opacity-80 blur-[1px]"></div>
+ </div>
+
+ <!-- Contenido -->
+ <div class="w-full h-full bg-neutral-50 relative pt-10">
+ </div>
+
+ <div class="absolute bottom-2 left-1/2 -translate-x-1/2 w-32 h-1 bg-black/10 rounded-full"></div>
+ </div>
+ </div>
+ </div>
+ <!-- iPhone Glass Full -->
+ <div
+ class="min-h-screen bg-gradient-to-tr from-rose-400 via-fuchsia-500 to-indigo-500 flex items-center justify-center p-8">
+ <div class="relative w-[310px] h-[630px] rounded-[3.5rem] p-3 shadow-2xl border border-white/30 backdrop-blur-2xl"
+ style="background: rgba(255, 255, 255, 0.1);">
+
+ <div
+ class="absolute -left-1 top-24 w-1 h-8 bg-white/40 backdrop-blur-md rounded-l-sm border-y border-l border-white/30">
+ </div>
+ <div
+ class="absolute -left-1 top-40 w-1 h-20 bg-white/40 backdrop-blur-md rounded-l-sm border-y border-l border-white/30">
+ </div>
+
+ <div
+ class="absolute -right-1 top-44 w-1 h-24 bg-white/40 backdrop-blur-md rounded-r-sm border-y border-r border-white/30">
+ </div>
+
+ <div
+ class="relative w-full h-full bg-[#f9f9f9] rounded-[2.8rem] overflow-hidden shadow-inner border border-black/5">
+ <div
+ class="absolute top-2 left-1/2 -translate-x-1/2 w-26 h-6 bg-black/5 rounded-full z-20 flex items-center justify-between px-2 shadow-sm">
+ <div class="size-2 bg-neutral-500 rounded-full border border-neutral-700"></div>
+ <div class="size-2 bg-indigo-500 rounded-full opacity-80 blur-[1px]"></div>
+ </div>
+
+ <div class="absolute top-0 w-full h-8 flex items-center justify-between px-7 z-10">
+ <span class="text-[10px] font-bold text-black/60 tracking-tight">9:41</span>
+ <div class="flex items-center gap-1.5">
+ <div class="flex items-end gap-[1px] h-2">
+ <div class="w-[2px] h-[40%] bg-black/60 rounded-[0.5px]"></div>
+ <div class="w-[2px] h-[60%] bg-black/60 rounded-[0.5px]"></div>
+ <div class="w-[2px] h-[80%] bg-black/60 rounded-[0.5px]"></div>
+ <div class="w-[2px] h-[100%] bg-black/20 rounded-[0.5px]"></div>
+ </div>
+ <svg class="w-3 h-3 text-black/60" fill="currentColor" viewBox="0 0 24 24">
+ <path d="M12 21l-12-12c5.5-5.5 14.5-5.5 20 0l-8 12z" />
+ </svg>
+ <div
+ class="relative w-4.5 h-2.5 border border-black/20 rounded-[2px] p-[1px] flex items-center">
+ <div class="h-full w-[70%] bg-black/60 rounded-[0.5px]"></div>
+ <div class="absolute -right-[2px] w-[1px] h-1 bg-black/20 rounded-r-full"></div>
+ </div>
+ </div>
+ </div>
+
+ <div class="w-full h-full bg-neutral-50 relative pt-10"></div>
+ <div class="absolute bottom-2 left-1/2 -translate-x-1/2 w-32 h-1 bg-black/10 rounded-full"></div>
+ </div>
+ </div>
+ </div>
+
+ <!-- Hard-Shell Smartphone -->
+ <div class="min-h-screen bg-neutral-200 flex items-center justify-center p-8 font-sans">
+ <div
+ class="relative w-[340px] h-[720px] bg-zinc-300 rounded-xl shadow-[0_25px_50px_-12px_rgba(0,0,0,0.5)] border border-zinc-400 flex items-center justify-center">
+
+ <div
+ class="absolute -right-[4px] top-32 w-[4px] h-16 bg-zinc-400 rounded-r-md shadow-inner border-y border-r border-zinc-500">
+ </div>
+ <div
+ class="absolute -right-[4px] top-56 w-[4px] h-9 bg-zinc-400 rounded-r-md shadow-inner border-y border-r border-zinc-500">
+ </div>
+
+ <div
+ class="relative w-[328px] h-[708px] bg-black rounded-lg p-[4px] shadow-[inset_0_0_4px_rgba(0,0,0,1)] overflow-hidden">
+
+ <div class="relative w-full h-full bg-slate-50 overflow-hidden rounded-[4px] flex flex-col">
+
+ <div
+ class="absolute top-2.5 left-1/2 -translate-x-1/2 w-3.5 h-3.5 bg-black rounded-full z-20 shadow-[inset_0_0_2px_rgba(255,255,255,0.15)] flex items-center justify-center">
+ <div class="w-[5px] h-[5px] bg-blue-900/60 rounded-full blur-[0.5px]"></div>
+ </div>
+
+ <div class="w-full h-8 flex items-center justify-between px-4 z-10 bg-slate-50 text-black">
+ <span class="text-[12px] font-medium tracking-tight mt-1">11:43</span>
+ <div class="flex items-center gap-1.5 mt-1">
+ <div class="text-[10px] font-bold">5G</div>
+ <div class="flex gap-[1px] items-end h-3">
+ <div class="w-[3px] h-1.5 bg-black rounded-sm"></div>
+ <div class="w-[3px] h-2 bg-black rounded-sm"></div>
+ <div class="w-[3px] h-2.5 bg-black rounded-sm"></div>
+ <div class="w-[3px] h-3 bg-black rounded-sm"></div>
+ </div>
+ <div class="w-5 h-2.5 border-2 border-black rounded-[3px] p-[1px] flex items-center ml-1">
+ <div class="w-[85%] h-full bg-black rounded-[1px]"></div>
+ </div>
+ </div>
+ </div>
+ <!-- area de contenido -->
+ <div class="w-full h-full bg-neutral-50 relative pt-11">
+ </div>
+ <div class="absolute bottom-2 left-1/2 -translate-x-1/2 w-28 h-1.5 bg-zinc-300 rounded-full z-10">
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ <!-- Samsung S24 Ultra -->
+ <div
+ class="min-h-screen bg-gradient-to-tr from-slate-900 via-cyan-500 to-cyan-900 flex items-center justify-center p-8">
+ <div
+ class="relative w-[320px] h-[660px] bg-neutral-900 rounded-[1.5rem] p-2.5 shadow-2xl border border-neutral-700">
+ <div
+ class="absolute -right-1 top-32 w-1 h-14 bg-neutral-500 rounded-r-sm border-y border-r border-neutral-800 shadow-sm z-0">
+ </div>
+ <div
+ class="absolute -right-1 top-52 w-1 h-24 bg-neutral-500 rounded-r-sm border-y border-r border-neutral-800 shadow-sm z-0">
+ </div>
+
+ <div
+ class="relative w-full h-full bg-white rounded-[1rem] overflow-hidden flex flex-col border border-black">
+
+ <div
+ class="absolute top-3 left-1/2 -translate-x-1/2 w-3.5 h-3.5 bg-black rounded-full z-20 flex items-center justify-center">
+ <div class="size-1 bg-indigo-500/30 rounded-full blur-[0.5px]"></div>
+ </div>
+
+ <div class="absolute top-0 w-full h-10 flex items-center justify-between px-5 z-10">
+ <span class="text-[10px] font-medium text-black/90">12:30</span>
+ <div class="flex items-center gap-1.5 opacity-80">
+ <svg class="w-3 h-3 text-black/80" fill="currentColor" viewBox="0 0 24 24">
+ <path d="M12 21l-12-12c5.5-5.5 14.5-5.5 20 0l-8 12z" />
+ </svg>
+
+ <div
+ class="w-3.5 h-3.5 bg-black rounded-sm flex items-center justify-center text-[7px] text-white font-bold">
+ 5G</div>
+ <div class="w-5 h-2.5 border border-black/40 rounded-[2px] relative flex items-center p-[1px]">
+ <div class="h-full w-full bg-black rounded-[0.5px]"></div>
+ </div>
+ </div>
+ </div>
+
+ <div class="w-full h-full bg-neutral-50 pt-10"></div>
+
+ <div class="absolute bottom-2 left-1/2 -translate-x-1/2 flex items-center gap-12 py-2">
+ <div class="w-3 h-3 border-2 border-black/20 rounded-sm"></div>
+ <div class="w-3 h-3 border-2 border-black/20 rounded-full"></div>
+ <div class="w-3 h-3 border-l-2 border-b-2 border-black/20 rotate-45 ml-1"></div>
+ </div>
+ </div>
+ </div>
+ </div>
+
+ <!-- Ides -->
+ <!-- VS CODE -->
+ <div class="min-h-screen bg-neutral-900 flex items-center justify-center p-8">
+ <div
+ class="w-full max-w-5xl bg-[#1e1e1e] rounded-lg shadow-2xl border border-neutral-700/60 overflow-hidden flex flex-col">
+
+ <div
+ class="flex items-center justify-between px-3 h-[35px] bg-[#181818] text-[#cccccc] text-[12px] select-none border-b border-white/5">
+
+ <div class="flex items-center gap-1">
+ <div class="text-blue-500 mr-1.5">
+ <svg class="w-3.5 h-3.5" fill="currentColor" viewBox="0 0 24 24">
+ <path
+ d="M23.15 2.587L18.21.21a1.494 1.494 0 0 0-1.705.29l-9.46 8.63-4.12-3.128a.999.999 0 0 0-1.276.057L.327 7.261A1 1 0 0 0 .326 8.74L3.899 12 .326 15.26a1 1 0 0 0 0 1.479l1.323 1.202a.999.999 0 0 0 1.277.058l4.12-3.128 9.46 8.63a1.492 1.492 0 0 0 1.704.29l4.942-2.377A1.5 1.5 0 0 0 24 20.06V3.939a1.5 1.5 0 0 0-.85-1.352zm-5.146 14.861L10.826 12l7.178-5.448v10.896z" />
+ </svg>
+ </div>
+ <div class="flex items-center">
+ <span class=" px-2 py-1 rounded cursor-default transition-colors">File</span>
+ <span class=" px-2 py-1 rounded cursor-default transition-colors">Edit</span>
+ <span class=" px-2 py-1 rounded cursor-default transition-colors">Selection</span>
+ <span class=" px-2 py-1 rounded cursor-default transition-colors">View</span>
+ <span class=" px-2 py-1 rounded cursor-default transition-colors hidden md:block">Go</span>
+ <span
+ class=" px-2 py-1 rounded cursor-default transition-colors hidden lg:block">Terminal</span>
+ <span class=" px-2 py-1 rounded cursor-default transition-colors">Help</span>
+ </div>
+ </div>
+
+ <div class="flex-1 flex justify-center px-4 max-w-[500px]">
+ <div
+ class="flex items-center justify-center w-full h-[22px] bg-[#2b2b2b] border border-white/10 rounded-md hover:bg-[#333333] transition-colors cursor-text gap-2">
+ <svg class="w-2.5 h-2.5 text-neutral-500 mr-2-hover:text-neutral-300" fill="none"
+ stroke="currentColor" viewBox="0 0 24 24">
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2.5"
+ d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"></path>
+ </svg>
+ <span class="text-[#cccccc] text-[11px]">freeshot</span>
+ </div>
+ </div>
+
+ <div class="flex items-center h-full">
+ <div class="flex items-center h-full">
+ <button class="px-4 h-full transition-colors">
+ <svg class="w-2.5 h-2.5" fill="currentColor" viewBox="0 0 24 24">
+ <rect width="10" height="1" x="7" y="11" />
+ </svg>
+ </button>
+ <button class="px-4 h-full transition-colors">
+ <svg class="w-2.5 h-2.5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
+ <rect width="18" height="18" x="3" y="3" stroke-width="2" />
+ </svg>
+ </button>
+ <button class="px-4 h-fulltransition-colors">
+ <svg class="w-2.5 h-2.5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"
+ d="M6 18L18 6M6 6l12 12" />
+ </svg>
+ </button>
+ </div>
+ </div>
+ </div>
+ <div class="flex-1 w-full bg-[#1e1e1e] min-h-[500px] relative">
+ </div>
+ </div>
+ </div>
+
+ <!-- MACOS DARK -->
+ <div class="min-h-screen bg-neutral-900 flex items-center justify-center p-8">
+ <div
+ class="w-full max-w-5xl bg-[#1e1e1e] rounded-lg shadow-2xl border border-white/10 overflow-hidden flex flex-col">
+
+ <!-- macOS Header con Menús -->
+ <div
+ class="flex items-center justify-between px-3 h-[35px] bg-[#181818] text-[#cccccc] text-[12px] select-none border-b border-white/5">
+
+ <div class="flex items-center gap-4">
+ <div class="flex items-center gap-2">
+ <div class="w-2.5 h-2.5 rounded-full bg-[#ff5f57] border border-[#e0443e]"></div>
+ <div class="w-2.5 h-2.5 rounded-full bg-[#febc2e] border border-[#d89f24]"></div>
+ <div class="w-2.5 h-2.5 rounded-full bg-[#28c840] border border-[#1aab29]"></div>
+ </div>
+
+ <div class="flex items-center text-[#999999]">
+ <span class="px-2 py-1 cursor-default hover:text-white transition-colors">File</span>
+ <span class="px-2 py-1 cursor-default hover:text-white transition-colors">Edit</span>
+ <span class="px-2 py-1 cursor-default hover:text-white transition-colors">Selection</span>
+ <span
+ class="px-2 py-1 cursor-default hover:text-white transition-colors hidden md:block">View</span>
+ <span
+ class="px-2 py-1 cursor-default hover:text-white transition-colors hidden lg:block">Go</span>
+ </div>
+ </div>
+
+ <div class="flex-1 flex justify-center px-4 max-w-[400px]">
+ <div
+ class="flex items-center justify-center w-full h-[22px] bg-[#2b2b2b] border border-white/10 rounded-md text-[#cccccc]">
+ <svg class="w-2.5 h-2.5 text-neutral-500 mr-2" fill="none" stroke="currentColor"
+ viewBox="0 0 24 24">
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2.5"
+ d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"></path>
+ </svg>
+ <span class="text-[11px]">freeshot</span>
+ </div>
+ </div>
+
+ <div class="flex items-center gap-3 w-[100px] justify-end text-neutral-400">
+ <svg class="w-3.5 h-3.5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
+ <path d="M4 6h16M4 12h16M4 18h16" stroke-width="1.5" />
+ </svg>
+ </div>
+ </div>
+
+ <div class="flex-1 w-full bg-[#1e1e1e] min-h-[500px] relative"></div>
+ </div>
+ </div>
+
+ <!-- MACOS GHOST -->
+ <div class="min-h-screen bg-neutral-900 flex items-center justify-center p-8">
+ <div
+ class="w-full max-w-5xl bg-[#1e1e1e] rounded-lg shadow-2xl border border-white/10 overflow-hidden flex flex-col">
+
+ <div
+ class="flex items-center justify-between px-3 h-[35px] bg-[#181818] text-[#cccccc] text-[12px] select-none border-b border-white/5">
+
+ <div class="flex items-center gap-4">
+ <div class="flex items-center gap-2">
+ <div class="w-3 h-3 rounded-full border border-white/20 bg-transparent"></div>
+ <div class="w-3 h-3 rounded-full border border-white/20 bg-transparent"></div>
+ <div class="w-3 h-3 rounded-full border border-white/20 bg-transparent"></div>
+ </div>
+
+ <div class="flex items-center text-[#999999]">
+ <span class="px-2 py-1 cursor-default hover:bg-white/5 rounded transition-colors">File</span>
+ <span class="px-2 py-1 cursor-default hover:bg-white/5 rounded transition-colors">Edit</span>
+ <span
+ class="px-2 py-1 cursor-default hover:bg-white/5 rounded transition-colors">Selection</span>
+ <span
+ class="px-2 py-1 cursor-default hover:bg-white/5 rounded transition-colors hidden md:block">View</span>
+ <span
+ class="px-2 py-1 cursor-default hover:bg-white/5 rounded transition-colors hidden lg:block">Go</span>
+ </div>
+ </div>
+
+ <div class="flex-1 flex justify-center px-4 max-w-[400px]">
+ <div
+ class="flex items-center justify-center w-full h-[22px] bg-[#2b2b2b] border border-white/10 rounded-md text-[#999999]">
+ <svg class="w-2.5 h-2.5 text-neutral-500 mr-2" fill="none" stroke="currentColor"
+ viewBox="0 0 24 24">
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2.5"
+ d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"></path>
+ </svg>
+ <span class="text-[11px]">freeshot</span>
+ </div>
+ </div>
+
+ <div class="flex items-center gap-3 w-[100px] justify-end text-neutral-500">
+ <svg class="w-3.5 h-3.5 hover:text-white" fill="none" stroke="currentColor" viewBox="0 0 24 24">
+ <path d="M4 6h16M4 12h16M4 18h16" stroke-width="1.5" />
+ </svg>
+ </div>
+ </div>
+
+ <div class="flex-1 w-full bg-[#1e1e1e] min-h-[500px] relative"></div>
+ </div>
+ </div>
+
+</body>
+
+</html>
\ No newline at end of file
diff --git a/next.config.ts b/next.config.ts
new file mode 100644
index 0000000..b01bfb6
--- /dev/null
+++ b/next.config.ts
@@ -0,0 +1,15 @@
+import type { NextConfig } from "next";
+
+const nextConfig: NextConfig = {
+ images: {
+ remotePatterns: [
+ {
+ protocol: "https",
+ hostname: "images.unsplash.com",
+ pathname: "/**",
+ },
+ ],
+ }
+};
+
+export default nextConfig;
diff --git a/package.json b/package.json
new file mode 100644
index 0000000..b3dd736
--- /dev/null
+++ b/package.json
@@ -0,0 +1,37 @@
+{
+ "name": "openvidshot",
+ "version": "0.1.0",
+ "private": true,
+ "scripts": {
+ "dev": "next dev",
+ "build": "next build",
+ "start": "next start",
+ "lint": "eslint"
+ },
+ "dependencies": {
+ "class-variance-authority": "^0.7.1",
+ "clsx": "^2.1.1",
+ "framer-motion": "^12.34.3",
+ "lucide-react": "^0.563.0",
+ "mediabunny": "^1.34.4",
+ "next": "16.1.6",
+ "radix-ui": "^1.4.3",
+ "react": "19.2.3",
+ "react-dom": "19.2.3",
+ "swapy": "^1.0.5",
+ "tailwind-merge": "^3.4.0"
+ },
+ "devDependencies": {
+ "@iconify/react": "^6.0.2",
+ "@tailwindcss/postcss": "^4",
+ "@types/node": "^20",
+ "@types/react": "^19",
+ "@types/react-dom": "^19",
+ "eslint": "^9",
+ "eslint-config-next": "16.1.6",
+ "shadcn": "^3.8.4",
+ "tailwindcss": "^4",
+ "tw-animate-css": "^1.4.0",
+ "typescript": "^5"
+ }
+}
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
new file mode 100644
index 0000000..e5a2c94
--- /dev/null
+++ b/pnpm-lock.yaml
@@ -0,0 +1,7817 @@
+lockfileVersion: '9.0'
+
+settings:
+ autoInstallPeers: true
+ excludeLinksFromLockfile: false
+
+importers:
+
+ .:
+ dependencies:
+ class-variance-authority:
+ specifier: ^0.7.1
+ version: 0.7.1
+ clsx:
+ specifier: ^2.1.1
+ version: 2.1.1
+ framer-motion:
+ specifier: ^12.34.3
+ lucide-react:
+ specifier: ^0.563.0
+ version: 0.563.0([email protected])
+ mediabunny:
+ specifier: ^1.34.4
+ version: 1.34.4
+ next:
+ specifier: 16.1.6
+ radix-ui:
+ specifier: ^1.4.3
+ react:
+ specifier: 19.2.3
+ version: 19.2.3
+ react-dom:
+ specifier: 19.2.3
+ version: 19.2.3([email protected])
+ swapy:
+ specifier: ^1.0.5
+ version: 1.0.5
+ tailwind-merge:
+ specifier: ^3.4.0
+ version: 3.4.0
+ devDependencies:
+ '@iconify/react':
+ specifier: ^6.0.2
+ version: 6.0.2([email protected])
+ '@tailwindcss/postcss':
+ specifier: ^4
+ version: 4.1.18
+ '@types/node':
+ specifier: ^20
+ version: 20.19.33
+ '@types/react':
+ specifier: ^19
+ version: 19.2.13
+ '@types/react-dom':
+ specifier: ^19
+ version: 19.2.3(@types/[email protected])
+ eslint:
+ specifier: ^9
+ version: 9.39.2([email protected])
+ eslint-config-next:
+ specifier: 16.1.6
+ shadcn:
+ specifier: ^3.8.4
+ version: 3.8.4(@types/[email protected])([email protected])
+ tailwindcss:
+ specifier: ^4
+ version: 4.1.18
+ tw-animate-css:
+ specifier: ^1.4.0
+ version: 1.4.0
+ typescript:
+ specifier: ^5
+ version: 5.9.3
+
+packages:
+
+ '@alloc/[email protected]':
+ resolution: {integrity: sha512-UrcABB+4bUrFABwbluTIBErXwvbsU/V7TZWfmbgJfbkwiBuziS9gxdODUyuiecfdGQ85jglMW6juS3+z5TsKLw==}
+ engines: {node: '>=10'}
+
+ '@antfu/[email protected]':
+ resolution: {integrity: sha512-9q/yCljni37pkMr4sPrI3G4jqdIk074+iukc5aFJl7kmDCCsiJrbZ6zKxnES1Gwg+i9RcDZwvktl23puGslmvA==}
+ hasBin: true
+
+ '@babel/[email protected]':
+ resolution: {integrity: sha512-9NhCeYjq9+3uxgdtp20LSiJXJvN0FeCtNGpJxuMFZ1Kv3cWUNb6DOhJwUvcVCzKGR66cw4njwM6hrJLqgOwbcw==}
+ engines: {node: '>=6.9.0'}
+
+ '@babel/[email protected]':
+ resolution: {integrity: sha512-T1NCJqT/j9+cn8fvkt7jtwbLBfLC/1y1c7NtCeXFRgzGTsafi68MRv8yzkYSapBnFA6L3U2VSc02ciDzoAJhJg==}
+ engines: {node: '>=6.9.0'}
+
+ '@babel/[email protected]':
+ resolution: {integrity: sha512-CGOfOJqWjg2qW/Mb6zNsDm+u5vFQ8DxXfbM09z69p5Z6+mE1ikP2jUXw+j42Pf1XTYED2Rni5f95npYeuwMDQA==}
+ engines: {node: '>=6.9.0'}
+
+ '@babel/[email protected]':
+ resolution: {integrity: sha512-qsaF+9Qcm2Qv8SRIMMscAvG4O3lJ0F1GuMo5HR/Bp02LopNgnZBC/EkbevHFeGs4ls/oPz9v+Bsmzbkbe+0dUw==}
+ engines: {node: '>=6.9.0'}
+
+ '@babel/[email protected]':
+ resolution: {integrity: sha512-fXSwMQqitTGeHLBC08Eq5yXz2m37E4pJX1qAU1+2cNedz/ifv/bVXft90VeSav5nFO61EcNgwr0aJxbyPaWBPg==}
+ engines: {node: '>=6.9.0'}
+
+ '@babel/[email protected]':
+ resolution: {integrity: sha512-JYtls3hqi15fcx5GaSNL7SCTJ2MNmjrkHXg4FSpOA/grxK8KwyZ5bubHsCq8FXCkua6xhuaaBit+3b7+VZRfcA==}
+ engines: {node: '>=6.9.0'}
+
+ '@babel/[email protected]':
+ resolution: {integrity: sha512-dTOdvsjnG3xNT9Y0AUg1wAl38y+4Rl4sf9caSQZOXdNqVn+H+HbbJ4IyyHaIqNR6SW9oJpA/RuRjsjCw2IdIow==}
+ engines: {node: '>=6.9.0'}
+ peerDependencies:
+ '@babel/core': ^7.0.0
+
+ '@babel/[email protected]':
+ resolution: {integrity: sha512-+W6cISkXFa1jXsDEdYA8HeevQT/FULhxzR99pxphltZcVaugps53THCeiWA8SguxxpSp3gKPiuYfSWopkLQ4hw==}
+ engines: {node: '>=6.9.0'}
+
+ '@babel/[email protected]':
+ resolution: {integrity: sha512-cwM7SBRZcPCLgl8a7cY0soT1SptSzAlMH39vwiRpOQkJlh53r5hdHwLSCZpQdVLT39sZt+CRpNwYG4Y2v77atg==}
+ engines: {node: '>=6.9.0'}
+
+ '@babel/[email protected]':
+ resolution: {integrity: sha512-l5XkZK7r7wa9LucGw9LwZyyCUscb4x37JWTPz7swwFE/0FMQAGpiWUZn8u9DzkSBWEcK25jmvubfpw2dnAMdbw==}
+ engines: {node: '>=6.9.0'}
+
+ '@babel/[email protected]':
+ resolution: {integrity: sha512-67oXFAYr2cDLDVGLXTEABjdBJZ6drElUSI7WKp70NrpyISso3plG9SAGEF6y7zbha/wOzUByWWTJvEDVNIUGcA==}
+ engines: {node: '>=6.9.0'}
+ peerDependencies:
+ '@babel/core': ^7.0.0
+
+ '@babel/[email protected]':
+ resolution: {integrity: sha512-URMGH08NzYFhubNSGJrpUEphGKQwMQYBySzat5cAByY1/YgIRkULnIy3tAMeszlL/so2HbeilYloUmSpd7GdVw==}
+ engines: {node: '>=6.9.0'}
+
+ '@babel/[email protected]':
+ resolution: {integrity: sha512-S9gzZ/bz83GRysI7gAD4wPT/AI3uCnY+9xn+Mx/KPs2JwHJIz1W8PZkg2cqyt3RNOBM8ejcXhV6y8Og7ly/Dug==}
+ engines: {node: '>=6.9.0'}
+
+ '@babel/[email protected]':
+ resolution: {integrity: sha512-mq8e+laIk94/yFec3DxSjCRD2Z0TAjhVbEJY3UQrlwVo15Lmt7C2wAUbK4bjnTs4APkwsYLTahXRraQXhb1WCg==}
+ engines: {node: '>=6.9.0'}
+ peerDependencies:
+ '@babel/core': ^7.0.0
+
+ '@babel/[email protected]':
+ resolution: {integrity: sha512-Tub4ZKEXqbPjXgWLl2+3JpQAYBJ8+ikpQ2Ocj/q/r0LwE3UhENh7EUabyHjz2kCEsrRY83ew2DQdHluuiDQFzg==}
+ engines: {node: '>=6.9.0'}
+
+ '@babel/[email protected]':
+ resolution: {integrity: sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==}
+ engines: {node: '>=6.9.0'}
+
+ '@babel/[email protected]':
+ resolution: {integrity: sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q==}
+ engines: {node: '>=6.9.0'}
+
+ '@babel/[email protected]':
+ resolution: {integrity: sha512-YvjJow9FxbhFFKDSuFnVCe2WxXk1zWc22fFePVNEaWJEu8IrZVlda6N0uHwzZrUM1il7NC9Mlp4MaJYbYd9JSg==}
+ engines: {node: '>=6.9.0'}
+
+ '@babel/[email protected]':
+ resolution: {integrity: sha512-xOBvwq86HHdB7WUDTfKfT/Vuxh7gElQ+Sfti2Cy6yIWNW05P8iUslOVcZ4/sKbE+/jQaukQAdz/gf3724kYdqw==}
+ engines: {node: '>=6.9.0'}
+
+ '@babel/[email protected]':
+ resolution: {integrity: sha512-IyDgFV5GeDUVX4YdF/3CPULtVGSXXMLh1xVIgdCgxApktqnQV0r7/8Nqthg+8YLGaAtdyIlo2qIdZrbCv4+7ww==}
+ engines: {node: '>=6.0.0'}
+ hasBin: true
+
+ '@babel/[email protected]':
+ resolution: {integrity: sha512-wgEmr06G6sIpqr8YDwA2dSRTE3bJ+V0IfpzfSY3Lfgd7YWOaAdlykvJi13ZKBt8cZHfgH1IXN+CL656W3uUa4w==}
+ engines: {node: '>=6.9.0'}
+ peerDependencies:
+ '@babel/core': ^7.0.0-0
+
+ '@babel/[email protected]':
+ resolution: {integrity: sha512-+nDNmQye7nlnuuHDboPbGm00Vqg3oO8niRRL27/4LYHUsHYh0zJ1xWOz0uRwNFmM1Avzk8wZbc6rdiYhomzv/A==}
+ engines: {node: '>=6.9.0'}
+ peerDependencies:
+ '@babel/core': ^7.0.0-0
+
+ '@babel/[email protected]':
+ resolution: {integrity: sha512-jppVbf8IV9iWWwWTQIxJMAJCWBuuKx71475wHwYytrRGQ2CWiDvYlADQno3tcYpS/T2UUWFQp3nVtYfK/YBQrA==}
+ engines: {node: '>=6.9.0'}
+ peerDependencies:
+ '@babel/core': ^7.0.0-0
+
+ '@babel/[email protected]':
+ resolution: {integrity: sha512-0YWL2RFxOqEm9Efk5PvreamxPME8OyY0wM5wh5lHjF+VtVhdneCWGzZeSqzOfiobVqQaNCd2z0tQvnI9DaPWPw==}
+ engines: {node: '>=6.9.0'}
+ peerDependencies:
+ '@babel/core': ^7.0.0-0
+
+ '@babel/[email protected]':
+ resolution: {integrity: sha512-+bQy5WOI2V6LJZpPVxY+yp66XdZ2yifu0Mc1aP5CQKgjn4QM5IN2i5fAZ4xKop47pr8rpVhiAeu+nDQa12C8+g==}
+ engines: {node: '>=6.9.0'}
+ peerDependencies:
+ '@babel/core': ^7.0.0-0
+
+ '@babel/[email protected]':
+ resolution: {integrity: sha512-YA6Ma2KsCdGb+WC6UpBVFJGXL58MDA6oyONbjyF/+5sBgxY/dwkhLogbMT2GXXyU84/IhRw/2D1Os1B/giz+BQ==}
+ engines: {node: '>=6.9.0'}
+
+ '@babel/[email protected]':
+ resolution: {integrity: sha512-4HPiQr0X7+waHfyXPZpWPfWL/J7dcN1mx9gL6WdQVMbPnF3+ZhSMs8tCxN7oHddJE9fhNE7+lxdnlyemKfJRuA==}
+ engines: {node: '>=6.9.0'}
+
+ '@babel/[email protected]':
+ resolution: {integrity: sha512-LwdZHpScM4Qz8Xw2iKSzS+cfglZzJGvofQICy7W7v4caru4EaAmyUuO6BGrbyQ2mYV11W0U8j5mBhd14dd3B0A==}
+ engines: {node: '>=6.9.0'}
+
+ '@dotenvx/[email protected]':
+ resolution: {integrity: sha512-CaQcc8JvtzQhUSm9877b6V4Tb7HCotkcyud9X2YwdqtQKwgljkMRwU96fVYKnzN3V0Hj74oP7Es+vZ0mS+Aa1w==}
+ hasBin: true
+
+ '@ecies/[email protected]':
+ resolution: {integrity: sha512-GalEZH4JgOMHYYcYmVqnFirFsjZHeoGMDt9IxEnM9F7GRUUyUksJ7Ou53L83WHJq3RWKD3AcBpo0iQh0oMpf8A==}
+ engines: {bun: '>=1', deno: '>=2', node: '>=16'}
+ peerDependencies:
+ '@noble/ciphers': ^1.0.0
+
+ '@emnapi/[email protected]':
+ resolution: {integrity: sha512-AvT9QFpxK0Zd8J0jopedNm+w/2fIzvtPKPjqyw9jwvBaReTTqPBk9Hixaz7KbjimP+QNz605/XnjFcDAL2pqBg==}
+
+ '@emnapi/[email protected]':
+ resolution: {integrity: sha512-mehfKSMWjjNol8659Z8KxEMrdSJDDot5SXMq00dM8BN4o+CLNXQ0xH2V7EchNHV4RmbZLmmPdEaXZc5H2FXmDg==}
+
+ '@emnapi/[email protected]':
+ resolution: {integrity: sha512-WI0DdZ8xFSbgMjR1sFsKABJ/C5OnRrjT06JXbZKexJGrDuPTzZdDYfFlsgcCXCyf+suG5QU2e/y1Wo2V/OapLQ==}
+
+ '@eslint-community/[email protected]':
+ resolution: {integrity: sha512-phrYmNiYppR7znFEdqgfWHXR6NCkZEK7hwWDHZUjit/2/U0r6XvkDl0SYnoM51Hq7FhCGdLDT6zxCCOY1hexsQ==}
+ engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
+ peerDependencies:
+ eslint: ^6.0.0 || ^7.0.0 || >=8.0.0
+
+ '@eslint-community/[email protected]':
+ resolution: {integrity: sha512-EriSTlt5OC9/7SXkRSCAhfSxxoSUgBm33OH+IkwbdpgoqsSsUg7y3uh+IICI/Qg4BBWr3U2i39RpmycbxMq4ew==}
+ engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0}
+
+ '@eslint/[email protected]':
+ resolution: {integrity: sha512-aw1gNayWpdI/jSYVgzN5pL0cfzU02GT3NBpeT/DXbx1/1x7ZKxFPd9bwrzygx/qiwIQiJ1sw/zD8qY/kRvlGHA==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+
+ '@eslint/[email protected]':
+ resolution: {integrity: sha512-gBrxN88gOIf3R7ja5K9slwNayVcZgK6SOUORm2uBzTeIEfeVaIhOpCtTox3P6R7o2jLFwLFTLnC7kU/RGcYEgw==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+
+ '@eslint/[email protected]':
+ resolution: {integrity: sha512-yL/sLrpmtDaFEiUj1osRP4TI2MDz1AddJL+jZ7KSqvBuliN4xqYY54IfdN8qD8Toa6g1iloph1fxQNkjOxrrpQ==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+
+ '@eslint/[email protected]':
+ resolution: {integrity: sha512-Kr+LPIUVKz2qkx1HAMH8q1q6azbqBAsXJUxBl/ODDuVPX45Z9DfwB8tPjTi6nNZ8BuM3nbJxC5zCAg5elnBUTQ==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+
+ '@eslint/[email protected]':
+ resolution: {integrity: sha512-q1mjIoW1VX4IvSocvM/vbTiveKC4k9eLrajNEuSsmjymSDEbpGddtpfOoN7YGAqBK3NG+uqo8ia4PDTt8buCYA==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+
+ '@eslint/[email protected]':
+ resolution: {integrity: sha512-VtAOaymWVfZcmZbp6E2mympDIHvyjXs/12LqWYjVw6qjrfF+VK+fyG33kChz3nnK+SU5/NeHOqrTEHS8sXO3OA==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+
+ '@eslint/[email protected]':
+ resolution: {integrity: sha512-43/qtrDUokr7LJqoF2c3+RInu/t4zfrpYdoSDfYyhg52rwLV6TnOvdG4fXm7IkSB3wErkcmJS9iEhjVtOSEjjA==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+
+ '@floating-ui/[email protected]':
+ resolution: {integrity: sha512-C3HlIdsBxszvm5McXlB8PeOEWfBhcGBTZGkGlWc2U0KFY5IwG5OQEuQ8rq52DZmcHDlPLd+YFBK+cZcytwIFWg==}
+
+ '@floating-ui/[email protected]':
+ resolution: {integrity: sha512-N0bD2kIPInNHUHehXhMke1rBGs1dwqvC9O9KYMyyjK7iXt7GAhnro7UlcuYcGdS/yYOlq0MAVgrow8IbWJwyqg==}
+
+ '@floating-ui/[email protected]':
+ resolution: {integrity: sha512-0tLRojf/1Go2JgEVm+3Frg9A3IW8bJgKgdO0BN5RkF//ufuz2joZM63Npau2ff3J6lUVYgDSNzNkR+aH3IVfjg==}
+ peerDependencies:
+ react: '>=16.8.0'
+ react-dom: '>=16.8.0'
+
+ '@floating-ui/[email protected]':
+ resolution: {integrity: sha512-aGTxbpbg8/b5JfU1HXSrbH3wXZuLPJcNEcZQFMxLs3oSzgtVu6nFPkbbGGUvBcUjKV2YyB9Wxxabo+HEH9tcRQ==}
+
+ resolution: {integrity: sha512-vHL6w3ecZsky+8P5MD+eFfaGTyCeOHUIFYMGpQGbrBTSmNNoxv0if69rEZ5giu36weC5saFuznL411gRX7bJDw==}
+ engines: {node: '>=18.14.1'}
+ peerDependencies:
+ hono: ^4
+
+ '@humanfs/[email protected]':
+ resolution: {integrity: sha512-5DyQ4+1JEUzejeK1JGICcideyfUbGixgS9jNgex5nqkW+cY7WZhxBigmieN5Qnw9ZosSNVC9KQKyb+GUaGyKUA==}
+ engines: {node: '>=18.18.0'}
+
+ '@humanfs/[email protected]':
+ resolution: {integrity: sha512-/zUx+yOsIrG4Y43Eh2peDeKCxlRt/gET6aHfaKpuq267qXdYDFViVHfMaLyygZOnl0kGWxFIgsBy8QFuTLUXEQ==}
+ engines: {node: '>=18.18.0'}
+
+ '@humanwhocodes/[email protected]':
+ resolution: {integrity: sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==}
+ engines: {node: '>=12.22'}
+
+ '@humanwhocodes/[email protected]':
+ resolution: {integrity: sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ==}
+ engines: {node: '>=18.18'}
+
+ '@iconify/[email protected]':
+ resolution: {integrity: sha512-SMmC2sactfpJD427WJEDN6PMyznTFMhByK9yLW0gOTtnjzzbsi/Ke/XqsumsavFPwNiXs8jSiYeZTmLCLwO+Fg==}
+ peerDependencies:
+ react: '>=16'
+
+ '@iconify/[email protected]':
+ resolution: {integrity: sha512-+wluvCrRhXrhyOmRDJ3q8mux9JkKy5SJ/v8ol2tu4FVjyYvtEzkc/3pK15ET6RKg4b4w4BmTk1+gsCUhf21Ykg==}
+
+ resolution: {integrity: sha512-A5P/LfWGFSl6nsckYtjw9da+19jB8hkJ6ACTGcDfEJ0aE+l2n2El7dsVM7UVHZQ9s2lmYMWlrS21YLy2IR1LUw==}
+ engines: {node: '>=18'}
+
+ resolution: {integrity: sha512-imtQ3WMJXbMY4fxb/Ndp6HBTNVtWCUI0WdobyheGf5+ad6xX8VIDO8u2xE4qc/fr08CKG/7dDseFtn6M6g/r3w==}
+ engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
+ cpu: [arm64]
+ os: [darwin]
+
+ resolution: {integrity: sha512-YNEFAF/4KQ/PeW0N+r+aVVsoIY0/qxxikF2SWdp+NRkmMB7y9LBZAVqQ4yhGCm/H3H270OSykqmQMKLBhBJDEw==}
+ engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
+ cpu: [x64]
+ os: [darwin]
+
+ resolution: {integrity: sha512-zqjjo7RatFfFoP0MkQ51jfuFZBnVE2pRiaydKJ1G/rHZvnsrHAOcQALIi9sA5co5xenQdTugCvtb1cuf78Vf4g==}
+ cpu: [arm64]
+ os: [darwin]
+
+ resolution: {integrity: sha512-1IOd5xfVhlGwX+zXv2N93k0yMONvUlANylbJw1eTah8K/Jtpi15KC+WSiaX/nBmbm2HxRM1gZ0nSdjSsrZbGKg==}
+ cpu: [x64]
+ os: [darwin]
+
+ resolution: {integrity: sha512-excjX8DfsIcJ10x1Kzr4RcWe1edC9PquDRRPx3YVCvQv+U5p7Yin2s32ftzikXojb1PIFc/9Mt28/y+iRklkrw==}
+ cpu: [arm64]
+ os: [linux]
+ libc: [glibc]
+
+ resolution: {integrity: sha512-bFI7xcKFELdiNCVov8e44Ia4u2byA+l3XtsAj+Q8tfCwO6BQ8iDojYdvoPMqsKDkuoOo+X6HZA0s0q11ANMQ8A==}
+ cpu: [arm]
+ os: [linux]
+ libc: [glibc]
+
+ resolution: {integrity: sha512-FMuvGijLDYG6lW+b/UvyilUWu5Ayu+3r2d1S8notiGCIyYU/76eig1UfMmkZ7vwgOrzKzlQbFSuQfgm7GYUPpA==}
+ cpu: [ppc64]
+ os: [linux]
+ libc: [glibc]
+
+ resolution: {integrity: sha512-oVDbcR4zUC0ce82teubSm+x6ETixtKZBh/qbREIOcI3cULzDyb18Sr/Wcyx7NRQeQzOiHTNbZFF1UwPS2scyGA==}
+ cpu: [riscv64]
+ os: [linux]
+ libc: [glibc]
+
+ resolution: {integrity: sha512-qmp9VrzgPgMoGZyPvrQHqk02uyjA0/QrTO26Tqk6l4ZV0MPWIW6LTkqOIov+J1yEu7MbFQaDpwdwJKhbJvuRxQ==}
+ cpu: [s390x]
+ os: [linux]
+ libc: [glibc]
+
+ resolution: {integrity: sha512-tJxiiLsmHc9Ax1bz3oaOYBURTXGIRDODBqhveVHonrHJ9/+k89qbLl0bcJns+e4t4rvaNBxaEZsFtSfAdquPrw==}
+ cpu: [x64]
+ os: [linux]
+ libc: [glibc]
+
+ resolution: {integrity: sha512-FVQHuwx1IIuNow9QAbYUzJ+En8KcVm9Lk5+uGUQJHaZmMECZmOlix9HnH7n1TRkXMS0pGxIJokIVB9SuqZGGXw==}
+ cpu: [arm64]
+ os: [linux]
+ libc: [musl]
+
+ resolution: {integrity: sha512-+LpyBk7L44ZIXwz/VYfglaX/okxezESc6UxDSoyo2Ks6Jxc4Y7sGjpgU9s4PMgqgjj1gZCylTieNamqA1MF7Dg==}
+ cpu: [x64]
+ os: [linux]
+ libc: [musl]
+
+ resolution: {integrity: sha512-bKQzaJRY/bkPOXyKx5EVup7qkaojECG6NLYswgktOZjaXecSAeCWiZwwiFf3/Y+O1HrauiE3FVsGxFg8c24rZg==}
+ engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
+ cpu: [arm64]
+ os: [linux]
+ libc: [glibc]
+
+ resolution: {integrity: sha512-9dLqsvwtg1uuXBGZKsxem9595+ujv0sJ6Vi8wcTANSFpwV/GONat5eCkzQo/1O6zRIkh0m/8+5BjrRr7jDUSZw==}
+ engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
+ cpu: [arm]
+ os: [linux]
+ libc: [glibc]
+
+ resolution: {integrity: sha512-7zznwNaqW6YtsfrGGDA6BRkISKAAE1Jo0QdpNYXNMHu2+0dTrPflTLNkpc8l7MUP5M16ZJcUvysVWWrMefZquA==}
+ engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
+ cpu: [ppc64]
+ os: [linux]
+ libc: [glibc]
+
+ resolution: {integrity: sha512-51gJuLPTKa7piYPaVs8GmByo7/U7/7TZOq+cnXJIHZKavIRHAP77e3N2HEl3dgiqdD/w0yUfiJnII77PuDDFdw==}
+ engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
+ cpu: [riscv64]
+ os: [linux]
+ libc: [glibc]
+
+ resolution: {integrity: sha512-nQtCk0PdKfho3eC5MrbQoigJ2gd1CgddUMkabUj+rBevs8tZ2cULOx46E7oyX+04WGfABgIwmMC0VqieTiR4jg==}
+ engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
+ cpu: [s390x]
+ os: [linux]
+ libc: [glibc]
+
+ resolution: {integrity: sha512-MEzd8HPKxVxVenwAa+JRPwEC7QFjoPWuS5NZnBt6B3pu7EG2Ge0id1oLHZpPJdn3OQK+BQDiw9zStiHBTJQQQQ==}
+ engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
+ cpu: [x64]
+ os: [linux]
+ libc: [glibc]
+
+ resolution: {integrity: sha512-fprJR6GtRsMt6Kyfq44IsChVZeGN97gTD331weR1ex1c1rypDEABN6Tm2xa1wE6lYb5DdEnk03NZPqA7Id21yg==}
+ engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
+ cpu: [arm64]
+ os: [linux]
+ libc: [musl]
+
+ resolution: {integrity: sha512-Jg8wNT1MUzIvhBFxViqrEhWDGzqymo3sV7z7ZsaWbZNDLXRJZoRGrjulp60YYtV4wfY8VIKcWidjojlLcWrd8Q==}
+ engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
+ cpu: [x64]
+ os: [linux]
+ libc: [musl]
+
+ resolution: {integrity: sha512-OdWTEiVkY2PHwqkbBI8frFxQQFekHaSSkUIJkwzclWZe64O1X4UlUjqqqLaPbUpMOQk6FBu/HtlGXNblIs0huw==}
+ engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
+ cpu: [wasm32]
+
+ resolution: {integrity: sha512-WQ3AgWCWYSb2yt+IG8mnC6Jdk9Whs7O0gxphblsLvdhSpSTtmu69ZG1Gkb6NuvxsNACwiPV6cNSZNzt0KPsw7g==}
+ engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
+ cpu: [arm64]
+ os: [win32]
+
+ resolution: {integrity: sha512-FV9m/7NmeCmSHDD5j4+4pNI8Cp3aW+JvLoXcTUo0IqyjSfAZJ8dIUmijx1qaJsIiU+Hosw6xM5KijAWRJCSgNg==}
+ engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
+ cpu: [ia32]
+ os: [win32]
+
+ resolution: {integrity: sha512-+29YMsqY2/9eFEiW93eqWnuLcWcufowXewwSNIT6UwZdUUCrM3oFjMWH/Z6/TMmb4hlFenmfAVbpWeup2jryCw==}
+ engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
+ cpu: [x64]
+ os: [win32]
+
+ '@inquirer/[email protected]':
+ resolution: {integrity: sha512-S8qNSZiYzFd0wAcyG5AXCvUHC5Sr7xpZ9wZ2py9XR88jUz8wooStVx5M6dRzczbBWjic9NP7+rY0Xi7qqK/aMQ==}
+ engines: {node: '>=18'}
+
+ '@inquirer/[email protected]':
+ resolution: {integrity: sha512-KR8edRkIsUayMXV+o3Gv+q4jlhENF9nMYUZs9PA2HzrXeHI8M5uDag70U7RJn9yyiMZSbtF5/UexBtAVtZGSbQ==}
+ engines: {node: '>=18'}
+ peerDependencies:
+ '@types/node': '>=18'
+ peerDependenciesMeta:
+ '@types/node':
+ optional: true
+
+ '@inquirer/[email protected]':
+ resolution: {integrity: sha512-43RTuEbfP8MbKzedNqBrlhhNKVwoK//vUFNW3Q3vZ88BLcrs4kYpGg+B2mm5p2K/HfygoCxuKwJJiv8PbGmE0A==}
+ engines: {node: '>=18'}
+ peerDependencies:
+ '@types/node': '>=18'
+ peerDependenciesMeta:
+ '@types/node':
+ optional: true
+
+ '@inquirer/[email protected]':
+ resolution: {integrity: sha512-t2IEY+unGHOzAaVM5Xx6DEWKeXlDDcNPeDyUpsRc6CUhBfU3VQOEl+Vssh7VNp1dR8MdUJBWhuObjXCsVpjN5g==}
+ engines: {node: '>=18'}
+
+ '@inquirer/[email protected]':
+ resolution: {integrity: sha512-BvziSRxfz5Ov8ch0z/n3oijRSEcEsHnhggm4xFZe93DHcUCTlutlq9Ox4SVENAfcRD22UQq7T/atg9Wr3k09eA==}
+ engines: {node: '>=18'}
+ peerDependencies:
+ '@types/node': '>=18'
+ peerDependenciesMeta:
+ '@types/node':
+ optional: true
+
+ '@isaacs/[email protected]':
+ resolution: {integrity: sha512-yzMTt9lEb8Gv7zRioUilSglI0c0smZ9k5D65677DLWLtWJaXIS3CqcGyUFByYKlnUj6TkjLVs54fBl6+TiGQDQ==}
+ engines: {node: 20 || >=22}
+
+ '@isaacs/[email protected]':
+ resolution: {integrity: sha512-WMz71T1JS624nWj2n2fnYAuPovhv7EUhk69R6i9dsVyzxt5eM3bjwvgk9L+APE1TRscGysAVMANkB0jh0LQZrQ==}
+ engines: {node: 20 || >=22}
+
+ '@jridgewell/[email protected]':
+ resolution: {integrity: sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==}
+
+ '@jridgewell/[email protected]':
+ resolution: {integrity: sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==}
+
+ '@jridgewell/[email protected]':
+ resolution: {integrity: sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==}
+ engines: {node: '>=6.0.0'}
+
+ '@jridgewell/[email protected]':
+ resolution: {integrity: sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==}
+
+ '@jridgewell/[email protected]':
+ resolution: {integrity: sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==}
+
+ '@modelcontextprotocol/[email protected]':
+ resolution: {integrity: sha512-Y5RmPncpiDtTXDbLKswIJzTqu2hyBKxTNsgKqKclDbhIgg1wgtf1fRuvxgTnRfcnxtvvgbIEcqUOzZrJ6iSReg==}
+ engines: {node: '>=18'}
+ peerDependencies:
+ '@cfworker/json-schema': ^4.1.1
+ zod: ^3.25 || ^4.0
+ peerDependenciesMeta:
+ '@cfworker/json-schema':
+ optional: true
+
+ '@mswjs/[email protected]':
+ resolution: {integrity: sha512-7G0Uf0yK3f2bjElBLGHIQzgRgMESczOMyYVasq1XK8P5HaXtlW4eQhz9MBL+TQILZLaruq+ClGId+hH0w4jvWw==}
+ engines: {node: '>=18'}
+
+ '@napi-rs/[email protected]':
+ resolution: {integrity: sha512-ZVWUcfwY4E/yPitQJl481FjFo3K22D6qF0DuFH6Y/nbnE11GY5uguDxZMGXPQ8WQ0128MXQD7TnfHyK4oWoIJQ==}
+
+ resolution: {integrity: sha512-N1ySLuZjnAtN3kFnwhAwPvZah8RJxKasD7x1f8shFqhncnWZn4JMfg37diLNuoHsLAlrDfM3g4mawVdtAG8XLQ==}
+
+ resolution: {integrity: sha512-/Qq3PTagA6+nYVfryAtQ7/9FEr/6YVyvOtl6rZnGsbReGLf0jZU6gkpr1FuChAQpvV46a78p4cmHOVP8mbfSMQ==}
+
+ resolution: {integrity: sha512-wTzYulosJr/6nFnqGW7FrG3jfUUlEf8UjGA0/pyypJl42ExdVgC6xJgcXQ+V8QFn6niSG2Pb8+MIG1mZr2vczw==}
+ engines: {node: '>= 10'}
+ cpu: [arm64]
+ os: [darwin]
+
+ resolution: {integrity: sha512-BLFPYPDO+MNJsiDWbeVzqvYd4NyuRrEYVB5k2N3JfWncuHAy2IVwMAOlVQDFjj+krkWzhY2apvmekMkfQR0CUQ==}
+ engines: {node: '>= 10'}
+ cpu: [x64]
+ os: [darwin]
+
+ resolution: {integrity: sha512-OJYkCd5pj/QloBvoEcJ2XiMnlJkRv9idWA/j0ugSuA34gMT6f5b7vOiCQHVRpvStoZUknhl6/UxOXL4OwtdaBw==}
+ engines: {node: '>= 10'}
+ cpu: [arm64]
+ os: [linux]
+ libc: [glibc]
+
+ resolution: {integrity: sha512-S4J2v+8tT3NIO9u2q+S0G5KdvNDjXfAv06OhfOzNDaBn5rw84DGXWndOEB7d5/x852A20sW1M56vhC/tRVbccQ==}
+ engines: {node: '>= 10'}
+ cpu: [arm64]
+ os: [linux]
+ libc: [musl]
+
+ resolution: {integrity: sha512-2eEBDkFlMMNQnkTyPBhQOAyn2qMxyG2eE7GPH2WIDGEpEILcBPI/jdSv4t6xupSP+ot/jkfrCShLAa7+ZUPcJQ==}
+ engines: {node: '>= 10'}
+ cpu: [x64]
+ os: [linux]
+ libc: [glibc]
+
+ resolution: {integrity: sha512-oicJwRlyOoZXVlxmIMaTq7f8pN9QNbdes0q2FXfRsPhfCi8n8JmOZJm5oo1pwDaFbnnD421rVU409M3evFbIqg==}
+ engines: {node: '>= 10'}
+ cpu: [x64]
+ os: [linux]
+ libc: [musl]
+
+ resolution: {integrity: sha512-gQmm8izDTPgs+DCWH22kcDmuUp7NyiJgEl18bcr8irXA5N2m2O+JQIr6f3ct42GOs9c0h8QF3L5SzIxcYAAXXw==}
+ engines: {node: '>= 10'}
+ cpu: [arm64]
+ os: [win32]
+
+ resolution: {integrity: sha512-NRfO39AIrzBnixKbjuo2YiYhB6o9d8v/ymU9m/Xk8cyVk+k7XylniXkHwjs4s70wedVffc6bQNbufk5v0xEm0A==}
+ engines: {node: '>= 10'}
+ cpu: [x64]
+ os: [win32]
+
+ '@noble/[email protected]':
+ resolution: {integrity: sha512-2I0gnIVPtfnMw9ee9h1dJG7tp81+8Ob3OJb3Mv37rx5L40/b0i7djjCVvGOVqc9AEIQyvyu1i6ypKdFw8R8gQw==}
+ engines: {node: ^14.21.3 || >=16}
+
+ '@noble/[email protected]':
+ resolution: {integrity: sha512-gbKGcRUYIjA3/zCCNaWDciTMFI0dCkvou3TL8Zmy5Nc7sJ47a0jtOeZoTaMxkuqRo9cRhjOdZJXegxYE5FN/xw==}
+ engines: {node: ^14.21.3 || >=16}
+
+ '@noble/[email protected]':
+ resolution: {integrity: sha512-jCs9ldd7NwzpgXDIf6P3+NrHh9/sD6CQdxHyjQI+h/6rDNo88ypBxxz45UDuZHz9r3tNz7N/VInSVoVdtXEI4A==}
+ engines: {node: ^14.21.3 || >=16}
+
+ '@nodelib/[email protected]':
+ resolution: {integrity: sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==}
+ engines: {node: '>= 8'}
+
+ '@nodelib/[email protected]':
+ resolution: {integrity: sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==}
+ engines: {node: '>= 8'}
+
+ '@nodelib/[email protected]':
+ resolution: {integrity: sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==}
+ engines: {node: '>= 8'}
+
+ '@nolyfill/[email protected]':
+ resolution: {integrity: sha512-nn5ozdjYQpUCZlWGuxcJY/KpxkWQs4DcbMCmKojjyrYDEAGy4Ce19NN4v5MduafTwJlbKc99UA8YhSVqq9yPZA==}
+ engines: {node: '>=12.4.0'}
+
+ '@open-draft/[email protected]':
+ resolution: {integrity: sha512-CecwLWx3rhxVQF6V4bAgPS5t+So2sTbPgAzafKkVizyi7tlwpcFpdFqq+wqF2OwNBmqFuu6tOyouTuxgpMfzmA==}
+
+ '@open-draft/[email protected]':
+ resolution: {integrity: sha512-X2g45fzhxH238HKO4xbSr7+wBS8Fvw6ixhTDuvLd5mqh6bJJCFAPwU9mPDxbcrRtfxv4u5IHCEH77BmxvXmmxQ==}
+
+ '@open-draft/[email protected]':
+ resolution: {integrity: sha512-U69T3ItWHvLwGg5eJ0n3I62nWuE6ilHlmz7zM0npLBRvPRd7e6NYmg54vvRtP5mZG7kZqZCFVdsTWo7BPtBujg==}
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-MkKCwxlXTgz6CFoJx3pCwn07GKp36+aZyu/u2Ln2VrA5DcdyCZkASEDBTd8x5whTQQL5CiYf4prXKLcgQdv29g==}
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-JTF99U/6XIjCBo0wqkU5sK10glYe27MRRsfwoiq5zzOEZLHU3A3KCMa5X/azekYRCJ0HlwI0crAXS/5dEHTzDg==}
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-XM+E4WXl0OqUJFovy6GjmxxFyx9opfCAIUku4dlKRd5YEPqt4kALOkQOp0Of6reHuUkJuiPBEc5k0o4z4lTC8A==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-T4nygeh9YE9dLRPhAHSeOZi7HBXo+0kYIPJXayZfvWOWA0+n3dESrZbjfDPUABkUNym6Hd+f2IR113To8D2GPA==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-oTVLkEw5GpdRe29BqJ0LSDFWI3qu0vR1M0mUkOQWDIUnY/QIkLpgDMWuKxP94c2NAC2LGcgVhG1ImF3jkZ5wXw==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-F+M1tLhO+mlQaOWspE8Wstg+z6PwxwRd8oQ8IXceWz92kfAmalTRf0EjrouQeo7QssEPfCn05B4Ihs1K9WQ/7w==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-Yq6lvO9HQyPwev1onK1daHCHqXVLzPhSVjmsNjCa2Zcxy2f7uJD2itDtxknv6FzAKCwD1qQkeVDmX/cev13n/g==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-V8piFfWapM5OmNCXTzVQY+E1rDa53zY+MQ4Y7356v4fFz6vqCyUtIz2rUD44ZEdwg78/jKmMJHj07+C/Z/rcog==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-wBbpv+NQftHDdG86Qc0pIyXk5IR3tM8Vd0nWLKDcX8nNn4nXFOFwsKuqw2okA/1D/mpaAkmuyndrPJTYDNZtFw==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-Uu+mSh4agx2ib1uIGPP4/CKNULyajb3p92LsVXmH2EHVMTfZWpll88XJ0j4W0z3f8NK1eYl1+Mf/szHPmcHzyA==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-Fh9rGN0MoI4ZFUNyfFVNU4y9LUz93u9/0K+yLgA2bwRojxM8JU1DyvvMBabnZPBgMWREAJvU2jjVzq+LrFUglw==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-z4eqJvfiNnFMHIIvXP3CY57y2WJs5g2v3X0zm9mEJkrkNv4rDxu+sg9Jh8EkXyeqBkB7SOcboo9dMVqhyrACIg==}
+ peerDependencies:
+ '@types/react': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-O8morBEW+HsVG28gYDZPTrT9UUovQUlJue5YO836tiTJhuIWBm/zQHc7j388sHWtdH/xUZurK9olD2+pcqx5ww==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-jCi/QKUM2r1Ju5a3J64TH2A5SpKAgh0LpknyqdQ4m6DCV0xJ2HG1xARRwNGPQfi1SLdLWZ1OJz6F4OMBBNiGJA==}
+ peerDependencies:
+ '@types/react': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-TCglVRtzlffRNxRMEyR36DGBLJpeusFcgMVD9PZEzAKnUs1lKCgX5u9BmC2Yg+LL9MgZDugFFs1Vl+Jp4t/PGw==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-1UEWRX6jnOA2y4H5WczZ44gOOjTEmlqv1uNW4GAJEO5+bauCBhv8snY65Iw5/VOS/ghKN9gr2KjnLKxrsvoMVw==}
+ peerDependencies:
+ '@types/react': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-Nqcp+t5cTB8BinFkZgXiMJniQH0PsUt2k51FUhbdfeKvc4ACcG2uQniY/8+h1Yv6Kza4Q7lD7PQV0z0oicE0Mg==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-1PLGQEynI/3OX/ftV54COn+3Sud/Mn8vALg2rWnBLnRaGtJDduNW/22XjlGgPdpcIbiQxjKtb7BkcjP00nqfJw==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-0rFg/Rj2Q62NCm62jZw0QX7a3sz6QCQU0LpZdNrJX8byRGaGVTqbrW9jAoIAHyMQqsNpeZ81YgSizOt5WXq0Pw==}
+ peerDependencies:
+ '@types/react': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-t2ODlkXBQyn7jkl6TNaw/MtVEVvIGelJDCG41Okq/KwUsJBwQ4XVZsHAVUkK4mBv3ewiAS3PGuUWuY2BoK4ZUw==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-QM70k4Zwjttifr5a4sZFts9fn8FzHYvQ5PiB19O2HsYibaHSVt9fH9rzB0XZo/YcM+b7t/p7lYCT/F5eOeF5yQ==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-qgTkjNT1CfKMoP0rcasmlH2r1DAiYicWsDsufxl940sT2wHNEWWv6FMWIQXWhVdmC1d/HYfbhQx60KYyAtKxjg==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-kGkGegYIdQsOb4XjsfM97rXsiHaBwco+hFI66oO4s9LU+PLAC5oJ7khdOVFxkhsmlbpUqDAvXw11CluXP+jkHg==}
+ peerDependencies:
+ '@types/react': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-YT1GqPSL8kJn20djelMX7/cTRp/Y9w5IZHvfxQTVHrOqa2yMl7i/UfMqKRU5V7mEyKTrUVgJXhNQPVCG8PBLoQ==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-72F2T+PLlphrqLcAotYPp0uJMr5SjP5SL01wfEspJbru5Zs5vQaSHb4VB3ZMJPimgHHCHG7gMOeOB9H3Hdmtxg==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-EB1FktTz5xRRi2Er974AUQZWg2yVBb1yjip38/lgwtCVRd3a+maUoGHN/xs9Yv8SY8QwbSEb+YrxGadVWbEutA==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-YB9mTFQvCOAQMHU+C/jVl96WmuWeltyUEpRJJky51huhds5W2FQr1J8D/16sQlf0ozxkPK8uF3niQMdUwZPv5w==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-ycS4rbwURavDPVjCb5iS3aG4lURFDILi6sKI/WITUMZ13gMmn/xGjpLoqBAalhJaDk8I3UbCM5GzKHrnzwHbvg==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-/UuCrDBWravcaMix4TdT+qlNdVwOM1Nck9kWx/vafXsdfj1ChfhOdfi3cy9SGBpWgTXwYCuboT/oYpJy3clqfw==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-kr0X2+6Yy/vJzLYJUPCZEc8SfQcf+1COFoAqauJm74umQhta9M7lNJHP7QQS3vkvcGLQUbWpMzwrXYwrYztHKA==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-0NJQ4LFFUuWkE7Oxf0htBKS6zLkkjBH+hM1uk7Ng705ReR8m/uelduy1DBo0PyBXPKVnBA6YBlU94MBGXrSBCw==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-bpIxvq03if6UNwXZ+HTK71JLh4APvnXntDc6XOX8UVq4XQOVl7lwok0AvIl+b8zgCw3fSaVTZMpAPPagXbKmHQ==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-/jfEwNDdQVBCNvjkGit4h6pMOzq8bHkopq458dPt2lMjx+eBQUohZNG9A7DtO/O5ukSbxuaNGXMjHicgwy6rQQ==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-m9gTwRkhy2lvCPe6QJp4d3G1TYEUHn/FzJUtq9MjH46an1wJU+GdoGC5VLof8RX8Ft/DlpshApkhswDLZzHIcQ==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-vPdg/tF6YC/ynuBIJlk1mm7Le0VgW6ub6J2UWnTQ7/D23KXcPI1qy+0vBkgKgd38RCMJavBXpB83HPNFMTb0Fg==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-VBKYIYImA5zsxACdisNQ3BjCBfmbGH3kQlnFVqlWU4tXwjy7cGX8ta80BcrO+WJXIn5iBylEH3K6ZTlee//lgQ==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-7A6S9jSgm/S+7MdtNDSb+IU859vQqJ/QAtcYQcfFC6W8RS4IxIZDldLR0xqCFZ6DCyrQLjLPsxtTNch5jVA4lA==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-tAXIa1g3sM5CGpVT0uIbUx/U3Gs5N8T52IICuCtObaos1S8fzsrPXG5WObkQN3S6NVl6wKgPhAIiBGbWnvc97A==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-I30RydO+bnn2PQztvo25tswPH+wFBjehVGtmagkU78yMdwTwVf12wnAOF+AeP8S2N8xD+5UPbGhkUfPyvT+mwQ==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-0HEb8R9E8A+jZjvmFCy/J4xhbXy3TV+9XSnGJ3KvTtjlIUy/YQ/p6UYZvi7YbeoeXdyU9+Y3scizK6hkY37baA==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-JPYb1GuM1bxfjMRlNLE+BcmBC8onfCi60Blk7OBqi2MLTFdS+8401U4uFjnwkOr49BLmXxLC6JHkvAsx5OJvHw==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-aeNmHnBxbi2St0au6VBVC7JXFlhLlOnvIIlePNniyUNAClzmtAUEY8/pBiK3iHjufOlwA+c20/8jngo7xcrg8A==}
+ peerDependencies:
+ '@types/react': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-bByzr1+ep1zk4VubeEVViV592vu2lHE2BZY5OnzehZqOOgogN80+mNtCqPkhn2gklJqOpxWgPoYTSnhBCqpOXQ==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-7xdcatg7/U+7+Udyoj2zodtI9H/IIopqo+YOIcZOq1nJwXWBZ9p8xiu5llXlekDbZkca79a/fozEYQXIA4sW6A==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-3OSz3TacUWy4WtOXV38DggwxoqJK4+eDkNMl5Z/MJZaoUPaP4/9lf81xXMe1I2ReTAptverZUpbPY4wWwWyL5g==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-5umnS0T8JQzQT6HbPyO7Hh9dgd82NmS36DQr+X/YJ9ctFNCiiQd6IJAYYZ33LUwm8M+taCz5t2ui29fHZc4Y6Q==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-lS1odchhFTeZv3xwHH31YPObmJn8gOg7Lq12inrr0+BH/l3Tsq32VfjqH1oh80ARM3mlkfMic15n0kg4sD1poQ==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-4ol06/1bLoFu1nwUqzdD4Y5RZ9oDdKeiHIsntug54Hcr1pgaHiPqHFEaXI1IFP/EsOfROQZ8Mig9VTIRza6Tjg==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-tY7sVt1yL9ozIxvmbtN5qtmH2krXcBCfjEiCgKGLqunJHvgvZG2Pcl2oQ3kbcZARb1BGEHdkLzcYGO8ynVlieg==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-FkBMwD+qbGQeMu1cOHnuGB6x4yzPjho8ap5WtbEJ26umhgqVXbhekKUQO+hZEL1vU92a3wHwdp0HAcqAUF5iDg==}
+ peerDependencies:
+ '@types/react': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-BjasUjixPFdS+NKkypcyyN5Pmg83Olst0+c6vGov0diwTEo6mgdqVR6hxcEgFuh4QrAs7Rc+9KuGJ9TVCj0Zzg==}
+ peerDependencies:
+ '@types/react': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-Qp8WbZOBe+blgpuUT+lw2xheLP8q0oatc9UpmiemEICxGvFLYmHm9QowVZGHtJlGbS6A6yJ3iViad/2cVjnOiA==}
+ peerDependencies:
+ '@types/react': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-Il0+boE7w/XebUHyBjroE+DbByORGR9KKmITzbR7MyQ4akpORYP/ZmbhAr0DG7RmmBqoOnZdy2QlvajJ2QA59g==}
+ peerDependencies:
+ '@types/react': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-U+UORVEq+cTnRIaostJv9AGdV3G6Y+zbVd+12e18jQ5A3c0xL03IhnHuiU4UV69wolOQp5GfR58NW/EgdQhwOA==}
+ peerDependencies:
+ '@types/react': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-RbJRS4UWQFkzHTTwVymMTUv8EqYhOp8dOOviLj2ugtTiXRaRQS7GLGxZTLL1jWhMeoSCf5zmcZkqTl9IiYfXcQ==}
+ peerDependencies:
+ '@types/react': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-2dHfToCj/pzca2Ck724OZ5L0EVrr3eHRNsG/b3xQJLA2hZpVCS99bLAX+hm1IHXDEnzU6by5z/5MIY794/a8NQ==}
+ peerDependencies:
+ '@types/react': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-QTYuDesS0VtuHNNvMh+CjlKJ4LJickCMUAqjlE3+j8w+RlRpwyX3apEQKGFzbZGdo7XNG1tXa+bQqIE7HIXT2w==}
+ peerDependencies:
+ '@types/react': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-ewrXRDTAqAXlkl6t/fkXWNAhFX9I+CkKlw6zjEwk86RSPKwZr3xpBRso655aqYafwtnbpHLj6toFzmd6xdVptQ==}
+ peerDependencies:
+ '@types/react': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-pzJq12tEaaIhqjbzpCuv/OypJY/BPavOofm+dbab+MHLajy277+1lLm6JFcGgF5eskJ6mquGirhXY2GD/8u8Ug==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/[email protected]':
+ resolution: {integrity: sha512-HPwpGIzkl28mWyZqG52jiqDJ12waP11Pa1lGoiyUkIEuMLBP0oeK/C89esbXrxsky5we7dfd8U58nm0SgAWpVw==}
+
+ '@rtsao/[email protected]':
+ resolution: {integrity: sha512-zt6OdqaDoOnJ1ZYsCYGt9YmWzDXl4vQdKTyJev62gFhRGKdx7mcT54V9KIjg+d2wi9EXsPvAPKe7i7WjfVWB8g==}
+
+ '@sec-ant/[email protected]':
+ resolution: {integrity: sha512-831qok9r2t8AlxLko40y2ebgSDhenenCatLVeW/uBtnHPyhHOvG0C7TvfgecV+wHzIm5KUICgzmVpWS+IMEAeg==}
+
+ '@sindresorhus/[email protected]':
+ resolution: {integrity: sha512-tlqY9xq5ukxTUZBmoOp+m61cqwQD5pHJtFY3Mn8CA8ps6yghLH/Hw8UPdqg4OLmFW3IFlcXnQNmo/dh8HzXYIQ==}
+ engines: {node: '>=18'}
+
+ resolution: {integrity: sha512-JQ5TuMi45Owi4/BIMAJBoSQoOJu12oOk/gADqlcUL9JEdHB8vyjUSsxqeNXnmXHjYKMi2WcYtezGEEhqUI/E2g==}
+
+ '@tailwindcss/[email protected]':
+ resolution: {integrity: sha512-DoR7U1P7iYhw16qJ49fgXUlry1t4CpXeErJHnQ44JgTSKMaZUdf17cfn5mHchfJ4KRBZRFA/Coo+MUF5+gOaCQ==}
+
+ '@tailwindcss/[email protected]':
+ resolution: {integrity: sha512-dJHz7+Ugr9U/diKJA0W6N/6/cjI+ZTAoxPf9Iz9BFRF2GzEX8IvXxFIi/dZBloVJX/MZGvRuFA9rqwdiIEZQ0Q==}
+ engines: {node: '>= 10'}
+ cpu: [arm64]
+ os: [android]
+
+ '@tailwindcss/[email protected]':
+ resolution: {integrity: sha512-Gc2q4Qhs660bhjyBSKgq6BYvwDz4G+BuyJ5H1xfhmDR3D8HnHCmT/BSkvSL0vQLy/nkMLY20PQ2OoYMO15Jd0A==}
+ engines: {node: '>= 10'}
+ cpu: [arm64]
+ os: [darwin]
+
+ '@tailwindcss/[email protected]':
+ resolution: {integrity: sha512-FL5oxr2xQsFrc3X9o1fjHKBYBMD1QZNyc1Xzw/h5Qu4XnEBi3dZn96HcHm41c/euGV+GRiXFfh2hUCyKi/e+yw==}
+ engines: {node: '>= 10'}
+ cpu: [x64]
+ os: [darwin]
+
+ '@tailwindcss/[email protected]':
+ resolution: {integrity: sha512-Fj+RHgu5bDodmV1dM9yAxlfJwkkWvLiRjbhuO2LEtwtlYlBgiAT4x/j5wQr1tC3SANAgD+0YcmWVrj8R9trVMA==}
+ engines: {node: '>= 10'}
+ cpu: [x64]
+ os: [freebsd]
+
+ '@tailwindcss/[email protected]':
+ resolution: {integrity: sha512-Fp+Wzk/Ws4dZn+LV2Nqx3IilnhH51YZoRaYHQsVq3RQvEl+71VGKFpkfHrLM/Li+kt5c0DJe/bHXK1eHgDmdiA==}
+ engines: {node: '>= 10'}
+ cpu: [arm]
+ os: [linux]
+
+ '@tailwindcss/[email protected]':
+ resolution: {integrity: sha512-S0n3jboLysNbh55Vrt7pk9wgpyTTPD0fdQeh7wQfMqLPM/Hrxi+dVsLsPrycQjGKEQk85Kgbx+6+QnYNiHalnw==}
+ engines: {node: '>= 10'}
+ cpu: [arm64]
+ os: [linux]
+ libc: [glibc]
+
+ '@tailwindcss/[email protected]':
+ resolution: {integrity: sha512-1px92582HkPQlaaCkdRcio71p8bc8i/ap5807tPRDK/uw953cauQBT8c5tVGkOwrHMfc2Yh6UuxaH4vtTjGvHg==}
+ engines: {node: '>= 10'}
+ cpu: [arm64]
+ os: [linux]
+ libc: [musl]
+
+ '@tailwindcss/[email protected]':
+ resolution: {integrity: sha512-v3gyT0ivkfBLoZGF9LyHmts0Isc8jHZyVcbzio6Wpzifg/+5ZJpDiRiUhDLkcr7f/r38SWNe7ucxmGW3j3Kb/g==}
+ engines: {node: '>= 10'}
+ cpu: [x64]
+ os: [linux]
+ libc: [glibc]
+
+ '@tailwindcss/[email protected]':
+ resolution: {integrity: sha512-bhJ2y2OQNlcRwwgOAGMY0xTFStt4/wyU6pvI6LSuZpRgKQwxTec0/3Scu91O8ir7qCR3AuepQKLU/kX99FouqQ==}
+ engines: {node: '>= 10'}
+ cpu: [x64]
+ os: [linux]
+ libc: [musl]
+
+ '@tailwindcss/[email protected]':
+ resolution: {integrity: sha512-LffYTvPjODiP6PT16oNeUQJzNVyJl1cjIebq/rWWBF+3eDst5JGEFSc5cWxyRCJ0Mxl+KyIkqRxk1XPEs9x8TA==}
+ engines: {node: '>=14.0.0'}
+ cpu: [wasm32]
+ bundledDependencies:
+ - '@napi-rs/wasm-runtime'
+ - '@emnapi/core'
+ - '@emnapi/runtime'
+ - '@tybys/wasm-util'
+ - '@emnapi/wasi-threads'
+ - tslib
+
+ '@tailwindcss/[email protected]':
+ resolution: {integrity: sha512-HjSA7mr9HmC8fu6bdsZvZ+dhjyGCLdotjVOgLA2vEqxEBZaQo9YTX4kwgEvPCpRh8o4uWc4J/wEoFzhEmjvPbA==}
+ engines: {node: '>= 10'}
+ cpu: [arm64]
+ os: [win32]
+
+ '@tailwindcss/[email protected]':
+ resolution: {integrity: sha512-bJWbyYpUlqamC8dpR7pfjA0I7vdF6t5VpUGMWRkXVE3AXgIZjYUYAK7II1GNaxR8J1SSrSrppRar8G++JekE3Q==}
+ engines: {node: '>= 10'}
+ cpu: [x64]
+ os: [win32]
+
+ '@tailwindcss/[email protected]':
+ resolution: {integrity: sha512-EgCR5tTS5bUSKQgzeMClT6iCY3ToqE1y+ZB0AKldj809QXk1Y+3jB0upOYZrn9aGIzPtUsP7sX4QQ4XtjBB95A==}
+ engines: {node: '>= 10'}
+
+ '@tailwindcss/[email protected]':
+ resolution: {integrity: sha512-Ce0GFnzAOuPyfV5SxjXGn0CubwGcuDB0zcdaPuCSzAa/2vII24JTkH+I6jcbXLb1ctjZMZZI6OjDaLPJQL1S0g==}
+
+ '@ts-morph/[email protected]':
+ resolution: {integrity: sha512-Wf29UqxWDpc+i61k3oIOzcUfQt79PIT9y/MWfAGlrkjg6lBC1hwDECLXPVJAhWjiGbfBCxZd65F/LIZF3+jeJQ==}
+
+ '@tybys/[email protected]':
+ resolution: {integrity: sha512-9tTaPJLSiejZKx+Bmog4uSubteqTvFrVrURwkmHixBo0G4seD0zUxp98E1DzUBJxLQ3NPwXrGKDiVjwx/DpPsg==}
+
+ '@types/[email protected]':
+ resolution: {integrity: sha512-Y2p+nGf1bF2XMttBnsVPHUWzRRZzqUoJAKmiP10b5umnO6DDrWI0BrGDJy1pOHoOULVmGSfFNkQrAlC5dcj6nQ==}
+
+ '@types/[email protected]':
+ resolution: {integrity: sha512-O5hkiFIcjjszPIYyUSyvScyvrBoV3NOEEZx/pMlsu44TKzWNkLVBBxnxJz42in5n3QIolYOcBYFCPZZ0h8SkwQ==}
+
+ '@types/[email protected]':
+ resolution: {integrity: sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==}
+
+ '@types/[email protected]':
+ resolution: {integrity: sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==}
+
+ '@types/[email protected]':
+ resolution: {integrity: sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==}
+
+ '@types/[email protected]':
+ resolution: {integrity: sha512-Rs1bVAIdBs5gbTIKza/tgpMuG1k3U/UMJLWecIMxNdJFDMzcM5LOiLVRYh3PilWEYDIeUDv7bpiHPLPsbydGcw==}
+
+ '@types/[email protected]':
+ resolution: {integrity: sha512-jp2L/eY6fn+KgVVQAOqYItbF0VY/YApe5Mz2F0aykSO8gx31bYCZyvSeYxCHKvzHG5eZjc+zyaS5BrBWya2+kQ==}
+ peerDependencies:
+ '@types/react': ^19.2.0
+
+ '@types/[email protected]':
+ resolution: {integrity: sha512-KkiJeU6VbYbUOp5ITMIc7kBfqlYkKA5KhEHVrGMmUUMt7NeaZg65ojdPk+FtNrBAOXNVM5QM72jnADjM+XVRAQ==}
+
+ '@types/[email protected]':
+ resolution: {integrity: sha512-xMAgYwceFhRA2zY+XbEA7mxYbA093wdiW8Vu6gZPGWy9cmOyU9XesH1tNcEWsKFd5Vzrqx5T3D38PWx1FIIXkA==}
+
+ '@types/[email protected]':
+ resolution: {integrity: sha512-lrpDziQipxCEeK5kWxvljWYhUvOiB2A9izZd9B2AFarYAkqZshb4lPbRs7zKEic6eGtH8V/2qJW+dPp9OtF6bw==}
+
+ '@typescript-eslint/[email protected]':
+ resolution: {integrity: sha512-1y/MVSz0NglV1ijHC8OT49mPJ4qhPYjiK08YUQVbIOyu+5k862LKUHFkpKHWu//zmr7hDR2rhwUm6gnCGNmGBQ==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+ peerDependencies:
+ '@typescript-eslint/parser': ^8.55.0
+ eslint: ^8.57.0 || ^9.0.0
+ typescript: '>=4.8.4 <6.0.0'
+
+ '@typescript-eslint/[email protected]':
+ resolution: {integrity: sha512-4z2nCSBfVIMnbuu8uinj+f0o4qOeggYJLbjpPHka3KH1om7e+H9yLKTYgksTaHcGco+NClhhY2vyO3HsMH1RGw==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+ peerDependencies:
+ eslint: ^8.57.0 || ^9.0.0
+ typescript: '>=4.8.4 <6.0.0'
+
+ '@typescript-eslint/[email protected]':
+ resolution: {integrity: sha512-zRcVVPFUYWa3kNnjaZGXSu3xkKV1zXy8M4nO/pElzQhFweb7PPtluDLQtKArEOGmjXoRjnUZ29NjOiF0eCDkcQ==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+ peerDependencies:
+ typescript: '>=4.8.4 <6.0.0'
+
+ '@typescript-eslint/[email protected]':
+ resolution: {integrity: sha512-fVu5Omrd3jeqeQLiB9f1YsuK/iHFOwb04bCtY4BSCLgjNbOD33ZdV6KyEqplHr+IlpgT0QTZ/iJ+wT7hvTx49Q==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+
+ '@typescript-eslint/[email protected]':
+ resolution: {integrity: sha512-1R9cXqY7RQd7WuqSN47PK9EDpgFUK3VqdmbYrvWJZYDd0cavROGn+74ktWBlmJ13NXUQKlZ/iAEQHI/V0kKe0Q==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+ peerDependencies:
+ typescript: '>=4.8.4 <6.0.0'
+
+ '@typescript-eslint/[email protected]':
+ resolution: {integrity: sha512-x1iH2unH4qAt6I37I2CGlsNs+B9WGxurP2uyZLRz6UJoZWDBx9cJL1xVN/FiOmHEONEg6RIufdvyT0TEYIgC5g==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+ peerDependencies:
+ eslint: ^8.57.0 || ^9.0.0
+ typescript: '>=4.8.4 <6.0.0'
+
+ '@typescript-eslint/[email protected]':
+ resolution: {integrity: sha512-ujT0Je8GI5BJWi+/mMoR0wxwVEQaxM+pi30xuMiJETlX80OPovb2p9E8ss87gnSVtYXtJoU9U1Cowcr6w2FE0w==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+
+ '@typescript-eslint/[email protected]':
+ resolution: {integrity: sha512-EwrH67bSWdx/3aRQhCoxDaHM+CrZjotc2UCCpEDVqfCE+7OjKAGWNY2HsCSTEVvWH2clYQK8pdeLp42EVs+xQw==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+ peerDependencies:
+ typescript: '>=4.8.4 <6.0.0'
+
+ '@typescript-eslint/[email protected]':
+ resolution: {integrity: sha512-BqZEsnPGdYpgyEIkDC1BadNY8oMwckftxBT+C8W0g1iKPdeqKZBtTfnvcq0nf60u7MkjFO8RBvpRGZBPw4L2ow==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+ peerDependencies:
+ eslint: ^8.57.0 || ^9.0.0
+ typescript: '>=4.8.4 <6.0.0'
+
+ '@typescript-eslint/[email protected]':
+ resolution: {integrity: sha512-AxNRwEie8Nn4eFS1FzDMJWIISMGoXMb037sgCBJ3UR6o0fQTzr2tqN9WT+DkWJPhIdQCfV7T6D387566VtnCJA==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+
+ resolution: {integrity: sha512-ppLRUgHVaGRWUx0R0Ut06Mjo9gBaBkg3v/8AxusGLhsIotbBLuRk51rAzqLC8gq6NyyAojEXglNjzf6R948DNw==}
+ cpu: [arm]
+ os: [android]
+
+ resolution: {integrity: sha512-lCxkVtb4wp1v+EoN+HjIG9cIIzPkX5OtM03pQYkG+U5O/wL53LC4QbIeazgiKqluGeVEeBlZahHalCaBvU1a2g==}
+ cpu: [arm64]
+ os: [android]
+
+ resolution: {integrity: sha512-gPVA1UjRu1Y/IsB/dQEsp2V1pm44Of6+LWvbLc9SDk1c2KhhDRDBUkQCYVWe6f26uJb3fOK8saWMgtX8IrMk3g==}
+ cpu: [arm64]
+ os: [darwin]
+
+ resolution: {integrity: sha512-cFzP7rWKd3lZaCsDze07QX1SC24lO8mPty9vdP+YVa3MGdVgPmFc59317b2ioXtgCMKGiCLxJ4HQs62oz6GfRQ==}
+ cpu: [x64]
+ os: [darwin]
+
+ resolution: {integrity: sha512-fqtGgak3zX4DCB6PFpsH5+Kmt/8CIi4Bry4rb1ho6Av2QHTREM+47y282Uqiu3ZRF5IQioJQ5qWRV6jduA+iGw==}
+ cpu: [x64]
+ os: [freebsd]
+
+ resolution: {integrity: sha512-u92mvlcYtp9MRKmP+ZvMmtPN34+/3lMHlyMj7wXJDeXxuM0Vgzz0+PPJNsro1m3IZPYChIkn944wW8TYgGKFHw==}
+ cpu: [arm]
+ os: [linux]
+
+ resolution: {integrity: sha512-cINaoY2z7LVCrfHkIcmvj7osTOtm6VVT16b5oQdS4beibX2SYBwgYLmqhBjA1t51CarSaBuX5YNsWLjsqfW5Cw==}
+ cpu: [arm]
+ os: [linux]
+
+ resolution: {integrity: sha512-34gw7PjDGB9JgePJEmhEqBhWvCiiWCuXsL9hYphDF7crW7UgI05gyBAi6MF58uGcMOiOqSJ2ybEeCvHcq0BCmQ==}
+ cpu: [arm64]
+ os: [linux]
+ libc: [glibc]
+
+ resolution: {integrity: sha512-RyMIx6Uf53hhOtJDIamSbTskA99sPHS96wxVE/bJtePJJtpdKGXO1wY90oRdXuYOGOTuqjT8ACccMc4K6QmT3w==}
+ cpu: [arm64]
+ os: [linux]
+ libc: [musl]
+
+ resolution: {integrity: sha512-D8Vae74A4/a+mZH0FbOkFJL9DSK2R6TFPC9M+jCWYia/q2einCubX10pecpDiTmkJVUH+y8K3BZClycD8nCShA==}
+ cpu: [ppc64]
+ os: [linux]
+ libc: [glibc]
+
+ resolution: {integrity: sha512-frxL4OrzOWVVsOc96+V3aqTIQl1O2TjgExV4EKgRY09AJ9leZpEg8Ak9phadbuX0BA4k8U5qtvMSQQGGmaJqcQ==}
+ cpu: [riscv64]
+ os: [linux]
+ libc: [glibc]
+
+ resolution: {integrity: sha512-mJ5vuDaIZ+l/acv01sHoXfpnyrNKOk/3aDoEdLO/Xtn9HuZlDD6jKxHlkN8ZhWyLJsRBxfv9GYM2utQ1SChKew==}
+ cpu: [riscv64]
+ os: [linux]
+ libc: [musl]
+
+ resolution: {integrity: sha512-kELo8ebBVtb9sA7rMe1Cph4QHreByhaZ2QEADd9NzIQsYNQpt9UkM9iqr2lhGr5afh885d/cB5QeTXSbZHTYPg==}
+ cpu: [s390x]
+ os: [linux]
+ libc: [glibc]
+
+ resolution: {integrity: sha512-C3ZAHugKgovV5YvAMsxhq0gtXuwESUKc5MhEtjBpLoHPLYM+iuwSj3lflFwK3DPm68660rZ7G8BMcwSro7hD5w==}
+ cpu: [x64]
+ os: [linux]
+ libc: [glibc]
+
+ resolution: {integrity: sha512-rV0YSoyhK2nZ4vEswT/QwqzqQXw5I6CjoaYMOX0TqBlWhojUf8P94mvI7nuJTeaCkkds3QE4+zS8Ko+GdXuZtA==}
+ cpu: [x64]
+ os: [linux]
+ libc: [musl]
+
+ resolution: {integrity: sha512-5u4RkfxJm+Ng7IWgkzi3qrFOvLvQYnPBmjmZQ8+szTK/b31fQCnleNl1GgEt7nIsZRIf5PLhPwT0WM+q45x/UQ==}
+ engines: {node: '>=14.0.0'}
+ cpu: [wasm32]
+
+ resolution: {integrity: sha512-nRcz5Il4ln0kMhfL8S3hLkxI85BXs3o8EYoattsJNdsX4YUU89iOkVn7g0VHSRxFuVMdM4Q1jEpIId1Ihim/Uw==}
+ cpu: [arm64]
+ os: [win32]
+
+ resolution: {integrity: sha512-DCEI6t5i1NmAZp6pFonpD5m7i6aFrpofcp4LA2i8IIq60Jyo28hamKBxNrZcyOwVOZkgsRp9O2sXWBWP8MnvIQ==}
+ cpu: [ia32]
+ os: [win32]
+
+ resolution: {integrity: sha512-lrW200hZdbfRtztbygyaq/6jP6AKE8qQN2KvPcJ+x7wiD038YtnYtZ82IMNJ69GJibV7bwL3y9FgK+5w/pYt6g==}
+ cpu: [x64]
+ os: [win32]
+
+ resolution: {integrity: sha512-5cvg6CtKwfgdmVqY1WIiXKc3Q1bkRqGLi+2W/6ao+6Y7gu/RCwRuAhGEzh5B4KlszSuTLgZYuqFqo5bImjNKng==}
+ engines: {node: '>= 0.6'}
+
+ resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==}
+ peerDependencies:
+ acorn: ^6.0.0 || ^7.0.0 || ^8.0.0
+
+ resolution: {integrity: sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==}
+ engines: {node: '>=0.4.0'}
+ hasBin: true
+
+ resolution: {integrity: sha512-MnA+YT8fwfJPgBx3m60MNqakm30XOkyIoH1y6huTQvC0PwZG7ki8NacLBcrPbNoo8vEZy7Jpuk7+jMO+CUovTQ==}
+ engines: {node: '>= 14'}
+
+ resolution: {integrity: sha512-8iUql50EUR+uUcdRQ3HDqa6EVyo3docL8g5WJ3FNcWmu62IbkGUue/pEyLBW8VGKKucTPgqeks4fIU1DA4yowQ==}
+ peerDependencies:
+ ajv: ^8.0.0
+ peerDependenciesMeta:
+ ajv:
+ optional: true
+
+ resolution: {integrity: sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==}
+
+ resolution: {integrity: sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==}
+
+ resolution: {integrity: sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==}
+ engines: {node: '>=8'}
+
+ resolution: {integrity: sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg==}
+ engines: {node: '>=12'}
+
+ resolution: {integrity: sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==}
+ engines: {node: '>=8'}
+
+ resolution: {integrity: sha512-HqZ5rWlFjGiV0tDm3UxxgNRqsOTniqoKZu0pIAfh7TZQMGuZK+hH0drySty0si0QXj1ieop4+SkSfPZBPPkHig==}
+ engines: {node: '>=14'}
+
+ resolution: {integrity: sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==}
+
+ resolution: {integrity: sha512-ik3ZgC9dY/lYVVM++OISsaYDeg1tb0VtP5uL3ouh1koGOaUMDPpbFIei4JkFimWUFPn90sbMNMXQAIVOlnYKJA==}
+ engines: {node: '>=10'}
+
+ resolution: {integrity: sha512-COROpnaoap1E2F000S62r6A60uHZnmlvomhfyT2DlTcrY1OrBKn2UhH7qn5wTC9zMvD0AY7csdPSNwKP+7WiQw==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-LHE+8BuR7RYGDKvnrmcuSq3tDcKv9OFEXQt/HpbZhY7V6h0zlUXutnAD82GiFx9rdieCMjkvtcsPqBwgUl1Iiw==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-FmeCCAenzH0KH381SPT5FZmiA/TmpndpcaShhfgEN9eCVjnFBqq3l1xrI42y8+PPLI6hypzou4GXw00WHmPBLQ==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-CVvd6FHg1Z3POpBLxO6E6zr+rSKEQ9L6rZHAaY7lLfhKsWYUBBOuMs0e9o24oopj6H+geRCX0YJ+TJLBK2eHyQ==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-F/TKATkzseUExPlfvmwQKGITM3DGTK+vkAsCZoDc5daVygbJBnjEUCbgkAvVFsgfXfX4YIqZ/27G3k3tdXrTxQ==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-rwG/ja1neyLqCuGZ5YYrznA62D4mZXg0i1cIskIUKSiqF3Cje9/wXAls9B9s1Wa2fomMsIv8czB8jZcPmxCXFg==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-Y7Wt51eKJSyi80hFrJCePGGNo5ktJCslFuboqJsbf57CCPcm5zztluPlc4/aD8sWsKvlwatezpV4U1efk8kpjg==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-p6Fx8B7b7ZhL/gmUsAy0D15WhvDccw3mnGNbZpi3pmeJdxtWsj2jEaI4Y6oo3XiHfzuSgPwKc04MYt6KgvC/wA==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-BNoCY6SXXPQ7gF2opIP4GBE+Xw7U+pHMYKuzjgCN3GwiaIR09UUeKfheyIry77QtrCBlC0KK0q5/TER/tYh3PQ==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-OH/2E5Fg20h2aPrbe+QL8JZQFko0YZaF+j4mnQ7BGhfavO7OpSLa8a0y9sBwomHdSbkhTS8TQNayBfnW5DwbvQ==}
+
+ resolution: {integrity: sha512-6t10qk83GOG8p0vKmaCr8eiilZwO171AvbROMtvvNiwrTly62t+7XkA8RdIIVbpMhCASAsxgAzdRSwh6nw/5Dg==}
+ engines: {node: '>=4'}
+
+ resolution: {integrity: sha512-hsU18Ae8CDTR6Kgu9DYf0EbCr/a5iGL0rytQDobUcdpYOKokk8LEjVphnXkDkgpi0wYVsqrXuP0bZxJaTqdgoA==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-BASOg+YwO2C+346x3LZOeoovTIoTrRqEsqMa6fmfAV0P+U9mFr9NsyOEpiYvFjbc64NMrSswhV50WdXzdb/Z5A==}
+ engines: {node: '>=4'}
+
+ resolution: {integrity: sha512-qIj0G9wZbMGNLjLmg1PT6v2mE9AH2zlnADJD/2tC6E00hgmhUOfEB6greHPAfLRSufHqROIUTkw6E+M3lH0PTQ==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==}
+
+ resolution: {integrity: sha512-ipDqC8FrAl/76p2SSWKSI+H9tFwm7vYqXQrItCuiVPt26Km0jS+NzSsBWAaBusvSbQcfJG+JitdMm+wZAgTYqg==}
+ hasBin: true
+
+ resolution: {integrity: sha512-oP5VkATKlNwcgvxi0vM0p/D3n2C3EReYVX+DNYs5TjZFn/oQt2j+4sVJtSMr18pdRr8wjTcBl6LoV+FUwzPmNA==}
+ engines: {node: '>=18'}
+
+ resolution: {integrity: sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==}
+
+ resolution: {integrity: sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==}
+
+ resolution: {integrity: sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==}
+ engines: {node: '>=8'}
+
+ resolution: {integrity: sha512-ZC5Bd0LgJXgwGqUknZY/vkUQ04r8NXnJZ3yYi4vDmSiZmC/pdSN0NbNRPxZpbtO4uAfDUAFffO8IZoM3Gj8IkA==}
+ engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7}
+ hasBin: true
+
+ resolution: {integrity: sha512-tjwM5exMg6BGRI+kNmTntNsvdZS1X8BFYS6tnJ2hdH0kVxM6/eVZ2xy+FqStSWvYmtfFMDLIxurorHwDKfDz5Q==}
+ engines: {node: '>=18'}
+
+ resolution: {integrity: sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==}
+ engines: {node: '>= 0.8'}
+
+ resolution: {integrity: sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-oKlSFMcMwpUg2ednkhQ454wfWiU/ul3CkJe/PEHcTKuiX6RpbehUiFMXu13HalGZxfUwCQzZG747YXBn1im9ww==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==}
+ engines: {node: '>=6'}
+
+ resolution: {integrity: sha512-BCfFL1sHijQlBGWBMuJyhZUhzo7wer5sVj9hqekB/7xn0Ypy+pER/edCYQm4exbXj4WiySGp40P8UuTh6w1srg==}
+
+ resolution: {integrity: sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==}
+ engines: {node: '>=10'}
+
+ resolution: {integrity: sha512-7NzBL0rN6fMUW+f7A6Io4h40qQlG+xGmtMxfbnH/K7TAtt8JQWVQK+6g0UXKMeVJoyV5EkkNsErQ8pVD3bLHbA==}
+ engines: {node: ^12.17.0 || ^14.13 || >=16.0.0}
+
+ resolution: {integrity: sha512-Ka+9Trutv7G8M6WT6SeiRWz792K5qEqIGEGzXKhAE6xOWAY6pPH8U+9IY3oCMv6kqTmLsv7Xh/2w2RigkePMsg==}
+
+ resolution: {integrity: sha512-aCj4O5wKyszjMmDT4tZj93kxyydN/K5zPWSCe6/0AV/AA1pqe5ZBIw0a2ZfPQV7lL5/yb5HsUreJ6UFAF1tEQw==}
+ engines: {node: '>=18'}
+
+ resolution: {integrity: sha512-ywqV+5MmyL4E7ybXgKys4DugZbX0FC6LnwrhjuykIjnK9k8OQacQ7axGKnjDXWNhns0xot3bZI5h55H8yo9cJg==}
+ engines: {node: '>=6'}
+
+ resolution: {integrity: sha512-ouuZd4/dm2Sw5Gmqy6bGyNNNe1qt9RpmxveLSO7KcgsTnU7RXfsw+/bukWGo1abgBiMAic068rclZsO4IWmmxQ==}
+ engines: {node: '>= 12'}
+
+ resolution: {integrity: sha512-IV3Ou0jSMzZrd3pZ48nLkT9DA7Ag1pnPzaiQhpW7c3RbcqqzvzzVu+L8gfqMp/8IM2MQtSiqaCxrrcfu8I8rMA==}
+
+ resolution: {integrity: sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==}
+ engines: {node: '>=12'}
+
+ resolution: {integrity: sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==}
+ engines: {node: '>=6'}
+
+ resolution: {integrity: sha512-Oofo0pq3IKnsFtuHqSF7TqBfr71aeyZDVJ0HpmqB7FBM2qEigL0iPONSCZSO9pE9dZTAxANe5XHG9Uy0YMv8cg==}
+
+ resolution: {integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==}
+ engines: {node: '>=7.0.0'}
+
+ resolution: {integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==}
+
+ resolution: {integrity: sha512-yPVavfyCcRhmorC7rWlkHn15b4wDVgVmBA7kV4QVBsF7kv/9TKJAbAXVTxvTnwP8HHKjRCJDClKbciiYS7p0DQ==}
+ engines: {node: '>=16'}
+
+ resolution: {integrity: sha512-H+y0Jo/T1RZ9qPP4Eh1pkcQcLRglraJaSLoyOtHxu6AapkjWVCy2Sit1QQ4x3Dng8qDlSsZEet7g5Pq06MvTgw==}
+ engines: {node: '>=20'}
+
+ resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==}
+
+ resolution: {integrity: sha512-oIXISMynqSqm241k6kcQ5UwttDILMK4BiurCfGEREw6+X9jkkpEe5T9FZaApyLGGOnFuyMWZpdolTXMtvEJ08Q==}
+ engines: {node: '>=18'}
+
+ resolution: {integrity: sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==}
+ engines: {node: '>= 0.6'}
+
+ resolution: {integrity: sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==}
+
+ resolution: {integrity: sha512-D76uU73ulSXrD1UXF4KE2TMxVVwhsnCgfAyTg9k8P6KGZjlXKrOLe4dJQKI3Bxi5wjesZoFXJWElNWBjPZMbhg==}
+ engines: {node: '>=6.6.0'}
+
+ resolution: {integrity: sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w==}
+ engines: {node: '>= 0.6'}
+
+ resolution: {integrity: sha512-ei8Aos7ja0weRpFzJnEA9UHJ/7XQmqglbRwnf2ATjcB9Wq874VKH9kfjjirM6UhU2/E5fFYadylyhFldcqSidQ==}
+ engines: {node: '>=18'}
+
+ resolution: {integrity: sha512-tJtZBBHA6vjIAaF6EnIaq6laBBP9aq/Y3ouVJjEfoHbRBcHBAHYcMh/w8LDrk2PvIMMq8gmopa5D4V8RmbrxGw==}
+ engines: {node: '>= 0.10'}
+
+ resolution: {integrity: sha512-itvL5h8RETACmOTFc4UfIyB2RfEHi71Ax6E/PivVxq9NseKbOWpeyHEOIbmAw1rs8Ak0VursQNww7lf7YtUwzg==}
+ engines: {node: '>=14'}
+ peerDependencies:
+ typescript: '>=4.9.5'
+ peerDependenciesMeta:
+ typescript:
+ optional: true
+
+ resolution: {integrity: sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==}
+ engines: {node: '>= 8'}
+
+ resolution: {integrity: sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==}
+ engines: {node: '>=4'}
+ hasBin: true
+
+ resolution: {integrity: sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==}
+
+ resolution: {integrity: sha512-sdQSFB7+llfUcQHUQO3+B8ERRj0Oa4w9POWMI/puGtuf7gFywGmkaLCElnudfTiKZV+NvHqL0ifzdrI8Ro7ESA==}
+
+ resolution: {integrity: sha512-0R9ikRb668HB7QDxT1vkpuUBtqc53YyAwMwGeUFKRojY/NWKvdZ+9UYtRfGmhqNbRkTSVpMbmyhXipFFv2cb/A==}
+ engines: {node: '>= 12'}
+
+ resolution: {integrity: sha512-EmKO5V3OLXh1rtK2wgXRansaK1/mtVdTUEiEI0W8RkvgT05kfxaH29PliLnpLP73yYO6142Q72QNa8Wx/A5CqQ==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-tuhGbE6CfTM9+5ANGf+oQb72Ky/0+s3xKUpHvShfiz2RxMFgFPjsXuRLBVMtvMs15awe45SRb83D6wH4ew6wlQ==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-BS8PfmtDGnrgYdOonGZQdLZslWIeCGFP9tpan0hi1Co2Zr2NKADsvGYA8XxuG/4UWgJ6Cjtv+YJnB6MM69QGlQ==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==}
+ peerDependencies:
+ supports-color: '*'
+ peerDependenciesMeta:
+ supports-color:
+ optional: true
+
+ resolution: {integrity: sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==}
+ engines: {node: '>=6.0'}
+ peerDependencies:
+ supports-color: '*'
+ peerDependenciesMeta:
+ supports-color:
+ optional: true
+
+ resolution: {integrity: sha512-9JmrhGZpOlEgOLdQgSm0zxFaYoQon408V1v49aqTWuXENVlnCuY9JBZcXZiCsZQWDjTm5Qf/nIvAy77mXDAjEg==}
+ peerDependencies:
+ babel-plugin-macros: ^3.1.0
+ peerDependenciesMeta:
+ babel-plugin-macros:
+ optional: true
+
+ resolution: {integrity: sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==}
+
+ resolution: {integrity: sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==}
+ engines: {node: '>=0.10.0'}
+
+ resolution: {integrity: sha512-x1VCxdX4t+8wVfd1so/9w+vQ4vx7lKd2Qp5tDRutErwmR85OgmfX7RlLRMWafRMY7hbEiXIbudNrjOAPa/hL8Q==}
+ engines: {node: '>=18'}
+
+ resolution: {integrity: sha512-H9LMLr5zwIbSxrmvikGuI/5KGhZ8E2zH3stkMgM5LpOWDutGM2JZaj460Udnf1a+946zc7YBgrqEWwbk7zHvGw==}
+ engines: {node: '>=18'}
+
+ resolution: {integrity: sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-N+MeXYoqr3pOgn8xfyRPREN7gHakLYjhsHhWGT3fWAiL4IkAt0iDw14QiiEm2bE30c5XX5q0FtAA3CK5f9/BUg==}
+ engines: {node: '>=12'}
+
+ resolution: {integrity: sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==}
+ engines: {node: '>= 0.8'}
+
+ resolution: {integrity: sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==}
+ engines: {node: '>=8'}
+
+ resolution: {integrity: sha512-ypdmJU/TbBby2Dxibuv7ZLW3Bs1QEmM7nHjEANfohJLvE0XVujisn1qPJcZxg+qDucsr+bP6fLD1rPS3AhJ7EQ==}
+
+ resolution: {integrity: sha512-qejHi7bcSD4hQAZE0tNAawRK1ZtafHDmMTMkrrIGgSLl7hTnQHmKCeB45xAcbfTqK2zowkM3j3bHt/4b/ARbYQ==}
+ engines: {node: '>=0.3.1'}
+
+ resolution: {integrity: sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==}
+ engines: {node: '>=0.10.0'}
+
+ resolution: {integrity: sha512-mudtfb4zRB4bVvdj0xRo+e6duH1csJRM8IukBqfTRvHotn9+LBXB8ynAidP9zHqoRC/fsllXgk4kCKlR21fIhw==}
+ engines: {node: '>=12'}
+
+ resolution: {integrity: sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-TOOURki4G7sD1wDCjj7NfLaXZZ49dFOeEb5y39IXpb8p0hRzVvfvzZHOi5JcT+PpyAbi/Y+lxPb8eTag2WYH8w==}
+ engines: {bun: '>=1', deno: '>=2', node: '>=16'}
+
+ resolution: {integrity: sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==}
+
+ resolution: {integrity: sha512-9tfDXhJ4RKFNerfjdCcZfufu49vg620741MNs26a9+bhLThdB+plgMeou98CAaHu/WATj2iHOOHTp1hWtABj2A==}
+
+ resolution: {integrity: sha512-toUI84YS5YmxW219erniWD0CIVOo46xGKColeNQRgOzDorgBi1v4D71/OFzgD9GO2UGKIv1C3Sp8DAn0+j5w7A==}
+
+ resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==}
+
+ resolution: {integrity: sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==}
+
+ resolution: {integrity: sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==}
+ engines: {node: '>= 0.8'}
+
+ resolution: {integrity: sha512-phv3E1Xl4tQOShqSte26C7Fl84EwUdZsyOuSSk9qtAGyyQs2s3jJzComh+Abf4g187lUUAvH+H26omrqia2aGg==}
+ engines: {node: '>=10.13.0'}
+
+ resolution: {integrity: sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==}
+ engines: {node: '>=6'}
+
+ resolution: {integrity: sha512-sqQamAnR14VgCr1A618A3sGrygcpK+HEbenA/HiEAkkUwcZIIB/tgWqHFxWgOyDh4nB4JCRimh79dR5Ywc9MDQ==}
+
+ resolution: {integrity: sha512-zHXBLhP+QehSSbsS9Pt23Gg964240DPd6QCf8WpkqEXxQ7fhdZzYsocOr5u7apWonsS5EjZDmTF+/slGMyasvw==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-BrUQ0cPTB/IwXj23HtwHjS9n7O4h9FX94b4xc5zlTHxeLgTAdzYUDyy6KdExAl9lbN5rtfe44xpjpmj9grxs5w==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-d9T8ucsEhh8Bi1woXCf+TIKDIROLG5WCkxg8geBCbvk22kzwC5G2OnXVMO6FUsvQlgUUXQ2itephWDLqDzbeCw==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-w+5mJ3GuFL+NjVtJlvydShqE1eN3h3PbI7/5LAsYJP/2qtuMXjfL2LpHSRqo4b4eSF5K/DH1JXKUAHSB2UW50g==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==}
+ engines: {node: '>=6'}
+
+ resolution: {integrity: sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==}
+
+ resolution: {integrity: sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==}
+ engines: {node: '>=10'}
+
+ resolution: {integrity: sha512-vKq40io2B0XtkkNDYyleATwblNt8xuh3FWp8SpSz3pt7P01OkBFlKsJZ2mWt5WsCySlDQLckb1zMY9yE9Qy0LA==}
+ peerDependencies:
+ eslint: '>=9.0.0'
+ typescript: '>=3.3.1'
+ peerDependenciesMeta:
+ typescript:
+ optional: true
+
+ resolution: {integrity: sha512-WFj2isz22JahUv+B788TlO3N6zL3nNJGU8CcZbPZvVEkBPaJdCV4vy5wyghty5ROFbCRnm132v8BScu5/1BQ8g==}
+
+ resolution: {integrity: sha512-A1rHYb06zjMGAxdLSkN2fXPBwuSaQ0iO5M/hdyS0Ajj1VBaRp0sPD3dn1FhME3c/JluGFbwSxyCfqdSbtQLAHQ==}
+ engines: {node: ^14.18.0 || >=16.0.0}
+ peerDependencies:
+ eslint: '*'
+ eslint-plugin-import: '*'
+ eslint-plugin-import-x: '*'
+ peerDependenciesMeta:
+ eslint-plugin-import:
+ optional: true
+ eslint-plugin-import-x:
+ optional: true
+
+ resolution: {integrity: sha512-L8jSWTze7K2mTg0vos/RuLRS5soomksDPoJLXIslC7c8Wmut3bx7CPpJijDcBZtxQ5lrbUdM+s0OlNbz0DCDNw==}
+ engines: {node: '>=4'}
+ peerDependencies:
+ '@typescript-eslint/parser': '*'
+ eslint: '*'
+ eslint-import-resolver-node: '*'
+ eslint-import-resolver-typescript: '*'
+ eslint-import-resolver-webpack: '*'
+ peerDependenciesMeta:
+ '@typescript-eslint/parser':
+ optional: true
+ eslint:
+ optional: true
+ eslint-import-resolver-node:
+ optional: true
+ eslint-import-resolver-typescript:
+ optional: true
+ eslint-import-resolver-webpack:
+ optional: true
+
+ resolution: {integrity: sha512-whOE1HFo/qJDyX4SnXzP4N6zOWn79WhnCUY/iDR0mPfQZO8wcYE4JClzI2oZrhBnnMUCBCHZhO6VQyoBU95mZA==}
+ engines: {node: '>=4'}
+ peerDependencies:
+ '@typescript-eslint/parser': '*'
+ eslint: ^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8 || ^9
+ peerDependenciesMeta:
+ '@typescript-eslint/parser':
+ optional: true
+
+ resolution: {integrity: sha512-scB3nz4WmG75pV8+3eRUQOHZlNSUhFNq37xnpgRkCCELU3XMvXAxLk1eqWWyE22Ki4Q01Fnsw9BA3cJHDPgn2Q==}
+ engines: {node: '>=4.0'}
+ peerDependencies:
+ eslint: ^3 || ^4 || ^5 || ^6 || ^7 || ^8 || ^9
+
+ resolution: {integrity: sha512-O0d0m04evaNzEPoSW+59Mezf8Qt0InfgGIBJnpC0h3NH/WjUAR7BIKUfysC6todmtiZ/A0oUVS8Gce0WhBrHsA==}
+ engines: {node: '>=18'}
+ peerDependencies:
+ eslint: ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0 || ^9.0.0
+
+ resolution: {integrity: sha512-Qteup0SqU15kdocexFNAJMvCJEfa2xUKNV4CC1xsVMrIIqEy3SQ/rqyxCWNzfrd3/ldy6HMlD2e0JDVpDg2qIA==}
+ engines: {node: '>=4'}
+ peerDependencies:
+ eslint: ^3 || ^4 || ^5 || ^6 || ^7 || ^8 || ^9.7
+
+ resolution: {integrity: sha512-sNXOfKCn74rt8RICKMvJS7XKV/Xk9kA7DyJr8mJik3S7Cwgy3qlkkmyS2uQB3jiJg6VNdZd/pDBJu0nvG2NlTg==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+
+ resolution: {integrity: sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==}
+ engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
+
+ resolution: {integrity: sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+
+ resolution: {integrity: sha512-LEyamqS7W5HB3ujJyvi0HQK/dtVINZvd5mAAp9eT5S/ujByGjiZLCzPcHVzuXbpJDJF/cxwHlfceVUDZ2lnSTw==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+ hasBin: true
+ peerDependencies:
+ jiti: '*'
+ peerDependenciesMeta:
+ jiti:
+ optional: true
+
+ resolution: {integrity: sha512-j6PAQ2uUr79PZhBjP5C5fhl8e39FmRnOjsD5lGnWrFU8i2G776tBK7+nP8KuQUTTyAZUwfQqXAgrVH5MbH9CYQ==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+
+ resolution: {integrity: sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==}
+ engines: {node: '>=4'}
+ hasBin: true
+
+ resolution: {integrity: sha512-Ap6G0WQwcU/LHsvLwON1fAQX9Zp0A2Y6Y/cJBl9r/JbW90Zyg4/zbG6zzKa2OTALELarYHmKu0GhpM5EO+7T0g==}
+ engines: {node: '>=0.10'}
+
+ resolution: {integrity: sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==}
+ engines: {node: '>=4.0'}
+
+ resolution: {integrity: sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==}
+ engines: {node: '>=4.0'}
+
+ resolution: {integrity: sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==}
+ engines: {node: '>=0.10.0'}
+
+ resolution: {integrity: sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==}
+ engines: {node: '>= 0.6'}
+
+ resolution: {integrity: sha512-Vo1ab+QXPzZ4tCa8SwIHJFaSzy4R6SHf7BY79rFBDf0idraZWAkYrDjDj8uWaSm3S2TK+hJ7/t1CEmZ7jXw+pg==}
+ engines: {node: '>=18.0.0'}
+
+ resolution: {integrity: sha512-CRT1WTyuQoD771GW56XEZFQ/ZoSfWid1alKGDYMmkt2yl8UXrVR4pspqWNEcqKvVIzg6PAltWjxcSSPrboA4iA==}
+ engines: {node: '>=18.0.0'}
+
+ resolution: {integrity: sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==}
+ engines: {node: '>=10'}
+
+ resolution: {integrity: sha512-9Be3ZoN4LmYR90tUoVu2te2BsbzHfhJyfEiAVfz7N5/zv+jduIfLrV2xdQXOHbaD6KgpGdO9PRPM1Y4Q9QkPkA==}
+ engines: {node: ^18.19.0 || >=20.5.0}
+
+ resolution: {integrity: sha512-PCZEIEIxqwhzw4KF0n7QF4QqruVTcF73O5kFKUnGOyjbCCgizBBiFaYpd/fnBLUMPw/BWw9OsiN7GgrNYr7j6g==}
+ engines: {node: '>= 16'}
+ peerDependencies:
+ express: '>= 4.11'
+
+ resolution: {integrity: sha512-hIS4idWWai69NezIdRt2xFVofaF4j+6INOpJlVOLDO8zXGpUVEVzIYk12UUi2JzjEzWL3IOAxcTubgz9Po0yXw==}
+ engines: {node: '>= 18'}
+
+ resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==}
+
+ resolution: {integrity: sha512-kNFPyjhh5cKjrUltxs+wFx+ZkbRaxxmZ+X0ZU31SOsxCEtP9VPgtq2teZw1DebupL5GmDaNQ6yKMMVcM41iqDg==}
+ engines: {node: '>=8.6.0'}
+
+ resolution: {integrity: sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==}
+ engines: {node: '>=8.6.0'}
+
+ resolution: {integrity: sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==}
+
+ resolution: {integrity: sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==}
+
+ resolution: {integrity: sha512-iPeeDKJSWf4IEOasVVrknXpaBV0IApz/gp7S2bb7Z4Lljbl2MGJRqInZiUrQwV16cpzw/D3S5j5Julj/gT52AA==}
+
+ resolution: {integrity: sha512-GGToxJ/w1x32s/D2EKND7kTil4n8OVk/9mycTc4VDza13lOvpUZTGX3mFSCtV9ksdGBVzvsyAVLM6mHFThxXxw==}
+
+ resolution: {integrity: sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==}
+ engines: {node: '>=12.0.0'}
+ peerDependencies:
+ picomatch: ^3 || ^4
+ peerDependenciesMeta:
+ picomatch:
+ optional: true
+
+ resolution: {integrity: sha512-7yAQpD2UMJzLi1Dqv7qFYnPbaPx7ZfFK6PiIxQ4PfkGPyNyl2Ugx+a/umUonmKqjhM4DnfbMvdX6otXq83soQQ==}
+ engines: {node: ^12.20 || >= 14.13}
+
+ resolution: {integrity: sha512-d+l3qxjSesT4V7v2fh+QnmFnUWv9lSpjarhShNTgBOfA0ttejbQUAlHLitbjkoRiDulW0OPoQPYIGhIC8ohejg==}
+ engines: {node: '>=18'}
+
+ resolution: {integrity: sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==}
+ engines: {node: '>=16.0.0'}
+
+ resolution: {integrity: sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==}
+ engines: {node: '>=8'}
+
+ resolution: {integrity: sha512-S8KoZgRZN+a5rNwqTxlZZePjT/4cnm0ROV70LedRHZ0p8u9fRID0hJUZQpkKLzro8LfmC8sx23bY6tVNxv8pQA==}
+ engines: {node: '>= 18.0.0'}
+
+ resolution: {integrity: sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==}
+ engines: {node: '>=10'}
+
+ resolution: {integrity: sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==}
+ engines: {node: '>=16'}
+
+ resolution: {integrity: sha512-GX+ysw4PBCz0PzosHDepZGANEuFCMLrnRTiEy9McGjmkCQYwRq4A/X786G/fjM/+OjsWSU1ZrY5qyARZmO/uwg==}
+
+ resolution: {integrity: sha512-dKx12eRCVIzqCxFGplyFKJMPvLEWgmNtUrpTiJIR5u97zEhRG8ySrtboPHZXx7daLxQVrl643cTzbab2tkQjxg==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-buewHzMvYL29jdeQTVILecSaZKnt/RJWjoZCF5OW60Z67/GmSLBkOFM7qh1PI3zFNtJbaZL5eQu1vLfazOwj4g==}
+ engines: {node: '>=12.20.0'}
+
+ resolution: {integrity: sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==}
+ engines: {node: '>= 0.6'}
+
+ resolution: {integrity: sha512-v81ecyZKYO/DfpTwHivqkxSUBzvceOpoI+wLfgCgoUIKxlFKEXdg0oR9imxwXumT4SFy8vRk9xzJ5l3/Du/55Q==}
+ peerDependencies:
+ '@emotion/is-prop-valid': '*'
+ react: ^18.0.0 || ^19.0.0
+ react-dom: ^18.0.0 || ^19.0.0
+ peerDependenciesMeta:
+ '@emotion/is-prop-valid':
+ optional: true
+ react:
+ optional: true
+ react-dom:
+ optional: true
+
+ resolution: {integrity: sha512-Rx/WycZ60HOaqLKAi6cHRKKI7zxWbJ31MhntmtwMoaTeF7XFH9hhBp8vITaMidfljRQ6eYWCKkaTK+ykVJHP2A==}
+ engines: {node: '>= 0.8'}
+
+ resolution: {integrity: sha512-VWSRii4t0AFm6ixFFmLLx1t7wS1gh+ckoa84aOeapGum0h+EZd1EhEumSB+ZdDLnEPuucsVB9oB7cxJHap6Afg==}
+ engines: {node: '>=14.14'}
+
+ resolution: {integrity: sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==}
+
+ resolution: {integrity: sha512-e5iwyodOHhbMr/yNrc7fDYG4qlbIvI5gajyzPnb5TCwyhjApznQh1BMFou9b30SevY43gCJKXycoCBjMbsuW0Q==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==}
+
+ resolution: {integrity: sha512-sR9BNCjBg6LNgwvxlBd0sBABvQitkLzoVY9MYYROQVX/FvfJ4Mai9LsGhDgd8qYdds0bY77VzYd5iuB+v5rwQQ==}
+
+ resolution: {integrity: sha512-Tt4kuxLXFKHy8KT40zwsUPUkg1CrsgY25FxA2U/j/0WgEDCk3ddc/zLTCCcbSHX9FcKtLuVaDGtGE/STWC+j3Q==}
+
+ resolution: {integrity: sha512-SFdFmIJi+ybC0vjlHN0ZGVGHc3lgE0DxPAT0djjVg+kjOnSqclqmj0KQ7ykTOLP6YxoqOvuAODGdcHJn+43q3g==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==}
+ engines: {node: '>=6.9.0'}
+
+ resolution: {integrity: sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==}
+ engines: {node: 6.* || 8.* || >= 10.*}
+
+ resolution: {integrity: sha512-QZjmEOC+IT1uk6Rx0sX22V6uHWVwbdbxf1faPqJ1QhLdGgsRGCZoyaQBm/piRdJy/D2um6hM1UP7ZEeQ4EkP+Q==}
+ engines: {node: '>=18'}
+
+ resolution: {integrity: sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-FJhYRoDaiatfEkUK8HKlicmu/3SGFD51q3itKDGoSTysQJBnfOcxU5GxnhE1E6soB76MbT0MBtnKJuXyAx+96Q==}
+ engines: {node: '>=6'}
+
+ resolution: {integrity: sha512-PKsK2FSrQCyxcGHsGrLDcK0lx+0Ke+6e8KFFozA9/fIQLhQzPaRvJFdcz7+Axg3jUH/Mq+NI4xa5u/UT2tQskA==}
+ engines: {node: '>=14.16'}
+
+ resolution: {integrity: sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==}
+ engines: {node: '>=10'}
+
+ resolution: {integrity: sha512-kVCxPF3vQM/N0B1PmoqVUqgHP+EeVjmZSQn+1oCRPxd2P21P2F19lIgbR3HBosbB1PUhOAoctJnfEn2GbN2eZA==}
+ engines: {node: '>=18'}
+
+ resolution: {integrity: sha512-w9UMqWwJxHNOvoNzSJ2oPF5wvYcvP7jUvYzhp67yEhTi17ZDBBC1z9pTdGuzjD+EFIqLSYRweZjqfiPzQ06Ebg==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-shZT/QMiSHc/YBLxxOkMtgSid5HFoauqCE3/exfsEcwg1WkeqjG+V40yBbBrsD+jW2HDXcs28xOfcbm2jI8Ddw==}
+
+ resolution: {integrity: sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==}
+ engines: {node: '>= 6'}
+
+ resolution: {integrity: sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==}
+ engines: {node: '>=10.13.0'}
+
+ resolution: {integrity: sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==}
+ engines: {node: '>=18'}
+
+ resolution: {integrity: sha512-ob/2LcVVaVGCYN+r14cnwnoDPUufjiYgSqRhiFD0Q1iI4Odora5RE8Iv1D24hAz5oMophRGkGz+yuvQmmUMnMw==}
+ engines: {node: '>=18'}
+
+ resolution: {integrity: sha512-DpLKbNU4WylpxJykQujfCcwYWiV/Jhm50Goo0wrVILAv5jOr9d+H+UR3PhSCD2rCCEIg0uc+G+muBTwD54JhDQ==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==}
+
+ resolution: {integrity: sha512-DKKrynuQRne0PNpEbzuEdHlYOMksHSUI8Zc9Unei5gTsMNA2/vMpoMz/yKba50pejK56qj98qM0SjYxAKi13gQ==}
+ engines: {node: ^12.22.0 || ^14.16.0 || ^16.0.0 || >=17.0.0}
+
+ resolution: {integrity: sha512-R3pbpkcIqv2Pm3dUwgjclDRVmWpTJW2DcMzcIhEXEx1oh/CEMObMm3KLmRJOdvhM7o4uQBnwr8pzRK2sJWIqfg==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==}
+ engines: {node: '>=8'}
+
+ resolution: {integrity: sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==}
+
+ resolution: {integrity: sha512-KIL7eQPfHQRC8+XluaIw7BHUwwqL19bQn4hzNgdr+1wXoU0KKj6rufu47lhY7KbJR2C6T6+PfyN0Ea7wkSS+qQ==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-IScLbePpkvO846sIwOtOTDjutRMWdXdJmXdMvk6gCBHxFO8d+QKOQedyZSxFTTFYRSmlgSTDtXqqq4pcenBXLQ==}
+
+ resolution: {integrity: sha512-0wUoCcLp+5Ev5pDW2OriHC2MJCbwLwuRx+gAqMTOkGKJJiBCLjtrvy4PWUGn6MIVefecRpzoOZ/UV6iGdOr+Cw==}
+
+ resolution: {integrity: sha512-6pEjquH3rqaI6cYAXYPcz9MS4rY6R4ngRgrgfDshRptUZIc3lw0MCIJIGDj9++mfySOuPTHB4nrSW99BCvOPIA==}
+
+ resolution: {integrity: sha512-Eaw2YTGM6WOxA6CXbckaEvslr2Ne4NFsKrvc0v97JD5awbmeBLO5w9Ho9L9kmKonrwF9RJlW6BxT1PVv/agBHQ==}
+ engines: {node: '>=16.9.0'}
+
+ resolution: {integrity: sha512-4FbRdAX+bSdmo4AUFuS0WNiPz8NgFt+r8ThgNWmlrjQjt1Q7ZR9+zTlce2859x4KSXrwIsaeTqDoKQmtP8pLmQ==}
+ engines: {node: '>= 0.8'}
+
+ resolution: {integrity: sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==}
+ engines: {node: '>= 14'}
+
+ resolution: {integrity: sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==}
+ engines: {node: '>=10.17.0'}
+
+ resolution: {integrity: sha512-eKCa6bwnJhvxj14kZk5NCPc6Hb6BdsU9DZcOnmQKSnO1VKrfV0zCvtttPZUsBvjmNDn8rpcJfpwSYnHBjc95MQ==}
+ engines: {node: '>=18.18.0'}
+
+ resolution: {integrity: sha512-im9DjEDQ55s9fL4EYzOAv0yMqmMBSZp6G0VvFyTMPKWxiSBHUj9NW/qqLmXUwXrrM7AvqSlTCfvqRb0cM8yYqw==}
+ engines: {node: '>=0.10.0'}
+
+ resolution: {integrity: sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==}
+ engines: {node: '>= 4'}
+
+ resolution: {integrity: sha512-Hs59xBNfUIunMFgWAbGX5cq6893IbWg4KnrjbYwX3tx0ztorVgTDA6B2sxf8ejHJ4wz8BqGUMYlnzNBer5NvGg==}
+ engines: {node: '>= 4'}
+
+ resolution: {integrity: sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==}
+ engines: {node: '>=6'}
+
+ resolution: {integrity: sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==}
+ engines: {node: '>=0.8.19'}
+
+ resolution: {integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==}
+
+ resolution: {integrity: sha512-4gd7VpWNQNB4UKKCFFVcp1AVv+FMOgs9NKzjHKusc8jTMhd5eL1NqQqOpE0KzMds804/yHlglp3uxgluOqAPLw==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-NWv9YLW4PoW2B7xtzaS3NCot75m6nK7Icdv0o3lfMceJVRfSoQwqD4wEH5rLwoKJwUiZ/rfpiVBhnaF0FK4HoA==}
+ engines: {node: '>= 12'}
+
+ resolution: {integrity: sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==}
+ engines: {node: '>= 0.10'}
+
+ resolution: {integrity: sha512-DDfANUiiG2wC1qawP66qlTugJeL5HyzMpfr8lLK+jMQirGzNod0B12cFB/9q838Ru27sBwfw78/rdoU7RERz6A==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==}
+
+ resolution: {integrity: sha512-9dgM/cZBnNvjzaMYHVoxxfPj2QXt22Ev7SuuPrs+xav0ukGB0S6d4ydZdEiM48kLx5kDV+QBPrpVnFyefL8kkQ==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-n4ZT37wG78iz03xPRKJrHTdZbe3IicyucEtdRsV5yglwc3GyUfbAfpSeD0FJ41NbUNSt5wbhqfp1fS+BgnvDFQ==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-wa56o2/ElJMYqjCjGkXri7it5FbebW5usLw/nPmCMs5DeZ7eziSYZhSmPRn0txqeW4LnAmQQU7FgqLpsEFKM4A==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-gNCGbnnnnFAUGKeZ9PdbyeGYJqewpmc2aKHUEMO5nQPWU9lOmv7jcmQIv+qHD8fXW6W7qfuCwX4rY9LNRjXrkQ==}
+
+ resolution: {integrity: sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-RKtWF8pGmS87i2D6gqQu/l7EYRlVdfzemCJN/P3UOs//x1QE7mfhvzHIApBTRf7axvT6DMGwSwBXYCT0nfB9xw==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-PwwhEakHVKTdRNVOw+/Gyh0+MzlCl4R6qKvkhuvLtPMggI1WAHt9sOwZxQLSGpUaDnrdyDsomoRgNnCfKNSXXg==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-eljcgEDlEns/7AXFosB5K/2nCM4P7FQPkGc/DWLy5rmFEWvZayGrik1d9/QIY5nJ4f9YsVvBkA6kJpHn9rISdQ==}
+ engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}
+ hasBin: true
+
+ resolution: {integrity: sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==}
+ engines: {node: '>=0.10.0'}
+
+ resolution: {integrity: sha512-1pC6N8qWJbWoPtEjgcL2xyhQOP491EQjeUo3qTKcmV8YSDDJrOepfG8pcC7h/QgnQHYSv0mJ3Z/ZWxmatVrysg==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==}
+ engines: {node: '>=8'}
+
+ resolution: {integrity: sha512-upqt1SkGkODW9tsGNG5mtXTXtECizwtS2kA161M+gJPc1xdb/Ax629af6YrTwcOeQHbewrPNlE5Dx7kzvXTizA==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==}
+ engines: {node: '>=0.10.0'}
+
+ resolution: {integrity: sha512-jYa6Q9rH90kR1vKB6NM7qqd1mge3Fx4Dhw5TVlK1MUBqhEOuCagrEHMevNuCcbECmXZ0ThXkRm+Ymr51HwEPAw==}
+ engines: {node: '>=20'}
+
+ resolution: {integrity: sha512-KIYLCCJghfHZxqjYBE7rEy0OBuTd5xCHS7tHVgvCLkx7StIoaxwNW3hCALgEUjFfeRk+MG/Qxmp/vtETEF3tRA==}
+ engines: {node: '>=14.16'}
+ hasBin: true
+
+ resolution: {integrity: sha512-qP1vozQRI+BMOPcjFzrjXuQvdak2pHNUMZoeG2eRbiSqyvbEf/wQtEOTOX1guk6E3t36RkaqiSt8A/6YElNxLQ==}
+ engines: {node: '>=12'}
+
+ resolution: {integrity: sha512-1Qed0/Hr2m+YqxnM09CjA2d/i6YZNfF6R2oRAOj36eUdS6qIV/huPJNSEpKbupewFs+ZsJlxsjjPbc0/afW6Lw==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-5KoIu2Ngpyek75jXodFvnafB6DJgr3u8uuK0LEZJjrU19DrMD3EVERaR8sjz8CCGgpZvxPl9SuE1GMVPFHx1mw==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-Vg4o6/fqPxIjtxgUH5QLJhwZ7gW5diGCVlXpuUfELC62CuxM1iHcRe51f2W1FDy04Ai4KJkagKjx3XaqyfRKXw==}
+
+ resolution: {integrity: sha512-lZhclumE1G6VYD8VHe35wFaIif+CTy5SJIi5+3y4psDgWu4wPDoBhF8NxUOinEc7pHgiTsT6MaBb92rKhhD+Xw==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==}
+ engines: {node: '>=0.12.0'}
+
+ resolution: {integrity: sha512-IlsXEHOjtKhpN8r/tRFj2nDyTmHvcfNeu/nrRIcXE17ROeatXchkojffa1SpdqW4cr/Fj6QkEf/Gn4zf6KKvEQ==}
+ engines: {node: '>=12'}
+
+ resolution: {integrity: sha512-+Pgi+vMuUNkJyExiMBt5IlFoMyKnr5zhJ4Uspz58WOhBF5QoIZkFyNHIbBAtHwzVAgk5RtndVNsDRN61/mmDqg==}
+ engines: {node: '>=12'}
+
+ resolution: {integrity: sha512-hvpoI6korhJMnej285dSg6nu1+e6uxs7zG3BYAm5byqDsgJNWwxzM6z6iZiAgQR4TJ30JmBTOwqZUw3WlyH3AQ==}
+
+ resolution: {integrity: sha512-MjYsKHO5O7mCsmRGxWcLWheFqN9DJ/2TmngvjKXihe6efViPqc274+Fx/4fYj/r03+ESvBdTXK0V6tA3rgez1g==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-rbku49cWloU5bSMI+zaRaXdQHXnthP6DZ/vLnfdSKyL4zUzuWnomtOEiZZOd+ioQ+avFo/qau3KPTc7Fjy1uPA==}
+ engines: {node: '>=12'}
+
+ resolution: {integrity: sha512-iPAjerrse27/ygGLxw+EBR9agv9Y6uLeYVJMu+QNCoouJ1/1ri0mGrcWpfCqFZuzzx3WjtwxG098X+n4OuRkPg==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-ISWac8drv4ZGfwKl5slpHG9OwPNty4jOWPRIhBpxOoD+hqITiwuipOQ2bNthAzwA3B4fIjO4Nln74N0S9byq8A==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==}
+ engines: {node: '>=8'}
+
+ resolution: {integrity: sha512-Dnz92NInDqYckGEUJv689RbRiTSEHCQ7wOVeALbkOz999YpqT46yMRIGtSNl2iCL1waAZSx40+h59NV/EwzV/A==}
+ engines: {node: '>=18'}
+
+ resolution: {integrity: sha512-BtEeSsoaQjlSPBemMQIrY1MY0uM6vnS1g5fmufYOtnxLGUZM2178PKbhsk7Ffv58IX+ZtcvoGwccYsh0PglkAA==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-9gGx6GTtCQM73BgmHQXfDmLtfjjTUDSyoxTCbp5WtoixAhfgsDirWIcVQ/IHpvI5Vgd5i/J5F7B9cN/WlVbC/w==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-p3EcsicXjit7SaskXHs1hA91QxgTw46Fv6EFKKGS5DRFLD8yKnohjF3hxoju94b/OcMZoQukzpPpBE9uLVKzgQ==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-43r2mRvz+8JRIKnWJ+3j8JtjRKZ6GmjzfaE/qiBJnikNnYv/6bagRJ1kUhNk8R5EX/GkobD+r+sfxCPJsiKBLQ==}
+ engines: {node: '>=12'}
+
+ resolution: {integrity: sha512-mE00Gnza5EEB3Ds0HfMyllZzbBrmLOX3vfWoj9A9PEnTfratQ/BcaJOuMhnkhjXvb2+FkY3VuHqtAGpTPmglFQ==}
+ engines: {node: '>=18'}
+
+ resolution: {integrity: sha512-K5pXYOm9wqY1RgjpL3YTkF39tni1XajUIkawTLUo9EZEVUFga5gSQJF8nNS7ZwJQ02y+1YCNYcMh+HIf1ZqE+w==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-6i9mGWSlqzNMEqpCp93KwRS1uUOodk2OJ6b+sq7ZPDSy2WuI5NFIxp/254TytR8ftefexkWn5xNiHUNpPOfSew==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-mfcwb6IzQyOKTs84CQMrOwW4gQcaTOAWJ0zzJCl2WSPDrWk/OzDaImWFH3djXhb24g4eudZfLRozAvPGw4d9hQ==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-UcVfVfaK4Sc4m7X3dUSoHoozQGBEFeDC+zVo06t98xe8CzHSZZBekNXH+tu0NalHolcJ/QAGqS46Hef7QXBIMw==}
+ engines: {node: '>=16'}
+
+ resolution: {integrity: sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==}
+
+ resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==}
+
+ resolution: {integrity: sha512-6B3tLtFqtQS4ekarvLVMZ+X+VlvQekbe4taUkf/rhVO3d/h0M2rfARm/pXLcPEsjjMsFgrFgSrhQIxcSVrBz8w==}
+ engines: {node: '>=18'}
+
+ resolution: {integrity: sha512-H0dkQoCa3b2VEeKQBOxFph+JAbcrQdE7KC0UkqwpLmv2EC4P41QXP+rqo9wYodACiG5/WM5s9oDApTU8utwj9g==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-ekilCSN1jwRvIbgeg/57YFh8qQDNbwDb9xT/qu2DAHbFFZUicIl4ygVaAvzveMhMVr3LnpSKTNnwt8PoOfmKhQ==}
+ hasBin: true
+
+ resolution: {integrity: sha512-0TpaTfihd4QMNwrz/ob2Bp7X04yuxJkjRGi4aKmOqwhov54i6u79oCv7T+C7lo70MKH6BesI3vscD1yb/yzKXQ==}
+
+ resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==}
+
+ resolution: {integrity: sha512-qQKT4zQxXl8lLwBtHMWwaTcGfFOZviOJet3Oy/xmGk2gZH677CJM9EvtfdSkgWcATZhj/55JZ0rmy3myCT5lsA==}
+ hasBin: true
+
+ resolution: {integrity: sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==}
+ engines: {node: '>=6'}
+ hasBin: true
+
+ resolution: {integrity: sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==}
+
+ resolution: {integrity: sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==}
+
+ resolution: {integrity: sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==}
+
+ resolution: {integrity: sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==}
+
+ resolution: {integrity: sha512-fQhoXdcvc3V28x7C7BMs4P5+kNlgUURe2jmUT1T//oBRMDrqy1QPelJimwZGo7Hg9VPV3EQV5Bnq4hbFy2vetA==}
+
+ resolution: {integrity: sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==}
+
+ resolution: {integrity: sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==}
+ hasBin: true
+
+ resolution: {integrity: sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==}
+ engines: {node: '>=6'}
+ hasBin: true
+
+ resolution: {integrity: sha512-FGuPw30AdOIUTRMC2OMRtQV+jkVj2cfPqSeWXv1NEAJ1qZ5zb1X6z1mFhbfOB/iy3ssJCD+3KuZ8r8C3uVFlAg==}
+
+ resolution: {integrity: sha512-ZZow9HBI5O6EPgSJLUb8n2NKgmVWTwCvHGwFuJlMjvLFqlGG6pjirPhtdsseaLZjSibD8eegzmYpUZwoIlj2cQ==}
+ engines: {node: '>=4.0'}
+
+ resolution: {integrity: sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==}
+
+ resolution: {integrity: sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==}
+ engines: {node: '>=6'}
+
+ resolution: {integrity: sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ==}
+ engines: {node: '>=6'}
+
+ resolution: {integrity: sha512-0K65Lea881pHotoGEa5gDlMxt3pctLi2RplBb7Ezh4rRdLEOtgi7n4EwK9lamnUCkKBqaeKRVebTq6BAxSkpXQ==}
+
+ resolution: {integrity: sha512-MbjN408fEndfiQXbFQ1vnd+1NoLDsnQW41410oQBXiyXDMYH5z505juWa4KUE1LqxRC7DgOgZDbKLxHIwm27hA==}
+ engines: {node: '>=0.10'}
+
+ resolution: {integrity: sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==}
+ engines: {node: '>= 0.8.0'}
+
+ resolution: {integrity: sha512-BH9sEdOCahSgmkVhBLeU7Hc9DWeZ1Eb6wNS6Da8igvUwAe0sqROHddIlvU06q3WyXVEOYDZ6ykBZQnjTbmo4+A==}
+ engines: {node: '>= 12.0.0'}
+ cpu: [arm64]
+ os: [android]
+
+ resolution: {integrity: sha512-ylTcDJBN3Hp21TdhRT5zBOIi73P6/W0qwvlFEk22fkdXchtNTOU4Qc37SkzV+EKYxLouZ6M4LG9NfZ1qkhhBWA==}
+ engines: {node: '>= 12.0.0'}
+ cpu: [arm64]
+ os: [darwin]
+
+ resolution: {integrity: sha512-oBZgKchomuDYxr7ilwLcyms6BCyLn0z8J0+ZZmfpjwg9fRVZIR5/GMXd7r9RH94iDhld3UmSjBM6nXWM2TfZTQ==}
+ engines: {node: '>= 12.0.0'}
+ cpu: [x64]
+ os: [darwin]
+
+ resolution: {integrity: sha512-c2bH6xTrf4BDpK8MoGG4Bd6zAMZDAXS569UxCAGcA7IKbHNMlhGQ89eRmvpIUGfKWNVdbhSbkQaWhEoMGmGslA==}
+ engines: {node: '>= 12.0.0'}
+ cpu: [x64]
+ os: [freebsd]
+
+ resolution: {integrity: sha512-eVdpxh4wYcm0PofJIZVuYuLiqBIakQ9uFZmipf6LF/HRj5Bgm0eb3qL/mr1smyXIS1twwOxNWndd8z0E374hiA==}
+ engines: {node: '>= 12.0.0'}
+ cpu: [arm]
+ os: [linux]
+
+ resolution: {integrity: sha512-UK65WJAbwIJbiBFXpxrbTNArtfuznvxAJw4Q2ZGlU8kPeDIWEX1dg3rn2veBVUylA2Ezg89ktszWbaQnxD/e3A==}
+ engines: {node: '>= 12.0.0'}
+ cpu: [arm64]
+ os: [linux]
+ libc: [glibc]
+
+ resolution: {integrity: sha512-5Vh9dGeblpTxWHpOx8iauV02popZDsCYMPIgiuw97OJ5uaDsL86cnqSFs5LZkG3ghHoX5isLgWzMs+eD1YzrnA==}
+ engines: {node: '>= 12.0.0'}
+ cpu: [arm64]
+ os: [linux]
+ libc: [musl]
+
+ resolution: {integrity: sha512-Cfd46gdmj1vQ+lR6VRTTadNHu6ALuw2pKR9lYq4FnhvgBc4zWY1EtZcAc6EffShbb1MFrIPfLDXD6Xprbnni4w==}
+ engines: {node: '>= 12.0.0'}
+ cpu: [x64]
+ os: [linux]
+ libc: [glibc]
+
+ resolution: {integrity: sha512-XJaLUUFXb6/QG2lGIW6aIk6jKdtjtcffUT0NKvIqhSBY3hh9Ch+1LCeH80dR9q9LBjG3ewbDjnumefsLsP6aiA==}
+ engines: {node: '>= 12.0.0'}
+ cpu: [x64]
+ os: [linux]
+ libc: [musl]
+
+ resolution: {integrity: sha512-FZn+vaj7zLv//D/192WFFVA0RgHawIcHqLX9xuWiQt7P0PtdFEVaxgF9rjM/IRYHQXNnk61/H/gb2Ei+kUQ4xQ==}
+ engines: {node: '>= 12.0.0'}
+ cpu: [arm64]
+ os: [win32]
+
+ resolution: {integrity: sha512-5g1yc73p+iAkid5phb4oVFMB45417DkRevRbt/El/gKXJk4jid+vPFF/AXbxn05Aky8PapwzZrdJShv5C0avjw==}
+ engines: {node: '>= 12.0.0'}
+ cpu: [x64]
+ os: [win32]
+
+ resolution: {integrity: sha512-utfs7Pr5uJyyvDETitgsaqSyjCb2qNRAtuqUeWIAKztsOYdcACf2KtARYXg2pSvhkt+9NfoaNY7fxjl6nuMjIQ==}
+ engines: {node: '>= 12.0.0'}
+
+ resolution: {integrity: sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==}
+
+ resolution: {integrity: sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==}
+ engines: {node: '>=10'}
+
+ resolution: {integrity: sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==}
+
+ resolution: {integrity: sha512-i24m8rpwhmPIS4zscNzK6MSEhk0DUWa/8iYQWxhffV8jkI4Phvs3F+quL5xvS0gdQR0FyTCMMH33Y78dDTzzIw==}
+ engines: {node: '>=18'}
+
+ resolution: {integrity: sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==}
+ hasBin: true
+
+ resolution: {integrity: sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==}
+
+ resolution: {integrity: sha512-8dXPB2GI4dI8jV4MgUDGBeLdGk8ekfqVZ0BdLcrRzocGgG75ltNEmWS+gE7uokKF/0oSUuczNDT+g9hFJ23FkA==}
+ peerDependencies:
+ react: ^16.5.1 || ^17.0.0 || ^18.0.0 || ^19.0.0
+
+ resolution: {integrity: sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==}
+
+ resolution: {integrity: sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-aisnrDP4GNe06UcKFnV5bfMNPBUw4jsLGaWwWfnH3v02GnBuXX2MCVn5RbrWo0j3pczUilYblq7fQ7Nw2t5XKw==}
+ engines: {node: '>= 0.8'}
+
+ resolution: {integrity: sha512-f1B95A60YoCsZQO/JQYxPDorybEz2Sjasf4RrpwGSMmJW6JVyhI/iJDri9LF6kk5WwUovF8oiTvRNM6xGjWo5w==}
+
+ resolution: {integrity: sha512-Snk314V5ayFLhp3fkUREub6WtjBfPdCPY1Ln8/8munuLuiYhsABgBVWsozAG+MWMbVEvcdcpbi9R7ww22l9Q3g==}
+ engines: {node: '>=18'}
+
+ resolution: {integrity: sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==}
+
+ resolution: {integrity: sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==}
+ engines: {node: '>= 8'}
+
+ resolution: {integrity: sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==}
+ engines: {node: '>=8.6'}
+
+ resolution: {integrity: sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ==}
+ engines: {node: '>= 0.6'}
+
+ resolution: {integrity: sha512-Lbgzdk0h4juoQ9fCKXW4by0UJqj+nOOrI9MJ1sSj4nI8aI2eo1qmvQEie4VD1glsS250n15LsWsYtCugiStS5A==}
+ engines: {node: '>=18'}
+
+ resolution: {integrity: sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==}
+ engines: {node: '>=6'}
+
+ resolution: {integrity: sha512-VP79XUPxV2CigYP3jWwAUFSku2aKqBH7uTAapFWCBqutsbmDo96KY5o8uh6U+/YSIn5OxJnXp73beVkpqMIGhA==}
+ engines: {node: '>=18'}
+
+ resolution: {integrity: sha512-fu656aJ0n2kcXwsnwnv9g24tkU5uSmOlTjd6WyyaKm2Z+h1qmY6bAjrcaIxF/BslFqbZ8UBtbJi7KgQOZD2PTw==}
+ engines: {node: 20 || >=22}
+
+ resolution: {integrity: sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==}
+
+ resolution: {integrity: sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==}
+ engines: {node: '>=16 || 14 >=14.17'}
+
+ resolution: {integrity: sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==}
+
+ resolution: {integrity: sha512-sYgFe+pR9aIM7o4fhs2aXtOI+oqlUd33N9Yoxcgo1Fv7M20sRkHtCmzE/VRNIcq7uNJ+qio+Xubt1FXH3pQ+eQ==}
+
+ resolution: {integrity: sha512-G3kc34H2cX2gI63RqU+cZq+zWRRPSsNIOjpdl9TN4AQwC4sgwYPl/Q/Obf/d53nOm569T0fYK+tcoSV50BWx8A==}
+
+ resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==}
+
+ resolution: {integrity: sha512-G3VUymSE0/iegFnuipujpwyTM2GuZAKXNeerUSrG2+Eg391wW63xFs5ixWsK9MWzr1AGoSkYGmyAzNgbR3+urw==}
+ engines: {node: '>=18'}
+ hasBin: true
+ peerDependencies:
+ typescript: '>= 4.8.x'
+ peerDependenciesMeta:
+ typescript:
+ optional: true
+
+ resolution: {integrity: sha512-WWdIxpyjEn+FhQJQQv9aQAYlHoNVdzIzUySNV1gHUPDSdZJ3yZn7pAAbQcV7B56Mvu881q9FZV+0Vx2xC44VWA==}
+ engines: {node: ^18.17.0 || >=20.5.0}
+
+ resolution: {integrity: sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==}
+ engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1}
+ hasBin: true
+
+ resolution: {integrity: sha512-PHI5f1O0EP5xJ9gQmFGMS6IZcrVvTjpXjz7Na41gTE7eE2hK11lg04CECCYEEjdc17EV4DO+fkGEtt7TpTaTiQ==}
+ engines: {node: ^12.20.0 || ^14.18.0 || >=16.0.0}
+ hasBin: true
+
+ resolution: {integrity: sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==}
+
+ resolution: {integrity: sha512-8Ofs/AUQh8MaEcrlq5xOX0CQ9ypTF5dl78mjlMNfOK08fzpgTHQRQPBxcPlEtIw0yRpws+Zo/3r+5WRby7u3Gg==}
+ engines: {node: '>= 0.6'}
+
+ resolution: {integrity: sha512-hkyRkcu5x/41KoqnROkfTm2pZVbKxvbZRuNvKXLRXxs3VfyO0WhY50TQS40EuKO9SW3rBj/sF3WbVwDACeMZyw==}
+ engines: {node: '>=20.9.0'}
+ hasBin: true
+ peerDependencies:
+ '@opentelemetry/api': ^1.1.0
+ '@playwright/test': ^1.51.1
+ babel-plugin-react-compiler: '*'
+ react: ^18.2.0 || 19.0.0-rc-de68d2f4-20241204 || ^19.0.0
+ react-dom: ^18.2.0 || 19.0.0-rc-de68d2f4-20241204 || ^19.0.0
+ sass: ^1.3.0
+ peerDependenciesMeta:
+ '@opentelemetry/api':
+ optional: true
+ '@playwright/test':
+ optional: true
+ babel-plugin-react-compiler:
+ optional: true
+ sass:
+ optional: true
+
+ resolution: {integrity: sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ==}
+ engines: {node: '>=10.5.0'}
+ deprecated: Use your platform's native DOMException instead
+
+ resolution: {integrity: sha512-dRB78srN/l6gqWulah9SrxeYnxeddIG30+GOqK/9OlLVyLg3HPnr6SqOWTWOXKRwC2eGYCkZ59NNuSgvSrpgOA==}
+ engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}
+
+ resolution: {integrity: sha512-nmh3lCkYZ3grZvqcCH+fjmQ7X+H0OeZgP40OierEaAptX4XofMh5kwNbWh7lBduUzCcV/8kZ+NDLCwm2iorIlA==}
+
+ resolution: {integrity: sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==}
+ engines: {node: '>=8'}
+
+ resolution: {integrity: sha512-9qny7Z9DsQU8Ou39ERsPU4OZQlSTP47ShQzuKZ6PRXpYLtIFgl/DEBYEXKlvcEa+9tHVcK8CF81Y2V72qaZhWA==}
+ engines: {node: '>=18'}
+
+ resolution: {integrity: sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==}
+ engines: {node: '>=0.10.0'}
+
+ resolution: {integrity: sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-EFVjAYfzWqWsBMRHPMAXLCDIJnpMhdWAqR7xG6M6a2cs6PMFpl/+Z20w9zDW4vkxOFfddegBKq9Rehd0bxWE7A==}
+ engines: {node: '>= 10'}
+
+ resolution: {integrity: sha512-nK28WOo+QIjBkDduTINE4JkF/UJJKyf2EJxvJKfblDpyg0Q+pkOHNTL0Qwy6NP6FhE/EnzV73BxxqcJaXY9anw==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-8u/hfXFRBD1O0hPUjioLhoWFHRmt6tKA4/vZPyckBr18l1KE9uHrFaFaUi8MDRTpi4uak2goyPTSNJLXX2k2Hw==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-k6E21FzySsSK5a21KRADBd/NGneRegFO5pLHfdQLpRDETUNJueLXs3WCzyQ3tFRDYgbq3KHGXfTbi2bs8WQ6rQ==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-+Lhy3TQTuzXI5hevh8sBGqbmurHbbIjAi0Z4S63nthVLmLxfbj4T54a4CfZrXIrt9iP4mVAPYMo/v99taj3wjQ==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-gXah6aZrcUxjWg2zR2MwouP2eHlCBzdV4pygudehaKXSGW4v2AsRQUK+lwwXhii6KFZcunEnmSUoYp5CXibxtA==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==}
+ engines: {node: '>= 0.8'}
+
+ resolution: {integrity: sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==}
+
+ resolution: {integrity: sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==}
+ engines: {node: '>=6'}
+
+ resolution: {integrity: sha512-VXJjc87FScF88uafS3JllDgvAm+c/Slfz06lorj2uAY34rlUu0Nt+v8wreiImcrgAjjIHp1rXpTDlLOGw29WwQ==}
+ engines: {node: '>=18'}
+
+ resolution: {integrity: sha512-smsWv2LzFjP03xmvFoJ331ss6h+jixfA4UUV/Bsiyuu4YJPfN+FIQGOIiv4w9/+MoHkfkJ22UIaQWRVFRfH6Vw==}
+ engines: {node: '>=20'}
+
+ resolution: {integrity: sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==}
+ engines: {node: '>= 0.8.0'}
+
+ resolution: {integrity: sha512-weP+BZ8MVNnlCm8c0Qdc1WSWq4Qn7I+9CJGm7Qali6g44e/PUzbjNqJX5NJ9ljlNMosfJvg1fKEGILklK9cwnw==}
+ engines: {node: '>=18'}
+
+ resolution: {integrity: sha512-+Sl2UErvtsoajRDKCE5/dBz4DIvHXQQnAxtQTF04OJxY0+DyZXSo5P5Bb7XYWOh81syohlYL24hbDwxedPUJCA==}
+
+ resolution: {integrity: sha512-qFOyK5PjiWZd+QQIh+1jhdb9LpxTF0qs7Pm8o5QHYZ0M3vKqSqzsZaEB6oWlxZ+q2sJBMI/Ktgd2N5ZwQoRHfg==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==}
+ engines: {node: '>=10'}
+
+ resolution: {integrity: sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==}
+ engines: {node: '>=10'}
+
+ resolution: {integrity: sha512-61A5ThoTiDG/C8s8UMZwSorAGwMJ0ERVGj2OjoW5pAalsNOg15+iQiPzrLJ4jhZ1HJzmC2PIHT2oEiH3R5fzNA==}
+
+ resolution: {integrity: sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==}
+ engines: {node: '>=6'}
+
+ resolution: {integrity: sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==}
+ engines: {node: '>=8'}
+
+ resolution: {integrity: sha512-TXfryirbmq34y8QBwgqCVLi+8oA3oWx2eAnSn62ITyEhEYaWRlVZ2DvMM9eZbMs/RfxPu/PK/aBLyGj4IrqMHw==}
+ engines: {node: '>=18'}
+
+ resolution: {integrity: sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==}
+ engines: {node: '>= 0.8'}
+
+ resolution: {integrity: sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g==}
+
+ resolution: {integrity: sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==}
+ engines: {node: '>=8'}
+
+ resolution: {integrity: sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==}
+ engines: {node: '>=8'}
+
+ resolution: {integrity: sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ==}
+ engines: {node: '>=12'}
+
+ resolution: {integrity: sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==}
+
+ resolution: {integrity: sha512-Yhpw4T9C6hPpgPeA28us07OJeqZ5EzQTkbfwuhsUg0c237RomFoETJgmp2sa3F/41gfLE6G5cqcYwznmeEeOlQ==}
+
+ resolution: {integrity: sha512-7jdwVIRtsP8MYpdXSwOS0YdD0Du+qOoF/AEPIt88PcCFrZCzx41oxku1jD88hZBwbNUIEfpqvuhjFaMAqMTWnA==}
+
+ resolution: {integrity: sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==}
+
+ resolution: {integrity: sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==}
+ engines: {node: '>=8.6'}
+
+ resolution: {integrity: sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==}
+ engines: {node: '>=12'}
+
+ resolution: {integrity: sha512-wQ0b/W4Fr01qtpHlqSqspcj3EhBvimsdh0KlHhH8HRZnMsEa0ea2fTULOXOS9ccQr3om+GcGRk4e+isrZWV8qQ==}
+ engines: {node: '>=16.20.0'}
+
+ resolution: {integrity: sha512-/+5VFTchJDoVj3bhoqi6UeymcD00DAwb1nJwamzPvHEszJ4FpF6SNNbUbOS8yI56qHzdV8eK0qEfOSiodkTdxg==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-orRsuYpJVw8LdAwqqLykBj9ecS5/cRHlI5+nvTo8LcCKmzDmqVORXtOIYEEQuL9D4BxtA1lm5isAqzQZCoQ6Eg==}
+ engines: {node: '>=4'}
+
+ resolution: {integrity: sha512-PS08Iboia9mts/2ygV3eLpY5ghnUcfLV/EXTOW1E2qYxJKGGBUtNjN76FYHnMs36RmARn41bC0AZmn+rR0OVpQ==}
+ engines: {node: ^10 || ^12 || >=14}
+
+ resolution: {integrity: sha512-3Ybi1tAuwAP9s0r1UQ2J4n5Y0G05bJkpUIO0/bI9MhwmD70S5aTWbXGBwxHrelT+XM1k6dM0pk+SwNkpTRN7Pg==}
+ engines: {node: ^10 || ^12 || >=14}
+
+ resolution: {integrity: sha512-dM0jVuXJPsDN6DvRpea484tCUaMiXWjuCn++HGTqUWzGDjv5tZkEZldAJ/UMlqRYGFrD/etByo4/xOuC/snX2A==}
+ engines: {node: '>=20'}
+
+ resolution: {integrity: sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==}
+ engines: {node: '>= 0.8.0'}
+
+ resolution: {integrity: sha512-gjVS5hOP+M3wMm5nmNOucbIrqudzs9v/57bWRHQWLYklXqoXKrVfYW2W9+glfGsqtPgpiz5WwyEEB+ksXIx3gQ==}
+ engines: {node: '>=18'}
+
+ resolution: {integrity: sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==}
+ engines: {node: '>= 6'}
+
+ resolution: {integrity: sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==}
+
+ resolution: {integrity: sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==}
+ engines: {node: '>= 0.10'}
+
+ resolution: {integrity: sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==}
+ engines: {node: '>=6'}
+
+ resolution: {integrity: sha512-4EK3+xJl8Ts67nLYNwqw/dsFVnCf+qR7RgXSK9jEEm9unao3njwMDdmsdvoKBKHzxd7tCYz5e5M+SnMjdtXGQQ==}
+ engines: {node: '>=0.6'}
+
+ resolution: {integrity: sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==}
+
+ resolution: {integrity: sha512-aWizCQiyeAenIdUbqEpXgRA1ya65P13NKn/W8rWkcN0OPkRDxdBVLWnIEDsS2RpwCK2nobI7oMUSmexzTDyAmA==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ resolution: {integrity: sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==}
+ engines: {node: '>= 0.6'}
+
+ resolution: {integrity: sha512-K5zQjDllxWkf7Z5xJdV0/B0WTNqx6vxG70zJE4N0kBs4LovmEYWJzQGxC9bS9RAKu3bgM40lrd5zoLJ12MQ5BA==}
+ engines: {node: '>= 0.10'}
+
+ resolution: {integrity: sha512-yELu4WmLPw5Mr/lmeEpox5rw3RETacE++JgHqQzd2dg+YbJuat3jH4ingc+WPZhxaoFzdv9y33G+F7Nl5O0GBg==}
+ peerDependencies:
+ react: ^19.2.3
+
+ resolution: {integrity: sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==}
+
+ resolution: {integrity: sha512-9r+yi9+mgU33AKcj6IbT9oRCO78WriSj6t/cF8DWBZJ9aOGPOTEDvdUDz1FwKim7QXWwmHqtdHnRJfhAxEG46Q==}
+ engines: {node: '>=10'}
+ peerDependencies:
+ '@types/react': '*'
+ react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+
+ resolution: {integrity: sha512-Iqb9NjCCTt6Hf+vOdNIZGdTiH1QSqr27H/Ek9sv/a97gfueI/5h1s3yRi1nngzMUaOOToin5dI1dXKdXiF+u0Q==}
+ engines: {node: '>=10'}
+ peerDependencies:
+ '@types/react': '*'
+ react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+
+ resolution: {integrity: sha512-b6jSvxvVnyptAiLjbkWLE/lOnR4lfTtDAl+eUC7RZy+QQWc6wRzIV2CE6xBuMmDxc2qIihtDCZD5NPOFl7fRBQ==}
+ engines: {node: '>=10'}
+ peerDependencies:
+ '@types/react': '*'
+ react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+
+ resolution: {integrity: sha512-Ku/hhYbVjOQnXDZFv2+RibmLFGwFdeeKHFcOTlrt7xplBnya5OGn/hIRDsqDiSUcfORsDC7MPxwork8jBwsIWA==}
+ engines: {node: '>=0.10.0'}
+
+ resolution: {integrity: sha512-YTUo+Flmw4ZXiWfQKGcwwc11KnoRAYgzAE2E7mXKCjSviTKShtxBsN6YUUBB2gtaBzKzeKunxhUwNHQuRryhWA==}
+ engines: {node: '>= 4'}
+
+ resolution: {integrity: sha512-00o4I+DVrefhv+nX0ulyi3biSHCPDe+yLv5o/p6d/UVlirijB8E16FtfwSAi4g3tcqrQ4lRAqQSoFEZJehYEcw==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-dYqgNSZbDwkaJ2ceRd9ojCGjBq+mOm9LmtXnAnEGyHhN/5R7iDW2TRw3h+o/jCFxus3P2LfWIIiwowAjANm7IA==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==}
+ engines: {node: '>=0.10.0'}
+
+ resolution: {integrity: sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==}
+ engines: {node: '>=0.10.0'}
+
+ resolution: {integrity: sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==}
+ engines: {node: '>=4'}
+
+ resolution: {integrity: sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==}
+
+ resolution: {integrity: sha512-RfqAvLnMl313r7c9oclB1HhUEAezcpLjz95wFH4LVuhk9JF/r22qmVP9AMmOU4vMX7Q8pN8jwNg/CSpdFnMjTQ==}
+ engines: {node: '>= 0.4'}
+ hasBin: true
+
+ resolution: {integrity: sha512-U7WjGVG9sH8tvjW5SmGbQuui75FiyjAX72HX15DwBBwF9dNiQZRQAg9nnPhYy+TUnE0+VcrttuvNI8oSxZcocA==}
+ hasBin: true
+
+ resolution: {integrity: sha512-oMA2dcrw6u0YfxJQXm342bFKX/E4sG9rbTzO9ptUcR/e8A33cHuvStiYOwH7fszkZlZ1z/ta9AAoPk2F4qIOHA==}
+ engines: {node: '>=18'}
+
+ resolution: {integrity: sha512-uyDrIlUEH37cinabq0AX4QbgV4HbFZ/gqoiunWQ1UqBtRvTTytwhNYjE++pO/MjPTZL5KQCf2bEoJ/BJNVQ5Kw==}
+
+ resolution: {integrity: sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==}
+ engines: {iojs: '>=1.0.0', node: '>=0.10.0'}
+
+ resolution: {integrity: sha512-nLTrUKm2UyiL7rlhapu/Zl45FwNgkZGaCpZbIHajDYgwlJCOzLSk+cIPAnsEqV955GjILJnKbdQC1nVPz+gAYQ==}
+ engines: {node: '>= 18'}
+
+ resolution: {integrity: sha512-DPe5pVFaAsinSaV6QjQ6gdiedWDcRCbUuiQfQa2wmWV7+xC9bGulGI8+TdRmoFkAPaBXk8CrAbnlY2ISniJ47Q==}
+ engines: {node: '>=18'}
+
+ resolution: {integrity: sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==}
+
+ resolution: {integrity: sha512-AURm5f0jYEOydBj7VQlVvDrjeFgthDdEF5H1dP+6mNpoXOMo1quQqJ4wvJDyRZ9+pO3kGWoOdmV08cSv2aJV6Q==}
+ engines: {node: '>=0.4'}
+
+ resolution: {integrity: sha512-iKE9w/Z7xCzUMIZqdBsp6pEQvwuEebH4vdpjcDWnyzaI6yl6O9FHvVpmGelvEHNsoY6wGblkxR6Zty/h00WiSA==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-x/+Cz4YrimQxQccJf5mKEbIa1NzeCRNI5Ecl/ekmlYaampdNLPalVyIcCZNNH3MvmqBugV5TMYZXv0ljslUlaw==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==}
+
+ resolution: {integrity: sha512-eNv+WrVbKu1f3vbYJT/xtiF5syA5HPIMtf9IgY/nKg0sWqzAUEvqY/xm7OcZc/qafLx/iO9FgOmeSAp4v5ti/Q==}
+
+ resolution: {integrity: sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==}
+ hasBin: true
+
+ resolution: {integrity: sha512-vFKC2IEtQnVhpT78h1Yp8wzwrf8CM+MzKMHGJZfBtzhZNycRFnXsHk6E5TxIkkMsgNS7mdX3AGB7x2QM2di4lA==}
+ engines: {node: '>=10'}
+ hasBin: true
+
+ resolution: {integrity: sha512-1gnZf7DFcoIcajTjTwjwuDjzuz4PPcY2StKPlsGAQ1+YH20IRVrBaXSWmdjowTJ6u8Rc01PoYOGHXfP1mYcZNQ==}
+ engines: {node: '>= 18'}
+
+ resolution: {integrity: sha512-xRXBn0pPqQTVQiC8wyQrKs2MOlX24zQ0POGaj0kultvoOCstBQM5yvOhAVSUwOMjQtTvsPWoNCHfPGwaaQJhTw==}
+ engines: {node: '>= 18'}
+
+ resolution: {integrity: sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-7PGFlmtwsEADb0WYyvCMa1t+yke6daIG4Wirafur5kcf+MhUnPms1UeR0CKQdTZD81yESwMHbtn+TR+dMviakQ==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-RJRdvCo6IAnPdsvP/7m6bsQqNnn1FCBX5ZNtFL98MmFF/4xAIJTIg1YbHW5DC2W5SKZanrC6i4HsJqlajw/dZw==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==}
+
+ resolution: {integrity: sha512-pSad/m1+PGzB0aLsRBV0EkyGg9al1nJqYUuucg6d8v8xZspPZ5/ehGNEp5M4b1KQYqdO5/gGPbkhVbgmXqG9Pw==}
+ hasBin: true
+
+ resolution: {integrity: sha512-Ou9I5Ft9WNcCbXrU9cMgPBcCK8LiwLqcbywW3t4oDV37n1pzpuNLsYiAV8eODnjbtQlSDwZ2cUEeQz4E54Hltg==}
+ engines: {node: ^18.17.0 || ^20.3.0 || >=21.0.0}
+
+ resolution: {integrity: sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==}
+ engines: {node: '>=8'}
+
+ resolution: {integrity: sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==}
+ engines: {node: '>=8'}
+
+ resolution: {integrity: sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==}
+
+ resolution: {integrity: sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==}
+ engines: {node: '>=14'}
+
+ resolution: {integrity: sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==}
+
+ resolution: {integrity: sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==}
+ engines: {node: '>=0.10.0'}
+
+ resolution: {integrity: sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==}
+ engines: {node: '>=0.10.0'}
+
+ resolution: {integrity: sha512-+L3ccpzibovGXFK+Ap/f8LOS0ahMrHTf3xu7mMLSpEGU0EO9ucaysSylKo9eRDFNhWve/y275iPmIZ4z39a9iA==}
+
+ resolution: {integrity: sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw==}
+ engines: {node: '>= 0.8'}
+
+ resolution: {integrity: sha512-UhDfHmA92YAlNnCfhmq0VeNL5bDbiZGg7sZ2IvPsXubGkiNa9EC+tUTsjBRsYUAz87btI6/1wf4XoVvQ3uRnmQ==}
+ engines: {node: '>=18'}
+
+ resolution: {integrity: sha512-eLoXW/DHyl62zxY4SCaIgnRhuMr6ri4juEYARS8E6sCEqzKpOiE521Ucofdx+KnDZl5xmvGYaaKCk5FEOxJCoQ==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-vMgjE/GGEPEFnhFub6pa4FmJBRBVOLpIII2hvCZ8Kzb7K0hlHo7mQv6xYrBvCL2LtAIBwFUK8wvuJgTVSQ5MFQ==}
+
+ resolution: {integrity: sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==}
+ engines: {node: '>=8'}
+
+ resolution: {integrity: sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ==}
+ engines: {node: '>=18'}
+
+ resolution: {integrity: sha512-o7+c9bW6zpAdJHTtujeePODAhkuicdAryFsfVKwA+wGw89wJ4GTY484WTucM9hLtDEOpOvI+aHnzqnC5lHp4Rg==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-6CC9uyBL+/48dYizRf7H7VAYCMCNTBeM78x/VTUe9bFEaxBepPJDa1Ow99LqI/1yF7kuy7Q3cQsYMrcjGUcskA==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-0u/TldDbKD8bFCQ/4f5+mNRrXwZ8hg2w7ZR8wa16e8z9XpePWl3eGEcUD0OXpEH/VJH/2G3gjUtR3ZOiBe2S/w==}
+
+ resolution: {integrity: sha512-Rs66F0P/1kedk5lyYyH9uBzuiI/kNRmwJAR9quK6VOtIpZ2G+hMZd+HQbbv25MgCA6gEffoMZYxlTod4WcdrKA==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-G7Ok5C6E/j4SGfyLCloXTrngQIQU3PWtXGst3yM7Bea9FRURf1S42ZHlZZtsNque2FN2PoUhfZXYLNWwEr4dLQ==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-UXSH262CSZY1tfu3G3Secr6uGLCFVPMhIqHjlgCUtCCcgihYc/xKs9djMTMUOb2j1mVSeU8EU6NWc/iQKU6Gfg==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-zaJYxz2FtcMb4f+g60KsRNFOpVMUyuJgA51Zi5Z1DOTC3S59+OQiVOzE9GZt0x72uBGWKsQIuBKeF9iusmKFsg==}
+ engines: {node: '>=14.16'}
+
+ resolution: {integrity: sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==}
+ engines: {node: '>=8'}
+
+ resolution: {integrity: sha512-gmBGslpoQJtgnMAvOVqGZpEz9dyoKTCzy2nfz/n8aIFhN/jCE/rCmcxabB6jOOHV+0WNnylOxaxBQPSvcWklhA==}
+ engines: {node: '>=12'}
+
+ resolution: {integrity: sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==}
+ engines: {node: '>=4'}
+
+ resolution: {integrity: sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==}
+ engines: {node: '>=6'}
+
+ resolution: {integrity: sha512-aulFJcD6YK8V1G7iRB5tigAP4TsHBZZrOV8pjV++zdUwmeV8uzbY7yn6h9MswN62adStNZFuCIx4haBnRuMDaw==}
+ engines: {node: '>=18'}
+
+ resolution: {integrity: sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==}
+ engines: {node: '>=8'}
+
+ resolution: {integrity: sha512-qSVyDTeMotdvQYoHWLNGwRFJHC+i+ZvdBRYosOFgC+Wg1vx4frN2/RG/NA7SYqqvKNLf39P2LSRA2pu6n0XYZA==}
+ engines: {node: '>= 12.0.0'}
+ peerDependencies:
+ '@babel/core': '*'
+ babel-plugin-macros: '*'
+ react: '>= 16.8.0 || 17.x.x || ^18.0.0-0 || ^19.0.0-0'
+ peerDependenciesMeta:
+ '@babel/core':
+ optional: true
+ babel-plugin-macros:
+ optional: true
+
+ resolution: {integrity: sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==}
+ engines: {node: '>=8'}
+
+ resolution: {integrity: sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-XEzy5HCw7yESb7QajKTBJ+NA/BL0kAKlE7XhSMPZawF740X4ws/5CFtXRsVDQ+EztISC759a9+DJM9mxjz4hXg==}
+
+ resolution: {integrity: sha512-yEFYrVhod+hdNyx7g5Bnkkb0G6si8HJurOoOEgC8B/O0uXLHlaey/65KRv6cuWBNhBgHKAROVpc7QyYqE5gFng==}
+ engines: {node: '>=20'}
+
+ resolution: {integrity: sha512-uSaO4gnW+b3Y2aWoWfFpX62vn2sR3skfhbjsEnaBI81WD1wBLlHZe5sWf0AqjksNdYTbGBEd0UasQMT3SNV15g==}
+
+ resolution: {integrity: sha512-4+Z+0yiYyEtUVCScyfHCxOYP06L5Ne+JiHhY2IjR2KWMIWhJOYZKLSGZaP5HkZ8+bY0cxfzwDE5uOmzFXyIwxw==}
+
+ resolution: {integrity: sha512-g9ljZiwki/LfxmQADO3dEY1CbpmXT5Hm2fJ+QaGKwSXUylMybePR7/67YW7jOrrvjEgL1Fmz5kzyAjWVWLlucg==}
+ engines: {node: '>=6'}
+
+ resolution: {integrity: sha512-+FbBPE1o9QAYvviau/qC5SE3caw21q3xkvWKBtja5vgqOWIHHJ3ioaq1VPfn/Szqctz2bU/oYeKd9/z5BL+PVg==}
+
+ resolution: {integrity: sha512-W/KYk+NFhkmsYpuHq5JykngiOCnxeVL8v8dFnqxSD8qEEdRfXk1SDM6JzNqcERbcGYj9tMrDQBYV9cjgnunFIg==}
+ engines: {node: '>=18'}
+
+ resolution: {integrity: sha512-j2Zq4NyQYG5XMST4cbs02Ak8iJUdxRM0XI5QyxXuZOzKOINmWurp3smXu3y5wDcJrptwpSjgXHzIQxR0omXljQ==}
+ engines: {node: '>=12.0.0'}
+
+ resolution: {integrity: sha512-0g9vrtDQLrNIiCj22HSe9d4mLVG3g5ph5DZ8zCKBr4OtrspmNB6ss7hVyzArAeE88ceZocIEGkyW1Ime7fxPtQ==}
+
+ resolution: {integrity: sha512-ASdhgQIBSay0R/eXggAkQ53G4nTJqTXqC2kbaBbdDwM7SkjyZyO0OaaN1/FH7U/yCeqOHDwFO5j8+Os/IS1dXw==}
+ hasBin: true
+
+ resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==}
+ engines: {node: '>=8.0'}
+
+ resolution: {integrity: sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==}
+ engines: {node: '>=0.6'}
+
+ resolution: {integrity: sha512-kXuRi1mtaKMrsLUxz3sQYvVl37B0Ns6MzfrtV5DvJceE9bPyspOqk9xxv7XbZWcfLWbFmm997vl83qUWVJA64w==}
+ engines: {node: '>=16'}
+
+ resolution: {integrity: sha512-3TaVTaAv2gTiMB35i3FiGJaRfwb3Pyn/j3m/bfAvGe8FB7CF6u+LMYqYlDh7reQf7UNvoTvdfAqHGmPGOSsPmA==}
+ engines: {node: '>=18.12'}
+ peerDependencies:
+ typescript: '>=4.8.4'
+
+ resolution: {integrity: sha512-ztMO++owQnz8c/gIENcM9XfCEzgoGphTv+nKpYNM1bgsdOVC/jRZuEBf6N+mLLDNg68Kl+GgUZfOySaRiG1/Ug==}
+
+ resolution: {integrity: sha512-2Ac2RgzDe/cn48GvOe3M+o82pEFewD3UPbyoUHHdKasHwJKjds4fLXWf/Ux5kATBKN20oaFGu+jbElp1pos0mg==}
+
+ resolution: {integrity: sha512-NoZ4roiN7LnbKn9QqE1amc9DJfzvZXxF4xDavcOWt1BPkdx+m+0gJuPM+S0vCe7zTJMYUP0R8pO2XMr+Y8oLIg==}
+ engines: {node: '>=6'}
+
+ resolution: {integrity: sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==}
+
+ resolution: {integrity: sha512-7bziOlRqH0hJx80h/3mbicLW7o8qLsH5+RaLR2t+OHM3D0JlWGODQKQ4cxbK7WlvmUxpcj6Kgu6EKqjrGFe3QQ==}
+
+ resolution: {integrity: sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==}
+ engines: {node: '>= 0.8.0'}
+
+ resolution: {integrity: sha512-JnTrzGu+zPV3aXIUhnyWJj4z/wigMsdYajGLIYakqyOW1nPllzXEJee0QQbHj+CTIQtXGlAjuK0UY+2xTyjVAw==}
+ engines: {node: '>=20'}
+
+ resolution: {integrity: sha512-OZs6gsjF4vMp32qrCbiVSkrFmXtG/AZhY3t0iAMrMBiAZyV9oALtXO8hsrHbMXF9x6L3grlFuwW2oAz7cav+Gw==}
+ engines: {node: '>= 0.6'}
+
+ resolution: {integrity: sha512-nAYYwfY3qnzX30IkA6AQZjVbtK6duGontcQm1WSG1MD94YLqK0515GNApXkoxKOWMusVssAHWLh9SeaoefYFGw==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-BaXgOuIxz8n8pIq3e7Atg/7s+DpiYrxn4vdot3w9KbnBhcRQq6o3xemQdIfynqSeXeDrF32x+WvfzmOjPiY9lg==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-bTlAFB/FBYMcuX81gbL4OcpH5PmlFHqlCCpAl8AlEzMz5k53oNDvN8p1PNOWLEmI2x4orp3raOFB51tv9X+MFQ==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-3KS2b+kL7fsuk/eJZ7EQdnEmQoaho/r6KUef7hxvltNA5DR8NAUM+8wJMbJyZ4G9/7i3v5zPBIMN5aybAh2/Jg==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-HE4wj+r5lmDVS9gdaN0/+iqNvPZwGfnJ5lZuz7s5vLlg9ODw0bIiiETaios9LvFI1U94/VBXGm3CB2Y5cNFMpw==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+ peerDependencies:
+ eslint: ^8.57.0 || ^9.0.0
+ typescript: '>=4.8.4 <6.0.0'
+
+ resolution: {integrity: sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==}
+ engines: {node: '>=14.17'}
+ hasBin: true
+
+ resolution: {integrity: sha512-nWJ91DjeOkej/TA8pXQ3myruKpKEYgqvpw9lz4OPHj/NWFNluYrjbz9j01CJ8yKQd2g4jFoOkINCTW2I5LEEyw==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==}
+
+ resolution: {integrity: sha512-+QBBXBCvifc56fsbuxZQ6Sic3wqqc3WWaqxs58gvJrcOuN83HGTCwz3oS5phzU9LthRNE9VrJCFCLUgHeeFnfA==}
+ engines: {node: '>=18'}
+
+ resolution: {integrity: sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==}
+ engines: {node: '>= 10.0.0'}
+
+ resolution: {integrity: sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==}
+ engines: {node: '>= 0.8'}
+
+ resolution: {integrity: sha512-bSjt9pjaEBnNiGgc9rUiHGKv5l4/TGzDmYw3RhnkJGtLhbnnA/5qJj7x3dNDCRx/PJxu774LlH8lCOlB4hEfKg==}
+
+ resolution: {integrity: sha512-IiSk4HlzAMqTUseHHe3VhIGyuFmN90zMTpD3Z3y8jeQbzLIq500MVM7Jq2vUAnTKAFPJrqwkzr6PoTcPhGcOiw==}
+
+ resolution: {integrity: sha512-Js0m9cx+qOgDxo0eMiFGEueWztz+d4+M3rGlmKPT+T4IS/jP4ylw3Nwpu6cpTTP8R1MAC1kF4VbdLt3ARf209w==}
+ hasBin: true
+ peerDependencies:
+ browserslist: '>= 4.21.0'
+
+ resolution: {integrity: sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==}
+
+ resolution: {integrity: sha512-jQL3lRnocaFtu3V00JToYz/4QkNWswxijDaCVNZRiRTO3HQDLsdu1ZtmIUvV4yPp+rvWm5j0y0TG/S61cuijTg==}
+ engines: {node: '>=10'}
+ peerDependencies:
+ '@types/react': '*'
+ react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+
+ resolution: {integrity: sha512-Fedw0aZvkhynoPYlA5WXrMCAMm+nSWdZt6lzJQ7Ok8S6Q+VsHmHpRWndVRJ8Be0ZbkfPc5LRYH+5XrzXcEeLRQ==}
+ engines: {node: '>=10'}
+ peerDependencies:
+ '@types/react': '*'
+ react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+
+ resolution: {integrity: sha512-Pp6GSwGP/NrPIrxVFAIkOQeyw8lFenOHijQWkUTrDvrF4ALqylP2C/KCkeS9dpUM3KvYRQhna5vt7IL95+ZQ9w==}
+ peerDependencies:
+ react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0
+
+ resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==}
+
+ resolution: {integrity: sha512-hVDIBwsRruT73PbK7uP5ebUt+ezEtCmzZz3F59BSr2F6OVFnJ/6h8liuvdLrQ88Xmnk6/+xGGuq+pG9WwTuy3A==}
+ engines: {node: ^20.17.0 || >=22.9.0}
+
+ resolution: {integrity: sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==}
+ engines: {node: '>= 0.8'}
+
+ resolution: {integrity: sha512-d2JWLCivmZYTSIoge9MsgFCZrt571BikcWGYkjC1khllbTeDlGqZ2D8vD8E/lJa8WGWbb7Plm8/XJYV7IJHZZw==}
+ engines: {node: '>= 8'}
+
+ resolution: {integrity: sha512-TbX3mj8n0odCBFVlY8AxkqcHASw3L60jIuF8jFP78az3C2YhmGvqbHBpAjTRH2/xqYunrJ9g1jSyjCjpoWzIAA==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-6iBczoX+kDQ7a3+YJBnh3T+KZRxM/iYNPXicqk66/Qfm1b93iu+yOImkg0zHbj5LNOcNv1TEADiZ0xa34B4q6Q==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-K4jVyjnBdgvc86Y6BkaLZEN933SwYOuBFkdmBu9ZfkcAbdVbpITnDmjvZ/aQjRXQrv5EPkTnD1s39GiiqbngCw==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-LYfpUkmqwl0h9A2HL09Mms427Q1RZWuOHsukfVcKRq9q95iQxdw0ix1JQrqbcDR9PH1QDwf5Qo8OZb5lksZ8Xg==}
+ engines: {node: '>= 0.4'}
+
+ resolution: {integrity: sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==}
+ engines: {node: '>= 8'}
+ hasBin: true
+
+ resolution: {integrity: sha512-GlaYyEb07DPxYCKhKzplCWBJtvxZcZMrL+4UkrTSJHHPyZU4mYYTv3qaOe77H7EODLSSopAUFAc6W8U4yqvscg==}
+ engines: {node: ^16.13.0 || >=18.0.0}
+ hasBin: true
+
+ resolution: {integrity: sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==}
+ engines: {node: '>=0.10.0'}
+
+ resolution: {integrity: sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==}
+ engines: {node: '>=8'}
+
+ resolution: {integrity: sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==}
+ engines: {node: '>=10'}
+
+ resolution: {integrity: sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==}
+
+ resolution: {integrity: sha512-g/eziiSUNBSsdDJtCLB8bdYEUMj4jR7AGeUo96p/3dTafgjHhpF4RiCFPiRILwjQoDXx5MqkBr4fwWtR3Ky4Wg==}
+ engines: {node: '>=20'}
+
+ resolution: {integrity: sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==}
+ engines: {node: '>=10'}
+
+ resolution: {integrity: sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==}
+
+ resolution: {integrity: sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==}
+ engines: {node: '>=12'}
+
+ resolution: {integrity: sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==}
+ engines: {node: '>=12'}
+
+ resolution: {integrity: sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==}
+ engines: {node: '>=10'}
+
+ resolution: {integrity: sha512-U/PBtDf35ff0D8X8D0jfdzHYEPFxAI7jJlxZXwCSez5M3190m+QobIfh+sWDWSHMCWWJN2AWamkegn6vr6YBTw==}
+ engines: {node: '>=18'}
+
+ resolution: {integrity: sha512-CzhO+pFNo8ajLM2d2IW/R93ipy99LWjtwblvC1RsoSUMZgyLbYFr221TnSNT7GjGdYui6P459mw9JH/g/zW2ug==}
+ engines: {node: '>=18'}
+
+ resolution: {integrity: sha512-pM/SU9d3YAggzi6MtR4h7ruuQlqKtad8e9S0fmxcMi+ueAK5Korys/aWcV9LIIHTVbj01NdzxcnXSN+O74ZIVA==}
+ peerDependencies:
+ zod: ^3.25 || ^4
+
+ resolution: {integrity: sha512-Q6/nZLe6jxuU80qb/4uJ4t5v2VEZ44lzQjPDhYJNztRQ4wyWc6VF3D3Kb/fAuPetZQnhS3hnajCf9CsWesghLQ==}
+ engines: {node: '>=18.0.0'}
+ peerDependencies:
+ zod: ^3.25.0 || ^4.0.0
+
+ resolution: {integrity: sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ==}
+
+ resolution: {integrity: sha512-rftlrkhHZOcjDwkGlnUtZZkvaPHCsDATp4pGpuOOMDaTdDDXF91wuVDJoWoPsKX/3YPQ5fHuF3STjcYyKr+Qhg==}
+
+snapshots:
+
+ '@alloc/[email protected]': {}
+
+ '@antfu/[email protected]':
+ dependencies:
+ ansis: 4.2.0
+ fzf: 0.5.2
+ package-manager-detector: 1.6.0
+ tinyexec: 1.0.2
+
+ '@babel/[email protected]':
+ dependencies:
+ '@babel/helper-validator-identifier': 7.28.5
+ js-tokens: 4.0.0
+ picocolors: 1.1.1
+
+ '@babel/[email protected]': {}
+
+ '@babel/[email protected]':
+ dependencies:
+ '@babel/code-frame': 7.29.0
+ '@babel/generator': 7.29.1
+ '@babel/helper-compilation-targets': 7.28.6
+ '@babel/helper-module-transforms': 7.28.6(@babel/[email protected])
+ '@babel/helpers': 7.28.6
+ '@babel/parser': 7.29.0
+ '@babel/template': 7.28.6
+ '@babel/traverse': 7.29.0
+ '@babel/types': 7.29.0
+ '@jridgewell/remapping': 2.3.5
+ convert-source-map: 2.0.0
+ debug: 4.4.3
+ gensync: 1.0.0-beta.2
+ json5: 2.2.3
+ semver: 6.3.1
+ transitivePeerDependencies:
+ - supports-color
+
+ '@babel/[email protected]':
+ dependencies:
+ '@babel/parser': 7.29.0
+ '@babel/types': 7.29.0
+ '@jridgewell/gen-mapping': 0.3.13
+ '@jridgewell/trace-mapping': 0.3.31
+ jsesc: 3.1.0
+
+ '@babel/[email protected]':
+ dependencies:
+ '@babel/types': 7.29.0
+
+ '@babel/[email protected]':
+ dependencies:
+ '@babel/compat-data': 7.29.0
+ '@babel/helper-validator-option': 7.27.1
+ browserslist: 4.28.1
+ lru-cache: 5.1.1
+ semver: 6.3.1
+
+ dependencies:
+ '@babel/core': 7.29.0
+ '@babel/helper-annotate-as-pure': 7.27.3
+ '@babel/helper-member-expression-to-functions': 7.28.5
+ '@babel/helper-optimise-call-expression': 7.27.1
+ '@babel/helper-replace-supers': 7.28.6(@babel/[email protected])
+ '@babel/helper-skip-transparent-expression-wrappers': 7.27.1
+ '@babel/traverse': 7.29.0
+ semver: 6.3.1
+ transitivePeerDependencies:
+ - supports-color
+
+ '@babel/[email protected]': {}
+
+ '@babel/[email protected]':
+ dependencies:
+ '@babel/traverse': 7.29.0
+ '@babel/types': 7.29.0
+ transitivePeerDependencies:
+ - supports-color
+
+ '@babel/[email protected]':
+ dependencies:
+ '@babel/traverse': 7.29.0
+ '@babel/types': 7.29.0
+ transitivePeerDependencies:
+ - supports-color
+
+ dependencies:
+ '@babel/core': 7.29.0
+ '@babel/helper-module-imports': 7.28.6
+ '@babel/helper-validator-identifier': 7.28.5
+ '@babel/traverse': 7.29.0
+ transitivePeerDependencies:
+ - supports-color
+
+ '@babel/[email protected]':
+ dependencies:
+ '@babel/types': 7.29.0
+
+ '@babel/[email protected]': {}
+
+ dependencies:
+ '@babel/core': 7.29.0
+ '@babel/helper-member-expression-to-functions': 7.28.5
+ '@babel/helper-optimise-call-expression': 7.27.1
+ '@babel/traverse': 7.29.0
+ transitivePeerDependencies:
+ - supports-color
+
+ '@babel/[email protected]':
+ dependencies:
+ '@babel/traverse': 7.29.0
+ '@babel/types': 7.29.0
+ transitivePeerDependencies:
+ - supports-color
+
+ '@babel/[email protected]': {}
+
+ '@babel/[email protected]': {}
+
+ '@babel/[email protected]': {}
+
+ '@babel/[email protected]':
+ dependencies:
+ '@babel/template': 7.28.6
+ '@babel/types': 7.29.0
+
+ '@babel/[email protected]':
+ dependencies:
+ '@babel/types': 7.29.0
+
+ dependencies:
+ '@babel/core': 7.29.0
+ '@babel/helper-plugin-utils': 7.28.6
+
+ dependencies:
+ '@babel/core': 7.29.0
+ '@babel/helper-plugin-utils': 7.28.6
+
+ dependencies:
+ '@babel/core': 7.29.0
+ '@babel/helper-module-transforms': 7.28.6(@babel/[email protected])
+ '@babel/helper-plugin-utils': 7.28.6
+ transitivePeerDependencies:
+ - supports-color
+
+ dependencies:
+ '@babel/core': 7.29.0
+ '@babel/helper-annotate-as-pure': 7.27.3
+ '@babel/helper-create-class-features-plugin': 7.28.6(@babel/[email protected])
+ '@babel/helper-plugin-utils': 7.28.6
+ '@babel/helper-skip-transparent-expression-wrappers': 7.27.1
+ '@babel/plugin-syntax-typescript': 7.28.6(@babel/[email protected])
+ transitivePeerDependencies:
+ - supports-color
+
+ dependencies:
+ '@babel/core': 7.29.0
+ '@babel/helper-plugin-utils': 7.28.6
+ '@babel/helper-validator-option': 7.27.1
+ '@babel/plugin-syntax-jsx': 7.28.6(@babel/[email protected])
+ '@babel/plugin-transform-modules-commonjs': 7.28.6(@babel/[email protected])
+ '@babel/plugin-transform-typescript': 7.28.6(@babel/[email protected])
+ transitivePeerDependencies:
+ - supports-color
+
+ '@babel/[email protected]':
+ dependencies:
+ '@babel/code-frame': 7.29.0
+ '@babel/parser': 7.29.0
+ '@babel/types': 7.29.0
+
+ '@babel/[email protected]':
+ dependencies:
+ '@babel/code-frame': 7.29.0
+ '@babel/generator': 7.29.1
+ '@babel/helper-globals': 7.28.0
+ '@babel/parser': 7.29.0
+ '@babel/template': 7.28.6
+ '@babel/types': 7.29.0
+ debug: 4.4.3
+ transitivePeerDependencies:
+ - supports-color
+
+ '@babel/[email protected]':
+ dependencies:
+ '@babel/helper-string-parser': 7.27.1
+ '@babel/helper-validator-identifier': 7.28.5
+
+ '@dotenvx/[email protected]':
+ dependencies:
+ commander: 11.1.0
+ dotenv: 17.2.4
+ eciesjs: 0.4.17
+ execa: 5.1.1
+ fdir: 6.5.0([email protected])
+ ignore: 5.3.2
+ object-treeify: 1.1.33
+ picomatch: 4.0.3
+ which: 4.0.0
+
+ dependencies:
+ '@noble/ciphers': 1.3.0
+
+ '@emnapi/[email protected]':
+ dependencies:
+ '@emnapi/wasi-threads': 1.1.0
+ tslib: 2.8.1
+ optional: true
+
+ '@emnapi/[email protected]':
+ dependencies:
+ tslib: 2.8.1
+ optional: true
+
+ '@emnapi/[email protected]':
+ dependencies:
+ tslib: 2.8.1
+ optional: true
+
+ dependencies:
+ eslint: 9.39.2([email protected])
+ eslint-visitor-keys: 3.4.3
+
+ '@eslint-community/[email protected]': {}
+
+ '@eslint/[email protected]':
+ dependencies:
+ '@eslint/object-schema': 2.1.7
+ debug: 4.4.3
+ minimatch: 3.1.2
+ transitivePeerDependencies:
+ - supports-color
+
+ '@eslint/[email protected]':
+ dependencies:
+ '@eslint/core': 0.17.0
+
+ '@eslint/[email protected]':
+ dependencies:
+ '@types/json-schema': 7.0.15
+
+ '@eslint/[email protected]':
+ dependencies:
+ ajv: 6.12.6
+ debug: 4.4.3
+ espree: 10.4.0
+ globals: 14.0.0
+ ignore: 5.3.2
+ import-fresh: 3.3.1
+ js-yaml: 4.1.1
+ minimatch: 3.1.2
+ strip-json-comments: 3.1.1
+ transitivePeerDependencies:
+ - supports-color
+
+ '@eslint/[email protected]': {}
+
+ '@eslint/[email protected]': {}
+
+ '@eslint/[email protected]':
+ dependencies:
+ '@eslint/core': 0.17.0
+ levn: 0.4.1
+
+ '@floating-ui/[email protected]':
+ dependencies:
+ '@floating-ui/utils': 0.2.10
+
+ '@floating-ui/[email protected]':
+ dependencies:
+ '@floating-ui/core': 1.7.4
+ '@floating-ui/utils': 0.2.10
+
+ dependencies:
+ '@floating-ui/dom': 1.7.5
+ react: 19.2.3
+ react-dom: 19.2.3([email protected])
+
+ '@floating-ui/[email protected]': {}
+
+ dependencies:
+ hono: 4.11.9
+
+ '@humanfs/[email protected]': {}
+
+ '@humanfs/[email protected]':
+ dependencies:
+ '@humanfs/core': 0.19.1
+ '@humanwhocodes/retry': 0.4.3
+
+ '@humanwhocodes/[email protected]': {}
+
+ '@humanwhocodes/[email protected]': {}
+
+ dependencies:
+ '@iconify/types': 2.0.0
+ react: 19.2.3
+
+ '@iconify/[email protected]': {}
+
+ optional: true
+
+ optionalDependencies:
+ '@img/sharp-libvips-darwin-arm64': 1.2.4
+ optional: true
+
+ optionalDependencies:
+ '@img/sharp-libvips-darwin-x64': 1.2.4
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optionalDependencies:
+ '@img/sharp-libvips-linux-arm64': 1.2.4
+ optional: true
+
+ optionalDependencies:
+ '@img/sharp-libvips-linux-arm': 1.2.4
+ optional: true
+
+ optionalDependencies:
+ '@img/sharp-libvips-linux-ppc64': 1.2.4
+ optional: true
+
+ optionalDependencies:
+ '@img/sharp-libvips-linux-riscv64': 1.2.4
+ optional: true
+
+ optionalDependencies:
+ '@img/sharp-libvips-linux-s390x': 1.2.4
+ optional: true
+
+ optionalDependencies:
+ '@img/sharp-libvips-linux-x64': 1.2.4
+ optional: true
+
+ optionalDependencies:
+ '@img/sharp-libvips-linuxmusl-arm64': 1.2.4
+ optional: true
+
+ optionalDependencies:
+ '@img/sharp-libvips-linuxmusl-x64': 1.2.4
+ optional: true
+
+ dependencies:
+ '@emnapi/runtime': 1.8.1
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ '@inquirer/[email protected]': {}
+
+ '@inquirer/[email protected](@types/[email protected])':
+ dependencies:
+ '@inquirer/core': 10.3.2(@types/[email protected])
+ '@inquirer/type': 3.0.10(@types/[email protected])
+ optionalDependencies:
+ '@types/node': 20.19.33
+
+ '@inquirer/[email protected](@types/[email protected])':
+ dependencies:
+ '@inquirer/ansi': 1.0.2
+ '@inquirer/figures': 1.0.15
+ '@inquirer/type': 3.0.10(@types/[email protected])
+ cli-width: 4.1.0
+ mute-stream: 2.0.0
+ signal-exit: 4.1.0
+ wrap-ansi: 6.2.0
+ yoctocolors-cjs: 2.1.3
+ optionalDependencies:
+ '@types/node': 20.19.33
+
+ '@inquirer/[email protected]': {}
+
+ '@inquirer/[email protected](@types/[email protected])':
+ optionalDependencies:
+ '@types/node': 20.19.33
+
+ '@isaacs/[email protected]': {}
+
+ '@isaacs/[email protected]':
+ dependencies:
+ '@isaacs/balanced-match': 4.0.1
+
+ '@jridgewell/[email protected]':
+ dependencies:
+ '@jridgewell/sourcemap-codec': 1.5.5
+ '@jridgewell/trace-mapping': 0.3.31
+
+ '@jridgewell/[email protected]':
+ dependencies:
+ '@jridgewell/gen-mapping': 0.3.13
+ '@jridgewell/trace-mapping': 0.3.31
+
+ '@jridgewell/[email protected]': {}
+
+ '@jridgewell/[email protected]': {}
+
+ '@jridgewell/[email protected]':
+ dependencies:
+ '@jridgewell/resolve-uri': 3.1.2
+ '@jridgewell/sourcemap-codec': 1.5.5
+
+ '@modelcontextprotocol/[email protected]([email protected])':
+ dependencies:
+ '@hono/node-server': 1.19.9([email protected])
+ ajv: 8.17.1
+ ajv-formats: 3.0.1([email protected])
+ content-type: 1.0.5
+ cors: 2.8.6
+ cross-spawn: 7.0.6
+ eventsource: 3.0.7
+ eventsource-parser: 3.0.6
+ express: 5.2.1
+ express-rate-limit: 8.2.1([email protected])
+ hono: 4.11.9
+ jose: 6.1.3
+ json-schema-typed: 8.0.2
+ pkce-challenge: 5.0.1
+ raw-body: 3.0.2
+ zod: 3.25.76
+ zod-to-json-schema: 3.25.1([email protected])
+ transitivePeerDependencies:
+ - supports-color
+
+ '@mswjs/[email protected]':
+ dependencies:
+ '@open-draft/deferred-promise': 2.2.0
+ '@open-draft/logger': 0.3.0
+ '@open-draft/until': 2.1.0
+ is-node-process: 1.2.0
+ outvariant: 1.4.3
+ strict-event-emitter: 0.5.1
+
+ '@napi-rs/[email protected]':
+ dependencies:
+ '@emnapi/core': 1.8.1
+ '@emnapi/runtime': 1.8.1
+ '@tybys/wasm-util': 0.10.1
+ optional: true
+
+ '@next/[email protected]': {}
+
+ dependencies:
+ fast-glob: 3.3.1
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ '@noble/[email protected]': {}
+
+ '@noble/[email protected]':
+ dependencies:
+ '@noble/hashes': 1.8.0
+
+ '@noble/[email protected]': {}
+
+ '@nodelib/[email protected]':
+ dependencies:
+ '@nodelib/fs.stat': 2.0.5
+ run-parallel: 1.2.0
+
+ '@nodelib/[email protected]': {}
+
+ '@nodelib/[email protected]':
+ dependencies:
+ '@nodelib/fs.scandir': 2.1.5
+ fastq: 1.20.1
+
+ '@nolyfill/[email protected]': {}
+
+ '@open-draft/[email protected]': {}
+
+ '@open-draft/[email protected]':
+ dependencies:
+ is-node-process: 1.2.0
+ outvariant: 1.4.3
+
+ '@open-draft/[email protected]': {}
+
+ '@radix-ui/[email protected]': {}
+
+ '@radix-ui/[email protected]': {}
+
+ dependencies:
+ '@radix-ui/react-visually-hidden': 1.2.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])
+ react: 19.2.3
+ react-dom: 19.2.3([email protected])
+ optionalDependencies:
+ '@types/react': 19.2.13
+ '@types/react-dom': 19.2.3(@types/[email protected])
+
+ dependencies:
+ '@radix-ui/primitive': 1.1.3
+ '@radix-ui/react-collapsible': 1.1.12(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])
+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])
+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])
+ '@radix-ui/react-direction': 1.1.1(@types/[email protected])([email protected])
+ '@radix-ui/react-id': 1.1.1(@types/[email protected])([email protected])
+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])
+ react: 19.2.3
+ react-dom: 19.2.3([email protected])
+ optionalDependencies:
+ '@types/react': 19.2.13
+ '@types/react-dom': 19.2.3(@types/[email protected])
+
+ dependencies:
+ '@radix-ui/primitive': 1.1.3
+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])
+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])
+ '@radix-ui/react-slot': 1.2.3(@types/[email protected])([email protected])
+ react: 19.2.3
+ react-dom: 19.2.3([email protected])
+ optionalDependencies:
+ '@types/react': 19.2.13
+ '@types/react-dom': 19.2.3(@types/[email protected])
+
+ dependencies:
+ react: 19.2.3
+ react-dom: 19.2.3([email protected])
+ optionalDependencies:
+ '@types/react': 19.2.13
+ '@types/react-dom': 19.2.3(@types/[email protected])
+
+ dependencies:
+ react: 19.2.3
+ react-dom: 19.2.3([email protected])
+ optionalDependencies:
+ '@types/react': 19.2.13
+ '@types/react-dom': 19.2.3(@types/[email protected])
+
+ dependencies:
+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])
+ '@radix-ui/react-use-callback-ref': 1.1.1(@types/[email protected])([email protected])
+ '@radix-ui/react-use-is-hydrated': 0.1.0(@types/[email protected])([email protected])
+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])
+ react: 19.2.3
+ react-dom: 19.2.3([email protected])
+ optionalDependencies:
+ '@types/react': 19.2.13
+ '@types/react-dom': 19.2.3(@types/[email protected])
+
+ dependencies:
+ '@radix-ui/primitive': 1.1.3
+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])
+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])
+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])
+ '@radix-ui/react-use-previous': 1.1.1(@types/[email protected])([email protected])
+ '@radix-ui/react-use-size': 1.1.1(@types/[email protected])([email protected])
+ react: 19.2.3
+ react-dom: 19.2.3([email protected])
+ optionalDependencies:
+ '@types/react': 19.2.13
+ '@types/react-dom': 19.2.3(@types/[email protected])
+
+ dependencies:
+ '@radix-ui/primitive': 1.1.3
+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])
+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])
+ '@radix-ui/react-id': 1.1.1(@types/[email protected])([email protected])
+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])
+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])
+ react: 19.2.3
+ react-dom: 19.2.3([email protected])
+ optionalDependencies:
+ '@types/react': 19.2.13
+ '@types/react-dom': 19.2.3(@types/[email protected])
+
+ dependencies:
+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])
+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])
+ '@radix-ui/react-slot': 1.2.3(@types/[email protected])([email protected])
+ react: 19.2.3
+ react-dom: 19.2.3([email protected])
+ optionalDependencies:
+ '@types/react': 19.2.13
+ '@types/react-dom': 19.2.3(@types/[email protected])
+
+ dependencies:
+ react: 19.2.3
+ optionalDependencies:
+ '@types/react': 19.2.13
+
+ dependencies:
+ '@radix-ui/primitive': 1.1.3
+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])
+ '@radix-ui/react-use-callback-ref': 1.1.1(@types/[email protected])([email protected])
+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])
+ react: 19.2.3
+ react-dom: 19.2.3([email protected])
+ optionalDependencies:
+ '@types/react': 19.2.13
+ '@types/react-dom': 19.2.3(@types/[email protected])
+
+ dependencies:
+ react: 19.2.3
+ optionalDependencies:
+ '@types/react': 19.2.13
+
+ dependencies:
+ '@radix-ui/primitive': 1.1.3
+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])
+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])
+ '@radix-ui/react-dismissable-layer': 1.1.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])
+ '@radix-ui/react-focus-guards': 1.1.3(@types/[email protected])([email protected])
+ '@radix-ui/react-id': 1.1.1(@types/[email protected])([email protected])
+ '@radix-ui/react-slot': 1.2.3(@types/[email protected])([email protected])
+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])
+ aria-hidden: 1.2.6
+ react: 19.2.3
+ react-dom: 19.2.3([email protected])
+ react-remove-scroll: 2.7.2(@types/[email protected])([email protected])
+ optionalDependencies:
+ '@types/react': 19.2.13
+ '@types/react-dom': 19.2.3(@types/[email protected])
+
+ dependencies:
+ react: 19.2.3
+ optionalDependencies:
+ '@types/react': 19.2.13
+
+ dependencies:
+ '@radix-ui/primitive': 1.1.3
+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])
+ '@radix-ui/react-use-callback-ref': 1.1.1(@types/[email protected])([email protected])
+ '@radix-ui/react-use-escape-keydown': 1.1.1(@types/[email protected])([email protected])
+ react: 19.2.3
+ react-dom: 19.2.3([email protected])
+ optionalDependencies:
+ '@types/react': 19.2.13
+ '@types/react-dom': 19.2.3(@types/[email protected])
+
+ dependencies:
+ '@radix-ui/primitive': 1.1.3
+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])
+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])
+ '@radix-ui/react-id': 1.1.1(@types/[email protected])([email protected])
+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])
+ react: 19.2.3
+ react-dom: 19.2.3([email protected])
+ optionalDependencies:
+ '@types/react': 19.2.13
+ '@types/react-dom': 19.2.3(@types/[email protected])
+
+ dependencies:
+ react: 19.2.3
+ optionalDependencies:
+ '@types/react': 19.2.13
+
+ dependencies:
+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])
+ '@radix-ui/react-use-callback-ref': 1.1.1(@types/[email protected])([email protected])
+ react: 19.2.3
+ react-dom: 19.2.3([email protected])
+ optionalDependencies:
+ '@types/react': 19.2.13
+ '@types/react-dom': 19.2.3(@types/[email protected])
+
+ dependencies:
+ '@radix-ui/primitive': 1.1.3
+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])
+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])
+ '@radix-ui/react-id': 1.1.1(@types/[email protected])([email protected])
+ react: 19.2.3
+ react-dom: 19.2.3([email protected])
+ optionalDependencies:
+ '@types/react': 19.2.13
+ '@types/react-dom': 19.2.3(@types/[email protected])
+
+ dependencies:
+ '@radix-ui/primitive': 1.1.3
+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])
+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])
+ '@radix-ui/react-dismissable-layer': 1.1.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])
+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])
+ react: 19.2.3
+ react-dom: 19.2.3([email protected])
+ optionalDependencies:
+ '@types/react': 19.2.13
+ '@types/react-dom': 19.2.3(@types/[email protected])
+
+ dependencies:
+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])
+ react: 19.2.3
+ optionalDependencies:
+ '@types/react': 19.2.13
+
+ dependencies:
+ react: 19.2.3
+ react-dom: 19.2.3([email protected])
+ optionalDependencies:
+ '@types/react': 19.2.13
+ '@types/react-dom': 19.2.3(@types/[email protected])
+
+ dependencies:
+ '@radix-ui/primitive': 1.1.3
+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])
+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])
+ '@radix-ui/react-direction': 1.1.1(@types/[email protected])([email protected])
+ '@radix-ui/react-dismissable-layer': 1.1.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])
+ '@radix-ui/react-focus-guards': 1.1.3(@types/[email protected])([email protected])
+ '@radix-ui/react-id': 1.1.1(@types/[email protected])([email protected])
+ '@radix-ui/react-roving-focus': 1.1.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])
+ '@radix-ui/react-slot': 1.2.3(@types/[email protected])([email protected])
+ '@radix-ui/react-use-callback-ref': 1.1.1(@types/[email protected])([email protected])
+ aria-hidden: 1.2.6
+ react: 19.2.3
+ react-dom: 19.2.3([email protected])
+ react-remove-scroll: 2.7.2(@types/[email protected])([email protected])
+ optionalDependencies:
+ '@types/react': 19.2.13
+ '@types/react-dom': 19.2.3(@types/[email protected])
+
+ dependencies:
+ '@radix-ui/primitive': 1.1.3
+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])
+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])
+ '@radix-ui/react-direction': 1.1.1(@types/[email protected])([email protected])
+ '@radix-ui/react-id': 1.1.1(@types/[email protected])([email protected])
+ '@radix-ui/react-roving-focus': 1.1.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])
+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])
+ react: 19.2.3
+ react-dom: 19.2.3([email protected])
+ optionalDependencies:
+ '@types/react': 19.2.13
+ '@types/react-dom': 19.2.3(@types/[email protected])
+
+ dependencies:
+ '@radix-ui/primitive': 1.1.3
+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])
+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])
+ '@radix-ui/react-direction': 1.1.1(@types/[email protected])([email protected])
+ '@radix-ui/react-dismissable-layer': 1.1.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])
+ '@radix-ui/react-id': 1.1.1(@types/[email protected])([email protected])
+ '@radix-ui/react-use-callback-ref': 1.1.1(@types/[email protected])([email protected])
+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])
+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])
+ '@radix-ui/react-use-previous': 1.1.1(@types/[email protected])([email protected])
+ '@radix-ui/react-visually-hidden': 1.2.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])
+ react: 19.2.3
+ react-dom: 19.2.3([email protected])
+ optionalDependencies:
+ '@types/react': 19.2.13
+ '@types/react-dom': 19.2.3(@types/[email protected])
+
+ dependencies:
+ '@radix-ui/number': 1.1.1
+ '@radix-ui/primitive': 1.1.3
+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])
+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])
+ '@radix-ui/react-direction': 1.1.1(@types/[email protected])([email protected])
+ '@radix-ui/react-roving-focus': 1.1.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])
+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])
+ '@radix-ui/react-use-effect-event': 0.0.2(@types/[email protected])([email protected])
+ '@radix-ui/react-use-is-hydrated': 0.1.0(@types/[email protected])([email protected])
+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])
+ react: 19.2.3
+ react-dom: 19.2.3([email protected])
+ optionalDependencies:
+ '@types/react': 19.2.13
+ '@types/react-dom': 19.2.3(@types/[email protected])
+
+ dependencies:
+ '@radix-ui/primitive': 1.1.3
+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])
+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])
+ '@radix-ui/react-id': 1.1.1(@types/[email protected])([email protected])
+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])
+ '@radix-ui/react-use-effect-event': 0.0.2(@types/[email protected])([email protected])
+ '@radix-ui/react-use-is-hydrated': 0.1.0(@types/[email protected])([email protected])
+ react: 19.2.3
+ react-dom: 19.2.3([email protected])
+ optionalDependencies:
+ '@types/react': 19.2.13
+ '@types/react-dom': 19.2.3(@types/[email protected])
+
+ dependencies:
+ '@radix-ui/primitive': 1.1.3
+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])
+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])
+ '@radix-ui/react-dismissable-layer': 1.1.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])
+ '@radix-ui/react-focus-guards': 1.1.3(@types/[email protected])([email protected])
+ '@radix-ui/react-id': 1.1.1(@types/[email protected])([email protected])
+ '@radix-ui/react-slot': 1.2.3(@types/[email protected])([email protected])
+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])
+ aria-hidden: 1.2.6
+ react: 19.2.3
+ react-dom: 19.2.3([email protected])
+ react-remove-scroll: 2.7.2(@types/[email protected])([email protected])
+ optionalDependencies:
+ '@types/react': 19.2.13
+ '@types/react-dom': 19.2.3(@types/[email protected])
+
+ dependencies:
+ '@floating-ui/react-dom': 2.1.7([email protected]([email protected]))([email protected])
+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])
+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])
+ '@radix-ui/react-use-callback-ref': 1.1.1(@types/[email protected])([email protected])
+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])
+ '@radix-ui/react-use-rect': 1.1.1(@types/[email protected])([email protected])
+ '@radix-ui/react-use-size': 1.1.1(@types/[email protected])([email protected])
+ '@radix-ui/rect': 1.1.1
+ react: 19.2.3
+ react-dom: 19.2.3([email protected])
+ optionalDependencies:
+ '@types/react': 19.2.13
+ '@types/react-dom': 19.2.3(@types/[email protected])
+
+ dependencies:
+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])
+ react: 19.2.3
+ react-dom: 19.2.3([email protected])
+ optionalDependencies:
+ '@types/react': 19.2.13
+ '@types/react-dom': 19.2.3(@types/[email protected])
+
+ dependencies:
+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])
+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])
+ react: 19.2.3
+ react-dom: 19.2.3([email protected])
+ optionalDependencies:
+ '@types/react': 19.2.13
+ '@types/react-dom': 19.2.3(@types/[email protected])
+
+ dependencies:
+ '@radix-ui/react-slot': 1.2.3(@types/[email protected])([email protected])
+ react: 19.2.3
+ react-dom: 19.2.3([email protected])
+ optionalDependencies:
+ '@types/react': 19.2.13
+ '@types/react-dom': 19.2.3(@types/[email protected])
+
+ dependencies:
+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])
+ react: 19.2.3
+ react-dom: 19.2.3([email protected])
+ optionalDependencies:
+ '@types/react': 19.2.13
+ '@types/react-dom': 19.2.3(@types/[email protected])
+
+ dependencies:
+ '@radix-ui/primitive': 1.1.3
+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])
+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])
+ '@radix-ui/react-direction': 1.1.1(@types/[email protected])([email protected])
+ '@radix-ui/react-roving-focus': 1.1.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])
+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])
+ '@radix-ui/react-use-previous': 1.1.1(@types/[email protected])([email protected])
+ '@radix-ui/react-use-size': 1.1.1(@types/[email protected])([email protected])
+ react: 19.2.3
+ react-dom: 19.2.3([email protected])
+ optionalDependencies:
+ '@types/react': 19.2.13
+ '@types/react-dom': 19.2.3(@types/[email protected])
+
+ dependencies:
+ '@radix-ui/primitive': 1.1.3
+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])
+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])
+ '@radix-ui/react-direction': 1.1.1(@types/[email protected])([email protected])
+ '@radix-ui/react-id': 1.1.1(@types/[email protected])([email protected])
+ '@radix-ui/react-use-callback-ref': 1.1.1(@types/[email protected])([email protected])
+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])
+ react: 19.2.3
+ react-dom: 19.2.3([email protected])
+ optionalDependencies:
+ '@types/react': 19.2.13
+ '@types/react-dom': 19.2.3(@types/[email protected])
+
+ dependencies:
+ '@radix-ui/number': 1.1.1
+ '@radix-ui/primitive': 1.1.3
+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])
+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])
+ '@radix-ui/react-direction': 1.1.1(@types/[email protected])([email protected])
+ '@radix-ui/react-use-callback-ref': 1.1.1(@types/[email protected])([email protected])
+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])
+ react: 19.2.3
+ react-dom: 19.2.3([email protected])
+ optionalDependencies:
+ '@types/react': 19.2.13
+ '@types/react-dom': 19.2.3(@types/[email protected])
+
+ dependencies:
+ '@radix-ui/number': 1.1.1
+ '@radix-ui/primitive': 1.1.3
+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])
+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])
+ '@radix-ui/react-direction': 1.1.1(@types/[email protected])([email protected])
+ '@radix-ui/react-dismissable-layer': 1.1.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])
+ '@radix-ui/react-focus-guards': 1.1.3(@types/[email protected])([email protected])
+ '@radix-ui/react-id': 1.1.1(@types/[email protected])([email protected])
+ '@radix-ui/react-slot': 1.2.3(@types/[email protected])([email protected])
+ '@radix-ui/react-use-callback-ref': 1.1.1(@types/[email protected])([email protected])
+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])
+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])
+ '@radix-ui/react-use-previous': 1.1.1(@types/[email protected])([email protected])
+ '@radix-ui/react-visually-hidden': 1.2.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])
+ aria-hidden: 1.2.6
+ react: 19.2.3
+ react-dom: 19.2.3([email protected])
+ react-remove-scroll: 2.7.2(@types/[email protected])([email protected])
+ optionalDependencies:
+ '@types/react': 19.2.13
+ '@types/react-dom': 19.2.3(@types/[email protected])
+
+ dependencies:
+ react: 19.2.3
+ react-dom: 19.2.3([email protected])
+ optionalDependencies:
+ '@types/react': 19.2.13
+ '@types/react-dom': 19.2.3(@types/[email protected])
+
+ dependencies:
+ '@radix-ui/number': 1.1.1
+ '@radix-ui/primitive': 1.1.3
+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])
+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])
+ '@radix-ui/react-direction': 1.1.1(@types/[email protected])([email protected])
+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])
+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])
+ '@radix-ui/react-use-previous': 1.1.1(@types/[email protected])([email protected])
+ '@radix-ui/react-use-size': 1.1.1(@types/[email protected])([email protected])
+ react: 19.2.3
+ react-dom: 19.2.3([email protected])
+ optionalDependencies:
+ '@types/react': 19.2.13
+ '@types/react-dom': 19.2.3(@types/[email protected])
+
+ dependencies:
+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])
+ react: 19.2.3
+ optionalDependencies:
+ '@types/react': 19.2.13
+
+ dependencies:
+ '@radix-ui/primitive': 1.1.3
+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])
+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])
+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])
+ '@radix-ui/react-use-previous': 1.1.1(@types/[email protected])([email protected])
+ '@radix-ui/react-use-size': 1.1.1(@types/[email protected])([email protected])
+ react: 19.2.3
+ react-dom: 19.2.3([email protected])
+ optionalDependencies:
+ '@types/react': 19.2.13
+ '@types/react-dom': 19.2.3(@types/[email protected])
+
+ dependencies:
+ '@radix-ui/primitive': 1.1.3
+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])
+ '@radix-ui/react-direction': 1.1.1(@types/[email protected])([email protected])
+ '@radix-ui/react-id': 1.1.1(@types/[email protected])([email protected])
+ '@radix-ui/react-roving-focus': 1.1.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])
+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])
+ react: 19.2.3
+ react-dom: 19.2.3([email protected])
+ optionalDependencies:
+ '@types/react': 19.2.13
+ '@types/react-dom': 19.2.3(@types/[email protected])
+
+ dependencies:
+ '@radix-ui/primitive': 1.1.3
+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])
+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])
+ '@radix-ui/react-dismissable-layer': 1.1.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])
+ '@radix-ui/react-use-callback-ref': 1.1.1(@types/[email protected])([email protected])
+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])
+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])
+ '@radix-ui/react-visually-hidden': 1.2.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])
+ react: 19.2.3
+ react-dom: 19.2.3([email protected])
+ optionalDependencies:
+ '@types/react': 19.2.13
+ '@types/react-dom': 19.2.3(@types/[email protected])
+
+ dependencies:
+ '@radix-ui/primitive': 1.1.3
+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])
+ '@radix-ui/react-direction': 1.1.1(@types/[email protected])([email protected])
+ '@radix-ui/react-roving-focus': 1.1.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])
+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])
+ react: 19.2.3
+ react-dom: 19.2.3([email protected])
+ optionalDependencies:
+ '@types/react': 19.2.13
+ '@types/react-dom': 19.2.3(@types/[email protected])
+
+ dependencies:
+ '@radix-ui/primitive': 1.1.3
+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])
+ react: 19.2.3
+ react-dom: 19.2.3([email protected])
+ optionalDependencies:
+ '@types/react': 19.2.13
+ '@types/react-dom': 19.2.3(@types/[email protected])
+
+ dependencies:
+ '@radix-ui/primitive': 1.1.3
+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])
+ '@radix-ui/react-direction': 1.1.1(@types/[email protected])([email protected])
+ '@radix-ui/react-roving-focus': 1.1.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])
+ '@radix-ui/react-toggle-group': 1.1.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])
+ react: 19.2.3
+ react-dom: 19.2.3([email protected])
+ optionalDependencies:
+ '@types/react': 19.2.13
+ '@types/react-dom': 19.2.3(@types/[email protected])
+
+ dependencies:
+ '@radix-ui/primitive': 1.1.3
+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])
+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])
+ '@radix-ui/react-dismissable-layer': 1.1.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])
+ '@radix-ui/react-id': 1.1.1(@types/[email protected])([email protected])
+ '@radix-ui/react-slot': 1.2.3(@types/[email protected])([email protected])
+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])
+ '@radix-ui/react-visually-hidden': 1.2.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])
+ react: 19.2.3
+ react-dom: 19.2.3([email protected])
+ optionalDependencies:
+ '@types/react': 19.2.13
+ '@types/react-dom': 19.2.3(@types/[email protected])
+
+ dependencies:
+ react: 19.2.3
+ optionalDependencies:
+ '@types/react': 19.2.13
+
+ dependencies:
+ '@radix-ui/react-use-effect-event': 0.0.2(@types/[email protected])([email protected])
+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])
+ react: 19.2.3
+ optionalDependencies:
+ '@types/react': 19.2.13
+
+ dependencies:
+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])
+ react: 19.2.3
+ optionalDependencies:
+ '@types/react': 19.2.13
+
+ dependencies:
+ '@radix-ui/react-use-callback-ref': 1.1.1(@types/[email protected])([email protected])
+ react: 19.2.3
+ optionalDependencies:
+ '@types/react': 19.2.13
+
+ dependencies:
+ react: 19.2.3
+ use-sync-external-store: 1.6.0([email protected])
+ optionalDependencies:
+ '@types/react': 19.2.13
+
+ dependencies:
+ react: 19.2.3
+ optionalDependencies:
+ '@types/react': 19.2.13
+
+ dependencies:
+ react: 19.2.3
+ optionalDependencies:
+ '@types/react': 19.2.13
+
+ dependencies:
+ '@radix-ui/rect': 1.1.1
+ react: 19.2.3
+ optionalDependencies:
+ '@types/react': 19.2.13
+
+ dependencies:
+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])
+ react: 19.2.3
+ optionalDependencies:
+ '@types/react': 19.2.13
+
+ dependencies:
+ react: 19.2.3
+ react-dom: 19.2.3([email protected])
+ optionalDependencies:
+ '@types/react': 19.2.13
+ '@types/react-dom': 19.2.3(@types/[email protected])
+
+ '@radix-ui/[email protected]': {}
+
+ '@rtsao/[email protected]': {}
+
+ '@sec-ant/[email protected]': {}
+
+ '@sindresorhus/[email protected]': {}
+
+ dependencies:
+ tslib: 2.8.1
+
+ '@tailwindcss/[email protected]':
+ dependencies:
+ '@jridgewell/remapping': 2.3.5
+ enhanced-resolve: 5.19.0
+ jiti: 2.6.1
+ lightningcss: 1.30.2
+ magic-string: 0.30.21
+ source-map-js: 1.2.1
+ tailwindcss: 4.1.18
+
+ '@tailwindcss/[email protected]':
+ optional: true
+
+ '@tailwindcss/[email protected]':
+ optional: true
+
+ '@tailwindcss/[email protected]':
+ optional: true
+
+ '@tailwindcss/[email protected]':
+ optional: true
+
+ '@tailwindcss/[email protected]':
+ optional: true
+
+ '@tailwindcss/[email protected]':
+ optional: true
+
+ '@tailwindcss/[email protected]':
+ optional: true
+
+ '@tailwindcss/[email protected]':
+ optional: true
+
+ '@tailwindcss/[email protected]':
+ optional: true
+
+ '@tailwindcss/[email protected]':
+ optional: true
+
+ '@tailwindcss/[email protected]':
+ optional: true
+
+ '@tailwindcss/[email protected]':
+ optional: true
+
+ '@tailwindcss/[email protected]':
+ optionalDependencies:
+ '@tailwindcss/oxide-android-arm64': 4.1.18
+ '@tailwindcss/oxide-darwin-arm64': 4.1.18
+ '@tailwindcss/oxide-darwin-x64': 4.1.18
+ '@tailwindcss/oxide-freebsd-x64': 4.1.18
+ '@tailwindcss/oxide-linux-arm-gnueabihf': 4.1.18
+ '@tailwindcss/oxide-linux-arm64-gnu': 4.1.18
+ '@tailwindcss/oxide-linux-arm64-musl': 4.1.18
+ '@tailwindcss/oxide-linux-x64-gnu': 4.1.18
+ '@tailwindcss/oxide-linux-x64-musl': 4.1.18
+ '@tailwindcss/oxide-wasm32-wasi': 4.1.18
+ '@tailwindcss/oxide-win32-arm64-msvc': 4.1.18
+ '@tailwindcss/oxide-win32-x64-msvc': 4.1.18
+
+ '@tailwindcss/[email protected]':
+ dependencies:
+ '@alloc/quick-lru': 5.2.0
+ '@tailwindcss/node': 4.1.18
+ '@tailwindcss/oxide': 4.1.18
+ postcss: 8.5.6
+ tailwindcss: 4.1.18
+
+ '@ts-morph/[email protected]':
+ dependencies:
+ fast-glob: 3.3.3
+ minimatch: 10.1.2
+ path-browserify: 1.0.1
+
+ '@tybys/[email protected]':
+ dependencies:
+ tslib: 2.8.1
+ optional: true
+
+ '@types/[email protected]':
+ dependencies:
+ '@types/dom-webcodecs': 0.1.13
+
+ '@types/[email protected]': {}
+
+ '@types/[email protected]': {}
+
+ '@types/[email protected]': {}
+
+ '@types/[email protected]': {}
+
+ '@types/[email protected]':
+ dependencies:
+ undici-types: 6.21.0
+
+ dependencies:
+ '@types/react': 19.2.13
+
+ '@types/[email protected]':
+ dependencies:
+ csstype: 3.2.3
+
+ '@types/[email protected]': {}
+
+ '@types/[email protected]': {}
+
+ dependencies:
+ '@eslint-community/regexpp': 4.12.2
+ '@typescript-eslint/parser': 8.55.0([email protected]([email protected]))([email protected])
+ '@typescript-eslint/scope-manager': 8.55.0
+ '@typescript-eslint/type-utils': 8.55.0([email protected]([email protected]))([email protected])
+ '@typescript-eslint/utils': 8.55.0([email protected]([email protected]))([email protected])
+ '@typescript-eslint/visitor-keys': 8.55.0
+ eslint: 9.39.2([email protected])
+ ignore: 7.0.5
+ natural-compare: 1.4.0
+ ts-api-utils: 2.4.0([email protected])
+ typescript: 5.9.3
+ transitivePeerDependencies:
+ - supports-color
+
+ dependencies:
+ '@typescript-eslint/scope-manager': 8.55.0
+ '@typescript-eslint/types': 8.55.0
+ '@typescript-eslint/typescript-estree': 8.55.0([email protected])
+ '@typescript-eslint/visitor-keys': 8.55.0
+ debug: 4.4.3
+ eslint: 9.39.2([email protected])
+ typescript: 5.9.3
+ transitivePeerDependencies:
+ - supports-color
+
+ '@typescript-eslint/[email protected]([email protected])':
+ dependencies:
+ '@typescript-eslint/tsconfig-utils': 8.55.0([email protected])
+ '@typescript-eslint/types': 8.55.0
+ debug: 4.4.3
+ typescript: 5.9.3
+ transitivePeerDependencies:
+ - supports-color
+
+ '@typescript-eslint/[email protected]':
+ dependencies:
+ '@typescript-eslint/types': 8.55.0
+ '@typescript-eslint/visitor-keys': 8.55.0
+
+ '@typescript-eslint/[email protected]([email protected])':
+ dependencies:
+ typescript: 5.9.3
+
+ dependencies:
+ '@typescript-eslint/types': 8.55.0
+ '@typescript-eslint/typescript-estree': 8.55.0([email protected])
+ '@typescript-eslint/utils': 8.55.0([email protected]([email protected]))([email protected])
+ debug: 4.4.3
+ eslint: 9.39.2([email protected])
+ ts-api-utils: 2.4.0([email protected])
+ typescript: 5.9.3
+ transitivePeerDependencies:
+ - supports-color
+
+ '@typescript-eslint/[email protected]': {}
+
+ '@typescript-eslint/[email protected]([email protected])':
+ dependencies:
+ '@typescript-eslint/project-service': 8.55.0([email protected])
+ '@typescript-eslint/tsconfig-utils': 8.55.0([email protected])
+ '@typescript-eslint/types': 8.55.0
+ '@typescript-eslint/visitor-keys': 8.55.0
+ debug: 4.4.3
+ minimatch: 9.0.5
+ semver: 7.7.4
+ tinyglobby: 0.2.15
+ ts-api-utils: 2.4.0([email protected])
+ typescript: 5.9.3
+ transitivePeerDependencies:
+ - supports-color
+
+ dependencies:
+ '@eslint-community/eslint-utils': 4.9.1([email protected]([email protected]))
+ '@typescript-eslint/scope-manager': 8.55.0
+ '@typescript-eslint/types': 8.55.0
+ '@typescript-eslint/typescript-estree': 8.55.0([email protected])
+ eslint: 9.39.2([email protected])
+ typescript: 5.9.3
+ transitivePeerDependencies:
+ - supports-color
+
+ '@typescript-eslint/[email protected]':
+ dependencies:
+ '@typescript-eslint/types': 8.55.0
+ eslint-visitor-keys: 4.2.1
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ dependencies:
+ '@napi-rs/wasm-runtime': 0.2.12
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ dependencies:
+ mime-types: 3.0.2
+ negotiator: 1.0.0
+
+ dependencies:
+ acorn: 8.15.0
+
+
+
+ optionalDependencies:
+ ajv: 8.17.1
+
+ dependencies:
+ fast-deep-equal: 3.1.3
+ fast-json-stable-stringify: 2.1.0
+ json-schema-traverse: 0.4.1
+ uri-js: 4.4.1
+
+ dependencies:
+ fast-deep-equal: 3.1.3
+ fast-uri: 3.1.0
+ json-schema-traverse: 1.0.0
+ require-from-string: 2.0.2
+
+
+
+ dependencies:
+ color-convert: 2.0.1
+
+
+
+ dependencies:
+ tslib: 2.8.1
+
+
+ dependencies:
+ call-bound: 1.0.4
+ is-array-buffer: 3.0.5
+
+ dependencies:
+ call-bind: 1.0.8
+ call-bound: 1.0.4
+ define-properties: 1.2.1
+ es-abstract: 1.24.1
+ es-object-atoms: 1.1.1
+ get-intrinsic: 1.3.0
+ is-string: 1.1.1
+ math-intrinsics: 1.1.0
+
+ dependencies:
+ call-bind: 1.0.8
+ define-properties: 1.2.1
+ es-abstract: 1.24.1
+ es-errors: 1.3.0
+ es-object-atoms: 1.1.1
+ es-shim-unscopables: 1.1.0
+
+ dependencies:
+ call-bind: 1.0.8
+ call-bound: 1.0.4
+ define-properties: 1.2.1
+ es-abstract: 1.24.1
+ es-errors: 1.3.0
+ es-object-atoms: 1.1.1
+ es-shim-unscopables: 1.1.0
+
+ dependencies:
+ call-bind: 1.0.8
+ define-properties: 1.2.1
+ es-abstract: 1.24.1
+ es-shim-unscopables: 1.1.0
+
+ dependencies:
+ call-bind: 1.0.8
+ define-properties: 1.2.1
+ es-abstract: 1.24.1
+ es-shim-unscopables: 1.1.0
+
+ dependencies:
+ call-bind: 1.0.8
+ define-properties: 1.2.1
+ es-abstract: 1.24.1
+ es-errors: 1.3.0
+ es-shim-unscopables: 1.1.0
+
+ dependencies:
+ array-buffer-byte-length: 1.0.2
+ call-bind: 1.0.8
+ define-properties: 1.2.1
+ es-abstract: 1.24.1
+ es-errors: 1.3.0
+ get-intrinsic: 1.3.0
+ is-array-buffer: 3.0.5
+
+
+ dependencies:
+ tslib: 2.8.1
+
+
+ dependencies:
+ possible-typed-array-names: 1.1.0
+
+
+
+
+
+ dependencies:
+ bytes: 3.1.2
+ content-type: 1.0.5
+ debug: 4.4.3
+ http-errors: 2.0.1
+ iconv-lite: 0.7.2
+ on-finished: 2.4.1
+ qs: 6.14.1
+ raw-body: 3.0.2
+ type-is: 2.0.1
+ transitivePeerDependencies:
+ - supports-color
+
+ dependencies:
+ balanced-match: 1.0.2
+ concat-map: 0.0.1
+
+ dependencies:
+ balanced-match: 1.0.2
+
+ dependencies:
+ fill-range: 7.1.1
+
+ dependencies:
+ baseline-browser-mapping: 2.9.19
+ caniuse-lite: 1.0.30001769
+ electron-to-chromium: 1.5.286
+ node-releases: 2.0.27
+ update-browserslist-db: 1.2.3([email protected])
+
+ dependencies:
+ run-applescript: 7.1.0
+
+
+ dependencies:
+ es-errors: 1.3.0
+ function-bind: 1.1.2
+
+ dependencies:
+ call-bind-apply-helpers: 1.0.2
+ es-define-property: 1.0.1
+ get-intrinsic: 1.3.0
+ set-function-length: 1.2.2
+
+ dependencies:
+ call-bind-apply-helpers: 1.0.2
+ get-intrinsic: 1.3.0
+
+
+
+ dependencies:
+ ansi-styles: 4.3.0
+ supports-color: 7.2.0
+
+
+ dependencies:
+ clsx: 2.1.1
+
+ dependencies:
+ restore-cursor: 5.1.0
+
+
+
+
+ dependencies:
+ string-width: 4.2.3
+ strip-ansi: 6.0.1
+ wrap-ansi: 7.0.0
+
+
+
+ dependencies:
+ color-name: 1.1.4
+
+
+
+
+
+
+
+
+
+
+
+ dependencies:
+ object-assign: 4.1.1
+ vary: 1.1.2
+
+ dependencies:
+ env-paths: 2.2.1
+ import-fresh: 3.3.1
+ js-yaml: 4.1.1
+ parse-json: 5.2.0
+ optionalDependencies:
+ typescript: 5.9.3
+
+ dependencies:
+ path-key: 3.1.1
+ shebang-command: 2.0.0
+ which: 2.0.2
+
+
+
+
+
+ dependencies:
+ call-bound: 1.0.4
+ es-errors: 1.3.0
+ is-data-view: 1.0.2
+
+ dependencies:
+ call-bound: 1.0.4
+ es-errors: 1.3.0
+ is-data-view: 1.0.2
+
+ dependencies:
+ call-bound: 1.0.4
+ es-errors: 1.3.0
+ is-data-view: 1.0.2
+
+ dependencies:
+ ms: 2.1.3
+
+ dependencies:
+ ms: 2.1.3
+
+
+
+
+
+ dependencies:
+ bundle-name: 4.1.0
+ default-browser-id: 5.0.1
+
+ dependencies:
+ es-define-property: 1.0.1
+ es-errors: 1.3.0
+ gopd: 1.2.0
+
+
+ dependencies:
+ define-data-property: 1.1.4
+ has-property-descriptors: 1.0.2
+ object-keys: 1.1.1
+
+
+
+
+
+ dependencies:
+ esutils: 2.0.3
+
+
+ dependencies:
+ call-bind-apply-helpers: 1.0.2
+ es-errors: 1.3.0
+ gopd: 1.2.0
+
+ dependencies:
+ '@ecies/ciphers': 0.2.5(@noble/[email protected])
+ '@noble/ciphers': 1.3.0
+ '@noble/curves': 1.9.7
+ '@noble/hashes': 1.8.0
+
+
+
+
+
+
+
+ dependencies:
+ graceful-fs: 4.2.11
+ tapable: 2.3.0
+
+
+ dependencies:
+ is-arrayish: 0.2.1
+
+ dependencies:
+ array-buffer-byte-length: 1.0.2
+ arraybuffer.prototype.slice: 1.0.4
+ available-typed-arrays: 1.0.7
+ call-bind: 1.0.8
+ call-bound: 1.0.4
+ data-view-buffer: 1.0.2
+ data-view-byte-length: 1.0.2
+ data-view-byte-offset: 1.0.1
+ es-define-property: 1.0.1
+ es-errors: 1.3.0
+ es-object-atoms: 1.1.1
+ es-set-tostringtag: 2.1.0
+ es-to-primitive: 1.3.0
+ function.prototype.name: 1.1.8
+ get-intrinsic: 1.3.0
+ get-proto: 1.0.1
+ get-symbol-description: 1.1.0
+ globalthis: 1.0.4
+ gopd: 1.2.0
+ has-property-descriptors: 1.0.2
+ has-proto: 1.2.0
+ has-symbols: 1.1.0
+ hasown: 2.0.2
+ internal-slot: 1.1.0
+ is-array-buffer: 3.0.5
+ is-callable: 1.2.7
+ is-data-view: 1.0.2
+ is-negative-zero: 2.0.3
+ is-regex: 1.2.1
+ is-set: 2.0.3
+ is-shared-array-buffer: 1.0.4
+ is-string: 1.1.1
+ is-typed-array: 1.1.15
+ is-weakref: 1.1.1
+ math-intrinsics: 1.1.0
+ object-inspect: 1.13.4
+ object-keys: 1.1.1
+ object.assign: 4.1.7
+ own-keys: 1.0.1
+ regexp.prototype.flags: 1.5.4
+ safe-array-concat: 1.1.3
+ safe-push-apply: 1.0.0
+ safe-regex-test: 1.1.0
+ set-proto: 1.0.0
+ stop-iteration-iterator: 1.1.0
+ string.prototype.trim: 1.2.10
+ string.prototype.trimend: 1.0.9
+ string.prototype.trimstart: 1.0.8
+ typed-array-buffer: 1.0.3
+ typed-array-byte-length: 1.0.3
+ typed-array-byte-offset: 1.0.4
+ typed-array-length: 1.0.7
+ unbox-primitive: 1.1.0
+ which-typed-array: 1.1.20
+
+
+
+ dependencies:
+ call-bind: 1.0.8
+ call-bound: 1.0.4
+ define-properties: 1.2.1
+ es-abstract: 1.24.1
+ es-errors: 1.3.0
+ es-set-tostringtag: 2.1.0
+ function-bind: 1.1.2
+ get-intrinsic: 1.3.0
+ globalthis: 1.0.4
+ gopd: 1.2.0
+ has-property-descriptors: 1.0.2
+ has-proto: 1.2.0
+ has-symbols: 1.1.0
+ internal-slot: 1.1.0
+ iterator.prototype: 1.1.5
+ safe-array-concat: 1.1.3
+
+ dependencies:
+ es-errors: 1.3.0
+
+ dependencies:
+ es-errors: 1.3.0
+ get-intrinsic: 1.3.0
+ has-tostringtag: 1.0.2
+ hasown: 2.0.2
+
+ dependencies:
+ hasown: 2.0.2
+
+ dependencies:
+ is-callable: 1.2.7
+ is-date-object: 1.1.0
+ is-symbol: 1.1.1
+
+
+
+
+ dependencies:
+ '@next/eslint-plugin-next': 16.1.6
+ eslint: 9.39.2([email protected])
+ eslint-import-resolver-node: 0.3.9
+ eslint-import-resolver-typescript: 3.10.1([email protected])([email protected]([email protected]))
+ eslint-plugin-jsx-a11y: 6.10.2([email protected]([email protected]))
+ eslint-plugin-react: 7.37.5([email protected]([email protected]))
+ eslint-plugin-react-hooks: 7.0.1([email protected]([email protected]))
+ globals: 16.4.0
+ optionalDependencies:
+ typescript: 5.9.3
+ transitivePeerDependencies:
+ - '@typescript-eslint/parser'
+ - eslint-import-resolver-webpack
+ - eslint-plugin-import-x
+ - supports-color
+
+ dependencies:
+ debug: 3.2.7
+ is-core-module: 2.16.1
+ resolve: 1.22.11
+ transitivePeerDependencies:
+ - supports-color
+
+ dependencies:
+ '@nolyfill/is-core-module': 1.0.39
+ debug: 4.4.3
+ eslint: 9.39.2([email protected])
+ get-tsconfig: 4.13.6
+ is-bun-module: 2.0.0
+ stable-hash: 0.0.5
+ tinyglobby: 0.2.15
+ unrs-resolver: 1.11.1
+ optionalDependencies:
+ transitivePeerDependencies:
+ - supports-color
+
+ dependencies:
+ debug: 3.2.7
+ optionalDependencies:
+ '@typescript-eslint/parser': 8.55.0([email protected]([email protected]))([email protected])
+ eslint: 9.39.2([email protected])
+ eslint-import-resolver-node: 0.3.9
+ eslint-import-resolver-typescript: 3.10.1([email protected])([email protected]([email protected]))
+ transitivePeerDependencies:
+ - supports-color
+
+ dependencies:
+ '@rtsao/scc': 1.1.0
+ array-includes: 3.1.9
+ array.prototype.findlastindex: 1.2.6
+ array.prototype.flat: 1.3.3
+ array.prototype.flatmap: 1.3.3
+ debug: 3.2.7
+ doctrine: 2.1.0
+ eslint: 9.39.2([email protected])
+ eslint-import-resolver-node: 0.3.9
+ hasown: 2.0.2
+ is-core-module: 2.16.1
+ is-glob: 4.0.3
+ minimatch: 3.1.2
+ object.fromentries: 2.0.8
+ object.groupby: 1.0.3
+ object.values: 1.2.1
+ semver: 6.3.1
+ string.prototype.trimend: 1.0.9
+ tsconfig-paths: 3.15.0
+ optionalDependencies:
+ '@typescript-eslint/parser': 8.55.0([email protected]([email protected]))([email protected])
+ transitivePeerDependencies:
+ - eslint-import-resolver-typescript
+ - eslint-import-resolver-webpack
+ - supports-color
+
+ dependencies:
+ aria-query: 5.3.2
+ array-includes: 3.1.9
+ array.prototype.flatmap: 1.3.3
+ ast-types-flow: 0.0.8
+ axe-core: 4.11.1
+ axobject-query: 4.1.0
+ damerau-levenshtein: 1.0.8
+ emoji-regex: 9.2.2
+ eslint: 9.39.2([email protected])
+ hasown: 2.0.2
+ jsx-ast-utils: 3.3.5
+ language-tags: 1.0.9
+ minimatch: 3.1.2
+ object.fromentries: 2.0.8
+ safe-regex-test: 1.1.0
+ string.prototype.includes: 2.0.1
+
+ dependencies:
+ '@babel/core': 7.29.0
+ '@babel/parser': 7.29.0
+ eslint: 9.39.2([email protected])
+ hermes-parser: 0.25.1
+ zod: 4.3.6
+ zod-validation-error: 4.0.2([email protected])
+ transitivePeerDependencies:
+ - supports-color
+
+ dependencies:
+ array-includes: 3.1.9
+ array.prototype.findlast: 1.2.5
+ array.prototype.flatmap: 1.3.3
+ array.prototype.tosorted: 1.1.4
+ doctrine: 2.1.0
+ es-iterator-helpers: 1.2.2
+ eslint: 9.39.2([email protected])
+ estraverse: 5.3.0
+ hasown: 2.0.2
+ jsx-ast-utils: 3.3.5
+ minimatch: 3.1.2
+ object.entries: 1.1.9
+ object.fromentries: 2.0.8
+ object.values: 1.2.1
+ prop-types: 15.8.1
+ resolve: 2.0.0-next.5
+ semver: 6.3.1
+ string.prototype.matchall: 4.0.12
+ string.prototype.repeat: 1.0.0
+
+ dependencies:
+ esrecurse: 4.3.0
+ estraverse: 5.3.0
+
+
+
+ dependencies:
+ '@eslint-community/eslint-utils': 4.9.1([email protected]([email protected]))
+ '@eslint-community/regexpp': 4.12.2
+ '@eslint/config-array': 0.21.1
+ '@eslint/config-helpers': 0.4.2
+ '@eslint/core': 0.17.0
+ '@eslint/eslintrc': 3.3.3
+ '@eslint/js': 9.39.2
+ '@eslint/plugin-kit': 0.4.1
+ '@humanfs/node': 0.16.7
+ '@humanwhocodes/module-importer': 1.0.1
+ '@humanwhocodes/retry': 0.4.3
+ '@types/estree': 1.0.8
+ ajv: 6.12.6
+ chalk: 4.1.2
+ cross-spawn: 7.0.6
+ debug: 4.4.3
+ escape-string-regexp: 4.0.0
+ eslint-scope: 8.4.0
+ eslint-visitor-keys: 4.2.1
+ espree: 10.4.0
+ esquery: 1.7.0
+ esutils: 2.0.3
+ fast-deep-equal: 3.1.3
+ file-entry-cache: 8.0.0
+ find-up: 5.0.0
+ glob-parent: 6.0.2
+ ignore: 5.3.2
+ imurmurhash: 0.1.4
+ is-glob: 4.0.3
+ json-stable-stringify-without-jsonify: 1.0.1
+ lodash.merge: 4.6.2
+ minimatch: 3.1.2
+ natural-compare: 1.4.0
+ optionator: 0.9.4
+ optionalDependencies:
+ jiti: 2.6.1
+ transitivePeerDependencies:
+ - supports-color
+
+ dependencies:
+ acorn: 8.15.0
+ acorn-jsx: 5.3.2([email protected])
+ eslint-visitor-keys: 4.2.1
+
+
+ dependencies:
+ estraverse: 5.3.0
+
+ dependencies:
+ estraverse: 5.3.0
+
+
+
+
+
+ dependencies:
+ eventsource-parser: 3.0.6
+
+ dependencies:
+ cross-spawn: 7.0.6
+ get-stream: 6.0.1
+ human-signals: 2.1.0
+ is-stream: 2.0.1
+ merge-stream: 2.0.0
+ npm-run-path: 4.0.1
+ onetime: 5.1.2
+ signal-exit: 3.0.7
+ strip-final-newline: 2.0.0
+
+ dependencies:
+ '@sindresorhus/merge-streams': 4.0.0
+ cross-spawn: 7.0.6
+ figures: 6.1.0
+ get-stream: 9.0.1
+ human-signals: 8.0.1
+ is-plain-obj: 4.1.0
+ is-stream: 4.0.1
+ npm-run-path: 6.0.0
+ pretty-ms: 9.3.0
+ signal-exit: 4.1.0
+ strip-final-newline: 4.0.0
+ yoctocolors: 2.1.2
+
+ dependencies:
+ express: 5.2.1
+ ip-address: 10.0.1
+
+ dependencies:
+ accepts: 2.0.0
+ body-parser: 2.2.2
+ content-disposition: 1.0.1
+ content-type: 1.0.5
+ cookie: 0.7.2
+ cookie-signature: 1.2.2
+ debug: 4.4.3
+ depd: 2.0.0
+ encodeurl: 2.0.0
+ escape-html: 1.0.3
+ etag: 1.8.1
+ finalhandler: 2.1.1
+ fresh: 2.0.0
+ http-errors: 2.0.1
+ merge-descriptors: 2.0.0
+ mime-types: 3.0.2
+ on-finished: 2.4.1
+ once: 1.4.0
+ parseurl: 1.3.3
+ proxy-addr: 2.0.7
+ qs: 6.14.1
+ range-parser: 1.2.1
+ router: 2.2.0
+ send: 1.2.1
+ serve-static: 2.2.1
+ statuses: 2.0.2
+ type-is: 2.0.1
+ vary: 1.1.2
+ transitivePeerDependencies:
+ - supports-color
+
+
+ dependencies:
+ '@nodelib/fs.stat': 2.0.5
+ '@nodelib/fs.walk': 1.2.8
+ glob-parent: 5.1.2
+ merge2: 1.4.1
+ micromatch: 4.0.8
+
+ dependencies:
+ '@nodelib/fs.stat': 2.0.5
+ '@nodelib/fs.walk': 1.2.8
+ glob-parent: 5.1.2
+ merge2: 1.4.1
+ micromatch: 4.0.8
+
+
+
+
+ dependencies:
+ reusify: 1.1.0
+
+ optionalDependencies:
+ picomatch: 4.0.3
+
+ dependencies:
+ node-domexception: 1.0.0
+ web-streams-polyfill: 3.3.3
+
+ dependencies:
+ is-unicode-supported: 2.1.0
+
+ dependencies:
+ flat-cache: 4.0.1
+
+ dependencies:
+ to-regex-range: 5.0.1
+
+ dependencies:
+ debug: 4.4.3
+ encodeurl: 2.0.0
+ escape-html: 1.0.3
+ on-finished: 2.4.1
+ parseurl: 1.3.3
+ statuses: 2.0.2
+ transitivePeerDependencies:
+ - supports-color
+
+ dependencies:
+ locate-path: 6.0.0
+ path-exists: 4.0.0
+
+ dependencies:
+ flatted: 3.3.3
+ keyv: 4.5.4
+
+
+ dependencies:
+ is-callable: 1.2.7
+
+ dependencies:
+ fetch-blob: 3.2.0
+
+
+ dependencies:
+ motion-dom: 12.34.3
+ motion-utils: 12.29.2
+ tslib: 2.8.1
+ optionalDependencies:
+ react: 19.2.3
+ react-dom: 19.2.3([email protected])
+
+
+ dependencies:
+ graceful-fs: 4.2.11
+ jsonfile: 6.2.0
+ universalify: 2.0.1
+
+
+ dependencies:
+ call-bind: 1.0.8
+ call-bound: 1.0.4
+ define-properties: 1.2.1
+ functions-have-names: 1.2.3
+ hasown: 2.0.2
+ is-callable: 1.2.7
+
+
+
+
+
+
+
+
+ dependencies:
+ call-bind-apply-helpers: 1.0.2
+ es-define-property: 1.0.1
+ es-errors: 1.3.0
+ es-object-atoms: 1.1.1
+ function-bind: 1.1.2
+ get-proto: 1.0.1
+ gopd: 1.2.0
+ has-symbols: 1.1.0
+ hasown: 2.0.2
+ math-intrinsics: 1.1.0
+
+
+
+ dependencies:
+ dunder-proto: 1.0.1
+ es-object-atoms: 1.1.1
+
+
+ dependencies:
+ '@sec-ant/readable-stream': 0.4.1
+ is-stream: 4.0.1
+
+ dependencies:
+ call-bound: 1.0.4
+ es-errors: 1.3.0
+ get-intrinsic: 1.3.0
+
+ dependencies:
+ resolve-pkg-maps: 1.0.0
+
+ dependencies:
+ is-glob: 4.0.3
+
+ dependencies:
+ is-glob: 4.0.3
+
+
+
+ dependencies:
+ define-properties: 1.2.1
+ gopd: 1.2.0
+
+
+
+
+
+
+ dependencies:
+ es-define-property: 1.0.1
+
+ dependencies:
+ dunder-proto: 1.0.1
+
+
+ dependencies:
+ has-symbols: 1.1.0
+
+ dependencies:
+ function-bind: 1.1.2
+
+
+
+ dependencies:
+ hermes-estree: 0.25.1
+
+
+ dependencies:
+ depd: 2.0.0
+ inherits: 2.0.4
+ setprototypeof: 1.2.0
+ statuses: 2.0.2
+ toidentifier: 1.0.1
+
+ dependencies:
+ agent-base: 7.1.4
+ debug: 4.4.3
+ transitivePeerDependencies:
+ - supports-color
+
+
+
+ dependencies:
+ safer-buffer: 2.1.2
+
+
+
+ dependencies:
+ parent-module: 1.0.1
+ resolve-from: 4.0.0
+
+
+
+ dependencies:
+ es-errors: 1.3.0
+ hasown: 2.0.2
+ side-channel: 1.1.0
+
+
+
+ dependencies:
+ call-bind: 1.0.8
+ call-bound: 1.0.4
+ get-intrinsic: 1.3.0
+
+
+ dependencies:
+ async-function: 1.0.0
+ call-bound: 1.0.4
+ get-proto: 1.0.1
+ has-tostringtag: 1.0.2
+ safe-regex-test: 1.1.0
+
+ dependencies:
+ has-bigints: 1.1.0
+
+ dependencies:
+ call-bound: 1.0.4
+ has-tostringtag: 1.0.2
+
+ dependencies:
+ semver: 7.7.4
+
+
+ dependencies:
+ hasown: 2.0.2
+
+ dependencies:
+ call-bound: 1.0.4
+ get-intrinsic: 1.3.0
+ is-typed-array: 1.1.15
+
+ dependencies:
+ call-bound: 1.0.4
+ has-tostringtag: 1.0.2
+
+
+
+ dependencies:
+ call-bound: 1.0.4
+
+
+ dependencies:
+ call-bound: 1.0.4
+ generator-function: 2.0.1
+ get-proto: 1.0.1
+ has-tostringtag: 1.0.2
+ safe-regex-test: 1.1.0
+
+ dependencies:
+ is-extglob: 2.1.1
+
+
+ dependencies:
+ is-docker: 3.0.0
+
+
+
+
+
+ dependencies:
+ call-bound: 1.0.4
+ has-tostringtag: 1.0.2
+
+
+
+
+
+ dependencies:
+ call-bound: 1.0.4
+ gopd: 1.2.0
+ has-tostringtag: 1.0.2
+ hasown: 2.0.2
+
+
+
+ dependencies:
+ call-bound: 1.0.4
+
+
+
+ dependencies:
+ call-bound: 1.0.4
+ has-tostringtag: 1.0.2
+
+ dependencies:
+ call-bound: 1.0.4
+ has-symbols: 1.1.0
+ safe-regex-test: 1.1.0
+
+ dependencies:
+ which-typed-array: 1.1.20
+
+
+
+
+ dependencies:
+ call-bound: 1.0.4
+
+ dependencies:
+ call-bound: 1.0.4
+ get-intrinsic: 1.3.0
+
+ dependencies:
+ is-inside-container: 1.0.0
+
+
+
+
+ dependencies:
+ define-data-property: 1.1.4
+ es-object-atoms: 1.1.1
+ get-intrinsic: 1.3.0
+ get-proto: 1.0.1
+ has-symbols: 1.1.0
+ set-function-name: 2.0.2
+
+
+
+
+ dependencies:
+ argparse: 2.0.1
+
+
+
+
+
+
+
+
+ dependencies:
+ minimist: 1.2.8
+
+
+ dependencies:
+ universalify: 2.0.1
+ optionalDependencies:
+ graceful-fs: 4.2.11
+
+ dependencies:
+ array-includes: 3.1.9
+ array.prototype.flat: 1.3.3
+ object.assign: 4.1.7
+ object.values: 1.2.1
+
+ dependencies:
+ json-buffer: 3.0.1
+
+
+
+
+ dependencies:
+ language-subtag-registry: 0.3.23
+
+ dependencies:
+ prelude-ls: 1.2.1
+ type-check: 0.4.0
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ optional: true
+
+ dependencies:
+ detect-libc: 2.1.2
+ optionalDependencies:
+ lightningcss-android-arm64: 1.30.2
+ lightningcss-darwin-arm64: 1.30.2
+ lightningcss-darwin-x64: 1.30.2
+ lightningcss-freebsd-x64: 1.30.2
+ lightningcss-linux-arm-gnueabihf: 1.30.2
+ lightningcss-linux-arm64-gnu: 1.30.2
+ lightningcss-linux-arm64-musl: 1.30.2
+ lightningcss-linux-x64-gnu: 1.30.2
+ lightningcss-linux-x64-musl: 1.30.2
+ lightningcss-win32-arm64-msvc: 1.30.2
+ lightningcss-win32-x64-msvc: 1.30.2
+
+
+ dependencies:
+ p-locate: 5.0.0
+
+
+ dependencies:
+ chalk: 5.6.2
+ is-unicode-supported: 1.3.0
+
+ dependencies:
+ js-tokens: 4.0.0
+
+ dependencies:
+ yallist: 3.1.1
+
+ dependencies:
+ react: 19.2.3
+
+ dependencies:
+ '@jridgewell/sourcemap-codec': 1.5.5
+
+
+
+ dependencies:
+ '@types/dom-mediacapture-transform': 0.1.11
+ '@types/dom-webcodecs': 0.1.13
+
+
+
+
+ dependencies:
+ braces: 3.0.3
+ picomatch: 2.3.1
+
+
+ dependencies:
+ mime-db: 1.54.0
+
+
+
+ dependencies:
+ '@isaacs/brace-expansion': 5.0.1
+
+ dependencies:
+ brace-expansion: 1.1.12
+
+ dependencies:
+ brace-expansion: 2.0.2
+
+
+ dependencies:
+ motion-utils: 12.29.2
+
+
+
+ dependencies:
+ '@inquirer/confirm': 5.1.21(@types/[email protected])
+ '@mswjs/interceptors': 0.41.2
+ '@open-draft/deferred-promise': 2.2.0
+ '@types/statuses': 2.0.6
+ cookie: 1.1.1
+ graphql: 16.12.0
+ headers-polyfill: 4.0.3
+ is-node-process: 1.2.0
+ outvariant: 1.4.3
+ path-to-regexp: 6.3.0
+ picocolors: 1.1.1
+ rettime: 0.10.1
+ statuses: 2.0.2
+ strict-event-emitter: 0.5.1
+ tough-cookie: 6.0.0
+ type-fest: 5.4.4
+ until-async: 3.0.2
+ yargs: 17.7.2
+ optionalDependencies:
+ typescript: 5.9.3
+ transitivePeerDependencies:
+ - '@types/node'
+
+
+
+
+
+
+ dependencies:
+ '@next/env': 16.1.6
+ '@swc/helpers': 0.5.15
+ baseline-browser-mapping: 2.9.19
+ caniuse-lite: 1.0.30001769
+ postcss: 8.4.31
+ react: 19.2.3
+ react-dom: 19.2.3([email protected])
+ styled-jsx: 5.1.6(@babel/[email protected])([email protected])
+ optionalDependencies:
+ '@next/swc-darwin-arm64': 16.1.6
+ '@next/swc-darwin-x64': 16.1.6
+ '@next/swc-linux-arm64-gnu': 16.1.6
+ '@next/swc-linux-arm64-musl': 16.1.6
+ '@next/swc-linux-x64-gnu': 16.1.6
+ '@next/swc-linux-x64-musl': 16.1.6
+ '@next/swc-win32-arm64-msvc': 16.1.6
+ '@next/swc-win32-x64-msvc': 16.1.6
+ sharp: 0.34.5
+ transitivePeerDependencies:
+ - '@babel/core'
+ - babel-plugin-macros
+
+
+ dependencies:
+ data-uri-to-buffer: 4.0.1
+ fetch-blob: 3.2.0
+ formdata-polyfill: 4.0.10
+
+
+ dependencies:
+ path-key: 3.1.1
+
+ dependencies:
+ path-key: 4.0.0
+ unicorn-magic: 0.3.0
+
+
+
+
+
+ dependencies:
+ call-bind: 1.0.8
+ call-bound: 1.0.4
+ define-properties: 1.2.1
+ es-object-atoms: 1.1.1
+ has-symbols: 1.1.0
+ object-keys: 1.1.1
+
+ dependencies:
+ call-bind: 1.0.8
+ call-bound: 1.0.4
+ define-properties: 1.2.1
+ es-object-atoms: 1.1.1
+
+ dependencies:
+ call-bind: 1.0.8
+ define-properties: 1.2.1
+ es-abstract: 1.24.1
+ es-object-atoms: 1.1.1
+
+ dependencies:
+ call-bind: 1.0.8
+ define-properties: 1.2.1
+ es-abstract: 1.24.1
+
+ dependencies:
+ call-bind: 1.0.8
+ call-bound: 1.0.4
+ define-properties: 1.2.1
+ es-object-atoms: 1.1.1
+
+ dependencies:
+ ee-first: 1.1.1
+
+ dependencies:
+ wrappy: 1.0.2
+
+ dependencies:
+ mimic-fn: 2.1.0
+
+ dependencies:
+ mimic-function: 5.0.1
+
+ dependencies:
+ default-browser: 5.5.0
+ define-lazy-prop: 3.0.0
+ is-in-ssh: 1.0.0
+ is-inside-container: 1.0.0
+ powershell-utils: 0.1.0
+ wsl-utils: 0.3.1
+
+ dependencies:
+ deep-is: 0.1.4
+ fast-levenshtein: 2.0.6
+ levn: 0.4.1
+ prelude-ls: 1.2.1
+ type-check: 0.4.0
+ word-wrap: 1.2.5
+
+ dependencies:
+ chalk: 5.6.2
+ cli-cursor: 5.0.0
+ cli-spinners: 2.9.2
+ is-interactive: 2.0.0
+ is-unicode-supported: 2.1.0
+ log-symbols: 6.0.0
+ stdin-discarder: 0.2.2
+ string-width: 7.2.0
+ strip-ansi: 7.1.2
+
+
+ dependencies:
+ get-intrinsic: 1.3.0
+ object-keys: 1.1.1
+ safe-push-apply: 1.0.0
+
+ dependencies:
+ yocto-queue: 0.1.0
+
+ dependencies:
+ p-limit: 3.1.0
+
+
+ dependencies:
+ callsites: 3.1.0
+
+ dependencies:
+ '@babel/code-frame': 7.29.0
+ error-ex: 1.3.4
+ json-parse-even-better-errors: 2.3.1
+ lines-and-columns: 1.2.4
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ dependencies:
+ cssesc: 3.0.0
+ util-deprecate: 1.0.2
+
+ dependencies:
+ nanoid: 3.3.11
+ picocolors: 1.1.1
+ source-map-js: 1.2.1
+
+ dependencies:
+ nanoid: 3.3.11
+ picocolors: 1.1.1
+ source-map-js: 1.2.1
+
+
+
+ dependencies:
+ parse-ms: 4.0.0
+
+ dependencies:
+ kleur: 3.0.3
+ sisteransi: 1.0.5
+
+ dependencies:
+ loose-envify: 1.4.0
+ object-assign: 4.1.1
+ react-is: 16.13.1
+
+ dependencies:
+ forwarded: 0.2.0
+ ipaddr.js: 1.9.1
+
+
+ dependencies:
+ side-channel: 1.1.0
+
+
+ dependencies:
+ '@radix-ui/primitive': 1.1.3
+ '@radix-ui/react-accessible-icon': 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])
+ '@radix-ui/react-alert-dialog': 1.1.15(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])
+ '@radix-ui/react-aspect-ratio': 1.1.7(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])
+ '@radix-ui/react-collapsible': 1.1.12(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])
+ '@radix-ui/react-compose-refs': 1.1.2(@types/[email protected])([email protected])
+ '@radix-ui/react-context': 1.1.2(@types/[email protected])([email protected])
+ '@radix-ui/react-context-menu': 2.2.16(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])
+ '@radix-ui/react-direction': 1.1.1(@types/[email protected])([email protected])
+ '@radix-ui/react-dismissable-layer': 1.1.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])
+ '@radix-ui/react-dropdown-menu': 2.1.16(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])
+ '@radix-ui/react-focus-guards': 1.1.3(@types/[email protected])([email protected])
+ '@radix-ui/react-navigation-menu': 1.2.14(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])
+ '@radix-ui/react-one-time-password-field': 0.1.8(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])
+ '@radix-ui/react-password-toggle-field': 0.1.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])
+ '@radix-ui/react-roving-focus': 1.1.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])
+ '@radix-ui/react-scroll-area': 1.2.10(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])
+ '@radix-ui/react-slot': 1.2.3(@types/[email protected])([email protected])
+ '@radix-ui/react-toggle-group': 1.1.11(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])
+ '@radix-ui/react-use-callback-ref': 1.1.1(@types/[email protected])([email protected])
+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/[email protected])([email protected])
+ '@radix-ui/react-use-effect-event': 0.0.2(@types/[email protected])([email protected])
+ '@radix-ui/react-use-escape-keydown': 1.1.1(@types/[email protected])([email protected])
+ '@radix-ui/react-use-is-hydrated': 0.1.0(@types/[email protected])([email protected])
+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/[email protected])([email protected])
+ '@radix-ui/react-use-size': 1.1.1(@types/[email protected])([email protected])
+ '@radix-ui/react-visually-hidden': 1.2.3(@types/[email protected](@types/[email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])
+ react: 19.2.3
+ react-dom: 19.2.3([email protected])
+ optionalDependencies:
+ '@types/react': 19.2.13
+ '@types/react-dom': 19.2.3(@types/[email protected])
+
+
+ dependencies:
+ bytes: 3.1.2
+ http-errors: 2.0.1
+ iconv-lite: 0.7.2
+ unpipe: 1.0.0
+
+ dependencies:
+ react: 19.2.3
+ scheduler: 0.27.0
+
+
+ dependencies:
+ react: 19.2.3
+ react-style-singleton: 2.2.3(@types/[email protected])([email protected])
+ tslib: 2.8.1
+ optionalDependencies:
+ '@types/react': 19.2.13
+
+ dependencies:
+ react: 19.2.3
+ react-remove-scroll-bar: 2.3.8(@types/[email protected])([email protected])
+ react-style-singleton: 2.2.3(@types/[email protected])([email protected])
+ tslib: 2.8.1
+ use-callback-ref: 1.3.3(@types/[email protected])([email protected])
+ use-sidecar: 1.1.3(@types/[email protected])([email protected])
+ optionalDependencies:
+ '@types/react': 19.2.13
+
+ dependencies:
+ get-nonce: 1.0.1
+ react: 19.2.3
+ tslib: 2.8.1
+ optionalDependencies:
+ '@types/react': 19.2.13
+
+
+ dependencies:
+ ast-types: 0.16.1
+ esprima: 4.0.1
+ source-map: 0.6.1
+ tiny-invariant: 1.3.3
+ tslib: 2.8.1
+
+ dependencies:
+ call-bind: 1.0.8
+ define-properties: 1.2.1
+ es-abstract: 1.24.1
+ es-errors: 1.3.0
+ es-object-atoms: 1.1.1
+ get-intrinsic: 1.3.0
+ get-proto: 1.0.1
+ which-builtin-type: 1.2.1
+
+ dependencies:
+ call-bind: 1.0.8
+ define-properties: 1.2.1
+ es-errors: 1.3.0
+ get-proto: 1.0.1
+ gopd: 1.2.0
+ set-function-name: 2.0.2
+
+
+
+
+
+ dependencies:
+ is-core-module: 2.16.1
+ path-parse: 1.0.7
+ supports-preserve-symlinks-flag: 1.0.0
+
+ dependencies:
+ is-core-module: 2.16.1
+ path-parse: 1.0.7
+ supports-preserve-symlinks-flag: 1.0.0
+
+ dependencies:
+ onetime: 7.0.0
+ signal-exit: 4.1.0
+
+
+
+ dependencies:
+ debug: 4.4.3
+ depd: 2.0.0
+ is-promise: 4.0.0
+ parseurl: 1.3.3
+ path-to-regexp: 8.3.0
+ transitivePeerDependencies:
+ - supports-color
+
+
+ dependencies:
+ queue-microtask: 1.2.3
+
+ dependencies:
+ call-bind: 1.0.8
+ call-bound: 1.0.4
+ get-intrinsic: 1.3.0
+ has-symbols: 1.1.0
+ isarray: 2.0.5
+
+ dependencies:
+ es-errors: 1.3.0
+ isarray: 2.0.5
+
+ dependencies:
+ call-bound: 1.0.4
+ es-errors: 1.3.0
+ is-regex: 1.2.1
+
+
+
+
+
+ dependencies:
+ debug: 4.4.3
+ encodeurl: 2.0.0
+ escape-html: 1.0.3
+ etag: 1.8.1
+ fresh: 2.0.0
+ http-errors: 2.0.1
+ mime-types: 3.0.2
+ ms: 2.1.3
+ on-finished: 2.4.1
+ range-parser: 1.2.1
+ statuses: 2.0.2
+ transitivePeerDependencies:
+ - supports-color
+
+ dependencies:
+ encodeurl: 2.0.0
+ escape-html: 1.0.3
+ parseurl: 1.3.3
+ send: 1.2.1
+ transitivePeerDependencies:
+ - supports-color
+
+ dependencies:
+ define-data-property: 1.1.4
+ es-errors: 1.3.0
+ function-bind: 1.1.2
+ get-intrinsic: 1.3.0
+ gopd: 1.2.0
+ has-property-descriptors: 1.0.2
+
+ dependencies:
+ define-data-property: 1.1.4
+ es-errors: 1.3.0
+ functions-have-names: 1.2.3
+ has-property-descriptors: 1.0.2
+
+ dependencies:
+ dunder-proto: 1.0.1
+ es-errors: 1.3.0
+ es-object-atoms: 1.1.1
+
+
+ dependencies:
+ '@antfu/ni': 25.0.0
+ '@babel/core': 7.29.0
+ '@babel/parser': 7.29.0
+ '@babel/plugin-transform-typescript': 7.28.6(@babel/[email protected])
+ '@babel/preset-typescript': 7.28.5(@babel/[email protected])
+ '@dotenvx/dotenvx': 1.52.0
+ '@modelcontextprotocol/sdk': 1.26.0([email protected])
+ '@types/validate-npm-package-name': 4.0.2
+ browserslist: 4.28.1
+ commander: 14.0.3
+ cosmiconfig: 9.0.0([email protected])
+ dedent: 1.7.1
+ deepmerge: 4.3.1
+ diff: 8.0.3
+ execa: 9.6.1
+ fast-glob: 3.3.3
+ fs-extra: 11.3.3
+ fuzzysort: 3.1.0
+ https-proxy-agent: 7.0.6
+ kleur: 4.1.5
+ msw: 2.12.10(@types/[email protected])([email protected])
+ node-fetch: 3.3.2
+ open: 11.0.0
+ ora: 8.2.0
+ postcss: 8.5.6
+ postcss-selector-parser: 7.1.1
+ prompts: 2.4.2
+ recast: 0.23.11
+ stringify-object: 5.0.0
+ tailwind-merge: 3.4.0
+ ts-morph: 26.0.0
+ tsconfig-paths: 4.2.0
+ validate-npm-package-name: 7.0.2
+ zod: 3.25.76
+ zod-to-json-schema: 3.25.1([email protected])
+ transitivePeerDependencies:
+ - '@cfworker/json-schema'
+ - '@types/node'
+ - babel-plugin-macros
+ - supports-color
+ - typescript
+
+ dependencies:
+ '@img/colour': 1.0.0
+ detect-libc: 2.1.2
+ semver: 7.7.4
+ optionalDependencies:
+ '@img/sharp-darwin-arm64': 0.34.5
+ '@img/sharp-darwin-x64': 0.34.5
+ '@img/sharp-libvips-darwin-arm64': 1.2.4
+ '@img/sharp-libvips-darwin-x64': 1.2.4
+ '@img/sharp-libvips-linux-arm': 1.2.4
+ '@img/sharp-libvips-linux-arm64': 1.2.4
+ '@img/sharp-libvips-linux-ppc64': 1.2.4
+ '@img/sharp-libvips-linux-riscv64': 1.2.4
+ '@img/sharp-libvips-linux-s390x': 1.2.4
+ '@img/sharp-libvips-linux-x64': 1.2.4
+ '@img/sharp-libvips-linuxmusl-arm64': 1.2.4
+ '@img/sharp-libvips-linuxmusl-x64': 1.2.4
+ '@img/sharp-linux-arm': 0.34.5
+ '@img/sharp-linux-arm64': 0.34.5
+ '@img/sharp-linux-ppc64': 0.34.5
+ '@img/sharp-linux-riscv64': 0.34.5
+ '@img/sharp-linux-s390x': 0.34.5
+ '@img/sharp-linux-x64': 0.34.5
+ '@img/sharp-linuxmusl-arm64': 0.34.5
+ '@img/sharp-linuxmusl-x64': 0.34.5
+ '@img/sharp-wasm32': 0.34.5
+ '@img/sharp-win32-arm64': 0.34.5
+ '@img/sharp-win32-ia32': 0.34.5
+ '@img/sharp-win32-x64': 0.34.5
+ optional: true
+
+ dependencies:
+ shebang-regex: 3.0.0
+
+
+ dependencies:
+ es-errors: 1.3.0
+ object-inspect: 1.13.4
+
+ dependencies:
+ call-bound: 1.0.4
+ es-errors: 1.3.0
+ get-intrinsic: 1.3.0
+ object-inspect: 1.13.4
+
+ dependencies:
+ call-bound: 1.0.4
+ es-errors: 1.3.0
+ get-intrinsic: 1.3.0
+ object-inspect: 1.13.4
+ side-channel-map: 1.0.1
+
+ dependencies:
+ es-errors: 1.3.0
+ object-inspect: 1.13.4
+ side-channel-list: 1.0.0
+ side-channel-map: 1.0.1
+ side-channel-weakmap: 1.0.2
+
+
+
+
+
+
+
+
+
+ dependencies:
+ es-errors: 1.3.0
+ internal-slot: 1.1.0
+
+
+ dependencies:
+ emoji-regex: 8.0.0
+ is-fullwidth-code-point: 3.0.0
+ strip-ansi: 6.0.1
+
+ dependencies:
+ emoji-regex: 10.6.0
+ get-east-asian-width: 1.4.0
+ strip-ansi: 7.1.2
+
+ dependencies:
+ call-bind: 1.0.8
+ define-properties: 1.2.1
+ es-abstract: 1.24.1
+
+ dependencies:
+ call-bind: 1.0.8
+ call-bound: 1.0.4
+ define-properties: 1.2.1
+ es-abstract: 1.24.1
+ es-errors: 1.3.0
+ es-object-atoms: 1.1.1
+ get-intrinsic: 1.3.0
+ gopd: 1.2.0
+ has-symbols: 1.1.0
+ internal-slot: 1.1.0
+ regexp.prototype.flags: 1.5.4
+ set-function-name: 2.0.2
+ side-channel: 1.1.0
+
+ dependencies:
+ define-properties: 1.2.1
+ es-abstract: 1.24.1
+
+ dependencies:
+ call-bind: 1.0.8
+ call-bound: 1.0.4
+ define-data-property: 1.1.4
+ define-properties: 1.2.1
+ es-abstract: 1.24.1
+ es-object-atoms: 1.1.1
+ has-property-descriptors: 1.0.2
+
+ dependencies:
+ call-bind: 1.0.8
+ call-bound: 1.0.4
+ define-properties: 1.2.1
+ es-object-atoms: 1.1.1
+
+ dependencies:
+ call-bind: 1.0.8
+ define-properties: 1.2.1
+ es-object-atoms: 1.1.1
+
+ dependencies:
+ get-own-enumerable-keys: 1.0.0
+ is-obj: 3.0.0
+ is-regexp: 3.1.0
+
+ dependencies:
+ ansi-regex: 5.0.1
+
+ dependencies:
+ ansi-regex: 6.2.2
+
+
+
+
+
+ dependencies:
+ client-only: 0.0.1
+ react: 19.2.3
+ optionalDependencies:
+ '@babel/core': 7.29.0
+
+ dependencies:
+ has-flag: 4.0.0
+
+
+
+
+
+
+
+
+
+ dependencies:
+ fdir: 6.5.0([email protected])
+ picomatch: 4.0.3
+
+
+ dependencies:
+ tldts-core: 7.0.23
+
+ dependencies:
+ is-number: 7.0.0
+
+
+ dependencies:
+ tldts: 7.0.23
+
+ dependencies:
+ typescript: 5.9.3
+
+ dependencies:
+ '@ts-morph/common': 0.27.0
+ code-block-writer: 13.0.3
+
+ dependencies:
+ '@types/json5': 0.0.29
+ json5: 1.0.2
+ minimist: 1.2.8
+ strip-bom: 3.0.0
+
+ dependencies:
+ json5: 2.2.3
+ minimist: 1.2.8
+ strip-bom: 3.0.0
+
+
+
+ dependencies:
+ prelude-ls: 1.2.1
+
+ dependencies:
+ tagged-tag: 1.0.0
+
+ dependencies:
+ content-type: 1.0.5
+ media-typer: 1.1.0
+ mime-types: 3.0.2
+
+ dependencies:
+ call-bound: 1.0.4
+ es-errors: 1.3.0
+ is-typed-array: 1.1.15
+
+ dependencies:
+ call-bind: 1.0.8
+ for-each: 0.3.5
+ gopd: 1.2.0
+ has-proto: 1.2.0
+ is-typed-array: 1.1.15
+
+ dependencies:
+ available-typed-arrays: 1.0.7
+ call-bind: 1.0.8
+ for-each: 0.3.5
+ gopd: 1.2.0
+ has-proto: 1.2.0
+ is-typed-array: 1.1.15
+ reflect.getprototypeof: 1.0.10
+
+ dependencies:
+ call-bind: 1.0.8
+ for-each: 0.3.5
+ gopd: 1.2.0
+ is-typed-array: 1.1.15
+ possible-typed-array-names: 1.1.0
+ reflect.getprototypeof: 1.0.10
+
+ dependencies:
+ '@typescript-eslint/parser': 8.55.0([email protected]([email protected]))([email protected])
+ '@typescript-eslint/typescript-estree': 8.55.0([email protected])
+ '@typescript-eslint/utils': 8.55.0([email protected]([email protected]))([email protected])
+ eslint: 9.39.2([email protected])
+ typescript: 5.9.3
+ transitivePeerDependencies:
+ - supports-color
+
+
+ dependencies:
+ call-bound: 1.0.4
+ has-bigints: 1.1.0
+ has-symbols: 1.1.0
+ which-boxed-primitive: 1.1.1
+
+
+
+
+
+ dependencies:
+ napi-postinstall: 0.3.4
+ optionalDependencies:
+ '@unrs/resolver-binding-android-arm-eabi': 1.11.1
+ '@unrs/resolver-binding-android-arm64': 1.11.1
+ '@unrs/resolver-binding-darwin-arm64': 1.11.1
+ '@unrs/resolver-binding-darwin-x64': 1.11.1
+ '@unrs/resolver-binding-freebsd-x64': 1.11.1
+ '@unrs/resolver-binding-linux-arm-gnueabihf': 1.11.1
+ '@unrs/resolver-binding-linux-arm-musleabihf': 1.11.1
+ '@unrs/resolver-binding-linux-arm64-gnu': 1.11.1
+ '@unrs/resolver-binding-linux-arm64-musl': 1.11.1
+ '@unrs/resolver-binding-linux-ppc64-gnu': 1.11.1
+ '@unrs/resolver-binding-linux-riscv64-gnu': 1.11.1
+ '@unrs/resolver-binding-linux-riscv64-musl': 1.11.1
+ '@unrs/resolver-binding-linux-s390x-gnu': 1.11.1
+ '@unrs/resolver-binding-linux-x64-gnu': 1.11.1
+ '@unrs/resolver-binding-linux-x64-musl': 1.11.1
+ '@unrs/resolver-binding-wasm32-wasi': 1.11.1
+ '@unrs/resolver-binding-win32-arm64-msvc': 1.11.1
+ '@unrs/resolver-binding-win32-ia32-msvc': 1.11.1
+ '@unrs/resolver-binding-win32-x64-msvc': 1.11.1
+
+
+ dependencies:
+ browserslist: 4.28.1
+ escalade: 3.2.0
+ picocolors: 1.1.1
+
+ dependencies:
+ punycode: 2.3.1
+
+ dependencies:
+ react: 19.2.3
+ tslib: 2.8.1
+ optionalDependencies:
+ '@types/react': 19.2.13
+
+ dependencies:
+ detect-node-es: 1.1.0
+ react: 19.2.3
+ tslib: 2.8.1
+ optionalDependencies:
+ '@types/react': 19.2.13
+
+ dependencies:
+ react: 19.2.3
+
+
+
+
+
+ dependencies:
+ is-bigint: 1.1.0
+ is-boolean-object: 1.2.2
+ is-number-object: 1.1.1
+ is-string: 1.1.1
+ is-symbol: 1.1.1
+
+ dependencies:
+ call-bound: 1.0.4
+ function.prototype.name: 1.1.8
+ has-tostringtag: 1.0.2
+ is-async-function: 2.1.1
+ is-date-object: 1.1.0
+ is-finalizationregistry: 1.1.1
+ is-generator-function: 1.1.2
+ is-regex: 1.2.1
+ is-weakref: 1.1.1
+ isarray: 2.0.5
+ which-boxed-primitive: 1.1.1
+ which-collection: 1.0.2
+ which-typed-array: 1.1.20
+
+ dependencies:
+ is-map: 2.0.3
+ is-set: 2.0.3
+ is-weakmap: 2.0.2
+ is-weakset: 2.0.4
+
+ dependencies:
+ available-typed-arrays: 1.0.7
+ call-bind: 1.0.8
+ call-bound: 1.0.4
+ for-each: 0.3.5
+ get-proto: 1.0.1
+ gopd: 1.2.0
+ has-tostringtag: 1.0.2
+
+ dependencies:
+ isexe: 2.0.0
+
+ dependencies:
+ isexe: 3.1.5
+
+
+ dependencies:
+ ansi-styles: 4.3.0
+ string-width: 4.2.3
+ strip-ansi: 6.0.1
+
+ dependencies:
+ ansi-styles: 4.3.0
+ string-width: 4.2.3
+ strip-ansi: 6.0.1
+
+
+ dependencies:
+ is-wsl: 3.1.0
+ powershell-utils: 0.1.0
+
+
+
+
+ dependencies:
+ cliui: 8.0.1
+ escalade: 3.2.0
+ get-caller-file: 2.0.5
+ require-directory: 2.1.1
+ string-width: 4.2.3
+ y18n: 5.0.8
+ yargs-parser: 21.1.1
+
+
+
+
+ dependencies:
+ zod: 3.25.76
+
+ dependencies:
+ zod: 4.3.6
+
+
diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml
new file mode 100644
index 0000000..581a9d5
--- /dev/null
+++ b/pnpm-workspace.yaml
@@ -0,0 +1,3 @@
+ignoredBuiltDependencies:
+ - sharp
+ - unrs-resolver
diff --git a/postcss.config.mjs b/postcss.config.mjs
new file mode 100644
index 0000000..61e3684
--- /dev/null
+++ b/postcss.config.mjs
@@ -0,0 +1,7 @@
+const config = {
+ plugins: {
+ "@tailwindcss/postcss": {},
+ },
+};
+
+export default config;
diff --git a/public/elements/arrows/.gitkeep b/public/elements/arrows/.gitkeep
new file mode 100644
index 0000000..8735cf0
--- /dev/null
+++ b/public/elements/arrows/.gitkeep
@@ -0,0 +1,2 @@
+# SVG Arrows
+# Place arrow SVG files here
diff --git a/public/elements/arrows/arrow-right.svg b/public/elements/arrows/arrow-right.svg
new file mode 100644
index 0000000..23c3ff9
--- /dev/null
+++ b/public/elements/arrows/arrow-right.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 40">
+ <path d="M 10 20 L 70 20 L 90 20 L 85 10 L 90 30 L 85 30 Z" fill="currentColor" stroke="currentColor" stroke-width="2"/>
+</svg>
diff --git a/public/elements/decorative/.gitkeep b/public/elements/decorative/.gitkeep
new file mode 100644
index 0000000..8d8aba9
--- /dev/null
+++ b/public/elements/decorative/.gitkeep
@@ -0,0 +1,2 @@
+# SVG Decorative Elements
+# Place decorative SVG files here
diff --git a/public/elements/decorative/star.svg b/public/elements/decorative/star.svg
new file mode 100644
index 0000000..34df5f8
--- /dev/null
+++ b/public/elements/decorative/star.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100">
+ <path d="M 50 10 L 61 35 L 90 35 L 68 53 L 79 78 L 50 60 L 21 78 L 32 53 L 10 35 L 39 35 Z" fill="currentColor"/>
+</svg>
diff --git a/public/elements/images/blurred/lighta-curve.webp b/public/elements/images/blurred/lighta-curve.webp
new file mode 100644
index 0000000..8d935d6
Binary files /dev/null and b/public/elements/images/blurred/lighta-curve.webp differ
diff --git a/public/elements/images/overlays/.gitkeep b/public/elements/images/overlays/.gitkeep
new file mode 100644
index 0000000..d783007
--- /dev/null
+++ b/public/elements/images/overlays/.gitkeep
@@ -0,0 +1,2 @@
+# Overlay Images
+# Place overlay image files here
diff --git a/public/elements/images/stickers/.gitkeep b/public/elements/images/stickers/.gitkeep
new file mode 100644
index 0000000..563d3e4
--- /dev/null
+++ b/public/elements/images/stickers/.gitkeep
@@ -0,0 +1,2 @@
+# Sticker Images
+# Place sticker image files here
diff --git a/public/elements/shapes/.gitkeep b/public/elements/shapes/.gitkeep
new file mode 100644
index 0000000..b0c3632
--- /dev/null
+++ b/public/elements/shapes/.gitkeep
@@ -0,0 +1,2 @@
+# SVG Shapes
+# Place basic shape SVG files here
diff --git a/public/elements/shapes/circle.svg b/public/elements/shapes/circle.svg
new file mode 100644
index 0000000..9eb938a
--- /dev/null
+++ b/public/elements/shapes/circle.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100">
+ <circle cx="50" cy="50" r="45" fill="currentColor"/>
+</svg>
diff --git a/public/elements/shapes/rectangle.svg b/public/elements/shapes/rectangle.svg
new file mode 100644
index 0000000..7f123f4
--- /dev/null
+++ b/public/elements/shapes/rectangle.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100">
+ <rect width="100" height="100" fill="currentColor" rx="5"/>
+</svg>
diff --git a/public/elements/shapes/triangle.svg b/public/elements/shapes/triangle.svg
new file mode 100644
index 0000000..4c70a51
--- /dev/null
+++ b/public/elements/shapes/triangle.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100">
+ <polygon points="50,10 90,90 10,90" fill="currentColor"/>
+</svg>
diff --git a/public/images/backgrounds/desktop/desktop-01.avif b/public/images/backgrounds/desktop/desktop-01.avif
new file mode 100644
index 0000000..2d95f3b
Binary files /dev/null and b/public/images/backgrounds/desktop/desktop-01.avif differ
diff --git a/public/images/backgrounds/desktop/desktop-01.jpg b/public/images/backgrounds/desktop/desktop-01.jpg
new file mode 100644
index 0000000..22af3a6
Binary files /dev/null and b/public/images/backgrounds/desktop/desktop-01.jpg differ
diff --git a/public/images/backgrounds/desktop/desktop-02.avif b/public/images/backgrounds/desktop/desktop-02.avif
new file mode 100644
index 0000000..481f96e
Binary files /dev/null and b/public/images/backgrounds/desktop/desktop-02.avif differ
diff --git a/public/images/backgrounds/desktop/desktop-02.jpg b/public/images/backgrounds/desktop/desktop-02.jpg
new file mode 100644
index 0000000..cb12bb8
Binary files /dev/null and b/public/images/backgrounds/desktop/desktop-02.jpg differ
diff --git a/public/images/backgrounds/desktop/desktop-03.avif b/public/images/backgrounds/desktop/desktop-03.avif
new file mode 100644
index 0000000..080f56b
Binary files /dev/null and b/public/images/backgrounds/desktop/desktop-03.avif differ
diff --git a/public/images/backgrounds/desktop/desktop-03.jpg b/public/images/backgrounds/desktop/desktop-03.jpg
new file mode 100644
index 0000000..ff4f160
Binary files /dev/null and b/public/images/backgrounds/desktop/desktop-03.jpg differ
diff --git a/public/images/backgrounds/desktop/desktop-04.avif b/public/images/backgrounds/desktop/desktop-04.avif
new file mode 100644
index 0000000..d41f801
Binary files /dev/null and b/public/images/backgrounds/desktop/desktop-04.avif differ
diff --git a/public/images/backgrounds/desktop/desktop-04.jpg b/public/images/backgrounds/desktop/desktop-04.jpg
new file mode 100644
index 0000000..78395fd
Binary files /dev/null and b/public/images/backgrounds/desktop/desktop-04.jpg differ
diff --git a/public/images/mockups/bg-browser.avif b/public/images/mockups/bg-browser.avif
new file mode 100644
index 0000000..5145748
Binary files /dev/null and b/public/images/mockups/bg-browser.avif differ
diff --git a/public/images/mockups/bg-ide.avif b/public/images/mockups/bg-ide.avif
new file mode 100644
index 0000000..aff22f2
Binary files /dev/null and b/public/images/mockups/bg-ide.avif differ
diff --git a/public/images/mockups/bg-mobile.avif b/public/images/mockups/bg-mobile.avif
new file mode 100644
index 0000000..2c0102f
Binary files /dev/null and b/public/images/mockups/bg-mobile.avif differ
diff --git a/public/svg/cursor-animate.svg b/public/svg/cursor-animate.svg
new file mode 100644
index 0000000..4b9c192
--- /dev/null
+++ b/public/svg/cursor-animate.svg
@@ -0,0 +1,176 @@
+<svg width="209" height="210" viewBox="0 0 209 210" fill="none" xmlns="http://www.w3.org/2000/svg">
+<style>
+ @keyframes cursorMove {
+ 0%, 100% {
+ transform: translate(0px, 0px);
+ }
+ 15% {
+ transform: translate(0px, 0px);
+ }
+ 45% {
+ transform: translate(35px, 35px);
+ }
+ 85% {
+ transform: translate(35px, 35px);
+ }
+ }
+
+ @keyframes selectionGrow {
+ 0%, 15%, 100% {
+ width: 0;
+ height: 0;
+ opacity: 0;
+ }
+ 20% {
+ width: 8px;
+ height: 8px;
+ opacity: 0.5;
+ }
+ 45% {
+ width: 35px;
+ height: 35px;
+ opacity: 1;
+ }
+ 85% {
+ width: 35px;
+ height: 35px;
+ opacity: 1;
+ }
+ 95% {
+ width: 35px;
+ height: 35px;
+ opacity: 0;
+ }
+ }
+
+ @keyframes selectionFill {
+ 0%, 15%, 100% {
+ width: 0;
+ height: 0;
+ opacity: 0;
+ }
+ 20% {
+ width: 8px;
+ height: 8px;
+ opacity: 0.05;
+ }
+ 45% {
+ width: 35px;
+ height: 35px;
+ opacity: 0.15;
+ }
+ 85% {
+ width: 35px;
+ height: 35px;
+ opacity: 0.15;
+ }
+ 95% {
+ width: 35px;
+ height: 35px;
+ opacity: 0;
+ }
+ }
+
+ @keyframes cursorClick {
+ 0%, 100% {
+ transform: scale(1);
+ }
+ 10% {
+ transform: scale(0.85);
+ }
+ 15% {
+ transform: scale(1);
+ }
+ }
+
+ @keyframes cursorGlow {
+ 0%, 15%, 95%, 100% {
+ filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.4));
+ }
+ 20%, 85% {
+ filter: drop-shadow(0 0 4px rgba(74, 158, 255, 0.8));
+ }
+ }
+
+ @keyframes cornerDots {
+ 0%, 40%, 95%, 100% {
+ opacity: 0;
+ transform: scale(0);
+ }
+ 48% {
+ opacity: 0.7;
+ transform: scale(1.2);
+ }
+ 50%, 85% {
+ opacity: 1;
+ transform: scale(1);
+ }
+ }
+
+ .cursor-group {
+ animation: cursorMove 4s ease-in-out infinite;
+ }
+
+ .cursor-pointer {
+ animation:
+ cursorClick 4s ease-in-out infinite,
+ cursorGlow 4s ease-in-out infinite;
+ transform-origin: 85px 85px;
+ }
+
+ .selection-box {
+ animation: selectionGrow 4s ease-in-out infinite;
+ }
+
+ .selection-fill {
+ animation: selectionFill 4s ease-in-out infinite;
+ }
+
+ .corner-dot {
+ animation: cornerDots 4s ease-in-out infinite;
+ transform-origin: center;
+ }
+</style>
+
+<defs>
+ <linearGradient id="cursorGrad" x1="0%" y1="0%" x2="100%" y2="100%">
+ <stop offset="0%" style="stop-color:#ffffff;stop-opacity:1" />
+ <stop offset="100%" style="stop-color:#e0e0e0;stop-opacity:1" />
+ </linearGradient>
+</defs>
+
+<!-- Área de selección (fija en x=85, y=85) -->
+<g class="selection-area">
+ <!-- Relleno de selección -->
+ <rect class="selection-fill" x="85" y="85" width="0" height="0"
+ fill="#4A9EFF" opacity="0"/>
+
+ <!-- Borde de selección -->
+ <rect class="selection-box" x="85" y="85" width="0" height="0"
+ fill="none" stroke="#4A9EFF" stroke-width="2"
+ stroke-dasharray="5 3" opacity="0"/>
+
+ <!-- Puntos de esquina -->
+ <circle class="corner-dot" cx="85" cy="85" r="3" fill="#4A9EFF" opacity="0"/>
+ <circle class="corner-dot" cx="120" cy="85" r="3" fill="#4A9EFF" opacity="0"/>
+ <circle class="corner-dot" cx="120" cy="120" r="3" fill="#4A9EFF" opacity="0"/>
+ <circle class="corner-dot" cx="85" cy="120" r="3" fill="#4A9EFF" opacity="0"/>
+</g>
+
+<!-- Cursor personalizado (se mueve con el grupo) -->
+<g class="cursor-group">
+ <g class="cursor-pointer">
+ <!-- Sombra del cursor -->
+ <path d="M 87 87 L 87 107 L 92 102 L 97 112 L 100 111 L 95 101 L 102 101 Z"
+ fill="rgba(0,0,0,0.3)"/>
+
+ <!-- Cuerpo principal del cursor -->
+ <path d="M 85 85 L 85 105 L 90 100 L 95 110 L 98 109 L 93 99 L 100 99 Z"
+ fill="url(#cursorGrad)" stroke="#333" stroke-width="0.5"/>
+
+ <!-- Borde interno para darle profundidad -->
+ <path d="M 85 85 L 85 105 L 90 100 L 95 110 L 98 109 L 93 99 L 100 99 Z"
+ fill="none" stroke="white" stroke-width="0.3" opacity="0.6"/>
+ </g>
+</g>
+</svg>
\ No newline at end of file
diff --git a/public/svg/logo-freeshot.svg b/public/svg/logo-freeshot.svg
new file mode 100644
index 0000000..b612b20
--- /dev/null
+++ b/public/svg/logo-freeshot.svg
@@ -0,0 +1,131 @@
+<svg width="470" height="465" viewBox="0 0 470 465" fill="none" xmlns="http://www.w3.org/2000/svg">
+<style>
+ @keyframes playPulse {
+ 0%, 100% {
+ transform: scale(1);
+ opacity: 1;
+ }
+ 50% {
+ transform: scale(1.05);
+ opacity: 0.8;
+ }
+ }
+
+ @keyframes gradientShift {
+ 0%, 100% {
+ stop-color: #011D2D;
+ }
+ 50% {
+ stop-color: #024a6b;
+ }
+ }
+
+ @keyframes gradientShiftEnd {
+ 0%, 100% {
+ stop-opacity: 0.15;
+ }
+ 50% {
+ stop-opacity: 0.35;
+ }
+ }
+
+ @keyframes dashAnimation {
+ 0% {
+ stroke-dashoffset: 2000;
+ }
+ 100% {
+ stroke-dashoffset: 0;
+ }
+ }
+
+ @keyframes glow {
+ 0%, 100% {
+ filter: drop-shadow(0 0 2px rgba(1, 29, 45, 0.5));
+ }
+ 50% {
+ filter: drop-shadow(0 0 8px rgba(1, 29, 45, 0.6)) drop-shadow(0 0 12px rgba(255, 255, 255, 0.7));
+ }
+ }
+
+ .play-icon {
+ animation: playPulse 2.5s ease-in-out infinite;
+ transform-origin: center;
+ }
+
+ .main-path {
+ stroke-dasharray: 2000;
+ stroke-dashoffset: 2000;
+ animation:
+ dashAnimation 2s ease-out forwards,
+ glow 2.5s ease-in-out infinite 2s;
+ }
+
+ .gradient-start {
+ animation: gradientShift 2.5s ease-in-out infinite;
+ }
+
+ .gradient-end {
+ animation: gradientShiftEnd 2.5s ease-in-out infinite;
+ }
+</style>
+
+<defs>
+<linearGradient id="paint0_linear_4453_87" x1="425" y1="233" x2="81.5" y2="32" gradientUnits="userSpaceOnUse">
+<stop class="gradient-start" stop-color="#011D2D"/>
+<stop class="gradient-end" offset="1" stop-color="white" stop-opacity="0.15"/>
+</linearGradient>
+<linearGradient id="paint1_linear_4453_87" x1="61" y1="231.494" x2="387.866" y2="231.494" gradientUnits="userSpaceOnUse">
+<stop offset="0.3125" stop-color="#00A3EE"/>
+<stop offset="0.591346" stop-color="#00A3FF"/>
+<stop offset="1" stop-color="#003780"/>
+</linearGradient>
+<linearGradient id="paint2_linear_4453_87" x1="61" y1="231.494" x2="387.866" y2="231.494" gradientUnits="userSpaceOnUse">
+<stop offset="0.3125" stop-color="#00A3EE"/>
+<stop offset="0.591346" stop-color="#00A3FF"/>
+<stop offset="1" stop-color="#003780"/>
+</linearGradient>
+<linearGradient id="paint3_linear_4453_87" x1="67.0046" y1="240.051" x2="370.312" y2="240.051" gradientUnits="userSpaceOnUse">
+<stop offset="0.3125" stop-color="#00A3EE"/>
+<stop offset="0.591346" stop-color="#00A3FF"/>
+<stop offset="1" stop-color="#003780"/>
+</linearGradient>
+</defs>
+
+<g class="play-icon">
+<path class="main-path" d="M105.907 34.4695C93.3079 38.9322 83.2289 47.3221 73.6898 61.2458C54.4318 89.2715 43.2729 137.647 37.3335 216.369C34.6338 252.071 36.2536 327.044 40.2132 352.035C46.8726 394.877 60.0112 418.262 84.1288 429.508C93.1279 433.614 96.1876 434.149 114.006 433.971C128.044 433.971 137.763 432.721 147.302 430.222C201.837 415.406 301.547 365.602 365.26 321.689C391.178 303.66 421.595 274.027 428.794 259.747C438.513 240.289 436.893 222.082 423.394 201.91C389.918 151.035 251.512 62.3168 167.46 37.6827C147.122 31.6134 117.785 30.1853 105.907 34.4695ZM150.362 42.1454C200.577 52.4989 283.009 94.9838 356.081 148.358C381.099 166.566 413.315 199.233 420.515 213.513C428.434 229.222 428.434 241.003 420.695 256.534C403.956 289.558 333.764 338.469 233.154 386.845C146.762 428.437 104.647 436.291 77.6494 416.12C52.9919 397.555 42.0131 347.216 43.9929 260.104C45.6127 192.628 51.7321 142.645 63.0709 105.694C75.1297 66.0655 91.868 45.18 115.086 40.7173C127.324 38.3967 132.544 38.5752 150.362 42.1454Z" stroke="url(#paint0_linear_4453_87)" stroke-width="9"/>
+</g>
+
+<path d="M108.413 283.202C104.119 283.45 100.887 283.027 97.2259 280.329C93.4664 276.915 91.3965 273.495 90.9438 268.431C90.9241 266.535 90.9869 264.663 91.0772 262.776L91.159 260.552C91.6389 248.745 92.4244 236.968 93.2103 225.197C93.2477 224.629 93.2849 224.062 93.3219 223.494C93.3847 222.532 93.4471 221.569 93.5089 220.606C95.2823 193.316 97.1442 171.296 101.416 166.592C104.551 164.159 107.695 162.797 111.903 163.155C116.447 164.018 119.944 165.595 123.041 169.176C125.801 174.295 126.307 178.556 125.596 184.02L125.38 186.074C125.228 187.508 123.207 210.961 123.041 212.393C122.642 215.86 122.302 219.335 121.969 222.813L121.76 224.981C120.667 236.744 120.18 248.605 119.693 260.446L119.693 260.448L119.639 261.761L119.526 264.283C119.458 265.823 119.398 267.364 119.345 268.905C118.994 276.686 116.05 280.961 108.413 283.202Z" fill="#00A3EE"/>
+<path fill-rule="evenodd" clip-rule="evenodd" d="M76.19 229.246C72.6784 227.472 68.7941 227.038 65.5845 229.587C62.2022 232.819 62.2022 232.819 61.5961 245.915L61.5323 247.331C60.5052 269.353 60.937 291.316 63.0679 313.273L63.2084 314.708C63.3404 316.073 63.4734 317.437 63.6139 318.801L63.7448 320.055C63.9931 322.578 64.3294 324.916 65.3539 327.285C67.1555 329.729 68.7104 330.966 71.7902 331.779C74.9815 331.904 77.4268 331.316 79.8356 329.282C82.4895 325.811 82.1645 322.294 81.6421 318.237C78.5333 294.996 78.5022 271.613 79.3861 248.249L79.5149 244.868L79.5257 244.576C79.5741 243.275 79.6225 241.973 79.6774 240.673L79.7192 239.683L79.7895 237.84C79.931 234.617 79.1666 231.318 76.19 229.246ZM319.9 298.331C319.472 295.555 318.3 293.788 316.419 291.918C313.515 290.317 310.269 289.773 307.382 291.684C307.023 291.964 306.675 292.237 306.326 292.509L305.148 293.418C304.391 294.004 303.63 294.583 302.864 295.154L301.784 295.948C296.249 300.015 290.665 303.986 285.05 307.911C283.762 308.808 282.478 309.713 281.198 310.625C276.004 314.368 270.673 317.783 265.277 321.148C263.23 322.424 261.19 323.712 259.157 325.015C254.528 327.983 249.887 330.884 245.145 333.62C244.955 333.727 244.764 333.834 244.573 333.941C241.205 335.833 237.698 337.803 235.512 341.337C234.744 344.034 234.704 346.433 235.512 349.158C236.896 351.406 238.244 352.931 240.436 354.141C242.908 354.717 245.014 354.571 247.324 353.385L248.855 352.409L250.553 351.343C251.625 350.662 252.704 349.993 253.788 349.336C273.439 337.594 292.79 325.032 311.318 311.155L312.326 310.398C314.199 309.01 316.048 307.629 317.742 305.969C319.54 303.712 320.035 301.304 319.9 298.331ZM227.657 357.426C226.903 355.193 225.936 353.692 223.962 352.347C221.228 351.006 218.655 350.889 215.921 352.177L214.936 352.698L213.787 353.3C196.783 362.256 179.547 370.633 161.503 377.291L160.206 377.767L157.753 378.675C143.534 383.781 149.434 399.147 162.438 394.261L163.593 393.805C164.878 393.314 166.163 392.821 167.444 392.319C168.348 391.964 169.254 391.611 170.16 391.259C176.433 388.828 182.657 386.316 188.772 383.508C190.201 382.841 191.633 382.18 193.068 381.523C202.655 377.153 212.213 372.591 221.39 367.402L222.413 366.814C223.577 366.165 224.554 365.519 225.629 364.708C227.371 362.285 227.928 360.364 227.657 357.426ZM222.184 283.855C221.017 281.563 219.727 280.192 217.403 279.074C214.93 278.803 213 278.822 210.812 280.019C200.451 285.751 189.983 291.229 179.283 296.298L178.107 296.854C174.15 298.728 170.194 300.601 166.189 302.368L165.276 302.771C164.155 303.27 151.687 309.644 150.565 310.142C150.34 310.237 150.116 310.33 149.893 310.423C147.561 311.396 145.42 312.288 143.841 314.392C142.531 316.784 142.22 318.619 142.766 321.348C143.772 323.452 144.732 325.04 146.826 326.106C149.592 327.131 151.52 327.082 154.327 326.058L155.794 325.412C156.726 325.002 169.001 318.712 169.93 318.295L171.025 317.802C181 313.351 190.803 308.563 200.46 303.458C202.485 302.378 204.511 301.302 206.556 300.26C207.717 299.672 208.876 299.082 210.035 298.492L211.785 297.601C212.127 297.429 212.47 297.26 212.812 297.091C216.454 295.289 220.003 293.533 222.184 289.921C222.779 287.728 222.768 286.045 222.184 283.855ZM291.07 283.288C290.267 279.355 288.197 276.929 285 274.408C280.193 272.359 275.764 272.032 271.051 274.448L236.874 296.649L234.836 297.758C233.326 298.584 231.815 299.409 230.302 300.231L227.879 301.549L227.112 301.968C214.668 308.745 202.22 315.525 189.598 321.986L187.986 322.808C182.147 325.789 176.282 328.709 170.349 331.508L168.646 332.308C165.966 333.568 155.659 338.371 152.965 339.603L151.481 340.281L148.694 341.567C144.423 343.512 141.364 345.734 138.393 349.316C134.649 357.449 138.544 364.006 146.743 367.191C151.689 367.963 156.44 367.589 160.828 365.513L162.788 364.552C164.295 363.826 165.801 363.099 167.307 362.372C169.751 361.174 179.823 356.451 182.282 355.284C196.874 348.412 211.093 340.886 225.275 333.251C226.839 332.409 228.404 331.568 229.97 330.728C232.498 329.375 235.022 328.017 237.543 326.654L240.396 325.108L241.01 324.779C246.487 321.848 284.307 297.718 288.805 293.418C291.03 290.079 291.394 287.172 291.07 283.288ZM199.014 147.463C197.668 146.793 196.317 146.132 194.963 145.48C189.754 143.066 185.787 142.099 180.972 145.745C178.88 148.205 177.999 150.54 178.152 153.764C179.247 157.408 181.069 159.711 184.329 161.607C185.293 162.056 186.255 162.509 187.215 162.965L188.295 163.479C204.782 171.206 220.453 180.372 235.628 190.497C236.131 190.837 236.634 191.188 237.141 191.541C240.297 193.74 243.557 196.012 247.398 196.333C250.904 195.983 252.725 194.42 255.01 191.785C256.303 189.158 256.262 187.006 255.961 184.124C255.76 183.123 255.617 182.416 255.321 181.784C254.611 180.268 253.015 179.181 247.592 175.485L246.376 174.672C231.754 164.851 216.525 156.091 200.76 148.32L199.014 147.463ZM293.648 134.854C290.592 132.394 287.499 129.904 283.978 128.29C279.927 127.638 277.511 128.176 274.465 131.134C272.614 134.018 272.585 136.842 272.88 140.232C274.512 143.744 277.108 145.714 280.068 147.854C281.11 148.593 282.149 149.336 283.186 150.084L284.763 151.221C293.251 157.302 301.507 163.727 309.644 170.336C311.715 172.03 330.432 185.994 332.534 187.643L333.781 188.582C335.073 189.563 335.876 190.031 337.446 190.316C340.541 190.461 342.909 189.88 345.254 187.592C347.356 185.009 347.397 182.512 347.366 179.177C346.902 176.126 345.533 174.527 343.273 172.693L342.394 172.002L340.52 170.494C339.386 169.594 321.627 156.393 320.504 155.477C314.099 150.252 307.57 145.204 300.924 140.339L300.886 140.312C298.717 138.728 296.551 137.147 294.433 135.485C294.171 135.276 293.91 135.065 293.648 134.854ZM85.9187 167.192C83.6337 162.623 78.6915 160.103 73.9952 162.979C72.0076 164.726 70.9404 166.715 70.3944 169.295L70.2003 170.33C68.1707 180.596 66.5967 190.968 65.2397 201.343L64.9108 203.888C64.7506 205.095 64.5909 206.302 64.4394 207.51L64.3002 208.632C63.5374 214.32 63.9247 219.278 69.6624 221.699C72.3542 222.185 74.5426 221.809 76.8343 220.264C79.2259 217.873 79.714 215.012 80.0784 211.732C80.1526 211.015 80.2299 210.298 80.3102 209.582L80.4432 208.402C81.4496 199.317 82.786 190.328 84.4202 181.335C84.56 180.568 84.7108 179.795 84.8624 179.019C85.6228 175.123 86.4037 171.122 85.9187 167.192ZM115.913 302.139C114.714 298.666 112.975 296.157 109.613 294.244C104.223 292.154 98.6371 292.764 94.5495 296.643C88.1014 303.838 88.1014 303.838 93.5 360.515C93.5535 361.085 93.6068 361.639 93.66 362.193C93.7189 362.854 93.7719 363.514 93.8247 364.172C94.2344 369.281 94.6355 374.28 97.7107 378.742C100.398 381.164 102.727 382.158 106.445 382.503C110.802 382.703 113.655 381.415 116.909 378.792C120.11 374.976 120.086 371.075 119.819 366.399C119.67 364.974 119.522 363.548 119.381 362.122L119.221 360.484C118.314 351.417 117.546 342.363 117.195 333.266L117.099 330.617C116.939 326.245 116.783 321.874 116.666 317.501C116.622 315.834 116.573 314.166 116.519 312.499L116.441 310.142C116.391 307.453 116.329 304.807 115.913 302.139ZM105.234 87.456C101.784 89.2096 100.022 91.5055 98.36 94.5417L97.6564 95.8897C91.2903 108.029 85.8992 120.638 81.4226 133.362L81.0028 134.561C80.799 135.132 80.5832 135.714 80.3643 136.304C78.74 140.684 76.9418 145.533 78.5576 149.994C81.9252 156.055 89.5044 157.375 95.6386 154.803C100.114 151.864 100.114 151.864 102.704 143.764C103.439 141.408 104.198 139.057 104.982 136.712L105.46 135.286C107.914 127.925 111.075 120.836 114.649 113.814C115.448 112.25 116.242 110.685 117.033 109.119C117.614 107.963 118.207 106.811 118.811 105.664C124.929 94.1091 117.757 84.2718 105.234 87.456ZM274.71 192.951C274.27 192.692 273.791 192.482 272.894 192.089C269.026 191.624 266.56 191.623 263.338 193.557C261.051 195.141 259.638 196.768 259.131 199.33C258.869 202.521 259.916 204.787 262.272 207.33C265.712 210.56 268.651 213.824 270.874 217.776C273.489 223.587 274.39 229.796 271.646 235.663C270.889 237.161 270.192 238.649 269.586 240.198C268.931 243.953 269.944 246.509 272.498 249.595C274.228 251.024 275.474 251.799 277.863 252.093C281.969 252.259 284.11 251.741 287.269 249.497C293.548 243.753 294.258 234.104 294.312 226.551C293.93 215.124 287.393 203.393 277.901 195.38L276.648 194.389C275.671 193.61 275.216 193.248 274.71 192.951ZM229.019 93.8885C226.948 92.6744 224.873 91.4958 222.751 90.3784C217.146 87.9281 211.849 88.6444 208.552 94.4199C207.422 97.2443 207.302 99.4099 208.06 102.422C208.573 103.72 208.926 104.614 209.445 105.384C210.591 107.086 212.547 108.186 218.824 111.718C221.959 113.456 223.853 114.541 223.853 114.541C226.554 116.07 229.237 117.635 231.899 119.238L233.394 120.139C236.039 121.72 238.683 123.301 241.291 124.949L243.078 126.083L246.625 128.29C250.878 131.063 254.291 132.691 259.383 131.811C261.742 130.764 263.026 129.379 264.507 127.207C265.861 124.306 265.73 121.47 265.216 118.341C264.177 114.885 264.177 114.885 257.977 111.358C255.522 109.972 253.1 108.523 250.713 107.012C244.314 102.96 237.88 98.9783 231.325 95.2092L229.019 93.8885ZM187.401 77.0606L186.259 76.708C171.453 72.0546 144.563 64.6786 129.864 72.937C127.745 74.8728 126.918 76.5163 126.475 79.4966C126.503 82.262 127.325 84.5101 129.025 86.5502C131.593 88.865 131.593 88.865 140.527 88.5457C142.402 88.4753 144.277 88.4351 146.152 88.3948L147.525 88.3666C153.476 88.2283 159.268 88.6789 165.15 89.7141L166.819 90.0239C171.136 90.8158 175.349 91.7774 179.553 93.1274C182.615 94.1619 185.478 94.9387 188.685 95.209C191.621 94.2386 193.415 93.1299 194.963 90.181C195.617 87.2032 195.686 85.7464 194.927 82.7962C193.164 79.5394 190.651 78.1529 187.401 77.0606ZM267.289 256.882C266.964 254.382 265.699 253.031 263.815 251.469C260.448 249.411 257.124 250.362 254.207 252.606C248.506 257.061 242.633 261.409 236.418 265.123L235.512 265.656L234.636 266.173C234.16 266.454 233.673 266.729 233.184 267.007C230.499 268.528 227.739 270.092 226.159 272.798C225.283 274.94 225.376 276.872 226.009 279.074C227.177 281.365 228.467 282.736 230.791 283.855C232.269 284.019 233.401 284.144 234.518 284.062C238.156 283.794 241.633 281.319 256.438 270.778L257.536 269.989C260.227 268.061 262.789 266.028 265.216 263.773C267.238 261.548 267.329 259.77 267.289 256.882ZM374.405 208.873C372.732 205.449 371.354 203.178 367.276 201.143C360.462 199.674 356.285 201.502 353.121 206.406C352.887 208.577 353.024 210.126 353.915 212.194C354.688 213.591 355.429 214.998 356.136 216.417C363.106 231.07 362.935 247.689 354.995 262.044C353.196 265.256 352.422 267.388 353.121 270.884C354.697 273.04 356.179 274.031 358.794 275.408C362.055 276.318 363.357 277.067 366.687 276.385C369.84 275.174 371.611 272.34 373.049 269.871L373.936 268.253L374.955 266.469C384.399 248.712 383.873 228.216 375.153 210.359L374.405 208.873Z" fill="url(#paint1_linear_4480_85)"/>
+<path fill-rule="evenodd" clip-rule="evenodd" d="M170.376 145.984L170.188 147.125C169.467 151.406 168.577 155.657 167.672 159.906L167.131 162.466C166.757 164.239 166.381 166.011 166.005 167.783C165.526 170.034 165.049 172.286 164.576 174.538C164.296 175.863 164.02 177.165 163.744 178.469C163.476 179.735 163.207 181.003 162.934 182.297C162.109 186.207 161.268 190.113 160.315 193.999C159.362 197.884 157.503 199.388 154.148 200.739C150.311 201.425 147.645 201.286 143.862 199.839C138.87 196.911 137.319 194.005 138.41 188.567L138.669 187.192C138.953 185.693 139.248 184.196 139.544 182.699C139.746 181.653 139.948 180.607 140.149 179.56C141.635 171.906 143.234 164.272 144.883 156.647L145.21 155.133C145.804 152.395 146.411 149.659 147.036 146.926C147.287 145.821 147.527 144.714 147.767 143.607C147.91 142.982 148.054 142.357 148.199 141.733L148.552 140.157C149.42 137.974 150.99 136.259 153.848 135.253C161.36 132.835 171.954 136.711 170.376 145.984ZM157.871 213.083C156.74 210.693 155.14 209.08 152.127 207.784C148.822 206.782 145.167 206.724 142.145 208.023L140.703 208.772L139.257 209.498C136.652 211.457 136.258 214.069 135.907 216.714L135.775 217.88C134.035 232.761 133.536 247.825 134.876 262.824L135.026 264.325C135.315 267.553 135.858 269.927 138.287 272.75C141.373 274.723 143.869 275.313 147.914 275.421C151.22 275.234 153.023 274.092 155.226 272.468C157.747 269.335 157.747 269.335 157.04 261.729C156.099 252.214 156.042 242.79 156.71 233.309C156.789 232.19 156.867 231.071 156.944 229.952L156.953 229.812C157.104 227.594 157.256 225.377 157.437 223.161C157.526 222.077 157.609 220.992 157.687 219.907L157.795 218.367C157.959 216.594 158.113 214.865 157.871 213.083Z" fill="url(#paint2_linear_4480_85)"/>
+<path fill-rule="evenodd" clip-rule="evenodd" d="M170.233 101.542L167.576 100.356C166.892 100.047 166.202 99.7186 165.504 99.3877C161.31 97.3969 156.864 95.287 152.157 96.1961C149.351 97.0155 147.435 99.2603 145.972 101.582C145.261 104.095 145.16 106.001 145.972 108.495C147.967 112.009 147.967 112.009 161.488 117.818C170.065 121.503 178.537 125.336 186.904 129.446L188.611 130.288C202.938 137.336 217.065 144.709 230.961 152.509L232.139 153.171C234.231 154.337 272.43 176.766 274.465 178.023C275.114 178.428 275.768 178.851 276.421 179.275C280.077 181.645 283.857 184.096 288.333 184.234C290.932 183.932 292.73 183.266 294.658 181.51C296.741 179.136 297.657 176.963 297.501 173.882C296.024 169.242 292.942 167.213 288.805 164.808L287.16 163.871C281.057 160.354 238.786 135.663 232.604 132.274C230.852 131.315 229.1 130.356 227.353 129.389C211.855 120.79 195.805 113.141 179.627 105.793L178.378 105.226C175.667 103.988 172.952 102.761 170.233 101.542Z" fill="url(#paint3_linear_4480_85)"/>
+<path d="M140 134.5C140 141.404 134.404 147 127.5 147C120.596 147 115 141.404 115 134.5C115 127.596 120.596 122 127.5 122C134.404 122 140 127.596 140 134.5Z" fill="#01A3EE"/>
+<circle cx="148" cy="292" r="11" fill="#00A2EE"/>
+<ellipse cx="132" cy="387.5" rx="10" ry="10.5" fill="#00A2EE"/>
+<path d="M320.5 206C320.5 206 328.935 224.552 328.5 239C328.101 252.259 321.5 270.5 321.5 270.5" stroke="url(#paint4_linear_4480_85)" stroke-width="26" stroke-linecap="round"/>
+<defs>
+<linearGradient id="paint0_linear_4480_85" x1="425" y1="233" x2="81.5" y2="32" gradientUnits="userSpaceOnUse">
+<stop stop-color="#011D2D"/>
+<stop offset="1" stop-color="white" stop-opacity="0.15"/>
+</linearGradient>
+<linearGradient id="paint1_linear_4480_85" x1="61" y1="231.494" x2="387.866" y2="231.494" gradientUnits="userSpaceOnUse">
+<stop offset="0.3125" stop-color="#00A3EE"/>
+<stop offset="0.591346" stop-color="#00A3FF"/>
+<stop offset="1" stop-color="#003780"/>
+</linearGradient>
+<linearGradient id="paint2_linear_4480_85" x1="61" y1="231.494" x2="387.866" y2="231.494" gradientUnits="userSpaceOnUse">
+<stop offset="0.3125" stop-color="#00A3EE"/>
+<stop offset="0.591346" stop-color="#00A3FF"/>
+<stop offset="1" stop-color="#003780"/>
+</linearGradient>
+<linearGradient id="paint3_linear_4480_85" x1="61" y1="231.494" x2="387.866" y2="231.494" gradientUnits="userSpaceOnUse">
+<stop offset="0.3125" stop-color="#00A3EE"/>
+<stop offset="0.591346" stop-color="#00A3FF"/>
+<stop offset="1" stop-color="#003780"/>
+</linearGradient>
+<linearGradient id="paint4_linear_4480_85" x1="299.5" y1="238" x2="333" y2="238" gradientUnits="userSpaceOnUse">
+<stop stop-color="#0085DB"/>
+<stop offset="0.826923" stop-color="#004C98"/>
+</linearGradient>
+</defs>
+ </svg>
\ No newline at end of file
diff --git a/public/svg/pantalla.svg b/public/svg/pantalla.svg
new file mode 100644
index 0000000..1aa88d4
--- /dev/null
+++ b/public/svg/pantalla.svg
@@ -0,0 +1,5 @@
+<svg width="284" height="92" viewBox="0 0 284 92" fill="none" xmlns="http://www.w3.org/2000/svg">
+<path d="M13.125 77.1635L3.47529 77.6591L0.812256 25.8116L279.685 11.4879L282.348 63.3354L272.125 63.8605" stroke="#00314D"/>
+<path d="M261.125 64.4259L26.125 76.4962" stroke="#004267"/>
+<path d="M16.5986 82.5672L15.8495 82.6042L15.8872 83.3532L16.6363 83.3163L16.5986 82.5672ZM14.5977 42.8068L14.56 42.0577L13.8109 42.0947L13.8486 42.8437L14.5977 42.8068ZM21.7479 42.4541L22.4958 42.3975L22.4399 41.6691L21.7102 41.7051L21.7479 42.4541ZM22.2558 49.0722L21.9761 49.7678L23.096 50.219L23.0037 49.0156L22.2558 49.0722ZM21.4826 48.7607L20.761 48.5553L20.5768 49.2041L21.2029 49.4563L21.4826 48.7607ZM25.0008 43.4009L25.4477 44.0036L25.4507 44.0014L25.0008 43.4009ZM38.5661 43.1397L38.1428 43.7585L38.1487 43.7625L38.5661 43.1397ZM43.2796 48.7929L43.962 48.4823L43.962 48.4823L43.2796 48.7929ZM44.0406 65.072L43.3337 64.8204L43.3304 64.83L44.0406 65.072ZM39.918 71.1609L39.4402 70.5823L39.4347 70.5869L39.918 71.1609ZM28.3036 73.1323L28.0532 73.8391L28.0604 73.8415L28.3036 73.1323ZM24.7568 70.9763L24.2319 71.5115L24.2374 71.5169L24.243 71.5221L24.7568 70.9763ZM22.6018 67.5279L22.0933 66.9761L21.7343 67.3069L21.8919 67.7692L22.6018 67.5279ZM23.2702 66.9122L24.0193 66.8753L23.9388 65.276L22.7617 66.3604L23.2702 66.9122ZM24.0396 82.2002L24.0773 82.9493L24.8263 82.9124L24.7886 82.1633L24.0396 82.2002ZM35.8117 64.8368L35.1827 64.4277L35.1811 64.4302L35.8117 64.8368ZM35.0599 49.8976L34.4685 50.3582L34.4741 50.3655L34.4799 50.3725L35.0599 49.8976ZM25.796 48.7811L26.2479 49.3802L26.2551 49.3747L26.2621 49.3692L25.796 48.7811ZM23.4079 52.2788L22.7006 52.0286L22.6978 52.0365L22.6952 52.0443L23.4079 52.2788ZM23.9754 63.5558L23.2898 63.8592V63.8592L23.9754 63.5558ZM26.6477 66.8622L26.243 67.4932L26.2557 67.5014L26.2687 67.509L26.6477 66.8622ZM16.5986 82.5672L17.3477 82.5303L15.3468 42.7698L14.5977 42.8068L13.8486 42.8437L15.8495 82.6042L16.5986 82.5672ZM14.5977 42.8068L14.6354 43.5558L21.7856 43.2032L21.7479 42.4541L21.7102 41.7051L14.56 42.0577L14.5977 42.8068ZM21.7479 42.4541L21.0001 42.5107L21.508 49.1289L22.2558 49.0722L23.0037 49.0156L22.4958 42.3975L21.7479 42.4541ZM22.2558 49.0722L22.5355 48.3767L21.7622 48.0652L21.4826 48.7607L21.2029 49.4563L21.9761 49.7678L22.2558 49.0722ZM21.4826 48.7607L22.2041 48.9662C22.8261 46.7755 23.9148 45.1392 25.4477 44.0036L25.0008 43.4009L24.5539 42.7981C22.7159 44.1597 21.4591 46.0967 20.761 48.5553L21.4826 48.7607ZM25.0008 43.4009L25.4507 44.0014C27.0416 42.8104 28.9376 42.1511 31.168 42.0411L31.1303 41.2921L31.0926 40.543C28.5949 40.6662 26.4045 41.4128 24.5509 42.8004L25.0008 43.4009ZM31.1303 41.2921L31.168 42.0411C33.985 41.9022 36.2929 42.4922 38.1428 43.7585L38.5661 43.1397L38.9893 42.521C36.8156 41.0332 34.1663 40.3914 31.0926 40.543L31.1303 41.2921ZM38.5661 43.1397L38.1487 43.7625C40.0761 45.055 41.5593 46.8278 42.5972 49.1035L43.2796 48.7929L43.962 48.4823C42.8165 45.9707 41.1572 43.9748 38.9834 42.517L38.5661 43.1397ZM43.2796 48.7929L42.5972 49.1035C43.6447 51.4 44.2473 53.9941 44.3934 56.8963L45.1425 56.8593L45.8915 56.8224C45.7373 53.7566 45.098 50.9731 43.962 48.4823L43.2796 48.7929ZM45.1425 56.8593L44.3934 56.8963C44.5392 59.7949 44.1817 62.433 43.3338 64.8204L44.0406 65.072L44.7474 65.3236C45.669 62.7287 46.046 59.8917 45.8915 56.8224L45.1425 56.8593ZM44.0406 65.072L43.3304 64.83C42.5261 67.1967 41.2283 69.1066 39.4402 70.5824L39.918 71.1609L40.3958 71.7395C42.4125 70.0751 43.8631 67.9257 44.7508 65.3139L44.0406 65.072ZM39.918 71.1609L39.4347 70.5869C37.721 72.0289 35.4838 72.8431 32.6668 72.9821L32.7045 73.7311L32.7422 74.4802C35.8159 74.3286 38.3877 73.4293 40.4013 71.735L39.918 71.1609ZM32.7045 73.7311L32.6668 72.9821C31.206 73.0541 29.8349 72.8659 28.5468 72.4231L28.3036 73.1323L28.0604 73.8415C29.5398 74.3501 31.1026 74.561 32.7422 74.4802L32.7045 73.7311ZM28.3036 73.1323L28.554 72.4256C27.3051 71.9822 26.213 71.3176 25.2706 70.4305L24.7568 70.9763L24.243 71.5221C25.3398 72.5546 26.6122 73.3274 28.0533 73.839L28.3036 73.1323ZM24.7568 70.9763L25.2817 70.4411C24.3871 69.564 23.7308 68.5161 23.3118 67.2866L22.6018 67.5279L21.8919 67.7692C22.3845 69.2142 23.1648 70.4653 24.2319 71.5115L24.7568 70.9763ZM22.6018 67.5279L23.1104 68.0797L23.7787 67.464L23.2702 66.9122L22.7617 66.3604L22.0933 66.9761L22.6018 67.5279ZM23.2702 66.9122L22.5211 66.9492L23.2905 82.2372L24.0396 82.2002L24.7886 82.1633L24.0193 66.8753L23.2702 66.9122ZM24.0396 82.2002L24.0019 81.4512L16.5609 81.8182L16.5986 82.5672L16.6363 83.3163L24.0773 82.9493L24.0396 82.2002ZM30.6563 67.7717L30.694 68.5207C33.1761 68.3983 35.1186 67.298 36.4424 65.2434L35.8117 64.8368L35.1811 64.4302C34.1265 66.067 32.632 66.9233 30.6186 67.0226L30.6563 67.7717ZM35.8117 64.8368L36.4408 65.2459C37.7818 63.1826 38.3246 60.476 38.16 57.2037L37.4109 57.2407L36.6618 57.2776C36.8169 60.3608 36.2937 62.7183 35.1827 64.4277L35.8117 64.8368ZM37.4109 57.2407L38.16 57.2037C37.9953 53.9328 37.1847 51.308 35.6399 49.4226L35.0599 49.8976L34.4799 50.3725C35.7499 51.9225 36.5065 54.193 36.6618 57.2776L37.4109 57.2407ZM35.0599 49.8976L35.6513 49.4369C34.1287 47.4835 32.0836 46.5546 29.5947 46.6774L29.6324 47.4264L29.6701 48.1755C31.6767 48.0765 33.25 48.795 34.4685 50.3582L35.0599 49.8976ZM29.6324 47.4264L29.5947 46.6774C27.9488 46.7585 26.5145 47.2548 25.33 48.193L25.796 48.7811L26.2621 49.3692C27.1698 48.6502 28.2931 48.2434 29.6701 48.1755L29.6324 47.4264ZM25.796 48.7811L25.3442 48.182C24.1525 49.0801 23.2815 50.382 22.7006 52.0286L23.4079 52.2788L24.1152 52.5289C24.6223 51.0916 25.3434 50.0618 26.2479 49.3802L25.796 48.7811ZM23.4079 52.2788L22.6952 52.0443C22.1525 53.6986 21.9545 55.6908 22.0706 57.9973L22.8197 57.9603L23.5688 57.9234C23.4586 55.7345 23.6528 53.939 24.1206 52.5132L23.4079 52.2788ZM22.8197 57.9603L22.0706 57.9973C22.1867 60.3037 22.5837 62.2666 23.2898 63.8592L23.9754 63.5558L24.661 63.2525C24.0524 61.8797 23.6789 60.1122 23.5688 57.9234L22.8197 57.9603ZM23.9754 63.5558L23.2898 63.8592C23.9938 65.4472 24.9709 66.6767 26.243 67.4932L26.6477 66.8622L27.0524 66.2312C26.0763 65.6046 25.2718 64.6299 24.661 63.2525L23.9754 63.5558ZM26.6477 66.8622L26.2687 67.509C27.571 68.2728 29.0555 68.6015 30.694 68.5207L30.6563 67.7717L30.6186 67.0226C29.2342 67.0909 28.0463 66.8134 27.0267 66.2154L26.6477 66.8622ZM55.5637 70.3893L55.1386 71.0068L55.1464 71.012L55.5637 70.3893ZM54.4668 57.8563L54.998 58.3863V58.3863L54.4668 57.8563ZM61.9183 54.2254L62.0974 54.9539L62.1006 54.9531L61.9183 54.2254ZM72.1053 51.6834L72.2876 52.4111L72.8854 52.2619L72.8544 51.6465L72.1053 51.6834ZM70.3452 46.817L69.8126 47.3446L69.822 47.3537L70.3452 46.817ZM61.6049 46.8401L62.1049 47.3997L62.1073 47.3975L61.6049 46.8401ZM59.6906 50.4893L59.6937 51.2392L60.3077 51.2373L60.4265 50.6351L59.6906 50.4893ZM52.1159 50.5132L51.3727 50.4109L51.2559 51.2659L52.119 51.2632L52.1159 50.5132ZM56.2699 42.7328L56.7404 43.3173L56.7465 43.3123L56.2699 42.7328ZM75.663 42.4755L75.1599 43.0314L75.1697 43.0399L75.663 42.4755ZM80.6319 64.7824L80.0929 65.3034L80.1103 65.3214L80.1288 65.3382L80.6319 64.7824ZM82.9806 65.1327L83.7296 65.0958L83.6919 64.3467L82.9429 64.3837L82.9806 65.1327ZM83.2526 70.5388L83.5253 71.2377L84.0289 71.0417L84.0017 70.5018L83.2526 70.5388ZM82.0988 70.7705L82.0078 70.026L82.0037 70.0265L82.0988 70.7705ZM77.0731 70.4939L76.8159 71.1981L76.8275 71.2024L76.8393 71.2063L77.0731 70.4939ZM74.6395 68.4578L73.9918 68.8354L73.9978 68.8454L74.6395 68.4578ZM73.6121 64.2545L74.0222 63.627L72.789 62.8205L72.863 64.2914L73.6121 64.2545ZM74.275 64.688L75.0136 64.8189L75.0995 64.3315L74.6851 64.0605L74.275 64.688ZM72.4246 68.4505L71.8592 67.9571L71.8589 67.9575L72.4246 68.4505ZM68.7108 71.0811L69.0091 71.7695V71.7695L68.7108 71.0811ZM69.0142 65.5302L69.4074 66.1692L69.4074 66.1692L69.0142 65.5302ZM71.667 62.6605L72.3374 62.9976V62.9976L71.667 62.6605ZM72.3598 56.7407L73.1089 56.7037L73.0628 55.7874L72.1739 56.0139L72.3598 56.7407ZM64.4195 58.764L64.2336 58.0372L64.2291 58.0384L64.4195 58.764ZM60.8943 60.5112L61.436 61.0304L61.4368 61.0296L60.8943 60.5112ZM61.2826 65.9115L60.8262 66.5062L60.8333 66.5117L60.8406 66.517L61.2826 65.9115ZM63.5228 72.2111L63.4851 71.4621C60.3394 71.6172 57.8602 71.0267 55.9811 69.7666L55.5637 70.3893L55.1464 71.012C57.3685 72.5021 60.1953 73.1262 63.5605 72.9602L63.5228 72.2111ZM55.5637 70.3893L55.9888 69.7718C54.1448 68.5016 53.156 66.6814 53.0321 64.2206L52.2831 64.2575L51.534 64.2945C51.6793 67.1816 52.8776 69.4492 55.1386 71.0067L55.5637 70.3893ZM52.2831 64.2575L53.0321 64.2206C52.906 61.7145 53.5852 59.8019 54.998 58.3863L54.4668 57.8563L53.9356 57.3263C52.1676 59.0978 51.3909 61.4527 51.534 64.2945L52.2831 64.2575ZM54.4668 57.8563L54.998 58.3863C56.4523 56.9291 58.7868 55.7646 62.0974 54.9539L61.9183 54.2254L61.7392 53.497C58.2953 54.3403 55.6621 55.5964 53.9356 57.3263L54.4668 57.8563ZM61.9183 54.2254L62.1006 54.9531L72.2876 52.4111L72.1053 51.6834L71.923 50.9558L61.736 53.4978L61.9183 54.2254ZM72.1053 51.6834L72.8544 51.6465C72.7383 49.3396 72.12 47.5001 70.8685 46.2802L70.3452 46.817L69.822 47.3537C70.6949 48.2047 71.25 49.6095 71.3562 51.7204L72.1053 51.6834ZM70.3452 46.817L70.8778 46.2894C69.6206 45.0205 67.8662 44.4984 65.7465 44.6029L65.7842 45.352L65.8219 46.101C67.6552 46.0106 68.9415 46.4652 69.8126 47.3445L70.3452 46.817ZM65.7842 45.352L65.7465 44.6029C63.8471 44.6966 62.2702 45.2307 61.1025 46.2828L61.6049 46.8401L62.1073 47.3975C62.9466 46.6413 64.1559 46.1832 65.8219 46.101L65.7842 45.352ZM61.6049 46.8401L61.1049 46.2806C59.9906 47.276 59.2883 48.6524 58.9547 50.3434L59.6906 50.4893L60.4265 50.6351C60.712 49.1876 61.2859 48.1313 62.1049 47.3996L61.6049 46.8401ZM59.6906 50.4893L59.6875 49.7393L52.1127 49.7632L52.1159 50.5132L52.119 51.2632L59.6937 51.2392L59.6906 50.4893ZM52.1159 50.5132L52.859 50.6155C53.291 47.4541 54.5941 45.0439 56.7404 43.3173L56.2699 42.7328L55.7993 42.1482C53.3156 44.1464 51.8493 46.9231 51.3727 50.4109L52.1159 50.5132ZM56.2699 42.7328L56.7465 43.3123C58.9041 41.5389 61.8107 40.5298 65.5323 40.3462L65.4946 39.5972L65.4569 38.8481C61.505 39.0431 58.2618 40.1243 55.7933 42.1532L56.2699 42.7328ZM65.4946 39.5972L65.5323 40.3462C69.8305 40.1343 72.9964 41.0731 75.16 43.0313L75.663 42.4755L76.166 41.9198C73.6079 39.6044 69.9948 38.6243 65.4569 38.8481L65.4946 39.5972ZM75.663 42.4755L75.1697 43.0399C77.3714 44.9647 78.6218 47.8684 78.8235 51.8765L79.5726 51.8396L80.3217 51.8027C80.106 47.5177 78.75 44.1786 76.1564 41.9112L75.663 42.4755ZM79.5726 51.8396L78.8235 51.8765L79.391 63.1536L80.1401 63.1167L80.8892 63.0797L80.3217 51.8027L79.5726 51.8396ZM80.1401 63.1167L79.391 63.1536C79.4335 63.9971 79.6037 64.7975 80.0929 65.3034L80.6319 64.7824L81.1708 64.2613C81.0863 64.1739 80.9287 63.8639 80.8892 63.0797L80.1401 63.1167ZM80.6319 64.7824L80.1288 65.3382C80.6453 65.8056 81.317 65.9657 82.03 65.9305L81.9923 65.1815L81.9546 64.4324C81.505 64.4546 81.2697 64.3486 81.1349 64.2266L80.6319 64.7824ZM81.9923 65.1815L82.03 65.9305L83.0183 65.8818L82.9806 65.1327L82.9429 64.3837L81.9546 64.4324L81.9923 65.1815ZM82.9806 65.1327L82.2315 65.1697L82.5035 70.5757L83.2526 70.5388L84.0017 70.5018L83.7296 65.0958L82.9806 65.1327ZM83.2526 70.5388L82.98 69.8398C82.846 69.892 82.5428 69.9611 82.0078 70.026L82.0988 70.7705L82.1897 71.515C82.7359 71.4488 83.202 71.3635 83.5253 71.2377L83.2526 70.5388ZM82.0988 70.7705L82.0037 70.0265C81.5222 70.0875 81.0192 70.1311 80.4944 70.157L80.5321 70.906L80.5698 71.6551C81.1301 71.6274 81.6716 71.5807 82.1938 71.5145L82.0988 70.7705ZM80.5321 70.906L80.4944 70.157C79.2908 70.2163 78.2319 70.0858 77.3068 69.7815L77.0731 70.4939L76.8393 71.2063C77.9685 71.5777 79.2156 71.7219 80.5698 71.6551L80.5321 70.906ZM77.0731 70.4939L77.3302 69.7896C76.4694 69.4746 75.7904 68.912 75.2812 68.0701L74.6395 68.4578L73.9978 68.8454C74.6752 69.9652 75.6186 70.76 76.8159 71.1981L77.0731 70.4939ZM74.6395 68.4578L75.2872 68.0802C74.7757 67.2041 74.4477 65.9364 74.3612 64.2175L73.6121 64.2545L72.863 64.2914C72.9559 66.1378 73.3129 67.6723 73.9919 68.8354L74.6395 68.4578ZM73.6121 64.2545L73.202 64.882L73.8649 65.3155L74.275 64.688L74.6851 64.0605L74.0222 63.627L73.6121 64.2545ZM74.275 64.688L73.5363 64.5571C73.3202 65.7832 72.7691 66.9143 71.8592 67.9571L72.4246 68.4505L72.99 68.9438C74.0637 67.7132 74.7462 66.336 75.0136 64.8189L74.275 64.688ZM72.4246 68.4505L71.8589 67.9575C70.987 68.9582 69.8452 69.7732 68.4125 70.3928L68.7108 71.0811L69.0091 71.7695C70.6183 71.0736 71.9523 70.1348 72.9904 68.9434L72.4246 68.4505ZM68.7108 71.0811L68.4125 70.3928C66.9868 71.0093 65.348 71.3702 63.4851 71.4621L63.5228 72.2111L63.5605 72.9602C65.573 72.8609 67.3929 72.4685 69.0091 71.7695L68.7108 71.0811ZM64.7621 66.7306L64.7998 67.4796C66.5652 67.3925 68.1109 66.9661 69.4074 66.1692L69.0142 65.5302L68.621 64.8912C67.581 65.5304 66.292 65.9042 64.7244 65.9815L64.7621 66.7306ZM69.0142 65.5302L69.4074 66.1692C70.6911 65.3802 71.6729 64.3204 72.3374 62.9976L71.667 62.6605L70.9967 62.3233C70.4606 63.3907 69.6737 64.2441 68.621 64.8912L69.0142 65.5302ZM71.667 62.6605L72.3374 62.9976C73.0059 61.6667 73.2819 60.1414 73.1967 58.4476L72.4476 58.4846L71.6985 58.5215C71.7732 60.0055 71.5288 61.2641 70.9967 62.3233L71.667 62.6605ZM72.4476 58.4846L73.1967 58.4476L73.1089 56.7037L72.3598 56.7407L71.6107 56.7776L71.6985 58.5215L72.4476 58.4846ZM72.3598 56.7407L72.1739 56.0139L64.2336 58.0372L64.4195 58.764L64.6054 59.4907L72.5457 57.4674L72.3598 56.7407ZM64.4195 58.764L64.2291 58.0384C62.5269 58.4833 61.1937 59.1117 60.3517 59.9929L60.8943 60.5112L61.4368 61.0296C61.9973 60.443 63.0142 59.9066 64.6098 59.4896L64.4195 58.764ZM60.8943 60.5112L60.3525 59.992C59.5261 60.8543 59.167 61.9541 59.2304 63.2156L59.9795 63.1787L60.7286 63.1417C60.6829 62.233 60.9336 61.5546 61.436 61.0304L60.8943 60.5112ZM59.9795 63.1787L59.2304 63.2156C59.2998 64.5927 59.8112 65.7269 60.8262 66.5062L61.2826 65.9115L61.739 65.3169C61.1375 64.855 60.7802 64.1672 60.7286 63.1417L59.9795 63.1787ZM61.2826 65.9115L60.8406 66.517C61.8732 67.2712 63.2241 67.5573 64.7998 67.4796L64.7621 66.7306L64.7244 65.9815C63.3548 66.0491 62.386 65.7891 61.7246 65.3061L61.2826 65.9115ZM90.4102 70.1857L89.6611 70.2227L89.6988 70.9717L90.4478 70.9348L90.4102 70.1857ZM88.848 39.1447L88.8103 38.3956L88.0612 38.4326L88.0989 39.1816L88.848 39.1447ZM95.5913 38.8121L96.3388 38.7502L96.2782 38.0273L95.5536 38.063L95.5913 38.8121ZM96.3208 47.5171L96.0776 48.2263L97.1641 48.5998L97.0682 47.4553L96.3208 47.5171ZM95.4313 47.2114L94.6844 47.142L94.6305 47.7289L95.1881 47.9206L95.4313 47.2114ZM97.0864 41.8851L96.4605 41.4711V41.4711L97.0864 41.8851ZM100.486 38.8037L100.147 38.1343V38.1343L100.486 38.8037ZM110.863 38.8747L110.486 39.5229L110.494 39.5271L110.863 38.8747ZM114.678 42.8822L114.012 43.2269L114.015 43.2325L114.678 42.8822ZM117.209 68.864L117.247 69.613L117.996 69.5761L117.958 68.827L117.209 68.864ZM109.768 69.231L109.019 69.2679L109.057 70.017L109.806 69.98L109.768 69.231ZM108.139 47.2839L108.848 47.0396V47.0396L108.139 47.2839ZM106.258 44.6378L105.801 45.2325L105.817 45.2447L105.834 45.256L106.258 44.6378ZM98.4073 46.1322L97.815 45.6714L97.8077 45.6811L98.4073 46.1322ZM97.8511 69.8187L97.8888 70.5678L98.6379 70.5308L98.6002 69.7818L97.8511 69.8187ZM90.4102 70.1857L91.1592 70.1488L89.5971 39.1077L88.848 39.1447L88.0989 39.1816L89.6611 70.2227L90.4102 70.1857ZM88.848 39.1447L88.8857 39.8937L95.629 39.5611L95.5913 38.8121L95.5536 38.063L88.8103 38.3956L88.848 39.1447ZM95.5913 38.8121L94.8439 38.874L95.5734 47.579L96.3208 47.5171L97.0682 47.4553L96.3388 38.7502L95.5913 38.8121ZM96.3208 47.5171L96.564 46.8079L95.6745 46.5022L95.4313 47.2114L95.1881 47.9206L96.0776 48.2263L96.3208 47.5171ZM95.4313 47.2114L96.1782 47.2807C96.3714 45.1782 96.897 43.5323 97.7122 42.2991L97.0864 41.8851L96.4605 41.4711C95.4706 42.9687 94.8928 44.8736 94.6844 47.142L95.4313 47.2114ZM97.0864 41.8851L97.7122 42.2991C98.5482 41.0344 99.5855 40.0992 100.825 39.4732L100.486 38.8037L100.147 38.1343C98.6589 38.886 97.4296 40.0051 96.4605 41.4711L97.0864 41.8851ZM100.486 38.8037L100.825 39.4732C102.087 38.8359 103.498 38.4737 105.069 38.3962L105.032 37.6472L104.994 36.8981C103.233 36.985 101.613 37.3939 100.147 38.1343L100.486 38.8037ZM105.032 37.6472L105.069 38.3962C107.245 38.2889 109.038 38.6803 110.486 39.5229L110.863 38.8747L111.24 38.2265C109.486 37.2068 107.391 36.7799 104.994 36.8981L105.032 37.6472ZM110.863 38.8747L110.494 39.5271C112.001 40.3815 113.172 41.6079 114.012 43.2269L114.678 42.8822L115.344 42.5376C114.376 40.6716 113.004 39.2263 111.232 38.2223L110.863 38.8747ZM114.678 42.8822L114.015 43.2325C114.856 44.8213 115.344 46.7244 115.457 48.9626L116.206 48.9256L116.955 48.8887C116.833 46.4764 116.303 44.3507 115.341 42.532L114.678 42.8822ZM116.206 48.9256L115.457 48.9626L116.46 68.9009L117.209 68.864L117.958 68.827L116.955 48.8887L116.206 48.9256ZM117.209 68.864L117.171 68.1149L109.731 68.4819L109.768 69.231L109.806 69.98L117.247 69.613L117.209 68.864ZM109.768 69.231L110.517 69.194L109.634 51.639L108.885 51.6759L108.136 51.7129L109.019 69.2679L109.768 69.231ZM108.885 51.6759L109.634 51.639C109.544 49.85 109.288 48.3111 108.848 47.0396L108.139 47.2839L107.43 47.5282C107.809 48.6249 108.05 50.0141 108.136 51.7129L108.885 51.6759ZM108.139 47.2839L108.848 47.0396C108.398 45.7381 107.687 44.7092 106.682 44.0196L106.258 44.6378L105.834 45.256C106.519 45.7263 107.062 46.4614 107.43 47.5282L108.139 47.2839ZM106.258 44.6378L106.714 44.0432C105.727 43.2855 104.473 42.9843 103.031 43.0554L103.069 43.8044L103.107 44.5535C104.3 44.4946 105.172 44.749 105.801 45.2325L106.258 44.6378ZM103.069 43.8044L103.031 43.0554C100.855 43.1627 99.0911 44.031 97.8151 45.6714L98.4073 46.1322L98.9996 46.593C99.986 45.3247 101.33 44.6411 103.107 44.5535L103.069 43.8044ZM98.4073 46.1322L97.8077 45.6811C96.5713 47.3249 96.081 49.5673 96.2185 52.3006L96.9676 52.2637L97.7167 52.2267C97.589 49.6897 98.0585 47.8444 99.0069 46.5834L98.4073 46.1322ZM96.9676 52.2637L96.2185 52.3006L97.102 69.8557L97.8511 69.8187L98.6002 69.7818L97.7167 52.2267L96.9676 52.2637ZM97.8511 69.8187L97.8134 69.0697L90.3725 69.4367L90.4102 70.1857L90.4478 70.9348L97.8888 70.5678L97.8511 69.8187ZM130.964 66.0294L130.461 66.5853L130.468 66.5919L130.964 66.0294ZM126.994 29.9791L126.956 29.23L126.207 29.267L126.244 30.016L126.994 29.9791ZM134.435 29.6121L135.184 29.5751L135.146 28.8261L134.397 28.863L134.435 29.6121ZM136.962 61.3048L136.477 61.8766L136.487 61.8849L136.497 61.8929L136.962 61.3048ZM144.269 61.7603L145.018 61.7233L144.981 60.9743L144.232 61.0112L144.269 61.7603ZM144.559 67.5151L144.597 68.2641L145.346 68.2272L145.308 67.4781L144.559 67.5151ZM122.766 43.2409L122.017 43.2778L122.054 44.0269L122.803 43.9899L122.766 43.2409ZM122.476 37.4861L122.438 36.737L121.689 36.774L121.727 37.523L122.476 37.4861ZM142.997 36.474L143.746 36.437L143.708 35.688L142.959 35.7249L142.997 36.474ZM143.286 42.2288L143.324 42.9778L144.073 42.9409L144.036 42.1918L143.286 42.2288ZM137.932 67.8419L137.894 67.0929C134.892 67.241 132.798 66.6463 131.46 65.467L130.964 66.0294L130.468 66.5919C132.22 68.1351 134.771 68.7487 137.97 68.591L137.932 67.8419ZM130.964 66.0294L131.467 65.4737C130.169 64.2988 129.372 62.3182 129.223 59.3556L128.474 59.3925L127.725 59.4295C127.884 62.5898 128.747 65.0338 130.461 66.5852L130.964 66.0294ZM128.474 59.3925L129.223 59.3556L127.743 29.9421L126.994 29.9791L126.244 30.016L127.725 59.4295L128.474 59.3925ZM126.994 29.9791L127.031 30.7281L134.472 30.3611L134.435 29.6121L134.397 28.863L126.956 29.23L126.994 29.9791ZM134.435 29.6121L133.685 29.649L135.131 58.3649L135.88 58.328L136.629 58.291L135.184 29.5751L134.435 29.6121ZM135.88 58.328L135.131 58.3649C135.206 59.8707 135.59 61.1239 136.477 61.8766L136.962 61.3048L137.447 60.7331C137.035 60.3843 136.697 59.653 136.629 58.291L135.88 58.328ZM136.962 61.3048L136.497 61.8929C137.351 62.5682 138.551 62.7932 139.947 62.7243L139.909 61.9753L139.872 61.2262C138.633 61.2873 137.868 61.0654 137.427 60.7168L136.962 61.3048ZM139.909 61.9753L139.947 62.7243L144.307 62.5093L144.269 61.7603L144.232 61.0112L139.872 61.2262L139.909 61.9753ZM144.269 61.7603L143.52 61.7972L143.81 67.552L144.559 67.5151L145.308 67.4781L145.018 61.7233L144.269 61.7603ZM144.559 67.5151L144.521 66.766L137.894 67.0929L137.932 67.8419L137.97 68.591L144.597 68.2641L144.559 67.5151ZM122.766 43.2409L123.515 43.2039L123.225 37.4491L122.476 37.4861L121.727 37.523L122.017 43.2778L122.766 43.2409ZM122.476 37.4861L122.514 38.2351L143.035 37.223L142.997 36.474L142.959 35.7249L122.438 36.737L122.476 37.4861ZM142.997 36.474L142.248 36.5109L142.537 42.2657L143.286 42.2288L144.036 42.1918L143.746 36.437L142.997 36.474ZM143.286 42.2288L143.249 41.4797L122.728 42.4918L122.766 43.2409L122.803 43.9899L143.324 42.9778L143.286 42.2288ZM153.258 65.5709L152.833 66.1884L152.84 66.1936L153.258 65.5709ZM152.161 53.0379L152.692 53.5679V53.5679L152.161 53.0379ZM159.612 49.4071L159.791 50.1355L159.795 50.1347L159.612 49.4071ZM169.799 46.8651L169.982 47.5927L170.579 47.4436L170.548 46.8281L169.799 46.8651ZM168.039 41.9986L167.507 42.5262L167.516 42.5354L168.039 41.9986ZM159.299 42.0218L159.799 42.5813L159.801 42.5791L159.299 42.0218ZM157.385 45.6709L157.388 46.4208L158.002 46.4189L158.12 45.8167L157.385 45.6709ZM149.81 45.6948L149.067 45.5926L148.95 46.4475L149.813 46.4448L149.81 45.6948ZM153.964 37.9144L154.434 38.4989L154.44 38.4939L153.964 37.9144ZM173.357 37.6572L172.854 38.213L172.864 38.2216L173.357 37.6572ZM178.326 59.964L177.787 60.4851L177.804 60.503L177.823 60.5198L178.326 59.964ZM180.675 60.3143L181.424 60.2774L181.386 59.5284L180.637 59.5653L180.675 60.3143ZM180.947 65.7204L181.219 66.4193L181.723 66.2233L181.696 65.6834L180.947 65.7204ZM179.793 65.9521L179.702 65.2076L179.698 65.2081L179.793 65.9521ZM174.767 65.6755L174.51 66.3798L174.522 66.384L174.533 66.3879L174.767 65.6755ZM172.333 63.6394L171.686 64.0171L171.692 64.0271L172.333 63.6394ZM171.306 59.4361L171.716 58.8086L170.483 58.0021L170.557 59.4731L171.306 59.4361ZM171.969 59.8696L172.708 60.0005L172.794 59.5131L172.379 59.2421L171.969 59.8696ZM170.119 63.6321L169.553 63.1388L169.553 63.1392L170.119 63.6321ZM166.405 66.2628L166.703 66.9512V66.9512L166.405 66.2628ZM166.708 60.7118L167.101 61.3508L167.101 61.3508L166.708 60.7118ZM169.361 57.8421L170.031 58.1793V58.1793L169.361 57.8421ZM170.054 51.9223L170.803 51.8854L170.757 50.9691L169.868 51.1956L170.054 51.9223ZM162.113 53.9456L161.928 53.2188L161.923 53.22L162.113 53.9456ZM158.588 55.6929L159.13 56.2121L159.131 56.2112L158.588 55.6929ZM158.977 61.0931L158.52 61.6878L158.527 61.6933L158.535 61.6986L158.977 61.0931ZM161.217 67.3928L161.179 66.6437C158.033 66.7989 155.554 66.2083 153.675 64.9482L153.258 65.5709L152.84 66.1936C155.062 67.6838 157.889 68.3078 161.254 68.1418L161.217 67.3928ZM153.258 65.5709L153.683 64.9535C151.839 63.6832 150.85 61.863 150.726 59.4022L149.977 59.4392L149.228 59.4761C149.373 62.3632 150.572 64.6308 152.833 66.1884L153.258 65.5709ZM149.977 59.4392L150.726 59.4022C150.6 56.8961 151.279 54.9835 152.692 53.5679L152.161 53.0379L151.63 52.5079C149.862 54.2794 149.085 56.6343 149.228 59.4761L149.977 59.4392ZM152.161 53.0379L152.692 53.5679C154.146 52.1107 156.481 50.9462 159.791 50.1355L159.612 49.4071L159.433 48.6786C155.989 49.5219 153.356 50.778 151.63 52.5079L152.161 53.0379ZM159.612 49.4071L159.795 50.1347L169.982 47.5927L169.799 46.8651L169.617 46.1374L159.43 48.6794L159.612 49.4071ZM169.799 46.8651L170.548 46.8281C170.432 44.5212 169.814 42.6817 168.562 41.4618L168.039 41.9986L167.516 42.5354C168.389 43.3863 168.944 44.7911 169.05 46.902L169.799 46.8651ZM168.039 41.9986L168.572 41.4711C167.315 40.2021 165.56 39.68 163.44 39.7846L163.478 40.5336L163.516 41.2827C165.349 41.1923 166.635 41.6468 167.507 42.5261L168.039 41.9986ZM163.478 40.5336L163.44 39.7846C161.541 39.8783 159.964 40.4123 158.796 41.4644L159.299 42.0218L159.801 42.5791C160.641 41.8229 161.85 41.3648 163.516 41.2827L163.478 40.5336ZM159.299 42.0218L158.799 41.4623C157.685 42.4576 156.982 43.834 156.649 45.5251L157.385 45.6709L158.12 45.8167C158.406 44.3693 158.98 43.3129 159.799 42.5813L159.299 42.0218ZM157.385 45.6709L157.381 44.9209L149.807 44.9449L149.81 45.6948L149.813 46.4448L157.388 46.4208L157.385 45.6709ZM149.81 45.6948L150.553 45.7971C150.985 42.6358 152.288 40.2255 154.434 38.4989L153.964 37.9144L153.493 37.3299C151.01 39.328 149.543 42.1047 149.067 45.5926L149.81 45.6948ZM153.964 37.9144L154.44 38.4939C156.598 36.7206 159.505 35.7114 163.226 35.5279L163.189 34.7788L163.151 34.0298C159.199 34.2247 155.956 35.3059 153.487 37.3348L153.964 37.9144ZM163.189 34.7788L163.226 35.5279C167.524 35.3159 170.69 36.2547 172.854 38.213L173.357 37.6572L173.86 37.1014C171.302 34.786 167.689 33.806 163.151 34.0298L163.189 34.7788ZM173.357 37.6572L172.864 38.2216C175.065 40.1464 176.316 43.05 176.517 47.0582L177.267 47.0212L178.016 46.9843C177.8 42.6993 176.444 39.3603 173.85 37.0928L173.357 37.6572ZM177.267 47.0212L176.517 47.0582L177.085 58.3353L177.834 58.2983L178.583 58.2614L178.016 46.9843L177.267 47.0212ZM177.834 58.2983L177.085 58.3353C177.127 59.1788 177.298 59.9792 177.787 60.4851L178.326 59.964L178.865 59.4429C178.78 59.3555 178.623 59.0455 178.583 58.2614L177.834 58.2983ZM178.326 59.964L177.823 60.5198C178.339 60.9872 179.011 61.1473 179.724 61.1121L179.686 60.3631L179.649 59.614C179.199 59.6362 178.964 59.5303 178.829 59.4082L178.326 59.964ZM179.686 60.3631L179.724 61.1121L180.712 61.0634L180.675 60.3143L180.637 59.5653L179.649 59.614L179.686 60.3631ZM180.675 60.3143L179.925 60.3513L180.198 65.7573L180.947 65.7204L181.696 65.6834L181.424 60.2774L180.675 60.3143ZM180.947 65.7204L180.674 65.0214C180.54 65.0736 180.237 65.1428 179.702 65.2076L179.793 65.9521L179.884 66.6966C180.43 66.6304 180.896 66.5451 181.219 66.4193L180.947 65.7204ZM179.793 65.9521L179.698 65.2081C179.216 65.2691 178.713 65.3127 178.188 65.3386L178.226 66.0877L178.264 66.8367C178.824 66.8091 179.366 66.7623 179.888 66.6961L179.793 65.9521ZM178.226 66.0877L178.188 65.3386C176.985 65.398 175.926 65.2674 175.001 64.9631L174.767 65.6755L174.533 66.3879C175.662 66.7593 176.91 66.9035 178.264 66.8367L178.226 66.0877ZM174.767 65.6755L175.024 64.9713C174.163 64.6563 173.484 64.0936 172.975 63.2518L172.333 63.6394L171.692 64.0271C172.369 65.1468 173.313 65.9416 174.51 66.3798L174.767 65.6755ZM172.333 63.6394L172.981 63.2618C172.47 62.3857 172.142 61.1181 172.055 59.3992L171.306 59.4361L170.557 59.4731C170.65 61.3194 171.007 62.854 171.686 64.017L172.333 63.6394ZM171.306 59.4361L170.896 60.0636L171.559 60.4971L171.969 59.8696L172.379 59.2421L171.716 58.8086L171.306 59.4361ZM171.969 59.8696L171.23 59.7387C171.014 60.9649 170.463 62.096 169.553 63.1388L170.119 63.6321L170.684 64.1255C171.758 62.8949 172.44 61.5177 172.708 60.0005L171.969 59.8696ZM170.119 63.6321L169.553 63.1392C168.681 64.1398 167.539 64.9548 166.106 65.5744L166.405 66.2628L166.703 66.9512C168.312 66.2553 169.646 65.3164 170.684 64.1251L170.119 63.6321ZM166.405 66.2628L166.106 65.5744C164.681 66.1909 163.042 66.5518 161.179 66.6437L161.217 67.3928L161.254 68.1418C163.267 68.0426 165.087 67.6501 166.703 66.9512L166.405 66.2628ZM162.456 61.9122L162.494 62.6612C164.259 62.5742 165.805 62.1477 167.101 61.3508L166.708 60.7118L166.315 60.0728C165.275 60.712 163.986 61.0858 162.418 61.1631L162.456 61.9122ZM166.708 60.7118L167.101 61.3508C168.385 60.5618 169.367 59.5021 170.031 58.1793L169.361 57.8421L168.691 57.505C168.155 58.5723 167.368 59.4257 166.315 60.0728L166.708 60.7118ZM169.361 57.8421L170.031 58.1793C170.7 56.8483 170.976 55.323 170.891 53.6292L170.142 53.6662L169.392 53.7031C169.467 55.1871 169.223 56.4458 168.691 57.505L169.361 57.8421ZM170.142 53.6662L170.891 53.6292L170.803 51.8854L170.054 51.9223L169.305 51.9593L169.392 53.7031L170.142 53.6662ZM170.054 51.9223L169.868 51.1956L161.928 53.2189L162.113 53.9456L162.299 54.6723L170.24 52.6491L170.054 51.9223ZM162.113 53.9456L161.923 53.22C160.221 53.6649 158.888 54.2933 158.046 55.1745L158.588 55.6929L159.131 56.2112C159.691 55.6247 160.708 55.0882 162.304 54.6712L162.113 53.9456ZM158.588 55.6929L158.047 55.1737C157.22 56.0359 156.861 57.1357 156.924 58.3972L157.674 58.3603L158.423 58.3233C158.377 57.4147 158.628 56.7362 159.13 56.2121L158.588 55.6929ZM157.674 58.3603L156.924 58.3972C156.994 59.7744 157.505 60.9085 158.52 61.6878L158.977 61.0931L159.433 60.4985C158.831 60.0367 158.474 59.3489 158.423 58.3233L157.674 58.3603ZM158.977 61.0931L158.535 61.6986C159.567 62.4528 160.918 62.739 162.494 62.6612L162.456 61.9122L162.418 61.1631C161.049 61.2307 160.08 60.9708 159.419 60.4877L158.977 61.0931ZM189.597 63.5455L190.056 62.9528V62.9528L189.597 63.5455ZM185.573 24.1179L185.535 23.3689L184.786 23.4058L184.824 24.1549L185.573 24.1179ZM193.014 23.7509L193.763 23.714L193.725 22.9649L192.976 23.0019L193.014 23.7509ZM195.353 58.658L194.85 59.2138L194.864 59.2258L194.877 59.2371L195.353 58.658ZM199.394 59.0415L200.143 59.0045L200.105 58.2555L199.356 58.2924L199.394 59.0415ZM199.683 64.7963L199.721 65.5453L200.47 65.5084L200.432 64.7593L199.683 64.7963ZM195.091 65.0228L195.053 64.2737C192.937 64.3781 191.295 63.9128 190.056 62.9528L189.597 63.5455L189.138 64.1383C190.728 65.3697 192.75 65.8892 195.129 65.7718L195.091 65.0228ZM189.597 63.5455L190.056 62.9528C188.879 62.0412 188.153 60.4649 188.03 58.0285L187.281 58.0655L186.532 58.1024C186.667 60.7814 187.485 62.8585 189.138 64.1383L189.597 63.5455ZM187.281 58.0655L188.03 58.0285L186.322 24.081L185.573 24.1179L184.824 24.1549L186.532 58.1024L187.281 58.0655ZM185.573 24.1179L185.611 24.867L193.052 24.5L193.014 23.7509L192.976 23.0019L185.535 23.3689L185.573 24.1179ZM193.014 23.7509L192.265 23.7879L193.935 56.9797L194.684 56.9428L195.433 56.9058L193.763 23.714L193.014 23.7509ZM194.684 56.9428L193.935 56.9797C193.98 57.8703 194.244 58.6647 194.85 59.2138L195.353 58.658L195.856 58.1022C195.649 57.9144 195.467 57.5654 195.433 56.9058L194.684 56.9428ZM195.353 58.658L194.877 59.2371C195.504 59.7523 196.295 59.9452 197.164 59.9023L197.127 59.1533L197.089 58.4042C196.485 58.434 196.094 58.2967 195.829 58.0789L195.353 58.658ZM197.127 59.1533L197.164 59.9023L199.431 59.7905L199.394 59.0415L199.356 58.2924L197.089 58.4042L197.127 59.1533ZM199.394 59.0415L198.645 59.0784L198.934 64.8332L199.683 64.7963L200.432 64.7593L200.143 59.0045L199.394 59.0415ZM199.683 64.7963L199.646 64.0472L195.053 64.2737L195.091 65.0228L195.129 65.7718L199.721 65.5453L199.683 64.7963ZM208.612 62.6077L209.071 62.0149V62.0149L208.612 62.6077ZM204.589 23.1801L204.551 22.431L203.802 22.4679L203.839 23.217L204.589 23.1801ZM212.029 22.8131L212.779 22.7761L212.741 22.0271L211.992 22.064L212.029 22.8131ZM214.369 57.7201L213.866 58.2759L213.879 58.2879L213.893 58.2992L214.369 57.7201ZM218.409 58.1036L219.158 58.0666L219.121 57.3176L218.372 57.3545L218.409 58.1036ZM218.699 63.8584L218.737 64.6074L219.486 64.5705L219.448 63.8214L218.699 63.8584ZM214.107 64.0849L214.069 63.3358C211.952 63.4402 210.311 62.9749 209.071 62.0149L208.612 62.6077L208.154 63.2004C209.744 64.4318 211.765 64.9513 214.144 64.8339L214.107 64.0849ZM208.612 62.6077L209.071 62.0149C207.894 61.1033 207.169 59.5271 207.046 57.0906L206.297 57.1276L205.548 57.1645C205.683 59.8435 206.501 61.9206 208.154 63.2004L208.612 62.6077ZM206.297 57.1276L207.046 57.0906L205.338 23.1431L204.589 23.1801L203.839 23.217L205.548 57.1645L206.297 57.1276ZM204.589 23.1801L204.626 23.9291L212.067 23.5621L212.029 22.8131L211.992 22.064L204.551 22.431L204.589 23.1801ZM212.029 22.8131L211.28 22.85L212.951 56.0419L213.7 56.0049L214.449 55.968L212.779 22.7761L212.029 22.8131ZM213.7 56.0049L212.951 56.0419C212.996 56.9324 213.259 57.7269 213.866 58.2759L214.369 57.7201L214.872 57.1643C214.665 56.9766 214.482 56.6276 214.449 55.968L213.7 56.0049ZM214.369 57.7201L213.893 58.2992C214.52 58.8144 215.311 59.0073 216.18 58.9645L216.142 58.2154L216.104 57.4664C215.501 57.4961 215.11 57.3588 214.845 57.141L214.369 57.7201ZM216.142 58.2154L216.18 58.9645L218.447 58.8526L218.409 58.1036L218.372 57.3545L216.104 57.4664L216.142 58.2154ZM218.409 58.1036L217.66 58.1405L217.95 63.8953L218.699 63.8584L219.448 63.8214L219.158 58.0666L218.409 58.1036ZM218.699 63.8584L218.661 63.1093L214.069 63.3358L214.107 64.0849L214.144 64.8339L218.737 64.6074L218.699 63.8584ZM227.222 61.9229L226.797 62.5404L226.805 62.5456L227.222 61.9229ZM226.125 49.3899L226.656 49.9199V49.9199L226.125 49.3899ZM233.576 45.7591L233.756 46.4875L233.759 46.4867L233.576 45.7591ZM243.764 43.2171L243.946 43.9447L244.544 43.7956L244.513 43.1801L243.764 43.2171ZM242.003 38.3506L241.471 38.8782L241.48 38.8874L242.003 38.3506ZM233.263 38.3738L233.763 38.9333L233.765 38.9311L233.263 38.3738ZM231.349 42.0229L231.352 42.7728L231.966 42.7709L232.085 42.1687L231.349 42.0229ZM223.774 42.0468L223.031 41.9446L222.914 42.7995L223.777 42.7968L223.774 42.0468ZM227.928 34.2664L228.399 34.8509L228.405 34.8459L227.928 34.2664ZM247.321 34.0092L246.818 34.565L246.828 34.5736L247.321 34.0092ZM252.29 56.316L251.751 56.8371L251.768 56.855L251.787 56.8718L252.29 56.316ZM254.639 56.6664L255.388 56.6294L255.35 55.8804L254.601 55.9173L254.639 56.6664ZM254.911 62.0724L255.183 62.7713L255.687 62.5753L255.66 62.0354L254.911 62.0724ZM253.757 62.3041L253.666 61.5596L253.662 61.5601L253.757 62.3041ZM248.731 62.0275L248.474 62.7318L248.486 62.736L248.498 62.7399L248.731 62.0275ZM246.298 59.9914L245.65 60.3691L245.656 60.3791L246.298 59.9914ZM245.27 55.7881L245.68 55.1606L244.447 54.3541L244.521 55.8251L245.27 55.7881ZM245.933 56.2216L246.672 56.3525L246.758 55.8652L246.343 55.5941L245.933 56.2216ZM244.083 59.9841L243.517 59.4908L243.517 59.4912L244.083 59.9841ZM240.369 62.6148L240.667 63.3032V63.3032L240.369 62.6148ZM240.672 57.0638L241.066 57.7028L241.066 57.7028L240.672 57.0638ZM243.325 54.1941L243.996 54.5313V54.5313L243.325 54.1941ZM244.018 48.2743L244.767 48.2374L244.721 47.3211L243.832 47.5476L244.018 48.2743ZM236.078 50.2976L235.892 49.5708L235.887 49.572L236.078 50.2976ZM232.552 52.0449L233.094 52.5641L233.095 52.5632L232.552 52.0449ZM232.941 57.4452L232.484 58.0398L232.491 58.0453L232.499 58.0506L232.941 57.4452ZM235.181 63.7448L235.143 62.9957C231.998 63.1509 229.518 62.5603 227.639 61.3002L227.222 61.9229L226.805 62.5456C229.027 64.0358 231.853 64.6598 235.219 64.4938L235.181 63.7448ZM227.222 61.9229L227.647 61.3055C225.803 60.0352 224.814 58.215 224.69 55.7542L223.941 55.7912L223.192 55.8281C223.337 58.7152 224.536 60.9829 226.797 62.5404L227.222 61.9229ZM223.941 55.7912L224.69 55.7542C224.564 53.2481 225.243 51.3355 226.656 49.9199L226.125 49.3899L225.594 48.8599C223.826 50.6314 223.049 52.9863 223.192 55.8281L223.941 55.7912ZM226.125 49.3899L226.656 49.9199C228.11 48.4627 230.445 47.2982 233.756 46.4875L233.576 45.7591L233.397 45.0306C229.953 45.874 227.32 47.13 225.594 48.8599L226.125 49.3899ZM233.576 45.7591L233.759 46.4867L243.946 43.9447L243.764 43.2171L243.581 42.4894L233.394 45.0314L233.576 45.7591ZM243.764 43.2171L244.513 43.1801C244.396 40.8732 243.778 39.0337 242.527 37.8139L242.003 38.3506L241.48 38.8874C242.353 39.7383 242.908 41.1431 243.014 43.254L243.764 43.2171ZM242.003 38.3506L242.536 37.8231C241.279 36.5541 239.524 36.032 237.405 36.1366L237.442 36.8856L237.48 37.6347C239.313 37.5443 240.6 37.9989 241.471 38.8781L242.003 38.3506ZM237.442 36.8856L237.405 36.1366C235.505 36.2303 233.928 36.7643 232.761 37.8164L233.263 38.3738L233.765 38.9311C234.605 38.1749 235.814 37.7169 237.48 37.6347L237.442 36.8856ZM233.263 38.3738L232.763 37.8143C231.649 38.8096 230.946 40.186 230.613 41.8771L231.349 42.0229L232.085 42.1687C232.37 40.7213 232.944 39.6649 233.763 38.9333L233.263 38.3738ZM231.349 42.0229L231.346 41.2729L223.771 41.2969L223.774 42.0468L223.777 42.7968L231.352 42.7728L231.349 42.0229ZM223.774 42.0468L224.517 42.1491C224.949 38.9878 226.252 36.5775 228.399 34.8509L227.928 34.2664L227.458 33.6819C224.974 35.68 223.508 38.4567 223.031 41.9446L223.774 42.0468ZM227.928 34.2664L228.405 34.8459C230.562 33.0726 233.469 32.0634 237.19 31.8799L237.153 31.1308L237.115 30.3818C233.163 30.5767 229.92 31.6579 227.451 33.6868L227.928 34.2664ZM237.153 31.1308L237.19 31.8799C241.489 31.6679 244.655 32.6067 246.818 34.565L247.321 34.0092L247.824 33.4534C245.266 31.138 241.653 30.158 237.115 30.3818L237.153 31.1308ZM247.321 34.0092L246.828 34.5736C249.03 36.4984 250.28 39.4021 250.482 43.4102L251.231 43.3732L251.98 43.3363C251.764 39.0513 250.408 35.7123 247.815 33.4448L247.321 34.0092ZM251.231 43.3732L250.482 43.4102L251.049 54.6873L251.798 54.6503L252.547 54.6134L251.98 43.3363L251.231 43.3732ZM251.798 54.6503L251.049 54.6873C251.092 55.5308 251.262 56.3312 251.751 56.8371L252.29 56.316L252.829 55.7949C252.744 55.7075 252.587 55.3975 252.547 54.6134L251.798 54.6503ZM252.29 56.316L251.787 56.8718C252.303 57.3392 252.975 57.4993 253.688 57.4642L253.65 56.7151L253.613 55.966C253.163 55.9882 252.928 55.8823 252.793 55.7602L252.29 56.316ZM253.65 56.7151L253.688 57.4642L254.676 57.4154L254.639 56.6664L254.601 55.9173L253.613 55.966L253.65 56.7151ZM254.639 56.6664L253.89 56.7033L254.162 62.1093L254.911 62.0724L255.66 62.0354L255.388 56.6294L254.639 56.6664ZM254.911 62.0724L254.638 61.3735C254.504 61.4256 254.201 61.4948 253.666 61.5596L253.757 62.3041L253.848 63.0486C254.394 62.9824 254.86 62.8971 255.183 62.7713L254.911 62.0724ZM253.757 62.3041L253.662 61.5601C253.18 61.6211 252.677 61.6647 252.153 61.6906L252.19 62.4397L252.228 63.1887C252.788 63.1611 253.33 63.1143 253.852 63.0481L253.757 62.3041ZM252.19 62.4397L252.153 61.6906C250.949 61.75 249.89 61.6194 248.965 61.3151L248.731 62.0275L248.498 62.7399C249.627 63.1113 250.874 63.2555 252.228 63.1887L252.19 62.4397ZM248.731 62.0275L248.988 61.3233C248.128 61.0083 247.449 60.4457 246.939 59.6038L246.298 59.9914L245.656 60.3791C246.333 61.4988 247.277 62.2936 248.474 62.7318L248.731 62.0275ZM246.298 59.9914L246.945 59.6138C246.434 58.7377 246.106 57.4701 246.019 55.7512L245.27 55.7881L244.521 55.8251C244.614 57.6714 244.971 59.206 245.65 60.369L246.298 59.9914ZM245.27 55.7881L244.86 56.4156L245.523 56.8491L245.933 56.2216L246.343 55.5941L245.68 55.1606L245.27 55.7881ZM245.933 56.2216L245.194 56.0907C244.978 57.3169 244.427 58.448 243.517 59.4908L244.083 59.9841L244.648 60.4775C245.722 59.2469 246.404 57.8697 246.672 56.3525L245.933 56.2216ZM244.083 59.9841L243.517 59.4912C242.645 60.4919 241.503 61.3068 240.071 61.9264L240.369 62.6148L240.667 63.3032C242.276 62.6073 243.611 61.6684 244.649 60.4771L244.083 59.9841ZM240.369 62.6148L240.071 61.9264C238.645 62.5429 237.006 62.9038 235.143 62.9957L235.181 63.7448L235.219 64.4938C237.231 64.3946 239.051 64.0021 240.667 63.3032L240.369 62.6148ZM236.42 58.2642L236.458 59.0132C238.223 58.9262 239.769 58.4997 241.066 57.7028L240.672 57.0638L240.279 56.4248C239.239 57.064 237.95 57.4378 236.383 57.5151L236.42 58.2642ZM240.672 57.0638L241.066 57.7028C242.349 56.9138 243.331 55.8541 243.996 54.5313L243.325 54.1941L242.655 53.857C242.119 54.9244 241.332 55.7777 240.279 56.4248L240.672 57.0638ZM243.325 54.1941L243.996 54.5313C244.664 53.2003 244.94 51.675 244.855 49.9813L244.106 50.0182L243.357 50.0551C243.431 51.5391 243.187 52.7978 242.655 53.857L243.325 54.1941ZM244.106 50.0182L244.855 49.9813L244.767 48.2374L244.018 48.2743L243.269 48.3113L243.357 50.0551L244.106 50.0182ZM244.018 48.2743L243.832 47.5476L235.892 49.5709L236.078 50.2976L236.264 51.0244L244.204 49.0011L244.018 48.2743ZM236.078 50.2976L235.887 49.572C234.185 50.0169 232.852 50.6453 232.01 51.5265L232.552 52.0449L233.095 52.5632C233.655 51.9767 234.672 51.4402 236.268 51.0232L236.078 50.2976ZM232.552 52.0449L232.011 51.5257C231.184 52.3879 230.825 53.4877 230.889 54.7492L231.638 54.7123L232.387 54.6753C232.341 53.7667 232.592 53.0882 233.094 52.5641L232.552 52.0449ZM231.638 54.7123L230.889 54.7492C230.958 56.1264 231.469 57.2605 232.484 58.0398L232.941 57.4452L233.397 56.8505C232.796 56.3887 232.438 55.7009 232.387 54.6753L231.638 54.7123ZM232.941 57.4452L232.499 58.0506C233.531 58.8048 234.882 59.091 236.458 59.0132L236.42 58.2642L236.383 57.5151C235.013 57.5827 234.044 57.3228 233.383 56.8397L232.941 57.4452ZM262.501 70.9053L261.777 70.7062L261.503 71.7054L262.538 71.6543L262.501 70.9053ZM265.061 61.5718L265.785 61.7708L266.059 60.7716L265.024 60.8227L265.061 61.5718ZM261.515 61.7467L260.766 61.7836L260.804 62.5327L261.553 62.4957L261.515 61.7467ZM261.106 53.6085L261.068 52.8595L260.319 52.8964L260.357 53.6455L261.106 53.6085ZM269.593 53.1899L270.342 53.153L270.304 52.4039L269.555 52.4409L269.593 53.1899ZM269.956 60.398L270.669 60.6291L270.712 60.4983L270.705 60.361L269.956 60.398ZM266.628 70.7017L266.666 71.4508L267.183 71.4253L267.342 70.9328L266.628 70.7017ZM262.501 70.9053L263.224 71.1044L265.785 61.7708L265.061 61.5718L264.338 61.3727L261.777 70.7062L262.501 70.9053ZM265.061 61.5718L265.024 60.8227L261.477 60.9976L261.515 61.7467L261.553 62.4957L265.099 62.3208L265.061 61.5718ZM261.515 61.7467L262.264 61.7097L261.855 53.5716L261.106 53.6085L260.357 53.6455L260.766 61.7836L261.515 61.7467ZM261.106 53.6085L261.143 54.3576L269.631 53.939L269.593 53.1899L269.555 52.4409L261.068 52.8595L261.106 53.6085ZM269.593 53.1899L268.844 53.2269L269.207 60.4349L269.956 60.398L270.705 60.361L270.342 53.153L269.593 53.1899ZM269.956 60.398L269.242 60.1669L265.914 70.4706L266.628 70.7017L267.342 70.9328L270.669 60.6291L269.956 60.398ZM266.628 70.7017L266.59 69.9527L262.463 70.1562L262.501 70.9053L262.538 71.6543L266.666 71.4508L266.628 70.7017Z" fill="white"/>
+</svg>
diff --git a/tsconfig.json b/tsconfig.json
new file mode 100644
index 0000000..3a13f90
--- /dev/null
+++ b/tsconfig.json
@@ -0,0 +1,34 @@
+{
+ "compilerOptions": {
+ "target": "ES2017",
+ "lib": ["dom", "dom.iterable", "esnext"],
+ "allowJs": true,
+ "skipLibCheck": true,
+ "strict": true,
+ "noEmit": true,
+ "esModuleInterop": true,
+ "module": "esnext",
+ "moduleResolution": "bundler",
+ "resolveJsonModule": true,
+ "isolatedModules": true,
+ "jsx": "react-jsx",
+ "incremental": true,
+ "plugins": [
+ {
+ "name": "next"
+ }
+ ],
+ "paths": {
+ "@/*": ["./*"]
+ }
+ },
+ "include": [
+ "next-env.d.ts",
+ "**/*.ts",
+ "**/*.tsx",
+ ".next/types/**/*.ts",
+ ".next/dev/types/**/*.ts",
+ "**/*.mts"
+ ],
+ "exclude": ["node_modules"]
+}
diff --git a/types/background.types.ts b/types/background.types.ts
new file mode 100644
index 0000000..1088f33
--- /dev/null
+++ b/types/background.types.ts
@@ -0,0 +1,142 @@
+/**
+ * Tipos para configuración de fondos (colores y gradientes)
+ */
+
+export type GradientType = "linear" | "radial" | "conic";
+export type GradientDirection =
+ | "to-t" | "to-tr" | "to-r" | "to-br"
+ | "to-b" | "to-bl" | "to-l" | "to-tl";
+
+export interface ColorStop {
+ id?: string; // Unique identifier for drag-and-drop
+ color: string;
+ position: number; // 0-100
+}
+
+export interface GradientConfig {
+ type: GradientType;
+ direction: GradientDirection;
+ angle?: number; // 0-360 para linear y conic
+ originX?: number; // 0-100 para conic (posición horizontal)
+ originY?: number; // 0-100 para conic (posición vertical)
+ stops: ColorStop[];
+}
+
+export interface SolidColor {
+ color: string;
+}
+
+export type BackgroundColorConfig = { type: "gradient"; config: GradientConfig }
+ | { type: "solid"; config: SolidColor }
+
+/**
+ * Colores sólidos predefinidos (48 colores únicos)
+ */
+export const PRESET_SOLID_COLORS = [
+ "#8D8D8D", "#ef4444", "#f59e0b", "#10b981",
+ "#3b82f6", "#8b5cf6", "#ec4899", "#ffffff",
+ "#6366f1", "#14b8a6", "#f97316", "#64748b",
+ "#00A3F0", "#d946ef", "#84cc16", "#06b6d4",
+ "#fbbf24", "#4ade80", "#ffff24", "#F472B6",
+ "#2DD4BF", "#A78BFA", "#FB7185", "#22C55E",
+ "#facc15", "#a855f7", "#0ea5e9", "#f43f5e",
+ "#22d3ee", "#fb923c", "#34d399", "#818cf8",
+ "#fde047", "#c084fc", "#38bdf8", "#f87171",
+ "#2dd4bf", "#a3e635", "#e879f9", "#60a5fa",
+ "#fcd34d", "#c026d3", "#0891b2", "#dc2626",
+ "#059669", "#7c3aed", "#ea580c", "#db2777",
+];
+const SHARED_PALETTES: ColorStop[][] = [
+ [{ color: "#FFFBFD", position: 0 }, { color: "#FFE5F5", position: 33 }, { color: "#F769EA", position: 66 }, { color: "#4A1C9B", position: 100 }],
+ [{ color: "#1D0127", position: 0 }, { color: "#6602C6", position: 33 }, { color: "#AD24E2", position: 66 }, { color: "#FDFBFF", position: 100 }],
+ [{ color: "#0D0B2E", position: 0 }, { color: "#1A1B63", position: 25 }, { color: "#2E5BFF", position: 50 }, { color: "#00D4FF", position: 75 }, { color: "#E0FFFF", position: 100 }],
+ [{ color: "#400A14", position: 0 }, { color: "#9B1B30", position: 25 }, { color: "#FF4D6D", position: 50 }, { color: "#FFB5A7", position: 75 }, { color: "#FFF5F5", position: 100 }],
+ [{ color: "#2B0F54", position: 0 }, { color: "#7F00FF", position: 25 }, { color: "#E100FF", position: 50 }, { color: "#FF8C94", position: 75 }, { color: "#FFE0B2", position: 100 }],
+ [{ color: "#1B262C", position: 0 }, { color: "#0F4C75", position: 25 }, { color: "#3282B8", position: 50 }, { color: "#BBE1FA", position: 75 }, { color: "#FFFFFF", position: 100 }],
+ [{ color: "#D9F4FF", position: 0 }, { color: "#FF8FA7", position: 50 }, { color: "#5D68FF", position: 100 }],
+ [{ color: "#1F005C", position: 0 }, { color: "#940D60", position: 33 }, { color: "#DA5F5C", position: 66 }, { color: "#FFB56B", position: 100 }],
+ [{ color: "#110B2A", position: 0 }, { color: "#6465F1", position: 33 }, { color: "#92DAFF", position: 66 }, { color: "#F9F7F8", position: 100 }],
+ [{ color: "#E3592E", position: 0 }, { color: "#EF7021", position: 25 }, { color: "#F9BE6C", position: 50 }, { color: "#D9D9D9", position: 75 }, { color: "#DCD7D6", position: 100 }],
+ [{ color: "#000428", position: 0 }, { color: "#004E92", position: 33 }, { color: "#00B4DB", position: 66 }, { color: "#A8E063", position: 100 }],
+ [{ color: "#F093FB", position: 0 }, { color: "#F5576C", position: 33 }, { color: "#F6D365", position: 66 }, { color: "#FDA085", position: 100 }],
+ [{ color: "#fee2e2", position: 0 }, { color: "#fca5a5", position: 50 }, { color: "#f87171", position: 100 }],
+ [{ color: "#f8fafc", position: 0 }, { color: "#e2e8f0", position: 50 }, { color: "#cbd5e1", position: 100 }],
+ [{ color: "#00c6ff", position: 0 }, { color: "#0072ff", position: 50 }, { color: "#00c6ff", position: 100 }],
+ [{ color: "#12c2e9", position: 0 }, { color: "#c471ed", position: 50 }, { color: "#f64f59", position: 100 }],
+ [{ color: "#0f172a", position: 0 }, { color: "#1e293b", position: 25 }, { color: "#334155", position: 50 }, { color: "#475569", position: 75 }, { color: "#64748b", position: 100 }],
+ [{ color: "#ffd700", position: 0 }, { color: "#fdbb2d", position: 50 }, { color: "#b21f1f", position: 100 }],
+ [{ color: "#e0e7ff", position: 0 }, { color: "#c7d2fe", position: 33 }, { color: "#818cf8", position: 66 }, { color: "#4f46e5", position: 100 }],
+ [{ color: "#FFF9AE", position: 0 }, { color: "#F8ED62", position: 50 }, { color: "#E9D700", position: 100 }],
+ [{ color: "#8f8f8f", position: 0 }, { color: "#444444", position: 50 }, { color: "#111111", position: 100 }],
+ [{ color: "#f093fb", position: 0 }, { color: "#d66efd", position: 50 }, { color: "#f5576c", position: 100 }],
+ [{ color: "#43e97b", position: 0 }, { color: "#3af2b0", position: 50 }, { color: "#38f9d7", position: 100 }],
+ [{ color: "#fa709a", position: 0 }, { color: "#fb9067", position: 40 }, { color: "#fec440", position: 80 }, { color: "#fee140", position: 100 }]
+];
+
+/**
+ * 2. Mapeo para Linear y Radial (Simples)
+ */
+export const PRESET_LINEAR_GRADIENTS: GradientConfig[] = SHARED_PALETTES.map(stops => ({
+ type: "linear", direction: "to-br", stops
+}));
+
+export const PRESET_RADIAL_GRADIENTS: GradientConfig[] = SHARED_PALETTES.map(stops => ({
+ type: "radial", direction: "to-br", stops
+}));
+
+const CONIC_METADATA = [
+ { angle: 180, originX: 0, originY: 53 }, { angle: 180, originX: 0, originY: 55 },
+ { angle: 180, originX: 0, originY: 55 }, { angle: 45, originX: 0, originY: 100 },
+ { angle: 270, originX: 100, originY: 50 }, { angle: 180, originX: 50, originY: 0 },
+ { angle: 160, originX: 110, originY: 110 }, { angle: 320, originX: 50, originY: -10 },
+ { angle: 180, originX: 100, originY: 40 }, { angle: 135, originX: 10, originY: 10 },
+ { angle: 0, originX: 50, originY: 90 }, { angle: 15, originX: 85, originY: 85 },
+ { angle: 180, originX: 60, originY: 60 }, { angle: 0, originX: 50, originY: 50 },
+ { angle: 0, originX: 25, originY: 25 }, { angle: 0, originX: 75, originY: 25 },
+ { angle: 0, originX: 25, originY: 75 }, { angle: 0, originX: 75, originY: 75 },
+ { angle: 0, originX: 50, originY: 35 }, { angle: 0, originX: 50, originY: 65 },
+ { angle: 0, originX: 35, originY: 50 }, { angle: 0, originX: 65, originY: 50 },
+ { angle: 0, originX: 50, originY: 50 }, { angle: 0, originX: 50, originY: 50 }
+];
+
+export const PRESET_CONIC_GRADIENTS: GradientConfig[] = CONIC_METADATA.map((meta, i) => ({
+ type: "conic",
+ direction: "to-br",
+ ...meta,
+ stops: SHARED_PALETTES[i]
+}));
+
+export const PRESET_GRADIENTS: GradientConfig[] = PRESET_LINEAR_GRADIENTS;
+export type { Swapy, SwapEvent, SlotItemMap } from 'swapy';
+
+export function gradientToCss(config: GradientConfig): string {
+ const stopsStr = config.stops
+ .sort((a, b) => a.position - b.position)
+ .map(stop => `${stop.color} ${stop.position}%`)
+ .join(", ");
+
+ if (config.type === "radial") {
+ return `radial-gradient(circle, ${stopsStr})`;
+ }
+
+ if (config.type === "conic") {
+ const angle = config.angle ?? 0;
+ const originX = config.originX ?? 50;
+ const originY = config.originY ?? 50;
+ return `conic-gradient(from ${angle}deg at ${originX}% ${originY}%, ${stopsStr})`;
+ }
+
+ const angleMap: Record<GradientDirection, number> = {
+ "to-t": 0,
+ "to-tr": 45,
+ "to-r": 90,
+ "to-br": 135,
+ "to-b": 180,
+ "to-bl": 225,
+ "to-l": 270,
+ "to-tl": 315,
+ };
+
+ const angle = config.angle ?? angleMap[config.direction];
+ return `linear-gradient(${angle}deg, ${stopsStr})`;
+}
diff --git a/types/canvas-elements.types.ts b/types/canvas-elements.types.ts
new file mode 100644
index 0000000..c2ac848
--- /dev/null
+++ b/types/canvas-elements.types.ts
@@ -0,0 +1,73 @@
+/**
+ * Canvas Elements Types
+ * Defines types for SVG shapes, images, and text elements that can be added to the canvas
+ */
+
+export type CanvasElementType = "svg" | "image" | "text";
+
+export interface CanvasElementBase {
+ id: string;
+ type: CanvasElementType;
+ x: number; // Position in percentage (0-100)
+ y: number; // Position in percentage (0-100)
+ width: number; // Size in percentage
+ height: number; // Size in percentage
+ rotation: number; // Rotation in degrees
+ opacity: number; // 0-100
+ zIndex: number; // Stacking order
+}
+
+export interface SvgElement extends CanvasElementBase {
+ type: "svg";
+ category: string; // e.g., "shapes", "arrows", "decorative"
+ svgId: string; // ID that maps to inline SVG component
+ color?: string; // Fill color (optional)
+}
+
+export interface ImageElement extends CanvasElementBase {
+ type: "image";
+ category: string; // e.g., "stickers", "overlays", "blurred"
+ imagePath: string; // Path to image file in public folder
+}
+
+export interface TextElement extends CanvasElementBase {
+ type: "text";
+ content: string;
+ fontSize: number; // Base size (will be scaled)
+ fontFamily: string;
+ fontWeight: "normal" | "medium" | "bold";
+ color: string;
+}
+
+export type CanvasElement = SvgElement | ImageElement | TextElement;
+
+/**
+ * SVG Category structure
+ */
+export interface SvgCategory {
+ id: string;
+ title: string;
+ items: SvgItem[];
+}
+
+export interface SvgItem {
+ id: string;
+ name: string;
+ icon: string; // Iconify icon for preview
+}
+
+/**
+ * Image Category structure
+ */
+export interface ImageCategory {
+ id: string;
+ title: string;
+ items: ImageItem[];
+}
+
+export interface ImageItem {
+ id: string;
+ name: string;
+ imagePath: string; // Path to image file
+ thumbnail?: string; // Optional thumbnail path
+}
diff --git a/types/control-panel.types.ts b/types/control-panel.types.ts
new file mode 100644
index 0000000..3cddb7a
--- /dev/null
+++ b/types/control-panel.types.ts
@@ -0,0 +1,53 @@
+import { BackgroundTab, Tool, VideoThumbnail } from "./editor.types";
+import { BackgroundColorConfig } from "./background.types";
+import { ZoomFragment } from "./zoom.types";
+import { MockupConfig } from "./mockup.types";
+import type { CanvasElement } from "./canvas-elements.types";
+
+export interface ControlPanelProps {
+ activeTool: Tool;
+ backgroundTab: BackgroundTab;
+ selectedWallpaper: number;
+ backgroundBlur: number;
+ padding: number;
+ roundedCorners: number;
+ shadows: number;
+ uploadedImages: string[];
+ selectedImageUrl: string;
+ backgroundColorConfig: BackgroundColorConfig | null;
+ onBackgroundTabChange: (tab: BackgroundTab) => void;
+ onWallpaperSelect: (index: number) => void;
+ onBackgroundBlurChange: (value: number) => void;
+ onPaddingChange: (value: number) => void;
+ onRoundedCornersChange: (value: number) => void;
+ onShadowsChange: (value: number) => void;
+ onImageUpload: (file: File) => void;
+ onImageSelect: (url: string) => void;
+ onImageRemove: (url: string) => void;
+ onBackgroundColorChange: (config: BackgroundColorConfig) => void;
+ // Zoom props
+ zoomFragments?: ZoomFragment[];
+ selectedZoomFragment?: ZoomFragment | null;
+ onSelectZoomFragment?: (fragmentId: string | null) => void;
+ onAddZoomFragment?: () => void;
+ onUpdateZoomFragment?: (fragmentId: string, updates: Partial<ZoomFragment>) => void;
+ onDeleteZoomFragment?: (fragmentId: string) => void;
+ videoUrl?: string | null;
+ videoThumbnail?: string | null;
+ currentTime?: number;
+ getThumbnailForTime?: (time: number) => VideoThumbnail | null;
+ videoDimensions?: { width: number; height: number } | null;
+ // Mockup props
+ mockupId?: string;
+ mockupConfig?: MockupConfig;
+ onMockupChange?: (mockupId: string) => void;
+ onMockupConfigChange?: (config: Partial<MockupConfig>) => void;
+ // Canvas elements props
+ onAddCanvasElement?: (element: CanvasElement) => void;
+ selectedCanvasElement?: CanvasElement | null;
+ onUpdateCanvasElement?: (id: string, updates: Partial<CanvasElement>) => void;
+ onDeleteCanvasElement?: (id: string) => void;
+ onDuplicateCanvasElement?: (id: string) => void;
+ onBringToFront?: (id: string) => void;
+ onSendToBack?: (id: string) => void;
+}
diff --git a/types/editor.types.ts b/types/editor.types.ts
new file mode 100644
index 0000000..375a90e
--- /dev/null
+++ b/types/editor.types.ts
@@ -0,0 +1,93 @@
+import type { ZoomFragment } from "./zoom.types";
+import type { CanvasElement } from "./canvas-elements.types";
+
+export type Tool = "screenshot" | "elements" | "audio" | "zoom" | "mockup";
+
+export type BackgroundTab = "wallpaper" | "image" | "color";
+
+export type AspectRatio = "auto" | "16:9" | "9:16" | "1:1" | "4:3" | "3:4" | "custom";
+
+export interface CropArea {
+ x: number;
+ y: number;
+ width: number;
+ height: number;
+}
+
+export interface VideoTransform {
+ rotation: number; // in degrees
+ translateX: number; // in percentage (-100 to 100)
+ translateY: number; // in percentage (-100 to 100)
+}
+
+export const ASPECT_RATIO_DIMENSIONS: Record<AspectRatio, { width: number; height: number } | null> = {
+ "auto": null,
+ "16:9": { width: 1920, height: 1080 },
+ "9:16": { width: 1080, height: 1920 },
+ "1:1": { width: 1080, height: 1080 },
+ "4:3": { width: 1440, height: 1080 },
+ "3:4": { width: 1080, height: 1440 },
+ "custom": null,
+};
+
+export interface EditorState {
+ activeTool: Tool;
+ backgroundTab: BackgroundTab;
+ selectedWallpaper: number;
+ backgroundBlur: number;
+ padding: number;
+ roundedCorners: number;
+ shadows: number;
+}
+
+export interface VideoCanvasHandle {
+ getExportCanvas: () => HTMLCanvasElement | null;
+ drawFrame: () => Promise<void>;
+}
+
+/** Thumbnail data for scrubbing preview */
+export interface VideoThumbnail {
+ time: number;
+ dataUrl: string;
+ quality?: "low" | "high";
+}
+
+export interface VideoCanvasProps {
+ videoRef: React.RefObject<HTMLVideoElement | null>;
+ videoUrl: string | null;
+ padding: number;
+ roundedCorners: number;
+ shadows: number;
+ aspectRatio?: AspectRatio;
+ customAspectRatio?: { width: number; height: number } | null;
+ cropArea?: CropArea;
+ backgroundTab?: BackgroundTab; // Tab activo para determinar qué background mostrar
+ selectedWallpaper?: number;
+ backgroundBlur?: number;
+ selectedImageUrl?: string;
+ backgroundColorCss?: string; // CSS string para color/gradiente personalizado
+ onTimeUpdate: () => void;
+ onLoadedMetadata: () => void;
+ onEnded: () => void;
+ // Scrubbing props for thumbnail preview
+ isScrubbing?: boolean;
+ scrubTime?: number;
+ getThumbnailForTime?: (time: number) => VideoThumbnail | null;
+ // Zoom props
+ zoomFragments?: ZoomFragment[];
+ currentTime?: number;
+ // Mockup props
+ mockupId?: string;
+ mockupConfig?: import("./mockup.types").MockupConfig;
+ // Video upload props
+ onVideoUpload?: (file: File) => void;
+ isUploading?: boolean;
+ // Transform props
+ videoTransform?: VideoTransform;
+ onVideoTransformChange?: (transform: VideoTransform) => void;
+ // Canvas elements props
+ canvasElements?: CanvasElement[];
+ selectedElementId?: string | null;
+ onElementUpdate?: (id: string, updates: Partial<CanvasElement>) => void;
+ onElementSelect?: (id: string | null) => void;
+}
diff --git a/types/index.ts b/types/index.ts
new file mode 100644
index 0000000..0cb86b9
--- /dev/null
+++ b/types/index.ts
@@ -0,0 +1,6 @@
+export * from './video.types';
+export * from './editor.types';
+export * from './recording.types';
+export * from './background.types';
+export * from './zoom.types';
+export * from './mockup.types';
\ No newline at end of file
diff --git a/types/mockup.types.ts b/types/mockup.types.ts
new file mode 100644
index 0000000..184578c
--- /dev/null
+++ b/types/mockup.types.ts
@@ -0,0 +1,78 @@
+export type MockupCategory = "browser" | "mobile" | "ide" | "all";
+
+// Configuraciones disponibles para cada mockup
+export interface MockupFeatures {
+ hasDarkMode: boolean;
+ hasFrameColor: boolean; // Color del encabezado/marco
+ hasUrl: boolean;
+ hasHeaderScale: boolean; // Escala proporcional del encabezado
+ hasHeaderOpacity: boolean; // Opacidad del encabezado/marco
+ hasCornerRadius: boolean;
+}
+
+// Configuración actual del mockup
+export interface MockupConfig {
+ darkMode: boolean;
+ frameColor: string; // Color del encabezado/marco
+ url: string;
+ headerScale: number; // Escala del encabezado (50-150, donde 100 es normal)
+ headerOpacity: number; // Opacidad del encabezado (0-100)
+ cornerRadius: number;
+}
+
+// Definición de un mockup
+export interface Mockup {
+ id: string;
+ name: string;
+ category: Exclude<MockupCategory, "all">;
+ preview: React.ReactNode;
+ features?: MockupFeatures; // Opcional - usa DEFAULT si no está definido
+ defaultConfig?: Partial<MockupConfig>;
+}
+
+// Estado del sistema de mockups
+export interface MockupState {
+ enabled: boolean;
+ selectedMockupId: string;
+ config: MockupConfig;
+}
+
+// Props para renderizar un mockup en el canvas
+export interface MockupRenderProps {
+ children: React.ReactNode;
+ config: MockupConfig;
+ className?: string;
+}
+
+// Configuración por defecto
+export const DEFAULT_MOCKUP_CONFIG: MockupConfig = {
+ darkMode: false,
+ frameColor: "#f6f6f6",
+ url: "https://freeshot.dev",
+ headerScale: 60, // 100% = tamaño normal
+ headerOpacity: 100, // 100% = totalmente opaco
+ cornerRadius: 12,
+};
+
+// Features por defecto (ninguna feature habilitada)
+export const DEFAULT_MOCKUP_FEATURES: MockupFeatures = {
+ hasDarkMode: false,
+ hasFrameColor: false,
+ hasUrl: false,
+ hasHeaderScale: false,
+ hasCornerRadius: false,
+ hasHeaderOpacity: false,
+};
+
+// Helper para obtener las features de un mockup con fallback al default
+export function getMockupFeatures(mockup: Mockup | undefined): MockupFeatures {
+ return mockup?.features ?? DEFAULT_MOCKUP_FEATURES;
+}
+
+// Helper para obtener la config inicial de un mockup
+export function getMockupDefaultConfig(mockup: Mockup | undefined): MockupConfig {
+ return {
+ ...DEFAULT_MOCKUP_CONFIG,
+ ...(mockup?.defaultConfig ?? {}),
+ };
+}
diff --git a/types/player-control.types.ts b/types/player-control.types.ts
new file mode 100644
index 0000000..6e996d0
--- /dev/null
+++ b/types/player-control.types.ts
@@ -0,0 +1,19 @@
+import type { AspectRatio } from "./editor.types";
+
+export interface PlayerControlsProps {
+ isPlaying: boolean;
+ currentTime: number;
+ videoDuration: number;
+ aspectRatio: AspectRatio;
+ isFullscreen: boolean;
+ zoomLevel: number;
+ customAspectRatio?: { width: number; height: number } | null;
+ onTogglePlayPause: () => void;
+ onSkipBackward: () => void;
+ onSkipForward: () => void;
+ onToggleFullscreen: () => void;
+ onAspectRatioChange: (ratio: AspectRatio) => void;
+ onCustomAspectRatioChange?: (dimensions: { width: number; height: number }) => void;
+ onOpenCropper: () => void;
+ onZoomChange: (zoom: number) => void;
+}
\ No newline at end of file
diff --git a/types/recording.types.ts b/types/recording.types.ts
new file mode 100644
index 0000000..668ee68
--- /dev/null
+++ b/types/recording.types.ts
@@ -0,0 +1,21 @@
+export type RecordingState = "idle" | "countdown" | "recording" | "processing";
+
+export interface RecordingResult {
+ blob: Blob;
+ url: string;
+ duration: number;
+}
+
+export interface RecordingContextType {
+ state: RecordingState;
+ countdown: number;
+ recordingTime: number;
+ error: string | null;
+ startCountdown: () => Promise<void>;
+ stopRecording: () => void;
+ cancelRecording: () => void;
+ isIdle: boolean;
+ isCountdown: boolean;
+ isRecording: boolean;
+ isProcessing: boolean;
+}
diff --git a/types/timeline.types.ts b/types/timeline.types.ts
new file mode 100644
index 0000000..0d4b05e
--- /dev/null
+++ b/types/timeline.types.ts
@@ -0,0 +1,26 @@
+import { ZoomFragment } from "./zoom.types";
+
+export interface TrimRange {
+ start: number;
+ end: number;
+}
+
+export interface TimelineProps {
+ videoDuration: number;
+ currentTime: number;
+ onSeek: (time: number) => void;
+ videoUrl?: string | null;
+ zoomLevel: number;
+ isDraggingPlayhead?: boolean;
+ onDragStart?: () => void;
+ onDragEnd?: () => void;
+ trimRange: TrimRange;
+ onTrimChange: (range: TrimRange) => void;
+ // Zoom props
+ zoomFragments?: ZoomFragment[];
+ selectedZoomFragmentId?: string | null;
+ onSelectZoomFragment?: (fragmentId: string | null) => void;
+ onAddZoomFragment?: (startTime: number) => void;
+ onUpdateZoomFragment?: (fragmentId: string, updates: Partial<ZoomFragment>) => void;
+ onActivateZoomTool?: () => void;
+}
\ No newline at end of file
diff --git a/types/tool-sidebar.types.ts b/types/tool-sidebar.types.ts
new file mode 100644
index 0000000..a30a9cd
--- /dev/null
+++ b/types/tool-sidebar.types.ts
@@ -0,0 +1,6 @@
+type Tool = "screenshot" | "elements" | "audio" | "zoom" | "mockup";
+
+export interface ToolsSidebarProps {
+ activeTool: Tool;
+ onToolChange: (tool: Tool) => void;
+}
\ No newline at end of file
diff --git a/types/video.types.ts b/types/video.types.ts
new file mode 100644
index 0000000..a1c675b
--- /dev/null
+++ b/types/video.types.ts
@@ -0,0 +1,37 @@
+export type ExportQuality = "4k" | "2k" | "1080p" | "720p" | "480p" | "gif";
+
+export interface TrimSettings {
+ start: number;
+ end: number;
+}
+
+export interface ExportSettings {
+ quality: ExportQuality;
+ fps?: number;
+ trim?: TrimSettings;
+}
+
+export interface ExportProgress {
+ status: "idle" | "preparing" | "encoding" | "finalizing" | "complete" | "error";
+ progress: number;
+ message: string;
+}
+
+export interface QualitySettings {
+ width: number;
+ height: number;
+ bitrate: number;
+ fps?: number;
+}
+
+export interface VideoData {
+ blob: Blob;
+ duration: number;
+ timestamp: number;
+}
+
+export interface VideoLoadResult {
+ blob: Blob;
+ duration: number;
+ url: string;
+}
diff --git a/types/zoom.types.ts b/types/zoom.types.ts
new file mode 100644
index 0000000..b06fc08
--- /dev/null
+++ b/types/zoom.types.ts
@@ -0,0 +1,106 @@
+export interface ZoomFragment {
+ id: string;
+ startTime: number; // Tiempo de inicio del fragmento (segundos)
+ endTime: number; // Tiempo de fin del fragmento (segundos)
+ zoomLevel: number; // Nivel de zoom (1-10, donde 5 = 2x)
+ speed: number; // Velocidad de animación (1-10)
+ focusX: number; // Punto de enfoque X (0-100%)
+ focusY: number; // Punto de enfoque Y (0-100%)
+}
+
+export interface ZoomState {
+ fragments: ZoomFragment[];
+ selectedFragmentId: string | null;
+}
+
+// Smoother easing for professional zoom feel (quart curves)
+export function easeOutQuart(t: number): number {
+ return 1 - Math.pow(1 - t, 4);
+}
+
+export interface ZoomStateCanvas {
+ scale: number;
+ focusX: number;
+ focusY: number;
+}
+
+// This handles entry/exit transitions professionally
+export interface ZoomState {
+ scale: number;
+ focusX: number;
+ focusY: number;
+}
+
+// Default values for new zoom fragments
+const DEFAULT_ZOOM_LEVEL = 1.5; // 2x zoom
+const DEFAULT_ZOOM_SPEED = 4; // Medium speed
+
+// Helper para crear un nuevo fragmento con valores por defecto
+export function createZoomFragment(
+ startTime: number,
+ endTime: number
+): ZoomFragment {
+ return {
+ id: `zoom_${Date.now()}_${Math.random().toString(36).substring(2, 9)}`,
+ startTime,
+ endTime,
+ zoomLevel: DEFAULT_ZOOM_LEVEL,
+ speed: DEFAULT_ZOOM_SPEED,
+ focusX: 50,
+ focusY: 50,
+ };
+}
+
+// Helper para generar fragmentos por defecto cuando carga un video
+export function generateDefaultZoomFragments(
+ videoDuration: number
+): ZoomFragment[] {
+ if (videoDuration <= 0) return [];
+
+ const fragmentDuration = 2;
+ const spacing = videoDuration / 3;
+
+ const fragments: ZoomFragment[] = [];
+
+ // Primer fragmento en el primer tercio
+ const start1 = Math.max(0, spacing * 0.5);
+ fragments.push(createZoomFragment(
+ start1,
+ Math.min(start1 + fragmentDuration, videoDuration)
+ ));
+
+ // Segundo fragmento en el segundo tercio
+ const start2 = Math.max(0, spacing * 2);
+ fragments.push(createZoomFragment(
+ start2,
+ Math.min(start2 + fragmentDuration, videoDuration)
+ ));
+
+ return fragments;
+}
+
+// Convertir zoomLevel (1-10) a factor de zoom real
+export function zoomLevelToFactor(level: number): number {
+ const minZoom = 1.2;
+ const maxZoom = 4.0;
+ const normalized = (level - 1) / 9; // 0 to 1
+ return minZoom + (maxZoom - minZoom) * normalized;
+}
+
+// Convertir speed (1-10) a duración de transición en milisegundos
+export function speedToTransitionMs(speed: number): number {
+ const minMs = 150; // Speed 10
+ const maxMs = 2000; // Speed 1
+ const normalized = (speed - 1) / 9; // 0 to 1
+ return Math.round(maxMs - (maxMs - minMs) * normalized);
+}
+
+// Easing suave para animaciones de zoom (cubic-bezier)
+export const ZOOM_EASING = 'cubic-bezier(0.4, 0, 0.2, 1)';
+
+// Formatear tiempo para mostrar en UI (MM:SS)
+export function formatZoomTime(seconds: number): string {
+ const mins = Math.floor(seconds / 60);
+ const secs = Math.floor(seconds % 60);
+ return `${mins.toString().padStart(2, '0')}:${secs.toString().padStart(2, '0')}`;
+}