1import{r as v,j as e}from"./react-vendor-BRrUKPtI.js";import{L as A}from"./Layout-DPQV6DoK.js";import{H as S,P as w,C,a as P,F as k,b as q}from"./FeaturePageComponents-BFVVpAKy.js";import{e as T,u as L,b as F}from"./shared-contexts-BuVV7eiS.js";import{i as H}from"./breadcrumbs-tV8HAnYq.js";import{D as W}from"./AdUnit-CRTFfobu.js";const h={ATL:{name:"Atlanta Hartsfield-Jackson",avgSavings:18},DFW:{name:"Dallas/Fort Worth",avgSavings:14},DEN:{name:"Denver",avgSavings:13},ORD:{name:"Chicago O'Hare",avgSavings:16},LAX:{name:"Los Angeles",avgSavings:15},JFK:{name:"New York JFK",avgSavings:22},SFO:{name:"San Francisco",avgSavings:17},SEA:{name:"Seattle-Tacoma",avgSavings:14},LAS:{name:"Las Vegas",avgSavings:12},MCO:{name:"Orlando",avgSavings:16},MIA:{name:"Miami",avgSavings:18},CLT:{name:"Charlotte",avgSavings:13},PHX:{name:"Phoenix",avgSavings:11},IAH:{name:"Houston George Bush",avgSavings:14},BOS:{name:"Boston Logan",avgSavings:15},MSP:{name:"Minneapolis-St. Paul",avgSavings:12},DTW:{name:"Detroit",avgSavings:13},FLL:{name:"Fort Lauderdale",avgSavings:14},EWR:{name:"Newark",avgSavings:20},LGA:{name:"New York LaGuardia",avgSavings:16},PHL:{name:"Philadelphia",avgSavings:14},BWI:{name:"Baltimore/Washington",avgSavings:12},SLC:{name:"Salt Lake City",avgSavings:11},DCA:{name:"Washington Reagan",avgSavings:15},IAD:{name:"Washington Dulles",avgSavings:14},MDW:{name:"Chicago Midway",avgSavings:13},SAN:{name:"San Diego",avgSavings:12},TPA:{name:"Tampa",avgSavings:11},PDX:{name:"Portland",avgSavings:10},HNL:{name:"Honolulu",avgSavings:14}},u=78,I=5;function D({isPremium:n,defaultAirports:s=[]}){const{openUpsellModal:m}=T(),[i,x]=v.useState(12),[d,b]=v.useState(s.length>0?s.slice(0,3):["ATL"]),y=v.useMemo(()=>Object.entries(h).map(([a,t])=>({code:a,name:t.name,savings:t.avgSavings})).sort((a,t)=>a.name.localeCompare(t.name)),[]),r=v.useMemo(()=>{if(!n)return null;const a=d.length>0?d.reduce((j,N)=>j+(h[N]?.avgSavings||15),0)/d.length:15,t=a*i,c=t/60,p=c*I,g=p>0?u/p:0;let o;return g<10?o="highly-recommended":g<20?o="recommended":g<40?o="consider":o="not-worth-it",{avgSavingsPerFlight:Math.round(a),minutesSavedPerYear:Math.round(t),hoursSavedPerYear:c.toFixed(1),totalHoursSaved:p.toFixed(1),costPerHour:g.toFixed(2),recommendation:o}},[n,i,d]),f=a=>{b(t=>t.includes(a)?t.filter(c=>c!==a):t.length>=3?[...t.slice(1),a]:[...t,a])},l={"highly-recommended":{bg:"bg-[#22c55e]/10",border:"border-[#22c55e]/30",text:"text-[#22c55e]",label:"Highly Recommended",icon:"fa-check-circle"},recommended:{bg:"bg-[#3b82f6]/10",border:"border-[#3b82f6]/30",text:"text-[#3b82f6]",label:"Recommended",icon:"fa-thumbs-up"},consider:{bg:"bg-amber-500/10",border:"border-amber-500/30",text:"text-amber-500",label:"Worth Considering",icon:"fa-balance-scale"},"not-worth-it":{bg:"bg-[var(--board-border)]",border:"border-[var(--board-border)]",text:"text-[var(--board-text-dim)]",label:"May Not Be Worth It",icon:"fa-times-circle"}};return e.jsxs("div",{className:"bg-[var(--board-surface)] rounded-2xl shadow-lg border border-[var(--board-border)] overflow-hidden",children:[e.jsxs("div",{className:"bg-gradient-to-r from-indigo-600 to-purple-600 px-6 py-4",children:[e.jsxs("h3",{className:"text-xl font-bold text-white flex items-center gap-2",children:[e.jsx("i",{className:"fas fa-calculator"}),"PreCheck ROI Calculator"]}),e.jsx("p",{className:"text-indigo-100 text-sm mt-1",children:"Is TSA PreCheck worth $78 for you?"})]}),e.jsxs("div",{className:"p-4 sm:p-6",children:[e.jsxs("div",{className:"grid lg:grid-cols-2 gap-4 sm:gap-6",children:[e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-semibold text-[var(--text-primary)] mb-2",children:"How many flights do you take per year?"}),e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx("input",{type:"range",min:"1",max:"50",value:i,onChange:a=>x(parseInt(a.target.value)),className:"flex-1 h-2 bg-[var(--board-border)] rounded-lg appearance-none cursor-pointer accent-indigo-600"}),e.jsx("span",{className:"text-lg font-bold text-indigo-400 w-12 text-right",children:i})]}),e.jsxs("div",{className:"flex justify-between text-xs text-[var(--board-text-muted)] mt-1",children:[e.jsx("span",{children:"1"}),e.jsx("span",{children:"25"}),e.jsx("span",{children:"50+"})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-semibold text-[var(--text-primary)] mb-2",children:"Your primary airports (select up to 3)"}
1),n?e.jsx("div",{className:"grid grid-cols-3 sm:grid-cols-5 gap-1.5 sm:gap-2 max-h-48 overflow-y-auto p-1",children:y.map(({code:a,name:t,savings:c})=>e.jsx("button",{type:"button",onClick:()=>f(a),className:`px-2 py-2 sm:py-1.5 rounded text-xs font-medium transition-all min-h-[44px] ${d.includes(a)?"bg-indigo-600 text-white":"bg-[var(--board-border)] text-[var(--board-text-dim)] hover:bg-[var(--board-border)]"}`,title:`${t} - avg ${c} min saved`,children:a},a))}):e.jsxs("div",{className:"bg-[var(--board-surface)] rounded-lg p-4 text-center",children:[e.jsx("i",{className:"fas fa-lock text-[var(--board-text-muted)] mb-2 text-xl"}),e.jsx("p",{className:"text-sm text-[var(--board-text-dim)]",children:"Airport selection available for Premium users"}),e.jsx("button",{onClick:()=>m(),className:"text-sm text-indigo-400 hover:underline",children:"Upgrade to Premium"})]})]})]}),e.jsx("div",{children:n&&r?e.jsxs("div",{className:"space-y-4",children:[e.jsx("div",{className:`rounded-lg p-4 border-2 ${l[r.recommendation].bg} ${l[r.recommendation].border}`,children:e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("i",{className:`fas ${l[r.recommendation].icon} text-2xl ${l[r.recommendation].text}`}),e.jsxs("div",{children:[e.jsx("div",{className:`font-bold ${l[r.recommendation].text}`,children:l[r.recommendation].label}),e.jsx("div",{className:"text-sm text-[var(--board-text-dim)]",children:"Based on your travel patterns"})]})]})}),e.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[e.jsxs("div",{className:"bg-[var(--board-surface)] rounded-lg p-3 text-center",children:[e.jsx("div",{className:"text-2xl font-bold text-indigo-400",children:r.totalHoursSaved}),e.jsx("div",{className:"text-xs text-[var(--board-text-dim)]",children:"Hours saved (5 years)"})]}),e.jsxs("div",{className:"bg-[var(--board-surface)] rounded-lg p-3 text-center",children:[e.jsxs("div",{className:"text-2xl font-bold text-[#22c55e]",children:["$",r.costPerHour]}),e.jsx("div",{className:"text-xs text-[var(--board-text-dim)]",children:"Cost per hour saved"})]})]}),e.jsxs("div",{className:"text-sm text-[var(--board-text-dim)] space-y-1",children:[e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{children:"Avg savings per flight:"}),e.jsxs("span",{className:"font-medium text-[var(--text-primary)]",children:[r.avgSavingsPerFlight," min"]})]}),e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{children:"Annual time saved:"}),e.jsxs("span",{className:"font-medium text-[var(--text-primary)]",children:[r.hoursSavedPerYear," hours"]})]}),e.jsxs("div",{className:"flex justify-between",children:[e.jsx("span",{children:"5-year cost:"}),e.jsxs("span",{className:"font-medium text-[var(--text-primary)]",children:["$",u]})]})]})]}):e.jsxs("div",{className:"bg-gradient-to-br from-indigo-900/30 to-purple-900/30 rounded-lg p-6 h-full flex flex-col items-center justify-center text-center",children:[e.jsx("i",{className:"fas fa-lock text-indigo-400/50 text-4xl mb-4"}),e.jsx("h4",{className:"font-bold text-[var(--text-primary)] mb-2",children:"Unlock Personalized Analysis"}),e.jsx("p",{className:"text-sm text-[var(--board-text-dim)] mb-4",children:"Get precise ROI calculations using historical data from your actual airports"}),e.jsxs("button",{onClick:()=>m(),className:"inline-flex items-center px-4 py-2 bg-indigo-600 text-white font-semibold rounded-lg hover:bg-indigo-700 transition",children:[e.jsx("i",{className:"fas fa-crown mr-2"}),"Upgrade to Premium"]})]})})]}),!n&&e.jsxs("div",{className:"mt-6 pt-6 border-t border-[var(--board-border)]",children:[e.jsx("h4",{className:"font-semibold text-[var(--text-primary)] mb-3",children:"Basic Estimate (Free)"}),e.jsxs("div",{className:"bg-[var(--board-surface)] rounded-lg p-4",children:[e.jsxs("p",{className:"text-sm text-[var(--board-text-dim)] mb-2",children:["With ",e.jsxs("strong",{className:"text-[var(--text-primary)]",children:[i," flights/year"]})," and average savings of 15 min per flight:"]}),e.jsxs("div",{className:"grid grid-cols-2 sm:grid-cols-3 gap-3 sm:gap-4 text-center",children:[e.jsxs("div",{children:[e.jsxs("div",{className:"text-lg sm:text-xl font-bold text-indigo-400",children:[Math.round(i*15/60*5)," hrs"]}),e.jsx("div",{className:"text-xs text-[var(--board-text-dim)]",children:"Total saved (5 yrs)"})]}),e.jsxs("div",{children:[e.jsxs("div",{className:"text-lg sm:text-xl font-bold text-[#22c55e]",children:["$",(78/(i*15/60*5)).toFixed(2)]}),e.jsx("div",{className:"text-xs text-[var(--board-text-dim)]",children:"Per hour saved"})]}),e.jsxs("div",{className:"col-span-2 sm:col-span-1",children:[e.jsx("div",{className:"text-lg sm:text-xl font-bold text-[var(--board-text-dim)]",children:i>=6?"Yes":"Maybe"}),e.jsx("div",{className:"text-xs text-[var(--board-text-dim)]",children:"Worth it?"})]})]})]})]}),e.jsxs("p",{className:"text-xs text-[var(--board-text-muted)] mt-4",children:[e.jsx("i",{className:"fas fa-info-circle mr-1"}),"TSA PreCheck costs $78 for 5 years. Savings estimates based on historical data from top 30 US airports."]})]})]})}function B({isEnhanced:n=!1}){const{t:s}=L(),{isPremium:m}=F(),i=H(s("tsaAnalytics.breadcrumb.title"),"/features/tsa-analytics");return e.jsxs(A,{breadcrumbs:i,metadata:{title:s("tsaAnalytics.meta.title"),description:s("tsaAnalytics.meta.description"),canonical:"https://flightqueue.com/features/tsa-analytics"},children:[e.jsx(S,{title:s("tsaAnalytics.hero.title"),subtitle:s("tsaAnalytics.hero.subtitle"),description:s("tsaAnalytics.hero.description"),isPaidFeature:!0}),e.jsx("section",{className:"py-10 md:py-16 bg-[var(--surface-secondary)]",children:e.jsxs("div",{className:"max-w-4xl mx-auto px-4 text-center",children:[e.jsx("h2",{className:"text-2xl sm:text-3xl md:text-4xl font-bold text-[var(--text-primary)] mb-4 md:mb-6 leading-tight",children:s("tsaAnalytics.keyQuestion.heading")}),e.jsxs("div",{className:"bg-[var(--surface-primary)] rounded-2xl shadow-xl p-5 sm:p-8 md:p-12 border border-[var(--border-primary)]",children:[e.jsx("p",{className:"text-xl sm:text-2xl md:text-3xl font-semibold text-indigo-400 mb-4 md:mb-6",children:s("tsaAnalytics.keyQuestion.question")}),e.jsx("p",{className:"text-base sm:text-lg text-[var(--text-secondary)] mb-6 md:mb-8",children:s("tsaAnalytics.keyQuestion.answer")}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4 sm:gap-6",children:[e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"text-3xl sm:text-4xl font-bold text-green-500 mb-2",children:s("tsaAnalytics.keyQuestion.examples.bestTime.value")}),e.jsx("div",{className:"text-xs sm:text-sm text-[var(--text-tertiary)]",children:s("tsaAnalytics.keyQuestion.examples.bestTime.label")}),e.jsx("div",{className:"text-xs text-green-500 font-medium",children:s("tsaAnalytics.keyQuestion.examples.bestTime.detail")})]}),e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"text-3xl sm:text-4xl font-bold text-red-500 mb-2",children:s("tsaAnalytics.keyQuestion.examples.worstTime.value")}),e.jsx("div",{className:"text-xs sm:text-sm text-[var(--text-tertiary)]",children:s("tsaAnalytics.keyQuestion.examples.worstTime.label")}),e.jsx("div",{className:"text-xs text-red-500 font-medium",children:s("tsaAnalytics.keyQuestion.examples.worstTime.detail")})]}),e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"text-3xl sm:text-4xl font-bold text-blue-500 mb-2",children:s("tsaAnalytics.keyQuestion.examples.timeSaved.value")}),e.jsx("div",{className:"text-xs sm:text-sm text-[var(--text-tertiary)]",children:s("tsaAnalytics.keyQuestion.examples.timeSaved.label")}),e.jsx("div",{className:"text-xs text-blue-500 font-medium",children:s("tsaAnalytics.keyQuestion.examples.timeSaved.detail")})]})]})]})]})}),e.jsx("section",{className:"py-10 md:py-16 bg-[var(--surface-primary)]",children:e.jsxs("div",{className:"max-w-6xl mx-auto px-4",children:[e.jsx("h2",{className:"text-2xl sm:text-3xl font-bold text-center text-[var(--text-primary)] mb-3 md:mb-4 leading-tight",children:s("tsaAnalytics.dataSources.title")}),e.jsx("p",{className:"text-sm sm:text-base text-center text-[var(--text-secondary)] mb-8 md:mb-12 max-w-2xl mx-auto",children:s("tsaAnalytics.dataSources.description")}),e.jsxs("div",{className:"grid sm:grid-cols-2 md:grid-cols-3 gap-3 sm:gap-4 md:gap-8",children:[e.jsxs("div",{className:"bg-[var(--surface-secondary)] rounded-xl p-4 sm:p-6 border border-green-900",children:[e.jsx("div",{className:"flex items-center gap-3 mb-4",children:e.jsxs("span",{className:"flex items-center gap-2 bg-green-600 text-white px-3 py-1 rounded-full text-sm font-bold",children:[e.jsx("span",{className:"h-2 w-2 bg-white rounded-full animate-pulse"}),s("tsaAnalytics.dataSources.realTime.badge")]})}),e.jsx("h3",{className:"text-xl font-bold text-[var(--text-primary)] mb-2",children:s("tsaAnalytics.dataSources.realTime.title")}),e.jsx("p",{className:"text-[var(--text-secondary)] mb-4",children:s("tsaAnalytics.dataSources.realTime.description")}),e.jsxs("div",{className:"text-sm text-[var(--text-tertiary)]",children:[e.jsx("strong",{children:s("tsaAnalytics.dataSources.realTime.airportsLabel")})," ",s("tsaAnalytics.dataSources.realTime.airports")]}),e.jsx("div",{className:"mt-4 text-green-500 font-semibold",children:s("tsaAnalytics.dataSources.realTime.confidence")})]}),e.jsxs("div",{className:"bg-[var(--surface-secondary)] rounded-xl p-4 sm:p-6 border border-blue-900",children:[e.jsx("div",{className:"flex items-center gap-3 mb-4",children:e.jsx("span",{className:"bg-blue-600 text-white px-3 py-1 rounded-full text-sm font-bold",children:s("tsaAnalytics.dataSources.historical.badge")})}),e.jsx("h3",{className:"text-xl font-bold text-[var(--text-primary)] mb-2",children:s("tsaAnalytics.dataSources.historical.title")}),e.jsx("p",{className:"text-[var(--text-secondary)] mb-4",children:s("tsaAnalytics.dataSources.historical.description")}),e.jsxs("div",{className:"text-sm text-[var(--text-tertiary)]",children:[e.jsx("strong",{children:s("tsaAnalytics.dataSources.historical.airportsLabel")})," ",s("tsaAnalytics.dataSources.historical.airports")]}),e.jsx("div",{className:"mt-4 text-blue-500 font-semibold",children:s("tsaAnalytics.dataSources.historical.confidence")})]}),e.jsxs("div",{className:"bg-[var(--surface-secondary)] rounded-xl p-4 sm:p-6 border border-amber-900",children:[e.jsx("div",{className:"flex items-center gap-3 mb-4",children:e.jsx("span",{className:"bg-amber-600 text-white px-3 py-1 rounded-full text-sm font-bold",children:s("tsaAnalytics.dataSources.predictions.badge")})}),e.jsx("h3",{className:"text-xl font-bold text-[var(--text-primary)] mb-2",children:s("tsaAnalytics.dataSources.predictions.title")}),e.jsx("p",{className:"text-[var(--text-secondary)] mb-4",children:s("tsaAnalytics.dataSources.predictions.description")}),e.jsxs("div",{className:"text-sm text-[var(--text-tertiary)]",children:[e.jsx("strong",{children:s("tsaAnalytics.dataSources.predictions.airportsLabel")})," ",s("tsaAnalytics.dataSources.predictions.airports")]}),e.jsx("div",{className:"mt-4 text-amber-500 font-semibold",children:s("tsaAnalytics.dataSources.predictions.confidence")})]})]})]})}),e.jsx(w,{title:s("tsaAnalytics.pricingCta.title"),description:s("tsaAnalytics.pricingCta.description")}),e.jsx(C,{freeFeatures:[s("tsaAnalytics.comparison.free.feature1"),s("tsaAnalytics.comparison.free.feature2"),s("tsaAnalytics.comparison.free.feature3"),s("tsaAnalytics.comparison.free.feature4"),s("tsaAnalytics.comparison.free.feature5")],paidFeatures:[s("tsaAnalytics.comparison.premium.feature1"),s("tsaAnalytics.comparison.premium.feature2"),s("tsaAnalytics.comparison.premium.feature3"),s("tsaAnalytics.comparison.premium.feature4"),s("tsaAnalytics.comparison.premium.feature5"),s("tsaAnalytics.comparison.premium.feature6"),s("tsaAnalytics.comparison.premium.feature7"),s("tsaAnalytics.comparison.premium.feature8")]}),e.jsx("section",{className:"py-10 md:py-16 bg-[var(--surface-secondary)]",children:e.jsx("div",{className:"max-w-4xl mx-auto px-4",children:e.jsx(D,{isPremium:n||m})})}),e.jsx(P,{steps:[{title:s("tsaAnalytics.howItWorks.step1.title"),description:s("tsaAnalytics.howItWorks.step1.description"),icon:"ð¡"},{title:s("tsaAnalytics.howItWorks.step2.title"),description:s("tsaAnalytics.howItWorks.step2.description"),icon:"ð§ "},{title:s("tsaAnalytics.howItWorks.step3.title"),description:s("tsaAnalytics.howItWorks.step3.description"),icon:"â¨"}]}),e.jsx(W,{}),e.jsx("section",{className:"py-10 md:py-16 bg-[var(--surface-primary)]",children:e.jsxs("div",{className:"max-w-6xl mx-auto px-4",children:[e.jsx("h2",{className:"text-2xl sm:text-3xl font-bold text-center text-[var(--text-primary)] mb-3 md:mb-4 leading-tight",children:s("tsaAnalytics.airports.title")}),e.jsx("p",{className:"text-sm sm:text-base text-center text-[var(--text-secondary)] mb-8 md:mb-12 max-w-2xl mx-auto",children:s("tsaAnalytics.airports.description")}),e.jsx("div",{className:"grid grid-cols-3 sm:grid-cols-5 md:grid-cols-10 gap-2 sm:gap-3",children:["ATL","DFW","DEN","ORD","LAX","JFK","SFO","SEA","LAS","MCO","MIA","CLT","PHX","IAH","BOS","MSP","DTW","FLL","EWR","LGA","PHL","BWI","SLC","DCA","IAD","MDW","SAN","TPA","PDX","HNL"].map(x=>e.jsx("div",{className:"bg-[var(--border-primary)] rounded-lg py-2 px-3 text-center",children:e.jsx("span",{className:"text-sm font-bold text-[var(--text-secondary)]",children:x})},x))})]})}),e.jsx(k,{faqs:[{question:s("tsaAnalytics.faq.q1.question"),answer:s("tsaAnalytics.faq.q1.answer")},{question:s("tsaAnalytics.faq.q2.question"),answer:s("tsaAnalytics.faq.q2.answer")},{question:s("tsaAnalytics.faq.q3.question"),answer:s("tsaAnalytics.faq.q3.answer")},{question:s("tsaAnalytics.faq.q4.question"),answer:s("tsaAnalytics.faq.q4.answer")},{question:s("tsaAnalytics.faq.q5.question"),answer:s("tsaAnalytics.faq.q5.answer")}]}),e.jsx(q,{heading:s("tsaAnalytics.finalCta.heading"),subheading:s("tsaAnalytics.finalCta.subheading")})]})}export{B as TSAAnalyticsPage};
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.