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ClB3C,MAAMO,GAAiByG,EAAAA,EAAAA,GACrB,iRACA,CACEga,SAAU,CACRvgB,QAAS,CACP4hB,QAAS,oEACTE,YACE,qEACFC,QACE,iFACFF,UACE,+DACFS,MAAO,+CACPC,KAAM,mDAER5jB,KAAM,CACJijB,QAAS,iBACTY,GAAI,sBACJC,GAAI,uBACJC,KAAM,cAGV7B,gBAAiB,CACf7gB,QAAS,UACTrB,KAAM,aAWN2S,EAASxT,EAAAA,YACb,EAAGE,YAAWgC,UAASrB,OAAM+B,WAAU,KAAUtD,GAASC,KACxD,MAAMslB,EAAOjiB,EAAUkiB,EAAAA,GAAO,SAC9B,OACE9kB,EAAAA,cAAC6kB,EAAI5kB,EAAA,CACHC,WAAWC,EAAAA,EAAAA,IAAG6B,EAAe,CAAEE,UAASrB,OAAMX,eAC9CX,IAAKA,GACDD,GACJ,IAIRkU,EAAO/R,YAAc,Q,kUCjDrB,MAAM2R,EAAWpT,EAAAA,YAGf,EAAGE,eAAcZ,GAASC,IAExBS,EAAAA,cAAA,WAAAC,EAAA,CACEC,WAAWC,EAAAA,EAAAA,IACT,oTACAD,GAEFX,IAAKA,GACDD,MAIV8T,EAAS3R,YAAc,U","sources":["webpack://app/./app/javascript/components/ui/date-time-picker/date-field.tsx","webpack://app/./app/javascript/components/common/YoutubeIcon.jsx","webpack://app/./app/javascript/components/ui/alert-dialog.tsx","webpack://app/./app/javascript/components/ui/checkbox.tsx","webpack://app/./app/javascript/components/ui/select.tsx","webpack://app/./app/javascript/components/ui/scroll-area.tsx","webpack://app/./app/javascript/components/ui/tabs.tsx","webpack://app/./app/javascript/components/ui/time-picker-utils.tsx","webpack://app/./app/javascript/components/ui/time-picker-input.tsx","webpack://app/./app/javascript/components/ui/label.tsx","webpack://app/./app/javascript/components/ui/radio-group.tsx","webpack://app/./app/javascript/components/ui/slider.tsx","webpack://app/./app/javascript/components/ui/dropdown-menu.tsx","webpack://app/./app/javascript/components/ui/tooltip.tsx","webpack://app/./app/javascript/components/ui/progress.tsx","webpack://app/./app/javascript/components/ui/input.tsx","webpack://app/./app/javascript/components/ui/time-picker-demo.tsx","webpack://app/./app/javascript/lib/utils.ts","webpack://app/./app/javascript/components/HelloWorld.tsx","webpack://app/./app/javascript/components/ui/avatar.tsx","webpack://app/./app/javascript/components/ui/skeleton.tsx","webpack://app/./app/javascript/components/ui/dialog.tsx","webpack://app/./app/javascript/components/AdminMedia.jsx","webpack://app/./app/javascript/components/Dashboard.jsx","webpack://app/./app/javascript/components/ui/date-time-picker/date-time-picker.tsx","webpack://app/./app/javascript/lib/useForwardedRef.tsx","webpack://app/./app/javascript/components/ui/command.tsx","webpack://app/./app/javascript/components/ui/date-time-picker/calendar.tsx","webpack://app/./app/javascript/components/ui/accordion.tsx","webpack://app/./app/javascript/components/common/TikTokIcon.jsx","webpack://app/./app/javascript/components/ui/calendar.tsx","webpack://app/./app/javascript/components/ui/card.tsx","webpack://app/./app/javascript/components/common/ConfirmModal.jsx","webpack://app/./app/javascript/components/TestButton.tsx","webpack://app/./app/javascript/components/ sync ^\\.\\/.*$","webpack://app/./app/javascript/components/ui/date-time-picker/time-picker.tsx","webpack://app/./app/javascript/components/ui/sheet.tsx","webpack://app/./app/javascript/components/ui/date-time-picker/date-segment.tsx","webpack://app/./app/javascript/components/ui/popover.tsx","webpack://app/./app/javascript/components/ui/date-time-picker/time-field.tsx","webpack://app/./app/javascript/components/ui/badge.tsx","webpack://app/./app/javascript/components/Toast.ts","webpack://app/./app/javascript/components/ui/switch.tsx","webpack://app/./app/javascript/components/ui/button.tsx","webpack://app/./app/javascript/components/ui/textarea.tsx"],"sourcesContent":["import * as React from \"react\"\nimport { DateSegment } from \"./date-segment\";\nimport { createCalendar } from \"@internationalized/date\";\nimport { useRef } from \"react\";\nimport {\n AriaDatePickerProps,\n DateValue,\n useDateField,\n useLocale,\n} from \"react-aria\";\nimport { useDateFieldState } from \"react-stately\";\nimport { cn } from \"../../../lib/utils\";\n\nfunction DateField(props: AriaDatePickerProps) {\n const ref = useRef(null);\n\n const { locale } = useLocale();\n const state = useDateFieldState({\n ...props,\n locale,\n createCalendar,\n });\n const { fieldProps } = useDateField(props, state, ref);\n\n return (\n \n {state.segments.map((segment, i) => (\n \n ))}\n {state.validationState === \"invalid\" && (\n 🚫\n )}\n \n );\n}\n\nexport { DateField };\n","import React from 'react';\n\nconst YoutubeIcon = ({size = 24, ...props}) => {\n return (\n \n \n \n );\n};\n\nexport default YoutubeIcon;","import * as React from \"react\"\nimport * as AlertDialogPrimitive from \"@radix-ui/react-alert-dialog\"\n\nimport { cn } from \"../../lib/utils\"\nimport {buttonVariants} from \"./button\";\n\nconst AlertDialog = AlertDialogPrimitive.Root\n\nconst AlertDialogTrigger = AlertDialogPrimitive.Trigger\n\nconst AlertDialogPortal = AlertDialogPrimitive.Portal\n\nconst AlertDialogOverlay = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n))\nAlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName\n\nconst AlertDialogContent = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n <>\n \n \n\n))\nAlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName\n\nconst AlertDialogHeader = ({\n className,\n ...props\n}: React.HTMLAttributes) => (\n \n)\nAlertDialogHeader.displayName = \"AlertDialogHeader\"\n\nconst AlertDialogFooter = ({\n className,\n ...props\n}: React.HTMLAttributes) => (\n \n)\nAlertDialogFooter.displayName = \"AlertDialogFooter\"\n\nconst AlertDialogTitle = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n))\nAlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName\n\nconst AlertDialogDescription = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n))\nAlertDialogDescription.displayName =\n AlertDialogPrimitive.Description.displayName\n\nconst AlertDialogAction = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n))\nAlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName\n\nconst AlertDialogCancel = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n))\nAlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName\n\nexport {\n AlertDialog,\n AlertDialogPortal,\n AlertDialogOverlay,\n AlertDialogTrigger,\n AlertDialogContent,\n AlertDialogHeader,\n AlertDialogFooter,\n AlertDialogTitle,\n AlertDialogDescription,\n AlertDialogAction,\n AlertDialogCancel,\n}\n","import * as React from \"react\"\nimport * as CheckboxPrimitive from \"@radix-ui/react-checkbox\"\nimport { Check } from \"lucide-react\"\n\nimport { cn } from \"../../lib/utils\"\n\nconst Checkbox = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n \n \n \n \n))\nCheckbox.displayName = CheckboxPrimitive.Root.displayName\n\nexport { Checkbox }\n","import * as React from \"react\"\nimport * as SelectPrimitive from \"@radix-ui/react-select\"\nimport { Check, ChevronDown, ChevronUp } from \"lucide-react\"\n\nimport { cn } from \"../../lib/utils\"\n\nconst Select = SelectPrimitive.Root\n\nconst SelectGroup = SelectPrimitive.Group\n\nconst SelectValue = SelectPrimitive.Value\n\nconst SelectTrigger = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, children, ...props }, ref) => (\n span]:line-clamp-1\",\n className\n )}\n {...props}\n >\n {children}\n \n \n \n \n))\nSelectTrigger.displayName = SelectPrimitive.Trigger.displayName\n\nconst SelectScrollUpButton = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n \n \n))\nSelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName\n\nconst SelectScrollDownButton = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n \n \n))\nSelectScrollDownButton.displayName =\n SelectPrimitive.ScrollDownButton.displayName\n\nconst SelectContent = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, children, position = \"popper\", ...props }, ref) => (\n \n \n \n {children}\n \n \n \n))\nSelectContent.displayName = SelectPrimitive.Content.displayName\n\nconst SelectLabel = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n))\nSelectLabel.displayName = SelectPrimitive.Label.displayName\n\nconst SelectItem = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, children, ...props }, ref) => (\n \n \n \n \n \n \n\n {children}\n \n))\nSelectItem.displayName = SelectPrimitive.Item.displayName\n\nconst SelectSeparator = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n))\nSelectSeparator.displayName = SelectPrimitive.Separator.displayName\n\nexport {\n Select,\n SelectGroup,\n SelectValue,\n SelectTrigger,\n SelectContent,\n SelectLabel,\n SelectItem,\n SelectSeparator,\n SelectScrollUpButton,\n SelectScrollDownButton,\n}\n","import * as React from \"react\"\nimport * as ScrollAreaPrimitive from \"@radix-ui/react-scroll-area\"\n\nimport { cn } from \"../../lib/utils\"\n\nconst ScrollArea = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, children, ...props }, ref) => (\n \n \n {children}\n \n \n \n \n))\nScrollArea.displayName = ScrollAreaPrimitive.Root.displayName\n\nconst ScrollBar = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, orientation = \"vertical\", ...props }, ref) => (\n \n \n \n))\nScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName\n\nexport { ScrollArea, ScrollBar }\n","import * as React from \"react\"\nimport * as TabsPrimitive from \"@radix-ui/react-tabs\"\n\nimport { cn } from \"../../lib/utils\"\n\nconst Tabs = TabsPrimitive.Root\n\nconst TabsList = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n))\nTabsList.displayName = TabsPrimitive.List.displayName\n\nconst TabsTrigger = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n))\nTabsTrigger.displayName = TabsPrimitive.Trigger.displayName\n\nconst TabsContent = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n))\nTabsContent.displayName = TabsPrimitive.Content.displayName\n\nexport { Tabs, TabsList, TabsTrigger, TabsContent }\n","/**\n * regular expression to check for valid hour format (01-23)\n */\nexport function isValidHour(value: string) {\n return /^(0[0-9]|1[0-9]|2[0-3])$/.test(value);\n}\n\n/**\n * regular expression to check for valid 12 hour format (01-12)\n */\nexport function isValid12Hour(value: string) {\n return /^(0[1-9]|1[0-2])$/.test(value);\n}\n\n/**\n * regular expression to check for valid minute format (00-59)\n */\nexport function isValidMinuteOrSecond(value: string) {\n return /^[0-5][0-9]$/.test(value);\n}\n\ntype GetValidNumberConfig = { max: number; min?: number; loop?: boolean };\n\nexport function getValidNumber(\n value: string,\n { max, min = 0, loop = false }: GetValidNumberConfig\n) {\n let numericValue = parseInt(value, 10);\n\n if (!isNaN(numericValue)) {\n if (!loop) {\n if (numericValue > max) numericValue = max;\n if (numericValue < min) numericValue = min;\n } else {\n if (numericValue > max) numericValue = min;\n if (numericValue < min) numericValue = max;\n }\n return numericValue.toString().padStart(2, \"0\");\n }\n\n return \"00\";\n}\n\nexport function getValidHour(value: string) {\n if (isValidHour(value)) return value;\n return getValidNumber(value, { max: 23 });\n}\n\nexport function getValid12Hour(value: string) {\n if (isValid12Hour(value)) return value;\n return getValidNumber(value, { max: 12 });\n}\n\nexport function getValidMinuteOrSecond(value: string) {\n if (isValidMinuteOrSecond(value)) return value;\n return getValidNumber(value, { max: 59 });\n}\n\ntype GetValidArrowNumberConfig = {\n min: number;\n max: number;\n step: number;\n};\n\nexport function getValidArrowNumber(\n value: string,\n { min, max, step }: GetValidArrowNumberConfig\n) {\n let numericValue = parseInt(value, 10);\n if (!isNaN(numericValue)) {\n numericValue += step;\n return getValidNumber(String(numericValue), { min, max, loop: true });\n }\n return \"00\";\n}\n\nexport function getValidArrowHour(value: string, step: number) {\n return getValidArrowNumber(value, { min: 0, max: 23, step });\n}\n\nexport function getValidArrowMinuteOrSecond(value: string, step: number) {\n return getValidArrowNumber(value, { min: 0, max: 59, step });\n}\n\nexport function setMinutes(date: Date, value: string) {\n const minutes = getValidMinuteOrSecond(value);\n date.setMinutes(parseInt(minutes, 10));\n return date;\n}\n\nexport function setSeconds(date: Date, value: string) {\n const seconds = getValidMinuteOrSecond(value);\n date.setSeconds(parseInt(seconds, 10));\n return date;\n}\n\nexport function setHours(date: Date, value: string) {\n const hours = getValidHour(value);\n date.setHours(parseInt(hours, 10));\n return date;\n}\n\nexport type TimePickerType = \"minutes\" | \"seconds\" | \"hours\"; // | \"12hours\";\n\nexport function setDateByType(date: Date, value: string, type: TimePickerType) {\n switch (type) {\n case \"minutes\":\n return setMinutes(date, value);\n case \"seconds\":\n return setSeconds(date, value);\n case \"hours\":\n return setHours(date, value);\n default:\n return date;\n }\n}\n\nexport function getDateByType(date: Date, type: TimePickerType) {\n switch (type) {\n case \"minutes\":\n return getValidMinuteOrSecond(String(date.getMinutes()));\n case \"seconds\":\n return getValidMinuteOrSecond(String(date.getSeconds()));\n case \"hours\":\n return getValidHour(String(date.getHours()));\n default:\n return \"00\";\n }\n}\n\nexport function getArrowByType(\n value: string,\n step: number,\n type: TimePickerType\n) {\n switch (type) {\n case \"minutes\":\n return getValidArrowMinuteOrSecond(value, step);\n case \"seconds\":\n return getValidArrowMinuteOrSecond(value, step);\n case \"hours\":\n return getValidArrowHour(value, step);\n default:\n return \"00\";\n }\n}","\"use client\"\n\n\nimport React from \"react\";\nimport {\n TimePickerType,\n getArrowByType,\n getDateByType,\n setDateByType,\n} from \"./time-picker-utils\";\nimport {cn} from \"../../lib/utils\";\nimport {Input} from \"./input\";\n\nexport interface TimePickerInputProps\n extends React.InputHTMLAttributes {\n picker: TimePickerType;\n date: Date | undefined;\n setDate: (date: Date | undefined) => void;\n onRightFocus?: () => void;\n onLeftFocus?: () => void;\n}\n\nconst TimePickerInput = React.forwardRef<\n HTMLInputElement,\n TimePickerInputProps\n>(\n (\n {\n className,\n type = \"tel\",\n value,\n id,\n name,\n date = new Date(new Date().setHours(0,0,0,0)),\n setDate,\n onChange,\n onKeyDown,\n picker,\n onLeftFocus,\n onRightFocus,\n ...props\n },\n ref\n ) => {\n const [flag, setFlag] = React.useState(false);\n\n /**\n * allow the user to enter the second digit within 2 seconds\n * otherwise start again with entering first digit\n */\n React.useEffect(() => {\n if (flag) {\n const timer = setTimeout(() => {\n setFlag(false);\n }, 2000);\n\n return () => clearTimeout(timer);\n }\n }, [flag]);\n\n const calculatedValue = React.useMemo(\n () => getDateByType(date, picker),\n [date, picker]\n );\n\n const handleKeyDown = (e: React.KeyboardEvent) => {\n if (e.key === \"Tab\") return;\n e.preventDefault();\n if (e.key === \"ArrowRight\") onRightFocus?.();\n if (e.key === \"ArrowLeft\") onLeftFocus?.();\n if ([\"ArrowUp\", \"ArrowDown\"].includes(e.key)) {\n const step = e.key === \"ArrowUp\" ? 1 : -1;\n const newValue = getArrowByType(calculatedValue, step, picker);\n if (flag) setFlag(false);\n const tempDate = new Date(date);\n setDate(setDateByType(tempDate, newValue, picker));\n }\n if (e.key >= \"0\" && e.key <= \"9\") {\n const newValue = !flag\n ? \"0\" + e.key\n : calculatedValue.slice(1, 2) + e.key;\n if (flag) onRightFocus?.();\n setFlag((prev) => !prev);\n const tempDate = new Date(date);\n setDate(setDateByType(tempDate, newValue, picker));\n }\n };\n\n return (\n {\n e.preventDefault();\n onChange?.(e);\n }}\n type={type}\n inputMode=\"decimal\"\n onKeyDown={(e) => {\n onKeyDown?.(e);\n handleKeyDown(e);\n }}\n {...props}\n />\n );\n }\n);\n\nTimePickerInput.displayName = \"TimePickerInput\";\n\nexport { TimePickerInput };","import * as React from \"react\"\nimport * as LabelPrimitive from \"@radix-ui/react-label\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\n\nimport { cn } from \"../../lib/utils\"\n\nconst labelVariants = cva(\n \"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70\"\n)\n\nconst Label = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef &\n VariantProps\n>(({ className, ...props }, ref) => (\n \n))\nLabel.displayName = LabelPrimitive.Root.displayName\n\nexport { Label }\n","import * as React from \"react\"\nimport * as RadioGroupPrimitive from \"@radix-ui/react-radio-group\"\nimport { Circle } from \"lucide-react\"\n\nimport { cn } from \"../../lib/utils\"\n\n\nconst RadioGroup = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => {\n return (\n \n )\n})\nRadioGroup.displayName = RadioGroupPrimitive.Root.displayName\n\nconst RadioGroupItem = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => {\n return (\n \n \n \n \n \n )\n})\nRadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName\n\nexport { RadioGroup, RadioGroupItem }\n","import * as React from \"react\"\nimport * as SliderPrimitive from \"@radix-ui/react-slider\"\n\nimport {cn} from \"../../lib/utils\"\nimport {clsx} from \"clsx\";\n\nconst Slider = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({className, ...props}, ref) => (\n <>\n \n \n \n \n \n \n {className?.includes(\"showStepBar\") &&
\n {Array.from({length: (props.max - props.min) / props.step + 1}).map((_, i) => (\n 0 && props.min + i * props.step === props.value[0],\n 'text-10': i > 0 && i < (props.max - props.min) / props.step\n })}\n role='presentation'\n >\n {props.min + i * props.step}\n \n ))}\n
}\n \n\n))\nSlider.displayName = SliderPrimitive.Root.displayName\n\nexport {Slider}\n","import * as React from \"react\"\nimport * as DropdownMenuPrimitive from \"@radix-ui/react-dropdown-menu\"\nimport { Check, ChevronRight, Circle } from \"lucide-react\"\n\nimport {cn} from \"../../lib/utils\"\n\nconst DropdownMenu = DropdownMenuPrimitive.Root\n\nconst DropdownMenuTrigger = DropdownMenuPrimitive.Trigger\n\nconst DropdownMenuGroup = DropdownMenuPrimitive.Group\n\nconst DropdownMenuPortal = DropdownMenuPrimitive.Portal\n\nconst DropdownMenuSub = DropdownMenuPrimitive.Sub\n\nconst DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup\n\nconst DropdownMenuSubTrigger = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef & {\n inset?: boolean\n }\n>(({ className, inset, children, ...props }, ref) => (\n \n {children}\n \n \n))\nDropdownMenuSubTrigger.displayName =\n DropdownMenuPrimitive.SubTrigger.displayName\n\nconst DropdownMenuSubContent = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n))\nDropdownMenuSubContent.displayName =\n DropdownMenuPrimitive.SubContent.displayName\n\nconst DropdownMenuContent = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, sideOffset = 4, ...props }, ref) => (\n \n \n \n))\nDropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName\n\nconst DropdownMenuItem = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef & {\n inset?: boolean\n }\n>(({ className, inset, ...props }, ref) => (\n \n))\nDropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName\n\nconst DropdownMenuCheckboxItem = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, children, checked, ...props }, ref) => (\n \n \n \n \n \n \n {children}\n \n))\nDropdownMenuCheckboxItem.displayName =\n DropdownMenuPrimitive.CheckboxItem.displayName\n\nconst DropdownMenuRadioItem = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, children, ...props }, ref) => (\n \n \n \n \n \n \n {children}\n \n))\nDropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName\n\nconst DropdownMenuLabel = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef & {\n inset?: boolean\n }\n>(({ className, inset, ...props }, ref) => (\n \n))\nDropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName\n\nconst DropdownMenuSeparator = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n))\nDropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName\n\nconst DropdownMenuShortcut = ({\n className,\n ...props\n}: React.HTMLAttributes) => {\n return (\n \n )\n}\nDropdownMenuShortcut.displayName = \"DropdownMenuShortcut\"\n\nexport {\n DropdownMenu,\n DropdownMenuTrigger,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuCheckboxItem,\n DropdownMenuRadioItem,\n DropdownMenuLabel,\n DropdownMenuSeparator,\n DropdownMenuShortcut,\n DropdownMenuGroup,\n DropdownMenuPortal,\n DropdownMenuSub,\n DropdownMenuSubContent,\n DropdownMenuSubTrigger,\n DropdownMenuRadioGroup,\n}\n","import * as React from \"react\"\nimport * as TooltipPrimitive from \"@radix-ui/react-tooltip\"\n\nimport { cn } from \"../../lib/utils\"\n\nconst TooltipProvider = TooltipPrimitive.Provider\n\nconst Tooltip = TooltipPrimitive.Root\n\nconst TooltipTrigger = TooltipPrimitive.Trigger\n\nconst TooltipContent = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, sideOffset = 4, ...props }, ref) => (\n \n))\nTooltipContent.displayName = TooltipPrimitive.Content.displayName\n\nexport { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider }\n","import * as React from \"react\"\nimport * as ProgressPrimitive from \"@radix-ui/react-progress\"\n\nimport { cn } from \"../../lib/utils\"\n\nconst Progress = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, value, ...props }, ref) => (\n \n \n \n))\nProgress.displayName = ProgressPrimitive.Root.displayName\n\nexport { Progress }\n","import * as React from \"react\"\n\nimport { cn } from \"../../lib/utils\"\n\nexport interface InputProps\n extends React.InputHTMLAttributes {}\n\nconst Input = React.forwardRef(\n ({ className, type, ...props }, ref) => {\n return (\n \n )\n }\n)\nInput.displayName = \"Input\"\n\nexport { Input }\n","\"use client\";\n\nimport * as React from \"react\";\nimport { Clock } from \"lucide-react\";\nimport { TimePickerInput } from \"./time-picker-input\";\nimport {Label} from \"./label\";\n\ninterface TimePickerDemoProps {\n date: Date | undefined;\n setDate: (date: Date | undefined) => void;\n}\n\nexport function TimePickerDemo({ date, setDate }: TimePickerDemoProps) {\n const minuteRef = React.useRef(null);\n const hourRef = React.useRef(null);\n\n return (\n
\n
\n \n minuteRef.current?.focus()}\n />\n
\n
\n \n hourRef.current?.focus()}\n />\n
\n
\n \n
\n
\n );\n}","import {type ClassValue, clsx} from \"clsx\"\nimport {twMerge} from \"tailwind-merge\"\n\n// computeFileHash.js\nimport SparkMD5 from 'spark-md5';\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs))\n}\n\nexport function matchYoutubeUrl(url: string) {\n if (!url) return false;\n let p = /^(?:https?:\\/\\/)?(?:m\\.|www\\.)?(?:youtu\\.be\\/|youtube\\.com\\/(?:embed\\/|v\\/|watch\\?v=|watch\\?.+&v=))((\\w|-){11})(?:\\S+)?$/;\n if(url.match(p)){\n return url.match(p)[1];\n }\n return false;\n}\n\nexport const formatLocalTime = (utcTime: any) => {\n const date = new Date(utcTime);\n return date.toLocaleString('en-US', {\n year: 'numeric',\n month: 'short',\n day: 'numeric',\n hour: 'numeric',\n minute: 'numeric',\n hour12: true,\n });\n};\n\nexport const formatLocalDate = (utcTime: any) => {\n const date = new Date(utcTime);\n return date.toLocaleString('en-US', {\n year: 'numeric',\n month: 'short',\n day: 'numeric',\n });\n}\n\n/**\n * Converts a binary string to a Base64-encoded string.\n * @param {string} binary - The binary string.\n * @returns {string} - The Base64-encoded string.\n */\nfunction binaryStringToBase64(binary) {\n // Convert binary string to an array of bytes\n const bytes = new Uint8Array(binary.length);\n for (let i = 0; i < binary.length; i++) {\n bytes[i] = binary.charCodeAt(i);\n }\n // Convert bytes to Base64\n let binaryStr = '';\n bytes.forEach(byte => binaryStr += String.fromCharCode(byte));\n return btoa(binaryStr);\n}\n\n/**\n * Computes the MD5 hash of a file and returns it in Base64 format.\n * This hash is compatible with Active Storage's blob checksum.\n * @param {File} file - The file to hash.\n * @param {number} [chunkSize=4194304] - The size of each chunk in bytes (default: 300 MB).\n * @returns {Promise} - A promise that resolves to the Base64-encoded MD5 hash.\n */\nexport async function computeFileHash(file, chunkSize = 300 * 1024 * 1024) { // 4MB chunks\n return new Promise((resolve, reject) => {\n if (!file) {\n reject(new Error('No file provided.'));\n return;\n }\n\n const blobSlice = file.slice || file.mozSlice || file.webkitSlice;\n const totalChunks = Math.ceil(file.size / chunkSize);\n let currentChunk = 0;\n const spark = new SparkMD5.ArrayBuffer();\n const fileReader = new FileReader();\n\n fileReader.onload = function (e) {\n // @ts-ignore\n spark.append(e.target.result); // Append array buffer\n currentChunk++;\n\n if (currentChunk < totalChunks) {\n loadNext();\n } else {\n // All chunks loaded, compute the hash\n const rawHash = spark.end(true); // Raw binary string\n const base64Hash = binaryStringToBase64(rawHash);\n resolve(base64Hash);\n }\n };\n\n fileReader.onerror = function () {\n reject(new Error('Error reading file.'));\n };\n\n function loadNext() {\n const start = currentChunk * chunkSize;\n const end = ((start + chunkSize) >= file.size) ? file.size : start + chunkSize;\n const chunk = blobSlice.call(file, start, end);\n fileReader.readAsArrayBuffer(chunk);\n }\n\n loadNext();\n });\n}\n\n\n\nexport const fetchWithCSRF = async (url: string, options = {}) => {\n const csrfToken = document.querySelector('meta[name=\"csrf-token\"]').getAttribute('content');\n\n return fetch(url, {\n ...options,\n headers: {\n 'X-CSRF-Token': csrfToken,\n // @ts-ignore\n ...options.headers,\n },\n });\n};\n","import React from \"react\"\nimport PropTypes from \"prop-types\"\n\nconst HelloWorld = (props) => {\n return (\n
\n
Greeting: {props.greeting}
\n
\n )\n}\n\nHelloWorld.propTypes = {\n greeting: PropTypes.string\n};\n\nexport default HelloWorld\n","import * as React from \"react\"\nimport * as AvatarPrimitive from \"@radix-ui/react-avatar\"\n\nimport { cn } from \"../../lib/utils\"\n\nconst Avatar = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n))\nAvatar.displayName = AvatarPrimitive.Root.displayName\n\nconst AvatarImage = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n))\nAvatarImage.displayName = AvatarPrimitive.Image.displayName\n\nconst AvatarFallback = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n))\nAvatarFallback.displayName = AvatarPrimitive.Fallback.displayName\n\nexport { Avatar, AvatarImage, AvatarFallback }\n","import { cn } from \"../../lib/utils\"\nimport React from \"react\"\nfunction Skeleton({\n className,\n ...props\n}: React.HTMLAttributes) {\n return (\n \n )\n}\n\nexport { Skeleton }\n","import * as React from \"react\"\nimport * as DialogPrimitive from \"@radix-ui/react-dialog\"\nimport { X } from \"lucide-react\"\n\nimport { cn } from \"../../lib/utils\"\n\nconst Dialog = DialogPrimitive.Root\n\nconst DialogTrigger = DialogPrimitive.Trigger\n\nconst DialogPortal = DialogPrimitive.Portal\n\nconst DialogClose = DialogPrimitive.Close\n\nconst DialogOverlay = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n))\nDialogOverlay.displayName = DialogPrimitive.Overlay.displayName\n\nconst DialogContent = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, children, ...props }, ref) => (\n \n \n \n {children}\n \n \n Close\n \n \n \n))\nDialogContent.displayName = DialogPrimitive.Content.displayName\n\nconst DialogHeader = ({\n className,\n ...props\n}: React.HTMLAttributes) => (\n \n)\nDialogHeader.displayName = \"DialogHeader\"\n\nconst DialogFooter = ({\n className,\n ...props\n}: React.HTMLAttributes) => (\n \n)\nDialogFooter.displayName = \"DialogFooter\"\n\nconst DialogTitle = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n))\nDialogTitle.displayName = DialogPrimitive.Title.displayName\n\nconst DialogDescription = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n))\nDialogDescription.displayName = DialogPrimitive.Description.displayName\n\nexport {\n Dialog,\n DialogPortal,\n DialogOverlay,\n DialogClose,\n DialogTrigger,\n DialogContent,\n DialogHeader,\n DialogFooter,\n DialogTitle,\n DialogDescription,\n}\n","// app/javascript/components/AdminMedia.jsx\n'use client'\nimport React, { useState, useEffect, useCallback } from 'react';\nimport axios from 'axios';\nimport PropTypes from 'prop-types';\nimport { Button } from \"./ui/button\";\nimport { Skeleton } from \"./ui/skeleton\";\nimport { Card, CardContent } from \"./ui/card\";\nimport { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from \"./ui/select\";\nimport { Input } from \"./ui/input\";\nimport { Label } from \"./ui/label\";\nimport { Textarea } from \"./ui/textarea\";\nimport { DirectUpload } from '@rails/activestorage';\nimport { Progress } from \"./ui/progress\";\n\n// CSRF Token Setup\nconst csrfToken = document.querySelector('meta[name=\"csrf-token\"]')?.getAttribute('content');\nif (csrfToken) {\n axios.defaults.headers.common['X-CSRF-Token'] = csrfToken;\n}\n\n// Helper Functions\nconst formatDate = (dateString) => {\n if (!dateString) return 'N/A';\n const date = new Date(dateString);\n return isNaN(date.getTime())\n ? 'N/A'\n : `${date.toLocaleDateString('en-US', { day: 'numeric', month: 'long', year: 'numeric' })} ${date.toLocaleTimeString('en-US', { hour: 'numeric', minute: '2-digit', hour12: true })}`;\n};\n\nconst statusStyles = {\n queued: 'border-yellow-500 bg-yellow-100 text-yellow-800',\n generating: 'border-blue-500 bg-blue-100 text-blue-800',\n success: 'border-green-500 bg-green-100 text-green-800',\n failed: 'border-red-500 bg-red-100 text-red-800',\n deleted: 'border-gray-500 bg-gray-100 text-gray-800'\n};\n\nconst AdminMedia = ({ initialMedia, pagy }) => {\n const [mediaItems, setMediaItems] = useState(initialMedia || []);\n const [page, setPage] = useState(pagy?.page || 1);\n const [hasMore, setHasMore] = useState(!!pagy?.next);\n const [loading, setLoading] = useState(false);\n const [error, setError] = useState(null);\n const [actionLoading, setActionLoading] = useState({});\n const [editStates, setEditStates] = useState({}); // { mediaId: { status, generatedImageFile, failureReason, uploadProgress } }\n\n const fetchMedia = useCallback(async (pageNum) => {\n setLoading(true);\n setError(null);\n try {\n const response = await axios.get(`/admin/media.json?page=${pageNum}`);\n const { media, pagy } = response.data;\n setMediaItems((prev) => (pageNum === 1 ? media || [] : [...prev, ...(media || [])]));\n setHasMore(!!pagy.next);\n } catch (err) {\n setError('Failed to load media.');\n console.error(err);\n } finally {\n setLoading(false);\n }\n }, []);\n\n useEffect(() => {\n fetchMedia(page);\n }, [page, fetchMedia]);\n\n const handleEditChange = (mediaId, field, value) => {\n setEditStates((prev) => ({\n ...prev,\n [mediaId]: {\n ...prev[mediaId],\n [field]: value\n }\n }));\n };\n\n const handleGeneratedImageUpload = async (mediaId, file) => {\n if (!file) return;\n\n setEditStates((prev) => ({\n ...prev,\n [mediaId]: { ...prev[mediaId], uploadProgress: 0 }\n }));\n\n try {\n const upload = new DirectUpload(file, '/rails/active_storage/direct_uploads', {\n directUploadWillStoreFileWithXHR: (xhr) => {\n xhr.upload.addEventListener('progress', (event) => {\n if (event.lengthComputable) {\n const percent = Math.round((event.loaded / event.total) * 100);\n setEditStates((prev) => ({\n ...prev,\n [mediaId]: { ...prev[mediaId], uploadProgress: percent }\n }));\n }\n });\n }\n });\n\n const { signed_id } = await new Promise((resolve, reject) => {\n upload.create((error, blob) => {\n if (error) reject(error);\n else resolve(blob);\n });\n });\n\n handleEditChange(mediaId, 'generated_image', signed_id);\n } catch (err) {\n setError('Failed to upload generated image.');\n console.error(err);\n }\n };\n\n const saveChanges = async (mediaId) => {\n setActionLoading((prev) => ({ ...prev, [`save_${mediaId}`]: true }));\n try {\n const editData = editStates[mediaId] || {};\n const response = await axios.put(`/media/${mediaId}.json`, {\n media: {\n status: editData.status || mediaItems.find(m => m.id === mediaId).status,\n generated_image: editData.generated_image,\n failure_reason: editData.failure_reason\n }\n });\n\n setMediaItems((prev) =>\n prev.map((item) =>\n item.id === mediaId ? { ...item, ...response.data } : item\n )\n );\n setEditStates((prev) => {\n const { [mediaId]: _, ...rest } = prev;\n return rest;\n });\n } catch (err) {\n setError('Failed to update media.');\n console.error(err);\n } finally {\n setActionLoading((prev) => ({ ...prev, [`save_${mediaId}`]: false }));\n }\n };\n\n const cancelChanges = (mediaId) => {\n setEditStates((prev) => {\n const { [mediaId]: _, ...rest } = prev;\n return rest;\n });\n };\n\n const loadMore = () => hasMore && !loading && setPage((prev) => prev + 1);\n\n return (\n
\n

