module.exports=[70106,a=>{"use strict";var b=a.i(72131);let c=a=>{let b=a.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,b,c)=>c?c.toUpperCase():b.toLowerCase());return b.charAt(0).toUpperCase()+b.slice(1)},d=(...a)=>a.filter((a,b,c)=>!!a&&""!==a.trim()&&c.indexOf(a)===b).join(" ").trim();var e={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let f=(0,b.forwardRef)(({color:a="currentColor",size:c=24,strokeWidth:f=2,absoluteStrokeWidth:g,className:h="",children:i,iconNode:j,...k},l)=>(0,b.createElement)("svg",{ref:l,...e,width:c,height:c,stroke:a,strokeWidth:g?24*Number(f)/Number(c):f,className:d("lucide",h),...!i&&!(a=>{for(let b in a)if(b.startsWith("aria-")||"role"===b||"title"===b)return!0})(k)&&{"aria-hidden":"true"},...k},[...j.map(([a,c])=>(0,b.createElement)(a,c)),...Array.isArray(i)?i:[i]]));a.s(["default",0,(a,e)=>{let g=(0,b.forwardRef)(({className:g,...h},i)=>(0,b.createElement)(f,{ref:i,iconNode:e,className:d(`lucide-${c(a).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${a}`,g),...h}));return g.displayName=c(a),g}],70106)},84505,a=>{"use strict";let b=(0,a.i(70106).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"}]]);a.s(["Download",0,b],84505)},23203,a=>{"use strict";var b=a.i(87924),c=a.i(72131),d=a.i(84505);let e=(0,a.i(70106).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 f=a.i(40695);a.s(["InstallAppButton",0,function({compact:a=!1}){let[g,h]=(0,c.useState)(null),[i,j]=(0,c.useState)(()=>!1),[k,l]=(0,c.useState)(null);(0,c.useEffect)(()=>{let a=a=>{a.preventDefault(),h(a)},b=()=>{j(!0),h(null),l("Installed. You can launch video.haus from your home screen.")};return window.addEventListener("beforeinstallprompt",a),window.addEventListener("appinstalled",b),()=>{window.removeEventListener("beforeinstallprompt",a),window.removeEventListener("appinstalled",b)}},[]),(0,c.useEffect)(()=>{if(!k)return;let a=window.setTimeout(()=>{l(null)},4500);return()=>{window.clearTimeout(a)}},[k]);let m=(0,c.useMemo)(()=>i?"Installed":"Install as App",[i]),n=async()=>{if(i)return void l("video.haus is already installed on this device.");if(g){await g.prompt(),"accepted"===(await g.userChoice).outcome?l("Install started. Check your home screen in a moment."):l("Install prompt dismissed."),h(null);return}l("Install option unavailable here. Use your browser menu: Install app / Add to Home Screen.")};return(0,b.jsxs)("div",{className:"relative",children:[(0,b.jsxs)(f.Button,{variant:a?"outline":"secondary",size:"sm",className:"border-white/20 bg-slate-900/70 text-slate-100 hover:bg-slate-800",onClick:()=>{n()},children:[i?(0,b.jsx)(e,{"data-icon":"inline-start"}):(0,b.jsx)(d.Download,{"data-icon":"inline-start"}),m]}),k?(0,b.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:k}):null]})}],23203)}];

//# sourceMappingURL=_0qp5aez._.js.map