(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),n=e.i(40160);let o=(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 s=e.i(67881);e.s(["InstallAppButton",0,function({compact:e=!1}){let[i,l]=(0,a.useState)(null),[r,d]=(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(),l(e)},t=()=>{d(!0),l(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)(()=>r?"Installed":"Install as App",[r]),p=async()=>{let e,t,a,n;if(r)return void c("video.haus is already installed on this device.");if(i){await i.prompt(),"accepted"===(await i.userChoice).outcome?c("Install started. Check your home screen in a moment."):c("Install prompt dismissed."),l(null);return}(e=window.navigator.userAgent.toLowerCase(),t=/iphone|ipad|ipod/.test(e),a=/webkit/.test(e),n=/crios|fxios|edgios|opios/.test(e),t&&a&&!n)?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)(s.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:[r?(0,t.jsx)(o,{"data-icon":"inline-start"}):(0,t.jsx)(n.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)}]);