{"version":3,"file":"index-UjeMqyC8.js","sources":["../../../../libs/ui/src/components/Video/utils.ts","../../../../libs/ui/src/components/VideoCard/Meta.tsx","../../../../libs/ui/src/components/VideoCard/VideoCard.tsx"],"sourcesContent":["import type {PlayerSrc} from '@vidstack/react'\nimport type {VideoType} from './VideoTypes'\n\nexport const defaultVideoValues: VideoType = {\n url: '',\n autoplay: false,\n muted: false,\n noControls: false,\n standalone: false,\n stopOnLeave: false,\n loop: false,\n}\n\nexport const getVideoProviderEnum = (url: PlayerSrc) => {\n if (typeof url === 'string') {\n if (url.includes('.mp4')) return 'HTML5'\n if (url.includes('vimeo.')) return 'VIMEO'\n return 'YOUTUBE'\n }\n if (Array.isArray(url)) {\n return 'URLSET'\n }\n return url.type\n}\n","import {parseSecondsHumanReadableString, twMerge} from '@sdox/utils'\n\nimport {RichText} from '../RichText'\n\nexport interface MetaProps {\n url: string | null\n openInNewTab: boolean\n title: string | null\n sourceName: string | null\n duration: number | null\n disclaimers: string[] | null\n}\n\nexport const Meta = (props: MetaProps) => {\n const {duration, sourceName, title, disclaimers, openInNewTab, url} = props\n\n const hasMeta = !!duration || !!sourceName || !!title || !!disclaimers\n\n if (!hasMeta) {\n return null\n }\n\n const hasDivider = !!sourceName && !!duration\n const hasLink = !!sourceName && !!url\n\n return (\n