PageSourceSearch

https://speedvitals.com/_next/static/chunks/9529-b8cedd391b70db3f.js

js speedvitals.com collected 2026-09-24 08:48:01 UTC 73,201 bytes, 1 lines download raw bytes

1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="1c053f35-6a2b-4e3f-b9e2-6e0398e5ab81",e._sentryDebugIdIdentifier="sentry-dbid-1c053f35-6a2b-4e3f-b9e2-6e0398e5ab81")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9529],{3471:(e,t,a)=>{a.d(t,{Ch:()=>k,GZ:()=>d,Gv:()=>C,Hc:()=>$,MA:()=>n,NW:()=>x,OL:()=>A,Oo:()=>c,RO:()=>g,Rk:()=>v,TE:()=>_,W5:()=>y,YL:()=>f,eH:()=>o,fM:()=>h,fz:()=>j,gq:()=>p,im:()=>m,nN:()=>b,p2:()=>N,p3:()=>i,pN:()=>l,tc:()=>P,y0:()=>I,yq:()=>u,zi:()=>w});var r=a(51443),s=a(96441);let n=e=>e<=200?"A":e<=350?"B":e<=500?"C":e<=700?"D":e<=1e3?"E":"F",l=e=>{let t=Math.max(0,e);return t<=200?Math.round(100-t/200*5):t<=500?Math.round(95-(t-200)/300*15):t<=1e3?Math.round(80-(t-500)/500*40):Math.max(0,Math.round(40-(t-1e3)/1e3*40))},i=e=>e in r.bn?r.bn[e]:e in r.QJ?r.QJ[e].full_name:e,o=e=>e&&"number"!=typeof e?e in r.G0?`/images/flags/${r.G0[e]}-flag.png`:`/images/flags/${e.slice(0,2).toLowerCase()}-flag.png`:"/images/flags/default-flag.png",c=e=>e>=200&&e<300?"border-green-500 text-green-500":e>=300&&e<400?"border-blue-500 text-blue-500":e>=400&&e<500?"border-red-400 text-red-400":e>=500?"border-red-500 text-red-500":"text-gray-500 border-gray-500",d=e=>{let t=e.toLowerCase().replace(/[^a-z0-9]/g,"-");return r.zO.includes(t)?`/images/technologies/${t}.png`:`/images/technologies/${e}.png`},u=e=>e?`/images/devices/${e}.png`:"/images/devices/default.png";function m(e){switch(e){case"mobile":default:return"/images/mobile.png";case"desktop":return"/images/desktop.png";case"tablet":return"/images/tablet.png"}}let x=e=>e?e in r.hQ?r.hQ[e]:{name:e.charAt(0).toUpperCase()+e.slice(1),type:"custom",os:"unknown",category:"unknown"}:{name:"Unknown",type:"unknown",os:"unknown",category:"unknown"};function p(e,t="primary"){if(null==e)return"var(--secondary-text)";if(e>0&&e<=200)return`var(--tone-green-${t})`;if(e>200&&e<=350)return"#8bc34a";if(e>350&&e<=500)return"#fbc02d";if(e>500&&e<=700)return`var(--tone-yellow-${t})`;if(e>700)return`var(--tone-red-${t})`;else return"var(--secondary-text)"}function f(e,t="primary"){return null==e?"var(--secondary-text)":e<=2500?`var(--tone-green-${t})`:e>2500&&e<4e3?`var(--tone-yellow-${t})`:`var(--tone-red-${t})`}function h(e,t="primary"){return null==e?"var(--secondary-text)":("string"==typeof e&&(e=parseFloat(e)),e<=.1)?`var(--tone-green-${t})`:e>.1&&e<=.25?`var(--tone-yellow-${t})`:`var(--tone-red-${t})`}function g(e,t="primary"){return null==e?"var(--secondary-text)":e<800?`var(--tone-green-${t})`:e>800&&e<1800?`var(--tone-yellow-${t})`:`var(--tone-red-${t})`}function y(e,t="primary"){return null==e?"var(--secondary-text)":e<=1800?`var(--tone-green-${t})`:e>1800&&e<3e3?`var(--tone-yellow-${t})`:`var(--tone-red-${t})`}function b(e,t="primary"){return null==e?"var(--secondary-text)":e<=200?`var(--tone-green-${t})`:e>200&&e<=600?`var(--tone-yellow-${t})`:`var(--tone-red-${t})`}function v(e,t="primary"){return null==e?"var(--secondary-text)":e>=90?`var(--tone-green-${t})`:e>=50?`var(--tone-yellow-${t})`:`var(--tone-red-${t})`}function j(e,t){if(void 0===t)return"#000000";switch(e){case"Largest Contentful Paint":return f(t);case"Interaction to Next Paint":return function(e,t="primary"){return null==e?"var(--secondary-text)":e<=200?`var(--tone-green-${t})`:e>200&&e<=500?`var(--tone-yellow-${t})`:`var(--tone-red-${t})`}(t);case"Cumulative Layout Shift":return h(t);case"Time to First Byte":return g(t);case"First Contentful Paint":return y(t);default:return"#000000"}}function w({inp:e,lcp:t,cls:a}){if(void 0!==e||void 0!==t||void 0!==a)return!!((e??200)<=200)&&!!((t??2500)<=2500)&&!!((a??.1)<=.1)}let N=e=>{if(e?.startsWith("http"))try{e=new URL(e).hostname}catch(e){console.log("Error parsing URL:",e)}let t=e?.split(".").slice(0,-1)?.pop()||e;return t&&r.zO.includes(t)?`/images/technologies/${t}.png`:(e=e&&e.split(".")?.length>2?e?.split(".").slice(-2).join("."):e,`/api/favicon/${e}`)},_=async e=>{e.startsWith("http")&&(e=new URL(e).hostname);let t=e.split(".").slice(0,-1)?.pop()||e;if(r.zO.includes(t))return`/images/technologies/${t}.png`;e=e.split(".")?.length>2?e.split(".").slice(-2).join("."):e;let a=`https://api.speedvitals.com/favicon/${e}`;console.log("Fetching favicon from:",a);
1try{if(!(await fetch(a)).ok)throw Error("Invalid favicon URL")}catch(e){return console.log("Error fetching favicon:",e),"/images/blank-image.png"}return a},k=e=>void 0===e?{grade:"-",color:"var(--secondary-text)"}:{grade:e>=90?"A":e>=70?"B":e>=50?"C":e>=30?"D":"F",color:e>=90?"#0cce6b":e>=50?"#fd7e14":"#ff4e42"};async function S(e){let t=new TextEncoder().encode(e);return Array.from(new Uint8Array(await crypto.subtle.digest("SHA-256",t))).map(e=>e.toString(16).padStart(2,"0")).join("")}async function C(e){let t=e?.email;if(t){let a=await S(t.trim().toLowerCase());if(!e?.photoURL)return`https://www.gravatar.com/avatar/${a}?d=initials&s=200&initials=${e.email}`;{let t=`https://www.gravatar.com/avatar/${a}?d=404&s=200`;if(await new Promise(e=>{let a=new Image;a.onload=()=>e(!0),a.onerror=()=>e(!1),a.src=t}))return t;if(e?.photoURL)return e.photoURL}}return"/images/user-icon.png"}function $(e,t){if(void 0===e||void 0===t)return"-";let a=t-e;return a>0?`+${a}`:a<0?`${a}`:""}function P(e){return!!e&&s.vq[e]?.isLegacy===!0}let I=(e,t)=>{let a=s.vq[e]?.planHierarchy||0;return"string"==typeof t&&(t=s.vq[t]?.planHierarchy||0),a>=t};function A(e,t=90){return`color-mix(in srgb, ${e}, transparent ${t}%)`}},3690:(e,t,a)=>{a.d(t,{J:()=>i});var r=a(95155),s=a(19749),n=a(30203);a(12115);var l=a(8191);function i(e){let t,a,i,o,c=(0,s.c)(8);return c[0]!==e?({className:t,...a}=e,c[0]=e,c[1]=t,c[2]=a):(t=c[1],a=c[2]),c[3]!==t?(i=(0,l.cn)("text-primary-text flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",t),c[3]=t,c[4]=i):i=c[4],c[5]!==a||c[6]!==i?(o=(0,r.jsx)(n.b,{"data-slot":"label",className:i,...a}),c[5]=a,c[6]=i,c[7]=o):o=c[7],o}},9313:(e,t,a)=>{a.d(t,{Bc:()=>i,ZI:()=>d,k$:()=>c,m_:()=>o});var r=a(95155),s=a(19749),n=a(60838);a(12115);var l=a(8191);function i(e){let t,a,l,i=(0,s.c)(6);i[0]!==e?({delayDuration:a,...t}=e,i[0]=e,i[1]=t,i[2]=a):(t=i[1],a=i[2]);let o=void 0===a?0:a;return i[3]!==o||i[4]!==t?(l=(0,r.jsx)(n.Kq,{"data-slot":"tooltip-provider",delayDuration:o,...t}),i[3]=o,i[4]=t,i[5]=l):l=i[5],l}function o(e){let t,a,l=(0,s.c)(4);return l[0]!==e?({...t}=e,l[0]=e,l[1]=t):t=l[1],l[2]!==t?(a=(0,r.jsx)(i,{children:(0,r.jsx)(n.bL,{"data-slot":"tooltip",...t})}),l[2]=t,l[3]=a):a=l[3],a}function c(e){let t,a,l=(0,s.c)(4);return l[0]!==e?({...t}=e,l[0]=e,l[1]=t):t=l[1],l[2]!==t?(a=(0,r.jsx)(n.l9,{"data-slot":"tooltip-trigger",...t}),l[2]=t,l[3]=a):a=l[3],a}function d(e){let t,a,i,o,c,d,u,m=(0,s.c)(13);m[0]!==e?({className:a,sideOffset:o,children:t,...i}=e,m[0]=e,m[1]=t,m[2]=a,m[3]=i,m[4]=o):(t=m[1],a=m[2],i=m[3],o=m[4]);let x=void 0===o?0:o;return m[5]!==a?(c=(0,l.cn)("bg-popover text-popover-foreground border-border animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md border px-3 py-1.5 text-xs text-balance shadow-md",a),m[5]=a,m[6]=c):c=m[6],m[7]===Symbol.for("react.memo_cache_sentinel")?(d=(0,r.jsx)(n.i3,{className:"bg-popover fill-popover z-20 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] border-border"}),m[7]=d):d=m[7],m[8]!==t||m[9]!==i||m[10]!==x||m[11]!==c?(u=(0,r.jsx)(n.ZL,{children:(0,r.jsxs)(n.UC,{"data-slot":"tooltip-content",sideOffset:x,className:c,...i,children:[t,d]})}),m[8]=t,m[9]=i,m[10]=x,m[11]=c,m[12]=u):u=m[12],u}},11447:(e,t,a)=>{a.d(t,{default:()=>p});var r=a(95155),s=a(19749),n=a(12731),l=a(62914);let i=async()=>{let e=await l.e.currentUser?.getIdToken(),t=await fetch("/api/libredesk/token",{credentials:"same-origin",headers:e?{Authorization:`Bearer ${e}`}:void 0});if(!t.ok)throw Error(`Failed to fetch Libredesk token: ${t.status}`);return(await t.json()).token??null};var o=a(71945),c=a(61755),d=a(12115);let u="https://support.speedvitals.com",m="e736b6c3-e412-4d5f-87c9-f02dd90f3ab1",x=()=>{let e=window.Libredesk;return"function"==typeof e?.setUser?e:null},p=()=>{let e,t,a,l,p,h,g,y,b,v,j,w,N=(0,s.c)(21),{user:_,loading:k}=(0,n.A)(),[S,C]=(0,d.useState)(!1),$=(0,d.useRef)(!1),P=(0,d.useRef)(null),I=!!(u&&m),A=_?.uid;N[0]!==A?(e=["libredeskToken",A],N[0]=A,N[1]=e):e=N[1];let E=I&&!k&&!!_?.email;N[2]!==e||N[3]!==E?(t={queryKey:e,queryFn:i,enabled:E,staleTime:396e5,refetchOnWindowFocus:!1,retry:!1},N[2]=e,N[3]=E,N[4]=t):t=N[4];let{data:L}=(0,o.useQuery)(t);N[5]===Symbol.for("react.memo_cache_sentinel")?(a=()=>{I||console.warn("Libredesk base URL or inbox ID is not set")},l=[I],N[5]=a,N[6]=l):(a=N[5],l=N[6]),(0,d.useEffect)(a,l),N[7]!==S||N[8]!==L?(p=()=>
1{if(!I||!S||$.current)return;if(x()){$.current=!0;return}let e=window.initLibredesk;e&&(e({baseURL:u,inboxID:m,...L?{userJWT:L}:{}}),$.current=!0,P.current=L??null)},h=[I,S,L],N[7]=S,N[8]=L,N[9]=p,N[10]=h):(p=N[9],h=N[10]),(0,d.useEffect)(p,h),N[11]!==S?(g=()=>{if(!S)return;let e=window.setInterval(()=>{let t;t=x(),t?.widgetButtonWrapper&&(t.widgetButtonWrapper.style.display="",1)&&window.clearInterval(e)},100),t=window.setTimeout(()=>{window.clearInterval(e)},15e3);return()=>{window.clearInterval(e),window.clearTimeout(t)}},y=[S],N[11]=S,N[12]=g,N[13]=y):(g=N[12],y=N[13]),(0,d.useEffect)(g,y),N[14]!==L?(b=()=>{if(!$.current)return;let e=x();if(e){if(L){P.current!==L&&(e.setUser(L),P.current=L);return}P.current&&(e.logout(),P.current=null)}},N[14]=L,N[15]=b):b=N[15],N[16]!==S||N[17]!==L?(v=[L,S],N[16]=S,N[17]=L,N[18]=v):v=N[18],(0,d.useEffect)(b,v),N[19]===Symbol.for("react.memo_cache_sentinel")?(j=()=>{C(!0)},N[19]=j):j=N[19];let R=j;return I?(N[20]===Symbol.for("react.memo_cache_sentinel")?(w=(0,r.jsx)(c.default,{src:`${u}/widget.js`,strategy:"afterInteractive",onLoad:R,onError:f}),N[20]=w):w=N[20],w):null};function f(){return console.error("Failed to load the Libredesk widget")}},12731:(e,t,a)=>{a.d(t,{A:()=>p,AuthProvider:()=>x});var r=a(95155),s=a(62914),n=a(71496),l=a(83234),i=a(71945),o=a(39166),c=a(82222),d=a(12115),u=a(29094);let m=(0,d.createContext)({user:null,isLoggedIn:!1,loading:!0,planDetails:{isLoading:!0,data:null},logout:()=>Promise.resolve()}),x=({children:e})=>{let[t,a]=(0,d.useState)(()=>s.e.currentUser),[x,p]=(0,d.useState)(!0),[f,h]=(0,d.useState)(!!s.e.currentUser),g=(0,c.usePathname)(),y=(0,c.useRouter)(),{setCurrentWorkspace:b,setWorkspaces:v}=(0,l.M)(e=>e),{data:j,isLoading:w}=(0,i.useQuery)({queryKey:["userCredits"],queryFn:n.iL,enabled:!!t,staleTime:6e4,refetchOnWindowFocus:!1});(0,d.useEffect)(()=>{h("true"===localStorage.getItem("loggedIn"))},[]),(0,d.useEffect)(()=>{let e=(0,o.iZ)(s.e,async e=>{e?document.cookie="authenticated=true; path=/;":document.cookie="authenticated=; path=/; max-age=0";try{if(e){let t=await e.getIdTokenResult();a(Object.assign(e,{customClaims:t.claims}))}else a(null);h(!!e),localStorage.setItem("loggedIn",e?"true":"false")}catch(t){console.error("Error loading auth claims:",t),a(e),h(!!e),localStorage.setItem("loggedIn",e?"true":"false")}finally{p(!1)}});return()=>e()},[]),(0,d.useEffect)(()=>{x||!t||!t.emailVerified||g.startsWith("/account/onboarding")||t.customClaims?.onboarding_completed!==!0&&y.replace("/account/onboarding")},[x,g,y,t]);let N=(0,d.useMemo)(()=>t?{isLoading:w,data:j?{...j,total_credits_lh:j.credits_lh_paid+j.credits_lh,total_credits_ttfb:j.credits_ttfb_paid+j.credits_ttfb}:null}:{isLoading:!1,data:null},[t,w,j]),_=(0,d.useCallback)(async()=>{try{await (0,o.CI)(s.e),localStorage.removeItem("loggedIn"),b(null),v([]),document.cookie="authenticated=; path=/; max-age=0",u.oR.success("Logged out successfully"),window.location.href="/login"}catch(e){console.error("Error logging out:",e),u.oR.error(`Failed to log out ${e instanceof Error?e.message:String(e)}`)}},[b,v]),k=(0,d.useMemo)(()=>({user:t,isLoggedIn:f,loading:x,planDetails:{isLoading:N.isLoading||x,data:N.data},logout:_}),[t,x,N,_,f]);return(0,r.jsx)(m.Provider,{value:k,children:e})},p=()=>(0,d.useContext)(m)},29529:(e,t,a)=>{a.r(t),a.d(t,{default:()=>ey});var r=a(95155),s=a(19749),n=a(96874);let l=e=>{let t,a,l,o=(0,s.c)(5),{faqItems:c}=e;return o[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,r.jsx)("h2",{className:"mb-12 text-center text-3xl font-semibold md:text-5xl",children:"Frequently Asked Questions"}),o[0]=t):t=o[0],o[1]!==c?(a=c.map(i),o[1]=c,o[2]=a):a=o[2],o[3]!==a?(l=(0,r.jsxs)("section",{className:"tool-faq w-full py-16",children:[t,(0,r.jsx)(n.Accordion,{type:"multiple",className:"mx-auto max-w-4xl",children:a})]}),o[3]=a,o[4]=l):l=o[4],l};function i(e){return(0,r.jsxs)(n.AccordionItem,{value:e.id,children:[(0,r.jsxs)(n.AccordionTrigger,{className:"text-secondary-text cursor-pointer rounded-none p-5 text-xl font-semibold hover:bg-[#f7f8f6] data-[state=open]:bg-[#f7f8f6] dark:hover:bg-[#333] dark:data-[state=open]:bg-[#333]",children:["Q. ",e.question]}),(0,r.jsx)(n.AccordionContent,{className:"bg-[#f7f8f6] p-5 text-base dark:bg-[#333]",children:e.answer})]},e.id)}var o=a(12334),c=a(11447),d=a(93410),u=a(78392),m=a(64144),x=a(3690),p=a(71219),f=a(52625),h=a(96441),g=a(8191),y=a(71496),b=a(83387),v=a(52014),j=a(14547),w=a(82222),N=a(12115),_=a(29094),k=a(25856),S=a(67170);let C=[{value:"It's too expensive",label:"It's too expensive"},{value:"I need more features",label:"I need more features"},{value:"I found an alternative",label:"I found an alternative"},{value:"I no longer need it",label:"I no longer need it"},{value:"It is temporary. I'll be back",label:"It is temporary. I'll be back"},{value:"other",label:"Other Reason (Please Specify)"}],$=e=>{let t,a,n,l,i,o,c,d,u,x,j,$=(0,s.c)(45),{additionalPlanInfo:L,onActivateDiscount:q,onChooseDiscountedPlan:z,onSelectSpecialPlan:U}=e;(0,w.useRouter)(),$[0]!==L?.plan?(t=L?.plan?.includes("v1"),$[0]=L?.plan,$[1]=t):t=$[1];let F=!t,T=L?.plan==="starter_v1"&&L?.billing_interval==="month",[M,D]=(0,N.useState)(null),[O,W]=(0,N.useState)(""),[V,B]=(0,N.useState)(!1),[Y,Q]=(0,N.useState)(!1),[G,H]=(0,N.useState)(!1),{mutate:J,isPending:K}=(0,b.useMutation)({mutationFn:y.pU,onError:P,onSuccess:I,onSettled:()=>
1{f.queryClient.invalidateQueries({queryKey:["additionalPlanInfo"]}),B(!1),Z()}}),Z=()=>{D(null),W(""),Q(!1),H(!1)};$[2]!==Z?(a=e=>{B(e),e||Z()},$[2]=Z,$[3]=a):a=$[3];let X=a;$[4]!==L||$[5]!==J||$[6]!==T||$[7]!==q||$[8]!==O||$[9]!==M||$[10]!==G||$[11]!==Y?(n=()=>{M?"other"!==M||O?Y||G?J({cancel:!0,reason:"other"===M?O:M,reactivate:!1}):T&&"month"===L.billing_interval?Q(!0):(H(!0),q?.({value:50,billingCycles:["year"]}),_.oR.success("Special offer unlocked: 50% off on your next subscription.")):_.oR.error("Please provide a reason for cancellation."):_.oR.error("Please select a reason for cancellation.")},$[4]=L,$[5]=J,$[6]=T,$[7]=q,$[8]=O,$[9]=M,$[10]=G,$[11]=Y,$[12]=n):n=$[12];let ee=n;$[13]!==U||$[14]!==Z?(l=e=>{B(!1),Z(),U(e)},$[13]=U,$[14]=Z,$[15]=l):l=$[15];let et=l;$[16]===Symbol.for("react.memo_cache_sentinel")?(i=(0,r.jsx)(m.zM,{className:"bg-[#333333] hover:bg-[#444444] text-white rounded-md px-4 py-2 text-sm font-medium",children:"Cancel Plan"}),$[16]=i):i=$[16];let ea=Y||G?"Before You Cancel":"Are you sure?";return $[17]!==ea?(o=(0,r.jsx)(m.L3,{className:"text-center text-3xl",children:ea}),$[17]=ea,$[18]=o):o=$[18],$[19]!==F||$[20]!==G||$[21]!==Y?(c=!Y&&!G&&F&&(0,r.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)(v.A,{size:16,className:"text-destructive"}),(0,r.jsx)("span",{className:"font-medium text-tertiary-text",children:"Warning"})]}),(0,r.jsx)("p",{className:"",children:"You're currently on our legacy plan which offers more features for lower pricing. If you cancel the legacy plan, you will not be able to subscribe back to legacy plans again and will be migrated to our new pricing if you choose to subscribe again in the future."})]}),$[19]=F,$[20]=G,$[21]=Y,$[22]=c):c=$[22],$[23]!==L?.billing_interval||$[24]!==L?.expiry_date||$[25]!==K||$[26]!==ee||$[27]!==X||$[28]!==et||$[29]!==z||$[30]!==O||$[31]!==M||$[32]!==G||$[33]!==Y?(d=Y||G?Y?(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsx)("p",{className:"text-sm text-secondary-text",children:"We have a special plan that may be a better fit for your needs:"}),(0,r.jsx)("div",{className:"grid gap-3",children:h.T7.map(e=>{let t=L?.billing_interval==="year"?"year":"month",a="year"===t?e.price.yearly:e.price.monthly;return(0,r.jsx)("div",{className:"flex flex-col bg-white dark:bg-primary-background p-3 rounded-md border-input border-2",children:(0,r.jsxs)("div",{className:"flex flex-col gap-3 flex-grow",children:[(0,r.jsxs)("div",{className:"flex gap-3 items-center w-full",children:[(0,r.jsx)("img",{src:e.icon,alt:e.name,className:"w-8 h-8"}),(0,r.jsx)("h2",{className:"font-bold text-xl text-primary-text",children:e.name})]}),(0,r.jsx)("p",{className:"text-sm text-secondary-text",children:e.description}),(0,r.jsxs)("div",{className:"text-xl font-bold text-primary-text",children:["$",a,(0,r.jsx)("span",{className:"text-sm text-secondary-text",children:"month"===t?"/month":"/month (billed yearly)"})]}),e.groups.map(R)]})},e.slug)})}),(0,r.jsxs)("div",{className:"flex justify-around gap-2",children:[(0,r.jsxs)(k.$,{className:"mt-1 px-6",onClick:()=>et(h.T7[0].slug),children:["Switch to ",h.T7[0].name]}),(0,r.jsx)("button",{className:"mt-1 bg-foreground dark:bg-white/90 font-semibold text-background dark:text-black px-3 py-2 rounded-sm",disabled:K,onClick:ee,children:"Continue Cancellation"})]})]}):(0,r.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,r.jsxs)("div",{className:"rounded-md border border-border-100 bg-background p-4 flex flex-col gap-2 text-center",children:[(0,r.jsx)("p",{className:"text-sm text-secondary-text",children:"Special Offer"}),(0,r.jsx)("p",{className:"text-2xl font-bold text-primary-text",children:"50% OFF"}),(0,r.jsx)("p",{className:"text-sm text-secondary-text",children:"You now have 50% off on your next yearly subscription. Choose a plan below to apply the discount."})]}),(0,r.jsxs)("div",{className:"flex justify-around gap-2",children:[(0,r.jsx)(k.$,{variant:"outline",className:"px-6",onClick:()=>H(!1),children:"Back"}),(0,r.jsx)(k.$,{className:"px-6",onClick:()=>{X(!1),window.requestAnimationFrame(()=>{z?.()})},children:"Choose Discounted Plan"}),(0,r.jsx)(k.$,{variant:"secondary",className:"px-6",disabled:K,onClick:ee,children:"Continue Cancellation"})]})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{children:["Your current plan will continue until"," ",(0,r.jsx)("strong",{children:(0,g.Yq)(L?.expiry_date,{day:"numeric",month:"long",year:"numeric"})})," ","after cancellation. After this date, the plan will be automatically cancelled."]}),(0,r.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,r.jsxs)("p",{className:"font-medium text-base",children:["Please Provide a Reason ",(0,r.jsx)("span",{className:"text-destructive",children:"*"})]}),(0,r.jsx)(p.z,{value:M,onValueChange:D,children:C.map(E)}),"other"===M&&(0,r.jsx)("div",{className:"mt-2",children:(0,r.jsx)(S.T,{value:O,onChange:e=>W(e.target.value),placeholder:"Please specify"})}),(0,r.jsxs)("div",{className:"flex justify-around",children:[(0,r.jsx)(k.$,{className:"mt-4 px-9",disabled:K,onClick:ee,children:"Next"}),(0,r.jsx)(k.$,{variant:"outline",className:"mt-4 px-9",onClick:()=>X(!1),children:"Cancel"})]})]})]}),$[23]=L?.billing_interval,$[24]=L?.expiry_date,$[25]=K,$[26]=ee,$[27]=X,$[28]=et,$[29]=z,$[30]=O,$[31]=M,$[32]=G,$[33]=Y,$[34]=d):d=$[34],$[35]!==c||$[36]!==d?(u=(0,r.jsxs)("div",{className:"text-[0.83rem] text-tertiary-text flex flex-col gap-3",children:[c,d]}
1),$[35]=c,$[36]=d,$[37]=u):u=$[37],$[38]!==u||$[39]!==o?(x=(0,r.jsx)(m.Cf,{className:"bg-secondary-background max-w-2xl w-[95vw]",onCloseAutoFocus:A,children:(0,r.jsxs)(m.c7,{children:[o,u]})}),$[38]=u,$[39]=o,$[40]=x):x=$[40],$[41]!==X||$[42]!==V||$[43]!==x?(j=(0,r.jsx)("div",{children:(0,r.jsxs)(m.lG,{open:V,onOpenChange:X,children:[i,x]})}),$[41]=X,$[42]=V,$[43]=x,$[44]=j):j=$[44],j};function P(e){_.oR.error("Failed to cancel subscription: "+e?.message)}function I(){_.oR.success("Subscription cancelled successfully")}function A(e){return e.preventDefault()}function E(e){return(0,r.jsxs)("div",{className:"flex gap-2",children:[(0,r.jsx)(p.C,{value:e.value,id:`reason-${e.value}`}),(0,r.jsx)(x.J,{htmlFor:`reason-${e.value}`,className:"w-full cursor-pointer",children:e.label})]},e.value)}function L(e){return(0,r.jsx)("li",{className:"group relative w-fit",children:(0,r.jsxs)("div",{className:"text-2xs font-semibold text-[#333333] dark:text-secondary-text flex gap-2 items-center",children:[(0,r.jsx)(j.A,{size:12,strokeWidth:3,className:"text-tone-green flex-shrink-0"}),(0,r.jsx)("p",{className:"border-dashed border-b border-border-100 cursor-help",children:e.display}),(0,r.jsx)("div",{className:"absolute left-0 right-0 bottom-full mb-1 z-20 invisible opacity-0 translate-y-1 transition-all duration-200 ease-out group-hover:visible group-hover:opacity-100 group-hover:translate-y-0",children:(0,r.jsx)("p",{className:"bg-[#333333] text-white font-normal text-xs rounded py-1 px-2 w-max max-w-64 break-words",children:h._L[e.featureId]})})]})},e.featureId)}function R(e){return(0,r.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,r.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,r.jsx)("img",{src:e.icon,alt:e.title,className:"w-4 h-4 dark:invert"}),(0,r.jsx)("h3",{className:"font-medium text-xs text-primary-text",children:e.title})]}),(0,r.jsx)("ul",{className:"flex flex-col gap-1",children:e.items.map(L)})]},e.title)}var q=a(45408),z=a(3308),U=a(45749),F=a(73549),T=a.n(F);let M=(0,N.memo)(({value:e})=>null===e?(0,r.jsx)("span",{className:"text-secondary-text",children:"—"}):"boolean"==typeof e?e?(0,r.jsx)(q.A,{size:18,className:"text-green-600 mx-auto"}):(0,r.jsx)(z.A,{size:18,className:"text-red-500 mx-auto"}):(0,r.jsx)("span",{className:"text-primary-text font-normal text-center",children:e}));M.displayName="FeatureValue";let D=(0,N.memo)(({icon:e,category:t})=>(0,r.jsxs)("div",{className:"grid grid-cols-7 bg-gray-100 dark:bg-[#222222] border-y border-theme-border-100 mt-10 font-semibold sticky top-0 z-10 ",children:[(0,r.jsxs)("div",{className:"p-3 col-span-2 text-primary-text text-left flex gap-2",children:[(0,r.jsx)("img",{src:e,alt:`${t} icon`,className:"inline-block mr-2"}),t]}),(0,r.jsx)("div",{className:"p-3 text-primary-text text-center",children:"Free"}),(0,r.jsx)("div",{className:"p-3 text-primary-text text-center",children:"Starter"}),(0,r.jsx)("div",{className:"p-3 text-primary-text text-center",children:"Growth"}),(0,r.jsx)("div",{className:"p-3 text-primary-text text-center",children:"Pro"}),(0,r.jsx)("div",{className:"p-3 text-primary-text text-center",children:"Ultimate"})]}));D.displayName="CategoryHeader";let O=(0,N.memo)(({feature:e,featureIndex:t})=>{let a=`grid grid-cols-7 shadow-sm transition-colors ${t%2!=0?"bg-[#f7f6f2] dark:bg-[#2a2a2a]":"bg-white dark:bg-[#333]"}`;return(0,r.jsxs)("div",{className:a,children:[e?.externalLink?(0,r.jsxs)(T(),{target:"_blank",className:"p-4 text-sm text-primary-text col-span-2 text-nowrap w-full flex gap-2 items-center",prefetch:!1,href:e.externalLink,children:[(0,r.jsx)("div",{className:"hover:underline",children:e.name}),(0,r.jsx)(U.A,{size:12,className:"text-primary-text"})]}):(0,r.jsxs)("div",{className:"p-4 text-sm text-primary-text col-span-2 text-nowrap relative group w-fit",children:[(0,r.jsx)("div",{className:`border-border-100 border-dashed ${e?.tooltip&&"border-b cursor-help"}`,children:e.name}),e?.tooltip&&(0,r.jsx)("div",{className:"absolute left-0 right-0 bottom-full mb-1 z-20 invisible opacity-0 translate-y-1 transition-all duration-200 ease-out group-hover:visible group-hover:opacity-100 group-hover:translate-y-0",children:(0,r.jsx)("p",{className:"bg-[#333333] text-white font-normal text-xs rounded py-1 px-2 w-max max-w-64 break-words text-wrap",children:e.tooltip})})]}),e.values.map((e,t)=>(0,r.jsx)("div",{className:"p-4 text-center text-sm",children:(0,r.jsx)(M,{value:e})},t))]})});O.displayName="FeatureRow";let W=(0,N.memo)(({className:e=""})=>(0,r.jsx)("div",{className:`w-full max-w-7xl relative mx-auto ${e}`,children:(0,r.jsx)("div",{className:"",children:(0,r.jsx)("div",{className:"min-w-[800px]",children:h.cL.map(e=>(0,r.jsxs)("div",{id:e.id,className:"scroll-mt-10",children:[(0,r.jsx)(D,{icon:e.icon,category:e.category}),e.features.map((t,a)=>(0,r.jsx)(O,{feature:t,featureIndex:a},`${e.id}-${t.name}`))]},e.id))})})}));W.displayName="FeatureComparisonTable";var V=a(69115),B=a(57548),Y=a(12731),Q=a(8973),G=a(67721),H=a(29615
1),J=a(6145),K=a(72775),Z=a(42601);let X=e=>{let t,a=(0,s.c)(2),{plan:n,billingCycle:l}=e,i="month"===l?n.price.monthly:n.price.yearly;return a[0]!==i?(t=(0,r.jsx)(B.aK,{value:i,duration:400,className:"tabular-nums"}),a[0]=i,a[1]=t):t=a[1],t};function ee(e){return(0,r.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,r.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,r.jsx)("img",{src:e.icon,alt:e.title,className:"w-4 h-4 dark:invert"}),(0,r.jsx)("h3",{className:"font-medium text-[0.9rem] text-primaryText",children:e.title})]}),(0,r.jsx)("ul",{className:"flex flex-col gap-2",children:e.items.map(et)})]},e.title)}function et(e){return(0,r.jsx)("li",{className:"group relative w-fit",children:(0,r.jsxs)("div",{className:"text-[0.8rem] font-semibold text-[#333333] dark:text-secondary-text flex gap-2 items-center",children:[(0,r.jsx)(j.A,{size:15,strokeWidth:3,className:"text-tone-green"}),(0,r.jsx)("p",{className:"border-dashed border-b border-border-100 cursor-help",children:e.display}),(0,r.jsx)("div",{className:"absolute left-0 right-0 bottom-full mb-1 z-20 invisible opacity-0 translate-y-1 transition-all duration-200 ease-out group-hover:visible group-hover:opacity-100 group-hover:translate-y-0",children:(0,r.jsx)("p",{className:"bg-[#333333] text-white font-normal text-xs rounded py-1 px-2 w-max max-w-64 break-words",children:h._L[e.featureId]})})]})},e.featureId)}function ea(e){return Number.isInteger(e)?e.toString():e.toFixed(2)}let er=function(e){let t,a,n,l,i,o,c,d,u,m,p,f,g,y,b,v=(0,s.c)(63),{plan:j,discount:w,billingCycle:N,isCurrentPlan:_,handlePlanSelection:S,isAuthLoading:C,isUpgrading:$,upgradingPlan:P,setShowAddons:I,showAddons:A,hasExtraRUMAddOn:E,selectedExtraMonitoringSlots:L,setSelectedExtraMonitoringSlots:R,selectedExtraRUMPageViews:q,setSelectedExtraRUMPageViews:z}=e,{planDetails:U}=(0,Y.A)();v[0]!==N||v[1]!==w?(t=!!w&&w.value>0&&w.billingCycles.includes(N),v[0]=N,v[1]=w,v[2]=t):t=v[2];let F=t,T=F?Math.min(w.value,100):0,M="month"===N?"monthly":"yearly",D=j.price[M],O=F?D*(1-T/100):D;v[3]!==N||v[4]!==T||v[5]!==L||v[6]!==q?(a=e=>{let t="month"===N?"monthly":"yearly",a=e.price[t];return T>0&&(a*=1-T/100),L&&e.addons?.includes("extra-monitoring-slots")&&(a+=L.value*h.H2),q&&e.addons?.includes("extra-rum-page-views")&&(a+=q.value*h.BL),Number(a.toFixed(2))},v[3]=N,v[4]=T,v[5]=L,v[6]=q,v[7]=a):a=v[7];let W=a,B=j.name;return v[8]!==j.isPopular?(n=j.isPopular?{background:"linear-gradient(to bottom, #67E3F133 0%, transparent 50%, transparent 100%)"}:void 0,v[8]=j.isPopular,v[9]=n):n=v[9],v[10]!==j.isPopular?(l=j.isPopular&&(0,r.jsx)("div",{className:"bg-[#67E3F1] absolute top-0 left-0 right-0 h-1 rounded-t-md"}),v[10]=j.isPopular,v[11]=l):l=v[11],v[12]!==j.icon||v[13]!==j.name?(i=(0,r.jsx)("img",{src:j.icon,alt:j.name,className:"w-8 h-8"}),v[12]=j.icon,v[13]=j.name,v[14]=i):i=v[14],v[15]!==j.name?(o=(0,r.jsx)("h2",{className:"font-bold text-3xl text-primaryText",children:j.name}),v[15]=j.name,v[16]=o):o=v[16],v[17]!==i||v[18]!==o?(c=(0,r.jsxs)("div",{className:"flex gap-3 items-center w-full",children:[i,o]}),v[17]=i,v[18]=o,v[19]=c):c=v[19],v[20]!==j.description?(d=(0,r.jsx)("p",{className:"text-sm text-secondaryText",children:j.description}),v[20]=j.description,v[21]=d):d=v[21],v[22]!==D||v[23]!==N||v[24]!==O||v[25]!==F||v[26]!==j?(u=(0,r.jsx)("div",{className:"text-primaryText",children:F?(0,r.jsxs)("div",{className:"flex items-end gap-2 flex-wrap",children:[(0,r.jsxs)("span",{className:"text-lg text-secondary-text line-through",children:["$",ea(D)]}),(0,r.jsxs)("span",{className:"text-3xl font-bold",children:["$",ea(O)]}),(0,r.jsx)("span",{className:"text-sm text-secondary-text",children:"month"===N?"/month":"/month (billed yearly)"})]}):(0,r.jsxs)("div",{className:"text-3xl font-bold",children:["$",(0,r.jsx)(X,{plan:j,billingCycle:N}),(0,r.jsx)("span",{className:"text-sm text-secondary-text",children:"month"===N?"/month":"/month  (billed yearly)"})]})}),v[22]=D,v[23]=N,v[24]=O,v[25]=F,v[26]=j,v[27]=u):u=v[27],v[28]!==j.groups?(m=j.groups.map(ee),v[28]=j.groups,v[29]=m):m=v[29],v[30]!==u||v[31]!==m||v[32]!==c||v[33]!==d?(p=(0,r.jsxs)("div",{className:"flex flex-col gap-5 flex-grow",children:[c,d,u,m]}),v[30]=u,v[31]=m,v[32]=c,v[33]=d,v[34]=p):p=v[34],v[35]!==N||v[36]!==W||v[37]!==E||v[38]!==j||v[39]!==L||v[40]!==q||v[41]!==R||v[42]!==z||v[43]!==I||v[44]!==A?(f=E&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("button",{className:"flex gap-2 items-center font-semibold",onClick:()=>I(!A),children:[A?(0,r.jsx)(H.A,{size:18,className:"text-primaryText"}):(0,r.jsx)(J.A,{size:18,className:"text-primaryText"}),"Add-ons"]}),(0,r.jsxs)("div",{className:`flex flex-col gap-4 overflow-hidden transition-all duration-300 ease-in-out ${A?"max-h-96 opacity-100":"max-h-0 opacity-0"}`,children:[j.addons?.includes("extra-monitoring-slots")&&(0,r.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,r.jsxs)("div",{className:"flex justify-between",children:[(0,r.jsxs)(x.J,{children:["Extra Monitoring Slots"," ",(0,r.jsx)(V.V,{size:12,value:"Get Extra Monitoring Slots in addition to the slots included in this plan. Extra Monitoring Slots can be used either for Website Monitoring or TTFB Monitoring."})]}),L&&(0,r.jsxs)("span",{className:"text-sm text-[#399619] font-semibold",children:["$",L?.value*h.H2]})]}),(0,r.jsxs)(Q.rI,{children:[(0,r.jsx)(Q.ty,{asChild:!0,children:(0,r.jsxs)(k.$,{variant:"outline",className:"w-full flex justify-between gap-2 items-center focus-visible:ring-0 rounded-xs h-8",children:[L?h.S3.find(e=>e.value===L.value)?.slots:"Select an option",(0,r.jsx)(K.A,{className:"ml-2"})]})}),(0,r.jsx)(Q.SQ,{className:"w-full",children:h.S3.map(e=>(0,r.jsx)(Q._2,{className:"w-full",onClick:()=>R(e),children:e.slots},e.value))})]})]}),j.addons?.includes("extra-rum-page-views")?(0,r.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,r.jsxs)("div",{className:"flex justify-between",children:[(0,r.jsxs)(x.J,{children:["Extra RUM Page Views"," ",(0,r.jsx)(V.V,{size:12,value:"Get Extra RUM Page Views in addition to the page views included in this plan. RUM Extra Page Views addon is only available on Pro and Ultimate plans."})]}),q&&(0,r.jsxs)("span",{className:"text-sm text-[#399619] font-semibold",children:["$",q?.value*h.BL]})]}),(0,r.jsxs)(Q.rI,{children:[(0,r.jsx)(Q.ty,{asChild:!0,children:(0,r.jsxs)(k.$,{variant:"outline",className:"w-full flex justify-between gap-2 items-center focus-visible:ring-0 rounded-xs h-8",children:[q?h.QL.find(e=>e.value===q.value)?.pageViews:"Select an option",(0,r.jsx)(K.A,{className:"ml-2"})]})}),(0,r.jsx)(Q.SQ,{className:"w-full",children:h.QL.map(e=>(0,r.jsx)(Q._2,{className:"w-full",onClick:()=>z(e),children:e.pageViews},e.value))})]})]}):(0,r.jsx)("div",{className:"h-[58px]"}),(0,r.jsxs)("div",{className:"text-2xs",children:[(0,r.jsx)("span",{className:"font-bold text-primary-text",children:"Total Cost: "}),(0,r.jsxs)("span",{className:"text-secondary-text",children:["$",ea(W(j)),"/","month"===N?"month":"month (billed yearly)"]})]})]})]}),v[35]=N,v[36]=W,v[37]=E,v[38]=j,v[39]=L,v[40]=q,v[41]=R,v[42]=z,v[43]=I,v[44]=A,v[45]=f):f=v[45],v[46]!==S||v[47]!==C||v[48]!==_||v[49]!==$||v[50]!==j||v[51]!==U||v[52]!==P?(g=C?(0,r.jsx)(G.E,{className:"h-10 w-full"}):(0,r.jsx)("button",{disabled:$||_,className:"bg-foreground dark:bg-white/90 font-semibold text-background dark:text-black py-2 px-3 rounded disabled:opacity-80 text-[0.88rem]",onClick:()=>S(j),children:U?.data&&U?.data?.plan!=="free"?_?"Current Plan":$&&P===j.slug?(0,r.jsx)("div",{className:"flex items-center justify-center",children:(0,r.jsx)(Z.A,{className:"animate-spin",size:21})}):`Upgrade to ${j.name}`:U.isLoading?(0,r.jsx)("div",{className:"flex items-center justify-center",children:(0,r.jsx)(Z.A,{className:"animate-spin",size:21})}):j.buyText}),v[46]=S,v[47]=C,v[48]=_,v[49]=$,v[50]=j,v[51]=U,v[52]=P,v[53]=g):g=v[53],v[54]!==f||v[55]!==g?(y=(0,r.jsxs)("div",{className:"w-full flex flex-col gap-4 mt-5",children:[f,g]}),v[54]=f,v[55]=g,v[56]=y):y=v[56],v[57]!==j.name||v[58]!==p||v[59]!==y||v[60]!==n||v[61]!==l?(b=(0,r.jsxs)("div",{className:"flex flex-col bg-white dark:bg-primary-background p-4 rounded-md border-input border-2 border-b-2 relative lg:max-w-[17.5rem] flex-1 w-full min-w-[17.5rem]",style:n,children:[l,p,y]}
1,B),v[57]=j.name,v[58]=p,v[59]=y,v[60]=n,v[61]=l,v[62]=b):b=v[62],b},es=e=>{let t,a,n,l,i,o,c,d,u,x,p,h=(0,s.c)(21),{additionalPlanInfo:v}=e,[j,w]=(0,N.useState)(!1);h[0]===Symbol.for("react.memo_cache_sentinel")?(t={mutationFn:y.pU,onError:en,onSuccess:el,onSettled:()=>{f.queryClient.invalidateQueries({queryKey:["additionalPlanInfo"]}),w(!1)}},h[0]=t):t=h[0];let{mutate:_,isPending:S}=(0,b.useMutation)(t);h[1]!==_?(a=()=>{_({cancel:!1,reactivate:!0})},h[1]=_,h[2]=a):a=h[2];let C=a;h[3]===Symbol.for("react.memo_cache_sentinel")?(n=(0,r.jsx)(m.zM,{className:"bg-[#333333] hover:bg-[#444444] text-white rounded-md px-4 py-2 text-sm font-medium",children:"Reactivate Plan"}),h[3]=n):n=h[3],h[4]===Symbol.for("react.memo_cache_sentinel")?(l=(0,r.jsx)(m.L3,{className:"text-center text-3xl",children:"Are you sure?"}),h[4]=l):l=h[4];let $=v?.expiry_date;return h[5]!==$?(i=(0,g.Yq)($,{day:"numeric",month:"long",year:"numeric"}),h[5]=$,h[6]=i):i=h[6],h[7]!==i?(o=(0,r.jsxs)("div",{children:["Your current plan will be renewed on"," ",(0,r.jsx)("strong",{children:i})," ","after reactivation. Are you sure you want to proceed?"]}),h[7]=i,h[8]=o):o=h[8],h[9]!==S||h[10]!==C?(c=(0,r.jsx)(k.$,{className:"mt-4 px-9",disabled:S,onClick:C,children:"Confirm"}),h[9]=S,h[10]=C,h[11]=c):c=h[11],h[12]===Symbol.for("react.memo_cache_sentinel")?(d=(0,r.jsx)(k.$,{variant:"outline",className:"mt-4 px-9",onClick:()=>w(!1),children:"Cancel"}),h[12]=d):d=h[12],h[13]!==c?(u=(0,r.jsxs)("div",{className:"flex justify-around",children:[c,d]}),h[13]=c,h[14]=u):u=h[14],h[15]!==u||h[16]!==o?(x=(0,r.jsx)(m.Cf,{className:"bg-secondary-background",children:(0,r.jsxs)(m.c7,{children:[l,(0,r.jsxs)("div",{className:"text-[0.83rem] text-tertiary-text flex flex-col gap-3",children:[o,u]})]})}),h[15]=u,h[16]=o,h[17]=x):x=h[17],h[18]!==j||h[19]!==x?(p=(0,r.jsx)("div",{children:(0,r.jsxs)(m.lG,{open:j,onOpenChange:w,children:[n,x]})}),h[18]=j,h[19]=x,h[20]=p):p=h[20],p};function en(e){_.oR.error("Failed to reactivate subscription: "+e?.message)}function el(){_.oR.success("Subscription reactivated successfully")}var ei=a(29562);let eo=e=>{let t,a,n,l,i,o,c,d,u,x,p,f,y,v=(0,s.c)(38),{open:j,onOpenChange:w,data:S,checkoutOptions:C,additionalInfo:$,legacyWarning:P,discount:I}=e,[A,E]=(0,N.useState)(!1),[L,R]=(0,N.useState)(1);v[0]===Symbol.for("react.memo_cache_sentinel")?(t=["prorationConfirm"],v[0]=t):t=v[0],v[1]!==C||v[2]!==I?(a=()=>(0,ei.x4)({items:C,cancellation_discount:I}),v[1]=C,v[2]=I,v[3]=a):a=v[3],v[4]===Symbol.for("react.memo_cache_sentinel")?(n=async e=>{e?.invoice_status==="paid"?(_.oR.success("Plan upgraded successfully"),history.scrollRestoration="manual",await new Promise(ed),window.location.reload()):R(2)},v[4]=n):n=v[4],v[5]!==a?(l={mutationKey:t,mutationFn:a,onError:ec,onSuccess:n},v[5]=a,v[6]=l):l=v[6];let{mutate:q,isPending:z,data:U}=(0,b.useMutation)(l);$?.currency;let F=$?.currency==="inr"?"₹":"$";v[7]!==C?(i=C.some(eu),v[7]=C,v[8]=i):i=v[8];let M=i;v[9]!==F||v[10]!==S?.total?(o=()=>{"$"===F&&S?.total&&h.bv<=(0,g.$g)(S?.total)?E(!0):E(!1)},v[9]=F,v[10]=S?.total,v[11]=o):o=v[11],v[12]!==F||v[13]!==S?(c=[S,F],v[12]=F,v[13]=S,v[14]=c):c=v[14],(0,N.useEffect)(o,c),v[15]!==j?(d=()=>{j||R(1)},u=[j],v[15]=j,v[16]=d,v[17]=u):(d=v[16],u=v[17]),(0,N.useEffect)(d,u);let D=1===L?"Upgrade Cost Breakdown":"Payment";return v[18]!==D?(x=(0,r.jsx)(m.c7,{children:(0,r.jsx)(m.L3,{className:" text-center text-2xl",children:D})}),v[18]=D,v[19]=x):x=v[19],v[20]!==q||v[21]!==F||v[22]!==S||v[23]!==M||v[24]!==z||v[25]!==P||v[26]!==A||v[27]!==w||v[28]!==L||v[29]!==U?.invoice_url?(p=1===L?(0,r.jsxs)("div",{className:"w-full px-3",children:[(0,r.jsxs)("div",{className:"flex-col flex gap-2 max-sm:text-sm",children:[(0,r.jsxs)("div",{className:"grid grid-cols-3 gap-4 text-primary-text font-bold border-b border-border-100 p-2",children:[(0,r.jsx)("div",{className:"col-span-2 text-center",children:"Adjustments"}),(0,r.jsx)("div",{children:"Amount"})]}),S?.prorated_items.map((e,t)=>(0,r.jsxs)("div",{className:"grid grid-cols-3 gap-4 border-b border-border-200 p-2",children:[(0,r.jsx)("div",{className:"col-span-2",children:e.description}),(0,r.jsxs)("div",{className:"text-primary-text font-medium",children:[F," ",(0,g.$g)(e.amount)]})]},t)),M&&(0,r.jsx)("p",{className:"text-sm",children:"*(1 Monitoring Slot Pack includes 5 slots.)"}),(0,r.jsxs)("div",{className:"flex items-center mt-2",children:[(0,r.jsx)("div",{className:"font-medium w-32",children:"Starting Balance"}),(0,r.jsxs)("div",{className:"text-primary-text",children:[F," ",(0,g.$g)(S?.starting_balance)]})]}),(0,r.jsxs)("div",{className:"flex items-center",children:[(0,r.jsx)("div",{className:"font-medium w-32",children:"Sub Total"}),(0,r.jsxs)("div",{className:"text-primary-text",children:[F," ",(0,g.$g)(S?.subtotal)," + Tax (",S?.tax?`${F} ${(0,g.$g)(S?.tax)}`:`${F}0`,")"]})]}),S.discount&&(0,r.jsxs)("div",{className:"flex items-center",children:[(0,r.jsx)("div",{className:"font-medium w-32",children:"Discount"}),(0,r.jsxs)("div",{className:"text-primary-text",children:[F," - ",(0,g.$g)(S.discount)]})]}),(0,r.jsxs)("div",{className:"flex items-center",children:[(0,r.jsx)("div",{className:"font-medium w-32",children:"Total Due"}),(0,r.jsxs)("div",{className:"text-primary-text",children:[F," ",(0,g.$g)(S?.total)]})]})]}),P&&(0,r.jsxs)("div",{className:"flex flex-col gap-2 text-xs mt-3",children:[(0,r.jsxs)("p",{children:[(0,r.jsx)("span",{className:"text-destructive",children:"*"}),P]}),(0,r.jsxs)("span",{children:[(0,r.jsx)(T(),{className:"text-theme-tertiary hover:underline",href:"https://speedvitals.com/blog/upcoming-price-changes-2025",target:"_blank",children:"Click here"})," ","to learn more about the changes in our pricing."]})]}),A?(0,r.jsxs)("div",{className:"flex flex-col gap-2 mt-2 max-w-3xl border border-yellow-500 p-2 rounded-md bg-yellow-500/10 ",children:[(0,r.jsxs)("p",{className:"text-primary-text p-2",children:["The total amount exceeds the limit of $",h.bv,". Please contact sales to proceed."]}),(0,r.jsx)(T(),{href:"/contact-us",prefetch:!1,children:(0,r.jsx)("span",{className:"inline-flex items-center justify-center rounded-md bg-primary text-primary-foreground hover:bg-primary/90 h-10 px-4 py-2",children:"Contact Sales"})})]}):(0,r.jsxs)("div",{className:"w-full max-w-lg mx-auto justify-between items-center mt-6 gap-3 flex",children:[(0,r.jsx)(k.$,{disabled:z,className:"px-10",onClick:()=>q(),children:z?"Upgrading...":"Confirm"}),(0,r.jsx)(k.$,{className:"px-10",variant:"outline",onClick:()=>w(!1),children:"Cancel"})]})]}):(0,r.jsxs)("div",{className:"flex flex-col items-center justify-center gap-4",children:[(0,r.jsx)("p",{children:"Refresh the page after making payment."}),(0,r.jsx)("a",{className:"bg-foreground rounded-sm text-background p-1 px-3",target:"_blank",rel:"noreferrer",href:U?.invoice_url,children:"Make Payment"})]}),v[20]=q,v[21]=F,v[22]=S,v[23]=M,v[24]=z,v[25]=P,v[26]=A,v[27]=w,v[28]=L,v[29]=U?.invoice_url,v[30]=p):p=v[30],v[31]!==x||v[32]!==p?(f=(0,r.jsxs)(m.Cf,{className:"w-full sm:max-w-4xl bg-secondary-background",onInteractOutside:em,children:[x,p]}),v[31]=x,v[32]=p,v[33]=f):f=v[33],v[34]!==w||v[35]!==j||v[36]!==f?(y=(0,r.jsx)(m.lG,{open:j,onOpenChange:w,children:f}),v[34]=w,v[35]=j,v[36]=f,v[37]=y):y=v[37],y};function ec(e){_.oR.error(e?.message)}function ed(e){return setTimeout(e,3e3)}function eu(e){return e.id.includes("lighthouse_monitoring_slots")&&e.quantity>0}function em(e){return e.preventDefault()}var ex=a(86634),ep=a(3471),ef=a(83234),eh=a(71945);let eg=[{id:"item-1",question:"What Credit Cards does SpeedVitals Support?",answer:(0,r.jsx)("span",{children:"SpeedVitals supports Visa, Mastercard, American Express, Diners Club, UnionPay, and Jap
1an Credit Bureau."})},{id:"item-2",question:"How do I cancel my plan?",answer:(0,r.jsx)("span",{children:"You can prevent plan renewal by clicking on the Cancel Button on Plans Page. You will still be able to access all the features until the Plan Expiry Date."})},{id:"item-3",question:"What is your Refund Policy?",answer:(0,r.jsxs)("span",{children:["You can claim a refund within 3 Days without any questions asked provided that you haven't used more than 20% of your allocated Credits in that plan. You can learn more about our our"," ",(0,r.jsx)(T(),{prefetch:!1,className:"text-theme-tertiary hover:underline",href:"/refund-policy",children:"Refund Policy here"}),"."]})},{id:"item-4",question:"What if I upgrade or downgrade my plan in the middle of Plan Duration?",answer:(0,r.jsxs)("span",{children:["Yes, you can upgrade your plan anytime in between the Plan Duration. You will only be charged for the remaining time on the new plan and the cost of unused time of the previous plan will get subtracted from it.",(0,r.jsx)("br",{}),(0,r.jsx)("br",{}),"In case you downgrade a plan, the extra amount you paid for the remaining time on the previous plan will get added to your account balance and will automatically get adjusted on the next invoice."]})},{id:"item-5",question:"Do you offer trial plans?",answer:(0,r.jsx)("span",{children:"No, we do not offer trial plans. But if you're interested in trying paid features, you can let us know and we will temporarily upgrade your plan to try out premium features."})},{id:"item-6",question:"What if I don't like the plan?",answer:(0,r.jsxs)("span",{children:["If you don't like a plan and if you cancel it within 3 Days of Subscription (with less than 20% Credits Utilized), you'll get Full Refund after"," ",(0,r.jsx)(T(),{prefetch:!1,className:"text-theme-tertiary hover:underline",href:"/contact-us",children:"contacting us"}),". If you do not meet the criteria, you can still cancel a Plan and you will not be charged from the next billing cycle but you won't receive a refund."]})},{id:"item-7",question:"How do you ensure the Security of my Payment Details?",answer:(0,r.jsxs)("span",{children:["SpeedVitals does not store your Payment Details. Your Credit Card information is safely stored at our Payment Processing Platform ",(0,r.jsx)("b",{children:"Stripe"})," with a AES-256 Encryption. You can learn more about"," ",(0,r.jsx)(T(),{className:"text-theme-tertiary hover:underline",href:"https://stripe.com/docs/security",target:"_blank",rel:"noopener noreferrer",children:"Stripe's Security Policy here"}),"."]})},{id:"item-8",question:"How can I change my Payment Details or Billing Address?",answer:(0,r.jsxs)("span",{children:["To change your Payment Method/Details or your Billing Address, please"," ",(0,r.jsx)(T(),{prefetch:!1,className:"text-theme-tertiary hover:underline",href:"/contact-us",children:"contact us"}),"."]})}],ey=()=>{let e,t,a,n,i,m,x,p,f,v,_,S,C,P,I,A,E,L,R,q,z,U,F,M,D,O,V,B,Q,H,J,Z,X,ee,et,ea,en,el,ec,ed,eu,em,ey,ew=(0,s.c)(130),{user:eC,isLoggedIn:e$,loading:eP,planDetails:eI}=(0,Y.A)(),[eA,eE]=(0,N.useState)(!1),eL=(0,N.useRef)(null),eR=(0,N.useRef)(null),[eq,ez]=(0,N.useState)("");ew[0]===Symbol.for("react.memo_cache_sentinel")?(e=[],ew[0]=e):e=ew[0];let[eU,eF]=(0,N.useState)(e),[eT,eM]=(0,N.useState)(null),[eD,eO]=(0,N.useState)(null),[eW,eV]=(0,N.useState)("month"),[eB,eY]=(0,N.useState)(!1),[eQ,eG]=(0,N.useState)(),[eH,eJ]=(0,N.useState)(),eK=(0,w.useRouter)(),eZ=eC?.customClaims?.customPlan??null;ew[1]===Symbol.for("react.memo_cache_sentinel")?(t=["additionalPlanInfo"],ew[1]=t):t=ew[1];let eX=!!eC;ew[2]!==eX?(a={queryKey:t,queryFn:y.rg,enabled:eX},ew[2]=eX,ew[3]=a):a=ew[3];let{data:e0,isLoading:e1}=(0,eh.useQuery)(a);e:{if(eZ){n=h.fH[eZ];break e}n=h.NB}let e2=n;t:{if(!e0?.plan){i=null;break t}i=h.vq?.[e0?.plan]}let e3=i;ew[4]===Symbol.for("react.memo_cache_sentinel")?(m=()=>{eL.current?.scrollIntoView({behavior:"smooth"})},ew[4]=m):m=ew[4];let e5=m;ew[5]===Symbol.for("react.memo_cache_sentinel")?(x=()=>{eR.current?.scrollIntoView({behavior:"smooth"})},ew[5]=x):x=ew[5];let e4=x;ew[6]===Symbol.for("react.memo_cache_sentinel")?(p={mutationFn:ei.gz,onError:eb,onSuccess:()=>{eE(!0)}},ew[6]=p):p=ew[6];let{mutate:e9,data:e6,isPending:e7}=(0,b.useMutation)(p);ew[7]!==e0?.plan||ew[8]!==eW||ew[9]!==eD||ew[10]!==e$||ew[11]!==eK||ew[12]!==eH?.value||ew[13]!==eQ?.value||ew[14]!==e9||ew[15]!==eC?(f=e=>{if(!e?.slug){window.location.href="/";return}if(!eC&&!e$)return void eK.push("/login?redirect=/plans");if((0,ep.tc)(e.slug)){let t=e.slug;"starter_v1"===t?ez("You're currently on our Legacy Plan which offers more test locations and devices. If you switch to the new plan, you will not be able to go back to the legacy plan."):"growth_v1"===t?ez("You're currently on our Legacy Plan which costs less but offers less test locations & devices. If you switch to the new plan, you will not be able to go back to the legacy plan."):ez("You're currently on our Legacy Plan. If you switch to the new plan, you will not be able to go back to the legacy plan.")}else ez("");let t=e0?.plan==="free";eM(e.slug);let a="month"===eW?"monthly":"yearly",r=eD&&eD.billingCycles.includes(eW)?eD.value:void 0,s=eH?.value||0,n=eQ?.value||0,l=[{id:`${e.slug}_plan_${a}`,quantity:1},...s>0?[{id:`lighthouse_monitoring_slots_v1_addon_${a}`,quantity:s}]:[],...n>0&&(0,ep.y0)(e.slug,h.vq.pro.planHierarchy)?[{id:`rum_500k_page_views_v1_addon_${a}`,quantity:n}]:[]];if((0,ex.Q5)(t?"checkout_started":"upgrade_started",{plan:e.slug,billing_cycle:a,monitoring_slots:s,rum_page_views:n}),t){let e=`/checkout?checkout=${encodeURIComponent(JSON.stringify(l))}&success_redirect=/plans`;eK.push(e)}else eF(l),e9({items:l,cancellation_discount:r})},ew[7]=e0?.plan,ew[8]=eW,ew[9]=eD,ew[10]=e$,ew[11]=eK,ew[12]=eH?.value,ew[13]=eQ?.value,ew[14]=e9,ew[15]=eC,ew[16]=f):f=ew[16];let e8=f;ew[17]===Symbol.for("react.memo_cache_sentinel")?(v=()=>{eE(!1),e4(),eV("year")},ew[17]=v):v=ew[17];let te=v;ew[18]!==eW||ew[19]!==eD||ew[20]!==e9?(_=e=>{let t="month"===eW?"monthly":"yearly",a=eD&&eD.billingCycles.includes(eW)?eD.value:void 0,r=[{id:`${e}_plan_${t}`,quantity:1}];eM(e),eF(r),e9({items:r,cancellation_discount:a})},ew[18]=eW,ew[19]=eD,ew[20]=e9,ew[21]=_):_=ew[21];let tt=_;a:{let e,t,a;
1if(!e0?.items?.length){let e;ew[22]===Symbol.for("react.memo_cache_sentinel")?(e=[],ew[22]=e):e=ew[22],S=e;break a}if(e0?.plan?.length<2){let e;ew[23]===Symbol.for("react.memo_cache_sentinel")?(e=[],ew[23]=e):e=ew[23],S=e;break a}ew[24]!==e0.items?(e=e0.items.find(ev)?.quantity||null,ew[24]=e0.items,ew[25]=e):e=ew[25];let r=e;ew[26]!==e0.items?(t=e0.items?.find(ej)?.quantity,ew[26]=e0.items,ew[27]=t):t=ew[27];let s=t;if(ew[28]!==r||ew[29]!==s){if(a=[],r){let e;ew[31]!==r?(e=h.S3.find(e=>e.value===r),ew[31]=r,ew[32]=e):e=ew[32];let t=e;if(t){let e;ew[33]!==t.slots?(e={title:t.slots},ew[33]=t.slots,ew[34]=e):e=ew[34],a.push(e)}}if(s){let e;ew[35]!==s?(e=h.QL.find(e=>e.value===s),ew[35]=s,ew[36]=e):e=ew[36];let t=e;if(t){let e;ew[37]!==t.pageViews?(e={title:t.pageViews},ew[37]=t.pageViews,ew[38]=e):e=ew[38],a.push(e)}}ew[28]=r,ew[29]=s,ew[30]=a}else a=ew[30];S=a}let ta=S,tr=e0?.plan==="free";ew[39]!==e0?.billing_interval||ew[40]!==e0?.items?.[1]?.quantity||ew[41]!==e0?.items?.[2]?.quantity||ew[42]!==eW||ew[43]!==eI?.data?.plan||ew[44]!==eH||ew[45]!==eQ?(C=(e,t,a)=>{let r=t&&eQ?.value===e0?.items?.[2]?.quantity,s=a&&eH?.value===e0?.items?.[1]?.quantity;return eI?.data?.plan===e&&e0?.billing_interval===eW&&(!eQ||r)&&(!eH||s)},ew[39]=e0?.billing_interval,ew[40]=e0?.items?.[1]?.quantity,ew[41]=e0?.items?.[2]?.quantity,ew[42]=eW,ew[43]=eI?.data?.plan,ew[44]=eH,ew[45]=eQ,ew[46]=C):C=ew[46];let ts=C;ew[47]===Symbol.for("react.memo_cache_sentinel")?(P=[],ew[47]=P):P=ew[47],(0,N.useEffect)(eN,P),ew[48]!==e0?.billing_interval?(I=()=>{e0?.billing_interval==="year"&&eV("year")},ew[48]=e0?.billing_interval,ew[49]=I):I=ew[49];let tn=e0?.billing_interval;ew[50]!==tn?(A=[tn],ew[50]=tn,ew[51]=A):A=ew[51],(0,N.useEffect)(I,A);let{currentWorkspace:tl}=(0,ef.M)();if(eC&&tl&&"owner"!==tl.role){let e,t,a;return ew[52]===Symbol.for("react.memo_cache_sentinel")?(e=(0,r.jsx)("h1",{className:"text-3xl font-bold",children:"Manage Your Plan"}),t=(0,r.jsx)("p",{className:"text-secondary-text max-w-md",children:"The plans page is only accessible to the workspace owner. Please switch to a workspace you own to manage billing and plans."}),ew[52]=e,ew[53]=t):(e=ew[52],t=ew[53]),ew[54]===Symbol.for("react.memo_cache_sentinel")?(a=(0,r.jsxs)("div",{className:"flex flex-col items-center justify-center min-h-[calc(100vh-200px)] gap-4 text-center px-4",children:[e,t,(0,r.jsx)(T(),{href:"/account/workspace",children:(0,r.jsx)("span",{className:"inline-flex items-center justify-center rounded-md bg-primary text-primary-foreground hover:bg-primary/90 h-10 px-4 py-2",children:"Go to Workspaces"})})]}),ew[54]=a):a=ew[54],a}ew[55]===Symbol.for("react.memo_cache_sentinel")?(E=(0,r.jsx)(d.default,{redirect:"unauthenticated",redirectTo:"/pricing"}),ew[55]=E):E=ew[55],ew[56]!==e0||ew[57]!==ta||ew[58]!==tt||ew[59]!==tr||ew[60]!==e1||ew[61]!==e3||ew[62]!==eC?(L=(e0&&e3||eC&&e1)&&(0,r.jsxs)("div",{className:"w-full flex flex-col gap-4",children:[(0,r.jsx)("h2",{className:"text-4.5xl font-bold text-primary-text text-center",children:"Current Plan"}),(0,r.jsxs)("div",{className:"border border-border-100 max-w-3xl w-full mx-auto rounded-md p-5 flex flex-col gap-4 bg-secondary-background",children:[e1?(0,r.jsx)(G.E,{className:"h-9 w-1/4 mx-auto"}):(0,r.jsxs)("div",{className:"flex justify-center items-center gap-2",children:[e3&&(0,r.jsx)(o.A,{src:e3?.icon,alt:e3?.name,height:30,width:30}),(0,r.jsx)("span",{className:"font-bold text-3xl",children:e3?.name})]}),(0,r.jsx)("div",{className:"flex flex-col gap-2 justify-center w-fit mx-auto",children:ta.map(e_)}),e1?(0,r.jsx)(G.E,{className:"h-6 w-1/2 mx-auto"}):!tr&&(0,r.jsxs)("div",{className:"flex justify-center gap-2",children:[(0,r.jsx)("span",{className:"font-medium text-base w-fit",children:e0?.cancel_at_period_end?"End Date:":"Renewal Date:"}),(0,r.jsx)("span",{className:"font-normal text-primary-text text-base w-fit",children:(0,g.Yq)(e0?.expiry_date,{day:"numeric",month:"long",year:"numeric"})})]}),e1?(0,r.jsxs)("div",{className:"flex justify-center gap-2",children:[(0,r.jsx)(G.E,{className:"h-9 w-32"}),(0,r.jsx)(G.E,{className:"h-9 w-32"})]}):(0,r.jsxs)("div",{className:"flex justify-center gap-2",children:[(0,r.jsx)(k.$,{className:"bg-[#337dd3] text-white",onClick:e4,children:"Upgrade Plan"}),e0?.cancel_at_period_end?(0,r.jsx)(es,{additionalPlanInfo:e0}):!tr&&(0,r.jsx)($,{additionalPlanInfo:e0,onActivateDiscount:e=>eO(e),onChooseDiscountedPlan:te,onSelectSpecialPlan:tt})]})]})]}
1),ew[56]=e0,ew[57]=ta,ew[58]=tt,ew[59]=tr,ew[60]=e1,ew[61]=e3,ew[62]=eC,ew[63]=L):L=ew[63],ew[64]===Symbol.for("react.memo_cache_sentinel")?(R=(0,r.jsxs)("div",{className:"flex flex-col justify-center items-center gap-4 mt-10",children:[(0,r.jsx)("h1",{className:"text-5xl max-md:text-4.5xl text-primary-text font-bold text-center",children:"SpeedVitals Pricing"}),(0,r.jsx)("h2",{className:"text-lg max-md:text-base text-secondary-text font-normal",children:"Get started for free. No credit card required."})]}),ew[64]=R):R=ew[64],ew[65]===Symbol.for("react.memo_cache_sentinel")?(q=(0,r.jsxs)("div",{className:"bg-[#FFC008] text-black border-[#C9A94C] border-2 flex items-center justify-center gap-2 rounded-sm text-2xs py-1 px-3 mt-4 w-fit",children:[(0,r.jsx)("img",{src:"/images/pricing/sparkles.svg",alt:"Plans",className:"size-4"}),(0,r.jsx)("span",{className:"font-bold",children:"Get 2 months FREE with yearly"})]}),ew[65]=q):q=ew[65];let ti=`absolute top-1 bottom-1 bg-white dark:bg-[#333333] border-[#CCCCCC] dark:border-[#555555] border rounded-xs transition-all duration-300 ease-in-out ${"month"===eW?"left-1 right-[calc(50%+2px)]":"right-1 left-[calc(50%+8px)]"}`;if(ew[66]!==ti?(z=(0,r.jsx)("div",{className:ti}),ew[66]=ti,ew[67]=z):z=ew[67],ew[68]===Symbol.for("react.memo_cache_sentinel")?(U=(0,r.jsx)("button",{className:"relative z-10 text-[0.9rem] font-bold py-[6px] px-5 rounded-xs transition-colors duration-300 ",onClick:()=>eV("month"),children:"Monthly"}),ew[68]=U):U=ew[68],ew[69]===Symbol.for("react.memo_cache_sentinel")?(F=(0,r.jsx)("button",{className:"relative z-10 text-[0.9rem] font-bold py-1 px-5 rounded-xs transition-colors duration-300 ",onClick:()=>eV("year"),children:"Yearly"}),ew[69]=F):F=ew[69],ew[70]!==z?(M=(0,r.jsxs)("div",{className:"relative flex items-center justify-center gap-4 px-1 py-[1.5px] bg-[#eaeaea] dark:bg-secondary-background rounded-[4px] border-[#cccccc] border-2 dark:border-[#444444]",children:[z,U,F]}),ew[70]=z,ew[71]=M):M=ew[71],ew[72]===Symbol.for("react.memo_cache_sentinel")?(D=(0,r.jsx)("img",{src:"images/pricing/tilted-arrow.svg",alt:"arrow",className:"absolute top-9 -right-10 rotate-12 dark:invert"}),ew[72]=D):D=ew[72],ew[73]!==M?(O=(0,r.jsxs)("div",{className:"flex flex-col gap-2",children:[R,(0,r.jsxs)("div",{className:"flex flex-col items-center justify-center gap-4 relative w-fit mx-auto",children:[q,M,D]})]}),ew[73]=M,ew[74]=O):O=ew[74],ew[75]!==eW||ew[76]!==eD||ew[77]!==e8||ew[78]!==eP||ew[79]!==ts||ew[80]!==e7||ew[81]!==e2||ew[82]!==eH||ew[83]!==eQ||ew[84]!==eB||ew[85]!==eT){let e;ew[87]!==eW||ew[88]!==eD||ew[89]!==e8||ew[90]!==eP||ew[91]!==ts||ew[92]!==e7||ew[93]!==eH||ew[94]!==eQ||ew[95]!==eB||ew[96]!==eT?(e=e=>eP?(0,r.jsx)(G.E,{className:"flex-1 lg:max-w-[17.5rem] w-full min-w-[17.5rem] h-[500px] rounded-md"},e.name):(0,r.jsx)(er,{plan:e,discount:eD,billingCycle:eW,isCurrentPlan:ts(e.slug,e.addons?.includes("extra-rum-page-views")||!1,e.addons?.includes("extra-monitoring-slots")||!1),handlePlanSelection:e8,isAuthLoading:eP,isUpgrading:e7,upgradingPlan:eT,setShowAddons:eY,showAddons:eB,hasExtraRUMAddOn:function(e){return e.addons?.includes("extra-rum-page-views")||e.addons?.includes("extra-monitoring-slots")}(e),selectedExtraMonitoringSlots:eH,setSelectedExtraMonitoringSlots:e=>eJ({slots:e.slots,value:e.value}),selectedExtraRUMPageViews:eQ,setSelectedExtraRUMPageViews:e=>eG({pageViews:e.pageViews,value:e.value})},e.name),ew[87]=eW,ew[88]=eD,ew[89]=e8,ew[90]=eP,ew[91]=ts,ew[92]=e7,ew[93]=eH,ew[94]=eQ,ew[95]=eB,ew[96]=eT,ew[97]=e):e=ew[97],V=e2.map(e),ew[75]=eW,ew[76]=eD,ew[77]=e8,ew[78]=eP,ew[79]=ts,ew[80]=e7,ew[81]=e2,ew[82]=eH,ew[83]=eQ,ew[84]=eB,ew[85]=eT,ew[86]=V}else V=ew[86];return ew[98]!==V?(B=(0,r.jsx)("div",{className:"max-w-7xl w-full flex flex-wrap justify-center gap-4 mx-auto items-stretch",ref:eR,children:V}),ew[98]=V,ew[99]=B):B=ew[99],ew[100]!==eZ?(Q=null==eZ&&(0,r.jsxs)("button",{className:"w-fit mx-auto rounded-sm border-black dark:border-gray-500 border-2 flex gap-2 items-center justify-center px-4 py-2 text-base font-semibold text-secondary-text hover:bg-secondary-background transition-colors duration-300 bg-[#f2f5f9] dark:bg-[#111111]",onClick:e5,children:["Compare Plans ",(0,r.jsx)(K.A,{size:16})]}),ew[100]=eZ,ew[101]=Q):Q=ew[101],ew[102]===Symbol.for("react.memo_cache_sentinel")?(H=(0,r.jsx)("div",{className:"max-w-6xl mx-auto w-full grid grid-cols-1 md:grid-cols-3 gap-5 mt-10",children:h.UW.map(ek)}),ew[102]=H):H=ew[102],ew[103]===Symbol.for("react.memo_cache_sentinel")?(J={background:"linear-gradient(to bottom, #67E3F133 0%, transparent 50%, transparent 100%)"},ew[103]=J):J=ew[103],ew[104]===Symbol.for("react.memo_cache_sentinel")?(Z=(0,r.jsxs)("div",{className:"bg-[#333333] text-white p-1 flex justify-center items-center gap-2 w-fit roun
1ded-md",children:[(0,r.jsx)("img",{src:"/images/pricing/factory.svg",alt:"Enterprise Solution",className:"object-cover size-4"}),(0,r.jsx)("span",{className:"text-[12px] font-medium",children:"Enterprise Solution"})]}),ew[104]=Z):Z=ew[104],ew[105]===Symbol.for("react.memo_cache_sentinel")?(X=(0,r.jsxs)("div",{className:"flex flex-col gap-3 w-full",children:[Z,(0,r.jsxs)("div",{className:"flex flex-col gap-5",children:[(0,r.jsx)("h3",{className:"text-2xl font-bold text-primary-text",children:"Need a custom plan?"}),(0,r.jsx)("p",{className:"text-secondary-text text-sm font-medium max-w-lg",children:"We offer tailored solutions for large organizations with specific requirements. Get dedicated support, custom integrations, and enterprise-grade security."}),(0,r.jsx)(T(),{target:"_blank",href:"/contact-us",prefetch:!1,className:"bg-black text-white dark:bg-white/90 dark:text-black font-semibold text-2xs px-8 py-2.5 rounded-[4px] w-fit",onClick:eS,children:"Contact Sales"})]})]}),ew[105]=X):X=ew[105],ew[106]===Symbol.for("react.memo_cache_sentinel")?(ee=(0,r.jsx)("h4",{className:"text-sm font-medium text-nowrap",children:"Everything from Ultimate plan, plus"}),ew[106]=ee):ee=ew[106],ew[107]===Symbol.for("react.memo_cache_sentinel")?(et=(0,r.jsxs)("li",{className:"flex gap-2 items-center",children:[(0,r.jsx)(j.A,{size:15,strokeWidth:3,className:"text-tone-green"}),"Dedicated account manager"]}),ew[107]=et):et=ew[107],ew[108]===Symbol.for("react.memo_cache_sentinel")?(ea=(0,r.jsxs)("li",{className:"flex gap-2 items-center",children:[(0,r.jsx)(j.A,{size:15,strokeWidth:3,className:"text-tone-green"}),"Request custom integrations"]}),ew[108]=ea):ea=ew[108],ew[109]===Symbol.for("react.memo_cache_sentinel")?(en=(0,r.jsxs)("div",{className:"border border-dashed border-border-100 px-10 py-12 max-w-6xl mx-auto rounded-md flex max-sm:flex-col justify-center gap-y-5 sm:items-center w-full dark:bg-primary-background",style:J,children:[X,(0,r.jsxs)("div",{className:"bg-secondary-background py-5 px-4 shadow-md",children:[ee,(0,r.jsxs)("ul",{className:"list-disc pl-5 text-sm font-medium text-secondary-text flex flex-col gap-2 mt-3",children:[et,ea,(0,r.jsxs)("li",{className:"flex gap-2 items-center",children:[(0,r.jsx)(j.A,{size:15,strokeWidth:3,className:"text-tone-green"}),"Request custom features"]})]})]})]}),el=(0,r.jsx)(l,{faqItems:eg}),ew[109]=en,ew[110]=el):(en=ew[109],el=ew[110]),ew[111]!==eZ?(ec=!eZ&&(0,r.jsx)("div",{ref:eL,className:"w-full max-sm:overflow-x-auto",children:(0,r.jsx)(W,{})}),ew[111]=eZ,ew[112]=ec):ec=ew[112],ew[113]!==e0||ew[114]!==eW||ew[115]!==eU||ew[116]!==eD||ew[117]!==eq||ew[118]!==eA||ew[119]!==e6?(ed=e6&&e0&&(0,r.jsx)(eo,{discount:eD&&eD.billingCycles.includes(eW)?eD.value:void 0,data:e6,checkoutOptions:eU,open:eA,additionalInfo:e0,onOpenChange:eE,legacyWarning:eq}),ew[113]=e0,ew[114]=eW,ew[115]=eU,ew[116]=eD,ew[117]=eq,ew[118]=eA,ew[119]=e6,ew[120]=ed):ed=ew[120],ew[121]===Symbol.for("react.memo_cache_sentinel")?(eu=(0,r.jsx)(u.A,{}),em=(0,r.jsx)(c.default,{}),ew[121]=eu,ew[122]=em):(eu=ew[121],em=ew[122]),ew[123]!==L||ew[124]!==O||ew[125]!==B||ew[126]!==Q||ew[127]!==ec||ew[128]!==ed?(ey=(0,r.jsxs)("div",{className:"pb-14 pt-7 flex flex-col gap-8 px-3 sm:px-5 bg-secondary-background",children:[E,L,O,B,Q,H,en,el,ec,ed,eu,em]}),ew[123]=L,ew[124]=O,ew[125]=B,ew[126]=Q,ew[127]=ec,ew[128]=ed,ew[129]=ey):ey=ew[129],ey};function eb(e){_.oR.error(e.message)}function ev(e){return e.id?.startsWith("lighthouse_monitoring_slots")}function ej(e){return e.id?.startsWith("rum_")}function ew(){f.queryClient.invalidateQueries({queryKey:["additionalPlanInfo"]})}function eN(){let e=setTimeout(ew,5e3);return()=>{clearTimeout(e)}}function e_(e){return(0,r.jsxs)("div",{className:"",children:["+ ",(0,r.jsx)("span",{className:"font-medium",children:e.title})]},e.title)}function ek(e){return(0,r.jsxs)("div",{className:"flex flex-col gap-2 bg-[#f2f5f9] dark:bg-[#333333] p-4 rounded-md max-w-sm shadow-sm mx-auto",children:[(0,r.jsxs)("p",{className:"text-base font-semibold text-secondary-text h-40",children:['"',e.testimonial,'"']}),(0,r.jsxs)("div",{className:"border-b border-secondary-text pb-2 mb-2",children:[(0,r.jsx)("p",{className:"text-sm text-tertiary-text font-medium",children:e.name}),(0,r.jsx)("p",{className:"text-xs text-secondary-text",children:e.position})]}),(0,r.jsx)("div",{children:(0,r.jsxs)("div",{className:"flex items-center gap-2 justify-between px-3",children:[(0,r.jsx)(o.A,{src:e.company.darkLogo,alt:e.company.name,width:100,height:40,className:"object-cover hidden dark:block"}),(0,r.jsx)(o.A,{src:e.company.lightLogo,alt:e.company.name,width:100,height:80,className:"object-cover block dark:hidden"}),(0,r.jsx)(o.A,{src:e.image,alt:e.name,width:40,height:40,className:"object-contain rounded-full"})]})})]},e.name)}function eS(){return(0,ex.Q5)("enterprise_contact_clicked",{location:"plans_enterprise_card"})}},29562:(e,t,a)=>{a.d(t,{Do:()=>u,H5:()=>n,Lx:()=>m,Pt:()=>s,cr:()=>i,gI:()=>l,gz:()=>c,x4:()=>d,yS:()=>o});var r=a(52625);let s=async e=>{let t={items:JSON.stringify(e)};return(await r.u.post("/checkout",t)).data},n=async e=>(await r.u.post("/account/billing-info",e)).data,l=async()=>(await r.u.get("/account/billing-info")).data,i=async()=>(await r.u.get("/misc/countries")).data,o=async e=>(await r.u.post("/purchase",e)).data,c=async e=>(await r.u.post("/preview-proration",e)).data,d=async e=>(await r.u.post("/confirm-proration",e)).data,u=async()=>(await r.u.get("/account/billing")).data,m=async e=>(await r.u.downloadBinary(`/receipt/${e}`)).data},67170:(e,t,a)=>{a.d(t,{T:()=>l});var r=a(95155),s=a(19749);a(12115);var n=a(8191);function l(e){let t,a,l,i,o=(0,s.c)(8);return o[0]!==e?({className:t,...a}=e,o[0]=e,o[1]=t,o[2]=a):(t=o[1],a=o[2]),o[3]!==t?(l=(0,n.cn)("border-border-300 placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[0.5px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",t),o[3]=t,o[4]=l):l=o[4],o[5]!==a||o[6]!==l?(i=(0,r.jsx)("textarea",{"data-slot":"textarea",className:l,...a}),o[5]=a,o[6]=l,o[7]=i):i=o[7],i}},67721:(e,t,a)=>{a.d(t,{E:()=>l});var r=a(95155),s=a(19749),n=a(8191);let l=(0,a(12115).memo)(function(e){let t,a,l,i,o=(0,s.c)(8);return o[0]!==e?({className:t,...a}=e,o[0]=e,o[1]=t,o[2]=a):(t=o[1],a=o[2]),o[3]!==t?(l=(0,n.cn)("bg-accent animate-pulse rounded-md inline-block",t),o[3]=t,o[4]=l):l=o[4],o[5]!==a||o[6]!==l?(i=(0,r.jsx)("span",{"data-slot":"skeleton",className:l,...a}),o[5]=a,o[6]=l,o[7]=i):i=o[7],i})},69115:(e,t,a)=>{a.d(t,{V:()=>o});var r=a(95155),s=a(19749),n=a(9313),l=a(8191),i=a(81705);let o=e=>{let t,a,o,c,d=(0,s.c)(10),{value:u,size:m,contentClassName:x}=e,p=m||15;return d[0]!==p?(t=(0,r.jsx)(n.k$,{className:"inline-flex items-center gap-1 cursor-pointer",tabIndex:-1,
1children:(0,r.jsx)(i.A,{className:"text-secondary-text",size:p})}),d[0]=p,d[1]=t):t=d[1],d[2]!==x?(a=(0,l.cn)("bg-primary-background text-secondary-text border border-border-theme rounded-md px-3 py-1.5 text-xs pointer-events-auto max-w-sm w-auto text-pretty",x),d[2]=x,d[3]=a):a=d[3],d[4]!==a||d[5]!==u?(o=(0,r.jsx)(n.ZI,{className:a,children:u}),d[4]=a,d[5]=u,d[6]=o):o=d[6],d[7]!==t||d[8]!==o?(c=(0,r.jsxs)(n.m_,{children:[t,o]}),d[7]=t,d[8]=o,d[9]=c):c=d[9],c}},71219:(e,t,a)=>{a.d(t,{C:()=>c,z:()=>o});var r=a(95155),s=a(19749),n=a(53500),l=a(64701);a(12115);var i=a(8191);function o(e){let t,a,l,o,c=(0,s.c)(8);return c[0]!==e?({className:t,...a}=e,c[0]=e,c[1]=t,c[2]=a):(t=c[1],a=c[2]),c[3]!==t?(l=(0,i.cn)("grid gap-3",t),c[3]=t,c[4]=l):l=c[4],c[5]!==a||c[6]!==l?(o=(0,r.jsx)(n.bL,{"data-slot":"radio-group",className:l,...a}),c[5]=a,c[6]=l,c[7]=o):o=c[7],o}function c(e){let t,a,o,c,d,u=(0,s.c)(9);return u[0]!==e?({className:t,...a}=e,u[0]=e,u[1]=t,u[2]=a):(t=u[1],a=u[2]),u[3]!==t?(o=(0,i.cn)("border-input text-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 aspect-square size-4 shrink-0 rounded-full border-2 shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",t),u[3]=t,u[4]=o):o=u[4],u[5]===Symbol.for("react.memo_cache_sentinel")?(c=(0,r.jsx)(n.C1,{"data-slot":"radio-group-indicator",className:"relative flex items-center justify-center",children:(0,r.jsx)(l.A,{fill:"var(--primary)",className:"fill-primary absolute top-1/2 left-1/2 size-2.5 -translate-x-1/2 -translate-y-1/2"})}),u[5]=c):c=u[5],u[6]!==a||u[7]!==o?(d=(0,r.jsx)(n.q7,{"data-slot":"radio-group-item",className:o,...a,children:c}),u[6]=a,u[7]=o,u[8]=d):d=u[8],d}},71496:(e,t,a)=>{a.d(t,{Ie:()=>n,Is:()=>o,JF:()=>s,eg:()=>d,hU:()=>x,iL:()=>i,l2:()=>c,pU:()=>m,rg:()=>u});var r=a(52625);let s=async()=>(await r.u.get("/account/api-key")).data,n=async()=>(await r.u.post("/account/api-key")).data,l=async e=>{let t=await r.u.get(e);if("success"!==t.data.status)throw Error("Failed to fetch user credits");return t.data.data},i=async()=>l("/account/get-credits"),o=async e=>l(`/account/get-credits?ws_id=${encodeURIComponent(e)}`),c=async()=>{let e=await r.u.get("/account/profile");if("success"!==e.data.status)throw Error("Failed to fetch user profile");return e.data.data},d=async e=>{let t=await r.u.post("/update-profile",e);if("success"!==t.data.status)throw Error("Failed to update user profile");return t.data.data},u=async()=>(await r.u.get("/plans")).data,m=async e=>(await r.u.post("/cancel-subscription",e)).data,x=async()=>(await r.u.post("/ping")).data},78392:(e,t,a)=>{a.d(t,{A:()=>m});var r=a(95155),s=a(19749),n=a(25856),l=a(64144),i=a(58079),o=a(35447),c=a(82222),d=a(12115);let u=()=>{let e,t,a,u,m,x,p,f,h,g=(0,s.c)(12),y=(0,c.useSearchParams)();g[0]!==y?(e=y.get("redirect_status"),g[0]=y,g[1]=e):e=g[1];let b=e,[v,j]=(0,d.useState)(!1);g[2]!==b?(t=()=>{"succeeded"===b&&j(!0)},a=[b],g[2]=b,g[3]=t,g[4]=a):(t=g[3],a=g[4]),(0,d.useEffect)(t,a),g[5]===Symbol.for("react.memo_cache_sentinel")?(u=()=>{j(!1);let e=new URL(window.location.href);e.searchParams.delete("redirect_status"),window.history.replaceState({},"",e.toString())},g[5]=u):u=g[5];let w=u;return"succeeded"!==b?null:(g[6]===Symbol.for("react.memo_cache_sentinel")?(m=(0,r.jsxs)("button",{onClick:w,className:"absolute right-4 top-4 roun
1ded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",children:[(0,r.jsx)(i.A,{className:"h-4 w-4"}),(0,r.jsx)("span",{className:"sr-only",children:"Close"})]}),g[6]=m):m=g[6],g[7]===Symbol.for("react.memo_cache_sentinel")?(x=(0,r.jsx)("div",{className:"absolute inset-0 bg-tone-green/20 rounded-full animate-ping"}),g[7]=x):x=g[7],g[8]===Symbol.for("react.memo_cache_sentinel")?(p=(0,r.jsxs)("div",{className:"relative",children:[x,(0,r.jsx)("div",{className:"relative bg-green-600 rounded-full p-3",children:(0,r.jsx)(o.A,{className:"h-8 w-8 text-white"})})]}),g[8]=p):p=g[8],g[9]===Symbol.for("react.memo_cache_sentinel")?(f=(0,r.jsxs)(l.Cf,{className:"sm:max-w-md mx-auto bg-card border-0 shadow-2xl animate-in zoom-in-95 duration-300",children:[m,(0,r.jsxs)("div",{className:"flex flex-col items-center text-center space-y-6 py-6",children:[p,(0,r.jsxs)(l.c7,{className:"space-y-3",children:[(0,r.jsx)(l.L3,{className:"text-2xl font-bold text-foreground text-center",children:"Payment Successful!"}),(0,r.jsx)("p",{className:"text-muted-foreground leading-relaxed",children:"Thank you for your purchase! Your payment has been processed successfully."})]}),(0,r.jsx)(n.$,{variant:"outline",onClick:w,className:"w-full bg-primary-background",children:"Continue"})]})]}),g[9]=f):f=g[9],g[10]!==v?(h=(0,r.jsx)(l.lG,{open:v,onOpenChange:w,children:f}),g[10]=v,g[11]=h):h=g[11],h)},m=()=>{let e,t=(0,s.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,r.jsx)(d.Suspense,{children:(0,r.jsx)(u,{})}),t[0]=e):e=t[0],e}},86634:(e,t,a)=>{a.d(t,{Ld:()=>i,Q5:()=>d,oe:()=>u});var r=a(82402);let s=r.env.NEXT_PUBLIC_GA_MEASUREMENT_ID||"G-RKJS14ZFH6",n="speedvitals_source_context",l=(e,t)=>e.get(t)||void 0,i=()=>{try{let e=window.localStorage.getItem(n);return e?JSON.parse(e):void 0}catch{return}},o=()=>{let e,t,a=new URLSearchParams(window.location.search),r=i(),s=new Date().toISOString(),o=document.referrer||r?.referrer,c={landing_page:r?.landing_page||window.location.href,landing_path:r?.landing_path||window.location.pathname,referrer:o,source:r?.source||((e,t)=>{let a=l(e,"utm_source"),r=l(e,"gclid");if(a)return a;if(r)return"google";if(!t)return"direct";try{return new URL(t).hostname.replace(/^www\./,"")}catch{return"referral"}})(a,o),medium:r?.medium||(e=l(a,"utm_medium"),t=l(a,"gclid"),e||(t?"cpc":o?"referral":"none")),campaign:r?.campaign||l(a,"utm_campaign"),content:r?.content||l(a,"utm_content"),term:r?.term||l(a,"utm_term"),gclid:r?.gclid||l(a,"gclid"),source_page:r?.source_page||l(a,"source_page"),source_tool:r?.source_tool||l(a,"source_tool"),cta:r?.cta||l(a,"cta"),destination:r?.destination||l(a,"destination"),intent:r?.intent||l(a,"intent"),first_seen_at:r?.first_seen_at||s,last_seen_at:s};try{window.localStorage.setItem(n,JSON.stringify(c))}catch{}return c},c=()=>"true"===r.env.NEXT_PUBLIC_GA_DEBUG_MODE||"true"===window.localStorage.getItem("speedvitals_ga_debug"),d=(e,t={})=>{if(!window.gtag)return;let a=o()||i();window.gtag("event",e,{...a,...t,page_location:window.location.href,page_path:window.location.pathname,debug_mode:c()})},u=()=>{if(!window.gtag)return;let e=o()||i(),t={page_location:window.location.href,page_path:window.location.pathname,debug_mode:c(),...e};window.gtag("config",s,{send_page_view:!1,...t}),window.gtag("event","page_view",t)}},93410:(e,t,a)=>{a.d(t,{default:()=>i});var r=a(19749),s=a(82222),n=a(12115),l=a(12731);let i=e=>{let t,a,i=(0,r.c)(7),{redirectTo:o,redirect:c}=e,d=void 0===o?"/":o,{user:u,loading:m}=(0,l.A)(),x=(0,s.useRouter)();return i[0]!==m||i[1]!==c||i[2]!==d||i[3]!==x||i[4]!==u?(t=()=>{m||("unauthenticated"===c&&!u||"authenticated"===c&&u)&&x.replace(d)},a=[m,u,c,d,x],i[0]=m,i[1]=c,i[2]=d,i[3]=x,i[4]=u,i[5]=t,i[6]=a):(t=i[5],a=i[6]),(0,n.useEffect)(t,a),null}},96874:(e,t,a)=>{a.d(t,{Accordion:()=>o,AccordionContent:()=>u,AccordionItem:()=>c,AccordionTrigger:()=>d});var r=a(95155),s=a(19749),n=a(67954),l=a(72775);a(12115);var i=a(8191);function o(e){let t,a,l=(0,s.c)(4);return l[0]!==e?({...t}=e,l[0]=e,l[1]=t):t=l[1],l[2]!==t?(a=(0,r.jsx)(n.bL,{"data-slot":"accordion",...t}),l[2]=t,l[3]=a):a=l[3],a}function c(e){let t,a,l,o,c=(0,s.c)(8);return c[0]!==e?({className:t,...a}=e,c[0]=e,c[1]=t,c[2]=a):(t=c[1],a=c[2]),c[3]!==t?(l=(0,i.cn)("border-b last:border-b-0",t),c[3]=t,c[4]=l):l=c[4],c[5]!==a||c[6]!==l?(o=(0,r.jsx)(n.q7,{"data-slot":"accordion-item",className:l,...a}),c[5]=a,c[6]=l,c[7]=o):o=c[7],o}function d(e){let t,a,o,c,d,u,m=(0,s.c)(11);return m[0]!==e?({className:a,children:t,...o}=e,m[0]=e,m[1]=t,m[2]=a,m[3]=o):(t=m[1],a=m[2],o=m[3]),m[4]!==a?(c=(0,i.cn)("focus-visible:border-ring focus-visible:ring-ring/50 flex flex-1 items-start justify-between gap-4 roun
1ded-md py-4 text-left text-sm font-medium transition-all outline-none disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180",a),m[4]=a,m[5]=c):c=m[5],m[6]===Symbol.for("react.memo_cache_sentinel")?(d=(0,r.jsx)(l.A,{className:"text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200"}),m[6]=d):d=m[6],m[7]!==t||m[8]!==o||m[9]!==c?(u=(0,r.jsx)(n.Y9,{className:"flex",children:(0,r.jsxs)(n.l9,{"data-slot":"accordion-trigger",className:c,...o,children:[t,d]})}),m[7]=t,m[8]=o,m[9]=c,m[10]=u):u=m[10],u}function u(e){let t,a,l,o,c,d,u=(0,s.c)(12);return u[0]!==e?({className:a,children:t,...l}=e,u[0]=e,u[1]=t,u[2]=a,u[3]=l):(t=u[1],a=u[2],l=u[3]),u[4]!==a?(o=(0,i.cn)("pt-0 pb-4",a),u[4]=a,u[5]=o):o=u[5],u[6]!==t||u[7]!==o?(c=(0,r.jsx)("div",{className:o,children:t}),u[6]=t,u[7]=o,u[8]=c):c=u[8],u[9]!==l||u[10]!==c?(d=(0,r.jsx)(n.UC,{"data-slot":"accordion-content",className:"data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm",...l,children:c}),u[9]=l,u[10]=c,u[11]=d):d=u[11],d}}}]);

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.