\n Admin Media Management\n

\n\n {error && (\n
{error}
\n )}\n\n
\n {loading && mediaItems.length === 0 ? (\n Array.from({ length: 3 }).map((_, index) => (\n \n ))\n ) : mediaItems.length === 0 ? (\n
\n

No media found.

\n
\n ) : (\n mediaItems.map((media) => {\n const statusStyle = statusStyles[media.status] || statusStyles.queued;\n const editState = editStates[media.id] || {};\n\n return (\n \n
\n
\n \n {media.status.charAt(0).toUpperCase() + media.status.slice(1)}\n \n
\n
\n {media.original_image_url && (\n \n )}\n {media.generated_image_url ? (\n \n ) : (\n \n )}\n
\n
\n \n
\n \n

{media.user_email}

\n
\n
\n \n

{media.instructions || 'None'}

\n
\n
\n \n handleEditChange(media.id, 'status', value)}\n >\n \n \n \n \n Queued\n Generating\n Success\n Failed\n Deleted\n \n \n
\n
\n \n handleGeneratedImageUpload(media.id, e.target.files[0])}\n />\n {editState.uploadProgress > 0 && (\n \n )}\n
\n {(editState.status === 'failed' || media.status === 'failed') && (\n
\n \n handleEditChange(media.id, 'failure_reason', e.target.value)}\n className=\"border-2 border-black rounded-xl\"\n rows={3}\n />\n
\n )}\n {(editState.status || editState.generated_image || editState.failure_reason) && (\n
\n cancelChanges(media.id)}\n >\n Cancel\n \n saveChanges(media.id)}\n disabled={actionLoading[`save_${media.id}`]}\n >\n {actionLoading[`save_${media.id}`] ? 'Saving...' : 'Save'}\n \n
\n )}\n
\n

