1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1931],{1931:(e,t,r)=>{r.d(t,{Y:()=>m,y:()=>d});var n=r(5155),a=r(2115),i=r(2281),l=r(200),o=r(7331),s=r(5651);let c=(0,a.createContext)({open:()=>{},close:()=>{}});function d(){return(0,a.useContext)(c)}let u={profiles:[{id:"pro",name:"Researcher",badge:"uiw.badgePopular",featured:!0,desc:"uiw.planProDesc",cta:"Get Researcher",features:["uiw.featEveryTool","uiw.featOutlierVph","uiw.featAiChannel","uiw.feat1Niche","uiw.featAiTrial"]},{id:"max",name:"Creator",featured:!1,desc:"uiw.planMaxDesc",cta:"Get Creator",features:["uiw.featEverythingResearcher","uiw.featFullAiSuite","uiw.featScripts40","uiw.feat3Niche","uiw.featCreditsN","uiw.featPriority"]}],build:[{id:"builder",name:"Builder",badge:"uiw.badgeBuild",featured:!0,desc:"uiw.planBuilderDesc",cta:"Get Builder",features:["uiw.featEverythingCreator","uiw.featProvenDb","uiw.featRevenueScore","uiw.featAiReports","uiw.feat5Niche","uiw.featCreditsN","uiw.featPriority"]}]},p=[{quote:"uiw.rev1",name:"Jordan K.",meta:"Faceless \xb7 310K",hue:20},{quote:"uiw.rev2",name:"Priya S.",meta:"Finance \xb7 88K",hue:150},{quote:"uiw.rev3",name:"Marcus L.",meta:"Tech \xb7 1.2M",hue:255},{quote:"uiw.rev4",name:"Elena R.",meta:"Beauty \xb7 52K",hue:330},{quote:"uiw.rev5",name:"Danny T.",meta:"Gaming \xb7 640K",hue:95},{quote:"uiw.rev6",name:"Sofia M.",meta:"Food \xb7 210K",hue:45},{quote:"uiw.rev7",name:"Ravi P.",meta:"Travel \xb7 130K",hue:205},{quote:"uiw.rev8",name:"Chris B.",meta:"Fitness \xb7 470K",hue:285}],x={modalBg:"#1a1917",railBg:"#151412",cardBg:"#211f1d",cardBorder:"#322f2b",textHi:"#F4F2EE",textBody:"#C7C3BB",textMut:"#8C887F",amber:"#e0a53a"},f="linear-gradient(110deg,#0E5BB0,#1577D4 45%,#22e3a0)",h=e=>{let{size:t=16,color:r="var(--accent)"}=e;return(0,n.jsx)("svg",{viewBox:"0 0 20 20",width:t,height:t,"aria-hidden":!0,style:{flexShrink:0},children:(0,n.jsx)("path",{d:"M4 10.5l4 4 8-9",stroke:r,strokeWidth:"2.4",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"})})};function g(){let{t:e}=(0,l.s9)(),t=p.concat(p);return(0,n.jsx)("div",{className:"upg-marquee relative min-h-[90px] flex-1 overflow-hidden",style:{WebkitMaskImage:"linear-gradient(180deg, transparent 0, #000 7%, #000 90%, transparent 100%)",maskImage:"linear-gradient(180deg, transparent 0, #000 7%, #000 90%, transparent 100%)"},children:(0,n.jsx)("div",{className:"upg-marquee-track flex flex-col gap-2",children:t.map((t,r)=>(0,n.jsxs)("div",{style:{padding:"11px 12px",borderRadius:11,background:"rgba(255,255,255,0.03)",border:"1px solid ".concat(x.cardBorder)},children:[(0,n.jsx)("div",{style:{letterSpacing:"1px",color:x.amber,fontSize:10},children:"â
â
â
â
â
"}),(0,n.jsx)("p",{style:{margin:"5px 0 8px",fontSize:12,lineHeight:1.4,color:x.textBody},children:e(t.quote)}),(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsx)("span",{className:"h-[22px] w-[22px] shrink-0 rounded-full",style:{background:"linear-gradient(135deg, hsl(".concat(t.hue," 70% 58%), hsl(").concat((t.hue+55)%360," 65% 50%))")}}),(0,n.jsxs)("span",{style:{fontSize:11,color:x.textMut},children:[(0,n.jsx)("strong",{style:{color:"#d7d3cb",fontWeight:600},children:t.name})," \xb7 ",t.meta]})]})]},r))})})}function m(e){let{children:t}=e,{t:r,n:d}=(0,l.s9)(),[p,m]=(0,a.useState)(!1),[y,b]=(0,a.useState)(""),{avail:w,loaded:v}=(0,o.dK)(),[j,S]=(0,o._r)(w,v),[k,N]=(0,a.useState)(null),[B,T]=(0,a.useState)(""),[M,z]=(0,a.useState)("freemium"),[R,C]=(0,a.useState)("monthly"),[E,W]=(0,a.useState)("none"),P=(0,a.useRef)(null),F=(0,a.useCallback)(e=>{b(e||""),T(""),m(!0)},[]),L=(0,a.useCallback)(()=>m(!1),[]);(0,a.useEffect)(()=>{let e=new URLSearchParams(window.location.search).get("upgrade");e&&F("build"===e||"proven"===e?"proven":"")},[F]),(0,a.useEffect)(()=>{if(!p)return;let e=!0;return fetch("/api/access").then(e=>e.json()).then(t=>{if(!e)return;let r=(null==t?void 0:t.owner)||(null==t?void 0:t.build)?"builder":(null==t?void 0:t.tier)||((null==t?void 0:t.pro)?"pro":"freemium");z(["freemium","pro","max","builder"].includes(r)?r:"freemium"),C((null==t?void 0:t.period)==="yearly"?"yearly":"monthly"),W((null==t?void 0:t.kind)==="paid_once"||(null==t?void 0:t.kind)==="sub"?t.kind:"none")}).catch(()=>{}),()=>{e=!1}}
1,[p]);let H="proven"===y||"build"===y||"Build"===y?"build":"profiles",A="yearly"===j,D=(0,a.useCallback)(()=>{let e=P.current;if(!e)return;let t=e.querySelector("section"),r=e.style;if(window.matchMedia("(max-width: 767px)").matches){r.zoom="1",e.style.height="auto";return}r.zoom="1",e.style.height="auto";let n=e.offsetHeight;t&&(t.style.alignSelf="flex-start",n=t.offsetHeight,t.style.alignSelf=""),e.style.height=n+"px";let a=window.innerHeight-48;r.zoom=n>a?String(a/n):"1"},[]);async function _(e){N(e),T("");try{let t=await fetch("/api/billing/lemon/checkout",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({plan:e,period:j})}),n=await t.json();if(n.url){window.location.href=n.url;return}T(n.error||r("uiw.billingNotConfigured"))}catch(e){T(r("uiw.connectionError"))}finally{N(null)}}(0,a.useLayoutEffect)(()=>{if(!p)return;D();let e=requestAnimationFrame(D),t=window.innerWidth,r=()=>{window.innerWidth!==t&&(t=window.innerWidth,D())};return window.addEventListener("resize",r),()=>{cancelAnimationFrame(e),window.removeEventListener("resize",r)}},[p,H,j,M,D]),(0,a.useEffect)(()=>{if(!p)return;let e=document.body.style.overflow;document.body.style.overflow="hidden";let t=setTimeout(()=>{var e;return null==(e=P.current)?void 0:e.focus()},0),r=e=>{if("Escape"===e.key){e.preventDefault(),L();return}if("Tab"===e.key&&P.current){let t=P.current.querySelectorAll('button:not([disabled]), a[href], input, [tabindex]:not([tabindex="-1"])');if(!t.length)return;let r=t[0],n=t[t.length-1],a=document.activeElement;e.shiftKey&&(a===r||a===P.current)?(e.preventDefault(),n.focus()):e.shiftKey||a!==n||(e.preventDefault(),r.focus())}};return document.addEventListener("keydown",r),()=>{document.removeEventListener("keydown",r),document.body.style.overflow=e,clearTimeout(t)}},[p,L]);let q="freemium"===M?null:M,I=e=>(0,s.AI)(e,q,R,j,E),K=u[H].filter(e=>{let t=I(e.id);return"buy"===t||"switch_yearly"===t||"contact_support"===t});K.length||(K=u[H]);let Y=K,G=1===Y.length?Y[0]:null,O=G?G.name:r("uiw.yourPlan"),U=G?r(G.desc):r("uiw.pickPlan"),$=e=>A&&!w[e];return(0,n.jsxs)(c.Provider,{value:{open:F,close:L},children:[t,p&&(0,n.jsx)("div",{className:"fixed inset-0 z-[200] flex items-center justify-center p-4 sm:p-6",style:{background:"rgba(0,0,0,0.72)",backdropFilter:"blur(4px)"},onClick:L,children:(0,n.jsxs)("div",{ref:P,role:"dialog","aria-modal":"true","aria-labelledby":"upg-title",tabIndex:-1,className:"upg-modal relative flex max-h-[88dvh] w-full flex-col overflow-y-auto outline-none md:max-h-none md:flex-row md:overflow-hidden",style:{width:"min(1120px, 96vw)",borderRadius:24,background:x.modalBg,border:"1px solid ".concat(x.cardBorder),boxShadow:"0 40px 120px -30px rgba(0,0,0,0.9)",transformOrigin:"center center"},onClick:e=>e.stopPropagation(),children:[(0,n.jsxs)("aside",{className:"hidden shrink-0 flex-col md:flex",style:{flex:"0 0 300px",padding:"22px 24px 20px",background:x.railBg,borderRight:"1px solid ".concat(x.cardBorder)},children:[(0,n.jsx)(i.A,{size:30,textClass:"text-[22px]"}),(0,n.jsxs)("div",{style:{marginTop:18},children:[(0,n.jsxs)("div",{className:"font-sans",style:{fontWeight:600,fontSize:24,lineHeight:1.12,letterSpacing:"-0.01em",color:x.textHi},children:[r("uiw.railTagline1"),(0,n.jsx)("br",{}),r("uiw.railTagline2")]}),(0,n.jsxs)("div",{className:"flex items-center gap-[9px]",style:{marginTop:12},children:[(0,n.jsx)("span",{style:{letterSpacing:"2px",color:x.amber,fontSize:13},children:"â
â
â
â
â
"}),(0,n.jsxs)("span",{style:{fontSize:12,color:x.textMut},children:[(0,n.jsx)("strong",{style:{color:"#e7e3db",fontWeight:700},children:"4.8"})," \xb7 ",r("uiw.creatorsStat")]})]})]}),(0,n.jsx)("div",{style:{height:1,background:x.cardBorder,margin:"14px 0 10px"}}),(0,n.jsx)("div",{style:{fontSize:"10.5px",letterSpacing:"0.13em",fontWeight:600,color:x.textMut,marginBottom:9},children:r("uiw.whatCreatorsSay")}),(0,n.jsx)(g,{})]}),(0,n.jsxs)("section",{className:"flex min-w-0 flex-1 flex-col",style:{padding:"18px clamp(16px, 5vw, 32px) 16px"},children:[(0,n.jsx)("button",{onClick:L,"aria-label":r("uiw.close"),className:"absolute grid place-items-center transition",style:{to
1p:18,right:18,width:38,height:38,borderRadius:11,border:"1px solid ".concat(x.cardBorder),background:"#211f1d",color:x.textMut},onMouseEnter:e=>{e.currentTarget.style.background="#2c2a27",e.currentTarget.style.color=x.textHi},onMouseLeave:e=>{e.currentTarget.style.background="#211f1d",e.currentTarget.style.color=x.textMut},children:(0,n.jsx)("svg",{viewBox:"0 0 20 20",width:"17",height:"17",children:(0,n.jsx)("path",{d:"M5 5l10 10M15 5L5 15",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})})}),(0,n.jsxs)("div",{className:"flex flex-col items-center gap-[10px]",style:{marginBottom:16},children:[(0,n.jsxs)("div",{className:"text-center",children:[(0,n.jsx)("div",{style:{fontSize:"10.5px",letterSpacing:"0.16em",fontWeight:700,color:"var(--accent)",marginBottom:5},children:r("uiw.upgradeEyebrow")}),(0,n.jsxs)("h2",{id:"upg-title",className:"font-sans",style:{fontWeight:700,fontSize:27,letterSpacing:"-0.02em",color:x.textHi,margin:0},children:[r("uiw.unlock")," ",(0,n.jsx)("span",{style:{color:"var(--accent)"},children:O})]}),(0,n.jsx)("p",{style:{fontSize:"13.5px",color:x.textMut,margin:"6px auto 0",maxWidth:560,lineHeight:1.4},children:U})]}),(0,n.jsx)(o.Ay,{value:j,onChange:S})]}),(0,n.jsx)("div",{className:"grid gap-[18px] ".concat(1===Y.length?"":"sm:grid-cols-2"),style:{justifyItems:"center",flex:"0 0 auto"},children:Y.map(e=>{let t=e.featured||1===Y.length,a=(0,s.bS)(e.id,j),i=a.perMonth,l=a.strike?"".concat(a.strike,"/mo"):null,o=A?r("uiw.billedYearly",{total:a.total}):r("uiw.billedMonthly"),c=A&&!$(e.id)?"".concat(r("uiw.savePct",{pct:a.savePct})," \xb7 ").concat(r("uiw.monthsFree",{n:s.RP})):null;return(0,n.jsxs)("div",{className:"relative flex w-full flex-col",style:{maxWidth:500,borderRadius:18,padding:"16px 20px 14px",background:x.cardBg,border:"1px solid ".concat(x.cardBorder)},children:[t&&(0,n.jsx)("div",{className:"upg-glow pointer-events-none absolute",style:{inset:-1,borderRadius:18,border:"1.5px solid var(--accent)",boxShadow:"0 0 0 4px color-mix(in srgb, var(--accent) 10%, transparent), 0 24px 60px -24px color-mix(in srgb, var(--accent) 55%, transparent)"}}),e.badge&&(0,n.jsx)("div",{className:"absolute",style:{top:-12,left:28,padding:"5px 12px",borderRadius:999,whiteSpace:"nowrap",background:f,color:"#fff",fontSize:"10.5px",fontWeight:700,letterSpacing:"0.1em",boxShadow:"0 8px 20px -8px color-mix(in srgb, var(--accent) 90%, transparent)"},children:r(e.badge)}),(0,n.jsx)("div",{className:"font-sans",style:{fontWeight:600,fontSize:20,color:x.textHi},children:e.name}),(0,n.jsxs)("div",{className:"flex flex-wrap items-baseline gap-2",style:{marginTop:10},children:[(0,n.jsx)("span",{className:"font-sans",style:{fontWeight:700,fontSize:36,lineHeight:1,letterSpacing:"-0.03em",color:x.textHi},children:i}),(0,n.jsx)("span",{style:{fontSize:16,color:x.textMut},children:r("uiw.perMonth")}),c&&(0,n.jsx)("span",{className:"self-center",style:{whiteSpace:"nowrap",marginLeft:2,padding:"4px 10px",borderRadius:999,background:"rgba(63,191,138,0.2)",border:"1px solid rgba(63,191,138,0.45)",color:"#5fd3a0",fontSize:12,fontWeight:700},children:c})]}),(0,n.jsxs)("div",{className:"flex items-center gap-2",style:{marginTop:7,fontSize:13,minHeight:18},children:[l&&(0,n.jsx)("span",{style:{textDecoration:"line-through",color:"#6f6b62"},children:l}),(0,n.jsx)("span",{style:{color:x.textMut},children:o})]}),(0,n.jsx)("div",{style:{fontSize:14,color:x.textMut,marginTop:6,lineHeight:1.35},children:r(e.desc)}),(0,n.jsx)("div",{style:{height:1,background:x.cardBorder,margin:"12px 0"}}),(0,n.jsx)("div",{className:"flex flex-1 flex-col gap-[11px]",children:e.features.map(t=>(0,n.jsxs)("div",{className:"flex items-start gap-[11px]",children:[(0,n.jsx)("span",{style:{marginTop:1},children:(0,n.jsx)(h,{})}),(0,n.jsx)("span",{style:{fontSize:"13.5px",color:x.textBody,lineHeight:1.45},children:r(t,{n:d(s.$E[e.id])})})]},t))}),"contact_support"===I(e.id)?(0,n.jsxs)("div",{"data-contact-support":e.id,className:"w-full text-center",style:{marginTop:12,padding:12,borderRadius:12,fontSize:13.5,lineHeight:1.4,color:x.textMut,background:"#2a2825",border:"1px solid ".concat(x.cardBorder)},children:[r("acc.contactSupportYearly"),(0,n.jsx)("br",{}),(0,n.jsx)("a",{href:"mailto:".concat(s.Te,"?subject=").concat(encodeURIComponent("Upgrade yearly plan")),style:{color:"#7FD8FF",fontWeight:600,textDecoration:"underline",textUnderlineOffset:3},children:s.Te})]}):"current"===I(e.id)||"included"===I(e.id)?(0,n.jsx)("button",{disabled:!0,"data-locked":I(e.id),className:"w-full",style:{marginTop:12,padding:12,borderRadius:12,cursor:"default",fontWeight:600,fontSize:"14.5px",color:x.textMut,background:"#2a2825",border:"1px solid ".concat(x.cardBorder)},children:"current"===I(e.id)?r("acc.currentPlan"):r("acc.includedInPlan")}):$(e.id)?(0,n.jsx)("button",{disabled:!0,className:"w-full",style:{marginTop:12,padding:12,borderRadius:12,cursor:"not-allowed",fontWeight:600,fontSize:"14.5px",color:x.textMut,background:"#2a2825",border:"1px dashed ".concat(x.cardBorder)},children:r("mkt.training.comingSoon")}):t?(0,n.jsx)("button",{onClick:()=>_(e.id),disabled:!!k,className:"w-full transition",style:{marginTop:12,padding:12,border:"none",borderRadius:12,cursor:"pointer",fontWeight:700,fontSize:"14.5px",color:"#fff",background:f,boxShadow:"0 16px 36px -14px color-mix(in srgb, var(--accent) 85%, transparent)"},onMouseEnter:e=>{e.currentTarget.style.transform="translateY(-2px)"},onMouseLeave:e=>{e.currentTarget.style.transform="none"},children:k===e.id?r("uiw.redirecting"):"switch_yearly"===I(e.id)?r("acc.switchToYearly"):r("uiw.getPlan",{name:e.name})}):(0,n.jsx)("button",{onClick:()=>_(e.id),disabled:!!k,className:"w-full transition",style:{marginTop:12,padding:12,borderRadius:12,cursor:"pointer",fontWeight:600,fontSize:"14.5px",color:x.textHi,background:"#2a2825",border:"1px solid ".concat(x.cardBorder)},onMouseEnter:e=>{e.currentTarget.style.background="#332f2b"},onMouseLeave:e=>{e.currentTarget.style.background="#2a2825"},children:k===e.id?r("uiw.redirecting"):"switch_yearly"===I(e.id)?r("acc.switchToYearly"):r("uiw.getPlan",{name:e.name})})]},e.id)})}),A&&Y.some(e=>$(e.id))&&(0,n.jsx)("p",{className:"text-center",style:{marginTop:10,fontSize:12.5,color:x.textMut},children:r("uiw.yearlySoon")}),B&&(0,n.jsx)("p",{className:"text-center",style:{marginTop:10,fontSize:13,color:"#fb7185"},children:B}),(0,n.jsxs)("div",{className:"flex items-center justify-center gap-2 self
1-center",style:{marginTop:12,padding:"7px 14px",borderRadius:10,background:"rgba(45,190,135,0.1)",border:"1px solid rgba(45,190,135,0.3)",fontSize:"12.5px",color:"#cfd8d4"},children:[(0,n.jsx)("span",{style:{display:"inline-flex",color:"#4fd39f"},children:(0,n.jsx)(h,{size:15,color:"#4fd39f"})}),(0,n.jsxs)("span",{style:{whiteSpace:"nowrap"},children:[(0,n.jsx)("strong",{style:{color:"#eafaf3",fontWeight:600},children:r("uiw.freeTrial")})," ",r("uiw.trustRest")]})]})]})]})})]})}},2281:(e,t,r)=>{r.d(t,{A:()=>l,S:()=>i});var n=r(5155),a=r(6315);function i(e){let{withIo:t=!0,className:r=""}=e;return(0,n.jsxs)("span",{className:"whitespace-nowrap font-sans font-bold tracking-tight ".concat(r),children:[(0,n.jsx)("span",{className:"text-white",children:"go"}),(0,n.jsx)("span",{style:{color:"var(--accent)"},children:"vrl"}),t&&(0,n.jsx)("span",{className:"text-zinc-400 font-medium",children:".io"})]})}function l(e){let{size:t=30,textClass:r="text-lg",withIo:l=!0,className:o=""}=e;return(0,n.jsxs)("span",{className:"inline-flex items-center gap-2 ".concat(o),children:[(0,n.jsx)(a.A,{size:t}),(0,n.jsx)(i,{withIo:l,className:r})]})}},5651:(e,t,r)=>{r.d(t,{$E:()=>a,AI:()=>d,RP:()=>l,Te:()=>u,bR:()=>p,bS:()=>s,ep:()=>i});let n={pro:17,max:35,builder:79},a={pro:300,max:700,builder:1580},i=Math.round(25),l=Math.round(3);function o(e){let t=Math.round(100*e)/100;return Number.isInteger(t)?"$".concat(t):"$".concat(t.toFixed(2))}function s(e,t){let r=n[e];if("yearly"===t){let t=Math.floor(12*n[e]*.75);return{perMonth:o(t/12),strike:o(r),total:t,totalLabel:o(t),savePct:i}}return{perMonth:o(r),strike:null,total:r,totalLabel:o(r),savePct:0}}let c={pro:1,max:2,builder:3};function d(e,t,r,n){let a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"sub";return t?e!==t?c[e]<c[t]?"included":"paid_once"===a?"contact_support":"buy":"sub"===a&&"monthly"===r&&"yearly"===n?"switch_yearly":"current":"buy"}let u="[email protected]",p={pro:!1,max:!1,builder:!1}},6315:(e,t,r)=>{r.d(t,{A:()=>i});var n=r(5155),a=r(2115);function i(e){let{size:t=32,className:r=""}=e,i=(0,a.useId)().replace(/[:]/g,""),l="govrl-grad-".concat(i);return(0,n.jsxs)("svg",{width:t,height:t,viewBox:"0 0 32 32",className:r,role:"img","aria-label":"govrl.io",children:[(0,n.jsx)("defs",{children:(0,n.jsxs)("linearGradient",{id:l,x1:"0",y1:"0",x2:"1",y2:"1",children:[(0,n.jsx)("stop",{offset:"0%",stopColor:"#7FD8FF"}),(0,n.jsx)("stop",{offset:"55%",stopColor:"#1577D4"}),(0,n.jsx)("stop",{offset:"100%",stopColor:"#0E5BB0"})]})}),(0,n.jsx)("circle",{cx:"16",cy:"16",r:"16",fill:"#1577D4"}),(0,n.jsx)("circle",{cx:"16",cy:"16",r:"16",fill:"url(#".concat(l,")")}),(0,n.jsx)("path",{d:"M21.6 11 A7 7 0 1 0 23 16.5 H17.6",fill:"none",stroke:"#fff",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"})]})}},7331:(e,t,r)=>{r.d(t,{Ay:()=>o,_r:()=>d,dK:()=>c});var n=r(5155),a=r(2115),i=r(200),l=r(5651);function o(e){let{value:t,onChange:r,className:a}=e,{t:o}=(0,i.s9)(),{avail:s,loaded:d}=c(),u=d&&(s.pro||s.max||s.builder),p=e=>({display:"inline-flex",alignItems:"center",gap:8,whiteSpace:"nowrap",padding:"7px 16px",borderRadius:999,border:"none",cursor:"pointer",fontWeight:600,fontSize:13,transition:"all .15s",color:e?"#fff":"#8C887F",background:e?"linear-gradient(110deg,#0E5BB0,#1577D4 45%,#22e3a0)":"transparent",boxShadow:e?"0 6px 16px -8px rgba(21,119,212,0.8)":"none"}),x="yearly"===t;return(0,n.jsxs)("div",{className:"inline-flex items-center gap-1.5 ".concat(a||""),role:"radiogroup","aria-label":o("uiw.billingPeriod"),"data-billing-toggle":t,style:{padding:5,borderRadius:999,background:"#211f1d",border:"1px solid #322f2b"},children:[(0,n.jsx)("button",{type:"button",role:"radio","aria-checked":!x,onClick:()=>r("monthly"),style:p(!x),children:o("uiw.monthly")}),(0,n.jsxs)("button",{type:"button",role:"radio","aria-checked":x,onClick:()=>r("yearly"),style:p(x),children:[o("uiw.yearly"),u&&(0,n.jsx)("span",{style:{padding:"2px 8px",borderRadius:999,fontSize:11,fontWeight:700,background:x?"rgba(255,255,255,0.22)":"rgba(63,191,138,0.18)",color:x?"#fff":"#5fd3a0"},children:o("uiw.savePct",{pct:l.ep})})]})]})}let s=null;function c(){let[e,t]=(0,a.useState)(l.bR),[r,n]=(0,a.useState)(!1);return(0,a.useEffect)(()=>{let e=!0;return(!s&&(s=fetch("/api/billing/plans").then(e=>e.json()).then(e=>(null==e?void 0:e.yearly)?{pro:!!e.yearly.pro,max:!!e.yearly.max,builder:!!e.yearly.builder}:l.bR).catch(()=>(s=null,l.bR))),s).then(r=>{e&&(t(r),n(!0))}),()=>{e=!1}},[]),{avail:e,loaded:r}}function d(e,t){let[r,n]=(0,a.useState)("monthly"),i=(0,a.useRef)(!1);return(0,a.useEffect)(()=>{try{let e=new URLSearchParams(window.location.search).get("billing");("yearly"===e||"monthly"===e)&&(i.current=!0,n(e))}catch(e){}},[]),(0,a.useEffect)(()=>{t&&!i.current&&(e.pro||e.max||e.builder)&&n("yearly")},[t,e]),[r,e=>
1{i.current=!0,n(e)}]}}}]);
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.