1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="654bddb5-d9f3-e7f0-7d9c-fc31fcd4ca09")}catch(e){}}(); 2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,974200,e=>{"use strict";var t=e.i(618145),r=e.i(597018),n=e.i(257384),i=e.i(271609);function a({...e}){return(0,t.jsx)(r.Root,{"data-slot":"dialog",...e})}function s({...e}){return(0,t.jsx)(r.Trigger,{"data-slot":"dialog-trigger",...e})}function o({...e}){return(0,t.jsx)(r.Portal,{"data-slot":"dialog-portal",...e})}function l({...e}){return(0,t.jsx)(r.Close,{"data-slot":"dialog-close",...e})}function c({className:e,...n}){return(0,t.jsx)(r.Overlay,{"data-slot":"dialog-overlay",className:(0,i.cn)("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...n})}function d({className:e,children:a,showCloseButton:s=!0,...l}){return(0,t.jsxs)(o,{"data-slot":"dialog-portal",children:[(0,t.jsx)(c,{}),(0,t.jsxs)(r.Content,{"data-slot":"dialog-content",className:(0,i.cn)("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",e),...l,children:[a,s&&(0,t.jsxs)(r.Close,{"data-slot":"dialog-close",className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[(0,t.jsx)(n.XIcon,{}),(0,t.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}function u({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"dialog-header",className:(0,i.cn)("flex flex-col gap-2 text-center sm:text-left",e),...r})}function m({className:e,...r}){return(0,t.jsx)("div",{"data-slot":"dialog-footer",className:(0,i.cn)("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...r})}function h({className:e,...n}){return(0,t.jsx)(r.Title,{"data-slot":"dialog-title",className:(0,i.cn)("text-lg leading-tight font-semibold",e),...n})}function f({className:e,...n}){return(0,t.jsx)(r.Description,{"data-slot":"dialog-description",className:(0,i.cn)("text-muted-foreground text-sm",e),...n})}e.s(["Dialog",()=>a,"DialogClose",()=>l,"DialogContent",()=>d,"DialogDescription",()=>f,"DialogFooter",()=>m,"DialogHeader",()=>u,"DialogTitle",()=>h,"DialogTrigger",()=>s])},165790,e=>{"use strict";let t=(0,e.i(688094).default)("lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);e.s(["Lock",()=>t],165790)},966663,e=>{"use strict";var t=e.i(314927),r=(0,t.createServerReference)("601b388ba01180e531a843784c8b671ba02db528f4",t.callServer,void 0,t.findSourceMapURL,"startPrimaryPackCheckout");e.s(["startPrimaryPackCheckout",()=>r])},733472,e=>{"use strict";let t="ddhq-early-bird-seen-session",r="ddhq-terms-accepted-at";function n(){try{sessionStorage.setItem(t,"1")}catch{}}function i(){try{sessionStorage.setItem(r,String(Date.now()))}catch{}}function a(){try{let e=Number(sessionStorage.getItem(r)??0);if(!e)return 0;return Math.max(0,e+6e4-Date.now())}catch{return 0}}e.s(["EARLY_BIRD_SEEN_KEY",0,t,"markTermsFlowCompleted",()=>i,"suppressEarlyBirdThisSession",()=>n,"termsGraceRemainingMs",()=>a])},717140,e=>{"use strict";var t=e.i(174914),r=e.i(806746),n=e.i(966663);function i(){let[e,i]=(0,t.useState)(!1);return{start:async function(e){i(!0);try{let t=window.location.pathname+window.location.search,i=window.location.pathname.startsWith("/pricing")?"/":t,a=await (0,n.startPrimaryPackCheckout)(i,e);if("url"in a){window.location.href=a.url;return}r.toast.error(a.error)}catch{r.toast.error("Couldn't start checkout. Please try again.")}finally{i(!1)}},loading:e}}e.s(["useStartCheckout",()=>i])},639652,427666,497388,e=>{"use strict";var t=e.i(618145),r=e.i(621065),n=e.i(528203),i=e.i(953139),a=e.i(784695);let s={decision_view:{title:"Unlock Decision View",description:"Build your own election night command center. A fully customizable live dashboard with widgets for results, vote drops, polls, markets, and maps arranged the way you want.\n\nGet this feature and the entire Votes Pro Election Pack for just $4.99 through the 2026 midterms with no long-term commitment. Best viewed on a desktop.",cta:"Unlock",media:{type:"image",src:"/locks/decision-view.png",width:1200,height:720},heroTitle:"Decision View"},vote_history:{title:"Unlock Vote History",description:"Track how the count moved over time â every reporting update, county by county, from first results to final call.\n\nGet this feature and the entire Votes Pro Election Pack for just $4.99 through the 2026 midterms with no long-term commitment.",cta:"Unlock",media:{type:"image",src:"/locks/vote-history.png",width:1200,height:720},heroTitle:"Vote Drop History"},historical_vault:{title:"Unlock the Vault",description:"Two decades of certified election results from all 50 states â every race, fully searchable, filterable, and ready to export.\n\nGet this feature and the entire Votes Pro Election Pack for just $4.99 through the 2026 midterms with no long-term commitment.",cta:"Unlock",media:{type:"image",src:"/locks/vault.png",width:2e3,height:1242}
2,heroTitle:"The Vault",features:[{heading:"300,000+ elections in one archive",body:"From the presidency down to city council, every certified result since 2000 lives in a single searchable index."},{heading:"Filter and compare in seconds",body:"Slice by year, state, office, and party to surface exactly the races you need â then line them up side by side."},{heading:"Export the raw numbers",body:"Download any result set as a clean CSV, ready to drop into your model, story, or spreadsheet."}]},prediction_markets:{title:"Unlock Prediction Markets",description:"Live and historical odds from Kalshi and Polymarket â every contract, every race, in one place.\n\nGet this feature and the entire Votes Pro Election Pack for just $4.99 through the 2026 midterms with no long-term commitment.",cta:"Unlock",media:{type:"image",src:"/locks/markets.png",width:1999,height:1242},heroTitle:"Prediction Markets",features:[{heading:"Real-time market odds",body:"Track Kalshi and Polymarket prices as they move, side by side with our own projections."},{heading:"Full price history",body:"Replay how the market shifted over the life of every contract, down to the tick."},{heading:"Compare across races",body:"Line up markets by office, state, and year to see where the money is moving."}]},precinct_map:{title:"Unlock the 2020 & 2022 Precinct Maps",description:"The 2024 precinct map is free for everyone â get Votes Pro to flip back to 2020 and 2022 and see how every precinct shifted.\n\nGet this feature and the entire Votes Pro Election Pack for just $4.99 through the 2026 midterms with no long-term commitment.",cta:"Unlock",media:{type:"image",src:"/locks/precinct-map.png",width:1999,height:1242},heroTitle:"Historical Precinct Maps",features:[{heading:"Precinct-level results",body:"Zoom from the national map to a single precinct for President, Senate, House, and Governor races."},{heading:"Compare across years",body:"Flip between 2020, 2022, and 2024 to see how each precinct shifted."},{heading:"County, district & state views",body:"Roll results up by county, congressional district, or state without leaving the map."}]},breakdown_table:{title:"Unlock the Breakdown",description:"See the full vote-method breakdown â absentee, early, and election-day totals for every candidate.\n\nGet this feature and the entire Votes Pro Election Pack for just $4.99 through the 2026 midterms with no long-term commitment.",cta:"Unlock",media:{type:"image",src:"/locks/breakdown.png",width:1200,height:720}},county_columns:{title:"Unlock County Data",description:"See every county-level column â reporting status, registration, demographics, and modeled vote targets.\n\nGet this feature and the entire Votes Pro Election Pack for just $4.99 through the 2026 midterms with no long-term commitment.",cta:"Unlock"},individual_polls:{title:"Unlock every poll",description:"See all individual polls behind the average â pollster, sample size, dates, and full results.\n\nGet this feature and the entire Votes Pro Election Pack for just $4.99 through the 2026 midterms with no long-term commitment.",cta:"Unlock",media:{type:"image",src:"/locks/individual-polls.png",width:1200,height:720}},early_voting:{title:"Unlock Early Voting",description:"Track absentee and early-vote turnout â ballots requested, returned, and cast early, by party and county.\n\nGet this feature and the entire Votes Pro Election Pack for just $4.99 through the 2026 midterms with no long-term commitment.",cta:"Unlock",media:{type:"image",src:"/locks/early-voting.png",width:1200,height:720},heroTitle:"Early Voting"},downloads:{title:"Unlock Exports",description:"Download any race as a clean CSV â county-level results ready for your model, story, or spreadsheet.\n\nGet this feature and the entire Votes Pro Election Pack for just $4.99 through the 2026 midterms with no long-term commitment.",cta:"Unlock"},demographic_polls:{title:"Unlock Demographic Averages",description:"Go beyond the topline â polling averages broken out by party, gender, race, and more.\n\nGet this feature and the entire Votes Pro Election Pack for just $4.99 through the 2026 midterms with no long-term commitment.",cta:"Unlock"},race_notifications:{title:"Unlock More Notifications",description:"Free accounts can follow up to 5 races with notifications.\n\nGet unlimited notifications with your $4.99 Votes Pro Election Pack subscription. Covers you through the 2026 midterms with no long-term commitment.",cta:"Unlock"},watchlist_races:{title:"Unlock Bigger Watchlists",description:"Free accounts can watch up to 5 races per list. Get a pack to track up to 100 races in every watchlist.",cta:"Unlock"},dma_results:{title:"Unlock Media Market Results",description:"See results grouped by Media Market â the TV market boundaries media buyers and broadcasters actually plan against.",cta:"Unlock"}}
2,o={title:"Upgrade to Pro",description:"This feature is part of DDHQ Votes Pro.\n\nGet this feature and the entire Votes Pro Election Pack for just $4.99 through the 2026 midterms with no long-term commitment.",cta:"Unlock"};function l(e){let t=s[e]??o;return{feature:e,...t}}e.s(["getLockContent",()=>l],427666);var c=e.i(191561),d=e.i(271609),u=e.i(717140),m=e.i(312263),h=e.i(637207),f=e.i(619084),x=e.i(174914),p=e.i(683705);let g=(0,x.createContext)(null);function y({feature:e,children:r}){return(0,t.jsx)(g.Provider,{value:e,children:r})}function b(e,t){let r=(0,x.useContext)(g);return void 0!==e&&r===e?"page":t}let k=new Set;function v({feature:e,source:t,lockType:r,locked:n,isLoading:i,surface:a}){let s=(0,x.useRef)(!1),o=(0,p.useSurface)(),l=(0,x.useContext)(g);(0,x.useEffect)(()=>{if(i||!n||s.current||l===e)return;let c=a??o,d=`${e}:${t}:${c}`;k.has(d)||(s.current=!0,k.add(d),(0,f.track)("pro_wall_impression",{source:t,feature:e,lock_type:r,surface:c}))},[i,n,t,e,r,a,o,l])}e.s(["LockImpressionScope",()=>y,"useLockImpression",()=>v,"useScopedLockType",()=>b],497388);let j="Premium feature",w="flex items-center justify-center text-center px-6 py-3 sm:py-3.5 rounded text-base sm:text-lg font-bold border border-[#ffbf00] text-[#ffbf00] hover:bg-[#ffbf00]/10 transition-colors";function N({label:e="Unlock",disabled:r=!1,className:n,feature:i,source:a="feature_paywall",surface:s,lockType:o,originSource:l}){let{start:x,loading:g}=(0,u.useStartCheckout)(),y=(0,p.useSurface)(),b=s??y,{data:k}=(0,m.usePackOffer)(),v=null!=k&&null!==k.yourCents&&(0,t.jsxs)(t.Fragment,{children:[" for ",(0,t.jsx)(h.DiscountedPrice,{baseCents:k?.discounted?k.baseCents??null:null,yourCents:k?.yourCents??null,currency:k?.currency})]});return(0,t.jsx)("button",{type:"button",onClick:()=>{let e=o??(0,c.lockOriginForSource)(a);return(0,f.track)("pro_upgrade_cta_clicked",{source:a,feature:i,lock_type:e,starts_checkout:!0,surface:b},{instant:!0}),x({lockType:e,feature:i,source:l??a})},disabled:r||g,className:(0,d.cn)("flex items-center justify-center text-center px-6 py-3 sm:py-3.5 rounded-sm text-base sm:text-lg font-bold bg-[#ffbf00] text-black hover:bg-[#ffbf00]/90 transition-colors disabled:opacity-60 disabled:pointer-events-none",n),children:g?"Redirectingâ¦":(0,t.jsxs)("span",{children:[e,v]})})}function C(){return(0,t.jsx)("div",{className:"flex-1 bg-background"})}function P({className:e}={}){return(0,t.jsxs)("svg",{viewBox:"0 0 37 37",fill:"none","aria-hidden":!0,className:(0,d.cn)("size-16",e),children:[(0,t.jsx)("circle",{opacity:"0.1",cx:"18.3026",cy:"18.3026",r:"18.3026",transform:"matrix(0.707103 -0.707111 0.707103 0.707111 -7.58112 18.3027)",fill:"#FFCC00"}),(0,t.jsx)("circle",{cx:"1.42847",cy:"1.42847",r:"1.42847",transform:"matrix(0.707103 -0.707111 0.707103 0.707111 6.45581 18.6832)",fill:"#FF5E00"}),(0,t.jsx)("circle",{opacity:"0.6",cx:"1.42847",cy:"1.42847",r:"1.42847",transform:"matrix(0.707103 -0.707111 0.707103 0.707111 9.82269 22.0498)",fill:"#FF5E00"}),(0,t.jsx)("circle",{opacity:"0.3",cx:"1.42847",cy:"1.42847",r:"1.42847",transform:"matrix(0.707103 -0.707111 0.707103 0.707111 13.1897 25.4174)",fill:"#FFA012"}),(0,t.jsx)("circle",{opacity:"0.3",cx:"1.42847",cy:"1.42847",r:"1.42847",transform:"matrix(0.707103 -0.707111 0.707103 0.707111 16.5565 28.7839)",fill:"#FFA012"}),(0,t.jsx)("circle",{opacity:"0.4",cx:"1.42847",cy:"1.42847",r:"1.42847",transform:"matrix(0.707103 -0.707111 0.707103 0.707111 9.82269 15.3167)",fill:"#FF5E00"}),(0,t.jsx)("circle",{cx:"1.42847",cy:"1.42847",r:"1.42847",transform:"matrix(0.707103 -0.707111 0.707103 0.707111 19.9234 25.4174)",fill:"#FFA012"}),(0,t.jsx)("circle",{opacity:"0.4",cx:"1.42847",cy:"1.42847",r:"1.42847",transform:"matrix(0.707103 -0.707111 0.707103 0.707111 13.1897 11.9491)",fill:"#FF5E00"}),(0,t.jsx)("circle",{opacity:"0.6",cx:"1.42847",cy:"1.42847",r:"1.42847",transform:"matrix(0.707103 -0.707111 0.707103 0.707111 23.2904 22.0498)",fill:"#FFA012"}),(0,t.jsx)("circle",{opacity:"0.3",cx:"1.42847",cy:"1.42847",r:"1.42847",transform:"matrix(0.707103 -0.707111 0.707103 0.707111 16.5565 8.5824)",fill:"#FF5E00"}),(0,t.jsx)("circle",{opacity:"0.7",cx:"1.42847",cy:"1.42847",r:"1.42847",transform:"matrix(0.707103 -0.707111 0.707103 0.707111 19.9234 11.9491)",fill:"#FF5E00"}),(0,t.jsx)("circle",{cx:"1.42847",cy:"1.42847",r:"1.42847",transform:"matrix(0.707103 -0.707111 0.707103 0.707111 23.2904 15.3167)",fill:"#FFCC00"}),(0,t.jsx)("circle",{cx:"1.42847",cy:"1.42847",r:"1.42847",transform:"matrix(0.707103 -0.707111 0.707103 0.707111 26.6573 18.6832)",fill:"#FFA012"}),(0,t.jsx)("rect",{x:"15.2017",y:"17.2627",width:"6.78771",height:"4.52514",rx:"0.646449",stroke:"#FFCC00",strokeWidth:"1.2929",strokeLinecap:"round",strokeLinejoin:"round"}),(0,t.jsx)("path",{d:"M17.141 17.2626V15.4849C17.141 14.6816 17.7922 14.0304 18.5955 14.0304C19.3988 14.0304 20.05 14.6816 20.05 15.4849V17.2626",stroke:"#FFCC00",strokeWidth:"1.2929",strokeLinecap:"round",strokeLinejoin:"round"})]})}
2function _({eyebrow:e=j,title:r,description:n,action:i,className:a,badgeClassName:s}){return(0,t.jsxs)("div",{className:(0,d.cn)("flex max-w-2xl flex-col items-center gap-5 text-center",a),children:[(0,t.jsx)(P,{className:s}),(0,t.jsxs)("div",{className:"flex flex-col items-center gap-2",children:[(0,t.jsx)("span",{className:"text-muted-foreground text-xs font-semibold tracking-[0.15em] uppercase",children:e}),(0,t.jsx)("h2",{className:"text-lg leading-tight font-semibold text-foreground",children:r})]}),n&&(0,t.jsx)("p",{className:"text-sm leading-relaxed whitespace-pre-line text-muted-foreground",children:n}),i&&(0,t.jsx)("div",{className:"mt-2 flex flex-wrap justify-center gap-3",children:i})]})}function L({feature:e,action:r,className:n}){let i=l(e);return(0,t.jsxs)("div",{className:(0,d.cn)("bg-background/80 relative flex items-center justify-center overflow-hidden px-6 py-8 backdrop-blur-sm",n),children:[(0,t.jsx)("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0",style:{maskImage:"linear-gradient(to bottom, black 0%, transparent 55%)",WebkitMaskImage:"linear-gradient(to bottom, black 0%, transparent 55%)"},children:(0,t.jsx)(a.DotMatrix,{})}),(0,t.jsx)(_,{eyebrow:i.eyebrow,title:i.heroTitle??i.title,description:i.description,action:r,className:"relative"})]})}function T({content:e}){return(0,t.jsxs)("div",{className:"flex flex-col items-center md:items-start gap-2 md:gap-3 text-center md:text-left",children:[(0,t.jsxs)("div",{className:"flex flex-col items-center md:items-start gap-1",children:[(0,t.jsx)("span",{className:"hidden md:block text-xs font-semibold uppercase tracking-[0.15em] text-muted-foreground",children:e.eyebrow??j}),(0,t.jsx)("h2",{className:"text-3xl md:text-4xl font-bold leading-tight text-foreground",children:e.heroTitle??e.title})]}),(0,t.jsx)("p",{className:"text-md md:text-xl leading-relaxed whitespace-pre-line text-muted-foreground",children:e.description})]})}function S({content:e,className:r}){let n=e.features??[];return 0===n.length?null:(0,t.jsx)("div",{className:(0,d.cn)("flex flex-col gap-4",r),children:n.map(e=>(0,t.jsxs)("div",{children:[(0,t.jsx)("h3",{className:"text-sm md:text-md font-semibold text-foreground",children:e.heading}),(0,t.jsx)("p",{className:"mt-1 text-xs md:text-sm leading-relaxed text-muted-foreground",children:e.body})]},e.heading))})}function E({disabled:e,feature:n,returnHref:i="/",returnLabel:a="Return home"}){let s=b(n,"wall");return(0,t.jsxs)("div",{className:"flex gap-3",children:[(0,t.jsx)(N,{disabled:e,className:"flex-1",feature:n,source:"feature_paywall",lockType:s}),(0,t.jsx)(r.default,{href:i,className:(0,d.cn)(w,"flex-1"),children:a})]})}function F({content:e,className:r,imageClassName:i}){return e.media&&"image"===e.media.type?(0,t.jsx)("div",{className:(0,d.cn)("overflow-hidden rounded-xl border border-white/10",r),children:(0,t.jsx)(n.default,{src:e.media.src,alt:"",width:e.media.width??1200,height:e.media.height??720,className:(0,d.cn)("h-auto w-full",i),"aria-hidden":!0})}):null}function R({feature:e,returnHref:r,returnLabel:n}){let{isLoading:a}=(0,i.useCan)(e);v({feature:e,source:"feature_paywall",lockType:"wall",locked:!0,isLoading:a});let s=l(e),o=s.media?.type==="image";return(0,t.jsxs)("div",{className:"absolute inset-0 flex flex-col lg:block",children:[(0,t.jsx)("div",{className:"hidden lg:flex absolute inset-0 z-10 items-center bg-background/50 light:bg-background/25 backdrop-blur-sm",style:{backgroundImage:"radial-gradient(90% 90% at 100% 100%, color-mix(in srgb, var(--interaction) 18%, transparent) 0%, transparent 55%)"},children:(0,t.jsxs)("div",{className:"mx-auto flex w-full max-w-6xl items-center gap-10 px-10 lg:px-16",children:[(0,t.jsxs)("div",{className:(0,d.cn)("grid grid-cols-[auto_minmax(0,1fr)] items-start gap-x-4 gap-y-8",o?"min-w-0 max-w-xl":"mx-auto max-w-2xl"),children:[(0,t.jsx)("div",{className:"col-start-1 row-start-1",children:(0,t.jsx)(P,{})}),(0,t.jsx)("div",{className:"col-start-2 row-start-1 border-l-2 border-transparent pl-6",children:(0,t.jsx)(T,{content:s})}),(0,t.jsx)(S,{content:s,className:"col-start-2 row-start-2 border-l-2 border-[#ffbf00] pl-6"}),(0,t.jsx)("div",{className:"col-start-2 row-start-3 border-l-2 border-transparent pl-6",children:(0,t.jsx)(E,{disabled:a,feature:e,returnHref:r,returnLabel:n})})]}),o&&(0,t.jsx)(F,{content:s,className:"min-w-[22rem] flex-1 shadow-2xl",imageClassName:"max-h-[75vh] object-cover"})]})}),(0,t.jsxs)("div",{className:"flex lg:hidden relative z-10 min-h-0 flex-1 flex-col bg-background",children:[(0,t.jsx)("div",{className:"flex-1 overflow-y-auto px-6 pt-10 pb-6",children:(0,t.jsxs)("div",{className:"mx-auto flex w-full max-w-2xl flex-col items-center gap-8",children:[(0,t.jsxs)("div",{className:"flex flex-col items-center gap-4",children:[(0,t.jsx)(P,{}),(0,t.jsx)(T,{content:s})]}),(0,t.jsx)(S,{content:s,className:"w-full"}),(0,t.jsx)(F,{content:s,className:"w-full"})]})}),(0,t.jsx)("div",{className:"sticky bottom-[calc(72px+env(safe-area-inset-bottom))] md:bottom-0 border-t border-border bg-background/90 px-6 py-4 backdrop-blur-md",children:(0,t.jsx)(E,{disabled:a,feature:e,returnHref:r,returnLabel:n})})]})]})}e.s(["FeaturePaywall",()=>R,"PaywallBackdrop",()=>C,"PaywallBadge",()=>P,"PaywallHero",()=>_,"PaywallWall",()=>L,"SECONDARY_BTN",0,w,"UpgradeButton",()=>N],639652)},738492,e=>{"use strict";var t=e.i(618145),r=e.i(174914),n=e.i(953139),i=e.i(427666),a=e.i(271609),s=e.i(784695),o=e.i(621065),l=e.i(639652),c=e.i(933471);let d=[771242,288384];var u=e.i(690845),m=e.i(174713);function h(){let{data:e}=(0,c.useQuery)({queryKey:["race-viz","showcase",[...d]],staleTime:1/0,queryFn:async()=>{let e=await fetch("/api/race-viz",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({raceIds:[...d]})});if(!e.ok)throw Error("Failed to fetch showcase races");return e.json()}});return e&&0!==e.length?(0,t.jsxs)("div",{className:"flex w-full flex-col items-center gap-2",children:[(0,t.jsx)("span",{className:"text-muted-foreground text-xs",children:"Or try it free on one of our showcase races:"}),(0,t.jsx)("div",{className:"flex flex-wrap justify-center gap-2",children:e.map(e=>(0,t.jsx)(o.default,{href:`/races/${e.slug||e.id}`,className:"bg-background/60 hover:border-interaction rounded-md border px-2 py-1.5 text-sm no-underline transition-colors",children:(0,t.jsx)(u.default,{title:(0,m.getRaceTitle)(e,"main"),truncate:!1,className:"gap-2!"})},e.id))})]}):null}var f=e.i(497388);
2function x(){return(0,t.jsx)("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0",style:{maskImage:"linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 100%)",WebkitMaskImage:"linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 100%)"},children:(0,t.jsx)(s.DotMatrix,{})})}function p({feature:e,preview:s,locked:c,showcaseHint:d=!1,returnHref:u,returnLabel:m="Return to results",surface:p,className:g,children:y}){let{locked:b,isLoading:k}=(0,n.useCan)(e),v=c??b,j=(0,r.useRef)(null),w=(0,r.useRef)(null);if((0,r.useEffect)(()=>{let e=w.current;if(!v||!e)return;let t=null;for(let r=e.parentElement;r;r=r.parentElement){let{overflowY:e}=getComputedStyle(r);if("auto"===e||"scroll"===e){t=r;break}}let r=t;if(!r)return;let n=()=>{let t=e.getBoundingClientRect().top-r.getBoundingClientRect().top+r.scrollTop;e.style.minHeight=`${Math.max(0,r.clientHeight-t)}px`};return n(),window.addEventListener("resize",n),()=>{window.removeEventListener("resize",n),e.style.minHeight=""}},[v]),(0,f.useLockImpression)({feature:e,source:"section_lock",lockType:"section",locked:v,isLoading:void 0===c&&k,surface:p}),(0,r.useEffect)(()=>{let e=j.current;if(!v||!e||window.innerWidth<768)return;let t=[],r=null;for(let n=e.parentElement;n;n=n.parentElement){let{overflowY:e}=getComputedStyle(n);if("auto"===e||"scroll"===e){r||(r=n);let e=n,i=e.style.overflowY;e.style.overflowY="hidden",t.push(()=>{e.style.overflowY=i})}}let n=()=>{if(!r)return;r.scrollTop=0,e.style.width="",e.style.marginLeft="";let t=r.getBoundingClientRect(),n=e.getBoundingClientRect(),i=n.top-t.top;e.style.height=`${Math.max(0,r.clientHeight-i)}px`,e.style.maxHeight="none",e.style.width=`${r.clientWidth}px`,e.style.marginLeft=`${t.left+r.clientLeft-n.left}px`},i=e.style.height,a=e.style.maxHeight,s=e.style.width,o=e.style.marginLeft;return t.push(()=>{e.style.height=i,e.style.maxHeight=a,e.style.width=s,e.style.marginLeft=o}),n(),window.addEventListener("resize",n),t.push(()=>{window.removeEventListener("resize",n)}),()=>{t.forEach(e=>{e()})}},[v]),!v)return(0,t.jsx)(t.Fragment,{children:y});let N=(0,i.getLockContent)(e),C=s??y,P=r=>(0,t.jsx)(l.PaywallHero,{badgeClassName:r,eyebrow:N.eyebrow,title:N.heroTitle??N.title,description:N.description,action:(0,t.jsxs)("div",{className:"flex flex-col items-center gap-4",children:[(0,t.jsxs)("div",{className:"flex w-full max-w-[34rem] flex-wrap items-stretch justify-center gap-3",children:[(0,t.jsx)(l.UpgradeButton,{disabled:k,className:"min-w-[13rem] flex-1",feature:e,source:"section_lock"}),u&&(0,t.jsx)(o.default,{href:u,className:(0,a.cn)(l.SECONDARY_BTN,"min-w-[13rem] flex-1"),children:m})]}),d&&(0,t.jsx)(h,{})]})});return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{ref:w,className:(0,a.cn)("relative flex min-h-[55vh] flex-col items-center justify-center overflow-hidden bg-background px-6 pt-12 pb-[calc(88px+env(safe-area-inset-bottom))] md:hidden",g),children:[(0,t.jsx)(x,{}),(0,t.jsx)("div",{className:"relative",children:P("[@media(max-height:800px)]:hidden")})]}),(0,t.jsxs)("div",{ref:j,className:(0,a.cn)("relative hidden overflow-hidden md:grid",g),children:[(0,t.jsx)("div",{"aria-hidden":!0,className:"pointer-events-none col-start-1 row-start-1 max-h-[85vh] overflow-hidden select-none opacity-50 blur-[6px]",children:C}),(0,t.jsxs)("div",{className:"relative col-start-1 row-start-1 flex items-center justify-center bg-background/80 px-6 py-10 backdrop-blur-sm",style:{backgroundImage:"radial-gradient(60% 60% at 50% 50%, color-mix(in srgb, var(--interaction) 10%, transparent) 0%, transparent 70%)"},children:[(0,t.jsx)(x,{}),(0,t.jsx)("div",{className:"relative",children:P()})]})]})]})}e.s(["SectionLock",()=>p],738492)},862053,e=>{"use strict";var t=e.i(618145),r=e.i(174914),n=e.i(257384),i=e.i(974200),a=e.i(784695),s=e.i(427666),o=e.i(191561),l=e.i(639652),c=e.i(619084),d=e.i(683705);let u=(0,r.createContext)({openLock:()=>{}});function m(){return(0,r.useContext)(u)}let h="linear-gradient(to bottom, black 0%, transparent 50%)";function f({children:e}){let[m,f]=(0,r.useState)(null),x=(0,d.useSurface)(),p=(0,r.useCallback)((e,t="lock_unknown",r)=>{let n=r??(0,o.lockOriginForSource)(t);(0,c.track)("pro_upgrade_cta_clicked",{source:t,feature:e,lock_type:n,starts_checkout:!1,surface:x}),f({feature:e,source:t,lockType:n})},[x]),g=m?.feature??null,y=g?(0,s.getLockContent)(g):null;return(0,t.jsxs)(u.Provider,{value:{openLock:p},children:[e,(0,t.jsx)(i.Dialog,{open:null!==g,onOpenChange:e=>{e||f(null)},children:(0,t.jsx)(i.DialogContent,{showCloseButton:!1,className:"border block w-[calc(100vw-2rem)] overflow-hidden bg-background p-0 sm:w-[30rem] sm:max-w-[30rem]",children:y&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{"aria-hidden":!0,
2className:"pointer-events-none absolute inset-0",style:{maskImage:h,WebkitMaskImage:h},children:(0,t.jsx)(a.DotMatrix,{})}),(0,t.jsxs)(i.DialogClose,{className:"bg-interaction/15 text-interaction hover:bg-interaction/25 absolute top-4 right-4 z-10 flex size-9 items-center justify-center rounded-md transition-colors focus:outline-none",children:[(0,t.jsx)(n.XIcon,{className:"size-5"}),(0,t.jsx)("span",{className:"sr-only",children:"Close"})]}),(0,t.jsxs)("div",{className:"relative flex flex-col items-center px-8 pt-16 pb-12",children:[(0,t.jsx)(i.DialogTitle,{className:"sr-only",children:y.title}),(0,t.jsx)(l.PaywallHero,{eyebrow:y.eyebrow,title:y.heroTitle??y.title,description:y.description,action:(0,t.jsx)(l.UpgradeButton,{label:y.cta,className:"min-w-[16rem]",feature:g??void 0,source:"lock_dialog",lockType:m?.lockType,originSource:m?.source})})]})]})})})]})}e.s(["LockDialogProvider",()=>f,"useLockDialog",()=>m])},148866,e=>{"use strict";var t=e.i(618145),r=e.i(803321),n=e.i(191561),i=e.i(271609),a=e.i(862053),s=e.i(717140),o=e.i(619084),l=e.i(683705);function c({feature:e,label:c,source:d="unlock_button",lockType:u,mode:m="dialog",disabled:h=!1,size:f,variant:x,className:p}){let{openLock:g}=(0,a.useLockDialog)(),y=(0,l.useSurface)(),{start:b,loading:k}=(0,s.useStartCheckout)(),v="checkout"===m;return(0,t.jsx)(r.Button,{size:f,variant:x,disabled:h||v&&k,onClick:()=>{if(!v)return g(e,d,u);let t=u??(0,n.lockOriginForSource)(d);return(0,o.track)("pro_upgrade_cta_clicked",{source:d,feature:e,lock_type:t,starts_checkout:!0,surface:y},{instant:!0}),b({lockType:t,feature:e,source:d})},className:(0,i.cn)(p),children:v&&k?"Redirectingâ¦":c})}e.s(["UnlockButton",()=>c])},6622,151769,e=>{"use strict";var t=e.i(618145),r=e.i(953139),n=e.i(427666),i=e.i(271609),a=e.i(165790),s=e.i(528203);function o({media:e,className:r}){return e?"video"===e.type?(0,t.jsx)("video",{className:(0,i.cn)("w-full h-auto rounded-md",r),src:e.src,poster:e.poster,muted:!0,loop:!0,autoPlay:!0,playsInline:!0}):(0,t.jsx)(s.default,{className:(0,i.cn)("w-full h-auto rounded-md",r),src:e.src,alt:"",width:e.width??1200,height:e.height??720,"aria-hidden":!0}):null}var l=e.i(148866);function c({content:e,size:r="md",mode:n="dialog",ctaDisabled:s=!1,showMedia:c=!1,showIcon:d=!0,showDescription:u=!0,lockType:m,className:h}){let f="sm"===r;return(0,t.jsxs)("div",{className:(0,i.cn)("rounded-lg border bg-card/95 shadow-lg backdrop-blur-sm text-center flex flex-col items-center",f?"w-72 max-w-full gap-2 p-4":"w-80 max-w-full gap-3 p-6","lg"===r&&"sm:w-[32rem]",h),children:[d&&(0,t.jsx)("div",{className:"flex h-10 w-10 items-center justify-center rounded-full bg-interaction/10",children:(0,t.jsx)(a.Lock,{className:"h-5 w-5 text-interaction"})}),c&&e.media&&(0,t.jsx)(o,{media:e.media,className:"my-1 border"}),(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:(0,i.cn)("font-semibold",f?"text-sm":"text-lg"),children:e.title}),u&&(0,t.jsx)("div",{className:(0,i.cn)("text-muted-foreground mt-1",f?"text-xs":"text-sm"),children:e.description})]}),(0,t.jsx)(l.UnlockButton,{feature:e.feature,label:e.cta,source:"lock_card",lockType:m,mode:n,size:f?"sm":"default",disabled:s})]})}e.s(["LockCard",()=>c],151769);var d=e.i(497388);function u({feature:e,locked:a,preview:s,wall:o,className:l,children:u}){let{locked:m,isLoading:h}=(0,r.useCan)(e),f=a??m;if((0,d.useLockImpression)({feature:e,source:"page_lock",lockType:"page",locked:f,isLoading:void 0===a&&h}),!f)return(0,t.jsx)(t.Fragment,{children:u});let x=(0,n.getLockContent)(e),p=s??u;return void 0===a&&h?(0,t.jsx)("div",{className:(0,i.cn)("relative flex min-h-0 flex-1 flex-col",l),children:(0,t.jsx)("div",{"aria-hidden":!0,className:"pointer-events-none flex min-h-0 flex-1 flex-col select-none blur-sm",children:p})}):(0,t.jsxs)("div",{className:(0,i.cn)("relative flex min-h-0 flex-1 flex-col",l),children:[(0,t.jsx)("div",{"aria-hidden":!0,className:"pointer-events-none flex min-h-0 flex-1 flex-col select-none blur-sm",children:p}),o?(0,t.jsx)("div",{className:"absolute inset-0 z-40",children:(0,t.jsx)(d.LockImpressionScope,{feature:e,children:o})}):(0,t.jsx)("div",{className:"absolute inset-0 z-40 flex items-center justify-center bg-background/60 p-6",children:(0,t.jsx)(c,{content:x,size:"lg",mode:"checkout",lockType:"page",showMedia:!0,ctaDisabled:h})})]})}e.s(["PageLock",()=>u],6622)},764330,e=>{"use strict";var t=e.i(618145),r=e.i(174914),n=e.i(953139),i=e.i(427666),a=e.i(271609),s=e.i(148866),o=e.i(497388);function l({feature:e,preview:l,className:c,children:d}){let{locked:u,isLoading:m}=(0,n.useCan)(e);(0,o.useLockImpression)({feature:e,source:"component_lock",lockType:"component",locked:u,isLoading:m});let h=(0,r.useRef)(null),[f,x]=(0,r.useState)(null);if((0,r.useEffect)(()=>{let e=h.current;if(!u||!e)return;let t=()=>{let t=e.querySelector("tbody");if(!t)return void x(null);let r=e.getBoundingClientRect(),n=t.getBoundingClientRect();x({top:n.top-r.top,height:n.height})};t();let r=new ResizeObserver(t);return r.observe(e),()=>{r.disconnect()}},[u]),!u)return(0,t.jsx)(t.Fragment,{children:d});let p=(0,i.getLockContent)(e),g=l??d;return(0,t.jsxs)("div",{ref:h,className:(0,a.cn)("relative overflow-hidden",c),children:[(0,t.jsx)("div",{"aria-hidden":!0,
2className:"pointer-events-none [&_tbody]:select-none [&_tbody]:opacity-60 [&_tbody]:blur-sm",children:g}),(0,t.jsx)("div",{className:"absolute inset-x-0 flex items-center justify-center p-3",style:f?{top:f.top,height:f.height}:{top:0,bottom:0},children:(0,t.jsx)(s.UnlockButton,{feature:e,label:p.title,source:"component_lock",disabled:m,className:"bg-amber-400 font-semibold text-black shadow-md hover:bg-amber-500"})})]})}e.s(["ComponentLock",()=>l])},58392,e=>{"use strict";var t=e.i(618145),r=e.i(174914),n=e.i(165790),i=e.i(147102),a=e.i(953139),s=e.i(427666),o=e.i(608012),l=e.i(271609),c=e.i(862053),d=e.i(497388);function u({feature:e,children:r}){let{openLock:i}=(0,c.useLockDialog)(),a=(0,s.getLockContent)(e);return(0,t.jsxs)(o.Tooltip,{children:[(0,t.jsx)(o.TooltipTrigger,{asChild:!0,children:(0,t.jsxs)("button",{type:"button",onClick:t=>{t.stopPropagation(),i(e,"column_lock_cell")},"aria-label":a.title,className:"group relative block w-full cursor-pointer text-left",children:[(0,t.jsx)("span",{"aria-hidden":!0,className:"pointer-events-none absolute -inset-2 bg-interaction/10 transition-colors group-hover:bg-interaction/25"}),(0,t.jsx)("span",{className:"relative inline-block align-middle",children:(0,t.jsx)("span",{"aria-hidden":!0,className:"pointer-events-none block select-none opacity-70 blur-[3px]",children:r})}),(0,t.jsx)("span",{className:"pointer-events-none absolute inset-0 flex items-center justify-center opacity-0 transition-opacity group-hover:opacity-100",children:(0,t.jsx)(n.Lock,{className:"text-interaction h-4 w-4 drop-shadow-[0_0_2px_rgba(0,0,0,0.7)]",strokeWidth:2.75})})]})}),(0,t.jsxs)(o.TooltipContent,{children:[(0,t.jsx)("span",{className:"font-medium",children:a.title})," â ",a.cta]})]})}function m({label:e,feature:r}){let{openLock:i}=(0,c.useLockDialog)(),a=(0,s.getLockContent)(r);return(0,t.jsxs)(o.Tooltip,{children:[(0,t.jsx)(o.TooltipTrigger,{asChild:!0,children:(0,t.jsxs)("button",{type:"button",onClick:()=>i(r,"column_lock_header"),className:"inline-flex items-center gap-1 text-muted-foreground transition-colors hover:text-foreground",children:[e,(0,t.jsx)(n.Lock,{className:"h-3 w-3"})]})}),(0,t.jsxs)(o.TooltipContent,{children:[(0,t.jsx)("span",{className:"font-medium",children:a.title})," â ",a.cta]})]})}function h(e){let{locked:n,isLoading:s}=(0,a.useCan)(e);(0,d.useLockImpression)({feature:e,source:"column_lock",lockType:"column",locked:n,isLoading:s});let o=(0,r.useCallback)((r,a={})=>
2{if(!n)return r;let s=r.header,o="string"==typeof s?s:r.id??"";return{...r,header:()=>(0,t.jsx)(m,{label:o,feature:e}),cell:n=>{if(a.unlockRow?.(n)){let e=r.cell;return e?(0,i.flexRender)(e,n):n.getValue()}let s=a.lockedCell?a.lockedCell(n):"â¢â¢â¢â¢";return(0,t.jsx)(u,{feature:e,children:s})},enableSorting:!1}},[n,e]);return{locked:n,lockColumn:o}}function f({className:e}){return(0,t.jsx)(n.Lock,{className:(0,l.cn)("inline h-3 w-3 text-muted-foreground",e)})}e.s(["ColumnLockBadge",()=>f,"useColumnLock",()=>h])},338856,e=>{"use strict";var t=e.i(618145),r=e.i(174914),n=e.i(953139),i=e.i(427666),a=e.i(271609),s=e.i(639652),o=e.i(497388);function l({feature:e,unlockedCount:l,totalCount:c,className:d}){let{locked:u,isLoading:m}=(0,n.useCan)(e);(0,o.useLockImpression)({feature:e,source:"row_lock",lockType:"row",locked:u,isLoading:m});let h=(0,r.useRef)(null),[f,x]=(0,r.useState)(null);if((0,r.useEffect)(()=>{if(!u)return;let e=()=>{let e=h.current?.parentElement;if(!e)return;let t=e.querySelectorAll("tbody tr");t.length<=l?x(null):x(t[l].getBoundingClientRect().top-e.getBoundingClientRect().top)};e();let t=h.current?.parentElement,r=new ResizeObserver(e);return t&&r.observe(t),()=>{r.disconnect()}},[u,l,c]),!u||c<=l)return null;let p=(0,i.getLockContent)(e);return(0,t.jsx)("div",{ref:h,className:(0,a.cn)("pointer-events-none absolute inset-0 z-10",d),children:null!==f&&(0,t.jsx)("div",{style:{top:f},className:"pointer-events-auto absolute inset-x-0 bottom-0 overflow-hidden",children:(0,t.jsx)(s.PaywallWall,{feature:e,className:"h-full",action:(0,t.jsx)(s.UpgradeButton,{label:p.cta,disabled:m,feature:e,source:"row_lock"})})})})}function c(e,{locked:t,unlockedCount:r}){return t?{rows:e.slice(0,r),lockedCount:Math.max(0,e.length-r)}:{rows:e,lockedCount:0}}function d(e){return(0,n.useCan)(e)}e.s(["LockedRowsOverlay",()=>l,"lockRows",()=>c,"useRowLock",()=>d])},865802,e=>{"use strict";var t=e.i(618145),r=e.i(174914),n=e.i(528203),i=e.i(766336),a=e.i(412482),s=e.i(917298),o=e.i(806746),l=e.i(314927),c=(0,l.createServerReference)("00574ab02b413c02361c14dc60fb36c1d85405afb1",l.callServer,void 0,l.findSourceMapURL,"confirmPackCheckout");async function d(){for(let e=0;e<3;e++){e>0&&await new Promise(t=>{setTimeout(t,1500*e)});try{let{active:e}=await c();if(e)return!0}catch{}}return!1}function u(){let e=(0,i.useSearchParams)(),l=(0,i.usePathname)(),c=(0,i.useRouter)(),u=(0,s.useQueryClient)(),{isLoaded:m,isSignedIn:h}=(0,a.useUser)(),[f,x]=(0,r.useState)(!1),p=(0,r.useRef)(!1);return((0,r.useEffect)(()=>{if(m&&"success"===e.get("checkout")&&!p.current){if(p.current=!0,!h){let t=`${l}?${e.toString()}`;c.replace(`/sign-in?redirect_url=${encodeURIComponent(t)}`);return}(async()=>{if(!await d())return o.toast.error("We couldn't confirm your payment yet â check Billing in a moment.");await u.cancelQueries({queryKey:["entitlements","plan"]});let t=u.getQueryData(["entitlements","plan"]);u.setQueryData(["entitlements","plan"],{plan:"pro",accountType:"pro",hillInsider:t?.hillInsider??!1}
2),u.invalidateQueries(),c.refresh();let r=new URLSearchParams(e);r.delete("checkout"),window.history.replaceState(null,"",r.size>0?`${l}?${r}`:l),x(!0)})()}},[m,h,e,l,c,u]),f)?(0,t.jsxs)("div",{role:"dialog","aria-modal":"true","aria-label":"Welcome to Votes Pro",className:"fixed inset-0 z-[100] flex items-center justify-center overflow-y-auto p-4 backdrop-blur-[8px] animate-in fade-in duration-300",children:[(0,t.jsx)("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0 bg-background/70"}),(0,t.jsx)("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0",style:{backgroundImage:"linear-gradient(6deg, rgba(255,95,95,0.18) 15%, rgba(25,90,255,0) 68%), linear-gradient(89deg, rgba(164,180,255,0.12) 1%, rgba(255,186,197,0.12) 100%)"}}),(0,t.jsx)("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0",style:{background:"linear-gradient(to top, color-mix(in oklab, var(--interaction) 20%, transparent) 0%, color-mix(in oklab, var(--interaction) 6%, transparent) 30%, transparent 60%)"}}),(0,t.jsxs)("div",{className:"relative flex w-full max-w-[35.75rem] flex-col gap-8 rounded-lg border border-stroke-L1 bg-bg-L2 p-8 text-center sm:gap-10 sm:p-[42px] animate-in fade-in zoom-in-95 slide-in-from-bottom-2 duration-300",children:[(0,t.jsxs)("div",{className:"flex flex-col items-center gap-8 sm:gap-10",children:[(0,t.jsx)(n.default,{src:"/DDHQ-Votes-icon.svg",alt:"",width:87,height:87}),(0,t.jsxs)("div",{className:"flex flex-col items-center gap-1.5",children:[(0,t.jsx)("span",{className:"text-xs font-bold tracking-[0.8px] text-text-color-L2 uppercase",children:"welcome to"}),(0,t.jsx)("h2",{className:"text-5xl font-light text-foreground sm:text-[64px] sm:leading-none",children:"Votes Pro"})]})]}),(0,t.jsx)("p",{className:"text-2xl text-text-color-L1",children:"Your pack is now active ð"}),(0,t.jsx)("p",{className:"text-lg leading-[26px] font-medium text-text-color-L2",children:"Premium races, historical data, and exports are unlocked through the end of the pack period"}),(0,t.jsx)("div",{className:"flex flex-col gap-4",children:(0,t.jsx)("button",{type:"button",className:"flex w-full items-center justify-center rounded-[4px] bg-interaction px-6 py-3.5 text-lg font-bold text-black transition-colors hover:bg-interaction/90",onClick:()=>x(!1),children:"Return to the app"})})]})]}):null}e.s(["PackSuccessModal",()=>u],865802)},831288,e=>{"use strict";var t=e.i(618145),r=e.i(953139),n=e.i(271609);function i({className:e,children:i}){let{isPro:a,isLoading:s}=(0,r.useEntitlements)();return s||!a?null:e?(0,t.jsx)("div",{className:(0,n.cn)(e),children:i}):(0,t.jsx)(t.Fragment,{children:i})}e.s(["ProOnly",()=>i])},380407,e=>{"use strict";var t=e.i(618145),r=e.i(174914),n=e.i(766336),i=e.i(412482),a=e.i(728152),s=e.i(974200),o=e.i(784695),l=e.i(953139),c=e.i(880587),d=e.i(639652),u=e.i(637207),m=e.i(312263),h=e.i(619084),f=e.i(733472),x=e.i(683705);let p=f.EARLY_BIRD_SEEN_KEY,g=/^\/(?:pricing|onboarding|sign-in|sign-up|billing)/u;function y(){let{isPro:e,isLoading:y}=(0,l.useEntitlements)(),b=(0,x.useSurface)(),{isLoaded:k,isSignedIn:v}=(0,i.useUser)(),{isOrgMember:j,isLoaded:w}=(0,c.useIsOrgMember)(),{data:N}=(0,m.usePackOffer)(),C=(0,n.usePathname)(),P=(0,n.useRouter)(),[_,L]=(0,r.useState)(!1),T=!!N?.discounted&&!e&&!!v&&w&&!j,S=g.test(C??"");if((0,r.useEffect)(()=>{let e;if(!k||y||!T||S)return;let t=()=>{try{if(sessionStorage.getItem(p))return;if(document.body.dataset.termsGateOpen){e=setTimeout(t,5e3);return}let r=(0,f.termsGraceRemainingMs)();if(r>0){e=setTimeout(t,r);return}sessionStorage.setItem(p,"1"),L(!0)}catch{}};return t(),()=>{e&&clearTimeout(e)}},[k,y,T,S]),!_)return null;let E=N?.currency??"usd",F=N?.yourCents??null,R=N?.baseCents??null,D=(0,t.jsx)(u.DiscountedPrice,{baseCents:R,yourCents:F,currency:E});return(0,t.jsx)(s.Dialog,{open:!0,onOpenChange:e=>{e||L(!1)},children:(0,t.jsxs)(s.DialogContent,{showCloseButton:!1,className:"block w-[calc(100vw-2rem)] overflow-hidden bg-background p-0 sm:w-[30rem] sm:max-w-[30rem]",children:[(0,t.jsx)("button",{type:"button",onClick:()=>L(!1),"aria-label":"Close",className:"bg-interaction/10 text-interaction hover:bg-interaction/20 absolute top-3 right-3 z-10 flex size-7 items-center justify-center rounded-md transition-colors",children:(0,t.jsx)(a.X,{className:"size-4"})}),(0,t.jsx)(s.DialogHeader,{className:"sr-only",children:(0,t.jsx)(s.DialogTitle,{children:"Lock in early-bird pricing"})}),(0,t.jsxs)("div",{className:"relative flex items-center justify-center overflow-hidden px-6 py-12",children:[(0,t.jsx)("div",{"aria-hidden":!0,
2className:"pointer-events-none absolute inset-0",style:{maskImage:"linear-gradient(to bottom, black 0%, transparent 50%)",WebkitMaskImage:"linear-gradient(to bottom, black 0%, transparent 50%)"},children:(0,t.jsx)(o.DotMatrix,{})}),(0,t.jsx)(d.PaywallHero,{className:"relative",eyebrow:"Early-bird offer",title:(0,t.jsxs)(t.Fragment,{children:["Get Votes Pro for ",D]}),description:"You signed up early â lock in founding-member pricing before it's gone. Just $4.99 one-time purchase with no long-term commitment.",action:(0,t.jsxs)("div",{className:"flex w-full flex-col gap-2.5",children:[(0,t.jsxs)("button",{type:"button",onClick:()=>{(0,h.track)("pro_upgrade_cta_clicked",{source:"early_bird_modal",starts_checkout:!1,surface:b},{instant:!0}),L(!1),P.push("/pricing")},className:"bg-interaction hover:bg-interaction/90 flex w-full items-center justify-center gap-1.5 rounded px-6 py-3 text-base font-bold text-black transition-colors",children:["Get Pro â ",D]}),(0,t.jsx)("button",{type:"button",onClick:()=>((0,h.track)("pro_upgrade_declined",{source:"early_bird_modal",surface:b}),L(!1)),className:"text-text-color-L2 hover:text-foreground w-full rounded px-6 py-2 text-sm font-medium transition-colors",children:"Maybe later"})]})})]})]})})}e.s(["EarlyBirdModal",()=>y,"default",0,y])}]); 3 4//# debugId=654bddb5-d9f3-e7f0-7d9c-fc31fcd4ca09
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.