Created: {formatDate(media.created_at)}

\n

Updated: {formatDate(media.updated_at)}

\n
\n
\n \n );\n })\n )}\n
\n\n {mediaItems.length > 0 && (\n
\n {loading ? (\n
\n \n Loading...\n
\n ) : hasMore ? (\n \n ) : (\n

No more media to load!

\n )}\n
\n )}\n
\n );\n};\n\nAdminMedia.propTypes = {\n initialMedia: PropTypes.arrayOf(PropTypes.shape({\n id: PropTypes.string,\n original_image_url: PropTypes.string,\n generated_image_url: PropTypes.string,\n status: PropTypes.string,\n instructions: PropTypes.string,\n failure_reason: PropTypes.string,\n created_at: PropTypes.string,\n updated_at: PropTypes.string,\n user_email: PropTypes.string\n })),\n pagy: PropTypes.shape({\n page: PropTypes.number,\n next: PropTypes.number\n })\n};\n\nexport default AdminMedia;","// app/javascript/components/Dashboard.jsx\n'use client'\nimport React, { useState, useEffect, useCallback } from 'react';\nimport axios from 'axios';\nimport PropTypes from 'prop-types';\nimport { Edit2, Trash2, Download, Share2, Video, Info } from 'lucide-react'; // Added Info icon\nimport { Button } from \"./ui/button\";\nimport { Skeleton } from \"./ui/skeleton\";\nimport { Dialog, DialogContent, DialogHeader, DialogTitle, DialogFooter } from \"./ui/dialog\";\nimport { Input } from \"./ui/input\";\nimport { Label } from \"./ui/label\";\nimport { DirectUpload } from '@rails/activestorage';\nimport { Card, CardContent } from \"./ui/card\";\nimport { Textarea } from \"./ui/textarea\";\nimport { Progress } from \"./ui/progress\";\n\n// CSRF Token Setup\nconst csrfToken = document.querySelector('meta[name=\"csrf-token\"]')?.getAttribute('content');\nif (csrfToken) {\n axios.defaults.headers.common['X-CSRF-Token'] = csrfToken;\n}\n\n// Helper Functions (unchanged)\nconst formatDate = (dateString) => {\n if (!dateString) return 'N/A';\n const date = new Date(dateString);\n return isNaN(date.getTime())\n ? 'N/A'\n : `${date.toLocaleDateString('en-US', { day: 'numeric', month: 'long', year: 'numeric' })} ${date.toLocaleTimeString('en-US', { hour: 'numeric', minute: '2-digit', hour12: true })}`;\n};\n\nconst statusStyles = {\n queued: 'border-yellow-500 bg-yellow-100 text-yellow-800',\n generating: 'border-blue-500 bg-blue-100 text-blue-800',\n success: 'border-green-500 bg-green-100 text-green-800',\n failed: 'border-red-500 bg-red-100 text-red-800',\n};\n\nconst videoStatusStyles = {\n not_started: 'border-gray-500 bg-gray-100 text-gray-800',\n queued: 'border-yellow-500 bg-yellow-100 text-yellow-800',\n generating: 'border-blue-500 bg-blue-100 text-blue-800',\n success: 'border-green-500 bg-green-100 text-green-800',\n failed: 'border-red-500 bg-red-100 text-red-800',\n};\n\nconst DIRECT_UPLOAD_URL = '/rails/active_storage/direct_uploads';\n\nconst Dashboard = ({ initialMedia, pagy, credits }) => {\n const [mediaItems, setMediaItems] = useState(initialMedia || []);\n const [page, setPage] = useState(pagy?.page || 1);\n const [hasMore, setHasMore] = useState(!!pagy?.next);\n const [loading, setLoading] = useState(false);\n const [error, setError] = useState(null);\n const [actionLoading, setActionLoading] = useState({});\n const [file, setFile] = useState(null);\n const [instructions, setInstructions] = useState('');\n const [uploadProgress, setUploadProgress] = useState(0);\n const [editDialogOpen, setEditDialogOpen] = useState(false);\n const [editMediaId, setEditMediaId] = useState(null);\n const [editInstructions, setEditInstructions] = useState('');\n const [deleteDialogOpen, setDeleteDialogOpen] = useState(false);\n const [deleteMediaId, setDeleteMediaId] = useState(null);\n const [shareDialogOpen, setShareDialogOpen] = useState(false);\n const [shareMediaId, setShareMediaId] = useState(null);\n const [videoDialogOpen, setVideoDialogOpen] = useState(false);\n const [videoMediaId, setVideoMediaId] = useState(null);\n const [videoPrompt, setVideoPrompt] = useState('');\n const [tipsDialogOpen, setTipsDialogOpen] = useState(false); // New state for tips dialog\n\n // Existing fetchMedia, setCredits, updateMedia, and useEffect hooks remain unchanged\n const fetchMedia = useCallback(async (pageNum) => {\n setLoading(true);\n setError(null);\n try {\n const response = await axios.get(`/media/dashboard.json?page=${pageNum}`);\n const { media, pagy, credits } = response.data;\n setMediaItems((prev) => (pageNum === 1 ? media || [] : [...prev, ...(media || [])]));\n setHasMore(!!pagy.next);\n setCredits(credits);\n } catch (err) {\n setError('Failed to load media.');\n console.error(err);\n } finally {\n setLoading(false);\n }\n }, []);\n\n const setCredits = (newCredits) => {\n const desktopElement = document.getElementById(\"credits-desktop\");\n const mobileElement = document.getElementById(\"credits-mobile\");\n\n if (desktopElement) desktopElement.innerText = newCredits;\n else console.log(\"credits-desktop not found\");\n\n if (mobileElement) mobileElement.innerText = newCredits;\n else console.log(\"credits-mobile not found\");\n };\n\n const updateMedia = useCallback(async () => {\n try {\n const response = await axios.get('/media/dashboard.json?page=1');\n const { media, credits } = response.data;\n setMediaItems((prevMedia) => {\n const updatedMap = new Map(media.map(m => [m.id, m]));\n return prevMedia.map(item => updatedMap.get(item.id) || item);\n });\n setCredits(credits);\n } catch (err) {\n console.error('Failed to update media:', err);\n }\n }, []);\n\n useEffect(() => {\n fetchMedia(page);\n }, [page, fetchMedia]);\n\n useEffect(() => {\n const interval = setInterval(() => {\n updateMedia();\n }, 120000);\n return () => clearInterval(interval);\n }, [updateMedia]);\n\n // Existing handleDirectUpload, handleEdit, saveEdit, handleDelete, confirmDelete, downloadImage, handleShare, shareUrl, copyLink, handleGenerateVideo, submitVideoGeneration, loadMore remain unchanged\n const handleDirectUpload = async (e) => {\n e.preventDefault();\n if (!file) return;\n\n setActionLoading((prev) => ({ ...prev, upload: true }));\n setUploadProgress(0);\n\n try {\n const upload = new DirectUpload(file, DIRECT_UPLOAD_URL, {\n directUploadWillStoreFileWithXHR: (xhr) => {\n xhr.upload.addEventListener('progress', (event) => {\n if (event.lengthComputable) {\n const percent = Math.round((event.loaded / event.total) * 100);\n setUploadProgress(percent);\n }\n });\n }\n });\n\n const { signed_id } = await new Promise((resolve, reject) => {\n upload.create((error, blob) => {\n if (error) reject(error);\n else resolve(blob);\n });\n });\n\n const mediaResponse = await axios.post('/media.json', {\n media: { original_image: signed_id, instructions }\n });\n\n setMediaItems((prev) => [mediaResponse.data, ...prev]);\n setFile(null);\n setInstructions('');\n setUploadProgress(0);\n } catch (err) {\n const errorMsg = err.message?.includes('net::ERR_NAME_NOT_RESOLVED')\n ? 'Upload failed due to a network issue. Please check your connection.'\n : err.response?.data?.errors.join(' ') || 'Failed to upload media.';\n showJetToast(errorMsg);\n console.error(err);\n } finally {\n setActionLoading((prev) => ({ ...prev, upload: false }));\n }\n };\n\n const handleEdit = (media) => {\n setEditMediaId(media.id);\n setEditInstructions(media.instructions || '');\n setEditDialogOpen(true);\n };\n\n const saveEdit = async () => {\n setActionLoading((prev) => ({ ...prev, [`edit_${editMediaId}`]: true }));\n try {\n const response = await axios.put(`/media/${editMediaId}`, {\n media: { instructions: editInstructions }\n });\n setMediaItems((prev) =>\n prev.map((item) =>\n item.id === editMediaId ? { ...item, instructions: editInstructions } : item\n )\n );\n setEditDialogOpen(false);\n } catch (err) {\n let error = err.response?.data?.error || 'Failed to update media.';\n setError(error);\n showJetToast(error);\n console.error(err);\n } finally {\n setActionLoading((prev) => ({ ...prev, [`edit_${editMediaId}`]: false }));\n }\n };\n\n const handleDelete = (mediaId) => {\n const media = mediaItems.find(m => m.id === mediaId);\n if (media.status !== 'queued') {\n setError('Can only delete media in queued status.');\n return;\n }\n setDeleteMediaId(mediaId);\n setDeleteDialogOpen(true);\n };\n\n const confirmDelete = async () => {\n setActionLoading((prev) => ({ ...prev, [`delete_${deleteMediaId}`]: true }));\n try {\n await axios.delete(`/media/${deleteMediaId}.json`);\n setMediaItems((prev) => prev.filter((m) => m.id !== deleteMediaId));\n setDeleteDialogOpen(false);\n } catch (err) {\n setError('Failed to delete media.');\n console.error(err);\n } finally {\n setActionLoading((prev) => ({ ...prev, [`delete_${deleteMediaId}`]: false }));\n }\n };\n\n const downloadImage = (url) => {\n window.open(url, '_blank');\n };\n\n const handleShare = (mediaId) => {\n setShareMediaId(mediaId);\n setShareDialogOpen(true);\n };\n\n const shareUrl = () => {\n const media = mediaItems.find(m => m.id === shareMediaId);\n return media ? `${window.location.origin}/${media.user_id}/share` : '';\n };\n\n const copyLink = () => {\n navigator.clipboard.writeText(shareUrl());\n showJetToast('Link copied to clipboard!');\n };\n\n const handleGenerateVideo = (mediaId) => {\n setVideoMediaId(mediaId);\n setVideoPrompt('');\n setVideoDialogOpen(true);\n };\n\n const submitVideoGeneration = async () => {\n setActionLoading((prev) => ({ ...prev, [`video_${videoMediaId}`]: true }));\n try {\n const response = await axios.post(`/media/${videoMediaId}/generate_video`, {\n video_prompt: videoPrompt\n });\n setMediaItems((prev) =>\n prev.map((item) =>\n item.id === videoMediaId ? response.data : item\n )\n );\n setVideoDialogOpen(false);\n } catch (err) {\n showJetToast(err.response?.data?.errors?.join(', ') || 'Failed to generate video.');\n console.error(err);\n } finally {\n setActionLoading((prev) => ({ ...prev, [`video_${videoMediaId}`]: false }));\n }\n };\n\n const loadMore = () => hasMore && !loading && setPage((prev) => prev + 1);\n\n return (\n
\n

