(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,40160,e=>{"use strict";let t=(0,e.i(75254).default)("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]]);e.s(["Download",0,t],40160)},70235,e=>{"use strict";var t=e.i(43476),a=e.i(71645),r=e.i(40160);let i=(0,e.i(75254).default)("smartphone",[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]]);var n=e.i(67881);e.s(["InstallAppButton",0,function({compact:e=!1}){let[s,o]=(0,a.useState)(null),[d,l]=(0,a.useState)(()=>{let e,t;return e=window.matchMedia("(display-mode: standalone)").matches,t=!!window.navigator.standalone,e||t}),[u,c]=(0,a.useState)(null);(0,a.useEffect)(()=>{let e=e=>{e.preventDefault(),o(e)},t=()=>{l(!0),o(null),c("Installed. You can launch video.haus from your home screen.")};return window.addEventListener("beforeinstallprompt",e),window.addEventListener("appinstalled",t),()=>{window.removeEventListener("beforeinstallprompt",e),window.removeEventListener("appinstalled",t)}},[]),(0,a.useEffect)(()=>{if(!u)return;let e=window.setTimeout(()=>{c(null)},4500);return()=>{window.clearTimeout(e)}},[u]);let h=(0,a.useMemo)(()=>d?"Installed":"Install as App",[d]),p=async()=>{let e,t,a,r;if(d)return void c("video.haus is already installed on this device.");if(s){await s.prompt(),"accepted"===(await s.userChoice).outcome?c("Install started. Check your home screen in a moment."):c("Install prompt dismissed."),o(null);return}(e=window.navigator.userAgent.toLowerCase(),t=/iphone|ipad|ipod/.test(e),a=/webkit/.test(e),r=/crios|fxios|edgios|opios/.test(e),t&&a&&!r)?c("On iPhone/iPad: tap Share, then choose Add to Home Screen."):c("Install option unavailable here. Use your browser menu: Install app / Add to Home Screen.")};return(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsxs)(n.Button,{variant:e?"outline":"secondary",size:"sm",className:"border-white/20 bg-slate-900/70 text-slate-100 hover:bg-slate-800",onClick:()=>{p()},children:[d?(0,t.jsx)(i,{"data-icon":"inline-start"}):(0,t.jsx)(r.Download,{"data-icon":"inline-start"}),h]}),u?(0,t.jsx)("div",{className:"absolute right-0 top-full z-[80] mt-2 w-72 rounded-lg border border-white/15 bg-slate-950 px-3 py-2 text-xs leading-relaxed text-slate-200 shadow-xl",children:u}):null]})}],70235)},93886,e=>{"use strict";let t=(0,e.i(75254).default)("film",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M7 3v18",key:"bbkbws"}],["path",{d:"M3 7.5h4",key:"zfgn84"}],["path",{d:"M3 12h18",key:"1i2n21"}],["path",{d:"M3 16.5h4",key:"1230mu"}],["path",{d:"M17 3v18",key:"in4fa5"}],["path",{d:"M17 7.5h4",key:"myr1c1"}],["path",{d:"M17 16.5h4",key:"go4c1d"}]]);e.s(["Film",0,t],93886)},94179,e=>{"use strict";var t=e.i(19805),a=e.i(27601),r=e.i(25913),i=e.i(47163);let n=(0,r.cva)("group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!",{variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",secondary:"bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",destructive:"bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20",outline:"border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground",ghost:"hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",link:"text-primary underline-offset-4 hover:underline"}},defaultVariants:{variant:"default"}});e.s(["Badge",0,function({className:e,variant:r="default",render:s,...o}){var d;return d={defaultTagName:"span",props:(0,t.mergeProps)({className:(0,i.cn)(n({variant:r}),e)},o),render:s,state:{slot:"badge",variant:r}},(0,a.useRenderElement)(d.defaultTagName??"div",d,d)}],94179)},83086,e=>{"use strict";let t=(0,e.i(75254).default)("sparkles",[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]]);e.s(["Sparkles",0,t],83086)}]);