PageSourceSearch

https://jhasolutions.com/assets/Install-JdR8g87E.js

js jhasolutions.com collected 2026-09-24 14:47:20 UTC 7,606 bytes, 1 lines download raw bytes

1import{j as e}from"./query-vendor-Dp9tfhuh.js";import{u as N}from"./useInstallPrompt-GfjuLCe0.js";import{u as g,E as b}from"./use-mobile-CojsY12Z.js";import{u as y,h as s,i as c,k as d,l as w,m as t,B as r}from"./index-CgOeqv80.js";import{a as v}from"./react-vendor-DfslLuwi.js";import{C as l}from"./circle-check-CLkepror.js";import{A as m}from"./arrow-left-BmX2tYO6.js";import{S as k}from"./smartphone-CBjqwShe.js";import{D as n}from"./download-B3iahoQg.js";import{Z as C}from"./zap-BKGpOGd1.js";import{B as I}from"./bell-D0vTOuek.js";import{G as S}from"./globe-C_UDh3Yp.js";import{S as A,a as F}from"./square-plus-Dp1sCmj5.js";import"./ui-vendor-DW4RoVmg.js";import"./chart-vendor-BoynbIzZ.js";function W(){const{t:T}=y(),i=v();g();const{isInstallable:o,isInstalled:x,isIOS:h,promptInstall:p}=N(),u=async()=>{await p()},f=[{icon:n,title:"Works Offline",description:"Access your data even without internet"},{icon:C,title:"Faster Loading",description:"Instant access from your home screen"},{icon:I,title:"Push Notifications",description:"Stay updated with important alerts"},{icon:S,title:"Native App Feel",description:"Full screen experience like a real app"}];return x?e.jsx("div",{className:"min-h-screen bg-background flex items-center justify-center p-4 safe-bottom",children:e.jsxs(s,{className:"max-w-md w-full",children:[e.jsxs(c,{className:"text-center",children:[e.jsx("div",{className:"mx-auto mb-4 w-16 h-16 bg-green-500/10 rounded-full flex items-center justify-center",children:e.jsx(l,{className:"w-8 h-8 text-green-500"})}),e.jsx(d,{className:"text-2xl",children:"App Installed!"}),e.jsx(w,{className:"text-base",children:"JHA Solutions is already installed on your device. Open it from your home screen for the best experience."})]}),e.jsx(t,{children:e.jsxs(r,{variant:"outline",className:"w-full",onClick:()=>i(-1),children:[e.jsx(m,{className:"w-4 h-4 mr-2"}),"Go Back"]})})]})}):e.jsxs("div",{className:"min-h-screen bg-background safe-bottom",children:[e.jsx("header",{className:"sticky top-0 z-40 bg-background/95 backdrop-blur-md border-b border-border safe-top",children:e.jsxs("div",{className:"flex items-center gap-3 p-4",children:[e.jsx(r,{variant:"ghost",size:"icon",onClick:()=>i(-1),className:"h-10 w-10",children:e.jsx(m,{className:"w-5 h-5"})}),e.jsx("h1",{className:"text-lg font-semibold",children:"Install App"})]})}),e.jsxs("div",{className:"p-4 pb-24 max-w-md mx-auto space-y-6",children:[e.jsxs("div",{className:"text-center py-6",children:[e.jsx("div",{className:"mx-auto mb-4 w-20 h-20 bg-primary rounded-2xl flex items-center justify-center shadow-lg",children:e.jsx(k,{className:"w-10 h-10 text-primary-foreground"})}),e.jsx("h2",{className:"text-2xl font-bold mb-2",children:"Install JHA Solutions"}),e.jsx("p",{className:"text-muted-foreground",children:"Get the full app experience with offline access and faster loading."})]}),e.jsx("div",{className:"grid grid-cols-2 gap-3",children:f.map((a,j)=>e.jsx(s,{className:"bg-muted/30 border-none",children:e.jsxs(t,{className:"p-4",children:[e.jsx("div",{className:"w-10 h-10 rounded-lg bg-primary/10 flex items-center justify-center mb-3",children:e.jsx(a.icon,{className:"w-5 h-5 text-primary"})}),e.jsx("p",{className:"font-medium text-sm",children:a.title}),e.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:a.description})]})},j))}),e.jsxs(s,{children:[e.jsx(c,{className:"pb-3",children:e.jsx(d,{className:"text-lg",children:"How to Install"})}),e.jsx(t,{className:"space-y-3",children:h?e.jsxs(e.Fragment,{children:[e.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:"Follow these steps to install on your iPhone or iPad:"}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"flex items-center gap-4 p-3 bg-muted/50 rounded-lg",children:[e.jsx("div",{className:"w-10 h-10 bg-primary/10 rounded-lg flex items-center justify-center flex-shrink-0",children:e.jsx(A,{className:"w-5 h-5 text-primary"})}),e.jsxs("div",{className:"flex-1",children:[e.jsx("p",{className:"font-medium text-sm",children:"1. Tap Share"}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"Find the share button in Safari's toolbar"})]})]}),e.jsxs("div",{className:"flex items-center gap-4 p-3 bg-muted/50 rounded-lg",children:[e.jsx("div",{className:"w-10 h-10 bg-primary/10 rounded-lg flex items-center justify-center flex-shrink-0",children:e.jsx(F,{className:"w-5 h-5 text-primary"})}),e.jsxs("div",{className:"flex-1",children:[e.jsx("p",{className:"font-medium text-sm",children:"2. Add to Home Screen"}),e.jsx("p",{className:"text-xs text-muted-foreground",children:'Scroll and tap "Add to Home Screen"'})]})]}),e.jsxs("div",{className:"flex items-center gap-4 p-3 bg-muted/50 rounded-lg",children:[e.jsx("div",{className:"w-10 h-10 bg-green-500/10 rounded-lg flex items-center justify-center flex-shrink-0",children:e.jsx(l,{className:"w-5 h-5 text-green-500"})}),e.jsxs("div",{className:"flex-1",children:[e.jsx("p",{className:"font-medium text-sm",children:'3. Tap "Add"'}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"Confirm to add the app to your home screen"})]})]})]})]}):o?e.jsxs(e.Fragment,{children:[e.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:"Click the button below to install the app instantly."}),e.jsxs(r,{onClick:u,className:"w-full h-12 text-base",size:"lg",children:[e.jsx(n,{className:"w-5 h-5 mr-2"}),"Install App"]})]}):e.jsxs(e.Fragment,{children:[e.jsx("p",{className:"text-sm text-muted-foreground mb-4",children:"Follow these steps to install on your Android device:"}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"flex items-center gap-4 p-3 bg-muted/50 rounded-lg",children:[e.jsx("div",{className:"w-10 h-10 bg-primary/10 rounded-lg flex items-center justify-center flex-shrink-0",children:e.jsx(b,{className:"w-5 h-5 text-primary"})}),e.jsxs("div",{className:"flex-1",children:[e.jsx("p",{className:"font-medium text-sm",children:"1. Open Browser Menu"}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"Tap the menu button (⋮) in Chrome"})]})]}),e.jsxs("div",{className:"flex items-center gap-4 p-3 bg-muted/50 rounded-lg",children:[e.jsx("div",{className:"w-10 h-10 bg-primary/10 rounded-lg flex items-center justify-center flex-shrink-0",children:e.jsx(n,{className:"w-5 h-5 text-primary"})}),e.jsxs("div",{className:"flex-1",children:[e.jsx("p",{className:"font-medium text-sm",children:'2. Select "Install app"'}),e.jsx("p",{className:"text-xs text-muted-foreground",children:'Or "Add to Home screen" option'})]})]}),e.jsxs("div",{className:"flex items-center gap-4 p-3 bg-muted/50 rounded-lg",children:[e.jsx("div",{className:"w-10 h-10 bg-green-500/10 rounded-lg flex items-center justify-center flex-shrink-0",children:e.jsx(l,{className:"w-5 h-5 text-green-500"})}),e.jsxs("div",{className:"flex-1",children:[e.jsx("p",{className:"font-medium text-sm",children:"3. Confirm Installation"}),e.jsx("p",{className:"text-xs text-muted-foreground",children:"The app will be added to your home screen"})]})]})]})]})})]}),e.jsx(s,{className:"bg-muted/30 border-none",children:e.jsxs(t,{className:"p-4",children:[e.jsx("p",{className:"text-sm font-medium mb-2",children:"💡 Pro Tips"}),e.jsxs("ul",{className:"text-xs text-muted-foreground space-y-1.5",children:[e.jsx("li",{children:"• The app works best when installed on your home screen"}),e.jsx("li",{children:"• Enable notifications to stay updated on important events"}),e.jsx("li",{children:"• You can still access the web version anytime"})]})]})})]})]})}export{W 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.