\n Your Media Dashboard\n

\n\n \n \n
\n
\n \n setTipsDialogOpen(true)} />\n
\n
\n setFile(e.target.files[0])}\n accept=\"image/*\"\n className=\"border-2 border-black rounded-xl\"\n />\n
\n
\n \n setInstructions(e.target.value)}\n className=\"border-2 border-black rounded-xl\"\n rows={3}\n />\n
\n {actionLoading.upload && (\n \n )}\n \n {actionLoading.upload ? 'Uploading...' : 'Ghiblify Image'}\n \n {!credits || credits <= 0 ? (\n
\n Add credits to start converting images to viral style\n
refresh if you purchased and can't see your credits.
\n
\n ) : null}\n \n
\n
\n\n {/* Tips Dialog */}\n \n \n \n Tips for Better Photos\n \n
\n

Follow these quick tips to get the best results!

\n
    \n
  • \n \n Small group of people (Best 1-4 people)\n
  • \n
  • \n \n High resolution photos\n
  • \n
  • \n \n Good lighting\n
  • \n
  • \n \n Natural expressions\n
  • \n
  • \n \n Simple background\n
  • \n
\n
    \n
  • \n \n Big group of people (Above 6 people)\n
  • \n
  • \n \n Blur/low resolution photos\n
  • \n
  • \n \n Poor lighting\n
  • \n
  • \n \n Too much movement in image\n
  • \n
  • \n \n Complicated background with many items\n
  • \n
