1import{u as y,r as a,j as e,C as r,d as n,W as i,e as d,A as c,f as l,B as x,D as g}from"./index-IxvR3ybE.js";import{A as I}from"./arrow-left-4pOUTQ6T.js";import{S as N}from"./smartphone-B8OIDxI8.js";import{S as C}from"./share-MOlCUOba.js";import{P as A}from"./plus-ByP2IBiw.js";import{E as S}from"./ellipsis-vertical-mn19GxBK.js";const F=()=>{const p=y(),[s,o]=a.useState(null),[b,m]=a.useState(!1),[h,w]=a.useState(!1),[u,k]=a.useState(!1);a.useEffect(()=>{const t=navigator.userAgent.toLowerCase();w(/iphone|ipad|ipod/.test(t)),k(/android/.test(t)),window.matchMedia("(display-mode: standalone)").matches&&m(!0);const f=j=>{j.preventDefault(),o(j)};return window.addEventListener("beforeinstallprompt",f),window.addEventListener("appinstalled",()=>{m(!0),o(null)}),()=>{window.removeEventListener("beforeinstallprompt",f)}},[]);const v=async()=>{if(s)try{await s.prompt();const{outcome:t}=await s.userChoice;t==="accepted"&&m(!0),o(null)}catch(t){console.error("Install prompt failed:",t)}};return b?e.jsx("div",{className:"min-h-screen bg-gradient-to-br from-purple-50 to-indigo-100 dark:from-gray-900 dark:to-gray-800 flex items-center justify-center p-4",children:e.jsxs(r,{className:"w-full max-w-md text-center",children:[e.jsxs(n,{children:[e.jsx("div",{className:"mx-auto w-16 h-16 bg-green-100 dark:bg-green-900/30 rounded-full flex items-center justify-center mb-4",children:e.jsx(i,{className:"w-8 h-8 text-green-600 dark:text-green-400"})}),e.jsx(d,{className:"text-2xl",children:"App Installed!"}),e.jsx(c,{children:"Kconect is now installed on your device. You can access it from your home screen."})]}),e.jsx(l,{children:e.jsx(x,{onClick:()=>p("/attendee"),className:"w-full",children:"Open App"})})]})}):e.jsx("div",{className:"min-h-screen bg-gradient-to-br from-purple-50 to-indigo-100 dark:from-gray-900 dark:to-gray-800 p-4",children:e.jsxs("div",{className:"max-w-md mx-auto pt-8",children:[e.jsxs(x,{variant:"ghost",size:"sm",onClick:()=>p(-1),className:"mb-6",children:[e.jsx(I,{className:"w-4 h-4 mr-2"}),"Back"]}),e.jsxs("div",{className:"text-center mb-8",children:[e.jsx("img",{src:"/logo.png",alt:"Kconect",className:"w-20 h-20 mx-auto mb-4"}),e.jsx("h1",{className:"text-3xl font-bold bg-gradient-to-r from-purple-600 to-indigo-600 bg-clip-text text-transparent",children:"Install Kconect"}),e.jsx("p",{className:"text-muted-foreground mt-2",children:"Add to your home screen for the best experience"})]}),s&&e.jsx(r,{className:"mb-6 border-2 border-purple-200 dark:border-purple-800",children:e.jsx(l,{className:"pt-6",children:e.jsxs(x,{onClick:v,className:"w-full bg-gradient-to-r from-purple-600 to-indigo-600 hover:from-purple-700 hover:to-indigo-700 text-white",size:"lg",children:[e.jsx(g,{className:"w-5 h-5 mr-2"}),"Install App Now"]})})}),h&&e.jsxs(r,{className:"mb-6",children:[e.jsxs(n,{children:[e.jsxs(d,{className:"flex items-center gap-2 text-lg",children:[e.jsx(N,{className:"w-5 h-5 text-purple-600"}),"Install on iPhone/iPad"]}),e.jsx(c,{children:"Follow these steps in Safari"})]}),e.jsxs(l,{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx("div",{className:"w-8 h-8 rounded-full bg-purple-100 dark:bg-purple-900/30 flex items-center justify-center flex-shrink-0",children:e.jsx("span",{className:"text-purple-600 dark:text-purple-400 font-semibold",children:"1"})}),e.jsxs("div",{children:[e.jsx("p",{className:"font-medium",children:"Tap the Share button"}),e.jsxs("p",{className:"text-sm text-muted-foreground flex items-center gap-1",children:[e.jsx(C,{className:"w-4 h-4"})," at the bottom of Safari"]})]})]}),e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx("div",{className:"w-8 h-8 rounded-full bg-purple-100 dark:bg-purple-900/30 flex items-center justify-center flex-shrink-0",children:e.jsx("span",{className:"text-purple-600 dark:text-purple-400 font-semibold",children:"2"})}),e.jsxs("div",{children:[e.jsx("p",{className:"font-medium",children:"Scroll down and tap"}),e.jsxs("p",{className:"text-sm text-muted-foreground flex items-center gap-1",children:[e.jsx(A,{className:"w-4 h-4"}),' "Add to Home Screen"']})]})]}),e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx("div",{className:"w-8 h-8 rounded-full bg-purple-100 dar
1k:bg-purple-900/30 flex items-center justify-center flex-shrink-0",children:e.jsx("span",{className:"text-purple-600 dark:text-purple-400 font-semibold",children:"3"})}),e.jsxs("div",{children:[e.jsx("p",{className:"font-medium",children:'Tap "Add" to confirm'}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"The app will appear on your home screen"})]})]})]})]}),u&&!s&&e.jsxs(r,{className:"mb-6",children:[e.jsxs(n,{children:[e.jsxs(d,{className:"flex items-center gap-2 text-lg",children:[e.jsx(N,{className:"w-5 h-5 text-purple-600"}),"Install on Android"]}),e.jsx(c,{children:"Follow these steps in Chrome"})]}),e.jsxs(l,{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx("div",{className:"w-8 h-8 rounded-full bg-purple-100 dark:bg-purple-900/30 flex items-center justify-center flex-shrink-0",children:e.jsx("span",{className:"text-purple-600 dark:text-purple-400 font-semibold",children:"1"})}),e.jsxs("div",{children:[e.jsx("p",{className:"font-medium",children:"Tap the menu button"}),e.jsxs("p",{className:"text-sm text-muted-foreground flex items-center gap-1",children:[e.jsx(S,{className:"w-4 h-4"})," (three dots) in the top right"]})]})]}),e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx("div",{className:"w-8 h-8 rounded-full bg-purple-100 dark:bg-purple-900/30 flex items-center justify-center flex-shrink-0",children:e.jsx("span",{className:"text-purple-600 dark:text-purple-400 font-semibold",children:"2"})}),e.jsxs("div",{children:[e.jsx("p",{className:"font-medium",children:'Tap "Install app" or "Add to Home screen"'}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Look for the install option in the menu"})]})]}),e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx("div",{className:"w-8 h-8 rounded-full bg-purple-100 dark:bg-purple-900/30 flex items-center justify-center flex-shrink-0",children:e.jsx("span",{className:"text-purple-600 dark:text-purple-400 font-semibold",children:"3"})}),e.jsxs("div",{children:[e.jsx("p",{className:"font-medium",children:'Tap "Install" to confirm'}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"The app will be added to your home screen"})]})]})]})]}),!h&&!u&&!s&&e.jsxs(r,{className:"mb-6",children:[e.jsxs(n,{children:[e.jsxs(d,{className:"flex items-center gap-2 text-lg",children:[e.jsx(g,{className:"w-5 h-5 text-purple-600"}),"Install on Desktop"]}),e.jsx(c,{children:"Works on Chrome, Edge, and other browsers"})]}),e.jsxs(l,{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx("div",{className:"w-8 h-8 rounded-full bg-purple-100 dark:bg-purple-900/30 flex items-center justify-center flex-shrink-0",children:e.jsx("span",{className:"text-purple-600 dark:text-purple-400 font-semibold",children:"1"})}),e.jsxs("div",{children:[e.jsx("p",{className:"font-medium",children:"Look for the install icon"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"In the address bar or browser menu"})]})]}),e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx("div",{className:"w-8 h-8 rounded-full bg-purple-100 dark:bg-purple-900/30 flex items-center justify-center flex-shrink-0",children:e.jsx("span",{className:"text-purple-600 dark:text-purple-400 font-semibold",children:"2"})}),e.jsxs("div",{children:[e.jsx("p",{className:"font-medium",children:'Click "Install"'}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"The app will be added to your applications"})]})]})]})]}),e.jsxs(r,{children:[e.jsx(n,{children:e.jsx(d,{className:"text-lg",children:"Why Install?"})}),e.jsx(l,{children:e.jsxs("ul",{className:"space-y-2",children:[e.jsxs("li",{className:"flex items-center gap-2 text-sm",children:[e.jsx(i,{className:"w-4 h-4 text-green-600"}),"Quick access from your home screen"]}),e.jsxs("li",{className:"flex items-center gap-2 text-sm",children:[e.jsx(i,{className:"w-4 h-4 text-green-600"}),"Works offline with cached content"]}),e.jsxs("li",{className:"flex items-center gap-2 text-sm",children:[e.jsx(i,{className:"w-4 h-4 text-green-600"}),"Faster loading after first visit"]}),e.jsxs("li",{className:"flex items-center gap-2 text-sm",children:[e.jsx(i,{className:"w-4 h-4 text-green-600"}),"Full-screen app experience"]})]})})]})]})})};export{F as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.