\n
\n \n setTipsDialogOpen(false)}\n className=\"bg-pink-500 text-white border-2 border-black rounded-xl hover:bg-pink-600\"\n >\n Got it\n \n \n
\n
\n\n {/* Rest of your existing JSX remains unchanged */}\n {mediaItems && mediaItems.length > 0 ? (\n
\n It can take from 30 minutes to 2 hours for the images to generate. We are trying our best due to heavy user load.\n Once generated you will see a download button on the image card.\n
\n Video generation takes about 3-6 minutes. For any support contact us at hello@giblifyai.com\n
\n
\n ) : null}\n\n {error && (\n
{error}
\n )}\n\n
\n {loading && mediaItems.length === 0 ? (\n Array.from({ length: 4 }).map((_, index) => (\n \n ))\n ) : mediaItems.length === 0 ? (\n
\n

No media found. Start uploading some!

\n
\n ) : (\n mediaItems.map((media) => {\n const statusStyle = statusStyles[media.status] || statusStyles.queued;\n const videoStatusStyle = videoStatusStyles[media.video_status] || videoStatusStyles.not_started;\n const isSuccess = media.status === 'success';\n const isVideoSuccess = media.video_status === 'success';\n\n return (\n \n
\n
\n \n {media.status?.charAt(0)?.toUpperCase() + media.status?.slice(1)}\n \n {media.video_status !== 'not_started' && (\n \n Video: {media.video_status?.charAt(0)?.toUpperCase() + media.video_status?.slice(1)?.replace('_', ' ')}\n \n )}\n
\n
\n { e.stopPropagation(); handleEdit(media); }}\n >\n \n \n {isSuccess && (\n { e.stopPropagation(); handleShare(media.id); }}\n >\n \n \n )}\n { e.stopPropagation(); handleDelete(media.id); }}\n disabled={actionLoading[`delete_${media.id}`] || media.status !== 'queued'}\n >\n \n \n
\n
\n {media.original_image_url && (\n \n )}\n {media.generated_image_url ? (\n \n ) : (\n \n )}\n
\n
\n \n
\n {isSuccess && (\n handleGenerateVideo(media.id)}\n className=\"w-full bg-pink-500 text-white font-bold border-2 border-black rounded-xl hover:bg-pink-600\"\n disabled={media.video_status === 'queued' || media.video_status === 'generating'}\n >\n
\n
\n \n );\n })\n )}\n
\n\n {mediaItems.length > 0 && (\n
\n {loading ? (\n
\n \n Loading...\n
\n ) : hasMore ? (\n \n ) : (\n

No more media to load!

\n )}\n
\n )}\n\n {/* Edit Dialog */}\n \n \n \n Edit Media Instructions\n \n
\n
\n \n setEditInstructions(e.target.value)}\n className=\"border-2 border-black rounded-xl\"\n rows={3}\n />\n
\n
\n \n setEditDialogOpen(false)}\n className=\"border-2 border-black rounded-xl\"\n >\n Cancel\n \n \n {actionLoading[`edit_${editMediaId}`] ? 'Saving...' : 'Save'}\n \n \n
\n
\n\n {/* Delete Dialog */}\n \n \n \n Delete Media\n \n

Are you sure you want to delete this media? This action cannot be undone.

\n \n setDeleteDialogOpen(false)}\n className=\"border-2 border-black rounded-xl\"\n >\n Cancel\n \n \n {actionLoading[`delete_${deleteMediaId}`] ? 'Deleting...' : 'Delete'}\n \n \n
\n
\n\n {/* Share Dialog */}\n \n \n \n Share Generated Image\n \n
\n
\n \n WhatsApp\n \n \n X\n \n \n Telegram\n \n \n Facebook\n \n \n Copy Link\n \n
\n {shareMediaId && (\n m.id === shareMediaId)?.generated_image_url}\n alt=\"Generated\"\n className=\"w-full h-64 object-contain mt-4\"\n />\n )}\n
\n \n setShareDialogOpen(false)}\n className=\"border-2 border-black rounded-xl\"\n >\n Close\n \n \n
\n
\n\n {/* Video Generation Dialog */}\n \n \n \n Generate Video\n \n
\n
\n \n setVideoPrompt(e.target.value)}\n placeholder=\"Imagine the image is the first scene of your video then describe what should happen in the video..., e.g. 'Looking at each other then hugging', 'smiling and dancing', ' etc.\"\n className=\"border-2 mt-4 border-black rounded-xl\"\n rows={3}\n />\n
\n {videoMediaId && (\n m.id === videoMediaId)?.generated_image_url}\n alt=\"Generated Image\"\n className=\"w-full h-64 object-contain mt-4\"\n />\n )}\n
\n \n setVideoDialogOpen(false)}\n className=\"border-2 border-black rounded-xl\"\n >\n Cancel\n \n \n {actionLoading[`video_${videoMediaId}`] ? 'Generating...' : 'Generate Video (3 Credits)'}\n \n \n
\n
\n
\n );\n};\n\nDashboard.propTypes = {\n initialMedia: PropTypes.arrayOf(PropTypes.shape({\n id: PropTypes.string,\n original_image_url: PropTypes.string,\n generated_image_url: PropTypes.string,\n generated_video_url: PropTypes.string,\n status: PropTypes.string,\n video_status: PropTypes.string,\n instructions: PropTypes.string,\n video_prompt: PropTypes.string,\n failure_reason: PropTypes.string,\n video_failure_reason: PropTypes.string,\n created_at: PropTypes.string,\n updated_at: PropTypes.string,\n user_id: PropTypes.string\n })),\n pagy: PropTypes.shape({\n page: PropTypes.number,\n next: PropTypes.number\n }),\n credits: PropTypes.number\n};\n\nexport default Dashboard;","\"use client\";\nimport { CalendarIcon } from \"lucide-react\";\nimport React, { useRef, useState } from \"react\";\nimport {\n DateValue,\n useButton,\n useDatePicker,\n useInteractOutside,\n} from \"react-aria\";\nimport { DatePickerStateOptions, useDatePickerState } from \"react-stately\";\nimport { useForwardedRef } from \"../../../lib/useForwardedRef\";\nimport { cn } from \"../../../lib/utils\";\nimport { Button } from \"../button\";\nimport { Popover, PopoverContent, PopoverTrigger } from \"../popover\";\nimport { Calendar } from \"./calendar\";\nimport { DateField } from \"./date-field\";\nimport { TimeField } from \"./time-field\";\nimport {CalendarDate, getLocalTimeZone, today, CalendarDateTime} from '@internationalized/date';\n\nconst DateTimePicker = React.forwardRef<\n HTMLDivElement,\n DatePickerStateOptions\n>((props, forwardedRef) => {\n const ref = useForwardedRef(forwardedRef);\n const buttonRef = useRef(null);\n const contentRef = useRef(null);\n\n const [open, setOpen] = useState(false);\n\n const state = useDatePickerState(props);\n const {\n labelProps,\n groupProps,\n fieldProps,\n buttonProps: _buttonProps,\n dialogProps,\n calendarProps,\n } = useDatePicker(props, state, ref);\n const { buttonProps } = useButton(_buttonProps, buttonRef);\n useInteractOutside({\n ref: contentRef,\n onInteractOutside: (e) => {\n setOpen(false);\n },\n });\n\n return (\n \n \n \n \n setOpen(true)}\n >\n \n \n \n \n
\n \n {!!state.hasTime && (\n \n )}\n
\n
\n
\n \n );\n});\n\nDateTimePicker.displayName = \"DateTimePicker\";\n\nexport { DateTimePicker };\n","import React from \"react\"\n\nexport function useForwardedRef(ref: React.ForwardedRef) {\n const innerRef = React.useRef(null)\n\n React.useEffect(() => {\n if (!ref) return\n if (typeof ref === \"function\") {\n ref(innerRef.current)\n } else {\n ref.current = innerRef.current\n }\n })\n\n return innerRef\n}","import * as React from \"react\"\nimport { type DialogProps } from \"@radix-ui/react-dialog\"\nimport { Command as CommandPrimitive } from \"cmdk\"\nimport { Search } from \"lucide-react\"\n\nimport { cn } from \"../../lib/utils\"\nimport {Dialog, DialogContent} from \"./dialog\";\n\nconst Command = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n))\nCommand.displayName = CommandPrimitive.displayName\n\ninterface CommandDialogProps extends DialogProps {}\n\nconst CommandDialog = ({ children, ...props }: CommandDialogProps) => {\n return (\n \n \n \n {children}\n \n \n \n )\n}\n\nconst CommandInput = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n
\n \n \n
\n))\n\nCommandInput.displayName = CommandPrimitive.Input.displayName\n\nconst CommandList = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n))\n\nCommandList.displayName = CommandPrimitive.List.displayName\n\nconst CommandEmpty = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>((props, ref) => (\n \n))\n\nCommandEmpty.displayName = CommandPrimitive.Empty.displayName\n\nconst CommandGroup = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n))\n\nCommandGroup.displayName = CommandPrimitive.Group.displayName\n\nconst CommandSeparator = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n))\nCommandSeparator.displayName = CommandPrimitive.Separator.displayName\n\nconst CommandItem = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n))\n\nCommandItem.displayName = CommandPrimitive.Item.displayName\n\nconst CommandShortcut = ({\n className,\n ...props\n}: React.HTMLAttributes) => {\n return (\n \n )\n}\nCommandShortcut.displayName = \"CommandShortcut\"\n\nexport {\n Command,\n CommandDialog,\n CommandInput,\n CommandList,\n CommandEmpty,\n CommandGroup,\n CommandItem,\n CommandShortcut,\n CommandSeparator,\n}\n","import { CalendarDate, isToday as _isToday, createCalendar, getLocalTimeZone, getWeeksInMonth } from \"@internationalized/date\";\nimport { ChevronLeftIcon, ChevronRightIcon } from \"lucide-react\";\nimport React, { useMemo } from \"react\";\nimport { CalendarProps, DateValue, useButton, useCalendar, useCalendarCell, useCalendarGrid, useLocale } from \"react-aria\";\nimport { CalendarState, useCalendarState } from \"react-stately\";\nimport { cn } from \"../../../lib/utils\";\nimport { Button } from \"../button\";\n\nfunction Calendar(props: CalendarProps) {\n\tconst prevButtonRef = React.useRef(null);\n\tconst nextButtonRef = React.useRef(null);\n\n\tconst { locale } = useLocale();\n\tconst state = useCalendarState({\n\t\t...props,\n\t\tlocale,\n\t\tcreateCalendar,\n\t});\n\tconst { calendarProps, prevButtonProps: _prevButtonProps, nextButtonProps: _nextButtonProps, title } = useCalendar(props, state);\n\tconst { buttonProps: prevButtonProps } = useButton(_prevButtonProps, prevButtonRef);\n\tconst { buttonProps: nextButtonProps } = useButton(_nextButtonProps, nextButtonRef);\n\n\treturn (\n\t\t
\n\t\t\t
\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t
{title}
\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t
\n\t\t\t\n\t\t
\n\t);\n}\n\ninterface CalendarGridProps {\n\tstate: CalendarState;\n}\n\nfunction CalendarGrid({ state, ...props }: CalendarGridProps) {\n\tconst { locale } = useLocale();\n\tconst { gridProps, headerProps, weekDays } = useCalendarGrid(props, state);\n\n\t// Get the number of weeks in the month so we can render the proper number of rows.\n\tconst weeksInMonth = getWeeksInMonth(state.visibleRange.start, locale);\n\n\treturn (\n\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t{weekDays.map((day, index) => (\n\t\t\t\t\t\t\n\t\t\t\t\t))}\n\t\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\t{[...new Array(weeksInMonth).keys()].map((weekIndex) => (\n\t\t\t\t\t\n\t\t\t\t\t\t{state.getDatesInWeek(weekIndex).map((date, i) => (date ? : \n\t\t\t\t))}\n\t\t\t\n\t\t
\n\t\t\t\t\t\t\t{day}\n\t\t\t\t\t\t
))}\n\t\t\t\t\t
\n\t);\n}\n\ninterface CalendarCellProps {\n\tstate: CalendarState;\n\tdate: CalendarDate;\n}\n\nfunction CalendarCell({ state, date }: CalendarCellProps) {\n\tconst ref = React.useRef(null);\n\tconst { cellProps, buttonProps, isSelected, isOutsideVisibleRange, isDisabled, formattedDate } = useCalendarCell({ date }, state, ref);\n\n\tconst isToday = useMemo(() => {\n\t\tconst timezone = getLocalTimeZone();\n\t\treturn _isToday(date, timezone);\n\t}, [date]);\n\n\treturn (\n\t\t\n\t\t\t\n\t\t\t\t{formattedDate}\n\t\t\t\n\t\t\n\t);\n}\n\nexport { Calendar };\n","import * as React from \"react\"\nimport * as AccordionPrimitive from \"@radix-ui/react-accordion\"\nimport { ChevronDown } from \"lucide-react\"\n\nimport { cn } from \"../../lib/utils\"\n\nconst Accordion = AccordionPrimitive.Root\n\nconst AccordionItem = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n))\nAccordionItem.displayName = \"AccordionItem\"\n\nconst AccordionTrigger = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, children, ...props }, ref) => (\n \n svg]:rotate-180\",\n className\n )}\n {...props}\n >\n {children}\n \n \n \n))\nAccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName\n\nconst AccordionContent = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, children, ...props }, ref) => (\n \n
{children}
\n \n))\n\nAccordionContent.displayName = AccordionPrimitive.Content.displayName\n\nexport { Accordion, AccordionItem, AccordionTrigger, AccordionContent }\n","import React from 'react';\n\nconst TikTokIcon = ({ size = 24, ...props }) => {\n return (\n \n \n \n );\n};\n\nexport default TikTokIcon;","import * as React from \"react\"\nimport { ChevronLeft, ChevronRight } from \"lucide-react\"\nimport { DayPicker } from \"react-day-picker\"\n\nimport { cn } from \"../../lib/utils\"\nimport {buttonVariants} from \"./button\";\n\nexport type CalendarProps = React.ComponentProps\n\nfunction Calendar({\n className,\n classNames,\n showOutsideDays = true,\n ...props\n}: CalendarProps) {\n return (\n ,\n IconRight: ({ ...props }) => ,\n }}\n {...props}\n />\n )\n}\nCalendar.displayName = \"Calendar\"\n\nexport { Calendar }\n","import * as React from \"react\"\n\nimport {cn} from \"../../lib/utils\"\n\nconst Card = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes\n>(({ className, ...props }, ref) => (\n \n))\nCard.displayName = \"Card\"\n\nconst CardHeader = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes\n>(({ className, ...props }, ref) => (\n \n))\nCardHeader.displayName = \"CardHeader\"\n\nconst CardTitle = React.forwardRef<\n HTMLParagraphElement,\n React.HTMLAttributes\n>(({ className, ...props }, ref) => (\n \n))\nCardTitle.displayName = \"CardTitle\"\n\nconst CardDescription = React.forwardRef<\n HTMLParagraphElement,\n React.HTMLAttributes\n>(({ className, ...props }, ref) => (\n \n))\nCardDescription.displayName = \"CardDescription\"\n\nconst CardContent = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes\n>(({ className, ...props }, ref) => (\n
\n))\nCardContent.displayName = \"CardContent\"\n\nconst CardFooter = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes\n>(({ className, ...props }, ref) => (\n \n))\nCardFooter.displayName = \"CardFooter\"\n\nexport { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent }\n","// app/javascript/components/ConfirmModal.jsx\n\nimport React from 'react';\nimport PropTypes from 'prop-types';\n\nconst ConfirmModal = ({ isOpen, title = 'Confirm Action', message = 'Are you sure you want to proceed?', onConfirm, onCancel }) => {\n if (!isOpen) return null;\n\n return (\n
\n
\n

{title}

\n

{message}

\n
\n \n Cancel\n \n \n Confirm\n \n
\n
\n
\n );\n};\n\nConfirmModal.propTypes = {\n isOpen: PropTypes.bool.isRequired,\n title: PropTypes.string,\n message: PropTypes.string,\n onConfirm: PropTypes.func.isRequired,\n onCancel: PropTypes.func.isRequired,\n};\n\nexport default ConfirmModal;\n","// app/javascript/components/TestButton.jsx\n\nimport React from \"react\";\nimport {Button} from \"./ui/button\";\n\nfunction TestButton() {\n return (\n \n );\n}\n\nexport default TestButton;\n","var map = {\n\t\"./AdminMedia\": 5106,\n\t\"./AdminMedia.jsx\": 5106,\n\t\"./Dashboard\": 5117,\n\t\"./Dashboard.jsx\": 5117,\n\t\"./HelloWorld\": 4639,\n\t\"./HelloWorld.tsx\": 4639,\n\t\"./TestButton\": 6859,\n\t\"./TestButton.tsx\": 6859,\n\t\"./Toast\": 9158,\n\t\"./Toast.ts\": 9158,\n\t\"./common/ConfirmModal\": 6676,\n\t\"./common/ConfirmModal.jsx\": 6676,\n\t\"./common/TikTokIcon\": 6514,\n\t\"./common/TikTokIcon.jsx\": 6514,\n\t\"./common/YoutubeIcon\": 511,\n\t\"./common/YoutubeIcon.jsx\": 511,\n\t\"./ui/accordion\": 6234,\n\t\"./ui/accordion.tsx\": 6234,\n\t\"./ui/alert-dialog\": 761,\n\t\"./ui/alert-dialog.tsx\": 761,\n\t\"./ui/avatar\": 4829,\n\t\"./ui/avatar.tsx\": 4829,\n\t\"./ui/badge\": 8805,\n\t\"./ui/badge.tsx\": 8805,\n\t\"./ui/button\": 9522,\n\t\"./ui/button.tsx\": 9522,\n\t\"./ui/calendar\": 6556,\n\t\"./ui/calendar.tsx\": 6556,\n\t\"./ui/card\": 6672,\n\t\"./ui/card.tsx\": 6672,\n\t\"./ui/checkbox\": 1301,\n\t\"./ui/checkbox.tsx\": 1301,\n\t\"./ui/command\": 5927,\n\t\"./ui/command.tsx\": 5927,\n\t\"./ui/date-time-picker/calendar\": 6066,\n\t\"./ui/date-time-picker/calendar.tsx\": 6066,\n\t\"./ui/date-time-picker/date-field\": 259,\n\t\"./ui/date-time-picker/date-field.tsx\": 259,\n\t\"./ui/date-time-picker/date-segment\": 7268,\n\t\"./ui/date-time-picker/date-segment.tsx\": 7268,\n\t\"./ui/date-time-picker/date-time-picker\": 5240,\n\t\"./ui/date-time-picker/date-time-picker.tsx\": 5240,\n\t\"./ui/date-time-picker/time-field\": 8212,\n\t\"./ui/date-time-picker/time-field.tsx\": 8212,\n\t\"./ui/date-time-picker/time-picker\": 7072,\n\t\"./ui/date-time-picker/time-picker.tsx\": 7072,\n\t\"./ui/dialog\": 4966,\n\t\"./ui/dialog.tsx\": 4966,\n\t\"./ui/dropdown-menu\": 3109,\n\t\"./ui/dropdown-menu.tsx\": 3109,\n\t\"./ui/input\": 3516,\n\t\"./ui/input.tsx\": 3516,\n\t\"./ui/label\": 2762,\n\t\"./ui/label.tsx\": 2762,\n\t\"./ui/popover\": 7843,\n\t\"./ui/popover.tsx\": 7843,\n\t\"./ui/progress\": 3379,\n\t\"./ui/progress.tsx\": 3379,\n\t\"./ui/radio-group\": 2887,\n\t\"./ui/radio-group.tsx\": 2887,\n\t\"./ui/scroll-area\": 2019,\n\t\"./ui/scroll-area.tsx\": 2019,\n\t\"./ui/select\": 1970,\n\t\"./ui/select.tsx\": 1970,\n\t\"./ui/sheet\": 7201,\n\t\"./ui/sheet.tsx\": 7201,\n\t\"./ui/skeleton\": 4955,\n\t\"./ui/skeleton.tsx\": 4955,\n\t\"./ui/slider\": 3085,\n\t\"./ui/slider.tsx\": 3085,\n\t\"./ui/switch\": 9250,\n\t\"./ui/switch.tsx\": 9250,\n\t\"./ui/tabs\": 2290,\n\t\"./ui/tabs.tsx\": 2290,\n\t\"./ui/textarea\": 9976,\n\t\"./ui/textarea.tsx\": 9976,\n\t\"./ui/time-picker-demo\": 4004,\n\t\"./ui/time-picker-demo.tsx\": 4004,\n\t\"./ui/time-picker-input\": 2717,\n\t\"./ui/time-picker-input.tsx\": 2717,\n\t\"./ui/time-picker-utils\": 2642,\n\t\"./ui/time-picker-utils.tsx\": 2642,\n\t\"./ui/tooltip\": 3301,\n\t\"./ui/tooltip.tsx\": 3301\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = 6900;","\"use client\"\n\nimport React from \"react\";\nimport { TimeValue } from \"react-aria\";\nimport { TimeFieldStateOptions } from \"react-stately\";\nimport { TimeField } from \"./time-field\";\n\nconst TimePicker = React.forwardRef<\n HTMLDivElement,\n Omit, \"locale\">\n>((props, forwardedRef) => {\n return ;\n});\n\nTimePicker.displayName = \"TimePicker\";\n\nexport { TimePicker };\n","import * as React from \"react\"\nimport * as SheetPrimitive from \"@radix-ui/react-dialog\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\nimport { X } from \"lucide-react\"\n\nimport {cn} from \"../../lib/utils\"\n\nconst Sheet = SheetPrimitive.Root\n\nconst SheetTrigger = SheetPrimitive.Trigger\n\nconst SheetClose = SheetPrimitive.Close\n\nconst SheetPortal = SheetPrimitive.Portal\n\nconst SheetOverlay = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n))\nSheetOverlay.displayName = SheetPrimitive.Overlay.displayName\n\nconst sheetVariants = cva(\n \"fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500\",\n {\n variants: {\n side: {\n top: \"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top\",\n bottom:\n \"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom\",\n left: \"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm\",\n right:\n \"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm\",\n },\n },\n defaultVariants: {\n side: \"right\",\n },\n }\n)\n\ninterface SheetContentProps\n extends React.ComponentPropsWithoutRef,\n VariantProps {}\n\nconst SheetContent = React.forwardRef<\n React.ElementRef,\n SheetContentProps\n>(({ side = \"right\", className, children, ...props }, ref) => (\n \n \n \n {children}\n \n \n Close\n \n \n \n))\nSheetContent.displayName = SheetPrimitive.Content.displayName\n\nconst SheetHeader = ({\n className,\n ...props\n}: React.HTMLAttributes) => (\n \n)\nSheetHeader.displayName = \"SheetHeader\"\n\nconst SheetFooter = ({\n className,\n ...props\n}: React.HTMLAttributes) => (\n \n)\nSheetFooter.displayName = \"SheetFooter\"\n\nconst SheetTitle = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n))\nSheetTitle.displayName = SheetPrimitive.Title.displayName\n\nconst SheetDescription = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n))\nSheetDescription.displayName = SheetPrimitive.Description.displayName\n\nexport {\n Sheet,\n SheetPortal,\n SheetOverlay,\n SheetTrigger,\n SheetClose,\n SheetContent,\n SheetHeader,\n SheetFooter,\n SheetTitle,\n SheetDescription,\n}\n","\"use client\"\nimport * as React from \"react\"\nimport { useRef } from \"react\";\nimport { useDateSegment } from \"react-aria\";\nimport { DateFieldState, DateSegment as IDateSegment } from \"react-stately\";\nimport { cn } from \"../../../lib/utils\";\n\ninterface DateSegmentProps {\n segment: IDateSegment;\n state: DateFieldState;\n}\n\nfunction DateSegment({ segment, state }: DateSegmentProps) {\n const ref = useRef(null);\n\n const {\n segmentProps: { ...segmentProps },\n } = useDateSegment(segment, state, ref);\n\n return (\n \n {segment.text}\n
\n );\n}\n\nexport { DateSegment };\n","import * as React from \"react\"\nimport * as PopoverPrimitive from \"@radix-ui/react-popover\"\n\nimport { cn } from \"../../lib/utils\"\n\nconst Popover = PopoverPrimitive.Root\n\nconst PopoverTrigger = PopoverPrimitive.Trigger\n\nconst PopoverContent = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, align = \"center\", sideOffset = 4, ...props }, ref) => (\n \n))\nPopoverContent.displayName = PopoverPrimitive.Content.displayName\n\nexport { Popover, PopoverTrigger, PopoverContent }\n","\"use client\"\nimport * as React from \"react\"\nimport { DateSegment } from \"./date-segment\";\nimport { useRef } from \"react\";\nimport { AriaTimeFieldProps, TimeValue, useLocale, useTimeField } from \"react-aria\";\nimport { useTimeFieldState } from \"react-stately\";\nimport { cn } from \"../../../lib/utils\";\n\nfunction TimeField(props: AriaTimeFieldProps) {\n\tconst ref = useRef(null);\n\n\tconst { locale } = useLocale();\n\tconst state = useTimeFieldState({\n\t\t...props,\n\t\tlocale,\n\t});\n\tconst {\n\t\tfieldProps: { ...fieldProps },\n\t\tlabelProps,\n\t} = useTimeField(props, state, ref);\n\n\treturn (\n\t\t\n\t\t\t{state.segments.map((segment, i) => (\n\t\t\t\t\n\t\t\t))}\n\t\t\n\t);\n}\n\nexport { TimeField };\n","import * as React from \"react\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\n\nimport { cn } from \"../../lib/utils\"\n\n// @ts-ignore\nconst badgeVariants = cva(\n \"inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2\",\n {\n variants: {\n variant: {\n default:\n \"border-transparent bg-primary text-primary-foreground hover:bg-primary/80\",\n secondary:\n \"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80\",\n destructive:\n \"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80\",\n outline: \"text-foreground\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n },\n }\n)\n\nexport interface BadgeProps\n extends React.HTMLAttributes,\n VariantProps {}\n// @ts-ignore\nfunction Badge({ className, variant, ...props }: BadgeProps) {\n return (\n
\n )\n}\n\nexport { Badge, badgeVariants }\n","export function showJetToast(text: string) {\n document.getElementById(\"myToast\").classList.remove(\"hidden\");\n document.getElementById(\"toast-text\").innerText = text;\n setTimeout(function () {\n document.getElementById(\"myToast\").classList.add(\"hidden\");\n }, 3000);\n}","import * as React from \"react\"\nimport * as SwitchPrimitives from \"@radix-ui/react-switch\"\n\nimport {cn} from \"../../lib/utils\"\n\nconst Switch = React.forwardRef<\n React.ElementRef,\n React.ComponentPropsWithoutRef\n>(({ className, ...props }, ref) => (\n \n \n \n))\nSwitch.displayName = SwitchPrimitives.Root.displayName\n\nexport { Switch }\n","import * as React from \"react\"\nimport { Slot } from \"@radix-ui/react-slot\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\n\nimport { cn } from \"../../lib/utils\"\n\nconst buttonVariants = cva(\n \"inline-flex items-center justify-center whitespace-nowrap rounded-md font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50\",\n {\n variants: {\n variant: {\n default: \"bg-primary font-bold text-primary-foreground hover:bg-primaryDark\",\n destructive:\n \"bg-destructive text-destructive-foreground hover:bg-destructive/90\",\n outline:\n \"border border-input bg-background hover:bg-accent hover:text-accent-foreground\",\n secondary:\n \"bg-secondary text-secondary-foreground hover:bg-secondary/80\",\n ghost: \"hover:bg-accent hover:text-accent-foreground\",\n link: \"text-primary underline-offset-4 hover:underline\",\n },\n size: {\n default: \"h-10 px-4 py-2\",\n sm: \"h-9 rounded-md px-3\",\n lg: \"h-11 rounded-md px-8\",\n icon: \"h-10 w-10\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n size: \"default\",\n },\n }\n)\n\nexport interface ButtonProps\n extends React.ButtonHTMLAttributes,\n VariantProps {\n asChild?: boolean\n}\n\nconst Button = React.forwardRef(\n ({ className, variant, size, asChild = false, ...props }, ref) => {\n const Comp = asChild ? Slot : \"button\"\n return (\n \n )\n }\n)\nButton.displayName = \"Button\"\n\nexport { Button, buttonVariants }\n","import * as React from \"react\"\nimport {cn} from \"../../lib/utils\";\n\n\nconst Textarea = React.forwardRef<\n HTMLTextAreaElement,\n React.ComponentProps<\"textarea\">\n>(({ className, ...props }, ref) => {\n return (\n \n )\n})\nTextarea.displayName = \"Textarea\"\n\nexport { Textarea }\n"],"names":["DateField","props","ref","useRef","locale","useLocale","state","useDateFieldState","createCalendar","fieldProps","useDateField","React","_extends","className","cn","isDisabled","segments","map","segment","i","DateSegment","key","validationState","YoutubeIcon","size","xmlns","width","height","viewBox","fill","d","AlertDialog","AlertDialogPrimitive","AlertDialogTrigger","AlertDialogPortal","AlertDialogOverlay","displayName","AlertDialogContent","AlertDialogHeader","AlertDialogFooter","AlertDialogTitle","AlertDialogDescription","AlertDialogAction","buttonVariants","AlertDialogCancel","variant","Checkbox","CheckboxPrimitive","Check","Select","SelectPrimitive","SelectGroup","SelectValue","SelectTrigger","children","asChild","ChevronDown","SelectScrollUpButton","ChevronUp","SelectScrollDownButton","SelectContent","position","SelectLabel","SelectItem","SelectSeparator","ScrollArea","ScrollAreaPrimitive","ScrollBar","orientation","Tabs","TabsPrimitive","TabsList","TabsTrigger","TabsContent","isValidHour","value","test","isValid12Hour","isValidMinuteOrSecond","getValidNumber","max","min","loop","numericValue","parseInt","isNaN","toString","padStart","getValidHour","getValid12Hour","getValidMinuteOrSecond","getValidArrowNumber","step","String","getValidArrowHour","getValidArrowMinuteOrSecond","setMinutes","date","minutes","setSeconds","seconds","setHours","hours","setDateByType","type","getDateByType","getMinutes","getSeconds","getHours","getArrowByType","Object","assign","bind","n","e","arguments","length","t","r","hasOwnProperty","call","apply","TimePickerInput","id","name","Date","setDate","onChange","onKeyDown","picker","onLeftFocus","onRightFocus","flag","setFlag","timer","setTimeout","clearTimeout","calculatedValue","Input","preventDefault","inputMode","includes","newValue","tempDate","slice","prev","handleKeyDown","labelVariants","cva","Label","LabelPrimitive","RadioGroup","RadioGroupPrimitive","RadioGroupItem","Circle","Slider","SliderPrimitive","Array","from","_","clsx","role","DropdownMenu","DropdownMenuPrimitive","DropdownMenuTrigger","DropdownMenuGroup","DropdownMenuPortal","DropdownMenuSub","DropdownMenuRadioGroup","DropdownMenuSubTrigger","inset","ChevronRight","DropdownMenuSubContent","DropdownMenuContent","sideOffset","DropdownMenuItem","DropdownMenuCheckboxItem","checked","DropdownMenuRadioItem","DropdownMenuLabel","DropdownMenuSeparator","DropdownMenuShortcut","TooltipProvider","TooltipPrimitive","Tooltip","TooltipTrigger","TooltipContent","Progress","ProgressPrimitive","style","transform","TimePickerDemo","minuteRef","hourRef","htmlFor","current","focus","Clock","inputs","twMerge","HelloWorld","greeting","propTypes","PropTypes","Avatar","AvatarPrimitive","AvatarImage","AvatarFallback","Skeleton","Dialog","DialogPrimitive","DialogTrigger","DialogPortal","DialogClose","DialogOverlay","DialogContent","X","DialogHeader","DialogFooter","DialogTitle","DialogDescription","csrfToken","document","querySelector","getAttribute","axios","defaults","headers","common","formatDate","dateString","getTime","toLocaleDateString","day","month","year","toLocaleTimeString","hour","minute","hour12","statusStyles","queued","generating","success","failed","deleted","AdminMedia","initialMedia","pagy","mediaItems","setMediaItems","useState","page","setPage","hasMore","setHasMore","next","loading","setLoading","error","setError","actionLoading","setActionLoading","editStates","setEditStates","fetchMedia","useCallback","async","response","get","pageNum","media","data","err","console","useEffect","handleEditChange","mediaId","field","index","statusStyle","status","editState","Card","split","charAt","toUpperCase","original_image_url","src","alt","generated_image_url","CardContent","user_email","instructions","onValueChange","accept","file","uploadProgress","upload","DirectUpload","directUploadWillStoreFileWithXHR","xhr","addEventListener","event","lengthComputable","percent","Math","round","loaded","total","signed_id","Promise","resolve","reject","create","blob","handleGeneratedImageUpload","target","files","Textarea","failure_reason","rows","generated_image","Button","onClick","cancelChanges","rest","editData","put","find","m","item","saveChanges","disabled","created_at","updated_at","loadMore","videoStatusStyles","not_started","Dashboard","credits","setFile","setInstructions","setUploadProgress","editDialogOpen","setEditDialogOpen","editMediaId","setEditMediaId","editInstructions","setEditInstructions","deleteDialogOpen","setDeleteDialogOpen","deleteMediaId","setDeleteMediaId","shareDialogOpen","setShareDialogOpen","shareMediaId","setShareMediaId","videoDialogOpen","setVideoDialogOpen","videoMediaId","setVideoMediaId","videoPrompt","setVideoPrompt","tipsDialogOpen","setTipsDialogOpen","setCredits","newCredits","desktopElement","getElementById","mobileElement","innerText","log","updateMedia","prevMedia","updatedMap","Map","interval","setInterval","clearInterval","downloadImage","url","window","open","shareUrl","location","origin","user_id","onSubmit","mediaResponse","post","original_image","errorMsg","message","errors","join","showJetToast","Info","onOpenChange","stroke","strokeWidth","strokeLinecap","strokeLinejoin","videoStatusStyle","video_status","isSuccess","isVideoSuccess","replace","stopPropagation","handleEdit","Edit2","Share2","Trash2","handleGenerateVideo","Video","Download","generated_video_url","video_failure_reason","delete","filter","href","encodeURIComponent","copyLink","navigator","clipboard","writeText","placeholder","video_prompt","DateTimePicker","forwardedRef","innerRef","useForwardedRef","buttonRef","contentRef","setOpen","useDatePickerState","labelProps","groupProps","buttonProps","_buttonProps","dialogProps","calendarProps","useDatePicker","useButton","useInteractOutside","onInteractOutside","label","Popover","PopoverTrigger","CalendarIcon","PopoverContent","Calendar","hasTime","TimeField","timeValue","setTimeValue","Command","CommandPrimitive","CommandDialog","CommandInput","Search","CommandList","List","CommandEmpty","Empty","CommandGroup","Group","CommandSeparator","Separator","CommandItem","Item","CommandShortcut","prevButtonRef","nextButtonRef","useCalendarState","prevButtonProps","_prevButtonProps","nextButtonProps","_nextButtonProps","title","useCalendar","ChevronLeftIcon","ChevronRightIcon","CalendarGrid","gridProps","headerProps","weekDays","useCalendarGrid","weeksInMonth","getWeeksInMonth","visibleRange","start","keys","weekIndex","getDatesInWeek","CalendarCell","cellProps","isSelected","isOutsideVisibleRange","formattedDate","useCalendarCell","isToday","useMemo","timezone","getLocalTimeZone","_isToday","Accordion","AccordionPrimitive","AccordionItem","AccordionTrigger","AccordionContent","TikTokIcon","classNames","showOutsideDays","DayPicker","months","caption","caption_label","nav","nav_button","nav_button_previous","nav_button_next","table","head_row","head_cell","row","cell","day_range_end","day_selected","day_today","day_outside","day_disabled","day_range_middle","day_hidden","components","IconLeft","ChevronLeft","IconRight","CardHeader","CardTitle","CardDescription","CardFooter","ConfirmModal","isOpen","onConfirm","onCancel","isRequired","webpackContext","req","webpackContextResolve","__webpack_require__","o","Error","code","module","exports","TimePicker","Sheet","SheetPrimitive","SheetTrigger","SheetClose","SheetPortal","SheetOverlay","sheetVariants","variants","side","top","bottom","left","right","defaultVariants","SheetContent","SheetHeader","SheetFooter","SheetTitle","SheetDescription","segmentProps","useDateSegment","isPlaceholder","text","PopoverPrimitive","align","useTimeFieldState","useTimeField","badgeVariants","default","secondary","destructive","outline","Badge","classList","remove","add","Switch","SwitchPrimitives","ghost","link","sm","lg","icon","Comp","Slot"],"sourceRoot":""}